@hachther/akilio-widget 0.6.6 → 1.0.0

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.
Files changed (42) hide show
  1. package/README.md +359 -16
  2. package/dist/_headers +16 -0
  3. package/dist/akilio-widget.min.js +44 -44
  4. package/dist/assets/EmailIcon.d.ts +2 -0
  5. package/dist/assets/FormIcon.d.ts +2 -0
  6. package/dist/assets/PhoneIcon.d.ts +2 -0
  7. package/dist/components/BrandLogo.d.ts +7 -1
  8. package/dist/components/CartPanel.d.ts +13 -0
  9. package/dist/components/CommerceActions.d.ts +11 -0
  10. package/dist/components/Composer.d.ts +7 -1
  11. package/dist/components/ContactActions.d.ts +8 -0
  12. package/dist/components/ContextualPrompt.d.ts +7 -0
  13. package/dist/components/EmptyState.d.ts +3 -1
  14. package/dist/components/Icons.d.ts +1 -0
  15. package/dist/components/InlineDecisionCard.d.ts +2 -0
  16. package/dist/components/Launcher.d.ts +8 -1
  17. package/dist/components/MessageBubble.d.ts +10 -1
  18. package/dist/components/MessageList.d.ts +1 -1
  19. package/dist/components/ProductCard.d.ts +4 -2
  20. package/dist/components/ProductCards.d.ts +6 -1
  21. package/dist/components/ProductDetail.d.ts +12 -0
  22. package/dist/components/SectionPrompt.d.ts +2 -0
  23. package/dist/components/TextSelectionPrompt.d.ts +2 -0
  24. package/dist/hooks/page-end.d.ts +1 -0
  25. package/dist/hooks/proactive-summary.d.ts +1 -0
  26. package/dist/hooks/response-sound.d.ts +9 -0
  27. package/dist/hooks/storage.d.ts +2 -0
  28. package/dist/index.d.ts +5 -1
  29. package/dist/index.min.js +9343 -6663
  30. package/dist/index.umd.min.cjs +36 -36
  31. package/dist/lib/client.d.ts +23 -2
  32. package/dist/lib/copy.d.ts +8 -2
  33. package/dist/loader.js +46 -0
  34. package/dist/locales/en.d.ts +127 -0
  35. package/dist/locales/fr.d.ts +127 -0
  36. package/dist/locales/index.d.ts +3 -0
  37. package/dist/releases/1.0.0/akilio-widget.min.js +45 -0
  38. package/dist/style.css +2334 -151
  39. package/dist/types.d.ts +554 -20
  40. package/dist/vanilla.d.ts +1 -0
  41. package/dist/widget-manifest.json +8 -0
  42. package/package.json +5 -3
@@ -1,45 +1,45 @@
1
- var Akilio=(function(qr){"use strict";var EA=globalThis.process||{env:{NODE_ENV:"production"}},_A=globalThis;function Os(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var Ms={exports:{}},Fr={};var qf;function my(){if(qf)return Fr;qf=1;var n=Symbol.for("react.transitional.element"),a=Symbol.for("react.fragment");function r(o,s,f){var u=null;if(f!==void 0&&(u=""+f),s.key!==void 0&&(u=""+s.key),"key"in s){f={};for(var g in s)g!=="key"&&(f[g]=s[g])}else f=s;return s=f.ref,{$$typeof:n,type:o,key:u,ref:s!==void 0?s:null,props:f}}return Fr.Fragment=a,Fr.jsx=r,Fr.jsxs=r,Fr}var Ff;function hy(){return Ff||(Ff=1,Ms.exports=my()),Ms.exports}var D=hy(),Rs={exports:{}},Gr={},Ds={exports:{}},Ls={};var Gf;function by(){return Gf||(Gf=1,(function(n){function a(Y,G){var K=Y.length;Y.push(G);e:for(;0<K;){var ve=K-1>>>1,S=Y[ve];if(0<s(S,G))Y[ve]=G,Y[K]=S,K=ve;else break e}}function r(Y){return Y.length===0?null:Y[0]}function o(Y){if(Y.length===0)return null;var G=Y[0],K=Y.pop();if(K!==G){Y[0]=K;e:for(var ve=0,S=Y.length,Be=S>>>1;ve<Be;){var T=2*(ve+1)-1,_=Y[T],J=T+1,pe=Y[J];if(0>s(_,K))J<S&&0>s(pe,_)?(Y[ve]=pe,Y[J]=K,ve=J):(Y[ve]=_,Y[T]=K,ve=T);else if(J<S&&0>s(pe,K))Y[ve]=pe,Y[J]=K,ve=J;else break e}}return G}function s(Y,G){var K=Y.sortIndex-G.sortIndex;return K!==0?K:Y.id-G.id}if(n.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var f=performance;n.unstable_now=function(){return f.now()}}else{var u=Date,g=u.now();n.unstable_now=function(){return u.now()-g}}var m=[],p=[],b=1,h=null,v=3,k=!1,x=!1,C=!1,M=!1,w=typeof setTimeout=="function"?setTimeout:null,q=typeof clearTimeout=="function"?clearTimeout:null,H=typeof setImmediate<"u"?setImmediate:null;function Q(Y){for(var G=r(p);G!==null;){if(G.callback===null)o(p);else if(G.startTime<=Y)o(p),G.sortIndex=G.expirationTime,a(m,G);else break;G=r(p)}}function te(Y){if(C=!1,Q(Y),!x)if(r(m)!==null)x=!0,L||(L=!0,re());else{var G=r(p);G!==null&&X(te,G.startTime-Y)}}var L=!1,ce=-1,ee=5,fe=-1;function z(){return M?!0:!(n.unstable_now()-fe<ee)}function se(){if(M=!1,L){var Y=n.unstable_now();fe=Y;var G=!0;try{e:{x=!1,C&&(C=!1,q(ce),ce=-1),k=!0;var K=v;try{t:{for(Q(Y),h=r(m);h!==null&&!(h.expirationTime>Y&&z());){var ve=h.callback;if(typeof ve=="function"){h.callback=null,v=h.priorityLevel;var S=ve(h.expirationTime<=Y);if(Y=n.unstable_now(),typeof S=="function"){h.callback=S,Q(Y),G=!0;break t}h===r(m)&&o(m),Q(Y)}else o(m);h=r(m)}if(h!==null)G=!0;else{var Be=r(p);Be!==null&&X(te,Be.startTime-Y),G=!1}}break e}finally{h=null,v=K,k=!1}G=void 0}}finally{G?re():L=!1}}}var re;if(typeof H=="function")re=function(){H(se)};else if(typeof MessageChannel<"u"){var _e=new MessageChannel,oe=_e.port2;_e.port1.onmessage=se,re=function(){oe.postMessage(null)}}else re=function(){w(se,0)};function X(Y,G){ce=w(function(){Y(n.unstable_now())},G)}n.unstable_IdlePriority=5,n.unstable_ImmediatePriority=1,n.unstable_LowPriority=4,n.unstable_NormalPriority=3,n.unstable_Profiling=null,n.unstable_UserBlockingPriority=2,n.unstable_cancelCallback=function(Y){Y.callback=null},n.unstable_forceFrameRate=function(Y){0>Y||125<Y?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):ee=0<Y?Math.floor(1e3/Y):5},n.unstable_getCurrentPriorityLevel=function(){return v},n.unstable_next=function(Y){switch(v){case 1:case 2:case 3:var G=3;break;default:G=v}var K=v;v=G;try{return Y()}finally{v=K}},n.unstable_requestPaint=function(){M=!0},n.unstable_runWithPriority=function(Y,G){switch(Y){case 1:case 2:case 3:case 4:case 5:break;default:Y=3}var K=v;v=Y;try{return G()}finally{v=K}},n.unstable_scheduleCallback=function(Y,G,K){var ve=n.unstable_now();switch(typeof K=="object"&&K!==null?(K=K.delay,K=typeof K=="number"&&0<K?ve+K:ve):K=ve,Y){case 1:var S=-1;break;case 2:S=250;break;case 5:S=1073741823;break;case 4:S=1e4;break;default:S=5e3}return S=K+S,Y={id:b++,callback:G,priorityLevel:Y,startTime:K,expirationTime:S,sortIndex:-1},K>ve?(Y.sortIndex=K,a(p,Y),r(m)===null&&Y===r(p)&&(C?(q(ce),ce=-1):C=!0,X(te,K-ve))):(Y.sortIndex=S,a(m,Y),x||k||(x=!0,L||(L=!0,re()))),Y},n.unstable_shouldYield=z,n.unstable_wrapCallback=function(Y){var G=v;return function(){var K=v;v=G;try{return Y.apply(this,arguments)}finally{v=K}}}})(Ls)),Ls}var jf;function yy(){return jf||(jf=1,Ds.exports=by()),Ds.exports}var zs={exports:{}},He={},Yf;function vy(){if(Yf)return He;Yf=1;var n={env:{NODE_ENV:"production"}};var a=Symbol.for("react.transitional.element"),r=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),f=Symbol.for("react.profiler"),u=Symbol.for("react.consumer"),g=Symbol.for("react.context"),m=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),b=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),v=Symbol.for("react.activity"),k=Symbol.iterator;function x(T){return T===null||typeof T!="object"?null:(T=k&&T[k]||T["@@iterator"],typeof T=="function"?T:null)}var C={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},M=Object.assign,w={};function q(T,_,J){this.props=T,this.context=_,this.refs=w,this.updater=J||C}q.prototype.isReactComponent={},q.prototype.setState=function(T,_){if(typeof T!="object"&&typeof T!="function"&&T!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,T,_,"setState")},q.prototype.forceUpdate=function(T){this.updater.enqueueForceUpdate(this,T,"forceUpdate")};function H(){}H.prototype=q.prototype;function Q(T,_,J){this.props=T,this.context=_,this.refs=w,this.updater=J||C}var te=Q.prototype=new H;te.constructor=Q,M(te,q.prototype),te.isPureReactComponent=!0;var L=Array.isArray;function ce(){}var ee={H:null,A:null,T:null,S:null},fe=Object.prototype.hasOwnProperty;function z(T,_,J){var pe=J.ref;return{$$typeof:a,type:T,key:_,ref:pe!==void 0?pe:null,props:J}}function se(T,_){return z(T.type,_,T.props)}function re(T){return typeof T=="object"&&T!==null&&T.$$typeof===a}function _e(T){var _={"=":"=0",":":"=2"};return"$"+T.replace(/[=:]/g,function(J){return _[J]})}var oe=/\/+/g;function X(T,_){return typeof T=="object"&&T!==null&&T.key!=null?_e(""+T.key):_.toString(36)}function Y(T){switch(T.status){case"fulfilled":return T.value;case"rejected":throw T.reason;default:switch(typeof T.status=="string"?T.then(ce,ce):(T.status="pending",T.then(function(_){T.status==="pending"&&(T.status="fulfilled",T.value=_)},function(_){T.status==="pending"&&(T.status="rejected",T.reason=_)})),T.status){case"fulfilled":return T.value;case"rejected":throw T.reason}}throw T}function G(T,_,J,pe,de){var Ce=typeof T;(Ce==="undefined"||Ce==="boolean")&&(T=null);var Ue=!1;if(T===null)Ue=!0;else switch(Ce){case"bigint":case"string":case"number":Ue=!0;break;case"object":switch(T.$$typeof){case a:case r:Ue=!0;break;case h:return Ue=T._init,G(Ue(T._payload),_,J,pe,de)}}if(Ue)return de=de(T),Ue=pe===""?"."+X(T,0):pe,L(de)?(J="",Ue!=null&&(J=Ue.replace(oe,"$&/")+"/"),G(de,_,J,"",function(gt){return gt})):de!=null&&(re(de)&&(de=se(de,J+(de.key==null||T&&T.key===de.key?"":(""+de.key).replace(oe,"$&/")+"/")+Ue)),_.push(de)),1;Ue=0;var kt=pe===""?".":pe+":";if(L(T))for(var Ke=0;Ke<T.length;Ke++)pe=T[Ke],Ce=kt+X(pe,Ke),Ue+=G(pe,_,J,Ce,de);else if(Ke=x(T),typeof Ke=="function")for(T=Ke.call(T),Ke=0;!(pe=T.next()).done;)pe=pe.value,Ce=kt+X(pe,Ke++),Ue+=G(pe,_,J,Ce,de);else if(Ce==="object"){if(typeof T.then=="function")return G(Y(T),_,J,pe,de);throw _=String(T),Error("Objects are not valid as a React child (found: "+(_==="[object Object]"?"object with keys {"+Object.keys(T).join(", ")+"}":_)+"). If you meant to render a collection of children, use an array instead.")}return Ue}function K(T,_,J){if(T==null)return T;var pe=[],de=0;return G(T,pe,"","",function(Ce){return _.call(J,Ce,de++)}),pe}function ve(T){if(T._status===-1){var _=T._result;_=_(),_.then(function(J){(T._status===0||T._status===-1)&&(T._status=1,T._result=J)},function(J){(T._status===0||T._status===-1)&&(T._status=2,T._result=J)}),T._status===-1&&(T._status=0,T._result=_)}if(T._status===1)return T._result.default;throw T._result}var S=typeof reportError=="function"?reportError:function(T){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var _=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof T=="object"&&T!==null&&typeof T.message=="string"?String(T.message):String(T),error:T});if(!window.dispatchEvent(_))return}else if(typeof n=="object"&&typeof n.emit=="function"){n.emit("uncaughtException",T);return}console.error(T)},Be={map:K,forEach:function(T,_,J){K(T,function(){_.apply(this,arguments)},J)},count:function(T){var _=0;return K(T,function(){_++}),_},toArray:function(T){return K(T,function(_){return _})||[]},only:function(T){if(!re(T))throw Error("React.Children.only expected to receive a single React element child.");return T}};return He.Activity=v,He.Children=Be,He.Component=q,He.Fragment=o,He.Profiler=f,He.PureComponent=Q,He.StrictMode=s,He.Suspense=p,He.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=ee,He.__COMPILER_RUNTIME={__proto__:null,c:function(T){return ee.H.useMemoCache(T)}},He.cache=function(T){return function(){return T.apply(null,arguments)}},He.cacheSignal=function(){return null},He.cloneElement=function(T,_,J){if(T==null)throw Error("The argument must be a React element, but you passed "+T+".");var pe=M({},T.props),de=T.key;if(_!=null)for(Ce in _.key!==void 0&&(de=""+_.key),_)!fe.call(_,Ce)||Ce==="key"||Ce==="__self"||Ce==="__source"||Ce==="ref"&&_.ref===void 0||(pe[Ce]=_[Ce]);var Ce=arguments.length-2;if(Ce===1)pe.children=J;else if(1<Ce){for(var Ue=Array(Ce),kt=0;kt<Ce;kt++)Ue[kt]=arguments[kt+2];pe.children=Ue}return z(T.type,de,pe)},He.createContext=function(T){return T={$$typeof:g,_currentValue:T,_currentValue2:T,_threadCount:0,Provider:null,Consumer:null},T.Provider=T,T.Consumer={$$typeof:u,_context:T},T},He.createElement=function(T,_,J){var pe,de={},Ce=null;if(_!=null)for(pe in _.key!==void 0&&(Ce=""+_.key),_)fe.call(_,pe)&&pe!=="key"&&pe!=="__self"&&pe!=="__source"&&(de[pe]=_[pe]);var Ue=arguments.length-2;if(Ue===1)de.children=J;else if(1<Ue){for(var kt=Array(Ue),Ke=0;Ke<Ue;Ke++)kt[Ke]=arguments[Ke+2];de.children=kt}if(T&&T.defaultProps)for(pe in Ue=T.defaultProps,Ue)de[pe]===void 0&&(de[pe]=Ue[pe]);return z(T,Ce,de)},He.createRef=function(){return{current:null}},He.forwardRef=function(T){return{$$typeof:m,render:T}},He.isValidElement=re,He.lazy=function(T){return{$$typeof:h,_payload:{_status:-1,_result:T},_init:ve}},He.memo=function(T,_){return{$$typeof:b,type:T,compare:_===void 0?null:_}},He.startTransition=function(T){var _=ee.T,J={};ee.T=J;try{var pe=T(),de=ee.S;de!==null&&de(J,pe),typeof pe=="object"&&pe!==null&&typeof pe.then=="function"&&pe.then(ce,S)}catch(Ce){S(Ce)}finally{_!==null&&J.types!==null&&(_.types=J.types),ee.T=_}},He.unstable_useCacheRefresh=function(){return ee.H.useCacheRefresh()},He.use=function(T){return ee.H.use(T)},He.useActionState=function(T,_,J){return ee.H.useActionState(T,_,J)},He.useCallback=function(T,_){return ee.H.useCallback(T,_)},He.useContext=function(T){return ee.H.useContext(T)},He.useDebugValue=function(){},He.useDeferredValue=function(T,_){return ee.H.useDeferredValue(T,_)},He.useEffect=function(T,_){return ee.H.useEffect(T,_)},He.useEffectEvent=function(T){return ee.H.useEffectEvent(T)},He.useId=function(){return ee.H.useId()},He.useImperativeHandle=function(T,_,J){return ee.H.useImperativeHandle(T,_,J)},He.useInsertionEffect=function(T,_){return ee.H.useInsertionEffect(T,_)},He.useLayoutEffect=function(T,_){return ee.H.useLayoutEffect(T,_)},He.useMemo=function(T,_){return ee.H.useMemo(T,_)},He.useOptimistic=function(T,_){return ee.H.useOptimistic(T,_)},He.useReducer=function(T,_,J){return ee.H.useReducer(T,_,J)},He.useRef=function(T){return ee.H.useRef(T)},He.useState=function(T){return ee.H.useState(T)},He.useSyncExternalStore=function(T,_,J){return ee.H.useSyncExternalStore(T,_,J)},He.useTransition=function(){return ee.H.useTransition()},He.version="19.2.7",He}var Pf;function Is(){return Pf||(Pf=1,zs.exports=vy()),zs.exports}var Bs={exports:{}},sn={};var Kf;function ky(){if(Kf)return sn;Kf=1;var n=Is();function a(m){var p="https://react.dev/errors/"+m;if(1<arguments.length){p+="?args[]="+encodeURIComponent(arguments[1]);for(var b=2;b<arguments.length;b++)p+="&args[]="+encodeURIComponent(arguments[b])}return"Minified React error #"+m+"; visit "+p+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function r(){}var o={d:{f:r,r:function(){throw Error(a(522))},D:r,C:r,L:r,m:r,X:r,S:r,M:r},p:0,findDOMNode:null},s=Symbol.for("react.portal");function f(m,p,b){var h=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:s,key:h==null?null:""+h,children:m,containerInfo:p,implementation:b}}var u=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function g(m,p){if(m==="font")return"";if(typeof p=="string")return p==="use-credentials"?p:""}return sn.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=o,sn.createPortal=function(m,p){var b=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!p||p.nodeType!==1&&p.nodeType!==9&&p.nodeType!==11)throw Error(a(299));return f(m,p,null,b)},sn.flushSync=function(m){var p=u.T,b=o.p;try{if(u.T=null,o.p=2,m)return m()}finally{u.T=p,o.p=b,o.d.f()}},sn.preconnect=function(m,p){typeof m=="string"&&(p?(p=p.crossOrigin,p=typeof p=="string"?p==="use-credentials"?p:"":void 0):p=null,o.d.C(m,p))},sn.prefetchDNS=function(m){typeof m=="string"&&o.d.D(m)},sn.preinit=function(m,p){if(typeof m=="string"&&p&&typeof p.as=="string"){var b=p.as,h=g(b,p.crossOrigin),v=typeof p.integrity=="string"?p.integrity:void 0,k=typeof p.fetchPriority=="string"?p.fetchPriority:void 0;b==="style"?o.d.S(m,typeof p.precedence=="string"?p.precedence:void 0,{crossOrigin:h,integrity:v,fetchPriority:k}):b==="script"&&o.d.X(m,{crossOrigin:h,integrity:v,fetchPriority:k,nonce:typeof p.nonce=="string"?p.nonce:void 0})}},sn.preinitModule=function(m,p){if(typeof m=="string")if(typeof p=="object"&&p!==null){if(p.as==null||p.as==="script"){var b=g(p.as,p.crossOrigin);o.d.M(m,{crossOrigin:b,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0})}}else p==null&&o.d.M(m)},sn.preload=function(m,p){if(typeof m=="string"&&typeof p=="object"&&p!==null&&typeof p.as=="string"){var b=p.as,h=g(b,p.crossOrigin);o.d.L(m,b,{crossOrigin:h,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0,type:typeof p.type=="string"?p.type:void 0,fetchPriority:typeof p.fetchPriority=="string"?p.fetchPriority:void 0,referrerPolicy:typeof p.referrerPolicy=="string"?p.referrerPolicy:void 0,imageSrcSet:typeof p.imageSrcSet=="string"?p.imageSrcSet:void 0,imageSizes:typeof p.imageSizes=="string"?p.imageSizes:void 0,media:typeof p.media=="string"?p.media:void 0})}},sn.preloadModule=function(m,p){if(typeof m=="string")if(p){var b=g(p.as,p.crossOrigin);o.d.m(m,{as:typeof p.as=="string"&&p.as!=="script"?p.as:void 0,crossOrigin:b,integrity:typeof p.integrity=="string"?p.integrity:void 0})}else o.d.m(m)},sn.requestFormReset=function(m){o.d.r(m)},sn.unstable_batchedUpdates=function(m,p){return m(p)},sn.useFormState=function(m,p,b){return u.H.useFormState(m,p,b)},sn.useFormStatus=function(){return u.H.useHostTransitionStatus()},sn.version="19.2.7",sn}var Vf;function $f(){if(Vf)return Bs.exports;Vf=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(a){console.error(a)}}return n(),Bs.exports=ky(),Bs.exports}var Zf;function Ey(){if(Zf)return Gr;Zf=1;var n={env:{NODE_ENV:"production"}};var a=yy(),r=Is(),o=$f();function s(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var i=2;i<arguments.length;i++)t+="&args[]="+encodeURIComponent(arguments[i])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function f(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function u(e){var t=e,i=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(i=t.return),e=t.return;while(e)}return t.tag===3?i:null}function g(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function m(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function p(e){if(u(e)!==e)throw Error(s(188))}function b(e){var t=e.alternate;if(!t){if(t=u(e),t===null)throw Error(s(188));return t!==e?null:e}for(var i=e,l=t;;){var c=i.return;if(c===null)break;var d=c.alternate;if(d===null){if(l=c.return,l!==null){i=l;continue}break}if(c.child===d.child){for(d=c.child;d;){if(d===i)return p(c),e;if(d===l)return p(c),t;d=d.sibling}throw Error(s(188))}if(i.return!==l.return)i=c,l=d;else{for(var y=!1,E=c.child;E;){if(E===i){y=!0,i=c,l=d;break}if(E===l){y=!0,l=c,i=d;break}E=E.sibling}if(!y){for(E=d.child;E;){if(E===i){y=!0,i=d,l=c;break}if(E===l){y=!0,l=d,i=c;break}E=E.sibling}if(!y)throw Error(s(189))}}if(i.alternate!==l)throw Error(s(190))}if(i.tag!==3)throw Error(s(188));return i.stateNode.current===i?e:t}function h(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=h(e),t!==null)return t;e=e.sibling}return null}var v=Object.assign,k=Symbol.for("react.element"),x=Symbol.for("react.transitional.element"),C=Symbol.for("react.portal"),M=Symbol.for("react.fragment"),w=Symbol.for("react.strict_mode"),q=Symbol.for("react.profiler"),H=Symbol.for("react.consumer"),Q=Symbol.for("react.context"),te=Symbol.for("react.forward_ref"),L=Symbol.for("react.suspense"),ce=Symbol.for("react.suspense_list"),ee=Symbol.for("react.memo"),fe=Symbol.for("react.lazy"),z=Symbol.for("react.activity"),se=Symbol.for("react.memo_cache_sentinel"),re=Symbol.iterator;function _e(e){return e===null||typeof e!="object"?null:(e=re&&e[re]||e["@@iterator"],typeof e=="function"?e:null)}var oe=Symbol.for("react.client.reference");function X(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===oe?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case M:return"Fragment";case q:return"Profiler";case w:return"StrictMode";case L:return"Suspense";case ce:return"SuspenseList";case z:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case C:return"Portal";case Q:return e.displayName||"Context";case H:return(e._context.displayName||"Context")+".Consumer";case te:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case ee:return t=e.displayName||null,t!==null?t:X(e.type)||"Memo";case fe:t=e._payload,e=e._init;try{return X(e(t))}catch{}}return null}var Y=Array.isArray,G=r.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,K=o.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ve={pending:!1,data:null,method:null,action:null},S=[],Be=-1;function T(e){return{current:e}}function _(e){0>Be||(e.current=S[Be],S[Be]=null,Be--)}function J(e,t){Be++,S[Be]=e.current,e.current=t}var pe=T(null),de=T(null),Ce=T(null),Ue=T(null);function kt(e,t){switch(J(Ce,t),J(de,e),J(pe,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Ub(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Ub(t),e=Hb(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}_(pe),J(pe,e)}function Ke(){_(pe),_(de),_(Ce)}function gt(e){e.memoizedState!==null&&J(Ue,e);var t=pe.current,i=Hb(t,e.type);t!==i&&(J(de,e),J(pe,i))}function zn(e){de.current===e&&(_(pe),_(de)),Ue.current===e&&(_(Ue),Pl._currentValue=ve)}var Vt,bi;function en(e){if(Vt===void 0)try{throw Error()}catch(i){var t=i.stack.trim().match(/\n( *(at )?)/);Vt=t&&t[1]||"",bi=-1<i.stack.indexOf(`
2
- at`)?" (<anonymous>)":-1<i.stack.indexOf("@")?"@unknown:0:0":""}return`
3
- `+Vt+e+bi}var Ve=!1;function Qt(e,t){if(!e||Ve)return"";Ve=!0;var i=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var l={DetermineComponentFrameRoot:function(){try{if(t){var Z=function(){throw Error()};if(Object.defineProperty(Z.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Z,[])}catch(F){var U=F}Reflect.construct(e,[],Z)}else{try{Z.call()}catch(F){U=F}e.call(Z.prototype)}}else{try{throw Error()}catch(F){U=F}(Z=e())&&typeof Z.catch=="function"&&Z.catch(function(){})}}catch(F){if(F&&U&&typeof F.stack=="string")return[F.stack,U.stack]}return[null,null]}};l.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var c=Object.getOwnPropertyDescriptor(l.DetermineComponentFrameRoot,"name");c&&c.configurable&&Object.defineProperty(l.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var d=l.DetermineComponentFrameRoot(),y=d[0],E=d[1];if(y&&E){var A=y.split(`
4
- `),B=E.split(`
5
- `);for(c=l=0;l<A.length&&!A[l].includes("DetermineComponentFrameRoot");)l++;for(;c<B.length&&!B[c].includes("DetermineComponentFrameRoot");)c++;if(l===A.length||c===B.length)for(l=A.length-1,c=B.length-1;1<=l&&0<=c&&A[l]!==B[c];)c--;for(;1<=l&&0<=c;l--,c--)if(A[l]!==B[c]){if(l!==1||c!==1)do if(l--,c--,0>c||A[l]!==B[c]){var P=`
6
- `+A[l].replace(" at new "," at ");return e.displayName&&P.includes("<anonymous>")&&(P=P.replace("<anonymous>",e.displayName)),P}while(1<=l&&0<=c);break}}}finally{Ve=!1,Error.prepareStackTrace=i}return(i=e?e.displayName||e.name:"")?en(i):""}function Sn(e,t){switch(e.tag){case 26:case 27:case 5:return en(e.type);case 16:return en("Lazy");case 13:return e.child!==t&&t!==null?en("Suspense Fallback"):en("Suspense");case 19:return en("SuspenseList");case 0:case 15:return Qt(e.type,!1);case 11:return Qt(e.type.render,!1);case 1:return Qt(e.type,!0);case 31:return en("Activity");default:return""}}function Vn(e){try{var t="",i=null;do t+=Sn(e,i),i=e,e=e.return;while(e);return t}catch(l){return`
7
- Error generating stack: `+l.message+`
8
- `+l.stack}}var In=Object.prototype.hasOwnProperty,Ni=a.unstable_scheduleCallback,Bn=a.unstable_cancelCallback,$n=a.unstable_shouldYield,Rt=a.unstable_requestPaint,lt=a.unstable_now,j=a.unstable_getCurrentPriorityLevel,ae=a.unstable_ImmediatePriority,Ae=a.unstable_UserBlockingPriority,qe=a.unstable_NormalPriority,nt=a.unstable_LowPriority,$t=a.unstable_IdlePriority,dn=a.log,tn=a.unstable_setDisableYieldValue,Jt=null,xt=null;function Et(e){if(typeof dn=="function"&&tn(e),xt&&typeof xt.setStrictMode=="function")try{xt.setStrictMode(Jt,e)}catch{}}var St=Math.clz32?Math.clz32:La,nn=Math.log,Ci=Math.LN2;function La(e){return e>>>=0,e===0?32:31-(nn(e)/Ci|0)|0}var Wi=256,Oi=262144,Ot=4194304;function N(e){var t=e&42;if(t!==0)return t;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:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function V(e,t,i){var l=e.pendingLanes;if(l===0)return 0;var c=0,d=e.suspendedLanes,y=e.pingedLanes;e=e.warmLanes;var E=l&134217727;return E!==0?(l=E&~d,l!==0?c=N(l):(y&=E,y!==0?c=N(y):i||(i=E&~e,i!==0&&(c=N(i))))):(E=l&~d,E!==0?c=N(E):y!==0?c=N(y):i||(i=l&~e,i!==0&&(c=N(i)))),c===0?0:t!==0&&t!==c&&(t&d)===0&&(d=c&-c,i=t&-t,d>=i||d===32&&(i&4194048)!==0)?t:c}function le(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function De(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function wt(){var e=Ot;return Ot<<=1,(Ot&62914560)===0&&(Ot=4194304),e}function Qe(e){for(var t=[],i=0;31>i;i++)t.push(e);return t}function he(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function ge(e,t,i,l,c,d){var y=e.pendingLanes;e.pendingLanes=i,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=i,e.entangledLanes&=i,e.errorRecoveryDisabledLanes&=i,e.shellSuspendCounter=0;var E=e.entanglements,A=e.expirationTimes,B=e.hiddenUpdates;for(i=y&~i;0<i;){var P=31-St(i),Z=1<<P;E[P]=0,A[P]=-1;var U=B[P];if(U!==null)for(B[P]=null,P=0;P<U.length;P++){var F=U[P];F!==null&&(F.lane&=-536870913)}i&=~Z}l!==0&&Se(e,l,0),d!==0&&c===0&&e.tag!==0&&(e.suspendedLanes|=d&~(y&~t))}function Se(e,t,i){e.pendingLanes|=t,e.suspendedLanes&=~t;var l=31-St(t);e.entangledLanes|=t,e.entanglements[l]=e.entanglements[l]|1073741824|i&261930}function Ge(e,t){var i=e.entangledLanes|=t;for(e=e.entanglements;i;){var l=31-St(i),c=1<<l;c&t|e[l]&t&&(e[l]|=t),i&=~c}}function ct(e,t){var i=t&-t;return i=(i&42)!==0?1:vn(i),(i&(e.suspendedLanes|t))!==0?0:i}function vn(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;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:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function pn(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function Mi(){var e=K.p;return e!==0?e:(e=window.event,e===void 0?32:sy(e.type))}function ea(e,t){var i=K.p;try{return K.p=e,t()}finally{K.p=i}}var wn=Math.random().toString(36).slice(2),It="__reactFiber$"+wn,Bt="__reactProps$"+wn,Zn="__reactContainer$"+wn,ta="__reactEvents$"+wn,na="__reactListeners$"+wn,cr="__reactHandles$"+wn,yi="__reactResources$"+wn,Ut="__reactMarker$"+wn;function Nt(e){delete e[It],delete e[Bt],delete e[ta],delete e[na],delete e[cr]}function Xn(e){var t=e[It];if(t)return t;for(var i=e.parentNode;i;){if(t=i[Zn]||i[It]){if(i=t.alternate,t.child!==null||i!==null&&i.child!==null)for(e=Kb(e);e!==null;){if(i=e[It])return i;e=Kb(e)}return t}e=i,i=e.parentNode}return null}function gn(e){if(e=e[It]||e[Zn]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function Ri(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(s(33))}function vi(e){var t=e[yi];return t||(t=e[yi]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function Dt(e){e[Ut]=!0}var oi=new Set,za={};function W(e,t){ke(e,t),ke(e+"Capture",t)}function ke(e,t){for(za[e]=t,e=0;e<t.length;e++)oi.add(t[e])}var Pe=RegExp("^[: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]*$"),ot={},ne={};function Te(e){return In.call(ne,e)?!0:In.call(ot,e)?!1:Pe.test(e)?ne[e]=!0:(ot[e]=!0,!1)}function Oe(e,t,i){if(Te(t))if(i===null)e.removeAttribute(t);else{switch(typeof i){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var l=t.toLowerCase().slice(0,5);if(l!=="data-"&&l!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+i)}}function Le(e,t,i){if(i===null)e.removeAttribute(t);else{switch(typeof i){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+i)}}function Me(e,t,i,l){if(l===null)e.removeAttribute(i);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(i);return}e.setAttributeNS(t,i,""+l)}}function Re(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function kn(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function si(e,t,i){var l=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof l<"u"&&typeof l.get=="function"&&typeof l.set=="function"){var c=l.get,d=l.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return c.call(this)},set:function(y){i=""+y,d.call(this,y)}}),Object.defineProperty(e,t,{enumerable:l.enumerable}),{getValue:function(){return i},setValue:function(y){i=""+y},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Ht(e){if(!e._valueTracker){var t=kn(e)?"checked":"value";e._valueTracker=si(e,t,""+e[t])}}function Di(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var i=t.getValue(),l="";return e&&(l=kn(e)?e.checked?"true":"false":e.value),e=l,e!==i?(t.setValue(e),!0):!1}function Qn(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var ki=/[\n"\\]/g;function mn(e){return e.replace(ki,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Ei(e,t,i,l,c,d,y,E){e.name="",y!=null&&typeof y!="function"&&typeof y!="symbol"&&typeof y!="boolean"?e.type=y:e.removeAttribute("type"),t!=null?y==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+Re(t)):e.value!==""+Re(t)&&(e.value=""+Re(t)):y!=="submit"&&y!=="reset"||e.removeAttribute("value"),t!=null?Tn(e,y,Re(t)):i!=null?Tn(e,y,Re(i)):l!=null&&e.removeAttribute("value"),c==null&&d!=null&&(e.defaultChecked=!!d),c!=null&&(e.checked=c&&typeof c!="function"&&typeof c!="symbol"),E!=null&&typeof E!="function"&&typeof E!="symbol"&&typeof E!="boolean"?e.name=""+Re(E):e.removeAttribute("name")}function al(e,t,i,l,c,d,y,E){if(d!=null&&typeof d!="function"&&typeof d!="symbol"&&typeof d!="boolean"&&(e.type=d),t!=null||i!=null){if(!(d!=="submit"&&d!=="reset"||t!=null)){Ht(e);return}i=i!=null?""+Re(i):"",t=t!=null?""+Re(t):i,E||t===e.value||(e.value=t),e.defaultValue=t}l=l??c,l=typeof l!="function"&&typeof l!="symbol"&&!!l,e.checked=E?e.checked:!!l,e.defaultChecked=!!l,y!=null&&typeof y!="function"&&typeof y!="symbol"&&typeof y!="boolean"&&(e.name=y),Ht(e)}function Tn(e,t,i){t==="number"&&Qn(e.ownerDocument)===e||e.defaultValue===""+i||(e.defaultValue=""+i)}function ia(e,t,i,l){if(e=e.options,t){t={};for(var c=0;c<i.length;c++)t["$"+i[c]]=!0;for(i=0;i<e.length;i++)c=t.hasOwnProperty("$"+e[i].value),e[i].selected!==c&&(e[i].selected=c),c&&l&&(e[i].defaultSelected=!0)}else{for(i=""+Re(i),t=null,c=0;c<e.length;c++){if(e[c].value===i){e[c].selected=!0,l&&(e[c].defaultSelected=!0);return}t!==null||e[c].disabled||(t=e[c])}t!==null&&(t.selected=!0)}}function ur(e,t,i){if(t!=null&&(t=""+Re(t),t!==e.value&&(e.value=t),i==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=i!=null?""+Re(i):""}function ze(e,t,i,l){if(t==null){if(l!=null){if(i!=null)throw Error(s(92));if(Y(l)){if(1<l.length)throw Error(s(93));l=l[0]}i=l}i==null&&(i=""),t=i}i=Re(t),e.defaultValue=i,l=e.textContent,l===i&&l!==""&&l!==null&&(e.value=l),Ht(e)}function Li(e,t){if(t){var i=e.firstChild;if(i&&i===e.lastChild&&i.nodeType===3){i.nodeValue=t;return}}e.textContent=t}var Zt=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function ut(e,t,i){var l=t.indexOf("--")===0;i==null||typeof i=="boolean"||i===""?l?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":l?e.setProperty(t,i):typeof i!="number"||i===0||Zt.has(t)?t==="float"?e.cssFloat=i:e[t]=(""+i).trim():e[t]=i+"px"}function Ia(e,t,i){if(t!=null&&typeof t!="object")throw Error(s(62));if(e=e.style,i!=null){for(var l in i)!i.hasOwnProperty(l)||t!=null&&t.hasOwnProperty(l)||(l.indexOf("--")===0?e.setProperty(l,""):l==="float"?e.cssFloat="":e[l]="");for(var c in t)l=t[c],t.hasOwnProperty(c)&&i[c]!==l&&ut(e,c,l)}else for(var d in t)t.hasOwnProperty(d)&&ut(e,d,t[d])}function ci(e){if(e.indexOf("-")===-1)return!1;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 rl=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["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"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["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"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["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"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),ll=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function ue(e){return ll.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function be(){}var Fe=null;function it(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Mt=null,hn=null;function Eo(e){var t=gn(e);if(t&&(e=t.stateNode)){var i=e[Bt]||null;e:switch(e=t.stateNode,t.type){case"input":if(Ei(e,i.value,i.defaultValue,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name),t=i.name,i.type==="radio"&&t!=null){for(i=e;i.parentNode;)i=i.parentNode;for(i=i.querySelectorAll('input[name="'+mn(""+t)+'"][type="radio"]'),t=0;t<i.length;t++){var l=i[t];if(l!==e&&l.form===e.form){var c=l[Bt]||null;if(!c)throw Error(s(90));Ei(l,c.value,c.defaultValue,c.defaultValue,c.checked,c.defaultChecked,c.type,c.name)}}for(t=0;t<i.length;t++)l=i[t],l.form===e.form&&Di(l)}break e;case"textarea":ur(e,i.value,i.defaultValue);break e;case"select":t=i.value,t!=null&&ia(e,!!i.multiple,t,!1)}}}var ol=!1;function Ug(e,t,i){if(ol)return e(t,i);ol=!0;try{var l=e(t);return l}finally{if(ol=!1,(Mt!==null||hn!==null)&&(ss(),Mt&&(t=Mt,e=hn,hn=Mt=null,Eo(t),e)))for(t=0;t<e.length;t++)Eo(e[t])}}function sl(e,t){var i=e.stateNode;if(i===null)return null;var l=i[Bt]||null;if(l===null)return null;i=l[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(l=!l.disabled)||(e=e.type,l=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!l;break e;default:e=!1}if(e)return null;if(i&&typeof i!="function")throw Error(s(231,t,typeof i));return i}var zi=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Hc=!1;if(zi)try{var cl={};Object.defineProperty(cl,"passive",{get:function(){Hc=!0}}),window.addEventListener("test",cl,cl),window.removeEventListener("test",cl,cl)}catch{Hc=!1}var aa=null,qc=null,_o=null;function Hg(){if(_o)return _o;var e,t=qc,i=t.length,l,c="value"in aa?aa.value:aa.textContent,d=c.length;for(e=0;e<i&&t[e]===c[e];e++);var y=i-e;for(l=1;l<=y&&t[i-l]===c[d-l];l++);return _o=c.slice(e,1<l?1-l:void 0)}function xo(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function So(){return!0}function qg(){return!1}function An(e){function t(i,l,c,d,y){this._reactName=i,this._targetInst=c,this.type=l,this.nativeEvent=d,this.target=y,this.currentTarget=null;for(var E in e)e.hasOwnProperty(E)&&(i=e[E],this[E]=i?i(d):d[E]);return this.isDefaultPrevented=(d.defaultPrevented!=null?d.defaultPrevented:d.returnValue===!1)?So:qg,this.isPropagationStopped=qg,this}return v(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var i=this.nativeEvent;i&&(i.preventDefault?i.preventDefault():typeof i.returnValue!="unknown"&&(i.returnValue=!1),this.isDefaultPrevented=So)},stopPropagation:function(){var i=this.nativeEvent;i&&(i.stopPropagation?i.stopPropagation():typeof i.cancelBubble!="unknown"&&(i.cancelBubble=!0),this.isPropagationStopped=So)},persist:function(){},isPersistent:So}),t}var Ba={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},wo=An(Ba),ul=v({},Ba,{view:0,detail:0}),vw=An(ul),Fc,Gc,fl,To=v({},ul,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Yc,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!==fl&&(fl&&e.type==="mousemove"?(Fc=e.screenX-fl.screenX,Gc=e.screenY-fl.screenY):Gc=Fc=0,fl=e),Fc)},movementY:function(e){return"movementY"in e?e.movementY:Gc}}),Fg=An(To),kw=v({},To,{dataTransfer:0}),Ew=An(kw),_w=v({},ul,{relatedTarget:0}),jc=An(_w),xw=v({},Ba,{animationName:0,elapsedTime:0,pseudoElement:0}),Sw=An(xw),ww=v({},Ba,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Tw=An(ww),Aw=v({},Ba,{data:0}),Gg=An(Aw),Nw={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Cw={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"},Ow={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Mw(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Ow[e])?!!t[e]:!1}function Yc(){return Mw}var Rw=v({},ul,{key:function(e){if(e.key){var t=Nw[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=xo(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Cw[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Yc,charCode:function(e){return e.type==="keypress"?xo(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?xo(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Dw=An(Rw),Lw=v({},To,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),jg=An(Lw),zw=v({},ul,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Yc}),Iw=An(zw),Bw=v({},Ba,{propertyName:0,elapsedTime:0,pseudoElement:0}),Uw=An(Bw),Hw=v({},To,{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}),qw=An(Hw),Fw=v({},Ba,{newState:0,oldState:0}),Gw=An(Fw),jw=[9,13,27,32],Pc=zi&&"CompositionEvent"in window,dl=null;zi&&"documentMode"in document&&(dl=document.documentMode);var Yw=zi&&"TextEvent"in window&&!dl,Yg=zi&&(!Pc||dl&&8<dl&&11>=dl),Pg=" ",Kg=!1;function Vg(e,t){switch(e){case"keyup":return jw.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function $g(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var fr=!1;function Pw(e,t){switch(e){case"compositionend":return $g(t);case"keypress":return t.which!==32?null:(Kg=!0,Pg);case"textInput":return e=t.data,e===Pg&&Kg?null:e;default:return null}}function Kw(e,t){if(fr)return e==="compositionend"||!Pc&&Vg(e,t)?(e=Hg(),_o=qc=aa=null,fr=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Yg&&t.locale!=="ko"?null:t.data;default:return null}}var Vw={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 Zg(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Vw[e.type]:t==="textarea"}function Xg(e,t,i,l){Mt?hn?hn.push(l):hn=[l]:Mt=l,t=ms(t,"onChange"),0<t.length&&(i=new wo("onChange","change",null,i,l),e.push({event:i,listeners:t}))}var pl=null,gl=null;function $w(e){Rb(e,0)}function Ao(e){var t=Ri(e);if(Di(t))return e}function Qg(e,t){if(e==="change")return t}var Jg=!1;if(zi){var Kc;if(zi){var Vc="oninput"in document;if(!Vc){var Wg=document.createElement("div");Wg.setAttribute("oninput","return;"),Vc=typeof Wg.oninput=="function"}Kc=Vc}else Kc=!1;Jg=Kc&&(!document.documentMode||9<document.documentMode)}function em(){pl&&(pl.detachEvent("onpropertychange",tm),gl=pl=null)}function tm(e){if(e.propertyName==="value"&&Ao(gl)){var t=[];Xg(t,gl,e,it(e)),Ug($w,t)}}function Zw(e,t,i){e==="focusin"?(em(),pl=t,gl=i,pl.attachEvent("onpropertychange",tm)):e==="focusout"&&em()}function Xw(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Ao(gl)}function Qw(e,t){if(e==="click")return Ao(t)}function Jw(e,t){if(e==="input"||e==="change")return Ao(t)}function Ww(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Un=typeof Object.is=="function"?Object.is:Ww;function ml(e,t){if(Un(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var i=Object.keys(e),l=Object.keys(t);if(i.length!==l.length)return!1;for(l=0;l<i.length;l++){var c=i[l];if(!In.call(t,c)||!Un(e[c],t[c]))return!1}return!0}function nm(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function im(e,t){var i=nm(e);e=0;for(var l;i;){if(i.nodeType===3){if(l=e+i.textContent.length,e<=t&&l>=t)return{node:i,offset:t-e};e=l}e:{for(;i;){if(i.nextSibling){i=i.nextSibling;break e}i=i.parentNode}i=void 0}i=nm(i)}}function am(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?am(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function rm(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Qn(e.document);t instanceof e.HTMLIFrameElement;){try{var i=typeof t.contentWindow.location.href=="string"}catch{i=!1}if(i)e=t.contentWindow;else break;t=Qn(e.document)}return t}function $c(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var eT=zi&&"documentMode"in document&&11>=document.documentMode,dr=null,Zc=null,hl=null,Xc=!1;function lm(e,t,i){var l=i.window===i?i.document:i.nodeType===9?i:i.ownerDocument;Xc||dr==null||dr!==Qn(l)||(l=dr,"selectionStart"in l&&$c(l)?l={start:l.selectionStart,end:l.selectionEnd}:(l=(l.ownerDocument&&l.ownerDocument.defaultView||window).getSelection(),l={anchorNode:l.anchorNode,anchorOffset:l.anchorOffset,focusNode:l.focusNode,focusOffset:l.focusOffset}),hl&&ml(hl,l)||(hl=l,l=ms(Zc,"onSelect"),0<l.length&&(t=new wo("onSelect","select",null,t,i),e.push({event:t,listeners:l}),t.target=dr)))}function Ua(e,t){var i={};return i[e.toLowerCase()]=t.toLowerCase(),i["Webkit"+e]="webkit"+t,i["Moz"+e]="moz"+t,i}var pr={animationend:Ua("Animation","AnimationEnd"),animationiteration:Ua("Animation","AnimationIteration"),animationstart:Ua("Animation","AnimationStart"),transitionrun:Ua("Transition","TransitionRun"),transitionstart:Ua("Transition","TransitionStart"),transitioncancel:Ua("Transition","TransitionCancel"),transitionend:Ua("Transition","TransitionEnd")},Qc={},om={};zi&&(om=document.createElement("div").style,"AnimationEvent"in window||(delete pr.animationend.animation,delete pr.animationiteration.animation,delete pr.animationstart.animation),"TransitionEvent"in window||delete pr.transitionend.transition);function Ha(e){if(Qc[e])return Qc[e];if(!pr[e])return e;var t=pr[e],i;for(i in t)if(t.hasOwnProperty(i)&&i in om)return Qc[e]=t[i];return e}var sm=Ha("animationend"),cm=Ha("animationiteration"),um=Ha("animationstart"),tT=Ha("transitionrun"),nT=Ha("transitionstart"),iT=Ha("transitioncancel"),fm=Ha("transitionend"),dm=new Map,Jc="abort auxClick beforeToggle 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(" ");Jc.push("scrollEnd");function ui(e,t){dm.set(e,t),W(t,[e])}var No=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof n=="object"&&typeof n.emit=="function"){n.emit("uncaughtException",e);return}console.error(e)},Jn=[],gr=0,Wc=0;function Co(){for(var e=gr,t=Wc=gr=0;t<e;){var i=Jn[t];Jn[t++]=null;var l=Jn[t];Jn[t++]=null;var c=Jn[t];Jn[t++]=null;var d=Jn[t];if(Jn[t++]=null,l!==null&&c!==null){var y=l.pending;y===null?c.next=c:(c.next=y.next,y.next=c),l.pending=c}d!==0&&pm(i,c,d)}}function Oo(e,t,i,l){Jn[gr++]=e,Jn[gr++]=t,Jn[gr++]=i,Jn[gr++]=l,Wc|=l,e.lanes|=l,e=e.alternate,e!==null&&(e.lanes|=l)}function eu(e,t,i,l){return Oo(e,t,i,l),Mo(e)}function qa(e,t){return Oo(e,null,null,t),Mo(e)}function pm(e,t,i){e.lanes|=i;var l=e.alternate;l!==null&&(l.lanes|=i);for(var c=!1,d=e.return;d!==null;)d.childLanes|=i,l=d.alternate,l!==null&&(l.childLanes|=i),d.tag===22&&(e=d.stateNode,e===null||e._visibility&1||(c=!0)),e=d,d=d.return;return e.tag===3?(d=e.stateNode,c&&t!==null&&(c=31-St(i),e=d.hiddenUpdates,l=e[c],l===null?e[c]=[t]:l.push(t),t.lane=i|536870912),d):null}function Mo(e){if(50<Ul)throw Ul=0,uf=null,Error(s(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var mr={};function aT(e,t,i,l){this.tag=e,this.key=i,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=l,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Hn(e,t,i,l){return new aT(e,t,i,l)}function tu(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Ii(e,t){var i=e.alternate;return i===null?(i=Hn(e.tag,t,e.key,e.mode),i.elementType=e.elementType,i.type=e.type,i.stateNode=e.stateNode,i.alternate=e,e.alternate=i):(i.pendingProps=t,i.type=e.type,i.flags=0,i.subtreeFlags=0,i.deletions=null),i.flags=e.flags&65011712,i.childLanes=e.childLanes,i.lanes=e.lanes,i.child=e.child,i.memoizedProps=e.memoizedProps,i.memoizedState=e.memoizedState,i.updateQueue=e.updateQueue,t=e.dependencies,i.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},i.sibling=e.sibling,i.index=e.index,i.ref=e.ref,i.refCleanup=e.refCleanup,i}function gm(e,t){e.flags&=65011714;var i=e.alternate;return i===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=i.childLanes,e.lanes=i.lanes,e.child=i.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=i.memoizedProps,e.memoizedState=i.memoizedState,e.updateQueue=i.updateQueue,e.type=i.type,t=i.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function Ro(e,t,i,l,c,d){var y=0;if(l=e,typeof e=="function")tu(e)&&(y=1);else if(typeof e=="string")y=cA(e,i,pe.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case z:return e=Hn(31,i,t,c),e.elementType=z,e.lanes=d,e;case M:return Fa(i.children,c,d,t);case w:y=8,c|=24;break;case q:return e=Hn(12,i,t,c|2),e.elementType=q,e.lanes=d,e;case L:return e=Hn(13,i,t,c),e.elementType=L,e.lanes=d,e;case ce:return e=Hn(19,i,t,c),e.elementType=ce,e.lanes=d,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Q:y=10;break e;case H:y=9;break e;case te:y=11;break e;case ee:y=14;break e;case fe:y=16,l=null;break e}y=29,i=Error(s(130,e===null?"null":typeof e,"")),l=null}return t=Hn(y,i,t,c),t.elementType=e,t.type=l,t.lanes=d,t}function Fa(e,t,i,l){return e=Hn(7,e,l,t),e.lanes=i,e}function nu(e,t,i){return e=Hn(6,e,null,t),e.lanes=i,e}function mm(e){var t=Hn(18,null,null,0);return t.stateNode=e,t}function iu(e,t,i){return t=Hn(4,e.children!==null?e.children:[],e.key,t),t.lanes=i,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var hm=new WeakMap;function Wn(e,t){if(typeof e=="object"&&e!==null){var i=hm.get(e);return i!==void 0?i:(t={value:e,source:t,stack:Vn(t)},hm.set(e,t),t)}return{value:e,source:t,stack:Vn(t)}}var hr=[],br=0,Do=null,bl=0,ei=[],ti=0,ra=null,_i=1,xi="";function Bi(e,t){hr[br++]=bl,hr[br++]=Do,Do=e,bl=t}function bm(e,t,i){ei[ti++]=_i,ei[ti++]=xi,ei[ti++]=ra,ra=e;var l=_i;e=xi;var c=32-St(l)-1;l&=~(1<<c),i+=1;var d=32-St(t)+c;if(30<d){var y=c-c%5;d=(l&(1<<y)-1).toString(32),l>>=y,c-=y,_i=1<<32-St(t)+c|i<<c|l,xi=d+e}else _i=1<<d|i<<c|l,xi=e}function au(e){e.return!==null&&(Bi(e,1),bm(e,1,0))}function ru(e){for(;e===Do;)Do=hr[--br],hr[br]=null,bl=hr[--br],hr[br]=null;for(;e===ra;)ra=ei[--ti],ei[ti]=null,xi=ei[--ti],ei[ti]=null,_i=ei[--ti],ei[ti]=null}function ym(e,t){ei[ti++]=_i,ei[ti++]=xi,ei[ti++]=ra,_i=t.id,xi=t.overflow,ra=e}var an=null,Tt=null,et=!1,la=null,ni=!1,lu=Error(s(519));function oa(e){var t=Error(s(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw yl(Wn(t,e)),lu}function vm(e){var t=e.stateNode,i=e.type,l=e.memoizedProps;switch(t[It]=e,t[Bt]=l,i){case"dialog":Xe("cancel",t),Xe("close",t);break;case"iframe":case"object":case"embed":Xe("load",t);break;case"video":case"audio":for(i=0;i<ql.length;i++)Xe(ql[i],t);break;case"source":Xe("error",t);break;case"img":case"image":case"link":Xe("error",t),Xe("load",t);break;case"details":Xe("toggle",t);break;case"input":Xe("invalid",t),al(t,l.value,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name,!0);break;case"select":Xe("invalid",t);break;case"textarea":Xe("invalid",t),ze(t,l.value,l.defaultValue,l.children)}i=l.children,typeof i!="string"&&typeof i!="number"&&typeof i!="bigint"||t.textContent===""+i||l.suppressHydrationWarning===!0||Ib(t.textContent,i)?(l.popover!=null&&(Xe("beforetoggle",t),Xe("toggle",t)),l.onScroll!=null&&Xe("scroll",t),l.onScrollEnd!=null&&Xe("scrollend",t),l.onClick!=null&&(t.onclick=be),t=!0):t=!1,t||oa(e,!0)}function km(e){for(an=e.return;an;)switch(an.tag){case 5:case 31:case 13:ni=!1;return;case 27:case 3:ni=!0;return;default:an=an.return}}function yr(e){if(e!==an)return!1;if(!et)return km(e),et=!0,!1;var t=e.tag,i;if((i=t!==3&&t!==27)&&((i=t===5)&&(i=e.type,i=!(i!=="form"&&i!=="button")||wf(e.type,e.memoizedProps)),i=!i),i&&Tt&&oa(e),km(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(s(317));Tt=Pb(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(s(317));Tt=Pb(e)}else t===27?(t=Tt,Ea(e.type)?(e=Of,Of=null,Tt=e):Tt=t):Tt=an?ai(e.stateNode.nextSibling):null;return!0}function Ga(){Tt=an=null,et=!1}function ou(){var e=la;return e!==null&&(Mn===null?Mn=e:Mn.push.apply(Mn,e),la=null),e}function yl(e){la===null?la=[e]:la.push(e)}var su=T(null),ja=null,Ui=null;function sa(e,t,i){J(su,t._currentValue),t._currentValue=i}function Hi(e){e._currentValue=su.current,_(su)}function cu(e,t,i){for(;e!==null;){var l=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,l!==null&&(l.childLanes|=t)):l!==null&&(l.childLanes&t)!==t&&(l.childLanes|=t),e===i)break;e=e.return}}function uu(e,t,i,l){var c=e.child;for(c!==null&&(c.return=e);c!==null;){var d=c.dependencies;if(d!==null){var y=c.child;d=d.firstContext;e:for(;d!==null;){var E=d;d=c;for(var A=0;A<t.length;A++)if(E.context===t[A]){d.lanes|=i,E=d.alternate,E!==null&&(E.lanes|=i),cu(d.return,i,e),l||(y=null);break e}d=E.next}}else if(c.tag===18){if(y=c.return,y===null)throw Error(s(341));y.lanes|=i,d=y.alternate,d!==null&&(d.lanes|=i),cu(y,i,e),y=null}else y=c.child;if(y!==null)y.return=c;else for(y=c;y!==null;){if(y===e){y=null;break}if(c=y.sibling,c!==null){c.return=y.return,y=c;break}y=y.return}c=y}}function vr(e,t,i,l){e=null;for(var c=t,d=!1;c!==null;){if(!d){if((c.flags&524288)!==0)d=!0;else if((c.flags&262144)!==0)break}if(c.tag===10){var y=c.alternate;if(y===null)throw Error(s(387));if(y=y.memoizedProps,y!==null){var E=c.type;Un(c.pendingProps.value,y.value)||(e!==null?e.push(E):e=[E])}}else if(c===Ue.current){if(y=c.alternate,y===null)throw Error(s(387));y.memoizedState.memoizedState!==c.memoizedState.memoizedState&&(e!==null?e.push(Pl):e=[Pl])}c=c.return}e!==null&&uu(t,e,i,l),t.flags|=262144}function Lo(e){for(e=e.firstContext;e!==null;){if(!Un(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Ya(e){ja=e,Ui=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function rn(e){return Em(ja,e)}function zo(e,t){return ja===null&&Ya(e),Em(e,t)}function Em(e,t){var i=t._currentValue;if(t={context:t,memoizedValue:i,next:null},Ui===null){if(e===null)throw Error(s(308));Ui=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else Ui=Ui.next=t;return i}var rT=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(i,l){e.push(l)}};this.abort=function(){t.aborted=!0,e.forEach(function(i){return i()})}},lT=a.unstable_scheduleCallback,oT=a.unstable_NormalPriority,jt={$$typeof:Q,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function fu(){return{controller:new rT,data:new Map,refCount:0}}function vl(e){e.refCount--,e.refCount===0&&lT(oT,function(){e.controller.abort()})}var kl=null,du=0,kr=0,Er=null;function sT(e,t){if(kl===null){var i=kl=[];du=0,kr=hf(),Er={status:"pending",value:void 0,then:function(l){i.push(l)}}}return du++,t.then(_m,_m),t}function _m(){if(--du===0&&kl!==null){Er!==null&&(Er.status="fulfilled");var e=kl;kl=null,kr=0,Er=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function cT(e,t){var i=[],l={status:"pending",value:null,reason:null,then:function(c){i.push(c)}};return e.then(function(){l.status="fulfilled",l.value=t;for(var c=0;c<i.length;c++)(0,i[c])(t)},function(c){for(l.status="rejected",l.reason=c,c=0;c<i.length;c++)(0,i[c])(void 0)}),l}var xm=G.S;G.S=function(e,t){lb=lt(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&sT(e,t),xm!==null&&xm(e,t)};var Pa=T(null);function pu(){var e=Pa.current;return e!==null?e:_t.pooledCache}function Io(e,t){t===null?J(Pa,Pa.current):J(Pa,t.pool)}function Sm(){var e=pu();return e===null?null:{parent:jt._currentValue,pool:e}}var _r=Error(s(460)),gu=Error(s(474)),Bo=Error(s(542)),Uo={then:function(){}};function wm(e){return e=e.status,e==="fulfilled"||e==="rejected"}function Tm(e,t,i){switch(i=e[i],i===void 0?e.push(t):i!==t&&(t.then(be,be),t=i),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Nm(e),e;default:if(typeof t.status=="string")t.then(be,be);else{if(e=_t,e!==null&&100<e.shellSuspendCounter)throw Error(s(482));e=t,e.status="pending",e.then(function(l){if(t.status==="pending"){var c=t;c.status="fulfilled",c.value=l}},function(l){if(t.status==="pending"){var c=t;c.status="rejected",c.reason=l}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Nm(e),e}throw Va=t,_r}}function Ka(e){try{var t=e._init;return t(e._payload)}catch(i){throw i!==null&&typeof i=="object"&&typeof i.then=="function"?(Va=i,_r):i}}var Va=null;function Am(){if(Va===null)throw Error(s(459));var e=Va;return Va=null,e}function Nm(e){if(e===_r||e===Bo)throw Error(s(483))}var xr=null,El=0;function Ho(e){var t=El;return El+=1,xr===null&&(xr=[]),Tm(xr,e,t)}function _l(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function qo(e,t){throw t.$$typeof===k?Error(s(525)):(e=Object.prototype.toString.call(t),Error(s(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function Cm(e){function t(R,O){if(e){var I=R.deletions;I===null?(R.deletions=[O],R.flags|=16):I.push(O)}}function i(R,O){if(!e)return null;for(;O!==null;)t(R,O),O=O.sibling;return null}function l(R){for(var O=new Map;R!==null;)R.key!==null?O.set(R.key,R):O.set(R.index,R),R=R.sibling;return O}function c(R,O){return R=Ii(R,O),R.index=0,R.sibling=null,R}function d(R,O,I){return R.index=I,e?(I=R.alternate,I!==null?(I=I.index,I<O?(R.flags|=67108866,O):I):(R.flags|=67108866,O)):(R.flags|=1048576,O)}function y(R){return e&&R.alternate===null&&(R.flags|=67108866),R}function E(R,O,I,$){return O===null||O.tag!==6?(O=nu(I,R.mode,$),O.return=R,O):(O=c(O,I),O.return=R,O)}function A(R,O,I,$){var xe=I.type;return xe===M?P(R,O,I.props.children,$,I.key):O!==null&&(O.elementType===xe||typeof xe=="object"&&xe!==null&&xe.$$typeof===fe&&Ka(xe)===O.type)?(O=c(O,I.props),_l(O,I),O.return=R,O):(O=Ro(I.type,I.key,I.props,null,R.mode,$),_l(O,I),O.return=R,O)}function B(R,O,I,$){return O===null||O.tag!==4||O.stateNode.containerInfo!==I.containerInfo||O.stateNode.implementation!==I.implementation?(O=iu(I,R.mode,$),O.return=R,O):(O=c(O,I.children||[]),O.return=R,O)}function P(R,O,I,$,xe){return O===null||O.tag!==7?(O=Fa(I,R.mode,$,xe),O.return=R,O):(O=c(O,I),O.return=R,O)}function Z(R,O,I){if(typeof O=="string"&&O!==""||typeof O=="number"||typeof O=="bigint")return O=nu(""+O,R.mode,I),O.return=R,O;if(typeof O=="object"&&O!==null){switch(O.$$typeof){case x:return I=Ro(O.type,O.key,O.props,null,R.mode,I),_l(I,O),I.return=R,I;case C:return O=iu(O,R.mode,I),O.return=R,O;case fe:return O=Ka(O),Z(R,O,I)}if(Y(O)||_e(O))return O=Fa(O,R.mode,I,null),O.return=R,O;if(typeof O.then=="function")return Z(R,Ho(O),I);if(O.$$typeof===Q)return Z(R,zo(R,O),I);qo(R,O)}return null}function U(R,O,I,$){var xe=O!==null?O.key:null;if(typeof I=="string"&&I!==""||typeof I=="number"||typeof I=="bigint")return xe!==null?null:E(R,O,""+I,$);if(typeof I=="object"&&I!==null){switch(I.$$typeof){case x:return I.key===xe?A(R,O,I,$):null;case C:return I.key===xe?B(R,O,I,$):null;case fe:return I=Ka(I),U(R,O,I,$)}if(Y(I)||_e(I))return xe!==null?null:P(R,O,I,$,null);if(typeof I.then=="function")return U(R,O,Ho(I),$);if(I.$$typeof===Q)return U(R,O,zo(R,I),$);qo(R,I)}return null}function F(R,O,I,$,xe){if(typeof $=="string"&&$!==""||typeof $=="number"||typeof $=="bigint")return R=R.get(I)||null,E(O,R,""+$,xe);if(typeof $=="object"&&$!==null){switch($.$$typeof){case x:return R=R.get($.key===null?I:$.key)||null,A(O,R,$,xe);case C:return R=R.get($.key===null?I:$.key)||null,B(O,R,$,xe);case fe:return $=Ka($),F(R,O,I,$,xe)}if(Y($)||_e($))return R=R.get(I)||null,P(O,R,$,xe,null);if(typeof $.then=="function")return F(R,O,I,Ho($),xe);if($.$$typeof===Q)return F(R,O,I,zo(O,$),xe);qo(O,$)}return null}function ye(R,O,I,$){for(var xe=null,at=null,Ee=O,Ye=O=0,We=null;Ee!==null&&Ye<I.length;Ye++){Ee.index>Ye?(We=Ee,Ee=null):We=Ee.sibling;var rt=U(R,Ee,I[Ye],$);if(rt===null){Ee===null&&(Ee=We);break}e&&Ee&&rt.alternate===null&&t(R,Ee),O=d(rt,O,Ye),at===null?xe=rt:at.sibling=rt,at=rt,Ee=We}if(Ye===I.length)return i(R,Ee),et&&Bi(R,Ye),xe;if(Ee===null){for(;Ye<I.length;Ye++)Ee=Z(R,I[Ye],$),Ee!==null&&(O=d(Ee,O,Ye),at===null?xe=Ee:at.sibling=Ee,at=Ee);return et&&Bi(R,Ye),xe}for(Ee=l(Ee);Ye<I.length;Ye++)We=F(Ee,R,Ye,I[Ye],$),We!==null&&(e&&We.alternate!==null&&Ee.delete(We.key===null?Ye:We.key),O=d(We,O,Ye),at===null?xe=We:at.sibling=We,at=We);return e&&Ee.forEach(function(Ta){return t(R,Ta)}),et&&Bi(R,Ye),xe}function Ne(R,O,I,$){if(I==null)throw Error(s(151));for(var xe=null,at=null,Ee=O,Ye=O=0,We=null,rt=I.next();Ee!==null&&!rt.done;Ye++,rt=I.next()){Ee.index>Ye?(We=Ee,Ee=null):We=Ee.sibling;var Ta=U(R,Ee,rt.value,$);if(Ta===null){Ee===null&&(Ee=We);break}e&&Ee&&Ta.alternate===null&&t(R,Ee),O=d(Ta,O,Ye),at===null?xe=Ta:at.sibling=Ta,at=Ta,Ee=We}if(rt.done)return i(R,Ee),et&&Bi(R,Ye),xe;if(Ee===null){for(;!rt.done;Ye++,rt=I.next())rt=Z(R,rt.value,$),rt!==null&&(O=d(rt,O,Ye),at===null?xe=rt:at.sibling=rt,at=rt);return et&&Bi(R,Ye),xe}for(Ee=l(Ee);!rt.done;Ye++,rt=I.next())rt=F(Ee,R,Ye,rt.value,$),rt!==null&&(e&&rt.alternate!==null&&Ee.delete(rt.key===null?Ye:rt.key),O=d(rt,O,Ye),at===null?xe=rt:at.sibling=rt,at=rt);return e&&Ee.forEach(function(kA){return t(R,kA)}),et&&Bi(R,Ye),xe}function bt(R,O,I,$){if(typeof I=="object"&&I!==null&&I.type===M&&I.key===null&&(I=I.props.children),typeof I=="object"&&I!==null){switch(I.$$typeof){case x:e:{for(var xe=I.key;O!==null;){if(O.key===xe){if(xe=I.type,xe===M){if(O.tag===7){i(R,O.sibling),$=c(O,I.props.children),$.return=R,R=$;break e}}else if(O.elementType===xe||typeof xe=="object"&&xe!==null&&xe.$$typeof===fe&&Ka(xe)===O.type){i(R,O.sibling),$=c(O,I.props),_l($,I),$.return=R,R=$;break e}i(R,O);break}else t(R,O);O=O.sibling}I.type===M?($=Fa(I.props.children,R.mode,$,I.key),$.return=R,R=$):($=Ro(I.type,I.key,I.props,null,R.mode,$),_l($,I),$.return=R,R=$)}return y(R);case C:e:{for(xe=I.key;O!==null;){if(O.key===xe)if(O.tag===4&&O.stateNode.containerInfo===I.containerInfo&&O.stateNode.implementation===I.implementation){i(R,O.sibling),$=c(O,I.children||[]),$.return=R,R=$;break e}else{i(R,O);break}else t(R,O);O=O.sibling}$=iu(I,R.mode,$),$.return=R,R=$}return y(R);case fe:return I=Ka(I),bt(R,O,I,$)}if(Y(I))return ye(R,O,I,$);if(_e(I)){if(xe=_e(I),typeof xe!="function")throw Error(s(150));return I=xe.call(I),Ne(R,O,I,$)}if(typeof I.then=="function")return bt(R,O,Ho(I),$);if(I.$$typeof===Q)return bt(R,O,zo(R,I),$);qo(R,I)}return typeof I=="string"&&I!==""||typeof I=="number"||typeof I=="bigint"?(I=""+I,O!==null&&O.tag===6?(i(R,O.sibling),$=c(O,I),$.return=R,R=$):(i(R,O),$=nu(I,R.mode,$),$.return=R,R=$),y(R)):i(R,O)}return function(R,O,I,$){try{El=0;var xe=bt(R,O,I,$);return xr=null,xe}catch(Ee){if(Ee===_r||Ee===Bo)throw Ee;var at=Hn(29,Ee,null,R.mode);return at.lanes=$,at.return=R,at}}}var $a=Cm(!0),Om=Cm(!1),ca=!1;function mu(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function hu(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function ua(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function fa(e,t,i){var l=e.updateQueue;if(l===null)return null;if(l=l.shared,(st&2)!==0){var c=l.pending;return c===null?t.next=t:(t.next=c.next,c.next=t),l.pending=t,t=Mo(e),pm(e,null,i),t}return Oo(e,l,t,i),Mo(e)}function xl(e,t,i){if(t=t.updateQueue,t!==null&&(t=t.shared,(i&4194048)!==0)){var l=t.lanes;l&=e.pendingLanes,i|=l,t.lanes=i,Ge(e,i)}}function bu(e,t){var i=e.updateQueue,l=e.alternate;if(l!==null&&(l=l.updateQueue,i===l)){var c=null,d=null;if(i=i.firstBaseUpdate,i!==null){do{var y={lane:i.lane,tag:i.tag,payload:i.payload,callback:null,next:null};d===null?c=d=y:d=d.next=y,i=i.next}while(i!==null);d===null?c=d=t:d=d.next=t}else c=d=t;i={baseState:l.baseState,firstBaseUpdate:c,lastBaseUpdate:d,shared:l.shared,callbacks:l.callbacks},e.updateQueue=i;return}e=i.lastBaseUpdate,e===null?i.firstBaseUpdate=t:e.next=t,i.lastBaseUpdate=t}var yu=!1;function Sl(){if(yu){var e=Er;if(e!==null)throw e}}function wl(e,t,i,l){yu=!1;var c=e.updateQueue;ca=!1;var d=c.firstBaseUpdate,y=c.lastBaseUpdate,E=c.shared.pending;if(E!==null){c.shared.pending=null;var A=E,B=A.next;A.next=null,y===null?d=B:y.next=B,y=A;var P=e.alternate;P!==null&&(P=P.updateQueue,E=P.lastBaseUpdate,E!==y&&(E===null?P.firstBaseUpdate=B:E.next=B,P.lastBaseUpdate=A))}if(d!==null){var Z=c.baseState;y=0,P=B=A=null,E=d;do{var U=E.lane&-536870913,F=U!==E.lane;if(F?(Je&U)===U:(l&U)===U){U!==0&&U===kr&&(yu=!0),P!==null&&(P=P.next={lane:0,tag:E.tag,payload:E.payload,callback:null,next:null});e:{var ye=e,Ne=E;U=t;var bt=i;switch(Ne.tag){case 1:if(ye=Ne.payload,typeof ye=="function"){Z=ye.call(bt,Z,U);break e}Z=ye;break e;case 3:ye.flags=ye.flags&-65537|128;case 0:if(ye=Ne.payload,U=typeof ye=="function"?ye.call(bt,Z,U):ye,U==null)break e;Z=v({},Z,U);break e;case 2:ca=!0}}U=E.callback,U!==null&&(e.flags|=64,F&&(e.flags|=8192),F=c.callbacks,F===null?c.callbacks=[U]:F.push(U))}else F={lane:U,tag:E.tag,payload:E.payload,callback:E.callback,next:null},P===null?(B=P=F,A=Z):P=P.next=F,y|=U;if(E=E.next,E===null){if(E=c.shared.pending,E===null)break;F=E,E=F.next,F.next=null,c.lastBaseUpdate=F,c.shared.pending=null}}while(!0);P===null&&(A=Z),c.baseState=A,c.firstBaseUpdate=B,c.lastBaseUpdate=P,d===null&&(c.shared.lanes=0),ha|=y,e.lanes=y,e.memoizedState=Z}}function Mm(e,t){if(typeof e!="function")throw Error(s(191,e));e.call(t)}function Rm(e,t){var i=e.callbacks;if(i!==null)for(e.callbacks=null,e=0;e<i.length;e++)Mm(i[e],t)}var Sr=T(null),Fo=T(0);function Dm(e,t){e=$i,J(Fo,e),J(Sr,t),$i=e|t.baseLanes}function vu(){J(Fo,$i),J(Sr,Sr.current)}function ku(){$i=Fo.current,_(Sr),_(Fo)}var qn=T(null),ii=null;function da(e){var t=e.alternate;J(qt,qt.current&1),J(qn,e),ii===null&&(t===null||Sr.current!==null||t.memoizedState!==null)&&(ii=e)}function Eu(e){J(qt,qt.current),J(qn,e),ii===null&&(ii=e)}function Lm(e){e.tag===22?(J(qt,qt.current),J(qn,e),ii===null&&(ii=e)):pa()}function pa(){J(qt,qt.current),J(qn,qn.current)}function Fn(e){_(qn),ii===e&&(ii=null),_(qt)}var qt=T(0);function Go(e){for(var t=e;t!==null;){if(t.tag===13){var i=t.memoizedState;if(i!==null&&(i=i.dehydrated,i===null||Nf(i)||Cf(i)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder==="forwards"||t.memoizedProps.revealOrder==="backwards"||t.memoizedProps.revealOrder==="unstable_legacy-backwards"||t.memoizedProps.revealOrder==="together")){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var qi=0,je=null,mt=null,Yt=null,jo=!1,wr=!1,Za=!1,Yo=0,Tl=0,Tr=null,uT=0;function Lt(){throw Error(s(321))}function _u(e,t){if(t===null)return!1;for(var i=0;i<t.length&&i<e.length;i++)if(!Un(e[i],t[i]))return!1;return!0}function xu(e,t,i,l,c,d){return qi=d,je=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,G.H=e===null||e.memoizedState===null?bh:Uu,Za=!1,d=i(l,c),Za=!1,wr&&(d=Im(t,i,l,c)),zm(e),d}function zm(e){G.H=Cl;var t=mt!==null&&mt.next!==null;if(qi=0,Yt=mt=je=null,jo=!1,Tl=0,Tr=null,t)throw Error(s(300));e===null||Pt||(e=e.dependencies,e!==null&&Lo(e)&&(Pt=!0))}function Im(e,t,i,l){je=e;var c=0;do{if(wr&&(Tr=null),Tl=0,wr=!1,25<=c)throw Error(s(301));if(c+=1,Yt=mt=null,e.updateQueue!=null){var d=e.updateQueue;d.lastEffect=null,d.events=null,d.stores=null,d.memoCache!=null&&(d.memoCache.index=0)}G.H=yh,d=t(i,l)}while(wr);return d}function fT(){var e=G.H,t=e.useState()[0];return t=typeof t.then=="function"?Al(t):t,e=e.useState()[0],(mt!==null?mt.memoizedState:null)!==e&&(je.flags|=1024),t}function Su(){var e=Yo!==0;return Yo=0,e}function wu(e,t,i){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i}function Tu(e){if(jo){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}jo=!1}qi=0,Yt=mt=je=null,wr=!1,Tl=Yo=0,Tr=null}function En(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Yt===null?je.memoizedState=Yt=e:Yt=Yt.next=e,Yt}function Ft(){if(mt===null){var e=je.alternate;e=e!==null?e.memoizedState:null}else e=mt.next;var t=Yt===null?je.memoizedState:Yt.next;if(t!==null)Yt=t,mt=e;else{if(e===null)throw je.alternate===null?Error(s(467)):Error(s(310));mt=e,e={memoizedState:mt.memoizedState,baseState:mt.baseState,baseQueue:mt.baseQueue,queue:mt.queue,next:null},Yt===null?je.memoizedState=Yt=e:Yt=Yt.next=e}return Yt}function Po(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Al(e){var t=Tl;return Tl+=1,Tr===null&&(Tr=[]),e=Tm(Tr,e,t),t=je,(Yt===null?t.memoizedState:Yt.next)===null&&(t=t.alternate,G.H=t===null||t.memoizedState===null?bh:Uu),e}function Ko(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return Al(e);if(e.$$typeof===Q)return rn(e)}throw Error(s(438,String(e)))}function Au(e){var t=null,i=je.updateQueue;if(i!==null&&(t=i.memoCache),t==null){var l=je.alternate;l!==null&&(l=l.updateQueue,l!==null&&(l=l.memoCache,l!=null&&(t={data:l.data.map(function(c){return c.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),i===null&&(i=Po(),je.updateQueue=i),i.memoCache=t,i=t.data[t.index],i===void 0)for(i=t.data[t.index]=Array(e),l=0;l<e;l++)i[l]=se;return t.index++,i}function Fi(e,t){return typeof t=="function"?t(e):t}function Vo(e){var t=Ft();return Nu(t,mt,e)}function Nu(e,t,i){var l=e.queue;if(l===null)throw Error(s(311));l.lastRenderedReducer=i;var c=e.baseQueue,d=l.pending;if(d!==null){if(c!==null){var y=c.next;c.next=d.next,d.next=y}t.baseQueue=c=d,l.pending=null}if(d=e.baseState,c===null)e.memoizedState=d;else{t=c.next;var E=y=null,A=null,B=t,P=!1;do{var Z=B.lane&-536870913;if(Z!==B.lane?(Je&Z)===Z:(qi&Z)===Z){var U=B.revertLane;if(U===0)A!==null&&(A=A.next={lane:0,revertLane:0,gesture:null,action:B.action,hasEagerState:B.hasEagerState,eagerState:B.eagerState,next:null}),Z===kr&&(P=!0);else if((qi&U)===U){B=B.next,U===kr&&(P=!0);continue}else Z={lane:0,revertLane:B.revertLane,gesture:null,action:B.action,hasEagerState:B.hasEagerState,eagerState:B.eagerState,next:null},A===null?(E=A=Z,y=d):A=A.next=Z,je.lanes|=U,ha|=U;Z=B.action,Za&&i(d,Z),d=B.hasEagerState?B.eagerState:i(d,Z)}else U={lane:Z,revertLane:B.revertLane,gesture:B.gesture,action:B.action,hasEagerState:B.hasEagerState,eagerState:B.eagerState,next:null},A===null?(E=A=U,y=d):A=A.next=U,je.lanes|=Z,ha|=Z;B=B.next}while(B!==null&&B!==t);if(A===null?y=d:A.next=E,!Un(d,e.memoizedState)&&(Pt=!0,P&&(i=Er,i!==null)))throw i;e.memoizedState=d,e.baseState=y,e.baseQueue=A,l.lastRenderedState=d}return c===null&&(l.lanes=0),[e.memoizedState,l.dispatch]}function Cu(e){var t=Ft(),i=t.queue;if(i===null)throw Error(s(311));i.lastRenderedReducer=e;var l=i.dispatch,c=i.pending,d=t.memoizedState;if(c!==null){i.pending=null;var y=c=c.next;do d=e(d,y.action),y=y.next;while(y!==c);Un(d,t.memoizedState)||(Pt=!0),t.memoizedState=d,t.baseQueue===null&&(t.baseState=d),i.lastRenderedState=d}return[d,l]}function Bm(e,t,i){var l=je,c=Ft(),d=et;if(d){if(i===void 0)throw Error(s(407));i=i()}else i=t();var y=!Un((mt||c).memoizedState,i);if(y&&(c.memoizedState=i,Pt=!0),c=c.queue,Ru(qm.bind(null,l,c,e),[e]),c.getSnapshot!==t||y||Yt!==null&&Yt.memoizedState.tag&1){if(l.flags|=2048,Ar(9,{destroy:void 0},Hm.bind(null,l,c,i,t),null),_t===null)throw Error(s(349));d||(qi&127)!==0||Um(l,t,i)}return i}function Um(e,t,i){e.flags|=16384,e={getSnapshot:t,value:i},t=je.updateQueue,t===null?(t=Po(),je.updateQueue=t,t.stores=[e]):(i=t.stores,i===null?t.stores=[e]:i.push(e))}function Hm(e,t,i,l){t.value=i,t.getSnapshot=l,Fm(t)&&Gm(e)}function qm(e,t,i){return i(function(){Fm(t)&&Gm(e)})}function Fm(e){var t=e.getSnapshot;e=e.value;try{var i=t();return!Un(e,i)}catch{return!0}}function Gm(e){var t=qa(e,2);t!==null&&Rn(t,e,2)}function Ou(e){var t=En();if(typeof e=="function"){var i=e;if(e=i(),Za){Et(!0);try{i()}finally{Et(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Fi,lastRenderedState:e},t}function jm(e,t,i,l){return e.baseState=i,Nu(e,mt,typeof l=="function"?l:Fi)}function dT(e,t,i,l,c){if(Xo(e))throw Error(s(485));if(e=t.action,e!==null){var d={payload:c,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(y){d.listeners.push(y)}};G.T!==null?i(!0):d.isTransition=!1,l(d),i=t.pending,i===null?(d.next=t.pending=d,Ym(t,d)):(d.next=i.next,t.pending=i.next=d)}}function Ym(e,t){var i=t.action,l=t.payload,c=e.state;if(t.isTransition){var d=G.T,y={};G.T=y;try{var E=i(c,l),A=G.S;A!==null&&A(y,E),Pm(e,t,E)}catch(B){Mu(e,t,B)}finally{d!==null&&y.types!==null&&(d.types=y.types),G.T=d}}else try{d=i(c,l),Pm(e,t,d)}catch(B){Mu(e,t,B)}}function Pm(e,t,i){i!==null&&typeof i=="object"&&typeof i.then=="function"?i.then(function(l){Km(e,t,l)},function(l){return Mu(e,t,l)}):Km(e,t,i)}function Km(e,t,i){t.status="fulfilled",t.value=i,Vm(t),e.state=i,t=e.pending,t!==null&&(i=t.next,i===t?e.pending=null:(i=i.next,t.next=i,Ym(e,i)))}function Mu(e,t,i){var l=e.pending;if(e.pending=null,l!==null){l=l.next;do t.status="rejected",t.reason=i,Vm(t),t=t.next;while(t!==l)}e.action=null}function Vm(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function $m(e,t){return t}function Zm(e,t){if(et){var i=_t.formState;if(i!==null){e:{var l=je;if(et){if(Tt){t:{for(var c=Tt,d=ni;c.nodeType!==8;){if(!d){c=null;break t}if(c=ai(c.nextSibling),c===null){c=null;break t}}d=c.data,c=d==="F!"||d==="F"?c:null}if(c){Tt=ai(c.nextSibling),l=c.data==="F!";break e}}oa(l)}l=!1}l&&(t=i[0])}}return i=En(),i.memoizedState=i.baseState=t,l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:$m,lastRenderedState:t},i.queue=l,i=gh.bind(null,je,l),l.dispatch=i,l=Ou(!1),d=Bu.bind(null,je,!1,l.queue),l=En(),c={state:t,dispatch:null,action:e,pending:null},l.queue=c,i=dT.bind(null,je,c,d,i),c.dispatch=i,l.memoizedState=e,[t,i,!1]}function Xm(e){var t=Ft();return Qm(t,mt,e)}function Qm(e,t,i){if(t=Nu(e,t,$m)[0],e=Vo(Fi)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var l=Al(t)}catch(y){throw y===_r?Bo:y}else l=t;t=Ft();var c=t.queue,d=c.dispatch;return i!==t.memoizedState&&(je.flags|=2048,Ar(9,{destroy:void 0},pT.bind(null,c,i),null)),[l,d,e]}function pT(e,t){e.action=t}function Jm(e){var t=Ft(),i=mt;if(i!==null)return Qm(t,i,e);Ft(),t=t.memoizedState,i=Ft();var l=i.queue.dispatch;return i.memoizedState=e,[t,l,!1]}function Ar(e,t,i,l){return e={tag:e,create:i,deps:l,inst:t,next:null},t=je.updateQueue,t===null&&(t=Po(),je.updateQueue=t),i=t.lastEffect,i===null?t.lastEffect=e.next=e:(l=i.next,i.next=e,e.next=l,t.lastEffect=e),e}function Wm(){return Ft().memoizedState}function $o(e,t,i,l){var c=En();je.flags|=e,c.memoizedState=Ar(1|t,{destroy:void 0},i,l===void 0?null:l)}function Zo(e,t,i,l){var c=Ft();l=l===void 0?null:l;var d=c.memoizedState.inst;mt!==null&&l!==null&&_u(l,mt.memoizedState.deps)?c.memoizedState=Ar(t,d,i,l):(je.flags|=e,c.memoizedState=Ar(1|t,d,i,l))}function eh(e,t){$o(8390656,8,e,t)}function Ru(e,t){Zo(2048,8,e,t)}function gT(e){je.flags|=4;var t=je.updateQueue;if(t===null)t=Po(),je.updateQueue=t,t.events=[e];else{var i=t.events;i===null?t.events=[e]:i.push(e)}}function th(e){var t=Ft().memoizedState;return gT({ref:t,nextImpl:e}),function(){if((st&2)!==0)throw Error(s(440));return t.impl.apply(void 0,arguments)}}function nh(e,t){return Zo(4,2,e,t)}function ih(e,t){return Zo(4,4,e,t)}function ah(e,t){if(typeof t=="function"){e=e();var i=t(e);return function(){typeof i=="function"?i():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function rh(e,t,i){i=i!=null?i.concat([e]):null,Zo(4,4,ah.bind(null,t,e),i)}function Du(){}function lh(e,t){var i=Ft();t=t===void 0?null:t;var l=i.memoizedState;return t!==null&&_u(t,l[1])?l[0]:(i.memoizedState=[e,t],e)}function oh(e,t){var i=Ft();t=t===void 0?null:t;var l=i.memoizedState;if(t!==null&&_u(t,l[1]))return l[0];if(l=e(),Za){Et(!0);try{e()}finally{Et(!1)}}return i.memoizedState=[l,t],l}function Lu(e,t,i){return i===void 0||(qi&1073741824)!==0&&(Je&261930)===0?e.memoizedState=t:(e.memoizedState=i,e=sb(),je.lanes|=e,ha|=e,i)}function sh(e,t,i,l){return Un(i,t)?i:Sr.current!==null?(e=Lu(e,i,l),Un(e,t)||(Pt=!0),e):(qi&42)===0||(qi&1073741824)!==0&&(Je&261930)===0?(Pt=!0,e.memoizedState=i):(e=sb(),je.lanes|=e,ha|=e,t)}function ch(e,t,i,l,c){var d=K.p;K.p=d!==0&&8>d?d:8;var y=G.T,E={};G.T=E,Bu(e,!1,t,i);try{var A=c(),B=G.S;if(B!==null&&B(E,A),A!==null&&typeof A=="object"&&typeof A.then=="function"){var P=cT(A,l);Nl(e,t,P,Yn(e))}else Nl(e,t,l,Yn(e))}catch(Z){Nl(e,t,{then:function(){},status:"rejected",reason:Z},Yn())}finally{K.p=d,y!==null&&E.types!==null&&(y.types=E.types),G.T=y}}function mT(){}function zu(e,t,i,l){if(e.tag!==5)throw Error(s(476));var c=uh(e).queue;ch(e,c,t,ve,i===null?mT:function(){return fh(e),i(l)})}function uh(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:ve,baseState:ve,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Fi,lastRenderedState:ve},next:null};var i={};return t.next={memoizedState:i,baseState:i,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Fi,lastRenderedState:i},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function fh(e){var t=uh(e);t.next===null&&(t=e.alternate.memoizedState),Nl(e,t.next.queue,{},Yn())}function Iu(){return rn(Pl)}function dh(){return Ft().memoizedState}function ph(){return Ft().memoizedState}function hT(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var i=Yn();e=ua(i);var l=fa(t,e,i);l!==null&&(Rn(l,t,i),xl(l,t,i)),t={cache:fu()},e.payload=t;return}t=t.return}}function bT(e,t,i){var l=Yn();i={lane:l,revertLane:0,gesture:null,action:i,hasEagerState:!1,eagerState:null,next:null},Xo(e)?mh(t,i):(i=eu(e,t,i,l),i!==null&&(Rn(i,e,l),hh(i,t,l)))}function gh(e,t,i){var l=Yn();Nl(e,t,i,l)}function Nl(e,t,i,l){var c={lane:l,revertLane:0,gesture:null,action:i,hasEagerState:!1,eagerState:null,next:null};if(Xo(e))mh(t,c);else{var d=e.alternate;if(e.lanes===0&&(d===null||d.lanes===0)&&(d=t.lastRenderedReducer,d!==null))try{var y=t.lastRenderedState,E=d(y,i);if(c.hasEagerState=!0,c.eagerState=E,Un(E,y))return Oo(e,t,c,0),_t===null&&Co(),!1}catch{}if(i=eu(e,t,c,l),i!==null)return Rn(i,e,l),hh(i,t,l),!0}return!1}function Bu(e,t,i,l){if(l={lane:2,revertLane:hf(),gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},Xo(e)){if(t)throw Error(s(479))}else t=eu(e,i,l,2),t!==null&&Rn(t,e,2)}function Xo(e){var t=e.alternate;return e===je||t!==null&&t===je}function mh(e,t){wr=jo=!0;var i=e.pending;i===null?t.next=t:(t.next=i.next,i.next=t),e.pending=t}function hh(e,t,i){if((i&4194048)!==0){var l=t.lanes;l&=e.pendingLanes,i|=l,t.lanes=i,Ge(e,i)}}var Cl={readContext:rn,use:Ko,useCallback:Lt,useContext:Lt,useEffect:Lt,useImperativeHandle:Lt,useLayoutEffect:Lt,useInsertionEffect:Lt,useMemo:Lt,useReducer:Lt,useRef:Lt,useState:Lt,useDebugValue:Lt,useDeferredValue:Lt,useTransition:Lt,useSyncExternalStore:Lt,useId:Lt,useHostTransitionStatus:Lt,useFormState:Lt,useActionState:Lt,useOptimistic:Lt,useMemoCache:Lt,useCacheRefresh:Lt};Cl.useEffectEvent=Lt;var bh={readContext:rn,use:Ko,useCallback:function(e,t){return En().memoizedState=[e,t===void 0?null:t],e},useContext:rn,useEffect:eh,useImperativeHandle:function(e,t,i){i=i!=null?i.concat([e]):null,$o(4194308,4,ah.bind(null,t,e),i)},useLayoutEffect:function(e,t){return $o(4194308,4,e,t)},useInsertionEffect:function(e,t){$o(4,2,e,t)},useMemo:function(e,t){var i=En();t=t===void 0?null:t;var l=e();if(Za){Et(!0);try{e()}finally{Et(!1)}}return i.memoizedState=[l,t],l},useReducer:function(e,t,i){var l=En();if(i!==void 0){var c=i(t);if(Za){Et(!0);try{i(t)}finally{Et(!1)}}}else c=t;return l.memoizedState=l.baseState=c,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:c},l.queue=e,e=e.dispatch=bT.bind(null,je,e),[l.memoizedState,e]},useRef:function(e){var t=En();return e={current:e},t.memoizedState=e},useState:function(e){e=Ou(e);var t=e.queue,i=gh.bind(null,je,t);return t.dispatch=i,[e.memoizedState,i]},useDebugValue:Du,useDeferredValue:function(e,t){var i=En();return Lu(i,e,t)},useTransition:function(){var e=Ou(!1);return e=ch.bind(null,je,e.queue,!0,!1),En().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,i){var l=je,c=En();if(et){if(i===void 0)throw Error(s(407));i=i()}else{if(i=t(),_t===null)throw Error(s(349));(Je&127)!==0||Um(l,t,i)}c.memoizedState=i;var d={value:i,getSnapshot:t};return c.queue=d,eh(qm.bind(null,l,d,e),[e]),l.flags|=2048,Ar(9,{destroy:void 0},Hm.bind(null,l,d,i,t),null),i},useId:function(){var e=En(),t=_t.identifierPrefix;if(et){var i=xi,l=_i;i=(l&~(1<<32-St(l)-1)).toString(32)+i,t="_"+t+"R_"+i,i=Yo++,0<i&&(t+="H"+i.toString(32)),t+="_"}else i=uT++,t="_"+t+"r_"+i.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:Iu,useFormState:Zm,useActionState:Zm,useOptimistic:function(e){var t=En();t.memoizedState=t.baseState=e;var i={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=i,t=Bu.bind(null,je,!0,i),i.dispatch=t,[e,t]},useMemoCache:Au,useCacheRefresh:function(){return En().memoizedState=hT.bind(null,je)},useEffectEvent:function(e){var t=En(),i={impl:e};return t.memoizedState=i,function(){if((st&2)!==0)throw Error(s(440));return i.impl.apply(void 0,arguments)}}},Uu={readContext:rn,use:Ko,useCallback:lh,useContext:rn,useEffect:Ru,useImperativeHandle:rh,useInsertionEffect:nh,useLayoutEffect:ih,useMemo:oh,useReducer:Vo,useRef:Wm,useState:function(){return Vo(Fi)},useDebugValue:Du,useDeferredValue:function(e,t){var i=Ft();return sh(i,mt.memoizedState,e,t)},useTransition:function(){var e=Vo(Fi)[0],t=Ft().memoizedState;return[typeof e=="boolean"?e:Al(e),t]},useSyncExternalStore:Bm,useId:dh,useHostTransitionStatus:Iu,useFormState:Xm,useActionState:Xm,useOptimistic:function(e,t){var i=Ft();return jm(i,mt,e,t)},useMemoCache:Au,useCacheRefresh:ph};Uu.useEffectEvent=th;var yh={readContext:rn,use:Ko,useCallback:lh,useContext:rn,useEffect:Ru,useImperativeHandle:rh,useInsertionEffect:nh,useLayoutEffect:ih,useMemo:oh,useReducer:Cu,useRef:Wm,useState:function(){return Cu(Fi)},useDebugValue:Du,useDeferredValue:function(e,t){var i=Ft();return mt===null?Lu(i,e,t):sh(i,mt.memoizedState,e,t)},useTransition:function(){var e=Cu(Fi)[0],t=Ft().memoizedState;return[typeof e=="boolean"?e:Al(e),t]},useSyncExternalStore:Bm,useId:dh,useHostTransitionStatus:Iu,useFormState:Jm,useActionState:Jm,useOptimistic:function(e,t){var i=Ft();return mt!==null?jm(i,mt,e,t):(i.baseState=e,[e,i.queue.dispatch])},useMemoCache:Au,useCacheRefresh:ph};yh.useEffectEvent=th;function Hu(e,t,i,l){t=e.memoizedState,i=i(l,t),i=i==null?t:v({},t,i),e.memoizedState=i,e.lanes===0&&(e.updateQueue.baseState=i)}var qu={enqueueSetState:function(e,t,i){e=e._reactInternals;var l=Yn(),c=ua(l);c.payload=t,i!=null&&(c.callback=i),t=fa(e,c,l),t!==null&&(Rn(t,e,l),xl(t,e,l))},enqueueReplaceState:function(e,t,i){e=e._reactInternals;var l=Yn(),c=ua(l);c.tag=1,c.payload=t,i!=null&&(c.callback=i),t=fa(e,c,l),t!==null&&(Rn(t,e,l),xl(t,e,l))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var i=Yn(),l=ua(i);l.tag=2,t!=null&&(l.callback=t),t=fa(e,l,i),t!==null&&(Rn(t,e,i),xl(t,e,i))}};function vh(e,t,i,l,c,d,y){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(l,d,y):t.prototype&&t.prototype.isPureReactComponent?!ml(i,l)||!ml(c,d):!0}function kh(e,t,i,l){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(i,l),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(i,l),t.state!==e&&qu.enqueueReplaceState(t,t.state,null)}function Xa(e,t){var i=t;if("ref"in t){i={};for(var l in t)l!=="ref"&&(i[l]=t[l])}if(e=e.defaultProps){i===t&&(i=v({},i));for(var c in e)i[c]===void 0&&(i[c]=e[c])}return i}function Eh(e){No(e)}function _h(e){console.error(e)}function xh(e){No(e)}function Qo(e,t){try{var i=e.onUncaughtError;i(t.value,{componentStack:t.stack})}catch(l){setTimeout(function(){throw l})}}function Sh(e,t,i){try{var l=e.onCaughtError;l(i.value,{componentStack:i.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(c){setTimeout(function(){throw c})}}function Fu(e,t,i){return i=ua(i),i.tag=3,i.payload={element:null},i.callback=function(){Qo(e,t)},i}function wh(e){return e=ua(e),e.tag=3,e}function Th(e,t,i,l){var c=i.type.getDerivedStateFromError;if(typeof c=="function"){var d=l.value;e.payload=function(){return c(d)},e.callback=function(){Sh(t,i,l)}}var y=i.stateNode;y!==null&&typeof y.componentDidCatch=="function"&&(e.callback=function(){Sh(t,i,l),typeof c!="function"&&(ba===null?ba=new Set([this]):ba.add(this));var E=l.stack;this.componentDidCatch(l.value,{componentStack:E!==null?E:""})})}function yT(e,t,i,l,c){if(i.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){if(t=i.alternate,t!==null&&vr(t,i,c,!0),i=qn.current,i!==null){switch(i.tag){case 31:case 13:return ii===null?cs():i.alternate===null&&zt===0&&(zt=3),i.flags&=-257,i.flags|=65536,i.lanes=c,l===Uo?i.flags|=16384:(t=i.updateQueue,t===null?i.updateQueue=new Set([l]):t.add(l),pf(e,l,c)),!1;case 22:return i.flags|=65536,l===Uo?i.flags|=16384:(t=i.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([l])},i.updateQueue=t):(i=t.retryQueue,i===null?t.retryQueue=new Set([l]):i.add(l)),pf(e,l,c)),!1}throw Error(s(435,i.tag))}return pf(e,l,c),cs(),!1}if(et)return t=qn.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=c,l!==lu&&(e=Error(s(422),{cause:l}),yl(Wn(e,i)))):(l!==lu&&(t=Error(s(423),{cause:l}),yl(Wn(t,i))),e=e.current.alternate,e.flags|=65536,c&=-c,e.lanes|=c,l=Wn(l,i),c=Fu(e.stateNode,l,c),bu(e,c),zt!==4&&(zt=2)),!1;var d=Error(s(520),{cause:l});if(d=Wn(d,i),Bl===null?Bl=[d]:Bl.push(d),zt!==4&&(zt=2),t===null)return!0;l=Wn(l,i),i=t;do{switch(i.tag){case 3:return i.flags|=65536,e=c&-c,i.lanes|=e,e=Fu(i.stateNode,l,e),bu(i,e),!1;case 1:if(t=i.type,d=i.stateNode,(i.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||d!==null&&typeof d.componentDidCatch=="function"&&(ba===null||!ba.has(d))))return i.flags|=65536,c&=-c,i.lanes|=c,c=wh(c),Th(c,e,i,l),bu(i,c),!1}i=i.return}while(i!==null);return!1}var Gu=Error(s(461)),Pt=!1;function ln(e,t,i,l){t.child=e===null?Om(t,null,i,l):$a(t,e.child,i,l)}function Ah(e,t,i,l,c){i=i.render;var d=t.ref;if("ref"in l){var y={};for(var E in l)E!=="ref"&&(y[E]=l[E])}else y=l;return Ya(t),l=xu(e,t,i,y,d,c),E=Su(),e!==null&&!Pt?(wu(e,t,c),Gi(e,t,c)):(et&&E&&au(t),t.flags|=1,ln(e,t,l,c),t.child)}function Nh(e,t,i,l,c){if(e===null){var d=i.type;return typeof d=="function"&&!tu(d)&&d.defaultProps===void 0&&i.compare===null?(t.tag=15,t.type=d,Ch(e,t,d,l,c)):(e=Ro(i.type,null,l,t,t.mode,c),e.ref=t.ref,e.return=t,t.child=e)}if(d=e.child,!Xu(e,c)){var y=d.memoizedProps;if(i=i.compare,i=i!==null?i:ml,i(y,l)&&e.ref===t.ref)return Gi(e,t,c)}return t.flags|=1,e=Ii(d,l),e.ref=t.ref,e.return=t,t.child=e}function Ch(e,t,i,l,c){if(e!==null){var d=e.memoizedProps;if(ml(d,l)&&e.ref===t.ref)if(Pt=!1,t.pendingProps=l=d,Xu(e,c))(e.flags&131072)!==0&&(Pt=!0);else return t.lanes=e.lanes,Gi(e,t,c)}return ju(e,t,i,l,c)}function Oh(e,t,i,l){var c=l.children,d=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),l.mode==="hidden"){if((t.flags&128)!==0){if(d=d!==null?d.baseLanes|i:i,e!==null){for(l=t.child=e.child,c=0;l!==null;)c=c|l.lanes|l.childLanes,l=l.sibling;l=c&~d}else l=0,t.child=null;return Mh(e,t,d,i,l)}if((i&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&Io(t,d!==null?d.cachePool:null),d!==null?Dm(t,d):vu(),Lm(t);else return l=t.lanes=536870912,Mh(e,t,d!==null?d.baseLanes|i:i,i,l)}else d!==null?(Io(t,d.cachePool),Dm(t,d),pa(),t.memoizedState=null):(e!==null&&Io(t,null),vu(),pa());return ln(e,t,c,i),t.child}function Ol(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function Mh(e,t,i,l,c){var d=pu();return d=d===null?null:{parent:jt._currentValue,pool:d},t.memoizedState={baseLanes:i,cachePool:d},e!==null&&Io(t,null),vu(),Lm(t),e!==null&&vr(e,t,l,!0),t.childLanes=c,null}function Jo(e,t){return t=es({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function Rh(e,t,i){return $a(t,e.child,null,i),e=Jo(t,t.pendingProps),e.flags|=2,Fn(t),t.memoizedState=null,e}function vT(e,t,i){var l=t.pendingProps,c=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(et){if(l.mode==="hidden")return e=Jo(t,l),t.lanes=536870912,Ol(null,e);if(Eu(t),(e=Tt)?(e=Yb(e,ni),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:ra!==null?{id:_i,overflow:xi}:null,retryLane:536870912,hydrationErrors:null},i=mm(e),i.return=t,t.child=i,an=t,Tt=null)):e=null,e===null)throw oa(t);return t.lanes=536870912,null}return Jo(t,l)}var d=e.memoizedState;if(d!==null){var y=d.dehydrated;if(Eu(t),c)if(t.flags&256)t.flags&=-257,t=Rh(e,t,i);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(s(558));else if(Pt||vr(e,t,i,!1),c=(i&e.childLanes)!==0,Pt||c){if(l=_t,l!==null&&(y=ct(l,i),y!==0&&y!==d.retryLane))throw d.retryLane=y,qa(e,y),Rn(l,e,y),Gu;cs(),t=Rh(e,t,i)}else e=d.treeContext,Tt=ai(y.nextSibling),an=t,et=!0,la=null,ni=!1,e!==null&&ym(t,e),t=Jo(t,l),t.flags|=4096;return t}return e=Ii(e.child,{mode:l.mode,children:l.children}),e.ref=t.ref,t.child=e,e.return=t,e}function Wo(e,t){var i=t.ref;if(i===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof i!="function"&&typeof i!="object")throw Error(s(284));(e===null||e.ref!==i)&&(t.flags|=4194816)}}function ju(e,t,i,l,c){return Ya(t),i=xu(e,t,i,l,void 0,c),l=Su(),e!==null&&!Pt?(wu(e,t,c),Gi(e,t,c)):(et&&l&&au(t),t.flags|=1,ln(e,t,i,c),t.child)}function Dh(e,t,i,l,c,d){return Ya(t),t.updateQueue=null,i=Im(t,l,i,c),zm(e),l=Su(),e!==null&&!Pt?(wu(e,t,d),Gi(e,t,d)):(et&&l&&au(t),t.flags|=1,ln(e,t,i,d),t.child)}function Lh(e,t,i,l,c){if(Ya(t),t.stateNode===null){var d=mr,y=i.contextType;typeof y=="object"&&y!==null&&(d=rn(y)),d=new i(l,d),t.memoizedState=d.state!==null&&d.state!==void 0?d.state:null,d.updater=qu,t.stateNode=d,d._reactInternals=t,d=t.stateNode,d.props=l,d.state=t.memoizedState,d.refs={},mu(t),y=i.contextType,d.context=typeof y=="object"&&y!==null?rn(y):mr,d.state=t.memoizedState,y=i.getDerivedStateFromProps,typeof y=="function"&&(Hu(t,i,y,l),d.state=t.memoizedState),typeof i.getDerivedStateFromProps=="function"||typeof d.getSnapshotBeforeUpdate=="function"||typeof d.UNSAFE_componentWillMount!="function"&&typeof d.componentWillMount!="function"||(y=d.state,typeof d.componentWillMount=="function"&&d.componentWillMount(),typeof d.UNSAFE_componentWillMount=="function"&&d.UNSAFE_componentWillMount(),y!==d.state&&qu.enqueueReplaceState(d,d.state,null),wl(t,l,d,c),Sl(),d.state=t.memoizedState),typeof d.componentDidMount=="function"&&(t.flags|=4194308),l=!0}else if(e===null){d=t.stateNode;var E=t.memoizedProps,A=Xa(i,E);d.props=A;var B=d.context,P=i.contextType;y=mr,typeof P=="object"&&P!==null&&(y=rn(P));var Z=i.getDerivedStateFromProps;P=typeof Z=="function"||typeof d.getSnapshotBeforeUpdate=="function",E=t.pendingProps!==E,P||typeof d.UNSAFE_componentWillReceiveProps!="function"&&typeof d.componentWillReceiveProps!="function"||(E||B!==y)&&kh(t,d,l,y),ca=!1;var U=t.memoizedState;d.state=U,wl(t,l,d,c),Sl(),B=t.memoizedState,E||U!==B||ca?(typeof Z=="function"&&(Hu(t,i,Z,l),B=t.memoizedState),(A=ca||vh(t,i,A,l,U,B,y))?(P||typeof d.UNSAFE_componentWillMount!="function"&&typeof d.componentWillMount!="function"||(typeof d.componentWillMount=="function"&&d.componentWillMount(),typeof d.UNSAFE_componentWillMount=="function"&&d.UNSAFE_componentWillMount()),typeof d.componentDidMount=="function"&&(t.flags|=4194308)):(typeof d.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=l,t.memoizedState=B),d.props=l,d.state=B,d.context=y,l=A):(typeof d.componentDidMount=="function"&&(t.flags|=4194308),l=!1)}else{d=t.stateNode,hu(e,t),y=t.memoizedProps,P=Xa(i,y),d.props=P,Z=t.pendingProps,U=d.context,B=i.contextType,A=mr,typeof B=="object"&&B!==null&&(A=rn(B)),E=i.getDerivedStateFromProps,(B=typeof E=="function"||typeof d.getSnapshotBeforeUpdate=="function")||typeof d.UNSAFE_componentWillReceiveProps!="function"&&typeof d.componentWillReceiveProps!="function"||(y!==Z||U!==A)&&kh(t,d,l,A),ca=!1,U=t.memoizedState,d.state=U,wl(t,l,d,c),Sl();var F=t.memoizedState;y!==Z||U!==F||ca||e!==null&&e.dependencies!==null&&Lo(e.dependencies)?(typeof E=="function"&&(Hu(t,i,E,l),F=t.memoizedState),(P=ca||vh(t,i,P,l,U,F,A)||e!==null&&e.dependencies!==null&&Lo(e.dependencies))?(B||typeof d.UNSAFE_componentWillUpdate!="function"&&typeof d.componentWillUpdate!="function"||(typeof d.componentWillUpdate=="function"&&d.componentWillUpdate(l,F,A),typeof d.UNSAFE_componentWillUpdate=="function"&&d.UNSAFE_componentWillUpdate(l,F,A)),typeof d.componentDidUpdate=="function"&&(t.flags|=4),typeof d.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof d.componentDidUpdate!="function"||y===e.memoizedProps&&U===e.memoizedState||(t.flags|=4),typeof d.getSnapshotBeforeUpdate!="function"||y===e.memoizedProps&&U===e.memoizedState||(t.flags|=1024),t.memoizedProps=l,t.memoizedState=F),d.props=l,d.state=F,d.context=A,l=P):(typeof d.componentDidUpdate!="function"||y===e.memoizedProps&&U===e.memoizedState||(t.flags|=4),typeof d.getSnapshotBeforeUpdate!="function"||y===e.memoizedProps&&U===e.memoizedState||(t.flags|=1024),l=!1)}return d=l,Wo(e,t),l=(t.flags&128)!==0,d||l?(d=t.stateNode,i=l&&typeof i.getDerivedStateFromError!="function"?null:d.render(),t.flags|=1,e!==null&&l?(t.child=$a(t,e.child,null,c),t.child=$a(t,null,i,c)):ln(e,t,i,c),t.memoizedState=d.state,e=t.child):e=Gi(e,t,c),e}function zh(e,t,i,l){return Ga(),t.flags|=256,ln(e,t,i,l),t.child}var Yu={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Pu(e){return{baseLanes:e,cachePool:Sm()}}function Ku(e,t,i){return e=e!==null?e.childLanes&~i:0,t&&(e|=jn),e}function Ih(e,t,i){var l=t.pendingProps,c=!1,d=(t.flags&128)!==0,y;if((y=d)||(y=e!==null&&e.memoizedState===null?!1:(qt.current&2)!==0),y&&(c=!0,t.flags&=-129),y=(t.flags&32)!==0,t.flags&=-33,e===null){if(et){if(c?da(t):pa(),(e=Tt)?(e=Yb(e,ni),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:ra!==null?{id:_i,overflow:xi}:null,retryLane:536870912,hydrationErrors:null},i=mm(e),i.return=t,t.child=i,an=t,Tt=null)):e=null,e===null)throw oa(t);return Cf(e)?t.lanes=32:t.lanes=536870912,null}var E=l.children;return l=l.fallback,c?(pa(),c=t.mode,E=es({mode:"hidden",children:E},c),l=Fa(l,c,i,null),E.return=t,l.return=t,E.sibling=l,t.child=E,l=t.child,l.memoizedState=Pu(i),l.childLanes=Ku(e,y,i),t.memoizedState=Yu,Ol(null,l)):(da(t),Vu(t,E))}var A=e.memoizedState;if(A!==null&&(E=A.dehydrated,E!==null)){if(d)t.flags&256?(da(t),t.flags&=-257,t=$u(e,t,i)):t.memoizedState!==null?(pa(),t.child=e.child,t.flags|=128,t=null):(pa(),E=l.fallback,c=t.mode,l=es({mode:"visible",children:l.children},c),E=Fa(E,c,i,null),E.flags|=2,l.return=t,E.return=t,l.sibling=E,t.child=l,$a(t,e.child,null,i),l=t.child,l.memoizedState=Pu(i),l.childLanes=Ku(e,y,i),t.memoizedState=Yu,t=Ol(null,l));else if(da(t),Cf(E)){if(y=E.nextSibling&&E.nextSibling.dataset,y)var B=y.dgst;y=B,l=Error(s(419)),l.stack="",l.digest=y,yl({value:l,source:null,stack:null}),t=$u(e,t,i)}else if(Pt||vr(e,t,i,!1),y=(i&e.childLanes)!==0,Pt||y){if(y=_t,y!==null&&(l=ct(y,i),l!==0&&l!==A.retryLane))throw A.retryLane=l,qa(e,l),Rn(y,e,l),Gu;Nf(E)||cs(),t=$u(e,t,i)}else Nf(E)?(t.flags|=192,t.child=e.child,t=null):(e=A.treeContext,Tt=ai(E.nextSibling),an=t,et=!0,la=null,ni=!1,e!==null&&ym(t,e),t=Vu(t,l.children),t.flags|=4096);return t}return c?(pa(),E=l.fallback,c=t.mode,A=e.child,B=A.sibling,l=Ii(A,{mode:"hidden",children:l.children}),l.subtreeFlags=A.subtreeFlags&65011712,B!==null?E=Ii(B,E):(E=Fa(E,c,i,null),E.flags|=2),E.return=t,l.return=t,l.sibling=E,t.child=l,Ol(null,l),l=t.child,E=e.child.memoizedState,E===null?E=Pu(i):(c=E.cachePool,c!==null?(A=jt._currentValue,c=c.parent!==A?{parent:A,pool:A}:c):c=Sm(),E={baseLanes:E.baseLanes|i,cachePool:c}),l.memoizedState=E,l.childLanes=Ku(e,y,i),t.memoizedState=Yu,Ol(e.child,l)):(da(t),i=e.child,e=i.sibling,i=Ii(i,{mode:"visible",children:l.children}),i.return=t,i.sibling=null,e!==null&&(y=t.deletions,y===null?(t.deletions=[e],t.flags|=16):y.push(e)),t.child=i,t.memoizedState=null,i)}function Vu(e,t){return t=es({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function es(e,t){return e=Hn(22,e,null,t),e.lanes=0,e}function $u(e,t,i){return $a(t,e.child,null,i),e=Vu(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Bh(e,t,i){e.lanes|=t;var l=e.alternate;l!==null&&(l.lanes|=t),cu(e.return,t,i)}function Zu(e,t,i,l,c,d){var y=e.memoizedState;y===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:l,tail:i,tailMode:c,treeForkCount:d}:(y.isBackwards=t,y.rendering=null,y.renderingStartTime=0,y.last=l,y.tail=i,y.tailMode=c,y.treeForkCount=d)}function Uh(e,t,i){var l=t.pendingProps,c=l.revealOrder,d=l.tail;l=l.children;var y=qt.current,E=(y&2)!==0;if(E?(y=y&1|2,t.flags|=128):y&=1,J(qt,y),ln(e,t,l,i),l=et?bl:0,!E&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Bh(e,i,t);else if(e.tag===19)Bh(e,i,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(c){case"forwards":for(i=t.child,c=null;i!==null;)e=i.alternate,e!==null&&Go(e)===null&&(c=i),i=i.sibling;i=c,i===null?(c=t.child,t.child=null):(c=i.sibling,i.sibling=null),Zu(t,!1,c,i,d,l);break;case"backwards":case"unstable_legacy-backwards":for(i=null,c=t.child,t.child=null;c!==null;){if(e=c.alternate,e!==null&&Go(e)===null){t.child=c;break}e=c.sibling,c.sibling=i,i=c,c=e}Zu(t,!0,i,null,d,l);break;case"together":Zu(t,!1,null,null,void 0,l);break;default:t.memoizedState=null}return t.child}function Gi(e,t,i){if(e!==null&&(t.dependencies=e.dependencies),ha|=t.lanes,(i&t.childLanes)===0)if(e!==null){if(vr(e,t,i,!1),(i&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(s(153));if(t.child!==null){for(e=t.child,i=Ii(e,e.pendingProps),t.child=i,i.return=t;e.sibling!==null;)e=e.sibling,i=i.sibling=Ii(e,e.pendingProps),i.return=t;i.sibling=null}return t.child}function Xu(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&Lo(e)))}function kT(e,t,i){switch(t.tag){case 3:kt(t,t.stateNode.containerInfo),sa(t,jt,e.memoizedState.cache),Ga();break;case 27:case 5:gt(t);break;case 4:kt(t,t.stateNode.containerInfo);break;case 10:sa(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,Eu(t),null;break;case 13:var l=t.memoizedState;if(l!==null)return l.dehydrated!==null?(da(t),t.flags|=128,null):(i&t.child.childLanes)!==0?Ih(e,t,i):(da(t),e=Gi(e,t,i),e!==null?e.sibling:null);da(t);break;case 19:var c=(e.flags&128)!==0;if(l=(i&t.childLanes)!==0,l||(vr(e,t,i,!1),l=(i&t.childLanes)!==0),c){if(l)return Uh(e,t,i);t.flags|=128}if(c=t.memoizedState,c!==null&&(c.rendering=null,c.tail=null,c.lastEffect=null),J(qt,qt.current),l)break;return null;case 22:return t.lanes=0,Oh(e,t,i,t.pendingProps);case 24:sa(t,jt,e.memoizedState.cache)}return Gi(e,t,i)}function Hh(e,t,i){if(e!==null)if(e.memoizedProps!==t.pendingProps)Pt=!0;else{if(!Xu(e,i)&&(t.flags&128)===0)return Pt=!1,kT(e,t,i);Pt=(e.flags&131072)!==0}else Pt=!1,et&&(t.flags&1048576)!==0&&bm(t,bl,t.index);switch(t.lanes=0,t.tag){case 16:e:{var l=t.pendingProps;if(e=Ka(t.elementType),t.type=e,typeof e=="function")tu(e)?(l=Xa(e,l),t.tag=1,t=Lh(null,t,e,l,i)):(t.tag=0,t=ju(null,t,e,l,i));else{if(e!=null){var c=e.$$typeof;if(c===te){t.tag=11,t=Ah(null,t,e,l,i);break e}else if(c===ee){t.tag=14,t=Nh(null,t,e,l,i);break e}}throw t=X(e)||e,Error(s(306,t,""))}}return t;case 0:return ju(e,t,t.type,t.pendingProps,i);case 1:return l=t.type,c=Xa(l,t.pendingProps),Lh(e,t,l,c,i);case 3:e:{if(kt(t,t.stateNode.containerInfo),e===null)throw Error(s(387));l=t.pendingProps;var d=t.memoizedState;c=d.element,hu(e,t),wl(t,l,null,i);var y=t.memoizedState;if(l=y.cache,sa(t,jt,l),l!==d.cache&&uu(t,[jt],i,!0),Sl(),l=y.element,d.isDehydrated)if(d={element:l,isDehydrated:!1,cache:y.cache},t.updateQueue.baseState=d,t.memoizedState=d,t.flags&256){t=zh(e,t,l,i);break e}else if(l!==c){c=Wn(Error(s(424)),t),yl(c),t=zh(e,t,l,i);break e}else for(e=t.stateNode.containerInfo,e.nodeType===9?e=e.body:e=e.nodeName==="HTML"?e.ownerDocument.body:e,Tt=ai(e.firstChild),an=t,et=!0,la=null,ni=!0,i=Om(t,null,l,i),t.child=i;i;)i.flags=i.flags&-3|4096,i=i.sibling;else{if(Ga(),l===c){t=Gi(e,t,i);break e}ln(e,t,l,i)}t=t.child}return t;case 26:return Wo(e,t),e===null?(i=Xb(t.type,null,t.pendingProps,null))?t.memoizedState=i:et||(i=t.type,e=t.pendingProps,l=hs(Ce.current).createElement(i),l[It]=t,l[Bt]=e,on(l,i,e),Dt(l),t.stateNode=l):t.memoizedState=Xb(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return gt(t),e===null&&et&&(l=t.stateNode=Vb(t.type,t.pendingProps,Ce.current),an=t,ni=!0,c=Tt,Ea(t.type)?(Of=c,Tt=ai(l.firstChild)):Tt=c),ln(e,t,t.pendingProps.children,i),Wo(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&et&&((c=l=Tt)&&(l=XT(l,t.type,t.pendingProps,ni),l!==null?(t.stateNode=l,an=t,Tt=ai(l.firstChild),ni=!1,c=!0):c=!1),c||oa(t)),gt(t),c=t.type,d=t.pendingProps,y=e!==null?e.memoizedProps:null,l=d.children,wf(c,d)?l=null:y!==null&&wf(c,y)&&(t.flags|=32),t.memoizedState!==null&&(c=xu(e,t,fT,null,null,i),Pl._currentValue=c),Wo(e,t),ln(e,t,l,i),t.child;case 6:return e===null&&et&&((e=i=Tt)&&(i=QT(i,t.pendingProps,ni),i!==null?(t.stateNode=i,an=t,Tt=null,e=!0):e=!1),e||oa(t)),null;case 13:return Ih(e,t,i);case 4:return kt(t,t.stateNode.containerInfo),l=t.pendingProps,e===null?t.child=$a(t,null,l,i):ln(e,t,l,i),t.child;case 11:return Ah(e,t,t.type,t.pendingProps,i);case 7:return ln(e,t,t.pendingProps,i),t.child;case 8:return ln(e,t,t.pendingProps.children,i),t.child;case 12:return ln(e,t,t.pendingProps.children,i),t.child;case 10:return l=t.pendingProps,sa(t,t.type,l.value),ln(e,t,l.children,i),t.child;case 9:return c=t.type._context,l=t.pendingProps.children,Ya(t),c=rn(c),l=l(c),t.flags|=1,ln(e,t,l,i),t.child;case 14:return Nh(e,t,t.type,t.pendingProps,i);case 15:return Ch(e,t,t.type,t.pendingProps,i);case 19:return Uh(e,t,i);case 31:return vT(e,t,i);case 22:return Oh(e,t,i,t.pendingProps);case 24:return Ya(t),l=rn(jt),e===null?(c=pu(),c===null&&(c=_t,d=fu(),c.pooledCache=d,d.refCount++,d!==null&&(c.pooledCacheLanes|=i),c=d),t.memoizedState={parent:l,cache:c},mu(t),sa(t,jt,c)):((e.lanes&i)!==0&&(hu(e,t),wl(t,null,null,i),Sl()),c=e.memoizedState,d=t.memoizedState,c.parent!==l?(c={parent:l,cache:l},t.memoizedState=c,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=c),sa(t,jt,l)):(l=d.cache,sa(t,jt,l),l!==c.cache&&uu(t,[jt],i,!0))),ln(e,t,t.pendingProps.children,i),t.child;case 29:throw t.pendingProps}throw Error(s(156,t.tag))}function ji(e){e.flags|=4}function Qu(e,t,i,l,c){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(c&335544128)===c)if(e.stateNode.complete)e.flags|=8192;else if(db())e.flags|=8192;else throw Va=Uo,gu}else e.flags&=-16777217}function qh(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!ty(t))if(db())e.flags|=8192;else throw Va=Uo,gu}function ts(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?wt():536870912,e.lanes|=t,Mr|=t)}function Ml(e,t){if(!et)switch(e.tailMode){case"hidden":t=e.tail;for(var i=null;t!==null;)t.alternate!==null&&(i=t),t=t.sibling;i===null?e.tail=null:i.sibling=null;break;case"collapsed":i=e.tail;for(var l=null;i!==null;)i.alternate!==null&&(l=i),i=i.sibling;l===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:l.sibling=null}}function At(e){var t=e.alternate!==null&&e.alternate.child===e.child,i=0,l=0;if(t)for(var c=e.child;c!==null;)i|=c.lanes|c.childLanes,l|=c.subtreeFlags&65011712,l|=c.flags&65011712,c.return=e,c=c.sibling;else for(c=e.child;c!==null;)i|=c.lanes|c.childLanes,l|=c.subtreeFlags,l|=c.flags,c.return=e,c=c.sibling;return e.subtreeFlags|=l,e.childLanes=i,t}function ET(e,t,i){var l=t.pendingProps;switch(ru(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return At(t),null;case 1:return At(t),null;case 3:return i=t.stateNode,l=null,e!==null&&(l=e.memoizedState.cache),t.memoizedState.cache!==l&&(t.flags|=2048),Hi(jt),Ke(),i.pendingContext&&(i.context=i.pendingContext,i.pendingContext=null),(e===null||e.child===null)&&(yr(t)?ji(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,ou())),At(t),null;case 26:var c=t.type,d=t.memoizedState;return e===null?(ji(t),d!==null?(At(t),qh(t,d)):(At(t),Qu(t,c,null,l,i))):d?d!==e.memoizedState?(ji(t),At(t),qh(t,d)):(At(t),t.flags&=-16777217):(e=e.memoizedProps,e!==l&&ji(t),At(t),Qu(t,c,e,l,i)),null;case 27:if(zn(t),i=Ce.current,c=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==l&&ji(t);else{if(!l){if(t.stateNode===null)throw Error(s(166));return At(t),null}e=pe.current,yr(t)?vm(t):(e=Vb(c,l,i),t.stateNode=e,ji(t))}return At(t),null;case 5:if(zn(t),c=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==l&&ji(t);else{if(!l){if(t.stateNode===null)throw Error(s(166));return At(t),null}if(d=pe.current,yr(t))vm(t);else{var y=hs(Ce.current);switch(d){case 1:d=y.createElementNS("http://www.w3.org/2000/svg",c);break;case 2:d=y.createElementNS("http://www.w3.org/1998/Math/MathML",c);break;default:switch(c){case"svg":d=y.createElementNS("http://www.w3.org/2000/svg",c);break;case"math":d=y.createElementNS("http://www.w3.org/1998/Math/MathML",c);break;case"script":d=y.createElement("div"),d.innerHTML="<script><\/script>",d=d.removeChild(d.firstChild);break;case"select":d=typeof l.is=="string"?y.createElement("select",{is:l.is}):y.createElement("select"),l.multiple?d.multiple=!0:l.size&&(d.size=l.size);break;default:d=typeof l.is=="string"?y.createElement(c,{is:l.is}):y.createElement(c)}}d[It]=t,d[Bt]=l;e:for(y=t.child;y!==null;){if(y.tag===5||y.tag===6)d.appendChild(y.stateNode);else if(y.tag!==4&&y.tag!==27&&y.child!==null){y.child.return=y,y=y.child;continue}if(y===t)break e;for(;y.sibling===null;){if(y.return===null||y.return===t)break e;y=y.return}y.sibling.return=y.return,y=y.sibling}t.stateNode=d;e:switch(on(d,c,l),c){case"button":case"input":case"select":case"textarea":l=!!l.autoFocus;break e;case"img":l=!0;break e;default:l=!1}l&&ji(t)}}return At(t),Qu(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,i),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==l&&ji(t);else{if(typeof l!="string"&&t.stateNode===null)throw Error(s(166));if(e=Ce.current,yr(t)){if(e=t.stateNode,i=t.memoizedProps,l=null,c=an,c!==null)switch(c.tag){case 27:case 5:l=c.memoizedProps}e[It]=t,e=!!(e.nodeValue===i||l!==null&&l.suppressHydrationWarning===!0||Ib(e.nodeValue,i)),e||oa(t,!0)}else e=hs(e).createTextNode(l),e[It]=t,t.stateNode=e}return At(t),null;case 31:if(i=t.memoizedState,e===null||e.memoizedState!==null){if(l=yr(t),i!==null){if(e===null){if(!l)throw Error(s(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(s(557));e[It]=t}else Ga(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;At(t),e=!1}else i=ou(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=i),e=!0;if(!e)return t.flags&256?(Fn(t),t):(Fn(t),null);if((t.flags&128)!==0)throw Error(s(558))}return At(t),null;case 13:if(l=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(c=yr(t),l!==null&&l.dehydrated!==null){if(e===null){if(!c)throw Error(s(318));if(c=t.memoizedState,c=c!==null?c.dehydrated:null,!c)throw Error(s(317));c[It]=t}else Ga(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;At(t),c=!1}else c=ou(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=c),c=!0;if(!c)return t.flags&256?(Fn(t),t):(Fn(t),null)}return Fn(t),(t.flags&128)!==0?(t.lanes=i,t):(i=l!==null,e=e!==null&&e.memoizedState!==null,i&&(l=t.child,c=null,l.alternate!==null&&l.alternate.memoizedState!==null&&l.alternate.memoizedState.cachePool!==null&&(c=l.alternate.memoizedState.cachePool.pool),d=null,l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(d=l.memoizedState.cachePool.pool),d!==c&&(l.flags|=2048)),i!==e&&i&&(t.child.flags|=8192),ts(t,t.updateQueue),At(t),null);case 4:return Ke(),e===null&&kf(t.stateNode.containerInfo),At(t),null;case 10:return Hi(t.type),At(t),null;case 19:if(_(qt),l=t.memoizedState,l===null)return At(t),null;if(c=(t.flags&128)!==0,d=l.rendering,d===null)if(c)Ml(l,!1);else{if(zt!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(d=Go(e),d!==null){for(t.flags|=128,Ml(l,!1),e=d.updateQueue,t.updateQueue=e,ts(t,e),t.subtreeFlags=0,e=i,i=t.child;i!==null;)gm(i,e),i=i.sibling;return J(qt,qt.current&1|2),et&&Bi(t,l.treeForkCount),t.child}e=e.sibling}l.tail!==null&&lt()>ls&&(t.flags|=128,c=!0,Ml(l,!1),t.lanes=4194304)}else{if(!c)if(e=Go(d),e!==null){if(t.flags|=128,c=!0,e=e.updateQueue,t.updateQueue=e,ts(t,e),Ml(l,!0),l.tail===null&&l.tailMode==="hidden"&&!d.alternate&&!et)return At(t),null}else 2*lt()-l.renderingStartTime>ls&&i!==536870912&&(t.flags|=128,c=!0,Ml(l,!1),t.lanes=4194304);l.isBackwards?(d.sibling=t.child,t.child=d):(e=l.last,e!==null?e.sibling=d:t.child=d,l.last=d)}return l.tail!==null?(e=l.tail,l.rendering=e,l.tail=e.sibling,l.renderingStartTime=lt(),e.sibling=null,i=qt.current,J(qt,c?i&1|2:i&1),et&&Bi(t,l.treeForkCount),e):(At(t),null);case 22:case 23:return Fn(t),ku(),l=t.memoizedState!==null,e!==null?e.memoizedState!==null!==l&&(t.flags|=8192):l&&(t.flags|=8192),l?(i&536870912)!==0&&(t.flags&128)===0&&(At(t),t.subtreeFlags&6&&(t.flags|=8192)):At(t),i=t.updateQueue,i!==null&&ts(t,i.retryQueue),i=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(i=e.memoizedState.cachePool.pool),l=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(l=t.memoizedState.cachePool.pool),l!==i&&(t.flags|=2048),e!==null&&_(Pa),null;case 24:return i=null,e!==null&&(i=e.memoizedState.cache),t.memoizedState.cache!==i&&(t.flags|=2048),Hi(jt),At(t),null;case 25:return null;case 30:return null}throw Error(s(156,t.tag))}function _T(e,t){switch(ru(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Hi(jt),Ke(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return zn(t),null;case 31:if(t.memoizedState!==null){if(Fn(t),t.alternate===null)throw Error(s(340));Ga()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(Fn(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(s(340));Ga()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return _(qt),null;case 4:return Ke(),null;case 10:return Hi(t.type),null;case 22:case 23:return Fn(t),ku(),e!==null&&_(Pa),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Hi(jt),null;case 25:return null;default:return null}}function Fh(e,t){switch(ru(t),t.tag){case 3:Hi(jt),Ke();break;case 26:case 27:case 5:zn(t);break;case 4:Ke();break;case 31:t.memoizedState!==null&&Fn(t);break;case 13:Fn(t);break;case 19:_(qt);break;case 10:Hi(t.type);break;case 22:case 23:Fn(t),ku(),e!==null&&_(Pa);break;case 24:Hi(jt)}}function Rl(e,t){try{var i=t.updateQueue,l=i!==null?i.lastEffect:null;if(l!==null){var c=l.next;i=c;do{if((i.tag&e)===e){l=void 0;var d=i.create,y=i.inst;l=d(),y.destroy=l}i=i.next}while(i!==c)}}catch(E){dt(t,t.return,E)}}function ga(e,t,i){try{var l=t.updateQueue,c=l!==null?l.lastEffect:null;if(c!==null){var d=c.next;l=d;do{if((l.tag&e)===e){var y=l.inst,E=y.destroy;if(E!==void 0){y.destroy=void 0,c=t;var A=i,B=E;try{B()}catch(P){dt(c,A,P)}}}l=l.next}while(l!==d)}}catch(P){dt(t,t.return,P)}}function Gh(e){var t=e.updateQueue;if(t!==null){var i=e.stateNode;try{Rm(t,i)}catch(l){dt(e,e.return,l)}}}function jh(e,t,i){i.props=Xa(e.type,e.memoizedProps),i.state=e.memoizedState;try{i.componentWillUnmount()}catch(l){dt(e,t,l)}}function Dl(e,t){try{var i=e.ref;if(i!==null){switch(e.tag){case 26:case 27:case 5:var l=e.stateNode;break;case 30:l=e.stateNode;break;default:l=e.stateNode}typeof i=="function"?e.refCleanup=i(l):i.current=l}}catch(c){dt(e,t,c)}}function Si(e,t){var i=e.ref,l=e.refCleanup;if(i!==null)if(typeof l=="function")try{l()}catch(c){dt(e,t,c)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof i=="function")try{i(null)}catch(c){dt(e,t,c)}else i.current=null}function Yh(e){var t=e.type,i=e.memoizedProps,l=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":i.autoFocus&&l.focus();break e;case"img":i.src?l.src=i.src:i.srcSet&&(l.srcset=i.srcSet)}}catch(c){dt(e,e.return,c)}}function Ju(e,t,i){try{var l=e.stateNode;YT(l,e.type,i,t),l[Bt]=t}catch(c){dt(e,e.return,c)}}function Ph(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Ea(e.type)||e.tag===4}function Wu(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Ph(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.tag===27&&Ea(e.type)||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 ef(e,t,i){var l=e.tag;if(l===5||l===6)e=e.stateNode,t?(i.nodeType===9?i.body:i.nodeName==="HTML"?i.ownerDocument.body:i).insertBefore(e,t):(t=i.nodeType===9?i.body:i.nodeName==="HTML"?i.ownerDocument.body:i,t.appendChild(e),i=i._reactRootContainer,i!=null||t.onclick!==null||(t.onclick=be));else if(l!==4&&(l===27&&Ea(e.type)&&(i=e.stateNode,t=null),e=e.child,e!==null))for(ef(e,t,i),e=e.sibling;e!==null;)ef(e,t,i),e=e.sibling}function ns(e,t,i){var l=e.tag;if(l===5||l===6)e=e.stateNode,t?i.insertBefore(e,t):i.appendChild(e);else if(l!==4&&(l===27&&Ea(e.type)&&(i=e.stateNode),e=e.child,e!==null))for(ns(e,t,i),e=e.sibling;e!==null;)ns(e,t,i),e=e.sibling}function Kh(e){var t=e.stateNode,i=e.memoizedProps;try{for(var l=e.type,c=t.attributes;c.length;)t.removeAttributeNode(c[0]);on(t,l,i),t[It]=e,t[Bt]=i}catch(d){dt(e,e.return,d)}}var Yi=!1,Kt=!1,tf=!1,Vh=typeof WeakSet=="function"?WeakSet:Set,Wt=null;function xT(e,t){if(e=e.containerInfo,xf=xs,e=rm(e),$c(e)){if("selectionStart"in e)var i={start:e.selectionStart,end:e.selectionEnd};else e:{i=(i=e.ownerDocument)&&i.defaultView||window;var l=i.getSelection&&i.getSelection();if(l&&l.rangeCount!==0){i=l.anchorNode;var c=l.anchorOffset,d=l.focusNode;l=l.focusOffset;try{i.nodeType,d.nodeType}catch{i=null;break e}var y=0,E=-1,A=-1,B=0,P=0,Z=e,U=null;t:for(;;){for(var F;Z!==i||c!==0&&Z.nodeType!==3||(E=y+c),Z!==d||l!==0&&Z.nodeType!==3||(A=y+l),Z.nodeType===3&&(y+=Z.nodeValue.length),(F=Z.firstChild)!==null;)U=Z,Z=F;for(;;){if(Z===e)break t;if(U===i&&++B===c&&(E=y),U===d&&++P===l&&(A=y),(F=Z.nextSibling)!==null)break;Z=U,U=Z.parentNode}Z=F}i=E===-1||A===-1?null:{start:E,end:A}}else i=null}i=i||{start:0,end:0}}else i=null;for(Sf={focusedElem:e,selectionRange:i},xs=!1,Wt=t;Wt!==null;)if(t=Wt,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Wt=e;else for(;Wt!==null;){switch(t=Wt,d=t.alternate,e=t.flags,t.tag){case 0:if((e&4)!==0&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(i=0;i<e.length;i++)c=e[i],c.ref.impl=c.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&d!==null){e=void 0,i=t,c=d.memoizedProps,d=d.memoizedState,l=i.stateNode;try{var ye=Xa(i.type,c);e=l.getSnapshotBeforeUpdate(ye,d),l.__reactInternalSnapshotBeforeUpdate=e}catch(Ne){dt(i,i.return,Ne)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,i=e.nodeType,i===9)Af(e);else if(i===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Af(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((e&1024)!==0)throw Error(s(163))}if(e=t.sibling,e!==null){e.return=t.return,Wt=e;break}Wt=t.return}}function $h(e,t,i){var l=i.flags;switch(i.tag){case 0:case 11:case 15:Ki(e,i),l&4&&Rl(5,i);break;case 1:if(Ki(e,i),l&4)if(e=i.stateNode,t===null)try{e.componentDidMount()}catch(y){dt(i,i.return,y)}else{var c=Xa(i.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(c,t,e.__reactInternalSnapshotBeforeUpdate)}catch(y){dt(i,i.return,y)}}l&64&&Gh(i),l&512&&Dl(i,i.return);break;case 3:if(Ki(e,i),l&64&&(e=i.updateQueue,e!==null)){if(t=null,i.child!==null)switch(i.child.tag){case 27:case 5:t=i.child.stateNode;break;case 1:t=i.child.stateNode}try{Rm(e,t)}catch(y){dt(i,i.return,y)}}break;case 27:t===null&&l&4&&Kh(i);case 26:case 5:Ki(e,i),t===null&&l&4&&Yh(i),l&512&&Dl(i,i.return);break;case 12:Ki(e,i);break;case 31:Ki(e,i),l&4&&Qh(e,i);break;case 13:Ki(e,i),l&4&&Jh(e,i),l&64&&(e=i.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(i=RT.bind(null,i),JT(e,i))));break;case 22:if(l=i.memoizedState!==null||Yi,!l){t=t!==null&&t.memoizedState!==null||Kt,c=Yi;var d=Kt;Yi=l,(Kt=t)&&!d?Vi(e,i,(i.subtreeFlags&8772)!==0):Ki(e,i),Yi=c,Kt=d}break;case 30:break;default:Ki(e,i)}}function Zh(e){var t=e.alternate;t!==null&&(e.alternate=null,Zh(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&Nt(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var Ct=null,Nn=!1;function Pi(e,t,i){for(i=i.child;i!==null;)Xh(e,t,i),i=i.sibling}function Xh(e,t,i){if(xt&&typeof xt.onCommitFiberUnmount=="function")try{xt.onCommitFiberUnmount(Jt,i)}catch{}switch(i.tag){case 26:Kt||Si(i,t),Pi(e,t,i),i.memoizedState?i.memoizedState.count--:i.stateNode&&(i=i.stateNode,i.parentNode.removeChild(i));break;case 27:Kt||Si(i,t);var l=Ct,c=Nn;Ea(i.type)&&(Ct=i.stateNode,Nn=!1),Pi(e,t,i),Gl(i.stateNode),Ct=l,Nn=c;break;case 5:Kt||Si(i,t);case 6:if(l=Ct,c=Nn,Ct=null,Pi(e,t,i),Ct=l,Nn=c,Ct!==null)if(Nn)try{(Ct.nodeType===9?Ct.body:Ct.nodeName==="HTML"?Ct.ownerDocument.body:Ct).removeChild(i.stateNode)}catch(d){dt(i,t,d)}else try{Ct.removeChild(i.stateNode)}catch(d){dt(i,t,d)}break;case 18:Ct!==null&&(Nn?(e=Ct,Gb(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,i.stateNode),Hr(e)):Gb(Ct,i.stateNode));break;case 4:l=Ct,c=Nn,Ct=i.stateNode.containerInfo,Nn=!0,Pi(e,t,i),Ct=l,Nn=c;break;case 0:case 11:case 14:case 15:ga(2,i,t),Kt||ga(4,i,t),Pi(e,t,i);break;case 1:Kt||(Si(i,t),l=i.stateNode,typeof l.componentWillUnmount=="function"&&jh(i,t,l)),Pi(e,t,i);break;case 21:Pi(e,t,i);break;case 22:Kt=(l=Kt)||i.memoizedState!==null,Pi(e,t,i),Kt=l;break;default:Pi(e,t,i)}}function Qh(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Hr(e)}catch(i){dt(t,t.return,i)}}}function Jh(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Hr(e)}catch(i){dt(t,t.return,i)}}function ST(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new Vh),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new Vh),t;default:throw Error(s(435,e.tag))}}function is(e,t){var i=ST(e);t.forEach(function(l){if(!i.has(l)){i.add(l);var c=DT.bind(null,e,l);l.then(c,c)}})}function Cn(e,t){var i=t.deletions;if(i!==null)for(var l=0;l<i.length;l++){var c=i[l],d=e,y=t,E=y;e:for(;E!==null;){switch(E.tag){case 27:if(Ea(E.type)){Ct=E.stateNode,Nn=!1;break e}break;case 5:Ct=E.stateNode,Nn=!1;break e;case 3:case 4:Ct=E.stateNode.containerInfo,Nn=!0;break e}E=E.return}if(Ct===null)throw Error(s(160));Xh(d,y,c),Ct=null,Nn=!1,d=c.alternate,d!==null&&(d.return=null),c.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)Wh(t,e),t=t.sibling}var fi=null;function Wh(e,t){var i=e.alternate,l=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:Cn(t,e),On(e),l&4&&(ga(3,e,e.return),Rl(3,e),ga(5,e,e.return));break;case 1:Cn(t,e),On(e),l&512&&(Kt||i===null||Si(i,i.return)),l&64&&Yi&&(e=e.updateQueue,e!==null&&(l=e.callbacks,l!==null&&(i=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=i===null?l:i.concat(l))));break;case 26:var c=fi;if(Cn(t,e),On(e),l&512&&(Kt||i===null||Si(i,i.return)),l&4){var d=i!==null?i.memoizedState:null;if(l=e.memoizedState,i===null)if(l===null)if(e.stateNode===null){e:{l=e.type,i=e.memoizedProps,c=c.ownerDocument||c;t:switch(l){case"title":d=c.getElementsByTagName("title")[0],(!d||d[Ut]||d[It]||d.namespaceURI==="http://www.w3.org/2000/svg"||d.hasAttribute("itemprop"))&&(d=c.createElement(l),c.head.insertBefore(d,c.querySelector("head > title"))),on(d,l,i),d[It]=e,Dt(d),l=d;break e;case"link":var y=Wb("link","href",c).get(l+(i.href||""));if(y){for(var E=0;E<y.length;E++)if(d=y[E],d.getAttribute("href")===(i.href==null||i.href===""?null:i.href)&&d.getAttribute("rel")===(i.rel==null?null:i.rel)&&d.getAttribute("title")===(i.title==null?null:i.title)&&d.getAttribute("crossorigin")===(i.crossOrigin==null?null:i.crossOrigin)){y.splice(E,1);break t}}d=c.createElement(l),on(d,l,i),c.head.appendChild(d);break;case"meta":if(y=Wb("meta","content",c).get(l+(i.content||""))){for(E=0;E<y.length;E++)if(d=y[E],d.getAttribute("content")===(i.content==null?null:""+i.content)&&d.getAttribute("name")===(i.name==null?null:i.name)&&d.getAttribute("property")===(i.property==null?null:i.property)&&d.getAttribute("http-equiv")===(i.httpEquiv==null?null:i.httpEquiv)&&d.getAttribute("charset")===(i.charSet==null?null:i.charSet)){y.splice(E,1);break t}}d=c.createElement(l),on(d,l,i),c.head.appendChild(d);break;default:throw Error(s(468,l))}d[It]=e,Dt(d),l=d}e.stateNode=l}else ey(c,e.type,e.stateNode);else e.stateNode=Jb(c,l,e.memoizedProps);else d!==l?(d===null?i.stateNode!==null&&(i=i.stateNode,i.parentNode.removeChild(i)):d.count--,l===null?ey(c,e.type,e.stateNode):Jb(c,l,e.memoizedProps)):l===null&&e.stateNode!==null&&Ju(e,e.memoizedProps,i.memoizedProps)}break;case 27:Cn(t,e),On(e),l&512&&(Kt||i===null||Si(i,i.return)),i!==null&&l&4&&Ju(e,e.memoizedProps,i.memoizedProps);break;case 5:if(Cn(t,e),On(e),l&512&&(Kt||i===null||Si(i,i.return)),e.flags&32){c=e.stateNode;try{Li(c,"")}catch(ye){dt(e,e.return,ye)}}l&4&&e.stateNode!=null&&(c=e.memoizedProps,Ju(e,c,i!==null?i.memoizedProps:c)),l&1024&&(tf=!0);break;case 6:if(Cn(t,e),On(e),l&4){if(e.stateNode===null)throw Error(s(162));l=e.memoizedProps,i=e.stateNode;try{i.nodeValue=l}catch(ye){dt(e,e.return,ye)}}break;case 3:if(vs=null,c=fi,fi=bs(t.containerInfo),Cn(t,e),fi=c,On(e),l&4&&i!==null&&i.memoizedState.isDehydrated)try{Hr(t.containerInfo)}catch(ye){dt(e,e.return,ye)}tf&&(tf=!1,eb(e));break;case 4:l=fi,fi=bs(e.stateNode.containerInfo),Cn(t,e),On(e),fi=l;break;case 12:Cn(t,e),On(e);break;case 31:Cn(t,e),On(e),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,is(e,l)));break;case 13:Cn(t,e),On(e),e.child.flags&8192&&e.memoizedState!==null!=(i!==null&&i.memoizedState!==null)&&(rs=lt()),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,is(e,l)));break;case 22:c=e.memoizedState!==null;var A=i!==null&&i.memoizedState!==null,B=Yi,P=Kt;if(Yi=B||c,Kt=P||A,Cn(t,e),Kt=P,Yi=B,On(e),l&8192)e:for(t=e.stateNode,t._visibility=c?t._visibility&-2:t._visibility|1,c&&(i===null||A||Yi||Kt||Qa(e)),i=null,t=e;;){if(t.tag===5||t.tag===26){if(i===null){A=i=t;try{if(d=A.stateNode,c)y=d.style,typeof y.setProperty=="function"?y.setProperty("display","none","important"):y.display="none";else{E=A.stateNode;var Z=A.memoizedProps.style,U=Z!=null&&Z.hasOwnProperty("display")?Z.display:null;E.style.display=U==null||typeof U=="boolean"?"":(""+U).trim()}}catch(ye){dt(A,A.return,ye)}}}else if(t.tag===6){if(i===null){A=t;try{A.stateNode.nodeValue=c?"":A.memoizedProps}catch(ye){dt(A,A.return,ye)}}}else if(t.tag===18){if(i===null){A=t;try{var F=A.stateNode;c?jb(F,!0):jb(A.stateNode,!1)}catch(ye){dt(A,A.return,ye)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;i===t&&(i=null),t=t.return}i===t&&(i=null),t.sibling.return=t.return,t=t.sibling}l&4&&(l=e.updateQueue,l!==null&&(i=l.retryQueue,i!==null&&(l.retryQueue=null,is(e,i))));break;case 19:Cn(t,e),On(e),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,is(e,l)));break;case 30:break;case 21:break;default:Cn(t,e),On(e)}}function On(e){var t=e.flags;if(t&2){try{for(var i,l=e.return;l!==null;){if(Ph(l)){i=l;break}l=l.return}if(i==null)throw Error(s(160));switch(i.tag){case 27:var c=i.stateNode,d=Wu(e);ns(e,d,c);break;case 5:var y=i.stateNode;i.flags&32&&(Li(y,""),i.flags&=-33);var E=Wu(e);ns(e,E,y);break;case 3:case 4:var A=i.stateNode.containerInfo,B=Wu(e);ef(e,B,A);break;default:throw Error(s(161))}}catch(P){dt(e,e.return,P)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function eb(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;eb(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function Ki(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)$h(e,t.alternate,t),t=t.sibling}function Qa(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:ga(4,t,t.return),Qa(t);break;case 1:Si(t,t.return);var i=t.stateNode;typeof i.componentWillUnmount=="function"&&jh(t,t.return,i),Qa(t);break;case 27:Gl(t.stateNode);case 26:case 5:Si(t,t.return),Qa(t);break;case 22:t.memoizedState===null&&Qa(t);break;case 30:Qa(t);break;default:Qa(t)}e=e.sibling}}function Vi(e,t,i){for(i=i&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var l=t.alternate,c=e,d=t,y=d.flags;switch(d.tag){case 0:case 11:case 15:Vi(c,d,i),Rl(4,d);break;case 1:if(Vi(c,d,i),l=d,c=l.stateNode,typeof c.componentDidMount=="function")try{c.componentDidMount()}catch(B){dt(l,l.return,B)}if(l=d,c=l.updateQueue,c!==null){var E=l.stateNode;try{var A=c.shared.hiddenCallbacks;if(A!==null)for(c.shared.hiddenCallbacks=null,c=0;c<A.length;c++)Mm(A[c],E)}catch(B){dt(l,l.return,B)}}i&&y&64&&Gh(d),Dl(d,d.return);break;case 27:Kh(d);case 26:case 5:Vi(c,d,i),i&&l===null&&y&4&&Yh(d),Dl(d,d.return);break;case 12:Vi(c,d,i);break;case 31:Vi(c,d,i),i&&y&4&&Qh(c,d);break;case 13:Vi(c,d,i),i&&y&4&&Jh(c,d);break;case 22:d.memoizedState===null&&Vi(c,d,i),Dl(d,d.return);break;case 30:break;default:Vi(c,d,i)}t=t.sibling}}function nf(e,t){var i=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(i=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==i&&(e!=null&&e.refCount++,i!=null&&vl(i))}function af(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&vl(e))}function di(e,t,i,l){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)tb(e,t,i,l),t=t.sibling}function tb(e,t,i,l){var c=t.flags;switch(t.tag){case 0:case 11:case 15:di(e,t,i,l),c&2048&&Rl(9,t);break;case 1:di(e,t,i,l);break;case 3:di(e,t,i,l),c&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&vl(e)));break;case 12:if(c&2048){di(e,t,i,l),e=t.stateNode;try{var d=t.memoizedProps,y=d.id,E=d.onPostCommit;typeof E=="function"&&E(y,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(A){dt(t,t.return,A)}}else di(e,t,i,l);break;case 31:di(e,t,i,l);break;case 13:di(e,t,i,l);break;case 23:break;case 22:d=t.stateNode,y=t.alternate,t.memoizedState!==null?d._visibility&2?di(e,t,i,l):Ll(e,t):d._visibility&2?di(e,t,i,l):(d._visibility|=2,Nr(e,t,i,l,(t.subtreeFlags&10256)!==0||!1)),c&2048&&nf(y,t);break;case 24:di(e,t,i,l),c&2048&&af(t.alternate,t);break;default:di(e,t,i,l)}}function Nr(e,t,i,l,c){for(c=c&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var d=e,y=t,E=i,A=l,B=y.flags;switch(y.tag){case 0:case 11:case 15:Nr(d,y,E,A,c),Rl(8,y);break;case 23:break;case 22:var P=y.stateNode;y.memoizedState!==null?P._visibility&2?Nr(d,y,E,A,c):Ll(d,y):(P._visibility|=2,Nr(d,y,E,A,c)),c&&B&2048&&nf(y.alternate,y);break;case 24:Nr(d,y,E,A,c),c&&B&2048&&af(y.alternate,y);break;default:Nr(d,y,E,A,c)}t=t.sibling}}function Ll(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var i=e,l=t,c=l.flags;switch(l.tag){case 22:Ll(i,l),c&2048&&nf(l.alternate,l);break;case 24:Ll(i,l),c&2048&&af(l.alternate,l);break;default:Ll(i,l)}t=t.sibling}}var zl=8192;function Cr(e,t,i){if(e.subtreeFlags&zl)for(e=e.child;e!==null;)nb(e,t,i),e=e.sibling}function nb(e,t,i){switch(e.tag){case 26:Cr(e,t,i),e.flags&zl&&e.memoizedState!==null&&uA(i,fi,e.memoizedState,e.memoizedProps);break;case 5:Cr(e,t,i);break;case 3:case 4:var l=fi;fi=bs(e.stateNode.containerInfo),Cr(e,t,i),fi=l;break;case 22:e.memoizedState===null&&(l=e.alternate,l!==null&&l.memoizedState!==null?(l=zl,zl=16777216,Cr(e,t,i),zl=l):Cr(e,t,i));break;default:Cr(e,t,i)}}function ib(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function Il(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var i=0;i<t.length;i++){var l=t[i];Wt=l,rb(l,e)}ib(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)ab(e),e=e.sibling}function ab(e){switch(e.tag){case 0:case 11:case 15:Il(e),e.flags&2048&&ga(9,e,e.return);break;case 3:Il(e);break;case 12:Il(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,as(e)):Il(e);break;default:Il(e)}}function as(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var i=0;i<t.length;i++){var l=t[i];Wt=l,rb(l,e)}ib(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:ga(8,t,t.return),as(t);break;case 22:i=t.stateNode,i._visibility&2&&(i._visibility&=-3,as(t));break;default:as(t)}e=e.sibling}}function rb(e,t){for(;Wt!==null;){var i=Wt;switch(i.tag){case 0:case 11:case 15:ga(8,i,t);break;case 23:case 22:if(i.memoizedState!==null&&i.memoizedState.cachePool!==null){var l=i.memoizedState.cachePool.pool;l!=null&&l.refCount++}break;case 24:vl(i.memoizedState.cache)}if(l=i.child,l!==null)l.return=i,Wt=l;else e:for(i=e;Wt!==null;){l=Wt;var c=l.sibling,d=l.return;if(Zh(l),l===i){Wt=null;break e}if(c!==null){c.return=d,Wt=c;break e}Wt=d}}}var wT={getCacheForType:function(e){var t=rn(jt),i=t.data.get(e);return i===void 0&&(i=e(),t.data.set(e,i)),i},cacheSignal:function(){return rn(jt).controller.signal}},TT=typeof WeakMap=="function"?WeakMap:Map,st=0,_t=null,Ze=null,Je=0,ft=0,Gn=null,ma=!1,Or=!1,rf=!1,$i=0,zt=0,ha=0,Ja=0,lf=0,jn=0,Mr=0,Bl=null,Mn=null,of=!1,rs=0,lb=0,ls=1/0,os=null,ba=null,Xt=0,ya=null,Rr=null,Zi=0,sf=0,cf=null,ob=null,Ul=0,uf=null;function Yn(){return(st&2)!==0&&Je!==0?Je&-Je:G.T!==null?hf():Mi()}function sb(){if(jn===0)if((Je&536870912)===0||et){var e=Oi;Oi<<=1,(Oi&3932160)===0&&(Oi=262144),jn=e}else jn=536870912;return e=qn.current,e!==null&&(e.flags|=32),jn}function Rn(e,t,i){(e===_t&&(ft===2||ft===9)||e.cancelPendingCommit!==null)&&(Dr(e,0),va(e,Je,jn,!1)),he(e,i),((st&2)===0||e!==_t)&&(e===_t&&((st&2)===0&&(Ja|=i),zt===4&&va(e,Je,jn,!1)),wi(e))}function cb(e,t,i){if((st&6)!==0)throw Error(s(327));var l=!i&&(t&127)===0&&(t&e.expiredLanes)===0||le(e,t),c=l?CT(e,t):df(e,t,!0),d=l;do{if(c===0){Or&&!l&&va(e,t,0,!1);break}else{if(i=e.current.alternate,d&&!AT(i)){c=df(e,t,!1),d=!1;continue}if(c===2){if(d=t,e.errorRecoveryDisabledLanes&d)var y=0;else y=e.pendingLanes&-536870913,y=y!==0?y:y&536870912?536870912:0;if(y!==0){t=y;e:{var E=e;c=Bl;var A=E.current.memoizedState.isDehydrated;if(A&&(Dr(E,y).flags|=256),y=df(E,y,!1),y!==2){if(rf&&!A){E.errorRecoveryDisabledLanes|=d,Ja|=d,c=4;break e}d=Mn,Mn=c,d!==null&&(Mn===null?Mn=d:Mn.push.apply(Mn,d))}c=y}if(d=!1,c!==2)continue}}if(c===1){Dr(e,0),va(e,t,0,!0);break}e:{switch(l=e,d=c,d){case 0:case 1:throw Error(s(345));case 4:if((t&4194048)!==t)break;case 6:va(l,t,jn,!ma);break e;case 2:Mn=null;break;case 3:case 5:break;default:throw Error(s(329))}if((t&62914560)===t&&(c=rs+300-lt(),10<c)){if(va(l,t,jn,!ma),V(l,0,!0)!==0)break e;Zi=t,l.timeoutHandle=qb(ub.bind(null,l,i,Mn,os,of,t,jn,Ja,Mr,ma,d,"Throttled",-0,0),c);break e}ub(l,i,Mn,os,of,t,jn,Ja,Mr,ma,d,null,-0,0)}}break}while(!0);wi(e)}function ub(e,t,i,l,c,d,y,E,A,B,P,Z,U,F){if(e.timeoutHandle=-1,Z=t.subtreeFlags,Z&8192||(Z&16785408)===16785408){Z={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:be},nb(t,d,Z);var ye=(d&62914560)===d?rs-lt():(d&4194048)===d?lb-lt():0;if(ye=fA(Z,ye),ye!==null){Zi=d,e.cancelPendingCommit=ye(yb.bind(null,e,t,d,i,l,c,y,E,A,P,Z,null,U,F)),va(e,d,y,!B);return}}yb(e,t,d,i,l,c,y,E,A)}function AT(e){for(var t=e;;){var i=t.tag;if((i===0||i===11||i===15)&&t.flags&16384&&(i=t.updateQueue,i!==null&&(i=i.stores,i!==null)))for(var l=0;l<i.length;l++){var c=i[l],d=c.getSnapshot;c=c.value;try{if(!Un(d(),c))return!1}catch{return!1}}if(i=t.child,t.subtreeFlags&16384&&i!==null)i.return=t,t=i;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function va(e,t,i,l){t&=~lf,t&=~Ja,e.suspendedLanes|=t,e.pingedLanes&=~t,l&&(e.warmLanes|=t),l=e.expirationTimes;for(var c=t;0<c;){var d=31-St(c),y=1<<d;l[d]=-1,c&=~y}i!==0&&Se(e,i,t)}function ss(){return(st&6)===0?(Hl(0),!1):!0}function ff(){if(Ze!==null){if(ft===0)var e=Ze.return;else e=Ze,Ui=ja=null,Tu(e),xr=null,El=0,e=Ze;for(;e!==null;)Fh(e.alternate,e),e=e.return;Ze=null}}function Dr(e,t){var i=e.timeoutHandle;i!==-1&&(e.timeoutHandle=-1,VT(i)),i=e.cancelPendingCommit,i!==null&&(e.cancelPendingCommit=null,i()),Zi=0,ff(),_t=e,Ze=i=Ii(e.current,null),Je=t,ft=0,Gn=null,ma=!1,Or=le(e,t),rf=!1,Mr=jn=lf=Ja=ha=zt=0,Mn=Bl=null,of=!1,(t&8)!==0&&(t|=t&32);var l=e.entangledLanes;if(l!==0)for(e=e.entanglements,l&=t;0<l;){var c=31-St(l),d=1<<c;t|=e[c],l&=~d}return $i=t,Co(),i}function fb(e,t){je=null,G.H=Cl,t===_r||t===Bo?(t=Am(),ft=3):t===gu?(t=Am(),ft=4):ft=t===Gu?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,Gn=t,Ze===null&&(zt=1,Qo(e,Wn(t,e.current)))}function db(){var e=qn.current;return e===null?!0:(Je&4194048)===Je?ii===null:(Je&62914560)===Je||(Je&536870912)!==0?e===ii:!1}function pb(){var e=G.H;return G.H=Cl,e===null?Cl:e}function gb(){var e=G.A;return G.A=wT,e}function cs(){zt=4,ma||(Je&4194048)!==Je&&qn.current!==null||(Or=!0),(ha&134217727)===0&&(Ja&134217727)===0||_t===null||va(_t,Je,jn,!1)}function df(e,t,i){var l=st;st|=2;var c=pb(),d=gb();(_t!==e||Je!==t)&&(os=null,Dr(e,t)),t=!1;var y=zt;e:do try{if(ft!==0&&Ze!==null){var E=Ze,A=Gn;switch(ft){case 8:ff(),y=6;break e;case 3:case 2:case 9:case 6:qn.current===null&&(t=!0);var B=ft;if(ft=0,Gn=null,Lr(e,E,A,B),i&&Or){y=0;break e}break;default:B=ft,ft=0,Gn=null,Lr(e,E,A,B)}}NT(),y=zt;break}catch(P){fb(e,P)}while(!0);return t&&e.shellSuspendCounter++,Ui=ja=null,st=l,G.H=c,G.A=d,Ze===null&&(_t=null,Je=0,Co()),y}function NT(){for(;Ze!==null;)mb(Ze)}function CT(e,t){var i=st;st|=2;var l=pb(),c=gb();_t!==e||Je!==t?(os=null,ls=lt()+500,Dr(e,t)):Or=le(e,t);e:do try{if(ft!==0&&Ze!==null){t=Ze;var d=Gn;t:switch(ft){case 1:ft=0,Gn=null,Lr(e,t,d,1);break;case 2:case 9:if(wm(d)){ft=0,Gn=null,hb(t);break}t=function(){ft!==2&&ft!==9||_t!==e||(ft=7),wi(e)},d.then(t,t);break e;case 3:ft=7;break e;case 4:ft=5;break e;case 7:wm(d)?(ft=0,Gn=null,hb(t)):(ft=0,Gn=null,Lr(e,t,d,7));break;case 5:var y=null;switch(Ze.tag){case 26:y=Ze.memoizedState;case 5:case 27:var E=Ze;if(y?ty(y):E.stateNode.complete){ft=0,Gn=null;var A=E.sibling;if(A!==null)Ze=A;else{var B=E.return;B!==null?(Ze=B,us(B)):Ze=null}break t}}ft=0,Gn=null,Lr(e,t,d,5);break;case 6:ft=0,Gn=null,Lr(e,t,d,6);break;case 8:ff(),zt=6;break e;default:throw Error(s(462))}}OT();break}catch(P){fb(e,P)}while(!0);return Ui=ja=null,G.H=l,G.A=c,st=i,Ze!==null?0:(_t=null,Je=0,Co(),zt)}function OT(){for(;Ze!==null&&!$n();)mb(Ze)}function mb(e){var t=Hh(e.alternate,e,$i);e.memoizedProps=e.pendingProps,t===null?us(e):Ze=t}function hb(e){var t=e,i=t.alternate;switch(t.tag){case 15:case 0:t=Dh(i,t,t.pendingProps,t.type,void 0,Je);break;case 11:t=Dh(i,t,t.pendingProps,t.type.render,t.ref,Je);break;case 5:Tu(t);default:Fh(i,t),t=Ze=gm(t,$i),t=Hh(i,t,$i)}e.memoizedProps=e.pendingProps,t===null?us(e):Ze=t}function Lr(e,t,i,l){Ui=ja=null,Tu(t),xr=null,El=0;var c=t.return;try{if(yT(e,c,t,i,Je)){zt=1,Qo(e,Wn(i,e.current)),Ze=null;return}}catch(d){if(c!==null)throw Ze=c,d;zt=1,Qo(e,Wn(i,e.current)),Ze=null;return}t.flags&32768?(et||l===1?e=!0:Or||(Je&536870912)!==0?e=!1:(ma=e=!0,(l===2||l===9||l===3||l===6)&&(l=qn.current,l!==null&&l.tag===13&&(l.flags|=16384))),bb(t,e)):us(t)}function us(e){var t=e;do{if((t.flags&32768)!==0){bb(t,ma);return}e=t.return;var i=ET(t.alternate,t,$i);if(i!==null){Ze=i;return}if(t=t.sibling,t!==null){Ze=t;return}Ze=t=e}while(t!==null);zt===0&&(zt=5)}function bb(e,t){do{var i=_T(e.alternate,e);if(i!==null){i.flags&=32767,Ze=i;return}if(i=e.return,i!==null&&(i.flags|=32768,i.subtreeFlags=0,i.deletions=null),!t&&(e=e.sibling,e!==null)){Ze=e;return}Ze=e=i}while(e!==null);zt=6,Ze=null}function yb(e,t,i,l,c,d,y,E,A){e.cancelPendingCommit=null;do fs();while(Xt!==0);if((st&6)!==0)throw Error(s(327));if(t!==null){if(t===e.current)throw Error(s(177));if(d=t.lanes|t.childLanes,d|=Wc,ge(e,i,d,y,E,A),e===_t&&(Ze=_t=null,Je=0),Rr=t,ya=e,Zi=i,sf=d,cf=c,ob=l,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,LT(qe,function(){return xb(),null})):(e.callbackNode=null,e.callbackPriority=0),l=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||l){l=G.T,G.T=null,c=K.p,K.p=2,y=st,st|=4;try{xT(e,t,i)}finally{st=y,K.p=c,G.T=l}}Xt=1,vb(),kb(),Eb()}}function vb(){if(Xt===1){Xt=0;var e=ya,t=Rr,i=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||i){i=G.T,G.T=null;var l=K.p;K.p=2;var c=st;st|=4;try{Wh(t,e);var d=Sf,y=rm(e.containerInfo),E=d.focusedElem,A=d.selectionRange;if(y!==E&&E&&E.ownerDocument&&am(E.ownerDocument.documentElement,E)){if(A!==null&&$c(E)){var B=A.start,P=A.end;if(P===void 0&&(P=B),"selectionStart"in E)E.selectionStart=B,E.selectionEnd=Math.min(P,E.value.length);else{var Z=E.ownerDocument||document,U=Z&&Z.defaultView||window;if(U.getSelection){var F=U.getSelection(),ye=E.textContent.length,Ne=Math.min(A.start,ye),bt=A.end===void 0?Ne:Math.min(A.end,ye);!F.extend&&Ne>bt&&(y=bt,bt=Ne,Ne=y);var R=im(E,Ne),O=im(E,bt);if(R&&O&&(F.rangeCount!==1||F.anchorNode!==R.node||F.anchorOffset!==R.offset||F.focusNode!==O.node||F.focusOffset!==O.offset)){var I=Z.createRange();I.setStart(R.node,R.offset),F.removeAllRanges(),Ne>bt?(F.addRange(I),F.extend(O.node,O.offset)):(I.setEnd(O.node,O.offset),F.addRange(I))}}}}for(Z=[],F=E;F=F.parentNode;)F.nodeType===1&&Z.push({element:F,left:F.scrollLeft,top:F.scrollTop});for(typeof E.focus=="function"&&E.focus(),E=0;E<Z.length;E++){var $=Z[E];$.element.scrollLeft=$.left,$.element.scrollTop=$.top}}xs=!!xf,Sf=xf=null}finally{st=c,K.p=l,G.T=i}}e.current=t,Xt=2}}function kb(){if(Xt===2){Xt=0;var e=ya,t=Rr,i=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||i){i=G.T,G.T=null;var l=K.p;K.p=2;var c=st;st|=4;try{$h(e,t.alternate,t)}finally{st=c,K.p=l,G.T=i}}Xt=3}}function Eb(){if(Xt===4||Xt===3){Xt=0,Rt();var e=ya,t=Rr,i=Zi,l=ob;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?Xt=5:(Xt=0,Rr=ya=null,_b(e,e.pendingLanes));var c=e.pendingLanes;if(c===0&&(ba=null),pn(i),t=t.stateNode,xt&&typeof xt.onCommitFiberRoot=="function")try{xt.onCommitFiberRoot(Jt,t,void 0,(t.current.flags&128)===128)}catch{}if(l!==null){t=G.T,c=K.p,K.p=2,G.T=null;try{for(var d=e.onRecoverableError,y=0;y<l.length;y++){var E=l[y];d(E.value,{componentStack:E.stack})}}finally{G.T=t,K.p=c}}(Zi&3)!==0&&fs(),wi(e),c=e.pendingLanes,(i&261930)!==0&&(c&42)!==0?e===uf?Ul++:(Ul=0,uf=e):Ul=0,Hl(0)}}function _b(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,vl(t)))}function fs(){return vb(),kb(),Eb(),xb()}function xb(){if(Xt!==5)return!1;var e=ya,t=sf;sf=0;var i=pn(Zi),l=G.T,c=K.p;try{K.p=32>i?32:i,G.T=null,i=cf,cf=null;var d=ya,y=Zi;if(Xt=0,Rr=ya=null,Zi=0,(st&6)!==0)throw Error(s(331));var E=st;if(st|=4,ab(d.current),tb(d,d.current,y,i),st=E,Hl(0,!1),xt&&typeof xt.onPostCommitFiberRoot=="function")try{xt.onPostCommitFiberRoot(Jt,d)}catch{}return!0}finally{K.p=c,G.T=l,_b(e,t)}}function Sb(e,t,i){t=Wn(i,t),t=Fu(e.stateNode,t,2),e=fa(e,t,2),e!==null&&(he(e,2),wi(e))}function dt(e,t,i){if(e.tag===3)Sb(e,e,i);else for(;t!==null;){if(t.tag===3){Sb(t,e,i);break}else if(t.tag===1){var l=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof l.componentDidCatch=="function"&&(ba===null||!ba.has(l))){e=Wn(i,e),i=wh(2),l=fa(t,i,2),l!==null&&(Th(i,l,t,e),he(l,2),wi(l));break}}t=t.return}}function pf(e,t,i){var l=e.pingCache;if(l===null){l=e.pingCache=new TT;var c=new Set;l.set(t,c)}else c=l.get(t),c===void 0&&(c=new Set,l.set(t,c));c.has(i)||(rf=!0,c.add(i),e=MT.bind(null,e,t,i),t.then(e,e))}function MT(e,t,i){var l=e.pingCache;l!==null&&l.delete(t),e.pingedLanes|=e.suspendedLanes&i,e.warmLanes&=~i,_t===e&&(Je&i)===i&&(zt===4||zt===3&&(Je&62914560)===Je&&300>lt()-rs?(st&2)===0&&Dr(e,0):lf|=i,Mr===Je&&(Mr=0)),wi(e)}function wb(e,t){t===0&&(t=wt()),e=qa(e,t),e!==null&&(he(e,t),wi(e))}function RT(e){var t=e.memoizedState,i=0;t!==null&&(i=t.retryLane),wb(e,i)}function DT(e,t){var i=0;switch(e.tag){case 31:case 13:var l=e.stateNode,c=e.memoizedState;c!==null&&(i=c.retryLane);break;case 19:l=e.stateNode;break;case 22:l=e.stateNode._retryCache;break;default:throw Error(s(314))}l!==null&&l.delete(t),wb(e,i)}function LT(e,t){return Ni(e,t)}var ds=null,zr=null,gf=!1,ps=!1,mf=!1,ka=0;function wi(e){e!==zr&&e.next===null&&(zr===null?ds=zr=e:zr=zr.next=e),ps=!0,gf||(gf=!0,IT())}function Hl(e,t){if(!mf&&ps){mf=!0;do for(var i=!1,l=ds;l!==null;){if(e!==0){var c=l.pendingLanes;if(c===0)var d=0;else{var y=l.suspendedLanes,E=l.pingedLanes;d=(1<<31-St(42|e)+1)-1,d&=c&~(y&~E),d=d&201326741?d&201326741|1:d?d|2:0}d!==0&&(i=!0,Cb(l,d))}else d=Je,d=V(l,l===_t?d:0,l.cancelPendingCommit!==null||l.timeoutHandle!==-1),(d&3)===0||le(l,d)||(i=!0,Cb(l,d));l=l.next}while(i);mf=!1}}function zT(){Tb()}function Tb(){ps=gf=!1;var e=0;ka!==0&&KT()&&(e=ka);for(var t=lt(),i=null,l=ds;l!==null;){var c=l.next,d=Ab(l,t);d===0?(l.next=null,i===null?ds=c:i.next=c,c===null&&(zr=i)):(i=l,(e!==0||(d&3)!==0)&&(ps=!0)),l=c}Xt!==0&&Xt!==5||Hl(e),ka!==0&&(ka=0)}function Ab(e,t){for(var i=e.suspendedLanes,l=e.pingedLanes,c=e.expirationTimes,d=e.pendingLanes&-62914561;0<d;){var y=31-St(d),E=1<<y,A=c[y];A===-1?((E&i)===0||(E&l)!==0)&&(c[y]=De(E,t)):A<=t&&(e.expiredLanes|=E),d&=~E}if(t=_t,i=Je,i=V(e,e===t?i:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),l=e.callbackNode,i===0||e===t&&(ft===2||ft===9)||e.cancelPendingCommit!==null)return l!==null&&l!==null&&Bn(l),e.callbackNode=null,e.callbackPriority=0;if((i&3)===0||le(e,i)){if(t=i&-i,t===e.callbackPriority)return t;switch(l!==null&&Bn(l),pn(i)){case 2:case 8:i=Ae;break;case 32:i=qe;break;case 268435456:i=$t;break;default:i=qe}return l=Nb.bind(null,e),i=Ni(i,l),e.callbackPriority=t,e.callbackNode=i,t}return l!==null&&l!==null&&Bn(l),e.callbackPriority=2,e.callbackNode=null,2}function Nb(e,t){if(Xt!==0&&Xt!==5)return e.callbackNode=null,e.callbackPriority=0,null;var i=e.callbackNode;if(fs()&&e.callbackNode!==i)return null;var l=Je;return l=V(e,e===_t?l:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),l===0?null:(cb(e,l,t),Ab(e,lt()),e.callbackNode!=null&&e.callbackNode===i?Nb.bind(null,e):null)}function Cb(e,t){if(fs())return null;cb(e,t,!0)}function IT(){$T(function(){(st&6)!==0?Ni(ae,zT):Tb()})}function hf(){if(ka===0){var e=kr;e===0&&(e=Wi,Wi<<=1,(Wi&261888)===0&&(Wi=256)),ka=e}return ka}function Ob(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:ue(""+e)}function Mb(e,t){var i=t.ownerDocument.createElement("input");return i.name=t.name,i.value=t.value,e.id&&i.setAttribute("form",e.id),t.parentNode.insertBefore(i,t),e=new FormData(e),i.parentNode.removeChild(i),e}function BT(e,t,i,l,c){if(t==="submit"&&i&&i.stateNode===c){var d=Ob((c[Bt]||null).action),y=l.submitter;y&&(t=(t=y[Bt]||null)?Ob(t.formAction):y.getAttribute("formAction"),t!==null&&(d=t,y=null));var E=new wo("action","action",null,l,c);e.push({event:E,listeners:[{instance:null,listener:function(){if(l.defaultPrevented){if(ka!==0){var A=y?Mb(c,y):new FormData(c);zu(i,{pending:!0,data:A,method:c.method,action:d},null,A)}}else typeof d=="function"&&(E.preventDefault(),A=y?Mb(c,y):new FormData(c),zu(i,{pending:!0,data:A,method:c.method,action:d},d,A))},currentTarget:c}]})}}for(var bf=0;bf<Jc.length;bf++){var yf=Jc[bf],UT=yf.toLowerCase(),HT=yf[0].toUpperCase()+yf.slice(1);ui(UT,"on"+HT)}ui(sm,"onAnimationEnd"),ui(cm,"onAnimationIteration"),ui(um,"onAnimationStart"),ui("dblclick","onDoubleClick"),ui("focusin","onFocus"),ui("focusout","onBlur"),ui(tT,"onTransitionRun"),ui(nT,"onTransitionStart"),ui(iT,"onTransitionCancel"),ui(fm,"onTransitionEnd"),ke("onMouseEnter",["mouseout","mouseover"]),ke("onMouseLeave",["mouseout","mouseover"]),ke("onPointerEnter",["pointerout","pointerover"]),ke("onPointerLeave",["pointerout","pointerover"]),W("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),W("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),W("onBeforeInput",["compositionend","keypress","textInput","paste"]),W("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),W("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),W("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var ql="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(" "),qT=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(ql));function Rb(e,t){t=(t&4)!==0;for(var i=0;i<e.length;i++){var l=e[i],c=l.event;l=l.listeners;e:{var d=void 0;if(t)for(var y=l.length-1;0<=y;y--){var E=l[y],A=E.instance,B=E.currentTarget;if(E=E.listener,A!==d&&c.isPropagationStopped())break e;d=E,c.currentTarget=B;try{d(c)}catch(P){No(P)}c.currentTarget=null,d=A}else for(y=0;y<l.length;y++){if(E=l[y],A=E.instance,B=E.currentTarget,E=E.listener,A!==d&&c.isPropagationStopped())break e;d=E,c.currentTarget=B;try{d(c)}catch(P){No(P)}c.currentTarget=null,d=A}}}}function Xe(e,t){var i=t[ta];i===void 0&&(i=t[ta]=new Set);var l=e+"__bubble";i.has(l)||(Db(t,e,2,!1),i.add(l))}function vf(e,t,i){var l=0;t&&(l|=4),Db(i,e,l,t)}var gs="_reactListening"+Math.random().toString(36).slice(2);function kf(e){if(!e[gs]){e[gs]=!0,oi.forEach(function(i){i!=="selectionchange"&&(qT.has(i)||vf(i,!1,e),vf(i,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[gs]||(t[gs]=!0,vf("selectionchange",!1,t))}}function Db(e,t,i,l){switch(sy(t)){case 2:var c=gA;break;case 8:c=mA;break;default:c=zf}i=c.bind(null,t,i,e),c=void 0,!Hc||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(c=!0),l?c!==void 0?e.addEventListener(t,i,{capture:!0,passive:c}):e.addEventListener(t,i,!0):c!==void 0?e.addEventListener(t,i,{passive:c}):e.addEventListener(t,i,!1)}function Ef(e,t,i,l,c){var d=l;if((t&1)===0&&(t&2)===0&&l!==null)e:for(;;){if(l===null)return;var y=l.tag;if(y===3||y===4){var E=l.stateNode.containerInfo;if(E===c)break;if(y===4)for(y=l.return;y!==null;){var A=y.tag;if((A===3||A===4)&&y.stateNode.containerInfo===c)return;y=y.return}for(;E!==null;){if(y=Xn(E),y===null)return;if(A=y.tag,A===5||A===6||A===26||A===27){l=d=y;continue e}E=E.parentNode}}l=l.return}Ug(function(){var B=d,P=it(i),Z=[];e:{var U=dm.get(e);if(U!==void 0){var F=wo,ye=e;switch(e){case"keypress":if(xo(i)===0)break e;case"keydown":case"keyup":F=Dw;break;case"focusin":ye="focus",F=jc;break;case"focusout":ye="blur",F=jc;break;case"beforeblur":case"afterblur":F=jc;break;case"click":if(i.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":F=Fg;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":F=Ew;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":F=Iw;break;case sm:case cm:case um:F=Sw;break;case fm:F=Uw;break;case"scroll":case"scrollend":F=vw;break;case"wheel":F=qw;break;case"copy":case"cut":case"paste":F=Tw;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":F=jg;break;case"toggle":case"beforetoggle":F=Gw}var Ne=(t&4)!==0,bt=!Ne&&(e==="scroll"||e==="scrollend"),R=Ne?U!==null?U+"Capture":null:U;Ne=[];for(var O=B,I;O!==null;){var $=O;if(I=$.stateNode,$=$.tag,$!==5&&$!==26&&$!==27||I===null||R===null||($=sl(O,R),$!=null&&Ne.push(Fl(O,$,I))),bt)break;O=O.return}0<Ne.length&&(U=new F(U,ye,null,i,P),Z.push({event:U,listeners:Ne}))}}if((t&7)===0){e:{if(U=e==="mouseover"||e==="pointerover",F=e==="mouseout"||e==="pointerout",U&&i!==Fe&&(ye=i.relatedTarget||i.fromElement)&&(Xn(ye)||ye[Zn]))break e;if((F||U)&&(U=P.window===P?P:(U=P.ownerDocument)?U.defaultView||U.parentWindow:window,F?(ye=i.relatedTarget||i.toElement,F=B,ye=ye?Xn(ye):null,ye!==null&&(bt=u(ye),Ne=ye.tag,ye!==bt||Ne!==5&&Ne!==27&&Ne!==6)&&(ye=null)):(F=null,ye=B),F!==ye)){if(Ne=Fg,$="onMouseLeave",R="onMouseEnter",O="mouse",(e==="pointerout"||e==="pointerover")&&(Ne=jg,$="onPointerLeave",R="onPointerEnter",O="pointer"),bt=F==null?U:Ri(F),I=ye==null?U:Ri(ye),U=new Ne($,O+"leave",F,i,P),U.target=bt,U.relatedTarget=I,$=null,Xn(P)===B&&(Ne=new Ne(R,O+"enter",ye,i,P),Ne.target=I,Ne.relatedTarget=bt,$=Ne),bt=$,F&&ye)t:{for(Ne=FT,R=F,O=ye,I=0,$=R;$;$=Ne($))I++;$=0;for(var xe=O;xe;xe=Ne(xe))$++;for(;0<I-$;)R=Ne(R),I--;for(;0<$-I;)O=Ne(O),$--;for(;I--;){if(R===O||O!==null&&R===O.alternate){Ne=R;break t}R=Ne(R),O=Ne(O)}Ne=null}else Ne=null;F!==null&&Lb(Z,U,F,Ne,!1),ye!==null&&bt!==null&&Lb(Z,bt,ye,Ne,!0)}}e:{if(U=B?Ri(B):window,F=U.nodeName&&U.nodeName.toLowerCase(),F==="select"||F==="input"&&U.type==="file")var at=Qg;else if(Zg(U))if(Jg)at=Jw;else{at=Xw;var Ee=Zw}else F=U.nodeName,!F||F.toLowerCase()!=="input"||U.type!=="checkbox"&&U.type!=="radio"?B&&ci(B.elementType)&&(at=Qg):at=Qw;if(at&&(at=at(e,B))){Xg(Z,at,i,P);break e}Ee&&Ee(e,U,B),e==="focusout"&&B&&U.type==="number"&&B.memoizedProps.value!=null&&Tn(U,"number",U.value)}switch(Ee=B?Ri(B):window,e){case"focusin":(Zg(Ee)||Ee.contentEditable==="true")&&(dr=Ee,Zc=B,hl=null);break;case"focusout":hl=Zc=dr=null;break;case"mousedown":Xc=!0;break;case"contextmenu":case"mouseup":case"dragend":Xc=!1,lm(Z,i,P);break;case"selectionchange":if(eT)break;case"keydown":case"keyup":lm(Z,i,P)}var Ye;if(Pc)e:{switch(e){case"compositionstart":var We="onCompositionStart";break e;case"compositionend":We="onCompositionEnd";break e;case"compositionupdate":We="onCompositionUpdate";break e}We=void 0}else fr?Vg(e,i)&&(We="onCompositionEnd"):e==="keydown"&&i.keyCode===229&&(We="onCompositionStart");We&&(Yg&&i.locale!=="ko"&&(fr||We!=="onCompositionStart"?We==="onCompositionEnd"&&fr&&(Ye=Hg()):(aa=P,qc="value"in aa?aa.value:aa.textContent,fr=!0)),Ee=ms(B,We),0<Ee.length&&(We=new Gg(We,e,null,i,P),Z.push({event:We,listeners:Ee}),Ye?We.data=Ye:(Ye=$g(i),Ye!==null&&(We.data=Ye)))),(Ye=Yw?Pw(e,i):Kw(e,i))&&(We=ms(B,"onBeforeInput"),0<We.length&&(Ee=new Gg("onBeforeInput","beforeinput",null,i,P),Z.push({event:Ee,listeners:We}),Ee.data=Ye)),BT(Z,e,B,i,P)}Rb(Z,t)})}function Fl(e,t,i){return{instance:e,listener:t,currentTarget:i}}function ms(e,t){for(var i=t+"Capture",l=[];e!==null;){var c=e,d=c.stateNode;if(c=c.tag,c!==5&&c!==26&&c!==27||d===null||(c=sl(e,i),c!=null&&l.unshift(Fl(e,c,d)),c=sl(e,t),c!=null&&l.push(Fl(e,c,d))),e.tag===3)return l;e=e.return}return[]}function FT(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Lb(e,t,i,l,c){for(var d=t._reactName,y=[];i!==null&&i!==l;){var E=i,A=E.alternate,B=E.stateNode;if(E=E.tag,A!==null&&A===l)break;E!==5&&E!==26&&E!==27||B===null||(A=B,c?(B=sl(i,d),B!=null&&y.unshift(Fl(i,B,A))):c||(B=sl(i,d),B!=null&&y.push(Fl(i,B,A)))),i=i.return}y.length!==0&&e.push({event:t,listeners:y})}var GT=/\r\n?/g,jT=/\u0000|\uFFFD/g;function zb(e){return(typeof e=="string"?e:""+e).replace(GT,`
9
- `).replace(jT,"")}function Ib(e,t){return t=zb(t),zb(e)===t}function ht(e,t,i,l,c,d){switch(i){case"children":typeof l=="string"?t==="body"||t==="textarea"&&l===""||Li(e,l):(typeof l=="number"||typeof l=="bigint")&&t!=="body"&&Li(e,""+l);break;case"className":Le(e,"class",l);break;case"tabIndex":Le(e,"tabindex",l);break;case"dir":case"role":case"viewBox":case"width":case"height":Le(e,i,l);break;case"style":Ia(e,l,d);break;case"data":if(t!=="object"){Le(e,"data",l);break}case"src":case"href":if(l===""&&(t!=="a"||i!=="href")){e.removeAttribute(i);break}if(l==null||typeof l=="function"||typeof l=="symbol"||typeof l=="boolean"){e.removeAttribute(i);break}l=ue(""+l),e.setAttribute(i,l);break;case"action":case"formAction":if(typeof l=="function"){e.setAttribute(i,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof d=="function"&&(i==="formAction"?(t!=="input"&&ht(e,t,"name",c.name,c,null),ht(e,t,"formEncType",c.formEncType,c,null),ht(e,t,"formMethod",c.formMethod,c,null),ht(e,t,"formTarget",c.formTarget,c,null)):(ht(e,t,"encType",c.encType,c,null),ht(e,t,"method",c.method,c,null),ht(e,t,"target",c.target,c,null)));if(l==null||typeof l=="symbol"||typeof l=="boolean"){e.removeAttribute(i);break}l=ue(""+l),e.setAttribute(i,l);break;case"onClick":l!=null&&(e.onclick=be);break;case"onScroll":l!=null&&Xe("scroll",e);break;case"onScrollEnd":l!=null&&Xe("scrollend",e);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(s(61));if(i=l.__html,i!=null){if(c.children!=null)throw Error(s(60));e.innerHTML=i}}break;case"multiple":e.multiple=l&&typeof l!="function"&&typeof l!="symbol";break;case"muted":e.muted=l&&typeof l!="function"&&typeof l!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(l==null||typeof l=="function"||typeof l=="boolean"||typeof l=="symbol"){e.removeAttribute("xlink:href");break}i=ue(""+l),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",i);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":l!=null&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(i,""+l):e.removeAttribute(i);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":l&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(i,""):e.removeAttribute(i);break;case"capture":case"download":l===!0?e.setAttribute(i,""):l!==!1&&l!=null&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(i,l):e.removeAttribute(i);break;case"cols":case"rows":case"size":case"span":l!=null&&typeof l!="function"&&typeof l!="symbol"&&!isNaN(l)&&1<=l?e.setAttribute(i,l):e.removeAttribute(i);break;case"rowSpan":case"start":l==null||typeof l=="function"||typeof l=="symbol"||isNaN(l)?e.removeAttribute(i):e.setAttribute(i,l);break;case"popover":Xe("beforetoggle",e),Xe("toggle",e),Oe(e,"popover",l);break;case"xlinkActuate":Me(e,"http://www.w3.org/1999/xlink","xlink:actuate",l);break;case"xlinkArcrole":Me(e,"http://www.w3.org/1999/xlink","xlink:arcrole",l);break;case"xlinkRole":Me(e,"http://www.w3.org/1999/xlink","xlink:role",l);break;case"xlinkShow":Me(e,"http://www.w3.org/1999/xlink","xlink:show",l);break;case"xlinkTitle":Me(e,"http://www.w3.org/1999/xlink","xlink:title",l);break;case"xlinkType":Me(e,"http://www.w3.org/1999/xlink","xlink:type",l);break;case"xmlBase":Me(e,"http://www.w3.org/XML/1998/namespace","xml:base",l);break;case"xmlLang":Me(e,"http://www.w3.org/XML/1998/namespace","xml:lang",l);break;case"xmlSpace":Me(e,"http://www.w3.org/XML/1998/namespace","xml:space",l);break;case"is":Oe(e,"is",l);break;case"innerText":case"textContent":break;default:(!(2<i.length)||i[0]!=="o"&&i[0]!=="O"||i[1]!=="n"&&i[1]!=="N")&&(i=rl.get(i)||i,Oe(e,i,l))}}function _f(e,t,i,l,c,d){switch(i){case"style":Ia(e,l,d);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(s(61));if(i=l.__html,i!=null){if(c.children!=null)throw Error(s(60));e.innerHTML=i}}break;case"children":typeof l=="string"?Li(e,l):(typeof l=="number"||typeof l=="bigint")&&Li(e,""+l);break;case"onScroll":l!=null&&Xe("scroll",e);break;case"onScrollEnd":l!=null&&Xe("scrollend",e);break;case"onClick":l!=null&&(e.onclick=be);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!za.hasOwnProperty(i))e:{if(i[0]==="o"&&i[1]==="n"&&(c=i.endsWith("Capture"),t=i.slice(2,c?i.length-7:void 0),d=e[Bt]||null,d=d!=null?d[i]:null,typeof d=="function"&&e.removeEventListener(t,d,c),typeof l=="function")){typeof d!="function"&&d!==null&&(i in e?e[i]=null:e.hasAttribute(i)&&e.removeAttribute(i)),e.addEventListener(t,l,c);break e}i in e?e[i]=l:l===!0?e.setAttribute(i,""):Oe(e,i,l)}}}function on(e,t,i){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Xe("error",e),Xe("load",e);var l=!1,c=!1,d;for(d in i)if(i.hasOwnProperty(d)){var y=i[d];if(y!=null)switch(d){case"src":l=!0;break;case"srcSet":c=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(s(137,t));default:ht(e,t,d,y,i,null)}}c&&ht(e,t,"srcSet",i.srcSet,i,null),l&&ht(e,t,"src",i.src,i,null);return;case"input":Xe("invalid",e);var E=d=y=c=null,A=null,B=null;for(l in i)if(i.hasOwnProperty(l)){var P=i[l];if(P!=null)switch(l){case"name":c=P;break;case"type":y=P;break;case"checked":A=P;break;case"defaultChecked":B=P;break;case"value":d=P;break;case"defaultValue":E=P;break;case"children":case"dangerouslySetInnerHTML":if(P!=null)throw Error(s(137,t));break;default:ht(e,t,l,P,i,null)}}al(e,d,E,A,B,y,c,!1);return;case"select":Xe("invalid",e),l=y=d=null;for(c in i)if(i.hasOwnProperty(c)&&(E=i[c],E!=null))switch(c){case"value":d=E;break;case"defaultValue":y=E;break;case"multiple":l=E;default:ht(e,t,c,E,i,null)}t=d,i=y,e.multiple=!!l,t!=null?ia(e,!!l,t,!1):i!=null&&ia(e,!!l,i,!0);return;case"textarea":Xe("invalid",e),d=c=l=null;for(y in i)if(i.hasOwnProperty(y)&&(E=i[y],E!=null))switch(y){case"value":l=E;break;case"defaultValue":c=E;break;case"children":d=E;break;case"dangerouslySetInnerHTML":if(E!=null)throw Error(s(91));break;default:ht(e,t,y,E,i,null)}ze(e,l,c,d);return;case"option":for(A in i)i.hasOwnProperty(A)&&(l=i[A],l!=null)&&(A==="selected"?e.selected=l&&typeof l!="function"&&typeof l!="symbol":ht(e,t,A,l,i,null));return;case"dialog":Xe("beforetoggle",e),Xe("toggle",e),Xe("cancel",e),Xe("close",e);break;case"iframe":case"object":Xe("load",e);break;case"video":case"audio":for(l=0;l<ql.length;l++)Xe(ql[l],e);break;case"image":Xe("error",e),Xe("load",e);break;case"details":Xe("toggle",e);break;case"embed":case"source":case"link":Xe("error",e),Xe("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(B in i)if(i.hasOwnProperty(B)&&(l=i[B],l!=null))switch(B){case"children":case"dangerouslySetInnerHTML":throw Error(s(137,t));default:ht(e,t,B,l,i,null)}return;default:if(ci(t)){for(P in i)i.hasOwnProperty(P)&&(l=i[P],l!==void 0&&_f(e,t,P,l,i,void 0));return}}for(E in i)i.hasOwnProperty(E)&&(l=i[E],l!=null&&ht(e,t,E,l,i,null))}function YT(e,t,i,l){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var c=null,d=null,y=null,E=null,A=null,B=null,P=null;for(F in i){var Z=i[F];if(i.hasOwnProperty(F)&&Z!=null)switch(F){case"checked":break;case"value":break;case"defaultValue":A=Z;default:l.hasOwnProperty(F)||ht(e,t,F,null,l,Z)}}for(var U in l){var F=l[U];if(Z=i[U],l.hasOwnProperty(U)&&(F!=null||Z!=null))switch(U){case"type":d=F;break;case"name":c=F;break;case"checked":B=F;break;case"defaultChecked":P=F;break;case"value":y=F;break;case"defaultValue":E=F;break;case"children":case"dangerouslySetInnerHTML":if(F!=null)throw Error(s(137,t));break;default:F!==Z&&ht(e,t,U,F,l,Z)}}Ei(e,y,E,A,B,P,d,c);return;case"select":F=y=E=U=null;for(d in i)if(A=i[d],i.hasOwnProperty(d)&&A!=null)switch(d){case"value":break;case"multiple":F=A;default:l.hasOwnProperty(d)||ht(e,t,d,null,l,A)}for(c in l)if(d=l[c],A=i[c],l.hasOwnProperty(c)&&(d!=null||A!=null))switch(c){case"value":U=d;break;case"defaultValue":E=d;break;case"multiple":y=d;default:d!==A&&ht(e,t,c,d,l,A)}t=E,i=y,l=F,U!=null?ia(e,!!i,U,!1):!!l!=!!i&&(t!=null?ia(e,!!i,t,!0):ia(e,!!i,i?[]:"",!1));return;case"textarea":F=U=null;for(E in i)if(c=i[E],i.hasOwnProperty(E)&&c!=null&&!l.hasOwnProperty(E))switch(E){case"value":break;case"children":break;default:ht(e,t,E,null,l,c)}for(y in l)if(c=l[y],d=i[y],l.hasOwnProperty(y)&&(c!=null||d!=null))switch(y){case"value":U=c;break;case"defaultValue":F=c;break;case"children":break;case"dangerouslySetInnerHTML":if(c!=null)throw Error(s(91));break;default:c!==d&&ht(e,t,y,c,l,d)}ur(e,U,F);return;case"option":for(var ye in i)U=i[ye],i.hasOwnProperty(ye)&&U!=null&&!l.hasOwnProperty(ye)&&(ye==="selected"?e.selected=!1:ht(e,t,ye,null,l,U));for(A in l)U=l[A],F=i[A],l.hasOwnProperty(A)&&U!==F&&(U!=null||F!=null)&&(A==="selected"?e.selected=U&&typeof U!="function"&&typeof U!="symbol":ht(e,t,A,U,l,F));return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var Ne in i)U=i[Ne],i.hasOwnProperty(Ne)&&U!=null&&!l.hasOwnProperty(Ne)&&ht(e,t,Ne,null,l,U);for(B in l)if(U=l[B],F=i[B],l.hasOwnProperty(B)&&U!==F&&(U!=null||F!=null))switch(B){case"children":case"dangerouslySetInnerHTML":if(U!=null)throw Error(s(137,t));break;default:ht(e,t,B,U,l,F)}return;default:if(ci(t)){for(var bt in i)U=i[bt],i.hasOwnProperty(bt)&&U!==void 0&&!l.hasOwnProperty(bt)&&_f(e,t,bt,void 0,l,U);for(P in l)U=l[P],F=i[P],!l.hasOwnProperty(P)||U===F||U===void 0&&F===void 0||_f(e,t,P,U,l,F);return}}for(var R in i)U=i[R],i.hasOwnProperty(R)&&U!=null&&!l.hasOwnProperty(R)&&ht(e,t,R,null,l,U);for(Z in l)U=l[Z],F=i[Z],!l.hasOwnProperty(Z)||U===F||U==null&&F==null||ht(e,t,Z,U,l,F)}function Bb(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function PT(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,i=performance.getEntriesByType("resource"),l=0;l<i.length;l++){var c=i[l],d=c.transferSize,y=c.initiatorType,E=c.duration;if(d&&E&&Bb(y)){for(y=0,E=c.responseEnd,l+=1;l<i.length;l++){var A=i[l],B=A.startTime;if(B>E)break;var P=A.transferSize,Z=A.initiatorType;P&&Bb(Z)&&(A=A.responseEnd,y+=P*(A<E?1:(E-B)/(A-B)))}if(--l,t+=8*(d+y)/(c.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var xf=null,Sf=null;function hs(e){return e.nodeType===9?e:e.ownerDocument}function Ub(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function Hb(e,t){if(e===0)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&t==="foreignObject"?0:e}function wf(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.children=="bigint"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Tf=null;function KT(){var e=window.event;return e&&e.type==="popstate"?e===Tf?!1:(Tf=e,!0):(Tf=null,!1)}var qb=typeof setTimeout=="function"?setTimeout:void 0,VT=typeof clearTimeout=="function"?clearTimeout:void 0,Fb=typeof Promise=="function"?Promise:void 0,$T=typeof queueMicrotask=="function"?queueMicrotask:typeof Fb<"u"?function(e){return Fb.resolve(null).then(e).catch(ZT)}:qb;function ZT(e){setTimeout(function(){throw e})}function Ea(e){return e==="head"}function Gb(e,t){var i=t,l=0;do{var c=i.nextSibling;if(e.removeChild(i),c&&c.nodeType===8)if(i=c.data,i==="/$"||i==="/&"){if(l===0){e.removeChild(c),Hr(t);return}l--}else if(i==="$"||i==="$?"||i==="$~"||i==="$!"||i==="&")l++;else if(i==="html")Gl(e.ownerDocument.documentElement);else if(i==="head"){i=e.ownerDocument.head,Gl(i);for(var d=i.firstChild;d;){var y=d.nextSibling,E=d.nodeName;d[Ut]||E==="SCRIPT"||E==="STYLE"||E==="LINK"&&d.rel.toLowerCase()==="stylesheet"||i.removeChild(d),d=y}}else i==="body"&&Gl(e.ownerDocument.body);i=c}while(i);Hr(t)}function jb(e,t){var i=e;e=0;do{var l=i.nextSibling;if(i.nodeType===1?t?(i._stashedDisplay=i.style.display,i.style.display="none"):(i.style.display=i._stashedDisplay||"",i.getAttribute("style")===""&&i.removeAttribute("style")):i.nodeType===3&&(t?(i._stashedText=i.nodeValue,i.nodeValue=""):i.nodeValue=i._stashedText||""),l&&l.nodeType===8)if(i=l.data,i==="/$"){if(e===0)break;e--}else i!=="$"&&i!=="$?"&&i!=="$~"&&i!=="$!"||e++;i=l}while(i)}function Af(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var i=t;switch(t=t.nextSibling,i.nodeName){case"HTML":case"HEAD":case"BODY":Af(i),Nt(i);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(i.rel.toLowerCase()==="stylesheet")continue}e.removeChild(i)}}function XT(e,t,i,l){for(;e.nodeType===1;){var c=i;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!l&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(l){if(!e[Ut])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(d=e.getAttribute("rel"),d==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(d!==c.rel||e.getAttribute("href")!==(c.href==null||c.href===""?null:c.href)||e.getAttribute("crossorigin")!==(c.crossOrigin==null?null:c.crossOrigin)||e.getAttribute("title")!==(c.title==null?null:c.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(d=e.getAttribute("src"),(d!==(c.src==null?null:c.src)||e.getAttribute("type")!==(c.type==null?null:c.type)||e.getAttribute("crossorigin")!==(c.crossOrigin==null?null:c.crossOrigin))&&d&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var d=c.name==null?null:""+c.name;if(c.type==="hidden"&&e.getAttribute("name")===d)return e}else return e;if(e=ai(e.nextSibling),e===null)break}return null}function QT(e,t,i){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!i||(e=ai(e.nextSibling),e===null))return null;return e}function Yb(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=ai(e.nextSibling),e===null))return null;return e}function Nf(e){return e.data==="$?"||e.data==="$~"}function Cf(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function JT(e,t){var i=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||i.readyState!=="loading")t();else{var l=function(){t(),i.removeEventListener("DOMContentLoaded",l)};i.addEventListener("DOMContentLoaded",l),e._reactRetry=l}}function ai(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?"||t==="$~"||t==="&"||t==="F!"||t==="F")break;if(t==="/$"||t==="/&")return null}}return e}var Of=null;function Pb(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var i=e.data;if(i==="/$"||i==="/&"){if(t===0)return ai(e.nextSibling);t--}else i!=="$"&&i!=="$!"&&i!=="$?"&&i!=="$~"&&i!=="&"||t++}e=e.nextSibling}return null}function Kb(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var i=e.data;if(i==="$"||i==="$!"||i==="$?"||i==="$~"||i==="&"){if(t===0)return e;t--}else i!=="/$"&&i!=="/&"||t++}e=e.previousSibling}return null}function Vb(e,t,i){switch(t=hs(i),e){case"html":if(e=t.documentElement,!e)throw Error(s(452));return e;case"head":if(e=t.head,!e)throw Error(s(453));return e;case"body":if(e=t.body,!e)throw Error(s(454));return e;default:throw Error(s(451))}}function Gl(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Nt(e)}var ri=new Map,$b=new Set;function bs(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var Xi=K.d;K.d={f:WT,r:eA,D:tA,C:nA,L:iA,m:aA,X:lA,S:rA,M:oA};function WT(){var e=Xi.f(),t=ss();return e||t}function eA(e){var t=gn(e);t!==null&&t.tag===5&&t.type==="form"?fh(t):Xi.r(e)}var Ir=typeof document>"u"?null:document;function Zb(e,t,i){var l=Ir;if(l&&typeof t=="string"&&t){var c=mn(t);c='link[rel="'+e+'"][href="'+c+'"]',typeof i=="string"&&(c+='[crossorigin="'+i+'"]'),$b.has(c)||($b.add(c),e={rel:e,crossOrigin:i,href:t},l.querySelector(c)===null&&(t=l.createElement("link"),on(t,"link",e),Dt(t),l.head.appendChild(t)))}}function tA(e){Xi.D(e),Zb("dns-prefetch",e,null)}function nA(e,t){Xi.C(e,t),Zb("preconnect",e,t)}function iA(e,t,i){Xi.L(e,t,i);var l=Ir;if(l&&e&&t){var c='link[rel="preload"][as="'+mn(t)+'"]';t==="image"&&i&&i.imageSrcSet?(c+='[imagesrcset="'+mn(i.imageSrcSet)+'"]',typeof i.imageSizes=="string"&&(c+='[imagesizes="'+mn(i.imageSizes)+'"]')):c+='[href="'+mn(e)+'"]';var d=c;switch(t){case"style":d=Br(e);break;case"script":d=Ur(e)}ri.has(d)||(e=v({rel:"preload",href:t==="image"&&i&&i.imageSrcSet?void 0:e,as:t},i),ri.set(d,e),l.querySelector(c)!==null||t==="style"&&l.querySelector(jl(d))||t==="script"&&l.querySelector(Yl(d))||(t=l.createElement("link"),on(t,"link",e),Dt(t),l.head.appendChild(t)))}}function aA(e,t){Xi.m(e,t);var i=Ir;if(i&&e){var l=t&&typeof t.as=="string"?t.as:"script",c='link[rel="modulepreload"][as="'+mn(l)+'"][href="'+mn(e)+'"]',d=c;switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":d=Ur(e)}if(!ri.has(d)&&(e=v({rel:"modulepreload",href:e},t),ri.set(d,e),i.querySelector(c)===null)){switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(i.querySelector(Yl(d)))return}l=i.createElement("link"),on(l,"link",e),Dt(l),i.head.appendChild(l)}}}function rA(e,t,i){Xi.S(e,t,i);var l=Ir;if(l&&e){var c=vi(l).hoistableStyles,d=Br(e);t=t||"default";var y=c.get(d);if(!y){var E={loading:0,preload:null};if(y=l.querySelector(jl(d)))E.loading=5;else{e=v({rel:"stylesheet",href:e,"data-precedence":t},i),(i=ri.get(d))&&Mf(e,i);var A=y=l.createElement("link");Dt(A),on(A,"link",e),A._p=new Promise(function(B,P){A.onload=B,A.onerror=P}),A.addEventListener("load",function(){E.loading|=1}),A.addEventListener("error",function(){E.loading|=2}),E.loading|=4,ys(y,t,l)}y={type:"stylesheet",instance:y,count:1,state:E},c.set(d,y)}}}function lA(e,t){Xi.X(e,t);var i=Ir;if(i&&e){var l=vi(i).hoistableScripts,c=Ur(e),d=l.get(c);d||(d=i.querySelector(Yl(c)),d||(e=v({src:e,async:!0},t),(t=ri.get(c))&&Rf(e,t),d=i.createElement("script"),Dt(d),on(d,"link",e),i.head.appendChild(d)),d={type:"script",instance:d,count:1,state:null},l.set(c,d))}}function oA(e,t){Xi.M(e,t);var i=Ir;if(i&&e){var l=vi(i).hoistableScripts,c=Ur(e),d=l.get(c);d||(d=i.querySelector(Yl(c)),d||(e=v({src:e,async:!0,type:"module"},t),(t=ri.get(c))&&Rf(e,t),d=i.createElement("script"),Dt(d),on(d,"link",e),i.head.appendChild(d)),d={type:"script",instance:d,count:1,state:null},l.set(c,d))}}function Xb(e,t,i,l){var c=(c=Ce.current)?bs(c):null;if(!c)throw Error(s(446));switch(e){case"meta":case"title":return null;case"style":return typeof i.precedence=="string"&&typeof i.href=="string"?(t=Br(i.href),i=vi(c).hoistableStyles,l=i.get(t),l||(l={type:"style",instance:null,count:0,state:null},i.set(t,l)),l):{type:"void",instance:null,count:0,state:null};case"link":if(i.rel==="stylesheet"&&typeof i.href=="string"&&typeof i.precedence=="string"){e=Br(i.href);var d=vi(c).hoistableStyles,y=d.get(e);if(y||(c=c.ownerDocument||c,y={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},d.set(e,y),(d=c.querySelector(jl(e)))&&!d._p&&(y.instance=d,y.state.loading=5),ri.has(e)||(i={rel:"preload",as:"style",href:i.href,crossOrigin:i.crossOrigin,integrity:i.integrity,media:i.media,hrefLang:i.hrefLang,referrerPolicy:i.referrerPolicy},ri.set(e,i),d||sA(c,e,i,y.state))),t&&l===null)throw Error(s(528,""));return y}if(t&&l!==null)throw Error(s(529,""));return null;case"script":return t=i.async,i=i.src,typeof i=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=Ur(i),i=vi(c).hoistableScripts,l=i.get(t),l||(l={type:"script",instance:null,count:0,state:null},i.set(t,l)),l):{type:"void",instance:null,count:0,state:null};default:throw Error(s(444,e))}}function Br(e){return'href="'+mn(e)+'"'}function jl(e){return'link[rel="stylesheet"]['+e+"]"}function Qb(e){return v({},e,{"data-precedence":e.precedence,precedence:null})}function sA(e,t,i,l){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?l.loading=1:(t=e.createElement("link"),l.preload=t,t.addEventListener("load",function(){return l.loading|=1}),t.addEventListener("error",function(){return l.loading|=2}),on(t,"link",i),Dt(t),e.head.appendChild(t))}function Ur(e){return'[src="'+mn(e)+'"]'}function Yl(e){return"script[async]"+e}function Jb(e,t,i){if(t.count++,t.instance===null)switch(t.type){case"style":var l=e.querySelector('style[data-href~="'+mn(i.href)+'"]');if(l)return t.instance=l,Dt(l),l;var c=v({},i,{"data-href":i.href,"data-precedence":i.precedence,href:null,precedence:null});return l=(e.ownerDocument||e).createElement("style"),Dt(l),on(l,"style",c),ys(l,i.precedence,e),t.instance=l;case"stylesheet":c=Br(i.href);var d=e.querySelector(jl(c));if(d)return t.state.loading|=4,t.instance=d,Dt(d),d;l=Qb(i),(c=ri.get(c))&&Mf(l,c),d=(e.ownerDocument||e).createElement("link"),Dt(d);var y=d;return y._p=new Promise(function(E,A){y.onload=E,y.onerror=A}),on(d,"link",l),t.state.loading|=4,ys(d,i.precedence,e),t.instance=d;case"script":return d=Ur(i.src),(c=e.querySelector(Yl(d)))?(t.instance=c,Dt(c),c):(l=i,(c=ri.get(d))&&(l=v({},i),Rf(l,c)),e=e.ownerDocument||e,c=e.createElement("script"),Dt(c),on(c,"link",l),e.head.appendChild(c),t.instance=c);case"void":return null;default:throw Error(s(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(l=t.instance,t.state.loading|=4,ys(l,i.precedence,e));return t.instance}function ys(e,t,i){for(var l=i.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),c=l.length?l[l.length-1]:null,d=c,y=0;y<l.length;y++){var E=l[y];if(E.dataset.precedence===t)d=E;else if(d!==c)break}d?d.parentNode.insertBefore(e,d.nextSibling):(t=i.nodeType===9?i.head:i,t.insertBefore(e,t.firstChild))}function Mf(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function Rf(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var vs=null;function Wb(e,t,i){if(vs===null){var l=new Map,c=vs=new Map;c.set(i,l)}else c=vs,l=c.get(i),l||(l=new Map,c.set(i,l));if(l.has(e))return l;for(l.set(e,null),i=i.getElementsByTagName(e),c=0;c<i.length;c++){var d=i[c];if(!(d[Ut]||d[It]||e==="link"&&d.getAttribute("rel")==="stylesheet")&&d.namespaceURI!=="http://www.w3.org/2000/svg"){var y=d.getAttribute(t)||"";y=e+y;var E=l.get(y);E?E.push(d):l.set(y,[d])}}return l}function ey(e,t,i){e=e.ownerDocument||e,e.head.insertBefore(i,t==="title"?e.querySelector("head > title"):null)}function cA(e,t,i){if(i===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;return t.rel==="stylesheet"?(e=t.disabled,typeof t.precedence=="string"&&e==null):!0;case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function ty(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function uA(e,t,i,l){if(i.type==="stylesheet"&&(typeof l.media!="string"||matchMedia(l.media).matches!==!1)&&(i.state.loading&4)===0){if(i.instance===null){var c=Br(l.href),d=t.querySelector(jl(c));if(d){t=d._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=ks.bind(e),t.then(e,e)),i.state.loading|=4,i.instance=d,Dt(d);return}d=t.ownerDocument||t,l=Qb(l),(c=ri.get(c))&&Mf(l,c),d=d.createElement("link"),Dt(d);var y=d;y._p=new Promise(function(E,A){y.onload=E,y.onerror=A}),on(d,"link",l),i.instance=d}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(i,t),(t=i.state.preload)&&(i.state.loading&3)===0&&(e.count++,i=ks.bind(e),t.addEventListener("load",i),t.addEventListener("error",i))}}var Df=0;function fA(e,t){return e.stylesheets&&e.count===0&&_s(e,e.stylesheets),0<e.count||0<e.imgCount?function(i){var l=setTimeout(function(){if(e.stylesheets&&_s(e,e.stylesheets),e.unsuspend){var d=e.unsuspend;e.unsuspend=null,d()}},6e4+t);0<e.imgBytes&&Df===0&&(Df=62500*PT());var c=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&_s(e,e.stylesheets),e.unsuspend)){var d=e.unsuspend;e.unsuspend=null,d()}},(e.imgBytes>Df?50:800)+t);return e.unsuspend=i,function(){e.unsuspend=null,clearTimeout(l),clearTimeout(c)}}:null}function ks(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)_s(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Es=null;function _s(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Es=new Map,t.forEach(dA,e),Es=null,ks.call(e))}function dA(e,t){if(!(t.state.loading&4)){var i=Es.get(e);if(i)var l=i.get(null);else{i=new Map,Es.set(e,i);for(var c=e.querySelectorAll("link[data-precedence],style[data-precedence]"),d=0;d<c.length;d++){var y=c[d];(y.nodeName==="LINK"||y.getAttribute("media")!=="not all")&&(i.set(y.dataset.precedence,y),l=y)}l&&i.set(null,l)}c=t.instance,y=c.getAttribute("data-precedence"),d=i.get(y)||l,d===l&&i.set(null,c),i.set(y,c),this.count++,l=ks.bind(this),c.addEventListener("load",l),c.addEventListener("error",l),d?d.parentNode.insertBefore(c,d.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(c,e.firstChild)),t.state.loading|=4}}var Pl={$$typeof:Q,Provider:null,Consumer:null,_currentValue:ve,_currentValue2:ve,_threadCount:0};function pA(e,t,i,l,c,d,y,E,A){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Qe(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Qe(0),this.hiddenUpdates=Qe(null),this.identifierPrefix=l,this.onUncaughtError=c,this.onCaughtError=d,this.onRecoverableError=y,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=A,this.incompleteTransitions=new Map}function ny(e,t,i,l,c,d,y,E,A,B,P,Z){return e=new pA(e,t,i,y,A,B,P,Z,E),t=1,d===!0&&(t|=24),d=Hn(3,null,null,t),e.current=d,d.stateNode=e,t=fu(),t.refCount++,e.pooledCache=t,t.refCount++,d.memoizedState={element:l,isDehydrated:i,cache:t},mu(d),e}function iy(e){return e?(e=mr,e):mr}function ay(e,t,i,l,c,d){c=iy(c),l.context===null?l.context=c:l.pendingContext=c,l=ua(t),l.payload={element:i},d=d===void 0?null:d,d!==null&&(l.callback=d),i=fa(e,l,t),i!==null&&(Rn(i,e,t),xl(i,e,t))}function ry(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var i=e.retryLane;e.retryLane=i!==0&&i<t?i:t}}function Lf(e,t){ry(e,t),(e=e.alternate)&&ry(e,t)}function ly(e){if(e.tag===13||e.tag===31){var t=qa(e,67108864);t!==null&&Rn(t,e,67108864),Lf(e,67108864)}}function oy(e){if(e.tag===13||e.tag===31){var t=Yn();t=vn(t);var i=qa(e,t);i!==null&&Rn(i,e,t),Lf(e,t)}}var xs=!0;function gA(e,t,i,l){var c=G.T;G.T=null;var d=K.p;try{K.p=2,zf(e,t,i,l)}finally{K.p=d,G.T=c}}function mA(e,t,i,l){var c=G.T;G.T=null;var d=K.p;try{K.p=8,zf(e,t,i,l)}finally{K.p=d,G.T=c}}function zf(e,t,i,l){if(xs){var c=If(l);if(c===null)Ef(e,t,l,Ss,i),cy(e,l);else if(bA(c,e,t,i,l))l.stopPropagation();else if(cy(e,l),t&4&&-1<hA.indexOf(e)){for(;c!==null;){var d=gn(c);if(d!==null)switch(d.tag){case 3:if(d=d.stateNode,d.current.memoizedState.isDehydrated){var y=N(d.pendingLanes);if(y!==0){var E=d;for(E.pendingLanes|=2,E.entangledLanes|=2;y;){var A=1<<31-St(y);E.entanglements[1]|=A,y&=~A}wi(d),(st&6)===0&&(ls=lt()+500,Hl(0))}}break;case 31:case 13:E=qa(d,2),E!==null&&Rn(E,d,2),ss(),Lf(d,2)}if(d=If(l),d===null&&Ef(e,t,l,Ss,i),d===c)break;c=d}c!==null&&l.stopPropagation()}else Ef(e,t,l,null,i)}}function If(e){return e=it(e),Bf(e)}var Ss=null;function Bf(e){if(Ss=null,e=Xn(e),e!==null){var t=u(e);if(t===null)e=null;else{var i=t.tag;if(i===13){if(e=g(t),e!==null)return e;e=null}else if(i===31){if(e=m(t),e!==null)return e;e=null}else if(i===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return Ss=e,null}function sy(e){switch(e){case"beforetoggle":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"toggle":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 2;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"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(j()){case ae:return 2;case Ae:return 8;case qe:case nt:return 32;case $t:return 268435456;default:return 32}default:return 32}}var Uf=!1,_a=null,xa=null,Sa=null,Kl=new Map,Vl=new Map,wa=[],hA="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".split(" ");function cy(e,t){switch(e){case"focusin":case"focusout":_a=null;break;case"dragenter":case"dragleave":xa=null;break;case"mouseover":case"mouseout":Sa=null;break;case"pointerover":case"pointerout":Kl.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Vl.delete(t.pointerId)}}function $l(e,t,i,l,c,d){return e===null||e.nativeEvent!==d?(e={blockedOn:t,domEventName:i,eventSystemFlags:l,nativeEvent:d,targetContainers:[c]},t!==null&&(t=gn(t),t!==null&&ly(t)),e):(e.eventSystemFlags|=l,t=e.targetContainers,c!==null&&t.indexOf(c)===-1&&t.push(c),e)}function bA(e,t,i,l,c){switch(t){case"focusin":return _a=$l(_a,e,t,i,l,c),!0;case"dragenter":return xa=$l(xa,e,t,i,l,c),!0;case"mouseover":return Sa=$l(Sa,e,t,i,l,c),!0;case"pointerover":var d=c.pointerId;return Kl.set(d,$l(Kl.get(d)||null,e,t,i,l,c)),!0;case"gotpointercapture":return d=c.pointerId,Vl.set(d,$l(Vl.get(d)||null,e,t,i,l,c)),!0}return!1}function uy(e){var t=Xn(e.target);if(t!==null){var i=u(t);if(i!==null){if(t=i.tag,t===13){if(t=g(i),t!==null){e.blockedOn=t,ea(e.priority,function(){oy(i)});return}}else if(t===31){if(t=m(i),t!==null){e.blockedOn=t,ea(e.priority,function(){oy(i)});return}}else if(t===3&&i.stateNode.current.memoizedState.isDehydrated){e.blockedOn=i.tag===3?i.stateNode.containerInfo:null;return}}}e.blockedOn=null}function ws(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var i=If(e.nativeEvent);if(i===null){i=e.nativeEvent;var l=new i.constructor(i.type,i);Fe=l,i.target.dispatchEvent(l),Fe=null}else return t=gn(i),t!==null&&ly(t),e.blockedOn=i,!1;t.shift()}return!0}function fy(e,t,i){ws(e)&&i.delete(t)}function yA(){Uf=!1,_a!==null&&ws(_a)&&(_a=null),xa!==null&&ws(xa)&&(xa=null),Sa!==null&&ws(Sa)&&(Sa=null),Kl.forEach(fy),Vl.forEach(fy)}function Ts(e,t){e.blockedOn===t&&(e.blockedOn=null,Uf||(Uf=!0,a.unstable_scheduleCallback(a.unstable_NormalPriority,yA)))}var As=null;function dy(e){As!==e&&(As=e,a.unstable_scheduleCallback(a.unstable_NormalPriority,function(){As===e&&(As=null);for(var t=0;t<e.length;t+=3){var i=e[t],l=e[t+1],c=e[t+2];if(typeof l!="function"){if(Bf(l||i)===null)continue;break}var d=gn(i);d!==null&&(e.splice(t,3),t-=3,zu(d,{pending:!0,data:c,method:i.method,action:l},l,c))}}))}function Hr(e){function t(A){return Ts(A,e)}_a!==null&&Ts(_a,e),xa!==null&&Ts(xa,e),Sa!==null&&Ts(Sa,e),Kl.forEach(t),Vl.forEach(t);for(var i=0;i<wa.length;i++){var l=wa[i];l.blockedOn===e&&(l.blockedOn=null)}for(;0<wa.length&&(i=wa[0],i.blockedOn===null);)uy(i),i.blockedOn===null&&wa.shift();if(i=(e.ownerDocument||e).$$reactFormReplay,i!=null)for(l=0;l<i.length;l+=3){var c=i[l],d=i[l+1],y=c[Bt]||null;if(typeof d=="function")y||dy(i);else if(y){var E=null;if(d&&d.hasAttribute("formAction")){if(c=d,y=d[Bt]||null)E=y.formAction;else if(Bf(c)!==null)continue}else E=y.action;typeof E=="function"?i[l+1]=E:(i.splice(l,3),l-=3),dy(i)}}}function py(){function e(d){d.canIntercept&&d.info==="react-transition"&&d.intercept({handler:function(){return new Promise(function(y){return c=y})},focusReset:"manual",scroll:"manual"})}function t(){c!==null&&(c(),c=null),l||setTimeout(i,20)}function i(){if(!l&&!navigation.transition){var d=navigation.currentEntry;d&&d.url!=null&&navigation.navigate(d.url,{state:d.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var l=!1,c=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(i,100),function(){l=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),c!==null&&(c(),c=null)}}}function Hf(e){this._internalRoot=e}Ns.prototype.render=Hf.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(s(409));var i=t.current,l=Yn();ay(i,l,e,t,null,null)},Ns.prototype.unmount=Hf.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;ay(e.current,2,null,e,null,null),ss(),t[Zn]=null}};function Ns(e){this._internalRoot=e}Ns.prototype.unstable_scheduleHydration=function(e){if(e){var t=Mi();e={blockedOn:null,target:e,priority:t};for(var i=0;i<wa.length&&t!==0&&t<wa[i].priority;i++);wa.splice(i,0,e),i===0&&uy(e)}};var gy=r.version;if(gy!=="19.2.7")throw Error(s(527,gy,"19.2.7"));K.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(s(188)):(e=Object.keys(e).join(","),Error(s(268,e)));return e=b(t),e=e!==null?h(e):null,e=e===null?null:e.stateNode,e};var vA={bundleType:0,version:"19.2.7",rendererPackageName:"react-dom",currentDispatcherRef:G,reconcilerVersion:"19.2.7"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Cs=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Cs.isDisabled&&Cs.supportsFiber)try{Jt=Cs.inject(vA),xt=Cs}catch{}}return Gr.createRoot=function(e,t){if(!f(e))throw Error(s(299));var i=!1,l="",c=Eh,d=_h,y=xh;return t!=null&&(t.unstable_strictMode===!0&&(i=!0),t.identifierPrefix!==void 0&&(l=t.identifierPrefix),t.onUncaughtError!==void 0&&(c=t.onUncaughtError),t.onCaughtError!==void 0&&(d=t.onCaughtError),t.onRecoverableError!==void 0&&(y=t.onRecoverableError)),t=ny(e,1,!1,null,null,i,l,null,c,d,y,py),e[Zn]=t.current,kf(e),new Hf(t)},Gr.hydrateRoot=function(e,t,i){if(!f(e))throw Error(s(299));var l=!1,c="",d=Eh,y=_h,E=xh,A=null;return i!=null&&(i.unstable_strictMode===!0&&(l=!0),i.identifierPrefix!==void 0&&(c=i.identifierPrefix),i.onUncaughtError!==void 0&&(d=i.onUncaughtError),i.onCaughtError!==void 0&&(y=i.onCaughtError),i.onRecoverableError!==void 0&&(E=i.onRecoverableError),i.formState!==void 0&&(A=i.formState)),t=ny(e,1,!0,t,i??null,l,c,A,d,y,E,py),t.context=iy(null),i=t.current,l=Yn(),l=vn(l),c=ua(l),c.callback=null,fa(i,c,l),i=l,t.current.lanes=i,he(t,i),wi(t),e[Zn]=t.current,kf(e),new Ns(t)},Gr.version="19.2.7",Gr}var Xf;function _y(){if(Xf)return Rs.exports;Xf=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(a){console.error(a)}}return n(),Rs.exports=Ey(),Rs.exports}var xy=_y();function Qf(n){var a,r,o="";if(typeof n=="string"||typeof n=="number")o+=n;else if(typeof n=="object")if(Array.isArray(n)){var s=n.length;for(a=0;a<s;a++)n[a]&&(r=Qf(n[a]))&&(o&&(o+=" "),o+=r)}else for(r in n)n[r]&&(o&&(o+=" "),o+=r);return o}function Aa(){for(var n,a,r=0,o="",s=arguments.length;r<s;r++)(n=arguments[r])&&(a=Qf(n))&&(o&&(o+=" "),o+=a);return o}var me=Is(),Sy=$f();function Us({className:n,primaryColor:a="#0F766E",style:r}){return D.jsxs("svg",{className:n,style:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 320 320",role:"img","aria-labelledby":"title desc",children:[D.jsxs("g",{fill:"none",stroke:a,strokeWidth:"34",strokeLinecap:"round",strokeLinejoin:"round",children:[D.jsx("path",{d:"M60 244 L132 88 Q142 66 160 66 Q178 66 188 88 L260 244"}),D.jsx("path",{d:"M60 244 H108"})]}),D.jsx("circle",{cx:"160",cy:"226",r:"18",fill:a})]})}function wy({className:n,primaryColor:a="#0F766E",secondaryColor:r="#0F1B3D",style:o}){return D.jsx("svg",{className:n,style:o,viewBox:"0 0 1000 320",xmlns:"http://www.w3.org/2000/svg",children:D.jsxs("g",{id:"Group",children:[D.jsx("path",{id:"Path",fill:"none",stroke:a,strokeWidth:"30",strokeLinecap:"round",strokeLinejoin:"round",d:"M 90 235 L 175 78 C 182.333333 64.666667 193.333333 58 208 58 C 222.666667 58 233.666667 64.666667 241 78 L 326 235"}),D.jsx("path",{id:"path1",fill:"none",stroke:a,strokeWidth:"30",strokeLinecap:"round",strokeLinejoin:"round",d:"M 91 235 L 142 235"}),D.jsx("path",{id:"path2",fill:a,stroke:"none",d:"M 203 223 C 203 232.38884 195.38884 240 186 240 C 176.61116 240 169 232.38884 169 223 C 169 213.61116 176.61116 206 186 206 C 195.38884 206 203 213.61116 203 223 Z"}),D.jsx("path",{id:"path3",fill:"none",stroke:r,strokeWidth:"30",strokeLinecap:"round",strokeLinejoin:"round",d:"M 365 62 L 365 238"}),D.jsx("path",{id:"path4",fill:"none",stroke:r,strokeWidth:"30",strokeLinecap:"round",strokeLinejoin:"round",d:"M 365 168 L 458 84"}),D.jsx("path",{id:"path5",fill:"none",stroke:r,strokeWidth:"30",strokeLinecap:"round",strokeLinejoin:"round",d:"M 398 139 L 468 238"}),D.jsx("path",{id:"path6",fill:"none",stroke:r,strokeWidth:"30",strokeLinecap:"round",strokeLinejoin:"round",d:"M 520 118 L 520 238"}),D.jsx("path",{id:"path7",fill:a,stroke:"none",d:"M 536 72 C 536 80.836548 528.836548 88 520 88 C 511.163452 88 504 80.836548 504 72 C 504 63.163452 511.163452 56 520 56 C 528.836548 56 536 63.163452 536 72 Z"}),D.jsx("path",{id:"path8",fill:"none",stroke:r,strokeWidth:"30",strokeLinecap:"round",strokeLinejoin:"round",d:"M 598 62 L 598 205 C 598 227 608 238 628 238 L 650 238"}),D.jsx("path",{id:"path9",fill:"none",stroke:r,strokeWidth:"30",strokeLinecap:"round",strokeLinejoin:"round",d:"M 710 118 L 710 238"}),D.jsx("path",{id:"path10",fill:a,stroke:"none",d:"M 726 72 C 726 80.836548 718.836548 88 710 88 C 701.163452 88 694 80.836548 694 72 C 694 63.163452 701.163452 56 710 56 C 718.836548 56 726 63.163452 726 72 Z"}),D.jsx("path",{id:"path11",fill:"none",stroke:a,strokeWidth:"30",strokeLinecap:"round",strokeLinejoin:"round",d:"M 921 178 C 921 214.45079 891.450806 244 855 244 C 818.549194 244 789 214.45079 789 178 C 789 141.54921 818.549194 112 855 112 C 891.450806 112 921 141.54921 921 178 Z"})]})})}function Zl({variant:n="mark",className:a,style:r,primaryColor:o,secondaryColor:s}){return n==="wordmark"?D.jsx(wy,{className:a,style:r,primaryColor:o,secondaryColor:s}):D.jsx(Us,{className:a,style:r,primaryColor:o})}function Hs(n){return D.jsx("svg",{viewBox:"0 0 20 20",fill:"none","aria-hidden":"true",...n,children:D.jsx("path",{d:"M10 2.5 11.3 6l3.5 1.3-3.5 1.2L10 12l-1.3-3.5-3.5-1.2L8.7 6 10 2.5ZM15.5 11.5l.7 1.8 1.8.7-1.8.7-.7 1.8-.7-1.8-1.8-.7 1.8-.7.7-1.8ZM4.8 11.8l.7 1.7 1.7.7-1.7.6-.7 1.8-.7-1.8-1.7-.6 1.7-.7.7-1.7Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"})})}function Ty(n){return D.jsxs("svg",{viewBox:"0 0 20 20",fill:"none","aria-hidden":"true",...n,children:[D.jsx("path",{d:"M17.2 2.8 8.8 11.2",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round"}),D.jsx("path",{d:"m17.2 2.8-5.4 15-3-6.6-6.6-3 15-5.4Z",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round",strokeLinejoin:"round"})]})}function Ay(n){return D.jsx("svg",{viewBox:"0 0 20 20",fill:"none","aria-hidden":"true",...n,children:D.jsx("path",{d:"m5.5 5.5 9 9M14.5 5.5l-9 9",stroke:"currentColor",strokeWidth:"1.7",strokeLinecap:"round"})})}function Ny(n){return D.jsx("svg",{viewBox:"0 0 20 20",fill:"none","aria-hidden":"true",...n,children:D.jsx("path",{d:"M7.5 3.8h5M4.5 6.2h11M6 6.2l.7 10h6.6l.7-10",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})}function Cy(n){return D.jsx("svg",{viewBox:"0 0 20 20",fill:"none","aria-hidden":"true",...n,children:D.jsx("path",{d:"M6.8 8.5v8M6.8 8.5H4.2c-.8 0-1.4.6-1.4 1.4v5.2c0 .8.6 1.4 1.4 1.4h2.6M6.8 8.5l3.7-5.2c.7-1 2.2-.5 2.2.7v3.1h2.6c1.1 0 2 .9 1.8 2l-.8 5.6c-.1 1-1 1.8-2 1.8H6.8",stroke:"currentColor",strokeWidth:"1.45",strokeLinecap:"round",strokeLinejoin:"round"})})}function Oy(n){return D.jsx("svg",{viewBox:"0 0 20 20",fill:"none","aria-hidden":"true",...n,children:D.jsx("path",{d:"M13.2 11.5v-8M13.2 11.5h2.6c.8 0 1.4-.6 1.4-1.4V4.9c0-.8-.6-1.4-1.4-1.4h-2.6M13.2 11.5l-3.7 5.2c-.7 1-2.2.5-2.2-.7v-3.1H4.7c-1.1 0-2-.9-1.8-2l.8-5.6c.1-1 1-1.8 2-1.8h7.5",stroke:"currentColor",strokeWidth:"1.45",strokeLinecap:"round",strokeLinejoin:"round"})})}function My(n){return D.jsxs("svg",{viewBox:"0 0 20 20",fill:"none","aria-hidden":"true",...n,children:[D.jsx("circle",{cx:"10",cy:"10",r:"3.2",stroke:"currentColor",strokeWidth:"1.5"}),D.jsx("path",{d:"M10 2.2v1.5M10 16.3v1.5M2.2 10h1.5M16.3 10h1.5M4.5 4.5l1.1 1.1M14.4 14.4l1.1 1.1M15.5 4.5l-1.1 1.1M5.6 14.4l-1.1 1.1",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"})]})}function Ry(n){return D.jsx("svg",{viewBox:"0 0 20 20",fill:"none","aria-hidden":"true",...n,children:D.jsx("path",{d:"M16.7 12.3A6.8 6.8 0 0 1 7.7 3.3a6.8 6.8 0 1 0 9 9Z",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})}const Dy=me.forwardRef(function({loading:a,disabled:r,copy:o,onSubmit:s,onReviewConsent:f,onDraftChange:u,disabledMessage:g,showPoweredBy:m},p){const[b,h]=me.useState(""),v=me.useRef(""),k=me.useRef(null);me.useLayoutEffect(()=>{const w=k.current;if(!w)return;w.style.height="auto";const q=Math.max(48,Math.min(w.scrollHeight,148));w.style.height=`${q}px`,w.style.overflowY=w.scrollHeight>148?"auto":"hidden"},[b]);const x=async()=>{const w=v.current.trim();if(!w)throw new Error("EMPTY_DRAFT");if(a)throw new Error("BUSY");if(r)throw new Error("INVALID_QUESTION");return h(""),v.current="",u?.("",!1),s(w)},C=w=>{w.preventDefault(),x().catch(()=>{})},M=w=>{w.key==="Enter"&&!w.shiftKey&&!w.nativeEvent.isComposing&&(w.preventDefault(),C(w))};return me.useImperativeHandle(p,()=>({getDraft:()=>v.current,setDraft:(w,q)=>{const H=q?.clearExisting===!1?`${v.current}${w}`:w;v.current=H,h(H),u?.(H,!1),q?.focus&&window.setTimeout(()=>k.current?.focus(),0)},clearDraft:()=>{v.current="",h(""),u?.("",!1)},focus:()=>k.current?.focus(),submit:x}),[u,s,b,a,r]),D.jsxs("form",{onSubmit:C,className:"akilio-composer",children:[D.jsxs("div",{className:"akilio-composer-box",children:[D.jsx("textarea",{ref:k,value:b,rows:1,onChange:w=>{v.current=w.target.value,h(w.target.value),u?.(w.target.value,!0)},onKeyDown:M,placeholder:o.placeholder,"aria-label":o.placeholder,disabled:r,title:r?g||o.privacyRequired:o.helper}),D.jsx("button",{type:"submit",disabled:a||r||!b.trim(),className:"akilio-composer-submit",title:a?o.loading:o.submit,children:D.jsx(Ty,{color:"#FFF"})})]}),r&&f&&D.jsxs("div",{className:"akilio-composer-help",children:[g||o.privacyRequired," ",D.jsx("button",{type:"button",className:"akilio-privacy-review",onClick:f,children:o.privacyReview})]}),m&&D.jsxs("div",{className:"akilio-powered-by",children:[o.poweredBy," ",D.jsx("a",{href:"https://akilio-ai.com",children:"Akilio"}),"."," ",o.aiContentWarning]})]})});function Ly({copy:n,onSuggestion:a,widgetAvailable:r,showBranding:o,primaryColor:s}){return D.jsxs("div",{className:"akilio-empty",children:[D.jsx("div",{className:"akilio-empty-icon",children:o?D.jsx(Zl,{variant:"mark",primaryColor:s}):D.jsx(Hs,{})}),D.jsx("h3",{children:n.title}),D.jsx("p",{children:r?n.emptyState:n.widgetUnavailable}),D.jsx("div",{className:"akilio-suggestions",children:r&&n.suggestions.slice(0,4).map(f=>D.jsx("button",{type:"button",onClick:()=>a(f),children:f},f))})]})}function xA(){}function SA(){}function zy(n,a){const r={};return(n[n.length-1]===""?[...n,""]:n).join((r.padRight?" ":"")+","+(r.padLeft===!1?"":" ")).trim()}const Iy=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,By=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Uy={};function Jf(n,a){return(Uy.jsx?By:Iy).test(n)}const Hy=/[ \t\n\f\r]/g;function qy(n){return typeof n=="object"?n.type==="text"?Wf(n.value):!1:Wf(n)}function Wf(n){return n.replace(Hy,"")===""}class jr{constructor(a,r,o){this.normal=r,this.property=a,o&&(this.space=o)}}jr.prototype.normal={},jr.prototype.property={},jr.prototype.space=void 0;function ed(n,a){const r={},o={};for(const s of n)Object.assign(r,s.property),Object.assign(o,s.normal);return new jr(r,o,a)}function qs(n){return n.toLowerCase()}class _n{constructor(a,r){this.attribute=r,this.property=a}}_n.prototype.attribute="",_n.prototype.booleanish=!1,_n.prototype.boolean=!1,_n.prototype.commaOrSpaceSeparated=!1,_n.prototype.commaSeparated=!1,_n.prototype.defined=!1,_n.prototype.mustUseProperty=!1,_n.prototype.number=!1,_n.prototype.overloadedBoolean=!1,_n.prototype.property="",_n.prototype.spaceSeparated=!1,_n.prototype.space=void 0;let Fy=0;const Ie=Ca(),Gt=Ca(),Fs=Ca(),ie=Ca(),yt=Ca(),Na=Ca(),Dn=Ca();function Ca(){return 2**++Fy}const Gs=Object.freeze(Object.defineProperty({__proto__:null,boolean:Ie,booleanish:Gt,commaOrSpaceSeparated:Dn,commaSeparated:Na,number:ie,overloadedBoolean:Fs,spaceSeparated:yt},Symbol.toStringTag,{value:"Module"})),js=Object.keys(Gs);class Ys extends _n{constructor(a,r,o,s){let f=-1;if(super(a,r),td(this,"space",s),typeof o=="number")for(;++f<js.length;){const u=js[f];td(this,js[f],(o&Gs[u])===Gs[u])}}}Ys.prototype.defined=!0;function td(n,a,r){r&&(n[a]=r)}function Wa(n){const a={},r={};for(const[o,s]of Object.entries(n.properties)){const f=new Ys(o,n.transform(n.attributes||{},o),s,n.space);n.mustUseProperty&&n.mustUseProperty.includes(o)&&(f.mustUseProperty=!0),a[o]=f,r[qs(o)]=o,r[qs(f.attribute)]=o}return new jr(a,r,n.space)}const nd=Wa({properties:{ariaActiveDescendant:null,ariaAtomic:Gt,ariaAutoComplete:null,ariaBusy:Gt,ariaChecked:Gt,ariaColCount:ie,ariaColIndex:ie,ariaColSpan:ie,ariaControls:yt,ariaCurrent:null,ariaDescribedBy:yt,ariaDetails:null,ariaDisabled:Gt,ariaDropEffect:yt,ariaErrorMessage:null,ariaExpanded:Gt,ariaFlowTo:yt,ariaGrabbed:Gt,ariaHasPopup:null,ariaHidden:Gt,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:yt,ariaLevel:ie,ariaLive:null,ariaModal:Gt,ariaMultiLine:Gt,ariaMultiSelectable:Gt,ariaOrientation:null,ariaOwns:yt,ariaPlaceholder:null,ariaPosInSet:ie,ariaPressed:Gt,ariaReadOnly:Gt,ariaRelevant:null,ariaRequired:Gt,ariaRoleDescription:yt,ariaRowCount:ie,ariaRowIndex:ie,ariaRowSpan:ie,ariaSelected:Gt,ariaSetSize:ie,ariaSort:null,ariaValueMax:ie,ariaValueMin:ie,ariaValueNow:ie,ariaValueText:null,role:null},transform(n,a){return a==="role"?a:"aria-"+a.slice(4).toLowerCase()}});function id(n,a){return a in n?n[a]:a}function ad(n,a){return id(n,a.toLowerCase())}const Gy=Wa({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Na,acceptCharset:yt,accessKey:yt,action:null,allow:null,allowFullScreen:Ie,allowPaymentRequest:Ie,allowUserMedia:Ie,alpha:Ie,alt:null,as:null,async:Ie,autoCapitalize:null,autoComplete:yt,autoFocus:Ie,autoPlay:Ie,blocking:yt,capture:null,charSet:null,checked:Ie,cite:null,className:yt,closedBy:null,colorSpace:null,cols:ie,colSpan:ie,command:null,commandFor:null,content:null,contentEditable:Gt,controls:Ie,controlsList:yt,coords:ie|Na,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Ie,defer:Ie,dir:null,dirName:null,disabled:Ie,download:Fs,draggable:Gt,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Ie,formTarget:null,headers:yt,height:ie,hidden:Fs,high:ie,href:null,hrefLang:null,htmlFor:yt,httpEquiv:yt,id:null,imageSizes:null,imageSrcSet:null,inert:Ie,inputMode:null,integrity:null,is:null,isMap:Ie,itemId:null,itemProp:yt,itemRef:yt,itemScope:Ie,itemType:yt,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Ie,low:ie,manifest:null,max:null,maxLength:ie,media:null,method:null,min:null,minLength:ie,multiple:Ie,muted:Ie,name:null,nonce:null,noModule:Ie,noValidate:Ie,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:Ie,optimum:ie,pattern:null,ping:yt,placeholder:null,playsInline:Ie,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Ie,referrerPolicy:null,rel:yt,required:Ie,reversed:Ie,rows:ie,rowSpan:ie,sandbox:yt,scope:null,scoped:Ie,seamless:Ie,selected:Ie,shadowRootClonable:Ie,shadowRootCustomElementRegistry:Ie,shadowRootDelegatesFocus:Ie,shadowRootMode:null,shadowRootSerializable:Ie,shape:null,size:ie,sizes:null,slot:null,span:ie,spellCheck:Gt,src:null,srcDoc:null,srcLang:null,srcSet:null,start:ie,step:null,style:null,tabIndex:ie,target:null,title:null,translate:null,type:null,typeMustMatch:Ie,useMap:null,value:Gt,width:ie,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:yt,axis:null,background:null,bgColor:null,border:ie,borderColor:null,bottomMargin:ie,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Ie,declare:Ie,event:null,face:null,frame:null,frameBorder:null,hSpace:ie,leftMargin:ie,link:null,longDesc:null,lowSrc:null,marginHeight:ie,marginWidth:ie,noResize:Ie,noHref:Ie,noShade:Ie,noWrap:Ie,object:null,profile:null,prompt:null,rev:null,rightMargin:ie,rules:null,scheme:null,scrolling:Gt,standby:null,summary:null,text:null,topMargin:ie,valueType:null,version:null,vAlign:null,vLink:null,vSpace:ie,allowTransparency:null,autoCorrect:null,autoSave:null,credentialless:Ie,disablePictureInPicture:Ie,disableRemotePlayback:Ie,exportParts:Na,part:yt,prefix:null,property:null,results:ie,security:null,unselectable:null},space:"html",transform:ad}),jy=Wa({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:Dn,accentHeight:ie,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:ie,amplitude:ie,arabicForm:null,ascent:ie,attributeName:null,attributeType:null,azimuth:ie,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:ie,by:null,calcMode:null,capHeight:ie,className:yt,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:ie,diffuseConstant:ie,direction:null,display:null,dur:null,divisor:ie,dominantBaseline:null,download:Ie,dx:null,dy:null,edgeMode:null,editable:null,elevation:ie,enableBackground:null,end:null,event:null,exponent:ie,externalResourcesRequired:null,fill:null,fillOpacity:ie,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:Na,g2:Na,glyphName:Na,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:ie,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:ie,horizOriginX:ie,horizOriginY:ie,id:null,ideographic:ie,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:ie,k:ie,k1:ie,k2:ie,k3:ie,k4:ie,kernelMatrix:Dn,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:ie,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:ie,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:ie,overlineThickness:ie,paintOrder:null,panose1:null,path:null,pathLength:ie,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:yt,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:ie,pointsAtY:ie,pointsAtZ:ie,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Dn,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Dn,rev:Dn,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Dn,requiredFeatures:Dn,requiredFonts:Dn,requiredFormats:Dn,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:ie,specularExponent:ie,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:ie,strikethroughThickness:ie,string:null,stroke:null,strokeDashArray:Dn,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:ie,strokeOpacity:ie,strokeWidth:null,style:null,surfaceScale:ie,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Dn,tabIndex:ie,tableValues:null,target:null,targetX:ie,targetY:ie,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Dn,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:ie,underlineThickness:ie,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:ie,values:null,vAlphabetic:ie,vMathematical:ie,vectorEffect:null,vHanging:ie,vIdeographic:ie,version:null,vertAdvY:ie,vertOriginX:ie,vertOriginY:ie,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:ie,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:id}),rd=Wa({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(n,a){return"xlink:"+a.slice(5).toLowerCase()}}),ld=Wa({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:ad}),od=Wa({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(n,a){return"xml:"+a.slice(3).toLowerCase()}}),Yy={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"},Py=/[A-Z]/g,sd=/-[a-z]/g,Ky=/^data[-\w.:]+$/i;function Vy(n,a){const r=qs(a);let o=a,s=_n;if(r in n.normal)return n.property[n.normal[r]];if(r.length>4&&r.slice(0,4)==="data"&&Ky.test(a)){if(a.charAt(4)==="-"){const f=a.slice(5).replace(sd,Zy);o="data"+f.charAt(0).toUpperCase()+f.slice(1)}else{const f=a.slice(4);if(!sd.test(f)){let u=f.replace(Py,$y);u.charAt(0)!=="-"&&(u="-"+u),a="data"+u}}s=Ys}return new s(o,a)}function $y(n){return"-"+n.toLowerCase()}function Zy(n){return n.charAt(1).toUpperCase()}const Xy=ed([nd,Gy,rd,ld,od],"html"),Ps=ed([nd,jy,rd,ld,od],"svg");function Qy(n){return n.join(" ").trim()}var er={},Ks,cd;function Jy(){if(cd)return Ks;cd=1;var n=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,a=/\n/g,r=/^\s*/,o=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,s=/^:\s*/,f=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,u=/^[;\s]*/,g=/^\s+|\s+$/g,m=`
10
- `,p="/",b="*",h="",v="comment",k="declaration";function x(M,w){if(typeof M!="string")throw new TypeError("First argument must be a string");if(!M)return[];w=w||{};var q=1,H=1;function Q(oe){var X=oe.match(a);X&&(q+=X.length);var Y=oe.lastIndexOf(m);H=~Y?oe.length-Y:H+oe.length}function te(){var oe={line:q,column:H};return function(X){return X.position=new L(oe),fe(),X}}function L(oe){this.start=oe,this.end={line:q,column:H},this.source=w.source}L.prototype.content=M;function ce(oe){var X=new Error(w.source+":"+q+":"+H+": "+oe);if(X.reason=oe,X.filename=w.source,X.line=q,X.column=H,X.source=M,!w.silent)throw X}function ee(oe){var X=oe.exec(M);if(X){var Y=X[0];return Q(Y),M=M.slice(Y.length),X}}function fe(){ee(r)}function z(oe){var X;for(oe=oe||[];X=se();)X!==!1&&oe.push(X);return oe}function se(){var oe=te();if(!(p!=M.charAt(0)||b!=M.charAt(1))){for(var X=2;h!=M.charAt(X)&&(b!=M.charAt(X)||p!=M.charAt(X+1));)++X;if(X+=2,h===M.charAt(X-1))return ce("End of comment missing");var Y=M.slice(2,X-2);return H+=2,Q(Y),M=M.slice(X),H+=2,oe({type:v,comment:Y})}}function re(){var oe=te(),X=ee(o);if(X){if(se(),!ee(s))return ce("property missing ':'");var Y=ee(f),G=oe({type:k,property:C(X[0].replace(n,h)),value:Y?C(Y[0].replace(n,h)):h});return ee(u),G}}function _e(){var oe=[];z(oe);for(var X;X=re();)X!==!1&&(oe.push(X),z(oe));return oe}return fe(),_e()}function C(M){return M?M.replace(g,h):h}return Ks=x,Ks}var ud;function Wy(){if(ud)return er;ud=1;var n=er&&er.__importDefault||function(o){return o&&o.__esModule?o:{default:o}};Object.defineProperty(er,"__esModule",{value:!0}),er.default=r;const a=n(Jy());function r(o,s){let f=null;if(!o||typeof o!="string")return f;const u=(0,a.default)(o),g=typeof s=="function";return u.forEach(m=>{if(m.type!=="declaration")return;const{property:p,value:b}=m;g?s(p,b,m):b&&(f=f||{},f[p]=b)}),f}return er}var Yr={},fd;function e0(){if(fd)return Yr;fd=1,Object.defineProperty(Yr,"__esModule",{value:!0}),Yr.camelCase=void 0;var n=/^--[a-zA-Z0-9_-]+$/,a=/-([a-z])/g,r=/^[^-]+$/,o=/^-(webkit|moz|ms|o|khtml)-/,s=/^-(ms)-/,f=function(p){return!p||r.test(p)||n.test(p)},u=function(p,b){return b.toUpperCase()},g=function(p,b){return"".concat(b,"-")},m=function(p,b){return b===void 0&&(b={}),f(p)?p:(p=p.toLowerCase(),b.reactCompat?p=p.replace(s,g):p=p.replace(o,g),p.replace(a,u))};return Yr.camelCase=m,Yr}var Pr,dd;function t0(){if(dd)return Pr;dd=1;var n=Pr&&Pr.__importDefault||function(s){return s&&s.__esModule?s:{default:s}},a=n(Wy()),r=e0();function o(s,f){var u={};return!s||typeof s!="string"||(0,a.default)(s,function(g,m){g&&m&&(u[(0,r.camelCase)(g,f)]=m)}),u}return o.default=o,Pr=o,Pr}var n0=t0();const i0=Os(n0),pd=gd("end"),Vs=gd("start");function gd(n){return a;function a(r){const o=r&&r.position&&r.position[n]||{};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 a0(n){const a=Vs(n),r=pd(n);if(a&&r)return{start:a,end:r}}function Kr(n){return!n||typeof n!="object"?"":"position"in n||"type"in n?md(n.position):"start"in n||"end"in n?md(n):"line"in n||"column"in n?$s(n):""}function $s(n){return hd(n&&n.line)+":"+hd(n&&n.column)}function md(n){return $s(n&&n.start)+"-"+$s(n&&n.end)}function hd(n){return n&&typeof n=="number"?n:1}class cn extends Error{constructor(a,r,o){super(),typeof r=="string"&&(o=r,r=void 0);let s="",f={},u=!1;if(r&&("line"in r&&"column"in r?f={place:r}:"start"in r&&"end"in r?f={place:r}:"type"in r?f={ancestors:[r],place:r.position}:f={...r}),typeof a=="string"?s=a:!f.cause&&a&&(u=!0,s=a.message,f.cause=a),!f.ruleId&&!f.source&&typeof o=="string"){const m=o.indexOf(":");m===-1?f.ruleId=o:(f.source=o.slice(0,m),f.ruleId=o.slice(m+1))}if(!f.place&&f.ancestors&&f.ancestors){const m=f.ancestors[f.ancestors.length-1];m&&(f.place=m.position)}const g=f.place&&"start"in f.place?f.place.start:f.place;this.ancestors=f.ancestors||void 0,this.cause=f.cause||void 0,this.column=g?g.column:void 0,this.fatal=void 0,this.file="",this.message=s,this.line=g?g.line:void 0,this.name=Kr(f.place)||"1:1",this.place=f.place||void 0,this.reason=this.message,this.ruleId=f.ruleId||void 0,this.source=f.source||void 0,this.stack=u&&f.cause&&typeof f.cause.stack=="string"?f.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}cn.prototype.file="",cn.prototype.name="",cn.prototype.reason="",cn.prototype.message="",cn.prototype.stack="",cn.prototype.column=void 0,cn.prototype.line=void 0,cn.prototype.ancestors=void 0,cn.prototype.cause=void 0,cn.prototype.fatal=void 0,cn.prototype.place=void 0,cn.prototype.ruleId=void 0,cn.prototype.source=void 0;const Zs={}.hasOwnProperty,r0=new Map,l0=/[A-Z]/g,o0=new Set(["table","tbody","thead","tfoot","tr"]),s0=new Set(["td","th"]),bd="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function c0(n,a){if(!a||a.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const r=a.filePath||void 0;let o;if(a.development){if(typeof a.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");o=b0(r,a.jsxDEV)}else{if(typeof a.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof a.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");o=h0(r,a.jsx,a.jsxs)}const s={Fragment:a.Fragment,ancestors:[],components:a.components||{},create:o,elementAttributeNameCase:a.elementAttributeNameCase||"react",evaluater:a.createEvaluater?a.createEvaluater():void 0,filePath:r,ignoreInvalidStyle:a.ignoreInvalidStyle||!1,passKeys:a.passKeys!==!1,passNode:a.passNode||!1,schema:a.space==="svg"?Ps:Xy,stylePropertyNameCase:a.stylePropertyNameCase||"dom",tableCellAlignToStyle:a.tableCellAlignToStyle!==!1},f=yd(s,n,void 0);return f&&typeof f!="string"?f:s.create(n,s.Fragment,{children:f||void 0},void 0)}function yd(n,a,r){if(a.type==="element")return u0(n,a,r);if(a.type==="mdxFlowExpression"||a.type==="mdxTextExpression")return f0(n,a);if(a.type==="mdxJsxFlowElement"||a.type==="mdxJsxTextElement")return p0(n,a,r);if(a.type==="mdxjsEsm")return d0(n,a);if(a.type==="root")return g0(n,a,r);if(a.type==="text")return m0(n,a)}function u0(n,a,r){const o=n.schema;let s=o;a.tagName.toLowerCase()==="svg"&&o.space==="html"&&(s=Ps,n.schema=s),n.ancestors.push(a);const f=kd(n,a.tagName,!1),u=y0(n,a);let g=Qs(n,a);return o0.has(a.tagName)&&(g=g.filter(function(m){return typeof m=="string"?!qy(m):!0})),vd(n,u,f,a),Xs(u,g),n.ancestors.pop(),n.schema=o,n.create(a,f,u,r)}function f0(n,a){if(a.data&&a.data.estree&&n.evaluater){const o=a.data.estree.body[0];return o.type,n.evaluater.evaluateExpression(o.expression)}Vr(n,a.position)}function d0(n,a){if(a.data&&a.data.estree&&n.evaluater)return n.evaluater.evaluateProgram(a.data.estree);Vr(n,a.position)}function p0(n,a,r){const o=n.schema;let s=o;a.name==="svg"&&o.space==="html"&&(s=Ps,n.schema=s),n.ancestors.push(a);const f=a.name===null?n.Fragment:kd(n,a.name,!0),u=v0(n,a),g=Qs(n,a);return vd(n,u,f,a),Xs(u,g),n.ancestors.pop(),n.schema=o,n.create(a,f,u,r)}function g0(n,a,r){const o={};return Xs(o,Qs(n,a)),n.create(a,n.Fragment,o,r)}function m0(n,a){return a.value}function vd(n,a,r,o){typeof r!="string"&&r!==n.Fragment&&n.passNode&&(a.node=o)}function Xs(n,a){if(a.length>0){const r=a.length>1?a:a[0];r&&(n.children=r)}}function h0(n,a,r){return o;function o(s,f,u,g){const p=Array.isArray(u.children)?r:a;return g?p(f,u,g):p(f,u)}}function b0(n,a){return r;function r(o,s,f,u){const g=Array.isArray(f.children),m=Vs(o);return a(s,f,u,g,{columnNumber:m?m.column-1:void 0,fileName:n,lineNumber:m?m.line:void 0},void 0)}}function y0(n,a){const r={};let o,s;for(s in a.properties)if(s!=="children"&&Zs.call(a.properties,s)){const f=k0(n,s,a.properties[s]);if(f){const[u,g]=f;n.tableCellAlignToStyle&&u==="align"&&typeof g=="string"&&s0.has(a.tagName)?o=g:r[u]=g}}if(o){const f=r.style||(r.style={});f[n.stylePropertyNameCase==="css"?"text-align":"textAlign"]=o}return r}function v0(n,a){const r={};for(const o of a.attributes)if(o.type==="mdxJsxExpressionAttribute")if(o.data&&o.data.estree&&n.evaluater){const f=o.data.estree.body[0];f.type;const u=f.expression;u.type;const g=u.properties[0];g.type,Object.assign(r,n.evaluater.evaluateExpression(g.argument))}else Vr(n,a.position);else{const s=o.name;let f;if(o.value&&typeof o.value=="object")if(o.value.data&&o.value.data.estree&&n.evaluater){const g=o.value.data.estree.body[0];g.type,f=n.evaluater.evaluateExpression(g.expression)}else Vr(n,a.position);else f=o.value===null?!0:o.value;r[s]=f}return r}function Qs(n,a){const r=[];let o=-1;const s=n.passKeys?new Map:r0;for(;++o<a.children.length;){const f=a.children[o];let u;if(n.passKeys){const m=f.type==="element"?f.tagName:f.type==="mdxJsxFlowElement"||f.type==="mdxJsxTextElement"?f.name:void 0;if(m){const p=s.get(m)||0;u=m+"-"+p,s.set(m,p+1)}}const g=yd(n,f,u);g!==void 0&&r.push(g)}return r}function k0(n,a,r){const o=Vy(n.schema,a);if(!(r==null||typeof r=="number"&&Number.isNaN(r))){if(Array.isArray(r)&&(r=o.commaSeparated?zy(r):Qy(r)),o.property==="style"){let s=typeof r=="object"?r:E0(n,String(r));return n.stylePropertyNameCase==="css"&&(s=_0(s)),["style",s]}return[n.elementAttributeNameCase==="react"&&o.space?Yy[o.property]||o.property:o.attribute,r]}}function E0(n,a){try{return i0(a,{reactCompat:!0})}catch(r){if(n.ignoreInvalidStyle)return{};const o=r,s=new cn("Cannot parse `style` attribute",{ancestors:n.ancestors,cause:o,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw s.file=n.filePath||void 0,s.url=bd+"#cannot-parse-style-attribute",s}}function kd(n,a,r){let o;if(!r)o={type:"Literal",value:a};else if(a.includes(".")){const s=a.split(".");let f=-1,u;for(;++f<s.length;){const g=Jf(s[f])?{type:"Identifier",name:s[f]}:{type:"Literal",value:s[f]};u=u?{type:"MemberExpression",object:u,property:g,computed:!!(f&&g.type==="Literal"),optional:!1}:g}o=u}else o=Jf(a)&&!/^[a-z]/.test(a)?{type:"Identifier",name:a}:{type:"Literal",value:a};if(o.type==="Literal"){const s=o.value;return Zs.call(n.components,s)?n.components[s]:s}if(n.evaluater)return n.evaluater.evaluateExpression(o);Vr(n)}function Vr(n,a){const r=new cn("Cannot handle MDX estrees without `createEvaluater`",{ancestors:n.ancestors,place:a,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw r.file=n.filePath||void 0,r.url=bd+"#cannot-handle-mdx-estrees-without-createevaluater",r}function _0(n){const a={};let r;for(r in n)Zs.call(n,r)&&(a[x0(r)]=n[r]);return a}function x0(n){let a=n.replace(l0,S0);return a.slice(0,3)==="ms-"&&(a="-"+a),a}function S0(n){return"-"+n.toLowerCase()}const Js={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"]},w0={};function Ws(n,a){const r=w0,o=typeof r.includeImageAlt=="boolean"?r.includeImageAlt:!0,s=typeof r.includeHtml=="boolean"?r.includeHtml:!0;return Ed(n,o,s)}function Ed(n,a,r){if(T0(n)){if("value"in n)return n.type==="html"&&!r?"":n.value;if(a&&"alt"in n&&n.alt)return n.alt;if("children"in n)return _d(n.children,a,r)}return Array.isArray(n)?_d(n,a,r):""}function _d(n,a,r){const o=[];let s=-1;for(;++s<n.length;)o[s]=Ed(n[s],a,r);return o.join("")}function T0(n){return!!(n&&typeof n=="object")}const xd=document.createElement("i");function ec(n){const a="&"+n+";";xd.innerHTML=a;const r=xd.textContent;return r.charCodeAt(r.length-1)===59&&n!=="semi"||r===a?!1:r}function Ln(n,a,r,o){const s=n.length;let f=0,u;if(a<0?a=-a>s?0:s+a:a=a>s?s:a,r=r>0?r:0,o.length<1e4)u=Array.from(o),u.unshift(a,r),n.splice(...u);else for(r&&n.splice(a,r);f<o.length;)u=o.slice(f,f+1e4),u.unshift(a,0),n.splice(...u),f+=1e4,a+=1e4}function Pn(n,a){return n.length>0?(Ln(n,n.length,0,a),n):a}const Sd={}.hasOwnProperty;function wd(n){const a={};let r=-1;for(;++r<n.length;)A0(a,n[r]);return a}function A0(n,a){let r;for(r in a){const s=(Sd.call(n,r)?n[r]:void 0)||(n[r]={}),f=a[r];let u;if(f)for(u in f){Sd.call(s,u)||(s[u]=[]);const g=f[u];N0(s[u],Array.isArray(g)?g:g?[g]:[])}}}function N0(n,a){let r=-1;const o=[];for(;++r<a.length;)(a[r].add==="after"?n:o).push(a[r]);Ln(n,0,0,o)}function Td(n,a){const r=Number.parseInt(n,a);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 li(n){return n.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const bn=Qi(/[A-Za-z]/),un=Qi(/[\dA-Za-z]/),C0=Qi(/[#-'*+\--9=?A-Z^-~]/);function Xl(n){return n!==null&&(n<32||n===127)}const tc=Qi(/\d/),O0=Qi(/[\dA-Fa-f]/),M0=Qi(/[!-/:-@[-`{-~]/);function we(n){return n!==null&&n<-2}function vt(n){return n!==null&&(n<0||n===32)}function $e(n){return n===-2||n===-1||n===32}const Ql=Qi(new RegExp("\\p{P}|\\p{S}","u")),Oa=Qi(/\s/);function Qi(n){return a;function a(r){return r!==null&&r>-1&&n.test(String.fromCharCode(r))}}function tr(n){const a=[];let r=-1,o=0,s=0;for(;++r<n.length;){const f=n.charCodeAt(r);let u="";if(f===37&&un(n.charCodeAt(r+1))&&un(n.charCodeAt(r+2)))s=2;else if(f<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(f))||(u=String.fromCharCode(f));else if(f>55295&&f<57344){const g=n.charCodeAt(r+1);f<56320&&g>56319&&g<57344?(u=String.fromCharCode(f,g),s=1):u="�"}else u=String.fromCharCode(f);u&&(a.push(n.slice(o,r),encodeURIComponent(u)),o=r+s+1,u=""),s&&(r+=s,s=0)}return a.join("")+n.slice(o)}function tt(n,a,r,o){const s=o?o-1:Number.POSITIVE_INFINITY;let f=0;return u;function u(m){return $e(m)?(n.enter(r),g(m)):a(m)}function g(m){return $e(m)&&f++<s?(n.consume(m),g):(n.exit(r),a(m))}}const R0={tokenize:D0};function D0(n){const a=n.attempt(this.parser.constructs.contentInitial,o,s);let r;return a;function o(g){if(g===null){n.consume(g);return}return n.enter("lineEnding"),n.consume(g),n.exit("lineEnding"),tt(n,a,"linePrefix")}function s(g){return n.enter("paragraph"),f(g)}function f(g){const m=n.enter("chunkText",{contentType:"text",previous:r});return r&&(r.next=m),r=m,u(g)}function u(g){if(g===null){n.exit("chunkText"),n.exit("paragraph"),n.consume(g);return}return we(g)?(n.consume(g),n.exit("chunkText"),f):(n.consume(g),u)}}const L0={tokenize:z0},Ad={tokenize:I0};function z0(n){const a=this,r=[];let o=0,s,f,u;return g;function g(H){if(o<r.length){const Q=r[o];return a.containerState=Q[1],n.attempt(Q[0].continuation,m,p)(H)}return p(H)}function m(H){if(o++,a.containerState._closeFlow){a.containerState._closeFlow=void 0,s&&q();const Q=a.events.length;let te=Q,L;for(;te--;)if(a.events[te][0]==="exit"&&a.events[te][1].type==="chunkFlow"){L=a.events[te][1].end;break}w(o);let ce=Q;for(;ce<a.events.length;)a.events[ce][1].end={...L},ce++;return Ln(a.events,te+1,0,a.events.slice(Q)),a.events.length=ce,p(H)}return g(H)}function p(H){if(o===r.length){if(!s)return v(H);if(s.currentConstruct&&s.currentConstruct.concrete)return x(H);a.interrupt=!!(s.currentConstruct&&!s._gfmTableDynamicInterruptHack)}return a.containerState={},n.check(Ad,b,h)(H)}function b(H){return s&&q(),w(o),v(H)}function h(H){return a.parser.lazy[a.now().line]=o!==r.length,u=a.now().offset,x(H)}function v(H){return a.containerState={},n.attempt(Ad,k,x)(H)}function k(H){return o++,r.push([a.currentConstruct,a.containerState]),v(H)}function x(H){if(H===null){s&&q(),w(0),n.consume(H);return}return s=s||a.parser.flow(a.now()),n.enter("chunkFlow",{_tokenizer:s,contentType:"flow",previous:f}),C(H)}function C(H){if(H===null){M(n.exit("chunkFlow"),!0),w(0),n.consume(H);return}return we(H)?(n.consume(H),M(n.exit("chunkFlow")),o=0,a.interrupt=void 0,g):(n.consume(H),C)}function M(H,Q){const te=a.sliceStream(H);if(Q&&te.push(null),H.previous=f,f&&(f.next=H),f=H,s.defineSkip(H.start),s.write(te),a.parser.lazy[H.start.line]){let L=s.events.length;for(;L--;)if(s.events[L][1].start.offset<u&&(!s.events[L][1].end||s.events[L][1].end.offset>u))return;const ce=a.events.length;let ee=ce,fe,z;for(;ee--;)if(a.events[ee][0]==="exit"&&a.events[ee][1].type==="chunkFlow"){if(fe){z=a.events[ee][1].end;break}fe=!0}for(w(o),L=ce;L<a.events.length;)a.events[L][1].end={...z},L++;Ln(a.events,ee+1,0,a.events.slice(ce)),a.events.length=L}}function w(H){let Q=r.length;for(;Q-- >H;){const te=r[Q];a.containerState=te[1],te[0].exit.call(a,n)}r.length=H}function q(){s.write([null]),f=void 0,s=void 0,a.containerState._closeFlow=void 0}}function I0(n,a,r){return tt(n,n.attempt(this.parser.constructs.document,a,r),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function nr(n){if(n===null||vt(n)||Oa(n))return 1;if(Ql(n))return 2}function Jl(n,a,r){const o=[];let s=-1;for(;++s<n.length;){const f=n[s].resolveAll;f&&!o.includes(f)&&(a=f(a,r),o.push(f))}return a}const nc={name:"attention",resolveAll:B0,tokenize:U0};function B0(n,a){let r=-1,o,s,f,u,g,m,p,b;for(;++r<n.length;)if(n[r][0]==="enter"&&n[r][1].type==="attentionSequence"&&n[r][1]._close){for(o=r;o--;)if(n[o][0]==="exit"&&n[o][1].type==="attentionSequence"&&n[o][1]._open&&a.sliceSerialize(n[o][1]).charCodeAt(0)===a.sliceSerialize(n[r][1]).charCodeAt(0)){if((n[o][1]._close||n[r][1]._open)&&(n[r][1].end.offset-n[r][1].start.offset)%3&&!((n[o][1].end.offset-n[o][1].start.offset+n[r][1].end.offset-n[r][1].start.offset)%3))continue;m=n[o][1].end.offset-n[o][1].start.offset>1&&n[r][1].end.offset-n[r][1].start.offset>1?2:1;const h={...n[o][1].end},v={...n[r][1].start};Nd(h,-m),Nd(v,m),u={type:m>1?"strongSequence":"emphasisSequence",start:h,end:{...n[o][1].end}},g={type:m>1?"strongSequence":"emphasisSequence",start:{...n[r][1].start},end:v},f={type:m>1?"strongText":"emphasisText",start:{...n[o][1].end},end:{...n[r][1].start}},s={type:m>1?"strong":"emphasis",start:{...u.start},end:{...g.end}},n[o][1].end={...u.start},n[r][1].start={...g.end},p=[],n[o][1].end.offset-n[o][1].start.offset&&(p=Pn(p,[["enter",n[o][1],a],["exit",n[o][1],a]])),p=Pn(p,[["enter",s,a],["enter",u,a],["exit",u,a],["enter",f,a]]),p=Pn(p,Jl(a.parser.constructs.insideSpan.null,n.slice(o+1,r),a)),p=Pn(p,[["exit",f,a],["enter",g,a],["exit",g,a],["exit",s,a]]),n[r][1].end.offset-n[r][1].start.offset?(b=2,p=Pn(p,[["enter",n[r][1],a],["exit",n[r][1],a]])):b=0,Ln(n,o-1,r-o+3,p),r=o+p.length-b-2;break}}for(r=-1;++r<n.length;)n[r][1].type==="attentionSequence"&&(n[r][1].type="data");return n}function U0(n,a){const r=this.parser.constructs.attentionMarkers.null,o=this.previous,s=nr(o);let f;return u;function u(m){return f=m,n.enter("attentionSequence"),g(m)}function g(m){if(m===f)return n.consume(m),g;const p=n.exit("attentionSequence"),b=nr(m),h=!b||b===2&&s||r.includes(m),v=!s||s===2&&b||r.includes(o);return p._open=!!(f===42?h:h&&(s||!v)),p._close=!!(f===42?v:v&&(b||!h)),a(m)}}function Nd(n,a){n.column+=a,n.offset+=a,n._bufferIndex+=a}const H0={name:"autolink",tokenize:q0};function q0(n,a,r){let o=0;return s;function s(k){return n.enter("autolink"),n.enter("autolinkMarker"),n.consume(k),n.exit("autolinkMarker"),n.enter("autolinkProtocol"),f}function f(k){return bn(k)?(n.consume(k),u):k===64?r(k):p(k)}function u(k){return k===43||k===45||k===46||un(k)?(o=1,g(k)):p(k)}function g(k){return k===58?(n.consume(k),o=0,m):(k===43||k===45||k===46||un(k))&&o++<32?(n.consume(k),g):(o=0,p(k))}function m(k){return k===62?(n.exit("autolinkProtocol"),n.enter("autolinkMarker"),n.consume(k),n.exit("autolinkMarker"),n.exit("autolink"),a):k===null||k===32||k===60||Xl(k)?r(k):(n.consume(k),m)}function p(k){return k===64?(n.consume(k),b):C0(k)?(n.consume(k),p):r(k)}function b(k){return un(k)?h(k):r(k)}function h(k){return k===46?(n.consume(k),o=0,b):k===62?(n.exit("autolinkProtocol").type="autolinkEmail",n.enter("autolinkMarker"),n.consume(k),n.exit("autolinkMarker"),n.exit("autolink"),a):v(k)}function v(k){if((k===45||un(k))&&o++<63){const x=k===45?v:h;return n.consume(k),x}return r(k)}}const $r={partial:!0,tokenize:F0};function F0(n,a,r){return o;function o(f){return $e(f)?tt(n,s,"linePrefix")(f):s(f)}function s(f){return f===null||we(f)?a(f):r(f)}}const Cd={continuation:{tokenize:j0},exit:Y0,name:"blockQuote",tokenize:G0};function G0(n,a,r){const o=this;return s;function s(u){if(u===62){const g=o.containerState;return g.open||(n.enter("blockQuote",{_container:!0}),g.open=!0),n.enter("blockQuotePrefix"),n.enter("blockQuoteMarker"),n.consume(u),n.exit("blockQuoteMarker"),f}return r(u)}function f(u){return $e(u)?(n.enter("blockQuotePrefixWhitespace"),n.consume(u),n.exit("blockQuotePrefixWhitespace"),n.exit("blockQuotePrefix"),a):(n.exit("blockQuotePrefix"),a(u))}}function j0(n,a,r){const o=this;return s;function s(u){return $e(u)?tt(n,f,"linePrefix",o.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(u):f(u)}function f(u){return n.attempt(Cd,a,r)(u)}}function Y0(n){n.exit("blockQuote")}const Od={name:"characterEscape",tokenize:P0};function P0(n,a,r){return o;function o(f){return n.enter("characterEscape"),n.enter("escapeMarker"),n.consume(f),n.exit("escapeMarker"),s}function s(f){return M0(f)?(n.enter("characterEscapeValue"),n.consume(f),n.exit("characterEscapeValue"),n.exit("characterEscape"),a):r(f)}}const Md={name:"characterReference",tokenize:K0};function K0(n,a,r){const o=this;let s=0,f,u;return g;function g(h){return n.enter("characterReference"),n.enter("characterReferenceMarker"),n.consume(h),n.exit("characterReferenceMarker"),m}function m(h){return h===35?(n.enter("characterReferenceMarkerNumeric"),n.consume(h),n.exit("characterReferenceMarkerNumeric"),p):(n.enter("characterReferenceValue"),f=31,u=un,b(h))}function p(h){return h===88||h===120?(n.enter("characterReferenceMarkerHexadecimal"),n.consume(h),n.exit("characterReferenceMarkerHexadecimal"),n.enter("characterReferenceValue"),f=6,u=O0,b):(n.enter("characterReferenceValue"),f=7,u=tc,b(h))}function b(h){if(h===59&&s){const v=n.exit("characterReferenceValue");return u===un&&!ec(o.sliceSerialize(v))?r(h):(n.enter("characterReferenceMarker"),n.consume(h),n.exit("characterReferenceMarker"),n.exit("characterReference"),a)}return u(h)&&s++<f?(n.consume(h),b):r(h)}}const Rd={partial:!0,tokenize:$0},Dd={concrete:!0,name:"codeFenced",tokenize:V0};function V0(n,a,r){const o=this,s={partial:!0,tokenize:te};let f=0,u=0,g;return m;function m(L){return p(L)}function p(L){const ce=o.events[o.events.length-1];return f=ce&&ce[1].type==="linePrefix"?ce[2].sliceSerialize(ce[1],!0).length:0,g=L,n.enter("codeFenced"),n.enter("codeFencedFence"),n.enter("codeFencedFenceSequence"),b(L)}function b(L){return L===g?(u++,n.consume(L),b):u<3?r(L):(n.exit("codeFencedFenceSequence"),$e(L)?tt(n,h,"whitespace")(L):h(L))}function h(L){return L===null||we(L)?(n.exit("codeFencedFence"),o.interrupt?a(L):n.check(Rd,C,Q)(L)):(n.enter("codeFencedFenceInfo"),n.enter("chunkString",{contentType:"string"}),v(L))}function v(L){return L===null||we(L)?(n.exit("chunkString"),n.exit("codeFencedFenceInfo"),h(L)):$e(L)?(n.exit("chunkString"),n.exit("codeFencedFenceInfo"),tt(n,k,"whitespace")(L)):L===96&&L===g?r(L):(n.consume(L),v)}function k(L){return L===null||we(L)?h(L):(n.enter("codeFencedFenceMeta"),n.enter("chunkString",{contentType:"string"}),x(L))}function x(L){return L===null||we(L)?(n.exit("chunkString"),n.exit("codeFencedFenceMeta"),h(L)):L===96&&L===g?r(L):(n.consume(L),x)}function C(L){return n.attempt(s,Q,M)(L)}function M(L){return n.enter("lineEnding"),n.consume(L),n.exit("lineEnding"),w}function w(L){return f>0&&$e(L)?tt(n,q,"linePrefix",f+1)(L):q(L)}function q(L){return L===null||we(L)?n.check(Rd,C,Q)(L):(n.enter("codeFlowValue"),H(L))}function H(L){return L===null||we(L)?(n.exit("codeFlowValue"),q(L)):(n.consume(L),H)}function Q(L){return n.exit("codeFenced"),a(L)}function te(L,ce,ee){let fe=0;return z;function z(X){return L.enter("lineEnding"),L.consume(X),L.exit("lineEnding"),se}function se(X){return L.enter("codeFencedFence"),$e(X)?tt(L,re,"linePrefix",o.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(X):re(X)}function re(X){return X===g?(L.enter("codeFencedFenceSequence"),_e(X)):ee(X)}function _e(X){return X===g?(fe++,L.consume(X),_e):fe>=u?(L.exit("codeFencedFenceSequence"),$e(X)?tt(L,oe,"whitespace")(X):oe(X)):ee(X)}function oe(X){return X===null||we(X)?(L.exit("codeFencedFence"),ce(X)):ee(X)}}}function $0(n,a,r){const o=this;return s;function s(u){return u===null?r(u):(n.enter("lineEnding"),n.consume(u),n.exit("lineEnding"),f)}function f(u){return o.parser.lazy[o.now().line]?r(u):a(u)}}const ic={name:"codeIndented",tokenize:X0},Z0={partial:!0,tokenize:Q0};function X0(n,a,r){const o=this;return s;function s(p){return n.enter("codeIndented"),tt(n,f,"linePrefix",5)(p)}function f(p){const b=o.events[o.events.length-1];return b&&b[1].type==="linePrefix"&&b[2].sliceSerialize(b[1],!0).length>=4?u(p):r(p)}function u(p){return p===null?m(p):we(p)?n.attempt(Z0,u,m)(p):(n.enter("codeFlowValue"),g(p))}function g(p){return p===null||we(p)?(n.exit("codeFlowValue"),u(p)):(n.consume(p),g)}function m(p){return n.exit("codeIndented"),a(p)}}function Q0(n,a,r){const o=this;return s;function s(u){return o.parser.lazy[o.now().line]?r(u):we(u)?(n.enter("lineEnding"),n.consume(u),n.exit("lineEnding"),s):tt(n,f,"linePrefix",5)(u)}function f(u){const g=o.events[o.events.length-1];return g&&g[1].type==="linePrefix"&&g[2].sliceSerialize(g[1],!0).length>=4?a(u):we(u)?s(u):r(u)}}const J0={name:"codeText",previous:ev,resolve:W0,tokenize:tv};function W0(n){let a=n.length-4,r=3,o,s;if((n[r][1].type==="lineEnding"||n[r][1].type==="space")&&(n[a][1].type==="lineEnding"||n[a][1].type==="space")){for(o=r;++o<a;)if(n[o][1].type==="codeTextData"){n[r][1].type="codeTextPadding",n[a][1].type="codeTextPadding",r+=2,a-=2;break}}for(o=r-1,a++;++o<=a;)s===void 0?o!==a&&n[o][1].type!=="lineEnding"&&(s=o):(o===a||n[o][1].type==="lineEnding")&&(n[s][1].type="codeTextData",o!==s+2&&(n[s][1].end=n[o-1][1].end,n.splice(s+2,o-s-2),a-=o-s-2,o=s+2),s=void 0);return n}function ev(n){return n!==96||this.events[this.events.length-1][1].type==="characterEscape"}function tv(n,a,r){let o=0,s,f;return u;function u(h){return n.enter("codeText"),n.enter("codeTextSequence"),g(h)}function g(h){return h===96?(n.consume(h),o++,g):(n.exit("codeTextSequence"),m(h))}function m(h){return h===null?r(h):h===32?(n.enter("space"),n.consume(h),n.exit("space"),m):h===96?(f=n.enter("codeTextSequence"),s=0,b(h)):we(h)?(n.enter("lineEnding"),n.consume(h),n.exit("lineEnding"),m):(n.enter("codeTextData"),p(h))}function p(h){return h===null||h===32||h===96||we(h)?(n.exit("codeTextData"),m(h)):(n.consume(h),p)}function b(h){return h===96?(n.consume(h),s++,b):s===o?(n.exit("codeTextSequence"),n.exit("codeText"),a(h)):(f.type="codeTextData",p(h))}}class nv{constructor(a){this.left=a?[...a]:[],this.right=[]}get(a){if(a<0||a>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+a+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return a<this.left.length?this.left[a]:this.right[this.right.length-a+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(a,r){const o=r??Number.POSITIVE_INFINITY;return o<this.left.length?this.left.slice(a,o):a>this.left.length?this.right.slice(this.right.length-o+this.left.length,this.right.length-a+this.left.length).reverse():this.left.slice(a).concat(this.right.slice(this.right.length-o+this.left.length).reverse())}splice(a,r,o){const s=r||0;this.setCursor(Math.trunc(a));const f=this.right.splice(this.right.length-s,Number.POSITIVE_INFINITY);return o&&Zr(this.left,o),f.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(a){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(a)}pushMany(a){this.setCursor(Number.POSITIVE_INFINITY),Zr(this.left,a)}unshift(a){this.setCursor(0),this.right.push(a)}unshiftMany(a){this.setCursor(0),Zr(this.right,a.reverse())}setCursor(a){if(!(a===this.left.length||a>this.left.length&&this.right.length===0||a<0&&this.left.length===0))if(a<this.left.length){const r=this.left.splice(a,Number.POSITIVE_INFINITY);Zr(this.right,r.reverse())}else{const r=this.right.splice(this.left.length+this.right.length-a,Number.POSITIVE_INFINITY);Zr(this.left,r.reverse())}}}function Zr(n,a){let r=0;if(a.length<1e4)n.push(...a);else for(;r<a.length;)n.push(...a.slice(r,r+1e4)),r+=1e4}function Ld(n){const a={};let r=-1,o,s,f,u,g,m,p;const b=new nv(n);for(;++r<b.length;){for(;r in a;)r=a[r];if(o=b.get(r),r&&o[1].type==="chunkFlow"&&b.get(r-1)[1].type==="listItemPrefix"&&(m=o[1]._tokenizer.events,f=0,f<m.length&&m[f][1].type==="lineEndingBlank"&&(f+=2),f<m.length&&m[f][1].type==="content"))for(;++f<m.length&&m[f][1].type!=="content";)m[f][1].type==="chunkText"&&(m[f][1]._isInFirstContentOfListItem=!0,f++);if(o[0]==="enter")o[1].contentType&&(Object.assign(a,iv(b,r)),r=a[r],p=!0);else if(o[1]._container){for(f=r,s=void 0;f--;)if(u=b.get(f),u[1].type==="lineEnding"||u[1].type==="lineEndingBlank")u[0]==="enter"&&(s&&(b.get(s)[1].type="lineEndingBlank"),u[1].type="lineEnding",s=f);else if(!(u[1].type==="linePrefix"||u[1].type==="listItemIndent"))break;s&&(o[1].end={...b.get(s)[1].start},g=b.slice(s,r),g.unshift(o),b.splice(s,r-s+1,g))}}return Ln(n,0,Number.POSITIVE_INFINITY,b.slice(0)),!p}function iv(n,a){const r=n.get(a)[1],o=n.get(a)[2];let s=a-1;const f=[];let u=r._tokenizer;u||(u=o.parser[r.contentType](r.start),r._contentTypeTextTrailing&&(u._contentTypeTextTrailing=!0));const g=u.events,m=[],p={};let b,h,v=-1,k=r,x=0,C=0;const M=[C];for(;k;){for(;n.get(++s)[1]!==k;);f.push(s),k._tokenizer||(b=o.sliceStream(k),k.next||b.push(null),h&&u.defineSkip(k.start),k._isInFirstContentOfListItem&&(u._gfmTasklistFirstContentOfListItem=!0),u.write(b),k._isInFirstContentOfListItem&&(u._gfmTasklistFirstContentOfListItem=void 0)),h=k,k=k.next}for(k=r;++v<g.length;)g[v][0]==="exit"&&g[v-1][0]==="enter"&&g[v][1].type===g[v-1][1].type&&g[v][1].start.line!==g[v][1].end.line&&(C=v+1,M.push(C),k._tokenizer=void 0,k.previous=void 0,k=k.next);for(u.events=[],k?(k._tokenizer=void 0,k.previous=void 0):M.pop(),v=M.length;v--;){const w=g.slice(M[v],M[v+1]),q=f.pop();m.push([q,q+w.length-1]),n.splice(q,2,w)}for(m.reverse(),v=-1;++v<m.length;)p[x+m[v][0]]=x+m[v][1],x+=m[v][1]-m[v][0]-1;return p}const av={resolve:lv,tokenize:ov},rv={partial:!0,tokenize:sv};function lv(n){return Ld(n),n}function ov(n,a){let r;return o;function o(g){return n.enter("content"),r=n.enter("chunkContent",{contentType:"content"}),s(g)}function s(g){return g===null?f(g):we(g)?n.check(rv,u,f)(g):(n.consume(g),s)}function f(g){return n.exit("chunkContent"),n.exit("content"),a(g)}function u(g){return n.consume(g),n.exit("chunkContent"),r.next=n.enter("chunkContent",{contentType:"content",previous:r}),r=r.next,s}}function sv(n,a,r){const o=this;return s;function s(u){return n.exit("chunkContent"),n.enter("lineEnding"),n.consume(u),n.exit("lineEnding"),tt(n,f,"linePrefix")}function f(u){if(u===null||we(u))return r(u);const g=o.events[o.events.length-1];return!o.parser.constructs.disable.null.includes("codeIndented")&&g&&g[1].type==="linePrefix"&&g[2].sliceSerialize(g[1],!0).length>=4?a(u):n.interrupt(o.parser.constructs.flow,r,a)(u)}}function zd(n,a,r,o,s,f,u,g,m){const p=m||Number.POSITIVE_INFINITY;let b=0;return h;function h(w){return w===60?(n.enter(o),n.enter(s),n.enter(f),n.consume(w),n.exit(f),v):w===null||w===32||w===41||Xl(w)?r(w):(n.enter(o),n.enter(u),n.enter(g),n.enter("chunkString",{contentType:"string"}),C(w))}function v(w){return w===62?(n.enter(f),n.consume(w),n.exit(f),n.exit(s),n.exit(o),a):(n.enter(g),n.enter("chunkString",{contentType:"string"}),k(w))}function k(w){return w===62?(n.exit("chunkString"),n.exit(g),v(w)):w===null||w===60||we(w)?r(w):(n.consume(w),w===92?x:k)}function x(w){return w===60||w===62||w===92?(n.consume(w),k):k(w)}function C(w){return!b&&(w===null||w===41||vt(w))?(n.exit("chunkString"),n.exit(g),n.exit(u),n.exit(o),a(w)):b<p&&w===40?(n.consume(w),b++,C):w===41?(n.consume(w),b--,C):w===null||w===32||w===40||Xl(w)?r(w):(n.consume(w),w===92?M:C)}function M(w){return w===40||w===41||w===92?(n.consume(w),C):C(w)}}function Id(n,a,r,o,s,f){const u=this;let g=0,m;return p;function p(k){return n.enter(o),n.enter(s),n.consume(k),n.exit(s),n.enter(f),b}function b(k){return g>999||k===null||k===91||k===93&&!m||k===94&&!g&&"_hiddenFootnoteSupport"in u.parser.constructs?r(k):k===93?(n.exit(f),n.enter(s),n.consume(k),n.exit(s),n.exit(o),a):we(k)?(n.enter("lineEnding"),n.consume(k),n.exit("lineEnding"),b):(n.enter("chunkString",{contentType:"string"}),h(k))}function h(k){return k===null||k===91||k===93||we(k)||g++>999?(n.exit("chunkString"),b(k)):(n.consume(k),m||(m=!$e(k)),k===92?v:h)}function v(k){return k===91||k===92||k===93?(n.consume(k),g++,h):h(k)}}function Bd(n,a,r,o,s,f){let u;return g;function g(v){return v===34||v===39||v===40?(n.enter(o),n.enter(s),n.consume(v),n.exit(s),u=v===40?41:v,m):r(v)}function m(v){return v===u?(n.enter(s),n.consume(v),n.exit(s),n.exit(o),a):(n.enter(f),p(v))}function p(v){return v===u?(n.exit(f),m(u)):v===null?r(v):we(v)?(n.enter("lineEnding"),n.consume(v),n.exit("lineEnding"),tt(n,p,"linePrefix")):(n.enter("chunkString",{contentType:"string"}),b(v))}function b(v){return v===u||v===null||we(v)?(n.exit("chunkString"),p(v)):(n.consume(v),v===92?h:b)}function h(v){return v===u||v===92?(n.consume(v),b):b(v)}}function Xr(n,a){let r;return o;function o(s){return we(s)?(n.enter("lineEnding"),n.consume(s),n.exit("lineEnding"),r=!0,o):$e(s)?tt(n,o,r?"linePrefix":"lineSuffix")(s):a(s)}}const cv={name:"definition",tokenize:fv},uv={partial:!0,tokenize:dv};function fv(n,a,r){const o=this;let s;return f;function f(k){return n.enter("definition"),u(k)}function u(k){return Id.call(o,n,g,r,"definitionLabel","definitionLabelMarker","definitionLabelString")(k)}function g(k){return s=li(o.sliceSerialize(o.events[o.events.length-1][1]).slice(1,-1)),k===58?(n.enter("definitionMarker"),n.consume(k),n.exit("definitionMarker"),m):r(k)}function m(k){return vt(k)?Xr(n,p)(k):p(k)}function p(k){return zd(n,b,r,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(k)}function b(k){return n.attempt(uv,h,h)(k)}function h(k){return $e(k)?tt(n,v,"whitespace")(k):v(k)}function v(k){return k===null||we(k)?(n.exit("definition"),o.parser.defined.push(s),a(k)):r(k)}}function dv(n,a,r){return o;function o(g){return vt(g)?Xr(n,s)(g):r(g)}function s(g){return Bd(n,f,r,"definitionTitle","definitionTitleMarker","definitionTitleString")(g)}function f(g){return $e(g)?tt(n,u,"whitespace")(g):u(g)}function u(g){return g===null||we(g)?a(g):r(g)}}const pv={name:"hardBreakEscape",tokenize:gv};function gv(n,a,r){return o;function o(f){return n.enter("hardBreakEscape"),n.consume(f),s}function s(f){return we(f)?(n.exit("hardBreakEscape"),a(f)):r(f)}}const mv={name:"headingAtx",resolve:hv,tokenize:bv};function hv(n,a){let r=n.length-2,o=3,s,f;return n[o][1].type==="whitespace"&&(o+=2),r-2>o&&n[r][1].type==="whitespace"&&(r-=2),n[r][1].type==="atxHeadingSequence"&&(o===r-1||r-4>o&&n[r-2][1].type==="whitespace")&&(r-=o+1===r?2:4),r>o&&(s={type:"atxHeadingText",start:n[o][1].start,end:n[r][1].end},f={type:"chunkText",start:n[o][1].start,end:n[r][1].end,contentType:"text"},Ln(n,o,r-o+1,[["enter",s,a],["enter",f,a],["exit",f,a],["exit",s,a]])),n}function bv(n,a,r){let o=0;return s;function s(b){return n.enter("atxHeading"),f(b)}function f(b){return n.enter("atxHeadingSequence"),u(b)}function u(b){return b===35&&o++<6?(n.consume(b),u):b===null||vt(b)?(n.exit("atxHeadingSequence"),g(b)):r(b)}function g(b){return b===35?(n.enter("atxHeadingSequence"),m(b)):b===null||we(b)?(n.exit("atxHeading"),a(b)):$e(b)?tt(n,g,"whitespace")(b):(n.enter("atxHeadingText"),p(b))}function m(b){return b===35?(n.consume(b),m):(n.exit("atxHeadingSequence"),g(b))}function p(b){return b===null||b===35||vt(b)?(n.exit("atxHeadingText"),g(b)):(n.consume(b),p)}}const yv=["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"],Ud=["pre","script","style","textarea"],vv={concrete:!0,name:"htmlFlow",resolveTo:_v,tokenize:xv},kv={partial:!0,tokenize:wv},Ev={partial:!0,tokenize:Sv};function _v(n){let a=n.length;for(;a--&&!(n[a][0]==="enter"&&n[a][1].type==="htmlFlow"););return a>1&&n[a-2][1].type==="linePrefix"&&(n[a][1].start=n[a-2][1].start,n[a+1][1].start=n[a-2][1].start,n.splice(a-2,2)),n}function xv(n,a,r){const o=this;let s,f,u,g,m;return p;function p(_){return b(_)}function b(_){return n.enter("htmlFlow"),n.enter("htmlFlowData"),n.consume(_),h}function h(_){return _===33?(n.consume(_),v):_===47?(n.consume(_),f=!0,C):_===63?(n.consume(_),s=3,o.interrupt?a:S):bn(_)?(n.consume(_),u=String.fromCharCode(_),M):r(_)}function v(_){return _===45?(n.consume(_),s=2,k):_===91?(n.consume(_),s=5,g=0,x):bn(_)?(n.consume(_),s=4,o.interrupt?a:S):r(_)}function k(_){return _===45?(n.consume(_),o.interrupt?a:S):r(_)}function x(_){const J="CDATA[";return _===J.charCodeAt(g++)?(n.consume(_),g===J.length?o.interrupt?a:re:x):r(_)}function C(_){return bn(_)?(n.consume(_),u=String.fromCharCode(_),M):r(_)}function M(_){if(_===null||_===47||_===62||vt(_)){const J=_===47,pe=u.toLowerCase();return!J&&!f&&Ud.includes(pe)?(s=1,o.interrupt?a(_):re(_)):yv.includes(u.toLowerCase())?(s=6,J?(n.consume(_),w):o.interrupt?a(_):re(_)):(s=7,o.interrupt&&!o.parser.lazy[o.now().line]?r(_):f?q(_):H(_))}return _===45||un(_)?(n.consume(_),u+=String.fromCharCode(_),M):r(_)}function w(_){return _===62?(n.consume(_),o.interrupt?a:re):r(_)}function q(_){return $e(_)?(n.consume(_),q):z(_)}function H(_){return _===47?(n.consume(_),z):_===58||_===95||bn(_)?(n.consume(_),Q):$e(_)?(n.consume(_),H):z(_)}function Q(_){return _===45||_===46||_===58||_===95||un(_)?(n.consume(_),Q):te(_)}function te(_){return _===61?(n.consume(_),L):$e(_)?(n.consume(_),te):H(_)}function L(_){return _===null||_===60||_===61||_===62||_===96?r(_):_===34||_===39?(n.consume(_),m=_,ce):$e(_)?(n.consume(_),L):ee(_)}function ce(_){return _===m?(n.consume(_),m=null,fe):_===null||we(_)?r(_):(n.consume(_),ce)}function ee(_){return _===null||_===34||_===39||_===47||_===60||_===61||_===62||_===96||vt(_)?te(_):(n.consume(_),ee)}function fe(_){return _===47||_===62||$e(_)?H(_):r(_)}function z(_){return _===62?(n.consume(_),se):r(_)}function se(_){return _===null||we(_)?re(_):$e(_)?(n.consume(_),se):r(_)}function re(_){return _===45&&s===2?(n.consume(_),Y):_===60&&s===1?(n.consume(_),G):_===62&&s===4?(n.consume(_),Be):_===63&&s===3?(n.consume(_),S):_===93&&s===5?(n.consume(_),ve):we(_)&&(s===6||s===7)?(n.exit("htmlFlowData"),n.check(kv,T,_e)(_)):_===null||we(_)?(n.exit("htmlFlowData"),_e(_)):(n.consume(_),re)}function _e(_){return n.check(Ev,oe,T)(_)}function oe(_){return n.enter("lineEnding"),n.consume(_),n.exit("lineEnding"),X}function X(_){return _===null||we(_)?_e(_):(n.enter("htmlFlowData"),re(_))}function Y(_){return _===45?(n.consume(_),S):re(_)}function G(_){return _===47?(n.consume(_),u="",K):re(_)}function K(_){if(_===62){const J=u.toLowerCase();return Ud.includes(J)?(n.consume(_),Be):re(_)}return bn(_)&&u.length<8?(n.consume(_),u+=String.fromCharCode(_),K):re(_)}function ve(_){return _===93?(n.consume(_),S):re(_)}function S(_){return _===62?(n.consume(_),Be):_===45&&s===2?(n.consume(_),S):re(_)}function Be(_){return _===null||we(_)?(n.exit("htmlFlowData"),T(_)):(n.consume(_),Be)}function T(_){return n.exit("htmlFlow"),a(_)}}function Sv(n,a,r){const o=this;return s;function s(u){return we(u)?(n.enter("lineEnding"),n.consume(u),n.exit("lineEnding"),f):r(u)}function f(u){return o.parser.lazy[o.now().line]?r(u):a(u)}}function wv(n,a,r){return o;function o(s){return n.enter("lineEnding"),n.consume(s),n.exit("lineEnding"),n.attempt($r,a,r)}}const Tv={name:"htmlText",tokenize:Av};function Av(n,a,r){const o=this;let s,f,u;return g;function g(S){return n.enter("htmlText"),n.enter("htmlTextData"),n.consume(S),m}function m(S){return S===33?(n.consume(S),p):S===47?(n.consume(S),te):S===63?(n.consume(S),H):bn(S)?(n.consume(S),ee):r(S)}function p(S){return S===45?(n.consume(S),b):S===91?(n.consume(S),f=0,x):bn(S)?(n.consume(S),q):r(S)}function b(S){return S===45?(n.consume(S),k):r(S)}function h(S){return S===null?r(S):S===45?(n.consume(S),v):we(S)?(u=h,G(S)):(n.consume(S),h)}function v(S){return S===45?(n.consume(S),k):h(S)}function k(S){return S===62?Y(S):S===45?v(S):h(S)}function x(S){const Be="CDATA[";return S===Be.charCodeAt(f++)?(n.consume(S),f===Be.length?C:x):r(S)}function C(S){return S===null?r(S):S===93?(n.consume(S),M):we(S)?(u=C,G(S)):(n.consume(S),C)}function M(S){return S===93?(n.consume(S),w):C(S)}function w(S){return S===62?Y(S):S===93?(n.consume(S),w):C(S)}function q(S){return S===null||S===62?Y(S):we(S)?(u=q,G(S)):(n.consume(S),q)}function H(S){return S===null?r(S):S===63?(n.consume(S),Q):we(S)?(u=H,G(S)):(n.consume(S),H)}function Q(S){return S===62?Y(S):H(S)}function te(S){return bn(S)?(n.consume(S),L):r(S)}function L(S){return S===45||un(S)?(n.consume(S),L):ce(S)}function ce(S){return we(S)?(u=ce,G(S)):$e(S)?(n.consume(S),ce):Y(S)}function ee(S){return S===45||un(S)?(n.consume(S),ee):S===47||S===62||vt(S)?fe(S):r(S)}function fe(S){return S===47?(n.consume(S),Y):S===58||S===95||bn(S)?(n.consume(S),z):we(S)?(u=fe,G(S)):$e(S)?(n.consume(S),fe):Y(S)}function z(S){return S===45||S===46||S===58||S===95||un(S)?(n.consume(S),z):se(S)}function se(S){return S===61?(n.consume(S),re):we(S)?(u=se,G(S)):$e(S)?(n.consume(S),se):fe(S)}function re(S){return S===null||S===60||S===61||S===62||S===96?r(S):S===34||S===39?(n.consume(S),s=S,_e):we(S)?(u=re,G(S)):$e(S)?(n.consume(S),re):(n.consume(S),oe)}function _e(S){return S===s?(n.consume(S),s=void 0,X):S===null?r(S):we(S)?(u=_e,G(S)):(n.consume(S),_e)}function oe(S){return S===null||S===34||S===39||S===60||S===61||S===96?r(S):S===47||S===62||vt(S)?fe(S):(n.consume(S),oe)}function X(S){return S===47||S===62||vt(S)?fe(S):r(S)}function Y(S){return S===62?(n.consume(S),n.exit("htmlTextData"),n.exit("htmlText"),a):r(S)}function G(S){return n.exit("htmlTextData"),n.enter("lineEnding"),n.consume(S),n.exit("lineEnding"),K}function K(S){return $e(S)?tt(n,ve,"linePrefix",o.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(S):ve(S)}function ve(S){return n.enter("htmlTextData"),u(S)}}const ac={name:"labelEnd",resolveAll:Mv,resolveTo:Rv,tokenize:Dv},Nv={tokenize:Lv},Cv={tokenize:zv},Ov={tokenize:Iv};function Mv(n){let a=-1;const r=[];for(;++a<n.length;){const o=n[a][1];if(r.push(n[a]),o.type==="labelImage"||o.type==="labelLink"||o.type==="labelEnd"){const s=o.type==="labelImage"?4:2;o.type="data",a+=s}}return n.length!==r.length&&Ln(n,0,n.length,r),n}function Rv(n,a){let r=n.length,o=0,s,f,u,g;for(;r--;)if(s=n[r][1],f){if(s.type==="link"||s.type==="labelLink"&&s._inactive)break;n[r][0]==="enter"&&s.type==="labelLink"&&(s._inactive=!0)}else if(u){if(n[r][0]==="enter"&&(s.type==="labelImage"||s.type==="labelLink")&&!s._balanced&&(f=r,s.type!=="labelLink")){o=2;break}}else s.type==="labelEnd"&&(u=r);const m={type:n[f][1].type==="labelLink"?"link":"image",start:{...n[f][1].start},end:{...n[n.length-1][1].end}},p={type:"label",start:{...n[f][1].start},end:{...n[u][1].end}},b={type:"labelText",start:{...n[f+o+2][1].end},end:{...n[u-2][1].start}};return g=[["enter",m,a],["enter",p,a]],g=Pn(g,n.slice(f+1,f+o+3)),g=Pn(g,[["enter",b,a]]),g=Pn(g,Jl(a.parser.constructs.insideSpan.null,n.slice(f+o+4,u-3),a)),g=Pn(g,[["exit",b,a],n[u-2],n[u-1],["exit",p,a]]),g=Pn(g,n.slice(u+1)),g=Pn(g,[["exit",m,a]]),Ln(n,f,n.length,g),n}function Dv(n,a,r){const o=this;let s=o.events.length,f,u;for(;s--;)if((o.events[s][1].type==="labelImage"||o.events[s][1].type==="labelLink")&&!o.events[s][1]._balanced){f=o.events[s][1];break}return g;function g(v){return f?f._inactive?h(v):(u=o.parser.defined.includes(li(o.sliceSerialize({start:f.end,end:o.now()}))),n.enter("labelEnd"),n.enter("labelMarker"),n.consume(v),n.exit("labelMarker"),n.exit("labelEnd"),m):r(v)}function m(v){return v===40?n.attempt(Nv,b,u?b:h)(v):v===91?n.attempt(Cv,b,u?p:h)(v):u?b(v):h(v)}function p(v){return n.attempt(Ov,b,h)(v)}function b(v){return a(v)}function h(v){return f._balanced=!0,r(v)}}function Lv(n,a,r){return o;function o(h){return n.enter("resource"),n.enter("resourceMarker"),n.consume(h),n.exit("resourceMarker"),s}function s(h){return vt(h)?Xr(n,f)(h):f(h)}function f(h){return h===41?b(h):zd(n,u,g,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(h)}function u(h){return vt(h)?Xr(n,m)(h):b(h)}function g(h){return r(h)}function m(h){return h===34||h===39||h===40?Bd(n,p,r,"resourceTitle","resourceTitleMarker","resourceTitleString")(h):b(h)}function p(h){return vt(h)?Xr(n,b)(h):b(h)}function b(h){return h===41?(n.enter("resourceMarker"),n.consume(h),n.exit("resourceMarker"),n.exit("resource"),a):r(h)}}function zv(n,a,r){const o=this;return s;function s(g){return Id.call(o,n,f,u,"reference","referenceMarker","referenceString")(g)}function f(g){return o.parser.defined.includes(li(o.sliceSerialize(o.events[o.events.length-1][1]).slice(1,-1)))?a(g):r(g)}function u(g){return r(g)}}function Iv(n,a,r){return o;function o(f){return n.enter("reference"),n.enter("referenceMarker"),n.consume(f),n.exit("referenceMarker"),s}function s(f){return f===93?(n.enter("referenceMarker"),n.consume(f),n.exit("referenceMarker"),n.exit("reference"),a):r(f)}}const Bv={name:"labelStartImage",resolveAll:ac.resolveAll,tokenize:Uv};function Uv(n,a,r){const o=this;return s;function s(g){return n.enter("labelImage"),n.enter("labelImageMarker"),n.consume(g),n.exit("labelImageMarker"),f}function f(g){return g===91?(n.enter("labelMarker"),n.consume(g),n.exit("labelMarker"),n.exit("labelImage"),u):r(g)}function u(g){return g===94&&"_hiddenFootnoteSupport"in o.parser.constructs?r(g):a(g)}}const Hv={name:"labelStartLink",resolveAll:ac.resolveAll,tokenize:qv};function qv(n,a,r){const o=this;return s;function s(u){return n.enter("labelLink"),n.enter("labelMarker"),n.consume(u),n.exit("labelMarker"),n.exit("labelLink"),f}function f(u){return u===94&&"_hiddenFootnoteSupport"in o.parser.constructs?r(u):a(u)}}const rc={name:"lineEnding",tokenize:Fv};function Fv(n,a){return r;function r(o){return n.enter("lineEnding"),n.consume(o),n.exit("lineEnding"),tt(n,a,"linePrefix")}}const Wl={name:"thematicBreak",tokenize:Gv};function Gv(n,a,r){let o=0,s;return f;function f(p){return n.enter("thematicBreak"),u(p)}function u(p){return s=p,g(p)}function g(p){return p===s?(n.enter("thematicBreakSequence"),m(p)):o>=3&&(p===null||we(p))?(n.exit("thematicBreak"),a(p)):r(p)}function m(p){return p===s?(n.consume(p),o++,m):(n.exit("thematicBreakSequence"),$e(p)?tt(n,g,"whitespace")(p):g(p))}}const xn={continuation:{tokenize:Kv},exit:$v,name:"list",tokenize:Pv},jv={partial:!0,tokenize:Zv},Yv={partial:!0,tokenize:Vv};function Pv(n,a,r){const o=this,s=o.events[o.events.length-1];let f=s&&s[1].type==="linePrefix"?s[2].sliceSerialize(s[1],!0).length:0,u=0;return g;function g(k){const x=o.containerState.type||(k===42||k===43||k===45?"listUnordered":"listOrdered");if(x==="listUnordered"?!o.containerState.marker||k===o.containerState.marker:tc(k)){if(o.containerState.type||(o.containerState.type=x,n.enter(x,{_container:!0})),x==="listUnordered")return n.enter("listItemPrefix"),k===42||k===45?n.check(Wl,r,p)(k):p(k);if(!o.interrupt||k===49)return n.enter("listItemPrefix"),n.enter("listItemValue"),m(k)}return r(k)}function m(k){return tc(k)&&++u<10?(n.consume(k),m):(!o.interrupt||u<2)&&(o.containerState.marker?k===o.containerState.marker:k===41||k===46)?(n.exit("listItemValue"),p(k)):r(k)}function p(k){return n.enter("listItemMarker"),n.consume(k),n.exit("listItemMarker"),o.containerState.marker=o.containerState.marker||k,n.check($r,o.interrupt?r:b,n.attempt(jv,v,h))}function b(k){return o.containerState.initialBlankLine=!0,f++,v(k)}function h(k){return $e(k)?(n.enter("listItemPrefixWhitespace"),n.consume(k),n.exit("listItemPrefixWhitespace"),v):r(k)}function v(k){return o.containerState.size=f+o.sliceSerialize(n.exit("listItemPrefix"),!0).length,a(k)}}function Kv(n,a,r){const o=this;return o.containerState._closeFlow=void 0,n.check($r,s,f);function s(g){return o.containerState.furtherBlankLines=o.containerState.furtherBlankLines||o.containerState.initialBlankLine,tt(n,a,"listItemIndent",o.containerState.size+1)(g)}function f(g){return o.containerState.furtherBlankLines||!$e(g)?(o.containerState.furtherBlankLines=void 0,o.containerState.initialBlankLine=void 0,u(g)):(o.containerState.furtherBlankLines=void 0,o.containerState.initialBlankLine=void 0,n.attempt(Yv,a,u)(g))}function u(g){return o.containerState._closeFlow=!0,o.interrupt=void 0,tt(n,n.attempt(xn,a,r),"linePrefix",o.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(g)}}function Vv(n,a,r){const o=this;return tt(n,s,"listItemIndent",o.containerState.size+1);function s(f){const u=o.events[o.events.length-1];return u&&u[1].type==="listItemIndent"&&u[2].sliceSerialize(u[1],!0).length===o.containerState.size?a(f):r(f)}}function $v(n){n.exit(this.containerState.type)}function Zv(n,a,r){const o=this;return tt(n,s,"listItemPrefixWhitespace",o.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function s(f){const u=o.events[o.events.length-1];return!$e(f)&&u&&u[1].type==="listItemPrefixWhitespace"?a(f):r(f)}}const Hd={name:"setextUnderline",resolveTo:Xv,tokenize:Qv};function Xv(n,a){let r=n.length,o,s,f;for(;r--;)if(n[r][0]==="enter"){if(n[r][1].type==="content"){o=r;break}n[r][1].type==="paragraph"&&(s=r)}else n[r][1].type==="content"&&n.splice(r,1),!f&&n[r][1].type==="definition"&&(f=r);const u={type:"setextHeading",start:{...n[o][1].start},end:{...n[n.length-1][1].end}};return n[s][1].type="setextHeadingText",f?(n.splice(s,0,["enter",u,a]),n.splice(f+1,0,["exit",n[o][1],a]),n[o][1].end={...n[f][1].end}):n[o][1]=u,n.push(["exit",u,a]),n}function Qv(n,a,r){const o=this;let s;return f;function f(p){let b=o.events.length,h;for(;b--;)if(o.events[b][1].type!=="lineEnding"&&o.events[b][1].type!=="linePrefix"&&o.events[b][1].type!=="content"){h=o.events[b][1].type==="paragraph";break}return!o.parser.lazy[o.now().line]&&(o.interrupt||h)?(n.enter("setextHeadingLine"),s=p,u(p)):r(p)}function u(p){return n.enter("setextHeadingLineSequence"),g(p)}function g(p){return p===s?(n.consume(p),g):(n.exit("setextHeadingLineSequence"),$e(p)?tt(n,m,"lineSuffix")(p):m(p))}function m(p){return p===null||we(p)?(n.exit("setextHeadingLine"),a(p)):r(p)}}const Jv={tokenize:Wv};function Wv(n){const a=this,r=n.attempt($r,o,n.attempt(this.parser.constructs.flowInitial,s,tt(n,n.attempt(this.parser.constructs.flow,s,n.attempt(av,s)),"linePrefix")));return r;function o(f){if(f===null){n.consume(f);return}return n.enter("lineEndingBlank"),n.consume(f),n.exit("lineEndingBlank"),a.currentConstruct=void 0,r}function s(f){if(f===null){n.consume(f);return}return n.enter("lineEnding"),n.consume(f),n.exit("lineEnding"),a.currentConstruct=void 0,r}}const ek={resolveAll:Fd()},tk=qd("string"),nk=qd("text");function qd(n){return{resolveAll:Fd(n==="text"?ik:void 0),tokenize:a};function a(r){const o=this,s=this.parser.constructs[n],f=r.attempt(s,u,g);return u;function u(b){return p(b)?f(b):g(b)}function g(b){if(b===null){r.consume(b);return}return r.enter("data"),r.consume(b),m}function m(b){return p(b)?(r.exit("data"),f(b)):(r.consume(b),m)}function p(b){if(b===null)return!0;const h=s[b];let v=-1;if(h)for(;++v<h.length;){const k=h[v];if(!k.previous||k.previous.call(o,o.previous))return!0}return!1}}}function Fd(n){return a;function a(r,o){let s=-1,f;for(;++s<=r.length;)f===void 0?r[s]&&r[s][1].type==="data"&&(f=s,s++):(!r[s]||r[s][1].type!=="data")&&(s!==f+2&&(r[f][1].end=r[s-1][1].end,r.splice(f+2,s-f-2),s=f+2),f=void 0);return n?n(r,o):r}}function ik(n,a){let r=0;for(;++r<=n.length;)if((r===n.length||n[r][1].type==="lineEnding")&&n[r-1][1].type==="data"){const o=n[r-1][1],s=a.sliceStream(o);let f=s.length,u=-1,g=0,m;for(;f--;){const p=s[f];if(typeof p=="string"){for(u=p.length;p.charCodeAt(u-1)===32;)g++,u--;if(u)break;u=-1}else if(p===-2)m=!0,g++;else if(p!==-1){f++;break}}if(a._contentTypeTextTrailing&&r===n.length&&(g=0),g){const p={type:r===n.length||m||g<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:f?u:o.start._bufferIndex+u,_index:o.start._index+f,line:o.end.line,column:o.end.column-g,offset:o.end.offset-g},end:{...o.end}};o.end={...p.start},o.start.offset===o.end.offset?Object.assign(o,p):(n.splice(r,0,["enter",p,a],["exit",p,a]),r+=2)}r++}return n}const ak=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:{null:[42,95]},contentInitial:{91:cv},disable:{null:[]},document:{42:xn,43:xn,45:xn,48:xn,49:xn,50:xn,51:xn,52:xn,53:xn,54:xn,55:xn,56:xn,57:xn,62:Cd},flow:{35:mv,42:Wl,45:[Hd,Wl],60:vv,61:Hd,95:Wl,96:Dd,126:Dd},flowInitial:{[-2]:ic,[-1]:ic,32:ic},insideSpan:{null:[nc,ek]},string:{38:Md,92:Od},text:{[-5]:rc,[-4]:rc,[-3]:rc,33:Bv,38:Md,42:nc,60:[H0,Tv],91:Hv,92:[pv,Od],93:ac,95:nc,96:J0}},Symbol.toStringTag,{value:"Module"}));function rk(n,a,r){let o={_bufferIndex:-1,_index:0,line:r&&r.line||1,column:r&&r.column||1,offset:r&&r.offset||0};const s={},f=[];let u=[],g=[];const m={attempt:ce(te),check:ce(L),consume:q,enter:H,exit:Q,interrupt:ce(L,{interrupt:!0})},p={code:null,containerState:{},defineSkip:C,events:[],now:x,parser:n,previous:null,sliceSerialize:v,sliceStream:k,write:h};let b=a.tokenize.call(p,m);return a.resolveAll&&f.push(a),p;function h(se){return u=Pn(u,se),M(),u[u.length-1]!==null?[]:(ee(a,0),p.events=Jl(f,p.events,p),p.events)}function v(se,re){return ok(k(se),re)}function k(se){return lk(u,se)}function x(){const{_bufferIndex:se,_index:re,line:_e,column:oe,offset:X}=o;return{_bufferIndex:se,_index:re,line:_e,column:oe,offset:X}}function C(se){s[se.line]=se.column,z()}function M(){let se;for(;o._index<u.length;){const re=u[o._index];if(typeof re=="string")for(se=o._index,o._bufferIndex<0&&(o._bufferIndex=0);o._index===se&&o._bufferIndex<re.length;)w(re.charCodeAt(o._bufferIndex));else w(re)}}function w(se){b=b(se)}function q(se){we(se)?(o.line++,o.column=1,o.offset+=se===-3?2:1,z()):se!==-1&&(o.column++,o.offset++),o._bufferIndex<0?o._index++:(o._bufferIndex++,o._bufferIndex===u[o._index].length&&(o._bufferIndex=-1,o._index++)),p.previous=se}function H(se,re){const _e=re||{};return _e.type=se,_e.start=x(),p.events.push(["enter",_e,p]),g.push(_e),_e}function Q(se){const re=g.pop();return re.end=x(),p.events.push(["exit",re,p]),re}function te(se,re){ee(se,re.from)}function L(se,re){re.restore()}function ce(se,re){return _e;function _e(oe,X,Y){let G,K,ve,S;return Array.isArray(oe)?T(oe):"tokenize"in oe?T([oe]):Be(oe);function Be(de){return Ce;function Ce(Ue){const kt=Ue!==null&&de[Ue],Ke=Ue!==null&&de.null,gt=[...Array.isArray(kt)?kt:kt?[kt]:[],...Array.isArray(Ke)?Ke:Ke?[Ke]:[]];return T(gt)(Ue)}}function T(de){return G=de,K=0,de.length===0?Y:_(de[K])}function _(de){return Ce;function Ce(Ue){return S=fe(),ve=de,de.partial||(p.currentConstruct=de),de.name&&p.parser.constructs.disable.null.includes(de.name)?pe():de.tokenize.call(re?Object.assign(Object.create(p),re):p,m,J,pe)(Ue)}}function J(de){return se(ve,S),X}function pe(de){return S.restore(),++K<G.length?_(G[K]):Y}}}function ee(se,re){se.resolveAll&&!f.includes(se)&&f.push(se),se.resolve&&Ln(p.events,re,p.events.length-re,se.resolve(p.events.slice(re),p)),se.resolveTo&&(p.events=se.resolveTo(p.events,p))}function fe(){const se=x(),re=p.previous,_e=p.currentConstruct,oe=p.events.length,X=Array.from(g);return{from:oe,restore:Y};function Y(){o=se,p.previous=re,p.currentConstruct=_e,p.events.length=oe,g=X,z()}}function z(){o.line in s&&o.column<2&&(o.column=s[o.line],o.offset+=s[o.line]-1)}}function lk(n,a){const r=a.start._index,o=a.start._bufferIndex,s=a.end._index,f=a.end._bufferIndex;let u;if(r===s)u=[n[r].slice(o,f)];else{if(u=n.slice(r,s),o>-1){const g=u[0];typeof g=="string"?u[0]=g.slice(o):u.shift()}f>0&&u.push(n[s].slice(0,f))}return u}function ok(n,a){let r=-1;const o=[];let s;for(;++r<n.length;){const f=n[r];let u;if(typeof f=="string")u=f;else switch(f){case-5:{u="\r";break}case-4:{u=`
11
- `;break}case-3:{u=`\r
12
- `;break}case-2:{u=a?" ":" ";break}case-1:{if(!a&&s)continue;u=" ";break}default:u=String.fromCharCode(f)}s=f===-2,o.push(u)}return o.join("")}function sk(n){const o={constructs:wd([ak,...(n||{}).extensions||[]]),content:s(R0),defined:[],document:s(L0),flow:s(Jv),lazy:{},string:s(tk),text:s(nk)};return o;function s(f){return u;function u(g){return rk(o,f,g)}}}function ck(n){for(;!Ld(n););return n}const Gd=/[\0\t\n\r]/g;function uk(){let n=1,a="",r=!0,o;return s;function s(f,u,g){const m=[];let p,b,h,v,k;for(f=a+(typeof f=="string"?f.toString():new TextDecoder(u||void 0).decode(f)),h=0,a="",r&&(f.charCodeAt(0)===65279&&h++,r=void 0);h<f.length;){if(Gd.lastIndex=h,p=Gd.exec(f),v=p&&p.index!==void 0?p.index:f.length,k=f.charCodeAt(v),!p){a=f.slice(h);break}if(k===10&&h===v&&o)m.push(-3),o=void 0;else switch(o&&(m.push(-5),o=void 0),h<v&&(m.push(f.slice(h,v)),n+=v-h),k){case 0:{m.push(65533),n++;break}case 9:{for(b=Math.ceil(n/4)*4,m.push(-2);n++<b;)m.push(-1);break}case 10:{m.push(-4),n=1;break}default:o=!0,n=1}h=v+1}return g&&(o&&m.push(-5),a&&m.push(a),m.push(null)),m}}const fk=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function dk(n){return n.replace(fk,pk)}function pk(n,a,r){if(a)return a;if(r.charCodeAt(0)===35){const s=r.charCodeAt(1),f=s===120||s===88;return Td(r.slice(f?2:1),f?16:10)}return ec(r)||n}const jd={}.hasOwnProperty;function gk(n,a,r){return a&&typeof a=="object"&&(r=a,a=void 0),mk(r)(ck(sk(r).document().write(uk()(n,a,!0))))}function mk(n){const a={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:f(Vn),autolinkProtocol:fe,autolinkEmail:fe,atxHeading:f(en),blockQuote:f(Ke),characterEscape:fe,characterReference:fe,codeFenced:f(gt),codeFencedFenceInfo:u,codeFencedFenceMeta:u,codeIndented:f(gt,u),codeText:f(zn,u),codeTextData:fe,data:fe,codeFlowValue:fe,definition:f(Vt),definitionDestinationString:u,definitionLabelString:u,definitionTitleString:u,emphasis:f(bi),hardBreakEscape:f(Ve),hardBreakTrailing:f(Ve),htmlFlow:f(Qt,u),htmlFlowData:fe,htmlText:f(Qt,u),htmlTextData:fe,image:f(Sn),label:u,link:f(Vn),listItem:f(Ni),listItemValue:v,listOrdered:f(In,h),listUnordered:f(In),paragraph:f(Bn),reference:_,referenceString:u,resourceDestinationString:u,resourceTitleString:u,setextHeading:f(en),strong:f($n),thematicBreak:f(lt)},exit:{atxHeading:m(),atxHeadingSequence:te,autolink:m(),autolinkEmail:kt,autolinkProtocol:Ue,blockQuote:m(),characterEscapeValue:z,characterReferenceMarkerHexadecimal:pe,characterReferenceMarkerNumeric:pe,characterReferenceValue:de,characterReference:Ce,codeFenced:m(M),codeFencedFence:C,codeFencedFenceInfo:k,codeFencedFenceMeta:x,codeFlowValue:z,codeIndented:m(w),codeText:m(X),codeTextData:z,data:z,definition:m(),definitionDestinationString:Q,definitionLabelString:q,definitionTitleString:H,emphasis:m(),hardBreakEscape:m(re),hardBreakTrailing:m(re),htmlFlow:m(_e),htmlFlowData:z,htmlText:m(oe),htmlTextData:z,image:m(G),label:ve,labelText:K,lineEnding:se,link:m(Y),listItem:m(),listOrdered:m(),listUnordered:m(),paragraph:m(),referenceString:J,resourceDestinationString:S,resourceTitleString:Be,resource:T,setextHeading:m(ee),setextHeadingLineSequence:ce,setextHeadingText:L,strong:m(),thematicBreak:m()}};Yd(a,(n||{}).mdastExtensions||[]);const r={};return o;function o(j){let ae={type:"root",children:[]};const Ae={stack:[ae],tokenStack:[],config:a,enter:g,exit:p,buffer:u,resume:b,data:r},qe=[];let nt=-1;for(;++nt<j.length;)if(j[nt][1].type==="listOrdered"||j[nt][1].type==="listUnordered")if(j[nt][0]==="enter")qe.push(nt);else{const $t=qe.pop();nt=s(j,$t,nt)}for(nt=-1;++nt<j.length;){const $t=a[j[nt][0]];jd.call($t,j[nt][1].type)&&$t[j[nt][1].type].call(Object.assign({sliceSerialize:j[nt][2].sliceSerialize},Ae),j[nt][1])}if(Ae.tokenStack.length>0){const $t=Ae.tokenStack[Ae.tokenStack.length-1];($t[1]||Pd).call(Ae,void 0,$t[0])}for(ae.position={start:Ji(j.length>0?j[0][1].start:{line:1,column:1,offset:0}),end:Ji(j.length>0?j[j.length-2][1].end:{line:1,column:1,offset:0})},nt=-1;++nt<a.transforms.length;)ae=a.transforms[nt](ae)||ae;return ae}function s(j,ae,Ae){let qe=ae-1,nt=-1,$t=!1,dn,tn,Jt,xt;for(;++qe<=Ae;){const Et=j[qe];switch(Et[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{Et[0]==="enter"?nt++:nt--,xt=void 0;break}case"lineEndingBlank":{Et[0]==="enter"&&(dn&&!xt&&!nt&&!Jt&&(Jt=qe),xt=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:xt=void 0}if(!nt&&Et[0]==="enter"&&Et[1].type==="listItemPrefix"||nt===-1&&Et[0]==="exit"&&(Et[1].type==="listUnordered"||Et[1].type==="listOrdered")){if(dn){let St=qe;for(tn=void 0;St--;){const nn=j[St];if(nn[1].type==="lineEnding"||nn[1].type==="lineEndingBlank"){if(nn[0]==="exit")continue;tn&&(j[tn][1].type="lineEndingBlank",$t=!0),nn[1].type="lineEnding",tn=St}else if(!(nn[1].type==="linePrefix"||nn[1].type==="blockQuotePrefix"||nn[1].type==="blockQuotePrefixWhitespace"||nn[1].type==="blockQuoteMarker"||nn[1].type==="listItemIndent"))break}Jt&&(!tn||Jt<tn)&&(dn._spread=!0),dn.end=Object.assign({},tn?j[tn][1].start:Et[1].end),j.splice(tn||qe,0,["exit",dn,Et[2]]),qe++,Ae++}if(Et[1].type==="listItemPrefix"){const St={type:"listItem",_spread:!1,start:Object.assign({},Et[1].start),end:void 0};dn=St,j.splice(qe,0,["enter",St,Et[2]]),qe++,Ae++,Jt=void 0,xt=!0}}}return j[ae][1]._spread=$t,Ae}function f(j,ae){return Ae;function Ae(qe){g.call(this,j(qe),qe),ae&&ae.call(this,qe)}}function u(){this.stack.push({type:"fragment",children:[]})}function g(j,ae,Ae){this.stack[this.stack.length-1].children.push(j),this.stack.push(j),this.tokenStack.push([ae,Ae||void 0]),j.position={start:Ji(ae.start),end:void 0}}function m(j){return ae;function ae(Ae){j&&j.call(this,Ae),p.call(this,Ae)}}function p(j,ae){const Ae=this.stack.pop(),qe=this.tokenStack.pop();if(qe)qe[0].type!==j.type&&(ae?ae.call(this,j,qe[0]):(qe[1]||Pd).call(this,j,qe[0]));else throw new Error("Cannot close `"+j.type+"` ("+Kr({start:j.start,end:j.end})+"): it’s not open");Ae.position.end=Ji(j.end)}function b(){return Ws(this.stack.pop())}function h(){this.data.expectingFirstListItemValue=!0}function v(j){if(this.data.expectingFirstListItemValue){const ae=this.stack[this.stack.length-2];ae.start=Number.parseInt(this.sliceSerialize(j),10),this.data.expectingFirstListItemValue=void 0}}function k(){const j=this.resume(),ae=this.stack[this.stack.length-1];ae.lang=j}function x(){const j=this.resume(),ae=this.stack[this.stack.length-1];ae.meta=j}function C(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function M(){const j=this.resume(),ae=this.stack[this.stack.length-1];ae.value=j.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function w(){const j=this.resume(),ae=this.stack[this.stack.length-1];ae.value=j.replace(/(\r?\n|\r)$/g,"")}function q(j){const ae=this.resume(),Ae=this.stack[this.stack.length-1];Ae.label=ae,Ae.identifier=li(this.sliceSerialize(j)).toLowerCase()}function H(){const j=this.resume(),ae=this.stack[this.stack.length-1];ae.title=j}function Q(){const j=this.resume(),ae=this.stack[this.stack.length-1];ae.url=j}function te(j){const ae=this.stack[this.stack.length-1];if(!ae.depth){const Ae=this.sliceSerialize(j).length;ae.depth=Ae}}function L(){this.data.setextHeadingSlurpLineEnding=!0}function ce(j){const ae=this.stack[this.stack.length-1];ae.depth=this.sliceSerialize(j).codePointAt(0)===61?1:2}function ee(){this.data.setextHeadingSlurpLineEnding=void 0}function fe(j){const Ae=this.stack[this.stack.length-1].children;let qe=Ae[Ae.length-1];(!qe||qe.type!=="text")&&(qe=Rt(),qe.position={start:Ji(j.start),end:void 0},Ae.push(qe)),this.stack.push(qe)}function z(j){const ae=this.stack.pop();ae.value+=this.sliceSerialize(j),ae.position.end=Ji(j.end)}function se(j){const ae=this.stack[this.stack.length-1];if(this.data.atHardBreak){const Ae=ae.children[ae.children.length-1];Ae.position.end=Ji(j.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&a.canContainEols.includes(ae.type)&&(fe.call(this,j),z.call(this,j))}function re(){this.data.atHardBreak=!0}function _e(){const j=this.resume(),ae=this.stack[this.stack.length-1];ae.value=j}function oe(){const j=this.resume(),ae=this.stack[this.stack.length-1];ae.value=j}function X(){const j=this.resume(),ae=this.stack[this.stack.length-1];ae.value=j}function Y(){const j=this.stack[this.stack.length-1];if(this.data.inReference){const ae=this.data.referenceType||"shortcut";j.type+="Reference",j.referenceType=ae,delete j.url,delete j.title}else delete j.identifier,delete j.label;this.data.referenceType=void 0}function G(){const j=this.stack[this.stack.length-1];if(this.data.inReference){const ae=this.data.referenceType||"shortcut";j.type+="Reference",j.referenceType=ae,delete j.url,delete j.title}else delete j.identifier,delete j.label;this.data.referenceType=void 0}function K(j){const ae=this.sliceSerialize(j),Ae=this.stack[this.stack.length-2];Ae.label=dk(ae),Ae.identifier=li(ae).toLowerCase()}function ve(){const j=this.stack[this.stack.length-1],ae=this.resume(),Ae=this.stack[this.stack.length-1];if(this.data.inReference=!0,Ae.type==="link"){const qe=j.children;Ae.children=qe}else Ae.alt=ae}function S(){const j=this.resume(),ae=this.stack[this.stack.length-1];ae.url=j}function Be(){const j=this.resume(),ae=this.stack[this.stack.length-1];ae.title=j}function T(){this.data.inReference=void 0}function _(){this.data.referenceType="collapsed"}function J(j){const ae=this.resume(),Ae=this.stack[this.stack.length-1];Ae.label=ae,Ae.identifier=li(this.sliceSerialize(j)).toLowerCase(),this.data.referenceType="full"}function pe(j){this.data.characterReferenceType=j.type}function de(j){const ae=this.sliceSerialize(j),Ae=this.data.characterReferenceType;let qe;Ae?(qe=Td(ae,Ae==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):qe=ec(ae);const nt=this.stack[this.stack.length-1];nt.value+=qe}function Ce(j){const ae=this.stack.pop();ae.position.end=Ji(j.end)}function Ue(j){z.call(this,j);const ae=this.stack[this.stack.length-1];ae.url=this.sliceSerialize(j)}function kt(j){z.call(this,j);const ae=this.stack[this.stack.length-1];ae.url="mailto:"+this.sliceSerialize(j)}function Ke(){return{type:"blockquote",children:[]}}function gt(){return{type:"code",lang:null,meta:null,value:""}}function zn(){return{type:"inlineCode",value:""}}function Vt(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function bi(){return{type:"emphasis",children:[]}}function en(){return{type:"heading",depth:0,children:[]}}function Ve(){return{type:"break"}}function Qt(){return{type:"html",value:""}}function Sn(){return{type:"image",title:null,url:"",alt:null}}function Vn(){return{type:"link",title:null,url:"",children:[]}}function In(j){return{type:"list",ordered:j.type==="listOrdered",start:null,spread:j._spread,children:[]}}function Ni(j){return{type:"listItem",spread:j._spread,checked:null,children:[]}}function Bn(){return{type:"paragraph",children:[]}}function $n(){return{type:"strong",children:[]}}function Rt(){return{type:"text",value:""}}function lt(){return{type:"thematicBreak"}}}function Ji(n){return{line:n.line,column:n.column,offset:n.offset}}function Yd(n,a){let r=-1;for(;++r<a.length;){const o=a[r];Array.isArray(o)?Yd(n,o):hk(n,o)}}function hk(n,a){let r;for(r in a)if(jd.call(a,r))switch(r){case"canContainEols":{const o=a[r];o&&n[r].push(...o);break}case"transforms":{const o=a[r];o&&n[r].push(...o);break}case"enter":case"exit":{const o=a[r];o&&Object.assign(n[r],o);break}}}function Pd(n,a){throw n?new Error("Cannot close `"+n.type+"` ("+Kr({start:n.start,end:n.end})+"): a different token (`"+a.type+"`, "+Kr({start:a.start,end:a.end})+") is open"):new Error("Cannot close document, a token (`"+a.type+"`, "+Kr({start:a.start,end:a.end})+") is still open")}function bk(n){const a=this;a.parser=r;function r(o){return gk(o,{...a.data("settings"),...n,extensions:a.data("micromarkExtensions")||[],mdastExtensions:a.data("fromMarkdownExtensions")||[]})}}function yk(n,a){const r={type:"element",tagName:"blockquote",properties:{},children:n.wrap(n.all(a),!0)};return n.patch(a,r),n.applyData(a,r)}function vk(n,a){const r={type:"element",tagName:"br",properties:{},children:[]};return n.patch(a,r),[n.applyData(a,r),{type:"text",value:`
13
- `}]}function kk(n,a){const r=a.value?a.value+`
14
- `:"",o={},s=a.lang?a.lang.split(/\s+/):[];s.length>0&&(o.className=["language-"+s[0]]);let f={type:"element",tagName:"code",properties:o,children:[{type:"text",value:r}]};return a.meta&&(f.data={meta:a.meta}),n.patch(a,f),f=n.applyData(a,f),f={type:"element",tagName:"pre",properties:{},children:[f]},n.patch(a,f),f}function Ek(n,a){const r={type:"element",tagName:"del",properties:{},children:n.all(a)};return n.patch(a,r),n.applyData(a,r)}function _k(n,a){const r={type:"element",tagName:"em",properties:{},children:n.all(a)};return n.patch(a,r),n.applyData(a,r)}function xk(n,a){const r=typeof n.options.clobberPrefix=="string"?n.options.clobberPrefix:"user-content-",o=String(a.identifier).toUpperCase(),s=tr(o.toLowerCase()),f=n.footnoteOrder.indexOf(o);let u,g=n.footnoteCounts.get(o);g===void 0?(g=0,n.footnoteOrder.push(o),u=n.footnoteOrder.length):u=f+1,g+=1,n.footnoteCounts.set(o,g);const m={type:"element",tagName:"a",properties:{href:"#"+r+"fn-"+s,id:r+"fnref-"+s+(g>1?"-"+g:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(u)}]};n.patch(a,m);const p={type:"element",tagName:"sup",properties:{},children:[m]};return n.patch(a,p),n.applyData(a,p)}function Sk(n,a){const r={type:"element",tagName:"h"+a.depth,properties:{},children:n.all(a)};return n.patch(a,r),n.applyData(a,r)}function wk(n,a){if(n.options.allowDangerousHtml){const r={type:"raw",value:a.value};return n.patch(a,r),n.applyData(a,r)}}function Kd(n,a){const r=a.referenceType;let o="]";if(r==="collapsed"?o+="[]":r==="full"&&(o+="["+(a.label||a.identifier)+"]"),a.type==="imageReference")return[{type:"text",value:"!["+a.alt+o}];const s=n.all(a),f=s[0];f&&f.type==="text"?f.value="["+f.value:s.unshift({type:"text",value:"["});const u=s[s.length-1];return u&&u.type==="text"?u.value+=o:s.push({type:"text",value:o}),s}function Tk(n,a){const r=String(a.identifier).toUpperCase(),o=n.definitionById.get(r);if(!o)return Kd(n,a);const s={src:tr(o.url||""),alt:a.alt};o.title!==null&&o.title!==void 0&&(s.title=o.title);const f={type:"element",tagName:"img",properties:s,children:[]};return n.patch(a,f),n.applyData(a,f)}function Ak(n,a){const r={src:tr(a.url)};a.alt!==null&&a.alt!==void 0&&(r.alt=a.alt),a.title!==null&&a.title!==void 0&&(r.title=a.title);const o={type:"element",tagName:"img",properties:r,children:[]};return n.patch(a,o),n.applyData(a,o)}function Nk(n,a){const r={type:"text",value:a.value.replace(/\r?\n|\r/g," ")};n.patch(a,r);const o={type:"element",tagName:"code",properties:{},children:[r]};return n.patch(a,o),n.applyData(a,o)}function Ck(n,a){const r=String(a.identifier).toUpperCase(),o=n.definitionById.get(r);if(!o)return Kd(n,a);const s={href:tr(o.url||"")};o.title!==null&&o.title!==void 0&&(s.title=o.title);const f={type:"element",tagName:"a",properties:s,children:n.all(a)};return n.patch(a,f),n.applyData(a,f)}function Ok(n,a){const r={href:tr(a.url)};a.title!==null&&a.title!==void 0&&(r.title=a.title);const o={type:"element",tagName:"a",properties:r,children:n.all(a)};return n.patch(a,o),n.applyData(a,o)}function Mk(n,a,r){const o=n.all(a),s=r?Rk(r):Vd(a),f={},u=[];if(typeof a.checked=="boolean"){const b=o[0];let h;b&&b.type==="element"&&b.tagName==="p"?h=b:(h={type:"element",tagName:"p",properties:{},children:[]},o.unshift(h)),h.children.length>0&&h.children.unshift({type:"text",value:" "}),h.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:a.checked,disabled:!0},children:[]}),f.className=["task-list-item"]}let g=-1;for(;++g<o.length;){const b=o[g];(s||g!==0||b.type!=="element"||b.tagName!=="p")&&u.push({type:"text",value:`
15
- `}),b.type==="element"&&b.tagName==="p"&&!s?u.push(...b.children):u.push(b)}const m=o[o.length-1];m&&(s||m.type!=="element"||m.tagName!=="p")&&u.push({type:"text",value:`
16
- `});const p={type:"element",tagName:"li",properties:f,children:u};return n.patch(a,p),n.applyData(a,p)}function Rk(n){let a=!1;if(n.type==="list"){a=n.spread||!1;const r=n.children;let o=-1;for(;!a&&++o<r.length;)a=Vd(r[o])}return a}function Vd(n){const a=n.spread;return a??n.children.length>1}function Dk(n,a){const r={},o=n.all(a);let s=-1;for(typeof a.start=="number"&&a.start!==1&&(r.start=a.start);++s<o.length;){const u=o[s];if(u.type==="element"&&u.tagName==="li"&&u.properties&&Array.isArray(u.properties.className)&&u.properties.className.includes("task-list-item")){r.className=["contains-task-list"];break}}const f={type:"element",tagName:a.ordered?"ol":"ul",properties:r,children:n.wrap(o,!0)};return n.patch(a,f),n.applyData(a,f)}function Lk(n,a){const r={type:"element",tagName:"p",properties:{},children:n.all(a)};return n.patch(a,r),n.applyData(a,r)}function zk(n,a){const r={type:"root",children:n.wrap(n.all(a))};return n.patch(a,r),n.applyData(a,r)}function Ik(n,a){const r={type:"element",tagName:"strong",properties:{},children:n.all(a)};return n.patch(a,r),n.applyData(a,r)}function Bk(n,a){const r=n.all(a),o=r.shift(),s=[];if(o){const u={type:"element",tagName:"thead",properties:{},children:n.wrap([o],!0)};n.patch(a.children[0],u),s.push(u)}if(r.length>0){const u={type:"element",tagName:"tbody",properties:{},children:n.wrap(r,!0)},g=Vs(a.children[1]),m=pd(a.children[a.children.length-1]);g&&m&&(u.position={start:g,end:m}),s.push(u)}const f={type:"element",tagName:"table",properties:{},children:n.wrap(s,!0)};return n.patch(a,f),n.applyData(a,f)}function Uk(n,a,r){const o=r?r.children:void 0,f=(o?o.indexOf(a):1)===0?"th":"td",u=r&&r.type==="table"?r.align:void 0,g=u?u.length:a.children.length;let m=-1;const p=[];for(;++m<g;){const h=a.children[m],v={},k=u?u[m]:void 0;k&&(v.align=k);let x={type:"element",tagName:f,properties:v,children:[]};h&&(x.children=n.all(h),n.patch(h,x),x=n.applyData(h,x)),p.push(x)}const b={type:"element",tagName:"tr",properties:{},children:n.wrap(p,!0)};return n.patch(a,b),n.applyData(a,b)}function Hk(n,a){const r={type:"element",tagName:"td",properties:{},children:n.all(a)};return n.patch(a,r),n.applyData(a,r)}const $d=9,Zd=32;function qk(n){const a=String(n),r=/\r?\n|\r/g;let o=r.exec(a),s=0;const f=[];for(;o;)f.push(Xd(a.slice(s,o.index),s>0,!0),o[0]),s=o.index+o[0].length,o=r.exec(a);return f.push(Xd(a.slice(s),s>0,!1)),f.join("")}function Xd(n,a,r){let o=0,s=n.length;if(a){let f=n.codePointAt(o);for(;f===$d||f===Zd;)o++,f=n.codePointAt(o)}if(r){let f=n.codePointAt(s-1);for(;f===$d||f===Zd;)s--,f=n.codePointAt(s-1)}return s>o?n.slice(o,s):""}function Fk(n,a){const r={type:"text",value:qk(String(a.value))};return n.patch(a,r),n.applyData(a,r)}function Gk(n,a){const r={type:"element",tagName:"hr",properties:{},children:[]};return n.patch(a,r),n.applyData(a,r)}const jk={blockquote:yk,break:vk,code:kk,delete:Ek,emphasis:_k,footnoteReference:xk,heading:Sk,html:wk,imageReference:Tk,image:Ak,inlineCode:Nk,linkReference:Ck,link:Ok,listItem:Mk,list:Dk,paragraph:Lk,root:zk,strong:Ik,table:Bk,tableCell:Hk,tableRow:Uk,text:Fk,thematicBreak:Gk,toml:eo,yaml:eo,definition:eo,footnoteDefinition:eo};function eo(){}const Qd=-1,to=0,Qr=1,no=2,lc=3,oc=4,sc=5,cc=6,Jd=7,Wd=8,ep=typeof self=="object"?self:globalThis,tp=(n,a)=>{switch(n){case"Function":case"SharedWorker":case"Worker":case"eval":case"setInterval":case"setTimeout":throw new TypeError("unable to deserialize "+n)}return new ep[n](a)},Yk=(n,a)=>{const r=(s,f)=>(n.set(f,s),s),o=s=>{if(n.has(s))return n.get(s);const[f,u]=a[s];switch(f){case to:case Qd:return r(u,s);case Qr:{const g=r([],s);for(const m of u)g.push(o(m));return g}case no:{const g=r({},s);for(const[m,p]of u)g[o(m)]=o(p);return g}case lc:return r(new Date(u),s);case oc:{const{source:g,flags:m}=u;return r(new RegExp(g,m),s)}case sc:{const g=r(new Map,s);for(const[m,p]of u)g.set(o(m),o(p));return g}case cc:{const g=r(new Set,s);for(const m of u)g.add(o(m));return g}case Jd:{const{name:g,message:m}=u;return r(typeof ep[g]=="function"?tp(g,m):new Error(m),s)}case Wd:return r(BigInt(u),s);case"BigInt":return r(Object(BigInt(u)),s);case"ArrayBuffer":return r(new Uint8Array(u).buffer,u);case"DataView":{const{buffer:g}=new Uint8Array(u);return r(new DataView(g),u)}}return r(tp(f,u),s)};return o},np=n=>Yk(new Map,n)(0),Ma="",{toString:Pk}={},{keys:Kk}=Object,Jr=n=>{const a=typeof n;if(a!=="object"||!n)return[to,a];const r=Pk.call(n).slice(8,-1);switch(r){case"Array":return[Qr,Ma];case"Object":return[no,Ma];case"Date":return[lc,Ma];case"RegExp":return[oc,Ma];case"Map":return[sc,Ma];case"Set":return[cc,Ma];case"DataView":return[Qr,r]}return r.includes("Array")?[Qr,r]:n instanceof Error?[Jd,n.name||"Error"]:[no,r]},io=([n,a])=>n===to&&(a==="function"||a==="symbol"),Vk=(n,a,r,o)=>{const s=(u,g)=>{const m=o.push(u)-1;return r.set(g,m),m},f=u=>{if(r.has(u))return r.get(u);let[g,m]=Jr(u);switch(g){case to:{let b=u;switch(m){case"bigint":g=Wd,b=u.toString();break;case"function":case"symbol":if(n)throw new TypeError("unable to serialize "+m);b=null;break;case"undefined":return s([Qd],u)}return s([g,b],u)}case Qr:{if(m){let v=u;return m==="DataView"?v=new Uint8Array(u.buffer):m==="ArrayBuffer"&&(v=new Uint8Array(u)),s([m,[...v]],u)}const b=[],h=s([g,b],u);for(const v of u)b.push(f(v));return h}case no:{if(m)switch(m){case"BigInt":return s([m,u.toString()],u);case"Boolean":case"Number":case"String":return s([m,u.valueOf()],u)}if(a&&"toJSON"in u)return f(u.toJSON());const b=[],h=s([g,b],u);for(const v of Kk(u))(n||!io(Jr(u[v])))&&b.push([f(v),f(u[v])]);return h}case lc:return s([g,isNaN(u.getTime())?Ma:u.toISOString()],u);case oc:{const{source:b,flags:h}=u;return s([g,{source:b,flags:h}],u)}case sc:{const b=[],h=s([g,b],u);for(const[v,k]of u)(n||!(io(Jr(v))||io(Jr(k))))&&b.push([f(v),f(k)]);return h}case cc:{const b=[],h=s([g,b],u);for(const v of u)(n||!io(Jr(v)))&&b.push(f(v));return h}}const{message:p}=u;return s([g,{name:m,message:p}],u)};return f},ip=(n,{json:a,lossy:r}={})=>{const o=[];return Vk(!(a||r),!!a,new Map,o)(n),o},ao=typeof structuredClone=="function"?(n,a)=>a&&("json"in a||"lossy"in a)?np(ip(n,a)):structuredClone(n):(n,a)=>np(ip(n,a));function $k(n,a){const r=[{type:"text",value:"↩"}];return a>1&&r.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(a)}]}),r}function Zk(n,a){return"Back to reference "+(n+1)+(a>1?"-"+a:"")}function Xk(n){const a=typeof n.options.clobberPrefix=="string"?n.options.clobberPrefix:"user-content-",r=n.options.footnoteBackContent||$k,o=n.options.footnoteBackLabel||Zk,s=n.options.footnoteLabel||"Footnotes",f=n.options.footnoteLabelTagName||"h2",u=n.options.footnoteLabelProperties||{className:["sr-only"]},g=[];let m=-1;for(;++m<n.footnoteOrder.length;){const p=n.footnoteById.get(n.footnoteOrder[m]);if(!p)continue;const b=n.all(p),h=String(p.identifier).toUpperCase(),v=tr(h.toLowerCase());let k=0;const x=[],C=n.footnoteCounts.get(h);for(;C!==void 0&&++k<=C;){x.length>0&&x.push({type:"text",value:" "});let q=typeof r=="string"?r:r(m,k);typeof q=="string"&&(q={type:"text",value:q}),x.push({type:"element",tagName:"a",properties:{href:"#"+a+"fnref-"+v+(k>1?"-"+k:""),dataFootnoteBackref:"",ariaLabel:typeof o=="string"?o:o(m,k),className:["data-footnote-backref"]},children:Array.isArray(q)?q:[q]})}const M=b[b.length-1];if(M&&M.type==="element"&&M.tagName==="p"){const q=M.children[M.children.length-1];q&&q.type==="text"?q.value+=" ":M.children.push({type:"text",value:" "}),M.children.push(...x)}else b.push(...x);const w={type:"element",tagName:"li",properties:{id:a+"fn-"+v},children:n.wrap(b,!0)};n.patch(p,w),g.push(w)}if(g.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:f,properties:{...ao(u),id:"footnote-label"},children:[{type:"text",value:s}]},{type:"text",value:`
17
- `},{type:"element",tagName:"ol",properties:{},children:n.wrap(g,!0)},{type:"text",value:`
18
- `}]}}const Wr=(function(n){if(n==null)return eE;if(typeof n=="function")return ro(n);if(typeof n=="object")return Array.isArray(n)?Qk(n):Jk(n);if(typeof n=="string")return Wk(n);throw new Error("Expected function, string, or object as test")});function Qk(n){const a=[];let r=-1;for(;++r<n.length;)a[r]=Wr(n[r]);return ro(o);function o(...s){let f=-1;for(;++f<a.length;)if(a[f].apply(this,s))return!0;return!1}}function Jk(n){const a=n;return ro(r);function r(o){const s=o;let f;for(f in n)if(s[f]!==a[f])return!1;return!0}}function Wk(n){return ro(a);function a(r){return r&&r.type===n}}function ro(n){return a;function a(r,o,s){return!!(tE(r)&&n.call(this,r,typeof o=="number"?o:void 0,s||void 0))}}function eE(){return!0}function tE(n){return n!==null&&typeof n=="object"&&"type"in n}function LA(n){return n}const ap=[],nE=!0,uc=!1,iE="skip";function rp(n,a,r,o){let s;typeof a=="function"&&typeof r!="function"?(o=r,r=a):s=a;const f=Wr(s),u=o?-1:1;g(n,void 0,[])();function g(m,p,b){const h=m&&typeof m=="object"?m:{};if(typeof h.type=="string"){const k=typeof h.tagName=="string"?h.tagName:typeof h.name=="string"?h.name:void 0;Object.defineProperty(v,"name",{value:"node ("+(m.type+(k?"<"+k+">":""))+")"})}return v;function v(){let k=ap,x,C,M;if((!a||f(m,p,b[b.length-1]||void 0))&&(k=aE(r(m,b)),k[0]===uc))return k;if("children"in m&&m.children){const w=m;if(w.children&&k[0]!==iE)for(C=(o?w.children.length:-1)+u,M=b.concat(w);C>-1&&C<w.children.length;){const q=w.children[C];if(x=g(q,C,M)(),x[0]===uc)return x;C=typeof x[1]=="number"?x[1]:C+u}}return k}}}function aE(n){return Array.isArray(n)?n:typeof n=="number"?[nE,n]:n==null?ap:[n]}function lo(n,a,r,o){let s,f,u;typeof a=="function"&&typeof r!="function"?(f=void 0,u=a,s=r):(f=a,u=r,s=o),rp(n,f,g,s);function g(m,p){const b=p[p.length-1],h=b?b.children.indexOf(m):void 0;return u(m,h,b)}}const fc={}.hasOwnProperty,rE={};function lE(n,a){const r=a||rE,o=new Map,s=new Map,f=new Map,u={...jk,...r.handlers},g={all:p,applyData:sE,definitionById:o,footnoteById:s,footnoteCounts:f,footnoteOrder:[],handlers:u,one:m,options:r,patch:oE,wrap:uE};return lo(n,function(b){if(b.type==="definition"||b.type==="footnoteDefinition"){const h=b.type==="definition"?o:s,v=String(b.identifier).toUpperCase();h.has(v)||h.set(v,b)}}),g;function m(b,h){const v=b.type,k=g.handlers[v];if(fc.call(g.handlers,v)&&k)return k(g,b,h);if(g.options.passThrough&&g.options.passThrough.includes(v)){if("children"in b){const{children:C,...M}=b,w=ao(M);return w.children=g.all(b),w}return ao(b)}return(g.options.unknownHandler||cE)(g,b,h)}function p(b){const h=[];if("children"in b){const v=b.children;let k=-1;for(;++k<v.length;){const x=g.one(v[k],b);if(x){if(k&&v[k-1].type==="break"&&(!Array.isArray(x)&&x.type==="text"&&(x.value=lp(x.value)),!Array.isArray(x)&&x.type==="element")){const C=x.children[0];C&&C.type==="text"&&(C.value=lp(C.value))}Array.isArray(x)?h.push(...x):h.push(x)}}}return h}}function oE(n,a){n.position&&(a.position=a0(n))}function sE(n,a){let r=a;if(n&&n.data){const o=n.data.hName,s=n.data.hChildren,f=n.data.hProperties;if(typeof o=="string")if(r.type==="element")r.tagName=o;else{const u="children"in r?r.children:[r];r={type:"element",tagName:o,properties:{},children:u}}r.type==="element"&&f&&Object.assign(r.properties,ao(f)),"children"in r&&r.children&&s!==null&&s!==void 0&&(r.children=s)}return r}function cE(n,a){const r=a.data||{},o="value"in a&&!(fc.call(r,"hProperties")||fc.call(r,"hChildren"))?{type:"text",value:a.value}:{type:"element",tagName:"div",properties:{},children:n.all(a)};return n.patch(a,o),n.applyData(a,o)}function uE(n,a){const r=[];let o=-1;for(a&&r.push({type:"text",value:`
19
- `});++o<n.length;)o&&r.push({type:"text",value:`
20
- `}),r.push(n[o]);return a&&n.length>0&&r.push({type:"text",value:`
21
- `}),r}function lp(n){let a=0,r=n.charCodeAt(a);for(;r===9||r===32;)a++,r=n.charCodeAt(a);return n.slice(a)}function op(n,a){const r=lE(n,a),o=r.one(n,void 0),s=Xk(r),f=Array.isArray(o)?{type:"root",children:o}:o||{type:"root",children:[]};return s&&f.children.push({type:"text",value:`
22
- `},s),f}function fE(n,a){return n&&"run"in n?async function(r,o){const s=op(r,{file:o,...a});await n.run(s,o)}:function(r,o){return op(r,{file:o,...n||a})}}function sp(n){if(n)throw n}var dc,cp;function dE(){if(cp)return dc;cp=1;var n=Object.prototype.hasOwnProperty,a=Object.prototype.toString,r=Object.defineProperty,o=Object.getOwnPropertyDescriptor,s=function(p){return typeof Array.isArray=="function"?Array.isArray(p):a.call(p)==="[object Array]"},f=function(p){if(!p||a.call(p)!=="[object Object]")return!1;var b=n.call(p,"constructor"),h=p.constructor&&p.constructor.prototype&&n.call(p.constructor.prototype,"isPrototypeOf");if(p.constructor&&!b&&!h)return!1;var v;for(v in p);return typeof v>"u"||n.call(p,v)},u=function(p,b){r&&b.name==="__proto__"?r(p,b.name,{enumerable:!0,configurable:!0,value:b.newValue,writable:!0}):p[b.name]=b.newValue},g=function(p,b){if(b==="__proto__")if(n.call(p,b)){if(o)return o(p,b).value}else return;return p[b]};return dc=function m(){var p,b,h,v,k,x,C=arguments[0],M=1,w=arguments.length,q=!1;for(typeof C=="boolean"&&(q=C,C=arguments[1]||{},M=2),(C==null||typeof C!="object"&&typeof C!="function")&&(C={});M<w;++M)if(p=arguments[M],p!=null)for(b in p)h=g(C,b),v=g(p,b),C!==v&&(q&&v&&(f(v)||(k=s(v)))?(k?(k=!1,x=h&&s(h)?h:[]):x=h&&f(h)?h:{},u(C,{name:b,newValue:m(q,x,v)})):typeof v<"u"&&u(C,{name:b,newValue:v}));return C},dc}var pE=dE();const pc=Os(pE);function gc(n){if(typeof n!="object"||n===null)return!1;const a=Object.getPrototypeOf(n);return(a===null||a===Object.prototype||Object.getPrototypeOf(a)===null)&&!(Symbol.toStringTag in n)&&!(Symbol.iterator in n)}function gE(){const n=[],a={run:r,use:o};return a;function r(...s){let f=-1;const u=s.pop();if(typeof u!="function")throw new TypeError("Expected function as last argument, not "+u);g(null,...s);function g(m,...p){const b=n[++f];let h=-1;if(m){u(m);return}for(;++h<s.length;)(p[h]===null||p[h]===void 0)&&(p[h]=s[h]);s=p,b?mE(b,g)(...p):u(null,...p)}}function o(s){if(typeof s!="function")throw new TypeError("Expected `middelware` to be a function, not "+s);return n.push(s),a}}function mE(n,a){let r;return o;function o(...u){const g=n.length>u.length;let m;g&&u.push(s);try{m=n.apply(this,u)}catch(p){const b=p;if(g&&r)throw b;return s(b)}g||(m&&m.then&&typeof m.then=="function"?m.then(f,s):m instanceof Error?s(m):f(m))}function s(u,...g){r||(r=!0,a(u,...g))}function f(u){s(null,u)}}const pi={basename:hE,dirname:bE,extname:yE,join:vE,sep:"/"};function hE(n,a){if(a!==void 0&&typeof a!="string")throw new TypeError('"ext" argument must be a string');el(n);let r=0,o=-1,s=n.length,f;if(a===void 0||a.length===0||a.length>n.length){for(;s--;)if(n.codePointAt(s)===47){if(f){r=s+1;break}}else o<0&&(f=!0,o=s+1);return o<0?"":n.slice(r,o)}if(a===n)return"";let u=-1,g=a.length-1;for(;s--;)if(n.codePointAt(s)===47){if(f){r=s+1;break}}else u<0&&(f=!0,u=s+1),g>-1&&(n.codePointAt(s)===a.codePointAt(g--)?g<0&&(o=s):(g=-1,o=u));return r===o?o=u:o<0&&(o=n.length),n.slice(r,o)}function bE(n){if(el(n),n.length===0)return".";let a=-1,r=n.length,o;for(;--r;)if(n.codePointAt(r)===47){if(o){a=r;break}}else o||(o=!0);return a<0?n.codePointAt(0)===47?"/":".":a===1&&n.codePointAt(0)===47?"//":n.slice(0,a)}function yE(n){el(n);let a=n.length,r=-1,o=0,s=-1,f=0,u;for(;a--;){const g=n.codePointAt(a);if(g===47){if(u){o=a+1;break}continue}r<0&&(u=!0,r=a+1),g===46?s<0?s=a:f!==1&&(f=1):s>-1&&(f=-1)}return s<0||r<0||f===0||f===1&&s===r-1&&s===o+1?"":n.slice(s,r)}function vE(...n){let a=-1,r;for(;++a<n.length;)el(n[a]),n[a]&&(r=r===void 0?n[a]:r+"/"+n[a]);return r===void 0?".":kE(r)}function kE(n){el(n);const a=n.codePointAt(0)===47;let r=EE(n,!a);return r.length===0&&!a&&(r="."),r.length>0&&n.codePointAt(n.length-1)===47&&(r+="/"),a?"/"+r:r}function EE(n,a){let r="",o=0,s=-1,f=0,u=-1,g,m;for(;++u<=n.length;){if(u<n.length)g=n.codePointAt(u);else{if(g===47)break;g=47}if(g===47){if(!(s===u-1||f===1))if(s!==u-1&&f===2){if(r.length<2||o!==2||r.codePointAt(r.length-1)!==46||r.codePointAt(r.length-2)!==46){if(r.length>2){if(m=r.lastIndexOf("/"),m!==r.length-1){m<0?(r="",o=0):(r=r.slice(0,m),o=r.length-1-r.lastIndexOf("/")),s=u,f=0;continue}}else if(r.length>0){r="",o=0,s=u,f=0;continue}}a&&(r=r.length>0?r+"/..":"..",o=2)}else r.length>0?r+="/"+n.slice(s+1,u):r=n.slice(s+1,u),o=u-s-1;s=u,f=0}else g===46&&f>-1?f++:f=-1}return r}function el(n){if(typeof n!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(n))}const _E={cwd:xE};function xE(){return"/"}function mc(n){return!!(n!==null&&typeof n=="object"&&"href"in n&&n.href&&"protocol"in n&&n.protocol&&n.auth===void 0)}function SE(n){if(typeof n=="string")n=new URL(n);else if(!mc(n)){const a=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+n+"`");throw a.code="ERR_INVALID_ARG_TYPE",a}if(n.protocol!=="file:"){const a=new TypeError("The URL must be of scheme file");throw a.code="ERR_INVALID_URL_SCHEME",a}return wE(n)}function wE(n){if(n.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 a=n.pathname;let r=-1;for(;++r<a.length;)if(a.codePointAt(r)===37&&a.codePointAt(r+1)===50){const o=a.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(a)}const hc=["history","path","basename","stem","extname","dirname"];class up{constructor(a){let r;a?mc(a)?r={path:a}:typeof a=="string"||TE(a)?r={value:a}:r=a:r={},this.cwd="cwd"in r?"":_E.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let o=-1;for(;++o<hc.length;){const f=hc[o];f in r&&r[f]!==void 0&&r[f]!==null&&(this[f]=f==="history"?[...r[f]]:r[f])}let s;for(s in r)hc.includes(s)||(this[s]=r[s])}get basename(){return typeof this.path=="string"?pi.basename(this.path):void 0}set basename(a){yc(a,"basename"),bc(a,"basename"),this.path=pi.join(this.dirname||"",a)}get dirname(){return typeof this.path=="string"?pi.dirname(this.path):void 0}set dirname(a){fp(this.basename,"dirname"),this.path=pi.join(a||"",this.basename)}get extname(){return typeof this.path=="string"?pi.extname(this.path):void 0}set extname(a){if(bc(a,"extname"),fp(this.dirname,"extname"),a){if(a.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(a.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=pi.join(this.dirname,this.stem+(a||""))}get path(){return this.history[this.history.length-1]}set path(a){mc(a)&&(a=SE(a)),yc(a,"path"),this.path!==a&&this.history.push(a)}get stem(){return typeof this.path=="string"?pi.basename(this.path,this.extname):void 0}set stem(a){yc(a,"stem"),bc(a,"stem"),this.path=pi.join(this.dirname||"",a+(this.extname||""))}fail(a,r,o){const s=this.message(a,r,o);throw s.fatal=!0,s}info(a,r,o){const s=this.message(a,r,o);return s.fatal=void 0,s}message(a,r,o){const s=new cn(a,r,o);return this.path&&(s.name=this.path+":"+s.name,s.file=this.path),s.fatal=!1,this.messages.push(s),s}toString(a){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(a||void 0).decode(this.value)}}function bc(n,a){if(n&&n.includes(pi.sep))throw new Error("`"+a+"` cannot be a path: did not expect `"+pi.sep+"`")}function yc(n,a){if(!n)throw new Error("`"+a+"` cannot be empty")}function fp(n,a){if(!n)throw new Error("Setting `"+a+"` requires `path` to be set too")}function TE(n){return!!(n&&typeof n=="object"&&"byteLength"in n&&"byteOffset"in n)}const AE=(function(n){const o=this.constructor.prototype,s=o[n],f=function(){return s.apply(f,arguments)};return Object.setPrototypeOf(f,o),f}),NE={}.hasOwnProperty;class vc extends AE{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=gE()}copy(){const a=new vc;let r=-1;for(;++r<this.attachers.length;){const o=this.attachers[r];a.use(...o)}return a.data(pc(!0,{},this.namespace)),a}data(a,r){return typeof a=="string"?arguments.length===2?(_c("data",this.frozen),this.namespace[a]=r,this):NE.call(this.namespace,a)&&this.namespace[a]||void 0:a?(_c("data",this.frozen),this.namespace=a,this):this.namespace}freeze(){if(this.frozen)return this;const a=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(a,...o);typeof s=="function"&&this.transformers.use(s)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(a){this.freeze();const r=oo(a),o=this.parser||this.Parser;return kc("parse",o),o(String(r),r)}process(a,r){const o=this;return this.freeze(),kc("process",this.parser||this.Parser),Ec("process",this.compiler||this.Compiler),r?s(void 0,r):new Promise(s);function s(f,u){const g=oo(a),m=o.parse(g);o.run(m,g,function(b,h,v){if(b||!h||!v)return p(b);const k=h,x=o.stringify(k,v);ME(x)?v.value=x:v.result=x,p(b,v)});function p(b,h){b||!h?u(b):f?f(h):r(void 0,h)}}}processSync(a){let r=!1,o;return this.freeze(),kc("processSync",this.parser||this.Parser),Ec("processSync",this.compiler||this.Compiler),this.process(a,s),pp("processSync","process",r),o;function s(f,u){r=!0,sp(f),o=u}}run(a,r,o){dp(a),this.freeze();const s=this.transformers;return!o&&typeof r=="function"&&(o=r,r=void 0),o?f(void 0,o):new Promise(f);function f(u,g){const m=oo(r);s.run(a,m,p);function p(b,h,v){const k=h||a;b?g(b):u?u(k):o(void 0,k,v)}}}runSync(a,r){let o=!1,s;return this.run(a,r,f),pp("runSync","run",o),s;function f(u,g){sp(u),s=g,o=!0}}stringify(a,r){this.freeze();const o=oo(r),s=this.compiler||this.Compiler;return Ec("stringify",s),dp(a),s(a,o)}use(a,...r){const o=this.attachers,s=this.namespace;if(_c("use",this.frozen),a!=null)if(typeof a=="function")m(a,r);else if(typeof a=="object")Array.isArray(a)?g(a):u(a);else throw new TypeError("Expected usable value, not `"+a+"`");return this;function f(p){if(typeof p=="function")m(p,[]);else if(typeof p=="object")if(Array.isArray(p)){const[b,...h]=p;m(b,h)}else u(p);else throw new TypeError("Expected usable value, not `"+p+"`")}function u(p){if(!("plugins"in p)&&!("settings"in p))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");g(p.plugins),p.settings&&(s.settings=pc(!0,s.settings,p.settings))}function g(p){let b=-1;if(p!=null)if(Array.isArray(p))for(;++b<p.length;){const h=p[b];f(h)}else throw new TypeError("Expected a list of plugins, not `"+p+"`")}function m(p,b){let h=-1,v=-1;for(;++h<o.length;)if(o[h][0]===p){v=h;break}if(v===-1)o.push([p,...b]);else if(b.length>0){let[k,...x]=b;const C=o[v][1];gc(C)&&gc(k)&&(k=pc(!0,C,k)),o[v]=[p,k,...x]}}}}const CE=new vc().freeze();function kc(n,a){if(typeof a!="function")throw new TypeError("Cannot `"+n+"` without `parser`")}function Ec(n,a){if(typeof a!="function")throw new TypeError("Cannot `"+n+"` without `compiler`")}function _c(n,a){if(a)throw new Error("Cannot call `"+n+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function dp(n){if(!gc(n)||typeof n.type!="string")throw new TypeError("Expected node, got `"+n+"`")}function pp(n,a,r){if(!r)throw new Error("`"+n+"` finished async. Use `"+a+"` instead")}function oo(n){return OE(n)?n:new up(n)}function OE(n){return!!(n&&typeof n=="object"&&"message"in n&&"messages"in n)}function ME(n){return typeof n=="string"||RE(n)}function RE(n){return!!(n&&typeof n=="object"&&"byteLength"in n&&"byteOffset"in n)}const DE="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",gp=[],mp={allowDangerousHtml:!0},LE=/^(https?|ircs?|mailto|xmpp)$/i,zE=[{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 IE(n){const a=BE(n),r=UE(n);return HE(a.runSync(a.parse(r),r),n)}function BE(n){const a=n.rehypePlugins||gp,r=n.remarkPlugins||gp,o=n.remarkRehypeOptions?{...n.remarkRehypeOptions,...mp}:mp;return CE().use(bk).use(r).use(fE,o).use(a)}function UE(n){const a=n.children||"",r=new up;return typeof a=="string"&&(r.value=a),r}function HE(n,a){const r=a.allowedElements,o=a.allowElement,s=a.components,f=a.disallowedElements,u=a.skipHtml,g=a.unwrapDisallowed,m=a.urlTransform||qE;for(const b of zE)Object.hasOwn(a,b.from)&&(""+b.from+(b.to?"use `"+b.to+"` instead":"remove it")+DE+b.id,void 0);return lo(n,p),c0(n,{Fragment:D.Fragment,components:s,ignoreInvalidStyle:!0,jsx:D.jsx,jsxs:D.jsxs,passKeys:!0,passNode:!0});function p(b,h,v){if(b.type==="raw"&&v&&typeof h=="number")return u?v.children.splice(h,1):v.children[h]={type:"text",value:b.value},h;if(b.type==="element"){let k;for(k in Js)if(Object.hasOwn(Js,k)&&Object.hasOwn(b.properties,k)){const x=b.properties[k],C=Js[k];(C===null||C.includes(b.tagName))&&(b.properties[k]=m(String(x||""),k,b))}}if(b.type==="element"){let k=r?!r.includes(b.tagName):f?f.includes(b.tagName):!1;if(!k&&o&&typeof h=="number"&&(k=!o(b,h,v)),k&&v&&typeof h=="number")return g&&b.children?v.children.splice(h,1,...b.children):v.children.splice(h,1),h}}}function qE(n){const a=n.indexOf(":"),r=n.indexOf("?"),o=n.indexOf("#"),s=n.indexOf("/");return a===-1||s!==-1&&a>s||r!==-1&&a>r||o!==-1&&a>o||LE.test(n.slice(0,a))?n:""}const hp=(function(n,a,r){const o=Wr(r);if(!n||!n.type||!n.children)throw new Error("Expected parent node");if(typeof a=="number"){if(a<0||a===Number.POSITIVE_INFINITY)throw new Error("Expected positive finite number as index")}else if(a=n.children.indexOf(a),a<0)throw new Error("Expected child node or index");for(;++a<n.children.length;)if(o(n.children[a],a,n))return n.children[a]}),Ra=(function(n){if(n==null)return jE;if(typeof n=="string")return GE(n);if(typeof n=="object")return FE(n);if(typeof n=="function")return xc(n);throw new Error("Expected function, string, or array as `test`")});function FE(n){const a=[];let r=-1;for(;++r<n.length;)a[r]=Ra(n[r]);return xc(o);function o(...s){let f=-1;for(;++f<a.length;)if(a[f].apply(this,s))return!0;return!1}}function GE(n){return xc(a);function a(r){return r.tagName===n}}function xc(n){return a;function a(r,o,s){return!!(YE(r)&&n.call(this,r,typeof o=="number"?o:void 0,s||void 0))}}function jE(n){return!!(n&&typeof n=="object"&&"type"in n&&n.type==="element"&&"tagName"in n&&typeof n.tagName=="string")}function YE(n){return n!==null&&typeof n=="object"&&"type"in n&&"tagName"in n}const bp=/\n/g,yp=/[\t ]+/g,Sc=Ra("br"),vp=Ra(JE),PE=Ra("p"),kp=Ra("tr"),KE=Ra(["datalist","head","noembed","noframes","noscript","rp","script","style","template","title",QE,WE]),Ep=Ra(["address","article","aside","blockquote","body","caption","center","dd","dialog","dir","dl","dt","div","figure","figcaption","footer","form,","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","legend","li","listing","main","menu","nav","ol","p","plaintext","pre","section","ul","xmp"]);function VE(n,a){const r=a||{},o="children"in n?n.children:[],s=Ep(n),f=Sp(n,{whitespace:r.whitespace||"normal"}),u=[];(n.type==="text"||n.type==="comment")&&u.push(...xp(n,{breakBefore:!0,breakAfter:!0}));let g=-1;for(;++g<o.length;)u.push(..._p(o[g],n,{whitespace:f,breakBefore:g?void 0:s,breakAfter:g<o.length-1?Sc(o[g+1]):s}));const m=[];let p;for(g=-1;++g<u.length;){const b=u[g];typeof b=="number"?p!==void 0&&b>p&&(p=b):b&&(p!==void 0&&p>-1&&m.push(`
23
- `.repeat(p)||" "),p=-1,m.push(b))}return m.join("")}function _p(n,a,r){return n.type==="element"?$E(n,a,r):n.type==="text"?r.whitespace==="normal"?xp(n,r):ZE(n):[]}function $E(n,a,r){const o=Sp(n,r),s=n.children||[];let f=-1,u=[];if(KE(n))return u;let g,m;for(Sc(n)||kp(n)&&hp(a,n,kp)?m=`
24
- `:PE(n)?(g=2,m=2):Ep(n)&&(g=1,m=1);++f<s.length;)u=u.concat(_p(s[f],n,{whitespace:o,breakBefore:f?void 0:g,breakAfter:f<s.length-1?Sc(s[f+1]):m}));return vp(n)&&hp(a,n,vp)&&u.push(" "),g&&u.unshift(g),m&&u.push(m),u}function xp(n,a){const r=String(n.value),o=[],s=[];let f=0;for(;f<=r.length;){bp.lastIndex=f;const m=bp.exec(r),p=m&&"index"in m?m.index:r.length;o.push(XE(r.slice(f,p).replace(/[\u061C\u200E\u200F\u202A-\u202E\u2066-\u2069]/g,""),f===0?a.breakBefore:!0,p===r.length?a.breakAfter:!0)),f=p+1}let u=-1,g;for(;++u<o.length;)o[u].charCodeAt(o[u].length-1)===8203||u<o.length-1&&o[u+1].charCodeAt(0)===8203?(s.push(o[u]),g=void 0):o[u]?(typeof g=="number"&&s.push(g),s.push(o[u]),g=0):(u===0||u===o.length-1)&&s.push(0);return s}function ZE(n){return[String(n.value)]}function XE(n,a,r){const o=[];let s=0,f;for(;s<n.length;){yp.lastIndex=s;const u=yp.exec(n);f=u?u.index:n.length,!s&&!f&&u&&!a&&o.push(""),s!==f&&o.push(n.slice(s,f)),s=u?f+u[0].length:f}return s!==f&&!r&&o.push(""),o.join(" ")}function Sp(n,a){if(n.type==="element"){const r=n.properties||{};switch(n.tagName){case"listing":case"plaintext":case"xmp":return"pre";case"nobr":return"nowrap";case"pre":return r.wrap?"pre-wrap":"pre";case"td":case"th":return r.noWrap?"nowrap":a.whitespace;case"textarea":return"pre-wrap"}}return a.whitespace}function QE(n){return!!(n.properties||{}).hidden}function JE(n){return n.tagName==="td"||n.tagName==="th"}function WE(n){return n.tagName==="dialog"&&!(n.properties||{}).open}function e_(n){const a=n.regex,r=n.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),o="decltype\\(auto\\)",s="[a-zA-Z_]\\w*::",u="(?!struct)("+o+"|"+a.optional(s)+"[a-zA-Z_]\\w*"+a.optional("<[^<>]+>")+")",g={className:"type",begin:"\\b[a-z\\d_]*_t\\b"},p={className:"string",variants:[{begin:'(u8?|U|L)?"',end:'"',illegal:"\\n",contains:[n.BACKSLASH_ESCAPE]},{begin:"(u8?|U|L)?'("+"\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)"+"|.)",end:"'",illegal:"."},n.END_SAME_AS_BEGIN({begin:/(?:u8?|U|L)?R"([^()\\ ]{0,16})\(/,end:/\)([^()\\ ]{0,16})"/})]},b={className:"number",variants:[{begin:"[+-]?(?:(?:[0-9](?:'?[0-9])*\\.(?:[0-9](?:'?[0-9])*)?|\\.[0-9](?:'?[0-9])*)(?:[Ee][+-]?[0-9](?:'?[0-9])*)?|[0-9](?:'?[0-9])*[Ee][+-]?[0-9](?:'?[0-9])*|0[Xx](?:[0-9A-Fa-f](?:'?[0-9A-Fa-f])*(?:\\.(?:[0-9A-Fa-f](?:'?[0-9A-Fa-f])*)?)?|\\.[0-9A-Fa-f](?:'?[0-9A-Fa-f])*)[Pp][+-]?[0-9](?:'?[0-9])*)(?:[Ff](?:16|32|64|128)?|(BF|bf)16|[Ll]|)"},{begin:"[+-]?\\b(?:0[Bb][01](?:'?[01])*|0[Xx][0-9A-Fa-f](?:'?[0-9A-Fa-f])*|0(?:'?[0-7])*|[1-9](?:'?[0-9])*)(?:[Uu](?:LL?|ll?)|[Uu][Zz]?|(?:LL?|ll?)[Uu]?|[Zz][Uu]|)"}],relevance:0},h={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:"if else elif endif define undef warning error line pragma _Pragma ifdef ifndef include"},contains:[{begin:/\\\n/,relevance:0},n.inherit(p,{className:"string"}),{className:"string",begin:/<.*?>/},r,n.C_BLOCK_COMMENT_MODE]},v={className:"title",begin:a.optional(s)+n.IDENT_RE,relevance:0},k=a.optional(s)+n.IDENT_RE+"\\s*\\(",x=["alignas","alignof","and","and_eq","asm","atomic_cancel","atomic_commit","atomic_noexcept","auto","bitand","bitor","break","case","catch","class","co_await","co_return","co_yield","compl","concept","const_cast|10","consteval","constexpr","constinit","continue","decltype","default","delete","do","dynamic_cast|10","else","enum","explicit","export","extern","false","final","for","friend","goto","if","import","inline","module","mutable","namespace","new","noexcept","not","not_eq","nullptr","operator","or","or_eq","override","private","protected","public","reflexpr","register","reinterpret_cast|10","requires","return","sizeof","static_assert","static_cast|10","struct","switch","synchronized","template","this","thread_local","throw","transaction_safe","transaction_safe_dynamic","true","try","typedef","typeid","typename","union","using","virtual","volatile","while","xor","xor_eq"],C=["bool","char","char16_t","char32_t","char8_t","double","float","int","long","short","void","wchar_t","unsigned","signed","const","static"],M=["any","auto_ptr","barrier","binary_semaphore","bitset","complex","condition_variable","condition_variable_any","counting_semaphore","deque","false_type","flat_map","flat_set","future","imaginary","initializer_list","istringstream","jthread","latch","lock_guard","multimap","multiset","mutex","optional","ostringstream","packaged_task","pair","promise","priority_queue","queue","recursive_mutex","recursive_timed_mutex","scoped_lock","set","shared_future","shared_lock","shared_mutex","shared_timed_mutex","shared_ptr","stack","string_view","stringstream","timed_mutex","thread","true_type","tuple","unique_lock","unique_ptr","unordered_map","unordered_multimap","unordered_multiset","unordered_set","variant","vector","weak_ptr","wstring","wstring_view"],w=["abort","abs","acos","apply","as_const","asin","atan","atan2","calloc","ceil","cerr","cin","clog","cos","cosh","cout","declval","endl","exchange","exit","exp","fabs","floor","fmod","forward","fprintf","fputs","free","frexp","fscanf","future","invoke","isalnum","isalpha","iscntrl","isdigit","isgraph","islower","isprint","ispunct","isspace","isupper","isxdigit","labs","launder","ldexp","log","log10","make_pair","make_shared","make_shared_for_overwrite","make_tuple","make_unique","malloc","memchr","memcmp","memcpy","memset","modf","move","pow","printf","putchar","puts","realloc","scanf","sin","sinh","snprintf","sprintf","sqrt","sscanf","std","stderr","stdin","stdout","strcat","strchr","strcmp","strcpy","strcspn","strlen","strncat","strncmp","strncpy","strpbrk","strrchr","strspn","strstr","swap","tan","tanh","terminate","to_underlying","tolower","toupper","vfprintf","visit","vprintf","vsprintf"],Q={type:C,keyword:x,literal:["NULL","false","nullopt","nullptr","true"],built_in:["_Pragma"],_type_hints:M},te={className:"function.dispatch",relevance:0,keywords:{_hint:w},begin:a.concat(/\b/,/(?!decltype)/,/(?!if)/,/(?!for)/,/(?!switch)/,/(?!while)/,n.IDENT_RE,a.lookahead(/(<[^<>]+>|)\s*\(/))},L=[te,h,g,r,n.C_BLOCK_COMMENT_MODE,b,p],ce={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:Q,contains:L.concat([{begin:/\(/,end:/\)/,keywords:Q,contains:L.concat(["self"]),relevance:0}]),relevance:0},ee={className:"function",begin:"("+u+"[\\*&\\s]+)+"+k,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:Q,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:o,keywords:Q,relevance:0},{begin:k,returnBegin:!0,contains:[v],relevance:0},{begin:/::/,relevance:0},{begin:/:/,endsWithParent:!0,contains:[p,b]},{relevance:0,match:/,/},{className:"params",begin:/\(/,end:/\)/,keywords:Q,relevance:0,contains:[r,n.C_BLOCK_COMMENT_MODE,p,b,g,{begin:/\(/,end:/\)/,keywords:Q,relevance:0,contains:["self",r,n.C_BLOCK_COMMENT_MODE,p,b,g]}]},g,r,n.C_BLOCK_COMMENT_MODE,h]};return{name:"C++",aliases:["cc","c++","h++","hpp","hh","hxx","cxx"],keywords:Q,illegal:"</",classNameAliases:{"function.dispatch":"built_in"},contains:[].concat(ce,ee,te,L,[h,{begin:"\\b(deque|list|queue|priority_queue|pair|stack|vector|map|set|bitset|multiset|multimap|unordered_map|unordered_set|unordered_multiset|unordered_multimap|array|tuple|optional|variant|function|flat_map|flat_set)\\s*<(?!<)",end:">",keywords:Q,contains:["self",g]},{begin:n.IDENT_RE+"::",keywords:Q},{match:[/\b(?:enum(?:\s+(?:class|struct))?|class|struct|union)/,/\s+/,/\w+/],className:{1:"keyword",3:"title.class"}}])}}function t_(n){const a={type:["boolean","byte","word","String"],built_in:["KeyboardController","MouseController","SoftwareSerial","EthernetServer","EthernetClient","LiquidCrystal","RobotControl","GSMVoiceCall","EthernetUDP","EsploraTFT","HttpClient","RobotMotor","WiFiClient","GSMScanner","FileSystem","Scheduler","GSMServer","YunClient","YunServer","IPAddress","GSMClient","GSMModem","Keyboard","Ethernet","Console","GSMBand","Esplora","Stepper","Process","WiFiUDP","GSM_SMS","Mailbox","USBHost","Firmata","PImage","Client","Server","GSMPIN","FileIO","Bridge","Serial","EEPROM","Stream","Mouse","Audio","Servo","File","Task","GPRS","WiFi","Wire","TFT","GSM","SPI","SD"],_hints:["setup","loop","runShellCommandAsynchronously","analogWriteResolution","retrieveCallingNumber","printFirmwareVersion","analogReadResolution","sendDigitalPortPair","noListenOnLocalhost","readJoystickButton","setFirmwareVersion","readJoystickSwitch","scrollDisplayRight","getVoiceCallStatus","scrollDisplayLeft","writeMicroseconds","delayMicroseconds","beginTransmission","getSignalStrength","runAsynchronously","getAsynchronously","listenOnLocalhost","getCurrentCarrier","readAccelerometer","messageAvailable","sendDigitalPorts","lineFollowConfig","countryNameWrite","runShellCommand","readStringUntil","rewindDirectory","readTemperature","setClockDivider","readLightSensor","endTransmission","analogReference","detachInterrupt","countryNameRead","attachInterrupt","encryptionType","readBytesUntil","robotNameWrite","readMicrophone","robotNameRead","cityNameWrite","userNameWrite","readJoystickY","readJoystickX","mouseReleased","openNextFile","scanNetworks","noInterrupts","digitalWrite","beginSpeaker","mousePressed","isActionDone","mouseDragged","displayLogos","noAutoscroll","addParameter","remoteNumber","getModifiers","keyboardRead","userNameRead","waitContinue","processInput","parseCommand","printVersion","readNetworks","writeMessage","blinkVersion","cityNameRead","readMessage","setDataMode","parsePacket","isListening","setBitOrder","beginPacket","isDirectory","motorsWrite","drawCompass","digitalRead","clearScreen","serialEvent","rightToLeft","setTextSize","leftToRight","requestFrom","keyReleased","compassRead","analogWrite","interrupts","WiFiServer","disconnect","playMelody","parseFloat","autoscroll","getPINUsed","setPINUsed","setTimeout","sendAnalog","readSlider","analogRead","beginWrite","createChar","motorsStop","keyPressed","tempoWrite","readButton","subnetMask","debugPrint","macAddress","writeGreen","randomSeed","attachGPRS","readString","sendString","remotePort","releaseAll","mouseMoved","background","getXChange","getYChange","answerCall","getResult","voiceCall","endPacket","constrain","getSocket","writeJSON","getButton","available","connected","findUntil","readBytes","exitValue","readGreen","writeBlue","startLoop","IPAddress","isPressed","sendSysex","pauseMode","gatewayIP","setCursor","getOemKey","tuneWrite","noDisplay","loadImage","switchPIN","onRequest","onReceive","changePIN","playFile","noBuffer","parseInt","overflow","checkPIN","knobRead","beginTFT","bitClear","updateIR","bitWrite","position","writeRGB","highByte","writeRed","setSpeed","readBlue","noStroke","remoteIP","transfer","shutdown","hangCall","beginSMS","endWrite","attached","maintain","noCursor","checkReg","checkPUK","shiftOut","isValid","shiftIn","pulseIn","connect","println","localIP","pinMode","getIMEI","display","noBlink","process","getBand","running","beginSD","drawBMP","lowByte","setBand","release","bitRead","prepare","pointTo","readRed","setMode","noFill","remove","listen","stroke","detach","attach","noTone","exists","buffer","height","bitSet","circle","config","cursor","random","IRread","setDNS","endSMS","getKey","micros","millis","begin","print","write","ready","flush","width","isPIN","blink","clear","press","mkdir","rmdir","close","point","yield","image","BSSID","click","delay","read","text","move","peek","beep","rect","line","open","seek","fill","size","turn","stop","home","find","step","tone","sqrt","RSSI","SSID","end","bit","tan","cos","sin","pow","map","abs","max","min","get","run","put"],literal:["DIGITAL_MESSAGE","FIRMATA_STRING","ANALOG_MESSAGE","REPORT_DIGITAL","REPORT_ANALOG","INPUT_PULLUP","SET_PIN_MODE","INTERNAL2V56","SYSTEM_RESET","LED_BUILTIN","INTERNAL1V1","SYSEX_START","INTERNAL","EXTERNAL","DEFAULT","OUTPUT","INPUT","HIGH","LOW"]},r=e_(n),o=r.keywords;return o.type=[...o.type,...a.type],o.literal=[...o.literal,...a.literal],o.built_in=[...o.built_in,...a.built_in],o._hints=a._hints,r.name="Arduino",r.aliases=["ino"],r.supersetOf="cpp",r}function n_(n){const a=n.regex,r={},o={begin:/\$\{/,end:/\}/,contains:["self",{begin:/:-/,contains:[r]}]};Object.assign(r,{className:"variable",variants:[{begin:a.concat(/\$[\w\d#@][\w\d_]*/,"(?![\\w\\d])(?![$])")},o]});const s={className:"subst",begin:/\$\(/,end:/\)/,contains:[n.BACKSLASH_ESCAPE]},f=n.inherit(n.COMMENT(),{match:[/(^|\s)/,/#.*$/],scope:{2:"comment"}}),u={begin:/<<-?\s*(?=\w+)/,starts:{contains:[n.END_SAME_AS_BEGIN({begin:/(\w+)/,end:/(\w+)/,className:"string"})]}},g={className:"string",begin:/"/,end:/"/,contains:[n.BACKSLASH_ESCAPE,r,s]};s.contains.push(g);const m={match:/\\"/},p={className:"string",begin:/'/,end:/'/},b={match:/\\'/},h={begin:/\$?\(\(/,end:/\)\)/,contains:[{begin:/\d+#[0-9a-f]+/,className:"number"},n.NUMBER_MODE,r]},v=["fish","bash","zsh","sh","csh","ksh","tcsh","dash","scsh"],k=n.SHEBANG({binary:`(${v.join("|")})`,relevance:10}),x={className:"function",begin:/\w[\w\d_]*\s*\(\s*\)\s*\{/,returnBegin:!0,contains:[n.inherit(n.TITLE_MODE,{begin:/\w[\w\d_]*/})],relevance:0},C=["if","then","else","elif","fi","time","for","while","until","in","do","done","case","esac","coproc","function","select"],M=["true","false"],w={match:/(\/[a-z._-]+)+/},q=["break","cd","continue","eval","exec","exit","export","getopts","hash","pwd","readonly","return","shift","test","times","trap","umask","unset"],H=["alias","bind","builtin","caller","command","declare","echo","enable","help","let","local","logout","mapfile","printf","read","readarray","source","sudo","type","typeset","ulimit","unalias"],Q=["autoload","bg","bindkey","bye","cap","chdir","clone","comparguments","compcall","compctl","compdescribe","compfiles","compgroups","compquote","comptags","comptry","compvalues","dirs","disable","disown","echotc","echoti","emulate","fc","fg","float","functions","getcap","getln","history","integer","jobs","kill","limit","log","noglob","popd","print","pushd","pushln","rehash","sched","setcap","setopt","stat","suspend","ttyctl","unfunction","unhash","unlimit","unsetopt","vared","wait","whence","where","which","zcompile","zformat","zftp","zle","zmodload","zparseopts","zprof","zpty","zregexparse","zsocket","zstyle","ztcp"],te=["chcon","chgrp","chown","chmod","cp","dd","df","dir","dircolors","ln","ls","mkdir","mkfifo","mknod","mktemp","mv","realpath","rm","rmdir","shred","sync","touch","truncate","vdir","b2sum","base32","base64","cat","cksum","comm","csplit","cut","expand","fmt","fold","head","join","md5sum","nl","numfmt","od","paste","ptx","pr","sha1sum","sha224sum","sha256sum","sha384sum","sha512sum","shuf","sort","split","sum","tac","tail","tr","tsort","unexpand","uniq","wc","arch","basename","chroot","date","dirname","du","echo","env","expr","factor","groups","hostid","id","link","logname","nice","nohup","nproc","pathchk","pinky","printenv","printf","pwd","readlink","runcon","seq","sleep","stat","stdbuf","stty","tee","test","timeout","tty","uname","unlink","uptime","users","who","whoami","yes"];return{name:"Bash",aliases:["sh","zsh"],keywords:{$pattern:/\b[a-z][a-z0-9._-]+\b/,keyword:C,literal:M,built_in:[...q,...H,"set","shopt",...Q,...te]},contains:[k,n.SHEBANG(),x,h,f,u,w,g,m,p,b,r]}}function i_(n){const a=n.regex,r=n.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),o="decltype\\(auto\\)",s="[a-zA-Z_]\\w*::",u="("+o+"|"+a.optional(s)+"[a-zA-Z_]\\w*"+a.optional("<[^<>]+>")+")",g={className:"type",variants:[{begin:"\\b[a-z\\d_]*_t\\b"},{match:/\batomic_[a-z]{3,6}\b/}]},p={className:"string",variants:[{begin:'(u8?|U|L)?"',end:'"',illegal:"\\n",contains:[n.BACKSLASH_ESCAPE]},{begin:"(u8?|U|L)?'("+"\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)"+"|.)",end:"'",illegal:"."},n.END_SAME_AS_BEGIN({begin:/(?:u8?|U|L)?R"([^()\\ ]{0,16})\(/,end:/\)([^()\\ ]{0,16})"/})]},b={className:"number",variants:[{match:/\b(0b[01']+)/},{match:/(-?)\b([\d']+(\.[\d']*)?|\.[\d']+)((ll|LL|l|L)(u|U)?|(u|U)(ll|LL|l|L)?|f|F|b|B)/},{match:/(-?)\b(0[xX][a-fA-F0-9]+(?:'[a-fA-F0-9]+)*(?:\.[a-fA-F0-9]*(?:'[a-fA-F0-9]*)*)?(?:[pP][-+]?[0-9]+)?(l|L)?(u|U)?)/},{match:/(-?)\b\d+(?:'\d+)*(?:\.\d*(?:'\d*)*)?(?:[eE][-+]?\d+)?/}],relevance:0},h={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:"if else elif endif define undef warning error line pragma _Pragma ifdef ifndef elifdef elifndef include"},contains:[{begin:/\\\n/,relevance:0},n.inherit(p,{className:"string"}),{className:"string",begin:/<.*?>/},r,n.C_BLOCK_COMMENT_MODE]},v={className:"title",begin:a.optional(s)+n.IDENT_RE,relevance:0},k=a.optional(s)+n.IDENT_RE+"\\s*\\(",M={keyword:["asm","auto","break","case","continue","default","do","else","enum","extern","for","fortran","goto","if","inline","register","restrict","return","sizeof","typeof","typeof_unqual","struct","switch","typedef","union","volatile","while","_Alignas","_Alignof","_Atomic","_Generic","_Noreturn","_Static_assert","_Thread_local","alignas","alignof","noreturn","static_assert","thread_local","_Pragma"],type:["float","double","signed","unsigned","int","short","long","char","void","_Bool","_BitInt","_Complex","_Imaginary","_Decimal32","_Decimal64","_Decimal96","_Decimal128","_Decimal64x","_Decimal128x","_Float16","_Float32","_Float64","_Float128","_Float32x","_Float64x","_Float128x","const","static","constexpr","complex","bool","imaginary"],literal:"true false NULL",built_in:"std string wstring cin cout cerr clog stdin stdout stderr stringstream istringstream ostringstream auto_ptr deque list queue stack vector map set pair bitset multiset multimap unordered_set unordered_map unordered_multiset unordered_multimap priority_queue make_pair array shared_ptr abort terminate abs acos asin atan2 atan calloc ceil cosh cos exit exp fabs floor fmod fprintf fputs free frexp fscanf future isalnum isalpha iscntrl isdigit isgraph islower isprint ispunct isspace isupper isxdigit tolower toupper labs ldexp log10 log malloc realloc memchr memcmp memcpy memset modf pow printf putchar puts scanf sinh sin snprintf sprintf sqrt sscanf strcat strchr strcmp strcpy strcspn strlen strncat strncmp strncpy strpbrk strrchr strspn strstr tanh tan vfprintf vprintf vsprintf endl initializer_list unique_ptr"},w=[h,g,r,n.C_BLOCK_COMMENT_MODE,b,p],q={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:M,contains:w.concat([{begin:/\(/,end:/\)/,keywords:M,contains:w.concat(["self"]),relevance:0}]),relevance:0},H={begin:"("+u+"[\\*&\\s]+)+"+k,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:M,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:o,keywords:M,relevance:0},{begin:k,returnBegin:!0,contains:[n.inherit(v,{className:"title.function"})],relevance:0},{relevance:0,match:/,/},{className:"params",begin:/\(/,end:/\)/,keywords:M,relevance:0,contains:[r,n.C_BLOCK_COMMENT_MODE,p,b,g,{begin:/\(/,end:/\)/,keywords:M,relevance:0,contains:["self",r,n.C_BLOCK_COMMENT_MODE,p,b,g]}]},g,r,n.C_BLOCK_COMMENT_MODE,h]};return{name:"C",aliases:["h"],keywords:M,disableAutodetect:!0,illegal:"</",contains:[].concat(q,H,w,[h,{begin:n.IDENT_RE+"::",keywords:M},{className:"class",beginKeywords:"enum class struct union",end:/[{;:<>=]/,contains:[{beginKeywords:"final class struct"},n.TITLE_MODE]}]),exports:{preprocessor:h,strings:p,keywords:M}}}function a_(n){const a=n.regex,r=n.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),o="decltype\\(auto\\)",s="[a-zA-Z_]\\w*::",u="(?!struct)("+o+"|"+a.optional(s)+"[a-zA-Z_]\\w*"+a.optional("<[^<>]+>")+")",g={className:"type",begin:"\\b[a-z\\d_]*_t\\b"},p={className:"string",variants:[{begin:'(u8?|U|L)?"',end:'"',illegal:"\\n",contains:[n.BACKSLASH_ESCAPE]},{begin:"(u8?|U|L)?'("+"\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)"+"|.)",end:"'",illegal:"."},n.END_SAME_AS_BEGIN({begin:/(?:u8?|U|L)?R"([^()\\ ]{0,16})\(/,end:/\)([^()\\ ]{0,16})"/})]},b={className:"number",variants:[{begin:"[+-]?(?:(?:[0-9](?:'?[0-9])*\\.(?:[0-9](?:'?[0-9])*)?|\\.[0-9](?:'?[0-9])*)(?:[Ee][+-]?[0-9](?:'?[0-9])*)?|[0-9](?:'?[0-9])*[Ee][+-]?[0-9](?:'?[0-9])*|0[Xx](?:[0-9A-Fa-f](?:'?[0-9A-Fa-f])*(?:\\.(?:[0-9A-Fa-f](?:'?[0-9A-Fa-f])*)?)?|\\.[0-9A-Fa-f](?:'?[0-9A-Fa-f])*)[Pp][+-]?[0-9](?:'?[0-9])*)(?:[Ff](?:16|32|64|128)?|(BF|bf)16|[Ll]|)"},{begin:"[+-]?\\b(?:0[Bb][01](?:'?[01])*|0[Xx][0-9A-Fa-f](?:'?[0-9A-Fa-f])*|0(?:'?[0-7])*|[1-9](?:'?[0-9])*)(?:[Uu](?:LL?|ll?)|[Uu][Zz]?|(?:LL?|ll?)[Uu]?|[Zz][Uu]|)"}],relevance:0},h={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:"if else elif endif define undef warning error line pragma _Pragma ifdef ifndef include"},contains:[{begin:/\\\n/,relevance:0},n.inherit(p,{className:"string"}),{className:"string",begin:/<.*?>/},r,n.C_BLOCK_COMMENT_MODE]},v={className:"title",begin:a.optional(s)+n.IDENT_RE,relevance:0},k=a.optional(s)+n.IDENT_RE+"\\s*\\(",x=["alignas","alignof","and","and_eq","asm","atomic_cancel","atomic_commit","atomic_noexcept","auto","bitand","bitor","break","case","catch","class","co_await","co_return","co_yield","compl","concept","const_cast|10","consteval","constexpr","constinit","continue","decltype","default","delete","do","dynamic_cast|10","else","enum","explicit","export","extern","false","final","for","friend","goto","if","import","inline","module","mutable","namespace","new","noexcept","not","not_eq","nullptr","operator","or","or_eq","override","private","protected","public","reflexpr","register","reinterpret_cast|10","requires","return","sizeof","static_assert","static_cast|10","struct","switch","synchronized","template","this","thread_local","throw","transaction_safe","transaction_safe_dynamic","true","try","typedef","typeid","typename","union","using","virtual","volatile","while","xor","xor_eq"],C=["bool","char","char16_t","char32_t","char8_t","double","float","int","long","short","void","wchar_t","unsigned","signed","const","static"],M=["any","auto_ptr","barrier","binary_semaphore","bitset","complex","condition_variable","condition_variable_any","counting_semaphore","deque","false_type","flat_map","flat_set","future","imaginary","initializer_list","istringstream","jthread","latch","lock_guard","multimap","multiset","mutex","optional","ostringstream","packaged_task","pair","promise","priority_queue","queue","recursive_mutex","recursive_timed_mutex","scoped_lock","set","shared_future","shared_lock","shared_mutex","shared_timed_mutex","shared_ptr","stack","string_view","stringstream","timed_mutex","thread","true_type","tuple","unique_lock","unique_ptr","unordered_map","unordered_multimap","unordered_multiset","unordered_set","variant","vector","weak_ptr","wstring","wstring_view"],w=["abort","abs","acos","apply","as_const","asin","atan","atan2","calloc","ceil","cerr","cin","clog","cos","cosh","cout","declval","endl","exchange","exit","exp","fabs","floor","fmod","forward","fprintf","fputs","free","frexp","fscanf","future","invoke","isalnum","isalpha","iscntrl","isdigit","isgraph","islower","isprint","ispunct","isspace","isupper","isxdigit","labs","launder","ldexp","log","log10","make_pair","make_shared","make_shared_for_overwrite","make_tuple","make_unique","malloc","memchr","memcmp","memcpy","memset","modf","move","pow","printf","putchar","puts","realloc","scanf","sin","sinh","snprintf","sprintf","sqrt","sscanf","std","stderr","stdin","stdout","strcat","strchr","strcmp","strcpy","strcspn","strlen","strncat","strncmp","strncpy","strpbrk","strrchr","strspn","strstr","swap","tan","tanh","terminate","to_underlying","tolower","toupper","vfprintf","visit","vprintf","vsprintf"],Q={type:C,keyword:x,literal:["NULL","false","nullopt","nullptr","true"],built_in:["_Pragma"],_type_hints:M},te={className:"function.dispatch",relevance:0,keywords:{_hint:w},begin:a.concat(/\b/,/(?!decltype)/,/(?!if)/,/(?!for)/,/(?!switch)/,/(?!while)/,n.IDENT_RE,a.lookahead(/(<[^<>]+>|)\s*\(/))},L=[te,h,g,r,n.C_BLOCK_COMMENT_MODE,b,p],ce={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:Q,contains:L.concat([{begin:/\(/,end:/\)/,keywords:Q,contains:L.concat(["self"]),relevance:0}]),relevance:0},ee={className:"function",begin:"("+u+"[\\*&\\s]+)+"+k,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:Q,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:o,keywords:Q,relevance:0},{begin:k,returnBegin:!0,contains:[v],relevance:0},{begin:/::/,relevance:0},{begin:/:/,endsWithParent:!0,contains:[p,b]},{relevance:0,match:/,/},{className:"params",begin:/\(/,end:/\)/,keywords:Q,relevance:0,contains:[r,n.C_BLOCK_COMMENT_MODE,p,b,g,{begin:/\(/,end:/\)/,keywords:Q,relevance:0,contains:["self",r,n.C_BLOCK_COMMENT_MODE,p,b,g]}]},g,r,n.C_BLOCK_COMMENT_MODE,h]};return{name:"C++",aliases:["cc","c++","h++","hpp","hh","hxx","cxx"],keywords:Q,illegal:"</",classNameAliases:{"function.dispatch":"built_in"},contains:[].concat(ce,ee,te,L,[h,{begin:"\\b(deque|list|queue|priority_queue|pair|stack|vector|map|set|bitset|multiset|multimap|unordered_map|unordered_set|unordered_multiset|unordered_multimap|array|tuple|optional|variant|function|flat_map|flat_set)\\s*<(?!<)",end:">",keywords:Q,contains:["self",g]},{begin:n.IDENT_RE+"::",keywords:Q},{match:[/\b(?:enum(?:\s+(?:class|struct))?|class|struct|union)/,/\s+/,/\w+/],className:{1:"keyword",3:"title.class"}}])}}function r_(n){const a=["bool","byte","char","decimal","delegate","double","dynamic","enum","float","int","long","nint","nuint","object","sbyte","short","string","ulong","uint","ushort"],r=["public","private","protected","static","internal","protected","abstract","async","extern","override","unsafe","virtual","new","sealed","partial"],o=["default","false","null","true"],s=["abstract","as","base","break","case","catch","class","const","continue","do","else","event","explicit","extern","finally","fixed","for","foreach","goto","if","implicit","in","interface","internal","is","lock","namespace","new","operator","out","override","params","private","protected","public","readonly","record","ref","return","scoped","sealed","sizeof","stackalloc","static","struct","switch","this","throw","try","typeof","unchecked","unsafe","using","virtual","void","volatile","while"],f=["add","alias","and","ascending","args","async","await","by","descending","dynamic","equals","file","from","get","global","group","init","into","join","let","nameof","not","notnull","on","or","orderby","partial","record","remove","required","scoped","select","set","unmanaged","value|0","var","when","where","with","yield"],u={keyword:s.concat(f),built_in:a,literal:o},g=n.inherit(n.TITLE_MODE,{begin:"[a-zA-Z](\\.?\\w)*"}),m={className:"number",variants:[{begin:"\\b(0b[01']+)"},{begin:"(-?)\\b([\\d']+(\\.[\\d']*)?|\\.[\\d']+)(u|U|l|L|ul|UL|f|F|b|B)"},{begin:"(-?)(\\b0[xX][a-fA-F0-9']+|(\\b[\\d']+(\\.[\\d']*)?|\\.[\\d']+)([eE][-+]?[\\d']+)?)"}],relevance:0},p={className:"string",begin:/"""("*)(?!")(.|\n)*?"""\1/,relevance:1},b={className:"string",begin:'@"',end:'"',contains:[{begin:'""'}]},h=n.inherit(b,{illegal:/\n/}),v={className:"subst",begin:/\{/,end:/\}/,keywords:u},k=n.inherit(v,{illegal:/\n/}),x={className:"string",begin:/\$"/,end:'"',illegal:/\n/,contains:[{begin:/\{\{/},{begin:/\}\}/},n.BACKSLASH_ESCAPE,k]},C={className:"string",begin:/\$@"/,end:'"',contains:[{begin:/\{\{/},{begin:/\}\}/},{begin:'""'},v]},M=n.inherit(C,{illegal:/\n/,contains:[{begin:/\{\{/},{begin:/\}\}/},{begin:'""'},k]});v.contains=[C,x,b,n.APOS_STRING_MODE,n.QUOTE_STRING_MODE,m,n.C_BLOCK_COMMENT_MODE],k.contains=[M,x,h,n.APOS_STRING_MODE,n.QUOTE_STRING_MODE,m,n.inherit(n.C_BLOCK_COMMENT_MODE,{illegal:/\n/})];const w={variants:[p,C,x,b,n.APOS_STRING_MODE,n.QUOTE_STRING_MODE]},q={begin:"<",end:">",contains:[{beginKeywords:"in out"},g]},H=n.IDENT_RE+"(<"+n.IDENT_RE+"(\\s*,\\s*"+n.IDENT_RE+")*>)?(\\[\\])?",Q={begin:"@"+n.IDENT_RE,relevance:0};return{name:"C#",aliases:["cs","c#"],keywords:u,illegal:/::/,contains:[n.COMMENT("///","$",{returnBegin:!0,contains:[{className:"doctag",variants:[{begin:"///",relevance:0},{begin:"<!--|-->"},{begin:"</?",end:">"}]}]}),n.C_LINE_COMMENT_MODE,n.C_BLOCK_COMMENT_MODE,{className:"meta",begin:"#",end:"$",keywords:{keyword:"if else elif endif define undef warning error line region endregion pragma checksum"}},w,m,{beginKeywords:"class interface",relevance:0,end:/[{;=]/,illegal:/[^\s:,]/,contains:[{beginKeywords:"where class"},g,q,n.C_LINE_COMMENT_MODE,n.C_BLOCK_COMMENT_MODE]},{beginKeywords:"namespace",relevance:0,end:/[{;=]/,illegal:/[^\s:]/,contains:[g,n.C_LINE_COMMENT_MODE,n.C_BLOCK_COMMENT_MODE]},{beginKeywords:"record",relevance:0,end:/[{;=]/,illegal:/[^\s:]/,contains:[g,q,n.C_LINE_COMMENT_MODE,n.C_BLOCK_COMMENT_MODE]},{className:"meta",begin:"^\\s*\\[(?=[\\w])",excludeBegin:!0,end:"\\]",excludeEnd:!0,contains:[{className:"string",begin:/"/,end:/"/}]},{beginKeywords:"new return throw await else",relevance:0},{className:"function",begin:"("+H+"\\s+)+"+n.IDENT_RE+"\\s*(<[^=]+>\\s*)?\\(",returnBegin:!0,end:/\s*[{;=]/,excludeEnd:!0,keywords:u,contains:[{beginKeywords:r.join(" "),relevance:0},{begin:n.IDENT_RE+"\\s*(<[^=]+>\\s*)?\\(",returnBegin:!0,contains:[n.TITLE_MODE,q],relevance:0},{match:/\(\)/},{className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:u,relevance:0,contains:[w,m,n.C_BLOCK_COMMENT_MODE]},n.C_LINE_COMMENT_MODE,n.C_BLOCK_COMMENT_MODE]},Q]}}const l_=n=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:n.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[n.APOS_STRING_MODE,n.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:n.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z_][A-Za-z0-9_-]*/}}),o_=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","optgroup","option","p","picture","q","quote","samp","section","select","source","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],s_=["defs","g","marker","mask","pattern","svg","switch","symbol","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feFlood","feGaussianBlur","feImage","feMerge","feMorphology","feOffset","feSpecularLighting","feTile","feTurbulence","linearGradient","radialGradient","stop","circle","ellipse","image","line","path","polygon","polyline","rect","text","use","textPath","tspan","foreignObject","clipPath"],c_=[...o_,...s_],u_=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"].sort().reverse(),f_=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"].sort().reverse(),d_=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"].sort().reverse(),p_=["accent-color","align-content","align-items","align-self","alignment-baseline","all","anchor-name","animation","animation-composition","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-range","animation-range-end","animation-range-start","animation-timeline","animation-timing-function","appearance","aspect-ratio","backdrop-filter","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-position-x","background-position-y","background-repeat","background-size","baseline-shift","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-end-end-radius","border-end-start-radius","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-start-end-radius","border-start-start-radius","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-align","box-decoration-break","box-direction","box-flex","box-flex-group","box-lines","box-ordinal-group","box-orient","box-pack","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","color-scheme","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","contain-intrinsic-block-size","contain-intrinsic-height","contain-intrinsic-inline-size","contain-intrinsic-size","contain-intrinsic-width","container","container-name","container-type","content","content-visibility","counter-increment","counter-reset","counter-set","cue","cue-after","cue-before","cursor","cx","cy","direction","display","dominant-baseline","empty-cells","enable-background","field-sizing","fill","fill-opacity","fill-rule","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flood-color","flood-opacity","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-optical-sizing","font-palette","font-size","font-size-adjust","font-smooth","font-smoothing","font-stretch","font-style","font-synthesis","font-synthesis-position","font-synthesis-small-caps","font-synthesis-style","font-synthesis-weight","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-emoji","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","forced-color-adjust","gap","glyph-orientation-horizontal","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphenate-character","hyphenate-limit-chars","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","initial-letter","initial-letter-align","inline-size","inset","inset-area","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","justify-content","justify-items","justify-self","kerning","left","letter-spacing","lighting-color","line-break","line-height","line-height-step","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","margin-trim","marker","marker-end","marker-mid","marker-start","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","masonry-auto-flow","math-depth","math-shift","math-style","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-anchor","overflow-block","overflow-clip-margin","overflow-inline","overflow-wrap","overflow-x","overflow-y","overlay","overscroll-behavior","overscroll-behavior-block","overscroll-behavior-inline","overscroll-behavior-x","overscroll-behavior-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","paint-order","pause","pause-after","pause-before","perspective","perspective-origin","place-content","place-items","place-self","pointer-events","position","position-anchor","position-visibility","print-color-adjust","quotes","r","resize","rest","rest-after","rest-before","right","rotate","row-gap","ruby-align","ruby-position","scale","scroll-behavior","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scroll-timeline","scroll-timeline-axis","scroll-timeline-name","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","shape-rendering","speak","speak-as","src","stop-color","stop-opacity","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","tab-size","table-layout","text-align","text-align-all","text-align-last","text-anchor","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-skip-ink","text-decoration-style","text-decoration-thickness","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-size-adjust","text-transform","text-underline-offset","text-underline-position","text-wrap","text-wrap-mode","text-wrap-style","timeline-scope","top","touch-action","transform","transform-box","transform-origin","transform-style","transition","transition-behavior","transition-delay","transition-duration","transition-property","transition-timing-function","translate","unicode-bidi","user-modify","user-select","vector-effect","vertical-align","view-timeline","view-timeline-axis","view-timeline-inset","view-timeline-name","view-transition-name","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","white-space-collapse","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","x","y","z-index","zoom"].sort().reverse();function g_(n){const a=n.regex,r=l_(n),o={begin:/-(webkit|moz|ms|o)-(?=[a-z])/},s="and or not only",f=/@-?\w[\w]*(-\w+)*/,u="[a-zA-Z-][a-zA-Z0-9_-]*",g=[n.APOS_STRING_MODE,n.QUOTE_STRING_MODE];return{name:"CSS",case_insensitive:!0,illegal:/[=|'\$]/,keywords:{keyframePosition:"from to"},classNameAliases:{keyframePosition:"selector-tag"},contains:[r.BLOCK_COMMENT,o,r.CSS_NUMBER_MODE,{className:"selector-id",begin:/#[A-Za-z0-9_-]+/,relevance:0},{className:"selector-class",begin:"\\."+u,relevance:0},r.ATTRIBUTE_SELECTOR_MODE,{className:"selector-pseudo",variants:[{begin:":("+f_.join("|")+")"},{begin:":(:)?("+d_.join("|")+")"}]},r.CSS_VARIABLE,{className:"attribute",begin:"\\b("+p_.join("|")+")\\b"},{begin:/:/,end:/[;}{]/,contains:[r.BLOCK_COMMENT,r.HEXCOLOR,r.IMPORTANT,r.CSS_NUMBER_MODE,...g,{begin:/(url|data-uri)\(/,end:/\)/,relevance:0,keywords:{built_in:"url data-uri"},contains:[...g,{className:"string",begin:/[^)]/,endsWithParent:!0,excludeEnd:!0}]},r.FUNCTION_DISPATCH]},{begin:a.lookahead(/@/),end:"[{;]",relevance:0,illegal:/:/,contains:[{className:"keyword",begin:f},{begin:/\s/,endsWithParent:!0,excludeEnd:!0,relevance:0,keywords:{$pattern:/[a-z-]+/,keyword:s,attribute:u_.join(" ")},contains:[{begin:/[a-z-]+(?=:)/,className:"attribute"},...g,r.CSS_NUMBER_MODE]}]},{className:"selector-tag",begin:"\\b("+c_.join("|")+")\\b"}]}}function m_(n){const a=n.regex;return{name:"Diff",aliases:["patch"],contains:[{className:"meta",relevance:10,match:a.either(/^@@ +-\d+,\d+ +\+\d+,\d+ +@@/,/^\*\*\* +\d+,\d+ +\*\*\*\*$/,/^--- +\d+,\d+ +----$/)},{className:"comment",variants:[{begin:a.either(/Index: /,/^index/,/={3,}/,/^-{3}/,/^\*{3} /,/^\+{3}/,/^diff --git/),end:/$/},{match:/^\*{15}$/}]},{className:"addition",begin:/^\+/,end:/$/},{className:"deletion",begin:/^-/,end:/$/},{className:"addition",begin:/^!/,end:/$/}]}}function h_(n){const f={keyword:["break","case","chan","const","continue","default","defer","else","fallthrough","for","func","go","goto","if","import","interface","map","package","range","return","select","struct","switch","type","var"],type:["bool","byte","complex64","complex128","error","float32","float64","int8","int16","int32","int64","string","uint8","uint16","uint32","uint64","int","uint","uintptr","rune"],literal:["true","false","iota","nil"],built_in:["append","cap","close","complex","copy","imag","len","make","new","panic","print","println","real","recover","delete"]};return{name:"Go",aliases:["golang"],keywords:f,illegal:"</",contains:[n.C_LINE_COMMENT_MODE,n.C_BLOCK_COMMENT_MODE,{className:"string",variants:[n.QUOTE_STRING_MODE,n.APOS_STRING_MODE,{begin:"`",end:"`"}]},{className:"number",variants:[{match:/-?\b0[xX]\.[a-fA-F0-9](_?[a-fA-F0-9])*[pP][+-]?\d(_?\d)*i?/,relevance:0},{match:/-?\b0[xX](_?[a-fA-F0-9])+((\.([a-fA-F0-9](_?[a-fA-F0-9])*)?)?[pP][+-]?\d(_?\d)*)?i?/,relevance:0},{match:/-?\b0[oO](_?[0-7])*i?/,relevance:0},{match:/-?\.\d(_?\d)*([eE][+-]?\d(_?\d)*)?i?/,relevance:0},{match:/-?\b\d(_?\d)*(\.(\d(_?\d)*)?)?([eE][+-]?\d(_?\d)*)?i?/,relevance:0}]},{begin:/:=/},{className:"function",beginKeywords:"func",end:"\\s*(\\{|$)",excludeEnd:!0,contains:[n.TITLE_MODE,{className:"params",begin:/\(/,end:/\)/,endsParent:!0,keywords:f,illegal:/["']/}]}]}}function b_(n){const a=n.regex,r=/[_A-Za-z][_0-9A-Za-z]*/;return{name:"GraphQL",aliases:["gql"],case_insensitive:!0,disableAutodetect:!1,keywords:{keyword:["query","mutation","subscription","type","input","schema","directive","interface","union","scalar","fragment","enum","on"],literal:["true","false","null"]},contains:[n.HASH_COMMENT_MODE,n.QUOTE_STRING_MODE,n.NUMBER_MODE,{scope:"punctuation",match:/[.]{3}/,relevance:0},{scope:"punctuation",begin:/[\!\(\)\:\=\[\]\{\|\}]{1}/,relevance:0},{scope:"variable",begin:/\$/,end:/\W/,excludeEnd:!0,relevance:0},{scope:"meta",match:/@\w+/,excludeEnd:!0},{scope:"symbol",begin:a.concat(r,a.lookahead(/\s*:/)),relevance:0}],illegal:[/[;<']/,/BEGIN/]}}function y_(n){const a=n.regex,r={className:"number",relevance:0,variants:[{begin:/([+-]+)?[\d]+_[\d_]+/},{begin:n.NUMBER_RE}]},o=n.COMMENT();o.variants=[{begin:/;/,end:/$/},{begin:/#/,end:/$/}];const s={className:"variable",variants:[{begin:/\$[\w\d"][\w\d_]*/},{begin:/\$\{(.*?)\}/}]},f={className:"literal",begin:/\bon|off|true|false|yes|no\b/},u={className:"string",contains:[n.BACKSLASH_ESCAPE],variants:[{begin:"'''",end:"'''",relevance:10},{begin:'"""',end:'"""',relevance:10},{begin:'"',end:'"'},{begin:"'",end:"'"}]},g={begin:/\[/,end:/\]/,contains:[o,f,s,u,r,"self"],relevance:0},m=/[A-Za-z0-9_-]+/,p=/"(\\"|[^"])*"/,b=/'[^']*'/,h=a.either(m,p,b),v=a.concat(h,"(\\s*\\.\\s*",h,")*",a.lookahead(/\s*=\s*[^#\s]/));return{name:"TOML, also INI",aliases:["toml"],case_insensitive:!0,illegal:/\S/,contains:[o,{className:"section",begin:/\[+/,end:/\]+/},{begin:v,className:"attr",starts:{end:/$/,contains:[o,g,f,s,u,r]}}]}}var ir="[0-9](_*[0-9])*",so=`\\.(${ir})`,co="[0-9a-fA-F](_*[0-9a-fA-F])*",wp={className:"number",variants:[{begin:`(\\b(${ir})((${so})|\\.)?|(${so}))[eE][+-]?(${ir})[fFdD]?\\b`},{begin:`\\b(${ir})((${so})[fFdD]?\\b|\\.([fFdD]\\b)?)`},{begin:`(${so})[fFdD]?\\b`},{begin:`\\b(${ir})[fFdD]\\b`},{begin:`\\b0[xX]((${co})\\.?|(${co})?\\.(${co}))[pP][+-]?(${ir})[fFdD]?\\b`},{begin:"\\b(0|[1-9](_*[0-9])*)[lL]?\\b"},{begin:`\\b0[xX](${co})[lL]?\\b`},{begin:"\\b0(_*[0-7])*[lL]?\\b"},{begin:"\\b0[bB][01](_*[01])*[lL]?\\b"}],relevance:0};function Tp(n,a,r){return r===-1?"":n.replace(a,o=>Tp(n,a,r-1))}function v_(n){const a=n.regex,r="[À-ʸa-zA-Z_$][À-ʸa-zA-Z_$0-9]*",o=r+Tp("(?:<"+r+"~~~(?:\\s*,\\s*"+r+"~~~)*>)?",/~~~/g,2),m={keyword:["synchronized","abstract","private","var","static","if","const ","for","while","strictfp","finally","protected","import","native","final","void","enum","else","break","transient","catch","instanceof","volatile","case","assert","package","default","public","try","switch","continue","throws","protected","public","private","module","requires","exports","do","sealed","yield","permits","goto","when"],literal:["false","true","null"],type:["char","boolean","long","float","int","byte","short","double"],built_in:["super","this"]},p={className:"meta",begin:"@"+r,contains:[{begin:/\(/,end:/\)/,contains:["self"]}]},b={className:"params",begin:/\(/,end:/\)/,keywords:m,relevance:0,contains:[n.C_BLOCK_COMMENT_MODE],endsParent:!0};return{name:"Java",aliases:["jsp"],keywords:m,illegal:/<\/|#/,contains:[n.COMMENT("/\\*\\*","\\*/",{relevance:0,contains:[{begin:/\w+@/,relevance:0},{className:"doctag",begin:"@[A-Za-z]+"}]}),{begin:/import java\.[a-z]+\./,keywords:"import",relevance:2},n.C_LINE_COMMENT_MODE,n.C_BLOCK_COMMENT_MODE,{begin:/"""/,end:/"""/,className:"string",contains:[n.BACKSLASH_ESCAPE]},n.APOS_STRING_MODE,n.QUOTE_STRING_MODE,{match:[/\b(?:class|interface|enum|extends|implements|new)/,/\s+/,r],className:{1:"keyword",3:"title.class"}},{match:/non-sealed/,scope:"keyword"},{begin:[a.concat(/(?!else)/,r),/\s+/,r,/\s+/,/=(?!=)/],className:{1:"type",3:"variable",5:"operator"}},{begin:[/record/,/\s+/,r],className:{1:"keyword",3:"title.class"},contains:[b,n.C_LINE_COMMENT_MODE,n.C_BLOCK_COMMENT_MODE]},{beginKeywords:"new throw return else",relevance:0},{begin:["(?:"+o+"\\s+)",n.UNDERSCORE_IDENT_RE,/\s*(?=\()/],className:{2:"title.function"},keywords:m,contains:[{className:"params",begin:/\(/,end:/\)/,keywords:m,relevance:0,contains:[p,n.APOS_STRING_MODE,n.QUOTE_STRING_MODE,wp,n.C_BLOCK_COMMENT_MODE]},n.C_LINE_COMMENT_MODE,n.C_BLOCK_COMMENT_MODE]},wp,p]}}const Ap="[A-Za-z$_][0-9A-Za-z$_]*",k_=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends","using"],E_=["true","false","null","undefined","NaN","Infinity"],Np=["Object","Function","Boolean","Symbol","Math","Date","Number","BigInt","String","RegExp","Array","Float32Array","Float64Array","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Int32Array","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array","Set","Map","WeakSet","WeakMap","ArrayBuffer","SharedArrayBuffer","Atomics","DataView","JSON","Promise","Generator","GeneratorFunction","AsyncFunction","Reflect","Proxy","Intl","WebAssembly"],Cp=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],Op=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],__=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","global"],x_=[].concat(Op,Np,Cp);function S_(n){const a=n.regex,r=(K,{after:ve})=>{const S="</"+K[0].slice(1);return K.input.indexOf(S,ve)!==-1},o=Ap,s={begin:"<>",end:"</>"},f=/<[A-Za-z0-9\\._:-]+\s*\/>/,u={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(K,ve)=>{const S=K[0].length+K.index,Be=K.input[S];if(Be==="<"||Be===","){ve.ignoreMatch();return}Be===">"&&(r(K,{after:S})||ve.ignoreMatch());let T;const _=K.input.substring(S);if(T=_.match(/^\s*=/)){ve.ignoreMatch();return}if((T=_.match(/^\s+extends\s+/))&&T.index===0){ve.ignoreMatch();return}}},g={$pattern:Ap,keyword:k_,literal:E_,built_in:x_,"variable.language":__},m="[0-9](_?[0-9])*",p=`\\.(${m})`,b="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",h={className:"number",variants:[{begin:`(\\b(${b})((${p})|\\.)?|(${p}))[eE][+-]?(${m})\\b`},{begin:`\\b(${b})\\b((${p})\\b|\\.)?|(${p})\\b`},{begin:"\\b(0|[1-9](_?[0-9])*)n\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*n?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*n?\\b"},{begin:"\\b0[0-7]+n?\\b"}],relevance:0},v={className:"subst",begin:"\\$\\{",end:"\\}",keywords:g,contains:[]},k={begin:".?html`",end:"",starts:{end:"`",returnEnd:!1,contains:[n.BACKSLASH_ESCAPE,v],subLanguage:"xml"}},x={begin:".?css`",end:"",starts:{end:"`",returnEnd:!1,contains:[n.BACKSLASH_ESCAPE,v],subLanguage:"css"}},C={begin:".?gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[n.BACKSLASH_ESCAPE,v],subLanguage:"graphql"}},M={className:"string",begin:"`",end:"`",contains:[n.BACKSLASH_ESCAPE,v]},q={className:"comment",variants:[n.COMMENT(/\/\*\*(?!\/)/,"\\*/",{relevance:0,contains:[{begin:"(?=@[A-Za-z]+)",relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"},{className:"type",begin:"\\{",end:"\\}",excludeEnd:!0,excludeBegin:!0,relevance:0},{className:"variable",begin:o+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),n.C_BLOCK_COMMENT_MODE,n.C_LINE_COMMENT_MODE]},H=[n.APOS_STRING_MODE,n.QUOTE_STRING_MODE,k,x,C,M,{match:/\$\d+/},h];v.contains=H.concat({begin:/\{/,end:/\}/,keywords:g,contains:["self"].concat(H)});const Q=[].concat(q,v.contains),te=Q.concat([{begin:/(\s*)\(/,end:/\)/,keywords:g,contains:["self"].concat(Q)}]),L={className:"params",begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:g,contains:te},ce={variants:[{match:[/class/,/\s+/,o,/\s+/,/extends/,/\s+/,a.concat(o,"(",a.concat(/\./,o),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,o],scope:{1:"keyword",3:"title.class"}}]},ee={relevance:0,match:a.either(/\bJSON/,/\b[A-Z][a-z]+([A-Z][a-z]*|\d)*/,/\b[A-Z]{2,}([A-Z][a-z]+|\d)+([A-Z][a-z]*)*/,/\b[A-Z]{2,}[a-z]+([A-Z][a-z]+|\d)*([A-Z][a-z]*)*/),className:"title.class",keywords:{_:[...Np,...Cp]}},fe={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},z={variants:[{match:[/function/,/\s+/,o,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[L],illegal:/%/},se={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function re(K){return a.concat("(?!",K.join("|"),")")}const _e={match:a.concat(/\b/,re([...Op,"super","import"].map(K=>`${K}\\s*\\(`)),o,a.lookahead(/\s*\(/)),className:"title.function",relevance:0},oe={begin:a.concat(/\./,a.lookahead(a.concat(o,/(?![0-9A-Za-z$_(])/))),end:o,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},X={match:[/get|set/,/\s+/,o,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},L]},Y="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+n.UNDERSCORE_IDENT_RE+")\\s*=>",G={match:[/const|var|let/,/\s+/,o,/\s*/,/=\s*/,/(async\s*)?/,a.lookahead(Y)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[L]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:g,exports:{PARAMS_CONTAINS:te,CLASS_REFERENCE:ee},illegal:/#(?![$_A-z])/,contains:[n.SHEBANG({label:"shebang",binary:"node",relevance:5}),fe,n.APOS_STRING_MODE,n.QUOTE_STRING_MODE,k,x,C,M,q,{match:/\$\d+/},h,ee,{scope:"attr",match:o+a.lookahead(":"),relevance:0},G,{begin:"("+n.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[q,n.REGEXP_MODE,{className:"function",begin:Y,returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:n.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:g,contains:te}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:s.begin,end:s.end},{match:f},{begin:u.begin,"on:begin":u.isTrulyOpeningTag,end:u.end}],subLanguage:"xml",contains:[{begin:u.begin,end:u.end,skip:!0,contains:["self"]}]}]},z,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+n.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[L,n.inherit(n.TITLE_MODE,{begin:o,className:"title.function"})]},{match:/\.\.\./,relevance:0},oe,{match:"\\$"+o,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[L]},_e,se,ce,X,{match:/\$[(.]/}]}}function w_(n){const a={className:"attr",begin:/"(\\.|[^\\"\r\n])*"(?=\s*:)/,relevance:1.01},r={match:/[{}[\],:]/,className:"punctuation",relevance:0},o=["true","false","null"],s={scope:"literal",beginKeywords:o.join(" ")};return{name:"JSON",aliases:["jsonc"],keywords:{literal:o},contains:[a,r,n.QUOTE_STRING_MODE,s,n.C_NUMBER_MODE,n.C_LINE_COMMENT_MODE,n.C_BLOCK_COMMENT_MODE],illegal:"\\S"}}var ar="[0-9](_*[0-9])*",uo=`\\.(${ar})`,fo="[0-9a-fA-F](_*[0-9a-fA-F])*",T_={className:"number",variants:[{begin:`(\\b(${ar})((${uo})|\\.)?|(${uo}))[eE][+-]?(${ar})[fFdD]?\\b`},{begin:`\\b(${ar})((${uo})[fFdD]?\\b|\\.([fFdD]\\b)?)`},{begin:`(${uo})[fFdD]?\\b`},{begin:`\\b(${ar})[fFdD]\\b`},{begin:`\\b0[xX]((${fo})\\.?|(${fo})?\\.(${fo}))[pP][+-]?(${ar})[fFdD]?\\b`},{begin:"\\b(0|[1-9](_*[0-9])*)[lL]?\\b"},{begin:`\\b0[xX](${fo})[lL]?\\b`},{begin:"\\b0(_*[0-7])*[lL]?\\b"},{begin:"\\b0[bB][01](_*[01])*[lL]?\\b"}],relevance:0};function A_(n){const a={keyword:"abstract as val var vararg get set class object open private protected public noinline crossinline dynamic final enum if else do while for when throw try catch finally import package is in fun override companion reified inline lateinit init interface annotation data sealed internal infix operator out by constructor super tailrec where const inner suspend typealias external expect actual",built_in:"Byte Short Char Int Long Boolean Float Double Void Unit Nothing",literal:"true false null"},r={className:"keyword",begin:/\b(break|continue|return|this)\b/,starts:{contains:[{className:"symbol",begin:/@\w+/}]}},o={className:"symbol",begin:n.UNDERSCORE_IDENT_RE+"@"},s={className:"subst",begin:/\$\{/,end:/\}/,contains:[n.C_NUMBER_MODE]},f={className:"variable",begin:"\\$"+n.UNDERSCORE_IDENT_RE},u={className:"string",variants:[{begin:'"""',end:'"""(?=[^"])',contains:[f,s]},{begin:"'",end:"'",illegal:/\n/,contains:[n.BACKSLASH_ESCAPE]},{begin:'"',end:'"',illegal:/\n/,contains:[n.BACKSLASH_ESCAPE,f,s]}]};s.contains.push(u);const g={className:"meta",begin:"@(?:file|property|field|get|set|receiver|param|setparam|delegate)\\s*:(?:\\s*"+n.UNDERSCORE_IDENT_RE+")?"},m={className:"meta",begin:"@"+n.UNDERSCORE_IDENT_RE,contains:[{begin:/\(/,end:/\)/,contains:[n.inherit(u,{className:"string"}),"self"]}]},p=T_,b=n.COMMENT("/\\*","\\*/",{contains:[n.C_BLOCK_COMMENT_MODE]}),h={variants:[{className:"type",begin:n.UNDERSCORE_IDENT_RE},{begin:/\(/,end:/\)/,contains:[]}]},v=h;return v.variants[1].contains=[h],h.variants[1].contains=[v],{name:"Kotlin",aliases:["kt","kts"],keywords:a,contains:[n.COMMENT("/\\*\\*","\\*/",{relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"}]}),n.C_LINE_COMMENT_MODE,b,r,o,g,m,{className:"function",beginKeywords:"fun",end:"[(]|$",returnBegin:!0,excludeEnd:!0,keywords:a,relevance:5,contains:[{begin:n.UNDERSCORE_IDENT_RE+"\\s*\\(",returnBegin:!0,relevance:0,contains:[n.UNDERSCORE_TITLE_MODE]},{className:"type",begin:/</,end:/>/,keywords:"reified",relevance:0},{className:"params",begin:/\(/,end:/\)/,endsParent:!0,keywords:a,relevance:0,contains:[{begin:/:/,end:/[=,\/]/,endsWithParent:!0,contains:[h,n.C_LINE_COMMENT_MODE,b],relevance:0},n.C_LINE_COMMENT_MODE,b,g,m,u,n.C_NUMBER_MODE]},b]},{begin:[/class|interface|trait/,/\s+/,n.UNDERSCORE_IDENT_RE],beginScope:{3:"title.class"},keywords:"class interface trait",end:/[:\{(]|$/,excludeEnd:!0,illegal:"extends implements",contains:[{beginKeywords:"public protected internal private constructor"},n.UNDERSCORE_TITLE_MODE,{className:"type",begin:/</,end:/>/,excludeBegin:!0,excludeEnd:!0,relevance:0},{className:"type",begin:/[,:]\s*/,end:/[<\(,){\s]|$/,excludeBegin:!0,returnEnd:!0},g,m]},u,{className:"meta",begin:"^#!/usr/bin/env",end:"$",illegal:`
25
- `},p]}}const N_=n=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:n.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[n.APOS_STRING_MODE,n.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:n.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z_][A-Za-z0-9_-]*/}}),C_=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","optgroup","option","p","picture","q","quote","samp","section","select","source","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],O_=["defs","g","marker","mask","pattern","svg","switch","symbol","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feFlood","feGaussianBlur","feImage","feMerge","feMorphology","feOffset","feSpecularLighting","feTile","feTurbulence","linearGradient","radialGradient","stop","circle","ellipse","image","line","path","polygon","polyline","rect","text","use","textPath","tspan","foreignObject","clipPath"],M_=[...C_,...O_],R_=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"].sort().reverse(),Mp=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"].sort().reverse(),Rp=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"].sort().reverse(),D_=["accent-color","align-content","align-items","align-self","alignment-baseline","all","anchor-name","animation","animation-composition","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-range","animation-range-end","animation-range-start","animation-timeline","animation-timing-function","appearance","aspect-ratio","backdrop-filter","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-position-x","background-position-y","background-repeat","background-size","baseline-shift","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-end-end-radius","border-end-start-radius","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-start-end-radius","border-start-start-radius","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-align","box-decoration-break","box-direction","box-flex","box-flex-group","box-lines","box-ordinal-group","box-orient","box-pack","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","color-scheme","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","contain-intrinsic-block-size","contain-intrinsic-height","contain-intrinsic-inline-size","contain-intrinsic-size","contain-intrinsic-width","container","container-name","container-type","content","content-visibility","counter-increment","counter-reset","counter-set","cue","cue-after","cue-before","cursor","cx","cy","direction","display","dominant-baseline","empty-cells","enable-background","field-sizing","fill","fill-opacity","fill-rule","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flood-color","flood-opacity","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-optical-sizing","font-palette","font-size","font-size-adjust","font-smooth","font-smoothing","font-stretch","font-style","font-synthesis","font-synthesis-position","font-synthesis-small-caps","font-synthesis-style","font-synthesis-weight","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-emoji","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","forced-color-adjust","gap","glyph-orientation-horizontal","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphenate-character","hyphenate-limit-chars","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","initial-letter","initial-letter-align","inline-size","inset","inset-area","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","justify-content","justify-items","justify-self","kerning","left","letter-spacing","lighting-color","line-break","line-height","line-height-step","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","margin-trim","marker","marker-end","marker-mid","marker-start","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","masonry-auto-flow","math-depth","math-shift","math-style","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-anchor","overflow-block","overflow-clip-margin","overflow-inline","overflow-wrap","overflow-x","overflow-y","overlay","overscroll-behavior","overscroll-behavior-block","overscroll-behavior-inline","overscroll-behavior-x","overscroll-behavior-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","paint-order","pause","pause-after","pause-before","perspective","perspective-origin","place-content","place-items","place-self","pointer-events","position","position-anchor","position-visibility","print-color-adjust","quotes","r","resize","rest","rest-after","rest-before","right","rotate","row-gap","ruby-align","ruby-position","scale","scroll-behavior","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scroll-timeline","scroll-timeline-axis","scroll-timeline-name","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","shape-rendering","speak","speak-as","src","stop-color","stop-opacity","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","tab-size","table-layout","text-align","text-align-all","text-align-last","text-anchor","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-skip-ink","text-decoration-style","text-decoration-thickness","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-size-adjust","text-transform","text-underline-offset","text-underline-position","text-wrap","text-wrap-mode","text-wrap-style","timeline-scope","top","touch-action","transform","transform-box","transform-origin","transform-style","transition","transition-behavior","transition-delay","transition-duration","transition-property","transition-timing-function","translate","unicode-bidi","user-modify","user-select","vector-effect","vertical-align","view-timeline","view-timeline-axis","view-timeline-inset","view-timeline-name","view-transition-name","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","white-space-collapse","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","x","y","z-index","zoom"].sort().reverse(),L_=Mp.concat(Rp).sort().reverse();function z_(n){const a=N_(n),r=L_,o="and or not only",s="[\\w-]+",f="("+s+"|@\\{"+s+"\\})",u=[],g=[],m=function(H){return{className:"string",begin:"~?"+H+".*?"+H}},p=function(H,Q,te){return{className:H,begin:Q,relevance:te}},b={$pattern:/[a-z-]+/,keyword:o,attribute:R_.join(" ")},h={begin:"\\(",end:"\\)",contains:g,keywords:b,relevance:0};g.push(n.C_LINE_COMMENT_MODE,n.C_BLOCK_COMMENT_MODE,m("'"),m('"'),a.CSS_NUMBER_MODE,{begin:"(url|data-uri)\\(",starts:{className:"string",end:"[\\)\\n]",excludeEnd:!0}},a.HEXCOLOR,h,p("variable","@@?"+s,10),p("variable","@\\{"+s+"\\}"),p("built_in","~?`[^`]*?`"),{className:"attribute",begin:s+"\\s*:",end:":",returnBegin:!0,excludeEnd:!0},a.IMPORTANT,{beginKeywords:"and not"},a.FUNCTION_DISPATCH);const v=g.concat({begin:/\{/,end:/\}/,contains:u}),k={beginKeywords:"when",endsWithParent:!0,contains:[{beginKeywords:"and not"}].concat(g)},x={begin:f+"\\s*:",returnBegin:!0,end:/[;}]/,relevance:0,contains:[{begin:/-(webkit|moz|ms|o)-/},a.CSS_VARIABLE,{className:"attribute",begin:"\\b("+D_.join("|")+")\\b",end:/(?=:)/,starts:{endsWithParent:!0,illegal:"[<=$]",relevance:0,contains:g}}]},C={className:"keyword",begin:"@(import|media|charset|font-face|(-[a-z]+-)?keyframes|supports|document|namespace|page|viewport|host)\\b",starts:{end:"[;{}]",keywords:b,returnEnd:!0,contains:g,relevance:0}},M={className:"variable",variants:[{begin:"@"+s+"\\s*:",relevance:15},{begin:"@"+s}],starts:{end:"[;}]",returnEnd:!0,contains:v}},w={variants:[{begin:"[\\.#:&\\[>]",end:"[;{}]"},{begin:f,end:/\{/}],returnBegin:!0,returnEnd:!0,illegal:`[<='$"]`,relevance:0,contains:[n.C_LINE_COMMENT_MODE,n.C_BLOCK_COMMENT_MODE,k,p("keyword","all\\b"),p("variable","@\\{"+s+"\\}"),{begin:"\\b("+M_.join("|")+")\\b",className:"selector-tag"},a.CSS_NUMBER_MODE,p("selector-tag",f,0),p("selector-id","#"+f),p("selector-class","\\."+f,0),p("selector-tag","&",0),a.ATTRIBUTE_SELECTOR_MODE,{className:"selector-pseudo",begin:":("+Mp.join("|")+")"},{className:"selector-pseudo",begin:":(:)?("+Rp.join("|")+")"},{begin:/\(/,end:/\)/,relevance:0,contains:v},{begin:"!important"},a.FUNCTION_DISPATCH]},q={begin:s+`:(:)?(${r.join("|")})`,returnBegin:!0,contains:[w]};return u.push(n.C_LINE_COMMENT_MODE,n.C_BLOCK_COMMENT_MODE,C,M,q,x,w,k,a.FUNCTION_DISPATCH),{name:"Less",case_insensitive:!0,illegal:`[=>'/<($"]`,contains:u}}function I_(n){const a="\\[=*\\[",r="\\]=*\\]",o={begin:a,end:r,contains:["self"]},s=[n.COMMENT("--(?!"+a+")","$"),n.COMMENT("--"+a,r,{contains:[o],relevance:10})];return{name:"Lua",aliases:["pluto"],keywords:{$pattern:n.UNDERSCORE_IDENT_RE,literal:"true false nil",keyword:"and break do else elseif end for goto if in local not or repeat return then until while",built_in:"_G _ENV _VERSION __index __newindex __mode __call __metatable __tostring __len __gc __add __sub __mul __div __mod __pow __concat __unm __eq __lt __le assert collectgarbage dofile error getfenv getmetatable ipairs load loadfile loadstring module next pairs pcall print rawequal rawget rawset require select setfenv setmetatable tonumber tostring type unpack xpcall arg self coroutine resume yield status wrap create running debug getupvalue debug sethook getmetatable gethook setmetatable setlocal traceback setfenv getinfo setupvalue getlocal getregistry getfenv io lines write close flush open output type read stderr stdin input stdout popen tmpfile math log max acos huge ldexp pi cos tanh pow deg tan cosh sinh random randomseed frexp ceil floor rad abs sqrt modf asin min mod fmod log10 atan2 exp sin atan os exit setlocale date getenv difftime remove time clock tmpname rename execute package preload loadlib loaded loaders cpath config path seeall string sub upper len gfind rep find match char dump gmatch reverse byte format gsub lower table setn insert getn foreachi maxn foreach concat sort remove"},contains:s.concat([{className:"function",beginKeywords:"function",end:"\\)",contains:[n.inherit(n.TITLE_MODE,{begin:"([_a-zA-Z]\\w*\\.)*([_a-zA-Z]\\w*:)?[_a-zA-Z]\\w*"}),{className:"params",begin:"\\(",endsWithParent:!0,contains:s}].concat(s)},n.C_NUMBER_MODE,n.APOS_STRING_MODE,n.QUOTE_STRING_MODE,{className:"string",begin:a,end:r,contains:[o],relevance:5}])}}function B_(n){const a={className:"variable",variants:[{begin:"\\$\\("+n.UNDERSCORE_IDENT_RE+"\\)",contains:[n.BACKSLASH_ESCAPE]},{begin:/\$[@%<?\^\+\*]/}]},r={className:"string",begin:/"/,end:/"/,contains:[n.BACKSLASH_ESCAPE,a]},o={className:"variable",begin:/\$\([\w-]+\s/,end:/\)/,keywords:{built_in:"subst patsubst strip findstring filter filter-out sort word wordlist firstword lastword dir notdir suffix basename addsuffix addprefix join wildcard realpath abspath error warning shell origin flavor foreach if or and call eval file value"},contains:[a,r]},s={begin:"^"+n.UNDERSCORE_IDENT_RE+"\\s*(?=[:+?]?=)"},f={className:"meta",begin:/^\.PHONY:/,end:/$/,keywords:{$pattern:/[\.\w]+/,keyword:".PHONY"}},u={className:"section",begin:/^[^\s]+:/,end:/$/,contains:[a]};return{name:"Makefile",aliases:["mk","mak","make"],keywords:{$pattern:/[\w-]+/,keyword:"define endef undefine ifdef ifndef ifeq ifneq else endif include -include sinclude override export unexport private vpath"},contains:[n.HASH_COMMENT_MODE,a,r,o,s,f,u]}}function U_(n){const a=n.regex,r={begin:/<\/?[A-Za-z_]/,end:">",subLanguage:"xml",relevance:0},o={begin:"^[-\\*]{3,}",end:"$"},s={className:"code",variants:[{begin:"(`{3,})[^`](.|\\n)*?\\1`*[ ]*"},{begin:"(~{3,})[^~](.|\\n)*?\\1~*[ ]*"},{begin:"```",end:"```+[ ]*$"},{begin:"~~~",end:"~~~+[ ]*$"},{begin:"`.+?`"},{begin:"(?=^( {4}|\\t))",contains:[{begin:"^( {4}|\\t)",end:"(\\n)$"}],relevance:0}]},f={className:"bullet",begin:"^[ ]*([*+-]|(\\d+\\.))(?=\\s+)",end:"\\s+",excludeEnd:!0},u={begin:/^\[[^\n]+\]:/,returnBegin:!0,contains:[{className:"symbol",begin:/\[/,end:/\]/,excludeBegin:!0,excludeEnd:!0},{className:"link",begin:/:\s*/,end:/$/,excludeBegin:!0}]},g=/[A-Za-z][A-Za-z0-9+.-]*/,m={variants:[{begin:/\[.+?\]\[.*?\]/,relevance:0},{begin:/\[.+?\]\(((data|javascript|mailto):|(?:http|ftp)s?:\/\/).*?\)/,relevance:2},{begin:a.concat(/\[.+?\]\(/,g,/:\/\/.*?\)/),relevance:2},{begin:/\[.+?\]\([./?&#].*?\)/,relevance:1},{begin:/\[.*?\]\(.*?\)/,relevance:0}],returnBegin:!0,contains:[{match:/\[(?=\])/},{className:"string",relevance:0,begin:"\\[",end:"\\]",excludeBegin:!0,returnEnd:!0},{className:"link",relevance:0,begin:"\\]\\(",end:"\\)",excludeBegin:!0,excludeEnd:!0},{className:"symbol",relevance:0,begin:"\\]\\[",end:"\\]",excludeBegin:!0,excludeEnd:!0}]},p={className:"strong",contains:[],variants:[{begin:/_{2}(?!\s)/,end:/_{2}/},{begin:/\*{2}(?!\s)/,end:/\*{2}/}]},b={className:"emphasis",contains:[],variants:[{begin:/\*(?![*\s])/,end:/\*/},{begin:/_(?![_\s])/,end:/_/,relevance:0}]},h=n.inherit(p,{contains:[]}),v=n.inherit(b,{contains:[]});p.contains.push(v),b.contains.push(h);let k=[r,m];return[p,b,h,v].forEach(w=>{w.contains=w.contains.concat(k)}),k=k.concat(p,b),{name:"Markdown",aliases:["md","mkdown","mkd"],contains:[{className:"section",variants:[{begin:"^#{1,6}",end:"$",contains:k},{begin:"(?=^.+?\\n[=-]{2,}$)",contains:[{begin:"^[=-]*$"},{begin:"^",end:"\\n",contains:k}]}]},r,f,p,b,{className:"quote",begin:"^>\\s+",contains:k,end:"$"},s,o,m,u,{scope:"literal",match:/&([a-zA-Z0-9]+|#[0-9]{1,7}|#[Xx][0-9a-fA-F]{1,6});/}]}}function H_(n){const a={className:"built_in",begin:"\\b(AV|CA|CF|CG|CI|CL|CM|CN|CT|MK|MP|MTK|MTL|NS|SCN|SK|UI|WK|XC)\\w+"},r=/[a-zA-Z@][a-zA-Z0-9_]*/,g={"variable.language":["this","super"],$pattern:r,keyword:["while","export","sizeof","typedef","const","struct","for","union","volatile","static","mutable","if","do","return","goto","enum","else","break","extern","asm","case","default","register","explicit","typename","switch","continue","inline","readonly","assign","readwrite","self","@synchronized","id","typeof","nonatomic","IBOutlet","IBAction","strong","weak","copy","in","out","inout","bycopy","byref","oneway","__strong","__weak","__block","__autoreleasing","@private","@protected","@public","@try","@property","@end","@throw","@catch","@finally","@autoreleasepool","@synthesize","@dynamic","@selector","@optional","@required","@encode","@package","@import","@defs","@compatibility_alias","__bridge","__bridge_transfer","__bridge_retained","__bridge_retain","__covariant","__contravariant","__kindof","_Nonnull","_Nullable","_Null_unspecified","__FUNCTION__","__PRETTY_FUNCTION__","__attribute__","getter","setter","retain","unsafe_unretained","nonnull","nullable","null_unspecified","null_resettable","class","instancetype","NS_DESIGNATED_INITIALIZER","NS_UNAVAILABLE","NS_REQUIRES_SUPER","NS_RETURNS_INNER_POINTER","NS_INLINE","NS_AVAILABLE","NS_DEPRECATED","NS_ENUM","NS_OPTIONS","NS_SWIFT_UNAVAILABLE","NS_ASSUME_NONNULL_BEGIN","NS_ASSUME_NONNULL_END","NS_REFINED_FOR_SWIFT","NS_SWIFT_NAME","NS_SWIFT_NOTHROW","NS_DURING","NS_HANDLER","NS_ENDHANDLER","NS_VALUERETURN","NS_VOIDRETURN"],literal:["false","true","FALSE","TRUE","nil","YES","NO","NULL"],built_in:["dispatch_once_t","dispatch_queue_t","dispatch_sync","dispatch_async","dispatch_once"],type:["int","float","char","unsigned","signed","short","long","double","wchar_t","unichar","void","bool","BOOL","id|0","_Bool"]},m={$pattern:r,keyword:["@interface","@class","@protocol","@implementation"]};return{name:"Objective-C",aliases:["mm","objc","obj-c","obj-c++","objective-c++"],keywords:g,illegal:"</",contains:[a,n.C_LINE_COMMENT_MODE,n.C_BLOCK_COMMENT_MODE,n.C_NUMBER_MODE,n.QUOTE_STRING_MODE,n.APOS_STRING_MODE,{className:"string",variants:[{begin:'@"',end:'"',illegal:"\\n",contains:[n.BACKSLASH_ESCAPE]}]},{className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:"if else elif endif define undef warning error line pragma ifdef ifndef include"},contains:[{begin:/\\\n/,relevance:0},n.inherit(n.QUOTE_STRING_MODE,{className:"string"}),{className:"string",begin:/<.*?>/,end:/$/,illegal:"\\n"},n.C_LINE_COMMENT_MODE,n.C_BLOCK_COMMENT_MODE]},{className:"class",begin:"("+m.keyword.join("|")+")\\b",end:/(\{|$)/,excludeEnd:!0,keywords:m,contains:[n.UNDERSCORE_TITLE_MODE]},{begin:"\\."+n.UNDERSCORE_IDENT_RE,relevance:0}]}}function q_(n){const a=n.regex,r=["abs","accept","alarm","and","atan2","bind","binmode","bless","break","caller","chdir","chmod","chomp","chop","chown","chr","chroot","class","close","closedir","connect","continue","cos","crypt","dbmclose","dbmopen","defined","delete","die","do","dump","each","else","elsif","endgrent","endhostent","endnetent","endprotoent","endpwent","endservent","eof","eval","exec","exists","exit","exp","fcntl","field","fileno","flock","for","foreach","fork","format","formline","getc","getgrent","getgrgid","getgrnam","gethostbyaddr","gethostbyname","gethostent","getlogin","getnetbyaddr","getnetbyname","getnetent","getpeername","getpgrp","getpriority","getprotobyname","getprotobynumber","getprotoent","getpwent","getpwnam","getpwuid","getservbyname","getservbyport","getservent","getsockname","getsockopt","given","glob","gmtime","goto","grep","gt","hex","if","index","int","ioctl","join","keys","kill","last","lc","lcfirst","length","link","listen","local","localtime","log","lstat","lt","ma","map","method","mkdir","msgctl","msgget","msgrcv","msgsnd","my","ne","next","no","not","oct","open","opendir","or","ord","our","pack","package","pipe","pop","pos","print","printf","prototype","push","q|0","qq","quotemeta","qw","qx","rand","read","readdir","readline","readlink","readpipe","recv","redo","ref","rename","require","reset","return","reverse","rewinddir","rindex","rmdir","say","scalar","seek","seekdir","select","semctl","semget","semop","send","setgrent","sethostent","setnetent","setpgrp","setpriority","setprotoent","setpwent","setservent","setsockopt","shift","shmctl","shmget","shmread","shmwrite","shutdown","sin","sleep","socket","socketpair","sort","splice","split","sprintf","sqrt","srand","stat","state","study","sub","substr","symlink","syscall","sysopen","sysread","sysseek","system","syswrite","tell","telldir","tie","tied","time","times","tr","truncate","uc","ucfirst","umask","undef","unless","unlink","unpack","unshift","untie","until","use","utime","values","vec","wait","waitpid","wantarray","warn","when","while","write","x|0","xor","y|0"],o=/[dualxmsipngr]{0,12}/,s={$pattern:/[\w.]+/,keyword:r.join(" ")},f={className:"subst",begin:"[$@]\\{",end:"\\}",keywords:s},u={begin:/->\{/,end:/\}/},g={scope:"attr",match:/\s+:\s*\w+(\s*\(.*?\))?/},m={scope:"variable",variants:[{begin:/\$\d/},{begin:a.concat(/[$%@](?!")(\^\w\b|#\w+(::\w+)*|\{\w+\}|\w+(::\w*)*)/,"(?![A-Za-z])(?![@$%])")},{begin:/[$%@](?!")[^\s\w{=]|\$=/,relevance:0}],contains:[g]},p={className:"number",variants:[{match:/0?\.[0-9][0-9_]+\b/},{match:/\bv?(0|[1-9][0-9_]*(\.[0-9_]+)?|[1-9][0-9_]*)\b/},{match:/\b0[0-7][0-7_]*\b/},{match:/\b0x[0-9a-fA-F][0-9a-fA-F_]*\b/},{match:/\b0b[0-1][0-1_]*\b/}],relevance:0},b=[n.BACKSLASH_ESCAPE,f,m],h=[/!/,/\//,/\|/,/\?/,/'/,/"/,/#/],v=(C,M,w="\\1")=>{const q=w==="\\1"?w:a.concat(w,M);return a.concat(a.concat("(?:",C,")"),M,/(?:\\.|[^\\\/])*?/,q,/(?:\\.|[^\\\/])*?/,w,o)},k=(C,M,w)=>a.concat(a.concat("(?:",C,")"),M,/(?:\\.|[^\\\/])*?/,w,o),x=[m,n.HASH_COMMENT_MODE,n.COMMENT(/^=\w/,/=cut/,{endsWithParent:!0}),u,{className:"string",contains:b,variants:[{begin:"q[qwxr]?\\s*\\(",end:"\\)",relevance:5},{begin:"q[qwxr]?\\s*\\[",end:"\\]",relevance:5},{begin:"q[qwxr]?\\s*\\{",end:"\\}",relevance:5},{begin:"q[qwxr]?\\s*\\|",end:"\\|",relevance:5},{begin:"q[qwxr]?\\s*<",end:">",relevance:5},{begin:"qw\\s+q",end:"q",relevance:5},{begin:"'",end:"'",contains:[n.BACKSLASH_ESCAPE]},{begin:'"',end:'"'},{begin:"`",end:"`",contains:[n.BACKSLASH_ESCAPE]},{begin:/\{\w+\}/,relevance:0},{begin:"-?\\w+\\s*=>",relevance:0}]},p,{begin:"(\\/\\/|"+n.RE_STARTERS_RE+"|\\b(split|return|print|reverse|grep)\\b)\\s*",keywords:"split return print reverse grep",relevance:0,contains:[n.HASH_COMMENT_MODE,{className:"regexp",variants:[{begin:v("s|tr|y",a.either(...h,{capture:!0}))},{begin:v("s|tr|y","\\(","\\)")},{begin:v("s|tr|y","\\[","\\]")},{begin:v("s|tr|y","\\{","\\}")}],relevance:2},{className:"regexp",variants:[{begin:/(m|qr)\/\//,relevance:0},{begin:k("(?:m|qr)?",/\//,/\//)},{begin:k("m|qr",a.either(...h,{capture:!0}),/\1/)},{begin:k("m|qr",/\(/,/\)/)},{begin:k("m|qr",/\[/,/\]/)},{begin:k("m|qr",/\{/,/\}/)}]}]},{className:"function",beginKeywords:"sub method",end:"(\\s*\\(.*?\\))?[;{]",excludeEnd:!0,relevance:5,contains:[n.TITLE_MODE,g]},{className:"class",beginKeywords:"class",end:"[;{]",excludeEnd:!0,relevance:5,contains:[n.TITLE_MODE,g,p]},{begin:"-\\w\\b",relevance:0},{begin:"^__DATA__$",end:"^__END__$",subLanguage:"mojolicious",contains:[{begin:"^@@.*",end:"$",className:"comment"}]}];return f.contains=x,u.contains=x,{name:"Perl",aliases:["pl","pm"],keywords:s,contains:x}}function F_(n){const a=n.regex,r=/(?![A-Za-z0-9])(?![$])/,o=a.concat(/[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*/,r),s=a.concat(/(\\?[A-Z][a-z0-9_\x7f-\xff]+|\\?[A-Z]+(?=[A-Z][a-z0-9_\x7f-\xff])){1,}/,r),f=a.concat(/[A-Z]+/,r),u={scope:"variable",match:"\\$+"+o},g={scope:"meta",variants:[{begin:/<\?php/,relevance:10},{begin:/<\?=/},{begin:/<\?/,relevance:.1},{begin:/\?>/}]},m={scope:"subst",variants:[{begin:/\$\w+/},{begin:/\{\$/,end:/\}/}]},p=n.inherit(n.APOS_STRING_MODE,{illegal:null}),b=n.inherit(n.QUOTE_STRING_MODE,{illegal:null,contains:n.QUOTE_STRING_MODE.contains.concat(m)}),h={begin:/<<<[ \t]*(?:(\w+)|"(\w+)")\n/,end:/[ \t]*(\w+)\b/,contains:n.QUOTE_STRING_MODE.contains.concat(m),"on:begin":(oe,X)=>{X.data._beginMatch=oe[1]||oe[2]},"on:end":(oe,X)=>{X.data._beginMatch!==oe[1]&&X.ignoreMatch()}},v=n.END_SAME_AS_BEGIN({begin:/<<<[ \t]*'(\w+)'\n/,end:/[ \t]*(\w+)\b/}),k=`[
26
- ]`,x={scope:"string",variants:[b,p,h,v]},C={scope:"number",variants:[{begin:"\\b0[bB][01]+(?:_[01]+)*\\b"},{begin:"\\b0[oO][0-7]+(?:_[0-7]+)*\\b"},{begin:"\\b0[xX][\\da-fA-F]+(?:_[\\da-fA-F]+)*\\b"},{begin:"(?:\\b\\d+(?:_\\d+)*(\\.(?:\\d+(?:_\\d+)*))?|\\B\\.\\d+)(?:[eE][+-]?\\d+)?"}],relevance:0},M=["false","null","true"],w=["__CLASS__","__DIR__","__FILE__","__FUNCTION__","__COMPILER_HALT_OFFSET__","__LINE__","__METHOD__","__NAMESPACE__","__TRAIT__","die","echo","exit","include","include_once","print","require","require_once","array","abstract","and","as","binary","bool","boolean","break","callable","case","catch","class","clone","const","continue","declare","default","do","double","else","elseif","empty","enddeclare","endfor","endforeach","endif","endswitch","endwhile","enum","eval","extends","final","finally","float","for","foreach","from","global","goto","if","implements","instanceof","insteadof","int","integer","interface","isset","iterable","list","match|0","mixed","new","never","object","or","private","protected","public","readonly","real","return","string","switch","throw","trait","try","unset","use","var","void","while","xor","yield"],q=["Error|0","AppendIterator","ArgumentCountError","ArithmeticError","ArrayIterator","ArrayObject","AssertionError","BadFunctionCallException","BadMethodCallException","CachingIterator","CallbackFilterIterator","CompileError","Countable","DirectoryIterator","DivisionByZeroError","DomainException","EmptyIterator","ErrorException","Exception","FilesystemIterator","FilterIterator","GlobIterator","InfiniteIterator","InvalidArgumentException","IteratorIterator","LengthException","LimitIterator","LogicException","MultipleIterator","NoRewindIterator","OutOfBoundsException","OutOfRangeException","OuterIterator","OverflowException","ParentIterator","ParseError","RangeException","RecursiveArrayIterator","RecursiveCachingIterator","RecursiveCallbackFilterIterator","RecursiveDirectoryIterator","RecursiveFilterIterator","RecursiveIterator","RecursiveIteratorIterator","RecursiveRegexIterator","RecursiveTreeIterator","RegexIterator","RuntimeException","SeekableIterator","SplDoublyLinkedList","SplFileInfo","SplFileObject","SplFixedArray","SplHeap","SplMaxHeap","SplMinHeap","SplObjectStorage","SplObserver","SplPriorityQueue","SplQueue","SplStack","SplSubject","SplTempFileObject","TypeError","UnderflowException","UnexpectedValueException","UnhandledMatchError","ArrayAccess","BackedEnum","Closure","Fiber","Generator","Iterator","IteratorAggregate","Serializable","Stringable","Throwable","Traversable","UnitEnum","WeakReference","WeakMap","Directory","__PHP_Incomplete_Class","parent","php_user_filter","self","static","stdClass"],Q={keyword:w,literal:(oe=>{const X=[];return oe.forEach(Y=>{X.push(Y),Y.toLowerCase()===Y?X.push(Y.toUpperCase()):X.push(Y.toLowerCase())}),X})(M),built_in:q},te=oe=>oe.map(X=>X.replace(/\|\d+$/,"")),L={variants:[{match:[/new/,a.concat(k,"+"),a.concat("(?!",te(q).join("\\b|"),"\\b)"),s],scope:{1:"keyword",4:"title.class"}}]},ce=a.concat(o,"\\b(?!\\()"),ee={variants:[{match:[a.concat(/::/,a.lookahead(/(?!class\b)/)),ce],scope:{2:"variable.constant"}},{match:[/::/,/class/],scope:{2:"variable.language"}},{match:[s,a.concat(/::/,a.lookahead(/(?!class\b)/)),ce],scope:{1:"title.class",3:"variable.constant"}},{match:[s,a.concat("::",a.lookahead(/(?!class\b)/))],scope:{1:"title.class"}},{match:[s,/::/,/class/],scope:{1:"title.class",3:"variable.language"}}]},fe={scope:"attr",match:a.concat(o,a.lookahead(":"),a.lookahead(/(?!::)/))},z={relevance:0,begin:/\(/,end:/\)/,keywords:Q,contains:[fe,u,ee,n.C_BLOCK_COMMENT_MODE,x,C,L]},se={relevance:0,match:[/\b/,a.concat("(?!fn\\b|function\\b|",te(w).join("\\b|"),"|",te(q).join("\\b|"),"\\b)"),o,a.concat(k,"*"),a.lookahead(/(?=\()/)],scope:{3:"title.function.invoke"},contains:[z]};z.contains.push(se);const re=[fe,ee,n.C_BLOCK_COMMENT_MODE,x,C,L],_e={begin:a.concat(/#\[\s*\\?/,a.either(s,f)),beginScope:"meta",end:/]/,endScope:"meta",keywords:{literal:M,keyword:["new","array"]},contains:[{begin:/\[/,end:/]/,keywords:{literal:M,keyword:["new","array"]},contains:["self",...re]},...re,{scope:"meta",variants:[{match:s},{match:f}]}]};return{case_insensitive:!1,keywords:Q,contains:[_e,n.HASH_COMMENT_MODE,n.COMMENT("//","$"),n.COMMENT("/\\*","\\*/",{contains:[{scope:"doctag",match:"@[A-Za-z]+"}]}),{match:/__halt_compiler\(\);/,keywords:"__halt_compiler",starts:{scope:"comment",end:n.MATCH_NOTHING_RE,contains:[{match:/\?>/,scope:"meta",endsParent:!0}]}},g,{scope:"variable.language",match:/\$this\b/},u,se,ee,{match:[/const/,/\s/,o],scope:{1:"keyword",3:"variable.constant"}},L,{scope:"function",relevance:0,beginKeywords:"fn function",end:/[;{]/,excludeEnd:!0,illegal:"[$%\\[]",contains:[{beginKeywords:"use"},n.UNDERSCORE_TITLE_MODE,{begin:"=>",endsParent:!0},{scope:"params",begin:"\\(",end:"\\)",excludeBegin:!0,excludeEnd:!0,keywords:Q,contains:["self",_e,u,ee,n.C_BLOCK_COMMENT_MODE,x,C]}]},{scope:"class",variants:[{beginKeywords:"enum",illegal:/[($"]/},{beginKeywords:"class interface trait",illegal:/[:($"]/}],relevance:0,end:/\{/,excludeEnd:!0,contains:[{beginKeywords:"extends implements"},n.UNDERSCORE_TITLE_MODE]},{beginKeywords:"namespace",relevance:0,end:";",illegal:/[.']/,contains:[n.inherit(n.UNDERSCORE_TITLE_MODE,{scope:"title.class"})]},{beginKeywords:"use",relevance:0,end:";",contains:[{match:/\b(as|const|function)\b/,scope:"keyword"},n.UNDERSCORE_TITLE_MODE]},x,C]}}function G_(n){return{name:"PHP template",subLanguage:"xml",contains:[{begin:/<\?(php|=)?/,end:/\?>/,subLanguage:"php",contains:[{begin:"/\\*",end:"\\*/",skip:!0},{begin:'b"',end:'"',skip:!0},{begin:"b'",end:"'",skip:!0},n.inherit(n.APOS_STRING_MODE,{illegal:null,className:null,contains:null,skip:!0}),n.inherit(n.QUOTE_STRING_MODE,{illegal:null,className:null,contains:null,skip:!0})]}]}}function j_(n){return{name:"Plain text",aliases:["text","txt"],disableAutodetect:!0}}function Y_(n){const a=n.regex,r=new RegExp("[\\p{XID_Start}_]\\p{XID_Continue}*","u"),o=["and","as","assert","async","await","break","case","class","continue","def","del","elif","else","except","finally","for","from","global","if","import","in","is","lambda","match","nonlocal|10","not","or","pass","raise","return","try","while","with","yield"],g={$pattern:/[A-Za-z]\w+|__\w+__/,keyword:o,built_in:["__import__","abs","all","any","ascii","bin","bool","breakpoint","bytearray","bytes","callable","chr","classmethod","compile","complex","delattr","dict","dir","divmod","enumerate","eval","exec","filter","float","format","frozenset","getattr","globals","hasattr","hash","help","hex","id","input","int","isinstance","issubclass","iter","len","list","locals","map","max","memoryview","min","next","object","oct","open","ord","pow","print","property","range","repr","reversed","round","set","setattr","slice","sorted","staticmethod","str","sum","super","tuple","type","vars","zip"],literal:["__debug__","Ellipsis","False","None","NotImplemented","True"],type:["Any","Callable","Coroutine","Dict","List","Literal","Generic","Optional","Sequence","Set","Tuple","Type","Union"]},m={className:"meta",begin:/^(>>>|\.\.\.) /},p={className:"subst",begin:/\{/,end:/\}/,keywords:g,illegal:/#/},b={begin:/\{\{/,relevance:0},h={className:"string",contains:[n.BACKSLASH_ESCAPE],variants:[{begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?'''/,end:/'''/,contains:[n.BACKSLASH_ESCAPE,m],relevance:10},{begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?"""/,end:/"""/,contains:[n.BACKSLASH_ESCAPE,m],relevance:10},{begin:/([fF][rR]|[rR][fF]|[fF])'''/,end:/'''/,contains:[n.BACKSLASH_ESCAPE,m,b,p]},{begin:/([fF][rR]|[rR][fF]|[fF])"""/,end:/"""/,contains:[n.BACKSLASH_ESCAPE,m,b,p]},{begin:/([uU]|[rR])'/,end:/'/,relevance:10},{begin:/([uU]|[rR])"/,end:/"/,relevance:10},{begin:/([bB]|[bB][rR]|[rR][bB])'/,end:/'/},{begin:/([bB]|[bB][rR]|[rR][bB])"/,end:/"/},{begin:/([fF][rR]|[rR][fF]|[fF])'/,end:/'/,contains:[n.BACKSLASH_ESCAPE,b,p]},{begin:/([fF][rR]|[rR][fF]|[fF])"/,end:/"/,contains:[n.BACKSLASH_ESCAPE,b,p]},n.APOS_STRING_MODE,n.QUOTE_STRING_MODE]},v="[0-9](_?[0-9])*",k=`(\\b(${v}))?\\.(${v})|\\b(${v})\\.`,x=`\\b|${o.join("|")}`,C={className:"number",relevance:0,variants:[{begin:`(\\b(${v})|(${k}))[eE][+-]?(${v})[jJ]?(?=${x})`},{begin:`(${k})[jJ]?`},{begin:`\\b([1-9](_?[0-9])*|0+(_?0)*)[lLjJ]?(?=${x})`},{begin:`\\b0[bB](_?[01])+[lL]?(?=${x})`},{begin:`\\b0[oO](_?[0-7])+[lL]?(?=${x})`},{begin:`\\b0[xX](_?[0-9a-fA-F])+[lL]?(?=${x})`},{begin:`\\b(${v})[jJ](?=${x})`}]},M={className:"comment",begin:a.lookahead(/# type:/),end:/$/,keywords:g,contains:[{begin:/# type:/},{begin:/#/,end:/\b\B/,endsWithParent:!0}]},w={className:"params",variants:[{className:"",begin:/\(\s*\)/,skip:!0},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:g,contains:["self",m,C,h,n.HASH_COMMENT_MODE]}]};return p.contains=[h,C,m],{name:"Python",aliases:["py","gyp","ipython"],unicodeRegex:!0,keywords:g,illegal:/(<\/|\?)|=>/,contains:[m,C,{scope:"variable.language",match:/\bself\b/},{beginKeywords:"if",relevance:0},{match:/\bor\b/,scope:"keyword"},h,M,n.HASH_COMMENT_MODE,{match:[/\bdef/,/\s+/,r],scope:{1:"keyword",3:"title.function"},contains:[w]},{variants:[{match:[/\bclass/,/\s+/,r,/\s*/,/\(\s*/,r,/\s*\)/]},{match:[/\bclass/,/\s+/,r]}],scope:{1:"keyword",3:"title.class",6:"title.class.inherited"}},{className:"meta",begin:/^[\t ]*@/,end:/(?=#)|$/,contains:[C,w,h]}]}}function P_(n){return{aliases:["pycon"],contains:[{className:"meta.prompt",starts:{end:/ |$/,starts:{end:"$",subLanguage:"python"}},variants:[{begin:/^>>>(?=[ ]|$)/},{begin:/^\.\.\.(?=[ ]|$)/}]}]}}function K_(n){const a=n.regex,r=/(?:(?:[a-zA-Z]|\.[._a-zA-Z])[._a-zA-Z0-9]*)|\.(?!\d)/,o=a.either(/0[xX][0-9a-fA-F]+\.[0-9a-fA-F]*[pP][+-]?\d+i?/,/0[xX][0-9a-fA-F]+(?:[pP][+-]?\d+)?[Li]?/,/(?:\d+(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+)?[Li]?/),s=/[=!<>:]=|\|\||&&|:::?|<-|<<-|->>|->|\|>|[-+*\/?!$&|:<=>@^~]|\*\*/,f=a.either(/[()]/,/[{}]/,/\[\[/,/[[\]]/,/\\/,/,/);return{name:"R",keywords:{$pattern:r,keyword:"function if in break next repeat else for while",literal:"NULL NA TRUE FALSE Inf NaN NA_integer_|10 NA_real_|10 NA_character_|10 NA_complex_|10",built_in:"LETTERS letters month.abb month.name pi T F abs acos acosh all any anyNA Arg as.call as.character as.complex as.double as.environment as.integer as.logical as.null.default as.numeric as.raw asin asinh atan atanh attr attributes baseenv browser c call ceiling class Conj cos cosh cospi cummax cummin cumprod cumsum digamma dim dimnames emptyenv exp expression floor forceAndCall gamma gc.time globalenv Im interactive invisible is.array is.atomic is.call is.character is.complex is.double is.environment is.expression is.finite is.function is.infinite is.integer is.language is.list is.logical is.matrix is.na is.name is.nan is.null is.numeric is.object is.pairlist is.raw is.recursive is.single is.symbol lazyLoadDBfetch length lgamma list log max min missing Mod names nargs nzchar oldClass on.exit pos.to.env proc.time prod quote range Re rep retracemem return round seq_along seq_len seq.int sign signif sin sinh sinpi sqrt standardGeneric substitute sum switch tan tanh tanpi tracemem trigamma trunc unclass untracemem UseMethod xtfrm"},contains:[n.COMMENT(/#'/,/$/,{contains:[{scope:"doctag",match:/@examples/,starts:{end:a.lookahead(a.either(/\n^#'\s*(?=@[a-zA-Z]+)/,/\n^(?!#')/)),endsParent:!0}},{scope:"doctag",begin:"@param",end:/$/,contains:[{scope:"variable",variants:[{match:r},{match:/`(?:\\.|[^`\\])+`/}],endsParent:!0}]},{scope:"doctag",match:/@[a-zA-Z]+/},{scope:"keyword",match:/\\[a-zA-Z]+/}]}),n.HASH_COMMENT_MODE,{scope:"string",contains:[n.BACKSLASH_ESCAPE],variants:[n.END_SAME_AS_BEGIN({begin:/[rR]"(-*)\(/,end:/\)(-*)"/}),n.END_SAME_AS_BEGIN({begin:/[rR]"(-*)\{/,end:/\}(-*)"/}),n.END_SAME_AS_BEGIN({begin:/[rR]"(-*)\[/,end:/\](-*)"/}),n.END_SAME_AS_BEGIN({begin:/[rR]'(-*)\(/,end:/\)(-*)'/}),n.END_SAME_AS_BEGIN({begin:/[rR]'(-*)\{/,end:/\}(-*)'/}),n.END_SAME_AS_BEGIN({begin:/[rR]'(-*)\[/,end:/\](-*)'/}),{begin:'"',end:'"',relevance:0},{begin:"'",end:"'",relevance:0}]},{relevance:0,variants:[{scope:{1:"operator",2:"number"},match:[s,o]},{scope:{1:"operator",2:"number"},match:[/%[^%]*%/,o]},{scope:{1:"punctuation",2:"number"},match:[f,o]},{scope:{2:"number"},match:[/[^a-zA-Z0-9._]|^/,o]}]},{scope:{3:"operator"},match:[r,/\s+/,/<-/,/\s+/]},{scope:"operator",relevance:0,variants:[{match:s},{match:/%[^%]*%/}]},{scope:"punctuation",relevance:0,match:f},{begin:"`",end:"`",contains:[{begin:/\\./}]}]}}function V_(n){const a=n.regex,r="([a-zA-Z_]\\w*[!?=]?|[-+~]@|<<|>>|=~|===?|<=>|[<>]=?|\\*\\*|[-/+%^&*~`|]|\\[\\]=?)",o=a.either(/\b([A-Z]+[a-z0-9]+)+/,/\b([A-Z]+[a-z0-9]+)+[A-Z]+/),s=a.concat(o,/(::\w+)*/),u={"variable.constant":["__FILE__","__LINE__","__ENCODING__"],"variable.language":["self","super"],keyword:["alias","and","begin","BEGIN","break","case","class","defined","do","else","elsif","end","END","ensure","for","if","in","module","next","not","or","redo","require","rescue","retry","return","then","undef","unless","until","when","while","yield",...["include","extend","prepend","public","private","protected","raise","throw"]],built_in:["proc","lambda","attr_accessor","attr_reader","attr_writer","define_method","private_constant","module_function"],literal:["true","false","nil"]},g={className:"doctag",begin:"@[A-Za-z]+"},m={begin:"#<",end:">"},p=[n.COMMENT("#","$",{contains:[g]}),n.COMMENT("^=begin","^=end",{contains:[g],relevance:10}),n.COMMENT("^__END__",n.MATCH_NOTHING_RE)],b={className:"subst",begin:/#\{/,end:/\}/,keywords:u},h={className:"string",contains:[n.BACKSLASH_ESCAPE,b],variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/},{begin:/`/,end:/`/},{begin:/%[qQwWx]?\(/,end:/\)/},{begin:/%[qQwWx]?\[/,end:/\]/},{begin:/%[qQwWx]?\{/,end:/\}/},{begin:/%[qQwWx]?</,end:/>/},{begin:/%[qQwWx]?\//,end:/\//},{begin:/%[qQwWx]?%/,end:/%/},{begin:/%[qQwWx]?-/,end:/-/},{begin:/%[qQwWx]?\|/,end:/\|/},{begin:/\B\?(\\\d{1,3})/},{begin:/\B\?(\\x[A-Fa-f0-9]{1,2})/},{begin:/\B\?(\\u\{?[A-Fa-f0-9]{1,6}\}?)/},{begin:/\B\?(\\M-\\C-|\\M-\\c|\\c\\M-|\\M-|\\C-\\M-)[\x20-\x7e]/},{begin:/\B\?\\(c|C-)[\x20-\x7e]/},{begin:/\B\?\\?\S/},{begin:a.concat(/<<[-~]?'?/,a.lookahead(/(\w+)(?=\W)[^\n]*\n(?:[^\n]*\n)*?\s*\1\b/)),contains:[n.END_SAME_AS_BEGIN({begin:/(\w+)/,end:/(\w+)/,contains:[n.BACKSLASH_ESCAPE,b]})]}]},v="[1-9](_?[0-9])*|0",k="[0-9](_?[0-9])*",x={className:"number",relevance:0,variants:[{begin:`\\b(${v})(\\.(${k}))?([eE][+-]?(${k})|r)?i?\\b`},{begin:"\\b0[dD][0-9](_?[0-9])*r?i?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*r?i?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*r?i?\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*r?i?\\b"},{begin:"\\b0(_?[0-7])+r?i?\\b"}]},C={variants:[{match:/\(\)/},{className:"params",begin:/\(/,end:/(?=\))/,excludeBegin:!0,endsParent:!0,keywords:u}]},L=[h,{variants:[{match:[/class\s+/,s,/\s+<\s+/,s]},{match:[/\b(class|module)\s+/,s]}],scope:{2:"title.class",4:"title.class.inherited"},keywords:u},{match:[/(include|extend)\s+/,s],scope:{2:"title.class"},keywords:u},{relevance:0,match:[s,/\.new[. (]/],scope:{1:"title.class"}},{relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"},{relevance:0,match:o,scope:"title.class"},{match:[/def/,/\s+/,r],scope:{1:"keyword",3:"title.function"},contains:[C]},{begin:n.IDENT_RE+"::"},{className:"symbol",begin:n.UNDERSCORE_IDENT_RE+"(!|\\?)?:",relevance:0},{className:"symbol",begin:":(?!\\s)",contains:[h,{begin:r}],relevance:0},x,{className:"variable",begin:"(\\$\\W)|((\\$|@@?)(\\w+))(?=[^@$?])(?![A-Za-z])(?![@$?'])"},{className:"params",begin:/\|(?!=)/,end:/\|/,excludeBegin:!0,excludeEnd:!0,relevance:0,keywords:u},{begin:"("+n.RE_STARTERS_RE+"|unless)\\s*",keywords:"unless",contains:[{className:"regexp",contains:[n.BACKSLASH_ESCAPE,b],illegal:/\n/,variants:[{begin:"/",end:"/[a-z]*"},{begin:/%r\{/,end:/\}[a-z]*/},{begin:"%r\\(",end:"\\)[a-z]*"},{begin:"%r!",end:"![a-z]*"},{begin:"%r\\[",end:"\\][a-z]*"}]}].concat(m,p),relevance:0}].concat(m,p);b.contains=L,C.contains=L;const z=[{begin:/^\s*=>/,starts:{end:"$",contains:L}},{className:"meta.prompt",begin:"^("+"[>?]>"+"|"+"[\\w#]+\\(\\w+\\):\\d+:\\d+[>*]"+"|"+"(\\w+-)?\\d+\\.\\d+\\.\\d+(p\\d+)?[^\\d][^>]+>"+")(?=[ ])",starts:{end:"$",keywords:u,contains:L}}];return p.unshift(m),{name:"Ruby",aliases:["rb","gemspec","podspec","thor","irb"],keywords:u,illegal:/\/\*/,contains:[n.SHEBANG({binary:"ruby"})].concat(z).concat(p).concat(L)}}function $_(n){const a=n.regex,r=/(r#)?/,o=a.concat(r,n.UNDERSCORE_IDENT_RE),s=a.concat(r,n.IDENT_RE),f={className:"title.function.invoke",relevance:0,begin:a.concat(/\b/,/(?!let|for|while|if|else|match\b)/,s,a.lookahead(/\s*\(/))},u="([ui](8|16|32|64|128|size)|f(32|64))?",g=["abstract","as","async","await","become","box","break","const","continue","crate","do","dyn","else","enum","extern","false","final","fn","for","if","impl","in","let","loop","macro","match","mod","move","mut","override","priv","pub","ref","return","self","Self","static","struct","super","trait","true","try","type","typeof","union","unsafe","unsized","use","virtual","where","while","yield"],m=["true","false","Some","None","Ok","Err"],p=["drop ","Copy","Send","Sized","Sync","Drop","Fn","FnMut","FnOnce","ToOwned","Clone","Debug","PartialEq","PartialOrd","Eq","Ord","AsRef","AsMut","Into","From","Default","Iterator","Extend","IntoIterator","DoubleEndedIterator","ExactSizeIterator","SliceConcatExt","ToString","assert!","assert_eq!","bitflags!","bytes!","cfg!","col!","concat!","concat_idents!","debug_assert!","debug_assert_eq!","env!","eprintln!","panic!","file!","format!","format_args!","include_bytes!","include_str!","line!","local_data_key!","module_path!","option_env!","print!","println!","select!","stringify!","try!","unimplemented!","unreachable!","vec!","write!","writeln!","macro_rules!","assert_ne!","debug_assert_ne!"],b=["i8","i16","i32","i64","i128","isize","u8","u16","u32","u64","u128","usize","f32","f64","str","char","bool","Box","Option","Result","String","Vec"];return{name:"Rust",aliases:["rs"],keywords:{$pattern:n.IDENT_RE+"!?",type:b,keyword:g,literal:m,built_in:p},illegal:"</",contains:[n.C_LINE_COMMENT_MODE,n.COMMENT("/\\*","\\*/",{contains:["self"]}),n.inherit(n.QUOTE_STRING_MODE,{begin:/b?"/,illegal:null}),{className:"symbol",begin:/'[a-zA-Z_][a-zA-Z0-9_]*(?!')/},{scope:"string",variants:[{begin:/b?r(#*)"(.|\n)*?"\1(?!#)/},{begin:/b?'/,end:/'/,contains:[{scope:"char.escape",match:/\\('|\w|x\w{2}|u\w{4}|U\w{8})/}]}]},{className:"number",variants:[{begin:"\\b0b([01_]+)"+u},{begin:"\\b0o([0-7_]+)"+u},{begin:"\\b0x([A-Fa-f0-9_]+)"+u},{begin:"\\b(\\d[\\d_]*(\\.[0-9_]+)?([eE][+-]?[0-9_]+)?)"+u}],relevance:0},{begin:[/fn/,/\s+/,o],className:{1:"keyword",3:"title.function"}},{className:"meta",begin:"#!?\\[",end:"\\]",contains:[{className:"string",begin:/"/,end:/"/,contains:[n.BACKSLASH_ESCAPE]}]},{begin:[/let/,/\s+/,/(?:mut\s+)?/,o],className:{1:"keyword",3:"keyword",4:"variable"}},{begin:[/for/,/\s+/,o,/\s+/,/in/],className:{1:"keyword",3:"variable",5:"keyword"}},{begin:[/type/,/\s+/,o],className:{1:"keyword",3:"title.class"}},{begin:[/(?:trait|enum|struct|union|impl|for)/,/\s+/,o],className:{1:"keyword",3:"title.class"}},{begin:n.IDENT_RE+"::",keywords:{keyword:"Self",built_in:p,type:b}},{className:"punctuation",begin:"->"},f]}}const Z_=n=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:n.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[n.APOS_STRING_MODE,n.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:n.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z_][A-Za-z0-9_-]*/}}),X_=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","optgroup","option","p","picture","q","quote","samp","section","select","source","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],Q_=["defs","g","marker","mask","pattern","svg","switch","symbol","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feFlood","feGaussianBlur","feImage","feMerge","feMorphology","feOffset","feSpecularLighting","feTile","feTurbulence","linearGradient","radialGradient","stop","circle","ellipse","image","line","path","polygon","polyline","rect","text","use","textPath","tspan","foreignObject","clipPath"],J_=[...X_,...Q_],W_=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"].sort().reverse(),e1=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"].sort().reverse(),t1=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"].sort().reverse(),n1=["accent-color","align-content","align-items","align-self","alignment-baseline","all","anchor-name","animation","animation-composition","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-range","animation-range-end","animation-range-start","animation-timeline","animation-timing-function","appearance","aspect-ratio","backdrop-filter","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-position-x","background-position-y","background-repeat","background-size","baseline-shift","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-end-end-radius","border-end-start-radius","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-start-end-radius","border-start-start-radius","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-align","box-decoration-break","box-direction","box-flex","box-flex-group","box-lines","box-ordinal-group","box-orient","box-pack","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","color-scheme","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","contain-intrinsic-block-size","contain-intrinsic-height","contain-intrinsic-inline-size","contain-intrinsic-size","contain-intrinsic-width","container","container-name","container-type","content","content-visibility","counter-increment","counter-reset","counter-set","cue","cue-after","cue-before","cursor","cx","cy","direction","display","dominant-baseline","empty-cells","enable-background","field-sizing","fill","fill-opacity","fill-rule","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flood-color","flood-opacity","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-optical-sizing","font-palette","font-size","font-size-adjust","font-smooth","font-smoothing","font-stretch","font-style","font-synthesis","font-synthesis-position","font-synthesis-small-caps","font-synthesis-style","font-synthesis-weight","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-emoji","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","forced-color-adjust","gap","glyph-orientation-horizontal","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphenate-character","hyphenate-limit-chars","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","initial-letter","initial-letter-align","inline-size","inset","inset-area","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","justify-content","justify-items","justify-self","kerning","left","letter-spacing","lighting-color","line-break","line-height","line-height-step","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","margin-trim","marker","marker-end","marker-mid","marker-start","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","masonry-auto-flow","math-depth","math-shift","math-style","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-anchor","overflow-block","overflow-clip-margin","overflow-inline","overflow-wrap","overflow-x","overflow-y","overlay","overscroll-behavior","overscroll-behavior-block","overscroll-behavior-inline","overscroll-behavior-x","overscroll-behavior-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","paint-order","pause","pause-after","pause-before","perspective","perspective-origin","place-content","place-items","place-self","pointer-events","position","position-anchor","position-visibility","print-color-adjust","quotes","r","resize","rest","rest-after","rest-before","right","rotate","row-gap","ruby-align","ruby-position","scale","scroll-behavior","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scroll-timeline","scroll-timeline-axis","scroll-timeline-name","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","shape-rendering","speak","speak-as","src","stop-color","stop-opacity","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","tab-size","table-layout","text-align","text-align-all","text-align-last","text-anchor","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-skip-ink","text-decoration-style","text-decoration-thickness","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-size-adjust","text-transform","text-underline-offset","text-underline-position","text-wrap","text-wrap-mode","text-wrap-style","timeline-scope","top","touch-action","transform","transform-box","transform-origin","transform-style","transition","transition-behavior","transition-delay","transition-duration","transition-property","transition-timing-function","translate","unicode-bidi","user-modify","user-select","vector-effect","vertical-align","view-timeline","view-timeline-axis","view-timeline-inset","view-timeline-name","view-transition-name","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","white-space-collapse","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","x","y","z-index","zoom"].sort().reverse();function i1(n){const a=Z_(n),r=t1,o=e1,s="@[a-z-]+",f="and or not only",g={className:"variable",begin:"(\\$"+"[a-zA-Z-][a-zA-Z0-9_-]*"+")\\b",relevance:0};return{name:"SCSS",case_insensitive:!0,illegal:"[=/|']",contains:[n.C_LINE_COMMENT_MODE,n.C_BLOCK_COMMENT_MODE,a.CSS_NUMBER_MODE,{className:"selector-id",begin:"#[A-Za-z0-9_-]+",relevance:0},{className:"selector-class",begin:"\\.[A-Za-z0-9_-]+",relevance:0},a.ATTRIBUTE_SELECTOR_MODE,{className:"selector-tag",begin:"\\b("+J_.join("|")+")\\b",relevance:0},{className:"selector-pseudo",begin:":("+o.join("|")+")"},{className:"selector-pseudo",begin:":(:)?("+r.join("|")+")"},g,{begin:/\(/,end:/\)/,contains:[a.CSS_NUMBER_MODE]},a.CSS_VARIABLE,{className:"attribute",begin:"\\b("+n1.join("|")+")\\b"},{begin:"\\b(whitespace|wait|w-resize|visible|vertical-text|vertical-ideographic|uppercase|upper-roman|upper-alpha|underline|transparent|top|thin|thick|text|text-top|text-bottom|tb-rl|table-header-group|table-footer-group|sw-resize|super|strict|static|square|solid|small-caps|separate|se-resize|scroll|s-resize|rtl|row-resize|ridge|right|repeat|repeat-y|repeat-x|relative|progress|pointer|overline|outside|outset|oblique|nowrap|not-allowed|normal|none|nw-resize|no-repeat|no-drop|newspaper|ne-resize|n-resize|move|middle|medium|ltr|lr-tb|lowercase|lower-roman|lower-alpha|loose|list-item|line|line-through|line-edge|lighter|left|keep-all|justify|italic|inter-word|inter-ideograph|inside|inset|inline|inline-block|inherit|inactive|ideograph-space|ideograph-parenthesis|ideograph-numeric|ideograph-alpha|horizontal|hidden|help|hand|groove|fixed|ellipsis|e-resize|double|dotted|distribute|distribute-space|distribute-letter|distribute-all-lines|disc|disabled|default|decimal|dashed|crosshair|collapse|col-resize|circle|char|center|capitalize|break-word|break-all|bottom|both|bolder|bold|block|bidi-override|below|baseline|auto|always|all-scroll|absolute|table|table-cell)\\b"},{begin:/:/,end:/[;}{]/,relevance:0,contains:[a.BLOCK_COMMENT,g,a.HEXCOLOR,a.CSS_NUMBER_MODE,n.QUOTE_STRING_MODE,n.APOS_STRING_MODE,a.IMPORTANT,a.FUNCTION_DISPATCH]},{begin:"@(page|font-face)",keywords:{$pattern:s,keyword:"@page @font-face"}},{begin:"@",end:"[{;]",returnBegin:!0,keywords:{$pattern:/[a-z-]+/,keyword:f,attribute:W_.join(" ")},contains:[{begin:s,className:"keyword"},{begin:/[a-z-]+(?=:)/,className:"attribute"},g,n.QUOTE_STRING_MODE,n.APOS_STRING_MODE,a.HEXCOLOR,a.CSS_NUMBER_MODE]},a.FUNCTION_DISPATCH]}}function a1(n){return{name:"Shell Session",aliases:["console","shellsession"],contains:[{className:"meta.prompt",begin:/^\s{0,3}[/~\w\d[\]()@-]*[>%$#][ ]?/,starts:{end:/[^\\](?=\s*$)/,subLanguage:"bash"}}]}}function r1(n){const a=n.regex,r=n.COMMENT("--","$"),o={scope:"string",variants:[{begin:/'/,end:/'/,contains:[{match:/''/}]}]},s={begin:/"/,end:/"/,contains:[{match:/""/}]},f=["true","false","unknown"],u=["double precision","large object","with timezone","without timezone"],g=["bigint","binary","blob","boolean","char","character","clob","date","dec","decfloat","decimal","float","int","integer","interval","nchar","nclob","national","numeric","real","row","smallint","time","timestamp","varchar","varying","varbinary"],m=["add","asc","collation","desc","final","first","last","view"],p=["abs","acos","all","allocate","alter","and","any","are","array","array_agg","array_max_cardinality","as","asensitive","asin","asymmetric","at","atan","atomic","authorization","avg","begin","begin_frame","begin_partition","between","bigint","binary","blob","boolean","both","by","call","called","cardinality","cascaded","case","cast","ceil","ceiling","char","char_length","character","character_length","check","classifier","clob","close","coalesce","collate","collect","column","commit","condition","connect","constraint","contains","convert","copy","corr","corresponding","cos","cosh","count","covar_pop","covar_samp","create","cross","cube","cume_dist","current","current_catalog","current_date","current_default_transform_group","current_path","current_role","current_row","current_schema","current_time","current_timestamp","current_path","current_role","current_transform_group_for_type","current_user","cursor","cycle","date","day","deallocate","dec","decimal","decfloat","declare","default","define","delete","dense_rank","deref","describe","deterministic","disconnect","distinct","double","drop","dynamic","each","element","else","empty","end","end_frame","end_partition","end-exec","equals","escape","every","except","exec","execute","exists","exp","external","extract","false","fetch","filter","first_value","float","floor","for","foreign","frame_row","free","from","full","function","fusion","get","global","grant","group","grouping","groups","having","hold","hour","identity","in","indicator","initial","inner","inout","insensitive","insert","int","integer","intersect","intersection","interval","into","is","join","json_array","json_arrayagg","json_exists","json_object","json_objectagg","json_query","json_table","json_table_primitive","json_value","lag","language","large","last_value","lateral","lead","leading","left","like","like_regex","listagg","ln","local","localtime","localtimestamp","log","log10","lower","match","match_number","match_recognize","matches","max","member","merge","method","min","minute","mod","modifies","module","month","multiset","national","natural","nchar","nclob","new","no","none","normalize","not","nth_value","ntile","null","nullif","numeric","octet_length","occurrences_regex","of","offset","old","omit","on","one","only","open","or","order","out","outer","over","overlaps","overlay","parameter","partition","pattern","per","percent","percent_rank","percentile_cont","percentile_disc","period","portion","position","position_regex","power","precedes","precision","prepare","primary","procedure","ptf","range","rank","reads","real","recursive","ref","references","referencing","regr_avgx","regr_avgy","regr_count","regr_intercept","regr_r2","regr_slope","regr_sxx","regr_sxy","regr_syy","release","result","return","returns","revoke","right","rollback","rollup","row","row_number","rows","running","savepoint","scope","scroll","search","second","seek","select","sensitive","session_user","set","show","similar","sin","sinh","skip","smallint","some","specific","specifictype","sql","sqlexception","sqlstate","sqlwarning","sqrt","start","static","stddev_pop","stddev_samp","submultiset","subset","substring","substring_regex","succeeds","sum","symmetric","system","system_time","system_user","table","tablesample","tan","tanh","then","time","timestamp","timezone_hour","timezone_minute","to","trailing","translate","translate_regex","translation","treat","trigger","trim","trim_array","true","truncate","uescape","union","unique","unknown","unnest","update","upper","user","using","value","values","value_of","var_pop","var_samp","varbinary","varchar","varying","versioning","when","whenever","where","width_bucket","window","with","within","without","year"],b=["abs","acos","array_agg","asin","atan","avg","cast","ceil","ceiling","coalesce","corr","cos","cosh","count","covar_pop","covar_samp","cume_dist","dense_rank","deref","element","exp","extract","first_value","floor","json_array","json_arrayagg","json_exists","json_object","json_objectagg","json_query","json_table","json_table_primitive","json_value","lag","last_value","lead","listagg","ln","log","log10","lower","max","min","mod","nth_value","ntile","nullif","percent_rank","percentile_cont","percentile_disc","position","position_regex","power","rank","regr_avgx","regr_avgy","regr_count","regr_intercept","regr_r2","regr_slope","regr_sxx","regr_sxy","regr_syy","row_number","sin","sinh","sqrt","stddev_pop","stddev_samp","substring","substring_regex","sum","tan","tanh","translate","translate_regex","treat","trim","trim_array","unnest","upper","value_of","var_pop","var_samp","width_bucket"],h=["current_catalog","current_date","current_default_transform_group","current_path","current_role","current_schema","current_transform_group_for_type","current_user","session_user","system_time","system_user","current_time","localtime","current_timestamp","localtimestamp"],v=["create table","insert into","primary key","foreign key","not null","alter table","add constraint","grouping sets","on overflow","character set","respect nulls","ignore nulls","nulls first","nulls last","depth first","breadth first"],k=b,x=[...p,...m].filter(te=>!b.includes(te)),C={scope:"variable",match:/@[a-z0-9][a-z0-9_]*/},M={scope:"operator",match:/[-+*/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?/,relevance:0},w={match:a.concat(/\b/,a.either(...k),/\s*\(/),relevance:0,keywords:{built_in:k}};function q(te){return a.concat(/\b/,a.either(...te.map(L=>L.replace(/\s+/,"\\s+"))),/\b/)}const H={scope:"keyword",match:q(v),relevance:0};function Q(te,{exceptions:L,when:ce}={}){const ee=ce;return L=L||[],te.map(fe=>fe.match(/\|\d+$/)||L.includes(fe)?fe:ee(fe)?`${fe}|0`:fe)}return{name:"SQL",case_insensitive:!0,illegal:/[{}]|<\//,keywords:{$pattern:/\b[\w\.]+/,keyword:Q(x,{when:te=>te.length<3}),literal:f,type:g,built_in:h},contains:[{scope:"type",match:q(u)},H,w,C,o,s,n.C_NUMBER_MODE,n.C_BLOCK_COMMENT_MODE,r,M]}}function Dp(n){return n?typeof n=="string"?n:n.source:null}function tl(n){return pt("(?=",n,")")}function pt(...n){return n.map(r=>Dp(r)).join("")}function l1(n){const a=n[n.length-1];return typeof a=="object"&&a.constructor===Object?(n.splice(n.length-1,1),a):{}}function yn(...n){return"("+(l1(n).capture?"":"?:")+n.map(o=>Dp(o)).join("|")+")"}const wc=n=>pt(/\b/,n,/\w$/.test(n)?/\b/:/\B/),o1=["Protocol","Type"].map(wc),Lp=["init","self"].map(wc),s1=["Any","Self"],Tc=["actor","any","associatedtype","async","await",/as\?/,/as!/,"as","borrowing","break","case","catch","class","consume","consuming","continue","convenience","copy","default","defer","deinit","didSet","distributed","do","dynamic","each","else","enum","extension","fallthrough",/fileprivate\(set\)/,"fileprivate","final","for","func","get","guard","if","import","indirect","infix",/init\?/,/init!/,"inout",/internal\(set\)/,"internal","in","is","isolated","nonisolated","lazy","let","macro","mutating","nonmutating",/open\(set\)/,"open","operator","optional","override","package","postfix","precedencegroup","prefix",/private\(set\)/,"private","protocol",/public\(set\)/,"public","repeat","required","rethrows","return","set","some","static","struct","subscript","super","switch","throws","throw",/try\?/,/try!/,"try","typealias",/unowned\(safe\)/,/unowned\(unsafe\)/,"unowned","var","weak","where","while","willSet"],zp=["false","nil","true"],c1=["assignment","associativity","higherThan","left","lowerThan","none","right"],u1=["#colorLiteral","#column","#dsohandle","#else","#elseif","#endif","#error","#file","#fileID","#fileLiteral","#filePath","#function","#if","#imageLiteral","#keyPath","#line","#selector","#sourceLocation","#warning"],Ip=["abs","all","any","assert","assertionFailure","debugPrint","dump","fatalError","getVaList","isKnownUniquelyReferenced","max","min","numericCast","pointwiseMax","pointwiseMin","precondition","preconditionFailure","print","readLine","repeatElement","sequence","stride","swap","swift_unboxFromSwiftValueWithType","transcode","type","unsafeBitCast","unsafeDowncast","withExtendedLifetime","withUnsafeMutablePointer","withUnsafePointer","withVaList","withoutActuallyEscaping","zip"],Bp=yn(/[/=\-+!*%<>&|^~?]/,/[\u00A1-\u00A7]/,/[\u00A9\u00AB]/,/[\u00AC\u00AE]/,/[\u00B0\u00B1]/,/[\u00B6\u00BB\u00BF\u00D7\u00F7]/,/[\u2016-\u2017]/,/[\u2020-\u2027]/,/[\u2030-\u203E]/,/[\u2041-\u2053]/,/[\u2055-\u205E]/,/[\u2190-\u23FF]/,/[\u2500-\u2775]/,/[\u2794-\u2BFF]/,/[\u2E00-\u2E7F]/,/[\u3001-\u3003]/,/[\u3008-\u3020]/,/[\u3030]/),Up=yn(Bp,/[\u0300-\u036F]/,/[\u1DC0-\u1DFF]/,/[\u20D0-\u20FF]/,/[\uFE00-\uFE0F]/,/[\uFE20-\uFE2F]/),Ac=pt(Bp,Up,"*"),Hp=yn(/[a-zA-Z_]/,/[\u00A8\u00AA\u00AD\u00AF\u00B2-\u00B5\u00B7-\u00BA]/,/[\u00BC-\u00BE\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF]/,/[\u0100-\u02FF\u0370-\u167F\u1681-\u180D\u180F-\u1DBF]/,/[\u1E00-\u1FFF]/,/[\u200B-\u200D\u202A-\u202E\u203F-\u2040\u2054\u2060-\u206F]/,/[\u2070-\u20CF\u2100-\u218F\u2460-\u24FF\u2776-\u2793]/,/[\u2C00-\u2DFF\u2E80-\u2FFF]/,/[\u3004-\u3007\u3021-\u302F\u3031-\u303F\u3040-\uD7FF]/,/[\uF900-\uFD3D\uFD40-\uFDCF\uFDF0-\uFE1F\uFE30-\uFE44]/,/[\uFE47-\uFEFE\uFF00-\uFFFD]/),po=yn(Hp,/\d/,/[\u0300-\u036F\u1DC0-\u1DFF\u20D0-\u20FF\uFE20-\uFE2F]/),gi=pt(Hp,po,"*"),go=pt(/[A-Z]/,po,"*"),f1=["attached","autoclosure",pt(/convention\(/,yn("swift","block","c"),/\)/),"discardableResult","dynamicCallable","dynamicMemberLookup","escaping","freestanding","frozen","GKInspectable","IBAction","IBDesignable","IBInspectable","IBOutlet","IBSegueAction","inlinable","main","nonobjc","NSApplicationMain","NSCopying","NSManaged",pt(/objc\(/,gi,/\)/),"objc","objcMembers","propertyWrapper","requires_stored_property_inits","resultBuilder","Sendable","testable","UIApplicationMain","unchecked","unknown","usableFromInline","warn_unqualified_access"],d1=["iOS","iOSApplicationExtension","macOS","macOSApplicationExtension","macCatalyst","macCatalystApplicationExtension","watchOS","watchOSApplicationExtension","tvOS","tvOSApplicationExtension","swift"];function p1(n){const a={match:/\s+/,relevance:0},r=n.COMMENT("/\\*","\\*/",{contains:["self"]}),o=[n.C_LINE_COMMENT_MODE,r],s={match:[/\./,yn(...o1,...Lp)],className:{2:"keyword"}},f={match:pt(/\./,yn(...Tc)),relevance:0},u=Tc.filter(Ve=>typeof Ve=="string").concat(["_|0"]),g=Tc.filter(Ve=>typeof Ve!="string").concat(s1).map(wc),m={variants:[{className:"keyword",match:yn(...g,...Lp)}]},p={$pattern:yn(/\b\w+/,/#\w+/),keyword:u.concat(u1),literal:zp},b=[s,f,m],h={match:pt(/\./,yn(...Ip)),relevance:0},v={className:"built_in",match:pt(/\b/,yn(...Ip),/(?=\()/)},k=[h,v],x={match:/->/,relevance:0},C={className:"operator",relevance:0,variants:[{match:Ac},{match:`\\.(\\.|${Up})+`}]},M=[x,C],w="([0-9]_*)+",q="([0-9a-fA-F]_*)+",H={className:"number",relevance:0,variants:[{match:`\\b(${w})(\\.(${w}))?([eE][+-]?(${w}))?\\b`},{match:`\\b0x(${q})(\\.(${q}))?([pP][+-]?(${w}))?\\b`},{match:/\b0o([0-7]_*)+\b/},{match:/\b0b([01]_*)+\b/}]},Q=(Ve="")=>({className:"subst",variants:[{match:pt(/\\/,Ve,/[0\\tnr"']/)},{match:pt(/\\/,Ve,/u\{[0-9a-fA-F]{1,8}\}/)}]}),te=(Ve="")=>({className:"subst",match:pt(/\\/,Ve,/[\t ]*(?:[\r\n]|\r\n)/)}),L=(Ve="")=>({className:"subst",label:"interpol",begin:pt(/\\/,Ve,/\(/),end:/\)/}),ce=(Ve="")=>({begin:pt(Ve,/"""/),end:pt(/"""/,Ve),contains:[Q(Ve),te(Ve),L(Ve)]}),ee=(Ve="")=>({begin:pt(Ve,/"/),end:pt(/"/,Ve),contains:[Q(Ve),L(Ve)]}),fe={className:"string",variants:[ce(),ce("#"),ce("##"),ce("###"),ee(),ee("#"),ee("##"),ee("###")]},z=[n.BACKSLASH_ESCAPE,{begin:/\[/,end:/\]/,relevance:0,contains:[n.BACKSLASH_ESCAPE]}],se={begin:/\/[^\s](?=[^/\n]*\/)/,end:/\//,contains:z},re=Ve=>{const Qt=pt(Ve,/\//),Sn=pt(/\//,Ve);return{begin:Qt,end:Sn,contains:[...z,{scope:"comment",begin:`#(?!.*${Sn})`,end:/$/}]}},_e={scope:"regexp",variants:[re("###"),re("##"),re("#"),se]},oe={match:pt(/`/,gi,/`/)},X={className:"variable",match:/\$\d+/},Y={className:"variable",match:`\\$${po}+`},G=[oe,X,Y],K={match:/(@|#(un)?)available/,scope:"keyword",starts:{contains:[{begin:/\(/,end:/\)/,keywords:d1,contains:[...M,H,fe]}]}},ve={scope:"keyword",match:pt(/@/,yn(...f1),tl(yn(/\(/,/\s+/)))},S={scope:"meta",match:pt(/@/,gi)},Be=[K,ve,S],T={match:tl(/\b[A-Z]/),relevance:0,contains:[{className:"type",match:pt(/(AV|CA|CF|CG|CI|CL|CM|CN|CT|MK|MP|MTK|MTL|NS|SCN|SK|UI|WK|XC)/,po,"+")},{className:"type",match:go,relevance:0},{match:/[?!]+/,relevance:0},{match:/\.\.\./,relevance:0},{match:pt(/\s+&\s+/,tl(go)),relevance:0}]},_={begin:/</,end:/>/,keywords:p,contains:[...o,...b,...Be,x,T]};T.contains.push(_);const J={match:pt(gi,/\s*:/),keywords:"_|0",relevance:0},pe={begin:/\(/,end:/\)/,relevance:0,keywords:p,contains:["self",J,...o,_e,...b,...k,...M,H,fe,...G,...Be,T]},de={begin:/</,end:/>/,keywords:"repeat each",contains:[...o,T]},Ce={begin:yn(tl(pt(gi,/\s*:/)),tl(pt(gi,/\s+/,gi,/\s*:/))),end:/:/,relevance:0,contains:[{className:"keyword",match:/\b_\b/},{className:"params",match:gi}]},Ue={begin:/\(/,end:/\)/,keywords:p,contains:[Ce,...o,...b,...M,H,fe,...Be,T,pe],endsParent:!0,illegal:/["']/},kt={match:[/(func|macro)/,/\s+/,yn(oe.match,gi,Ac)],className:{1:"keyword",3:"title.function"},contains:[de,Ue,a],illegal:[/\[/,/%/]},Ke={match:[/\b(?:subscript|init[?!]?)/,/\s*(?=[<(])/],className:{1:"keyword"},contains:[de,Ue,a],illegal:/\[|%/},gt={match:[/operator/,/\s+/,Ac],className:{1:"keyword",3:"title"}},zn={begin:[/precedencegroup/,/\s+/,go],className:{1:"keyword",3:"title"},contains:[T],keywords:[...c1,...zp],end:/}/},Vt={match:[/class\b/,/\s+/,/func\b/,/\s+/,/\b[A-Za-z_][A-Za-z0-9_]*\b/],scope:{1:"keyword",3:"keyword",5:"title.function"}},bi={match:[/class\b/,/\s+/,/var\b/],scope:{1:"keyword",3:"keyword"}},en={begin:[/(struct|protocol|class|extension|enum|actor)/,/\s+/,gi,/\s*/],beginScope:{1:"keyword",3:"title.class"},keywords:p,contains:[de,...b,{begin:/:/,end:/\{/,keywords:p,contains:[{scope:"title.class.inherited",match:go},...b],relevance:0}]};for(const Ve of fe.variants){const Qt=Ve.contains.find(Vn=>Vn.label==="interpol");Qt.keywords=p;const Sn=[...b,...k,...M,H,fe,...G];Qt.contains=[...Sn,{begin:/\(/,end:/\)/,contains:["self",...Sn]}]}return{name:"Swift",keywords:p,contains:[...o,kt,Ke,Vt,bi,en,gt,zn,{beginKeywords:"import",end:/$/,contains:[...o],relevance:0},_e,...b,...k,...M,H,fe,...G,...Be,T,pe]}}const mo="[A-Za-z$_][0-9A-Za-z$_]*",qp=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends","using"],Fp=["true","false","null","undefined","NaN","Infinity"],Gp=["Object","Function","Boolean","Symbol","Math","Date","Number","BigInt","String","RegExp","Array","Float32Array","Float64Array","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Int32Array","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array","Set","Map","WeakSet","WeakMap","ArrayBuffer","SharedArrayBuffer","Atomics","DataView","JSON","Promise","Generator","GeneratorFunction","AsyncFunction","Reflect","Proxy","Intl","WebAssembly"],jp=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],Yp=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],Pp=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","global"],Kp=[].concat(Yp,Gp,jp);function g1(n){const a=n.regex,r=(K,{after:ve})=>{const S="</"+K[0].slice(1);return K.input.indexOf(S,ve)!==-1},o=mo,s={begin:"<>",end:"</>"},f=/<[A-Za-z0-9\\._:-]+\s*\/>/,u={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(K,ve)=>{const S=K[0].length+K.index,Be=K.input[S];if(Be==="<"||Be===","){ve.ignoreMatch();return}Be===">"&&(r(K,{after:S})||ve.ignoreMatch());let T;const _=K.input.substring(S);if(T=_.match(/^\s*=/)){ve.ignoreMatch();return}if((T=_.match(/^\s+extends\s+/))&&T.index===0){ve.ignoreMatch();return}}},g={$pattern:mo,keyword:qp,literal:Fp,built_in:Kp,"variable.language":Pp},m="[0-9](_?[0-9])*",p=`\\.(${m})`,b="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",h={className:"number",variants:[{begin:`(\\b(${b})((${p})|\\.)?|(${p}))[eE][+-]?(${m})\\b`},{begin:`\\b(${b})\\b((${p})\\b|\\.)?|(${p})\\b`},{begin:"\\b(0|[1-9](_?[0-9])*)n\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*n?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*n?\\b"},{begin:"\\b0[0-7]+n?\\b"}],relevance:0},v={className:"subst",begin:"\\$\\{",end:"\\}",keywords:g,contains:[]},k={begin:".?html`",end:"",starts:{end:"`",returnEnd:!1,contains:[n.BACKSLASH_ESCAPE,v],subLanguage:"xml"}},x={begin:".?css`",end:"",starts:{end:"`",returnEnd:!1,contains:[n.BACKSLASH_ESCAPE,v],subLanguage:"css"}},C={begin:".?gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[n.BACKSLASH_ESCAPE,v],subLanguage:"graphql"}},M={className:"string",begin:"`",end:"`",contains:[n.BACKSLASH_ESCAPE,v]},q={className:"comment",variants:[n.COMMENT(/\/\*\*(?!\/)/,"\\*/",{relevance:0,contains:[{begin:"(?=@[A-Za-z]+)",relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"},{className:"type",begin:"\\{",end:"\\}",excludeEnd:!0,excludeBegin:!0,relevance:0},{className:"variable",begin:o+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),n.C_BLOCK_COMMENT_MODE,n.C_LINE_COMMENT_MODE]},H=[n.APOS_STRING_MODE,n.QUOTE_STRING_MODE,k,x,C,M,{match:/\$\d+/},h];v.contains=H.concat({begin:/\{/,end:/\}/,keywords:g,contains:["self"].concat(H)});const Q=[].concat(q,v.contains),te=Q.concat([{begin:/(\s*)\(/,end:/\)/,keywords:g,contains:["self"].concat(Q)}]),L={className:"params",begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:g,contains:te},ce={variants:[{match:[/class/,/\s+/,o,/\s+/,/extends/,/\s+/,a.concat(o,"(",a.concat(/\./,o),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,o],scope:{1:"keyword",3:"title.class"}}]},ee={relevance:0,match:a.either(/\bJSON/,/\b[A-Z][a-z]+([A-Z][a-z]*|\d)*/,/\b[A-Z]{2,}([A-Z][a-z]+|\d)+([A-Z][a-z]*)*/,/\b[A-Z]{2,}[a-z]+([A-Z][a-z]+|\d)*([A-Z][a-z]*)*/),className:"title.class",keywords:{_:[...Gp,...jp]}},fe={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},z={variants:[{match:[/function/,/\s+/,o,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[L],illegal:/%/},se={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function re(K){return a.concat("(?!",K.join("|"),")")}const _e={match:a.concat(/\b/,re([...Yp,"super","import"].map(K=>`${K}\\s*\\(`)),o,a.lookahead(/\s*\(/)),className:"title.function",relevance:0},oe={begin:a.concat(/\./,a.lookahead(a.concat(o,/(?![0-9A-Za-z$_(])/))),end:o,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},X={match:[/get|set/,/\s+/,o,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},L]},Y="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+n.UNDERSCORE_IDENT_RE+")\\s*=>",G={match:[/const|var|let/,/\s+/,o,/\s*/,/=\s*/,/(async\s*)?/,a.lookahead(Y)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[L]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:g,exports:{PARAMS_CONTAINS:te,CLASS_REFERENCE:ee},illegal:/#(?![$_A-z])/,contains:[n.SHEBANG({label:"shebang",binary:"node",relevance:5}),fe,n.APOS_STRING_MODE,n.QUOTE_STRING_MODE,k,x,C,M,q,{match:/\$\d+/},h,ee,{scope:"attr",match:o+a.lookahead(":"),relevance:0},G,{begin:"("+n.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[q,n.REGEXP_MODE,{className:"function",begin:Y,returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:n.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:g,contains:te}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:s.begin,end:s.end},{match:f},{begin:u.begin,"on:begin":u.isTrulyOpeningTag,end:u.end}],subLanguage:"xml",contains:[{begin:u.begin,end:u.end,skip:!0,contains:["self"]}]}]},z,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+n.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[L,n.inherit(n.TITLE_MODE,{begin:o,className:"title.function"})]},{match:/\.\.\./,relevance:0},oe,{match:"\\$"+o,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[L]},_e,se,ce,X,{match:/\$[(.]/}]}}function m1(n){const a=n.regex,r=g1(n),o=mo,s=["any","void","number","boolean","string","object","never","symbol","bigint","unknown"],f={begin:[/namespace/,/\s+/,n.IDENT_RE],beginScope:{1:"keyword",3:"title.class"}},u={beginKeywords:"interface",end:/\{/,excludeEnd:!0,keywords:{keyword:"interface extends",built_in:s},contains:[r.exports.CLASS_REFERENCE]},g={className:"meta",relevance:10,begin:/^\s*['"]use strict['"]/},m=["type","interface","public","private","protected","implements","declare","abstract","readonly","enum","override","satisfies"],p={$pattern:mo,keyword:qp.concat(m),literal:Fp,built_in:Kp.concat(s),"variable.language":Pp},b={className:"meta",begin:"@"+o},h=(C,M,w)=>{const q=C.contains.findIndex(H=>H.label===M);if(q===-1)throw new Error("can not find mode to replace");C.contains.splice(q,1,w)};Object.assign(r.keywords,p),r.exports.PARAMS_CONTAINS.push(b);const v=r.contains.find(C=>C.scope==="attr"),k=Object.assign({},v,{match:a.concat(o,a.lookahead(/\s*\?:/))});r.exports.PARAMS_CONTAINS.push([r.exports.CLASS_REFERENCE,v,k]),r.contains=r.contains.concat([b,f,u,k]),h(r,"shebang",n.SHEBANG()),h(r,"use_strict",g);const x=r.contains.find(C=>C.label==="func.def");return x.relevance=0,Object.assign(r,{name:"TypeScript",aliases:["ts","tsx","mts","cts"]}),r}function h1(n){const a=n.regex,r={className:"string",begin:/"(""|[^/n])"C\b/},o={className:"string",begin:/"/,end:/"/,illegal:/\n/,contains:[{begin:/""/}]},s=/\d{1,2}\/\d{1,2}\/\d{4}/,f=/\d{4}-\d{1,2}-\d{1,2}/,u=/(\d|1[012])(:\d+){0,2} *(AM|PM)/,g=/\d{1,2}(:\d{1,2}){1,2}/,m={className:"literal",variants:[{begin:a.concat(/# */,a.either(f,s),/ *#/)},{begin:a.concat(/# */,g,/ *#/)},{begin:a.concat(/# */,u,/ *#/)},{begin:a.concat(/# */,a.either(f,s),/ +/,a.either(u,g),/ *#/)}]},p={className:"number",relevance:0,variants:[{begin:/\b\d[\d_]*((\.[\d_]+(E[+-]?[\d_]+)?)|(E[+-]?[\d_]+))[RFD@!#]?/},{begin:/\b\d[\d_]*((U?[SIL])|[%&])?/},{begin:/&H[\dA-F_]+((U?[SIL])|[%&])?/},{begin:/&O[0-7_]+((U?[SIL])|[%&])?/},{begin:/&B[01_]+((U?[SIL])|[%&])?/}]},b={className:"label",begin:/^\w+:/},h=n.COMMENT(/'''/,/$/,{contains:[{className:"doctag",begin:/<\/?/,end:/>/}]}),v=n.COMMENT(null,/$/,{variants:[{begin:/'/},{begin:/([\t ]|^)REM(?=\s)/}]});return{name:"Visual Basic .NET",aliases:["vb"],case_insensitive:!0,classNameAliases:{label:"symbol"},keywords:{keyword:"addhandler alias aggregate ansi as async assembly auto binary by byref byval call case catch class compare const continue custom declare default delegate dim distinct do each equals else elseif end enum erase error event exit explicit finally for friend from function get global goto group handles if implements imports in inherits interface into iterator join key let lib loop me mid module mustinherit mustoverride mybase myclass namespace narrowing new next notinheritable notoverridable of off on operator option optional order overloads overridable overrides paramarray partial preserve private property protected public raiseevent readonly redim removehandler resume return select set shadows shared skip static step stop structure strict sub synclock take text then throw to try unicode until using when where while widening with withevents writeonly yield",built_in:"addressof and andalso await directcast gettype getxmlnamespace is isfalse isnot istrue like mod nameof new not or orelse trycast typeof xor cbool cbyte cchar cdate cdbl cdec cint clng cobj csbyte cshort csng cstr cuint culng cushort",type:"boolean byte char date decimal double integer long object sbyte short single string uinteger ulong ushort",literal:"true false nothing"},illegal:"//|\\{|\\}|endif|gosub|variant|wend|^\\$ ",contains:[r,o,m,p,b,h,v,{className:"meta",begin:/[\t ]*#(const|disable|else|elseif|enable|end|externalsource|if|region)\b/,end:/$/,keywords:{keyword:"const disable else elseif enable end externalsource if region then"},contains:[v]}]}}function b1(n){n.regex;const a=n.COMMENT(/\(;/,/;\)/);a.contains.push("self");const r=n.COMMENT(/;;/,/$/),o=["anyfunc","block","br","br_if","br_table","call","call_indirect","data","drop","elem","else","end","export","func","global.get","global.set","local.get","local.set","local.tee","get_global","get_local","global","if","import","local","loop","memory","memory.grow","memory.size","module","mut","nop","offset","param","result","return","select","set_global","set_local","start","table","tee_local","then","type","unreachable"],s={begin:[/(?:func|call|call_indirect)/,/\s+/,/\$[^\s)]+/],className:{1:"keyword",3:"title.function"}},f={className:"variable",begin:/\$[\w_]+/},u={match:/(\((?!;)|\))+/,className:"punctuation",relevance:0},g={className:"number",relevance:0,match:/[+-]?\b(?:\d(?:_?\d)*(?:\.\d(?:_?\d)*)?(?:[eE][+-]?\d(?:_?\d)*)?|0x[\da-fA-F](?:_?[\da-fA-F])*(?:\.[\da-fA-F](?:_?[\da-fA-D])*)?(?:[pP][+-]?\d(?:_?\d)*)?)\b|\binf\b|\bnan(?::0x[\da-fA-F](?:_?[\da-fA-D])*)?\b/},m={match:/(i32|i64|f32|f64)(?!\.)/,className:"type"},p={className:"keyword",match:/\b(f32|f64|i32|i64)(?:\.(?:abs|add|and|ceil|clz|const|convert_[su]\/i(?:32|64)|copysign|ctz|demote\/f64|div(?:_[su])?|eqz?|extend_[su]\/i32|floor|ge(?:_[su])?|gt(?:_[su])?|le(?:_[su])?|load(?:(?:8|16|32)_[su])?|lt(?:_[su])?|max|min|mul|nearest|neg?|or|popcnt|promote\/f32|reinterpret\/[fi](?:32|64)|rem_[su]|rot[lr]|shl|shr_[su]|store(?:8|16|32)?|sqrt|sub|trunc(?:_[su]\/f(?:32|64))?|wrap\/i64|xor))\b/};return{name:"WebAssembly",keywords:{$pattern:/[\w.]+/,keyword:o},contains:[r,a,{match:[/(?:offset|align)/,/\s*/,/=/],className:{1:"keyword",3:"operator"}},f,u,s,n.QUOTE_STRING_MODE,m,p,g]}}function y1(n){const a=n.regex,r=a.concat(/[\p{L}_]/u,a.optional(/[\p{L}0-9_.-]*:/u),/[\p{L}0-9_.-]*/u),o=/[\p{L}0-9._:-]+/u,s={className:"symbol",begin:/&[a-z]+;|&#[0-9]+;|&#x[a-f0-9]+;/},f={begin:/\s/,contains:[{className:"keyword",begin:/#?[a-z_][a-z1-9_-]+/,illegal:/\n/}]},u=n.inherit(f,{begin:/\(/,end:/\)/}),g=n.inherit(n.APOS_STRING_MODE,{className:"string"}),m=n.inherit(n.QUOTE_STRING_MODE,{className:"string"}),p={endsWithParent:!0,illegal:/</,relevance:0,contains:[{className:"attr",begin:o,relevance:0},{begin:/=\s*/,relevance:0,contains:[{className:"string",endsParent:!0,variants:[{begin:/"/,end:/"/,contains:[s]},{begin:/'/,end:/'/,contains:[s]},{begin:/[^\s"'=<>`]+/}]}]}]};return{name:"HTML, XML",aliases:["html","xhtml","rss","atom","xjb","xsd","xsl","plist","wsf","svg"],case_insensitive:!0,unicodeRegex:!0,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,relevance:10,contains:[f,m,g,u,{begin:/\[/,end:/\]/,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,contains:[f,u,m,g]}]}]},n.COMMENT(/<!--/,/-->/,{relevance:10}),{begin:/<!\[CDATA\[/,end:/\]\]>/,relevance:10},s,{className:"meta",end:/\?>/,variants:[{begin:/<\?xml/,relevance:10,contains:[m]},{begin:/<\?[a-z][a-z0-9]+/}]},{className:"tag",begin:/<style(?=\s|>)/,end:/>/,keywords:{name:"style"},contains:[p],starts:{end:/<\/style>/,returnEnd:!0,subLanguage:["css","xml"]}},{className:"tag",begin:/<script(?=\s|>)/,end:/>/,keywords:{name:"script"},contains:[p],starts:{end:/<\/script>/,returnEnd:!0,subLanguage:["javascript","handlebars","xml"]}},{className:"tag",begin:/<>|<\/>/},{className:"tag",begin:a.concat(/</,a.lookahead(a.concat(r,a.either(/\/>/,/>/,/\s/)))),end:/\/?>/,contains:[{className:"name",begin:r,relevance:0,starts:p}]},{className:"tag",begin:a.concat(/<\//,a.lookahead(a.concat(r,/>/))),contains:[{className:"name",begin:r,relevance:0},{begin:/>/,relevance:0,endsParent:!0}]}]}}function v1(n){const a="true false yes no null",r="[\\w#;/?:@&=+$,.~*'()[\\]]+",o={className:"attr",variants:[{begin:/[\w*@][\w*@ :()\./-]*:(?=[ \t]|$)/},{begin:/"[\w*@][\w*@ :()\./-]*":(?=[ \t]|$)/},{begin:/'[\w*@][\w*@ :()\./-]*':(?=[ \t]|$)/}]},s={className:"template-variable",variants:[{begin:/\{\{/,end:/\}\}/},{begin:/%\{/,end:/\}/}]},f={className:"string",relevance:0,begin:/'/,end:/'/,contains:[{match:/''/,scope:"char.escape",relevance:0}]},u={className:"string",relevance:0,variants:[{begin:/"/,end:/"/},{begin:/\S+/}],contains:[n.BACKSLASH_ESCAPE,s]},g=n.inherit(u,{variants:[{begin:/'/,end:/'/,contains:[{begin:/''/,relevance:0}]},{begin:/"/,end:/"/},{begin:/[^\s,{}[\]]+/}]}),v={className:"number",begin:"\\b"+"[0-9]{4}(-[0-9][0-9]){0,2}"+"([Tt \\t][0-9][0-9]?(:[0-9][0-9]){2})?"+"(\\.[0-9]*)?"+"([ \\t])*(Z|[-+][0-9][0-9]?(:[0-9][0-9])?)?"+"\\b"},k={end:",",endsWithParent:!0,excludeEnd:!0,keywords:a,relevance:0},x={begin:/\{/,end:/\}/,contains:[k],illegal:"\\n",relevance:0},C={begin:"\\[",end:"\\]",contains:[k],illegal:"\\n",relevance:0},M=[o,{className:"meta",begin:"^---\\s*$",relevance:10},{className:"string",begin:"[\\|>]([1-9]?[+-])?[ ]*\\n( +)[^ ][^\\n]*\\n(\\2[^\\n]+\\n?)*"},{begin:"<%[%=-]?",end:"[%-]?%>",subLanguage:"ruby",excludeBegin:!0,excludeEnd:!0,relevance:0},{className:"type",begin:"!\\w+!"+r},{className:"type",begin:"!<"+r+">"},{className:"type",begin:"!"+r},{className:"type",begin:"!!"+r},{className:"meta",begin:"&"+n.UNDERSCORE_IDENT_RE+"$"},{className:"meta",begin:"\\*"+n.UNDERSCORE_IDENT_RE+"$"},{className:"bullet",begin:"-(?=[ ]|$)",relevance:0},n.HASH_COMMENT_MODE,{beginKeywords:a,keywords:{literal:a}},v,{className:"number",begin:n.C_NUMBER_RE+"\\b",relevance:0},x,C,f,u],w=[...M];return w.pop(),w.push(g),k.contains=w,{name:"YAML",case_insensitive:!0,aliases:["yml"],contains:M}}const k1={arduino:t_,bash:n_,c:i_,cpp:a_,csharp:r_,css:g_,diff:m_,go:h_,graphql:b_,ini:y_,java:v_,javascript:S_,json:w_,kotlin:A_,less:z_,lua:I_,makefile:B_,markdown:U_,objectivec:H_,perl:q_,php:F_,"php-template":G_,plaintext:j_,python:Y_,"python-repl":P_,r:K_,ruby:V_,rust:$_,scss:i1,shell:a1,sql:r1,swift:p1,typescript:m1,vbnet:h1,wasm:b1,xml:y1,yaml:v1};var Nc,Vp;function E1(){if(Vp)return Nc;Vp=1;function n(N){return N instanceof Map?N.clear=N.delete=N.set=function(){throw new Error("map is read-only")}:N instanceof Set&&(N.add=N.clear=N.delete=function(){throw new Error("set is read-only")}),Object.freeze(N),Object.getOwnPropertyNames(N).forEach(V=>{const le=N[V],De=typeof le;(De==="object"||De==="function")&&!Object.isFrozen(le)&&n(le)}),N}class a{constructor(V){V.data===void 0&&(V.data={}),this.data=V.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}}function r(N){return N.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;")}function o(N,...V){const le=Object.create(null);for(const De in N)le[De]=N[De];return V.forEach(function(De){for(const wt in De)le[wt]=De[wt]}),le}const s="</span>",f=N=>!!N.scope,u=(N,{prefix:V})=>{if(N.startsWith("language:"))return N.replace("language:","language-");if(N.includes(".")){const le=N.split(".");return[`${V}${le.shift()}`,...le.map((De,wt)=>`${De}${"_".repeat(wt+1)}`)].join(" ")}return`${V}${N}`};class g{constructor(V,le){this.buffer="",this.classPrefix=le.classPrefix,V.walk(this)}addText(V){this.buffer+=r(V)}openNode(V){if(!f(V))return;const le=u(V.scope,{prefix:this.classPrefix});this.span(le)}closeNode(V){f(V)&&(this.buffer+=s)}value(){return this.buffer}span(V){this.buffer+=`<span class="${V}">`}}const m=(N={})=>{const V={children:[]};return Object.assign(V,N),V};class p{constructor(){this.rootNode=m(),this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(V){this.top.children.push(V)}openNode(V){const le=m({scope:V});this.add(le),this.stack.push(le)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(V){return this.constructor._walk(V,this.rootNode)}static _walk(V,le){return typeof le=="string"?V.addText(le):le.children&&(V.openNode(le),le.children.forEach(De=>this._walk(V,De)),V.closeNode(le)),V}static _collapse(V){typeof V!="string"&&V.children&&(V.children.every(le=>typeof le=="string")?V.children=[V.children.join("")]:V.children.forEach(le=>{p._collapse(le)}))}}class b extends p{constructor(V){super(),this.options=V}addText(V){V!==""&&this.add(V)}startScope(V){this.openNode(V)}endScope(){this.closeNode()}__addSublanguage(V,le){const De=V.root;le&&(De.scope=`language:${le}`),this.add(De)}toHTML(){return new g(this,this.options).value()}finalize(){return this.closeAllNodes(),!0}}function h(N){return N?typeof N=="string"?N:N.source:null}function v(N){return C("(?=",N,")")}function k(N){return C("(?:",N,")*")}function x(N){return C("(?:",N,")?")}function C(...N){return N.map(le=>h(le)).join("")}function M(N){const V=N[N.length-1];return typeof V=="object"&&V.constructor===Object?(N.splice(N.length-1,1),V):{}}function w(...N){return"("+(M(N).capture?"":"?:")+N.map(De=>h(De)).join("|")+")"}function q(N){return new RegExp(N.toString()+"|").exec("").length-1}function H(N,V){const le=N&&N.exec(V);return le&&le.index===0}const Q=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function te(N,{joinWith:V}){let le=0;return N.map(De=>{le+=1;const wt=le;let Qe=h(De),he="";for(;Qe.length>0;){const ge=Q.exec(Qe);if(!ge){he+=Qe;break}he+=Qe.substring(0,ge.index),Qe=Qe.substring(ge.index+ge[0].length),ge[0][0]==="\\"&&ge[1]?he+="\\"+String(Number(ge[1])+wt):(he+=ge[0],ge[0]==="("&&le++)}return he}).map(De=>`(${De})`).join(V)}const L=/\b\B/,ce="[a-zA-Z]\\w*",ee="[a-zA-Z_]\\w*",fe="\\b\\d+(\\.\\d+)?",z="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",se="\\b(0b[01]+)",re="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",_e=(N={})=>{const V=/^#![ ]*\//;return N.binary&&(N.begin=C(V,/.*\b/,N.binary,/\b.*/)),o({scope:"meta",begin:V,end:/$/,relevance:0,"on:begin":(le,De)=>{le.index!==0&&De.ignoreMatch()}},N)},oe={begin:"\\\\[\\s\\S]",relevance:0},X={scope:"string",begin:"'",end:"'",illegal:"\\n",contains:[oe]},Y={scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[oe]},G={begin:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/},K=function(N,V,le={}){const De=o({scope:"comment",begin:N,end:V,contains:[]},le);De.contains.push({scope:"doctag",begin:"[ ]*(?=(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):)",end:/(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):/,excludeBegin:!0,relevance:0});const wt=w("I","a","is","so","us","to","at","if","in","it","on",/[A-Za-z]+['](d|ve|re|ll|t|s|n)/,/[A-Za-z]+[-][a-z]+/,/[A-Za-z][a-z]{2,}/);return De.contains.push({begin:C(/[ ]+/,"(",wt,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),De},ve=K("//","$"),S=K("/\\*","\\*/"),Be=K("#","$"),T={scope:"number",begin:fe,relevance:0},_={scope:"number",begin:z,relevance:0},J={scope:"number",begin:se,relevance:0},pe={scope:"regexp",begin:/\/(?=[^/\n]*\/)/,end:/\/[gimuy]*/,contains:[oe,{begin:/\[/,end:/\]/,relevance:0,contains:[oe]}]},de={scope:"title",begin:ce,relevance:0},Ce={scope:"title",begin:ee,relevance:0},Ue={begin:"\\.\\s*"+ee,relevance:0};var Ke=Object.freeze({__proto__:null,APOS_STRING_MODE:X,BACKSLASH_ESCAPE:oe,BINARY_NUMBER_MODE:J,BINARY_NUMBER_RE:se,COMMENT:K,C_BLOCK_COMMENT_MODE:S,C_LINE_COMMENT_MODE:ve,C_NUMBER_MODE:_,C_NUMBER_RE:z,END_SAME_AS_BEGIN:function(N){return Object.assign(N,{"on:begin":(V,le)=>{le.data._beginMatch=V[1]},"on:end":(V,le)=>{le.data._beginMatch!==V[1]&&le.ignoreMatch()}})},HASH_COMMENT_MODE:Be,IDENT_RE:ce,MATCH_NOTHING_RE:L,METHOD_GUARD:Ue,NUMBER_MODE:T,NUMBER_RE:fe,PHRASAL_WORDS_MODE:G,QUOTE_STRING_MODE:Y,REGEXP_MODE:pe,RE_STARTERS_RE:re,SHEBANG:_e,TITLE_MODE:de,UNDERSCORE_IDENT_RE:ee,UNDERSCORE_TITLE_MODE:Ce});function gt(N,V){N.input[N.index-1]==="."&&V.ignoreMatch()}function zn(N,V){N.className!==void 0&&(N.scope=N.className,delete N.className)}function Vt(N,V){V&&N.beginKeywords&&(N.begin="\\b("+N.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",N.__beforeBegin=gt,N.keywords=N.keywords||N.beginKeywords,delete N.beginKeywords,N.relevance===void 0&&(N.relevance=0))}function bi(N,V){Array.isArray(N.illegal)&&(N.illegal=w(...N.illegal))}function en(N,V){if(N.match){if(N.begin||N.end)throw new Error("begin & end are not supported with match");N.begin=N.match,delete N.match}}function Ve(N,V){N.relevance===void 0&&(N.relevance=1)}const Qt=(N,V)=>{if(!N.beforeMatch)return;if(N.starts)throw new Error("beforeMatch cannot be used with starts");const le=Object.assign({},N);Object.keys(N).forEach(De=>{delete N[De]}),N.keywords=le.keywords,N.begin=C(le.beforeMatch,v(le.begin)),N.starts={relevance:0,contains:[Object.assign(le,{endsParent:!0})]},N.relevance=0,delete le.beforeMatch},Sn=["of","and","for","in","not","or","if","then","parent","list","value"],Vn="keyword";function In(N,V,le=Vn){const De=Object.create(null);return typeof N=="string"?wt(le,N.split(" ")):Array.isArray(N)?wt(le,N):Object.keys(N).forEach(function(Qe){Object.assign(De,In(N[Qe],V,Qe))}),De;function wt(Qe,he){V&&(he=he.map(ge=>ge.toLowerCase())),he.forEach(function(ge){const Se=ge.split("|");De[Se[0]]=[Qe,Ni(Se[0],Se[1])]})}}function Ni(N,V){return V?Number(V):Bn(N)?0:1}function Bn(N){return Sn.includes(N.toLowerCase())}const $n={},Rt=N=>{console.error(N)},lt=(N,...V)=>{console.log(`WARN: ${N}`,...V)},j=(N,V)=>{$n[`${N}/${V}`]||(console.log(`Deprecated as of ${N}. ${V}`),$n[`${N}/${V}`]=!0)},ae=new Error;function Ae(N,V,{key:le}){let De=0;const wt=N[le],Qe={},he={};for(let ge=1;ge<=V.length;ge++)he[ge+De]=wt[ge],Qe[ge+De]=!0,De+=q(V[ge-1]);N[le]=he,N[le]._emit=Qe,N[le]._multi=!0}function qe(N){if(Array.isArray(N.begin)){if(N.skip||N.excludeBegin||N.returnBegin)throw Rt("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),ae;if(typeof N.beginScope!="object"||N.beginScope===null)throw Rt("beginScope must be object"),ae;Ae(N,N.begin,{key:"beginScope"}),N.begin=te(N.begin,{joinWith:""})}}function nt(N){if(Array.isArray(N.end)){if(N.skip||N.excludeEnd||N.returnEnd)throw Rt("skip, excludeEnd, returnEnd not compatible with endScope: {}"),ae;if(typeof N.endScope!="object"||N.endScope===null)throw Rt("endScope must be object"),ae;Ae(N,N.end,{key:"endScope"}),N.end=te(N.end,{joinWith:""})}}function $t(N){N.scope&&typeof N.scope=="object"&&N.scope!==null&&(N.beginScope=N.scope,delete N.scope)}function dn(N){$t(N),typeof N.beginScope=="string"&&(N.beginScope={_wrap:N.beginScope}),typeof N.endScope=="string"&&(N.endScope={_wrap:N.endScope}),qe(N),nt(N)}function tn(N){function V(he,ge){return new RegExp(h(he),"m"+(N.case_insensitive?"i":"")+(N.unicodeRegex?"u":"")+(ge?"g":""))}class le{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(ge,Se){Se.position=this.position++,this.matchIndexes[this.matchAt]=Se,this.regexes.push([Se,ge]),this.matchAt+=q(ge)+1}compile(){this.regexes.length===0&&(this.exec=()=>null);const ge=this.regexes.map(Se=>Se[1]);this.matcherRe=V(te(ge,{joinWith:"|"}),!0),this.lastIndex=0}exec(ge){this.matcherRe.lastIndex=this.lastIndex;const Se=this.matcherRe.exec(ge);if(!Se)return null;const Ge=Se.findIndex((vn,pn)=>pn>0&&vn!==void 0),ct=this.matchIndexes[Ge];return Se.splice(0,Ge),Object.assign(Se,ct)}}class De{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(ge){if(this.multiRegexes[ge])return this.multiRegexes[ge];const Se=new le;return this.rules.slice(ge).forEach(([Ge,ct])=>Se.addRule(Ge,ct)),Se.compile(),this.multiRegexes[ge]=Se,Se}resumingScanAtSamePosition(){return this.regexIndex!==0}considerAll(){this.regexIndex=0}addRule(ge,Se){this.rules.push([ge,Se]),Se.type==="begin"&&this.count++}exec(ge){const Se=this.getMatcher(this.regexIndex);Se.lastIndex=this.lastIndex;let Ge=Se.exec(ge);if(this.resumingScanAtSamePosition()&&!(Ge&&Ge.index===this.lastIndex)){const ct=this.getMatcher(0);ct.lastIndex=this.lastIndex+1,Ge=ct.exec(ge)}return Ge&&(this.regexIndex+=Ge.position+1,this.regexIndex===this.count&&this.considerAll()),Ge}}function wt(he){const ge=new De;return he.contains.forEach(Se=>ge.addRule(Se.begin,{rule:Se,type:"begin"})),he.terminatorEnd&&ge.addRule(he.terminatorEnd,{type:"end"}),he.illegal&&ge.addRule(he.illegal,{type:"illegal"}),ge}function Qe(he,ge){const Se=he;if(he.isCompiled)return Se;[zn,en,dn,Qt].forEach(ct=>ct(he,ge)),N.compilerExtensions.forEach(ct=>ct(he,ge)),he.__beforeBegin=null,[Vt,bi,Ve].forEach(ct=>ct(he,ge)),he.isCompiled=!0;let Ge=null;return typeof he.keywords=="object"&&he.keywords.$pattern&&(he.keywords=Object.assign({},he.keywords),Ge=he.keywords.$pattern,delete he.keywords.$pattern),Ge=Ge||/\w+/,he.keywords&&(he.keywords=In(he.keywords,N.case_insensitive)),Se.keywordPatternRe=V(Ge,!0),ge&&(he.begin||(he.begin=/\B|\b/),Se.beginRe=V(Se.begin),!he.end&&!he.endsWithParent&&(he.end=/\B|\b/),he.end&&(Se.endRe=V(Se.end)),Se.terminatorEnd=h(Se.end)||"",he.endsWithParent&&ge.terminatorEnd&&(Se.terminatorEnd+=(he.end?"|":"")+ge.terminatorEnd)),he.illegal&&(Se.illegalRe=V(he.illegal)),he.contains||(he.contains=[]),he.contains=[].concat(...he.contains.map(function(ct){return xt(ct==="self"?he:ct)})),he.contains.forEach(function(ct){Qe(ct,Se)}),he.starts&&Qe(he.starts,ge),Se.matcher=wt(Se),Se}if(N.compilerExtensions||(N.compilerExtensions=[]),N.contains&&N.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return N.classNameAliases=o(N.classNameAliases||{}),Qe(N)}function Jt(N){return N?N.endsWithParent||Jt(N.starts):!1}function xt(N){return N.variants&&!N.cachedVariants&&(N.cachedVariants=N.variants.map(function(V){return o(N,{variants:null},V)})),N.cachedVariants?N.cachedVariants:Jt(N)?o(N,{starts:N.starts?o(N.starts):null}):Object.isFrozen(N)?o(N):N}var Et="11.11.1";class St extends Error{constructor(V,le){super(V),this.name="HTMLInjectionError",this.html=le}}const nn=r,Ci=o,La=Symbol("nomatch"),Wi=7,Oi=function(N){const V=Object.create(null),le=Object.create(null),De=[];let wt=!0;const Qe="Could not find the language '{}', did you forget to load/include a language module?",he={disableAutodetect:!0,name:"Plain text",contains:[]};let ge={ignoreUnescapedHTML:!1,throwUnescapedHTML:!1,noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",cssSelector:"pre code",languages:null,__emitter:b};function Se(W){return ge.noHighlightRe.test(W)}function Ge(W){let ke=W.className+" ";ke+=W.parentNode?W.parentNode.className:"";const Pe=ge.languageDetectRe.exec(ke);if(Pe){const ot=Nt(Pe[1]);return ot||(lt(Qe.replace("{}",Pe[1])),lt("Falling back to no-highlight mode for this block.",W)),ot?Pe[1]:"no-highlight"}return ke.split(/\s+/).find(ot=>Se(ot)||Nt(ot))}function ct(W,ke,Pe){let ot="",ne="";typeof ke=="object"?(ot=W,Pe=ke.ignoreIllegals,ne=ke.language):(j("10.7.0","highlight(lang, code, ...args) has been deprecated."),j("10.7.0",`Please use highlight(code, options) instead.
27
- https://github.com/highlightjs/highlight.js/issues/2277`),ne=W,ot=ke),Pe===void 0&&(Pe=!0);const Te={code:ot,language:ne};oi("before:highlight",Te);const Oe=Te.result?Te.result:vn(Te.language,Te.code,Pe);return Oe.code=Te.code,oi("after:highlight",Oe),Oe}function vn(W,ke,Pe,ot){const ne=Object.create(null);function Te(ue,be){return ue.keywords[be]}function Oe(){if(!ze.keywords){Zt.addText(ut);return}let ue=0;ze.keywordPatternRe.lastIndex=0;let be=ze.keywordPatternRe.exec(ut),Fe="";for(;be;){Fe+=ut.substring(ue,be.index);const it=Tn.case_insensitive?be[0].toLowerCase():be[0],Mt=Te(ze,it);if(Mt){const[hn,Eo]=Mt;if(Zt.addText(Fe),Fe="",ne[it]=(ne[it]||0)+1,ne[it]<=Wi&&(Ia+=Eo),hn.startsWith("_"))Fe+=be[0];else{const ol=Tn.classNameAliases[hn]||hn;Re(be[0],ol)}}else Fe+=be[0];ue=ze.keywordPatternRe.lastIndex,be=ze.keywordPatternRe.exec(ut)}Fe+=ut.substring(ue),Zt.addText(Fe)}function Le(){if(ut==="")return;let ue=null;if(typeof ze.subLanguage=="string"){if(!V[ze.subLanguage]){Zt.addText(ut);return}ue=vn(ze.subLanguage,ut,!0,Li[ze.subLanguage]),Li[ze.subLanguage]=ue._top}else ue=Mi(ut,ze.subLanguage.length?ze.subLanguage:null);ze.relevance>0&&(Ia+=ue.relevance),Zt.__addSublanguage(ue._emitter,ue.language)}function Me(){ze.subLanguage!=null?Le():Oe(),ut=""}function Re(ue,be){ue!==""&&(Zt.startScope(be),Zt.addText(ue),Zt.endScope())}function kn(ue,be){let Fe=1;const it=be.length-1;for(;Fe<=it;){if(!ue._emit[Fe]){Fe++;continue}const Mt=Tn.classNameAliases[ue[Fe]]||ue[Fe],hn=be[Fe];Mt?Re(hn,Mt):(ut=hn,Oe(),ut=""),Fe++}}function si(ue,be){return ue.scope&&typeof ue.scope=="string"&&Zt.openNode(Tn.classNameAliases[ue.scope]||ue.scope),ue.beginScope&&(ue.beginScope._wrap?(Re(ut,Tn.classNameAliases[ue.beginScope._wrap]||ue.beginScope._wrap),ut=""):ue.beginScope._multi&&(kn(ue.beginScope,be),ut="")),ze=Object.create(ue,{parent:{value:ze}}),ze}function Ht(ue,be,Fe){let it=H(ue.endRe,Fe);if(it){if(ue["on:end"]){const Mt=new a(ue);ue["on:end"](be,Mt),Mt.isMatchIgnored&&(it=!1)}if(it){for(;ue.endsParent&&ue.parent;)ue=ue.parent;return ue}}if(ue.endsWithParent)return Ht(ue.parent,be,Fe)}function Di(ue){return ze.matcher.regexIndex===0?(ut+=ue[0],1):(ll=!0,0)}function Qn(ue){const be=ue[0],Fe=ue.rule,it=new a(Fe),Mt=[Fe.__beforeBegin,Fe["on:begin"]];for(const hn of Mt)if(hn&&(hn(ue,it),it.isMatchIgnored))return Di(be);return Fe.skip?ut+=be:(Fe.excludeBegin&&(ut+=be),Me(),!Fe.returnBegin&&!Fe.excludeBegin&&(ut=be)),si(Fe,ue),Fe.returnBegin?0:be.length}function ki(ue){const be=ue[0],Fe=ke.substring(ue.index),it=Ht(ze,ue,Fe);if(!it)return La;const Mt=ze;ze.endScope&&ze.endScope._wrap?(Me(),Re(be,ze.endScope._wrap)):ze.endScope&&ze.endScope._multi?(Me(),kn(ze.endScope,ue)):Mt.skip?ut+=be:(Mt.returnEnd||Mt.excludeEnd||(ut+=be),Me(),Mt.excludeEnd&&(ut=be));do ze.scope&&Zt.closeNode(),!ze.skip&&!ze.subLanguage&&(Ia+=ze.relevance),ze=ze.parent;while(ze!==it.parent);return it.starts&&si(it.starts,ue),Mt.returnEnd?0:be.length}function mn(){const ue=[];for(let be=ze;be!==Tn;be=be.parent)be.scope&&ue.unshift(be.scope);ue.forEach(be=>Zt.openNode(be))}let Ei={};function al(ue,be){const Fe=be&&be[0];if(ut+=ue,Fe==null)return Me(),0;if(Ei.type==="begin"&&be.type==="end"&&Ei.index===be.index&&Fe===""){if(ut+=ke.slice(be.index,be.index+1),!wt){const it=new Error(`0 width match regex (${W})`);throw it.languageName=W,it.badRule=Ei.rule,it}return 1}if(Ei=be,be.type==="begin")return Qn(be);if(be.type==="illegal"&&!Pe){const it=new Error('Illegal lexeme "'+Fe+'" for mode "'+(ze.scope||"<unnamed>")+'"');throw it.mode=ze,it}else if(be.type==="end"){const it=ki(be);if(it!==La)return it}if(be.type==="illegal"&&Fe==="")return ut+=`
28
- `,1;if(rl>1e5&&rl>be.index*3)throw new Error("potential infinite loop, way more iterations than matches");return ut+=Fe,Fe.length}const Tn=Nt(W);if(!Tn)throw Rt(Qe.replace("{}",W)),new Error('Unknown language: "'+W+'"');const ia=tn(Tn);let ur="",ze=ot||ia;const Li={},Zt=new ge.__emitter(ge);mn();let ut="",Ia=0,ci=0,rl=0,ll=!1;try{if(Tn.__emitTokens)Tn.__emitTokens(ke,Zt);else{for(ze.matcher.considerAll();;){rl++,ll?ll=!1:ze.matcher.considerAll(),ze.matcher.lastIndex=ci;const ue=ze.matcher.exec(ke);if(!ue)break;const be=ke.substring(ci,ue.index),Fe=al(be,ue);ci=ue.index+Fe}al(ke.substring(ci))}return Zt.finalize(),ur=Zt.toHTML(),{language:W,value:ur,relevance:Ia,illegal:!1,_emitter:Zt,_top:ze}}catch(ue){if(ue.message&&ue.message.includes("Illegal"))return{language:W,value:nn(ke),illegal:!0,relevance:0,_illegalBy:{message:ue.message,index:ci,context:ke.slice(ci-100,ci+100),mode:ue.mode,resultSoFar:ur},_emitter:Zt};if(wt)return{language:W,value:nn(ke),illegal:!1,relevance:0,errorRaised:ue,_emitter:Zt,_top:ze};throw ue}}function pn(W){const ke={value:nn(W),illegal:!1,relevance:0,_top:he,_emitter:new ge.__emitter(ge)};return ke._emitter.addText(W),ke}function Mi(W,ke){ke=ke||ge.languages||Object.keys(V);const Pe=pn(W),ot=ke.filter(Nt).filter(gn).map(Me=>vn(Me,W,!1));ot.unshift(Pe);const ne=ot.sort((Me,Re)=>{if(Me.relevance!==Re.relevance)return Re.relevance-Me.relevance;if(Me.language&&Re.language){if(Nt(Me.language).supersetOf===Re.language)return 1;if(Nt(Re.language).supersetOf===Me.language)return-1}return 0}),[Te,Oe]=ne,Le=Te;return Le.secondBest=Oe,Le}function ea(W,ke,Pe){const ot=ke&&le[ke]||Pe;W.classList.add("hljs"),W.classList.add(`language-${ot}`)}function wn(W){let ke=null;const Pe=Ge(W);if(Se(Pe))return;if(oi("before:highlightElement",{el:W,language:Pe}),W.dataset.highlighted){console.log("Element previously highlighted. To highlight again, first unset `dataset.highlighted`.",W);return}if(W.children.length>0&&(ge.ignoreUnescapedHTML||(console.warn("One of your code blocks includes unescaped HTML. This is a potentially serious security risk."),console.warn("https://github.com/highlightjs/highlight.js/wiki/security"),console.warn("The element with unescaped HTML:"),console.warn(W)),ge.throwUnescapedHTML))throw new St("One of your code blocks includes unescaped HTML.",W.innerHTML);ke=W;const ot=ke.textContent,ne=Pe?ct(ot,{language:Pe,ignoreIllegals:!0}):Mi(ot);W.innerHTML=ne.value,W.dataset.highlighted="yes",ea(W,Pe,ne.language),W.result={language:ne.language,re:ne.relevance,relevance:ne.relevance},ne.secondBest&&(W.secondBest={language:ne.secondBest.language,relevance:ne.secondBest.relevance}),oi("after:highlightElement",{el:W,result:ne,text:ot})}function It(W){ge=Ci(ge,W)}const Bt=()=>{na(),j("10.6.0","initHighlighting() deprecated. Use highlightAll() now.")};function Zn(){na(),j("10.6.0","initHighlightingOnLoad() deprecated. Use highlightAll() now.")}let ta=!1;function na(){function W(){na()}if(document.readyState==="loading"){ta||window.addEventListener("DOMContentLoaded",W,!1),ta=!0;return}document.querySelectorAll(ge.cssSelector).forEach(wn)}function cr(W,ke){let Pe=null;try{Pe=ke(N)}catch(ot){if(Rt("Language definition for '{}' could not be registered.".replace("{}",W)),wt)Rt(ot);else throw ot;Pe=he}Pe.name||(Pe.name=W),V[W]=Pe,Pe.rawDefinition=ke.bind(null,N),Pe.aliases&&Xn(Pe.aliases,{languageName:W})}function yi(W){delete V[W];for(const ke of Object.keys(le))le[ke]===W&&delete le[ke]}function Ut(){return Object.keys(V)}function Nt(W){return W=(W||"").toLowerCase(),V[W]||V[le[W]]}function Xn(W,{languageName:ke}){typeof W=="string"&&(W=[W]),W.forEach(Pe=>{le[Pe.toLowerCase()]=ke})}function gn(W){const ke=Nt(W);return ke&&!ke.disableAutodetect}function Ri(W){W["before:highlightBlock"]&&!W["before:highlightElement"]&&(W["before:highlightElement"]=ke=>{W["before:highlightBlock"](Object.assign({block:ke.el},ke))}),W["after:highlightBlock"]&&!W["after:highlightElement"]&&(W["after:highlightElement"]=ke=>{W["after:highlightBlock"](Object.assign({block:ke.el},ke))})}function vi(W){Ri(W),De.push(W)}function Dt(W){const ke=De.indexOf(W);ke!==-1&&De.splice(ke,1)}function oi(W,ke){const Pe=W;De.forEach(function(ot){ot[Pe]&&ot[Pe](ke)})}function za(W){return j("10.7.0","highlightBlock will be removed entirely in v12.0"),j("10.7.0","Please use highlightElement now."),wn(W)}Object.assign(N,{highlight:ct,highlightAuto:Mi,highlightAll:na,highlightElement:wn,highlightBlock:za,configure:It,initHighlighting:Bt,initHighlightingOnLoad:Zn,registerLanguage:cr,unregisterLanguage:yi,listLanguages:Ut,getLanguage:Nt,registerAliases:Xn,autoDetection:gn,inherit:Ci,addPlugin:vi,removePlugin:Dt}),N.debugMode=function(){wt=!1},N.safeMode=function(){wt=!0},N.versionString=Et,N.regex={concat:C,lookahead:v,either:w,optional:x,anyNumberOfTimes:k};for(const W in Ke)typeof Ke[W]=="object"&&n(Ke[W]);return Object.assign(N,Ke),N},Ot=Oi({});return Ot.newInstance=()=>Oi({}),Nc=Ot,Ot.HighlightJS=Ot,Ot.default=Ot,Nc}var _1=E1();const x1=Os(_1),$p={},S1="hljs-";function w1(n){const a=x1.newInstance();return n&&f(n),{highlight:r,highlightAuto:o,listLanguages:s,register:f,registerAlias:u,registered:g};function r(m,p,b){const h=b||$p,v=typeof h.prefix=="string"?h.prefix:S1;if(!a.getLanguage(m))throw new Error("Unknown language: `"+m+"` is not registered");a.configure({__emitter:T1,classPrefix:v});const k=a.highlight(p,{ignoreIllegals:!0,language:m});if(k.errorRaised)throw new Error("Could not highlight with `Highlight.js`",{cause:k.errorRaised});const x=k._emitter.root,C=x.data;return C.language=k.language,C.relevance=k.relevance,x}function o(m,p){const h=(p||$p).subset||s();let v=-1,k=0,x;for(;++v<h.length;){const C=h[v];if(!a.getLanguage(C))continue;const M=r(C,m,p);M.data&&M.data.relevance!==void 0&&M.data.relevance>k&&(k=M.data.relevance,x=M)}return x||{type:"root",children:[],data:{language:void 0,relevance:k}}}function s(){return a.listLanguages()}function f(m,p){if(typeof m=="string")a.registerLanguage(m,p);else{let b;for(b in m)Object.hasOwn(m,b)&&a.registerLanguage(b,m[b])}}function u(m,p){if(typeof m=="string")a.registerAliases(typeof p=="string"?p:[...p],{languageName:m});else{let b;for(b in m)if(Object.hasOwn(m,b)){const h=m[b];a.registerAliases(typeof h=="string"?h:[...h],{languageName:b})}}}function g(m){return!!a.getLanguage(m)}}class T1{constructor(a){this.options=a,this.root={type:"root",children:[],data:{language:void 0,relevance:0}},this.stack=[this.root]}addText(a){if(a==="")return;const r=this.stack[this.stack.length-1],o=r.children[r.children.length-1];o&&o.type==="text"?o.value+=a:r.children.push({type:"text",value:a})}startScope(a){this.openNode(String(a))}endScope(){this.closeNode()}__addSublanguage(a,r){const o=this.stack[this.stack.length-1],s=a.root.children;r?o.children.push({type:"element",tagName:"span",properties:{className:[r]},children:s}):o.children.push(...s)}openNode(a){const r=this,o=a.split(".").map(function(u,g){return g?u+"_".repeat(g):r.options.classPrefix+u}),s=this.stack[this.stack.length-1],f={type:"element",tagName:"span",properties:{className:o},children:[]};s.children.push(f),this.stack.push(f)}closeNode(){this.stack.pop()}finalize(){}toHTML(){return""}}const A1={};function N1(n){const a=n||A1,r=a.aliases,o=a.detect||!1,s=a.languages||k1,f=a.plainText,u=a.prefix,g=a.subset;let m="hljs";const p=w1(s);if(r&&p.registerAlias(r),u){const b=u.indexOf("-");m=b===-1?u:u.slice(0,b)}return function(b,h){lo(b,"element",function(v,k,x){if(v.tagName!=="code"||!x||x.type!=="element"||x.tagName!=="pre")return;const C=C1(v);if(C===!1||!C&&!o||C&&f&&f.includes(C))return;Array.isArray(v.properties.className)||(v.properties.className=[]),v.properties.className.includes(m)||v.properties.className.unshift(m);const M=VE(v,{whitespace:"pre"});let w;try{w=C?p.highlight(C,M,{prefix:u}):p.highlightAuto(M,{prefix:u,subset:g})}catch(q){const H=q;if(C&&/Unknown language/.test(H.message)){h.message("Cannot highlight as `"+C+"`, it’s not registered",{ancestors:[x,v],cause:H,place:v.position,ruleId:"missing-language",source:"rehype-highlight"});return}throw H}!C&&w.data&&w.data.language&&v.properties.className.push("language-"+w.data.language),w.children.length>0&&(v.children=w.children)})}}function C1(n){const a=n.properties.className;let r=-1;if(!Array.isArray(a))return;let o;for(;++r<a.length;){const s=String(a[r]);if(s==="no-highlight"||s==="nohighlight")return!1;!o&&s.slice(0,5)==="lang-"&&(o=s.slice(5)),!o&&s.slice(0,9)==="language-"&&(o=s.slice(9))}return o}function Zp(n,a){const r=String(n);if(typeof a!="string")throw new TypeError("Expected character");let o=0,s=r.indexOf(a);for(;s!==-1;)o++,s=r.indexOf(a,s+a.length);return o}function O1(n){if(typeof n!="string")throw new TypeError("Expected a string");return n.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function M1(n,a,r){const s=Wr((r||{}).ignore||[]),f=R1(a);let u=-1;for(;++u<f.length;)rp(n,"text",g);function g(p,b){let h=-1,v;for(;++h<b.length;){const k=b[h],x=v?v.children:void 0;if(s(k,x?x.indexOf(k):void 0,v))return;v=k}if(v)return m(p,b)}function m(p,b){const h=b[b.length-1],v=f[u][0],k=f[u][1];let x=0;const M=h.children.indexOf(p);let w=!1,q=[];v.lastIndex=0;let H=v.exec(p.value);for(;H;){const Q=H.index,te={index:H.index,input:H.input,stack:[...b,p]};let L=k(...H,te);if(typeof L=="string"&&(L=L.length>0?{type:"text",value:L}:void 0),L===!1?v.lastIndex=Q+1:(x!==Q&&q.push({type:"text",value:p.value.slice(x,Q)}),Array.isArray(L)?q.push(...L):L&&q.push(L),x=Q+H[0].length,w=!0),!v.global)break;H=v.exec(p.value)}return w?(x<p.value.length&&q.push({type:"text",value:p.value.slice(x)}),h.children.splice(M,1,...q)):q=[p],M+q.length}}function R1(n){const a=[];if(!Array.isArray(n))throw new TypeError("Expected find and replace tuple or list of tuples");const r=!n[0]||Array.isArray(n[0])?n:[n];let o=-1;for(;++o<r.length;){const s=r[o];a.push([D1(s[0]),L1(s[1])])}return a}function D1(n){return typeof n=="string"?new RegExp(O1(n),"g"):n}function L1(n){return typeof n=="function"?n:function(){return n}}const Cc="phrasing",Oc=["autolink","link","image","label"];function z1(){return{transforms:[G1],enter:{literalAutolink:B1,literalAutolinkEmail:Mc,literalAutolinkHttp:Mc,literalAutolinkWww:Mc},exit:{literalAutolink:F1,literalAutolinkEmail:q1,literalAutolinkHttp:U1,literalAutolinkWww:H1}}}function I1(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:Cc,notInConstruct:Oc},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:Cc,notInConstruct:Oc},{character:":",before:"[ps]",after:"\\/",inConstruct:Cc,notInConstruct:Oc}]}}function B1(n){this.enter({type:"link",title:null,url:"",children:[]},n)}function Mc(n){this.config.enter.autolinkProtocol.call(this,n)}function U1(n){this.config.exit.autolinkProtocol.call(this,n)}function H1(n){this.config.exit.data.call(this,n);const a=this.stack[this.stack.length-1];a.type,a.url="http://"+this.sliceSerialize(n)}function q1(n){this.config.exit.autolinkEmail.call(this,n)}function F1(n){this.exit(n)}function G1(n){M1(n,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,j1],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),Y1]],{ignore:["link","linkReference"]})}function j1(n,a,r,o,s){let f="";if(!Xp(s)||(/^w/i.test(a)&&(r=a+r,a="",f="http://"),!P1(r)))return!1;const u=K1(r+o);if(!u[0])return!1;const g={type:"link",title:null,url:f+a+u[0],children:[{type:"text",value:a+u[0]}]};return u[1]?[g,{type:"text",value:u[1]}]:g}function Y1(n,a,r,o){return!Xp(o,!0)||/[-\d_]$/.test(r)?!1:{type:"link",title:null,url:"mailto:"+a+"@"+r,children:[{type:"text",value:a+"@"+r}]}}function P1(n){const a=n.split(".");return!(a.length<2||a[a.length-1]&&(/_/.test(a[a.length-1])||!/[a-zA-Z\d]/.test(a[a.length-1]))||a[a.length-2]&&(/_/.test(a[a.length-2])||!/[a-zA-Z\d]/.test(a[a.length-2])))}function K1(n){const a=/[!"&'),.:;<>?\]}]+$/.exec(n);if(!a)return[n,void 0];n=n.slice(0,a.index);let r=a[0],o=r.indexOf(")");const s=Zp(n,"(");let f=Zp(n,")");for(;o!==-1&&s>f;)n+=r.slice(0,o+1),r=r.slice(o+1),o=r.indexOf(")"),f++;return[n,r]}function Xp(n,a){const r=n.input.charCodeAt(n.index-1);return(n.index===0||Oa(r)||Ql(r))&&(!a||r!==47)}Qp.peek=tx;function V1(){this.buffer()}function $1(n){this.enter({type:"footnoteReference",identifier:"",label:""},n)}function Z1(){this.buffer()}function X1(n){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},n)}function Q1(n){const a=this.resume(),r=this.stack[this.stack.length-1];r.type,r.identifier=li(this.sliceSerialize(n)).toLowerCase(),r.label=a}function J1(n){this.exit(n)}function W1(n){const a=this.resume(),r=this.stack[this.stack.length-1];r.type,r.identifier=li(this.sliceSerialize(n)).toLowerCase(),r.label=a}function ex(n){this.exit(n)}function tx(){return"["}function Qp(n,a,r,o){const s=r.createTracker(o);let f=s.move("[^");const u=r.enter("footnoteReference"),g=r.enter("reference");return f+=s.move(r.safe(r.associationId(n),{after:"]",before:f})),g(),u(),f+=s.move("]"),f}function nx(){return{enter:{gfmFootnoteCallString:V1,gfmFootnoteCall:$1,gfmFootnoteDefinitionLabelString:Z1,gfmFootnoteDefinition:X1},exit:{gfmFootnoteCallString:Q1,gfmFootnoteCall:J1,gfmFootnoteDefinitionLabelString:W1,gfmFootnoteDefinition:ex}}}function ix(n){let a=!1;return n&&n.firstLineBlank&&(a=!0),{handlers:{footnoteDefinition:r,footnoteReference:Qp},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function r(o,s,f,u){const g=f.createTracker(u);let m=g.move("[^");const p=f.enter("footnoteDefinition"),b=f.enter("label");return m+=g.move(f.safe(f.associationId(o),{before:m,after:"]"})),b(),m+=g.move("]:"),o.children&&o.children.length>0&&(g.shift(4),m+=g.move((a?`
29
- `:" ")+f.indentLines(f.containerFlow(o,g.current()),a?Jp:ax))),p(),m}}function ax(n,a,r){return a===0?n:Jp(n,a,r)}function Jp(n,a,r){return(r?"":" ")+n}const rx=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];Wp.peek=ux;function lx(){return{canContainEols:["delete"],enter:{strikethrough:sx},exit:{strikethrough:cx}}}function ox(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:rx}],handlers:{delete:Wp}}}function sx(n){this.enter({type:"delete",children:[]},n)}function cx(n){this.exit(n)}function Wp(n,a,r,o){const s=r.createTracker(o),f=r.enter("strikethrough");let u=s.move("~~");return u+=r.containerPhrasing(n,{...s.current(),before:u,after:"~"}),u+=s.move("~~"),f(),u}function ux(){return"~"}function fx(n){return n.length}function dx(n,a){const r=a||{},o=(r.align||[]).concat(),s=r.stringLength||fx,f=[],u=[],g=[],m=[];let p=0,b=-1;for(;++b<n.length;){const C=[],M=[];let w=-1;for(n[b].length>p&&(p=n[b].length);++w<n[b].length;){const q=px(n[b][w]);if(r.alignDelimiters!==!1){const H=s(q);M[w]=H,(m[w]===void 0||H>m[w])&&(m[w]=H)}C.push(q)}u[b]=C,g[b]=M}let h=-1;if(typeof o=="object"&&"length"in o)for(;++h<p;)f[h]=eg(o[h]);else{const C=eg(o);for(;++h<p;)f[h]=C}h=-1;const v=[],k=[];for(;++h<p;){const C=f[h];let M="",w="";C===99?(M=":",w=":"):C===108?M=":":C===114&&(w=":");let q=r.alignDelimiters===!1?1:Math.max(1,m[h]-M.length-w.length);const H=M+"-".repeat(q)+w;r.alignDelimiters!==!1&&(q=M.length+q+w.length,q>m[h]&&(m[h]=q),k[h]=q),v[h]=H}u.splice(1,0,v),g.splice(1,0,k),b=-1;const x=[];for(;++b<u.length;){const C=u[b],M=g[b];h=-1;const w=[];for(;++h<p;){const q=C[h]||"";let H="",Q="";if(r.alignDelimiters!==!1){const te=m[h]-(M[h]||0),L=f[h];L===114?H=" ".repeat(te):L===99?te%2?(H=" ".repeat(te/2+.5),Q=" ".repeat(te/2-.5)):(H=" ".repeat(te/2),Q=H):Q=" ".repeat(te)}r.delimiterStart!==!1&&!h&&w.push("|"),r.padding!==!1&&!(r.alignDelimiters===!1&&q==="")&&(r.delimiterStart!==!1||h)&&w.push(" "),r.alignDelimiters!==!1&&w.push(H),w.push(q),r.alignDelimiters!==!1&&w.push(Q),r.padding!==!1&&w.push(" "),(r.delimiterEnd!==!1||h!==p-1)&&w.push("|")}x.push(r.delimiterEnd===!1?w.join("").replace(/ +$/,""):w.join(""))}return x.join(`
30
- `)}function px(n){return n==null?"":String(n)}function eg(n){const a=typeof n=="string"?n.codePointAt(0):0;return a===67||a===99?99:a===76||a===108?108:a===82||a===114?114:0}function gx(n,a,r,o){const s=r.enter("blockquote"),f=r.createTracker(o);f.move("> "),f.shift(2);const u=r.indentLines(r.containerFlow(n,f.current()),mx);return s(),u}function mx(n,a,r){return">"+(r?"":" ")+n}function hx(n,a){return tg(n,a.inConstruct,!0)&&!tg(n,a.notInConstruct,!1)}function tg(n,a,r){if(typeof a=="string"&&(a=[a]),!a||a.length===0)return r;let o=-1;for(;++o<a.length;)if(n.includes(a[o]))return!0;return!1}function ng(n,a,r,o){let s=-1;for(;++s<r.unsafe.length;)if(r.unsafe[s].character===`
31
- `&&hx(r.stack,r.unsafe[s]))return/[ \t]/.test(o.before)?"":" ";return`\\
32
- `}function bx(n,a){const r=String(n);let o=r.indexOf(a),s=o,f=0,u=0;if(typeof a!="string")throw new TypeError("Expected substring");for(;o!==-1;)o===s?++f>u&&(u=f):f=1,s=o+a.length,o=r.indexOf(a,s);return u}function yx(n,a){return!!(a.options.fences===!1&&n.value&&!n.lang&&/[^ \r\n]/.test(n.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(n.value))}function vx(n){const a=n.options.fence||"`";if(a!=="`"&&a!=="~")throw new Error("Cannot serialize code with `"+a+"` for `options.fence`, expected `` ` `` or `~`");return a}function kx(n,a,r,o){const s=vx(r),f=n.value||"",u=s==="`"?"GraveAccent":"Tilde";if(yx(n,r)){const h=r.enter("codeIndented"),v=r.indentLines(f,Ex);return h(),v}const g=r.createTracker(o),m=s.repeat(Math.max(bx(f,s)+1,3)),p=r.enter("codeFenced");let b=g.move(m);if(n.lang){const h=r.enter(`codeFencedLang${u}`);b+=g.move(r.safe(n.lang,{before:b,after:" ",encode:["`"],...g.current()})),h()}if(n.lang&&n.meta){const h=r.enter(`codeFencedMeta${u}`);b+=g.move(" "),b+=g.move(r.safe(n.meta,{before:b,after:`
33
- `,encode:["`"],...g.current()})),h()}return b+=g.move(`
34
- `),f&&(b+=g.move(f+`
35
- `)),b+=g.move(m),p(),b}function Ex(n,a,r){return(r?"":" ")+n}function Rc(n){const a=n.options.quote||'"';if(a!=='"'&&a!=="'")throw new Error("Cannot serialize title with `"+a+"` for `options.quote`, expected `\"`, or `'`");return a}function _x(n,a,r,o){const s=Rc(r),f=s==='"'?"Quote":"Apostrophe",u=r.enter("definition");let g=r.enter("label");const m=r.createTracker(o);let p=m.move("[");return p+=m.move(r.safe(r.associationId(n),{before:p,after:"]",...m.current()})),p+=m.move("]: "),g(),!n.url||/[\0- \u007F]/.test(n.url)?(g=r.enter("destinationLiteral"),p+=m.move("<"),p+=m.move(r.safe(n.url,{before:p,after:">",...m.current()})),p+=m.move(">")):(g=r.enter("destinationRaw"),p+=m.move(r.safe(n.url,{before:p,after:n.title?" ":`
36
- `,...m.current()}))),g(),n.title&&(g=r.enter(`title${f}`),p+=m.move(" "+s),p+=m.move(r.safe(n.title,{before:p,after:s,...m.current()})),p+=m.move(s),g()),u(),p}function xx(n){const a=n.options.emphasis||"*";if(a!=="*"&&a!=="_")throw new Error("Cannot serialize emphasis with `"+a+"` for `options.emphasis`, expected `*`, or `_`");return a}function nl(n){return"&#x"+n.toString(16).toUpperCase()+";"}function ho(n,a,r){const o=nr(n),s=nr(a);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}}ig.peek=Sx;function ig(n,a,r,o){const s=xx(r),f=r.enter("emphasis"),u=r.createTracker(o),g=u.move(s);let m=u.move(r.containerPhrasing(n,{after:s,before:g,...u.current()}));const p=m.charCodeAt(0),b=ho(o.before.charCodeAt(o.before.length-1),p,s);b.inside&&(m=nl(p)+m.slice(1));const h=m.charCodeAt(m.length-1),v=ho(o.after.charCodeAt(0),h,s);v.inside&&(m=m.slice(0,-1)+nl(h));const k=u.move(s);return f(),r.attentionEncodeSurroundingInfo={after:v.outside,before:b.outside},g+m+k}function Sx(n,a,r){return r.options.emphasis||"*"}function wx(n,a){let r=!1;return lo(n,function(o){if("value"in o&&/\r?\n|\r/.test(o.value)||o.type==="break")return r=!0,uc}),!!((!n.depth||n.depth<3)&&Ws(n)&&(a.options.setext||r))}function Tx(n,a,r,o){const s=Math.max(Math.min(6,n.depth||1),1),f=r.createTracker(o);if(wx(n,r)){const b=r.enter("headingSetext"),h=r.enter("phrasing"),v=r.containerPhrasing(n,{...f.current(),before:`
1
+ var Akilio=(function(Ir){"use strict";var bN=globalThis.process||{env:{NODE_ENV:"production"}},yN=globalThis;function hc(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var gc={exports:{}},To={};var wf;function uk(){if(wf)return To;wf=1;var t=Symbol.for("react.transitional.element"),i=Symbol.for("react.fragment");function r(l,s,d){var c=null;if(d!==void 0&&(c=""+d),s.key!==void 0&&(c=""+s.key),"key"in s){d={};for(var p in s)p!=="key"&&(d[p]=s[p])}else d=s;return s=d.ref,{$$typeof:t,type:l,key:c,ref:s!==void 0?s:null,props:d}}return To.Fragment=i,To.jsx=r,To.jsxs=r,To}var Sf;function dk(){return Sf||(Sf=1,gc.exports=uk()),gc.exports}var v=dk(),bc={exports:{}},Ao={},yc={exports:{}},kc={};var Tf;function fk(){return Tf||(Tf=1,(function(t){function i(Z,$){var Q=Z.length;Z.push($);e:for(;0<Q;){var ye=Q-1>>>1,N=Z[ye];if(0<s(N,$))Z[ye]=$,Z[Q]=N,Q=ye;else break e}}function r(Z){return Z.length===0?null:Z[0]}function l(Z){if(Z.length===0)return null;var $=Z[0],Q=Z.pop();if(Q!==$){Z[0]=Q;e:for(var ye=0,N=Z.length,ze=N>>>1;ye<ze;){var C=2*(ye+1)-1,E=Z[C],ie=C+1,ge=Z[ie];if(0>s(E,Q))ie<N&&0>s(ge,E)?(Z[ye]=ge,Z[ie]=Q,ye=ie):(Z[ye]=E,Z[C]=Q,ye=C);else if(ie<N&&0>s(ge,Q))Z[ye]=ge,Z[ie]=Q,ye=ie;else break e}}return $}function s(Z,$){var Q=Z.sortIndex-$.sortIndex;return Q!==0?Q:Z.id-$.id}if(t.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var d=performance;t.unstable_now=function(){return d.now()}}else{var c=Date,p=c.now();t.unstable_now=function(){return c.now()-p}}var h=[],m=[],g=1,b=null,k=3,x=!1,w=!1,T=!1,A=!1,S=typeof setTimeout=="function"?setTimeout:null,L=typeof clearTimeout=="function"?clearTimeout:null,I=typeof setImmediate<"u"?setImmediate:null;function F(Z){for(var $=r(m);$!==null;){if($.callback===null)l(m);else if($.startTime<=Z)l(m),$.sortIndex=$.expirationTime,i(h,$);else break;$=r(m)}}function Y(Z){if(T=!1,F(Z),!w)if(r(h)!==null)w=!0,R||(R=!0,re());else{var $=r(m);$!==null&&ne(Y,$.startTime-Z)}}var R=!1,le=-1,ae=5,he=-1;function B(){return A?!0:!(t.unstable_now()-he<ae)}function ue(){if(A=!1,R){var Z=t.unstable_now();he=Z;var $=!0;try{e:{w=!1,T&&(T=!1,L(le),le=-1),x=!0;var Q=k;try{t:{for(F(Z),b=r(h);b!==null&&!(b.expirationTime>Z&&B());){var ye=b.callback;if(typeof ye=="function"){b.callback=null,k=b.priorityLevel;var N=ye(b.expirationTime<=Z);if(Z=t.unstable_now(),typeof N=="function"){b.callback=N,F(Z),$=!0;break t}b===r(h)&&l(h),F(Z)}else l(h);b=r(h)}if(b!==null)$=!0;else{var ze=r(m);ze!==null&&ne(Y,ze.startTime-Z),$=!1}}break e}finally{b=null,k=Q,x=!1}$=void 0}}finally{$?re():R=!1}}}var re;if(typeof I=="function")re=function(){I(ue)};else if(typeof MessageChannel<"u"){var Ae=new MessageChannel,de=Ae.port2;Ae.port1.onmessage=ue,re=function(){de.postMessage(null)}}else re=function(){S(ue,0)};function ne(Z,$){le=S(function(){Z(t.unstable_now())},$)}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(Z){Z.callback=null},t.unstable_forceFrameRate=function(Z){0>Z||125<Z?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):ae=0<Z?Math.floor(1e3/Z):5},t.unstable_getCurrentPriorityLevel=function(){return k},t.unstable_next=function(Z){switch(k){case 1:case 2:case 3:var $=3;break;default:$=k}var Q=k;k=$;try{return Z()}finally{k=Q}},t.unstable_requestPaint=function(){A=!0},t.unstable_runWithPriority=function(Z,$){switch(Z){case 1:case 2:case 3:case 4:case 5:break;default:Z=3}var Q=k;k=Z;try{return $()}finally{k=Q}},t.unstable_scheduleCallback=function(Z,$,Q){var ye=t.unstable_now();switch(typeof Q=="object"&&Q!==null?(Q=Q.delay,Q=typeof Q=="number"&&0<Q?ye+Q:ye):Q=ye,Z){case 1:var N=-1;break;case 2:N=250;break;case 5:N=1073741823;break;case 4:N=1e4;break;default:N=5e3}return N=Q+N,Z={id:g++,callback:$,priorityLevel:Z,startTime:Q,expirationTime:N,sortIndex:-1},Q>ye?(Z.sortIndex=Q,i(m,Z),r(h)===null&&Z===r(m)&&(T?(L(le),le=-1):T=!0,ne(Y,Q-ye))):(Z.sortIndex=N,i(h,Z),w||x||(w=!0,R||(R=!0,re()))),Z},t.unstable_shouldYield=B,t.unstable_wrapCallback=function(Z){var $=k;return function(){var Q=k;k=$;try{return Z.apply(this,arguments)}finally{k=Q}}}})(kc)),kc}var Af;function pk(){return Af||(Af=1,yc.exports=fk()),yc.exports}var xc={exports:{}},He={},Nf;function mk(){if(Nf)return He;Nf=1;var t={env:{NODE_ENV:"production"}};var i=Symbol.for("react.transitional.element"),r=Symbol.for("react.portal"),l=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),d=Symbol.for("react.profiler"),c=Symbol.for("react.consumer"),p=Symbol.for("react.context"),h=Symbol.for("react.forward_ref"),m=Symbol.for("react.suspense"),g=Symbol.for("react.memo"),b=Symbol.for("react.lazy"),k=Symbol.for("react.activity"),x=Symbol.iterator;function w(C){return C===null||typeof C!="object"?null:(C=x&&C[x]||C["@@iterator"],typeof C=="function"?C:null)}var T={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},A=Object.assign,S={};function L(C,E,ie){this.props=C,this.context=E,this.refs=S,this.updater=ie||T}L.prototype.isReactComponent={},L.prototype.setState=function(C,E){if(typeof C!="object"&&typeof C!="function"&&C!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,C,E,"setState")},L.prototype.forceUpdate=function(C){this.updater.enqueueForceUpdate(this,C,"forceUpdate")};function I(){}I.prototype=L.prototype;function F(C,E,ie){this.props=C,this.context=E,this.refs=S,this.updater=ie||T}var Y=F.prototype=new I;Y.constructor=F,A(Y,L.prototype),Y.isPureReactComponent=!0;var R=Array.isArray;function le(){}var ae={H:null,A:null,T:null,S:null},he=Object.prototype.hasOwnProperty;function B(C,E,ie){var ge=ie.ref;return{$$typeof:i,type:C,key:E,ref:ge!==void 0?ge:null,props:ie}}function ue(C,E){return B(C.type,E,C.props)}function re(C){return typeof C=="object"&&C!==null&&C.$$typeof===i}function Ae(C){var E={"=":"=0",":":"=2"};return"$"+C.replace(/[=:]/g,function(ie){return E[ie]})}var de=/\/+/g;function ne(C,E){return typeof C=="object"&&C!==null&&C.key!=null?Ae(""+C.key):E.toString(36)}function Z(C){switch(C.status){case"fulfilled":return C.value;case"rejected":throw C.reason;default:switch(typeof C.status=="string"?C.then(le,le):(C.status="pending",C.then(function(E){C.status==="pending"&&(C.status="fulfilled",C.value=E)},function(E){C.status==="pending"&&(C.status="rejected",C.reason=E)})),C.status){case"fulfilled":return C.value;case"rejected":throw C.reason}}throw C}function $(C,E,ie,ge,ve){var W=typeof C;(W==="undefined"||W==="boolean")&&(C=null);var be=!1;if(C===null)be=!0;else switch(W){case"bigint":case"string":case"number":be=!0;break;case"object":switch(C.$$typeof){case i:case r:be=!0;break;case b:return be=C._init,$(be(C._payload),E,ie,ge,ve)}}if(be)return ve=ve(C),be=ge===""?"."+ne(C,0):ge,R(ve)?(ie="",be!=null&&(ie=be.replace(de,"$&/")+"/"),$(ve,E,ie,"",function(nn){return nn})):ve!=null&&(re(ve)&&(ve=ue(ve,ie+(ve.key==null||C&&C.key===ve.key?"":(""+ve.key).replace(de,"$&/")+"/")+be)),E.push(ve)),1;be=0;var qe=ge===""?".":ge+":";if(R(C))for(var Fe=0;Fe<C.length;Fe++)ge=C[Fe],W=qe+ne(ge,Fe),be+=$(ge,E,ie,W,ve);else if(Fe=w(C),typeof Fe=="function")for(C=Fe.call(C),Fe=0;!(ge=C.next()).done;)ge=ge.value,W=qe+ne(ge,Fe++),be+=$(ge,E,ie,W,ve);else if(W==="object"){if(typeof C.then=="function")return $(Z(C),E,ie,ge,ve);throw E=String(C),Error("Objects are not valid as a React child (found: "+(E==="[object Object]"?"object with keys {"+Object.keys(C).join(", ")+"}":E)+"). If you meant to render a collection of children, use an array instead.")}return be}function Q(C,E,ie){if(C==null)return C;var ge=[],ve=0;return $(C,ge,"","",function(W){return E.call(ie,W,ve++)}),ge}function ye(C){if(C._status===-1){var E=C._result;E=E(),E.then(function(ie){(C._status===0||C._status===-1)&&(C._status=1,C._result=ie)},function(ie){(C._status===0||C._status===-1)&&(C._status=2,C._result=ie)}),C._status===-1&&(C._status=0,C._result=E)}if(C._status===1)return C._result.default;throw C._result}var N=typeof reportError=="function"?reportError:function(C){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var E=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof C=="object"&&C!==null&&typeof C.message=="string"?String(C.message):String(C),error:C});if(!window.dispatchEvent(E))return}else if(typeof t=="object"&&typeof t.emit=="function"){t.emit("uncaughtException",C);return}console.error(C)},ze={map:Q,forEach:function(C,E,ie){Q(C,function(){E.apply(this,arguments)},ie)},count:function(C){var E=0;return Q(C,function(){E++}),E},toArray:function(C){return Q(C,function(E){return E})||[]},only:function(C){if(!re(C))throw Error("React.Children.only expected to receive a single React element child.");return C}};return He.Activity=k,He.Children=ze,He.Component=L,He.Fragment=l,He.Profiler=d,He.PureComponent=F,He.StrictMode=s,He.Suspense=m,He.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=ae,He.__COMPILER_RUNTIME={__proto__:null,c:function(C){return ae.H.useMemoCache(C)}},He.cache=function(C){return function(){return C.apply(null,arguments)}},He.cacheSignal=function(){return null},He.cloneElement=function(C,E,ie){if(C==null)throw Error("The argument must be a React element, but you passed "+C+".");var ge=A({},C.props),ve=C.key;if(E!=null)for(W in E.key!==void 0&&(ve=""+E.key),E)!he.call(E,W)||W==="key"||W==="__self"||W==="__source"||W==="ref"&&E.ref===void 0||(ge[W]=E[W]);var W=arguments.length-2;if(W===1)ge.children=ie;else if(1<W){for(var be=Array(W),qe=0;qe<W;qe++)be[qe]=arguments[qe+2];ge.children=be}return B(C.type,ve,ge)},He.createContext=function(C){return C={$$typeof:p,_currentValue:C,_currentValue2:C,_threadCount:0,Provider:null,Consumer:null},C.Provider=C,C.Consumer={$$typeof:c,_context:C},C},He.createElement=function(C,E,ie){var ge,ve={},W=null;if(E!=null)for(ge in E.key!==void 0&&(W=""+E.key),E)he.call(E,ge)&&ge!=="key"&&ge!=="__self"&&ge!=="__source"&&(ve[ge]=E[ge]);var be=arguments.length-2;if(be===1)ve.children=ie;else if(1<be){for(var qe=Array(be),Fe=0;Fe<be;Fe++)qe[Fe]=arguments[Fe+2];ve.children=qe}if(C&&C.defaultProps)for(ge in be=C.defaultProps,be)ve[ge]===void 0&&(ve[ge]=be[ge]);return B(C,W,ve)},He.createRef=function(){return{current:null}},He.forwardRef=function(C){return{$$typeof:h,render:C}},He.isValidElement=re,He.lazy=function(C){return{$$typeof:b,_payload:{_status:-1,_result:C},_init:ye}},He.memo=function(C,E){return{$$typeof:g,type:C,compare:E===void 0?null:E}},He.startTransition=function(C){var E=ae.T,ie={};ae.T=ie;try{var ge=C(),ve=ae.S;ve!==null&&ve(ie,ge),typeof ge=="object"&&ge!==null&&typeof ge.then=="function"&&ge.then(le,N)}catch(W){N(W)}finally{E!==null&&ie.types!==null&&(E.types=ie.types),ae.T=E}},He.unstable_useCacheRefresh=function(){return ae.H.useCacheRefresh()},He.use=function(C){return ae.H.use(C)},He.useActionState=function(C,E,ie){return ae.H.useActionState(C,E,ie)},He.useCallback=function(C,E){return ae.H.useCallback(C,E)},He.useContext=function(C){return ae.H.useContext(C)},He.useDebugValue=function(){},He.useDeferredValue=function(C,E){return ae.H.useDeferredValue(C,E)},He.useEffect=function(C,E){return ae.H.useEffect(C,E)},He.useEffectEvent=function(C){return ae.H.useEffectEvent(C)},He.useId=function(){return ae.H.useId()},He.useImperativeHandle=function(C,E,ie){return ae.H.useImperativeHandle(C,E,ie)},He.useInsertionEffect=function(C,E){return ae.H.useInsertionEffect(C,E)},He.useLayoutEffect=function(C,E){return ae.H.useLayoutEffect(C,E)},He.useMemo=function(C,E){return ae.H.useMemo(C,E)},He.useOptimistic=function(C,E){return ae.H.useOptimistic(C,E)},He.useReducer=function(C,E,ie){return ae.H.useReducer(C,E,ie)},He.useRef=function(C){return ae.H.useRef(C)},He.useState=function(C){return ae.H.useState(C)},He.useSyncExternalStore=function(C,E,ie){return ae.H.useSyncExternalStore(C,E,ie)},He.useTransition=function(){return ae.H.useTransition()},He.version="19.2.7",He}var Cf;function vc(){return Cf||(Cf=1,xc.exports=mk()),xc.exports}var _c={exports:{}},wn={};var Mf;function hk(){if(Mf)return wn;Mf=1;var t=vc();function i(h){var m="https://react.dev/errors/"+h;if(1<arguments.length){m+="?args[]="+encodeURIComponent(arguments[1]);for(var g=2;g<arguments.length;g++)m+="&args[]="+encodeURIComponent(arguments[g])}return"Minified React error #"+h+"; visit "+m+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function r(){}var l={d:{f:r,r:function(){throw Error(i(522))},D:r,C:r,L:r,m:r,X:r,S:r,M:r},p:0,findDOMNode:null},s=Symbol.for("react.portal");function d(h,m,g){var b=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:s,key:b==null?null:""+b,children:h,containerInfo:m,implementation:g}}var c=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function p(h,m){if(h==="font")return"";if(typeof m=="string")return m==="use-credentials"?m:""}return wn.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=l,wn.createPortal=function(h,m){var g=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!m||m.nodeType!==1&&m.nodeType!==9&&m.nodeType!==11)throw Error(i(299));return d(h,m,null,g)},wn.flushSync=function(h){var m=c.T,g=l.p;try{if(c.T=null,l.p=2,h)return h()}finally{c.T=m,l.p=g,l.d.f()}},wn.preconnect=function(h,m){typeof h=="string"&&(m?(m=m.crossOrigin,m=typeof m=="string"?m==="use-credentials"?m:"":void 0):m=null,l.d.C(h,m))},wn.prefetchDNS=function(h){typeof h=="string"&&l.d.D(h)},wn.preinit=function(h,m){if(typeof h=="string"&&m&&typeof m.as=="string"){var g=m.as,b=p(g,m.crossOrigin),k=typeof m.integrity=="string"?m.integrity:void 0,x=typeof m.fetchPriority=="string"?m.fetchPriority:void 0;g==="style"?l.d.S(h,typeof m.precedence=="string"?m.precedence:void 0,{crossOrigin:b,integrity:k,fetchPriority:x}):g==="script"&&l.d.X(h,{crossOrigin:b,integrity:k,fetchPriority:x,nonce:typeof m.nonce=="string"?m.nonce:void 0})}},wn.preinitModule=function(h,m){if(typeof h=="string")if(typeof m=="object"&&m!==null){if(m.as==null||m.as==="script"){var g=p(m.as,m.crossOrigin);l.d.M(h,{crossOrigin:g,integrity:typeof m.integrity=="string"?m.integrity:void 0,nonce:typeof m.nonce=="string"?m.nonce:void 0})}}else m==null&&l.d.M(h)},wn.preload=function(h,m){if(typeof h=="string"&&typeof m=="object"&&m!==null&&typeof m.as=="string"){var g=m.as,b=p(g,m.crossOrigin);l.d.L(h,g,{crossOrigin:b,integrity:typeof m.integrity=="string"?m.integrity:void 0,nonce:typeof m.nonce=="string"?m.nonce:void 0,type:typeof m.type=="string"?m.type:void 0,fetchPriority:typeof m.fetchPriority=="string"?m.fetchPriority:void 0,referrerPolicy:typeof m.referrerPolicy=="string"?m.referrerPolicy:void 0,imageSrcSet:typeof m.imageSrcSet=="string"?m.imageSrcSet:void 0,imageSizes:typeof m.imageSizes=="string"?m.imageSizes:void 0,media:typeof m.media=="string"?m.media:void 0})}},wn.preloadModule=function(h,m){if(typeof h=="string")if(m){var g=p(m.as,m.crossOrigin);l.d.m(h,{as:typeof m.as=="string"&&m.as!=="script"?m.as:void 0,crossOrigin:g,integrity:typeof m.integrity=="string"?m.integrity:void 0})}else l.d.m(h)},wn.requestFormReset=function(h){l.d.r(h)},wn.unstable_batchedUpdates=function(h,m){return h(m)},wn.useFormState=function(h,m,g){return c.H.useFormState(h,m,g)},wn.useFormStatus=function(){return c.H.useHostTransitionStatus()},wn.version="19.2.7",wn}var Of;function Rf(){if(Of)return _c.exports;Of=1;function t(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(i){console.error(i)}}return t(),_c.exports=hk(),_c.exports}var Df;function gk(){if(Df)return Ao;Df=1;var t={env:{NODE_ENV:"production"}};var i=pk(),r=vc(),l=Rf();function s(e){var n="https://react.dev/errors/"+e;if(1<arguments.length){n+="?args[]="+encodeURIComponent(arguments[1]);for(var a=2;a<arguments.length;a++)n+="&args[]="+encodeURIComponent(arguments[a])}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."}function d(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function c(e){var n=e,a=e;if(e.alternate)for(;n.return;)n=n.return;else{e=n;do n=e,(n.flags&4098)!==0&&(a=n.return),e=n.return;while(e)}return n.tag===3?a:null}function p(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 h(e){if(e.tag===31){var n=e.memoizedState;if(n===null&&(e=e.alternate,e!==null&&(n=e.memoizedState)),n!==null)return n.dehydrated}return null}function m(e){if(c(e)!==e)throw Error(s(188))}function g(e){var n=e.alternate;if(!n){if(n=c(e),n===null)throw Error(s(188));return n!==e?null:e}for(var a=e,o=n;;){var u=a.return;if(u===null)break;var f=u.alternate;if(f===null){if(o=u.return,o!==null){a=o;continue}break}if(u.child===f.child){for(f=u.child;f;){if(f===a)return m(u),e;if(f===o)return m(u),n;f=f.sibling}throw Error(s(188))}if(a.return!==o.return)a=u,o=f;else{for(var y=!1,_=u.child;_;){if(_===a){y=!0,a=u,o=f;break}if(_===o){y=!0,o=u,a=f;break}_=_.sibling}if(!y){for(_=f.child;_;){if(_===a){y=!0,a=f,o=u;break}if(_===o){y=!0,o=f,a=u;break}_=_.sibling}if(!y)throw Error(s(189))}}if(a.alternate!==o)throw Error(s(190))}if(a.tag!==3)throw Error(s(188));return a.stateNode.current===a?e:n}function b(e){var n=e.tag;if(n===5||n===26||n===27||n===6)return e;for(e=e.child;e!==null;){if(n=b(e),n!==null)return n;e=e.sibling}return null}var k=Object.assign,x=Symbol.for("react.element"),w=Symbol.for("react.transitional.element"),T=Symbol.for("react.portal"),A=Symbol.for("react.fragment"),S=Symbol.for("react.strict_mode"),L=Symbol.for("react.profiler"),I=Symbol.for("react.consumer"),F=Symbol.for("react.context"),Y=Symbol.for("react.forward_ref"),R=Symbol.for("react.suspense"),le=Symbol.for("react.suspense_list"),ae=Symbol.for("react.memo"),he=Symbol.for("react.lazy"),B=Symbol.for("react.activity"),ue=Symbol.for("react.memo_cache_sentinel"),re=Symbol.iterator;function Ae(e){return e===null||typeof e!="object"?null:(e=re&&e[re]||e["@@iterator"],typeof e=="function"?e:null)}var de=Symbol.for("react.client.reference");function ne(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===de?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case A:return"Fragment";case L:return"Profiler";case S:return"StrictMode";case R:return"Suspense";case le:return"SuspenseList";case B:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case T:return"Portal";case F:return e.displayName||"Context";case I:return(e._context.displayName||"Context")+".Consumer";case Y:var n=e.render;return e=e.displayName,e||(e=n.displayName||n.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case ae:return n=e.displayName||null,n!==null?n:ne(e.type)||"Memo";case he:n=e._payload,e=e._init;try{return ne(e(n))}catch{}}return null}var Z=Array.isArray,$=r.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Q=l.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ye={pending:!1,data:null,method:null,action:null},N=[],ze=-1;function C(e){return{current:e}}function E(e){0>ze||(e.current=N[ze],N[ze]=null,ze--)}function ie(e,n){ze++,N[ze]=e.current,e.current=n}var ge=C(null),ve=C(null),W=C(null),be=C(null);function qe(e,n){switch(ie(W,n),ie(ve,e),ie(ge,null),n.nodeType){case 9:case 11:e=(e=n.documentElement)&&(e=e.namespaceURI)?Dy(e):0;break;default:if(e=n.tagName,n=n.namespaceURI)n=Dy(n),e=zy(n,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}E(ge),ie(ge,e)}function Fe(){E(ge),E(ve),E(W)}function nn(e){e.memoizedState!==null&&ie(be,e);var n=ge.current,a=zy(n,e.type);n!==a&&(ie(ve,e),ie(ge,a))}function At(e){ve.current===e&&(E(ge),E(ve)),be.current===e&&(E(be),Nl._currentValue=ye)}var An,qt;function an(e){if(An===void 0)try{throw Error()}catch(a){var n=a.stack.trim().match(/\n( *(at )?)/);An=n&&n[1]||"",qt=-1<a.stack.indexOf(`
2
+ at`)?" (<anonymous>)":-1<a.stack.indexOf("@")?"@unknown:0:0":""}return`
3
+ `+An+e+qt}var Ve=!1;function Qt(e,n){if(!e||Ve)return"";Ve=!0;var a=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var o={DetermineComponentFrameRoot:function(){try{if(n){var te=function(){throw Error()};if(Object.defineProperty(te.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(te,[])}catch(P){var H=P}Reflect.construct(e,[],te)}else{try{te.call()}catch(P){H=P}e.call(te.prototype)}}else{try{throw Error()}catch(P){H=P}(te=e())&&typeof te.catch=="function"&&te.catch(function(){})}}catch(P){if(P&&H&&typeof P.stack=="string")return[P.stack,H.stack]}return[null,null]}};o.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var u=Object.getOwnPropertyDescriptor(o.DetermineComponentFrameRoot,"name");u&&u.configurable&&Object.defineProperty(o.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var f=o.DetermineComponentFrameRoot(),y=f[0],_=f[1];if(y&&_){var M=y.split(`
4
+ `),j=_.split(`
5
+ `);for(u=o=0;o<M.length&&!M[o].includes("DetermineComponentFrameRoot");)o++;for(;u<j.length&&!j[u].includes("DetermineComponentFrameRoot");)u++;if(o===M.length||u===j.length)for(o=M.length-1,u=j.length-1;1<=o&&0<=u&&M[o]!==j[u];)u--;for(;1<=o&&0<=u;o--,u--)if(M[o]!==j[u]){if(o!==1||u!==1)do if(o--,u--,0>u||M[o]!==j[u]){var X=`
6
+ `+M[o].replace(" at new "," at ");return e.displayName&&X.includes("<anonymous>")&&(X=X.replace("<anonymous>",e.displayName)),X}while(1<=o&&0<=u);break}}}finally{Ve=!1,Error.prepareStackTrace=a}return(a=e?e.displayName||e.name:"")?an(a):""}function Et(e,n){switch(e.tag){case 26:case 27:case 5:return an(e.type);case 16:return an("Lazy");case 13:return e.child!==n&&n!==null?an("Suspense Fallback"):an("Suspense");case 19:return an("SuspenseList");case 0:case 15:return Qt(e.type,!1);case 11:return Qt(e.type.render,!1);case 1:return Qt(e.type,!0);case 31:return an("Activity");default:return""}}function Ln(e){try{var n="",a=null;do n+=Et(e,a),a=e,e=e.return;while(e);return n}catch(o){return`
7
+ Error generating stack: `+o.message+`
8
+ `+o.stack}}var Fn=Object.prototype.hasOwnProperty,Ft=i.unstable_scheduleCallback,Fi=i.unstable_cancelCallback,ur=i.unstable_shouldYield,ei=i.unstable_requestPaint,Yt=i.unstable_now,U=i.unstable_getCurrentPriorityLevel,ce=i.unstable_ImmediatePriority,xe=i.unstable_UserBlockingPriority,Pe=i.unstable_NormalPriority,ot=i.unstable_LowPriority,rn=i.unstable_IdlePriority,dn=i.log,Nn=i.unstable_setDisableYieldValue,Cn=null,jt=null;function Tt(e){if(typeof dn=="function"&&Nn(e),jt&&typeof jt.setStrictMode=="function")try{jt.setStrictMode(Cn,e)}catch{}}var Nt=Math.clz32?Math.clz32:dr,on=Math.log,Vr=Math.LN2;function dr(e){return e>>>=0,e===0?32:31-(on(e)/Vr|0)|0}var Pi=256,ia=262144,bn=4194304;function O(e){var n=e&42;if(n!==0)return n;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:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function J(e,n,a){var o=e.pendingLanes;if(o===0)return 0;var u=0,f=e.suspendedLanes,y=e.pingedLanes;e=e.warmLanes;var _=o&134217727;return _!==0?(o=_&~f,o!==0?u=O(o):(y&=_,y!==0?u=O(y):a||(a=_&~e,a!==0&&(u=O(a))))):(_=o&~f,_!==0?u=O(_):y!==0?u=O(y):a||(a=o&~e,a!==0&&(u=O(a)))),u===0?0:n!==0&&n!==u&&(n&f)===0&&(f=u&-u,a=n&-n,f>=a||f===32&&(a&4194048)!==0)?n:u}function fe(e,n){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&n)===0}function Me(e,n){switch(e){case 1:case 2:case 4:case 8:case 64:return n+250;case 16:case 32: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:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Ze(){var e=bn;return bn<<=1,(bn&62914560)===0&&(bn=4194304),e}function lt(e){for(var n=[],a=0;31>a;a++)n.push(e);return n}function _e(e,n){e.pendingLanes|=n,n!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function ke(e,n,a,o,u,f){var y=e.pendingLanes;e.pendingLanes=a,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=a,e.entangledLanes&=a,e.errorRecoveryDisabledLanes&=a,e.shellSuspendCounter=0;var _=e.entanglements,M=e.expirationTimes,j=e.hiddenUpdates;for(a=y&~a;0<a;){var X=31-Nt(a),te=1<<X;_[X]=0,M[X]=-1;var H=j[X];if(H!==null)for(j[X]=null,X=0;X<H.length;X++){var P=H[X];P!==null&&(P.lane&=-536870913)}a&=~te}o!==0&&Le(e,o,0),f!==0&&u===0&&e.tag!==0&&(e.suspendedLanes|=f&~(y&~n))}function Le(e,n,a){e.pendingLanes|=n,e.suspendedLanes&=~n;var o=31-Nt(n);e.entangledLanes|=n,e.entanglements[o]=e.entanglements[o]|1073741824|a&261930}function Ct(e,n){var a=e.entangledLanes|=n;for(e=e.entanglements;a;){var o=31-Nt(a),u=1<<o;u&n|e[o]&n&&(e[o]|=n),a&=~u}}function Je(e,n){var a=n&-n;return a=(a&42)!==0?1:Pn(a),(a&(e.suspendedLanes|n))!==0?0:a}function Pn(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;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:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function Gi(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function Ma(){var e=Q.p;return e!==0?e:(e=window.event,e===void 0?32:ik(e.type))}function fr(e,n){var a=Q.p;try{return Q.p=e,n()}finally{Q.p=a}}var In=Math.random().toString(36).slice(2),zt="__reactFiber$"+In,ln="__reactProps$"+In,bi="__reactContainer$"+In,Yi="__reactEvents$"+In,Vi="__reactListeners$"+In,$i="__reactHandles$"+In,aa="__reactResources$"+In,Bn="__reactMarker$"+In;function Mn(e){delete e[zt],delete e[ln],delete e[Yi],delete e[Vi],delete e[$i]}function Ni(e){var n=e[zt];if(n)return n;for(var a=e.parentNode;a;){if(n=a[bi]||a[zt]){if(a=n.alternate,n.child!==null||a!==null&&a.child!==null)for(e=Hy(e);e!==null;){if(a=e[zt])return a;e=Hy(e)}return n}e=a,a=e.parentNode}return null}function Gn(e){if(e=e[zt]||e[bi]){var n=e.tag;if(n===5||n===6||n===13||n===31||n===26||n===27||n===3)return e}return null}function ra(e){var n=e.tag;if(n===5||n===26||n===27||n===6)return e.stateNode;throw Error(s(33))}function ti(e){var n=e[aa];return n||(n=e[aa]={hoistableStyles:new Map,hoistableScripts:new Map}),n}function Lt(e){e[Bn]=!0}var Ki=new Set,pr={};function oe(e,n){Se(e,n),Se(e+"Capture",n)}function Se(e,n){for(pr[e]=n,e=0;e<n.length;e++)Ki.add(n[e])}var Ke=RegExp("^[: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]*$"),ut={},It={};function pt(e){return Fn.call(It,e)?!0:Fn.call(ut,e)?!1:Ke.test(e)?It[e]=!0:(ut[e]=!0,!1)}function fn(e,n,a){if(pt(n))if(a===null)e.removeAttribute(n);else{switch(typeof a){case"undefined":case"function":case"symbol":e.removeAttribute(n);return;case"boolean":var o=n.toLowerCase().slice(0,5);if(o!=="data-"&&o!=="aria-"){e.removeAttribute(n);return}}e.setAttribute(n,""+a)}}function yi(e,n,a){if(a===null)e.removeAttribute(n);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(n);return}e.setAttribute(n,""+a)}}function Mt(e,n,a,o){if(o===null)e.removeAttribute(a);else{switch(typeof o){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(a);return}e.setAttributeNS(n,a,""+o)}}function Ot(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function mr(e){var n=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(n==="checkbox"||n==="radio")}function hr(e,n,a){var o=Object.getOwnPropertyDescriptor(e.constructor.prototype,n);if(!e.hasOwnProperty(n)&&typeof o<"u"&&typeof o.get=="function"&&typeof o.set=="function"){var u=o.get,f=o.set;return Object.defineProperty(e,n,{configurable:!0,get:function(){return u.call(this)},set:function(y){a=""+y,f.call(this,y)}}),Object.defineProperty(e,n,{enumerable:o.enumerable}),{getValue:function(){return a},setValue:function(y){a=""+y},stopTracking:function(){e._valueTracker=null,delete e[n]}}}}function Zi(e){if(!e._valueTracker){var n=mr(e)?"checked":"value";e._valueTracker=hr(e,n,""+e[n])}}function $r(e){if(!e)return!1;var n=e._valueTracker;if(!n)return!0;var a=n.getValue(),o="";return e&&(o=mr(e)?e.checked?"true":"false":e.value),e=o,e!==a?(n.setValue(e),!0):!1}function Oa(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var Vo=/[\n"\\]/g;function On(e){return e.replace(Vo,function(n){return"\\"+n.charCodeAt(0).toString(16)+" "})}function Qi(e,n,a,o,u,f,y,_){e.name="",y!=null&&typeof y!="function"&&typeof y!="symbol"&&typeof y!="boolean"?e.type=y:e.removeAttribute("type"),n!=null?y==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+Ot(n)):e.value!==""+Ot(n)&&(e.value=""+Ot(n)):y!=="submit"&&y!=="reset"||e.removeAttribute("value"),n!=null?pn(e,y,Ot(n)):a!=null?pn(e,y,Ot(a)):o!=null&&e.removeAttribute("value"),u==null&&f!=null&&(e.defaultChecked=!!f),u!=null&&(e.checked=u&&typeof u!="function"&&typeof u!="symbol"),_!=null&&typeof _!="function"&&typeof _!="symbol"&&typeof _!="boolean"?e.name=""+Ot(_):e.removeAttribute("name")}function oa(e,n,a,o,u,f,y,_){if(f!=null&&typeof f!="function"&&typeof f!="symbol"&&typeof f!="boolean"&&(e.type=f),n!=null||a!=null){if(!(f!=="submit"&&f!=="reset"||n!=null)){Zi(e);return}a=a!=null?""+Ot(a):"",n=n!=null?""+Ot(n):a,_||n===e.value||(e.value=n),e.defaultValue=n}o=o??u,o=typeof o!="function"&&typeof o!="symbol"&&!!o,e.checked=_?e.checked:!!o,e.defaultChecked=!!o,y!=null&&typeof y!="function"&&typeof y!="symbol"&&typeof y!="boolean"&&(e.name=y),Zi(e)}function pn(e,n,a){n==="number"&&Oa(e.ownerDocument)===e||e.defaultValue===""+a||(e.defaultValue=""+a)}function Ci(e,n,a,o){if(e=e.options,n){n={};for(var u=0;u<a.length;u++)n["$"+a[u]]=!0;for(a=0;a<e.length;a++)u=n.hasOwnProperty("$"+e[a].value),e[a].selected!==u&&(e[a].selected=u),u&&o&&(e[a].defaultSelected=!0)}else{for(a=""+Ot(a),n=null,u=0;u<e.length;u++){if(e[u].value===a){e[u].selected=!0,o&&(e[u].defaultSelected=!0);return}n!==null||e[u].disabled||(n=e[u])}n!==null&&(n.selected=!0)}}function ni(e,n,a){if(n!=null&&(n=""+Ot(n),n!==e.value&&(e.value=n),a==null)){e.defaultValue!==n&&(e.defaultValue=n);return}e.defaultValue=a!=null?""+Ot(a):""}function Ue(e,n,a,o){if(n==null){if(o!=null){if(a!=null)throw Error(s(92));if(Z(o)){if(1<o.length)throw Error(s(93));o=o[0]}a=o}a==null&&(a=""),n=a}a=Ot(n),e.defaultValue=a,o=e.textContent,o===a&&o!==""&&o!==null&&(e.value=o),Zi(e)}function Mi(e,n){if(n){var a=e.firstChild;if(a&&a===e.lastChild&&a.nodeType===3){a.nodeValue=n;return}}e.textContent=n}var Ht=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function dt(e,n,a){var o=n.indexOf("--")===0;a==null||typeof a=="boolean"||a===""?o?e.setProperty(n,""):n==="float"?e.cssFloat="":e[n]="":o?e.setProperty(n,a):typeof a!="number"||a===0||Ht.has(n)?n==="float"?e.cssFloat=a:e[n]=(""+a).trim():e[n]=a+"px"}function Ra(e,n,a){if(n!=null&&typeof n!="object")throw Error(s(62));if(e=e.style,a!=null){for(var o in a)!a.hasOwnProperty(o)||n!=null&&n.hasOwnProperty(o)||(o.indexOf("--")===0?e.setProperty(o,""):o==="float"?e.cssFloat="":e[o]="");for(var u in n)o=n[u],n.hasOwnProperty(u)&&a[u]!==o&&dt(e,u,o)}else for(var f in n)n.hasOwnProperty(f)&&dt(e,f,n[f])}function mt(e){if(e.indexOf("-")===-1)return!1;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 gr=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["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"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["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"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["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"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),Da=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function pe(e){return Da.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function K(){}var Be=null;function Ge(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Xe=null,sn=null;function Oi(e){var n=Gn(e);if(n&&(e=n.stateNode)){var a=e[ln]||null;e:switch(e=n.stateNode,n.type){case"input":if(Qi(e,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name),n=a.name,a.type==="radio"&&n!=null){for(a=e;a.parentNode;)a=a.parentNode;for(a=a.querySelectorAll('input[name="'+On(""+n)+'"][type="radio"]'),n=0;n<a.length;n++){var o=a[n];if(o!==e&&o.form===e.form){var u=o[ln]||null;if(!u)throw Error(s(90));Qi(o,u.value,u.defaultValue,u.defaultValue,u.checked,u.defaultChecked,u.type,u.name)}}for(n=0;n<a.length;n++)o=a[n],o.form===e.form&&$r(o)}break e;case"textarea":ni(e,a.value,a.defaultValue);break e;case"select":n=a.value,n!=null&&Ci(e,!!a.multiple,n,!1)}}}var br=!1;function ss(e,n,a){if(br)return e(n,a);br=!0;try{var o=e(n);return o}finally{if(br=!1,(Xe!==null||sn!==null)&&($s(),Xe&&(n=Xe,e=sn,sn=Xe=null,Oi(n),e)))for(n=0;n<e.length;n++)Oi(e[n])}}function Ri(e,n){var a=e.stateNode;if(a===null)return null;var o=a[ln]||null;if(o===null)return null;a=o[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":(o=!o.disabled)||(e=e.type,o=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!o;break e;default:e=!1}if(e)return null;if(a&&typeof a!="function")throw Error(s(231,n,typeof a));return a}var Un=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),$o=!1;if(Un)try{var yr={};Object.defineProperty(yr,"passive",{get:function(){$o=!0}}),window.addEventListener("test",yr,yr),window.removeEventListener("test",yr,yr)}catch{$o=!1}var Di=null,zi=null,Qe=null;function cn(){if(Qe)return Qe;var e,n=zi,a=n.length,o,u="value"in Di?Di.value:Di.textContent,f=u.length;for(e=0;e<a&&n[e]===u[e];e++);var y=a-e;for(o=1;o<=y&&n[a-o]===u[f-o];o++);return Qe=u.slice(e,1<o?1-o:void 0)}function Yn(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 kr(){return!0}function ii(){return!1}function Rn(e){function n(a,o,u,f,y){this._reactName=a,this._targetInst=u,this.type=o,this.nativeEvent=f,this.target=y,this.currentTarget=null;for(var _ in e)e.hasOwnProperty(_)&&(a=e[_],this[_]=a?a(f):f[_]);return this.isDefaultPrevented=(f.defaultPrevented!=null?f.defaultPrevented:f.returnValue===!1)?kr:ii,this.isPropagationStopped=ii,this}return k(n.prototype,{preventDefault:function(){this.defaultPrevented=!0;var a=this.nativeEvent;a&&(a.preventDefault?a.preventDefault():typeof a.returnValue!="unknown"&&(a.returnValue=!1),this.isDefaultPrevented=kr)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():typeof a.cancelBubble!="unknown"&&(a.cancelBubble=!0),this.isPropagationStopped=kr)},persist:function(){},isPersistent:kr}),n}var la={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Kr=Rn(la),sa=k({},la,{view:0,detail:0}),Vn=Rn(sa),ai,Ko,ca,Zr=k({},sa,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Ne,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!==ca&&(ca&&e.type==="mousemove"?(ai=e.screenX-ca.screenX,Ko=e.screenY-ca.screenY):Ko=ai=0,ca=e),ai)},movementY:function(e){return"movementY"in e?e.movementY:Ko}}),cs=Rn(Zr),_u=k({},Zr,{dataTransfer:0}),Eu=Rn(_u),wu=k({},sa,{relatedTarget:0}),xr=Rn(wu),ua=k({},la,{animationName:0,elapsedTime:0,pseudoElement:0}),Su=Rn(ua),Tu=k({},la,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Au=Rn(Tu),Nu=k({},la,{data:0}),V=Rn(Nu),me={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Ee={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"},we={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function De(e){var n=this.nativeEvent;return n.getModifierState?n.getModifierState(e):(e=we[e])?!!n[e]:!1}function Ne(){return De}var wt=k({},sa,{key:function(e){if(e.key){var n=me[e.key]||e.key;if(n!=="Unidentified")return n}return e.type==="keypress"?(e=Yn(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Ee[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Ne,charCode:function(e){return e.type==="keypress"?Yn(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Yn(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),yn=Rn(wt),mn=k({},Zr,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),kn=Rn(mn),Vt=k({},sa,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Ne}),Xt=Rn(Vt),Bt=k({},la,{propertyName:0,elapsedTime:0,pseudoElement:0}),za=Rn(Bt),ri=k({},Zr,{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}),us=Rn(ri),ds=k({},la,{newState:0,oldState:0}),UT=Rn(ds),qT=[9,13,27,32],Cu=Un&&"CompositionEvent"in window,Zo=null;Un&&"documentMode"in document&&(Zo=document.documentMode);var jT=Un&&"TextEvent"in window&&!Zo,qh=Un&&(!Cu||Zo&&8<Zo&&11>=Zo),jh=" ",Hh=!1;function Fh(e,n){switch(e){case"keyup":return qT.indexOf(n.keyCode)!==-1;case"keydown":return n.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Ph(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Qr=!1;function HT(e,n){switch(e){case"compositionend":return Ph(n);case"keypress":return n.which!==32?null:(Hh=!0,jh);case"textInput":return e=n.data,e===jh&&Hh?null:e;default:return null}}function FT(e,n){if(Qr)return e==="compositionend"||!Cu&&Fh(e,n)?(e=cn(),Qe=zi=Di=null,Qr=!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 qh&&n.locale!=="ko"?null:n.data;default:return null}}var PT={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 Gh(e){var n=e&&e.nodeName&&e.nodeName.toLowerCase();return n==="input"?!!PT[e.type]:n==="textarea"}function Yh(e,n,a,o){Xe?sn?sn.push(o):sn=[o]:Xe=o,n=ec(n,"onChange"),0<n.length&&(a=new Kr("onChange","change",null,a,o),e.push({event:a,listeners:n}))}var Qo=null,Xo=null;function GT(e){Ay(e,0)}function fs(e){var n=ra(e);if($r(n))return e}function Vh(e,n){if(e==="change")return n}var $h=!1;if(Un){var Mu;if(Un){var Ou="oninput"in document;if(!Ou){var Kh=document.createElement("div");Kh.setAttribute("oninput","return;"),Ou=typeof Kh.oninput=="function"}Mu=Ou}else Mu=!1;$h=Mu&&(!document.documentMode||9<document.documentMode)}function Zh(){Qo&&(Qo.detachEvent("onpropertychange",Qh),Xo=Qo=null)}function Qh(e){if(e.propertyName==="value"&&fs(Xo)){var n=[];Yh(n,Xo,e,Ge(e)),ss(GT,n)}}function YT(e,n,a){e==="focusin"?(Zh(),Qo=n,Xo=a,Qo.attachEvent("onpropertychange",Qh)):e==="focusout"&&Zh()}function VT(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return fs(Xo)}function $T(e,n){if(e==="click")return fs(n)}function KT(e,n){if(e==="input"||e==="change")return fs(n)}function ZT(e,n){return e===n&&(e!==0||1/e===1/n)||e!==e&&n!==n}var oi=typeof Object.is=="function"?Object.is:ZT;function Wo(e,n){if(oi(e,n))return!0;if(typeof e!="object"||e===null||typeof n!="object"||n===null)return!1;var a=Object.keys(e),o=Object.keys(n);if(a.length!==o.length)return!1;for(o=0;o<a.length;o++){var u=a[o];if(!Fn.call(n,u)||!oi(e[u],n[u]))return!1}return!0}function Xh(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Wh(e,n){var a=Xh(e);e=0;for(var o;a;){if(a.nodeType===3){if(o=e+a.textContent.length,e<=n&&o>=n)return{node:a,offset:n-e};e=o}e:{for(;a;){if(a.nextSibling){a=a.nextSibling;break e}a=a.parentNode}a=void 0}a=Xh(a)}}function Jh(e,n){return e&&n?e===n?!0:e&&e.nodeType===3?!1:n&&n.nodeType===3?Jh(e,n.parentNode):"contains"in e?e.contains(n):e.compareDocumentPosition?!!(e.compareDocumentPosition(n)&16):!1:!1}function eg(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var n=Oa(e.document);n instanceof e.HTMLIFrameElement;){try{var a=typeof n.contentWindow.location.href=="string"}catch{a=!1}if(a)e=n.contentWindow;else break;n=Oa(e.document)}return n}function Ru(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")}var QT=Un&&"documentMode"in document&&11>=document.documentMode,Xr=null,Du=null,Jo=null,zu=!1;function tg(e,n,a){var o=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;zu||Xr==null||Xr!==Oa(o)||(o=Xr,"selectionStart"in o&&Ru(o)?o={start:o.selectionStart,end:o.selectionEnd}:(o=(o.ownerDocument&&o.ownerDocument.defaultView||window).getSelection(),o={anchorNode:o.anchorNode,anchorOffset:o.anchorOffset,focusNode:o.focusNode,focusOffset:o.focusOffset}),Jo&&Wo(Jo,o)||(Jo=o,o=ec(Du,"onSelect"),0<o.length&&(n=new Kr("onSelect","select",null,n,a),e.push({event:n,listeners:o}),n.target=Xr)))}function vr(e,n){var a={};return a[e.toLowerCase()]=n.toLowerCase(),a["Webkit"+e]="webkit"+n,a["Moz"+e]="moz"+n,a}var Wr={animationend:vr("Animation","AnimationEnd"),animationiteration:vr("Animation","AnimationIteration"),animationstart:vr("Animation","AnimationStart"),transitionrun:vr("Transition","TransitionRun"),transitionstart:vr("Transition","TransitionStart"),transitioncancel:vr("Transition","TransitionCancel"),transitionend:vr("Transition","TransitionEnd")},Lu={},ng={};Un&&(ng=document.createElement("div").style,"AnimationEvent"in window||(delete Wr.animationend.animation,delete Wr.animationiteration.animation,delete Wr.animationstart.animation),"TransitionEvent"in window||delete Wr.transitionend.transition);function _r(e){if(Lu[e])return Lu[e];if(!Wr[e])return e;var n=Wr[e],a;for(a in n)if(n.hasOwnProperty(a)&&a in ng)return Lu[e]=n[a];return e}var ig=_r("animationend"),ag=_r("animationiteration"),rg=_r("animationstart"),XT=_r("transitionrun"),WT=_r("transitionstart"),JT=_r("transitioncancel"),og=_r("transitionend"),lg=new Map,Iu="abort auxClick beforeToggle 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(" ");Iu.push("scrollEnd");function Li(e,n){lg.set(e,n),oe(n,[e])}var ps=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var n=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(n))return}else if(typeof t=="object"&&typeof t.emit=="function"){t.emit("uncaughtException",e);return}console.error(e)},ki=[],Jr=0,Bu=0;function ms(){for(var e=Jr,n=Bu=Jr=0;n<e;){var a=ki[n];ki[n++]=null;var o=ki[n];ki[n++]=null;var u=ki[n];ki[n++]=null;var f=ki[n];if(ki[n++]=null,o!==null&&u!==null){var y=o.pending;y===null?u.next=u:(u.next=y.next,y.next=u),o.pending=u}f!==0&&sg(a,u,f)}}function hs(e,n,a,o){ki[Jr++]=e,ki[Jr++]=n,ki[Jr++]=a,ki[Jr++]=o,Bu|=o,e.lanes|=o,e=e.alternate,e!==null&&(e.lanes|=o)}function Uu(e,n,a,o){return hs(e,n,a,o),gs(e)}function Er(e,n){return hs(e,null,null,n),gs(e)}function sg(e,n,a){e.lanes|=a;var o=e.alternate;o!==null&&(o.lanes|=a);for(var u=!1,f=e.return;f!==null;)f.childLanes|=a,o=f.alternate,o!==null&&(o.childLanes|=a),f.tag===22&&(e=f.stateNode,e===null||e._visibility&1||(u=!0)),e=f,f=f.return;return e.tag===3?(f=e.stateNode,u&&n!==null&&(u=31-Nt(a),e=f.hiddenUpdates,o=e[u],o===null?e[u]=[n]:o.push(n),n.lane=a|536870912),f):null}function gs(e){if(50<vl)throw vl=0,$d=null,Error(s(185));for(var n=e.return;n!==null;)e=n,n=e.return;return e.tag===3?e.stateNode:null}var eo={};function eA(e,n,a,o){this.tag=e,this.key=a,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=n,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=o,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function li(e,n,a,o){return new eA(e,n,a,o)}function qu(e){return e=e.prototype,!(!e||!e.isReactComponent)}function da(e,n){var a=e.alternate;return a===null?(a=li(e.tag,n,e.key,e.mode),a.elementType=e.elementType,a.type=e.type,a.stateNode=e.stateNode,a.alternate=e,e.alternate=a):(a.pendingProps=n,a.type=e.type,a.flags=0,a.subtreeFlags=0,a.deletions=null),a.flags=e.flags&65011712,a.childLanes=e.childLanes,a.lanes=e.lanes,a.child=e.child,a.memoizedProps=e.memoizedProps,a.memoizedState=e.memoizedState,a.updateQueue=e.updateQueue,n=e.dependencies,a.dependencies=n===null?null:{lanes:n.lanes,firstContext:n.firstContext},a.sibling=e.sibling,a.index=e.index,a.ref=e.ref,a.refCleanup=e.refCleanup,a}function cg(e,n){e.flags&=65011714;var a=e.alternate;return a===null?(e.childLanes=0,e.lanes=n,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=a.childLanes,e.lanes=a.lanes,e.child=a.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=a.memoizedProps,e.memoizedState=a.memoizedState,e.updateQueue=a.updateQueue,e.type=a.type,n=a.dependencies,e.dependencies=n===null?null:{lanes:n.lanes,firstContext:n.firstContext}),e}function bs(e,n,a,o,u,f){var y=0;if(o=e,typeof e=="function")qu(e)&&(y=1);else if(typeof e=="string")y=rN(e,a,ge.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case B:return e=li(31,a,n,u),e.elementType=B,e.lanes=f,e;case A:return wr(a.children,u,f,n);case S:y=8,u|=24;break;case L:return e=li(12,a,n,u|2),e.elementType=L,e.lanes=f,e;case R:return e=li(13,a,n,u),e.elementType=R,e.lanes=f,e;case le:return e=li(19,a,n,u),e.elementType=le,e.lanes=f,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case F:y=10;break e;case I:y=9;break e;case Y:y=11;break e;case ae:y=14;break e;case he:y=16,o=null;break e}y=29,a=Error(s(130,e===null?"null":typeof e,"")),o=null}return n=li(y,a,n,u),n.elementType=e,n.type=o,n.lanes=f,n}function wr(e,n,a,o){return e=li(7,e,o,n),e.lanes=a,e}function ju(e,n,a){return e=li(6,e,null,n),e.lanes=a,e}function ug(e){var n=li(18,null,null,0);return n.stateNode=e,n}function Hu(e,n,a){return n=li(4,e.children!==null?e.children:[],e.key,n),n.lanes=a,n.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},n}var dg=new WeakMap;function xi(e,n){if(typeof e=="object"&&e!==null){var a=dg.get(e);return a!==void 0?a:(n={value:e,source:n,stack:Ln(n)},dg.set(e,n),n)}return{value:e,source:n,stack:Ln(n)}}var to=[],no=0,ys=null,el=0,vi=[],_i=0,La=null,Xi=1,Wi="";function fa(e,n){to[no++]=el,to[no++]=ys,ys=e,el=n}function fg(e,n,a){vi[_i++]=Xi,vi[_i++]=Wi,vi[_i++]=La,La=e;var o=Xi;e=Wi;var u=32-Nt(o)-1;o&=~(1<<u),a+=1;var f=32-Nt(n)+u;if(30<f){var y=u-u%5;f=(o&(1<<y)-1).toString(32),o>>=y,u-=y,Xi=1<<32-Nt(n)+u|a<<u|o,Wi=f+e}else Xi=1<<f|a<<u|o,Wi=e}function Fu(e){e.return!==null&&(fa(e,1),fg(e,1,0))}function Pu(e){for(;e===ys;)ys=to[--no],to[no]=null,el=to[--no],to[no]=null;for(;e===La;)La=vi[--_i],vi[_i]=null,Wi=vi[--_i],vi[_i]=null,Xi=vi[--_i],vi[_i]=null}function pg(e,n){vi[_i++]=Xi,vi[_i++]=Wi,vi[_i++]=La,Xi=n.id,Wi=n.overflow,La=e}var xn=null,Rt=null,at=!1,Ia=null,Ei=!1,Gu=Error(s(519));function Ba(e){var n=Error(s(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw tl(xi(n,e)),Gu}function mg(e){var n=e.stateNode,a=e.type,o=e.memoizedProps;switch(n[zt]=e,n[ln]=o,a){case"dialog":tt("cancel",n),tt("close",n);break;case"iframe":case"object":case"embed":tt("load",n);break;case"video":case"audio":for(a=0;a<El.length;a++)tt(El[a],n);break;case"source":tt("error",n);break;case"img":case"image":case"link":tt("error",n),tt("load",n);break;case"details":tt("toggle",n);break;case"input":tt("invalid",n),oa(n,o.value,o.defaultValue,o.checked,o.defaultChecked,o.type,o.name,!0);break;case"select":tt("invalid",n);break;case"textarea":tt("invalid",n),Ue(n,o.value,o.defaultValue,o.children)}a=o.children,typeof a!="string"&&typeof a!="number"&&typeof a!="bigint"||n.textContent===""+a||o.suppressHydrationWarning===!0||Oy(n.textContent,a)?(o.popover!=null&&(tt("beforetoggle",n),tt("toggle",n)),o.onScroll!=null&&tt("scroll",n),o.onScrollEnd!=null&&tt("scrollend",n),o.onClick!=null&&(n.onclick=K),n=!0):n=!1,n||Ba(e,!0)}function hg(e){for(xn=e.return;xn;)switch(xn.tag){case 5:case 31:case 13:Ei=!1;return;case 27:case 3:Ei=!0;return;default:xn=xn.return}}function io(e){if(e!==xn)return!1;if(!at)return hg(e),at=!0,!1;var n=e.tag,a;if((a=n!==3&&n!==27)&&((a=n===5)&&(a=e.type,a=!(a!=="form"&&a!=="button")||cf(e.type,e.memoizedProps)),a=!a),a&&Rt&&Ba(e),hg(e),n===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(s(317));Rt=jy(e)}else if(n===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(s(317));Rt=jy(e)}else n===27?(n=Rt,Xa(e.type)?(e=mf,mf=null,Rt=e):Rt=n):Rt=xn?Si(e.stateNode.nextSibling):null;return!0}function Sr(){Rt=xn=null,at=!1}function Yu(){var e=Ia;return e!==null&&(Qn===null?Qn=e:Qn.push.apply(Qn,e),Ia=null),e}function tl(e){Ia===null?Ia=[e]:Ia.push(e)}var Vu=C(null),Tr=null,pa=null;function Ua(e,n,a){ie(Vu,n._currentValue),n._currentValue=a}function ma(e){e._currentValue=Vu.current,E(Vu)}function $u(e,n,a){for(;e!==null;){var o=e.alternate;if((e.childLanes&n)!==n?(e.childLanes|=n,o!==null&&(o.childLanes|=n)):o!==null&&(o.childLanes&n)!==n&&(o.childLanes|=n),e===a)break;e=e.return}}function Ku(e,n,a,o){var u=e.child;for(u!==null&&(u.return=e);u!==null;){var f=u.dependencies;if(f!==null){var y=u.child;f=f.firstContext;e:for(;f!==null;){var _=f;f=u;for(var M=0;M<n.length;M++)if(_.context===n[M]){f.lanes|=a,_=f.alternate,_!==null&&(_.lanes|=a),$u(f.return,a,e),o||(y=null);break e}f=_.next}}else if(u.tag===18){if(y=u.return,y===null)throw Error(s(341));y.lanes|=a,f=y.alternate,f!==null&&(f.lanes|=a),$u(y,a,e),y=null}else y=u.child;if(y!==null)y.return=u;else for(y=u;y!==null;){if(y===e){y=null;break}if(u=y.sibling,u!==null){u.return=y.return,y=u;break}y=y.return}u=y}}function ao(e,n,a,o){e=null;for(var u=n,f=!1;u!==null;){if(!f){if((u.flags&524288)!==0)f=!0;else if((u.flags&262144)!==0)break}if(u.tag===10){var y=u.alternate;if(y===null)throw Error(s(387));if(y=y.memoizedProps,y!==null){var _=u.type;oi(u.pendingProps.value,y.value)||(e!==null?e.push(_):e=[_])}}else if(u===be.current){if(y=u.alternate,y===null)throw Error(s(387));y.memoizedState.memoizedState!==u.memoizedState.memoizedState&&(e!==null?e.push(Nl):e=[Nl])}u=u.return}e!==null&&Ku(n,e,a,o),n.flags|=262144}function ks(e){for(e=e.firstContext;e!==null;){if(!oi(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Ar(e){Tr=e,pa=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function vn(e){return gg(Tr,e)}function xs(e,n){return Tr===null&&Ar(e),gg(e,n)}function gg(e,n){var a=n._currentValue;if(n={context:n,memoizedValue:a,next:null},pa===null){if(e===null)throw Error(s(308));pa=n,e.dependencies={lanes:0,firstContext:n},e.flags|=524288}else pa=pa.next=n;return a}var tA=typeof AbortController<"u"?AbortController:function(){var e=[],n=this.signal={aborted:!1,addEventListener:function(a,o){e.push(o)}};this.abort=function(){n.aborted=!0,e.forEach(function(a){return a()})}},nA=i.unstable_scheduleCallback,iA=i.unstable_NormalPriority,Wt={$$typeof:F,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Zu(){return{controller:new tA,data:new Map,refCount:0}}function nl(e){e.refCount--,e.refCount===0&&nA(iA,function(){e.controller.abort()})}var il=null,Qu=0,ro=0,oo=null;function aA(e,n){if(il===null){var a=il=[];Qu=0,ro=Jd(),oo={status:"pending",value:void 0,then:function(o){a.push(o)}}}return Qu++,n.then(bg,bg),n}function bg(){if(--Qu===0&&il!==null){oo!==null&&(oo.status="fulfilled");var e=il;il=null,ro=0,oo=null;for(var n=0;n<e.length;n++)(0,e[n])()}}function rA(e,n){var a=[],o={status:"pending",value:null,reason:null,then:function(u){a.push(u)}};return e.then(function(){o.status="fulfilled",o.value=n;for(var u=0;u<a.length;u++)(0,a[u])(n)},function(u){for(o.status="rejected",o.reason=u,u=0;u<a.length;u++)(0,a[u])(void 0)}),o}var yg=$.S;$.S=function(e,n){ty=Yt(),typeof n=="object"&&n!==null&&typeof n.then=="function"&&aA(e,n),yg!==null&&yg(e,n)};var Nr=C(null);function Xu(){var e=Nr.current;return e!==null?e:St.pooledCache}function vs(e,n){n===null?ie(Nr,Nr.current):ie(Nr,n.pool)}function kg(){var e=Xu();return e===null?null:{parent:Wt._currentValue,pool:e}}var lo=Error(s(460)),Wu=Error(s(474)),_s=Error(s(542)),Es={then:function(){}};function xg(e){return e=e.status,e==="fulfilled"||e==="rejected"}function vg(e,n,a){switch(a=e[a],a===void 0?e.push(n):a!==n&&(n.then(K,K),n=a),n.status){case"fulfilled":return n.value;case"rejected":throw e=n.reason,Eg(e),e;default:if(typeof n.status=="string")n.then(K,K);else{if(e=St,e!==null&&100<e.shellSuspendCounter)throw Error(s(482));e=n,e.status="pending",e.then(function(o){if(n.status==="pending"){var u=n;u.status="fulfilled",u.value=o}},function(o){if(n.status==="pending"){var u=n;u.status="rejected",u.reason=o}})}switch(n.status){case"fulfilled":return n.value;case"rejected":throw e=n.reason,Eg(e),e}throw Mr=n,lo}}function Cr(e){try{var n=e._init;return n(e._payload)}catch(a){throw a!==null&&typeof a=="object"&&typeof a.then=="function"?(Mr=a,lo):a}}var Mr=null;function _g(){if(Mr===null)throw Error(s(459));var e=Mr;return Mr=null,e}function Eg(e){if(e===lo||e===_s)throw Error(s(483))}var so=null,al=0;function ws(e){var n=al;return al+=1,so===null&&(so=[]),vg(so,e,n)}function rl(e,n){n=n.props.ref,e.ref=n!==void 0?n:null}function Ss(e,n){throw n.$$typeof===x?Error(s(525)):(e=Object.prototype.toString.call(n),Error(s(31,e==="[object Object]"?"object with keys {"+Object.keys(n).join(", ")+"}":e)))}function wg(e){function n(z,D){if(e){var q=z.deletions;q===null?(z.deletions=[D],z.flags|=16):q.push(D)}}function a(z,D){if(!e)return null;for(;D!==null;)n(z,D),D=D.sibling;return null}function o(z){for(var D=new Map;z!==null;)z.key!==null?D.set(z.key,z):D.set(z.index,z),z=z.sibling;return D}function u(z,D){return z=da(z,D),z.index=0,z.sibling=null,z}function f(z,D,q){return z.index=q,e?(q=z.alternate,q!==null?(q=q.index,q<D?(z.flags|=67108866,D):q):(z.flags|=67108866,D)):(z.flags|=1048576,D)}function y(z){return e&&z.alternate===null&&(z.flags|=67108866),z}function _(z,D,q,ee){return D===null||D.tag!==6?(D=ju(q,z.mode,ee),D.return=z,D):(D=u(D,q),D.return=z,D)}function M(z,D,q,ee){var Oe=q.type;return Oe===A?X(z,D,q.props.children,ee,q.key):D!==null&&(D.elementType===Oe||typeof Oe=="object"&&Oe!==null&&Oe.$$typeof===he&&Cr(Oe)===D.type)?(D=u(D,q.props),rl(D,q),D.return=z,D):(D=bs(q.type,q.key,q.props,null,z.mode,ee),rl(D,q),D.return=z,D)}function j(z,D,q,ee){return D===null||D.tag!==4||D.stateNode.containerInfo!==q.containerInfo||D.stateNode.implementation!==q.implementation?(D=Hu(q,z.mode,ee),D.return=z,D):(D=u(D,q.children||[]),D.return=z,D)}function X(z,D,q,ee,Oe){return D===null||D.tag!==7?(D=wr(q,z.mode,ee,Oe),D.return=z,D):(D=u(D,q),D.return=z,D)}function te(z,D,q){if(typeof D=="string"&&D!==""||typeof D=="number"||typeof D=="bigint")return D=ju(""+D,z.mode,q),D.return=z,D;if(typeof D=="object"&&D!==null){switch(D.$$typeof){case w:return q=bs(D.type,D.key,D.props,null,z.mode,q),rl(q,D),q.return=z,q;case T:return D=Hu(D,z.mode,q),D.return=z,D;case he:return D=Cr(D),te(z,D,q)}if(Z(D)||Ae(D))return D=wr(D,z.mode,q,null),D.return=z,D;if(typeof D.then=="function")return te(z,ws(D),q);if(D.$$typeof===F)return te(z,xs(z,D),q);Ss(z,D)}return null}function H(z,D,q,ee){var Oe=D!==null?D.key:null;if(typeof q=="string"&&q!==""||typeof q=="number"||typeof q=="bigint")return Oe!==null?null:_(z,D,""+q,ee);if(typeof q=="object"&&q!==null){switch(q.$$typeof){case w:return q.key===Oe?M(z,D,q,ee):null;case T:return q.key===Oe?j(z,D,q,ee):null;case he:return q=Cr(q),H(z,D,q,ee)}if(Z(q)||Ae(q))return Oe!==null?null:X(z,D,q,ee,null);if(typeof q.then=="function")return H(z,D,ws(q),ee);if(q.$$typeof===F)return H(z,D,xs(z,q),ee);Ss(z,q)}return null}function P(z,D,q,ee,Oe){if(typeof ee=="string"&&ee!==""||typeof ee=="number"||typeof ee=="bigint")return z=z.get(q)||null,_(D,z,""+ee,Oe);if(typeof ee=="object"&&ee!==null){switch(ee.$$typeof){case w:return z=z.get(ee.key===null?q:ee.key)||null,M(D,z,ee,Oe);case T:return z=z.get(ee.key===null?q:ee.key)||null,j(D,z,ee,Oe);case he:return ee=Cr(ee),P(z,D,q,ee,Oe)}if(Z(ee)||Ae(ee))return z=z.get(q)||null,X(D,z,ee,Oe,null);if(typeof ee.then=="function")return P(z,D,q,ws(ee),Oe);if(ee.$$typeof===F)return P(z,D,q,xs(D,ee),Oe);Ss(D,ee)}return null}function Te(z,D,q,ee){for(var Oe=null,st=null,Ce=D,$e=D=0,it=null;Ce!==null&&$e<q.length;$e++){Ce.index>$e?(it=Ce,Ce=null):it=Ce.sibling;var ct=H(z,Ce,q[$e],ee);if(ct===null){Ce===null&&(Ce=it);break}e&&Ce&&ct.alternate===null&&n(z,Ce),D=f(ct,D,$e),st===null?Oe=ct:st.sibling=ct,st=ct,Ce=it}if($e===q.length)return a(z,Ce),at&&fa(z,$e),Oe;if(Ce===null){for(;$e<q.length;$e++)Ce=te(z,q[$e],ee),Ce!==null&&(D=f(Ce,D,$e),st===null?Oe=Ce:st.sibling=Ce,st=Ce);return at&&fa(z,$e),Oe}for(Ce=o(Ce);$e<q.length;$e++)it=P(Ce,z,$e,q[$e],ee),it!==null&&(e&&it.alternate!==null&&Ce.delete(it.key===null?$e:it.key),D=f(it,D,$e),st===null?Oe=it:st.sibling=it,st=it);return e&&Ce.forEach(function(nr){return n(z,nr)}),at&&fa(z,$e),Oe}function Ie(z,D,q,ee){if(q==null)throw Error(s(151));for(var Oe=null,st=null,Ce=D,$e=D=0,it=null,ct=q.next();Ce!==null&&!ct.done;$e++,ct=q.next()){Ce.index>$e?(it=Ce,Ce=null):it=Ce.sibling;var nr=H(z,Ce,ct.value,ee);if(nr===null){Ce===null&&(Ce=it);break}e&&Ce&&nr.alternate===null&&n(z,Ce),D=f(nr,D,$e),st===null?Oe=nr:st.sibling=nr,st=nr,Ce=it}if(ct.done)return a(z,Ce),at&&fa(z,$e),Oe;if(Ce===null){for(;!ct.done;$e++,ct=q.next())ct=te(z,ct.value,ee),ct!==null&&(D=f(ct,D,$e),st===null?Oe=ct:st.sibling=ct,st=ct);return at&&fa(z,$e),Oe}for(Ce=o(Ce);!ct.done;$e++,ct=q.next())ct=P(Ce,z,$e,ct.value,ee),ct!==null&&(e&&ct.alternate!==null&&Ce.delete(ct.key===null?$e:ct.key),D=f(ct,D,$e),st===null?Oe=ct:st.sibling=ct,st=ct);return e&&Ce.forEach(function(gN){return n(z,gN)}),at&&fa(z,$e),Oe}function xt(z,D,q,ee){if(typeof q=="object"&&q!==null&&q.type===A&&q.key===null&&(q=q.props.children),typeof q=="object"&&q!==null){switch(q.$$typeof){case w:e:{for(var Oe=q.key;D!==null;){if(D.key===Oe){if(Oe=q.type,Oe===A){if(D.tag===7){a(z,D.sibling),ee=u(D,q.props.children),ee.return=z,z=ee;break e}}else if(D.elementType===Oe||typeof Oe=="object"&&Oe!==null&&Oe.$$typeof===he&&Cr(Oe)===D.type){a(z,D.sibling),ee=u(D,q.props),rl(ee,q),ee.return=z,z=ee;break e}a(z,D);break}else n(z,D);D=D.sibling}q.type===A?(ee=wr(q.props.children,z.mode,ee,q.key),ee.return=z,z=ee):(ee=bs(q.type,q.key,q.props,null,z.mode,ee),rl(ee,q),ee.return=z,z=ee)}return y(z);case T:e:{for(Oe=q.key;D!==null;){if(D.key===Oe)if(D.tag===4&&D.stateNode.containerInfo===q.containerInfo&&D.stateNode.implementation===q.implementation){a(z,D.sibling),ee=u(D,q.children||[]),ee.return=z,z=ee;break e}else{a(z,D);break}else n(z,D);D=D.sibling}ee=Hu(q,z.mode,ee),ee.return=z,z=ee}return y(z);case he:return q=Cr(q),xt(z,D,q,ee)}if(Z(q))return Te(z,D,q,ee);if(Ae(q)){if(Oe=Ae(q),typeof Oe!="function")throw Error(s(150));return q=Oe.call(q),Ie(z,D,q,ee)}if(typeof q.then=="function")return xt(z,D,ws(q),ee);if(q.$$typeof===F)return xt(z,D,xs(z,q),ee);Ss(z,q)}return typeof q=="string"&&q!==""||typeof q=="number"||typeof q=="bigint"?(q=""+q,D!==null&&D.tag===6?(a(z,D.sibling),ee=u(D,q),ee.return=z,z=ee):(a(z,D),ee=ju(q,z.mode,ee),ee.return=z,z=ee),y(z)):a(z,D)}return function(z,D,q,ee){try{al=0;var Oe=xt(z,D,q,ee);return so=null,Oe}catch(Ce){if(Ce===lo||Ce===_s)throw Ce;var st=li(29,Ce,null,z.mode);return st.lanes=ee,st.return=z,st}}}var Or=wg(!0),Sg=wg(!1),qa=!1;function Ju(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function ed(e,n){e=e.updateQueue,n.updateQueue===e&&(n.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function ja(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Ha(e,n,a){var o=e.updateQueue;if(o===null)return null;if(o=o.shared,(ft&2)!==0){var u=o.pending;return u===null?n.next=n:(n.next=u.next,u.next=n),o.pending=n,n=gs(e),sg(e,null,a),n}return hs(e,o,n,a),gs(e)}function ol(e,n,a){if(n=n.updateQueue,n!==null&&(n=n.shared,(a&4194048)!==0)){var o=n.lanes;o&=e.pendingLanes,a|=o,n.lanes=a,Ct(e,a)}}function td(e,n){var a=e.updateQueue,o=e.alternate;if(o!==null&&(o=o.updateQueue,a===o)){var u=null,f=null;if(a=a.firstBaseUpdate,a!==null){do{var y={lane:a.lane,tag:a.tag,payload:a.payload,callback:null,next:null};f===null?u=f=y:f=f.next=y,a=a.next}while(a!==null);f===null?u=f=n:f=f.next=n}else u=f=n;a={baseState:o.baseState,firstBaseUpdate:u,lastBaseUpdate:f,shared:o.shared,callbacks:o.callbacks},e.updateQueue=a;return}e=a.lastBaseUpdate,e===null?a.firstBaseUpdate=n:e.next=n,a.lastBaseUpdate=n}var nd=!1;function ll(){if(nd){var e=oo;if(e!==null)throw e}}function sl(e,n,a,o){nd=!1;var u=e.updateQueue;qa=!1;var f=u.firstBaseUpdate,y=u.lastBaseUpdate,_=u.shared.pending;if(_!==null){u.shared.pending=null;var M=_,j=M.next;M.next=null,y===null?f=j:y.next=j,y=M;var X=e.alternate;X!==null&&(X=X.updateQueue,_=X.lastBaseUpdate,_!==y&&(_===null?X.firstBaseUpdate=j:_.next=j,X.lastBaseUpdate=M))}if(f!==null){var te=u.baseState;y=0,X=j=M=null,_=f;do{var H=_.lane&-536870913,P=H!==_.lane;if(P?(nt&H)===H:(o&H)===H){H!==0&&H===ro&&(nd=!0),X!==null&&(X=X.next={lane:0,tag:_.tag,payload:_.payload,callback:null,next:null});e:{var Te=e,Ie=_;H=n;var xt=a;switch(Ie.tag){case 1:if(Te=Ie.payload,typeof Te=="function"){te=Te.call(xt,te,H);break e}te=Te;break e;case 3:Te.flags=Te.flags&-65537|128;case 0:if(Te=Ie.payload,H=typeof Te=="function"?Te.call(xt,te,H):Te,H==null)break e;te=k({},te,H);break e;case 2:qa=!0}}H=_.callback,H!==null&&(e.flags|=64,P&&(e.flags|=8192),P=u.callbacks,P===null?u.callbacks=[H]:P.push(H))}else P={lane:H,tag:_.tag,payload:_.payload,callback:_.callback,next:null},X===null?(j=X=P,M=te):X=X.next=P,y|=H;if(_=_.next,_===null){if(_=u.shared.pending,_===null)break;P=_,_=P.next,P.next=null,u.lastBaseUpdate=P,u.shared.pending=null}}while(!0);X===null&&(M=te),u.baseState=M,u.firstBaseUpdate=j,u.lastBaseUpdate=X,f===null&&(u.shared.lanes=0),Va|=y,e.lanes=y,e.memoizedState=te}}function Tg(e,n){if(typeof e!="function")throw Error(s(191,e));e.call(n)}function Ag(e,n){var a=e.callbacks;if(a!==null)for(e.callbacks=null,e=0;e<a.length;e++)Tg(a[e],n)}var co=C(null),Ts=C(0);function Ng(e,n){e=Ea,ie(Ts,e),ie(co,n),Ea=e|n.baseLanes}function id(){ie(Ts,Ea),ie(co,co.current)}function ad(){Ea=Ts.current,E(co),E(Ts)}var si=C(null),wi=null;function Fa(e){var n=e.alternate;ie($t,$t.current&1),ie(si,e),wi===null&&(n===null||co.current!==null||n.memoizedState!==null)&&(wi=e)}function rd(e){ie($t,$t.current),ie(si,e),wi===null&&(wi=e)}function Cg(e){e.tag===22?(ie($t,$t.current),ie(si,e),wi===null&&(wi=e)):Pa()}function Pa(){ie($t,$t.current),ie(si,si.current)}function ci(e){E(si),wi===e&&(wi=null),E($t)}var $t=C(0);function As(e){for(var n=e;n!==null;){if(n.tag===13){var a=n.memoizedState;if(a!==null&&(a=a.dehydrated,a===null||ff(a)||pf(a)))return n}else if(n.tag===19&&(n.memoizedProps.revealOrder==="forwards"||n.memoizedProps.revealOrder==="backwards"||n.memoizedProps.revealOrder==="unstable_legacy-backwards"||n.memoizedProps.revealOrder==="together")){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 ha=0,Ye=null,yt=null,Jt=null,Ns=!1,uo=!1,Rr=!1,Cs=0,cl=0,fo=null,oA=0;function Pt(){throw Error(s(321))}function od(e,n){if(n===null)return!1;for(var a=0;a<n.length&&a<e.length;a++)if(!oi(e[a],n[a]))return!1;return!0}function ld(e,n,a,o,u,f){return ha=f,Ye=n,n.memoizedState=null,n.updateQueue=null,n.lanes=0,$.H=e===null||e.memoizedState===null?fb:_d,Rr=!1,f=a(o,u),Rr=!1,uo&&(f=Og(n,a,o,u)),Mg(e),f}function Mg(e){$.H=fl;var n=yt!==null&&yt.next!==null;if(ha=0,Jt=yt=Ye=null,Ns=!1,cl=0,fo=null,n)throw Error(s(300));e===null||en||(e=e.dependencies,e!==null&&ks(e)&&(en=!0))}function Og(e,n,a,o){Ye=e;var u=0;do{if(uo&&(fo=null),cl=0,uo=!1,25<=u)throw Error(s(301));if(u+=1,Jt=yt=null,e.updateQueue!=null){var f=e.updateQueue;f.lastEffect=null,f.events=null,f.stores=null,f.memoCache!=null&&(f.memoCache.index=0)}$.H=pb,f=n(a,o)}while(uo);return f}function lA(){var e=$.H,n=e.useState()[0];return n=typeof n.then=="function"?ul(n):n,e=e.useState()[0],(yt!==null?yt.memoizedState:null)!==e&&(Ye.flags|=1024),n}function sd(){var e=Cs!==0;return Cs=0,e}function cd(e,n,a){n.updateQueue=e.updateQueue,n.flags&=-2053,e.lanes&=~a}function ud(e){if(Ns){for(e=e.memoizedState;e!==null;){var n=e.queue;n!==null&&(n.pending=null),e=e.next}Ns=!1}ha=0,Jt=yt=Ye=null,uo=!1,cl=Cs=0,fo=null}function qn(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Jt===null?Ye.memoizedState=Jt=e:Jt=Jt.next=e,Jt}function Kt(){if(yt===null){var e=Ye.alternate;e=e!==null?e.memoizedState:null}else e=yt.next;var n=Jt===null?Ye.memoizedState:Jt.next;if(n!==null)Jt=n,yt=e;else{if(e===null)throw Ye.alternate===null?Error(s(467)):Error(s(310));yt=e,e={memoizedState:yt.memoizedState,baseState:yt.baseState,baseQueue:yt.baseQueue,queue:yt.queue,next:null},Jt===null?Ye.memoizedState=Jt=e:Jt=Jt.next=e}return Jt}function Ms(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function ul(e){var n=cl;return cl+=1,fo===null&&(fo=[]),e=vg(fo,e,n),n=Ye,(Jt===null?n.memoizedState:Jt.next)===null&&(n=n.alternate,$.H=n===null||n.memoizedState===null?fb:_d),e}function Os(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return ul(e);if(e.$$typeof===F)return vn(e)}throw Error(s(438,String(e)))}function dd(e){var n=null,a=Ye.updateQueue;if(a!==null&&(n=a.memoCache),n==null){var o=Ye.alternate;o!==null&&(o=o.updateQueue,o!==null&&(o=o.memoCache,o!=null&&(n={data:o.data.map(function(u){return u.slice()}),index:0})))}if(n==null&&(n={data:[],index:0}),a===null&&(a=Ms(),Ye.updateQueue=a),a.memoCache=n,a=n.data[n.index],a===void 0)for(a=n.data[n.index]=Array(e),o=0;o<e;o++)a[o]=ue;return n.index++,a}function ga(e,n){return typeof n=="function"?n(e):n}function Rs(e){var n=Kt();return fd(n,yt,e)}function fd(e,n,a){var o=e.queue;if(o===null)throw Error(s(311));o.lastRenderedReducer=a;var u=e.baseQueue,f=o.pending;if(f!==null){if(u!==null){var y=u.next;u.next=f.next,f.next=y}n.baseQueue=u=f,o.pending=null}if(f=e.baseState,u===null)e.memoizedState=f;else{n=u.next;var _=y=null,M=null,j=n,X=!1;do{var te=j.lane&-536870913;if(te!==j.lane?(nt&te)===te:(ha&te)===te){var H=j.revertLane;if(H===0)M!==null&&(M=M.next={lane:0,revertLane:0,gesture:null,action:j.action,hasEagerState:j.hasEagerState,eagerState:j.eagerState,next:null}),te===ro&&(X=!0);else if((ha&H)===H){j=j.next,H===ro&&(X=!0);continue}else te={lane:0,revertLane:j.revertLane,gesture:null,action:j.action,hasEagerState:j.hasEagerState,eagerState:j.eagerState,next:null},M===null?(_=M=te,y=f):M=M.next=te,Ye.lanes|=H,Va|=H;te=j.action,Rr&&a(f,te),f=j.hasEagerState?j.eagerState:a(f,te)}else H={lane:te,revertLane:j.revertLane,gesture:j.gesture,action:j.action,hasEagerState:j.hasEagerState,eagerState:j.eagerState,next:null},M===null?(_=M=H,y=f):M=M.next=H,Ye.lanes|=te,Va|=te;j=j.next}while(j!==null&&j!==n);if(M===null?y=f:M.next=_,!oi(f,e.memoizedState)&&(en=!0,X&&(a=oo,a!==null)))throw a;e.memoizedState=f,e.baseState=y,e.baseQueue=M,o.lastRenderedState=f}return u===null&&(o.lanes=0),[e.memoizedState,o.dispatch]}function pd(e){var n=Kt(),a=n.queue;if(a===null)throw Error(s(311));a.lastRenderedReducer=e;var o=a.dispatch,u=a.pending,f=n.memoizedState;if(u!==null){a.pending=null;var y=u=u.next;do f=e(f,y.action),y=y.next;while(y!==u);oi(f,n.memoizedState)||(en=!0),n.memoizedState=f,n.baseQueue===null&&(n.baseState=f),a.lastRenderedState=f}return[f,o]}function Rg(e,n,a){var o=Ye,u=Kt(),f=at;if(f){if(a===void 0)throw Error(s(407));a=a()}else a=n();var y=!oi((yt||u).memoizedState,a);if(y&&(u.memoizedState=a,en=!0),u=u.queue,gd(Lg.bind(null,o,u,e),[e]),u.getSnapshot!==n||y||Jt!==null&&Jt.memoizedState.tag&1){if(o.flags|=2048,po(9,{destroy:void 0},zg.bind(null,o,u,a,n),null),St===null)throw Error(s(349));f||(ha&127)!==0||Dg(o,n,a)}return a}function Dg(e,n,a){e.flags|=16384,e={getSnapshot:n,value:a},n=Ye.updateQueue,n===null?(n=Ms(),Ye.updateQueue=n,n.stores=[e]):(a=n.stores,a===null?n.stores=[e]:a.push(e))}function zg(e,n,a,o){n.value=a,n.getSnapshot=o,Ig(n)&&Bg(e)}function Lg(e,n,a){return a(function(){Ig(n)&&Bg(e)})}function Ig(e){var n=e.getSnapshot;e=e.value;try{var a=n();return!oi(e,a)}catch{return!0}}function Bg(e){var n=Er(e,2);n!==null&&Xn(n,e,2)}function md(e){var n=qn();if(typeof e=="function"){var a=e;if(e=a(),Rr){Tt(!0);try{a()}finally{Tt(!1)}}}return n.memoizedState=n.baseState=e,n.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ga,lastRenderedState:e},n}function Ug(e,n,a,o){return e.baseState=a,fd(e,yt,typeof o=="function"?o:ga)}function sA(e,n,a,o,u){if(Ls(e))throw Error(s(485));if(e=n.action,e!==null){var f={payload:u,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(y){f.listeners.push(y)}};$.T!==null?a(!0):f.isTransition=!1,o(f),a=n.pending,a===null?(f.next=n.pending=f,qg(n,f)):(f.next=a.next,n.pending=a.next=f)}}function qg(e,n){var a=n.action,o=n.payload,u=e.state;if(n.isTransition){var f=$.T,y={};$.T=y;try{var _=a(u,o),M=$.S;M!==null&&M(y,_),jg(e,n,_)}catch(j){hd(e,n,j)}finally{f!==null&&y.types!==null&&(f.types=y.types),$.T=f}}else try{f=a(u,o),jg(e,n,f)}catch(j){hd(e,n,j)}}function jg(e,n,a){a!==null&&typeof a=="object"&&typeof a.then=="function"?a.then(function(o){Hg(e,n,o)},function(o){return hd(e,n,o)}):Hg(e,n,a)}function Hg(e,n,a){n.status="fulfilled",n.value=a,Fg(n),e.state=a,n=e.pending,n!==null&&(a=n.next,a===n?e.pending=null:(a=a.next,n.next=a,qg(e,a)))}function hd(e,n,a){var o=e.pending;if(e.pending=null,o!==null){o=o.next;do n.status="rejected",n.reason=a,Fg(n),n=n.next;while(n!==o)}e.action=null}function Fg(e){e=e.listeners;for(var n=0;n<e.length;n++)(0,e[n])()}function Pg(e,n){return n}function Gg(e,n){if(at){var a=St.formState;if(a!==null){e:{var o=Ye;if(at){if(Rt){t:{for(var u=Rt,f=Ei;u.nodeType!==8;){if(!f){u=null;break t}if(u=Si(u.nextSibling),u===null){u=null;break t}}f=u.data,u=f==="F!"||f==="F"?u:null}if(u){Rt=Si(u.nextSibling),o=u.data==="F!";break e}}Ba(o)}o=!1}o&&(n=a[0])}}return a=qn(),a.memoizedState=a.baseState=n,o={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Pg,lastRenderedState:n},a.queue=o,a=cb.bind(null,Ye,o),o.dispatch=a,o=md(!1),f=vd.bind(null,Ye,!1,o.queue),o=qn(),u={state:n,dispatch:null,action:e,pending:null},o.queue=u,a=sA.bind(null,Ye,u,f,a),u.dispatch=a,o.memoizedState=e,[n,a,!1]}function Yg(e){var n=Kt();return Vg(n,yt,e)}function Vg(e,n,a){if(n=fd(e,n,Pg)[0],e=Rs(ga)[0],typeof n=="object"&&n!==null&&typeof n.then=="function")try{var o=ul(n)}catch(y){throw y===lo?_s:y}else o=n;n=Kt();var u=n.queue,f=u.dispatch;return a!==n.memoizedState&&(Ye.flags|=2048,po(9,{destroy:void 0},cA.bind(null,u,a),null)),[o,f,e]}function cA(e,n){e.action=n}function $g(e){var n=Kt(),a=yt;if(a!==null)return Vg(n,a,e);Kt(),n=n.memoizedState,a=Kt();var o=a.queue.dispatch;return a.memoizedState=e,[n,o,!1]}function po(e,n,a,o){return e={tag:e,create:a,deps:o,inst:n,next:null},n=Ye.updateQueue,n===null&&(n=Ms(),Ye.updateQueue=n),a=n.lastEffect,a===null?n.lastEffect=e.next=e:(o=a.next,a.next=e,e.next=o,n.lastEffect=e),e}function Kg(){return Kt().memoizedState}function Ds(e,n,a,o){var u=qn();Ye.flags|=e,u.memoizedState=po(1|n,{destroy:void 0},a,o===void 0?null:o)}function zs(e,n,a,o){var u=Kt();o=o===void 0?null:o;var f=u.memoizedState.inst;yt!==null&&o!==null&&od(o,yt.memoizedState.deps)?u.memoizedState=po(n,f,a,o):(Ye.flags|=e,u.memoizedState=po(1|n,f,a,o))}function Zg(e,n){Ds(8390656,8,e,n)}function gd(e,n){zs(2048,8,e,n)}function uA(e){Ye.flags|=4;var n=Ye.updateQueue;if(n===null)n=Ms(),Ye.updateQueue=n,n.events=[e];else{var a=n.events;a===null?n.events=[e]:a.push(e)}}function Qg(e){var n=Kt().memoizedState;return uA({ref:n,nextImpl:e}),function(){if((ft&2)!==0)throw Error(s(440));return n.impl.apply(void 0,arguments)}}function Xg(e,n){return zs(4,2,e,n)}function Wg(e,n){return zs(4,4,e,n)}function Jg(e,n){if(typeof n=="function"){e=e();var a=n(e);return function(){typeof a=="function"?a():n(null)}}if(n!=null)return e=e(),n.current=e,function(){n.current=null}}function eb(e,n,a){a=a!=null?a.concat([e]):null,zs(4,4,Jg.bind(null,n,e),a)}function bd(){}function tb(e,n){var a=Kt();n=n===void 0?null:n;var o=a.memoizedState;return n!==null&&od(n,o[1])?o[0]:(a.memoizedState=[e,n],e)}function nb(e,n){var a=Kt();n=n===void 0?null:n;var o=a.memoizedState;if(n!==null&&od(n,o[1]))return o[0];if(o=e(),Rr){Tt(!0);try{e()}finally{Tt(!1)}}return a.memoizedState=[o,n],o}function yd(e,n,a){return a===void 0||(ha&1073741824)!==0&&(nt&261930)===0?e.memoizedState=n:(e.memoizedState=a,e=iy(),Ye.lanes|=e,Va|=e,a)}function ib(e,n,a,o){return oi(a,n)?a:co.current!==null?(e=yd(e,a,o),oi(e,n)||(en=!0),e):(ha&42)===0||(ha&1073741824)!==0&&(nt&261930)===0?(en=!0,e.memoizedState=a):(e=iy(),Ye.lanes|=e,Va|=e,n)}function ab(e,n,a,o,u){var f=Q.p;Q.p=f!==0&&8>f?f:8;var y=$.T,_={};$.T=_,vd(e,!1,n,a);try{var M=u(),j=$.S;if(j!==null&&j(_,M),M!==null&&typeof M=="object"&&typeof M.then=="function"){var X=rA(M,o);dl(e,n,X,fi(e))}else dl(e,n,o,fi(e))}catch(te){dl(e,n,{then:function(){},status:"rejected",reason:te},fi())}finally{Q.p=f,y!==null&&_.types!==null&&(y.types=_.types),$.T=y}}function dA(){}function kd(e,n,a,o){if(e.tag!==5)throw Error(s(476));var u=rb(e).queue;ab(e,u,n,ye,a===null?dA:function(){return ob(e),a(o)})}function rb(e){var n=e.memoizedState;if(n!==null)return n;n={memoizedState:ye,baseState:ye,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ga,lastRenderedState:ye},next:null};var a={};return n.next={memoizedState:a,baseState:a,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ga,lastRenderedState:a},next:null},e.memoizedState=n,e=e.alternate,e!==null&&(e.memoizedState=n),n}function ob(e){var n=rb(e);n.next===null&&(n=e.alternate.memoizedState),dl(e,n.next.queue,{},fi())}function xd(){return vn(Nl)}function lb(){return Kt().memoizedState}function sb(){return Kt().memoizedState}function fA(e){for(var n=e.return;n!==null;){switch(n.tag){case 24:case 3:var a=fi();e=ja(a);var o=Ha(n,e,a);o!==null&&(Xn(o,n,a),ol(o,n,a)),n={cache:Zu()},e.payload=n;return}n=n.return}}function pA(e,n,a){var o=fi();a={lane:o,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},Ls(e)?ub(n,a):(a=Uu(e,n,a,o),a!==null&&(Xn(a,e,o),db(a,n,o)))}function cb(e,n,a){var o=fi();dl(e,n,a,o)}function dl(e,n,a,o){var u={lane:o,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null};if(Ls(e))ub(n,u);else{var f=e.alternate;if(e.lanes===0&&(f===null||f.lanes===0)&&(f=n.lastRenderedReducer,f!==null))try{var y=n.lastRenderedState,_=f(y,a);if(u.hasEagerState=!0,u.eagerState=_,oi(_,y))return hs(e,n,u,0),St===null&&ms(),!1}catch{}if(a=Uu(e,n,u,o),a!==null)return Xn(a,e,o),db(a,n,o),!0}return!1}function vd(e,n,a,o){if(o={lane:2,revertLane:Jd(),gesture:null,action:o,hasEagerState:!1,eagerState:null,next:null},Ls(e)){if(n)throw Error(s(479))}else n=Uu(e,a,o,2),n!==null&&Xn(n,e,2)}function Ls(e){var n=e.alternate;return e===Ye||n!==null&&n===Ye}function ub(e,n){uo=Ns=!0;var a=e.pending;a===null?n.next=n:(n.next=a.next,a.next=n),e.pending=n}function db(e,n,a){if((a&4194048)!==0){var o=n.lanes;o&=e.pendingLanes,a|=o,n.lanes=a,Ct(e,a)}}var fl={readContext:vn,use:Os,useCallback:Pt,useContext:Pt,useEffect:Pt,useImperativeHandle:Pt,useLayoutEffect:Pt,useInsertionEffect:Pt,useMemo:Pt,useReducer:Pt,useRef:Pt,useState:Pt,useDebugValue:Pt,useDeferredValue:Pt,useTransition:Pt,useSyncExternalStore:Pt,useId:Pt,useHostTransitionStatus:Pt,useFormState:Pt,useActionState:Pt,useOptimistic:Pt,useMemoCache:Pt,useCacheRefresh:Pt};fl.useEffectEvent=Pt;var fb={readContext:vn,use:Os,useCallback:function(e,n){return qn().memoizedState=[e,n===void 0?null:n],e},useContext:vn,useEffect:Zg,useImperativeHandle:function(e,n,a){a=a!=null?a.concat([e]):null,Ds(4194308,4,Jg.bind(null,n,e),a)},useLayoutEffect:function(e,n){return Ds(4194308,4,e,n)},useInsertionEffect:function(e,n){Ds(4,2,e,n)},useMemo:function(e,n){var a=qn();n=n===void 0?null:n;var o=e();if(Rr){Tt(!0);try{e()}finally{Tt(!1)}}return a.memoizedState=[o,n],o},useReducer:function(e,n,a){var o=qn();if(a!==void 0){var u=a(n);if(Rr){Tt(!0);try{a(n)}finally{Tt(!1)}}}else u=n;return o.memoizedState=o.baseState=u,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:u},o.queue=e,e=e.dispatch=pA.bind(null,Ye,e),[o.memoizedState,e]},useRef:function(e){var n=qn();return e={current:e},n.memoizedState=e},useState:function(e){e=md(e);var n=e.queue,a=cb.bind(null,Ye,n);return n.dispatch=a,[e.memoizedState,a]},useDebugValue:bd,useDeferredValue:function(e,n){var a=qn();return yd(a,e,n)},useTransition:function(){var e=md(!1);return e=ab.bind(null,Ye,e.queue,!0,!1),qn().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,n,a){var o=Ye,u=qn();if(at){if(a===void 0)throw Error(s(407));a=a()}else{if(a=n(),St===null)throw Error(s(349));(nt&127)!==0||Dg(o,n,a)}u.memoizedState=a;var f={value:a,getSnapshot:n};return u.queue=f,Zg(Lg.bind(null,o,f,e),[e]),o.flags|=2048,po(9,{destroy:void 0},zg.bind(null,o,f,a,n),null),a},useId:function(){var e=qn(),n=St.identifierPrefix;if(at){var a=Wi,o=Xi;a=(o&~(1<<32-Nt(o)-1)).toString(32)+a,n="_"+n+"R_"+a,a=Cs++,0<a&&(n+="H"+a.toString(32)),n+="_"}else a=oA++,n="_"+n+"r_"+a.toString(32)+"_";return e.memoizedState=n},useHostTransitionStatus:xd,useFormState:Gg,useActionState:Gg,useOptimistic:function(e){var n=qn();n.memoizedState=n.baseState=e;var a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return n.queue=a,n=vd.bind(null,Ye,!0,a),a.dispatch=n,[e,n]},useMemoCache:dd,useCacheRefresh:function(){return qn().memoizedState=fA.bind(null,Ye)},useEffectEvent:function(e){var n=qn(),a={impl:e};return n.memoizedState=a,function(){if((ft&2)!==0)throw Error(s(440));return a.impl.apply(void 0,arguments)}}},_d={readContext:vn,use:Os,useCallback:tb,useContext:vn,useEffect:gd,useImperativeHandle:eb,useInsertionEffect:Xg,useLayoutEffect:Wg,useMemo:nb,useReducer:Rs,useRef:Kg,useState:function(){return Rs(ga)},useDebugValue:bd,useDeferredValue:function(e,n){var a=Kt();return ib(a,yt.memoizedState,e,n)},useTransition:function(){var e=Rs(ga)[0],n=Kt().memoizedState;return[typeof e=="boolean"?e:ul(e),n]},useSyncExternalStore:Rg,useId:lb,useHostTransitionStatus:xd,useFormState:Yg,useActionState:Yg,useOptimistic:function(e,n){var a=Kt();return Ug(a,yt,e,n)},useMemoCache:dd,useCacheRefresh:sb};_d.useEffectEvent=Qg;var pb={readContext:vn,use:Os,useCallback:tb,useContext:vn,useEffect:gd,useImperativeHandle:eb,useInsertionEffect:Xg,useLayoutEffect:Wg,useMemo:nb,useReducer:pd,useRef:Kg,useState:function(){return pd(ga)},useDebugValue:bd,useDeferredValue:function(e,n){var a=Kt();return yt===null?yd(a,e,n):ib(a,yt.memoizedState,e,n)},useTransition:function(){var e=pd(ga)[0],n=Kt().memoizedState;return[typeof e=="boolean"?e:ul(e),n]},useSyncExternalStore:Rg,useId:lb,useHostTransitionStatus:xd,useFormState:$g,useActionState:$g,useOptimistic:function(e,n){var a=Kt();return yt!==null?Ug(a,yt,e,n):(a.baseState=e,[e,a.queue.dispatch])},useMemoCache:dd,useCacheRefresh:sb};pb.useEffectEvent=Qg;function Ed(e,n,a,o){n=e.memoizedState,a=a(o,n),a=a==null?n:k({},n,a),e.memoizedState=a,e.lanes===0&&(e.updateQueue.baseState=a)}var wd={enqueueSetState:function(e,n,a){e=e._reactInternals;var o=fi(),u=ja(o);u.payload=n,a!=null&&(u.callback=a),n=Ha(e,u,o),n!==null&&(Xn(n,e,o),ol(n,e,o))},enqueueReplaceState:function(e,n,a){e=e._reactInternals;var o=fi(),u=ja(o);u.tag=1,u.payload=n,a!=null&&(u.callback=a),n=Ha(e,u,o),n!==null&&(Xn(n,e,o),ol(n,e,o))},enqueueForceUpdate:function(e,n){e=e._reactInternals;var a=fi(),o=ja(a);o.tag=2,n!=null&&(o.callback=n),n=Ha(e,o,a),n!==null&&(Xn(n,e,a),ol(n,e,a))}};function mb(e,n,a,o,u,f,y){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(o,f,y):n.prototype&&n.prototype.isPureReactComponent?!Wo(a,o)||!Wo(u,f):!0}function hb(e,n,a,o){e=n.state,typeof n.componentWillReceiveProps=="function"&&n.componentWillReceiveProps(a,o),typeof n.UNSAFE_componentWillReceiveProps=="function"&&n.UNSAFE_componentWillReceiveProps(a,o),n.state!==e&&wd.enqueueReplaceState(n,n.state,null)}function Dr(e,n){var a=n;if("ref"in n){a={};for(var o in n)o!=="ref"&&(a[o]=n[o])}if(e=e.defaultProps){a===n&&(a=k({},a));for(var u in e)a[u]===void 0&&(a[u]=e[u])}return a}function gb(e){ps(e)}function bb(e){console.error(e)}function yb(e){ps(e)}function Is(e,n){try{var a=e.onUncaughtError;a(n.value,{componentStack:n.stack})}catch(o){setTimeout(function(){throw o})}}function kb(e,n,a){try{var o=e.onCaughtError;o(a.value,{componentStack:a.stack,errorBoundary:n.tag===1?n.stateNode:null})}catch(u){setTimeout(function(){throw u})}}function Sd(e,n,a){return a=ja(a),a.tag=3,a.payload={element:null},a.callback=function(){Is(e,n)},a}function xb(e){return e=ja(e),e.tag=3,e}function vb(e,n,a,o){var u=a.type.getDerivedStateFromError;if(typeof u=="function"){var f=o.value;e.payload=function(){return u(f)},e.callback=function(){kb(n,a,o)}}var y=a.stateNode;y!==null&&typeof y.componentDidCatch=="function"&&(e.callback=function(){kb(n,a,o),typeof u!="function"&&($a===null?$a=new Set([this]):$a.add(this));var _=o.stack;this.componentDidCatch(o.value,{componentStack:_!==null?_:""})})}function mA(e,n,a,o,u){if(a.flags|=32768,o!==null&&typeof o=="object"&&typeof o.then=="function"){if(n=a.alternate,n!==null&&ao(n,a,u,!0),a=si.current,a!==null){switch(a.tag){case 31:case 13:return wi===null?Ks():a.alternate===null&&Gt===0&&(Gt=3),a.flags&=-257,a.flags|=65536,a.lanes=u,o===Es?a.flags|=16384:(n=a.updateQueue,n===null?a.updateQueue=new Set([o]):n.add(o),Qd(e,o,u)),!1;case 22:return a.flags|=65536,o===Es?a.flags|=16384:(n=a.updateQueue,n===null?(n={transitions:null,markerInstances:null,retryQueue:new Set([o])},a.updateQueue=n):(a=n.retryQueue,a===null?n.retryQueue=new Set([o]):a.add(o)),Qd(e,o,u)),!1}throw Error(s(435,a.tag))}return Qd(e,o,u),Ks(),!1}if(at)return n=si.current,n!==null?((n.flags&65536)===0&&(n.flags|=256),n.flags|=65536,n.lanes=u,o!==Gu&&(e=Error(s(422),{cause:o}),tl(xi(e,a)))):(o!==Gu&&(n=Error(s(423),{cause:o}),tl(xi(n,a))),e=e.current.alternate,e.flags|=65536,u&=-u,e.lanes|=u,o=xi(o,a),u=Sd(e.stateNode,o,u),td(e,u),Gt!==4&&(Gt=2)),!1;var f=Error(s(520),{cause:o});if(f=xi(f,a),xl===null?xl=[f]:xl.push(f),Gt!==4&&(Gt=2),n===null)return!0;o=xi(o,a),a=n;do{switch(a.tag){case 3:return a.flags|=65536,e=u&-u,a.lanes|=e,e=Sd(a.stateNode,o,e),td(a,e),!1;case 1:if(n=a.type,f=a.stateNode,(a.flags&128)===0&&(typeof n.getDerivedStateFromError=="function"||f!==null&&typeof f.componentDidCatch=="function"&&($a===null||!$a.has(f))))return a.flags|=65536,u&=-u,a.lanes|=u,u=xb(u),vb(u,e,a,o),td(a,u),!1}a=a.return}while(a!==null);return!1}var Td=Error(s(461)),en=!1;function _n(e,n,a,o){n.child=e===null?Sg(n,null,a,o):Or(n,e.child,a,o)}function _b(e,n,a,o,u){a=a.render;var f=n.ref;if("ref"in o){var y={};for(var _ in o)_!=="ref"&&(y[_]=o[_])}else y=o;return Ar(n),o=ld(e,n,a,y,f,u),_=sd(),e!==null&&!en?(cd(e,n,u),ba(e,n,u)):(at&&_&&Fu(n),n.flags|=1,_n(e,n,o,u),n.child)}function Eb(e,n,a,o,u){if(e===null){var f=a.type;return typeof f=="function"&&!qu(f)&&f.defaultProps===void 0&&a.compare===null?(n.tag=15,n.type=f,wb(e,n,f,o,u)):(e=bs(a.type,null,o,n,n.mode,u),e.ref=n.ref,e.return=n,n.child=e)}if(f=e.child,!zd(e,u)){var y=f.memoizedProps;if(a=a.compare,a=a!==null?a:Wo,a(y,o)&&e.ref===n.ref)return ba(e,n,u)}return n.flags|=1,e=da(f,o),e.ref=n.ref,e.return=n,n.child=e}function wb(e,n,a,o,u){if(e!==null){var f=e.memoizedProps;if(Wo(f,o)&&e.ref===n.ref)if(en=!1,n.pendingProps=o=f,zd(e,u))(e.flags&131072)!==0&&(en=!0);else return n.lanes=e.lanes,ba(e,n,u)}return Ad(e,n,a,o,u)}function Sb(e,n,a,o){var u=o.children,f=e!==null?e.memoizedState:null;if(e===null&&n.stateNode===null&&(n.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),o.mode==="hidden"){if((n.flags&128)!==0){if(f=f!==null?f.baseLanes|a:a,e!==null){for(o=n.child=e.child,u=0;o!==null;)u=u|o.lanes|o.childLanes,o=o.sibling;o=u&~f}else o=0,n.child=null;return Tb(e,n,f,a,o)}if((a&536870912)!==0)n.memoizedState={baseLanes:0,cachePool:null},e!==null&&vs(n,f!==null?f.cachePool:null),f!==null?Ng(n,f):id(),Cg(n);else return o=n.lanes=536870912,Tb(e,n,f!==null?f.baseLanes|a:a,a,o)}else f!==null?(vs(n,f.cachePool),Ng(n,f),Pa(),n.memoizedState=null):(e!==null&&vs(n,null),id(),Pa());return _n(e,n,u,a),n.child}function pl(e,n){return e!==null&&e.tag===22||n.stateNode!==null||(n.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),n.sibling}function Tb(e,n,a,o,u){var f=Xu();return f=f===null?null:{parent:Wt._currentValue,pool:f},n.memoizedState={baseLanes:a,cachePool:f},e!==null&&vs(n,null),id(),Cg(n),e!==null&&ao(e,n,o,!0),n.childLanes=u,null}function Bs(e,n){return n=qs({mode:n.mode,children:n.children},e.mode),n.ref=e.ref,e.child=n,n.return=e,n}function Ab(e,n,a){return Or(n,e.child,null,a),e=Bs(n,n.pendingProps),e.flags|=2,ci(n),n.memoizedState=null,e}function hA(e,n,a){var o=n.pendingProps,u=(n.flags&128)!==0;if(n.flags&=-129,e===null){if(at){if(o.mode==="hidden")return e=Bs(n,o),n.lanes=536870912,pl(null,e);if(rd(n),(e=Rt)?(e=qy(e,Ei),e=e!==null&&e.data==="&"?e:null,e!==null&&(n.memoizedState={dehydrated:e,treeContext:La!==null?{id:Xi,overflow:Wi}:null,retryLane:536870912,hydrationErrors:null},a=ug(e),a.return=n,n.child=a,xn=n,Rt=null)):e=null,e===null)throw Ba(n);return n.lanes=536870912,null}return Bs(n,o)}var f=e.memoizedState;if(f!==null){var y=f.dehydrated;if(rd(n),u)if(n.flags&256)n.flags&=-257,n=Ab(e,n,a);else if(n.memoizedState!==null)n.child=e.child,n.flags|=128,n=null;else throw Error(s(558));else if(en||ao(e,n,a,!1),u=(a&e.childLanes)!==0,en||u){if(o=St,o!==null&&(y=Je(o,a),y!==0&&y!==f.retryLane))throw f.retryLane=y,Er(e,y),Xn(o,e,y),Td;Ks(),n=Ab(e,n,a)}else e=f.treeContext,Rt=Si(y.nextSibling),xn=n,at=!0,Ia=null,Ei=!1,e!==null&&pg(n,e),n=Bs(n,o),n.flags|=4096;return n}return e=da(e.child,{mode:o.mode,children:o.children}),e.ref=n.ref,n.child=e,e.return=n,e}function Us(e,n){var a=n.ref;if(a===null)e!==null&&e.ref!==null&&(n.flags|=4194816);else{if(typeof a!="function"&&typeof a!="object")throw Error(s(284));(e===null||e.ref!==a)&&(n.flags|=4194816)}}function Ad(e,n,a,o,u){return Ar(n),a=ld(e,n,a,o,void 0,u),o=sd(),e!==null&&!en?(cd(e,n,u),ba(e,n,u)):(at&&o&&Fu(n),n.flags|=1,_n(e,n,a,u),n.child)}function Nb(e,n,a,o,u,f){return Ar(n),n.updateQueue=null,a=Og(n,o,a,u),Mg(e),o=sd(),e!==null&&!en?(cd(e,n,f),ba(e,n,f)):(at&&o&&Fu(n),n.flags|=1,_n(e,n,a,f),n.child)}function Cb(e,n,a,o,u){if(Ar(n),n.stateNode===null){var f=eo,y=a.contextType;typeof y=="object"&&y!==null&&(f=vn(y)),f=new a(o,f),n.memoizedState=f.state!==null&&f.state!==void 0?f.state:null,f.updater=wd,n.stateNode=f,f._reactInternals=n,f=n.stateNode,f.props=o,f.state=n.memoizedState,f.refs={},Ju(n),y=a.contextType,f.context=typeof y=="object"&&y!==null?vn(y):eo,f.state=n.memoizedState,y=a.getDerivedStateFromProps,typeof y=="function"&&(Ed(n,a,y,o),f.state=n.memoizedState),typeof a.getDerivedStateFromProps=="function"||typeof f.getSnapshotBeforeUpdate=="function"||typeof f.UNSAFE_componentWillMount!="function"&&typeof f.componentWillMount!="function"||(y=f.state,typeof f.componentWillMount=="function"&&f.componentWillMount(),typeof f.UNSAFE_componentWillMount=="function"&&f.UNSAFE_componentWillMount(),y!==f.state&&wd.enqueueReplaceState(f,f.state,null),sl(n,o,f,u),ll(),f.state=n.memoizedState),typeof f.componentDidMount=="function"&&(n.flags|=4194308),o=!0}else if(e===null){f=n.stateNode;var _=n.memoizedProps,M=Dr(a,_);f.props=M;var j=f.context,X=a.contextType;y=eo,typeof X=="object"&&X!==null&&(y=vn(X));var te=a.getDerivedStateFromProps;X=typeof te=="function"||typeof f.getSnapshotBeforeUpdate=="function",_=n.pendingProps!==_,X||typeof f.UNSAFE_componentWillReceiveProps!="function"&&typeof f.componentWillReceiveProps!="function"||(_||j!==y)&&hb(n,f,o,y),qa=!1;var H=n.memoizedState;f.state=H,sl(n,o,f,u),ll(),j=n.memoizedState,_||H!==j||qa?(typeof te=="function"&&(Ed(n,a,te,o),j=n.memoizedState),(M=qa||mb(n,a,M,o,H,j,y))?(X||typeof f.UNSAFE_componentWillMount!="function"&&typeof f.componentWillMount!="function"||(typeof f.componentWillMount=="function"&&f.componentWillMount(),typeof f.UNSAFE_componentWillMount=="function"&&f.UNSAFE_componentWillMount()),typeof f.componentDidMount=="function"&&(n.flags|=4194308)):(typeof f.componentDidMount=="function"&&(n.flags|=4194308),n.memoizedProps=o,n.memoizedState=j),f.props=o,f.state=j,f.context=y,o=M):(typeof f.componentDidMount=="function"&&(n.flags|=4194308),o=!1)}else{f=n.stateNode,ed(e,n),y=n.memoizedProps,X=Dr(a,y),f.props=X,te=n.pendingProps,H=f.context,j=a.contextType,M=eo,typeof j=="object"&&j!==null&&(M=vn(j)),_=a.getDerivedStateFromProps,(j=typeof _=="function"||typeof f.getSnapshotBeforeUpdate=="function")||typeof f.UNSAFE_componentWillReceiveProps!="function"&&typeof f.componentWillReceiveProps!="function"||(y!==te||H!==M)&&hb(n,f,o,M),qa=!1,H=n.memoizedState,f.state=H,sl(n,o,f,u),ll();var P=n.memoizedState;y!==te||H!==P||qa||e!==null&&e.dependencies!==null&&ks(e.dependencies)?(typeof _=="function"&&(Ed(n,a,_,o),P=n.memoizedState),(X=qa||mb(n,a,X,o,H,P,M)||e!==null&&e.dependencies!==null&&ks(e.dependencies))?(j||typeof f.UNSAFE_componentWillUpdate!="function"&&typeof f.componentWillUpdate!="function"||(typeof f.componentWillUpdate=="function"&&f.componentWillUpdate(o,P,M),typeof f.UNSAFE_componentWillUpdate=="function"&&f.UNSAFE_componentWillUpdate(o,P,M)),typeof f.componentDidUpdate=="function"&&(n.flags|=4),typeof f.getSnapshotBeforeUpdate=="function"&&(n.flags|=1024)):(typeof f.componentDidUpdate!="function"||y===e.memoizedProps&&H===e.memoizedState||(n.flags|=4),typeof f.getSnapshotBeforeUpdate!="function"||y===e.memoizedProps&&H===e.memoizedState||(n.flags|=1024),n.memoizedProps=o,n.memoizedState=P),f.props=o,f.state=P,f.context=M,o=X):(typeof f.componentDidUpdate!="function"||y===e.memoizedProps&&H===e.memoizedState||(n.flags|=4),typeof f.getSnapshotBeforeUpdate!="function"||y===e.memoizedProps&&H===e.memoizedState||(n.flags|=1024),o=!1)}return f=o,Us(e,n),o=(n.flags&128)!==0,f||o?(f=n.stateNode,a=o&&typeof a.getDerivedStateFromError!="function"?null:f.render(),n.flags|=1,e!==null&&o?(n.child=Or(n,e.child,null,u),n.child=Or(n,null,a,u)):_n(e,n,a,u),n.memoizedState=f.state,e=n.child):e=ba(e,n,u),e}function Mb(e,n,a,o){return Sr(),n.flags|=256,_n(e,n,a,o),n.child}var Nd={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Cd(e){return{baseLanes:e,cachePool:kg()}}function Md(e,n,a){return e=e!==null?e.childLanes&~a:0,n&&(e|=di),e}function Ob(e,n,a){var o=n.pendingProps,u=!1,f=(n.flags&128)!==0,y;if((y=f)||(y=e!==null&&e.memoizedState===null?!1:($t.current&2)!==0),y&&(u=!0,n.flags&=-129),y=(n.flags&32)!==0,n.flags&=-33,e===null){if(at){if(u?Fa(n):Pa(),(e=Rt)?(e=qy(e,Ei),e=e!==null&&e.data!=="&"?e:null,e!==null&&(n.memoizedState={dehydrated:e,treeContext:La!==null?{id:Xi,overflow:Wi}:null,retryLane:536870912,hydrationErrors:null},a=ug(e),a.return=n,n.child=a,xn=n,Rt=null)):e=null,e===null)throw Ba(n);return pf(e)?n.lanes=32:n.lanes=536870912,null}var _=o.children;return o=o.fallback,u?(Pa(),u=n.mode,_=qs({mode:"hidden",children:_},u),o=wr(o,u,a,null),_.return=n,o.return=n,_.sibling=o,n.child=_,o=n.child,o.memoizedState=Cd(a),o.childLanes=Md(e,y,a),n.memoizedState=Nd,pl(null,o)):(Fa(n),Od(n,_))}var M=e.memoizedState;if(M!==null&&(_=M.dehydrated,_!==null)){if(f)n.flags&256?(Fa(n),n.flags&=-257,n=Rd(e,n,a)):n.memoizedState!==null?(Pa(),n.child=e.child,n.flags|=128,n=null):(Pa(),_=o.fallback,u=n.mode,o=qs({mode:"visible",children:o.children},u),_=wr(_,u,a,null),_.flags|=2,o.return=n,_.return=n,o.sibling=_,n.child=o,Or(n,e.child,null,a),o=n.child,o.memoizedState=Cd(a),o.childLanes=Md(e,y,a),n.memoizedState=Nd,n=pl(null,o));else if(Fa(n),pf(_)){if(y=_.nextSibling&&_.nextSibling.dataset,y)var j=y.dgst;y=j,o=Error(s(419)),o.stack="",o.digest=y,tl({value:o,source:null,stack:null}),n=Rd(e,n,a)}else if(en||ao(e,n,a,!1),y=(a&e.childLanes)!==0,en||y){if(y=St,y!==null&&(o=Je(y,a),o!==0&&o!==M.retryLane))throw M.retryLane=o,Er(e,o),Xn(y,e,o),Td;ff(_)||Ks(),n=Rd(e,n,a)}else ff(_)?(n.flags|=192,n.child=e.child,n=null):(e=M.treeContext,Rt=Si(_.nextSibling),xn=n,at=!0,Ia=null,Ei=!1,e!==null&&pg(n,e),n=Od(n,o.children),n.flags|=4096);return n}return u?(Pa(),_=o.fallback,u=n.mode,M=e.child,j=M.sibling,o=da(M,{mode:"hidden",children:o.children}),o.subtreeFlags=M.subtreeFlags&65011712,j!==null?_=da(j,_):(_=wr(_,u,a,null),_.flags|=2),_.return=n,o.return=n,o.sibling=_,n.child=o,pl(null,o),o=n.child,_=e.child.memoizedState,_===null?_=Cd(a):(u=_.cachePool,u!==null?(M=Wt._currentValue,u=u.parent!==M?{parent:M,pool:M}:u):u=kg(),_={baseLanes:_.baseLanes|a,cachePool:u}),o.memoizedState=_,o.childLanes=Md(e,y,a),n.memoizedState=Nd,pl(e.child,o)):(Fa(n),a=e.child,e=a.sibling,a=da(a,{mode:"visible",children:o.children}),a.return=n,a.sibling=null,e!==null&&(y=n.deletions,y===null?(n.deletions=[e],n.flags|=16):y.push(e)),n.child=a,n.memoizedState=null,a)}function Od(e,n){return n=qs({mode:"visible",children:n},e.mode),n.return=e,e.child=n}function qs(e,n){return e=li(22,e,null,n),e.lanes=0,e}function Rd(e,n,a){return Or(n,e.child,null,a),e=Od(n,n.pendingProps.children),e.flags|=2,n.memoizedState=null,e}function Rb(e,n,a){e.lanes|=n;var o=e.alternate;o!==null&&(o.lanes|=n),$u(e.return,n,a)}function Dd(e,n,a,o,u,f){var y=e.memoizedState;y===null?e.memoizedState={isBackwards:n,rendering:null,renderingStartTime:0,last:o,tail:a,tailMode:u,treeForkCount:f}:(y.isBackwards=n,y.rendering=null,y.renderingStartTime=0,y.last=o,y.tail=a,y.tailMode=u,y.treeForkCount=f)}function Db(e,n,a){var o=n.pendingProps,u=o.revealOrder,f=o.tail;o=o.children;var y=$t.current,_=(y&2)!==0;if(_?(y=y&1|2,n.flags|=128):y&=1,ie($t,y),_n(e,n,o,a),o=at?el:0,!_&&e!==null&&(e.flags&128)!==0)e:for(e=n.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Rb(e,a,n);else if(e.tag===19)Rb(e,a,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}switch(u){case"forwards":for(a=n.child,u=null;a!==null;)e=a.alternate,e!==null&&As(e)===null&&(u=a),a=a.sibling;a=u,a===null?(u=n.child,n.child=null):(u=a.sibling,a.sibling=null),Dd(n,!1,u,a,f,o);break;case"backwards":case"unstable_legacy-backwards":for(a=null,u=n.child,n.child=null;u!==null;){if(e=u.alternate,e!==null&&As(e)===null){n.child=u;break}e=u.sibling,u.sibling=a,a=u,u=e}Dd(n,!0,a,null,f,o);break;case"together":Dd(n,!1,null,null,void 0,o);break;default:n.memoizedState=null}return n.child}function ba(e,n,a){if(e!==null&&(n.dependencies=e.dependencies),Va|=n.lanes,(a&n.childLanes)===0)if(e!==null){if(ao(e,n,a,!1),(a&n.childLanes)===0)return null}else return null;if(e!==null&&n.child!==e.child)throw Error(s(153));if(n.child!==null){for(e=n.child,a=da(e,e.pendingProps),n.child=a,a.return=n;e.sibling!==null;)e=e.sibling,a=a.sibling=da(e,e.pendingProps),a.return=n;a.sibling=null}return n.child}function zd(e,n){return(e.lanes&n)!==0?!0:(e=e.dependencies,!!(e!==null&&ks(e)))}function gA(e,n,a){switch(n.tag){case 3:qe(n,n.stateNode.containerInfo),Ua(n,Wt,e.memoizedState.cache),Sr();break;case 27:case 5:nn(n);break;case 4:qe(n,n.stateNode.containerInfo);break;case 10:Ua(n,n.type,n.memoizedProps.value);break;case 31:if(n.memoizedState!==null)return n.flags|=128,rd(n),null;break;case 13:var o=n.memoizedState;if(o!==null)return o.dehydrated!==null?(Fa(n),n.flags|=128,null):(a&n.child.childLanes)!==0?Ob(e,n,a):(Fa(n),e=ba(e,n,a),e!==null?e.sibling:null);Fa(n);break;case 19:var u=(e.flags&128)!==0;if(o=(a&n.childLanes)!==0,o||(ao(e,n,a,!1),o=(a&n.childLanes)!==0),u){if(o)return Db(e,n,a);n.flags|=128}if(u=n.memoizedState,u!==null&&(u.rendering=null,u.tail=null,u.lastEffect=null),ie($t,$t.current),o)break;return null;case 22:return n.lanes=0,Sb(e,n,a,n.pendingProps);case 24:Ua(n,Wt,e.memoizedState.cache)}return ba(e,n,a)}function zb(e,n,a){if(e!==null)if(e.memoizedProps!==n.pendingProps)en=!0;else{if(!zd(e,a)&&(n.flags&128)===0)return en=!1,gA(e,n,a);en=(e.flags&131072)!==0}else en=!1,at&&(n.flags&1048576)!==0&&fg(n,el,n.index);switch(n.lanes=0,n.tag){case 16:e:{var o=n.pendingProps;if(e=Cr(n.elementType),n.type=e,typeof e=="function")qu(e)?(o=Dr(e,o),n.tag=1,n=Cb(null,n,e,o,a)):(n.tag=0,n=Ad(null,n,e,o,a));else{if(e!=null){var u=e.$$typeof;if(u===Y){n.tag=11,n=_b(null,n,e,o,a);break e}else if(u===ae){n.tag=14,n=Eb(null,n,e,o,a);break e}}throw n=ne(e)||e,Error(s(306,n,""))}}return n;case 0:return Ad(e,n,n.type,n.pendingProps,a);case 1:return o=n.type,u=Dr(o,n.pendingProps),Cb(e,n,o,u,a);case 3:e:{if(qe(n,n.stateNode.containerInfo),e===null)throw Error(s(387));o=n.pendingProps;var f=n.memoizedState;u=f.element,ed(e,n),sl(n,o,null,a);var y=n.memoizedState;if(o=y.cache,Ua(n,Wt,o),o!==f.cache&&Ku(n,[Wt],a,!0),ll(),o=y.element,f.isDehydrated)if(f={element:o,isDehydrated:!1,cache:y.cache},n.updateQueue.baseState=f,n.memoizedState=f,n.flags&256){n=Mb(e,n,o,a);break e}else if(o!==u){u=xi(Error(s(424)),n),tl(u),n=Mb(e,n,o,a);break e}else for(e=n.stateNode.containerInfo,e.nodeType===9?e=e.body:e=e.nodeName==="HTML"?e.ownerDocument.body:e,Rt=Si(e.firstChild),xn=n,at=!0,Ia=null,Ei=!0,a=Sg(n,null,o,a),n.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling;else{if(Sr(),o===u){n=ba(e,n,a);break e}_n(e,n,o,a)}n=n.child}return n;case 26:return Us(e,n),e===null?(a=Yy(n.type,null,n.pendingProps,null))?n.memoizedState=a:at||(a=n.type,e=n.pendingProps,o=tc(W.current).createElement(a),o[zt]=n,o[ln]=e,En(o,a,e),Lt(o),n.stateNode=o):n.memoizedState=Yy(n.type,e.memoizedProps,n.pendingProps,e.memoizedState),null;case 27:return nn(n),e===null&&at&&(o=n.stateNode=Fy(n.type,n.pendingProps,W.current),xn=n,Ei=!0,u=Rt,Xa(n.type)?(mf=u,Rt=Si(o.firstChild)):Rt=u),_n(e,n,n.pendingProps.children,a),Us(e,n),e===null&&(n.flags|=4194304),n.child;case 5:return e===null&&at&&((u=o=Rt)&&(o=VA(o,n.type,n.pendingProps,Ei),o!==null?(n.stateNode=o,xn=n,Rt=Si(o.firstChild),Ei=!1,u=!0):u=!1),u||Ba(n)),nn(n),u=n.type,f=n.pendingProps,y=e!==null?e.memoizedProps:null,o=f.children,cf(u,f)?o=null:y!==null&&cf(u,y)&&(n.flags|=32),n.memoizedState!==null&&(u=ld(e,n,lA,null,null,a),Nl._currentValue=u),Us(e,n),_n(e,n,o,a),n.child;case 6:return e===null&&at&&((e=a=Rt)&&(a=$A(a,n.pendingProps,Ei),a!==null?(n.stateNode=a,xn=n,Rt=null,e=!0):e=!1),e||Ba(n)),null;case 13:return Ob(e,n,a);case 4:return qe(n,n.stateNode.containerInfo),o=n.pendingProps,e===null?n.child=Or(n,null,o,a):_n(e,n,o,a),n.child;case 11:return _b(e,n,n.type,n.pendingProps,a);case 7:return _n(e,n,n.pendingProps,a),n.child;case 8:return _n(e,n,n.pendingProps.children,a),n.child;case 12:return _n(e,n,n.pendingProps.children,a),n.child;case 10:return o=n.pendingProps,Ua(n,n.type,o.value),_n(e,n,o.children,a),n.child;case 9:return u=n.type._context,o=n.pendingProps.children,Ar(n),u=vn(u),o=o(u),n.flags|=1,_n(e,n,o,a),n.child;case 14:return Eb(e,n,n.type,n.pendingProps,a);case 15:return wb(e,n,n.type,n.pendingProps,a);case 19:return Db(e,n,a);case 31:return hA(e,n,a);case 22:return Sb(e,n,a,n.pendingProps);case 24:return Ar(n),o=vn(Wt),e===null?(u=Xu(),u===null&&(u=St,f=Zu(),u.pooledCache=f,f.refCount++,f!==null&&(u.pooledCacheLanes|=a),u=f),n.memoizedState={parent:o,cache:u},Ju(n),Ua(n,Wt,u)):((e.lanes&a)!==0&&(ed(e,n),sl(n,null,null,a),ll()),u=e.memoizedState,f=n.memoizedState,u.parent!==o?(u={parent:o,cache:o},n.memoizedState=u,n.lanes===0&&(n.memoizedState=n.updateQueue.baseState=u),Ua(n,Wt,o)):(o=f.cache,Ua(n,Wt,o),o!==u.cache&&Ku(n,[Wt],a,!0))),_n(e,n,n.pendingProps.children,a),n.child;case 29:throw n.pendingProps}throw Error(s(156,n.tag))}function ya(e){e.flags|=4}function Ld(e,n,a,o,u){if((n=(e.mode&32)!==0)&&(n=!1),n){if(e.flags|=16777216,(u&335544128)===u)if(e.stateNode.complete)e.flags|=8192;else if(ly())e.flags|=8192;else throw Mr=Es,Wu}else e.flags&=-16777217}function Lb(e,n){if(n.type!=="stylesheet"||(n.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!Qy(n))if(ly())e.flags|=8192;else throw Mr=Es,Wu}function js(e,n){n!==null&&(e.flags|=4),e.flags&16384&&(n=e.tag!==22?Ze():536870912,e.lanes|=n,bo|=n)}function ml(e,n){if(!at)switch(e.tailMode){case"hidden":n=e.tail;for(var a=null;n!==null;)n.alternate!==null&&(a=n),n=n.sibling;a===null?e.tail=null:a.sibling=null;break;case"collapsed":a=e.tail;for(var o=null;a!==null;)a.alternate!==null&&(o=a),a=a.sibling;o===null?n||e.tail===null?e.tail=null:e.tail.sibling=null:o.sibling=null}}function Dt(e){var n=e.alternate!==null&&e.alternate.child===e.child,a=0,o=0;if(n)for(var u=e.child;u!==null;)a|=u.lanes|u.childLanes,o|=u.subtreeFlags&65011712,o|=u.flags&65011712,u.return=e,u=u.sibling;else for(u=e.child;u!==null;)a|=u.lanes|u.childLanes,o|=u.subtreeFlags,o|=u.flags,u.return=e,u=u.sibling;return e.subtreeFlags|=o,e.childLanes=a,n}function bA(e,n,a){var o=n.pendingProps;switch(Pu(n),n.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Dt(n),null;case 1:return Dt(n),null;case 3:return a=n.stateNode,o=null,e!==null&&(o=e.memoizedState.cache),n.memoizedState.cache!==o&&(n.flags|=2048),ma(Wt),Fe(),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),(e===null||e.child===null)&&(io(n)?ya(n):e===null||e.memoizedState.isDehydrated&&(n.flags&256)===0||(n.flags|=1024,Yu())),Dt(n),null;case 26:var u=n.type,f=n.memoizedState;return e===null?(ya(n),f!==null?(Dt(n),Lb(n,f)):(Dt(n),Ld(n,u,null,o,a))):f?f!==e.memoizedState?(ya(n),Dt(n),Lb(n,f)):(Dt(n),n.flags&=-16777217):(e=e.memoizedProps,e!==o&&ya(n),Dt(n),Ld(n,u,e,o,a)),null;case 27:if(At(n),a=W.current,u=n.type,e!==null&&n.stateNode!=null)e.memoizedProps!==o&&ya(n);else{if(!o){if(n.stateNode===null)throw Error(s(166));return Dt(n),null}e=ge.current,io(n)?mg(n):(e=Fy(u,o,a),n.stateNode=e,ya(n))}return Dt(n),null;case 5:if(At(n),u=n.type,e!==null&&n.stateNode!=null)e.memoizedProps!==o&&ya(n);else{if(!o){if(n.stateNode===null)throw Error(s(166));return Dt(n),null}if(f=ge.current,io(n))mg(n);else{var y=tc(W.current);switch(f){case 1:f=y.createElementNS("http://www.w3.org/2000/svg",u);break;case 2:f=y.createElementNS("http://www.w3.org/1998/Math/MathML",u);break;default:switch(u){case"svg":f=y.createElementNS("http://www.w3.org/2000/svg",u);break;case"math":f=y.createElementNS("http://www.w3.org/1998/Math/MathML",u);break;case"script":f=y.createElement("div"),f.innerHTML="<script><\/script>",f=f.removeChild(f.firstChild);break;case"select":f=typeof o.is=="string"?y.createElement("select",{is:o.is}):y.createElement("select"),o.multiple?f.multiple=!0:o.size&&(f.size=o.size);break;default:f=typeof o.is=="string"?y.createElement(u,{is:o.is}):y.createElement(u)}}f[zt]=n,f[ln]=o;e:for(y=n.child;y!==null;){if(y.tag===5||y.tag===6)f.appendChild(y.stateNode);else if(y.tag!==4&&y.tag!==27&&y.child!==null){y.child.return=y,y=y.child;continue}if(y===n)break e;for(;y.sibling===null;){if(y.return===null||y.return===n)break e;y=y.return}y.sibling.return=y.return,y=y.sibling}n.stateNode=f;e:switch(En(f,u,o),u){case"button":case"input":case"select":case"textarea":o=!!o.autoFocus;break e;case"img":o=!0;break e;default:o=!1}o&&ya(n)}}return Dt(n),Ld(n,n.type,e===null?null:e.memoizedProps,n.pendingProps,a),null;case 6:if(e&&n.stateNode!=null)e.memoizedProps!==o&&ya(n);else{if(typeof o!="string"&&n.stateNode===null)throw Error(s(166));if(e=W.current,io(n)){if(e=n.stateNode,a=n.memoizedProps,o=null,u=xn,u!==null)switch(u.tag){case 27:case 5:o=u.memoizedProps}e[zt]=n,e=!!(e.nodeValue===a||o!==null&&o.suppressHydrationWarning===!0||Oy(e.nodeValue,a)),e||Ba(n,!0)}else e=tc(e).createTextNode(o),e[zt]=n,n.stateNode=e}return Dt(n),null;case 31:if(a=n.memoizedState,e===null||e.memoizedState!==null){if(o=io(n),a!==null){if(e===null){if(!o)throw Error(s(318));if(e=n.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(s(557));e[zt]=n}else Sr(),(n.flags&128)===0&&(n.memoizedState=null),n.flags|=4;Dt(n),e=!1}else a=Yu(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),e=!0;if(!e)return n.flags&256?(ci(n),n):(ci(n),null);if((n.flags&128)!==0)throw Error(s(558))}return Dt(n),null;case 13:if(o=n.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(u=io(n),o!==null&&o.dehydrated!==null){if(e===null){if(!u)throw Error(s(318));if(u=n.memoizedState,u=u!==null?u.dehydrated:null,!u)throw Error(s(317));u[zt]=n}else Sr(),(n.flags&128)===0&&(n.memoizedState=null),n.flags|=4;Dt(n),u=!1}else u=Yu(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=u),u=!0;if(!u)return n.flags&256?(ci(n),n):(ci(n),null)}return ci(n),(n.flags&128)!==0?(n.lanes=a,n):(a=o!==null,e=e!==null&&e.memoizedState!==null,a&&(o=n.child,u=null,o.alternate!==null&&o.alternate.memoizedState!==null&&o.alternate.memoizedState.cachePool!==null&&(u=o.alternate.memoizedState.cachePool.pool),f=null,o.memoizedState!==null&&o.memoizedState.cachePool!==null&&(f=o.memoizedState.cachePool.pool),f!==u&&(o.flags|=2048)),a!==e&&a&&(n.child.flags|=8192),js(n,n.updateQueue),Dt(n),null);case 4:return Fe(),e===null&&af(n.stateNode.containerInfo),Dt(n),null;case 10:return ma(n.type),Dt(n),null;case 19:if(E($t),o=n.memoizedState,o===null)return Dt(n),null;if(u=(n.flags&128)!==0,f=o.rendering,f===null)if(u)ml(o,!1);else{if(Gt!==0||e!==null&&(e.flags&128)!==0)for(e=n.child;e!==null;){if(f=As(e),f!==null){for(n.flags|=128,ml(o,!1),e=f.updateQueue,n.updateQueue=e,js(n,e),n.subtreeFlags=0,e=a,a=n.child;a!==null;)cg(a,e),a=a.sibling;return ie($t,$t.current&1|2),at&&fa(n,o.treeForkCount),n.child}e=e.sibling}o.tail!==null&&Yt()>Ys&&(n.flags|=128,u=!0,ml(o,!1),n.lanes=4194304)}else{if(!u)if(e=As(f),e!==null){if(n.flags|=128,u=!0,e=e.updateQueue,n.updateQueue=e,js(n,e),ml(o,!0),o.tail===null&&o.tailMode==="hidden"&&!f.alternate&&!at)return Dt(n),null}else 2*Yt()-o.renderingStartTime>Ys&&a!==536870912&&(n.flags|=128,u=!0,ml(o,!1),n.lanes=4194304);o.isBackwards?(f.sibling=n.child,n.child=f):(e=o.last,e!==null?e.sibling=f:n.child=f,o.last=f)}return o.tail!==null?(e=o.tail,o.rendering=e,o.tail=e.sibling,o.renderingStartTime=Yt(),e.sibling=null,a=$t.current,ie($t,u?a&1|2:a&1),at&&fa(n,o.treeForkCount),e):(Dt(n),null);case 22:case 23:return ci(n),ad(),o=n.memoizedState!==null,e!==null?e.memoizedState!==null!==o&&(n.flags|=8192):o&&(n.flags|=8192),o?(a&536870912)!==0&&(n.flags&128)===0&&(Dt(n),n.subtreeFlags&6&&(n.flags|=8192)):Dt(n),a=n.updateQueue,a!==null&&js(n,a.retryQueue),a=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),o=null,n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(o=n.memoizedState.cachePool.pool),o!==a&&(n.flags|=2048),e!==null&&E(Nr),null;case 24:return a=null,e!==null&&(a=e.memoizedState.cache),n.memoizedState.cache!==a&&(n.flags|=2048),ma(Wt),Dt(n),null;case 25:return null;case 30:return null}throw Error(s(156,n.tag))}function yA(e,n){switch(Pu(n),n.tag){case 1:return e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 3:return ma(Wt),Fe(),e=n.flags,(e&65536)!==0&&(e&128)===0?(n.flags=e&-65537|128,n):null;case 26:case 27:case 5:return At(n),null;case 31:if(n.memoizedState!==null){if(ci(n),n.alternate===null)throw Error(s(340));Sr()}return e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 13:if(ci(n),e=n.memoizedState,e!==null&&e.dehydrated!==null){if(n.alternate===null)throw Error(s(340));Sr()}return e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 19:return E($t),null;case 4:return Fe(),null;case 10:return ma(n.type),null;case 22:case 23:return ci(n),ad(),e!==null&&E(Nr),e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 24:return ma(Wt),null;case 25:return null;default:return null}}function Ib(e,n){switch(Pu(n),n.tag){case 3:ma(Wt),Fe();break;case 26:case 27:case 5:At(n);break;case 4:Fe();break;case 31:n.memoizedState!==null&&ci(n);break;case 13:ci(n);break;case 19:E($t);break;case 10:ma(n.type);break;case 22:case 23:ci(n),ad(),e!==null&&E(Nr);break;case 24:ma(Wt)}}function hl(e,n){try{var a=n.updateQueue,o=a!==null?a.lastEffect:null;if(o!==null){var u=o.next;a=u;do{if((a.tag&e)===e){o=void 0;var f=a.create,y=a.inst;o=f(),y.destroy=o}a=a.next}while(a!==u)}}catch(_){gt(n,n.return,_)}}function Ga(e,n,a){try{var o=n.updateQueue,u=o!==null?o.lastEffect:null;if(u!==null){var f=u.next;o=f;do{if((o.tag&e)===e){var y=o.inst,_=y.destroy;if(_!==void 0){y.destroy=void 0,u=n;var M=a,j=_;try{j()}catch(X){gt(u,M,X)}}}o=o.next}while(o!==f)}}catch(X){gt(n,n.return,X)}}function Bb(e){var n=e.updateQueue;if(n!==null){var a=e.stateNode;try{Ag(n,a)}catch(o){gt(e,e.return,o)}}}function Ub(e,n,a){a.props=Dr(e.type,e.memoizedProps),a.state=e.memoizedState;try{a.componentWillUnmount()}catch(o){gt(e,n,o)}}function gl(e,n){try{var a=e.ref;if(a!==null){switch(e.tag){case 26:case 27:case 5:var o=e.stateNode;break;case 30:o=e.stateNode;break;default:o=e.stateNode}typeof a=="function"?e.refCleanup=a(o):a.current=o}}catch(u){gt(e,n,u)}}function Ji(e,n){var a=e.ref,o=e.refCleanup;if(a!==null)if(typeof o=="function")try{o()}catch(u){gt(e,n,u)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof a=="function")try{a(null)}catch(u){gt(e,n,u)}else a.current=null}function qb(e){var n=e.type,a=e.memoizedProps,o=e.stateNode;try{e:switch(n){case"button":case"input":case"select":case"textarea":a.autoFocus&&o.focus();break e;case"img":a.src?o.src=a.src:a.srcSet&&(o.srcset=a.srcSet)}}catch(u){gt(e,e.return,u)}}function Id(e,n,a){try{var o=e.stateNode;jA(o,e.type,a,n),o[ln]=n}catch(u){gt(e,e.return,u)}}function jb(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Xa(e.type)||e.tag===4}function Bd(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||jb(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.tag===27&&Xa(e.type)||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 Ud(e,n,a){var o=e.tag;if(o===5||o===6)e=e.stateNode,n?(a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a).insertBefore(e,n):(n=a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a,n.appendChild(e),a=a._reactRootContainer,a!=null||n.onclick!==null||(n.onclick=K));else if(o!==4&&(o===27&&Xa(e.type)&&(a=e.stateNode,n=null),e=e.child,e!==null))for(Ud(e,n,a),e=e.sibling;e!==null;)Ud(e,n,a),e=e.sibling}function Hs(e,n,a){var o=e.tag;if(o===5||o===6)e=e.stateNode,n?a.insertBefore(e,n):a.appendChild(e);else if(o!==4&&(o===27&&Xa(e.type)&&(a=e.stateNode),e=e.child,e!==null))for(Hs(e,n,a),e=e.sibling;e!==null;)Hs(e,n,a),e=e.sibling}function Hb(e){var n=e.stateNode,a=e.memoizedProps;try{for(var o=e.type,u=n.attributes;u.length;)n.removeAttributeNode(u[0]);En(n,o,a),n[zt]=e,n[ln]=a}catch(f){gt(e,e.return,f)}}var ka=!1,tn=!1,qd=!1,Fb=typeof WeakSet=="function"?WeakSet:Set,hn=null;function kA(e,n){if(e=e.containerInfo,lf=sc,e=eg(e),Ru(e)){if("selectionStart"in e)var a={start:e.selectionStart,end:e.selectionEnd};else e:{a=(a=e.ownerDocument)&&a.defaultView||window;var o=a.getSelection&&a.getSelection();if(o&&o.rangeCount!==0){a=o.anchorNode;var u=o.anchorOffset,f=o.focusNode;o=o.focusOffset;try{a.nodeType,f.nodeType}catch{a=null;break e}var y=0,_=-1,M=-1,j=0,X=0,te=e,H=null;t:for(;;){for(var P;te!==a||u!==0&&te.nodeType!==3||(_=y+u),te!==f||o!==0&&te.nodeType!==3||(M=y+o),te.nodeType===3&&(y+=te.nodeValue.length),(P=te.firstChild)!==null;)H=te,te=P;for(;;){if(te===e)break t;if(H===a&&++j===u&&(_=y),H===f&&++X===o&&(M=y),(P=te.nextSibling)!==null)break;te=H,H=te.parentNode}te=P}a=_===-1||M===-1?null:{start:_,end:M}}else a=null}a=a||{start:0,end:0}}else a=null;for(sf={focusedElem:e,selectionRange:a},sc=!1,hn=n;hn!==null;)if(n=hn,e=n.child,(n.subtreeFlags&1028)!==0&&e!==null)e.return=n,hn=e;else for(;hn!==null;){switch(n=hn,f=n.alternate,e=n.flags,n.tag){case 0:if((e&4)!==0&&(e=n.updateQueue,e=e!==null?e.events:null,e!==null))for(a=0;a<e.length;a++)u=e[a],u.ref.impl=u.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&f!==null){e=void 0,a=n,u=f.memoizedProps,f=f.memoizedState,o=a.stateNode;try{var Te=Dr(a.type,u);e=o.getSnapshotBeforeUpdate(Te,f),o.__reactInternalSnapshotBeforeUpdate=e}catch(Ie){gt(a,a.return,Ie)}}break;case 3:if((e&1024)!==0){if(e=n.stateNode.containerInfo,a=e.nodeType,a===9)df(e);else if(a===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":df(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((e&1024)!==0)throw Error(s(163))}if(e=n.sibling,e!==null){e.return=n.return,hn=e;break}hn=n.return}}function Pb(e,n,a){var o=a.flags;switch(a.tag){case 0:case 11:case 15:va(e,a),o&4&&hl(5,a);break;case 1:if(va(e,a),o&4)if(e=a.stateNode,n===null)try{e.componentDidMount()}catch(y){gt(a,a.return,y)}else{var u=Dr(a.type,n.memoizedProps);n=n.memoizedState;try{e.componentDidUpdate(u,n,e.__reactInternalSnapshotBeforeUpdate)}catch(y){gt(a,a.return,y)}}o&64&&Bb(a),o&512&&gl(a,a.return);break;case 3:if(va(e,a),o&64&&(e=a.updateQueue,e!==null)){if(n=null,a.child!==null)switch(a.child.tag){case 27:case 5:n=a.child.stateNode;break;case 1:n=a.child.stateNode}try{Ag(e,n)}catch(y){gt(a,a.return,y)}}break;case 27:n===null&&o&4&&Hb(a);case 26:case 5:va(e,a),n===null&&o&4&&qb(a),o&512&&gl(a,a.return);break;case 12:va(e,a);break;case 31:va(e,a),o&4&&Vb(e,a);break;case 13:va(e,a),o&4&&$b(e,a),o&64&&(e=a.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(a=NA.bind(null,a),KA(e,a))));break;case 22:if(o=a.memoizedState!==null||ka,!o){n=n!==null&&n.memoizedState!==null||tn,u=ka;var f=tn;ka=o,(tn=n)&&!f?_a(e,a,(a.subtreeFlags&8772)!==0):va(e,a),ka=u,tn=f}break;case 30:break;default:va(e,a)}}function Gb(e){var n=e.alternate;n!==null&&(e.alternate=null,Gb(n)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(n=e.stateNode,n!==null&&Mn(n)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var Ut=null,$n=!1;function xa(e,n,a){for(a=a.child;a!==null;)Yb(e,n,a),a=a.sibling}function Yb(e,n,a){if(jt&&typeof jt.onCommitFiberUnmount=="function")try{jt.onCommitFiberUnmount(Cn,a)}catch{}switch(a.tag){case 26:tn||Ji(a,n),xa(e,n,a),a.memoizedState?a.memoizedState.count--:a.stateNode&&(a=a.stateNode,a.parentNode.removeChild(a));break;case 27:tn||Ji(a,n);var o=Ut,u=$n;Xa(a.type)&&(Ut=a.stateNode,$n=!1),xa(e,n,a),Sl(a.stateNode),Ut=o,$n=u;break;case 5:tn||Ji(a,n);case 6:if(o=Ut,u=$n,Ut=null,xa(e,n,a),Ut=o,$n=u,Ut!==null)if($n)try{(Ut.nodeType===9?Ut.body:Ut.nodeName==="HTML"?Ut.ownerDocument.body:Ut).removeChild(a.stateNode)}catch(f){gt(a,n,f)}else try{Ut.removeChild(a.stateNode)}catch(f){gt(a,n,f)}break;case 18:Ut!==null&&($n?(e=Ut,By(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,a.stateNode),So(e)):By(Ut,a.stateNode));break;case 4:o=Ut,u=$n,Ut=a.stateNode.containerInfo,$n=!0,xa(e,n,a),Ut=o,$n=u;break;case 0:case 11:case 14:case 15:Ga(2,a,n),tn||Ga(4,a,n),xa(e,n,a);break;case 1:tn||(Ji(a,n),o=a.stateNode,typeof o.componentWillUnmount=="function"&&Ub(a,n,o)),xa(e,n,a);break;case 21:xa(e,n,a);break;case 22:tn=(o=tn)||a.memoizedState!==null,xa(e,n,a),tn=o;break;default:xa(e,n,a)}}function Vb(e,n){if(n.memoizedState===null&&(e=n.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{So(e)}catch(a){gt(n,n.return,a)}}}function $b(e,n){if(n.memoizedState===null&&(e=n.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{So(e)}catch(a){gt(n,n.return,a)}}function xA(e){switch(e.tag){case 31:case 13:case 19:var n=e.stateNode;return n===null&&(n=e.stateNode=new Fb),n;case 22:return e=e.stateNode,n=e._retryCache,n===null&&(n=e._retryCache=new Fb),n;default:throw Error(s(435,e.tag))}}function Fs(e,n){var a=xA(e);n.forEach(function(o){if(!a.has(o)){a.add(o);var u=CA.bind(null,e,o);o.then(u,u)}})}function Kn(e,n){var a=n.deletions;if(a!==null)for(var o=0;o<a.length;o++){var u=a[o],f=e,y=n,_=y;e:for(;_!==null;){switch(_.tag){case 27:if(Xa(_.type)){Ut=_.stateNode,$n=!1;break e}break;case 5:Ut=_.stateNode,$n=!1;break e;case 3:case 4:Ut=_.stateNode.containerInfo,$n=!0;break e}_=_.return}if(Ut===null)throw Error(s(160));Yb(f,y,u),Ut=null,$n=!1,f=u.alternate,f!==null&&(f.return=null),u.return=null}if(n.subtreeFlags&13886)for(n=n.child;n!==null;)Kb(n,e),n=n.sibling}var Ii=null;function Kb(e,n){var a=e.alternate,o=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:Kn(n,e),Zn(e),o&4&&(Ga(3,e,e.return),hl(3,e),Ga(5,e,e.return));break;case 1:Kn(n,e),Zn(e),o&512&&(tn||a===null||Ji(a,a.return)),o&64&&ka&&(e=e.updateQueue,e!==null&&(o=e.callbacks,o!==null&&(a=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=a===null?o:a.concat(o))));break;case 26:var u=Ii;if(Kn(n,e),Zn(e),o&512&&(tn||a===null||Ji(a,a.return)),o&4){var f=a!==null?a.memoizedState:null;if(o=e.memoizedState,a===null)if(o===null)if(e.stateNode===null){e:{o=e.type,a=e.memoizedProps,u=u.ownerDocument||u;t:switch(o){case"title":f=u.getElementsByTagName("title")[0],(!f||f[Bn]||f[zt]||f.namespaceURI==="http://www.w3.org/2000/svg"||f.hasAttribute("itemprop"))&&(f=u.createElement(o),u.head.insertBefore(f,u.querySelector("head > title"))),En(f,o,a),f[zt]=e,Lt(f),o=f;break e;case"link":var y=Ky("link","href",u).get(o+(a.href||""));if(y){for(var _=0;_<y.length;_++)if(f=y[_],f.getAttribute("href")===(a.href==null||a.href===""?null:a.href)&&f.getAttribute("rel")===(a.rel==null?null:a.rel)&&f.getAttribute("title")===(a.title==null?null:a.title)&&f.getAttribute("crossorigin")===(a.crossOrigin==null?null:a.crossOrigin)){y.splice(_,1);break t}}f=u.createElement(o),En(f,o,a),u.head.appendChild(f);break;case"meta":if(y=Ky("meta","content",u).get(o+(a.content||""))){for(_=0;_<y.length;_++)if(f=y[_],f.getAttribute("content")===(a.content==null?null:""+a.content)&&f.getAttribute("name")===(a.name==null?null:a.name)&&f.getAttribute("property")===(a.property==null?null:a.property)&&f.getAttribute("http-equiv")===(a.httpEquiv==null?null:a.httpEquiv)&&f.getAttribute("charset")===(a.charSet==null?null:a.charSet)){y.splice(_,1);break t}}f=u.createElement(o),En(f,o,a),u.head.appendChild(f);break;default:throw Error(s(468,o))}f[zt]=e,Lt(f),o=f}e.stateNode=o}else Zy(u,e.type,e.stateNode);else e.stateNode=$y(u,o,e.memoizedProps);else f!==o?(f===null?a.stateNode!==null&&(a=a.stateNode,a.parentNode.removeChild(a)):f.count--,o===null?Zy(u,e.type,e.stateNode):$y(u,o,e.memoizedProps)):o===null&&e.stateNode!==null&&Id(e,e.memoizedProps,a.memoizedProps)}break;case 27:Kn(n,e),Zn(e),o&512&&(tn||a===null||Ji(a,a.return)),a!==null&&o&4&&Id(e,e.memoizedProps,a.memoizedProps);break;case 5:if(Kn(n,e),Zn(e),o&512&&(tn||a===null||Ji(a,a.return)),e.flags&32){u=e.stateNode;try{Mi(u,"")}catch(Te){gt(e,e.return,Te)}}o&4&&e.stateNode!=null&&(u=e.memoizedProps,Id(e,u,a!==null?a.memoizedProps:u)),o&1024&&(qd=!0);break;case 6:if(Kn(n,e),Zn(e),o&4){if(e.stateNode===null)throw Error(s(162));o=e.memoizedProps,a=e.stateNode;try{a.nodeValue=o}catch(Te){gt(e,e.return,Te)}}break;case 3:if(ac=null,u=Ii,Ii=nc(n.containerInfo),Kn(n,e),Ii=u,Zn(e),o&4&&a!==null&&a.memoizedState.isDehydrated)try{So(n.containerInfo)}catch(Te){gt(e,e.return,Te)}qd&&(qd=!1,Zb(e));break;case 4:o=Ii,Ii=nc(e.stateNode.containerInfo),Kn(n,e),Zn(e),Ii=o;break;case 12:Kn(n,e),Zn(e);break;case 31:Kn(n,e),Zn(e),o&4&&(o=e.updateQueue,o!==null&&(e.updateQueue=null,Fs(e,o)));break;case 13:Kn(n,e),Zn(e),e.child.flags&8192&&e.memoizedState!==null!=(a!==null&&a.memoizedState!==null)&&(Gs=Yt()),o&4&&(o=e.updateQueue,o!==null&&(e.updateQueue=null,Fs(e,o)));break;case 22:u=e.memoizedState!==null;var M=a!==null&&a.memoizedState!==null,j=ka,X=tn;if(ka=j||u,tn=X||M,Kn(n,e),tn=X,ka=j,Zn(e),o&8192)e:for(n=e.stateNode,n._visibility=u?n._visibility&-2:n._visibility|1,u&&(a===null||M||ka||tn||zr(e)),a=null,n=e;;){if(n.tag===5||n.tag===26){if(a===null){M=a=n;try{if(f=M.stateNode,u)y=f.style,typeof y.setProperty=="function"?y.setProperty("display","none","important"):y.display="none";else{_=M.stateNode;var te=M.memoizedProps.style,H=te!=null&&te.hasOwnProperty("display")?te.display:null;_.style.display=H==null||typeof H=="boolean"?"":(""+H).trim()}}catch(Te){gt(M,M.return,Te)}}}else if(n.tag===6){if(a===null){M=n;try{M.stateNode.nodeValue=u?"":M.memoizedProps}catch(Te){gt(M,M.return,Te)}}}else if(n.tag===18){if(a===null){M=n;try{var P=M.stateNode;u?Uy(P,!0):Uy(M.stateNode,!1)}catch(Te){gt(M,M.return,Te)}}}else if((n.tag!==22&&n.tag!==23||n.memoizedState===null||n===e)&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===e)break e;for(;n.sibling===null;){if(n.return===null||n.return===e)break e;a===n&&(a=null),n=n.return}a===n&&(a=null),n.sibling.return=n.return,n=n.sibling}o&4&&(o=e.updateQueue,o!==null&&(a=o.retryQueue,a!==null&&(o.retryQueue=null,Fs(e,a))));break;case 19:Kn(n,e),Zn(e),o&4&&(o=e.updateQueue,o!==null&&(e.updateQueue=null,Fs(e,o)));break;case 30:break;case 21:break;default:Kn(n,e),Zn(e)}}function Zn(e){var n=e.flags;if(n&2){try{for(var a,o=e.return;o!==null;){if(jb(o)){a=o;break}o=o.return}if(a==null)throw Error(s(160));switch(a.tag){case 27:var u=a.stateNode,f=Bd(e);Hs(e,f,u);break;case 5:var y=a.stateNode;a.flags&32&&(Mi(y,""),a.flags&=-33);var _=Bd(e);Hs(e,_,y);break;case 3:case 4:var M=a.stateNode.containerInfo,j=Bd(e);Ud(e,j,M);break;default:throw Error(s(161))}}catch(X){gt(e,e.return,X)}e.flags&=-3}n&4096&&(e.flags&=-4097)}function Zb(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var n=e;Zb(n),n.tag===5&&n.flags&1024&&n.stateNode.reset(),e=e.sibling}}function va(e,n){if(n.subtreeFlags&8772)for(n=n.child;n!==null;)Pb(e,n.alternate,n),n=n.sibling}function zr(e){for(e=e.child;e!==null;){var n=e;switch(n.tag){case 0:case 11:case 14:case 15:Ga(4,n,n.return),zr(n);break;case 1:Ji(n,n.return);var a=n.stateNode;typeof a.componentWillUnmount=="function"&&Ub(n,n.return,a),zr(n);break;case 27:Sl(n.stateNode);case 26:case 5:Ji(n,n.return),zr(n);break;case 22:n.memoizedState===null&&zr(n);break;case 30:zr(n);break;default:zr(n)}e=e.sibling}}function _a(e,n,a){for(a=a&&(n.subtreeFlags&8772)!==0,n=n.child;n!==null;){var o=n.alternate,u=e,f=n,y=f.flags;switch(f.tag){case 0:case 11:case 15:_a(u,f,a),hl(4,f);break;case 1:if(_a(u,f,a),o=f,u=o.stateNode,typeof u.componentDidMount=="function")try{u.componentDidMount()}catch(j){gt(o,o.return,j)}if(o=f,u=o.updateQueue,u!==null){var _=o.stateNode;try{var M=u.shared.hiddenCallbacks;if(M!==null)for(u.shared.hiddenCallbacks=null,u=0;u<M.length;u++)Tg(M[u],_)}catch(j){gt(o,o.return,j)}}a&&y&64&&Bb(f),gl(f,f.return);break;case 27:Hb(f);case 26:case 5:_a(u,f,a),a&&o===null&&y&4&&qb(f),gl(f,f.return);break;case 12:_a(u,f,a);break;case 31:_a(u,f,a),a&&y&4&&Vb(u,f);break;case 13:_a(u,f,a),a&&y&4&&$b(u,f);break;case 22:f.memoizedState===null&&_a(u,f,a),gl(f,f.return);break;case 30:break;default:_a(u,f,a)}n=n.sibling}}function jd(e,n){var a=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),e=null,n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(e=n.memoizedState.cachePool.pool),e!==a&&(e!=null&&e.refCount++,a!=null&&nl(a))}function Hd(e,n){e=null,n.alternate!==null&&(e=n.alternate.memoizedState.cache),n=n.memoizedState.cache,n!==e&&(n.refCount++,e!=null&&nl(e))}function Bi(e,n,a,o){if(n.subtreeFlags&10256)for(n=n.child;n!==null;)Qb(e,n,a,o),n=n.sibling}function Qb(e,n,a,o){var u=n.flags;switch(n.tag){case 0:case 11:case 15:Bi(e,n,a,o),u&2048&&hl(9,n);break;case 1:Bi(e,n,a,o);break;case 3:Bi(e,n,a,o),u&2048&&(e=null,n.alternate!==null&&(e=n.alternate.memoizedState.cache),n=n.memoizedState.cache,n!==e&&(n.refCount++,e!=null&&nl(e)));break;case 12:if(u&2048){Bi(e,n,a,o),e=n.stateNode;try{var f=n.memoizedProps,y=f.id,_=f.onPostCommit;typeof _=="function"&&_(y,n.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(M){gt(n,n.return,M)}}else Bi(e,n,a,o);break;case 31:Bi(e,n,a,o);break;case 13:Bi(e,n,a,o);break;case 23:break;case 22:f=n.stateNode,y=n.alternate,n.memoizedState!==null?f._visibility&2?Bi(e,n,a,o):bl(e,n):f._visibility&2?Bi(e,n,a,o):(f._visibility|=2,mo(e,n,a,o,(n.subtreeFlags&10256)!==0||!1)),u&2048&&jd(y,n);break;case 24:Bi(e,n,a,o),u&2048&&Hd(n.alternate,n);break;default:Bi(e,n,a,o)}}function mo(e,n,a,o,u){for(u=u&&((n.subtreeFlags&10256)!==0||!1),n=n.child;n!==null;){var f=e,y=n,_=a,M=o,j=y.flags;switch(y.tag){case 0:case 11:case 15:mo(f,y,_,M,u),hl(8,y);break;case 23:break;case 22:var X=y.stateNode;y.memoizedState!==null?X._visibility&2?mo(f,y,_,M,u):bl(f,y):(X._visibility|=2,mo(f,y,_,M,u)),u&&j&2048&&jd(y.alternate,y);break;case 24:mo(f,y,_,M,u),u&&j&2048&&Hd(y.alternate,y);break;default:mo(f,y,_,M,u)}n=n.sibling}}function bl(e,n){if(n.subtreeFlags&10256)for(n=n.child;n!==null;){var a=e,o=n,u=o.flags;switch(o.tag){case 22:bl(a,o),u&2048&&jd(o.alternate,o);break;case 24:bl(a,o),u&2048&&Hd(o.alternate,o);break;default:bl(a,o)}n=n.sibling}}var yl=8192;function ho(e,n,a){if(e.subtreeFlags&yl)for(e=e.child;e!==null;)Xb(e,n,a),e=e.sibling}function Xb(e,n,a){switch(e.tag){case 26:ho(e,n,a),e.flags&yl&&e.memoizedState!==null&&oN(a,Ii,e.memoizedState,e.memoizedProps);break;case 5:ho(e,n,a);break;case 3:case 4:var o=Ii;Ii=nc(e.stateNode.containerInfo),ho(e,n,a),Ii=o;break;case 22:e.memoizedState===null&&(o=e.alternate,o!==null&&o.memoizedState!==null?(o=yl,yl=16777216,ho(e,n,a),yl=o):ho(e,n,a));break;default:ho(e,n,a)}}function Wb(e){var n=e.alternate;if(n!==null&&(e=n.child,e!==null)){n.child=null;do n=e.sibling,e.sibling=null,e=n;while(e!==null)}}function kl(e){var n=e.deletions;if((e.flags&16)!==0){if(n!==null)for(var a=0;a<n.length;a++){var o=n[a];hn=o,ey(o,e)}Wb(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Jb(e),e=e.sibling}function Jb(e){switch(e.tag){case 0:case 11:case 15:kl(e),e.flags&2048&&Ga(9,e,e.return);break;case 3:kl(e);break;case 12:kl(e);break;case 22:var n=e.stateNode;e.memoizedState!==null&&n._visibility&2&&(e.return===null||e.return.tag!==13)?(n._visibility&=-3,Ps(e)):kl(e);break;default:kl(e)}}function Ps(e){var n=e.deletions;if((e.flags&16)!==0){if(n!==null)for(var a=0;a<n.length;a++){var o=n[a];hn=o,ey(o,e)}Wb(e)}for(e=e.child;e!==null;){switch(n=e,n.tag){case 0:case 11:case 15:Ga(8,n,n.return),Ps(n);break;case 22:a=n.stateNode,a._visibility&2&&(a._visibility&=-3,Ps(n));break;default:Ps(n)}e=e.sibling}}function ey(e,n){for(;hn!==null;){var a=hn;switch(a.tag){case 0:case 11:case 15:Ga(8,a,n);break;case 23:case 22:if(a.memoizedState!==null&&a.memoizedState.cachePool!==null){var o=a.memoizedState.cachePool.pool;o!=null&&o.refCount++}break;case 24:nl(a.memoizedState.cache)}if(o=a.child,o!==null)o.return=a,hn=o;else e:for(a=e;hn!==null;){o=hn;var u=o.sibling,f=o.return;if(Gb(o),o===a){hn=null;break e}if(u!==null){u.return=f,hn=u;break e}hn=f}}}var vA={getCacheForType:function(e){var n=vn(Wt),a=n.data.get(e);return a===void 0&&(a=e(),n.data.set(e,a)),a},cacheSignal:function(){return vn(Wt).controller.signal}},_A=typeof WeakMap=="function"?WeakMap:Map,ft=0,St=null,et=null,nt=0,ht=0,ui=null,Ya=!1,go=!1,Fd=!1,Ea=0,Gt=0,Va=0,Lr=0,Pd=0,di=0,bo=0,xl=null,Qn=null,Gd=!1,Gs=0,ty=0,Ys=1/0,Vs=null,$a=null,un=0,Ka=null,yo=null,wa=0,Yd=0,Vd=null,ny=null,vl=0,$d=null;function fi(){return(ft&2)!==0&&nt!==0?nt&-nt:$.T!==null?Jd():Ma()}function iy(){if(di===0)if((nt&536870912)===0||at){var e=ia;ia<<=1,(ia&3932160)===0&&(ia=262144),di=e}else di=536870912;return e=si.current,e!==null&&(e.flags|=32),di}function Xn(e,n,a){(e===St&&(ht===2||ht===9)||e.cancelPendingCommit!==null)&&(ko(e,0),Za(e,nt,di,!1)),_e(e,a),((ft&2)===0||e!==St)&&(e===St&&((ft&2)===0&&(Lr|=a),Gt===4&&Za(e,nt,di,!1)),ea(e))}function ay(e,n,a){if((ft&6)!==0)throw Error(s(327));var o=!a&&(n&127)===0&&(n&e.expiredLanes)===0||fe(e,n),u=o?SA(e,n):Zd(e,n,!0),f=o;do{if(u===0){go&&!o&&Za(e,n,0,!1);break}else{if(a=e.current.alternate,f&&!EA(a)){u=Zd(e,n,!1),f=!1;continue}if(u===2){if(f=n,e.errorRecoveryDisabledLanes&f)var y=0;else y=e.pendingLanes&-536870913,y=y!==0?y:y&536870912?536870912:0;if(y!==0){n=y;e:{var _=e;u=xl;var M=_.current.memoizedState.isDehydrated;if(M&&(ko(_,y).flags|=256),y=Zd(_,y,!1),y!==2){if(Fd&&!M){_.errorRecoveryDisabledLanes|=f,Lr|=f,u=4;break e}f=Qn,Qn=u,f!==null&&(Qn===null?Qn=f:Qn.push.apply(Qn,f))}u=y}if(f=!1,u!==2)continue}}if(u===1){ko(e,0),Za(e,n,0,!0);break}e:{switch(o=e,f=u,f){case 0:case 1:throw Error(s(345));case 4:if((n&4194048)!==n)break;case 6:Za(o,n,di,!Ya);break e;case 2:Qn=null;break;case 3:case 5:break;default:throw Error(s(329))}if((n&62914560)===n&&(u=Gs+300-Yt(),10<u)){if(Za(o,n,di,!Ya),J(o,0,!0)!==0)break e;wa=n,o.timeoutHandle=Ly(ry.bind(null,o,a,Qn,Vs,Gd,n,di,Lr,bo,Ya,f,"Throttled",-0,0),u);break e}ry(o,a,Qn,Vs,Gd,n,di,Lr,bo,Ya,f,null,-0,0)}}break}while(!0);ea(e)}function ry(e,n,a,o,u,f,y,_,M,j,X,te,H,P){if(e.timeoutHandle=-1,te=n.subtreeFlags,te&8192||(te&16785408)===16785408){te={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:K},Xb(n,f,te);var Te=(f&62914560)===f?Gs-Yt():(f&4194048)===f?ty-Yt():0;if(Te=lN(te,Te),Te!==null){wa=f,e.cancelPendingCommit=Te(py.bind(null,e,n,f,a,o,u,y,_,M,X,te,null,H,P)),Za(e,f,y,!j);return}}py(e,n,f,a,o,u,y,_,M)}function EA(e){for(var n=e;;){var a=n.tag;if((a===0||a===11||a===15)&&n.flags&16384&&(a=n.updateQueue,a!==null&&(a=a.stores,a!==null)))for(var o=0;o<a.length;o++){var u=a[o],f=u.getSnapshot;u=u.value;try{if(!oi(f(),u))return!1}catch{return!1}}if(a=n.child,n.subtreeFlags&16384&&a!==null)a.return=n,n=a;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 Za(e,n,a,o){n&=~Pd,n&=~Lr,e.suspendedLanes|=n,e.pingedLanes&=~n,o&&(e.warmLanes|=n),o=e.expirationTimes;for(var u=n;0<u;){var f=31-Nt(u),y=1<<f;o[f]=-1,u&=~y}a!==0&&Le(e,a,n)}function $s(){return(ft&6)===0?(_l(0),!1):!0}function Kd(){if(et!==null){if(ht===0)var e=et.return;else e=et,pa=Tr=null,ud(e),so=null,al=0,e=et;for(;e!==null;)Ib(e.alternate,e),e=e.return;et=null}}function ko(e,n){var a=e.timeoutHandle;a!==-1&&(e.timeoutHandle=-1,PA(a)),a=e.cancelPendingCommit,a!==null&&(e.cancelPendingCommit=null,a()),wa=0,Kd(),St=e,et=a=da(e.current,null),nt=n,ht=0,ui=null,Ya=!1,go=fe(e,n),Fd=!1,bo=di=Pd=Lr=Va=Gt=0,Qn=xl=null,Gd=!1,(n&8)!==0&&(n|=n&32);var o=e.entangledLanes;if(o!==0)for(e=e.entanglements,o&=n;0<o;){var u=31-Nt(o),f=1<<u;n|=e[u],o&=~f}return Ea=n,ms(),a}function oy(e,n){Ye=null,$.H=fl,n===lo||n===_s?(n=_g(),ht=3):n===Wu?(n=_g(),ht=4):ht=n===Td?8:n!==null&&typeof n=="object"&&typeof n.then=="function"?6:1,ui=n,et===null&&(Gt=1,Is(e,xi(n,e.current)))}function ly(){var e=si.current;return e===null?!0:(nt&4194048)===nt?wi===null:(nt&62914560)===nt||(nt&536870912)!==0?e===wi:!1}function sy(){var e=$.H;return $.H=fl,e===null?fl:e}function cy(){var e=$.A;return $.A=vA,e}function Ks(){Gt=4,Ya||(nt&4194048)!==nt&&si.current!==null||(go=!0),(Va&134217727)===0&&(Lr&134217727)===0||St===null||Za(St,nt,di,!1)}function Zd(e,n,a){var o=ft;ft|=2;var u=sy(),f=cy();(St!==e||nt!==n)&&(Vs=null,ko(e,n)),n=!1;var y=Gt;e:do try{if(ht!==0&&et!==null){var _=et,M=ui;switch(ht){case 8:Kd(),y=6;break e;case 3:case 2:case 9:case 6:si.current===null&&(n=!0);var j=ht;if(ht=0,ui=null,xo(e,_,M,j),a&&go){y=0;break e}break;default:j=ht,ht=0,ui=null,xo(e,_,M,j)}}wA(),y=Gt;break}catch(X){oy(e,X)}while(!0);return n&&e.shellSuspendCounter++,pa=Tr=null,ft=o,$.H=u,$.A=f,et===null&&(St=null,nt=0,ms()),y}function wA(){for(;et!==null;)uy(et)}function SA(e,n){var a=ft;ft|=2;var o=sy(),u=cy();St!==e||nt!==n?(Vs=null,Ys=Yt()+500,ko(e,n)):go=fe(e,n);e:do try{if(ht!==0&&et!==null){n=et;var f=ui;t:switch(ht){case 1:ht=0,ui=null,xo(e,n,f,1);break;case 2:case 9:if(xg(f)){ht=0,ui=null,dy(n);break}n=function(){ht!==2&&ht!==9||St!==e||(ht=7),ea(e)},f.then(n,n);break e;case 3:ht=7;break e;case 4:ht=5;break e;case 7:xg(f)?(ht=0,ui=null,dy(n)):(ht=0,ui=null,xo(e,n,f,7));break;case 5:var y=null;switch(et.tag){case 26:y=et.memoizedState;case 5:case 27:var _=et;if(y?Qy(y):_.stateNode.complete){ht=0,ui=null;var M=_.sibling;if(M!==null)et=M;else{var j=_.return;j!==null?(et=j,Zs(j)):et=null}break t}}ht=0,ui=null,xo(e,n,f,5);break;case 6:ht=0,ui=null,xo(e,n,f,6);break;case 8:Kd(),Gt=6;break e;default:throw Error(s(462))}}TA();break}catch(X){oy(e,X)}while(!0);return pa=Tr=null,$.H=o,$.A=u,ft=a,et!==null?0:(St=null,nt=0,ms(),Gt)}function TA(){for(;et!==null&&!ur();)uy(et)}function uy(e){var n=zb(e.alternate,e,Ea);e.memoizedProps=e.pendingProps,n===null?Zs(e):et=n}function dy(e){var n=e,a=n.alternate;switch(n.tag){case 15:case 0:n=Nb(a,n,n.pendingProps,n.type,void 0,nt);break;case 11:n=Nb(a,n,n.pendingProps,n.type.render,n.ref,nt);break;case 5:ud(n);default:Ib(a,n),n=et=cg(n,Ea),n=zb(a,n,Ea)}e.memoizedProps=e.pendingProps,n===null?Zs(e):et=n}function xo(e,n,a,o){pa=Tr=null,ud(n),so=null,al=0;var u=n.return;try{if(mA(e,u,n,a,nt)){Gt=1,Is(e,xi(a,e.current)),et=null;return}}catch(f){if(u!==null)throw et=u,f;Gt=1,Is(e,xi(a,e.current)),et=null;return}n.flags&32768?(at||o===1?e=!0:go||(nt&536870912)!==0?e=!1:(Ya=e=!0,(o===2||o===9||o===3||o===6)&&(o=si.current,o!==null&&o.tag===13&&(o.flags|=16384))),fy(n,e)):Zs(n)}function Zs(e){var n=e;do{if((n.flags&32768)!==0){fy(n,Ya);return}e=n.return;var a=bA(n.alternate,n,Ea);if(a!==null){et=a;return}if(n=n.sibling,n!==null){et=n;return}et=n=e}while(n!==null);Gt===0&&(Gt=5)}function fy(e,n){do{var a=yA(e.alternate,e);if(a!==null){a.flags&=32767,et=a;return}if(a=e.return,a!==null&&(a.flags|=32768,a.subtreeFlags=0,a.deletions=null),!n&&(e=e.sibling,e!==null)){et=e;return}et=e=a}while(e!==null);Gt=6,et=null}function py(e,n,a,o,u,f,y,_,M){e.cancelPendingCommit=null;do Qs();while(un!==0);if((ft&6)!==0)throw Error(s(327));if(n!==null){if(n===e.current)throw Error(s(177));if(f=n.lanes|n.childLanes,f|=Bu,ke(e,a,f,y,_,M),e===St&&(et=St=null,nt=0),yo=n,Ka=e,wa=a,Yd=f,Vd=u,ny=o,(n.subtreeFlags&10256)!==0||(n.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,MA(Pe,function(){return yy(),null})):(e.callbackNode=null,e.callbackPriority=0),o=(n.flags&13878)!==0,(n.subtreeFlags&13878)!==0||o){o=$.T,$.T=null,u=Q.p,Q.p=2,y=ft,ft|=4;try{kA(e,n,a)}finally{ft=y,Q.p=u,$.T=o}}un=1,my(),hy(),gy()}}function my(){if(un===1){un=0;var e=Ka,n=yo,a=(n.flags&13878)!==0;if((n.subtreeFlags&13878)!==0||a){a=$.T,$.T=null;var o=Q.p;Q.p=2;var u=ft;ft|=4;try{Kb(n,e);var f=sf,y=eg(e.containerInfo),_=f.focusedElem,M=f.selectionRange;if(y!==_&&_&&_.ownerDocument&&Jh(_.ownerDocument.documentElement,_)){if(M!==null&&Ru(_)){var j=M.start,X=M.end;if(X===void 0&&(X=j),"selectionStart"in _)_.selectionStart=j,_.selectionEnd=Math.min(X,_.value.length);else{var te=_.ownerDocument||document,H=te&&te.defaultView||window;if(H.getSelection){var P=H.getSelection(),Te=_.textContent.length,Ie=Math.min(M.start,Te),xt=M.end===void 0?Ie:Math.min(M.end,Te);!P.extend&&Ie>xt&&(y=xt,xt=Ie,Ie=y);var z=Wh(_,Ie),D=Wh(_,xt);if(z&&D&&(P.rangeCount!==1||P.anchorNode!==z.node||P.anchorOffset!==z.offset||P.focusNode!==D.node||P.focusOffset!==D.offset)){var q=te.createRange();q.setStart(z.node,z.offset),P.removeAllRanges(),Ie>xt?(P.addRange(q),P.extend(D.node,D.offset)):(q.setEnd(D.node,D.offset),P.addRange(q))}}}}for(te=[],P=_;P=P.parentNode;)P.nodeType===1&&te.push({element:P,left:P.scrollLeft,top:P.scrollTop});for(typeof _.focus=="function"&&_.focus(),_=0;_<te.length;_++){var ee=te[_];ee.element.scrollLeft=ee.left,ee.element.scrollTop=ee.top}}sc=!!lf,sf=lf=null}finally{ft=u,Q.p=o,$.T=a}}e.current=n,un=2}}function hy(){if(un===2){un=0;var e=Ka,n=yo,a=(n.flags&8772)!==0;if((n.subtreeFlags&8772)!==0||a){a=$.T,$.T=null;var o=Q.p;Q.p=2;var u=ft;ft|=4;try{Pb(e,n.alternate,n)}finally{ft=u,Q.p=o,$.T=a}}un=3}}function gy(){if(un===4||un===3){un=0,ei();var e=Ka,n=yo,a=wa,o=ny;(n.subtreeFlags&10256)!==0||(n.flags&10256)!==0?un=5:(un=0,yo=Ka=null,by(e,e.pendingLanes));var u=e.pendingLanes;if(u===0&&($a=null),Gi(a),n=n.stateNode,jt&&typeof jt.onCommitFiberRoot=="function")try{jt.onCommitFiberRoot(Cn,n,void 0,(n.current.flags&128)===128)}catch{}if(o!==null){n=$.T,u=Q.p,Q.p=2,$.T=null;try{for(var f=e.onRecoverableError,y=0;y<o.length;y++){var _=o[y];f(_.value,{componentStack:_.stack})}}finally{$.T=n,Q.p=u}}(wa&3)!==0&&Qs(),ea(e),u=e.pendingLanes,(a&261930)!==0&&(u&42)!==0?e===$d?vl++:(vl=0,$d=e):vl=0,_l(0)}}function by(e,n){(e.pooledCacheLanes&=n)===0&&(n=e.pooledCache,n!=null&&(e.pooledCache=null,nl(n)))}function Qs(){return my(),hy(),gy(),yy()}function yy(){if(un!==5)return!1;var e=Ka,n=Yd;Yd=0;var a=Gi(wa),o=$.T,u=Q.p;try{Q.p=32>a?32:a,$.T=null,a=Vd,Vd=null;var f=Ka,y=wa;if(un=0,yo=Ka=null,wa=0,(ft&6)!==0)throw Error(s(331));var _=ft;if(ft|=4,Jb(f.current),Qb(f,f.current,y,a),ft=_,_l(0,!1),jt&&typeof jt.onPostCommitFiberRoot=="function")try{jt.onPostCommitFiberRoot(Cn,f)}catch{}return!0}finally{Q.p=u,$.T=o,by(e,n)}}function ky(e,n,a){n=xi(a,n),n=Sd(e.stateNode,n,2),e=Ha(e,n,2),e!==null&&(_e(e,2),ea(e))}function gt(e,n,a){if(e.tag===3)ky(e,e,a);else for(;n!==null;){if(n.tag===3){ky(n,e,a);break}else if(n.tag===1){var o=n.stateNode;if(typeof n.type.getDerivedStateFromError=="function"||typeof o.componentDidCatch=="function"&&($a===null||!$a.has(o))){e=xi(a,e),a=xb(2),o=Ha(n,a,2),o!==null&&(vb(a,o,n,e),_e(o,2),ea(o));break}}n=n.return}}function Qd(e,n,a){var o=e.pingCache;if(o===null){o=e.pingCache=new _A;var u=new Set;o.set(n,u)}else u=o.get(n),u===void 0&&(u=new Set,o.set(n,u));u.has(a)||(Fd=!0,u.add(a),e=AA.bind(null,e,n,a),n.then(e,e))}function AA(e,n,a){var o=e.pingCache;o!==null&&o.delete(n),e.pingedLanes|=e.suspendedLanes&a,e.warmLanes&=~a,St===e&&(nt&a)===a&&(Gt===4||Gt===3&&(nt&62914560)===nt&&300>Yt()-Gs?(ft&2)===0&&ko(e,0):Pd|=a,bo===nt&&(bo=0)),ea(e)}function xy(e,n){n===0&&(n=Ze()),e=Er(e,n),e!==null&&(_e(e,n),ea(e))}function NA(e){var n=e.memoizedState,a=0;n!==null&&(a=n.retryLane),xy(e,a)}function CA(e,n){var a=0;switch(e.tag){case 31:case 13:var o=e.stateNode,u=e.memoizedState;u!==null&&(a=u.retryLane);break;case 19:o=e.stateNode;break;case 22:o=e.stateNode._retryCache;break;default:throw Error(s(314))}o!==null&&o.delete(n),xy(e,a)}function MA(e,n){return Ft(e,n)}var Xs=null,vo=null,Xd=!1,Ws=!1,Wd=!1,Qa=0;function ea(e){e!==vo&&e.next===null&&(vo===null?Xs=vo=e:vo=vo.next=e),Ws=!0,Xd||(Xd=!0,RA())}function _l(e,n){if(!Wd&&Ws){Wd=!0;do for(var a=!1,o=Xs;o!==null;){if(e!==0){var u=o.pendingLanes;if(u===0)var f=0;else{var y=o.suspendedLanes,_=o.pingedLanes;f=(1<<31-Nt(42|e)+1)-1,f&=u&~(y&~_),f=f&201326741?f&201326741|1:f?f|2:0}f!==0&&(a=!0,wy(o,f))}else f=nt,f=J(o,o===St?f:0,o.cancelPendingCommit!==null||o.timeoutHandle!==-1),(f&3)===0||fe(o,f)||(a=!0,wy(o,f));o=o.next}while(a);Wd=!1}}function OA(){vy()}function vy(){Ws=Xd=!1;var e=0;Qa!==0&&FA()&&(e=Qa);for(var n=Yt(),a=null,o=Xs;o!==null;){var u=o.next,f=_y(o,n);f===0?(o.next=null,a===null?Xs=u:a.next=u,u===null&&(vo=a)):(a=o,(e!==0||(f&3)!==0)&&(Ws=!0)),o=u}un!==0&&un!==5||_l(e),Qa!==0&&(Qa=0)}function _y(e,n){for(var a=e.suspendedLanes,o=e.pingedLanes,u=e.expirationTimes,f=e.pendingLanes&-62914561;0<f;){var y=31-Nt(f),_=1<<y,M=u[y];M===-1?((_&a)===0||(_&o)!==0)&&(u[y]=Me(_,n)):M<=n&&(e.expiredLanes|=_),f&=~_}if(n=St,a=nt,a=J(e,e===n?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),o=e.callbackNode,a===0||e===n&&(ht===2||ht===9)||e.cancelPendingCommit!==null)return o!==null&&o!==null&&Fi(o),e.callbackNode=null,e.callbackPriority=0;if((a&3)===0||fe(e,a)){if(n=a&-a,n===e.callbackPriority)return n;switch(o!==null&&Fi(o),Gi(a)){case 2:case 8:a=xe;break;case 32:a=Pe;break;case 268435456:a=rn;break;default:a=Pe}return o=Ey.bind(null,e),a=Ft(a,o),e.callbackPriority=n,e.callbackNode=a,n}return o!==null&&o!==null&&Fi(o),e.callbackPriority=2,e.callbackNode=null,2}function Ey(e,n){if(un!==0&&un!==5)return e.callbackNode=null,e.callbackPriority=0,null;var a=e.callbackNode;if(Qs()&&e.callbackNode!==a)return null;var o=nt;return o=J(e,e===St?o:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),o===0?null:(ay(e,o,n),_y(e,Yt()),e.callbackNode!=null&&e.callbackNode===a?Ey.bind(null,e):null)}function wy(e,n){if(Qs())return null;ay(e,n,!0)}function RA(){GA(function(){(ft&6)!==0?Ft(ce,OA):vy()})}function Jd(){if(Qa===0){var e=ro;e===0&&(e=Pi,Pi<<=1,(Pi&261888)===0&&(Pi=256)),Qa=e}return Qa}function Sy(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:pe(""+e)}function Ty(e,n){var a=n.ownerDocument.createElement("input");return a.name=n.name,a.value=n.value,e.id&&a.setAttribute("form",e.id),n.parentNode.insertBefore(a,n),e=new FormData(e),a.parentNode.removeChild(a),e}function DA(e,n,a,o,u){if(n==="submit"&&a&&a.stateNode===u){var f=Sy((u[ln]||null).action),y=o.submitter;y&&(n=(n=y[ln]||null)?Sy(n.formAction):y.getAttribute("formAction"),n!==null&&(f=n,y=null));var _=new Kr("action","action",null,o,u);e.push({event:_,listeners:[{instance:null,listener:function(){if(o.defaultPrevented){if(Qa!==0){var M=y?Ty(u,y):new FormData(u);kd(a,{pending:!0,data:M,method:u.method,action:f},null,M)}}else typeof f=="function"&&(_.preventDefault(),M=y?Ty(u,y):new FormData(u),kd(a,{pending:!0,data:M,method:u.method,action:f},f,M))},currentTarget:u}]})}}for(var ef=0;ef<Iu.length;ef++){var tf=Iu[ef],zA=tf.toLowerCase(),LA=tf[0].toUpperCase()+tf.slice(1);Li(zA,"on"+LA)}Li(ig,"onAnimationEnd"),Li(ag,"onAnimationIteration"),Li(rg,"onAnimationStart"),Li("dblclick","onDoubleClick"),Li("focusin","onFocus"),Li("focusout","onBlur"),Li(XT,"onTransitionRun"),Li(WT,"onTransitionStart"),Li(JT,"onTransitionCancel"),Li(og,"onTransitionEnd"),Se("onMouseEnter",["mouseout","mouseover"]),Se("onMouseLeave",["mouseout","mouseover"]),Se("onPointerEnter",["pointerout","pointerover"]),Se("onPointerLeave",["pointerout","pointerover"]),oe("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),oe("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),oe("onBeforeInput",["compositionend","keypress","textInput","paste"]),oe("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),oe("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),oe("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var El="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(" "),IA=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(El));function Ay(e,n){n=(n&4)!==0;for(var a=0;a<e.length;a++){var o=e[a],u=o.event;o=o.listeners;e:{var f=void 0;if(n)for(var y=o.length-1;0<=y;y--){var _=o[y],M=_.instance,j=_.currentTarget;if(_=_.listener,M!==f&&u.isPropagationStopped())break e;f=_,u.currentTarget=j;try{f(u)}catch(X){ps(X)}u.currentTarget=null,f=M}else for(y=0;y<o.length;y++){if(_=o[y],M=_.instance,j=_.currentTarget,_=_.listener,M!==f&&u.isPropagationStopped())break e;f=_,u.currentTarget=j;try{f(u)}catch(X){ps(X)}u.currentTarget=null,f=M}}}}function tt(e,n){var a=n[Yi];a===void 0&&(a=n[Yi]=new Set);var o=e+"__bubble";a.has(o)||(Ny(n,e,2,!1),a.add(o))}function nf(e,n,a){var o=0;n&&(o|=4),Ny(a,e,o,n)}var Js="_reactListening"+Math.random().toString(36).slice(2);function af(e){if(!e[Js]){e[Js]=!0,Ki.forEach(function(a){a!=="selectionchange"&&(IA.has(a)||nf(a,!1,e),nf(a,!0,e))});var n=e.nodeType===9?e:e.ownerDocument;n===null||n[Js]||(n[Js]=!0,nf("selectionchange",!1,n))}}function Ny(e,n,a,o){switch(ik(n)){case 2:var u=uN;break;case 8:u=dN;break;default:u=kf}a=u.bind(null,n,a,e),u=void 0,!$o||n!=="touchstart"&&n!=="touchmove"&&n!=="wheel"||(u=!0),o?u!==void 0?e.addEventListener(n,a,{capture:!0,passive:u}):e.addEventListener(n,a,!0):u!==void 0?e.addEventListener(n,a,{passive:u}):e.addEventListener(n,a,!1)}function rf(e,n,a,o,u){var f=o;if((n&1)===0&&(n&2)===0&&o!==null)e:for(;;){if(o===null)return;var y=o.tag;if(y===3||y===4){var _=o.stateNode.containerInfo;if(_===u)break;if(y===4)for(y=o.return;y!==null;){var M=y.tag;if((M===3||M===4)&&y.stateNode.containerInfo===u)return;y=y.return}for(;_!==null;){if(y=Ni(_),y===null)return;if(M=y.tag,M===5||M===6||M===26||M===27){o=f=y;continue e}_=_.parentNode}}o=o.return}ss(function(){var j=f,X=Ge(a),te=[];e:{var H=lg.get(e);if(H!==void 0){var P=Kr,Te=e;switch(e){case"keypress":if(Yn(a)===0)break e;case"keydown":case"keyup":P=yn;break;case"focusin":Te="focus",P=xr;break;case"focusout":Te="blur",P=xr;break;case"beforeblur":case"afterblur":P=xr;break;case"click":if(a.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":P=cs;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":P=Eu;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":P=Xt;break;case ig:case ag:case rg:P=Su;break;case og:P=za;break;case"scroll":case"scrollend":P=Vn;break;case"wheel":P=us;break;case"copy":case"cut":case"paste":P=Au;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":P=kn;break;case"toggle":case"beforetoggle":P=UT}var Ie=(n&4)!==0,xt=!Ie&&(e==="scroll"||e==="scrollend"),z=Ie?H!==null?H+"Capture":null:H;Ie=[];for(var D=j,q;D!==null;){var ee=D;if(q=ee.stateNode,ee=ee.tag,ee!==5&&ee!==26&&ee!==27||q===null||z===null||(ee=Ri(D,z),ee!=null&&Ie.push(wl(D,ee,q))),xt)break;D=D.return}0<Ie.length&&(H=new P(H,Te,null,a,X),te.push({event:H,listeners:Ie}))}}if((n&7)===0){e:{if(H=e==="mouseover"||e==="pointerover",P=e==="mouseout"||e==="pointerout",H&&a!==Be&&(Te=a.relatedTarget||a.fromElement)&&(Ni(Te)||Te[bi]))break e;if((P||H)&&(H=X.window===X?X:(H=X.ownerDocument)?H.defaultView||H.parentWindow:window,P?(Te=a.relatedTarget||a.toElement,P=j,Te=Te?Ni(Te):null,Te!==null&&(xt=c(Te),Ie=Te.tag,Te!==xt||Ie!==5&&Ie!==27&&Ie!==6)&&(Te=null)):(P=null,Te=j),P!==Te)){if(Ie=cs,ee="onMouseLeave",z="onMouseEnter",D="mouse",(e==="pointerout"||e==="pointerover")&&(Ie=kn,ee="onPointerLeave",z="onPointerEnter",D="pointer"),xt=P==null?H:ra(P),q=Te==null?H:ra(Te),H=new Ie(ee,D+"leave",P,a,X),H.target=xt,H.relatedTarget=q,ee=null,Ni(X)===j&&(Ie=new Ie(z,D+"enter",Te,a,X),Ie.target=q,Ie.relatedTarget=xt,ee=Ie),xt=ee,P&&Te)t:{for(Ie=BA,z=P,D=Te,q=0,ee=z;ee;ee=Ie(ee))q++;ee=0;for(var Oe=D;Oe;Oe=Ie(Oe))ee++;for(;0<q-ee;)z=Ie(z),q--;for(;0<ee-q;)D=Ie(D),ee--;for(;q--;){if(z===D||D!==null&&z===D.alternate){Ie=z;break t}z=Ie(z),D=Ie(D)}Ie=null}else Ie=null;P!==null&&Cy(te,H,P,Ie,!1),Te!==null&&xt!==null&&Cy(te,xt,Te,Ie,!0)}}e:{if(H=j?ra(j):window,P=H.nodeName&&H.nodeName.toLowerCase(),P==="select"||P==="input"&&H.type==="file")var st=Vh;else if(Gh(H))if($h)st=KT;else{st=VT;var Ce=YT}else P=H.nodeName,!P||P.toLowerCase()!=="input"||H.type!=="checkbox"&&H.type!=="radio"?j&&mt(j.elementType)&&(st=Vh):st=$T;if(st&&(st=st(e,j))){Yh(te,st,a,X);break e}Ce&&Ce(e,H,j),e==="focusout"&&j&&H.type==="number"&&j.memoizedProps.value!=null&&pn(H,"number",H.value)}switch(Ce=j?ra(j):window,e){case"focusin":(Gh(Ce)||Ce.contentEditable==="true")&&(Xr=Ce,Du=j,Jo=null);break;case"focusout":Jo=Du=Xr=null;break;case"mousedown":zu=!0;break;case"contextmenu":case"mouseup":case"dragend":zu=!1,tg(te,a,X);break;case"selectionchange":if(QT)break;case"keydown":case"keyup":tg(te,a,X)}var $e;if(Cu)e:{switch(e){case"compositionstart":var it="onCompositionStart";break e;case"compositionend":it="onCompositionEnd";break e;case"compositionupdate":it="onCompositionUpdate";break e}it=void 0}else Qr?Fh(e,a)&&(it="onCompositionEnd"):e==="keydown"&&a.keyCode===229&&(it="onCompositionStart");it&&(qh&&a.locale!=="ko"&&(Qr||it!=="onCompositionStart"?it==="onCompositionEnd"&&Qr&&($e=cn()):(Di=X,zi="value"in Di?Di.value:Di.textContent,Qr=!0)),Ce=ec(j,it),0<Ce.length&&(it=new V(it,e,null,a,X),te.push({event:it,listeners:Ce}),$e?it.data=$e:($e=Ph(a),$e!==null&&(it.data=$e)))),($e=jT?HT(e,a):FT(e,a))&&(it=ec(j,"onBeforeInput"),0<it.length&&(Ce=new V("onBeforeInput","beforeinput",null,a,X),te.push({event:Ce,listeners:it}),Ce.data=$e)),DA(te,e,j,a,X)}Ay(te,n)})}function wl(e,n,a){return{instance:e,listener:n,currentTarget:a}}function ec(e,n){for(var a=n+"Capture",o=[];e!==null;){var u=e,f=u.stateNode;if(u=u.tag,u!==5&&u!==26&&u!==27||f===null||(u=Ri(e,a),u!=null&&o.unshift(wl(e,u,f)),u=Ri(e,n),u!=null&&o.push(wl(e,u,f))),e.tag===3)return o;e=e.return}return[]}function BA(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Cy(e,n,a,o,u){for(var f=n._reactName,y=[];a!==null&&a!==o;){var _=a,M=_.alternate,j=_.stateNode;if(_=_.tag,M!==null&&M===o)break;_!==5&&_!==26&&_!==27||j===null||(M=j,u?(j=Ri(a,f),j!=null&&y.unshift(wl(a,j,M))):u||(j=Ri(a,f),j!=null&&y.push(wl(a,j,M)))),a=a.return}y.length!==0&&e.push({event:n,listeners:y})}var UA=/\r\n?/g,qA=/\u0000|\uFFFD/g;function My(e){return(typeof e=="string"?e:""+e).replace(UA,`
9
+ `).replace(qA,"")}function Oy(e,n){return n=My(n),My(e)===n}function kt(e,n,a,o,u,f){switch(a){case"children":typeof o=="string"?n==="body"||n==="textarea"&&o===""||Mi(e,o):(typeof o=="number"||typeof o=="bigint")&&n!=="body"&&Mi(e,""+o);break;case"className":yi(e,"class",o);break;case"tabIndex":yi(e,"tabindex",o);break;case"dir":case"role":case"viewBox":case"width":case"height":yi(e,a,o);break;case"style":Ra(e,o,f);break;case"data":if(n!=="object"){yi(e,"data",o);break}case"src":case"href":if(o===""&&(n!=="a"||a!=="href")){e.removeAttribute(a);break}if(o==null||typeof o=="function"||typeof o=="symbol"||typeof o=="boolean"){e.removeAttribute(a);break}o=pe(""+o),e.setAttribute(a,o);break;case"action":case"formAction":if(typeof o=="function"){e.setAttribute(a,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof f=="function"&&(a==="formAction"?(n!=="input"&&kt(e,n,"name",u.name,u,null),kt(e,n,"formEncType",u.formEncType,u,null),kt(e,n,"formMethod",u.formMethod,u,null),kt(e,n,"formTarget",u.formTarget,u,null)):(kt(e,n,"encType",u.encType,u,null),kt(e,n,"method",u.method,u,null),kt(e,n,"target",u.target,u,null)));if(o==null||typeof o=="symbol"||typeof o=="boolean"){e.removeAttribute(a);break}o=pe(""+o),e.setAttribute(a,o);break;case"onClick":o!=null&&(e.onclick=K);break;case"onScroll":o!=null&&tt("scroll",e);break;case"onScrollEnd":o!=null&&tt("scrollend",e);break;case"dangerouslySetInnerHTML":if(o!=null){if(typeof o!="object"||!("__html"in o))throw Error(s(61));if(a=o.__html,a!=null){if(u.children!=null)throw Error(s(60));e.innerHTML=a}}break;case"multiple":e.multiple=o&&typeof o!="function"&&typeof o!="symbol";break;case"muted":e.muted=o&&typeof o!="function"&&typeof o!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(o==null||typeof o=="function"||typeof o=="boolean"||typeof o=="symbol"){e.removeAttribute("xlink:href");break}a=pe(""+o),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",a);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":o!=null&&typeof o!="function"&&typeof o!="symbol"?e.setAttribute(a,""+o):e.removeAttribute(a);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":o&&typeof o!="function"&&typeof o!="symbol"?e.setAttribute(a,""):e.removeAttribute(a);break;case"capture":case"download":o===!0?e.setAttribute(a,""):o!==!1&&o!=null&&typeof o!="function"&&typeof o!="symbol"?e.setAttribute(a,o):e.removeAttribute(a);break;case"cols":case"rows":case"size":case"span":o!=null&&typeof o!="function"&&typeof o!="symbol"&&!isNaN(o)&&1<=o?e.setAttribute(a,o):e.removeAttribute(a);break;case"rowSpan":case"start":o==null||typeof o=="function"||typeof o=="symbol"||isNaN(o)?e.removeAttribute(a):e.setAttribute(a,o);break;case"popover":tt("beforetoggle",e),tt("toggle",e),fn(e,"popover",o);break;case"xlinkActuate":Mt(e,"http://www.w3.org/1999/xlink","xlink:actuate",o);break;case"xlinkArcrole":Mt(e,"http://www.w3.org/1999/xlink","xlink:arcrole",o);break;case"xlinkRole":Mt(e,"http://www.w3.org/1999/xlink","xlink:role",o);break;case"xlinkShow":Mt(e,"http://www.w3.org/1999/xlink","xlink:show",o);break;case"xlinkTitle":Mt(e,"http://www.w3.org/1999/xlink","xlink:title",o);break;case"xlinkType":Mt(e,"http://www.w3.org/1999/xlink","xlink:type",o);break;case"xmlBase":Mt(e,"http://www.w3.org/XML/1998/namespace","xml:base",o);break;case"xmlLang":Mt(e,"http://www.w3.org/XML/1998/namespace","xml:lang",o);break;case"xmlSpace":Mt(e,"http://www.w3.org/XML/1998/namespace","xml:space",o);break;case"is":fn(e,"is",o);break;case"innerText":case"textContent":break;default:(!(2<a.length)||a[0]!=="o"&&a[0]!=="O"||a[1]!=="n"&&a[1]!=="N")&&(a=gr.get(a)||a,fn(e,a,o))}}function of(e,n,a,o,u,f){switch(a){case"style":Ra(e,o,f);break;case"dangerouslySetInnerHTML":if(o!=null){if(typeof o!="object"||!("__html"in o))throw Error(s(61));if(a=o.__html,a!=null){if(u.children!=null)throw Error(s(60));e.innerHTML=a}}break;case"children":typeof o=="string"?Mi(e,o):(typeof o=="number"||typeof o=="bigint")&&Mi(e,""+o);break;case"onScroll":o!=null&&tt("scroll",e);break;case"onScrollEnd":o!=null&&tt("scrollend",e);break;case"onClick":o!=null&&(e.onclick=K);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!pr.hasOwnProperty(a))e:{if(a[0]==="o"&&a[1]==="n"&&(u=a.endsWith("Capture"),n=a.slice(2,u?a.length-7:void 0),f=e[ln]||null,f=f!=null?f[a]:null,typeof f=="function"&&e.removeEventListener(n,f,u),typeof o=="function")){typeof f!="function"&&f!==null&&(a in e?e[a]=null:e.hasAttribute(a)&&e.removeAttribute(a)),e.addEventListener(n,o,u);break e}a in e?e[a]=o:o===!0?e.setAttribute(a,""):fn(e,a,o)}}}function En(e,n,a){switch(n){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":tt("error",e),tt("load",e);var o=!1,u=!1,f;for(f in a)if(a.hasOwnProperty(f)){var y=a[f];if(y!=null)switch(f){case"src":o=!0;break;case"srcSet":u=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(s(137,n));default:kt(e,n,f,y,a,null)}}u&&kt(e,n,"srcSet",a.srcSet,a,null),o&&kt(e,n,"src",a.src,a,null);return;case"input":tt("invalid",e);var _=f=y=u=null,M=null,j=null;for(o in a)if(a.hasOwnProperty(o)){var X=a[o];if(X!=null)switch(o){case"name":u=X;break;case"type":y=X;break;case"checked":M=X;break;case"defaultChecked":j=X;break;case"value":f=X;break;case"defaultValue":_=X;break;case"children":case"dangerouslySetInnerHTML":if(X!=null)throw Error(s(137,n));break;default:kt(e,n,o,X,a,null)}}oa(e,f,_,M,j,y,u,!1);return;case"select":tt("invalid",e),o=y=f=null;for(u in a)if(a.hasOwnProperty(u)&&(_=a[u],_!=null))switch(u){case"value":f=_;break;case"defaultValue":y=_;break;case"multiple":o=_;default:kt(e,n,u,_,a,null)}n=f,a=y,e.multiple=!!o,n!=null?Ci(e,!!o,n,!1):a!=null&&Ci(e,!!o,a,!0);return;case"textarea":tt("invalid",e),f=u=o=null;for(y in a)if(a.hasOwnProperty(y)&&(_=a[y],_!=null))switch(y){case"value":o=_;break;case"defaultValue":u=_;break;case"children":f=_;break;case"dangerouslySetInnerHTML":if(_!=null)throw Error(s(91));break;default:kt(e,n,y,_,a,null)}Ue(e,o,u,f);return;case"option":for(M in a)a.hasOwnProperty(M)&&(o=a[M],o!=null)&&(M==="selected"?e.selected=o&&typeof o!="function"&&typeof o!="symbol":kt(e,n,M,o,a,null));return;case"dialog":tt("beforetoggle",e),tt("toggle",e),tt("cancel",e),tt("close",e);break;case"iframe":case"object":tt("load",e);break;case"video":case"audio":for(o=0;o<El.length;o++)tt(El[o],e);break;case"image":tt("error",e),tt("load",e);break;case"details":tt("toggle",e);break;case"embed":case"source":case"link":tt("error",e),tt("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(j in a)if(a.hasOwnProperty(j)&&(o=a[j],o!=null))switch(j){case"children":case"dangerouslySetInnerHTML":throw Error(s(137,n));default:kt(e,n,j,o,a,null)}return;default:if(mt(n)){for(X in a)a.hasOwnProperty(X)&&(o=a[X],o!==void 0&&of(e,n,X,o,a,void 0));return}}for(_ in a)a.hasOwnProperty(_)&&(o=a[_],o!=null&&kt(e,n,_,o,a,null))}function jA(e,n,a,o){switch(n){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var u=null,f=null,y=null,_=null,M=null,j=null,X=null;for(P in a){var te=a[P];if(a.hasOwnProperty(P)&&te!=null)switch(P){case"checked":break;case"value":break;case"defaultValue":M=te;default:o.hasOwnProperty(P)||kt(e,n,P,null,o,te)}}for(var H in o){var P=o[H];if(te=a[H],o.hasOwnProperty(H)&&(P!=null||te!=null))switch(H){case"type":f=P;break;case"name":u=P;break;case"checked":j=P;break;case"defaultChecked":X=P;break;case"value":y=P;break;case"defaultValue":_=P;break;case"children":case"dangerouslySetInnerHTML":if(P!=null)throw Error(s(137,n));break;default:P!==te&&kt(e,n,H,P,o,te)}}Qi(e,y,_,M,j,X,f,u);return;case"select":P=y=_=H=null;for(f in a)if(M=a[f],a.hasOwnProperty(f)&&M!=null)switch(f){case"value":break;case"multiple":P=M;default:o.hasOwnProperty(f)||kt(e,n,f,null,o,M)}for(u in o)if(f=o[u],M=a[u],o.hasOwnProperty(u)&&(f!=null||M!=null))switch(u){case"value":H=f;break;case"defaultValue":_=f;break;case"multiple":y=f;default:f!==M&&kt(e,n,u,f,o,M)}n=_,a=y,o=P,H!=null?Ci(e,!!a,H,!1):!!o!=!!a&&(n!=null?Ci(e,!!a,n,!0):Ci(e,!!a,a?[]:"",!1));return;case"textarea":P=H=null;for(_ in a)if(u=a[_],a.hasOwnProperty(_)&&u!=null&&!o.hasOwnProperty(_))switch(_){case"value":break;case"children":break;default:kt(e,n,_,null,o,u)}for(y in o)if(u=o[y],f=a[y],o.hasOwnProperty(y)&&(u!=null||f!=null))switch(y){case"value":H=u;break;case"defaultValue":P=u;break;case"children":break;case"dangerouslySetInnerHTML":if(u!=null)throw Error(s(91));break;default:u!==f&&kt(e,n,y,u,o,f)}ni(e,H,P);return;case"option":for(var Te in a)H=a[Te],a.hasOwnProperty(Te)&&H!=null&&!o.hasOwnProperty(Te)&&(Te==="selected"?e.selected=!1:kt(e,n,Te,null,o,H));for(M in o)H=o[M],P=a[M],o.hasOwnProperty(M)&&H!==P&&(H!=null||P!=null)&&(M==="selected"?e.selected=H&&typeof H!="function"&&typeof H!="symbol":kt(e,n,M,H,o,P));return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var Ie in a)H=a[Ie],a.hasOwnProperty(Ie)&&H!=null&&!o.hasOwnProperty(Ie)&&kt(e,n,Ie,null,o,H);for(j in o)if(H=o[j],P=a[j],o.hasOwnProperty(j)&&H!==P&&(H!=null||P!=null))switch(j){case"children":case"dangerouslySetInnerHTML":if(H!=null)throw Error(s(137,n));break;default:kt(e,n,j,H,o,P)}return;default:if(mt(n)){for(var xt in a)H=a[xt],a.hasOwnProperty(xt)&&H!==void 0&&!o.hasOwnProperty(xt)&&of(e,n,xt,void 0,o,H);for(X in o)H=o[X],P=a[X],!o.hasOwnProperty(X)||H===P||H===void 0&&P===void 0||of(e,n,X,H,o,P);return}}for(var z in a)H=a[z],a.hasOwnProperty(z)&&H!=null&&!o.hasOwnProperty(z)&&kt(e,n,z,null,o,H);for(te in o)H=o[te],P=a[te],!o.hasOwnProperty(te)||H===P||H==null&&P==null||kt(e,n,te,H,o,P)}function Ry(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function HA(){if(typeof performance.getEntriesByType=="function"){for(var e=0,n=0,a=performance.getEntriesByType("resource"),o=0;o<a.length;o++){var u=a[o],f=u.transferSize,y=u.initiatorType,_=u.duration;if(f&&_&&Ry(y)){for(y=0,_=u.responseEnd,o+=1;o<a.length;o++){var M=a[o],j=M.startTime;if(j>_)break;var X=M.transferSize,te=M.initiatorType;X&&Ry(te)&&(M=M.responseEnd,y+=X*(M<_?1:(_-j)/(M-j)))}if(--o,n+=8*(f+y)/(u.duration/1e3),e++,10<e)break}}if(0<e)return n/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var lf=null,sf=null;function tc(e){return e.nodeType===9?e:e.ownerDocument}function Dy(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function zy(e,n){if(e===0)switch(n){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&n==="foreignObject"?0:e}function cf(e,n){return e==="textarea"||e==="noscript"||typeof n.children=="string"||typeof n.children=="number"||typeof n.children=="bigint"||typeof n.dangerouslySetInnerHTML=="object"&&n.dangerouslySetInnerHTML!==null&&n.dangerouslySetInnerHTML.__html!=null}var uf=null;function FA(){var e=window.event;return e&&e.type==="popstate"?e===uf?!1:(uf=e,!0):(uf=null,!1)}var Ly=typeof setTimeout=="function"?setTimeout:void 0,PA=typeof clearTimeout=="function"?clearTimeout:void 0,Iy=typeof Promise=="function"?Promise:void 0,GA=typeof queueMicrotask=="function"?queueMicrotask:typeof Iy<"u"?function(e){return Iy.resolve(null).then(e).catch(YA)}:Ly;function YA(e){setTimeout(function(){throw e})}function Xa(e){return e==="head"}function By(e,n){var a=n,o=0;do{var u=a.nextSibling;if(e.removeChild(a),u&&u.nodeType===8)if(a=u.data,a==="/$"||a==="/&"){if(o===0){e.removeChild(u),So(n);return}o--}else if(a==="$"||a==="$?"||a==="$~"||a==="$!"||a==="&")o++;else if(a==="html")Sl(e.ownerDocument.documentElement);else if(a==="head"){a=e.ownerDocument.head,Sl(a);for(var f=a.firstChild;f;){var y=f.nextSibling,_=f.nodeName;f[Bn]||_==="SCRIPT"||_==="STYLE"||_==="LINK"&&f.rel.toLowerCase()==="stylesheet"||a.removeChild(f),f=y}}else a==="body"&&Sl(e.ownerDocument.body);a=u}while(a);So(n)}function Uy(e,n){var a=e;e=0;do{var o=a.nextSibling;if(a.nodeType===1?n?(a._stashedDisplay=a.style.display,a.style.display="none"):(a.style.display=a._stashedDisplay||"",a.getAttribute("style")===""&&a.removeAttribute("style")):a.nodeType===3&&(n?(a._stashedText=a.nodeValue,a.nodeValue=""):a.nodeValue=a._stashedText||""),o&&o.nodeType===8)if(a=o.data,a==="/$"){if(e===0)break;e--}else a!=="$"&&a!=="$?"&&a!=="$~"&&a!=="$!"||e++;a=o}while(a)}function df(e){var n=e.firstChild;for(n&&n.nodeType===10&&(n=n.nextSibling);n;){var a=n;switch(n=n.nextSibling,a.nodeName){case"HTML":case"HEAD":case"BODY":df(a),Mn(a);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(a.rel.toLowerCase()==="stylesheet")continue}e.removeChild(a)}}function VA(e,n,a,o){for(;e.nodeType===1;){var u=a;if(e.nodeName.toLowerCase()!==n.toLowerCase()){if(!o&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(o){if(!e[Bn])switch(n){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(f=e.getAttribute("rel"),f==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(f!==u.rel||e.getAttribute("href")!==(u.href==null||u.href===""?null:u.href)||e.getAttribute("crossorigin")!==(u.crossOrigin==null?null:u.crossOrigin)||e.getAttribute("title")!==(u.title==null?null:u.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(f=e.getAttribute("src"),(f!==(u.src==null?null:u.src)||e.getAttribute("type")!==(u.type==null?null:u.type)||e.getAttribute("crossorigin")!==(u.crossOrigin==null?null:u.crossOrigin))&&f&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(n==="input"&&e.type==="hidden"){var f=u.name==null?null:""+u.name;if(u.type==="hidden"&&e.getAttribute("name")===f)return e}else return e;if(e=Si(e.nextSibling),e===null)break}return null}function $A(e,n,a){if(n==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!a||(e=Si(e.nextSibling),e===null))return null;return e}function qy(e,n){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!n||(e=Si(e.nextSibling),e===null))return null;return e}function ff(e){return e.data==="$?"||e.data==="$~"}function pf(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function KA(e,n){var a=e.ownerDocument;if(e.data==="$~")e._reactRetry=n;else if(e.data!=="$?"||a.readyState!=="loading")n();else{var o=function(){n(),a.removeEventListener("DOMContentLoaded",o)};a.addEventListener("DOMContentLoaded",o),e._reactRetry=o}}function Si(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==="$?"||n==="$~"||n==="&"||n==="F!"||n==="F")break;if(n==="/$"||n==="/&")return null}}return e}var mf=null;function jy(e){e=e.nextSibling;for(var n=0;e;){if(e.nodeType===8){var a=e.data;if(a==="/$"||a==="/&"){if(n===0)return Si(e.nextSibling);n--}else a!=="$"&&a!=="$!"&&a!=="$?"&&a!=="$~"&&a!=="&"||n++}e=e.nextSibling}return null}function Hy(e){e=e.previousSibling;for(var n=0;e;){if(e.nodeType===8){var a=e.data;if(a==="$"||a==="$!"||a==="$?"||a==="$~"||a==="&"){if(n===0)return e;n--}else a!=="/$"&&a!=="/&"||n++}e=e.previousSibling}return null}function Fy(e,n,a){switch(n=tc(a),e){case"html":if(e=n.documentElement,!e)throw Error(s(452));return e;case"head":if(e=n.head,!e)throw Error(s(453));return e;case"body":if(e=n.body,!e)throw Error(s(454));return e;default:throw Error(s(451))}}function Sl(e){for(var n=e.attributes;n.length;)e.removeAttributeNode(n[0]);Mn(e)}var Ti=new Map,Py=new Set;function nc(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var Sa=Q.d;Q.d={f:ZA,r:QA,D:XA,C:WA,L:JA,m:eN,X:nN,S:tN,M:iN};function ZA(){var e=Sa.f(),n=$s();return e||n}function QA(e){var n=Gn(e);n!==null&&n.tag===5&&n.type==="form"?ob(n):Sa.r(e)}var _o=typeof document>"u"?null:document;function Gy(e,n,a){var o=_o;if(o&&typeof n=="string"&&n){var u=On(n);u='link[rel="'+e+'"][href="'+u+'"]',typeof a=="string"&&(u+='[crossorigin="'+a+'"]'),Py.has(u)||(Py.add(u),e={rel:e,crossOrigin:a,href:n},o.querySelector(u)===null&&(n=o.createElement("link"),En(n,"link",e),Lt(n),o.head.appendChild(n)))}}function XA(e){Sa.D(e),Gy("dns-prefetch",e,null)}function WA(e,n){Sa.C(e,n),Gy("preconnect",e,n)}function JA(e,n,a){Sa.L(e,n,a);var o=_o;if(o&&e&&n){var u='link[rel="preload"][as="'+On(n)+'"]';n==="image"&&a&&a.imageSrcSet?(u+='[imagesrcset="'+On(a.imageSrcSet)+'"]',typeof a.imageSizes=="string"&&(u+='[imagesizes="'+On(a.imageSizes)+'"]')):u+='[href="'+On(e)+'"]';var f=u;switch(n){case"style":f=Eo(e);break;case"script":f=wo(e)}Ti.has(f)||(e=k({rel:"preload",href:n==="image"&&a&&a.imageSrcSet?void 0:e,as:n},a),Ti.set(f,e),o.querySelector(u)!==null||n==="style"&&o.querySelector(Tl(f))||n==="script"&&o.querySelector(Al(f))||(n=o.createElement("link"),En(n,"link",e),Lt(n),o.head.appendChild(n)))}}function eN(e,n){Sa.m(e,n);var a=_o;if(a&&e){var o=n&&typeof n.as=="string"?n.as:"script",u='link[rel="modulepreload"][as="'+On(o)+'"][href="'+On(e)+'"]',f=u;switch(o){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":f=wo(e)}if(!Ti.has(f)&&(e=k({rel:"modulepreload",href:e},n),Ti.set(f,e),a.querySelector(u)===null)){switch(o){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(a.querySelector(Al(f)))return}o=a.createElement("link"),En(o,"link",e),Lt(o),a.head.appendChild(o)}}}function tN(e,n,a){Sa.S(e,n,a);var o=_o;if(o&&e){var u=ti(o).hoistableStyles,f=Eo(e);n=n||"default";var y=u.get(f);if(!y){var _={loading:0,preload:null};if(y=o.querySelector(Tl(f)))_.loading=5;else{e=k({rel:"stylesheet",href:e,"data-precedence":n},a),(a=Ti.get(f))&&hf(e,a);var M=y=o.createElement("link");Lt(M),En(M,"link",e),M._p=new Promise(function(j,X){M.onload=j,M.onerror=X}),M.addEventListener("load",function(){_.loading|=1}),M.addEventListener("error",function(){_.loading|=2}),_.loading|=4,ic(y,n,o)}y={type:"stylesheet",instance:y,count:1,state:_},u.set(f,y)}}}function nN(e,n){Sa.X(e,n);var a=_o;if(a&&e){var o=ti(a).hoistableScripts,u=wo(e),f=o.get(u);f||(f=a.querySelector(Al(u)),f||(e=k({src:e,async:!0},n),(n=Ti.get(u))&&gf(e,n),f=a.createElement("script"),Lt(f),En(f,"link",e),a.head.appendChild(f)),f={type:"script",instance:f,count:1,state:null},o.set(u,f))}}function iN(e,n){Sa.M(e,n);var a=_o;if(a&&e){var o=ti(a).hoistableScripts,u=wo(e),f=o.get(u);f||(f=a.querySelector(Al(u)),f||(e=k({src:e,async:!0,type:"module"},n),(n=Ti.get(u))&&gf(e,n),f=a.createElement("script"),Lt(f),En(f,"link",e),a.head.appendChild(f)),f={type:"script",instance:f,count:1,state:null},o.set(u,f))}}function Yy(e,n,a,o){var u=(u=W.current)?nc(u):null;if(!u)throw Error(s(446));switch(e){case"meta":case"title":return null;case"style":return typeof a.precedence=="string"&&typeof a.href=="string"?(n=Eo(a.href),a=ti(u).hoistableStyles,o=a.get(n),o||(o={type:"style",instance:null,count:0,state:null},a.set(n,o)),o):{type:"void",instance:null,count:0,state:null};case"link":if(a.rel==="stylesheet"&&typeof a.href=="string"&&typeof a.precedence=="string"){e=Eo(a.href);var f=ti(u).hoistableStyles,y=f.get(e);if(y||(u=u.ownerDocument||u,y={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},f.set(e,y),(f=u.querySelector(Tl(e)))&&!f._p&&(y.instance=f,y.state.loading=5),Ti.has(e)||(a={rel:"preload",as:"style",href:a.href,crossOrigin:a.crossOrigin,integrity:a.integrity,media:a.media,hrefLang:a.hrefLang,referrerPolicy:a.referrerPolicy},Ti.set(e,a),f||aN(u,e,a,y.state))),n&&o===null)throw Error(s(528,""));return y}if(n&&o!==null)throw Error(s(529,""));return null;case"script":return n=a.async,a=a.src,typeof a=="string"&&n&&typeof n!="function"&&typeof n!="symbol"?(n=wo(a),a=ti(u).hoistableScripts,o=a.get(n),o||(o={type:"script",instance:null,count:0,state:null},a.set(n,o)),o):{type:"void",instance:null,count:0,state:null};default:throw Error(s(444,e))}}function Eo(e){return'href="'+On(e)+'"'}function Tl(e){return'link[rel="stylesheet"]['+e+"]"}function Vy(e){return k({},e,{"data-precedence":e.precedence,precedence:null})}function aN(e,n,a,o){e.querySelector('link[rel="preload"][as="style"]['+n+"]")?o.loading=1:(n=e.createElement("link"),o.preload=n,n.addEventListener("load",function(){return o.loading|=1}),n.addEventListener("error",function(){return o.loading|=2}),En(n,"link",a),Lt(n),e.head.appendChild(n))}function wo(e){return'[src="'+On(e)+'"]'}function Al(e){return"script[async]"+e}function $y(e,n,a){if(n.count++,n.instance===null)switch(n.type){case"style":var o=e.querySelector('style[data-href~="'+On(a.href)+'"]');if(o)return n.instance=o,Lt(o),o;var u=k({},a,{"data-href":a.href,"data-precedence":a.precedence,href:null,precedence:null});return o=(e.ownerDocument||e).createElement("style"),Lt(o),En(o,"style",u),ic(o,a.precedence,e),n.instance=o;case"stylesheet":u=Eo(a.href);var f=e.querySelector(Tl(u));if(f)return n.state.loading|=4,n.instance=f,Lt(f),f;o=Vy(a),(u=Ti.get(u))&&hf(o,u),f=(e.ownerDocument||e).createElement("link"),Lt(f);var y=f;return y._p=new Promise(function(_,M){y.onload=_,y.onerror=M}),En(f,"link",o),n.state.loading|=4,ic(f,a.precedence,e),n.instance=f;case"script":return f=wo(a.src),(u=e.querySelector(Al(f)))?(n.instance=u,Lt(u),u):(o=a,(u=Ti.get(f))&&(o=k({},a),gf(o,u)),e=e.ownerDocument||e,u=e.createElement("script"),Lt(u),En(u,"link",o),e.head.appendChild(u),n.instance=u);case"void":return null;default:throw Error(s(443,n.type))}else n.type==="stylesheet"&&(n.state.loading&4)===0&&(o=n.instance,n.state.loading|=4,ic(o,a.precedence,e));return n.instance}function ic(e,n,a){for(var o=a.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),u=o.length?o[o.length-1]:null,f=u,y=0;y<o.length;y++){var _=o[y];if(_.dataset.precedence===n)f=_;else if(f!==u)break}f?f.parentNode.insertBefore(e,f.nextSibling):(n=a.nodeType===9?a.head:a,n.insertBefore(e,n.firstChild))}function hf(e,n){e.crossOrigin==null&&(e.crossOrigin=n.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=n.referrerPolicy),e.title==null&&(e.title=n.title)}function gf(e,n){e.crossOrigin==null&&(e.crossOrigin=n.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=n.referrerPolicy),e.integrity==null&&(e.integrity=n.integrity)}var ac=null;function Ky(e,n,a){if(ac===null){var o=new Map,u=ac=new Map;u.set(a,o)}else u=ac,o=u.get(a),o||(o=new Map,u.set(a,o));if(o.has(e))return o;for(o.set(e,null),a=a.getElementsByTagName(e),u=0;u<a.length;u++){var f=a[u];if(!(f[Bn]||f[zt]||e==="link"&&f.getAttribute("rel")==="stylesheet")&&f.namespaceURI!=="http://www.w3.org/2000/svg"){var y=f.getAttribute(n)||"";y=e+y;var _=o.get(y);_?_.push(f):o.set(y,[f])}}return o}function Zy(e,n,a){e=e.ownerDocument||e,e.head.insertBefore(a,n==="title"?e.querySelector("head > title"):null)}function rN(e,n,a){if(a===1||n.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof n.precedence!="string"||typeof n.href!="string"||n.href==="")break;return!0;case"link":if(typeof n.rel!="string"||typeof n.href!="string"||n.href===""||n.onLoad||n.onError)break;return n.rel==="stylesheet"?(e=n.disabled,typeof n.precedence=="string"&&e==null):!0;case"script":if(n.async&&typeof n.async!="function"&&typeof n.async!="symbol"&&!n.onLoad&&!n.onError&&n.src&&typeof n.src=="string")return!0}return!1}function Qy(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function oN(e,n,a,o){if(a.type==="stylesheet"&&(typeof o.media!="string"||matchMedia(o.media).matches!==!1)&&(a.state.loading&4)===0){if(a.instance===null){var u=Eo(o.href),f=n.querySelector(Tl(u));if(f){n=f._p,n!==null&&typeof n=="object"&&typeof n.then=="function"&&(e.count++,e=rc.bind(e),n.then(e,e)),a.state.loading|=4,a.instance=f,Lt(f);return}f=n.ownerDocument||n,o=Vy(o),(u=Ti.get(u))&&hf(o,u),f=f.createElement("link"),Lt(f);var y=f;y._p=new Promise(function(_,M){y.onload=_,y.onerror=M}),En(f,"link",o),a.instance=f}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(a,n),(n=a.state.preload)&&(a.state.loading&3)===0&&(e.count++,a=rc.bind(e),n.addEventListener("load",a),n.addEventListener("error",a))}}var bf=0;function lN(e,n){return e.stylesheets&&e.count===0&&lc(e,e.stylesheets),0<e.count||0<e.imgCount?function(a){var o=setTimeout(function(){if(e.stylesheets&&lc(e,e.stylesheets),e.unsuspend){var f=e.unsuspend;e.unsuspend=null,f()}},6e4+n);0<e.imgBytes&&bf===0&&(bf=62500*HA());var u=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&lc(e,e.stylesheets),e.unsuspend)){var f=e.unsuspend;e.unsuspend=null,f()}},(e.imgBytes>bf?50:800)+n);return e.unsuspend=a,function(){e.unsuspend=null,clearTimeout(o),clearTimeout(u)}}:null}function rc(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)lc(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var oc=null;function lc(e,n){e.stylesheets=null,e.unsuspend!==null&&(e.count++,oc=new Map,n.forEach(sN,e),oc=null,rc.call(e))}function sN(e,n){if(!(n.state.loading&4)){var a=oc.get(e);if(a)var o=a.get(null);else{a=new Map,oc.set(e,a);for(var u=e.querySelectorAll("link[data-precedence],style[data-precedence]"),f=0;f<u.length;f++){var y=u[f];(y.nodeName==="LINK"||y.getAttribute("media")!=="not all")&&(a.set(y.dataset.precedence,y),o=y)}o&&a.set(null,o)}u=n.instance,y=u.getAttribute("data-precedence"),f=a.get(y)||o,f===o&&a.set(null,u),a.set(y,u),this.count++,o=rc.bind(this),u.addEventListener("load",o),u.addEventListener("error",o),f?f.parentNode.insertBefore(u,f.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(u,e.firstChild)),n.state.loading|=4}}var Nl={$$typeof:F,Provider:null,Consumer:null,_currentValue:ye,_currentValue2:ye,_threadCount:0};function cN(e,n,a,o,u,f,y,_,M){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=lt(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=lt(0),this.hiddenUpdates=lt(null),this.identifierPrefix=o,this.onUncaughtError=u,this.onCaughtError=f,this.onRecoverableError=y,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=M,this.incompleteTransitions=new Map}function Xy(e,n,a,o,u,f,y,_,M,j,X,te){return e=new cN(e,n,a,y,M,j,X,te,_),n=1,f===!0&&(n|=24),f=li(3,null,null,n),e.current=f,f.stateNode=e,n=Zu(),n.refCount++,e.pooledCache=n,n.refCount++,f.memoizedState={element:o,isDehydrated:a,cache:n},Ju(f),e}function Wy(e){return e?(e=eo,e):eo}function Jy(e,n,a,o,u,f){u=Wy(u),o.context===null?o.context=u:o.pendingContext=u,o=ja(n),o.payload={element:a},f=f===void 0?null:f,f!==null&&(o.callback=f),a=Ha(e,o,n),a!==null&&(Xn(a,e,n),ol(a,e,n))}function ek(e,n){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var a=e.retryLane;e.retryLane=a!==0&&a<n?a:n}}function yf(e,n){ek(e,n),(e=e.alternate)&&ek(e,n)}function tk(e){if(e.tag===13||e.tag===31){var n=Er(e,67108864);n!==null&&Xn(n,e,67108864),yf(e,67108864)}}function nk(e){if(e.tag===13||e.tag===31){var n=fi();n=Pn(n);var a=Er(e,n);a!==null&&Xn(a,e,n),yf(e,n)}}var sc=!0;function uN(e,n,a,o){var u=$.T;$.T=null;var f=Q.p;try{Q.p=2,kf(e,n,a,o)}finally{Q.p=f,$.T=u}}function dN(e,n,a,o){var u=$.T;$.T=null;var f=Q.p;try{Q.p=8,kf(e,n,a,o)}finally{Q.p=f,$.T=u}}function kf(e,n,a,o){if(sc){var u=xf(o);if(u===null)rf(e,n,o,cc,a),ak(e,o);else if(pN(u,e,n,a,o))o.stopPropagation();else if(ak(e,o),n&4&&-1<fN.indexOf(e)){for(;u!==null;){var f=Gn(u);if(f!==null)switch(f.tag){case 3:if(f=f.stateNode,f.current.memoizedState.isDehydrated){var y=O(f.pendingLanes);if(y!==0){var _=f;for(_.pendingLanes|=2,_.entangledLanes|=2;y;){var M=1<<31-Nt(y);_.entanglements[1]|=M,y&=~M}ea(f),(ft&6)===0&&(Ys=Yt()+500,_l(0))}}break;case 31:case 13:_=Er(f,2),_!==null&&Xn(_,f,2),$s(),yf(f,2)}if(f=xf(o),f===null&&rf(e,n,o,cc,a),f===u)break;u=f}u!==null&&o.stopPropagation()}else rf(e,n,o,null,a)}}function xf(e){return e=Ge(e),vf(e)}var cc=null;function vf(e){if(cc=null,e=Ni(e),e!==null){var n=c(e);if(n===null)e=null;else{var a=n.tag;if(a===13){if(e=p(n),e!==null)return e;e=null}else if(a===31){if(e=h(n),e!==null)return e;e=null}else if(a===3){if(n.stateNode.current.memoizedState.isDehydrated)return n.tag===3?n.stateNode.containerInfo:null;e=null}else n!==e&&(e=null)}}return cc=e,null}function ik(e){switch(e){case"beforetoggle":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"toggle":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 2;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"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(U()){case ce:return 2;case xe:return 8;case Pe:case ot:return 32;case rn:return 268435456;default:return 32}default:return 32}}var _f=!1,Wa=null,Ja=null,er=null,Cl=new Map,Ml=new Map,tr=[],fN="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".split(" ");function ak(e,n){switch(e){case"focusin":case"focusout":Wa=null;break;case"dragenter":case"dragleave":Ja=null;break;case"mouseover":case"mouseout":er=null;break;case"pointerover":case"pointerout":Cl.delete(n.pointerId);break;case"gotpointercapture":case"lostpointercapture":Ml.delete(n.pointerId)}}function Ol(e,n,a,o,u,f){return e===null||e.nativeEvent!==f?(e={blockedOn:n,domEventName:a,eventSystemFlags:o,nativeEvent:f,targetContainers:[u]},n!==null&&(n=Gn(n),n!==null&&tk(n)),e):(e.eventSystemFlags|=o,n=e.targetContainers,u!==null&&n.indexOf(u)===-1&&n.push(u),e)}function pN(e,n,a,o,u){switch(n){case"focusin":return Wa=Ol(Wa,e,n,a,o,u),!0;case"dragenter":return Ja=Ol(Ja,e,n,a,o,u),!0;case"mouseover":return er=Ol(er,e,n,a,o,u),!0;case"pointerover":var f=u.pointerId;return Cl.set(f,Ol(Cl.get(f)||null,e,n,a,o,u)),!0;case"gotpointercapture":return f=u.pointerId,Ml.set(f,Ol(Ml.get(f)||null,e,n,a,o,u)),!0}return!1}function rk(e){var n=Ni(e.target);if(n!==null){var a=c(n);if(a!==null){if(n=a.tag,n===13){if(n=p(a),n!==null){e.blockedOn=n,fr(e.priority,function(){nk(a)});return}}else if(n===31){if(n=h(a),n!==null){e.blockedOn=n,fr(e.priority,function(){nk(a)});return}}else if(n===3&&a.stateNode.current.memoizedState.isDehydrated){e.blockedOn=a.tag===3?a.stateNode.containerInfo:null;return}}}e.blockedOn=null}function uc(e){if(e.blockedOn!==null)return!1;for(var n=e.targetContainers;0<n.length;){var a=xf(e.nativeEvent);if(a===null){a=e.nativeEvent;var o=new a.constructor(a.type,a);Be=o,a.target.dispatchEvent(o),Be=null}else return n=Gn(a),n!==null&&tk(n),e.blockedOn=a,!1;n.shift()}return!0}function ok(e,n,a){uc(e)&&a.delete(n)}function mN(){_f=!1,Wa!==null&&uc(Wa)&&(Wa=null),Ja!==null&&uc(Ja)&&(Ja=null),er!==null&&uc(er)&&(er=null),Cl.forEach(ok),Ml.forEach(ok)}function dc(e,n){e.blockedOn===n&&(e.blockedOn=null,_f||(_f=!0,i.unstable_scheduleCallback(i.unstable_NormalPriority,mN)))}var fc=null;function lk(e){fc!==e&&(fc=e,i.unstable_scheduleCallback(i.unstable_NormalPriority,function(){fc===e&&(fc=null);for(var n=0;n<e.length;n+=3){var a=e[n],o=e[n+1],u=e[n+2];if(typeof o!="function"){if(vf(o||a)===null)continue;break}var f=Gn(a);f!==null&&(e.splice(n,3),n-=3,kd(f,{pending:!0,data:u,method:a.method,action:o},o,u))}}))}function So(e){function n(M){return dc(M,e)}Wa!==null&&dc(Wa,e),Ja!==null&&dc(Ja,e),er!==null&&dc(er,e),Cl.forEach(n),Ml.forEach(n);for(var a=0;a<tr.length;a++){var o=tr[a];o.blockedOn===e&&(o.blockedOn=null)}for(;0<tr.length&&(a=tr[0],a.blockedOn===null);)rk(a),a.blockedOn===null&&tr.shift();if(a=(e.ownerDocument||e).$$reactFormReplay,a!=null)for(o=0;o<a.length;o+=3){var u=a[o],f=a[o+1],y=u[ln]||null;if(typeof f=="function")y||lk(a);else if(y){var _=null;if(f&&f.hasAttribute("formAction")){if(u=f,y=f[ln]||null)_=y.formAction;else if(vf(u)!==null)continue}else _=y.action;typeof _=="function"?a[o+1]=_:(a.splice(o,3),o-=3),lk(a)}}}function sk(){function e(f){f.canIntercept&&f.info==="react-transition"&&f.intercept({handler:function(){return new Promise(function(y){return u=y})},focusReset:"manual",scroll:"manual"})}function n(){u!==null&&(u(),u=null),o||setTimeout(a,20)}function a(){if(!o&&!navigation.transition){var f=navigation.currentEntry;f&&f.url!=null&&navigation.navigate(f.url,{state:f.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var o=!1,u=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",n),navigation.addEventListener("navigateerror",n),setTimeout(a,100),function(){o=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",n),navigation.removeEventListener("navigateerror",n),u!==null&&(u(),u=null)}}}function Ef(e){this._internalRoot=e}pc.prototype.render=Ef.prototype.render=function(e){var n=this._internalRoot;if(n===null)throw Error(s(409));var a=n.current,o=fi();Jy(a,o,e,n,null,null)},pc.prototype.unmount=Ef.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var n=e.containerInfo;Jy(e.current,2,null,e,null,null),$s(),n[bi]=null}};function pc(e){this._internalRoot=e}pc.prototype.unstable_scheduleHydration=function(e){if(e){var n=Ma();e={blockedOn:null,target:e,priority:n};for(var a=0;a<tr.length&&n!==0&&n<tr[a].priority;a++);tr.splice(a,0,e),a===0&&rk(e)}};var ck=r.version;if(ck!=="19.2.7")throw Error(s(527,ck,"19.2.7"));Q.findDOMNode=function(e){var n=e._reactInternals;if(n===void 0)throw typeof e.render=="function"?Error(s(188)):(e=Object.keys(e).join(","),Error(s(268,e)));return e=g(n),e=e!==null?b(e):null,e=e===null?null:e.stateNode,e};var hN={bundleType:0,version:"19.2.7",rendererPackageName:"react-dom",currentDispatcherRef:$,reconcilerVersion:"19.2.7"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var mc=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!mc.isDisabled&&mc.supportsFiber)try{Cn=mc.inject(hN),jt=mc}catch{}}return Ao.createRoot=function(e,n){if(!d(e))throw Error(s(299));var a=!1,o="",u=gb,f=bb,y=yb;return n!=null&&(n.unstable_strictMode===!0&&(a=!0),n.identifierPrefix!==void 0&&(o=n.identifierPrefix),n.onUncaughtError!==void 0&&(u=n.onUncaughtError),n.onCaughtError!==void 0&&(f=n.onCaughtError),n.onRecoverableError!==void 0&&(y=n.onRecoverableError)),n=Xy(e,1,!1,null,null,a,o,null,u,f,y,sk),e[bi]=n.current,af(e),new Ef(n)},Ao.hydrateRoot=function(e,n,a){if(!d(e))throw Error(s(299));var o=!1,u="",f=gb,y=bb,_=yb,M=null;return a!=null&&(a.unstable_strictMode===!0&&(o=!0),a.identifierPrefix!==void 0&&(u=a.identifierPrefix),a.onUncaughtError!==void 0&&(f=a.onUncaughtError),a.onCaughtError!==void 0&&(y=a.onCaughtError),a.onRecoverableError!==void 0&&(_=a.onRecoverableError),a.formState!==void 0&&(M=a.formState)),n=Xy(e,1,!0,n,a??null,o,u,M,f,y,_,sk),n.context=Wy(null),a=n.current,o=fi(),o=Pn(o),u=ja(o),u.callback=null,Ha(a,u,o),a=o,n.current.lanes=a,_e(n,a),ea(n),e[bi]=n.current,af(e),new pc(n)},Ao.version="19.2.7",Ao}var zf;function bk(){if(zf)return bc.exports;zf=1;function t(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(i){console.error(i)}}return t(),bc.exports=gk(),bc.exports}var yk=bk();function Lf(t){var i,r,l="";if(typeof t=="string"||typeof t=="number")l+=t;else if(typeof t=="object")if(Array.isArray(t)){var s=t.length;for(i=0;i<s;i++)t[i]&&(r=Lf(t[i]))&&(l&&(l+=" "),l+=r)}else for(r in t)t[r]&&(l&&(l+=" "),l+=r);return l}function ir(){for(var t,i,r=0,l="",s=arguments.length;r<s;r++)(t=arguments[r])&&(i=Lf(t))&&(l&&(l+=" "),l+=i);return l}var G=vc(),kk=Rf();function If({className:t,primaryColor:i="#0F766E",style:r}){return v.jsxs("svg",{className:t,style:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 320 320",role:"img","aria-labelledby":"title desc",children:[v.jsxs("g",{fill:"none",stroke:i,strokeWidth:"34",strokeLinecap:"round",strokeLinejoin:"round",children:[v.jsx("path",{d:"M60 244 L132 88 Q142 66 160 66 Q178 66 188 88 L260 244"}),v.jsx("path",{d:"M60 244 H108"})]}),v.jsx("circle",{cx:"160",cy:"226",r:"18",fill:i})]})}function xk({className:t,primaryColor:i="#0F766E",secondaryColor:r="#0F1B3D",style:l}){return v.jsx("svg",{className:t,style:l,viewBox:"0 0 1000 320",xmlns:"http://www.w3.org/2000/svg",children:v.jsxs("g",{id:"Group",children:[v.jsx("path",{id:"Path",fill:"none",stroke:i,strokeWidth:"30",strokeLinecap:"round",strokeLinejoin:"round",d:"M 90 235 L 175 78 C 182.333333 64.666667 193.333333 58 208 58 C 222.666667 58 233.666667 64.666667 241 78 L 326 235"}),v.jsx("path",{id:"path1",fill:"none",stroke:i,strokeWidth:"30",strokeLinecap:"round",strokeLinejoin:"round",d:"M 91 235 L 142 235"}),v.jsx("path",{id:"path2",fill:i,stroke:"none",d:"M 203 223 C 203 232.38884 195.38884 240 186 240 C 176.61116 240 169 232.38884 169 223 C 169 213.61116 176.61116 206 186 206 C 195.38884 206 203 213.61116 203 223 Z"}),v.jsx("path",{id:"path3",fill:"none",stroke:r,strokeWidth:"30",strokeLinecap:"round",strokeLinejoin:"round",d:"M 365 62 L 365 238"}),v.jsx("path",{id:"path4",fill:"none",stroke:r,strokeWidth:"30",strokeLinecap:"round",strokeLinejoin:"round",d:"M 365 168 L 458 84"}),v.jsx("path",{id:"path5",fill:"none",stroke:r,strokeWidth:"30",strokeLinecap:"round",strokeLinejoin:"round",d:"M 398 139 L 468 238"}),v.jsx("path",{id:"path6",fill:"none",stroke:r,strokeWidth:"30",strokeLinecap:"round",strokeLinejoin:"round",d:"M 520 118 L 520 238"}),v.jsx("path",{id:"path7",fill:i,stroke:"none",d:"M 536 72 C 536 80.836548 528.836548 88 520 88 C 511.163452 88 504 80.836548 504 72 C 504 63.163452 511.163452 56 520 56 C 528.836548 56 536 63.163452 536 72 Z"}),v.jsx("path",{id:"path8",fill:"none",stroke:r,strokeWidth:"30",strokeLinecap:"round",strokeLinejoin:"round",d:"M 598 62 L 598 205 C 598 227 608 238 628 238 L 650 238"}),v.jsx("path",{id:"path9",fill:"none",stroke:r,strokeWidth:"30",strokeLinecap:"round",strokeLinejoin:"round",d:"M 710 118 L 710 238"}),v.jsx("path",{id:"path10",fill:i,stroke:"none",d:"M 726 72 C 726 80.836548 718.836548 88 710 88 C 701.163452 88 694 80.836548 694 72 C 694 63.163452 701.163452 56 710 56 C 718.836548 56 726 63.163452 726 72 Z"}),v.jsx("path",{id:"path11",fill:"none",stroke:i,strokeWidth:"30",strokeLinecap:"round",strokeLinejoin:"round",d:"M 921 178 C 921 214.45079 891.450806 244 855 244 C 818.549194 244 789 214.45079 789 178 C 789 141.54921 818.549194 112 855 112 C 891.450806 112 921 141.54921 921 178 Z"})]})})}function Bf(t){return v.jsx("svg",{viewBox:"0 0 20 20",fill:"none","aria-hidden":"true",...t,children:v.jsx("path",{d:"M10 2.5 11.3 6l3.5 1.3-3.5 1.2L10 12l-1.3-3.5-3.5-1.2L8.7 6 10 2.5ZM15.5 11.5l.7 1.8 1.8.7-1.8.7-.7 1.8-.7-1.8-1.8-.7 1.8-.7.7-1.8ZM4.8 11.8l.7 1.7 1.7.7-1.7.6-.7 1.8-.7-1.8-1.7-.6 1.7-.7.7-1.7Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"})})}function Uf(t){return v.jsxs("svg",{viewBox:"0 0 20 20",fill:"none","aria-hidden":"true",...t,children:[v.jsx("path",{d:"M17.2 2.8 8.8 11.2",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round"}),v.jsx("path",{d:"m17.2 2.8-5.4 15-3-6.6-6.6-3 15-5.4Z",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round",strokeLinejoin:"round"})]})}function qf(t){return v.jsx("svg",{viewBox:"0 0 20 20",fill:"none","aria-hidden":"true",...t,children:v.jsx("path",{d:"m5.5 5.5 9 9M14.5 5.5l-9 9",stroke:"currentColor",strokeWidth:"1.7",strokeLinecap:"round"})})}function vk(t){return v.jsx("svg",{viewBox:"0 0 20 20",fill:"none","aria-hidden":"true",...t,children:v.jsx("path",{d:"M7.5 3.8h5M4.5 6.2h11M6 6.2l.7 10h6.6l.7-10",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})}function _k(t){return v.jsxs("svg",{viewBox:"0 0 20 20",fill:"none","aria-hidden":"true",...t,children:[v.jsx("path",{d:"M2.7 4.2h1.7l1.4 8a1.5 1.5 0 0 0 1.5 1.25h6.1a1.5 1.5 0 0 0 1.45-1.2L16 6.8H5",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),v.jsx("circle",{cx:"7.7",cy:"16.1",r:"1",fill:"currentColor"}),v.jsx("circle",{cx:"13.4",cy:"16.1",r:"1",fill:"currentColor"})]})}function Ek(t){return v.jsx("svg",{viewBox:"0 0 20 20",fill:"none","aria-hidden":"true",...t,children:v.jsx("path",{d:"M6.8 8.5v8M6.8 8.5H4.2c-.8 0-1.4.6-1.4 1.4v5.2c0 .8.6 1.4 1.4 1.4h2.6M6.8 8.5l3.7-5.2c.7-1 2.2-.5 2.2.7v3.1h2.6c1.1 0 2 .9 1.8 2l-.8 5.6c-.1 1-1 1.8-2 1.8H6.8",stroke:"currentColor",strokeWidth:"1.45",strokeLinecap:"round",strokeLinejoin:"round"})})}function wk(t){return v.jsx("svg",{viewBox:"0 0 20 20",fill:"none","aria-hidden":"true",...t,children:v.jsx("path",{d:"M13.2 11.5v-8M13.2 11.5h2.6c.8 0 1.4-.6 1.4-1.4V4.9c0-.8-.6-1.4-1.4-1.4h-2.6M13.2 11.5l-3.7 5.2c-.7 1-2.2.5-2.2-.7v-3.1H4.7c-1.1 0-2-.9-1.8-2l.8-5.6c.1-1 1-1.8 2-1.8h7.5",stroke:"currentColor",strokeWidth:"1.45",strokeLinecap:"round",strokeLinejoin:"round"})})}function Sk(t){return v.jsxs("svg",{viewBox:"0 0 20 20",fill:"none","aria-hidden":"true",...t,children:[v.jsx("circle",{cx:"10",cy:"10",r:"3.2",stroke:"currentColor",strokeWidth:"1.5"}),v.jsx("path",{d:"M10 2.2v1.5M10 16.3v1.5M2.2 10h1.5M16.3 10h1.5M4.5 4.5l1.1 1.1M14.4 14.4l1.1 1.1M15.5 4.5l-1.1 1.1M5.6 14.4l-1.1 1.1",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"})]})}function Tk(t){return v.jsx("svg",{viewBox:"0 0 20 20",fill:"none","aria-hidden":"true",...t,children:v.jsx("path",{d:"M16.7 12.3A6.8 6.8 0 0 1 7.7 3.3a6.8 6.8 0 1 0 9 9Z",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})}const jf=G.createContext({});function Ak(t){if(t?.trim())try{const i=new URL(t,typeof document>"u"?"https://widget.invalid/":document.baseURI);return["http:","https:"].includes(i.protocol)?i.href:void 0}catch{return}}function No({showAkilio:t=!0,variant:i="mark",className:r,style:l,primaryColor:s,secondaryColor:d}){const c=G.useContext(jf),p=Ak(c.logoUrl),[h,m]=G.useState();return p&&p!==h?v.jsx("img",{src:p,alt:c.name||"",className:["akilio-business-logo",r].filter(Boolean).join(" "),style:{width:40,height:40,objectFit:"contain",...l},onError:()=>m(p)}):t?i==="wordmark"?v.jsx(xk,{className:r,style:l,primaryColor:s,secondaryColor:d}):v.jsx(If,{className:r,style:l,primaryColor:s}):v.jsx(Bf,{className:r||"akilio-mini-icon"})}function Hf(t,i,r){const l=Number(t);if(!Number.isFinite(l))return t;try{return new Intl.NumberFormat(r,{style:i?"currency":"decimal",currency:i||void 0,maximumFractionDigits:2}).format(l)}catch{return`${l.toFixed(2)}${i?` ${i}`:""}`}}function Rl(t,i){return t.label?.trim()?t.label:t.type==="update_quantity"?i.updateQuantity:t.type==="remove_from_cart"?i.removeFromCart:t.type.replace(/[_-]/g," ")}function Nk({cart:t,loading:i=!1,copy:r,locale:l,onClose:s,onRefresh:d,onAction:c}){const[p,h]=G.useState(null),[m,g]=G.useState(null),[b,k]=G.useState(null),x=t?.checkout_url||(t?.checkout.next_action?.type==="external_redirect"?t.checkout.next_action.url:""),w=(S,L)=>`${S.id}:${L.type}`,T=async(S,L,I)=>{g(w(S,L)),k(null);try{await c(S,L,I),h(null)}catch{k(r.commerceActionFailed)}finally{g(null)}},A=(S,L,I)=>{if(k(null),L.requires_confirmation){h({line:S,action:L,quantity:I});return}T(S,L,I)};return v.jsxs("section",{className:"akilio-cart-panel","aria-label":r.cart,children:[v.jsxs("header",{children:[v.jsxs("div",{children:[v.jsx("span",{className:"akilio-cart-panel-icon","aria-hidden":"true",children:v.jsxs("svg",{viewBox:"0 0 24 24",fill:"none",children:[v.jsx("path",{d:"M3.5 5h2l1.7 9.1a2 2 0 0 0 2 1.7h7.9a2 2 0 0 0 2-1.6L20.4 8H6.1"}),v.jsx("circle",{cx:"9.5",cy:"19",r:"1.25"}),v.jsx("circle",{cx:"17.5",cy:"19",r:"1.25"})]})}),v.jsx("strong",{children:r.cart})]}),v.jsxs("div",{children:[v.jsx("button",{type:"button",className:"akilio-cart-refresh",onClick:d,disabled:i,children:r.refreshCart}),v.jsx("button",{type:"button",className:"akilio-cart-close",onClick:s,"aria-label":r.close,children:v.jsx(qf,{})})]})]}),i&&!t?v.jsx("p",{className:"akilio-cart-status",children:r.loading}):t?.lines.length?v.jsxs(v.Fragment,{children:[v.jsx("ul",{className:"akilio-cart-lines",children:t.lines.map(S=>{const L=S.product,I=S.variant,F=[L?.vendor,I?.title].filter(Boolean).join(" · "),Y=S.actions?.find(ae=>ae.type==="update_quantity"),R=S.actions?.find(ae=>ae.type==="remove_from_cart"),le=ae=>w(S,ae);return console.log(S),v.jsxs("li",{className:"akilio-cart-line",children:[v.jsx("div",{className:"akilio-cart-line-media","aria-hidden":"true",children:L?.image_url?v.jsx("img",{src:L.image_url,alt:""}):v.jsx("span",{children:"A"})}),v.jsxs("div",{className:"akilio-cart-line-copy",children:[v.jsx("strong",{children:L?.title||S.title}),F?v.jsx("small",{children:F}):null,v.jsxs("small",{children:[S.quantity," ×"," ",Hf(S.price,S.currency,l)]}),Y||R?v.jsxs("div",{className:"akilio-cart-line-actions",children:[Y?v.jsxs("div",{className:"akilio-cart-quantity","aria-label":Rl(Y,r),children:[v.jsx("button",{type:"button",disabled:S.quantity<=1||m===le(Y),"aria-label":`${Rl(Y,r)}: -1`,onClick:()=>A(S,Y,S.quantity-1),children:"−"}),v.jsx("span",{children:S.quantity}),v.jsx("button",{type:"button",disabled:m===le(Y),"aria-label":`${Rl(Y,r)}: +1`,onClick:()=>A(S,Y,S.quantity+1),children:"+"})]}):null,R?v.jsx("button",{type:"button",className:"akilio-cart-line-action akilio-cart-line-action--remove",disabled:m===le(R),onClick:()=>A(S,R),children:m===le(R)?r.commerceActionWorking:Rl(R,r)}):null]}):null]}),v.jsx("span",{children:Hf(S.price,S.currency,l)}),p?.line.id===S.id?v.jsxs("div",{className:"akilio-cart-line-confirmation",children:[v.jsx("small",{children:p.action.type==="remove_from_cart"?`${r.removeFromCart}?`:`${r.updateQuantity}: ${p.quantity}`}),v.jsxs("div",{children:[v.jsx("button",{type:"button",disabled:m===le(p.action),onClick:()=>{T(p.line,p.action,p.quantity)},children:m===le(p.action)?r.commerceActionWorking:r.commerceActionConfirm}),v.jsx("button",{type:"button",disabled:m===le(p.action),onClick:()=>h(null),children:r.commerceActionCancel})]}),b?v.jsx("small",{role:"alert",children:b}):null]}):null]},S.id)})}),x?v.jsxs("a",{className:"akilio-cart-checkout",href:x,children:[r.checkout," ",v.jsx("span",{"aria-hidden":"true",children:"→"})]}):v.jsx("p",{className:"akilio-cart-status",children:r.cartUnavailable})]}):v.jsx("p",{className:"akilio-cart-status",children:r.cartEmpty})]})}const Ck=G.forwardRef(function({loading:i,disabled:r,copy:l,onSubmit:s,onReviewConsent:d,onDraftChange:c,disabledMessage:p,showPoweredBy:h,slug:m,intentActions:g=[],onIntentAction:b},k){const[x,w]=G.useState(""),T=G.useRef(""),A=G.useRef(null);G.useLayoutEffect(()=>{const F=A.current;if(!F)return;F.style.height="auto";const Y=Math.max(48,Math.min(F.scrollHeight,148));F.style.height=`${Y}px`,F.style.overflowY=F.scrollHeight>148?"auto":"hidden"},[x]);const S=async()=>{const F=T.current.trim();if(!F)throw new Error("EMPTY_DRAFT");if(i)throw new Error("BUSY");if(r)throw new Error("INVALID_QUESTION");return w(""),T.current="",c?.("",!1),s(F)},L=F=>{F.preventDefault(),S().catch(()=>{})},I=F=>{F.key==="Enter"&&!F.shiftKey&&!F.nativeEvent.isComposing&&(F.preventDefault(),L(F))};return G.useImperativeHandle(k,()=>({getDraft:()=>T.current,setDraft:(F,Y)=>{const R=Y?.clearExisting===!1?`${T.current}${F}`:F;T.current=R,w(R),c?.(R,!1),Y?.focus&&window.setTimeout(()=>A.current?.focus(),0)},clearDraft:()=>{T.current="",w(""),c?.("",!1)},focus:()=>A.current?.focus(),submit:S}),[c,s,x,i,r]),v.jsxs("form",{onSubmit:L,className:"akilio-composer",children:[g.length>0&&v.jsx("div",{className:"akilio-intent-actions","aria-label":"Suggested actions",children:g.map(F=>v.jsxs("button",{type:"button",className:"akilio-intent-action","data-akilio-intent":F.intent,disabled:i||r,onClick:()=>b?.(F.intent,F.label),children:[v.jsx(Bf,{}),v.jsx("span",{children:F.label})]},F.intent))}),v.jsxs("div",{className:"akilio-composer-box",children:[v.jsx("textarea",{ref:A,value:x,rows:1,onChange:F=>{T.current=F.target.value,w(F.target.value),c?.(F.target.value,!0)},onKeyDown:I,placeholder:l.placeholder,"aria-label":l.placeholder,disabled:r,title:r?p||l.privacyRequired:l.helper}),v.jsx("button",{type:"submit",disabled:i||r||!x.trim(),className:"akilio-composer-submit",title:i?l.loading:l.submit,children:v.jsx(Uf,{color:"#FFF"})})]}),r&&d&&v.jsxs("div",{className:"akilio-composer-help",children:[p||l.privacyRequired," ",v.jsx("button",{type:"button",className:"akilio-privacy-review",onClick:d,children:l.privacyReview})]}),h&&v.jsxs("div",{className:"akilio-powered-by",children:[l.poweredBy," ",v.jsx("a",{href:`https://akilio-ai.com?utm_medium=akilio_widget&utm_source=${m}`,children:"Akilio"}),". ",l.aiContentWarning]})]})});function Mk({copy:t,onSuggestion:i,widgetAvailable:r,showBranding:l,primaryColor:s,starterQuestions:d}){const c=Array.isArray(d)?d:t.suggestions;return v.jsxs("div",{className:"akilio-empty",children:[v.jsx("div",{className:"akilio-empty-icon",children:v.jsx(No,{showAkilio:l,variant:"mark",primaryColor:s})}),v.jsx("h3",{children:t.title}),v.jsx("p",{children:r?t.emptyState:t.widgetUnavailable}),v.jsx("div",{className:"akilio-suggestions",children:r&&c.slice(0,4).map(p=>v.jsx("button",{type:"button",onClick:()=>i(p),children:p},p))})]})}function Ok(){return v.jsxs("svg",{viewBox:"0 0 20 20",fill:"none","aria-hidden":"true",children:[v.jsx("path",{d:"M5 2.8h7l3 3v11.4H5a1.8 1.8 0 0 1-1.8-1.8V4.6A1.8 1.8 0 0 1 5 2.8Z",stroke:"currentColor",strokeWidth:"1.45",strokeLinejoin:"round"}),v.jsx("path",{d:"M12 2.8v3h3M6.7 10h6.6M6.7 13.2h4.4",stroke:"currentColor",strokeWidth:"1.45",strokeLinecap:"round"})]})}function Rk(){return v.jsxs("svg",{viewBox:"0 0 20 20",fill:"none","aria-hidden":"true",children:[v.jsx("rect",{x:"2.7",y:"4.3",width:"14.6",height:"11.4",rx:"2",stroke:"currentColor",strokeWidth:"1.45"}),v.jsx("path",{d:"m3.7 5.6 6.3 5 6.3-5",stroke:"currentColor",strokeWidth:"1.45",strokeLinecap:"round",strokeLinejoin:"round"})]})}function Dk(){return v.jsx("svg",{viewBox:"0 0 20 20",fill:"none","aria-hidden":"true",children:v.jsx("path",{d:"M6.2 2.9 8.4 5c.4.4.5 1 .2 1.5l-1 1.5a11.6 11.6 0 0 0 4.4 4.4l1.5-1c.5-.3 1.1-.2 1.5.2l2.1 2.2c.4.4.4 1.1 0 1.5l-1 1c-.7.7-1.7 1-2.7.7C7.8 15.1 4.9 12.2 3 6.6c-.3-1-.1-2 .7-2.7l1-1c.4-.4 1.1-.4 1.5 0Z",stroke:"currentColor",strokeWidth:"1.45",strokeLinecap:"round",strokeLinejoin:"round"})})}function zk(t){return/^(https?:|mailto:|tel:)/i.test(t.trim())?t.trim():null}function Lk({type:t}){return t==="phone"?v.jsx(Dk,{}):t==="form"?v.jsx(Ok,{}):v.jsx(Rk,{})}function Ff(t){return t==="queued"||t==="delivering"||t==="delivered"||t==="failed"||t==="cancelled"||t==="accepted"?t:null}function Ik({message:t,capability:i,copy:r,onSubmit:l}){const s=t.actions?.find(Y=>Y.type==="start_contact_request"||Y.type==="start_human_handoff"),d=t.intentDecision?.intent_id==="contact_request"||t.intentDecision?.intent_id==="human_request",c=G.useMemo(()=>new Set([...i?.required_fields||[],...s?.fields||[]]),[s?.fields,i?.required_fields]),p=G.useMemo(()=>new Set(i?.required_fields||[]),[i?.required_fields]),[h,m]=G.useState(!1),[g,b]=G.useState(!1),[k,x]=G.useState(!1),w=t.conversationId&&t.backendMessageId?`akilio:contact-request:${t.conversationId}:${t.backendMessageId}:v1`:null,[T,A]=G.useState(()=>{if(!w||typeof window>"u")return null;try{return Ff(window.localStorage.getItem(w))}catch{return null}}),[S,L]=G.useState(!1),I=T!==null;G.useEffect(()=>{if(!(!w||!T))try{window.localStorage.setItem(w,T)}catch{}},[w,T]);const F=async Y=>{if(Y.preventDefault(),!l||!t.conversationId||!t.backendMessageId)return;const R=new FormData(Y.currentTarget);b(!0),x(!1);try{const le=await l({conversation_id:t.conversationId,source_message_id:t.backendMessageId,name:String(R.get("name")||""),email:String(R.get("email")||""),phone:String(R.get("phone")||""),preferred_contact_method:String(R.get("preferred_contact_method")||"either"),preferred_contact_time:String(R.get("preferred_contact_time")||""),message:String(R.get("message")||""),consent_given:i?.consent_required?S:!0},s?.type||(t.intentDecision?.intent_id==="human_request"?"start_human_handoff":"start_contact_request"));A(Ff(le.handoff?.status||null)||"accepted"),m(!1)}catch{x(!0)}finally{b(!1)}};return!i?.enabled||!s?.quickActions?.length&&!s&&!d?null:v.jsxs("section",{className:"akilio-contact","aria-label":r.contact,children:[s?.quickActions?.length?v.jsx("div",{className:"akilio-contact-options",children:s.quickActions.map(Y=>{const R=zk(Y.url);if(!R)return null;const le=/^https?:/i.test(R);return v.jsxs("a",{href:R,target:le?"_blank":void 0,rel:le?"noreferrer":void 0,title:Y.label,children:[v.jsx("span",{className:"akilio-contact-option-icon",children:v.jsx(Lk,{type:Y.type})}),v.jsxs("span",{className:"akilio-contact-option-copy",children:[v.jsx("strong",{children:Y.label}),Y.value&&v.jsx("small",{children:Y.value})]}),v.jsx("svg",{className:"akilio-contact-option-arrow",viewBox:"0 0 20 20",fill:"none","aria-hidden":"true",children:v.jsx("path",{d:"m7.5 4.5 5.5 5.5-5.5 5.5",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round",strokeLinejoin:"round"})})]},`${Y.type}:${R}`)})}):null,I&&v.jsx("p",{className:"akilio-contact-success",role:"status",children:T==="queued"?r.handoffQueued:T==="delivering"?r.handoffDelivering:T==="delivered"?r.handoffDelivered:T==="failed"?r.handoffFailed:T==="cancelled"?r.handoffCancelled:r.contactSuccess}),!I&&(s||d)&&i?.enabled&&l&&v.jsxs(v.Fragment,{children:[!h&&v.jsx("button",{type:"button",className:"akilio-contact-start",onClick:()=>m(!0),children:s?.label||r.contact}),h&&v.jsxs("form",{className:"akilio-contact-form",onSubmit:F,children:[c.has("name")&&v.jsxs("label",{className:"akilio-contact-field akilio-contact-name",children:[v.jsx("span",{children:r.contactName}),v.jsx("input",{name:"name",required:p.has("name")})]}),c.has("email")&&v.jsxs("label",{className:"akilio-contact-field akilio-contact-email",children:[v.jsx("span",{children:r.contactEmail}),v.jsx("input",{name:"email",type:"email",required:p.has("email")})]}),c.has("phone")&&v.jsxs("label",{className:"akilio-contact-field akilio-contact-phone",children:[v.jsx("span",{children:r.contactPhone}),v.jsx("input",{name:"phone",type:"tel",required:p.has("phone")})]}),v.jsxs("label",{className:"akilio-contact-field akilio-contact-method",children:[v.jsx("span",{children:r.contactMethod}),v.jsxs("select",{name:"preferred_contact_method",defaultValue:"either",children:[v.jsx("option",{value:"email",children:r.contactMethodEmail}),v.jsx("option",{value:"phone",children:r.contactMethodPhone}),v.jsx("option",{value:"either",children:r.contactMethodEither})]})]}),c.has("preferred_contact_time")&&v.jsxs("label",{className:"akilio-contact-field akilio-contact-time",children:[v.jsx("span",{children:r.contactTime}),v.jsx("input",{name:"preferred_contact_time"})]}),v.jsxs("label",{className:"akilio-contact-field akilio-contact-message",children:[v.jsx("span",{children:r.contactMessage}),v.jsx("textarea",{name:"message",rows:3,required:!0,maxLength:4e3})]}),i.consent_required&&v.jsxs("label",{className:"akilio-contact-consent",children:[v.jsx("input",{type:"checkbox",checked:S,onChange:Y=>L(Y.target.checked),required:!0}),v.jsx("span",{children:i.consent_text||r.contactConsent})]}),k&&v.jsx("p",{className:"akilio-contact-error",role:"alert",children:r.contactFailed}),v.jsx("button",{type:"submit",className:"akilio-contact-submit",disabled:g||i.consent_required&&!S,children:g?r.contactSending:r.contactSubmit})]})]})]})}function kN(){}function xN(){}function Bk(t,i){const r={};return(t[t.length-1]===""?[...t,""]:t).join((r.padRight?" ":"")+","+(r.padLeft===!1?"":" ")).trim()}const Uk=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,qk=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,jk={};function Pf(t,i){return(jk.jsx?qk:Uk).test(t)}const Hk=/[ \t\n\f\r]/g;function Fk(t){return typeof t=="object"?t.type==="text"?Gf(t.value):!1:Gf(t)}function Gf(t){return t.replace(Hk,"")===""}class Co{constructor(i,r,l){this.normal=r,this.property=i,l&&(this.space=l)}}Co.prototype.normal={},Co.prototype.property={},Co.prototype.space=void 0;function Yf(t,i){const r={},l={};for(const s of t)Object.assign(r,s.property),Object.assign(l,s.normal);return new Co(r,l,i)}function Ec(t){return t.toLowerCase()}class jn{constructor(i,r){this.attribute=r,this.property=i}}jn.prototype.attribute="",jn.prototype.booleanish=!1,jn.prototype.boolean=!1,jn.prototype.commaOrSpaceSeparated=!1,jn.prototype.commaSeparated=!1,jn.prototype.defined=!1,jn.prototype.mustUseProperty=!1,jn.prototype.number=!1,jn.prototype.overloadedBoolean=!1,jn.prototype.property="",jn.prototype.spaceSeparated=!1,jn.prototype.space=void 0;let Pk=0;const je=rr(),Zt=rr(),wc=rr(),se=rr(),vt=rr(),ar=rr(),Wn=rr();function rr(){return 2**++Pk}const Sc=Object.freeze(Object.defineProperty({__proto__:null,boolean:je,booleanish:Zt,commaOrSpaceSeparated:Wn,commaSeparated:ar,number:se,overloadedBoolean:wc,spaceSeparated:vt},Symbol.toStringTag,{value:"Module"})),Tc=Object.keys(Sc);class Ac extends jn{constructor(i,r,l,s){let d=-1;if(super(i,r),Vf(this,"space",s),typeof l=="number")for(;++d<Tc.length;){const c=Tc[d];Vf(this,Tc[d],(l&Sc[c])===Sc[c])}}}Ac.prototype.defined=!0;function Vf(t,i,r){r&&(t[i]=r)}function Br(t){const i={},r={};for(const[l,s]of Object.entries(t.properties)){const d=new Ac(l,t.transform(t.attributes||{},l),s,t.space);t.mustUseProperty&&t.mustUseProperty.includes(l)&&(d.mustUseProperty=!0),i[l]=d,r[Ec(l)]=l,r[Ec(d.attribute)]=l}return new Co(i,r,t.space)}const $f=Br({properties:{ariaActiveDescendant:null,ariaAtomic:Zt,ariaAutoComplete:null,ariaBusy:Zt,ariaChecked:Zt,ariaColCount:se,ariaColIndex:se,ariaColSpan:se,ariaControls:vt,ariaCurrent:null,ariaDescribedBy:vt,ariaDetails:null,ariaDisabled:Zt,ariaDropEffect:vt,ariaErrorMessage:null,ariaExpanded:Zt,ariaFlowTo:vt,ariaGrabbed:Zt,ariaHasPopup:null,ariaHidden:Zt,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:vt,ariaLevel:se,ariaLive:null,ariaModal:Zt,ariaMultiLine:Zt,ariaMultiSelectable:Zt,ariaOrientation:null,ariaOwns:vt,ariaPlaceholder:null,ariaPosInSet:se,ariaPressed:Zt,ariaReadOnly:Zt,ariaRelevant:null,ariaRequired:Zt,ariaRoleDescription:vt,ariaRowCount:se,ariaRowIndex:se,ariaRowSpan:se,ariaSelected:Zt,ariaSetSize:se,ariaSort:null,ariaValueMax:se,ariaValueMin:se,ariaValueNow:se,ariaValueText:null,role:null},transform(t,i){return i==="role"?i:"aria-"+i.slice(4).toLowerCase()}});function Kf(t,i){return i in t?t[i]:i}function Zf(t,i){return Kf(t,i.toLowerCase())}const Gk=Br({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:ar,acceptCharset:vt,accessKey:vt,action:null,allow:null,allowFullScreen:je,allowPaymentRequest:je,allowUserMedia:je,alpha:je,alt:null,as:null,async:je,autoCapitalize:null,autoComplete:vt,autoFocus:je,autoPlay:je,blocking:vt,capture:null,charSet:null,checked:je,cite:null,className:vt,closedBy:null,colorSpace:null,cols:se,colSpan:se,command:null,commandFor:null,content:null,contentEditable:Zt,controls:je,controlsList:vt,coords:se|ar,crossOrigin:null,data:null,dateTime:null,decoding:null,default:je,defer:je,dir:null,dirName:null,disabled:je,download:wc,draggable:Zt,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:je,formTarget:null,headers:vt,height:se,hidden:wc,high:se,href:null,hrefLang:null,htmlFor:vt,httpEquiv:vt,id:null,imageSizes:null,imageSrcSet:null,inert:je,inputMode:null,integrity:null,is:null,isMap:je,itemId:null,itemProp:vt,itemRef:vt,itemScope:je,itemType:vt,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:je,low:se,manifest:null,max:null,maxLength:se,media:null,method:null,min:null,minLength:se,multiple:je,muted:je,name:null,nonce:null,noModule:je,noValidate:je,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:je,optimum:se,pattern:null,ping:vt,placeholder:null,playsInline:je,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:je,referrerPolicy:null,rel:vt,required:je,reversed:je,rows:se,rowSpan:se,sandbox:vt,scope:null,scoped:je,seamless:je,selected:je,shadowRootClonable:je,shadowRootCustomElementRegistry:je,shadowRootDelegatesFocus:je,shadowRootMode:null,shadowRootSerializable:je,shape:null,size:se,sizes:null,slot:null,span:se,spellCheck:Zt,src:null,srcDoc:null,srcLang:null,srcSet:null,start:se,step:null,style:null,tabIndex:se,target:null,title:null,translate:null,type:null,typeMustMatch:je,useMap:null,value:Zt,width:se,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:vt,axis:null,background:null,bgColor:null,border:se,borderColor:null,bottomMargin:se,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:je,declare:je,event:null,face:null,frame:null,frameBorder:null,hSpace:se,leftMargin:se,link:null,longDesc:null,lowSrc:null,marginHeight:se,marginWidth:se,noResize:je,noHref:je,noShade:je,noWrap:je,object:null,profile:null,prompt:null,rev:null,rightMargin:se,rules:null,scheme:null,scrolling:Zt,standby:null,summary:null,text:null,topMargin:se,valueType:null,version:null,vAlign:null,vLink:null,vSpace:se,allowTransparency:null,autoCorrect:null,autoSave:null,credentialless:je,disablePictureInPicture:je,disableRemotePlayback:je,exportParts:ar,part:vt,prefix:null,property:null,results:se,security:null,unselectable:null},space:"html",transform:Zf}),Yk=Br({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:Wn,accentHeight:se,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:se,amplitude:se,arabicForm:null,ascent:se,attributeName:null,attributeType:null,azimuth:se,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:se,by:null,calcMode:null,capHeight:se,className:vt,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:se,diffuseConstant:se,direction:null,display:null,dur:null,divisor:se,dominantBaseline:null,download:je,dx:null,dy:null,edgeMode:null,editable:null,elevation:se,enableBackground:null,end:null,event:null,exponent:se,externalResourcesRequired:null,fill:null,fillOpacity:se,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:ar,g2:ar,glyphName:ar,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:se,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:se,horizOriginX:se,horizOriginY:se,id:null,ideographic:se,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:se,k:se,k1:se,k2:se,k3:se,k4:se,kernelMatrix:Wn,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:se,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:se,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:se,overlineThickness:se,paintOrder:null,panose1:null,path:null,pathLength:se,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:vt,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:se,pointsAtY:se,pointsAtZ:se,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Wn,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Wn,rev:Wn,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Wn,requiredFeatures:Wn,requiredFonts:Wn,requiredFormats:Wn,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:se,specularExponent:se,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:se,strikethroughThickness:se,string:null,stroke:null,strokeDashArray:Wn,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:se,strokeOpacity:se,strokeWidth:null,style:null,surfaceScale:se,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Wn,tabIndex:se,tableValues:null,target:null,targetX:se,targetY:se,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Wn,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:se,underlineThickness:se,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:se,values:null,vAlphabetic:se,vMathematical:se,vectorEffect:null,vHanging:se,vIdeographic:se,version:null,vertAdvY:se,vertOriginX:se,vertOriginY:se,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:se,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:Kf}),Qf=Br({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()}}),Xf=Br({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:Zf}),Wf=Br({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(t,i){return"xml:"+i.slice(3).toLowerCase()}}),Vk={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"},$k=/[A-Z]/g,Jf=/-[a-z]/g,Kk=/^data[-\w.:]+$/i;function Zk(t,i){const r=Ec(i);let l=i,s=jn;if(r in t.normal)return t.property[t.normal[r]];if(r.length>4&&r.slice(0,4)==="data"&&Kk.test(i)){if(i.charAt(4)==="-"){const d=i.slice(5).replace(Jf,Xk);l="data"+d.charAt(0).toUpperCase()+d.slice(1)}else{const d=i.slice(4);if(!Jf.test(d)){let c=d.replace($k,Qk);c.charAt(0)!=="-"&&(c="-"+c),i="data"+c}}s=Ac}return new s(l,i)}function Qk(t){return"-"+t.toLowerCase()}function Xk(t){return t.charAt(1).toUpperCase()}const Wk=Yf([$f,Gk,Qf,Xf,Wf],"html"),Nc=Yf([$f,Yk,Qf,Xf,Wf],"svg");function Jk(t){return t.join(" ").trim()}var Ur={},Cc,ep;function ex(){if(ep)return Cc;ep=1;var t=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,i=/\n/g,r=/^\s*/,l=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,s=/^:\s*/,d=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,c=/^[;\s]*/,p=/^\s+|\s+$/g,h=`
10
+ `,m="/",g="*",b="",k="comment",x="declaration";function w(A,S){if(typeof A!="string")throw new TypeError("First argument must be a string");if(!A)return[];S=S||{};var L=1,I=1;function F(de){var ne=de.match(i);ne&&(L+=ne.length);var Z=de.lastIndexOf(h);I=~Z?de.length-Z:I+de.length}function Y(){var de={line:L,column:I};return function(ne){return ne.position=new R(de),he(),ne}}function R(de){this.start=de,this.end={line:L,column:I},this.source=S.source}R.prototype.content=A;function le(de){var ne=new Error(S.source+":"+L+":"+I+": "+de);if(ne.reason=de,ne.filename=S.source,ne.line=L,ne.column=I,ne.source=A,!S.silent)throw ne}function ae(de){var ne=de.exec(A);if(ne){var Z=ne[0];return F(Z),A=A.slice(Z.length),ne}}function he(){ae(r)}function B(de){var ne;for(de=de||[];ne=ue();)ne!==!1&&de.push(ne);return de}function ue(){var de=Y();if(!(m!=A.charAt(0)||g!=A.charAt(1))){for(var ne=2;b!=A.charAt(ne)&&(g!=A.charAt(ne)||m!=A.charAt(ne+1));)++ne;if(ne+=2,b===A.charAt(ne-1))return le("End of comment missing");var Z=A.slice(2,ne-2);return I+=2,F(Z),A=A.slice(ne),I+=2,de({type:k,comment:Z})}}function re(){var de=Y(),ne=ae(l);if(ne){if(ue(),!ae(s))return le("property missing ':'");var Z=ae(d),$=de({type:x,property:T(ne[0].replace(t,b)),value:Z?T(Z[0].replace(t,b)):b});return ae(c),$}}function Ae(){var de=[];B(de);for(var ne;ne=re();)ne!==!1&&(de.push(ne),B(de));return de}return he(),Ae()}function T(A){return A?A.replace(p,b):b}return Cc=w,Cc}var tp;function tx(){if(tp)return Ur;tp=1;var t=Ur&&Ur.__importDefault||function(l){return l&&l.__esModule?l:{default:l}};Object.defineProperty(Ur,"__esModule",{value:!0}),Ur.default=r;const i=t(ex());function r(l,s){let d=null;if(!l||typeof l!="string")return d;const c=(0,i.default)(l),p=typeof s=="function";return c.forEach(h=>{if(h.type!=="declaration")return;const{property:m,value:g}=h;p?s(m,g,h):g&&(d=d||{},d[m]=g)}),d}return Ur}var Mo={},np;function nx(){if(np)return Mo;np=1,Object.defineProperty(Mo,"__esModule",{value:!0}),Mo.camelCase=void 0;var t=/^--[a-zA-Z0-9_-]+$/,i=/-([a-z])/g,r=/^[^-]+$/,l=/^-(webkit|moz|ms|o|khtml)-/,s=/^-(ms)-/,d=function(m){return!m||r.test(m)||t.test(m)},c=function(m,g){return g.toUpperCase()},p=function(m,g){return"".concat(g,"-")},h=function(m,g){return g===void 0&&(g={}),d(m)?m:(m=m.toLowerCase(),g.reactCompat?m=m.replace(s,p):m=m.replace(l,p),m.replace(i,c))};return Mo.camelCase=h,Mo}var Oo,ip;function ix(){if(ip)return Oo;ip=1;var t=Oo&&Oo.__importDefault||function(s){return s&&s.__esModule?s:{default:s}},i=t(tx()),r=nx();function l(s,d){var c={};return!s||typeof s!="string"||(0,i.default)(s,function(p,h){p&&h&&(c[(0,r.camelCase)(p,d)]=h)}),c}return l.default=l,Oo=l,Oo}var ax=ix();const rx=hc(ax),ap=rp("end"),Mc=rp("start");function rp(t){return i;function i(r){const l=r&&r.position&&r.position[t]||{};if(typeof l.line=="number"&&l.line>0&&typeof l.column=="number"&&l.column>0)return{line:l.line,column:l.column,offset:typeof l.offset=="number"&&l.offset>-1?l.offset:void 0}}}function ox(t){const i=Mc(t),r=ap(t);if(i&&r)return{start:i,end:r}}function Ro(t){return!t||typeof t!="object"?"":"position"in t||"type"in t?op(t.position):"start"in t||"end"in t?op(t):"line"in t||"column"in t?Oc(t):""}function Oc(t){return lp(t&&t.line)+":"+lp(t&&t.column)}function op(t){return Oc(t&&t.start)+"-"+Oc(t&&t.end)}function lp(t){return t&&typeof t=="number"?t:1}class Sn extends Error{constructor(i,r,l){super(),typeof r=="string"&&(l=r,r=void 0);let s="",d={},c=!1;if(r&&("line"in r&&"column"in r?d={place:r}:"start"in r&&"end"in r?d={place:r}:"type"in r?d={ancestors:[r],place:r.position}:d={...r}),typeof i=="string"?s=i:!d.cause&&i&&(c=!0,s=i.message,d.cause=i),!d.ruleId&&!d.source&&typeof l=="string"){const h=l.indexOf(":");h===-1?d.ruleId=l:(d.source=l.slice(0,h),d.ruleId=l.slice(h+1))}if(!d.place&&d.ancestors&&d.ancestors){const h=d.ancestors[d.ancestors.length-1];h&&(d.place=h.position)}const p=d.place&&"start"in d.place?d.place.start:d.place;this.ancestors=d.ancestors||void 0,this.cause=d.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=Ro(d.place)||"1:1",this.place=d.place||void 0,this.reason=this.message,this.ruleId=d.ruleId||void 0,this.source=d.source||void 0,this.stack=c&&d.cause&&typeof d.cause.stack=="string"?d.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}Sn.prototype.file="",Sn.prototype.name="",Sn.prototype.reason="",Sn.prototype.message="",Sn.prototype.stack="",Sn.prototype.column=void 0,Sn.prototype.line=void 0,Sn.prototype.ancestors=void 0,Sn.prototype.cause=void 0,Sn.prototype.fatal=void 0,Sn.prototype.place=void 0,Sn.prototype.ruleId=void 0,Sn.prototype.source=void 0;const Rc={}.hasOwnProperty,lx=new Map,sx=/[A-Z]/g,cx=new Set(["table","tbody","thead","tfoot","tr"]),ux=new Set(["td","th"]),sp="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function dx(t,i){if(!i||i.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const r=i.filePath||void 0;let l;if(i.development){if(typeof i.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");l=kx(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");l=yx(r,i.jsx,i.jsxs)}const s={Fragment:i.Fragment,ancestors:[],components:i.components||{},create:l,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"?Nc:Wk,stylePropertyNameCase:i.stylePropertyNameCase||"dom",tableCellAlignToStyle:i.tableCellAlignToStyle!==!1},d=cp(s,t,void 0);return d&&typeof d!="string"?d:s.create(t,s.Fragment,{children:d||void 0},void 0)}function cp(t,i,r){if(i.type==="element")return fx(t,i,r);if(i.type==="mdxFlowExpression"||i.type==="mdxTextExpression")return px(t,i);if(i.type==="mdxJsxFlowElement"||i.type==="mdxJsxTextElement")return hx(t,i,r);if(i.type==="mdxjsEsm")return mx(t,i);if(i.type==="root")return gx(t,i,r);if(i.type==="text")return bx(t,i)}function fx(t,i,r){const l=t.schema;let s=l;i.tagName.toLowerCase()==="svg"&&l.space==="html"&&(s=Nc,t.schema=s),t.ancestors.push(i);const d=dp(t,i.tagName,!1),c=xx(t,i);let p=zc(t,i);return cx.has(i.tagName)&&(p=p.filter(function(h){return typeof h=="string"?!Fk(h):!0})),up(t,c,d,i),Dc(c,p),t.ancestors.pop(),t.schema=l,t.create(i,d,c,r)}function px(t,i){if(i.data&&i.data.estree&&t.evaluater){const l=i.data.estree.body[0];return l.type,t.evaluater.evaluateExpression(l.expression)}Do(t,i.position)}function mx(t,i){if(i.data&&i.data.estree&&t.evaluater)return t.evaluater.evaluateProgram(i.data.estree);Do(t,i.position)}function hx(t,i,r){const l=t.schema;let s=l;i.name==="svg"&&l.space==="html"&&(s=Nc,t.schema=s),t.ancestors.push(i);const d=i.name===null?t.Fragment:dp(t,i.name,!0),c=vx(t,i),p=zc(t,i);return up(t,c,d,i),Dc(c,p),t.ancestors.pop(),t.schema=l,t.create(i,d,c,r)}function gx(t,i,r){const l={};return Dc(l,zc(t,i)),t.create(i,t.Fragment,l,r)}function bx(t,i){return i.value}function up(t,i,r,l){typeof r!="string"&&r!==t.Fragment&&t.passNode&&(i.node=l)}function Dc(t,i){if(i.length>0){const r=i.length>1?i:i[0];r&&(t.children=r)}}function yx(t,i,r){return l;function l(s,d,c,p){const m=Array.isArray(c.children)?r:i;return p?m(d,c,p):m(d,c)}}function kx(t,i){return r;function r(l,s,d,c){const p=Array.isArray(d.children),h=Mc(l);return i(s,d,c,p,{columnNumber:h?h.column-1:void 0,fileName:t,lineNumber:h?h.line:void 0},void 0)}}function xx(t,i){const r={};let l,s;for(s in i.properties)if(s!=="children"&&Rc.call(i.properties,s)){const d=_x(t,s,i.properties[s]);if(d){const[c,p]=d;t.tableCellAlignToStyle&&c==="align"&&typeof p=="string"&&ux.has(i.tagName)?l=p:r[c]=p}}if(l){const d=r.style||(r.style={});d[t.stylePropertyNameCase==="css"?"text-align":"textAlign"]=l}return r}function vx(t,i){const r={};for(const l of i.attributes)if(l.type==="mdxJsxExpressionAttribute")if(l.data&&l.data.estree&&t.evaluater){const d=l.data.estree.body[0];d.type;const c=d.expression;c.type;const p=c.properties[0];p.type,Object.assign(r,t.evaluater.evaluateExpression(p.argument))}else Do(t,i.position);else{const s=l.name;let d;if(l.value&&typeof l.value=="object")if(l.value.data&&l.value.data.estree&&t.evaluater){const p=l.value.data.estree.body[0];p.type,d=t.evaluater.evaluateExpression(p.expression)}else Do(t,i.position);else d=l.value===null?!0:l.value;r[s]=d}return r}function zc(t,i){const r=[];let l=-1;const s=t.passKeys?new Map:lx;for(;++l<i.children.length;){const d=i.children[l];let c;if(t.passKeys){const h=d.type==="element"?d.tagName:d.type==="mdxJsxFlowElement"||d.type==="mdxJsxTextElement"?d.name:void 0;if(h){const m=s.get(h)||0;c=h+"-"+m,s.set(h,m+1)}}const p=cp(t,d,c);p!==void 0&&r.push(p)}return r}function _x(t,i,r){const l=Zk(t.schema,i);if(!(r==null||typeof r=="number"&&Number.isNaN(r))){if(Array.isArray(r)&&(r=l.commaSeparated?Bk(r):Jk(r)),l.property==="style"){let s=typeof r=="object"?r:Ex(t,String(r));return t.stylePropertyNameCase==="css"&&(s=wx(s)),["style",s]}return[t.elementAttributeNameCase==="react"&&l.space?Vk[l.property]||l.property:l.attribute,r]}}function Ex(t,i){try{return rx(i,{reactCompat:!0})}catch(r){if(t.ignoreInvalidStyle)return{};const l=r,s=new Sn("Cannot parse `style` attribute",{ancestors:t.ancestors,cause:l,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw s.file=t.filePath||void 0,s.url=sp+"#cannot-parse-style-attribute",s}}function dp(t,i,r){let l;if(!r)l={type:"Literal",value:i};else if(i.includes(".")){const s=i.split(".");let d=-1,c;for(;++d<s.length;){const p=Pf(s[d])?{type:"Identifier",name:s[d]}:{type:"Literal",value:s[d]};c=c?{type:"MemberExpression",object:c,property:p,computed:!!(d&&p.type==="Literal"),optional:!1}:p}l=c}else l=Pf(i)&&!/^[a-z]/.test(i)?{type:"Identifier",name:i}:{type:"Literal",value:i};if(l.type==="Literal"){const s=l.value;return Rc.call(t.components,s)?t.components[s]:s}if(t.evaluater)return t.evaluater.evaluateExpression(l);Do(t)}function Do(t,i){const r=new Sn("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=sp+"#cannot-handle-mdx-estrees-without-createevaluater",r}function wx(t){const i={};let r;for(r in t)Rc.call(t,r)&&(i[Sx(r)]=t[r]);return i}function Sx(t){let i=t.replace(sx,Tx);return i.slice(0,3)==="ms-"&&(i="-"+i),i}function Tx(t){return"-"+t.toLowerCase()}const Lc={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"]},Ax={};function Ic(t,i){const r=Ax,l=typeof r.includeImageAlt=="boolean"?r.includeImageAlt:!0,s=typeof r.includeHtml=="boolean"?r.includeHtml:!0;return fp(t,l,s)}function fp(t,i,r){if(Nx(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 pp(t.children,i,r)}return Array.isArray(t)?pp(t,i,r):""}function pp(t,i,r){const l=[];let s=-1;for(;++s<t.length;)l[s]=fp(t[s],i,r);return l.join("")}function Nx(t){return!!(t&&typeof t=="object")}const mp=document.createElement("i");function Bc(t){const i="&"+t+";";mp.innerHTML=i;const r=mp.textContent;return r.charCodeAt(r.length-1)===59&&t!=="semi"||r===i?!1:r}function Jn(t,i,r,l){const s=t.length;let d=0,c;if(i<0?i=-i>s?0:s+i:i=i>s?s:i,r=r>0?r:0,l.length<1e4)c=Array.from(l),c.unshift(i,r),t.splice(...c);else for(r&&t.splice(i,r);d<l.length;)c=l.slice(d,d+1e4),c.unshift(i,0),t.splice(...c),d+=1e4,i+=1e4}function pi(t,i){return t.length>0?(Jn(t,t.length,0,i),t):i}const hp={}.hasOwnProperty;function gp(t){const i={};let r=-1;for(;++r<t.length;)Cx(i,t[r]);return i}function Cx(t,i){let r;for(r in i){const s=(hp.call(t,r)?t[r]:void 0)||(t[r]={}),d=i[r];let c;if(d)for(c in d){hp.call(s,c)||(s[c]=[]);const p=d[c];Mx(s[c],Array.isArray(p)?p:p?[p]:[])}}}function Mx(t,i){let r=-1;const l=[];for(;++r<i.length;)(i[r].add==="after"?t:l).push(i[r]);Jn(t,0,0,l)}function bp(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 Ai(t){return t.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Dn=Ta(/[A-Za-z]/),Tn=Ta(/[\dA-Za-z]/),Ox=Ta(/[#-'*+\--9=?A-Z^-~]/);function Dl(t){return t!==null&&(t<32||t===127)}const Uc=Ta(/\d/),Rx=Ta(/[\dA-Fa-f]/),Dx=Ta(/[!-/:-@[-`{-~]/);function Re(t){return t!==null&&t<-2}function _t(t){return t!==null&&(t<0||t===32)}function We(t){return t===-2||t===-1||t===32}const zl=Ta(new RegExp("\\p{P}|\\p{S}","u")),or=Ta(/\s/);function Ta(t){return i;function i(r){return r!==null&&r>-1&&t.test(String.fromCharCode(r))}}function qr(t){const i=[];let r=-1,l=0,s=0;for(;++r<t.length;){const d=t.charCodeAt(r);let c="";if(d===37&&Tn(t.charCodeAt(r+1))&&Tn(t.charCodeAt(r+2)))s=2;else if(d<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(d))||(c=String.fromCharCode(d));else if(d>55295&&d<57344){const p=t.charCodeAt(r+1);d<56320&&p>56319&&p<57344?(c=String.fromCharCode(d,p),s=1):c="�"}else c=String.fromCharCode(d);c&&(i.push(t.slice(l,r),encodeURIComponent(c)),l=r+s+1,c=""),s&&(r+=s,s=0)}return i.join("")+t.slice(l)}function rt(t,i,r,l){const s=l?l-1:Number.POSITIVE_INFINITY;let d=0;return c;function c(h){return We(h)?(t.enter(r),p(h)):i(h)}function p(h){return We(h)&&d++<s?(t.consume(h),p):(t.exit(r),i(h))}}const zx={tokenize:Lx};function Lx(t){const i=t.attempt(this.parser.constructs.contentInitial,l,s);let r;return i;function l(p){if(p===null){t.consume(p);return}return t.enter("lineEnding"),t.consume(p),t.exit("lineEnding"),rt(t,i,"linePrefix")}function s(p){return t.enter("paragraph"),d(p)}function d(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 Re(p)?(t.consume(p),t.exit("chunkText"),d):(t.consume(p),c)}}const Ix={tokenize:Bx},yp={tokenize:Ux};function Bx(t){const i=this,r=[];let l=0,s,d,c;return p;function p(I){if(l<r.length){const F=r[l];return i.containerState=F[1],t.attempt(F[0].continuation,h,m)(I)}return m(I)}function h(I){if(l++,i.containerState._closeFlow){i.containerState._closeFlow=void 0,s&&L();const F=i.events.length;let Y=F,R;for(;Y--;)if(i.events[Y][0]==="exit"&&i.events[Y][1].type==="chunkFlow"){R=i.events[Y][1].end;break}S(l);let le=F;for(;le<i.events.length;)i.events[le][1].end={...R},le++;return Jn(i.events,Y+1,0,i.events.slice(F)),i.events.length=le,m(I)}return p(I)}function m(I){if(l===r.length){if(!s)return k(I);if(s.currentConstruct&&s.currentConstruct.concrete)return w(I);i.interrupt=!!(s.currentConstruct&&!s._gfmTableDynamicInterruptHack)}return i.containerState={},t.check(yp,g,b)(I)}function g(I){return s&&L(),S(l),k(I)}function b(I){return i.parser.lazy[i.now().line]=l!==r.length,c=i.now().offset,w(I)}function k(I){return i.containerState={},t.attempt(yp,x,w)(I)}function x(I){return l++,r.push([i.currentConstruct,i.containerState]),k(I)}function w(I){if(I===null){s&&L(),S(0),t.consume(I);return}return s=s||i.parser.flow(i.now()),t.enter("chunkFlow",{_tokenizer:s,contentType:"flow",previous:d}),T(I)}function T(I){if(I===null){A(t.exit("chunkFlow"),!0),S(0),t.consume(I);return}return Re(I)?(t.consume(I),A(t.exit("chunkFlow")),l=0,i.interrupt=void 0,p):(t.consume(I),T)}function A(I,F){const Y=i.sliceStream(I);if(F&&Y.push(null),I.previous=d,d&&(d.next=I),d=I,s.defineSkip(I.start),s.write(Y),i.parser.lazy[I.start.line]){let R=s.events.length;for(;R--;)if(s.events[R][1].start.offset<c&&(!s.events[R][1].end||s.events[R][1].end.offset>c))return;const le=i.events.length;let ae=le,he,B;for(;ae--;)if(i.events[ae][0]==="exit"&&i.events[ae][1].type==="chunkFlow"){if(he){B=i.events[ae][1].end;break}he=!0}for(S(l),R=le;R<i.events.length;)i.events[R][1].end={...B},R++;Jn(i.events,ae+1,0,i.events.slice(le)),i.events.length=R}}function S(I){let F=r.length;for(;F-- >I;){const Y=r[F];i.containerState=Y[1],Y[0].exit.call(i,t)}r.length=I}function L(){s.write([null]),d=void 0,s=void 0,i.containerState._closeFlow=void 0}}function Ux(t,i,r){return rt(t,t.attempt(this.parser.constructs.document,i,r),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function jr(t){if(t===null||_t(t)||or(t))return 1;if(zl(t))return 2}function Ll(t,i,r){const l=[];let s=-1;for(;++s<t.length;){const d=t[s].resolveAll;d&&!l.includes(d)&&(i=d(i,r),l.push(d))}return i}const qc={name:"attention",resolveAll:qx,tokenize:jx};function qx(t,i){let r=-1,l,s,d,c,p,h,m,g;for(;++r<t.length;)if(t[r][0]==="enter"&&t[r][1].type==="attentionSequence"&&t[r][1]._close){for(l=r;l--;)if(t[l][0]==="exit"&&t[l][1].type==="attentionSequence"&&t[l][1]._open&&i.sliceSerialize(t[l][1]).charCodeAt(0)===i.sliceSerialize(t[r][1]).charCodeAt(0)){if((t[l][1]._close||t[r][1]._open)&&(t[r][1].end.offset-t[r][1].start.offset)%3&&!((t[l][1].end.offset-t[l][1].start.offset+t[r][1].end.offset-t[r][1].start.offset)%3))continue;h=t[l][1].end.offset-t[l][1].start.offset>1&&t[r][1].end.offset-t[r][1].start.offset>1?2:1;const b={...t[l][1].end},k={...t[r][1].start};kp(b,-h),kp(k,h),c={type:h>1?"strongSequence":"emphasisSequence",start:b,end:{...t[l][1].end}},p={type:h>1?"strongSequence":"emphasisSequence",start:{...t[r][1].start},end:k},d={type:h>1?"strongText":"emphasisText",start:{...t[l][1].end},end:{...t[r][1].start}},s={type:h>1?"strong":"emphasis",start:{...c.start},end:{...p.end}},t[l][1].end={...c.start},t[r][1].start={...p.end},m=[],t[l][1].end.offset-t[l][1].start.offset&&(m=pi(m,[["enter",t[l][1],i],["exit",t[l][1],i]])),m=pi(m,[["enter",s,i],["enter",c,i],["exit",c,i],["enter",d,i]]),m=pi(m,Ll(i.parser.constructs.insideSpan.null,t.slice(l+1,r),i)),m=pi(m,[["exit",d,i],["enter",p,i],["exit",p,i],["exit",s,i]]),t[r][1].end.offset-t[r][1].start.offset?(g=2,m=pi(m,[["enter",t[r][1],i],["exit",t[r][1],i]])):g=0,Jn(t,l-1,r-l+3,m),r=l+m.length-g-2;break}}for(r=-1;++r<t.length;)t[r][1].type==="attentionSequence"&&(t[r][1].type="data");return t}function jx(t,i){const r=this.parser.constructs.attentionMarkers.null,l=this.previous,s=jr(l);let d;return c;function c(h){return d=h,t.enter("attentionSequence"),p(h)}function p(h){if(h===d)return t.consume(h),p;const m=t.exit("attentionSequence"),g=jr(h),b=!g||g===2&&s||r.includes(h),k=!s||s===2&&g||r.includes(l);return m._open=!!(d===42?b:b&&(s||!k)),m._close=!!(d===42?k:k&&(g||!b)),i(h)}}function kp(t,i){t.column+=i,t.offset+=i,t._bufferIndex+=i}const Hx={name:"autolink",tokenize:Fx};function Fx(t,i,r){let l=0;return s;function s(x){return t.enter("autolink"),t.enter("autolinkMarker"),t.consume(x),t.exit("autolinkMarker"),t.enter("autolinkProtocol"),d}function d(x){return Dn(x)?(t.consume(x),c):x===64?r(x):m(x)}function c(x){return x===43||x===45||x===46||Tn(x)?(l=1,p(x)):m(x)}function p(x){return x===58?(t.consume(x),l=0,h):(x===43||x===45||x===46||Tn(x))&&l++<32?(t.consume(x),p):(l=0,m(x))}function h(x){return x===62?(t.exit("autolinkProtocol"),t.enter("autolinkMarker"),t.consume(x),t.exit("autolinkMarker"),t.exit("autolink"),i):x===null||x===32||x===60||Dl(x)?r(x):(t.consume(x),h)}function m(x){return x===64?(t.consume(x),g):Ox(x)?(t.consume(x),m):r(x)}function g(x){return Tn(x)?b(x):r(x)}function b(x){return x===46?(t.consume(x),l=0,g):x===62?(t.exit("autolinkProtocol").type="autolinkEmail",t.enter("autolinkMarker"),t.consume(x),t.exit("autolinkMarker"),t.exit("autolink"),i):k(x)}function k(x){if((x===45||Tn(x))&&l++<63){const w=x===45?k:b;return t.consume(x),w}return r(x)}}const zo={partial:!0,tokenize:Px};function Px(t,i,r){return l;function l(d){return We(d)?rt(t,s,"linePrefix")(d):s(d)}function s(d){return d===null||Re(d)?i(d):r(d)}}const xp={continuation:{tokenize:Yx},exit:Vx,name:"blockQuote",tokenize:Gx};function Gx(t,i,r){const l=this;return s;function s(c){if(c===62){const p=l.containerState;return p.open||(t.enter("blockQuote",{_container:!0}),p.open=!0),t.enter("blockQuotePrefix"),t.enter("blockQuoteMarker"),t.consume(c),t.exit("blockQuoteMarker"),d}return r(c)}function d(c){return We(c)?(t.enter("blockQuotePrefixWhitespace"),t.consume(c),t.exit("blockQuotePrefixWhitespace"),t.exit("blockQuotePrefix"),i):(t.exit("blockQuotePrefix"),i(c))}}function Yx(t,i,r){const l=this;return s;function s(c){return We(c)?rt(t,d,"linePrefix",l.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(c):d(c)}function d(c){return t.attempt(xp,i,r)(c)}}function Vx(t){t.exit("blockQuote")}const vp={name:"characterEscape",tokenize:$x};function $x(t,i,r){return l;function l(d){return t.enter("characterEscape"),t.enter("escapeMarker"),t.consume(d),t.exit("escapeMarker"),s}function s(d){return Dx(d)?(t.enter("characterEscapeValue"),t.consume(d),t.exit("characterEscapeValue"),t.exit("characterEscape"),i):r(d)}}const _p={name:"characterReference",tokenize:Kx};function Kx(t,i,r){const l=this;let s=0,d,c;return p;function p(b){return t.enter("characterReference"),t.enter("characterReferenceMarker"),t.consume(b),t.exit("characterReferenceMarker"),h}function h(b){return b===35?(t.enter("characterReferenceMarkerNumeric"),t.consume(b),t.exit("characterReferenceMarkerNumeric"),m):(t.enter("characterReferenceValue"),d=31,c=Tn,g(b))}function m(b){return b===88||b===120?(t.enter("characterReferenceMarkerHexadecimal"),t.consume(b),t.exit("characterReferenceMarkerHexadecimal"),t.enter("characterReferenceValue"),d=6,c=Rx,g):(t.enter("characterReferenceValue"),d=7,c=Uc,g(b))}function g(b){if(b===59&&s){const k=t.exit("characterReferenceValue");return c===Tn&&!Bc(l.sliceSerialize(k))?r(b):(t.enter("characterReferenceMarker"),t.consume(b),t.exit("characterReferenceMarker"),t.exit("characterReference"),i)}return c(b)&&s++<d?(t.consume(b),g):r(b)}}const Ep={partial:!0,tokenize:Qx},wp={concrete:!0,name:"codeFenced",tokenize:Zx};function Zx(t,i,r){const l=this,s={partial:!0,tokenize:Y};let d=0,c=0,p;return h;function h(R){return m(R)}function m(R){const le=l.events[l.events.length-1];return d=le&&le[1].type==="linePrefix"?le[2].sliceSerialize(le[1],!0).length:0,p=R,t.enter("codeFenced"),t.enter("codeFencedFence"),t.enter("codeFencedFenceSequence"),g(R)}function g(R){return R===p?(c++,t.consume(R),g):c<3?r(R):(t.exit("codeFencedFenceSequence"),We(R)?rt(t,b,"whitespace")(R):b(R))}function b(R){return R===null||Re(R)?(t.exit("codeFencedFence"),l.interrupt?i(R):t.check(Ep,T,F)(R)):(t.enter("codeFencedFenceInfo"),t.enter("chunkString",{contentType:"string"}),k(R))}function k(R){return R===null||Re(R)?(t.exit("chunkString"),t.exit("codeFencedFenceInfo"),b(R)):We(R)?(t.exit("chunkString"),t.exit("codeFencedFenceInfo"),rt(t,x,"whitespace")(R)):R===96&&R===p?r(R):(t.consume(R),k)}function x(R){return R===null||Re(R)?b(R):(t.enter("codeFencedFenceMeta"),t.enter("chunkString",{contentType:"string"}),w(R))}function w(R){return R===null||Re(R)?(t.exit("chunkString"),t.exit("codeFencedFenceMeta"),b(R)):R===96&&R===p?r(R):(t.consume(R),w)}function T(R){return t.attempt(s,F,A)(R)}function A(R){return t.enter("lineEnding"),t.consume(R),t.exit("lineEnding"),S}function S(R){return d>0&&We(R)?rt(t,L,"linePrefix",d+1)(R):L(R)}function L(R){return R===null||Re(R)?t.check(Ep,T,F)(R):(t.enter("codeFlowValue"),I(R))}function I(R){return R===null||Re(R)?(t.exit("codeFlowValue"),L(R)):(t.consume(R),I)}function F(R){return t.exit("codeFenced"),i(R)}function Y(R,le,ae){let he=0;return B;function B(ne){return R.enter("lineEnding"),R.consume(ne),R.exit("lineEnding"),ue}function ue(ne){return R.enter("codeFencedFence"),We(ne)?rt(R,re,"linePrefix",l.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(ne):re(ne)}function re(ne){return ne===p?(R.enter("codeFencedFenceSequence"),Ae(ne)):ae(ne)}function Ae(ne){return ne===p?(he++,R.consume(ne),Ae):he>=c?(R.exit("codeFencedFenceSequence"),We(ne)?rt(R,de,"whitespace")(ne):de(ne)):ae(ne)}function de(ne){return ne===null||Re(ne)?(R.exit("codeFencedFence"),le(ne)):ae(ne)}}}function Qx(t,i,r){const l=this;return s;function s(c){return c===null?r(c):(t.enter("lineEnding"),t.consume(c),t.exit("lineEnding"),d)}function d(c){return l.parser.lazy[l.now().line]?r(c):i(c)}}const jc={name:"codeIndented",tokenize:Wx},Xx={partial:!0,tokenize:Jx};function Wx(t,i,r){const l=this;return s;function s(m){return t.enter("codeIndented"),rt(t,d,"linePrefix",5)(m)}function d(m){const g=l.events[l.events.length-1];return g&&g[1].type==="linePrefix"&&g[2].sliceSerialize(g[1],!0).length>=4?c(m):r(m)}function c(m){return m===null?h(m):Re(m)?t.attempt(Xx,c,h)(m):(t.enter("codeFlowValue"),p(m))}function p(m){return m===null||Re(m)?(t.exit("codeFlowValue"),c(m)):(t.consume(m),p)}function h(m){return t.exit("codeIndented"),i(m)}}function Jx(t,i,r){const l=this;return s;function s(c){return l.parser.lazy[l.now().line]?r(c):Re(c)?(t.enter("lineEnding"),t.consume(c),t.exit("lineEnding"),s):rt(t,d,"linePrefix",5)(c)}function d(c){const p=l.events[l.events.length-1];return p&&p[1].type==="linePrefix"&&p[2].sliceSerialize(p[1],!0).length>=4?i(c):Re(c)?s(c):r(c)}}const ev={name:"codeText",previous:nv,resolve:tv,tokenize:iv};function tv(t){let i=t.length-4,r=3,l,s;if((t[r][1].type==="lineEnding"||t[r][1].type==="space")&&(t[i][1].type==="lineEnding"||t[i][1].type==="space")){for(l=r;++l<i;)if(t[l][1].type==="codeTextData"){t[r][1].type="codeTextPadding",t[i][1].type="codeTextPadding",r+=2,i-=2;break}}for(l=r-1,i++;++l<=i;)s===void 0?l!==i&&t[l][1].type!=="lineEnding"&&(s=l):(l===i||t[l][1].type==="lineEnding")&&(t[s][1].type="codeTextData",l!==s+2&&(t[s][1].end=t[l-1][1].end,t.splice(s+2,l-s-2),i-=l-s-2,l=s+2),s=void 0);return t}function nv(t){return t!==96||this.events[this.events.length-1][1].type==="characterEscape"}function iv(t,i,r){let l=0,s,d;return c;function c(b){return t.enter("codeText"),t.enter("codeTextSequence"),p(b)}function p(b){return b===96?(t.consume(b),l++,p):(t.exit("codeTextSequence"),h(b))}function h(b){return b===null?r(b):b===32?(t.enter("space"),t.consume(b),t.exit("space"),h):b===96?(d=t.enter("codeTextSequence"),s=0,g(b)):Re(b)?(t.enter("lineEnding"),t.consume(b),t.exit("lineEnding"),h):(t.enter("codeTextData"),m(b))}function m(b){return b===null||b===32||b===96||Re(b)?(t.exit("codeTextData"),h(b)):(t.consume(b),m)}function g(b){return b===96?(t.consume(b),s++,g):s===l?(t.exit("codeTextSequence"),t.exit("codeText"),i(b)):(d.type="codeTextData",m(b))}}class av{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 l=r??Number.POSITIVE_INFINITY;return l<this.left.length?this.left.slice(i,l):i>this.left.length?this.right.slice(this.right.length-l+this.left.length,this.right.length-i+this.left.length).reverse():this.left.slice(i).concat(this.right.slice(this.right.length-l+this.left.length).reverse())}splice(i,r,l){const s=r||0;this.setCursor(Math.trunc(i));const d=this.right.splice(this.right.length-s,Number.POSITIVE_INFINITY);return l&&Lo(this.left,l),d.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),Lo(this.left,i)}unshift(i){this.setCursor(0),this.right.push(i)}unshiftMany(i){this.setCursor(0),Lo(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);Lo(this.right,r.reverse())}else{const r=this.right.splice(this.left.length+this.right.length-i,Number.POSITIVE_INFINITY);Lo(this.left,r.reverse())}}}function Lo(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 Sp(t){const i={};let r=-1,l,s,d,c,p,h,m;const g=new av(t);for(;++r<g.length;){for(;r in i;)r=i[r];if(l=g.get(r),r&&l[1].type==="chunkFlow"&&g.get(r-1)[1].type==="listItemPrefix"&&(h=l[1]._tokenizer.events,d=0,d<h.length&&h[d][1].type==="lineEndingBlank"&&(d+=2),d<h.length&&h[d][1].type==="content"))for(;++d<h.length&&h[d][1].type!=="content";)h[d][1].type==="chunkText"&&(h[d][1]._isInFirstContentOfListItem=!0,d++);if(l[0]==="enter")l[1].contentType&&(Object.assign(i,rv(g,r)),r=i[r],m=!0);else if(l[1]._container){for(d=r,s=void 0;d--;)if(c=g.get(d),c[1].type==="lineEnding"||c[1].type==="lineEndingBlank")c[0]==="enter"&&(s&&(g.get(s)[1].type="lineEndingBlank"),c[1].type="lineEnding",s=d);else if(!(c[1].type==="linePrefix"||c[1].type==="listItemIndent"))break;s&&(l[1].end={...g.get(s)[1].start},p=g.slice(s,r),p.unshift(l),g.splice(s,r-s+1,p))}}return Jn(t,0,Number.POSITIVE_INFINITY,g.slice(0)),!m}function rv(t,i){const r=t.get(i)[1],l=t.get(i)[2];let s=i-1;const d=[];let c=r._tokenizer;c||(c=l.parser[r.contentType](r.start),r._contentTypeTextTrailing&&(c._contentTypeTextTrailing=!0));const p=c.events,h=[],m={};let g,b,k=-1,x=r,w=0,T=0;const A=[T];for(;x;){for(;t.get(++s)[1]!==x;);d.push(s),x._tokenizer||(g=l.sliceStream(x),x.next||g.push(null),b&&c.defineSkip(x.start),x._isInFirstContentOfListItem&&(c._gfmTasklistFirstContentOfListItem=!0),c.write(g),x._isInFirstContentOfListItem&&(c._gfmTasklistFirstContentOfListItem=void 0)),b=x,x=x.next}for(x=r;++k<p.length;)p[k][0]==="exit"&&p[k-1][0]==="enter"&&p[k][1].type===p[k-1][1].type&&p[k][1].start.line!==p[k][1].end.line&&(T=k+1,A.push(T),x._tokenizer=void 0,x.previous=void 0,x=x.next);for(c.events=[],x?(x._tokenizer=void 0,x.previous=void 0):A.pop(),k=A.length;k--;){const S=p.slice(A[k],A[k+1]),L=d.pop();h.push([L,L+S.length-1]),t.splice(L,2,S)}for(h.reverse(),k=-1;++k<h.length;)m[w+h[k][0]]=w+h[k][1],w+=h[k][1]-h[k][0]-1;return m}const ov={resolve:sv,tokenize:cv},lv={partial:!0,tokenize:uv};function sv(t){return Sp(t),t}function cv(t,i){let r;return l;function l(p){return t.enter("content"),r=t.enter("chunkContent",{contentType:"content"}),s(p)}function s(p){return p===null?d(p):Re(p)?t.check(lv,c,d)(p):(t.consume(p),s)}function d(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 uv(t,i,r){const l=this;return s;function s(c){return t.exit("chunkContent"),t.enter("lineEnding"),t.consume(c),t.exit("lineEnding"),rt(t,d,"linePrefix")}function d(c){if(c===null||Re(c))return r(c);const p=l.events[l.events.length-1];return!l.parser.constructs.disable.null.includes("codeIndented")&&p&&p[1].type==="linePrefix"&&p[2].sliceSerialize(p[1],!0).length>=4?i(c):t.interrupt(l.parser.constructs.flow,r,i)(c)}}function Tp(t,i,r,l,s,d,c,p,h){const m=h||Number.POSITIVE_INFINITY;let g=0;return b;function b(S){return S===60?(t.enter(l),t.enter(s),t.enter(d),t.consume(S),t.exit(d),k):S===null||S===32||S===41||Dl(S)?r(S):(t.enter(l),t.enter(c),t.enter(p),t.enter("chunkString",{contentType:"string"}),T(S))}function k(S){return S===62?(t.enter(d),t.consume(S),t.exit(d),t.exit(s),t.exit(l),i):(t.enter(p),t.enter("chunkString",{contentType:"string"}),x(S))}function x(S){return S===62?(t.exit("chunkString"),t.exit(p),k(S)):S===null||S===60||Re(S)?r(S):(t.consume(S),S===92?w:x)}function w(S){return S===60||S===62||S===92?(t.consume(S),x):x(S)}function T(S){return!g&&(S===null||S===41||_t(S))?(t.exit("chunkString"),t.exit(p),t.exit(c),t.exit(l),i(S)):g<m&&S===40?(t.consume(S),g++,T):S===41?(t.consume(S),g--,T):S===null||S===32||S===40||Dl(S)?r(S):(t.consume(S),S===92?A:T)}function A(S){return S===40||S===41||S===92?(t.consume(S),T):T(S)}}function Ap(t,i,r,l,s,d){const c=this;let p=0,h;return m;function m(x){return t.enter(l),t.enter(s),t.consume(x),t.exit(s),t.enter(d),g}function g(x){return p>999||x===null||x===91||x===93&&!h||x===94&&!p&&"_hiddenFootnoteSupport"in c.parser.constructs?r(x):x===93?(t.exit(d),t.enter(s),t.consume(x),t.exit(s),t.exit(l),i):Re(x)?(t.enter("lineEnding"),t.consume(x),t.exit("lineEnding"),g):(t.enter("chunkString",{contentType:"string"}),b(x))}function b(x){return x===null||x===91||x===93||Re(x)||p++>999?(t.exit("chunkString"),g(x)):(t.consume(x),h||(h=!We(x)),x===92?k:b)}function k(x){return x===91||x===92||x===93?(t.consume(x),p++,b):b(x)}}function Np(t,i,r,l,s,d){let c;return p;function p(k){return k===34||k===39||k===40?(t.enter(l),t.enter(s),t.consume(k),t.exit(s),c=k===40?41:k,h):r(k)}function h(k){return k===c?(t.enter(s),t.consume(k),t.exit(s),t.exit(l),i):(t.enter(d),m(k))}function m(k){return k===c?(t.exit(d),h(c)):k===null?r(k):Re(k)?(t.enter("lineEnding"),t.consume(k),t.exit("lineEnding"),rt(t,m,"linePrefix")):(t.enter("chunkString",{contentType:"string"}),g(k))}function g(k){return k===c||k===null||Re(k)?(t.exit("chunkString"),m(k)):(t.consume(k),k===92?b:g)}function b(k){return k===c||k===92?(t.consume(k),g):g(k)}}function Io(t,i){let r;return l;function l(s){return Re(s)?(t.enter("lineEnding"),t.consume(s),t.exit("lineEnding"),r=!0,l):We(s)?rt(t,l,r?"linePrefix":"lineSuffix")(s):i(s)}}const dv={name:"definition",tokenize:pv},fv={partial:!0,tokenize:mv};function pv(t,i,r){const l=this;let s;return d;function d(x){return t.enter("definition"),c(x)}function c(x){return Ap.call(l,t,p,r,"definitionLabel","definitionLabelMarker","definitionLabelString")(x)}function p(x){return s=Ai(l.sliceSerialize(l.events[l.events.length-1][1]).slice(1,-1)),x===58?(t.enter("definitionMarker"),t.consume(x),t.exit("definitionMarker"),h):r(x)}function h(x){return _t(x)?Io(t,m)(x):m(x)}function m(x){return Tp(t,g,r,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(x)}function g(x){return t.attempt(fv,b,b)(x)}function b(x){return We(x)?rt(t,k,"whitespace")(x):k(x)}function k(x){return x===null||Re(x)?(t.exit("definition"),l.parser.defined.push(s),i(x)):r(x)}}function mv(t,i,r){return l;function l(p){return _t(p)?Io(t,s)(p):r(p)}function s(p){return Np(t,d,r,"definitionTitle","definitionTitleMarker","definitionTitleString")(p)}function d(p){return We(p)?rt(t,c,"whitespace")(p):c(p)}function c(p){return p===null||Re(p)?i(p):r(p)}}const hv={name:"hardBreakEscape",tokenize:gv};function gv(t,i,r){return l;function l(d){return t.enter("hardBreakEscape"),t.consume(d),s}function s(d){return Re(d)?(t.exit("hardBreakEscape"),i(d)):r(d)}}const bv={name:"headingAtx",resolve:yv,tokenize:kv};function yv(t,i){let r=t.length-2,l=3,s,d;return t[l][1].type==="whitespace"&&(l+=2),r-2>l&&t[r][1].type==="whitespace"&&(r-=2),t[r][1].type==="atxHeadingSequence"&&(l===r-1||r-4>l&&t[r-2][1].type==="whitespace")&&(r-=l+1===r?2:4),r>l&&(s={type:"atxHeadingText",start:t[l][1].start,end:t[r][1].end},d={type:"chunkText",start:t[l][1].start,end:t[r][1].end,contentType:"text"},Jn(t,l,r-l+1,[["enter",s,i],["enter",d,i],["exit",d,i],["exit",s,i]])),t}function kv(t,i,r){let l=0;return s;function s(g){return t.enter("atxHeading"),d(g)}function d(g){return t.enter("atxHeadingSequence"),c(g)}function c(g){return g===35&&l++<6?(t.consume(g),c):g===null||_t(g)?(t.exit("atxHeadingSequence"),p(g)):r(g)}function p(g){return g===35?(t.enter("atxHeadingSequence"),h(g)):g===null||Re(g)?(t.exit("atxHeading"),i(g)):We(g)?rt(t,p,"whitespace")(g):(t.enter("atxHeadingText"),m(g))}function h(g){return g===35?(t.consume(g),h):(t.exit("atxHeadingSequence"),p(g))}function m(g){return g===null||g===35||_t(g)?(t.exit("atxHeadingText"),p(g)):(t.consume(g),m)}}const xv=["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"],Cp=["pre","script","style","textarea"],vv={concrete:!0,name:"htmlFlow",resolveTo:wv,tokenize:Sv},_v={partial:!0,tokenize:Av},Ev={partial:!0,tokenize:Tv};function wv(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 Sv(t,i,r){const l=this;let s,d,c,p,h;return m;function m(E){return g(E)}function g(E){return t.enter("htmlFlow"),t.enter("htmlFlowData"),t.consume(E),b}function b(E){return E===33?(t.consume(E),k):E===47?(t.consume(E),d=!0,T):E===63?(t.consume(E),s=3,l.interrupt?i:N):Dn(E)?(t.consume(E),c=String.fromCharCode(E),A):r(E)}function k(E){return E===45?(t.consume(E),s=2,x):E===91?(t.consume(E),s=5,p=0,w):Dn(E)?(t.consume(E),s=4,l.interrupt?i:N):r(E)}function x(E){return E===45?(t.consume(E),l.interrupt?i:N):r(E)}function w(E){const ie="CDATA[";return E===ie.charCodeAt(p++)?(t.consume(E),p===ie.length?l.interrupt?i:re:w):r(E)}function T(E){return Dn(E)?(t.consume(E),c=String.fromCharCode(E),A):r(E)}function A(E){if(E===null||E===47||E===62||_t(E)){const ie=E===47,ge=c.toLowerCase();return!ie&&!d&&Cp.includes(ge)?(s=1,l.interrupt?i(E):re(E)):xv.includes(c.toLowerCase())?(s=6,ie?(t.consume(E),S):l.interrupt?i(E):re(E)):(s=7,l.interrupt&&!l.parser.lazy[l.now().line]?r(E):d?L(E):I(E))}return E===45||Tn(E)?(t.consume(E),c+=String.fromCharCode(E),A):r(E)}function S(E){return E===62?(t.consume(E),l.interrupt?i:re):r(E)}function L(E){return We(E)?(t.consume(E),L):B(E)}function I(E){return E===47?(t.consume(E),B):E===58||E===95||Dn(E)?(t.consume(E),F):We(E)?(t.consume(E),I):B(E)}function F(E){return E===45||E===46||E===58||E===95||Tn(E)?(t.consume(E),F):Y(E)}function Y(E){return E===61?(t.consume(E),R):We(E)?(t.consume(E),Y):I(E)}function R(E){return E===null||E===60||E===61||E===62||E===96?r(E):E===34||E===39?(t.consume(E),h=E,le):We(E)?(t.consume(E),R):ae(E)}function le(E){return E===h?(t.consume(E),h=null,he):E===null||Re(E)?r(E):(t.consume(E),le)}function ae(E){return E===null||E===34||E===39||E===47||E===60||E===61||E===62||E===96||_t(E)?Y(E):(t.consume(E),ae)}function he(E){return E===47||E===62||We(E)?I(E):r(E)}function B(E){return E===62?(t.consume(E),ue):r(E)}function ue(E){return E===null||Re(E)?re(E):We(E)?(t.consume(E),ue):r(E)}function re(E){return E===45&&s===2?(t.consume(E),Z):E===60&&s===1?(t.consume(E),$):E===62&&s===4?(t.consume(E),ze):E===63&&s===3?(t.consume(E),N):E===93&&s===5?(t.consume(E),ye):Re(E)&&(s===6||s===7)?(t.exit("htmlFlowData"),t.check(_v,C,Ae)(E)):E===null||Re(E)?(t.exit("htmlFlowData"),Ae(E)):(t.consume(E),re)}function Ae(E){return t.check(Ev,de,C)(E)}function de(E){return t.enter("lineEnding"),t.consume(E),t.exit("lineEnding"),ne}function ne(E){return E===null||Re(E)?Ae(E):(t.enter("htmlFlowData"),re(E))}function Z(E){return E===45?(t.consume(E),N):re(E)}function $(E){return E===47?(t.consume(E),c="",Q):re(E)}function Q(E){if(E===62){const ie=c.toLowerCase();return Cp.includes(ie)?(t.consume(E),ze):re(E)}return Dn(E)&&c.length<8?(t.consume(E),c+=String.fromCharCode(E),Q):re(E)}function ye(E){return E===93?(t.consume(E),N):re(E)}function N(E){return E===62?(t.consume(E),ze):E===45&&s===2?(t.consume(E),N):re(E)}function ze(E){return E===null||Re(E)?(t.exit("htmlFlowData"),C(E)):(t.consume(E),ze)}function C(E){return t.exit("htmlFlow"),i(E)}}function Tv(t,i,r){const l=this;return s;function s(c){return Re(c)?(t.enter("lineEnding"),t.consume(c),t.exit("lineEnding"),d):r(c)}function d(c){return l.parser.lazy[l.now().line]?r(c):i(c)}}function Av(t,i,r){return l;function l(s){return t.enter("lineEnding"),t.consume(s),t.exit("lineEnding"),t.attempt(zo,i,r)}}const Nv={name:"htmlText",tokenize:Cv};function Cv(t,i,r){const l=this;let s,d,c;return p;function p(N){return t.enter("htmlText"),t.enter("htmlTextData"),t.consume(N),h}function h(N){return N===33?(t.consume(N),m):N===47?(t.consume(N),Y):N===63?(t.consume(N),I):Dn(N)?(t.consume(N),ae):r(N)}function m(N){return N===45?(t.consume(N),g):N===91?(t.consume(N),d=0,w):Dn(N)?(t.consume(N),L):r(N)}function g(N){return N===45?(t.consume(N),x):r(N)}function b(N){return N===null?r(N):N===45?(t.consume(N),k):Re(N)?(c=b,$(N)):(t.consume(N),b)}function k(N){return N===45?(t.consume(N),x):b(N)}function x(N){return N===62?Z(N):N===45?k(N):b(N)}function w(N){const ze="CDATA[";return N===ze.charCodeAt(d++)?(t.consume(N),d===ze.length?T:w):r(N)}function T(N){return N===null?r(N):N===93?(t.consume(N),A):Re(N)?(c=T,$(N)):(t.consume(N),T)}function A(N){return N===93?(t.consume(N),S):T(N)}function S(N){return N===62?Z(N):N===93?(t.consume(N),S):T(N)}function L(N){return N===null||N===62?Z(N):Re(N)?(c=L,$(N)):(t.consume(N),L)}function I(N){return N===null?r(N):N===63?(t.consume(N),F):Re(N)?(c=I,$(N)):(t.consume(N),I)}function F(N){return N===62?Z(N):I(N)}function Y(N){return Dn(N)?(t.consume(N),R):r(N)}function R(N){return N===45||Tn(N)?(t.consume(N),R):le(N)}function le(N){return Re(N)?(c=le,$(N)):We(N)?(t.consume(N),le):Z(N)}function ae(N){return N===45||Tn(N)?(t.consume(N),ae):N===47||N===62||_t(N)?he(N):r(N)}function he(N){return N===47?(t.consume(N),Z):N===58||N===95||Dn(N)?(t.consume(N),B):Re(N)?(c=he,$(N)):We(N)?(t.consume(N),he):Z(N)}function B(N){return N===45||N===46||N===58||N===95||Tn(N)?(t.consume(N),B):ue(N)}function ue(N){return N===61?(t.consume(N),re):Re(N)?(c=ue,$(N)):We(N)?(t.consume(N),ue):he(N)}function re(N){return N===null||N===60||N===61||N===62||N===96?r(N):N===34||N===39?(t.consume(N),s=N,Ae):Re(N)?(c=re,$(N)):We(N)?(t.consume(N),re):(t.consume(N),de)}function Ae(N){return N===s?(t.consume(N),s=void 0,ne):N===null?r(N):Re(N)?(c=Ae,$(N)):(t.consume(N),Ae)}function de(N){return N===null||N===34||N===39||N===60||N===61||N===96?r(N):N===47||N===62||_t(N)?he(N):(t.consume(N),de)}function ne(N){return N===47||N===62||_t(N)?he(N):r(N)}function Z(N){return N===62?(t.consume(N),t.exit("htmlTextData"),t.exit("htmlText"),i):r(N)}function $(N){return t.exit("htmlTextData"),t.enter("lineEnding"),t.consume(N),t.exit("lineEnding"),Q}function Q(N){return We(N)?rt(t,ye,"linePrefix",l.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(N):ye(N)}function ye(N){return t.enter("htmlTextData"),c(N)}}const Hc={name:"labelEnd",resolveAll:Dv,resolveTo:zv,tokenize:Lv},Mv={tokenize:Iv},Ov={tokenize:Bv},Rv={tokenize:Uv};function Dv(t){let i=-1;const r=[];for(;++i<t.length;){const l=t[i][1];if(r.push(t[i]),l.type==="labelImage"||l.type==="labelLink"||l.type==="labelEnd"){const s=l.type==="labelImage"?4:2;l.type="data",i+=s}}return t.length!==r.length&&Jn(t,0,t.length,r),t}function zv(t,i){let r=t.length,l=0,s,d,c,p;for(;r--;)if(s=t[r][1],d){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&&(d=r,s.type!=="labelLink")){l=2;break}}else s.type==="labelEnd"&&(c=r);const h={type:t[d][1].type==="labelLink"?"link":"image",start:{...t[d][1].start},end:{...t[t.length-1][1].end}},m={type:"label",start:{...t[d][1].start},end:{...t[c][1].end}},g={type:"labelText",start:{...t[d+l+2][1].end},end:{...t[c-2][1].start}};return p=[["enter",h,i],["enter",m,i]],p=pi(p,t.slice(d+1,d+l+3)),p=pi(p,[["enter",g,i]]),p=pi(p,Ll(i.parser.constructs.insideSpan.null,t.slice(d+l+4,c-3),i)),p=pi(p,[["exit",g,i],t[c-2],t[c-1],["exit",m,i]]),p=pi(p,t.slice(c+1)),p=pi(p,[["exit",h,i]]),Jn(t,d,t.length,p),t}function Lv(t,i,r){const l=this;let s=l.events.length,d,c;for(;s--;)if((l.events[s][1].type==="labelImage"||l.events[s][1].type==="labelLink")&&!l.events[s][1]._balanced){d=l.events[s][1];break}return p;function p(k){return d?d._inactive?b(k):(c=l.parser.defined.includes(Ai(l.sliceSerialize({start:d.end,end:l.now()}))),t.enter("labelEnd"),t.enter("labelMarker"),t.consume(k),t.exit("labelMarker"),t.exit("labelEnd"),h):r(k)}function h(k){return k===40?t.attempt(Mv,g,c?g:b)(k):k===91?t.attempt(Ov,g,c?m:b)(k):c?g(k):b(k)}function m(k){return t.attempt(Rv,g,b)(k)}function g(k){return i(k)}function b(k){return d._balanced=!0,r(k)}}function Iv(t,i,r){return l;function l(b){return t.enter("resource"),t.enter("resourceMarker"),t.consume(b),t.exit("resourceMarker"),s}function s(b){return _t(b)?Io(t,d)(b):d(b)}function d(b){return b===41?g(b):Tp(t,c,p,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(b)}function c(b){return _t(b)?Io(t,h)(b):g(b)}function p(b){return r(b)}function h(b){return b===34||b===39||b===40?Np(t,m,r,"resourceTitle","resourceTitleMarker","resourceTitleString")(b):g(b)}function m(b){return _t(b)?Io(t,g)(b):g(b)}function g(b){return b===41?(t.enter("resourceMarker"),t.consume(b),t.exit("resourceMarker"),t.exit("resource"),i):r(b)}}function Bv(t,i,r){const l=this;return s;function s(p){return Ap.call(l,t,d,c,"reference","referenceMarker","referenceString")(p)}function d(p){return l.parser.defined.includes(Ai(l.sliceSerialize(l.events[l.events.length-1][1]).slice(1,-1)))?i(p):r(p)}function c(p){return r(p)}}function Uv(t,i,r){return l;function l(d){return t.enter("reference"),t.enter("referenceMarker"),t.consume(d),t.exit("referenceMarker"),s}function s(d){return d===93?(t.enter("referenceMarker"),t.consume(d),t.exit("referenceMarker"),t.exit("reference"),i):r(d)}}const qv={name:"labelStartImage",resolveAll:Hc.resolveAll,tokenize:jv};function jv(t,i,r){const l=this;return s;function s(p){return t.enter("labelImage"),t.enter("labelImageMarker"),t.consume(p),t.exit("labelImageMarker"),d}function d(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 l.parser.constructs?r(p):i(p)}}const Hv={name:"labelStartLink",resolveAll:Hc.resolveAll,tokenize:Fv};function Fv(t,i,r){const l=this;return s;function s(c){return t.enter("labelLink"),t.enter("labelMarker"),t.consume(c),t.exit("labelMarker"),t.exit("labelLink"),d}function d(c){return c===94&&"_hiddenFootnoteSupport"in l.parser.constructs?r(c):i(c)}}const Fc={name:"lineEnding",tokenize:Pv};function Pv(t,i){return r;function r(l){return t.enter("lineEnding"),t.consume(l),t.exit("lineEnding"),rt(t,i,"linePrefix")}}const Il={name:"thematicBreak",tokenize:Gv};function Gv(t,i,r){let l=0,s;return d;function d(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)):l>=3&&(m===null||Re(m))?(t.exit("thematicBreak"),i(m)):r(m)}function h(m){return m===s?(t.consume(m),l++,h):(t.exit("thematicBreakSequence"),We(m)?rt(t,p,"whitespace")(m):p(m))}}const Hn={continuation:{tokenize:Kv},exit:Qv,name:"list",tokenize:$v},Yv={partial:!0,tokenize:Xv},Vv={partial:!0,tokenize:Zv};function $v(t,i,r){const l=this,s=l.events[l.events.length-1];let d=s&&s[1].type==="linePrefix"?s[2].sliceSerialize(s[1],!0).length:0,c=0;return p;function p(x){const w=l.containerState.type||(x===42||x===43||x===45?"listUnordered":"listOrdered");if(w==="listUnordered"?!l.containerState.marker||x===l.containerState.marker:Uc(x)){if(l.containerState.type||(l.containerState.type=w,t.enter(w,{_container:!0})),w==="listUnordered")return t.enter("listItemPrefix"),x===42||x===45?t.check(Il,r,m)(x):m(x);if(!l.interrupt||x===49)return t.enter("listItemPrefix"),t.enter("listItemValue"),h(x)}return r(x)}function h(x){return Uc(x)&&++c<10?(t.consume(x),h):(!l.interrupt||c<2)&&(l.containerState.marker?x===l.containerState.marker:x===41||x===46)?(t.exit("listItemValue"),m(x)):r(x)}function m(x){return t.enter("listItemMarker"),t.consume(x),t.exit("listItemMarker"),l.containerState.marker=l.containerState.marker||x,t.check(zo,l.interrupt?r:g,t.attempt(Yv,k,b))}function g(x){return l.containerState.initialBlankLine=!0,d++,k(x)}function b(x){return We(x)?(t.enter("listItemPrefixWhitespace"),t.consume(x),t.exit("listItemPrefixWhitespace"),k):r(x)}function k(x){return l.containerState.size=d+l.sliceSerialize(t.exit("listItemPrefix"),!0).length,i(x)}}function Kv(t,i,r){const l=this;return l.containerState._closeFlow=void 0,t.check(zo,s,d);function s(p){return l.containerState.furtherBlankLines=l.containerState.furtherBlankLines||l.containerState.initialBlankLine,rt(t,i,"listItemIndent",l.containerState.size+1)(p)}function d(p){return l.containerState.furtherBlankLines||!We(p)?(l.containerState.furtherBlankLines=void 0,l.containerState.initialBlankLine=void 0,c(p)):(l.containerState.furtherBlankLines=void 0,l.containerState.initialBlankLine=void 0,t.attempt(Vv,i,c)(p))}function c(p){return l.containerState._closeFlow=!0,l.interrupt=void 0,rt(t,t.attempt(Hn,i,r),"linePrefix",l.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(p)}}function Zv(t,i,r){const l=this;return rt(t,s,"listItemIndent",l.containerState.size+1);function s(d){const c=l.events[l.events.length-1];return c&&c[1].type==="listItemIndent"&&c[2].sliceSerialize(c[1],!0).length===l.containerState.size?i(d):r(d)}}function Qv(t){t.exit(this.containerState.type)}function Xv(t,i,r){const l=this;return rt(t,s,"listItemPrefixWhitespace",l.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function s(d){const c=l.events[l.events.length-1];return!We(d)&&c&&c[1].type==="listItemPrefixWhitespace"?i(d):r(d)}}const Mp={name:"setextUnderline",resolveTo:Wv,tokenize:Jv};function Wv(t,i){let r=t.length,l,s,d;for(;r--;)if(t[r][0]==="enter"){if(t[r][1].type==="content"){l=r;break}t[r][1].type==="paragraph"&&(s=r)}else t[r][1].type==="content"&&t.splice(r,1),!d&&t[r][1].type==="definition"&&(d=r);const c={type:"setextHeading",start:{...t[l][1].start},end:{...t[t.length-1][1].end}};return t[s][1].type="setextHeadingText",d?(t.splice(s,0,["enter",c,i]),t.splice(d+1,0,["exit",t[l][1],i]),t[l][1].end={...t[d][1].end}):t[l][1]=c,t.push(["exit",c,i]),t}function Jv(t,i,r){const l=this;let s;return d;function d(m){let g=l.events.length,b;for(;g--;)if(l.events[g][1].type!=="lineEnding"&&l.events[g][1].type!=="linePrefix"&&l.events[g][1].type!=="content"){b=l.events[g][1].type==="paragraph";break}return!l.parser.lazy[l.now().line]&&(l.interrupt||b)?(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"),We(m)?rt(t,h,"lineSuffix")(m):h(m))}function h(m){return m===null||Re(m)?(t.exit("setextHeadingLine"),i(m)):r(m)}}const e0={tokenize:t0};function t0(t){const i=this,r=t.attempt(zo,l,t.attempt(this.parser.constructs.flowInitial,s,rt(t,t.attempt(this.parser.constructs.flow,s,t.attempt(ov,s)),"linePrefix")));return r;function l(d){if(d===null){t.consume(d);return}return t.enter("lineEndingBlank"),t.consume(d),t.exit("lineEndingBlank"),i.currentConstruct=void 0,r}function s(d){if(d===null){t.consume(d);return}return t.enter("lineEnding"),t.consume(d),t.exit("lineEnding"),i.currentConstruct=void 0,r}}const n0={resolveAll:Rp()},i0=Op("string"),a0=Op("text");function Op(t){return{resolveAll:Rp(t==="text"?r0:void 0),tokenize:i};function i(r){const l=this,s=this.parser.constructs[t],d=r.attempt(s,c,p);return c;function c(g){return m(g)?d(g):p(g)}function p(g){if(g===null){r.consume(g);return}return r.enter("data"),r.consume(g),h}function h(g){return m(g)?(r.exit("data"),d(g)):(r.consume(g),h)}function m(g){if(g===null)return!0;const b=s[g];let k=-1;if(b)for(;++k<b.length;){const x=b[k];if(!x.previous||x.previous.call(l,l.previous))return!0}return!1}}}function Rp(t){return i;function i(r,l){let s=-1,d;for(;++s<=r.length;)d===void 0?r[s]&&r[s][1].type==="data"&&(d=s,s++):(!r[s]||r[s][1].type!=="data")&&(s!==d+2&&(r[d][1].end=r[s-1][1].end,r.splice(d+2,s-d-2),s=d+2),d=void 0);return t?t(r,l):r}}function r0(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 l=t[r-1][1],s=i.sliceStream(l);let d=s.length,c=-1,p=0,h;for(;d--;){const m=s[d];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){d++;break}}if(i._contentTypeTextTrailing&&r===t.length&&(p=0),p){const m={type:r===t.length||h||p<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:d?c:l.start._bufferIndex+c,_index:l.start._index+d,line:l.end.line,column:l.end.column-p,offset:l.end.offset-p},end:{...l.end}};l.end={...m.start},l.start.offset===l.end.offset?Object.assign(l,m):(t.splice(r,0,["enter",m,i],["exit",m,i]),r+=2)}r++}return t}const o0=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:{null:[42,95]},contentInitial:{91:dv},disable:{null:[]},document:{42:Hn,43:Hn,45:Hn,48:Hn,49:Hn,50:Hn,51:Hn,52:Hn,53:Hn,54:Hn,55:Hn,56:Hn,57:Hn,62:xp},flow:{35:bv,42:Il,45:[Mp,Il],60:vv,61:Mp,95:Il,96:wp,126:wp},flowInitial:{[-2]:jc,[-1]:jc,32:jc},insideSpan:{null:[qc,n0]},string:{38:_p,92:vp},text:{[-5]:Fc,[-4]:Fc,[-3]:Fc,33:qv,38:_p,42:qc,60:[Hx,Nv],91:Hv,92:[hv,vp],93:Hc,95:qc,96:ev}},Symbol.toStringTag,{value:"Module"}));function l0(t,i,r){let l={_bufferIndex:-1,_index:0,line:r&&r.line||1,column:r&&r.column||1,offset:r&&r.offset||0};const s={},d=[];let c=[],p=[];const h={attempt:le(Y),check:le(R),consume:L,enter:I,exit:F,interrupt:le(R,{interrupt:!0})},m={code:null,containerState:{},defineSkip:T,events:[],now:w,parser:t,previous:null,sliceSerialize:k,sliceStream:x,write:b};let g=i.tokenize.call(m,h);return i.resolveAll&&d.push(i),m;function b(ue){return c=pi(c,ue),A(),c[c.length-1]!==null?[]:(ae(i,0),m.events=Ll(d,m.events,m),m.events)}function k(ue,re){return c0(x(ue),re)}function x(ue){return s0(c,ue)}function w(){const{_bufferIndex:ue,_index:re,line:Ae,column:de,offset:ne}=l;return{_bufferIndex:ue,_index:re,line:Ae,column:de,offset:ne}}function T(ue){s[ue.line]=ue.column,B()}function A(){let ue;for(;l._index<c.length;){const re=c[l._index];if(typeof re=="string")for(ue=l._index,l._bufferIndex<0&&(l._bufferIndex=0);l._index===ue&&l._bufferIndex<re.length;)S(re.charCodeAt(l._bufferIndex));else S(re)}}function S(ue){g=g(ue)}function L(ue){Re(ue)?(l.line++,l.column=1,l.offset+=ue===-3?2:1,B()):ue!==-1&&(l.column++,l.offset++),l._bufferIndex<0?l._index++:(l._bufferIndex++,l._bufferIndex===c[l._index].length&&(l._bufferIndex=-1,l._index++)),m.previous=ue}function I(ue,re){const Ae=re||{};return Ae.type=ue,Ae.start=w(),m.events.push(["enter",Ae,m]),p.push(Ae),Ae}function F(ue){const re=p.pop();return re.end=w(),m.events.push(["exit",re,m]),re}function Y(ue,re){ae(ue,re.from)}function R(ue,re){re.restore()}function le(ue,re){return Ae;function Ae(de,ne,Z){let $,Q,ye,N;return Array.isArray(de)?C(de):"tokenize"in de?C([de]):ze(de);function ze(ve){return W;function W(be){const qe=be!==null&&ve[be],Fe=be!==null&&ve.null,nn=[...Array.isArray(qe)?qe:qe?[qe]:[],...Array.isArray(Fe)?Fe:Fe?[Fe]:[]];return C(nn)(be)}}function C(ve){return $=ve,Q=0,ve.length===0?Z:E(ve[Q])}function E(ve){return W;function W(be){return N=he(),ye=ve,ve.partial||(m.currentConstruct=ve),ve.name&&m.parser.constructs.disable.null.includes(ve.name)?ge():ve.tokenize.call(re?Object.assign(Object.create(m),re):m,h,ie,ge)(be)}}function ie(ve){return ue(ye,N),ne}function ge(ve){return N.restore(),++Q<$.length?E($[Q]):Z}}}function ae(ue,re){ue.resolveAll&&!d.includes(ue)&&d.push(ue),ue.resolve&&Jn(m.events,re,m.events.length-re,ue.resolve(m.events.slice(re),m)),ue.resolveTo&&(m.events=ue.resolveTo(m.events,m))}function he(){const ue=w(),re=m.previous,Ae=m.currentConstruct,de=m.events.length,ne=Array.from(p);return{from:de,restore:Z};function Z(){l=ue,m.previous=re,m.currentConstruct=Ae,m.events.length=de,p=ne,B()}}function B(){l.line in s&&l.column<2&&(l.column=s[l.line],l.offset+=s[l.line]-1)}}function s0(t,i){const r=i.start._index,l=i.start._bufferIndex,s=i.end._index,d=i.end._bufferIndex;let c;if(r===s)c=[t[r].slice(l,d)];else{if(c=t.slice(r,s),l>-1){const p=c[0];typeof p=="string"?c[0]=p.slice(l):c.shift()}d>0&&c.push(t[s].slice(0,d))}return c}function c0(t,i){let r=-1;const l=[];let s;for(;++r<t.length;){const d=t[r];let c;if(typeof d=="string")c=d;else switch(d){case-5:{c="\r";break}case-4:{c=`
11
+ `;break}case-3:{c=`\r
12
+ `;break}case-2:{c=i?" ":" ";break}case-1:{if(!i&&s)continue;c=" ";break}default:c=String.fromCharCode(d)}s=d===-2,l.push(c)}return l.join("")}function u0(t){const l={constructs:gp([o0,...(t||{}).extensions||[]]),content:s(zx),defined:[],document:s(Ix),flow:s(e0),lazy:{},string:s(i0),text:s(a0)};return l;function s(d){return c;function c(p){return l0(l,d,p)}}}function d0(t){for(;!Sp(t););return t}const Dp=/[\0\t\n\r]/g;function f0(){let t=1,i="",r=!0,l;return s;function s(d,c,p){const h=[];let m,g,b,k,x;for(d=i+(typeof d=="string"?d.toString():new TextDecoder(c||void 0).decode(d)),b=0,i="",r&&(d.charCodeAt(0)===65279&&b++,r=void 0);b<d.length;){if(Dp.lastIndex=b,m=Dp.exec(d),k=m&&m.index!==void 0?m.index:d.length,x=d.charCodeAt(k),!m){i=d.slice(b);break}if(x===10&&b===k&&l)h.push(-3),l=void 0;else switch(l&&(h.push(-5),l=void 0),b<k&&(h.push(d.slice(b,k)),t+=k-b),x){case 0:{h.push(65533),t++;break}case 9:{for(g=Math.ceil(t/4)*4,h.push(-2);t++<g;)h.push(-1);break}case 10:{h.push(-4),t=1;break}default:l=!0,t=1}b=k+1}return p&&(l&&h.push(-5),i&&h.push(i),h.push(null)),h}}const p0=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function m0(t){return t.replace(p0,h0)}function h0(t,i,r){if(i)return i;if(r.charCodeAt(0)===35){const s=r.charCodeAt(1),d=s===120||s===88;return bp(r.slice(d?2:1),d?16:10)}return Bc(r)||t}const zp={}.hasOwnProperty;function g0(t,i,r){return i&&typeof i=="object"&&(r=i,i=void 0),b0(r)(d0(u0(r).document().write(f0()(t,i,!0))))}function b0(t){const i={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:d(Ln),autolinkProtocol:he,autolinkEmail:he,atxHeading:d(an),blockQuote:d(Fe),characterEscape:he,characterReference:he,codeFenced:d(nn),codeFencedFenceInfo:c,codeFencedFenceMeta:c,codeIndented:d(nn,c),codeText:d(At,c),codeTextData:he,data:he,codeFlowValue:he,definition:d(An),definitionDestinationString:c,definitionLabelString:c,definitionTitleString:c,emphasis:d(qt),hardBreakEscape:d(Ve),hardBreakTrailing:d(Ve),htmlFlow:d(Qt,c),htmlFlowData:he,htmlText:d(Qt,c),htmlTextData:he,image:d(Et),label:c,link:d(Ln),listItem:d(Ft),listItemValue:k,listOrdered:d(Fn,b),listUnordered:d(Fn),paragraph:d(Fi),reference:E,referenceString:c,resourceDestinationString:c,resourceTitleString:c,setextHeading:d(an),strong:d(ur),thematicBreak:d(Yt)},exit:{atxHeading:h(),atxHeadingSequence:Y,autolink:h(),autolinkEmail:qe,autolinkProtocol:be,blockQuote:h(),characterEscapeValue:B,characterReferenceMarkerHexadecimal:ge,characterReferenceMarkerNumeric:ge,characterReferenceValue:ve,characterReference:W,codeFenced:h(A),codeFencedFence:T,codeFencedFenceInfo:x,codeFencedFenceMeta:w,codeFlowValue:B,codeIndented:h(S),codeText:h(ne),codeTextData:B,data:B,definition:h(),definitionDestinationString:F,definitionLabelString:L,definitionTitleString:I,emphasis:h(),hardBreakEscape:h(re),hardBreakTrailing:h(re),htmlFlow:h(Ae),htmlFlowData:B,htmlText:h(de),htmlTextData:B,image:h($),label:ye,labelText:Q,lineEnding:ue,link:h(Z),listItem:h(),listOrdered:h(),listUnordered:h(),paragraph:h(),referenceString:ie,resourceDestinationString:N,resourceTitleString:ze,resource:C,setextHeading:h(ae),setextHeadingLineSequence:le,setextHeadingText:R,strong:h(),thematicBreak:h()}};Lp(i,(t||{}).mdastExtensions||[]);const r={};return l;function l(U){let ce={type:"root",children:[]};const xe={stack:[ce],tokenStack:[],config:i,enter:p,exit:m,buffer:c,resume:g,data:r},Pe=[];let ot=-1;for(;++ot<U.length;)if(U[ot][1].type==="listOrdered"||U[ot][1].type==="listUnordered")if(U[ot][0]==="enter")Pe.push(ot);else{const rn=Pe.pop();ot=s(U,rn,ot)}for(ot=-1;++ot<U.length;){const rn=i[U[ot][0]];zp.call(rn,U[ot][1].type)&&rn[U[ot][1].type].call(Object.assign({sliceSerialize:U[ot][2].sliceSerialize},xe),U[ot][1])}if(xe.tokenStack.length>0){const rn=xe.tokenStack[xe.tokenStack.length-1];(rn[1]||Ip).call(xe,void 0,rn[0])}for(ce.position={start:Aa(U.length>0?U[0][1].start:{line:1,column:1,offset:0}),end:Aa(U.length>0?U[U.length-2][1].end:{line:1,column:1,offset:0})},ot=-1;++ot<i.transforms.length;)ce=i.transforms[ot](ce)||ce;return ce}function s(U,ce,xe){let Pe=ce-1,ot=-1,rn=!1,dn,Nn,Cn,jt;for(;++Pe<=xe;){const Tt=U[Pe];switch(Tt[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{Tt[0]==="enter"?ot++:ot--,jt=void 0;break}case"lineEndingBlank":{Tt[0]==="enter"&&(dn&&!jt&&!ot&&!Cn&&(Cn=Pe),jt=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:jt=void 0}if(!ot&&Tt[0]==="enter"&&Tt[1].type==="listItemPrefix"||ot===-1&&Tt[0]==="exit"&&(Tt[1].type==="listUnordered"||Tt[1].type==="listOrdered")){if(dn){let Nt=Pe;for(Nn=void 0;Nt--;){const on=U[Nt];if(on[1].type==="lineEnding"||on[1].type==="lineEndingBlank"){if(on[0]==="exit")continue;Nn&&(U[Nn][1].type="lineEndingBlank",rn=!0),on[1].type="lineEnding",Nn=Nt}else if(!(on[1].type==="linePrefix"||on[1].type==="blockQuotePrefix"||on[1].type==="blockQuotePrefixWhitespace"||on[1].type==="blockQuoteMarker"||on[1].type==="listItemIndent"))break}Cn&&(!Nn||Cn<Nn)&&(dn._spread=!0),dn.end=Object.assign({},Nn?U[Nn][1].start:Tt[1].end),U.splice(Nn||Pe,0,["exit",dn,Tt[2]]),Pe++,xe++}if(Tt[1].type==="listItemPrefix"){const Nt={type:"listItem",_spread:!1,start:Object.assign({},Tt[1].start),end:void 0};dn=Nt,U.splice(Pe,0,["enter",Nt,Tt[2]]),Pe++,xe++,Cn=void 0,jt=!0}}}return U[ce][1]._spread=rn,xe}function d(U,ce){return xe;function xe(Pe){p.call(this,U(Pe),Pe),ce&&ce.call(this,Pe)}}function c(){this.stack.push({type:"fragment",children:[]})}function p(U,ce,xe){this.stack[this.stack.length-1].children.push(U),this.stack.push(U),this.tokenStack.push([ce,xe||void 0]),U.position={start:Aa(ce.start),end:void 0}}function h(U){return ce;function ce(xe){U&&U.call(this,xe),m.call(this,xe)}}function m(U,ce){const xe=this.stack.pop(),Pe=this.tokenStack.pop();if(Pe)Pe[0].type!==U.type&&(ce?ce.call(this,U,Pe[0]):(Pe[1]||Ip).call(this,U,Pe[0]));else throw new Error("Cannot close `"+U.type+"` ("+Ro({start:U.start,end:U.end})+"): it’s not open");xe.position.end=Aa(U.end)}function g(){return Ic(this.stack.pop())}function b(){this.data.expectingFirstListItemValue=!0}function k(U){if(this.data.expectingFirstListItemValue){const ce=this.stack[this.stack.length-2];ce.start=Number.parseInt(this.sliceSerialize(U),10),this.data.expectingFirstListItemValue=void 0}}function x(){const U=this.resume(),ce=this.stack[this.stack.length-1];ce.lang=U}function w(){const U=this.resume(),ce=this.stack[this.stack.length-1];ce.meta=U}function T(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function A(){const U=this.resume(),ce=this.stack[this.stack.length-1];ce.value=U.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function S(){const U=this.resume(),ce=this.stack[this.stack.length-1];ce.value=U.replace(/(\r?\n|\r)$/g,"")}function L(U){const ce=this.resume(),xe=this.stack[this.stack.length-1];xe.label=ce,xe.identifier=Ai(this.sliceSerialize(U)).toLowerCase()}function I(){const U=this.resume(),ce=this.stack[this.stack.length-1];ce.title=U}function F(){const U=this.resume(),ce=this.stack[this.stack.length-1];ce.url=U}function Y(U){const ce=this.stack[this.stack.length-1];if(!ce.depth){const xe=this.sliceSerialize(U).length;ce.depth=xe}}function R(){this.data.setextHeadingSlurpLineEnding=!0}function le(U){const ce=this.stack[this.stack.length-1];ce.depth=this.sliceSerialize(U).codePointAt(0)===61?1:2}function ae(){this.data.setextHeadingSlurpLineEnding=void 0}function he(U){const xe=this.stack[this.stack.length-1].children;let Pe=xe[xe.length-1];(!Pe||Pe.type!=="text")&&(Pe=ei(),Pe.position={start:Aa(U.start),end:void 0},xe.push(Pe)),this.stack.push(Pe)}function B(U){const ce=this.stack.pop();ce.value+=this.sliceSerialize(U),ce.position.end=Aa(U.end)}function ue(U){const ce=this.stack[this.stack.length-1];if(this.data.atHardBreak){const xe=ce.children[ce.children.length-1];xe.position.end=Aa(U.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&i.canContainEols.includes(ce.type)&&(he.call(this,U),B.call(this,U))}function re(){this.data.atHardBreak=!0}function Ae(){const U=this.resume(),ce=this.stack[this.stack.length-1];ce.value=U}function de(){const U=this.resume(),ce=this.stack[this.stack.length-1];ce.value=U}function ne(){const U=this.resume(),ce=this.stack[this.stack.length-1];ce.value=U}function Z(){const U=this.stack[this.stack.length-1];if(this.data.inReference){const ce=this.data.referenceType||"shortcut";U.type+="Reference",U.referenceType=ce,delete U.url,delete U.title}else delete U.identifier,delete U.label;this.data.referenceType=void 0}function $(){const U=this.stack[this.stack.length-1];if(this.data.inReference){const ce=this.data.referenceType||"shortcut";U.type+="Reference",U.referenceType=ce,delete U.url,delete U.title}else delete U.identifier,delete U.label;this.data.referenceType=void 0}function Q(U){const ce=this.sliceSerialize(U),xe=this.stack[this.stack.length-2];xe.label=m0(ce),xe.identifier=Ai(ce).toLowerCase()}function ye(){const U=this.stack[this.stack.length-1],ce=this.resume(),xe=this.stack[this.stack.length-1];if(this.data.inReference=!0,xe.type==="link"){const Pe=U.children;xe.children=Pe}else xe.alt=ce}function N(){const U=this.resume(),ce=this.stack[this.stack.length-1];ce.url=U}function ze(){const U=this.resume(),ce=this.stack[this.stack.length-1];ce.title=U}function C(){this.data.inReference=void 0}function E(){this.data.referenceType="collapsed"}function ie(U){const ce=this.resume(),xe=this.stack[this.stack.length-1];xe.label=ce,xe.identifier=Ai(this.sliceSerialize(U)).toLowerCase(),this.data.referenceType="full"}function ge(U){this.data.characterReferenceType=U.type}function ve(U){const ce=this.sliceSerialize(U),xe=this.data.characterReferenceType;let Pe;xe?(Pe=bp(ce,xe==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):Pe=Bc(ce);const ot=this.stack[this.stack.length-1];ot.value+=Pe}function W(U){const ce=this.stack.pop();ce.position.end=Aa(U.end)}function be(U){B.call(this,U);const ce=this.stack[this.stack.length-1];ce.url=this.sliceSerialize(U)}function qe(U){B.call(this,U);const ce=this.stack[this.stack.length-1];ce.url="mailto:"+this.sliceSerialize(U)}function Fe(){return{type:"blockquote",children:[]}}function nn(){return{type:"code",lang:null,meta:null,value:""}}function At(){return{type:"inlineCode",value:""}}function An(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function qt(){return{type:"emphasis",children:[]}}function an(){return{type:"heading",depth:0,children:[]}}function Ve(){return{type:"break"}}function Qt(){return{type:"html",value:""}}function Et(){return{type:"image",title:null,url:"",alt:null}}function Ln(){return{type:"link",title:null,url:"",children:[]}}function Fn(U){return{type:"list",ordered:U.type==="listOrdered",start:null,spread:U._spread,children:[]}}function Ft(U){return{type:"listItem",spread:U._spread,checked:null,children:[]}}function Fi(){return{type:"paragraph",children:[]}}function ur(){return{type:"strong",children:[]}}function ei(){return{type:"text",value:""}}function Yt(){return{type:"thematicBreak"}}}function Aa(t){return{line:t.line,column:t.column,offset:t.offset}}function Lp(t,i){let r=-1;for(;++r<i.length;){const l=i[r];Array.isArray(l)?Lp(t,l):y0(t,l)}}function y0(t,i){let r;for(r in i)if(zp.call(i,r))switch(r){case"canContainEols":{const l=i[r];l&&t[r].push(...l);break}case"transforms":{const l=i[r];l&&t[r].push(...l);break}case"enter":case"exit":{const l=i[r];l&&Object.assign(t[r],l);break}}}function Ip(t,i){throw t?new Error("Cannot close `"+t.type+"` ("+Ro({start:t.start,end:t.end})+"): a different token (`"+i.type+"`, "+Ro({start:i.start,end:i.end})+") is open"):new Error("Cannot close document, a token (`"+i.type+"`, "+Ro({start:i.start,end:i.end})+") is still open")}function k0(t){const i=this;i.parser=r;function r(l){return g0(l,{...i.data("settings"),...t,extensions:i.data("micromarkExtensions")||[],mdastExtensions:i.data("fromMarkdownExtensions")||[]})}}function x0(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 v0(t,i){const r={type:"element",tagName:"br",properties:{},children:[]};return t.patch(i,r),[t.applyData(i,r),{type:"text",value:`
13
+ `}]}function _0(t,i){const r=i.value?i.value+`
14
+ `:"",l={},s=i.lang?i.lang.split(/\s+/):[];s.length>0&&(l.className=["language-"+s[0]]);let d={type:"element",tagName:"code",properties:l,children:[{type:"text",value:r}]};return i.meta&&(d.data={meta:i.meta}),t.patch(i,d),d=t.applyData(i,d),d={type:"element",tagName:"pre",properties:{},children:[d]},t.patch(i,d),d}function E0(t,i){const r={type:"element",tagName:"del",properties:{},children:t.all(i)};return t.patch(i,r),t.applyData(i,r)}function w0(t,i){const r={type:"element",tagName:"em",properties:{},children:t.all(i)};return t.patch(i,r),t.applyData(i,r)}function S0(t,i){const r=typeof t.options.clobberPrefix=="string"?t.options.clobberPrefix:"user-content-",l=String(i.identifier).toUpperCase(),s=qr(l.toLowerCase()),d=t.footnoteOrder.indexOf(l);let c,p=t.footnoteCounts.get(l);p===void 0?(p=0,t.footnoteOrder.push(l),c=t.footnoteOrder.length):c=d+1,p+=1,t.footnoteCounts.set(l,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 T0(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 A0(t,i){if(t.options.allowDangerousHtml){const r={type:"raw",value:i.value};return t.patch(i,r),t.applyData(i,r)}}function Bp(t,i){const r=i.referenceType;let l="]";if(r==="collapsed"?l+="[]":r==="full"&&(l+="["+(i.label||i.identifier)+"]"),i.type==="imageReference")return[{type:"text",value:"!["+i.alt+l}];const s=t.all(i),d=s[0];d&&d.type==="text"?d.value="["+d.value:s.unshift({type:"text",value:"["});const c=s[s.length-1];return c&&c.type==="text"?c.value+=l:s.push({type:"text",value:l}),s}function N0(t,i){const r=String(i.identifier).toUpperCase(),l=t.definitionById.get(r);if(!l)return Bp(t,i);const s={src:qr(l.url||""),alt:i.alt};l.title!==null&&l.title!==void 0&&(s.title=l.title);const d={type:"element",tagName:"img",properties:s,children:[]};return t.patch(i,d),t.applyData(i,d)}function C0(t,i){const r={src:qr(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 l={type:"element",tagName:"img",properties:r,children:[]};return t.patch(i,l),t.applyData(i,l)}function M0(t,i){const r={type:"text",value:i.value.replace(/\r?\n|\r/g," ")};t.patch(i,r);const l={type:"element",tagName:"code",properties:{},children:[r]};return t.patch(i,l),t.applyData(i,l)}function O0(t,i){const r=String(i.identifier).toUpperCase(),l=t.definitionById.get(r);if(!l)return Bp(t,i);const s={href:qr(l.url||"")};l.title!==null&&l.title!==void 0&&(s.title=l.title);const d={type:"element",tagName:"a",properties:s,children:t.all(i)};return t.patch(i,d),t.applyData(i,d)}function R0(t,i){const r={href:qr(i.url)};i.title!==null&&i.title!==void 0&&(r.title=i.title);const l={type:"element",tagName:"a",properties:r,children:t.all(i)};return t.patch(i,l),t.applyData(i,l)}function D0(t,i,r){const l=t.all(i),s=r?z0(r):Up(i),d={},c=[];if(typeof i.checked=="boolean"){const g=l[0];let b;g&&g.type==="element"&&g.tagName==="p"?b=g:(b={type:"element",tagName:"p",properties:{},children:[]},l.unshift(b)),b.children.length>0&&b.children.unshift({type:"text",value:" "}),b.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:i.checked,disabled:!0},children:[]}),d.className=["task-list-item"]}let p=-1;for(;++p<l.length;){const g=l[p];(s||p!==0||g.type!=="element"||g.tagName!=="p")&&c.push({type:"text",value:`
15
+ `}),g.type==="element"&&g.tagName==="p"&&!s?c.push(...g.children):c.push(g)}const h=l[l.length-1];h&&(s||h.type!=="element"||h.tagName!=="p")&&c.push({type:"text",value:`
16
+ `});const m={type:"element",tagName:"li",properties:d,children:c};return t.patch(i,m),t.applyData(i,m)}function z0(t){let i=!1;if(t.type==="list"){i=t.spread||!1;const r=t.children;let l=-1;for(;!i&&++l<r.length;)i=Up(r[l])}return i}function Up(t){const i=t.spread;return i??t.children.length>1}function L0(t,i){const r={},l=t.all(i);let s=-1;for(typeof i.start=="number"&&i.start!==1&&(r.start=i.start);++s<l.length;){const c=l[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 d={type:"element",tagName:i.ordered?"ol":"ul",properties:r,children:t.wrap(l,!0)};return t.patch(i,d),t.applyData(i,d)}function I0(t,i){const r={type:"element",tagName:"p",properties:{},children:t.all(i)};return t.patch(i,r),t.applyData(i,r)}function B0(t,i){const r={type:"root",children:t.wrap(t.all(i))};return t.patch(i,r),t.applyData(i,r)}function U0(t,i){const r={type:"element",tagName:"strong",properties:{},children:t.all(i)};return t.patch(i,r),t.applyData(i,r)}function q0(t,i){const r=t.all(i),l=r.shift(),s=[];if(l){const c={type:"element",tagName:"thead",properties:{},children:t.wrap([l],!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=Mc(i.children[1]),h=ap(i.children[i.children.length-1]);p&&h&&(c.position={start:p,end:h}),s.push(c)}const d={type:"element",tagName:"table",properties:{},children:t.wrap(s,!0)};return t.patch(i,d),t.applyData(i,d)}function j0(t,i,r){const l=r?r.children:void 0,d=(l?l.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 b=i.children[h],k={},x=c?c[h]:void 0;x&&(k.align=x);let w={type:"element",tagName:d,properties:k,children:[]};b&&(w.children=t.all(b),t.patch(b,w),w=t.applyData(b,w)),m.push(w)}const g={type:"element",tagName:"tr",properties:{},children:t.wrap(m,!0)};return t.patch(i,g),t.applyData(i,g)}function H0(t,i){const r={type:"element",tagName:"td",properties:{},children:t.all(i)};return t.patch(i,r),t.applyData(i,r)}const qp=9,jp=32;function F0(t){const i=String(t),r=/\r?\n|\r/g;let l=r.exec(i),s=0;const d=[];for(;l;)d.push(Hp(i.slice(s,l.index),s>0,!0),l[0]),s=l.index+l[0].length,l=r.exec(i);return d.push(Hp(i.slice(s),s>0,!1)),d.join("")}function Hp(t,i,r){let l=0,s=t.length;if(i){let d=t.codePointAt(l);for(;d===qp||d===jp;)l++,d=t.codePointAt(l)}if(r){let d=t.codePointAt(s-1);for(;d===qp||d===jp;)s--,d=t.codePointAt(s-1)}return s>l?t.slice(l,s):""}function P0(t,i){const r={type:"text",value:F0(String(i.value))};return t.patch(i,r),t.applyData(i,r)}function G0(t,i){const r={type:"element",tagName:"hr",properties:{},children:[]};return t.patch(i,r),t.applyData(i,r)}const Y0={blockquote:x0,break:v0,code:_0,delete:E0,emphasis:w0,footnoteReference:S0,heading:T0,html:A0,imageReference:N0,image:C0,inlineCode:M0,linkReference:O0,link:R0,listItem:D0,list:L0,paragraph:I0,root:B0,strong:U0,table:q0,tableCell:H0,tableRow:j0,text:P0,thematicBreak:G0,toml:Bl,yaml:Bl,definition:Bl,footnoteDefinition:Bl};function Bl(){}const Fp=-1,Ul=0,Bo=1,ql=2,Pc=3,Gc=4,Yc=5,Vc=6,Pp=7,Gp=8,Yp=typeof self=="object"?self:globalThis,Vp=(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 Yp[t](i)},V0=(t,i)=>{const r=(s,d)=>(t.set(d,s),s),l=s=>{if(t.has(s))return t.get(s);const[d,c]=i[s];switch(d){case Ul:case Fp:return r(c,s);case Bo:{const p=r([],s);for(const h of c)p.push(l(h));return p}case ql:{const p=r({},s);for(const[h,m]of c)p[l(h)]=l(m);return p}case Pc:return r(new Date(c),s);case Gc:{const{source:p,flags:h}=c;return r(new RegExp(p,h),s)}case Yc:{const p=r(new Map,s);for(const[h,m]of c)p.set(l(h),l(m));return p}case Vc:{const p=r(new Set,s);for(const h of c)p.add(l(h));return p}case Pp:{const{name:p,message:h}=c;return r(typeof Yp[p]=="function"?Vp(p,h):new Error(h),s)}case Gp: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(Vp(d,c),s)};return l},$p=t=>V0(new Map,t)(0),lr="",{toString:$0}={},{keys:K0}=Object,Uo=t=>{const i=typeof t;if(i!=="object"||!t)return[Ul,i];const r=$0.call(t).slice(8,-1);switch(r){case"Array":return[Bo,lr];case"Object":return[ql,lr];case"Date":return[Pc,lr];case"RegExp":return[Gc,lr];case"Map":return[Yc,lr];case"Set":return[Vc,lr];case"DataView":return[Bo,r]}return r.includes("Array")?[Bo,r]:t instanceof Error?[Pp,t.name||"Error"]:[ql,r]},jl=([t,i])=>t===Ul&&(i==="function"||i==="symbol"),Z0=(t,i,r,l)=>{const s=(c,p)=>{const h=l.push(c)-1;return r.set(p,h),h},d=c=>{if(r.has(c))return r.get(c);let[p,h]=Uo(c);switch(p){case Ul:{let g=c;switch(h){case"bigint":p=Gp,g=c.toString();break;case"function":case"symbol":if(t)throw new TypeError("unable to serialize "+h);g=null;break;case"undefined":return s([Fp],c)}return s([p,g],c)}case Bo:{if(h){let k=c;return h==="DataView"?k=new Uint8Array(c.buffer):h==="ArrayBuffer"&&(k=new Uint8Array(c)),s([h,[...k]],c)}const g=[],b=s([p,g],c);for(const k of c)g.push(d(k));return b}case ql:{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 d(c.toJSON());const g=[],b=s([p,g],c);for(const k of K0(c))(t||!jl(Uo(c[k])))&&g.push([d(k),d(c[k])]);return b}case Pc:return s([p,isNaN(c.getTime())?lr:c.toISOString()],c);case Gc:{const{source:g,flags:b}=c;return s([p,{source:g,flags:b}],c)}case Yc:{const g=[],b=s([p,g],c);for(const[k,x]of c)(t||!(jl(Uo(k))||jl(Uo(x))))&&g.push([d(k),d(x)]);return b}case Vc:{const g=[],b=s([p,g],c);for(const k of c)(t||!jl(Uo(k)))&&g.push(d(k));return b}}const{message:m}=c;return s([p,{name:h,message:m}],c)};return d},Kp=(t,{json:i,lossy:r}={})=>{const l=[];return Z0(!(i||r),!!i,new Map,l)(t),l},Hl=typeof structuredClone=="function"?(t,i)=>i&&("json"in i||"lossy"in i)?$p(Kp(t,i)):structuredClone(t):(t,i)=>$p(Kp(t,i));function Q0(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 X0(t,i){return"Back to reference "+(t+1)+(i>1?"-"+i:"")}function W0(t){const i=typeof t.options.clobberPrefix=="string"?t.options.clobberPrefix:"user-content-",r=t.options.footnoteBackContent||Q0,l=t.options.footnoteBackLabel||X0,s=t.options.footnoteLabel||"Footnotes",d=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 g=t.all(m),b=String(m.identifier).toUpperCase(),k=qr(b.toLowerCase());let x=0;const w=[],T=t.footnoteCounts.get(b);for(;T!==void 0&&++x<=T;){w.length>0&&w.push({type:"text",value:" "});let L=typeof r=="string"?r:r(h,x);typeof L=="string"&&(L={type:"text",value:L}),w.push({type:"element",tagName:"a",properties:{href:"#"+i+"fnref-"+k+(x>1?"-"+x:""),dataFootnoteBackref:"",ariaLabel:typeof l=="string"?l:l(h,x),className:["data-footnote-backref"]},children:Array.isArray(L)?L:[L]})}const A=g[g.length-1];if(A&&A.type==="element"&&A.tagName==="p"){const L=A.children[A.children.length-1];L&&L.type==="text"?L.value+=" ":A.children.push({type:"text",value:" "}),A.children.push(...w)}else g.push(...w);const S={type:"element",tagName:"li",properties:{id:i+"fn-"+k},children:t.wrap(g,!0)};t.patch(m,S),p.push(S)}if(p.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:d,properties:{...Hl(c),id:"footnote-label"},children:[{type:"text",value:s}]},{type:"text",value:`
17
+ `},{type:"element",tagName:"ol",properties:{},children:t.wrap(p,!0)},{type:"text",value:`
18
+ `}]}}const qo=(function(t){if(t==null)return n1;if(typeof t=="function")return Fl(t);if(typeof t=="object")return Array.isArray(t)?J0(t):e1(t);if(typeof t=="string")return t1(t);throw new Error("Expected function, string, or object as test")});function J0(t){const i=[];let r=-1;for(;++r<t.length;)i[r]=qo(t[r]);return Fl(l);function l(...s){let d=-1;for(;++d<i.length;)if(i[d].apply(this,s))return!0;return!1}}function e1(t){const i=t;return Fl(r);function r(l){const s=l;let d;for(d in t)if(s[d]!==i[d])return!1;return!0}}function t1(t){return Fl(i);function i(r){return r&&r.type===t}}function Fl(t){return i;function i(r,l,s){return!!(i1(r)&&t.call(this,r,typeof l=="number"?l:void 0,s||void 0))}}function n1(){return!0}function i1(t){return t!==null&&typeof t=="object"&&"type"in t}function MN(t){return t}const Zp=[],a1=!0,$c=!1,r1="skip";function Qp(t,i,r,l){let s;typeof i=="function"&&typeof r!="function"?(l=r,r=i):s=i;const d=qo(s),c=l?-1:1;p(t,void 0,[])();function p(h,m,g){const b=h&&typeof h=="object"?h:{};if(typeof b.type=="string"){const x=typeof b.tagName=="string"?b.tagName:typeof b.name=="string"?b.name:void 0;Object.defineProperty(k,"name",{value:"node ("+(h.type+(x?"<"+x+">":""))+")"})}return k;function k(){let x=Zp,w,T,A;if((!i||d(h,m,g[g.length-1]||void 0))&&(x=o1(r(h,g)),x[0]===$c))return x;if("children"in h&&h.children){const S=h;if(S.children&&x[0]!==r1)for(T=(l?S.children.length:-1)+c,A=g.concat(S);T>-1&&T<S.children.length;){const L=S.children[T];if(w=p(L,T,A)(),w[0]===$c)return w;T=typeof w[1]=="number"?w[1]:T+c}}return x}}}function o1(t){return Array.isArray(t)?t:typeof t=="number"?[a1,t]:t==null?Zp:[t]}function Pl(t,i,r,l){let s,d,c;typeof i=="function"&&typeof r!="function"?(d=void 0,c=i,s=r):(d=i,c=r,s=l),Qp(t,d,p,s);function p(h,m){const g=m[m.length-1],b=g?g.children.indexOf(h):void 0;return c(h,b,g)}}const Kc={}.hasOwnProperty,l1={};function s1(t,i){const r=i||l1,l=new Map,s=new Map,d=new Map,c={...Y0,...r.handlers},p={all:m,applyData:u1,definitionById:l,footnoteById:s,footnoteCounts:d,footnoteOrder:[],handlers:c,one:h,options:r,patch:c1,wrap:f1};return Pl(t,function(g){if(g.type==="definition"||g.type==="footnoteDefinition"){const b=g.type==="definition"?l:s,k=String(g.identifier).toUpperCase();b.has(k)||b.set(k,g)}}),p;function h(g,b){const k=g.type,x=p.handlers[k];if(Kc.call(p.handlers,k)&&x)return x(p,g,b);if(p.options.passThrough&&p.options.passThrough.includes(k)){if("children"in g){const{children:T,...A}=g,S=Hl(A);return S.children=p.all(g),S}return Hl(g)}return(p.options.unknownHandler||d1)(p,g,b)}function m(g){const b=[];if("children"in g){const k=g.children;let x=-1;for(;++x<k.length;){const w=p.one(k[x],g);if(w){if(x&&k[x-1].type==="break"&&(!Array.isArray(w)&&w.type==="text"&&(w.value=Xp(w.value)),!Array.isArray(w)&&w.type==="element")){const T=w.children[0];T&&T.type==="text"&&(T.value=Xp(T.value))}Array.isArray(w)?b.push(...w):b.push(w)}}}return b}}function c1(t,i){t.position&&(i.position=ox(t))}function u1(t,i){let r=i;if(t&&t.data){const l=t.data.hName,s=t.data.hChildren,d=t.data.hProperties;if(typeof l=="string")if(r.type==="element")r.tagName=l;else{const c="children"in r?r.children:[r];r={type:"element",tagName:l,properties:{},children:c}}r.type==="element"&&d&&Object.assign(r.properties,Hl(d)),"children"in r&&r.children&&s!==null&&s!==void 0&&(r.children=s)}return r}function d1(t,i){const r=i.data||{},l="value"in i&&!(Kc.call(r,"hProperties")||Kc.call(r,"hChildren"))?{type:"text",value:i.value}:{type:"element",tagName:"div",properties:{},children:t.all(i)};return t.patch(i,l),t.applyData(i,l)}function f1(t,i){const r=[];let l=-1;for(i&&r.push({type:"text",value:`
19
+ `});++l<t.length;)l&&r.push({type:"text",value:`
20
+ `}),r.push(t[l]);return i&&t.length>0&&r.push({type:"text",value:`
21
+ `}),r}function Xp(t){let i=0,r=t.charCodeAt(i);for(;r===9||r===32;)i++,r=t.charCodeAt(i);return t.slice(i)}function Wp(t,i){const r=s1(t,i),l=r.one(t,void 0),s=W0(r),d=Array.isArray(l)?{type:"root",children:l}:l||{type:"root",children:[]};return s&&d.children.push({type:"text",value:`
22
+ `},s),d}function p1(t,i){return t&&"run"in t?async function(r,l){const s=Wp(r,{file:l,...i});await t.run(s,l)}:function(r,l){return Wp(r,{file:l,...t||i})}}function Jp(t){if(t)throw t}var Zc,em;function m1(){if(em)return Zc;em=1;var t=Object.prototype.hasOwnProperty,i=Object.prototype.toString,r=Object.defineProperty,l=Object.getOwnPropertyDescriptor,s=function(m){return typeof Array.isArray=="function"?Array.isArray(m):i.call(m)==="[object Array]"},d=function(m){if(!m||i.call(m)!=="[object Object]")return!1;var g=t.call(m,"constructor"),b=m.constructor&&m.constructor.prototype&&t.call(m.constructor.prototype,"isPrototypeOf");if(m.constructor&&!g&&!b)return!1;var k;for(k in m);return typeof k>"u"||t.call(m,k)},c=function(m,g){r&&g.name==="__proto__"?r(m,g.name,{enumerable:!0,configurable:!0,value:g.newValue,writable:!0}):m[g.name]=g.newValue},p=function(m,g){if(g==="__proto__")if(t.call(m,g)){if(l)return l(m,g).value}else return;return m[g]};return Zc=function h(){var m,g,b,k,x,w,T=arguments[0],A=1,S=arguments.length,L=!1;for(typeof T=="boolean"&&(L=T,T=arguments[1]||{},A=2),(T==null||typeof T!="object"&&typeof T!="function")&&(T={});A<S;++A)if(m=arguments[A],m!=null)for(g in m)b=p(T,g),k=p(m,g),T!==k&&(L&&k&&(d(k)||(x=s(k)))?(x?(x=!1,w=b&&s(b)?b:[]):w=b&&d(b)?b:{},c(T,{name:g,newValue:h(L,w,k)})):typeof k<"u"&&c(T,{name:g,newValue:k}));return T},Zc}var h1=m1();const Qc=hc(h1);function Xc(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 g1(){const t=[],i={run:r,use:l};return i;function r(...s){let d=-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 g=t[++d];let b=-1;if(h){c(h);return}for(;++b<s.length;)(m[b]===null||m[b]===void 0)&&(m[b]=s[b]);s=m,g?b1(g,p)(...m):c(null,...m)}}function l(s){if(typeof s!="function")throw new TypeError("Expected `middelware` to be a function, not "+s);return t.push(s),i}}function b1(t,i){let r;return l;function l(...c){const p=t.length>c.length;let h;p&&c.push(s);try{h=t.apply(this,c)}catch(m){const g=m;if(p&&r)throw g;return s(g)}p||(h&&h.then&&typeof h.then=="function"?h.then(d,s):h instanceof Error?s(h):d(h))}function s(c,...p){r||(r=!0,i(c,...p))}function d(c){s(null,c)}}const Ui={basename:y1,dirname:k1,extname:x1,join:v1,sep:"/"};function y1(t,i){if(i!==void 0&&typeof i!="string")throw new TypeError('"ext" argument must be a string');jo(t);let r=0,l=-1,s=t.length,d;if(i===void 0||i.length===0||i.length>t.length){for(;s--;)if(t.codePointAt(s)===47){if(d){r=s+1;break}}else l<0&&(d=!0,l=s+1);return l<0?"":t.slice(r,l)}if(i===t)return"";let c=-1,p=i.length-1;for(;s--;)if(t.codePointAt(s)===47){if(d){r=s+1;break}}else c<0&&(d=!0,c=s+1),p>-1&&(t.codePointAt(s)===i.codePointAt(p--)?p<0&&(l=s):(p=-1,l=c));return r===l?l=c:l<0&&(l=t.length),t.slice(r,l)}function k1(t){if(jo(t),t.length===0)return".";let i=-1,r=t.length,l;for(;--r;)if(t.codePointAt(r)===47){if(l){i=r;break}}else l||(l=!0);return i<0?t.codePointAt(0)===47?"/":".":i===1&&t.codePointAt(0)===47?"//":t.slice(0,i)}function x1(t){jo(t);let i=t.length,r=-1,l=0,s=-1,d=0,c;for(;i--;){const p=t.codePointAt(i);if(p===47){if(c){l=i+1;break}continue}r<0&&(c=!0,r=i+1),p===46?s<0?s=i:d!==1&&(d=1):s>-1&&(d=-1)}return s<0||r<0||d===0||d===1&&s===r-1&&s===l+1?"":t.slice(s,r)}function v1(...t){let i=-1,r;for(;++i<t.length;)jo(t[i]),t[i]&&(r=r===void 0?t[i]:r+"/"+t[i]);return r===void 0?".":_1(r)}function _1(t){jo(t);const i=t.codePointAt(0)===47;let r=E1(t,!i);return r.length===0&&!i&&(r="."),r.length>0&&t.codePointAt(t.length-1)===47&&(r+="/"),i?"/"+r:r}function E1(t,i){let r="",l=0,s=-1,d=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||d===1))if(s!==c-1&&d===2){if(r.length<2||l!==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="",l=0):(r=r.slice(0,h),l=r.length-1-r.lastIndexOf("/")),s=c,d=0;continue}}else if(r.length>0){r="",l=0,s=c,d=0;continue}}i&&(r=r.length>0?r+"/..":"..",l=2)}else r.length>0?r+="/"+t.slice(s+1,c):r=t.slice(s+1,c),l=c-s-1;s=c,d=0}else p===46&&d>-1?d++:d=-1}return r}function jo(t){if(typeof t!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(t))}const w1={cwd:S1};function S1(){return"/"}function Wc(t){return!!(t!==null&&typeof t=="object"&&"href"in t&&t.href&&"protocol"in t&&t.protocol&&t.auth===void 0)}function T1(t){if(typeof t=="string")t=new URL(t);else if(!Wc(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 A1(t)}function A1(t){if(t.hostname!==""){const l=new TypeError('File URL host must be "localhost" or empty on darwin');throw l.code="ERR_INVALID_FILE_URL_HOST",l}const i=t.pathname;let r=-1;for(;++r<i.length;)if(i.codePointAt(r)===37&&i.codePointAt(r+1)===50){const l=i.codePointAt(r+2);if(l===70||l===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 Jc=["history","path","basename","stem","extname","dirname"];class tm{constructor(i){let r;i?Wc(i)?r={path:i}:typeof i=="string"||N1(i)?r={value:i}:r=i:r={},this.cwd="cwd"in r?"":w1.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let l=-1;for(;++l<Jc.length;){const d=Jc[l];d in r&&r[d]!==void 0&&r[d]!==null&&(this[d]=d==="history"?[...r[d]]:r[d])}let s;for(s in r)Jc.includes(s)||(this[s]=r[s])}get basename(){return typeof this.path=="string"?Ui.basename(this.path):void 0}set basename(i){tu(i,"basename"),eu(i,"basename"),this.path=Ui.join(this.dirname||"",i)}get dirname(){return typeof this.path=="string"?Ui.dirname(this.path):void 0}set dirname(i){nm(this.basename,"dirname"),this.path=Ui.join(i||"",this.basename)}get extname(){return typeof this.path=="string"?Ui.extname(this.path):void 0}set extname(i){if(eu(i,"extname"),nm(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=Ui.join(this.dirname,this.stem+(i||""))}get path(){return this.history[this.history.length-1]}set path(i){Wc(i)&&(i=T1(i)),tu(i,"path"),this.path!==i&&this.history.push(i)}get stem(){return typeof this.path=="string"?Ui.basename(this.path,this.extname):void 0}set stem(i){tu(i,"stem"),eu(i,"stem"),this.path=Ui.join(this.dirname||"",i+(this.extname||""))}fail(i,r,l){const s=this.message(i,r,l);throw s.fatal=!0,s}info(i,r,l){const s=this.message(i,r,l);return s.fatal=void 0,s}message(i,r,l){const s=new Sn(i,r,l);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(Ui.sep))throw new Error("`"+i+"` cannot be a path: did not expect `"+Ui.sep+"`")}function tu(t,i){if(!t)throw new Error("`"+i+"` cannot be empty")}function nm(t,i){if(!t)throw new Error("Setting `"+i+"` requires `path` to be set too")}function N1(t){return!!(t&&typeof t=="object"&&"byteLength"in t&&"byteOffset"in t)}const C1=(function(t){const l=this.constructor.prototype,s=l[t],d=function(){return s.apply(d,arguments)};return Object.setPrototypeOf(d,l),d}),M1={}.hasOwnProperty;class nu extends C1{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=g1()}copy(){const i=new nu;let r=-1;for(;++r<this.attachers.length;){const l=this.attachers[r];i.use(...l)}return i.data(Qc(!0,{},this.namespace)),i}data(i,r){return typeof i=="string"?arguments.length===2?(ru("data",this.frozen),this.namespace[i]=r,this):M1.call(this.namespace,i)&&this.namespace[i]||void 0:i?(ru("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,...l]=this.attachers[this.freezeIndex];if(l[0]===!1)continue;l[0]===!0&&(l[0]=void 0);const s=r.call(i,...l);typeof s=="function"&&this.transformers.use(s)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(i){this.freeze();const r=Gl(i),l=this.parser||this.Parser;return iu("parse",l),l(String(r),r)}process(i,r){const l=this;return this.freeze(),iu("process",this.parser||this.Parser),au("process",this.compiler||this.Compiler),r?s(void 0,r):new Promise(s);function s(d,c){const p=Gl(i),h=l.parse(p);l.run(h,p,function(g,b,k){if(g||!b||!k)return m(g);const x=b,w=l.stringify(x,k);D1(w)?k.value=w:k.result=w,m(g,k)});function m(g,b){g||!b?c(g):d?d(b):r(void 0,b)}}}processSync(i){let r=!1,l;return this.freeze(),iu("processSync",this.parser||this.Parser),au("processSync",this.compiler||this.Compiler),this.process(i,s),am("processSync","process",r),l;function s(d,c){r=!0,Jp(d),l=c}}run(i,r,l){im(i),this.freeze();const s=this.transformers;return!l&&typeof r=="function"&&(l=r,r=void 0),l?d(void 0,l):new Promise(d);function d(c,p){const h=Gl(r);s.run(i,h,m);function m(g,b,k){const x=b||i;g?p(g):c?c(x):l(void 0,x,k)}}}runSync(i,r){let l=!1,s;return this.run(i,r,d),am("runSync","run",l),s;function d(c,p){Jp(c),s=p,l=!0}}stringify(i,r){this.freeze();const l=Gl(r),s=this.compiler||this.Compiler;return au("stringify",s),im(i),s(i,l)}use(i,...r){const l=this.attachers,s=this.namespace;if(ru("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 d(m){if(typeof m=="function")h(m,[]);else if(typeof m=="object")if(Array.isArray(m)){const[g,...b]=m;h(g,b)}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=Qc(!0,s.settings,m.settings))}function p(m){let g=-1;if(m!=null)if(Array.isArray(m))for(;++g<m.length;){const b=m[g];d(b)}else throw new TypeError("Expected a list of plugins, not `"+m+"`")}function h(m,g){let b=-1,k=-1;for(;++b<l.length;)if(l[b][0]===m){k=b;break}if(k===-1)l.push([m,...g]);else if(g.length>0){let[x,...w]=g;const T=l[k][1];Xc(T)&&Xc(x)&&(x=Qc(!0,T,x)),l[k]=[m,x,...w]}}}}const O1=new nu().freeze();function iu(t,i){if(typeof i!="function")throw new TypeError("Cannot `"+t+"` without `parser`")}function au(t,i){if(typeof i!="function")throw new TypeError("Cannot `"+t+"` without `compiler`")}function ru(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 im(t){if(!Xc(t)||typeof t.type!="string")throw new TypeError("Expected node, got `"+t+"`")}function am(t,i,r){if(!r)throw new Error("`"+t+"` finished async. Use `"+i+"` instead")}function Gl(t){return R1(t)?t:new tm(t)}function R1(t){return!!(t&&typeof t=="object"&&"message"in t&&"messages"in t)}function D1(t){return typeof t=="string"||z1(t)}function z1(t){return!!(t&&typeof t=="object"&&"byteLength"in t&&"byteOffset"in t)}const L1="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",rm=[],om={allowDangerousHtml:!0},I1=/^(https?|ircs?|mailto|xmpp)$/i,B1=[{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 U1(t){const i=q1(t),r=j1(t);return H1(i.runSync(i.parse(r),r),t)}function q1(t){const i=t.rehypePlugins||rm,r=t.remarkPlugins||rm,l=t.remarkRehypeOptions?{...t.remarkRehypeOptions,...om}:om;return O1().use(k0).use(r).use(p1,l).use(i)}function j1(t){const i=t.children||"",r=new tm;return typeof i=="string"&&(r.value=i),r}function H1(t,i){const r=i.allowedElements,l=i.allowElement,s=i.components,d=i.disallowedElements,c=i.skipHtml,p=i.unwrapDisallowed,h=i.urlTransform||F1;for(const g of B1)Object.hasOwn(i,g.from)&&(""+g.from+(g.to?"use `"+g.to+"` instead":"remove it")+L1+g.id,void 0);return Pl(t,m),dx(t,{Fragment:v.Fragment,components:s,ignoreInvalidStyle:!0,jsx:v.jsx,jsxs:v.jsxs,passKeys:!0,passNode:!0});function m(g,b,k){if(g.type==="raw"&&k&&typeof b=="number")return c?k.children.splice(b,1):k.children[b]={type:"text",value:g.value},b;if(g.type==="element"){let x;for(x in Lc)if(Object.hasOwn(Lc,x)&&Object.hasOwn(g.properties,x)){const w=g.properties[x],T=Lc[x];(T===null||T.includes(g.tagName))&&(g.properties[x]=h(String(w||""),x,g))}}if(g.type==="element"){let x=r?!r.includes(g.tagName):d?d.includes(g.tagName):!1;if(!x&&l&&typeof b=="number"&&(x=!l(g,b,k)),x&&k&&typeof b=="number")return p&&g.children?k.children.splice(b,1,...g.children):k.children.splice(b,1),b}}}function F1(t){const i=t.indexOf(":"),r=t.indexOf("?"),l=t.indexOf("#"),s=t.indexOf("/");return i===-1||s!==-1&&i>s||r!==-1&&i>r||l!==-1&&i>l||I1.test(t.slice(0,i))?t:""}const lm=(function(t,i,r){const l=qo(r);if(!t||!t.type||!t.children)throw new Error("Expected parent node");if(typeof i=="number"){if(i<0||i===Number.POSITIVE_INFINITY)throw new Error("Expected positive finite number as index")}else if(i=t.children.indexOf(i),i<0)throw new Error("Expected child node or index");for(;++i<t.children.length;)if(l(t.children[i],i,t))return t.children[i]}),sr=(function(t){if(t==null)return Y1;if(typeof t=="string")return G1(t);if(typeof t=="object")return P1(t);if(typeof t=="function")return ou(t);throw new Error("Expected function, string, or array as `test`")});function P1(t){const i=[];let r=-1;for(;++r<t.length;)i[r]=sr(t[r]);return ou(l);function l(...s){let d=-1;for(;++d<i.length;)if(i[d].apply(this,s))return!0;return!1}}function G1(t){return ou(i);function i(r){return r.tagName===t}}function ou(t){return i;function i(r,l,s){return!!(V1(r)&&t.call(this,r,typeof l=="number"?l:void 0,s||void 0))}}function Y1(t){return!!(t&&typeof t=="object"&&"type"in t&&t.type==="element"&&"tagName"in t&&typeof t.tagName=="string")}function V1(t){return t!==null&&typeof t=="object"&&"type"in t&&"tagName"in t}const sm=/\n/g,cm=/[\t ]+/g,lu=sr("br"),um=sr(e_),$1=sr("p"),dm=sr("tr"),K1=sr(["datalist","head","noembed","noframes","noscript","rp","script","style","template","title",J1,t_]),fm=sr(["address","article","aside","blockquote","body","caption","center","dd","dialog","dir","dl","dt","div","figure","figcaption","footer","form,","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","legend","li","listing","main","menu","nav","ol","p","plaintext","pre","section","ul","xmp"]);function Z1(t,i){const r=i||{},l="children"in t?t.children:[],s=fm(t),d=hm(t,{whitespace:r.whitespace||"normal"}),c=[];(t.type==="text"||t.type==="comment")&&c.push(...mm(t,{breakBefore:!0,breakAfter:!0}));let p=-1;for(;++p<l.length;)c.push(...pm(l[p],t,{whitespace:d,breakBefore:p?void 0:s,breakAfter:p<l.length-1?lu(l[p+1]):s}));const h=[];let m;for(p=-1;++p<c.length;){const g=c[p];typeof g=="number"?m!==void 0&&g>m&&(m=g):g&&(m!==void 0&&m>-1&&h.push(`
23
+ `.repeat(m)||" "),m=-1,h.push(g))}return h.join("")}function pm(t,i,r){return t.type==="element"?Q1(t,i,r):t.type==="text"?r.whitespace==="normal"?mm(t,r):X1(t):[]}function Q1(t,i,r){const l=hm(t,r),s=t.children||[];let d=-1,c=[];if(K1(t))return c;let p,h;for(lu(t)||dm(t)&&lm(i,t,dm)?h=`
24
+ `:$1(t)?(p=2,h=2):fm(t)&&(p=1,h=1);++d<s.length;)c=c.concat(pm(s[d],t,{whitespace:l,breakBefore:d?void 0:p,breakAfter:d<s.length-1?lu(s[d+1]):h}));return um(t)&&lm(i,t,um)&&c.push(" "),p&&c.unshift(p),h&&c.push(h),c}function mm(t,i){const r=String(t.value),l=[],s=[];let d=0;for(;d<=r.length;){sm.lastIndex=d;const h=sm.exec(r),m=h&&"index"in h?h.index:r.length;l.push(W1(r.slice(d,m).replace(/[\u061C\u200E\u200F\u202A-\u202E\u2066-\u2069]/g,""),d===0?i.breakBefore:!0,m===r.length?i.breakAfter:!0)),d=m+1}let c=-1,p;for(;++c<l.length;)l[c].charCodeAt(l[c].length-1)===8203||c<l.length-1&&l[c+1].charCodeAt(0)===8203?(s.push(l[c]),p=void 0):l[c]?(typeof p=="number"&&s.push(p),s.push(l[c]),p=0):(c===0||c===l.length-1)&&s.push(0);return s}function X1(t){return[String(t.value)]}function W1(t,i,r){const l=[];let s=0,d;for(;s<t.length;){cm.lastIndex=s;const c=cm.exec(t);d=c?c.index:t.length,!s&&!d&&c&&!i&&l.push(""),s!==d&&l.push(t.slice(s,d)),s=c?d+c[0].length:d}return s!==d&&!r&&l.push(""),l.join(" ")}function hm(t,i){if(t.type==="element"){const r=t.properties||{};switch(t.tagName){case"listing":case"plaintext":case"xmp":return"pre";case"nobr":return"nowrap";case"pre":return r.wrap?"pre-wrap":"pre";case"td":case"th":return r.noWrap?"nowrap":i.whitespace;case"textarea":return"pre-wrap"}}return i.whitespace}function J1(t){return!!(t.properties||{}).hidden}function e_(t){return t.tagName==="td"||t.tagName==="th"}function t_(t){return t.tagName==="dialog"&&!(t.properties||{}).open}function n_(t){const i=t.regex,r=t.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),l="decltype\\(auto\\)",s="[a-zA-Z_]\\w*::",c="(?!struct)("+l+"|"+i.optional(s)+"[a-zA-Z_]\\w*"+i.optional("<[^<>]+>")+")",p={className:"type",begin:"\\b[a-z\\d_]*_t\\b"},m={className:"string",variants:[{begin:'(u8?|U|L)?"',end:'"',illegal:"\\n",contains:[t.BACKSLASH_ESCAPE]},{begin:"(u8?|U|L)?'("+"\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)"+"|.)",end:"'",illegal:"."},t.END_SAME_AS_BEGIN({begin:/(?:u8?|U|L)?R"([^()\\ ]{0,16})\(/,end:/\)([^()\\ ]{0,16})"/})]},g={className:"number",variants:[{begin:"[+-]?(?:(?:[0-9](?:'?[0-9])*\\.(?:[0-9](?:'?[0-9])*)?|\\.[0-9](?:'?[0-9])*)(?:[Ee][+-]?[0-9](?:'?[0-9])*)?|[0-9](?:'?[0-9])*[Ee][+-]?[0-9](?:'?[0-9])*|0[Xx](?:[0-9A-Fa-f](?:'?[0-9A-Fa-f])*(?:\\.(?:[0-9A-Fa-f](?:'?[0-9A-Fa-f])*)?)?|\\.[0-9A-Fa-f](?:'?[0-9A-Fa-f])*)[Pp][+-]?[0-9](?:'?[0-9])*)(?:[Ff](?:16|32|64|128)?|(BF|bf)16|[Ll]|)"},{begin:"[+-]?\\b(?:0[Bb][01](?:'?[01])*|0[Xx][0-9A-Fa-f](?:'?[0-9A-Fa-f])*|0(?:'?[0-7])*|[1-9](?:'?[0-9])*)(?:[Uu](?:LL?|ll?)|[Uu][Zz]?|(?:LL?|ll?)[Uu]?|[Zz][Uu]|)"}],relevance:0},b={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:"if else elif endif define undef warning error line pragma _Pragma ifdef ifndef include"},contains:[{begin:/\\\n/,relevance:0},t.inherit(m,{className:"string"}),{className:"string",begin:/<.*?>/},r,t.C_BLOCK_COMMENT_MODE]},k={className:"title",begin:i.optional(s)+t.IDENT_RE,relevance:0},x=i.optional(s)+t.IDENT_RE+"\\s*\\(",w=["alignas","alignof","and","and_eq","asm","atomic_cancel","atomic_commit","atomic_noexcept","auto","bitand","bitor","break","case","catch","class","co_await","co_return","co_yield","compl","concept","const_cast|10","consteval","constexpr","constinit","continue","decltype","default","delete","do","dynamic_cast|10","else","enum","explicit","export","extern","false","final","for","friend","goto","if","import","inline","module","mutable","namespace","new","noexcept","not","not_eq","nullptr","operator","or","or_eq","override","private","protected","public","reflexpr","register","reinterpret_cast|10","requires","return","sizeof","static_assert","static_cast|10","struct","switch","synchronized","template","this","thread_local","throw","transaction_safe","transaction_safe_dynamic","true","try","typedef","typeid","typename","union","using","virtual","volatile","while","xor","xor_eq"],T=["bool","char","char16_t","char32_t","char8_t","double","float","int","long","short","void","wchar_t","unsigned","signed","const","static"],A=["any","auto_ptr","barrier","binary_semaphore","bitset","complex","condition_variable","condition_variable_any","counting_semaphore","deque","false_type","flat_map","flat_set","future","imaginary","initializer_list","istringstream","jthread","latch","lock_guard","multimap","multiset","mutex","optional","ostringstream","packaged_task","pair","promise","priority_queue","queue","recursive_mutex","recursive_timed_mutex","scoped_lock","set","shared_future","shared_lock","shared_mutex","shared_timed_mutex","shared_ptr","stack","string_view","stringstream","timed_mutex","thread","true_type","tuple","unique_lock","unique_ptr","unordered_map","unordered_multimap","unordered_multiset","unordered_set","variant","vector","weak_ptr","wstring","wstring_view"],S=["abort","abs","acos","apply","as_const","asin","atan","atan2","calloc","ceil","cerr","cin","clog","cos","cosh","cout","declval","endl","exchange","exit","exp","fabs","floor","fmod","forward","fprintf","fputs","free","frexp","fscanf","future","invoke","isalnum","isalpha","iscntrl","isdigit","isgraph","islower","isprint","ispunct","isspace","isupper","isxdigit","labs","launder","ldexp","log","log10","make_pair","make_shared","make_shared_for_overwrite","make_tuple","make_unique","malloc","memchr","memcmp","memcpy","memset","modf","move","pow","printf","putchar","puts","realloc","scanf","sin","sinh","snprintf","sprintf","sqrt","sscanf","std","stderr","stdin","stdout","strcat","strchr","strcmp","strcpy","strcspn","strlen","strncat","strncmp","strncpy","strpbrk","strrchr","strspn","strstr","swap","tan","tanh","terminate","to_underlying","tolower","toupper","vfprintf","visit","vprintf","vsprintf"],F={type:T,keyword:w,literal:["NULL","false","nullopt","nullptr","true"],built_in:["_Pragma"],_type_hints:A},Y={className:"function.dispatch",relevance:0,keywords:{_hint:S},begin:i.concat(/\b/,/(?!decltype)/,/(?!if)/,/(?!for)/,/(?!switch)/,/(?!while)/,t.IDENT_RE,i.lookahead(/(<[^<>]+>|)\s*\(/))},R=[Y,b,p,r,t.C_BLOCK_COMMENT_MODE,g,m],le={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:F,contains:R.concat([{begin:/\(/,end:/\)/,keywords:F,contains:R.concat(["self"]),relevance:0}]),relevance:0},ae={className:"function",begin:"("+c+"[\\*&\\s]+)+"+x,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:F,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:l,keywords:F,relevance:0},{begin:x,returnBegin:!0,contains:[k],relevance:0},{begin:/::/,relevance:0},{begin:/:/,endsWithParent:!0,contains:[m,g]},{relevance:0,match:/,/},{className:"params",begin:/\(/,end:/\)/,keywords:F,relevance:0,contains:[r,t.C_BLOCK_COMMENT_MODE,m,g,p,{begin:/\(/,end:/\)/,keywords:F,relevance:0,contains:["self",r,t.C_BLOCK_COMMENT_MODE,m,g,p]}]},p,r,t.C_BLOCK_COMMENT_MODE,b]};return{name:"C++",aliases:["cc","c++","h++","hpp","hh","hxx","cxx"],keywords:F,illegal:"</",classNameAliases:{"function.dispatch":"built_in"},contains:[].concat(le,ae,Y,R,[b,{begin:"\\b(deque|list|queue|priority_queue|pair|stack|vector|map|set|bitset|multiset|multimap|unordered_map|unordered_set|unordered_multiset|unordered_multimap|array|tuple|optional|variant|function|flat_map|flat_set)\\s*<(?!<)",end:">",keywords:F,contains:["self",p]},{begin:t.IDENT_RE+"::",keywords:F},{match:[/\b(?:enum(?:\s+(?:class|struct))?|class|struct|union)/,/\s+/,/\w+/],className:{1:"keyword",3:"title.class"}}])}}function i_(t){const i={type:["boolean","byte","word","String"],built_in:["KeyboardController","MouseController","SoftwareSerial","EthernetServer","EthernetClient","LiquidCrystal","RobotControl","GSMVoiceCall","EthernetUDP","EsploraTFT","HttpClient","RobotMotor","WiFiClient","GSMScanner","FileSystem","Scheduler","GSMServer","YunClient","YunServer","IPAddress","GSMClient","GSMModem","Keyboard","Ethernet","Console","GSMBand","Esplora","Stepper","Process","WiFiUDP","GSM_SMS","Mailbox","USBHost","Firmata","PImage","Client","Server","GSMPIN","FileIO","Bridge","Serial","EEPROM","Stream","Mouse","Audio","Servo","File","Task","GPRS","WiFi","Wire","TFT","GSM","SPI","SD"],_hints:["setup","loop","runShellCommandAsynchronously","analogWriteResolution","retrieveCallingNumber","printFirmwareVersion","analogReadResolution","sendDigitalPortPair","noListenOnLocalhost","readJoystickButton","setFirmwareVersion","readJoystickSwitch","scrollDisplayRight","getVoiceCallStatus","scrollDisplayLeft","writeMicroseconds","delayMicroseconds","beginTransmission","getSignalStrength","runAsynchronously","getAsynchronously","listenOnLocalhost","getCurrentCarrier","readAccelerometer","messageAvailable","sendDigitalPorts","lineFollowConfig","countryNameWrite","runShellCommand","readStringUntil","rewindDirectory","readTemperature","setClockDivider","readLightSensor","endTransmission","analogReference","detachInterrupt","countryNameRead","attachInterrupt","encryptionType","readBytesUntil","robotNameWrite","readMicrophone","robotNameRead","cityNameWrite","userNameWrite","readJoystickY","readJoystickX","mouseReleased","openNextFile","scanNetworks","noInterrupts","digitalWrite","beginSpeaker","mousePressed","isActionDone","mouseDragged","displayLogos","noAutoscroll","addParameter","remoteNumber","getModifiers","keyboardRead","userNameRead","waitContinue","processInput","parseCommand","printVersion","readNetworks","writeMessage","blinkVersion","cityNameRead","readMessage","setDataMode","parsePacket","isListening","setBitOrder","beginPacket","isDirectory","motorsWrite","drawCompass","digitalRead","clearScreen","serialEvent","rightToLeft","setTextSize","leftToRight","requestFrom","keyReleased","compassRead","analogWrite","interrupts","WiFiServer","disconnect","playMelody","parseFloat","autoscroll","getPINUsed","setPINUsed","setTimeout","sendAnalog","readSlider","analogRead","beginWrite","createChar","motorsStop","keyPressed","tempoWrite","readButton","subnetMask","debugPrint","macAddress","writeGreen","randomSeed","attachGPRS","readString","sendString","remotePort","releaseAll","mouseMoved","background","getXChange","getYChange","answerCall","getResult","voiceCall","endPacket","constrain","getSocket","writeJSON","getButton","available","connected","findUntil","readBytes","exitValue","readGreen","writeBlue","startLoop","IPAddress","isPressed","sendSysex","pauseMode","gatewayIP","setCursor","getOemKey","tuneWrite","noDisplay","loadImage","switchPIN","onRequest","onReceive","changePIN","playFile","noBuffer","parseInt","overflow","checkPIN","knobRead","beginTFT","bitClear","updateIR","bitWrite","position","writeRGB","highByte","writeRed","setSpeed","readBlue","noStroke","remoteIP","transfer","shutdown","hangCall","beginSMS","endWrite","attached","maintain","noCursor","checkReg","checkPUK","shiftOut","isValid","shiftIn","pulseIn","connect","println","localIP","pinMode","getIMEI","display","noBlink","process","getBand","running","beginSD","drawBMP","lowByte","setBand","release","bitRead","prepare","pointTo","readRed","setMode","noFill","remove","listen","stroke","detach","attach","noTone","exists","buffer","height","bitSet","circle","config","cursor","random","IRread","setDNS","endSMS","getKey","micros","millis","begin","print","write","ready","flush","width","isPIN","blink","clear","press","mkdir","rmdir","close","point","yield","image","BSSID","click","delay","read","text","move","peek","beep","rect","line","open","seek","fill","size","turn","stop","home","find","step","tone","sqrt","RSSI","SSID","end","bit","tan","cos","sin","pow","map","abs","max","min","get","run","put"],literal:["DIGITAL_MESSAGE","FIRMATA_STRING","ANALOG_MESSAGE","REPORT_DIGITAL","REPORT_ANALOG","INPUT_PULLUP","SET_PIN_MODE","INTERNAL2V56","SYSTEM_RESET","LED_BUILTIN","INTERNAL1V1","SYSEX_START","INTERNAL","EXTERNAL","DEFAULT","OUTPUT","INPUT","HIGH","LOW"]},r=n_(t),l=r.keywords;return l.type=[...l.type,...i.type],l.literal=[...l.literal,...i.literal],l.built_in=[...l.built_in,...i.built_in],l._hints=i._hints,r.name="Arduino",r.aliases=["ino"],r.supersetOf="cpp",r}function a_(t){const i=t.regex,r={},l={begin:/\$\{/,end:/\}/,contains:["self",{begin:/:-/,contains:[r]}]};Object.assign(r,{className:"variable",variants:[{begin:i.concat(/\$[\w\d#@][\w\d_]*/,"(?![\\w\\d])(?![$])")},l]});const s={className:"subst",begin:/\$\(/,end:/\)/,contains:[t.BACKSLASH_ESCAPE]},d=t.inherit(t.COMMENT(),{match:[/(^|\s)/,/#.*$/],scope:{2:"comment"}}),c={begin:/<<-?\s*(?=\w+)/,starts:{contains:[t.END_SAME_AS_BEGIN({begin:/(\w+)/,end:/(\w+)/,className:"string"})]}},p={className:"string",begin:/"/,end:/"/,contains:[t.BACKSLASH_ESCAPE,r,s]};s.contains.push(p);const h={match:/\\"/},m={className:"string",begin:/'/,end:/'/},g={match:/\\'/},b={begin:/\$?\(\(/,end:/\)\)/,contains:[{begin:/\d+#[0-9a-f]+/,className:"number"},t.NUMBER_MODE,r]},k=["fish","bash","zsh","sh","csh","ksh","tcsh","dash","scsh"],x=t.SHEBANG({binary:`(${k.join("|")})`,relevance:10}),w={className:"function",begin:/\w[\w\d_]*\s*\(\s*\)\s*\{/,returnBegin:!0,contains:[t.inherit(t.TITLE_MODE,{begin:/\w[\w\d_]*/})],relevance:0},T=["if","then","else","elif","fi","time","for","while","until","in","do","done","case","esac","coproc","function","select"],A=["true","false"],S={match:/(\/[a-z._-]+)+/},L=["break","cd","continue","eval","exec","exit","export","getopts","hash","pwd","readonly","return","shift","test","times","trap","umask","unset"],I=["alias","bind","builtin","caller","command","declare","echo","enable","help","let","local","logout","mapfile","printf","read","readarray","source","sudo","type","typeset","ulimit","unalias"],F=["autoload","bg","bindkey","bye","cap","chdir","clone","comparguments","compcall","compctl","compdescribe","compfiles","compgroups","compquote","comptags","comptry","compvalues","dirs","disable","disown","echotc","echoti","emulate","fc","fg","float","functions","getcap","getln","history","integer","jobs","kill","limit","log","noglob","popd","print","pushd","pushln","rehash","sched","setcap","setopt","stat","suspend","ttyctl","unfunction","unhash","unlimit","unsetopt","vared","wait","whence","where","which","zcompile","zformat","zftp","zle","zmodload","zparseopts","zprof","zpty","zregexparse","zsocket","zstyle","ztcp"],Y=["chcon","chgrp","chown","chmod","cp","dd","df","dir","dircolors","ln","ls","mkdir","mkfifo","mknod","mktemp","mv","realpath","rm","rmdir","shred","sync","touch","truncate","vdir","b2sum","base32","base64","cat","cksum","comm","csplit","cut","expand","fmt","fold","head","join","md5sum","nl","numfmt","od","paste","ptx","pr","sha1sum","sha224sum","sha256sum","sha384sum","sha512sum","shuf","sort","split","sum","tac","tail","tr","tsort","unexpand","uniq","wc","arch","basename","chroot","date","dirname","du","echo","env","expr","factor","groups","hostid","id","link","logname","nice","nohup","nproc","pathchk","pinky","printenv","printf","pwd","readlink","runcon","seq","sleep","stat","stdbuf","stty","tee","test","timeout","tty","uname","unlink","uptime","users","who","whoami","yes"];return{name:"Bash",aliases:["sh","zsh"],keywords:{$pattern:/\b[a-z][a-z0-9._-]+\b/,keyword:T,literal:A,built_in:[...L,...I,"set","shopt",...F,...Y]},contains:[x,t.SHEBANG(),w,b,d,c,S,p,h,m,g,r]}}function r_(t){const i=t.regex,r=t.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),l="decltype\\(auto\\)",s="[a-zA-Z_]\\w*::",c="("+l+"|"+i.optional(s)+"[a-zA-Z_]\\w*"+i.optional("<[^<>]+>")+")",p={className:"type",variants:[{begin:"\\b[a-z\\d_]*_t\\b"},{match:/\batomic_[a-z]{3,6}\b/}]},m={className:"string",variants:[{begin:'(u8?|U|L)?"',end:'"',illegal:"\\n",contains:[t.BACKSLASH_ESCAPE]},{begin:"(u8?|U|L)?'("+"\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)"+"|.)",end:"'",illegal:"."},t.END_SAME_AS_BEGIN({begin:/(?:u8?|U|L)?R"([^()\\ ]{0,16})\(/,end:/\)([^()\\ ]{0,16})"/})]},g={className:"number",variants:[{match:/\b(0b[01']+)/},{match:/(-?)\b([\d']+(\.[\d']*)?|\.[\d']+)((ll|LL|l|L)(u|U)?|(u|U)(ll|LL|l|L)?|f|F|b|B)/},{match:/(-?)\b(0[xX][a-fA-F0-9]+(?:'[a-fA-F0-9]+)*(?:\.[a-fA-F0-9]*(?:'[a-fA-F0-9]*)*)?(?:[pP][-+]?[0-9]+)?(l|L)?(u|U)?)/},{match:/(-?)\b\d+(?:'\d+)*(?:\.\d*(?:'\d*)*)?(?:[eE][-+]?\d+)?/}],relevance:0},b={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:"if else elif endif define undef warning error line pragma _Pragma ifdef ifndef elifdef elifndef include"},contains:[{begin:/\\\n/,relevance:0},t.inherit(m,{className:"string"}),{className:"string",begin:/<.*?>/},r,t.C_BLOCK_COMMENT_MODE]},k={className:"title",begin:i.optional(s)+t.IDENT_RE,relevance:0},x=i.optional(s)+t.IDENT_RE+"\\s*\\(",A={keyword:["asm","auto","break","case","continue","default","do","else","enum","extern","for","fortran","goto","if","inline","register","restrict","return","sizeof","typeof","typeof_unqual","struct","switch","typedef","union","volatile","while","_Alignas","_Alignof","_Atomic","_Generic","_Noreturn","_Static_assert","_Thread_local","alignas","alignof","noreturn","static_assert","thread_local","_Pragma"],type:["float","double","signed","unsigned","int","short","long","char","void","_Bool","_BitInt","_Complex","_Imaginary","_Decimal32","_Decimal64","_Decimal96","_Decimal128","_Decimal64x","_Decimal128x","_Float16","_Float32","_Float64","_Float128","_Float32x","_Float64x","_Float128x","const","static","constexpr","complex","bool","imaginary"],literal:"true false NULL",built_in:"std string wstring cin cout cerr clog stdin stdout stderr stringstream istringstream ostringstream auto_ptr deque list queue stack vector map set pair bitset multiset multimap unordered_set unordered_map unordered_multiset unordered_multimap priority_queue make_pair array shared_ptr abort terminate abs acos asin atan2 atan calloc ceil cosh cos exit exp fabs floor fmod fprintf fputs free frexp fscanf future isalnum isalpha iscntrl isdigit isgraph islower isprint ispunct isspace isupper isxdigit tolower toupper labs ldexp log10 log malloc realloc memchr memcmp memcpy memset modf pow printf putchar puts scanf sinh sin snprintf sprintf sqrt sscanf strcat strchr strcmp strcpy strcspn strlen strncat strncmp strncpy strpbrk strrchr strspn strstr tanh tan vfprintf vprintf vsprintf endl initializer_list unique_ptr"},S=[b,p,r,t.C_BLOCK_COMMENT_MODE,g,m],L={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:A,contains:S.concat([{begin:/\(/,end:/\)/,keywords:A,contains:S.concat(["self"]),relevance:0}]),relevance:0},I={begin:"("+c+"[\\*&\\s]+)+"+x,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:A,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:l,keywords:A,relevance:0},{begin:x,returnBegin:!0,contains:[t.inherit(k,{className:"title.function"})],relevance:0},{relevance:0,match:/,/},{className:"params",begin:/\(/,end:/\)/,keywords:A,relevance:0,contains:[r,t.C_BLOCK_COMMENT_MODE,m,g,p,{begin:/\(/,end:/\)/,keywords:A,relevance:0,contains:["self",r,t.C_BLOCK_COMMENT_MODE,m,g,p]}]},p,r,t.C_BLOCK_COMMENT_MODE,b]};return{name:"C",aliases:["h"],keywords:A,disableAutodetect:!0,illegal:"</",contains:[].concat(L,I,S,[b,{begin:t.IDENT_RE+"::",keywords:A},{className:"class",beginKeywords:"enum class struct union",end:/[{;:<>=]/,contains:[{beginKeywords:"final class struct"},t.TITLE_MODE]}]),exports:{preprocessor:b,strings:m,keywords:A}}}function o_(t){const i=t.regex,r=t.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),l="decltype\\(auto\\)",s="[a-zA-Z_]\\w*::",c="(?!struct)("+l+"|"+i.optional(s)+"[a-zA-Z_]\\w*"+i.optional("<[^<>]+>")+")",p={className:"type",begin:"\\b[a-z\\d_]*_t\\b"},m={className:"string",variants:[{begin:'(u8?|U|L)?"',end:'"',illegal:"\\n",contains:[t.BACKSLASH_ESCAPE]},{begin:"(u8?|U|L)?'("+"\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)"+"|.)",end:"'",illegal:"."},t.END_SAME_AS_BEGIN({begin:/(?:u8?|U|L)?R"([^()\\ ]{0,16})\(/,end:/\)([^()\\ ]{0,16})"/})]},g={className:"number",variants:[{begin:"[+-]?(?:(?:[0-9](?:'?[0-9])*\\.(?:[0-9](?:'?[0-9])*)?|\\.[0-9](?:'?[0-9])*)(?:[Ee][+-]?[0-9](?:'?[0-9])*)?|[0-9](?:'?[0-9])*[Ee][+-]?[0-9](?:'?[0-9])*|0[Xx](?:[0-9A-Fa-f](?:'?[0-9A-Fa-f])*(?:\\.(?:[0-9A-Fa-f](?:'?[0-9A-Fa-f])*)?)?|\\.[0-9A-Fa-f](?:'?[0-9A-Fa-f])*)[Pp][+-]?[0-9](?:'?[0-9])*)(?:[Ff](?:16|32|64|128)?|(BF|bf)16|[Ll]|)"},{begin:"[+-]?\\b(?:0[Bb][01](?:'?[01])*|0[Xx][0-9A-Fa-f](?:'?[0-9A-Fa-f])*|0(?:'?[0-7])*|[1-9](?:'?[0-9])*)(?:[Uu](?:LL?|ll?)|[Uu][Zz]?|(?:LL?|ll?)[Uu]?|[Zz][Uu]|)"}],relevance:0},b={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:"if else elif endif define undef warning error line pragma _Pragma ifdef ifndef include"},contains:[{begin:/\\\n/,relevance:0},t.inherit(m,{className:"string"}),{className:"string",begin:/<.*?>/},r,t.C_BLOCK_COMMENT_MODE]},k={className:"title",begin:i.optional(s)+t.IDENT_RE,relevance:0},x=i.optional(s)+t.IDENT_RE+"\\s*\\(",w=["alignas","alignof","and","and_eq","asm","atomic_cancel","atomic_commit","atomic_noexcept","auto","bitand","bitor","break","case","catch","class","co_await","co_return","co_yield","compl","concept","const_cast|10","consteval","constexpr","constinit","continue","decltype","default","delete","do","dynamic_cast|10","else","enum","explicit","export","extern","false","final","for","friend","goto","if","import","inline","module","mutable","namespace","new","noexcept","not","not_eq","nullptr","operator","or","or_eq","override","private","protected","public","reflexpr","register","reinterpret_cast|10","requires","return","sizeof","static_assert","static_cast|10","struct","switch","synchronized","template","this","thread_local","throw","transaction_safe","transaction_safe_dynamic","true","try","typedef","typeid","typename","union","using","virtual","volatile","while","xor","xor_eq"],T=["bool","char","char16_t","char32_t","char8_t","double","float","int","long","short","void","wchar_t","unsigned","signed","const","static"],A=["any","auto_ptr","barrier","binary_semaphore","bitset","complex","condition_variable","condition_variable_any","counting_semaphore","deque","false_type","flat_map","flat_set","future","imaginary","initializer_list","istringstream","jthread","latch","lock_guard","multimap","multiset","mutex","optional","ostringstream","packaged_task","pair","promise","priority_queue","queue","recursive_mutex","recursive_timed_mutex","scoped_lock","set","shared_future","shared_lock","shared_mutex","shared_timed_mutex","shared_ptr","stack","string_view","stringstream","timed_mutex","thread","true_type","tuple","unique_lock","unique_ptr","unordered_map","unordered_multimap","unordered_multiset","unordered_set","variant","vector","weak_ptr","wstring","wstring_view"],S=["abort","abs","acos","apply","as_const","asin","atan","atan2","calloc","ceil","cerr","cin","clog","cos","cosh","cout","declval","endl","exchange","exit","exp","fabs","floor","fmod","forward","fprintf","fputs","free","frexp","fscanf","future","invoke","isalnum","isalpha","iscntrl","isdigit","isgraph","islower","isprint","ispunct","isspace","isupper","isxdigit","labs","launder","ldexp","log","log10","make_pair","make_shared","make_shared_for_overwrite","make_tuple","make_unique","malloc","memchr","memcmp","memcpy","memset","modf","move","pow","printf","putchar","puts","realloc","scanf","sin","sinh","snprintf","sprintf","sqrt","sscanf","std","stderr","stdin","stdout","strcat","strchr","strcmp","strcpy","strcspn","strlen","strncat","strncmp","strncpy","strpbrk","strrchr","strspn","strstr","swap","tan","tanh","terminate","to_underlying","tolower","toupper","vfprintf","visit","vprintf","vsprintf"],F={type:T,keyword:w,literal:["NULL","false","nullopt","nullptr","true"],built_in:["_Pragma"],_type_hints:A},Y={className:"function.dispatch",relevance:0,keywords:{_hint:S},begin:i.concat(/\b/,/(?!decltype)/,/(?!if)/,/(?!for)/,/(?!switch)/,/(?!while)/,t.IDENT_RE,i.lookahead(/(<[^<>]+>|)\s*\(/))},R=[Y,b,p,r,t.C_BLOCK_COMMENT_MODE,g,m],le={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:F,contains:R.concat([{begin:/\(/,end:/\)/,keywords:F,contains:R.concat(["self"]),relevance:0}]),relevance:0},ae={className:"function",begin:"("+c+"[\\*&\\s]+)+"+x,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:F,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:l,keywords:F,relevance:0},{begin:x,returnBegin:!0,contains:[k],relevance:0},{begin:/::/,relevance:0},{begin:/:/,endsWithParent:!0,contains:[m,g]},{relevance:0,match:/,/},{className:"params",begin:/\(/,end:/\)/,keywords:F,relevance:0,contains:[r,t.C_BLOCK_COMMENT_MODE,m,g,p,{begin:/\(/,end:/\)/,keywords:F,relevance:0,contains:["self",r,t.C_BLOCK_COMMENT_MODE,m,g,p]}]},p,r,t.C_BLOCK_COMMENT_MODE,b]};return{name:"C++",aliases:["cc","c++","h++","hpp","hh","hxx","cxx"],keywords:F,illegal:"</",classNameAliases:{"function.dispatch":"built_in"},contains:[].concat(le,ae,Y,R,[b,{begin:"\\b(deque|list|queue|priority_queue|pair|stack|vector|map|set|bitset|multiset|multimap|unordered_map|unordered_set|unordered_multiset|unordered_multimap|array|tuple|optional|variant|function|flat_map|flat_set)\\s*<(?!<)",end:">",keywords:F,contains:["self",p]},{begin:t.IDENT_RE+"::",keywords:F},{match:[/\b(?:enum(?:\s+(?:class|struct))?|class|struct|union)/,/\s+/,/\w+/],className:{1:"keyword",3:"title.class"}}])}}function l_(t){const i=["bool","byte","char","decimal","delegate","double","dynamic","enum","float","int","long","nint","nuint","object","sbyte","short","string","ulong","uint","ushort"],r=["public","private","protected","static","internal","protected","abstract","async","extern","override","unsafe","virtual","new","sealed","partial"],l=["default","false","null","true"],s=["abstract","as","base","break","case","catch","class","const","continue","do","else","event","explicit","extern","finally","fixed","for","foreach","goto","if","implicit","in","interface","internal","is","lock","namespace","new","operator","out","override","params","private","protected","public","readonly","record","ref","return","scoped","sealed","sizeof","stackalloc","static","struct","switch","this","throw","try","typeof","unchecked","unsafe","using","virtual","void","volatile","while"],d=["add","alias","and","ascending","args","async","await","by","descending","dynamic","equals","file","from","get","global","group","init","into","join","let","nameof","not","notnull","on","or","orderby","partial","record","remove","required","scoped","select","set","unmanaged","value|0","var","when","where","with","yield"],c={keyword:s.concat(d),built_in:i,literal:l},p=t.inherit(t.TITLE_MODE,{begin:"[a-zA-Z](\\.?\\w)*"}),h={className:"number",variants:[{begin:"\\b(0b[01']+)"},{begin:"(-?)\\b([\\d']+(\\.[\\d']*)?|\\.[\\d']+)(u|U|l|L|ul|UL|f|F|b|B)"},{begin:"(-?)(\\b0[xX][a-fA-F0-9']+|(\\b[\\d']+(\\.[\\d']*)?|\\.[\\d']+)([eE][-+]?[\\d']+)?)"}],relevance:0},m={className:"string",begin:/"""("*)(?!")(.|\n)*?"""\1/,relevance:1},g={className:"string",begin:'@"',end:'"',contains:[{begin:'""'}]},b=t.inherit(g,{illegal:/\n/}),k={className:"subst",begin:/\{/,end:/\}/,keywords:c},x=t.inherit(k,{illegal:/\n/}),w={className:"string",begin:/\$"/,end:'"',illegal:/\n/,contains:[{begin:/\{\{/},{begin:/\}\}/},t.BACKSLASH_ESCAPE,x]},T={className:"string",begin:/\$@"/,end:'"',contains:[{begin:/\{\{/},{begin:/\}\}/},{begin:'""'},k]},A=t.inherit(T,{illegal:/\n/,contains:[{begin:/\{\{/},{begin:/\}\}/},{begin:'""'},x]});k.contains=[T,w,g,t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,h,t.C_BLOCK_COMMENT_MODE],x.contains=[A,w,b,t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,h,t.inherit(t.C_BLOCK_COMMENT_MODE,{illegal:/\n/})];const S={variants:[m,T,w,g,t.APOS_STRING_MODE,t.QUOTE_STRING_MODE]},L={begin:"<",end:">",contains:[{beginKeywords:"in out"},p]},I=t.IDENT_RE+"(<"+t.IDENT_RE+"(\\s*,\\s*"+t.IDENT_RE+")*>)?(\\[\\])?",F={begin:"@"+t.IDENT_RE,relevance:0};return{name:"C#",aliases:["cs","c#"],keywords:c,illegal:/::/,contains:[t.COMMENT("///","$",{returnBegin:!0,contains:[{className:"doctag",variants:[{begin:"///",relevance:0},{begin:"<!--|-->"},{begin:"</?",end:">"}]}]}),t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,{className:"meta",begin:"#",end:"$",keywords:{keyword:"if else elif endif define undef warning error line region endregion pragma checksum"}},S,h,{beginKeywords:"class interface",relevance:0,end:/[{;=]/,illegal:/[^\s:,]/,contains:[{beginKeywords:"where class"},p,L,t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE]},{beginKeywords:"namespace",relevance:0,end:/[{;=]/,illegal:/[^\s:]/,contains:[p,t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE]},{beginKeywords:"record",relevance:0,end:/[{;=]/,illegal:/[^\s:]/,contains:[p,L,t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE]},{className:"meta",begin:"^\\s*\\[(?=[\\w])",excludeBegin:!0,end:"\\]",excludeEnd:!0,contains:[{className:"string",begin:/"/,end:/"/}]},{beginKeywords:"new return throw await else",relevance:0},{className:"function",begin:"("+I+"\\s+)+"+t.IDENT_RE+"\\s*(<[^=]+>\\s*)?\\(",returnBegin:!0,end:/\s*[{;=]/,excludeEnd:!0,keywords:c,contains:[{beginKeywords:r.join(" "),relevance:0},{begin:t.IDENT_RE+"\\s*(<[^=]+>\\s*)?\\(",returnBegin:!0,contains:[t.TITLE_MODE,L],relevance:0},{match:/\(\)/},{className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:c,relevance:0,contains:[S,h,t.C_BLOCK_COMMENT_MODE]},t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE]},F]}}const s_=t=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:t.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[t.APOS_STRING_MODE,t.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:t.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z_][A-Za-z0-9_-]*/}}),c_=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","optgroup","option","p","picture","q","quote","samp","section","select","source","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],u_=["defs","g","marker","mask","pattern","svg","switch","symbol","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feFlood","feGaussianBlur","feImage","feMerge","feMorphology","feOffset","feSpecularLighting","feTile","feTurbulence","linearGradient","radialGradient","stop","circle","ellipse","image","line","path","polygon","polyline","rect","text","use","textPath","tspan","foreignObject","clipPath"],d_=[...c_,...u_],f_=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"].sort().reverse(),p_=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"].sort().reverse(),m_=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"].sort().reverse(),h_=["accent-color","align-content","align-items","align-self","alignment-baseline","all","anchor-name","animation","animation-composition","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-range","animation-range-end","animation-range-start","animation-timeline","animation-timing-function","appearance","aspect-ratio","backdrop-filter","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-position-x","background-position-y","background-repeat","background-size","baseline-shift","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-end-end-radius","border-end-start-radius","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-start-end-radius","border-start-start-radius","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-align","box-decoration-break","box-direction","box-flex","box-flex-group","box-lines","box-ordinal-group","box-orient","box-pack","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","color-scheme","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","contain-intrinsic-block-size","contain-intrinsic-height","contain-intrinsic-inline-size","contain-intrinsic-size","contain-intrinsic-width","container","container-name","container-type","content","content-visibility","counter-increment","counter-reset","counter-set","cue","cue-after","cue-before","cursor","cx","cy","direction","display","dominant-baseline","empty-cells","enable-background","field-sizing","fill","fill-opacity","fill-rule","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flood-color","flood-opacity","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-optical-sizing","font-palette","font-size","font-size-adjust","font-smooth","font-smoothing","font-stretch","font-style","font-synthesis","font-synthesis-position","font-synthesis-small-caps","font-synthesis-style","font-synthesis-weight","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-emoji","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","forced-color-adjust","gap","glyph-orientation-horizontal","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphenate-character","hyphenate-limit-chars","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","initial-letter","initial-letter-align","inline-size","inset","inset-area","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","justify-content","justify-items","justify-self","kerning","left","letter-spacing","lighting-color","line-break","line-height","line-height-step","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","margin-trim","marker","marker-end","marker-mid","marker-start","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","masonry-auto-flow","math-depth","math-shift","math-style","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-anchor","overflow-block","overflow-clip-margin","overflow-inline","overflow-wrap","overflow-x","overflow-y","overlay","overscroll-behavior","overscroll-behavior-block","overscroll-behavior-inline","overscroll-behavior-x","overscroll-behavior-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","paint-order","pause","pause-after","pause-before","perspective","perspective-origin","place-content","place-items","place-self","pointer-events","position","position-anchor","position-visibility","print-color-adjust","quotes","r","resize","rest","rest-after","rest-before","right","rotate","row-gap","ruby-align","ruby-position","scale","scroll-behavior","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scroll-timeline","scroll-timeline-axis","scroll-timeline-name","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","shape-rendering","speak","speak-as","src","stop-color","stop-opacity","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","tab-size","table-layout","text-align","text-align-all","text-align-last","text-anchor","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-skip-ink","text-decoration-style","text-decoration-thickness","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-size-adjust","text-transform","text-underline-offset","text-underline-position","text-wrap","text-wrap-mode","text-wrap-style","timeline-scope","top","touch-action","transform","transform-box","transform-origin","transform-style","transition","transition-behavior","transition-delay","transition-duration","transition-property","transition-timing-function","translate","unicode-bidi","user-modify","user-select","vector-effect","vertical-align","view-timeline","view-timeline-axis","view-timeline-inset","view-timeline-name","view-transition-name","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","white-space-collapse","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","x","y","z-index","zoom"].sort().reverse();function g_(t){const i=t.regex,r=s_(t),l={begin:/-(webkit|moz|ms|o)-(?=[a-z])/},s="and or not only",d=/@-?\w[\w]*(-\w+)*/,c="[a-zA-Z-][a-zA-Z0-9_-]*",p=[t.APOS_STRING_MODE,t.QUOTE_STRING_MODE];return{name:"CSS",case_insensitive:!0,illegal:/[=|'\$]/,keywords:{keyframePosition:"from to"},classNameAliases:{keyframePosition:"selector-tag"},contains:[r.BLOCK_COMMENT,l,r.CSS_NUMBER_MODE,{className:"selector-id",begin:/#[A-Za-z0-9_-]+/,relevance:0},{className:"selector-class",begin:"\\."+c,relevance:0},r.ATTRIBUTE_SELECTOR_MODE,{className:"selector-pseudo",variants:[{begin:":("+p_.join("|")+")"},{begin:":(:)?("+m_.join("|")+")"}]},r.CSS_VARIABLE,{className:"attribute",begin:"\\b("+h_.join("|")+")\\b"},{begin:/:/,end:/[;}{]/,contains:[r.BLOCK_COMMENT,r.HEXCOLOR,r.IMPORTANT,r.CSS_NUMBER_MODE,...p,{begin:/(url|data-uri)\(/,end:/\)/,relevance:0,keywords:{built_in:"url data-uri"},contains:[...p,{className:"string",begin:/[^)]/,endsWithParent:!0,excludeEnd:!0}]},r.FUNCTION_DISPATCH]},{begin:i.lookahead(/@/),end:"[{;]",relevance:0,illegal:/:/,contains:[{className:"keyword",begin:d},{begin:/\s/,endsWithParent:!0,excludeEnd:!0,relevance:0,keywords:{$pattern:/[a-z-]+/,keyword:s,attribute:f_.join(" ")},contains:[{begin:/[a-z-]+(?=:)/,className:"attribute"},...p,r.CSS_NUMBER_MODE]}]},{className:"selector-tag",begin:"\\b("+d_.join("|")+")\\b"}]}}function b_(t){const i=t.regex;return{name:"Diff",aliases:["patch"],contains:[{className:"meta",relevance:10,match:i.either(/^@@ +-\d+,\d+ +\+\d+,\d+ +@@/,/^\*\*\* +\d+,\d+ +\*\*\*\*$/,/^--- +\d+,\d+ +----$/)},{className:"comment",variants:[{begin:i.either(/Index: /,/^index/,/={3,}/,/^-{3}/,/^\*{3} /,/^\+{3}/,/^diff --git/),end:/$/},{match:/^\*{15}$/}]},{className:"addition",begin:/^\+/,end:/$/},{className:"deletion",begin:/^-/,end:/$/},{className:"addition",begin:/^!/,end:/$/}]}}function y_(t){const d={keyword:["break","case","chan","const","continue","default","defer","else","fallthrough","for","func","go","goto","if","import","interface","map","package","range","return","select","struct","switch","type","var"],type:["bool","byte","complex64","complex128","error","float32","float64","int8","int16","int32","int64","string","uint8","uint16","uint32","uint64","int","uint","uintptr","rune"],literal:["true","false","iota","nil"],built_in:["append","cap","close","complex","copy","imag","len","make","new","panic","print","println","real","recover","delete"]};return{name:"Go",aliases:["golang"],keywords:d,illegal:"</",contains:[t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,{className:"string",variants:[t.QUOTE_STRING_MODE,t.APOS_STRING_MODE,{begin:"`",end:"`"}]},{className:"number",variants:[{match:/-?\b0[xX]\.[a-fA-F0-9](_?[a-fA-F0-9])*[pP][+-]?\d(_?\d)*i?/,relevance:0},{match:/-?\b0[xX](_?[a-fA-F0-9])+((\.([a-fA-F0-9](_?[a-fA-F0-9])*)?)?[pP][+-]?\d(_?\d)*)?i?/,relevance:0},{match:/-?\b0[oO](_?[0-7])*i?/,relevance:0},{match:/-?\.\d(_?\d)*([eE][+-]?\d(_?\d)*)?i?/,relevance:0},{match:/-?\b\d(_?\d)*(\.(\d(_?\d)*)?)?([eE][+-]?\d(_?\d)*)?i?/,relevance:0}]},{begin:/:=/},{className:"function",beginKeywords:"func",end:"\\s*(\\{|$)",excludeEnd:!0,contains:[t.TITLE_MODE,{className:"params",begin:/\(/,end:/\)/,endsParent:!0,keywords:d,illegal:/["']/}]}]}}function k_(t){const i=t.regex,r=/[_A-Za-z][_0-9A-Za-z]*/;return{name:"GraphQL",aliases:["gql"],case_insensitive:!0,disableAutodetect:!1,keywords:{keyword:["query","mutation","subscription","type","input","schema","directive","interface","union","scalar","fragment","enum","on"],literal:["true","false","null"]},contains:[t.HASH_COMMENT_MODE,t.QUOTE_STRING_MODE,t.NUMBER_MODE,{scope:"punctuation",match:/[.]{3}/,relevance:0},{scope:"punctuation",begin:/[\!\(\)\:\=\[\]\{\|\}]{1}/,relevance:0},{scope:"variable",begin:/\$/,end:/\W/,excludeEnd:!0,relevance:0},{scope:"meta",match:/@\w+/,excludeEnd:!0},{scope:"symbol",begin:i.concat(r,i.lookahead(/\s*:/)),relevance:0}],illegal:[/[;<']/,/BEGIN/]}}function x_(t){const i=t.regex,r={className:"number",relevance:0,variants:[{begin:/([+-]+)?[\d]+_[\d_]+/},{begin:t.NUMBER_RE}]},l=t.COMMENT();l.variants=[{begin:/;/,end:/$/},{begin:/#/,end:/$/}];const s={className:"variable",variants:[{begin:/\$[\w\d"][\w\d_]*/},{begin:/\$\{(.*?)\}/}]},d={className:"literal",begin:/\bon|off|true|false|yes|no\b/},c={className:"string",contains:[t.BACKSLASH_ESCAPE],variants:[{begin:"'''",end:"'''",relevance:10},{begin:'"""',end:'"""',relevance:10},{begin:'"',end:'"'},{begin:"'",end:"'"}]},p={begin:/\[/,end:/\]/,contains:[l,d,s,c,r,"self"],relevance:0},h=/[A-Za-z0-9_-]+/,m=/"(\\"|[^"])*"/,g=/'[^']*'/,b=i.either(h,m,g),k=i.concat(b,"(\\s*\\.\\s*",b,")*",i.lookahead(/\s*=\s*[^#\s]/));return{name:"TOML, also INI",aliases:["toml"],case_insensitive:!0,illegal:/\S/,contains:[l,{className:"section",begin:/\[+/,end:/\]+/},{begin:k,className:"attr",starts:{end:/$/,contains:[l,p,d,s,c,r]}}]}}var Hr="[0-9](_*[0-9])*",Yl=`\\.(${Hr})`,Vl="[0-9a-fA-F](_*[0-9a-fA-F])*",gm={className:"number",variants:[{begin:`(\\b(${Hr})((${Yl})|\\.)?|(${Yl}))[eE][+-]?(${Hr})[fFdD]?\\b`},{begin:`\\b(${Hr})((${Yl})[fFdD]?\\b|\\.([fFdD]\\b)?)`},{begin:`(${Yl})[fFdD]?\\b`},{begin:`\\b(${Hr})[fFdD]\\b`},{begin:`\\b0[xX]((${Vl})\\.?|(${Vl})?\\.(${Vl}))[pP][+-]?(${Hr})[fFdD]?\\b`},{begin:"\\b(0|[1-9](_*[0-9])*)[lL]?\\b"},{begin:`\\b0[xX](${Vl})[lL]?\\b`},{begin:"\\b0(_*[0-7])*[lL]?\\b"},{begin:"\\b0[bB][01](_*[01])*[lL]?\\b"}],relevance:0};function bm(t,i,r){return r===-1?"":t.replace(i,l=>bm(t,i,r-1))}function v_(t){const i=t.regex,r="[À-ʸa-zA-Z_$][À-ʸa-zA-Z_$0-9]*",l=r+bm("(?:<"+r+"~~~(?:\\s*,\\s*"+r+"~~~)*>)?",/~~~/g,2),h={keyword:["synchronized","abstract","private","var","static","if","const ","for","while","strictfp","finally","protected","import","native","final","void","enum","else","break","transient","catch","instanceof","volatile","case","assert","package","default","public","try","switch","continue","throws","protected","public","private","module","requires","exports","do","sealed","yield","permits","goto","when"],literal:["false","true","null"],type:["char","boolean","long","float","int","byte","short","double"],built_in:["super","this"]},m={className:"meta",begin:"@"+r,contains:[{begin:/\(/,end:/\)/,contains:["self"]}]},g={className:"params",begin:/\(/,end:/\)/,keywords:h,relevance:0,contains:[t.C_BLOCK_COMMENT_MODE],endsParent:!0};return{name:"Java",aliases:["jsp"],keywords:h,illegal:/<\/|#/,contains:[t.COMMENT("/\\*\\*","\\*/",{relevance:0,contains:[{begin:/\w+@/,relevance:0},{className:"doctag",begin:"@[A-Za-z]+"}]}),{begin:/import java\.[a-z]+\./,keywords:"import",relevance:2},t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,{begin:/"""/,end:/"""/,className:"string",contains:[t.BACKSLASH_ESCAPE]},t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,{match:[/\b(?:class|interface|enum|extends|implements|new)/,/\s+/,r],className:{1:"keyword",3:"title.class"}},{match:/non-sealed/,scope:"keyword"},{begin:[i.concat(/(?!else)/,r),/\s+/,r,/\s+/,/=(?!=)/],className:{1:"type",3:"variable",5:"operator"}},{begin:[/record/,/\s+/,r],className:{1:"keyword",3:"title.class"},contains:[g,t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE]},{beginKeywords:"new throw return else",relevance:0},{begin:["(?:"+l+"\\s+)",t.UNDERSCORE_IDENT_RE,/\s*(?=\()/],className:{2:"title.function"},keywords:h,contains:[{className:"params",begin:/\(/,end:/\)/,keywords:h,relevance:0,contains:[m,t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,gm,t.C_BLOCK_COMMENT_MODE]},t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE]},gm,m]}}const ym="[A-Za-z$_][0-9A-Za-z$_]*",__=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends","using"],E_=["true","false","null","undefined","NaN","Infinity"],km=["Object","Function","Boolean","Symbol","Math","Date","Number","BigInt","String","RegExp","Array","Float32Array","Float64Array","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Int32Array","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array","Set","Map","WeakSet","WeakMap","ArrayBuffer","SharedArrayBuffer","Atomics","DataView","JSON","Promise","Generator","GeneratorFunction","AsyncFunction","Reflect","Proxy","Intl","WebAssembly"],xm=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],vm=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],w_=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","global"],S_=[].concat(vm,km,xm);function T_(t){const i=t.regex,r=(Q,{after:ye})=>{const N="</"+Q[0].slice(1);return Q.input.indexOf(N,ye)!==-1},l=ym,s={begin:"<>",end:"</>"},d=/<[A-Za-z0-9\\._:-]+\s*\/>/,c={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(Q,ye)=>{const N=Q[0].length+Q.index,ze=Q.input[N];if(ze==="<"||ze===","){ye.ignoreMatch();return}ze===">"&&(r(Q,{after:N})||ye.ignoreMatch());let C;const E=Q.input.substring(N);if(C=E.match(/^\s*=/)){ye.ignoreMatch();return}if((C=E.match(/^\s+extends\s+/))&&C.index===0){ye.ignoreMatch();return}}},p={$pattern:ym,keyword:__,literal:E_,built_in:S_,"variable.language":w_},h="[0-9](_?[0-9])*",m=`\\.(${h})`,g="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",b={className:"number",variants:[{begin:`(\\b(${g})((${m})|\\.)?|(${m}))[eE][+-]?(${h})\\b`},{begin:`\\b(${g})\\b((${m})\\b|\\.)?|(${m})\\b`},{begin:"\\b(0|[1-9](_?[0-9])*)n\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*n?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*n?\\b"},{begin:"\\b0[0-7]+n?\\b"}],relevance:0},k={className:"subst",begin:"\\$\\{",end:"\\}",keywords:p,contains:[]},x={begin:".?html`",end:"",starts:{end:"`",returnEnd:!1,contains:[t.BACKSLASH_ESCAPE,k],subLanguage:"xml"}},w={begin:".?css`",end:"",starts:{end:"`",returnEnd:!1,contains:[t.BACKSLASH_ESCAPE,k],subLanguage:"css"}},T={begin:".?gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[t.BACKSLASH_ESCAPE,k],subLanguage:"graphql"}},A={className:"string",begin:"`",end:"`",contains:[t.BACKSLASH_ESCAPE,k]},L={className:"comment",variants:[t.COMMENT(/\/\*\*(?!\/)/,"\\*/",{relevance:0,contains:[{begin:"(?=@[A-Za-z]+)",relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"},{className:"type",begin:"\\{",end:"\\}",excludeEnd:!0,excludeBegin:!0,relevance:0},{className:"variable",begin:l+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),t.C_BLOCK_COMMENT_MODE,t.C_LINE_COMMENT_MODE]},I=[t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,x,w,T,A,{match:/\$\d+/},b];k.contains=I.concat({begin:/\{/,end:/\}/,keywords:p,contains:["self"].concat(I)});const F=[].concat(L,k.contains),Y=F.concat([{begin:/(\s*)\(/,end:/\)/,keywords:p,contains:["self"].concat(F)}]),R={className:"params",begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:p,contains:Y},le={variants:[{match:[/class/,/\s+/,l,/\s+/,/extends/,/\s+/,i.concat(l,"(",i.concat(/\./,l),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,l],scope:{1:"keyword",3:"title.class"}}]},ae={relevance:0,match:i.either(/\bJSON/,/\b[A-Z][a-z]+([A-Z][a-z]*|\d)*/,/\b[A-Z]{2,}([A-Z][a-z]+|\d)+([A-Z][a-z]*)*/,/\b[A-Z]{2,}[a-z]+([A-Z][a-z]+|\d)*([A-Z][a-z]*)*/),className:"title.class",keywords:{_:[...km,...xm]}},he={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},B={variants:[{match:[/function/,/\s+/,l,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[R],illegal:/%/},ue={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function re(Q){return i.concat("(?!",Q.join("|"),")")}const Ae={match:i.concat(/\b/,re([...vm,"super","import"].map(Q=>`${Q}\\s*\\(`)),l,i.lookahead(/\s*\(/)),className:"title.function",relevance:0},de={begin:i.concat(/\./,i.lookahead(i.concat(l,/(?![0-9A-Za-z$_(])/))),end:l,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},ne={match:[/get|set/,/\s+/,l,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},R]},Z="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+t.UNDERSCORE_IDENT_RE+")\\s*=>",$={match:[/const|var|let/,/\s+/,l,/\s*/,/=\s*/,/(async\s*)?/,i.lookahead(Z)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[R]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:p,exports:{PARAMS_CONTAINS:Y,CLASS_REFERENCE:ae},illegal:/#(?![$_A-z])/,contains:[t.SHEBANG({label:"shebang",binary:"node",relevance:5}),he,t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,x,w,T,A,L,{match:/\$\d+/},b,ae,{scope:"attr",match:l+i.lookahead(":"),relevance:0},$,{begin:"("+t.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[L,t.REGEXP_MODE,{className:"function",begin:Z,returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:t.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:p,contains:Y}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:s.begin,end:s.end},{match:d},{begin:c.begin,"on:begin":c.isTrulyOpeningTag,end:c.end}],subLanguage:"xml",contains:[{begin:c.begin,end:c.end,skip:!0,contains:["self"]}]}]},B,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+t.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[R,t.inherit(t.TITLE_MODE,{begin:l,className:"title.function"})]},{match:/\.\.\./,relevance:0},de,{match:"\\$"+l,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[R]},Ae,ue,le,ne,{match:/\$[(.]/}]}}function A_(t){const i={className:"attr",begin:/"(\\.|[^\\"\r\n])*"(?=\s*:)/,relevance:1.01},r={match:/[{}[\],:]/,className:"punctuation",relevance:0},l=["true","false","null"],s={scope:"literal",beginKeywords:l.join(" ")};return{name:"JSON",aliases:["jsonc"],keywords:{literal:l},contains:[i,r,t.QUOTE_STRING_MODE,s,t.C_NUMBER_MODE,t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE],illegal:"\\S"}}var Fr="[0-9](_*[0-9])*",$l=`\\.(${Fr})`,Kl="[0-9a-fA-F](_*[0-9a-fA-F])*",N_={className:"number",variants:[{begin:`(\\b(${Fr})((${$l})|\\.)?|(${$l}))[eE][+-]?(${Fr})[fFdD]?\\b`},{begin:`\\b(${Fr})((${$l})[fFdD]?\\b|\\.([fFdD]\\b)?)`},{begin:`(${$l})[fFdD]?\\b`},{begin:`\\b(${Fr})[fFdD]\\b`},{begin:`\\b0[xX]((${Kl})\\.?|(${Kl})?\\.(${Kl}))[pP][+-]?(${Fr})[fFdD]?\\b`},{begin:"\\b(0|[1-9](_*[0-9])*)[lL]?\\b"},{begin:`\\b0[xX](${Kl})[lL]?\\b`},{begin:"\\b0(_*[0-7])*[lL]?\\b"},{begin:"\\b0[bB][01](_*[01])*[lL]?\\b"}],relevance:0};function C_(t){const i={keyword:"abstract as val var vararg get set class object open private protected public noinline crossinline dynamic final enum if else do while for when throw try catch finally import package is in fun override companion reified inline lateinit init interface annotation data sealed internal infix operator out by constructor super tailrec where const inner suspend typealias external expect actual",built_in:"Byte Short Char Int Long Boolean Float Double Void Unit Nothing",literal:"true false null"},r={className:"keyword",begin:/\b(break|continue|return|this)\b/,starts:{contains:[{className:"symbol",begin:/@\w+/}]}},l={className:"symbol",begin:t.UNDERSCORE_IDENT_RE+"@"},s={className:"subst",begin:/\$\{/,end:/\}/,contains:[t.C_NUMBER_MODE]},d={className:"variable",begin:"\\$"+t.UNDERSCORE_IDENT_RE},c={className:"string",variants:[{begin:'"""',end:'"""(?=[^"])',contains:[d,s]},{begin:"'",end:"'",illegal:/\n/,contains:[t.BACKSLASH_ESCAPE]},{begin:'"',end:'"',illegal:/\n/,contains:[t.BACKSLASH_ESCAPE,d,s]}]};s.contains.push(c);const p={className:"meta",begin:"@(?:file|property|field|get|set|receiver|param|setparam|delegate)\\s*:(?:\\s*"+t.UNDERSCORE_IDENT_RE+")?"},h={className:"meta",begin:"@"+t.UNDERSCORE_IDENT_RE,contains:[{begin:/\(/,end:/\)/,contains:[t.inherit(c,{className:"string"}),"self"]}]},m=N_,g=t.COMMENT("/\\*","\\*/",{contains:[t.C_BLOCK_COMMENT_MODE]}),b={variants:[{className:"type",begin:t.UNDERSCORE_IDENT_RE},{begin:/\(/,end:/\)/,contains:[]}]},k=b;return k.variants[1].contains=[b],b.variants[1].contains=[k],{name:"Kotlin",aliases:["kt","kts"],keywords:i,contains:[t.COMMENT("/\\*\\*","\\*/",{relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"}]}),t.C_LINE_COMMENT_MODE,g,r,l,p,h,{className:"function",beginKeywords:"fun",end:"[(]|$",returnBegin:!0,excludeEnd:!0,keywords:i,relevance:5,contains:[{begin:t.UNDERSCORE_IDENT_RE+"\\s*\\(",returnBegin:!0,relevance:0,contains:[t.UNDERSCORE_TITLE_MODE]},{className:"type",begin:/</,end:/>/,keywords:"reified",relevance:0},{className:"params",begin:/\(/,end:/\)/,endsParent:!0,keywords:i,relevance:0,contains:[{begin:/:/,end:/[=,\/]/,endsWithParent:!0,contains:[b,t.C_LINE_COMMENT_MODE,g],relevance:0},t.C_LINE_COMMENT_MODE,g,p,h,c,t.C_NUMBER_MODE]},g]},{begin:[/class|interface|trait/,/\s+/,t.UNDERSCORE_IDENT_RE],beginScope:{3:"title.class"},keywords:"class interface trait",end:/[:\{(]|$/,excludeEnd:!0,illegal:"extends implements",contains:[{beginKeywords:"public protected internal private constructor"},t.UNDERSCORE_TITLE_MODE,{className:"type",begin:/</,end:/>/,excludeBegin:!0,excludeEnd:!0,relevance:0},{className:"type",begin:/[,:]\s*/,end:/[<\(,){\s]|$/,excludeBegin:!0,returnEnd:!0},p,h]},c,{className:"meta",begin:"^#!/usr/bin/env",end:"$",illegal:`
25
+ `},m]}}const M_=t=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:t.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[t.APOS_STRING_MODE,t.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:t.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z_][A-Za-z0-9_-]*/}}),O_=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","optgroup","option","p","picture","q","quote","samp","section","select","source","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],R_=["defs","g","marker","mask","pattern","svg","switch","symbol","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feFlood","feGaussianBlur","feImage","feMerge","feMorphology","feOffset","feSpecularLighting","feTile","feTurbulence","linearGradient","radialGradient","stop","circle","ellipse","image","line","path","polygon","polyline","rect","text","use","textPath","tspan","foreignObject","clipPath"],D_=[...O_,...R_],z_=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"].sort().reverse(),_m=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"].sort().reverse(),Em=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"].sort().reverse(),L_=["accent-color","align-content","align-items","align-self","alignment-baseline","all","anchor-name","animation","animation-composition","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-range","animation-range-end","animation-range-start","animation-timeline","animation-timing-function","appearance","aspect-ratio","backdrop-filter","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-position-x","background-position-y","background-repeat","background-size","baseline-shift","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-end-end-radius","border-end-start-radius","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-start-end-radius","border-start-start-radius","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-align","box-decoration-break","box-direction","box-flex","box-flex-group","box-lines","box-ordinal-group","box-orient","box-pack","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","color-scheme","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","contain-intrinsic-block-size","contain-intrinsic-height","contain-intrinsic-inline-size","contain-intrinsic-size","contain-intrinsic-width","container","container-name","container-type","content","content-visibility","counter-increment","counter-reset","counter-set","cue","cue-after","cue-before","cursor","cx","cy","direction","display","dominant-baseline","empty-cells","enable-background","field-sizing","fill","fill-opacity","fill-rule","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flood-color","flood-opacity","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-optical-sizing","font-palette","font-size","font-size-adjust","font-smooth","font-smoothing","font-stretch","font-style","font-synthesis","font-synthesis-position","font-synthesis-small-caps","font-synthesis-style","font-synthesis-weight","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-emoji","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","forced-color-adjust","gap","glyph-orientation-horizontal","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphenate-character","hyphenate-limit-chars","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","initial-letter","initial-letter-align","inline-size","inset","inset-area","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","justify-content","justify-items","justify-self","kerning","left","letter-spacing","lighting-color","line-break","line-height","line-height-step","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","margin-trim","marker","marker-end","marker-mid","marker-start","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","masonry-auto-flow","math-depth","math-shift","math-style","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-anchor","overflow-block","overflow-clip-margin","overflow-inline","overflow-wrap","overflow-x","overflow-y","overlay","overscroll-behavior","overscroll-behavior-block","overscroll-behavior-inline","overscroll-behavior-x","overscroll-behavior-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","paint-order","pause","pause-after","pause-before","perspective","perspective-origin","place-content","place-items","place-self","pointer-events","position","position-anchor","position-visibility","print-color-adjust","quotes","r","resize","rest","rest-after","rest-before","right","rotate","row-gap","ruby-align","ruby-position","scale","scroll-behavior","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scroll-timeline","scroll-timeline-axis","scroll-timeline-name","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","shape-rendering","speak","speak-as","src","stop-color","stop-opacity","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","tab-size","table-layout","text-align","text-align-all","text-align-last","text-anchor","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-skip-ink","text-decoration-style","text-decoration-thickness","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-size-adjust","text-transform","text-underline-offset","text-underline-position","text-wrap","text-wrap-mode","text-wrap-style","timeline-scope","top","touch-action","transform","transform-box","transform-origin","transform-style","transition","transition-behavior","transition-delay","transition-duration","transition-property","transition-timing-function","translate","unicode-bidi","user-modify","user-select","vector-effect","vertical-align","view-timeline","view-timeline-axis","view-timeline-inset","view-timeline-name","view-transition-name","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","white-space-collapse","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","x","y","z-index","zoom"].sort().reverse(),I_=_m.concat(Em).sort().reverse();function B_(t){const i=M_(t),r=I_,l="and or not only",s="[\\w-]+",d="("+s+"|@\\{"+s+"\\})",c=[],p=[],h=function(I){return{className:"string",begin:"~?"+I+".*?"+I}},m=function(I,F,Y){return{className:I,begin:F,relevance:Y}},g={$pattern:/[a-z-]+/,keyword:l,attribute:z_.join(" ")},b={begin:"\\(",end:"\\)",contains:p,keywords:g,relevance:0};p.push(t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,h("'"),h('"'),i.CSS_NUMBER_MODE,{begin:"(url|data-uri)\\(",starts:{className:"string",end:"[\\)\\n]",excludeEnd:!0}},i.HEXCOLOR,b,m("variable","@@?"+s,10),m("variable","@\\{"+s+"\\}"),m("built_in","~?`[^`]*?`"),{className:"attribute",begin:s+"\\s*:",end:":",returnBegin:!0,excludeEnd:!0},i.IMPORTANT,{beginKeywords:"and not"},i.FUNCTION_DISPATCH);const k=p.concat({begin:/\{/,end:/\}/,contains:c}),x={beginKeywords:"when",endsWithParent:!0,contains:[{beginKeywords:"and not"}].concat(p)},w={begin:d+"\\s*:",returnBegin:!0,end:/[;}]/,relevance:0,contains:[{begin:/-(webkit|moz|ms|o)-/},i.CSS_VARIABLE,{className:"attribute",begin:"\\b("+L_.join("|")+")\\b",end:/(?=:)/,starts:{endsWithParent:!0,illegal:"[<=$]",relevance:0,contains:p}}]},T={className:"keyword",begin:"@(import|media|charset|font-face|(-[a-z]+-)?keyframes|supports|document|namespace|page|viewport|host)\\b",starts:{end:"[;{}]",keywords:g,returnEnd:!0,contains:p,relevance:0}},A={className:"variable",variants:[{begin:"@"+s+"\\s*:",relevance:15},{begin:"@"+s}],starts:{end:"[;}]",returnEnd:!0,contains:k}},S={variants:[{begin:"[\\.#:&\\[>]",end:"[;{}]"},{begin:d,end:/\{/}],returnBegin:!0,returnEnd:!0,illegal:`[<='$"]`,relevance:0,contains:[t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,x,m("keyword","all\\b"),m("variable","@\\{"+s+"\\}"),{begin:"\\b("+D_.join("|")+")\\b",className:"selector-tag"},i.CSS_NUMBER_MODE,m("selector-tag",d,0),m("selector-id","#"+d),m("selector-class","\\."+d,0),m("selector-tag","&",0),i.ATTRIBUTE_SELECTOR_MODE,{className:"selector-pseudo",begin:":("+_m.join("|")+")"},{className:"selector-pseudo",begin:":(:)?("+Em.join("|")+")"},{begin:/\(/,end:/\)/,relevance:0,contains:k},{begin:"!important"},i.FUNCTION_DISPATCH]},L={begin:s+`:(:)?(${r.join("|")})`,returnBegin:!0,contains:[S]};return c.push(t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,T,A,L,w,S,x,i.FUNCTION_DISPATCH),{name:"Less",case_insensitive:!0,illegal:`[=>'/<($"]`,contains:c}}function U_(t){const i="\\[=*\\[",r="\\]=*\\]",l={begin:i,end:r,contains:["self"]},s=[t.COMMENT("--(?!"+i+")","$"),t.COMMENT("--"+i,r,{contains:[l],relevance:10})];return{name:"Lua",aliases:["pluto"],keywords:{$pattern:t.UNDERSCORE_IDENT_RE,literal:"true false nil",keyword:"and break do else elseif end for goto if in local not or repeat return then until while",built_in:"_G _ENV _VERSION __index __newindex __mode __call __metatable __tostring __len __gc __add __sub __mul __div __mod __pow __concat __unm __eq __lt __le assert collectgarbage dofile error getfenv getmetatable ipairs load loadfile loadstring module next pairs pcall print rawequal rawget rawset require select setfenv setmetatable tonumber tostring type unpack xpcall arg self coroutine resume yield status wrap create running debug getupvalue debug sethook getmetatable gethook setmetatable setlocal traceback setfenv getinfo setupvalue getlocal getregistry getfenv io lines write close flush open output type read stderr stdin input stdout popen tmpfile math log max acos huge ldexp pi cos tanh pow deg tan cosh sinh random randomseed frexp ceil floor rad abs sqrt modf asin min mod fmod log10 atan2 exp sin atan os exit setlocale date getenv difftime remove time clock tmpname rename execute package preload loadlib loaded loaders cpath config path seeall string sub upper len gfind rep find match char dump gmatch reverse byte format gsub lower table setn insert getn foreachi maxn foreach concat sort remove"},contains:s.concat([{className:"function",beginKeywords:"function",end:"\\)",contains:[t.inherit(t.TITLE_MODE,{begin:"([_a-zA-Z]\\w*\\.)*([_a-zA-Z]\\w*:)?[_a-zA-Z]\\w*"}),{className:"params",begin:"\\(",endsWithParent:!0,contains:s}].concat(s)},t.C_NUMBER_MODE,t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,{className:"string",begin:i,end:r,contains:[l],relevance:5}])}}function q_(t){const i={className:"variable",variants:[{begin:"\\$\\("+t.UNDERSCORE_IDENT_RE+"\\)",contains:[t.BACKSLASH_ESCAPE]},{begin:/\$[@%<?\^\+\*]/}]},r={className:"string",begin:/"/,end:/"/,contains:[t.BACKSLASH_ESCAPE,i]},l={className:"variable",begin:/\$\([\w-]+\s/,end:/\)/,keywords:{built_in:"subst patsubst strip findstring filter filter-out sort word wordlist firstword lastword dir notdir suffix basename addsuffix addprefix join wildcard realpath abspath error warning shell origin flavor foreach if or and call eval file value"},contains:[i,r]},s={begin:"^"+t.UNDERSCORE_IDENT_RE+"\\s*(?=[:+?]?=)"},d={className:"meta",begin:/^\.PHONY:/,end:/$/,keywords:{$pattern:/[\.\w]+/,keyword:".PHONY"}},c={className:"section",begin:/^[^\s]+:/,end:/$/,contains:[i]};return{name:"Makefile",aliases:["mk","mak","make"],keywords:{$pattern:/[\w-]+/,keyword:"define endef undefine ifdef ifndef ifeq ifneq else endif include -include sinclude override export unexport private vpath"},contains:[t.HASH_COMMENT_MODE,i,r,l,s,d,c]}}function j_(t){const i=t.regex,r={begin:/<\/?[A-Za-z_]/,end:">",subLanguage:"xml",relevance:0},l={begin:"^[-\\*]{3,}",end:"$"},s={className:"code",variants:[{begin:"(`{3,})[^`](.|\\n)*?\\1`*[ ]*"},{begin:"(~{3,})[^~](.|\\n)*?\\1~*[ ]*"},{begin:"```",end:"```+[ ]*$"},{begin:"~~~",end:"~~~+[ ]*$"},{begin:"`.+?`"},{begin:"(?=^( {4}|\\t))",contains:[{begin:"^( {4}|\\t)",end:"(\\n)$"}],relevance:0}]},d={className:"bullet",begin:"^[ ]*([*+-]|(\\d+\\.))(?=\\s+)",end:"\\s+",excludeEnd:!0},c={begin:/^\[[^\n]+\]:/,returnBegin:!0,contains:[{className:"symbol",begin:/\[/,end:/\]/,excludeBegin:!0,excludeEnd:!0},{className:"link",begin:/:\s*/,end:/$/,excludeBegin:!0}]},p=/[A-Za-z][A-Za-z0-9+.-]*/,h={variants:[{begin:/\[.+?\]\[.*?\]/,relevance:0},{begin:/\[.+?\]\(((data|javascript|mailto):|(?:http|ftp)s?:\/\/).*?\)/,relevance:2},{begin:i.concat(/\[.+?\]\(/,p,/:\/\/.*?\)/),relevance:2},{begin:/\[.+?\]\([./?&#].*?\)/,relevance:1},{begin:/\[.*?\]\(.*?\)/,relevance:0}],returnBegin:!0,contains:[{match:/\[(?=\])/},{className:"string",relevance:0,begin:"\\[",end:"\\]",excludeBegin:!0,returnEnd:!0},{className:"link",relevance:0,begin:"\\]\\(",end:"\\)",excludeBegin:!0,excludeEnd:!0},{className:"symbol",relevance:0,begin:"\\]\\[",end:"\\]",excludeBegin:!0,excludeEnd:!0}]},m={className:"strong",contains:[],variants:[{begin:/_{2}(?!\s)/,end:/_{2}/},{begin:/\*{2}(?!\s)/,end:/\*{2}/}]},g={className:"emphasis",contains:[],variants:[{begin:/\*(?![*\s])/,end:/\*/},{begin:/_(?![_\s])/,end:/_/,relevance:0}]},b=t.inherit(m,{contains:[]}),k=t.inherit(g,{contains:[]});m.contains.push(k),g.contains.push(b);let x=[r,h];return[m,g,b,k].forEach(S=>{S.contains=S.contains.concat(x)}),x=x.concat(m,g),{name:"Markdown",aliases:["md","mkdown","mkd"],contains:[{className:"section",variants:[{begin:"^#{1,6}",end:"$",contains:x},{begin:"(?=^.+?\\n[=-]{2,}$)",contains:[{begin:"^[=-]*$"},{begin:"^",end:"\\n",contains:x}]}]},r,d,m,g,{className:"quote",begin:"^>\\s+",contains:x,end:"$"},s,l,h,c,{scope:"literal",match:/&([a-zA-Z0-9]+|#[0-9]{1,7}|#[Xx][0-9a-fA-F]{1,6});/}]}}function H_(t){const i={className:"built_in",begin:"\\b(AV|CA|CF|CG|CI|CL|CM|CN|CT|MK|MP|MTK|MTL|NS|SCN|SK|UI|WK|XC)\\w+"},r=/[a-zA-Z@][a-zA-Z0-9_]*/,p={"variable.language":["this","super"],$pattern:r,keyword:["while","export","sizeof","typedef","const","struct","for","union","volatile","static","mutable","if","do","return","goto","enum","else","break","extern","asm","case","default","register","explicit","typename","switch","continue","inline","readonly","assign","readwrite","self","@synchronized","id","typeof","nonatomic","IBOutlet","IBAction","strong","weak","copy","in","out","inout","bycopy","byref","oneway","__strong","__weak","__block","__autoreleasing","@private","@protected","@public","@try","@property","@end","@throw","@catch","@finally","@autoreleasepool","@synthesize","@dynamic","@selector","@optional","@required","@encode","@package","@import","@defs","@compatibility_alias","__bridge","__bridge_transfer","__bridge_retained","__bridge_retain","__covariant","__contravariant","__kindof","_Nonnull","_Nullable","_Null_unspecified","__FUNCTION__","__PRETTY_FUNCTION__","__attribute__","getter","setter","retain","unsafe_unretained","nonnull","nullable","null_unspecified","null_resettable","class","instancetype","NS_DESIGNATED_INITIALIZER","NS_UNAVAILABLE","NS_REQUIRES_SUPER","NS_RETURNS_INNER_POINTER","NS_INLINE","NS_AVAILABLE","NS_DEPRECATED","NS_ENUM","NS_OPTIONS","NS_SWIFT_UNAVAILABLE","NS_ASSUME_NONNULL_BEGIN","NS_ASSUME_NONNULL_END","NS_REFINED_FOR_SWIFT","NS_SWIFT_NAME","NS_SWIFT_NOTHROW","NS_DURING","NS_HANDLER","NS_ENDHANDLER","NS_VALUERETURN","NS_VOIDRETURN"],literal:["false","true","FALSE","TRUE","nil","YES","NO","NULL"],built_in:["dispatch_once_t","dispatch_queue_t","dispatch_sync","dispatch_async","dispatch_once"],type:["int","float","char","unsigned","signed","short","long","double","wchar_t","unichar","void","bool","BOOL","id|0","_Bool"]},h={$pattern:r,keyword:["@interface","@class","@protocol","@implementation"]};return{name:"Objective-C",aliases:["mm","objc","obj-c","obj-c++","objective-c++"],keywords:p,illegal:"</",contains:[i,t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,t.C_NUMBER_MODE,t.QUOTE_STRING_MODE,t.APOS_STRING_MODE,{className:"string",variants:[{begin:'@"',end:'"',illegal:"\\n",contains:[t.BACKSLASH_ESCAPE]}]},{className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:"if else elif endif define undef warning error line pragma ifdef ifndef include"},contains:[{begin:/\\\n/,relevance:0},t.inherit(t.QUOTE_STRING_MODE,{className:"string"}),{className:"string",begin:/<.*?>/,end:/$/,illegal:"\\n"},t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE]},{className:"class",begin:"("+h.keyword.join("|")+")\\b",end:/(\{|$)/,excludeEnd:!0,keywords:h,contains:[t.UNDERSCORE_TITLE_MODE]},{begin:"\\."+t.UNDERSCORE_IDENT_RE,relevance:0}]}}function F_(t){const i=t.regex,r=["abs","accept","alarm","and","atan2","bind","binmode","bless","break","caller","chdir","chmod","chomp","chop","chown","chr","chroot","class","close","closedir","connect","continue","cos","crypt","dbmclose","dbmopen","defined","delete","die","do","dump","each","else","elsif","endgrent","endhostent","endnetent","endprotoent","endpwent","endservent","eof","eval","exec","exists","exit","exp","fcntl","field","fileno","flock","for","foreach","fork","format","formline","getc","getgrent","getgrgid","getgrnam","gethostbyaddr","gethostbyname","gethostent","getlogin","getnetbyaddr","getnetbyname","getnetent","getpeername","getpgrp","getpriority","getprotobyname","getprotobynumber","getprotoent","getpwent","getpwnam","getpwuid","getservbyname","getservbyport","getservent","getsockname","getsockopt","given","glob","gmtime","goto","grep","gt","hex","if","index","int","ioctl","join","keys","kill","last","lc","lcfirst","length","link","listen","local","localtime","log","lstat","lt","ma","map","method","mkdir","msgctl","msgget","msgrcv","msgsnd","my","ne","next","no","not","oct","open","opendir","or","ord","our","pack","package","pipe","pop","pos","print","printf","prototype","push","q|0","qq","quotemeta","qw","qx","rand","read","readdir","readline","readlink","readpipe","recv","redo","ref","rename","require","reset","return","reverse","rewinddir","rindex","rmdir","say","scalar","seek","seekdir","select","semctl","semget","semop","send","setgrent","sethostent","setnetent","setpgrp","setpriority","setprotoent","setpwent","setservent","setsockopt","shift","shmctl","shmget","shmread","shmwrite","shutdown","sin","sleep","socket","socketpair","sort","splice","split","sprintf","sqrt","srand","stat","state","study","sub","substr","symlink","syscall","sysopen","sysread","sysseek","system","syswrite","tell","telldir","tie","tied","time","times","tr","truncate","uc","ucfirst","umask","undef","unless","unlink","unpack","unshift","untie","until","use","utime","values","vec","wait","waitpid","wantarray","warn","when","while","write","x|0","xor","y|0"],l=/[dualxmsipngr]{0,12}/,s={$pattern:/[\w.]+/,keyword:r.join(" ")},d={className:"subst",begin:"[$@]\\{",end:"\\}",keywords:s},c={begin:/->\{/,end:/\}/},p={scope:"attr",match:/\s+:\s*\w+(\s*\(.*?\))?/},h={scope:"variable",variants:[{begin:/\$\d/},{begin:i.concat(/[$%@](?!")(\^\w\b|#\w+(::\w+)*|\{\w+\}|\w+(::\w*)*)/,"(?![A-Za-z])(?![@$%])")},{begin:/[$%@](?!")[^\s\w{=]|\$=/,relevance:0}],contains:[p]},m={className:"number",variants:[{match:/0?\.[0-9][0-9_]+\b/},{match:/\bv?(0|[1-9][0-9_]*(\.[0-9_]+)?|[1-9][0-9_]*)\b/},{match:/\b0[0-7][0-7_]*\b/},{match:/\b0x[0-9a-fA-F][0-9a-fA-F_]*\b/},{match:/\b0b[0-1][0-1_]*\b/}],relevance:0},g=[t.BACKSLASH_ESCAPE,d,h],b=[/!/,/\//,/\|/,/\?/,/'/,/"/,/#/],k=(T,A,S="\\1")=>{const L=S==="\\1"?S:i.concat(S,A);return i.concat(i.concat("(?:",T,")"),A,/(?:\\.|[^\\\/])*?/,L,/(?:\\.|[^\\\/])*?/,S,l)},x=(T,A,S)=>i.concat(i.concat("(?:",T,")"),A,/(?:\\.|[^\\\/])*?/,S,l),w=[h,t.HASH_COMMENT_MODE,t.COMMENT(/^=\w/,/=cut/,{endsWithParent:!0}),c,{className:"string",contains:g,variants:[{begin:"q[qwxr]?\\s*\\(",end:"\\)",relevance:5},{begin:"q[qwxr]?\\s*\\[",end:"\\]",relevance:5},{begin:"q[qwxr]?\\s*\\{",end:"\\}",relevance:5},{begin:"q[qwxr]?\\s*\\|",end:"\\|",relevance:5},{begin:"q[qwxr]?\\s*<",end:">",relevance:5},{begin:"qw\\s+q",end:"q",relevance:5},{begin:"'",end:"'",contains:[t.BACKSLASH_ESCAPE]},{begin:'"',end:'"'},{begin:"`",end:"`",contains:[t.BACKSLASH_ESCAPE]},{begin:/\{\w+\}/,relevance:0},{begin:"-?\\w+\\s*=>",relevance:0}]},m,{begin:"(\\/\\/|"+t.RE_STARTERS_RE+"|\\b(split|return|print|reverse|grep)\\b)\\s*",keywords:"split return print reverse grep",relevance:0,contains:[t.HASH_COMMENT_MODE,{className:"regexp",variants:[{begin:k("s|tr|y",i.either(...b,{capture:!0}))},{begin:k("s|tr|y","\\(","\\)")},{begin:k("s|tr|y","\\[","\\]")},{begin:k("s|tr|y","\\{","\\}")}],relevance:2},{className:"regexp",variants:[{begin:/(m|qr)\/\//,relevance:0},{begin:x("(?:m|qr)?",/\//,/\//)},{begin:x("m|qr",i.either(...b,{capture:!0}),/\1/)},{begin:x("m|qr",/\(/,/\)/)},{begin:x("m|qr",/\[/,/\]/)},{begin:x("m|qr",/\{/,/\}/)}]}]},{className:"function",beginKeywords:"sub method",end:"(\\s*\\(.*?\\))?[;{]",excludeEnd:!0,relevance:5,contains:[t.TITLE_MODE,p]},{className:"class",beginKeywords:"class",end:"[;{]",excludeEnd:!0,relevance:5,contains:[t.TITLE_MODE,p,m]},{begin:"-\\w\\b",relevance:0},{begin:"^__DATA__$",end:"^__END__$",subLanguage:"mojolicious",contains:[{begin:"^@@.*",end:"$",className:"comment"}]}];return d.contains=w,c.contains=w,{name:"Perl",aliases:["pl","pm"],keywords:s,contains:w}}function P_(t){const i=t.regex,r=/(?![A-Za-z0-9])(?![$])/,l=i.concat(/[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*/,r),s=i.concat(/(\\?[A-Z][a-z0-9_\x7f-\xff]+|\\?[A-Z]+(?=[A-Z][a-z0-9_\x7f-\xff])){1,}/,r),d=i.concat(/[A-Z]+/,r),c={scope:"variable",match:"\\$+"+l},p={scope:"meta",variants:[{begin:/<\?php/,relevance:10},{begin:/<\?=/},{begin:/<\?/,relevance:.1},{begin:/\?>/}]},h={scope:"subst",variants:[{begin:/\$\w+/},{begin:/\{\$/,end:/\}/}]},m=t.inherit(t.APOS_STRING_MODE,{illegal:null}),g=t.inherit(t.QUOTE_STRING_MODE,{illegal:null,contains:t.QUOTE_STRING_MODE.contains.concat(h)}),b={begin:/<<<[ \t]*(?:(\w+)|"(\w+)")\n/,end:/[ \t]*(\w+)\b/,contains:t.QUOTE_STRING_MODE.contains.concat(h),"on:begin":(de,ne)=>{ne.data._beginMatch=de[1]||de[2]},"on:end":(de,ne)=>{ne.data._beginMatch!==de[1]&&ne.ignoreMatch()}},k=t.END_SAME_AS_BEGIN({begin:/<<<[ \t]*'(\w+)'\n/,end:/[ \t]*(\w+)\b/}),x=`[
26
+ ]`,w={scope:"string",variants:[g,m,b,k]},T={scope:"number",variants:[{begin:"\\b0[bB][01]+(?:_[01]+)*\\b"},{begin:"\\b0[oO][0-7]+(?:_[0-7]+)*\\b"},{begin:"\\b0[xX][\\da-fA-F]+(?:_[\\da-fA-F]+)*\\b"},{begin:"(?:\\b\\d+(?:_\\d+)*(\\.(?:\\d+(?:_\\d+)*))?|\\B\\.\\d+)(?:[eE][+-]?\\d+)?"}],relevance:0},A=["false","null","true"],S=["__CLASS__","__DIR__","__FILE__","__FUNCTION__","__COMPILER_HALT_OFFSET__","__LINE__","__METHOD__","__NAMESPACE__","__TRAIT__","die","echo","exit","include","include_once","print","require","require_once","array","abstract","and","as","binary","bool","boolean","break","callable","case","catch","class","clone","const","continue","declare","default","do","double","else","elseif","empty","enddeclare","endfor","endforeach","endif","endswitch","endwhile","enum","eval","extends","final","finally","float","for","foreach","from","global","goto","if","implements","instanceof","insteadof","int","integer","interface","isset","iterable","list","match|0","mixed","new","never","object","or","private","protected","public","readonly","real","return","string","switch","throw","trait","try","unset","use","var","void","while","xor","yield"],L=["Error|0","AppendIterator","ArgumentCountError","ArithmeticError","ArrayIterator","ArrayObject","AssertionError","BadFunctionCallException","BadMethodCallException","CachingIterator","CallbackFilterIterator","CompileError","Countable","DirectoryIterator","DivisionByZeroError","DomainException","EmptyIterator","ErrorException","Exception","FilesystemIterator","FilterIterator","GlobIterator","InfiniteIterator","InvalidArgumentException","IteratorIterator","LengthException","LimitIterator","LogicException","MultipleIterator","NoRewindIterator","OutOfBoundsException","OutOfRangeException","OuterIterator","OverflowException","ParentIterator","ParseError","RangeException","RecursiveArrayIterator","RecursiveCachingIterator","RecursiveCallbackFilterIterator","RecursiveDirectoryIterator","RecursiveFilterIterator","RecursiveIterator","RecursiveIteratorIterator","RecursiveRegexIterator","RecursiveTreeIterator","RegexIterator","RuntimeException","SeekableIterator","SplDoublyLinkedList","SplFileInfo","SplFileObject","SplFixedArray","SplHeap","SplMaxHeap","SplMinHeap","SplObjectStorage","SplObserver","SplPriorityQueue","SplQueue","SplStack","SplSubject","SplTempFileObject","TypeError","UnderflowException","UnexpectedValueException","UnhandledMatchError","ArrayAccess","BackedEnum","Closure","Fiber","Generator","Iterator","IteratorAggregate","Serializable","Stringable","Throwable","Traversable","UnitEnum","WeakReference","WeakMap","Directory","__PHP_Incomplete_Class","parent","php_user_filter","self","static","stdClass"],F={keyword:S,literal:(de=>{const ne=[];return de.forEach(Z=>{ne.push(Z),Z.toLowerCase()===Z?ne.push(Z.toUpperCase()):ne.push(Z.toLowerCase())}),ne})(A),built_in:L},Y=de=>de.map(ne=>ne.replace(/\|\d+$/,"")),R={variants:[{match:[/new/,i.concat(x,"+"),i.concat("(?!",Y(L).join("\\b|"),"\\b)"),s],scope:{1:"keyword",4:"title.class"}}]},le=i.concat(l,"\\b(?!\\()"),ae={variants:[{match:[i.concat(/::/,i.lookahead(/(?!class\b)/)),le],scope:{2:"variable.constant"}},{match:[/::/,/class/],scope:{2:"variable.language"}},{match:[s,i.concat(/::/,i.lookahead(/(?!class\b)/)),le],scope:{1:"title.class",3:"variable.constant"}},{match:[s,i.concat("::",i.lookahead(/(?!class\b)/))],scope:{1:"title.class"}},{match:[s,/::/,/class/],scope:{1:"title.class",3:"variable.language"}}]},he={scope:"attr",match:i.concat(l,i.lookahead(":"),i.lookahead(/(?!::)/))},B={relevance:0,begin:/\(/,end:/\)/,keywords:F,contains:[he,c,ae,t.C_BLOCK_COMMENT_MODE,w,T,R]},ue={relevance:0,match:[/\b/,i.concat("(?!fn\\b|function\\b|",Y(S).join("\\b|"),"|",Y(L).join("\\b|"),"\\b)"),l,i.concat(x,"*"),i.lookahead(/(?=\()/)],scope:{3:"title.function.invoke"},contains:[B]};B.contains.push(ue);const re=[he,ae,t.C_BLOCK_COMMENT_MODE,w,T,R],Ae={begin:i.concat(/#\[\s*\\?/,i.either(s,d)),beginScope:"meta",end:/]/,endScope:"meta",keywords:{literal:A,keyword:["new","array"]},contains:[{begin:/\[/,end:/]/,keywords:{literal:A,keyword:["new","array"]},contains:["self",...re]},...re,{scope:"meta",variants:[{match:s},{match:d}]}]};return{case_insensitive:!1,keywords:F,contains:[Ae,t.HASH_COMMENT_MODE,t.COMMENT("//","$"),t.COMMENT("/\\*","\\*/",{contains:[{scope:"doctag",match:"@[A-Za-z]+"}]}),{match:/__halt_compiler\(\);/,keywords:"__halt_compiler",starts:{scope:"comment",end:t.MATCH_NOTHING_RE,contains:[{match:/\?>/,scope:"meta",endsParent:!0}]}},p,{scope:"variable.language",match:/\$this\b/},c,ue,ae,{match:[/const/,/\s/,l],scope:{1:"keyword",3:"variable.constant"}},R,{scope:"function",relevance:0,beginKeywords:"fn function",end:/[;{]/,excludeEnd:!0,illegal:"[$%\\[]",contains:[{beginKeywords:"use"},t.UNDERSCORE_TITLE_MODE,{begin:"=>",endsParent:!0},{scope:"params",begin:"\\(",end:"\\)",excludeBegin:!0,excludeEnd:!0,keywords:F,contains:["self",Ae,c,ae,t.C_BLOCK_COMMENT_MODE,w,T]}]},{scope:"class",variants:[{beginKeywords:"enum",illegal:/[($"]/},{beginKeywords:"class interface trait",illegal:/[:($"]/}],relevance:0,end:/\{/,excludeEnd:!0,contains:[{beginKeywords:"extends implements"},t.UNDERSCORE_TITLE_MODE]},{beginKeywords:"namespace",relevance:0,end:";",illegal:/[.']/,contains:[t.inherit(t.UNDERSCORE_TITLE_MODE,{scope:"title.class"})]},{beginKeywords:"use",relevance:0,end:";",contains:[{match:/\b(as|const|function)\b/,scope:"keyword"},t.UNDERSCORE_TITLE_MODE]},w,T]}}function G_(t){return{name:"PHP template",subLanguage:"xml",contains:[{begin:/<\?(php|=)?/,end:/\?>/,subLanguage:"php",contains:[{begin:"/\\*",end:"\\*/",skip:!0},{begin:'b"',end:'"',skip:!0},{begin:"b'",end:"'",skip:!0},t.inherit(t.APOS_STRING_MODE,{illegal:null,className:null,contains:null,skip:!0}),t.inherit(t.QUOTE_STRING_MODE,{illegal:null,className:null,contains:null,skip:!0})]}]}}function Y_(t){return{name:"Plain text",aliases:["text","txt"],disableAutodetect:!0}}function V_(t){const i=t.regex,r=new RegExp("[\\p{XID_Start}_]\\p{XID_Continue}*","u"),l=["and","as","assert","async","await","break","case","class","continue","def","del","elif","else","except","finally","for","from","global","if","import","in","is","lambda","match","nonlocal|10","not","or","pass","raise","return","try","while","with","yield"],p={$pattern:/[A-Za-z]\w+|__\w+__/,keyword:l,built_in:["__import__","abs","all","any","ascii","bin","bool","breakpoint","bytearray","bytes","callable","chr","classmethod","compile","complex","delattr","dict","dir","divmod","enumerate","eval","exec","filter","float","format","frozenset","getattr","globals","hasattr","hash","help","hex","id","input","int","isinstance","issubclass","iter","len","list","locals","map","max","memoryview","min","next","object","oct","open","ord","pow","print","property","range","repr","reversed","round","set","setattr","slice","sorted","staticmethod","str","sum","super","tuple","type","vars","zip"],literal:["__debug__","Ellipsis","False","None","NotImplemented","True"],type:["Any","Callable","Coroutine","Dict","List","Literal","Generic","Optional","Sequence","Set","Tuple","Type","Union"]},h={className:"meta",begin:/^(>>>|\.\.\.) /},m={className:"subst",begin:/\{/,end:/\}/,keywords:p,illegal:/#/},g={begin:/\{\{/,relevance:0},b={className:"string",contains:[t.BACKSLASH_ESCAPE],variants:[{begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?'''/,end:/'''/,contains:[t.BACKSLASH_ESCAPE,h],relevance:10},{begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?"""/,end:/"""/,contains:[t.BACKSLASH_ESCAPE,h],relevance:10},{begin:/([fF][rR]|[rR][fF]|[fF])'''/,end:/'''/,contains:[t.BACKSLASH_ESCAPE,h,g,m]},{begin:/([fF][rR]|[rR][fF]|[fF])"""/,end:/"""/,contains:[t.BACKSLASH_ESCAPE,h,g,m]},{begin:/([uU]|[rR])'/,end:/'/,relevance:10},{begin:/([uU]|[rR])"/,end:/"/,relevance:10},{begin:/([bB]|[bB][rR]|[rR][bB])'/,end:/'/},{begin:/([bB]|[bB][rR]|[rR][bB])"/,end:/"/},{begin:/([fF][rR]|[rR][fF]|[fF])'/,end:/'/,contains:[t.BACKSLASH_ESCAPE,g,m]},{begin:/([fF][rR]|[rR][fF]|[fF])"/,end:/"/,contains:[t.BACKSLASH_ESCAPE,g,m]},t.APOS_STRING_MODE,t.QUOTE_STRING_MODE]},k="[0-9](_?[0-9])*",x=`(\\b(${k}))?\\.(${k})|\\b(${k})\\.`,w=`\\b|${l.join("|")}`,T={className:"number",relevance:0,variants:[{begin:`(\\b(${k})|(${x}))[eE][+-]?(${k})[jJ]?(?=${w})`},{begin:`(${x})[jJ]?`},{begin:`\\b([1-9](_?[0-9])*|0+(_?0)*)[lLjJ]?(?=${w})`},{begin:`\\b0[bB](_?[01])+[lL]?(?=${w})`},{begin:`\\b0[oO](_?[0-7])+[lL]?(?=${w})`},{begin:`\\b0[xX](_?[0-9a-fA-F])+[lL]?(?=${w})`},{begin:`\\b(${k})[jJ](?=${w})`}]},A={className:"comment",begin:i.lookahead(/# type:/),end:/$/,keywords:p,contains:[{begin:/# type:/},{begin:/#/,end:/\b\B/,endsWithParent:!0}]},S={className:"params",variants:[{className:"",begin:/\(\s*\)/,skip:!0},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:p,contains:["self",h,T,b,t.HASH_COMMENT_MODE]}]};return m.contains=[b,T,h],{name:"Python",aliases:["py","gyp","ipython"],unicodeRegex:!0,keywords:p,illegal:/(<\/|\?)|=>/,contains:[h,T,{scope:"variable.language",match:/\bself\b/},{beginKeywords:"if",relevance:0},{match:/\bor\b/,scope:"keyword"},b,A,t.HASH_COMMENT_MODE,{match:[/\bdef/,/\s+/,r],scope:{1:"keyword",3:"title.function"},contains:[S]},{variants:[{match:[/\bclass/,/\s+/,r,/\s*/,/\(\s*/,r,/\s*\)/]},{match:[/\bclass/,/\s+/,r]}],scope:{1:"keyword",3:"title.class",6:"title.class.inherited"}},{className:"meta",begin:/^[\t ]*@/,end:/(?=#)|$/,contains:[T,S,b]}]}}function $_(t){return{aliases:["pycon"],contains:[{className:"meta.prompt",starts:{end:/ |$/,starts:{end:"$",subLanguage:"python"}},variants:[{begin:/^>>>(?=[ ]|$)/},{begin:/^\.\.\.(?=[ ]|$)/}]}]}}function K_(t){const i=t.regex,r=/(?:(?:[a-zA-Z]|\.[._a-zA-Z])[._a-zA-Z0-9]*)|\.(?!\d)/,l=i.either(/0[xX][0-9a-fA-F]+\.[0-9a-fA-F]*[pP][+-]?\d+i?/,/0[xX][0-9a-fA-F]+(?:[pP][+-]?\d+)?[Li]?/,/(?:\d+(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+)?[Li]?/),s=/[=!<>:]=|\|\||&&|:::?|<-|<<-|->>|->|\|>|[-+*\/?!$&|:<=>@^~]|\*\*/,d=i.either(/[()]/,/[{}]/,/\[\[/,/[[\]]/,/\\/,/,/);return{name:"R",keywords:{$pattern:r,keyword:"function if in break next repeat else for while",literal:"NULL NA TRUE FALSE Inf NaN NA_integer_|10 NA_real_|10 NA_character_|10 NA_complex_|10",built_in:"LETTERS letters month.abb month.name pi T F abs acos acosh all any anyNA Arg as.call as.character as.complex as.double as.environment as.integer as.logical as.null.default as.numeric as.raw asin asinh atan atanh attr attributes baseenv browser c call ceiling class Conj cos cosh cospi cummax cummin cumprod cumsum digamma dim dimnames emptyenv exp expression floor forceAndCall gamma gc.time globalenv Im interactive invisible is.array is.atomic is.call is.character is.complex is.double is.environment is.expression is.finite is.function is.infinite is.integer is.language is.list is.logical is.matrix is.na is.name is.nan is.null is.numeric is.object is.pairlist is.raw is.recursive is.single is.symbol lazyLoadDBfetch length lgamma list log max min missing Mod names nargs nzchar oldClass on.exit pos.to.env proc.time prod quote range Re rep retracemem return round seq_along seq_len seq.int sign signif sin sinh sinpi sqrt standardGeneric substitute sum switch tan tanh tanpi tracemem trigamma trunc unclass untracemem UseMethod xtfrm"},contains:[t.COMMENT(/#'/,/$/,{contains:[{scope:"doctag",match:/@examples/,starts:{end:i.lookahead(i.either(/\n^#'\s*(?=@[a-zA-Z]+)/,/\n^(?!#')/)),endsParent:!0}},{scope:"doctag",begin:"@param",end:/$/,contains:[{scope:"variable",variants:[{match:r},{match:/`(?:\\.|[^`\\])+`/}],endsParent:!0}]},{scope:"doctag",match:/@[a-zA-Z]+/},{scope:"keyword",match:/\\[a-zA-Z]+/}]}),t.HASH_COMMENT_MODE,{scope:"string",contains:[t.BACKSLASH_ESCAPE],variants:[t.END_SAME_AS_BEGIN({begin:/[rR]"(-*)\(/,end:/\)(-*)"/}),t.END_SAME_AS_BEGIN({begin:/[rR]"(-*)\{/,end:/\}(-*)"/}),t.END_SAME_AS_BEGIN({begin:/[rR]"(-*)\[/,end:/\](-*)"/}),t.END_SAME_AS_BEGIN({begin:/[rR]'(-*)\(/,end:/\)(-*)'/}),t.END_SAME_AS_BEGIN({begin:/[rR]'(-*)\{/,end:/\}(-*)'/}),t.END_SAME_AS_BEGIN({begin:/[rR]'(-*)\[/,end:/\](-*)'/}),{begin:'"',end:'"',relevance:0},{begin:"'",end:"'",relevance:0}]},{relevance:0,variants:[{scope:{1:"operator",2:"number"},match:[s,l]},{scope:{1:"operator",2:"number"},match:[/%[^%]*%/,l]},{scope:{1:"punctuation",2:"number"},match:[d,l]},{scope:{2:"number"},match:[/[^a-zA-Z0-9._]|^/,l]}]},{scope:{3:"operator"},match:[r,/\s+/,/<-/,/\s+/]},{scope:"operator",relevance:0,variants:[{match:s},{match:/%[^%]*%/}]},{scope:"punctuation",relevance:0,match:d},{begin:"`",end:"`",contains:[{begin:/\\./}]}]}}function Z_(t){const i=t.regex,r="([a-zA-Z_]\\w*[!?=]?|[-+~]@|<<|>>|=~|===?|<=>|[<>]=?|\\*\\*|[-/+%^&*~`|]|\\[\\]=?)",l=i.either(/\b([A-Z]+[a-z0-9]+)+/,/\b([A-Z]+[a-z0-9]+)+[A-Z]+/),s=i.concat(l,/(::\w+)*/),c={"variable.constant":["__FILE__","__LINE__","__ENCODING__"],"variable.language":["self","super"],keyword:["alias","and","begin","BEGIN","break","case","class","defined","do","else","elsif","end","END","ensure","for","if","in","module","next","not","or","redo","require","rescue","retry","return","then","undef","unless","until","when","while","yield",...["include","extend","prepend","public","private","protected","raise","throw"]],built_in:["proc","lambda","attr_accessor","attr_reader","attr_writer","define_method","private_constant","module_function"],literal:["true","false","nil"]},p={className:"doctag",begin:"@[A-Za-z]+"},h={begin:"#<",end:">"},m=[t.COMMENT("#","$",{contains:[p]}),t.COMMENT("^=begin","^=end",{contains:[p],relevance:10}),t.COMMENT("^__END__",t.MATCH_NOTHING_RE)],g={className:"subst",begin:/#\{/,end:/\}/,keywords:c},b={className:"string",contains:[t.BACKSLASH_ESCAPE,g],variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/},{begin:/`/,end:/`/},{begin:/%[qQwWx]?\(/,end:/\)/},{begin:/%[qQwWx]?\[/,end:/\]/},{begin:/%[qQwWx]?\{/,end:/\}/},{begin:/%[qQwWx]?</,end:/>/},{begin:/%[qQwWx]?\//,end:/\//},{begin:/%[qQwWx]?%/,end:/%/},{begin:/%[qQwWx]?-/,end:/-/},{begin:/%[qQwWx]?\|/,end:/\|/},{begin:/\B\?(\\\d{1,3})/},{begin:/\B\?(\\x[A-Fa-f0-9]{1,2})/},{begin:/\B\?(\\u\{?[A-Fa-f0-9]{1,6}\}?)/},{begin:/\B\?(\\M-\\C-|\\M-\\c|\\c\\M-|\\M-|\\C-\\M-)[\x20-\x7e]/},{begin:/\B\?\\(c|C-)[\x20-\x7e]/},{begin:/\B\?\\?\S/},{begin:i.concat(/<<[-~]?'?/,i.lookahead(/(\w+)(?=\W)[^\n]*\n(?:[^\n]*\n)*?\s*\1\b/)),contains:[t.END_SAME_AS_BEGIN({begin:/(\w+)/,end:/(\w+)/,contains:[t.BACKSLASH_ESCAPE,g]})]}]},k="[1-9](_?[0-9])*|0",x="[0-9](_?[0-9])*",w={className:"number",relevance:0,variants:[{begin:`\\b(${k})(\\.(${x}))?([eE][+-]?(${x})|r)?i?\\b`},{begin:"\\b0[dD][0-9](_?[0-9])*r?i?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*r?i?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*r?i?\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*r?i?\\b"},{begin:"\\b0(_?[0-7])+r?i?\\b"}]},T={variants:[{match:/\(\)/},{className:"params",begin:/\(/,end:/(?=\))/,excludeBegin:!0,endsParent:!0,keywords:c}]},R=[b,{variants:[{match:[/class\s+/,s,/\s+<\s+/,s]},{match:[/\b(class|module)\s+/,s]}],scope:{2:"title.class",4:"title.class.inherited"},keywords:c},{match:[/(include|extend)\s+/,s],scope:{2:"title.class"},keywords:c},{relevance:0,match:[s,/\.new[. (]/],scope:{1:"title.class"}},{relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"},{relevance:0,match:l,scope:"title.class"},{match:[/def/,/\s+/,r],scope:{1:"keyword",3:"title.function"},contains:[T]},{begin:t.IDENT_RE+"::"},{className:"symbol",begin:t.UNDERSCORE_IDENT_RE+"(!|\\?)?:",relevance:0},{className:"symbol",begin:":(?!\\s)",contains:[b,{begin:r}],relevance:0},w,{className:"variable",begin:"(\\$\\W)|((\\$|@@?)(\\w+))(?=[^@$?])(?![A-Za-z])(?![@$?'])"},{className:"params",begin:/\|(?!=)/,end:/\|/,excludeBegin:!0,excludeEnd:!0,relevance:0,keywords:c},{begin:"("+t.RE_STARTERS_RE+"|unless)\\s*",keywords:"unless",contains:[{className:"regexp",contains:[t.BACKSLASH_ESCAPE,g],illegal:/\n/,variants:[{begin:"/",end:"/[a-z]*"},{begin:/%r\{/,end:/\}[a-z]*/},{begin:"%r\\(",end:"\\)[a-z]*"},{begin:"%r!",end:"![a-z]*"},{begin:"%r\\[",end:"\\][a-z]*"}]}].concat(h,m),relevance:0}].concat(h,m);g.contains=R,T.contains=R;const B=[{begin:/^\s*=>/,starts:{end:"$",contains:R}},{className:"meta.prompt",begin:"^("+"[>?]>"+"|"+"[\\w#]+\\(\\w+\\):\\d+:\\d+[>*]"+"|"+"(\\w+-)?\\d+\\.\\d+\\.\\d+(p\\d+)?[^\\d][^>]+>"+")(?=[ ])",starts:{end:"$",keywords:c,contains:R}}];return m.unshift(h),{name:"Ruby",aliases:["rb","gemspec","podspec","thor","irb"],keywords:c,illegal:/\/\*/,contains:[t.SHEBANG({binary:"ruby"})].concat(B).concat(m).concat(R)}}function Q_(t){const i=t.regex,r=/(r#)?/,l=i.concat(r,t.UNDERSCORE_IDENT_RE),s=i.concat(r,t.IDENT_RE),d={className:"title.function.invoke",relevance:0,begin:i.concat(/\b/,/(?!let|for|while|if|else|match\b)/,s,i.lookahead(/\s*\(/))},c="([ui](8|16|32|64|128|size)|f(32|64))?",p=["abstract","as","async","await","become","box","break","const","continue","crate","do","dyn","else","enum","extern","false","final","fn","for","if","impl","in","let","loop","macro","match","mod","move","mut","override","priv","pub","ref","return","self","Self","static","struct","super","trait","true","try","type","typeof","union","unsafe","unsized","use","virtual","where","while","yield"],h=["true","false","Some","None","Ok","Err"],m=["drop ","Copy","Send","Sized","Sync","Drop","Fn","FnMut","FnOnce","ToOwned","Clone","Debug","PartialEq","PartialOrd","Eq","Ord","AsRef","AsMut","Into","From","Default","Iterator","Extend","IntoIterator","DoubleEndedIterator","ExactSizeIterator","SliceConcatExt","ToString","assert!","assert_eq!","bitflags!","bytes!","cfg!","col!","concat!","concat_idents!","debug_assert!","debug_assert_eq!","env!","eprintln!","panic!","file!","format!","format_args!","include_bytes!","include_str!","line!","local_data_key!","module_path!","option_env!","print!","println!","select!","stringify!","try!","unimplemented!","unreachable!","vec!","write!","writeln!","macro_rules!","assert_ne!","debug_assert_ne!"],g=["i8","i16","i32","i64","i128","isize","u8","u16","u32","u64","u128","usize","f32","f64","str","char","bool","Box","Option","Result","String","Vec"];return{name:"Rust",aliases:["rs"],keywords:{$pattern:t.IDENT_RE+"!?",type:g,keyword:p,literal:h,built_in:m},illegal:"</",contains:[t.C_LINE_COMMENT_MODE,t.COMMENT("/\\*","\\*/",{contains:["self"]}),t.inherit(t.QUOTE_STRING_MODE,{begin:/b?"/,illegal:null}),{className:"symbol",begin:/'[a-zA-Z_][a-zA-Z0-9_]*(?!')/},{scope:"string",variants:[{begin:/b?r(#*)"(.|\n)*?"\1(?!#)/},{begin:/b?'/,end:/'/,contains:[{scope:"char.escape",match:/\\('|\w|x\w{2}|u\w{4}|U\w{8})/}]}]},{className:"number",variants:[{begin:"\\b0b([01_]+)"+c},{begin:"\\b0o([0-7_]+)"+c},{begin:"\\b0x([A-Fa-f0-9_]+)"+c},{begin:"\\b(\\d[\\d_]*(\\.[0-9_]+)?([eE][+-]?[0-9_]+)?)"+c}],relevance:0},{begin:[/fn/,/\s+/,l],className:{1:"keyword",3:"title.function"}},{className:"meta",begin:"#!?\\[",end:"\\]",contains:[{className:"string",begin:/"/,end:/"/,contains:[t.BACKSLASH_ESCAPE]}]},{begin:[/let/,/\s+/,/(?:mut\s+)?/,l],className:{1:"keyword",3:"keyword",4:"variable"}},{begin:[/for/,/\s+/,l,/\s+/,/in/],className:{1:"keyword",3:"variable",5:"keyword"}},{begin:[/type/,/\s+/,l],className:{1:"keyword",3:"title.class"}},{begin:[/(?:trait|enum|struct|union|impl|for)/,/\s+/,l],className:{1:"keyword",3:"title.class"}},{begin:t.IDENT_RE+"::",keywords:{keyword:"Self",built_in:m,type:g}},{className:"punctuation",begin:"->"},d]}}const X_=t=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:t.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[t.APOS_STRING_MODE,t.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:t.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z_][A-Za-z0-9_-]*/}}),W_=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","optgroup","option","p","picture","q","quote","samp","section","select","source","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],J_=["defs","g","marker","mask","pattern","svg","switch","symbol","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feFlood","feGaussianBlur","feImage","feMerge","feMorphology","feOffset","feSpecularLighting","feTile","feTurbulence","linearGradient","radialGradient","stop","circle","ellipse","image","line","path","polygon","polyline","rect","text","use","textPath","tspan","foreignObject","clipPath"],eE=[...W_,...J_],tE=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"].sort().reverse(),nE=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"].sort().reverse(),iE=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"].sort().reverse(),aE=["accent-color","align-content","align-items","align-self","alignment-baseline","all","anchor-name","animation","animation-composition","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-range","animation-range-end","animation-range-start","animation-timeline","animation-timing-function","appearance","aspect-ratio","backdrop-filter","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-position-x","background-position-y","background-repeat","background-size","baseline-shift","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-end-end-radius","border-end-start-radius","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-start-end-radius","border-start-start-radius","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-align","box-decoration-break","box-direction","box-flex","box-flex-group","box-lines","box-ordinal-group","box-orient","box-pack","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","color-scheme","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","contain-intrinsic-block-size","contain-intrinsic-height","contain-intrinsic-inline-size","contain-intrinsic-size","contain-intrinsic-width","container","container-name","container-type","content","content-visibility","counter-increment","counter-reset","counter-set","cue","cue-after","cue-before","cursor","cx","cy","direction","display","dominant-baseline","empty-cells","enable-background","field-sizing","fill","fill-opacity","fill-rule","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flood-color","flood-opacity","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-optical-sizing","font-palette","font-size","font-size-adjust","font-smooth","font-smoothing","font-stretch","font-style","font-synthesis","font-synthesis-position","font-synthesis-small-caps","font-synthesis-style","font-synthesis-weight","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-emoji","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","forced-color-adjust","gap","glyph-orientation-horizontal","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphenate-character","hyphenate-limit-chars","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","initial-letter","initial-letter-align","inline-size","inset","inset-area","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","justify-content","justify-items","justify-self","kerning","left","letter-spacing","lighting-color","line-break","line-height","line-height-step","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","margin-trim","marker","marker-end","marker-mid","marker-start","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","masonry-auto-flow","math-depth","math-shift","math-style","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-anchor","overflow-block","overflow-clip-margin","overflow-inline","overflow-wrap","overflow-x","overflow-y","overlay","overscroll-behavior","overscroll-behavior-block","overscroll-behavior-inline","overscroll-behavior-x","overscroll-behavior-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","paint-order","pause","pause-after","pause-before","perspective","perspective-origin","place-content","place-items","place-self","pointer-events","position","position-anchor","position-visibility","print-color-adjust","quotes","r","resize","rest","rest-after","rest-before","right","rotate","row-gap","ruby-align","ruby-position","scale","scroll-behavior","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scroll-timeline","scroll-timeline-axis","scroll-timeline-name","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","shape-rendering","speak","speak-as","src","stop-color","stop-opacity","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","tab-size","table-layout","text-align","text-align-all","text-align-last","text-anchor","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-skip-ink","text-decoration-style","text-decoration-thickness","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-size-adjust","text-transform","text-underline-offset","text-underline-position","text-wrap","text-wrap-mode","text-wrap-style","timeline-scope","top","touch-action","transform","transform-box","transform-origin","transform-style","transition","transition-behavior","transition-delay","transition-duration","transition-property","transition-timing-function","translate","unicode-bidi","user-modify","user-select","vector-effect","vertical-align","view-timeline","view-timeline-axis","view-timeline-inset","view-timeline-name","view-transition-name","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","white-space-collapse","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","x","y","z-index","zoom"].sort().reverse();function rE(t){const i=X_(t),r=iE,l=nE,s="@[a-z-]+",d="and or not only",p={className:"variable",begin:"(\\$"+"[a-zA-Z-][a-zA-Z0-9_-]*"+")\\b",relevance:0};return{name:"SCSS",case_insensitive:!0,illegal:"[=/|']",contains:[t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,i.CSS_NUMBER_MODE,{className:"selector-id",begin:"#[A-Za-z0-9_-]+",relevance:0},{className:"selector-class",begin:"\\.[A-Za-z0-9_-]+",relevance:0},i.ATTRIBUTE_SELECTOR_MODE,{className:"selector-tag",begin:"\\b("+eE.join("|")+")\\b",relevance:0},{className:"selector-pseudo",begin:":("+l.join("|")+")"},{className:"selector-pseudo",begin:":(:)?("+r.join("|")+")"},p,{begin:/\(/,end:/\)/,contains:[i.CSS_NUMBER_MODE]},i.CSS_VARIABLE,{className:"attribute",begin:"\\b("+aE.join("|")+")\\b"},{begin:"\\b(whitespace|wait|w-resize|visible|vertical-text|vertical-ideographic|uppercase|upper-roman|upper-alpha|underline|transparent|top|thin|thick|text|text-top|text-bottom|tb-rl|table-header-group|table-footer-group|sw-resize|super|strict|static|square|solid|small-caps|separate|se-resize|scroll|s-resize|rtl|row-resize|ridge|right|repeat|repeat-y|repeat-x|relative|progress|pointer|overline|outside|outset|oblique|nowrap|not-allowed|normal|none|nw-resize|no-repeat|no-drop|newspaper|ne-resize|n-resize|move|middle|medium|ltr|lr-tb|lowercase|lower-roman|lower-alpha|loose|list-item|line|line-through|line-edge|lighter|left|keep-all|justify|italic|inter-word|inter-ideograph|inside|inset|inline|inline-block|inherit|inactive|ideograph-space|ideograph-parenthesis|ideograph-numeric|ideograph-alpha|horizontal|hidden|help|hand|groove|fixed|ellipsis|e-resize|double|dotted|distribute|distribute-space|distribute-letter|distribute-all-lines|disc|disabled|default|decimal|dashed|crosshair|collapse|col-resize|circle|char|center|capitalize|break-word|break-all|bottom|both|bolder|bold|block|bidi-override|below|baseline|auto|always|all-scroll|absolute|table|table-cell)\\b"},{begin:/:/,end:/[;}{]/,relevance:0,contains:[i.BLOCK_COMMENT,p,i.HEXCOLOR,i.CSS_NUMBER_MODE,t.QUOTE_STRING_MODE,t.APOS_STRING_MODE,i.IMPORTANT,i.FUNCTION_DISPATCH]},{begin:"@(page|font-face)",keywords:{$pattern:s,keyword:"@page @font-face"}},{begin:"@",end:"[{;]",returnBegin:!0,keywords:{$pattern:/[a-z-]+/,keyword:d,attribute:tE.join(" ")},contains:[{begin:s,className:"keyword"},{begin:/[a-z-]+(?=:)/,className:"attribute"},p,t.QUOTE_STRING_MODE,t.APOS_STRING_MODE,i.HEXCOLOR,i.CSS_NUMBER_MODE]},i.FUNCTION_DISPATCH]}}function oE(t){return{name:"Shell Session",aliases:["console","shellsession"],contains:[{className:"meta.prompt",begin:/^\s{0,3}[/~\w\d[\]()@-]*[>%$#][ ]?/,starts:{end:/[^\\](?=\s*$)/,subLanguage:"bash"}}]}}function lE(t){const i=t.regex,r=t.COMMENT("--","$"),l={scope:"string",variants:[{begin:/'/,end:/'/,contains:[{match:/''/}]}]},s={begin:/"/,end:/"/,contains:[{match:/""/}]},d=["true","false","unknown"],c=["double precision","large object","with timezone","without timezone"],p=["bigint","binary","blob","boolean","char","character","clob","date","dec","decfloat","decimal","float","int","integer","interval","nchar","nclob","national","numeric","real","row","smallint","time","timestamp","varchar","varying","varbinary"],h=["add","asc","collation","desc","final","first","last","view"],m=["abs","acos","all","allocate","alter","and","any","are","array","array_agg","array_max_cardinality","as","asensitive","asin","asymmetric","at","atan","atomic","authorization","avg","begin","begin_frame","begin_partition","between","bigint","binary","blob","boolean","both","by","call","called","cardinality","cascaded","case","cast","ceil","ceiling","char","char_length","character","character_length","check","classifier","clob","close","coalesce","collate","collect","column","commit","condition","connect","constraint","contains","convert","copy","corr","corresponding","cos","cosh","count","covar_pop","covar_samp","create","cross","cube","cume_dist","current","current_catalog","current_date","current_default_transform_group","current_path","current_role","current_row","current_schema","current_time","current_timestamp","current_path","current_role","current_transform_group_for_type","current_user","cursor","cycle","date","day","deallocate","dec","decimal","decfloat","declare","default","define","delete","dense_rank","deref","describe","deterministic","disconnect","distinct","double","drop","dynamic","each","element","else","empty","end","end_frame","end_partition","end-exec","equals","escape","every","except","exec","execute","exists","exp","external","extract","false","fetch","filter","first_value","float","floor","for","foreign","frame_row","free","from","full","function","fusion","get","global","grant","group","grouping","groups","having","hold","hour","identity","in","indicator","initial","inner","inout","insensitive","insert","int","integer","intersect","intersection","interval","into","is","join","json_array","json_arrayagg","json_exists","json_object","json_objectagg","json_query","json_table","json_table_primitive","json_value","lag","language","large","last_value","lateral","lead","leading","left","like","like_regex","listagg","ln","local","localtime","localtimestamp","log","log10","lower","match","match_number","match_recognize","matches","max","member","merge","method","min","minute","mod","modifies","module","month","multiset","national","natural","nchar","nclob","new","no","none","normalize","not","nth_value","ntile","null","nullif","numeric","octet_length","occurrences_regex","of","offset","old","omit","on","one","only","open","or","order","out","outer","over","overlaps","overlay","parameter","partition","pattern","per","percent","percent_rank","percentile_cont","percentile_disc","period","portion","position","position_regex","power","precedes","precision","prepare","primary","procedure","ptf","range","rank","reads","real","recursive","ref","references","referencing","regr_avgx","regr_avgy","regr_count","regr_intercept","regr_r2","regr_slope","regr_sxx","regr_sxy","regr_syy","release","result","return","returns","revoke","right","rollback","rollup","row","row_number","rows","running","savepoint","scope","scroll","search","second","seek","select","sensitive","session_user","set","show","similar","sin","sinh","skip","smallint","some","specific","specifictype","sql","sqlexception","sqlstate","sqlwarning","sqrt","start","static","stddev_pop","stddev_samp","submultiset","subset","substring","substring_regex","succeeds","sum","symmetric","system","system_time","system_user","table","tablesample","tan","tanh","then","time","timestamp","timezone_hour","timezone_minute","to","trailing","translate","translate_regex","translation","treat","trigger","trim","trim_array","true","truncate","uescape","union","unique","unknown","unnest","update","upper","user","using","value","values","value_of","var_pop","var_samp","varbinary","varchar","varying","versioning","when","whenever","where","width_bucket","window","with","within","without","year"],g=["abs","acos","array_agg","asin","atan","avg","cast","ceil","ceiling","coalesce","corr","cos","cosh","count","covar_pop","covar_samp","cume_dist","dense_rank","deref","element","exp","extract","first_value","floor","json_array","json_arrayagg","json_exists","json_object","json_objectagg","json_query","json_table","json_table_primitive","json_value","lag","last_value","lead","listagg","ln","log","log10","lower","max","min","mod","nth_value","ntile","nullif","percent_rank","percentile_cont","percentile_disc","position","position_regex","power","rank","regr_avgx","regr_avgy","regr_count","regr_intercept","regr_r2","regr_slope","regr_sxx","regr_sxy","regr_syy","row_number","sin","sinh","sqrt","stddev_pop","stddev_samp","substring","substring_regex","sum","tan","tanh","translate","translate_regex","treat","trim","trim_array","unnest","upper","value_of","var_pop","var_samp","width_bucket"],b=["current_catalog","current_date","current_default_transform_group","current_path","current_role","current_schema","current_transform_group_for_type","current_user","session_user","system_time","system_user","current_time","localtime","current_timestamp","localtimestamp"],k=["create table","insert into","primary key","foreign key","not null","alter table","add constraint","grouping sets","on overflow","character set","respect nulls","ignore nulls","nulls first","nulls last","depth first","breadth first"],x=g,w=[...m,...h].filter(Y=>!g.includes(Y)),T={scope:"variable",match:/@[a-z0-9][a-z0-9_]*/},A={scope:"operator",match:/[-+*/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?/,relevance:0},S={match:i.concat(/\b/,i.either(...x),/\s*\(/),relevance:0,keywords:{built_in:x}};function L(Y){return i.concat(/\b/,i.either(...Y.map(R=>R.replace(/\s+/,"\\s+"))),/\b/)}const I={scope:"keyword",match:L(k),relevance:0};function F(Y,{exceptions:R,when:le}={}){const ae=le;return R=R||[],Y.map(he=>he.match(/\|\d+$/)||R.includes(he)?he:ae(he)?`${he}|0`:he)}return{name:"SQL",case_insensitive:!0,illegal:/[{}]|<\//,keywords:{$pattern:/\b[\w\.]+/,keyword:F(w,{when:Y=>Y.length<3}),literal:d,type:p,built_in:b},contains:[{scope:"type",match:L(c)},I,S,T,l,s,t.C_NUMBER_MODE,t.C_BLOCK_COMMENT_MODE,r,A]}}function wm(t){return t?typeof t=="string"?t:t.source:null}function Ho(t){return bt("(?=",t,")")}function bt(...t){return t.map(r=>wm(r)).join("")}function sE(t){const i=t[t.length-1];return typeof i=="object"&&i.constructor===Object?(t.splice(t.length-1,1),i):{}}function zn(...t){return"("+(sE(t).capture?"":"?:")+t.map(l=>wm(l)).join("|")+")"}const su=t=>bt(/\b/,t,/\w$/.test(t)?/\b/:/\B/),cE=["Protocol","Type"].map(su),Sm=["init","self"].map(su),uE=["Any","Self"],cu=["actor","any","associatedtype","async","await",/as\?/,/as!/,"as","borrowing","break","case","catch","class","consume","consuming","continue","convenience","copy","default","defer","deinit","didSet","distributed","do","dynamic","each","else","enum","extension","fallthrough",/fileprivate\(set\)/,"fileprivate","final","for","func","get","guard","if","import","indirect","infix",/init\?/,/init!/,"inout",/internal\(set\)/,"internal","in","is","isolated","nonisolated","lazy","let","macro","mutating","nonmutating",/open\(set\)/,"open","operator","optional","override","package","postfix","precedencegroup","prefix",/private\(set\)/,"private","protocol",/public\(set\)/,"public","repeat","required","rethrows","return","set","some","static","struct","subscript","super","switch","throws","throw",/try\?/,/try!/,"try","typealias",/unowned\(safe\)/,/unowned\(unsafe\)/,"unowned","var","weak","where","while","willSet"],Tm=["false","nil","true"],dE=["assignment","associativity","higherThan","left","lowerThan","none","right"],fE=["#colorLiteral","#column","#dsohandle","#else","#elseif","#endif","#error","#file","#fileID","#fileLiteral","#filePath","#function","#if","#imageLiteral","#keyPath","#line","#selector","#sourceLocation","#warning"],Am=["abs","all","any","assert","assertionFailure","debugPrint","dump","fatalError","getVaList","isKnownUniquelyReferenced","max","min","numericCast","pointwiseMax","pointwiseMin","precondition","preconditionFailure","print","readLine","repeatElement","sequence","stride","swap","swift_unboxFromSwiftValueWithType","transcode","type","unsafeBitCast","unsafeDowncast","withExtendedLifetime","withUnsafeMutablePointer","withUnsafePointer","withVaList","withoutActuallyEscaping","zip"],Nm=zn(/[/=\-+!*%<>&|^~?]/,/[\u00A1-\u00A7]/,/[\u00A9\u00AB]/,/[\u00AC\u00AE]/,/[\u00B0\u00B1]/,/[\u00B6\u00BB\u00BF\u00D7\u00F7]/,/[\u2016-\u2017]/,/[\u2020-\u2027]/,/[\u2030-\u203E]/,/[\u2041-\u2053]/,/[\u2055-\u205E]/,/[\u2190-\u23FF]/,/[\u2500-\u2775]/,/[\u2794-\u2BFF]/,/[\u2E00-\u2E7F]/,/[\u3001-\u3003]/,/[\u3008-\u3020]/,/[\u3030]/),Cm=zn(Nm,/[\u0300-\u036F]/,/[\u1DC0-\u1DFF]/,/[\u20D0-\u20FF]/,/[\uFE00-\uFE0F]/,/[\uFE20-\uFE2F]/),uu=bt(Nm,Cm,"*"),Mm=zn(/[a-zA-Z_]/,/[\u00A8\u00AA\u00AD\u00AF\u00B2-\u00B5\u00B7-\u00BA]/,/[\u00BC-\u00BE\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF]/,/[\u0100-\u02FF\u0370-\u167F\u1681-\u180D\u180F-\u1DBF]/,/[\u1E00-\u1FFF]/,/[\u200B-\u200D\u202A-\u202E\u203F-\u2040\u2054\u2060-\u206F]/,/[\u2070-\u20CF\u2100-\u218F\u2460-\u24FF\u2776-\u2793]/,/[\u2C00-\u2DFF\u2E80-\u2FFF]/,/[\u3004-\u3007\u3021-\u302F\u3031-\u303F\u3040-\uD7FF]/,/[\uF900-\uFD3D\uFD40-\uFDCF\uFDF0-\uFE1F\uFE30-\uFE44]/,/[\uFE47-\uFEFE\uFF00-\uFFFD]/),Zl=zn(Mm,/\d/,/[\u0300-\u036F\u1DC0-\u1DFF\u20D0-\u20FF\uFE20-\uFE2F]/),qi=bt(Mm,Zl,"*"),Ql=bt(/[A-Z]/,Zl,"*"),pE=["attached","autoclosure",bt(/convention\(/,zn("swift","block","c"),/\)/),"discardableResult","dynamicCallable","dynamicMemberLookup","escaping","freestanding","frozen","GKInspectable","IBAction","IBDesignable","IBInspectable","IBOutlet","IBSegueAction","inlinable","main","nonobjc","NSApplicationMain","NSCopying","NSManaged",bt(/objc\(/,qi,/\)/),"objc","objcMembers","propertyWrapper","requires_stored_property_inits","resultBuilder","Sendable","testable","UIApplicationMain","unchecked","unknown","usableFromInline","warn_unqualified_access"],mE=["iOS","iOSApplicationExtension","macOS","macOSApplicationExtension","macCatalyst","macCatalystApplicationExtension","watchOS","watchOSApplicationExtension","tvOS","tvOSApplicationExtension","swift"];function hE(t){const i={match:/\s+/,relevance:0},r=t.COMMENT("/\\*","\\*/",{contains:["self"]}),l=[t.C_LINE_COMMENT_MODE,r],s={match:[/\./,zn(...cE,...Sm)],className:{2:"keyword"}},d={match:bt(/\./,zn(...cu)),relevance:0},c=cu.filter(Ve=>typeof Ve=="string").concat(["_|0"]),p=cu.filter(Ve=>typeof Ve!="string").concat(uE).map(su),h={variants:[{className:"keyword",match:zn(...p,...Sm)}]},m={$pattern:zn(/\b\w+/,/#\w+/),keyword:c.concat(fE),literal:Tm},g=[s,d,h],b={match:bt(/\./,zn(...Am)),relevance:0},k={className:"built_in",match:bt(/\b/,zn(...Am),/(?=\()/)},x=[b,k],w={match:/->/,relevance:0},T={className:"operator",relevance:0,variants:[{match:uu},{match:`\\.(\\.|${Cm})+`}]},A=[w,T],S="([0-9]_*)+",L="([0-9a-fA-F]_*)+",I={className:"number",relevance:0,variants:[{match:`\\b(${S})(\\.(${S}))?([eE][+-]?(${S}))?\\b`},{match:`\\b0x(${L})(\\.(${L}))?([pP][+-]?(${S}))?\\b`},{match:/\b0o([0-7]_*)+\b/},{match:/\b0b([01]_*)+\b/}]},F=(Ve="")=>({className:"subst",variants:[{match:bt(/\\/,Ve,/[0\\tnr"']/)},{match:bt(/\\/,Ve,/u\{[0-9a-fA-F]{1,8}\}/)}]}),Y=(Ve="")=>({className:"subst",match:bt(/\\/,Ve,/[\t ]*(?:[\r\n]|\r\n)/)}),R=(Ve="")=>({className:"subst",label:"interpol",begin:bt(/\\/,Ve,/\(/),end:/\)/}),le=(Ve="")=>({begin:bt(Ve,/"""/),end:bt(/"""/,Ve),contains:[F(Ve),Y(Ve),R(Ve)]}),ae=(Ve="")=>({begin:bt(Ve,/"/),end:bt(/"/,Ve),contains:[F(Ve),R(Ve)]}),he={className:"string",variants:[le(),le("#"),le("##"),le("###"),ae(),ae("#"),ae("##"),ae("###")]},B=[t.BACKSLASH_ESCAPE,{begin:/\[/,end:/\]/,relevance:0,contains:[t.BACKSLASH_ESCAPE]}],ue={begin:/\/[^\s](?=[^/\n]*\/)/,end:/\//,contains:B},re=Ve=>{const Qt=bt(Ve,/\//),Et=bt(/\//,Ve);return{begin:Qt,end:Et,contains:[...B,{scope:"comment",begin:`#(?!.*${Et})`,end:/$/}]}},Ae={scope:"regexp",variants:[re("###"),re("##"),re("#"),ue]},de={match:bt(/`/,qi,/`/)},ne={className:"variable",match:/\$\d+/},Z={className:"variable",match:`\\$${Zl}+`},$=[de,ne,Z],Q={match:/(@|#(un)?)available/,scope:"keyword",starts:{contains:[{begin:/\(/,end:/\)/,keywords:mE,contains:[...A,I,he]}]}},ye={scope:"keyword",match:bt(/@/,zn(...pE),Ho(zn(/\(/,/\s+/)))},N={scope:"meta",match:bt(/@/,qi)},ze=[Q,ye,N],C={match:Ho(/\b[A-Z]/),relevance:0,contains:[{className:"type",match:bt(/(AV|CA|CF|CG|CI|CL|CM|CN|CT|MK|MP|MTK|MTL|NS|SCN|SK|UI|WK|XC)/,Zl,"+")},{className:"type",match:Ql,relevance:0},{match:/[?!]+/,relevance:0},{match:/\.\.\./,relevance:0},{match:bt(/\s+&\s+/,Ho(Ql)),relevance:0}]},E={begin:/</,end:/>/,keywords:m,contains:[...l,...g,...ze,w,C]};C.contains.push(E);const ie={match:bt(qi,/\s*:/),keywords:"_|0",relevance:0},ge={begin:/\(/,end:/\)/,relevance:0,keywords:m,contains:["self",ie,...l,Ae,...g,...x,...A,I,he,...$,...ze,C]},ve={begin:/</,end:/>/,keywords:"repeat each",contains:[...l,C]},W={begin:zn(Ho(bt(qi,/\s*:/)),Ho(bt(qi,/\s+/,qi,/\s*:/))),end:/:/,relevance:0,contains:[{className:"keyword",match:/\b_\b/},{className:"params",match:qi}]},be={begin:/\(/,end:/\)/,keywords:m,contains:[W,...l,...g,...A,I,he,...ze,C,ge],endsParent:!0,illegal:/["']/},qe={match:[/(func|macro)/,/\s+/,zn(de.match,qi,uu)],className:{1:"keyword",3:"title.function"},contains:[ve,be,i],illegal:[/\[/,/%/]},Fe={match:[/\b(?:subscript|init[?!]?)/,/\s*(?=[<(])/],className:{1:"keyword"},contains:[ve,be,i],illegal:/\[|%/},nn={match:[/operator/,/\s+/,uu],className:{1:"keyword",3:"title"}},At={begin:[/precedencegroup/,/\s+/,Ql],className:{1:"keyword",3:"title"},contains:[C],keywords:[...dE,...Tm],end:/}/},An={match:[/class\b/,/\s+/,/func\b/,/\s+/,/\b[A-Za-z_][A-Za-z0-9_]*\b/],scope:{1:"keyword",3:"keyword",5:"title.function"}},qt={match:[/class\b/,/\s+/,/var\b/],scope:{1:"keyword",3:"keyword"}},an={begin:[/(struct|protocol|class|extension|enum|actor)/,/\s+/,qi,/\s*/],beginScope:{1:"keyword",3:"title.class"},keywords:m,contains:[ve,...g,{begin:/:/,end:/\{/,keywords:m,contains:[{scope:"title.class.inherited",match:Ql},...g],relevance:0}]};for(const Ve of he.variants){const Qt=Ve.contains.find(Ln=>Ln.label==="interpol");Qt.keywords=m;const Et=[...g,...x,...A,I,he,...$];Qt.contains=[...Et,{begin:/\(/,end:/\)/,contains:["self",...Et]}]}return{name:"Swift",keywords:m,contains:[...l,qe,Fe,An,qt,an,nn,At,{beginKeywords:"import",end:/$/,contains:[...l],relevance:0},Ae,...g,...x,...A,I,he,...$,...ze,C,ge]}}const Xl="[A-Za-z$_][0-9A-Za-z$_]*",Om=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends","using"],Rm=["true","false","null","undefined","NaN","Infinity"],Dm=["Object","Function","Boolean","Symbol","Math","Date","Number","BigInt","String","RegExp","Array","Float32Array","Float64Array","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Int32Array","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array","Set","Map","WeakSet","WeakMap","ArrayBuffer","SharedArrayBuffer","Atomics","DataView","JSON","Promise","Generator","GeneratorFunction","AsyncFunction","Reflect","Proxy","Intl","WebAssembly"],zm=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],Lm=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],Im=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","global"],Bm=[].concat(Lm,Dm,zm);function gE(t){const i=t.regex,r=(Q,{after:ye})=>{const N="</"+Q[0].slice(1);return Q.input.indexOf(N,ye)!==-1},l=Xl,s={begin:"<>",end:"</>"},d=/<[A-Za-z0-9\\._:-]+\s*\/>/,c={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(Q,ye)=>{const N=Q[0].length+Q.index,ze=Q.input[N];if(ze==="<"||ze===","){ye.ignoreMatch();return}ze===">"&&(r(Q,{after:N})||ye.ignoreMatch());let C;const E=Q.input.substring(N);if(C=E.match(/^\s*=/)){ye.ignoreMatch();return}if((C=E.match(/^\s+extends\s+/))&&C.index===0){ye.ignoreMatch();return}}},p={$pattern:Xl,keyword:Om,literal:Rm,built_in:Bm,"variable.language":Im},h="[0-9](_?[0-9])*",m=`\\.(${h})`,g="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",b={className:"number",variants:[{begin:`(\\b(${g})((${m})|\\.)?|(${m}))[eE][+-]?(${h})\\b`},{begin:`\\b(${g})\\b((${m})\\b|\\.)?|(${m})\\b`},{begin:"\\b(0|[1-9](_?[0-9])*)n\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*n?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*n?\\b"},{begin:"\\b0[0-7]+n?\\b"}],relevance:0},k={className:"subst",begin:"\\$\\{",end:"\\}",keywords:p,contains:[]},x={begin:".?html`",end:"",starts:{end:"`",returnEnd:!1,contains:[t.BACKSLASH_ESCAPE,k],subLanguage:"xml"}},w={begin:".?css`",end:"",starts:{end:"`",returnEnd:!1,contains:[t.BACKSLASH_ESCAPE,k],subLanguage:"css"}},T={begin:".?gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[t.BACKSLASH_ESCAPE,k],subLanguage:"graphql"}},A={className:"string",begin:"`",end:"`",contains:[t.BACKSLASH_ESCAPE,k]},L={className:"comment",variants:[t.COMMENT(/\/\*\*(?!\/)/,"\\*/",{relevance:0,contains:[{begin:"(?=@[A-Za-z]+)",relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"},{className:"type",begin:"\\{",end:"\\}",excludeEnd:!0,excludeBegin:!0,relevance:0},{className:"variable",begin:l+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),t.C_BLOCK_COMMENT_MODE,t.C_LINE_COMMENT_MODE]},I=[t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,x,w,T,A,{match:/\$\d+/},b];k.contains=I.concat({begin:/\{/,end:/\}/,keywords:p,contains:["self"].concat(I)});const F=[].concat(L,k.contains),Y=F.concat([{begin:/(\s*)\(/,end:/\)/,keywords:p,contains:["self"].concat(F)}]),R={className:"params",begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:p,contains:Y},le={variants:[{match:[/class/,/\s+/,l,/\s+/,/extends/,/\s+/,i.concat(l,"(",i.concat(/\./,l),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,l],scope:{1:"keyword",3:"title.class"}}]},ae={relevance:0,match:i.either(/\bJSON/,/\b[A-Z][a-z]+([A-Z][a-z]*|\d)*/,/\b[A-Z]{2,}([A-Z][a-z]+|\d)+([A-Z][a-z]*)*/,/\b[A-Z]{2,}[a-z]+([A-Z][a-z]+|\d)*([A-Z][a-z]*)*/),className:"title.class",keywords:{_:[...Dm,...zm]}},he={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},B={variants:[{match:[/function/,/\s+/,l,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[R],illegal:/%/},ue={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function re(Q){return i.concat("(?!",Q.join("|"),")")}const Ae={match:i.concat(/\b/,re([...Lm,"super","import"].map(Q=>`${Q}\\s*\\(`)),l,i.lookahead(/\s*\(/)),className:"title.function",relevance:0},de={begin:i.concat(/\./,i.lookahead(i.concat(l,/(?![0-9A-Za-z$_(])/))),end:l,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},ne={match:[/get|set/,/\s+/,l,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},R]},Z="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+t.UNDERSCORE_IDENT_RE+")\\s*=>",$={match:[/const|var|let/,/\s+/,l,/\s*/,/=\s*/,/(async\s*)?/,i.lookahead(Z)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[R]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:p,exports:{PARAMS_CONTAINS:Y,CLASS_REFERENCE:ae},illegal:/#(?![$_A-z])/,contains:[t.SHEBANG({label:"shebang",binary:"node",relevance:5}),he,t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,x,w,T,A,L,{match:/\$\d+/},b,ae,{scope:"attr",match:l+i.lookahead(":"),relevance:0},$,{begin:"("+t.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[L,t.REGEXP_MODE,{className:"function",begin:Z,returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:t.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:p,contains:Y}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:s.begin,end:s.end},{match:d},{begin:c.begin,"on:begin":c.isTrulyOpeningTag,end:c.end}],subLanguage:"xml",contains:[{begin:c.begin,end:c.end,skip:!0,contains:["self"]}]}]},B,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+t.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[R,t.inherit(t.TITLE_MODE,{begin:l,className:"title.function"})]},{match:/\.\.\./,relevance:0},de,{match:"\\$"+l,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[R]},Ae,ue,le,ne,{match:/\$[(.]/}]}}function bE(t){const i=t.regex,r=gE(t),l=Xl,s=["any","void","number","boolean","string","object","never","symbol","bigint","unknown"],d={begin:[/namespace/,/\s+/,t.IDENT_RE],beginScope:{1:"keyword",3:"title.class"}},c={beginKeywords:"interface",end:/\{/,excludeEnd:!0,keywords:{keyword:"interface extends",built_in:s},contains:[r.exports.CLASS_REFERENCE]},p={className:"meta",relevance:10,begin:/^\s*['"]use strict['"]/},h=["type","interface","public","private","protected","implements","declare","abstract","readonly","enum","override","satisfies"],m={$pattern:Xl,keyword:Om.concat(h),literal:Rm,built_in:Bm.concat(s),"variable.language":Im},g={className:"meta",begin:"@"+l},b=(T,A,S)=>{const L=T.contains.findIndex(I=>I.label===A);if(L===-1)throw new Error("can not find mode to replace");T.contains.splice(L,1,S)};Object.assign(r.keywords,m),r.exports.PARAMS_CONTAINS.push(g);const k=r.contains.find(T=>T.scope==="attr"),x=Object.assign({},k,{match:i.concat(l,i.lookahead(/\s*\?:/))});r.exports.PARAMS_CONTAINS.push([r.exports.CLASS_REFERENCE,k,x]),r.contains=r.contains.concat([g,d,c,x]),b(r,"shebang",t.SHEBANG()),b(r,"use_strict",p);const w=r.contains.find(T=>T.label==="func.def");return w.relevance=0,Object.assign(r,{name:"TypeScript",aliases:["ts","tsx","mts","cts"]}),r}function yE(t){const i=t.regex,r={className:"string",begin:/"(""|[^/n])"C\b/},l={className:"string",begin:/"/,end:/"/,illegal:/\n/,contains:[{begin:/""/}]},s=/\d{1,2}\/\d{1,2}\/\d{4}/,d=/\d{4}-\d{1,2}-\d{1,2}/,c=/(\d|1[012])(:\d+){0,2} *(AM|PM)/,p=/\d{1,2}(:\d{1,2}){1,2}/,h={className:"literal",variants:[{begin:i.concat(/# */,i.either(d,s),/ *#/)},{begin:i.concat(/# */,p,/ *#/)},{begin:i.concat(/# */,c,/ *#/)},{begin:i.concat(/# */,i.either(d,s),/ +/,i.either(c,p),/ *#/)}]},m={className:"number",relevance:0,variants:[{begin:/\b\d[\d_]*((\.[\d_]+(E[+-]?[\d_]+)?)|(E[+-]?[\d_]+))[RFD@!#]?/},{begin:/\b\d[\d_]*((U?[SIL])|[%&])?/},{begin:/&H[\dA-F_]+((U?[SIL])|[%&])?/},{begin:/&O[0-7_]+((U?[SIL])|[%&])?/},{begin:/&B[01_]+((U?[SIL])|[%&])?/}]},g={className:"label",begin:/^\w+:/},b=t.COMMENT(/'''/,/$/,{contains:[{className:"doctag",begin:/<\/?/,end:/>/}]}),k=t.COMMENT(null,/$/,{variants:[{begin:/'/},{begin:/([\t ]|^)REM(?=\s)/}]});return{name:"Visual Basic .NET",aliases:["vb"],case_insensitive:!0,classNameAliases:{label:"symbol"},keywords:{keyword:"addhandler alias aggregate ansi as async assembly auto binary by byref byval call case catch class compare const continue custom declare default delegate dim distinct do each equals else elseif end enum erase error event exit explicit finally for friend from function get global goto group handles if implements imports in inherits interface into iterator join key let lib loop me mid module mustinherit mustoverride mybase myclass namespace narrowing new next notinheritable notoverridable of off on operator option optional order overloads overridable overrides paramarray partial preserve private property protected public raiseevent readonly redim removehandler resume return select set shadows shared skip static step stop structure strict sub synclock take text then throw to try unicode until using when where while widening with withevents writeonly yield",built_in:"addressof and andalso await directcast gettype getxmlnamespace is isfalse isnot istrue like mod nameof new not or orelse trycast typeof xor cbool cbyte cchar cdate cdbl cdec cint clng cobj csbyte cshort csng cstr cuint culng cushort",type:"boolean byte char date decimal double integer long object sbyte short single string uinteger ulong ushort",literal:"true false nothing"},illegal:"//|\\{|\\}|endif|gosub|variant|wend|^\\$ ",contains:[r,l,h,m,g,b,k,{className:"meta",begin:/[\t ]*#(const|disable|else|elseif|enable|end|externalsource|if|region)\b/,end:/$/,keywords:{keyword:"const disable else elseif enable end externalsource if region then"},contains:[k]}]}}function kE(t){t.regex;const i=t.COMMENT(/\(;/,/;\)/);i.contains.push("self");const r=t.COMMENT(/;;/,/$/),l=["anyfunc","block","br","br_if","br_table","call","call_indirect","data","drop","elem","else","end","export","func","global.get","global.set","local.get","local.set","local.tee","get_global","get_local","global","if","import","local","loop","memory","memory.grow","memory.size","module","mut","nop","offset","param","result","return","select","set_global","set_local","start","table","tee_local","then","type","unreachable"],s={begin:[/(?:func|call|call_indirect)/,/\s+/,/\$[^\s)]+/],className:{1:"keyword",3:"title.function"}},d={className:"variable",begin:/\$[\w_]+/},c={match:/(\((?!;)|\))+/,className:"punctuation",relevance:0},p={className:"number",relevance:0,match:/[+-]?\b(?:\d(?:_?\d)*(?:\.\d(?:_?\d)*)?(?:[eE][+-]?\d(?:_?\d)*)?|0x[\da-fA-F](?:_?[\da-fA-F])*(?:\.[\da-fA-F](?:_?[\da-fA-D])*)?(?:[pP][+-]?\d(?:_?\d)*)?)\b|\binf\b|\bnan(?::0x[\da-fA-F](?:_?[\da-fA-D])*)?\b/},h={match:/(i32|i64|f32|f64)(?!\.)/,className:"type"},m={className:"keyword",match:/\b(f32|f64|i32|i64)(?:\.(?:abs|add|and|ceil|clz|const|convert_[su]\/i(?:32|64)|copysign|ctz|demote\/f64|div(?:_[su])?|eqz?|extend_[su]\/i32|floor|ge(?:_[su])?|gt(?:_[su])?|le(?:_[su])?|load(?:(?:8|16|32)_[su])?|lt(?:_[su])?|max|min|mul|nearest|neg?|or|popcnt|promote\/f32|reinterpret\/[fi](?:32|64)|rem_[su]|rot[lr]|shl|shr_[su]|store(?:8|16|32)?|sqrt|sub|trunc(?:_[su]\/f(?:32|64))?|wrap\/i64|xor))\b/};return{name:"WebAssembly",keywords:{$pattern:/[\w.]+/,keyword:l},contains:[r,i,{match:[/(?:offset|align)/,/\s*/,/=/],className:{1:"keyword",3:"operator"}},d,c,s,t.QUOTE_STRING_MODE,h,m,p]}}function xE(t){const i=t.regex,r=i.concat(/[\p{L}_]/u,i.optional(/[\p{L}0-9_.-]*:/u),/[\p{L}0-9_.-]*/u),l=/[\p{L}0-9._:-]+/u,s={className:"symbol",begin:/&[a-z]+;|&#[0-9]+;|&#x[a-f0-9]+;/},d={begin:/\s/,contains:[{className:"keyword",begin:/#?[a-z_][a-z1-9_-]+/,illegal:/\n/}]},c=t.inherit(d,{begin:/\(/,end:/\)/}),p=t.inherit(t.APOS_STRING_MODE,{className:"string"}),h=t.inherit(t.QUOTE_STRING_MODE,{className:"string"}),m={endsWithParent:!0,illegal:/</,relevance:0,contains:[{className:"attr",begin:l,relevance:0},{begin:/=\s*/,relevance:0,contains:[{className:"string",endsParent:!0,variants:[{begin:/"/,end:/"/,contains:[s]},{begin:/'/,end:/'/,contains:[s]},{begin:/[^\s"'=<>`]+/}]}]}]};return{name:"HTML, XML",aliases:["html","xhtml","rss","atom","xjb","xsd","xsl","plist","wsf","svg"],case_insensitive:!0,unicodeRegex:!0,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,relevance:10,contains:[d,h,p,c,{begin:/\[/,end:/\]/,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,contains:[d,c,h,p]}]}]},t.COMMENT(/<!--/,/-->/,{relevance:10}),{begin:/<!\[CDATA\[/,end:/\]\]>/,relevance:10},s,{className:"meta",end:/\?>/,variants:[{begin:/<\?xml/,relevance:10,contains:[h]},{begin:/<\?[a-z][a-z0-9]+/}]},{className:"tag",begin:/<style(?=\s|>)/,end:/>/,keywords:{name:"style"},contains:[m],starts:{end:/<\/style>/,returnEnd:!0,subLanguage:["css","xml"]}},{className:"tag",begin:/<script(?=\s|>)/,end:/>/,keywords:{name:"script"},contains:[m],starts:{end:/<\/script>/,returnEnd:!0,subLanguage:["javascript","handlebars","xml"]}},{className:"tag",begin:/<>|<\/>/},{className:"tag",begin:i.concat(/</,i.lookahead(i.concat(r,i.either(/\/>/,/>/,/\s/)))),end:/\/?>/,contains:[{className:"name",begin:r,relevance:0,starts:m}]},{className:"tag",begin:i.concat(/<\//,i.lookahead(i.concat(r,/>/))),contains:[{className:"name",begin:r,relevance:0},{begin:/>/,relevance:0,endsParent:!0}]}]}}function vE(t){const i="true false yes no null",r="[\\w#;/?:@&=+$,.~*'()[\\]]+",l={className:"attr",variants:[{begin:/[\w*@][\w*@ :()\./-]*:(?=[ \t]|$)/},{begin:/"[\w*@][\w*@ :()\./-]*":(?=[ \t]|$)/},{begin:/'[\w*@][\w*@ :()\./-]*':(?=[ \t]|$)/}]},s={className:"template-variable",variants:[{begin:/\{\{/,end:/\}\}/},{begin:/%\{/,end:/\}/}]},d={className:"string",relevance:0,begin:/'/,end:/'/,contains:[{match:/''/,scope:"char.escape",relevance:0}]},c={className:"string",relevance:0,variants:[{begin:/"/,end:/"/},{begin:/\S+/}],contains:[t.BACKSLASH_ESCAPE,s]},p=t.inherit(c,{variants:[{begin:/'/,end:/'/,contains:[{begin:/''/,relevance:0}]},{begin:/"/,end:/"/},{begin:/[^\s,{}[\]]+/}]}),k={className:"number",begin:"\\b"+"[0-9]{4}(-[0-9][0-9]){0,2}"+"([Tt \\t][0-9][0-9]?(:[0-9][0-9]){2})?"+"(\\.[0-9]*)?"+"([ \\t])*(Z|[-+][0-9][0-9]?(:[0-9][0-9])?)?"+"\\b"},x={end:",",endsWithParent:!0,excludeEnd:!0,keywords:i,relevance:0},w={begin:/\{/,end:/\}/,contains:[x],illegal:"\\n",relevance:0},T={begin:"\\[",end:"\\]",contains:[x],illegal:"\\n",relevance:0},A=[l,{className:"meta",begin:"^---\\s*$",relevance:10},{className:"string",begin:"[\\|>]([1-9]?[+-])?[ ]*\\n( +)[^ ][^\\n]*\\n(\\2[^\\n]+\\n?)*"},{begin:"<%[%=-]?",end:"[%-]?%>",subLanguage:"ruby",excludeBegin:!0,excludeEnd:!0,relevance:0},{className:"type",begin:"!\\w+!"+r},{className:"type",begin:"!<"+r+">"},{className:"type",begin:"!"+r},{className:"type",begin:"!!"+r},{className:"meta",begin:"&"+t.UNDERSCORE_IDENT_RE+"$"},{className:"meta",begin:"\\*"+t.UNDERSCORE_IDENT_RE+"$"},{className:"bullet",begin:"-(?=[ ]|$)",relevance:0},t.HASH_COMMENT_MODE,{beginKeywords:i,keywords:{literal:i}},k,{className:"number",begin:t.C_NUMBER_RE+"\\b",relevance:0},w,T,d,c],S=[...A];return S.pop(),S.push(p),x.contains=S,{name:"YAML",case_insensitive:!0,aliases:["yml"],contains:A}}const _E={arduino:i_,bash:a_,c:r_,cpp:o_,csharp:l_,css:g_,diff:b_,go:y_,graphql:k_,ini:x_,java:v_,javascript:T_,json:A_,kotlin:C_,less:B_,lua:U_,makefile:q_,markdown:j_,objectivec:H_,perl:F_,php:P_,"php-template":G_,plaintext:Y_,python:V_,"python-repl":$_,r:K_,ruby:Z_,rust:Q_,scss:rE,shell:oE,sql:lE,swift:hE,typescript:bE,vbnet:yE,wasm:kE,xml:xE,yaml:vE};var du,Um;function EE(){if(Um)return du;Um=1;function t(O){return O instanceof Map?O.clear=O.delete=O.set=function(){throw new Error("map is read-only")}:O instanceof Set&&(O.add=O.clear=O.delete=function(){throw new Error("set is read-only")}),Object.freeze(O),Object.getOwnPropertyNames(O).forEach(J=>{const fe=O[J],Me=typeof fe;(Me==="object"||Me==="function")&&!Object.isFrozen(fe)&&t(fe)}),O}class i{constructor(J){J.data===void 0&&(J.data={}),this.data=J.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}}function r(O){return O.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;")}function l(O,...J){const fe=Object.create(null);for(const Me in O)fe[Me]=O[Me];return J.forEach(function(Me){for(const Ze in Me)fe[Ze]=Me[Ze]}),fe}const s="</span>",d=O=>!!O.scope,c=(O,{prefix:J})=>{if(O.startsWith("language:"))return O.replace("language:","language-");if(O.includes(".")){const fe=O.split(".");return[`${J}${fe.shift()}`,...fe.map((Me,Ze)=>`${Me}${"_".repeat(Ze+1)}`)].join(" ")}return`${J}${O}`};class p{constructor(J,fe){this.buffer="",this.classPrefix=fe.classPrefix,J.walk(this)}addText(J){this.buffer+=r(J)}openNode(J){if(!d(J))return;const fe=c(J.scope,{prefix:this.classPrefix});this.span(fe)}closeNode(J){d(J)&&(this.buffer+=s)}value(){return this.buffer}span(J){this.buffer+=`<span class="${J}">`}}const h=(O={})=>{const J={children:[]};return Object.assign(J,O),J};class m{constructor(){this.rootNode=h(),this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(J){this.top.children.push(J)}openNode(J){const fe=h({scope:J});this.add(fe),this.stack.push(fe)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(J){return this.constructor._walk(J,this.rootNode)}static _walk(J,fe){return typeof fe=="string"?J.addText(fe):fe.children&&(J.openNode(fe),fe.children.forEach(Me=>this._walk(J,Me)),J.closeNode(fe)),J}static _collapse(J){typeof J!="string"&&J.children&&(J.children.every(fe=>typeof fe=="string")?J.children=[J.children.join("")]:J.children.forEach(fe=>{m._collapse(fe)}))}}class g extends m{constructor(J){super(),this.options=J}addText(J){J!==""&&this.add(J)}startScope(J){this.openNode(J)}endScope(){this.closeNode()}__addSublanguage(J,fe){const Me=J.root;fe&&(Me.scope=`language:${fe}`),this.add(Me)}toHTML(){return new p(this,this.options).value()}finalize(){return this.closeAllNodes(),!0}}function b(O){return O?typeof O=="string"?O:O.source:null}function k(O){return T("(?=",O,")")}function x(O){return T("(?:",O,")*")}function w(O){return T("(?:",O,")?")}function T(...O){return O.map(fe=>b(fe)).join("")}function A(O){const J=O[O.length-1];return typeof J=="object"&&J.constructor===Object?(O.splice(O.length-1,1),J):{}}function S(...O){return"("+(A(O).capture?"":"?:")+O.map(Me=>b(Me)).join("|")+")"}function L(O){return new RegExp(O.toString()+"|").exec("").length-1}function I(O,J){const fe=O&&O.exec(J);return fe&&fe.index===0}const F=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function Y(O,{joinWith:J}){let fe=0;return O.map(Me=>{fe+=1;const Ze=fe;let lt=b(Me),_e="";for(;lt.length>0;){const ke=F.exec(lt);if(!ke){_e+=lt;break}_e+=lt.substring(0,ke.index),lt=lt.substring(ke.index+ke[0].length),ke[0][0]==="\\"&&ke[1]?_e+="\\"+String(Number(ke[1])+Ze):(_e+=ke[0],ke[0]==="("&&fe++)}return _e}).map(Me=>`(${Me})`).join(J)}const R=/\b\B/,le="[a-zA-Z]\\w*",ae="[a-zA-Z_]\\w*",he="\\b\\d+(\\.\\d+)?",B="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",ue="\\b(0b[01]+)",re="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",Ae=(O={})=>{const J=/^#![ ]*\//;return O.binary&&(O.begin=T(J,/.*\b/,O.binary,/\b.*/)),l({scope:"meta",begin:J,end:/$/,relevance:0,"on:begin":(fe,Me)=>{fe.index!==0&&Me.ignoreMatch()}},O)},de={begin:"\\\\[\\s\\S]",relevance:0},ne={scope:"string",begin:"'",end:"'",illegal:"\\n",contains:[de]},Z={scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[de]},$={begin:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/},Q=function(O,J,fe={}){const Me=l({scope:"comment",begin:O,end:J,contains:[]},fe);Me.contains.push({scope:"doctag",begin:"[ ]*(?=(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):)",end:/(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):/,excludeBegin:!0,relevance:0});const Ze=S("I","a","is","so","us","to","at","if","in","it","on",/[A-Za-z]+['](d|ve|re|ll|t|s|n)/,/[A-Za-z]+[-][a-z]+/,/[A-Za-z][a-z]{2,}/);return Me.contains.push({begin:T(/[ ]+/,"(",Ze,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),Me},ye=Q("//","$"),N=Q("/\\*","\\*/"),ze=Q("#","$"),C={scope:"number",begin:he,relevance:0},E={scope:"number",begin:B,relevance:0},ie={scope:"number",begin:ue,relevance:0},ge={scope:"regexp",begin:/\/(?=[^/\n]*\/)/,end:/\/[gimuy]*/,contains:[de,{begin:/\[/,end:/\]/,relevance:0,contains:[de]}]},ve={scope:"title",begin:le,relevance:0},W={scope:"title",begin:ae,relevance:0},be={begin:"\\.\\s*"+ae,relevance:0};var Fe=Object.freeze({__proto__:null,APOS_STRING_MODE:ne,BACKSLASH_ESCAPE:de,BINARY_NUMBER_MODE:ie,BINARY_NUMBER_RE:ue,COMMENT:Q,C_BLOCK_COMMENT_MODE:N,C_LINE_COMMENT_MODE:ye,C_NUMBER_MODE:E,C_NUMBER_RE:B,END_SAME_AS_BEGIN:function(O){return Object.assign(O,{"on:begin":(J,fe)=>{fe.data._beginMatch=J[1]},"on:end":(J,fe)=>{fe.data._beginMatch!==J[1]&&fe.ignoreMatch()}})},HASH_COMMENT_MODE:ze,IDENT_RE:le,MATCH_NOTHING_RE:R,METHOD_GUARD:be,NUMBER_MODE:C,NUMBER_RE:he,PHRASAL_WORDS_MODE:$,QUOTE_STRING_MODE:Z,REGEXP_MODE:ge,RE_STARTERS_RE:re,SHEBANG:Ae,TITLE_MODE:ve,UNDERSCORE_IDENT_RE:ae,UNDERSCORE_TITLE_MODE:W});function nn(O,J){O.input[O.index-1]==="."&&J.ignoreMatch()}function At(O,J){O.className!==void 0&&(O.scope=O.className,delete O.className)}function An(O,J){J&&O.beginKeywords&&(O.begin="\\b("+O.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",O.__beforeBegin=nn,O.keywords=O.keywords||O.beginKeywords,delete O.beginKeywords,O.relevance===void 0&&(O.relevance=0))}function qt(O,J){Array.isArray(O.illegal)&&(O.illegal=S(...O.illegal))}function an(O,J){if(O.match){if(O.begin||O.end)throw new Error("begin & end are not supported with match");O.begin=O.match,delete O.match}}function Ve(O,J){O.relevance===void 0&&(O.relevance=1)}const Qt=(O,J)=>{if(!O.beforeMatch)return;if(O.starts)throw new Error("beforeMatch cannot be used with starts");const fe=Object.assign({},O);Object.keys(O).forEach(Me=>{delete O[Me]}),O.keywords=fe.keywords,O.begin=T(fe.beforeMatch,k(fe.begin)),O.starts={relevance:0,contains:[Object.assign(fe,{endsParent:!0})]},O.relevance=0,delete fe.beforeMatch},Et=["of","and","for","in","not","or","if","then","parent","list","value"],Ln="keyword";function Fn(O,J,fe=Ln){const Me=Object.create(null);return typeof O=="string"?Ze(fe,O.split(" ")):Array.isArray(O)?Ze(fe,O):Object.keys(O).forEach(function(lt){Object.assign(Me,Fn(O[lt],J,lt))}),Me;function Ze(lt,_e){J&&(_e=_e.map(ke=>ke.toLowerCase())),_e.forEach(function(ke){const Le=ke.split("|");Me[Le[0]]=[lt,Ft(Le[0],Le[1])]})}}function Ft(O,J){return J?Number(J):Fi(O)?0:1}function Fi(O){return Et.includes(O.toLowerCase())}const ur={},ei=O=>{console.error(O)},Yt=(O,...J)=>{console.log(`WARN: ${O}`,...J)},U=(O,J)=>{ur[`${O}/${J}`]||(console.log(`Deprecated as of ${O}. ${J}`),ur[`${O}/${J}`]=!0)},ce=new Error;function xe(O,J,{key:fe}){let Me=0;const Ze=O[fe],lt={},_e={};for(let ke=1;ke<=J.length;ke++)_e[ke+Me]=Ze[ke],lt[ke+Me]=!0,Me+=L(J[ke-1]);O[fe]=_e,O[fe]._emit=lt,O[fe]._multi=!0}function Pe(O){if(Array.isArray(O.begin)){if(O.skip||O.excludeBegin||O.returnBegin)throw ei("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),ce;if(typeof O.beginScope!="object"||O.beginScope===null)throw ei("beginScope must be object"),ce;xe(O,O.begin,{key:"beginScope"}),O.begin=Y(O.begin,{joinWith:""})}}function ot(O){if(Array.isArray(O.end)){if(O.skip||O.excludeEnd||O.returnEnd)throw ei("skip, excludeEnd, returnEnd not compatible with endScope: {}"),ce;if(typeof O.endScope!="object"||O.endScope===null)throw ei("endScope must be object"),ce;xe(O,O.end,{key:"endScope"}),O.end=Y(O.end,{joinWith:""})}}function rn(O){O.scope&&typeof O.scope=="object"&&O.scope!==null&&(O.beginScope=O.scope,delete O.scope)}function dn(O){rn(O),typeof O.beginScope=="string"&&(O.beginScope={_wrap:O.beginScope}),typeof O.endScope=="string"&&(O.endScope={_wrap:O.endScope}),Pe(O),ot(O)}function Nn(O){function J(_e,ke){return new RegExp(b(_e),"m"+(O.case_insensitive?"i":"")+(O.unicodeRegex?"u":"")+(ke?"g":""))}class fe{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(ke,Le){Le.position=this.position++,this.matchIndexes[this.matchAt]=Le,this.regexes.push([Le,ke]),this.matchAt+=L(ke)+1}compile(){this.regexes.length===0&&(this.exec=()=>null);const ke=this.regexes.map(Le=>Le[1]);this.matcherRe=J(Y(ke,{joinWith:"|"}),!0),this.lastIndex=0}exec(ke){this.matcherRe.lastIndex=this.lastIndex;const Le=this.matcherRe.exec(ke);if(!Le)return null;const Ct=Le.findIndex((Pn,Gi)=>Gi>0&&Pn!==void 0),Je=this.matchIndexes[Ct];return Le.splice(0,Ct),Object.assign(Le,Je)}}class Me{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(ke){if(this.multiRegexes[ke])return this.multiRegexes[ke];const Le=new fe;return this.rules.slice(ke).forEach(([Ct,Je])=>Le.addRule(Ct,Je)),Le.compile(),this.multiRegexes[ke]=Le,Le}resumingScanAtSamePosition(){return this.regexIndex!==0}considerAll(){this.regexIndex=0}addRule(ke,Le){this.rules.push([ke,Le]),Le.type==="begin"&&this.count++}exec(ke){const Le=this.getMatcher(this.regexIndex);Le.lastIndex=this.lastIndex;let Ct=Le.exec(ke);if(this.resumingScanAtSamePosition()&&!(Ct&&Ct.index===this.lastIndex)){const Je=this.getMatcher(0);Je.lastIndex=this.lastIndex+1,Ct=Je.exec(ke)}return Ct&&(this.regexIndex+=Ct.position+1,this.regexIndex===this.count&&this.considerAll()),Ct}}function Ze(_e){const ke=new Me;return _e.contains.forEach(Le=>ke.addRule(Le.begin,{rule:Le,type:"begin"})),_e.terminatorEnd&&ke.addRule(_e.terminatorEnd,{type:"end"}),_e.illegal&&ke.addRule(_e.illegal,{type:"illegal"}),ke}function lt(_e,ke){const Le=_e;if(_e.isCompiled)return Le;[At,an,dn,Qt].forEach(Je=>Je(_e,ke)),O.compilerExtensions.forEach(Je=>Je(_e,ke)),_e.__beforeBegin=null,[An,qt,Ve].forEach(Je=>Je(_e,ke)),_e.isCompiled=!0;let Ct=null;return typeof _e.keywords=="object"&&_e.keywords.$pattern&&(_e.keywords=Object.assign({},_e.keywords),Ct=_e.keywords.$pattern,delete _e.keywords.$pattern),Ct=Ct||/\w+/,_e.keywords&&(_e.keywords=Fn(_e.keywords,O.case_insensitive)),Le.keywordPatternRe=J(Ct,!0),ke&&(_e.begin||(_e.begin=/\B|\b/),Le.beginRe=J(Le.begin),!_e.end&&!_e.endsWithParent&&(_e.end=/\B|\b/),_e.end&&(Le.endRe=J(Le.end)),Le.terminatorEnd=b(Le.end)||"",_e.endsWithParent&&ke.terminatorEnd&&(Le.terminatorEnd+=(_e.end?"|":"")+ke.terminatorEnd)),_e.illegal&&(Le.illegalRe=J(_e.illegal)),_e.contains||(_e.contains=[]),_e.contains=[].concat(..._e.contains.map(function(Je){return jt(Je==="self"?_e:Je)})),_e.contains.forEach(function(Je){lt(Je,Le)}),_e.starts&&lt(_e.starts,ke),Le.matcher=Ze(Le),Le}if(O.compilerExtensions||(O.compilerExtensions=[]),O.contains&&O.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return O.classNameAliases=l(O.classNameAliases||{}),lt(O)}function Cn(O){return O?O.endsWithParent||Cn(O.starts):!1}function jt(O){return O.variants&&!O.cachedVariants&&(O.cachedVariants=O.variants.map(function(J){return l(O,{variants:null},J)})),O.cachedVariants?O.cachedVariants:Cn(O)?l(O,{starts:O.starts?l(O.starts):null}):Object.isFrozen(O)?l(O):O}var Tt="11.11.1";class Nt extends Error{constructor(J,fe){super(J),this.name="HTMLInjectionError",this.html=fe}}const on=r,Vr=l,dr=Symbol("nomatch"),Pi=7,ia=function(O){const J=Object.create(null),fe=Object.create(null),Me=[];let Ze=!0;const lt="Could not find the language '{}', did you forget to load/include a language module?",_e={disableAutodetect:!0,name:"Plain text",contains:[]};let ke={ignoreUnescapedHTML:!1,throwUnescapedHTML:!1,noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",cssSelector:"pre code",languages:null,__emitter:g};function Le(oe){return ke.noHighlightRe.test(oe)}function Ct(oe){let Se=oe.className+" ";Se+=oe.parentNode?oe.parentNode.className:"";const Ke=ke.languageDetectRe.exec(Se);if(Ke){const ut=Mn(Ke[1]);return ut||(Yt(lt.replace("{}",Ke[1])),Yt("Falling back to no-highlight mode for this block.",oe)),ut?Ke[1]:"no-highlight"}return Se.split(/\s+/).find(ut=>Le(ut)||Mn(ut))}function Je(oe,Se,Ke){let ut="",It="";typeof Se=="object"?(ut=oe,Ke=Se.ignoreIllegals,It=Se.language):(U("10.7.0","highlight(lang, code, ...args) has been deprecated."),U("10.7.0",`Please use highlight(code, options) instead.
27
+ https://github.com/highlightjs/highlight.js/issues/2277`),It=oe,ut=Se),Ke===void 0&&(Ke=!0);const pt={code:ut,language:It};Ki("before:highlight",pt);const fn=pt.result?pt.result:Pn(pt.language,pt.code,Ke);return fn.code=pt.code,Ki("after:highlight",fn),fn}function Pn(oe,Se,Ke,ut){const It=Object.create(null);function pt(pe,K){return pe.keywords[K]}function fn(){if(!Ue.keywords){Ht.addText(dt);return}let pe=0;Ue.keywordPatternRe.lastIndex=0;let K=Ue.keywordPatternRe.exec(dt),Be="";for(;K;){Be+=dt.substring(pe,K.index);const Ge=pn.case_insensitive?K[0].toLowerCase():K[0],Xe=pt(Ue,Ge);if(Xe){const[sn,Oi]=Xe;if(Ht.addText(Be),Be="",It[Ge]=(It[Ge]||0)+1,It[Ge]<=Pi&&(Ra+=Oi),sn.startsWith("_"))Be+=K[0];else{const br=pn.classNameAliases[sn]||sn;Ot(K[0],br)}}else Be+=K[0];pe=Ue.keywordPatternRe.lastIndex,K=Ue.keywordPatternRe.exec(dt)}Be+=dt.substring(pe),Ht.addText(Be)}function yi(){if(dt==="")return;let pe=null;if(typeof Ue.subLanguage=="string"){if(!J[Ue.subLanguage]){Ht.addText(dt);return}pe=Pn(Ue.subLanguage,dt,!0,Mi[Ue.subLanguage]),Mi[Ue.subLanguage]=pe._top}else pe=Ma(dt,Ue.subLanguage.length?Ue.subLanguage:null);Ue.relevance>0&&(Ra+=pe.relevance),Ht.__addSublanguage(pe._emitter,pe.language)}function Mt(){Ue.subLanguage!=null?yi():fn(),dt=""}function Ot(pe,K){pe!==""&&(Ht.startScope(K),Ht.addText(pe),Ht.endScope())}function mr(pe,K){let Be=1;const Ge=K.length-1;for(;Be<=Ge;){if(!pe._emit[Be]){Be++;continue}const Xe=pn.classNameAliases[pe[Be]]||pe[Be],sn=K[Be];Xe?Ot(sn,Xe):(dt=sn,fn(),dt=""),Be++}}function hr(pe,K){return pe.scope&&typeof pe.scope=="string"&&Ht.openNode(pn.classNameAliases[pe.scope]||pe.scope),pe.beginScope&&(pe.beginScope._wrap?(Ot(dt,pn.classNameAliases[pe.beginScope._wrap]||pe.beginScope._wrap),dt=""):pe.beginScope._multi&&(mr(pe.beginScope,K),dt="")),Ue=Object.create(pe,{parent:{value:Ue}}),Ue}function Zi(pe,K,Be){let Ge=I(pe.endRe,Be);if(Ge){if(pe["on:end"]){const Xe=new i(pe);pe["on:end"](K,Xe),Xe.isMatchIgnored&&(Ge=!1)}if(Ge){for(;pe.endsParent&&pe.parent;)pe=pe.parent;return pe}}if(pe.endsWithParent)return Zi(pe.parent,K,Be)}function $r(pe){return Ue.matcher.regexIndex===0?(dt+=pe[0],1):(Da=!0,0)}function Oa(pe){const K=pe[0],Be=pe.rule,Ge=new i(Be),Xe=[Be.__beforeBegin,Be["on:begin"]];for(const sn of Xe)if(sn&&(sn(pe,Ge),Ge.isMatchIgnored))return $r(K);return Be.skip?dt+=K:(Be.excludeBegin&&(dt+=K),Mt(),!Be.returnBegin&&!Be.excludeBegin&&(dt=K)),hr(Be,pe),Be.returnBegin?0:K.length}function Vo(pe){const K=pe[0],Be=Se.substring(pe.index),Ge=Zi(Ue,pe,Be);if(!Ge)return dr;const Xe=Ue;Ue.endScope&&Ue.endScope._wrap?(Mt(),Ot(K,Ue.endScope._wrap)):Ue.endScope&&Ue.endScope._multi?(Mt(),mr(Ue.endScope,pe)):Xe.skip?dt+=K:(Xe.returnEnd||Xe.excludeEnd||(dt+=K),Mt(),Xe.excludeEnd&&(dt=K));do Ue.scope&&Ht.closeNode(),!Ue.skip&&!Ue.subLanguage&&(Ra+=Ue.relevance),Ue=Ue.parent;while(Ue!==Ge.parent);return Ge.starts&&hr(Ge.starts,pe),Xe.returnEnd?0:K.length}function On(){const pe=[];for(let K=Ue;K!==pn;K=K.parent)K.scope&&pe.unshift(K.scope);pe.forEach(K=>Ht.openNode(K))}let Qi={};function oa(pe,K){const Be=K&&K[0];if(dt+=pe,Be==null)return Mt(),0;if(Qi.type==="begin"&&K.type==="end"&&Qi.index===K.index&&Be===""){if(dt+=Se.slice(K.index,K.index+1),!Ze){const Ge=new Error(`0 width match regex (${oe})`);throw Ge.languageName=oe,Ge.badRule=Qi.rule,Ge}return 1}if(Qi=K,K.type==="begin")return Oa(K);if(K.type==="illegal"&&!Ke){const Ge=new Error('Illegal lexeme "'+Be+'" for mode "'+(Ue.scope||"<unnamed>")+'"');throw Ge.mode=Ue,Ge}else if(K.type==="end"){const Ge=Vo(K);if(Ge!==dr)return Ge}if(K.type==="illegal"&&Be==="")return dt+=`
28
+ `,1;if(gr>1e5&&gr>K.index*3)throw new Error("potential infinite loop, way more iterations than matches");return dt+=Be,Be.length}const pn=Mn(oe);if(!pn)throw ei(lt.replace("{}",oe)),new Error('Unknown language: "'+oe+'"');const Ci=Nn(pn);let ni="",Ue=ut||Ci;const Mi={},Ht=new ke.__emitter(ke);On();let dt="",Ra=0,mt=0,gr=0,Da=!1;try{if(pn.__emitTokens)pn.__emitTokens(Se,Ht);else{for(Ue.matcher.considerAll();;){gr++,Da?Da=!1:Ue.matcher.considerAll(),Ue.matcher.lastIndex=mt;const pe=Ue.matcher.exec(Se);if(!pe)break;const K=Se.substring(mt,pe.index),Be=oa(K,pe);mt=pe.index+Be}oa(Se.substring(mt))}return Ht.finalize(),ni=Ht.toHTML(),{language:oe,value:ni,relevance:Ra,illegal:!1,_emitter:Ht,_top:Ue}}catch(pe){if(pe.message&&pe.message.includes("Illegal"))return{language:oe,value:on(Se),illegal:!0,relevance:0,_illegalBy:{message:pe.message,index:mt,context:Se.slice(mt-100,mt+100),mode:pe.mode,resultSoFar:ni},_emitter:Ht};if(Ze)return{language:oe,value:on(Se),illegal:!1,relevance:0,errorRaised:pe,_emitter:Ht,_top:Ue};throw pe}}function Gi(oe){const Se={value:on(oe),illegal:!1,relevance:0,_top:_e,_emitter:new ke.__emitter(ke)};return Se._emitter.addText(oe),Se}function Ma(oe,Se){Se=Se||ke.languages||Object.keys(J);const Ke=Gi(oe),ut=Se.filter(Mn).filter(Gn).map(Mt=>Pn(Mt,oe,!1));ut.unshift(Ke);const It=ut.sort((Mt,Ot)=>{if(Mt.relevance!==Ot.relevance)return Ot.relevance-Mt.relevance;if(Mt.language&&Ot.language){if(Mn(Mt.language).supersetOf===Ot.language)return 1;if(Mn(Ot.language).supersetOf===Mt.language)return-1}return 0}),[pt,fn]=It,yi=pt;return yi.secondBest=fn,yi}function fr(oe,Se,Ke){const ut=Se&&fe[Se]||Ke;oe.classList.add("hljs"),oe.classList.add(`language-${ut}`)}function In(oe){let Se=null;const Ke=Ct(oe);if(Le(Ke))return;if(Ki("before:highlightElement",{el:oe,language:Ke}),oe.dataset.highlighted){console.log("Element previously highlighted. To highlight again, first unset `dataset.highlighted`.",oe);return}if(oe.children.length>0&&(ke.ignoreUnescapedHTML||(console.warn("One of your code blocks includes unescaped HTML. This is a potentially serious security risk."),console.warn("https://github.com/highlightjs/highlight.js/wiki/security"),console.warn("The element with unescaped HTML:"),console.warn(oe)),ke.throwUnescapedHTML))throw new Nt("One of your code blocks includes unescaped HTML.",oe.innerHTML);Se=oe;const ut=Se.textContent,It=Ke?Je(ut,{language:Ke,ignoreIllegals:!0}):Ma(ut);oe.innerHTML=It.value,oe.dataset.highlighted="yes",fr(oe,Ke,It.language),oe.result={language:It.language,re:It.relevance,relevance:It.relevance},It.secondBest&&(oe.secondBest={language:It.secondBest.language,relevance:It.secondBest.relevance}),Ki("after:highlightElement",{el:oe,result:It,text:ut})}function zt(oe){ke=Vr(ke,oe)}const ln=()=>{Vi(),U("10.6.0","initHighlighting() deprecated. Use highlightAll() now.")};function bi(){Vi(),U("10.6.0","initHighlightingOnLoad() deprecated. Use highlightAll() now.")}let Yi=!1;function Vi(){function oe(){Vi()}if(document.readyState==="loading"){Yi||window.addEventListener("DOMContentLoaded",oe,!1),Yi=!0;return}document.querySelectorAll(ke.cssSelector).forEach(In)}function $i(oe,Se){let Ke=null;try{Ke=Se(O)}catch(ut){if(ei("Language definition for '{}' could not be registered.".replace("{}",oe)),Ze)ei(ut);else throw ut;Ke=_e}Ke.name||(Ke.name=oe),J[oe]=Ke,Ke.rawDefinition=Se.bind(null,O),Ke.aliases&&Ni(Ke.aliases,{languageName:oe})}function aa(oe){delete J[oe];for(const Se of Object.keys(fe))fe[Se]===oe&&delete fe[Se]}function Bn(){return Object.keys(J)}function Mn(oe){return oe=(oe||"").toLowerCase(),J[oe]||J[fe[oe]]}function Ni(oe,{languageName:Se}){typeof oe=="string"&&(oe=[oe]),oe.forEach(Ke=>{fe[Ke.toLowerCase()]=Se})}function Gn(oe){const Se=Mn(oe);return Se&&!Se.disableAutodetect}function ra(oe){oe["before:highlightBlock"]&&!oe["before:highlightElement"]&&(oe["before:highlightElement"]=Se=>{oe["before:highlightBlock"](Object.assign({block:Se.el},Se))}),oe["after:highlightBlock"]&&!oe["after:highlightElement"]&&(oe["after:highlightElement"]=Se=>{oe["after:highlightBlock"](Object.assign({block:Se.el},Se))})}function ti(oe){ra(oe),Me.push(oe)}function Lt(oe){const Se=Me.indexOf(oe);Se!==-1&&Me.splice(Se,1)}function Ki(oe,Se){const Ke=oe;Me.forEach(function(ut){ut[Ke]&&ut[Ke](Se)})}function pr(oe){return U("10.7.0","highlightBlock will be removed entirely in v12.0"),U("10.7.0","Please use highlightElement now."),In(oe)}Object.assign(O,{highlight:Je,highlightAuto:Ma,highlightAll:Vi,highlightElement:In,highlightBlock:pr,configure:zt,initHighlighting:ln,initHighlightingOnLoad:bi,registerLanguage:$i,unregisterLanguage:aa,listLanguages:Bn,getLanguage:Mn,registerAliases:Ni,autoDetection:Gn,inherit:Vr,addPlugin:ti,removePlugin:Lt}),O.debugMode=function(){Ze=!1},O.safeMode=function(){Ze=!0},O.versionString=Tt,O.regex={concat:T,lookahead:k,either:S,optional:w,anyNumberOfTimes:x};for(const oe in Fe)typeof Fe[oe]=="object"&&t(Fe[oe]);return Object.assign(O,Fe),O},bn=ia({});return bn.newInstance=()=>ia({}),du=bn,bn.HighlightJS=bn,bn.default=bn,du}var wE=EE();const SE=hc(wE),qm={},TE="hljs-";function AE(t){const i=SE.newInstance();return t&&d(t),{highlight:r,highlightAuto:l,listLanguages:s,register:d,registerAlias:c,registered:p};function r(h,m,g){const b=g||qm,k=typeof b.prefix=="string"?b.prefix:TE;if(!i.getLanguage(h))throw new Error("Unknown language: `"+h+"` is not registered");i.configure({__emitter:NE,classPrefix:k});const x=i.highlight(m,{ignoreIllegals:!0,language:h});if(x.errorRaised)throw new Error("Could not highlight with `Highlight.js`",{cause:x.errorRaised});const w=x._emitter.root,T=w.data;return T.language=x.language,T.relevance=x.relevance,w}function l(h,m){const b=(m||qm).subset||s();let k=-1,x=0,w;for(;++k<b.length;){const T=b[k];if(!i.getLanguage(T))continue;const A=r(T,h,m);A.data&&A.data.relevance!==void 0&&A.data.relevance>x&&(x=A.data.relevance,w=A)}return w||{type:"root",children:[],data:{language:void 0,relevance:x}}}function s(){return i.listLanguages()}function d(h,m){if(typeof h=="string")i.registerLanguage(h,m);else{let g;for(g in h)Object.hasOwn(h,g)&&i.registerLanguage(g,h[g])}}function c(h,m){if(typeof h=="string")i.registerAliases(typeof m=="string"?m:[...m],{languageName:h});else{let g;for(g in h)if(Object.hasOwn(h,g)){const b=h[g];i.registerAliases(typeof b=="string"?b:[...b],{languageName:g})}}}function p(h){return!!i.getLanguage(h)}}class NE{constructor(i){this.options=i,this.root={type:"root",children:[],data:{language:void 0,relevance:0}},this.stack=[this.root]}addText(i){if(i==="")return;const r=this.stack[this.stack.length-1],l=r.children[r.children.length-1];l&&l.type==="text"?l.value+=i:r.children.push({type:"text",value:i})}startScope(i){this.openNode(String(i))}endScope(){this.closeNode()}__addSublanguage(i,r){const l=this.stack[this.stack.length-1],s=i.root.children;r?l.children.push({type:"element",tagName:"span",properties:{className:[r]},children:s}):l.children.push(...s)}openNode(i){const r=this,l=i.split(".").map(function(c,p){return p?c+"_".repeat(p):r.options.classPrefix+c}),s=this.stack[this.stack.length-1],d={type:"element",tagName:"span",properties:{className:l},children:[]};s.children.push(d),this.stack.push(d)}closeNode(){this.stack.pop()}finalize(){}toHTML(){return""}}const CE={};function ME(t){const i=t||CE,r=i.aliases,l=i.detect||!1,s=i.languages||_E,d=i.plainText,c=i.prefix,p=i.subset;let h="hljs";const m=AE(s);if(r&&m.registerAlias(r),c){const g=c.indexOf("-");h=g===-1?c:c.slice(0,g)}return function(g,b){Pl(g,"element",function(k,x,w){if(k.tagName!=="code"||!w||w.type!=="element"||w.tagName!=="pre")return;const T=OE(k);if(T===!1||!T&&!l||T&&d&&d.includes(T))return;Array.isArray(k.properties.className)||(k.properties.className=[]),k.properties.className.includes(h)||k.properties.className.unshift(h);const A=Z1(k,{whitespace:"pre"});let S;try{S=T?m.highlight(T,A,{prefix:c}):m.highlightAuto(A,{prefix:c,subset:p})}catch(L){const I=L;if(T&&/Unknown language/.test(I.message)){b.message("Cannot highlight as `"+T+"`, it’s not registered",{ancestors:[w,k],cause:I,place:k.position,ruleId:"missing-language",source:"rehype-highlight"});return}throw I}!T&&S.data&&S.data.language&&k.properties.className.push("language-"+S.data.language),S.children.length>0&&(k.children=S.children)})}}function OE(t){const i=t.properties.className;let r=-1;if(!Array.isArray(i))return;let l;for(;++r<i.length;){const s=String(i[r]);if(s==="no-highlight"||s==="nohighlight")return!1;!l&&s.slice(0,5)==="lang-"&&(l=s.slice(5)),!l&&s.slice(0,9)==="language-"&&(l=s.slice(9))}return l}function jm(t,i){const r=String(t);if(typeof i!="string")throw new TypeError("Expected character");let l=0,s=r.indexOf(i);for(;s!==-1;)l++,s=r.indexOf(i,s+i.length);return l}function RE(t){if(typeof t!="string")throw new TypeError("Expected a string");return t.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function DE(t,i,r){const s=qo((r||{}).ignore||[]),d=zE(i);let c=-1;for(;++c<d.length;)Qp(t,"text",p);function p(m,g){let b=-1,k;for(;++b<g.length;){const x=g[b],w=k?k.children:void 0;if(s(x,w?w.indexOf(x):void 0,k))return;k=x}if(k)return h(m,g)}function h(m,g){const b=g[g.length-1],k=d[c][0],x=d[c][1];let w=0;const A=b.children.indexOf(m);let S=!1,L=[];k.lastIndex=0;let I=k.exec(m.value);for(;I;){const F=I.index,Y={index:I.index,input:I.input,stack:[...g,m]};let R=x(...I,Y);if(typeof R=="string"&&(R=R.length>0?{type:"text",value:R}:void 0),R===!1?k.lastIndex=F+1:(w!==F&&L.push({type:"text",value:m.value.slice(w,F)}),Array.isArray(R)?L.push(...R):R&&L.push(R),w=F+I[0].length,S=!0),!k.global)break;I=k.exec(m.value)}return S?(w<m.value.length&&L.push({type:"text",value:m.value.slice(w)}),b.children.splice(A,1,...L)):L=[m],A+L.length}}function zE(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 l=-1;for(;++l<r.length;){const s=r[l];i.push([LE(s[0]),IE(s[1])])}return i}function LE(t){return typeof t=="string"?new RegExp(RE(t),"g"):t}function IE(t){return typeof t=="function"?t:function(){return t}}const fu="phrasing",pu=["autolink","link","image","label"];function BE(){return{transforms:[GE],enter:{literalAutolink:qE,literalAutolinkEmail:mu,literalAutolinkHttp:mu,literalAutolinkWww:mu},exit:{literalAutolink:PE,literalAutolinkEmail:FE,literalAutolinkHttp:jE,literalAutolinkWww:HE}}}function UE(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:fu,notInConstruct:pu},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:fu,notInConstruct:pu},{character:":",before:"[ps]",after:"\\/",inConstruct:fu,notInConstruct:pu}]}}function qE(t){this.enter({type:"link",title:null,url:"",children:[]},t)}function mu(t){this.config.enter.autolinkProtocol.call(this,t)}function jE(t){this.config.exit.autolinkProtocol.call(this,t)}function HE(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 FE(t){this.config.exit.autolinkEmail.call(this,t)}function PE(t){this.exit(t)}function GE(t){DE(t,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,YE],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),VE]],{ignore:["link","linkReference"]})}function YE(t,i,r,l,s){let d="";if(!Hm(s)||(/^w/i.test(i)&&(r=i+r,i="",d="http://"),!$E(r)))return!1;const c=KE(r+l);if(!c[0])return!1;const p={type:"link",title:null,url:d+i+c[0],children:[{type:"text",value:i+c[0]}]};return c[1]?[p,{type:"text",value:c[1]}]:p}function VE(t,i,r,l){return!Hm(l,!0)||/[-\d_]$/.test(r)?!1:{type:"link",title:null,url:"mailto:"+i+"@"+r,children:[{type:"text",value:i+"@"+r}]}}function $E(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 KE(t){const i=/[!"&'),.:;<>?\]}]+$/.exec(t);if(!i)return[t,void 0];t=t.slice(0,i.index);let r=i[0],l=r.indexOf(")");const s=jm(t,"(");let d=jm(t,")");for(;l!==-1&&s>d;)t+=r.slice(0,l+1),r=r.slice(l+1),l=r.indexOf(")"),d++;return[t,r]}function Hm(t,i){const r=t.input.charCodeAt(t.index-1);return(t.index===0||or(r)||zl(r))&&(!i||r!==47)}Fm.peek=iw;function ZE(){this.buffer()}function QE(t){this.enter({type:"footnoteReference",identifier:"",label:""},t)}function XE(){this.buffer()}function WE(t){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},t)}function JE(t){const i=this.resume(),r=this.stack[this.stack.length-1];r.type,r.identifier=Ai(this.sliceSerialize(t)).toLowerCase(),r.label=i}function ew(t){this.exit(t)}function tw(t){const i=this.resume(),r=this.stack[this.stack.length-1];r.type,r.identifier=Ai(this.sliceSerialize(t)).toLowerCase(),r.label=i}function nw(t){this.exit(t)}function iw(){return"["}function Fm(t,i,r,l){const s=r.createTracker(l);let d=s.move("[^");const c=r.enter("footnoteReference"),p=r.enter("reference");return d+=s.move(r.safe(r.associationId(t),{after:"]",before:d})),p(),c(),d+=s.move("]"),d}function aw(){return{enter:{gfmFootnoteCallString:ZE,gfmFootnoteCall:QE,gfmFootnoteDefinitionLabelString:XE,gfmFootnoteDefinition:WE},exit:{gfmFootnoteCallString:JE,gfmFootnoteCall:ew,gfmFootnoteDefinitionLabelString:tw,gfmFootnoteDefinition:nw}}}function rw(t){let i=!1;return t&&t.firstLineBlank&&(i=!0),{handlers:{footnoteDefinition:r,footnoteReference:Fm},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function r(l,s,d,c){const p=d.createTracker(c);let h=p.move("[^");const m=d.enter("footnoteDefinition"),g=d.enter("label");return h+=p.move(d.safe(d.associationId(l),{before:h,after:"]"})),g(),h+=p.move("]:"),l.children&&l.children.length>0&&(p.shift(4),h+=p.move((i?`
29
+ `:" ")+d.indentLines(d.containerFlow(l,p.current()),i?Pm:ow))),m(),h}}function ow(t,i,r){return i===0?t:Pm(t,i,r)}function Pm(t,i,r){return(r?"":" ")+t}const lw=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];Gm.peek=fw;function sw(){return{canContainEols:["delete"],enter:{strikethrough:uw},exit:{strikethrough:dw}}}function cw(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:lw}],handlers:{delete:Gm}}}function uw(t){this.enter({type:"delete",children:[]},t)}function dw(t){this.exit(t)}function Gm(t,i,r,l){const s=r.createTracker(l),d=r.enter("strikethrough");let c=s.move("~~");return c+=r.containerPhrasing(t,{...s.current(),before:c,after:"~"}),c+=s.move("~~"),d(),c}function fw(){return"~"}function pw(t){return t.length}function mw(t,i){const r=i||{},l=(r.align||[]).concat(),s=r.stringLength||pw,d=[],c=[],p=[],h=[];let m=0,g=-1;for(;++g<t.length;){const T=[],A=[];let S=-1;for(t[g].length>m&&(m=t[g].length);++S<t[g].length;){const L=hw(t[g][S]);if(r.alignDelimiters!==!1){const I=s(L);A[S]=I,(h[S]===void 0||I>h[S])&&(h[S]=I)}T.push(L)}c[g]=T,p[g]=A}let b=-1;if(typeof l=="object"&&"length"in l)for(;++b<m;)d[b]=Ym(l[b]);else{const T=Ym(l);for(;++b<m;)d[b]=T}b=-1;const k=[],x=[];for(;++b<m;){const T=d[b];let A="",S="";T===99?(A=":",S=":"):T===108?A=":":T===114&&(S=":");let L=r.alignDelimiters===!1?1:Math.max(1,h[b]-A.length-S.length);const I=A+"-".repeat(L)+S;r.alignDelimiters!==!1&&(L=A.length+L+S.length,L>h[b]&&(h[b]=L),x[b]=L),k[b]=I}c.splice(1,0,k),p.splice(1,0,x),g=-1;const w=[];for(;++g<c.length;){const T=c[g],A=p[g];b=-1;const S=[];for(;++b<m;){const L=T[b]||"";let I="",F="";if(r.alignDelimiters!==!1){const Y=h[b]-(A[b]||0),R=d[b];R===114?I=" ".repeat(Y):R===99?Y%2?(I=" ".repeat(Y/2+.5),F=" ".repeat(Y/2-.5)):(I=" ".repeat(Y/2),F=I):F=" ".repeat(Y)}r.delimiterStart!==!1&&!b&&S.push("|"),r.padding!==!1&&!(r.alignDelimiters===!1&&L==="")&&(r.delimiterStart!==!1||b)&&S.push(" "),r.alignDelimiters!==!1&&S.push(I),S.push(L),r.alignDelimiters!==!1&&S.push(F),r.padding!==!1&&S.push(" "),(r.delimiterEnd!==!1||b!==m-1)&&S.push("|")}w.push(r.delimiterEnd===!1?S.join("").replace(/ +$/,""):S.join(""))}return w.join(`
30
+ `)}function hw(t){return t==null?"":String(t)}function Ym(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 gw(t,i,r,l){const s=r.enter("blockquote"),d=r.createTracker(l);d.move("> "),d.shift(2);const c=r.indentLines(r.containerFlow(t,d.current()),bw);return s(),c}function bw(t,i,r){return">"+(r?"":" ")+t}function yw(t,i){return Vm(t,i.inConstruct,!0)&&!Vm(t,i.notInConstruct,!1)}function Vm(t,i,r){if(typeof i=="string"&&(i=[i]),!i||i.length===0)return r;let l=-1;for(;++l<i.length;)if(t.includes(i[l]))return!0;return!1}function $m(t,i,r,l){let s=-1;for(;++s<r.unsafe.length;)if(r.unsafe[s].character===`
31
+ `&&yw(r.stack,r.unsafe[s]))return/[ \t]/.test(l.before)?"":" ";return`\\
32
+ `}function kw(t,i){const r=String(t);let l=r.indexOf(i),s=l,d=0,c=0;if(typeof i!="string")throw new TypeError("Expected substring");for(;l!==-1;)l===s?++d>c&&(c=d):d=1,s=l+i.length,l=r.indexOf(i,s);return c}function xw(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 vw(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 _w(t,i,r,l){const s=vw(r),d=t.value||"",c=s==="`"?"GraveAccent":"Tilde";if(xw(t,r)){const b=r.enter("codeIndented"),k=r.indentLines(d,Ew);return b(),k}const p=r.createTracker(l),h=s.repeat(Math.max(kw(d,s)+1,3)),m=r.enter("codeFenced");let g=p.move(h);if(t.lang){const b=r.enter(`codeFencedLang${c}`);g+=p.move(r.safe(t.lang,{before:g,after:" ",encode:["`"],...p.current()})),b()}if(t.lang&&t.meta){const b=r.enter(`codeFencedMeta${c}`);g+=p.move(" "),g+=p.move(r.safe(t.meta,{before:g,after:`
33
+ `,encode:["`"],...p.current()})),b()}return g+=p.move(`
34
+ `),d&&(g+=p.move(d+`
35
+ `)),g+=p.move(h),m(),g}function Ew(t,i,r){return(r?"":" ")+t}function hu(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 ww(t,i,r,l){const s=hu(r),d=s==='"'?"Quote":"Apostrophe",c=r.enter("definition");let p=r.enter("label");const h=r.createTracker(l);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?" ":`
36
+ `,...h.current()}))),p(),t.title&&(p=r.enter(`title${d}`),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 Sw(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 Fo(t){return"&#x"+t.toString(16).toUpperCase()+";"}function Wl(t,i,r){const l=jr(t),s=jr(i);return l===void 0?s===void 0?r==="_"?{inside:!0,outside:!0}:{inside:!1,outside:!1}:s===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:l===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}}Km.peek=Tw;function Km(t,i,r,l){const s=Sw(r),d=r.enter("emphasis"),c=r.createTracker(l),p=c.move(s);let h=c.move(r.containerPhrasing(t,{after:s,before:p,...c.current()}));const m=h.charCodeAt(0),g=Wl(l.before.charCodeAt(l.before.length-1),m,s);g.inside&&(h=Fo(m)+h.slice(1));const b=h.charCodeAt(h.length-1),k=Wl(l.after.charCodeAt(0),b,s);k.inside&&(h=h.slice(0,-1)+Fo(b));const x=c.move(s);return d(),r.attentionEncodeSurroundingInfo={after:k.outside,before:g.outside},p+h+x}function Tw(t,i,r){return r.options.emphasis||"*"}function Aw(t,i){let r=!1;return Pl(t,function(l){if("value"in l&&/\r?\n|\r/.test(l.value)||l.type==="break")return r=!0,$c}),!!((!t.depth||t.depth<3)&&Ic(t)&&(i.options.setext||r))}function Nw(t,i,r,l){const s=Math.max(Math.min(6,t.depth||1),1),d=r.createTracker(l);if(Aw(t,r)){const g=r.enter("headingSetext"),b=r.enter("phrasing"),k=r.containerPhrasing(t,{...d.current(),before:`
37
37
  `,after:`
38
- `});return h(),b(),v+`
39
- `+(s===1?"=":"-").repeat(v.length-(Math.max(v.lastIndexOf("\r"),v.lastIndexOf(`
40
- `))+1))}const u="#".repeat(s),g=r.enter("headingAtx"),m=r.enter("phrasing");f.move(u+" ");let p=r.containerPhrasing(n,{before:"# ",after:`
41
- `,...f.current()});return/^[\t ]/.test(p)&&(p=nl(p.charCodeAt(0))+p.slice(1)),p=p?u+" "+p:u,r.options.closeAtx&&(p+=" "+u),m(),g(),p}ag.peek=Ax;function ag(n){return n.value||""}function Ax(){return"<"}rg.peek=Nx;function rg(n,a,r,o){const s=Rc(r),f=s==='"'?"Quote":"Apostrophe",u=r.enter("image");let g=r.enter("label");const m=r.createTracker(o);let p=m.move("![");return p+=m.move(r.safe(n.alt,{before:p,after:"]",...m.current()})),p+=m.move("]("),g(),!n.url&&n.title||/[\0- \u007F]/.test(n.url)?(g=r.enter("destinationLiteral"),p+=m.move("<"),p+=m.move(r.safe(n.url,{before:p,after:">",...m.current()})),p+=m.move(">")):(g=r.enter("destinationRaw"),p+=m.move(r.safe(n.url,{before:p,after:n.title?" ":")",...m.current()}))),g(),n.title&&(g=r.enter(`title${f}`),p+=m.move(" "+s),p+=m.move(r.safe(n.title,{before:p,after:s,...m.current()})),p+=m.move(s),g()),p+=m.move(")"),u(),p}function Nx(){return"!"}lg.peek=Cx;function lg(n,a,r,o){const s=n.referenceType,f=r.enter("imageReference");let u=r.enter("label");const g=r.createTracker(o);let m=g.move("![");const p=r.safe(n.alt,{before:m,after:"]",...g.current()});m+=g.move(p+"]["),u();const b=r.stack;r.stack=[],u=r.enter("reference");const h=r.safe(r.associationId(n),{before:m,after:"]",...g.current()});return u(),r.stack=b,f(),s==="full"||!p||p!==h?m+=g.move(h+"]"):s==="shortcut"?m=m.slice(0,-1):m+=g.move("]"),m}function Cx(){return"!"}og.peek=Ox;function og(n,a,r){let o=n.value||"",s="`",f=-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+" ");++f<r.unsafe.length;){const u=r.unsafe[f],g=r.compilePattern(u);let m;if(u.atBreak)for(;m=g.exec(o);){let p=m.index;o.charCodeAt(p)===10&&o.charCodeAt(p-1)===13&&p--,o=o.slice(0,p)+" "+o.slice(m.index+1)}}return s+o+s}function Ox(){return"`"}function sg(n,a){const r=Ws(n);return!!(!a.options.resourceLink&&n.url&&!n.title&&n.children&&n.children.length===1&&n.children[0].type==="text"&&(r===n.url||"mailto:"+r===n.url)&&/^[a-z][a-z+.-]+:/i.test(n.url)&&!/[\0- <>\u007F]/.test(n.url))}cg.peek=Mx;function cg(n,a,r,o){const s=Rc(r),f=s==='"'?"Quote":"Apostrophe",u=r.createTracker(o);let g,m;if(sg(n,r)){const b=r.stack;r.stack=[],g=r.enter("autolink");let h=u.move("<");return h+=u.move(r.containerPhrasing(n,{before:h,after:">",...u.current()})),h+=u.move(">"),g(),r.stack=b,h}g=r.enter("link"),m=r.enter("label");let p=u.move("[");return p+=u.move(r.containerPhrasing(n,{before:p,after:"](",...u.current()})),p+=u.move("]("),m(),!n.url&&n.title||/[\0- \u007F]/.test(n.url)?(m=r.enter("destinationLiteral"),p+=u.move("<"),p+=u.move(r.safe(n.url,{before:p,after:">",...u.current()})),p+=u.move(">")):(m=r.enter("destinationRaw"),p+=u.move(r.safe(n.url,{before:p,after:n.title?" ":")",...u.current()}))),m(),n.title&&(m=r.enter(`title${f}`),p+=u.move(" "+s),p+=u.move(r.safe(n.title,{before:p,after:s,...u.current()})),p+=u.move(s),m()),p+=u.move(")"),g(),p}function Mx(n,a,r){return sg(n,r)?"<":"["}ug.peek=Rx;function ug(n,a,r,o){const s=n.referenceType,f=r.enter("linkReference");let u=r.enter("label");const g=r.createTracker(o);let m=g.move("[");const p=r.containerPhrasing(n,{before:m,after:"]",...g.current()});m+=g.move(p+"]["),u();const b=r.stack;r.stack=[],u=r.enter("reference");const h=r.safe(r.associationId(n),{before:m,after:"]",...g.current()});return u(),r.stack=b,f(),s==="full"||!p||p!==h?m+=g.move(h+"]"):s==="shortcut"?m=m.slice(0,-1):m+=g.move("]"),m}function Rx(){return"["}function Dc(n){const a=n.options.bullet||"*";if(a!=="*"&&a!=="+"&&a!=="-")throw new Error("Cannot serialize items with `"+a+"` for `options.bullet`, expected `*`, `+`, or `-`");return a}function Dx(n){const a=Dc(n),r=n.options.bulletOther;if(!r)return a==="*"?"-":"*";if(r!=="*"&&r!=="+"&&r!=="-")throw new Error("Cannot serialize items with `"+r+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(r===a)throw new Error("Expected `bullet` (`"+a+"`) and `bulletOther` (`"+r+"`) to be different");return r}function Lx(n){const a=n.options.bulletOrdered||".";if(a!=="."&&a!==")")throw new Error("Cannot serialize items with `"+a+"` for `options.bulletOrdered`, expected `.` or `)`");return a}function fg(n){const a=n.options.rule||"*";if(a!=="*"&&a!=="-"&&a!=="_")throw new Error("Cannot serialize rules with `"+a+"` for `options.rule`, expected `*`, `-`, or `_`");return a}function zx(n,a,r,o){const s=r.enter("list"),f=r.bulletCurrent;let u=n.ordered?Lx(r):Dc(r);const g=n.ordered?u==="."?")":".":Dx(r);let m=a&&r.bulletLastUsed?u===r.bulletLastUsed:!1;if(!n.ordered){const b=n.children?n.children[0]:void 0;if((u==="*"||u==="-")&&b&&(!b.children||!b.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&&(m=!0),fg(r)===u&&b){let h=-1;for(;++h<n.children.length;){const v=n.children[h];if(v&&v.type==="listItem"&&v.children&&v.children[0]&&v.children[0].type==="thematicBreak"){m=!0;break}}}}m&&(u=g),r.bulletCurrent=u;const p=r.containerFlow(n,o);return r.bulletLastUsed=u,r.bulletCurrent=f,s(),p}function Ix(n){const a=n.options.listItemIndent||"one";if(a!=="tab"&&a!=="one"&&a!=="mixed")throw new Error("Cannot serialize items with `"+a+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return a}function Bx(n,a,r,o){const s=Ix(r);let f=r.bulletCurrent||Dc(r);a&&a.type==="list"&&a.ordered&&(f=(typeof a.start=="number"&&a.start>-1?a.start:1)+(r.options.incrementListMarker===!1?0:a.children.indexOf(n))+f);let u=f.length+1;(s==="tab"||s==="mixed"&&(a&&a.type==="list"&&a.spread||n.spread))&&(u=Math.ceil(u/4)*4);const g=r.createTracker(o);g.move(f+" ".repeat(u-f.length)),g.shift(u);const m=r.enter("listItem"),p=r.indentLines(r.containerFlow(n,g.current()),b);return m(),p;function b(h,v,k){return v?(k?"":" ".repeat(u))+h:(k?f:f+" ".repeat(u-f.length))+h}}function Ux(n,a,r,o){const s=r.enter("paragraph"),f=r.enter("phrasing"),u=r.containerPhrasing(n,o);return f(),s(),u}const Hx=Wr(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function qx(n,a,r,o){return(n.children.some(function(u){return Hx(u)})?r.containerPhrasing:r.containerFlow).call(r,n,o)}function Fx(n){const a=n.options.strong||"*";if(a!=="*"&&a!=="_")throw new Error("Cannot serialize strong with `"+a+"` for `options.strong`, expected `*`, or `_`");return a}dg.peek=Gx;function dg(n,a,r,o){const s=Fx(r),f=r.enter("strong"),u=r.createTracker(o),g=u.move(s+s);let m=u.move(r.containerPhrasing(n,{after:s,before:g,...u.current()}));const p=m.charCodeAt(0),b=ho(o.before.charCodeAt(o.before.length-1),p,s);b.inside&&(m=nl(p)+m.slice(1));const h=m.charCodeAt(m.length-1),v=ho(o.after.charCodeAt(0),h,s);v.inside&&(m=m.slice(0,-1)+nl(h));const k=u.move(s+s);return f(),r.attentionEncodeSurroundingInfo={after:v.outside,before:b.outside},g+m+k}function Gx(n,a,r){return r.options.strong||"*"}function jx(n,a,r,o){return r.safe(n.value,o)}function Yx(n){const a=n.options.ruleRepetition||3;if(a<3)throw new Error("Cannot serialize rules with repetition `"+a+"` for `options.ruleRepetition`, expected `3` or more");return a}function Px(n,a,r){const o=(fg(r)+(r.options.ruleSpaces?" ":"")).repeat(Yx(r));return r.options.ruleSpaces?o.slice(0,-1):o}const pg={blockquote:gx,break:ng,code:kx,definition:_x,emphasis:ig,hardBreak:ng,heading:Tx,html:ag,image:rg,imageReference:lg,inlineCode:og,link:cg,linkReference:ug,list:zx,listItem:Bx,paragraph:Ux,root:qx,strong:dg,text:jx,thematicBreak:Px};function Kx(){return{enter:{table:Vx,tableData:gg,tableHeader:gg,tableRow:Zx},exit:{codeText:Xx,table:$x,tableData:Lc,tableHeader:Lc,tableRow:Lc}}}function Vx(n){const a=n._align;this.enter({type:"table",align:a.map(function(r){return r==="none"?null:r}),children:[]},n),this.data.inTable=!0}function $x(n){this.exit(n),this.data.inTable=void 0}function Zx(n){this.enter({type:"tableRow",children:[]},n)}function Lc(n){this.exit(n)}function gg(n){this.enter({type:"tableCell",children:[]},n)}function Xx(n){let a=this.resume();this.data.inTable&&(a=a.replace(/\\([\\|])/g,Qx));const r=this.stack[this.stack.length-1];r.type,r.value=a,this.exit(n)}function Qx(n,a){return a==="|"?a:n}function Jx(n){const a=n||{},r=a.tableCellPadding,o=a.tablePipeAlign,s=a.stringLength,f=r?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
42
- `,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:v,table:u,tableCell:m,tableRow:g}};function u(k,x,C,M){return p(b(k,C,M),k.align)}function g(k,x,C,M){const w=h(k,C,M),q=p([w]);return q.slice(0,q.indexOf(`
43
- `))}function m(k,x,C,M){const w=C.enter("tableCell"),q=C.enter("phrasing"),H=C.containerPhrasing(k,{...M,before:f,after:f});return q(),w(),H}function p(k,x){return dx(k,{align:x,alignDelimiters:o,padding:r,stringLength:s})}function b(k,x,C){const M=k.children;let w=-1;const q=[],H=x.enter("table");for(;++w<M.length;)q[w]=h(M[w],x,C);return H(),q}function h(k,x,C){const M=k.children;let w=-1;const q=[],H=x.enter("tableRow");for(;++w<M.length;)q[w]=m(M[w],k,x,C);return H(),q}function v(k,x,C){let M=pg.inlineCode(k,x,C);return C.stack.includes("tableCell")&&(M=M.replace(/\|/g,"\\$&")),M}}function Wx(){return{exit:{taskListCheckValueChecked:mg,taskListCheckValueUnchecked:mg,paragraph:tS}}}function eS(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:nS}}}function mg(n){const a=this.stack[this.stack.length-2];a.type,a.checked=n.type==="taskListCheckValueChecked"}function tS(n){const a=this.stack[this.stack.length-2];if(a&&a.type==="listItem"&&typeof a.checked=="boolean"){const r=this.stack[this.stack.length-1];r.type;const o=r.children[0];if(o&&o.type==="text"){const s=a.children;let f=-1,u;for(;++f<s.length;){const g=s[f];if(g.type==="paragraph"){u=g;break}}u===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(n)}function nS(n,a,r,o){const s=n.children[0],f=typeof n.checked=="boolean"&&s&&s.type==="paragraph",u="["+(n.checked?"x":" ")+"] ",g=r.createTracker(o);f&&g.move(u);let m=pg.listItem(n,a,r,{...o,...g.current()});return f&&(m=m.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,p)),m;function p(b){return b+u}}function iS(){return[z1(),nx(),lx(),Kx(),Wx()]}function aS(n){return{extensions:[I1(),ix(n),ox(),Jx(n),eS()]}}const rS={tokenize:fS,partial:!0},hg={tokenize:dS,partial:!0},bg={tokenize:pS,partial:!0},yg={tokenize:gS,partial:!0},lS={tokenize:mS,partial:!0},vg={name:"wwwAutolink",tokenize:cS,previous:Eg},kg={name:"protocolAutolink",tokenize:uS,previous:_g},Ti={name:"emailAutolink",tokenize:sS,previous:xg},mi={};function oS(){return{text:mi}}let Da=48;for(;Da<123;)mi[Da]=Ti,Da++,Da===58?Da=65:Da===91&&(Da=97);mi[43]=Ti,mi[45]=Ti,mi[46]=Ti,mi[95]=Ti,mi[72]=[Ti,kg],mi[104]=[Ti,kg],mi[87]=[Ti,vg],mi[119]=[Ti,vg];function sS(n,a,r){const o=this;let s,f;return u;function u(h){return!zc(h)||!xg.call(o,o.previous)||Ic(o.events)?r(h):(n.enter("literalAutolink"),n.enter("literalAutolinkEmail"),g(h))}function g(h){return zc(h)?(n.consume(h),g):h===64?(n.consume(h),m):r(h)}function m(h){return h===46?n.check(lS,b,p)(h):h===45||h===95||un(h)?(f=!0,n.consume(h),m):b(h)}function p(h){return n.consume(h),s=!0,m}function b(h){return f&&s&&bn(o.previous)?(n.exit("literalAutolinkEmail"),n.exit("literalAutolink"),a(h)):r(h)}}function cS(n,a,r){const o=this;return s;function s(u){return u!==87&&u!==119||!Eg.call(o,o.previous)||Ic(o.events)?r(u):(n.enter("literalAutolink"),n.enter("literalAutolinkWww"),n.check(rS,n.attempt(hg,n.attempt(bg,f),r),r)(u))}function f(u){return n.exit("literalAutolinkWww"),n.exit("literalAutolink"),a(u)}}function uS(n,a,r){const o=this;let s="",f=!1;return u;function u(h){return(h===72||h===104)&&_g.call(o,o.previous)&&!Ic(o.events)?(n.enter("literalAutolink"),n.enter("literalAutolinkHttp"),s+=String.fromCodePoint(h),n.consume(h),g):r(h)}function g(h){if(bn(h)&&s.length<5)return s+=String.fromCodePoint(h),n.consume(h),g;if(h===58){const v=s.toLowerCase();if(v==="http"||v==="https")return n.consume(h),m}return r(h)}function m(h){return h===47?(n.consume(h),f?p:(f=!0,m)):r(h)}function p(h){return h===null||Xl(h)||vt(h)||Oa(h)||Ql(h)?r(h):n.attempt(hg,n.attempt(bg,b),r)(h)}function b(h){return n.exit("literalAutolinkHttp"),n.exit("literalAutolink"),a(h)}}function fS(n,a,r){let o=0;return s;function s(u){return(u===87||u===119)&&o<3?(o++,n.consume(u),s):u===46&&o===3?(n.consume(u),f):r(u)}function f(u){return u===null?r(u):a(u)}}function dS(n,a,r){let o,s,f;return u;function u(p){return p===46||p===95?n.check(yg,m,g)(p):p===null||vt(p)||Oa(p)||p!==45&&Ql(p)?m(p):(f=!0,n.consume(p),u)}function g(p){return p===95?o=!0:(s=o,o=void 0),n.consume(p),u}function m(p){return s||o||!f?r(p):a(p)}}function pS(n,a){let r=0,o=0;return s;function s(u){return u===40?(r++,n.consume(u),s):u===41&&o<r?f(u):u===33||u===34||u===38||u===39||u===41||u===42||u===44||u===46||u===58||u===59||u===60||u===63||u===93||u===95||u===126?n.check(yg,a,f)(u):u===null||vt(u)||Oa(u)?a(u):(n.consume(u),s)}function f(u){return u===41&&o++,n.consume(u),s}}function gS(n,a,r){return o;function o(g){return g===33||g===34||g===39||g===41||g===42||g===44||g===46||g===58||g===59||g===63||g===95||g===126?(n.consume(g),o):g===38?(n.consume(g),f):g===93?(n.consume(g),s):g===60||g===null||vt(g)||Oa(g)?a(g):r(g)}function s(g){return g===null||g===40||g===91||vt(g)||Oa(g)?a(g):o(g)}function f(g){return bn(g)?u(g):r(g)}function u(g){return g===59?(n.consume(g),o):bn(g)?(n.consume(g),u):r(g)}}function mS(n,a,r){return o;function o(f){return n.consume(f),s}function s(f){return un(f)?r(f):a(f)}}function Eg(n){return n===null||n===40||n===42||n===95||n===91||n===93||n===126||vt(n)}function _g(n){return!bn(n)}function xg(n){return!(n===47||zc(n))}function zc(n){return n===43||n===45||n===46||n===95||un(n)}function Ic(n){let a=n.length,r=!1;for(;a--;){const o=n[a][1];if((o.type==="labelLink"||o.type==="labelImage")&&!o._balanced){r=!0;break}if(o._gfmAutolinkLiteralWalkedInto){r=!1;break}}return n.length>0&&!r&&(n[n.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),r}const hS={tokenize:SS,partial:!0};function bS(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:ES,continuation:{tokenize:_S},exit:xS}},text:{91:{name:"gfmFootnoteCall",tokenize:kS},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:yS,resolveTo:vS}}}}function yS(n,a,r){const o=this;let s=o.events.length;const f=o.parser.gfmFootnotes||(o.parser.gfmFootnotes=[]);let u;for(;s--;){const m=o.events[s][1];if(m.type==="labelImage"){u=m;break}if(m.type==="gfmFootnoteCall"||m.type==="labelLink"||m.type==="label"||m.type==="image"||m.type==="link")break}return g;function g(m){if(!u||!u._balanced)return r(m);const p=li(o.sliceSerialize({start:u.end,end:o.now()}));return p.codePointAt(0)!==94||!f.includes(p.slice(1))?r(m):(n.enter("gfmFootnoteCallLabelMarker"),n.consume(m),n.exit("gfmFootnoteCallLabelMarker"),a(m))}}function vS(n,a){let r=n.length;for(;r--;)if(n[r][1].type==="labelImage"&&n[r][0]==="enter"){n[r][1];break}n[r+1][1].type="data",n[r+3][1].type="gfmFootnoteCallLabelMarker";const o={type:"gfmFootnoteCall",start:Object.assign({},n[r+3][1].start),end:Object.assign({},n[n.length-1][1].end)},s={type:"gfmFootnoteCallMarker",start:Object.assign({},n[r+3][1].end),end:Object.assign({},n[r+3][1].end)};s.end.column++,s.end.offset++,s.end._bufferIndex++;const f={type:"gfmFootnoteCallString",start:Object.assign({},s.end),end:Object.assign({},n[n.length-1][1].start)},u={type:"chunkString",contentType:"string",start:Object.assign({},f.start),end:Object.assign({},f.end)},g=[n[r+1],n[r+2],["enter",o,a],n[r+3],n[r+4],["enter",s,a],["exit",s,a],["enter",f,a],["enter",u,a],["exit",u,a],["exit",f,a],n[n.length-2],n[n.length-1],["exit",o,a]];return n.splice(r,n.length-r+1,...g),n}function kS(n,a,r){const o=this,s=o.parser.gfmFootnotes||(o.parser.gfmFootnotes=[]);let f=0,u;return g;function g(h){return n.enter("gfmFootnoteCall"),n.enter("gfmFootnoteCallLabelMarker"),n.consume(h),n.exit("gfmFootnoteCallLabelMarker"),m}function m(h){return h!==94?r(h):(n.enter("gfmFootnoteCallMarker"),n.consume(h),n.exit("gfmFootnoteCallMarker"),n.enter("gfmFootnoteCallString"),n.enter("chunkString").contentType="string",p)}function p(h){if(f>999||h===93&&!u||h===null||h===91||vt(h))return r(h);if(h===93){n.exit("chunkString");const v=n.exit("gfmFootnoteCallString");return s.includes(li(o.sliceSerialize(v)))?(n.enter("gfmFootnoteCallLabelMarker"),n.consume(h),n.exit("gfmFootnoteCallLabelMarker"),n.exit("gfmFootnoteCall"),a):r(h)}return vt(h)||(u=!0),f++,n.consume(h),h===92?b:p}function b(h){return h===91||h===92||h===93?(n.consume(h),f++,p):p(h)}}function ES(n,a,r){const o=this,s=o.parser.gfmFootnotes||(o.parser.gfmFootnotes=[]);let f,u=0,g;return m;function m(x){return n.enter("gfmFootnoteDefinition")._container=!0,n.enter("gfmFootnoteDefinitionLabel"),n.enter("gfmFootnoteDefinitionLabelMarker"),n.consume(x),n.exit("gfmFootnoteDefinitionLabelMarker"),p}function p(x){return x===94?(n.enter("gfmFootnoteDefinitionMarker"),n.consume(x),n.exit("gfmFootnoteDefinitionMarker"),n.enter("gfmFootnoteDefinitionLabelString"),n.enter("chunkString").contentType="string",b):r(x)}function b(x){if(u>999||x===93&&!g||x===null||x===91||vt(x))return r(x);if(x===93){n.exit("chunkString");const C=n.exit("gfmFootnoteDefinitionLabelString");return f=li(o.sliceSerialize(C)),n.enter("gfmFootnoteDefinitionLabelMarker"),n.consume(x),n.exit("gfmFootnoteDefinitionLabelMarker"),n.exit("gfmFootnoteDefinitionLabel"),v}return vt(x)||(g=!0),u++,n.consume(x),x===92?h:b}function h(x){return x===91||x===92||x===93?(n.consume(x),u++,b):b(x)}function v(x){return x===58?(n.enter("definitionMarker"),n.consume(x),n.exit("definitionMarker"),s.includes(f)||s.push(f),tt(n,k,"gfmFootnoteDefinitionWhitespace")):r(x)}function k(x){return a(x)}}function _S(n,a,r){return n.check($r,a,n.attempt(hS,a,r))}function xS(n){n.exit("gfmFootnoteDefinition")}function SS(n,a,r){const o=this;return tt(n,s,"gfmFootnoteDefinitionIndent",5);function s(f){const u=o.events[o.events.length-1];return u&&u[1].type==="gfmFootnoteDefinitionIndent"&&u[2].sliceSerialize(u[1],!0).length===4?a(f):r(f)}}function wS(n){let r=(n||{}).singleTilde;const o={name:"strikethrough",tokenize:f,resolveAll:s};return r==null&&(r=!0),{text:{126:o},insideSpan:{null:[o]},attentionMarkers:{null:[126]}};function s(u,g){let m=-1;for(;++m<u.length;)if(u[m][0]==="enter"&&u[m][1].type==="strikethroughSequenceTemporary"&&u[m][1]._close){let p=m;for(;p--;)if(u[p][0]==="exit"&&u[p][1].type==="strikethroughSequenceTemporary"&&u[p][1]._open&&u[m][1].end.offset-u[m][1].start.offset===u[p][1].end.offset-u[p][1].start.offset){u[m][1].type="strikethroughSequence",u[p][1].type="strikethroughSequence";const b={type:"strikethrough",start:Object.assign({},u[p][1].start),end:Object.assign({},u[m][1].end)},h={type:"strikethroughText",start:Object.assign({},u[p][1].end),end:Object.assign({},u[m][1].start)},v=[["enter",b,g],["enter",u[p][1],g],["exit",u[p][1],g],["enter",h,g]],k=g.parser.constructs.insideSpan.null;k&&Ln(v,v.length,0,Jl(k,u.slice(p+1,m),g)),Ln(v,v.length,0,[["exit",h,g],["enter",u[m][1],g],["exit",u[m][1],g],["exit",b,g]]),Ln(u,p-1,m-p+3,v),m=p+v.length-2;break}}for(m=-1;++m<u.length;)u[m][1].type==="strikethroughSequenceTemporary"&&(u[m][1].type="data");return u}function f(u,g,m){const p=this.previous,b=this.events;let h=0;return v;function v(x){return p===126&&b[b.length-1][1].type!=="characterEscape"?m(x):(u.enter("strikethroughSequenceTemporary"),k(x))}function k(x){const C=nr(p);if(x===126)return h>1?m(x):(u.consume(x),h++,k);if(h<2&&!r)return m(x);const M=u.exit("strikethroughSequenceTemporary"),w=nr(x);return M._open=!w||w===2&&!!C,M._close=!C||C===2&&!!w,g(x)}}}class TS{constructor(){this.map=[]}add(a,r,o){AS(this,a,r,o)}consume(a){if(this.map.sort(function(f,u){return f[0]-u[0]}),this.map.length===0)return;let r=this.map.length;const o=[];for(;r>0;)r-=1,o.push(a.slice(this.map[r][0]+this.map[r][1]),this.map[r][2]),a.length=this.map[r][0];o.push(a.slice()),a.length=0;let s=o.pop();for(;s;){for(const f of s)a.push(f);s=o.pop()}this.map.length=0}}function AS(n,a,r,o){let s=0;if(!(r===0&&o.length===0)){for(;s<n.map.length;){if(n.map[s][0]===a){n.map[s][1]+=r,n.map[s][2].push(...o);return}s+=1}n.map.push([a,r,o])}}function NS(n,a){let r=!1;const o=[];for(;a<n.length;){const s=n[a];if(r){if(s[0]==="enter")s[1].type==="tableContent"&&o.push(n[a+1][1].type==="tableDelimiterMarker"?"left":"none");else if(s[1].type==="tableContent"){if(n[a-1][1].type==="tableDelimiterMarker"){const f=o.length-1;o[f]=o[f]==="left"?"center":"right"}}else if(s[1].type==="tableDelimiterRow")break}else s[0]==="enter"&&s[1].type==="tableDelimiterRow"&&(r=!0);a+=1}return o}function CS(){return{flow:{null:{name:"table",tokenize:OS,resolveAll:MS}}}}function OS(n,a,r){const o=this;let s=0,f=0,u;return g;function g(z){let se=o.events.length-1;for(;se>-1;){const oe=o.events[se][1].type;if(oe==="lineEnding"||oe==="linePrefix")se--;else break}const re=se>-1?o.events[se][1].type:null,_e=re==="tableHead"||re==="tableRow"?L:m;return _e===L&&o.parser.lazy[o.now().line]?r(z):_e(z)}function m(z){return n.enter("tableHead"),n.enter("tableRow"),p(z)}function p(z){return z===124||(u=!0,f+=1),b(z)}function b(z){return z===null?r(z):we(z)?f>1?(f=0,o.interrupt=!0,n.exit("tableRow"),n.enter("lineEnding"),n.consume(z),n.exit("lineEnding"),k):r(z):$e(z)?tt(n,b,"whitespace")(z):(f+=1,u&&(u=!1,s+=1),z===124?(n.enter("tableCellDivider"),n.consume(z),n.exit("tableCellDivider"),u=!0,b):(n.enter("data"),h(z)))}function h(z){return z===null||z===124||vt(z)?(n.exit("data"),b(z)):(n.consume(z),z===92?v:h)}function v(z){return z===92||z===124?(n.consume(z),h):h(z)}function k(z){return o.interrupt=!1,o.parser.lazy[o.now().line]?r(z):(n.enter("tableDelimiterRow"),u=!1,$e(z)?tt(n,x,"linePrefix",o.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(z):x(z))}function x(z){return z===45||z===58?M(z):z===124?(u=!0,n.enter("tableCellDivider"),n.consume(z),n.exit("tableCellDivider"),C):te(z)}function C(z){return $e(z)?tt(n,M,"whitespace")(z):M(z)}function M(z){return z===58?(f+=1,u=!0,n.enter("tableDelimiterMarker"),n.consume(z),n.exit("tableDelimiterMarker"),w):z===45?(f+=1,w(z)):z===null||we(z)?Q(z):te(z)}function w(z){return z===45?(n.enter("tableDelimiterFiller"),q(z)):te(z)}function q(z){return z===45?(n.consume(z),q):z===58?(u=!0,n.exit("tableDelimiterFiller"),n.enter("tableDelimiterMarker"),n.consume(z),n.exit("tableDelimiterMarker"),H):(n.exit("tableDelimiterFiller"),H(z))}function H(z){return $e(z)?tt(n,Q,"whitespace")(z):Q(z)}function Q(z){return z===124?x(z):z===null||we(z)?!u||s!==f?te(z):(n.exit("tableDelimiterRow"),n.exit("tableHead"),a(z)):te(z)}function te(z){return r(z)}function L(z){return n.enter("tableRow"),ce(z)}function ce(z){return z===124?(n.enter("tableCellDivider"),n.consume(z),n.exit("tableCellDivider"),ce):z===null||we(z)?(n.exit("tableRow"),a(z)):$e(z)?tt(n,ce,"whitespace")(z):(n.enter("data"),ee(z))}function ee(z){return z===null||z===124||vt(z)?(n.exit("data"),ce(z)):(n.consume(z),z===92?fe:ee)}function fe(z){return z===92||z===124?(n.consume(z),ee):ee(z)}}function MS(n,a){let r=-1,o=!0,s=0,f=[0,0,0,0],u=[0,0,0,0],g=!1,m=0,p,b,h;const v=new TS;for(;++r<n.length;){const k=n[r],x=k[1];k[0]==="enter"?x.type==="tableHead"?(g=!1,m!==0&&(Sg(v,a,m,p,b),b=void 0,m=0),p={type:"table",start:Object.assign({},x.start),end:Object.assign({},x.end)},v.add(r,0,[["enter",p,a]])):x.type==="tableRow"||x.type==="tableDelimiterRow"?(o=!0,h=void 0,f=[0,0,0,0],u=[0,r+1,0,0],g&&(g=!1,b={type:"tableBody",start:Object.assign({},x.start),end:Object.assign({},x.end)},v.add(r,0,[["enter",b,a]])),s=x.type==="tableDelimiterRow"?2:b?3:1):s&&(x.type==="data"||x.type==="tableDelimiterMarker"||x.type==="tableDelimiterFiller")?(o=!1,u[2]===0&&(f[1]!==0&&(u[0]=u[1],h=bo(v,a,f,s,void 0,h),f=[0,0,0,0]),u[2]=r)):x.type==="tableCellDivider"&&(o?o=!1:(f[1]!==0&&(u[0]=u[1],h=bo(v,a,f,s,void 0,h)),f=u,u=[f[1],r,0,0])):x.type==="tableHead"?(g=!0,m=r):x.type==="tableRow"||x.type==="tableDelimiterRow"?(m=r,f[1]!==0?(u[0]=u[1],h=bo(v,a,f,s,r,h)):u[1]!==0&&(h=bo(v,a,u,s,r,h)),s=0):s&&(x.type==="data"||x.type==="tableDelimiterMarker"||x.type==="tableDelimiterFiller")&&(u[3]=r)}for(m!==0&&Sg(v,a,m,p,b),v.consume(a.events),r=-1;++r<a.events.length;){const k=a.events[r];k[0]==="enter"&&k[1].type==="table"&&(k[1]._align=NS(a.events,r))}return n}function bo(n,a,r,o,s,f){const u=o===1?"tableHeader":o===2?"tableDelimiter":"tableData",g="tableContent";r[0]!==0&&(f.end=Object.assign({},rr(a.events,r[0])),n.add(r[0],0,[["exit",f,a]]));const m=rr(a.events,r[1]);if(f={type:u,start:Object.assign({},m),end:Object.assign({},m)},n.add(r[1],0,[["enter",f,a]]),r[2]!==0){const p=rr(a.events,r[2]),b=rr(a.events,r[3]),h={type:g,start:Object.assign({},p),end:Object.assign({},b)};if(n.add(r[2],0,[["enter",h,a]]),o!==2){const v=a.events[r[2]],k=a.events[r[3]];if(v[1].end=Object.assign({},k[1].end),v[1].type="chunkText",v[1].contentType="text",r[3]>r[2]+1){const x=r[2]+1,C=r[3]-r[2]-1;n.add(x,C,[])}}n.add(r[3]+1,0,[["exit",h,a]])}return s!==void 0&&(f.end=Object.assign({},rr(a.events,s)),n.add(s,0,[["exit",f,a]]),f=void 0),f}function Sg(n,a,r,o,s){const f=[],u=rr(a.events,r);s&&(s.end=Object.assign({},u),f.push(["exit",s,a])),o.end=Object.assign({},u),f.push(["exit",o,a]),n.add(r+1,0,f)}function rr(n,a){const r=n[a],o=r[0]==="enter"?"start":"end";return r[1][o]}const RS={name:"tasklistCheck",tokenize:LS};function DS(){return{text:{91:RS}}}function LS(n,a,r){const o=this;return s;function s(m){return o.previous!==null||!o._gfmTasklistFirstContentOfListItem?r(m):(n.enter("taskListCheck"),n.enter("taskListCheckMarker"),n.consume(m),n.exit("taskListCheckMarker"),f)}function f(m){return vt(m)?(n.enter("taskListCheckValueUnchecked"),n.consume(m),n.exit("taskListCheckValueUnchecked"),u):m===88||m===120?(n.enter("taskListCheckValueChecked"),n.consume(m),n.exit("taskListCheckValueChecked"),u):r(m)}function u(m){return m===93?(n.enter("taskListCheckMarker"),n.consume(m),n.exit("taskListCheckMarker"),n.exit("taskListCheck"),g):r(m)}function g(m){return we(m)?a(m):$e(m)?n.check({tokenize:zS},a,r)(m):r(m)}}function zS(n,a,r){return tt(n,o,"whitespace");function o(s){return s===null?r(s):a(s)}}function IS(n){return wd([oS(),bS(),wS(n),CS(),DS()])}const BS={};function US(n){const a=this,r=n||BS,o=a.data(),s=o.micromarkExtensions||(o.micromarkExtensions=[]),f=o.fromMarkdownExtensions||(o.fromMarkdownExtensions=[]),u=o.toMarkdownExtensions||(o.toMarkdownExtensions=[]);s.push(IS(r)),f.push(iS()),u.push(aS(r))}function HS(n){const a=new RegExp(`(?<!]\\(|]\\(<|href=["']|src=["'])(https?:\\/\\/[^\\s<>"')]+)(?![^[]*\\]\\))`,"g");return n.replace(a,r=>{const o=r.replace(/[.,;:!?]+$/g,""),s=r.slice(o.length);return`[${o}](${o})${s}`})}function qS(n){return n.replace(/\[source\s+(\d+)\]/gi,(a,r)=>`[\`${r}\`](#source-${r})`)}function FS(n){const a=HS(n);return qS(a)}const GS=me.memo(function({content:a}){return D.jsx(IE,{rehypePlugins:[N1],remarkPlugins:[US],children:FS(a)})});function jS(n){return n.variants?.find(a=>a.available)||n.variants?.[0]}function wg(n,a,r){if(!n)return"";const o=Number(n);if(!Number.isFinite(o))return n;try{return new Intl.NumberFormat(r,{style:a?"currency":"decimal",currency:a||void 0,maximumFractionDigits:2}).format(o)}catch{return`${o.toFixed(2)}${a?` ${a}`:""}`}}function YS({product:n,copy:a,locale:r,layout:o="vertical",onProductClick:s}){const f=jS(n),u=!!f?.available&&n.available!=="false",g=wg(f?.price,f?.currency,r),m=wg(f?.compare_at_price||void 0,f?.currency,r);return D.jsxs("article",{className:`akilio-product-card akilio-product-card--${o}`,role:"listitem",children:[D.jsxs("div",{className:"akilio-product-media",children:[n.image_url?D.jsx("img",{src:n.image_url,alt:"",loading:"lazy",decoding:"async"}):D.jsx("div",{className:"akilio-product-placeholder","aria-hidden":"true",children:"A"}),D.jsx("span",{className:u?"akilio-stock akilio-stock--available":"akilio-stock",children:u?a.inStock:a.outOfStock})]}),D.jsxs("div",{className:"akilio-product-body",children:[n.vendor&&D.jsx("span",{className:"akilio-product-vendor",children:n.vendor}),D.jsx("h4",{children:n.title}),f?.title&&f.title!==n.title&&D.jsx("span",{className:"akilio-product-variant",children:f.title}),D.jsxs("div",{className:"akilio-product-price",children:[g?D.jsx("strong",{children:g}):D.jsx("strong",{children:a.unavailable}),m&&m!==g&&D.jsx("del",{children:m})]}),n.url?D.jsx("a",{className:"akilio-product-action",href:n.url,target:"_blank",rel:"noopener noreferrer",onClick:()=>s?.(n,f),children:a.viewProduct}):D.jsx("button",{type:"button",className:"akilio-product-action",disabled:!u,onClick:()=>s?.(n,f),children:a.viewProduct})]})]},n.id)}const PS=me.memo(function({commerce:a,copy:r,locale:o,onProductClick:s}){const f=me.useMemo(()=>Array.isArray(a.products)?a.products.filter(g=>g?.id&&g?.title):[],[a.products]);if(!f.length)return null;const u=f.length>3?"vertical":"horizontal";return D.jsxs("section",{className:"akilio-products","aria-label":r.products,children:[D.jsxs("div",{className:"akilio-products-heading",children:[D.jsx("strong",{children:r.products}),D.jsx("span",{children:f.length})]}),D.jsx("div",{className:`akilio-products-grid akilio-products-grid--${u}`,role:"list",children:f.map(g=>D.jsx(YS,{product:g,copy:r,locale:o,layout:u,onProductClick:s}))})]})});function KS(n){return Array.isArray(n)?n.filter(a=>a?.title||a?.url):[]}const Tg=me.memo(function({message:a,copy:r,locale:o,onFeedback:s,onProductClick:f,onSuggestion:u,primaryColor:g}){const m=a.role==="user",p=KS(a.sources);return D.jsx("div",{className:Aa("akilio-message-row",m?"akilio-message-row--user":"akilio-message-row--assistant"),children:D.jsxs("div",{className:Aa("akilio-bubble",m&&"akilio-bubble--user",a.error&&"akilio-bubble--error"),children:[!m&&!a.error&&D.jsxs("div",{className:"akilio-bubble-meta",children:[D.jsx(Us,{style:{width:"20px",height:"20px"},primaryColor:g}),D.jsx("span",{children:r.title})]}),D.jsx("div",{className:Aa("akilio-answer",m&&"akilio-answer--user"),children:m?D.jsx("p",{children:a.content}):D.jsx(GS,{content:a.content})}),!m&&a.commerce?.products?.length?D.jsx(PS,{commerce:a.commerce,copy:r,locale:o,onProductClick:(b,h)=>f?.(a,b,h)}):null,!m&&!a.error&&a.suggestions?.length?D.jsx("div",{className:"akilio-response-suggestions","aria-label":"Suggested follow-up questions",children:a.suggestions.map(b=>D.jsx("button",{type:"button",onClick:()=>u?.(b),children:b},b))}):null,!m&&p.length>0&&D.jsxs("details",{className:"akilio-sources",children:[D.jsxs("summary",{children:[r.sources," · ",p.length]}),D.jsx("div",{className:"akilio-sources-list",children:p.map((b,h)=>D.jsxs("div",{className:"akilio-source-card",children:[D.jsx("strong",{children:b.title||"Untitled source"}),typeof b.section_path=="string"&&D.jsx("span",{children:b.section_path}),b.url&&D.jsx("a",{href:b.url,target:"_blank",rel:"noreferrer",children:b.url})]},`${b.url||b.title}-${h}`))})]}),!m&&!a.error&&a.backendMessageId&&D.jsxs("div",{className:"akilio-feedback",children:[D.jsx("span",{children:a.feedback?r.feedbackThanks:r.feedbackQuestion}),D.jsx("button",{type:"button",className:Aa(a.feedback==="up"&&"akilio-feedback-active"),onClick:()=>s?.(a,"up"),"aria-label":r.voteUp,children:D.jsx(Cy,{})}),D.jsx("button",{type:"button",className:Aa(a.feedback==="down"&&"akilio-feedback-active"),onClick:()=>s?.(a,"down"),"aria-label":r.voteDown,children:D.jsx(Oy,{})})]})]})})}),VS=me.memo(function({messages:a,copy:r,locale:o,onFeedback:s,onProductClick:f,onSuggestion:u,primaryColor:g}){return D.jsx(D.Fragment,{children:a.map(m=>D.jsx(Tg,{message:m,copy:r,locale:o,onFeedback:s,onProductClick:f,onSuggestion:u,primaryColor:g},m.id))})});function $S({copy:n,label:a,primaryColor:r}){return D.jsxs("div",{className:"akilio-message-row akilio-message-row--assistant akilio-stream-activity",role:"status","aria-live":"polite","aria-atomic":"true",children:[D.jsx("span",{className:"akilio-stream-activity-icon","aria-hidden":"true",children:D.jsx(Us,{style:{width:"20px",height:"20px"},primaryColor:r})}),D.jsxs("div",{className:"akilio-stream-activity-content",children:[D.jsx("span",{className:"akilio-stream-activity-label",children:a||n.loading},a),D.jsx("span",{className:"akilio-stream-activity-pulse","aria-hidden":"true"})]})]})}const ZS=me.forwardRef(function(a,r){const{open:o,isDesktop:s,inline:f,colorMode:u,allowColorModeToggle:g,widgetAvailable:m,showBranding:p,showPoweredBy:b,copy:h,locale:v,messages:k,streamingMessage:x,loading:C,loadingLabel:M,consentDecision:w,consentGranted:q,requireConsent:H,privacyNotice:Q,privacyNoticeUrl:te,onConsentDecision:L,onClose:ce,onToggleColorMode:ee,onClear:fe,onSubmit:z,onDraftChange:se,onFeedback:re,onProductClick:_e,onSuggestion:oe,primaryColor:X}=a,Y=me.useRef(null),G=me.useRef(null);return me.useImperativeHandle(r,()=>({getDraft:()=>G.current?.getDraft()||"",setDraft:(K,ve)=>G.current?.setDraft(K,ve),clearDraft:()=>G.current?.clearDraft(),focusDraft:()=>G.current?.focus(),submitDraft:()=>G.current?G.current.submit():Promise.reject(new Error("NOT_READY"))}),[]),me.useEffect(()=>{o&&Y.current?.scrollTo({top:Y.current.scrollHeight,behavior:k.length>1?"auto":"smooth"})},[k.length,x?.content,C,o]),D.jsxs("aside",{className:Aa("akilio-panel",s&&"akilio-panel--desktop",f&&"akilio-panel--inline",o&&"akilio-panel--open"),"aria-hidden":!o,"aria-label":h.title,children:[D.jsx("div",{className:"akilio-panel-glow"}),D.jsxs("header",{className:"akilio-panel-header",children:[p&&D.jsx("div",{className:"akilio-logo",children:D.jsx(Zl,{variant:"mark",style:{width:40,height:40},primaryColor:X})}),D.jsxs("div",{className:"akilio-header-content",children:[D.jsxs("div",{className:"akilio-header-topline",children:[D.jsx("div",{className:"akilio-header-title",children:D.jsx("h2",{children:h.title})}),D.jsxs("div",{className:"akilio-header-actions",children:[g&&D.jsx("button",{type:"button",onClick:ee,title:u==="dark"?h.switchToLightMode:h.switchToDarkMode,"aria-label":u==="dark"?h.switchToLightMode:h.switchToDarkMode,children:u==="dark"?D.jsx(My,{}):D.jsx(Ry,{})}),D.jsx("button",{type:"button",onClick:fe,title:h.clearHistory,"aria-label":h.clearHistory,children:D.jsx(Ny,{})}),!f&&D.jsx("button",{type:"button",onClick:ce,title:h.close,"aria-label":h.close,children:D.jsx(Ay,{})})]})]}),D.jsx("p",{className:"akilio-header-description",children:h.description})]})]}),D.jsxs("div",{ref:Y,className:"akilio-thread","aria-live":"polite","aria-relevant":"additions",children:[k.length===0&&!C?D.jsx(Ly,{copy:h,onSuggestion:z,widgetAvailable:m,showBranding:p,primaryColor:X}):D.jsx(VS,{messages:k,copy:h,locale:v,onFeedback:re,onProductClick:_e,onSuggestion:oe,primaryColor:X}),x&&D.jsx(Tg,{message:x,copy:h,locale:v,onFeedback:re,onProductClick:_e,onSuggestion:oe,primaryColor:X}),C&&!x&&D.jsx($S,{copy:h,label:M,primaryColor:X})]}),(Q||H)&&w==="pending"&&D.jsxs("section",{className:"akilio-privacy","aria-label":h.privacyTitle,children:[D.jsxs("div",{children:[D.jsx("strong",{children:h.privacyTitle}),D.jsxs("p",{children:[Q||h.privacyDefaultNotice," ",te&&D.jsx("a",{href:te,target:"_blank",rel:"noreferrer",children:h.privacyTitle})]}),H&&D.jsx("p",{className:"akilio-privacy-consent-copy",children:h.privacyAccept})]}),D.jsxs("div",{className:"akilio-privacy-actions",children:[D.jsx("button",{type:"button",className:"akilio-privacy-decline",onClick:()=>L("rejected"),children:h.privacyDecline}),D.jsx("button",{type:"button",className:"akilio-privacy-accept",onClick:()=>L("accepted"),children:h.privacyAcceptAction})]})]}),D.jsx(Dy,{ref:G,loading:C,disabled:!m||H&&!q,disabledMessage:m?h.privacyRequired:h.widgetUnavailable,showPoweredBy:b,copy:h,onSubmit:z,onDraftChange:se,onReviewConsent:H&&w==="rejected"?()=>L("pending"):void 0})]})});function XS({label:n,onClick:a,showBranding:r=!0,primaryColor:o}){return D.jsxs("button",{id:"akilio-launcher",type:"button",className:"akilio-launcher",onClick:a,children:[D.jsx("span",{children:r?D.jsx(Zl,{variant:"mark",className:"akilio-launcher-logo",primaryColor:o}):D.jsx(Hs,{className:"akilio-launcher-logo"})}),D.jsx("strong",{children:n})]})}function QS({title:n,message:a,actionLabel:r,dismissLabel:o,onDismiss:s,onOpen:f,primaryColor:u,showBranding:g}){return D.jsxs("section",{className:"akilio-coachmark",role:"status","aria-live":"polite","aria-label":n,children:[D.jsx("button",{type:"button",className:"akilio-coachmark-close",onClick:s,"aria-label":o,children:D.jsx("span",{"aria-hidden":"true",children:"×"})}),D.jsx("div",{className:"akilio-coachmark-icon","aria-hidden":"true",children:g?D.jsx(Zl,{variant:"mark",primaryColor:u}):D.jsx(Hs,{})}),D.jsxs("div",{className:"akilio-coachmark-content",children:[D.jsx("strong",{children:n}),D.jsx("p",{children:a}),D.jsx("button",{type:"button",className:"akilio-coachmark-action",onClick:f,children:r})]})]})}const JS="(min-width: 1280px)";function WS(n=JS){const[a,r]=me.useState(!1);return me.useEffect(()=>{if(typeof window>"u")return;const o=window.matchMedia(n),s=()=>r(o.matches);return s(),o.addEventListener?.("change",s),()=>o.removeEventListener?.("change",s)},[n]),a}const lr=60;function Ag(n,a){if(!n)return a;try{return JSON.parse(n)}catch{return a}}function ew(n){const a=me.useMemo(()=>`akilio:${n.projectKey}:${n.locale||"default"}:messages:v1`,[n.projectKey,n.locale]),[r,o]=me.useState([]),[s,f]=me.useState(!1);return me.useEffect(()=>{if(!n.enabled||typeof window>"u"){f(!0);return}const u=Ag(window.localStorage.getItem(a),[]);o(Array.isArray(u)?u.slice(-lr):[]),f(!0)},[n.enabled,a]),me.useEffect(()=>{!n.enabled||!s||typeof window>"u"||window.localStorage.setItem(a,JSON.stringify(r.slice(-lr)))},[r,n.enabled,a,s]),[r,o,a]}function or(n){const[a,r]=me.useState(n.initialValue||""),[o,s]=me.useState(!1);return me.useEffect(()=>{if(!n.enabled||typeof window>"u"){s(!0);return}r(window.localStorage.getItem(n.key)||n.initialValue||""),s(!0)},[n.enabled,n.initialValue,n.key]),me.useEffect(()=>{!n.enabled||!o||typeof window>"u"||(a?window.localStorage.setItem(n.key,a):window.localStorage.removeItem(n.key))},[n.enabled,o,n.key,a]),[a,r]}const tw={version:"0.6.6"};function hi(n){const a=n.toLowerCase();return Array.from(document.scripts).some(r=>(r.src||"").toLowerCase().includes(a))}function nw(n){const a=n.toLowerCase();return Array.from(document.querySelectorAll("link[href]")).some(r=>r.href.toLowerCase().includes(a))}function iw(n,a){return Array.from(document.querySelectorAll(`meta[${n}]`)).some(r=>r.getAttribute(n)===a)}function aw(n){const a=n.toLowerCase();return Array.from(document.body?.classList??[]).some(r=>r.toLowerCase().includes(a))}function rw(){const n=window.location.hostname.toLowerCase(),a=document.documentElement.innerHTML.toLowerCase(),r=[];if(window.Shopify&&r.push("window.Shopify"),hi("cdn.shopify.com")&&r.push("cdn.shopify.com script"),a.includes("shopify-section")&&r.push("shopify-section markup"),n.endsWith(".myshopify.com")&&r.push("myshopify.com hostname"),r.length>=2)return{integration:"shopify",confidence:"high",signals:r};if(r.length===1)return{integration:"shopify",confidence:"medium",signals:r};const o=[];if(window.wcSettings&&o.push("window.wcSettings"),hi("woocommerce")&&o.push("WooCommerce script"),aw("woocommerce")&&o.push("WooCommerce body class"),(a.includes("woocommerce-cart")||a.includes("woocommerce-checkout")||a.includes("wc-block-"))&&o.push("WooCommerce markup"),o.length>=2)return{integration:"woocommerce",confidence:"high",signals:o};if(o.length===1)return{integration:"woocommerce",confidence:"medium",signals:o};const s=[];if(nw("/wp-json/")&&s.push("WordPress REST API link"),(hi("/wp-content/")||hi("/wp-includes/"))&&s.push("WordPress asset path"),(a.includes("/wp-content/")||a.includes("/wp-includes/"))&&s.push("WordPress HTML asset path"),iw("name","generator")&&document.querySelector('meta[name="generator"]')?.content.toLowerCase()?.includes("wordpress")&&s.push("WordPress generator metadata"),s.length>=2)return{integration:"wordpress",confidence:"high",signals:s};if(s.length===1)return{integration:"wordpress",confidence:"medium",signals:s};const f=[];if((window.prestashop||window.PrestaShop)&&f.push("PrestaShop global"),hi("/modules/")&&a.includes("prestashop")&&f.push("PrestaShop module assets"),document.querySelector('meta[name="generator"]')?.content.toLowerCase()?.includes("prestashop")&&f.push("PrestaShop generator metadata"),f.length>=2)return{integration:"prestashop",confidence:"high",signals:f};if(f.length===1)return{integration:"prestashop",confidence:"medium",signals:f};const g=[];return window.requirejs&&hi("mage/")&&g.push("Magento RequireJS modules"),(hi("/static/frontend/")||a.includes("mage-init"))&&g.push("Magento frontend assets"),a.includes("data-mage-init")&&g.push("data-mage-init"),g.length>=2?{integration:"magento",confidence:"high",signals:g}:g.length===1?{integration:"magento",confidence:"medium",signals:g}:a.includes("wixstatic.com")||hi("wixstatic.com")?{integration:"wix",confidence:"high",signals:["Wix static assets"]}:document.documentElement.hasAttribute("data-wf-page")||hi("webflow")?{integration:"webflow",confidence:"high",signals:["Webflow page attributes or assets"]}:hi("static1.squarespace.com")||a.includes("squarespace")?{integration:"squarespace",confidence:"medium",signals:["Squarespace assets"]}:window.__NEXT_DATA__||document.getElementById("__next")?{integration:"nextjs",confidence:"high",signals:["Next.js runtime markers"]}:document.querySelector("[ng-version]")||window.angular?{integration:"angular",confidence:"high",signals:["Angular runtime markers"]}:window.__NUXT__||document.getElementById("__nuxt")?{integration:"vue",confidence:"medium",signals:["Nuxt/Vue runtime markers"]}:window.Vue?{integration:"vue",confidence:"medium",signals:["Vue global"]}:document.getElementById("root")||document.querySelector("[data-reactroot]")?{integration:"react",confidence:"low",signals:["Possible React root element"]}:{integration:"unknown",confidence:"low",signals:[]}}class Bc extends Error{status;payload;constructor(a,r,o){super(a),this.name="AkilioHttpError",this.status=r,this.payload=o}}function Ng(n,a){return`${n.replace(/\/$/,"")}${a.startsWith("/")?a:`/${a}`}`}async function Cg(n){const a=await n.text();let r={};try{r=a?JSON.parse(a):{}}catch{r={detail:a}}if(!n.ok){const o=r?.detail||r?.error||r?.message||`Request failed with status ${n.status}`;throw new Bc(o,n.status,r)}return r}function Uc(n,a,r){const o=`${n.replace(/\/$/,"")}|${a}|${r||"anonymous"}`;let s=2166136261;for(let f=0;f<o.length;f+=1)s^=o.charCodeAt(f),s=Math.imul(s,16777619);return`akilio:widget-token:v1:${(s>>>0).toString(16)}`}function lw(n){if(typeof window>"u")return null;try{const a=window.sessionStorage.getItem(n);return a?JSON.parse(a):null}catch{return null}}function Og(n,a){if(!(typeof window>"u"))try{a?window.sessionStorage.setItem(n,JSON.stringify(a)):window.sessionStorage.removeItem(n)}catch{}}class ow{apiBaseUrl;fetchImpl;auth;widgetToken=null;widgetTokenPromise=null;widgetTokenPromiseKey=null;mode;locale;constructor(a){this.apiBaseUrl=a.apiBaseUrl;const r=a.fetchImpl||globalThis.fetch;if(!r)throw new Error("Fetch API is not available in this environment");this.fetchImpl=r.bind(globalThis),this.auth=a.auth,this.mode=a.mode,this.locale=a.locale}hasHostManagedToken(){return!!(this.auth?.getAccessToken||this.auth?.accessToken)}async hostManagedToken(){return(this.auth?.getAccessToken?await this.auth.getAccessToken():this.auth?.accessToken)||null}tokenIsUsable(a,r,o){const s=Math.max(0,this.auth?.tokenRefreshLeewaySeconds??30);return a.projectKey===r&&a.subject===o&&a.expiresAt>Date.now()+s*1e3}clearWidgetToken(a,r){this.widgetToken=null,Og(Uc(this.apiBaseUrl,a,r),null)}async issueWidgetToken(a,r){const o=await this.publicRequest(`/projects/${encodeURIComponent(a)}/widget-token/`,{method:"POST",body:JSON.stringify(r?{subject:r}:{})}),s=Math.max(1,Number(o.expires_in)||1),f={token:o.token,tokenType:o.token_type||"Bearer",expiresAt:Date.now()+s*1e3,projectKey:a,subject:r};return this.widgetToken=f,Og(Uc(this.apiBaseUrl,a,r),f),this.auth?.onWidgetToken?.({token:f.token,tokenType:f.tokenType,expiresAt:f.expiresAt}),f}async ensureWidgetToken(a,r,o=!1){if(!o&&this.widgetToken&&this.tokenIsUsable(this.widgetToken,a,r))return this.widgetToken;const s=Uc(this.apiBaseUrl,a,r);if(!o){const u=lw(s);if(u&&this.tokenIsUsable(u,a,r))return this.widgetToken=u,u}o&&this.clearWidgetToken(a,r);const f=`${a}|${r||""}`;return(!this.widgetTokenPromise||this.widgetTokenPromiseKey!==f)&&(this.widgetTokenPromiseKey=f,this.widgetTokenPromise=this.issueWidgetToken(a,r).finally(()=>{this.widgetTokenPromiseKey===f&&(this.widgetTokenPromise=null,this.widgetTokenPromiseKey=null)})),this.widgetTokenPromise}async baseHeaders(a=!1){const r={Accept:"application/json",...this.auth?.headers||{}};return a&&(r["Content-Type"]="application/json"),this.auth?.apiKey&&(r[this.auth.apiKeyHeader||"X-Akilio-Key"]=this.auth.apiKey),r}async execute(a,r,o){const s=await this.fetchImpl(Ng(this.apiBaseUrl,a),{...r,credentials:this.auth?.credentials||"omit",headers:{...o,...r.headers||{}}});return Cg(s)}async publicRequest(a,r={}){return this.execute(a,r,await this.baseHeaders(!!r.body))}async authenticatedRequest(a,r,o,s={}){const f=await this.baseHeaders(!!s.body),u=await this.hostManagedToken();if(u)return f.Authorization=`${this.auth?.tokenScheme||"Bearer"} ${u}`,this.execute(o,s,f);if(this.auth?.autoIssueWidgetToken===!1)throw new Error("No widget authentication token is available");let g=await this.ensureWidgetToken(a,r);f.Authorization=`${g.tokenType} ${g.token}`;try{return await this.execute(o,s,f)}catch(m){if(!(m instanceof Bc)||m.status!==401)throw m;return g=await this.ensureWidgetToken(a,r,!0),f.Authorization=`${g.tokenType} ${g.token}`,this.execute(o,s,f)}}async authenticatedResponse(a,r,o,s={}){const f=await this.baseHeaders(!!s.body);f.Accept="text/event-stream";const u=await this.hostManagedToken();if(u)f.Authorization=`${this.auth?.tokenScheme||"Bearer"} ${u}`;else{if(this.auth?.autoIssueWidgetToken===!1)throw new Error("No widget authentication token is available");const p=await this.ensureWidgetToken(a,r);f.Authorization=`${p.tokenType} ${p.token}`}const g=()=>this.fetchImpl(Ng(this.apiBaseUrl,o),{...s,credentials:this.auth?.credentials||"omit",headers:{...f,...s.headers||{}}});let m=await g();if(m.status===401&&!u){await m.body?.cancel().catch(()=>{});const p=await this.ensureWidgetToken(a,r,!0);f.Authorization=`${p.tokenType} ${p.token}`,m=await g()}return m.ok||await Cg(m),m}getProjectConfig(a){const r=rw();return this.publicRequest(`/projects/${encodeURIComponent(a)}/config/`,{method:"POST",body:JSON.stringify({widget:{version:tw.version,mode:this.mode,locale:this.locale,integration:r},browser:{screen_width:window.innerWidth,viewport_width:window.innerWidth,timezone:Intl.DateTimeFormat().resolvedOptions().timeZone,referrer:document.referrer||void 0}})})}async prepareWidgetToken(a,r){this.hasHostManagedToken()||this.auth?.autoIssueWidgetToken===!1||await this.ensureWidgetToken(a,r)}sendMessage(a,r,o){return this.authenticatedRequest(a,r,"/chat/",{method:"POST",body:JSON.stringify(o)})}async sendMessageStream(a,r,o,s={},f){let u;try{u=await this.authenticatedResponse(a,r,"/chat/stream/",{method:"POST",body:JSON.stringify(o),signal:f})}catch(v){if(v instanceof Bc&&[404,405,406,415,501].includes(v.status))return this.sendMessage(a,r,o);throw v}if(!u.body)throw new Error("Streaming response body is unavailable");const g=u.body.getReader(),m=new TextDecoder;let p="",b=null;const h=v=>{let k="message";const x=[];for(const M of v.split(/\r?\n/))!M||M.startsWith(":")||(M.startsWith("event:")&&(k=M.slice(6).trim()),M.startsWith("data:")&&x.push(M.slice(5).trimStart()));if(!x.length)return;let C;try{const M=JSON.parse(x.join(`
44
- `));C=M&&typeof M=="object"?M:{value:M}}catch{C={detail:x.join(`
45
- `)}}if(s.onEvent?.({event:k,data:C}),k==="status")s.onStatus?.(String(C.stage||""),C);else if(k==="conversation"){const M=C.conversation_id||C.id;M&&s.onConversation?.(String(M))}else if(k==="answer.delta")typeof C.delta=="string"&&s.onDelta?.(C.delta);else if(k==="final")b=C;else if(k==="error")throw new Error(String(C.detail||C.error||C.message||"Streaming request failed"))};for(;;){const{value:v,done:k}=await g.read();p+=m.decode(v,{stream:!k});const x=p.split(/\r?\n\r?\n/);p=x.pop()||"";for(const C of x)h(C);if(k)break}if(p.trim()&&h(p),!b)throw new Error("The stream ended before a final response was received");return b}getConversation(a,r,o){const s=new URLSearchParams({project_key:a});return this.authenticatedRequest(a,r,`/conversations/${encodeURIComponent(o)}/?${s}`)}deleteConversation(a,r,o){const s=new URLSearchParams({project_key:a});return this.authenticatedRequest(a,r,`/conversations/${encodeURIComponent(o)}/?${s}`,{method:"DELETE"})}sendCommerceEvent(a,r,o){return this.authenticatedRequest(a,r,"/commerce/events/",{method:"POST",body:JSON.stringify(o)})}sendFeedback(a){return this.authenticatedRequest(a.projectKey,a.subject,`/messages/${encodeURIComponent(a.messageId)}/feedback/`,{method:"POST",body:JSON.stringify({project_key:a.projectKey,rating:a.rating,comment:a.comment||"",metadata:a.metadata||{}})})}}function sw(n){const r=(n.locale||"").toLowerCase().startsWith("fr")?{launcher:"Demander à Akilio",title:"Demander à Akilio",description:"Propulsé par l'IA",placeholder:"Posez votre question...",helper:"Entrée pour envoyer. Maj + Entrée pour une nouvelle ligne.",submit:"Envoyer",loading:"Réflexion...",searching:"Recherche des informations pertinentes...",reviewingSources:"Consultation des sources...",checkingAnswer:"Vérification de la réponse...",preparingAnswer:"Préparation de la réponse...",emptyState:"Commencez avec une question ou choisissez une suggestion.",sources:"Sources",confidence:"Confiance",clearHistory:"Effacer",close:"Fermer",online:"Assistant IA",feedbackQuestion:"Cette réponse est-elle utile ?",feedbackThanks:"Merci pour votre retour.",voteUp:"Utile",voteDown:"Pas utile",requestFailed:"Impossible d’obtenir une réponse pour le moment.",configFailed:"Impossible de charger la configuration Akilio.",newChat:"Nouvelle conversation",privacyTitle:"Confidentialité",privacyAccept:"J’accepte que ma question et les données de conversation soient traitées pour fournir une réponse.",privacyAcceptAction:"Accepter",privacyDecline:"Refuser",privacyReview:"Revoir mon choix de confidentialité",privacyRequired:"Votre consentement est requis avant d’envoyer une question.",widgetUnavailable:"Cet assistant est temporairement indisponible.",poweredBy:"Propulsé par",aiContentWarning:"Le contenu généré par l’IA peut être inexact ou incomplet.",tourTitle:"Besoin d’aide ?",tourMessage:"Posez une question à l’assistant pour trouver rapidement une réponse.",tourAction:"Essayer",tourDismiss:"Fermer cette aide",privacyDefaultNotice:"Vos questions peuvent être enregistrées afin de fournir le service et améliorer sa qualité.",switchToLightMode:"Passer au thème clair",switchToDarkMode:"Passer au thème sombre",products:"Produits",viewProduct:"Voir le produit",fromPrice:"À partir de",unavailable:"Prix indisponible",inStock:"En stock",outOfStock:"Rupture de stock",suggestions:["Quels services offrez-vous ?","Comment puis-je vous contacter ?","Où trouver plus d’informations ?","Pouvez-vous résumer cette page ?"]}:{launcher:"Ask Akilio",title:"Ask Akilio",description:"Powered by AI",placeholder:"Ask your question...",helper:"Press Enter to send. Shift + Enter for a new line.",submit:"Send",loading:"Thinking...",searching:"Searching for relevant information...",reviewingSources:"Reviewing sources...",checkingAnswer:"Checking the answer...",preparingAnswer:"Preparing the answer...",emptyState:"Start with a question or choose a suggestion.",sources:"Sources",confidence:"Confidence",clearHistory:"Clear",close:"Close",online:"AI assistant",feedbackQuestion:"Was this answer useful?",feedbackThanks:"Thanks for your feedback.",voteUp:"Useful",voteDown:"Not useful",requestFailed:"Unable to get an answer right now.",configFailed:"Unable to load Akilio configuration.",newChat:"New chat",privacyTitle:"Privacy",privacyAccept:"I agree that my question and conversation data may be processed to provide an answer.",privacyAcceptAction:"Accept",privacyDecline:"Decline",privacyReview:"Review privacy choice",privacyRequired:"Consent is required before sending a question.",widgetUnavailable:"This assistant is temporarily unavailable.",poweredBy:"Powered by",aiContentWarning:"AI content may be inaccurate or incomplete.",tourTitle:"Need help?",tourMessage:"Ask the assistant a question to quickly find the information you need.",tourAction:"Try it",tourDismiss:"Dismiss this tip",privacyDefaultNotice:"Your questions may be stored to provide the service and improve its quality.",switchToLightMode:"Switch to light mode",switchToDarkMode:"Switch to dark mode",products:"Products",viewProduct:"View product",fromPrice:"From",unavailable:"Price unavailable",inStock:"In stock",outOfStock:"Out of stock",suggestions:["What services do you offer?","How can I contact you?","Where can I find more information?","Can you summarize this page?"]},o=n.projectConfig,s=n.overrides||{};return{...r,launcher:s.launcher||o?.theme_config?.launcher_label||r.launcher,title:s.title||o?.title||r.title,placeholder:s.placeholder||o?.placeholder||r.placeholder,suggestions:o?.starter_questions?.length?o.starter_questions:r.suggestions,...s}}const Mg=':host,.akilio-root{--akilio-primary: #0f766e;--akilio-primary-hover: #115e59;--akilio-primary-foreground: #ffffff;--akilio-accent: #2563eb;--akilio-radius: 22px;--akilio-panel-width: 440px;--akilio-z-index: 2147483647}:host{all:initial;display:block;direction:ltr;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;line-height:1.5;text-align:left;color-scheme:light dark;pointer-events:none}.akilio-launcher,.akilio-overlay,.akilio-panel{pointer-events:auto}:host *,:host *:before,:host *:after,.akilio-root,.akilio-root *:before,.akilio-root *:after{box-sizing:border-box}.akilio-root button,.akilio-root input,.akilio-root textarea,.akilio-root select{font:inherit;color:inherit}.akilio-root,.akilio-root *{box-sizing:border-box}.akilio-root{color:#18181b;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}.akilio-launcher{position:fixed;right:22px;bottom:22px;z-index:calc(var(--akilio-z-index) - 10);display:inline-flex;align-items:center;gap:10px;border:1px solid rgba(255,255,255,.22);border-radius:999px;background:linear-gradient(135deg,var(--akilio-primary),color-mix(in srgb,var(--akilio-primary) 80%,transparent));color:#fff!important;padding:11px 16px 11px 12px;cursor:pointer;box-shadow:0 24px 60px #18181b40,0 0 0 1px #09090b14;transition:transform .26s ease,box-shadow .18s ease,background .18s ease}.akilio-launcher:hover{transform:translateY(-2px);box-shadow:0 28px 70px #0891b240,0 0 0 1px #09090b14}.akilio-launcher span{display:grid;width:30px;height:30px;place-items:center;overflow:hidden;border-radius:999px;background:#fff!important}.akilio-launcher-logo{display:block;width:22px;height:22px;object-fit:contain}.akilio-launcher strong{font-size:14px;font-weight:750;letter-spacing:-.01em}.akilio-overlay{position:fixed;inset:0;z-index:calc(var(--akilio-z-index) - 2);border:0;background:#09090b75;-webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px);cursor:default}.akilio-panel{position:fixed;top:0;right:0;z-index:var(--akilio-z-index);display:flex;width:min(100vw,var(--akilio-panel-width));height:100dvh;transform:translate(103%);flex-direction:column;overflow:hidden;border-left:1px solid rgba(212,212,216,.9);background:#f8fafc;box-shadow:-30px 0 90px #0f172a3d;transition:transform .26s cubic-bezier(.2,.8,.2,1)}.akilio-panel--open{transform:translate(0)}.akilio-root[data-akilio-mode=floating] .akilio-panel{top:auto;right:22px;bottom:88px;width:min(400px,calc(100vw - 32px));height:min(650px,calc(100dvh - 116px));min-height:420px;transform:translateY(18px) scale(.98);transform-origin:right bottom;border:1px solid rgba(212,212,216,.9);border-radius:var(--akilio-radius);box-shadow:0 28px 80px #0f172a3d;opacity:0;visibility:hidden;pointer-events:none;transition:transform .22s cubic-bezier(.2,.8,.2,1),opacity .18s ease,visibility .18s ease}.akilio-root[data-akilio-mode=floating] .akilio-panel--open{transform:translateY(0) scale(1);opacity:1;visibility:visible;pointer-events:auto}.akilio-panel-glow{position:absolute;inset:0 0 auto;height:185px;pointer-events:none;background:radial-gradient(circle at 0% 0%,color-mix(in srgb,var(--akilio-primary) 35%,transparent),transparent 36%),radial-gradient(circle at 100% 0%,rgba(37,99,235,.22),transparent 34%)}.akilio-panel-header{position:relative;display:flex;align-items:flex-start;gap:12px;border-bottom:1px solid rgba(212,212,216,.82);background:#ffffffc7;padding:10px;-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px)}.akilio-logo,.akilio-empty-icon{display:grid;flex-shrink:0;place-items:center}.akilio-logo img{display:block;width:100%;height:100%;object-fit:contain;object-position:left center}.akilio-empty-icon{width:64px;height:64px;border:1px solid rgba(124,58,237,.12);border-radius:calc(var(--akilio-radius) - 4px);background:#ffffffe0;box-shadow:0 18px 42px #6d28d929}.akilio-empty-icon img{display:block;width:42px;height:42px;object-fit:contain}.akilio-header-content{min-width:0;flex:1}.akilio-header-topline{display:flex;min-width:0;align-items:center;justify-content:space-between;gap:10px}.akilio-header-title{display:flex;min-width:0;align-items:center;gap:8px}.akilio-header-title h2{overflow:hidden;margin:0;color:#09090b;font-size:14px;font-weight:800;letter-spacing:-.015em;text-overflow:ellipsis;white-space:nowrap}.akilio-online{display:inline-flex;align-items:center;gap:5px;border-radius:999px;background:#10b9811f;color:#047857;padding:3px 8px;font-size:10px;font-weight:800;white-space:nowrap}.akilio-online i{width:6px;height:6px;border-radius:999px;background:#10b981}.akilio-header-description{display:-webkit-box;margin:0;overflow:hidden;color:#71717a;font-size:12px;line-height:1.55;-webkit-box-orient:vertical;-webkit-line-clamp:3}.akilio-header-actions{display:flex;flex-shrink:0;align-items:center;gap:4px}.akilio-header-actions button{display:grid;width:25px;height:25px;place-items:center;border:0;border-radius:999px;background:transparent;color:#71717a;cursor:pointer;transition:background .16s ease,color .16s ease}.akilio-header-actions button:hover{background:#f4f4f5;color:#09090b}.akilio-header-actions svg{width:18px;height:18px}.akilio-thread{position:relative;display:flex;flex:1;flex-direction:column;gap:14px;overflow-y:auto;padding:18px 16px 22px}.akilio-message-row{display:flex;width:100%}.akilio-message-row--user{justify-content:flex-end}.akilio-message-row--assistant{justify-content:flex-start}.akilio-stream-activity{align-items:center;gap:10px;min-height:38px;padding:2px 4px;color:#52525b}.akilio-stream-activity-icon{display:grid;width:28px;height:28px;flex:0 0 28px;place-items:center;border:1px solid color-mix(in srgb,var(--akilio-primary) 22%,#d4d4d8);border-radius:999px;background:color-mix(in srgb,var(--akilio-primary) 8%,#fff);color:var(--akilio-primary)}.akilio-stream-activity-content{display:flex;min-width:0;align-items:center;gap:8px}.akilio-stream-activity-label{font-size:13px;font-weight:550;line-height:1.4;animation:akilio-status-in .18s ease-out}.akilio-stream-activity-pulse{width:6px;height:6px;flex:0 0 6px;border-radius:999px;background:var(--akilio-primary);animation:akilio-status-pulse 1.2s ease-in-out infinite}@keyframes akilio-status-in{0%{transform:translateY(2px);opacity:0}to{transform:translateY(0);opacity:1}}@keyframes akilio-status-pulse{0%,to{transform:scale(.75);opacity:.35}50%{transform:scale(1);opacity:1}}.akilio-bubble{max-width:88%;overflow:hidden;border:1px solid rgba(212,212,216,.86);border-radius:26px 26px 26px 8px;background:#fffffff0;color:#27272a;padding:13px 15px;box-shadow:0 10px 28px #0f172a12}.akilio-bubble--user{border-color:#ffffff26;border-bottom-right-radius:8px;border-bottom-left-radius:26px;background:linear-gradient(135deg,var(--akilio-primary),color-mix(in srgb,var(--akilio-primary) 80%,transparent));color:#fff}.akilio-bubble--error{border-color:#f8717159;background:#fef2f2;color:#991b1b}.akilio-bubble-meta{display:flex;align-items:center;gap:7px;margin-bottom:8px;color:var(--akilio-primary);font-size:10px;font-weight:850;letter-spacing:.15em;text-transform:uppercase}.akilio-mini-icon{width:14px;height:14px}.akilio-confidence{margin-left:auto;border-radius:999px;background:color-mix(in srgb,var(--akilio-primary) 11%,transparent);padding:2px 7px;color:var(--akilio-primary);letter-spacing:0;text-transform:none}.akilio-answer{color:inherit;font-size:13px;line-height:1.7}.akilio-answer h2{font-size:15px;font-weight:700;margin:0}.akilio-answer p{margin:.5rem 0}.akilio-answer p:first-child{margin-top:0}.akilio-answer p:last-child{margin-bottom:0}.akilio-answer ul,.akilio-answer ol{margin:.625rem 0 .625rem 1.25rem;padding-left:.75rem}.akilio-answer ul{list-style:disc}.akilio-answer ol{list-style:decimal}.akilio-answer li{margin:.25rem 0}.akilio-answer a{color:var(--akilio-primary);font-weight:700;text-decoration:underline;text-underline-offset:3px}.akilio-answer code{border-radius:7px;background:#0f172a14;padding:.12rem .35rem;font-size:.86em}.akilio-answer pre{margin:.75rem 0;overflow-x:auto;border:1px solid rgba(148,163,184,.2);border-radius:16px;background:#020617;padding:13px}.akilio-answer pre code{background:transparent;color:#e2e8f0;padding:0}.akilio-answer .hljs-keyword,.akilio-answer .hljs-selector-tag,.akilio-answer .hljs-built_in{color:#f0abfc}.akilio-answer .hljs-string,.akilio-answer .hljs-attr,.akilio-answer .hljs-symbol{color:#86efac}.akilio-answer .hljs-number,.akilio-answer .hljs-literal{color:#fcd34d}.akilio-answer .hljs-comment{color:#64748b;font-style:italic}.akilio-answer .hljs-title,.akilio-answer .hljs-function{color:#7dd3fc}.akilio-answer .hljs-variable{color:#fdba74}.akilio-answer--user{white-space:pre-wrap}.akilio-answer--user code{background:#ffffff29}.akilio-sources{margin-top:11px;overflow:hidden;border:1px solid rgba(212,212,216,.85);border-radius:16px;background:#f4f4f5c7}.akilio-sources summary{cursor:pointer;padding:9px 11px;color:#52525b;font-size:12px;font-weight:800}.akilio-sources-list{display:grid;gap:8px;border-top:1px solid rgba(212,212,216,.85);padding:8px}.akilio-source-card{display:grid;gap:3px;border:1px solid rgba(212,212,216,.82);border-radius:13px;background:#fff;padding:8px;font-size:12px}.akilio-source-card strong{color:#18181b}.akilio-source-card span{color:#71717a}.akilio-source-card a{overflow:hidden;color:var(--akilio-primary);text-overflow:ellipsis;white-space:nowrap}.akilio-feedback{display:flex;align-items:center;gap:7px;margin-top:11px;color:#71717a;font-size:11px}.akilio-feedback span{margin-right:auto}.akilio-feedback button{display:grid;width:28px;height:28px;place-items:center;border:1px solid rgba(212,212,216,.9);border-radius:999px;background:#fff;color:#71717a;cursor:pointer}.akilio-feedback button:hover,.akilio-feedback .akilio-feedback-active{border-color:color-mix(in srgb,var(--akilio-primary) 35%,#d4d4d8);color:var(--akilio-primary)}.akilio-feedback svg{width:14px;height:14px}.akilio-dots{display:flex;gap:6px;padding:2px 0}.akilio-dots span{width:8px;height:8px;border-radius:999px;background:var(--akilio-primary);animation:akilio-bounce .9s infinite ease-in-out}.akilio-dots span:nth-child(2){animation-delay:.1s}.akilio-dots span:nth-child(3){animation-delay:.2s}@keyframes akilio-bounce{0%,80%,to{transform:translateY(0);opacity:.45}40%{transform:translateY(-4px);opacity:1}}.akilio-empty{margin:auto;display:flex;max-width:340px;flex-direction:column;align-items:center;padding:34px 0;text-align:center}.akilio-empty-icon{width:58px;height:58px;margin-bottom:16px}.akilio-empty h3{margin:0;color:#09090b;font-size:17px;font-weight:850;letter-spacing:-.02em}.akilio-empty p{margin:8px 0 0;color:#71717a;font-size:14px;line-height:1.65}.akilio-suggestions{display:grid;width:100%;gap:9px;margin-top:18px}.akilio-suggestions button{border:1px solid rgba(212,212,216,.9);border-radius:16px;background:#fff;color:#3f3f46;cursor:pointer;padding:10px 12px;text-align:left;font-size:12px;font-weight:700;box-shadow:0 5px 14px #0f172a0a;transition:transform .15s ease,border-color .15s ease,box-shadow .15s ease}.akilio-suggestions button:hover{transform:translateY(-1px);border-color:color-mix(in srgb,var(--akilio-primary) 35%,#d4d4d8);box-shadow:0 12px 22px #0f172a14}.akilio-composer{position:relative;border-top:1px solid rgba(212,212,216,.85);background:#ffffffdb;padding:8px 12px;-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px)}.akilio-composer-box{display:flex;align-items:flex-end;gap:8px;border:1px solid rgba(212,212,216,.95);border-radius:24px;background:#f8fafc;padding:6px 12px;box-shadow:inset 0 1px 2px #0f172a0a;transition:border-color .15s ease,background .15s ease,box-shadow .15s ease}.akilio-composer-box:focus-within{border-color:color-mix(in srgb,var(--akilio-primary) 55%,#d4d4d8);background:#fff;box-shadow:0 0 0 4px color-mix(in srgb,var(--akilio-primary) 13%,transparent),inset 0 1px 2px #0f172a08}.akilio-composer textarea{flex:1;min-height:36px;max-height:120px;height:36px;overflow-y:hidden;resize:none;border:0;outline:0;background:transparent;color:#09090b;padding:6px 0;font:inherit;font-size:14px;line-height:1.5}.akilio-online--unavailable{color:#a16207}.akilio-online--unavailable i{background:#f59e0b;box-shadow:0 0 0 3px #f59e0b29}.akilio-composer textarea::placeholder{color:#a1a1aa}.akilio-composer-submit{flex-shrink:0;display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;border:0;border-radius:999px;background:var(--akilio-primary);color:#fff;cursor:pointer;padding:0;transition:background .15s ease,opacity .15s ease,transform .15s ease}.akilio-composer-submit:hover:not(:disabled){background:var(--akilio-primary-hover);transform:scale(1.05)}.akilio-composer-submit:active:not(:disabled){transform:scale(.98)}.akilio-composer-submit:disabled{opacity:.45;cursor:not-allowed}.akilio-composer-submit svg{width:16px;height:16px}.akilio-composer-help{margin-top:6px;padding:0 12px;color:#71717a;font-size:11px;line-height:1.4;display:flex;align-items:center;gap:4px}.akilio-powered-by{margin-top:6px;padding:0 4px;color:#71717a;font-size:10px;font-weight:600;line-height:1.2;text-align:center}.akilio-coachmark{position:fixed;right:22px;bottom:94px;z-index:calc(var(--akilio-z-index) - 1);display:flex;width:min(320px,calc(100vw - 32px));gap:11px;border:1px solid color-mix(in srgb,var(--akilio-primary) 24%,#d4d4d8);border-radius:18px;background:#fffffffa;color:#17211f;padding:15px 38px 15px 15px;pointer-events:auto;box-shadow:0 24px 64px #042f2e2e,0 0 0 1px #0f766e0a;animation:akilio-coachmark-in .2s cubic-bezier(.2,.8,.2,1)}.akilio-coachmark:after{position:absolute;right:30px;bottom:-7px;width:13px;height:13px;transform:rotate(45deg);border-right:1px solid color-mix(in srgb,var(--akilio-primary) 24%,#d4d4d8);border-bottom:1px solid color-mix(in srgb,var(--akilio-primary) 24%,#d4d4d8);background:#fff;content:""}.akilio-coachmark-icon{display:grid;width:32px;height:32px;flex:0 0 32px;place-items:center;border-radius:999px;background:color-mix(in srgb,var(--akilio-primary) 11%,#fff);color:var(--akilio-primary)}.akilio-coachmark-icon svg{width:17px;height:17px}.akilio-coachmark-content{min-width:0}.akilio-coachmark-content strong{display:block;margin:0 0 3px;color:#17211f;font-size:14px;line-height:1.35}.akilio-coachmark-content p{margin:0;color:#52525b;font-size:12px;line-height:1.5}.akilio-coachmark-action{margin-top:9px;border:0;border-radius:999px;background:var(--akilio-primary);color:var(--akilio-primary-foreground);padding:7px 12px;cursor:pointer;font-size:11px;font-weight:750}.akilio-coachmark-close{position:absolute;top:8px;right:8px;display:grid;width:26px;height:26px;place-items:center;border:0;border-radius:999px;background:transparent;color:#71717a;cursor:pointer;font-size:20px;line-height:1}.akilio-coachmark-close:hover{background:#f4f4f5;color:#18181b}@keyframes akilio-coachmark-in{0%{transform:translateY(8px) scale(.98);opacity:0}to{transform:translateY(0) scale(1);opacity:1}}@media(max-width:640px){.akilio-launcher{right:16px;bottom:16px;padding:10px 12px}.akilio-coachmark{right:16px;bottom:82px}.akilio-launcher strong{display:none}.akilio-panel{width:100vw}.akilio-bubble{max-width:94%}.akilio-composer-help{display:none}}.akilio-root[data-akilio-mode=inline]{width:100%;height:100%;min-height:520px}.akilio-panel--inline{position:relative;inset:auto;width:100%;height:100%;min-height:520px;transform:none;border:1px solid rgba(212,212,216,.9);border-radius:var(--akilio-radius);box-shadow:0 18px 50px #0f172a1f}.akilio-privacy{display:grid;gap:8px;border-top:1px solid rgba(212,212,216,.82);background:#ffffffe6;padding:10px 14px;font-size:11px;line-height:1.45}.akilio-privacy strong{color:#18181b}.akilio-privacy p{margin:2px 0 0;color:#71717a}.akilio-privacy a{color:var(--akilio-primary);font-weight:700}.akilio-privacy label{display:flex;align-items:flex-start;gap:8px;color:#3f3f46;cursor:pointer}.akilio-privacy input{margin-top:2px;accent-color:var(--akilio-primary)}.akilio-composer textarea:disabled{cursor:not-allowed;opacity:.65}.akilio-root button:focus-visible,.akilio-root a:focus-visible,.akilio-root input:focus-visible{outline:3px solid color-mix(in srgb,var(--akilio-primary) 45%,transparent);outline-offset:2px}.akilio-root .akilio-composer textarea:focus,.akilio-root .akilio-composer textarea:focus-visible{border:0;outline:none;box-shadow:none}@media(prefers-reduced-motion:reduce){.akilio-root *,.akilio-root *:before,.akilio-root *:after{scroll-behavior:auto!important;animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}.akilio-root[data-akilio-color-mode=dark]{color:#e4e4e7}.akilio-root[data-akilio-color-mode=dark] .akilio-panel,.akilio-root[data-akilio-color-mode=dark] .akilio-panel--inline{background:var(--akilio-surface, #09090b);border-color:#27272a}.akilio-root[data-akilio-color-mode=dark] .akilio-panel-header,.akilio-root[data-akilio-color-mode=dark] .akilio-privacy{background:#18181beb;border-color:#3f3f46}.akilio-root[data-akilio-color-mode=dark] .akilio-header-title h2,.akilio-root[data-akilio-color-mode=dark] .akilio-empty h3,.akilio-root[data-akilio-color-mode=dark] .akilio-privacy strong{color:var(--akilio-text, #fafafa)}.akilio-root[data-akilio-color-mode=dark] .akilio-header-description,.akilio-root[data-akilio-color-mode=dark] .akilio-empty p,.akilio-root[data-akilio-color-mode=dark] .akilio-privacy p,.akilio-root[data-akilio-color-mode=dark] .akilio-privacy label,.akilio-root[data-akilio-color-mode=dark] .akilio-stream-activity{color:var(--akilio-muted, #a1a1aa)}.akilio-root[data-akilio-color-mode=dark] .akilio-stream-activity-icon{border-color:color-mix(in srgb,var(--akilio-primary) 35%,#3f3f46);background:color-mix(in srgb,var(--akilio-primary) 15%,#18181b)}.akilio-root[data-akilio-color-mode=dark] .akilio-bubble{background:#18181b;border-color:#3f3f46;color:#e4e4e7;box-shadow:none}.akilio-root[data-akilio-color-mode=dark] .akilio-bubble--user{background:linear-gradient(135deg,var(--akilio-primary),var(--akilio-accent));color:var(--akilio-primary-foreground)}.akilio-root[data-akilio-color-mode=dark] .akilio-sources{background:#09090b;border-color:#3f3f46}.akilio-root[data-akilio-color-mode=dark] .akilio-sources-list{border-color:#3f3f46}.akilio-root[data-akilio-color-mode=dark] .akilio-source-card,.akilio-root[data-akilio-color-mode=dark] .akilio-feedback button,.akilio-root[data-akilio-color-mode=dark] .akilio-composer-box{background:#18181b;border-color:#3f3f46;color:#e4e4e7}.akilio-root[data-akilio-color-mode=dark] .akilio-source-card strong{color:#fafafa}.akilio-root[data-akilio-color-mode=dark] .akilio-source-card span,.akilio-root[data-akilio-color-mode=dark] .akilio-feedback{color:#a1a1aa}@media(prefers-color-scheme:dark){.akilio-root[data-akilio-color-mode=system] .akilio-panel,.akilio-root[data-akilio-color-mode=system] .akilio-panel--inline{background:#09090b;border-color:#27272a}.akilio-root[data-akilio-color-mode=system] .akilio-panel-header,.akilio-root[data-akilio-color-mode=system] .akilio-privacy{background:#18181beb;border-color:#3f3f46}.akilio-root[data-akilio-color-mode=system] .akilio-header-title h2,.akilio-root[data-akilio-color-mode=system] .akilio-empty h3,.akilio-root[data-akilio-color-mode=system] .akilio-privacy strong{color:#fafafa}.akilio-root[data-akilio-color-mode=system] .akilio-header-description,.akilio-root[data-akilio-color-mode=system] .akilio-empty p,.akilio-root[data-akilio-color-mode=system] .akilio-privacy p,.akilio-root[data-akilio-color-mode=system] .akilio-privacy label{color:#a1a1aa}.akilio-root[data-akilio-color-mode=system] .akilio-bubble{background:#18181b;border-color:#3f3f46;color:#e4e4e7;box-shadow:none}.akilio-root[data-akilio-color-mode=system] .akilio-bubble--user{background:linear-gradient(135deg,var(--akilio-primary),var(--akilio-accent));color:var(--akilio-primary-foreground)}.akilio-root[data-akilio-color-mode=system] .akilio-source-card,.akilio-root[data-akilio-color-mode=system] .akilio-feedback button,.akilio-root[data-akilio-color-mode=system] .akilio-composer-box{background:#18181b;border-color:#3f3f46;color:#e4e4e7}}@media(max-width:640px){.akilio-launcher{right:14px;bottom:max(14px,env(safe-area-inset-bottom));padding:10px}.akilio-launcher strong{display:none}.akilio-panel{width:100vw;height:100dvh;border-left:0}.akilio-root[data-akilio-mode=floating] .akilio-panel{right:14px;bottom:calc(76px + env(safe-area-inset-bottom));width:calc(100vw - 28px);height:min(640px,calc(100dvh - 104px - env(safe-area-inset-bottom)));min-height:min(420px,calc(100dvh - 104px));border:1px solid rgba(212,212,216,.9);border-radius:18px}.akilio-panel-header{padding-top:max(10px,env(safe-area-inset-top))}.akilio-thread{padding-inline:12px}.akilio-bubble{max-width:94%}.akilio-composer{padding-bottom:max(10px,env(safe-area-inset-bottom))}.akilio-root[data-akilio-mode=inline]{min-height:480px}.akilio-panel--inline{min-height:480px;border-radius:16px}}.akilio-root[data-akilio-color-mode=dark] .akilio-composer{background:#18181beb;border-color:#3f3f46}.akilio-root[data-akilio-color-mode=dark] .akilio-composer-box{background:#18181b;border-color:#3f3f46}.akilio-root[data-akilio-color-mode=dark] .akilio-composer textarea{color:var(--akilio-text, #fafafa);caret-color:var(--akilio-text, #fafafa);-webkit-text-fill-color:var(--akilio-text, #fafafa)}.akilio-root[data-akilio-color-mode=dark] .akilio-composer textarea::placeholder{color:var(--akilio-muted, #a1a1aa);-webkit-text-fill-color:var(--akilio-muted, #a1a1aa);opacity:1}.akilio-root[data-akilio-color-mode=dark] .akilio-composer-help,.akilio-root[data-akilio-color-mode=dark] .akilio-powered-by{color:var(--akilio-muted, #a1a1aa)}.akilio-root[data-akilio-color-mode=dark] .akilio-coachmark{border-color:color-mix(in srgb,var(--akilio-primary) 34%,#3f3f46);background:#18181bfa;color:#fafafa;box-shadow:0 24px 64px #0000006b}.akilio-root[data-akilio-color-mode=dark] .akilio-coachmark:after{border-color:color-mix(in srgb,var(--akilio-primary) 34%,#3f3f46);background:#18181b}.akilio-root[data-akilio-color-mode=dark] .akilio-coachmark-content strong{color:#fafafa}.akilio-root[data-akilio-color-mode=dark] .akilio-coachmark-content p,.akilio-root[data-akilio-color-mode=dark] .akilio-coachmark-close{color:#a1a1aa}.akilio-root[data-akilio-color-mode=dark] .akilio-coachmark-close:hover{background:#27272a;color:#fafafa}.akilio-root[data-akilio-color-mode=dark] .akilio-composer-box:focus-within{background:#18181b;border-color:color-mix(in srgb,var(--akilio-primary) 55%,#3f3f46)}.akilio-privacy-consent-copy{margin-top:6px!important}.akilio-privacy-actions{display:flex;justify-content:flex-end;gap:8px}.akilio-privacy-actions button{border:1px solid rgba(161,161,170,.65);border-radius:999px;padding:6px 12px;font:inherit;font-weight:700;cursor:pointer}.akilio-privacy-decline{background:transparent;color:#52525b}.akilio-privacy-accept{border-color:var(--akilio-primary)!important;background:var(--akilio-primary);color:#fff}.akilio-privacy-review{border:0;background:transparent;color:var(--akilio-primary);font:inherit;font-weight:700;text-decoration:underline;cursor:pointer;padding:0}.akilio-products{margin-top:14px;min-width:0}.akilio-products-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:9px;font-size:12px;color:#64748b}.akilio-products-heading span{display:inline-flex;align-items:center;justify-content:center;min-width:22px;height:22px;padding:0 7px;border-radius:999px;background:#eef2ff;color:#4338ca;font-weight:700}.akilio-products-grid,.akilio-products-grid--vertical{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.akilio-products-grid--horizontal{display:flex;flex-direction:column;gap:10px}@media(max-width:640px){.akilio-products-grid--vertical{grid-template-columns:1fr}}@media(max-width:390px){.akilio-products-grid--vertical{grid-template-columns:1fr}.akilio-products-grid--horizontal{gap:8px}}.akilio-product-card{min-width:0;overflow:hidden;border:1px solid #e2e8f0;border-radius:16px;background:#fff;box-shadow:0 6px 20px #0f172a0f}.akilio-product-media{position:relative;aspect-ratio:4 / 3;overflow:hidden;background:#f1f5f9}.akilio-product-media img{width:100%;height:100%;display:block;object-fit:cover;transition:transform .18s ease}.akilio-product-card:hover .akilio-product-media img{transform:scale(1.025)}.akilio-product-placeholder{width:100%;height:100%;display:grid;place-items:center;color:var(--akilio-primary);font-size:30px;font-weight:800;background:linear-gradient(145deg,#0891b21f,#2563eb14)}.akilio-stock{position:absolute;top:8px;right:8px;max-width:calc(100% - 16px);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:4px 7px;border-radius:999px;background:#7f1d1de6;color:#fff;font-size:9px;font-weight:700}.akilio-stock--available{background:#065f46e6}.akilio-product-body{padding:11px}.akilio-product-vendor,.akilio-product-variant{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#64748b;font-size:10px}.akilio-product-card h4{margin:4px 0 8px;min-height:34px;overflow:hidden;color:#0f172a;font-size:13px;line-height:1.3;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}.akilio-product-price{display:flex;flex-wrap:wrap;align-items:baseline;gap:5px}.akilio-product-price strong{color:#0f172a;font-size:14px}.akilio-product-price del{color:#94a3b8;font-size:10px}.akilio-product-action{width:auto;min-height:auto;display:inline-flex;align-items:center;justify-content:center;padding:6px 12px;border:0;border-radius:6px;background:transparent;color:var(--akilio-primary);font:inherit;font-size:11px;font-weight:700;text-decoration:underline;text-underline-offset:2px;cursor:pointer;transition:color .15s ease,background .15s ease}.akilio-product-action:hover{background:color-mix(in srgb,var(--akilio-primary) 8%,transparent);text-decoration:underline}.akilio-product-action:focus-visible{outline:3px solid color-mix(in srgb,var(--akilio-primary) 28%,transparent);outline-offset:2px}.akilio-product-action:disabled{opacity:.55;cursor:not-allowed}.akilio-root[data-akilio-color-mode=dark] .akilio-products-heading{color:#94a3b8}.akilio-root[data-akilio-color-mode=dark] .akilio-products-heading span{background:#312e81;color:#e0e7ff}.akilio-root[data-akilio-color-mode=dark] .akilio-product-card{background:#111827;border-color:#334155;box-shadow:none}.akilio-root[data-akilio-color-mode=dark] .akilio-product-media{background:#1e293b}.akilio-root[data-akilio-color-mode=dark] .akilio-product-card h4,.akilio-root[data-akilio-color-mode=dark] .akilio-product-price strong{color:#f8fafc}.akilio-root[data-akilio-color-mode=dark] .akilio-product-vendor,.akilio-root[data-akilio-color-mode=dark] .akilio-product-variant{color:#94a3b8}@media(max-width:390px){.akilio-products-grid{grid-template-columns:1fr}.akilio-product-media{aspect-ratio:16 / 9}}.akilio-response-suggestions{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px}.akilio-response-suggestions button{appearance:none;border:1px solid color-mix(in srgb,var(--akilio-primary) 26%,#d4d4d8);border-radius:15px;background:color-mix(in srgb,var(--akilio-primary) 7%,#ffffff);color:color-mix(in srgb,var(--akilio-primary) 72%,#18181b);cursor:pointer;padding:8px 11px;text-align:left;font:inherit;font-size:12px;font-weight:700;line-height:1.35;transition:transform .15s ease,border-color .15s ease,background .15s ease}.akilio-response-suggestions button:hover{transform:translateY(-1px);border-color:color-mix(in srgb,var(--akilio-primary) 52%,#d4d4d8);background:color-mix(in srgb,var(--akilio-primary) 12%,#ffffff)}.akilio-response-suggestions button:focus-visible{outline:3px solid color-mix(in srgb,var(--akilio-primary) 24%,transparent);outline-offset:2px}.akilio-root[data-akilio-color-mode=dark] .akilio-response-suggestions button{border-color:color-mix(in srgb,var(--akilio-primary) 34%,#3f3f46);background:color-mix(in srgb,var(--akilio-primary) 14%,#18181b);color:#f4f4f5}.akilio-product-card--vertical{display:flex;flex-direction:column;min-width:0;overflow:hidden;border:1px solid #e2e8f0;border-radius:16px;background:#fff;box-shadow:0 6px 20px #0f172a0f}.akilio-product-card--vertical .akilio-product-media{position:relative;aspect-ratio:4 / 3;overflow:hidden;background:#f1f5f9}.akilio-product-card--vertical .akilio-product-body{padding:11px;display:flex;flex-direction:column}.akilio-product-card--horizontal{display:flex;flex-direction:row;gap:12px;min-width:0;overflow:hidden;border:1px solid #e2e8f0;border-radius:16px;background:#fff;box-shadow:0 6px 20px #0f172a0f;align-items:stretch}.akilio-product-card--horizontal .akilio-product-media{flex:0 0 25%;min-width:80px;position:relative;aspect-ratio:1 / 1;overflow:hidden;background:#f1f5f9}.akilio-product-card--horizontal .akilio-product-body{flex:1;padding:11px;display:flex;flex-direction:column;justify-content:space-between;min-width:0}.akilio-product-card--horizontal .akilio-product-action{width:100%}.akilio-root[data-akilio-color-mode=dark] .akilio-product-card--vertical,.akilio-root[data-akilio-color-mode=dark] .akilio-product-card--horizontal{background:#111827;border-color:#334155;box-shadow:none}.akilio-root[data-akilio-color-mode=dark] .akilio-product-card--vertical .akilio-product-media,.akilio-root[data-akilio-color-mode=dark] .akilio-product-card--horizontal .akilio-product-media{background:#1e293b}@media(prefers-color-scheme:dark){.akilio-root[data-akilio-color-mode=system] .akilio-product-card--vertical,.akilio-root[data-akilio-color-mode=system] .akilio-product-card--horizontal{background:#111827;border-color:#334155;box-shadow:none}.akilio-root[data-akilio-color-mode=system] .akilio-product-card--vertical .akilio-product-media,.akilio-root[data-akilio-color-mode=system] .akilio-product-card--horizontal .akilio-product-media{background:#1e293b}}@media(max-width:480px){.akilio-product-card--horizontal{flex-direction:column;gap:0}.akilio-product-card--horizontal .akilio-product-media{flex:1;min-width:unset;aspect-ratio:4 / 3}}@media(max-width:390px){.akilio-product-card--vertical .akilio-product-media{aspect-ratio:16 / 9}.akilio-product-card--horizontal{flex-direction:column}.akilio-product-card--horizontal .akilio-product-media{aspect-ratio:16 / 9}}.source-ref{display:inline-flex;align-items:center;justify-content:center;margin-left:.3rem;padding:.1rem .45rem;border-radius:999px;font-size:.68rem;font-weight:600;letter-spacing:.01em;line-height:1.2;vertical-align:super;color:#334155;background:linear-gradient(180deg,#f8fafc,#eef2ff);border:1px solid #dbeafe;box-shadow:0 1px 2px #0f172a14;-webkit-user-select:none;user-select:none;white-space:nowrap}';class yo extends Error{code;constructor(a,r){super(r),this.name="AkilioPublicApiError",this.code=a}}function Kn(n,a){typeof window>"u"||window.dispatchEvent(new CustomEvent(`akilio:${n}`,{detail:a||{}}))}function fn(n,a){return new yo(n,a)}function sr(){return typeof crypto<"u"&&crypto.randomUUID?crypto.randomUUID():`${Date.now()}-${Math.random().toString(16).slice(2)}`}function il(){return new Date().toISOString()}function Rg(n){const a=typeof n=="function"?n():n||{};return typeof window>"u"?a:{url:a.url||window.location.href,title:a.title||document.title,...a}}function cw(n,a){const r={...n?.theme_config||{},...a||{}};return{"--akilio-primary":String(r.primary_color||"#0F766E"),"--akilio-primary-hover":String(r.primary_dark_color||"#115E59"),"--akilio-primary-foreground":String(r.primary_foreground_color||"#ffffff"),"--akilio-accent":String(r.accent_color||"#2563eb"),"--akilio-radius":String(r.radius||"22px"),"--akilio-panel-width":`${Number(r.panel_width||440)}px`,"--akilio-z-index":String(Number(r.z_index||2147483647)),"--akilio-surface":String(r.surface_color||""),"--akilio-text":String(r.text_color||""),"--akilio-muted":String(r.muted_color||"")}}function uw(n,a){me.useEffect(()=>{if(typeof document>"u")return;const r=document.documentElement;return r.classList.toggle("akilio-panel-open",n&&a),()=>r.classList.remove("akilio-panel-open")},[n,a])}function Dg(n){return Array.isArray(n)?n.filter(a=>typeof a=="string").map(a=>a.trim()).filter(Boolean).slice(0,6):[]}function fw(n){if(typeof n.answer=="string"&&n.answer.trim())return n.answer;const a=n.content;if(a&&typeof a=="object")for(const r of["answer","text","message"]){const o=a[r];if(typeof o=="string"&&o.trim())return o}return""}function Lg(n){if(!n)return null;try{const a=JSON.parse(n);return a&&typeof a=="object"?a:null}catch{return null}}function dw(n,a=!0){return{id:sr(),role:"assistant",content:fw(n),backendMessageId:n.message_id,conversationId:n.conversation_id,confidence:n.confidence,sources:n.sources||[],provider:n.provider,model:n.model,commerce:a&&n.commerce||null,suggestions:Dg(n.suggestions),createdAt:il()}}function zg({apiBaseUrl:n="https://api.akilio-ai.com/v1",projectKey:a,locale:r="en",mode:o="floating",colorMode:s="system",allowColorModeToggle:f=!0,showAkilioBranding:u=!0,streaming:g=!0,defaultOpen:m=!1,open:p,launcher:b="default",persistOpenState:h=!0,enableTour:v=!0,tourDelayMs:k=3e3,tourVersion:x="v1",enableLocalHistory:C=!0,enableServerHistorySync:M=!0,anonymousId:w,externalUserId:q,channel:H,audience:Q,productArea:te,assistantMode:L,pageContext:ce,auth:ee,accessToken:fe,privacyNotice:z,privacyNoticeUrl:se,requireConsent:re,consentNoticeVersion:_e="v1",initialConsent:oe=!1,onConsentChange:X,copy:Y,theme:G,className:K,onOpenChange:ve,onMessage:S,onProductClick:Be,onError:T}){const _=me.useRef(null),J=me.useRef(null),pe=me.useRef(0),de=me.useRef({open:!1,busy:!1,conversationId:null}),Ce=`akilio:${a}:config`,[Ue,kt]=me.useState(null),Ke=me.useMemo(()=>({...ee||{},accessToken:ee?.accessToken||fe}),[fe,ee]),gt=me.useMemo(()=>new ow({apiBaseUrl:n,auth:Ke,mode:o,locale:r}),[n,Ke,o,r]),zn=WS(),[Vt,bi]=me.useState(Ag(localStorage.getItem(Ce),null)),[en,Ve]=me.useState(null),[Qt,Sn]=me.useState(!1),[Vn,In]=me.useState({stage:"",message:""}),[Ni,Bn]=me.useState(null),[$n,Rt]=ew({enabled:C,projectKey:a,locale:r}),[lt,j]=or({enabled:C,key:`akilio:${a}:${r}:conversation-id:v2`}),ae=me.useMemo(()=>sr(),[a]),[Ae]=or({enabled:!0,key:`akilio:${a}:widget-subject:v1`,initialValue:ae}),[qe,nt]=or({enabled:h,key:`akilio:${a}:panel-open:v2`,initialValue:m?"true":""}),[$t,dn]=or({enabled:!0,key:`akilio:${a}:coachmark:${x||"v1"}`}),[tn,Jt]=me.useState(!1),[xt,Et]=or({enabled:!0,key:`akilio:${a}:consent:${_e}`,initialValue:oe?"true":""}),[St,nn]=me.useState(m),[Ci,La]=or({enabled:!0,key:`akilio:${a}:color-mode:v1`}),[Wi,Oi]=me.useState("light"),Ot=o==="inline",N=o==="floating",V=o==="hybrid"||o==="side-panel",le=!Ot&&(o==="side-panel"||o==="hybrid"&&zn),De=!Ot&&!N&&(o==="drawer"||o==="hybrid"&&!zn),Qe=Ot||(p??(h&&qe==="true"||St)),he=s||G?.color_mode||Vt?.theme_config?.color_mode||"system",ge=Ci==="light"||Ci==="dark"||Ci==="system"?Ci:he,Se=ge==="system"?Wi:ge,Ge=me.useMemo(()=>sw({locale:r,projectConfig:Vt,overrides:Y}),[Y,r,Vt]),ct=Vt?.widget_policy,vn=ct?.available!==!1,pn=ct?.commerce_enabled!==!1,Mi=ct?.assistant_mode||L,ea=ct?.branding==="akilio_required"||ct?.branding!=="white_label"&&u,wn=ct?.branding==="akilio_required",It=me.useMemo(()=>pn?$n:$n.map(ne=>ne.commerce?{...ne,commerce:null}:ne),[pn,$n]),Bt=me.useMemo(()=>cw(Vt,G),[Vt,G]),Zn=re??Vt?.require_consent??!1,ta=z||Vt?.privacy_notice||"",na=se||Vt?.privacy_notice_url,cr=xt==="true"||xt==="accepted"?"accepted":xt==="rejected"?"rejected":"pending",yi=cr==="accepted",Ut=q||w||Ae||void 0,Nt=me.useCallback(ne=>{if(Ot)return;const Te=de.current.open!==ne;de.current.open=ne,p===void 0&&(nn(ne),h&&nt(ne?"true":"")),ve?.(ne),Te&&Kn(ne?"open":"close")},[p,Ot,ve,h,nt]),Xn=me.useMemo(()=>({open:Qe,openChat:()=>Nt(!0),closeChat:()=>Nt(!1),toggleChat:()=>Nt(!Qe)}),[Qe,Nt]),gn=me.useCallback(()=>{Jt(!1),dn("seen")},[dn]),Ri=me.useCallback(()=>{gn(),Nt(!0)},[gn,Nt]),vi=me.useCallback(ne=>{Et(ne==="pending"?"":ne),ne!=="pending"&&X?.(ne==="accepted")},[X,Et]);me.useEffect(()=>{if(typeof window>"u"||!window.matchMedia)return;const ne=window.matchMedia("(prefers-color-scheme: dark)"),Te=()=>Oi(ne.matches?"dark":"light");return Te(),ne.addEventListener?.("change",Te),()=>ne.removeEventListener?.("change",Te)},[]);const Dt=me.useCallback(()=>{La(Se==="dark"?"light":"dark")},[Se,La]);uw(Qe,le&&V),me.useEffect(()=>{if(!(v&&!Ot&&b==="default"&&vn&&!Qe)){Jt(!1),Qe&&v&&dn("seen");return}const Te=(Me=!1)=>{(Me||$t!=="seen")&&Jt(!0)},Oe=window.setTimeout(()=>Te(!1),Math.min(6e4,Math.max(0,Number(k)||0))),Le=()=>Te(!0);return window.addEventListener("akilio:start-tour",Le),()=>{window.clearTimeout(Oe),window.removeEventListener("akilio:start-tour",Le)}},[v,Ot,b,Qe,dn,k,$t,vn]),me.useEffect(()=>{if(!tn)return;const ne=Te=>{Te.key==="Escape"&&gn()};return window.addEventListener("keydown",ne),()=>window.removeEventListener("keydown",ne)},[tn,gn]),me.useEffect(()=>{let ne=!1;return gt.getProjectConfig(a).then(Te=>{ne||(window.localStorage.setItem(Ce,JSON.stringify(Te)),bi(Te),Ve(null))}).catch(Te=>{ne||(Ve(Te.message),T?.(Te))}),()=>{ne=!0}},[gt,T,a]),me.useEffect(()=>{Ut&&gt.prepareWidgetToken(a,Ut).catch(ne=>T?.(ne))},[gt,T,a,Ut]),me.useEffect(()=>{if(!M||!Ut||!lt||$n.length>0)return;let ne=!1;return gt.getConversation(a,Ut,lt).then(Te=>{ne||Rt(Te.messages.map(Oe=>({id:Oe.id,backendMessageId:Oe.role==="assistant"?Oe.id:void 0,conversationId:Te.id,role:Oe.role,content:Oe.content,sources:Oe.sources||[],confidence:Oe.confidence,commerce:(()=>{const Le=Oe.metadata&&typeof Oe.metadata=="object"?Oe.metadata:null,Me=Lg(Oe.structured_content);return pn&&(Le?.commerce||Me?.commerce)||null})(),suggestions:(()=>{const Le=Oe.metadata&&typeof Oe.metadata=="object"?Oe.metadata:null,Me=Lg(Oe.structured_content);return Dg(Le?.suggestions||Me?.suggestions)})(),createdAt:Oe.created_at})).slice(-lr))}).catch(()=>j("")),()=>{ne=!0}},[gt,pn,lt,M,$n.length,a,j,Rt,Ut]);const oi=me.useCallback(()=>{Rt([]),j("")},[j,Rt]),za=me.useCallback(async ne=>{if(!ne)throw fn("INVALID_QUESTION","Question is empty");if(!vn)throw fn("INVALID_QUESTION","This widget is not currently available");if(Qt)throw fn("BUSY","An answer is already in progress");if(Zn&&!yi)throw fn("INVALID_QUESTION","Privacy consent is required");const Te=Rg(ce),Oe={id:sr(),role:"user",content:ne,createdAt:il(),conversationId:lt||void 0};Rt(Me=>[...Me,Oe].slice(-lr)),S?.(Oe),Kn("question",{question:ne}),Sn(!0),de.current.busy=!0,Kn("answer-start",{question:ne}),In({stage:"",message:""}),Bn(null);const Le=sr();try{const Me={project_key:a,conversation_id:lt||void 0,message:ne,locale:r,channel:H||Te.channel||"docs",audience:Q||Te.audience,product_area:te||Te.productArea,assistant_mode:Mi||void 0,page:{url:Te.url,title:Te.title,...Te.metadata||{}},anonymous_id:w,external_user_id:q,consent:{granted:yi,granted_at:yi?il():void 0,notice_version:_e}};let Re="";const kn=g?await gt.sendMessageStream(a,Ut,Me,{onStatus:(Ht,Di)=>{const Qn=Di.message||Di.label;In({stage:Ht,message:typeof Qn=="string"?Qn:""})},onConversation:Ht=>{de.current.conversationId=Ht,j(Ht)},onDelta:Ht=>{Re+=Ht,Kn("answer-delta",{delta:Ht}),Bn({id:Le,role:"assistant",content:Re,conversationId:lt||void 0,createdAt:il(),streaming:!0})}}):await gt.sendMessage(a,Ut,Me);de.current.conversationId=kn.conversation_id,j(kn.conversation_id);const si={...dw(kn,pn),id:Re?Le:sr(),streaming:!1};return Bn(null),Rt(Ht=>[...Ht,si].slice(-lr)),S?.(si),Kn("answer-complete",{response:kn}),kn}catch(Me){const Re=Me instanceof Error?Me:new Error(Ge.requestFailed),kn={id:sr(),role:"assistant",content:Re.message||Ge.requestFailed,createdAt:il(),error:!0};throw Bn(null),Rt(si=>[...si,kn].slice(-lr)),T?.(Re),Kn("error",{code:Me instanceof yo?Me.code:"STREAM_FAILED",message:Re.message||Ge.requestFailed}),Re}finally{Sn(!1),de.current.busy=!1,In({stage:"",message:""})}},[w,Q,H,gt,pn,yi,_e,lt,Ge.requestFailed,Zn,Mi,q,Qt,r,T,S,ce,te,a,j,Rt,g,Ut,vn]),W=me.useCallback(()=>{const ne=J.current;ne&&(J.current=null,ne.timer&&window.clearTimeout(ne.timer),ne.reject(fn("TYPING_CANCELLED","Draft typing was cancelled")),Kn("typing-cancel",{draft:_.current?.getDraft()||""}))},[]),ke=me.useCallback((ne,Te)=>{Te&&J.current&&W(),Kn("draft-change",{draft:ne})},[W]);de.current={open:Qe,busy:Qt,conversationId:lt||null},me.useEffect(()=>{if(typeof window>"u"||window.AkilioWidget)return;const ne=()=>{if(!_.current)throw fn("NOT_READY","The widget is not ready");return _.current},Te=async(Le,Me={})=>{if(W(),typeof Le!="string")throw fn("INVALID_QUESTION","Draft must be a string");ne().setDraft(Le,{focus:Me.focus,clearExisting:Me.clearExisting??!0}),await new Promise(Re=>window.setTimeout(Re,0))},Oe=Object.freeze({open:async()=>{Nt(!0),await new Promise(Le=>window.setTimeout(Le,0))},close:async()=>{Nt(!1),await new Promise(Le=>window.setTimeout(Le,0))},setDraft:Te,typeDraft:async(Le,Me={})=>{if(W(),typeof Le!="string"||!Le.length)throw fn("INVALID_QUESTION","Question must not be empty");const Re=ne(),kn=Me.clearExisting===!1?Re.getDraft():"",si=Math.max(0,Number(Me.interval??35)),Ht=++pe.current;return Kn("typing-start",{textLength:Le.length}),new Promise(async(Di,Qn)=>{J.current={id:Ht,reject:Qn};try{for(let ki=1;ki<=Le.length;ki+=1){if(await new Promise(mn=>{const Ei=window.setTimeout(mn,si);J.current?.id===Ht&&(J.current.timer=Ei)}),J.current?.id!==Ht)return;Re.setDraft(`${kn}${Le.slice(0,ki)}`,{clearExisting:!0,focus:Me.focus&&ki===1})}if(J.current?.id!==Ht)return;J.current=null,Kn("typing-complete",{draft:Re.getDraft()}),Di()}catch(ki){J.current=null,Qn(ki)}})},clearDraft:async()=>{W(),ne().clearDraft()},cancelTyping:W,submit:async()=>{if(de.current.busy)throw fn("BUSY","An answer is already in progress");const Le=ne();if(!Le.getDraft().trim())throw fn("EMPTY_DRAFT","The draft is empty");try{return await Le.submitDraft()}catch(Re){throw Re instanceof yo?Re:Re instanceof Error&&Re.message==="BUSY"?fn("BUSY","An answer is already in progress"):Re instanceof Error&&Re.message==="EMPTY_DRAFT"?fn("EMPTY_DRAFT","The draft is empty"):Re instanceof Error&&Re.message==="INVALID_QUESTION"?fn("INVALID_QUESTION","The question is invalid"):fn("STREAM_FAILED",Re instanceof Error?Re.message:"Streaming failed")}},ask:async(Le,Me)=>(await Te(Le,Me),Oe.submit()),reset:async()=>{try{if(W(),de.current.busy)throw fn("BUSY","An answer is already in progress");oi(),de.current.conversationId=null,ne().clearDraft(),Bn(null),Kn("reset")}catch(Le){throw Le instanceof yo?Le:fn("RESET_FAILED","The conversation could not be reset")}},getState:()=>({ready:!!_.current,open:de.current.open,busy:de.current.busy,typing:!!J.current,draft:_.current?.getDraft()||"",conversationId:de.current.conversationId})});return window.AkilioWidget=Oe,Kn("ready"),()=>{W(),window.AkilioWidget===Oe&&delete window.AkilioWidget}},[W,oi,Nt]);const Pe=me.useCallback((ne,Te,Oe)=>{pn&&(Be?.(Te,Oe),gt.sendCommerceEvent(a,Ut,{event_type:ne.commerce?.capability==="product_search"?"search":"recommendation",product_id:Te.id,variant_id:Oe?.id||null,conversation_id:ne.conversationId||lt||null,external_user_id:q||"",value:Oe?.price||null,currency:Oe?.currency||"",metadata:{source:"widget_product_card",capability:ne.commerce?.capability,product_url:Te.url||""}}).catch(Le=>T?.(Le)))},[gt,pn,lt,q,T,Be,a,Ut]),ot=me.useCallback(async(ne,Te)=>{if(ne.backendMessageId){Rt(Oe=>Oe.map(Le=>Le.id===ne.id?{...Le,feedback:Te}:Le));try{await gt.sendFeedback({projectKey:a,subject:Ut,messageId:ne.backendMessageId,rating:Te,metadata:{conversation_id:ne.conversationId||lt,locale:r,page:Rg(ce)}})}catch(Oe){T?.(Oe instanceof Error?Oe:new Error("Feedback request failed"))}}},[gt,lt,r,T,ce,a,Rt,Ut]);return D.jsxs("div",{ref:kt,className:Aa("akilio-root",K),style:Bt,"data-akilio-mode":Ot?"inline":N?"floating":le?"side-panel":"drawer","data-akilio-color-mode":Se,children:[!Ot&&b==="default"&&D.jsxs(D.Fragment,{children:[tn&&D.jsx(QS,{title:Ge.tourTitle,message:Ge.tourMessage,actionLabel:Ge.tourAction,dismissLabel:Ge.tourDismiss,onDismiss:gn,onOpen:Ri,primaryColor:Bt["--akilio-primary"]||void 0,showBranding:u}),D.jsx(XS,{label:ea?Ge.launcher:Ge.title,onClick:()=>{gn(),Xn.toggleChat()},showBranding:ea,primaryColor:Bt["--akilio-primary"]||void 0})]}),!Ot&&typeof b=="function"&&b(Xn),De&&Qe&&D.jsx("button",{type:"button",className:"akilio-overlay","aria-label":Ge.close,onClick:()=>Nt(!1)}),D.jsx(ZS,{ref:_,open:Qe,isDesktop:le,inline:Ot,colorMode:Se,allowColorModeToggle:f,widgetAvailable:vn,showBranding:ea,showPoweredBy:wn,locale:r,copy:{...Ge,description:en?`${Ge.description} ${Ge.configFailed}: ${en}`:Ge.description},messages:It,streamingMessage:Ni,loading:Qt,loadingLabel:Vn.message||(()=>{const ne=Vn.stage.toLowerCase();return ne.includes("retriev")||ne.includes("search")?Ge.searching:ne.includes("ground")||ne.includes("source")?Ge.reviewingSources:ne.includes("valid")||ne.includes("check")||ne.includes("safety")?Ge.checkingAnswer:ne.includes("answer")||ne.includes("generat")||ne.includes("prepar")?Ge.preparingAnswer:Ge.loading})(),consentDecision:cr,consentGranted:yi,requireConsent:Zn,privacyNotice:ta,privacyNoticeUrl:na,onConsentDecision:vi,onClose:()=>Nt(!1),onToggleColorMode:Dt,onClear:oi,onSubmit:za,onDraftChange:ke,onFeedback:ot,onProductClick:Pe,onSuggestion:ne=>{za(ne).catch(()=>{})},primaryColor:Bt["--akilio-primary"]||void 0})]})}function pw(n){const a=n.styleIsolation??"shadow",r=(n.mode??"floating")!=="inline",o=me.useRef(null),[s,f]=me.useState(null);return me.useEffect(()=>{if(a!=="shadow"||!o.current){f(null);return}const u=o.current,g=u.shadowRoot??u.attachShadow({mode:"open"});if(r&&(u.style.position="fixed",u.style.inset="0",u.style.width="100vw",u.style.height="100dvh",u.style.margin="0",u.style.padding="0",u.style.border="0",u.style.background="transparent",u.style.pointerEvents="none",u.style.zIndex="2147483647",u.style.isolation="isolate",typeof u.showPopover=="function")){u.setAttribute("popover","manual");try{u.showPopover()}catch{u.removeAttribute("popover")}}let m=g.querySelector("style[data-akilio-styles]");m||(m=document.createElement("style"),m.setAttribute("data-akilio-styles",""),m.textContent=Mg,g.appendChild(m));let p=g.querySelector("[data-akilio-shadow-mount]");return p||(p=document.createElement("div"),p.setAttribute("data-akilio-shadow-mount",""),g.appendChild(p)),f(p),()=>{if(typeof u.hidePopover=="function")try{u.hidePopover()}catch{}u.removeAttribute("popover"),u.removeAttribute("style")}},[a,r]),a==="shadow"?D.jsx("div",{ref:o,"data-akilio-shadow-host":"true",children:s&&Sy.createPortal(D.jsx(zg,{...n}),s)}):D.jsxs(D.Fragment,{children:[a==="scoped"&&D.jsx("style",{"data-akilio-styles":!0,children:Mg}),D.jsx(zg,{...n})]})}const vo=new Map;function gw(){return typeof crypto<"u"&&crypto.randomUUID?crypto.randomUUID():`akilio-${Date.now()}-${Math.random().toString(16).slice(2)}`}function mw(n){if(n instanceof HTMLElement)return n;if(typeof n=="string"){const r=document.querySelector(n);if(!r)throw new Error(`Akilio target not found: ${n}`);return r}const a=document.createElement("div");return a.setAttribute("data-akilio-root","true"),document.body.appendChild(a),a}function Ai(n,a=!1){return n==null||n===""?a:["1","true","yes","on"].includes(n.toLowerCase())}function hw(n){if(n)try{return JSON.parse(n)}catch{return}}function bw(n){const a=n.dataset,r=a.apiBaseUrl||a.apiUrl||"https://api.akilio-ai.com",o=a.projectKey;if(!o)throw new Error("Missing data-project-key on Akilio script tag");return{apiBaseUrl:r,projectKey:o,locale:a.locale||document.documentElement.lang||"en",mode:a.mode||"floating",colorMode:a.colorMode||"system",allowColorModeToggle:Ai(a.allowColorModeToggle,!0),showAkilioBranding:Ai(a.showAkilioBranding,!0),streaming:Ai(a.streaming,!0),styleIsolation:a.styleIsolation||"shadow",defaultOpen:Ai(a.defaultOpen),launcher:a.launcher==="hidden"?"hidden":"default",persistOpenState:Ai(a.persistOpenState,!0),enableTour:Ai(a.enableTour,!0),tourDelayMs:a.tourDelayMs?Math.max(0,Number(a.tourDelayMs)||0):void 0,tourVersion:a.tourVersion||void 0,enableLocalHistory:Ai(a.enableLocalHistory,!0),enableServerHistorySync:Ai(a.enableServerHistorySync,!0),anonymousId:a.anonymousId,externalUserId:a.externalUserId,accessToken:a.accessToken||a.widgetToken,auth:a.apiKey?{apiKey:a.apiKey,apiKeyHeader:a.apiKeyHeader}:void 0,privacyNotice:a.privacyNotice,privacyNoticeUrl:a.privacyNoticeUrl,requireConsent:Ai(a.requireConsent),consentNoticeVersion:a.consentNoticeVersion||"v1",channel:a.channel||"website",audience:a.audience||"visitor",productArea:a.productArea,assistantMode:a.assistantMode,theme:hw(a.theme),pageContext:()=>({url:window.location.href,title:document.title,channel:a.channel||"website",audience:a.audience||"visitor",productArea:a.productArea,assistantMode:a.assistantMode}),integration:a.integration}}function ko(n){if(typeof document>"u")throw new Error("Akilio can only be mounted in a browser environment");const a=mw(n.target),r=a.id||gw();a.id||(a.id=r);const o=xy.createRoot(a),{target:s,...f}=n;let u=n.open,g=n.open??n.defaultOpen??!1;const m=()=>{o.render(D.jsx(pw,{...f,open:u,onOpenChange:h=>{g=h,n.onOpenChange?.(h),u!==void 0&&(u=h,m())}}))},p=h=>{u=h,g=h,m(),n.onOpenChange?.(h)};m();const b={id:r,element:a,root:o,open:()=>p(!0),close:()=>p(!1),toggle:()=>p(!g),destroy:()=>{o.unmount(),vo.delete(r),a.getAttribute("data-akilio-root")==="true"&&a.remove()}};return vo.set(r,b),b}function Ig(n){vo.get(n)?.destroy()}function Bg(){for(const n of Array.from(vo.values()))n.destroy()}const yw={mount:ko,init:ko,destroy:Ig,destroyAll:Bg};if(typeof window<"u"){window.Akilio=yw;const n=()=>{if(window.__AKILIO_WIDGET_AUTO_MOUNTED__)return;const r=document.currentScript||document.querySelector("script[data-akilio-widget]");if(r&&r.dataset.autoInit!=="false"&&r.dataset.akilioMounted!=="true"){r.dataset.akilioMounted="true",window.__AKILIO_WIDGET_AUTO_MOUNTED__=!0;try{ko(bw(r))}catch(o){delete r.dataset.akilioMounted,delete window.__AKILIO_WIDGET_AUTO_MOUNTED__,console.error("[Akilio] Widget initialization failed:",o)}}};document.readyState==="loading"?document.addEventListener("DOMContentLoaded",n,{once:!0}):n()}return qr.destroy=Ig,qr.destroyAll=Bg,qr.mount=ko,Object.defineProperty(qr,Symbol.toStringTag,{value:"Module"}),qr})({});
38
+ `});return b(),g(),k+`
39
+ `+(s===1?"=":"-").repeat(k.length-(Math.max(k.lastIndexOf("\r"),k.lastIndexOf(`
40
+ `))+1))}const c="#".repeat(s),p=r.enter("headingAtx"),h=r.enter("phrasing");d.move(c+" ");let m=r.containerPhrasing(t,{before:"# ",after:`
41
+ `,...d.current()});return/^[\t ]/.test(m)&&(m=Fo(m.charCodeAt(0))+m.slice(1)),m=m?c+" "+m:c,r.options.closeAtx&&(m+=" "+c),h(),p(),m}Zm.peek=Cw;function Zm(t){return t.value||""}function Cw(){return"<"}Qm.peek=Mw;function Qm(t,i,r,l){const s=hu(r),d=s==='"'?"Quote":"Apostrophe",c=r.enter("image");let p=r.enter("label");const h=r.createTracker(l);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${d}`),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 Mw(){return"!"}Xm.peek=Ow;function Xm(t,i,r,l){const s=t.referenceType,d=r.enter("imageReference");let c=r.enter("label");const p=r.createTracker(l);let h=p.move("![");const m=r.safe(t.alt,{before:h,after:"]",...p.current()});h+=p.move(m+"]["),c();const g=r.stack;r.stack=[],c=r.enter("reference");const b=r.safe(r.associationId(t),{before:h,after:"]",...p.current()});return c(),r.stack=g,d(),s==="full"||!m||m!==b?h+=p.move(b+"]"):s==="shortcut"?h=h.slice(0,-1):h+=p.move("]"),h}function Ow(){return"!"}Wm.peek=Rw;function Wm(t,i,r){let l=t.value||"",s="`",d=-1;for(;new RegExp("(^|[^`])"+s+"([^`]|$)").test(l);)s+="`";for(/[^ \r\n]/.test(l)&&(/^[ \r\n]/.test(l)&&/[ \r\n]$/.test(l)||/^`|`$/.test(l))&&(l=" "+l+" ");++d<r.unsafe.length;){const c=r.unsafe[d],p=r.compilePattern(c);let h;if(c.atBreak)for(;h=p.exec(l);){let m=h.index;l.charCodeAt(m)===10&&l.charCodeAt(m-1)===13&&m--,l=l.slice(0,m)+" "+l.slice(h.index+1)}}return s+l+s}function Rw(){return"`"}function Jm(t,i){const r=Ic(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))}eh.peek=Dw;function eh(t,i,r,l){const s=hu(r),d=s==='"'?"Quote":"Apostrophe",c=r.createTracker(l);let p,h;if(Jm(t,r)){const g=r.stack;r.stack=[],p=r.enter("autolink");let b=c.move("<");return b+=c.move(r.containerPhrasing(t,{before:b,after:">",...c.current()})),b+=c.move(">"),p(),r.stack=g,b}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${d}`),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 Dw(t,i,r){return Jm(t,r)?"<":"["}th.peek=zw;function th(t,i,r,l){const s=t.referenceType,d=r.enter("linkReference");let c=r.enter("label");const p=r.createTracker(l);let h=p.move("[");const m=r.containerPhrasing(t,{before:h,after:"]",...p.current()});h+=p.move(m+"]["),c();const g=r.stack;r.stack=[],c=r.enter("reference");const b=r.safe(r.associationId(t),{before:h,after:"]",...p.current()});return c(),r.stack=g,d(),s==="full"||!m||m!==b?h+=p.move(b+"]"):s==="shortcut"?h=h.slice(0,-1):h+=p.move("]"),h}function zw(){return"["}function gu(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 Lw(t){const i=gu(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 Iw(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 nh(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 Bw(t,i,r,l){const s=r.enter("list"),d=r.bulletCurrent;let c=t.ordered?Iw(r):gu(r);const p=t.ordered?c==="."?")":".":Lw(r);let h=i&&r.bulletLastUsed?c===r.bulletLastUsed:!1;if(!t.ordered){const g=t.children?t.children[0]:void 0;if((c==="*"||c==="-")&&g&&(!g.children||!g.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),nh(r)===c&&g){let b=-1;for(;++b<t.children.length;){const k=t.children[b];if(k&&k.type==="listItem"&&k.children&&k.children[0]&&k.children[0].type==="thematicBreak"){h=!0;break}}}}h&&(c=p),r.bulletCurrent=c;const m=r.containerFlow(t,l);return r.bulletLastUsed=c,r.bulletCurrent=d,s(),m}function Uw(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 qw(t,i,r,l){const s=Uw(r);let d=r.bulletCurrent||gu(r);i&&i.type==="list"&&i.ordered&&(d=(typeof i.start=="number"&&i.start>-1?i.start:1)+(r.options.incrementListMarker===!1?0:i.children.indexOf(t))+d);let c=d.length+1;(s==="tab"||s==="mixed"&&(i&&i.type==="list"&&i.spread||t.spread))&&(c=Math.ceil(c/4)*4);const p=r.createTracker(l);p.move(d+" ".repeat(c-d.length)),p.shift(c);const h=r.enter("listItem"),m=r.indentLines(r.containerFlow(t,p.current()),g);return h(),m;function g(b,k,x){return k?(x?"":" ".repeat(c))+b:(x?d:d+" ".repeat(c-d.length))+b}}function jw(t,i,r,l){const s=r.enter("paragraph"),d=r.enter("phrasing"),c=r.containerPhrasing(t,l);return d(),s(),c}const Hw=qo(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function Fw(t,i,r,l){return(t.children.some(function(c){return Hw(c)})?r.containerPhrasing:r.containerFlow).call(r,t,l)}function Pw(t){const i=t.options.strong||"*";if(i!=="*"&&i!=="_")throw new Error("Cannot serialize strong with `"+i+"` for `options.strong`, expected `*`, or `_`");return i}ih.peek=Gw;function ih(t,i,r,l){const s=Pw(r),d=r.enter("strong"),c=r.createTracker(l),p=c.move(s+s);let h=c.move(r.containerPhrasing(t,{after:s,before:p,...c.current()}));const m=h.charCodeAt(0),g=Wl(l.before.charCodeAt(l.before.length-1),m,s);g.inside&&(h=Fo(m)+h.slice(1));const b=h.charCodeAt(h.length-1),k=Wl(l.after.charCodeAt(0),b,s);k.inside&&(h=h.slice(0,-1)+Fo(b));const x=c.move(s+s);return d(),r.attentionEncodeSurroundingInfo={after:k.outside,before:g.outside},p+h+x}function Gw(t,i,r){return r.options.strong||"*"}function Yw(t,i,r,l){return r.safe(t.value,l)}function Vw(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 $w(t,i,r){const l=(nh(r)+(r.options.ruleSpaces?" ":"")).repeat(Vw(r));return r.options.ruleSpaces?l.slice(0,-1):l}const ah={blockquote:gw,break:$m,code:_w,definition:ww,emphasis:Km,hardBreak:$m,heading:Nw,html:Zm,image:Qm,imageReference:Xm,inlineCode:Wm,link:eh,linkReference:th,list:Bw,listItem:qw,paragraph:jw,root:Fw,strong:ih,text:Yw,thematicBreak:$w};function Kw(){return{enter:{table:Zw,tableData:rh,tableHeader:rh,tableRow:Xw},exit:{codeText:Ww,table:Qw,tableData:bu,tableHeader:bu,tableRow:bu}}}function Zw(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 Qw(t){this.exit(t),this.data.inTable=void 0}function Xw(t){this.enter({type:"tableRow",children:[]},t)}function bu(t){this.exit(t)}function rh(t){this.enter({type:"tableCell",children:[]},t)}function Ww(t){let i=this.resume();this.data.inTable&&(i=i.replace(/\\([\\|])/g,Jw));const r=this.stack[this.stack.length-1];r.type,r.value=i,this.exit(t)}function Jw(t,i){return i==="|"?i:t}function eS(t){const i=t||{},r=i.tableCellPadding,l=i.tablePipeAlign,s=i.stringLength,d=r?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
42
+ `,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:k,table:c,tableCell:h,tableRow:p}};function c(x,w,T,A){return m(g(x,T,A),x.align)}function p(x,w,T,A){const S=b(x,T,A),L=m([S]);return L.slice(0,L.indexOf(`
43
+ `))}function h(x,w,T,A){const S=T.enter("tableCell"),L=T.enter("phrasing"),I=T.containerPhrasing(x,{...A,before:d,after:d});return L(),S(),I}function m(x,w){return mw(x,{align:w,alignDelimiters:l,padding:r,stringLength:s})}function g(x,w,T){const A=x.children;let S=-1;const L=[],I=w.enter("table");for(;++S<A.length;)L[S]=b(A[S],w,T);return I(),L}function b(x,w,T){const A=x.children;let S=-1;const L=[],I=w.enter("tableRow");for(;++S<A.length;)L[S]=h(A[S],x,w,T);return I(),L}function k(x,w,T){let A=ah.inlineCode(x,w,T);return T.stack.includes("tableCell")&&(A=A.replace(/\|/g,"\\$&")),A}}function tS(){return{exit:{taskListCheckValueChecked:oh,taskListCheckValueUnchecked:oh,paragraph:iS}}}function nS(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:aS}}}function oh(t){const i=this.stack[this.stack.length-2];i.type,i.checked=t.type==="taskListCheckValueChecked"}function iS(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 l=r.children[0];if(l&&l.type==="text"){const s=i.children;let d=-1,c;for(;++d<s.length;){const p=s[d];if(p.type==="paragraph"){c=p;break}}c===r&&(l.value=l.value.slice(1),l.value.length===0?r.children.shift():r.position&&l.position&&typeof l.position.start.offset=="number"&&(l.position.start.column++,l.position.start.offset++,r.position.start=Object.assign({},l.position.start)))}}this.exit(t)}function aS(t,i,r,l){const s=t.children[0],d=typeof t.checked=="boolean"&&s&&s.type==="paragraph",c="["+(t.checked?"x":" ")+"] ",p=r.createTracker(l);d&&p.move(c);let h=ah.listItem(t,i,r,{...l,...p.current()});return d&&(h=h.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,m)),h;function m(g){return g+c}}function rS(){return[BE(),aw(),sw(),Kw(),tS()]}function oS(t){return{extensions:[UE(),rw(t),cw(),eS(t),nS()]}}const lS={tokenize:pS,partial:!0},lh={tokenize:mS,partial:!0},sh={tokenize:hS,partial:!0},ch={tokenize:gS,partial:!0},sS={tokenize:bS,partial:!0},uh={name:"wwwAutolink",tokenize:dS,previous:fh},dh={name:"protocolAutolink",tokenize:fS,previous:ph},ta={name:"emailAutolink",tokenize:uS,previous:mh},ji={};function cS(){return{text:ji}}let cr=48;for(;cr<123;)ji[cr]=ta,cr++,cr===58?cr=65:cr===91&&(cr=97);ji[43]=ta,ji[45]=ta,ji[46]=ta,ji[95]=ta,ji[72]=[ta,dh],ji[104]=[ta,dh],ji[87]=[ta,uh],ji[119]=[ta,uh];function uS(t,i,r){const l=this;let s,d;return c;function c(b){return!yu(b)||!mh.call(l,l.previous)||ku(l.events)?r(b):(t.enter("literalAutolink"),t.enter("literalAutolinkEmail"),p(b))}function p(b){return yu(b)?(t.consume(b),p):b===64?(t.consume(b),h):r(b)}function h(b){return b===46?t.check(sS,g,m)(b):b===45||b===95||Tn(b)?(d=!0,t.consume(b),h):g(b)}function m(b){return t.consume(b),s=!0,h}function g(b){return d&&s&&Dn(l.previous)?(t.exit("literalAutolinkEmail"),t.exit("literalAutolink"),i(b)):r(b)}}function dS(t,i,r){const l=this;return s;function s(c){return c!==87&&c!==119||!fh.call(l,l.previous)||ku(l.events)?r(c):(t.enter("literalAutolink"),t.enter("literalAutolinkWww"),t.check(lS,t.attempt(lh,t.attempt(sh,d),r),r)(c))}function d(c){return t.exit("literalAutolinkWww"),t.exit("literalAutolink"),i(c)}}function fS(t,i,r){const l=this;let s="",d=!1;return c;function c(b){return(b===72||b===104)&&ph.call(l,l.previous)&&!ku(l.events)?(t.enter("literalAutolink"),t.enter("literalAutolinkHttp"),s+=String.fromCodePoint(b),t.consume(b),p):r(b)}function p(b){if(Dn(b)&&s.length<5)return s+=String.fromCodePoint(b),t.consume(b),p;if(b===58){const k=s.toLowerCase();if(k==="http"||k==="https")return t.consume(b),h}return r(b)}function h(b){return b===47?(t.consume(b),d?m:(d=!0,h)):r(b)}function m(b){return b===null||Dl(b)||_t(b)||or(b)||zl(b)?r(b):t.attempt(lh,t.attempt(sh,g),r)(b)}function g(b){return t.exit("literalAutolinkHttp"),t.exit("literalAutolink"),i(b)}}function pS(t,i,r){let l=0;return s;function s(c){return(c===87||c===119)&&l<3?(l++,t.consume(c),s):c===46&&l===3?(t.consume(c),d):r(c)}function d(c){return c===null?r(c):i(c)}}function mS(t,i,r){let l,s,d;return c;function c(m){return m===46||m===95?t.check(ch,h,p)(m):m===null||_t(m)||or(m)||m!==45&&zl(m)?h(m):(d=!0,t.consume(m),c)}function p(m){return m===95?l=!0:(s=l,l=void 0),t.consume(m),c}function h(m){return s||l||!d?r(m):i(m)}}function hS(t,i){let r=0,l=0;return s;function s(c){return c===40?(r++,t.consume(c),s):c===41&&l<r?d(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(ch,i,d)(c):c===null||_t(c)||or(c)?i(c):(t.consume(c),s)}function d(c){return c===41&&l++,t.consume(c),s}}function gS(t,i,r){return l;function l(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),l):p===38?(t.consume(p),d):p===93?(t.consume(p),s):p===60||p===null||_t(p)||or(p)?i(p):r(p)}function s(p){return p===null||p===40||p===91||_t(p)||or(p)?i(p):l(p)}function d(p){return Dn(p)?c(p):r(p)}function c(p){return p===59?(t.consume(p),l):Dn(p)?(t.consume(p),c):r(p)}}function bS(t,i,r){return l;function l(d){return t.consume(d),s}function s(d){return Tn(d)?r(d):i(d)}}function fh(t){return t===null||t===40||t===42||t===95||t===91||t===93||t===126||_t(t)}function ph(t){return!Dn(t)}function mh(t){return!(t===47||yu(t))}function yu(t){return t===43||t===45||t===46||t===95||Tn(t)}function ku(t){let i=t.length,r=!1;for(;i--;){const l=t[i][1];if((l.type==="labelLink"||l.type==="labelImage")&&!l._balanced){r=!0;break}if(l._gfmAutolinkLiteralWalkedInto){r=!1;break}}return t.length>0&&!r&&(t[t.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),r}const yS={tokenize:TS,partial:!0};function kS(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:ES,continuation:{tokenize:wS},exit:SS}},text:{91:{name:"gfmFootnoteCall",tokenize:_S},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:xS,resolveTo:vS}}}}function xS(t,i,r){const l=this;let s=l.events.length;const d=l.parser.gfmFootnotes||(l.parser.gfmFootnotes=[]);let c;for(;s--;){const h=l.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=Ai(l.sliceSerialize({start:c.end,end:l.now()}));return m.codePointAt(0)!==94||!d.includes(m.slice(1))?r(h):(t.enter("gfmFootnoteCallLabelMarker"),t.consume(h),t.exit("gfmFootnoteCallLabelMarker"),i(h))}}function vS(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 l={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 d={type:"gfmFootnoteCallString",start:Object.assign({},s.end),end:Object.assign({},t[t.length-1][1].start)},c={type:"chunkString",contentType:"string",start:Object.assign({},d.start),end:Object.assign({},d.end)},p=[t[r+1],t[r+2],["enter",l,i],t[r+3],t[r+4],["enter",s,i],["exit",s,i],["enter",d,i],["enter",c,i],["exit",c,i],["exit",d,i],t[t.length-2],t[t.length-1],["exit",l,i]];return t.splice(r,t.length-r+1,...p),t}function _S(t,i,r){const l=this,s=l.parser.gfmFootnotes||(l.parser.gfmFootnotes=[]);let d=0,c;return p;function p(b){return t.enter("gfmFootnoteCall"),t.enter("gfmFootnoteCallLabelMarker"),t.consume(b),t.exit("gfmFootnoteCallLabelMarker"),h}function h(b){return b!==94?r(b):(t.enter("gfmFootnoteCallMarker"),t.consume(b),t.exit("gfmFootnoteCallMarker"),t.enter("gfmFootnoteCallString"),t.enter("chunkString").contentType="string",m)}function m(b){if(d>999||b===93&&!c||b===null||b===91||_t(b))return r(b);if(b===93){t.exit("chunkString");const k=t.exit("gfmFootnoteCallString");return s.includes(Ai(l.sliceSerialize(k)))?(t.enter("gfmFootnoteCallLabelMarker"),t.consume(b),t.exit("gfmFootnoteCallLabelMarker"),t.exit("gfmFootnoteCall"),i):r(b)}return _t(b)||(c=!0),d++,t.consume(b),b===92?g:m}function g(b){return b===91||b===92||b===93?(t.consume(b),d++,m):m(b)}}function ES(t,i,r){const l=this,s=l.parser.gfmFootnotes||(l.parser.gfmFootnotes=[]);let d,c=0,p;return h;function h(w){return t.enter("gfmFootnoteDefinition")._container=!0,t.enter("gfmFootnoteDefinitionLabel"),t.enter("gfmFootnoteDefinitionLabelMarker"),t.consume(w),t.exit("gfmFootnoteDefinitionLabelMarker"),m}function m(w){return w===94?(t.enter("gfmFootnoteDefinitionMarker"),t.consume(w),t.exit("gfmFootnoteDefinitionMarker"),t.enter("gfmFootnoteDefinitionLabelString"),t.enter("chunkString").contentType="string",g):r(w)}function g(w){if(c>999||w===93&&!p||w===null||w===91||_t(w))return r(w);if(w===93){t.exit("chunkString");const T=t.exit("gfmFootnoteDefinitionLabelString");return d=Ai(l.sliceSerialize(T)),t.enter("gfmFootnoteDefinitionLabelMarker"),t.consume(w),t.exit("gfmFootnoteDefinitionLabelMarker"),t.exit("gfmFootnoteDefinitionLabel"),k}return _t(w)||(p=!0),c++,t.consume(w),w===92?b:g}function b(w){return w===91||w===92||w===93?(t.consume(w),c++,g):g(w)}function k(w){return w===58?(t.enter("definitionMarker"),t.consume(w),t.exit("definitionMarker"),s.includes(d)||s.push(d),rt(t,x,"gfmFootnoteDefinitionWhitespace")):r(w)}function x(w){return i(w)}}function wS(t,i,r){return t.check(zo,i,t.attempt(yS,i,r))}function SS(t){t.exit("gfmFootnoteDefinition")}function TS(t,i,r){const l=this;return rt(t,s,"gfmFootnoteDefinitionIndent",5);function s(d){const c=l.events[l.events.length-1];return c&&c[1].type==="gfmFootnoteDefinitionIndent"&&c[2].sliceSerialize(c[1],!0).length===4?i(d):r(d)}}function AS(t){let r=(t||{}).singleTilde;const l={name:"strikethrough",tokenize:d,resolveAll:s};return r==null&&(r=!0),{text:{126:l},insideSpan:{null:[l]},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 g={type:"strikethrough",start:Object.assign({},c[m][1].start),end:Object.assign({},c[h][1].end)},b={type:"strikethroughText",start:Object.assign({},c[m][1].end),end:Object.assign({},c[h][1].start)},k=[["enter",g,p],["enter",c[m][1],p],["exit",c[m][1],p],["enter",b,p]],x=p.parser.constructs.insideSpan.null;x&&Jn(k,k.length,0,Ll(x,c.slice(m+1,h),p)),Jn(k,k.length,0,[["exit",b,p],["enter",c[h][1],p],["exit",c[h][1],p],["exit",g,p]]),Jn(c,m-1,h-m+3,k),h=m+k.length-2;break}}for(h=-1;++h<c.length;)c[h][1].type==="strikethroughSequenceTemporary"&&(c[h][1].type="data");return c}function d(c,p,h){const m=this.previous,g=this.events;let b=0;return k;function k(w){return m===126&&g[g.length-1][1].type!=="characterEscape"?h(w):(c.enter("strikethroughSequenceTemporary"),x(w))}function x(w){const T=jr(m);if(w===126)return b>1?h(w):(c.consume(w),b++,x);if(b<2&&!r)return h(w);const A=c.exit("strikethroughSequenceTemporary"),S=jr(w);return A._open=!S||S===2&&!!T,A._close=!T||T===2&&!!S,p(w)}}}class NS{constructor(){this.map=[]}add(i,r,l){CS(this,i,r,l)}consume(i){if(this.map.sort(function(d,c){return d[0]-c[0]}),this.map.length===0)return;let r=this.map.length;const l=[];for(;r>0;)r-=1,l.push(i.slice(this.map[r][0]+this.map[r][1]),this.map[r][2]),i.length=this.map[r][0];l.push(i.slice()),i.length=0;let s=l.pop();for(;s;){for(const d of s)i.push(d);s=l.pop()}this.map.length=0}}function CS(t,i,r,l){let s=0;if(!(r===0&&l.length===0)){for(;s<t.map.length;){if(t.map[s][0]===i){t.map[s][1]+=r,t.map[s][2].push(...l);return}s+=1}t.map.push([i,r,l])}}function MS(t,i){let r=!1;const l=[];for(;i<t.length;){const s=t[i];if(r){if(s[0]==="enter")s[1].type==="tableContent"&&l.push(t[i+1][1].type==="tableDelimiterMarker"?"left":"none");else if(s[1].type==="tableContent"){if(t[i-1][1].type==="tableDelimiterMarker"){const d=l.length-1;l[d]=l[d]==="left"?"center":"right"}}else if(s[1].type==="tableDelimiterRow")break}else s[0]==="enter"&&s[1].type==="tableDelimiterRow"&&(r=!0);i+=1}return l}function OS(){return{flow:{null:{name:"table",tokenize:RS,resolveAll:DS}}}}function RS(t,i,r){const l=this;let s=0,d=0,c;return p;function p(B){let ue=l.events.length-1;for(;ue>-1;){const de=l.events[ue][1].type;if(de==="lineEnding"||de==="linePrefix")ue--;else break}const re=ue>-1?l.events[ue][1].type:null,Ae=re==="tableHead"||re==="tableRow"?R:h;return Ae===R&&l.parser.lazy[l.now().line]?r(B):Ae(B)}function h(B){return t.enter("tableHead"),t.enter("tableRow"),m(B)}function m(B){return B===124||(c=!0,d+=1),g(B)}function g(B){return B===null?r(B):Re(B)?d>1?(d=0,l.interrupt=!0,t.exit("tableRow"),t.enter("lineEnding"),t.consume(B),t.exit("lineEnding"),x):r(B):We(B)?rt(t,g,"whitespace")(B):(d+=1,c&&(c=!1,s+=1),B===124?(t.enter("tableCellDivider"),t.consume(B),t.exit("tableCellDivider"),c=!0,g):(t.enter("data"),b(B)))}function b(B){return B===null||B===124||_t(B)?(t.exit("data"),g(B)):(t.consume(B),B===92?k:b)}function k(B){return B===92||B===124?(t.consume(B),b):b(B)}function x(B){return l.interrupt=!1,l.parser.lazy[l.now().line]?r(B):(t.enter("tableDelimiterRow"),c=!1,We(B)?rt(t,w,"linePrefix",l.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(B):w(B))}function w(B){return B===45||B===58?A(B):B===124?(c=!0,t.enter("tableCellDivider"),t.consume(B),t.exit("tableCellDivider"),T):Y(B)}function T(B){return We(B)?rt(t,A,"whitespace")(B):A(B)}function A(B){return B===58?(d+=1,c=!0,t.enter("tableDelimiterMarker"),t.consume(B),t.exit("tableDelimiterMarker"),S):B===45?(d+=1,S(B)):B===null||Re(B)?F(B):Y(B)}function S(B){return B===45?(t.enter("tableDelimiterFiller"),L(B)):Y(B)}function L(B){return B===45?(t.consume(B),L):B===58?(c=!0,t.exit("tableDelimiterFiller"),t.enter("tableDelimiterMarker"),t.consume(B),t.exit("tableDelimiterMarker"),I):(t.exit("tableDelimiterFiller"),I(B))}function I(B){return We(B)?rt(t,F,"whitespace")(B):F(B)}function F(B){return B===124?w(B):B===null||Re(B)?!c||s!==d?Y(B):(t.exit("tableDelimiterRow"),t.exit("tableHead"),i(B)):Y(B)}function Y(B){return r(B)}function R(B){return t.enter("tableRow"),le(B)}function le(B){return B===124?(t.enter("tableCellDivider"),t.consume(B),t.exit("tableCellDivider"),le):B===null||Re(B)?(t.exit("tableRow"),i(B)):We(B)?rt(t,le,"whitespace")(B):(t.enter("data"),ae(B))}function ae(B){return B===null||B===124||_t(B)?(t.exit("data"),le(B)):(t.consume(B),B===92?he:ae)}function he(B){return B===92||B===124?(t.consume(B),ae):ae(B)}}function DS(t,i){let r=-1,l=!0,s=0,d=[0,0,0,0],c=[0,0,0,0],p=!1,h=0,m,g,b;const k=new NS;for(;++r<t.length;){const x=t[r],w=x[1];x[0]==="enter"?w.type==="tableHead"?(p=!1,h!==0&&(hh(k,i,h,m,g),g=void 0,h=0),m={type:"table",start:Object.assign({},w.start),end:Object.assign({},w.end)},k.add(r,0,[["enter",m,i]])):w.type==="tableRow"||w.type==="tableDelimiterRow"?(l=!0,b=void 0,d=[0,0,0,0],c=[0,r+1,0,0],p&&(p=!1,g={type:"tableBody",start:Object.assign({},w.start),end:Object.assign({},w.end)},k.add(r,0,[["enter",g,i]])),s=w.type==="tableDelimiterRow"?2:g?3:1):s&&(w.type==="data"||w.type==="tableDelimiterMarker"||w.type==="tableDelimiterFiller")?(l=!1,c[2]===0&&(d[1]!==0&&(c[0]=c[1],b=Jl(k,i,d,s,void 0,b),d=[0,0,0,0]),c[2]=r)):w.type==="tableCellDivider"&&(l?l=!1:(d[1]!==0&&(c[0]=c[1],b=Jl(k,i,d,s,void 0,b)),d=c,c=[d[1],r,0,0])):w.type==="tableHead"?(p=!0,h=r):w.type==="tableRow"||w.type==="tableDelimiterRow"?(h=r,d[1]!==0?(c[0]=c[1],b=Jl(k,i,d,s,r,b)):c[1]!==0&&(b=Jl(k,i,c,s,r,b)),s=0):s&&(w.type==="data"||w.type==="tableDelimiterMarker"||w.type==="tableDelimiterFiller")&&(c[3]=r)}for(h!==0&&hh(k,i,h,m,g),k.consume(i.events),r=-1;++r<i.events.length;){const x=i.events[r];x[0]==="enter"&&x[1].type==="table"&&(x[1]._align=MS(i.events,r))}return t}function Jl(t,i,r,l,s,d){const c=l===1?"tableHeader":l===2?"tableDelimiter":"tableData",p="tableContent";r[0]!==0&&(d.end=Object.assign({},Pr(i.events,r[0])),t.add(r[0],0,[["exit",d,i]]));const h=Pr(i.events,r[1]);if(d={type:c,start:Object.assign({},h),end:Object.assign({},h)},t.add(r[1],0,[["enter",d,i]]),r[2]!==0){const m=Pr(i.events,r[2]),g=Pr(i.events,r[3]),b={type:p,start:Object.assign({},m),end:Object.assign({},g)};if(t.add(r[2],0,[["enter",b,i]]),l!==2){const k=i.events[r[2]],x=i.events[r[3]];if(k[1].end=Object.assign({},x[1].end),k[1].type="chunkText",k[1].contentType="text",r[3]>r[2]+1){const w=r[2]+1,T=r[3]-r[2]-1;t.add(w,T,[])}}t.add(r[3]+1,0,[["exit",b,i]])}return s!==void 0&&(d.end=Object.assign({},Pr(i.events,s)),t.add(s,0,[["exit",d,i]]),d=void 0),d}function hh(t,i,r,l,s){const d=[],c=Pr(i.events,r);s&&(s.end=Object.assign({},c),d.push(["exit",s,i])),l.end=Object.assign({},c),d.push(["exit",l,i]),t.add(r+1,0,d)}function Pr(t,i){const r=t[i],l=r[0]==="enter"?"start":"end";return r[1][l]}const zS={name:"tasklistCheck",tokenize:IS};function LS(){return{text:{91:zS}}}function IS(t,i,r){const l=this;return s;function s(h){return l.previous!==null||!l._gfmTasklistFirstContentOfListItem?r(h):(t.enter("taskListCheck"),t.enter("taskListCheckMarker"),t.consume(h),t.exit("taskListCheckMarker"),d)}function d(h){return _t(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 Re(h)?i(h):We(h)?t.check({tokenize:BS},i,r)(h):r(h)}}function BS(t,i,r){return rt(t,l,"whitespace");function l(s){return s===null?r(s):i(s)}}function US(t){return gp([cS(),kS(),AS(t),OS(),LS()])}const qS={};function jS(t){const i=this,r=t||qS,l=i.data(),s=l.micromarkExtensions||(l.micromarkExtensions=[]),d=l.fromMarkdownExtensions||(l.fromMarkdownExtensions=[]),c=l.toMarkdownExtensions||(l.toMarkdownExtensions=[]);s.push(US(r)),d.push(rS()),c.push(oS(r))}function HS(t){const i=new RegExp(`(?<!]\\(|]\\(<|href=["']|src=["'])(https?:\\/\\/[^\\s<>"')]+)(?![^[]*\\]\\))`,"g");return t.replace(i,r=>{const l=r.replace(/[.,;:!?]+$/g,""),s=r.slice(l.length);return`[${l}](${l})${s}`})}function FS(t){return t.replace(/\[source\s+(\d+)\]/gi,(i,r)=>`[\`${r}\`](#source-${r})`)}function PS(t){const i=HS(t);return FS(i)}const GS=G.memo(function({content:i}){return v.jsx(U1,{rehypePlugins:[ME],remarkPlugins:[jS],children:PS(i)})});function YS(t,i){return t.type==="add_to_cart"?i.addToCart:t.type==="compare"?i.compareProduct:i.viewProduct}function gh({type:t}){return t==="add_to_cart"?v.jsxs("svg",{viewBox:"0 0 24 24",fill:"none","aria-hidden":"true",children:[v.jsx("path",{d:"M3.5 5h2l1.7 9.1a2 2 0 0 0 2 1.7h7.9a2 2 0 0 0 2-1.6L20.4 8H6.1"}),v.jsx("path",{d:"M10 11h5M12.5 8.5v5"}),v.jsx("circle",{cx:"9.5",cy:"19",r:"1.25"}),v.jsx("circle",{cx:"17.5",cy:"19",r:"1.25"})]}):v.jsxs("svg",{viewBox:"0 0 24 24",fill:"none","aria-hidden":"true",children:[v.jsx("path",{d:"M7 4v16M17 4v16M4 7h6M14 7h6M4 17h6M14 17h6"}),v.jsx("path",{d:"m8 9 2-2-2-2M16 15l-2 2 2 2"})]})}function bh({actions:t,products:i,copy:r,onAction:l,embedded:s=!1}){const[d,c]=G.useState(null),[p,h]=G.useState(null),[m,g]=G.useState(null),[b,k]=G.useState(null),x=t.filter(w=>(w.type==="compare"||w.type==="add_to_cart")&&i.some(T=>T.id===w.product_id));return x.length?v.jsxs("div",{className:`akilio-commerce-actions${s?" akilio-commerce-actions--embedded":""}`,"aria-live":"polite",children:[x.map(w=>{const T=`${w.type}:${w.product_id||""}:${w.variant_id||""}`,A=i.find(I=>I.id===w.product_id),S=A?.variants.find(I=>I.id===w.variant_id),L=w.requires_confirmation===!0&&w.type==="add_to_cart";return m===T?v.jsxs("span",{className:"akilio-commerce-action-success",children:[v.jsx("span",{className:"akilio-commerce-success-icon","aria-hidden":"true",children:"✓"}),v.jsxs("span",{children:[v.jsx("strong",{children:r.commerceActionComplete}),A?.title?v.jsx("small",{children:A.title}):null]})]},T):d===T?v.jsxs("div",{className:"akilio-commerce-confirmation",children:[v.jsxs("div",{className:"akilio-commerce-confirmation-product",children:[A?.image_url?v.jsx("img",{src:A.image_url,alt:"",loading:"lazy"}):v.jsx("span",{className:"akilio-commerce-confirmation-icon",children:v.jsx(gh,{type:w.type})}),v.jsxs("span",{children:[v.jsx("strong",{children:A?.title}),S?.title?v.jsx("small",{children:S.title}):null]})]}),v.jsxs("div",{className:"akilio-commerce-confirmation-actions",children:[v.jsxs("button",{type:"button",className:"akilio-commerce-confirm",disabled:p===T,onClick:()=>{h(T),k(null),l(w).then(()=>{g(T),c(null)}).catch(()=>k(r.commerceActionFailed)).finally(()=>h(null))},children:[p===T?v.jsx("span",{className:"akilio-commerce-spinner","aria-hidden":"true"}):null,p===T?r.commerceActionWorking:r.commerceActionConfirm]}),v.jsx("button",{type:"button",className:"akilio-commerce-cancel",disabled:p===T,onClick:()=>{c(null),k(null)},children:r.commerceActionCancel})]}),b&&v.jsx("small",{role:"alert",children:b})]},T):v.jsxs("button",{type:"button",className:`akilio-commerce-action akilio-commerce-action--${w.type}`,onClick:()=>{if(k(null),L){c(T);return}h(T),l(w).catch(()=>k(r.commerceActionFailed)).finally(()=>h(null))},disabled:p===T,children:[v.jsx("span",{className:"akilio-commerce-action-icon",children:p===T?v.jsx("span",{className:"akilio-commerce-spinner","aria-hidden":"true"}):v.jsx(gh,{type:w.type})}),v.jsxs("span",{className:"akilio-commerce-action-copy",children:[v.jsx("strong",{children:p===T?r.commerceActionWorking:YS(w,r)}),A?.title?v.jsxs("small",{children:[A.title,S?.title?` · ${S.title}`:""]}):null]}),v.jsx("span",{className:"akilio-commerce-action-arrow","aria-hidden":"true",children:"→"})]},T)}),b&&!d?v.jsx("small",{role:"alert",children:b}):null]}):null}function VS(t){return t.variants?.find(i=>i.available)||t.variants?.[0]}function yh(t,i,r){if(!t)return"";const l=Number(t);if(!Number.isFinite(l))return t;try{return new Intl.NumberFormat(r,{style:i?"currency":"decimal",currency:i||void 0,maximumFractionDigits:2}).format(l)}catch{return`${l.toFixed(2)}${i?` ${i}`:""}`}}function $S({product:t,copy:i,locale:r,layout:l="vertical",onProductClick:s,actions:d=[],onCommerceAction:c}){const p=VS(t),h=!!p?.available&&t.available!==!1,m=yh(p?.price,p?.currency,r),g=yh(p?.compare_at_price||void 0,p?.currency,r);return v.jsxs("article",{className:`akilio-product-card akilio-product-card--${l}`,role:"listitem",children:[v.jsxs("div",{className:"akilio-product-media",children:[t.image_url?v.jsx("img",{src:t.image_url,alt:"",loading:"lazy",decoding:"async"}):v.jsx("div",{className:"akilio-product-placeholder","aria-hidden":"true",children:"A"}),v.jsx("span",{className:h?"akilio-stock akilio-stock--available":"akilio-stock",children:h?i.inStock:i.outOfStock})]}),v.jsxs("div",{className:"akilio-product-body",children:[t.vendor&&v.jsx("span",{className:"akilio-product-vendor",children:t.vendor}),v.jsx("h4",{children:t.title}),p?.title&&p.title!==t.title&&v.jsx("span",{className:"akilio-product-variant",children:p.title}),v.jsxs("div",{className:"akilio-product-price",children:[m?v.jsx("strong",{children:m}):v.jsx("strong",{children:i.unavailable}),g&&g!==m&&v.jsx("del",{children:g})]}),t.url?v.jsx("a",{className:"akilio-product-action",href:t.url,target:"_blank",rel:"noopener noreferrer",onClick:b=>{s&&(b.preventDefault(),s(t,p))},children:i.viewProduct}):v.jsx("button",{type:"button",className:"akilio-product-action",disabled:!h,onClick:()=>s?.(t,p),children:i.viewProduct}),d.length&&c?v.jsx(bh,{actions:d,products:[t],copy:i,onAction:c,embedded:!0}):null]})]},t.id)}function kh(t,i,r){if(!t)return"";const l=Number(t);if(!Number.isFinite(l))return t;try{return new Intl.NumberFormat(r,{style:i?"currency":"decimal",currency:i||void 0,maximumFractionDigits:2}).format(l)}catch{return`${l.toFixed(2)}${i?` ${i}`:""}`}}function KS(t){return(t||[]).filter(i=>typeof i?.key=="string"&&typeof i.label=="string"&&typeof i.value=="string")}function ZS(t){if(typeof DOMParser>"u")return t.replace(/<[^>]*>/g,"");const i=new DOMParser().parseFromString(t,"text/html"),r=new Set(["a","b","br","em","i","li","ol","p","strong","ul"]);return i.body.querySelectorAll("*").forEach(l=>{const s=l.tagName.toLowerCase();if(!r.has(s)){if(s==="script"||s==="style"||s==="template"){l.remove();return}l.replaceWith(...Array.from(l.childNodes));return}Array.from(l.attributes).forEach(d=>{if(s!=="a"||d.name!=="href"){l.removeAttribute(d.name);return}try{const c=new URL(d.value,window.location.href);c.protocol!=="http:"&&c.protocol!=="https:"&&l.removeAttribute("href")}catch{l.removeAttribute("href")}})}),i.body.innerHTML}function QS({product:t,copy:i,locale:r,onProductClick:l,actions:s=[],onCommerceAction:d}){const c=t.variants.find(A=>A.available)||t.variants[0],[p,h]=G.useState(c?.id),m=t.variants.find(A=>A.id===p)||c,g=!!m?.available&&t.available!==!1,b=kh(m?.price,m?.currency,r),k=kh(m?.compare_at_price||void 0,m?.currency,r),x=KS(t.attributes),w=s.filter(A=>A.type!=="add_to_cart"||!A.variant_id||A.variant_id===m?.id),T=t.description?ZS(t.description):"";return v.jsxs("article",{className:"akilio-product-card akilio-product-card--detail",role:"listitem",children:[v.jsxs("div",{className:"akilio-product-media",children:[t.image_url?v.jsx("img",{src:t.image_url,alt:"",loading:"lazy",decoding:"async"}):v.jsx("div",{className:"akilio-product-placeholder","aria-hidden":"true",children:"A"}),v.jsx("span",{className:g?"akilio-stock akilio-stock--available":"akilio-stock",children:g?i.inStock:i.outOfStock})]}),v.jsxs("div",{className:"akilio-product-body",children:[t.vendor&&v.jsx("span",{className:"akilio-product-vendor",children:t.vendor}),v.jsx("h4",{children:t.title}),T&&v.jsx("div",{className:"akilio-product-description",dangerouslySetInnerHTML:{__html:T}}),t.variants.length>1&&v.jsxs("fieldset",{className:"akilio-product-variants",children:[v.jsx("legend",{children:i.productVariants}),v.jsx("div",{children:t.variants.map(A=>v.jsx("button",{type:"button",className:A.id===m?.id?"akilio-product-variant-option akilio-product-variant-option--selected":"akilio-product-variant-option",disabled:!A.available,"aria-pressed":A.id===m?.id,onClick:()=>h(A.id),children:A.title||A.sku||A.id},A.id))})]}),x.length>0&&v.jsxs("section",{className:"akilio-product-specifications",children:[v.jsx("h5",{children:i.productSpecifications}),v.jsx("dl",{children:x.map(A=>v.jsxs("div",{children:[v.jsx("dt",{children:A.label}),v.jsx("dd",{children:A.value})]},A.key))})]}),v.jsxs("div",{className:"akilio-product-price","aria-live":"polite",children:[v.jsx("strong",{children:b||i.unavailable}),k&&k!==b&&v.jsx("del",{children:k})]}),t.url?v.jsx("a",{className:"akilio-product-action",href:t.url,target:"_blank",rel:"noopener noreferrer",onClick:A=>{l&&(A.preventDefault(),l(t,m))},children:i.viewProduct}):v.jsx("button",{type:"button",className:"akilio-product-action",disabled:!g,onClick:()=>l?.(t,m),children:i.viewProduct}),w.length&&d?v.jsx(bh,{actions:w,products:[t],copy:i,onAction:d,embedded:!0}):null]})]})}function XS(t,i){return!!t?.lines.some(r=>(r.product?.id||r.product_id)===i)}function xh(t,i){return{product_search:i.products,product_recommendation:i.productRecommendations,product_comparison:i.productComparison,compatibility_check:i.compatibleProducts,bundle_building:i.bundleProducts,upsell:i.upgradeOptions,cross_sell:i.complementaryProducts}[t]||i.products}const WS=G.memo(function({commerce:i,copy:r,locale:l,products:s,suggestedProducts:d,heading:c,onProductClick:p,onCommerceAction:h,cart:m}){const g=G.useMemo(()=>Array.isArray(s||i.products)?(s||i.products).filter(A=>A?.id&&A?.title):[],[i.products,s]),b=G.useMemo(()=>Array.isArray(d||i.suggestedProducts)?(d||i.suggestedProducts||[]).filter(A=>A?.id&&A?.title):[],[i.suggestedProducts,d]);if(!g.length&&!b.length&&!i.actions?.length)return null;const k=i.display==="detail",x=i.capability==="product_comparison",w=[...g,...b].filter((A,S,L)=>L.findIndex(I=>I.id===A.id)===S),T=A=>v.jsx("div",{className:`akilio-products-grid akilio-products-grid--${k?"detail":x?"comparison":"carousel"}`,role:"list",children:A.map(S=>{const L=(i.actions||[]).filter(I=>I.product_id===S.id&&!(I.type==="add_to_cart"&&XS(m,S.id)));return k?v.jsx(QS,{product:S,copy:r,locale:l,onProductClick:p,actions:L,onCommerceAction:h},S.id):v.jsx($S,{product:S,copy:r,locale:l,layout:"vertical",onProductClick:p,actions:L,onCommerceAction:h},S.id)})});return v.jsxs("section",{className:"akilio-products akilio-commerce-result","aria-label":xh(i.capability,r),"data-capability":i.capability,children:[v.jsxs("div",{className:"akilio-products-heading",children:[v.jsx("span",{className:"akilio-commerce-icon","aria-hidden":"true",children:v.jsxs("svg",{viewBox:"0 0 24 24",fill:"none",children:[v.jsx("path",{d:"M4 8h16l-1.2 11H5.2L4 8Z"}),v.jsx("path",{d:"M8 9V7a4 4 0 0 1 8 0v2"})]})}),v.jsx("strong",{children:c||(k?r.productDetails:xh(i.capability,r))}),!k&&v.jsx("span",{className:"akilio-products-count",children:w.length})]}),g.length?v.jsxs("div",{className:"akilio-product-group",children:[b.length&&!k?v.jsx("small",{children:r.matchedProducts}):null,T(g)]}):null,b.length?v.jsxs("div",{className:"akilio-product-group akilio-product-group--suggested",children:[g.length?v.jsx("small",{children:r.suggestedProducts}):null,T(b)]}):null]})});function JS(t){return Array.isArray(t)?t.filter(i=>i?.title||i?.url):[]}const vh=G.memo(function({message:i,copy:r,locale:l,onFeedback:s,onProductClick:d,onCommerceAction:c,cart:p,onSuggestion:h,onProactiveAction:m,showBranding:g=!0,primaryColor:b,feedbackPending:k,contactRequestCapability:x,onContactRequest:w,onConfirmHumanRequest:T,onClarificationSubmit:A}){const S=i.role==="user",L=JS(i.sources),[I,F]=G.useState(!1),[Y,R]=G.useState(null),[le,ae]=G.useState(!1),[he,B]=G.useState(!1),ue=i.backendMessageId?`akilio:human-request:${i.backendMessageId}:v1`:null,[re,Ae]=G.useState(()=>{if(!ue||typeof window>"u")return"pending";try{const W=window.localStorage.getItem(ue);return W==="dismissed"||W==="confirmed"?W:"pending"}catch{return"pending"}}),de=re==="dismissed",ne=re==="confirmed";G.useEffect(()=>{if(!(!ue||re==="pending"))try{window.localStorage.setItem(ue,re)}catch{}},[re,ue]);const Z=i.agentTool?.action==="confirm_human_request"?i.agentTool:null,[$,Q]=G.useState({}),ye=i.backendMessageId?`akilio:clarification:${i.backendMessageId}:v1`:null,[N,ze]=G.useState(()=>{if(!ye||typeof window>"u")return!1;try{return window.localStorage.getItem(ye)==="submitted"}catch{return!1}}),[C,E]=G.useState(!1),ie=i.clarification;G.useEffect(()=>{if(!(!ye||!N))try{window.localStorage.setItem(ye,"submitted")}catch{}},[ye,N]);const ge=W=>ie?Object.entries(W).reduce((be,[qe,Fe])=>be.split(`{{${qe}}}`).join(Fe).split(`{${qe}}`).join(Fe),ie.submission_template):"",ve=W=>{if(!ie)return;if(W){A?.(i,W,ge(W)).then(()=>ze(!0)).catch(()=>{}).finally(()=>E(!1));return}const be=Object.fromEntries((ie.fields||[]).filter(qe=>$[qe.key]).map(qe=>[qe.key,$[qe.key]]));Object.keys(be).length&&A?.(i,be,ge(be)).then(()=>ze(!0)).catch(()=>{}).finally(()=>E(!1))};return v.jsx("div",{className:ir("akilio-message-row",S?"akilio-message-row--user":"akilio-message-row--assistant"),children:v.jsxs("div",{className:ir("akilio-bubble",S&&"akilio-bubble--user",i.error&&"akilio-bubble--error"),children:[!S&&!i.error&&v.jsxs("div",{className:"akilio-bubble-meta",children:[v.jsx(No,{showAkilio:g,style:{width:"20px",height:"20px"},primaryColor:b}),v.jsx("span",{children:r.title})]}),Z&&T&&!de&&v.jsx("section",{className:"akilio-human-confirmation","aria-live":"polite",children:v.jsxs("div",{className:"akilio-human-confirmation-content",children:[v.jsx("strong",{children:ne?r.humanRequestConfirm:r.humanRequestTitle}),v.jsx("p",{children:ne?r.humanRequestSuccess:r.humanRequestDescription}),!ne&&v.jsx("p",{className:"akilio-human-confirmation-consequences",children:r.humanRequestConsequences}),Y&&v.jsx("p",{className:"akilio-human-confirmation-error",role:"alert",children:Y}),!ne&&!le&&v.jsxs("div",{className:"akilio-human-confirmation-actions",children:[v.jsx("button",{type:"button",className:"akilio-human-confirmation-confirm",disabled:I,onClick:()=>{R(null),ae(!0)},children:I?r.humanRequestSending:r.humanRequestConfirm}),v.jsx("button",{type:"button",className:"akilio-human-confirmation-cancel",disabled:I,onClick:()=>Ae("dismissed"),children:r.humanRequestCancel})]}),!ne&&le&&v.jsxs("form",{className:"akilio-contact-form akilio-human-handoff-form",onSubmit:W=>{W.preventDefault();const be=new FormData(W.currentTarget);F(!0),R(null),T(i,Z,{conversation_id:i.conversationId||"",source_message_id:i.backendMessageId||"",name:String(be.get("name")||""),email:String(be.get("email")||""),phone:String(be.get("phone")||""),preferred_contact_method:String(be.get("preferred_contact_method")||"either"),preferred_contact_time:String(be.get("preferred_contact_time")||""),message:String(be.get("message")||""),consent_given:he,website:String(be.get("website")||"")}).then(()=>Ae("confirmed")).catch(()=>R(r.humanRequestFailed)).finally(()=>F(!1))},children:[v.jsxs("label",{className:"akilio-contact-field akilio-contact-name",children:[v.jsx("span",{children:r.contactName}),v.jsx("input",{name:"name",autoComplete:"name"})]}),v.jsxs("label",{className:"akilio-contact-field akilio-contact-email",children:[v.jsx("span",{children:r.contactEmail}),v.jsx("input",{name:"email",type:"email",autoComplete:"email"})]}),v.jsxs("label",{className:"akilio-contact-field akilio-contact-phone",children:[v.jsx("span",{children:r.contactPhone}),v.jsx("input",{name:"phone",type:"tel",autoComplete:"tel"})]}),v.jsxs("label",{className:"akilio-contact-field akilio-contact-method",children:[v.jsx("span",{children:r.contactMethod}),v.jsxs("select",{name:"preferred_contact_method",defaultValue:"either",children:[v.jsx("option",{value:"email",children:r.contactMethodEmail}),v.jsx("option",{value:"phone",children:r.contactMethodPhone}),v.jsx("option",{value:"either",children:r.contactMethodEither})]})]}),v.jsxs("label",{className:"akilio-contact-field akilio-contact-time",children:[v.jsx("span",{children:r.contactTime}),v.jsx("input",{name:"preferred_contact_time"})]}),v.jsxs("label",{className:"akilio-contact-field akilio-contact-message",children:[v.jsx("span",{children:r.contactMessage}),v.jsx("textarea",{name:"message",rows:3,required:!0,maxLength:4e3,defaultValue:typeof Z.payload?.question=="string"?Z.payload.question:""})]}),v.jsx("input",{className:"akilio-honeypot",name:"website",tabIndex:-1,autoComplete:"off","aria-hidden":"true"}),v.jsxs("label",{className:"akilio-contact-consent",children:[v.jsx("input",{type:"checkbox",checked:he,onChange:W=>B(W.target.checked),required:!0}),v.jsx("span",{children:r.contactConsent})]}),v.jsx("button",{type:"submit",className:"akilio-contact-submit",disabled:I||!he,children:I?r.humanRequestSending:r.humanRequestConfirm})]})]})}),v.jsx("div",{className:ir("akilio-answer",S&&"akilio-answer--user"),children:S?v.jsx("p",{children:i.content}):v.jsx(GS,{content:i.content})}),!S&&!i.error&&ie&&!N&&v.jsxs("section",{className:"akilio-clarification-card",children:[v.jsx("span",{className:"akilio-clarification-badge",children:r.clarificationNeeded}),ie.question&&v.jsx("strong",{children:ie.question}),ie.fields?.map(W=>v.jsxs("label",{children:[v.jsx("span",{children:W.label}),W.options?.length?v.jsxs("select",{required:W.required,value:$[W.key]||"",onChange:be=>Q(qe=>({...qe,[W.key]:be.target.value})),children:[v.jsx("option",{value:""}),W.options.map(be=>v.jsx("option",{value:be.value,children:be.label},be.value))]}):v.jsx("input",{type:W.type==="tel"||W.type==="email"||W.type==="number"?W.type:"text",required:W.required,value:$[W.key]||"",onChange:be=>Q(qe=>({...qe,[W.key]:be.target.value}))})]},W.key)),ie.options?.length?v.jsx("div",{className:"akilio-clarification-options",children:ie.options.map(W=>v.jsx("button",{type:"button",onClick:()=>{const be=ie.missing_entities?.[0];be&&(E(!0),ve({[be]:W.value}))},disabled:C||!ie.missing_entities?.[0],children:W.label},W.value))}):ie.fields?.length?v.jsx("button",{type:"button",onClick:()=>{E(!0),ve()},disabled:(ie.fields||[]).some(W=>W.required&&!$[W.key])||C,children:r.clarificationSubmit}):null]}),!S&&!i.error&&v.jsx(Ik,{message:i,capability:x,copy:r,onSubmit:w}),!S&&!i.error&&m&&i.proactiveActions?.some(W=>W.type==="summarize_conversation")&&v.jsx("button",{type:"button",className:"akilio-conversation-recap",onClick:()=>{const W=i.proactiveActions?.find(be=>be.type==="summarize_conversation");W&&m(W)},children:i.proactiveActions.find(W=>W.type==="summarize_conversation")?.label||r.summarizeConversation}),!S&&i.commerce?v.jsx(v.Fragment,{children:i.commerce.products.length||i.commerce.suggestedProducts?.length||i.commerce.actions?.length?v.jsx(WS,{commerce:i.commerce,suggestedProducts:i.commerce.suggestedProducts,copy:r,locale:l,onProductClick:(W,be)=>d?.(i,W,be),onCommerceAction:W=>c?c(i,W):Promise.resolve(),cart:p}):null}):null,!S&&!i.error&&i.suggestions?.length?v.jsx("div",{className:"akilio-response-suggestions","aria-label":"Suggested follow-up questions",children:i.suggestions.map(W=>v.jsx("button",{type:"button",onClick:()=>h?.(W),children:W},W))}):null,!S&&L.length>0&&v.jsxs("details",{className:"akilio-sources",children:[v.jsxs("summary",{children:[r.sources," · ",L.length]}),v.jsx("div",{className:"akilio-sources-list",children:L.map((W,be)=>v.jsxs("div",{className:"akilio-source-card",children:[v.jsx("strong",{children:W.title||"Untitled source"}),typeof W.section_path=="string"&&v.jsx("span",{children:W.section_path}),W.url&&v.jsx("a",{href:W.url,target:"_blank",rel:"noreferrer",children:W.url})]},`${W.url||W.title}-${be}`))})]}),!S&&!i.error&&i.backendMessageId&&v.jsxs("div",{className:"akilio-feedback","aria-busy":k?"true":void 0,children:[v.jsx("span",{children:k?r.feedbackSending:i.feedback?r.feedbackThanks:r.feedbackQuestion}),v.jsx("button",{type:"button",className:ir(i.feedback==="up"&&"akilio-feedback-active",k==="up"&&"akilio-feedback-pending"),onClick:()=>s?.(i,"up"),"aria-label":r.voteUp,"aria-pressed":i.feedback==="up",disabled:!!k,children:k==="up"?v.jsx("i",{className:"akilio-feedback-spinner","aria-hidden":"true"}):v.jsx(Ek,{})}),v.jsx("button",{type:"button",className:ir(i.feedback==="down"&&"akilio-feedback-active",k==="down"&&"akilio-feedback-pending"),onClick:()=>s?.(i,"down"),"aria-label":r.voteDown,"aria-pressed":i.feedback==="down",disabled:!!k,children:k==="down"?v.jsx("i",{className:"akilio-feedback-spinner","aria-hidden":"true"}):v.jsx(wk,{})})]})]})})}),eT=G.memo(function({messages:i,copy:r,locale:l,onFeedback:s,onProductClick:d,onCommerceAction:c,onSuggestion:p,onProactiveAction:h,showBranding:m,primaryColor:g,feedbackPending:b,contactRequestCapability:k,onContactRequest:x,onConfirmHumanRequest:w,onClarificationSubmit:T,cart:A}){return v.jsx(v.Fragment,{children:i.map(S=>v.jsx(vh,{message:S,copy:r,locale:l,onFeedback:s,onProductClick:d,onCommerceAction:c,onSuggestion:p,onProactiveAction:h,showBranding:m,primaryColor:g,feedbackPending:b[S.id],contactRequestCapability:k,onContactRequest:x,onConfirmHumanRequest:w,onClarificationSubmit:T,cart:A},S.id))})});function tT({copy:t,label:i,primaryColor:r}){return v.jsxs("div",{className:"akilio-message-row akilio-message-row--assistant akilio-stream-activity",role:"status","aria-live":"polite","aria-atomic":"true",children:[v.jsx("span",{className:"akilio-stream-activity-icon","aria-hidden":"true",children:v.jsx(If,{style:{width:"20px",height:"20px"},primaryColor:r})}),v.jsxs("div",{className:"akilio-stream-activity-content",children:[v.jsx("span",{className:"akilio-stream-activity-label",children:i||t.loading},i),v.jsx("span",{className:"akilio-stream-activity-pulse","aria-hidden":"true"})]})]})}const nT=G.forwardRef(function(i,r){const{open:l,panelId:s,isDesktop:d,inline:c,colorMode:p,allowColorModeToggle:h,widgetAvailable:m,showBranding:g,businessLogo:b,showPoweredBy:k,copy:x,locale:w,messages:T,feedbackPending:A,contactRequestCapability:S,onContactRequest:L,onConfirmHumanRequest:I,onClarificationSubmit:F,streamingMessage:Y,loading:R,loadingLabel:le,consentDecision:ae,consentGranted:he,requireConsent:B,privacyNotice:ue,privacyNoticeUrl:re,onConsentDecision:Ae,onClose:de,onToggleColorMode:ne,onClear:Z,onSubmit:$,onDraftChange:Q,onFeedback:ye,onProductClick:N,onCommerceAction:ze,onSuggestion:C,onProactiveAction:E,intentActions:ie,onIntentAction:ge,starterQuestions:ve,primaryColor:W,slug:be,cart:qe,cartLoading:Fe,onRefreshCart:nn,onCartAction:At}=i,An=G.useRef(null),qt=G.useRef(null),[an,Ve]=G.useState(!1),Qt=(qe?.lines||[]).reduce((Et,Ln)=>Et+Ln.quantity,0);return G.useImperativeHandle(r,()=>({getDraft:()=>qt.current?.getDraft()||"",setDraft:(Et,Ln)=>qt.current?.setDraft(Et,Ln),clearDraft:()=>qt.current?.clearDraft(),focusDraft:()=>qt.current?.focus(),submitDraft:()=>qt.current?qt.current.submit():Promise.reject(new Error("NOT_READY"))}),[]),G.useEffect(()=>{l&&An.current?.scrollTo({top:An.current.scrollHeight,behavior:T.length>1?"auto":"smooth"})},[T.length,Y?.content,R,l]),v.jsxs("aside",{id:s,className:ir("akilio-panel",d&&"akilio-panel--desktop",c&&"akilio-panel--inline",l&&"akilio-panel--open"),"aria-hidden":!l,"aria-label":x.title,children:[v.jsx("div",{className:"akilio-panel-glow"}),v.jsxs("header",{className:"akilio-panel-header",children:[(g||b)&&v.jsx("div",{className:"akilio-logo",children:v.jsx(No,{variant:"mark",showAkilio:g,style:{width:40,height:40},primaryColor:W})}),v.jsxs("div",{className:"akilio-header-content",children:[v.jsxs("div",{className:"akilio-header-topline",children:[v.jsx("div",{className:"akilio-header-title",children:v.jsx("h2",{children:x.title})}),v.jsxs("div",{className:"akilio-header-actions",children:[h&&v.jsx("button",{type:"button",onClick:ne,title:p==="dark"?x.switchToLightMode:x.switchToDarkMode,"aria-label":p==="dark"?x.switchToLightMode:x.switchToDarkMode,children:p==="dark"?v.jsx(Sk,{}):v.jsx(Tk,{})}),qe?v.jsxs("button",{type:"button",className:"akilio-header-cart",onClick:()=>Ve(!0),title:x.cart,"aria-label":`${x.cart}: ${Qt}`,children:[v.jsx(_k,{}),Qt?v.jsx("span",{children:Qt}):null]}):null,v.jsx("button",{type:"button",onClick:Z,title:x.clearHistory,"aria-label":x.clearHistory,children:v.jsx(vk,{})}),!c&&v.jsx("button",{type:"button",onClick:de,title:x.close,"aria-label":x.close,children:v.jsx(qf,{})})]})]}),v.jsx("p",{className:"akilio-header-description",children:x.description})]})]}),an?v.jsx(Nk,{cart:qe,loading:Fe,copy:x,locale:w,onClose:()=>Ve(!1),onRefresh:nn,onAction:At}):null,v.jsxs("div",{ref:An,className:"akilio-thread","aria-live":"polite","aria-relevant":"additions",children:[T.length===0&&!R?v.jsx(Mk,{copy:x,onSuggestion:$,widgetAvailable:m,showBranding:g,primaryColor:W,starterQuestions:ve}):v.jsx(eT,{showBranding:g,messages:T,copy:x,locale:w,onFeedback:ye,onProductClick:N,onCommerceAction:ze,onSuggestion:C,onProactiveAction:E,primaryColor:W,feedbackPending:A,contactRequestCapability:S,onContactRequest:L,onConfirmHumanRequest:I,onClarificationSubmit:F,cart:qe}),Y&&v.jsx(vh,{showBranding:g,message:Y,copy:x,locale:w,onFeedback:ye,onProductClick:N,onCommerceAction:ze,onSuggestion:C,onProactiveAction:E,primaryColor:W,feedbackPending:A[Y.id],contactRequestCapability:S,onContactRequest:L,onConfirmHumanRequest:I,onClarificationSubmit:F,cart:qe}),R&&!Y&&v.jsx(tT,{copy:x,label:le,primaryColor:W})]}),(ue||B)&&ae==="pending"&&v.jsxs("section",{className:"akilio-privacy","aria-label":x.privacyTitle,children:[v.jsxs("div",{children:[v.jsx("strong",{children:x.privacyTitle}),v.jsxs("p",{children:[ue||x.privacyDefaultNotice," ",re&&v.jsx("a",{href:re,target:"_blank",rel:"noreferrer",children:x.privacyTitle})]}),B&&v.jsx("p",{className:"akilio-privacy-consent-copy",children:x.privacyAccept})]}),v.jsxs("div",{className:"akilio-privacy-actions",children:[v.jsx("button",{type:"button",className:"akilio-privacy-decline",onClick:()=>Ae("rejected"),children:x.privacyDecline}),v.jsx("button",{type:"button",className:"akilio-privacy-accept",onClick:()=>Ae("accepted"),children:x.privacyAcceptAction})]})]}),v.jsx(Ck,{ref:qt,loading:R,disabled:!m||B&&!he,disabledMessage:m?x.privacyRequired:x.widgetUnavailable,showPoweredBy:k,copy:x,onSubmit:$,onDraftChange:Q,onReviewConsent:B&&ae==="rejected"?()=>Ae("pending"):void 0,slug:be,intentActions:m&&!R&&T.length===0&&!Y?ie:[],onIntentAction:ge})]})});function iT({placeholder:t,dismissLabel:i,dismissible:r,onDismiss:l,onSubmit:s}){const[d,c]=G.useState(""),p=h=>{h.preventDefault();const m=d.trim();m&&s(m).catch(()=>{})};return v.jsxs("section",{className:"akilio-contextual-prompt","aria-label":t,role:"region",children:[v.jsxs("form",{onSubmit:p,children:[v.jsx("input",{type:"text",value:d,onChange:h=>c(h.target.value),onKeyDown:h=>{h.key==="Escape"&&r&&l()},placeholder:t,"aria-label":t}),v.jsx("button",{type:"submit",className:"akilio-contextual-submit",disabled:!d.trim(),"aria-label":t,children:v.jsx(Uf,{color:"#fff"})})]}),r&&v.jsx("button",{type:"button",className:"akilio-contextual-dismiss",onClick:l,"aria-label":i,title:i,children:v.jsx("span",{"aria-hidden":"true",children:"×"})})]})}function aT({label:t,onClick:i,showBranding:r=!0,primaryColor:l,open:s,controlsId:d,experience:c="adaptive",expanded:p=!1,answerReady:h=!1,typing:m=!1,accessibleLabel:g}){return v.jsxs("button",{id:"akilio-launcher",type:"button",className:"akilio-launcher",onClick:i,"aria-expanded":!!s,"aria-controls":d,"aria-label":g||t,"data-experience":c,"data-expanded":p?"true":"false","data-answer-ready":h?"true":"false","data-typing":m?"true":"false",children:[v.jsx("span",{children:v.jsx(No,{showAkilio:r,variant:"mark",className:"akilio-launcher-logo",primaryColor:l})}),v.jsx("strong",{className:"akilio-launcher-label","aria-hidden":"true",children:t})]})}function _h({title:t,message:i,actionLabel:r,dismissLabel:l,onDismiss:s,onOpen:d,primaryColor:c,showBranding:p}){return v.jsxs("section",{className:"akilio-coachmark",role:"status","aria-live":"polite","aria-label":t,children:[v.jsx("button",{type:"button",className:"akilio-coachmark-close",onClick:s,"aria-label":l,children:v.jsx("span",{"aria-hidden":"true",children:"×"})}),v.jsx("div",{className:"akilio-coachmark-icon","aria-hidden":"true",children:v.jsx(No,{showAkilio:p,variant:"mark",primaryColor:c})}),v.jsxs("div",{className:"akilio-coachmark-content",children:[v.jsx("strong",{children:t}),v.jsx("p",{children:i}),v.jsx("button",{type:"button",className:"akilio-coachmark-action",onClick:d,children:r})]})]})}function rT(t,i){const[r,l]=G.useState(!1);return G.useEffect(()=>{if(!t||typeof window>"u"){l(!1);return}const s=Math.min(2e3,Math.max(0,Number(i)||0)),d=document.createElement("span");d.setAttribute("data-akilio-page-end-marker",""),d.setAttribute("aria-hidden","true"),d.style.cssText="display:block;width:1px;height:1px;pointer-events:none;visibility:hidden;",document.body.appendChild(d);const c=window.IntersectionObserver;if(c){const h=new c(([m])=>l(!!m?.isIntersecting),{rootMargin:`0px 0px ${s}px 0px`});return h.observe(d),()=>{h.disconnect(),d.remove()}}const p=()=>{const h=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);l(window.scrollY+window.innerHeight>=h-s)};return window.addEventListener("scroll",p,{passive:!0}),window.addEventListener("resize",p),p(),()=>{window.removeEventListener("scroll",p),window.removeEventListener("resize",p),d.remove()}},[t,i]),r}function oT(t){const[i,r]=G.useState(0);return G.useEffect(()=>{if(!t||typeof window>"u"){r(0);return}const s=(document.body.innerText||document.body.textContent||"").trim().split(/\s+/).filter(Boolean).length,d=document.querySelectorAll("h1, h2, h3").length,c=window.location.pathname.toLowerCase(),p=/article|blog|guide|docs?|help|support|policy|terms/.test(c);if(/checkout|cart|pricing|contact|login|account/.test(c)||s<900)return;let m=0,g=!1,b=!1;const k=()=>{const w=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight),T=Math.min(1,Math.max(0,(window.scrollY+window.innerHeight)/Math.max(w,1)));T<m-.15&&m>=.5&&(g=!0),m=Math.max(m,T),r(2+(d>=4?1:0)+(p?1:0)+(m>=.6?2:0)+(b?1:0)+(g?1:0))},x=window.setTimeout(()=>{b=!0,k()},45e3);return window.addEventListener("scroll",k,{passive:!0}),window.addEventListener("resize",k),k(),()=>{window.clearTimeout(x),window.removeEventListener("scroll",k),window.removeEventListener("resize",k)}},[t]),i}function lT(){if(typeof window>"u")return null;const t=window.AudioContext||window.webkitAudioContext;if(!t)return null;try{return new t}catch{return null}}function sT(t,i){const r=G.useRef(null),l=Math.min(1,Math.max(0,Number(i)||0)),s=G.useCallback(()=>{if(!t)return;const c=r.current||lT();c&&(r.current=c,c.state==="suspended"&&c.resume().catch(()=>{}))},[t]),d=G.useCallback(()=>{if(!t||l===0)return;const c=r.current;if(!(!c||c.state!=="running"))try{const p=c.currentTime,h=c.createGain();h.gain.setValueAtTime(1e-4,p),h.gain.exponentialRampToValueAtTime(l,p+.025),h.gain.exponentialRampToValueAtTime(1e-4,p+.42),h.connect(c.destination),[659.25,880].forEach((m,g)=>{const b=c.createOscillator();b.type="sine",b.frequency.setValueAtTime(m,p),b.connect(h),b.start(p+g*.08),b.stop(p+.42)})}catch{}},[l,t]);return G.useEffect(()=>()=>{const c=r.current;r.current=null,c&&c.state!=="closed"&&c.close().catch(()=>{})},[]),{prepare:s,play:d}}const cT="(min-width: 1280px)";function uT(t=cT){const[i,r]=G.useState(!1);return G.useEffect(()=>{if(typeof window>"u")return;const l=window.matchMedia(t),s=()=>r(l.matches);return s(),l.addEventListener?.("change",s),()=>l.removeEventListener?.("change",s)},[t]),i}const Na=60,dT="akilio-widget",Gr="message-history",fT=1;let Po=null;function Eh(){return typeof window>"u"||!window.indexedDB?null:Po||(Po=new Promise((t,i)=>{const r=window.indexedDB.open(dT,fT);r.onupgradeneeded=()=>{r.result.objectStoreNames.contains(Gr)||r.result.createObjectStore(Gr,{keyPath:"key"})},r.onsuccess=()=>t(r.result),r.onerror=()=>i(r.error||new Error("IndexedDB unavailable"))}).catch(t=>{throw Po=null,t}),Po)}async function pT(t){const i=Eh();if(!i)return null;const r=await i;return new Promise((l,s)=>{const d=r.transaction(Gr,"readonly").objectStore(Gr).get(t);d.onsuccess=()=>{const c=d.result;l(Array.isArray(c?.messages)?c.messages:[])},d.onerror=()=>s(d.error||new Error("Could not read history"))})}async function wh(t,i){const r=Eh();if(!r)throw new Error("IndexedDB unavailable");const l=await r;await new Promise((s,d)=>{const c=l.transaction(Gr,"readwrite");c.objectStore(Gr).put({key:t,messages:i}),c.oncomplete=()=>s(),c.onerror=()=>d(c.error||new Error("Could not save history")),c.onabort=()=>d(c.error||new Error("Could not save history"))})}const es=new Map;function Go(t){if(typeof window>"u")return null;if(es.has(t))return es.get(t)??null;try{return window.localStorage.getItem(t)}catch{return null}}function Ca(t,i){if(!(typeof window>"u"))try{i===null?window.localStorage.removeItem(t):window.localStorage.setItem(t,i),es.delete(t)}catch{es.set(t,i)}}function ts(t,i){if(!t)return i;try{return JSON.parse(t)}catch{return i}}function mT(t){const i=G.useMemo(()=>`akilio:${t.projectKey}:${t.locale||"default"}:messages:v1`,[t.projectKey,t.locale]),[r,l]=G.useState([]),[s,d]=G.useState(null),[c,p]=G.useState(null);return G.useEffect(()=>{if(!t.enabled||typeof window>"u"){p(null),d(i);return}let h=!1;return d(null),p(null),(async()=>{try{const m=await pT(i);if(m===null)throw new Error("IndexedDB unavailable");const g=ts(Go(i),[]),k=(m.length?m:Array.isArray(g)?g:[]).slice(-Na);if(!m.length&&g.length&&await wh(i,k),g.length&&Ca(i,null),h)return;l(k),p("indexeddb")}catch{const m=ts(Go(i),[]);if(h)return;l(Array.isArray(m)?m.slice(-Na):[]),p("local")}h||d(i)})(),()=>{h=!0}},[t.enabled,i]),G.useEffect(()=>{if(!t.enabled||s!==i||typeof window>"u")return;const h=r.slice(-Na);c==="indexeddb"?wh(i,h).catch(()=>{Ca(i,JSON.stringify(h)),p("local")}):c==="local"&&Ca(i,JSON.stringify(h))},[r,t.enabled,i,s,c]),[r,l,i]}function na(t){const[i,r]=G.useState(t.initialValue||""),[l,s]=G.useState(null);return G.useEffect(()=>{if(!t.enabled||typeof window>"u"){s(t.key);return}r(Go(t.key)||t.initialValue||""),s(t.key)},[t.enabled,t.initialValue,t.key]),G.useEffect(()=>{!t.enabled||l!==t.key||typeof window>"u"||(i?Ca(t.key,i):Ca(t.key,null))},[t.enabled,l,t.key,i]),[i,r]}const hT={version:"1.0.0"};function Hi(t){const i=t.toLowerCase();return Array.from(document.scripts).some(r=>(r.src||"").toLowerCase().includes(i))}function gT(t){const i=t.toLowerCase();return Array.from(document.querySelectorAll("link[href]")).some(r=>r.href.toLowerCase().includes(i))}function bT(t,i){return Array.from(document.querySelectorAll(`meta[${t}]`)).some(r=>r.getAttribute(t)===i)}function yT(t){const i=t.toLowerCase();return Array.from(document.body?.classList??[]).some(r=>r.toLowerCase().includes(i))}function kT(){const t=window.location.hostname.toLowerCase(),i=document.documentElement.innerHTML.toLowerCase(),r=[];if(window.Shopify&&r.push("window.Shopify"),Hi("cdn.shopify.com")&&r.push("cdn.shopify.com script"),i.includes("shopify-section")&&r.push("shopify-section markup"),t.endsWith(".myshopify.com")&&r.push("myshopify.com hostname"),r.length>=2)return{integration:"shopify",confidence:"high",signals:r};if(r.length===1)return{integration:"shopify",confidence:"medium",signals:r};const l=[];if(window.wcSettings&&l.push("window.wcSettings"),Hi("woocommerce")&&l.push("WooCommerce script"),yT("woocommerce")&&l.push("WooCommerce body class"),(i.includes("woocommerce-cart")||i.includes("woocommerce-checkout")||i.includes("wc-block-"))&&l.push("WooCommerce markup"),l.length>=2)return{integration:"woocommerce",confidence:"high",signals:l};if(l.length===1)return{integration:"woocommerce",confidence:"medium",signals:l};const s=[];if(gT("/wp-json/")&&s.push("WordPress REST API link"),(Hi("/wp-content/")||Hi("/wp-includes/"))&&s.push("WordPress asset path"),(i.includes("/wp-content/")||i.includes("/wp-includes/"))&&s.push("WordPress HTML asset path"),bT("name","generator")&&document.querySelector('meta[name="generator"]')?.content.toLowerCase()?.includes("wordpress")&&s.push("WordPress generator metadata"),s.length>=2)return{integration:"wordpress",confidence:"high",signals:s};if(s.length===1)return{integration:"wordpress",confidence:"medium",signals:s};const d=[];if((window.prestashop||window.PrestaShop)&&d.push("PrestaShop global"),Hi("/modules/")&&i.includes("prestashop")&&d.push("PrestaShop module assets"),document.querySelector('meta[name="generator"]')?.content.toLowerCase()?.includes("prestashop")&&d.push("PrestaShop generator metadata"),d.length>=2)return{integration:"prestashop",confidence:"high",signals:d};if(d.length===1)return{integration:"prestashop",confidence:"medium",signals:d};const p=[];return window.requirejs&&Hi("mage/")&&p.push("Magento RequireJS modules"),(Hi("/static/frontend/")||i.includes("mage-init"))&&p.push("Magento frontend assets"),i.includes("data-mage-init")&&p.push("data-mage-init"),p.length>=2?{integration:"magento",confidence:"high",signals:p}:p.length===1?{integration:"magento",confidence:"medium",signals:p}:i.includes("wixstatic.com")||Hi("wixstatic.com")?{integration:"wix",confidence:"high",signals:["Wix static assets"]}:document.documentElement.hasAttribute("data-wf-page")||Hi("webflow")?{integration:"webflow",confidence:"high",signals:["Webflow page attributes or assets"]}:Hi("static1.squarespace.com")||i.includes("squarespace")?{integration:"squarespace",confidence:"medium",signals:["Squarespace assets"]}:window.__NEXT_DATA__||document.getElementById("__next")?{integration:"nextjs",confidence:"high",signals:["Next.js runtime markers"]}:document.querySelector("[ng-version]")||window.angular?{integration:"angular",confidence:"high",signals:["Angular runtime markers"]}:window.__NUXT__||document.getElementById("__nuxt")?{integration:"vue",confidence:"medium",signals:["Nuxt/Vue runtime markers"]}:window.Vue?{integration:"vue",confidence:"medium",signals:["Vue global"]}:document.getElementById("root")||document.querySelector("[data-reactroot]")?{integration:"react",confidence:"low",signals:["Possible React root element"]}:{integration:"unknown",confidence:"low",signals:[]}}class ns extends Error{status;payload;retryAfterSeconds;constructor(i,r,l,s){super(i),this.name="AkilioHttpError",this.status=r,this.payload=l,this.retryAfterSeconds=s}}function xT(t){const i=t.headers.get("Retry-After");if(!i)return;const r=Number(i);if(Number.isFinite(r)&&r>=0)return Math.ceil(r);const l=Date.parse(i);return Number.isNaN(l)?void 0:Math.max(0,Math.ceil((l-Date.now())/1e3))}function Sh(t,i){return`${t.replace(/\/$/,"")}${i.startsWith("/")?i:`/${i}`}`}async function Th(t){const i=await t.text();let r={};try{r=i?JSON.parse(i):{}}catch{r={detail:i}}if(!t.ok){const l=r?.detail||r?.error||r?.message||`Request failed with status ${t.status}`;throw new ns(l,t.status,r,t.status===429?xT(t):void 0)}return r}function Ah(t,i){const r=`${t.replace(/\/$/,"")}|${i}`;let l=2166136261;for(let s=0;s<r.length;s+=1)l^=r.charCodeAt(s),l=Math.imul(l,16777619);return`akilio:continuation:v1:${(l>>>0).toString(16)}`}function vT(t){if(typeof window>"u")return null;try{return Go(t)}catch{return null}}function Nh(t,i){if(!(typeof window>"u"))try{i?Ca(t,i):Ca(t,null)}catch{}}class _T{apiBaseUrl;fetchImpl;auth;widgetToken=null;widgetTokenPromise=null;widgetTokenPromiseKey=null;mode;locale;integration;constructor(i){this.apiBaseUrl=i.apiBaseUrl;const r=i.fetchImpl||globalThis.fetch;if(!r)throw new Error("Fetch API is not available in this environment");this.fetchImpl=r.bind(globalThis),this.auth=i.auth,this.mode=i.mode,this.locale=i.locale,this.integration=i.integration}hasHostManagedToken(){return!!(this.auth?.getAccessToken||this.auth?.accessToken)}async hostManagedToken(){return(this.auth?.getAccessToken?await this.auth.getAccessToken():this.auth?.accessToken)||null}tokenIsUsable(i,r){const l=Math.max(0,this.auth?.tokenRefreshLeewaySeconds??30);return i.projectKey===r&&i.expiresAt>Date.now()+l*1e3}clearWidgetToken(){this.widgetToken=null}clearAnonymousIdentity(i){this.clearWidgetToken(),this.widgetTokenPromise=null,this.widgetTokenPromiseKey=null,Nh(Ah(this.apiBaseUrl,i),null)}async issueWidgetToken(i){const r=Ah(this.apiBaseUrl,i),l=vT(r),s=await this.publicRequest(`/workspaces/${encodeURIComponent(i)}/widget-token/`,{method:"POST",body:JSON.stringify(l?{continuation_token:l}:{anonymous:!0})});if(!s.continuation_token)throw new Error("Anonymous session continuation credential is missing");Nh(r,s.continuation_token);const d=Math.max(1,Number(s.expires_in)||1),c={token:s.token,tokenType:s.token_type||"Bearer",expiresAt:Date.now()+d*1e3,projectKey:i};return this.widgetToken=c,this.auth?.onWidgetToken?.({token:c.token,tokenType:c.tokenType,expiresAt:c.expiresAt}),c}async ensureWidgetToken(i,r=!1){if(!r&&this.widgetToken&&this.tokenIsUsable(this.widgetToken,i))return this.widgetToken;r&&this.clearWidgetToken();const l=i;return(!this.widgetTokenPromise||this.widgetTokenPromiseKey!==l)&&(this.widgetTokenPromiseKey=l,this.widgetTokenPromise=this.issueWidgetToken(i).finally(()=>{this.widgetTokenPromiseKey===l&&(this.widgetTokenPromise=null,this.widgetTokenPromiseKey=null)})),this.widgetTokenPromise}async baseHeaders(i=!1){const r={Accept:"application/json",...this.auth?.headers||{}};return i&&(r["Content-Type"]="application/json"),this.auth?.apiKey&&(r[this.auth.apiKeyHeader||"X-Akilio-Key"]=this.auth.apiKey),r}async execute(i,r,l){const s=await this.fetchImpl(Sh(this.apiBaseUrl,i),{...r,credentials:this.auth?.credentials||"omit",headers:{...l,...r.headers||{}}});return Th(s)}async publicRequest(i,r={}){return this.execute(i,r,await this.baseHeaders(!!r.body))}async authenticatedRequest(i,r,l,s={}){const d=await this.baseHeaders(!!s.body),c=await this.hostManagedToken();if(c)return d.Authorization=`${this.auth?.tokenScheme||"Bearer"} ${c}`,this.execute(l,s,d);if(this.auth?.autoIssueWidgetToken===!1)throw new Error("No widget authentication token is available");let p=await this.ensureWidgetToken(i);d.Authorization=`${p.tokenType} ${p.token}`;try{return await this.execute(l,s,d)}catch(h){if(!(h instanceof ns)||h.status!==401)throw h;return p=await this.ensureWidgetToken(i,!0),d.Authorization=`${p.tokenType} ${p.token}`,this.execute(l,s,d)}}async authenticatedResponse(i,r,l,s={}){const d=await this.baseHeaders(!!s.body);d.Accept="text/event-stream";const c=await this.hostManagedToken();if(c)d.Authorization=`${this.auth?.tokenScheme||"Bearer"} ${c}`;else{if(this.auth?.autoIssueWidgetToken===!1)throw new Error("No widget authentication token is available");const m=await this.ensureWidgetToken(i);d.Authorization=`${m.tokenType} ${m.token}`}const p=()=>this.fetchImpl(Sh(this.apiBaseUrl,l),{...s,credentials:this.auth?.credentials||"omit",headers:{...d,...s.headers||{}}});let h=await p();if(h.status===401&&!c){await h.body?.cancel().catch(()=>{});const m=await this.ensureWidgetToken(i,!0);d.Authorization=`${m.tokenType} ${m.token}`,h=await p()}return h.ok||await Th(h),h}getProjectConfig(i){const r=this.integration||kT();return this.publicRequest(`/workspaces/${encodeURIComponent(i)}/config/`,{method:"POST",body:JSON.stringify({widget:{version:hT.version,mode:this.mode,locale:this.locale,integration:r},browser:{screen_width:window.innerWidth,viewport_width:window.innerWidth,timezone:Intl.DateTimeFormat().resolvedOptions().timeZone,referrer:document.referrer||void 0}})})}async prepareWidgetToken(i){this.hasHostManagedToken()||this.auth?.autoIssueWidgetToken===!1||await this.ensureWidgetToken(i)}forgetAnonymousIdentity(i){this.clearAnonymousIdentity(i)}async getCapabilities(i,r){const l=await this.authenticatedRequest(i,r,"/capabilities/",{method:"GET"});return Array.isArray(l)?l:l.results||[]}getCurrentCart(i,r){return this.authenticatedRequest(i,r,"/commerce/cart/current/",{method:"GET"})}createCapabilityConfirmation(i,r,l,s,d){return this.authenticatedRequest(i,r,"/capabilities/confirmations/",{method:"POST",body:JSON.stringify({capability_id:l,payload:s,entry_context:d||void 0})})}confirmCapability(i,r,l){return this.authenticatedRequest(i,r,`/capabilities/confirmations/${encodeURIComponent(l)}/confirm/`,{method:"POST",body:JSON.stringify({})})}executeCustomerServiceTool(i,r,l,s,d){return this.authenticatedRequest(i,r,`/capabilities/customer-service/${encodeURIComponent(l)}/`,{method:"POST",body:JSON.stringify({payload:s,confirmation_id:d?.confirmationId,entry_context:d?.entryContext||void 0})})}sendWidgetEvent(i,r,l){return this.authenticatedRequest(i,r,"/widget/events/",{method:"POST",body:JSON.stringify(l)})}sendMessage(i,r,l){return this.authenticatedRequest(i,r,"/chat/",{method:"POST",body:JSON.stringify(l)})}async sendMessageStream(i,r,l,s={},d){let c;try{c=await this.authenticatedResponse(i,r,"/chat/stream/",{method:"POST",body:JSON.stringify(l),signal:d})}catch(k){if(k instanceof ns&&[404,405,406,415,501].includes(k.status))return this.sendMessage(i,r,l);throw k}if(!c.body)throw new Error("Streaming response body is unavailable");const p=c.body.getReader(),h=new TextDecoder;let m="",g=null;const b=k=>{let x="message";const w=[];for(const A of k.split(/\r?\n/))!A||A.startsWith(":")||(A.startsWith("event:")&&(x=A.slice(6).trim()),A.startsWith("data:")&&w.push(A.slice(5).trimStart()));if(!w.length)return;let T;try{const A=JSON.parse(w.join(`
44
+ `));T=A&&typeof A=="object"?A:{value:A}}catch{T={detail:w.join(`
45
+ `)}}if(s.onEvent?.({event:x,data:T}),x==="status")s.onStatus?.(String(T.stage||""),T);else if(x==="conversation"){const A=T.conversation_id||T.id;A&&s.onConversation?.(String(A))}else if(x==="answer.delta")typeof T.delta=="string"&&s.onDelta?.(T.delta);else if(x==="final")g=T;else if(x==="error")throw new Error(String(T.detail||T.error||T.message||"Streaming request failed"))};for(;;){const{value:k,done:x}=await p.read();m+=h.decode(k,{stream:!x});const w=m.split(/\r?\n\r?\n/);m=w.pop()||"";for(const T of w)b(T);if(x)break}if(m.trim()&&b(m),!g)throw new Error("The stream ended before a final response was received");return g}getConversation(i,r,l){const s=new URLSearchParams({project_key:i});return this.authenticatedRequest(i,r,`/conversations/${encodeURIComponent(l)}/?${s}`)}deleteConversation(i,r,l){const s=new URLSearchParams({project_key:i});return this.authenticatedRequest(i,r,`/conversations/${encodeURIComponent(l)}/?${s}`,{method:"DELETE"})}sendCommerceEvent(i,r,l){return this.authenticatedRequest(i,r,"/commerce/events/",{method:"POST",body:JSON.stringify(l)})}sendFeedback(i){return this.authenticatedRequest(i.projectKey,i.subject,`/messages/${encodeURIComponent(i.messageId)}/feedback/`,{method:"POST",body:JSON.stringify({project_key:i.projectKey,rating:i.rating,comment:i.comment||"",metadata:i.metadata||{}})})}sendContactRequest(i,r,l){return this.authenticatedRequest(i,r,"/chat/contact-requests/",{method:"POST",body:JSON.stringify({workspace_key:i,...l})})}sendHumanHandoff(i,r,l){return this.authenticatedRequest(i,r,"/chat/handoffs/",{method:"POST",body:JSON.stringify({workspace_key:i,...l})})}}const is={direction:"ltr",messages:{launcher:"Ask Akilio",title:"Ask Akilio",description:"Powered by AI",placeholder:"Ask your question...",helper:"Press Enter to send. Shift + Enter for a new line.",submit:"Send",loading:"Thinking...",searching:"Searching for relevant information...",reviewingSources:"Reviewing sources...",checkingAnswer:"Checking the answer...",preparingAnswer:"Preparing the answer...",emptyState:"Start with a question or choose a suggestion.",sources:"Sources",confidence:"Confidence",clearHistory:"Clear",close:"Close",online:"AI assistant",feedbackQuestion:"Was this answer useful?",feedbackThanks:"Thanks for your feedback.",feedbackSending:"Sending feedback...",contextualPlaceholder:"Ask a question about this page...",contextualDismiss:"Dismiss page question",contact:"Contact the team",contactName:"Name",contactEmail:"Email address",contactPhone:"Phone number",contactMethod:"Preferred contact method",contactMethodEmail:"Email",contactMethodPhone:"Phone",contactMethodEither:"Email or phone",contactTime:"Best time to contact you",contactMessage:"How can we help?",contactConsent:"I agree to be contacted about this request.",contactSubmit:"Send request",contactSending:"Sending request...",contactSuccess:"Your request has been sent.",handoffQueued:"Your request has been queued for the team.",handoffDelivering:"Your request is being sent to the team.",handoffDelivered:"Your request has been delivered to the team.",handoffFailed:"Your request could not be delivered. Please try again.",handoffCancelled:"Your request was cancelled.",contactFailed:"Unable to send your request. Please try again.",humanRequestTitle:"Request help from the team?",humanRequestDescription:"Your request and this conversation’s context will be sent to the team.",humanRequestConsequences:"The team will follow up through the appropriate contact channel.",humanRequestConfirm:"Request help from the team",humanRequestCancel:"Not now",humanRequestSending:"Sending your request…",humanRequestFailed:"Unable to send your request. Please try again.",humanRequestSuccess:"Your request has been sent to the team. You will receive a follow-up soon.",clarificationNeeded:"A clarification is needed",clarificationSubmit:"Continue",voteUp:"Useful",voteDown:"Not useful",requestFailed:"Unable to get an answer right now.",configFailed:"Unable to load Akilio configuration.",newChat:"New chat",privacyTitle:"Privacy",privacyAccept:"I agree that my question and conversation data may be processed to provide an answer.",privacyAcceptAction:"Accept",privacyDecline:"Decline",privacyReview:"Review privacy choice",privacyRequired:"Consent is required before sending a question.",widgetUnavailable:"This assistant is temporarily unavailable.",poweredBy:"Powered by",aiContentWarning:"AI content may be inaccurate or incomplete.",tourTitle:"Need help?",tourMessage:"Ask the assistant a question to quickly find the information you need.",tourAction:"Try it",tourDismiss:"Dismiss this tip",summarizePage:"Summarize this page",summarizeConversation:"Recap this conversation",proactiveSummaryTitle:"Would you like a summary?",proactiveSummaryMessage:"You have spent some time reading this page. I can summarize it for you.",proactiveSummaryDismiss:"Dismiss summary suggestion",privacyDefaultNotice:"Your questions may be stored to provide the service and improve its quality.",switchToLightMode:"Switch to light mode",switchToDarkMode:"Switch to dark mode",products:"Products",suggestedProducts:"Suggested products",matchedProducts:"Matching products",productRecommendations:"Recommended for you",productComparison:"Product comparison",compatibleProducts:"Compatible products",bundleProducts:"Complete the bundle",upgradeOptions:"Upgrade options",complementaryProducts:"Goes well with this",commerceActionConfirm:"Confirm",commerceActionCancel:"Cancel",commerceActionWorking:"Updating cart…",commerceActionComplete:"Added to cart",commerceActionFailed:"The cart could not be updated. Please try again.",addToCart:"Add to cart",compareProduct:"Compare",updateQuantity:"Update quantity",removeFromCart:"Remove",cart:"Cart",cartEmpty:"Your cart is empty.",cartItems:"items",checkout:"Checkout",cartUnavailable:"Your cart is temporarily unavailable.",refreshCart:"Refresh cart",viewProduct:"View product",fromPrice:"From",unavailable:"Price unavailable",inStock:"In stock",outOfStock:"Out of stock",rateLimited:"Please wait {seconds}s before trying again.",launcherAnswerReady:"Your answer is ready",launcherContact:"Find the right contact",launcherPageHelp:"Ask about this page",launcherProductHelp:"Questions about this product?",launcherPlanHelp:"Help me choose a plan",productDetails:"Product details",productVariants:"Variants",productSpecifications:"Specifications",suggestions:["What services do you offer?","How can I contact you?","Where can I find more information?","Can you summarize this page?"]},whiteLabel:{launcher:"Ask a question",title:"Assistant",configFailed:"Unable to load assistant configuration."}},ET={en:is,fr:{direction:"ltr",messages:{launcher:"Demander à Akilio",title:"Demander à Akilio",description:"Propulsé par l'IA",placeholder:"Posez votre question...",helper:"Entrée pour envoyer. Maj + Entrée pour une nouvelle ligne.",submit:"Envoyer",loading:"Réflexion...",searching:"Recherche des informations pertinentes...",reviewingSources:"Consultation des sources...",checkingAnswer:"Vérification de la réponse...",preparingAnswer:"Préparation de la réponse...",emptyState:"Commencez avec une question ou choisissez une suggestion.",sources:"Sources",confidence:"Confiance",clearHistory:"Effacer",close:"Fermer",online:"Assistant IA",feedbackQuestion:"Cette réponse est-elle utile ?",feedbackThanks:"Merci pour votre retour.",feedbackSending:"Envoi de votre avis...",contextualPlaceholder:"Posez une question sur cette page...",contextualDismiss:"Fermer la question contextuelle",contact:"Contacter l’équipe",contactName:"Nom",contactEmail:"Adresse courriel",contactPhone:"Téléphone",contactMethod:"Méthode de contact préférée",contactMethodEmail:"Courriel",contactMethodPhone:"Téléphone",contactMethodEither:"Courriel ou téléphone",contactTime:"Meilleur moment pour vous contacter",contactMessage:"Comment pouvons-nous vous aider ?",contactConsent:"J’accepte d’être contacté au sujet de cette demande.",contactSubmit:"Envoyer la demande",contactSending:"Envoi de la demande...",contactSuccess:"Votre demande a été envoyée.",handoffQueued:"Votre demande est en attente pour l’équipe.",handoffDelivering:"Votre demande est en cours d’envoi à l’équipe.",handoffDelivered:"Votre demande a été transmise à l’équipe.",handoffFailed:"Votre demande n’a pas pu être transmise. Réessayez.",handoffCancelled:"Votre demande a été annulée.",contactFailed:"Impossible d’envoyer votre demande. Réessayez.",humanRequestTitle:"Demander l’aide de l’équipe ? ",humanRequestDescription:"Votre demande et le contexte de cette conversation seront transmis à l’équipe.",humanRequestConsequences:"Vous recevrez un suivi par le canal de contact approprié.",humanRequestConfirm:"Demander l’aide de l’équipe",humanRequestCancel:"Pas maintenant",humanRequestSending:"Envoi de votre demande…",humanRequestFailed:"Impossible d’envoyer votre demande. Réessayez.",humanRequestSuccess:"Votre demande a été envoyée à l’équipe. Vous recevrez un suivi prochainement.",clarificationNeeded:"Une précision est nécessaire",clarificationSubmit:"Continuer",voteUp:"Utile",voteDown:"Pas utile",requestFailed:"Impossible d’obtenir une réponse pour le moment.",configFailed:"Impossible de charger la configuration Akilio.",newChat:"Nouvelle conversation",privacyTitle:"Confidentialité",privacyAccept:"J’accepte que ma question et les données de conversation soient traitées pour fournir une réponse.",privacyAcceptAction:"Accepter",privacyDecline:"Refuser",privacyReview:"Revoir mon choix de confidentialité",privacyRequired:"Votre consentement est requis avant d’envoyer une question.",widgetUnavailable:"Cet assistant est temporairement indisponible.",poweredBy:"Propulsé par",aiContentWarning:"Le contenu généré par l’IA peut être inexact ou incomplet.",tourTitle:"Besoin d’aide ?",tourMessage:"Posez une question à l’assistant pour trouver rapidement une réponse.",tourAction:"Essayer",tourDismiss:"Fermer cette aide",summarizePage:"Résumer cette page",summarizeConversation:"Récapituler cette conversation",proactiveSummaryTitle:"Souhaitez-vous un résumé ?",proactiveSummaryMessage:"Vous avez passé un moment à lire cette page. Je peux vous la résumer.",proactiveSummaryDismiss:"Fermer la suggestion de résumé",privacyDefaultNotice:"Vos questions peuvent être enregistrées afin de fournir le service et améliorer sa qualité.",switchToLightMode:"Passer au thème clair",switchToDarkMode:"Passer au thème sombre",products:"Produits",suggestedProducts:"Produits suggérés",matchedProducts:"Produits correspondants",productRecommendations:"Recommandés pour vous",productComparison:"Comparaison de produits",compatibleProducts:"Produits compatibles",bundleProducts:"Compléter l’ensemble",upgradeOptions:"Options supérieures",complementaryProducts:"S’accorde bien avec ceci",commerceActionConfirm:"Confirmer",commerceActionCancel:"Annuler",commerceActionWorking:"Mise à jour du panier…",commerceActionComplete:"Ajouté au panier",commerceActionFailed:"Impossible de mettre le panier à jour. Veuillez réessayer.",addToCart:"Ajouter au panier",compareProduct:"Comparer",updateQuantity:"Modifier la quantité",removeFromCart:"Retirer",cart:"Panier",cartEmpty:"Votre panier est vide.",cartItems:"articles",checkout:"Passer au paiement",cartUnavailable:"Votre panier est temporairement indisponible.",refreshCart:"Actualiser le panier",viewProduct:"Voir le produit",fromPrice:"À partir de",unavailable:"Prix indisponible",inStock:"En stock",outOfStock:"Rupture de stock",rateLimited:"Veuillez patienter {seconds} s avant de réessayer.",launcherAnswerReady:"Votre réponse est prête",launcherContact:"Trouver le bon contact",launcherPageHelp:"Poser une question sur cette page",launcherProductHelp:"Une question sur ce produit ?",launcherPlanHelp:"M’aider à choisir un forfait",productDetails:"Détails du produit",productVariants:"Variantes",productSpecifications:"Caractéristiques",suggestions:["Quels services offrez-vous ?","Comment puis-je vous contacter ?","Où trouver plus d’informations ?","Pouvez-vous résumer cette page ?"]},whiteLabel:{launcher:"Poser une question",title:"Assistant",configFailed:"Impossible de charger la configuration."}}};function Ch(t="en"){return t.trim().replace(/_/g,"-").toLowerCase()||"en"}function Mh(t="en",i={}){const r=Ch(t),l=Object.fromEntries(Object.entries(i).map(([p,h])=>[Ch(p),h])),s=r.split("-"),d=[...new Set(["en",...s.map((p,h)=>s.slice(0,h+1).join("-"))])],c={direction:/^(ar|fa|he|ur|ps|sd|ug|yi)(-|$)/.test(r)?"rtl":"ltr",messages:{...is.messages,suggestions:[...is.messages.suggestions]},whiteLabel:{...is.whiteLabel}};for(const p of d)for(const h of[ET[p],l[p]])if(h){h.direction&&(p!=="en"||r==="en"||r.startsWith("en-"))&&(c.direction=h.direction);for(const[m,g]of Object.entries(h.messages||{}))g!==void 0&&Object.assign(c.messages,{[m]:g});for(const[m,g]of Object.entries(h.whiteLabel||{}))g!==void 0&&Object.assign(c.whiteLabel,{[m]:g})}return c.messages.suggestions=[...c.messages.suggestions],c}function wT(t){const i=Mh(t.locale,t.translations),r={...i.messages,...t.hideBranding?i.whiteLabel:{}},l=t.projectConfig,s=t.overrides||{};return{...r,launcher:s.launcher||l?.theme_config?.launcher_label||r.launcher,title:s.title||t.agentName||t.brandName||l?.theme_config?.brand_name||l?.title||r.title,emptyState:t.welcomeMessage??l?.welcome_message??r.emptyState,placeholder:s.placeholder||l?.placeholder||r.placeholder,suggestions:t.starterPrompts??(Array.isArray(l?.starter_questions)?l.starter_questions:l?.capabilities?.chat?r.suggestions.slice(0,3):r.suggestions),...s}}const Oh=`:host,.akilio-root{--akilio-primary: #0f766e;--akilio-primary-hover: #115e59;--akilio-primary-foreground: #ffffff;--akilio-accent: #2563eb;--akilio-radius: 22px;--akilio-panel-width: 440px;--akilio-z-index: 2147483647}:host{all:initial;display:block;direction:ltr;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;line-height:1.5;text-align:left;color-scheme:light dark;pointer-events:none}.akilio-launcher,.akilio-contextual-prompt,.akilio-overlay,.akilio-panel{pointer-events:auto}:host *,:host *:before,:host *:after,.akilio-root,.akilio-root *:before,.akilio-root *:after{box-sizing:border-box}.akilio-root button,.akilio-root input,.akilio-root textarea,.akilio-root select{font:inherit;color:inherit}.akilio-root,.akilio-root *{box-sizing:border-box}.akilio-root{color:#18181b;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}.akilio-launcher{position:fixed;right:22px;bottom:22px;z-index:calc(var(--akilio-z-index) - 10);display:inline-flex;align-items:center;gap:10px;border:1px solid rgba(255,255,255,.22);border-radius:999px;background:linear-gradient(135deg,var(--akilio-primary),color-mix(in srgb,var(--akilio-primary) 80%,transparent));color:#fff!important;padding:11px 16px 11px 12px;cursor:pointer;box-shadow:0 24px 60px #18181b40,0 0 0 1px #09090b14;transition:transform .26s ease,box-shadow .18s ease,background .18s ease}.akilio-launcher:hover{transform:translateY(-2px);box-shadow:0 28px 70px #0891b240,0 0 0 1px #09090b14}.akilio-launcher span{display:grid;width:30px;height:30px;place-items:center;overflow:hidden;border-radius:999px;background:#fff!important}.akilio-launcher-logo{display:block;width:22px;height:22px;object-fit:contain}.akilio-launcher strong{font-size:14px;font-weight:750;letter-spacing:-.01em}.akilio-launcher[data-experience=adaptive]{gap:0;min-width:54px;padding:11px 12px}.akilio-launcher[data-experience=adaptive] .akilio-launcher-label{display:inline-block;max-width:0;margin-left:0;overflow:hidden;opacity:0;white-space:nowrap;transition:max-width .3s cubic-bezier(.2,.8,.2,1),margin .3s ease,opacity .18s ease}.akilio-launcher[data-experience=adaptive][data-expanded=true],.akilio-launcher[data-experience=adaptive][data-answer-ready=true]{gap:10px;padding-right:14px}.akilio-launcher[data-experience=adaptive][data-expanded=true] .akilio-launcher-label,.akilio-launcher[data-experience=adaptive][data-answer-ready=true] .akilio-launcher-label{max-width:255px;opacity:1}.akilio-launcher[data-typing=true] .akilio-launcher-label:after{display:inline-block;width:1px;height:1em;margin-left:3px;background:currentColor;content:"";vertical-align:-.12em;animation:akilio-launcher-caret .7s steps(1,end) infinite}.akilio-launcher[data-answer-ready=true]{animation:akilio-launcher-answer-ready .7s cubic-bezier(.2,.8,.2,1) both}@keyframes akilio-launcher-answer-ready{0%,to{box-shadow:0 24px 60px #18181b40,0 0 0 1px #09090b14}45%{box-shadow:0 24px 60px #18181b40,0 0 0 7px color-mix(in srgb,var(--akilio-primary) 28%,transparent)}}@keyframes akilio-launcher-caret{50%{opacity:0}}.akilio-contextual-prompt{position:fixed;left:50%;bottom:max(28px,env(safe-area-inset-bottom));z-index:calc(var(--akilio-z-index) - 5);width:min(640px,calc(100vw - 190px));transform:translate(-50%);border:1px solid color-mix(in srgb,var(--akilio-primary) 22%,#d4d4d8);border-radius:18px;background:#fffffff7;padding:7px 42px 7px 8px;box-shadow:0 20px 60px #0f172a33,0 0 0 1px #0f766e0a;-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px);animation:akilio-contextual-in .22s cubic-bezier(.2,.8,.2,1)}.akilio-contextual-prompt form{display:flex;align-items:center;gap:8px}.akilio-contextual-prompt input{width:100%;min-width:0;height:42px;border:0;outline:0;background:transparent;color:#18181b;padding:0 8px;font-size:14px}.akilio-contextual-prompt input::placeholder{color:#71717a;opacity:1}.akilio-root .akilio-contextual-prompt input:focus,.akilio-root .akilio-contextual-prompt input:focus-visible{border:0;outline:none;box-shadow:none}.akilio-contextual-prompt:focus-within{border-color:color-mix(in srgb,var(--akilio-primary) 58%,#d4d4d8);box-shadow:0 20px 60px #0f172a33,0 0 0 3px color-mix(in srgb,var(--akilio-primary) 15%,transparent)}.akilio-contextual-submit{display:grid;flex:0 0 34px;width:34px;height:34px;place-items:center;border:0;border-radius:999px;background:var(--akilio-primary);color:var(--akilio-primary-foreground);cursor:pointer}.akilio-contextual-submit:hover:not(:disabled){background:var(--akilio-primary-hover)}.akilio-contextual-submit:disabled{cursor:not-allowed;opacity:.45}.akilio-contextual-submit svg{width:17px;height:17px}.akilio-contextual-dismiss{position:absolute;top:50%;right:8px;display:grid;width:28px;height:28px;transform:translateY(-50%);place-items:center;border:0;border-radius:999px;background:transparent;color:#71717a;cursor:pointer;font-size:20px;line-height:1}.akilio-contextual-dismiss:hover{background:#f4f4f5;color:#18181b}@keyframes akilio-contextual-in{0%{transform:translate(-50%,12px) scale(.98);opacity:0}to{transform:translate(-50%) scale(1);opacity:1}}.akilio-root[data-akilio-launcher-position=bottom-left] .akilio-launcher{right:auto;left:22px}.akilio-root[data-akilio-launcher-position=right-middle] .akilio-launcher{top:50%;right:0;bottom:auto;min-width:52px;min-height:164px;flex-direction:column;justify-content:center;gap:9px;transform:translateY(-50%);border-right:0;border-radius:18px 0 0 18px;padding:13px 10px 15px}.akilio-root[data-akilio-launcher-position=right-middle] .akilio-launcher:hover{transform:translate(-3px,-50%)}.akilio-root[data-akilio-launcher-position=right-middle] .akilio-launcher strong{writing-mode:vertical-rl;transform:rotate(180deg);letter-spacing:.02em}.akilio-root[data-akilio-launcher-position=right-middle] .akilio-coachmark{top:50%;right:72px;bottom:auto;transform:translateY(-50%);animation:akilio-coachmark-side-in .2s cubic-bezier(.2,.8,.2,1)}.akilio-root[data-akilio-launcher-position=right-middle] .akilio-coachmark:after{top:50%;right:-7px;bottom:auto;transform:translateY(-50%) rotate(-45deg)}.akilio-overlay{position:fixed;inset:0;z-index:calc(var(--akilio-z-index) - 2);border:0;background:#09090b75;-webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px);cursor:default}.akilio-panel{position:fixed;top:0;right:0;z-index:var(--akilio-z-index);display:flex;width:min(100vw,var(--akilio-panel-width));height:100dvh;transform:translate(103%);flex-direction:column;overflow:hidden;border-left:1px solid rgba(212,212,216,.9);background:#f8fafc;box-shadow:-30px 0 90px #0f172a3d;transition:transform .26s cubic-bezier(.2,.8,.2,1)}.akilio-panel--open{transform:translate(0)}.akilio-root[data-akilio-mode=floating] .akilio-panel{top:auto;right:22px;bottom:88px;width:min(400px,calc(100vw - 32px));height:min(650px,calc(100dvh - 116px));min-height:420px;transform:translateY(18px) scale(.98);transform-origin:right bottom;border:1px solid rgba(212,212,216,.9);border-radius:var(--akilio-radius);box-shadow:0 28px 80px #0f172a3d;opacity:0;visibility:hidden;pointer-events:none;transition:transform .22s cubic-bezier(.2,.8,.2,1),opacity .18s ease,visibility .18s ease}.akilio-root[data-akilio-mode=floating] .akilio-panel--open{transform:translateY(0) scale(1);opacity:1;visibility:visible;pointer-events:auto}.akilio-root[data-akilio-mode=floating][data-akilio-launcher-position=bottom-left] .akilio-panel{right:auto;left:22px;transform-origin:left bottom}.akilio-panel-glow{position:absolute;inset:0 0 auto;height:185px;pointer-events:none;background:radial-gradient(circle at 0% 0%,color-mix(in srgb,var(--akilio-primary) 35%,transparent),transparent 36%),radial-gradient(circle at 100% 0%,rgba(37,99,235,.22),transparent 34%)}.akilio-panel-header{position:relative;display:flex;align-items:flex-start;gap:12px;border-bottom:1px solid rgba(212,212,216,.82);background:#ffffffc7;padding:10px;-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px)}.akilio-logo,.akilio-empty-icon{display:grid;flex-shrink:0;place-items:center}.akilio-logo img{display:block;width:100%;height:100%;object-fit:contain;object-position:left center}.akilio-empty-icon{width:64px;height:64px;border:1px solid rgba(124,58,237,.12);border-radius:calc(var(--akilio-radius) - 4px);background:#ffffffe0;box-shadow:0 18px 42px #6d28d929}.akilio-empty-icon img{display:block;width:42px;height:42px;object-fit:contain}.akilio-header-content{min-width:0;flex:1}.akilio-header-topline{display:flex;min-width:0;align-items:center;justify-content:space-between;gap:10px}.akilio-header-title{display:flex;min-width:0;align-items:center;gap:8px}.akilio-header-title h2{overflow:hidden;margin:0;color:#09090b;font-size:14px;font-weight:800;letter-spacing:-.015em;text-overflow:ellipsis;white-space:nowrap}.akilio-online{display:inline-flex;align-items:center;gap:5px;border-radius:999px;background:#10b9811f;color:#047857;padding:3px 8px;font-size:10px;font-weight:800;white-space:nowrap}.akilio-online i{width:6px;height:6px;border-radius:999px;background:#10b981}.akilio-header-description{display:-webkit-box;margin:0;overflow:hidden;color:#71717a;font-size:12px;line-height:1.55;-webkit-box-orient:vertical;-webkit-line-clamp:3}.akilio-header-actions{display:flex;flex-shrink:0;align-items:center;gap:4px}.akilio-header-actions button{display:grid;width:25px;height:25px;place-items:center;border:0;border-radius:999px;background:transparent;color:#71717a;cursor:pointer;transition:background .16s ease,color .16s ease;padding-inline-start:4px}.akilio-header-actions button:hover{background:#f4f4f5;color:#09090b}.akilio-header-actions svg{width:18px;height:18px}.akilio-thread{position:relative;display:flex;flex:1;flex-direction:column;gap:14px;overflow-y:auto;padding:18px 16px 22px}.akilio-message-row{display:flex;width:100%}.akilio-message-row--user{justify-content:flex-end}.akilio-message-row--assistant{justify-content:flex-start}.akilio-stream-activity{align-items:center;gap:10px;min-height:38px;padding:2px 4px;color:#52525b}.akilio-stream-activity-icon{display:grid;width:28px;height:28px;flex:0 0 28px;place-items:center;border:1px solid color-mix(in srgb,var(--akilio-primary) 22%,#d4d4d8);border-radius:999px;background:color-mix(in srgb,var(--akilio-primary) 8%,#fff);color:var(--akilio-primary)}.akilio-stream-activity-content{display:flex;min-width:0;align-items:center;gap:8px}.akilio-stream-activity-label{font-size:13px;font-weight:550;line-height:1.4;animation:akilio-status-in .18s ease-out}.akilio-stream-activity-pulse{width:6px;height:6px;flex:0 0 6px;border-radius:999px;background:var(--akilio-primary);animation:akilio-status-pulse 1.2s ease-in-out infinite}@keyframes akilio-status-in{0%{transform:translateY(2px);opacity:0}to{transform:translateY(0);opacity:1}}@keyframes akilio-status-pulse{0%,to{transform:scale(.75);opacity:.35}50%{transform:scale(1);opacity:1}}.akilio-bubble{max-width:88%;overflow:hidden;border:1px solid rgba(212,212,216,.86);border-radius:26px 26px 26px 8px;background:#fffffff0;color:#27272a;padding:13px 15px;box-shadow:0 10px 28px #0f172a12}.akilio-bubble--user{border-color:#ffffff26;border-bottom-right-radius:8px;border-bottom-left-radius:26px;background:linear-gradient(135deg,var(--akilio-primary),color-mix(in srgb,var(--akilio-primary) 80%,transparent));color:#fff}.akilio-bubble--error{border-color:#f8717159;background:#fef2f2;color:#991b1b}.akilio-bubble-meta{display:flex;align-items:center;gap:5px;margin-bottom:8px;color:var(--akilio-primary);font-size:10px;font-weight:850;letter-spacing:.15em;text-transform:uppercase}.akilio-mini-icon{width:14px;height:14px}.akilio-confidence{margin-left:auto;border-radius:999px;background:color-mix(in srgb,var(--akilio-primary) 11%,transparent);padding:2px 7px;color:var(--akilio-primary);letter-spacing:0;text-transform:none}.akilio-answer{color:inherit;font-size:13px;line-height:1.7}.akilio-answer h2{font-size:15px;font-weight:700;margin:0}.akilio-answer p{margin:.5rem 0}.akilio-answer p:first-child{margin-top:0}.akilio-answer p:last-child{margin-bottom:0}.akilio-clarification-badge{display:inline-flex;margin-top:10px;border-radius:999px;background:color-mix(in srgb,var(--akilio-primary) 11%,transparent);color:var(--akilio-primary);padding:4px 8px;font-size:11px;font-weight:700}.akilio-clarification-card{display:grid;gap:10px;margin-top:12px;padding:13px;border:1px solid color-mix(in srgb,var(--akilio-primary) 22%,#d4d4d8);border-radius:14px;background:color-mix(in srgb,var(--akilio-primary) 6%,#fff)}.akilio-clarification-card strong{color:#17211f;font-size:13px;line-height:1.4}.akilio-clarification-card label{display:grid;gap:5px;color:#3f5f5a;font-size:12px;font-weight:700}.akilio-clarification-card input,.akilio-clarification-card select{width:100%;box-sizing:border-box;border:1px solid #d4d4d8;border-radius:9px;background:#fff;color:#18181b;padding:8px 9px;font:inherit}.akilio-clarification-card>button,.akilio-clarification-options button{border:0;border-radius:999px;background:var(--akilio-primary);color:var(--akilio-primary-foreground, #fff);padding:8px 12px;cursor:pointer;font:inherit;font-size:12px;font-weight:700}.akilio-clarification-card>button:disabled{cursor:not-allowed;opacity:.55}.akilio-clarification-options{display:flex;flex-wrap:wrap;gap:7px}.akilio-root[data-akilio-color-mode=dark] .akilio-clarification-card{border-color:color-mix(in srgb,var(--akilio-primary) 35%,#3f3f46);background:color-mix(in srgb,var(--akilio-primary) 14%,#18181b)}.akilio-root[data-akilio-color-mode=dark] .akilio-clarification-card strong{color:#fafafa}.akilio-root[data-akilio-color-mode=dark] .akilio-clarification-card label{color:#99f6e4}.akilio-root[data-akilio-color-mode=dark] .akilio-clarification-card input,.akilio-root[data-akilio-color-mode=dark] .akilio-clarification-card select{border-color:#52525b;background:#27272a;color:#fafafa}@media(prefers-color-scheme:dark){.akilio-root[data-akilio-color-mode=system] .akilio-clarification-card{border-color:color-mix(in srgb,var(--akilio-primary) 35%,#3f3f46);background:color-mix(in srgb,var(--akilio-primary) 14%,#18181b)}.akilio-root[data-akilio-color-mode=system] .akilio-clarification-card strong{color:#fafafa}.akilio-root[data-akilio-color-mode=system] .akilio-clarification-card label{color:#99f6e4}.akilio-root[data-akilio-color-mode=system] .akilio-clarification-card input,.akilio-root[data-akilio-color-mode=system] .akilio-clarification-card select{border-color:#52525b;background:#27272a;color:#fafafa}}.akilio-human-confirmation{display:flex;gap:10px;margin-top:12px;padding:14px;border:1px solid color-mix(in srgb,var(--akilio-primary) 24%,#d4d4d8);border-radius:16px;background:linear-gradient(135deg,color-mix(in srgb,var(--akilio-primary) 10%,#fff),#fff 70%)}.akilio-human-confirmation-icon{display:grid;width:32px;height:32px;flex:0 0 32px;place-items:center;border-radius:10px;background:#fff;box-shadow:0 2px 8px #0f172a1a}.akilio-human-confirmation-icon svg{width:18px;height:18px}.akilio-human-confirmation-content{min-width:0}.akilio-human-confirmation strong{display:block;margin:0;color:#17211f;font-size:13px;line-height:1.35}.akilio-human-confirmation p{margin-top:4px;color:#52525b;font-size:12px;line-height:1.45}.akilio-human-confirmation-consequences{color:#3f5f5a!important}.akilio-human-confirmation-error{color:#b91c1c!important}.akilio-human-confirmation-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:11px}.akilio-human-confirmation button{border-radius:999px;padding:8px 12px;cursor:pointer;font:inherit;font-size:12px;font-weight:700}.akilio-human-confirmation-confirm{margin-top:10px;border:0;background:var(--akilio-primary);color:var(--akilio-primary-foreground, #fff)}.akilio-human-confirmation-actions .akilio-human-confirmation-confirm{margin-top:0}.akilio-human-confirmation-cancel{border:1px solid color-mix(in srgb,var(--akilio-primary) 20%,#d4d4d8);background:#ffffffb8;color:#3f5f5a}.akilio-human-confirmation button:disabled{cursor:wait;opacity:.65}.akilio-root[data-akilio-color-mode=dark] .akilio-human-confirmation{border-color:color-mix(in srgb,var(--akilio-primary) 35%,#3f3f46);background:linear-gradient(135deg,color-mix(in srgb,var(--akilio-primary) 18%,#18181b),#18181b 70%)}.akilio-root[data-akilio-color-mode=dark] .akilio-human-confirmation-icon{background:#27272a;box-shadow:0 2px 8px #0000003d}.akilio-root[data-akilio-color-mode=dark] .akilio-human-confirmation strong{color:#fafafa}.akilio-root[data-akilio-color-mode=dark] .akilio-human-confirmation p{color:#d4d4d8}.akilio-root[data-akilio-color-mode=dark] .akilio-human-confirmation-consequences{color:#99f6e4!important}.akilio-root[data-akilio-color-mode=dark] .akilio-human-confirmation-error{color:#fca5a5!important}.akilio-root[data-akilio-color-mode=dark] .akilio-human-confirmation-cancel{border-color:#52525b;background:#27272a;color:#e4e4e7}@media(prefers-color-scheme:dark){.akilio-root[data-akilio-color-mode=system] .akilio-human-confirmation{border-color:color-mix(in srgb,var(--akilio-primary) 35%,#3f3f46);background:linear-gradient(135deg,color-mix(in srgb,var(--akilio-primary) 18%,#18181b),#18181b 70%)}.akilio-root[data-akilio-color-mode=system] .akilio-human-confirmation-icon{background:#27272a;box-shadow:0 2px 8px #0000003d}.akilio-root[data-akilio-color-mode=system] .akilio-human-confirmation strong{color:#fafafa}.akilio-root[data-akilio-color-mode=system] .akilio-human-confirmation p{color:#d4d4d8}.akilio-root[data-akilio-color-mode=system] .akilio-human-confirmation-consequences{color:#99f6e4!important}.akilio-root[data-akilio-color-mode=system] .akilio-human-confirmation-error{color:#fca5a5!important}.akilio-root[data-akilio-color-mode=system] .akilio-human-confirmation-cancel{border-color:#52525b;background:#27272a;color:#e4e4e7}}.akilio-answer ul,.akilio-answer ol{margin:.625rem 0 .625rem 1.25rem;padding-left:.75rem}.akilio-answer ul{list-style:disc}.akilio-answer ol{list-style:decimal}.akilio-answer li{margin:.25rem 0}.akilio-answer a{color:var(--akilio-primary);font-weight:700;text-decoration:underline;text-underline-offset:3px}.akilio-answer code{border-radius:7px;background:#0f172a14;padding:.12rem .35rem;font-size:.86em}.akilio-answer pre{margin:.75rem 0;overflow-x:auto;border:1px solid rgba(148,163,184,.2);border-radius:16px;background:#020617;padding:13px}.akilio-answer pre code{background:transparent;color:#e2e8f0;padding:0}.akilio-answer .hljs-keyword,.akilio-answer .hljs-selector-tag,.akilio-answer .hljs-built_in{color:#f0abfc}.akilio-answer .hljs-string,.akilio-answer .hljs-attr,.akilio-answer .hljs-symbol{color:#86efac}.akilio-answer .hljs-number,.akilio-answer .hljs-literal{color:#fcd34d}.akilio-answer .hljs-comment{color:#64748b;font-style:italic}.akilio-answer .hljs-title,.akilio-answer .hljs-function{color:#7dd3fc}.akilio-answer .hljs-variable{color:#fdba74}.akilio-answer--user{white-space:pre-wrap}.akilio-answer--user code{background:#ffffff29}.akilio-sources{margin-top:11px;overflow:hidden;border:1px solid rgba(212,212,216,.85);border-radius:16px;background:#f4f4f5c7}.akilio-sources summary{cursor:pointer;padding:9px 11px;color:#52525b;font-size:12px;font-weight:800}.akilio-sources-list{display:grid;gap:8px;border-top:1px solid rgba(212,212,216,.85);padding:8px}.akilio-source-card{display:grid;gap:3px;border:1px solid rgba(212,212,216,.82);border-radius:13px;background:#fff;padding:8px;font-size:12px}.akilio-source-card strong{color:#18181b}.akilio-source-card span{color:#71717a}.akilio-source-card a{overflow:hidden;color:var(--akilio-primary);text-overflow:ellipsis;white-space:nowrap}.akilio-feedback{display:flex;align-items:center;gap:7px;margin-top:11px;color:#71717a;font-size:11px}.akilio-feedback span{margin-right:auto}.akilio-feedback button{display:grid;width:28px;height:28px;place-items:center;border:1px solid rgba(212,212,216,.9);border-radius:999px;background:#fff;color:#71717a;cursor:pointer}.akilio-feedback button:hover,.akilio-feedback .akilio-feedback-active{border-color:color-mix(in srgb,var(--akilio-primary) 35%,#d4d4d8);color:var(--akilio-primary)}.akilio-feedback button:disabled{cursor:wait;opacity:.62}.akilio-feedback .akilio-feedback-pending{border-color:color-mix(in srgb,var(--akilio-primary) 35%,#d4d4d8);color:var(--akilio-primary);opacity:1}.akilio-feedback-spinner{display:block;width:13px;height:13px;border:2px solid color-mix(in srgb,var(--akilio-primary) 24%,transparent);border-top-color:currentColor;border-radius:999px;animation:akilio-feedback-spin .65s linear infinite}@keyframes akilio-feedback-spin{to{transform:rotate(360deg)}}.akilio-feedback svg{width:14px;height:14px}.akilio-dots{display:flex;gap:6px;padding:2px 0}.akilio-dots span{width:8px;height:8px;border-radius:999px;background:var(--akilio-primary);animation:akilio-bounce .9s infinite ease-in-out}.akilio-dots span:nth-child(2){animation-delay:.1s}.akilio-dots span:nth-child(3){animation-delay:.2s}@keyframes akilio-bounce{0%,80%,to{transform:translateY(0);opacity:.45}40%{transform:translateY(-4px);opacity:1}}.akilio-empty{margin:auto;display:flex;max-width:340px;flex-direction:column;align-items:center;padding:34px 0;text-align:center}.akilio-empty-icon{width:58px;height:58px;margin-bottom:16px}.akilio-empty h3{margin:0;color:#09090b;font-size:17px;font-weight:850;letter-spacing:-.02em}.akilio-empty p{margin:8px 0 0;color:#71717a;font-size:14px;line-height:1.65}.akilio-suggestions{display:grid;width:100%;gap:9px;margin-top:18px}.akilio-suggestions button{border:1px solid rgba(212,212,216,.9);border-radius:16px;background:#fff;color:#3f3f46;cursor:pointer;padding:10px 12px;text-align:left;font-size:12px;font-weight:700;box-shadow:0 5px 14px #0f172a0a;transition:transform .15s ease,border-color .15s ease,box-shadow .15s ease}.akilio-suggestions button:hover{transform:translateY(-1px);border-color:color-mix(in srgb,var(--akilio-primary) 35%,#d4d4d8);box-shadow:0 12px 22px #0f172a14}.akilio-composer{position:relative;border-top:1px solid rgba(212,212,216,.85);background:#ffffffdb;padding:8px 12px;-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px)}.akilio-intent-actions{display:flex;gap:8px;overflow-x:auto;padding:0 0 8px;scrollbar-width:none}.akilio-intent-actions::-webkit-scrollbar{display:none}.akilio-intent-action{display:inline-flex;flex:0 0 auto;align-items:center;gap:6px;min-height:34px;border:1px solid color-mix(in srgb,var(--akilio-primary) 28%,#d4d4d8);border-radius:999px;background:color-mix(in srgb,var(--akilio-primary) 7%,#fff);color:color-mix(in srgb,var(--akilio-primary) 82%,#18181b);cursor:pointer;padding:7px 11px;font:inherit;font-size:12px;font-weight:700;line-height:1.2;transition:background .15s ease,border-color .15s ease,transform .15s ease}.akilio-intent-action svg{width:15px;height:15px}.akilio-intent-action:hover:not(:disabled){border-color:var(--akilio-primary);background:color-mix(in srgb,var(--akilio-primary) 14%,#fff);transform:translateY(-1px)}.akilio-intent-action:focus-visible{outline:3px solid color-mix(in srgb,var(--akilio-primary) 25%,transparent);outline-offset:2px}.akilio-intent-action:disabled{cursor:not-allowed;opacity:.5}.akilio-root[data-akilio-color-mode=dark] .akilio-intent-action{border-color:color-mix(in srgb,var(--akilio-primary) 42%,#3f3f46);background:color-mix(in srgb,var(--akilio-primary) 18%,#18181b);color:color-mix(in srgb,var(--akilio-primary) 48%,#fafafa)}.akilio-root[data-akilio-color-mode=dark] .akilio-intent-action:hover:not(:disabled){border-color:color-mix(in srgb,var(--akilio-primary) 72%,#a1a1aa);background:color-mix(in srgb,var(--akilio-primary) 28%,#18181b)}@media(prefers-color-scheme:dark){.akilio-root[data-akilio-color-mode=system] .akilio-intent-action{border-color:color-mix(in srgb,var(--akilio-primary) 42%,#3f3f46);background:color-mix(in srgb,var(--akilio-primary) 18%,#18181b);color:color-mix(in srgb,var(--akilio-primary) 48%,#fafafa)}.akilio-root[data-akilio-color-mode=system] .akilio-intent-action:hover:not(:disabled){border-color:color-mix(in srgb,var(--akilio-primary) 72%,#a1a1aa);background:color-mix(in srgb,var(--akilio-primary) 28%,#18181b)}}.akilio-composer-box{display:flex;align-items:flex-end;gap:8px;border:1px solid rgba(212,212,216,.95);border-radius:24px;background:#f8fafc;padding:6px 12px;box-shadow:inset 0 1px 2px #0f172a0a;transition:border-color .15s ease,background .15s ease,box-shadow .15s ease}.akilio-composer-box:focus-within{border-color:color-mix(in srgb,var(--akilio-primary) 55%,#d4d4d8);background:#fff;box-shadow:0 0 0 4px color-mix(in srgb,var(--akilio-primary) 13%,transparent),inset 0 1px 2px #0f172a08}.akilio-composer textarea{flex:1;min-height:36px;max-height:120px;height:36px;overflow-y:hidden;resize:none;border:0;outline:0;background:transparent;color:#09090b;padding:6px 0;font:inherit;font-size:14px;line-height:1.5}.akilio-online--unavailable{color:#a16207}.akilio-online--unavailable i{background:#f59e0b;box-shadow:0 0 0 3px #f59e0b29}.akilio-composer textarea::placeholder{color:#a1a1aa}.akilio-composer-submit{flex-shrink:0;display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;border:0;border-radius:999px;background:var(--akilio-primary);color:#fff;cursor:pointer;padding:0;transition:background .15s ease,opacity .15s ease,transform .15s ease}.akilio-composer-submit:hover:not(:disabled){background:var(--akilio-primary-hover);transform:scale(1.05)}.akilio-composer-submit:active:not(:disabled){transform:scale(.98)}.akilio-composer-submit:disabled{opacity:.45;cursor:not-allowed}.akilio-composer-submit svg{width:16px;height:16px}.akilio-composer-help{margin-top:6px;padding:0 12px;color:#71717a;font-size:11px;line-height:1.4;display:flex;align-items:center;gap:4px}.akilio-powered-by{margin-top:6px;padding:0 4px;color:#71717a;font-size:10px;font-weight:600;line-height:1.2;text-align:center}.akilio-powered-by a{text-decoration:none;font-weight:700}.akilio-coachmark{position:fixed;right:22px;bottom:94px;z-index:calc(var(--akilio-z-index) - 1);display:flex;width:min(320px,calc(100vw - 32px));gap:11px;border:1px solid color-mix(in srgb,var(--akilio-primary) 24%,#d4d4d8);border-radius:18px;background:#fffffffa;color:#17211f;padding:15px 38px 15px 15px;pointer-events:auto;box-shadow:0 24px 64px #042f2e2e,0 0 0 1px #0f766e0a;animation:akilio-coachmark-in .2s cubic-bezier(.2,.8,.2,1)}.akilio-coachmark:after{position:absolute;right:30px;bottom:-7px;width:13px;height:13px;transform:rotate(45deg);border-right:1px solid color-mix(in srgb,var(--akilio-primary) 24%,#d4d4d8);border-bottom:1px solid color-mix(in srgb,var(--akilio-primary) 24%,#d4d4d8);background:#fff;content:""}.akilio-coachmark-icon{display:grid;width:32px;height:32px;flex:0 0 32px;place-items:center;border-radius:999px;background:color-mix(in srgb,var(--akilio-primary) 11%,#fff);color:var(--akilio-primary)}.akilio-coachmark-icon svg{width:17px;height:17px}.akilio-coachmark-content{min-width:0}.akilio-coachmark-content strong{display:block;margin:0 0 3px;color:#17211f;font-size:14px;line-height:1.35}.akilio-coachmark-content p{margin:0;color:#52525b;font-size:12px;line-height:1.5}.akilio-coachmark-action{margin-top:9px;border:0;border-radius:999px;background:var(--akilio-primary);color:var(--akilio-primary-foreground);padding:7px 12px;cursor:pointer;font-size:11px;font-weight:750}.akilio-coachmark-close{position:absolute;top:8px;right:8px;display:grid;width:26px;height:26px;place-items:center;border:0;border-radius:999px;background:transparent;color:#71717a;cursor:pointer;font-size:20px;line-height:1}.akilio-coachmark-close:hover{background:#f4f4f5;color:#18181b}@keyframes akilio-coachmark-in{0%{transform:translateY(8px) scale(.98);opacity:0}to{transform:translateY(0) scale(1);opacity:1}}@keyframes akilio-coachmark-side-in{0%{transform:translate(8px,-50%) scale(.98);opacity:0}to{transform:translateY(-50%) scale(1);opacity:1}}@media(max-width:1279px){.akilio-root[data-akilio-launcher-position=right-middle] .akilio-launcher{top:auto;right:22px;bottom:22px;min-width:0;min-height:0;flex-direction:row;transform:none;border-right:1px solid rgba(255,255,255,.22);border-radius:999px;padding:11px 16px 11px 12px}.akilio-root[data-akilio-launcher-position=right-middle] .akilio-launcher:hover{transform:translateY(-2px)}.akilio-root[data-akilio-launcher-position=right-middle] .akilio-launcher strong{writing-mode:initial;transform:none}.akilio-root[data-akilio-launcher-position=right-middle] .akilio-coachmark{top:auto;right:22px;bottom:94px;transform:none;animation:akilio-coachmark-in .2s cubic-bezier(.2,.8,.2,1)}.akilio-root[data-akilio-launcher-position=right-middle] .akilio-coachmark:after{top:auto;right:30px;bottom:-7px;transform:rotate(45deg)}}@media(max-width:640px){.akilio-contextual-prompt{bottom:calc(78px + env(safe-area-inset-bottom));width:calc(100vw - 28px);padding-left:6px}.akilio-root[data-akilio-launcher-position=right-middle] .akilio-launcher{inset:auto 16px 16px auto;min-width:0;min-height:0;flex-direction:row;transform:none;border-right:1px solid rgba(255,255,255,.22);border-radius:999px}.akilio-root[data-akilio-launcher-position=right-middle] .akilio-launcher:hover{transform:translateY(-2px)}.akilio-root[data-akilio-launcher-position=right-middle] .akilio-launcher strong{writing-mode:initial;transform:none}.akilio-root[data-akilio-launcher-position=right-middle] .akilio-coachmark{top:auto;right:16px;bottom:82px;animation:akilio-coachmark-in .2s cubic-bezier(.2,.8,.2,1)}.akilio-root[data-akilio-launcher-position=right-middle] .akilio-coachmark:after{top:auto;right:30px;bottom:-7px;transform:rotate(45deg)}.akilio-launcher{right:16px;bottom:16px;padding:10px 12px}.akilio-coachmark{right:16px;bottom:82px}.akilio-launcher strong{display:none}.akilio-panel{width:100vw}.akilio-bubble{max-width:94%}.akilio-composer-help{display:none}}.akilio-root[data-akilio-mode=inline]{width:100%;height:100%;min-height:520px}.akilio-panel--inline{position:relative;inset:auto;width:100%;height:100%;min-height:520px;transform:none;border:1px solid rgba(212,212,216,.9);border-radius:var(--akilio-radius);box-shadow:0 18px 50px #0f172a1f}.akilio-privacy{display:grid;gap:8px;border-top:1px solid rgba(212,212,216,.82);background:#ffffffe6;padding:10px 14px;font-size:11px;line-height:1.45}.akilio-privacy strong{color:#18181b}.akilio-privacy p{margin:2px 0 0;color:#71717a}.akilio-privacy a{color:var(--akilio-primary);font-weight:700}.akilio-privacy label{display:flex;align-items:flex-start;gap:8px;color:#3f3f46;cursor:pointer}.akilio-privacy input{margin-top:2px;accent-color:var(--akilio-primary)}.akilio-composer textarea:disabled{cursor:not-allowed;opacity:.65}.akilio-root button:focus-visible,.akilio-root a:focus-visible,.akilio-root input:focus-visible{outline:3px solid color-mix(in srgb,var(--akilio-primary) 45%,transparent);outline-offset:2px}.akilio-root .akilio-composer textarea:focus,.akilio-root .akilio-composer textarea:focus-visible{border:0;outline:none;box-shadow:none}@media(prefers-reduced-motion:reduce){.akilio-root *,.akilio-root *:before,.akilio-root *:after{scroll-behavior:auto!important;animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}.akilio-root[data-akilio-color-mode=dark]{color:#e4e4e7}.akilio-root[data-akilio-color-mode=dark] .akilio-panel,.akilio-root[data-akilio-color-mode=dark] .akilio-panel--inline{background:var(--akilio-surface, #09090b);border-color:#27272a}.akilio-root[data-akilio-color-mode=dark] .akilio-panel-header,.akilio-root[data-akilio-color-mode=dark] .akilio-privacy{background:#18181beb;border-color:#3f3f46}.akilio-root[data-akilio-color-mode=dark] .akilio-header-title h2,.akilio-root[data-akilio-color-mode=dark] .akilio-empty h3,.akilio-root[data-akilio-color-mode=dark] .akilio-privacy strong{color:var(--akilio-text, #fafafa)}.akilio-root[data-akilio-color-mode=dark] .akilio-header-description,.akilio-root[data-akilio-color-mode=dark] .akilio-empty p,.akilio-root[data-akilio-color-mode=dark] .akilio-privacy p,.akilio-root[data-akilio-color-mode=dark] .akilio-privacy label,.akilio-root[data-akilio-color-mode=dark] .akilio-stream-activity{color:var(--akilio-muted, #a1a1aa)}.akilio-root[data-akilio-color-mode=dark] .akilio-stream-activity-icon{border-color:color-mix(in srgb,var(--akilio-primary) 35%,#3f3f46);background:color-mix(in srgb,var(--akilio-primary) 15%,#18181b)}.akilio-root[data-akilio-color-mode=dark] .akilio-bubble{background:#18181b;border-color:#3f3f46;color:#e4e4e7;box-shadow:none}.akilio-root[data-akilio-color-mode=dark] .akilio-bubble--user{background:linear-gradient(135deg,var(--akilio-primary),var(--akilio-accent));color:var(--akilio-primary-foreground)}.akilio-root[data-akilio-color-mode=dark] .akilio-sources{background:#09090b;border-color:#3f3f46}.akilio-root[data-akilio-color-mode=dark] .akilio-sources-list{border-color:#3f3f46}.akilio-root[data-akilio-color-mode=dark] .akilio-source-card,.akilio-root[data-akilio-color-mode=dark] .akilio-feedback button,.akilio-root[data-akilio-color-mode=dark] .akilio-composer-box{background:#18181b;border-color:#3f3f46;color:#e4e4e7}.akilio-root[data-akilio-color-mode=dark] .akilio-source-card strong{color:#fafafa}.akilio-root[data-akilio-color-mode=dark] .akilio-source-card span,.akilio-root[data-akilio-color-mode=dark] .akilio-feedback{color:#a1a1aa}@media(prefers-color-scheme:dark){.akilio-root[data-akilio-color-mode=system] .akilio-panel,.akilio-root[data-akilio-color-mode=system] .akilio-panel--inline{background:#09090b;border-color:#27272a}.akilio-root[data-akilio-color-mode=system] .akilio-panel-header,.akilio-root[data-akilio-color-mode=system] .akilio-privacy{background:#18181beb;border-color:#3f3f46}.akilio-root[data-akilio-color-mode=system] .akilio-header-title h2,.akilio-root[data-akilio-color-mode=system] .akilio-empty h3,.akilio-root[data-akilio-color-mode=system] .akilio-privacy strong{color:#fafafa}.akilio-root[data-akilio-color-mode=system] .akilio-header-description,.akilio-root[data-akilio-color-mode=system] .akilio-empty p,.akilio-root[data-akilio-color-mode=system] .akilio-privacy p,.akilio-root[data-akilio-color-mode=system] .akilio-privacy label{color:#a1a1aa}.akilio-root[data-akilio-color-mode=system] .akilio-bubble{background:#18181b;border-color:#3f3f46;color:#e4e4e7;box-shadow:none}.akilio-root[data-akilio-color-mode=system] .akilio-bubble--user{background:linear-gradient(135deg,var(--akilio-primary),var(--akilio-accent));color:var(--akilio-primary-foreground)}.akilio-root[data-akilio-color-mode=system] .akilio-source-card,.akilio-root[data-akilio-color-mode=system] .akilio-feedback button,.akilio-root[data-akilio-color-mode=system] .akilio-composer-box{background:#18181b;border-color:#3f3f46;color:#e4e4e7}}@media(max-width:640px){.akilio-root[data-akilio-launcher-position=bottom-left] .akilio-launcher{right:auto;left:14px}.akilio-launcher{right:14px;bottom:max(14px,env(safe-area-inset-bottom));padding:10px}.akilio-launcher strong{display:none}.akilio-panel{width:100vw;height:100dvh;border-left:0}.akilio-root[data-akilio-mode=floating] .akilio-panel{right:14px;bottom:calc(76px + env(safe-area-inset-bottom));width:calc(100vw - 28px);height:min(640px,calc(100dvh - 104px - env(safe-area-inset-bottom)));min-height:min(420px,calc(100dvh - 104px));border:1px solid rgba(212,212,216,.9);border-radius:18px}.akilio-root[data-akilio-mode=floating][data-akilio-launcher-position=bottom-left] .akilio-panel{right:auto;left:14px}.akilio-panel-header{padding-top:max(10px,env(safe-area-inset-top))}.akilio-thread{padding-inline:12px}.akilio-bubble{max-width:94%}.akilio-composer{padding-bottom:max(10px,env(safe-area-inset-bottom))}.akilio-root[data-akilio-mode=inline]{min-height:480px}.akilio-panel--inline{min-height:480px;border-radius:16px}}.akilio-root[data-akilio-color-mode=dark] .akilio-composer{background:#18181beb;border-color:#3f3f46}.akilio-root[data-akilio-color-mode=dark] .akilio-composer-box{background:#18181b;border-color:#3f3f46}.akilio-root[data-akilio-color-mode=dark] .akilio-composer textarea{color:var(--akilio-text, #fafafa);caret-color:var(--akilio-text, #fafafa);-webkit-text-fill-color:var(--akilio-text, #fafafa)}.akilio-root[data-akilio-color-mode=dark] .akilio-composer textarea::placeholder{color:var(--akilio-muted, #a1a1aa);-webkit-text-fill-color:var(--akilio-muted, #a1a1aa);opacity:1}.akilio-root[data-akilio-color-mode=dark] .akilio-composer-help,.akilio-root[data-akilio-color-mode=dark] .akilio-powered-by{color:var(--akilio-muted, #a1a1aa)}.akilio-root[data-akilio-color-mode=dark] .akilio-coachmark{border-color:color-mix(in srgb,var(--akilio-primary) 34%,#3f3f46);background:#18181bfa;color:#fafafa;box-shadow:0 24px 64px #0000006b}.akilio-root[data-akilio-color-mode=dark] .akilio-contextual-prompt{border-color:color-mix(in srgb,var(--akilio-primary) 34%,#3f3f46);background:#18181bf7;box-shadow:0 20px 60px #0000006b}.akilio-root[data-akilio-color-mode=dark] .akilio-contextual-prompt input{color:#fafafa}.akilio-root[data-akilio-color-mode=dark] .akilio-contextual-prompt input::placeholder{color:#a1a1aa}.akilio-root[data-akilio-color-mode=dark] .akilio-contextual-dismiss{color:#a1a1aa}.akilio-root[data-akilio-color-mode=dark] .akilio-contextual-dismiss:hover{background:#27272a;color:#fafafa}.akilio-root[data-akilio-color-mode=dark] .akilio-contact-options a,.akilio-root[data-akilio-color-mode=dark] .akilio-contact-form{border-color:#3f3f46;background:#18181b;color:#e4e4e7}.akilio-root[data-akilio-color-mode=dark] .akilio-contact-option-copy small,.akilio-root[data-akilio-color-mode=dark] .akilio-contact-form label{color:#a1a1aa}.akilio-root[data-akilio-color-mode=dark] .akilio-contact-option-icon{background:color-mix(in srgb,var(--akilio-primary) 22%,#18181b)}.akilio-root[data-akilio-color-mode=dark] .akilio-contact-option-arrow{color:#71717a}.akilio-root[data-akilio-color-mode=dark] .akilio-contact-form input,.akilio-root[data-akilio-color-mode=dark] .akilio-contact-form select,.akilio-root[data-akilio-color-mode=dark] .akilio-contact-form textarea{border-color:#52525b;background-color:#27272a;color:#fafafa}.akilio-root[data-akilio-color-mode=dark] .akilio-coachmark:after{border-color:color-mix(in srgb,var(--akilio-primary) 34%,#3f3f46);background:#18181b}.akilio-root[data-akilio-color-mode=dark] .akilio-coachmark-content strong{color:#fafafa}.akilio-root[data-akilio-color-mode=dark] .akilio-coachmark-content p,.akilio-root[data-akilio-color-mode=dark] .akilio-coachmark-close{color:#a1a1aa}.akilio-root[data-akilio-color-mode=dark] .akilio-coachmark-close:hover{background:#27272a;color:#fafafa}.akilio-root[data-akilio-color-mode=dark] .akilio-composer-box:focus-within{background:#18181b;border-color:color-mix(in srgb,var(--akilio-primary) 55%,#3f3f46)}.akilio-privacy-consent-copy{margin-top:6px!important}.akilio-privacy-actions{display:flex;justify-content:flex-end;gap:8px}.akilio-privacy-actions button{border:1px solid rgba(161,161,170,.65);border-radius:999px;padding:6px 12px;font:inherit;font-weight:700;cursor:pointer}.akilio-privacy-decline{background:transparent;color:#52525b}.akilio-privacy-accept{border-color:var(--akilio-primary)!important;background:var(--akilio-primary);color:#fff}.akilio-privacy-review{border:0;background:transparent;color:var(--akilio-primary);font:inherit;font-weight:700;text-decoration:underline;cursor:pointer;padding:0}.akilio-contact{display:grid;gap:9px;margin-top:12px}.akilio-conversation-recap{justify-self:start;border:1px solid color-mix(in srgb,var(--akilio-primary) 26%,#d4d4d8);border-radius:999px;background:transparent;color:var(--akilio-primary);cursor:pointer;padding:6px 10px;font:inherit;font-size:11px;font-weight:700}.akilio-conversation-recap:hover{background:color-mix(in srgb,var(--akilio-primary) 10%,transparent)}.akilio-contact-options{display:grid;grid-template-columns:repeat(auto-fit,minmax(132px,1fr));gap:6px}.akilio-contact-options a{display:grid;grid-template-columns:27px minmax(0,1fr) 12px;min-height:44px;align-items:center;gap:7px;border:1px solid #e2e8f0;border-radius:10px;background:linear-gradient(135deg,#fff,#f8fafc);color:#334155;padding:6px 7px;text-decoration:none;transition:border-color .16s ease,box-shadow .16s ease,transform .16s ease}.akilio-contact-option-icon{display:grid;width:27px;height:27px;place-items:center;border-radius:8px;background:color-mix(in srgb,var(--akilio-primary) 12%,#fff);color:var(--akilio-primary)}.akilio-contact-option-icon svg{width:15px;height:15px}.akilio-contact-option-copy{display:grid;min-width:0;gap:2px}.akilio-contact-option-copy strong{overflow:hidden;font-size:11px;line-height:1.25;text-align:left;text-overflow:ellipsis;white-space:nowrap}.akilio-contact-option-copy small{overflow:hidden;color:#64748b;font-size:10px;line-height:1.2;text-overflow:ellipsis;white-space:nowrap}.akilio-contact-option-arrow{width:12px;height:12px;color:#94a3b8;transition:transform .16s ease,color .16s ease}.akilio-contact-options a:hover{border-color:color-mix(in srgb,var(--akilio-primary) 40%,#e2e8f0);box-shadow:0 5px 14px color-mix(in srgb,var(--akilio-primary) 13%,transparent);color:var(--akilio-primary);transform:translateY(-1px)}.akilio-contact-options a:hover .akilio-contact-option-arrow{color:var(--akilio-primary);transform:translate(2px)}.akilio-contact-start,.akilio-contact-submit{justify-self:start;border:0;border-radius:999px;background:var(--akilio-primary);color:var(--akilio-primary-foreground)!important;padding:8px 13px;cursor:pointer;font-size:12px;font-weight:700}.akilio-contact-start:hover,.akilio-contact-submit:hover:not(:disabled){background:var(--akilio-primary-hover)}.akilio-contact-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;border:1px solid #e2e8f0;border-radius:14px;background:#fff;padding:12px}.akilio-contact-form label{display:grid;gap:4px;color:#475569;font-size:11px;font-weight:650}.akilio-contact-form label>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.akilio-contact-name,.akilio-contact-message,.akilio-contact-consent,.akilio-contact-error,.akilio-contact-submit{grid-column:1 / -1}.akilio-contact-form input,.akilio-contact-form select,.akilio-contact-form textarea{width:100%;min-width:0;border:1px solid #d4d4d8;border-radius:9px;background:#fff;color:#18181b;padding:8px 9px;outline:0;font-size:12px}.akilio-contact-form input:not([type=checkbox]),.akilio-contact-form select{height:36px}.akilio-contact-form select{appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 20 20'%3E%3Cpath d='m5 7.5 5 5 5-5' fill='none' stroke='%2371717a' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.8'/%3E%3C/svg%3E");background-position:right 9px center;background-repeat:no-repeat;padding-right:28px}.akilio-contact-form textarea{resize:vertical}.akilio-contact-form input:focus,.akilio-contact-form select:focus,.akilio-contact-form textarea:focus{border-color:var(--akilio-primary);box-shadow:0 0 0 2px color-mix(in srgb,var(--akilio-primary) 14%,transparent)}.akilio-root .akilio-contact-form input:not([type=checkbox]):focus,.akilio-root .akilio-contact-form input:not([type=checkbox]):focus-visible,.akilio-root .akilio-contact-form select:focus,.akilio-root .akilio-contact-form select:focus-visible,.akilio-root .akilio-contact-form textarea:focus,.akilio-root .akilio-contact-form textarea:focus-visible{outline:none}.akilio-contact-form .akilio-contact-consent{display:flex;grid-template-columns:none;align-items:flex-start;gap:7px;font-weight:500}.akilio-contact-form .akilio-contact-consent>span{overflow:visible;text-overflow:clip;white-space:normal}.akilio-contact-consent input{width:15px;margin-top:1px;accent-color:var(--akilio-primary)}.akilio-contact-submit:disabled{cursor:wait;opacity:.55}.akilio-human-handoff-form{margin-top:12px}.akilio-honeypot{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap}.akilio-contact-success,.akilio-contact-error{margin:0;font-size:12px;font-weight:650}.akilio-contact-success{color:#047857}.akilio-contact-error{color:#b91c1c}@media(max-width:640px){.akilio-contact-form{grid-template-columns:1fr}}.akilio-products{margin-top:14px;min-width:0}.akilio-commerce-result{overflow:hidden;border:1px solid color-mix(in srgb,var(--akilio-primary) 20%,#d4d4d8);border-radius:18px;background:color-mix(in srgb,var(--akilio-primary) 3%,#fff);padding:11px}.akilio-inline-decision-card{display:grid;gap:12px;max-width:420px;padding:16px;border:1px solid color-mix(in srgb,var(--akilio-primary) 24%,#d4d4d8);border-radius:16px;background:linear-gradient(135deg,color-mix(in srgb,var(--akilio-primary) 10%,#fff),#fff 70%);color:#17211f}.akilio-inline-decision-card h3,.akilio-inline-decision-card p{margin:0}.akilio-inline-decision-card h3{font-size:15px}.akilio-inline-decision-card p{margin-top:5px;color:#52525b;font-size:13px;line-height:1.45}.akilio-inline-decision-card>button{justify-self:start;border:0;border-radius:999px;padding:9px 13px;background:var(--akilio-primary);color:var(--akilio-primary-foreground, #fff);cursor:pointer;font:inherit;font-size:12px;font-weight:700}.akilio-inline-decision-card>button:hover{background:var(--akilio-primary-hover)}.akilio-inline-decision-followups{display:flex;flex-wrap:wrap;gap:7px}.akilio-inline-decision-followups button{border:1px solid color-mix(in srgb,var(--akilio-primary) 22%,#d4d4d8);border-radius:999px;background:#ffffffb8;color:#3f5f5a;padding:6px 9px;cursor:pointer;font:inherit;font-size:11px}.akilio-section-prompt{display:flex;align-items:center;justify-content:space-between;gap:12px;max-width:560px;padding:12px 14px;border:1px solid color-mix(in srgb,var(--akilio-primary) 22%,#d4d4d8);border-radius:12px;background:color-mix(in srgb,var(--akilio-primary) 7%,#fff)}.akilio-section-prompt-copy{min-width:0;display:grid;gap:3px}.akilio-section-prompt-copy span{color:#3f5f5a;font-size:11px;font-weight:650}.akilio-section-prompt-copy strong{color:#17211f;font-size:13px;line-height:1.35}.akilio-section-prompt button{flex:0 0 34px;width:34px;height:34px;border:0;border-radius:50%;background:var(--akilio-primary);color:var(--akilio-primary-foreground, #fff);cursor:pointer;font:inherit;font-size:18px;font-weight:700}.akilio-section-prompt button:hover{background:var(--akilio-primary-hover)}.akilio-text-selection-prompt{position:absolute;z-index:2147483647;border:0;border-radius:999px;background:var(--akilio-primary);color:var(--akilio-primary-foreground, #fff);padding:7px 10px;box-shadow:0 4px 12px #0f172a2e;cursor:pointer;font:inherit;font-size:11px;font-weight:700}.akilio-text-selection-prompt:hover{background:var(--akilio-primary-hover)}@media(max-width:480px){.akilio-section-prompt{align-items:stretch;flex-direction:column}.akilio-section-prompt button{width:100%}}@media(prefers-color-scheme:dark){.akilio-inline-decision-card{background:linear-gradient(135deg,color-mix(in srgb,var(--akilio-primary) 18%,#18181b),#18181b 70%);border-color:color-mix(in srgb,var(--akilio-primary) 35%,#3f3f46);color:#fafafa}.akilio-inline-decision-card p{color:#d4d4d8}.akilio-inline-decision-followups button{border-color:#52525b;background:#27272a;color:#e4e4e7}.akilio-section-prompt{border-color:color-mix(in srgb,var(--akilio-primary) 35%,#3f3f46);background:color-mix(in srgb,var(--akilio-primary) 18%,#18181b)}.akilio-section-prompt-copy span{color:#d4d4d8}.akilio-section-prompt-copy strong{color:#fafafa}}.akilio-products-heading{display:flex;align-items:center;gap:8px;margin-bottom:9px;font-size:12px;color:#64748b}.akilio-products-heading strong{min-width:0;flex:1;color:#334155;font-size:12px}.akilio-commerce-icon{display:grid;width:26px;height:26px;flex:0 0 26px;place-items:center;border-radius:9px;background:color-mix(in srgb,var(--akilio-primary) 12%,#fff);color:var(--akilio-primary)}.akilio-commerce-icon svg{width:15px;height:15px;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.8}.akilio-products-heading .akilio-products-count{display:inline-flex;align-items:center;justify-content:center;min-width:22px;height:22px;padding:0 7px;border-radius:999px;background:#eef2ff;color:#4338ca;font-weight:700}.akilio-product-group{display:grid;gap:6px}.akilio-product-group+.akilio-product-group{margin-top:11px;padding-top:10px;border-top:1px solid #e2e8f0}.akilio-product-group>small{color:#64748b;font-size:10px;font-weight:700;letter-spacing:.02em;text-transform:uppercase}.akilio-products-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.akilio-products-grid--detail{display:grid;grid-template-columns:repeat(1,minmax(0,1fr));gap:10px}.akilio-products-grid--comparison{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.akilio-products-grid--vertical{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.akilio-products-grid--horizontal{display:flex;flex-direction:column;gap:10px}.akilio-products-grid--carousel{display:flex;gap:10px;overflow-x:auto;overscroll-behavior-x:contain;padding:2px 2px 8px;scroll-padding-inline:2px;scroll-snap-type:x mandatory;scrollbar-width:thin;-webkit-overflow-scrolling:touch}.akilio-products-grid--carousel>.akilio-product-card{flex:0 0 min(76%,240px);scroll-snap-align:start}.akilio-commerce-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:10px;padding-top:10px;border-top:1px solid #e2e8f0}.akilio-commerce-actions--embedded{grid-template-columns:1fr;margin-top:8px;padding-top:0;border-top:0}.akilio-header-cart{position:relative}.akilio-header-cart span{position:absolute;top:-5px;right:-5px;display:grid;min-width:14px;height:14px;place-items:center;border:2px solid var(--akilio-surface, #fff);border-radius:999px;background:var(--akilio-primary);color:var(--akilio-primary-foreground, #fff);font-size:8px;font-weight:800}.akilio-cart-panel{display:grid;gap:11px;margin:0 14px 10px;border:1px solid color-mix(in srgb,var(--akilio-primary) 24%,#d4d4d8);border-radius:16px;background:color-mix(in srgb,var(--akilio-primary) 5%,#fff);box-shadow:0 12px 24px #0f172a17;padding:11px}.akilio-cart-panel>header,.akilio-cart-panel>header>div{display:flex;align-items:center}.akilio-cart-panel>header{justify-content:space-between;gap:10px}.akilio-cart-panel>header>div{gap:7px}.akilio-cart-panel-icon{display:grid;width:28px;height:28px;place-items:center;border-radius:9px;background:color-mix(in srgb,var(--akilio-primary) 12%,#fff);color:var(--akilio-primary)}.akilio-cart-panel-icon svg{width:16px;height:16px;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.8}.akilio-cart-panel header strong{color:#1e293b;font-size:12px}.akilio-cart-refresh,.akilio-cart-close{border:0;background:transparent;color:#64748b;cursor:pointer;font:inherit}.akilio-cart-refresh{padding:4px 6px;color:var(--akilio-primary);font-size:10px;font-weight:700}.akilio-cart-close{display:grid;width:25px;height:25px;place-items:center;border-radius:8px}.akilio-cart-close:hover{background:#e2e8f0}.akilio-cart-close svg{width:14px;height:14px}.akilio-cart-status{margin:2px 0;color:#64748b;font-size:11px}.akilio-cart-lines{display:grid;gap:8px;max-height:176px;margin:0;padding:0;overflow:auto;list-style:none}.akilio-cart-lines li{display:grid;grid-template-columns:36px minmax(0,1fr) auto;align-items:center;gap:10px;border-top:1px solid #e2e8f0;padding-top:8px}.akilio-cart-line-media{display:grid;width:36px;height:36px;place-items:center;overflow:hidden;border-radius:8px;background:#f1f5f9;color:var(--akilio-primary);font-size:12px;font-weight:800}.akilio-cart-line-media img{width:100%;height:100%;object-fit:cover}.akilio-cart-line-copy{display:grid;min-width:0;gap:2px}.akilio-cart-lines strong,.akilio-cart-lines small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.akilio-cart-lines strong{color:#334155;font-size:11px}.akilio-cart-lines small{color:#64748b;font-size:9px}.akilio-cart-lines li>span{flex:0 0 auto;color:#1e293b;font-size:11px;font-weight:750}.akilio-cart-checkout{display:flex;min-height:36px;align-items:center;justify-content:center;gap:7px;border-radius:10px;background:var(--akilio-primary);color:var(--akilio-primary-foreground, #fff);font-size:11px;font-weight:750;text-decoration:none}.akilio-cart-line-actions{display:flex;flex-wrap:wrap;align-items:center;gap:5px;margin-top:3px}.akilio-cart-quantity{display:inline-grid;grid-template-columns:22px minmax(20px,auto) 22px;min-height:22px;align-items:center;border:1px solid color-mix(in srgb,var(--akilio-primary) 27%,#cbd5e1);border-radius:7px;color:#334155;font-size:10px;font-weight:750;text-align:center}.akilio-cart-quantity button{width:22px;height:20px;border:0;background:transparent;color:var(--akilio-primary);cursor:pointer;font:inherit}.akilio-cart-quantity button:disabled{cursor:not-allowed;opacity:.42}.akilio-cart-line-action{display:inline-flex;min-height:22px;align-items:center;justify-content:center;border:1px solid color-mix(in srgb,var(--akilio-primary) 27%,#cbd5e1);border-radius:7px;background:transparent;color:var(--akilio-primary);padding:2px 6px;font-size:9px;font-weight:750;text-decoration:none;cursor:pointer}.akilio-cart-line-action:hover{background:color-mix(in srgb,var(--akilio-primary) 8%,transparent);color:var(--akilio-primary)}.akilio-cart-line-action--remove{box-sizing:border-box;height:22px;min-height:22px;border-color:#fecaca;color:#dc2626}.akilio-cart-line-action--remove:hover{border-color:#fca5a5;background:#fff1f2;color:#b91c1c}.akilio-cart-line-confirmation{display:grid;grid-column:1 / -1;gap:5px;border-radius:8px;background:color-mix(in srgb,var(--akilio-primary) 8%,#fff);padding:6px}.akilio-cart-line-confirmation>small{color:#334155;font-size:9px;font-weight:650}.akilio-cart-line-confirmation>div{display:flex;gap:5px}.akilio-cart-line-confirmation button{min-height:23px;border:0;border-radius:6px;background:var(--akilio-primary);color:var(--akilio-primary-foreground, #fff);padding:3px 7px;cursor:pointer;font:inherit;font-size:9px;font-weight:750}.akilio-cart-line-confirmation button+button{background:transparent;color:#475569}.akilio-cart-checkout:hover{background:var(--akilio-primary-hover);color:var(--akilio-primary-foreground, #fff)}.akilio-commerce-actions--embedded .akilio-commerce-action,.akilio-commerce-actions--embedded .akilio-commerce-confirmation,.akilio-commerce-actions--embedded .akilio-commerce-action-success{grid-column:1}.akilio-product-card--detail .akilio-commerce-actions--embedded{margin-top:12px}.akilio-commerce-action{position:relative;display:grid;width:100%;min-width:0;min-height:50px;grid-template-columns:30px minmax(0,1fr) 14px;align-items:center;gap:8px;overflow:hidden;border:1px solid color-mix(in srgb,var(--akilio-primary) 28%,#cbd5e1);border-radius:13px;background:linear-gradient(145deg,#fff,#f8fafc);color:var(--akilio-primary);padding:8px 9px;box-shadow:0 2px 7px #0f172a0a;cursor:pointer;font:inherit;text-align:left;transition:border-color .16s ease,box-shadow .16s ease,transform .16s ease}.akilio-commerce-action:hover:not(:disabled){border-color:color-mix(in srgb,var(--akilio-primary) 58%,#cbd5e1);box-shadow:0 7px 18px color-mix(in srgb,var(--akilio-primary) 13%,transparent);transform:translateY(-1px)}.akilio-commerce-action:focus-visible{outline:3px solid color-mix(in srgb,var(--akilio-primary) 24%,transparent);outline-offset:2px}.akilio-commerce-action-icon{display:grid;width:30px;height:30px;place-items:center;border-radius:10px;background:color-mix(in srgb,var(--akilio-primary) 11%,#fff);color:var(--akilio-primary)}.akilio-commerce-action-icon svg,.akilio-commerce-confirmation-icon svg{width:17px;height:17px;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.8}.akilio-commerce-action-copy{display:grid;min-width:0;gap:2px}.akilio-commerce-action-copy strong,.akilio-commerce-action-copy small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.akilio-commerce-action-copy strong{color:inherit;font-size:11px;font-weight:780}.akilio-commerce-action-copy small{color:#64748b;font-size:9px;font-weight:600}.akilio-commerce-action-arrow{color:#94a3b8;font-size:14px;transition:transform .16s ease}.akilio-commerce-action:hover .akilio-commerce-action-arrow{transform:translate(2px)}.akilio-commerce-action--add_to_cart{border-color:var(--akilio-primary);background:linear-gradient(135deg,var(--akilio-primary),var(--akilio-primary-hover));color:var(--akilio-primary-foreground, #fff);box-shadow:0 5px 14px color-mix(in srgb,var(--akilio-primary) 23%,transparent)}.akilio-commerce-action--add_to_cart .akilio-commerce-action-icon{background:#ffffff29;color:inherit}.akilio-commerce-action--add_to_cart .akilio-commerce-action-copy small,.akilio-commerce-action--add_to_cart .akilio-commerce-action-arrow{color:inherit;opacity:.76}.akilio-commerce-action:disabled{cursor:wait;opacity:.65}.akilio-commerce-confirmation{display:grid;grid-column:1 / -1;width:100%;gap:10px;border:1px solid color-mix(in srgb,var(--akilio-primary) 24%,#d4d4d8);border-radius:14px;background:color-mix(in srgb,var(--akilio-primary) 5%,#fff);padding:10px;color:#334155;font-size:11px}.akilio-commerce-confirmation-product{display:grid;grid-template-columns:38px minmax(0,1fr);align-items:center;gap:9px}.akilio-commerce-confirmation-product img,.akilio-commerce-confirmation-icon{width:38px;height:38px;border-radius:10px;object-fit:cover}.akilio-commerce-confirmation-icon{display:grid;place-items:center;background:color-mix(in srgb,var(--akilio-primary) 12%,#fff);color:var(--akilio-primary)}.akilio-commerce-confirmation-product>span{display:grid;min-width:0;gap:2px}.akilio-commerce-confirmation-product strong,.akilio-commerce-confirmation-product small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.akilio-commerce-confirmation-product strong{color:#1e293b;font-size:11px}.akilio-commerce-confirmation-product small{color:#64748b;font-size:9px}.akilio-commerce-confirmation-actions{display:flex;gap:6px}.akilio-commerce-confirmation button{border:0;border-radius:9px;min-height:31px;padding:6px 11px;cursor:pointer;font:inherit;font-size:10px;font-weight:750}.akilio-commerce-confirm{display:inline-flex;align-items:center;gap:6px;background:var(--akilio-primary);color:var(--akilio-primary-foreground, #fff)}.akilio-commerce-cancel{background:#e2e8f0;color:#334155}.akilio-commerce-confirmation small,.akilio-commerce-actions>small{width:100%;color:#b91c1c;font-size:10px}.akilio-commerce-action-success{display:grid;grid-column:1 / -1;grid-template-columns:28px minmax(0,1fr);align-items:center;gap:8px;border:1px solid #a7f3d0;border-radius:12px;background:#ecfdf5;color:#047857;padding:8px 10px;font-size:11px}.akilio-commerce-success-icon{display:grid;width:28px;height:28px;place-items:center;border-radius:50%;background:#d1fae5;font-weight:800}.akilio-commerce-action-success>span:last-child{display:grid;min-width:0;gap:1px}.akilio-commerce-action-success strong{font-weight:780}.akilio-commerce-action-success small{overflow:hidden;color:#059669;font-size:9px;text-overflow:ellipsis;white-space:nowrap}.akilio-commerce-spinner{width:13px;height:13px;border:2px solid currentColor;border-right-color:transparent;border-radius:50%;animation:akilio-spin .7s linear infinite}@keyframes akilio-spin{to{transform:rotate(360deg)}}@media(max-width:430px){.akilio-commerce-actions{grid-template-columns:1fr}.akilio-commerce-action,.akilio-commerce-confirmation,.akilio-commerce-action-success{grid-column:1}}@media(prefers-reduced-motion:reduce){.akilio-commerce-action,.akilio-commerce-action-arrow{transition:none}.akilio-commerce-action:hover:not(:disabled),.akilio-commerce-action:hover .akilio-commerce-action-arrow{transform:none}}@media(max-width:640px){.akilio-products-grid--vertical{grid-template-columns:1fr}}@media(max-width:390px){.akilio-products-grid--vertical{grid-template-columns:1fr}.akilio-products-grid--horizontal{gap:8px}}.akilio-product-card{min-width:0;overflow:hidden;border:1px solid color-mix(in srgb,var(--akilio-primary) 24%,#d4d4d8);border-radius:16px;background:linear-gradient(135deg,color-mix(in srgb,var(--akilio-primary) 10%,#fff),#fff 70%);box-shadow:0 3px 12px #0f172a0d}.akilio-product-media{position:relative;aspect-ratio:4 / 3;overflow:hidden;background:#f1f5f9}.akilio-product-media img{width:100%;height:100%;display:block;object-fit:cover;transition:transform .18s ease}.akilio-product-card:hover .akilio-product-media img{transform:scale(1.025)}.akilio-product-placeholder{width:100%;height:100%;display:grid;place-items:center;color:var(--akilio-primary);font-size:30px;font-weight:800;background:linear-gradient(145deg,#0891b21f,#2563eb14)}.akilio-stock{position:absolute;top:8px;right:8px;max-width:calc(100% - 16px);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:4px 7px;border-radius:999px;background:#7f1d1de6;color:#fff;font-size:9px;font-weight:700}.akilio-stock--available{background:#065f46e6}.akilio-product-body{padding:11px}.akilio-product-vendor,.akilio-product-variant{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#64748b;font-size:10px}.akilio-product-card h4{margin:4px 0 8px;min-height:34px;overflow:hidden;color:#0f172a;font-size:13px;line-height:1.3;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}.akilio-product-price{display:flex;flex-wrap:wrap;align-items:baseline;gap:5px}.akilio-product-price strong{color:#0f172a;font-size:14px}.akilio-product-price del{color:#94a3b8;font-size:10px}.akilio-product-action{width:100%;min-height:36px;display:inline-flex;align-items:center;justify-content:center;margin-top:10px;padding:8px 12px;border:0;border-radius:10px;background:var(--akilio-primary);color:var(--akilio-primary-foreground, #fff);font:inherit;font-size:11px;font-weight:700;text-decoration:none;cursor:pointer;transition:color .15s ease,background .15s ease}.akilio-product-action:hover{background:var(--akilio-primary-hover);color:var(--akilio-primary-foreground, #fff)}.akilio-product-action:focus-visible{outline:3px solid color-mix(in srgb,var(--akilio-primary) 28%,transparent);outline-offset:2px}.akilio-product-action:disabled{opacity:.55;cursor:not-allowed}.akilio-product-card--detail{display:flex;flex-direction:column}.akilio-product-card--detail .akilio-product-media{aspect-ratio:16 / 9}.akilio-product-card--detail .akilio-product-body{padding:14px}.akilio-product-card--detail h4{min-height:0;font-size:15px}.akilio-product-description{margin:4px 0 12px;color:#475569;font-size:12px;line-height:1.5;white-space:pre-wrap}.akilio-product-description>:first-child{margin-top:0}.akilio-product-description>:last-child{margin-bottom:0}.akilio-product-description p,.akilio-product-description ul,.akilio-product-description ol{margin:0 0 8px}.akilio-product-description ul,.akilio-product-description ol{padding-left:18px}.akilio-product-description a{color:var(--akilio-primary);font-weight:650}.akilio-product-variants{min-width:0;margin:0 0 12px;padding:0;border:0}.akilio-product-variants legend,.akilio-product-specifications h5{margin:0 0 6px;color:#475569;font-size:11px;font-weight:700}.akilio-product-variants>div{display:flex;flex-wrap:wrap;gap:6px}.akilio-product-variant-option{border:1px solid #cbd5e1;border-radius:999px;background:#fff;color:#334155;cursor:pointer;padding:4px 8px;font:inherit;font-size:11px}.akilio-product-variant-option--selected{border-color:var(--akilio-primary);background:color-mix(in srgb,var(--akilio-primary) 10%,#fff);color:var(--akilio-primary)}.akilio-product-variant-option:disabled{opacity:.45;cursor:not-allowed}.akilio-product-specifications{margin:0 0 12px}.akilio-product-specifications dl{display:grid;gap:4px;margin:0}.akilio-product-specifications dl div{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px;font-size:11px}.akilio-product-specifications dt{color:#64748b}.akilio-product-specifications dd{margin:0;color:#0f172a;text-align:right}.akilio-root[data-akilio-color-mode=dark] .akilio-products-heading{color:#94a3b8}.akilio-root[data-akilio-color-mode=dark] .akilio-commerce-result{border-color:color-mix(in srgb,var(--akilio-primary) 34%,#3f3f46);background:color-mix(in srgb,var(--akilio-primary) 6%,#18181b)}.akilio-root[data-akilio-color-mode=dark] .akilio-products-heading strong{color:#e4e4e7}.akilio-root[data-akilio-color-mode=dark] .akilio-commerce-icon{background:color-mix(in srgb,var(--akilio-primary) 20%,#27272a)}.akilio-root[data-akilio-color-mode=dark] .akilio-product-group+.akilio-product-group,.akilio-root[data-akilio-color-mode=dark] .akilio-commerce-actions{border-color:#3f3f46}.akilio-root[data-akilio-color-mode=dark] .akilio-product-group>small{color:#a1a1aa}.akilio-root[data-akilio-color-mode=dark] .akilio-commerce-action{border-color:#52525b;background:linear-gradient(145deg,#27272a,#202024);color:#e4e4e7}.akilio-root[data-akilio-color-mode=dark] .akilio-commerce-action--add_to_cart{border-color:var(--akilio-primary);background:var(--akilio-primary);color:var(--akilio-primary-foreground, #fff)}.akilio-root[data-akilio-color-mode=dark] .akilio-commerce-action-icon{background:color-mix(in srgb,var(--akilio-primary) 19%,#27272a)}.akilio-root[data-akilio-color-mode=dark] .akilio-commerce-action-copy small,.akilio-root[data-akilio-color-mode=dark] .akilio-commerce-action-arrow{color:#a1a1aa}.akilio-root[data-akilio-color-mode=dark] .akilio-commerce-confirmation{border-color:#52525b;background:#27272a;color:#e4e4e7}.akilio-root[data-akilio-color-mode=dark] .akilio-commerce-confirmation-product strong{color:#fafafa}.akilio-root[data-akilio-color-mode=dark] .akilio-commerce-confirmation-product small{color:#a1a1aa}.akilio-root[data-akilio-color-mode=dark] .akilio-commerce-confirmation-icon{background:color-mix(in srgb,var(--akilio-primary) 19%,#27272a)}.akilio-root[data-akilio-color-mode=dark] .akilio-commerce-cancel{background:#3f3f46;color:#e4e4e7}.akilio-root[data-akilio-color-mode=dark] .akilio-commerce-action-success{border-color:#065f46;background:#052e2b;color:#a7f3d0}.akilio-root[data-akilio-color-mode=dark] .akilio-header-cart span{border-color:#18181b}.akilio-root[data-akilio-color-mode=dark] .akilio-cart-panel{border-color:color-mix(in srgb,var(--akilio-primary) 34%,#3f3f46);background:color-mix(in srgb,var(--akilio-primary) 7%,#18181b);box-shadow:0 12px 24px #0000003d}.akilio-root[data-akilio-color-mode=dark] .akilio-cart-panel-icon{background:color-mix(in srgb,var(--akilio-primary) 20%,#27272a)}.akilio-root[data-akilio-color-mode=dark] .akilio-cart-panel header strong,.akilio-root[data-akilio-color-mode=dark] .akilio-cart-lines strong,.akilio-root[data-akilio-color-mode=dark] .akilio-cart-lines li>span{color:#f4f4f5}.akilio-root[data-akilio-color-mode=dark] .akilio-cart-status,.akilio-root[data-akilio-color-mode=dark] .akilio-cart-lines small{color:#a1a1aa}.akilio-root[data-akilio-color-mode=dark] .akilio-cart-lines li{border-color:#3f3f46}.akilio-root[data-akilio-color-mode=dark] .akilio-cart-line-media{background:#27272a}.akilio-root[data-akilio-color-mode=dark] .akilio-cart-line-action{border-color:color-mix(in srgb,var(--akilio-primary) 40%,#52525b)}.akilio-root[data-akilio-color-mode=dark] .akilio-cart-quantity{border-color:color-mix(in srgb,var(--akilio-primary) 40%,#52525b);color:#f4f4f5}.akilio-root[data-akilio-color-mode=dark] .akilio-cart-line-action--remove{border-color:#7f1d1d;color:#fca5a5}.akilio-root[data-akilio-color-mode=dark] .akilio-cart-line-action--remove:hover{border-color:#991b1b;background:#450a0a;color:#fecaca}.akilio-root[data-akilio-color-mode=dark] .akilio-cart-line-confirmation{background:color-mix(in srgb,var(--akilio-primary) 14%,#27272a)}.akilio-root[data-akilio-color-mode=dark] .akilio-cart-line-confirmation>small,.akilio-root[data-akilio-color-mode=dark] .akilio-cart-line-confirmation button+button{color:#e4e4e7}.akilio-root[data-akilio-color-mode=dark] .akilio-cart-close:hover{background:#3f3f46}.akilio-root[data-akilio-color-mode=dark] .akilio-commerce-success-icon{background:#064e3b}.akilio-root[data-akilio-color-mode=dark] .akilio-commerce-action-success small{color:#6ee7b7}.akilio-root[data-akilio-color-mode=dark] .akilio-products-heading span{background:#312e81;color:#e0e7ff}.akilio-root[data-akilio-color-mode=dark] .akilio-product-card{border-color:color-mix(in srgb,var(--akilio-primary) 35%,#3f3f46);background:linear-gradient(135deg,color-mix(in srgb,var(--akilio-primary) 18%,#18181b),#18181b 70%);box-shadow:none}.akilio-root[data-akilio-color-mode=dark] .akilio-product-media{background:#1e293b}.akilio-root[data-akilio-color-mode=dark] .akilio-product-card h4,.akilio-root[data-akilio-color-mode=dark] .akilio-product-price strong{color:#f8fafc}.akilio-root[data-akilio-color-mode=dark] .akilio-product-vendor,.akilio-root[data-akilio-color-mode=dark] .akilio-product-variant,.akilio-root[data-akilio-color-mode=dark] .akilio-product-description,.akilio-root[data-akilio-color-mode=dark] .akilio-product-variants legend,.akilio-root[data-akilio-color-mode=dark] .akilio-product-specifications h5,.akilio-root[data-akilio-color-mode=dark] .akilio-product-specifications dt{color:#94a3b8}.akilio-root[data-akilio-color-mode=dark] .akilio-product-specifications dd{color:#f8fafc}.akilio-root[data-akilio-color-mode=dark] .akilio-product-variant-option{border-color:#475569;background:#1e293b;color:#e2e8f0}.akilio-root[data-akilio-color-mode=dark] .akilio-product-variant-option--selected{border-color:var(--akilio-primary);background:color-mix(in srgb,var(--akilio-primary) 18%,#1e293b);color:#e0f2fe}@media(max-width:390px){.akilio-products-grid{grid-template-columns:1fr}.akilio-product-media{aspect-ratio:16 / 9}}.akilio-response-suggestions{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px}.akilio-response-suggestions button{appearance:none;border:1px solid color-mix(in srgb,var(--akilio-primary) 26%,#d4d4d8);border-radius:15px;background:color-mix(in srgb,var(--akilio-primary) 7%,#ffffff);color:color-mix(in srgb,var(--akilio-primary) 72%,#18181b);cursor:pointer;padding:8px 11px;text-align:left;font:inherit;font-size:12px;font-weight:700;line-height:1.35;transition:transform .15s ease,border-color .15s ease,background .15s ease}.akilio-response-suggestions button:hover{transform:translateY(-1px);border-color:color-mix(in srgb,var(--akilio-primary) 52%,#d4d4d8);background:color-mix(in srgb,var(--akilio-primary) 12%,#ffffff)}.akilio-response-suggestions button:focus-visible{outline:3px solid color-mix(in srgb,var(--akilio-primary) 24%,transparent);outline-offset:2px}.akilio-root[data-akilio-color-mode=dark] .akilio-response-suggestions button{border-color:color-mix(in srgb,var(--akilio-primary) 34%,#3f3f46);background:color-mix(in srgb,var(--akilio-primary) 14%,#18181b);color:#f4f4f5}.akilio-product-card--vertical{display:flex;flex-direction:column;min-width:0;overflow:hidden;border:1px solid color-mix(in srgb,var(--akilio-primary) 24%,#d4d4d8);border-radius:16px;background:linear-gradient(135deg,color-mix(in srgb,var(--akilio-primary) 10%,#fff),#fff 70%);box-shadow:0 3px 12px #0f172a0d}.akilio-product-card--vertical .akilio-product-media{position:relative;aspect-ratio:4 / 3;overflow:hidden;background:#f1f5f9}.akilio-product-card--vertical .akilio-product-body{padding:11px;display:flex;flex-direction:column}.akilio-product-card--horizontal{display:flex;flex-direction:row;gap:12px;min-width:0;overflow:hidden;border:1px solid color-mix(in srgb,var(--akilio-primary) 24%,#d4d4d8);border-radius:16px;background:linear-gradient(135deg,color-mix(in srgb,var(--akilio-primary) 10%,#fff),#fff 70%);box-shadow:0 3px 12px #0f172a0d;align-items:stretch}.akilio-product-card--horizontal .akilio-product-media{flex:0 0 25%;min-width:80px;position:relative;aspect-ratio:1 / 1;overflow:hidden;background:#f1f5f9}.akilio-product-card--horizontal .akilio-product-body{flex:1;padding:11px;display:flex;flex-direction:column;justify-content:space-between;min-width:0}.akilio-product-card--horizontal .akilio-product-action{width:100%}.akilio-root[data-akilio-color-mode=dark] .akilio-product-card--vertical,.akilio-root[data-akilio-color-mode=dark] .akilio-product-card--horizontal{border-color:color-mix(in srgb,var(--akilio-primary) 35%,#3f3f46);background:linear-gradient(135deg,color-mix(in srgb,var(--akilio-primary) 18%,#18181b),#18181b 70%);box-shadow:none}.akilio-root[data-akilio-color-mode=dark] .akilio-product-card--vertical .akilio-product-media,.akilio-root[data-akilio-color-mode=dark] .akilio-product-card--horizontal .akilio-product-media{background:#1e293b}@media(prefers-color-scheme:dark){.akilio-root[data-akilio-color-mode=system] .akilio-product-card h4,.akilio-root[data-akilio-color-mode=system] .akilio-product-price strong,.akilio-root[data-akilio-color-mode=system] .akilio-product-specifications dd{color:#f8fafc}.akilio-root[data-akilio-color-mode=system] .akilio-product-vendor,.akilio-root[data-akilio-color-mode=system] .akilio-product-variant,.akilio-root[data-akilio-color-mode=system] .akilio-product-price del,.akilio-root[data-akilio-color-mode=system] .akilio-product-description,.akilio-root[data-akilio-color-mode=system] .akilio-product-variants legend,.akilio-root[data-akilio-color-mode=system] .akilio-product-specifications h5,.akilio-root[data-akilio-color-mode=system] .akilio-product-specifications dt{color:#94a3b8}.akilio-root[data-akilio-color-mode=system] .akilio-product-variant-option{border-color:#475569;background:#1e293b;color:#e2e8f0}.akilio-root[data-akilio-color-mode=system] .akilio-product-variant-option--selected{border-color:var(--akilio-primary);background:color-mix(in srgb,var(--akilio-primary) 18%,#1e293b);color:#e0f2fe}.akilio-root[data-akilio-color-mode=system] .akilio-product-card--vertical,.akilio-root[data-akilio-color-mode=system] .akilio-product-card--horizontal,.akilio-root[data-akilio-color-mode=system] .akilio-product-card--detail{border-color:color-mix(in srgb,var(--akilio-primary) 35%,#3f3f46);background:linear-gradient(135deg,color-mix(in srgb,var(--akilio-primary) 18%,#18181b),#18181b 70%);box-shadow:none}.akilio-root[data-akilio-color-mode=system] .akilio-product-card--vertical .akilio-product-media,.akilio-root[data-akilio-color-mode=system] .akilio-product-card--horizontal .akilio-product-media{background:#1e293b}}@media(max-width:480px){.akilio-product-card--horizontal{flex-direction:column;gap:0}.akilio-product-card--horizontal .akilio-product-media{flex:1;min-width:unset;aspect-ratio:4 / 3}}@media(max-width:390px){.akilio-product-card--vertical .akilio-product-media{aspect-ratio:16 / 9}.akilio-product-card--horizontal{flex-direction:column}.akilio-product-card--horizontal .akilio-product-media{aspect-ratio:16 / 9}}.source-ref{display:inline-flex;align-items:center;justify-content:center;margin-left:.3rem;padding:.1rem .45rem;border-radius:999px;font-size:.68rem;font-weight:600;letter-spacing:.01em;line-height:1.2;vertical-align:super;color:#334155;background:linear-gradient(180deg,#f8fafc,#eef2ff);border:1px solid #dbeafe;box-shadow:0 1px 2px #0f172a14;-webkit-user-select:none;user-select:none;white-space:nowrap}.akilio-composer textarea{text-align:start}@media(max-width:640px){.akilio-root input,.akilio-root textarea,.akilio-root select{font-size:16px}.akilio-header-actions button,.akilio-composer-submit{min-width:44px;min-height:44px}}.akilio-business-logo{display:block;object-fit:contain;flex-shrink:0;max-width:100%}.akilio-launcher .akilio-business-logo{width:30px!important;height:30px!important}`;class as extends Error{code;constructor(i,r){super(r),this.name="AkilioPublicApiError",this.code=i}}function mi(t,i){typeof window>"u"||window.dispatchEvent(new CustomEvent(`akilio:${t}`,{detail:i||{}}))}function gn(t,i){return new as(t,i)}function hi(){return typeof crypto<"u"&&crypto.randomUUID?crypto.randomUUID():`${Date.now()}-${Math.random().toString(16).slice(2)}`}function Yr(){return new Date().toISOString()}function Yo(t){const i=typeof t=="function"?t():t||{};return typeof window>"u"?i:{url:i.url||window.location.href,title:i.title||document.title,...i}}function xu(t,i){const r=t||{origin:{surface:"widget_launcher",trigger:"manual_open"}},l=(p,h)=>p?.trim().slice(0,h)||void 0,s=r.page?.url||i.url,d=s?{url:s,title:l(r.page?.title||i.title,500),section:r.page?.section?{id:l(r.page.section.id,255),title:l(r.page.section.title,500),anchor:l(r.page.section.anchor,255)}:void 0}:void 0,c=l(r.selection?.text,5e3)?{text:l(r.selection?.text,5e3),start_offset:Number.isInteger(r.selection?.start_offset)&&r.selection.start_offset>=0?r.selection.start_offset:void 0,end_offset:Number.isInteger(r.selection?.end_offset)&&r.selection.end_offset>=0?r.selection.end_offset:void 0,selector:l(r.selection?.selector,1e3)}:void 0;return{schema_version:"1.0",origin:r.origin,page:d,subject:r.subject,selection:c,state:r.state,metadata:r.metadata}}function rs(t){if(t)return{schema_version:t.schema_version,origin:t.origin,page:t.page?{url:t.page.url,section:t.page.section?.id?{id:t.page.section.id}:void 0}:void 0,subject:t.subject?{type:t.subject.type,id:t.subject.id}:void 0}}function ST(t,i){const r={...t?.theme_config||{},...i||{}};return{"--akilio-primary":String(r.primary_color||"#0F766E"),"--akilio-primary-hover":String(r.primary_dark_color||"#115E59"),"--akilio-primary-foreground":String(r.primary_foreground_color||"#ffffff"),"--akilio-accent":String(r.accent_color||"#2563eb"),"--akilio-radius":String(r.radius||"22px"),"--akilio-panel-width":`${Number(r.panel_width||440)}px`,"--akilio-z-index":String(Number(r.z_index||2147483647)),"--akilio-surface":String(r.surface_color||""),"--akilio-text":String(r.text_color||""),"--akilio-muted":String(r.muted_color||"")}}function TT(t,i){G.useEffect(()=>{if(typeof document>"u")return;const r=document.documentElement;return r.classList.toggle("akilio-panel-open",t&&i),()=>r.classList.remove("akilio-panel-open")},[t,i])}function Rh(t){return Array.isArray(t)?t.filter(i=>typeof i=="string").map(i=>i.trim()).filter(Boolean).slice(0,6):[]}function AT(t){const i=t.content;return i.markdown?.trim()?i.markdown:i.plain_text?.trim()?i.plain_text:t.answer?.trim()?t.answer:""}function vu(t){if(!t)return null;try{const i=JSON.parse(t);return i&&typeof i=="object"?i:null}catch{return null}}function NT(t,i=!0){const r=t.intent_decision?.clarification||null;return{id:hi(),role:"assistant",content:AT(t),backendMessageId:t.message_id,conversationId:t.conversation_id,confidence:t.confidence,sources:t.sources||[],commerce:i?Dh(t.commerce):null,agentTool:r?null:zh(t.agent_tool),clarification:r,suggestions:Rh(t.suggestions),intentDecision:t.intent_decision,proactiveActions:Array.isArray(t.proactive_actions)?t.proactive_actions:[],actions:Array.isArray(t.actions)?t.actions.map((l,s)=>({...l,quickActions:Array.isArray(l.quick_actions)?l.quick_actions:[]})):[],createdAt:Yr()}}function Dh(t){if(!t||typeof t.capability!="string")return null;const i=t.capability.trim();if(!i)return null;const r=p=>(Array.isArray(p)?p:[]).filter(h=>!!(h&&typeof h=="object"&&typeof h.id=="string"&&typeof h.title=="string"&&Array.isArray(h.variants))),l=r(t.products),s=r(t.suggested_products),d=new Set([...l,...s].map(p=>p.id)),c=(Array.isArray(t.actions)?t.actions:[]).filter(p=>p&&(p.type==="view_product"||p.type==="compare"||p.type==="add_to_cart")&&typeof p.product_id=="string"&&d.has(p.product_id)&&(p.type!=="add_to_cart"||typeof p.variant_id=="string"&&p.requires_confirmation===!0&&!!p.confirmation?.capability_id&&!!p.confirmation?.payload));return!l.length&&!s.length&&!c.length?null:{capability:i,products:l,suggestedProducts:s,actions:c}}function zh(t){return t&&typeof t.tool_id=="string"?t:null}function CT(t){const i=t&&typeof t=="object"?t:null,r=i?.product&&typeof i.product=="object"?i.product:i;return!r||typeof r.id!="string"||typeof r.title!="string"||!Array.isArray(r.variants)?null:r}function MT(t,i){return i.includes(t.code||t.id)}function OT(t,i){if(!t)return!0;if((Array.isArray(t.required)?t.required.filter(s=>typeof s=="string"):[]).some(s=>i[s]===void 0||i[s]===""))return!1;const l=t.properties;return!l||typeof l!="object"?!0:Object.entries(l).every(([s,d])=>{if(i[s]===void 0)return!0;const c=d&&typeof d=="object"?d.type:void 0;return!c||c==="string"&&typeof i[s]=="string"||c==="number"&&typeof i[s]=="number"||c==="integer"&&Number.isInteger(i[s])||c==="boolean"&&typeof i[s]=="boolean"||c==="object"&&typeof i[s]=="object"||c==="array"&&Array.isArray(i[s])})}function Lh({apiBaseUrl:t="https://api.akilio-ai.com/v1",projectKey:i,locale:r="en",mode:l="floating",colorMode:s,allowColorModeToggle:d=!0,showAkilioBranding:c=!0,streaming:p=!0,enableResponseSound:h=!1,responseSoundVolume:m=.22,defaultOpen:g=!1,open:b,launcher:k="default",launcherPosition:x,launcherExperience:w="adaptive",contextualPrompt:T=!1,proactiveSummary:A=!1,persistOpenState:S=!0,enableTour:L=!0,tourDelayMs:I=3e3,tourVersion:F="v1",enableLocalHistory:Y=!0,enableServerHistorySync:R=!0,anonymousId:le,externalUserId:ae,channel:he,productArea:B,assistantMode:ue,pageContext:re,entryContext:Ae,auth:de,accessToken:ne,privacyNotice:Z,privacyNoticeUrl:$,requireConsent:Q,consentNoticeVersion:ye="v1",initialConsent:N=!1,onConsentChange:ze,agentName:C,welcomeMessage:E,starterPrompts:ie,copy:ge,translations:ve,theme:W,className:be,onOpenChange:qe,onMessage:Fe,onProductClick:nn,onError:At,integration:An}){const qt=G.useRef(null),an=`akilio-chat-panel-${G.useId().replace(/:/g,"")}`,{prepare:Ve,play:Qt}=sT(h,m),Et=G.useRef(null),Ln=G.useRef(0),Fn=G.useRef(new Set),Ft=G.useRef({open:!1,busy:!1,conversationId:null}),Fi=`akilio:${i}:config`,[ur,ei]=G.useState(null),Yt=G.useMemo(()=>({...de||{},accessToken:de?.accessToken||ne}),[ne,de]),U=G.useMemo(()=>new _T({apiBaseUrl:t,auth:Yt,mode:l,locale:r,integration:An}),[t,Yt,An,l,r]),ce=uT(),[xe,Pe]=G.useState(ts(Go(Fi),null)),[ot,rn]=G.useState(null),[dn,Nn]=G.useState(!1),[Cn,jt]=G.useState(null),[Tt,Nt]=G.useState(!1),[on,Vr]=G.useState(0),[dr,Pi]=G.useState({stage:"",message:""}),[ia,bn]=G.useState(null),[O,J]=G.useState({}),[fe,Me]=mT({enabled:Y,projectKey:i,locale:r}),[Ze,lt]=na({enabled:Y,key:`akilio:${i}:${r}:conversation-id:v2`}),[_e,ke]=na({enabled:Y,key:`akilio:${i}:${r}:context-id:v1`}),[Le,Ct]=na({enabled:Y,key:`akilio:${i}:${r}:entry-context:v1`}),Je=ts(Le,null),[Pn,Gi]=G.useState([]),[Ma,fr]=na({enabled:S,key:`akilio:${i}:panel-open:v2`,initialValue:g?"true":""}),[In,zt]=na({enabled:!0,key:`akilio:${i}:coachmark:${F||"v1"}`}),[ln,bi]=na({enabled:!0,key:`akilio:${i}:launcher-discovery:v1`}),[Yi,Vi]=G.useState(!1),[$i,aa]=G.useState(!1),[Bn,Mn]=G.useState(!1),[Ni,Gn]=G.useState(""),[ra,ti]=G.useState(!1),[Lt,Ki]=na({enabled:!0,key:`akilio:${i}:consent:${ye}`,initialValue:N?"true":""}),[pr,oe]=G.useState(g),[Se,Ke]=na({enabled:!0,key:`akilio:${i}:color-mode:v1`}),[ut,It]=G.useState("light"),pt=l==="inline",fn=typeof T=="boolean"?{enabled:T}:T,yi=fn?.enabled===!0,Mt=Math.min(2e3,Math.max(0,Number(fn?.threshold??320)||0)),Ot=rT(yi&&!pt,Mt),[mr,hr]=G.useState(!1),Zi=typeof A=="boolean"?{enabled:A}:A,$r=!!xe?.capabilities?.chat?.intents.some(V=>V.code==="summarize_page"&&V.enabled&&V.surfaces.includes("widget")),Oa=oT(!!(Zi?.enabled&&$r&&!pt)),Vo=Math.max(1,Number(Zi?.threshold??4)||4),On=Zi?.version||"v1",[Qi,oa]=na({enabled:!0,key:`akilio:${i}:proactive-summary:${encodeURIComponent(typeof window>"u"?"":window.location.pathname)}:${On}`}),pn=x??W?.launcher_position??xe?.theme_config?.launcher_position??"bottom-right",Ci=!pt&&pn==="right-middle"&&ce,ni=pn==="right-middle"?"static":w,Ue=l==="floating"&&!Ci,Mi=l==="hybrid"||l==="side-panel",Ht=!pt&&(l==="side-panel"||l==="hybrid"&&ce),dt=!pt&&!Ue&&(Ci||l==="drawer"||l==="hybrid"&&!ce),mt=pt||(b??(S&&Ma==="true"||pr)),gr=s??W?.color_mode??xe?.theme_config?.color_mode??"system",Da=Se==="light"||Se==="dark"||Se==="system"?Se:gr,pe=Da==="system"?ut:Da,K=G.useMemo(()=>wT({locale:r,translations:ve,agentName:C,welcomeMessage:E,starterPrompts:ie,brandName:W?.brand_name,projectConfig:xe,overrides:ge,hideBranding:xe?.widget_policy?.branding==="white_label"||xe?.widget_policy?.branding!=="akilio_required"&&!c}),[ge,r,ve,xe,c,C,E,ie,W?.brand_name]),Be=xe?.widget_policy,Ge=Be?.available!==!1,Xe=Be?.commerce_enabled!==!1,sn=Be?.assistant_mode||ue,Oi=Be?.branding==="akilio_required"||Be?.branding!=="white_label"&&c,br=Be?.branding==="akilio_required",ss=G.useMemo(()=>Xe?fe:fe.map(V=>V.commerce?{...V,commerce:null}:V),[Xe,fe]),Ri=G.useMemo(()=>ST(xe,W),[xe,W]),Un=Q??xe?.require_consent??!1,$o=Z??xe?.privacy_notice??"",yr=$??xe?.privacy_notice_url,Di=Lt==="true"||Lt==="accepted"?"accepted":Lt==="rejected"?"rejected":"pending",zi=Di==="accepted",Qe=void 0,cn=G.useCallback(V=>{if(pt)return;const me=Ft.current.open!==V;if(Ft.current.open=V,b===void 0&&(oe(V),S&&fr(V?"true":"")),qe?.(V),me){mi(V?"open":"close");const Ee=Yo(re);U.sendWidgetEvent(i,Qe,{event_id:hi(),event_type:V?"widget_opened":"widget_closed",entry_context:rs(Je||xu(void 0,Ee)),metadata:{}}).catch(()=>{})}},[Je?.origin.surface,Je?.origin.trigger,U,b,pt,qe,re,S,i,fr,Qe]),Yn=G.useCallback(async()=>{if(Xe){Nt(!0);try{const V=await U.getCurrentCart(i,Qe);jt(V.cart||null);try{const me=`akilio:${i}:provider-cart:v1`;V.cart?.provider_cart_id?window.sessionStorage.setItem(me,V.cart.provider_cart_id):window.sessionStorage.removeItem(me)}catch{}}catch{}finally{Nt(!1)}}},[U,Xe,i,Qe]);G.useEffect(()=>{!mt||!Xe||Yn()},[Xe,mt,Yn]);const kr=G.useMemo(()=>({open:mt,openChat:()=>cn(!0),closeChat:()=>cn(!1),toggleChat:()=>cn(!mt)}),[mt,cn]),ii=G.useCallback(()=>{Vi(!1),zt("seen")},[zt]),Rn=G.useCallback(()=>{ii(),cn(!0)},[ii,cn]),la=G.useCallback(V=>{Ki(V==="pending"?"":V),V!=="pending"&&ze?.(V==="accepted")},[ze,Ki]);G.useEffect(()=>{if(typeof window>"u"||!window.matchMedia)return;const V=window.matchMedia("(prefers-color-scheme: dark)"),me=()=>It(V.matches?"dark":"light");return me(),V.addEventListener?.("change",me),()=>V.removeEventListener?.("change",me)},[]);const Kr=G.useCallback(()=>{Ke(pe==="dark"?"light":"dark")},[pe,Ke]);TT(mt,Ht&&Mi),G.useEffect(()=>{if(!(L&&ni==="static"&&!pt&&k==="default"&&Ge&&!mt)){Vi(!1),mt&&L&&zt("seen");return}const me=(De=!1)=>{(De||In!=="seen")&&Vi(!0)},Ee=window.setTimeout(()=>me(!1),Math.min(6e4,Math.max(0,Number(I)||0))),we=()=>me(!0);return window.addEventListener("akilio:start-tour",we),()=>{window.clearTimeout(Ee),window.removeEventListener("akilio:start-tour",we)}},[L,pt,k,ni,mt,zt,I,In,Ge]),G.useEffect(()=>{if(!(ni==="adaptive"&&!pt&&k==="default"&&Ge&&!mt&&!Bn)){aa(!1);return}if(ln)return;const me=window.setTimeout(()=>{aa(!0),bi("seen")},1800);return()=>window.clearTimeout(me)},[Bn,pt,k,ln,ni,mt,bi,Ge]),G.useEffect(()=>{if(!$i)return;const V=window.setTimeout(()=>aa(!1),1e4);return()=>window.clearTimeout(V)},[$i]),G.useEffect(()=>{if(!Bn)return;const V=window.setTimeout(()=>Mn(!1),8e3);return()=>window.clearTimeout(V)},[Bn]),G.useEffect(()=>{if(!Yi)return;const V=me=>{me.key==="Escape"&&ii()};return window.addEventListener("keydown",V),()=>window.removeEventListener("keydown",V)},[Yi,ii]),G.useEffect(()=>{let V=!1;return U.getProjectConfig(i).then(me=>{V||(Ca(Fi,JSON.stringify(me)),Pe(me),rn(null))}).catch(me=>{V||(rn(me.message),At?.(me))}),()=>{V=!0}},[U,At,i]),G.useEffect(()=>{U.prepareWidgetToken(i).catch(V=>At?.(V))},[U,At,i]),G.useEffect(()=>{const V=me=>{const Ee=me.detail;Ee&&U.sendWidgetEvent(i,Qe,{event_id:hi(),event_type:Ee.eventType,entry_context:rs(Ee.entryContext),metadata:{}}).catch(()=>{})};return window.addEventListener("akilio:contextual-entry",V),()=>window.removeEventListener("akilio:contextual-entry",V)},[U,i,Qe]),G.useEffect(()=>{let V=!1;return U.getCapabilities(i,Qe).then(me=>{V||Gi(me)}).catch(()=>{V||Gi([])}),()=>{V=!0}},[U,At,i,Qe]),G.useEffect(()=>{if(!R||!Ze||fe.length>0)return;let V=!1;return U.getConversation(i,Qe,Ze).then(me=>{V||Me(me.messages.map(Ee=>({id:Ee.id,backendMessageId:Ee.role==="assistant"?Ee.id:void 0,conversationId:me.id,role:Ee.role,content:Ee.content,sources:Ee.sources||[],confidence:Ee.confidence,commerce:(()=>{const we=Ee.metadata&&typeof Ee.metadata=="object"?Ee.metadata:null,De=vu(Ee.structured_content);if(!Xe)return null;const Ne=we?.commerce||De?.commerce;if(!Ne)return null;const wt=Dh({...Ne,suggested_products:Ne.suggested_products||Ne.suggestedProducts});return wt?{...wt,display:Ne.display}:null})(),suggestions:(()=>{const we=Ee.metadata&&typeof Ee.metadata=="object"?Ee.metadata:null,De=vu(Ee.structured_content);return Rh(we?.suggestions||De?.suggestions)})(),actions:(()=>{const we=Ee.metadata,De=vu(Ee.structured_content),Ne=we?.actions||De?.actions;return Array.isArray(Ne)?Ne:[]})(),createdAt:Ee.created_at})).slice(-Na))}).catch(()=>lt("")),()=>{V=!0}},[U,Xe,Ze,R,fe.length,i,lt,Me,Qe]);const sa=G.useCallback(()=>{Me([]),lt(""),ke(""),Ct(""),Fn.current.clear(),J({})},[ke,lt,Me]),Vn=G.useCallback(async(V,me,Ee,we=!1,De,Ne)=>{if(!V)throw gn("INVALID_QUESTION","Question is empty");if(!Ge)throw gn("INVALID_QUESTION","This widget is not currently available");if(dn)throw gn("BUSY","An answer is already in progress");if(Date.now()<on)throw gn("BUSY",K.rateLimited.replace("{seconds}",String(Math.max(1,Math.ceil((on-Date.now())/1e3)))));if(Un&&!zi)throw gn("INVALID_QUESTION","Privacy consent is required");Ve();const wt=Yo(re),yn=xu(Ne||Je||Ae,wt);Ne&&yn&&Ct(JSON.stringify(yn)),Ne&&yn&&U.sendWidgetEvent(i,Qe,{event_id:hi(),event_type:"contextual_entry_question_submitted",entry_context:rs(yn),metadata:{}}).catch(()=>{});const mn={id:hi(),role:"user",content:V,createdAt:Yr(),conversationId:Ze||void 0};we||(Me(Vt=>[...Vt,mn].slice(-Na)),Fe?.(mn),mi("question",{question:V})),Nn(!0),Ft.current.busy=!0,mi("answer-start",{question:V}),Pi({stage:"",message:""}),bn(null);const kn=hi();try{const Vt={project_key:i,conversation_id:Ze||void 0,context_id:_e||void 0,capability_confirmation_id:Ee,clarification_response:De,message:V,intent:me,locale:r,channel:he||wt.channel||"docs",product_area:B||wt.productArea,assistant_mode:sn||void 0,page:{...wt.metadata||{},url:wt.url,title:wt.title},entry_context:yn,anonymous_id:le||void 0,external_user_id:ae||void 0,consent:{granted:zi,granted_at:zi?Yr():void 0,notice_version:ye}};let Xt="";const Bt=p?await U.sendMessageStream(i,Qe,Vt,{onStatus:(ri,us)=>{const ds=us.message||us.label;Pi({stage:ri,message:typeof ds=="string"?ds:""})},onConversation:ri=>{Ft.current.conversationId=ri,lt(ri)},onDelta:ri=>{Xt+=ri,mi("answer-delta",{delta:ri}),bn({id:kn,role:"assistant",content:Xt,conversationId:Ze||void 0,createdAt:Yr(),streaming:!0})}}):await U.sendMessage(i,Qe,Vt);if(Ft.current.conversationId=Bt.conversation_id,lt(Bt.conversation_id),ke(Bt.context_id||""),Bt.cart_state&&Yn(),Ee&&!zh(Bt.agent_tool)?.result?.escalation_id)throw new Error("The human-help request was not completed");const za={...NT(Bt,Xe),id:Xt?kn:hi(),streaming:!1};return bn(null),Me(ri=>[...ri,za].slice(-Na)),Fe?.(za),mi("answer-complete",{response:Bt}),Qt(),Ft.current.open||Mn(!0),Bt}catch(Vt){const Xt=Vt instanceof ns&&Vt.status===429?Math.max(1,Vt.retryAfterSeconds||1):null;Xt&&Vr(Date.now()+Xt*1e3);const Bt=Vt instanceof Error?Vt:new Error(K.requestFailed),za={id:hi(),role:"assistant",content:Xt?K.rateLimited.replace("{seconds}",String(Xt)):Bt.message||K.requestFailed,createdAt:Yr(),error:!0};throw bn(null),Me(ri=>[...ri,za].slice(-Na)),At?.(Bt),mi("error",{code:Vt instanceof as?Vt.code:"STREAM_FAILED",message:Bt.message||K.requestFailed}),Bt}finally{Nn(!1),Ft.current.busy=!1,Pi({stage:"",message:""})}},[le,he,U,Xe,zi,ye,Ze,_e,K.requestFailed,K.rateLimited,Un,sn,Ae,Je,ae,Ct,dn,r,At,Fe,re,on,Qt,Ve,B,i,Yn,lt,ke,Me,p,Qe,Ge]),ai=G.useCallback(()=>{const V=Et.current;V&&(Et.current=null,V.timer&&window.clearTimeout(V.timer),V.reject(gn("TYPING_CANCELLED","Draft typing was cancelled")),mi("typing-cancel",{draft:qt.current?.getDraft()||""}))},[]),Ko=G.useCallback((V,me)=>{me&&Et.current&&ai(),mi("draft-change",{draft:V})},[ai]);Ft.current={open:mt,busy:dn,conversationId:Ze||null},G.useEffect(()=>{if(typeof window>"u"||window.AkilioWidget)return;const V=()=>{if(!qt.current)throw gn("NOT_READY","The widget is not ready");return qt.current},me=async(we,De={})=>{if(ai(),typeof we!="string")throw gn("INVALID_QUESTION","Draft must be a string");V().setDraft(we,{focus:De.focus,clearExisting:De.clearExisting??!0}),await new Promise(Ne=>window.setTimeout(Ne,0))},Ee=Object.freeze({open:async()=>{cn(!0),await new Promise(we=>window.setTimeout(we,0))},close:async()=>{cn(!1),await new Promise(we=>window.setTimeout(we,0))},setDraft:me,typeDraft:async(we,De={})=>{if(ai(),typeof we!="string"||!we.length)throw gn("INVALID_QUESTION","Question must not be empty");const Ne=V(),wt=De.clearExisting===!1?Ne.getDraft():"",yn=Math.max(0,Number(De.interval??35)),mn=++Ln.current;return mi("typing-start",{textLength:we.length}),new Promise(async(kn,Vt)=>{Et.current={id:mn,reject:Vt};try{for(let Xt=1;Xt<=we.length;Xt+=1){if(await new Promise(Bt=>{const za=window.setTimeout(Bt,yn);Et.current?.id===mn&&(Et.current.timer=za)}),Et.current?.id!==mn)return;Ne.setDraft(`${wt}${we.slice(0,Xt)}`,{clearExisting:!0,focus:De.focus&&Xt===1})}if(Et.current?.id!==mn)return;Et.current=null,mi("typing-complete",{draft:Ne.getDraft()}),kn()}catch(Xt){Et.current=null,Vt(Xt)}})},clearDraft:async()=>{ai(),V().clearDraft()},cancelTyping:ai,submit:async()=>{if(Ft.current.busy)throw gn("BUSY","An answer is already in progress");const we=V();if(!we.getDraft().trim())throw gn("EMPTY_DRAFT","The draft is empty");try{return await we.submitDraft()}catch(Ne){throw Ne instanceof as?Ne:Ne instanceof Error&&Ne.message==="BUSY"?gn("BUSY","An answer is already in progress"):Ne instanceof Error&&Ne.message==="EMPTY_DRAFT"?gn("EMPTY_DRAFT","The draft is empty"):Ne instanceof Error&&Ne.message==="INVALID_QUESTION"?gn("INVALID_QUESTION","The question is invalid"):gn("STREAM_FAILED",Ne instanceof Error?Ne.message:"Streaming failed")}},ask:async(we,De)=>(await me(we,De),Ee.submit()),startConversation:async(we,De)=>(cn(!0),Vn(we,void 0,void 0,!1,void 0,De)),reset:async()=>{try{if(ai(),Ft.current.busy)throw gn("BUSY","An answer is already in progress");sa(),U.forgetAnonymousIdentity(i),Ft.current.conversationId=null,V().clearDraft(),bn(null),mi("reset")}catch(we){throw we instanceof as?we:gn("RESET_FAILED","The conversation could not be reset")}},getState:()=>({ready:!!qt.current,open:Ft.current.open,busy:Ft.current.busy,typing:!!Et.current,draft:qt.current?.getDraft()||"",conversationId:Ft.current.conversationId})});return window.AkilioWidget=Ee,mi("ready"),()=>{ai(),window.AkilioWidget===Ee&&delete window.AkilioWidget}},[ai,sa,U,i,cn]);const ca=G.useCallback(async(V,me,Ee)=>{if(!Xe)return Promise.resolve();nn?.(me,Ee);const we=[...V.commerce?.products||[],...V.commerce?.suggestedProducts||[]].filter(Ne=>Ne.id===me.id),De=Pn.find(Ne=>MT(Ne,["get_product"])&&Ne.executable!==!1&&Ne.requires_confirmation!==!0);if(U.sendCommerceEvent(i,Qe,{event_type:V.commerce?.capability==="product_search"?"search":"recommendation",product_id:me.id,variant_id:Ee?.id||null,conversation_id:V.conversationId||Ze||null,external_user_id:ae||"",value:Ee?.price||null,currency:Ee?.currency||"",metadata:{}}).catch(Ne=>At?.(Ne)),V.backendMessageId&&we.length===1&&De&&OT(De.input_schema,{product_id:me.id}))try{const Ne=await U.executeCustomerServiceTool(i,Qe,De.code||De.id,{product_id:me.id}),wt=CT(Ne.result);if(wt){const yn={id:hi(),role:"assistant",content:"",conversationId:V.conversationId||Ze||void 0,createdAt:Yr(),commerce:{capability:V.commerce?.capability||"product_search",products:[wt],display:"detail"}};Me(mn=>[...mn,yn].slice(-Na));return}}catch(Ne){At?.(Ne instanceof Error?Ne:new Error(K.requestFailed))}me.url&&window.location.assign(me.url)},[U,Xe,Ze,ae,Pn,At,nn,i,Me,K.requestFailed,Qe]),Zr=G.useCallback(async(V,me)=>{const we=[...V.commerce?.products||[],...V.commerce?.suggestedProducts||[]].find(Bt=>Bt.id===me.product_id);if(!we)throw new Error(K.commerceActionFailed);const De=we.variants.find(Bt=>Bt.id===me.variant_id);if(me.type==="view_product"){await ca(V,we,De);return}if(me.type==="compare"){await Vn(`${K.compareProduct}: ${we.title}`);return}const Ne=me.confirmation;if(me.type!=="add_to_cart"||!De||!Ne?.capability_id||!Ne.payload)throw new Error(K.commerceActionFailed);const wt=JSON.parse(JSON.stringify(Ne.payload));Ne.idempotency_key_required&&(wt.idempotency_key=`widget-cart-${hi()}`);const yn=`akilio:${i}:provider-cart:v1`;let mn=Ne.capability_id;try{const Bt=window.sessionStorage.getItem(yn);Bt&&(mn="commerce.add_to_cart",wt.cart_id=Bt)}catch{}const kn=await U.createCapabilityConfirmation(i,Qe,mn,wt,Je);await U.confirmCapability(i,Qe,kn.id);const Vt=await U.executeCustomerServiceTool(i,Qe,mn,wt,{confirmationId:kn.id,entryContext:Je}),Xt=Vt.result&&typeof Vt.result=="object"?Vt.result:null;if(typeof Xt?.provider_cart_id=="string")try{window.sessionStorage.setItem(yn,Xt.provider_cart_id)}catch{}U.sendCommerceEvent(i,Qe,{event_type:"add_to_cart",product_id:we.id,variant_id:De.id,conversation_id:V.conversationId||Ze||null,external_user_id:ae||"",value:De.price||null,currency:De.currency||""}).catch(()=>{}),await Yn()},[Je,U,Ze,K.commerceActionFailed,K.compareProduct,ae,ca,i,Yn,Vn,Qe]),cs=G.useCallback(async(V,me,Ee)=>{const we=me.confirmation;if(!we?.capability_id||!we.payload)throw new Error(K.commerceActionFailed);const De=JSON.parse(JSON.stringify(we.payload));if(me.type==="update_quantity"){if(typeof Ee!="number"||!Number.isInteger(Ee)||Ee<1)throw new Error(K.commerceActionFailed);const wt=Array.isArray(De.lines)?De.lines.filter(kn=>!!kn&&typeof kn=="object"):[],yn=V.id;let mn=!1;De.lines=wt.map(kn=>kn.id===yn?(mn=!0,{...kn,quantity:Ee}):kn),mn||(De.lines=[...wt,{id:yn,quantity:Ee}])}we.idempotency_key_required&&(De.idempotency_key=`widget-cart-${hi()}`);let Ne;if(me.requires_confirmation){const wt=await U.createCapabilityConfirmation(i,Qe,we.capability_id,De,Je);await U.confirmCapability(i,Qe,wt.id),Ne=wt.id}await U.executeCustomerServiceTool(i,Qe,we.capability_id,De,{confirmationId:Ne,entryContext:Je}),await Yn()},[Je,U,K.commerceActionFailed,i,Yn,Qe]),_u=G.useCallback(async(V,me)=>{if(V.backendMessageId&&!Fn.current.has(V.id)){Fn.current.add(V.id),J(Ee=>({...Ee,[V.id]:me}));try{await U.sendFeedback({projectKey:i,subject:Qe,messageId:V.backendMessageId,rating:me,metadata:{}}),Me(Ee=>Ee.map(we=>we.id===V.id?{...we,feedback:me}:we))}catch(Ee){At?.(Ee instanceof Error?Ee:new Error("Feedback request failed"))}finally{Fn.current.delete(V.id),J(Ee=>{const we={...Ee};return delete we[V.id],we})}}},[U,Je,Ze,r,At,re,i,Me,Qe]),Eu=G.useCallback(async(V,me)=>{if(!xe?.capabilities?.chat?.contact_request?.enabled)throw new Error(K.contactFailed);return me==="start_human_handoff"?U.sendHumanHandoff(i,Qe,V):U.sendContactRequest(i,Qe,V)},[U,K.contactFailed,i,xe?.capabilities?.chat?.contact_request?.enabled,Qe]),wu=G.useCallback(async(V,me,Ee)=>{if(me.action!=="confirm_human_request"||!me.payload)throw new Error("The human-help request is unavailable");const we=me.payload.question;if(typeof we!="string"||!we.trim())throw new Error("The human-help request is invalid");if(!V.conversationId||!V.backendMessageId)throw new Error("The human-help request is unavailable");await U.sendHumanHandoff(i,Qe,{...Ee,conversation_id:V.conversationId,source_message_id:V.backendMessageId,message:Ee.message.trim()||we.trim()})},[U,i,Qe]),xr=G.useMemo(()=>{const V=Yo(re),me=we=>we.every(De=>De==="page.url"?!!V.url:!1),Ee=xe?.capabilities?.chat?.intents||[];return[{intent:"summarize_page",label:K.summarizePage},{intent:"contact",label:K.contact}].filter(we=>{const De=Ee.find(Ne=>Ne.code===we.intent);return!!(De?.enabled&&De.surfaces.includes("widget")&&me(De.requirements))})},[K.contact,K.summarizePage,re,xe?.capabilities]),ua=G.useMemo(()=>{if(Bn)return K.launcherAnswerReady;const V=Yo(re),me=`${V.url||""} ${V.title||""}`.toLowerCase(),Ee=De=>xr.some(Ne=>Ne.intent===De),we=(...De)=>Pn.some(Ne=>De.includes(Ne.code||Ne.id));return Ee("contact")&&we("create_lead","request_human")&&/contact|sales|support/.test(me)?K.launcherContact:Ee("summarize_page")&&/docs?|documentation|guide|article|blog/.test(me)?K.launcherPageHelp:Xe&&/product|shop|store/.test(me)?K.launcherProductHelp:/pricing|plans?/.test(me)?K.launcherPlanHelp:Oi?K.launcher:K.title},[Bn,Xe,K.launcher,K.launcherAnswerReady,K.launcherContact,K.launcherPageHelp,K.launcherPlanHelp,K.launcherProductHelp,K.title,Pn,Oi,xr,re]);G.useEffect(()=>{if(!$i){Gn(ua),ti(!1);return}if(window.matchMedia?.("(prefers-reduced-motion: reduce)").matches){Gn(ua),ti(!1);return}let me=0;Gn(""),ti(!0);const Ee=window.setInterval(()=>{me+=1,Gn(ua.slice(0,me)),!(me<ua.length)&&(window.clearInterval(Ee),ti(!1))},28);return()=>window.clearInterval(Ee)},[$i,ua]);const Su=G.useCallback(async V=>{hr(!0),ii(),cn(!0),await Vn(V)},[ii,cn,Vn]),Tu=G.useCallback(async()=>{oa("selected"),ii(),cn(!0),await Vn(K.summarizePage,"summarize_page")},[K.summarizePage,ii,cn,oa,Vn]),Au=yi&&Ot&&!mr&&!mt&&!dn&&Ge&&(!Un||zi),Nu=Oa>=Vo&&!Qi&&!mt&&!dn&&Ge&&(!Un||zi);return v.jsx(jf.Provider,{value:{logoUrl:W?.logo_url??xe?.theme_config?.logo_url,name:K.title},children:v.jsxs("div",{ref:ei,className:ir("akilio-root",be),lang:r,dir:Mh(r,ve).direction,style:Ri,"data-akilio-mode":pt?"inline":Ue?"floating":Ht?"side-panel":"drawer","data-akilio-color-mode":pe,"data-akilio-launcher-position":pn,"data-akilio-launcher-experience":ni,"data-akilio-open":mt?"true":"false",children:[Nu&&v.jsx(_h,{title:K.proactiveSummaryTitle,message:K.proactiveSummaryMessage,actionLabel:K.summarizePage,dismissLabel:K.proactiveSummaryDismiss,onDismiss:()=>oa("dismissed"),onOpen:()=>{Tu().catch(()=>{})},primaryColor:Ri["--akilio-primary"]||void 0,showBranding:Oi}),Au&&v.jsx(iT,{placeholder:fn?.placeholder||K.contextualPlaceholder,dismissLabel:K.contextualDismiss,dismissible:fn?.dismissible!==!1,onDismiss:()=>hr(!0),onSubmit:Su}),!pt&&k==="default"&&v.jsxs(v.Fragment,{children:[Yi&&v.jsx(_h,{title:K.tourTitle,message:K.tourMessage,actionLabel:K.tourAction,dismissLabel:K.tourDismiss,onDismiss:ii,onOpen:Rn,primaryColor:Ri["--akilio-primary"]||void 0,showBranding:Oi}),v.jsx(aT,{label:$i?Ni:ua,accessibleLabel:ua,onClick:()=>{ii(),aa(!1),Mn(!1),bi("seen"),kr.toggleChat()},showBranding:Oi,primaryColor:Ri["--akilio-primary"]||void 0,open:mt,controlsId:an,experience:ni,expanded:$i,answerReady:Bn,typing:ra})]}),!pt&&typeof k=="function"&&k(kr),dt&&mt&&v.jsx("button",{type:"button",className:"akilio-overlay","aria-label":K.close,onClick:()=>cn(!1)}),v.jsx(nT,{ref:qt,panelId:an,open:mt,isDesktop:Ht,inline:pt,colorMode:pe,allowColorModeToggle:d,widgetAvailable:Ge,showBranding:Oi,businessLogo:W?.logo_url??xe?.theme_config?.logo_url,showPoweredBy:br,locale:r,copy:{...K,description:ot?`${K.description} ${K.configFailed}: ${ot}`:K.description},messages:ss,feedbackPending:O,streamingMessage:ia,loading:dn,loadingLabel:dr.message||(()=>{const V=dr.stage.toLowerCase();return V.includes("retriev")||V.includes("search")?K.searching:V.includes("ground")||V.includes("source")?K.reviewingSources:V.includes("valid")||V.includes("check")||V.includes("safety")?K.checkingAnswer:V.includes("answer")||V.includes("generat")||V.includes("prepar")?K.preparingAnswer:K.loading})(),consentDecision:Di,consentGranted:zi,requireConsent:Un,privacyNotice:$o,privacyNoticeUrl:yr,onConsentDecision:la,onClose:()=>cn(!1),onToggleColorMode:Kr,onClear:sa,onSubmit:Vn,onDraftChange:Ko,onFeedback:_u,starterQuestions:K.suggestions,contactRequestCapability:xe?.capabilities?.chat?.contact_request,onContactRequest:Eu,onConfirmHumanRequest:wu,onClarificationSubmit:async(V,me,Ee)=>{if(!V.backendMessageId)throw new Error("Missing source message");await Vn(Ee,void 0,void 0,!1,{source_message_id:V.backendMessageId,values:me})},onProductClick:ca,onCommerceAction:Zr,onSuggestion:V=>{const me=Yo(re);U.sendWidgetEvent(i,Qe,{event_id:hi(),event_type:"suggestion_clicked",entry_context:rs(Je||xu(void 0,me)),metadata:{}}).catch(()=>{}),Vn(V).catch(()=>{})},onProactiveAction:V=>{V.type==="summarize_conversation"&&Vn(V.message||K.summarizeConversation,"summarize_conversation").catch(()=>{})},intentActions:xr,onIntentAction:(V,me)=>{Vn(me,V).catch(()=>{})},primaryColor:Ri["--akilio-primary"]||void 0,slug:xe?.slug,cart:Cn,cartLoading:Tt,onRefreshCart:()=>{Yn()},onCartAction:cs})]})})}function RT(t){const i=t.styleIsolation??"shadow",r=(t.mode??"floating")!=="inline",l=G.useRef(null),[s,d]=G.useState(null);return G.useEffect(()=>{if(i!=="shadow"||!l.current){d(null);return}const c=l.current,p=c.shadowRoot??c.attachShadow({mode:"open"});if(r&&(c.style.position="fixed",c.style.inset="0",c.style.width="100vw",c.style.height="100dvh",c.style.margin="0",c.style.padding="0",c.style.border="0",c.style.background="transparent",c.style.pointerEvents="none",c.style.zIndex="2147483647",c.style.isolation="isolate",typeof c.showPopover=="function")){c.setAttribute("popover","manual");try{c.showPopover()}catch{c.removeAttribute("popover")}}let h=p.querySelector("style[data-akilio-styles]");h||(h=document.createElement("style"),h.setAttribute("data-akilio-styles",""),h.textContent=Oh,p.appendChild(h));let m=p.querySelector("[data-akilio-shadow-mount]");return m||(m=document.createElement("div"),m.setAttribute("data-akilio-shadow-mount",""),p.appendChild(m)),d(m),()=>{if(typeof c.hidePopover=="function")try{c.hidePopover()}catch{}c.removeAttribute("popover"),c.removeAttribute("style")}},[i,r]),i==="shadow"?v.jsx("div",{ref:l,"data-akilio-shadow-host":"true",children:s&&kk.createPortal(v.jsx(Lh,{...t}),s)}):v.jsxs(v.Fragment,{children:[i==="scoped"&&v.jsx("style",{"data-akilio-styles":!0,children:Oh}),v.jsx(Lh,{...t})]})}const os=new Map;function DT(){return typeof crypto<"u"&&crypto.randomUUID?crypto.randomUUID():`akilio-${Date.now()}-${Math.random().toString(16).slice(2)}`}function zT(t){if(t instanceof HTMLElement)return t;if(typeof t=="string"){const r=document.querySelector(t);if(!r)throw new Error(`Akilio target not found: ${t}`);return r}const i=document.createElement("div");return i.setAttribute("data-akilio-root","true"),document.body.appendChild(i),i}function gi(t,i=!1){return t==null||t===""?i:["1","true","yes","on"].includes(t.toLowerCase())}function LT(t){if(t)try{return JSON.parse(t)}catch{return}}function IT(t){if(t!==void 0)try{const i=JSON.parse(t);if(Array.isArray(i)&&i.every(r=>typeof r=="string"))return i}catch{}}function Ih(t){const i=t.dataset,r=i.apiBaseUrl||i.apiUrl||"https://api.akilio-ai.com",l=i.projectKey;if(!l)throw new Error("Missing data-project-key on Akilio script tag");return{apiBaseUrl:r,projectKey:l,locale:i.locale||document.documentElement.lang||"en",mode:i.mode||"floating",colorMode:i.colorMode||"system",allowColorModeToggle:gi(i.allowColorModeToggle,!0),showAkilioBranding:gi(i.showAkilioBranding,!0),streaming:gi(i.streaming,!0),enableResponseSound:gi(i.enableResponseSound,!1),responseSoundVolume:i.responseSoundVolume?Math.min(1,Math.max(0,Number(i.responseSoundVolume)||0)):void 0,styleIsolation:i.styleIsolation||"shadow",defaultOpen:gi(i.defaultOpen),launcher:i.launcher==="hidden"?"hidden":"default",launcherPosition:i.launcherPosition||"bottom-right",launcherExperience:i.launcherExperience==="static"?"static":"adaptive",contextualPrompt:i.contextualPrompt!==void 0?{enabled:gi(i.contextualPrompt),trigger:"near-page-end",threshold:i.contextualPromptThreshold?Math.min(2e3,Math.max(0,Number(i.contextualPromptThreshold)||0)):void 0,placeholder:i.contextualPromptPlaceholder||void 0,dismissible:gi(i.contextualPromptDismissible,!0)}:void 0,persistOpenState:gi(i.persistOpenState,!0),enableTour:gi(i.enableTour,!0),tourDelayMs:i.tourDelayMs?Math.max(0,Number(i.tourDelayMs)||0):void 0,tourVersion:i.tourVersion||void 0,enableLocalHistory:gi(i.enableLocalHistory,!0),enableServerHistorySync:gi(i.enableServerHistorySync,!0),anonymousId:i.anonymousId,externalUserId:i.externalUserId,accessToken:i.accessToken||i.widgetToken,auth:i.apiKey?{apiKey:i.apiKey,apiKeyHeader:i.apiKeyHeader}:void 0,privacyNotice:i.privacyNotice,privacyNoticeUrl:i.privacyNoticeUrl,requireConsent:gi(i.requireConsent),consentNoticeVersion:i.consentNoticeVersion||"v1",channel:i.channel||"website",productArea:i.productArea,assistantMode:i.assistantMode,agentName:i.agentName,welcomeMessage:i.welcomeMessage,starterPrompts:IT(i.starterPrompts),theme:{...LT(i.theme),...i.logoUrl!==void 0?{logo_url:i.logoUrl}:{},...i.brandName!==void 0?{brand_name:i.brandName}:{}},pageContext:()=>({url:window.location.href,title:document.title,channel:i.channel||"website",productArea:i.productArea,assistantMode:i.assistantMode}),integration:i.integration}}function ls(t){if(typeof document>"u")throw new Error("Akilio can only be mounted in a browser environment");const i=zT(t.target),r=i.id||DT();i.id||(i.id=r);const l=yk.createRoot(i),{target:s,...d}=t;let c=t.open,p=t.open??t.defaultOpen??!1;const h=()=>{l.render(v.jsx(RT,{...d,open:c,onOpenChange:b=>{p=b,t.onOpenChange?.(b),c!==void 0&&(c=b,h())}}))},m=b=>{c=b,p=b,h(),t.onOpenChange?.(b)};h();const g={id:r,element:i,root:l,open:()=>m(!0),close:()=>m(!1),toggle:()=>m(!p),destroy:()=>{l.unmount(),os.delete(r),i.getAttribute("data-akilio-root")==="true"&&i.remove()}};return os.set(r,g),g}function Bh(t){os.get(t)?.destroy()}function Uh(){for(const t of Array.from(os.values()))t.destroy()}const BT={mount:ls,init:ls,destroy:Bh,destroyAll:Uh};if(typeof window<"u"){window.Akilio=BT;const t=()=>{if(window.__AKILIO_WIDGET_AUTO_MOUNTED__)return;const r=document.currentScript||document.querySelector("script[data-akilio-widget]");if(r&&r.dataset.autoInit!=="false"&&r.dataset.akilioMounted!=="true"){r.dataset.akilioMounted="true",window.__AKILIO_WIDGET_AUTO_MOUNTED__=!0;try{ls(Ih(r))}catch(l){delete r.dataset.akilioMounted,delete window.__AKILIO_WIDGET_AUTO_MOUNTED__,console.error("[Akilio] Widget initialization failed:",l)}}};document.readyState==="loading"?document.addEventListener("DOMContentLoaded",t,{once:!0}):t()}return Ir.destroy=Bh,Ir.destroyAll=Uh,Ir.mount=ls,Ir.parseScriptOptions=Ih,Object.defineProperty(Ir,Symbol.toStringTag,{value:"Module"}),Ir})({});