@salesforce/retail-react-app 10.3.0-nightly-20261008080708 → 10.3.0-preview.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,44 +1,46 @@
1
- (function(Ye,dt){typeof exports=="object"&&typeof module!="undefined"?dt(exports):typeof define=="function"&&define.amd?define(["exports"],dt):(Ye=typeof globalThis!="undefined"?globalThis:Ye||self,dt(Ye.InlineAgentWidget={}))})(this,(function(Ye){"use strict";var m0=Object.defineProperty;var g0=(Ye,dt,pn)=>dt in Ye?m0(Ye,dt,{enumerable:!0,configurable:!0,writable:!0,value:pn}):Ye[dt]=pn;var Te=(Ye,dt,pn)=>g0(Ye,typeof dt!="symbol"?dt+"":dt,pn);function dt(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var pn={exports:{}},Mr={},mo={exports:{}},xe={};var ea;function sh(){if(ea)return xe;ea=1;var t=Symbol.for("react.element"),i=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),c=Symbol.for("react.context"),p=Symbol.for("react.forward_ref"),h=Symbol.for("react.suspense"),m=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),g=Symbol.iterator;function w(I){return I===null||typeof I!="object"?null:(I=g&&I[g]||I["@@iterator"],typeof I=="function"?I:null)}var v={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},_=Object.assign,z={};function D(I,F,E){this.props=I,this.context=F,this.refs=z,this.updater=E||v}D.prototype.isReactComponent={},D.prototype.setState=function(I,F){if(typeof I!="object"&&typeof I!="function"&&I!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,I,F,"setState")},D.prototype.forceUpdate=function(I){this.updater.enqueueForceUpdate(this,I,"forceUpdate")};function A(){}A.prototype=D.prototype;function H(I,F,E){this.props=I,this.context=F,this.refs=z,this.updater=E||v}var M=H.prototype=new A;M.constructor=H,_(M,D.prototype),M.isPureReactComponent=!0;var ne=Array.isArray,ue=Object.prototype.hasOwnProperty,L={current:null},se={key:!0,ref:!0,__self:!0,__source:!0};function de(I,F,E){var he,we={},pe=null,Ne=null;if(F!=null)for(he in F.ref!==void 0&&(Ne=F.ref),F.key!==void 0&&(pe=""+F.key),F)ue.call(F,he)&&!se.hasOwnProperty(he)&&(we[he]=F[he]);var Se=arguments.length-2;if(Se===1)we.children=E;else if(1<Se){for(var be=Array(Se),Qe=0;Qe<Se;Qe++)be[Qe]=arguments[Qe+2];we.children=be}if(I&&I.defaultProps)for(he in Se=I.defaultProps,Se)we[he]===void 0&&(we[he]=Se[he]);return{$$typeof:t,type:I,key:pe,ref:Ne,props:we,_owner:L.current}}function ye(I,F){return{$$typeof:t,type:I.type,key:F,ref:I.ref,props:I.props,_owner:I._owner}}function R(I){return typeof I=="object"&&I!==null&&I.$$typeof===t}function X(I){var F={"=":"=0",":":"=2"};return"$"+I.replace(/[=:]/g,function(E){return F[E]})}var J=/\/+/g;function K(I,F){return typeof I=="object"&&I!==null&&I.key!=null?X(""+I.key):F.toString(36)}function Q(I,F,E,he,we){var pe=typeof I;(pe==="undefined"||pe==="boolean")&&(I=null);var Ne=!1;if(I===null)Ne=!0;else switch(pe){case"string":case"number":Ne=!0;break;case"object":switch(I.$$typeof){case t:case i:Ne=!0}}if(Ne)return Ne=I,we=we(Ne),I=he===""?"."+K(Ne,0):he,ne(we)?(E="",I!=null&&(E=I.replace(J,"$&/")+"/"),Q(we,F,E,"",function(Qe){return Qe})):we!=null&&(R(we)&&(we=ye(we,E+(!we.key||Ne&&Ne.key===we.key?"":(""+we.key).replace(J,"$&/")+"/")+I)),F.push(we)),1;if(Ne=0,he=he===""?".":he+":",ne(I))for(var Se=0;Se<I.length;Se++){pe=I[Se];var be=he+K(pe,Se);Ne+=Q(pe,F,E,be,we)}else if(be=w(I),typeof be=="function")for(I=be.call(I),Se=0;!(pe=I.next()).done;)pe=pe.value,be=he+K(pe,Se++),Ne+=Q(pe,F,E,be,we);else if(pe==="object")throw F=String(I),Error("Objects are not valid as a React child (found: "+(F==="[object Object]"?"object with keys {"+Object.keys(I).join(", ")+"}":F)+"). If you meant to render a collection of children, use an array instead.");return Ne}function $(I,F,E){if(I==null)return I;var he=[],we=0;return Q(I,he,"","",function(pe){return F.call(E,pe,we++)}),he}function Z(I){if(I._status===-1){var F=I._result;F=F(),F.then(function(E){(I._status===0||I._status===-1)&&(I._status=1,I._result=E)},function(E){(I._status===0||I._status===-1)&&(I._status=2,I._result=E)}),I._status===-1&&(I._status=0,I._result=F)}if(I._status===1)return I._result.default;throw I._result}var ie={current:null},U={transition:null},ee={ReactCurrentDispatcher:ie,ReactCurrentBatchConfig:U,ReactCurrentOwner:L};function x(){throw Error("act(...) is not supported in production builds of React.")}return xe.Children={map:$,forEach:function(I,F,E){$(I,function(){F.apply(this,arguments)},E)},count:function(I){var F=0;return $(I,function(){F++}),F},toArray:function(I){return $(I,function(F){return F})||[]},only:function(I){if(!R(I))throw Error("React.Children.only expected to receive a single React element child.");return I}},xe.Component=D,xe.Fragment=r,xe.Profiler=s,xe.PureComponent=H,xe.StrictMode=o,xe.Suspense=h,xe.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=ee,xe.act=x,xe.cloneElement=function(I,F,E){if(I==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+I+".");var he=_({},I.props),we=I.key,pe=I.ref,Ne=I._owner;if(F!=null){if(F.ref!==void 0&&(pe=F.ref,Ne=L.current),F.key!==void 0&&(we=""+F.key),I.type&&I.type.defaultProps)var Se=I.type.defaultProps;for(be in F)ue.call(F,be)&&!se.hasOwnProperty(be)&&(he[be]=F[be]===void 0&&Se!==void 0?Se[be]:F[be])}var be=arguments.length-2;if(be===1)he.children=E;else if(1<be){Se=Array(be);for(var Qe=0;Qe<be;Qe++)Se[Qe]=arguments[Qe+2];he.children=Se}return{$$typeof:t,type:I.type,key:we,ref:pe,props:he,_owner:Ne}},xe.createContext=function(I){return I={$$typeof:c,_currentValue:I,_currentValue2:I,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},I.Provider={$$typeof:a,_context:I},I.Consumer=I},xe.createElement=de,xe.createFactory=function(I){var F=de.bind(null,I);return F.type=I,F},xe.createRef=function(){return{current:null}},xe.forwardRef=function(I){return{$$typeof:p,render:I}},xe.isValidElement=R,xe.lazy=function(I){return{$$typeof:y,_payload:{_status:-1,_result:I},_init:Z}},xe.memo=function(I,F){return{$$typeof:m,type:I,compare:F===void 0?null:F}},xe.startTransition=function(I){var F=U.transition;U.transition={};try{I()}finally{U.transition=F}},xe.unstable_act=x,xe.useCallback=function(I,F){return ie.current.useCallback(I,F)},xe.useContext=function(I){return ie.current.useContext(I)},xe.useDebugValue=function(){},xe.useDeferredValue=function(I){return ie.current.useDeferredValue(I)},xe.useEffect=function(I,F){return ie.current.useEffect(I,F)},xe.useId=function(){return ie.current.useId()},xe.useImperativeHandle=function(I,F,E){return ie.current.useImperativeHandle(I,F,E)},xe.useInsertionEffect=function(I,F){return ie.current.useInsertionEffect(I,F)},xe.useLayoutEffect=function(I,F){return ie.current.useLayoutEffect(I,F)},xe.useMemo=function(I,F){return ie.current.useMemo(I,F)},xe.useReducer=function(I,F,E){return ie.current.useReducer(I,F,E)},xe.useRef=function(I){return ie.current.useRef(I)},xe.useState=function(I){return ie.current.useState(I)},xe.useSyncExternalStore=function(I,F,E){return ie.current.useSyncExternalStore(I,F,E)},xe.useTransition=function(){return ie.current.useTransition()},xe.version="18.3.1",xe}var ta;function go(){return ta||(ta=1,mo.exports=sh()),mo.exports}var na;function ah(){if(na)return Mr;na=1;var t=go(),i=Symbol.for("react.element"),r=Symbol.for("react.fragment"),o=Object.prototype.hasOwnProperty,s=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,a={key:!0,ref:!0,__self:!0,__source:!0};function c(p,h,m){var y,g={},w=null,v=null;m!==void 0&&(w=""+m),h.key!==void 0&&(w=""+h.key),h.ref!==void 0&&(v=h.ref);for(y in h)o.call(h,y)&&!a.hasOwnProperty(y)&&(g[y]=h[y]);if(p&&p.defaultProps)for(y in h=p.defaultProps,h)g[y]===void 0&&(g[y]=h[y]);return{$$typeof:i,type:p,key:w,ref:v,props:g,_owner:s.current}}return Mr.Fragment=r,Mr.jsx=c,Mr.jsxs=c,Mr}var ra;function ch(){return ra||(ra=1,pn.exports=ah()),pn.exports}var ke=ch(),ji={},yo={exports:{}},ht={},ko={exports:{}},vo={};var ia;function fh(){return ia||(ia=1,(function(t){function i(U,ee){var x=U.length;U.push(ee);e:for(;0<x;){var I=x-1>>>1,F=U[I];if(0<s(F,ee))U[I]=ee,U[x]=F,x=I;else break e}}function r(U){return U.length===0?null:U[0]}function o(U){if(U.length===0)return null;var ee=U[0],x=U.pop();if(x!==ee){U[0]=x;e:for(var I=0,F=U.length,E=F>>>1;I<E;){var he=2*(I+1)-1,we=U[he],pe=he+1,Ne=U[pe];if(0>s(we,x))pe<F&&0>s(Ne,we)?(U[I]=Ne,U[pe]=x,I=pe):(U[I]=we,U[he]=x,I=he);else if(pe<F&&0>s(Ne,x))U[I]=Ne,U[pe]=x,I=pe;else break e}}return ee}function s(U,ee){var x=U.sortIndex-ee.sortIndex;return x!==0?x:U.id-ee.id}if(typeof performance=="object"&&typeof performance.now=="function"){var a=performance;t.unstable_now=function(){return a.now()}}else{var c=Date,p=c.now();t.unstable_now=function(){return c.now()-p}}var h=[],m=[],y=1,g=null,w=3,v=!1,_=!1,z=!1,D=typeof setTimeout=="function"?setTimeout:null,A=typeof clearTimeout=="function"?clearTimeout:null,H=typeof setImmediate!="undefined"?setImmediate:null;typeof navigator!="undefined"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function M(U){for(var ee=r(m);ee!==null;){if(ee.callback===null)o(m);else if(ee.startTime<=U)o(m),ee.sortIndex=ee.expirationTime,i(h,ee);else break;ee=r(m)}}function ne(U){if(z=!1,M(U),!_)if(r(h)!==null)_=!0,Z(ue);else{var ee=r(m);ee!==null&&ie(ne,ee.startTime-U)}}function ue(U,ee){_=!1,z&&(z=!1,A(de),de=-1),v=!0;var x=w;try{for(M(ee),g=r(h);g!==null&&(!(g.expirationTime>ee)||U&&!X());){var I=g.callback;if(typeof I=="function"){g.callback=null,w=g.priorityLevel;var F=I(g.expirationTime<=ee);ee=t.unstable_now(),typeof F=="function"?g.callback=F:g===r(h)&&o(h),M(ee)}else o(h);g=r(h)}if(g!==null)var E=!0;else{var he=r(m);he!==null&&ie(ne,he.startTime-ee),E=!1}return E}finally{g=null,w=x,v=!1}}var L=!1,se=null,de=-1,ye=5,R=-1;function X(){return!(t.unstable_now()-R<ye)}function J(){if(se!==null){var U=t.unstable_now();R=U;var ee=!0;try{ee=se(!0,U)}finally{ee?K():(L=!1,se=null)}}else L=!1}var K;if(typeof H=="function")K=function(){H(J)};else if(typeof MessageChannel!="undefined"){var Q=new MessageChannel,$=Q.port2;Q.port1.onmessage=J,K=function(){$.postMessage(null)}}else K=function(){D(J,0)};function Z(U){se=U,L||(L=!0,K())}function ie(U,ee){de=D(function(){U(t.unstable_now())},ee)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(U){U.callback=null},t.unstable_continueExecution=function(){_||v||(_=!0,Z(ue))},t.unstable_forceFrameRate=function(U){0>U||125<U?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):ye=0<U?Math.floor(1e3/U):5},t.unstable_getCurrentPriorityLevel=function(){return w},t.unstable_getFirstCallbackNode=function(){return r(h)},t.unstable_next=function(U){switch(w){case 1:case 2:case 3:var ee=3;break;default:ee=w}var x=w;w=ee;try{return U()}finally{w=x}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=function(){},t.unstable_runWithPriority=function(U,ee){switch(U){case 1:case 2:case 3:case 4:case 5:break;default:U=3}var x=w;w=U;try{return ee()}finally{w=x}},t.unstable_scheduleCallback=function(U,ee,x){var I=t.unstable_now();switch(typeof x=="object"&&x!==null?(x=x.delay,x=typeof x=="number"&&0<x?I+x:I):x=I,U){case 1:var F=-1;break;case 2:F=250;break;case 5:F=1073741823;break;case 4:F=1e4;break;default:F=5e3}return F=x+F,U={id:y++,callback:ee,priorityLevel:U,startTime:x,expirationTime:F,sortIndex:-1},x>I?(U.sortIndex=x,i(m,U),r(h)===null&&U===r(m)&&(z?(A(de),de=-1):z=!0,ie(ne,x-I))):(U.sortIndex=F,i(h,U),_||v||(_=!0,Z(ue))),U},t.unstable_shouldYield=X,t.unstable_wrapCallback=function(U){var ee=w;return function(){var x=w;w=ee;try{return U.apply(this,arguments)}finally{w=x}}}})(vo)),vo}var la;function ph(){return la||(la=1,ko.exports=fh()),ko.exports}var oa;function dh(){if(oa)return ht;oa=1;var t=go(),i=ph();function r(e){for(var n="https://reactjs.org/docs/error-decoder.html?invariant="+e,l=1;l<arguments.length;l++)n+="&args[]="+encodeURIComponent(arguments[l]);return"Minified React error #"+e+"; visit "+n+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var o=new Set,s={};function a(e,n){c(e,n),c(e+"Capture",n)}function c(e,n){for(s[e]=n,e=0;e<n.length;e++)o.add(n[e])}var p=!(typeof window=="undefined"||typeof window.document=="undefined"||typeof window.document.createElement=="undefined"),h=Object.prototype.hasOwnProperty,m=/^[: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]*$/,y={},g={};function w(e){return h.call(g,e)?!0:h.call(y,e)?!1:m.test(e)?g[e]=!0:(y[e]=!0,!1)}function v(e,n,l,u){if(l!==null&&l.type===0)return!1;switch(typeof n){case"function":case"symbol":return!0;case"boolean":return u?!1:l!==null?!l.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function _(e,n,l,u){if(n===null||typeof n=="undefined"||v(e,n,l,u))return!0;if(u)return!1;if(l!==null)switch(l.type){case 3:return!n;case 4:return n===!1;case 5:return isNaN(n);case 6:return isNaN(n)||1>n}return!1}function z(e,n,l,u,f,d,k){this.acceptsBooleans=n===2||n===3||n===4,this.attributeName=u,this.attributeNamespace=f,this.mustUseProperty=l,this.propertyName=e,this.type=n,this.sanitizeURL=d,this.removeEmptyString=k}var D={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){D[e]=new z(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var n=e[0];D[n]=new z(n,1,!1,e[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){D[e]=new z(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){D[e]=new z(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){D[e]=new z(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){D[e]=new z(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){D[e]=new z(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){D[e]=new z(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){D[e]=new z(e,5,!1,e.toLowerCase(),null,!1,!1)});var A=/[\-:]([a-z])/g;function H(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var n=e.replace(A,H);D[n]=new z(n,1,!1,e,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var n=e.replace(A,H);D[n]=new z(n,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(e){var n=e.replace(A,H);D[n]=new z(n,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){D[e]=new z(e,1,!1,e.toLowerCase(),null,!1,!1)}),D.xlinkHref=new z("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){D[e]=new z(e,1,!1,e.toLowerCase(),null,!0,!0)});function M(e,n,l,u){var f=D.hasOwnProperty(n)?D[n]:null;(f!==null?f.type!==0:u||!(2<n.length)||n[0]!=="o"&&n[0]!=="O"||n[1]!=="n"&&n[1]!=="N")&&(_(n,l,f,u)&&(l=null),u||f===null?w(n)&&(l===null?e.removeAttribute(n):e.setAttribute(n,""+l)):f.mustUseProperty?e[f.propertyName]=l===null?f.type===3?!1:"":l:(n=f.attributeName,u=f.attributeNamespace,l===null?e.removeAttribute(n):(f=f.type,l=f===3||f===4&&l===!0?"":""+l,u?e.setAttributeNS(u,n,l):e.setAttribute(n,l))))}var ne=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,ue=Symbol.for("react.element"),L=Symbol.for("react.portal"),se=Symbol.for("react.fragment"),de=Symbol.for("react.strict_mode"),ye=Symbol.for("react.profiler"),R=Symbol.for("react.provider"),X=Symbol.for("react.context"),J=Symbol.for("react.forward_ref"),K=Symbol.for("react.suspense"),Q=Symbol.for("react.suspense_list"),$=Symbol.for("react.memo"),Z=Symbol.for("react.lazy"),ie=Symbol.for("react.offscreen"),U=Symbol.iterator;function ee(e){return e===null||typeof e!="object"?null:(e=U&&e[U]||e["@@iterator"],typeof e=="function"?e:null)}var x=Object.assign,I;function F(e){if(I===void 0)try{throw Error()}catch(l){var n=l.stack.trim().match(/\n( *(at )?)/);I=n&&n[1]||""}return`
2
- `+I+e}var E=!1;function he(e,n){if(!e||E)return"";E=!0;var l=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(n)if(n=function(){throw Error()},Object.defineProperty(n.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(n,[])}catch(b){var u=b}Reflect.construct(e,[],n)}else{try{n.call()}catch(b){u=b}e.call(n.prototype)}else{try{throw Error()}catch(b){u=b}e()}}catch(b){if(b&&u&&typeof b.stack=="string"){for(var f=b.stack.split(`
1
+ (function(Ye,dt){typeof exports=="object"&&typeof module!="undefined"?dt(exports):typeof define=="function"&&define.amd?define(["exports"],dt):(Ye=typeof globalThis!="undefined"?globalThis:Ye||self,dt(Ye.InlineAgentWidget={}))})(this,(function(Ye){"use strict";var a0=Object.defineProperty;var c0=(Ye,dt,pn)=>dt in Ye?a0(Ye,dt,{enumerable:!0,configurable:!0,writable:!0,value:pn}):Ye[dt]=pn;var Te=(Ye,dt,pn)=>c0(Ye,typeof dt!="symbol"?dt+"":dt,pn);function dt(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var pn={exports:{}},Mr={},mo={exports:{}},we={};var Zs;function sh(){if(Zs)return we;Zs=1;var t=Symbol.for("react.element"),i=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),c=Symbol.for("react.context"),p=Symbol.for("react.forward_ref"),h=Symbol.for("react.suspense"),m=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),g=Symbol.iterator;function x(I){return I===null||typeof I!="object"?null:(I=g&&I[g]||I["@@iterator"],typeof I=="function"?I:null)}var v={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},_=Object.assign,D={};function b(I,F,E){this.props=I,this.context=F,this.refs=D,this.updater=E||v}b.prototype.isReactComponent={},b.prototype.setState=function(I,F){if(typeof I!="object"&&typeof I!="function"&&I!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,I,F,"setState")},b.prototype.forceUpdate=function(I){this.updater.enqueueForceUpdate(this,I,"forceUpdate")};function R(){}R.prototype=b.prototype;function U(I,F,E){this.props=I,this.context=F,this.refs=D,this.updater=E||v}var M=U.prototype=new R;M.constructor=U,_(M,b.prototype),M.isPureReactComponent=!0;var ne=Array.isArray,le=Object.prototype.hasOwnProperty,L={current:null},oe={key:!0,ref:!0,__self:!0,__source:!0};function he(I,F,E){var pe,xe={},fe=null,Ae=null;if(F!=null)for(pe in F.ref!==void 0&&(Ae=F.ref),F.key!==void 0&&(fe=""+F.key),F)le.call(F,pe)&&!oe.hasOwnProperty(pe)&&(xe[pe]=F[pe]);var Se=arguments.length-2;if(Se===1)xe.children=E;else if(1<Se){for(var Re=Array(Se),qe=0;qe<Se;qe++)Re[qe]=arguments[qe+2];xe.children=Re}if(I&&I.defaultProps)for(pe in Se=I.defaultProps,Se)xe[pe]===void 0&&(xe[pe]=Se[pe]);return{$$typeof:t,type:I,key:fe,ref:Ae,props:xe,_owner:L.current}}function ke(I,F){return{$$typeof:t,type:I.type,key:F,ref:I.ref,props:I.props,_owner:I._owner}}function P(I){return typeof I=="object"&&I!==null&&I.$$typeof===t}function W(I){var F={"=":"=0",":":"=2"};return"$"+I.replace(/[=:]/g,function(E){return F[E]})}var G=/\/+/g;function J(I,F){return typeof I=="object"&&I!==null&&I.key!=null?W(""+I.key):F.toString(36)}function Y(I,F,E,pe,xe){var fe=typeof I;(fe==="undefined"||fe==="boolean")&&(I=null);var Ae=!1;if(I===null)Ae=!0;else switch(fe){case"string":case"number":Ae=!0;break;case"object":switch(I.$$typeof){case t:case i:Ae=!0}}if(Ae)return Ae=I,xe=xe(Ae),I=pe===""?"."+J(Ae,0):pe,ne(xe)?(E="",I!=null&&(E=I.replace(G,"$&/")+"/"),Y(xe,F,E,"",function(qe){return qe})):xe!=null&&(P(xe)&&(xe=ke(xe,E+(!xe.key||Ae&&Ae.key===xe.key?"":(""+xe.key).replace(G,"$&/")+"/")+I)),F.push(xe)),1;if(Ae=0,pe=pe===""?".":pe+":",ne(I))for(var Se=0;Se<I.length;Se++){fe=I[Se];var Re=pe+J(fe,Se);Ae+=Y(fe,F,E,Re,xe)}else if(Re=x(I),typeof Re=="function")for(I=Re.call(I),Se=0;!(fe=I.next()).done;)fe=fe.value,Re=pe+J(fe,Se++),Ae+=Y(fe,F,E,Re,xe);else if(fe==="object")throw F=String(I),Error("Objects are not valid as a React child (found: "+(F==="[object Object]"?"object with keys {"+Object.keys(I).join(", ")+"}":F)+"). If you meant to render a collection of children, use an array instead.");return Ae}function H(I,F,E){if(I==null)return I;var pe=[],xe=0;return Y(I,pe,"","",function(fe){return F.call(E,fe,xe++)}),pe}function ce(I){if(I._status===-1){var F=I._result;F=F(),F.then(function(E){(I._status===0||I._status===-1)&&(I._status=1,I._result=E)},function(E){(I._status===0||I._status===-1)&&(I._status=2,I._result=E)}),I._status===-1&&(I._status=0,I._result=F)}if(I._status===1)return I._result.default;throw I._result}var ye={current:null},Q={transition:null},ie={ReactCurrentDispatcher:ye,ReactCurrentBatchConfig:Q,ReactCurrentOwner:L};function w(){throw Error("act(...) is not supported in production builds of React.")}return we.Children={map:H,forEach:function(I,F,E){H(I,function(){F.apply(this,arguments)},E)},count:function(I){var F=0;return H(I,function(){F++}),F},toArray:function(I){return H(I,function(F){return F})||[]},only:function(I){if(!P(I))throw Error("React.Children.only expected to receive a single React element child.");return I}},we.Component=b,we.Fragment=r,we.Profiler=s,we.PureComponent=U,we.StrictMode=o,we.Suspense=h,we.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=ie,we.act=w,we.cloneElement=function(I,F,E){if(I==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+I+".");var pe=_({},I.props),xe=I.key,fe=I.ref,Ae=I._owner;if(F!=null){if(F.ref!==void 0&&(fe=F.ref,Ae=L.current),F.key!==void 0&&(xe=""+F.key),I.type&&I.type.defaultProps)var Se=I.type.defaultProps;for(Re in F)le.call(F,Re)&&!oe.hasOwnProperty(Re)&&(pe[Re]=F[Re]===void 0&&Se!==void 0?Se[Re]:F[Re])}var Re=arguments.length-2;if(Re===1)pe.children=E;else if(1<Re){Se=Array(Re);for(var qe=0;qe<Re;qe++)Se[qe]=arguments[qe+2];pe.children=Se}return{$$typeof:t,type:I.type,key:xe,ref:fe,props:pe,_owner:Ae}},we.createContext=function(I){return I={$$typeof:c,_currentValue:I,_currentValue2:I,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},I.Provider={$$typeof:a,_context:I},I.Consumer=I},we.createElement=he,we.createFactory=function(I){var F=he.bind(null,I);return F.type=I,F},we.createRef=function(){return{current:null}},we.forwardRef=function(I){return{$$typeof:p,render:I}},we.isValidElement=P,we.lazy=function(I){return{$$typeof:y,_payload:{_status:-1,_result:I},_init:ce}},we.memo=function(I,F){return{$$typeof:m,type:I,compare:F===void 0?null:F}},we.startTransition=function(I){var F=Q.transition;Q.transition={};try{I()}finally{Q.transition=F}},we.unstable_act=w,we.useCallback=function(I,F){return ye.current.useCallback(I,F)},we.useContext=function(I){return ye.current.useContext(I)},we.useDebugValue=function(){},we.useDeferredValue=function(I){return ye.current.useDeferredValue(I)},we.useEffect=function(I,F){return ye.current.useEffect(I,F)},we.useId=function(){return ye.current.useId()},we.useImperativeHandle=function(I,F,E){return ye.current.useImperativeHandle(I,F,E)},we.useInsertionEffect=function(I,F){return ye.current.useInsertionEffect(I,F)},we.useLayoutEffect=function(I,F){return ye.current.useLayoutEffect(I,F)},we.useMemo=function(I,F){return ye.current.useMemo(I,F)},we.useReducer=function(I,F,E){return ye.current.useReducer(I,F,E)},we.useRef=function(I){return ye.current.useRef(I)},we.useState=function(I){return ye.current.useState(I)},we.useSyncExternalStore=function(I,F,E){return ye.current.useSyncExternalStore(I,F,E)},we.useTransition=function(){return ye.current.useTransition()},we.version="18.3.1",we}var ea;function go(){return ea||(ea=1,mo.exports=sh()),mo.exports}var ta;function ah(){if(ta)return Mr;ta=1;var t=go(),i=Symbol.for("react.element"),r=Symbol.for("react.fragment"),o=Object.prototype.hasOwnProperty,s=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,a={key:!0,ref:!0,__self:!0,__source:!0};function c(p,h,m){var y,g={},x=null,v=null;m!==void 0&&(x=""+m),h.key!==void 0&&(x=""+h.key),h.ref!==void 0&&(v=h.ref);for(y in h)o.call(h,y)&&!a.hasOwnProperty(y)&&(g[y]=h[y]);if(p&&p.defaultProps)for(y in h=p.defaultProps,h)g[y]===void 0&&(g[y]=h[y]);return{$$typeof:i,type:p,key:x,ref:v,props:g,_owner:s.current}}return Mr.Fragment=r,Mr.jsx=c,Mr.jsxs=c,Mr}var na;function ch(){return na||(na=1,pn.exports=ah()),pn.exports}var ve=ch(),ji={},yo={exports:{}},ht={},ko={exports:{}},vo={};var ra;function fh(){return ra||(ra=1,(function(t){function i(Q,ie){var w=Q.length;Q.push(ie);e:for(;0<w;){var I=w-1>>>1,F=Q[I];if(0<s(F,ie))Q[I]=ie,Q[w]=F,w=I;else break e}}function r(Q){return Q.length===0?null:Q[0]}function o(Q){if(Q.length===0)return null;var ie=Q[0],w=Q.pop();if(w!==ie){Q[0]=w;e:for(var I=0,F=Q.length,E=F>>>1;I<E;){var pe=2*(I+1)-1,xe=Q[pe],fe=pe+1,Ae=Q[fe];if(0>s(xe,w))fe<F&&0>s(Ae,xe)?(Q[I]=Ae,Q[fe]=w,I=fe):(Q[I]=xe,Q[pe]=w,I=pe);else if(fe<F&&0>s(Ae,w))Q[I]=Ae,Q[fe]=w,I=fe;else break e}}return ie}function s(Q,ie){var w=Q.sortIndex-ie.sortIndex;return w!==0?w:Q.id-ie.id}if(typeof performance=="object"&&typeof performance.now=="function"){var a=performance;t.unstable_now=function(){return a.now()}}else{var c=Date,p=c.now();t.unstable_now=function(){return c.now()-p}}var h=[],m=[],y=1,g=null,x=3,v=!1,_=!1,D=!1,b=typeof setTimeout=="function"?setTimeout:null,R=typeof clearTimeout=="function"?clearTimeout:null,U=typeof setImmediate!="undefined"?setImmediate:null;typeof navigator!="undefined"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function M(Q){for(var ie=r(m);ie!==null;){if(ie.callback===null)o(m);else if(ie.startTime<=Q)o(m),ie.sortIndex=ie.expirationTime,i(h,ie);else break;ie=r(m)}}function ne(Q){if(D=!1,M(Q),!_)if(r(h)!==null)_=!0,ce(le);else{var ie=r(m);ie!==null&&ye(ne,ie.startTime-Q)}}function le(Q,ie){_=!1,D&&(D=!1,R(he),he=-1),v=!0;var w=x;try{for(M(ie),g=r(h);g!==null&&(!(g.expirationTime>ie)||Q&&!W());){var I=g.callback;if(typeof I=="function"){g.callback=null,x=g.priorityLevel;var F=I(g.expirationTime<=ie);ie=t.unstable_now(),typeof F=="function"?g.callback=F:g===r(h)&&o(h),M(ie)}else o(h);g=r(h)}if(g!==null)var E=!0;else{var pe=r(m);pe!==null&&ye(ne,pe.startTime-ie),E=!1}return E}finally{g=null,x=w,v=!1}}var L=!1,oe=null,he=-1,ke=5,P=-1;function W(){return!(t.unstable_now()-P<ke)}function G(){if(oe!==null){var Q=t.unstable_now();P=Q;var ie=!0;try{ie=oe(!0,Q)}finally{ie?J():(L=!1,oe=null)}}else L=!1}var J;if(typeof U=="function")J=function(){U(G)};else if(typeof MessageChannel!="undefined"){var Y=new MessageChannel,H=Y.port2;Y.port1.onmessage=G,J=function(){H.postMessage(null)}}else J=function(){b(G,0)};function ce(Q){oe=Q,L||(L=!0,J())}function ye(Q,ie){he=b(function(){Q(t.unstable_now())},ie)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(Q){Q.callback=null},t.unstable_continueExecution=function(){_||v||(_=!0,ce(le))},t.unstable_forceFrameRate=function(Q){0>Q||125<Q?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):ke=0<Q?Math.floor(1e3/Q):5},t.unstable_getCurrentPriorityLevel=function(){return x},t.unstable_getFirstCallbackNode=function(){return r(h)},t.unstable_next=function(Q){switch(x){case 1:case 2:case 3:var ie=3;break;default:ie=x}var w=x;x=ie;try{return Q()}finally{x=w}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=function(){},t.unstable_runWithPriority=function(Q,ie){switch(Q){case 1:case 2:case 3:case 4:case 5:break;default:Q=3}var w=x;x=Q;try{return ie()}finally{x=w}},t.unstable_scheduleCallback=function(Q,ie,w){var I=t.unstable_now();switch(typeof w=="object"&&w!==null?(w=w.delay,w=typeof w=="number"&&0<w?I+w:I):w=I,Q){case 1:var F=-1;break;case 2:F=250;break;case 5:F=1073741823;break;case 4:F=1e4;break;default:F=5e3}return F=w+F,Q={id:y++,callback:ie,priorityLevel:Q,startTime:w,expirationTime:F,sortIndex:-1},w>I?(Q.sortIndex=w,i(m,Q),r(h)===null&&Q===r(m)&&(D?(R(he),he=-1):D=!0,ye(ne,w-I))):(Q.sortIndex=F,i(h,Q),_||v||(_=!0,ce(le))),Q},t.unstable_shouldYield=W,t.unstable_wrapCallback=function(Q){var ie=x;return function(){var w=x;x=ie;try{return Q.apply(this,arguments)}finally{x=w}}}})(vo)),vo}var ia;function ph(){return ia||(ia=1,ko.exports=fh()),ko.exports}var la;function dh(){if(la)return ht;la=1;var t=go(),i=ph();function r(e){for(var n="https://reactjs.org/docs/error-decoder.html?invariant="+e,l=1;l<arguments.length;l++)n+="&args[]="+encodeURIComponent(arguments[l]);return"Minified React error #"+e+"; visit "+n+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var o=new Set,s={};function a(e,n){c(e,n),c(e+"Capture",n)}function c(e,n){for(s[e]=n,e=0;e<n.length;e++)o.add(n[e])}var p=!(typeof window=="undefined"||typeof window.document=="undefined"||typeof window.document.createElement=="undefined"),h=Object.prototype.hasOwnProperty,m=/^[: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]*$/,y={},g={};function x(e){return h.call(g,e)?!0:h.call(y,e)?!1:m.test(e)?g[e]=!0:(y[e]=!0,!1)}function v(e,n,l,u){if(l!==null&&l.type===0)return!1;switch(typeof n){case"function":case"symbol":return!0;case"boolean":return u?!1:l!==null?!l.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function _(e,n,l,u){if(n===null||typeof n=="undefined"||v(e,n,l,u))return!0;if(u)return!1;if(l!==null)switch(l.type){case 3:return!n;case 4:return n===!1;case 5:return isNaN(n);case 6:return isNaN(n)||1>n}return!1}function D(e,n,l,u,f,d,k){this.acceptsBooleans=n===2||n===3||n===4,this.attributeName=u,this.attributeNamespace=f,this.mustUseProperty=l,this.propertyName=e,this.type=n,this.sanitizeURL=d,this.removeEmptyString=k}var b={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){b[e]=new D(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var n=e[0];b[n]=new D(n,1,!1,e[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){b[e]=new D(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){b[e]=new D(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){b[e]=new D(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){b[e]=new D(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){b[e]=new D(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){b[e]=new D(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){b[e]=new D(e,5,!1,e.toLowerCase(),null,!1,!1)});var R=/[\-:]([a-z])/g;function U(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var n=e.replace(R,U);b[n]=new D(n,1,!1,e,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var n=e.replace(R,U);b[n]=new D(n,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(e){var n=e.replace(R,U);b[n]=new D(n,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){b[e]=new D(e,1,!1,e.toLowerCase(),null,!1,!1)}),b.xlinkHref=new D("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){b[e]=new D(e,1,!1,e.toLowerCase(),null,!0,!0)});function M(e,n,l,u){var f=b.hasOwnProperty(n)?b[n]:null;(f!==null?f.type!==0:u||!(2<n.length)||n[0]!=="o"&&n[0]!=="O"||n[1]!=="n"&&n[1]!=="N")&&(_(n,l,f,u)&&(l=null),u||f===null?x(n)&&(l===null?e.removeAttribute(n):e.setAttribute(n,""+l)):f.mustUseProperty?e[f.propertyName]=l===null?f.type===3?!1:"":l:(n=f.attributeName,u=f.attributeNamespace,l===null?e.removeAttribute(n):(f=f.type,l=f===3||f===4&&l===!0?"":""+l,u?e.setAttributeNS(u,n,l):e.setAttribute(n,l))))}var ne=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,le=Symbol.for("react.element"),L=Symbol.for("react.portal"),oe=Symbol.for("react.fragment"),he=Symbol.for("react.strict_mode"),ke=Symbol.for("react.profiler"),P=Symbol.for("react.provider"),W=Symbol.for("react.context"),G=Symbol.for("react.forward_ref"),J=Symbol.for("react.suspense"),Y=Symbol.for("react.suspense_list"),H=Symbol.for("react.memo"),ce=Symbol.for("react.lazy"),ye=Symbol.for("react.offscreen"),Q=Symbol.iterator;function ie(e){return e===null||typeof e!="object"?null:(e=Q&&e[Q]||e["@@iterator"],typeof e=="function"?e:null)}var w=Object.assign,I;function F(e){if(I===void 0)try{throw Error()}catch(l){var n=l.stack.trim().match(/\n( *(at )?)/);I=n&&n[1]||""}return`
2
+ `+I+e}var E=!1;function pe(e,n){if(!e||E)return"";E=!0;var l=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(n)if(n=function(){throw Error()},Object.defineProperty(n.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(n,[])}catch(z){var u=z}Reflect.construct(e,[],n)}else{try{n.call()}catch(z){u=z}e.call(n.prototype)}else{try{throw Error()}catch(z){u=z}e()}}catch(z){if(z&&u&&typeof z.stack=="string"){for(var f=z.stack.split(`
3
3
  `),d=u.stack.split(`
4
4
  `),k=f.length-1,S=d.length-1;1<=k&&0<=S&&f[k]!==d[S];)S--;for(;1<=k&&0<=S;k--,S--)if(f[k]!==d[S]){if(k!==1||S!==1)do if(k--,S--,0>S||f[k]!==d[S]){var C=`
5
- `+f[k].replace(" at new "," at ");return e.displayName&&C.includes("<anonymous>")&&(C=C.replace("<anonymous>",e.displayName)),C}while(1<=k&&0<=S);break}}}finally{E=!1,Error.prepareStackTrace=l}return(e=e?e.displayName||e.name:"")?F(e):""}function we(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=he(e.type,!1),e;case 11:return e=he(e.type.render,!1),e;case 1:return e=he(e.type,!0),e;default:return""}}function pe(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case se:return"Fragment";case L:return"Portal";case ye:return"Profiler";case de:return"StrictMode";case K:return"Suspense";case Q:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case X:return(e.displayName||"Context")+".Consumer";case R:return(e._context.displayName||"Context")+".Provider";case J:var n=e.render;return e=e.displayName,e||(e=n.displayName||n.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case $:return n=e.displayName||null,n!==null?n:pe(e.type)||"Memo";case Z:n=e._payload,e=e._init;try{return pe(e(n))}catch{}}return null}function Ne(e){var n=e.type;switch(e.tag){case 24:return"Cache";case 9:return(n.displayName||"Context")+".Consumer";case 10:return(n._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=n.render,e=e.displayName||e.name||"",n.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return n;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return pe(n);case 8:return n===de?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof n=="function")return n.displayName||n.name||null;if(typeof n=="string")return n}return null}function Se(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function be(e){var n=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(n==="checkbox"||n==="radio")}function Qe(e){var n=be(e)?"checked":"value",l=Object.getOwnPropertyDescriptor(e.constructor.prototype,n),u=""+e[n];if(!e.hasOwnProperty(n)&&typeof l!="undefined"&&typeof l.get=="function"&&typeof l.set=="function"){var f=l.get,d=l.set;return Object.defineProperty(e,n,{configurable:!0,get:function(){return f.call(this)},set:function(k){u=""+k,d.call(this,k)}}),Object.defineProperty(e,n,{enumerable:l.enumerable}),{getValue:function(){return u},setValue:function(k){u=""+k},stopTracking:function(){e._valueTracker=null,delete e[n]}}}}function tn(e){e._valueTracker||(e._valueTracker=Qe(e))}function nl(e){if(!e)return!1;var n=e._valueTracker;if(!n)return!0;var l=n.getValue(),u="";return e&&(u=be(e)?e.checked?"true":"false":e.value),e=u,e!==l?(n.setValue(e),!0):!1}function cr(e){if(e=e||(typeof document!="undefined"?document:void 0),typeof e=="undefined")return null;try{return e.activeElement||e.body}catch{return e.body}}function Zr(e,n){var l=n.checked;return x({},n,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:l!=null?l:e._wrapperState.initialChecked})}function ei(e,n){var l=n.defaultValue==null?"":n.defaultValue,u=n.checked!=null?n.checked:n.defaultChecked;l=Se(n.value!=null?n.value:l),e._wrapperState={initialChecked:u,initialValue:l,controlled:n.type==="checkbox"||n.type==="radio"?n.checked!=null:n.value!=null}}function ti(e,n){n=n.checked,n!=null&&M(e,"checked",n,!1)}function fr(e,n){ti(e,n);var l=Se(n.value),u=n.type;if(l!=null)u==="number"?(l===0&&e.value===""||e.value!=l)&&(e.value=""+l):e.value!==""+l&&(e.value=""+l);else if(u==="submit"||u==="reset"){e.removeAttribute("value");return}n.hasOwnProperty("value")?pr(e,n.type,l):n.hasOwnProperty("defaultValue")&&pr(e,n.type,Se(n.defaultValue)),n.checked==null&&n.defaultChecked!=null&&(e.defaultChecked=!!n.defaultChecked)}function rl(e,n,l){if(n.hasOwnProperty("value")||n.hasOwnProperty("defaultValue")){var u=n.type;if(!(u!=="submit"&&u!=="reset"||n.value!==void 0&&n.value!==null))return;n=""+e._wrapperState.initialValue,l||n===e.value||(e.value=n),e.defaultValue=n}l=e.name,l!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,l!==""&&(e.name=l)}function pr(e,n,l){(n!=="number"||cr(e.ownerDocument)!==e)&&(l==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+l&&(e.defaultValue=""+l))}var yn=Array.isArray;function kn(e,n,l,u){if(e=e.options,n){n={};for(var f=0;f<l.length;f++)n["$"+l[f]]=!0;for(l=0;l<e.length;l++)f=n.hasOwnProperty("$"+e[l].value),e[l].selected!==f&&(e[l].selected=f),f&&u&&(e[l].defaultSelected=!0)}else{for(l=""+Se(l),n=null,f=0;f<e.length;f++){if(e[f].value===l){e[f].selected=!0,u&&(e[f].defaultSelected=!0);return}n!==null||e[f].disabled||(n=e[f])}n!==null&&(n.selected=!0)}}function ni(e,n){if(n.dangerouslySetInnerHTML!=null)throw Error(r(91));return x({},n,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function il(e,n){var l=n.value;if(l==null){if(l=n.children,n=n.defaultValue,l!=null){if(n!=null)throw Error(r(92));if(yn(l)){if(1<l.length)throw Error(r(93));l=l[0]}n=l}n==null&&(n=""),l=n}e._wrapperState={initialValue:Se(l)}}function ll(e,n){var l=Se(n.value),u=Se(n.defaultValue);l!=null&&(l=""+l,l!==e.value&&(e.value=l),n.defaultValue==null&&e.defaultValue!==l&&(e.defaultValue=l)),u!=null&&(e.defaultValue=""+u)}function ol(e){var n=e.textContent;n===e._wrapperState.initialValue&&n!==""&&n!==null&&(e.value=n)}function O(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 Y(e,n){return e==null||e==="http://www.w3.org/1999/xhtml"?O(n):e==="http://www.w3.org/2000/svg"&&n==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var me,Ee=(function(e){return typeof MSApp!="undefined"&&MSApp.execUnsafeLocalFunction?function(n,l,u,f){MSApp.execUnsafeLocalFunction(function(){return e(n,l,u,f)})}:e})(function(e,n){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=n;else{for(me=me||document.createElement("div"),me.innerHTML="<svg>"+n.valueOf().toString()+"</svg>",n=me.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;n.firstChild;)e.appendChild(n.firstChild)}});function Ie(e,n){if(n){var l=e.firstChild;if(l&&l===e.lastChild&&l.nodeType===3){l.nodeValue=n;return}}e.textContent=n}var et={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},nn=["Webkit","ms","Moz","O"];Object.keys(et).forEach(function(e){nn.forEach(function(n){n=n+e.charAt(0).toUpperCase()+e.substring(1),et[n]=et[e]})});function At(e,n,l){return n==null||typeof n=="boolean"||n===""?"":l||typeof n!="number"||n===0||et.hasOwnProperty(e)&&et[e]?(""+n).trim():n+"px"}function vn(e,n){e=e.style;for(var l in n)if(n.hasOwnProperty(l)){var u=l.indexOf("--")===0,f=At(l,n[l],u);l==="float"&&(l="cssFloat"),u?e.setProperty(l,f):e[l]=f}}var Wn=x({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 tt(e,n){if(n){if(Wn[e]&&(n.children!=null||n.dangerouslySetInnerHTML!=null))throw Error(r(137,e));if(n.dangerouslySetInnerHTML!=null){if(n.children!=null)throw Error(r(60));if(typeof n.dangerouslySetInnerHTML!="object"||!("__html"in n.dangerouslySetInnerHTML))throw Error(r(61))}if(n.style!=null&&typeof n.style!="object")throw Error(r(62))}}function qt(e,n){if(e.indexOf("-")===-1)return typeof n.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Ct=null;function mu(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var gu=null,dr=null,hr=null;function Tf(e){if(e=Ci(e)){if(typeof gu!="function")throw Error(r(280));var n=e.stateNode;n&&(n=Nl(n),gu(e.stateNode,e.type,n))}}function _f(e){dr?hr?hr.push(e):hr=[e]:dr=e}function If(){if(dr){var e=dr,n=hr;if(hr=dr=null,Tf(e),n)for(e=0;e<n.length;e++)Tf(n[e])}}function Pf(e,n){return e(n)}function Nf(){}var yu=!1;function Af(e,n,l){if(yu)return e(n,l);yu=!0;try{return Pf(e,n,l)}finally{yu=!1,(dr!==null||hr!==null)&&(Nf(),If())}}function ri(e,n){var l=e.stateNode;if(l===null)return null;var u=Nl(l);if(u===null)return null;l=u[n];e:switch(n){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(u=!u.disabled)||(e=e.type,u=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!u;break e;default:e=!1}if(e)return null;if(l&&typeof l!="function")throw Error(r(231,n,typeof l));return l}var ku=!1;if(p)try{var ii={};Object.defineProperty(ii,"passive",{get:function(){ku=!0}}),window.addEventListener("test",ii,ii),window.removeEventListener("test",ii,ii)}catch{ku=!1}function xw(e,n,l,u,f,d,k,S,C){var b=Array.prototype.slice.call(arguments,3);try{n.apply(l,b)}catch(B){this.onError(B)}}var li=!1,ul=null,sl=!1,vu=null,Sw={onError:function(e){li=!0,ul=e}};function Ew(e,n,l,u,f,d,k,S,C){li=!1,ul=null,xw.apply(Sw,arguments)}function Cw(e,n,l,u,f,d,k,S,C){if(Ew.apply(this,arguments),li){if(li){var b=ul;li=!1,ul=null}else throw Error(r(198));sl||(sl=!0,vu=b)}}function Qn(e){var n=e,l=e;if(e.alternate)for(;n.return;)n=n.return;else{e=n;do n=e,(n.flags&4098)!==0&&(l=n.return),e=n.return;while(e)}return n.tag===3?l:null}function bf(e){if(e.tag===13){var n=e.memoizedState;if(n===null&&(e=e.alternate,e!==null&&(n=e.memoizedState)),n!==null)return n.dehydrated}return null}function Rf(e){if(Qn(e)!==e)throw Error(r(188))}function Tw(e){var n=e.alternate;if(!n){if(n=Qn(e),n===null)throw Error(r(188));return n!==e?null:e}for(var l=e,u=n;;){var f=l.return;if(f===null)break;var d=f.alternate;if(d===null){if(u=f.return,u!==null){l=u;continue}break}if(f.child===d.child){for(d=f.child;d;){if(d===l)return Rf(f),e;if(d===u)return Rf(f),n;d=d.sibling}throw Error(r(188))}if(l.return!==u.return)l=f,u=d;else{for(var k=!1,S=f.child;S;){if(S===l){k=!0,l=f,u=d;break}if(S===u){k=!0,u=f,l=d;break}S=S.sibling}if(!k){for(S=d.child;S;){if(S===l){k=!0,l=d,u=f;break}if(S===u){k=!0,u=d,l=f;break}S=S.sibling}if(!k)throw Error(r(189))}}if(l.alternate!==u)throw Error(r(190))}if(l.tag!==3)throw Error(r(188));return l.stateNode.current===l?e:n}function zf(e){return e=Tw(e),e!==null?Lf(e):null}function Lf(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var n=Lf(e);if(n!==null)return n;e=e.sibling}return null}var Df=i.unstable_scheduleCallback,Of=i.unstable_cancelCallback,_w=i.unstable_shouldYield,Iw=i.unstable_requestPaint,Ve=i.unstable_now,Pw=i.unstable_getCurrentPriorityLevel,wu=i.unstable_ImmediatePriority,Mf=i.unstable_UserBlockingPriority,al=i.unstable_NormalPriority,Nw=i.unstable_LowPriority,Ff=i.unstable_IdlePriority,cl=null,Yt=null;function Aw(e){if(Yt&&typeof Yt.onCommitFiberRoot=="function")try{Yt.onCommitFiberRoot(cl,e,void 0,(e.current.flags&128)===128)}catch{}}var Ft=Math.clz32?Math.clz32:zw,bw=Math.log,Rw=Math.LN2;function zw(e){return e>>>=0,e===0?32:31-(bw(e)/Rw|0)|0}var fl=64,pl=4194304;function oi(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function dl(e,n){var l=e.pendingLanes;if(l===0)return 0;var u=0,f=e.suspendedLanes,d=e.pingedLanes,k=l&268435455;if(k!==0){var S=k&~f;S!==0?u=oi(S):(d&=k,d!==0&&(u=oi(d)))}else k=l&~f,k!==0?u=oi(k):d!==0&&(u=oi(d));if(u===0)return 0;if(n!==0&&n!==u&&(n&f)===0&&(f=u&-u,d=n&-n,f>=d||f===16&&(d&4194240)!==0))return n;if((u&4)!==0&&(u|=l&16),n=e.entangledLanes,n!==0)for(e=e.entanglements,n&=u;0<n;)l=31-Ft(n),f=1<<l,u|=e[l],n&=~f;return u}function Lw(e,n){switch(e){case 1:case 2:case 4:return n+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 n+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Dw(e,n){for(var l=e.suspendedLanes,u=e.pingedLanes,f=e.expirationTimes,d=e.pendingLanes;0<d;){var k=31-Ft(d),S=1<<k,C=f[k];C===-1?((S&l)===0||(S&u)!==0)&&(f[k]=Lw(S,n)):C<=n&&(e.expiredLanes|=S),d&=~S}}function xu(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function jf(){var e=fl;return fl<<=1,(fl&4194240)===0&&(fl=64),e}function Su(e){for(var n=[],l=0;31>l;l++)n.push(e);return n}function ui(e,n,l){e.pendingLanes|=n,n!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,n=31-Ft(n),e[n]=l}function Ow(e,n){var l=e.pendingLanes&~n;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=n,e.mutableReadLanes&=n,e.entangledLanes&=n,n=e.entanglements;var u=e.eventTimes;for(e=e.expirationTimes;0<l;){var f=31-Ft(l),d=1<<f;n[f]=0,u[f]=-1,e[f]=-1,l&=~d}}function Eu(e,n){var l=e.entangledLanes|=n;for(e=e.entanglements;l;){var u=31-Ft(l),f=1<<u;f&n|e[u]&n&&(e[u]|=n),l&=~f}}var Re=0;function Bf(e){return e&=-e,1<e?4<e?(e&268435455)!==0?16:536870912:4:1}var Uf,Cu,$f,Vf,Hf,Tu=!1,hl=[],wn=null,xn=null,Sn=null,si=new Map,ai=new Map,En=[],Mw="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 Wf(e,n){switch(e){case"focusin":case"focusout":wn=null;break;case"dragenter":case"dragleave":xn=null;break;case"mouseover":case"mouseout":Sn=null;break;case"pointerover":case"pointerout":si.delete(n.pointerId);break;case"gotpointercapture":case"lostpointercapture":ai.delete(n.pointerId)}}function ci(e,n,l,u,f,d){return e===null||e.nativeEvent!==d?(e={blockedOn:n,domEventName:l,eventSystemFlags:u,nativeEvent:d,targetContainers:[f]},n!==null&&(n=Ci(n),n!==null&&Cu(n)),e):(e.eventSystemFlags|=u,n=e.targetContainers,f!==null&&n.indexOf(f)===-1&&n.push(f),e)}function Fw(e,n,l,u,f){switch(n){case"focusin":return wn=ci(wn,e,n,l,u,f),!0;case"dragenter":return xn=ci(xn,e,n,l,u,f),!0;case"mouseover":return Sn=ci(Sn,e,n,l,u,f),!0;case"pointerover":var d=f.pointerId;return si.set(d,ci(si.get(d)||null,e,n,l,u,f)),!0;case"gotpointercapture":return d=f.pointerId,ai.set(d,ci(ai.get(d)||null,e,n,l,u,f)),!0}return!1}function Qf(e){var n=qn(e.target);if(n!==null){var l=Qn(n);if(l!==null){if(n=l.tag,n===13){if(n=bf(l),n!==null){e.blockedOn=n,Hf(e.priority,function(){$f(l)});return}}else if(n===3&&l.stateNode.current.memoizedState.isDehydrated){e.blockedOn=l.tag===3?l.stateNode.containerInfo:null;return}}}e.blockedOn=null}function ml(e){if(e.blockedOn!==null)return!1;for(var n=e.targetContainers;0<n.length;){var l=Iu(e.domEventName,e.eventSystemFlags,n[0],e.nativeEvent);if(l===null){l=e.nativeEvent;var u=new l.constructor(l.type,l);Ct=u,l.target.dispatchEvent(u),Ct=null}else return n=Ci(l),n!==null&&Cu(n),e.blockedOn=l,!1;n.shift()}return!0}function qf(e,n,l){ml(e)&&l.delete(n)}function jw(){Tu=!1,wn!==null&&ml(wn)&&(wn=null),xn!==null&&ml(xn)&&(xn=null),Sn!==null&&ml(Sn)&&(Sn=null),si.forEach(qf),ai.forEach(qf)}function fi(e,n){e.blockedOn===n&&(e.blockedOn=null,Tu||(Tu=!0,i.unstable_scheduleCallback(i.unstable_NormalPriority,jw)))}function pi(e){function n(f){return fi(f,e)}if(0<hl.length){fi(hl[0],e);for(var l=1;l<hl.length;l++){var u=hl[l];u.blockedOn===e&&(u.blockedOn=null)}}for(wn!==null&&fi(wn,e),xn!==null&&fi(xn,e),Sn!==null&&fi(Sn,e),si.forEach(n),ai.forEach(n),l=0;l<En.length;l++)u=En[l],u.blockedOn===e&&(u.blockedOn=null);for(;0<En.length&&(l=En[0],l.blockedOn===null);)Qf(l),l.blockedOn===null&&En.shift()}var mr=ne.ReactCurrentBatchConfig,gl=!0;function Bw(e,n,l,u){var f=Re,d=mr.transition;mr.transition=null;try{Re=1,_u(e,n,l,u)}finally{Re=f,mr.transition=d}}function Uw(e,n,l,u){var f=Re,d=mr.transition;mr.transition=null;try{Re=4,_u(e,n,l,u)}finally{Re=f,mr.transition=d}}function _u(e,n,l,u){if(gl){var f=Iu(e,n,l,u);if(f===null)Hu(e,n,u,yl,l),Wf(e,u);else if(Fw(f,e,n,l,u))u.stopPropagation();else if(Wf(e,u),n&4&&-1<Mw.indexOf(e)){for(;f!==null;){var d=Ci(f);if(d!==null&&Uf(d),d=Iu(e,n,l,u),d===null&&Hu(e,n,u,yl,l),d===f)break;f=d}f!==null&&u.stopPropagation()}else Hu(e,n,u,null,l)}}var yl=null;function Iu(e,n,l,u){if(yl=null,e=mu(u),e=qn(e),e!==null)if(n=Qn(e),n===null)e=null;else if(l=n.tag,l===13){if(e=bf(n),e!==null)return e;e=null}else if(l===3){if(n.stateNode.current.memoizedState.isDehydrated)return n.tag===3?n.stateNode.containerInfo:null;e=null}else n!==e&&(e=null);return yl=e,null}function Yf(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(Pw()){case wu:return 1;case Mf:return 4;case al:case Nw:return 16;case Ff:return 536870912;default:return 16}default:return 16}}var Cn=null,Pu=null,kl=null;function Kf(){if(kl)return kl;var e,n=Pu,l=n.length,u,f="value"in Cn?Cn.value:Cn.textContent,d=f.length;for(e=0;e<l&&n[e]===f[e];e++);var k=l-e;for(u=1;u<=k&&n[l-u]===f[d-u];u++);return kl=f.slice(e,1<u?1-u:void 0)}function vl(e){var n=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&n===13&&(e=13)):e=n,e===10&&(e=13),32<=e||e===13?e:0}function wl(){return!0}function Gf(){return!1}function Tt(e){function n(l,u,f,d,k){this._reactName=l,this._targetInst=f,this.type=u,this.nativeEvent=d,this.target=k,this.currentTarget=null;for(var S in e)e.hasOwnProperty(S)&&(l=e[S],this[S]=l?l(d):d[S]);return this.isDefaultPrevented=(d.defaultPrevented!=null?d.defaultPrevented:d.returnValue===!1)?wl:Gf,this.isPropagationStopped=Gf,this}return x(n.prototype,{preventDefault:function(){this.defaultPrevented=!0;var l=this.nativeEvent;l&&(l.preventDefault?l.preventDefault():typeof l.returnValue!="unknown"&&(l.returnValue=!1),this.isDefaultPrevented=wl)},stopPropagation:function(){var l=this.nativeEvent;l&&(l.stopPropagation?l.stopPropagation():typeof l.cancelBubble!="unknown"&&(l.cancelBubble=!0),this.isPropagationStopped=wl)},persist:function(){},isPersistent:wl}),n}var gr={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Nu=Tt(gr),di=x({},gr,{view:0,detail:0}),$w=Tt(di),Au,bu,hi,xl=x({},di,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:zu,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==hi&&(hi&&e.type==="mousemove"?(Au=e.screenX-hi.screenX,bu=e.screenY-hi.screenY):bu=Au=0,hi=e),Au)},movementY:function(e){return"movementY"in e?e.movementY:bu}}),Xf=Tt(xl),Vw=x({},xl,{dataTransfer:0}),Hw=Tt(Vw),Ww=x({},di,{relatedTarget:0}),Ru=Tt(Ww),Qw=x({},gr,{animationName:0,elapsedTime:0,pseudoElement:0}),qw=Tt(Qw),Yw=x({},gr,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Kw=Tt(Yw),Gw=x({},gr,{data:0}),Jf=Tt(Gw),Xw={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Jw={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"},Zw={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function ex(e){var n=this.nativeEvent;return n.getModifierState?n.getModifierState(e):(e=Zw[e])?!!n[e]:!1}function zu(){return ex}var tx=x({},di,{key:function(e){if(e.key){var n=Xw[e.key]||e.key;if(n!=="Unidentified")return n}return e.type==="keypress"?(e=vl(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Jw[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:zu,charCode:function(e){return e.type==="keypress"?vl(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?vl(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),nx=Tt(tx),rx=x({},xl,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Zf=Tt(rx),ix=x({},di,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:zu}),lx=Tt(ix),ox=x({},gr,{propertyName:0,elapsedTime:0,pseudoElement:0}),ux=Tt(ox),sx=x({},xl,{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}),ax=Tt(sx),cx=[9,13,27,32],Lu=p&&"CompositionEvent"in window,mi=null;p&&"documentMode"in document&&(mi=document.documentMode);var fx=p&&"TextEvent"in window&&!mi,ep=p&&(!Lu||mi&&8<mi&&11>=mi),tp=" ",np=!1;function rp(e,n){switch(e){case"keyup":return cx.indexOf(n.keyCode)!==-1;case"keydown":return n.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function ip(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var yr=!1;function px(e,n){switch(e){case"compositionend":return ip(n);case"keypress":return n.which!==32?null:(np=!0,tp);case"textInput":return e=n.data,e===tp&&np?null:e;default:return null}}function dx(e,n){if(yr)return e==="compositionend"||!Lu&&rp(e,n)?(e=Kf(),kl=Pu=Cn=null,yr=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(n.ctrlKey||n.altKey||n.metaKey)||n.ctrlKey&&n.altKey){if(n.char&&1<n.char.length)return n.char;if(n.which)return String.fromCharCode(n.which)}return null;case"compositionend":return ep&&n.locale!=="ko"?null:n.data;default:return null}}var hx={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 lp(e){var n=e&&e.nodeName&&e.nodeName.toLowerCase();return n==="input"?!!hx[e.type]:n==="textarea"}function op(e,n,l,u){_f(u),n=_l(n,"onChange"),0<n.length&&(l=new Nu("onChange","change",null,l,u),e.push({event:l,listeners:n}))}var gi=null,yi=null;function mx(e){Cp(e,0)}function Sl(e){var n=Sr(e);if(nl(n))return e}function gx(e,n){if(e==="change")return n}var up=!1;if(p){var Du;if(p){var Ou="oninput"in document;if(!Ou){var sp=document.createElement("div");sp.setAttribute("oninput","return;"),Ou=typeof sp.oninput=="function"}Du=Ou}else Du=!1;up=Du&&(!document.documentMode||9<document.documentMode)}function ap(){gi&&(gi.detachEvent("onpropertychange",cp),yi=gi=null)}function cp(e){if(e.propertyName==="value"&&Sl(yi)){var n=[];op(n,yi,e,mu(e)),Af(mx,n)}}function yx(e,n,l){e==="focusin"?(ap(),gi=n,yi=l,gi.attachEvent("onpropertychange",cp)):e==="focusout"&&ap()}function kx(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Sl(yi)}function vx(e,n){if(e==="click")return Sl(n)}function wx(e,n){if(e==="input"||e==="change")return Sl(n)}function xx(e,n){return e===n&&(e!==0||1/e===1/n)||e!==e&&n!==n}var jt=typeof Object.is=="function"?Object.is:xx;function ki(e,n){if(jt(e,n))return!0;if(typeof e!="object"||e===null||typeof n!="object"||n===null)return!1;var l=Object.keys(e),u=Object.keys(n);if(l.length!==u.length)return!1;for(u=0;u<l.length;u++){var f=l[u];if(!h.call(n,f)||!jt(e[f],n[f]))return!1}return!0}function fp(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function pp(e,n){var l=fp(e);e=0;for(var u;l;){if(l.nodeType===3){if(u=e+l.textContent.length,e<=n&&u>=n)return{node:l,offset:n-e};e=u}e:{for(;l;){if(l.nextSibling){l=l.nextSibling;break e}l=l.parentNode}l=void 0}l=fp(l)}}function dp(e,n){return e&&n?e===n?!0:e&&e.nodeType===3?!1:n&&n.nodeType===3?dp(e,n.parentNode):"contains"in e?e.contains(n):e.compareDocumentPosition?!!(e.compareDocumentPosition(n)&16):!1:!1}function hp(){for(var e=window,n=cr();n instanceof e.HTMLIFrameElement;){try{var l=typeof n.contentWindow.location.href=="string"}catch{l=!1}if(l)e=n.contentWindow;else break;n=cr(e.document)}return n}function Mu(e){var n=e&&e.nodeName&&e.nodeName.toLowerCase();return n&&(n==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||n==="textarea"||e.contentEditable==="true")}function Sx(e){var n=hp(),l=e.focusedElem,u=e.selectionRange;if(n!==l&&l&&l.ownerDocument&&dp(l.ownerDocument.documentElement,l)){if(u!==null&&Mu(l)){if(n=u.start,e=u.end,e===void 0&&(e=n),"selectionStart"in l)l.selectionStart=n,l.selectionEnd=Math.min(e,l.value.length);else if(e=(n=l.ownerDocument||document)&&n.defaultView||window,e.getSelection){e=e.getSelection();var f=l.textContent.length,d=Math.min(u.start,f);u=u.end===void 0?d:Math.min(u.end,f),!e.extend&&d>u&&(f=u,u=d,d=f),f=pp(l,d);var k=pp(l,u);f&&k&&(e.rangeCount!==1||e.anchorNode!==f.node||e.anchorOffset!==f.offset||e.focusNode!==k.node||e.focusOffset!==k.offset)&&(n=n.createRange(),n.setStart(f.node,f.offset),e.removeAllRanges(),d>u?(e.addRange(n),e.extend(k.node,k.offset)):(n.setEnd(k.node,k.offset),e.addRange(n)))}}for(n=[],e=l;e=e.parentNode;)e.nodeType===1&&n.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof l.focus=="function"&&l.focus(),l=0;l<n.length;l++)e=n[l],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var Ex=p&&"documentMode"in document&&11>=document.documentMode,kr=null,Fu=null,vi=null,ju=!1;function mp(e,n,l){var u=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;ju||kr==null||kr!==cr(u)||(u=kr,"selectionStart"in u&&Mu(u)?u={start:u.selectionStart,end:u.selectionEnd}:(u=(u.ownerDocument&&u.ownerDocument.defaultView||window).getSelection(),u={anchorNode:u.anchorNode,anchorOffset:u.anchorOffset,focusNode:u.focusNode,focusOffset:u.focusOffset}),vi&&ki(vi,u)||(vi=u,u=_l(Fu,"onSelect"),0<u.length&&(n=new Nu("onSelect","select",null,n,l),e.push({event:n,listeners:u}),n.target=kr)))}function El(e,n){var l={};return l[e.toLowerCase()]=n.toLowerCase(),l["Webkit"+e]="webkit"+n,l["Moz"+e]="moz"+n,l}var vr={animationend:El("Animation","AnimationEnd"),animationiteration:El("Animation","AnimationIteration"),animationstart:El("Animation","AnimationStart"),transitionend:El("Transition","TransitionEnd")},Bu={},gp={};p&&(gp=document.createElement("div").style,"AnimationEvent"in window||(delete vr.animationend.animation,delete vr.animationiteration.animation,delete vr.animationstart.animation),"TransitionEvent"in window||delete vr.transitionend.transition);function Cl(e){if(Bu[e])return Bu[e];if(!vr[e])return e;var n=vr[e],l;for(l in n)if(n.hasOwnProperty(l)&&l in gp)return Bu[e]=n[l];return e}var yp=Cl("animationend"),kp=Cl("animationiteration"),vp=Cl("animationstart"),wp=Cl("transitionend"),xp=new Map,Sp="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 Tn(e,n){xp.set(e,n),a(n,[e])}for(var Uu=0;Uu<Sp.length;Uu++){var $u=Sp[Uu],Cx=$u.toLowerCase(),Tx=$u[0].toUpperCase()+$u.slice(1);Tn(Cx,"on"+Tx)}Tn(yp,"onAnimationEnd"),Tn(kp,"onAnimationIteration"),Tn(vp,"onAnimationStart"),Tn("dblclick","onDoubleClick"),Tn("focusin","onFocus"),Tn("focusout","onBlur"),Tn(wp,"onTransitionEnd"),c("onMouseEnter",["mouseout","mouseover"]),c("onMouseLeave",["mouseout","mouseover"]),c("onPointerEnter",["pointerout","pointerover"]),c("onPointerLeave",["pointerout","pointerover"]),a("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),a("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),a("onBeforeInput",["compositionend","keypress","textInput","paste"]),a("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),a("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),a("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var wi="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(" "),_x=new Set("cancel close invalid load scroll toggle".split(" ").concat(wi));function Ep(e,n,l){var u=e.type||"unknown-event";e.currentTarget=l,Cw(u,n,void 0,e),e.currentTarget=null}function Cp(e,n){n=(n&4)!==0;for(var l=0;l<e.length;l++){var u=e[l],f=u.event;u=u.listeners;e:{var d=void 0;if(n)for(var k=u.length-1;0<=k;k--){var S=u[k],C=S.instance,b=S.currentTarget;if(S=S.listener,C!==d&&f.isPropagationStopped())break e;Ep(f,S,b),d=C}else for(k=0;k<u.length;k++){if(S=u[k],C=S.instance,b=S.currentTarget,S=S.listener,C!==d&&f.isPropagationStopped())break e;Ep(f,S,b),d=C}}}if(sl)throw e=vu,sl=!1,vu=null,e}function Oe(e,n){var l=n[Gu];l===void 0&&(l=n[Gu]=new Set);var u=e+"__bubble";l.has(u)||(Tp(n,e,2,!1),l.add(u))}function Vu(e,n,l){var u=0;n&&(u|=4),Tp(l,e,u,n)}var Tl="_reactListening"+Math.random().toString(36).slice(2);function xi(e){if(!e[Tl]){e[Tl]=!0,o.forEach(function(l){l!=="selectionchange"&&(_x.has(l)||Vu(l,!1,e),Vu(l,!0,e))});var n=e.nodeType===9?e:e.ownerDocument;n===null||n[Tl]||(n[Tl]=!0,Vu("selectionchange",!1,n))}}function Tp(e,n,l,u){switch(Yf(n)){case 1:var f=Bw;break;case 4:f=Uw;break;default:f=_u}l=f.bind(null,n,l,e),f=void 0,!ku||n!=="touchstart"&&n!=="touchmove"&&n!=="wheel"||(f=!0),u?f!==void 0?e.addEventListener(n,l,{capture:!0,passive:f}):e.addEventListener(n,l,!0):f!==void 0?e.addEventListener(n,l,{passive:f}):e.addEventListener(n,l,!1)}function Hu(e,n,l,u,f){var d=u;if((n&1)===0&&(n&2)===0&&u!==null)e:for(;;){if(u===null)return;var k=u.tag;if(k===3||k===4){var S=u.stateNode.containerInfo;if(S===f||S.nodeType===8&&S.parentNode===f)break;if(k===4)for(k=u.return;k!==null;){var C=k.tag;if((C===3||C===4)&&(C=k.stateNode.containerInfo,C===f||C.nodeType===8&&C.parentNode===f))return;k=k.return}for(;S!==null;){if(k=qn(S),k===null)return;if(C=k.tag,C===5||C===6){u=d=k;continue e}S=S.parentNode}}u=u.return}Af(function(){var b=d,B=mu(l),V=[];e:{var j=xp.get(e);if(j!==void 0){var G=Nu,re=e;switch(e){case"keypress":if(vl(l)===0)break e;case"keydown":case"keyup":G=nx;break;case"focusin":re="focus",G=Ru;break;case"focusout":re="blur",G=Ru;break;case"beforeblur":case"afterblur":G=Ru;break;case"click":if(l.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":G=Xf;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":G=Hw;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":G=lx;break;case yp:case kp:case vp:G=qw;break;case wp:G=ux;break;case"scroll":G=$w;break;case"wheel":G=ax;break;case"copy":case"cut":case"paste":G=Kw;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":G=Zf}var le=(n&4)!==0,He=!le&&e==="scroll",P=le?j!==null?j+"Capture":null:j;le=[];for(var T=b,N;T!==null;){N=T;var q=N.stateNode;if(N.tag===5&&q!==null&&(N=q,P!==null&&(q=ri(T,P),q!=null&&le.push(Si(T,q,N)))),He)break;T=T.return}0<le.length&&(j=new G(j,re,null,l,B),V.push({event:j,listeners:le}))}}if((n&7)===0){e:{if(j=e==="mouseover"||e==="pointerover",G=e==="mouseout"||e==="pointerout",j&&l!==Ct&&(re=l.relatedTarget||l.fromElement)&&(qn(re)||re[rn]))break e;if((G||j)&&(j=B.window===B?B:(j=B.ownerDocument)?j.defaultView||j.parentWindow:window,G?(re=l.relatedTarget||l.toElement,G=b,re=re?qn(re):null,re!==null&&(He=Qn(re),re!==He||re.tag!==5&&re.tag!==6)&&(re=null)):(G=null,re=b),G!==re)){if(le=Xf,q="onMouseLeave",P="onMouseEnter",T="mouse",(e==="pointerout"||e==="pointerover")&&(le=Zf,q="onPointerLeave",P="onPointerEnter",T="pointer"),He=G==null?j:Sr(G),N=re==null?j:Sr(re),j=new le(q,T+"leave",G,l,B),j.target=He,j.relatedTarget=N,q=null,qn(B)===b&&(le=new le(P,T+"enter",re,l,B),le.target=N,le.relatedTarget=He,q=le),He=q,G&&re)t:{for(le=G,P=re,T=0,N=le;N;N=wr(N))T++;for(N=0,q=P;q;q=wr(q))N++;for(;0<T-N;)le=wr(le),T--;for(;0<N-T;)P=wr(P),N--;for(;T--;){if(le===P||P!==null&&le===P.alternate)break t;le=wr(le),P=wr(P)}le=null}else le=null;G!==null&&_p(V,j,G,le,!1),re!==null&&He!==null&&_p(V,He,re,le,!0)}}e:{if(j=b?Sr(b):window,G=j.nodeName&&j.nodeName.toLowerCase(),G==="select"||G==="input"&&j.type==="file")var oe=gx;else if(lp(j))if(up)oe=wx;else{oe=kx;var ce=yx}else(G=j.nodeName)&&G.toLowerCase()==="input"&&(j.type==="checkbox"||j.type==="radio")&&(oe=vx);if(oe&&(oe=oe(e,b))){op(V,oe,l,B);break e}ce&&ce(e,j,b),e==="focusout"&&(ce=j._wrapperState)&&ce.controlled&&j.type==="number"&&pr(j,"number",j.value)}switch(ce=b?Sr(b):window,e){case"focusin":(lp(ce)||ce.contentEditable==="true")&&(kr=ce,Fu=b,vi=null);break;case"focusout":vi=Fu=kr=null;break;case"mousedown":ju=!0;break;case"contextmenu":case"mouseup":case"dragend":ju=!1,mp(V,l,B);break;case"selectionchange":if(Ex)break;case"keydown":case"keyup":mp(V,l,B)}var fe;if(Lu)e:{switch(e){case"compositionstart":var ge="onCompositionStart";break e;case"compositionend":ge="onCompositionEnd";break e;case"compositionupdate":ge="onCompositionUpdate";break e}ge=void 0}else yr?rp(e,l)&&(ge="onCompositionEnd"):e==="keydown"&&l.keyCode===229&&(ge="onCompositionStart");ge&&(ep&&l.locale!=="ko"&&(yr||ge!=="onCompositionStart"?ge==="onCompositionEnd"&&yr&&(fe=Kf()):(Cn=B,Pu="value"in Cn?Cn.value:Cn.textContent,yr=!0)),ce=_l(b,ge),0<ce.length&&(ge=new Jf(ge,e,null,l,B),V.push({event:ge,listeners:ce}),fe?ge.data=fe:(fe=ip(l),fe!==null&&(ge.data=fe)))),(fe=fx?px(e,l):dx(e,l))&&(b=_l(b,"onBeforeInput"),0<b.length&&(B=new Jf("onBeforeInput","beforeinput",null,l,B),V.push({event:B,listeners:b}),B.data=fe))}Cp(V,n)})}function Si(e,n,l){return{instance:e,listener:n,currentTarget:l}}function _l(e,n){for(var l=n+"Capture",u=[];e!==null;){var f=e,d=f.stateNode;f.tag===5&&d!==null&&(f=d,d=ri(e,l),d!=null&&u.unshift(Si(e,d,f)),d=ri(e,n),d!=null&&u.push(Si(e,d,f))),e=e.return}return u}function wr(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function _p(e,n,l,u,f){for(var d=n._reactName,k=[];l!==null&&l!==u;){var S=l,C=S.alternate,b=S.stateNode;if(C!==null&&C===u)break;S.tag===5&&b!==null&&(S=b,f?(C=ri(l,d),C!=null&&k.unshift(Si(l,C,S))):f||(C=ri(l,d),C!=null&&k.push(Si(l,C,S)))),l=l.return}k.length!==0&&e.push({event:n,listeners:k})}var Ix=/\r\n?/g,Px=/\u0000|\uFFFD/g;function Ip(e){return(typeof e=="string"?e:""+e).replace(Ix,`
6
- `).replace(Px,"")}function Il(e,n,l){if(n=Ip(n),Ip(e)!==n&&l)throw Error(r(425))}function Pl(){}var Wu=null,Qu=null;function qu(e,n){return e==="textarea"||e==="noscript"||typeof n.children=="string"||typeof n.children=="number"||typeof n.dangerouslySetInnerHTML=="object"&&n.dangerouslySetInnerHTML!==null&&n.dangerouslySetInnerHTML.__html!=null}var Yu=typeof setTimeout=="function"?setTimeout:void 0,Nx=typeof clearTimeout=="function"?clearTimeout:void 0,Pp=typeof Promise=="function"?Promise:void 0,Ax=typeof queueMicrotask=="function"?queueMicrotask:typeof Pp!="undefined"?function(e){return Pp.resolve(null).then(e).catch(bx)}:Yu;function bx(e){setTimeout(function(){throw e})}function Ku(e,n){var l=n,u=0;do{var f=l.nextSibling;if(e.removeChild(l),f&&f.nodeType===8)if(l=f.data,l==="/$"){if(u===0){e.removeChild(f),pi(n);return}u--}else l!=="$"&&l!=="$?"&&l!=="$!"||u++;l=f}while(l);pi(n)}function _n(e){for(;e!=null;e=e.nextSibling){var n=e.nodeType;if(n===1||n===3)break;if(n===8){if(n=e.data,n==="$"||n==="$!"||n==="$?")break;if(n==="/$")return null}}return e}function Np(e){e=e.previousSibling;for(var n=0;e;){if(e.nodeType===8){var l=e.data;if(l==="$"||l==="$!"||l==="$?"){if(n===0)return e;n--}else l==="/$"&&n++}e=e.previousSibling}return null}var xr=Math.random().toString(36).slice(2),Kt="__reactFiber$"+xr,Ei="__reactProps$"+xr,rn="__reactContainer$"+xr,Gu="__reactEvents$"+xr,Rx="__reactListeners$"+xr,zx="__reactHandles$"+xr;function qn(e){var n=e[Kt];if(n)return n;for(var l=e.parentNode;l;){if(n=l[rn]||l[Kt]){if(l=n.alternate,n.child!==null||l!==null&&l.child!==null)for(e=Np(e);e!==null;){if(l=e[Kt])return l;e=Np(e)}return n}e=l,l=e.parentNode}return null}function Ci(e){return e=e[Kt]||e[rn],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Sr(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(r(33))}function Nl(e){return e[Ei]||null}var Xu=[],Er=-1;function In(e){return{current:e}}function Me(e){0>Er||(e.current=Xu[Er],Xu[Er]=null,Er--)}function De(e,n){Er++,Xu[Er]=e.current,e.current=n}var Pn={},ot=In(Pn),yt=In(!1),Yn=Pn;function Cr(e,n){var l=e.type.contextTypes;if(!l)return Pn;var u=e.stateNode;if(u&&u.__reactInternalMemoizedUnmaskedChildContext===n)return u.__reactInternalMemoizedMaskedChildContext;var f={},d;for(d in l)f[d]=n[d];return u&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=n,e.__reactInternalMemoizedMaskedChildContext=f),f}function kt(e){return e=e.childContextTypes,e!=null}function Al(){Me(yt),Me(ot)}function Ap(e,n,l){if(ot.current!==Pn)throw Error(r(168));De(ot,n),De(yt,l)}function bp(e,n,l){var u=e.stateNode;if(n=n.childContextTypes,typeof u.getChildContext!="function")return l;u=u.getChildContext();for(var f in u)if(!(f in n))throw Error(r(108,Ne(e)||"Unknown",f));return x({},l,u)}function bl(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Pn,Yn=ot.current,De(ot,e),De(yt,yt.current),!0}function Rp(e,n,l){var u=e.stateNode;if(!u)throw Error(r(169));l?(e=bp(e,n,Yn),u.__reactInternalMemoizedMergedChildContext=e,Me(yt),Me(ot),De(ot,e)):Me(yt),De(yt,l)}var ln=null,Rl=!1,Ju=!1;function zp(e){ln===null?ln=[e]:ln.push(e)}function Lx(e){Rl=!0,zp(e)}function Nn(){if(!Ju&&ln!==null){Ju=!0;var e=0,n=Re;try{var l=ln;for(Re=1;e<l.length;e++){var u=l[e];do u=u(!0);while(u!==null)}ln=null,Rl=!1}catch(f){throw ln!==null&&(ln=ln.slice(e+1)),Df(wu,Nn),f}finally{Re=n,Ju=!1}}return null}var Tr=[],_r=0,zl=null,Ll=0,bt=[],Rt=0,Kn=null,on=1,un="";function Gn(e,n){Tr[_r++]=Ll,Tr[_r++]=zl,zl=e,Ll=n}function Lp(e,n,l){bt[Rt++]=on,bt[Rt++]=un,bt[Rt++]=Kn,Kn=e;var u=on;e=un;var f=32-Ft(u)-1;u&=~(1<<f),l+=1;var d=32-Ft(n)+f;if(30<d){var k=f-f%5;d=(u&(1<<k)-1).toString(32),u>>=k,f-=k,on=1<<32-Ft(n)+f|l<<f|u,un=d+e}else on=1<<d|l<<f|u,un=e}function Zu(e){e.return!==null&&(Gn(e,1),Lp(e,1,0))}function es(e){for(;e===zl;)zl=Tr[--_r],Tr[_r]=null,Ll=Tr[--_r],Tr[_r]=null;for(;e===Kn;)Kn=bt[--Rt],bt[Rt]=null,un=bt[--Rt],bt[Rt]=null,on=bt[--Rt],bt[Rt]=null}var _t=null,It=null,Fe=!1,Bt=null;function Dp(e,n){var l=Ot(5,null,null,0);l.elementType="DELETED",l.stateNode=n,l.return=e,n=e.deletions,n===null?(e.deletions=[l],e.flags|=16):n.push(l)}function Op(e,n){switch(e.tag){case 5:var l=e.type;return n=n.nodeType!==1||l.toLowerCase()!==n.nodeName.toLowerCase()?null:n,n!==null?(e.stateNode=n,_t=e,It=_n(n.firstChild),!0):!1;case 6:return n=e.pendingProps===""||n.nodeType!==3?null:n,n!==null?(e.stateNode=n,_t=e,It=null,!0):!1;case 13:return n=n.nodeType!==8?null:n,n!==null?(l=Kn!==null?{id:on,overflow:un}:null,e.memoizedState={dehydrated:n,treeContext:l,retryLane:1073741824},l=Ot(18,null,null,0),l.stateNode=n,l.return=e,e.child=l,_t=e,It=null,!0):!1;default:return!1}}function ts(e){return(e.mode&1)!==0&&(e.flags&128)===0}function ns(e){if(Fe){var n=It;if(n){var l=n;if(!Op(e,n)){if(ts(e))throw Error(r(418));n=_n(l.nextSibling);var u=_t;n&&Op(e,n)?Dp(u,l):(e.flags=e.flags&-4097|2,Fe=!1,_t=e)}}else{if(ts(e))throw Error(r(418));e.flags=e.flags&-4097|2,Fe=!1,_t=e}}}function Mp(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;_t=e}function Dl(e){if(e!==_t)return!1;if(!Fe)return Mp(e),Fe=!0,!1;var n;if((n=e.tag!==3)&&!(n=e.tag!==5)&&(n=e.type,n=n!=="head"&&n!=="body"&&!qu(e.type,e.memoizedProps)),n&&(n=It)){if(ts(e))throw Fp(),Error(r(418));for(;n;)Dp(e,n),n=_n(n.nextSibling)}if(Mp(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(r(317));e:{for(e=e.nextSibling,n=0;e;){if(e.nodeType===8){var l=e.data;if(l==="/$"){if(n===0){It=_n(e.nextSibling);break e}n--}else l!=="$"&&l!=="$!"&&l!=="$?"||n++}e=e.nextSibling}It=null}}else It=_t?_n(e.stateNode.nextSibling):null;return!0}function Fp(){for(var e=It;e;)e=_n(e.nextSibling)}function Ir(){It=_t=null,Fe=!1}function rs(e){Bt===null?Bt=[e]:Bt.push(e)}var Dx=ne.ReactCurrentBatchConfig;function Ti(e,n,l){if(e=l.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(l._owner){if(l=l._owner,l){if(l.tag!==1)throw Error(r(309));var u=l.stateNode}if(!u)throw Error(r(147,e));var f=u,d=""+e;return n!==null&&n.ref!==null&&typeof n.ref=="function"&&n.ref._stringRef===d?n.ref:(n=function(k){var S=f.refs;k===null?delete S[d]:S[d]=k},n._stringRef=d,n)}if(typeof e!="string")throw Error(r(284));if(!l._owner)throw Error(r(290,e))}return e}function Ol(e,n){throw e=Object.prototype.toString.call(n),Error(r(31,e==="[object Object]"?"object with keys {"+Object.keys(n).join(", ")+"}":e))}function jp(e){var n=e._init;return n(e._payload)}function Bp(e){function n(P,T){if(e){var N=P.deletions;N===null?(P.deletions=[T],P.flags|=16):N.push(T)}}function l(P,T){if(!e)return null;for(;T!==null;)n(P,T),T=T.sibling;return null}function u(P,T){for(P=new Map;T!==null;)T.key!==null?P.set(T.key,T):P.set(T.index,T),T=T.sibling;return P}function f(P,T){return P=Mn(P,T),P.index=0,P.sibling=null,P}function d(P,T,N){return P.index=N,e?(N=P.alternate,N!==null?(N=N.index,N<T?(P.flags|=2,T):N):(P.flags|=2,T)):(P.flags|=1048576,T)}function k(P){return e&&P.alternate===null&&(P.flags|=2),P}function S(P,T,N,q){return T===null||T.tag!==6?(T=Ys(N,P.mode,q),T.return=P,T):(T=f(T,N),T.return=P,T)}function C(P,T,N,q){var oe=N.type;return oe===se?B(P,T,N.props.children,q,N.key):T!==null&&(T.elementType===oe||typeof oe=="object"&&oe!==null&&oe.$$typeof===Z&&jp(oe)===T.type)?(q=f(T,N.props),q.ref=Ti(P,T,N),q.return=P,q):(q=oo(N.type,N.key,N.props,null,P.mode,q),q.ref=Ti(P,T,N),q.return=P,q)}function b(P,T,N,q){return T===null||T.tag!==4||T.stateNode.containerInfo!==N.containerInfo||T.stateNode.implementation!==N.implementation?(T=Ks(N,P.mode,q),T.return=P,T):(T=f(T,N.children||[]),T.return=P,T)}function B(P,T,N,q,oe){return T===null||T.tag!==7?(T=ir(N,P.mode,q,oe),T.return=P,T):(T=f(T,N),T.return=P,T)}function V(P,T,N){if(typeof T=="string"&&T!==""||typeof T=="number")return T=Ys(""+T,P.mode,N),T.return=P,T;if(typeof T=="object"&&T!==null){switch(T.$$typeof){case ue:return N=oo(T.type,T.key,T.props,null,P.mode,N),N.ref=Ti(P,null,T),N.return=P,N;case L:return T=Ks(T,P.mode,N),T.return=P,T;case Z:var q=T._init;return V(P,q(T._payload),N)}if(yn(T)||ee(T))return T=ir(T,P.mode,N,null),T.return=P,T;Ol(P,T)}return null}function j(P,T,N,q){var oe=T!==null?T.key:null;if(typeof N=="string"&&N!==""||typeof N=="number")return oe!==null?null:S(P,T,""+N,q);if(typeof N=="object"&&N!==null){switch(N.$$typeof){case ue:return N.key===oe?C(P,T,N,q):null;case L:return N.key===oe?b(P,T,N,q):null;case Z:return oe=N._init,j(P,T,oe(N._payload),q)}if(yn(N)||ee(N))return oe!==null?null:B(P,T,N,q,null);Ol(P,N)}return null}function G(P,T,N,q,oe){if(typeof q=="string"&&q!==""||typeof q=="number")return P=P.get(N)||null,S(T,P,""+q,oe);if(typeof q=="object"&&q!==null){switch(q.$$typeof){case ue:return P=P.get(q.key===null?N:q.key)||null,C(T,P,q,oe);case L:return P=P.get(q.key===null?N:q.key)||null,b(T,P,q,oe);case Z:var ce=q._init;return G(P,T,N,ce(q._payload),oe)}if(yn(q)||ee(q))return P=P.get(N)||null,B(T,P,q,oe,null);Ol(T,q)}return null}function re(P,T,N,q){for(var oe=null,ce=null,fe=T,ge=T=0,Ze=null;fe!==null&&ge<N.length;ge++){fe.index>ge?(Ze=fe,fe=null):Ze=fe.sibling;var Ae=j(P,fe,N[ge],q);if(Ae===null){fe===null&&(fe=Ze);break}e&&fe&&Ae.alternate===null&&n(P,fe),T=d(Ae,T,ge),ce===null?oe=Ae:ce.sibling=Ae,ce=Ae,fe=Ze}if(ge===N.length)return l(P,fe),Fe&&Gn(P,ge),oe;if(fe===null){for(;ge<N.length;ge++)fe=V(P,N[ge],q),fe!==null&&(T=d(fe,T,ge),ce===null?oe=fe:ce.sibling=fe,ce=fe);return Fe&&Gn(P,ge),oe}for(fe=u(P,fe);ge<N.length;ge++)Ze=G(fe,P,ge,N[ge],q),Ze!==null&&(e&&Ze.alternate!==null&&fe.delete(Ze.key===null?ge:Ze.key),T=d(Ze,T,ge),ce===null?oe=Ze:ce.sibling=Ze,ce=Ze);return e&&fe.forEach(function(Fn){return n(P,Fn)}),Fe&&Gn(P,ge),oe}function le(P,T,N,q){var oe=ee(N);if(typeof oe!="function")throw Error(r(150));if(N=oe.call(N),N==null)throw Error(r(151));for(var ce=oe=null,fe=T,ge=T=0,Ze=null,Ae=N.next();fe!==null&&!Ae.done;ge++,Ae=N.next()){fe.index>ge?(Ze=fe,fe=null):Ze=fe.sibling;var Fn=j(P,fe,Ae.value,q);if(Fn===null){fe===null&&(fe=Ze);break}e&&fe&&Fn.alternate===null&&n(P,fe),T=d(Fn,T,ge),ce===null?oe=Fn:ce.sibling=Fn,ce=Fn,fe=Ze}if(Ae.done)return l(P,fe),Fe&&Gn(P,ge),oe;if(fe===null){for(;!Ae.done;ge++,Ae=N.next())Ae=V(P,Ae.value,q),Ae!==null&&(T=d(Ae,T,ge),ce===null?oe=Ae:ce.sibling=Ae,ce=Ae);return Fe&&Gn(P,ge),oe}for(fe=u(P,fe);!Ae.done;ge++,Ae=N.next())Ae=G(fe,P,ge,Ae.value,q),Ae!==null&&(e&&Ae.alternate!==null&&fe.delete(Ae.key===null?ge:Ae.key),T=d(Ae,T,ge),ce===null?oe=Ae:ce.sibling=Ae,ce=Ae);return e&&fe.forEach(function(h0){return n(P,h0)}),Fe&&Gn(P,ge),oe}function He(P,T,N,q){if(typeof N=="object"&&N!==null&&N.type===se&&N.key===null&&(N=N.props.children),typeof N=="object"&&N!==null){switch(N.$$typeof){case ue:e:{for(var oe=N.key,ce=T;ce!==null;){if(ce.key===oe){if(oe=N.type,oe===se){if(ce.tag===7){l(P,ce.sibling),T=f(ce,N.props.children),T.return=P,P=T;break e}}else if(ce.elementType===oe||typeof oe=="object"&&oe!==null&&oe.$$typeof===Z&&jp(oe)===ce.type){l(P,ce.sibling),T=f(ce,N.props),T.ref=Ti(P,ce,N),T.return=P,P=T;break e}l(P,ce);break}else n(P,ce);ce=ce.sibling}N.type===se?(T=ir(N.props.children,P.mode,q,N.key),T.return=P,P=T):(q=oo(N.type,N.key,N.props,null,P.mode,q),q.ref=Ti(P,T,N),q.return=P,P=q)}return k(P);case L:e:{for(ce=N.key;T!==null;){if(T.key===ce)if(T.tag===4&&T.stateNode.containerInfo===N.containerInfo&&T.stateNode.implementation===N.implementation){l(P,T.sibling),T=f(T,N.children||[]),T.return=P,P=T;break e}else{l(P,T);break}else n(P,T);T=T.sibling}T=Ks(N,P.mode,q),T.return=P,P=T}return k(P);case Z:return ce=N._init,He(P,T,ce(N._payload),q)}if(yn(N))return re(P,T,N,q);if(ee(N))return le(P,T,N,q);Ol(P,N)}return typeof N=="string"&&N!==""||typeof N=="number"?(N=""+N,T!==null&&T.tag===6?(l(P,T.sibling),T=f(T,N),T.return=P,P=T):(l(P,T),T=Ys(N,P.mode,q),T.return=P,P=T),k(P)):l(P,T)}return He}var Pr=Bp(!0),Up=Bp(!1),Ml=In(null),Fl=null,Nr=null,is=null;function ls(){is=Nr=Fl=null}function os(e){var n=Ml.current;Me(Ml),e._currentValue=n}function us(e,n,l){for(;e!==null;){var u=e.alternate;if((e.childLanes&n)!==n?(e.childLanes|=n,u!==null&&(u.childLanes|=n)):u!==null&&(u.childLanes&n)!==n&&(u.childLanes|=n),e===l)break;e=e.return}}function Ar(e,n){Fl=e,is=Nr=null,e=e.dependencies,e!==null&&e.firstContext!==null&&((e.lanes&n)!==0&&(vt=!0),e.firstContext=null)}function zt(e){var n=e._currentValue;if(is!==e)if(e={context:e,memoizedValue:n,next:null},Nr===null){if(Fl===null)throw Error(r(308));Nr=e,Fl.dependencies={lanes:0,firstContext:e}}else Nr=Nr.next=e;return n}var Xn=null;function ss(e){Xn===null?Xn=[e]:Xn.push(e)}function $p(e,n,l,u){var f=n.interleaved;return f===null?(l.next=l,ss(n)):(l.next=f.next,f.next=l),n.interleaved=l,sn(e,u)}function sn(e,n){e.lanes|=n;var l=e.alternate;for(l!==null&&(l.lanes|=n),l=e,e=e.return;e!==null;)e.childLanes|=n,l=e.alternate,l!==null&&(l.childLanes|=n),l=e,e=e.return;return l.tag===3?l.stateNode:null}var An=!1;function as(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Vp(e,n){e=e.updateQueue,n.updateQueue===e&&(n.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function an(e,n){return{eventTime:e,lane:n,tag:0,payload:null,callback:null,next:null}}function bn(e,n,l){var u=e.updateQueue;if(u===null)return null;if(u=u.shared,(Pe&2)!==0){var f=u.pending;return f===null?n.next=n:(n.next=f.next,f.next=n),u.pending=n,sn(e,l)}return f=u.interleaved,f===null?(n.next=n,ss(u)):(n.next=f.next,f.next=n),u.interleaved=n,sn(e,l)}function jl(e,n,l){if(n=n.updateQueue,n!==null&&(n=n.shared,(l&4194240)!==0)){var u=n.lanes;u&=e.pendingLanes,l|=u,n.lanes=l,Eu(e,l)}}function Hp(e,n){var l=e.updateQueue,u=e.alternate;if(u!==null&&(u=u.updateQueue,l===u)){var f=null,d=null;if(l=l.firstBaseUpdate,l!==null){do{var k={eventTime:l.eventTime,lane:l.lane,tag:l.tag,payload:l.payload,callback:l.callback,next:null};d===null?f=d=k:d=d.next=k,l=l.next}while(l!==null);d===null?f=d=n:d=d.next=n}else f=d=n;l={baseState:u.baseState,firstBaseUpdate:f,lastBaseUpdate:d,shared:u.shared,effects:u.effects},e.updateQueue=l;return}e=l.lastBaseUpdate,e===null?l.firstBaseUpdate=n:e.next=n,l.lastBaseUpdate=n}function Bl(e,n,l,u){var f=e.updateQueue;An=!1;var d=f.firstBaseUpdate,k=f.lastBaseUpdate,S=f.shared.pending;if(S!==null){f.shared.pending=null;var C=S,b=C.next;C.next=null,k===null?d=b:k.next=b,k=C;var B=e.alternate;B!==null&&(B=B.updateQueue,S=B.lastBaseUpdate,S!==k&&(S===null?B.firstBaseUpdate=b:S.next=b,B.lastBaseUpdate=C))}if(d!==null){var V=f.baseState;k=0,B=b=C=null,S=d;do{var j=S.lane,G=S.eventTime;if((u&j)===j){B!==null&&(B=B.next={eventTime:G,lane:0,tag:S.tag,payload:S.payload,callback:S.callback,next:null});e:{var re=e,le=S;switch(j=n,G=l,le.tag){case 1:if(re=le.payload,typeof re=="function"){V=re.call(G,V,j);break e}V=re;break e;case 3:re.flags=re.flags&-65537|128;case 0:if(re=le.payload,j=typeof re=="function"?re.call(G,V,j):re,j==null)break e;V=x({},V,j);break e;case 2:An=!0}}S.callback!==null&&S.lane!==0&&(e.flags|=64,j=f.effects,j===null?f.effects=[S]:j.push(S))}else G={eventTime:G,lane:j,tag:S.tag,payload:S.payload,callback:S.callback,next:null},B===null?(b=B=G,C=V):B=B.next=G,k|=j;if(S=S.next,S===null){if(S=f.shared.pending,S===null)break;j=S,S=j.next,j.next=null,f.lastBaseUpdate=j,f.shared.pending=null}}while(!0);if(B===null&&(C=V),f.baseState=C,f.firstBaseUpdate=b,f.lastBaseUpdate=B,n=f.shared.interleaved,n!==null){f=n;do k|=f.lane,f=f.next;while(f!==n)}else d===null&&(f.shared.lanes=0);er|=k,e.lanes=k,e.memoizedState=V}}function Wp(e,n,l){if(e=n.effects,n.effects=null,e!==null)for(n=0;n<e.length;n++){var u=e[n],f=u.callback;if(f!==null){if(u.callback=null,u=l,typeof f!="function")throw Error(r(191,f));f.call(u)}}}var _i={},Gt=In(_i),Ii=In(_i),Pi=In(_i);function Jn(e){if(e===_i)throw Error(r(174));return e}function cs(e,n){switch(De(Pi,n),De(Ii,e),De(Gt,_i),e=n.nodeType,e){case 9:case 11:n=(n=n.documentElement)?n.namespaceURI:Y(null,"");break;default:e=e===8?n.parentNode:n,n=e.namespaceURI||null,e=e.tagName,n=Y(n,e)}Me(Gt),De(Gt,n)}function br(){Me(Gt),Me(Ii),Me(Pi)}function Qp(e){Jn(Pi.current);var n=Jn(Gt.current),l=Y(n,e.type);n!==l&&(De(Ii,e),De(Gt,l))}function fs(e){Ii.current===e&&(Me(Gt),Me(Ii))}var Be=In(0);function Ul(e){for(var n=e;n!==null;){if(n.tag===13){var l=n.memoizedState;if(l!==null&&(l=l.dehydrated,l===null||l.data==="$?"||l.data==="$!"))return n}else if(n.tag===19&&n.memoizedProps.revealOrder!==void 0){if((n.flags&128)!==0)return n}else if(n.child!==null){n.child.return=n,n=n.child;continue}if(n===e)break;for(;n.sibling===null;){if(n.return===null||n.return===e)return null;n=n.return}n.sibling.return=n.return,n=n.sibling}return null}var ps=[];function ds(){for(var e=0;e<ps.length;e++)ps[e]._workInProgressVersionPrimary=null;ps.length=0}var $l=ne.ReactCurrentDispatcher,hs=ne.ReactCurrentBatchConfig,Zn=0,Ue=null,Ke=null,Xe=null,Vl=!1,Ni=!1,Ai=0,Ox=0;function ut(){throw Error(r(321))}function ms(e,n){if(n===null)return!1;for(var l=0;l<n.length&&l<e.length;l++)if(!jt(e[l],n[l]))return!1;return!0}function gs(e,n,l,u,f,d){if(Zn=d,Ue=n,n.memoizedState=null,n.updateQueue=null,n.lanes=0,$l.current=e===null||e.memoizedState===null?Bx:Ux,e=l(u,f),Ni){d=0;do{if(Ni=!1,Ai=0,25<=d)throw Error(r(301));d+=1,Xe=Ke=null,n.updateQueue=null,$l.current=$x,e=l(u,f)}while(Ni)}if($l.current=Ql,n=Ke!==null&&Ke.next!==null,Zn=0,Xe=Ke=Ue=null,Vl=!1,n)throw Error(r(300));return e}function ys(){var e=Ai!==0;return Ai=0,e}function Xt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Xe===null?Ue.memoizedState=Xe=e:Xe=Xe.next=e,Xe}function Lt(){if(Ke===null){var e=Ue.alternate;e=e!==null?e.memoizedState:null}else e=Ke.next;var n=Xe===null?Ue.memoizedState:Xe.next;if(n!==null)Xe=n,Ke=e;else{if(e===null)throw Error(r(310));Ke=e,e={memoizedState:Ke.memoizedState,baseState:Ke.baseState,baseQueue:Ke.baseQueue,queue:Ke.queue,next:null},Xe===null?Ue.memoizedState=Xe=e:Xe=Xe.next=e}return Xe}function bi(e,n){return typeof n=="function"?n(e):n}function ks(e){var n=Lt(),l=n.queue;if(l===null)throw Error(r(311));l.lastRenderedReducer=e;var u=Ke,f=u.baseQueue,d=l.pending;if(d!==null){if(f!==null){var k=f.next;f.next=d.next,d.next=k}u.baseQueue=f=d,l.pending=null}if(f!==null){d=f.next,u=u.baseState;var S=k=null,C=null,b=d;do{var B=b.lane;if((Zn&B)===B)C!==null&&(C=C.next={lane:0,action:b.action,hasEagerState:b.hasEagerState,eagerState:b.eagerState,next:null}),u=b.hasEagerState?b.eagerState:e(u,b.action);else{var V={lane:B,action:b.action,hasEagerState:b.hasEagerState,eagerState:b.eagerState,next:null};C===null?(S=C=V,k=u):C=C.next=V,Ue.lanes|=B,er|=B}b=b.next}while(b!==null&&b!==d);C===null?k=u:C.next=S,jt(u,n.memoizedState)||(vt=!0),n.memoizedState=u,n.baseState=k,n.baseQueue=C,l.lastRenderedState=u}if(e=l.interleaved,e!==null){f=e;do d=f.lane,Ue.lanes|=d,er|=d,f=f.next;while(f!==e)}else f===null&&(l.lanes=0);return[n.memoizedState,l.dispatch]}function vs(e){var n=Lt(),l=n.queue;if(l===null)throw Error(r(311));l.lastRenderedReducer=e;var u=l.dispatch,f=l.pending,d=n.memoizedState;if(f!==null){l.pending=null;var k=f=f.next;do d=e(d,k.action),k=k.next;while(k!==f);jt(d,n.memoizedState)||(vt=!0),n.memoizedState=d,n.baseQueue===null&&(n.baseState=d),l.lastRenderedState=d}return[d,u]}function qp(){}function Yp(e,n){var l=Ue,u=Lt(),f=n(),d=!jt(u.memoizedState,f);if(d&&(u.memoizedState=f,vt=!0),u=u.queue,ws(Xp.bind(null,l,u,e),[e]),u.getSnapshot!==n||d||Xe!==null&&Xe.memoizedState.tag&1){if(l.flags|=2048,Ri(9,Gp.bind(null,l,u,f,n),void 0,null),Je===null)throw Error(r(349));(Zn&30)!==0||Kp(l,n,f)}return f}function Kp(e,n,l){e.flags|=16384,e={getSnapshot:n,value:l},n=Ue.updateQueue,n===null?(n={lastEffect:null,stores:null},Ue.updateQueue=n,n.stores=[e]):(l=n.stores,l===null?n.stores=[e]:l.push(e))}function Gp(e,n,l,u){n.value=l,n.getSnapshot=u,Jp(n)&&Zp(e)}function Xp(e,n,l){return l(function(){Jp(n)&&Zp(e)})}function Jp(e){var n=e.getSnapshot;e=e.value;try{var l=n();return!jt(e,l)}catch{return!0}}function Zp(e){var n=sn(e,1);n!==null&&Ht(n,e,1,-1)}function ed(e){var n=Xt();return typeof e=="function"&&(e=e()),n.memoizedState=n.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:bi,lastRenderedState:e},n.queue=e,e=e.dispatch=jx.bind(null,Ue,e),[n.memoizedState,e]}function Ri(e,n,l,u){return e={tag:e,create:n,destroy:l,deps:u,next:null},n=Ue.updateQueue,n===null?(n={lastEffect:null,stores:null},Ue.updateQueue=n,n.lastEffect=e.next=e):(l=n.lastEffect,l===null?n.lastEffect=e.next=e:(u=l.next,l.next=e,e.next=u,n.lastEffect=e)),e}function td(){return Lt().memoizedState}function Hl(e,n,l,u){var f=Xt();Ue.flags|=e,f.memoizedState=Ri(1|n,l,void 0,u===void 0?null:u)}function Wl(e,n,l,u){var f=Lt();u=u===void 0?null:u;var d=void 0;if(Ke!==null){var k=Ke.memoizedState;if(d=k.destroy,u!==null&&ms(u,k.deps)){f.memoizedState=Ri(n,l,d,u);return}}Ue.flags|=e,f.memoizedState=Ri(1|n,l,d,u)}function nd(e,n){return Hl(8390656,8,e,n)}function ws(e,n){return Wl(2048,8,e,n)}function rd(e,n){return Wl(4,2,e,n)}function id(e,n){return Wl(4,4,e,n)}function ld(e,n){if(typeof n=="function")return e=e(),n(e),function(){n(null)};if(n!=null)return e=e(),n.current=e,function(){n.current=null}}function od(e,n,l){return l=l!=null?l.concat([e]):null,Wl(4,4,ld.bind(null,n,e),l)}function xs(){}function ud(e,n){var l=Lt();n=n===void 0?null:n;var u=l.memoizedState;return u!==null&&n!==null&&ms(n,u[1])?u[0]:(l.memoizedState=[e,n],e)}function sd(e,n){var l=Lt();n=n===void 0?null:n;var u=l.memoizedState;return u!==null&&n!==null&&ms(n,u[1])?u[0]:(e=e(),l.memoizedState=[e,n],e)}function ad(e,n,l){return(Zn&21)===0?(e.baseState&&(e.baseState=!1,vt=!0),e.memoizedState=l):(jt(l,n)||(l=jf(),Ue.lanes|=l,er|=l,e.baseState=!0),n)}function Mx(e,n){var l=Re;Re=l!==0&&4>l?l:4,e(!0);var u=hs.transition;hs.transition={};try{e(!1),n()}finally{Re=l,hs.transition=u}}function cd(){return Lt().memoizedState}function Fx(e,n,l){var u=Dn(e);if(l={lane:u,action:l,hasEagerState:!1,eagerState:null,next:null},fd(e))pd(n,l);else if(l=$p(e,n,l,u),l!==null){var f=pt();Ht(l,e,u,f),dd(l,n,u)}}function jx(e,n,l){var u=Dn(e),f={lane:u,action:l,hasEagerState:!1,eagerState:null,next:null};if(fd(e))pd(n,f);else{var d=e.alternate;if(e.lanes===0&&(d===null||d.lanes===0)&&(d=n.lastRenderedReducer,d!==null))try{var k=n.lastRenderedState,S=d(k,l);if(f.hasEagerState=!0,f.eagerState=S,jt(S,k)){var C=n.interleaved;C===null?(f.next=f,ss(n)):(f.next=C.next,C.next=f),n.interleaved=f;return}}catch{}l=$p(e,n,f,u),l!==null&&(f=pt(),Ht(l,e,u,f),dd(l,n,u))}}function fd(e){var n=e.alternate;return e===Ue||n!==null&&n===Ue}function pd(e,n){Ni=Vl=!0;var l=e.pending;l===null?n.next=n:(n.next=l.next,l.next=n),e.pending=n}function dd(e,n,l){if((l&4194240)!==0){var u=n.lanes;u&=e.pendingLanes,l|=u,n.lanes=l,Eu(e,l)}}var Ql={readContext:zt,useCallback:ut,useContext:ut,useEffect:ut,useImperativeHandle:ut,useInsertionEffect:ut,useLayoutEffect:ut,useMemo:ut,useReducer:ut,useRef:ut,useState:ut,useDebugValue:ut,useDeferredValue:ut,useTransition:ut,useMutableSource:ut,useSyncExternalStore:ut,useId:ut,unstable_isNewReconciler:!1},Bx={readContext:zt,useCallback:function(e,n){return Xt().memoizedState=[e,n===void 0?null:n],e},useContext:zt,useEffect:nd,useImperativeHandle:function(e,n,l){return l=l!=null?l.concat([e]):null,Hl(4194308,4,ld.bind(null,n,e),l)},useLayoutEffect:function(e,n){return Hl(4194308,4,e,n)},useInsertionEffect:function(e,n){return Hl(4,2,e,n)},useMemo:function(e,n){var l=Xt();return n=n===void 0?null:n,e=e(),l.memoizedState=[e,n],e},useReducer:function(e,n,l){var u=Xt();return n=l!==void 0?l(n):n,u.memoizedState=u.baseState=n,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:n},u.queue=e,e=e.dispatch=Fx.bind(null,Ue,e),[u.memoizedState,e]},useRef:function(e){var n=Xt();return e={current:e},n.memoizedState=e},useState:ed,useDebugValue:xs,useDeferredValue:function(e){return Xt().memoizedState=e},useTransition:function(){var e=ed(!1),n=e[0];return e=Mx.bind(null,e[1]),Xt().memoizedState=e,[n,e]},useMutableSource:function(){},useSyncExternalStore:function(e,n,l){var u=Ue,f=Xt();if(Fe){if(l===void 0)throw Error(r(407));l=l()}else{if(l=n(),Je===null)throw Error(r(349));(Zn&30)!==0||Kp(u,n,l)}f.memoizedState=l;var d={value:l,getSnapshot:n};return f.queue=d,nd(Xp.bind(null,u,d,e),[e]),u.flags|=2048,Ri(9,Gp.bind(null,u,d,l,n),void 0,null),l},useId:function(){var e=Xt(),n=Je.identifierPrefix;if(Fe){var l=un,u=on;l=(u&~(1<<32-Ft(u)-1)).toString(32)+l,n=":"+n+"R"+l,l=Ai++,0<l&&(n+="H"+l.toString(32)),n+=":"}else l=Ox++,n=":"+n+"r"+l.toString(32)+":";return e.memoizedState=n},unstable_isNewReconciler:!1},Ux={readContext:zt,useCallback:ud,useContext:zt,useEffect:ws,useImperativeHandle:od,useInsertionEffect:rd,useLayoutEffect:id,useMemo:sd,useReducer:ks,useRef:td,useState:function(){return ks(bi)},useDebugValue:xs,useDeferredValue:function(e){var n=Lt();return ad(n,Ke.memoizedState,e)},useTransition:function(){var e=ks(bi)[0],n=Lt().memoizedState;return[e,n]},useMutableSource:qp,useSyncExternalStore:Yp,useId:cd,unstable_isNewReconciler:!1},$x={readContext:zt,useCallback:ud,useContext:zt,useEffect:ws,useImperativeHandle:od,useInsertionEffect:rd,useLayoutEffect:id,useMemo:sd,useReducer:vs,useRef:td,useState:function(){return vs(bi)},useDebugValue:xs,useDeferredValue:function(e){var n=Lt();return Ke===null?n.memoizedState=e:ad(n,Ke.memoizedState,e)},useTransition:function(){var e=vs(bi)[0],n=Lt().memoizedState;return[e,n]},useMutableSource:qp,useSyncExternalStore:Yp,useId:cd,unstable_isNewReconciler:!1};function Ut(e,n){if(e&&e.defaultProps){n=x({},n),e=e.defaultProps;for(var l in e)n[l]===void 0&&(n[l]=e[l]);return n}return n}function Ss(e,n,l,u){n=e.memoizedState,l=l(u,n),l=l==null?n:x({},n,l),e.memoizedState=l,e.lanes===0&&(e.updateQueue.baseState=l)}var ql={isMounted:function(e){return(e=e._reactInternals)?Qn(e)===e:!1},enqueueSetState:function(e,n,l){e=e._reactInternals;var u=pt(),f=Dn(e),d=an(u,f);d.payload=n,l!=null&&(d.callback=l),n=bn(e,d,f),n!==null&&(Ht(n,e,f,u),jl(n,e,f))},enqueueReplaceState:function(e,n,l){e=e._reactInternals;var u=pt(),f=Dn(e),d=an(u,f);d.tag=1,d.payload=n,l!=null&&(d.callback=l),n=bn(e,d,f),n!==null&&(Ht(n,e,f,u),jl(n,e,f))},enqueueForceUpdate:function(e,n){e=e._reactInternals;var l=pt(),u=Dn(e),f=an(l,u);f.tag=2,n!=null&&(f.callback=n),n=bn(e,f,u),n!==null&&(Ht(n,e,u,l),jl(n,e,u))}};function hd(e,n,l,u,f,d,k){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(u,d,k):n.prototype&&n.prototype.isPureReactComponent?!ki(l,u)||!ki(f,d):!0}function md(e,n,l){var u=!1,f=Pn,d=n.contextType;return typeof d=="object"&&d!==null?d=zt(d):(f=kt(n)?Yn:ot.current,u=n.contextTypes,d=(u=u!=null)?Cr(e,f):Pn),n=new n(l,d),e.memoizedState=n.state!==null&&n.state!==void 0?n.state:null,n.updater=ql,e.stateNode=n,n._reactInternals=e,u&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=f,e.__reactInternalMemoizedMaskedChildContext=d),n}function gd(e,n,l,u){e=n.state,typeof n.componentWillReceiveProps=="function"&&n.componentWillReceiveProps(l,u),typeof n.UNSAFE_componentWillReceiveProps=="function"&&n.UNSAFE_componentWillReceiveProps(l,u),n.state!==e&&ql.enqueueReplaceState(n,n.state,null)}function Es(e,n,l,u){var f=e.stateNode;f.props=l,f.state=e.memoizedState,f.refs={},as(e);var d=n.contextType;typeof d=="object"&&d!==null?f.context=zt(d):(d=kt(n)?Yn:ot.current,f.context=Cr(e,d)),f.state=e.memoizedState,d=n.getDerivedStateFromProps,typeof d=="function"&&(Ss(e,n,d,l),f.state=e.memoizedState),typeof n.getDerivedStateFromProps=="function"||typeof f.getSnapshotBeforeUpdate=="function"||typeof f.UNSAFE_componentWillMount!="function"&&typeof f.componentWillMount!="function"||(n=f.state,typeof f.componentWillMount=="function"&&f.componentWillMount(),typeof f.UNSAFE_componentWillMount=="function"&&f.UNSAFE_componentWillMount(),n!==f.state&&ql.enqueueReplaceState(f,f.state,null),Bl(e,l,f,u),f.state=e.memoizedState),typeof f.componentDidMount=="function"&&(e.flags|=4194308)}function Rr(e,n){try{var l="",u=n;do l+=we(u),u=u.return;while(u);var f=l}catch(d){f=`
5
+ `+f[k].replace(" at new "," at ");return e.displayName&&C.includes("<anonymous>")&&(C=C.replace("<anonymous>",e.displayName)),C}while(1<=k&&0<=S);break}}}finally{E=!1,Error.prepareStackTrace=l}return(e=e?e.displayName||e.name:"")?F(e):""}function xe(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=pe(e.type,!1),e;case 11:return e=pe(e.type.render,!1),e;case 1:return e=pe(e.type,!0),e;default:return""}}function fe(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case oe:return"Fragment";case L:return"Portal";case ke:return"Profiler";case he:return"StrictMode";case J:return"Suspense";case Y:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case W:return(e.displayName||"Context")+".Consumer";case P:return(e._context.displayName||"Context")+".Provider";case G:var n=e.render;return e=e.displayName,e||(e=n.displayName||n.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case H:return n=e.displayName||null,n!==null?n:fe(e.type)||"Memo";case ce:n=e._payload,e=e._init;try{return fe(e(n))}catch{}}return null}function Ae(e){var n=e.type;switch(e.tag){case 24:return"Cache";case 9:return(n.displayName||"Context")+".Consumer";case 10:return(n._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=n.render,e=e.displayName||e.name||"",n.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return n;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return fe(n);case 8:return n===he?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof n=="function")return n.displayName||n.name||null;if(typeof n=="string")return n}return null}function Se(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Re(e){var n=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(n==="checkbox"||n==="radio")}function qe(e){var n=Re(e)?"checked":"value",l=Object.getOwnPropertyDescriptor(e.constructor.prototype,n),u=""+e[n];if(!e.hasOwnProperty(n)&&typeof l!="undefined"&&typeof l.get=="function"&&typeof l.set=="function"){var f=l.get,d=l.set;return Object.defineProperty(e,n,{configurable:!0,get:function(){return f.call(this)},set:function(k){u=""+k,d.call(this,k)}}),Object.defineProperty(e,n,{enumerable:l.enumerable}),{getValue:function(){return u},setValue:function(k){u=""+k},stopTracking:function(){e._valueTracker=null,delete e[n]}}}}function tn(e){e._valueTracker||(e._valueTracker=qe(e))}function nl(e){if(!e)return!1;var n=e._valueTracker;if(!n)return!0;var l=n.getValue(),u="";return e&&(u=Re(e)?e.checked?"true":"false":e.value),e=u,e!==l?(n.setValue(e),!0):!1}function cr(e){if(e=e||(typeof document!="undefined"?document:void 0),typeof e=="undefined")return null;try{return e.activeElement||e.body}catch{return e.body}}function Zr(e,n){var l=n.checked;return w({},n,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:l!=null?l:e._wrapperState.initialChecked})}function ei(e,n){var l=n.defaultValue==null?"":n.defaultValue,u=n.checked!=null?n.checked:n.defaultChecked;l=Se(n.value!=null?n.value:l),e._wrapperState={initialChecked:u,initialValue:l,controlled:n.type==="checkbox"||n.type==="radio"?n.checked!=null:n.value!=null}}function ti(e,n){n=n.checked,n!=null&&M(e,"checked",n,!1)}function fr(e,n){ti(e,n);var l=Se(n.value),u=n.type;if(l!=null)u==="number"?(l===0&&e.value===""||e.value!=l)&&(e.value=""+l):e.value!==""+l&&(e.value=""+l);else if(u==="submit"||u==="reset"){e.removeAttribute("value");return}n.hasOwnProperty("value")?pr(e,n.type,l):n.hasOwnProperty("defaultValue")&&pr(e,n.type,Se(n.defaultValue)),n.checked==null&&n.defaultChecked!=null&&(e.defaultChecked=!!n.defaultChecked)}function rl(e,n,l){if(n.hasOwnProperty("value")||n.hasOwnProperty("defaultValue")){var u=n.type;if(!(u!=="submit"&&u!=="reset"||n.value!==void 0&&n.value!==null))return;n=""+e._wrapperState.initialValue,l||n===e.value||(e.value=n),e.defaultValue=n}l=e.name,l!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,l!==""&&(e.name=l)}function pr(e,n,l){(n!=="number"||cr(e.ownerDocument)!==e)&&(l==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+l&&(e.defaultValue=""+l))}var yn=Array.isArray;function kn(e,n,l,u){if(e=e.options,n){n={};for(var f=0;f<l.length;f++)n["$"+l[f]]=!0;for(l=0;l<e.length;l++)f=n.hasOwnProperty("$"+e[l].value),e[l].selected!==f&&(e[l].selected=f),f&&u&&(e[l].defaultSelected=!0)}else{for(l=""+Se(l),n=null,f=0;f<e.length;f++){if(e[f].value===l){e[f].selected=!0,u&&(e[f].defaultSelected=!0);return}n!==null||e[f].disabled||(n=e[f])}n!==null&&(n.selected=!0)}}function ni(e,n){if(n.dangerouslySetInnerHTML!=null)throw Error(r(91));return w({},n,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function il(e,n){var l=n.value;if(l==null){if(l=n.children,n=n.defaultValue,l!=null){if(n!=null)throw Error(r(92));if(yn(l)){if(1<l.length)throw Error(r(93));l=l[0]}n=l}n==null&&(n=""),l=n}e._wrapperState={initialValue:Se(l)}}function ll(e,n){var l=Se(n.value),u=Se(n.defaultValue);l!=null&&(l=""+l,l!==e.value&&(e.value=l),n.defaultValue==null&&e.defaultValue!==l&&(e.defaultValue=l)),u!=null&&(e.defaultValue=""+u)}function ol(e){var n=e.textContent;n===e._wrapperState.initialValue&&n!==""&&n!==null&&(e.value=n)}function O(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 K(e,n){return e==null||e==="http://www.w3.org/1999/xhtml"?O(n):e==="http://www.w3.org/2000/svg"&&n==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var de,Ee=(function(e){return typeof MSApp!="undefined"&&MSApp.execUnsafeLocalFunction?function(n,l,u,f){MSApp.execUnsafeLocalFunction(function(){return e(n,l,u,f)})}:e})(function(e,n){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=n;else{for(de=de||document.createElement("div"),de.innerHTML="<svg>"+n.valueOf().toString()+"</svg>",n=de.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;n.firstChild;)e.appendChild(n.firstChild)}});function Ie(e,n){if(n){var l=e.firstChild;if(l&&l===e.lastChild&&l.nodeType===3){l.nodeValue=n;return}}e.textContent=n}var et={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},nn=["Webkit","ms","Moz","O"];Object.keys(et).forEach(function(e){nn.forEach(function(n){n=n+e.charAt(0).toUpperCase()+e.substring(1),et[n]=et[e]})});function Nt(e,n,l){return n==null||typeof n=="boolean"||n===""?"":l||typeof n!="number"||n===0||et.hasOwnProperty(e)&&et[e]?(""+n).trim():n+"px"}function vn(e,n){e=e.style;for(var l in n)if(n.hasOwnProperty(l)){var u=l.indexOf("--")===0,f=Nt(l,n[l],u);l==="float"&&(l="cssFloat"),u?e.setProperty(l,f):e[l]=f}}var Wn=w({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 tt(e,n){if(n){if(Wn[e]&&(n.children!=null||n.dangerouslySetInnerHTML!=null))throw Error(r(137,e));if(n.dangerouslySetInnerHTML!=null){if(n.children!=null)throw Error(r(60));if(typeof n.dangerouslySetInnerHTML!="object"||!("__html"in n.dangerouslySetInnerHTML))throw Error(r(61))}if(n.style!=null&&typeof n.style!="object")throw Error(r(62))}}function Qt(e,n){if(e.indexOf("-")===-1)return typeof n.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Ct=null;function hu(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var mu=null,dr=null,hr=null;function Tf(e){if(e=Ci(e)){if(typeof mu!="function")throw Error(r(280));var n=e.stateNode;n&&(n=Al(n),mu(e.stateNode,e.type,n))}}function _f(e){dr?hr?hr.push(e):hr=[e]:dr=e}function If(){if(dr){var e=dr,n=hr;if(hr=dr=null,Tf(e),n)for(e=0;e<n.length;e++)Tf(n[e])}}function Pf(e,n){return e(n)}function Af(){}var gu=!1;function Nf(e,n,l){if(gu)return e(n,l);gu=!0;try{return Pf(e,n,l)}finally{gu=!1,(dr!==null||hr!==null)&&(Af(),If())}}function ri(e,n){var l=e.stateNode;if(l===null)return null;var u=Al(l);if(u===null)return null;l=u[n];e:switch(n){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(u=!u.disabled)||(e=e.type,u=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!u;break e;default:e=!1}if(e)return null;if(l&&typeof l!="function")throw Error(r(231,n,typeof l));return l}var yu=!1;if(p)try{var ii={};Object.defineProperty(ii,"passive",{get:function(){yu=!0}}),window.addEventListener("test",ii,ii),window.removeEventListener("test",ii,ii)}catch{yu=!1}function mx(e,n,l,u,f,d,k,S,C){var z=Array.prototype.slice.call(arguments,3);try{n.apply(l,z)}catch(B){this.onError(B)}}var li=!1,ul=null,sl=!1,ku=null,gx={onError:function(e){li=!0,ul=e}};function yx(e,n,l,u,f,d,k,S,C){li=!1,ul=null,mx.apply(gx,arguments)}function kx(e,n,l,u,f,d,k,S,C){if(yx.apply(this,arguments),li){if(li){var z=ul;li=!1,ul=null}else throw Error(r(198));sl||(sl=!0,ku=z)}}function qn(e){var n=e,l=e;if(e.alternate)for(;n.return;)n=n.return;else{e=n;do n=e,(n.flags&4098)!==0&&(l=n.return),e=n.return;while(e)}return n.tag===3?l:null}function Rf(e){if(e.tag===13){var n=e.memoizedState;if(n===null&&(e=e.alternate,e!==null&&(n=e.memoizedState)),n!==null)return n.dehydrated}return null}function zf(e){if(qn(e)!==e)throw Error(r(188))}function vx(e){var n=e.alternate;if(!n){if(n=qn(e),n===null)throw Error(r(188));return n!==e?null:e}for(var l=e,u=n;;){var f=l.return;if(f===null)break;var d=f.alternate;if(d===null){if(u=f.return,u!==null){l=u;continue}break}if(f.child===d.child){for(d=f.child;d;){if(d===l)return zf(f),e;if(d===u)return zf(f),n;d=d.sibling}throw Error(r(188))}if(l.return!==u.return)l=f,u=d;else{for(var k=!1,S=f.child;S;){if(S===l){k=!0,l=f,u=d;break}if(S===u){k=!0,u=f,l=d;break}S=S.sibling}if(!k){for(S=d.child;S;){if(S===l){k=!0,l=d,u=f;break}if(S===u){k=!0,u=d,l=f;break}S=S.sibling}if(!k)throw Error(r(189))}}if(l.alternate!==u)throw Error(r(190))}if(l.tag!==3)throw Error(r(188));return l.stateNode.current===l?e:n}function Lf(e){return e=vx(e),e!==null?Df(e):null}function Df(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var n=Df(e);if(n!==null)return n;e=e.sibling}return null}var bf=i.unstable_scheduleCallback,Of=i.unstable_cancelCallback,xx=i.unstable_shouldYield,wx=i.unstable_requestPaint,Ve=i.unstable_now,Sx=i.unstable_getCurrentPriorityLevel,vu=i.unstable_ImmediatePriority,Mf=i.unstable_UserBlockingPriority,al=i.unstable_NormalPriority,Ex=i.unstable_LowPriority,Ff=i.unstable_IdlePriority,cl=null,Yt=null;function Cx(e){if(Yt&&typeof Yt.onCommitFiberRoot=="function")try{Yt.onCommitFiberRoot(cl,e,void 0,(e.current.flags&128)===128)}catch{}}var Ft=Math.clz32?Math.clz32:Ix,Tx=Math.log,_x=Math.LN2;function Ix(e){return e>>>=0,e===0?32:31-(Tx(e)/_x|0)|0}var fl=64,pl=4194304;function oi(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function dl(e,n){var l=e.pendingLanes;if(l===0)return 0;var u=0,f=e.suspendedLanes,d=e.pingedLanes,k=l&268435455;if(k!==0){var S=k&~f;S!==0?u=oi(S):(d&=k,d!==0&&(u=oi(d)))}else k=l&~f,k!==0?u=oi(k):d!==0&&(u=oi(d));if(u===0)return 0;if(n!==0&&n!==u&&(n&f)===0&&(f=u&-u,d=n&-n,f>=d||f===16&&(d&4194240)!==0))return n;if((u&4)!==0&&(u|=l&16),n=e.entangledLanes,n!==0)for(e=e.entanglements,n&=u;0<n;)l=31-Ft(n),f=1<<l,u|=e[l],n&=~f;return u}function Px(e,n){switch(e){case 1:case 2:case 4:return n+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 n+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Ax(e,n){for(var l=e.suspendedLanes,u=e.pingedLanes,f=e.expirationTimes,d=e.pendingLanes;0<d;){var k=31-Ft(d),S=1<<k,C=f[k];C===-1?((S&l)===0||(S&u)!==0)&&(f[k]=Px(S,n)):C<=n&&(e.expiredLanes|=S),d&=~S}}function xu(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function jf(){var e=fl;return fl<<=1,(fl&4194240)===0&&(fl=64),e}function wu(e){for(var n=[],l=0;31>l;l++)n.push(e);return n}function ui(e,n,l){e.pendingLanes|=n,n!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,n=31-Ft(n),e[n]=l}function Nx(e,n){var l=e.pendingLanes&~n;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=n,e.mutableReadLanes&=n,e.entangledLanes&=n,n=e.entanglements;var u=e.eventTimes;for(e=e.expirationTimes;0<l;){var f=31-Ft(l),d=1<<f;n[f]=0,u[f]=-1,e[f]=-1,l&=~d}}function Su(e,n){var l=e.entangledLanes|=n;for(e=e.entanglements;l;){var u=31-Ft(l),f=1<<u;f&n|e[u]&n&&(e[u]|=n),l&=~f}}var ze=0;function Bf(e){return e&=-e,1<e?4<e?(e&268435455)!==0?16:536870912:4:1}var Uf,Eu,$f,Vf,Hf,Cu=!1,hl=[],xn=null,wn=null,Sn=null,si=new Map,ai=new Map,En=[],Rx="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 Wf(e,n){switch(e){case"focusin":case"focusout":xn=null;break;case"dragenter":case"dragleave":wn=null;break;case"mouseover":case"mouseout":Sn=null;break;case"pointerover":case"pointerout":si.delete(n.pointerId);break;case"gotpointercapture":case"lostpointercapture":ai.delete(n.pointerId)}}function ci(e,n,l,u,f,d){return e===null||e.nativeEvent!==d?(e={blockedOn:n,domEventName:l,eventSystemFlags:u,nativeEvent:d,targetContainers:[f]},n!==null&&(n=Ci(n),n!==null&&Eu(n)),e):(e.eventSystemFlags|=u,n=e.targetContainers,f!==null&&n.indexOf(f)===-1&&n.push(f),e)}function zx(e,n,l,u,f){switch(n){case"focusin":return xn=ci(xn,e,n,l,u,f),!0;case"dragenter":return wn=ci(wn,e,n,l,u,f),!0;case"mouseover":return Sn=ci(Sn,e,n,l,u,f),!0;case"pointerover":var d=f.pointerId;return si.set(d,ci(si.get(d)||null,e,n,l,u,f)),!0;case"gotpointercapture":return d=f.pointerId,ai.set(d,ci(ai.get(d)||null,e,n,l,u,f)),!0}return!1}function qf(e){var n=Qn(e.target);if(n!==null){var l=qn(n);if(l!==null){if(n=l.tag,n===13){if(n=Rf(l),n!==null){e.blockedOn=n,Hf(e.priority,function(){$f(l)});return}}else if(n===3&&l.stateNode.current.memoizedState.isDehydrated){e.blockedOn=l.tag===3?l.stateNode.containerInfo:null;return}}}e.blockedOn=null}function ml(e){if(e.blockedOn!==null)return!1;for(var n=e.targetContainers;0<n.length;){var l=_u(e.domEventName,e.eventSystemFlags,n[0],e.nativeEvent);if(l===null){l=e.nativeEvent;var u=new l.constructor(l.type,l);Ct=u,l.target.dispatchEvent(u),Ct=null}else return n=Ci(l),n!==null&&Eu(n),e.blockedOn=l,!1;n.shift()}return!0}function Qf(e,n,l){ml(e)&&l.delete(n)}function Lx(){Cu=!1,xn!==null&&ml(xn)&&(xn=null),wn!==null&&ml(wn)&&(wn=null),Sn!==null&&ml(Sn)&&(Sn=null),si.forEach(Qf),ai.forEach(Qf)}function fi(e,n){e.blockedOn===n&&(e.blockedOn=null,Cu||(Cu=!0,i.unstable_scheduleCallback(i.unstable_NormalPriority,Lx)))}function pi(e){function n(f){return fi(f,e)}if(0<hl.length){fi(hl[0],e);for(var l=1;l<hl.length;l++){var u=hl[l];u.blockedOn===e&&(u.blockedOn=null)}}for(xn!==null&&fi(xn,e),wn!==null&&fi(wn,e),Sn!==null&&fi(Sn,e),si.forEach(n),ai.forEach(n),l=0;l<En.length;l++)u=En[l],u.blockedOn===e&&(u.blockedOn=null);for(;0<En.length&&(l=En[0],l.blockedOn===null);)qf(l),l.blockedOn===null&&En.shift()}var mr=ne.ReactCurrentBatchConfig,gl=!0;function Dx(e,n,l,u){var f=ze,d=mr.transition;mr.transition=null;try{ze=1,Tu(e,n,l,u)}finally{ze=f,mr.transition=d}}function bx(e,n,l,u){var f=ze,d=mr.transition;mr.transition=null;try{ze=4,Tu(e,n,l,u)}finally{ze=f,mr.transition=d}}function Tu(e,n,l,u){if(gl){var f=_u(e,n,l,u);if(f===null)Vu(e,n,u,yl,l),Wf(e,u);else if(zx(f,e,n,l,u))u.stopPropagation();else if(Wf(e,u),n&4&&-1<Rx.indexOf(e)){for(;f!==null;){var d=Ci(f);if(d!==null&&Uf(d),d=_u(e,n,l,u),d===null&&Vu(e,n,u,yl,l),d===f)break;f=d}f!==null&&u.stopPropagation()}else Vu(e,n,u,null,l)}}var yl=null;function _u(e,n,l,u){if(yl=null,e=hu(u),e=Qn(e),e!==null)if(n=qn(e),n===null)e=null;else if(l=n.tag,l===13){if(e=Rf(n),e!==null)return e;e=null}else if(l===3){if(n.stateNode.current.memoizedState.isDehydrated)return n.tag===3?n.stateNode.containerInfo:null;e=null}else n!==e&&(e=null);return yl=e,null}function Yf(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(Sx()){case vu:return 1;case Mf:return 4;case al:case Ex:return 16;case Ff:return 536870912;default:return 16}default:return 16}}var Cn=null,Iu=null,kl=null;function Kf(){if(kl)return kl;var e,n=Iu,l=n.length,u,f="value"in Cn?Cn.value:Cn.textContent,d=f.length;for(e=0;e<l&&n[e]===f[e];e++);var k=l-e;for(u=1;u<=k&&n[l-u]===f[d-u];u++);return kl=f.slice(e,1<u?1-u:void 0)}function vl(e){var n=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&n===13&&(e=13)):e=n,e===10&&(e=13),32<=e||e===13?e:0}function xl(){return!0}function Gf(){return!1}function Tt(e){function n(l,u,f,d,k){this._reactName=l,this._targetInst=f,this.type=u,this.nativeEvent=d,this.target=k,this.currentTarget=null;for(var S in e)e.hasOwnProperty(S)&&(l=e[S],this[S]=l?l(d):d[S]);return this.isDefaultPrevented=(d.defaultPrevented!=null?d.defaultPrevented:d.returnValue===!1)?xl:Gf,this.isPropagationStopped=Gf,this}return w(n.prototype,{preventDefault:function(){this.defaultPrevented=!0;var l=this.nativeEvent;l&&(l.preventDefault?l.preventDefault():typeof l.returnValue!="unknown"&&(l.returnValue=!1),this.isDefaultPrevented=xl)},stopPropagation:function(){var l=this.nativeEvent;l&&(l.stopPropagation?l.stopPropagation():typeof l.cancelBubble!="unknown"&&(l.cancelBubble=!0),this.isPropagationStopped=xl)},persist:function(){},isPersistent:xl}),n}var gr={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Pu=Tt(gr),di=w({},gr,{view:0,detail:0}),Ox=Tt(di),Au,Nu,hi,wl=w({},di,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:zu,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==hi&&(hi&&e.type==="mousemove"?(Au=e.screenX-hi.screenX,Nu=e.screenY-hi.screenY):Nu=Au=0,hi=e),Au)},movementY:function(e){return"movementY"in e?e.movementY:Nu}}),Xf=Tt(wl),Mx=w({},wl,{dataTransfer:0}),Fx=Tt(Mx),jx=w({},di,{relatedTarget:0}),Ru=Tt(jx),Bx=w({},gr,{animationName:0,elapsedTime:0,pseudoElement:0}),Ux=Tt(Bx),$x=w({},gr,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Vx=Tt($x),Hx=w({},gr,{data:0}),Jf=Tt(Hx),Wx={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},qx={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"},Qx={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Yx(e){var n=this.nativeEvent;return n.getModifierState?n.getModifierState(e):(e=Qx[e])?!!n[e]:!1}function zu(){return Yx}var Kx=w({},di,{key:function(e){if(e.key){var n=Wx[e.key]||e.key;if(n!=="Unidentified")return n}return e.type==="keypress"?(e=vl(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?qx[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:zu,charCode:function(e){return e.type==="keypress"?vl(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?vl(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Gx=Tt(Kx),Xx=w({},wl,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Zf=Tt(Xx),Jx=w({},di,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:zu}),Zx=Tt(Jx),ew=w({},gr,{propertyName:0,elapsedTime:0,pseudoElement:0}),tw=Tt(ew),nw=w({},wl,{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}),rw=Tt(nw),iw=[9,13,27,32],Lu=p&&"CompositionEvent"in window,mi=null;p&&"documentMode"in document&&(mi=document.documentMode);var lw=p&&"TextEvent"in window&&!mi,ep=p&&(!Lu||mi&&8<mi&&11>=mi),tp=" ",np=!1;function rp(e,n){switch(e){case"keyup":return iw.indexOf(n.keyCode)!==-1;case"keydown":return n.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function ip(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var yr=!1;function ow(e,n){switch(e){case"compositionend":return ip(n);case"keypress":return n.which!==32?null:(np=!0,tp);case"textInput":return e=n.data,e===tp&&np?null:e;default:return null}}function uw(e,n){if(yr)return e==="compositionend"||!Lu&&rp(e,n)?(e=Kf(),kl=Iu=Cn=null,yr=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(n.ctrlKey||n.altKey||n.metaKey)||n.ctrlKey&&n.altKey){if(n.char&&1<n.char.length)return n.char;if(n.which)return String.fromCharCode(n.which)}return null;case"compositionend":return ep&&n.locale!=="ko"?null:n.data;default:return null}}var sw={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 lp(e){var n=e&&e.nodeName&&e.nodeName.toLowerCase();return n==="input"?!!sw[e.type]:n==="textarea"}function op(e,n,l,u){_f(u),n=_l(n,"onChange"),0<n.length&&(l=new Pu("onChange","change",null,l,u),e.push({event:l,listeners:n}))}var gi=null,yi=null;function aw(e){Cp(e,0)}function Sl(e){var n=Sr(e);if(nl(n))return e}function cw(e,n){if(e==="change")return n}var up=!1;if(p){var Du;if(p){var bu="oninput"in document;if(!bu){var sp=document.createElement("div");sp.setAttribute("oninput","return;"),bu=typeof sp.oninput=="function"}Du=bu}else Du=!1;up=Du&&(!document.documentMode||9<document.documentMode)}function ap(){gi&&(gi.detachEvent("onpropertychange",cp),yi=gi=null)}function cp(e){if(e.propertyName==="value"&&Sl(yi)){var n=[];op(n,yi,e,hu(e)),Nf(aw,n)}}function fw(e,n,l){e==="focusin"?(ap(),gi=n,yi=l,gi.attachEvent("onpropertychange",cp)):e==="focusout"&&ap()}function pw(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Sl(yi)}function dw(e,n){if(e==="click")return Sl(n)}function hw(e,n){if(e==="input"||e==="change")return Sl(n)}function mw(e,n){return e===n&&(e!==0||1/e===1/n)||e!==e&&n!==n}var jt=typeof Object.is=="function"?Object.is:mw;function ki(e,n){if(jt(e,n))return!0;if(typeof e!="object"||e===null||typeof n!="object"||n===null)return!1;var l=Object.keys(e),u=Object.keys(n);if(l.length!==u.length)return!1;for(u=0;u<l.length;u++){var f=l[u];if(!h.call(n,f)||!jt(e[f],n[f]))return!1}return!0}function fp(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function pp(e,n){var l=fp(e);e=0;for(var u;l;){if(l.nodeType===3){if(u=e+l.textContent.length,e<=n&&u>=n)return{node:l,offset:n-e};e=u}e:{for(;l;){if(l.nextSibling){l=l.nextSibling;break e}l=l.parentNode}l=void 0}l=fp(l)}}function dp(e,n){return e&&n?e===n?!0:e&&e.nodeType===3?!1:n&&n.nodeType===3?dp(e,n.parentNode):"contains"in e?e.contains(n):e.compareDocumentPosition?!!(e.compareDocumentPosition(n)&16):!1:!1}function hp(){for(var e=window,n=cr();n instanceof e.HTMLIFrameElement;){try{var l=typeof n.contentWindow.location.href=="string"}catch{l=!1}if(l)e=n.contentWindow;else break;n=cr(e.document)}return n}function Ou(e){var n=e&&e.nodeName&&e.nodeName.toLowerCase();return n&&(n==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||n==="textarea"||e.contentEditable==="true")}function gw(e){var n=hp(),l=e.focusedElem,u=e.selectionRange;if(n!==l&&l&&l.ownerDocument&&dp(l.ownerDocument.documentElement,l)){if(u!==null&&Ou(l)){if(n=u.start,e=u.end,e===void 0&&(e=n),"selectionStart"in l)l.selectionStart=n,l.selectionEnd=Math.min(e,l.value.length);else if(e=(n=l.ownerDocument||document)&&n.defaultView||window,e.getSelection){e=e.getSelection();var f=l.textContent.length,d=Math.min(u.start,f);u=u.end===void 0?d:Math.min(u.end,f),!e.extend&&d>u&&(f=u,u=d,d=f),f=pp(l,d);var k=pp(l,u);f&&k&&(e.rangeCount!==1||e.anchorNode!==f.node||e.anchorOffset!==f.offset||e.focusNode!==k.node||e.focusOffset!==k.offset)&&(n=n.createRange(),n.setStart(f.node,f.offset),e.removeAllRanges(),d>u?(e.addRange(n),e.extend(k.node,k.offset)):(n.setEnd(k.node,k.offset),e.addRange(n)))}}for(n=[],e=l;e=e.parentNode;)e.nodeType===1&&n.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof l.focus=="function"&&l.focus(),l=0;l<n.length;l++)e=n[l],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var yw=p&&"documentMode"in document&&11>=document.documentMode,kr=null,Mu=null,vi=null,Fu=!1;function mp(e,n,l){var u=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;Fu||kr==null||kr!==cr(u)||(u=kr,"selectionStart"in u&&Ou(u)?u={start:u.selectionStart,end:u.selectionEnd}:(u=(u.ownerDocument&&u.ownerDocument.defaultView||window).getSelection(),u={anchorNode:u.anchorNode,anchorOffset:u.anchorOffset,focusNode:u.focusNode,focusOffset:u.focusOffset}),vi&&ki(vi,u)||(vi=u,u=_l(Mu,"onSelect"),0<u.length&&(n=new Pu("onSelect","select",null,n,l),e.push({event:n,listeners:u}),n.target=kr)))}function El(e,n){var l={};return l[e.toLowerCase()]=n.toLowerCase(),l["Webkit"+e]="webkit"+n,l["Moz"+e]="moz"+n,l}var vr={animationend:El("Animation","AnimationEnd"),animationiteration:El("Animation","AnimationIteration"),animationstart:El("Animation","AnimationStart"),transitionend:El("Transition","TransitionEnd")},ju={},gp={};p&&(gp=document.createElement("div").style,"AnimationEvent"in window||(delete vr.animationend.animation,delete vr.animationiteration.animation,delete vr.animationstart.animation),"TransitionEvent"in window||delete vr.transitionend.transition);function Cl(e){if(ju[e])return ju[e];if(!vr[e])return e;var n=vr[e],l;for(l in n)if(n.hasOwnProperty(l)&&l in gp)return ju[e]=n[l];return e}var yp=Cl("animationend"),kp=Cl("animationiteration"),vp=Cl("animationstart"),xp=Cl("transitionend"),wp=new Map,Sp="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 Tn(e,n){wp.set(e,n),a(n,[e])}for(var Bu=0;Bu<Sp.length;Bu++){var Uu=Sp[Bu],kw=Uu.toLowerCase(),vw=Uu[0].toUpperCase()+Uu.slice(1);Tn(kw,"on"+vw)}Tn(yp,"onAnimationEnd"),Tn(kp,"onAnimationIteration"),Tn(vp,"onAnimationStart"),Tn("dblclick","onDoubleClick"),Tn("focusin","onFocus"),Tn("focusout","onBlur"),Tn(xp,"onTransitionEnd"),c("onMouseEnter",["mouseout","mouseover"]),c("onMouseLeave",["mouseout","mouseover"]),c("onPointerEnter",["pointerout","pointerover"]),c("onPointerLeave",["pointerout","pointerover"]),a("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),a("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),a("onBeforeInput",["compositionend","keypress","textInput","paste"]),a("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),a("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),a("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var xi="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(" "),xw=new Set("cancel close invalid load scroll toggle".split(" ").concat(xi));function Ep(e,n,l){var u=e.type||"unknown-event";e.currentTarget=l,kx(u,n,void 0,e),e.currentTarget=null}function Cp(e,n){n=(n&4)!==0;for(var l=0;l<e.length;l++){var u=e[l],f=u.event;u=u.listeners;e:{var d=void 0;if(n)for(var k=u.length-1;0<=k;k--){var S=u[k],C=S.instance,z=S.currentTarget;if(S=S.listener,C!==d&&f.isPropagationStopped())break e;Ep(f,S,z),d=C}else for(k=0;k<u.length;k++){if(S=u[k],C=S.instance,z=S.currentTarget,S=S.listener,C!==d&&f.isPropagationStopped())break e;Ep(f,S,z),d=C}}}if(sl)throw e=ku,sl=!1,ku=null,e}function Oe(e,n){var l=n[Ku];l===void 0&&(l=n[Ku]=new Set);var u=e+"__bubble";l.has(u)||(Tp(n,e,2,!1),l.add(u))}function $u(e,n,l){var u=0;n&&(u|=4),Tp(l,e,u,n)}var Tl="_reactListening"+Math.random().toString(36).slice(2);function wi(e){if(!e[Tl]){e[Tl]=!0,o.forEach(function(l){l!=="selectionchange"&&(xw.has(l)||$u(l,!1,e),$u(l,!0,e))});var n=e.nodeType===9?e:e.ownerDocument;n===null||n[Tl]||(n[Tl]=!0,$u("selectionchange",!1,n))}}function Tp(e,n,l,u){switch(Yf(n)){case 1:var f=Dx;break;case 4:f=bx;break;default:f=Tu}l=f.bind(null,n,l,e),f=void 0,!yu||n!=="touchstart"&&n!=="touchmove"&&n!=="wheel"||(f=!0),u?f!==void 0?e.addEventListener(n,l,{capture:!0,passive:f}):e.addEventListener(n,l,!0):f!==void 0?e.addEventListener(n,l,{passive:f}):e.addEventListener(n,l,!1)}function Vu(e,n,l,u,f){var d=u;if((n&1)===0&&(n&2)===0&&u!==null)e:for(;;){if(u===null)return;var k=u.tag;if(k===3||k===4){var S=u.stateNode.containerInfo;if(S===f||S.nodeType===8&&S.parentNode===f)break;if(k===4)for(k=u.return;k!==null;){var C=k.tag;if((C===3||C===4)&&(C=k.stateNode.containerInfo,C===f||C.nodeType===8&&C.parentNode===f))return;k=k.return}for(;S!==null;){if(k=Qn(S),k===null)return;if(C=k.tag,C===5||C===6){u=d=k;continue e}S=S.parentNode}}u=u.return}Nf(function(){var z=d,B=hu(l),$=[];e:{var j=wp.get(e);if(j!==void 0){var X=Pu,ee=e;switch(e){case"keypress":if(vl(l)===0)break e;case"keydown":case"keyup":X=Gx;break;case"focusin":ee="focus",X=Ru;break;case"focusout":ee="blur",X=Ru;break;case"beforeblur":case"afterblur":X=Ru;break;case"click":if(l.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":X=Xf;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":X=Fx;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":X=Zx;break;case yp:case kp:case vp:X=Ux;break;case xp:X=tw;break;case"scroll":X=Ox;break;case"wheel":X=rw;break;case"copy":case"cut":case"paste":X=Vx;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":X=Zf}var te=(n&4)!==0,He=!te&&e==="scroll",A=te?j!==null?j+"Capture":null:j;te=[];for(var T=z,N;T!==null;){N=T;var q=N.stateNode;if(N.tag===5&&q!==null&&(N=q,A!==null&&(q=ri(T,A),q!=null&&te.push(Si(T,q,N)))),He)break;T=T.return}0<te.length&&(j=new X(j,ee,null,l,B),$.push({event:j,listeners:te}))}}if((n&7)===0){e:{if(j=e==="mouseover"||e==="pointerover",X=e==="mouseout"||e==="pointerout",j&&l!==Ct&&(ee=l.relatedTarget||l.fromElement)&&(Qn(ee)||ee[rn]))break e;if((X||j)&&(j=B.window===B?B:(j=B.ownerDocument)?j.defaultView||j.parentWindow:window,X?(ee=l.relatedTarget||l.toElement,X=z,ee=ee?Qn(ee):null,ee!==null&&(He=qn(ee),ee!==He||ee.tag!==5&&ee.tag!==6)&&(ee=null)):(X=null,ee=z),X!==ee)){if(te=Xf,q="onMouseLeave",A="onMouseEnter",T="mouse",(e==="pointerout"||e==="pointerover")&&(te=Zf,q="onPointerLeave",A="onPointerEnter",T="pointer"),He=X==null?j:Sr(X),N=ee==null?j:Sr(ee),j=new te(q,T+"leave",X,l,B),j.target=He,j.relatedTarget=N,q=null,Qn(B)===z&&(te=new te(A,T+"enter",ee,l,B),te.target=N,te.relatedTarget=He,q=te),He=q,X&&ee)t:{for(te=X,A=ee,T=0,N=te;N;N=xr(N))T++;for(N=0,q=A;q;q=xr(q))N++;for(;0<T-N;)te=xr(te),T--;for(;0<N-T;)A=xr(A),N--;for(;T--;){if(te===A||A!==null&&te===A.alternate)break t;te=xr(te),A=xr(A)}te=null}else te=null;X!==null&&_p($,j,X,te,!1),ee!==null&&He!==null&&_p($,He,ee,te,!0)}}e:{if(j=z?Sr(z):window,X=j.nodeName&&j.nodeName.toLowerCase(),X==="select"||X==="input"&&j.type==="file")var re=cw;else if(lp(j))if(up)re=hw;else{re=pw;var se=fw}else(X=j.nodeName)&&X.toLowerCase()==="input"&&(j.type==="checkbox"||j.type==="radio")&&(re=dw);if(re&&(re=re(e,z))){op($,re,l,B);break e}se&&se(e,j,z),e==="focusout"&&(se=j._wrapperState)&&se.controlled&&j.type==="number"&&pr(j,"number",j.value)}switch(se=z?Sr(z):window,e){case"focusin":(lp(se)||se.contentEditable==="true")&&(kr=se,Mu=z,vi=null);break;case"focusout":vi=Mu=kr=null;break;case"mousedown":Fu=!0;break;case"contextmenu":case"mouseup":case"dragend":Fu=!1,mp($,l,B);break;case"selectionchange":if(yw)break;case"keydown":case"keyup":mp($,l,B)}var ae;if(Lu)e:{switch(e){case"compositionstart":var me="onCompositionStart";break e;case"compositionend":me="onCompositionEnd";break e;case"compositionupdate":me="onCompositionUpdate";break e}me=void 0}else yr?rp(e,l)&&(me="onCompositionEnd"):e==="keydown"&&l.keyCode===229&&(me="onCompositionStart");me&&(ep&&l.locale!=="ko"&&(yr||me!=="onCompositionStart"?me==="onCompositionEnd"&&yr&&(ae=Kf()):(Cn=B,Iu="value"in Cn?Cn.value:Cn.textContent,yr=!0)),se=_l(z,me),0<se.length&&(me=new Jf(me,e,null,l,B),$.push({event:me,listeners:se}),ae?me.data=ae:(ae=ip(l),ae!==null&&(me.data=ae)))),(ae=lw?ow(e,l):uw(e,l))&&(z=_l(z,"onBeforeInput"),0<z.length&&(B=new Jf("onBeforeInput","beforeinput",null,l,B),$.push({event:B,listeners:z}),B.data=ae))}Cp($,n)})}function Si(e,n,l){return{instance:e,listener:n,currentTarget:l}}function _l(e,n){for(var l=n+"Capture",u=[];e!==null;){var f=e,d=f.stateNode;f.tag===5&&d!==null&&(f=d,d=ri(e,l),d!=null&&u.unshift(Si(e,d,f)),d=ri(e,n),d!=null&&u.push(Si(e,d,f))),e=e.return}return u}function xr(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function _p(e,n,l,u,f){for(var d=n._reactName,k=[];l!==null&&l!==u;){var S=l,C=S.alternate,z=S.stateNode;if(C!==null&&C===u)break;S.tag===5&&z!==null&&(S=z,f?(C=ri(l,d),C!=null&&k.unshift(Si(l,C,S))):f||(C=ri(l,d),C!=null&&k.push(Si(l,C,S)))),l=l.return}k.length!==0&&e.push({event:n,listeners:k})}var ww=/\r\n?/g,Sw=/\u0000|\uFFFD/g;function Ip(e){return(typeof e=="string"?e:""+e).replace(ww,`
6
+ `).replace(Sw,"")}function Il(e,n,l){if(n=Ip(n),Ip(e)!==n&&l)throw Error(r(425))}function Pl(){}var Hu=null,Wu=null;function qu(e,n){return e==="textarea"||e==="noscript"||typeof n.children=="string"||typeof n.children=="number"||typeof n.dangerouslySetInnerHTML=="object"&&n.dangerouslySetInnerHTML!==null&&n.dangerouslySetInnerHTML.__html!=null}var Qu=typeof setTimeout=="function"?setTimeout:void 0,Ew=typeof clearTimeout=="function"?clearTimeout:void 0,Pp=typeof Promise=="function"?Promise:void 0,Cw=typeof queueMicrotask=="function"?queueMicrotask:typeof Pp!="undefined"?function(e){return Pp.resolve(null).then(e).catch(Tw)}:Qu;function Tw(e){setTimeout(function(){throw e})}function Yu(e,n){var l=n,u=0;do{var f=l.nextSibling;if(e.removeChild(l),f&&f.nodeType===8)if(l=f.data,l==="/$"){if(u===0){e.removeChild(f),pi(n);return}u--}else l!=="$"&&l!=="$?"&&l!=="$!"||u++;l=f}while(l);pi(n)}function _n(e){for(;e!=null;e=e.nextSibling){var n=e.nodeType;if(n===1||n===3)break;if(n===8){if(n=e.data,n==="$"||n==="$!"||n==="$?")break;if(n==="/$")return null}}return e}function Ap(e){e=e.previousSibling;for(var n=0;e;){if(e.nodeType===8){var l=e.data;if(l==="$"||l==="$!"||l==="$?"){if(n===0)return e;n--}else l==="/$"&&n++}e=e.previousSibling}return null}var wr=Math.random().toString(36).slice(2),Kt="__reactFiber$"+wr,Ei="__reactProps$"+wr,rn="__reactContainer$"+wr,Ku="__reactEvents$"+wr,_w="__reactListeners$"+wr,Iw="__reactHandles$"+wr;function Qn(e){var n=e[Kt];if(n)return n;for(var l=e.parentNode;l;){if(n=l[rn]||l[Kt]){if(l=n.alternate,n.child!==null||l!==null&&l.child!==null)for(e=Ap(e);e!==null;){if(l=e[Kt])return l;e=Ap(e)}return n}e=l,l=e.parentNode}return null}function Ci(e){return e=e[Kt]||e[rn],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Sr(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(r(33))}function Al(e){return e[Ei]||null}var Gu=[],Er=-1;function In(e){return{current:e}}function Me(e){0>Er||(e.current=Gu[Er],Gu[Er]=null,Er--)}function be(e,n){Er++,Gu[Er]=e.current,e.current=n}var Pn={},ot=In(Pn),yt=In(!1),Yn=Pn;function Cr(e,n){var l=e.type.contextTypes;if(!l)return Pn;var u=e.stateNode;if(u&&u.__reactInternalMemoizedUnmaskedChildContext===n)return u.__reactInternalMemoizedMaskedChildContext;var f={},d;for(d in l)f[d]=n[d];return u&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=n,e.__reactInternalMemoizedMaskedChildContext=f),f}function kt(e){return e=e.childContextTypes,e!=null}function Nl(){Me(yt),Me(ot)}function Np(e,n,l){if(ot.current!==Pn)throw Error(r(168));be(ot,n),be(yt,l)}function Rp(e,n,l){var u=e.stateNode;if(n=n.childContextTypes,typeof u.getChildContext!="function")return l;u=u.getChildContext();for(var f in u)if(!(f in n))throw Error(r(108,Ae(e)||"Unknown",f));return w({},l,u)}function Rl(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Pn,Yn=ot.current,be(ot,e),be(yt,yt.current),!0}function zp(e,n,l){var u=e.stateNode;if(!u)throw Error(r(169));l?(e=Rp(e,n,Yn),u.__reactInternalMemoizedMergedChildContext=e,Me(yt),Me(ot),be(ot,e)):Me(yt),be(yt,l)}var ln=null,zl=!1,Xu=!1;function Lp(e){ln===null?ln=[e]:ln.push(e)}function Pw(e){zl=!0,Lp(e)}function An(){if(!Xu&&ln!==null){Xu=!0;var e=0,n=ze;try{var l=ln;for(ze=1;e<l.length;e++){var u=l[e];do u=u(!0);while(u!==null)}ln=null,zl=!1}catch(f){throw ln!==null&&(ln=ln.slice(e+1)),bf(vu,An),f}finally{ze=n,Xu=!1}}return null}var Tr=[],_r=0,Ll=null,Dl=0,Rt=[],zt=0,Kn=null,on=1,un="";function Gn(e,n){Tr[_r++]=Dl,Tr[_r++]=Ll,Ll=e,Dl=n}function Dp(e,n,l){Rt[zt++]=on,Rt[zt++]=un,Rt[zt++]=Kn,Kn=e;var u=on;e=un;var f=32-Ft(u)-1;u&=~(1<<f),l+=1;var d=32-Ft(n)+f;if(30<d){var k=f-f%5;d=(u&(1<<k)-1).toString(32),u>>=k,f-=k,on=1<<32-Ft(n)+f|l<<f|u,un=d+e}else on=1<<d|l<<f|u,un=e}function Ju(e){e.return!==null&&(Gn(e,1),Dp(e,1,0))}function Zu(e){for(;e===Ll;)Ll=Tr[--_r],Tr[_r]=null,Dl=Tr[--_r],Tr[_r]=null;for(;e===Kn;)Kn=Rt[--zt],Rt[zt]=null,un=Rt[--zt],Rt[zt]=null,on=Rt[--zt],Rt[zt]=null}var _t=null,It=null,Fe=!1,Bt=null;function bp(e,n){var l=Ot(5,null,null,0);l.elementType="DELETED",l.stateNode=n,l.return=e,n=e.deletions,n===null?(e.deletions=[l],e.flags|=16):n.push(l)}function Op(e,n){switch(e.tag){case 5:var l=e.type;return n=n.nodeType!==1||l.toLowerCase()!==n.nodeName.toLowerCase()?null:n,n!==null?(e.stateNode=n,_t=e,It=_n(n.firstChild),!0):!1;case 6:return n=e.pendingProps===""||n.nodeType!==3?null:n,n!==null?(e.stateNode=n,_t=e,It=null,!0):!1;case 13:return n=n.nodeType!==8?null:n,n!==null?(l=Kn!==null?{id:on,overflow:un}:null,e.memoizedState={dehydrated:n,treeContext:l,retryLane:1073741824},l=Ot(18,null,null,0),l.stateNode=n,l.return=e,e.child=l,_t=e,It=null,!0):!1;default:return!1}}function es(e){return(e.mode&1)!==0&&(e.flags&128)===0}function ts(e){if(Fe){var n=It;if(n){var l=n;if(!Op(e,n)){if(es(e))throw Error(r(418));n=_n(l.nextSibling);var u=_t;n&&Op(e,n)?bp(u,l):(e.flags=e.flags&-4097|2,Fe=!1,_t=e)}}else{if(es(e))throw Error(r(418));e.flags=e.flags&-4097|2,Fe=!1,_t=e}}}function Mp(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;_t=e}function bl(e){if(e!==_t)return!1;if(!Fe)return Mp(e),Fe=!0,!1;var n;if((n=e.tag!==3)&&!(n=e.tag!==5)&&(n=e.type,n=n!=="head"&&n!=="body"&&!qu(e.type,e.memoizedProps)),n&&(n=It)){if(es(e))throw Fp(),Error(r(418));for(;n;)bp(e,n),n=_n(n.nextSibling)}if(Mp(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(r(317));e:{for(e=e.nextSibling,n=0;e;){if(e.nodeType===8){var l=e.data;if(l==="/$"){if(n===0){It=_n(e.nextSibling);break e}n--}else l!=="$"&&l!=="$!"&&l!=="$?"||n++}e=e.nextSibling}It=null}}else It=_t?_n(e.stateNode.nextSibling):null;return!0}function Fp(){for(var e=It;e;)e=_n(e.nextSibling)}function Ir(){It=_t=null,Fe=!1}function ns(e){Bt===null?Bt=[e]:Bt.push(e)}var Aw=ne.ReactCurrentBatchConfig;function Ti(e,n,l){if(e=l.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(l._owner){if(l=l._owner,l){if(l.tag!==1)throw Error(r(309));var u=l.stateNode}if(!u)throw Error(r(147,e));var f=u,d=""+e;return n!==null&&n.ref!==null&&typeof n.ref=="function"&&n.ref._stringRef===d?n.ref:(n=function(k){var S=f.refs;k===null?delete S[d]:S[d]=k},n._stringRef=d,n)}if(typeof e!="string")throw Error(r(284));if(!l._owner)throw Error(r(290,e))}return e}function Ol(e,n){throw e=Object.prototype.toString.call(n),Error(r(31,e==="[object Object]"?"object with keys {"+Object.keys(n).join(", ")+"}":e))}function jp(e){var n=e._init;return n(e._payload)}function Bp(e){function n(A,T){if(e){var N=A.deletions;N===null?(A.deletions=[T],A.flags|=16):N.push(T)}}function l(A,T){if(!e)return null;for(;T!==null;)n(A,T),T=T.sibling;return null}function u(A,T){for(A=new Map;T!==null;)T.key!==null?A.set(T.key,T):A.set(T.index,T),T=T.sibling;return A}function f(A,T){return A=Mn(A,T),A.index=0,A.sibling=null,A}function d(A,T,N){return A.index=N,e?(N=A.alternate,N!==null?(N=N.index,N<T?(A.flags|=2,T):N):(A.flags|=2,T)):(A.flags|=1048576,T)}function k(A){return e&&A.alternate===null&&(A.flags|=2),A}function S(A,T,N,q){return T===null||T.tag!==6?(T=Qs(N,A.mode,q),T.return=A,T):(T=f(T,N),T.return=A,T)}function C(A,T,N,q){var re=N.type;return re===oe?B(A,T,N.props.children,q,N.key):T!==null&&(T.elementType===re||typeof re=="object"&&re!==null&&re.$$typeof===ce&&jp(re)===T.type)?(q=f(T,N.props),q.ref=Ti(A,T,N),q.return=A,q):(q=oo(N.type,N.key,N.props,null,A.mode,q),q.ref=Ti(A,T,N),q.return=A,q)}function z(A,T,N,q){return T===null||T.tag!==4||T.stateNode.containerInfo!==N.containerInfo||T.stateNode.implementation!==N.implementation?(T=Ys(N,A.mode,q),T.return=A,T):(T=f(T,N.children||[]),T.return=A,T)}function B(A,T,N,q,re){return T===null||T.tag!==7?(T=ir(N,A.mode,q,re),T.return=A,T):(T=f(T,N),T.return=A,T)}function $(A,T,N){if(typeof T=="string"&&T!==""||typeof T=="number")return T=Qs(""+T,A.mode,N),T.return=A,T;if(typeof T=="object"&&T!==null){switch(T.$$typeof){case le:return N=oo(T.type,T.key,T.props,null,A.mode,N),N.ref=Ti(A,null,T),N.return=A,N;case L:return T=Ys(T,A.mode,N),T.return=A,T;case ce:var q=T._init;return $(A,q(T._payload),N)}if(yn(T)||ie(T))return T=ir(T,A.mode,N,null),T.return=A,T;Ol(A,T)}return null}function j(A,T,N,q){var re=T!==null?T.key:null;if(typeof N=="string"&&N!==""||typeof N=="number")return re!==null?null:S(A,T,""+N,q);if(typeof N=="object"&&N!==null){switch(N.$$typeof){case le:return N.key===re?C(A,T,N,q):null;case L:return N.key===re?z(A,T,N,q):null;case ce:return re=N._init,j(A,T,re(N._payload),q)}if(yn(N)||ie(N))return re!==null?null:B(A,T,N,q,null);Ol(A,N)}return null}function X(A,T,N,q,re){if(typeof q=="string"&&q!==""||typeof q=="number")return A=A.get(N)||null,S(T,A,""+q,re);if(typeof q=="object"&&q!==null){switch(q.$$typeof){case le:return A=A.get(q.key===null?N:q.key)||null,C(T,A,q,re);case L:return A=A.get(q.key===null?N:q.key)||null,z(T,A,q,re);case ce:var se=q._init;return X(A,T,N,se(q._payload),re)}if(yn(q)||ie(q))return A=A.get(N)||null,B(T,A,q,re,null);Ol(T,q)}return null}function ee(A,T,N,q){for(var re=null,se=null,ae=T,me=T=0,Ze=null;ae!==null&&me<N.length;me++){ae.index>me?(Ze=ae,ae=null):Ze=ae.sibling;var Ne=j(A,ae,N[me],q);if(Ne===null){ae===null&&(ae=Ze);break}e&&ae&&Ne.alternate===null&&n(A,ae),T=d(Ne,T,me),se===null?re=Ne:se.sibling=Ne,se=Ne,ae=Ze}if(me===N.length)return l(A,ae),Fe&&Gn(A,me),re;if(ae===null){for(;me<N.length;me++)ae=$(A,N[me],q),ae!==null&&(T=d(ae,T,me),se===null?re=ae:se.sibling=ae,se=ae);return Fe&&Gn(A,me),re}for(ae=u(A,ae);me<N.length;me++)Ze=X(ae,A,me,N[me],q),Ze!==null&&(e&&Ze.alternate!==null&&ae.delete(Ze.key===null?me:Ze.key),T=d(Ze,T,me),se===null?re=Ze:se.sibling=Ze,se=Ze);return e&&ae.forEach(function(Fn){return n(A,Fn)}),Fe&&Gn(A,me),re}function te(A,T,N,q){var re=ie(N);if(typeof re!="function")throw Error(r(150));if(N=re.call(N),N==null)throw Error(r(151));for(var se=re=null,ae=T,me=T=0,Ze=null,Ne=N.next();ae!==null&&!Ne.done;me++,Ne=N.next()){ae.index>me?(Ze=ae,ae=null):Ze=ae.sibling;var Fn=j(A,ae,Ne.value,q);if(Fn===null){ae===null&&(ae=Ze);break}e&&ae&&Fn.alternate===null&&n(A,ae),T=d(Fn,T,me),se===null?re=Fn:se.sibling=Fn,se=Fn,ae=Ze}if(Ne.done)return l(A,ae),Fe&&Gn(A,me),re;if(ae===null){for(;!Ne.done;me++,Ne=N.next())Ne=$(A,Ne.value,q),Ne!==null&&(T=d(Ne,T,me),se===null?re=Ne:se.sibling=Ne,se=Ne);return Fe&&Gn(A,me),re}for(ae=u(A,ae);!Ne.done;me++,Ne=N.next())Ne=X(ae,A,me,Ne.value,q),Ne!==null&&(e&&Ne.alternate!==null&&ae.delete(Ne.key===null?me:Ne.key),T=d(Ne,T,me),se===null?re=Ne:se.sibling=Ne,se=Ne);return e&&ae.forEach(function(s0){return n(A,s0)}),Fe&&Gn(A,me),re}function He(A,T,N,q){if(typeof N=="object"&&N!==null&&N.type===oe&&N.key===null&&(N=N.props.children),typeof N=="object"&&N!==null){switch(N.$$typeof){case le:e:{for(var re=N.key,se=T;se!==null;){if(se.key===re){if(re=N.type,re===oe){if(se.tag===7){l(A,se.sibling),T=f(se,N.props.children),T.return=A,A=T;break e}}else if(se.elementType===re||typeof re=="object"&&re!==null&&re.$$typeof===ce&&jp(re)===se.type){l(A,se.sibling),T=f(se,N.props),T.ref=Ti(A,se,N),T.return=A,A=T;break e}l(A,se);break}else n(A,se);se=se.sibling}N.type===oe?(T=ir(N.props.children,A.mode,q,N.key),T.return=A,A=T):(q=oo(N.type,N.key,N.props,null,A.mode,q),q.ref=Ti(A,T,N),q.return=A,A=q)}return k(A);case L:e:{for(se=N.key;T!==null;){if(T.key===se)if(T.tag===4&&T.stateNode.containerInfo===N.containerInfo&&T.stateNode.implementation===N.implementation){l(A,T.sibling),T=f(T,N.children||[]),T.return=A,A=T;break e}else{l(A,T);break}else n(A,T);T=T.sibling}T=Ys(N,A.mode,q),T.return=A,A=T}return k(A);case ce:return se=N._init,He(A,T,se(N._payload),q)}if(yn(N))return ee(A,T,N,q);if(ie(N))return te(A,T,N,q);Ol(A,N)}return typeof N=="string"&&N!==""||typeof N=="number"?(N=""+N,T!==null&&T.tag===6?(l(A,T.sibling),T=f(T,N),T.return=A,A=T):(l(A,T),T=Qs(N,A.mode,q),T.return=A,A=T),k(A)):l(A,T)}return He}var Pr=Bp(!0),Up=Bp(!1),Ml=In(null),Fl=null,Ar=null,rs=null;function is(){rs=Ar=Fl=null}function ls(e){var n=Ml.current;Me(Ml),e._currentValue=n}function os(e,n,l){for(;e!==null;){var u=e.alternate;if((e.childLanes&n)!==n?(e.childLanes|=n,u!==null&&(u.childLanes|=n)):u!==null&&(u.childLanes&n)!==n&&(u.childLanes|=n),e===l)break;e=e.return}}function Nr(e,n){Fl=e,rs=Ar=null,e=e.dependencies,e!==null&&e.firstContext!==null&&((e.lanes&n)!==0&&(vt=!0),e.firstContext=null)}function Lt(e){var n=e._currentValue;if(rs!==e)if(e={context:e,memoizedValue:n,next:null},Ar===null){if(Fl===null)throw Error(r(308));Ar=e,Fl.dependencies={lanes:0,firstContext:e}}else Ar=Ar.next=e;return n}var Xn=null;function us(e){Xn===null?Xn=[e]:Xn.push(e)}function $p(e,n,l,u){var f=n.interleaved;return f===null?(l.next=l,us(n)):(l.next=f.next,f.next=l),n.interleaved=l,sn(e,u)}function sn(e,n){e.lanes|=n;var l=e.alternate;for(l!==null&&(l.lanes|=n),l=e,e=e.return;e!==null;)e.childLanes|=n,l=e.alternate,l!==null&&(l.childLanes|=n),l=e,e=e.return;return l.tag===3?l.stateNode:null}var Nn=!1;function ss(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Vp(e,n){e=e.updateQueue,n.updateQueue===e&&(n.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function an(e,n){return{eventTime:e,lane:n,tag:0,payload:null,callback:null,next:null}}function Rn(e,n,l){var u=e.updateQueue;if(u===null)return null;if(u=u.shared,(Pe&2)!==0){var f=u.pending;return f===null?n.next=n:(n.next=f.next,f.next=n),u.pending=n,sn(e,l)}return f=u.interleaved,f===null?(n.next=n,us(u)):(n.next=f.next,f.next=n),u.interleaved=n,sn(e,l)}function jl(e,n,l){if(n=n.updateQueue,n!==null&&(n=n.shared,(l&4194240)!==0)){var u=n.lanes;u&=e.pendingLanes,l|=u,n.lanes=l,Su(e,l)}}function Hp(e,n){var l=e.updateQueue,u=e.alternate;if(u!==null&&(u=u.updateQueue,l===u)){var f=null,d=null;if(l=l.firstBaseUpdate,l!==null){do{var k={eventTime:l.eventTime,lane:l.lane,tag:l.tag,payload:l.payload,callback:l.callback,next:null};d===null?f=d=k:d=d.next=k,l=l.next}while(l!==null);d===null?f=d=n:d=d.next=n}else f=d=n;l={baseState:u.baseState,firstBaseUpdate:f,lastBaseUpdate:d,shared:u.shared,effects:u.effects},e.updateQueue=l;return}e=l.lastBaseUpdate,e===null?l.firstBaseUpdate=n:e.next=n,l.lastBaseUpdate=n}function Bl(e,n,l,u){var f=e.updateQueue;Nn=!1;var d=f.firstBaseUpdate,k=f.lastBaseUpdate,S=f.shared.pending;if(S!==null){f.shared.pending=null;var C=S,z=C.next;C.next=null,k===null?d=z:k.next=z,k=C;var B=e.alternate;B!==null&&(B=B.updateQueue,S=B.lastBaseUpdate,S!==k&&(S===null?B.firstBaseUpdate=z:S.next=z,B.lastBaseUpdate=C))}if(d!==null){var $=f.baseState;k=0,B=z=C=null,S=d;do{var j=S.lane,X=S.eventTime;if((u&j)===j){B!==null&&(B=B.next={eventTime:X,lane:0,tag:S.tag,payload:S.payload,callback:S.callback,next:null});e:{var ee=e,te=S;switch(j=n,X=l,te.tag){case 1:if(ee=te.payload,typeof ee=="function"){$=ee.call(X,$,j);break e}$=ee;break e;case 3:ee.flags=ee.flags&-65537|128;case 0:if(ee=te.payload,j=typeof ee=="function"?ee.call(X,$,j):ee,j==null)break e;$=w({},$,j);break e;case 2:Nn=!0}}S.callback!==null&&S.lane!==0&&(e.flags|=64,j=f.effects,j===null?f.effects=[S]:j.push(S))}else X={eventTime:X,lane:j,tag:S.tag,payload:S.payload,callback:S.callback,next:null},B===null?(z=B=X,C=$):B=B.next=X,k|=j;if(S=S.next,S===null){if(S=f.shared.pending,S===null)break;j=S,S=j.next,j.next=null,f.lastBaseUpdate=j,f.shared.pending=null}}while(!0);if(B===null&&(C=$),f.baseState=C,f.firstBaseUpdate=z,f.lastBaseUpdate=B,n=f.shared.interleaved,n!==null){f=n;do k|=f.lane,f=f.next;while(f!==n)}else d===null&&(f.shared.lanes=0);er|=k,e.lanes=k,e.memoizedState=$}}function Wp(e,n,l){if(e=n.effects,n.effects=null,e!==null)for(n=0;n<e.length;n++){var u=e[n],f=u.callback;if(f!==null){if(u.callback=null,u=l,typeof f!="function")throw Error(r(191,f));f.call(u)}}}var _i={},Gt=In(_i),Ii=In(_i),Pi=In(_i);function Jn(e){if(e===_i)throw Error(r(174));return e}function as(e,n){switch(be(Pi,n),be(Ii,e),be(Gt,_i),e=n.nodeType,e){case 9:case 11:n=(n=n.documentElement)?n.namespaceURI:K(null,"");break;default:e=e===8?n.parentNode:n,n=e.namespaceURI||null,e=e.tagName,n=K(n,e)}Me(Gt),be(Gt,n)}function Rr(){Me(Gt),Me(Ii),Me(Pi)}function qp(e){Jn(Pi.current);var n=Jn(Gt.current),l=K(n,e.type);n!==l&&(be(Ii,e),be(Gt,l))}function cs(e){Ii.current===e&&(Me(Gt),Me(Ii))}var je=In(0);function Ul(e){for(var n=e;n!==null;){if(n.tag===13){var l=n.memoizedState;if(l!==null&&(l=l.dehydrated,l===null||l.data==="$?"||l.data==="$!"))return n}else if(n.tag===19&&n.memoizedProps.revealOrder!==void 0){if((n.flags&128)!==0)return n}else if(n.child!==null){n.child.return=n,n=n.child;continue}if(n===e)break;for(;n.sibling===null;){if(n.return===null||n.return===e)return null;n=n.return}n.sibling.return=n.return,n=n.sibling}return null}var fs=[];function ps(){for(var e=0;e<fs.length;e++)fs[e]._workInProgressVersionPrimary=null;fs.length=0}var $l=ne.ReactCurrentDispatcher,ds=ne.ReactCurrentBatchConfig,Zn=0,Be=null,Ke=null,Xe=null,Vl=!1,Ai=!1,Ni=0,Nw=0;function ut(){throw Error(r(321))}function hs(e,n){if(n===null)return!1;for(var l=0;l<n.length&&l<e.length;l++)if(!jt(e[l],n[l]))return!1;return!0}function ms(e,n,l,u,f,d){if(Zn=d,Be=n,n.memoizedState=null,n.updateQueue=null,n.lanes=0,$l.current=e===null||e.memoizedState===null?Dw:bw,e=l(u,f),Ai){d=0;do{if(Ai=!1,Ni=0,25<=d)throw Error(r(301));d+=1,Xe=Ke=null,n.updateQueue=null,$l.current=Ow,e=l(u,f)}while(Ai)}if($l.current=ql,n=Ke!==null&&Ke.next!==null,Zn=0,Xe=Ke=Be=null,Vl=!1,n)throw Error(r(300));return e}function gs(){var e=Ni!==0;return Ni=0,e}function Xt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Xe===null?Be.memoizedState=Xe=e:Xe=Xe.next=e,Xe}function Dt(){if(Ke===null){var e=Be.alternate;e=e!==null?e.memoizedState:null}else e=Ke.next;var n=Xe===null?Be.memoizedState:Xe.next;if(n!==null)Xe=n,Ke=e;else{if(e===null)throw Error(r(310));Ke=e,e={memoizedState:Ke.memoizedState,baseState:Ke.baseState,baseQueue:Ke.baseQueue,queue:Ke.queue,next:null},Xe===null?Be.memoizedState=Xe=e:Xe=Xe.next=e}return Xe}function Ri(e,n){return typeof n=="function"?n(e):n}function ys(e){var n=Dt(),l=n.queue;if(l===null)throw Error(r(311));l.lastRenderedReducer=e;var u=Ke,f=u.baseQueue,d=l.pending;if(d!==null){if(f!==null){var k=f.next;f.next=d.next,d.next=k}u.baseQueue=f=d,l.pending=null}if(f!==null){d=f.next,u=u.baseState;var S=k=null,C=null,z=d;do{var B=z.lane;if((Zn&B)===B)C!==null&&(C=C.next={lane:0,action:z.action,hasEagerState:z.hasEagerState,eagerState:z.eagerState,next:null}),u=z.hasEagerState?z.eagerState:e(u,z.action);else{var $={lane:B,action:z.action,hasEagerState:z.hasEagerState,eagerState:z.eagerState,next:null};C===null?(S=C=$,k=u):C=C.next=$,Be.lanes|=B,er|=B}z=z.next}while(z!==null&&z!==d);C===null?k=u:C.next=S,jt(u,n.memoizedState)||(vt=!0),n.memoizedState=u,n.baseState=k,n.baseQueue=C,l.lastRenderedState=u}if(e=l.interleaved,e!==null){f=e;do d=f.lane,Be.lanes|=d,er|=d,f=f.next;while(f!==e)}else f===null&&(l.lanes=0);return[n.memoizedState,l.dispatch]}function ks(e){var n=Dt(),l=n.queue;if(l===null)throw Error(r(311));l.lastRenderedReducer=e;var u=l.dispatch,f=l.pending,d=n.memoizedState;if(f!==null){l.pending=null;var k=f=f.next;do d=e(d,k.action),k=k.next;while(k!==f);jt(d,n.memoizedState)||(vt=!0),n.memoizedState=d,n.baseQueue===null&&(n.baseState=d),l.lastRenderedState=d}return[d,u]}function Qp(){}function Yp(e,n){var l=Be,u=Dt(),f=n(),d=!jt(u.memoizedState,f);if(d&&(u.memoizedState=f,vt=!0),u=u.queue,vs(Xp.bind(null,l,u,e),[e]),u.getSnapshot!==n||d||Xe!==null&&Xe.memoizedState.tag&1){if(l.flags|=2048,zi(9,Gp.bind(null,l,u,f,n),void 0,null),Je===null)throw Error(r(349));(Zn&30)!==0||Kp(l,n,f)}return f}function Kp(e,n,l){e.flags|=16384,e={getSnapshot:n,value:l},n=Be.updateQueue,n===null?(n={lastEffect:null,stores:null},Be.updateQueue=n,n.stores=[e]):(l=n.stores,l===null?n.stores=[e]:l.push(e))}function Gp(e,n,l,u){n.value=l,n.getSnapshot=u,Jp(n)&&Zp(e)}function Xp(e,n,l){return l(function(){Jp(n)&&Zp(e)})}function Jp(e){var n=e.getSnapshot;e=e.value;try{var l=n();return!jt(e,l)}catch{return!0}}function Zp(e){var n=sn(e,1);n!==null&&Ht(n,e,1,-1)}function ed(e){var n=Xt();return typeof e=="function"&&(e=e()),n.memoizedState=n.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Ri,lastRenderedState:e},n.queue=e,e=e.dispatch=Lw.bind(null,Be,e),[n.memoizedState,e]}function zi(e,n,l,u){return e={tag:e,create:n,destroy:l,deps:u,next:null},n=Be.updateQueue,n===null?(n={lastEffect:null,stores:null},Be.updateQueue=n,n.lastEffect=e.next=e):(l=n.lastEffect,l===null?n.lastEffect=e.next=e:(u=l.next,l.next=e,e.next=u,n.lastEffect=e)),e}function td(){return Dt().memoizedState}function Hl(e,n,l,u){var f=Xt();Be.flags|=e,f.memoizedState=zi(1|n,l,void 0,u===void 0?null:u)}function Wl(e,n,l,u){var f=Dt();u=u===void 0?null:u;var d=void 0;if(Ke!==null){var k=Ke.memoizedState;if(d=k.destroy,u!==null&&hs(u,k.deps)){f.memoizedState=zi(n,l,d,u);return}}Be.flags|=e,f.memoizedState=zi(1|n,l,d,u)}function nd(e,n){return Hl(8390656,8,e,n)}function vs(e,n){return Wl(2048,8,e,n)}function rd(e,n){return Wl(4,2,e,n)}function id(e,n){return Wl(4,4,e,n)}function ld(e,n){if(typeof n=="function")return e=e(),n(e),function(){n(null)};if(n!=null)return e=e(),n.current=e,function(){n.current=null}}function od(e,n,l){return l=l!=null?l.concat([e]):null,Wl(4,4,ld.bind(null,n,e),l)}function xs(){}function ud(e,n){var l=Dt();n=n===void 0?null:n;var u=l.memoizedState;return u!==null&&n!==null&&hs(n,u[1])?u[0]:(l.memoizedState=[e,n],e)}function sd(e,n){var l=Dt();n=n===void 0?null:n;var u=l.memoizedState;return u!==null&&n!==null&&hs(n,u[1])?u[0]:(e=e(),l.memoizedState=[e,n],e)}function ad(e,n,l){return(Zn&21)===0?(e.baseState&&(e.baseState=!1,vt=!0),e.memoizedState=l):(jt(l,n)||(l=jf(),Be.lanes|=l,er|=l,e.baseState=!0),n)}function Rw(e,n){var l=ze;ze=l!==0&&4>l?l:4,e(!0);var u=ds.transition;ds.transition={};try{e(!1),n()}finally{ze=l,ds.transition=u}}function cd(){return Dt().memoizedState}function zw(e,n,l){var u=bn(e);if(l={lane:u,action:l,hasEagerState:!1,eagerState:null,next:null},fd(e))pd(n,l);else if(l=$p(e,n,l,u),l!==null){var f=pt();Ht(l,e,u,f),dd(l,n,u)}}function Lw(e,n,l){var u=bn(e),f={lane:u,action:l,hasEagerState:!1,eagerState:null,next:null};if(fd(e))pd(n,f);else{var d=e.alternate;if(e.lanes===0&&(d===null||d.lanes===0)&&(d=n.lastRenderedReducer,d!==null))try{var k=n.lastRenderedState,S=d(k,l);if(f.hasEagerState=!0,f.eagerState=S,jt(S,k)){var C=n.interleaved;C===null?(f.next=f,us(n)):(f.next=C.next,C.next=f),n.interleaved=f;return}}catch{}l=$p(e,n,f,u),l!==null&&(f=pt(),Ht(l,e,u,f),dd(l,n,u))}}function fd(e){var n=e.alternate;return e===Be||n!==null&&n===Be}function pd(e,n){Ai=Vl=!0;var l=e.pending;l===null?n.next=n:(n.next=l.next,l.next=n),e.pending=n}function dd(e,n,l){if((l&4194240)!==0){var u=n.lanes;u&=e.pendingLanes,l|=u,n.lanes=l,Su(e,l)}}var ql={readContext:Lt,useCallback:ut,useContext:ut,useEffect:ut,useImperativeHandle:ut,useInsertionEffect:ut,useLayoutEffect:ut,useMemo:ut,useReducer:ut,useRef:ut,useState:ut,useDebugValue:ut,useDeferredValue:ut,useTransition:ut,useMutableSource:ut,useSyncExternalStore:ut,useId:ut,unstable_isNewReconciler:!1},Dw={readContext:Lt,useCallback:function(e,n){return Xt().memoizedState=[e,n===void 0?null:n],e},useContext:Lt,useEffect:nd,useImperativeHandle:function(e,n,l){return l=l!=null?l.concat([e]):null,Hl(4194308,4,ld.bind(null,n,e),l)},useLayoutEffect:function(e,n){return Hl(4194308,4,e,n)},useInsertionEffect:function(e,n){return Hl(4,2,e,n)},useMemo:function(e,n){var l=Xt();return n=n===void 0?null:n,e=e(),l.memoizedState=[e,n],e},useReducer:function(e,n,l){var u=Xt();return n=l!==void 0?l(n):n,u.memoizedState=u.baseState=n,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:n},u.queue=e,e=e.dispatch=zw.bind(null,Be,e),[u.memoizedState,e]},useRef:function(e){var n=Xt();return e={current:e},n.memoizedState=e},useState:ed,useDebugValue:xs,useDeferredValue:function(e){return Xt().memoizedState=e},useTransition:function(){var e=ed(!1),n=e[0];return e=Rw.bind(null,e[1]),Xt().memoizedState=e,[n,e]},useMutableSource:function(){},useSyncExternalStore:function(e,n,l){var u=Be,f=Xt();if(Fe){if(l===void 0)throw Error(r(407));l=l()}else{if(l=n(),Je===null)throw Error(r(349));(Zn&30)!==0||Kp(u,n,l)}f.memoizedState=l;var d={value:l,getSnapshot:n};return f.queue=d,nd(Xp.bind(null,u,d,e),[e]),u.flags|=2048,zi(9,Gp.bind(null,u,d,l,n),void 0,null),l},useId:function(){var e=Xt(),n=Je.identifierPrefix;if(Fe){var l=un,u=on;l=(u&~(1<<32-Ft(u)-1)).toString(32)+l,n=":"+n+"R"+l,l=Ni++,0<l&&(n+="H"+l.toString(32)),n+=":"}else l=Nw++,n=":"+n+"r"+l.toString(32)+":";return e.memoizedState=n},unstable_isNewReconciler:!1},bw={readContext:Lt,useCallback:ud,useContext:Lt,useEffect:vs,useImperativeHandle:od,useInsertionEffect:rd,useLayoutEffect:id,useMemo:sd,useReducer:ys,useRef:td,useState:function(){return ys(Ri)},useDebugValue:xs,useDeferredValue:function(e){var n=Dt();return ad(n,Ke.memoizedState,e)},useTransition:function(){var e=ys(Ri)[0],n=Dt().memoizedState;return[e,n]},useMutableSource:Qp,useSyncExternalStore:Yp,useId:cd,unstable_isNewReconciler:!1},Ow={readContext:Lt,useCallback:ud,useContext:Lt,useEffect:vs,useImperativeHandle:od,useInsertionEffect:rd,useLayoutEffect:id,useMemo:sd,useReducer:ks,useRef:td,useState:function(){return ks(Ri)},useDebugValue:xs,useDeferredValue:function(e){var n=Dt();return Ke===null?n.memoizedState=e:ad(n,Ke.memoizedState,e)},useTransition:function(){var e=ks(Ri)[0],n=Dt().memoizedState;return[e,n]},useMutableSource:Qp,useSyncExternalStore:Yp,useId:cd,unstable_isNewReconciler:!1};function Ut(e,n){if(e&&e.defaultProps){n=w({},n),e=e.defaultProps;for(var l in e)n[l]===void 0&&(n[l]=e[l]);return n}return n}function ws(e,n,l,u){n=e.memoizedState,l=l(u,n),l=l==null?n:w({},n,l),e.memoizedState=l,e.lanes===0&&(e.updateQueue.baseState=l)}var Ql={isMounted:function(e){return(e=e._reactInternals)?qn(e)===e:!1},enqueueSetState:function(e,n,l){e=e._reactInternals;var u=pt(),f=bn(e),d=an(u,f);d.payload=n,l!=null&&(d.callback=l),n=Rn(e,d,f),n!==null&&(Ht(n,e,f,u),jl(n,e,f))},enqueueReplaceState:function(e,n,l){e=e._reactInternals;var u=pt(),f=bn(e),d=an(u,f);d.tag=1,d.payload=n,l!=null&&(d.callback=l),n=Rn(e,d,f),n!==null&&(Ht(n,e,f,u),jl(n,e,f))},enqueueForceUpdate:function(e,n){e=e._reactInternals;var l=pt(),u=bn(e),f=an(l,u);f.tag=2,n!=null&&(f.callback=n),n=Rn(e,f,u),n!==null&&(Ht(n,e,u,l),jl(n,e,u))}};function hd(e,n,l,u,f,d,k){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(u,d,k):n.prototype&&n.prototype.isPureReactComponent?!ki(l,u)||!ki(f,d):!0}function md(e,n,l){var u=!1,f=Pn,d=n.contextType;return typeof d=="object"&&d!==null?d=Lt(d):(f=kt(n)?Yn:ot.current,u=n.contextTypes,d=(u=u!=null)?Cr(e,f):Pn),n=new n(l,d),e.memoizedState=n.state!==null&&n.state!==void 0?n.state:null,n.updater=Ql,e.stateNode=n,n._reactInternals=e,u&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=f,e.__reactInternalMemoizedMaskedChildContext=d),n}function gd(e,n,l,u){e=n.state,typeof n.componentWillReceiveProps=="function"&&n.componentWillReceiveProps(l,u),typeof n.UNSAFE_componentWillReceiveProps=="function"&&n.UNSAFE_componentWillReceiveProps(l,u),n.state!==e&&Ql.enqueueReplaceState(n,n.state,null)}function Ss(e,n,l,u){var f=e.stateNode;f.props=l,f.state=e.memoizedState,f.refs={},ss(e);var d=n.contextType;typeof d=="object"&&d!==null?f.context=Lt(d):(d=kt(n)?Yn:ot.current,f.context=Cr(e,d)),f.state=e.memoizedState,d=n.getDerivedStateFromProps,typeof d=="function"&&(ws(e,n,d,l),f.state=e.memoizedState),typeof n.getDerivedStateFromProps=="function"||typeof f.getSnapshotBeforeUpdate=="function"||typeof f.UNSAFE_componentWillMount!="function"&&typeof f.componentWillMount!="function"||(n=f.state,typeof f.componentWillMount=="function"&&f.componentWillMount(),typeof f.UNSAFE_componentWillMount=="function"&&f.UNSAFE_componentWillMount(),n!==f.state&&Ql.enqueueReplaceState(f,f.state,null),Bl(e,l,f,u),f.state=e.memoizedState),typeof f.componentDidMount=="function"&&(e.flags|=4194308)}function zr(e,n){try{var l="",u=n;do l+=xe(u),u=u.return;while(u);var f=l}catch(d){f=`
7
7
  Error generating stack: `+d.message+`
8
- `+d.stack}return{value:e,source:n,stack:f,digest:null}}function Cs(e,n,l){return{value:e,source:null,stack:l!=null?l:null,digest:n!=null?n:null}}function Ts(e,n){try{console.error(n.value)}catch(l){setTimeout(function(){throw l})}}var Vx=typeof WeakMap=="function"?WeakMap:Map;function yd(e,n,l){l=an(-1,l),l.tag=3,l.payload={element:null};var u=n.value;return l.callback=function(){eo||(eo=!0,Bs=u),Ts(e,n)},l}function kd(e,n,l){l=an(-1,l),l.tag=3;var u=e.type.getDerivedStateFromError;if(typeof u=="function"){var f=n.value;l.payload=function(){return u(f)},l.callback=function(){Ts(e,n)}}var d=e.stateNode;return d!==null&&typeof d.componentDidCatch=="function"&&(l.callback=function(){Ts(e,n),typeof u!="function"&&(zn===null?zn=new Set([this]):zn.add(this));var k=n.stack;this.componentDidCatch(n.value,{componentStack:k!==null?k:""})}),l}function vd(e,n,l){var u=e.pingCache;if(u===null){u=e.pingCache=new Vx;var f=new Set;u.set(n,f)}else f=u.get(n),f===void 0&&(f=new Set,u.set(n,f));f.has(l)||(f.add(l),e=r0.bind(null,e,n,l),n.then(e,e))}function wd(e){do{var n;if((n=e.tag===13)&&(n=e.memoizedState,n=n!==null?n.dehydrated!==null:!0),n)return e;e=e.return}while(e!==null);return null}function xd(e,n,l,u,f){return(e.mode&1)===0?(e===n?e.flags|=65536:(e.flags|=128,l.flags|=131072,l.flags&=-52805,l.tag===1&&(l.alternate===null?l.tag=17:(n=an(-1,1),n.tag=2,bn(l,n,1))),l.lanes|=1),e):(e.flags|=65536,e.lanes=f,e)}var Hx=ne.ReactCurrentOwner,vt=!1;function ft(e,n,l,u){n.child=e===null?Up(n,null,l,u):Pr(n,e.child,l,u)}function Sd(e,n,l,u,f){l=l.render;var d=n.ref;return Ar(n,f),u=gs(e,n,l,u,d,f),l=ys(),e!==null&&!vt?(n.updateQueue=e.updateQueue,n.flags&=-2053,e.lanes&=~f,cn(e,n,f)):(Fe&&l&&Zu(n),n.flags|=1,ft(e,n,u,f),n.child)}function Ed(e,n,l,u,f){if(e===null){var d=l.type;return typeof d=="function"&&!qs(d)&&d.defaultProps===void 0&&l.compare===null&&l.defaultProps===void 0?(n.tag=15,n.type=d,Cd(e,n,d,u,f)):(e=oo(l.type,null,u,n,n.mode,f),e.ref=n.ref,e.return=n,n.child=e)}if(d=e.child,(e.lanes&f)===0){var k=d.memoizedProps;if(l=l.compare,l=l!==null?l:ki,l(k,u)&&e.ref===n.ref)return cn(e,n,f)}return n.flags|=1,e=Mn(d,u),e.ref=n.ref,e.return=n,n.child=e}function Cd(e,n,l,u,f){if(e!==null){var d=e.memoizedProps;if(ki(d,u)&&e.ref===n.ref)if(vt=!1,n.pendingProps=u=d,(e.lanes&f)!==0)(e.flags&131072)!==0&&(vt=!0);else return n.lanes=e.lanes,cn(e,n,f)}return _s(e,n,l,u,f)}function Td(e,n,l){var u=n.pendingProps,f=u.children,d=e!==null?e.memoizedState:null;if(u.mode==="hidden")if((n.mode&1)===0)n.memoizedState={baseLanes:0,cachePool:null,transitions:null},De(Lr,Pt),Pt|=l;else{if((l&1073741824)===0)return e=d!==null?d.baseLanes|l:l,n.lanes=n.childLanes=1073741824,n.memoizedState={baseLanes:e,cachePool:null,transitions:null},n.updateQueue=null,De(Lr,Pt),Pt|=e,null;n.memoizedState={baseLanes:0,cachePool:null,transitions:null},u=d!==null?d.baseLanes:l,De(Lr,Pt),Pt|=u}else d!==null?(u=d.baseLanes|l,n.memoizedState=null):u=l,De(Lr,Pt),Pt|=u;return ft(e,n,f,l),n.child}function _d(e,n){var l=n.ref;(e===null&&l!==null||e!==null&&e.ref!==l)&&(n.flags|=512,n.flags|=2097152)}function _s(e,n,l,u,f){var d=kt(l)?Yn:ot.current;return d=Cr(n,d),Ar(n,f),l=gs(e,n,l,u,d,f),u=ys(),e!==null&&!vt?(n.updateQueue=e.updateQueue,n.flags&=-2053,e.lanes&=~f,cn(e,n,f)):(Fe&&u&&Zu(n),n.flags|=1,ft(e,n,l,f),n.child)}function Id(e,n,l,u,f){if(kt(l)){var d=!0;bl(n)}else d=!1;if(Ar(n,f),n.stateNode===null)Kl(e,n),md(n,l,u),Es(n,l,u,f),u=!0;else if(e===null){var k=n.stateNode,S=n.memoizedProps;k.props=S;var C=k.context,b=l.contextType;typeof b=="object"&&b!==null?b=zt(b):(b=kt(l)?Yn:ot.current,b=Cr(n,b));var B=l.getDerivedStateFromProps,V=typeof B=="function"||typeof k.getSnapshotBeforeUpdate=="function";V||typeof k.UNSAFE_componentWillReceiveProps!="function"&&typeof k.componentWillReceiveProps!="function"||(S!==u||C!==b)&&gd(n,k,u,b),An=!1;var j=n.memoizedState;k.state=j,Bl(n,u,k,f),C=n.memoizedState,S!==u||j!==C||yt.current||An?(typeof B=="function"&&(Ss(n,l,B,u),C=n.memoizedState),(S=An||hd(n,l,S,u,j,C,b))?(V||typeof k.UNSAFE_componentWillMount!="function"&&typeof k.componentWillMount!="function"||(typeof k.componentWillMount=="function"&&k.componentWillMount(),typeof k.UNSAFE_componentWillMount=="function"&&k.UNSAFE_componentWillMount()),typeof k.componentDidMount=="function"&&(n.flags|=4194308)):(typeof k.componentDidMount=="function"&&(n.flags|=4194308),n.memoizedProps=u,n.memoizedState=C),k.props=u,k.state=C,k.context=b,u=S):(typeof k.componentDidMount=="function"&&(n.flags|=4194308),u=!1)}else{k=n.stateNode,Vp(e,n),S=n.memoizedProps,b=n.type===n.elementType?S:Ut(n.type,S),k.props=b,V=n.pendingProps,j=k.context,C=l.contextType,typeof C=="object"&&C!==null?C=zt(C):(C=kt(l)?Yn:ot.current,C=Cr(n,C));var G=l.getDerivedStateFromProps;(B=typeof G=="function"||typeof k.getSnapshotBeforeUpdate=="function")||typeof k.UNSAFE_componentWillReceiveProps!="function"&&typeof k.componentWillReceiveProps!="function"||(S!==V||j!==C)&&gd(n,k,u,C),An=!1,j=n.memoizedState,k.state=j,Bl(n,u,k,f);var re=n.memoizedState;S!==V||j!==re||yt.current||An?(typeof G=="function"&&(Ss(n,l,G,u),re=n.memoizedState),(b=An||hd(n,l,b,u,j,re,C)||!1)?(B||typeof k.UNSAFE_componentWillUpdate!="function"&&typeof k.componentWillUpdate!="function"||(typeof k.componentWillUpdate=="function"&&k.componentWillUpdate(u,re,C),typeof k.UNSAFE_componentWillUpdate=="function"&&k.UNSAFE_componentWillUpdate(u,re,C)),typeof k.componentDidUpdate=="function"&&(n.flags|=4),typeof k.getSnapshotBeforeUpdate=="function"&&(n.flags|=1024)):(typeof k.componentDidUpdate!="function"||S===e.memoizedProps&&j===e.memoizedState||(n.flags|=4),typeof k.getSnapshotBeforeUpdate!="function"||S===e.memoizedProps&&j===e.memoizedState||(n.flags|=1024),n.memoizedProps=u,n.memoizedState=re),k.props=u,k.state=re,k.context=C,u=b):(typeof k.componentDidUpdate!="function"||S===e.memoizedProps&&j===e.memoizedState||(n.flags|=4),typeof k.getSnapshotBeforeUpdate!="function"||S===e.memoizedProps&&j===e.memoizedState||(n.flags|=1024),u=!1)}return Is(e,n,l,u,d,f)}function Is(e,n,l,u,f,d){_d(e,n);var k=(n.flags&128)!==0;if(!u&&!k)return f&&Rp(n,l,!1),cn(e,n,d);u=n.stateNode,Hx.current=n;var S=k&&typeof l.getDerivedStateFromError!="function"?null:u.render();return n.flags|=1,e!==null&&k?(n.child=Pr(n,e.child,null,d),n.child=Pr(n,null,S,d)):ft(e,n,S,d),n.memoizedState=u.state,f&&Rp(n,l,!0),n.child}function Pd(e){var n=e.stateNode;n.pendingContext?Ap(e,n.pendingContext,n.pendingContext!==n.context):n.context&&Ap(e,n.context,!1),cs(e,n.containerInfo)}function Nd(e,n,l,u,f){return Ir(),rs(f),n.flags|=256,ft(e,n,l,u),n.child}var Ps={dehydrated:null,treeContext:null,retryLane:0};function Ns(e){return{baseLanes:e,cachePool:null,transitions:null}}function Ad(e,n,l){var u=n.pendingProps,f=Be.current,d=!1,k=(n.flags&128)!==0,S;if((S=k)||(S=e!==null&&e.memoizedState===null?!1:(f&2)!==0),S?(d=!0,n.flags&=-129):(e===null||e.memoizedState!==null)&&(f|=1),De(Be,f&1),e===null)return ns(n),e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?((n.mode&1)===0?n.lanes=1:e.data==="$!"?n.lanes=8:n.lanes=1073741824,null):(k=u.children,e=u.fallback,d?(u=n.mode,d=n.child,k={mode:"hidden",children:k},(u&1)===0&&d!==null?(d.childLanes=0,d.pendingProps=k):d=uo(k,u,0,null),e=ir(e,u,l,null),d.return=n,e.return=n,d.sibling=e,n.child=d,n.child.memoizedState=Ns(l),n.memoizedState=Ps,e):As(n,k));if(f=e.memoizedState,f!==null&&(S=f.dehydrated,S!==null))return Wx(e,n,k,u,S,f,l);if(d){d=u.fallback,k=n.mode,f=e.child,S=f.sibling;var C={mode:"hidden",children:u.children};return(k&1)===0&&n.child!==f?(u=n.child,u.childLanes=0,u.pendingProps=C,n.deletions=null):(u=Mn(f,C),u.subtreeFlags=f.subtreeFlags&14680064),S!==null?d=Mn(S,d):(d=ir(d,k,l,null),d.flags|=2),d.return=n,u.return=n,u.sibling=d,n.child=u,u=d,d=n.child,k=e.child.memoizedState,k=k===null?Ns(l):{baseLanes:k.baseLanes|l,cachePool:null,transitions:k.transitions},d.memoizedState=k,d.childLanes=e.childLanes&~l,n.memoizedState=Ps,u}return d=e.child,e=d.sibling,u=Mn(d,{mode:"visible",children:u.children}),(n.mode&1)===0&&(u.lanes=l),u.return=n,u.sibling=null,e!==null&&(l=n.deletions,l===null?(n.deletions=[e],n.flags|=16):l.push(e)),n.child=u,n.memoizedState=null,u}function As(e,n){return n=uo({mode:"visible",children:n},e.mode,0,null),n.return=e,e.child=n}function Yl(e,n,l,u){return u!==null&&rs(u),Pr(n,e.child,null,l),e=As(n,n.pendingProps.children),e.flags|=2,n.memoizedState=null,e}function Wx(e,n,l,u,f,d,k){if(l)return n.flags&256?(n.flags&=-257,u=Cs(Error(r(422))),Yl(e,n,k,u)):n.memoizedState!==null?(n.child=e.child,n.flags|=128,null):(d=u.fallback,f=n.mode,u=uo({mode:"visible",children:u.children},f,0,null),d=ir(d,f,k,null),d.flags|=2,u.return=n,d.return=n,u.sibling=d,n.child=u,(n.mode&1)!==0&&Pr(n,e.child,null,k),n.child.memoizedState=Ns(k),n.memoizedState=Ps,d);if((n.mode&1)===0)return Yl(e,n,k,null);if(f.data==="$!"){if(u=f.nextSibling&&f.nextSibling.dataset,u)var S=u.dgst;return u=S,d=Error(r(419)),u=Cs(d,u,void 0),Yl(e,n,k,u)}if(S=(k&e.childLanes)!==0,vt||S){if(u=Je,u!==null){switch(k&-k){case 4:f=2;break;case 16:f=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:f=32;break;case 536870912:f=268435456;break;default:f=0}f=(f&(u.suspendedLanes|k))!==0?0:f,f!==0&&f!==d.retryLane&&(d.retryLane=f,sn(e,f),Ht(u,e,f,-1))}return Qs(),u=Cs(Error(r(421))),Yl(e,n,k,u)}return f.data==="$?"?(n.flags|=128,n.child=e.child,n=i0.bind(null,e),f._reactRetry=n,null):(e=d.treeContext,It=_n(f.nextSibling),_t=n,Fe=!0,Bt=null,e!==null&&(bt[Rt++]=on,bt[Rt++]=un,bt[Rt++]=Kn,on=e.id,un=e.overflow,Kn=n),n=As(n,u.children),n.flags|=4096,n)}function bd(e,n,l){e.lanes|=n;var u=e.alternate;u!==null&&(u.lanes|=n),us(e.return,n,l)}function bs(e,n,l,u,f){var d=e.memoizedState;d===null?e.memoizedState={isBackwards:n,rendering:null,renderingStartTime:0,last:u,tail:l,tailMode:f}:(d.isBackwards=n,d.rendering=null,d.renderingStartTime=0,d.last=u,d.tail=l,d.tailMode=f)}function Rd(e,n,l){var u=n.pendingProps,f=u.revealOrder,d=u.tail;if(ft(e,n,u.children,l),u=Be.current,(u&2)!==0)u=u&1|2,n.flags|=128;else{if(e!==null&&(e.flags&128)!==0)e:for(e=n.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&bd(e,l,n);else if(e.tag===19)bd(e,l,n);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===n)break e;for(;e.sibling===null;){if(e.return===null||e.return===n)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}u&=1}if(De(Be,u),(n.mode&1)===0)n.memoizedState=null;else switch(f){case"forwards":for(l=n.child,f=null;l!==null;)e=l.alternate,e!==null&&Ul(e)===null&&(f=l),l=l.sibling;l=f,l===null?(f=n.child,n.child=null):(f=l.sibling,l.sibling=null),bs(n,!1,f,l,d);break;case"backwards":for(l=null,f=n.child,n.child=null;f!==null;){if(e=f.alternate,e!==null&&Ul(e)===null){n.child=f;break}e=f.sibling,f.sibling=l,l=f,f=e}bs(n,!0,l,null,d);break;case"together":bs(n,!1,null,null,void 0);break;default:n.memoizedState=null}return n.child}function Kl(e,n){(n.mode&1)===0&&e!==null&&(e.alternate=null,n.alternate=null,n.flags|=2)}function cn(e,n,l){if(e!==null&&(n.dependencies=e.dependencies),er|=n.lanes,(l&n.childLanes)===0)return null;if(e!==null&&n.child!==e.child)throw Error(r(153));if(n.child!==null){for(e=n.child,l=Mn(e,e.pendingProps),n.child=l,l.return=n;e.sibling!==null;)e=e.sibling,l=l.sibling=Mn(e,e.pendingProps),l.return=n;l.sibling=null}return n.child}function Qx(e,n,l){switch(n.tag){case 3:Pd(n),Ir();break;case 5:Qp(n);break;case 1:kt(n.type)&&bl(n);break;case 4:cs(n,n.stateNode.containerInfo);break;case 10:var u=n.type._context,f=n.memoizedProps.value;De(Ml,u._currentValue),u._currentValue=f;break;case 13:if(u=n.memoizedState,u!==null)return u.dehydrated!==null?(De(Be,Be.current&1),n.flags|=128,null):(l&n.child.childLanes)!==0?Ad(e,n,l):(De(Be,Be.current&1),e=cn(e,n,l),e!==null?e.sibling:null);De(Be,Be.current&1);break;case 19:if(u=(l&n.childLanes)!==0,(e.flags&128)!==0){if(u)return Rd(e,n,l);n.flags|=128}if(f=n.memoizedState,f!==null&&(f.rendering=null,f.tail=null,f.lastEffect=null),De(Be,Be.current),u)break;return null;case 22:case 23:return n.lanes=0,Td(e,n,l)}return cn(e,n,l)}var zd,Rs,Ld,Dd;zd=function(e,n){for(var l=n.child;l!==null;){if(l.tag===5||l.tag===6)e.appendChild(l.stateNode);else if(l.tag!==4&&l.child!==null){l.child.return=l,l=l.child;continue}if(l===n)break;for(;l.sibling===null;){if(l.return===null||l.return===n)return;l=l.return}l.sibling.return=l.return,l=l.sibling}},Rs=function(){},Ld=function(e,n,l,u){var f=e.memoizedProps;if(f!==u){e=n.stateNode,Jn(Gt.current);var d=null;switch(l){case"input":f=Zr(e,f),u=Zr(e,u),d=[];break;case"select":f=x({},f,{value:void 0}),u=x({},u,{value:void 0}),d=[];break;case"textarea":f=ni(e,f),u=ni(e,u),d=[];break;default:typeof f.onClick!="function"&&typeof u.onClick=="function"&&(e.onclick=Pl)}tt(l,u);var k;l=null;for(b in f)if(!u.hasOwnProperty(b)&&f.hasOwnProperty(b)&&f[b]!=null)if(b==="style"){var S=f[b];for(k in S)S.hasOwnProperty(k)&&(l||(l={}),l[k]="")}else b!=="dangerouslySetInnerHTML"&&b!=="children"&&b!=="suppressContentEditableWarning"&&b!=="suppressHydrationWarning"&&b!=="autoFocus"&&(s.hasOwnProperty(b)?d||(d=[]):(d=d||[]).push(b,null));for(b in u){var C=u[b];if(S=f!=null?f[b]:void 0,u.hasOwnProperty(b)&&C!==S&&(C!=null||S!=null))if(b==="style")if(S){for(k in S)!S.hasOwnProperty(k)||C&&C.hasOwnProperty(k)||(l||(l={}),l[k]="");for(k in C)C.hasOwnProperty(k)&&S[k]!==C[k]&&(l||(l={}),l[k]=C[k])}else l||(d||(d=[]),d.push(b,l)),l=C;else b==="dangerouslySetInnerHTML"?(C=C?C.__html:void 0,S=S?S.__html:void 0,C!=null&&S!==C&&(d=d||[]).push(b,C)):b==="children"?typeof C!="string"&&typeof C!="number"||(d=d||[]).push(b,""+C):b!=="suppressContentEditableWarning"&&b!=="suppressHydrationWarning"&&(s.hasOwnProperty(b)?(C!=null&&b==="onScroll"&&Oe("scroll",e),d||S===C||(d=[])):(d=d||[]).push(b,C))}l&&(d=d||[]).push("style",l);var b=d;(n.updateQueue=b)&&(n.flags|=4)}},Dd=function(e,n,l,u){l!==u&&(n.flags|=4)};function zi(e,n){if(!Fe)switch(e.tailMode){case"hidden":n=e.tail;for(var l=null;n!==null;)n.alternate!==null&&(l=n),n=n.sibling;l===null?e.tail=null:l.sibling=null;break;case"collapsed":l=e.tail;for(var u=null;l!==null;)l.alternate!==null&&(u=l),l=l.sibling;u===null?n||e.tail===null?e.tail=null:e.tail.sibling=null:u.sibling=null}}function st(e){var n=e.alternate!==null&&e.alternate.child===e.child,l=0,u=0;if(n)for(var f=e.child;f!==null;)l|=f.lanes|f.childLanes,u|=f.subtreeFlags&14680064,u|=f.flags&14680064,f.return=e,f=f.sibling;else for(f=e.child;f!==null;)l|=f.lanes|f.childLanes,u|=f.subtreeFlags,u|=f.flags,f.return=e,f=f.sibling;return e.subtreeFlags|=u,e.childLanes=l,n}function qx(e,n,l){var u=n.pendingProps;switch(es(n),n.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return st(n),null;case 1:return kt(n.type)&&Al(),st(n),null;case 3:return u=n.stateNode,br(),Me(yt),Me(ot),ds(),u.pendingContext&&(u.context=u.pendingContext,u.pendingContext=null),(e===null||e.child===null)&&(Dl(n)?n.flags|=4:e===null||e.memoizedState.isDehydrated&&(n.flags&256)===0||(n.flags|=1024,Bt!==null&&(Vs(Bt),Bt=null))),Rs(e,n),st(n),null;case 5:fs(n);var f=Jn(Pi.current);if(l=n.type,e!==null&&n.stateNode!=null)Ld(e,n,l,u,f),e.ref!==n.ref&&(n.flags|=512,n.flags|=2097152);else{if(!u){if(n.stateNode===null)throw Error(r(166));return st(n),null}if(e=Jn(Gt.current),Dl(n)){u=n.stateNode,l=n.type;var d=n.memoizedProps;switch(u[Kt]=n,u[Ei]=d,e=(n.mode&1)!==0,l){case"dialog":Oe("cancel",u),Oe("close",u);break;case"iframe":case"object":case"embed":Oe("load",u);break;case"video":case"audio":for(f=0;f<wi.length;f++)Oe(wi[f],u);break;case"source":Oe("error",u);break;case"img":case"image":case"link":Oe("error",u),Oe("load",u);break;case"details":Oe("toggle",u);break;case"input":ei(u,d),Oe("invalid",u);break;case"select":u._wrapperState={wasMultiple:!!d.multiple},Oe("invalid",u);break;case"textarea":il(u,d),Oe("invalid",u)}tt(l,d),f=null;for(var k in d)if(d.hasOwnProperty(k)){var S=d[k];k==="children"?typeof S=="string"?u.textContent!==S&&(d.suppressHydrationWarning!==!0&&Il(u.textContent,S,e),f=["children",S]):typeof S=="number"&&u.textContent!==""+S&&(d.suppressHydrationWarning!==!0&&Il(u.textContent,S,e),f=["children",""+S]):s.hasOwnProperty(k)&&S!=null&&k==="onScroll"&&Oe("scroll",u)}switch(l){case"input":tn(u),rl(u,d,!0);break;case"textarea":tn(u),ol(u);break;case"select":case"option":break;default:typeof d.onClick=="function"&&(u.onclick=Pl)}u=f,n.updateQueue=u,u!==null&&(n.flags|=4)}else{k=f.nodeType===9?f:f.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=O(l)),e==="http://www.w3.org/1999/xhtml"?l==="script"?(e=k.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof u.is=="string"?e=k.createElement(l,{is:u.is}):(e=k.createElement(l),l==="select"&&(k=e,u.multiple?k.multiple=!0:u.size&&(k.size=u.size))):e=k.createElementNS(e,l),e[Kt]=n,e[Ei]=u,zd(e,n,!1,!1),n.stateNode=e;e:{switch(k=qt(l,u),l){case"dialog":Oe("cancel",e),Oe("close",e),f=u;break;case"iframe":case"object":case"embed":Oe("load",e),f=u;break;case"video":case"audio":for(f=0;f<wi.length;f++)Oe(wi[f],e);f=u;break;case"source":Oe("error",e),f=u;break;case"img":case"image":case"link":Oe("error",e),Oe("load",e),f=u;break;case"details":Oe("toggle",e),f=u;break;case"input":ei(e,u),f=Zr(e,u),Oe("invalid",e);break;case"option":f=u;break;case"select":e._wrapperState={wasMultiple:!!u.multiple},f=x({},u,{value:void 0}),Oe("invalid",e);break;case"textarea":il(e,u),f=ni(e,u),Oe("invalid",e);break;default:f=u}tt(l,f),S=f;for(d in S)if(S.hasOwnProperty(d)){var C=S[d];d==="style"?vn(e,C):d==="dangerouslySetInnerHTML"?(C=C?C.__html:void 0,C!=null&&Ee(e,C)):d==="children"?typeof C=="string"?(l!=="textarea"||C!=="")&&Ie(e,C):typeof C=="number"&&Ie(e,""+C):d!=="suppressContentEditableWarning"&&d!=="suppressHydrationWarning"&&d!=="autoFocus"&&(s.hasOwnProperty(d)?C!=null&&d==="onScroll"&&Oe("scroll",e):C!=null&&M(e,d,C,k))}switch(l){case"input":tn(e),rl(e,u,!1);break;case"textarea":tn(e),ol(e);break;case"option":u.value!=null&&e.setAttribute("value",""+Se(u.value));break;case"select":e.multiple=!!u.multiple,d=u.value,d!=null?kn(e,!!u.multiple,d,!1):u.defaultValue!=null&&kn(e,!!u.multiple,u.defaultValue,!0);break;default:typeof f.onClick=="function"&&(e.onclick=Pl)}switch(l){case"button":case"input":case"select":case"textarea":u=!!u.autoFocus;break e;case"img":u=!0;break e;default:u=!1}}u&&(n.flags|=4)}n.ref!==null&&(n.flags|=512,n.flags|=2097152)}return st(n),null;case 6:if(e&&n.stateNode!=null)Dd(e,n,e.memoizedProps,u);else{if(typeof u!="string"&&n.stateNode===null)throw Error(r(166));if(l=Jn(Pi.current),Jn(Gt.current),Dl(n)){if(u=n.stateNode,l=n.memoizedProps,u[Kt]=n,(d=u.nodeValue!==l)&&(e=_t,e!==null))switch(e.tag){case 3:Il(u.nodeValue,l,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&Il(u.nodeValue,l,(e.mode&1)!==0)}d&&(n.flags|=4)}else u=(l.nodeType===9?l:l.ownerDocument).createTextNode(u),u[Kt]=n,n.stateNode=u}return st(n),null;case 13:if(Me(Be),u=n.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(Fe&&It!==null&&(n.mode&1)!==0&&(n.flags&128)===0)Fp(),Ir(),n.flags|=98560,d=!1;else if(d=Dl(n),u!==null&&u.dehydrated!==null){if(e===null){if(!d)throw Error(r(318));if(d=n.memoizedState,d=d!==null?d.dehydrated:null,!d)throw Error(r(317));d[Kt]=n}else Ir(),(n.flags&128)===0&&(n.memoizedState=null),n.flags|=4;st(n),d=!1}else Bt!==null&&(Vs(Bt),Bt=null),d=!0;if(!d)return n.flags&65536?n:null}return(n.flags&128)!==0?(n.lanes=l,n):(u=u!==null,u!==(e!==null&&e.memoizedState!==null)&&u&&(n.child.flags|=8192,(n.mode&1)!==0&&(e===null||(Be.current&1)!==0?Ge===0&&(Ge=3):Qs())),n.updateQueue!==null&&(n.flags|=4),st(n),null);case 4:return br(),Rs(e,n),e===null&&xi(n.stateNode.containerInfo),st(n),null;case 10:return os(n.type._context),st(n),null;case 17:return kt(n.type)&&Al(),st(n),null;case 19:if(Me(Be),d=n.memoizedState,d===null)return st(n),null;if(u=(n.flags&128)!==0,k=d.rendering,k===null)if(u)zi(d,!1);else{if(Ge!==0||e!==null&&(e.flags&128)!==0)for(e=n.child;e!==null;){if(k=Ul(e),k!==null){for(n.flags|=128,zi(d,!1),u=k.updateQueue,u!==null&&(n.updateQueue=u,n.flags|=4),n.subtreeFlags=0,u=l,l=n.child;l!==null;)d=l,e=u,d.flags&=14680066,k=d.alternate,k===null?(d.childLanes=0,d.lanes=e,d.child=null,d.subtreeFlags=0,d.memoizedProps=null,d.memoizedState=null,d.updateQueue=null,d.dependencies=null,d.stateNode=null):(d.childLanes=k.childLanes,d.lanes=k.lanes,d.child=k.child,d.subtreeFlags=0,d.deletions=null,d.memoizedProps=k.memoizedProps,d.memoizedState=k.memoizedState,d.updateQueue=k.updateQueue,d.type=k.type,e=k.dependencies,d.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),l=l.sibling;return De(Be,Be.current&1|2),n.child}e=e.sibling}d.tail!==null&&Ve()>Dr&&(n.flags|=128,u=!0,zi(d,!1),n.lanes=4194304)}else{if(!u)if(e=Ul(k),e!==null){if(n.flags|=128,u=!0,l=e.updateQueue,l!==null&&(n.updateQueue=l,n.flags|=4),zi(d,!0),d.tail===null&&d.tailMode==="hidden"&&!k.alternate&&!Fe)return st(n),null}else 2*Ve()-d.renderingStartTime>Dr&&l!==1073741824&&(n.flags|=128,u=!0,zi(d,!1),n.lanes=4194304);d.isBackwards?(k.sibling=n.child,n.child=k):(l=d.last,l!==null?l.sibling=k:n.child=k,d.last=k)}return d.tail!==null?(n=d.tail,d.rendering=n,d.tail=n.sibling,d.renderingStartTime=Ve(),n.sibling=null,l=Be.current,De(Be,u?l&1|2:l&1),n):(st(n),null);case 22:case 23:return Ws(),u=n.memoizedState!==null,e!==null&&e.memoizedState!==null!==u&&(n.flags|=8192),u&&(n.mode&1)!==0?(Pt&1073741824)!==0&&(st(n),n.subtreeFlags&6&&(n.flags|=8192)):st(n),null;case 24:return null;case 25:return null}throw Error(r(156,n.tag))}function Yx(e,n){switch(es(n),n.tag){case 1:return kt(n.type)&&Al(),e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 3:return br(),Me(yt),Me(ot),ds(),e=n.flags,(e&65536)!==0&&(e&128)===0?(n.flags=e&-65537|128,n):null;case 5:return fs(n),null;case 13:if(Me(Be),e=n.memoizedState,e!==null&&e.dehydrated!==null){if(n.alternate===null)throw Error(r(340));Ir()}return e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 19:return Me(Be),null;case 4:return br(),null;case 10:return os(n.type._context),null;case 22:case 23:return Ws(),null;case 24:return null;default:return null}}var Gl=!1,at=!1,Kx=typeof WeakSet=="function"?WeakSet:Set,te=null;function zr(e,n){var l=e.ref;if(l!==null)if(typeof l=="function")try{l(null)}catch(u){$e(e,n,u)}else l.current=null}function zs(e,n,l){try{l()}catch(u){$e(e,n,u)}}var Od=!1;function Gx(e,n){if(Wu=gl,e=hp(),Mu(e)){if("selectionStart"in e)var l={start:e.selectionStart,end:e.selectionEnd};else e:{l=(l=e.ownerDocument)&&l.defaultView||window;var u=l.getSelection&&l.getSelection();if(u&&u.rangeCount!==0){l=u.anchorNode;var f=u.anchorOffset,d=u.focusNode;u=u.focusOffset;try{l.nodeType,d.nodeType}catch{l=null;break e}var k=0,S=-1,C=-1,b=0,B=0,V=e,j=null;t:for(;;){for(var G;V!==l||f!==0&&V.nodeType!==3||(S=k+f),V!==d||u!==0&&V.nodeType!==3||(C=k+u),V.nodeType===3&&(k+=V.nodeValue.length),(G=V.firstChild)!==null;)j=V,V=G;for(;;){if(V===e)break t;if(j===l&&++b===f&&(S=k),j===d&&++B===u&&(C=k),(G=V.nextSibling)!==null)break;V=j,j=V.parentNode}V=G}l=S===-1||C===-1?null:{start:S,end:C}}else l=null}l=l||{start:0,end:0}}else l=null;for(Qu={focusedElem:e,selectionRange:l},gl=!1,te=n;te!==null;)if(n=te,e=n.child,(n.subtreeFlags&1028)!==0&&e!==null)e.return=n,te=e;else for(;te!==null;){n=te;try{var re=n.alternate;if((n.flags&1024)!==0)switch(n.tag){case 0:case 11:case 15:break;case 1:if(re!==null){var le=re.memoizedProps,He=re.memoizedState,P=n.stateNode,T=P.getSnapshotBeforeUpdate(n.elementType===n.type?le:Ut(n.type,le),He);P.__reactInternalSnapshotBeforeUpdate=T}break;case 3:var N=n.stateNode.containerInfo;N.nodeType===1?N.textContent="":N.nodeType===9&&N.documentElement&&N.removeChild(N.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(r(163))}}catch(q){$e(n,n.return,q)}if(e=n.sibling,e!==null){e.return=n.return,te=e;break}te=n.return}return re=Od,Od=!1,re}function Li(e,n,l){var u=n.updateQueue;if(u=u!==null?u.lastEffect:null,u!==null){var f=u=u.next;do{if((f.tag&e)===e){var d=f.destroy;f.destroy=void 0,d!==void 0&&zs(n,l,d)}f=f.next}while(f!==u)}}function Xl(e,n){if(n=n.updateQueue,n=n!==null?n.lastEffect:null,n!==null){var l=n=n.next;do{if((l.tag&e)===e){var u=l.create;l.destroy=u()}l=l.next}while(l!==n)}}function Ls(e){var n=e.ref;if(n!==null){var l=e.stateNode;e.tag,e=l,typeof n=="function"?n(e):n.current=e}}function Md(e){var n=e.alternate;n!==null&&(e.alternate=null,Md(n)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(n=e.stateNode,n!==null&&(delete n[Kt],delete n[Ei],delete n[Gu],delete n[Rx],delete n[zx])),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 Fd(e){return e.tag===5||e.tag===3||e.tag===4}function jd(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Fd(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Ds(e,n,l){var u=e.tag;if(u===5||u===6)e=e.stateNode,n?l.nodeType===8?l.parentNode.insertBefore(e,n):l.insertBefore(e,n):(l.nodeType===8?(n=l.parentNode,n.insertBefore(e,l)):(n=l,n.appendChild(e)),l=l._reactRootContainer,l!=null||n.onclick!==null||(n.onclick=Pl));else if(u!==4&&(e=e.child,e!==null))for(Ds(e,n,l),e=e.sibling;e!==null;)Ds(e,n,l),e=e.sibling}function Os(e,n,l){var u=e.tag;if(u===5||u===6)e=e.stateNode,n?l.insertBefore(e,n):l.appendChild(e);else if(u!==4&&(e=e.child,e!==null))for(Os(e,n,l),e=e.sibling;e!==null;)Os(e,n,l),e=e.sibling}var nt=null,$t=!1;function Rn(e,n,l){for(l=l.child;l!==null;)Bd(e,n,l),l=l.sibling}function Bd(e,n,l){if(Yt&&typeof Yt.onCommitFiberUnmount=="function")try{Yt.onCommitFiberUnmount(cl,l)}catch{}switch(l.tag){case 5:at||zr(l,n);case 6:var u=nt,f=$t;nt=null,Rn(e,n,l),nt=u,$t=f,nt!==null&&($t?(e=nt,l=l.stateNode,e.nodeType===8?e.parentNode.removeChild(l):e.removeChild(l)):nt.removeChild(l.stateNode));break;case 18:nt!==null&&($t?(e=nt,l=l.stateNode,e.nodeType===8?Ku(e.parentNode,l):e.nodeType===1&&Ku(e,l),pi(e)):Ku(nt,l.stateNode));break;case 4:u=nt,f=$t,nt=l.stateNode.containerInfo,$t=!0,Rn(e,n,l),nt=u,$t=f;break;case 0:case 11:case 14:case 15:if(!at&&(u=l.updateQueue,u!==null&&(u=u.lastEffect,u!==null))){f=u=u.next;do{var d=f,k=d.destroy;d=d.tag,k!==void 0&&((d&2)!==0||(d&4)!==0)&&zs(l,n,k),f=f.next}while(f!==u)}Rn(e,n,l);break;case 1:if(!at&&(zr(l,n),u=l.stateNode,typeof u.componentWillUnmount=="function"))try{u.props=l.memoizedProps,u.state=l.memoizedState,u.componentWillUnmount()}catch(S){$e(l,n,S)}Rn(e,n,l);break;case 21:Rn(e,n,l);break;case 22:l.mode&1?(at=(u=at)||l.memoizedState!==null,Rn(e,n,l),at=u):Rn(e,n,l);break;default:Rn(e,n,l)}}function Ud(e){var n=e.updateQueue;if(n!==null){e.updateQueue=null;var l=e.stateNode;l===null&&(l=e.stateNode=new Kx),n.forEach(function(u){var f=l0.bind(null,e,u);l.has(u)||(l.add(u),u.then(f,f))})}}function Vt(e,n){var l=n.deletions;if(l!==null)for(var u=0;u<l.length;u++){var f=l[u];try{var d=e,k=n,S=k;e:for(;S!==null;){switch(S.tag){case 5:nt=S.stateNode,$t=!1;break e;case 3:nt=S.stateNode.containerInfo,$t=!0;break e;case 4:nt=S.stateNode.containerInfo,$t=!0;break e}S=S.return}if(nt===null)throw Error(r(160));Bd(d,k,f),nt=null,$t=!1;var C=f.alternate;C!==null&&(C.return=null),f.return=null}catch(b){$e(f,n,b)}}if(n.subtreeFlags&12854)for(n=n.child;n!==null;)$d(n,e),n=n.sibling}function $d(e,n){var l=e.alternate,u=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Vt(n,e),Jt(e),u&4){try{Li(3,e,e.return),Xl(3,e)}catch(le){$e(e,e.return,le)}try{Li(5,e,e.return)}catch(le){$e(e,e.return,le)}}break;case 1:Vt(n,e),Jt(e),u&512&&l!==null&&zr(l,l.return);break;case 5:if(Vt(n,e),Jt(e),u&512&&l!==null&&zr(l,l.return),e.flags&32){var f=e.stateNode;try{Ie(f,"")}catch(le){$e(e,e.return,le)}}if(u&4&&(f=e.stateNode,f!=null)){var d=e.memoizedProps,k=l!==null?l.memoizedProps:d,S=e.type,C=e.updateQueue;if(e.updateQueue=null,C!==null)try{S==="input"&&d.type==="radio"&&d.name!=null&&ti(f,d),qt(S,k);var b=qt(S,d);for(k=0;k<C.length;k+=2){var B=C[k],V=C[k+1];B==="style"?vn(f,V):B==="dangerouslySetInnerHTML"?Ee(f,V):B==="children"?Ie(f,V):M(f,B,V,b)}switch(S){case"input":fr(f,d);break;case"textarea":ll(f,d);break;case"select":var j=f._wrapperState.wasMultiple;f._wrapperState.wasMultiple=!!d.multiple;var G=d.value;G!=null?kn(f,!!d.multiple,G,!1):j!==!!d.multiple&&(d.defaultValue!=null?kn(f,!!d.multiple,d.defaultValue,!0):kn(f,!!d.multiple,d.multiple?[]:"",!1))}f[Ei]=d}catch(le){$e(e,e.return,le)}}break;case 6:if(Vt(n,e),Jt(e),u&4){if(e.stateNode===null)throw Error(r(162));f=e.stateNode,d=e.memoizedProps;try{f.nodeValue=d}catch(le){$e(e,e.return,le)}}break;case 3:if(Vt(n,e),Jt(e),u&4&&l!==null&&l.memoizedState.isDehydrated)try{pi(n.containerInfo)}catch(le){$e(e,e.return,le)}break;case 4:Vt(n,e),Jt(e);break;case 13:Vt(n,e),Jt(e),f=e.child,f.flags&8192&&(d=f.memoizedState!==null,f.stateNode.isHidden=d,!d||f.alternate!==null&&f.alternate.memoizedState!==null||(js=Ve())),u&4&&Ud(e);break;case 22:if(B=l!==null&&l.memoizedState!==null,e.mode&1?(at=(b=at)||B,Vt(n,e),at=b):Vt(n,e),Jt(e),u&8192){if(b=e.memoizedState!==null,(e.stateNode.isHidden=b)&&!B&&(e.mode&1)!==0)for(te=e,B=e.child;B!==null;){for(V=te=B;te!==null;){switch(j=te,G=j.child,j.tag){case 0:case 11:case 14:case 15:Li(4,j,j.return);break;case 1:zr(j,j.return);var re=j.stateNode;if(typeof re.componentWillUnmount=="function"){u=j,l=j.return;try{n=u,re.props=n.memoizedProps,re.state=n.memoizedState,re.componentWillUnmount()}catch(le){$e(u,l,le)}}break;case 5:zr(j,j.return);break;case 22:if(j.memoizedState!==null){Wd(V);continue}}G!==null?(G.return=j,te=G):Wd(V)}B=B.sibling}e:for(B=null,V=e;;){if(V.tag===5){if(B===null){B=V;try{f=V.stateNode,b?(d=f.style,typeof d.setProperty=="function"?d.setProperty("display","none","important"):d.display="none"):(S=V.stateNode,C=V.memoizedProps.style,k=C!=null&&C.hasOwnProperty("display")?C.display:null,S.style.display=At("display",k))}catch(le){$e(e,e.return,le)}}}else if(V.tag===6){if(B===null)try{V.stateNode.nodeValue=b?"":V.memoizedProps}catch(le){$e(e,e.return,le)}}else if((V.tag!==22&&V.tag!==23||V.memoizedState===null||V===e)&&V.child!==null){V.child.return=V,V=V.child;continue}if(V===e)break e;for(;V.sibling===null;){if(V.return===null||V.return===e)break e;B===V&&(B=null),V=V.return}B===V&&(B=null),V.sibling.return=V.return,V=V.sibling}}break;case 19:Vt(n,e),Jt(e),u&4&&Ud(e);break;case 21:break;default:Vt(n,e),Jt(e)}}function Jt(e){var n=e.flags;if(n&2){try{e:{for(var l=e.return;l!==null;){if(Fd(l)){var u=l;break e}l=l.return}throw Error(r(160))}switch(u.tag){case 5:var f=u.stateNode;u.flags&32&&(Ie(f,""),u.flags&=-33);var d=jd(e);Os(e,d,f);break;case 3:case 4:var k=u.stateNode.containerInfo,S=jd(e);Ds(e,S,k);break;default:throw Error(r(161))}}catch(C){$e(e,e.return,C)}e.flags&=-3}n&4096&&(e.flags&=-4097)}function Xx(e,n,l){te=e,Vd(e)}function Vd(e,n,l){for(var u=(e.mode&1)!==0;te!==null;){var f=te,d=f.child;if(f.tag===22&&u){var k=f.memoizedState!==null||Gl;if(!k){var S=f.alternate,C=S!==null&&S.memoizedState!==null||at;S=Gl;var b=at;if(Gl=k,(at=C)&&!b)for(te=f;te!==null;)k=te,C=k.child,k.tag===22&&k.memoizedState!==null?Qd(f):C!==null?(C.return=k,te=C):Qd(f);for(;d!==null;)te=d,Vd(d),d=d.sibling;te=f,Gl=S,at=b}Hd(e)}else(f.subtreeFlags&8772)!==0&&d!==null?(d.return=f,te=d):Hd(e)}}function Hd(e){for(;te!==null;){var n=te;if((n.flags&8772)!==0){var l=n.alternate;try{if((n.flags&8772)!==0)switch(n.tag){case 0:case 11:case 15:at||Xl(5,n);break;case 1:var u=n.stateNode;if(n.flags&4&&!at)if(l===null)u.componentDidMount();else{var f=n.elementType===n.type?l.memoizedProps:Ut(n.type,l.memoizedProps);u.componentDidUpdate(f,l.memoizedState,u.__reactInternalSnapshotBeforeUpdate)}var d=n.updateQueue;d!==null&&Wp(n,d,u);break;case 3:var k=n.updateQueue;if(k!==null){if(l=null,n.child!==null)switch(n.child.tag){case 5:l=n.child.stateNode;break;case 1:l=n.child.stateNode}Wp(n,k,l)}break;case 5:var S=n.stateNode;if(l===null&&n.flags&4){l=S;var C=n.memoizedProps;switch(n.type){case"button":case"input":case"select":case"textarea":C.autoFocus&&l.focus();break;case"img":C.src&&(l.src=C.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(n.memoizedState===null){var b=n.alternate;if(b!==null){var B=b.memoizedState;if(B!==null){var V=B.dehydrated;V!==null&&pi(V)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(r(163))}at||n.flags&512&&Ls(n)}catch(j){$e(n,n.return,j)}}if(n===e){te=null;break}if(l=n.sibling,l!==null){l.return=n.return,te=l;break}te=n.return}}function Wd(e){for(;te!==null;){var n=te;if(n===e){te=null;break}var l=n.sibling;if(l!==null){l.return=n.return,te=l;break}te=n.return}}function Qd(e){for(;te!==null;){var n=te;try{switch(n.tag){case 0:case 11:case 15:var l=n.return;try{Xl(4,n)}catch(C){$e(n,l,C)}break;case 1:var u=n.stateNode;if(typeof u.componentDidMount=="function"){var f=n.return;try{u.componentDidMount()}catch(C){$e(n,f,C)}}var d=n.return;try{Ls(n)}catch(C){$e(n,d,C)}break;case 5:var k=n.return;try{Ls(n)}catch(C){$e(n,k,C)}}}catch(C){$e(n,n.return,C)}if(n===e){te=null;break}var S=n.sibling;if(S!==null){S.return=n.return,te=S;break}te=n.return}}var Jx=Math.ceil,Jl=ne.ReactCurrentDispatcher,Ms=ne.ReactCurrentOwner,Dt=ne.ReactCurrentBatchConfig,Pe=0,Je=null,qe=null,rt=0,Pt=0,Lr=In(0),Ge=0,Di=null,er=0,Zl=0,Fs=0,Oi=null,wt=null,js=0,Dr=1/0,fn=null,eo=!1,Bs=null,zn=null,to=!1,Ln=null,no=0,Mi=0,Us=null,ro=-1,io=0;function pt(){return(Pe&6)!==0?Ve():ro!==-1?ro:ro=Ve()}function Dn(e){return(e.mode&1)===0?1:(Pe&2)!==0&&rt!==0?rt&-rt:Dx.transition!==null?(io===0&&(io=jf()),io):(e=Re,e!==0||(e=window.event,e=e===void 0?16:Yf(e.type)),e)}function Ht(e,n,l,u){if(50<Mi)throw Mi=0,Us=null,Error(r(185));ui(e,l,u),((Pe&2)===0||e!==Je)&&(e===Je&&((Pe&2)===0&&(Zl|=l),Ge===4&&On(e,rt)),xt(e,u),l===1&&Pe===0&&(n.mode&1)===0&&(Dr=Ve()+500,Rl&&Nn()))}function xt(e,n){var l=e.callbackNode;Dw(e,n);var u=dl(e,e===Je?rt:0);if(u===0)l!==null&&Of(l),e.callbackNode=null,e.callbackPriority=0;else if(n=u&-u,e.callbackPriority!==n){if(l!=null&&Of(l),n===1)e.tag===0?Lx(Yd.bind(null,e)):zp(Yd.bind(null,e)),Ax(function(){(Pe&6)===0&&Nn()}),l=null;else{switch(Bf(u)){case 1:l=wu;break;case 4:l=Mf;break;case 16:l=al;break;case 536870912:l=Ff;break;default:l=al}l=nh(l,qd.bind(null,e))}e.callbackPriority=n,e.callbackNode=l}}function qd(e,n){if(ro=-1,io=0,(Pe&6)!==0)throw Error(r(327));var l=e.callbackNode;if(Or()&&e.callbackNode!==l)return null;var u=dl(e,e===Je?rt:0);if(u===0)return null;if((u&30)!==0||(u&e.expiredLanes)!==0||n)n=lo(e,u);else{n=u;var f=Pe;Pe|=2;var d=Gd();(Je!==e||rt!==n)&&(fn=null,Dr=Ve()+500,nr(e,n));do try{t0();break}catch(S){Kd(e,S)}while(!0);ls(),Jl.current=d,Pe=f,qe!==null?n=0:(Je=null,rt=0,n=Ge)}if(n!==0){if(n===2&&(f=xu(e),f!==0&&(u=f,n=$s(e,f))),n===1)throw l=Di,nr(e,0),On(e,u),xt(e,Ve()),l;if(n===6)On(e,u);else{if(f=e.current.alternate,(u&30)===0&&!Zx(f)&&(n=lo(e,u),n===2&&(d=xu(e),d!==0&&(u=d,n=$s(e,d))),n===1))throw l=Di,nr(e,0),On(e,u),xt(e,Ve()),l;switch(e.finishedWork=f,e.finishedLanes=u,n){case 0:case 1:throw Error(r(345));case 2:rr(e,wt,fn);break;case 3:if(On(e,u),(u&130023424)===u&&(n=js+500-Ve(),10<n)){if(dl(e,0)!==0)break;if(f=e.suspendedLanes,(f&u)!==u){pt(),e.pingedLanes|=e.suspendedLanes&f;break}e.timeoutHandle=Yu(rr.bind(null,e,wt,fn),n);break}rr(e,wt,fn);break;case 4:if(On(e,u),(u&4194240)===u)break;for(n=e.eventTimes,f=-1;0<u;){var k=31-Ft(u);d=1<<k,k=n[k],k>f&&(f=k),u&=~d}if(u=f,u=Ve()-u,u=(120>u?120:480>u?480:1080>u?1080:1920>u?1920:3e3>u?3e3:4320>u?4320:1960*Jx(u/1960))-u,10<u){e.timeoutHandle=Yu(rr.bind(null,e,wt,fn),u);break}rr(e,wt,fn);break;case 5:rr(e,wt,fn);break;default:throw Error(r(329))}}}return xt(e,Ve()),e.callbackNode===l?qd.bind(null,e):null}function $s(e,n){var l=Oi;return e.current.memoizedState.isDehydrated&&(nr(e,n).flags|=256),e=lo(e,n),e!==2&&(n=wt,wt=l,n!==null&&Vs(n)),e}function Vs(e){wt===null?wt=e:wt.push.apply(wt,e)}function Zx(e){for(var n=e;;){if(n.flags&16384){var l=n.updateQueue;if(l!==null&&(l=l.stores,l!==null))for(var u=0;u<l.length;u++){var f=l[u],d=f.getSnapshot;f=f.value;try{if(!jt(d(),f))return!1}catch{return!1}}}if(l=n.child,n.subtreeFlags&16384&&l!==null)l.return=n,n=l;else{if(n===e)break;for(;n.sibling===null;){if(n.return===null||n.return===e)return!0;n=n.return}n.sibling.return=n.return,n=n.sibling}}return!0}function On(e,n){for(n&=~Fs,n&=~Zl,e.suspendedLanes|=n,e.pingedLanes&=~n,e=e.expirationTimes;0<n;){var l=31-Ft(n),u=1<<l;e[l]=-1,n&=~u}}function Yd(e){if((Pe&6)!==0)throw Error(r(327));Or();var n=dl(e,0);if((n&1)===0)return xt(e,Ve()),null;var l=lo(e,n);if(e.tag!==0&&l===2){var u=xu(e);u!==0&&(n=u,l=$s(e,u))}if(l===1)throw l=Di,nr(e,0),On(e,n),xt(e,Ve()),l;if(l===6)throw Error(r(345));return e.finishedWork=e.current.alternate,e.finishedLanes=n,rr(e,wt,fn),xt(e,Ve()),null}function Hs(e,n){var l=Pe;Pe|=1;try{return e(n)}finally{Pe=l,Pe===0&&(Dr=Ve()+500,Rl&&Nn())}}function tr(e){Ln!==null&&Ln.tag===0&&(Pe&6)===0&&Or();var n=Pe;Pe|=1;var l=Dt.transition,u=Re;try{if(Dt.transition=null,Re=1,e)return e()}finally{Re=u,Dt.transition=l,Pe=n,(Pe&6)===0&&Nn()}}function Ws(){Pt=Lr.current,Me(Lr)}function nr(e,n){e.finishedWork=null,e.finishedLanes=0;var l=e.timeoutHandle;if(l!==-1&&(e.timeoutHandle=-1,Nx(l)),qe!==null)for(l=qe.return;l!==null;){var u=l;switch(es(u),u.tag){case 1:u=u.type.childContextTypes,u!=null&&Al();break;case 3:br(),Me(yt),Me(ot),ds();break;case 5:fs(u);break;case 4:br();break;case 13:Me(Be);break;case 19:Me(Be);break;case 10:os(u.type._context);break;case 22:case 23:Ws()}l=l.return}if(Je=e,qe=e=Mn(e.current,null),rt=Pt=n,Ge=0,Di=null,Fs=Zl=er=0,wt=Oi=null,Xn!==null){for(n=0;n<Xn.length;n++)if(l=Xn[n],u=l.interleaved,u!==null){l.interleaved=null;var f=u.next,d=l.pending;if(d!==null){var k=d.next;d.next=f,u.next=k}l.pending=u}Xn=null}return e}function Kd(e,n){do{var l=qe;try{if(ls(),$l.current=Ql,Vl){for(var u=Ue.memoizedState;u!==null;){var f=u.queue;f!==null&&(f.pending=null),u=u.next}Vl=!1}if(Zn=0,Xe=Ke=Ue=null,Ni=!1,Ai=0,Ms.current=null,l===null||l.return===null){Ge=1,Di=n,qe=null;break}e:{var d=e,k=l.return,S=l,C=n;if(n=rt,S.flags|=32768,C!==null&&typeof C=="object"&&typeof C.then=="function"){var b=C,B=S,V=B.tag;if((B.mode&1)===0&&(V===0||V===11||V===15)){var j=B.alternate;j?(B.updateQueue=j.updateQueue,B.memoizedState=j.memoizedState,B.lanes=j.lanes):(B.updateQueue=null,B.memoizedState=null)}var G=wd(k);if(G!==null){G.flags&=-257,xd(G,k,S,d,n),G.mode&1&&vd(d,b,n),n=G,C=b;var re=n.updateQueue;if(re===null){var le=new Set;le.add(C),n.updateQueue=le}else re.add(C);break e}else{if((n&1)===0){vd(d,b,n),Qs();break e}C=Error(r(426))}}else if(Fe&&S.mode&1){var He=wd(k);if(He!==null){(He.flags&65536)===0&&(He.flags|=256),xd(He,k,S,d,n),rs(Rr(C,S));break e}}d=C=Rr(C,S),Ge!==4&&(Ge=2),Oi===null?Oi=[d]:Oi.push(d),d=k;do{switch(d.tag){case 3:d.flags|=65536,n&=-n,d.lanes|=n;var P=yd(d,C,n);Hp(d,P);break e;case 1:S=C;var T=d.type,N=d.stateNode;if((d.flags&128)===0&&(typeof T.getDerivedStateFromError=="function"||N!==null&&typeof N.componentDidCatch=="function"&&(zn===null||!zn.has(N)))){d.flags|=65536,n&=-n,d.lanes|=n;var q=kd(d,S,n);Hp(d,q);break e}}d=d.return}while(d!==null)}Jd(l)}catch(oe){n=oe,qe===l&&l!==null&&(qe=l=l.return);continue}break}while(!0)}function Gd(){var e=Jl.current;return Jl.current=Ql,e===null?Ql:e}function Qs(){(Ge===0||Ge===3||Ge===2)&&(Ge=4),Je===null||(er&268435455)===0&&(Zl&268435455)===0||On(Je,rt)}function lo(e,n){var l=Pe;Pe|=2;var u=Gd();(Je!==e||rt!==n)&&(fn=null,nr(e,n));do try{e0();break}catch(f){Kd(e,f)}while(!0);if(ls(),Pe=l,Jl.current=u,qe!==null)throw Error(r(261));return Je=null,rt=0,Ge}function e0(){for(;qe!==null;)Xd(qe)}function t0(){for(;qe!==null&&!_w();)Xd(qe)}function Xd(e){var n=th(e.alternate,e,Pt);e.memoizedProps=e.pendingProps,n===null?Jd(e):qe=n,Ms.current=null}function Jd(e){var n=e;do{var l=n.alternate;if(e=n.return,(n.flags&32768)===0){if(l=qx(l,n,Pt),l!==null){qe=l;return}}else{if(l=Yx(l,n),l!==null){l.flags&=32767,qe=l;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{Ge=6,qe=null;return}}if(n=n.sibling,n!==null){qe=n;return}qe=n=e}while(n!==null);Ge===0&&(Ge=5)}function rr(e,n,l){var u=Re,f=Dt.transition;try{Dt.transition=null,Re=1,n0(e,n,l,u)}finally{Dt.transition=f,Re=u}return null}function n0(e,n,l,u){do Or();while(Ln!==null);if((Pe&6)!==0)throw Error(r(327));l=e.finishedWork;var f=e.finishedLanes;if(l===null)return null;if(e.finishedWork=null,e.finishedLanes=0,l===e.current)throw Error(r(177));e.callbackNode=null,e.callbackPriority=0;var d=l.lanes|l.childLanes;if(Ow(e,d),e===Je&&(qe=Je=null,rt=0),(l.subtreeFlags&2064)===0&&(l.flags&2064)===0||to||(to=!0,nh(al,function(){return Or(),null})),d=(l.flags&15990)!==0,(l.subtreeFlags&15990)!==0||d){d=Dt.transition,Dt.transition=null;var k=Re;Re=1;var S=Pe;Pe|=4,Ms.current=null,Gx(e,l),$d(l,e),Sx(Qu),gl=!!Wu,Qu=Wu=null,e.current=l,Xx(l),Iw(),Pe=S,Re=k,Dt.transition=d}else e.current=l;if(to&&(to=!1,Ln=e,no=f),d=e.pendingLanes,d===0&&(zn=null),Aw(l.stateNode),xt(e,Ve()),n!==null)for(u=e.onRecoverableError,l=0;l<n.length;l++)f=n[l],u(f.value,{componentStack:f.stack,digest:f.digest});if(eo)throw eo=!1,e=Bs,Bs=null,e;return(no&1)!==0&&e.tag!==0&&Or(),d=e.pendingLanes,(d&1)!==0?e===Us?Mi++:(Mi=0,Us=e):Mi=0,Nn(),null}function Or(){if(Ln!==null){var e=Bf(no),n=Dt.transition,l=Re;try{if(Dt.transition=null,Re=16>e?16:e,Ln===null)var u=!1;else{if(e=Ln,Ln=null,no=0,(Pe&6)!==0)throw Error(r(331));var f=Pe;for(Pe|=4,te=e.current;te!==null;){var d=te,k=d.child;if((te.flags&16)!==0){var S=d.deletions;if(S!==null){for(var C=0;C<S.length;C++){var b=S[C];for(te=b;te!==null;){var B=te;switch(B.tag){case 0:case 11:case 15:Li(8,B,d)}var V=B.child;if(V!==null)V.return=B,te=V;else for(;te!==null;){B=te;var j=B.sibling,G=B.return;if(Md(B),B===b){te=null;break}if(j!==null){j.return=G,te=j;break}te=G}}}var re=d.alternate;if(re!==null){var le=re.child;if(le!==null){re.child=null;do{var He=le.sibling;le.sibling=null,le=He}while(le!==null)}}te=d}}if((d.subtreeFlags&2064)!==0&&k!==null)k.return=d,te=k;else e:for(;te!==null;){if(d=te,(d.flags&2048)!==0)switch(d.tag){case 0:case 11:case 15:Li(9,d,d.return)}var P=d.sibling;if(P!==null){P.return=d.return,te=P;break e}te=d.return}}var T=e.current;for(te=T;te!==null;){k=te;var N=k.child;if((k.subtreeFlags&2064)!==0&&N!==null)N.return=k,te=N;else e:for(k=T;te!==null;){if(S=te,(S.flags&2048)!==0)try{switch(S.tag){case 0:case 11:case 15:Xl(9,S)}}catch(oe){$e(S,S.return,oe)}if(S===k){te=null;break e}var q=S.sibling;if(q!==null){q.return=S.return,te=q;break e}te=S.return}}if(Pe=f,Nn(),Yt&&typeof Yt.onPostCommitFiberRoot=="function")try{Yt.onPostCommitFiberRoot(cl,e)}catch{}u=!0}return u}finally{Re=l,Dt.transition=n}}return!1}function Zd(e,n,l){n=Rr(l,n),n=yd(e,n,1),e=bn(e,n,1),n=pt(),e!==null&&(ui(e,1,n),xt(e,n))}function $e(e,n,l){if(e.tag===3)Zd(e,e,l);else for(;n!==null;){if(n.tag===3){Zd(n,e,l);break}else if(n.tag===1){var u=n.stateNode;if(typeof n.type.getDerivedStateFromError=="function"||typeof u.componentDidCatch=="function"&&(zn===null||!zn.has(u))){e=Rr(l,e),e=kd(n,e,1),n=bn(n,e,1),e=pt(),n!==null&&(ui(n,1,e),xt(n,e));break}}n=n.return}}function r0(e,n,l){var u=e.pingCache;u!==null&&u.delete(n),n=pt(),e.pingedLanes|=e.suspendedLanes&l,Je===e&&(rt&l)===l&&(Ge===4||Ge===3&&(rt&130023424)===rt&&500>Ve()-js?nr(e,0):Fs|=l),xt(e,n)}function eh(e,n){n===0&&((e.mode&1)===0?n=1:(n=pl,pl<<=1,(pl&130023424)===0&&(pl=4194304)));var l=pt();e=sn(e,n),e!==null&&(ui(e,n,l),xt(e,l))}function i0(e){var n=e.memoizedState,l=0;n!==null&&(l=n.retryLane),eh(e,l)}function l0(e,n){var l=0;switch(e.tag){case 13:var u=e.stateNode,f=e.memoizedState;f!==null&&(l=f.retryLane);break;case 19:u=e.stateNode;break;default:throw Error(r(314))}u!==null&&u.delete(n),eh(e,l)}var th;th=function(e,n,l){if(e!==null)if(e.memoizedProps!==n.pendingProps||yt.current)vt=!0;else{if((e.lanes&l)===0&&(n.flags&128)===0)return vt=!1,Qx(e,n,l);vt=(e.flags&131072)!==0}else vt=!1,Fe&&(n.flags&1048576)!==0&&Lp(n,Ll,n.index);switch(n.lanes=0,n.tag){case 2:var u=n.type;Kl(e,n),e=n.pendingProps;var f=Cr(n,ot.current);Ar(n,l),f=gs(null,n,u,e,f,l);var d=ys();return n.flags|=1,typeof f=="object"&&f!==null&&typeof f.render=="function"&&f.$$typeof===void 0?(n.tag=1,n.memoizedState=null,n.updateQueue=null,kt(u)?(d=!0,bl(n)):d=!1,n.memoizedState=f.state!==null&&f.state!==void 0?f.state:null,as(n),f.updater=ql,n.stateNode=f,f._reactInternals=n,Es(n,u,e,l),n=Is(null,n,u,!0,d,l)):(n.tag=0,Fe&&d&&Zu(n),ft(null,n,f,l),n=n.child),n;case 16:u=n.elementType;e:{switch(Kl(e,n),e=n.pendingProps,f=u._init,u=f(u._payload),n.type=u,f=n.tag=u0(u),e=Ut(u,e),f){case 0:n=_s(null,n,u,e,l);break e;case 1:n=Id(null,n,u,e,l);break e;case 11:n=Sd(null,n,u,e,l);break e;case 14:n=Ed(null,n,u,Ut(u.type,e),l);break e}throw Error(r(306,u,""))}return n;case 0:return u=n.type,f=n.pendingProps,f=n.elementType===u?f:Ut(u,f),_s(e,n,u,f,l);case 1:return u=n.type,f=n.pendingProps,f=n.elementType===u?f:Ut(u,f),Id(e,n,u,f,l);case 3:e:{if(Pd(n),e===null)throw Error(r(387));u=n.pendingProps,d=n.memoizedState,f=d.element,Vp(e,n),Bl(n,u,null,l);var k=n.memoizedState;if(u=k.element,d.isDehydrated)if(d={element:u,isDehydrated:!1,cache:k.cache,pendingSuspenseBoundaries:k.pendingSuspenseBoundaries,transitions:k.transitions},n.updateQueue.baseState=d,n.memoizedState=d,n.flags&256){f=Rr(Error(r(423)),n),n=Nd(e,n,u,l,f);break e}else if(u!==f){f=Rr(Error(r(424)),n),n=Nd(e,n,u,l,f);break e}else for(It=_n(n.stateNode.containerInfo.firstChild),_t=n,Fe=!0,Bt=null,l=Up(n,null,u,l),n.child=l;l;)l.flags=l.flags&-3|4096,l=l.sibling;else{if(Ir(),u===f){n=cn(e,n,l);break e}ft(e,n,u,l)}n=n.child}return n;case 5:return Qp(n),e===null&&ns(n),u=n.type,f=n.pendingProps,d=e!==null?e.memoizedProps:null,k=f.children,qu(u,f)?k=null:d!==null&&qu(u,d)&&(n.flags|=32),_d(e,n),ft(e,n,k,l),n.child;case 6:return e===null&&ns(n),null;case 13:return Ad(e,n,l);case 4:return cs(n,n.stateNode.containerInfo),u=n.pendingProps,e===null?n.child=Pr(n,null,u,l):ft(e,n,u,l),n.child;case 11:return u=n.type,f=n.pendingProps,f=n.elementType===u?f:Ut(u,f),Sd(e,n,u,f,l);case 7:return ft(e,n,n.pendingProps,l),n.child;case 8:return ft(e,n,n.pendingProps.children,l),n.child;case 12:return ft(e,n,n.pendingProps.children,l),n.child;case 10:e:{if(u=n.type._context,f=n.pendingProps,d=n.memoizedProps,k=f.value,De(Ml,u._currentValue),u._currentValue=k,d!==null)if(jt(d.value,k)){if(d.children===f.children&&!yt.current){n=cn(e,n,l);break e}}else for(d=n.child,d!==null&&(d.return=n);d!==null;){var S=d.dependencies;if(S!==null){k=d.child;for(var C=S.firstContext;C!==null;){if(C.context===u){if(d.tag===1){C=an(-1,l&-l),C.tag=2;var b=d.updateQueue;if(b!==null){b=b.shared;var B=b.pending;B===null?C.next=C:(C.next=B.next,B.next=C),b.pending=C}}d.lanes|=l,C=d.alternate,C!==null&&(C.lanes|=l),us(d.return,l,n),S.lanes|=l;break}C=C.next}}else if(d.tag===10)k=d.type===n.type?null:d.child;else if(d.tag===18){if(k=d.return,k===null)throw Error(r(341));k.lanes|=l,S=k.alternate,S!==null&&(S.lanes|=l),us(k,l,n),k=d.sibling}else k=d.child;if(k!==null)k.return=d;else for(k=d;k!==null;){if(k===n){k=null;break}if(d=k.sibling,d!==null){d.return=k.return,k=d;break}k=k.return}d=k}ft(e,n,f.children,l),n=n.child}return n;case 9:return f=n.type,u=n.pendingProps.children,Ar(n,l),f=zt(f),u=u(f),n.flags|=1,ft(e,n,u,l),n.child;case 14:return u=n.type,f=Ut(u,n.pendingProps),f=Ut(u.type,f),Ed(e,n,u,f,l);case 15:return Cd(e,n,n.type,n.pendingProps,l);case 17:return u=n.type,f=n.pendingProps,f=n.elementType===u?f:Ut(u,f),Kl(e,n),n.tag=1,kt(u)?(e=!0,bl(n)):e=!1,Ar(n,l),md(n,u,f),Es(n,u,f,l),Is(null,n,u,!0,e,l);case 19:return Rd(e,n,l);case 22:return Td(e,n,l)}throw Error(r(156,n.tag))};function nh(e,n){return Df(e,n)}function o0(e,n,l,u){this.tag=e,this.key=l,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=n,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=u,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ot(e,n,l,u){return new o0(e,n,l,u)}function qs(e){return e=e.prototype,!(!e||!e.isReactComponent)}function u0(e){if(typeof e=="function")return qs(e)?1:0;if(e!=null){if(e=e.$$typeof,e===J)return 11;if(e===$)return 14}return 2}function Mn(e,n){var l=e.alternate;return l===null?(l=Ot(e.tag,n,e.key,e.mode),l.elementType=e.elementType,l.type=e.type,l.stateNode=e.stateNode,l.alternate=e,e.alternate=l):(l.pendingProps=n,l.type=e.type,l.flags=0,l.subtreeFlags=0,l.deletions=null),l.flags=e.flags&14680064,l.childLanes=e.childLanes,l.lanes=e.lanes,l.child=e.child,l.memoizedProps=e.memoizedProps,l.memoizedState=e.memoizedState,l.updateQueue=e.updateQueue,n=e.dependencies,l.dependencies=n===null?null:{lanes:n.lanes,firstContext:n.firstContext},l.sibling=e.sibling,l.index=e.index,l.ref=e.ref,l}function oo(e,n,l,u,f,d){var k=2;if(u=e,typeof e=="function")qs(e)&&(k=1);else if(typeof e=="string")k=5;else e:switch(e){case se:return ir(l.children,f,d,n);case de:k=8,f|=8;break;case ye:return e=Ot(12,l,n,f|2),e.elementType=ye,e.lanes=d,e;case K:return e=Ot(13,l,n,f),e.elementType=K,e.lanes=d,e;case Q:return e=Ot(19,l,n,f),e.elementType=Q,e.lanes=d,e;case ie:return uo(l,f,d,n);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case R:k=10;break e;case X:k=9;break e;case J:k=11;break e;case $:k=14;break e;case Z:k=16,u=null;break e}throw Error(r(130,e==null?e:typeof e,""))}return n=Ot(k,l,n,f),n.elementType=e,n.type=u,n.lanes=d,n}function ir(e,n,l,u){return e=Ot(7,e,u,n),e.lanes=l,e}function uo(e,n,l,u){return e=Ot(22,e,u,n),e.elementType=ie,e.lanes=l,e.stateNode={isHidden:!1},e}function Ys(e,n,l){return e=Ot(6,e,null,n),e.lanes=l,e}function Ks(e,n,l){return n=Ot(4,e.children!==null?e.children:[],e.key,n),n.lanes=l,n.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},n}function s0(e,n,l,u,f){this.tag=n,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=Su(0),this.expirationTimes=Su(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Su(0),this.identifierPrefix=u,this.onRecoverableError=f,this.mutableSourceEagerHydrationData=null}function Gs(e,n,l,u,f,d,k,S,C){return e=new s0(e,n,l,S,C),n===1?(n=1,d===!0&&(n|=8)):n=0,d=Ot(3,null,null,n),e.current=d,d.stateNode=e,d.memoizedState={element:u,isDehydrated:l,cache:null,transitions:null,pendingSuspenseBoundaries:null},as(d),e}function a0(e,n,l){var u=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:L,key:u==null?null:""+u,children:e,containerInfo:n,implementation:l}}function rh(e){if(!e)return Pn;e=e._reactInternals;e:{if(Qn(e)!==e||e.tag!==1)throw Error(r(170));var n=e;do{switch(n.tag){case 3:n=n.stateNode.context;break e;case 1:if(kt(n.type)){n=n.stateNode.__reactInternalMemoizedMergedChildContext;break e}}n=n.return}while(n!==null);throw Error(r(171))}if(e.tag===1){var l=e.type;if(kt(l))return bp(e,l,n)}return n}function ih(e,n,l,u,f,d,k,S,C){return e=Gs(l,u,!0,e,f,d,k,S,C),e.context=rh(null),l=e.current,u=pt(),f=Dn(l),d=an(u,f),d.callback=n!=null?n:null,bn(l,d,f),e.current.lanes=f,ui(e,f,u),xt(e,u),e}function so(e,n,l,u){var f=n.current,d=pt(),k=Dn(f);return l=rh(l),n.context===null?n.context=l:n.pendingContext=l,n=an(d,k),n.payload={element:e},u=u===void 0?null:u,u!==null&&(n.callback=u),e=bn(f,n,k),e!==null&&(Ht(e,f,k,d),jl(e,f,k)),k}function ao(e){return e=e.current,e.child?(e.child.tag===5,e.child.stateNode):null}function lh(e,n){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var l=e.retryLane;e.retryLane=l!==0&&l<n?l:n}}function Xs(e,n){lh(e,n),(e=e.alternate)&&lh(e,n)}function c0(){return null}var oh=typeof reportError=="function"?reportError:function(e){console.error(e)};function Js(e){this._internalRoot=e}co.prototype.render=Js.prototype.render=function(e){var n=this._internalRoot;if(n===null)throw Error(r(409));so(e,n,null,null)},co.prototype.unmount=Js.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var n=e.containerInfo;tr(function(){so(null,e,null,null)}),n[rn]=null}};function co(e){this._internalRoot=e}co.prototype.unstable_scheduleHydration=function(e){if(e){var n=Vf();e={blockedOn:null,target:e,priority:n};for(var l=0;l<En.length&&n!==0&&n<En[l].priority;l++);En.splice(l,0,e),l===0&&Qf(e)}};function Zs(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function fo(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function uh(){}function f0(e,n,l,u,f){if(f){if(typeof u=="function"){var d=u;u=function(){var b=ao(k);d.call(b)}}var k=ih(n,u,e,0,null,!1,!1,"",uh);return e._reactRootContainer=k,e[rn]=k.current,xi(e.nodeType===8?e.parentNode:e),tr(),k}for(;f=e.lastChild;)e.removeChild(f);if(typeof u=="function"){var S=u;u=function(){var b=ao(C);S.call(b)}}var C=Gs(e,0,!1,null,null,!1,!1,"",uh);return e._reactRootContainer=C,e[rn]=C.current,xi(e.nodeType===8?e.parentNode:e),tr(function(){so(n,C,l,u)}),C}function po(e,n,l,u,f){var d=l._reactRootContainer;if(d){var k=d;if(typeof f=="function"){var S=f;f=function(){var C=ao(k);S.call(C)}}so(n,k,e,f)}else k=f0(l,n,e,f,u);return ao(k)}Uf=function(e){switch(e.tag){case 3:var n=e.stateNode;if(n.current.memoizedState.isDehydrated){var l=oi(n.pendingLanes);l!==0&&(Eu(n,l|1),xt(n,Ve()),(Pe&6)===0&&(Dr=Ve()+500,Nn()))}break;case 13:tr(function(){var u=sn(e,1);if(u!==null){var f=pt();Ht(u,e,1,f)}}),Xs(e,1)}},Cu=function(e){if(e.tag===13){var n=sn(e,134217728);if(n!==null){var l=pt();Ht(n,e,134217728,l)}Xs(e,134217728)}},$f=function(e){if(e.tag===13){var n=Dn(e),l=sn(e,n);if(l!==null){var u=pt();Ht(l,e,n,u)}Xs(e,n)}},Vf=function(){return Re},Hf=function(e,n){var l=Re;try{return Re=e,n()}finally{Re=l}},gu=function(e,n,l){switch(n){case"input":if(fr(e,l),n=l.name,l.type==="radio"&&n!=null){for(l=e;l.parentNode;)l=l.parentNode;for(l=l.querySelectorAll("input[name="+JSON.stringify(""+n)+'][type="radio"]'),n=0;n<l.length;n++){var u=l[n];if(u!==e&&u.form===e.form){var f=Nl(u);if(!f)throw Error(r(90));nl(u),fr(u,f)}}}break;case"textarea":ll(e,l);break;case"select":n=l.value,n!=null&&kn(e,!!l.multiple,n,!1)}},Pf=Hs,Nf=tr;var p0={usingClientEntryPoint:!1,Events:[Ci,Sr,Nl,_f,If,Hs]},Fi={findFiberByHostInstance:qn,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},d0={bundleType:Fi.bundleType,version:Fi.version,rendererPackageName:Fi.rendererPackageName,rendererConfig:Fi.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:ne.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=zf(e),e===null?null:e.stateNode},findFiberByHostInstance:Fi.findFiberByHostInstance||c0,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__!="undefined"){var ho=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ho.isDisabled&&ho.supportsFiber)try{cl=ho.inject(d0),Yt=ho}catch{}}return ht.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=p0,ht.createPortal=function(e,n){var l=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Zs(n))throw Error(r(200));return a0(e,n,null,l)},ht.createRoot=function(e,n){if(!Zs(e))throw Error(r(299));var l=!1,u="",f=oh;return n!=null&&(n.unstable_strictMode===!0&&(l=!0),n.identifierPrefix!==void 0&&(u=n.identifierPrefix),n.onRecoverableError!==void 0&&(f=n.onRecoverableError)),n=Gs(e,1,!1,null,null,l,!1,u,f),e[rn]=n.current,xi(e.nodeType===8?e.parentNode:e),new Js(n)},ht.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var n=e._reactInternals;if(n===void 0)throw typeof e.render=="function"?Error(r(188)):(e=Object.keys(e).join(","),Error(r(268,e)));return e=zf(n),e=e===null?null:e.stateNode,e},ht.flushSync=function(e){return tr(e)},ht.hydrate=function(e,n,l){if(!fo(n))throw Error(r(200));return po(null,e,n,!0,l)},ht.hydrateRoot=function(e,n,l){if(!Zs(e))throw Error(r(405));var u=l!=null&&l.hydratedSources||null,f=!1,d="",k=oh;if(l!=null&&(l.unstable_strictMode===!0&&(f=!0),l.identifierPrefix!==void 0&&(d=l.identifierPrefix),l.onRecoverableError!==void 0&&(k=l.onRecoverableError)),n=ih(n,null,e,1,l!=null?l:null,f,!1,d,k),e[rn]=n.current,xi(e),u)for(e=0;e<u.length;e++)l=u[e],f=l._getVersion,f=f(l._source),n.mutableSourceEagerHydrationData==null?n.mutableSourceEagerHydrationData=[l,f]:n.mutableSourceEagerHydrationData.push(l,f);return new co(n)},ht.render=function(e,n,l){if(!fo(n))throw Error(r(200));return po(null,e,n,!1,l)},ht.unmountComponentAtNode=function(e){if(!fo(e))throw Error(r(40));return e._reactRootContainer?(tr(function(){po(null,null,e,!1,function(){e._reactRootContainer=null,e[rn]=null})}),!0):!1},ht.unstable_batchedUpdates=Hs,ht.unstable_renderSubtreeIntoContainer=function(e,n,l,u){if(!fo(l))throw Error(r(200));if(e==null||e._reactInternals===void 0)throw Error(r(38));return po(e,n,l,!1,u)},ht.version="18.3.1-next-f1338f8080-20240426",ht}var ua;function hh(){if(ua)return yo.exports;ua=1;function t(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__=="undefined"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(i){console.error(i)}}return t(),yo.exports=dh(),yo.exports}var sa;function mh(){if(sa)return ji;sa=1;var t=hh();return ji.createRoot=t.createRoot,ji.hydrateRoot=t.hydrateRoot,ji}var gh=mh();const yh=':host{--iaw-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;--iaw-bg: #fafafa;--iaw-fg: #3f3f46;--iaw-border: #e5e5e5;--iaw-radius: 12px;--iaw-accent: #131315;--iaw-accent-fg: #ffffff;--iaw-muted: #6b7280;--iaw-error: #b42318;--iaw-user-bubble-bg: var(--iaw-accent);--iaw-user-bubble-fg: var(--iaw-accent-fg);--iaw-query-bg: #dbeafe;--iaw-answer-bg: #ffffff;--iaw-pill-bg: #ffffff;--iaw-pill-fg: var(--iaw-fg);--iaw-pill-border: var(--iaw-border);--iaw-pill-hover-bg: #f5f5f5;--iaw-max-height: 480px;--iaw-max-width: 100%;display:block;max-width:var(--iaw-max-width);font-family:var(--iaw-font);color:var(--iaw-fg);box-sizing:border-box}:host *,:host *:before,:host *:after{box-sizing:border-box}.widget{display:flex;flex-direction:column;gap:16px;padding:16px;background:var(--iaw-bg);border:1px solid var(--iaw-border);border-radius:var(--iaw-radius)}.widget-header{display:flex;align-items:center;gap:8px;margin:0}.widget-header-brand{display:inline-flex;align-items:center;gap:8px;min-width:0}.header-icon-wrap{display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;border-radius:6px;background:var(--iaw-accent);color:var(--iaw-accent-fg);flex-shrink:0}.header-icon{width:14px;height:14px}.widget-header-title{margin:0;font-size:16px;line-height:24px;font-weight:600;color:var(--iaw-fg)}.widget-badge{display:inline-flex;align-items:center;justify-content:center;padding:2px 8px;background:#f87171;color:#fff;font-size:12px;line-height:16px;font-weight:600;border-radius:9999px}.composer{display:flex;align-items:flex-end;gap:6px;width:100%;padding:8px;background:var(--iaw-answer-bg);border:1px solid var(--iaw-border);border-radius:var(--iaw-radius);transition:border-color .15s ease}.composer:focus-within{border-color:var(--iaw-accent)}.composer-input{appearance:none;flex:1 1 auto;min-width:0;display:block;padding:4px 0 4px 4px;border:none;outline:none;background:transparent;font-family:inherit;font-size:14px;line-height:20px;color:var(--iaw-fg);resize:none;overflow-y:auto;max-height:88px;scrollbar-width:thin}.composer-input:disabled{opacity:.6;cursor:not-allowed}.composer-input:placeholder-shown{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.composer-send{appearance:none;flex:0 0 auto;display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;padding:0;border:none;background:transparent;color:var(--iaw-accent);cursor:pointer;transition:background .15s ease,color .15s ease;font-family:inherit;transform:rotate(45deg)}.composer-send:hover:not(:disabled){background:#f0f0f0}.composer-send:disabled{color:#17171b59;cursor:not-allowed}.composer-send:focus-visible{outline:2px solid var(--iaw-accent);outline-offset:2px}.pills{display:flex;flex-wrap:wrap;gap:8px;margin:0;padding:0;list-style:none}.pills-item{display:inline-flex}.pill{appearance:none;display:inline-flex;align-items:center;padding:8px 14px;background:var(--iaw-pill-bg);color:var(--iaw-pill-fg);border:1px solid var(--iaw-pill-border);border-radius:9999px;font-family:inherit;font-size:13px;line-height:18px;cursor:pointer;transition:background .15s ease,border-color .15s ease;text-align:left}.pill:hover:not(:disabled){background:var(--iaw-pill-hover-bg)}.pill:focus-visible{outline:2px solid var(--iaw-accent);outline-offset:2px}.pill:disabled{opacity:.6;cursor:not-allowed}.slot{display:flex;flex-direction:column;gap:12px;width:100%}.user-bubble-row{display:flex;justify-content:flex-end;width:100%}.user-bubble{max-width:80%;margin:0;padding:10px 16px;background:var(--iaw-user-bubble-bg);color:var(--iaw-user-bubble-fg);border-radius:9999px;font-size:14px;line-height:20px;text-align:left;overflow-wrap:anywhere}.answer{display:flex;flex-direction:column;gap:6px;padding:16px 20px;background:var(--iaw-answer-bg);border:1px solid var(--iaw-border);border-radius:var(--iaw-radius);font-size:14px;line-height:1.5;max-height:var(--iaw-max-height);overflow-y:auto;word-wrap:break-word;overflow-wrap:anywhere}.typing{display:inline-flex;align-items:center;gap:4px}.dot{width:6px;height:6px;border-radius:50%;background:var(--iaw-muted);animation:iaw-blink 1.4s infinite both}.dot:nth-child(2){animation-delay:.2s}.dot:nth-child(3){animation-delay:.4s}@keyframes iaw-blink{0%,80%,to{opacity:.3}40%{opacity:1}}.error{color:var(--iaw-error);font-size:13px;margin:0}.md>:first-child{margin-top:0}.md>:last-child{margin-bottom:0}.md p{margin:0 0 8px}.md h1,.md h2,.md h3,.md h4{margin:12px 0 6px;line-height:1.3}.md h1{font-size:1.3em}.md h2{font-size:1.2em}.md h3{font-size:1.1em}.md ul,.md ol{margin:0 0 8px;padding-left:20px}.md li{margin:2px 0}.md a{color:var(--iaw-accent);text-decoration:underline}.md code{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:.9em;background:#0000000f;padding:1px 4px;border-radius:4px}.md pre{background:#0000000f;padding:10px 12px;border-radius:8px;overflow-x:auto;margin:0 0 8px}.md pre code{background:none;padding:0}.md blockquote{margin:0 0 8px;padding-left:12px;border-left:3px solid var(--iaw-border);color:var(--iaw-muted)}.md table{border-collapse:collapse;width:100%;margin:0 0 8px;font-size:.95em}.md th,.md td{border:1px solid var(--iaw-border);padding:6px 8px;text-align:left}.md img{max-width:100%;height:auto}.iaw-config-error{padding:12px 14px;font-family:var(--iaw-font);font-size:13px;color:var(--iaw-error);border:1px solid var(--iaw-border);background:var(--iaw-bg)}';var je=go();class kh{constructor(){Te(this,"listeners",new Map);Te(this,"onceListeners",new Map)}on(i,r){this.listeners.has(i)||this.listeners.set(i,new Set),this.listeners.get(i).add(r)}once(i,r){this.onceListeners.has(i)||this.onceListeners.set(i,new Set),this.onceListeners.get(i).add(r)}off(i,r){var o,s;if(!i){this.listeners.clear(),this.onceListeners.clear();return}if(!r){this.listeners.delete(i),this.onceListeners.delete(i);return}(o=this.listeners.get(i))==null||o.delete(r),(s=this.onceListeners.get(i))==null||s.delete(r)}emit(i,...r){const o=this.listeners.get(i);if(o)for(const a of o)try{a(...r)}catch{}const s=this.onceListeners.get(i);if(s){for(const a of s)try{a(...r)}catch{}this.onceListeners.delete(i)}}}class vh{constructor(i,r,o,s,a){Te(this,"url");Te(this,"headers");Te(this,"onEvent");Te(this,"onClose");Te(this,"logger");Te(this,"controller",null);Te(this,"reading",!1);this.url=i,this.headers=r,this.onEvent=o,this.onClose=s,this.logger=a}async connect(){if(this.reading){this.logger.warn("SSE already connected, ignoring duplicate connect()");return}this.controller=new AbortController,this.reading=!0;const i=await fetch(this.url,{method:"GET",headers:{...this.headers,Accept:"text/event-stream","Cache-Control":"no-cache"},signal:this.controller.signal});if(!i.ok){this.reading=!1;const r=await i.text().catch(()=>i.statusText);throw new Error(`SSE connection failed (${i.status}): ${r}`)}if(!i.body)throw this.reading=!1,new Error("SSE response has no body stream");this.readStream(i.body)}disconnect(){this.reading=!1,this.controller&&(this.controller.abort(),this.controller=null)}get isConnected(){return this.reading}async readStream(i){const r=i.getReader(),o=new TextDecoder;let s="";try{for(;this.reading;){const{value:a,done:c}=await r.read();if(c)break;s+=o.decode(a,{stream:!0}),s=s.replace(/\r\n/g,`
8
+ `+d.stack}return{value:e,source:n,stack:f,digest:null}}function Es(e,n,l){return{value:e,source:null,stack:l!=null?l:null,digest:n!=null?n:null}}function Cs(e,n){try{console.error(n.value)}catch(l){setTimeout(function(){throw l})}}var Mw=typeof WeakMap=="function"?WeakMap:Map;function yd(e,n,l){l=an(-1,l),l.tag=3,l.payload={element:null};var u=n.value;return l.callback=function(){eo||(eo=!0,js=u),Cs(e,n)},l}function kd(e,n,l){l=an(-1,l),l.tag=3;var u=e.type.getDerivedStateFromError;if(typeof u=="function"){var f=n.value;l.payload=function(){return u(f)},l.callback=function(){Cs(e,n)}}var d=e.stateNode;return d!==null&&typeof d.componentDidCatch=="function"&&(l.callback=function(){Cs(e,n),typeof u!="function"&&(Ln===null?Ln=new Set([this]):Ln.add(this));var k=n.stack;this.componentDidCatch(n.value,{componentStack:k!==null?k:""})}),l}function vd(e,n,l){var u=e.pingCache;if(u===null){u=e.pingCache=new Mw;var f=new Set;u.set(n,f)}else f=u.get(n),f===void 0&&(f=new Set,u.set(n,f));f.has(l)||(f.add(l),e=Xw.bind(null,e,n,l),n.then(e,e))}function xd(e){do{var n;if((n=e.tag===13)&&(n=e.memoizedState,n=n!==null?n.dehydrated!==null:!0),n)return e;e=e.return}while(e!==null);return null}function wd(e,n,l,u,f){return(e.mode&1)===0?(e===n?e.flags|=65536:(e.flags|=128,l.flags|=131072,l.flags&=-52805,l.tag===1&&(l.alternate===null?l.tag=17:(n=an(-1,1),n.tag=2,Rn(l,n,1))),l.lanes|=1),e):(e.flags|=65536,e.lanes=f,e)}var Fw=ne.ReactCurrentOwner,vt=!1;function ft(e,n,l,u){n.child=e===null?Up(n,null,l,u):Pr(n,e.child,l,u)}function Sd(e,n,l,u,f){l=l.render;var d=n.ref;return Nr(n,f),u=ms(e,n,l,u,d,f),l=gs(),e!==null&&!vt?(n.updateQueue=e.updateQueue,n.flags&=-2053,e.lanes&=~f,cn(e,n,f)):(Fe&&l&&Ju(n),n.flags|=1,ft(e,n,u,f),n.child)}function Ed(e,n,l,u,f){if(e===null){var d=l.type;return typeof d=="function"&&!qs(d)&&d.defaultProps===void 0&&l.compare===null&&l.defaultProps===void 0?(n.tag=15,n.type=d,Cd(e,n,d,u,f)):(e=oo(l.type,null,u,n,n.mode,f),e.ref=n.ref,e.return=n,n.child=e)}if(d=e.child,(e.lanes&f)===0){var k=d.memoizedProps;if(l=l.compare,l=l!==null?l:ki,l(k,u)&&e.ref===n.ref)return cn(e,n,f)}return n.flags|=1,e=Mn(d,u),e.ref=n.ref,e.return=n,n.child=e}function Cd(e,n,l,u,f){if(e!==null){var d=e.memoizedProps;if(ki(d,u)&&e.ref===n.ref)if(vt=!1,n.pendingProps=u=d,(e.lanes&f)!==0)(e.flags&131072)!==0&&(vt=!0);else return n.lanes=e.lanes,cn(e,n,f)}return Ts(e,n,l,u,f)}function Td(e,n,l){var u=n.pendingProps,f=u.children,d=e!==null?e.memoizedState:null;if(u.mode==="hidden")if((n.mode&1)===0)n.memoizedState={baseLanes:0,cachePool:null,transitions:null},be(Dr,Pt),Pt|=l;else{if((l&1073741824)===0)return e=d!==null?d.baseLanes|l:l,n.lanes=n.childLanes=1073741824,n.memoizedState={baseLanes:e,cachePool:null,transitions:null},n.updateQueue=null,be(Dr,Pt),Pt|=e,null;n.memoizedState={baseLanes:0,cachePool:null,transitions:null},u=d!==null?d.baseLanes:l,be(Dr,Pt),Pt|=u}else d!==null?(u=d.baseLanes|l,n.memoizedState=null):u=l,be(Dr,Pt),Pt|=u;return ft(e,n,f,l),n.child}function _d(e,n){var l=n.ref;(e===null&&l!==null||e!==null&&e.ref!==l)&&(n.flags|=512,n.flags|=2097152)}function Ts(e,n,l,u,f){var d=kt(l)?Yn:ot.current;return d=Cr(n,d),Nr(n,f),l=ms(e,n,l,u,d,f),u=gs(),e!==null&&!vt?(n.updateQueue=e.updateQueue,n.flags&=-2053,e.lanes&=~f,cn(e,n,f)):(Fe&&u&&Ju(n),n.flags|=1,ft(e,n,l,f),n.child)}function Id(e,n,l,u,f){if(kt(l)){var d=!0;Rl(n)}else d=!1;if(Nr(n,f),n.stateNode===null)Kl(e,n),md(n,l,u),Ss(n,l,u,f),u=!0;else if(e===null){var k=n.stateNode,S=n.memoizedProps;k.props=S;var C=k.context,z=l.contextType;typeof z=="object"&&z!==null?z=Lt(z):(z=kt(l)?Yn:ot.current,z=Cr(n,z));var B=l.getDerivedStateFromProps,$=typeof B=="function"||typeof k.getSnapshotBeforeUpdate=="function";$||typeof k.UNSAFE_componentWillReceiveProps!="function"&&typeof k.componentWillReceiveProps!="function"||(S!==u||C!==z)&&gd(n,k,u,z),Nn=!1;var j=n.memoizedState;k.state=j,Bl(n,u,k,f),C=n.memoizedState,S!==u||j!==C||yt.current||Nn?(typeof B=="function"&&(ws(n,l,B,u),C=n.memoizedState),(S=Nn||hd(n,l,S,u,j,C,z))?($||typeof k.UNSAFE_componentWillMount!="function"&&typeof k.componentWillMount!="function"||(typeof k.componentWillMount=="function"&&k.componentWillMount(),typeof k.UNSAFE_componentWillMount=="function"&&k.UNSAFE_componentWillMount()),typeof k.componentDidMount=="function"&&(n.flags|=4194308)):(typeof k.componentDidMount=="function"&&(n.flags|=4194308),n.memoizedProps=u,n.memoizedState=C),k.props=u,k.state=C,k.context=z,u=S):(typeof k.componentDidMount=="function"&&(n.flags|=4194308),u=!1)}else{k=n.stateNode,Vp(e,n),S=n.memoizedProps,z=n.type===n.elementType?S:Ut(n.type,S),k.props=z,$=n.pendingProps,j=k.context,C=l.contextType,typeof C=="object"&&C!==null?C=Lt(C):(C=kt(l)?Yn:ot.current,C=Cr(n,C));var X=l.getDerivedStateFromProps;(B=typeof X=="function"||typeof k.getSnapshotBeforeUpdate=="function")||typeof k.UNSAFE_componentWillReceiveProps!="function"&&typeof k.componentWillReceiveProps!="function"||(S!==$||j!==C)&&gd(n,k,u,C),Nn=!1,j=n.memoizedState,k.state=j,Bl(n,u,k,f);var ee=n.memoizedState;S!==$||j!==ee||yt.current||Nn?(typeof X=="function"&&(ws(n,l,X,u),ee=n.memoizedState),(z=Nn||hd(n,l,z,u,j,ee,C)||!1)?(B||typeof k.UNSAFE_componentWillUpdate!="function"&&typeof k.componentWillUpdate!="function"||(typeof k.componentWillUpdate=="function"&&k.componentWillUpdate(u,ee,C),typeof k.UNSAFE_componentWillUpdate=="function"&&k.UNSAFE_componentWillUpdate(u,ee,C)),typeof k.componentDidUpdate=="function"&&(n.flags|=4),typeof k.getSnapshotBeforeUpdate=="function"&&(n.flags|=1024)):(typeof k.componentDidUpdate!="function"||S===e.memoizedProps&&j===e.memoizedState||(n.flags|=4),typeof k.getSnapshotBeforeUpdate!="function"||S===e.memoizedProps&&j===e.memoizedState||(n.flags|=1024),n.memoizedProps=u,n.memoizedState=ee),k.props=u,k.state=ee,k.context=C,u=z):(typeof k.componentDidUpdate!="function"||S===e.memoizedProps&&j===e.memoizedState||(n.flags|=4),typeof k.getSnapshotBeforeUpdate!="function"||S===e.memoizedProps&&j===e.memoizedState||(n.flags|=1024),u=!1)}return _s(e,n,l,u,d,f)}function _s(e,n,l,u,f,d){_d(e,n);var k=(n.flags&128)!==0;if(!u&&!k)return f&&zp(n,l,!1),cn(e,n,d);u=n.stateNode,Fw.current=n;var S=k&&typeof l.getDerivedStateFromError!="function"?null:u.render();return n.flags|=1,e!==null&&k?(n.child=Pr(n,e.child,null,d),n.child=Pr(n,null,S,d)):ft(e,n,S,d),n.memoizedState=u.state,f&&zp(n,l,!0),n.child}function Pd(e){var n=e.stateNode;n.pendingContext?Np(e,n.pendingContext,n.pendingContext!==n.context):n.context&&Np(e,n.context,!1),as(e,n.containerInfo)}function Ad(e,n,l,u,f){return Ir(),ns(f),n.flags|=256,ft(e,n,l,u),n.child}var Is={dehydrated:null,treeContext:null,retryLane:0};function Ps(e){return{baseLanes:e,cachePool:null,transitions:null}}function Nd(e,n,l){var u=n.pendingProps,f=je.current,d=!1,k=(n.flags&128)!==0,S;if((S=k)||(S=e!==null&&e.memoizedState===null?!1:(f&2)!==0),S?(d=!0,n.flags&=-129):(e===null||e.memoizedState!==null)&&(f|=1),be(je,f&1),e===null)return ts(n),e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?((n.mode&1)===0?n.lanes=1:e.data==="$!"?n.lanes=8:n.lanes=1073741824,null):(k=u.children,e=u.fallback,d?(u=n.mode,d=n.child,k={mode:"hidden",children:k},(u&1)===0&&d!==null?(d.childLanes=0,d.pendingProps=k):d=uo(k,u,0,null),e=ir(e,u,l,null),d.return=n,e.return=n,d.sibling=e,n.child=d,n.child.memoizedState=Ps(l),n.memoizedState=Is,e):As(n,k));if(f=e.memoizedState,f!==null&&(S=f.dehydrated,S!==null))return jw(e,n,k,u,S,f,l);if(d){d=u.fallback,k=n.mode,f=e.child,S=f.sibling;var C={mode:"hidden",children:u.children};return(k&1)===0&&n.child!==f?(u=n.child,u.childLanes=0,u.pendingProps=C,n.deletions=null):(u=Mn(f,C),u.subtreeFlags=f.subtreeFlags&14680064),S!==null?d=Mn(S,d):(d=ir(d,k,l,null),d.flags|=2),d.return=n,u.return=n,u.sibling=d,n.child=u,u=d,d=n.child,k=e.child.memoizedState,k=k===null?Ps(l):{baseLanes:k.baseLanes|l,cachePool:null,transitions:k.transitions},d.memoizedState=k,d.childLanes=e.childLanes&~l,n.memoizedState=Is,u}return d=e.child,e=d.sibling,u=Mn(d,{mode:"visible",children:u.children}),(n.mode&1)===0&&(u.lanes=l),u.return=n,u.sibling=null,e!==null&&(l=n.deletions,l===null?(n.deletions=[e],n.flags|=16):l.push(e)),n.child=u,n.memoizedState=null,u}function As(e,n){return n=uo({mode:"visible",children:n},e.mode,0,null),n.return=e,e.child=n}function Yl(e,n,l,u){return u!==null&&ns(u),Pr(n,e.child,null,l),e=As(n,n.pendingProps.children),e.flags|=2,n.memoizedState=null,e}function jw(e,n,l,u,f,d,k){if(l)return n.flags&256?(n.flags&=-257,u=Es(Error(r(422))),Yl(e,n,k,u)):n.memoizedState!==null?(n.child=e.child,n.flags|=128,null):(d=u.fallback,f=n.mode,u=uo({mode:"visible",children:u.children},f,0,null),d=ir(d,f,k,null),d.flags|=2,u.return=n,d.return=n,u.sibling=d,n.child=u,(n.mode&1)!==0&&Pr(n,e.child,null,k),n.child.memoizedState=Ps(k),n.memoizedState=Is,d);if((n.mode&1)===0)return Yl(e,n,k,null);if(f.data==="$!"){if(u=f.nextSibling&&f.nextSibling.dataset,u)var S=u.dgst;return u=S,d=Error(r(419)),u=Es(d,u,void 0),Yl(e,n,k,u)}if(S=(k&e.childLanes)!==0,vt||S){if(u=Je,u!==null){switch(k&-k){case 4:f=2;break;case 16:f=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:f=32;break;case 536870912:f=268435456;break;default:f=0}f=(f&(u.suspendedLanes|k))!==0?0:f,f!==0&&f!==d.retryLane&&(d.retryLane=f,sn(e,f),Ht(u,e,f,-1))}return Ws(),u=Es(Error(r(421))),Yl(e,n,k,u)}return f.data==="$?"?(n.flags|=128,n.child=e.child,n=Jw.bind(null,e),f._reactRetry=n,null):(e=d.treeContext,It=_n(f.nextSibling),_t=n,Fe=!0,Bt=null,e!==null&&(Rt[zt++]=on,Rt[zt++]=un,Rt[zt++]=Kn,on=e.id,un=e.overflow,Kn=n),n=As(n,u.children),n.flags|=4096,n)}function Rd(e,n,l){e.lanes|=n;var u=e.alternate;u!==null&&(u.lanes|=n),os(e.return,n,l)}function Ns(e,n,l,u,f){var d=e.memoizedState;d===null?e.memoizedState={isBackwards:n,rendering:null,renderingStartTime:0,last:u,tail:l,tailMode:f}:(d.isBackwards=n,d.rendering=null,d.renderingStartTime=0,d.last=u,d.tail=l,d.tailMode=f)}function zd(e,n,l){var u=n.pendingProps,f=u.revealOrder,d=u.tail;if(ft(e,n,u.children,l),u=je.current,(u&2)!==0)u=u&1|2,n.flags|=128;else{if(e!==null&&(e.flags&128)!==0)e:for(e=n.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Rd(e,l,n);else if(e.tag===19)Rd(e,l,n);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===n)break e;for(;e.sibling===null;){if(e.return===null||e.return===n)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}u&=1}if(be(je,u),(n.mode&1)===0)n.memoizedState=null;else switch(f){case"forwards":for(l=n.child,f=null;l!==null;)e=l.alternate,e!==null&&Ul(e)===null&&(f=l),l=l.sibling;l=f,l===null?(f=n.child,n.child=null):(f=l.sibling,l.sibling=null),Ns(n,!1,f,l,d);break;case"backwards":for(l=null,f=n.child,n.child=null;f!==null;){if(e=f.alternate,e!==null&&Ul(e)===null){n.child=f;break}e=f.sibling,f.sibling=l,l=f,f=e}Ns(n,!0,l,null,d);break;case"together":Ns(n,!1,null,null,void 0);break;default:n.memoizedState=null}return n.child}function Kl(e,n){(n.mode&1)===0&&e!==null&&(e.alternate=null,n.alternate=null,n.flags|=2)}function cn(e,n,l){if(e!==null&&(n.dependencies=e.dependencies),er|=n.lanes,(l&n.childLanes)===0)return null;if(e!==null&&n.child!==e.child)throw Error(r(153));if(n.child!==null){for(e=n.child,l=Mn(e,e.pendingProps),n.child=l,l.return=n;e.sibling!==null;)e=e.sibling,l=l.sibling=Mn(e,e.pendingProps),l.return=n;l.sibling=null}return n.child}function Bw(e,n,l){switch(n.tag){case 3:Pd(n),Ir();break;case 5:qp(n);break;case 1:kt(n.type)&&Rl(n);break;case 4:as(n,n.stateNode.containerInfo);break;case 10:var u=n.type._context,f=n.memoizedProps.value;be(Ml,u._currentValue),u._currentValue=f;break;case 13:if(u=n.memoizedState,u!==null)return u.dehydrated!==null?(be(je,je.current&1),n.flags|=128,null):(l&n.child.childLanes)!==0?Nd(e,n,l):(be(je,je.current&1),e=cn(e,n,l),e!==null?e.sibling:null);be(je,je.current&1);break;case 19:if(u=(l&n.childLanes)!==0,(e.flags&128)!==0){if(u)return zd(e,n,l);n.flags|=128}if(f=n.memoizedState,f!==null&&(f.rendering=null,f.tail=null,f.lastEffect=null),be(je,je.current),u)break;return null;case 22:case 23:return n.lanes=0,Td(e,n,l)}return cn(e,n,l)}var Ld,Rs,Dd,bd;Ld=function(e,n){for(var l=n.child;l!==null;){if(l.tag===5||l.tag===6)e.appendChild(l.stateNode);else if(l.tag!==4&&l.child!==null){l.child.return=l,l=l.child;continue}if(l===n)break;for(;l.sibling===null;){if(l.return===null||l.return===n)return;l=l.return}l.sibling.return=l.return,l=l.sibling}},Rs=function(){},Dd=function(e,n,l,u){var f=e.memoizedProps;if(f!==u){e=n.stateNode,Jn(Gt.current);var d=null;switch(l){case"input":f=Zr(e,f),u=Zr(e,u),d=[];break;case"select":f=w({},f,{value:void 0}),u=w({},u,{value:void 0}),d=[];break;case"textarea":f=ni(e,f),u=ni(e,u),d=[];break;default:typeof f.onClick!="function"&&typeof u.onClick=="function"&&(e.onclick=Pl)}tt(l,u);var k;l=null;for(z in f)if(!u.hasOwnProperty(z)&&f.hasOwnProperty(z)&&f[z]!=null)if(z==="style"){var S=f[z];for(k in S)S.hasOwnProperty(k)&&(l||(l={}),l[k]="")}else z!=="dangerouslySetInnerHTML"&&z!=="children"&&z!=="suppressContentEditableWarning"&&z!=="suppressHydrationWarning"&&z!=="autoFocus"&&(s.hasOwnProperty(z)?d||(d=[]):(d=d||[]).push(z,null));for(z in u){var C=u[z];if(S=f!=null?f[z]:void 0,u.hasOwnProperty(z)&&C!==S&&(C!=null||S!=null))if(z==="style")if(S){for(k in S)!S.hasOwnProperty(k)||C&&C.hasOwnProperty(k)||(l||(l={}),l[k]="");for(k in C)C.hasOwnProperty(k)&&S[k]!==C[k]&&(l||(l={}),l[k]=C[k])}else l||(d||(d=[]),d.push(z,l)),l=C;else z==="dangerouslySetInnerHTML"?(C=C?C.__html:void 0,S=S?S.__html:void 0,C!=null&&S!==C&&(d=d||[]).push(z,C)):z==="children"?typeof C!="string"&&typeof C!="number"||(d=d||[]).push(z,""+C):z!=="suppressContentEditableWarning"&&z!=="suppressHydrationWarning"&&(s.hasOwnProperty(z)?(C!=null&&z==="onScroll"&&Oe("scroll",e),d||S===C||(d=[])):(d=d||[]).push(z,C))}l&&(d=d||[]).push("style",l);var z=d;(n.updateQueue=z)&&(n.flags|=4)}},bd=function(e,n,l,u){l!==u&&(n.flags|=4)};function Li(e,n){if(!Fe)switch(e.tailMode){case"hidden":n=e.tail;for(var l=null;n!==null;)n.alternate!==null&&(l=n),n=n.sibling;l===null?e.tail=null:l.sibling=null;break;case"collapsed":l=e.tail;for(var u=null;l!==null;)l.alternate!==null&&(u=l),l=l.sibling;u===null?n||e.tail===null?e.tail=null:e.tail.sibling=null:u.sibling=null}}function st(e){var n=e.alternate!==null&&e.alternate.child===e.child,l=0,u=0;if(n)for(var f=e.child;f!==null;)l|=f.lanes|f.childLanes,u|=f.subtreeFlags&14680064,u|=f.flags&14680064,f.return=e,f=f.sibling;else for(f=e.child;f!==null;)l|=f.lanes|f.childLanes,u|=f.subtreeFlags,u|=f.flags,f.return=e,f=f.sibling;return e.subtreeFlags|=u,e.childLanes=l,n}function Uw(e,n,l){var u=n.pendingProps;switch(Zu(n),n.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return st(n),null;case 1:return kt(n.type)&&Nl(),st(n),null;case 3:return u=n.stateNode,Rr(),Me(yt),Me(ot),ps(),u.pendingContext&&(u.context=u.pendingContext,u.pendingContext=null),(e===null||e.child===null)&&(bl(n)?n.flags|=4:e===null||e.memoizedState.isDehydrated&&(n.flags&256)===0||(n.flags|=1024,Bt!==null&&($s(Bt),Bt=null))),Rs(e,n),st(n),null;case 5:cs(n);var f=Jn(Pi.current);if(l=n.type,e!==null&&n.stateNode!=null)Dd(e,n,l,u,f),e.ref!==n.ref&&(n.flags|=512,n.flags|=2097152);else{if(!u){if(n.stateNode===null)throw Error(r(166));return st(n),null}if(e=Jn(Gt.current),bl(n)){u=n.stateNode,l=n.type;var d=n.memoizedProps;switch(u[Kt]=n,u[Ei]=d,e=(n.mode&1)!==0,l){case"dialog":Oe("cancel",u),Oe("close",u);break;case"iframe":case"object":case"embed":Oe("load",u);break;case"video":case"audio":for(f=0;f<xi.length;f++)Oe(xi[f],u);break;case"source":Oe("error",u);break;case"img":case"image":case"link":Oe("error",u),Oe("load",u);break;case"details":Oe("toggle",u);break;case"input":ei(u,d),Oe("invalid",u);break;case"select":u._wrapperState={wasMultiple:!!d.multiple},Oe("invalid",u);break;case"textarea":il(u,d),Oe("invalid",u)}tt(l,d),f=null;for(var k in d)if(d.hasOwnProperty(k)){var S=d[k];k==="children"?typeof S=="string"?u.textContent!==S&&(d.suppressHydrationWarning!==!0&&Il(u.textContent,S,e),f=["children",S]):typeof S=="number"&&u.textContent!==""+S&&(d.suppressHydrationWarning!==!0&&Il(u.textContent,S,e),f=["children",""+S]):s.hasOwnProperty(k)&&S!=null&&k==="onScroll"&&Oe("scroll",u)}switch(l){case"input":tn(u),rl(u,d,!0);break;case"textarea":tn(u),ol(u);break;case"select":case"option":break;default:typeof d.onClick=="function"&&(u.onclick=Pl)}u=f,n.updateQueue=u,u!==null&&(n.flags|=4)}else{k=f.nodeType===9?f:f.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=O(l)),e==="http://www.w3.org/1999/xhtml"?l==="script"?(e=k.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof u.is=="string"?e=k.createElement(l,{is:u.is}):(e=k.createElement(l),l==="select"&&(k=e,u.multiple?k.multiple=!0:u.size&&(k.size=u.size))):e=k.createElementNS(e,l),e[Kt]=n,e[Ei]=u,Ld(e,n,!1,!1),n.stateNode=e;e:{switch(k=Qt(l,u),l){case"dialog":Oe("cancel",e),Oe("close",e),f=u;break;case"iframe":case"object":case"embed":Oe("load",e),f=u;break;case"video":case"audio":for(f=0;f<xi.length;f++)Oe(xi[f],e);f=u;break;case"source":Oe("error",e),f=u;break;case"img":case"image":case"link":Oe("error",e),Oe("load",e),f=u;break;case"details":Oe("toggle",e),f=u;break;case"input":ei(e,u),f=Zr(e,u),Oe("invalid",e);break;case"option":f=u;break;case"select":e._wrapperState={wasMultiple:!!u.multiple},f=w({},u,{value:void 0}),Oe("invalid",e);break;case"textarea":il(e,u),f=ni(e,u),Oe("invalid",e);break;default:f=u}tt(l,f),S=f;for(d in S)if(S.hasOwnProperty(d)){var C=S[d];d==="style"?vn(e,C):d==="dangerouslySetInnerHTML"?(C=C?C.__html:void 0,C!=null&&Ee(e,C)):d==="children"?typeof C=="string"?(l!=="textarea"||C!=="")&&Ie(e,C):typeof C=="number"&&Ie(e,""+C):d!=="suppressContentEditableWarning"&&d!=="suppressHydrationWarning"&&d!=="autoFocus"&&(s.hasOwnProperty(d)?C!=null&&d==="onScroll"&&Oe("scroll",e):C!=null&&M(e,d,C,k))}switch(l){case"input":tn(e),rl(e,u,!1);break;case"textarea":tn(e),ol(e);break;case"option":u.value!=null&&e.setAttribute("value",""+Se(u.value));break;case"select":e.multiple=!!u.multiple,d=u.value,d!=null?kn(e,!!u.multiple,d,!1):u.defaultValue!=null&&kn(e,!!u.multiple,u.defaultValue,!0);break;default:typeof f.onClick=="function"&&(e.onclick=Pl)}switch(l){case"button":case"input":case"select":case"textarea":u=!!u.autoFocus;break e;case"img":u=!0;break e;default:u=!1}}u&&(n.flags|=4)}n.ref!==null&&(n.flags|=512,n.flags|=2097152)}return st(n),null;case 6:if(e&&n.stateNode!=null)bd(e,n,e.memoizedProps,u);else{if(typeof u!="string"&&n.stateNode===null)throw Error(r(166));if(l=Jn(Pi.current),Jn(Gt.current),bl(n)){if(u=n.stateNode,l=n.memoizedProps,u[Kt]=n,(d=u.nodeValue!==l)&&(e=_t,e!==null))switch(e.tag){case 3:Il(u.nodeValue,l,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&Il(u.nodeValue,l,(e.mode&1)!==0)}d&&(n.flags|=4)}else u=(l.nodeType===9?l:l.ownerDocument).createTextNode(u),u[Kt]=n,n.stateNode=u}return st(n),null;case 13:if(Me(je),u=n.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(Fe&&It!==null&&(n.mode&1)!==0&&(n.flags&128)===0)Fp(),Ir(),n.flags|=98560,d=!1;else if(d=bl(n),u!==null&&u.dehydrated!==null){if(e===null){if(!d)throw Error(r(318));if(d=n.memoizedState,d=d!==null?d.dehydrated:null,!d)throw Error(r(317));d[Kt]=n}else Ir(),(n.flags&128)===0&&(n.memoizedState=null),n.flags|=4;st(n),d=!1}else Bt!==null&&($s(Bt),Bt=null),d=!0;if(!d)return n.flags&65536?n:null}return(n.flags&128)!==0?(n.lanes=l,n):(u=u!==null,u!==(e!==null&&e.memoizedState!==null)&&u&&(n.child.flags|=8192,(n.mode&1)!==0&&(e===null||(je.current&1)!==0?Ge===0&&(Ge=3):Ws())),n.updateQueue!==null&&(n.flags|=4),st(n),null);case 4:return Rr(),Rs(e,n),e===null&&wi(n.stateNode.containerInfo),st(n),null;case 10:return ls(n.type._context),st(n),null;case 17:return kt(n.type)&&Nl(),st(n),null;case 19:if(Me(je),d=n.memoizedState,d===null)return st(n),null;if(u=(n.flags&128)!==0,k=d.rendering,k===null)if(u)Li(d,!1);else{if(Ge!==0||e!==null&&(e.flags&128)!==0)for(e=n.child;e!==null;){if(k=Ul(e),k!==null){for(n.flags|=128,Li(d,!1),u=k.updateQueue,u!==null&&(n.updateQueue=u,n.flags|=4),n.subtreeFlags=0,u=l,l=n.child;l!==null;)d=l,e=u,d.flags&=14680066,k=d.alternate,k===null?(d.childLanes=0,d.lanes=e,d.child=null,d.subtreeFlags=0,d.memoizedProps=null,d.memoizedState=null,d.updateQueue=null,d.dependencies=null,d.stateNode=null):(d.childLanes=k.childLanes,d.lanes=k.lanes,d.child=k.child,d.subtreeFlags=0,d.deletions=null,d.memoizedProps=k.memoizedProps,d.memoizedState=k.memoizedState,d.updateQueue=k.updateQueue,d.type=k.type,e=k.dependencies,d.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),l=l.sibling;return be(je,je.current&1|2),n.child}e=e.sibling}d.tail!==null&&Ve()>br&&(n.flags|=128,u=!0,Li(d,!1),n.lanes=4194304)}else{if(!u)if(e=Ul(k),e!==null){if(n.flags|=128,u=!0,l=e.updateQueue,l!==null&&(n.updateQueue=l,n.flags|=4),Li(d,!0),d.tail===null&&d.tailMode==="hidden"&&!k.alternate&&!Fe)return st(n),null}else 2*Ve()-d.renderingStartTime>br&&l!==1073741824&&(n.flags|=128,u=!0,Li(d,!1),n.lanes=4194304);d.isBackwards?(k.sibling=n.child,n.child=k):(l=d.last,l!==null?l.sibling=k:n.child=k,d.last=k)}return d.tail!==null?(n=d.tail,d.rendering=n,d.tail=n.sibling,d.renderingStartTime=Ve(),n.sibling=null,l=je.current,be(je,u?l&1|2:l&1),n):(st(n),null);case 22:case 23:return Hs(),u=n.memoizedState!==null,e!==null&&e.memoizedState!==null!==u&&(n.flags|=8192),u&&(n.mode&1)!==0?(Pt&1073741824)!==0&&(st(n),n.subtreeFlags&6&&(n.flags|=8192)):st(n),null;case 24:return null;case 25:return null}throw Error(r(156,n.tag))}function $w(e,n){switch(Zu(n),n.tag){case 1:return kt(n.type)&&Nl(),e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 3:return Rr(),Me(yt),Me(ot),ps(),e=n.flags,(e&65536)!==0&&(e&128)===0?(n.flags=e&-65537|128,n):null;case 5:return cs(n),null;case 13:if(Me(je),e=n.memoizedState,e!==null&&e.dehydrated!==null){if(n.alternate===null)throw Error(r(340));Ir()}return e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 19:return Me(je),null;case 4:return Rr(),null;case 10:return ls(n.type._context),null;case 22:case 23:return Hs(),null;case 24:return null;default:return null}}var Gl=!1,at=!1,Vw=typeof WeakSet=="function"?WeakSet:Set,Z=null;function Lr(e,n){var l=e.ref;if(l!==null)if(typeof l=="function")try{l(null)}catch(u){Ue(e,n,u)}else l.current=null}function zs(e,n,l){try{l()}catch(u){Ue(e,n,u)}}var Od=!1;function Hw(e,n){if(Hu=gl,e=hp(),Ou(e)){if("selectionStart"in e)var l={start:e.selectionStart,end:e.selectionEnd};else e:{l=(l=e.ownerDocument)&&l.defaultView||window;var u=l.getSelection&&l.getSelection();if(u&&u.rangeCount!==0){l=u.anchorNode;var f=u.anchorOffset,d=u.focusNode;u=u.focusOffset;try{l.nodeType,d.nodeType}catch{l=null;break e}var k=0,S=-1,C=-1,z=0,B=0,$=e,j=null;t:for(;;){for(var X;$!==l||f!==0&&$.nodeType!==3||(S=k+f),$!==d||u!==0&&$.nodeType!==3||(C=k+u),$.nodeType===3&&(k+=$.nodeValue.length),(X=$.firstChild)!==null;)j=$,$=X;for(;;){if($===e)break t;if(j===l&&++z===f&&(S=k),j===d&&++B===u&&(C=k),(X=$.nextSibling)!==null)break;$=j,j=$.parentNode}$=X}l=S===-1||C===-1?null:{start:S,end:C}}else l=null}l=l||{start:0,end:0}}else l=null;for(Wu={focusedElem:e,selectionRange:l},gl=!1,Z=n;Z!==null;)if(n=Z,e=n.child,(n.subtreeFlags&1028)!==0&&e!==null)e.return=n,Z=e;else for(;Z!==null;){n=Z;try{var ee=n.alternate;if((n.flags&1024)!==0)switch(n.tag){case 0:case 11:case 15:break;case 1:if(ee!==null){var te=ee.memoizedProps,He=ee.memoizedState,A=n.stateNode,T=A.getSnapshotBeforeUpdate(n.elementType===n.type?te:Ut(n.type,te),He);A.__reactInternalSnapshotBeforeUpdate=T}break;case 3:var N=n.stateNode.containerInfo;N.nodeType===1?N.textContent="":N.nodeType===9&&N.documentElement&&N.removeChild(N.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(r(163))}}catch(q){Ue(n,n.return,q)}if(e=n.sibling,e!==null){e.return=n.return,Z=e;break}Z=n.return}return ee=Od,Od=!1,ee}function Di(e,n,l){var u=n.updateQueue;if(u=u!==null?u.lastEffect:null,u!==null){var f=u=u.next;do{if((f.tag&e)===e){var d=f.destroy;f.destroy=void 0,d!==void 0&&zs(n,l,d)}f=f.next}while(f!==u)}}function Xl(e,n){if(n=n.updateQueue,n=n!==null?n.lastEffect:null,n!==null){var l=n=n.next;do{if((l.tag&e)===e){var u=l.create;l.destroy=u()}l=l.next}while(l!==n)}}function Ls(e){var n=e.ref;if(n!==null){var l=e.stateNode;e.tag,e=l,typeof n=="function"?n(e):n.current=e}}function Md(e){var n=e.alternate;n!==null&&(e.alternate=null,Md(n)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(n=e.stateNode,n!==null&&(delete n[Kt],delete n[Ei],delete n[Ku],delete n[_w],delete n[Iw])),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 Fd(e){return e.tag===5||e.tag===3||e.tag===4}function jd(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Fd(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Ds(e,n,l){var u=e.tag;if(u===5||u===6)e=e.stateNode,n?l.nodeType===8?l.parentNode.insertBefore(e,n):l.insertBefore(e,n):(l.nodeType===8?(n=l.parentNode,n.insertBefore(e,l)):(n=l,n.appendChild(e)),l=l._reactRootContainer,l!=null||n.onclick!==null||(n.onclick=Pl));else if(u!==4&&(e=e.child,e!==null))for(Ds(e,n,l),e=e.sibling;e!==null;)Ds(e,n,l),e=e.sibling}function bs(e,n,l){var u=e.tag;if(u===5||u===6)e=e.stateNode,n?l.insertBefore(e,n):l.appendChild(e);else if(u!==4&&(e=e.child,e!==null))for(bs(e,n,l),e=e.sibling;e!==null;)bs(e,n,l),e=e.sibling}var nt=null,$t=!1;function zn(e,n,l){for(l=l.child;l!==null;)Bd(e,n,l),l=l.sibling}function Bd(e,n,l){if(Yt&&typeof Yt.onCommitFiberUnmount=="function")try{Yt.onCommitFiberUnmount(cl,l)}catch{}switch(l.tag){case 5:at||Lr(l,n);case 6:var u=nt,f=$t;nt=null,zn(e,n,l),nt=u,$t=f,nt!==null&&($t?(e=nt,l=l.stateNode,e.nodeType===8?e.parentNode.removeChild(l):e.removeChild(l)):nt.removeChild(l.stateNode));break;case 18:nt!==null&&($t?(e=nt,l=l.stateNode,e.nodeType===8?Yu(e.parentNode,l):e.nodeType===1&&Yu(e,l),pi(e)):Yu(nt,l.stateNode));break;case 4:u=nt,f=$t,nt=l.stateNode.containerInfo,$t=!0,zn(e,n,l),nt=u,$t=f;break;case 0:case 11:case 14:case 15:if(!at&&(u=l.updateQueue,u!==null&&(u=u.lastEffect,u!==null))){f=u=u.next;do{var d=f,k=d.destroy;d=d.tag,k!==void 0&&((d&2)!==0||(d&4)!==0)&&zs(l,n,k),f=f.next}while(f!==u)}zn(e,n,l);break;case 1:if(!at&&(Lr(l,n),u=l.stateNode,typeof u.componentWillUnmount=="function"))try{u.props=l.memoizedProps,u.state=l.memoizedState,u.componentWillUnmount()}catch(S){Ue(l,n,S)}zn(e,n,l);break;case 21:zn(e,n,l);break;case 22:l.mode&1?(at=(u=at)||l.memoizedState!==null,zn(e,n,l),at=u):zn(e,n,l);break;default:zn(e,n,l)}}function Ud(e){var n=e.updateQueue;if(n!==null){e.updateQueue=null;var l=e.stateNode;l===null&&(l=e.stateNode=new Vw),n.forEach(function(u){var f=Zw.bind(null,e,u);l.has(u)||(l.add(u),u.then(f,f))})}}function Vt(e,n){var l=n.deletions;if(l!==null)for(var u=0;u<l.length;u++){var f=l[u];try{var d=e,k=n,S=k;e:for(;S!==null;){switch(S.tag){case 5:nt=S.stateNode,$t=!1;break e;case 3:nt=S.stateNode.containerInfo,$t=!0;break e;case 4:nt=S.stateNode.containerInfo,$t=!0;break e}S=S.return}if(nt===null)throw Error(r(160));Bd(d,k,f),nt=null,$t=!1;var C=f.alternate;C!==null&&(C.return=null),f.return=null}catch(z){Ue(f,n,z)}}if(n.subtreeFlags&12854)for(n=n.child;n!==null;)$d(n,e),n=n.sibling}function $d(e,n){var l=e.alternate,u=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Vt(n,e),Jt(e),u&4){try{Di(3,e,e.return),Xl(3,e)}catch(te){Ue(e,e.return,te)}try{Di(5,e,e.return)}catch(te){Ue(e,e.return,te)}}break;case 1:Vt(n,e),Jt(e),u&512&&l!==null&&Lr(l,l.return);break;case 5:if(Vt(n,e),Jt(e),u&512&&l!==null&&Lr(l,l.return),e.flags&32){var f=e.stateNode;try{Ie(f,"")}catch(te){Ue(e,e.return,te)}}if(u&4&&(f=e.stateNode,f!=null)){var d=e.memoizedProps,k=l!==null?l.memoizedProps:d,S=e.type,C=e.updateQueue;if(e.updateQueue=null,C!==null)try{S==="input"&&d.type==="radio"&&d.name!=null&&ti(f,d),Qt(S,k);var z=Qt(S,d);for(k=0;k<C.length;k+=2){var B=C[k],$=C[k+1];B==="style"?vn(f,$):B==="dangerouslySetInnerHTML"?Ee(f,$):B==="children"?Ie(f,$):M(f,B,$,z)}switch(S){case"input":fr(f,d);break;case"textarea":ll(f,d);break;case"select":var j=f._wrapperState.wasMultiple;f._wrapperState.wasMultiple=!!d.multiple;var X=d.value;X!=null?kn(f,!!d.multiple,X,!1):j!==!!d.multiple&&(d.defaultValue!=null?kn(f,!!d.multiple,d.defaultValue,!0):kn(f,!!d.multiple,d.multiple?[]:"",!1))}f[Ei]=d}catch(te){Ue(e,e.return,te)}}break;case 6:if(Vt(n,e),Jt(e),u&4){if(e.stateNode===null)throw Error(r(162));f=e.stateNode,d=e.memoizedProps;try{f.nodeValue=d}catch(te){Ue(e,e.return,te)}}break;case 3:if(Vt(n,e),Jt(e),u&4&&l!==null&&l.memoizedState.isDehydrated)try{pi(n.containerInfo)}catch(te){Ue(e,e.return,te)}break;case 4:Vt(n,e),Jt(e);break;case 13:Vt(n,e),Jt(e),f=e.child,f.flags&8192&&(d=f.memoizedState!==null,f.stateNode.isHidden=d,!d||f.alternate!==null&&f.alternate.memoizedState!==null||(Fs=Ve())),u&4&&Ud(e);break;case 22:if(B=l!==null&&l.memoizedState!==null,e.mode&1?(at=(z=at)||B,Vt(n,e),at=z):Vt(n,e),Jt(e),u&8192){if(z=e.memoizedState!==null,(e.stateNode.isHidden=z)&&!B&&(e.mode&1)!==0)for(Z=e,B=e.child;B!==null;){for($=Z=B;Z!==null;){switch(j=Z,X=j.child,j.tag){case 0:case 11:case 14:case 15:Di(4,j,j.return);break;case 1:Lr(j,j.return);var ee=j.stateNode;if(typeof ee.componentWillUnmount=="function"){u=j,l=j.return;try{n=u,ee.props=n.memoizedProps,ee.state=n.memoizedState,ee.componentWillUnmount()}catch(te){Ue(u,l,te)}}break;case 5:Lr(j,j.return);break;case 22:if(j.memoizedState!==null){Wd($);continue}}X!==null?(X.return=j,Z=X):Wd($)}B=B.sibling}e:for(B=null,$=e;;){if($.tag===5){if(B===null){B=$;try{f=$.stateNode,z?(d=f.style,typeof d.setProperty=="function"?d.setProperty("display","none","important"):d.display="none"):(S=$.stateNode,C=$.memoizedProps.style,k=C!=null&&C.hasOwnProperty("display")?C.display:null,S.style.display=Nt("display",k))}catch(te){Ue(e,e.return,te)}}}else if($.tag===6){if(B===null)try{$.stateNode.nodeValue=z?"":$.memoizedProps}catch(te){Ue(e,e.return,te)}}else if(($.tag!==22&&$.tag!==23||$.memoizedState===null||$===e)&&$.child!==null){$.child.return=$,$=$.child;continue}if($===e)break e;for(;$.sibling===null;){if($.return===null||$.return===e)break e;B===$&&(B=null),$=$.return}B===$&&(B=null),$.sibling.return=$.return,$=$.sibling}}break;case 19:Vt(n,e),Jt(e),u&4&&Ud(e);break;case 21:break;default:Vt(n,e),Jt(e)}}function Jt(e){var n=e.flags;if(n&2){try{e:{for(var l=e.return;l!==null;){if(Fd(l)){var u=l;break e}l=l.return}throw Error(r(160))}switch(u.tag){case 5:var f=u.stateNode;u.flags&32&&(Ie(f,""),u.flags&=-33);var d=jd(e);bs(e,d,f);break;case 3:case 4:var k=u.stateNode.containerInfo,S=jd(e);Ds(e,S,k);break;default:throw Error(r(161))}}catch(C){Ue(e,e.return,C)}e.flags&=-3}n&4096&&(e.flags&=-4097)}function Ww(e,n,l){Z=e,Vd(e)}function Vd(e,n,l){for(var u=(e.mode&1)!==0;Z!==null;){var f=Z,d=f.child;if(f.tag===22&&u){var k=f.memoizedState!==null||Gl;if(!k){var S=f.alternate,C=S!==null&&S.memoizedState!==null||at;S=Gl;var z=at;if(Gl=k,(at=C)&&!z)for(Z=f;Z!==null;)k=Z,C=k.child,k.tag===22&&k.memoizedState!==null?qd(f):C!==null?(C.return=k,Z=C):qd(f);for(;d!==null;)Z=d,Vd(d),d=d.sibling;Z=f,Gl=S,at=z}Hd(e)}else(f.subtreeFlags&8772)!==0&&d!==null?(d.return=f,Z=d):Hd(e)}}function Hd(e){for(;Z!==null;){var n=Z;if((n.flags&8772)!==0){var l=n.alternate;try{if((n.flags&8772)!==0)switch(n.tag){case 0:case 11:case 15:at||Xl(5,n);break;case 1:var u=n.stateNode;if(n.flags&4&&!at)if(l===null)u.componentDidMount();else{var f=n.elementType===n.type?l.memoizedProps:Ut(n.type,l.memoizedProps);u.componentDidUpdate(f,l.memoizedState,u.__reactInternalSnapshotBeforeUpdate)}var d=n.updateQueue;d!==null&&Wp(n,d,u);break;case 3:var k=n.updateQueue;if(k!==null){if(l=null,n.child!==null)switch(n.child.tag){case 5:l=n.child.stateNode;break;case 1:l=n.child.stateNode}Wp(n,k,l)}break;case 5:var S=n.stateNode;if(l===null&&n.flags&4){l=S;var C=n.memoizedProps;switch(n.type){case"button":case"input":case"select":case"textarea":C.autoFocus&&l.focus();break;case"img":C.src&&(l.src=C.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(n.memoizedState===null){var z=n.alternate;if(z!==null){var B=z.memoizedState;if(B!==null){var $=B.dehydrated;$!==null&&pi($)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(r(163))}at||n.flags&512&&Ls(n)}catch(j){Ue(n,n.return,j)}}if(n===e){Z=null;break}if(l=n.sibling,l!==null){l.return=n.return,Z=l;break}Z=n.return}}function Wd(e){for(;Z!==null;){var n=Z;if(n===e){Z=null;break}var l=n.sibling;if(l!==null){l.return=n.return,Z=l;break}Z=n.return}}function qd(e){for(;Z!==null;){var n=Z;try{switch(n.tag){case 0:case 11:case 15:var l=n.return;try{Xl(4,n)}catch(C){Ue(n,l,C)}break;case 1:var u=n.stateNode;if(typeof u.componentDidMount=="function"){var f=n.return;try{u.componentDidMount()}catch(C){Ue(n,f,C)}}var d=n.return;try{Ls(n)}catch(C){Ue(n,d,C)}break;case 5:var k=n.return;try{Ls(n)}catch(C){Ue(n,k,C)}}}catch(C){Ue(n,n.return,C)}if(n===e){Z=null;break}var S=n.sibling;if(S!==null){S.return=n.return,Z=S;break}Z=n.return}}var qw=Math.ceil,Jl=ne.ReactCurrentDispatcher,Os=ne.ReactCurrentOwner,bt=ne.ReactCurrentBatchConfig,Pe=0,Je=null,Qe=null,rt=0,Pt=0,Dr=In(0),Ge=0,bi=null,er=0,Zl=0,Ms=0,Oi=null,xt=null,Fs=0,br=1/0,fn=null,eo=!1,js=null,Ln=null,to=!1,Dn=null,no=0,Mi=0,Bs=null,ro=-1,io=0;function pt(){return(Pe&6)!==0?Ve():ro!==-1?ro:ro=Ve()}function bn(e){return(e.mode&1)===0?1:(Pe&2)!==0&&rt!==0?rt&-rt:Aw.transition!==null?(io===0&&(io=jf()),io):(e=ze,e!==0||(e=window.event,e=e===void 0?16:Yf(e.type)),e)}function Ht(e,n,l,u){if(50<Mi)throw Mi=0,Bs=null,Error(r(185));ui(e,l,u),((Pe&2)===0||e!==Je)&&(e===Je&&((Pe&2)===0&&(Zl|=l),Ge===4&&On(e,rt)),wt(e,u),l===1&&Pe===0&&(n.mode&1)===0&&(br=Ve()+500,zl&&An()))}function wt(e,n){var l=e.callbackNode;Ax(e,n);var u=dl(e,e===Je?rt:0);if(u===0)l!==null&&Of(l),e.callbackNode=null,e.callbackPriority=0;else if(n=u&-u,e.callbackPriority!==n){if(l!=null&&Of(l),n===1)e.tag===0?Pw(Yd.bind(null,e)):Lp(Yd.bind(null,e)),Cw(function(){(Pe&6)===0&&An()}),l=null;else{switch(Bf(u)){case 1:l=vu;break;case 4:l=Mf;break;case 16:l=al;break;case 536870912:l=Ff;break;default:l=al}l=nh(l,Qd.bind(null,e))}e.callbackPriority=n,e.callbackNode=l}}function Qd(e,n){if(ro=-1,io=0,(Pe&6)!==0)throw Error(r(327));var l=e.callbackNode;if(Or()&&e.callbackNode!==l)return null;var u=dl(e,e===Je?rt:0);if(u===0)return null;if((u&30)!==0||(u&e.expiredLanes)!==0||n)n=lo(e,u);else{n=u;var f=Pe;Pe|=2;var d=Gd();(Je!==e||rt!==n)&&(fn=null,br=Ve()+500,nr(e,n));do try{Kw();break}catch(S){Kd(e,S)}while(!0);is(),Jl.current=d,Pe=f,Qe!==null?n=0:(Je=null,rt=0,n=Ge)}if(n!==0){if(n===2&&(f=xu(e),f!==0&&(u=f,n=Us(e,f))),n===1)throw l=bi,nr(e,0),On(e,u),wt(e,Ve()),l;if(n===6)On(e,u);else{if(f=e.current.alternate,(u&30)===0&&!Qw(f)&&(n=lo(e,u),n===2&&(d=xu(e),d!==0&&(u=d,n=Us(e,d))),n===1))throw l=bi,nr(e,0),On(e,u),wt(e,Ve()),l;switch(e.finishedWork=f,e.finishedLanes=u,n){case 0:case 1:throw Error(r(345));case 2:rr(e,xt,fn);break;case 3:if(On(e,u),(u&130023424)===u&&(n=Fs+500-Ve(),10<n)){if(dl(e,0)!==0)break;if(f=e.suspendedLanes,(f&u)!==u){pt(),e.pingedLanes|=e.suspendedLanes&f;break}e.timeoutHandle=Qu(rr.bind(null,e,xt,fn),n);break}rr(e,xt,fn);break;case 4:if(On(e,u),(u&4194240)===u)break;for(n=e.eventTimes,f=-1;0<u;){var k=31-Ft(u);d=1<<k,k=n[k],k>f&&(f=k),u&=~d}if(u=f,u=Ve()-u,u=(120>u?120:480>u?480:1080>u?1080:1920>u?1920:3e3>u?3e3:4320>u?4320:1960*qw(u/1960))-u,10<u){e.timeoutHandle=Qu(rr.bind(null,e,xt,fn),u);break}rr(e,xt,fn);break;case 5:rr(e,xt,fn);break;default:throw Error(r(329))}}}return wt(e,Ve()),e.callbackNode===l?Qd.bind(null,e):null}function Us(e,n){var l=Oi;return e.current.memoizedState.isDehydrated&&(nr(e,n).flags|=256),e=lo(e,n),e!==2&&(n=xt,xt=l,n!==null&&$s(n)),e}function $s(e){xt===null?xt=e:xt.push.apply(xt,e)}function Qw(e){for(var n=e;;){if(n.flags&16384){var l=n.updateQueue;if(l!==null&&(l=l.stores,l!==null))for(var u=0;u<l.length;u++){var f=l[u],d=f.getSnapshot;f=f.value;try{if(!jt(d(),f))return!1}catch{return!1}}}if(l=n.child,n.subtreeFlags&16384&&l!==null)l.return=n,n=l;else{if(n===e)break;for(;n.sibling===null;){if(n.return===null||n.return===e)return!0;n=n.return}n.sibling.return=n.return,n=n.sibling}}return!0}function On(e,n){for(n&=~Ms,n&=~Zl,e.suspendedLanes|=n,e.pingedLanes&=~n,e=e.expirationTimes;0<n;){var l=31-Ft(n),u=1<<l;e[l]=-1,n&=~u}}function Yd(e){if((Pe&6)!==0)throw Error(r(327));Or();var n=dl(e,0);if((n&1)===0)return wt(e,Ve()),null;var l=lo(e,n);if(e.tag!==0&&l===2){var u=xu(e);u!==0&&(n=u,l=Us(e,u))}if(l===1)throw l=bi,nr(e,0),On(e,n),wt(e,Ve()),l;if(l===6)throw Error(r(345));return e.finishedWork=e.current.alternate,e.finishedLanes=n,rr(e,xt,fn),wt(e,Ve()),null}function Vs(e,n){var l=Pe;Pe|=1;try{return e(n)}finally{Pe=l,Pe===0&&(br=Ve()+500,zl&&An())}}function tr(e){Dn!==null&&Dn.tag===0&&(Pe&6)===0&&Or();var n=Pe;Pe|=1;var l=bt.transition,u=ze;try{if(bt.transition=null,ze=1,e)return e()}finally{ze=u,bt.transition=l,Pe=n,(Pe&6)===0&&An()}}function Hs(){Pt=Dr.current,Me(Dr)}function nr(e,n){e.finishedWork=null,e.finishedLanes=0;var l=e.timeoutHandle;if(l!==-1&&(e.timeoutHandle=-1,Ew(l)),Qe!==null)for(l=Qe.return;l!==null;){var u=l;switch(Zu(u),u.tag){case 1:u=u.type.childContextTypes,u!=null&&Nl();break;case 3:Rr(),Me(yt),Me(ot),ps();break;case 5:cs(u);break;case 4:Rr();break;case 13:Me(je);break;case 19:Me(je);break;case 10:ls(u.type._context);break;case 22:case 23:Hs()}l=l.return}if(Je=e,Qe=e=Mn(e.current,null),rt=Pt=n,Ge=0,bi=null,Ms=Zl=er=0,xt=Oi=null,Xn!==null){for(n=0;n<Xn.length;n++)if(l=Xn[n],u=l.interleaved,u!==null){l.interleaved=null;var f=u.next,d=l.pending;if(d!==null){var k=d.next;d.next=f,u.next=k}l.pending=u}Xn=null}return e}function Kd(e,n){do{var l=Qe;try{if(is(),$l.current=ql,Vl){for(var u=Be.memoizedState;u!==null;){var f=u.queue;f!==null&&(f.pending=null),u=u.next}Vl=!1}if(Zn=0,Xe=Ke=Be=null,Ai=!1,Ni=0,Os.current=null,l===null||l.return===null){Ge=1,bi=n,Qe=null;break}e:{var d=e,k=l.return,S=l,C=n;if(n=rt,S.flags|=32768,C!==null&&typeof C=="object"&&typeof C.then=="function"){var z=C,B=S,$=B.tag;if((B.mode&1)===0&&($===0||$===11||$===15)){var j=B.alternate;j?(B.updateQueue=j.updateQueue,B.memoizedState=j.memoizedState,B.lanes=j.lanes):(B.updateQueue=null,B.memoizedState=null)}var X=xd(k);if(X!==null){X.flags&=-257,wd(X,k,S,d,n),X.mode&1&&vd(d,z,n),n=X,C=z;var ee=n.updateQueue;if(ee===null){var te=new Set;te.add(C),n.updateQueue=te}else ee.add(C);break e}else{if((n&1)===0){vd(d,z,n),Ws();break e}C=Error(r(426))}}else if(Fe&&S.mode&1){var He=xd(k);if(He!==null){(He.flags&65536)===0&&(He.flags|=256),wd(He,k,S,d,n),ns(zr(C,S));break e}}d=C=zr(C,S),Ge!==4&&(Ge=2),Oi===null?Oi=[d]:Oi.push(d),d=k;do{switch(d.tag){case 3:d.flags|=65536,n&=-n,d.lanes|=n;var A=yd(d,C,n);Hp(d,A);break e;case 1:S=C;var T=d.type,N=d.stateNode;if((d.flags&128)===0&&(typeof T.getDerivedStateFromError=="function"||N!==null&&typeof N.componentDidCatch=="function"&&(Ln===null||!Ln.has(N)))){d.flags|=65536,n&=-n,d.lanes|=n;var q=kd(d,S,n);Hp(d,q);break e}}d=d.return}while(d!==null)}Jd(l)}catch(re){n=re,Qe===l&&l!==null&&(Qe=l=l.return);continue}break}while(!0)}function Gd(){var e=Jl.current;return Jl.current=ql,e===null?ql:e}function Ws(){(Ge===0||Ge===3||Ge===2)&&(Ge=4),Je===null||(er&268435455)===0&&(Zl&268435455)===0||On(Je,rt)}function lo(e,n){var l=Pe;Pe|=2;var u=Gd();(Je!==e||rt!==n)&&(fn=null,nr(e,n));do try{Yw();break}catch(f){Kd(e,f)}while(!0);if(is(),Pe=l,Jl.current=u,Qe!==null)throw Error(r(261));return Je=null,rt=0,Ge}function Yw(){for(;Qe!==null;)Xd(Qe)}function Kw(){for(;Qe!==null&&!xx();)Xd(Qe)}function Xd(e){var n=th(e.alternate,e,Pt);e.memoizedProps=e.pendingProps,n===null?Jd(e):Qe=n,Os.current=null}function Jd(e){var n=e;do{var l=n.alternate;if(e=n.return,(n.flags&32768)===0){if(l=Uw(l,n,Pt),l!==null){Qe=l;return}}else{if(l=$w(l,n),l!==null){l.flags&=32767,Qe=l;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{Ge=6,Qe=null;return}}if(n=n.sibling,n!==null){Qe=n;return}Qe=n=e}while(n!==null);Ge===0&&(Ge=5)}function rr(e,n,l){var u=ze,f=bt.transition;try{bt.transition=null,ze=1,Gw(e,n,l,u)}finally{bt.transition=f,ze=u}return null}function Gw(e,n,l,u){do Or();while(Dn!==null);if((Pe&6)!==0)throw Error(r(327));l=e.finishedWork;var f=e.finishedLanes;if(l===null)return null;if(e.finishedWork=null,e.finishedLanes=0,l===e.current)throw Error(r(177));e.callbackNode=null,e.callbackPriority=0;var d=l.lanes|l.childLanes;if(Nx(e,d),e===Je&&(Qe=Je=null,rt=0),(l.subtreeFlags&2064)===0&&(l.flags&2064)===0||to||(to=!0,nh(al,function(){return Or(),null})),d=(l.flags&15990)!==0,(l.subtreeFlags&15990)!==0||d){d=bt.transition,bt.transition=null;var k=ze;ze=1;var S=Pe;Pe|=4,Os.current=null,Hw(e,l),$d(l,e),gw(Wu),gl=!!Hu,Wu=Hu=null,e.current=l,Ww(l),wx(),Pe=S,ze=k,bt.transition=d}else e.current=l;if(to&&(to=!1,Dn=e,no=f),d=e.pendingLanes,d===0&&(Ln=null),Cx(l.stateNode),wt(e,Ve()),n!==null)for(u=e.onRecoverableError,l=0;l<n.length;l++)f=n[l],u(f.value,{componentStack:f.stack,digest:f.digest});if(eo)throw eo=!1,e=js,js=null,e;return(no&1)!==0&&e.tag!==0&&Or(),d=e.pendingLanes,(d&1)!==0?e===Bs?Mi++:(Mi=0,Bs=e):Mi=0,An(),null}function Or(){if(Dn!==null){var e=Bf(no),n=bt.transition,l=ze;try{if(bt.transition=null,ze=16>e?16:e,Dn===null)var u=!1;else{if(e=Dn,Dn=null,no=0,(Pe&6)!==0)throw Error(r(331));var f=Pe;for(Pe|=4,Z=e.current;Z!==null;){var d=Z,k=d.child;if((Z.flags&16)!==0){var S=d.deletions;if(S!==null){for(var C=0;C<S.length;C++){var z=S[C];for(Z=z;Z!==null;){var B=Z;switch(B.tag){case 0:case 11:case 15:Di(8,B,d)}var $=B.child;if($!==null)$.return=B,Z=$;else for(;Z!==null;){B=Z;var j=B.sibling,X=B.return;if(Md(B),B===z){Z=null;break}if(j!==null){j.return=X,Z=j;break}Z=X}}}var ee=d.alternate;if(ee!==null){var te=ee.child;if(te!==null){ee.child=null;do{var He=te.sibling;te.sibling=null,te=He}while(te!==null)}}Z=d}}if((d.subtreeFlags&2064)!==0&&k!==null)k.return=d,Z=k;else e:for(;Z!==null;){if(d=Z,(d.flags&2048)!==0)switch(d.tag){case 0:case 11:case 15:Di(9,d,d.return)}var A=d.sibling;if(A!==null){A.return=d.return,Z=A;break e}Z=d.return}}var T=e.current;for(Z=T;Z!==null;){k=Z;var N=k.child;if((k.subtreeFlags&2064)!==0&&N!==null)N.return=k,Z=N;else e:for(k=T;Z!==null;){if(S=Z,(S.flags&2048)!==0)try{switch(S.tag){case 0:case 11:case 15:Xl(9,S)}}catch(re){Ue(S,S.return,re)}if(S===k){Z=null;break e}var q=S.sibling;if(q!==null){q.return=S.return,Z=q;break e}Z=S.return}}if(Pe=f,An(),Yt&&typeof Yt.onPostCommitFiberRoot=="function")try{Yt.onPostCommitFiberRoot(cl,e)}catch{}u=!0}return u}finally{ze=l,bt.transition=n}}return!1}function Zd(e,n,l){n=zr(l,n),n=yd(e,n,1),e=Rn(e,n,1),n=pt(),e!==null&&(ui(e,1,n),wt(e,n))}function Ue(e,n,l){if(e.tag===3)Zd(e,e,l);else for(;n!==null;){if(n.tag===3){Zd(n,e,l);break}else if(n.tag===1){var u=n.stateNode;if(typeof n.type.getDerivedStateFromError=="function"||typeof u.componentDidCatch=="function"&&(Ln===null||!Ln.has(u))){e=zr(l,e),e=kd(n,e,1),n=Rn(n,e,1),e=pt(),n!==null&&(ui(n,1,e),wt(n,e));break}}n=n.return}}function Xw(e,n,l){var u=e.pingCache;u!==null&&u.delete(n),n=pt(),e.pingedLanes|=e.suspendedLanes&l,Je===e&&(rt&l)===l&&(Ge===4||Ge===3&&(rt&130023424)===rt&&500>Ve()-Fs?nr(e,0):Ms|=l),wt(e,n)}function eh(e,n){n===0&&((e.mode&1)===0?n=1:(n=pl,pl<<=1,(pl&130023424)===0&&(pl=4194304)));var l=pt();e=sn(e,n),e!==null&&(ui(e,n,l),wt(e,l))}function Jw(e){var n=e.memoizedState,l=0;n!==null&&(l=n.retryLane),eh(e,l)}function Zw(e,n){var l=0;switch(e.tag){case 13:var u=e.stateNode,f=e.memoizedState;f!==null&&(l=f.retryLane);break;case 19:u=e.stateNode;break;default:throw Error(r(314))}u!==null&&u.delete(n),eh(e,l)}var th;th=function(e,n,l){if(e!==null)if(e.memoizedProps!==n.pendingProps||yt.current)vt=!0;else{if((e.lanes&l)===0&&(n.flags&128)===0)return vt=!1,Bw(e,n,l);vt=(e.flags&131072)!==0}else vt=!1,Fe&&(n.flags&1048576)!==0&&Dp(n,Dl,n.index);switch(n.lanes=0,n.tag){case 2:var u=n.type;Kl(e,n),e=n.pendingProps;var f=Cr(n,ot.current);Nr(n,l),f=ms(null,n,u,e,f,l);var d=gs();return n.flags|=1,typeof f=="object"&&f!==null&&typeof f.render=="function"&&f.$$typeof===void 0?(n.tag=1,n.memoizedState=null,n.updateQueue=null,kt(u)?(d=!0,Rl(n)):d=!1,n.memoizedState=f.state!==null&&f.state!==void 0?f.state:null,ss(n),f.updater=Ql,n.stateNode=f,f._reactInternals=n,Ss(n,u,e,l),n=_s(null,n,u,!0,d,l)):(n.tag=0,Fe&&d&&Ju(n),ft(null,n,f,l),n=n.child),n;case 16:u=n.elementType;e:{switch(Kl(e,n),e=n.pendingProps,f=u._init,u=f(u._payload),n.type=u,f=n.tag=t0(u),e=Ut(u,e),f){case 0:n=Ts(null,n,u,e,l);break e;case 1:n=Id(null,n,u,e,l);break e;case 11:n=Sd(null,n,u,e,l);break e;case 14:n=Ed(null,n,u,Ut(u.type,e),l);break e}throw Error(r(306,u,""))}return n;case 0:return u=n.type,f=n.pendingProps,f=n.elementType===u?f:Ut(u,f),Ts(e,n,u,f,l);case 1:return u=n.type,f=n.pendingProps,f=n.elementType===u?f:Ut(u,f),Id(e,n,u,f,l);case 3:e:{if(Pd(n),e===null)throw Error(r(387));u=n.pendingProps,d=n.memoizedState,f=d.element,Vp(e,n),Bl(n,u,null,l);var k=n.memoizedState;if(u=k.element,d.isDehydrated)if(d={element:u,isDehydrated:!1,cache:k.cache,pendingSuspenseBoundaries:k.pendingSuspenseBoundaries,transitions:k.transitions},n.updateQueue.baseState=d,n.memoizedState=d,n.flags&256){f=zr(Error(r(423)),n),n=Ad(e,n,u,l,f);break e}else if(u!==f){f=zr(Error(r(424)),n),n=Ad(e,n,u,l,f);break e}else for(It=_n(n.stateNode.containerInfo.firstChild),_t=n,Fe=!0,Bt=null,l=Up(n,null,u,l),n.child=l;l;)l.flags=l.flags&-3|4096,l=l.sibling;else{if(Ir(),u===f){n=cn(e,n,l);break e}ft(e,n,u,l)}n=n.child}return n;case 5:return qp(n),e===null&&ts(n),u=n.type,f=n.pendingProps,d=e!==null?e.memoizedProps:null,k=f.children,qu(u,f)?k=null:d!==null&&qu(u,d)&&(n.flags|=32),_d(e,n),ft(e,n,k,l),n.child;case 6:return e===null&&ts(n),null;case 13:return Nd(e,n,l);case 4:return as(n,n.stateNode.containerInfo),u=n.pendingProps,e===null?n.child=Pr(n,null,u,l):ft(e,n,u,l),n.child;case 11:return u=n.type,f=n.pendingProps,f=n.elementType===u?f:Ut(u,f),Sd(e,n,u,f,l);case 7:return ft(e,n,n.pendingProps,l),n.child;case 8:return ft(e,n,n.pendingProps.children,l),n.child;case 12:return ft(e,n,n.pendingProps.children,l),n.child;case 10:e:{if(u=n.type._context,f=n.pendingProps,d=n.memoizedProps,k=f.value,be(Ml,u._currentValue),u._currentValue=k,d!==null)if(jt(d.value,k)){if(d.children===f.children&&!yt.current){n=cn(e,n,l);break e}}else for(d=n.child,d!==null&&(d.return=n);d!==null;){var S=d.dependencies;if(S!==null){k=d.child;for(var C=S.firstContext;C!==null;){if(C.context===u){if(d.tag===1){C=an(-1,l&-l),C.tag=2;var z=d.updateQueue;if(z!==null){z=z.shared;var B=z.pending;B===null?C.next=C:(C.next=B.next,B.next=C),z.pending=C}}d.lanes|=l,C=d.alternate,C!==null&&(C.lanes|=l),os(d.return,l,n),S.lanes|=l;break}C=C.next}}else if(d.tag===10)k=d.type===n.type?null:d.child;else if(d.tag===18){if(k=d.return,k===null)throw Error(r(341));k.lanes|=l,S=k.alternate,S!==null&&(S.lanes|=l),os(k,l,n),k=d.sibling}else k=d.child;if(k!==null)k.return=d;else for(k=d;k!==null;){if(k===n){k=null;break}if(d=k.sibling,d!==null){d.return=k.return,k=d;break}k=k.return}d=k}ft(e,n,f.children,l),n=n.child}return n;case 9:return f=n.type,u=n.pendingProps.children,Nr(n,l),f=Lt(f),u=u(f),n.flags|=1,ft(e,n,u,l),n.child;case 14:return u=n.type,f=Ut(u,n.pendingProps),f=Ut(u.type,f),Ed(e,n,u,f,l);case 15:return Cd(e,n,n.type,n.pendingProps,l);case 17:return u=n.type,f=n.pendingProps,f=n.elementType===u?f:Ut(u,f),Kl(e,n),n.tag=1,kt(u)?(e=!0,Rl(n)):e=!1,Nr(n,l),md(n,u,f),Ss(n,u,f,l),_s(null,n,u,!0,e,l);case 19:return zd(e,n,l);case 22:return Td(e,n,l)}throw Error(r(156,n.tag))};function nh(e,n){return bf(e,n)}function e0(e,n,l,u){this.tag=e,this.key=l,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=n,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=u,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ot(e,n,l,u){return new e0(e,n,l,u)}function qs(e){return e=e.prototype,!(!e||!e.isReactComponent)}function t0(e){if(typeof e=="function")return qs(e)?1:0;if(e!=null){if(e=e.$$typeof,e===G)return 11;if(e===H)return 14}return 2}function Mn(e,n){var l=e.alternate;return l===null?(l=Ot(e.tag,n,e.key,e.mode),l.elementType=e.elementType,l.type=e.type,l.stateNode=e.stateNode,l.alternate=e,e.alternate=l):(l.pendingProps=n,l.type=e.type,l.flags=0,l.subtreeFlags=0,l.deletions=null),l.flags=e.flags&14680064,l.childLanes=e.childLanes,l.lanes=e.lanes,l.child=e.child,l.memoizedProps=e.memoizedProps,l.memoizedState=e.memoizedState,l.updateQueue=e.updateQueue,n=e.dependencies,l.dependencies=n===null?null:{lanes:n.lanes,firstContext:n.firstContext},l.sibling=e.sibling,l.index=e.index,l.ref=e.ref,l}function oo(e,n,l,u,f,d){var k=2;if(u=e,typeof e=="function")qs(e)&&(k=1);else if(typeof e=="string")k=5;else e:switch(e){case oe:return ir(l.children,f,d,n);case he:k=8,f|=8;break;case ke:return e=Ot(12,l,n,f|2),e.elementType=ke,e.lanes=d,e;case J:return e=Ot(13,l,n,f),e.elementType=J,e.lanes=d,e;case Y:return e=Ot(19,l,n,f),e.elementType=Y,e.lanes=d,e;case ye:return uo(l,f,d,n);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case P:k=10;break e;case W:k=9;break e;case G:k=11;break e;case H:k=14;break e;case ce:k=16,u=null;break e}throw Error(r(130,e==null?e:typeof e,""))}return n=Ot(k,l,n,f),n.elementType=e,n.type=u,n.lanes=d,n}function ir(e,n,l,u){return e=Ot(7,e,u,n),e.lanes=l,e}function uo(e,n,l,u){return e=Ot(22,e,u,n),e.elementType=ye,e.lanes=l,e.stateNode={isHidden:!1},e}function Qs(e,n,l){return e=Ot(6,e,null,n),e.lanes=l,e}function Ys(e,n,l){return n=Ot(4,e.children!==null?e.children:[],e.key,n),n.lanes=l,n.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},n}function n0(e,n,l,u,f){this.tag=n,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=wu(0),this.expirationTimes=wu(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=wu(0),this.identifierPrefix=u,this.onRecoverableError=f,this.mutableSourceEagerHydrationData=null}function Ks(e,n,l,u,f,d,k,S,C){return e=new n0(e,n,l,S,C),n===1?(n=1,d===!0&&(n|=8)):n=0,d=Ot(3,null,null,n),e.current=d,d.stateNode=e,d.memoizedState={element:u,isDehydrated:l,cache:null,transitions:null,pendingSuspenseBoundaries:null},ss(d),e}function r0(e,n,l){var u=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:L,key:u==null?null:""+u,children:e,containerInfo:n,implementation:l}}function rh(e){if(!e)return Pn;e=e._reactInternals;e:{if(qn(e)!==e||e.tag!==1)throw Error(r(170));var n=e;do{switch(n.tag){case 3:n=n.stateNode.context;break e;case 1:if(kt(n.type)){n=n.stateNode.__reactInternalMemoizedMergedChildContext;break e}}n=n.return}while(n!==null);throw Error(r(171))}if(e.tag===1){var l=e.type;if(kt(l))return Rp(e,l,n)}return n}function ih(e,n,l,u,f,d,k,S,C){return e=Ks(l,u,!0,e,f,d,k,S,C),e.context=rh(null),l=e.current,u=pt(),f=bn(l),d=an(u,f),d.callback=n!=null?n:null,Rn(l,d,f),e.current.lanes=f,ui(e,f,u),wt(e,u),e}function so(e,n,l,u){var f=n.current,d=pt(),k=bn(f);return l=rh(l),n.context===null?n.context=l:n.pendingContext=l,n=an(d,k),n.payload={element:e},u=u===void 0?null:u,u!==null&&(n.callback=u),e=Rn(f,n,k),e!==null&&(Ht(e,f,k,d),jl(e,f,k)),k}function ao(e){return e=e.current,e.child?(e.child.tag===5,e.child.stateNode):null}function lh(e,n){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var l=e.retryLane;e.retryLane=l!==0&&l<n?l:n}}function Gs(e,n){lh(e,n),(e=e.alternate)&&lh(e,n)}function i0(){return null}var oh=typeof reportError=="function"?reportError:function(e){console.error(e)};function Xs(e){this._internalRoot=e}co.prototype.render=Xs.prototype.render=function(e){var n=this._internalRoot;if(n===null)throw Error(r(409));so(e,n,null,null)},co.prototype.unmount=Xs.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var n=e.containerInfo;tr(function(){so(null,e,null,null)}),n[rn]=null}};function co(e){this._internalRoot=e}co.prototype.unstable_scheduleHydration=function(e){if(e){var n=Vf();e={blockedOn:null,target:e,priority:n};for(var l=0;l<En.length&&n!==0&&n<En[l].priority;l++);En.splice(l,0,e),l===0&&qf(e)}};function Js(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function fo(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function uh(){}function l0(e,n,l,u,f){if(f){if(typeof u=="function"){var d=u;u=function(){var z=ao(k);d.call(z)}}var k=ih(n,u,e,0,null,!1,!1,"",uh);return e._reactRootContainer=k,e[rn]=k.current,wi(e.nodeType===8?e.parentNode:e),tr(),k}for(;f=e.lastChild;)e.removeChild(f);if(typeof u=="function"){var S=u;u=function(){var z=ao(C);S.call(z)}}var C=Ks(e,0,!1,null,null,!1,!1,"",uh);return e._reactRootContainer=C,e[rn]=C.current,wi(e.nodeType===8?e.parentNode:e),tr(function(){so(n,C,l,u)}),C}function po(e,n,l,u,f){var d=l._reactRootContainer;if(d){var k=d;if(typeof f=="function"){var S=f;f=function(){var C=ao(k);S.call(C)}}so(n,k,e,f)}else k=l0(l,n,e,f,u);return ao(k)}Uf=function(e){switch(e.tag){case 3:var n=e.stateNode;if(n.current.memoizedState.isDehydrated){var l=oi(n.pendingLanes);l!==0&&(Su(n,l|1),wt(n,Ve()),(Pe&6)===0&&(br=Ve()+500,An()))}break;case 13:tr(function(){var u=sn(e,1);if(u!==null){var f=pt();Ht(u,e,1,f)}}),Gs(e,1)}},Eu=function(e){if(e.tag===13){var n=sn(e,134217728);if(n!==null){var l=pt();Ht(n,e,134217728,l)}Gs(e,134217728)}},$f=function(e){if(e.tag===13){var n=bn(e),l=sn(e,n);if(l!==null){var u=pt();Ht(l,e,n,u)}Gs(e,n)}},Vf=function(){return ze},Hf=function(e,n){var l=ze;try{return ze=e,n()}finally{ze=l}},mu=function(e,n,l){switch(n){case"input":if(fr(e,l),n=l.name,l.type==="radio"&&n!=null){for(l=e;l.parentNode;)l=l.parentNode;for(l=l.querySelectorAll("input[name="+JSON.stringify(""+n)+'][type="radio"]'),n=0;n<l.length;n++){var u=l[n];if(u!==e&&u.form===e.form){var f=Al(u);if(!f)throw Error(r(90));nl(u),fr(u,f)}}}break;case"textarea":ll(e,l);break;case"select":n=l.value,n!=null&&kn(e,!!l.multiple,n,!1)}},Pf=Vs,Af=tr;var o0={usingClientEntryPoint:!1,Events:[Ci,Sr,Al,_f,If,Vs]},Fi={findFiberByHostInstance:Qn,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},u0={bundleType:Fi.bundleType,version:Fi.version,rendererPackageName:Fi.rendererPackageName,rendererConfig:Fi.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:ne.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=Lf(e),e===null?null:e.stateNode},findFiberByHostInstance:Fi.findFiberByHostInstance||i0,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__!="undefined"){var ho=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ho.isDisabled&&ho.supportsFiber)try{cl=ho.inject(u0),Yt=ho}catch{}}return ht.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=o0,ht.createPortal=function(e,n){var l=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Js(n))throw Error(r(200));return r0(e,n,null,l)},ht.createRoot=function(e,n){if(!Js(e))throw Error(r(299));var l=!1,u="",f=oh;return n!=null&&(n.unstable_strictMode===!0&&(l=!0),n.identifierPrefix!==void 0&&(u=n.identifierPrefix),n.onRecoverableError!==void 0&&(f=n.onRecoverableError)),n=Ks(e,1,!1,null,null,l,!1,u,f),e[rn]=n.current,wi(e.nodeType===8?e.parentNode:e),new Xs(n)},ht.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var n=e._reactInternals;if(n===void 0)throw typeof e.render=="function"?Error(r(188)):(e=Object.keys(e).join(","),Error(r(268,e)));return e=Lf(n),e=e===null?null:e.stateNode,e},ht.flushSync=function(e){return tr(e)},ht.hydrate=function(e,n,l){if(!fo(n))throw Error(r(200));return po(null,e,n,!0,l)},ht.hydrateRoot=function(e,n,l){if(!Js(e))throw Error(r(405));var u=l!=null&&l.hydratedSources||null,f=!1,d="",k=oh;if(l!=null&&(l.unstable_strictMode===!0&&(f=!0),l.identifierPrefix!==void 0&&(d=l.identifierPrefix),l.onRecoverableError!==void 0&&(k=l.onRecoverableError)),n=ih(n,null,e,1,l!=null?l:null,f,!1,d,k),e[rn]=n.current,wi(e),u)for(e=0;e<u.length;e++)l=u[e],f=l._getVersion,f=f(l._source),n.mutableSourceEagerHydrationData==null?n.mutableSourceEagerHydrationData=[l,f]:n.mutableSourceEagerHydrationData.push(l,f);return new co(n)},ht.render=function(e,n,l){if(!fo(n))throw Error(r(200));return po(null,e,n,!1,l)},ht.unmountComponentAtNode=function(e){if(!fo(e))throw Error(r(40));return e._reactRootContainer?(tr(function(){po(null,null,e,!1,function(){e._reactRootContainer=null,e[rn]=null})}),!0):!1},ht.unstable_batchedUpdates=Vs,ht.unstable_renderSubtreeIntoContainer=function(e,n,l,u){if(!fo(l))throw Error(r(200));if(e==null||e._reactInternals===void 0)throw Error(r(38));return po(e,n,l,!1,u)},ht.version="18.3.1-next-f1338f8080-20240426",ht}var oa;function hh(){if(oa)return yo.exports;oa=1;function t(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__=="undefined"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(i){console.error(i)}}return t(),yo.exports=dh(),yo.exports}var ua;function mh(){if(ua)return ji;ua=1;var t=hh();return ji.createRoot=t.createRoot,ji.hydrateRoot=t.hydrateRoot,ji}var gh=mh();const yh=':host{--iaw-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;--iaw-bg: #fafafa;--iaw-fg: #3f3f46;--iaw-border: #e5e5e5;--iaw-radius: 12px;--iaw-accent: #131315;--iaw-accent-fg: #ffffff;--iaw-muted: #6b7280;--iaw-error: #b42318;--iaw-query-bg: #dbeafe;--iaw-answer-bg: #ffffff;--iaw-max-height: 480px;--iaw-max-width: 100%;display:block;max-width:var(--iaw-max-width);font-family:var(--iaw-font);color:var(--iaw-fg);box-sizing:border-box}:host *,:host *:before,:host *:after{box-sizing:border-box}.widget{display:flex;flex-direction:column;gap:16px;padding:16px;background:var(--iaw-bg);border:1px solid var(--iaw-border);border-radius:var(--iaw-radius)}.widget-header{display:flex;align-items:center;gap:8px;margin:0}.widget-header-brand{display:inline-flex;align-items:center;gap:8px;min-width:0}.header-icon-wrap{display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;border-radius:6px;background:var(--iaw-accent);color:var(--iaw-accent-fg);flex-shrink:0}.header-icon{width:14px;height:14px}.widget-header-title{margin:0;font-size:16px;line-height:24px;font-weight:600;color:var(--iaw-fg)}.widget-badge{display:inline-flex;align-items:center;justify-content:center;padding:2px 8px;background:#f87171;color:#fff;font-size:12px;line-height:16px;font-weight:600;border-radius:9999px}.composer{display:flex;align-items:flex-end;gap:6px;width:100%;padding:8px;background:var(--iaw-answer-bg);border:1px solid var(--iaw-border);border-radius:var(--iaw-radius);transition:border-color .15s ease}.composer:focus-within{border-color:var(--iaw-accent)}.composer-input{appearance:none;flex:1 1 auto;min-width:0;display:block;padding:4px 0 4px 4px;border:none;outline:none;background:transparent;font-family:inherit;font-size:14px;line-height:20px;color:var(--iaw-fg);resize:none;overflow-y:auto;max-height:88px;scrollbar-width:thin}.composer-input:disabled{opacity:.6;cursor:not-allowed}.composer-input:placeholder-shown{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.composer-send{appearance:none;flex:0 0 auto;display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;padding:0;border:none;background:transparent;color:var(--iaw-accent);cursor:pointer;transition:background .15s ease,color .15s ease;font-family:inherit;transform:rotate(45deg)}.composer-send:hover:not(:disabled){background:#f0f0f0}.composer-send:disabled{color:#17171b59;cursor:not-allowed}.composer-send:focus-visible{outline:2px solid var(--iaw-accent);outline-offset:2px}.slot{display:flex;flex-direction:column;gap:12px;width:100%}.query{align-self:flex-end;max-width:80%;margin:0;padding:12px 20px;background:var(--iaw-query-bg);border-radius:var(--iaw-radius);color:var(--iaw-fg);font-size:14px;line-height:20px;text-align:left;overflow-wrap:anywhere}.answer{display:flex;flex-direction:column;gap:6px;padding:16px 20px;background:var(--iaw-answer-bg);border:1px solid var(--iaw-border);border-radius:var(--iaw-radius);font-size:14px;line-height:1.5;max-height:var(--iaw-max-height);overflow-y:auto;word-wrap:break-word;overflow-wrap:anywhere}.typing{display:inline-flex;align-items:center;gap:4px}.dot{width:6px;height:6px;border-radius:50%;background:var(--iaw-muted);animation:iaw-blink 1.4s infinite both}.dot:nth-child(2){animation-delay:.2s}.dot:nth-child(3){animation-delay:.4s}@keyframes iaw-blink{0%,80%,to{opacity:.3}40%{opacity:1}}.error{color:var(--iaw-error);font-size:13px;margin:0}.md>:first-child{margin-top:0}.md>:last-child{margin-bottom:0}.md p{margin:0 0 8px}.md h1,.md h2,.md h3,.md h4{margin:12px 0 6px;line-height:1.3}.md h1{font-size:1.3em}.md h2{font-size:1.2em}.md h3{font-size:1.1em}.md ul,.md ol{margin:0 0 8px;padding-left:20px}.md li{margin:2px 0}.md a{color:var(--iaw-accent);text-decoration:underline}.md code{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:.9em;background:#0000000f;padding:1px 4px;border-radius:4px}.md pre{background:#0000000f;padding:10px 12px;border-radius:8px;overflow-x:auto;margin:0 0 8px}.md pre code{background:none;padding:0}.md blockquote{margin:0 0 8px;padding-left:12px;border-left:3px solid var(--iaw-border);color:var(--iaw-muted)}.md table{border-collapse:collapse;width:100%;margin:0 0 8px;font-size:.95em}.md th,.md td{border:1px solid var(--iaw-border);padding:6px 8px;text-align:left}.md img{max-width:100%;height:auto}.iaw-config-error{padding:12px 14px;font-family:var(--iaw-font);font-size:13px;color:var(--iaw-error);border:1px solid var(--iaw-border);background:var(--iaw-bg)}';var $e=go();class kh{constructor(){Te(this,"listeners",new Map);Te(this,"onceListeners",new Map)}on(i,r){this.listeners.has(i)||this.listeners.set(i,new Set),this.listeners.get(i).add(r)}once(i,r){this.onceListeners.has(i)||this.onceListeners.set(i,new Set),this.onceListeners.get(i).add(r)}off(i,r){var o,s;if(!i){this.listeners.clear(),this.onceListeners.clear();return}if(!r){this.listeners.delete(i),this.onceListeners.delete(i);return}(o=this.listeners.get(i))==null||o.delete(r),(s=this.onceListeners.get(i))==null||s.delete(r)}emit(i,...r){const o=this.listeners.get(i);if(o)for(const a of o)try{a(...r)}catch{}const s=this.onceListeners.get(i);if(s){for(const a of s)try{a(...r)}catch{}this.onceListeners.delete(i)}}}class vh{constructor(i,r,o,s,a){Te(this,"url");Te(this,"headers");Te(this,"onEvent");Te(this,"onClose");Te(this,"logger");Te(this,"controller",null);Te(this,"reading",!1);this.url=i,this.headers=r,this.onEvent=o,this.onClose=s,this.logger=a}async connect(){if(this.reading){this.logger.warn("SSE already connected, ignoring duplicate connect()");return}this.controller=new AbortController,this.reading=!0;const i=await fetch(this.url,{method:"GET",headers:{...this.headers,Accept:"text/event-stream","Cache-Control":"no-cache"},signal:this.controller.signal});if(!i.ok){this.reading=!1;const r=await i.text().catch(()=>i.statusText);throw new Error(`SSE connection failed (${i.status}): ${r}`)}if(!i.body)throw this.reading=!1,new Error("SSE response has no body stream");this.readStream(i.body)}disconnect(){this.reading=!1,this.controller&&(this.controller.abort(),this.controller=null)}get isConnected(){return this.reading}async readStream(i){const r=i.getReader(),o=new TextDecoder;let s="";try{for(;this.reading;){const{value:a,done:c}=await r.read();if(c)break;s+=o.decode(a,{stream:!0}),s=s.replace(/\r\n/g,`
9
9
  `).replace(/\r/g,`
10
10
  `);let p;for(;(p=s.indexOf(`
11
11
 
12
12
  `))>=0;){const h=s.slice(0,p);s=s.slice(p+2),this.parseFrame(h)}}}catch(a){if(a instanceof DOMException&&a.name==="AbortError"){this.logger.debug("SSE stream aborted (intentional disconnect)");return}this.logger.error("SSE stream error:",a),this.reading=!1,this.onClose(a instanceof Error?a.message:"Unknown stream error");return}finally{r.releaseLock()}this.reading=!1,this.logger.info("SSE stream ended"),this.onClose("stream_ended")}parseFrame(i){let r="message";const o=[];for(const a of i.split(`
13
13
  `))if(a.startsWith("event:"))r=a.slice(6).trim();else if(a.startsWith("data:")){const c=a.slice(5);o.push(c.startsWith(" ")?c.slice(1):c)}else a.startsWith(":");if(o.length===0)return;const s=o.join(`
14
- `);this.logger.debug(`SSE event: ${r}`,s.slice(0,200)),this.onEvent(r,s)}}class dn extends Error{constructor(r,o="unknown",s){super(r,s);Te(this,"type");this.name="AgentforceClientError",this.type=o}}class Bi extends dn{constructor(r,o,s,a){super(r,"api",a);Te(this,"statusCode");Te(this,"responseBody");this.name="AgentforceApiError",this.statusCode=o,this.responseBody=s}}class Ui extends dn{constructor(r,o=1,s){super(r,"network",s);Te(this,"attemptsMade");this.name="AgentforceNetworkError",this.attemptsMade=o}}class Fr extends dn{constructor(i,r){super(i,"auth",r),this.name="AgentforceAuthError"}}class wh{constructor(i){Te(this,"enabled");Te(this,"prefix","[Agentforce]");this.enabled=i}info(i,...r){this.enabled&&console.log(`${this.prefix} ${i}`,...r)}warn(i,...r){this.enabled&&console.warn(`${this.prefix} ${i}`,...r)}error(i,...r){this.enabled&&console.error(`${this.prefix} ${i}`,...r)}debug(i,...r){this.enabled&&console.debug(`${this.prefix} ${i}`,...r)}}class aa extends kh{constructor({baseURL:r,orgId:o,esDeveloperName:s,options:a={}}){var p,h,m,y,g,w,v;super();Te(this,"baseURL");Te(this,"orgId");Te(this,"esDeveloperName");Te(this,"maxRetries");Te(this,"timeout");Te(this,"maxReconnectAttempts");Te(this,"reconnectDelay");Te(this,"platform");Te(this,"capabilitiesVersion");Te(this,"logger");Te(this,"_accessToken",null);Te(this,"_tokenExpiresAt",0);Te(this,"_conversationId",null);Te(this,"_messagingSessionId",null);Te(this,"_lastEventId",null);Te(this,"_isConnected",!1);Te(this,"sseReader",null);Te(this,"reconnectAttempts",0);Te(this,"reconnectTimeout",null);Te(this,"intentionalDisconnect",!1);this.baseURL=r.replace(/\/+$/,""),this.orgId=o,this.esDeveloperName=s;const c={maxRetries:(p=a.maxRetries)!=null?p:3,timeout:(h=a.timeout)!=null?h:15e3,maxReconnectAttempts:(m=a.maxReconnectAttempts)!=null?m:5,reconnectDelay:(y=a.reconnectDelay)!=null?y:2e3,enableLogging:(g=a.enableLogging)!=null?g:!1,platform:(w=a.platform)!=null?w:"Web",capabilitiesVersion:(v=a.capabilitiesVersion)!=null?v:"65"};this.maxRetries=c.maxRetries,this.timeout=c.timeout,this.maxReconnectAttempts=c.maxReconnectAttempts,this.reconnectDelay=c.reconnectDelay,this.platform=c.platform,this.capabilitiesVersion=c.capabilitiesVersion,this.logger=new wh(c.enableLogging),this.logger.info(`Client initialized for ${this.baseURL}`)}get isConnected(){return this._isConnected}get conversationId(){return this._conversationId}get messagingSessionId(){return this._messagingSessionId}get accessToken(){return this._accessToken}get tokenExpiresAt(){return this._tokenExpiresAt}get lastEventId(){return this._lastEventId}async connect(){this.intentionalDisconnect=!1,this.reconnectAttempts=0,this.logger.info("Connecting..."),this._accessToken=await this.fetchAccessToken(),this.logger.info("Access token acquired"),await this.openSSE()}async restore(r){if(!r.accessToken||!r.conversationId)throw new Fr("Cannot restore: missing accessToken or conversationId");const o=this.getTokenExpiry(r.accessToken);if(o<=Date.now())throw new Fr("Cannot restore: access token has expired");this.intentionalDisconnect=!1,this.reconnectAttempts=0;const s={accessToken:this._accessToken,tokenExpiresAt:this._tokenExpiresAt,conversationId:this._conversationId,lastEventId:this._lastEventId};this._accessToken=r.accessToken,this._tokenExpiresAt=o,this._conversationId=r.conversationId,r.lastEventId&&(this._lastEventId=r.lastEventId),this.logger.info(`Restoring session for conversation ${r.conversationId}`);try{await this.openSSE()}catch(a){throw this._accessToken=s.accessToken,this._tokenExpiresAt=s.tokenExpiresAt,this._conversationId=s.conversationId,this._lastEventId=s.lastEventId,a}}disconnect(){this.intentionalDisconnect=!0,this.clearReconnectTimer(),this.closeSSE(),this._isConnected=!1,this.logger.info("Disconnected")}reconnect(){this._isConnected||(this.intentionalDisconnect=!1,this.reconnectAttempts=0,this.attemptReconnect())}async createConversation(r){this.assertConnected();const o=crypto.randomUUID(),s={conversationId:o,esDeveloperName:this.esDeveloperName,routingAttributes:r!=null?r:{}};return await this.executeRequest("POST","/iamessage/api/v2/conversation",s),this._conversationId=o,this.logger.info(`Conversation created: ${o}`),o}async sendMessage(r,o){if(this.assertConnected(),!this._conversationId)throw new dn("No active conversation. Call createConversation() first.","unknown");const s=crypto.randomUUID(),a={message:{id:s,messageType:"StaticContentMessage",staticContent:{formatType:"Text",text:r}},esDeveloperName:this.esDeveloperName};o!=null&&o.length&&(a.context=[{entryType:"SessionContext",id:crypto.randomUUID(),sessionContext:{contextType:"SessionContextSet",contextVariables:[...o]}}]);try{const c=await this.executeRequest("POST",`/iamessage/api/v2/conversation/${this._conversationId}/message`,a);c!=null&&c.warning&&this.logger.warn(`Message accepted with context warning ${c.warning.warningCode}: `+c.warning.warningMessage)}catch(c){throw c instanceof Bi&&c.statusCode===400||(this.logger.error(`sendMessage failed — resetting session: ${c instanceof Error?c.message:String(c)}`),this._conversationId=null,this.disconnect()),c}this.logger.debug(`Message sent: ${s}`)}async endConversation(){if(!this._conversationId||!this._accessToken)return;const r=this._conversationId;this._conversationId=null,this._messagingSessionId=null;try{await this.executeRequest("DELETE",`/iamessage/api/v2/conversation/${r}?esDeveloperName=${encodeURIComponent(this.esDeveloperName)}`),this.logger.info(`Conversation ended: ${r}`)}catch(o){this.logger.warn(`Failed to end conversation (best effort): ${o instanceof Error?o.message:String(o)}`)}}async openSSE(){this.closeSSE();const r=`${this.baseURL}/eventrouter/v1/sse`,o={Authorization:`Bearer ${this._accessToken}`,"X-Org-Id":this.orgId};this.sseReader=new vh(r,o,(s,a)=>this.handleSSEEvent(s,a),s=>this.handleSSEClose(s),this.logger),await this.sseReader.connect(),this._isConnected=!0,this.emit("connected"),this.logger.info("SSE stream connected")}closeSSE(){this.sseReader&&(this.sseReader.disconnect(),this.sseReader=null)}handleSSEClose(r){this._isConnected=!1,this.emit("disconnected",{reason:r}),this.intentionalDisconnect||this.attemptReconnect()}attemptReconnect(){if(this.reconnectAttempts>=this.maxReconnectAttempts){this.logger.error(`Max reconnect attempts (${this.maxReconnectAttempts}) reached.`),this.emit("error",{code:"MAX_RECONNECT",message:`Failed to reconnect after ${this.maxReconnectAttempts} attempts`,recoverable:!1});return}this.reconnectAttempts++;const r=Math.random()*500,o=Math.min(this.reconnectDelay*Math.pow(2,this.reconnectAttempts-1)+r,3e4);this.logger.info(`Reconnecting in ${o.toFixed(0)}ms (attempt ${this.reconnectAttempts}/${this.maxReconnectAttempts})...`),this.emit("reconnecting",{attempt:this.reconnectAttempts,maxAttempts:this.maxReconnectAttempts}),this.reconnectTimeout=setTimeout(async()=>{try{if(this.intentionalDisconnect)return;if(!(this._accessToken&&Date.now()<this._tokenExpiresAt)){this.logger.error("Access token expired — session cannot be resumed"),this.emit("error",{code:"SESSION_EXPIRED",message:"Session expired. Call connect() to start a new session.",recoverable:!1}),this._conversationId=null;return}if(this.logger.info("Reusing existing access token for SSE reconnection"),this.intentionalDisconnect)return;await this.openSSE(),this.reconnectAttempts=0,this.logger.info("Reconnected successfully")}catch(s){if(this.intentionalDisconnect)return;const a=s instanceof Error?s.message:String(s);if(a.includes("(401)")){this.logger.error("SSE rejected token (401) — session expired"),this.emit("error",{code:"SESSION_EXPIRED",message:"Session expired. Call connect() to start a new session.",recoverable:!1}),this._conversationId=null;return}this.logger.error(`Reconnect attempt ${this.reconnectAttempts} failed: ${a}`),this.attemptReconnect()}},o)}clearReconnectTimer(){this.reconnectTimeout&&(clearTimeout(this.reconnectTimeout),this.reconnectTimeout=null)}handleSSEEvent(r,o){if(r==="ping")return;let s;try{s=JSON.parse(o)}catch{this.logger.debug(`Non-JSON SSE event (${r}): ${o.slice(0,100)}`);return}switch(r){case"CONVERSATION_MESSAGE":this.handleConversationMessage(s);break;case"CONVERSATION_STREAMING_TOKEN":this.handleStreamingToken(s);break;case"CONVERSATION_TYPING_STARTED_INDICATOR":this.handleTypingStarted(s);break;case"CONVERSATION_TYPING_STOPPED_INDICATOR":this.handleTypingStopped(s);break;case"CONVERSATION_SESSION_STATUS_CHANGED":this.handleSessionStatusChanged(s);break;default:this.logger.debug(`Unhandled SSE event type: ${r}`);break}}handleConversationMessage(r){var h;const o=r.conversationEntry;if(!o)return;const s=((h=o.sender)==null?void 0:h.role)||"";if(s==="EndUser"||s==="Customer")return;const a=this.parseEntryPayload(o),c=this.getNestedValue(a,"abstractMessage"),p=this.getNestedString(c,"staticContent","text")||this.getNestedString(c,"content","text")||"";p&&this.emit("message",{conversationId:this._conversationId||"",messageId:o.identifier||"",content:p,sender:{role:s,name:o.senderDisplayName},timestamp:o.transcriptedTimestamp||new Date().toISOString(),raw:a})}handleStreamingToken(r){let o="",s,a,c;if(r.conversationEntry){const p=this.parseEntryPayload(r.conversationEntry),h=this.getNestedValue(p,"streamingToken");o=this.getNestedString(h,"token","text")||this.getNestedString(h,"token","content")||"";const m=this.getNestedValue(h,"sequenceNumber");typeof m=="number"&&(s=m);const y=this.getNestedString(h,"targetMessageIdentifier");y&&(a=y);const g=this.getNestedString(h,"tokenType");g&&(c=g)}if(o||(o=r.token||r.text||""),!o){this.logger.warn("STREAMING_TOKEN received but no token text could be extracted — payload shape may have changed");return}this.emit("streaming_token",{conversationId:this._conversationId||"",token:String(o),...s!==void 0?{sequenceNumber:s}:{},...a?{targetMessageId:a}:{},...c?{tokenType:c}:{}})}handleTypingStarted(r){var o;this.emit("typing_started",{conversationId:this._conversationId||"",participant:(o=r.conversationEntry)!=null&&o.sender?{role:r.conversationEntry.sender.role||"",name:r.conversationEntry.senderDisplayName}:void 0})}handleTypingStopped(r){var o;this.emit("typing_stopped",{conversationId:this._conversationId||"",participant:(o=r.conversationEntry)!=null&&o.sender?{role:r.conversationEntry.sender.role||"",name:r.conversationEntry.senderDisplayName}:void 0})}handleSessionStatusChanged(r){const o=r.conversationEntry;if(!o)return;const a=this.parseEntryPayload(o).sessionId;typeof a=="string"&&a.startsWith("0Mw")&&(this._messagingSessionId=a,this.logger.info(`MessagingSession ID captured: ${a}`),this.emit("session_ready",{conversationId:this._conversationId||"",messagingSessionId:a}))}async fetchAccessToken(){const r={orgId:this.orgId,esDeveloperName:this.esDeveloperName,capabilitiesVersion:this.capabilitiesVersion,platform:this.platform},o=await this.executeRequest("POST","/iamessage/api/v2/authorization/unauthenticated/access-token",r,{useAuth:!1});if(!o.accessToken)throw new Fr("Token response missing accessToken field");return this._tokenExpiresAt=this.getTokenExpiry(o.accessToken),o.lastEventId&&(this._lastEventId=o.lastEventId),o.accessToken}async executeRequest(r,o,s,a){const c=(a==null?void 0:a.useAuth)!==!1;let p=0;for(;;){let h;try{const m=new AbortController;h=setTimeout(()=>m.abort(),(a==null?void 0:a.timeout)||this.timeout);const y={"Content-Type":"application/json",...a==null?void 0:a.headers};c&&this._accessToken&&(y.Authorization=`Bearer ${this._accessToken}`);const g={method:r,headers:y,signal:(a==null?void 0:a.signal)||m.signal};s&&r==="POST"&&(g.body=JSON.stringify(s));const w=await fetch(`${this.baseURL}${o}`,g);if(clearTimeout(h),!w.ok){const v=await w.text().catch(()=>w.statusText);if(w.status===401&&c&&p===0){if(this._conversationId)throw this.logger.warn("Got 401 with active conversation — cannot auto-refresh (would orphan conversation)"),new Fr(`Request ${r} ${o} failed (401): session expired. Call connect() to start a new session.`);this.logger.info("Got 401 — refreshing token and retrying..."),this._accessToken=await this.fetchAccessToken(),p++;continue}throw new Bi(`Request ${r} ${o} failed (${w.status}): ${v}`,w.status,v)}return w.status===204||r==="DELETE"?{}:w.text().then(v=>v?JSON.parse(v):null)}catch(m){if(clearTimeout(h),m instanceof dn)throw m;if(m instanceof DOMException&&m.name==="AbortError")throw new Ui("Request timeout exceeded",p+1,{cause:m});if(m instanceof TypeError){if(p<this.maxRetries){p++;const y=Math.random()*100,g=300*Math.pow(2,p-1)+y;this.logger.info(`Network error, retrying (${p}/${this.maxRetries}) in ${g.toFixed(0)}ms...`),await new Promise(w=>setTimeout(w,g));continue}throw new Ui(`Network error: ${m.message}`,p,{cause:m})}throw new dn(`Unexpected error: ${m instanceof Error?m.message:String(m)}`,"unknown",{cause:m instanceof Error?m:void 0})}}}assertConnected(){if(!this._isConnected||!this._accessToken)throw new dn("Client is not connected. Call connect() first.","unknown")}getTokenExpiry(r){var o;try{const s=r.split(".")[1];return((o=JSON.parse(this.base64UrlDecode(s)).exp)!=null?o:0)*1e3}catch{return 0}}base64UrlDecode(r){let o=r.replace(/-/g,"+").replace(/_/g,"/");const s=o.length%4;return s&&(o+="=".repeat(4-s)),atob(o)}parseEntryPayload(r){if(!r.entryPayload)return{};if(typeof r.entryPayload=="string")try{return JSON.parse(r.entryPayload)}catch{return{}}return r.entryPayload}getNestedValue(r,...o){let s=r;for(const a of o){if(s==null||typeof s!="object")return;s=s[a]}return s}getNestedString(r,...o){const s=this.getNestedValue(r,...o);return typeof s=="string"?s:""}}const ca=je.createContext(null);function wo(){const t=je.useContext(ca);if(!t)throw new Error("useWidget must be used within a <WidgetProvider>");return t}function fa(t,i,r,o,s){if(t.conversationId!=null)return Promise.resolve();if(i.current)return i.current;r==null||r();const a={promise:null};return a.promise=(async()=>{try{if(o&&!t.isConnected&&await o.tryRestore())return;t.isConnected||await t.connect(),await t.createConversation(),s==null||s(),o==null||o.save()}finally{i.current===a.promise&&(i.current=null)}})(),i.current=a.promise,a.promise}function pa(t){return t.startsWith("{")&&t.endsWith("}")||t.startsWith("[")&&t.endsWith("]")}function $i(t){if(typeof t=="string")return t;if(Array.isArray(t)){const i=t.map($i).filter(r=>typeof r=="string"&&r.trim().length>0);return i.length?i.join(`
14
+ `);this.logger.debug(`SSE event: ${r}`,s.slice(0,200)),this.onEvent(r,s)}}class dn extends Error{constructor(r,o="unknown",s){super(r,s);Te(this,"type");this.name="AgentforceClientError",this.type=o}}class Bi extends dn{constructor(r,o,s,a){super(r,"api",a);Te(this,"statusCode");Te(this,"responseBody");this.name="AgentforceApiError",this.statusCode=o,this.responseBody=s}}class Ui extends dn{constructor(r,o=1,s){super(r,"network",s);Te(this,"attemptsMade");this.name="AgentforceNetworkError",this.attemptsMade=o}}class Fr extends dn{constructor(i,r){super(i,"auth",r),this.name="AgentforceAuthError"}}class xh{constructor(i){Te(this,"enabled");Te(this,"prefix","[Agentforce]");this.enabled=i}info(i,...r){this.enabled&&console.log(`${this.prefix} ${i}`,...r)}warn(i,...r){this.enabled&&console.warn(`${this.prefix} ${i}`,...r)}error(i,...r){this.enabled&&console.error(`${this.prefix} ${i}`,...r)}debug(i,...r){this.enabled&&console.debug(`${this.prefix} ${i}`,...r)}}class sa extends kh{constructor({baseURL:r,orgId:o,esDeveloperName:s,options:a={}}){var p,h,m,y,g,x,v;super();Te(this,"baseURL");Te(this,"orgId");Te(this,"esDeveloperName");Te(this,"maxRetries");Te(this,"timeout");Te(this,"maxReconnectAttempts");Te(this,"reconnectDelay");Te(this,"platform");Te(this,"capabilitiesVersion");Te(this,"logger");Te(this,"_accessToken",null);Te(this,"_tokenExpiresAt",0);Te(this,"_conversationId",null);Te(this,"_messagingSessionId",null);Te(this,"_lastEventId",null);Te(this,"_isConnected",!1);Te(this,"sseReader",null);Te(this,"reconnectAttempts",0);Te(this,"reconnectTimeout",null);Te(this,"intentionalDisconnect",!1);this.baseURL=r.replace(/\/+$/,""),this.orgId=o,this.esDeveloperName=s;const c={maxRetries:(p=a.maxRetries)!=null?p:3,timeout:(h=a.timeout)!=null?h:15e3,maxReconnectAttempts:(m=a.maxReconnectAttempts)!=null?m:5,reconnectDelay:(y=a.reconnectDelay)!=null?y:2e3,enableLogging:(g=a.enableLogging)!=null?g:!1,platform:(x=a.platform)!=null?x:"Web",capabilitiesVersion:(v=a.capabilitiesVersion)!=null?v:"1"};this.maxRetries=c.maxRetries,this.timeout=c.timeout,this.maxReconnectAttempts=c.maxReconnectAttempts,this.reconnectDelay=c.reconnectDelay,this.platform=c.platform,this.capabilitiesVersion=c.capabilitiesVersion,this.logger=new xh(c.enableLogging),this.logger.info(`Client initialized for ${this.baseURL}`)}get isConnected(){return this._isConnected}get conversationId(){return this._conversationId}get messagingSessionId(){return this._messagingSessionId}get accessToken(){return this._accessToken}get tokenExpiresAt(){return this._tokenExpiresAt}get lastEventId(){return this._lastEventId}async connect(){this.intentionalDisconnect=!1,this.reconnectAttempts=0,this.logger.info("Connecting..."),this._accessToken=await this.fetchAccessToken(),this.logger.info("Access token acquired"),await this.openSSE()}async restore(r){if(!r.accessToken||!r.conversationId)throw new Fr("Cannot restore: missing accessToken or conversationId");const o=this.getTokenExpiry(r.accessToken);if(o<=Date.now())throw new Fr("Cannot restore: access token has expired");this.intentionalDisconnect=!1,this.reconnectAttempts=0;const s={accessToken:this._accessToken,tokenExpiresAt:this._tokenExpiresAt,conversationId:this._conversationId,lastEventId:this._lastEventId};this._accessToken=r.accessToken,this._tokenExpiresAt=o,this._conversationId=r.conversationId,r.lastEventId&&(this._lastEventId=r.lastEventId),this.logger.info(`Restoring session for conversation ${r.conversationId}`);try{await this.openSSE()}catch(a){throw this._accessToken=s.accessToken,this._tokenExpiresAt=s.tokenExpiresAt,this._conversationId=s.conversationId,this._lastEventId=s.lastEventId,a}}disconnect(){this.intentionalDisconnect=!0,this.clearReconnectTimer(),this.closeSSE(),this._isConnected=!1,this.logger.info("Disconnected")}reconnect(){this._isConnected||(this.intentionalDisconnect=!1,this.reconnectAttempts=0,this.attemptReconnect())}async createConversation(r){this.assertConnected();const o=crypto.randomUUID(),s={conversationId:o,esDeveloperName:this.esDeveloperName,routingAttributes:r!=null?r:{}};return await this.executeRequest("POST","/iamessage/api/v2/conversation",s),this._conversationId=o,this.logger.info(`Conversation created: ${o}`),o}async sendMessage(r){if(this.assertConnected(),!this._conversationId)throw new dn("No active conversation. Call createConversation() first.","unknown");const o=crypto.randomUUID(),s={message:{id:o,messageType:"StaticContentMessage",staticContent:{formatType:"Text",text:r}},esDeveloperName:this.esDeveloperName};try{await this.executeRequest("POST",`/iamessage/api/v2/conversation/${this._conversationId}/message`,s)}catch(a){throw a instanceof Bi&&a.statusCode===400||(this.logger.error(`sendMessage failed — resetting session: ${a instanceof Error?a.message:String(a)}`),this._conversationId=null,this.disconnect()),a}this.logger.debug(`Message sent: ${o}`)}async endConversation(){if(!this._conversationId||!this._accessToken)return;const r=this._conversationId;this._conversationId=null,this._messagingSessionId=null;try{await this.executeRequest("DELETE",`/iamessage/api/v2/conversation/${r}?esDeveloperName=${encodeURIComponent(this.esDeveloperName)}`),this.logger.info(`Conversation ended: ${r}`)}catch(o){this.logger.warn(`Failed to end conversation (best effort): ${o instanceof Error?o.message:String(o)}`)}}async openSSE(){this.closeSSE();const r=`${this.baseURL}/eventrouter/v1/sse`,o={Authorization:`Bearer ${this._accessToken}`,"X-Org-Id":this.orgId};this.sseReader=new vh(r,o,(s,a)=>this.handleSSEEvent(s,a),s=>this.handleSSEClose(s),this.logger),await this.sseReader.connect(),this._isConnected=!0,this.emit("connected"),this.logger.info("SSE stream connected")}closeSSE(){this.sseReader&&(this.sseReader.disconnect(),this.sseReader=null)}handleSSEClose(r){this._isConnected=!1,this.emit("disconnected",{reason:r}),this.intentionalDisconnect||this.attemptReconnect()}attemptReconnect(){if(this.reconnectAttempts>=this.maxReconnectAttempts){this.logger.error(`Max reconnect attempts (${this.maxReconnectAttempts}) reached.`),this.emit("error",{code:"MAX_RECONNECT",message:`Failed to reconnect after ${this.maxReconnectAttempts} attempts`,recoverable:!1});return}this.reconnectAttempts++;const r=Math.random()*500,o=Math.min(this.reconnectDelay*Math.pow(2,this.reconnectAttempts-1)+r,3e4);this.logger.info(`Reconnecting in ${o.toFixed(0)}ms (attempt ${this.reconnectAttempts}/${this.maxReconnectAttempts})...`),this.emit("reconnecting",{attempt:this.reconnectAttempts,maxAttempts:this.maxReconnectAttempts}),this.reconnectTimeout=setTimeout(async()=>{try{if(this.intentionalDisconnect)return;if(!(this._accessToken&&Date.now()<this._tokenExpiresAt)){this.logger.error("Access token expired — session cannot be resumed"),this.emit("error",{code:"SESSION_EXPIRED",message:"Session expired. Call connect() to start a new session.",recoverable:!1}),this._conversationId=null;return}if(this.logger.info("Reusing existing access token for SSE reconnection"),this.intentionalDisconnect)return;await this.openSSE(),this.reconnectAttempts=0,this.logger.info("Reconnected successfully")}catch(s){if(this.intentionalDisconnect)return;const a=s instanceof Error?s.message:String(s);if(a.includes("(401)")){this.logger.error("SSE rejected token (401) — session expired"),this.emit("error",{code:"SESSION_EXPIRED",message:"Session expired. Call connect() to start a new session.",recoverable:!1}),this._conversationId=null;return}this.logger.error(`Reconnect attempt ${this.reconnectAttempts} failed: ${a}`),this.attemptReconnect()}},o)}clearReconnectTimer(){this.reconnectTimeout&&(clearTimeout(this.reconnectTimeout),this.reconnectTimeout=null)}handleSSEEvent(r,o){if(r==="ping")return;let s;try{s=JSON.parse(o)}catch{this.logger.debug(`Non-JSON SSE event (${r}): ${o.slice(0,100)}`);return}switch(r){case"CONVERSATION_MESSAGE":this.handleConversationMessage(s);break;case"CONVERSATION_STREAMING_TOKEN":this.handleStreamingToken(s);break;case"CONVERSATION_TYPING_STARTED_INDICATOR":this.handleTypingStarted(s);break;case"CONVERSATION_TYPING_STOPPED_INDICATOR":this.handleTypingStopped(s);break;case"CONVERSATION_SESSION_STATUS_CHANGED":this.handleSessionStatusChanged(s);break;default:this.logger.debug(`Unhandled SSE event type: ${r}`);break}}handleConversationMessage(r){var h;const o=r.conversationEntry;if(!o)return;const s=((h=o.sender)==null?void 0:h.role)||"";if(s==="EndUser"||s==="Customer")return;const a=this.parseEntryPayload(o),c=this.getNestedValue(a,"abstractMessage"),p=this.getNestedString(c,"staticContent","text")||this.getNestedString(c,"content","text")||"";p&&this.emit("message",{conversationId:this._conversationId||"",messageId:o.identifier||"",content:p,sender:{role:s,name:o.senderDisplayName},timestamp:o.transcriptedTimestamp||new Date().toISOString(),raw:a})}handleStreamingToken(r){let o="",s,a,c;if(r.conversationEntry){const p=this.parseEntryPayload(r.conversationEntry),h=this.getNestedValue(p,"streamingToken");o=this.getNestedString(h,"token","text")||this.getNestedString(h,"token","content")||"";const m=this.getNestedValue(h,"sequenceNumber");typeof m=="number"&&(s=m);const y=this.getNestedString(h,"targetMessageIdentifier");y&&(a=y);const g=this.getNestedString(h,"tokenType");g&&(c=g)}if(o||(o=r.token||r.text||""),!o){this.logger.warn("STREAMING_TOKEN received but no token text could be extracted — payload shape may have changed");return}this.emit("streaming_token",{conversationId:this._conversationId||"",token:String(o),...s!==void 0?{sequenceNumber:s}:{},...a?{targetMessageId:a}:{},...c?{tokenType:c}:{}})}handleTypingStarted(r){var o;this.emit("typing_started",{conversationId:this._conversationId||"",participant:(o=r.conversationEntry)!=null&&o.sender?{role:r.conversationEntry.sender.role||"",name:r.conversationEntry.senderDisplayName}:void 0})}handleTypingStopped(r){var o;this.emit("typing_stopped",{conversationId:this._conversationId||"",participant:(o=r.conversationEntry)!=null&&o.sender?{role:r.conversationEntry.sender.role||"",name:r.conversationEntry.senderDisplayName}:void 0})}handleSessionStatusChanged(r){const o=r.conversationEntry;if(!o)return;const a=this.parseEntryPayload(o).sessionId;typeof a=="string"&&a.startsWith("0Mw")&&(this._messagingSessionId=a,this.logger.info(`MessagingSession ID captured: ${a}`),this.emit("session_ready",{conversationId:this._conversationId||"",messagingSessionId:a}))}async fetchAccessToken(){const r={orgId:this.orgId,esDeveloperName:this.esDeveloperName,capabilitiesVersion:this.capabilitiesVersion,platform:this.platform},o=await this.executeRequest("POST","/iamessage/api/v2/authorization/unauthenticated/access-token",r,{useAuth:!1});if(!o.accessToken)throw new Fr("Token response missing accessToken field");return this._tokenExpiresAt=this.getTokenExpiry(o.accessToken),o.lastEventId&&(this._lastEventId=o.lastEventId),o.accessToken}async executeRequest(r,o,s,a){const c=(a==null?void 0:a.useAuth)!==!1;let p=0;for(;;){let h;try{const m=new AbortController;h=setTimeout(()=>m.abort(),(a==null?void 0:a.timeout)||this.timeout);const y={"Content-Type":"application/json",...a==null?void 0:a.headers};c&&this._accessToken&&(y.Authorization=`Bearer ${this._accessToken}`);const g={method:r,headers:y,signal:(a==null?void 0:a.signal)||m.signal};s&&r==="POST"&&(g.body=JSON.stringify(s));const x=await fetch(`${this.baseURL}${o}`,g);if(clearTimeout(h),!x.ok){const v=await x.text().catch(()=>x.statusText);if(x.status===401&&c&&p===0){if(this._conversationId)throw this.logger.warn("Got 401 with active conversation — cannot auto-refresh (would orphan conversation)"),new Fr(`Request ${r} ${o} failed (401): session expired. Call connect() to start a new session.`);this.logger.info("Got 401 — refreshing token and retrying..."),this._accessToken=await this.fetchAccessToken(),p++;continue}throw new Bi(`Request ${r} ${o} failed (${x.status}): ${v}`,x.status,v)}return x.status===204||r==="DELETE"?{}:x.text().then(v=>v?JSON.parse(v):null)}catch(m){if(clearTimeout(h),m instanceof dn)throw m;if(m instanceof DOMException&&m.name==="AbortError")throw new Ui("Request timeout exceeded",p+1,{cause:m});if(m instanceof TypeError){if(p<this.maxRetries){p++;const y=Math.random()*100,g=300*Math.pow(2,p-1)+y;this.logger.info(`Network error, retrying (${p}/${this.maxRetries}) in ${g.toFixed(0)}ms...`),await new Promise(x=>setTimeout(x,g));continue}throw new Ui(`Network error: ${m.message}`,p,{cause:m})}throw new dn(`Unexpected error: ${m instanceof Error?m.message:String(m)}`,"unknown",{cause:m instanceof Error?m:void 0})}}}assertConnected(){if(!this._isConnected||!this._accessToken)throw new dn("Client is not connected. Call connect() first.","unknown")}getTokenExpiry(r){var o;try{const s=r.split(".")[1];return((o=JSON.parse(this.base64UrlDecode(s)).exp)!=null?o:0)*1e3}catch{return 0}}base64UrlDecode(r){let o=r.replace(/-/g,"+").replace(/_/g,"/");const s=o.length%4;return s&&(o+="=".repeat(4-s)),atob(o)}parseEntryPayload(r){if(!r.entryPayload)return{};if(typeof r.entryPayload=="string")try{return JSON.parse(r.entryPayload)}catch{return{}}return r.entryPayload}getNestedValue(r,...o){let s=r;for(const a of o){if(s==null||typeof s!="object")return;s=s[a]}return s}getNestedString(r,...o){const s=this.getNestedValue(r,...o);return typeof s=="string"?s:""}}const aa=$e.createContext(null);function ca(){const t=$e.useContext(aa);if(!t)throw new Error("useWidget must be used within a <WidgetProvider>");return t}function fa(t,i,r,o,s){if(t.conversationId!=null)return Promise.resolve();if(i.current)return i.current;r==null||r();const a={promise:null};return a.promise=(async()=>{try{if(o&&!t.isConnected&&await o.tryRestore())return;t.isConnected||await t.connect(),await t.createConversation(),s==null||s(),o==null||o.save()}finally{i.current===a.promise&&(i.current=null)}})(),i.current=a.promise,a.promise}function pa(t){return t.startsWith("{")&&t.endsWith("}")||t.startsWith("[")&&t.endsWith("]")}function $i(t){if(typeof t=="string")return t;if(Array.isArray(t)){const i=t.map($i).filter(r=>typeof r=="string"&&r.trim().length>0);return i.length?i.join(`
15
15
 
16
- `):null}if(t&&typeof t=="object"){const i=t;if(Array.isArray(i.response))return $i(i.response);const r=i.data;if(r&&typeof r=="object"){const o=r.content;if(typeof o=="string")return o}return typeof i.content=="string"?i.content:typeof i.text=="string"?i.text:null}return null}function xh(t){var r;if(!t)return"";const i=t.trim();if(!pa(i))return t;try{return(r=$i(JSON.parse(i)))!=null?r:""}catch{return t}}function Sh(t){var r;if(!t)return"";const i=t.trim();if(!pa(i))return t;try{return(r=$i(JSON.parse(i)))!=null?r:t}catch{return t}}const Eh={status:"idle",answer:null,streamingText:"",agentTyping:!1,error:null,lastQuestion:null,connectionReady:!0,pdpQuestions:[],askedQuestions:[]};function Ch(t,i){switch(i.type){case"SET_STATUS":return{...t,status:i.status,...i.status==="connected"||i.status==="connecting"?{error:null}:{}};case"ASK_QUESTION":return{...t,answer:null,streamingText:"",error:null,lastQuestion:i.question,askedQuestions:t.askedQuestions.includes(i.question)?t.askedQuestions:[...t.askedQuestions,i.question]};case"APPEND_STREAMING_TOKEN":return{...t,streamingText:t.streamingText+xh(i.token)};case"SET_ANSWER":return{...t,answer:Sh(i.content),streamingText:"",agentTyping:!1};case"SET_AGENT_TYPING":return{...t,agentTyping:i.typing};case"SET_ERROR":return{...t,error:i.error,...i.error?{lastQuestion:null,answer:null,streamingText:"",agentTyping:!1}:{}};case"SET_CONNECTION_READY":return{...t,connectionReady:i.ready};case"RESET_CONVERSATION":return{...t,lastQuestion:null,answer:null,streamingText:"",agentTyping:!1,error:null,askedQuestions:[]};case"SET_PDP_QUESTIONS":return{...t,pdpQuestions:i.questions};default:return t}}const Th="iaw:sess";function da(t,i){return`${Th}:${t}:${i}`}function xo(){try{return typeof localStorage=="undefined"?null:localStorage}catch{return null}}function _h(t){var i;try{const r=t.split(".")[1];return r?((i=JSON.parse(Ih(r)).exp)!=null?i:0)*1e3:0}catch{return 0}}function Ih(t){let i=t.replace(/-/g,"+").replace(/_/g,"/");const r=i.length%4;return r&&(i+="=".repeat(4-r)),atob(i)}function Ph(t){if(typeof t!="object"||t===null)return!1;const i=t;return typeof i.accessToken=="string"&&i.accessToken.length>0&&typeof i.conversationId=="string"&&i.conversationId.length>0&&(i.lastEventId===null||typeof i.lastEventId=="string")}function Nh(t,i=Date.now(),r){const o=xo();if(!o)return r==null||r("no-storage"),null;let s;try{s=o.getItem(t)}catch{return r==null||r("read-threw"),null}if(!s)return r==null||r("absent"),null;let a;try{a=JSON.parse(s)}catch{return Zt(t),r==null||r("malformed"),null}return Ph(a)?_h(a.accessToken)<=i?(Zt(t),r==null||r("token-expired"),null):a:(Zt(t),r==null||r("wrong-shape"),null)}function Ah(t,i){const r=xo();if(r)try{r.setItem(t,JSON.stringify(i))}catch{}}function Zt(t){const i=xo();if(i)try{i.removeItem(t)}catch{}}const bh="1.0.0",Rh=[{productIdPattern:"/product/([^/?#]+)"}];function ha(t,i){var s,a,c;const{productIdParam:r,productIdPattern:o}=i;if(r)try{const p=(s=new URLSearchParams(t.search).get(r))==null?void 0:s.trim();if(p)return p}catch{}if(o)try{const p=(c=(a=new RegExp(o).exec(t.pathname))==null?void 0:a[1])==null?void 0:c.trim();if(p)return decodeURIComponent(p)}catch{}return null}function zh(){var i,r;return typeof document=="undefined"?null:((r=(i=document.querySelector(".product-detail[data-pid]"))==null?void 0:i.dataset.pid)==null?void 0:r.trim())||null}function So(t,i){const{productIdParam:r,productIdPattern:o}=i;if(!!(r||o))return ha(t,i);for(const a of Rh){const c=ha(t,a);if(c)return c}return zh()}function Lh(t){return[{name:"commerce_agent_context",value:{valueType:"StructuredValue",value:{version:bh,page_context_type:"pdp_inline",page_context_data:{id:t}}}}]}function Dh(){let t=!1,i=[];return{get pending(){return t},open(){t=!0},close(){if(!t&&i.length===0)return;t=!1;const r=i;i=[];for(const o of r)o()},wait(){return t?new Promise(r=>{i.push(r)}):Promise.resolve()}}}function Oh(t,i){const r=t==="chatbot";return i.hasUserSent?r&&!i.welcomeDropped?{action:"drop-welcome",wasPending:!1}:r?{action:"render-answer"}:{action:"ignore"}:r?{action:"drop-welcome",wasPending:i.gatePending}:{action:"ignore"}}function Mh(t){return t.hasUserSent&&t.welcomeDropped}function ma(t){return t instanceof Bi&&t.statusCode===400&&typeof t.responseBody=="string"&&t.responseBody.includes("maximum length")}function ga(t){return ma(t)?"Message exceeds the maximum length of 4,000 characters.":t instanceof Ui?"Unable to reach the server. Please try again.":"Something went wrong. Please try again."}function Fh({config:t,children:i,hostElement:r,conversationIdRef:o}){const[s,a]=je.useReducer(Ch,Eh),c=je.useRef(null),p=je.useRef(!1),h=je.useRef(null),m=je.useRef(null),y=je.useRef(Dh()),g=je.useRef(!1),w=je.useRef(null),{scrt2Url:v,orgId:_,esDeveloperName:z,capabilitiesVersion:D,enableLogging:A,persistSession:H,productIdParam:M,productIdPattern:ne,pdpQuestions:ue}=t,L=ue?JSON.stringify(ue):"";je.useEffect(()=>{a({type:"SET_PDP_QUESTIONS",questions:ue!=null?ue:[]})},[L]);const se=je.useRef({productIdParam:M,productIdPattern:ne});je.useEffect(()=>{se.current={productIdParam:M,productIdPattern:ne}},[M,ne]),je.useEffect(()=>{if(typeof window=="undefined")return;let K=So(window.location,{productIdParam:M,productIdPattern:ne});const Q=()=>{const ie=So(window.location,{productIdParam:M,productIdPattern:ne});ie!==K&&(K=ie,a({type:"RESET_CONVERSATION"}))},$=history.pushState.bind(history),Z=history.replaceState.bind(history);return history.pushState=(...ie)=>{$(...ie),Q()},history.replaceState=(...ie)=>{Z(...ie),Q()},window.addEventListener("popstate",Q),()=>{history.pushState=$,history.replaceState=Z,window.removeEventListener("popstate",Q)}},[M,ne]),je.useEffect(()=>{if(!v||!_||!z)return;const K=new aa({baseURL:v,orgId:_,esDeveloperName:z,options:{capabilitiesVersion:D,enableLogging:A}});c.current=K,p.current=!1,y.current.close(),g.current=!1,h.current=null;const Q=da(_,z),$=H?{async tryRestore(){let Z="";const ie=Nh(Q,void 0,U=>{Z=U});if(!ie)return A&&console.log(`[Agentforce] persist: no restorable session (reason: ${Z}) — starting a fresh handshake`),!1;try{return await K.restore({accessToken:ie.accessToken,conversationId:ie.conversationId,lastEventId:ie.lastEventId}),g.current=!0,a({type:"SET_CONNECTION_READY",ready:!0}),!0}catch(U){return A&&console.warn(`[Agentforce] persist: restore failed (${U instanceof Error?U.message:String(U)}) — clearing stored session, starting a fresh handshake`),Zt(Q),!1}},save(){const{accessToken:Z,conversationId:ie,lastEventId:U}=K;!Z||!ie||Ah(Q,{accessToken:Z,conversationId:ie,lastEventId:U})}}:null;return w.current=$,$||Zt(Q),K.on("connected",()=>a({type:"SET_STATUS",status:"connected"})),K.on("disconnected",()=>a({type:"SET_STATUS",status:"disconnected"})),K.on("reconnecting",()=>a({type:"SET_STATUS",status:"reconnecting"})),K.on("typing_started",()=>{p.current&&a({type:"SET_AGENT_TYPING",typing:!0})}),K.on("typing_stopped",()=>{p.current&&a({type:"SET_AGENT_TYPING",typing:!1})}),K.on("streaming_token",Z=>{Mh({hasUserSent:p.current,welcomeDropped:g.current})&&(y.current.close(),a({type:"APPEND_STREAMING_TOKEN",token:Z.token}))}),K.on("message",Z=>{const ie=Z.sender.role==="EndUser"?"end-user":"chatbot",U=Oh(ie,{hasUserSent:p.current,welcomeDropped:g.current,gatePending:y.current.pending});if(U.action!=="ignore"){if(U.action==="drop-welcome"){g.current=!0,U.wasPending?(m.current&&(clearTimeout(m.current),m.current=null),y.current.close(),a({type:"SET_CONNECTION_READY",ready:!0})):y.current.close();return}a({type:"SET_ANSWER",content:Z.content})}}),K.on("session_ready",Z=>{r&&r.dispatchEvent(new CustomEvent("iaw:session-ready",{detail:{conversationId:Z.conversationId,messagingSessionId:Z.messagingSessionId},bubbles:!0,composed:!0}))}),K.on("error",Z=>{if(Z.code==="SESSION_EXPIRED"){Zt(Q),p.current=!1,y.current.close(),g.current=!1,h.current=null,a({type:"SET_ANSWER",content:""}),a({type:"SET_STATUS",status:"idle"}),a({type:"SET_ERROR",error:null}),a({type:"SET_CONNECTION_READY",ready:!0});return}Z.recoverable===!1?(Zt(Q),a({type:"SET_ERROR",error:"Something went wrong. Please try again."})):A&&console.warn(`[Agentforce] recoverable error (${Z.code}) — SDK will retry silently`)}),()=>{K.off(),o&&(o.current=null),m.current&&(clearTimeout(m.current),m.current=null),y.current.close();const Z=K.conversationId!=null;K.endConversation(),K.disconnect(),Z&&Zt(Q),c.current===K&&(c.current=null),w.current===$&&(w.current=null)}},[v,_,z,D,A,H]);const de=je.useCallback(()=>{a({type:"SET_STATUS",status:"connecting"}),a({type:"SET_CONNECTION_READY",ready:!1}),y.current.open(),m.current&&clearTimeout(m.current),m.current=setTimeout(()=>{m.current=null,y.current.close(),a({type:"SET_CONNECTION_READY",ready:!0})},5e3)},[]),ye=je.useCallback(()=>{var Q,$;const K=($=(Q=c.current)==null?void 0:Q.conversationId)!=null?$:null;o&&(o.current=K)},[o]),R=je.useCallback(()=>{var Q;const K=c.current;K&&fa(K,h,de,(Q=w.current)!=null?Q:void 0,ye).catch(()=>{})},[de,ye]),X=je.useCallback(async K=>{var U;const Q=c.current,$=K.trim();if(!Q||!$)return!1;if($.length>4e3)return a({type:"SET_ERROR",error:"Message exceeds the maximum length of 4,000 characters."}),!1;a({type:"ASK_QUESTION",question:$}),a({type:"SET_AGENT_TYPING",typing:!0});const Z=typeof window!="undefined"?So(window.location,se.current):null,ie=async()=>{var ee;if(await fa(Q,h,de,(ee=w.current)!=null?ee:void 0,ye),c.current!==Q)throw new Error("unmounted");if(await y.current.wait(),c.current!==Q)throw new Error("unmounted");await Q.sendMessage($,Z?Lh(Z):void 0)};try{await ie()}catch(ee){if(ma(ee))return a({type:"SET_AGENT_TYPING",typing:!1}),a({type:"SET_ERROR",error:ga(ee)}),!1;A&&console.warn("[Agentforce] first attempt failed, retrying with fresh session:",ee);const x=da(_,z);Zt(x),p.current=!1,y.current.close(),g.current=!1,h.current=null;try{await ie()}catch(I){return A&&console.error("[Agentforce] retry also failed:",I),a({type:"SET_AGENT_TYPING",typing:!1}),a({type:"SET_ERROR",error:ga(I)}),a({type:"SET_STATUS",status:"disconnected"}),!1}}return c.current!==Q?!1:((U=w.current)==null||U.save(),p.current=!0,!0)},[de,ye]),J=je.useMemo(()=>({state:s,dispatch:a,sendMessage:X,prepareConnection:R,config:t}),[s,X,R,t]);return ke.jsx(ca.Provider,{value:J,children:i})}function jh(){return ke.jsx("svg",{className:"header-icon",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:ke.jsx("path",{d:"M6.62479 10.3342C6.56527 10.1034 6.44502 9.89289 6.27653 9.72441C6.10805 9.55592 5.8975 9.43567 5.66679 9.37615L1.57679 8.32148C1.50701 8.30168 1.4456 8.25965 1.40186 8.20178C1.35813 8.14391 1.33447 8.07335 1.33447 8.00082C1.33447 7.92828 1.35813 7.85772 1.40186 7.79985C1.4456 7.74198 1.50701 7.69996 1.57679 7.68015L5.66679 6.62482C5.89742 6.56535 6.10792 6.4452 6.27639 6.27684C6.44486 6.10849 6.56517 5.89808 6.62479 5.66748L7.67946 1.57748C7.69906 1.50743 7.74105 1.44571 7.799 1.40175C7.85696 1.35778 7.92771 1.33398 8.00046 1.33398C8.0732 1.33398 8.14395 1.35778 8.20191 1.40175C8.25987 1.44571 8.30185 1.50743 8.32146 1.57748L9.37546 5.66748C9.43497 5.8982 9.55523 6.10875 9.72371 6.27723C9.89219 6.44571 10.1027 6.56597 10.3335 6.62548L14.4235 7.67948C14.4938 7.69888 14.5558 7.74082 14.6 7.79887C14.6442 7.85691 14.6682 7.92786 14.6682 8.00082C14.6682 8.07378 14.6442 8.14472 14.6 8.20277C14.5558 8.26081 14.4938 8.30275 14.4235 8.32215L10.3335 9.37615C10.1027 9.43567 9.89219 9.55592 9.72371 9.72441C9.55523 9.89289 9.43497 10.1034 9.37546 10.3342L8.32079 14.4242C8.30118 14.4942 8.2592 14.5559 8.20124 14.5999C8.14328 14.6439 8.07254 14.6677 7.99979 14.6677C7.92704 14.6677 7.85629 14.6439 7.79834 14.5999C7.74038 14.5559 7.69839 14.4942 7.67879 14.4242L6.62479 10.3342Z"})})}function Bh(){return ke.jsxs("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[ke.jsx("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"}),ke.jsx("path",{d:"m21.854 2.147-10.94 10.939"})]})}function Uh(){var w;const{sendMessage:t,prepareConnection:i,config:r,state:o}=wo(),[s,a]=je.useState(""),c=je.useRef(null),p=o.agentTyping||o.streamingText.length>0,h=!o.connectionReady,m=v=>{a(v.target.value),v.target.value.length>0&&i()},y=v=>{v.preventDefault(),!(s.trim().length===0||p||h)&&(t(s),a(""))},g=v=>{p||h||v.key!=="Enter"||v.nativeEvent.isComposing||v.shiftKey||(v.preventDefault(),s.trim().length!==0&&(t(s),a("")))};return je.useLayoutEffect(()=>{const v=c.current;v&&(v.style.height="auto",v.style.height=`${v.scrollHeight}px`)},[s]),ke.jsxs("form",{className:"composer",onSubmit:y,children:[ke.jsx("textarea",{ref:c,className:"composer-input",rows:1,value:s,onChange:m,onKeyDown:g,placeholder:(w=r.placeholder)!=null?w:r.productName?`Ask me anything about ${r.productName}`:"Ask me anything","aria-label":"Ask a question",disabled:p}),ke.jsx("button",{className:"composer-send",type:"submit",disabled:s.trim().length===0||p||h,"aria-label":"Send question",children:ke.jsx(Bh,{})})]})}function $h(){const{state:t,sendMessage:i}=wo(),r=t.pdpQuestions.filter(a=>!t.askedQuestions.includes(a));if(r.length===0)return null;const o=t.agentTyping||t.streamingText.length>0,s=!t.connectionReady||o;return ke.jsx("ul",{className:"pills","aria-label":"Suggested questions",children:r.map(a=>ke.jsx("li",{className:"pills-item",children:ke.jsx("button",{className:"pill",type:"button",disabled:s,onClick:()=>{i(a)},children:a})},a))})}function y0(){}function k0(){}function Vh(t,i){const r={};return(t[t.length-1]===""?[...t,""]:t).join((r.padRight?" ":"")+","+(r.padLeft===!1?"":" ")).trim()}const Hh=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Wh=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Qh={};function ya(t,i){return(Qh.jsx?Wh:Hh).test(t)}const qh=/[ \t\n\f\r]/g;function Yh(t){return typeof t=="object"?t.type==="text"?ka(t.value):!1:ka(t)}function ka(t){return t.replace(qh,"")===""}class jr{constructor(i,r,o){this.normal=r,this.property=i,o&&(this.space=o)}}jr.prototype.normal={},jr.prototype.property={},jr.prototype.space=void 0;function va(t,i){const r={},o={};for(const s of t)Object.assign(r,s.property),Object.assign(o,s.normal);return new jr(r,o,i)}function Eo(t){return t.toLowerCase()}class mt{constructor(i,r){this.attribute=r,this.property=i}}mt.prototype.attribute="",mt.prototype.booleanish=!1,mt.prototype.boolean=!1,mt.prototype.commaOrSpaceSeparated=!1,mt.prototype.commaSeparated=!1,mt.prototype.defined=!1,mt.prototype.mustUseProperty=!1,mt.prototype.number=!1,mt.prototype.overloadedBoolean=!1,mt.prototype.property="",mt.prototype.spaceSeparated=!1,mt.prototype.space=void 0;let Kh=0;const ve=Bn(),We=Bn(),Co=Bn(),W=Bn(),ze=Bn(),jn=Bn(),St=Bn();function Bn(){return 2**++Kh}const To=Object.freeze(Object.defineProperty({__proto__:null,boolean:ve,booleanish:We,commaOrSpaceSeparated:St,commaSeparated:jn,number:W,overloadedBoolean:Co,spaceSeparated:ze},Symbol.toStringTag,{value:"Module"})),_o=Object.keys(To);class Io extends mt{constructor(i,r,o,s){let a=-1;if(super(i,r),wa(this,"space",s),typeof o=="number")for(;++a<_o.length;){const c=_o[a];wa(this,_o[a],(o&To[c])===To[c])}}}Io.prototype.defined=!0;function wa(t,i,r){r&&(t[i]=r)}function lr(t){const i={},r={};for(const[o,s]of Object.entries(t.properties)){const a=new Io(o,t.transform(t.attributes||{},o),s,t.space);t.mustUseProperty&&t.mustUseProperty.includes(o)&&(a.mustUseProperty=!0),i[o]=a,r[Eo(o)]=o,r[Eo(a.attribute)]=o}return new jr(i,r,t.space)}const xa=lr({properties:{ariaActiveDescendant:null,ariaAtomic:We,ariaAutoComplete:null,ariaBusy:We,ariaChecked:We,ariaColCount:W,ariaColIndex:W,ariaColSpan:W,ariaControls:ze,ariaCurrent:null,ariaDescribedBy:ze,ariaDetails:null,ariaDisabled:We,ariaDropEffect:ze,ariaErrorMessage:null,ariaExpanded:We,ariaFlowTo:ze,ariaGrabbed:We,ariaHasPopup:null,ariaHidden:We,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:ze,ariaLevel:W,ariaLive:null,ariaModal:We,ariaMultiLine:We,ariaMultiSelectable:We,ariaOrientation:null,ariaOwns:ze,ariaPlaceholder:null,ariaPosInSet:W,ariaPressed:We,ariaReadOnly:We,ariaRelevant:null,ariaRequired:We,ariaRoleDescription:ze,ariaRowCount:W,ariaRowIndex:W,ariaRowSpan:W,ariaSelected:We,ariaSetSize:W,ariaSort:null,ariaValueMax:W,ariaValueMin:W,ariaValueNow:W,ariaValueText:null,role:null},transform(t,i){return i==="role"?i:"aria-"+i.slice(4).toLowerCase()}});function Sa(t,i){return i in t?t[i]:i}function Ea(t,i){return Sa(t,i.toLowerCase())}const Gh=lr({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:jn,acceptCharset:ze,accessKey:ze,action:null,allow:null,allowFullScreen:ve,allowPaymentRequest:ve,allowUserMedia:ve,alpha:ve,alt:null,as:null,async:ve,autoCapitalize:null,autoComplete:ze,autoFocus:ve,autoPlay:ve,blocking:ze,capture:null,charSet:null,checked:ve,cite:null,className:ze,closedBy:null,colorSpace:null,cols:W,colSpan:W,command:null,commandFor:null,content:null,contentEditable:We,controls:ve,controlsList:ze,coords:W|jn,crossOrigin:null,data:null,dateTime:null,decoding:null,default:ve,defer:ve,dir:null,dirName:null,disabled:ve,download:Co,draggable:We,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:ve,formTarget:null,headers:ze,height:W,hidden:Co,high:W,href:null,hrefLang:null,htmlFor:ze,httpEquiv:ze,id:null,imageSizes:null,imageSrcSet:null,inert:ve,inputMode:null,integrity:null,is:null,isMap:ve,itemId:null,itemProp:ze,itemRef:ze,itemScope:ve,itemType:ze,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:ve,low:W,manifest:null,max:null,maxLength:W,media:null,method:null,min:null,minLength:W,multiple:ve,muted:ve,name:null,nonce:null,noModule:ve,noValidate:ve,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:ve,optimum:W,pattern:null,ping:ze,placeholder:null,playsInline:ve,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:ve,referrerPolicy:null,rel:ze,required:ve,reversed:ve,rows:W,rowSpan:W,sandbox:ze,scope:null,scoped:ve,seamless:ve,selected:ve,shadowRootClonable:ve,shadowRootCustomElementRegistry:ve,shadowRootDelegatesFocus:ve,shadowRootMode:null,shadowRootSerializable:ve,shape:null,size:W,sizes:null,slot:null,span:W,spellCheck:We,src:null,srcDoc:null,srcLang:null,srcSet:null,start:W,step:null,style:null,tabIndex:W,target:null,title:null,translate:null,type:null,typeMustMatch:ve,useMap:null,value:We,width:W,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:ze,axis:null,background:null,bgColor:null,border:W,borderColor:null,bottomMargin:W,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:ve,declare:ve,event:null,face:null,frame:null,frameBorder:null,hSpace:W,leftMargin:W,link:null,longDesc:null,lowSrc:null,marginHeight:W,marginWidth:W,noResize:ve,noHref:ve,noShade:ve,noWrap:ve,object:null,profile:null,prompt:null,rev:null,rightMargin:W,rules:null,scheme:null,scrolling:We,standby:null,summary:null,text:null,topMargin:W,valueType:null,version:null,vAlign:null,vLink:null,vSpace:W,allowTransparency:null,autoCorrect:null,autoSave:null,credentialless:ve,disablePictureInPicture:ve,disableRemotePlayback:ve,exportParts:jn,part:ze,prefix:null,property:null,results:W,security:null,unselectable:null},space:"html",transform:Ea}),Xh=lr({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",maskType:"mask-type",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:St,accentHeight:W,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:W,amplitude:W,arabicForm:null,ascent:W,attributeName:null,attributeType:null,azimuth:W,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:W,by:null,calcMode:null,capHeight:W,className:ze,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:W,diffuseConstant:W,direction:null,display:null,dur:null,divisor:W,dominantBaseline:null,download:ve,dx:null,dy:null,edgeMode:null,editable:null,elevation:W,enableBackground:null,end:null,event:null,exponent:W,externalResourcesRequired:null,fill:null,fillOpacity:W,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:jn,g2:jn,glyphName:jn,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:W,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:W,horizOriginX:W,horizOriginY:W,id:null,ideographic:W,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:W,k:W,k1:W,k2:W,k3:W,k4:W,kernelMatrix:St,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:W,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskType:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:W,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:W,overlineThickness:W,paintOrder:null,panose1:null,path:null,pathLength:W,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:ze,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:W,pointsAtY:W,pointsAtZ:W,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:St,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:St,rev:St,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:St,requiredFeatures:St,requiredFonts:St,requiredFormats:St,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:W,specularExponent:W,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:W,strikethroughThickness:W,string:null,stroke:null,strokeDashArray:St,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:W,strokeOpacity:W,strokeWidth:null,style:null,surfaceScale:W,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:St,tabIndex:W,tableValues:null,target:null,targetX:W,targetY:W,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:St,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:W,underlineThickness:W,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:W,values:null,vAlphabetic:W,vMathematical:W,vectorEffect:null,vHanging:W,vIdeographic:W,version:null,vertAdvY:W,vertOriginX:W,vertOriginY:W,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:W,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:Sa}),Ca=lr({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(t,i){return"xlink:"+i.slice(5).toLowerCase()}}),Ta=lr({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:Ea}),_a=lr({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(t,i){return"xml:"+i.slice(3).toLowerCase()}}),Jh={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"},Zh=/[A-Z]/g,Ia=/-[a-z]/g,em=/^data[-\w.:]+$/i;function tm(t,i){const r=Eo(i);let o=i,s=mt;if(r in t.normal)return t.property[t.normal[r]];if(r.length>4&&r.slice(0,4)==="data"&&em.test(i)){if(i.charAt(4)==="-"){const a=i.slice(5).replace(Ia,rm);o="data"+a.charAt(0).toUpperCase()+a.slice(1)}else{const a=i.slice(4);if(!Ia.test(a)){let c=a.replace(Zh,nm);c.charAt(0)!=="-"&&(c="-"+c),i="data"+c}}s=Io}return new s(o,i)}function nm(t){return"-"+t.toLowerCase()}function rm(t){return t.charAt(1).toUpperCase()}const im=va([xa,Gh,Ca,Ta,_a],"html"),Po=va([xa,Xh,Ca,Ta,_a],"svg");function lm(t){return t.join(" ").trim()}var or={},No,Pa;function om(){if(Pa)return No;Pa=1;var t=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,i=/\n/g,r=/^\s*/,o=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,s=/^:\s*/,a=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,c=/^[;\s]*/,p=/^\s+|\s+$/g,h=`
17
- `,m="/",y="*",g="",w="comment",v="declaration";function _(D,A){if(typeof D!="string")throw new TypeError("First argument must be a string");if(!D)return[];A=A||{};var H=1,M=1;function ne(Q){var $=Q.match(i);$&&(H+=$.length);var Z=Q.lastIndexOf(h);M=~Z?Q.length-Z:M+Q.length}function ue(){var Q={line:H,column:M};return function($){return $.position=new L(Q),ye(),$}}function L(Q){this.start=Q,this.end={line:H,column:M},this.source=A.source}L.prototype.content=D;function se(Q){var $=new Error(A.source+":"+H+":"+M+": "+Q);if($.reason=Q,$.filename=A.source,$.line=H,$.column=M,$.source=D,!A.silent)throw $}function de(Q){var $=Q.exec(D);if($){var Z=$[0];return ne(Z),D=D.slice(Z.length),$}}function ye(){de(r)}function R(Q){var $;for(Q=Q||[];$=X();)$!==!1&&Q.push($);return Q}function X(){var Q=ue();if(!(m!=D.charAt(0)||y!=D.charAt(1))){for(var $=2;g!=D.charAt($)&&(y!=D.charAt($)||m!=D.charAt($+1));)++$;if($+=2,g===D.charAt($-1))return se("End of comment missing");var Z=D.slice(2,$-2);return M+=2,ne(Z),D=D.slice($),M+=2,Q({type:w,comment:Z})}}function J(){var Q=ue(),$=de(o);if($){if(X(),!de(s))return se("property missing ':'");var Z=de(a),ie=Q({type:v,property:z($[0].replace(t,g)),value:Z?z(Z[0].replace(t,g)):g});return de(c),ie}}function K(){var Q=[];R(Q);for(var $;$=J();)$!==!1&&(Q.push($),R(Q));return Q}return ye(),K()}function z(D){return D?D.replace(p,g):g}return No=_,No}var Na;function um(){if(Na)return or;Na=1;var t=or&&or.__importDefault||function(o){return o&&o.__esModule?o:{default:o}};Object.defineProperty(or,"__esModule",{value:!0}),or.default=r;const i=t(om());function r(o,s){let a=null;if(!o||typeof o!="string")return a;const c=(0,i.default)(o),p=typeof s=="function";return c.forEach(h=>{if(h.type!=="declaration")return;const{property:m,value:y}=h;p?s(m,y,h):y&&(a=a||{},a[m]=y)}),a}return or}var Br={},Aa;function sm(){if(Aa)return Br;Aa=1,Object.defineProperty(Br,"__esModule",{value:!0}),Br.camelCase=void 0;var t=/^--[a-zA-Z0-9_-]+$/,i=/-([a-z])/g,r=/^[^-]+$/,o=/^-(webkit|moz|ms|o|khtml)-/,s=/^-(ms)-/,a=function(m){return!m||r.test(m)||t.test(m)},c=function(m,y){return y.toUpperCase()},p=function(m,y){return"".concat(y,"-")},h=function(m,y){return y===void 0&&(y={}),a(m)?m:(m=m.toLowerCase(),y.reactCompat?m=m.replace(s,p):m=m.replace(o,p),m.replace(i,c))};return Br.camelCase=h,Br}var Ur,ba;function am(){if(ba)return Ur;ba=1;var t=Ur&&Ur.__importDefault||function(s){return s&&s.__esModule?s:{default:s}},i=t(um()),r=sm();function o(s,a){var c={};return!s||typeof s!="string"||(0,i.default)(s,function(p,h){p&&h&&(c[(0,r.camelCase)(p,a)]=h)}),c}return o.default=o,Ur=o,Ur}var cm=am();const fm=dt(cm),Ra=za("end"),Ao=za("start");function za(t){return i;function i(r){const o=r&&r.position&&r.position[t]||{};if(typeof o.line=="number"&&o.line>0&&typeof o.column=="number"&&o.column>0)return{line:o.line,column:o.column,offset:typeof o.offset=="number"&&o.offset>-1?o.offset:void 0}}}function La(t){const i=Ao(t),r=Ra(t);if(i&&r)return{start:i,end:r}}function $r(t){return!t||typeof t!="object"?"":"position"in t||"type"in t?Da(t.position):"start"in t||"end"in t?Da(t):"line"in t||"column"in t?bo(t):""}function bo(t){return Oa(t&&t.line)+":"+Oa(t&&t.column)}function Da(t){return bo(t&&t.start)+"-"+bo(t&&t.end)}function Oa(t){return t&&typeof t=="number"?t:1}class it extends Error{constructor(i,r,o){super(),typeof r=="string"&&(o=r,r=void 0);let s="",a={},c=!1;if(r&&("line"in r&&"column"in r?a={place:r}:"start"in r&&"end"in r?a={place:r}:"type"in r?a={ancestors:[r],place:r.position}:a={...r}),typeof i=="string"?s=i:!a.cause&&i&&(c=!0,s=i.message,a.cause=i),!a.ruleId&&!a.source&&typeof o=="string"){const h=o.indexOf(":");h===-1?a.ruleId=o:(a.source=o.slice(0,h),a.ruleId=o.slice(h+1))}if(!a.place&&a.ancestors&&a.ancestors){const h=a.ancestors[a.ancestors.length-1];h&&(a.place=h.position)}const p=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=p?p.column:void 0,this.fatal=void 0,this.file="",this.message=s,this.line=p?p.line:void 0,this.name=$r(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=c&&a.cause&&typeof a.cause.stack=="string"?a.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}it.prototype.file="",it.prototype.name="",it.prototype.reason="",it.prototype.message="",it.prototype.stack="",it.prototype.column=void 0,it.prototype.line=void 0,it.prototype.ancestors=void 0,it.prototype.cause=void 0,it.prototype.fatal=void 0,it.prototype.place=void 0,it.prototype.ruleId=void 0,it.prototype.source=void 0;const Ro={}.hasOwnProperty,pm=new Map,dm=/[A-Z]/g,hm=new Set(["table","tbody","thead","tfoot","tr"]),mm=new Set(["td","th"]),Ma="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function gm(t,i){if(!i||i.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const r=i.filePath||void 0;let o;if(i.development){if(typeof i.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");o=Cm(r,i.jsxDEV)}else{if(typeof i.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof i.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");o=Em(r,i.jsx,i.jsxs)}const s={Fragment:i.Fragment,ancestors:[],components:i.components||{},create:o,elementAttributeNameCase:i.elementAttributeNameCase||"react",evaluater:i.createEvaluater?i.createEvaluater():void 0,filePath:r,ignoreInvalidStyle:i.ignoreInvalidStyle||!1,passKeys:i.passKeys!==!1,passNode:i.passNode||!1,schema:i.space==="svg"?Po:im,stylePropertyNameCase:i.stylePropertyNameCase||"dom",tableCellAlignToStyle:i.tableCellAlignToStyle!==!1},a=Fa(s,t,void 0);return a&&typeof a!="string"?a:s.create(t,s.Fragment,{children:a||void 0},void 0)}function Fa(t,i,r){if(i.type==="element")return ym(t,i,r);if(i.type==="mdxFlowExpression"||i.type==="mdxTextExpression")return km(t,i);if(i.type==="mdxJsxFlowElement"||i.type==="mdxJsxTextElement")return wm(t,i,r);if(i.type==="mdxjsEsm")return vm(t,i);if(i.type==="root")return xm(t,i,r);if(i.type==="text")return Sm(t,i)}function ym(t,i,r){const o=t.schema;let s=o;i.tagName.toLowerCase()==="svg"&&o.space==="html"&&(s=Po,t.schema=s),t.ancestors.push(i);const a=Ba(t,i.tagName,!1),c=Tm(t,i);let p=Lo(t,i);return hm.has(i.tagName)&&(p=p.filter(function(h){return typeof h=="string"?!Yh(h):!0})),ja(t,c,a,i),zo(c,p),t.ancestors.pop(),t.schema=o,t.create(i,a,c,r)}function km(t,i){if(i.data&&i.data.estree&&t.evaluater){const o=i.data.estree.body[0];return o.type,t.evaluater.evaluateExpression(o.expression)}Vr(t,i.position)}function vm(t,i){if(i.data&&i.data.estree&&t.evaluater)return t.evaluater.evaluateProgram(i.data.estree);Vr(t,i.position)}function wm(t,i,r){const o=t.schema;let s=o;i.name==="svg"&&o.space==="html"&&(s=Po,t.schema=s),t.ancestors.push(i);const a=i.name===null?t.Fragment:Ba(t,i.name,!0),c=_m(t,i),p=Lo(t,i);return ja(t,c,a,i),zo(c,p),t.ancestors.pop(),t.schema=o,t.create(i,a,c,r)}function xm(t,i,r){const o={};return zo(o,Lo(t,i)),t.create(i,t.Fragment,o,r)}function Sm(t,i){return i.value}function ja(t,i,r,o){typeof r!="string"&&r!==t.Fragment&&t.passNode&&(i.node=o)}function zo(t,i){if(i.length>0){const r=i.length>1?i:i[0];r&&(t.children=r)}}function Em(t,i,r){return o;function o(s,a,c,p){const m=Array.isArray(c.children)?r:i;return p?m(a,c,p):m(a,c)}}function Cm(t,i){return r;function r(o,s,a,c){const p=Array.isArray(a.children),h=Ao(o);return i(s,a,c,p,{columnNumber:h?h.column-1:void 0,fileName:t,lineNumber:h?h.line:void 0},void 0)}}function Tm(t,i){const r={};let o,s;for(s in i.properties)if(s!=="children"&&Ro.call(i.properties,s)){const a=Im(t,s,i.properties[s]);if(a){const[c,p]=a;t.tableCellAlignToStyle&&c==="align"&&typeof p=="string"&&mm.has(i.tagName)?o=p:r[c]=p}}if(o){const a=r.style||(r.style={});a[t.stylePropertyNameCase==="css"?"text-align":"textAlign"]=o}return r}function _m(t,i){const r={};for(const o of i.attributes)if(o.type==="mdxJsxExpressionAttribute")if(o.data&&o.data.estree&&t.evaluater){const a=o.data.estree.body[0];a.type;const c=a.expression;c.type;const p=c.properties[0];p.type,Object.assign(r,t.evaluater.evaluateExpression(p.argument))}else Vr(t,i.position);else{const s=o.name;let a;if(o.value&&typeof o.value=="object")if(o.value.data&&o.value.data.estree&&t.evaluater){const p=o.value.data.estree.body[0];p.type,a=t.evaluater.evaluateExpression(p.expression)}else Vr(t,i.position);else a=o.value===null?!0:o.value;r[s]=a}return r}function Lo(t,i){const r=[];let o=-1;const s=t.passKeys?new Map:pm;for(;++o<i.children.length;){const a=i.children[o];let c;if(t.passKeys){const h=a.type==="element"?a.tagName:a.type==="mdxJsxFlowElement"||a.type==="mdxJsxTextElement"?a.name:void 0;if(h){const m=s.get(h)||0;c=h+"-"+m,s.set(h,m+1)}}const p=Fa(t,a,c);p!==void 0&&r.push(p)}return r}function Im(t,i,r){const o=tm(t.schema,i);if(!(r==null||typeof r=="number"&&Number.isNaN(r))){if(Array.isArray(r)&&(r=o.commaSeparated?Vh(r):lm(r)),o.property==="style"){let s=typeof r=="object"?r:Pm(t,String(r));return t.stylePropertyNameCase==="css"&&(s=Nm(s)),["style",s]}return[t.elementAttributeNameCase==="react"&&o.space?Jh[o.property]||o.property:o.attribute,r]}}function Pm(t,i){try{return fm(i,{reactCompat:!0})}catch(r){if(t.ignoreInvalidStyle)return{};const o=r,s=new it("Cannot parse `style` attribute",{ancestors:t.ancestors,cause:o,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw s.file=t.filePath||void 0,s.url=Ma+"#cannot-parse-style-attribute",s}}function Ba(t,i,r){let o;if(!r)o={type:"Literal",value:i};else if(i.includes(".")){const s=i.split(".");let a=-1,c;for(;++a<s.length;){const p=ya(s[a])?{type:"Identifier",name:s[a]}:{type:"Literal",value:s[a]};c=c?{type:"MemberExpression",object:c,property:p,computed:!!(a&&p.type==="Literal"),optional:!1}:p}o=c}else o=ya(i)&&!/^[a-z]/.test(i)?{type:"Identifier",name:i}:{type:"Literal",value:i};if(o.type==="Literal"){const s=o.value;return Ro.call(t.components,s)?t.components[s]:s}if(t.evaluater)return t.evaluater.evaluateExpression(o);Vr(t)}function Vr(t,i){const r=new it("Cannot handle MDX estrees without `createEvaluater`",{ancestors:t.ancestors,place:i,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw r.file=t.filePath||void 0,r.url=Ma+"#cannot-handle-mdx-estrees-without-createevaluater",r}function Nm(t){const i={};let r;for(r in t)Ro.call(t,r)&&(i[Am(r)]=t[r]);return i}function Am(t){let i=t.replace(dm,bm);return i.slice(0,3)==="ms-"&&(i="-"+i),i}function bm(t){return"-"+t.toLowerCase()}const Do={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"]},Rm={};function Oo(t,i){const r=Rm,o=typeof r.includeImageAlt=="boolean"?r.includeImageAlt:!0,s=typeof r.includeHtml=="boolean"?r.includeHtml:!0;return Ua(t,o,s)}function Ua(t,i,r){if(zm(t)){if("value"in t)return t.type==="html"&&!r?"":t.value;if(i&&"alt"in t&&t.alt)return t.alt;if("children"in t)return $a(t.children,i,r)}return Array.isArray(t)?$a(t,i,r):""}function $a(t,i,r){const o=[];let s=-1;for(;++s<t.length;)o[s]=Ua(t[s],i,r);return o.join("")}function zm(t){return!!(t&&typeof t=="object")}const Va=document.createElement("i");function Mo(t){const i="&"+t+";";Va.innerHTML=i;const r=Va.textContent;return r.charCodeAt(r.length-1)===59&&t!=="semi"||r===i?!1:r}function Et(t,i,r,o){const s=t.length;let a=0,c;if(i<0?i=-i>s?0:s+i:i=i>s?s:i,r=r>0?r:0,o.length<1e4)c=Array.from(o),c.unshift(i,r),t.splice(...c);else for(r&&t.splice(i,r);a<o.length;)c=o.slice(a,a+1e4),c.unshift(i,0),t.splice(...c),a+=1e4,i+=1e4}function Nt(t,i){return t.length>0?(Et(t,t.length,0,i),t):i}const Ha={}.hasOwnProperty;function Wa(t){const i={};let r=-1;for(;++r<t.length;)Lm(i,t[r]);return i}function Lm(t,i){let r;for(r in i){const s=(Ha.call(t,r)?t[r]:void 0)||(t[r]={}),a=i[r];let c;if(a)for(c in a){Ha.call(s,c)||(s[c]=[]);const p=a[c];Dm(s[c],Array.isArray(p)?p:p?[p]:[])}}}function Dm(t,i){let r=-1;const o=[];for(;++r<i.length;)(i[r].add==="after"?t:o).push(i[r]);Et(t,0,0,o)}function Qa(t,i){const r=Number.parseInt(t,i);return r<9||r===11||r>13&&r<32||r>126&&r<160||r>55295&&r<57344||r>64975&&r<65008||(r&65535)===65535||(r&65535)===65534||r>1114111?"�":String.fromCodePoint(r)}function Mt(t){return t.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const ct=hn(/[A-Za-z]/),lt=hn(/[\dA-Za-z]/),Om=hn(/[#-'*+\--9=?A-Z^-~]/);function Vi(t){return t!==null&&(t<32||t===127)}const Fo=hn(/\d/),Mm=hn(/[\dA-Fa-f]/),Fm=hn(/[!-/:-@[-`{-~]/);function ae(t){return t!==null&&t<-2}function Le(t){return t!==null&&(t<0||t===32)}function Ce(t){return t===-2||t===-1||t===32}const Hi=hn(/\p{P}|\p{S}/u),Un=hn(/\s/);function hn(t){return i;function i(r){return r!==null&&r>-1&&t.test(String.fromCharCode(r))}}function ur(t){const i=[];let r=-1,o=0,s=0;for(;++r<t.length;){const a=t.charCodeAt(r);let c="";if(a===37&&lt(t.charCodeAt(r+1))&&lt(t.charCodeAt(r+2)))s=2;else if(a<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(a))||(c=String.fromCharCode(a));else if(a>55295&&a<57344){const p=t.charCodeAt(r+1);a<56320&&p>56319&&p<57344?(c=String.fromCharCode(a,p),s=1):c="�"}else c=String.fromCharCode(a);c&&(i.push(t.slice(o,r),encodeURIComponent(c)),o=r+s+1,c=""),s&&(r+=s,s=0)}return i.join("")+t.slice(o)}function _e(t,i,r,o){const s=o?o-1:Number.POSITIVE_INFINITY;let a=0;return c;function c(h){return Ce(h)?(t.enter(r),p(h)):i(h)}function p(h){return Ce(h)&&a++<s?(t.consume(h),p):(t.exit(r),i(h))}}const jm={tokenize:Bm};function Bm(t){const i=t.attempt(this.parser.constructs.contentInitial,o,s);let r;return i;function o(p){if(p===null){t.consume(p);return}return t.enter("lineEnding"),t.consume(p),t.exit("lineEnding"),_e(t,i,"linePrefix")}function s(p){return t.enter("paragraph"),a(p)}function a(p){const h=t.enter("chunkText",{contentType:"text",previous:r});return r&&(r.next=h),r=h,c(p)}function c(p){if(p===null){t.exit("chunkText"),t.exit("paragraph"),t.consume(p);return}return ae(p)?(t.consume(p),t.exit("chunkText"),a):(t.consume(p),c)}}const Um={tokenize:$m},qa={tokenize:Vm};function $m(t){const i=this,r=[];let o=0,s,a,c;return p;function p(M){if(o<r.length){const ne=r[o];return i.containerState=ne[1],t.attempt(ne[0].continuation,h,m)(M)}return m(M)}function h(M){if(o++,i.containerState._closeFlow){i.containerState._closeFlow=void 0,s&&H();const ne=i.events.length;let ue=ne,L;for(;ue--;)if(i.events[ue][0]==="exit"&&i.events[ue][1].type==="chunkFlow"){L=i.events[ue][1].end;break}A(o);let se=ne;for(;se<i.events.length;)i.events[se][1].end={...L},se++;return Et(i.events,ue+1,0,i.events.slice(ne)),i.events.length=se,m(M)}return p(M)}function m(M){if(o===r.length){if(!s)return w(M);if(s.currentConstruct&&s.currentConstruct.concrete)return _(M);i.interrupt=!!(s.currentConstruct&&!s._gfmTableDynamicInterruptHack)}return i.containerState={},t.check(qa,y,g)(M)}function y(M){return s&&H(),A(o),w(M)}function g(M){return i.parser.lazy[i.now().line]=o!==r.length,c=i.now().offset,_(M)}function w(M){return i.containerState={},t.attempt(qa,v,_)(M)}function v(M){return o++,r.push([i.currentConstruct,i.containerState]),w(M)}function _(M){if(M===null){s&&H(),A(0),t.consume(M);return}return s=s||i.parser.flow(i.now()),t.enter("chunkFlow",{_tokenizer:s,contentType:"flow",previous:a}),z(M)}function z(M){if(M===null){D(t.exit("chunkFlow"),!0),A(0),t.consume(M);return}return ae(M)?(t.consume(M),D(t.exit("chunkFlow")),o=0,i.interrupt=void 0,p):(t.consume(M),z)}function D(M,ne){const ue=i.sliceStream(M);if(ne&&ue.push(null),M.previous=a,a&&(a.next=M),a=M,s.defineSkip(M.start),s.write(ue),i.parser.lazy[M.start.line]){let L=s.events.length;for(;L--;)if(s.events[L][1].start.offset<c&&(!s.events[L][1].end||s.events[L][1].end.offset>c))return;const se=i.events.length;let de=se,ye,R;for(;de--;)if(i.events[de][0]==="exit"&&i.events[de][1].type==="chunkFlow"){if(ye){R=i.events[de][1].end;break}ye=!0}for(A(o),L=se;L<i.events.length;)i.events[L][1].end={...R},L++;Et(i.events,de+1,0,i.events.slice(se)),i.events.length=L}}function A(M){let ne=r.length;for(;ne-- >M;){const ue=r[ne];i.containerState=ue[1],ue[0].exit.call(i,t)}r.length=M}function H(){s.write([null]),a=void 0,s=void 0,i.containerState._closeFlow=void 0}}function Vm(t,i,r){return _e(t,t.attempt(this.parser.constructs.document,i,r),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function sr(t){if(t===null||Le(t)||Un(t))return 1;if(Hi(t))return 2}function Wi(t,i,r){const o=[];let s=-1;for(;++s<t.length;){const a=t[s].resolveAll;a&&!o.includes(a)&&(i=a(i,r),o.push(a))}return i}const jo={name:"attention",resolveAll:Hm,tokenize:Wm};function Hm(t,i){let r=-1,o,s,a,c,p,h,m,y;for(;++r<t.length;)if(t[r][0]==="enter"&&t[r][1].type==="attentionSequence"&&t[r][1]._close){for(o=r;o--;)if(t[o][0]==="exit"&&t[o][1].type==="attentionSequence"&&t[o][1]._open&&i.sliceSerialize(t[o][1]).charCodeAt(0)===i.sliceSerialize(t[r][1]).charCodeAt(0)){if((t[o][1]._close||t[r][1]._open)&&(t[r][1].end.offset-t[r][1].start.offset)%3&&!((t[o][1].end.offset-t[o][1].start.offset+t[r][1].end.offset-t[r][1].start.offset)%3))continue;h=t[o][1].end.offset-t[o][1].start.offset>1&&t[r][1].end.offset-t[r][1].start.offset>1?2:1;const g={...t[o][1].end},w={...t[r][1].start};Ya(g,-h),Ya(w,h),c={type:h>1?"strongSequence":"emphasisSequence",start:g,end:{...t[o][1].end}},p={type:h>1?"strongSequence":"emphasisSequence",start:{...t[r][1].start},end:w},a={type:h>1?"strongText":"emphasisText",start:{...t[o][1].end},end:{...t[r][1].start}},s={type:h>1?"strong":"emphasis",start:{...c.start},end:{...p.end}},t[o][1].end={...c.start},t[r][1].start={...p.end},m=[],t[o][1].end.offset-t[o][1].start.offset&&(m=Nt(m,[["enter",t[o][1],i],["exit",t[o][1],i]])),m=Nt(m,[["enter",s,i],["enter",c,i],["exit",c,i],["enter",a,i]]),m=Nt(m,Wi(i.parser.constructs.insideSpan.null,t.slice(o+1,r),i)),m=Nt(m,[["exit",a,i],["enter",p,i],["exit",p,i],["exit",s,i]]),t[r][1].end.offset-t[r][1].start.offset?(y=2,m=Nt(m,[["enter",t[r][1],i],["exit",t[r][1],i]])):y=0,Et(t,o-1,r-o+3,m),r=o+m.length-y-2;break}}for(r=-1;++r<t.length;)t[r][1].type==="attentionSequence"&&(t[r][1].type="data");return t}function Wm(t,i){const r=this.parser.constructs.attentionMarkers.null,o=this.previous,s=sr(o);let a;return c;function c(h){return a=h,t.enter("attentionSequence"),p(h)}function p(h){if(h===a)return t.consume(h),p;const m=t.exit("attentionSequence"),y=sr(h),g=!y||y===2&&s||r.includes(h),w=!s||s===2&&y||r.includes(o);return m._open=!!(a===42?g:g&&(s||!w)),m._close=!!(a===42?w:w&&(y||!g)),i(h)}}function Ya(t,i){t.column+=i,t.offset+=i,t._bufferIndex+=i}const Qm={name:"autolink",tokenize:qm};function qm(t,i,r){let o=0;return s;function s(v){return t.enter("autolink"),t.enter("autolinkMarker"),t.consume(v),t.exit("autolinkMarker"),t.enter("autolinkProtocol"),a}function a(v){return ct(v)?(t.consume(v),c):v===64?r(v):m(v)}function c(v){return v===43||v===45||v===46||lt(v)?(o=1,p(v)):m(v)}function p(v){return v===58?(t.consume(v),o=0,h):(v===43||v===45||v===46||lt(v))&&o++<32?(t.consume(v),p):(o=0,m(v))}function h(v){return v===62?(t.exit("autolinkProtocol"),t.enter("autolinkMarker"),t.consume(v),t.exit("autolinkMarker"),t.exit("autolink"),i):v===null||v===32||v===60||Vi(v)?r(v):(t.consume(v),h)}function m(v){return v===64?(t.consume(v),y):Om(v)?(t.consume(v),m):r(v)}function y(v){return lt(v)?g(v):r(v)}function g(v){return v===46?(t.consume(v),o=0,y):v===62?(t.exit("autolinkProtocol").type="autolinkEmail",t.enter("autolinkMarker"),t.consume(v),t.exit("autolinkMarker"),t.exit("autolink"),i):w(v)}function w(v){if((v===45||lt(v))&&o++<63){const _=v===45?w:g;return t.consume(v),_}return r(v)}}const Hr={partial:!0,tokenize:Ym};function Ym(t,i,r){return o;function o(a){return Ce(a)?_e(t,s,"linePrefix")(a):s(a)}function s(a){return a===null||ae(a)?i(a):r(a)}}const Ka={continuation:{tokenize:Gm},exit:Xm,name:"blockQuote",tokenize:Km};function Km(t,i,r){const o=this;return s;function s(c){if(c===62){const p=o.containerState;return p.open||(t.enter("blockQuote",{_container:!0}),p.open=!0),t.enter("blockQuotePrefix"),t.enter("blockQuoteMarker"),t.consume(c),t.exit("blockQuoteMarker"),a}return r(c)}function a(c){return Ce(c)?(t.enter("blockQuotePrefixWhitespace"),t.consume(c),t.exit("blockQuotePrefixWhitespace"),t.exit("blockQuotePrefix"),i):(t.exit("blockQuotePrefix"),i(c))}}function Gm(t,i,r){const o=this;return s;function s(c){return Ce(c)?_e(t,a,"linePrefix",o.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(c):a(c)}function a(c){return t.attempt(Ka,i,r)(c)}}function Xm(t){t.exit("blockQuote")}const Ga={name:"characterEscape",tokenize:Jm};function Jm(t,i,r){return o;function o(a){return t.enter("characterEscape"),t.enter("escapeMarker"),t.consume(a),t.exit("escapeMarker"),s}function s(a){return Fm(a)?(t.enter("characterEscapeValue"),t.consume(a),t.exit("characterEscapeValue"),t.exit("characterEscape"),i):r(a)}}const Xa={name:"characterReference",tokenize:Zm};function Zm(t,i,r){const o=this;let s=0,a,c;return p;function p(g){return t.enter("characterReference"),t.enter("characterReferenceMarker"),t.consume(g),t.exit("characterReferenceMarker"),h}function h(g){return g===35?(t.enter("characterReferenceMarkerNumeric"),t.consume(g),t.exit("characterReferenceMarkerNumeric"),m):(t.enter("characterReferenceValue"),a=31,c=lt,y(g))}function m(g){return g===88||g===120?(t.enter("characterReferenceMarkerHexadecimal"),t.consume(g),t.exit("characterReferenceMarkerHexadecimal"),t.enter("characterReferenceValue"),a=6,c=Mm,y):(t.enter("characterReferenceValue"),a=7,c=Fo,y(g))}function y(g){if(g===59&&s){const w=t.exit("characterReferenceValue");return c===lt&&!Mo(o.sliceSerialize(w))?r(g):(t.enter("characterReferenceMarker"),t.consume(g),t.exit("characterReferenceMarker"),t.exit("characterReference"),i)}return c(g)&&s++<a?(t.consume(g),y):r(g)}}const Ja={partial:!0,tokenize:tg},Za={concrete:!0,name:"codeFenced",tokenize:eg};function eg(t,i,r){const o=this,s={partial:!0,tokenize:ue};let a=0,c=0,p;return h;function h(L){return m(L)}function m(L){const se=o.events[o.events.length-1];return a=se&&se[1].type==="linePrefix"?se[2].sliceSerialize(se[1],!0).length:0,p=L,t.enter("codeFenced"),t.enter("codeFencedFence"),t.enter("codeFencedFenceSequence"),y(L)}function y(L){return L===p?(c++,t.consume(L),y):c<3?r(L):(t.exit("codeFencedFenceSequence"),Ce(L)?_e(t,g,"whitespace")(L):g(L))}function g(L){return L===null||ae(L)?(t.exit("codeFencedFence"),o.interrupt?i(L):t.check(Ja,z,ne)(L)):(t.enter("codeFencedFenceInfo"),t.enter("chunkString",{contentType:"string"}),w(L))}function w(L){return L===null||ae(L)?(t.exit("chunkString"),t.exit("codeFencedFenceInfo"),g(L)):Ce(L)?(t.exit("chunkString"),t.exit("codeFencedFenceInfo"),_e(t,v,"whitespace")(L)):L===96&&L===p?r(L):(t.consume(L),w)}function v(L){return L===null||ae(L)?g(L):(t.enter("codeFencedFenceMeta"),t.enter("chunkString",{contentType:"string"}),_(L))}function _(L){return L===null||ae(L)?(t.exit("chunkString"),t.exit("codeFencedFenceMeta"),g(L)):L===96&&L===p?r(L):(t.consume(L),_)}function z(L){return t.attempt(s,ne,D)(L)}function D(L){return t.enter("lineEnding"),t.consume(L),t.exit("lineEnding"),A}function A(L){return a>0&&Ce(L)?_e(t,H,"linePrefix",a+1)(L):H(L)}function H(L){return L===null||ae(L)?t.check(Ja,z,ne)(L):(t.enter("codeFlowValue"),M(L))}function M(L){return L===null||ae(L)?(t.exit("codeFlowValue"),H(L)):(t.consume(L),M)}function ne(L){return t.exit("codeFenced"),i(L)}function ue(L,se,de){let ye=0;return R;function R($){return L.enter("lineEnding"),L.consume($),L.exit("lineEnding"),X}function X($){return L.enter("codeFencedFence"),Ce($)?_e(L,J,"linePrefix",o.parser.constructs.disable.null.includes("codeIndented")?void 0:4)($):J($)}function J($){return $===p?(L.enter("codeFencedFenceSequence"),K($)):de($)}function K($){return $===p?(ye++,L.consume($),K):ye>=c?(L.exit("codeFencedFenceSequence"),Ce($)?_e(L,Q,"whitespace")($):Q($)):de($)}function Q($){return $===null||ae($)?(L.exit("codeFencedFence"),se($)):de($)}}}function tg(t,i,r){const o=this;return s;function s(c){return c===null?r(c):(t.enter("lineEnding"),t.consume(c),t.exit("lineEnding"),a)}function a(c){return o.parser.lazy[o.now().line]?r(c):i(c)}}const Bo={name:"codeIndented",tokenize:rg},ng={partial:!0,tokenize:ig};function rg(t,i,r){const o=this;return s;function s(m){return t.enter("codeIndented"),_e(t,a,"linePrefix",5)(m)}function a(m){const y=o.events[o.events.length-1];return y&&y[1].type==="linePrefix"&&y[2].sliceSerialize(y[1],!0).length>=4?c(m):r(m)}function c(m){return m===null?h(m):ae(m)?t.attempt(ng,c,h)(m):(t.enter("codeFlowValue"),p(m))}function p(m){return m===null||ae(m)?(t.exit("codeFlowValue"),c(m)):(t.consume(m),p)}function h(m){return t.exit("codeIndented"),i(m)}}function ig(t,i,r){const o=this;return s;function s(c){return o.parser.lazy[o.now().line]?r(c):ae(c)?(t.enter("lineEnding"),t.consume(c),t.exit("lineEnding"),s):_e(t,a,"linePrefix",5)(c)}function a(c){const p=o.events[o.events.length-1];return p&&p[1].type==="linePrefix"&&p[2].sliceSerialize(p[1],!0).length>=4?i(c):ae(c)?s(c):r(c)}}const lg={name:"codeText",previous:ug,resolve:og,tokenize:sg};function og(t){let i=t.length-4,r=3,o,s;if((t[r][1].type==="lineEnding"||t[r][1].type==="space")&&(t[i][1].type==="lineEnding"||t[i][1].type==="space")){for(o=r;++o<i;)if(t[o][1].type==="codeTextData"){t[r][1].type="codeTextPadding",t[i][1].type="codeTextPadding",r+=2,i-=2;break}}for(o=r-1,i++;++o<=i;)s===void 0?o!==i&&t[o][1].type!=="lineEnding"&&(s=o):(o===i||t[o][1].type==="lineEnding")&&(t[s][1].type="codeTextData",o!==s+2&&(t[s][1].end=t[o-1][1].end,t.splice(s+2,o-s-2),i-=o-s-2,o=s+2),s=void 0);return t}function ug(t){return t!==96||this.events[this.events.length-1][1].type==="characterEscape"}function sg(t,i,r){let o=0,s,a;return c;function c(g){return t.enter("codeText"),t.enter("codeTextSequence"),p(g)}function p(g){return g===96?(t.consume(g),o++,p):(t.exit("codeTextSequence"),h(g))}function h(g){return g===null?r(g):g===32?(t.enter("space"),t.consume(g),t.exit("space"),h):g===96?(a=t.enter("codeTextSequence"),s=0,y(g)):ae(g)?(t.enter("lineEnding"),t.consume(g),t.exit("lineEnding"),h):(t.enter("codeTextData"),m(g))}function m(g){return g===null||g===32||g===96||ae(g)?(t.exit("codeTextData"),h(g)):(t.consume(g),m)}function y(g){return g===96?(t.consume(g),s++,y):s===o?(t.exit("codeTextSequence"),t.exit("codeText"),i(g)):(a.type="codeTextData",m(g))}}class ag{constructor(i){this.left=i?[...i]:[],this.right=[]}get(i){if(i<0||i>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+i+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return i<this.left.length?this.left[i]:this.right[this.right.length-i+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(i,r){const o=r==null?Number.POSITIVE_INFINITY:r;return o<this.left.length?this.left.slice(i,o):i>this.left.length?this.right.slice(this.right.length-o+this.left.length,this.right.length-i+this.left.length).reverse():this.left.slice(i).concat(this.right.slice(this.right.length-o+this.left.length).reverse())}splice(i,r,o){const s=r||0;this.setCursor(Math.trunc(i));const a=this.right.splice(this.right.length-s,Number.POSITIVE_INFINITY);return o&&Wr(this.left,o),a.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(i){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(i)}pushMany(i){this.setCursor(Number.POSITIVE_INFINITY),Wr(this.left,i)}unshift(i){this.setCursor(0),this.right.push(i)}unshiftMany(i){this.setCursor(0),Wr(this.right,i.reverse())}setCursor(i){if(!(i===this.left.length||i>this.left.length&&this.right.length===0||i<0&&this.left.length===0))if(i<this.left.length){const r=this.left.splice(i,Number.POSITIVE_INFINITY);Wr(this.right,r.reverse())}else{const r=this.right.splice(this.left.length+this.right.length-i,Number.POSITIVE_INFINITY);Wr(this.left,r.reverse())}}}function Wr(t,i){let r=0;if(i.length<1e4)t.push(...i);else for(;r<i.length;)t.push(...i.slice(r,r+1e4)),r+=1e4}function ec(t){const i={};let r=-1,o,s,a,c,p,h,m;const y=new ag(t);for(;++r<y.length;){for(;r in i;)r=i[r];if(o=y.get(r),r&&o[1].type==="chunkFlow"&&y.get(r-1)[1].type==="listItemPrefix"&&(h=o[1]._tokenizer.events,a=0,a<h.length&&h[a][1].type==="lineEndingBlank"&&(a+=2),a<h.length&&h[a][1].type==="content"))for(;++a<h.length&&h[a][1].type!=="content";)h[a][1].type==="chunkText"&&(h[a][1]._isInFirstContentOfListItem=!0,a++);if(o[0]==="enter")o[1].contentType&&(Object.assign(i,cg(y,r)),r=i[r],m=!0);else if(o[1]._container){for(a=r,s=void 0;a--;)if(c=y.get(a),c[1].type==="lineEnding"||c[1].type==="lineEndingBlank")c[0]==="enter"&&(s&&(y.get(s)[1].type="lineEndingBlank"),c[1].type="lineEnding",s=a);else if(!(c[1].type==="linePrefix"||c[1].type==="listItemIndent"))break;s&&(o[1].end={...y.get(s)[1].start},p=y.slice(s,r),p.unshift(o),y.splice(s,r-s+1,p))}}return Et(t,0,Number.POSITIVE_INFINITY,y.slice(0)),!m}function cg(t,i){const r=t.get(i)[1],o=t.get(i)[2];let s=i-1;const a=[];let c=r._tokenizer;c||(c=o.parser[r.contentType](r.start),r._contentTypeTextTrailing&&(c._contentTypeTextTrailing=!0));const p=c.events,h=[],m={};let y,g,w=-1,v=r,_=0,z=0;const D=[z];for(;v;){for(;t.get(++s)[1]!==v;);a.push(s),v._tokenizer||(y=o.sliceStream(v),v.next||y.push(null),g&&c.defineSkip(v.start),v._isInFirstContentOfListItem&&(c._gfmTasklistFirstContentOfListItem=!0),c.write(y),v._isInFirstContentOfListItem&&(c._gfmTasklistFirstContentOfListItem=void 0)),g=v,v=v.next}for(v=r;++w<p.length;)p[w][0]==="exit"&&p[w-1][0]==="enter"&&p[w][1].type===p[w-1][1].type&&p[w][1].start.line!==p[w][1].end.line&&(z=w+1,D.push(z),v._tokenizer=void 0,v.previous=void 0,v=v.next);for(c.events=[],v?(v._tokenizer=void 0,v.previous=void 0):D.pop(),w=D.length;w--;){const A=p.slice(D[w],D[w+1]),H=a.pop();h.push([H,H+A.length-1]),t.splice(H,2,A)}for(h.reverse(),w=-1;++w<h.length;)m[_+h[w][0]]=_+h[w][1],_+=h[w][1]-h[w][0]-1;return m}const fg={resolve:dg,tokenize:hg},pg={partial:!0,tokenize:mg};function dg(t){return ec(t),t}function hg(t,i){let r;return o;function o(p){return t.enter("content"),r=t.enter("chunkContent",{contentType:"content"}),s(p)}function s(p){return p===null?a(p):ae(p)?t.check(pg,c,a)(p):(t.consume(p),s)}function a(p){return t.exit("chunkContent"),t.exit("content"),i(p)}function c(p){return t.consume(p),t.exit("chunkContent"),r.next=t.enter("chunkContent",{contentType:"content",previous:r}),r=r.next,s}}function mg(t,i,r){const o=this;return s;function s(c){return t.exit("chunkContent"),t.enter("lineEnding"),t.consume(c),t.exit("lineEnding"),_e(t,a,"linePrefix")}function a(c){if(c===null||ae(c))return r(c);const p=o.events[o.events.length-1];return!o.parser.constructs.disable.null.includes("codeIndented")&&p&&p[1].type==="linePrefix"&&p[2].sliceSerialize(p[1],!0).length>=4?i(c):t.interrupt(o.parser.constructs.flow,r,i)(c)}}function tc(t,i,r,o,s,a,c,p,h){const m=h||Number.POSITIVE_INFINITY;let y=0;return g;function g(A){return A===60?(t.enter(o),t.enter(s),t.enter(a),t.consume(A),t.exit(a),w):A===null||A===32||A===41||Vi(A)?r(A):(t.enter(o),t.enter(c),t.enter(p),t.enter("chunkString",{contentType:"string"}),z(A))}function w(A){return A===62?(t.enter(a),t.consume(A),t.exit(a),t.exit(s),t.exit(o),i):(t.enter(p),t.enter("chunkString",{contentType:"string"}),v(A))}function v(A){return A===62?(t.exit("chunkString"),t.exit(p),w(A)):A===null||A===60||ae(A)?r(A):(t.consume(A),A===92?_:v)}function _(A){return A===60||A===62||A===92?(t.consume(A),v):v(A)}function z(A){return!y&&(A===null||A===41||Le(A))?(t.exit("chunkString"),t.exit(p),t.exit(c),t.exit(o),i(A)):y<m&&A===40?(t.consume(A),y++,z):A===41?(t.consume(A),y--,z):A===null||A===32||A===40||Vi(A)?r(A):(t.consume(A),A===92?D:z)}function D(A){return A===40||A===41||A===92?(t.consume(A),z):z(A)}}function nc(t,i,r,o,s,a){const c=this;let p=0,h;return m;function m(v){return t.enter(o),t.enter(s),t.consume(v),t.exit(s),t.enter(a),y}function y(v){return p>999||v===null||v===91||v===93&&!h||v===94&&!p&&"_hiddenFootnoteSupport"in c.parser.constructs?r(v):v===93?(t.exit(a),t.enter(s),t.consume(v),t.exit(s),t.exit(o),i):ae(v)?(t.enter("lineEnding"),t.consume(v),t.exit("lineEnding"),y):(t.enter("chunkString",{contentType:"string"}),g(v))}function g(v){return v===null||v===91||v===93||ae(v)||p++>999?(t.exit("chunkString"),y(v)):(t.consume(v),h||(h=!Ce(v)),v===92?w:g)}function w(v){return v===91||v===92||v===93?(t.consume(v),p++,g):g(v)}}function rc(t,i,r,o,s,a){let c;return p;function p(w){return w===34||w===39||w===40?(t.enter(o),t.enter(s),t.consume(w),t.exit(s),c=w===40?41:w,h):r(w)}function h(w){return w===c?(t.enter(s),t.consume(w),t.exit(s),t.exit(o),i):(t.enter(a),m(w))}function m(w){return w===c?(t.exit(a),h(c)):w===null?r(w):ae(w)?(t.enter("lineEnding"),t.consume(w),t.exit("lineEnding"),_e(t,m,"linePrefix")):(t.enter("chunkString",{contentType:"string"}),y(w))}function y(w){return w===c||w===null||ae(w)?(t.exit("chunkString"),m(w)):(t.consume(w),w===92?g:y)}function g(w){return w===c||w===92?(t.consume(w),y):y(w)}}function Qr(t,i){let r;return o;function o(s){return ae(s)?(t.enter("lineEnding"),t.consume(s),t.exit("lineEnding"),r=!0,o):Ce(s)?_e(t,o,r?"linePrefix":"lineSuffix")(s):i(s)}}const gg={name:"definition",tokenize:kg},yg={partial:!0,tokenize:vg};function kg(t,i,r){const o=this;let s;return a;function a(v){return t.enter("definition"),c(v)}function c(v){return nc.call(o,t,p,r,"definitionLabel","definitionLabelMarker","definitionLabelString")(v)}function p(v){return s=Mt(o.sliceSerialize(o.events[o.events.length-1][1]).slice(1,-1)),v===58?(t.enter("definitionMarker"),t.consume(v),t.exit("definitionMarker"),h):r(v)}function h(v){return Le(v)?Qr(t,m)(v):m(v)}function m(v){return tc(t,y,r,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(v)}function y(v){return t.attempt(yg,g,g)(v)}function g(v){return Ce(v)?_e(t,w,"whitespace")(v):w(v)}function w(v){return v===null||ae(v)?(t.exit("definition"),o.parser.defined.push(s),i(v)):r(v)}}function vg(t,i,r){return o;function o(p){return Le(p)?Qr(t,s)(p):r(p)}function s(p){return rc(t,a,r,"definitionTitle","definitionTitleMarker","definitionTitleString")(p)}function a(p){return Ce(p)?_e(t,c,"whitespace")(p):c(p)}function c(p){return p===null||ae(p)?i(p):r(p)}}const wg={name:"hardBreakEscape",tokenize:xg};function xg(t,i,r){return o;function o(a){return t.enter("hardBreakEscape"),t.consume(a),s}function s(a){return ae(a)?(t.exit("hardBreakEscape"),i(a)):r(a)}}const Sg={name:"headingAtx",resolve:Eg,tokenize:Cg};function Eg(t,i){let r=t.length-2,o=3,s,a;return t[o][1].type==="whitespace"&&(o+=2),r-2>o&&t[r][1].type==="whitespace"&&(r-=2),t[r][1].type==="atxHeadingSequence"&&(o===r-1||r-4>o&&t[r-2][1].type==="whitespace")&&(r-=o+1===r?2:4),r>o&&(s={type:"atxHeadingText",start:t[o][1].start,end:t[r][1].end},a={type:"chunkText",start:t[o][1].start,end:t[r][1].end,contentType:"text"},Et(t,o,r-o+1,[["enter",s,i],["enter",a,i],["exit",a,i],["exit",s,i]])),t}function Cg(t,i,r){let o=0;return s;function s(y){return t.enter("atxHeading"),a(y)}function a(y){return t.enter("atxHeadingSequence"),c(y)}function c(y){return y===35&&o++<6?(t.consume(y),c):y===null||Le(y)?(t.exit("atxHeadingSequence"),p(y)):r(y)}function p(y){return y===35?(t.enter("atxHeadingSequence"),h(y)):y===null||ae(y)?(t.exit("atxHeading"),i(y)):Ce(y)?_e(t,p,"whitespace")(y):(t.enter("atxHeadingText"),m(y))}function h(y){return y===35?(t.consume(y),h):(t.exit("atxHeadingSequence"),p(y))}function m(y){return y===null||y===35||Le(y)?(t.exit("atxHeadingText"),p(y)):(t.consume(y),m)}}const Tg=["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"],ic=["pre","script","style","textarea"],_g={concrete:!0,name:"htmlFlow",resolveTo:Ng,tokenize:Ag},Ig={partial:!0,tokenize:Rg},Pg={partial:!0,tokenize:bg};function Ng(t){let i=t.length;for(;i--&&!(t[i][0]==="enter"&&t[i][1].type==="htmlFlow"););return i>1&&t[i-2][1].type==="linePrefix"&&(t[i][1].start=t[i-2][1].start,t[i+1][1].start=t[i-2][1].start,t.splice(i-2,2)),t}function Ag(t,i,r){const o=this;let s,a,c,p,h;return m;function m(E){return y(E)}function y(E){return t.enter("htmlFlow"),t.enter("htmlFlowData"),t.consume(E),g}function g(E){return E===33?(t.consume(E),w):E===47?(t.consume(E),a=!0,z):E===63?(t.consume(E),s=3,o.interrupt?i:x):ct(E)?(t.consume(E),c=String.fromCharCode(E),D):r(E)}function w(E){return E===45?(t.consume(E),s=2,v):E===91?(t.consume(E),s=5,p=0,_):ct(E)?(t.consume(E),s=4,o.interrupt?i:x):r(E)}function v(E){return E===45?(t.consume(E),o.interrupt?i:x):r(E)}function _(E){const he="CDATA[";return E===he.charCodeAt(p++)?(t.consume(E),p===he.length?o.interrupt?i:J:_):r(E)}function z(E){return ct(E)?(t.consume(E),c=String.fromCharCode(E),D):r(E)}function D(E){if(E===null||E===47||E===62||Le(E)){const he=E===47,we=c.toLowerCase();return!he&&!a&&ic.includes(we)?(s=1,o.interrupt?i(E):J(E)):Tg.includes(c.toLowerCase())?(s=6,he?(t.consume(E),A):o.interrupt?i(E):J(E)):(s=7,o.interrupt&&!o.parser.lazy[o.now().line]?r(E):a?H(E):M(E))}return E===45||lt(E)?(t.consume(E),c+=String.fromCharCode(E),D):r(E)}function A(E){return E===62?(t.consume(E),o.interrupt?i:J):r(E)}function H(E){return Ce(E)?(t.consume(E),H):R(E)}function M(E){return E===47?(t.consume(E),R):E===58||E===95||ct(E)?(t.consume(E),ne):Ce(E)?(t.consume(E),M):R(E)}function ne(E){return E===45||E===46||E===58||E===95||lt(E)?(t.consume(E),ne):ue(E)}function ue(E){return E===61?(t.consume(E),L):Ce(E)?(t.consume(E),ue):M(E)}function L(E){return E===null||E===60||E===61||E===62||E===96?r(E):E===34||E===39?(t.consume(E),h=E,se):Ce(E)?(t.consume(E),L):de(E)}function se(E){return E===h?(t.consume(E),h=null,ye):E===null||ae(E)?r(E):(t.consume(E),se)}function de(E){return E===null||E===34||E===39||E===47||E===60||E===61||E===62||E===96||Le(E)?ue(E):(t.consume(E),de)}function ye(E){return E===47||E===62||Ce(E)?M(E):r(E)}function R(E){return E===62?(t.consume(E),X):r(E)}function X(E){return E===null||ae(E)?J(E):Ce(E)?(t.consume(E),X):r(E)}function J(E){return E===45&&s===2?(t.consume(E),Z):E===60&&s===1?(t.consume(E),ie):E===62&&s===4?(t.consume(E),I):E===63&&s===3?(t.consume(E),x):E===93&&s===5?(t.consume(E),ee):ae(E)&&(s===6||s===7)?(t.exit("htmlFlowData"),t.check(Ig,F,K)(E)):E===null||ae(E)?(t.exit("htmlFlowData"),K(E)):(t.consume(E),J)}function K(E){return t.check(Pg,Q,F)(E)}function Q(E){return t.enter("lineEnding"),t.consume(E),t.exit("lineEnding"),$}function $(E){return E===null||ae(E)?K(E):(t.enter("htmlFlowData"),J(E))}function Z(E){return E===45?(t.consume(E),x):J(E)}function ie(E){return E===47?(t.consume(E),c="",U):J(E)}function U(E){if(E===62){const he=c.toLowerCase();return ic.includes(he)?(t.consume(E),I):J(E)}return ct(E)&&c.length<8?(t.consume(E),c+=String.fromCharCode(E),U):J(E)}function ee(E){return E===93?(t.consume(E),x):J(E)}function x(E){return E===62?(t.consume(E),I):E===45&&s===2?(t.consume(E),x):J(E)}function I(E){return E===null||ae(E)?(t.exit("htmlFlowData"),F(E)):(t.consume(E),I)}function F(E){return t.exit("htmlFlow"),i(E)}}function bg(t,i,r){const o=this;return s;function s(c){return ae(c)?(t.enter("lineEnding"),t.consume(c),t.exit("lineEnding"),a):r(c)}function a(c){return o.parser.lazy[o.now().line]?r(c):i(c)}}function Rg(t,i,r){return o;function o(s){return t.enter("lineEnding"),t.consume(s),t.exit("lineEnding"),t.attempt(Hr,i,r)}}const zg={name:"htmlText",tokenize:Lg};function Lg(t,i,r){const o=this;let s,a,c;return p;function p(x){return t.enter("htmlText"),t.enter("htmlTextData"),t.consume(x),h}function h(x){return x===33?(t.consume(x),m):x===47?(t.consume(x),ue):x===63?(t.consume(x),M):ct(x)?(t.consume(x),de):r(x)}function m(x){return x===45?(t.consume(x),y):x===91?(t.consume(x),a=0,_):ct(x)?(t.consume(x),H):r(x)}function y(x){return x===45?(t.consume(x),v):r(x)}function g(x){return x===null?r(x):x===45?(t.consume(x),w):ae(x)?(c=g,ie(x)):(t.consume(x),g)}function w(x){return x===45?(t.consume(x),v):g(x)}function v(x){return x===62?Z(x):x===45?w(x):g(x)}function _(x){const I="CDATA[";return x===I.charCodeAt(a++)?(t.consume(x),a===I.length?z:_):r(x)}function z(x){return x===null?r(x):x===93?(t.consume(x),D):ae(x)?(c=z,ie(x)):(t.consume(x),z)}function D(x){return x===93?(t.consume(x),A):z(x)}function A(x){return x===62?Z(x):x===93?(t.consume(x),A):z(x)}function H(x){return x===null||x===62?Z(x):ae(x)?(c=H,ie(x)):(t.consume(x),H)}function M(x){return x===null?r(x):x===63?(t.consume(x),ne):ae(x)?(c=M,ie(x)):(t.consume(x),M)}function ne(x){return x===62?Z(x):M(x)}function ue(x){return ct(x)?(t.consume(x),L):r(x)}function L(x){return x===45||lt(x)?(t.consume(x),L):se(x)}function se(x){return ae(x)?(c=se,ie(x)):Ce(x)?(t.consume(x),se):Z(x)}function de(x){return x===45||lt(x)?(t.consume(x),de):x===47||x===62||Le(x)?ye(x):r(x)}function ye(x){return x===47?(t.consume(x),Z):x===58||x===95||ct(x)?(t.consume(x),R):ae(x)?(c=ye,ie(x)):Ce(x)?(t.consume(x),ye):Z(x)}function R(x){return x===45||x===46||x===58||x===95||lt(x)?(t.consume(x),R):X(x)}function X(x){return x===61?(t.consume(x),J):ae(x)?(c=X,ie(x)):Ce(x)?(t.consume(x),X):ye(x)}function J(x){return x===null||x===60||x===61||x===62||x===96?r(x):x===34||x===39?(t.consume(x),s=x,K):ae(x)?(c=J,ie(x)):Ce(x)?(t.consume(x),J):(t.consume(x),Q)}function K(x){return x===s?(t.consume(x),s=void 0,$):x===null?r(x):ae(x)?(c=K,ie(x)):(t.consume(x),K)}function Q(x){return x===null||x===34||x===39||x===60||x===61||x===96?r(x):x===47||x===62||Le(x)?ye(x):(t.consume(x),Q)}function $(x){return x===47||x===62||Le(x)?ye(x):r(x)}function Z(x){return x===62?(t.consume(x),t.exit("htmlTextData"),t.exit("htmlText"),i):r(x)}function ie(x){return t.exit("htmlTextData"),t.enter("lineEnding"),t.consume(x),t.exit("lineEnding"),U}function U(x){return Ce(x)?_e(t,ee,"linePrefix",o.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(x):ee(x)}function ee(x){return t.enter("htmlTextData"),c(x)}}const Uo={name:"labelEnd",resolveAll:Fg,resolveTo:jg,tokenize:Bg},Dg={tokenize:Ug},Og={tokenize:$g},Mg={tokenize:Vg};function Fg(t){let i=-1;const r=[];for(;++i<t.length;){const o=t[i][1];if(r.push(t[i]),o.type==="labelImage"||o.type==="labelLink"||o.type==="labelEnd"){const s=o.type==="labelImage"?4:2;o.type="data",i+=s}}return t.length!==r.length&&Et(t,0,t.length,r),t}function jg(t,i){let r=t.length,o=0,s,a,c,p;for(;r--;)if(s=t[r][1],a){if(s.type==="link"||s.type==="labelLink"&&s._inactive)break;t[r][0]==="enter"&&s.type==="labelLink"&&(s._inactive=!0)}else if(c){if(t[r][0]==="enter"&&(s.type==="labelImage"||s.type==="labelLink")&&!s._balanced&&(a=r,s.type!=="labelLink")){o=2;break}}else s.type==="labelEnd"&&(c=r);const h={type:t[a][1].type==="labelLink"?"link":"image",start:{...t[a][1].start},end:{...t[t.length-1][1].end}},m={type:"label",start:{...t[a][1].start},end:{...t[c][1].end}},y={type:"labelText",start:{...t[a+o+2][1].end},end:{...t[c-2][1].start}};return p=[["enter",h,i],["enter",m,i]],p=Nt(p,t.slice(a+1,a+o+3)),p=Nt(p,[["enter",y,i]]),p=Nt(p,Wi(i.parser.constructs.insideSpan.null,t.slice(a+o+4,c-3),i)),p=Nt(p,[["exit",y,i],t[c-2],t[c-1],["exit",m,i]]),p=Nt(p,t.slice(c+1)),p=Nt(p,[["exit",h,i]]),Et(t,a,t.length,p),t}function Bg(t,i,r){const o=this;let s=o.events.length,a,c;for(;s--;)if((o.events[s][1].type==="labelImage"||o.events[s][1].type==="labelLink")&&!o.events[s][1]._balanced){a=o.events[s][1];break}return p;function p(w){return a?a._inactive?g(w):(c=o.parser.defined.includes(Mt(o.sliceSerialize({start:a.end,end:o.now()}))),t.enter("labelEnd"),t.enter("labelMarker"),t.consume(w),t.exit("labelMarker"),t.exit("labelEnd"),h):r(w)}function h(w){return w===40?t.attempt(Dg,y,c?y:g)(w):w===91?t.attempt(Og,y,c?m:g)(w):c?y(w):g(w)}function m(w){return t.attempt(Mg,y,g)(w)}function y(w){return i(w)}function g(w){return a._balanced=!0,r(w)}}function Ug(t,i,r){return o;function o(g){return t.enter("resource"),t.enter("resourceMarker"),t.consume(g),t.exit("resourceMarker"),s}function s(g){return Le(g)?Qr(t,a)(g):a(g)}function a(g){return g===41?y(g):tc(t,c,p,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(g)}function c(g){return Le(g)?Qr(t,h)(g):y(g)}function p(g){return r(g)}function h(g){return g===34||g===39||g===40?rc(t,m,r,"resourceTitle","resourceTitleMarker","resourceTitleString")(g):y(g)}function m(g){return Le(g)?Qr(t,y)(g):y(g)}function y(g){return g===41?(t.enter("resourceMarker"),t.consume(g),t.exit("resourceMarker"),t.exit("resource"),i):r(g)}}function $g(t,i,r){const o=this;return s;function s(p){return nc.call(o,t,a,c,"reference","referenceMarker","referenceString")(p)}function a(p){return o.parser.defined.includes(Mt(o.sliceSerialize(o.events[o.events.length-1][1]).slice(1,-1)))?i(p):r(p)}function c(p){return r(p)}}function Vg(t,i,r){return o;function o(a){return t.enter("reference"),t.enter("referenceMarker"),t.consume(a),t.exit("referenceMarker"),s}function s(a){return a===93?(t.enter("referenceMarker"),t.consume(a),t.exit("referenceMarker"),t.exit("reference"),i):r(a)}}const Hg={name:"labelStartImage",resolveAll:Uo.resolveAll,tokenize:Wg};function Wg(t,i,r){const o=this;return s;function s(p){return t.enter("labelImage"),t.enter("labelImageMarker"),t.consume(p),t.exit("labelImageMarker"),a}function a(p){return p===91?(t.enter("labelMarker"),t.consume(p),t.exit("labelMarker"),t.exit("labelImage"),c):r(p)}function c(p){return p===94&&"_hiddenFootnoteSupport"in o.parser.constructs?r(p):i(p)}}const Qg={name:"labelStartLink",resolveAll:Uo.resolveAll,tokenize:qg};function qg(t,i,r){const o=this;return s;function s(c){return t.enter("labelLink"),t.enter("labelMarker"),t.consume(c),t.exit("labelMarker"),t.exit("labelLink"),a}function a(c){return c===94&&"_hiddenFootnoteSupport"in o.parser.constructs?r(c):i(c)}}const $o={name:"lineEnding",tokenize:Yg};function Yg(t,i){return r;function r(o){return t.enter("lineEnding"),t.consume(o),t.exit("lineEnding"),_e(t,i,"linePrefix")}}const Qi={name:"thematicBreak",tokenize:Kg};function Kg(t,i,r){let o=0,s;return a;function a(m){return t.enter("thematicBreak"),c(m)}function c(m){return s=m,p(m)}function p(m){return m===s?(t.enter("thematicBreakSequence"),h(m)):o>=3&&(m===null||ae(m))?(t.exit("thematicBreak"),i(m)):r(m)}function h(m){return m===s?(t.consume(m),o++,h):(t.exit("thematicBreakSequence"),Ce(m)?_e(t,p,"whitespace")(m):p(m))}}const gt={continuation:{tokenize:Zg},exit:ty,name:"list",tokenize:Jg},Gg={partial:!0,tokenize:ny},Xg={partial:!0,tokenize:ey};function Jg(t,i,r){const o=this,s=o.events[o.events.length-1];let a=s&&s[1].type==="linePrefix"?s[2].sliceSerialize(s[1],!0).length:0,c=0;return p;function p(v){const _=o.containerState.type||(v===42||v===43||v===45?"listUnordered":"listOrdered");if(_==="listUnordered"?!o.containerState.marker||v===o.containerState.marker:Fo(v)){if(o.containerState.type||(o.containerState.type=_,t.enter(_,{_container:!0})),_==="listUnordered")return t.enter("listItemPrefix"),v===42||v===45?t.check(Qi,r,m)(v):m(v);if(!o.interrupt||v===49)return t.enter("listItemPrefix"),t.enter("listItemValue"),h(v)}return r(v)}function h(v){return Fo(v)&&++c<10?(t.consume(v),h):(!o.interrupt||c<2)&&(o.containerState.marker?v===o.containerState.marker:v===41||v===46)?(t.exit("listItemValue"),m(v)):r(v)}function m(v){return t.enter("listItemMarker"),t.consume(v),t.exit("listItemMarker"),o.containerState.marker=o.containerState.marker||v,t.check(Hr,o.interrupt?r:y,t.attempt(Gg,w,g))}function y(v){return o.containerState.initialBlankLine=!0,a++,w(v)}function g(v){return Ce(v)?(t.enter("listItemPrefixWhitespace"),t.consume(v),t.exit("listItemPrefixWhitespace"),w):r(v)}function w(v){return o.containerState.size=a+o.sliceSerialize(t.exit("listItemPrefix"),!0).length,i(v)}}function Zg(t,i,r){const o=this;return o.containerState._closeFlow=void 0,t.check(Hr,s,a);function s(p){return o.containerState.furtherBlankLines=o.containerState.furtherBlankLines||o.containerState.initialBlankLine,_e(t,i,"listItemIndent",o.containerState.size+1)(p)}function a(p){return o.containerState.furtherBlankLines||!Ce(p)?(o.containerState.furtherBlankLines=void 0,o.containerState.initialBlankLine=void 0,c(p)):(o.containerState.furtherBlankLines=void 0,o.containerState.initialBlankLine=void 0,t.attempt(Xg,i,c)(p))}function c(p){return o.containerState._closeFlow=!0,o.interrupt=void 0,_e(t,t.attempt(gt,i,r),"linePrefix",o.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(p)}}function ey(t,i,r){const o=this;return _e(t,s,"listItemIndent",o.containerState.size+1);function s(a){const c=o.events[o.events.length-1];return c&&c[1].type==="listItemIndent"&&c[2].sliceSerialize(c[1],!0).length===o.containerState.size?i(a):r(a)}}function ty(t){t.exit(this.containerState.type)}function ny(t,i,r){const o=this;return _e(t,s,"listItemPrefixWhitespace",o.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function s(a){const c=o.events[o.events.length-1];return!Ce(a)&&c&&c[1].type==="listItemPrefixWhitespace"?i(a):r(a)}}const lc={name:"setextUnderline",resolveTo:ry,tokenize:iy};function ry(t,i){let r=t.length,o,s,a;for(;r--;)if(t[r][0]==="enter"){if(t[r][1].type==="content"){o=r;break}t[r][1].type==="paragraph"&&(s=r)}else t[r][1].type==="content"&&t.splice(r,1),!a&&t[r][1].type==="definition"&&(a=r);const c={type:"setextHeading",start:{...t[o][1].start},end:{...t[t.length-1][1].end}};return t[s][1].type="setextHeadingText",a?(t.splice(s,0,["enter",c,i]),t.splice(a+1,0,["exit",t[o][1],i]),t[o][1].end={...t[a][1].end}):t[o][1]=c,t.push(["exit",c,i]),t}function iy(t,i,r){const o=this;let s;return a;function a(m){let y=o.events.length,g;for(;y--;)if(o.events[y][1].type!=="lineEnding"&&o.events[y][1].type!=="linePrefix"&&o.events[y][1].type!=="content"){g=o.events[y][1].type==="paragraph";break}return!o.parser.lazy[o.now().line]&&(o.interrupt||g)?(t.enter("setextHeadingLine"),s=m,c(m)):r(m)}function c(m){return t.enter("setextHeadingLineSequence"),p(m)}function p(m){return m===s?(t.consume(m),p):(t.exit("setextHeadingLineSequence"),Ce(m)?_e(t,h,"lineSuffix")(m):h(m))}function h(m){return m===null||ae(m)?(t.exit("setextHeadingLine"),i(m)):r(m)}}const ly={tokenize:oy};function oy(t){const i=this,r=t.attempt(Hr,o,t.attempt(this.parser.constructs.flowInitial,s,_e(t,t.attempt(this.parser.constructs.flow,s,t.attempt(fg,s)),"linePrefix")));return r;function o(a){if(a===null){t.consume(a);return}return t.enter("lineEndingBlank"),t.consume(a),t.exit("lineEndingBlank"),i.currentConstruct=void 0,r}function s(a){if(a===null){t.consume(a);return}return t.enter("lineEnding"),t.consume(a),t.exit("lineEnding"),i.currentConstruct=void 0,r}}const uy={resolveAll:uc()},sy=oc("string"),ay=oc("text");function oc(t){return{resolveAll:uc(t==="text"?cy:void 0),tokenize:i};function i(r){const o=this,s=this.parser.constructs[t],a=r.attempt(s,c,p);return c;function c(y){return m(y)?a(y):p(y)}function p(y){if(y===null){r.consume(y);return}return r.enter("data"),r.consume(y),h}function h(y){return m(y)?(r.exit("data"),a(y)):(r.consume(y),h)}function m(y){if(y===null)return!0;const g=s[y];let w=-1;if(g)for(;++w<g.length;){const v=g[w];if(!v.previous||v.previous.call(o,o.previous))return!0}return!1}}}function uc(t){return i;function i(r,o){let s=-1,a;for(;++s<=r.length;)a===void 0?r[s]&&r[s][1].type==="data"&&(a=s,s++):(!r[s]||r[s][1].type!=="data")&&(s!==a+2&&(r[a][1].end=r[s-1][1].end,r.splice(a+2,s-a-2),s=a+2),a=void 0);return t?t(r,o):r}}function cy(t,i){let r=0;for(;++r<=t.length;)if((r===t.length||t[r][1].type==="lineEnding")&&t[r-1][1].type==="data"){const o=t[r-1][1],s=i.sliceStream(o);let a=s.length,c=-1,p=0,h;for(;a--;){const m=s[a];if(typeof m=="string"){for(c=m.length;m.charCodeAt(c-1)===32;)p++,c--;if(c)break;c=-1}else if(m===-2)h=!0,p++;else if(m!==-1){a++;break}}if(i._contentTypeTextTrailing&&r===t.length&&(p=0),p){const m={type:r===t.length||h||p<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:a?c:o.start._bufferIndex+c,_index:o.start._index+a,line:o.end.line,column:o.end.column-p,offset:o.end.offset-p},end:{...o.end}};o.end={...m.start},o.start.offset===o.end.offset?Object.assign(o,m):(t.splice(r,0,["enter",m,i],["exit",m,i]),r+=2)}r++}return t}const fy=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:{null:[42,95]},contentInitial:{91:gg},disable:{null:[]},document:{42:gt,43:gt,45:gt,48:gt,49:gt,50:gt,51:gt,52:gt,53:gt,54:gt,55:gt,56:gt,57:gt,62:Ka},flow:{35:Sg,42:Qi,45:[lc,Qi],60:_g,61:lc,95:Qi,96:Za,126:Za},flowInitial:{[-2]:Bo,[-1]:Bo,32:Bo},insideSpan:{null:[jo,uy]},string:{38:Xa,92:Ga},text:{[-5]:$o,[-4]:$o,[-3]:$o,33:Hg,38:Xa,42:jo,60:[Qm,zg],91:Qg,92:[wg,Ga],93:Uo,95:jo,96:lg}},Symbol.toStringTag,{value:"Module"}));function py(t,i,r){let o={_bufferIndex:-1,_index:0,line:r&&r.line||1,column:r&&r.column||1,offset:r&&r.offset||0};const s={},a=[];let c=[],p=[];const h={attempt:se(ue),check:se(L),consume:H,enter:M,exit:ne,interrupt:se(L,{interrupt:!0})},m={code:null,containerState:{},defineSkip:z,events:[],now:_,parser:t,previous:null,sliceSerialize:w,sliceStream:v,write:g};let y=i.tokenize.call(m,h);return i.resolveAll&&a.push(i),m;function g(X){return c=Nt(c,X),D(),c[c.length-1]!==null?[]:(de(i,0),m.events=Wi(a,m.events,m),m.events)}function w(X,J){return hy(v(X),J)}function v(X){return dy(c,X)}function _(){const{_bufferIndex:X,_index:J,line:K,column:Q,offset:$}=o;return{_bufferIndex:X,_index:J,line:K,column:Q,offset:$}}function z(X){s[X.line]=X.column,R()}function D(){let X;for(;o._index<c.length;){const J=c[o._index];if(typeof J=="string")for(X=o._index,o._bufferIndex<0&&(o._bufferIndex=0);o._index===X&&o._bufferIndex<J.length;)A(J.charCodeAt(o._bufferIndex));else A(J)}}function A(X){y=y(X)}function H(X){ae(X)?(o.line++,o.column=1,o.offset+=X===-3?2:1,R()):X!==-1&&(o.column++,o.offset++),o._bufferIndex<0?o._index++:(o._bufferIndex++,o._bufferIndex===c[o._index].length&&(o._bufferIndex=-1,o._index++)),m.previous=X}function M(X,J){const K=J||{};return K.type=X,K.start=_(),m.events.push(["enter",K,m]),p.push(K),K}function ne(X){const J=p.pop();return J.end=_(),m.events.push(["exit",J,m]),J}function ue(X,J){de(X,J.from)}function L(X,J){J.restore()}function se(X,J){return K;function K(Q,$,Z){let ie,U,ee,x;return Array.isArray(Q)?F(Q):"tokenize"in Q?F([Q]):I(Q);function I(pe){return Ne;function Ne(Se){const be=Se!==null&&pe[Se],Qe=Se!==null&&pe.null,tn=[...Array.isArray(be)?be:be?[be]:[],...Array.isArray(Qe)?Qe:Qe?[Qe]:[]];return F(tn)(Se)}}function F(pe){return ie=pe,U=0,pe.length===0?Z:E(pe[U])}function E(pe){return Ne;function Ne(Se){return x=ye(),ee=pe,pe.partial||(m.currentConstruct=pe),pe.name&&m.parser.constructs.disable.null.includes(pe.name)?we():pe.tokenize.call(J?Object.assign(Object.create(m),J):m,h,he,we)(Se)}}function he(pe){return X(ee,x),$}function we(pe){return x.restore(),++U<ie.length?E(ie[U]):Z}}}function de(X,J){X.resolveAll&&!a.includes(X)&&a.push(X),X.resolve&&Et(m.events,J,m.events.length-J,X.resolve(m.events.slice(J),m)),X.resolveTo&&(m.events=X.resolveTo(m.events,m))}function ye(){const X=_(),J=m.previous,K=m.currentConstruct,Q=m.events.length,$=Array.from(p);return{from:Q,restore:Z};function Z(){o=X,m.previous=J,m.currentConstruct=K,m.events.length=Q,p=$,R()}}function R(){o.line in s&&o.column<2&&(o.column=s[o.line],o.offset+=s[o.line]-1)}}function dy(t,i){const r=i.start._index,o=i.start._bufferIndex,s=i.end._index,a=i.end._bufferIndex;let c;if(r===s)c=[t[r].slice(o,a)];else{if(c=t.slice(r,s),o>-1){const p=c[0];typeof p=="string"?c[0]=p.slice(o):c.shift()}a>0&&c.push(t[s].slice(0,a))}return c}function hy(t,i){let r=-1;const o=[];let s;for(;++r<t.length;){const a=t[r];let c;if(typeof a=="string")c=a;else switch(a){case-5:{c="\r";break}case-4:{c=`
16
+ `):null}if(t&&typeof t=="object"){const i=t;if(Array.isArray(i.response))return $i(i.response);const r=i.data;if(r&&typeof r=="object"){const o=r.content;if(typeof o=="string")return o}return typeof i.content=="string"?i.content:typeof i.text=="string"?i.text:null}return null}function wh(t){var r;if(!t)return"";const i=t.trim();if(!pa(i))return t;try{return(r=$i(JSON.parse(i)))!=null?r:""}catch{return t}}function Sh(t){var r;if(!t)return"";const i=t.trim();if(!pa(i))return t;try{return(r=$i(JSON.parse(i)))!=null?r:t}catch{return t}}const Eh={status:"idle",answer:null,streamingText:"",agentTyping:!1,error:null,lastQuestion:null,connectionReady:!0};function Ch(t,i){switch(i.type){case"SET_STATUS":return{...t,status:i.status,...i.status==="connected"||i.status==="connecting"?{error:null}:{}};case"ASK_QUESTION":return{...t,answer:null,streamingText:"",error:null,lastQuestion:i.question};case"APPEND_STREAMING_TOKEN":return{...t,streamingText:t.streamingText+wh(i.token)};case"SET_ANSWER":return{...t,answer:Sh(i.content),streamingText:"",agentTyping:!1};case"SET_AGENT_TYPING":return{...t,agentTyping:i.typing};case"SET_ERROR":return{...t,error:i.error,...i.error?{lastQuestion:null,answer:null,streamingText:"",agentTyping:!1}:{}};case"SET_CONNECTION_READY":return{...t,connectionReady:i.ready};case"RESET_CONVERSATION":return{...t,lastQuestion:null,answer:null,streamingText:"",agentTyping:!1,error:null};default:return t}}const Th="iaw:sess";function da(t,i){return`${Th}:${t}:${i}`}function xo(){try{return typeof localStorage=="undefined"?null:localStorage}catch{return null}}function _h(t){var i;try{const r=t.split(".")[1];return r?((i=JSON.parse(Ih(r)).exp)!=null?i:0)*1e3:0}catch{return 0}}function Ih(t){let i=t.replace(/-/g,"+").replace(/_/g,"/");const r=i.length%4;return r&&(i+="=".repeat(4-r)),atob(i)}function Ph(t){if(typeof t!="object"||t===null)return!1;const i=t;return typeof i.accessToken=="string"&&i.accessToken.length>0&&typeof i.conversationId=="string"&&i.conversationId.length>0&&(i.lastEventId===null||typeof i.lastEventId=="string")}function Ah(t,i=Date.now(),r){const o=xo();if(!o)return r==null||r("no-storage"),null;let s;try{s=o.getItem(t)}catch{return r==null||r("read-threw"),null}if(!s)return r==null||r("absent"),null;let a;try{a=JSON.parse(s)}catch{return Zt(t),r==null||r("malformed"),null}return Ph(a)?_h(a.accessToken)<=i?(Zt(t),r==null||r("token-expired"),null):a:(Zt(t),r==null||r("wrong-shape"),null)}function Nh(t,i){const r=xo();if(r)try{r.setItem(t,JSON.stringify(i))}catch{}}function Zt(t){const i=xo();if(i)try{i.removeItem(t)}catch{}}const Rh="Viewing product details for inline-widget:",zh=[{productIdPattern:"/product/([^/?#]+)"}];function ha(t,i){var s,a,c;const{productIdParam:r,productIdPattern:o}=i;if(r)try{const p=(s=new URLSearchParams(t.search).get(r))==null?void 0:s.trim();if(p)return p}catch{}if(o)try{const p=(c=(a=new RegExp(o).exec(t.pathname))==null?void 0:a[1])==null?void 0:c.trim();if(p)return decodeURIComponent(p)}catch{}return null}function Lh(){var i,r;return typeof document=="undefined"?null:((r=(i=document.querySelector(".product-detail[data-pid]"))==null?void 0:i.dataset.pid)==null?void 0:r.trim())||null}function wo(t,i){const{productIdParam:r,productIdPattern:o}=i;if(!!(r||o))return ha(t,i);for(const a of zh){const c=ha(t,a);if(c)return c}return Lh()}function Dh(t,i){return i?`(${Rh} ${i})
17
+
18
+ ${t}`:t}function ma(t){return t instanceof Bi&&t.statusCode===400&&typeof t.responseBody=="string"&&t.responseBody.includes("maximum length")}function ga(t){return ma(t)?"Message exceeds the maximum length of 4,000 characters.":t instanceof Ui?"Unable to reach the server. Please try again.":"Something went wrong. Please try again."}function bh({config:t,children:i,hostElement:r,conversationIdRef:o}){const[s,a]=$e.useReducer(Ch,Eh),c=$e.useRef(null),p=$e.useRef(!1),h=$e.useRef(null),m=$e.useRef(null),y=$e.useRef(!1),g=$e.useRef(null),{scrt2Url:x,orgId:v,esDeveloperName:_,capabilitiesVersion:D,enableLogging:b,persistSession:R,productIdParam:U,productIdPattern:M}=t,ne=$e.useRef({productIdParam:U,productIdPattern:M});$e.useEffect(()=>{ne.current={productIdParam:U,productIdPattern:M}},[U,M]),$e.useEffect(()=>{if(typeof window=="undefined")return;let P=wo(window.location,{productIdParam:U,productIdPattern:M});const W=()=>{const Y=wo(window.location,{productIdParam:U,productIdPattern:M});Y!==P&&(P=Y,a({type:"RESET_CONVERSATION"}))},G=history.pushState.bind(history),J=history.replaceState.bind(history);return history.pushState=(...Y)=>{G(...Y),W()},history.replaceState=(...Y)=>{J(...Y),W()},window.addEventListener("popstate",W),()=>{history.pushState=G,history.replaceState=J,window.removeEventListener("popstate",W)}},[U,M]),$e.useEffect(()=>{if(!x||!v||!_)return;const P=new sa({baseURL:x,orgId:v,esDeveloperName:_,options:{capabilitiesVersion:D,enableLogging:b}});c.current=P,p.current=!1,y.current=!1,h.current=null;const W=da(v,_),G=R?{async tryRestore(){let J="";const Y=Ah(W,void 0,H=>{J=H});if(!Y)return b&&console.log(`[Agentforce] persist: no restorable session (reason: ${J}) — starting a fresh handshake`),!1;try{return await P.restore({accessToken:Y.accessToken,conversationId:Y.conversationId,lastEventId:Y.lastEventId}),a({type:"SET_CONNECTION_READY",ready:!0}),!0}catch(H){return b&&console.warn(`[Agentforce] persist: restore failed (${H instanceof Error?H.message:String(H)}) — clearing stored session, starting a fresh handshake`),Zt(W),!1}},save(){const{accessToken:J,conversationId:Y,lastEventId:H}=P;!J||!Y||Nh(W,{accessToken:J,conversationId:Y,lastEventId:H})}}:null;return g.current=G,G||Zt(W),P.on("connected",()=>a({type:"SET_STATUS",status:"connected"})),P.on("disconnected",()=>a({type:"SET_STATUS",status:"disconnected"})),P.on("reconnecting",()=>a({type:"SET_STATUS",status:"reconnecting"})),P.on("typing_started",()=>{p.current&&a({type:"SET_AGENT_TYPING",typing:!0})}),P.on("typing_stopped",()=>{p.current&&a({type:"SET_AGENT_TYPING",typing:!1})}),P.on("streaming_token",J=>{y.current&&(y.current=!1),p.current&&a({type:"APPEND_STREAMING_TOKEN",token:J.token})}),P.on("message",J=>{const Y=J.sender.role!=="EndUser";if(!p.current){y.current&&Y&&(y.current=!1,m.current&&(clearTimeout(m.current),m.current=null),a({type:"SET_CONNECTION_READY",ready:!0}));return}if(y.current&&Y){y.current=!1;return}a({type:"SET_ANSWER",content:J.content})}),P.on("session_ready",J=>{r&&r.dispatchEvent(new CustomEvent("iaw:session-ready",{detail:{conversationId:J.conversationId,messagingSessionId:J.messagingSessionId},bubbles:!0,composed:!0}))}),P.on("error",J=>{if(J.code==="SESSION_EXPIRED"){Zt(W),p.current=!1,y.current=!1,h.current=null,a({type:"SET_ANSWER",content:""}),a({type:"SET_STATUS",status:"idle"}),a({type:"SET_ERROR",error:null}),a({type:"SET_CONNECTION_READY",ready:!0});return}a({type:"SET_ERROR",error:"Something went wrong. Please try again."}),J.recoverable===!1&&Zt(W)}),()=>{P.off(),o&&(o.current=null),m.current&&(clearTimeout(m.current),m.current=null);const J=P.conversationId!=null;P.endConversation(),P.disconnect(),J&&Zt(W),c.current===P&&(c.current=null),g.current===G&&(g.current=null)}},[x,v,_,D,b,R]);const le=$e.useCallback(()=>{a({type:"SET_STATUS",status:"connecting"}),a({type:"SET_CONNECTION_READY",ready:!1}),y.current=!0,m.current&&clearTimeout(m.current),m.current=setTimeout(()=>{m.current=null,a({type:"SET_CONNECTION_READY",ready:!0})},5e3)},[]),L=$e.useCallback(()=>{var W,G;const P=(G=(W=c.current)==null?void 0:W.conversationId)!=null?G:null;o&&(o.current=P)},[o]),oe=$e.useCallback(()=>{var W;const P=c.current;P&&fa(P,h,le,(W=g.current)!=null?W:void 0,L).catch(()=>{})},[le,L]),he=$e.useCallback(async P=>{var H;const W=c.current,G=P.trim();if(!W||!G)return!1;if(G.length>4e3)return a({type:"SET_ERROR",error:"Message exceeds the maximum length of 4,000 characters."}),!1;a({type:"ASK_QUESTION",question:G});const J=Dh(G,typeof window!="undefined"?wo(window.location,ne.current):null),Y=async()=>{var ce;if(await fa(W,h,le,(ce=g.current)!=null?ce:void 0,L),c.current!==W)throw new Error("unmounted");await W.sendMessage(J)};try{await Y()}catch(ce){if(ma(ce))return a({type:"SET_ERROR",error:ga(ce)}),!1;b&&console.warn("[Agentforce] first attempt failed, retrying with fresh session:",ce);const ye=da(v,_);Zt(ye),p.current=!1,y.current=!1,h.current=null;try{await Y()}catch(Q){return b&&console.error("[Agentforce] retry also failed:",Q),a({type:"SET_ERROR",error:ga(Q)}),a({type:"SET_STATUS",status:"disconnected"}),!1}}return c.current!==W?!1:((H=g.current)==null||H.save(),p.current=!0,!0)},[le,L]),ke=$e.useMemo(()=>({state:s,dispatch:a,sendMessage:he,prepareConnection:oe,config:t}),[s,he,oe,t]);return ve.jsx(aa.Provider,{value:ke,children:i})}function Oh(){return ve.jsx("svg",{className:"header-icon",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:ve.jsx("path",{d:"M6.62479 10.3342C6.56527 10.1034 6.44502 9.89289 6.27653 9.72441C6.10805 9.55592 5.8975 9.43567 5.66679 9.37615L1.57679 8.32148C1.50701 8.30168 1.4456 8.25965 1.40186 8.20178C1.35813 8.14391 1.33447 8.07335 1.33447 8.00082C1.33447 7.92828 1.35813 7.85772 1.40186 7.79985C1.4456 7.74198 1.50701 7.69996 1.57679 7.68015L5.66679 6.62482C5.89742 6.56535 6.10792 6.4452 6.27639 6.27684C6.44486 6.10849 6.56517 5.89808 6.62479 5.66748L7.67946 1.57748C7.69906 1.50743 7.74105 1.44571 7.799 1.40175C7.85696 1.35778 7.92771 1.33398 8.00046 1.33398C8.0732 1.33398 8.14395 1.35778 8.20191 1.40175C8.25987 1.44571 8.30185 1.50743 8.32146 1.57748L9.37546 5.66748C9.43497 5.8982 9.55523 6.10875 9.72371 6.27723C9.89219 6.44571 10.1027 6.56597 10.3335 6.62548L14.4235 7.67948C14.4938 7.69888 14.5558 7.74082 14.6 7.79887C14.6442 7.85691 14.6682 7.92786 14.6682 8.00082C14.6682 8.07378 14.6442 8.14472 14.6 8.20277C14.5558 8.26081 14.4938 8.30275 14.4235 8.32215L10.3335 9.37615C10.1027 9.43567 9.89219 9.55592 9.72371 9.72441C9.55523 9.89289 9.43497 10.1034 9.37546 10.3342L8.32079 14.4242C8.30118 14.4942 8.2592 14.5559 8.20124 14.5999C8.14328 14.6439 8.07254 14.6677 7.99979 14.6677C7.92704 14.6677 7.85629 14.6439 7.79834 14.5999C7.74038 14.5559 7.69839 14.4942 7.67879 14.4242L6.62479 10.3342Z"})})}function Mh(){return ve.jsxs("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[ve.jsx("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"}),ve.jsx("path",{d:"m21.854 2.147-10.94 10.939"})]})}function Fh(){var x;const{sendMessage:t,prepareConnection:i,config:r,state:o}=ca(),[s,a]=$e.useState(""),c=$e.useRef(null),p=o.agentTyping||o.streamingText.length>0,h=!o.connectionReady,m=v=>{a(v.target.value),v.target.value.length>0&&i()},y=v=>{v.preventDefault(),!(s.trim().length===0||p||h)&&(t(s),a(""))},g=v=>{p||h||v.key!=="Enter"||v.nativeEvent.isComposing||v.shiftKey||(v.preventDefault(),s.trim().length!==0&&(t(s),a("")))};return $e.useLayoutEffect(()=>{const v=c.current;v&&(v.style.height="auto",v.style.height=`${v.scrollHeight}px`)},[s]),ve.jsxs("form",{className:"composer",onSubmit:y,children:[ve.jsx("textarea",{ref:c,className:"composer-input",rows:1,value:s,onChange:m,onKeyDown:g,placeholder:(x=r.placeholder)!=null?x:"Ask me anything","aria-label":"Ask a question",disabled:p}),ve.jsx("button",{className:"composer-send",type:"submit",disabled:s.trim().length===0||p||h,"aria-label":"Send question",children:ve.jsx(Mh,{})})]})}function f0(){}function p0(){}function jh(t,i){const r={};return(t[t.length-1]===""?[...t,""]:t).join((r.padRight?" ":"")+","+(r.padLeft===!1?"":" ")).trim()}const Bh=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Uh=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,$h={};function ya(t,i){return($h.jsx?Uh:Bh).test(t)}const Vh=/[ \t\n\f\r]/g;function Hh(t){return typeof t=="object"?t.type==="text"?ka(t.value):!1:ka(t)}function ka(t){return t.replace(Vh,"")===""}class jr{constructor(i,r,o){this.normal=r,this.property=i,o&&(this.space=o)}}jr.prototype.normal={},jr.prototype.property={},jr.prototype.space=void 0;function va(t,i){const r={},o={};for(const s of t)Object.assign(r,s.property),Object.assign(o,s.normal);return new jr(r,o,i)}function So(t){return t.toLowerCase()}class mt{constructor(i,r){this.attribute=r,this.property=i}}mt.prototype.attribute="",mt.prototype.booleanish=!1,mt.prototype.boolean=!1,mt.prototype.commaOrSpaceSeparated=!1,mt.prototype.commaSeparated=!1,mt.prototype.defined=!1,mt.prototype.mustUseProperty=!1,mt.prototype.number=!1,mt.prototype.overloadedBoolean=!1,mt.prototype.property="",mt.prototype.spaceSeparated=!1,mt.prototype.space=void 0;let Wh=0;const ge=Bn(),We=Bn(),Eo=Bn(),V=Bn(),Le=Bn(),jn=Bn(),St=Bn();function Bn(){return 2**++Wh}const Co=Object.freeze(Object.defineProperty({__proto__:null,boolean:ge,booleanish:We,commaOrSpaceSeparated:St,commaSeparated:jn,number:V,overloadedBoolean:Eo,spaceSeparated:Le},Symbol.toStringTag,{value:"Module"})),To=Object.keys(Co);class _o extends mt{constructor(i,r,o,s){let a=-1;if(super(i,r),xa(this,"space",s),typeof o=="number")for(;++a<To.length;){const c=To[a];xa(this,To[a],(o&Co[c])===Co[c])}}}_o.prototype.defined=!0;function xa(t,i,r){r&&(t[i]=r)}function lr(t){const i={},r={};for(const[o,s]of Object.entries(t.properties)){const a=new _o(o,t.transform(t.attributes||{},o),s,t.space);t.mustUseProperty&&t.mustUseProperty.includes(o)&&(a.mustUseProperty=!0),i[o]=a,r[So(o)]=o,r[So(a.attribute)]=o}return new jr(i,r,t.space)}const wa=lr({properties:{ariaActiveDescendant:null,ariaAtomic:We,ariaAutoComplete:null,ariaBusy:We,ariaChecked:We,ariaColCount:V,ariaColIndex:V,ariaColSpan:V,ariaControls:Le,ariaCurrent:null,ariaDescribedBy:Le,ariaDetails:null,ariaDisabled:We,ariaDropEffect:Le,ariaErrorMessage:null,ariaExpanded:We,ariaFlowTo:Le,ariaGrabbed:We,ariaHasPopup:null,ariaHidden:We,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Le,ariaLevel:V,ariaLive:null,ariaModal:We,ariaMultiLine:We,ariaMultiSelectable:We,ariaOrientation:null,ariaOwns:Le,ariaPlaceholder:null,ariaPosInSet:V,ariaPressed:We,ariaReadOnly:We,ariaRelevant:null,ariaRequired:We,ariaRoleDescription:Le,ariaRowCount:V,ariaRowIndex:V,ariaRowSpan:V,ariaSelected:We,ariaSetSize:V,ariaSort:null,ariaValueMax:V,ariaValueMin:V,ariaValueNow:V,ariaValueText:null,role:null},transform(t,i){return i==="role"?i:"aria-"+i.slice(4).toLowerCase()}});function Sa(t,i){return i in t?t[i]:i}function Ea(t,i){return Sa(t,i.toLowerCase())}const qh=lr({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:jn,acceptCharset:Le,accessKey:Le,action:null,allow:null,allowFullScreen:ge,allowPaymentRequest:ge,allowUserMedia:ge,alpha:ge,alt:null,as:null,async:ge,autoCapitalize:null,autoComplete:Le,autoFocus:ge,autoPlay:ge,blocking:Le,capture:null,charSet:null,checked:ge,cite:null,className:Le,closedBy:null,colorSpace:null,cols:V,colSpan:V,command:null,commandFor:null,content:null,contentEditable:We,controls:ge,controlsList:Le,coords:V|jn,crossOrigin:null,data:null,dateTime:null,decoding:null,default:ge,defer:ge,dir:null,dirName:null,disabled:ge,download:Eo,draggable:We,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:ge,formTarget:null,headers:Le,height:V,hidden:Eo,high:V,href:null,hrefLang:null,htmlFor:Le,httpEquiv:Le,id:null,imageSizes:null,imageSrcSet:null,inert:ge,inputMode:null,integrity:null,is:null,isMap:ge,itemId:null,itemProp:Le,itemRef:Le,itemScope:ge,itemType:Le,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:ge,low:V,manifest:null,max:null,maxLength:V,media:null,method:null,min:null,minLength:V,multiple:ge,muted:ge,name:null,nonce:null,noModule:ge,noValidate:ge,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:ge,optimum:V,pattern:null,ping:Le,placeholder:null,playsInline:ge,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:ge,referrerPolicy:null,rel:Le,required:ge,reversed:ge,rows:V,rowSpan:V,sandbox:Le,scope:null,scoped:ge,seamless:ge,selected:ge,shadowRootClonable:ge,shadowRootCustomElementRegistry:ge,shadowRootDelegatesFocus:ge,shadowRootMode:null,shadowRootSerializable:ge,shape:null,size:V,sizes:null,slot:null,span:V,spellCheck:We,src:null,srcDoc:null,srcLang:null,srcSet:null,start:V,step:null,style:null,tabIndex:V,target:null,title:null,translate:null,type:null,typeMustMatch:ge,useMap:null,value:We,width:V,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Le,axis:null,background:null,bgColor:null,border:V,borderColor:null,bottomMargin:V,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:ge,declare:ge,event:null,face:null,frame:null,frameBorder:null,hSpace:V,leftMargin:V,link:null,longDesc:null,lowSrc:null,marginHeight:V,marginWidth:V,noResize:ge,noHref:ge,noShade:ge,noWrap:ge,object:null,profile:null,prompt:null,rev:null,rightMargin:V,rules:null,scheme:null,scrolling:We,standby:null,summary:null,text:null,topMargin:V,valueType:null,version:null,vAlign:null,vLink:null,vSpace:V,allowTransparency:null,autoCorrect:null,autoSave:null,credentialless:ge,disablePictureInPicture:ge,disableRemotePlayback:ge,exportParts:jn,part:Le,prefix:null,property:null,results:V,security:null,unselectable:null},space:"html",transform:Ea}),Qh=lr({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",maskType:"mask-type",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:St,accentHeight:V,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:V,amplitude:V,arabicForm:null,ascent:V,attributeName:null,attributeType:null,azimuth:V,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:V,by:null,calcMode:null,capHeight:V,className:Le,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:V,diffuseConstant:V,direction:null,display:null,dur:null,divisor:V,dominantBaseline:null,download:ge,dx:null,dy:null,edgeMode:null,editable:null,elevation:V,enableBackground:null,end:null,event:null,exponent:V,externalResourcesRequired:null,fill:null,fillOpacity:V,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:jn,g2:jn,glyphName:jn,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:V,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:V,horizOriginX:V,horizOriginY:V,id:null,ideographic:V,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:V,k:V,k1:V,k2:V,k3:V,k4:V,kernelMatrix:St,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:V,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskType:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:V,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:V,overlineThickness:V,paintOrder:null,panose1:null,path:null,pathLength:V,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Le,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:V,pointsAtY:V,pointsAtZ:V,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:St,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:St,rev:St,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:St,requiredFeatures:St,requiredFonts:St,requiredFormats:St,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:V,specularExponent:V,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:V,strikethroughThickness:V,string:null,stroke:null,strokeDashArray:St,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:V,strokeOpacity:V,strokeWidth:null,style:null,surfaceScale:V,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:St,tabIndex:V,tableValues:null,target:null,targetX:V,targetY:V,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:St,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:V,underlineThickness:V,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:V,values:null,vAlphabetic:V,vMathematical:V,vectorEffect:null,vHanging:V,vIdeographic:V,version:null,vertAdvY:V,vertOriginX:V,vertOriginY:V,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:V,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:Sa}),Ca=lr({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(t,i){return"xlink:"+i.slice(5).toLowerCase()}}),Ta=lr({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:Ea}),_a=lr({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(t,i){return"xml:"+i.slice(3).toLowerCase()}}),Yh={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"},Kh=/[A-Z]/g,Ia=/-[a-z]/g,Gh=/^data[-\w.:]+$/i;function Xh(t,i){const r=So(i);let o=i,s=mt;if(r in t.normal)return t.property[t.normal[r]];if(r.length>4&&r.slice(0,4)==="data"&&Gh.test(i)){if(i.charAt(4)==="-"){const a=i.slice(5).replace(Ia,Zh);o="data"+a.charAt(0).toUpperCase()+a.slice(1)}else{const a=i.slice(4);if(!Ia.test(a)){let c=a.replace(Kh,Jh);c.charAt(0)!=="-"&&(c="-"+c),i="data"+c}}s=_o}return new s(o,i)}function Jh(t){return"-"+t.toLowerCase()}function Zh(t){return t.charAt(1).toUpperCase()}const em=va([wa,qh,Ca,Ta,_a],"html"),Io=va([wa,Qh,Ca,Ta,_a],"svg");function tm(t){return t.join(" ").trim()}var or={},Po,Pa;function nm(){if(Pa)return Po;Pa=1;var t=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,i=/\n/g,r=/^\s*/,o=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,s=/^:\s*/,a=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,c=/^[;\s]*/,p=/^\s+|\s+$/g,h=`
19
+ `,m="/",y="*",g="",x="comment",v="declaration";function _(b,R){if(typeof b!="string")throw new TypeError("First argument must be a string");if(!b)return[];R=R||{};var U=1,M=1;function ne(Y){var H=Y.match(i);H&&(U+=H.length);var ce=Y.lastIndexOf(h);M=~ce?Y.length-ce:M+Y.length}function le(){var Y={line:U,column:M};return function(H){return H.position=new L(Y),ke(),H}}function L(Y){this.start=Y,this.end={line:U,column:M},this.source=R.source}L.prototype.content=b;function oe(Y){var H=new Error(R.source+":"+U+":"+M+": "+Y);if(H.reason=Y,H.filename=R.source,H.line=U,H.column=M,H.source=b,!R.silent)throw H}function he(Y){var H=Y.exec(b);if(H){var ce=H[0];return ne(ce),b=b.slice(ce.length),H}}function ke(){he(r)}function P(Y){var H;for(Y=Y||[];H=W();)H!==!1&&Y.push(H);return Y}function W(){var Y=le();if(!(m!=b.charAt(0)||y!=b.charAt(1))){for(var H=2;g!=b.charAt(H)&&(y!=b.charAt(H)||m!=b.charAt(H+1));)++H;if(H+=2,g===b.charAt(H-1))return oe("End of comment missing");var ce=b.slice(2,H-2);return M+=2,ne(ce),b=b.slice(H),M+=2,Y({type:x,comment:ce})}}function G(){var Y=le(),H=he(o);if(H){if(W(),!he(s))return oe("property missing ':'");var ce=he(a),ye=Y({type:v,property:D(H[0].replace(t,g)),value:ce?D(ce[0].replace(t,g)):g});return he(c),ye}}function J(){var Y=[];P(Y);for(var H;H=G();)H!==!1&&(Y.push(H),P(Y));return Y}return ke(),J()}function D(b){return b?b.replace(p,g):g}return Po=_,Po}var Aa;function rm(){if(Aa)return or;Aa=1;var t=or&&or.__importDefault||function(o){return o&&o.__esModule?o:{default:o}};Object.defineProperty(or,"__esModule",{value:!0}),or.default=r;const i=t(nm());function r(o,s){let a=null;if(!o||typeof o!="string")return a;const c=(0,i.default)(o),p=typeof s=="function";return c.forEach(h=>{if(h.type!=="declaration")return;const{property:m,value:y}=h;p?s(m,y,h):y&&(a=a||{},a[m]=y)}),a}return or}var Br={},Na;function im(){if(Na)return Br;Na=1,Object.defineProperty(Br,"__esModule",{value:!0}),Br.camelCase=void 0;var t=/^--[a-zA-Z0-9_-]+$/,i=/-([a-z])/g,r=/^[^-]+$/,o=/^-(webkit|moz|ms|o|khtml)-/,s=/^-(ms)-/,a=function(m){return!m||r.test(m)||t.test(m)},c=function(m,y){return y.toUpperCase()},p=function(m,y){return"".concat(y,"-")},h=function(m,y){return y===void 0&&(y={}),a(m)?m:(m=m.toLowerCase(),y.reactCompat?m=m.replace(s,p):m=m.replace(o,p),m.replace(i,c))};return Br.camelCase=h,Br}var Ur,Ra;function lm(){if(Ra)return Ur;Ra=1;var t=Ur&&Ur.__importDefault||function(s){return s&&s.__esModule?s:{default:s}},i=t(rm()),r=im();function o(s,a){var c={};return!s||typeof s!="string"||(0,i.default)(s,function(p,h){p&&h&&(c[(0,r.camelCase)(p,a)]=h)}),c}return o.default=o,Ur=o,Ur}var om=lm();const um=dt(om),za=La("end"),Ao=La("start");function La(t){return i;function i(r){const o=r&&r.position&&r.position[t]||{};if(typeof o.line=="number"&&o.line>0&&typeof o.column=="number"&&o.column>0)return{line:o.line,column:o.column,offset:typeof o.offset=="number"&&o.offset>-1?o.offset:void 0}}}function Da(t){const i=Ao(t),r=za(t);if(i&&r)return{start:i,end:r}}function $r(t){return!t||typeof t!="object"?"":"position"in t||"type"in t?ba(t.position):"start"in t||"end"in t?ba(t):"line"in t||"column"in t?No(t):""}function No(t){return Oa(t&&t.line)+":"+Oa(t&&t.column)}function ba(t){return No(t&&t.start)+"-"+No(t&&t.end)}function Oa(t){return t&&typeof t=="number"?t:1}class it extends Error{constructor(i,r,o){super(),typeof r=="string"&&(o=r,r=void 0);let s="",a={},c=!1;if(r&&("line"in r&&"column"in r?a={place:r}:"start"in r&&"end"in r?a={place:r}:"type"in r?a={ancestors:[r],place:r.position}:a={...r}),typeof i=="string"?s=i:!a.cause&&i&&(c=!0,s=i.message,a.cause=i),!a.ruleId&&!a.source&&typeof o=="string"){const h=o.indexOf(":");h===-1?a.ruleId=o:(a.source=o.slice(0,h),a.ruleId=o.slice(h+1))}if(!a.place&&a.ancestors&&a.ancestors){const h=a.ancestors[a.ancestors.length-1];h&&(a.place=h.position)}const p=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=p?p.column:void 0,this.fatal=void 0,this.file="",this.message=s,this.line=p?p.line:void 0,this.name=$r(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=c&&a.cause&&typeof a.cause.stack=="string"?a.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}it.prototype.file="",it.prototype.name="",it.prototype.reason="",it.prototype.message="",it.prototype.stack="",it.prototype.column=void 0,it.prototype.line=void 0,it.prototype.ancestors=void 0,it.prototype.cause=void 0,it.prototype.fatal=void 0,it.prototype.place=void 0,it.prototype.ruleId=void 0,it.prototype.source=void 0;const Ro={}.hasOwnProperty,sm=new Map,am=/[A-Z]/g,cm=new Set(["table","tbody","thead","tfoot","tr"]),fm=new Set(["td","th"]),Ma="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function pm(t,i){if(!i||i.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const r=i.filePath||void 0;let o;if(i.development){if(typeof i.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");o=xm(r,i.jsxDEV)}else{if(typeof i.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof i.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");o=vm(r,i.jsx,i.jsxs)}const s={Fragment:i.Fragment,ancestors:[],components:i.components||{},create:o,elementAttributeNameCase:i.elementAttributeNameCase||"react",evaluater:i.createEvaluater?i.createEvaluater():void 0,filePath:r,ignoreInvalidStyle:i.ignoreInvalidStyle||!1,passKeys:i.passKeys!==!1,passNode:i.passNode||!1,schema:i.space==="svg"?Io:em,stylePropertyNameCase:i.stylePropertyNameCase||"dom",tableCellAlignToStyle:i.tableCellAlignToStyle!==!1},a=Fa(s,t,void 0);return a&&typeof a!="string"?a:s.create(t,s.Fragment,{children:a||void 0},void 0)}function Fa(t,i,r){if(i.type==="element")return dm(t,i,r);if(i.type==="mdxFlowExpression"||i.type==="mdxTextExpression")return hm(t,i);if(i.type==="mdxJsxFlowElement"||i.type==="mdxJsxTextElement")return gm(t,i,r);if(i.type==="mdxjsEsm")return mm(t,i);if(i.type==="root")return ym(t,i,r);if(i.type==="text")return km(t,i)}function dm(t,i,r){const o=t.schema;let s=o;i.tagName.toLowerCase()==="svg"&&o.space==="html"&&(s=Io,t.schema=s),t.ancestors.push(i);const a=Ba(t,i.tagName,!1),c=wm(t,i);let p=Lo(t,i);return cm.has(i.tagName)&&(p=p.filter(function(h){return typeof h=="string"?!Hh(h):!0})),ja(t,c,a,i),zo(c,p),t.ancestors.pop(),t.schema=o,t.create(i,a,c,r)}function hm(t,i){if(i.data&&i.data.estree&&t.evaluater){const o=i.data.estree.body[0];return o.type,t.evaluater.evaluateExpression(o.expression)}Vr(t,i.position)}function mm(t,i){if(i.data&&i.data.estree&&t.evaluater)return t.evaluater.evaluateProgram(i.data.estree);Vr(t,i.position)}function gm(t,i,r){const o=t.schema;let s=o;i.name==="svg"&&o.space==="html"&&(s=Io,t.schema=s),t.ancestors.push(i);const a=i.name===null?t.Fragment:Ba(t,i.name,!0),c=Sm(t,i),p=Lo(t,i);return ja(t,c,a,i),zo(c,p),t.ancestors.pop(),t.schema=o,t.create(i,a,c,r)}function ym(t,i,r){const o={};return zo(o,Lo(t,i)),t.create(i,t.Fragment,o,r)}function km(t,i){return i.value}function ja(t,i,r,o){typeof r!="string"&&r!==t.Fragment&&t.passNode&&(i.node=o)}function zo(t,i){if(i.length>0){const r=i.length>1?i:i[0];r&&(t.children=r)}}function vm(t,i,r){return o;function o(s,a,c,p){const m=Array.isArray(c.children)?r:i;return p?m(a,c,p):m(a,c)}}function xm(t,i){return r;function r(o,s,a,c){const p=Array.isArray(a.children),h=Ao(o);return i(s,a,c,p,{columnNumber:h?h.column-1:void 0,fileName:t,lineNumber:h?h.line:void 0},void 0)}}function wm(t,i){const r={};let o,s;for(s in i.properties)if(s!=="children"&&Ro.call(i.properties,s)){const a=Em(t,s,i.properties[s]);if(a){const[c,p]=a;t.tableCellAlignToStyle&&c==="align"&&typeof p=="string"&&fm.has(i.tagName)?o=p:r[c]=p}}if(o){const a=r.style||(r.style={});a[t.stylePropertyNameCase==="css"?"text-align":"textAlign"]=o}return r}function Sm(t,i){const r={};for(const o of i.attributes)if(o.type==="mdxJsxExpressionAttribute")if(o.data&&o.data.estree&&t.evaluater){const a=o.data.estree.body[0];a.type;const c=a.expression;c.type;const p=c.properties[0];p.type,Object.assign(r,t.evaluater.evaluateExpression(p.argument))}else Vr(t,i.position);else{const s=o.name;let a;if(o.value&&typeof o.value=="object")if(o.value.data&&o.value.data.estree&&t.evaluater){const p=o.value.data.estree.body[0];p.type,a=t.evaluater.evaluateExpression(p.expression)}else Vr(t,i.position);else a=o.value===null?!0:o.value;r[s]=a}return r}function Lo(t,i){const r=[];let o=-1;const s=t.passKeys?new Map:sm;for(;++o<i.children.length;){const a=i.children[o];let c;if(t.passKeys){const h=a.type==="element"?a.tagName:a.type==="mdxJsxFlowElement"||a.type==="mdxJsxTextElement"?a.name:void 0;if(h){const m=s.get(h)||0;c=h+"-"+m,s.set(h,m+1)}}const p=Fa(t,a,c);p!==void 0&&r.push(p)}return r}function Em(t,i,r){const o=Xh(t.schema,i);if(!(r==null||typeof r=="number"&&Number.isNaN(r))){if(Array.isArray(r)&&(r=o.commaSeparated?jh(r):tm(r)),o.property==="style"){let s=typeof r=="object"?r:Cm(t,String(r));return t.stylePropertyNameCase==="css"&&(s=Tm(s)),["style",s]}return[t.elementAttributeNameCase==="react"&&o.space?Yh[o.property]||o.property:o.attribute,r]}}function Cm(t,i){try{return um(i,{reactCompat:!0})}catch(r){if(t.ignoreInvalidStyle)return{};const o=r,s=new it("Cannot parse `style` attribute",{ancestors:t.ancestors,cause:o,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw s.file=t.filePath||void 0,s.url=Ma+"#cannot-parse-style-attribute",s}}function Ba(t,i,r){let o;if(!r)o={type:"Literal",value:i};else if(i.includes(".")){const s=i.split(".");let a=-1,c;for(;++a<s.length;){const p=ya(s[a])?{type:"Identifier",name:s[a]}:{type:"Literal",value:s[a]};c=c?{type:"MemberExpression",object:c,property:p,computed:!!(a&&p.type==="Literal"),optional:!1}:p}o=c}else o=ya(i)&&!/^[a-z]/.test(i)?{type:"Identifier",name:i}:{type:"Literal",value:i};if(o.type==="Literal"){const s=o.value;return Ro.call(t.components,s)?t.components[s]:s}if(t.evaluater)return t.evaluater.evaluateExpression(o);Vr(t)}function Vr(t,i){const r=new it("Cannot handle MDX estrees without `createEvaluater`",{ancestors:t.ancestors,place:i,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw r.file=t.filePath||void 0,r.url=Ma+"#cannot-handle-mdx-estrees-without-createevaluater",r}function Tm(t){const i={};let r;for(r in t)Ro.call(t,r)&&(i[_m(r)]=t[r]);return i}function _m(t){let i=t.replace(am,Im);return i.slice(0,3)==="ms-"&&(i="-"+i),i}function Im(t){return"-"+t.toLowerCase()}const Do={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"]},Pm={};function bo(t,i){const r=Pm,o=typeof r.includeImageAlt=="boolean"?r.includeImageAlt:!0,s=typeof r.includeHtml=="boolean"?r.includeHtml:!0;return Ua(t,o,s)}function Ua(t,i,r){if(Am(t)){if("value"in t)return t.type==="html"&&!r?"":t.value;if(i&&"alt"in t&&t.alt)return t.alt;if("children"in t)return $a(t.children,i,r)}return Array.isArray(t)?$a(t,i,r):""}function $a(t,i,r){const o=[];let s=-1;for(;++s<t.length;)o[s]=Ua(t[s],i,r);return o.join("")}function Am(t){return!!(t&&typeof t=="object")}const Va=document.createElement("i");function Oo(t){const i="&"+t+";";Va.innerHTML=i;const r=Va.textContent;return r.charCodeAt(r.length-1)===59&&t!=="semi"||r===i?!1:r}function Et(t,i,r,o){const s=t.length;let a=0,c;if(i<0?i=-i>s?0:s+i:i=i>s?s:i,r=r>0?r:0,o.length<1e4)c=Array.from(o),c.unshift(i,r),t.splice(...c);else for(r&&t.splice(i,r);a<o.length;)c=o.slice(a,a+1e4),c.unshift(i,0),t.splice(...c),a+=1e4,i+=1e4}function At(t,i){return t.length>0?(Et(t,t.length,0,i),t):i}const Ha={}.hasOwnProperty;function Wa(t){const i={};let r=-1;for(;++r<t.length;)Nm(i,t[r]);return i}function Nm(t,i){let r;for(r in i){const s=(Ha.call(t,r)?t[r]:void 0)||(t[r]={}),a=i[r];let c;if(a)for(c in a){Ha.call(s,c)||(s[c]=[]);const p=a[c];Rm(s[c],Array.isArray(p)?p:p?[p]:[])}}}function Rm(t,i){let r=-1;const o=[];for(;++r<i.length;)(i[r].add==="after"?t:o).push(i[r]);Et(t,0,0,o)}function qa(t,i){const r=Number.parseInt(t,i);return r<9||r===11||r>13&&r<32||r>126&&r<160||r>55295&&r<57344||r>64975&&r<65008||(r&65535)===65535||(r&65535)===65534||r>1114111?"�":String.fromCodePoint(r)}function Mt(t){return t.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const ct=hn(/[A-Za-z]/),lt=hn(/[\dA-Za-z]/),zm=hn(/[#-'*+\--9=?A-Z^-~]/);function Vi(t){return t!==null&&(t<32||t===127)}const Mo=hn(/\d/),Lm=hn(/[\dA-Fa-f]/),Dm=hn(/[!-/:-@[-`{-~]/);function ue(t){return t!==null&&t<-2}function De(t){return t!==null&&(t<0||t===32)}function Ce(t){return t===-2||t===-1||t===32}const Hi=hn(/\p{P}|\p{S}/u),Un=hn(/\s/);function hn(t){return i;function i(r){return r!==null&&r>-1&&t.test(String.fromCharCode(r))}}function ur(t){const i=[];let r=-1,o=0,s=0;for(;++r<t.length;){const a=t.charCodeAt(r);let c="";if(a===37&&lt(t.charCodeAt(r+1))&&lt(t.charCodeAt(r+2)))s=2;else if(a<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(a))||(c=String.fromCharCode(a));else if(a>55295&&a<57344){const p=t.charCodeAt(r+1);a<56320&&p>56319&&p<57344?(c=String.fromCharCode(a,p),s=1):c="�"}else c=String.fromCharCode(a);c&&(i.push(t.slice(o,r),encodeURIComponent(c)),o=r+s+1,c=""),s&&(r+=s,s=0)}return i.join("")+t.slice(o)}function _e(t,i,r,o){const s=o?o-1:Number.POSITIVE_INFINITY;let a=0;return c;function c(h){return Ce(h)?(t.enter(r),p(h)):i(h)}function p(h){return Ce(h)&&a++<s?(t.consume(h),p):(t.exit(r),i(h))}}const bm={tokenize:Om};function Om(t){const i=t.attempt(this.parser.constructs.contentInitial,o,s);let r;return i;function o(p){if(p===null){t.consume(p);return}return t.enter("lineEnding"),t.consume(p),t.exit("lineEnding"),_e(t,i,"linePrefix")}function s(p){return t.enter("paragraph"),a(p)}function a(p){const h=t.enter("chunkText",{contentType:"text",previous:r});return r&&(r.next=h),r=h,c(p)}function c(p){if(p===null){t.exit("chunkText"),t.exit("paragraph"),t.consume(p);return}return ue(p)?(t.consume(p),t.exit("chunkText"),a):(t.consume(p),c)}}const Mm={tokenize:Fm},Qa={tokenize:jm};function Fm(t){const i=this,r=[];let o=0,s,a,c;return p;function p(M){if(o<r.length){const ne=r[o];return i.containerState=ne[1],t.attempt(ne[0].continuation,h,m)(M)}return m(M)}function h(M){if(o++,i.containerState._closeFlow){i.containerState._closeFlow=void 0,s&&U();const ne=i.events.length;let le=ne,L;for(;le--;)if(i.events[le][0]==="exit"&&i.events[le][1].type==="chunkFlow"){L=i.events[le][1].end;break}R(o);let oe=ne;for(;oe<i.events.length;)i.events[oe][1].end={...L},oe++;return Et(i.events,le+1,0,i.events.slice(ne)),i.events.length=oe,m(M)}return p(M)}function m(M){if(o===r.length){if(!s)return x(M);if(s.currentConstruct&&s.currentConstruct.concrete)return _(M);i.interrupt=!!(s.currentConstruct&&!s._gfmTableDynamicInterruptHack)}return i.containerState={},t.check(Qa,y,g)(M)}function y(M){return s&&U(),R(o),x(M)}function g(M){return i.parser.lazy[i.now().line]=o!==r.length,c=i.now().offset,_(M)}function x(M){return i.containerState={},t.attempt(Qa,v,_)(M)}function v(M){return o++,r.push([i.currentConstruct,i.containerState]),x(M)}function _(M){if(M===null){s&&U(),R(0),t.consume(M);return}return s=s||i.parser.flow(i.now()),t.enter("chunkFlow",{_tokenizer:s,contentType:"flow",previous:a}),D(M)}function D(M){if(M===null){b(t.exit("chunkFlow"),!0),R(0),t.consume(M);return}return ue(M)?(t.consume(M),b(t.exit("chunkFlow")),o=0,i.interrupt=void 0,p):(t.consume(M),D)}function b(M,ne){const le=i.sliceStream(M);if(ne&&le.push(null),M.previous=a,a&&(a.next=M),a=M,s.defineSkip(M.start),s.write(le),i.parser.lazy[M.start.line]){let L=s.events.length;for(;L--;)if(s.events[L][1].start.offset<c&&(!s.events[L][1].end||s.events[L][1].end.offset>c))return;const oe=i.events.length;let he=oe,ke,P;for(;he--;)if(i.events[he][0]==="exit"&&i.events[he][1].type==="chunkFlow"){if(ke){P=i.events[he][1].end;break}ke=!0}for(R(o),L=oe;L<i.events.length;)i.events[L][1].end={...P},L++;Et(i.events,he+1,0,i.events.slice(oe)),i.events.length=L}}function R(M){let ne=r.length;for(;ne-- >M;){const le=r[ne];i.containerState=le[1],le[0].exit.call(i,t)}r.length=M}function U(){s.write([null]),a=void 0,s=void 0,i.containerState._closeFlow=void 0}}function jm(t,i,r){return _e(t,t.attempt(this.parser.constructs.document,i,r),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function sr(t){if(t===null||De(t)||Un(t))return 1;if(Hi(t))return 2}function Wi(t,i,r){const o=[];let s=-1;for(;++s<t.length;){const a=t[s].resolveAll;a&&!o.includes(a)&&(i=a(i,r),o.push(a))}return i}const Fo={name:"attention",resolveAll:Bm,tokenize:Um};function Bm(t,i){let r=-1,o,s,a,c,p,h,m,y;for(;++r<t.length;)if(t[r][0]==="enter"&&t[r][1].type==="attentionSequence"&&t[r][1]._close){for(o=r;o--;)if(t[o][0]==="exit"&&t[o][1].type==="attentionSequence"&&t[o][1]._open&&i.sliceSerialize(t[o][1]).charCodeAt(0)===i.sliceSerialize(t[r][1]).charCodeAt(0)){if((t[o][1]._close||t[r][1]._open)&&(t[r][1].end.offset-t[r][1].start.offset)%3&&!((t[o][1].end.offset-t[o][1].start.offset+t[r][1].end.offset-t[r][1].start.offset)%3))continue;h=t[o][1].end.offset-t[o][1].start.offset>1&&t[r][1].end.offset-t[r][1].start.offset>1?2:1;const g={...t[o][1].end},x={...t[r][1].start};Ya(g,-h),Ya(x,h),c={type:h>1?"strongSequence":"emphasisSequence",start:g,end:{...t[o][1].end}},p={type:h>1?"strongSequence":"emphasisSequence",start:{...t[r][1].start},end:x},a={type:h>1?"strongText":"emphasisText",start:{...t[o][1].end},end:{...t[r][1].start}},s={type:h>1?"strong":"emphasis",start:{...c.start},end:{...p.end}},t[o][1].end={...c.start},t[r][1].start={...p.end},m=[],t[o][1].end.offset-t[o][1].start.offset&&(m=At(m,[["enter",t[o][1],i],["exit",t[o][1],i]])),m=At(m,[["enter",s,i],["enter",c,i],["exit",c,i],["enter",a,i]]),m=At(m,Wi(i.parser.constructs.insideSpan.null,t.slice(o+1,r),i)),m=At(m,[["exit",a,i],["enter",p,i],["exit",p,i],["exit",s,i]]),t[r][1].end.offset-t[r][1].start.offset?(y=2,m=At(m,[["enter",t[r][1],i],["exit",t[r][1],i]])):y=0,Et(t,o-1,r-o+3,m),r=o+m.length-y-2;break}}for(r=-1;++r<t.length;)t[r][1].type==="attentionSequence"&&(t[r][1].type="data");return t}function Um(t,i){const r=this.parser.constructs.attentionMarkers.null,o=this.previous,s=sr(o);let a;return c;function c(h){return a=h,t.enter("attentionSequence"),p(h)}function p(h){if(h===a)return t.consume(h),p;const m=t.exit("attentionSequence"),y=sr(h),g=!y||y===2&&s||r.includes(h),x=!s||s===2&&y||r.includes(o);return m._open=!!(a===42?g:g&&(s||!x)),m._close=!!(a===42?x:x&&(y||!g)),i(h)}}function Ya(t,i){t.column+=i,t.offset+=i,t._bufferIndex+=i}const $m={name:"autolink",tokenize:Vm};function Vm(t,i,r){let o=0;return s;function s(v){return t.enter("autolink"),t.enter("autolinkMarker"),t.consume(v),t.exit("autolinkMarker"),t.enter("autolinkProtocol"),a}function a(v){return ct(v)?(t.consume(v),c):v===64?r(v):m(v)}function c(v){return v===43||v===45||v===46||lt(v)?(o=1,p(v)):m(v)}function p(v){return v===58?(t.consume(v),o=0,h):(v===43||v===45||v===46||lt(v))&&o++<32?(t.consume(v),p):(o=0,m(v))}function h(v){return v===62?(t.exit("autolinkProtocol"),t.enter("autolinkMarker"),t.consume(v),t.exit("autolinkMarker"),t.exit("autolink"),i):v===null||v===32||v===60||Vi(v)?r(v):(t.consume(v),h)}function m(v){return v===64?(t.consume(v),y):zm(v)?(t.consume(v),m):r(v)}function y(v){return lt(v)?g(v):r(v)}function g(v){return v===46?(t.consume(v),o=0,y):v===62?(t.exit("autolinkProtocol").type="autolinkEmail",t.enter("autolinkMarker"),t.consume(v),t.exit("autolinkMarker"),t.exit("autolink"),i):x(v)}function x(v){if((v===45||lt(v))&&o++<63){const _=v===45?x:g;return t.consume(v),_}return r(v)}}const Hr={partial:!0,tokenize:Hm};function Hm(t,i,r){return o;function o(a){return Ce(a)?_e(t,s,"linePrefix")(a):s(a)}function s(a){return a===null||ue(a)?i(a):r(a)}}const Ka={continuation:{tokenize:qm},exit:Qm,name:"blockQuote",tokenize:Wm};function Wm(t,i,r){const o=this;return s;function s(c){if(c===62){const p=o.containerState;return p.open||(t.enter("blockQuote",{_container:!0}),p.open=!0),t.enter("blockQuotePrefix"),t.enter("blockQuoteMarker"),t.consume(c),t.exit("blockQuoteMarker"),a}return r(c)}function a(c){return Ce(c)?(t.enter("blockQuotePrefixWhitespace"),t.consume(c),t.exit("blockQuotePrefixWhitespace"),t.exit("blockQuotePrefix"),i):(t.exit("blockQuotePrefix"),i(c))}}function qm(t,i,r){const o=this;return s;function s(c){return Ce(c)?_e(t,a,"linePrefix",o.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(c):a(c)}function a(c){return t.attempt(Ka,i,r)(c)}}function Qm(t){t.exit("blockQuote")}const Ga={name:"characterEscape",tokenize:Ym};function Ym(t,i,r){return o;function o(a){return t.enter("characterEscape"),t.enter("escapeMarker"),t.consume(a),t.exit("escapeMarker"),s}function s(a){return Dm(a)?(t.enter("characterEscapeValue"),t.consume(a),t.exit("characterEscapeValue"),t.exit("characterEscape"),i):r(a)}}const Xa={name:"characterReference",tokenize:Km};function Km(t,i,r){const o=this;let s=0,a,c;return p;function p(g){return t.enter("characterReference"),t.enter("characterReferenceMarker"),t.consume(g),t.exit("characterReferenceMarker"),h}function h(g){return g===35?(t.enter("characterReferenceMarkerNumeric"),t.consume(g),t.exit("characterReferenceMarkerNumeric"),m):(t.enter("characterReferenceValue"),a=31,c=lt,y(g))}function m(g){return g===88||g===120?(t.enter("characterReferenceMarkerHexadecimal"),t.consume(g),t.exit("characterReferenceMarkerHexadecimal"),t.enter("characterReferenceValue"),a=6,c=Lm,y):(t.enter("characterReferenceValue"),a=7,c=Mo,y(g))}function y(g){if(g===59&&s){const x=t.exit("characterReferenceValue");return c===lt&&!Oo(o.sliceSerialize(x))?r(g):(t.enter("characterReferenceMarker"),t.consume(g),t.exit("characterReferenceMarker"),t.exit("characterReference"),i)}return c(g)&&s++<a?(t.consume(g),y):r(g)}}const Ja={partial:!0,tokenize:Xm},Za={concrete:!0,name:"codeFenced",tokenize:Gm};function Gm(t,i,r){const o=this,s={partial:!0,tokenize:le};let a=0,c=0,p;return h;function h(L){return m(L)}function m(L){const oe=o.events[o.events.length-1];return a=oe&&oe[1].type==="linePrefix"?oe[2].sliceSerialize(oe[1],!0).length:0,p=L,t.enter("codeFenced"),t.enter("codeFencedFence"),t.enter("codeFencedFenceSequence"),y(L)}function y(L){return L===p?(c++,t.consume(L),y):c<3?r(L):(t.exit("codeFencedFenceSequence"),Ce(L)?_e(t,g,"whitespace")(L):g(L))}function g(L){return L===null||ue(L)?(t.exit("codeFencedFence"),o.interrupt?i(L):t.check(Ja,D,ne)(L)):(t.enter("codeFencedFenceInfo"),t.enter("chunkString",{contentType:"string"}),x(L))}function x(L){return L===null||ue(L)?(t.exit("chunkString"),t.exit("codeFencedFenceInfo"),g(L)):Ce(L)?(t.exit("chunkString"),t.exit("codeFencedFenceInfo"),_e(t,v,"whitespace")(L)):L===96&&L===p?r(L):(t.consume(L),x)}function v(L){return L===null||ue(L)?g(L):(t.enter("codeFencedFenceMeta"),t.enter("chunkString",{contentType:"string"}),_(L))}function _(L){return L===null||ue(L)?(t.exit("chunkString"),t.exit("codeFencedFenceMeta"),g(L)):L===96&&L===p?r(L):(t.consume(L),_)}function D(L){return t.attempt(s,ne,b)(L)}function b(L){return t.enter("lineEnding"),t.consume(L),t.exit("lineEnding"),R}function R(L){return a>0&&Ce(L)?_e(t,U,"linePrefix",a+1)(L):U(L)}function U(L){return L===null||ue(L)?t.check(Ja,D,ne)(L):(t.enter("codeFlowValue"),M(L))}function M(L){return L===null||ue(L)?(t.exit("codeFlowValue"),U(L)):(t.consume(L),M)}function ne(L){return t.exit("codeFenced"),i(L)}function le(L,oe,he){let ke=0;return P;function P(H){return L.enter("lineEnding"),L.consume(H),L.exit("lineEnding"),W}function W(H){return L.enter("codeFencedFence"),Ce(H)?_e(L,G,"linePrefix",o.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(H):G(H)}function G(H){return H===p?(L.enter("codeFencedFenceSequence"),J(H)):he(H)}function J(H){return H===p?(ke++,L.consume(H),J):ke>=c?(L.exit("codeFencedFenceSequence"),Ce(H)?_e(L,Y,"whitespace")(H):Y(H)):he(H)}function Y(H){return H===null||ue(H)?(L.exit("codeFencedFence"),oe(H)):he(H)}}}function Xm(t,i,r){const o=this;return s;function s(c){return c===null?r(c):(t.enter("lineEnding"),t.consume(c),t.exit("lineEnding"),a)}function a(c){return o.parser.lazy[o.now().line]?r(c):i(c)}}const jo={name:"codeIndented",tokenize:Zm},Jm={partial:!0,tokenize:eg};function Zm(t,i,r){const o=this;return s;function s(m){return t.enter("codeIndented"),_e(t,a,"linePrefix",5)(m)}function a(m){const y=o.events[o.events.length-1];return y&&y[1].type==="linePrefix"&&y[2].sliceSerialize(y[1],!0).length>=4?c(m):r(m)}function c(m){return m===null?h(m):ue(m)?t.attempt(Jm,c,h)(m):(t.enter("codeFlowValue"),p(m))}function p(m){return m===null||ue(m)?(t.exit("codeFlowValue"),c(m)):(t.consume(m),p)}function h(m){return t.exit("codeIndented"),i(m)}}function eg(t,i,r){const o=this;return s;function s(c){return o.parser.lazy[o.now().line]?r(c):ue(c)?(t.enter("lineEnding"),t.consume(c),t.exit("lineEnding"),s):_e(t,a,"linePrefix",5)(c)}function a(c){const p=o.events[o.events.length-1];return p&&p[1].type==="linePrefix"&&p[2].sliceSerialize(p[1],!0).length>=4?i(c):ue(c)?s(c):r(c)}}const tg={name:"codeText",previous:rg,resolve:ng,tokenize:ig};function ng(t){let i=t.length-4,r=3,o,s;if((t[r][1].type==="lineEnding"||t[r][1].type==="space")&&(t[i][1].type==="lineEnding"||t[i][1].type==="space")){for(o=r;++o<i;)if(t[o][1].type==="codeTextData"){t[r][1].type="codeTextPadding",t[i][1].type="codeTextPadding",r+=2,i-=2;break}}for(o=r-1,i++;++o<=i;)s===void 0?o!==i&&t[o][1].type!=="lineEnding"&&(s=o):(o===i||t[o][1].type==="lineEnding")&&(t[s][1].type="codeTextData",o!==s+2&&(t[s][1].end=t[o-1][1].end,t.splice(s+2,o-s-2),i-=o-s-2,o=s+2),s=void 0);return t}function rg(t){return t!==96||this.events[this.events.length-1][1].type==="characterEscape"}function ig(t,i,r){let o=0,s,a;return c;function c(g){return t.enter("codeText"),t.enter("codeTextSequence"),p(g)}function p(g){return g===96?(t.consume(g),o++,p):(t.exit("codeTextSequence"),h(g))}function h(g){return g===null?r(g):g===32?(t.enter("space"),t.consume(g),t.exit("space"),h):g===96?(a=t.enter("codeTextSequence"),s=0,y(g)):ue(g)?(t.enter("lineEnding"),t.consume(g),t.exit("lineEnding"),h):(t.enter("codeTextData"),m(g))}function m(g){return g===null||g===32||g===96||ue(g)?(t.exit("codeTextData"),h(g)):(t.consume(g),m)}function y(g){return g===96?(t.consume(g),s++,y):s===o?(t.exit("codeTextSequence"),t.exit("codeText"),i(g)):(a.type="codeTextData",m(g))}}class lg{constructor(i){this.left=i?[...i]:[],this.right=[]}get(i){if(i<0||i>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+i+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return i<this.left.length?this.left[i]:this.right[this.right.length-i+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(i,r){const o=r==null?Number.POSITIVE_INFINITY:r;return o<this.left.length?this.left.slice(i,o):i>this.left.length?this.right.slice(this.right.length-o+this.left.length,this.right.length-i+this.left.length).reverse():this.left.slice(i).concat(this.right.slice(this.right.length-o+this.left.length).reverse())}splice(i,r,o){const s=r||0;this.setCursor(Math.trunc(i));const a=this.right.splice(this.right.length-s,Number.POSITIVE_INFINITY);return o&&Wr(this.left,o),a.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(i){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(i)}pushMany(i){this.setCursor(Number.POSITIVE_INFINITY),Wr(this.left,i)}unshift(i){this.setCursor(0),this.right.push(i)}unshiftMany(i){this.setCursor(0),Wr(this.right,i.reverse())}setCursor(i){if(!(i===this.left.length||i>this.left.length&&this.right.length===0||i<0&&this.left.length===0))if(i<this.left.length){const r=this.left.splice(i,Number.POSITIVE_INFINITY);Wr(this.right,r.reverse())}else{const r=this.right.splice(this.left.length+this.right.length-i,Number.POSITIVE_INFINITY);Wr(this.left,r.reverse())}}}function Wr(t,i){let r=0;if(i.length<1e4)t.push(...i);else for(;r<i.length;)t.push(...i.slice(r,r+1e4)),r+=1e4}function ec(t){const i={};let r=-1,o,s,a,c,p,h,m;const y=new lg(t);for(;++r<y.length;){for(;r in i;)r=i[r];if(o=y.get(r),r&&o[1].type==="chunkFlow"&&y.get(r-1)[1].type==="listItemPrefix"&&(h=o[1]._tokenizer.events,a=0,a<h.length&&h[a][1].type==="lineEndingBlank"&&(a+=2),a<h.length&&h[a][1].type==="content"))for(;++a<h.length&&h[a][1].type!=="content";)h[a][1].type==="chunkText"&&(h[a][1]._isInFirstContentOfListItem=!0,a++);if(o[0]==="enter")o[1].contentType&&(Object.assign(i,og(y,r)),r=i[r],m=!0);else if(o[1]._container){for(a=r,s=void 0;a--;)if(c=y.get(a),c[1].type==="lineEnding"||c[1].type==="lineEndingBlank")c[0]==="enter"&&(s&&(y.get(s)[1].type="lineEndingBlank"),c[1].type="lineEnding",s=a);else if(!(c[1].type==="linePrefix"||c[1].type==="listItemIndent"))break;s&&(o[1].end={...y.get(s)[1].start},p=y.slice(s,r),p.unshift(o),y.splice(s,r-s+1,p))}}return Et(t,0,Number.POSITIVE_INFINITY,y.slice(0)),!m}function og(t,i){const r=t.get(i)[1],o=t.get(i)[2];let s=i-1;const a=[];let c=r._tokenizer;c||(c=o.parser[r.contentType](r.start),r._contentTypeTextTrailing&&(c._contentTypeTextTrailing=!0));const p=c.events,h=[],m={};let y,g,x=-1,v=r,_=0,D=0;const b=[D];for(;v;){for(;t.get(++s)[1]!==v;);a.push(s),v._tokenizer||(y=o.sliceStream(v),v.next||y.push(null),g&&c.defineSkip(v.start),v._isInFirstContentOfListItem&&(c._gfmTasklistFirstContentOfListItem=!0),c.write(y),v._isInFirstContentOfListItem&&(c._gfmTasklistFirstContentOfListItem=void 0)),g=v,v=v.next}for(v=r;++x<p.length;)p[x][0]==="exit"&&p[x-1][0]==="enter"&&p[x][1].type===p[x-1][1].type&&p[x][1].start.line!==p[x][1].end.line&&(D=x+1,b.push(D),v._tokenizer=void 0,v.previous=void 0,v=v.next);for(c.events=[],v?(v._tokenizer=void 0,v.previous=void 0):b.pop(),x=b.length;x--;){const R=p.slice(b[x],b[x+1]),U=a.pop();h.push([U,U+R.length-1]),t.splice(U,2,R)}for(h.reverse(),x=-1;++x<h.length;)m[_+h[x][0]]=_+h[x][1],_+=h[x][1]-h[x][0]-1;return m}const ug={resolve:ag,tokenize:cg},sg={partial:!0,tokenize:fg};function ag(t){return ec(t),t}function cg(t,i){let r;return o;function o(p){return t.enter("content"),r=t.enter("chunkContent",{contentType:"content"}),s(p)}function s(p){return p===null?a(p):ue(p)?t.check(sg,c,a)(p):(t.consume(p),s)}function a(p){return t.exit("chunkContent"),t.exit("content"),i(p)}function c(p){return t.consume(p),t.exit("chunkContent"),r.next=t.enter("chunkContent",{contentType:"content",previous:r}),r=r.next,s}}function fg(t,i,r){const o=this;return s;function s(c){return t.exit("chunkContent"),t.enter("lineEnding"),t.consume(c),t.exit("lineEnding"),_e(t,a,"linePrefix")}function a(c){if(c===null||ue(c))return r(c);const p=o.events[o.events.length-1];return!o.parser.constructs.disable.null.includes("codeIndented")&&p&&p[1].type==="linePrefix"&&p[2].sliceSerialize(p[1],!0).length>=4?i(c):t.interrupt(o.parser.constructs.flow,r,i)(c)}}function tc(t,i,r,o,s,a,c,p,h){const m=h||Number.POSITIVE_INFINITY;let y=0;return g;function g(R){return R===60?(t.enter(o),t.enter(s),t.enter(a),t.consume(R),t.exit(a),x):R===null||R===32||R===41||Vi(R)?r(R):(t.enter(o),t.enter(c),t.enter(p),t.enter("chunkString",{contentType:"string"}),D(R))}function x(R){return R===62?(t.enter(a),t.consume(R),t.exit(a),t.exit(s),t.exit(o),i):(t.enter(p),t.enter("chunkString",{contentType:"string"}),v(R))}function v(R){return R===62?(t.exit("chunkString"),t.exit(p),x(R)):R===null||R===60||ue(R)?r(R):(t.consume(R),R===92?_:v)}function _(R){return R===60||R===62||R===92?(t.consume(R),v):v(R)}function D(R){return!y&&(R===null||R===41||De(R))?(t.exit("chunkString"),t.exit(p),t.exit(c),t.exit(o),i(R)):y<m&&R===40?(t.consume(R),y++,D):R===41?(t.consume(R),y--,D):R===null||R===32||R===40||Vi(R)?r(R):(t.consume(R),R===92?b:D)}function b(R){return R===40||R===41||R===92?(t.consume(R),D):D(R)}}function nc(t,i,r,o,s,a){const c=this;let p=0,h;return m;function m(v){return t.enter(o),t.enter(s),t.consume(v),t.exit(s),t.enter(a),y}function y(v){return p>999||v===null||v===91||v===93&&!h||v===94&&!p&&"_hiddenFootnoteSupport"in c.parser.constructs?r(v):v===93?(t.exit(a),t.enter(s),t.consume(v),t.exit(s),t.exit(o),i):ue(v)?(t.enter("lineEnding"),t.consume(v),t.exit("lineEnding"),y):(t.enter("chunkString",{contentType:"string"}),g(v))}function g(v){return v===null||v===91||v===93||ue(v)||p++>999?(t.exit("chunkString"),y(v)):(t.consume(v),h||(h=!Ce(v)),v===92?x:g)}function x(v){return v===91||v===92||v===93?(t.consume(v),p++,g):g(v)}}function rc(t,i,r,o,s,a){let c;return p;function p(x){return x===34||x===39||x===40?(t.enter(o),t.enter(s),t.consume(x),t.exit(s),c=x===40?41:x,h):r(x)}function h(x){return x===c?(t.enter(s),t.consume(x),t.exit(s),t.exit(o),i):(t.enter(a),m(x))}function m(x){return x===c?(t.exit(a),h(c)):x===null?r(x):ue(x)?(t.enter("lineEnding"),t.consume(x),t.exit("lineEnding"),_e(t,m,"linePrefix")):(t.enter("chunkString",{contentType:"string"}),y(x))}function y(x){return x===c||x===null||ue(x)?(t.exit("chunkString"),m(x)):(t.consume(x),x===92?g:y)}function g(x){return x===c||x===92?(t.consume(x),y):y(x)}}function qr(t,i){let r;return o;function o(s){return ue(s)?(t.enter("lineEnding"),t.consume(s),t.exit("lineEnding"),r=!0,o):Ce(s)?_e(t,o,r?"linePrefix":"lineSuffix")(s):i(s)}}const pg={name:"definition",tokenize:hg},dg={partial:!0,tokenize:mg};function hg(t,i,r){const o=this;let s;return a;function a(v){return t.enter("definition"),c(v)}function c(v){return nc.call(o,t,p,r,"definitionLabel","definitionLabelMarker","definitionLabelString")(v)}function p(v){return s=Mt(o.sliceSerialize(o.events[o.events.length-1][1]).slice(1,-1)),v===58?(t.enter("definitionMarker"),t.consume(v),t.exit("definitionMarker"),h):r(v)}function h(v){return De(v)?qr(t,m)(v):m(v)}function m(v){return tc(t,y,r,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(v)}function y(v){return t.attempt(dg,g,g)(v)}function g(v){return Ce(v)?_e(t,x,"whitespace")(v):x(v)}function x(v){return v===null||ue(v)?(t.exit("definition"),o.parser.defined.push(s),i(v)):r(v)}}function mg(t,i,r){return o;function o(p){return De(p)?qr(t,s)(p):r(p)}function s(p){return rc(t,a,r,"definitionTitle","definitionTitleMarker","definitionTitleString")(p)}function a(p){return Ce(p)?_e(t,c,"whitespace")(p):c(p)}function c(p){return p===null||ue(p)?i(p):r(p)}}const gg={name:"hardBreakEscape",tokenize:yg};function yg(t,i,r){return o;function o(a){return t.enter("hardBreakEscape"),t.consume(a),s}function s(a){return ue(a)?(t.exit("hardBreakEscape"),i(a)):r(a)}}const kg={name:"headingAtx",resolve:vg,tokenize:xg};function vg(t,i){let r=t.length-2,o=3,s,a;return t[o][1].type==="whitespace"&&(o+=2),r-2>o&&t[r][1].type==="whitespace"&&(r-=2),t[r][1].type==="atxHeadingSequence"&&(o===r-1||r-4>o&&t[r-2][1].type==="whitespace")&&(r-=o+1===r?2:4),r>o&&(s={type:"atxHeadingText",start:t[o][1].start,end:t[r][1].end},a={type:"chunkText",start:t[o][1].start,end:t[r][1].end,contentType:"text"},Et(t,o,r-o+1,[["enter",s,i],["enter",a,i],["exit",a,i],["exit",s,i]])),t}function xg(t,i,r){let o=0;return s;function s(y){return t.enter("atxHeading"),a(y)}function a(y){return t.enter("atxHeadingSequence"),c(y)}function c(y){return y===35&&o++<6?(t.consume(y),c):y===null||De(y)?(t.exit("atxHeadingSequence"),p(y)):r(y)}function p(y){return y===35?(t.enter("atxHeadingSequence"),h(y)):y===null||ue(y)?(t.exit("atxHeading"),i(y)):Ce(y)?_e(t,p,"whitespace")(y):(t.enter("atxHeadingText"),m(y))}function h(y){return y===35?(t.consume(y),h):(t.exit("atxHeadingSequence"),p(y))}function m(y){return y===null||y===35||De(y)?(t.exit("atxHeadingText"),p(y)):(t.consume(y),m)}}const wg=["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"],ic=["pre","script","style","textarea"],Sg={concrete:!0,name:"htmlFlow",resolveTo:Tg,tokenize:_g},Eg={partial:!0,tokenize:Pg},Cg={partial:!0,tokenize:Ig};function Tg(t){let i=t.length;for(;i--&&!(t[i][0]==="enter"&&t[i][1].type==="htmlFlow"););return i>1&&t[i-2][1].type==="linePrefix"&&(t[i][1].start=t[i-2][1].start,t[i+1][1].start=t[i-2][1].start,t.splice(i-2,2)),t}function _g(t,i,r){const o=this;let s,a,c,p,h;return m;function m(E){return y(E)}function y(E){return t.enter("htmlFlow"),t.enter("htmlFlowData"),t.consume(E),g}function g(E){return E===33?(t.consume(E),x):E===47?(t.consume(E),a=!0,D):E===63?(t.consume(E),s=3,o.interrupt?i:w):ct(E)?(t.consume(E),c=String.fromCharCode(E),b):r(E)}function x(E){return E===45?(t.consume(E),s=2,v):E===91?(t.consume(E),s=5,p=0,_):ct(E)?(t.consume(E),s=4,o.interrupt?i:w):r(E)}function v(E){return E===45?(t.consume(E),o.interrupt?i:w):r(E)}function _(E){const pe="CDATA[";return E===pe.charCodeAt(p++)?(t.consume(E),p===pe.length?o.interrupt?i:G:_):r(E)}function D(E){return ct(E)?(t.consume(E),c=String.fromCharCode(E),b):r(E)}function b(E){if(E===null||E===47||E===62||De(E)){const pe=E===47,xe=c.toLowerCase();return!pe&&!a&&ic.includes(xe)?(s=1,o.interrupt?i(E):G(E)):wg.includes(c.toLowerCase())?(s=6,pe?(t.consume(E),R):o.interrupt?i(E):G(E)):(s=7,o.interrupt&&!o.parser.lazy[o.now().line]?r(E):a?U(E):M(E))}return E===45||lt(E)?(t.consume(E),c+=String.fromCharCode(E),b):r(E)}function R(E){return E===62?(t.consume(E),o.interrupt?i:G):r(E)}function U(E){return Ce(E)?(t.consume(E),U):P(E)}function M(E){return E===47?(t.consume(E),P):E===58||E===95||ct(E)?(t.consume(E),ne):Ce(E)?(t.consume(E),M):P(E)}function ne(E){return E===45||E===46||E===58||E===95||lt(E)?(t.consume(E),ne):le(E)}function le(E){return E===61?(t.consume(E),L):Ce(E)?(t.consume(E),le):M(E)}function L(E){return E===null||E===60||E===61||E===62||E===96?r(E):E===34||E===39?(t.consume(E),h=E,oe):Ce(E)?(t.consume(E),L):he(E)}function oe(E){return E===h?(t.consume(E),h=null,ke):E===null||ue(E)?r(E):(t.consume(E),oe)}function he(E){return E===null||E===34||E===39||E===47||E===60||E===61||E===62||E===96||De(E)?le(E):(t.consume(E),he)}function ke(E){return E===47||E===62||Ce(E)?M(E):r(E)}function P(E){return E===62?(t.consume(E),W):r(E)}function W(E){return E===null||ue(E)?G(E):Ce(E)?(t.consume(E),W):r(E)}function G(E){return E===45&&s===2?(t.consume(E),ce):E===60&&s===1?(t.consume(E),ye):E===62&&s===4?(t.consume(E),I):E===63&&s===3?(t.consume(E),w):E===93&&s===5?(t.consume(E),ie):ue(E)&&(s===6||s===7)?(t.exit("htmlFlowData"),t.check(Eg,F,J)(E)):E===null||ue(E)?(t.exit("htmlFlowData"),J(E)):(t.consume(E),G)}function J(E){return t.check(Cg,Y,F)(E)}function Y(E){return t.enter("lineEnding"),t.consume(E),t.exit("lineEnding"),H}function H(E){return E===null||ue(E)?J(E):(t.enter("htmlFlowData"),G(E))}function ce(E){return E===45?(t.consume(E),w):G(E)}function ye(E){return E===47?(t.consume(E),c="",Q):G(E)}function Q(E){if(E===62){const pe=c.toLowerCase();return ic.includes(pe)?(t.consume(E),I):G(E)}return ct(E)&&c.length<8?(t.consume(E),c+=String.fromCharCode(E),Q):G(E)}function ie(E){return E===93?(t.consume(E),w):G(E)}function w(E){return E===62?(t.consume(E),I):E===45&&s===2?(t.consume(E),w):G(E)}function I(E){return E===null||ue(E)?(t.exit("htmlFlowData"),F(E)):(t.consume(E),I)}function F(E){return t.exit("htmlFlow"),i(E)}}function Ig(t,i,r){const o=this;return s;function s(c){return ue(c)?(t.enter("lineEnding"),t.consume(c),t.exit("lineEnding"),a):r(c)}function a(c){return o.parser.lazy[o.now().line]?r(c):i(c)}}function Pg(t,i,r){return o;function o(s){return t.enter("lineEnding"),t.consume(s),t.exit("lineEnding"),t.attempt(Hr,i,r)}}const Ag={name:"htmlText",tokenize:Ng};function Ng(t,i,r){const o=this;let s,a,c;return p;function p(w){return t.enter("htmlText"),t.enter("htmlTextData"),t.consume(w),h}function h(w){return w===33?(t.consume(w),m):w===47?(t.consume(w),le):w===63?(t.consume(w),M):ct(w)?(t.consume(w),he):r(w)}function m(w){return w===45?(t.consume(w),y):w===91?(t.consume(w),a=0,_):ct(w)?(t.consume(w),U):r(w)}function y(w){return w===45?(t.consume(w),v):r(w)}function g(w){return w===null?r(w):w===45?(t.consume(w),x):ue(w)?(c=g,ye(w)):(t.consume(w),g)}function x(w){return w===45?(t.consume(w),v):g(w)}function v(w){return w===62?ce(w):w===45?x(w):g(w)}function _(w){const I="CDATA[";return w===I.charCodeAt(a++)?(t.consume(w),a===I.length?D:_):r(w)}function D(w){return w===null?r(w):w===93?(t.consume(w),b):ue(w)?(c=D,ye(w)):(t.consume(w),D)}function b(w){return w===93?(t.consume(w),R):D(w)}function R(w){return w===62?ce(w):w===93?(t.consume(w),R):D(w)}function U(w){return w===null||w===62?ce(w):ue(w)?(c=U,ye(w)):(t.consume(w),U)}function M(w){return w===null?r(w):w===63?(t.consume(w),ne):ue(w)?(c=M,ye(w)):(t.consume(w),M)}function ne(w){return w===62?ce(w):M(w)}function le(w){return ct(w)?(t.consume(w),L):r(w)}function L(w){return w===45||lt(w)?(t.consume(w),L):oe(w)}function oe(w){return ue(w)?(c=oe,ye(w)):Ce(w)?(t.consume(w),oe):ce(w)}function he(w){return w===45||lt(w)?(t.consume(w),he):w===47||w===62||De(w)?ke(w):r(w)}function ke(w){return w===47?(t.consume(w),ce):w===58||w===95||ct(w)?(t.consume(w),P):ue(w)?(c=ke,ye(w)):Ce(w)?(t.consume(w),ke):ce(w)}function P(w){return w===45||w===46||w===58||w===95||lt(w)?(t.consume(w),P):W(w)}function W(w){return w===61?(t.consume(w),G):ue(w)?(c=W,ye(w)):Ce(w)?(t.consume(w),W):ke(w)}function G(w){return w===null||w===60||w===61||w===62||w===96?r(w):w===34||w===39?(t.consume(w),s=w,J):ue(w)?(c=G,ye(w)):Ce(w)?(t.consume(w),G):(t.consume(w),Y)}function J(w){return w===s?(t.consume(w),s=void 0,H):w===null?r(w):ue(w)?(c=J,ye(w)):(t.consume(w),J)}function Y(w){return w===null||w===34||w===39||w===60||w===61||w===96?r(w):w===47||w===62||De(w)?ke(w):(t.consume(w),Y)}function H(w){return w===47||w===62||De(w)?ke(w):r(w)}function ce(w){return w===62?(t.consume(w),t.exit("htmlTextData"),t.exit("htmlText"),i):r(w)}function ye(w){return t.exit("htmlTextData"),t.enter("lineEnding"),t.consume(w),t.exit("lineEnding"),Q}function Q(w){return Ce(w)?_e(t,ie,"linePrefix",o.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(w):ie(w)}function ie(w){return t.enter("htmlTextData"),c(w)}}const Bo={name:"labelEnd",resolveAll:Dg,resolveTo:bg,tokenize:Og},Rg={tokenize:Mg},zg={tokenize:Fg},Lg={tokenize:jg};function Dg(t){let i=-1;const r=[];for(;++i<t.length;){const o=t[i][1];if(r.push(t[i]),o.type==="labelImage"||o.type==="labelLink"||o.type==="labelEnd"){const s=o.type==="labelImage"?4:2;o.type="data",i+=s}}return t.length!==r.length&&Et(t,0,t.length,r),t}function bg(t,i){let r=t.length,o=0,s,a,c,p;for(;r--;)if(s=t[r][1],a){if(s.type==="link"||s.type==="labelLink"&&s._inactive)break;t[r][0]==="enter"&&s.type==="labelLink"&&(s._inactive=!0)}else if(c){if(t[r][0]==="enter"&&(s.type==="labelImage"||s.type==="labelLink")&&!s._balanced&&(a=r,s.type!=="labelLink")){o=2;break}}else s.type==="labelEnd"&&(c=r);const h={type:t[a][1].type==="labelLink"?"link":"image",start:{...t[a][1].start},end:{...t[t.length-1][1].end}},m={type:"label",start:{...t[a][1].start},end:{...t[c][1].end}},y={type:"labelText",start:{...t[a+o+2][1].end},end:{...t[c-2][1].start}};return p=[["enter",h,i],["enter",m,i]],p=At(p,t.slice(a+1,a+o+3)),p=At(p,[["enter",y,i]]),p=At(p,Wi(i.parser.constructs.insideSpan.null,t.slice(a+o+4,c-3),i)),p=At(p,[["exit",y,i],t[c-2],t[c-1],["exit",m,i]]),p=At(p,t.slice(c+1)),p=At(p,[["exit",h,i]]),Et(t,a,t.length,p),t}function Og(t,i,r){const o=this;let s=o.events.length,a,c;for(;s--;)if((o.events[s][1].type==="labelImage"||o.events[s][1].type==="labelLink")&&!o.events[s][1]._balanced){a=o.events[s][1];break}return p;function p(x){return a?a._inactive?g(x):(c=o.parser.defined.includes(Mt(o.sliceSerialize({start:a.end,end:o.now()}))),t.enter("labelEnd"),t.enter("labelMarker"),t.consume(x),t.exit("labelMarker"),t.exit("labelEnd"),h):r(x)}function h(x){return x===40?t.attempt(Rg,y,c?y:g)(x):x===91?t.attempt(zg,y,c?m:g)(x):c?y(x):g(x)}function m(x){return t.attempt(Lg,y,g)(x)}function y(x){return i(x)}function g(x){return a._balanced=!0,r(x)}}function Mg(t,i,r){return o;function o(g){return t.enter("resource"),t.enter("resourceMarker"),t.consume(g),t.exit("resourceMarker"),s}function s(g){return De(g)?qr(t,a)(g):a(g)}function a(g){return g===41?y(g):tc(t,c,p,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(g)}function c(g){return De(g)?qr(t,h)(g):y(g)}function p(g){return r(g)}function h(g){return g===34||g===39||g===40?rc(t,m,r,"resourceTitle","resourceTitleMarker","resourceTitleString")(g):y(g)}function m(g){return De(g)?qr(t,y)(g):y(g)}function y(g){return g===41?(t.enter("resourceMarker"),t.consume(g),t.exit("resourceMarker"),t.exit("resource"),i):r(g)}}function Fg(t,i,r){const o=this;return s;function s(p){return nc.call(o,t,a,c,"reference","referenceMarker","referenceString")(p)}function a(p){return o.parser.defined.includes(Mt(o.sliceSerialize(o.events[o.events.length-1][1]).slice(1,-1)))?i(p):r(p)}function c(p){return r(p)}}function jg(t,i,r){return o;function o(a){return t.enter("reference"),t.enter("referenceMarker"),t.consume(a),t.exit("referenceMarker"),s}function s(a){return a===93?(t.enter("referenceMarker"),t.consume(a),t.exit("referenceMarker"),t.exit("reference"),i):r(a)}}const Bg={name:"labelStartImage",resolveAll:Bo.resolveAll,tokenize:Ug};function Ug(t,i,r){const o=this;return s;function s(p){return t.enter("labelImage"),t.enter("labelImageMarker"),t.consume(p),t.exit("labelImageMarker"),a}function a(p){return p===91?(t.enter("labelMarker"),t.consume(p),t.exit("labelMarker"),t.exit("labelImage"),c):r(p)}function c(p){return p===94&&"_hiddenFootnoteSupport"in o.parser.constructs?r(p):i(p)}}const $g={name:"labelStartLink",resolveAll:Bo.resolveAll,tokenize:Vg};function Vg(t,i,r){const o=this;return s;function s(c){return t.enter("labelLink"),t.enter("labelMarker"),t.consume(c),t.exit("labelMarker"),t.exit("labelLink"),a}function a(c){return c===94&&"_hiddenFootnoteSupport"in o.parser.constructs?r(c):i(c)}}const Uo={name:"lineEnding",tokenize:Hg};function Hg(t,i){return r;function r(o){return t.enter("lineEnding"),t.consume(o),t.exit("lineEnding"),_e(t,i,"linePrefix")}}const qi={name:"thematicBreak",tokenize:Wg};function Wg(t,i,r){let o=0,s;return a;function a(m){return t.enter("thematicBreak"),c(m)}function c(m){return s=m,p(m)}function p(m){return m===s?(t.enter("thematicBreakSequence"),h(m)):o>=3&&(m===null||ue(m))?(t.exit("thematicBreak"),i(m)):r(m)}function h(m){return m===s?(t.consume(m),o++,h):(t.exit("thematicBreakSequence"),Ce(m)?_e(t,p,"whitespace")(m):p(m))}}const gt={continuation:{tokenize:Kg},exit:Xg,name:"list",tokenize:Yg},qg={partial:!0,tokenize:Jg},Qg={partial:!0,tokenize:Gg};function Yg(t,i,r){const o=this,s=o.events[o.events.length-1];let a=s&&s[1].type==="linePrefix"?s[2].sliceSerialize(s[1],!0).length:0,c=0;return p;function p(v){const _=o.containerState.type||(v===42||v===43||v===45?"listUnordered":"listOrdered");if(_==="listUnordered"?!o.containerState.marker||v===o.containerState.marker:Mo(v)){if(o.containerState.type||(o.containerState.type=_,t.enter(_,{_container:!0})),_==="listUnordered")return t.enter("listItemPrefix"),v===42||v===45?t.check(qi,r,m)(v):m(v);if(!o.interrupt||v===49)return t.enter("listItemPrefix"),t.enter("listItemValue"),h(v)}return r(v)}function h(v){return Mo(v)&&++c<10?(t.consume(v),h):(!o.interrupt||c<2)&&(o.containerState.marker?v===o.containerState.marker:v===41||v===46)?(t.exit("listItemValue"),m(v)):r(v)}function m(v){return t.enter("listItemMarker"),t.consume(v),t.exit("listItemMarker"),o.containerState.marker=o.containerState.marker||v,t.check(Hr,o.interrupt?r:y,t.attempt(qg,x,g))}function y(v){return o.containerState.initialBlankLine=!0,a++,x(v)}function g(v){return Ce(v)?(t.enter("listItemPrefixWhitespace"),t.consume(v),t.exit("listItemPrefixWhitespace"),x):r(v)}function x(v){return o.containerState.size=a+o.sliceSerialize(t.exit("listItemPrefix"),!0).length,i(v)}}function Kg(t,i,r){const o=this;return o.containerState._closeFlow=void 0,t.check(Hr,s,a);function s(p){return o.containerState.furtherBlankLines=o.containerState.furtherBlankLines||o.containerState.initialBlankLine,_e(t,i,"listItemIndent",o.containerState.size+1)(p)}function a(p){return o.containerState.furtherBlankLines||!Ce(p)?(o.containerState.furtherBlankLines=void 0,o.containerState.initialBlankLine=void 0,c(p)):(o.containerState.furtherBlankLines=void 0,o.containerState.initialBlankLine=void 0,t.attempt(Qg,i,c)(p))}function c(p){return o.containerState._closeFlow=!0,o.interrupt=void 0,_e(t,t.attempt(gt,i,r),"linePrefix",o.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(p)}}function Gg(t,i,r){const o=this;return _e(t,s,"listItemIndent",o.containerState.size+1);function s(a){const c=o.events[o.events.length-1];return c&&c[1].type==="listItemIndent"&&c[2].sliceSerialize(c[1],!0).length===o.containerState.size?i(a):r(a)}}function Xg(t){t.exit(this.containerState.type)}function Jg(t,i,r){const o=this;return _e(t,s,"listItemPrefixWhitespace",o.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function s(a){const c=o.events[o.events.length-1];return!Ce(a)&&c&&c[1].type==="listItemPrefixWhitespace"?i(a):r(a)}}const lc={name:"setextUnderline",resolveTo:Zg,tokenize:ey};function Zg(t,i){let r=t.length,o,s,a;for(;r--;)if(t[r][0]==="enter"){if(t[r][1].type==="content"){o=r;break}t[r][1].type==="paragraph"&&(s=r)}else t[r][1].type==="content"&&t.splice(r,1),!a&&t[r][1].type==="definition"&&(a=r);const c={type:"setextHeading",start:{...t[o][1].start},end:{...t[t.length-1][1].end}};return t[s][1].type="setextHeadingText",a?(t.splice(s,0,["enter",c,i]),t.splice(a+1,0,["exit",t[o][1],i]),t[o][1].end={...t[a][1].end}):t[o][1]=c,t.push(["exit",c,i]),t}function ey(t,i,r){const o=this;let s;return a;function a(m){let y=o.events.length,g;for(;y--;)if(o.events[y][1].type!=="lineEnding"&&o.events[y][1].type!=="linePrefix"&&o.events[y][1].type!=="content"){g=o.events[y][1].type==="paragraph";break}return!o.parser.lazy[o.now().line]&&(o.interrupt||g)?(t.enter("setextHeadingLine"),s=m,c(m)):r(m)}function c(m){return t.enter("setextHeadingLineSequence"),p(m)}function p(m){return m===s?(t.consume(m),p):(t.exit("setextHeadingLineSequence"),Ce(m)?_e(t,h,"lineSuffix")(m):h(m))}function h(m){return m===null||ue(m)?(t.exit("setextHeadingLine"),i(m)):r(m)}}const ty={tokenize:ny};function ny(t){const i=this,r=t.attempt(Hr,o,t.attempt(this.parser.constructs.flowInitial,s,_e(t,t.attempt(this.parser.constructs.flow,s,t.attempt(ug,s)),"linePrefix")));return r;function o(a){if(a===null){t.consume(a);return}return t.enter("lineEndingBlank"),t.consume(a),t.exit("lineEndingBlank"),i.currentConstruct=void 0,r}function s(a){if(a===null){t.consume(a);return}return t.enter("lineEnding"),t.consume(a),t.exit("lineEnding"),i.currentConstruct=void 0,r}}const ry={resolveAll:uc()},iy=oc("string"),ly=oc("text");function oc(t){return{resolveAll:uc(t==="text"?oy:void 0),tokenize:i};function i(r){const o=this,s=this.parser.constructs[t],a=r.attempt(s,c,p);return c;function c(y){return m(y)?a(y):p(y)}function p(y){if(y===null){r.consume(y);return}return r.enter("data"),r.consume(y),h}function h(y){return m(y)?(r.exit("data"),a(y)):(r.consume(y),h)}function m(y){if(y===null)return!0;const g=s[y];let x=-1;if(g)for(;++x<g.length;){const v=g[x];if(!v.previous||v.previous.call(o,o.previous))return!0}return!1}}}function uc(t){return i;function i(r,o){let s=-1,a;for(;++s<=r.length;)a===void 0?r[s]&&r[s][1].type==="data"&&(a=s,s++):(!r[s]||r[s][1].type!=="data")&&(s!==a+2&&(r[a][1].end=r[s-1][1].end,r.splice(a+2,s-a-2),s=a+2),a=void 0);return t?t(r,o):r}}function oy(t,i){let r=0;for(;++r<=t.length;)if((r===t.length||t[r][1].type==="lineEnding")&&t[r-1][1].type==="data"){const o=t[r-1][1],s=i.sliceStream(o);let a=s.length,c=-1,p=0,h;for(;a--;){const m=s[a];if(typeof m=="string"){for(c=m.length;m.charCodeAt(c-1)===32;)p++,c--;if(c)break;c=-1}else if(m===-2)h=!0,p++;else if(m!==-1){a++;break}}if(i._contentTypeTextTrailing&&r===t.length&&(p=0),p){const m={type:r===t.length||h||p<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:a?c:o.start._bufferIndex+c,_index:o.start._index+a,line:o.end.line,column:o.end.column-p,offset:o.end.offset-p},end:{...o.end}};o.end={...m.start},o.start.offset===o.end.offset?Object.assign(o,m):(t.splice(r,0,["enter",m,i],["exit",m,i]),r+=2)}r++}return t}const uy=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:{null:[42,95]},contentInitial:{91:pg},disable:{null:[]},document:{42:gt,43:gt,45:gt,48:gt,49:gt,50:gt,51:gt,52:gt,53:gt,54:gt,55:gt,56:gt,57:gt,62:Ka},flow:{35:kg,42:qi,45:[lc,qi],60:Sg,61:lc,95:qi,96:Za,126:Za},flowInitial:{[-2]:jo,[-1]:jo,32:jo},insideSpan:{null:[Fo,ry]},string:{38:Xa,92:Ga},text:{[-5]:Uo,[-4]:Uo,[-3]:Uo,33:Bg,38:Xa,42:Fo,60:[$m,Ag],91:$g,92:[gg,Ga],93:Bo,95:Fo,96:tg}},Symbol.toStringTag,{value:"Module"}));function sy(t,i,r){let o={_bufferIndex:-1,_index:0,line:r&&r.line||1,column:r&&r.column||1,offset:r&&r.offset||0};const s={},a=[];let c=[],p=[];const h={attempt:oe(le),check:oe(L),consume:U,enter:M,exit:ne,interrupt:oe(L,{interrupt:!0})},m={code:null,containerState:{},defineSkip:D,events:[],now:_,parser:t,previous:null,sliceSerialize:x,sliceStream:v,write:g};let y=i.tokenize.call(m,h);return i.resolveAll&&a.push(i),m;function g(W){return c=At(c,W),b(),c[c.length-1]!==null?[]:(he(i,0),m.events=Wi(a,m.events,m),m.events)}function x(W,G){return cy(v(W),G)}function v(W){return ay(c,W)}function _(){const{_bufferIndex:W,_index:G,line:J,column:Y,offset:H}=o;return{_bufferIndex:W,_index:G,line:J,column:Y,offset:H}}function D(W){s[W.line]=W.column,P()}function b(){let W;for(;o._index<c.length;){const G=c[o._index];if(typeof G=="string")for(W=o._index,o._bufferIndex<0&&(o._bufferIndex=0);o._index===W&&o._bufferIndex<G.length;)R(G.charCodeAt(o._bufferIndex));else R(G)}}function R(W){y=y(W)}function U(W){ue(W)?(o.line++,o.column=1,o.offset+=W===-3?2:1,P()):W!==-1&&(o.column++,o.offset++),o._bufferIndex<0?o._index++:(o._bufferIndex++,o._bufferIndex===c[o._index].length&&(o._bufferIndex=-1,o._index++)),m.previous=W}function M(W,G){const J=G||{};return J.type=W,J.start=_(),m.events.push(["enter",J,m]),p.push(J),J}function ne(W){const G=p.pop();return G.end=_(),m.events.push(["exit",G,m]),G}function le(W,G){he(W,G.from)}function L(W,G){G.restore()}function oe(W,G){return J;function J(Y,H,ce){let ye,Q,ie,w;return Array.isArray(Y)?F(Y):"tokenize"in Y?F([Y]):I(Y);function I(fe){return Ae;function Ae(Se){const Re=Se!==null&&fe[Se],qe=Se!==null&&fe.null,tn=[...Array.isArray(Re)?Re:Re?[Re]:[],...Array.isArray(qe)?qe:qe?[qe]:[]];return F(tn)(Se)}}function F(fe){return ye=fe,Q=0,fe.length===0?ce:E(fe[Q])}function E(fe){return Ae;function Ae(Se){return w=ke(),ie=fe,fe.partial||(m.currentConstruct=fe),fe.name&&m.parser.constructs.disable.null.includes(fe.name)?xe():fe.tokenize.call(G?Object.assign(Object.create(m),G):m,h,pe,xe)(Se)}}function pe(fe){return W(ie,w),H}function xe(fe){return w.restore(),++Q<ye.length?E(ye[Q]):ce}}}function he(W,G){W.resolveAll&&!a.includes(W)&&a.push(W),W.resolve&&Et(m.events,G,m.events.length-G,W.resolve(m.events.slice(G),m)),W.resolveTo&&(m.events=W.resolveTo(m.events,m))}function ke(){const W=_(),G=m.previous,J=m.currentConstruct,Y=m.events.length,H=Array.from(p);return{from:Y,restore:ce};function ce(){o=W,m.previous=G,m.currentConstruct=J,m.events.length=Y,p=H,P()}}function P(){o.line in s&&o.column<2&&(o.column=s[o.line],o.offset+=s[o.line]-1)}}function ay(t,i){const r=i.start._index,o=i.start._bufferIndex,s=i.end._index,a=i.end._bufferIndex;let c;if(r===s)c=[t[r].slice(o,a)];else{if(c=t.slice(r,s),o>-1){const p=c[0];typeof p=="string"?c[0]=p.slice(o):c.shift()}a>0&&c.push(t[s].slice(0,a))}return c}function cy(t,i){let r=-1;const o=[];let s;for(;++r<t.length;){const a=t[r];let c;if(typeof a=="string")c=a;else switch(a){case-5:{c="\r";break}case-4:{c=`
18
20
  `;break}case-3:{c=`\r
19
- `;break}case-2:{c=i?" ":" ";break}case-1:{if(!i&&s)continue;c=" ";break}default:c=String.fromCharCode(a)}s=a===-2,o.push(c)}return o.join("")}function my(t){const o={constructs:Wa([fy,...(t||{}).extensions||[]]),content:s(jm),defined:[],document:s(Um),flow:s(ly),lazy:{},string:s(sy),text:s(ay)};return o;function s(a){return c;function c(p){return py(o,a,p)}}}function gy(t){for(;!ec(t););return t}const sc=/[\0\t\n\r]/g;function yy(){let t=1,i="",r=!0,o;return s;function s(a,c,p){const h=[];let m,y,g,w,v;for(a=i+(typeof a=="string"?a.toString():new TextDecoder(c||void 0).decode(a)),g=0,i="",r&&(a.charCodeAt(0)===65279&&g++,r=void 0);g<a.length;){if(sc.lastIndex=g,m=sc.exec(a),w=m&&m.index!==void 0?m.index:a.length,v=a.charCodeAt(w),!m){i=a.slice(g);break}if(v===10&&g===w&&o)h.push(-3),o=void 0;else switch(o&&(h.push(-5),o=void 0),g<w&&(h.push(a.slice(g,w)),t+=w-g),v){case 0:{h.push(65533),t++;break}case 9:{for(y=Math.ceil(t/4)*4,h.push(-2);t++<y;)h.push(-1);break}case 10:{h.push(-4),t=1;break}default:o=!0,t=1}g=w+1}return p&&(o&&h.push(-5),i&&h.push(i),h.push(null)),h}}const ky=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function vy(t){return t.replace(ky,wy)}function wy(t,i,r){if(i)return i;if(r.charCodeAt(0)===35){const s=r.charCodeAt(1),a=s===120||s===88;return Qa(r.slice(a?2:1),a?16:10)}return Mo(r)||t}const ac={}.hasOwnProperty;function xy(t,i,r){return i&&typeof i=="object"&&(r=i,i=void 0),Sy(r)(gy(my(r).document().write(yy()(t,i,!0))))}function Sy(t){const i={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:a(pr),autolinkProtocol:ye,autolinkEmail:ye,atxHeading:a(ei),blockQuote:a(Qe),characterEscape:ye,characterReference:ye,codeFenced:a(tn),codeFencedFenceInfo:c,codeFencedFenceMeta:c,codeIndented:a(tn,c),codeText:a(nl,c),codeTextData:ye,data:ye,codeFlowValue:ye,definition:a(cr),definitionDestinationString:c,definitionLabelString:c,definitionTitleString:c,emphasis:a(Zr),hardBreakEscape:a(ti),hardBreakTrailing:a(ti),htmlFlow:a(fr,c),htmlFlowData:ye,htmlText:a(fr,c),htmlTextData:ye,image:a(rl),label:c,link:a(pr),listItem:a(kn),listItemValue:w,listOrdered:a(yn,g),listUnordered:a(yn),paragraph:a(ni),reference:E,referenceString:c,resourceDestinationString:c,resourceTitleString:c,setextHeading:a(ei),strong:a(il),thematicBreak:a(ol)},exit:{atxHeading:h(),atxHeadingSequence:ue,autolink:h(),autolinkEmail:be,autolinkProtocol:Se,blockQuote:h(),characterEscapeValue:R,characterReferenceMarkerHexadecimal:we,characterReferenceMarkerNumeric:we,characterReferenceValue:pe,characterReference:Ne,codeFenced:h(D),codeFencedFence:z,codeFencedFenceInfo:v,codeFencedFenceMeta:_,codeFlowValue:R,codeIndented:h(A),codeText:h($),codeTextData:R,data:R,definition:h(),definitionDestinationString:ne,definitionLabelString:H,definitionTitleString:M,emphasis:h(),hardBreakEscape:h(J),hardBreakTrailing:h(J),htmlFlow:h(K),htmlFlowData:R,htmlText:h(Q),htmlTextData:R,image:h(ie),label:ee,labelText:U,lineEnding:X,link:h(Z),listItem:h(),listOrdered:h(),listUnordered:h(),paragraph:h(),referenceString:he,resourceDestinationString:x,resourceTitleString:I,resource:F,setextHeading:h(de),setextHeadingLineSequence:se,setextHeadingText:L,strong:h(),thematicBreak:h()}};cc(i,(t||{}).mdastExtensions||[]);const r={};return o;function o(O){let Y={type:"root",children:[]};const me={stack:[Y],tokenStack:[],config:i,enter:p,exit:m,buffer:c,resume:y,data:r},Ee=[];let Ie=-1;for(;++Ie<O.length;)if(O[Ie][1].type==="listOrdered"||O[Ie][1].type==="listUnordered")if(O[Ie][0]==="enter")Ee.push(Ie);else{const et=Ee.pop();Ie=s(O,et,Ie)}for(Ie=-1;++Ie<O.length;){const et=i[O[Ie][0]];ac.call(et,O[Ie][1].type)&&et[O[Ie][1].type].call(Object.assign({sliceSerialize:O[Ie][2].sliceSerialize},me),O[Ie][1])}if(me.tokenStack.length>0){const et=me.tokenStack[me.tokenStack.length-1];(et[1]||fc).call(me,void 0,et[0])}for(Y.position={start:mn(O.length>0?O[0][1].start:{line:1,column:1,offset:0}),end:mn(O.length>0?O[O.length-2][1].end:{line:1,column:1,offset:0})},Ie=-1;++Ie<i.transforms.length;)Y=i.transforms[Ie](Y)||Y;return Y}function s(O,Y,me){let Ee=Y-1,Ie=-1,et=!1,nn,At,vn,Wn;for(;++Ee<=me;){const tt=O[Ee];switch(tt[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{tt[0]==="enter"?Ie++:Ie--,Wn=void 0;break}case"lineEndingBlank":{tt[0]==="enter"&&(nn&&!Wn&&!Ie&&!vn&&(vn=Ee),Wn=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:Wn=void 0}if(!Ie&&tt[0]==="enter"&&tt[1].type==="listItemPrefix"||Ie===-1&&tt[0]==="exit"&&(tt[1].type==="listUnordered"||tt[1].type==="listOrdered")){if(nn){let qt=Ee;for(At=void 0;qt--;){const Ct=O[qt];if(Ct[1].type==="lineEnding"||Ct[1].type==="lineEndingBlank"){if(Ct[0]==="exit")continue;At&&(O[At][1].type="lineEndingBlank",et=!0),Ct[1].type="lineEnding",At=qt}else if(!(Ct[1].type==="linePrefix"||Ct[1].type==="blockQuotePrefix"||Ct[1].type==="blockQuotePrefixWhitespace"||Ct[1].type==="blockQuoteMarker"||Ct[1].type==="listItemIndent"))break}vn&&(!At||vn<At)&&(nn._spread=!0),nn.end=Object.assign({},At?O[At][1].start:tt[1].end),O.splice(At||Ee,0,["exit",nn,tt[2]]),Ee++,me++}if(tt[1].type==="listItemPrefix"){const qt={type:"listItem",_spread:!1,start:Object.assign({},tt[1].start),end:void 0};nn=qt,O.splice(Ee,0,["enter",qt,tt[2]]),Ee++,me++,vn=void 0,Wn=!0}}}return O[Y][1]._spread=et,me}function a(O,Y){return me;function me(Ee){p.call(this,O(Ee),Ee),Y&&Y.call(this,Ee)}}function c(){this.stack.push({type:"fragment",children:[]})}function p(O,Y,me){this.stack[this.stack.length-1].children.push(O),this.stack.push(O),this.tokenStack.push([Y,me||void 0]),O.position={start:mn(Y.start),end:void 0}}function h(O){return Y;function Y(me){O&&O.call(this,me),m.call(this,me)}}function m(O,Y){const me=this.stack.pop(),Ee=this.tokenStack.pop();if(Ee)Ee[0].type!==O.type&&(Y?Y.call(this,O,Ee[0]):(Ee[1]||fc).call(this,O,Ee[0]));else throw new Error("Cannot close `"+O.type+"` ("+$r({start:O.start,end:O.end})+"): it’s not open");me.position.end=mn(O.end)}function y(){return Oo(this.stack.pop())}function g(){this.data.expectingFirstListItemValue=!0}function w(O){if(this.data.expectingFirstListItemValue){const Y=this.stack[this.stack.length-2];Y.start=Number.parseInt(this.sliceSerialize(O),10),this.data.expectingFirstListItemValue=void 0}}function v(){const O=this.resume(),Y=this.stack[this.stack.length-1];Y.lang=O}function _(){const O=this.resume(),Y=this.stack[this.stack.length-1];Y.meta=O}function z(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function D(){const O=this.resume(),Y=this.stack[this.stack.length-1];Y.value=O.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function A(){const O=this.resume(),Y=this.stack[this.stack.length-1];Y.value=O.replace(/(\r?\n|\r)$/g,"")}function H(O){const Y=this.resume(),me=this.stack[this.stack.length-1];me.label=Y,me.identifier=Mt(this.sliceSerialize(O)).toLowerCase()}function M(){const O=this.resume(),Y=this.stack[this.stack.length-1];Y.title=O}function ne(){const O=this.resume(),Y=this.stack[this.stack.length-1];Y.url=O}function ue(O){const Y=this.stack[this.stack.length-1];if(!Y.depth){const me=this.sliceSerialize(O).length;Y.depth=me}}function L(){this.data.setextHeadingSlurpLineEnding=!0}function se(O){const Y=this.stack[this.stack.length-1];Y.depth=this.sliceSerialize(O).codePointAt(0)===61?1:2}function de(){this.data.setextHeadingSlurpLineEnding=void 0}function ye(O){const me=this.stack[this.stack.length-1].children;let Ee=me[me.length-1];(!Ee||Ee.type!=="text")&&(Ee=ll(),Ee.position={start:mn(O.start),end:void 0},me.push(Ee)),this.stack.push(Ee)}function R(O){const Y=this.stack.pop();Y.value+=this.sliceSerialize(O),Y.position.end=mn(O.end)}function X(O){const Y=this.stack[this.stack.length-1];if(this.data.atHardBreak){const me=Y.children[Y.children.length-1];me.position.end=mn(O.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&i.canContainEols.includes(Y.type)&&(ye.call(this,O),R.call(this,O))}function J(){this.data.atHardBreak=!0}function K(){const O=this.resume(),Y=this.stack[this.stack.length-1];Y.value=O}function Q(){const O=this.resume(),Y=this.stack[this.stack.length-1];Y.value=O}function $(){const O=this.resume(),Y=this.stack[this.stack.length-1];Y.value=O}function Z(){const O=this.stack[this.stack.length-1];if(this.data.inReference){const Y=this.data.referenceType||"shortcut";O.type+="Reference",O.referenceType=Y,delete O.url,delete O.title}else delete O.identifier,delete O.label;this.data.referenceType=void 0}function ie(){const O=this.stack[this.stack.length-1];if(this.data.inReference){const Y=this.data.referenceType||"shortcut";O.type+="Reference",O.referenceType=Y,delete O.url,delete O.title}else delete O.identifier,delete O.label;this.data.referenceType=void 0}function U(O){const Y=this.sliceSerialize(O),me=this.stack[this.stack.length-2];me.label=vy(Y),me.identifier=Mt(Y).toLowerCase()}function ee(){const O=this.stack[this.stack.length-1],Y=this.resume(),me=this.stack[this.stack.length-1];if(this.data.inReference=!0,me.type==="link"){const Ee=O.children;me.children=Ee}else me.alt=Y}function x(){const O=this.resume(),Y=this.stack[this.stack.length-1];Y.url=O}function I(){const O=this.resume(),Y=this.stack[this.stack.length-1];Y.title=O}function F(){this.data.inReference=void 0}function E(){this.data.referenceType="collapsed"}function he(O){const Y=this.resume(),me=this.stack[this.stack.length-1];me.label=Y,me.identifier=Mt(this.sliceSerialize(O)).toLowerCase(),this.data.referenceType="full"}function we(O){this.data.characterReferenceType=O.type}function pe(O){const Y=this.sliceSerialize(O),me=this.data.characterReferenceType;let Ee;me?(Ee=Qa(Y,me==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):Ee=Mo(Y);const Ie=this.stack[this.stack.length-1];Ie.value+=Ee}function Ne(O){const Y=this.stack.pop();Y.position.end=mn(O.end)}function Se(O){R.call(this,O);const Y=this.stack[this.stack.length-1];Y.url=this.sliceSerialize(O)}function be(O){R.call(this,O);const Y=this.stack[this.stack.length-1];Y.url="mailto:"+this.sliceSerialize(O)}function Qe(){return{type:"blockquote",children:[]}}function tn(){return{type:"code",lang:null,meta:null,value:""}}function nl(){return{type:"inlineCode",value:""}}function cr(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function Zr(){return{type:"emphasis",children:[]}}function ei(){return{type:"heading",depth:0,children:[]}}function ti(){return{type:"break"}}function fr(){return{type:"html",value:""}}function rl(){return{type:"image",title:null,url:"",alt:null}}function pr(){return{type:"link",title:null,url:"",children:[]}}function yn(O){return{type:"list",ordered:O.type==="listOrdered",start:null,spread:O._spread,children:[]}}function kn(O){return{type:"listItem",spread:O._spread,checked:null,children:[]}}function ni(){return{type:"paragraph",children:[]}}function il(){return{type:"strong",children:[]}}function ll(){return{type:"text",value:""}}function ol(){return{type:"thematicBreak"}}}function mn(t){return{line:t.line,column:t.column,offset:t.offset}}function cc(t,i){let r=-1;for(;++r<i.length;){const o=i[r];Array.isArray(o)?cc(t,o):Ey(t,o)}}function Ey(t,i){let r;for(r in i)if(ac.call(i,r))switch(r){case"canContainEols":{const o=i[r];o&&t[r].push(...o);break}case"transforms":{const o=i[r];o&&t[r].push(...o);break}case"enter":case"exit":{const o=i[r];o&&Object.assign(t[r],o);break}}}function fc(t,i){throw t?new Error("Cannot close `"+t.type+"` ("+$r({start:t.start,end:t.end})+"): a different token (`"+i.type+"`, "+$r({start:i.start,end:i.end})+") is open"):new Error("Cannot close document, a token (`"+i.type+"`, "+$r({start:i.start,end:i.end})+") is still open")}function Cy(t){const i=this;i.parser=r;function r(o){return xy(o,{...i.data("settings"),...t,extensions:i.data("micromarkExtensions")||[],mdastExtensions:i.data("fromMarkdownExtensions")||[]})}}function Ty(t,i){const r={type:"element",tagName:"blockquote",properties:{},children:t.wrap(t.all(i),!0)};return t.patch(i,r),t.applyData(i,r)}function _y(t,i){const r={type:"element",tagName:"br",properties:{},children:[]};return t.patch(i,r),[t.applyData(i,r),{type:"text",value:`
20
- `}]}function Iy(t,i){const r=i.value?i.value+`
21
- `:"",o={},s=i.lang?i.lang.split(/\s+/):[];s.length>0&&(o.className=["language-"+s[0]]);let a={type:"element",tagName:"code",properties:o,children:[{type:"text",value:r}]};return i.meta&&(a.data={meta:i.meta}),t.patch(i,a),a=t.applyData(i,a),a={type:"element",tagName:"pre",properties:{},children:[a]},t.patch(i,a),a}function Py(t,i){const r={type:"element",tagName:"del",properties:{},children:t.all(i)};return t.patch(i,r),t.applyData(i,r)}function Ny(t,i){const r={type:"element",tagName:"em",properties:{},children:t.all(i)};return t.patch(i,r),t.applyData(i,r)}function Ay(t,i){const r=typeof t.options.clobberPrefix=="string"?t.options.clobberPrefix:"user-content-",o=String(i.identifier).toUpperCase(),s=ur(o.toLowerCase()),a=t.footnoteOrder.indexOf(o);let c,p=t.footnoteCounts.get(o);p===void 0?(p=0,t.footnoteOrder.push(o),c=t.footnoteOrder.length):c=a+1,p+=1,t.footnoteCounts.set(o,p);const h={type:"element",tagName:"a",properties:{href:"#"+r+"fn-"+s,id:r+"fnref-"+s+(p>1?"-"+p:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(c)}]};t.patch(i,h);const m={type:"element",tagName:"sup",properties:{},children:[h]};return t.patch(i,m),t.applyData(i,m)}function by(t,i){const r={type:"element",tagName:"h"+i.depth,properties:{},children:t.all(i)};return t.patch(i,r),t.applyData(i,r)}function Ry(t,i){if(t.options.allowDangerousHtml){const r={type:"raw",value:i.value};return t.patch(i,r),t.applyData(i,r)}}function pc(t,i){const r=i.referenceType;let o="]";if(r==="collapsed"?o+="[]":r==="full"&&(o+="["+(i.label||i.identifier)+"]"),i.type==="imageReference")return[{type:"text",value:"!["+i.alt+o}];const s=t.all(i),a=s[0];a&&a.type==="text"?a.value="["+a.value:s.unshift({type:"text",value:"["});const c=s[s.length-1];return c&&c.type==="text"?c.value+=o:s.push({type:"text",value:o}),s}function zy(t,i){const r=String(i.identifier).toUpperCase(),o=t.definitionById.get(r);if(!o)return pc(t,i);const s={src:ur(o.url||""),alt:i.alt};o.title!==null&&o.title!==void 0&&(s.title=o.title);const a={type:"element",tagName:"img",properties:s,children:[]};return t.patch(i,a),t.applyData(i,a)}function Ly(t,i){const r={src:ur(i.url)};i.alt!==null&&i.alt!==void 0&&(r.alt=i.alt),i.title!==null&&i.title!==void 0&&(r.title=i.title);const o={type:"element",tagName:"img",properties:r,children:[]};return t.patch(i,o),t.applyData(i,o)}function Dy(t,i){const r={type:"text",value:i.value.replace(/\r?\n|\r/g," ")};t.patch(i,r);const o={type:"element",tagName:"code",properties:{},children:[r]};return t.patch(i,o),t.applyData(i,o)}function Oy(t,i){const r=String(i.identifier).toUpperCase(),o=t.definitionById.get(r);if(!o)return pc(t,i);const s={href:ur(o.url||"")};o.title!==null&&o.title!==void 0&&(s.title=o.title);const a={type:"element",tagName:"a",properties:s,children:t.all(i)};return t.patch(i,a),t.applyData(i,a)}function My(t,i){const r={href:ur(i.url)};i.title!==null&&i.title!==void 0&&(r.title=i.title);const o={type:"element",tagName:"a",properties:r,children:t.all(i)};return t.patch(i,o),t.applyData(i,o)}function Fy(t,i,r){const o=t.all(i),s=r?jy(r):dc(i),a={},c=[];if(typeof i.checked=="boolean"){const y=o[0];let g;y&&y.type==="element"&&y.tagName==="p"?g=y:(g={type:"element",tagName:"p",properties:{},children:[]},o.unshift(g)),g.children.length>0&&g.children.unshift({type:"text",value:" "}),g.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:i.checked,disabled:!0},children:[]}),a.className=["task-list-item"]}let p=-1;for(;++p<o.length;){const y=o[p];(s||p!==0||y.type!=="element"||y.tagName!=="p")&&c.push({type:"text",value:`
21
+ `;break}case-2:{c=i?" ":" ";break}case-1:{if(!i&&s)continue;c=" ";break}default:c=String.fromCharCode(a)}s=a===-2,o.push(c)}return o.join("")}function fy(t){const o={constructs:Wa([uy,...(t||{}).extensions||[]]),content:s(bm),defined:[],document:s(Mm),flow:s(ty),lazy:{},string:s(iy),text:s(ly)};return o;function s(a){return c;function c(p){return sy(o,a,p)}}}function py(t){for(;!ec(t););return t}const sc=/[\0\t\n\r]/g;function dy(){let t=1,i="",r=!0,o;return s;function s(a,c,p){const h=[];let m,y,g,x,v;for(a=i+(typeof a=="string"?a.toString():new TextDecoder(c||void 0).decode(a)),g=0,i="",r&&(a.charCodeAt(0)===65279&&g++,r=void 0);g<a.length;){if(sc.lastIndex=g,m=sc.exec(a),x=m&&m.index!==void 0?m.index:a.length,v=a.charCodeAt(x),!m){i=a.slice(g);break}if(v===10&&g===x&&o)h.push(-3),o=void 0;else switch(o&&(h.push(-5),o=void 0),g<x&&(h.push(a.slice(g,x)),t+=x-g),v){case 0:{h.push(65533),t++;break}case 9:{for(y=Math.ceil(t/4)*4,h.push(-2);t++<y;)h.push(-1);break}case 10:{h.push(-4),t=1;break}default:o=!0,t=1}g=x+1}return p&&(o&&h.push(-5),i&&h.push(i),h.push(null)),h}}const hy=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function my(t){return t.replace(hy,gy)}function gy(t,i,r){if(i)return i;if(r.charCodeAt(0)===35){const s=r.charCodeAt(1),a=s===120||s===88;return qa(r.slice(a?2:1),a?16:10)}return Oo(r)||t}const ac={}.hasOwnProperty;function yy(t,i,r){return i&&typeof i=="object"&&(r=i,i=void 0),ky(r)(py(fy(r).document().write(dy()(t,i,!0))))}function ky(t){const i={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:a(pr),autolinkProtocol:ke,autolinkEmail:ke,atxHeading:a(ei),blockQuote:a(qe),characterEscape:ke,characterReference:ke,codeFenced:a(tn),codeFencedFenceInfo:c,codeFencedFenceMeta:c,codeIndented:a(tn,c),codeText:a(nl,c),codeTextData:ke,data:ke,codeFlowValue:ke,definition:a(cr),definitionDestinationString:c,definitionLabelString:c,definitionTitleString:c,emphasis:a(Zr),hardBreakEscape:a(ti),hardBreakTrailing:a(ti),htmlFlow:a(fr,c),htmlFlowData:ke,htmlText:a(fr,c),htmlTextData:ke,image:a(rl),label:c,link:a(pr),listItem:a(kn),listItemValue:x,listOrdered:a(yn,g),listUnordered:a(yn),paragraph:a(ni),reference:E,referenceString:c,resourceDestinationString:c,resourceTitleString:c,setextHeading:a(ei),strong:a(il),thematicBreak:a(ol)},exit:{atxHeading:h(),atxHeadingSequence:le,autolink:h(),autolinkEmail:Re,autolinkProtocol:Se,blockQuote:h(),characterEscapeValue:P,characterReferenceMarkerHexadecimal:xe,characterReferenceMarkerNumeric:xe,characterReferenceValue:fe,characterReference:Ae,codeFenced:h(b),codeFencedFence:D,codeFencedFenceInfo:v,codeFencedFenceMeta:_,codeFlowValue:P,codeIndented:h(R),codeText:h(H),codeTextData:P,data:P,definition:h(),definitionDestinationString:ne,definitionLabelString:U,definitionTitleString:M,emphasis:h(),hardBreakEscape:h(G),hardBreakTrailing:h(G),htmlFlow:h(J),htmlFlowData:P,htmlText:h(Y),htmlTextData:P,image:h(ye),label:ie,labelText:Q,lineEnding:W,link:h(ce),listItem:h(),listOrdered:h(),listUnordered:h(),paragraph:h(),referenceString:pe,resourceDestinationString:w,resourceTitleString:I,resource:F,setextHeading:h(he),setextHeadingLineSequence:oe,setextHeadingText:L,strong:h(),thematicBreak:h()}};cc(i,(t||{}).mdastExtensions||[]);const r={};return o;function o(O){let K={type:"root",children:[]};const de={stack:[K],tokenStack:[],config:i,enter:p,exit:m,buffer:c,resume:y,data:r},Ee=[];let Ie=-1;for(;++Ie<O.length;)if(O[Ie][1].type==="listOrdered"||O[Ie][1].type==="listUnordered")if(O[Ie][0]==="enter")Ee.push(Ie);else{const et=Ee.pop();Ie=s(O,et,Ie)}for(Ie=-1;++Ie<O.length;){const et=i[O[Ie][0]];ac.call(et,O[Ie][1].type)&&et[O[Ie][1].type].call(Object.assign({sliceSerialize:O[Ie][2].sliceSerialize},de),O[Ie][1])}if(de.tokenStack.length>0){const et=de.tokenStack[de.tokenStack.length-1];(et[1]||fc).call(de,void 0,et[0])}for(K.position={start:mn(O.length>0?O[0][1].start:{line:1,column:1,offset:0}),end:mn(O.length>0?O[O.length-2][1].end:{line:1,column:1,offset:0})},Ie=-1;++Ie<i.transforms.length;)K=i.transforms[Ie](K)||K;return K}function s(O,K,de){let Ee=K-1,Ie=-1,et=!1,nn,Nt,vn,Wn;for(;++Ee<=de;){const tt=O[Ee];switch(tt[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{tt[0]==="enter"?Ie++:Ie--,Wn=void 0;break}case"lineEndingBlank":{tt[0]==="enter"&&(nn&&!Wn&&!Ie&&!vn&&(vn=Ee),Wn=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:Wn=void 0}if(!Ie&&tt[0]==="enter"&&tt[1].type==="listItemPrefix"||Ie===-1&&tt[0]==="exit"&&(tt[1].type==="listUnordered"||tt[1].type==="listOrdered")){if(nn){let Qt=Ee;for(Nt=void 0;Qt--;){const Ct=O[Qt];if(Ct[1].type==="lineEnding"||Ct[1].type==="lineEndingBlank"){if(Ct[0]==="exit")continue;Nt&&(O[Nt][1].type="lineEndingBlank",et=!0),Ct[1].type="lineEnding",Nt=Qt}else if(!(Ct[1].type==="linePrefix"||Ct[1].type==="blockQuotePrefix"||Ct[1].type==="blockQuotePrefixWhitespace"||Ct[1].type==="blockQuoteMarker"||Ct[1].type==="listItemIndent"))break}vn&&(!Nt||vn<Nt)&&(nn._spread=!0),nn.end=Object.assign({},Nt?O[Nt][1].start:tt[1].end),O.splice(Nt||Ee,0,["exit",nn,tt[2]]),Ee++,de++}if(tt[1].type==="listItemPrefix"){const Qt={type:"listItem",_spread:!1,start:Object.assign({},tt[1].start),end:void 0};nn=Qt,O.splice(Ee,0,["enter",Qt,tt[2]]),Ee++,de++,vn=void 0,Wn=!0}}}return O[K][1]._spread=et,de}function a(O,K){return de;function de(Ee){p.call(this,O(Ee),Ee),K&&K.call(this,Ee)}}function c(){this.stack.push({type:"fragment",children:[]})}function p(O,K,de){this.stack[this.stack.length-1].children.push(O),this.stack.push(O),this.tokenStack.push([K,de||void 0]),O.position={start:mn(K.start),end:void 0}}function h(O){return K;function K(de){O&&O.call(this,de),m.call(this,de)}}function m(O,K){const de=this.stack.pop(),Ee=this.tokenStack.pop();if(Ee)Ee[0].type!==O.type&&(K?K.call(this,O,Ee[0]):(Ee[1]||fc).call(this,O,Ee[0]));else throw new Error("Cannot close `"+O.type+"` ("+$r({start:O.start,end:O.end})+"): it’s not open");de.position.end=mn(O.end)}function y(){return bo(this.stack.pop())}function g(){this.data.expectingFirstListItemValue=!0}function x(O){if(this.data.expectingFirstListItemValue){const K=this.stack[this.stack.length-2];K.start=Number.parseInt(this.sliceSerialize(O),10),this.data.expectingFirstListItemValue=void 0}}function v(){const O=this.resume(),K=this.stack[this.stack.length-1];K.lang=O}function _(){const O=this.resume(),K=this.stack[this.stack.length-1];K.meta=O}function D(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function b(){const O=this.resume(),K=this.stack[this.stack.length-1];K.value=O.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function R(){const O=this.resume(),K=this.stack[this.stack.length-1];K.value=O.replace(/(\r?\n|\r)$/g,"")}function U(O){const K=this.resume(),de=this.stack[this.stack.length-1];de.label=K,de.identifier=Mt(this.sliceSerialize(O)).toLowerCase()}function M(){const O=this.resume(),K=this.stack[this.stack.length-1];K.title=O}function ne(){const O=this.resume(),K=this.stack[this.stack.length-1];K.url=O}function le(O){const K=this.stack[this.stack.length-1];if(!K.depth){const de=this.sliceSerialize(O).length;K.depth=de}}function L(){this.data.setextHeadingSlurpLineEnding=!0}function oe(O){const K=this.stack[this.stack.length-1];K.depth=this.sliceSerialize(O).codePointAt(0)===61?1:2}function he(){this.data.setextHeadingSlurpLineEnding=void 0}function ke(O){const de=this.stack[this.stack.length-1].children;let Ee=de[de.length-1];(!Ee||Ee.type!=="text")&&(Ee=ll(),Ee.position={start:mn(O.start),end:void 0},de.push(Ee)),this.stack.push(Ee)}function P(O){const K=this.stack.pop();K.value+=this.sliceSerialize(O),K.position.end=mn(O.end)}function W(O){const K=this.stack[this.stack.length-1];if(this.data.atHardBreak){const de=K.children[K.children.length-1];de.position.end=mn(O.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&i.canContainEols.includes(K.type)&&(ke.call(this,O),P.call(this,O))}function G(){this.data.atHardBreak=!0}function J(){const O=this.resume(),K=this.stack[this.stack.length-1];K.value=O}function Y(){const O=this.resume(),K=this.stack[this.stack.length-1];K.value=O}function H(){const O=this.resume(),K=this.stack[this.stack.length-1];K.value=O}function ce(){const O=this.stack[this.stack.length-1];if(this.data.inReference){const K=this.data.referenceType||"shortcut";O.type+="Reference",O.referenceType=K,delete O.url,delete O.title}else delete O.identifier,delete O.label;this.data.referenceType=void 0}function ye(){const O=this.stack[this.stack.length-1];if(this.data.inReference){const K=this.data.referenceType||"shortcut";O.type+="Reference",O.referenceType=K,delete O.url,delete O.title}else delete O.identifier,delete O.label;this.data.referenceType=void 0}function Q(O){const K=this.sliceSerialize(O),de=this.stack[this.stack.length-2];de.label=my(K),de.identifier=Mt(K).toLowerCase()}function ie(){const O=this.stack[this.stack.length-1],K=this.resume(),de=this.stack[this.stack.length-1];if(this.data.inReference=!0,de.type==="link"){const Ee=O.children;de.children=Ee}else de.alt=K}function w(){const O=this.resume(),K=this.stack[this.stack.length-1];K.url=O}function I(){const O=this.resume(),K=this.stack[this.stack.length-1];K.title=O}function F(){this.data.inReference=void 0}function E(){this.data.referenceType="collapsed"}function pe(O){const K=this.resume(),de=this.stack[this.stack.length-1];de.label=K,de.identifier=Mt(this.sliceSerialize(O)).toLowerCase(),this.data.referenceType="full"}function xe(O){this.data.characterReferenceType=O.type}function fe(O){const K=this.sliceSerialize(O),de=this.data.characterReferenceType;let Ee;de?(Ee=qa(K,de==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):Ee=Oo(K);const Ie=this.stack[this.stack.length-1];Ie.value+=Ee}function Ae(O){const K=this.stack.pop();K.position.end=mn(O.end)}function Se(O){P.call(this,O);const K=this.stack[this.stack.length-1];K.url=this.sliceSerialize(O)}function Re(O){P.call(this,O);const K=this.stack[this.stack.length-1];K.url="mailto:"+this.sliceSerialize(O)}function qe(){return{type:"blockquote",children:[]}}function tn(){return{type:"code",lang:null,meta:null,value:""}}function nl(){return{type:"inlineCode",value:""}}function cr(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function Zr(){return{type:"emphasis",children:[]}}function ei(){return{type:"heading",depth:0,children:[]}}function ti(){return{type:"break"}}function fr(){return{type:"html",value:""}}function rl(){return{type:"image",title:null,url:"",alt:null}}function pr(){return{type:"link",title:null,url:"",children:[]}}function yn(O){return{type:"list",ordered:O.type==="listOrdered",start:null,spread:O._spread,children:[]}}function kn(O){return{type:"listItem",spread:O._spread,checked:null,children:[]}}function ni(){return{type:"paragraph",children:[]}}function il(){return{type:"strong",children:[]}}function ll(){return{type:"text",value:""}}function ol(){return{type:"thematicBreak"}}}function mn(t){return{line:t.line,column:t.column,offset:t.offset}}function cc(t,i){let r=-1;for(;++r<i.length;){const o=i[r];Array.isArray(o)?cc(t,o):vy(t,o)}}function vy(t,i){let r;for(r in i)if(ac.call(i,r))switch(r){case"canContainEols":{const o=i[r];o&&t[r].push(...o);break}case"transforms":{const o=i[r];o&&t[r].push(...o);break}case"enter":case"exit":{const o=i[r];o&&Object.assign(t[r],o);break}}}function fc(t,i){throw t?new Error("Cannot close `"+t.type+"` ("+$r({start:t.start,end:t.end})+"): a different token (`"+i.type+"`, "+$r({start:i.start,end:i.end})+") is open"):new Error("Cannot close document, a token (`"+i.type+"`, "+$r({start:i.start,end:i.end})+") is still open")}function xy(t){const i=this;i.parser=r;function r(o){return yy(o,{...i.data("settings"),...t,extensions:i.data("micromarkExtensions")||[],mdastExtensions:i.data("fromMarkdownExtensions")||[]})}}function wy(t,i){const r={type:"element",tagName:"blockquote",properties:{},children:t.wrap(t.all(i),!0)};return t.patch(i,r),t.applyData(i,r)}function Sy(t,i){const r={type:"element",tagName:"br",properties:{},children:[]};return t.patch(i,r),[t.applyData(i,r),{type:"text",value:`
22
+ `}]}function Ey(t,i){const r=i.value?i.value+`
23
+ `:"",o={},s=i.lang?i.lang.split(/\s+/):[];s.length>0&&(o.className=["language-"+s[0]]);let a={type:"element",tagName:"code",properties:o,children:[{type:"text",value:r}]};return i.meta&&(a.data={meta:i.meta}),t.patch(i,a),a=t.applyData(i,a),a={type:"element",tagName:"pre",properties:{},children:[a]},t.patch(i,a),a}function Cy(t,i){const r={type:"element",tagName:"del",properties:{},children:t.all(i)};return t.patch(i,r),t.applyData(i,r)}function Ty(t,i){const r={type:"element",tagName:"em",properties:{},children:t.all(i)};return t.patch(i,r),t.applyData(i,r)}function _y(t,i){const r=typeof t.options.clobberPrefix=="string"?t.options.clobberPrefix:"user-content-",o=String(i.identifier).toUpperCase(),s=ur(o.toLowerCase()),a=t.footnoteOrder.indexOf(o);let c,p=t.footnoteCounts.get(o);p===void 0?(p=0,t.footnoteOrder.push(o),c=t.footnoteOrder.length):c=a+1,p+=1,t.footnoteCounts.set(o,p);const h={type:"element",tagName:"a",properties:{href:"#"+r+"fn-"+s,id:r+"fnref-"+s+(p>1?"-"+p:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(c)}]};t.patch(i,h);const m={type:"element",tagName:"sup",properties:{},children:[h]};return t.patch(i,m),t.applyData(i,m)}function Iy(t,i){const r={type:"element",tagName:"h"+i.depth,properties:{},children:t.all(i)};return t.patch(i,r),t.applyData(i,r)}function Py(t,i){if(t.options.allowDangerousHtml){const r={type:"raw",value:i.value};return t.patch(i,r),t.applyData(i,r)}}function pc(t,i){const r=i.referenceType;let o="]";if(r==="collapsed"?o+="[]":r==="full"&&(o+="["+(i.label||i.identifier)+"]"),i.type==="imageReference")return[{type:"text",value:"!["+i.alt+o}];const s=t.all(i),a=s[0];a&&a.type==="text"?a.value="["+a.value:s.unshift({type:"text",value:"["});const c=s[s.length-1];return c&&c.type==="text"?c.value+=o:s.push({type:"text",value:o}),s}function Ay(t,i){const r=String(i.identifier).toUpperCase(),o=t.definitionById.get(r);if(!o)return pc(t,i);const s={src:ur(o.url||""),alt:i.alt};o.title!==null&&o.title!==void 0&&(s.title=o.title);const a={type:"element",tagName:"img",properties:s,children:[]};return t.patch(i,a),t.applyData(i,a)}function Ny(t,i){const r={src:ur(i.url)};i.alt!==null&&i.alt!==void 0&&(r.alt=i.alt),i.title!==null&&i.title!==void 0&&(r.title=i.title);const o={type:"element",tagName:"img",properties:r,children:[]};return t.patch(i,o),t.applyData(i,o)}function Ry(t,i){const r={type:"text",value:i.value.replace(/\r?\n|\r/g," ")};t.patch(i,r);const o={type:"element",tagName:"code",properties:{},children:[r]};return t.patch(i,o),t.applyData(i,o)}function zy(t,i){const r=String(i.identifier).toUpperCase(),o=t.definitionById.get(r);if(!o)return pc(t,i);const s={href:ur(o.url||"")};o.title!==null&&o.title!==void 0&&(s.title=o.title);const a={type:"element",tagName:"a",properties:s,children:t.all(i)};return t.patch(i,a),t.applyData(i,a)}function Ly(t,i){const r={href:ur(i.url)};i.title!==null&&i.title!==void 0&&(r.title=i.title);const o={type:"element",tagName:"a",properties:r,children:t.all(i)};return t.patch(i,o),t.applyData(i,o)}function Dy(t,i,r){const o=t.all(i),s=r?by(r):dc(i),a={},c=[];if(typeof i.checked=="boolean"){const y=o[0];let g;y&&y.type==="element"&&y.tagName==="p"?g=y:(g={type:"element",tagName:"p",properties:{},children:[]},o.unshift(g)),g.children.length>0&&g.children.unshift({type:"text",value:" "}),g.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:i.checked,disabled:!0},children:[]}),a.className=["task-list-item"]}let p=-1;for(;++p<o.length;){const y=o[p];(s||p!==0||y.type!=="element"||y.tagName!=="p")&&c.push({type:"text",value:`
22
24
  `}),y.type==="element"&&y.tagName==="p"&&!s?c.push(...y.children):c.push(y)}const h=o[o.length-1];h&&(s||h.type!=="element"||h.tagName!=="p")&&c.push({type:"text",value:`
23
- `});const m={type:"element",tagName:"li",properties:a,children:c};return t.patch(i,m),t.applyData(i,m)}function jy(t){let i=!1;if(t.type==="list"){i=t.spread||!1;const r=t.children;let o=-1;for(;!i&&++o<r.length;)i=dc(r[o])}return i}function dc(t){const i=t.spread;return i==null?t.children.length>1:i}function By(t,i){const r={},o=t.all(i);let s=-1;for(typeof i.start=="number"&&i.start!==1&&(r.start=i.start);++s<o.length;){const c=o[s];if(c.type==="element"&&c.tagName==="li"&&c.properties&&Array.isArray(c.properties.className)&&c.properties.className.includes("task-list-item")){r.className=["contains-task-list"];break}}const a={type:"element",tagName:i.ordered?"ol":"ul",properties:r,children:t.wrap(o,!0)};return t.patch(i,a),t.applyData(i,a)}function Uy(t,i){const r={type:"element",tagName:"p",properties:{},children:t.all(i)};return t.patch(i,r),t.applyData(i,r)}function $y(t,i){const r={type:"root",children:t.wrap(t.all(i))};return t.patch(i,r),t.applyData(i,r)}function Vy(t,i){const r={type:"element",tagName:"strong",properties:{},children:t.all(i)};return t.patch(i,r),t.applyData(i,r)}function Hy(t,i){const r=t.all(i),o=r.shift(),s=[];if(o){const c={type:"element",tagName:"thead",properties:{},children:t.wrap([o],!0)};t.patch(i.children[0],c),s.push(c)}if(r.length>0){const c={type:"element",tagName:"tbody",properties:{},children:t.wrap(r,!0)},p=Ao(i.children[1]),h=Ra(i.children[i.children.length-1]);p&&h&&(c.position={start:p,end:h}),s.push(c)}const a={type:"element",tagName:"table",properties:{},children:t.wrap(s,!0)};return t.patch(i,a),t.applyData(i,a)}function Wy(t,i,r){const o=r?r.children:void 0,a=(o?o.indexOf(i):1)===0?"th":"td",c=r&&r.type==="table"?r.align:void 0,p=c?c.length:i.children.length;let h=-1;const m=[];for(;++h<p;){const g=i.children[h],w={},v=c?c[h]:void 0;v&&(w.align=v);let _={type:"element",tagName:a,properties:w,children:[]};g&&(_.children=t.all(g),t.patch(g,_),_=t.applyData(g,_)),m.push(_)}const y={type:"element",tagName:"tr",properties:{},children:t.wrap(m,!0)};return t.patch(i,y),t.applyData(i,y)}function Qy(t,i){const r={type:"element",tagName:"td",properties:{},children:t.all(i)};return t.patch(i,r),t.applyData(i,r)}const hc=9,mc=32;function qy(t){const i=String(t),r=/\r?\n|\r/g;let o=r.exec(i),s=0;const a=[];for(;o;)a.push(gc(i.slice(s,o.index),s>0,!0),o[0]),s=o.index+o[0].length,o=r.exec(i);return a.push(gc(i.slice(s),s>0,!1)),a.join("")}function gc(t,i,r){let o=0,s=t.length;if(i){let a=t.codePointAt(o);for(;a===hc||a===mc;)o++,a=t.codePointAt(o)}if(r){let a=t.codePointAt(s-1);for(;a===hc||a===mc;)s--,a=t.codePointAt(s-1)}return s>o?t.slice(o,s):""}function Yy(t,i){const r={type:"text",value:qy(String(i.value))};return t.patch(i,r),t.applyData(i,r)}function Ky(t,i){const r={type:"element",tagName:"hr",properties:{},children:[]};return t.patch(i,r),t.applyData(i,r)}const Gy={blockquote:Ty,break:_y,code:Iy,delete:Py,emphasis:Ny,footnoteReference:Ay,heading:by,html:Ry,imageReference:zy,image:Ly,inlineCode:Dy,linkReference:Oy,link:My,listItem:Fy,list:By,paragraph:Uy,root:$y,strong:Vy,table:Hy,tableCell:Qy,tableRow:Wy,text:Yy,thematicBreak:Ky,toml:qi,yaml:qi,definition:qi,footnoteDefinition:qi};function qi(){}const yc=-1,Yi=0,qr=1,Ki=2,Vo=3,Ho=4,Wo=5,Qo=6,kc=7,vc=8,wc=typeof self=="object"?self:globalThis,xc=(t,i)=>{switch(t){case"Function":case"SharedWorker":case"Worker":case"eval":case"setInterval":case"setTimeout":throw new TypeError("unable to deserialize "+t)}return new wc[t](i)},Xy=(t,i)=>{const r=(s,a)=>(t.set(a,s),s),o=s=>{if(t.has(s))return t.get(s);const[a,c]=i[s];switch(a){case Yi:case yc:return r(c,s);case qr:{const p=r([],s);for(const h of c)p.push(o(h));return p}case Ki:{const p=r({},s);for(const[h,m]of c)p[o(h)]=o(m);return p}case Vo:return r(new Date(c),s);case Ho:{const{source:p,flags:h}=c;return r(new RegExp(p,h),s)}case Wo:{const p=r(new Map,s);for(const[h,m]of c)p.set(o(h),o(m));return p}case Qo:{const p=r(new Set,s);for(const h of c)p.add(o(h));return p}case kc:{const{name:p,message:h}=c;return r(typeof wc[p]=="function"?xc(p,h):new Error(h),s)}case vc:return r(BigInt(c),s);case"BigInt":return r(Object(BigInt(c)),s);case"ArrayBuffer":return r(new Uint8Array(c).buffer,c);case"DataView":{const{buffer:p}=new Uint8Array(c);return r(new DataView(p),c)}}return r(xc(a,c),s)};return o},Sc=t=>Xy(new Map,t)(0),$n="",{toString:Jy}={},{keys:Zy}=Object,Yr=t=>{const i=typeof t;if(i!=="object"||!t)return[Yi,i];const r=Jy.call(t).slice(8,-1);switch(r){case"Array":return[qr,$n];case"Object":return[Ki,$n];case"Date":return[Vo,$n];case"RegExp":return[Ho,$n];case"Map":return[Wo,$n];case"Set":return[Qo,$n];case"DataView":return[qr,r]}return r.includes("Array")?[qr,r]:t instanceof Error?[kc,t.name||"Error"]:[Ki,r]},Gi=([t,i])=>t===Yi&&(i==="function"||i==="symbol"),e1=(t,i,r,o)=>{const s=(c,p)=>{const h=o.push(c)-1;return r.set(p,h),h},a=c=>{if(r.has(c))return r.get(c);let[p,h]=Yr(c);switch(p){case Yi:{let y=c;switch(h){case"bigint":p=vc,y=c.toString();break;case"function":case"symbol":if(t)throw new TypeError("unable to serialize "+h);y=null;break;case"undefined":return s([yc],c)}return s([p,y],c)}case qr:{if(h){let w=c;return h==="DataView"?w=new Uint8Array(c.buffer):h==="ArrayBuffer"&&(w=new Uint8Array(c)),s([h,[...w]],c)}const y=[],g=s([p,y],c);for(const w of c)y.push(a(w));return g}case Ki:{if(h)switch(h){case"BigInt":return s([h,c.toString()],c);case"Boolean":case"Number":case"String":return s([h,c.valueOf()],c)}if(i&&"toJSON"in c)return a(c.toJSON());const y=[],g=s([p,y],c);for(const w of Zy(c))(t||!Gi(Yr(c[w])))&&y.push([a(w),a(c[w])]);return g}case Vo:return s([p,isNaN(c.getTime())?$n:c.toISOString()],c);case Ho:{const{source:y,flags:g}=c;return s([p,{source:y,flags:g}],c)}case Wo:{const y=[],g=s([p,y],c);for(const[w,v]of c)(t||!(Gi(Yr(w))||Gi(Yr(v))))&&y.push([a(w),a(v)]);return g}case Qo:{const y=[],g=s([p,y],c);for(const w of c)(t||!Gi(Yr(w)))&&y.push(a(w));return g}}const{message:m}=c;return s([p,{name:h,message:m}],c)};return a},Ec=(t,{json:i,lossy:r}={})=>{const o=[];return e1(!(i||r),!!i,new Map,o)(t),o},Kr=typeof structuredClone=="function"?(t,i)=>i&&("json"in i||"lossy"in i)?Sc(Ec(t,i)):structuredClone(t):(t,i)=>Sc(Ec(t,i));function t1(t,i){const r=[{type:"text",value:"↩"}];return i>1&&r.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(i)}]}),r}function n1(t,i){return"Back to reference "+(t+1)+(i>1?"-"+i:"")}function r1(t){const i=typeof t.options.clobberPrefix=="string"?t.options.clobberPrefix:"user-content-",r=t.options.footnoteBackContent||t1,o=t.options.footnoteBackLabel||n1,s=t.options.footnoteLabel||"Footnotes",a=t.options.footnoteLabelTagName||"h2",c=t.options.footnoteLabelProperties||{className:["sr-only"]},p=[];let h=-1;for(;++h<t.footnoteOrder.length;){const m=t.footnoteById.get(t.footnoteOrder[h]);if(!m)continue;const y=t.all(m),g=String(m.identifier).toUpperCase(),w=ur(g.toLowerCase());let v=0;const _=[],z=t.footnoteCounts.get(g);for(;z!==void 0&&++v<=z;){_.length>0&&_.push({type:"text",value:" "});let H=typeof r=="string"?r:r(h,v);typeof H=="string"&&(H={type:"text",value:H}),_.push({type:"element",tagName:"a",properties:{href:"#"+i+"fnref-"+w+(v>1?"-"+v:""),dataFootnoteBackref:"",ariaLabel:typeof o=="string"?o:o(h,v),className:["data-footnote-backref"]},children:Array.isArray(H)?H:[H]})}const D=y[y.length-1];if(D&&D.type==="element"&&D.tagName==="p"){const H=D.children[D.children.length-1];H&&H.type==="text"?H.value+=" ":D.children.push({type:"text",value:" "}),D.children.push(..._)}else y.push(..._);const A={type:"element",tagName:"li",properties:{id:i+"fn-"+w},children:t.wrap(y,!0)};t.patch(m,A),p.push(A)}if(p.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:a,properties:{...Kr(c),id:"footnote-label"},children:[{type:"text",value:s}]},{type:"text",value:`
25
+ `});const m={type:"element",tagName:"li",properties:a,children:c};return t.patch(i,m),t.applyData(i,m)}function by(t){let i=!1;if(t.type==="list"){i=t.spread||!1;const r=t.children;let o=-1;for(;!i&&++o<r.length;)i=dc(r[o])}return i}function dc(t){const i=t.spread;return i==null?t.children.length>1:i}function Oy(t,i){const r={},o=t.all(i);let s=-1;for(typeof i.start=="number"&&i.start!==1&&(r.start=i.start);++s<o.length;){const c=o[s];if(c.type==="element"&&c.tagName==="li"&&c.properties&&Array.isArray(c.properties.className)&&c.properties.className.includes("task-list-item")){r.className=["contains-task-list"];break}}const a={type:"element",tagName:i.ordered?"ol":"ul",properties:r,children:t.wrap(o,!0)};return t.patch(i,a),t.applyData(i,a)}function My(t,i){const r={type:"element",tagName:"p",properties:{},children:t.all(i)};return t.patch(i,r),t.applyData(i,r)}function Fy(t,i){const r={type:"root",children:t.wrap(t.all(i))};return t.patch(i,r),t.applyData(i,r)}function jy(t,i){const r={type:"element",tagName:"strong",properties:{},children:t.all(i)};return t.patch(i,r),t.applyData(i,r)}function By(t,i){const r=t.all(i),o=r.shift(),s=[];if(o){const c={type:"element",tagName:"thead",properties:{},children:t.wrap([o],!0)};t.patch(i.children[0],c),s.push(c)}if(r.length>0){const c={type:"element",tagName:"tbody",properties:{},children:t.wrap(r,!0)},p=Ao(i.children[1]),h=za(i.children[i.children.length-1]);p&&h&&(c.position={start:p,end:h}),s.push(c)}const a={type:"element",tagName:"table",properties:{},children:t.wrap(s,!0)};return t.patch(i,a),t.applyData(i,a)}function Uy(t,i,r){const o=r?r.children:void 0,a=(o?o.indexOf(i):1)===0?"th":"td",c=r&&r.type==="table"?r.align:void 0,p=c?c.length:i.children.length;let h=-1;const m=[];for(;++h<p;){const g=i.children[h],x={},v=c?c[h]:void 0;v&&(x.align=v);let _={type:"element",tagName:a,properties:x,children:[]};g&&(_.children=t.all(g),t.patch(g,_),_=t.applyData(g,_)),m.push(_)}const y={type:"element",tagName:"tr",properties:{},children:t.wrap(m,!0)};return t.patch(i,y),t.applyData(i,y)}function $y(t,i){const r={type:"element",tagName:"td",properties:{},children:t.all(i)};return t.patch(i,r),t.applyData(i,r)}const hc=9,mc=32;function Vy(t){const i=String(t),r=/\r?\n|\r/g;let o=r.exec(i),s=0;const a=[];for(;o;)a.push(gc(i.slice(s,o.index),s>0,!0),o[0]),s=o.index+o[0].length,o=r.exec(i);return a.push(gc(i.slice(s),s>0,!1)),a.join("")}function gc(t,i,r){let o=0,s=t.length;if(i){let a=t.codePointAt(o);for(;a===hc||a===mc;)o++,a=t.codePointAt(o)}if(r){let a=t.codePointAt(s-1);for(;a===hc||a===mc;)s--,a=t.codePointAt(s-1)}return s>o?t.slice(o,s):""}function Hy(t,i){const r={type:"text",value:Vy(String(i.value))};return t.patch(i,r),t.applyData(i,r)}function Wy(t,i){const r={type:"element",tagName:"hr",properties:{},children:[]};return t.patch(i,r),t.applyData(i,r)}const qy={blockquote:wy,break:Sy,code:Ey,delete:Cy,emphasis:Ty,footnoteReference:_y,heading:Iy,html:Py,imageReference:Ay,image:Ny,inlineCode:Ry,linkReference:zy,link:Ly,listItem:Dy,list:Oy,paragraph:My,root:Fy,strong:jy,table:By,tableCell:$y,tableRow:Uy,text:Hy,thematicBreak:Wy,toml:Qi,yaml:Qi,definition:Qi,footnoteDefinition:Qi};function Qi(){}const yc=-1,Yi=0,Qr=1,Ki=2,$o=3,Vo=4,Ho=5,Wo=6,kc=7,vc=8,xc=typeof self=="object"?self:globalThis,wc=(t,i)=>{switch(t){case"Function":case"SharedWorker":case"Worker":case"eval":case"setInterval":case"setTimeout":throw new TypeError("unable to deserialize "+t)}return new xc[t](i)},Qy=(t,i)=>{const r=(s,a)=>(t.set(a,s),s),o=s=>{if(t.has(s))return t.get(s);const[a,c]=i[s];switch(a){case Yi:case yc:return r(c,s);case Qr:{const p=r([],s);for(const h of c)p.push(o(h));return p}case Ki:{const p=r({},s);for(const[h,m]of c)p[o(h)]=o(m);return p}case $o:return r(new Date(c),s);case Vo:{const{source:p,flags:h}=c;return r(new RegExp(p,h),s)}case Ho:{const p=r(new Map,s);for(const[h,m]of c)p.set(o(h),o(m));return p}case Wo:{const p=r(new Set,s);for(const h of c)p.add(o(h));return p}case kc:{const{name:p,message:h}=c;return r(typeof xc[p]=="function"?wc(p,h):new Error(h),s)}case vc:return r(BigInt(c),s);case"BigInt":return r(Object(BigInt(c)),s);case"ArrayBuffer":return r(new Uint8Array(c).buffer,c);case"DataView":{const{buffer:p}=new Uint8Array(c);return r(new DataView(p),c)}}return r(wc(a,c),s)};return o},Sc=t=>Qy(new Map,t)(0),$n="",{toString:Yy}={},{keys:Ky}=Object,Yr=t=>{const i=typeof t;if(i!=="object"||!t)return[Yi,i];const r=Yy.call(t).slice(8,-1);switch(r){case"Array":return[Qr,$n];case"Object":return[Ki,$n];case"Date":return[$o,$n];case"RegExp":return[Vo,$n];case"Map":return[Ho,$n];case"Set":return[Wo,$n];case"DataView":return[Qr,r]}return r.includes("Array")?[Qr,r]:t instanceof Error?[kc,t.name||"Error"]:[Ki,r]},Gi=([t,i])=>t===Yi&&(i==="function"||i==="symbol"),Gy=(t,i,r,o)=>{const s=(c,p)=>{const h=o.push(c)-1;return r.set(p,h),h},a=c=>{if(r.has(c))return r.get(c);let[p,h]=Yr(c);switch(p){case Yi:{let y=c;switch(h){case"bigint":p=vc,y=c.toString();break;case"function":case"symbol":if(t)throw new TypeError("unable to serialize "+h);y=null;break;case"undefined":return s([yc],c)}return s([p,y],c)}case Qr:{if(h){let x=c;return h==="DataView"?x=new Uint8Array(c.buffer):h==="ArrayBuffer"&&(x=new Uint8Array(c)),s([h,[...x]],c)}const y=[],g=s([p,y],c);for(const x of c)y.push(a(x));return g}case Ki:{if(h)switch(h){case"BigInt":return s([h,c.toString()],c);case"Boolean":case"Number":case"String":return s([h,c.valueOf()],c)}if(i&&"toJSON"in c)return a(c.toJSON());const y=[],g=s([p,y],c);for(const x of Ky(c))(t||!Gi(Yr(c[x])))&&y.push([a(x),a(c[x])]);return g}case $o:return s([p,isNaN(c.getTime())?$n:c.toISOString()],c);case Vo:{const{source:y,flags:g}=c;return s([p,{source:y,flags:g}],c)}case Ho:{const y=[],g=s([p,y],c);for(const[x,v]of c)(t||!(Gi(Yr(x))||Gi(Yr(v))))&&y.push([a(x),a(v)]);return g}case Wo:{const y=[],g=s([p,y],c);for(const x of c)(t||!Gi(Yr(x)))&&y.push(a(x));return g}}const{message:m}=c;return s([p,{name:h,message:m}],c)};return a},Ec=(t,{json:i,lossy:r}={})=>{const o=[];return Gy(!(i||r),!!i,new Map,o)(t),o},Kr=typeof structuredClone=="function"?(t,i)=>i&&("json"in i||"lossy"in i)?Sc(Ec(t,i)):structuredClone(t):(t,i)=>Sc(Ec(t,i));function Xy(t,i){const r=[{type:"text",value:"↩"}];return i>1&&r.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(i)}]}),r}function Jy(t,i){return"Back to reference "+(t+1)+(i>1?"-"+i:"")}function Zy(t){const i=typeof t.options.clobberPrefix=="string"?t.options.clobberPrefix:"user-content-",r=t.options.footnoteBackContent||Xy,o=t.options.footnoteBackLabel||Jy,s=t.options.footnoteLabel||"Footnotes",a=t.options.footnoteLabelTagName||"h2",c=t.options.footnoteLabelProperties||{className:["sr-only"]},p=[];let h=-1;for(;++h<t.footnoteOrder.length;){const m=t.footnoteById.get(t.footnoteOrder[h]);if(!m)continue;const y=t.all(m),g=String(m.identifier).toUpperCase(),x=ur(g.toLowerCase());let v=0;const _=[],D=t.footnoteCounts.get(g);for(;D!==void 0&&++v<=D;){_.length>0&&_.push({type:"text",value:" "});let U=typeof r=="string"?r:r(h,v);typeof U=="string"&&(U={type:"text",value:U}),_.push({type:"element",tagName:"a",properties:{href:"#"+i+"fnref-"+x+(v>1?"-"+v:""),dataFootnoteBackref:"",ariaLabel:typeof o=="string"?o:o(h,v),className:["data-footnote-backref"]},children:Array.isArray(U)?U:[U]})}const b=y[y.length-1];if(b&&b.type==="element"&&b.tagName==="p"){const U=b.children[b.children.length-1];U&&U.type==="text"?U.value+=" ":b.children.push({type:"text",value:" "}),b.children.push(..._)}else y.push(..._);const R={type:"element",tagName:"li",properties:{id:i+"fn-"+x},children:t.wrap(y,!0)};t.patch(m,R),p.push(R)}if(p.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:a,properties:{...Kr(c),id:"footnote-label"},children:[{type:"text",value:s}]},{type:"text",value:`
24
26
  `},{type:"element",tagName:"ol",properties:{},children:t.wrap(p,!0)},{type:"text",value:`
25
- `}]}}const Xi=(function(t){if(t==null)return u1;if(typeof t=="function")return Ji(t);if(typeof t=="object")return Array.isArray(t)?i1(t):l1(t);if(typeof t=="string")return o1(t);throw new Error("Expected function, string, or object as test")});function i1(t){const i=[];let r=-1;for(;++r<t.length;)i[r]=Xi(t[r]);return Ji(o);function o(...s){let a=-1;for(;++a<i.length;)if(i[a].apply(this,s))return!0;return!1}}function l1(t){const i=t;return Ji(r);function r(o){const s=o;let a;for(a in t)if(s[a]!==i[a])return!1;return!0}}function o1(t){return Ji(i);function i(r){return r&&r.type===t}}function Ji(t){return i;function i(r,o,s){return!!(s1(r)&&t.call(this,r,typeof o=="number"?o:void 0,s||void 0))}}function u1(){return!0}function s1(t){return t!==null&&typeof t=="object"&&"type"in t}function P0(t){return t}const Cc=[],a1=!0,qo=!1,c1="skip";function Tc(t,i,r,o){let s;typeof i=="function"&&typeof r!="function"?(o=r,r=i):s=i;const a=Xi(s),c=o?-1:1;p(t,void 0,[])();function p(h,m,y){const g=h&&typeof h=="object"?h:{};if(typeof g.type=="string"){const v=typeof g.tagName=="string"?g.tagName:typeof g.name=="string"?g.name:void 0;Object.defineProperty(w,"name",{value:"node ("+(h.type+(v?"<"+v+">":""))+")"})}return w;function w(){let v=Cc,_,z,D;if((!i||a(h,m,y[y.length-1]||void 0))&&(v=f1(r(h,y)),v[0]===qo))return v;if("children"in h&&h.children){const A=h;if(A.children&&v[0]!==c1)for(z=(o?A.children.length:-1)+c,D=y.concat(A);z>-1&&z<A.children.length;){const H=A.children[z];if(_=p(H,z,D)(),_[0]===qo)return _;z=typeof _[1]=="number"?_[1]:z+c}}return v}}}function f1(t){return Array.isArray(t)?t:typeof t=="number"?[a1,t]:t==null?Cc:[t]}function Yo(t,i,r,o){let s,a,c;typeof i=="function"&&typeof r!="function"?(a=void 0,c=i,s=r):(a=i,c=r,s=o),Tc(t,a,p,s);function p(h,m){const y=m[m.length-1],g=y?y.children.indexOf(h):void 0;return c(h,g,y)}}const Ko={}.hasOwnProperty,p1={};function d1(t,i){const r=i||p1,o=new Map,s=new Map,a=new Map,c={...Gy,...r.handlers},p={all:m,applyData:m1,definitionById:o,footnoteById:s,footnoteCounts:a,footnoteOrder:[],handlers:c,one:h,options:r,patch:h1,wrap:y1};return Yo(t,function(y){if(y.type==="definition"||y.type==="footnoteDefinition"){const g=y.type==="definition"?o:s,w=String(y.identifier).toUpperCase();g.has(w)||g.set(w,y)}}),p;function h(y,g){const w=y.type,v=p.handlers[w];if(Ko.call(p.handlers,w)&&v)return v(p,y,g);if(p.options.passThrough&&p.options.passThrough.includes(w)){if("children"in y){const{children:z,...D}=y,A=Kr(D);return A.children=p.all(y),A}return Kr(y)}return(p.options.unknownHandler||g1)(p,y,g)}function m(y){const g=[];if("children"in y){const w=y.children;let v=-1;for(;++v<w.length;){const _=p.one(w[v],y);if(_){if(v&&w[v-1].type==="break"&&(!Array.isArray(_)&&_.type==="text"&&(_.value=_c(_.value)),!Array.isArray(_)&&_.type==="element")){const z=_.children[0];z&&z.type==="text"&&(z.value=_c(z.value))}Array.isArray(_)?g.push(..._):g.push(_)}}}return g}}function h1(t,i){t.position&&(i.position=La(t))}function m1(t,i){let r=i;if(t&&t.data){const o=t.data.hName,s=t.data.hChildren,a=t.data.hProperties;if(typeof o=="string")if(r.type==="element")r.tagName=o;else{const c="children"in r?r.children:[r];r={type:"element",tagName:o,properties:{},children:c}}r.type==="element"&&a&&Object.assign(r.properties,Kr(a)),"children"in r&&r.children&&s!==null&&s!==void 0&&(r.children=s)}return r}function g1(t,i){const r=i.data||{},o="value"in i&&!(Ko.call(r,"hProperties")||Ko.call(r,"hChildren"))?{type:"text",value:i.value}:{type:"element",tagName:"div",properties:{},children:t.all(i)};return t.patch(i,o),t.applyData(i,o)}function y1(t,i){const r=[];let o=-1;for(i&&r.push({type:"text",value:`
27
+ `}]}}const Xi=(function(t){if(t==null)return r1;if(typeof t=="function")return Ji(t);if(typeof t=="object")return Array.isArray(t)?e1(t):t1(t);if(typeof t=="string")return n1(t);throw new Error("Expected function, string, or object as test")});function e1(t){const i=[];let r=-1;for(;++r<t.length;)i[r]=Xi(t[r]);return Ji(o);function o(...s){let a=-1;for(;++a<i.length;)if(i[a].apply(this,s))return!0;return!1}}function t1(t){const i=t;return Ji(r);function r(o){const s=o;let a;for(a in t)if(s[a]!==i[a])return!1;return!0}}function n1(t){return Ji(i);function i(r){return r&&r.type===t}}function Ji(t){return i;function i(r,o,s){return!!(i1(r)&&t.call(this,r,typeof o=="number"?o:void 0,s||void 0))}}function r1(){return!0}function i1(t){return t!==null&&typeof t=="object"&&"type"in t}function S0(t){return t}const Cc=[],l1=!0,qo=!1,o1="skip";function Tc(t,i,r,o){let s;typeof i=="function"&&typeof r!="function"?(o=r,r=i):s=i;const a=Xi(s),c=o?-1:1;p(t,void 0,[])();function p(h,m,y){const g=h&&typeof h=="object"?h:{};if(typeof g.type=="string"){const v=typeof g.tagName=="string"?g.tagName:typeof g.name=="string"?g.name:void 0;Object.defineProperty(x,"name",{value:"node ("+(h.type+(v?"<"+v+">":""))+")"})}return x;function x(){let v=Cc,_,D,b;if((!i||a(h,m,y[y.length-1]||void 0))&&(v=u1(r(h,y)),v[0]===qo))return v;if("children"in h&&h.children){const R=h;if(R.children&&v[0]!==o1)for(D=(o?R.children.length:-1)+c,b=y.concat(R);D>-1&&D<R.children.length;){const U=R.children[D];if(_=p(U,D,b)(),_[0]===qo)return _;D=typeof _[1]=="number"?_[1]:D+c}}return v}}}function u1(t){return Array.isArray(t)?t:typeof t=="number"?[l1,t]:t==null?Cc:[t]}function Qo(t,i,r,o){let s,a,c;typeof i=="function"&&typeof r!="function"?(a=void 0,c=i,s=r):(a=i,c=r,s=o),Tc(t,a,p,s);function p(h,m){const y=m[m.length-1],g=y?y.children.indexOf(h):void 0;return c(h,g,y)}}const Yo={}.hasOwnProperty,s1={};function a1(t,i){const r=i||s1,o=new Map,s=new Map,a=new Map,c={...qy,...r.handlers},p={all:m,applyData:f1,definitionById:o,footnoteById:s,footnoteCounts:a,footnoteOrder:[],handlers:c,one:h,options:r,patch:c1,wrap:d1};return Qo(t,function(y){if(y.type==="definition"||y.type==="footnoteDefinition"){const g=y.type==="definition"?o:s,x=String(y.identifier).toUpperCase();g.has(x)||g.set(x,y)}}),p;function h(y,g){const x=y.type,v=p.handlers[x];if(Yo.call(p.handlers,x)&&v)return v(p,y,g);if(p.options.passThrough&&p.options.passThrough.includes(x)){if("children"in y){const{children:D,...b}=y,R=Kr(b);return R.children=p.all(y),R}return Kr(y)}return(p.options.unknownHandler||p1)(p,y,g)}function m(y){const g=[];if("children"in y){const x=y.children;let v=-1;for(;++v<x.length;){const _=p.one(x[v],y);if(_){if(v&&x[v-1].type==="break"&&(!Array.isArray(_)&&_.type==="text"&&(_.value=_c(_.value)),!Array.isArray(_)&&_.type==="element")){const D=_.children[0];D&&D.type==="text"&&(D.value=_c(D.value))}Array.isArray(_)?g.push(..._):g.push(_)}}}return g}}function c1(t,i){t.position&&(i.position=Da(t))}function f1(t,i){let r=i;if(t&&t.data){const o=t.data.hName,s=t.data.hChildren,a=t.data.hProperties;if(typeof o=="string")if(r.type==="element")r.tagName=o;else{const c="children"in r?r.children:[r];r={type:"element",tagName:o,properties:{},children:c}}r.type==="element"&&a&&Object.assign(r.properties,Kr(a)),"children"in r&&r.children&&s!==null&&s!==void 0&&(r.children=s)}return r}function p1(t,i){const r=i.data||{},o="value"in i&&!(Yo.call(r,"hProperties")||Yo.call(r,"hChildren"))?{type:"text",value:i.value}:{type:"element",tagName:"div",properties:{},children:t.all(i)};return t.patch(i,o),t.applyData(i,o)}function d1(t,i){const r=[];let o=-1;for(i&&r.push({type:"text",value:`
26
28
  `});++o<t.length;)o&&r.push({type:"text",value:`
27
29
  `}),r.push(t[o]);return i&&t.length>0&&r.push({type:"text",value:`
28
- `}),r}function _c(t){let i=0,r=t.charCodeAt(i);for(;r===9||r===32;)i++,r=t.charCodeAt(i);return t.slice(i)}function Ic(t,i){const r=d1(t,i),o=r.one(t,void 0),s=r1(r),a=Array.isArray(o)?{type:"root",children:o}:o||{type:"root",children:[]};return s&&a.children.push({type:"text",value:`
29
- `},s),a}function k1(t,i){return t&&"run"in t?async function(r,o){const s=Ic(r,{file:o,...i});await t.run(s,o)}:function(r,o){return Ic(r,{file:o,...t||i})}}function Pc(t){if(t)throw t}var Go,Nc;function v1(){if(Nc)return Go;Nc=1;var t=Object.prototype.hasOwnProperty,i=Object.prototype.toString,r=Object.defineProperty,o=Object.getOwnPropertyDescriptor,s=function(m){return typeof Array.isArray=="function"?Array.isArray(m):i.call(m)==="[object Array]"},a=function(m){if(!m||i.call(m)!=="[object Object]")return!1;var y=t.call(m,"constructor"),g=m.constructor&&m.constructor.prototype&&t.call(m.constructor.prototype,"isPrototypeOf");if(m.constructor&&!y&&!g)return!1;var w;for(w in m);return typeof w=="undefined"||t.call(m,w)},c=function(m,y){r&&y.name==="__proto__"?r(m,y.name,{enumerable:!0,configurable:!0,value:y.newValue,writable:!0}):m[y.name]=y.newValue},p=function(m,y){if(y==="__proto__")if(t.call(m,y)){if(o)return o(m,y).value}else return;return m[y]};return Go=function h(){var m,y,g,w,v,_,z=arguments[0],D=1,A=arguments.length,H=!1;for(typeof z=="boolean"&&(H=z,z=arguments[1]||{},D=2),(z==null||typeof z!="object"&&typeof z!="function")&&(z={});D<A;++D)if(m=arguments[D],m!=null)for(y in m)g=p(z,y),w=p(m,y),z!==w&&(H&&w&&(a(w)||(v=s(w)))?(v?(v=!1,_=g&&s(g)?g:[]):_=g&&a(g)?g:{},c(z,{name:y,newValue:h(H,_,w)})):typeof w!="undefined"&&c(z,{name:y,newValue:w}));return z},Go}var w1=v1();const Xo=dt(w1);function Jo(t){if(typeof t!="object"||t===null)return!1;const i=Object.getPrototypeOf(t);return(i===null||i===Object.prototype||Object.getPrototypeOf(i)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)}function x1(){const t=[],i={run:r,use:o};return i;function r(...s){let a=-1;const c=s.pop();if(typeof c!="function")throw new TypeError("Expected function as last argument, not "+c);p(null,...s);function p(h,...m){const y=t[++a];let g=-1;if(h){c(h);return}for(;++g<s.length;)(m[g]===null||m[g]===void 0)&&(m[g]=s[g]);s=m,y?S1(y,p)(...m):c(null,...m)}}function o(s){if(typeof s!="function")throw new TypeError("Expected `middelware` to be a function, not "+s);return t.push(s),i}}function S1(t,i){let r;return o;function o(...c){const p=t.length>c.length;let h;p&&c.push(s);try{h=t.apply(this,c)}catch(m){const y=m;if(p&&r)throw y;return s(y)}p||(h&&h.then&&typeof h.then=="function"?h.then(a,s):h instanceof Error?s(h):a(h))}function s(c,...p){r||(r=!0,i(c,...p))}function a(c){s(null,c)}}const Wt={basename:E1,dirname:C1,extname:T1,join:_1,sep:"/"};function E1(t,i){if(i!==void 0&&typeof i!="string")throw new TypeError('"ext" argument must be a string');Gr(t);let r=0,o=-1,s=t.length,a;if(i===void 0||i.length===0||i.length>t.length){for(;s--;)if(t.codePointAt(s)===47){if(a){r=s+1;break}}else o<0&&(a=!0,o=s+1);return o<0?"":t.slice(r,o)}if(i===t)return"";let c=-1,p=i.length-1;for(;s--;)if(t.codePointAt(s)===47){if(a){r=s+1;break}}else c<0&&(a=!0,c=s+1),p>-1&&(t.codePointAt(s)===i.codePointAt(p--)?p<0&&(o=s):(p=-1,o=c));return r===o?o=c:o<0&&(o=t.length),t.slice(r,o)}function C1(t){if(Gr(t),t.length===0)return".";let i=-1,r=t.length,o;for(;--r;)if(t.codePointAt(r)===47){if(o){i=r;break}}else o||(o=!0);return i<0?t.codePointAt(0)===47?"/":".":i===1&&t.codePointAt(0)===47?"//":t.slice(0,i)}function T1(t){Gr(t);let i=t.length,r=-1,o=0,s=-1,a=0,c;for(;i--;){const p=t.codePointAt(i);if(p===47){if(c){o=i+1;break}continue}r<0&&(c=!0,r=i+1),p===46?s<0?s=i:a!==1&&(a=1):s>-1&&(a=-1)}return s<0||r<0||a===0||a===1&&s===r-1&&s===o+1?"":t.slice(s,r)}function _1(...t){let i=-1,r;for(;++i<t.length;)Gr(t[i]),t[i]&&(r=r===void 0?t[i]:r+"/"+t[i]);return r===void 0?".":I1(r)}function I1(t){Gr(t);const i=t.codePointAt(0)===47;let r=P1(t,!i);return r.length===0&&!i&&(r="."),r.length>0&&t.codePointAt(t.length-1)===47&&(r+="/"),i?"/"+r:r}function P1(t,i){let r="",o=0,s=-1,a=0,c=-1,p,h;for(;++c<=t.length;){if(c<t.length)p=t.codePointAt(c);else{if(p===47)break;p=47}if(p===47){if(!(s===c-1||a===1))if(s!==c-1&&a===2){if(r.length<2||o!==2||r.codePointAt(r.length-1)!==46||r.codePointAt(r.length-2)!==46){if(r.length>2){if(h=r.lastIndexOf("/"),h!==r.length-1){h<0?(r="",o=0):(r=r.slice(0,h),o=r.length-1-r.lastIndexOf("/")),s=c,a=0;continue}}else if(r.length>0){r="",o=0,s=c,a=0;continue}}i&&(r=r.length>0?r+"/..":"..",o=2)}else r.length>0?r+="/"+t.slice(s+1,c):r=t.slice(s+1,c),o=c-s-1;s=c,a=0}else p===46&&a>-1?a++:a=-1}return r}function Gr(t){if(typeof t!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(t))}const N1={cwd:A1};function A1(){return"/"}function Zo(t){return!!(t!==null&&typeof t=="object"&&"href"in t&&t.href&&"protocol"in t&&t.protocol&&t.auth===void 0)}function b1(t){if(typeof t=="string")t=new URL(t);else if(!Zo(t)){const i=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+t+"`");throw i.code="ERR_INVALID_ARG_TYPE",i}if(t.protocol!=="file:"){const i=new TypeError("The URL must be of scheme file");throw i.code="ERR_INVALID_URL_SCHEME",i}return R1(t)}function R1(t){if(t.hostname!==""){const o=new TypeError('File URL host must be "localhost" or empty on darwin');throw o.code="ERR_INVALID_FILE_URL_HOST",o}const i=t.pathname;let r=-1;for(;++r<i.length;)if(i.codePointAt(r)===37&&i.codePointAt(r+1)===50){const o=i.codePointAt(r+2);if(o===70||o===102){const s=new TypeError("File URL path must not include encoded / characters");throw s.code="ERR_INVALID_FILE_URL_PATH",s}}return decodeURIComponent(i)}const eu=["history","path","basename","stem","extname","dirname"];class Ac{constructor(i){let r;i?Zo(i)?r={path:i}:typeof i=="string"||z1(i)?r={value:i}:r=i:r={},this.cwd="cwd"in r?"":N1.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let o=-1;for(;++o<eu.length;){const a=eu[o];a in r&&r[a]!==void 0&&r[a]!==null&&(this[a]=a==="history"?[...r[a]]:r[a])}let s;for(s in r)eu.includes(s)||(this[s]=r[s])}get basename(){return typeof this.path=="string"?Wt.basename(this.path):void 0}set basename(i){nu(i,"basename"),tu(i,"basename"),this.path=Wt.join(this.dirname||"",i)}get dirname(){return typeof this.path=="string"?Wt.dirname(this.path):void 0}set dirname(i){bc(this.basename,"dirname"),this.path=Wt.join(i||"",this.basename)}get extname(){return typeof this.path=="string"?Wt.extname(this.path):void 0}set extname(i){if(tu(i,"extname"),bc(this.dirname,"extname"),i){if(i.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(i.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=Wt.join(this.dirname,this.stem+(i||""))}get path(){return this.history[this.history.length-1]}set path(i){Zo(i)&&(i=b1(i)),nu(i,"path"),this.path!==i&&this.history.push(i)}get stem(){return typeof this.path=="string"?Wt.basename(this.path,this.extname):void 0}set stem(i){nu(i,"stem"),tu(i,"stem"),this.path=Wt.join(this.dirname||"",i+(this.extname||""))}fail(i,r,o){const s=this.message(i,r,o);throw s.fatal=!0,s}info(i,r,o){const s=this.message(i,r,o);return s.fatal=void 0,s}message(i,r,o){const s=new it(i,r,o);return this.path&&(s.name=this.path+":"+s.name,s.file=this.path),s.fatal=!1,this.messages.push(s),s}toString(i){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(i||void 0).decode(this.value)}}function tu(t,i){if(t&&t.includes(Wt.sep))throw new Error("`"+i+"` cannot be a path: did not expect `"+Wt.sep+"`")}function nu(t,i){if(!t)throw new Error("`"+i+"` cannot be empty")}function bc(t,i){if(!t)throw new Error("Setting `"+i+"` requires `path` to be set too")}function z1(t){return!!(t&&typeof t=="object"&&"byteLength"in t&&"byteOffset"in t)}const L1=(function(t){const o=this.constructor.prototype,s=o[t],a=function(){return s.apply(a,arguments)};return Object.setPrototypeOf(a,o),a}),D1={}.hasOwnProperty;class ru extends L1{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=x1()}copy(){const i=new ru;let r=-1;for(;++r<this.attachers.length;){const o=this.attachers[r];i.use(...o)}return i.data(Xo(!0,{},this.namespace)),i}data(i,r){return typeof i=="string"?arguments.length===2?(ou("data",this.frozen),this.namespace[i]=r,this):D1.call(this.namespace,i)&&this.namespace[i]||void 0:i?(ou("data",this.frozen),this.namespace=i,this):this.namespace}freeze(){if(this.frozen)return this;const i=this;for(;++this.freezeIndex<this.attachers.length;){const[r,...o]=this.attachers[this.freezeIndex];if(o[0]===!1)continue;o[0]===!0&&(o[0]=void 0);const s=r.call(i,...o);typeof s=="function"&&this.transformers.use(s)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(i){this.freeze();const r=Zi(i),o=this.parser||this.Parser;return iu("parse",o),o(String(r),r)}process(i,r){const o=this;return this.freeze(),iu("process",this.parser||this.Parser),lu("process",this.compiler||this.Compiler),r?s(void 0,r):new Promise(s);function s(a,c){const p=Zi(i),h=o.parse(p);o.run(h,p,function(y,g,w){if(y||!g||!w)return m(y);const v=g,_=o.stringify(v,w);F1(_)?w.value=_:w.result=_,m(y,w)});function m(y,g){y||!g?c(y):a?a(g):r(void 0,g)}}}processSync(i){let r=!1,o;return this.freeze(),iu("processSync",this.parser||this.Parser),lu("processSync",this.compiler||this.Compiler),this.process(i,s),zc("processSync","process",r),o;function s(a,c){r=!0,Pc(a),o=c}}run(i,r,o){Rc(i),this.freeze();const s=this.transformers;return!o&&typeof r=="function"&&(o=r,r=void 0),o?a(void 0,o):new Promise(a);function a(c,p){const h=Zi(r);s.run(i,h,m);function m(y,g,w){const v=g||i;y?p(y):c?c(v):o(void 0,v,w)}}}runSync(i,r){let o=!1,s;return this.run(i,r,a),zc("runSync","run",o),s;function a(c,p){Pc(c),s=p,o=!0}}stringify(i,r){this.freeze();const o=Zi(r),s=this.compiler||this.Compiler;return lu("stringify",s),Rc(i),s(i,o)}use(i,...r){const o=this.attachers,s=this.namespace;if(ou("use",this.frozen),i!=null)if(typeof i=="function")h(i,r);else if(typeof i=="object")Array.isArray(i)?p(i):c(i);else throw new TypeError("Expected usable value, not `"+i+"`");return this;function a(m){if(typeof m=="function")h(m,[]);else if(typeof m=="object")if(Array.isArray(m)){const[y,...g]=m;h(y,g)}else c(m);else throw new TypeError("Expected usable value, not `"+m+"`")}function c(m){if(!("plugins"in m)&&!("settings"in m))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");p(m.plugins),m.settings&&(s.settings=Xo(!0,s.settings,m.settings))}function p(m){let y=-1;if(m!=null)if(Array.isArray(m))for(;++y<m.length;){const g=m[y];a(g)}else throw new TypeError("Expected a list of plugins, not `"+m+"`")}function h(m,y){let g=-1,w=-1;for(;++g<o.length;)if(o[g][0]===m){w=g;break}if(w===-1)o.push([m,...y]);else if(y.length>0){let[v,..._]=y;const z=o[w][1];Jo(z)&&Jo(v)&&(v=Xo(!0,z,v)),o[w]=[m,v,..._]}}}}const O1=new ru().freeze();function iu(t,i){if(typeof i!="function")throw new TypeError("Cannot `"+t+"` without `parser`")}function lu(t,i){if(typeof i!="function")throw new TypeError("Cannot `"+t+"` without `compiler`")}function ou(t,i){if(i)throw new Error("Cannot call `"+t+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function Rc(t){if(!Jo(t)||typeof t.type!="string")throw new TypeError("Expected node, got `"+t+"`")}function zc(t,i,r){if(!r)throw new Error("`"+t+"` finished async. Use `"+i+"` instead")}function Zi(t){return M1(t)?t:new Ac(t)}function M1(t){return!!(t&&typeof t=="object"&&"message"in t&&"messages"in t)}function F1(t){return typeof t=="string"||j1(t)}function j1(t){return!!(t&&typeof t=="object"&&"byteLength"in t&&"byteOffset"in t)}const B1="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",Lc=[],Dc={allowDangerousHtml:!0},U1=/^(https?|ircs?|mailto|xmpp)$/i,$1=[{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 V1(t){const i=H1(t),r=W1(t);return Q1(i.runSync(i.parse(r),r),t)}function H1(t){const i=t.rehypePlugins||Lc,r=t.remarkPlugins||Lc,o=t.remarkRehypeOptions?{...t.remarkRehypeOptions,...Dc}:Dc;return O1().use(Cy).use(r).use(k1,o).use(i)}function W1(t){const i=t.children||"",r=new Ac;return typeof i=="string"&&(r.value=i),r}function Q1(t,i){const r=i.allowedElements,o=i.allowElement,s=i.components,a=i.disallowedElements,c=i.skipHtml,p=i.unwrapDisallowed,h=i.urlTransform||q1;for(const y of $1)Object.hasOwn(i,y.from)&&(""+y.from+(y.to?"use `"+y.to+"` instead":"remove it")+B1+y.id,void 0);return Yo(t,m),gm(t,{Fragment:ke.Fragment,components:s,ignoreInvalidStyle:!0,jsx:ke.jsx,jsxs:ke.jsxs,passKeys:!0,passNode:!0});function m(y,g,w){if(y.type==="raw"&&w&&typeof g=="number")return c?w.children.splice(g,1):w.children[g]={type:"text",value:y.value},g;if(y.type==="element"){let v;for(v in Do)if(Object.hasOwn(Do,v)&&Object.hasOwn(y.properties,v)){const _=y.properties[v],z=Do[v];(z===null||z.includes(y.tagName))&&(y.properties[v]=h(String(_||""),v,y))}}if(y.type==="element"){let v=r?!r.includes(y.tagName):a?a.includes(y.tagName):!1;if(!v&&o&&typeof g=="number"&&(v=!o(y,g,w)),v&&w&&typeof g=="number")return p&&y.children?w.children.splice(g,1,...y.children):w.children.splice(g,1),g}}}function q1(t){const i=t.indexOf(":"),r=t.indexOf("?"),o=t.indexOf("#"),s=t.indexOf("/");return i===-1||s!==-1&&i>s||r!==-1&&i>r||o!==-1&&i>o||U1.test(t.slice(0,i))?t:""}function Oc(t,i){const r=String(t);if(typeof i!="string")throw new TypeError("Expected character");let o=0,s=r.indexOf(i);for(;s!==-1;)o++,s=r.indexOf(i,s+i.length);return o}function Y1(t){if(typeof t!="string")throw new TypeError("Expected a string");return t.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function K1(t,i,r){const s=Xi((r||{}).ignore||[]),a=G1(i);let c=-1;for(;++c<a.length;)Tc(t,"text",p);function p(m,y){let g=-1,w;for(;++g<y.length;){const v=y[g],_=w?w.children:void 0;if(s(v,_?_.indexOf(v):void 0,w))return;w=v}if(w)return h(m,y)}function h(m,y){const g=y[y.length-1],w=a[c][0],v=a[c][1];let _=0;const D=g.children.indexOf(m);let A=!1,H=[];w.lastIndex=0;let M=w.exec(m.value);for(;M;){const ne=M.index,ue={index:M.index,input:M.input,stack:[...y,m]};let L=v(...M,ue);if(typeof L=="string"&&(L=L.length>0?{type:"text",value:L}:void 0),L===!1?w.lastIndex=ne+1:(_!==ne&&H.push({type:"text",value:m.value.slice(_,ne)}),Array.isArray(L)?H.push(...L):L&&H.push(L),_=ne+M[0].length,A=!0),!w.global)break;M=w.exec(m.value)}return A?(_<m.value.length&&H.push({type:"text",value:m.value.slice(_)}),g.children.splice(D,1,...H)):H=[m],D+H.length}}function G1(t){const i=[];if(!Array.isArray(t))throw new TypeError("Expected find and replace tuple or list of tuples");const r=!t[0]||Array.isArray(t[0])?t:[t];let o=-1;for(;++o<r.length;){const s=r[o];i.push([X1(s[0]),J1(s[1])])}return i}function X1(t){return typeof t=="string"?new RegExp(Y1(t),"g"):t}function J1(t){return typeof t=="function"?t:function(){return t}}const uu="phrasing",su=["autolink","link","image","label"];function Z1(){return{transforms:[ok],enter:{literalAutolink:tk,literalAutolinkEmail:au,literalAutolinkHttp:au,literalAutolinkWww:au},exit:{literalAutolink:lk,literalAutolinkEmail:ik,literalAutolinkHttp:nk,literalAutolinkWww:rk}}}function ek(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:uu,notInConstruct:su},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:uu,notInConstruct:su},{character:":",before:"[ps]",after:"\\/",inConstruct:uu,notInConstruct:su}]}}function tk(t){this.enter({type:"link",title:null,url:"",children:[]},t)}function au(t){this.config.enter.autolinkProtocol.call(this,t)}function nk(t){this.config.exit.autolinkProtocol.call(this,t)}function rk(t){this.config.exit.data.call(this,t);const i=this.stack[this.stack.length-1];i.type,i.url="http://"+this.sliceSerialize(t)}function ik(t){this.config.exit.autolinkEmail.call(this,t)}function lk(t){this.exit(t)}function ok(t){K1(t,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,uk],[/(?<=^|\s|\p{P}|\p{S})([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/gu,sk]],{ignore:["link","linkReference"]})}function uk(t,i,r,o,s){let a="";if(!Mc(s)||(/^w/i.test(i)&&(r=i+r,i="",a="http://"),!ak(r)))return!1;const c=ck(r+o);if(!c[0])return!1;const p={type:"link",title:null,url:a+i+c[0],children:[{type:"text",value:i+c[0]}]};return c[1]?[p,{type:"text",value:c[1]}]:p}function sk(t,i,r,o){return!Mc(o,!0)||/[-\d_]$/.test(r)?!1:{type:"link",title:null,url:"mailto:"+i+"@"+r,children:[{type:"text",value:i+"@"+r}]}}function ak(t){const i=t.split(".");return!(i.length<2||i[i.length-1]&&(/_/.test(i[i.length-1])||!/[a-zA-Z\d]/.test(i[i.length-1]))||i[i.length-2]&&(/_/.test(i[i.length-2])||!/[a-zA-Z\d]/.test(i[i.length-2])))}function ck(t){const i=/[!"&'),.:;<>?\]}]+$/.exec(t);if(!i)return[t,void 0];t=t.slice(0,i.index);let r=i[0],o=r.indexOf(")");const s=Oc(t,"(");let a=Oc(t,")");for(;o!==-1&&s>a;)t+=r.slice(0,o+1),r=r.slice(o+1),o=r.indexOf(")"),a++;return[t,r]}function Mc(t,i){const r=t.input.charCodeAt(t.index-1);return(t.index===0||Un(r)||Hi(r))&&(!i||r!==47)}Fc.peek=vk;function fk(){this.buffer()}function pk(t){this.enter({type:"footnoteReference",identifier:"",label:""},t)}function dk(){this.buffer()}function hk(t){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},t)}function mk(t){const i=this.resume(),r=this.stack[this.stack.length-1];r.type,r.identifier=Mt(this.sliceSerialize(t)).toLowerCase(),r.label=i}function gk(t){this.exit(t)}function yk(t){const i=this.resume(),r=this.stack[this.stack.length-1];r.type,r.identifier=Mt(this.sliceSerialize(t)).toLowerCase(),r.label=i}function kk(t){this.exit(t)}function vk(){return"["}function Fc(t,i,r,o){const s=r.createTracker(o);let a=s.move("[^");const c=r.enter("footnoteReference"),p=r.enter("reference");return a+=s.move(r.safe(r.associationId(t),{after:"]",before:a})),p(),c(),a+=s.move("]"),a}function wk(){return{enter:{gfmFootnoteCallString:fk,gfmFootnoteCall:pk,gfmFootnoteDefinitionLabelString:dk,gfmFootnoteDefinition:hk},exit:{gfmFootnoteCallString:mk,gfmFootnoteCall:gk,gfmFootnoteDefinitionLabelString:yk,gfmFootnoteDefinition:kk}}}function xk(t){let i=!1;return t&&t.firstLineBlank&&(i=!0),{handlers:{footnoteDefinition:r,footnoteReference:Fc},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function r(o,s,a,c){const p=a.createTracker(c);let h=p.move("[^");const m=a.enter("footnoteDefinition"),y=a.enter("label");return h+=p.move(a.safe(a.associationId(o),{before:h,after:"]"})),y(),h+=p.move("]:"),o.children&&o.children.length>0&&(p.shift(4),h+=p.move((i?`
30
- `:" ")+a.indentLines(a.containerFlow(o,p.current()),i?jc:Sk))),m(),h}}function Sk(t,i,r){return i===0?t:jc(t,i,r)}function jc(t,i,r){return(r?"":" ")+t}const Ek=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];Bc.peek=Pk;function Ck(){return{canContainEols:["delete"],enter:{strikethrough:_k},exit:{strikethrough:Ik}}}function Tk(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:Ek}],handlers:{delete:Bc}}}function _k(t){this.enter({type:"delete",children:[]},t)}function Ik(t){this.exit(t)}function Bc(t,i,r,o){const s=r.createTracker(o),a=r.enter("strikethrough");let c=s.move("~~");return c+=r.containerPhrasing(t,{...s.current(),before:c,after:"~"}),c+=s.move("~~"),a(),c}function Pk(){return"~"}function Nk(t){return t.length}function Ak(t,i){const r=i||{},o=(r.align||[]).concat(),s=r.stringLength||Nk,a=[],c=[],p=[],h=[];let m=0,y=-1;for(;++y<t.length;){const z=[],D=[];let A=-1;for(t[y].length>m&&(m=t[y].length);++A<t[y].length;){const H=bk(t[y][A]);if(r.alignDelimiters!==!1){const M=s(H);D[A]=M,(h[A]===void 0||M>h[A])&&(h[A]=M)}z.push(H)}c[y]=z,p[y]=D}let g=-1;if(typeof o=="object"&&"length"in o)for(;++g<m;)a[g]=Uc(o[g]);else{const z=Uc(o);for(;++g<m;)a[g]=z}g=-1;const w=[],v=[];for(;++g<m;){const z=a[g];let D="",A="";z===99?(D=":",A=":"):z===108?D=":":z===114&&(A=":");let H=r.alignDelimiters===!1?1:Math.max(1,h[g]-D.length-A.length);const M=D+"-".repeat(H)+A;r.alignDelimiters!==!1&&(H=D.length+H+A.length,H>h[g]&&(h[g]=H),v[g]=H),w[g]=M}c.splice(1,0,w),p.splice(1,0,v),y=-1;const _=[];for(;++y<c.length;){const z=c[y],D=p[y];g=-1;const A=[];for(;++g<m;){const H=z[g]||"";let M="",ne="";if(r.alignDelimiters!==!1){const ue=h[g]-(D[g]||0),L=a[g];L===114?M=" ".repeat(ue):L===99?ue%2?(M=" ".repeat(ue/2+.5),ne=" ".repeat(ue/2-.5)):(M=" ".repeat(ue/2),ne=M):ne=" ".repeat(ue)}r.delimiterStart!==!1&&!g&&A.push("|"),r.padding!==!1&&!(r.alignDelimiters===!1&&H==="")&&(r.delimiterStart!==!1||g)&&A.push(" "),r.alignDelimiters!==!1&&A.push(M),A.push(H),r.alignDelimiters!==!1&&A.push(ne),r.padding!==!1&&A.push(" "),(r.delimiterEnd!==!1||g!==m-1)&&A.push("|")}_.push(r.delimiterEnd===!1?A.join("").replace(/ +$/,""):A.join(""))}return _.join(`
31
- `)}function bk(t){return t==null?"":String(t)}function Uc(t){const i=typeof t=="string"?t.codePointAt(0):0;return i===67||i===99?99:i===76||i===108?108:i===82||i===114?114:0}function Rk(t,i,r,o){const s=r.enter("blockquote"),a=r.createTracker(o);a.move("> "),a.shift(2);const c=r.indentLines(r.containerFlow(t,a.current()),zk);return s(),c}function zk(t,i,r){return">"+(r?"":" ")+t}function Lk(t,i){return $c(t,i.inConstruct,!0)&&!$c(t,i.notInConstruct,!1)}function $c(t,i,r){if(typeof i=="string"&&(i=[i]),!i||i.length===0)return r;let o=-1;for(;++o<i.length;)if(t.includes(i[o]))return!0;return!1}function Vc(t,i,r,o){let s=-1;for(;++s<r.unsafe.length;)if(r.unsafe[s].character===`
32
- `&&Lk(r.stack,r.unsafe[s]))return/[ \t]/.test(o.before)?"":" ";return`\\
33
- `}function Dk(t,i){const r=String(t);let o=r.indexOf(i),s=o,a=0,c=0;if(typeof i!="string")throw new TypeError("Expected substring");for(;o!==-1;)o===s?++a>c&&(c=a):a=1,s=o+i.length,o=r.indexOf(i,s);return c}function Ok(t,i){return!!(i.options.fences===!1&&t.value&&!t.lang&&/[^ \r\n]/.test(t.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(t.value))}function Mk(t){const i=t.options.fence||"`";if(i!=="`"&&i!=="~")throw new Error("Cannot serialize code with `"+i+"` for `options.fence`, expected `` ` `` or `~`");return i}function Fk(t,i,r,o){const s=Mk(r),a=t.value||"",c=s==="`"?"GraveAccent":"Tilde";if(Ok(t,r)){const g=r.enter("codeIndented"),w=r.indentLines(a,jk);return g(),w}const p=r.createTracker(o),h=s.repeat(Math.max(Dk(a,s)+1,3)),m=r.enter("codeFenced");let y=p.move(h);if(t.lang){const g=r.enter(`codeFencedLang${c}`);y+=p.move(r.safe(t.lang,{before:y,after:" ",encode:["`"],...p.current()})),g()}if(t.lang&&t.meta){const g=r.enter(`codeFencedMeta${c}`);y+=p.move(" "),y+=p.move(r.safe(t.meta,{before:y,after:`
30
+ `}),r}function _c(t){let i=0,r=t.charCodeAt(i);for(;r===9||r===32;)i++,r=t.charCodeAt(i);return t.slice(i)}function Ic(t,i){const r=a1(t,i),o=r.one(t,void 0),s=Zy(r),a=Array.isArray(o)?{type:"root",children:o}:o||{type:"root",children:[]};return s&&a.children.push({type:"text",value:`
31
+ `},s),a}function h1(t,i){return t&&"run"in t?async function(r,o){const s=Ic(r,{file:o,...i});await t.run(s,o)}:function(r,o){return Ic(r,{file:o,...t||i})}}function Pc(t){if(t)throw t}var Ko,Ac;function m1(){if(Ac)return Ko;Ac=1;var t=Object.prototype.hasOwnProperty,i=Object.prototype.toString,r=Object.defineProperty,o=Object.getOwnPropertyDescriptor,s=function(m){return typeof Array.isArray=="function"?Array.isArray(m):i.call(m)==="[object Array]"},a=function(m){if(!m||i.call(m)!=="[object Object]")return!1;var y=t.call(m,"constructor"),g=m.constructor&&m.constructor.prototype&&t.call(m.constructor.prototype,"isPrototypeOf");if(m.constructor&&!y&&!g)return!1;var x;for(x in m);return typeof x=="undefined"||t.call(m,x)},c=function(m,y){r&&y.name==="__proto__"?r(m,y.name,{enumerable:!0,configurable:!0,value:y.newValue,writable:!0}):m[y.name]=y.newValue},p=function(m,y){if(y==="__proto__")if(t.call(m,y)){if(o)return o(m,y).value}else return;return m[y]};return Ko=function h(){var m,y,g,x,v,_,D=arguments[0],b=1,R=arguments.length,U=!1;for(typeof D=="boolean"&&(U=D,D=arguments[1]||{},b=2),(D==null||typeof D!="object"&&typeof D!="function")&&(D={});b<R;++b)if(m=arguments[b],m!=null)for(y in m)g=p(D,y),x=p(m,y),D!==x&&(U&&x&&(a(x)||(v=s(x)))?(v?(v=!1,_=g&&s(g)?g:[]):_=g&&a(g)?g:{},c(D,{name:y,newValue:h(U,_,x)})):typeof x!="undefined"&&c(D,{name:y,newValue:x}));return D},Ko}var g1=m1();const Go=dt(g1);function Xo(t){if(typeof t!="object"||t===null)return!1;const i=Object.getPrototypeOf(t);return(i===null||i===Object.prototype||Object.getPrototypeOf(i)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)}function y1(){const t=[],i={run:r,use:o};return i;function r(...s){let a=-1;const c=s.pop();if(typeof c!="function")throw new TypeError("Expected function as last argument, not "+c);p(null,...s);function p(h,...m){const y=t[++a];let g=-1;if(h){c(h);return}for(;++g<s.length;)(m[g]===null||m[g]===void 0)&&(m[g]=s[g]);s=m,y?k1(y,p)(...m):c(null,...m)}}function o(s){if(typeof s!="function")throw new TypeError("Expected `middelware` to be a function, not "+s);return t.push(s),i}}function k1(t,i){let r;return o;function o(...c){const p=t.length>c.length;let h;p&&c.push(s);try{h=t.apply(this,c)}catch(m){const y=m;if(p&&r)throw y;return s(y)}p||(h&&h.then&&typeof h.then=="function"?h.then(a,s):h instanceof Error?s(h):a(h))}function s(c,...p){r||(r=!0,i(c,...p))}function a(c){s(null,c)}}const Wt={basename:v1,dirname:x1,extname:w1,join:S1,sep:"/"};function v1(t,i){if(i!==void 0&&typeof i!="string")throw new TypeError('"ext" argument must be a string');Gr(t);let r=0,o=-1,s=t.length,a;if(i===void 0||i.length===0||i.length>t.length){for(;s--;)if(t.codePointAt(s)===47){if(a){r=s+1;break}}else o<0&&(a=!0,o=s+1);return o<0?"":t.slice(r,o)}if(i===t)return"";let c=-1,p=i.length-1;for(;s--;)if(t.codePointAt(s)===47){if(a){r=s+1;break}}else c<0&&(a=!0,c=s+1),p>-1&&(t.codePointAt(s)===i.codePointAt(p--)?p<0&&(o=s):(p=-1,o=c));return r===o?o=c:o<0&&(o=t.length),t.slice(r,o)}function x1(t){if(Gr(t),t.length===0)return".";let i=-1,r=t.length,o;for(;--r;)if(t.codePointAt(r)===47){if(o){i=r;break}}else o||(o=!0);return i<0?t.codePointAt(0)===47?"/":".":i===1&&t.codePointAt(0)===47?"//":t.slice(0,i)}function w1(t){Gr(t);let i=t.length,r=-1,o=0,s=-1,a=0,c;for(;i--;){const p=t.codePointAt(i);if(p===47){if(c){o=i+1;break}continue}r<0&&(c=!0,r=i+1),p===46?s<0?s=i:a!==1&&(a=1):s>-1&&(a=-1)}return s<0||r<0||a===0||a===1&&s===r-1&&s===o+1?"":t.slice(s,r)}function S1(...t){let i=-1,r;for(;++i<t.length;)Gr(t[i]),t[i]&&(r=r===void 0?t[i]:r+"/"+t[i]);return r===void 0?".":E1(r)}function E1(t){Gr(t);const i=t.codePointAt(0)===47;let r=C1(t,!i);return r.length===0&&!i&&(r="."),r.length>0&&t.codePointAt(t.length-1)===47&&(r+="/"),i?"/"+r:r}function C1(t,i){let r="",o=0,s=-1,a=0,c=-1,p,h;for(;++c<=t.length;){if(c<t.length)p=t.codePointAt(c);else{if(p===47)break;p=47}if(p===47){if(!(s===c-1||a===1))if(s!==c-1&&a===2){if(r.length<2||o!==2||r.codePointAt(r.length-1)!==46||r.codePointAt(r.length-2)!==46){if(r.length>2){if(h=r.lastIndexOf("/"),h!==r.length-1){h<0?(r="",o=0):(r=r.slice(0,h),o=r.length-1-r.lastIndexOf("/")),s=c,a=0;continue}}else if(r.length>0){r="",o=0,s=c,a=0;continue}}i&&(r=r.length>0?r+"/..":"..",o=2)}else r.length>0?r+="/"+t.slice(s+1,c):r=t.slice(s+1,c),o=c-s-1;s=c,a=0}else p===46&&a>-1?a++:a=-1}return r}function Gr(t){if(typeof t!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(t))}const T1={cwd:_1};function _1(){return"/"}function Jo(t){return!!(t!==null&&typeof t=="object"&&"href"in t&&t.href&&"protocol"in t&&t.protocol&&t.auth===void 0)}function I1(t){if(typeof t=="string")t=new URL(t);else if(!Jo(t)){const i=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+t+"`");throw i.code="ERR_INVALID_ARG_TYPE",i}if(t.protocol!=="file:"){const i=new TypeError("The URL must be of scheme file");throw i.code="ERR_INVALID_URL_SCHEME",i}return P1(t)}function P1(t){if(t.hostname!==""){const o=new TypeError('File URL host must be "localhost" or empty on darwin');throw o.code="ERR_INVALID_FILE_URL_HOST",o}const i=t.pathname;let r=-1;for(;++r<i.length;)if(i.codePointAt(r)===37&&i.codePointAt(r+1)===50){const o=i.codePointAt(r+2);if(o===70||o===102){const s=new TypeError("File URL path must not include encoded / characters");throw s.code="ERR_INVALID_FILE_URL_PATH",s}}return decodeURIComponent(i)}const Zo=["history","path","basename","stem","extname","dirname"];class Nc{constructor(i){let r;i?Jo(i)?r={path:i}:typeof i=="string"||A1(i)?r={value:i}:r=i:r={},this.cwd="cwd"in r?"":T1.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let o=-1;for(;++o<Zo.length;){const a=Zo[o];a in r&&r[a]!==void 0&&r[a]!==null&&(this[a]=a==="history"?[...r[a]]:r[a])}let s;for(s in r)Zo.includes(s)||(this[s]=r[s])}get basename(){return typeof this.path=="string"?Wt.basename(this.path):void 0}set basename(i){tu(i,"basename"),eu(i,"basename"),this.path=Wt.join(this.dirname||"",i)}get dirname(){return typeof this.path=="string"?Wt.dirname(this.path):void 0}set dirname(i){Rc(this.basename,"dirname"),this.path=Wt.join(i||"",this.basename)}get extname(){return typeof this.path=="string"?Wt.extname(this.path):void 0}set extname(i){if(eu(i,"extname"),Rc(this.dirname,"extname"),i){if(i.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(i.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=Wt.join(this.dirname,this.stem+(i||""))}get path(){return this.history[this.history.length-1]}set path(i){Jo(i)&&(i=I1(i)),tu(i,"path"),this.path!==i&&this.history.push(i)}get stem(){return typeof this.path=="string"?Wt.basename(this.path,this.extname):void 0}set stem(i){tu(i,"stem"),eu(i,"stem"),this.path=Wt.join(this.dirname||"",i+(this.extname||""))}fail(i,r,o){const s=this.message(i,r,o);throw s.fatal=!0,s}info(i,r,o){const s=this.message(i,r,o);return s.fatal=void 0,s}message(i,r,o){const s=new it(i,r,o);return this.path&&(s.name=this.path+":"+s.name,s.file=this.path),s.fatal=!1,this.messages.push(s),s}toString(i){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(i||void 0).decode(this.value)}}function eu(t,i){if(t&&t.includes(Wt.sep))throw new Error("`"+i+"` cannot be a path: did not expect `"+Wt.sep+"`")}function tu(t,i){if(!t)throw new Error("`"+i+"` cannot be empty")}function Rc(t,i){if(!t)throw new Error("Setting `"+i+"` requires `path` to be set too")}function A1(t){return!!(t&&typeof t=="object"&&"byteLength"in t&&"byteOffset"in t)}const N1=(function(t){const o=this.constructor.prototype,s=o[t],a=function(){return s.apply(a,arguments)};return Object.setPrototypeOf(a,o),a}),R1={}.hasOwnProperty;class nu extends N1{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=y1()}copy(){const i=new nu;let r=-1;for(;++r<this.attachers.length;){const o=this.attachers[r];i.use(...o)}return i.data(Go(!0,{},this.namespace)),i}data(i,r){return typeof i=="string"?arguments.length===2?(lu("data",this.frozen),this.namespace[i]=r,this):R1.call(this.namespace,i)&&this.namespace[i]||void 0:i?(lu("data",this.frozen),this.namespace=i,this):this.namespace}freeze(){if(this.frozen)return this;const i=this;for(;++this.freezeIndex<this.attachers.length;){const[r,...o]=this.attachers[this.freezeIndex];if(o[0]===!1)continue;o[0]===!0&&(o[0]=void 0);const s=r.call(i,...o);typeof s=="function"&&this.transformers.use(s)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(i){this.freeze();const r=Zi(i),o=this.parser||this.Parser;return ru("parse",o),o(String(r),r)}process(i,r){const o=this;return this.freeze(),ru("process",this.parser||this.Parser),iu("process",this.compiler||this.Compiler),r?s(void 0,r):new Promise(s);function s(a,c){const p=Zi(i),h=o.parse(p);o.run(h,p,function(y,g,x){if(y||!g||!x)return m(y);const v=g,_=o.stringify(v,x);D1(_)?x.value=_:x.result=_,m(y,x)});function m(y,g){y||!g?c(y):a?a(g):r(void 0,g)}}}processSync(i){let r=!1,o;return this.freeze(),ru("processSync",this.parser||this.Parser),iu("processSync",this.compiler||this.Compiler),this.process(i,s),Lc("processSync","process",r),o;function s(a,c){r=!0,Pc(a),o=c}}run(i,r,o){zc(i),this.freeze();const s=this.transformers;return!o&&typeof r=="function"&&(o=r,r=void 0),o?a(void 0,o):new Promise(a);function a(c,p){const h=Zi(r);s.run(i,h,m);function m(y,g,x){const v=g||i;y?p(y):c?c(v):o(void 0,v,x)}}}runSync(i,r){let o=!1,s;return this.run(i,r,a),Lc("runSync","run",o),s;function a(c,p){Pc(c),s=p,o=!0}}stringify(i,r){this.freeze();const o=Zi(r),s=this.compiler||this.Compiler;return iu("stringify",s),zc(i),s(i,o)}use(i,...r){const o=this.attachers,s=this.namespace;if(lu("use",this.frozen),i!=null)if(typeof i=="function")h(i,r);else if(typeof i=="object")Array.isArray(i)?p(i):c(i);else throw new TypeError("Expected usable value, not `"+i+"`");return this;function a(m){if(typeof m=="function")h(m,[]);else if(typeof m=="object")if(Array.isArray(m)){const[y,...g]=m;h(y,g)}else c(m);else throw new TypeError("Expected usable value, not `"+m+"`")}function c(m){if(!("plugins"in m)&&!("settings"in m))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");p(m.plugins),m.settings&&(s.settings=Go(!0,s.settings,m.settings))}function p(m){let y=-1;if(m!=null)if(Array.isArray(m))for(;++y<m.length;){const g=m[y];a(g)}else throw new TypeError("Expected a list of plugins, not `"+m+"`")}function h(m,y){let g=-1,x=-1;for(;++g<o.length;)if(o[g][0]===m){x=g;break}if(x===-1)o.push([m,...y]);else if(y.length>0){let[v,..._]=y;const D=o[x][1];Xo(D)&&Xo(v)&&(v=Go(!0,D,v)),o[x]=[m,v,..._]}}}}const z1=new nu().freeze();function ru(t,i){if(typeof i!="function")throw new TypeError("Cannot `"+t+"` without `parser`")}function iu(t,i){if(typeof i!="function")throw new TypeError("Cannot `"+t+"` without `compiler`")}function lu(t,i){if(i)throw new Error("Cannot call `"+t+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function zc(t){if(!Xo(t)||typeof t.type!="string")throw new TypeError("Expected node, got `"+t+"`")}function Lc(t,i,r){if(!r)throw new Error("`"+t+"` finished async. Use `"+i+"` instead")}function Zi(t){return L1(t)?t:new Nc(t)}function L1(t){return!!(t&&typeof t=="object"&&"message"in t&&"messages"in t)}function D1(t){return typeof t=="string"||b1(t)}function b1(t){return!!(t&&typeof t=="object"&&"byteLength"in t&&"byteOffset"in t)}const O1="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",Dc=[],bc={allowDangerousHtml:!0},M1=/^(https?|ircs?|mailto|xmpp)$/i,F1=[{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 j1(t){const i=B1(t),r=U1(t);return $1(i.runSync(i.parse(r),r),t)}function B1(t){const i=t.rehypePlugins||Dc,r=t.remarkPlugins||Dc,o=t.remarkRehypeOptions?{...t.remarkRehypeOptions,...bc}:bc;return z1().use(xy).use(r).use(h1,o).use(i)}function U1(t){const i=t.children||"",r=new Nc;return typeof i=="string"&&(r.value=i),r}function $1(t,i){const r=i.allowedElements,o=i.allowElement,s=i.components,a=i.disallowedElements,c=i.skipHtml,p=i.unwrapDisallowed,h=i.urlTransform||V1;for(const y of F1)Object.hasOwn(i,y.from)&&(""+y.from+(y.to?"use `"+y.to+"` instead":"remove it")+O1+y.id,void 0);return Qo(t,m),pm(t,{Fragment:ve.Fragment,components:s,ignoreInvalidStyle:!0,jsx:ve.jsx,jsxs:ve.jsxs,passKeys:!0,passNode:!0});function m(y,g,x){if(y.type==="raw"&&x&&typeof g=="number")return c?x.children.splice(g,1):x.children[g]={type:"text",value:y.value},g;if(y.type==="element"){let v;for(v in Do)if(Object.hasOwn(Do,v)&&Object.hasOwn(y.properties,v)){const _=y.properties[v],D=Do[v];(D===null||D.includes(y.tagName))&&(y.properties[v]=h(String(_||""),v,y))}}if(y.type==="element"){let v=r?!r.includes(y.tagName):a?a.includes(y.tagName):!1;if(!v&&o&&typeof g=="number"&&(v=!o(y,g,x)),v&&x&&typeof g=="number")return p&&y.children?x.children.splice(g,1,...y.children):x.children.splice(g,1),g}}}function V1(t){const i=t.indexOf(":"),r=t.indexOf("?"),o=t.indexOf("#"),s=t.indexOf("/");return i===-1||s!==-1&&i>s||r!==-1&&i>r||o!==-1&&i>o||M1.test(t.slice(0,i))?t:""}function Oc(t,i){const r=String(t);if(typeof i!="string")throw new TypeError("Expected character");let o=0,s=r.indexOf(i);for(;s!==-1;)o++,s=r.indexOf(i,s+i.length);return o}function H1(t){if(typeof t!="string")throw new TypeError("Expected a string");return t.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function W1(t,i,r){const s=Xi((r||{}).ignore||[]),a=q1(i);let c=-1;for(;++c<a.length;)Tc(t,"text",p);function p(m,y){let g=-1,x;for(;++g<y.length;){const v=y[g],_=x?x.children:void 0;if(s(v,_?_.indexOf(v):void 0,x))return;x=v}if(x)return h(m,y)}function h(m,y){const g=y[y.length-1],x=a[c][0],v=a[c][1];let _=0;const b=g.children.indexOf(m);let R=!1,U=[];x.lastIndex=0;let M=x.exec(m.value);for(;M;){const ne=M.index,le={index:M.index,input:M.input,stack:[...y,m]};let L=v(...M,le);if(typeof L=="string"&&(L=L.length>0?{type:"text",value:L}:void 0),L===!1?x.lastIndex=ne+1:(_!==ne&&U.push({type:"text",value:m.value.slice(_,ne)}),Array.isArray(L)?U.push(...L):L&&U.push(L),_=ne+M[0].length,R=!0),!x.global)break;M=x.exec(m.value)}return R?(_<m.value.length&&U.push({type:"text",value:m.value.slice(_)}),g.children.splice(b,1,...U)):U=[m],b+U.length}}function q1(t){const i=[];if(!Array.isArray(t))throw new TypeError("Expected find and replace tuple or list of tuples");const r=!t[0]||Array.isArray(t[0])?t:[t];let o=-1;for(;++o<r.length;){const s=r[o];i.push([Q1(s[0]),Y1(s[1])])}return i}function Q1(t){return typeof t=="string"?new RegExp(H1(t),"g"):t}function Y1(t){return typeof t=="function"?t:function(){return t}}const ou="phrasing",uu=["autolink","link","image","label"];function K1(){return{transforms:[nk],enter:{literalAutolink:X1,literalAutolinkEmail:su,literalAutolinkHttp:su,literalAutolinkWww:su},exit:{literalAutolink:tk,literalAutolinkEmail:ek,literalAutolinkHttp:J1,literalAutolinkWww:Z1}}}function G1(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:ou,notInConstruct:uu},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:ou,notInConstruct:uu},{character:":",before:"[ps]",after:"\\/",inConstruct:ou,notInConstruct:uu}]}}function X1(t){this.enter({type:"link",title:null,url:"",children:[]},t)}function su(t){this.config.enter.autolinkProtocol.call(this,t)}function J1(t){this.config.exit.autolinkProtocol.call(this,t)}function Z1(t){this.config.exit.data.call(this,t);const i=this.stack[this.stack.length-1];i.type,i.url="http://"+this.sliceSerialize(t)}function ek(t){this.config.exit.autolinkEmail.call(this,t)}function tk(t){this.exit(t)}function nk(t){W1(t,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,rk],[/(?<=^|\s|\p{P}|\p{S})([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/gu,ik]],{ignore:["link","linkReference"]})}function rk(t,i,r,o,s){let a="";if(!Mc(s)||(/^w/i.test(i)&&(r=i+r,i="",a="http://"),!lk(r)))return!1;const c=ok(r+o);if(!c[0])return!1;const p={type:"link",title:null,url:a+i+c[0],children:[{type:"text",value:i+c[0]}]};return c[1]?[p,{type:"text",value:c[1]}]:p}function ik(t,i,r,o){return!Mc(o,!0)||/[-\d_]$/.test(r)?!1:{type:"link",title:null,url:"mailto:"+i+"@"+r,children:[{type:"text",value:i+"@"+r}]}}function lk(t){const i=t.split(".");return!(i.length<2||i[i.length-1]&&(/_/.test(i[i.length-1])||!/[a-zA-Z\d]/.test(i[i.length-1]))||i[i.length-2]&&(/_/.test(i[i.length-2])||!/[a-zA-Z\d]/.test(i[i.length-2])))}function ok(t){const i=/[!"&'),.:;<>?\]}]+$/.exec(t);if(!i)return[t,void 0];t=t.slice(0,i.index);let r=i[0],o=r.indexOf(")");const s=Oc(t,"(");let a=Oc(t,")");for(;o!==-1&&s>a;)t+=r.slice(0,o+1),r=r.slice(o+1),o=r.indexOf(")"),a++;return[t,r]}function Mc(t,i){const r=t.input.charCodeAt(t.index-1);return(t.index===0||Un(r)||Hi(r))&&(!i||r!==47)}Fc.peek=mk;function uk(){this.buffer()}function sk(t){this.enter({type:"footnoteReference",identifier:"",label:""},t)}function ak(){this.buffer()}function ck(t){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},t)}function fk(t){const i=this.resume(),r=this.stack[this.stack.length-1];r.type,r.identifier=Mt(this.sliceSerialize(t)).toLowerCase(),r.label=i}function pk(t){this.exit(t)}function dk(t){const i=this.resume(),r=this.stack[this.stack.length-1];r.type,r.identifier=Mt(this.sliceSerialize(t)).toLowerCase(),r.label=i}function hk(t){this.exit(t)}function mk(){return"["}function Fc(t,i,r,o){const s=r.createTracker(o);let a=s.move("[^");const c=r.enter("footnoteReference"),p=r.enter("reference");return a+=s.move(r.safe(r.associationId(t),{after:"]",before:a})),p(),c(),a+=s.move("]"),a}function gk(){return{enter:{gfmFootnoteCallString:uk,gfmFootnoteCall:sk,gfmFootnoteDefinitionLabelString:ak,gfmFootnoteDefinition:ck},exit:{gfmFootnoteCallString:fk,gfmFootnoteCall:pk,gfmFootnoteDefinitionLabelString:dk,gfmFootnoteDefinition:hk}}}function yk(t){let i=!1;return t&&t.firstLineBlank&&(i=!0),{handlers:{footnoteDefinition:r,footnoteReference:Fc},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function r(o,s,a,c){const p=a.createTracker(c);let h=p.move("[^");const m=a.enter("footnoteDefinition"),y=a.enter("label");return h+=p.move(a.safe(a.associationId(o),{before:h,after:"]"})),y(),h+=p.move("]:"),o.children&&o.children.length>0&&(p.shift(4),h+=p.move((i?`
32
+ `:" ")+a.indentLines(a.containerFlow(o,p.current()),i?jc:kk))),m(),h}}function kk(t,i,r){return i===0?t:jc(t,i,r)}function jc(t,i,r){return(r?"":" ")+t}const vk=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];Bc.peek=Ck;function xk(){return{canContainEols:["delete"],enter:{strikethrough:Sk},exit:{strikethrough:Ek}}}function wk(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:vk}],handlers:{delete:Bc}}}function Sk(t){this.enter({type:"delete",children:[]},t)}function Ek(t){this.exit(t)}function Bc(t,i,r,o){const s=r.createTracker(o),a=r.enter("strikethrough");let c=s.move("~~");return c+=r.containerPhrasing(t,{...s.current(),before:c,after:"~"}),c+=s.move("~~"),a(),c}function Ck(){return"~"}function Tk(t){return t.length}function _k(t,i){const r=i||{},o=(r.align||[]).concat(),s=r.stringLength||Tk,a=[],c=[],p=[],h=[];let m=0,y=-1;for(;++y<t.length;){const D=[],b=[];let R=-1;for(t[y].length>m&&(m=t[y].length);++R<t[y].length;){const U=Ik(t[y][R]);if(r.alignDelimiters!==!1){const M=s(U);b[R]=M,(h[R]===void 0||M>h[R])&&(h[R]=M)}D.push(U)}c[y]=D,p[y]=b}let g=-1;if(typeof o=="object"&&"length"in o)for(;++g<m;)a[g]=Uc(o[g]);else{const D=Uc(o);for(;++g<m;)a[g]=D}g=-1;const x=[],v=[];for(;++g<m;){const D=a[g];let b="",R="";D===99?(b=":",R=":"):D===108?b=":":D===114&&(R=":");let U=r.alignDelimiters===!1?1:Math.max(1,h[g]-b.length-R.length);const M=b+"-".repeat(U)+R;r.alignDelimiters!==!1&&(U=b.length+U+R.length,U>h[g]&&(h[g]=U),v[g]=U),x[g]=M}c.splice(1,0,x),p.splice(1,0,v),y=-1;const _=[];for(;++y<c.length;){const D=c[y],b=p[y];g=-1;const R=[];for(;++g<m;){const U=D[g]||"";let M="",ne="";if(r.alignDelimiters!==!1){const le=h[g]-(b[g]||0),L=a[g];L===114?M=" ".repeat(le):L===99?le%2?(M=" ".repeat(le/2+.5),ne=" ".repeat(le/2-.5)):(M=" ".repeat(le/2),ne=M):ne=" ".repeat(le)}r.delimiterStart!==!1&&!g&&R.push("|"),r.padding!==!1&&!(r.alignDelimiters===!1&&U==="")&&(r.delimiterStart!==!1||g)&&R.push(" "),r.alignDelimiters!==!1&&R.push(M),R.push(U),r.alignDelimiters!==!1&&R.push(ne),r.padding!==!1&&R.push(" "),(r.delimiterEnd!==!1||g!==m-1)&&R.push("|")}_.push(r.delimiterEnd===!1?R.join("").replace(/ +$/,""):R.join(""))}return _.join(`
33
+ `)}function Ik(t){return t==null?"":String(t)}function Uc(t){const i=typeof t=="string"?t.codePointAt(0):0;return i===67||i===99?99:i===76||i===108?108:i===82||i===114?114:0}function Pk(t,i,r,o){const s=r.enter("blockquote"),a=r.createTracker(o);a.move("> "),a.shift(2);const c=r.indentLines(r.containerFlow(t,a.current()),Ak);return s(),c}function Ak(t,i,r){return">"+(r?"":" ")+t}function Nk(t,i){return $c(t,i.inConstruct,!0)&&!$c(t,i.notInConstruct,!1)}function $c(t,i,r){if(typeof i=="string"&&(i=[i]),!i||i.length===0)return r;let o=-1;for(;++o<i.length;)if(t.includes(i[o]))return!0;return!1}function Vc(t,i,r,o){let s=-1;for(;++s<r.unsafe.length;)if(r.unsafe[s].character===`
34
+ `&&Nk(r.stack,r.unsafe[s]))return/[ \t]/.test(o.before)?"":" ";return`\\
35
+ `}function Rk(t,i){const r=String(t);let o=r.indexOf(i),s=o,a=0,c=0;if(typeof i!="string")throw new TypeError("Expected substring");for(;o!==-1;)o===s?++a>c&&(c=a):a=1,s=o+i.length,o=r.indexOf(i,s);return c}function zk(t,i){return!!(i.options.fences===!1&&t.value&&!t.lang&&/[^ \r\n]/.test(t.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(t.value))}function Lk(t){const i=t.options.fence||"`";if(i!=="`"&&i!=="~")throw new Error("Cannot serialize code with `"+i+"` for `options.fence`, expected `` ` `` or `~`");return i}function Dk(t,i,r,o){const s=Lk(r),a=t.value||"",c=s==="`"?"GraveAccent":"Tilde";if(zk(t,r)){const g=r.enter("codeIndented"),x=r.indentLines(a,bk);return g(),x}const p=r.createTracker(o),h=s.repeat(Math.max(Rk(a,s)+1,3)),m=r.enter("codeFenced");let y=p.move(h);if(t.lang){const g=r.enter(`codeFencedLang${c}`);y+=p.move(r.safe(t.lang,{before:y,after:" ",encode:["`"],...p.current()})),g()}if(t.lang&&t.meta){const g=r.enter(`codeFencedMeta${c}`);y+=p.move(" "),y+=p.move(r.safe(t.meta,{before:y,after:`
34
36
  `,encode:["`"],...p.current()})),g()}return y+=p.move(`
35
37
  `),a&&(y+=p.move(a+`
36
- `)),y+=p.move(h),m(),y}function jk(t,i,r){return(r?"":" ")+t}function cu(t){const i=t.options.quote||'"';if(i!=='"'&&i!=="'")throw new Error("Cannot serialize title with `"+i+"` for `options.quote`, expected `\"`, or `'`");return i}function Bk(t,i,r,o){const s=cu(r),a=s==='"'?"Quote":"Apostrophe",c=r.enter("definition");let p=r.enter("label");const h=r.createTracker(o);let m=h.move("[");return m+=h.move(r.safe(r.associationId(t),{before:m,after:"]",...h.current()})),m+=h.move("]: "),p(),!t.url||/[\0- \u007F]/.test(t.url)?(p=r.enter("destinationLiteral"),m+=h.move("<"),m+=h.move(r.safe(t.url,{before:m,after:">",...h.current()})),m+=h.move(">")):(p=r.enter("destinationRaw"),m+=h.move(r.safe(t.url,{before:m,after:t.title?" ":`
37
- `,...h.current()}))),p(),t.title&&(p=r.enter(`title${a}`),m+=h.move(" "+s),m+=h.move(r.safe(t.title,{before:m,after:s,...h.current()})),m+=h.move(s),p()),c(),m}function Uk(t){const i=t.options.emphasis||"*";if(i!=="*"&&i!=="_")throw new Error("Cannot serialize emphasis with `"+i+"` for `options.emphasis`, expected `*`, or `_`");return i}function Xr(t){return"&#x"+t.toString(16).toUpperCase()+";"}function el(t,i,r){const o=sr(t),s=sr(i);return o===void 0?s===void 0?r==="_"?{inside:!0,outside:!0}:{inside:!1,outside:!1}:s===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:o===1?s===void 0?{inside:!1,outside:!1}:s===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:s===void 0?{inside:!1,outside:!1}:s===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}Hc.peek=$k;function Hc(t,i,r,o){const s=Uk(r),a=r.enter("emphasis"),c=r.createTracker(o),p=c.move(s);let h=c.move(r.containerPhrasing(t,{after:s,before:p,...c.current()}));const m=h.charCodeAt(0),y=el(o.before.charCodeAt(o.before.length-1),m,s);y.inside&&(h=Xr(m)+h.slice(1));const g=h.charCodeAt(h.length-1),w=el(o.after.charCodeAt(0),g,s);w.inside&&(h=h.slice(0,-1)+Xr(g));const v=c.move(s);return a(),r.attentionEncodeSurroundingInfo={after:w.outside,before:y.outside},p+h+v}function $k(t,i,r){return r.options.emphasis||"*"}function Vk(t,i){let r=!1;return Yo(t,function(o){if("value"in o&&/\r?\n|\r/.test(o.value)||o.type==="break")return r=!0,qo}),!!((!t.depth||t.depth<3)&&Oo(t)&&(i.options.setext||r))}function Hk(t,i,r,o){const s=Math.max(Math.min(6,t.depth||1),1),a=r.createTracker(o);if(Vk(t,r)){const y=r.enter("headingSetext"),g=r.enter("phrasing"),w=r.containerPhrasing(t,{...a.current(),before:`
38
+ `)),y+=p.move(h),m(),y}function bk(t,i,r){return(r?"":" ")+t}function au(t){const i=t.options.quote||'"';if(i!=='"'&&i!=="'")throw new Error("Cannot serialize title with `"+i+"` for `options.quote`, expected `\"`, or `'`");return i}function Ok(t,i,r,o){const s=au(r),a=s==='"'?"Quote":"Apostrophe",c=r.enter("definition");let p=r.enter("label");const h=r.createTracker(o);let m=h.move("[");return m+=h.move(r.safe(r.associationId(t),{before:m,after:"]",...h.current()})),m+=h.move("]: "),p(),!t.url||/[\0- \u007F]/.test(t.url)?(p=r.enter("destinationLiteral"),m+=h.move("<"),m+=h.move(r.safe(t.url,{before:m,after:">",...h.current()})),m+=h.move(">")):(p=r.enter("destinationRaw"),m+=h.move(r.safe(t.url,{before:m,after:t.title?" ":`
39
+ `,...h.current()}))),p(),t.title&&(p=r.enter(`title${a}`),m+=h.move(" "+s),m+=h.move(r.safe(t.title,{before:m,after:s,...h.current()})),m+=h.move(s),p()),c(),m}function Mk(t){const i=t.options.emphasis||"*";if(i!=="*"&&i!=="_")throw new Error("Cannot serialize emphasis with `"+i+"` for `options.emphasis`, expected `*`, or `_`");return i}function Xr(t){return"&#x"+t.toString(16).toUpperCase()+";"}function el(t,i,r){const o=sr(t),s=sr(i);return o===void 0?s===void 0?r==="_"?{inside:!0,outside:!0}:{inside:!1,outside:!1}:s===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:o===1?s===void 0?{inside:!1,outside:!1}:s===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:s===void 0?{inside:!1,outside:!1}:s===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}Hc.peek=Fk;function Hc(t,i,r,o){const s=Mk(r),a=r.enter("emphasis"),c=r.createTracker(o),p=c.move(s);let h=c.move(r.containerPhrasing(t,{after:s,before:p,...c.current()}));const m=h.charCodeAt(0),y=el(o.before.charCodeAt(o.before.length-1),m,s);y.inside&&(h=Xr(m)+h.slice(1));const g=h.charCodeAt(h.length-1),x=el(o.after.charCodeAt(0),g,s);x.inside&&(h=h.slice(0,-1)+Xr(g));const v=c.move(s);return a(),r.attentionEncodeSurroundingInfo={after:x.outside,before:y.outside},p+h+v}function Fk(t,i,r){return r.options.emphasis||"*"}function jk(t,i){let r=!1;return Qo(t,function(o){if("value"in o&&/\r?\n|\r/.test(o.value)||o.type==="break")return r=!0,qo}),!!((!t.depth||t.depth<3)&&bo(t)&&(i.options.setext||r))}function Bk(t,i,r,o){const s=Math.max(Math.min(6,t.depth||1),1),a=r.createTracker(o);if(jk(t,r)){const y=r.enter("headingSetext"),g=r.enter("phrasing"),x=r.containerPhrasing(t,{...a.current(),before:`
38
40
  `,after:`
39
- `});return g(),y(),w+`
40
- `+(s===1?"=":"-").repeat(w.length-(Math.max(w.lastIndexOf("\r"),w.lastIndexOf(`
41
+ `});return g(),y(),x+`
42
+ `+(s===1?"=":"-").repeat(x.length-(Math.max(x.lastIndexOf("\r"),x.lastIndexOf(`
41
43
  `))+1))}const c="#".repeat(s),p=r.enter("headingAtx"),h=r.enter("phrasing");a.move(c+" ");let m=r.containerPhrasing(t,{before:"# ",after:`
42
- `,...a.current()});return/^[\t ]/.test(m)&&(m=Xr(m.charCodeAt(0))+m.slice(1)),m=m?c+" "+m:c,r.options.closeAtx&&(m+=" "+c),h(),p(),m}Wc.peek=Wk;function Wc(t){return t.value||""}function Wk(){return"<"}Qc.peek=Qk;function Qc(t,i,r,o){const s=cu(r),a=s==='"'?"Quote":"Apostrophe",c=r.enter("image");let p=r.enter("label");const h=r.createTracker(o);let m=h.move("![");return m+=h.move(r.safe(t.alt,{before:m,after:"]",...h.current()})),m+=h.move("]("),p(),!t.url&&t.title||/[\0- \u007F]/.test(t.url)?(p=r.enter("destinationLiteral"),m+=h.move("<"),m+=h.move(r.safe(t.url,{before:m,after:">",...h.current()})),m+=h.move(">")):(p=r.enter("destinationRaw"),m+=h.move(r.safe(t.url,{before:m,after:t.title?" ":")",...h.current()}))),p(),t.title&&(p=r.enter(`title${a}`),m+=h.move(" "+s),m+=h.move(r.safe(t.title,{before:m,after:s,...h.current()})),m+=h.move(s),p()),m+=h.move(")"),c(),m}function Qk(){return"!"}qc.peek=qk;function qc(t,i,r,o){const s=t.referenceType,a=r.enter("imageReference");let c=r.enter("label");const p=r.createTracker(o);let h=p.move("![");const m=r.safe(t.alt,{before:h,after:"]",...p.current()});h+=p.move(m+"]["),c();const y=r.stack;r.stack=[],c=r.enter("reference");const g=r.safe(r.associationId(t),{before:h,after:"]",...p.current()});return c(),r.stack=y,a(),s==="full"||!m||m!==g?h+=p.move(g+"]"):s==="shortcut"?h=h.slice(0,-1):h+=p.move("]"),h}function qk(){return"!"}Yc.peek=Yk;function Yc(t,i,r){let o=t.value||"",s="`",a=-1;for(;new RegExp("(^|[^`])"+s+"([^`]|$)").test(o);)s+="`";for(/[^ \r\n]/.test(o)&&(/^[ \r\n]/.test(o)&&/[ \r\n]$/.test(o)||/^`|`$/.test(o))&&(o=" "+o+" ");++a<r.unsafe.length;){const c=r.unsafe[a],p=r.compilePattern(c);let h;if(c.atBreak)for(;h=p.exec(o);){let m=h.index;o.charCodeAt(m)===10&&o.charCodeAt(m-1)===13&&m--,o=o.slice(0,m)+" "+o.slice(h.index+1)}}return s+o+s}function Yk(){return"`"}function Kc(t,i){const r=Oo(t);return!!(!i.options.resourceLink&&t.url&&!t.title&&t.children&&t.children.length===1&&t.children[0].type==="text"&&(r===t.url||"mailto:"+r===t.url)&&/^[a-z][a-z+.-]+:/i.test(t.url)&&!/[\0- <>\u007F]/.test(t.url))}Gc.peek=Kk;function Gc(t,i,r,o){const s=cu(r),a=s==='"'?"Quote":"Apostrophe",c=r.createTracker(o);let p,h;if(Kc(t,r)){const y=r.stack;r.stack=[],p=r.enter("autolink");let g=c.move("<");return g+=c.move(r.containerPhrasing(t,{before:g,after:">",...c.current()})),g+=c.move(">"),p(),r.stack=y,g}p=r.enter("link"),h=r.enter("label");let m=c.move("[");return m+=c.move(r.containerPhrasing(t,{before:m,after:"](",...c.current()})),m+=c.move("]("),h(),!t.url&&t.title||/[\0- \u007F]/.test(t.url)?(h=r.enter("destinationLiteral"),m+=c.move("<"),m+=c.move(r.safe(t.url,{before:m,after:">",...c.current()})),m+=c.move(">")):(h=r.enter("destinationRaw"),m+=c.move(r.safe(t.url,{before:m,after:t.title?" ":")",...c.current()}))),h(),t.title&&(h=r.enter(`title${a}`),m+=c.move(" "+s),m+=c.move(r.safe(t.title,{before:m,after:s,...c.current()})),m+=c.move(s),h()),m+=c.move(")"),p(),m}function Kk(t,i,r){return Kc(t,r)?"<":"["}Xc.peek=Gk;function Xc(t,i,r,o){const s=t.referenceType,a=r.enter("linkReference");let c=r.enter("label");const p=r.createTracker(o);let h=p.move("[");const m=r.containerPhrasing(t,{before:h,after:"]",...p.current()});h+=p.move(m+"]["),c();const y=r.stack;r.stack=[],c=r.enter("reference");const g=r.safe(r.associationId(t),{before:h,after:"]",...p.current()});return c(),r.stack=y,a(),s==="full"||!m||m!==g?h+=p.move(g+"]"):s==="shortcut"?h=h.slice(0,-1):h+=p.move("]"),h}function Gk(){return"["}function fu(t){const i=t.options.bullet||"*";if(i!=="*"&&i!=="+"&&i!=="-")throw new Error("Cannot serialize items with `"+i+"` for `options.bullet`, expected `*`, `+`, or `-`");return i}function Xk(t){const i=fu(t),r=t.options.bulletOther;if(!r)return i==="*"?"-":"*";if(r!=="*"&&r!=="+"&&r!=="-")throw new Error("Cannot serialize items with `"+r+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(r===i)throw new Error("Expected `bullet` (`"+i+"`) and `bulletOther` (`"+r+"`) to be different");return r}function Jk(t){const i=t.options.bulletOrdered||".";if(i!=="."&&i!==")")throw new Error("Cannot serialize items with `"+i+"` for `options.bulletOrdered`, expected `.` or `)`");return i}function Jc(t){const i=t.options.rule||"*";if(i!=="*"&&i!=="-"&&i!=="_")throw new Error("Cannot serialize rules with `"+i+"` for `options.rule`, expected `*`, `-`, or `_`");return i}function Zk(t,i,r,o){const s=r.enter("list"),a=r.bulletCurrent;let c=t.ordered?Jk(r):fu(r);const p=t.ordered?c==="."?")":".":Xk(r);let h=i&&r.bulletLastUsed?c===r.bulletLastUsed:!1;if(!t.ordered){const y=t.children?t.children[0]:void 0;if((c==="*"||c==="-")&&y&&(!y.children||!y.children[0])&&r.stack[r.stack.length-1]==="list"&&r.stack[r.stack.length-2]==="listItem"&&r.stack[r.stack.length-3]==="list"&&r.stack[r.stack.length-4]==="listItem"&&r.indexStack[r.indexStack.length-1]===0&&r.indexStack[r.indexStack.length-2]===0&&r.indexStack[r.indexStack.length-3]===0&&(h=!0),Jc(r)===c&&y){let g=-1;for(;++g<t.children.length;){const w=t.children[g];if(w&&w.type==="listItem"&&w.children&&w.children[0]&&w.children[0].type==="thematicBreak"){h=!0;break}}}}h&&(c=p),r.bulletCurrent=c;const m=r.containerFlow(t,o);return r.bulletLastUsed=c,r.bulletCurrent=a,s(),m}function ev(t){const i=t.options.listItemIndent||"one";if(i!=="tab"&&i!=="one"&&i!=="mixed")throw new Error("Cannot serialize items with `"+i+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return i}function tv(t,i,r,o){const s=ev(r);let a=r.bulletCurrent||fu(r);i&&i.type==="list"&&i.ordered&&(a=(typeof i.start=="number"&&i.start>-1?i.start:1)+(r.options.incrementListMarker===!1?0:i.children.indexOf(t))+a);let c=a.length+1;(s==="tab"||s==="mixed"&&(i&&i.type==="list"&&i.spread||t.spread))&&(c=Math.ceil(c/4)*4);const p=r.createTracker(o);p.move(a+" ".repeat(c-a.length)),p.shift(c);const h=r.enter("listItem"),m=r.indentLines(r.containerFlow(t,p.current()),y);return h(),m;function y(g,w,v){return w?(v?"":" ".repeat(c))+g:(v?a:a+" ".repeat(c-a.length))+g}}function nv(t,i,r,o){const s=r.enter("paragraph"),a=r.enter("phrasing"),c=r.containerPhrasing(t,o);return a(),s(),c}const rv=Xi(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function iv(t,i,r,o){return(t.children.some(function(c){return rv(c)})?r.containerPhrasing:r.containerFlow).call(r,t,o)}function lv(t){const i=t.options.strong||"*";if(i!=="*"&&i!=="_")throw new Error("Cannot serialize strong with `"+i+"` for `options.strong`, expected `*`, or `_`");return i}Zc.peek=ov;function Zc(t,i,r,o){const s=lv(r),a=r.enter("strong"),c=r.createTracker(o),p=c.move(s+s);let h=c.move(r.containerPhrasing(t,{after:s,before:p,...c.current()}));const m=h.charCodeAt(0),y=el(o.before.charCodeAt(o.before.length-1),m,s);y.inside&&(h=Xr(m)+h.slice(1));const g=h.charCodeAt(h.length-1),w=el(o.after.charCodeAt(0),g,s);w.inside&&(h=h.slice(0,-1)+Xr(g));const v=c.move(s+s);return a(),r.attentionEncodeSurroundingInfo={after:w.outside,before:y.outside},p+h+v}function ov(t,i,r){return r.options.strong||"*"}function uv(t,i,r,o){return r.safe(t.value,o)}function sv(t){const i=t.options.ruleRepetition||3;if(i<3)throw new Error("Cannot serialize rules with repetition `"+i+"` for `options.ruleRepetition`, expected `3` or more");return i}function av(t,i,r){const o=(Jc(r)+(r.options.ruleSpaces?" ":"")).repeat(sv(r));return r.options.ruleSpaces?o.slice(0,-1):o}const ef={blockquote:Rk,break:Vc,code:Fk,definition:Bk,emphasis:Hc,hardBreak:Vc,heading:Hk,html:Wc,image:Qc,imageReference:qc,inlineCode:Yc,link:Gc,linkReference:Xc,list:Zk,listItem:tv,paragraph:nv,root:iv,strong:Zc,text:uv,thematicBreak:av};function cv(){return{enter:{table:fv,tableData:tf,tableHeader:tf,tableRow:dv},exit:{codeText:hv,table:pv,tableData:pu,tableHeader:pu,tableRow:pu}}}function fv(t){const i=t._align;this.enter({type:"table",align:i.map(function(r){return r==="none"?null:r}),children:[]},t),this.data.inTable=!0}function pv(t){this.exit(t),this.data.inTable=void 0}function dv(t){this.enter({type:"tableRow",children:[]},t)}function pu(t){this.exit(t)}function tf(t){this.enter({type:"tableCell",children:[]},t)}function hv(t){let i=this.resume();this.data.inTable&&(i=i.replace(/\\([\\|])/g,mv));const r=this.stack[this.stack.length-1];r.type,r.value=i,this.exit(t)}function mv(t,i){return i==="|"?i:t}function gv(t){const i=t||{},r=i.tableCellPadding,o=i.tablePipeAlign,s=i.stringLength,a=r?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
43
- `,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:w,table:c,tableCell:h,tableRow:p}};function c(v,_,z,D){return m(y(v,z,D),v.align)}function p(v,_,z,D){const A=g(v,z,D),H=m([A]);return H.slice(0,H.indexOf(`
44
- `))}function h(v,_,z,D){const A=z.enter("tableCell"),H=z.enter("phrasing"),M=z.containerPhrasing(v,{...D,before:a,after:a});return H(),A(),M}function m(v,_){return Ak(v,{align:_,alignDelimiters:o,padding:r,stringLength:s})}function y(v,_,z){const D=v.children;let A=-1;const H=[],M=_.enter("table");for(;++A<D.length;)H[A]=g(D[A],_,z);return M(),H}function g(v,_,z){const D=v.children;let A=-1;const H=[],M=_.enter("tableRow");for(;++A<D.length;)H[A]=h(D[A],v,_,z);return M(),H}function w(v,_,z){let D=ef.inlineCode(v,_,z);return z.stack.includes("tableCell")&&(D=D.replace(/\|/g,"\\$&")),D}}function yv(){return{exit:{taskListCheckValueChecked:nf,taskListCheckValueUnchecked:nf,paragraph:vv}}}function kv(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:wv}}}function nf(t){const i=this.stack[this.stack.length-2];i.type,i.checked=t.type==="taskListCheckValueChecked"}function vv(t){const i=this.stack[this.stack.length-2];if(i&&i.type==="listItem"&&typeof i.checked=="boolean"){const r=this.stack[this.stack.length-1];r.type;const o=r.children[0];if(o&&o.type==="text"){const s=i.children;let a=-1,c;for(;++a<s.length;){const p=s[a];if(p.type==="paragraph"){c=p;break}}c===r&&(o.value=o.value.slice(1),o.value.length===0?r.children.shift():r.position&&o.position&&typeof o.position.start.offset=="number"&&(o.position.start.column++,o.position.start.offset++,r.position.start=Object.assign({},o.position.start)))}}this.exit(t)}function wv(t,i,r,o){const s=t.children[0],a=typeof t.checked=="boolean"&&s&&s.type==="paragraph",c="["+(t.checked?"x":" ")+"] ",p=r.createTracker(o);a&&p.move(c);let h=ef.listItem(t,i,r,{...o,...p.current()});return a&&(h=h.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,m)),h;function m(y){return y+c}}function xv(){return[Z1(),wk(),Ck(),cv(),yv()]}function Sv(t){return{extensions:[ek(),xk(t),Tk(),gv(t),kv()]}}const Ev={tokenize:Nv,partial:!0},rf={tokenize:Av,partial:!0},lf={tokenize:bv,partial:!0},of={tokenize:Rv,partial:!0},Cv={tokenize:zv,partial:!0},uf={name:"wwwAutolink",tokenize:Iv,previous:af},sf={name:"protocolAutolink",tokenize:Pv,previous:cf},en={name:"emailAutolink",tokenize:_v,previous:ff},Qt={};function Tv(){return{text:Qt}}let Vn=48;for(;Vn<123;)Qt[Vn]=en,Vn++,Vn===58?Vn=65:Vn===91&&(Vn=97);Qt[43]=en,Qt[45]=en,Qt[46]=en,Qt[95]=en,Qt[72]=[en,sf],Qt[104]=[en,sf],Qt[87]=[en,uf],Qt[119]=[en,uf];function _v(t,i,r){const o=this;let s,a;return c;function c(g){return!du(g)||!ff.call(o,o.previous)||hu(o.events)?r(g):(t.enter("literalAutolink"),t.enter("literalAutolinkEmail"),p(g))}function p(g){return du(g)?(t.consume(g),p):g===64?(t.consume(g),h):r(g)}function h(g){return g===46?t.check(Cv,y,m)(g):g===45||g===95||lt(g)?(a=!0,t.consume(g),h):y(g)}function m(g){return t.consume(g),s=!0,h}function y(g){return a&&s&&ct(o.previous)?(t.exit("literalAutolinkEmail"),t.exit("literalAutolink"),i(g)):r(g)}}function Iv(t,i,r){const o=this;return s;function s(c){return c!==87&&c!==119||!af.call(o,o.previous)||hu(o.events)?r(c):(t.enter("literalAutolink"),t.enter("literalAutolinkWww"),t.check(Ev,t.attempt(rf,t.attempt(lf,a),r),r)(c))}function a(c){return t.exit("literalAutolinkWww"),t.exit("literalAutolink"),i(c)}}function Pv(t,i,r){const o=this;let s="",a=!1;return c;function c(g){return(g===72||g===104)&&cf.call(o,o.previous)&&!hu(o.events)?(t.enter("literalAutolink"),t.enter("literalAutolinkHttp"),s+=String.fromCodePoint(g),t.consume(g),p):r(g)}function p(g){if(ct(g)&&s.length<5)return s+=String.fromCodePoint(g),t.consume(g),p;if(g===58){const w=s.toLowerCase();if(w==="http"||w==="https")return t.consume(g),h}return r(g)}function h(g){return g===47?(t.consume(g),a?m:(a=!0,h)):r(g)}function m(g){return g===null||Vi(g)||Le(g)||Un(g)||Hi(g)?r(g):t.attempt(rf,t.attempt(lf,y),r)(g)}function y(g){return t.exit("literalAutolinkHttp"),t.exit("literalAutolink"),i(g)}}function Nv(t,i,r){let o=0;return s;function s(c){return(c===87||c===119)&&o<3?(o++,t.consume(c),s):c===46&&o===3?(t.consume(c),a):r(c)}function a(c){return c===null?r(c):i(c)}}function Av(t,i,r){let o,s,a;return c;function c(m){return m===46||m===95?t.check(of,h,p)(m):m===null||Le(m)||Un(m)||m!==45&&Hi(m)?h(m):(a=!0,t.consume(m),c)}function p(m){return m===95?o=!0:(s=o,o=void 0),t.consume(m),c}function h(m){return s||o||!a?r(m):i(m)}}function bv(t,i){let r=0,o=0;return s;function s(c){return c===40?(r++,t.consume(c),s):c===41&&o<r?a(c):c===33||c===34||c===38||c===39||c===41||c===42||c===44||c===46||c===58||c===59||c===60||c===63||c===93||c===95||c===126?t.check(of,i,a)(c):c===null||Le(c)||Un(c)?i(c):(t.consume(c),s)}function a(c){return c===41&&o++,t.consume(c),s}}function Rv(t,i,r){return o;function o(p){return p===33||p===34||p===39||p===41||p===42||p===44||p===46||p===58||p===59||p===63||p===95||p===126?(t.consume(p),o):p===38?(t.consume(p),a):p===93?(t.consume(p),s):p===60||p===null||Le(p)||Un(p)?i(p):r(p)}function s(p){return p===null||p===40||p===91||Le(p)||Un(p)?i(p):o(p)}function a(p){return ct(p)?c(p):r(p)}function c(p){return p===59?(t.consume(p),o):ct(p)?(t.consume(p),c):r(p)}}function zv(t,i,r){return o;function o(a){return t.consume(a),s}function s(a){return lt(a)?r(a):i(a)}}function af(t){return t===null||t===40||t===42||t===95||t===91||t===93||t===126||Le(t)}function cf(t){return!ct(t)}function ff(t){return!(t===47||du(t))}function du(t){return t===43||t===45||t===46||t===95||lt(t)}function hu(t){let i=t.length,r=!1;for(;i--;){const o=t[i][1];if((o.type==="labelLink"||o.type==="labelImage")&&!o._balanced){r=!0;break}if(o._gfmAutolinkLiteralWalkedInto){r=!1;break}}return t.length>0&&!r&&(t[t.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),r}const Lv={tokenize:$v,partial:!0};function Dv(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:jv,continuation:{tokenize:Bv},exit:Uv}},text:{91:{name:"gfmFootnoteCall",tokenize:Fv},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:Ov,resolveTo:Mv}}}}function Ov(t,i,r){const o=this;let s=o.events.length;const a=o.parser.gfmFootnotes||(o.parser.gfmFootnotes=[]);let c;for(;s--;){const h=o.events[s][1];if(h.type==="labelImage"){c=h;break}if(h.type==="gfmFootnoteCall"||h.type==="labelLink"||h.type==="label"||h.type==="image"||h.type==="link")break}return p;function p(h){if(!c||!c._balanced)return r(h);const m=Mt(o.sliceSerialize({start:c.end,end:o.now()}));return m.codePointAt(0)!==94||!a.includes(m.slice(1))?r(h):(t.enter("gfmFootnoteCallLabelMarker"),t.consume(h),t.exit("gfmFootnoteCallLabelMarker"),i(h))}}function Mv(t,i){let r=t.length;for(;r--;)if(t[r][1].type==="labelImage"&&t[r][0]==="enter"){t[r][1];break}t[r+1][1].type="data",t[r+3][1].type="gfmFootnoteCallLabelMarker";const o={type:"gfmFootnoteCall",start:Object.assign({},t[r+3][1].start),end:Object.assign({},t[t.length-1][1].end)},s={type:"gfmFootnoteCallMarker",start:Object.assign({},t[r+3][1].end),end:Object.assign({},t[r+3][1].end)};s.end.column++,s.end.offset++,s.end._bufferIndex++;const a={type:"gfmFootnoteCallString",start:Object.assign({},s.end),end:Object.assign({},t[t.length-1][1].start)},c={type:"chunkString",contentType:"string",start:Object.assign({},a.start),end:Object.assign({},a.end)},p=[t[r+1],t[r+2],["enter",o,i],t[r+3],t[r+4],["enter",s,i],["exit",s,i],["enter",a,i],["enter",c,i],["exit",c,i],["exit",a,i],t[t.length-2],t[t.length-1],["exit",o,i]];return t.splice(r,t.length-r+1,...p),t}function Fv(t,i,r){const o=this,s=o.parser.gfmFootnotes||(o.parser.gfmFootnotes=[]);let a=0,c;return p;function p(g){return t.enter("gfmFootnoteCall"),t.enter("gfmFootnoteCallLabelMarker"),t.consume(g),t.exit("gfmFootnoteCallLabelMarker"),h}function h(g){return g!==94?r(g):(t.enter("gfmFootnoteCallMarker"),t.consume(g),t.exit("gfmFootnoteCallMarker"),t.enter("gfmFootnoteCallString"),t.enter("chunkString").contentType="string",m)}function m(g){if(a>999||g===93&&!c||g===null||g===91||Le(g))return r(g);if(g===93){t.exit("chunkString");const w=t.exit("gfmFootnoteCallString");return s.includes(Mt(o.sliceSerialize(w)))?(t.enter("gfmFootnoteCallLabelMarker"),t.consume(g),t.exit("gfmFootnoteCallLabelMarker"),t.exit("gfmFootnoteCall"),i):r(g)}return Le(g)||(c=!0),a++,t.consume(g),g===92?y:m}function y(g){return g===91||g===92||g===93?(t.consume(g),a++,m):m(g)}}function jv(t,i,r){const o=this,s=o.parser.gfmFootnotes||(o.parser.gfmFootnotes=[]);let a,c=0,p;return h;function h(_){return t.enter("gfmFootnoteDefinition")._container=!0,t.enter("gfmFootnoteDefinitionLabel"),t.enter("gfmFootnoteDefinitionLabelMarker"),t.consume(_),t.exit("gfmFootnoteDefinitionLabelMarker"),m}function m(_){return _===94?(t.enter("gfmFootnoteDefinitionMarker"),t.consume(_),t.exit("gfmFootnoteDefinitionMarker"),t.enter("gfmFootnoteDefinitionLabelString"),t.enter("chunkString").contentType="string",y):r(_)}function y(_){if(c>999||_===93&&!p||_===null||_===91||Le(_))return r(_);if(_===93){t.exit("chunkString");const z=t.exit("gfmFootnoteDefinitionLabelString");return a=Mt(o.sliceSerialize(z)),t.enter("gfmFootnoteDefinitionLabelMarker"),t.consume(_),t.exit("gfmFootnoteDefinitionLabelMarker"),t.exit("gfmFootnoteDefinitionLabel"),w}return Le(_)||(p=!0),c++,t.consume(_),_===92?g:y}function g(_){return _===91||_===92||_===93?(t.consume(_),c++,y):y(_)}function w(_){return _===58?(t.enter("definitionMarker"),t.consume(_),t.exit("definitionMarker"),s.includes(a)||s.push(a),_e(t,v,"gfmFootnoteDefinitionWhitespace")):r(_)}function v(_){return i(_)}}function Bv(t,i,r){return t.check(Hr,i,t.attempt(Lv,i,r))}function Uv(t){t.exit("gfmFootnoteDefinition")}function $v(t,i,r){const o=this;return _e(t,s,"gfmFootnoteDefinitionIndent",5);function s(a){const c=o.events[o.events.length-1];return c&&c[1].type==="gfmFootnoteDefinitionIndent"&&c[2].sliceSerialize(c[1],!0).length===4?i(a):r(a)}}function Vv(t){let r=(t||{}).singleTilde;const o={name:"strikethrough",tokenize:a,resolveAll:s};return r==null&&(r=!0),{text:{126:o},insideSpan:{null:[o]},attentionMarkers:{null:[126]}};function s(c,p){let h=-1;for(;++h<c.length;)if(c[h][0]==="enter"&&c[h][1].type==="strikethroughSequenceTemporary"&&c[h][1]._close){let m=h;for(;m--;)if(c[m][0]==="exit"&&c[m][1].type==="strikethroughSequenceTemporary"&&c[m][1]._open&&c[h][1].end.offset-c[h][1].start.offset===c[m][1].end.offset-c[m][1].start.offset){c[h][1].type="strikethroughSequence",c[m][1].type="strikethroughSequence";const y={type:"strikethrough",start:Object.assign({},c[m][1].start),end:Object.assign({},c[h][1].end)},g={type:"strikethroughText",start:Object.assign({},c[m][1].end),end:Object.assign({},c[h][1].start)},w=[["enter",y,p],["enter",c[m][1],p],["exit",c[m][1],p],["enter",g,p]],v=p.parser.constructs.insideSpan.null;v&&Et(w,w.length,0,Wi(v,c.slice(m+1,h),p)),Et(w,w.length,0,[["exit",g,p],["enter",c[h][1],p],["exit",c[h][1],p],["exit",y,p]]),Et(c,m-1,h-m+3,w),h=m+w.length-2;break}}for(h=-1;++h<c.length;)c[h][1].type==="strikethroughSequenceTemporary"&&(c[h][1].type="data");return c}function a(c,p,h){const m=this.previous,y=this.events;let g=0;return w;function w(_){return m===126&&y[y.length-1][1].type!=="characterEscape"?h(_):(c.enter("strikethroughSequenceTemporary"),v(_))}function v(_){const z=sr(m);if(_===126)return g>1?h(_):(c.consume(_),g++,v);if(g<2&&!r)return h(_);const D=c.exit("strikethroughSequenceTemporary"),A=sr(_);return D._open=!A||A===2&&!!z,D._close=!z||z===2&&!!A,p(_)}}}class Hv{constructor(){this.map=[]}add(i,r,o){Wv(this,i,r,o)}consume(i){if(this.map.sort(function(a,c){return a[0]-c[0]}),this.map.length===0)return;let r=this.map.length;const o=[];for(;r>0;)r-=1,o.push(i.slice(this.map[r][0]+this.map[r][1]),this.map[r][2]),i.length=this.map[r][0];o.push(i.slice()),i.length=0;let s=o.pop();for(;s;){for(const a of s)i.push(a);s=o.pop()}this.map.length=0}}function Wv(t,i,r,o){let s=0;if(!(r===0&&o.length===0)){for(;s<t.map.length;){if(t.map[s][0]===i){t.map[s][1]+=r,t.map[s][2].push(...o);return}s+=1}t.map.push([i,r,o])}}function Qv(t,i){let r=!1;const o=[];for(;i<t.length;){const s=t[i];if(r){if(s[0]==="enter")s[1].type==="tableContent"&&o.push(t[i+1][1].type==="tableDelimiterMarker"?"left":"none");else if(s[1].type==="tableContent"){if(t[i-1][1].type==="tableDelimiterMarker"){const a=o.length-1;o[a]=o[a]==="left"?"center":"right"}}else if(s[1].type==="tableDelimiterRow")break}else s[0]==="enter"&&s[1].type==="tableDelimiterRow"&&(r=!0);i+=1}return o}function qv(){return{flow:{null:{name:"table",tokenize:Yv,resolveAll:Kv}}}}function Yv(t,i,r){const o=this;let s=0,a=0,c;return p;function p(R){let X=o.events.length-1;for(;X>-1;){const Q=o.events[X][1].type;if(Q==="lineEnding"||Q==="linePrefix")X--;else break}const J=X>-1?o.events[X][1].type:null,K=J==="tableHead"||J==="tableRow"?L:h;return K===L&&o.parser.lazy[o.now().line]?r(R):K(R)}function h(R){return t.enter("tableHead"),t.enter("tableRow"),m(R)}function m(R){return R===124||(c=!0,a+=1),y(R)}function y(R){return R===null?r(R):ae(R)?a>1?(a=0,o.interrupt=!0,t.exit("tableRow"),t.enter("lineEnding"),t.consume(R),t.exit("lineEnding"),v):r(R):Ce(R)?_e(t,y,"whitespace")(R):(a+=1,c&&(c=!1,s+=1),R===124?(t.enter("tableCellDivider"),t.consume(R),t.exit("tableCellDivider"),c=!0,y):(t.enter("data"),g(R)))}function g(R){return R===null||R===124||Le(R)?(t.exit("data"),y(R)):(t.consume(R),R===92?w:g)}function w(R){return R===92||R===124?(t.consume(R),g):g(R)}function v(R){return o.interrupt=!1,o.parser.lazy[o.now().line]?r(R):(t.enter("tableDelimiterRow"),c=!1,Ce(R)?_e(t,_,"linePrefix",o.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(R):_(R))}function _(R){return R===45||R===58?D(R):R===124?(c=!0,t.enter("tableCellDivider"),t.consume(R),t.exit("tableCellDivider"),z):ue(R)}function z(R){return Ce(R)?_e(t,D,"whitespace")(R):D(R)}function D(R){return R===58?(a+=1,c=!0,t.enter("tableDelimiterMarker"),t.consume(R),t.exit("tableDelimiterMarker"),A):R===45?(a+=1,A(R)):R===null||ae(R)?ne(R):ue(R)}function A(R){return R===45?(t.enter("tableDelimiterFiller"),H(R)):ue(R)}function H(R){return R===45?(t.consume(R),H):R===58?(c=!0,t.exit("tableDelimiterFiller"),t.enter("tableDelimiterMarker"),t.consume(R),t.exit("tableDelimiterMarker"),M):(t.exit("tableDelimiterFiller"),M(R))}function M(R){return Ce(R)?_e(t,ne,"whitespace")(R):ne(R)}function ne(R){return R===124?_(R):R===null||ae(R)?!c||s!==a?ue(R):(t.exit("tableDelimiterRow"),t.exit("tableHead"),i(R)):ue(R)}function ue(R){return r(R)}function L(R){return t.enter("tableRow"),se(R)}function se(R){return R===124?(t.enter("tableCellDivider"),t.consume(R),t.exit("tableCellDivider"),se):R===null||ae(R)?(t.exit("tableRow"),i(R)):Ce(R)?_e(t,se,"whitespace")(R):(t.enter("data"),de(R))}function de(R){return R===null||R===124||Le(R)?(t.exit("data"),se(R)):(t.consume(R),R===92?ye:de)}function ye(R){return R===92||R===124?(t.consume(R),de):de(R)}}function Kv(t,i){let r=-1,o=!0,s=0,a=[0,0,0,0],c=[0,0,0,0],p=!1,h=0,m,y,g;const w=new Hv;for(;++r<t.length;){const v=t[r],_=v[1];v[0]==="enter"?_.type==="tableHead"?(p=!1,h!==0&&(pf(w,i,h,m,y),y=void 0,h=0),m={type:"table",start:Object.assign({},_.start),end:Object.assign({},_.end)},w.add(r,0,[["enter",m,i]])):_.type==="tableRow"||_.type==="tableDelimiterRow"?(o=!0,g=void 0,a=[0,0,0,0],c=[0,r+1,0,0],p&&(p=!1,y={type:"tableBody",start:Object.assign({},_.start),end:Object.assign({},_.end)},w.add(r,0,[["enter",y,i]])),s=_.type==="tableDelimiterRow"?2:y?3:1):s&&(_.type==="data"||_.type==="tableDelimiterMarker"||_.type==="tableDelimiterFiller")?(o=!1,c[2]===0&&(a[1]!==0&&(c[0]=c[1],g=tl(w,i,a,s,void 0,g),a=[0,0,0,0]),c[2]=r)):_.type==="tableCellDivider"&&(o?o=!1:(a[1]!==0&&(c[0]=c[1],g=tl(w,i,a,s,void 0,g)),a=c,c=[a[1],r,0,0])):_.type==="tableHead"?(p=!0,h=r):_.type==="tableRow"||_.type==="tableDelimiterRow"?(h=r,a[1]!==0?(c[0]=c[1],g=tl(w,i,a,s,r,g)):c[1]!==0&&(g=tl(w,i,c,s,r,g)),s=0):s&&(_.type==="data"||_.type==="tableDelimiterMarker"||_.type==="tableDelimiterFiller")&&(c[3]=r)}for(h!==0&&pf(w,i,h,m,y),w.consume(i.events),r=-1;++r<i.events.length;){const v=i.events[r];v[0]==="enter"&&v[1].type==="table"&&(v[1]._align=Qv(i.events,r))}return t}function tl(t,i,r,o,s,a){const c=o===1?"tableHeader":o===2?"tableDelimiter":"tableData",p="tableContent";r[0]!==0&&(a.end=Object.assign({},ar(i.events,r[0])),t.add(r[0],0,[["exit",a,i]]));const h=ar(i.events,r[1]);if(a={type:c,start:Object.assign({},h),end:Object.assign({},h)},t.add(r[1],0,[["enter",a,i]]),r[2]!==0){const m=ar(i.events,r[2]),y=ar(i.events,r[3]),g={type:p,start:Object.assign({},m),end:Object.assign({},y)};if(t.add(r[2],0,[["enter",g,i]]),o!==2){const w=i.events[r[2]],v=i.events[r[3]];if(w[1].end=Object.assign({},v[1].end),w[1].type="chunkText",w[1].contentType="text",r[3]>r[2]+1){const _=r[2]+1,z=r[3]-r[2]-1;t.add(_,z,[])}}t.add(r[3]+1,0,[["exit",g,i]])}return s!==void 0&&(a.end=Object.assign({},ar(i.events,s)),t.add(s,0,[["exit",a,i]]),a=void 0),a}function pf(t,i,r,o,s){const a=[],c=ar(i.events,r);s&&(s.end=Object.assign({},c),a.push(["exit",s,i])),o.end=Object.assign({},c),a.push(["exit",o,i]),t.add(r+1,0,a)}function ar(t,i){const r=t[i],o=r[0]==="enter"?"start":"end";return r[1][o]}const Gv={name:"tasklistCheck",tokenize:Jv};function Xv(){return{text:{91:Gv}}}function Jv(t,i,r){const o=this;return s;function s(h){return o.previous!==null||!o._gfmTasklistFirstContentOfListItem?r(h):(t.enter("taskListCheck"),t.enter("taskListCheckMarker"),t.consume(h),t.exit("taskListCheckMarker"),a)}function a(h){return Le(h)?(t.enter("taskListCheckValueUnchecked"),t.consume(h),t.exit("taskListCheckValueUnchecked"),c):h===88||h===120?(t.enter("taskListCheckValueChecked"),t.consume(h),t.exit("taskListCheckValueChecked"),c):r(h)}function c(h){return h===93?(t.enter("taskListCheckMarker"),t.consume(h),t.exit("taskListCheckMarker"),t.exit("taskListCheck"),p):r(h)}function p(h){return ae(h)?i(h):Ce(h)?t.check({tokenize:Zv},i,r)(h):r(h)}}function Zv(t,i,r){return _e(t,o,"whitespace");function o(s){return s===null?r(s):i(s)}}function ew(t){return Wa([Tv(),Dv(),Vv(t),qv(),Xv()])}const tw={};function nw(t){const i=this,r=t||tw,o=i.data(),s=o.micromarkExtensions||(o.micromarkExtensions=[]),a=o.fromMarkdownExtensions||(o.fromMarkdownExtensions=[]),c=o.toMarkdownExtensions||(o.toMarkdownExtensions=[]);s.push(ew(r)),a.push(xv()),c.push(Sv(r))}const Hn=["ariaDescribedBy","ariaLabel","ariaLabelledBy"],df={ancestors:{tbody:["table"],td:["table"],th:["table"],thead:["table"],tfoot:["table"],tr:["table"]},attributes:{a:[...Hn,"dataFootnoteBackref","dataFootnoteRef",["className","data-footnote-backref"],"href"],blockquote:["cite"],code:[["className",/^language-./]],del:["cite"],div:["itemScope","itemType"],dl:[...Hn],h2:[["className","sr-only"]],img:[...Hn,"longDesc","src"],input:[["disabled",!0],["type","checkbox"]],ins:["cite"],li:[["className","task-list-item"]],ol:[...Hn,["className","contains-task-list"]],q:["cite"],section:["dataFootnotes",["className","footnotes"]],source:["srcSet"],summary:[...Hn],table:[...Hn],ul:[...Hn,["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"]},gn={}.hasOwnProperty;function rw(t,i){let r={type:"root",children:[]};const o={schema:i?{...df,...i}:df,stack:[]},s=hf(o,t);return s&&(Array.isArray(s)?s.length===1?r=s[0]:r.children=s:r=s),r}function hf(t,i){if(i&&typeof i=="object"){const r=i;switch(typeof r.type=="string"?r.type:""){case"comment":return iw(t,r);case"doctype":return lw(t,r);case"element":return ow(t,r);case"root":return uw(t,r);case"text":return sw(t,r)}}}function iw(t,i){if(t.schema.allowComments){const r=typeof i.value=="string"?i.value:"",o=r.indexOf("-->"),a={type:"comment",value:o<0?r:r.slice(0,o)};return Jr(a,i),a}}function lw(t,i){if(t.schema.allowDoctypes){const r={type:"doctype"};return Jr(r,i),r}}function ow(t,i){const r=typeof i.tagName=="string"?i.tagName:"";t.stack.push(r);const o=mf(t,i.children),s=aw(t,i.properties);t.stack.pop();let a=!1;if(r&&r!=="*"&&(!t.schema.tagNames||t.schema.tagNames.includes(r))&&(a=!0,t.schema.ancestors&&gn.call(t.schema.ancestors,r))){const p=t.schema.ancestors[r];let h=-1;for(a=!1;++h<p.length;)t.stack.includes(p[h])&&(a=!0)}if(!a)return t.schema.strip&&!t.schema.strip.includes(r)?o:void 0;const c={type:"element",tagName:r,properties:s,children:o};return Jr(c,i),c}function uw(t,i){const o={type:"root",children:mf(t,i.children)};return Jr(o,i),o}function sw(t,i){const o={type:"text",value:typeof i.value=="string"?i.value:""};return Jr(o,i),o}function mf(t,i){const r=[];if(Array.isArray(i)){const o=i;let s=-1;for(;++s<o.length;){const a=hf(t,o[s]);a&&(Array.isArray(a)?r.push(...a):r.push(a))}}return r}function aw(t,i){const r=t.stack[t.stack.length-1],o=t.schema.attributes,s=t.schema.required,a=o&&gn.call(o,r)?o[r]:void 0,c=o&&gn.call(o,"*")?o["*"]:void 0,p=i&&typeof i=="object"?i:{},h={};let m;for(m in p)if(gn.call(p,m)){const y=p[m];let g=gf(t,kf(a,m),m,y);g==null&&(g=gf(t,kf(c,m),m,y)),g!=null&&(h[m]=g)}if(s&&gn.call(s,r)){const y=s[r];for(m in y)gn.call(y,m)&&!gn.call(h,m)&&(h[m]=y[m])}return h}function gf(t,i,r,o){return i?Array.isArray(o)?cw(t,i,r,o):yf(t,i,r,o):void 0}function cw(t,i,r,o){let s=-1;const a=[];for(;++s<o.length;){const c=yf(t,i,r,o[s]);(typeof c=="number"||typeof c=="string")&&a.push(c)}return a}function yf(t,i,r,o){if(!(typeof o!="boolean"&&typeof o!="number"&&typeof o!="string")&&fw(t,r,o)){if(typeof i=="object"&&i.length>1){let s=!1,a=0;for(;++a<i.length;){const c=i[a];if(c&&typeof c=="object"&&"flags"in c){if(c.test(String(o))){s=!0;break}}else if(c===o){s=!0;break}}if(!s)return}return t.schema.clobber&&t.schema.clobberPrefix&&t.schema.clobber.includes(r)?t.schema.clobberPrefix+o:o}}function fw(t,i,r){const o=t.schema.protocols&&gn.call(t.schema.protocols,i)?t.schema.protocols[i]:void 0;if(!o||o.length===0)return!0;const s=String(r),a=s.indexOf(":"),c=s.indexOf("?"),p=s.indexOf("#"),h=s.indexOf("/");if(a<0||h>-1&&a>h||c>-1&&a>c||p>-1&&a>p)return!0;let m=-1;for(;++m<o.length;){const y=o[m];if(a===y.length&&s.slice(0,y.length)===y)return!0}return!1}function Jr(t,i){const r=La(i);i.data&&(t.data=Kr(i.data)),r&&(t.position=r)}function kf(t,i){let r,o=-1;if(t)for(;++o<t.length;){const s=t[o],a=typeof s=="string"?s:s[0];if(a===i)return s;a==="data*"&&(r=s)}if(i.length>4&&i.slice(0,4).toLowerCase()==="data")return r}function pw(t){return function(i){return rw(i,t)}}function vf({text:t}){return ke.jsx("div",{className:"md",children:ke.jsx(V1,{remarkPlugins:[nw],rehypePlugins:[pw],children:t})})}function dw(){const{state:t}=wo(),i=t.streamingText.length>0,r=t.agentTyping&&!i;return t.error||r||i||t.answer!==null||t.lastQuestion!==null?ke.jsxs("div",{className:"slot",children:[t.lastQuestion!==null&&ke.jsx("div",{className:"user-bubble-row",children:ke.jsx("div",{className:"user-bubble",children:t.lastQuestion})}),t.error&&ke.jsx("div",{className:"answer",role:"status",children:ke.jsx("p",{className:"error",children:t.error})}),r&&ke.jsx("div",{className:"answer",role:"status","aria-busy":"true",children:ke.jsxs("div",{className:"typing","aria-label":"Agent is thinking",children:[ke.jsx("span",{className:"dot"}),ke.jsx("span",{className:"dot"}),ke.jsx("span",{className:"dot"})]})}),i&&ke.jsx("div",{className:"answer",role:"log","aria-live":"polite","aria-busy":"true",children:ke.jsx(vf,{text:t.streamingText})}),!r&&!i&&!t.error&&t.answer!==null&&ke.jsx("div",{className:"answer",role:"log","aria-live":"polite",children:ke.jsx(vf,{text:t.answer})})]}):null}function wf({config:t,hostElement:i,conversationIdRef:r}){return ke.jsx(Fh,{config:t,hostElement:i,conversationIdRef:r,children:ke.jsxs("div",{className:"widget",children:[ke.jsxs("header",{className:"widget-header",children:[ke.jsxs("div",{className:"widget-header-brand",children:[ke.jsx("span",{className:"header-icon-wrap",children:ke.jsx(jh,{})}),ke.jsx("h2",{className:"widget-header-title",children:"Ask Assistant"})]}),ke.jsx("span",{className:"widget-badge",children:"New"})]}),ke.jsx(Uh,{}),ke.jsx(dw,{}),ke.jsx($h,{})]})})}const hw="inline-agent-widget: missing required config. Provide scrt2-url, org-id, and es-developer-name.";function mw(t){return t.scrt2Url&&t.orgId&&t.esDeveloperName?null:hw}function xf(t,i,r){const o=document.createElement("style");o.textContent=yh,t.appendChild(o);const s=document.createElement("div");s.className="iaw-root",t.appendChild(s);const a=mw(i);if(a){s.replaceChildren();const h=document.createElement("div");return h.className="iaw-config-error",h.textContent=a,s.appendChild(h),console.warn(a),{update:()=>{},unmount:()=>{s.remove(),o.remove()},get conversationId(){return null}}}const c={current:null},p=gh.createRoot(s);return p.render(ke.jsx(wf,{config:i,hostElement:r,conversationIdRef:c})),{update(h){p.render(ke.jsx(wf,{config:h,hostElement:r,conversationIdRef:c}))},unmount(){p.unmount(),s.remove(),o.remove()},get conversationId(){return c.current}}}const gw=5;function yw(t,i=gw){if(!t)return[];let r;try{r=JSON.parse(t)}catch{return[]}if(!Array.isArray(r))return[];const o=new Set,s=[];for(const a of r){if(typeof a!="string")continue;const c=a.trim();if(!(!c||o.has(c))&&(o.add(c),s.push(c),s.length>=i))break}return s}const kw="inline-agent-widget",vw=["scrt2-url","org-id","es-developer-name","capabilities-version","placeholder","product-id-param","product-id-pattern","pdp-questions","product-name","enable-logging","persist-session"];function Sf(t){var r,o,s;const i=a=>{var c;return((c=t.getAttribute(a))==null?void 0:c.trim())||void 0};return{scrt2Url:(r=i("scrt2-url"))!=null?r:"",orgId:(o=i("org-id"))!=null?o:"",esDeveloperName:(s=i("es-developer-name"))!=null?s:"",capabilitiesVersion:i("capabilities-version"),placeholder:i("placeholder"),productIdParam:i("product-id-param"),productIdPattern:i("product-id-pattern"),pdpQuestions:yw(i("pdp-questions")),productName:i("product-name"),enableLogging:t.hasAttribute("enable-logging"),persistSession:t.hasAttribute("persist-session")}}class Ef extends HTMLElement{constructor(){super(...arguments);Te(this,"handle",null)}static get observedAttributes(){return vw}get conversationId(){var r,o;return(o=(r=this.handle)==null?void 0:r.conversationId)!=null?o:null}connectedCallback(){var o;if(this.handle)return;const r=(o=this.shadowRoot)!=null?o:this.attachShadow({mode:"open"});this.handle=xf(r,Sf(this),this)}attributeChangedCallback(){this.handle&&this.handle.update(Sf(this))}disconnectedCallback(){var r;(r=this.handle)==null||r.unmount(),this.handle=null}}function Cf(t=kw){typeof customElements!="undefined"&&(customElements.get(t)||customElements.define(t,Ef))}function ww(t){const{element:i,elementId:r,timeout:o=5e3,...s}=t;let a=!1,c=null;const p=m=>{var w;if(a)return;const y=(w=m.shadowRoot)!=null?w:m.attachShadow({mode:"open"}),g=xf(y,s);c=()=>g.unmount()},h=i!=null?i:r?document.getElementById(r):null;if(h)p(h);else if(r){const m=new MutationObserver(()=>{const g=document.getElementById(r);g&&(m.disconnect(),clearTimeout(y),p(g))});m.observe(document.body,{childList:!0,subtree:!0});const y=setTimeout(()=>{m.disconnect(),console.warn(`inline-agent-widget: element #${r} not found within ${o}ms.`)},o);c=()=>{m.disconnect(),clearTimeout(y)}}else console.warn("inline-agent-widget: mount() requires `element` or `elementId`.");return{unmount(){a=!0,c==null||c(),c=null}}}Cf(),Ye.AgentforceApiError=Bi,Ye.AgentforceAuthError=Fr,Ye.AgentforceClient=aa,Ye.AgentforceClientError=dn,Ye.AgentforceNetworkError=Ui,Ye.InlineAgentWidgetElement=Ef,Ye.defineElement=Cf,Ye.mount=ww,Object.defineProperty(Ye,Symbol.toStringTag,{value:"Module"})}));
44
+ `,...a.current()});return/^[\t ]/.test(m)&&(m=Xr(m.charCodeAt(0))+m.slice(1)),m=m?c+" "+m:c,r.options.closeAtx&&(m+=" "+c),h(),p(),m}Wc.peek=Uk;function Wc(t){return t.value||""}function Uk(){return"<"}qc.peek=$k;function qc(t,i,r,o){const s=au(r),a=s==='"'?"Quote":"Apostrophe",c=r.enter("image");let p=r.enter("label");const h=r.createTracker(o);let m=h.move("![");return m+=h.move(r.safe(t.alt,{before:m,after:"]",...h.current()})),m+=h.move("]("),p(),!t.url&&t.title||/[\0- \u007F]/.test(t.url)?(p=r.enter("destinationLiteral"),m+=h.move("<"),m+=h.move(r.safe(t.url,{before:m,after:">",...h.current()})),m+=h.move(">")):(p=r.enter("destinationRaw"),m+=h.move(r.safe(t.url,{before:m,after:t.title?" ":")",...h.current()}))),p(),t.title&&(p=r.enter(`title${a}`),m+=h.move(" "+s),m+=h.move(r.safe(t.title,{before:m,after:s,...h.current()})),m+=h.move(s),p()),m+=h.move(")"),c(),m}function $k(){return"!"}Qc.peek=Vk;function Qc(t,i,r,o){const s=t.referenceType,a=r.enter("imageReference");let c=r.enter("label");const p=r.createTracker(o);let h=p.move("![");const m=r.safe(t.alt,{before:h,after:"]",...p.current()});h+=p.move(m+"]["),c();const y=r.stack;r.stack=[],c=r.enter("reference");const g=r.safe(r.associationId(t),{before:h,after:"]",...p.current()});return c(),r.stack=y,a(),s==="full"||!m||m!==g?h+=p.move(g+"]"):s==="shortcut"?h=h.slice(0,-1):h+=p.move("]"),h}function Vk(){return"!"}Yc.peek=Hk;function Yc(t,i,r){let o=t.value||"",s="`",a=-1;for(;new RegExp("(^|[^`])"+s+"([^`]|$)").test(o);)s+="`";for(/[^ \r\n]/.test(o)&&(/^[ \r\n]/.test(o)&&/[ \r\n]$/.test(o)||/^`|`$/.test(o))&&(o=" "+o+" ");++a<r.unsafe.length;){const c=r.unsafe[a],p=r.compilePattern(c);let h;if(c.atBreak)for(;h=p.exec(o);){let m=h.index;o.charCodeAt(m)===10&&o.charCodeAt(m-1)===13&&m--,o=o.slice(0,m)+" "+o.slice(h.index+1)}}return s+o+s}function Hk(){return"`"}function Kc(t,i){const r=bo(t);return!!(!i.options.resourceLink&&t.url&&!t.title&&t.children&&t.children.length===1&&t.children[0].type==="text"&&(r===t.url||"mailto:"+r===t.url)&&/^[a-z][a-z+.-]+:/i.test(t.url)&&!/[\0- <>\u007F]/.test(t.url))}Gc.peek=Wk;function Gc(t,i,r,o){const s=au(r),a=s==='"'?"Quote":"Apostrophe",c=r.createTracker(o);let p,h;if(Kc(t,r)){const y=r.stack;r.stack=[],p=r.enter("autolink");let g=c.move("<");return g+=c.move(r.containerPhrasing(t,{before:g,after:">",...c.current()})),g+=c.move(">"),p(),r.stack=y,g}p=r.enter("link"),h=r.enter("label");let m=c.move("[");return m+=c.move(r.containerPhrasing(t,{before:m,after:"](",...c.current()})),m+=c.move("]("),h(),!t.url&&t.title||/[\0- \u007F]/.test(t.url)?(h=r.enter("destinationLiteral"),m+=c.move("<"),m+=c.move(r.safe(t.url,{before:m,after:">",...c.current()})),m+=c.move(">")):(h=r.enter("destinationRaw"),m+=c.move(r.safe(t.url,{before:m,after:t.title?" ":")",...c.current()}))),h(),t.title&&(h=r.enter(`title${a}`),m+=c.move(" "+s),m+=c.move(r.safe(t.title,{before:m,after:s,...c.current()})),m+=c.move(s),h()),m+=c.move(")"),p(),m}function Wk(t,i,r){return Kc(t,r)?"<":"["}Xc.peek=qk;function Xc(t,i,r,o){const s=t.referenceType,a=r.enter("linkReference");let c=r.enter("label");const p=r.createTracker(o);let h=p.move("[");const m=r.containerPhrasing(t,{before:h,after:"]",...p.current()});h+=p.move(m+"]["),c();const y=r.stack;r.stack=[],c=r.enter("reference");const g=r.safe(r.associationId(t),{before:h,after:"]",...p.current()});return c(),r.stack=y,a(),s==="full"||!m||m!==g?h+=p.move(g+"]"):s==="shortcut"?h=h.slice(0,-1):h+=p.move("]"),h}function qk(){return"["}function cu(t){const i=t.options.bullet||"*";if(i!=="*"&&i!=="+"&&i!=="-")throw new Error("Cannot serialize items with `"+i+"` for `options.bullet`, expected `*`, `+`, or `-`");return i}function Qk(t){const i=cu(t),r=t.options.bulletOther;if(!r)return i==="*"?"-":"*";if(r!=="*"&&r!=="+"&&r!=="-")throw new Error("Cannot serialize items with `"+r+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(r===i)throw new Error("Expected `bullet` (`"+i+"`) and `bulletOther` (`"+r+"`) to be different");return r}function Yk(t){const i=t.options.bulletOrdered||".";if(i!=="."&&i!==")")throw new Error("Cannot serialize items with `"+i+"` for `options.bulletOrdered`, expected `.` or `)`");return i}function Jc(t){const i=t.options.rule||"*";if(i!=="*"&&i!=="-"&&i!=="_")throw new Error("Cannot serialize rules with `"+i+"` for `options.rule`, expected `*`, `-`, or `_`");return i}function Kk(t,i,r,o){const s=r.enter("list"),a=r.bulletCurrent;let c=t.ordered?Yk(r):cu(r);const p=t.ordered?c==="."?")":".":Qk(r);let h=i&&r.bulletLastUsed?c===r.bulletLastUsed:!1;if(!t.ordered){const y=t.children?t.children[0]:void 0;if((c==="*"||c==="-")&&y&&(!y.children||!y.children[0])&&r.stack[r.stack.length-1]==="list"&&r.stack[r.stack.length-2]==="listItem"&&r.stack[r.stack.length-3]==="list"&&r.stack[r.stack.length-4]==="listItem"&&r.indexStack[r.indexStack.length-1]===0&&r.indexStack[r.indexStack.length-2]===0&&r.indexStack[r.indexStack.length-3]===0&&(h=!0),Jc(r)===c&&y){let g=-1;for(;++g<t.children.length;){const x=t.children[g];if(x&&x.type==="listItem"&&x.children&&x.children[0]&&x.children[0].type==="thematicBreak"){h=!0;break}}}}h&&(c=p),r.bulletCurrent=c;const m=r.containerFlow(t,o);return r.bulletLastUsed=c,r.bulletCurrent=a,s(),m}function Gk(t){const i=t.options.listItemIndent||"one";if(i!=="tab"&&i!=="one"&&i!=="mixed")throw new Error("Cannot serialize items with `"+i+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return i}function Xk(t,i,r,o){const s=Gk(r);let a=r.bulletCurrent||cu(r);i&&i.type==="list"&&i.ordered&&(a=(typeof i.start=="number"&&i.start>-1?i.start:1)+(r.options.incrementListMarker===!1?0:i.children.indexOf(t))+a);let c=a.length+1;(s==="tab"||s==="mixed"&&(i&&i.type==="list"&&i.spread||t.spread))&&(c=Math.ceil(c/4)*4);const p=r.createTracker(o);p.move(a+" ".repeat(c-a.length)),p.shift(c);const h=r.enter("listItem"),m=r.indentLines(r.containerFlow(t,p.current()),y);return h(),m;function y(g,x,v){return x?(v?"":" ".repeat(c))+g:(v?a:a+" ".repeat(c-a.length))+g}}function Jk(t,i,r,o){const s=r.enter("paragraph"),a=r.enter("phrasing"),c=r.containerPhrasing(t,o);return a(),s(),c}const Zk=Xi(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function ev(t,i,r,o){return(t.children.some(function(c){return Zk(c)})?r.containerPhrasing:r.containerFlow).call(r,t,o)}function tv(t){const i=t.options.strong||"*";if(i!=="*"&&i!=="_")throw new Error("Cannot serialize strong with `"+i+"` for `options.strong`, expected `*`, or `_`");return i}Zc.peek=nv;function Zc(t,i,r,o){const s=tv(r),a=r.enter("strong"),c=r.createTracker(o),p=c.move(s+s);let h=c.move(r.containerPhrasing(t,{after:s,before:p,...c.current()}));const m=h.charCodeAt(0),y=el(o.before.charCodeAt(o.before.length-1),m,s);y.inside&&(h=Xr(m)+h.slice(1));const g=h.charCodeAt(h.length-1),x=el(o.after.charCodeAt(0),g,s);x.inside&&(h=h.slice(0,-1)+Xr(g));const v=c.move(s+s);return a(),r.attentionEncodeSurroundingInfo={after:x.outside,before:y.outside},p+h+v}function nv(t,i,r){return r.options.strong||"*"}function rv(t,i,r,o){return r.safe(t.value,o)}function iv(t){const i=t.options.ruleRepetition||3;if(i<3)throw new Error("Cannot serialize rules with repetition `"+i+"` for `options.ruleRepetition`, expected `3` or more");return i}function lv(t,i,r){const o=(Jc(r)+(r.options.ruleSpaces?" ":"")).repeat(iv(r));return r.options.ruleSpaces?o.slice(0,-1):o}const ef={blockquote:Pk,break:Vc,code:Dk,definition:Ok,emphasis:Hc,hardBreak:Vc,heading:Bk,html:Wc,image:qc,imageReference:Qc,inlineCode:Yc,link:Gc,linkReference:Xc,list:Kk,listItem:Xk,paragraph:Jk,root:ev,strong:Zc,text:rv,thematicBreak:lv};function ov(){return{enter:{table:uv,tableData:tf,tableHeader:tf,tableRow:av},exit:{codeText:cv,table:sv,tableData:fu,tableHeader:fu,tableRow:fu}}}function uv(t){const i=t._align;this.enter({type:"table",align:i.map(function(r){return r==="none"?null:r}),children:[]},t),this.data.inTable=!0}function sv(t){this.exit(t),this.data.inTable=void 0}function av(t){this.enter({type:"tableRow",children:[]},t)}function fu(t){this.exit(t)}function tf(t){this.enter({type:"tableCell",children:[]},t)}function cv(t){let i=this.resume();this.data.inTable&&(i=i.replace(/\\([\\|])/g,fv));const r=this.stack[this.stack.length-1];r.type,r.value=i,this.exit(t)}function fv(t,i){return i==="|"?i:t}function pv(t){const i=t||{},r=i.tableCellPadding,o=i.tablePipeAlign,s=i.stringLength,a=r?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
45
+ `,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:x,table:c,tableCell:h,tableRow:p}};function c(v,_,D,b){return m(y(v,D,b),v.align)}function p(v,_,D,b){const R=g(v,D,b),U=m([R]);return U.slice(0,U.indexOf(`
46
+ `))}function h(v,_,D,b){const R=D.enter("tableCell"),U=D.enter("phrasing"),M=D.containerPhrasing(v,{...b,before:a,after:a});return U(),R(),M}function m(v,_){return _k(v,{align:_,alignDelimiters:o,padding:r,stringLength:s})}function y(v,_,D){const b=v.children;let R=-1;const U=[],M=_.enter("table");for(;++R<b.length;)U[R]=g(b[R],_,D);return M(),U}function g(v,_,D){const b=v.children;let R=-1;const U=[],M=_.enter("tableRow");for(;++R<b.length;)U[R]=h(b[R],v,_,D);return M(),U}function x(v,_,D){let b=ef.inlineCode(v,_,D);return D.stack.includes("tableCell")&&(b=b.replace(/\|/g,"\\$&")),b}}function dv(){return{exit:{taskListCheckValueChecked:nf,taskListCheckValueUnchecked:nf,paragraph:mv}}}function hv(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:gv}}}function nf(t){const i=this.stack[this.stack.length-2];i.type,i.checked=t.type==="taskListCheckValueChecked"}function mv(t){const i=this.stack[this.stack.length-2];if(i&&i.type==="listItem"&&typeof i.checked=="boolean"){const r=this.stack[this.stack.length-1];r.type;const o=r.children[0];if(o&&o.type==="text"){const s=i.children;let a=-1,c;for(;++a<s.length;){const p=s[a];if(p.type==="paragraph"){c=p;break}}c===r&&(o.value=o.value.slice(1),o.value.length===0?r.children.shift():r.position&&o.position&&typeof o.position.start.offset=="number"&&(o.position.start.column++,o.position.start.offset++,r.position.start=Object.assign({},o.position.start)))}}this.exit(t)}function gv(t,i,r,o){const s=t.children[0],a=typeof t.checked=="boolean"&&s&&s.type==="paragraph",c="["+(t.checked?"x":" ")+"] ",p=r.createTracker(o);a&&p.move(c);let h=ef.listItem(t,i,r,{...o,...p.current()});return a&&(h=h.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,m)),h;function m(y){return y+c}}function yv(){return[K1(),gk(),xk(),ov(),dv()]}function kv(t){return{extensions:[G1(),yk(t),wk(),pv(t),hv()]}}const vv={tokenize:Tv,partial:!0},rf={tokenize:_v,partial:!0},lf={tokenize:Iv,partial:!0},of={tokenize:Pv,partial:!0},xv={tokenize:Av,partial:!0},uf={name:"wwwAutolink",tokenize:Ev,previous:af},sf={name:"protocolAutolink",tokenize:Cv,previous:cf},en={name:"emailAutolink",tokenize:Sv,previous:ff},qt={};function wv(){return{text:qt}}let Vn=48;for(;Vn<123;)qt[Vn]=en,Vn++,Vn===58?Vn=65:Vn===91&&(Vn=97);qt[43]=en,qt[45]=en,qt[46]=en,qt[95]=en,qt[72]=[en,sf],qt[104]=[en,sf],qt[87]=[en,uf],qt[119]=[en,uf];function Sv(t,i,r){const o=this;let s,a;return c;function c(g){return!pu(g)||!ff.call(o,o.previous)||du(o.events)?r(g):(t.enter("literalAutolink"),t.enter("literalAutolinkEmail"),p(g))}function p(g){return pu(g)?(t.consume(g),p):g===64?(t.consume(g),h):r(g)}function h(g){return g===46?t.check(xv,y,m)(g):g===45||g===95||lt(g)?(a=!0,t.consume(g),h):y(g)}function m(g){return t.consume(g),s=!0,h}function y(g){return a&&s&&ct(o.previous)?(t.exit("literalAutolinkEmail"),t.exit("literalAutolink"),i(g)):r(g)}}function Ev(t,i,r){const o=this;return s;function s(c){return c!==87&&c!==119||!af.call(o,o.previous)||du(o.events)?r(c):(t.enter("literalAutolink"),t.enter("literalAutolinkWww"),t.check(vv,t.attempt(rf,t.attempt(lf,a),r),r)(c))}function a(c){return t.exit("literalAutolinkWww"),t.exit("literalAutolink"),i(c)}}function Cv(t,i,r){const o=this;let s="",a=!1;return c;function c(g){return(g===72||g===104)&&cf.call(o,o.previous)&&!du(o.events)?(t.enter("literalAutolink"),t.enter("literalAutolinkHttp"),s+=String.fromCodePoint(g),t.consume(g),p):r(g)}function p(g){if(ct(g)&&s.length<5)return s+=String.fromCodePoint(g),t.consume(g),p;if(g===58){const x=s.toLowerCase();if(x==="http"||x==="https")return t.consume(g),h}return r(g)}function h(g){return g===47?(t.consume(g),a?m:(a=!0,h)):r(g)}function m(g){return g===null||Vi(g)||De(g)||Un(g)||Hi(g)?r(g):t.attempt(rf,t.attempt(lf,y),r)(g)}function y(g){return t.exit("literalAutolinkHttp"),t.exit("literalAutolink"),i(g)}}function Tv(t,i,r){let o=0;return s;function s(c){return(c===87||c===119)&&o<3?(o++,t.consume(c),s):c===46&&o===3?(t.consume(c),a):r(c)}function a(c){return c===null?r(c):i(c)}}function _v(t,i,r){let o,s,a;return c;function c(m){return m===46||m===95?t.check(of,h,p)(m):m===null||De(m)||Un(m)||m!==45&&Hi(m)?h(m):(a=!0,t.consume(m),c)}function p(m){return m===95?o=!0:(s=o,o=void 0),t.consume(m),c}function h(m){return s||o||!a?r(m):i(m)}}function Iv(t,i){let r=0,o=0;return s;function s(c){return c===40?(r++,t.consume(c),s):c===41&&o<r?a(c):c===33||c===34||c===38||c===39||c===41||c===42||c===44||c===46||c===58||c===59||c===60||c===63||c===93||c===95||c===126?t.check(of,i,a)(c):c===null||De(c)||Un(c)?i(c):(t.consume(c),s)}function a(c){return c===41&&o++,t.consume(c),s}}function Pv(t,i,r){return o;function o(p){return p===33||p===34||p===39||p===41||p===42||p===44||p===46||p===58||p===59||p===63||p===95||p===126?(t.consume(p),o):p===38?(t.consume(p),a):p===93?(t.consume(p),s):p===60||p===null||De(p)||Un(p)?i(p):r(p)}function s(p){return p===null||p===40||p===91||De(p)||Un(p)?i(p):o(p)}function a(p){return ct(p)?c(p):r(p)}function c(p){return p===59?(t.consume(p),o):ct(p)?(t.consume(p),c):r(p)}}function Av(t,i,r){return o;function o(a){return t.consume(a),s}function s(a){return lt(a)?r(a):i(a)}}function af(t){return t===null||t===40||t===42||t===95||t===91||t===93||t===126||De(t)}function cf(t){return!ct(t)}function ff(t){return!(t===47||pu(t))}function pu(t){return t===43||t===45||t===46||t===95||lt(t)}function du(t){let i=t.length,r=!1;for(;i--;){const o=t[i][1];if((o.type==="labelLink"||o.type==="labelImage")&&!o._balanced){r=!0;break}if(o._gfmAutolinkLiteralWalkedInto){r=!1;break}}return t.length>0&&!r&&(t[t.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),r}const Nv={tokenize:Fv,partial:!0};function Rv(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:bv,continuation:{tokenize:Ov},exit:Mv}},text:{91:{name:"gfmFootnoteCall",tokenize:Dv},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:zv,resolveTo:Lv}}}}function zv(t,i,r){const o=this;let s=o.events.length;const a=o.parser.gfmFootnotes||(o.parser.gfmFootnotes=[]);let c;for(;s--;){const h=o.events[s][1];if(h.type==="labelImage"){c=h;break}if(h.type==="gfmFootnoteCall"||h.type==="labelLink"||h.type==="label"||h.type==="image"||h.type==="link")break}return p;function p(h){if(!c||!c._balanced)return r(h);const m=Mt(o.sliceSerialize({start:c.end,end:o.now()}));return m.codePointAt(0)!==94||!a.includes(m.slice(1))?r(h):(t.enter("gfmFootnoteCallLabelMarker"),t.consume(h),t.exit("gfmFootnoteCallLabelMarker"),i(h))}}function Lv(t,i){let r=t.length;for(;r--;)if(t[r][1].type==="labelImage"&&t[r][0]==="enter"){t[r][1];break}t[r+1][1].type="data",t[r+3][1].type="gfmFootnoteCallLabelMarker";const o={type:"gfmFootnoteCall",start:Object.assign({},t[r+3][1].start),end:Object.assign({},t[t.length-1][1].end)},s={type:"gfmFootnoteCallMarker",start:Object.assign({},t[r+3][1].end),end:Object.assign({},t[r+3][1].end)};s.end.column++,s.end.offset++,s.end._bufferIndex++;const a={type:"gfmFootnoteCallString",start:Object.assign({},s.end),end:Object.assign({},t[t.length-1][1].start)},c={type:"chunkString",contentType:"string",start:Object.assign({},a.start),end:Object.assign({},a.end)},p=[t[r+1],t[r+2],["enter",o,i],t[r+3],t[r+4],["enter",s,i],["exit",s,i],["enter",a,i],["enter",c,i],["exit",c,i],["exit",a,i],t[t.length-2],t[t.length-1],["exit",o,i]];return t.splice(r,t.length-r+1,...p),t}function Dv(t,i,r){const o=this,s=o.parser.gfmFootnotes||(o.parser.gfmFootnotes=[]);let a=0,c;return p;function p(g){return t.enter("gfmFootnoteCall"),t.enter("gfmFootnoteCallLabelMarker"),t.consume(g),t.exit("gfmFootnoteCallLabelMarker"),h}function h(g){return g!==94?r(g):(t.enter("gfmFootnoteCallMarker"),t.consume(g),t.exit("gfmFootnoteCallMarker"),t.enter("gfmFootnoteCallString"),t.enter("chunkString").contentType="string",m)}function m(g){if(a>999||g===93&&!c||g===null||g===91||De(g))return r(g);if(g===93){t.exit("chunkString");const x=t.exit("gfmFootnoteCallString");return s.includes(Mt(o.sliceSerialize(x)))?(t.enter("gfmFootnoteCallLabelMarker"),t.consume(g),t.exit("gfmFootnoteCallLabelMarker"),t.exit("gfmFootnoteCall"),i):r(g)}return De(g)||(c=!0),a++,t.consume(g),g===92?y:m}function y(g){return g===91||g===92||g===93?(t.consume(g),a++,m):m(g)}}function bv(t,i,r){const o=this,s=o.parser.gfmFootnotes||(o.parser.gfmFootnotes=[]);let a,c=0,p;return h;function h(_){return t.enter("gfmFootnoteDefinition")._container=!0,t.enter("gfmFootnoteDefinitionLabel"),t.enter("gfmFootnoteDefinitionLabelMarker"),t.consume(_),t.exit("gfmFootnoteDefinitionLabelMarker"),m}function m(_){return _===94?(t.enter("gfmFootnoteDefinitionMarker"),t.consume(_),t.exit("gfmFootnoteDefinitionMarker"),t.enter("gfmFootnoteDefinitionLabelString"),t.enter("chunkString").contentType="string",y):r(_)}function y(_){if(c>999||_===93&&!p||_===null||_===91||De(_))return r(_);if(_===93){t.exit("chunkString");const D=t.exit("gfmFootnoteDefinitionLabelString");return a=Mt(o.sliceSerialize(D)),t.enter("gfmFootnoteDefinitionLabelMarker"),t.consume(_),t.exit("gfmFootnoteDefinitionLabelMarker"),t.exit("gfmFootnoteDefinitionLabel"),x}return De(_)||(p=!0),c++,t.consume(_),_===92?g:y}function g(_){return _===91||_===92||_===93?(t.consume(_),c++,y):y(_)}function x(_){return _===58?(t.enter("definitionMarker"),t.consume(_),t.exit("definitionMarker"),s.includes(a)||s.push(a),_e(t,v,"gfmFootnoteDefinitionWhitespace")):r(_)}function v(_){return i(_)}}function Ov(t,i,r){return t.check(Hr,i,t.attempt(Nv,i,r))}function Mv(t){t.exit("gfmFootnoteDefinition")}function Fv(t,i,r){const o=this;return _e(t,s,"gfmFootnoteDefinitionIndent",5);function s(a){const c=o.events[o.events.length-1];return c&&c[1].type==="gfmFootnoteDefinitionIndent"&&c[2].sliceSerialize(c[1],!0).length===4?i(a):r(a)}}function jv(t){let r=(t||{}).singleTilde;const o={name:"strikethrough",tokenize:a,resolveAll:s};return r==null&&(r=!0),{text:{126:o},insideSpan:{null:[o]},attentionMarkers:{null:[126]}};function s(c,p){let h=-1;for(;++h<c.length;)if(c[h][0]==="enter"&&c[h][1].type==="strikethroughSequenceTemporary"&&c[h][1]._close){let m=h;for(;m--;)if(c[m][0]==="exit"&&c[m][1].type==="strikethroughSequenceTemporary"&&c[m][1]._open&&c[h][1].end.offset-c[h][1].start.offset===c[m][1].end.offset-c[m][1].start.offset){c[h][1].type="strikethroughSequence",c[m][1].type="strikethroughSequence";const y={type:"strikethrough",start:Object.assign({},c[m][1].start),end:Object.assign({},c[h][1].end)},g={type:"strikethroughText",start:Object.assign({},c[m][1].end),end:Object.assign({},c[h][1].start)},x=[["enter",y,p],["enter",c[m][1],p],["exit",c[m][1],p],["enter",g,p]],v=p.parser.constructs.insideSpan.null;v&&Et(x,x.length,0,Wi(v,c.slice(m+1,h),p)),Et(x,x.length,0,[["exit",g,p],["enter",c[h][1],p],["exit",c[h][1],p],["exit",y,p]]),Et(c,m-1,h-m+3,x),h=m+x.length-2;break}}for(h=-1;++h<c.length;)c[h][1].type==="strikethroughSequenceTemporary"&&(c[h][1].type="data");return c}function a(c,p,h){const m=this.previous,y=this.events;let g=0;return x;function x(_){return m===126&&y[y.length-1][1].type!=="characterEscape"?h(_):(c.enter("strikethroughSequenceTemporary"),v(_))}function v(_){const D=sr(m);if(_===126)return g>1?h(_):(c.consume(_),g++,v);if(g<2&&!r)return h(_);const b=c.exit("strikethroughSequenceTemporary"),R=sr(_);return b._open=!R||R===2&&!!D,b._close=!D||D===2&&!!R,p(_)}}}class Bv{constructor(){this.map=[]}add(i,r,o){Uv(this,i,r,o)}consume(i){if(this.map.sort(function(a,c){return a[0]-c[0]}),this.map.length===0)return;let r=this.map.length;const o=[];for(;r>0;)r-=1,o.push(i.slice(this.map[r][0]+this.map[r][1]),this.map[r][2]),i.length=this.map[r][0];o.push(i.slice()),i.length=0;let s=o.pop();for(;s;){for(const a of s)i.push(a);s=o.pop()}this.map.length=0}}function Uv(t,i,r,o){let s=0;if(!(r===0&&o.length===0)){for(;s<t.map.length;){if(t.map[s][0]===i){t.map[s][1]+=r,t.map[s][2].push(...o);return}s+=1}t.map.push([i,r,o])}}function $v(t,i){let r=!1;const o=[];for(;i<t.length;){const s=t[i];if(r){if(s[0]==="enter")s[1].type==="tableContent"&&o.push(t[i+1][1].type==="tableDelimiterMarker"?"left":"none");else if(s[1].type==="tableContent"){if(t[i-1][1].type==="tableDelimiterMarker"){const a=o.length-1;o[a]=o[a]==="left"?"center":"right"}}else if(s[1].type==="tableDelimiterRow")break}else s[0]==="enter"&&s[1].type==="tableDelimiterRow"&&(r=!0);i+=1}return o}function Vv(){return{flow:{null:{name:"table",tokenize:Hv,resolveAll:Wv}}}}function Hv(t,i,r){const o=this;let s=0,a=0,c;return p;function p(P){let W=o.events.length-1;for(;W>-1;){const Y=o.events[W][1].type;if(Y==="lineEnding"||Y==="linePrefix")W--;else break}const G=W>-1?o.events[W][1].type:null,J=G==="tableHead"||G==="tableRow"?L:h;return J===L&&o.parser.lazy[o.now().line]?r(P):J(P)}function h(P){return t.enter("tableHead"),t.enter("tableRow"),m(P)}function m(P){return P===124||(c=!0,a+=1),y(P)}function y(P){return P===null?r(P):ue(P)?a>1?(a=0,o.interrupt=!0,t.exit("tableRow"),t.enter("lineEnding"),t.consume(P),t.exit("lineEnding"),v):r(P):Ce(P)?_e(t,y,"whitespace")(P):(a+=1,c&&(c=!1,s+=1),P===124?(t.enter("tableCellDivider"),t.consume(P),t.exit("tableCellDivider"),c=!0,y):(t.enter("data"),g(P)))}function g(P){return P===null||P===124||De(P)?(t.exit("data"),y(P)):(t.consume(P),P===92?x:g)}function x(P){return P===92||P===124?(t.consume(P),g):g(P)}function v(P){return o.interrupt=!1,o.parser.lazy[o.now().line]?r(P):(t.enter("tableDelimiterRow"),c=!1,Ce(P)?_e(t,_,"linePrefix",o.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(P):_(P))}function _(P){return P===45||P===58?b(P):P===124?(c=!0,t.enter("tableCellDivider"),t.consume(P),t.exit("tableCellDivider"),D):le(P)}function D(P){return Ce(P)?_e(t,b,"whitespace")(P):b(P)}function b(P){return P===58?(a+=1,c=!0,t.enter("tableDelimiterMarker"),t.consume(P),t.exit("tableDelimiterMarker"),R):P===45?(a+=1,R(P)):P===null||ue(P)?ne(P):le(P)}function R(P){return P===45?(t.enter("tableDelimiterFiller"),U(P)):le(P)}function U(P){return P===45?(t.consume(P),U):P===58?(c=!0,t.exit("tableDelimiterFiller"),t.enter("tableDelimiterMarker"),t.consume(P),t.exit("tableDelimiterMarker"),M):(t.exit("tableDelimiterFiller"),M(P))}function M(P){return Ce(P)?_e(t,ne,"whitespace")(P):ne(P)}function ne(P){return P===124?_(P):P===null||ue(P)?!c||s!==a?le(P):(t.exit("tableDelimiterRow"),t.exit("tableHead"),i(P)):le(P)}function le(P){return r(P)}function L(P){return t.enter("tableRow"),oe(P)}function oe(P){return P===124?(t.enter("tableCellDivider"),t.consume(P),t.exit("tableCellDivider"),oe):P===null||ue(P)?(t.exit("tableRow"),i(P)):Ce(P)?_e(t,oe,"whitespace")(P):(t.enter("data"),he(P))}function he(P){return P===null||P===124||De(P)?(t.exit("data"),oe(P)):(t.consume(P),P===92?ke:he)}function ke(P){return P===92||P===124?(t.consume(P),he):he(P)}}function Wv(t,i){let r=-1,o=!0,s=0,a=[0,0,0,0],c=[0,0,0,0],p=!1,h=0,m,y,g;const x=new Bv;for(;++r<t.length;){const v=t[r],_=v[1];v[0]==="enter"?_.type==="tableHead"?(p=!1,h!==0&&(pf(x,i,h,m,y),y=void 0,h=0),m={type:"table",start:Object.assign({},_.start),end:Object.assign({},_.end)},x.add(r,0,[["enter",m,i]])):_.type==="tableRow"||_.type==="tableDelimiterRow"?(o=!0,g=void 0,a=[0,0,0,0],c=[0,r+1,0,0],p&&(p=!1,y={type:"tableBody",start:Object.assign({},_.start),end:Object.assign({},_.end)},x.add(r,0,[["enter",y,i]])),s=_.type==="tableDelimiterRow"?2:y?3:1):s&&(_.type==="data"||_.type==="tableDelimiterMarker"||_.type==="tableDelimiterFiller")?(o=!1,c[2]===0&&(a[1]!==0&&(c[0]=c[1],g=tl(x,i,a,s,void 0,g),a=[0,0,0,0]),c[2]=r)):_.type==="tableCellDivider"&&(o?o=!1:(a[1]!==0&&(c[0]=c[1],g=tl(x,i,a,s,void 0,g)),a=c,c=[a[1],r,0,0])):_.type==="tableHead"?(p=!0,h=r):_.type==="tableRow"||_.type==="tableDelimiterRow"?(h=r,a[1]!==0?(c[0]=c[1],g=tl(x,i,a,s,r,g)):c[1]!==0&&(g=tl(x,i,c,s,r,g)),s=0):s&&(_.type==="data"||_.type==="tableDelimiterMarker"||_.type==="tableDelimiterFiller")&&(c[3]=r)}for(h!==0&&pf(x,i,h,m,y),x.consume(i.events),r=-1;++r<i.events.length;){const v=i.events[r];v[0]==="enter"&&v[1].type==="table"&&(v[1]._align=$v(i.events,r))}return t}function tl(t,i,r,o,s,a){const c=o===1?"tableHeader":o===2?"tableDelimiter":"tableData",p="tableContent";r[0]!==0&&(a.end=Object.assign({},ar(i.events,r[0])),t.add(r[0],0,[["exit",a,i]]));const h=ar(i.events,r[1]);if(a={type:c,start:Object.assign({},h),end:Object.assign({},h)},t.add(r[1],0,[["enter",a,i]]),r[2]!==0){const m=ar(i.events,r[2]),y=ar(i.events,r[3]),g={type:p,start:Object.assign({},m),end:Object.assign({},y)};if(t.add(r[2],0,[["enter",g,i]]),o!==2){const x=i.events[r[2]],v=i.events[r[3]];if(x[1].end=Object.assign({},v[1].end),x[1].type="chunkText",x[1].contentType="text",r[3]>r[2]+1){const _=r[2]+1,D=r[3]-r[2]-1;t.add(_,D,[])}}t.add(r[3]+1,0,[["exit",g,i]])}return s!==void 0&&(a.end=Object.assign({},ar(i.events,s)),t.add(s,0,[["exit",a,i]]),a=void 0),a}function pf(t,i,r,o,s){const a=[],c=ar(i.events,r);s&&(s.end=Object.assign({},c),a.push(["exit",s,i])),o.end=Object.assign({},c),a.push(["exit",o,i]),t.add(r+1,0,a)}function ar(t,i){const r=t[i],o=r[0]==="enter"?"start":"end";return r[1][o]}const qv={name:"tasklistCheck",tokenize:Yv};function Qv(){return{text:{91:qv}}}function Yv(t,i,r){const o=this;return s;function s(h){return o.previous!==null||!o._gfmTasklistFirstContentOfListItem?r(h):(t.enter("taskListCheck"),t.enter("taskListCheckMarker"),t.consume(h),t.exit("taskListCheckMarker"),a)}function a(h){return De(h)?(t.enter("taskListCheckValueUnchecked"),t.consume(h),t.exit("taskListCheckValueUnchecked"),c):h===88||h===120?(t.enter("taskListCheckValueChecked"),t.consume(h),t.exit("taskListCheckValueChecked"),c):r(h)}function c(h){return h===93?(t.enter("taskListCheckMarker"),t.consume(h),t.exit("taskListCheckMarker"),t.exit("taskListCheck"),p):r(h)}function p(h){return ue(h)?i(h):Ce(h)?t.check({tokenize:Kv},i,r)(h):r(h)}}function Kv(t,i,r){return _e(t,o,"whitespace");function o(s){return s===null?r(s):i(s)}}function Gv(t){return Wa([wv(),Rv(),jv(t),Vv(),Qv()])}const Xv={};function Jv(t){const i=this,r=t||Xv,o=i.data(),s=o.micromarkExtensions||(o.micromarkExtensions=[]),a=o.fromMarkdownExtensions||(o.fromMarkdownExtensions=[]),c=o.toMarkdownExtensions||(o.toMarkdownExtensions=[]);s.push(Gv(r)),a.push(yv()),c.push(kv(r))}const Hn=["ariaDescribedBy","ariaLabel","ariaLabelledBy"],df={ancestors:{tbody:["table"],td:["table"],th:["table"],thead:["table"],tfoot:["table"],tr:["table"]},attributes:{a:[...Hn,"dataFootnoteBackref","dataFootnoteRef",["className","data-footnote-backref"],"href"],blockquote:["cite"],code:[["className",/^language-./]],del:["cite"],div:["itemScope","itemType"],dl:[...Hn],h2:[["className","sr-only"]],img:[...Hn,"longDesc","src"],input:[["disabled",!0],["type","checkbox"]],ins:["cite"],li:[["className","task-list-item"]],ol:[...Hn,["className","contains-task-list"]],q:["cite"],section:["dataFootnotes",["className","footnotes"]],source:["srcSet"],summary:[...Hn],table:[...Hn],ul:[...Hn,["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"]},gn={}.hasOwnProperty;function Zv(t,i){let r={type:"root",children:[]};const o={schema:i?{...df,...i}:df,stack:[]},s=hf(o,t);return s&&(Array.isArray(s)?s.length===1?r=s[0]:r.children=s:r=s),r}function hf(t,i){if(i&&typeof i=="object"){const r=i;switch(typeof r.type=="string"?r.type:""){case"comment":return ex(t,r);case"doctype":return tx(t,r);case"element":return nx(t,r);case"root":return rx(t,r);case"text":return ix(t,r)}}}function ex(t,i){if(t.schema.allowComments){const r=typeof i.value=="string"?i.value:"",o=r.indexOf("-->"),a={type:"comment",value:o<0?r:r.slice(0,o)};return Jr(a,i),a}}function tx(t,i){if(t.schema.allowDoctypes){const r={type:"doctype"};return Jr(r,i),r}}function nx(t,i){const r=typeof i.tagName=="string"?i.tagName:"";t.stack.push(r);const o=mf(t,i.children),s=lx(t,i.properties);t.stack.pop();let a=!1;if(r&&r!=="*"&&(!t.schema.tagNames||t.schema.tagNames.includes(r))&&(a=!0,t.schema.ancestors&&gn.call(t.schema.ancestors,r))){const p=t.schema.ancestors[r];let h=-1;for(a=!1;++h<p.length;)t.stack.includes(p[h])&&(a=!0)}if(!a)return t.schema.strip&&!t.schema.strip.includes(r)?o:void 0;const c={type:"element",tagName:r,properties:s,children:o};return Jr(c,i),c}function rx(t,i){const o={type:"root",children:mf(t,i.children)};return Jr(o,i),o}function ix(t,i){const o={type:"text",value:typeof i.value=="string"?i.value:""};return Jr(o,i),o}function mf(t,i){const r=[];if(Array.isArray(i)){const o=i;let s=-1;for(;++s<o.length;){const a=hf(t,o[s]);a&&(Array.isArray(a)?r.push(...a):r.push(a))}}return r}function lx(t,i){const r=t.stack[t.stack.length-1],o=t.schema.attributes,s=t.schema.required,a=o&&gn.call(o,r)?o[r]:void 0,c=o&&gn.call(o,"*")?o["*"]:void 0,p=i&&typeof i=="object"?i:{},h={};let m;for(m in p)if(gn.call(p,m)){const y=p[m];let g=gf(t,kf(a,m),m,y);g==null&&(g=gf(t,kf(c,m),m,y)),g!=null&&(h[m]=g)}if(s&&gn.call(s,r)){const y=s[r];for(m in y)gn.call(y,m)&&!gn.call(h,m)&&(h[m]=y[m])}return h}function gf(t,i,r,o){return i?Array.isArray(o)?ox(t,i,r,o):yf(t,i,r,o):void 0}function ox(t,i,r,o){let s=-1;const a=[];for(;++s<o.length;){const c=yf(t,i,r,o[s]);(typeof c=="number"||typeof c=="string")&&a.push(c)}return a}function yf(t,i,r,o){if(!(typeof o!="boolean"&&typeof o!="number"&&typeof o!="string")&&ux(t,r,o)){if(typeof i=="object"&&i.length>1){let s=!1,a=0;for(;++a<i.length;){const c=i[a];if(c&&typeof c=="object"&&"flags"in c){if(c.test(String(o))){s=!0;break}}else if(c===o){s=!0;break}}if(!s)return}return t.schema.clobber&&t.schema.clobberPrefix&&t.schema.clobber.includes(r)?t.schema.clobberPrefix+o:o}}function ux(t,i,r){const o=t.schema.protocols&&gn.call(t.schema.protocols,i)?t.schema.protocols[i]:void 0;if(!o||o.length===0)return!0;const s=String(r),a=s.indexOf(":"),c=s.indexOf("?"),p=s.indexOf("#"),h=s.indexOf("/");if(a<0||h>-1&&a>h||c>-1&&a>c||p>-1&&a>p)return!0;let m=-1;for(;++m<o.length;){const y=o[m];if(a===y.length&&s.slice(0,y.length)===y)return!0}return!1}function Jr(t,i){const r=Da(i);i.data&&(t.data=Kr(i.data)),r&&(t.position=r)}function kf(t,i){let r,o=-1;if(t)for(;++o<t.length;){const s=t[o],a=typeof s=="string"?s:s[0];if(a===i)return s;a==="data*"&&(r=s)}if(i.length>4&&i.slice(0,4).toLowerCase()==="data")return r}function sx(t){return function(i){return Zv(i,t)}}function vf({text:t}){return ve.jsx("div",{className:"md",children:ve.jsx(j1,{remarkPlugins:[Jv],rehypePlugins:[sx],children:t})})}function ax(){const{state:t}=ca(),i=t.streamingText.length>0,r=t.agentTyping&&!i;return t.error||r||i||t.answer!==null||t.lastQuestion!==null?ve.jsxs("div",{className:"slot",children:[t.lastQuestion!==null&&ve.jsx("p",{className:"query",children:t.lastQuestion}),t.error&&ve.jsx("div",{className:"answer",role:"status",children:ve.jsx("p",{className:"error",children:t.error})}),r&&ve.jsx("div",{className:"answer",role:"status","aria-busy":"true",children:ve.jsxs("div",{className:"typing","aria-label":"Agent is thinking",children:[ve.jsx("span",{className:"dot"}),ve.jsx("span",{className:"dot"}),ve.jsx("span",{className:"dot"})]})}),i&&ve.jsx("div",{className:"answer",role:"log","aria-live":"polite","aria-busy":"true",children:ve.jsx(vf,{text:t.streamingText})}),!r&&!i&&!t.error&&t.answer!==null&&ve.jsx("div",{className:"answer",role:"log","aria-live":"polite",children:ve.jsx(vf,{text:t.answer})})]}):null}function xf({config:t,hostElement:i,conversationIdRef:r}){return ve.jsx(bh,{config:t,hostElement:i,conversationIdRef:r,children:ve.jsxs("div",{className:"widget",children:[ve.jsxs("header",{className:"widget-header",children:[ve.jsxs("div",{className:"widget-header-brand",children:[ve.jsx("span",{className:"header-icon-wrap",children:ve.jsx(Oh,{})}),ve.jsx("h2",{className:"widget-header-title",children:"Ask Assistant"})]}),ve.jsx("span",{className:"widget-badge",children:"New"})]}),ve.jsx(Fh,{}),ve.jsx(ax,{})]})})}const cx="inline-agent-widget: missing required config. Provide scrt2-url, org-id, and es-developer-name.";function fx(t){return t.scrt2Url&&t.orgId&&t.esDeveloperName?null:cx}function wf(t,i,r){const o=document.createElement("style");o.textContent=yh,t.appendChild(o);const s=document.createElement("div");s.className="iaw-root",t.appendChild(s);const a=fx(i);if(a){s.replaceChildren();const h=document.createElement("div");return h.className="iaw-config-error",h.textContent=a,s.appendChild(h),console.warn(a),{update:()=>{},unmount:()=>{s.remove(),o.remove()},get conversationId(){return null}}}const c={current:null},p=gh.createRoot(s);return p.render(ve.jsx(xf,{config:i,hostElement:r,conversationIdRef:c})),{update(h){p.render(ve.jsx(xf,{config:h,hostElement:r,conversationIdRef:c}))},unmount(){p.unmount(),s.remove(),o.remove()},get conversationId(){return c.current}}}const px="inline-agent-widget",dx=["scrt2-url","org-id","es-developer-name","capabilities-version","placeholder","product-id-param","product-id-pattern","enable-logging","persist-session"];function Sf(t){var r,o,s;const i=a=>{var c;return((c=t.getAttribute(a))==null?void 0:c.trim())||void 0};return{scrt2Url:(r=i("scrt2-url"))!=null?r:"",orgId:(o=i("org-id"))!=null?o:"",esDeveloperName:(s=i("es-developer-name"))!=null?s:"",capabilitiesVersion:i("capabilities-version"),placeholder:i("placeholder"),productIdParam:i("product-id-param"),productIdPattern:i("product-id-pattern"),enableLogging:t.hasAttribute("enable-logging"),persistSession:t.hasAttribute("persist-session")}}class Ef extends HTMLElement{constructor(){super(...arguments);Te(this,"handle",null)}static get observedAttributes(){return dx}get conversationId(){var r,o;return(o=(r=this.handle)==null?void 0:r.conversationId)!=null?o:null}connectedCallback(){var o;if(this.handle)return;const r=(o=this.shadowRoot)!=null?o:this.attachShadow({mode:"open"});this.handle=wf(r,Sf(this),this)}attributeChangedCallback(){this.handle&&this.handle.update(Sf(this))}disconnectedCallback(){var r;(r=this.handle)==null||r.unmount(),this.handle=null}}function Cf(t=px){typeof customElements!="undefined"&&(customElements.get(t)||customElements.define(t,Ef))}function hx(t){const{element:i,elementId:r,timeout:o=5e3,...s}=t;let a=!1,c=null;const p=m=>{var x;if(a)return;const y=(x=m.shadowRoot)!=null?x:m.attachShadow({mode:"open"}),g=wf(y,s);c=()=>g.unmount()},h=i!=null?i:r?document.getElementById(r):null;if(h)p(h);else if(r){const m=new MutationObserver(()=>{const g=document.getElementById(r);g&&(m.disconnect(),clearTimeout(y),p(g))});m.observe(document.body,{childList:!0,subtree:!0});const y=setTimeout(()=>{m.disconnect(),console.warn(`inline-agent-widget: element #${r} not found within ${o}ms.`)},o);c=()=>{m.disconnect(),clearTimeout(y)}}else console.warn("inline-agent-widget: mount() requires `element` or `elementId`.");return{unmount(){a=!0,c==null||c(),c=null}}}Cf(),Ye.AgentforceApiError=Bi,Ye.AgentforceAuthError=Fr,Ye.AgentforceClient=sa,Ye.AgentforceClientError=dn,Ye.AgentforceNetworkError=Ui,Ye.InlineAgentWidgetElement=Ef,Ye.defineElement=Cf,Ye.mount=hx,Object.defineProperty(Ye,Symbol.toStringTag,{value:"Module"})}));