chainlit 1.1.302__py3-none-any.whl → 1.1.304__py3-none-any.whl

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.

Potentially problematic release.


This version of chainlit might be problematic. Click here for more details.

Files changed (23) hide show
  1. chainlit/copilot/dist/index.js +1 -1
  2. chainlit/frontend/dist/assets/{DailyMotion-92fc1621.js → DailyMotion-4f715d15.js} +1 -1
  3. chainlit/frontend/dist/assets/{Facebook-644622d4.js → Facebook-25f45c09.js} +1 -1
  4. chainlit/frontend/dist/assets/{FilePlayer-adb407f0.js → FilePlayer-04482650.js} +1 -1
  5. chainlit/frontend/dist/assets/{Kaltura-9432f468.js → Kaltura-37152a96.js} +1 -1
  6. chainlit/frontend/dist/assets/{Mixcloud-f0974962.js → Mixcloud-914b75ee.js} +1 -1
  7. chainlit/frontend/dist/assets/{Mux-b96eaa94.js → Mux-fb751398.js} +1 -1
  8. chainlit/frontend/dist/assets/{Preview-b3ef64e8.js → Preview-85fbb8da.js} +1 -1
  9. chainlit/frontend/dist/assets/{SoundCloud-09b74715.js → SoundCloud-8afad6c0.js} +1 -1
  10. chainlit/frontend/dist/assets/{Streamable-48c1fa82.js → Streamable-08844d93.js} +1 -1
  11. chainlit/frontend/dist/assets/{Twitch-457de5f4.js → Twitch-1b95f5c8.js} +1 -1
  12. chainlit/frontend/dist/assets/{Vidyard-d5e20d28.js → Vidyard-5028fa2f.js} +1 -1
  13. chainlit/frontend/dist/assets/{Vimeo-dd6bf7ea.js → Vimeo-ca732959.js} +1 -1
  14. chainlit/frontend/dist/assets/{Wistia-a4a2bf34.js → Wistia-74e58d71.js} +1 -1
  15. chainlit/frontend/dist/assets/{YouTube-f20013d0.js → YouTube-bdf4ca10.js} +1 -1
  16. chainlit/frontend/dist/assets/{index-e0971e86.js → index-621140f9.js} +3 -3
  17. chainlit/frontend/dist/assets/{react-plotly-29626c74.js → react-plotly-cf9b99cc.js} +1 -1
  18. chainlit/frontend/dist/index.html +1 -1
  19. chainlit/server.py +8 -15
  20. {chainlit-1.1.302.dist-info → chainlit-1.1.304.dist-info}/METADATA +1 -1
  21. {chainlit-1.1.302.dist-info → chainlit-1.1.304.dist-info}/RECORD +23 -23
  22. {chainlit-1.1.302.dist-info → chainlit-1.1.304.dist-info}/WHEEL +0 -0
  23. {chainlit-1.1.302.dist-info → chainlit-1.1.304.dist-info}/entry_points.txt +0 -0
@@ -335,7 +335,7 @@ function print() { __p += __j.call(arguments, '') }
335
335
  *
336
336
  * This source code is licensed under the MIT license found in the
337
337
  * LICENSE file in the root directory of this source tree.
338
- */var Rf=R;function g6e(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var _6e=typeof Object.is=="function"?Object.is:g6e,E6e=Rf.useState,b6e=Rf.useEffect,S6e=Rf.useLayoutEffect,v6e=Rf.useDebugValue;function y6e(e,t){var n=t(),r=E6e({inst:{value:n,getSnapshot:t}}),a=r[0].inst,i=r[1];return S6e(function(){a.value=n,a.getSnapshot=t,L2(a)&&i({inst:a})},[e,n,t]),b6e(function(){return L2(a)&&i({inst:a}),e(function(){L2(a)&&i({inst:a})})},[e]),v6e(n),n}function L2(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!_6e(e,n)}catch{return!0}}function T6e(e,t){return t()}var C6e=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?T6e:y6e;eX.useSyncExternalStore=Rf.useSyncExternalStore!==void 0?Rf.useSyncExternalStore:C6e;JQ.exports=eX;var R6e=JQ.exports;const Tc=()=>{},_i=Tc(),M2=Object,yn=e=>e===_i,yl=e=>typeof e=="function",Yc=(e,t)=>({...e,...t}),x6e=e=>yl(e.then),X1=new WeakMap;let A6e=0;const Yh=e=>{const t=typeof e,n=e&&e.constructor,r=n==Date;let a,i;if(M2(e)===e&&!r&&n!=RegExp){if(a=X1.get(e),a)return a;if(a=++A6e+"~",X1.set(e,a),n==Array){for(a="@",i=0;i<e.length;i++)a+=Yh(e[i])+",";X1.set(e,a)}if(n==M2){a="#";const o=M2.keys(e).sort();for(;!yn(i=o.pop());)yn(e[i])||(a+=i+":"+Yh(e[i])+",");X1.set(e,a)}}else a=r?e.toJSON():t=="symbol"?e.toString():t=="string"?JSON.stringify(e):""+e;return a},El=new WeakMap,k2={},Z1={},F5="undefined",gy=typeof window!=F5,r4=typeof document!=F5,O6e=()=>gy&&typeof window.requestAnimationFrame!=F5,tX=(e,t)=>{const n=El.get(e);return[()=>!yn(t)&&e.get(t)||k2,r=>{if(!yn(t)){const a=e.get(t);t in Z1||(Z1[t]=a),n[5](t,Yc(a,r),a||k2)}},n[6],()=>!yn(t)&&t in Z1?Z1[t]:!yn(t)&&e.get(t)||k2]};let a4=!0;const N6e=()=>a4,[i4,o4]=gy&&window.addEventListener?[window.addEventListener.bind(window),window.removeEventListener.bind(window)]:[Tc,Tc],I6e=()=>{const e=r4&&document.visibilityState;return yn(e)||e!=="hidden"},w6e=e=>(r4&&document.addEventListener("visibilitychange",e),i4("focus",e),()=>{r4&&document.removeEventListener("visibilitychange",e),o4("focus",e)}),D6e=e=>{const t=()=>{a4=!0,e()},n=()=>{a4=!1};return i4("online",t),i4("offline",n),()=>{o4("online",t),o4("offline",n)}},L6e={isOnline:N6e,isVisible:I6e},M6e={initFocus:w6e,initReconnect:D6e},y9=!Oe.useId,qh=!gy||"Deno"in window,k6e=e=>O6e()?window.requestAnimationFrame(e):setTimeout(e,1),P2=qh?R.useEffect:R.useLayoutEffect,F2=typeof navigator<"u"&&navigator.connection,T9=!qh&&F2&&(["slow-2g","2g"].includes(F2.effectiveType)||F2.saveData),B5=e=>{if(yl(e))try{e=e()}catch{e=""}const t=e;return e=typeof e=="string"?e:(Array.isArray(e)?e.length:e)?Yh(e):"",[e,t]};let P6e=0;const s4=()=>++P6e,nX=0,rX=1,aX=2,F6e=3;var hm={__proto__:null,ERROR_REVALIDATE_EVENT:F6e,FOCUS_EVENT:nX,MUTATE_EVENT:aX,RECONNECT_EVENT:rX};async function iX(...e){const[t,n,r,a]=e,i=Yc({populateCache:!0,throwOnError:!0},typeof a=="boolean"?{revalidate:a}:a||{});let o=i.populateCache;const s=i.rollbackOnError;let l=i.optimisticData;const c=i.revalidate!==!1,u=h=>typeof s=="function"?s(h):s!==!1,p=i.throwOnError;if(yl(n)){const h=n,g=[],E=t.keys();for(const y of E)!/^\$(inf|sub)\$/.test(y)&&h(t.get(y)._k)&&g.push(y);return Promise.all(g.map(f))}return f(n);async function f(h){const[g]=B5(h);if(!g)return;const[E,y]=tX(t,g),[b,v,C,T]=El.get(t),O=()=>{const G=b[g];return c&&(delete C[g],delete T[g],G&&G[0])?G[0](aX).then(()=>E().data):E().data};if(e.length<3)return O();let A=r,N;const k=s4();v[g]=[k,0];const B=!yn(l),L=E(),H=L.data,te=L._c,K=yn(te)?H:te;if(B&&(l=yl(l)?l(K,H):l,y({data:l,_c:K})),yl(A))try{A=A(K)}catch(G){N=G}if(A&&x6e(A))if(A=await A.catch(G=>{N=G}),k!==v[g][0]){if(N)throw N;return A}else N&&B&&u(N)&&(o=!0,y({data:K,_c:_i}));if(o&&!N)if(yl(o)){const G=o(A,K);y({data:G,error:_i,_c:_i})}else y({data:A,error:_i,_c:_i});if(v[g][1]=s4(),Promise.resolve(O()).then(()=>{y({_c:_i})}),N){if(p)throw N;return}return A}}const C9=(e,t)=>{for(const n in e)e[n][0]&&e[n][0](t)},B6e=(e,t)=>{if(!El.has(e)){const n=Yc(M6e,t),r={},a=iX.bind(_i,e);let i=Tc;const o={},s=(u,p)=>{const f=o[u]||[];return o[u]=f,f.push(p),()=>f.splice(f.indexOf(p),1)},l=(u,p,f)=>{e.set(u,p);const h=o[u];if(h)for(const g of h)g(p,f)},c=()=>{if(!El.has(e)&&(El.set(e,[r,{},{},{},a,l,s]),!qh)){const u=n.initFocus(setTimeout.bind(_i,C9.bind(_i,r,nX))),p=n.initReconnect(setTimeout.bind(_i,C9.bind(_i,r,rX)));i=()=>{u&&u(),p&&p(),El.delete(e)}}};return c(),[e,a,c,i]}return[e,El.get(e)[4]]},U6e=(e,t,n,r,a)=>{const i=n.errorRetryCount,o=a.retryCount,s=~~((Math.random()+.5)*(1<<(o<8?o:8)))*n.errorRetryInterval;!yn(i)&&o>i||setTimeout(r,s,a)},$6e=(e,t)=>Yh(e)==Yh(t),[oX,z6e]=B6e(new Map),H6e=Yc({onLoadingSlow:Tc,onSuccess:Tc,onError:Tc,onErrorRetry:U6e,onDiscarded:Tc,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:T9?1e4:5e3,focusThrottleInterval:5*1e3,dedupingInterval:2*1e3,loadingTimeout:T9?5e3:3e3,compare:$6e,isPaused:()=>!1,cache:oX,mutate:z6e,fallback:{}},L6e),G6e=(e,t)=>{const n=Yc(e,t);if(t){const{use:r,fallback:a}=e,{use:i,fallback:o}=t;r&&i&&(n.use=r.concat(i)),a&&o&&(n.fallback=Yc(a,o))}return n},V6e=R.createContext({}),Y6e="$inf$",sX=gy&&window.__SWR_DEVTOOLS_USE__,q6e=sX?window.__SWR_DEVTOOLS_USE__:[],W6e=()=>{sX&&(window.__SWR_DEVTOOLS_REACT__=Oe)},j6e=e=>yl(e[1])?[e[0],e[1],e[2]||{}]:[e[0],null,(e[1]===null?e[2]:e[1])||{}],K6e=()=>Yc(H6e,R.useContext(V6e)),Q6e=e=>(t,n,r)=>e(t,n&&((...i)=>{const[o]=B5(t),[,,,s]=El.get(oX);if(o.startsWith(Y6e))return n(...i);const l=s[o];return yn(l)?n(...i):(delete s[o],l)}),r),X6e=q6e.concat(Q6e),Z6e=e=>function(...n){const r=K6e(),[a,i,o]=j6e(n),s=G6e(r,o);let l=e;const{use:c}=s,u=(c||[]).concat(X6e);for(let p=u.length;p--;)l=u[p](l);return l(a,i||s.fetcher||null,s)},J6e=(e,t,n)=>{const r=t[e]||(t[e]=[]);return r.push(n),()=>{const a=r.indexOf(n);a>=0&&(r[a]=r[r.length-1],r.pop())}};W6e();const R9=Oe.use||(e=>{if(e.status==="pending")throw e;if(e.status==="fulfilled")return e.value;throw e.status==="rejected"?e.reason:(e.status="pending",e.then(t=>{e.status="fulfilled",e.value=t},t=>{e.status="rejected",e.reason=t}),e)}),B2={dedupe:!0},eLe=(e,t,n)=>{const{cache:r,compare:a,suspense:i,fallbackData:o,revalidateOnMount:s,revalidateIfStale:l,refreshInterval:c,refreshWhenHidden:u,refreshWhenOffline:p,keepPreviousData:f}=n,[h,g,E,y]=El.get(r),[b,v]=B5(e),C=R.useRef(!1),T=R.useRef(!1),O=R.useRef(b),A=R.useRef(t),N=R.useRef(n),k=()=>N.current,B=()=>k().isVisible()&&k().isOnline(),[L,H,te,K]=tX(r,b),G=R.useRef({}).current,ne=yn(o)?n.fallback[b]:o,le=(Le,we)=>{for(const Pe in G){const Me=Pe;if(Me==="data"){if(!a(Le[Me],we[Me])&&(!yn(Le[Me])||!a(Te,we[Me])))return!1}else if(we[Me]!==Le[Me])return!1}return!0},W=R.useMemo(()=>{const Le=(()=>!b||!t?!1:yn(s)?k().isPaused()||i?!1:yn(l)?!0:l:s)(),we=Ge=>{const at=Yc(Ge);return delete at._k,Le?{isValidating:!0,isLoading:!0,...at}:at},Pe=L(),Me=K(),lt=we(Pe),it=Pe===Me?lt:we(Me);let nt=lt;return[()=>{const Ge=we(L());return le(Ge,nt)?(nt.data=Ge.data,nt.isLoading=Ge.isLoading,nt.isValidating=Ge.isValidating,nt.error=Ge.error,nt):(nt=Ge,Ge)},()=>it]},[r,b]),V=R6e.useSyncExternalStore(R.useCallback(Le=>te(b,(we,Pe)=>{le(Pe,we)||Le()}),[r,b]),W[0],W[1]),z=!C.current,M=h[b]&&h[b].length>0,ie=V.data,q=yn(ie)?ne:ie,P=V.error,ce=R.useRef(q),Te=f?yn(ie)?ce.current:ie:q,me=(()=>M&&!yn(P)?!1:z&&!yn(s)?s:k().isPaused()?!1:i?yn(q)?!1:l:yn(q)||l)(),Ae=!!(b&&t&&z&&me),Ce=yn(V.isValidating)?Ae:V.isValidating,Ne=yn(V.isLoading)?Ae:V.isLoading,ze=R.useCallback(async Le=>{const we=A.current;if(!b||!we||T.current||k().isPaused())return!1;let Pe,Me,lt=!0;const it=Le||{},nt=!E[b]||!it.dedupe,Ge=()=>y9?!T.current&&b===O.current&&C.current:b===O.current,at={isValidating:!1,isLoading:!1},ct=()=>{H(at)},se=()=>{const ge=E[b];ge&&ge[1]===Me&&delete E[b]},Fe={isValidating:!0};yn(L().data)&&(Fe.isLoading=!0);try{if(nt&&(H(Fe),n.loadingTimeout&&yn(L().data)&&setTimeout(()=>{lt&&Ge()&&k().onLoadingSlow(b,n)},n.loadingTimeout),E[b]=[we(v),s4()]),[Pe,Me]=E[b],Pe=await Pe,nt&&setTimeout(se,n.dedupingInterval),!E[b]||E[b][1]!==Me)return nt&&Ge()&&k().onDiscarded(b),!1;at.error=_i;const ge=g[b];if(!yn(ge)&&(Me<=ge[0]||Me<=ge[1]||ge[1]===0))return ct(),nt&&Ge()&&k().onDiscarded(b),!1;const oe=L().data;at.data=a(oe,Pe)?oe:Pe,nt&&Ge()&&k().onSuccess(Pe,b,n)}catch(ge){se();const oe=k(),{shouldRetryOnError:ae}=oe;oe.isPaused()||(at.error=ge,nt&&Ge()&&(oe.onError(ge,b,oe),(ae===!0||yl(ae)&&ae(ge))&&B()&&oe.onErrorRetry(ge,b,oe,Z=>{const de=h[b];de&&de[0]&&de[0](hm.ERROR_REVALIDATE_EVENT,Z)},{retryCount:(it.retryCount||0)+1,dedupe:!0})))}return lt=!1,ct(),!0},[b,r]),Ue=R.useCallback((...Le)=>iX(r,O.current,...Le),[]);if(P2(()=>{A.current=t,N.current=n,yn(ie)||(ce.current=ie)}),P2(()=>{if(!b)return;const Le=ze.bind(_i,B2);let we=0;const Me=J6e(b,h,(lt,it={})=>{if(lt==hm.FOCUS_EVENT){const nt=Date.now();k().revalidateOnFocus&&nt>we&&B()&&(we=nt+k().focusThrottleInterval,Le())}else if(lt==hm.RECONNECT_EVENT)k().revalidateOnReconnect&&B()&&Le();else{if(lt==hm.MUTATE_EVENT)return ze();if(lt==hm.ERROR_REVALIDATE_EVENT)return ze(it)}});return T.current=!1,O.current=b,C.current=!0,H({_k:v}),me&&(yn(q)||qh?Le():k6e(Le)),()=>{T.current=!0,Me()}},[b]),P2(()=>{let Le;function we(){const Me=yl(c)?c(L().data):c;Me&&Le!==-1&&(Le=setTimeout(Pe,Me))}function Pe(){!L().error&&(u||k().isVisible())&&(p||k().isOnline())?ze(B2).then(we):we()}return we(),()=>{Le&&(clearTimeout(Le),Le=-1)}},[c,u,p,b]),R.useDebugValue(Te),i&&yn(q)&&b){if(!y9&&qh)throw new Error("Fallback data is required when using suspense in SSR.");A.current=t,N.current=n,T.current=!1;const Le=y[b];if(!yn(Le)){const we=Ue(Le);R9(we)}if(yn(P)){const we=ze(B2);yn(Te)||(we.status="fulfilled",we.value=!0),R9(we)}else throw P}return{mutate:Ue,get data(){return G.data=!0,Te},get error(){return G.error=!0,P},get isValidating(){return G.isValidating=!0,Ce},get isLoading(){return G.isLoading=!0,Ne}}},tLe=Z6e(eLe),nLe=async e=>{const t=await fetch(e);if(!t.ok)throw new Error("Network response was not ok");const n=t.headers.get("content-type");return n&&n.includes("application/json")?t.json():t.text()},lX=e=>tLe(e,nLe),rLe=R.lazy(()=>Wa(()=>import("./react-plotly-29626c74.js").then(e=>e.r),[])),aLe=({element:e})=>{const{data:t,error:n,isLoading:r}=lX(e.url||null);if(r)return _.jsx("div",{children:"Loading..."});if(n)return _.jsx("div",{children:"An error occured"});let a;if(t)a=t;else return null;return _.jsx(R.Suspense,{fallback:_.jsx("div",{children:"Loading..."}),children:_.jsx(rLe,{className:`${e.display}-plotly`,data:a.data,layout:a.layout,frames:a.frames,config:a.config,style:{width:"100%",height:"100%",borderRadius:"1rem",overflow:"hidden"},useResizeHandler:!0})})},cX=e=>_.jsx(ZQ,{prefix:"Failed to load chart.",children:_.jsx(aLe,{...e})});function x9(e){const t=[],n=String(e||"");let r=n.indexOf(","),a=0,i=!1;for(;!i;){r===-1&&(r=n.length,i=!0);const o=n.slice(a,r).trim();(o||!i)&&t.push(o),a=r+1,r=n.indexOf(",",a)}return t}function uX(e,t){const n=t||{};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const iLe=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,oLe=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,sLe={};function A9(e,t){return((t||sLe).jsx?oLe:iLe).test(e)}const lLe=/[ \t\n\f\r]/g;function cLe(e){return typeof e=="object"?e.type==="text"?O9(e.value):!1:O9(e)}function O9(e){return e.replace(lLe,"")===""}let Mg=class{constructor(t,n,r){this.property=t,this.normal=n,r&&(this.space=r)}};Mg.prototype.property={};Mg.prototype.normal={};Mg.prototype.space=null;function dX(e,t){const n={},r={};let a=-1;for(;++a<e.length;)Object.assign(n,e[a].property),Object.assign(r,e[a].normal);return new Mg(n,r,t)}function Wh(e){return e.toLowerCase()}let Vo=class{constructor(t,n){this.property=t,this.attribute=n}};Vo.prototype.space=null;Vo.prototype.boolean=!1;Vo.prototype.booleanish=!1;Vo.prototype.overloadedBoolean=!1;Vo.prototype.number=!1;Vo.prototype.commaSeparated=!1;Vo.prototype.spaceSeparated=!1;Vo.prototype.commaOrSpaceSeparated=!1;Vo.prototype.mustUseProperty=!1;Vo.prototype.defined=!1;let uLe=0;const Qt=vd(),$r=vd(),pX=vd(),ht=vd(),Wn=vd(),Jp=vd(),$i=vd();function vd(){return 2**++uLe}const l4=Object.freeze(Object.defineProperty({__proto__:null,boolean:Qt,booleanish:$r,commaOrSpaceSeparated:$i,commaSeparated:Jp,number:ht,overloadedBoolean:pX,spaceSeparated:Wn},Symbol.toStringTag,{value:"Module"})),U2=Object.keys(l4);class U5 extends Vo{constructor(t,n,r,a){let i=-1;if(super(t,n),N9(this,"space",a),typeof r=="number")for(;++i<U2.length;){const o=U2[i];N9(this,U2[i],(r&l4[o])===l4[o])}}}U5.prototype.defined=!0;function N9(e,t,n){n&&(e[t]=n)}const dLe={}.hasOwnProperty;function Jf(e){const t={},n={};let r;for(r in e.properties)if(dLe.call(e.properties,r)){const a=e.properties[r],i=new U5(r,e.transform(e.attributes||{},r),a,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(i.mustUseProperty=!0),t[r]=i,n[Wh(r)]=r,n[Wh(i.attribute)]=r}return new Mg(t,n,e.space)}const fX=Jf({space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()},properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}}),mX=Jf({space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()},properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function hX(e,t){return t in e?e[t]:t}function gX(e,t){return hX(e,t.toLowerCase())}const _X=Jf({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:gX,properties:{xmlns:null,xmlnsXLink:null}}),EX=Jf({transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()},properties:{ariaActiveDescendant:null,ariaAtomic:$r,ariaAutoComplete:null,ariaBusy:$r,ariaChecked:$r,ariaColCount:ht,ariaColIndex:ht,ariaColSpan:ht,ariaControls:Wn,ariaCurrent:null,ariaDescribedBy:Wn,ariaDetails:null,ariaDisabled:$r,ariaDropEffect:Wn,ariaErrorMessage:null,ariaExpanded:$r,ariaFlowTo:Wn,ariaGrabbed:$r,ariaHasPopup:null,ariaHidden:$r,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Wn,ariaLevel:ht,ariaLive:null,ariaModal:$r,ariaMultiLine:$r,ariaMultiSelectable:$r,ariaOrientation:null,ariaOwns:Wn,ariaPlaceholder:null,ariaPosInSet:ht,ariaPressed:$r,ariaReadOnly:$r,ariaRelevant:null,ariaRequired:$r,ariaRoleDescription:Wn,ariaRowCount:ht,ariaRowIndex:ht,ariaRowSpan:ht,ariaSelected:$r,ariaSetSize:ht,ariaSort:null,ariaValueMax:ht,ariaValueMin:ht,ariaValueNow:ht,ariaValueText:null,role:null}}),pLe=Jf({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:gX,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Jp,acceptCharset:Wn,accessKey:Wn,action:null,allow:null,allowFullScreen:Qt,allowPaymentRequest:Qt,allowUserMedia:Qt,alt:null,as:null,async:Qt,autoCapitalize:null,autoComplete:Wn,autoFocus:Qt,autoPlay:Qt,blocking:Wn,capture:null,charSet:null,checked:Qt,cite:null,className:Wn,cols:ht,colSpan:null,content:null,contentEditable:$r,controls:Qt,controlsList:Wn,coords:ht|Jp,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Qt,defer:Qt,dir:null,dirName:null,disabled:Qt,download:pX,draggable:$r,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Qt,formTarget:null,headers:Wn,height:ht,hidden:Qt,high:ht,href:null,hrefLang:null,htmlFor:Wn,httpEquiv:Wn,id:null,imageSizes:null,imageSrcSet:null,inert:Qt,inputMode:null,integrity:null,is:null,isMap:Qt,itemId:null,itemProp:Wn,itemRef:Wn,itemScope:Qt,itemType:Wn,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Qt,low:ht,manifest:null,max:null,maxLength:ht,media:null,method:null,min:null,minLength:ht,multiple:Qt,muted:Qt,name:null,nonce:null,noModule:Qt,noValidate:Qt,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:Qt,optimum:ht,pattern:null,ping:Wn,placeholder:null,playsInline:Qt,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Qt,referrerPolicy:null,rel:Wn,required:Qt,reversed:Qt,rows:ht,rowSpan:ht,sandbox:Wn,scope:null,scoped:Qt,seamless:Qt,selected:Qt,shadowRootClonable:Qt,shadowRootDelegatesFocus:Qt,shadowRootMode:null,shape:null,size:ht,sizes:null,slot:null,span:ht,spellCheck:$r,src:null,srcDoc:null,srcLang:null,srcSet:null,start:ht,step:null,style:null,tabIndex:ht,target:null,title:null,translate:null,type:null,typeMustMatch:Qt,useMap:null,value:$r,width:ht,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Wn,axis:null,background:null,bgColor:null,border:ht,borderColor:null,bottomMargin:ht,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Qt,declare:Qt,event:null,face:null,frame:null,frameBorder:null,hSpace:ht,leftMargin:ht,link:null,longDesc:null,lowSrc:null,marginHeight:ht,marginWidth:ht,noResize:Qt,noHref:Qt,noShade:Qt,noWrap:Qt,object:null,profile:null,prompt:null,rev:null,rightMargin:ht,rules:null,scheme:null,scrolling:$r,standby:null,summary:null,text:null,topMargin:ht,valueType:null,version:null,vAlign:null,vLink:null,vSpace:ht,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:Qt,disableRemotePlayback:Qt,prefix:null,property:null,results:ht,security:null,unselectable:null}}),fLe=Jf({space:"svg",attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},transform:hX,properties:{about:$i,accentHeight:ht,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:ht,amplitude:ht,arabicForm:null,ascent:ht,attributeName:null,attributeType:null,azimuth:ht,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:ht,by:null,calcMode:null,capHeight:ht,className:Wn,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:ht,diffuseConstant:ht,direction:null,display:null,dur:null,divisor:ht,dominantBaseline:null,download:Qt,dx:null,dy:null,edgeMode:null,editable:null,elevation:ht,enableBackground:null,end:null,event:null,exponent:ht,externalResourcesRequired:null,fill:null,fillOpacity:ht,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:Jp,g2:Jp,glyphName:Jp,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:ht,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:ht,horizOriginX:ht,horizOriginY:ht,id:null,ideographic:ht,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:ht,k:ht,k1:ht,k2:ht,k3:ht,k4:ht,kernelMatrix:$i,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:ht,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:ht,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:ht,overlineThickness:ht,paintOrder:null,panose1:null,path:null,pathLength:ht,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Wn,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:ht,pointsAtY:ht,pointsAtZ:ht,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:$i,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:$i,rev:$i,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:$i,requiredFeatures:$i,requiredFonts:$i,requiredFormats:$i,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:ht,specularExponent:ht,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:ht,strikethroughThickness:ht,string:null,stroke:null,strokeDashArray:$i,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:ht,strokeOpacity:ht,strokeWidth:null,style:null,surfaceScale:ht,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:$i,tabIndex:ht,tableValues:null,target:null,targetX:ht,targetY:ht,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:$i,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:ht,underlineThickness:ht,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:ht,values:null,vAlphabetic:ht,vMathematical:ht,vectorEffect:null,vHanging:ht,vIdeographic:ht,version:null,vertAdvY:ht,vertOriginX:ht,vertOriginY:ht,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:ht,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),mLe=/^data[-\w.:]+$/i,I9=/-[a-z]/g,hLe=/[A-Z]/g;function _y(e,t){const n=Wh(t);let r=t,a=Vo;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&mLe.test(t)){if(t.charAt(4)==="-"){const i=t.slice(5).replace(I9,_Le);r="data"+i.charAt(0).toUpperCase()+i.slice(1)}else{const i=t.slice(4);if(!I9.test(i)){let o=i.replace(hLe,gLe);o.charAt(0)!=="-"&&(o="-"+o),t="data"+o}}a=U5}return new a(r,t)}function gLe(e){return"-"+e.toLowerCase()}function _Le(e){return e.charAt(1).toUpperCase()}const ELe={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"},kg=dX([mX,fX,_X,EX,pLe],"html"),ou=dX([mX,fX,_X,EX,fLe],"svg");function w9(e){const t=String(e||"").trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function bX(e){return e.join(" ").trim()}var SX={},D9=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,bLe=/\n/g,SLe=/^\s*/,vLe=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,yLe=/^:\s*/,TLe=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,CLe=/^[;\s]*/,RLe=/^\s+|\s+$/g,xLe=`
338
+ */var Rf=R;function g6e(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var _6e=typeof Object.is=="function"?Object.is:g6e,E6e=Rf.useState,b6e=Rf.useEffect,S6e=Rf.useLayoutEffect,v6e=Rf.useDebugValue;function y6e(e,t){var n=t(),r=E6e({inst:{value:n,getSnapshot:t}}),a=r[0].inst,i=r[1];return S6e(function(){a.value=n,a.getSnapshot=t,L2(a)&&i({inst:a})},[e,n,t]),b6e(function(){return L2(a)&&i({inst:a}),e(function(){L2(a)&&i({inst:a})})},[e]),v6e(n),n}function L2(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!_6e(e,n)}catch{return!0}}function T6e(e,t){return t()}var C6e=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?T6e:y6e;eX.useSyncExternalStore=Rf.useSyncExternalStore!==void 0?Rf.useSyncExternalStore:C6e;JQ.exports=eX;var R6e=JQ.exports;const Tc=()=>{},_i=Tc(),M2=Object,yn=e=>e===_i,yl=e=>typeof e=="function",Yc=(e,t)=>({...e,...t}),x6e=e=>yl(e.then),X1=new WeakMap;let A6e=0;const Yh=e=>{const t=typeof e,n=e&&e.constructor,r=n==Date;let a,i;if(M2(e)===e&&!r&&n!=RegExp){if(a=X1.get(e),a)return a;if(a=++A6e+"~",X1.set(e,a),n==Array){for(a="@",i=0;i<e.length;i++)a+=Yh(e[i])+",";X1.set(e,a)}if(n==M2){a="#";const o=M2.keys(e).sort();for(;!yn(i=o.pop());)yn(e[i])||(a+=i+":"+Yh(e[i])+",");X1.set(e,a)}}else a=r?e.toJSON():t=="symbol"?e.toString():t=="string"?JSON.stringify(e):""+e;return a},El=new WeakMap,k2={},Z1={},F5="undefined",gy=typeof window!=F5,r4=typeof document!=F5,O6e=()=>gy&&typeof window.requestAnimationFrame!=F5,tX=(e,t)=>{const n=El.get(e);return[()=>!yn(t)&&e.get(t)||k2,r=>{if(!yn(t)){const a=e.get(t);t in Z1||(Z1[t]=a),n[5](t,Yc(a,r),a||k2)}},n[6],()=>!yn(t)&&t in Z1?Z1[t]:!yn(t)&&e.get(t)||k2]};let a4=!0;const N6e=()=>a4,[i4,o4]=gy&&window.addEventListener?[window.addEventListener.bind(window),window.removeEventListener.bind(window)]:[Tc,Tc],I6e=()=>{const e=r4&&document.visibilityState;return yn(e)||e!=="hidden"},w6e=e=>(r4&&document.addEventListener("visibilitychange",e),i4("focus",e),()=>{r4&&document.removeEventListener("visibilitychange",e),o4("focus",e)}),D6e=e=>{const t=()=>{a4=!0,e()},n=()=>{a4=!1};return i4("online",t),i4("offline",n),()=>{o4("online",t),o4("offline",n)}},L6e={isOnline:N6e,isVisible:I6e},M6e={initFocus:w6e,initReconnect:D6e},y9=!Oe.useId,qh=!gy||"Deno"in window,k6e=e=>O6e()?window.requestAnimationFrame(e):setTimeout(e,1),P2=qh?R.useEffect:R.useLayoutEffect,F2=typeof navigator<"u"&&navigator.connection,T9=!qh&&F2&&(["slow-2g","2g"].includes(F2.effectiveType)||F2.saveData),B5=e=>{if(yl(e))try{e=e()}catch{e=""}const t=e;return e=typeof e=="string"?e:(Array.isArray(e)?e.length:e)?Yh(e):"",[e,t]};let P6e=0;const s4=()=>++P6e,nX=0,rX=1,aX=2,F6e=3;var hm={__proto__:null,ERROR_REVALIDATE_EVENT:F6e,FOCUS_EVENT:nX,MUTATE_EVENT:aX,RECONNECT_EVENT:rX};async function iX(...e){const[t,n,r,a]=e,i=Yc({populateCache:!0,throwOnError:!0},typeof a=="boolean"?{revalidate:a}:a||{});let o=i.populateCache;const s=i.rollbackOnError;let l=i.optimisticData;const c=i.revalidate!==!1,u=h=>typeof s=="function"?s(h):s!==!1,p=i.throwOnError;if(yl(n)){const h=n,g=[],E=t.keys();for(const y of E)!/^\$(inf|sub)\$/.test(y)&&h(t.get(y)._k)&&g.push(y);return Promise.all(g.map(f))}return f(n);async function f(h){const[g]=B5(h);if(!g)return;const[E,y]=tX(t,g),[b,v,C,T]=El.get(t),O=()=>{const G=b[g];return c&&(delete C[g],delete T[g],G&&G[0])?G[0](aX).then(()=>E().data):E().data};if(e.length<3)return O();let A=r,N;const k=s4();v[g]=[k,0];const B=!yn(l),L=E(),H=L.data,te=L._c,K=yn(te)?H:te;if(B&&(l=yl(l)?l(K,H):l,y({data:l,_c:K})),yl(A))try{A=A(K)}catch(G){N=G}if(A&&x6e(A))if(A=await A.catch(G=>{N=G}),k!==v[g][0]){if(N)throw N;return A}else N&&B&&u(N)&&(o=!0,y({data:K,_c:_i}));if(o&&!N)if(yl(o)){const G=o(A,K);y({data:G,error:_i,_c:_i})}else y({data:A,error:_i,_c:_i});if(v[g][1]=s4(),Promise.resolve(O()).then(()=>{y({_c:_i})}),N){if(p)throw N;return}return A}}const C9=(e,t)=>{for(const n in e)e[n][0]&&e[n][0](t)},B6e=(e,t)=>{if(!El.has(e)){const n=Yc(M6e,t),r={},a=iX.bind(_i,e);let i=Tc;const o={},s=(u,p)=>{const f=o[u]||[];return o[u]=f,f.push(p),()=>f.splice(f.indexOf(p),1)},l=(u,p,f)=>{e.set(u,p);const h=o[u];if(h)for(const g of h)g(p,f)},c=()=>{if(!El.has(e)&&(El.set(e,[r,{},{},{},a,l,s]),!qh)){const u=n.initFocus(setTimeout.bind(_i,C9.bind(_i,r,nX))),p=n.initReconnect(setTimeout.bind(_i,C9.bind(_i,r,rX)));i=()=>{u&&u(),p&&p(),El.delete(e)}}};return c(),[e,a,c,i]}return[e,El.get(e)[4]]},U6e=(e,t,n,r,a)=>{const i=n.errorRetryCount,o=a.retryCount,s=~~((Math.random()+.5)*(1<<(o<8?o:8)))*n.errorRetryInterval;!yn(i)&&o>i||setTimeout(r,s,a)},$6e=(e,t)=>Yh(e)==Yh(t),[oX,z6e]=B6e(new Map),H6e=Yc({onLoadingSlow:Tc,onSuccess:Tc,onError:Tc,onErrorRetry:U6e,onDiscarded:Tc,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:T9?1e4:5e3,focusThrottleInterval:5*1e3,dedupingInterval:2*1e3,loadingTimeout:T9?5e3:3e3,compare:$6e,isPaused:()=>!1,cache:oX,mutate:z6e,fallback:{}},L6e),G6e=(e,t)=>{const n=Yc(e,t);if(t){const{use:r,fallback:a}=e,{use:i,fallback:o}=t;r&&i&&(n.use=r.concat(i)),a&&o&&(n.fallback=Yc(a,o))}return n},V6e=R.createContext({}),Y6e="$inf$",sX=gy&&window.__SWR_DEVTOOLS_USE__,q6e=sX?window.__SWR_DEVTOOLS_USE__:[],W6e=()=>{sX&&(window.__SWR_DEVTOOLS_REACT__=Oe)},j6e=e=>yl(e[1])?[e[0],e[1],e[2]||{}]:[e[0],null,(e[1]===null?e[2]:e[1])||{}],K6e=()=>Yc(H6e,R.useContext(V6e)),Q6e=e=>(t,n,r)=>e(t,n&&((...i)=>{const[o]=B5(t),[,,,s]=El.get(oX);if(o.startsWith(Y6e))return n(...i);const l=s[o];return yn(l)?n(...i):(delete s[o],l)}),r),X6e=q6e.concat(Q6e),Z6e=e=>function(...n){const r=K6e(),[a,i,o]=j6e(n),s=G6e(r,o);let l=e;const{use:c}=s,u=(c||[]).concat(X6e);for(let p=u.length;p--;)l=u[p](l);return l(a,i||s.fetcher||null,s)},J6e=(e,t,n)=>{const r=t[e]||(t[e]=[]);return r.push(n),()=>{const a=r.indexOf(n);a>=0&&(r[a]=r[r.length-1],r.pop())}};W6e();const R9=Oe.use||(e=>{if(e.status==="pending")throw e;if(e.status==="fulfilled")return e.value;throw e.status==="rejected"?e.reason:(e.status="pending",e.then(t=>{e.status="fulfilled",e.value=t},t=>{e.status="rejected",e.reason=t}),e)}),B2={dedupe:!0},eLe=(e,t,n)=>{const{cache:r,compare:a,suspense:i,fallbackData:o,revalidateOnMount:s,revalidateIfStale:l,refreshInterval:c,refreshWhenHidden:u,refreshWhenOffline:p,keepPreviousData:f}=n,[h,g,E,y]=El.get(r),[b,v]=B5(e),C=R.useRef(!1),T=R.useRef(!1),O=R.useRef(b),A=R.useRef(t),N=R.useRef(n),k=()=>N.current,B=()=>k().isVisible()&&k().isOnline(),[L,H,te,K]=tX(r,b),G=R.useRef({}).current,ne=yn(o)?n.fallback[b]:o,le=(Le,we)=>{for(const Pe in G){const Me=Pe;if(Me==="data"){if(!a(Le[Me],we[Me])&&(!yn(Le[Me])||!a(Te,we[Me])))return!1}else if(we[Me]!==Le[Me])return!1}return!0},W=R.useMemo(()=>{const Le=(()=>!b||!t?!1:yn(s)?k().isPaused()||i?!1:yn(l)?!0:l:s)(),we=Ge=>{const at=Yc(Ge);return delete at._k,Le?{isValidating:!0,isLoading:!0,...at}:at},Pe=L(),Me=K(),lt=we(Pe),it=Pe===Me?lt:we(Me);let nt=lt;return[()=>{const Ge=we(L());return le(Ge,nt)?(nt.data=Ge.data,nt.isLoading=Ge.isLoading,nt.isValidating=Ge.isValidating,nt.error=Ge.error,nt):(nt=Ge,Ge)},()=>it]},[r,b]),V=R6e.useSyncExternalStore(R.useCallback(Le=>te(b,(we,Pe)=>{le(Pe,we)||Le()}),[r,b]),W[0],W[1]),z=!C.current,M=h[b]&&h[b].length>0,ie=V.data,q=yn(ie)?ne:ie,P=V.error,ce=R.useRef(q),Te=f?yn(ie)?ce.current:ie:q,me=(()=>M&&!yn(P)?!1:z&&!yn(s)?s:k().isPaused()?!1:i?yn(q)?!1:l:yn(q)||l)(),Ae=!!(b&&t&&z&&me),Ce=yn(V.isValidating)?Ae:V.isValidating,Ne=yn(V.isLoading)?Ae:V.isLoading,ze=R.useCallback(async Le=>{const we=A.current;if(!b||!we||T.current||k().isPaused())return!1;let Pe,Me,lt=!0;const it=Le||{},nt=!E[b]||!it.dedupe,Ge=()=>y9?!T.current&&b===O.current&&C.current:b===O.current,at={isValidating:!1,isLoading:!1},ct=()=>{H(at)},se=()=>{const ge=E[b];ge&&ge[1]===Me&&delete E[b]},Fe={isValidating:!0};yn(L().data)&&(Fe.isLoading=!0);try{if(nt&&(H(Fe),n.loadingTimeout&&yn(L().data)&&setTimeout(()=>{lt&&Ge()&&k().onLoadingSlow(b,n)},n.loadingTimeout),E[b]=[we(v),s4()]),[Pe,Me]=E[b],Pe=await Pe,nt&&setTimeout(se,n.dedupingInterval),!E[b]||E[b][1]!==Me)return nt&&Ge()&&k().onDiscarded(b),!1;at.error=_i;const ge=g[b];if(!yn(ge)&&(Me<=ge[0]||Me<=ge[1]||ge[1]===0))return ct(),nt&&Ge()&&k().onDiscarded(b),!1;const oe=L().data;at.data=a(oe,Pe)?oe:Pe,nt&&Ge()&&k().onSuccess(Pe,b,n)}catch(ge){se();const oe=k(),{shouldRetryOnError:ae}=oe;oe.isPaused()||(at.error=ge,nt&&Ge()&&(oe.onError(ge,b,oe),(ae===!0||yl(ae)&&ae(ge))&&B()&&oe.onErrorRetry(ge,b,oe,Z=>{const de=h[b];de&&de[0]&&de[0](hm.ERROR_REVALIDATE_EVENT,Z)},{retryCount:(it.retryCount||0)+1,dedupe:!0})))}return lt=!1,ct(),!0},[b,r]),Ue=R.useCallback((...Le)=>iX(r,O.current,...Le),[]);if(P2(()=>{A.current=t,N.current=n,yn(ie)||(ce.current=ie)}),P2(()=>{if(!b)return;const Le=ze.bind(_i,B2);let we=0;const Me=J6e(b,h,(lt,it={})=>{if(lt==hm.FOCUS_EVENT){const nt=Date.now();k().revalidateOnFocus&&nt>we&&B()&&(we=nt+k().focusThrottleInterval,Le())}else if(lt==hm.RECONNECT_EVENT)k().revalidateOnReconnect&&B()&&Le();else{if(lt==hm.MUTATE_EVENT)return ze();if(lt==hm.ERROR_REVALIDATE_EVENT)return ze(it)}});return T.current=!1,O.current=b,C.current=!0,H({_k:v}),me&&(yn(q)||qh?Le():k6e(Le)),()=>{T.current=!0,Me()}},[b]),P2(()=>{let Le;function we(){const Me=yl(c)?c(L().data):c;Me&&Le!==-1&&(Le=setTimeout(Pe,Me))}function Pe(){!L().error&&(u||k().isVisible())&&(p||k().isOnline())?ze(B2).then(we):we()}return we(),()=>{Le&&(clearTimeout(Le),Le=-1)}},[c,u,p,b]),R.useDebugValue(Te),i&&yn(q)&&b){if(!y9&&qh)throw new Error("Fallback data is required when using suspense in SSR.");A.current=t,N.current=n,T.current=!1;const Le=y[b];if(!yn(Le)){const we=Ue(Le);R9(we)}if(yn(P)){const we=ze(B2);yn(Te)||(we.status="fulfilled",we.value=!0),R9(we)}else throw P}return{mutate:Ue,get data(){return G.data=!0,Te},get error(){return G.error=!0,P},get isValidating(){return G.isValidating=!0,Ce},get isLoading(){return G.isLoading=!0,Ne}}},tLe=Z6e(eLe),nLe=async e=>{const t=await fetch(e);if(!t.ok)throw new Error("Network response was not ok");const n=t.headers.get("content-type");return n&&n.includes("application/json")?t.json():t.text()},lX=e=>tLe(e,nLe),rLe=R.lazy(()=>Wa(()=>import("./react-plotly-cf9b99cc.js").then(e=>e.r),[])),aLe=({element:e})=>{const{data:t,error:n,isLoading:r}=lX(e.url||null);if(r)return _.jsx("div",{children:"Loading..."});if(n)return _.jsx("div",{children:"An error occured"});let a;if(t)a=t;else return null;return _.jsx(R.Suspense,{fallback:_.jsx("div",{children:"Loading..."}),children:_.jsx(rLe,{className:`${e.display}-plotly`,data:a.data,layout:a.layout,frames:a.frames,config:a.config,style:{width:"100%",height:"100%",borderRadius:"1rem",overflow:"hidden"},useResizeHandler:!0})})},cX=e=>_.jsx(ZQ,{prefix:"Failed to load chart.",children:_.jsx(aLe,{...e})});function x9(e){const t=[],n=String(e||"");let r=n.indexOf(","),a=0,i=!1;for(;!i;){r===-1&&(r=n.length,i=!0);const o=n.slice(a,r).trim();(o||!i)&&t.push(o),a=r+1,r=n.indexOf(",",a)}return t}function uX(e,t){const n=t||{};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const iLe=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,oLe=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,sLe={};function A9(e,t){return((t||sLe).jsx?oLe:iLe).test(e)}const lLe=/[ \t\n\f\r]/g;function cLe(e){return typeof e=="object"?e.type==="text"?O9(e.value):!1:O9(e)}function O9(e){return e.replace(lLe,"")===""}let Mg=class{constructor(t,n,r){this.property=t,this.normal=n,r&&(this.space=r)}};Mg.prototype.property={};Mg.prototype.normal={};Mg.prototype.space=null;function dX(e,t){const n={},r={};let a=-1;for(;++a<e.length;)Object.assign(n,e[a].property),Object.assign(r,e[a].normal);return new Mg(n,r,t)}function Wh(e){return e.toLowerCase()}let Vo=class{constructor(t,n){this.property=t,this.attribute=n}};Vo.prototype.space=null;Vo.prototype.boolean=!1;Vo.prototype.booleanish=!1;Vo.prototype.overloadedBoolean=!1;Vo.prototype.number=!1;Vo.prototype.commaSeparated=!1;Vo.prototype.spaceSeparated=!1;Vo.prototype.commaOrSpaceSeparated=!1;Vo.prototype.mustUseProperty=!1;Vo.prototype.defined=!1;let uLe=0;const Qt=vd(),$r=vd(),pX=vd(),ht=vd(),Wn=vd(),Jp=vd(),$i=vd();function vd(){return 2**++uLe}const l4=Object.freeze(Object.defineProperty({__proto__:null,boolean:Qt,booleanish:$r,commaOrSpaceSeparated:$i,commaSeparated:Jp,number:ht,overloadedBoolean:pX,spaceSeparated:Wn},Symbol.toStringTag,{value:"Module"})),U2=Object.keys(l4);class U5 extends Vo{constructor(t,n,r,a){let i=-1;if(super(t,n),N9(this,"space",a),typeof r=="number")for(;++i<U2.length;){const o=U2[i];N9(this,U2[i],(r&l4[o])===l4[o])}}}U5.prototype.defined=!0;function N9(e,t,n){n&&(e[t]=n)}const dLe={}.hasOwnProperty;function Jf(e){const t={},n={};let r;for(r in e.properties)if(dLe.call(e.properties,r)){const a=e.properties[r],i=new U5(r,e.transform(e.attributes||{},r),a,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(i.mustUseProperty=!0),t[r]=i,n[Wh(r)]=r,n[Wh(i.attribute)]=r}return new Mg(t,n,e.space)}const fX=Jf({space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()},properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}}),mX=Jf({space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()},properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function hX(e,t){return t in e?e[t]:t}function gX(e,t){return hX(e,t.toLowerCase())}const _X=Jf({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:gX,properties:{xmlns:null,xmlnsXLink:null}}),EX=Jf({transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()},properties:{ariaActiveDescendant:null,ariaAtomic:$r,ariaAutoComplete:null,ariaBusy:$r,ariaChecked:$r,ariaColCount:ht,ariaColIndex:ht,ariaColSpan:ht,ariaControls:Wn,ariaCurrent:null,ariaDescribedBy:Wn,ariaDetails:null,ariaDisabled:$r,ariaDropEffect:Wn,ariaErrorMessage:null,ariaExpanded:$r,ariaFlowTo:Wn,ariaGrabbed:$r,ariaHasPopup:null,ariaHidden:$r,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Wn,ariaLevel:ht,ariaLive:null,ariaModal:$r,ariaMultiLine:$r,ariaMultiSelectable:$r,ariaOrientation:null,ariaOwns:Wn,ariaPlaceholder:null,ariaPosInSet:ht,ariaPressed:$r,ariaReadOnly:$r,ariaRelevant:null,ariaRequired:$r,ariaRoleDescription:Wn,ariaRowCount:ht,ariaRowIndex:ht,ariaRowSpan:ht,ariaSelected:$r,ariaSetSize:ht,ariaSort:null,ariaValueMax:ht,ariaValueMin:ht,ariaValueNow:ht,ariaValueText:null,role:null}}),pLe=Jf({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:gX,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Jp,acceptCharset:Wn,accessKey:Wn,action:null,allow:null,allowFullScreen:Qt,allowPaymentRequest:Qt,allowUserMedia:Qt,alt:null,as:null,async:Qt,autoCapitalize:null,autoComplete:Wn,autoFocus:Qt,autoPlay:Qt,blocking:Wn,capture:null,charSet:null,checked:Qt,cite:null,className:Wn,cols:ht,colSpan:null,content:null,contentEditable:$r,controls:Qt,controlsList:Wn,coords:ht|Jp,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Qt,defer:Qt,dir:null,dirName:null,disabled:Qt,download:pX,draggable:$r,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Qt,formTarget:null,headers:Wn,height:ht,hidden:Qt,high:ht,href:null,hrefLang:null,htmlFor:Wn,httpEquiv:Wn,id:null,imageSizes:null,imageSrcSet:null,inert:Qt,inputMode:null,integrity:null,is:null,isMap:Qt,itemId:null,itemProp:Wn,itemRef:Wn,itemScope:Qt,itemType:Wn,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Qt,low:ht,manifest:null,max:null,maxLength:ht,media:null,method:null,min:null,minLength:ht,multiple:Qt,muted:Qt,name:null,nonce:null,noModule:Qt,noValidate:Qt,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:Qt,optimum:ht,pattern:null,ping:Wn,placeholder:null,playsInline:Qt,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Qt,referrerPolicy:null,rel:Wn,required:Qt,reversed:Qt,rows:ht,rowSpan:ht,sandbox:Wn,scope:null,scoped:Qt,seamless:Qt,selected:Qt,shadowRootClonable:Qt,shadowRootDelegatesFocus:Qt,shadowRootMode:null,shape:null,size:ht,sizes:null,slot:null,span:ht,spellCheck:$r,src:null,srcDoc:null,srcLang:null,srcSet:null,start:ht,step:null,style:null,tabIndex:ht,target:null,title:null,translate:null,type:null,typeMustMatch:Qt,useMap:null,value:$r,width:ht,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Wn,axis:null,background:null,bgColor:null,border:ht,borderColor:null,bottomMargin:ht,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Qt,declare:Qt,event:null,face:null,frame:null,frameBorder:null,hSpace:ht,leftMargin:ht,link:null,longDesc:null,lowSrc:null,marginHeight:ht,marginWidth:ht,noResize:Qt,noHref:Qt,noShade:Qt,noWrap:Qt,object:null,profile:null,prompt:null,rev:null,rightMargin:ht,rules:null,scheme:null,scrolling:$r,standby:null,summary:null,text:null,topMargin:ht,valueType:null,version:null,vAlign:null,vLink:null,vSpace:ht,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:Qt,disableRemotePlayback:Qt,prefix:null,property:null,results:ht,security:null,unselectable:null}}),fLe=Jf({space:"svg",attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},transform:hX,properties:{about:$i,accentHeight:ht,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:ht,amplitude:ht,arabicForm:null,ascent:ht,attributeName:null,attributeType:null,azimuth:ht,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:ht,by:null,calcMode:null,capHeight:ht,className:Wn,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:ht,diffuseConstant:ht,direction:null,display:null,dur:null,divisor:ht,dominantBaseline:null,download:Qt,dx:null,dy:null,edgeMode:null,editable:null,elevation:ht,enableBackground:null,end:null,event:null,exponent:ht,externalResourcesRequired:null,fill:null,fillOpacity:ht,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:Jp,g2:Jp,glyphName:Jp,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:ht,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:ht,horizOriginX:ht,horizOriginY:ht,id:null,ideographic:ht,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:ht,k:ht,k1:ht,k2:ht,k3:ht,k4:ht,kernelMatrix:$i,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:ht,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:ht,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:ht,overlineThickness:ht,paintOrder:null,panose1:null,path:null,pathLength:ht,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Wn,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:ht,pointsAtY:ht,pointsAtZ:ht,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:$i,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:$i,rev:$i,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:$i,requiredFeatures:$i,requiredFonts:$i,requiredFormats:$i,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:ht,specularExponent:ht,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:ht,strikethroughThickness:ht,string:null,stroke:null,strokeDashArray:$i,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:ht,strokeOpacity:ht,strokeWidth:null,style:null,surfaceScale:ht,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:$i,tabIndex:ht,tableValues:null,target:null,targetX:ht,targetY:ht,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:$i,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:ht,underlineThickness:ht,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:ht,values:null,vAlphabetic:ht,vMathematical:ht,vectorEffect:null,vHanging:ht,vIdeographic:ht,version:null,vertAdvY:ht,vertOriginX:ht,vertOriginY:ht,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:ht,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),mLe=/^data[-\w.:]+$/i,I9=/-[a-z]/g,hLe=/[A-Z]/g;function _y(e,t){const n=Wh(t);let r=t,a=Vo;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&mLe.test(t)){if(t.charAt(4)==="-"){const i=t.slice(5).replace(I9,_Le);r="data"+i.charAt(0).toUpperCase()+i.slice(1)}else{const i=t.slice(4);if(!I9.test(i)){let o=i.replace(hLe,gLe);o.charAt(0)!=="-"&&(o="-"+o),t="data"+o}}a=U5}return new a(r,t)}function gLe(e){return"-"+e.toLowerCase()}function _Le(e){return e.charAt(1).toUpperCase()}const ELe={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"},kg=dX([mX,fX,_X,EX,pLe],"html"),ou=dX([mX,fX,_X,EX,fLe],"svg");function w9(e){const t=String(e||"").trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function bX(e){return e.join(" ").trim()}var SX={},D9=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,bLe=/\n/g,SLe=/^\s*/,vLe=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,yLe=/^:\s*/,TLe=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,CLe=/^[;\s]*/,RLe=/^\s+|\s+$/g,xLe=`
339
339
  `,L9="/",M9="*",Fu="",ALe="comment",OLe="declaration",NLe=function(e,t){if(typeof e!="string")throw new TypeError("First argument must be a string");if(!e)return[];t=t||{};var n=1,r=1;function a(g){var E=g.match(bLe);E&&(n+=E.length);var y=g.lastIndexOf(xLe);r=~y?g.length-y:r+g.length}function i(){var g={line:n,column:r};return function(E){return E.position=new o(g),c(),E}}function o(g){this.start=g,this.end={line:n,column:r},this.source=t.source}o.prototype.content=e;function s(g){var E=new Error(t.source+":"+n+":"+r+": "+g);if(E.reason=g,E.filename=t.source,E.line=n,E.column=r,E.source=e,!t.silent)throw E}function l(g){var E=g.exec(e);if(E){var y=E[0];return a(y),e=e.slice(y.length),E}}function c(){l(SLe)}function u(g){var E;for(g=g||[];E=p();)E!==!1&&g.push(E);return g}function p(){var g=i();if(!(L9!=e.charAt(0)||M9!=e.charAt(1))){for(var E=2;Fu!=e.charAt(E)&&(M9!=e.charAt(E)||L9!=e.charAt(E+1));)++E;if(E+=2,Fu===e.charAt(E-1))return s("End of comment missing");var y=e.slice(2,E-2);return r+=2,a(y),e=e.slice(E),r+=2,g({type:ALe,comment:y})}}function f(){var g=i(),E=l(vLe);if(E){if(p(),!l(yLe))return s("property missing ':'");var y=l(TLe),b=g({type:OLe,property:k9(E[0].replace(D9,Fu)),value:y?k9(y[0].replace(D9,Fu)):Fu});return l(CLe),b}}function h(){var g=[];u(g);for(var E;E=f();)E!==!1&&(g.push(E),u(g));return g}return c(),h()};function k9(e){return e?e.replace(RLe,Fu):Fu}var ILe=aa&&aa.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(SX,"__esModule",{value:!0});var wLe=ILe(NLe);function DLe(e,t){var n=null;if(!e||typeof e!="string")return n;var r=(0,wLe.default)(e),a=typeof t=="function";return r.forEach(function(i){if(i.type==="declaration"){var o=i.property,s=i.value;a?t(o,s,i):s&&(n=n||{},n[o]=s)}}),n}var P9=SX.default=DLe;const LLe=P9.default||P9,Ey=vX("end"),qs=vX("start");function vX(e){return t;function t(n){const r=n&&n.position&&n.position[e]||{};if(typeof r.line=="number"&&r.line>0&&typeof r.column=="number"&&r.column>0)return{line:r.line,column:r.column,offset:typeof r.offset=="number"&&r.offset>-1?r.offset:void 0}}}function MLe(e){const t=qs(e),n=Ey(e);if(t&&n)return{start:t,end:n}}function ah(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?F9(e.position):"start"in e||"end"in e?F9(e):"line"in e||"column"in e?c4(e):""}function c4(e){return B9(e&&e.line)+":"+B9(e&&e.column)}function F9(e){return c4(e&&e.start)+"-"+c4(e&&e.end)}function B9(e){return e&&typeof e=="number"?e:1}class Ba extends Error{constructor(t,n,r){super(),typeof n=="string"&&(r=n,n=void 0);let a="",i={},o=!1;if(n&&("line"in n&&"column"in n?i={place:n}:"start"in n&&"end"in n?i={place:n}:"type"in n?i={ancestors:[n],place:n.position}:i={...n}),typeof t=="string"?a=t:!i.cause&&t&&(o=!0,a=t.message,i.cause=t),!i.ruleId&&!i.source&&typeof r=="string"){const l=r.indexOf(":");l===-1?i.ruleId=r:(i.source=r.slice(0,l),i.ruleId=r.slice(l+1))}if(!i.place&&i.ancestors&&i.ancestors){const l=i.ancestors[i.ancestors.length-1];l&&(i.place=l.position)}const s=i.place&&"start"in i.place?i.place.start:i.place;this.ancestors=i.ancestors||void 0,this.cause=i.cause||void 0,this.column=s?s.column:void 0,this.fatal=void 0,this.file,this.message=a,this.line=s?s.line:void 0,this.name=ah(i.place)||"1:1",this.place=i.place||void 0,this.reason=this.message,this.ruleId=i.ruleId||void 0,this.source=i.source||void 0,this.stack=o&&i.cause&&typeof i.cause.stack=="string"?i.cause.stack:"",this.actual,this.expected,this.note,this.url}}Ba.prototype.file="";Ba.prototype.name="";Ba.prototype.reason="";Ba.prototype.message="";Ba.prototype.stack="";Ba.prototype.column=void 0;Ba.prototype.line=void 0;Ba.prototype.ancestors=void 0;Ba.prototype.cause=void 0;Ba.prototype.fatal=void 0;Ba.prototype.place=void 0;Ba.prototype.ruleId=void 0;Ba.prototype.source=void 0;const $5={}.hasOwnProperty,kLe=new Map,PLe=/[A-Z]/g,FLe=/-([a-z])/g,BLe=new Set(["table","tbody","thead","tfoot","tr"]),ULe=new Set(["td","th"]),yX="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function $Le(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const n=t.filePath||void 0;let r;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=jLe(n,t.jsxDEV)}else{if(typeof t.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof t.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");r=WLe(n,t.jsx,t.jsxs)}const a={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:r,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?ou:kg,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},i=TX(a,e,void 0);return i&&typeof i!="string"?i:a.create(e,a.Fragment,{children:i||void 0},void 0)}function TX(e,t,n){if(t.type==="element")return zLe(e,t,n);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return HLe(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return VLe(e,t,n);if(t.type==="mdxjsEsm")return GLe(e,t);if(t.type==="root")return YLe(e,t,n);if(t.type==="text")return qLe(e,t)}function zLe(e,t,n){const r=e.schema;let a=r;t.tagName.toLowerCase()==="svg"&&r.space==="html"&&(a=ou,e.schema=a),e.ancestors.push(t);const i=RX(e,t.tagName,!1),o=KLe(e,t);let s=H5(e,t);return BLe.has(t.tagName)&&(s=s.filter(function(l){return typeof l=="string"?!cLe(l):!0})),CX(e,o,i,t),z5(o,s),e.ancestors.pop(),e.schema=r,e.create(t,i,o,n)}function HLe(e,t){if(t.data&&t.data.estree&&e.evaluater){const r=t.data.estree.body[0];return r.type,e.evaluater.evaluateExpression(r.expression)}jh(e,t.position)}function GLe(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);jh(e,t.position)}function VLe(e,t,n){const r=e.schema;let a=r;t.name==="svg"&&r.space==="html"&&(a=ou,e.schema=a),e.ancestors.push(t);const i=t.name===null?e.Fragment:RX(e,t.name,!0),o=QLe(e,t),s=H5(e,t);return CX(e,o,i,t),z5(o,s),e.ancestors.pop(),e.schema=r,e.create(t,i,o,n)}function YLe(e,t,n){const r={};return z5(r,H5(e,t)),e.create(t,e.Fragment,r,n)}function qLe(e,t){return t.value}function CX(e,t,n,r){typeof n!="string"&&n!==e.Fragment&&e.passNode&&(t.node=r)}function z5(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function WLe(e,t,n){return r;function r(a,i,o,s){const c=Array.isArray(o.children)?n:t;return s?c(i,o,s):c(i,o)}}function jLe(e,t){return n;function n(r,a,i,o){const s=Array.isArray(i.children),l=qs(r);return t(a,i,o,s,{columnNumber:l?l.column-1:void 0,fileName:e,lineNumber:l?l.line:void 0},void 0)}}function KLe(e,t){const n={};let r,a;for(a in t.properties)if(a!=="children"&&$5.call(t.properties,a)){const i=XLe(e,a,t.properties[a]);if(i){const[o,s]=i;e.tableCellAlignToStyle&&o==="align"&&typeof s=="string"&&ULe.has(t.tagName)?r=s:n[o]=s}}if(r){const i=n.style||(n.style={});i[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=r}return n}function QLe(e,t){const n={};for(const r of t.attributes)if(r.type==="mdxJsxExpressionAttribute")if(r.data&&r.data.estree&&e.evaluater){const i=r.data.estree.body[0];i.type;const o=i.expression;o.type;const s=o.properties[0];s.type,Object.assign(n,e.evaluater.evaluateExpression(s.argument))}else jh(e,t.position);else{const a=r.name;let i;if(r.value&&typeof r.value=="object")if(r.value.data&&r.value.data.estree&&e.evaluater){const s=r.value.data.estree.body[0];s.type,i=e.evaluater.evaluateExpression(s.expression)}else jh(e,t.position);else i=r.value===null?!0:r.value;n[a]=i}return n}function H5(e,t){const n=[];let r=-1;const a=e.passKeys?new Map:kLe;for(;++r<t.children.length;){const i=t.children[r];let o;if(e.passKeys){const l=i.type==="element"?i.tagName:i.type==="mdxJsxFlowElement"||i.type==="mdxJsxTextElement"?i.name:void 0;if(l){const c=a.get(l)||0;o=l+"-"+c,a.set(l,c+1)}}const s=TX(e,i,o);s!==void 0&&n.push(s)}return n}function XLe(e,t,n){const r=_y(e.schema,t);if(!(n==null||typeof n=="number"&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?uX(n):bX(n)),r.property==="style"){let a=typeof n=="object"?n:ZLe(e,String(n));return e.stylePropertyNameCase==="css"&&(a=JLe(a)),["style",a]}return[e.elementAttributeNameCase==="react"&&r.space?ELe[r.property]||r.property:r.attribute,n]}}function ZLe(e,t){const n={};try{LLe(t,r)}catch(a){if(!e.ignoreInvalidStyle){const i=a,o=new Ba("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:i,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw o.file=e.filePath||void 0,o.url=yX+"#cannot-parse-style-attribute",o}}return n;function r(a,i){let o=a;o.slice(0,2)!=="--"&&(o.slice(0,4)==="-ms-"&&(o="ms-"+o.slice(4)),o=o.replace(FLe,tMe)),n[o]=i}}function RX(e,t,n){let r;if(!n)r={type:"Literal",value:t};else if(t.includes(".")){const a=t.split(".");let i=-1,o;for(;++i<a.length;){const s=A9(a[i])?{type:"Identifier",name:a[i]}:{type:"Literal",value:a[i]};o=o?{type:"MemberExpression",object:o,property:s,computed:!!(i&&s.type==="Literal"),optional:!1}:s}r=o}else r=A9(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(r.type==="Literal"){const a=r.value;return $5.call(e.components,a)?e.components[a]:a}if(e.evaluater)return e.evaluater.evaluateExpression(r);jh(e)}function jh(e,t){const n=new Ba("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw n.file=e.filePath||void 0,n.url=yX+"#cannot-handle-mdx-estrees-without-createevaluater",n}function JLe(e){const t={};let n;for(n in e)$5.call(e,n)&&(t[eMe(n)]=e[n]);return t}function eMe(e){let t=e.replace(PLe,nMe);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function tMe(e,t){return t.toUpperCase()}function nMe(e){return"-"+e.toLowerCase()}const $2={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"]},rMe={};function G5(e,t){const n=t||rMe,r=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,a=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return xX(e,r,a)}function xX(e,t,n){if(aMe(e)){if("value"in e)return e.type==="html"&&!n?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return U9(e.children,t,n)}return Array.isArray(e)?U9(e,t,n):""}function U9(e,t,n){const r=[];let a=-1;for(;++a<e.length;)r[a]=xX(e[a],t,n);return r.join("")}function aMe(e){return!!(e&&typeof e=="object")}const $9=document.createElement("i");function V5(e){const t="&"+e+";";$9.innerHTML=t;const n=$9.textContent;return n.charCodeAt(n.length-1)===59&&e!=="semi"||n===t?!1:n}function wo(e,t,n,r){const a=e.length;let i=0,o;if(t<0?t=-t>a?0:a+t:t=t>a?a:t,n=n>0?n:0,r.length<1e4)o=Array.from(r),o.unshift(t,n),e.splice(...o);else for(n&&e.splice(t,n);i<r.length;)o=r.slice(i,i+1e4),o.unshift(t,0),e.splice(...o),i+=1e4,t+=1e4}function To(e,t){return e.length>0?(wo(e,e.length,0,t),e):t}const z9={}.hasOwnProperty;function AX(e){const t={};let n=-1;for(;++n<e.length;)iMe(t,e[n]);return t}function iMe(e,t){let n;for(n in t){const a=(z9.call(e,n)?e[n]:void 0)||(e[n]={}),i=t[n];let o;if(i)for(o in i){z9.call(a,o)||(a[o]=[]);const s=i[o];oMe(a[o],Array.isArray(s)?s:s?[s]:[])}}}function oMe(e,t){let n=-1;const r=[];for(;++n<t.length;)(t[n].add==="after"?e:r).push(t[n]);wo(e,0,0,r)}function OX(e,t){const n=Number.parseInt(e,t);return n<9||n===11||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)===65535||(n&65535)===65534||n>1114111?"�":String.fromCodePoint(n)}function fs(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Za=su(/[A-Za-z]/),Pa=su(/[\dA-Za-z]/),sMe=su(/[#-'*+\--9=?A-Z^-~]/);function Wb(e){return e!==null&&(e<32||e===127)}const u4=su(/\d/),lMe=su(/[\dA-Fa-f]/),cMe=su(/[!-/:-@[-`{-~]/);function Lt(e){return e!==null&&e<-2}function Hn(e){return e!==null&&(e<0||e===32)}function dn(e){return e===-2||e===-1||e===32}const by=su(/\p{P}|\p{S}/u),md=su(/\s/);function su(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function e0(e){const t=[];let n=-1,r=0,a=0;for(;++n<e.length;){const i=e.charCodeAt(n);let o="";if(i===37&&Pa(e.charCodeAt(n+1))&&Pa(e.charCodeAt(n+2)))a=2;else if(i<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(i))||(o=String.fromCharCode(i));else if(i>55295&&i<57344){const s=e.charCodeAt(n+1);i<56320&&s>56319&&s<57344?(o=String.fromCharCode(i,s),a=1):o="�"}else o=String.fromCharCode(i);o&&(t.push(e.slice(r,n),encodeURIComponent(o)),r=n+a+1,o=""),a&&(n+=a,a=0)}return t.join("")+e.slice(r)}function cn(e,t,n,r){const a=r?r-1:Number.POSITIVE_INFINITY;let i=0;return o;function o(l){return dn(l)?(e.enter(n),s(l)):t(l)}function s(l){return dn(l)&&i++<a?(e.consume(l),s):(e.exit(n),t(l))}}const uMe={tokenize:dMe};function dMe(e){const t=e.attempt(this.parser.constructs.contentInitial,r,a);let n;return t;function r(s){if(s===null){e.consume(s);return}return e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),cn(e,t,"linePrefix")}function a(s){return e.enter("paragraph"),i(s)}function i(s){const l=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=l),n=l,o(s)}function o(s){if(s===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(s);return}return Lt(s)?(e.consume(s),e.exit("chunkText"),i):(e.consume(s),o)}}const pMe={tokenize:fMe},H9={tokenize:mMe};function fMe(e){const t=this,n=[];let r=0,a,i,o;return s;function s(C){if(r<n.length){const T=n[r];return t.containerState=T[1],e.attempt(T[0].continuation,l,c)(C)}return c(C)}function l(C){if(r++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,a&&v();const T=t.events.length;let O=T,A;for(;O--;)if(t.events[O][0]==="exit"&&t.events[O][1].type==="chunkFlow"){A=t.events[O][1].end;break}b(r);let N=T;for(;N<t.events.length;)t.events[N][1].end=Object.assign({},A),N++;return wo(t.events,O+1,0,t.events.slice(T)),t.events.length=N,c(C)}return s(C)}function c(C){if(r===n.length){if(!a)return f(C);if(a.currentConstruct&&a.currentConstruct.concrete)return g(C);t.interrupt=!!(a.currentConstruct&&!a._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(H9,u,p)(C)}function u(C){return a&&v(),b(r),f(C)}function p(C){return t.parser.lazy[t.now().line]=r!==n.length,o=t.now().offset,g(C)}function f(C){return t.containerState={},e.attempt(H9,h,g)(C)}function h(C){return r++,n.push([t.currentConstruct,t.containerState]),f(C)}function g(C){if(C===null){a&&v(),b(0),e.consume(C);return}return a=a||t.parser.flow(t.now()),e.enter("chunkFlow",{contentType:"flow",previous:i,_tokenizer:a}),E(C)}function E(C){if(C===null){y(e.exit("chunkFlow"),!0),b(0),e.consume(C);return}return Lt(C)?(e.consume(C),y(e.exit("chunkFlow")),r=0,t.interrupt=void 0,s):(e.consume(C),E)}function y(C,T){const O=t.sliceStream(C);if(T&&O.push(null),C.previous=i,i&&(i.next=C),i=C,a.defineSkip(C.start),a.write(O),t.parser.lazy[C.start.line]){let A=a.events.length;for(;A--;)if(a.events[A][1].start.offset<o&&(!a.events[A][1].end||a.events[A][1].end.offset>o))return;const N=t.events.length;let k=N,B,L;for(;k--;)if(t.events[k][0]==="exit"&&t.events[k][1].type==="chunkFlow"){if(B){L=t.events[k][1].end;break}B=!0}for(b(r),A=N;A<t.events.length;)t.events[A][1].end=Object.assign({},L),A++;wo(t.events,k+1,0,t.events.slice(N)),t.events.length=A}}function b(C){let T=n.length;for(;T-- >C;){const O=n[T];t.containerState=O[1],O[0].exit.call(t,e)}n.length=C}function v(){a.write([null]),i=void 0,a=void 0,t.containerState._closeFlow=void 0}}function mMe(e,t,n){return cn(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function jb(e){if(e===null||Hn(e)||md(e))return 1;if(by(e))return 2}function Sy(e,t,n){const r=[];let a=-1;for(;++a<e.length;){const i=e[a].resolveAll;i&&!r.includes(i)&&(t=i(t,n),r.push(i))}return t}const d4={name:"attention",tokenize:gMe,resolveAll:hMe};function hMe(e,t){let n=-1,r,a,i,o,s,l,c,u;for(;++n<e.length;)if(e[n][0]==="enter"&&e[n][1].type==="attentionSequence"&&e[n][1]._close){for(r=n;r--;)if(e[r][0]==="exit"&&e[r][1].type==="attentionSequence"&&e[r][1]._open&&t.sliceSerialize(e[r][1]).charCodeAt(0)===t.sliceSerialize(e[n][1]).charCodeAt(0)){if((e[r][1]._close||e[n][1]._open)&&(e[n][1].end.offset-e[n][1].start.offset)%3&&!((e[r][1].end.offset-e[r][1].start.offset+e[n][1].end.offset-e[n][1].start.offset)%3))continue;l=e[r][1].end.offset-e[r][1].start.offset>1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;const p=Object.assign({},e[r][1].end),f=Object.assign({},e[n][1].start);G9(p,-l),G9(f,l),o={type:l>1?"strongSequence":"emphasisSequence",start:p,end:Object.assign({},e[r][1].end)},s={type:l>1?"strongSequence":"emphasisSequence",start:Object.assign({},e[n][1].start),end:f},i={type:l>1?"strongText":"emphasisText",start:Object.assign({},e[r][1].end),end:Object.assign({},e[n][1].start)},a={type:l>1?"strong":"emphasis",start:Object.assign({},o.start),end:Object.assign({},s.end)},e[r][1].end=Object.assign({},o.start),e[n][1].start=Object.assign({},s.end),c=[],e[r][1].end.offset-e[r][1].start.offset&&(c=To(c,[["enter",e[r][1],t],["exit",e[r][1],t]])),c=To(c,[["enter",a,t],["enter",o,t],["exit",o,t],["enter",i,t]]),c=To(c,Sy(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),c=To(c,[["exit",i,t],["enter",s,t],["exit",s,t],["exit",a,t]]),e[n][1].end.offset-e[n][1].start.offset?(u=2,c=To(c,[["enter",e[n][1],t],["exit",e[n][1],t]])):u=0,wo(e,r-1,n-r+3,c),n=r+c.length-u-2;break}}for(n=-1;++n<e.length;)e[n][1].type==="attentionSequence"&&(e[n][1].type="data");return e}function gMe(e,t){const n=this.parser.constructs.attentionMarkers.null,r=this.previous,a=jb(r);let i;return o;function o(l){return i=l,e.enter("attentionSequence"),s(l)}function s(l){if(l===i)return e.consume(l),s;const c=e.exit("attentionSequence"),u=jb(l),p=!u||u===2&&a||n.includes(l),f=!a||a===2&&u||n.includes(r);return c._open=!!(i===42?p:p&&(a||!f)),c._close=!!(i===42?f:f&&(u||!p)),t(l)}}function G9(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const _Me={name:"autolink",tokenize:EMe};function EMe(e,t,n){let r=0;return a;function a(h){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(h),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),i}function i(h){return Za(h)?(e.consume(h),o):h===64?n(h):c(h)}function o(h){return h===43||h===45||h===46||Pa(h)?(r=1,s(h)):c(h)}function s(h){return h===58?(e.consume(h),r=0,l):(h===43||h===45||h===46||Pa(h))&&r++<32?(e.consume(h),s):(r=0,c(h))}function l(h){return h===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(h),e.exit("autolinkMarker"),e.exit("autolink"),t):h===null||h===32||h===60||Wb(h)?n(h):(e.consume(h),l)}function c(h){return h===64?(e.consume(h),u):sMe(h)?(e.consume(h),c):n(h)}function u(h){return Pa(h)?p(h):n(h)}function p(h){return h===46?(e.consume(h),r=0,u):h===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(h),e.exit("autolinkMarker"),e.exit("autolink"),t):f(h)}function f(h){if((h===45||Pa(h))&&r++<63){const g=h===45?f:p;return e.consume(h),g}return n(h)}}const Pg={tokenize:bMe,partial:!0};function bMe(e,t,n){return r;function r(i){return dn(i)?cn(e,a,"linePrefix")(i):a(i)}function a(i){return i===null||Lt(i)?t(i):n(i)}}const NX={name:"blockQuote",tokenize:SMe,continuation:{tokenize:vMe},exit:yMe};function SMe(e,t,n){const r=this;return a;function a(o){if(o===62){const s=r.containerState;return s.open||(e.enter("blockQuote",{_container:!0}),s.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(o),e.exit("blockQuoteMarker"),i}return n(o)}function i(o){return dn(o)?(e.enter("blockQuotePrefixWhitespace"),e.consume(o),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(o))}}function vMe(e,t,n){const r=this;return a;function a(o){return dn(o)?cn(e,i,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(o):i(o)}function i(o){return e.attempt(NX,t,n)(o)}}function yMe(e){e.exit("blockQuote")}const IX={name:"characterEscape",tokenize:TMe};function TMe(e,t,n){return r;function r(i){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(i),e.exit("escapeMarker"),a}function a(i){return cMe(i)?(e.enter("characterEscapeValue"),e.consume(i),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(i)}}const wX={name:"characterReference",tokenize:CMe};function CMe(e,t,n){const r=this;let a=0,i,o;return s;function s(p){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(p),e.exit("characterReferenceMarker"),l}function l(p){return p===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(p),e.exit("characterReferenceMarkerNumeric"),c):(e.enter("characterReferenceValue"),i=31,o=Pa,u(p))}function c(p){return p===88||p===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(p),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),i=6,o=lMe,u):(e.enter("characterReferenceValue"),i=7,o=u4,u(p))}function u(p){if(p===59&&a){const f=e.exit("characterReferenceValue");return o===Pa&&!V5(r.sliceSerialize(f))?n(p):(e.enter("characterReferenceMarker"),e.consume(p),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return o(p)&&a++<i?(e.consume(p),u):n(p)}}const V9={tokenize:xMe,partial:!0},Y9={name:"codeFenced",tokenize:RMe,concrete:!0};function RMe(e,t,n){const r=this,a={tokenize:O,partial:!0};let i=0,o=0,s;return l;function l(A){return c(A)}function c(A){const N=r.events[r.events.length-1];return i=N&&N[1].type==="linePrefix"?N[2].sliceSerialize(N[1],!0).length:0,s=A,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),u(A)}function u(A){return A===s?(o++,e.consume(A),u):o<3?n(A):(e.exit("codeFencedFenceSequence"),dn(A)?cn(e,p,"whitespace")(A):p(A))}function p(A){return A===null||Lt(A)?(e.exit("codeFencedFence"),r.interrupt?t(A):e.check(V9,E,T)(A)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),f(A))}function f(A){return A===null||Lt(A)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),p(A)):dn(A)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),cn(e,h,"whitespace")(A)):A===96&&A===s?n(A):(e.consume(A),f)}function h(A){return A===null||Lt(A)?p(A):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),g(A))}function g(A){return A===null||Lt(A)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),p(A)):A===96&&A===s?n(A):(e.consume(A),g)}function E(A){return e.attempt(a,T,y)(A)}function y(A){return e.enter("lineEnding"),e.consume(A),e.exit("lineEnding"),b}function b(A){return i>0&&dn(A)?cn(e,v,"linePrefix",i+1)(A):v(A)}function v(A){return A===null||Lt(A)?e.check(V9,E,T)(A):(e.enter("codeFlowValue"),C(A))}function C(A){return A===null||Lt(A)?(e.exit("codeFlowValue"),v(A)):(e.consume(A),C)}function T(A){return e.exit("codeFenced"),t(A)}function O(A,N,k){let B=0;return L;function L(ne){return A.enter("lineEnding"),A.consume(ne),A.exit("lineEnding"),H}function H(ne){return A.enter("codeFencedFence"),dn(ne)?cn(A,te,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(ne):te(ne)}function te(ne){return ne===s?(A.enter("codeFencedFenceSequence"),K(ne)):k(ne)}function K(ne){return ne===s?(B++,A.consume(ne),K):B>=o?(A.exit("codeFencedFenceSequence"),dn(ne)?cn(A,G,"whitespace")(ne):G(ne)):k(ne)}function G(ne){return ne===null||Lt(ne)?(A.exit("codeFencedFence"),N(ne)):k(ne)}}}function xMe(e,t,n){const r=this;return a;function a(o){return o===null?n(o):(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),i)}function i(o){return r.parser.lazy[r.now().line]?n(o):t(o)}}const z2={name:"codeIndented",tokenize:OMe},AMe={tokenize:NMe,partial:!0};function OMe(e,t,n){const r=this;return a;function a(c){return e.enter("codeIndented"),cn(e,i,"linePrefix",4+1)(c)}function i(c){const u=r.events[r.events.length-1];return u&&u[1].type==="linePrefix"&&u[2].sliceSerialize(u[1],!0).length>=4?o(c):n(c)}function o(c){return c===null?l(c):Lt(c)?e.attempt(AMe,o,l)(c):(e.enter("codeFlowValue"),s(c))}function s(c){return c===null||Lt(c)?(e.exit("codeFlowValue"),o(c)):(e.consume(c),s)}function l(c){return e.exit("codeIndented"),t(c)}}function NMe(e,t,n){const r=this;return a;function a(o){return r.parser.lazy[r.now().line]?n(o):Lt(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),a):cn(e,i,"linePrefix",4+1)(o)}function i(o){const s=r.events[r.events.length-1];return s&&s[1].type==="linePrefix"&&s[2].sliceSerialize(s[1],!0).length>=4?t(o):Lt(o)?a(o):n(o)}}const IMe={name:"codeText",tokenize:LMe,resolve:wMe,previous:DMe};function wMe(e){let t=e.length-4,n=3,r,a;if((e[n][1].type==="lineEnding"||e[n][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(r=n;++r<t;)if(e[r][1].type==="codeTextData"){e[n][1].type="codeTextPadding",e[t][1].type="codeTextPadding",n+=2,t-=2;break}}for(r=n-1,t++;++r<=t;)a===void 0?r!==t&&e[r][1].type!=="lineEnding"&&(a=r):(r===t||e[r][1].type==="lineEnding")&&(e[a][1].type="codeTextData",r!==a+2&&(e[a][1].end=e[r-1][1].end,e.splice(a+2,r-a-2),t-=r-a-2,r=a+2),a=void 0);return e}function DMe(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function LMe(e,t,n){let r=0,a,i;return o;function o(p){return e.enter("codeText"),e.enter("codeTextSequence"),s(p)}function s(p){return p===96?(e.consume(p),r++,s):(e.exit("codeTextSequence"),l(p))}function l(p){return p===null?n(p):p===32?(e.enter("space"),e.consume(p),e.exit("space"),l):p===96?(i=e.enter("codeTextSequence"),a=0,u(p)):Lt(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),l):(e.enter("codeTextData"),c(p))}function c(p){return p===null||p===32||p===96||Lt(p)?(e.exit("codeTextData"),l(p)):(e.consume(p),c)}function u(p){return p===96?(e.consume(p),a++,u):a===r?(e.exit("codeTextSequence"),e.exit("codeText"),t(p)):(i.type="codeTextData",c(p))}}class MMe{constructor(t){this.left=t?[...t]:[],this.right=[]}get(t){if(t<0||t>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+t+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return t<this.left.length?this.left[t]:this.right[this.right.length-t+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(t,n){const r=n??Number.POSITIVE_INFINITY;return r<this.left.length?this.left.slice(t,r):t>this.left.length?this.right.slice(this.right.length-r+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-r+this.left.length).reverse())}splice(t,n,r){const a=n||0;this.setCursor(Math.trunc(t));const i=this.right.splice(this.right.length-a,Number.POSITIVE_INFINITY);return r&&gm(this.left,r),i.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(t){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(t)}pushMany(t){this.setCursor(Number.POSITIVE_INFINITY),gm(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),gm(this.right,t.reverse())}setCursor(t){if(!(t===this.left.length||t>this.left.length&&this.right.length===0||t<0&&this.left.length===0))if(t<this.left.length){const n=this.left.splice(t,Number.POSITIVE_INFINITY);gm(this.right,n.reverse())}else{const n=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);gm(this.left,n.reverse())}}}function gm(e,t){let n=0;if(t.length<1e4)e.push(...t);else for(;n<t.length;)e.push(...t.slice(n,n+1e4)),n+=1e4}function DX(e){const t={};let n=-1,r,a,i,o,s,l,c;const u=new MMe(e);for(;++n<u.length;){for(;n in t;)n=t[n];if(r=u.get(n),n&&r[1].type==="chunkFlow"&&u.get(n-1)[1].type==="listItemPrefix"&&(l=r[1]._tokenizer.events,i=0,i<l.length&&l[i][1].type==="lineEndingBlank"&&(i+=2),i<l.length&&l[i][1].type==="content"))for(;++i<l.length&&l[i][1].type!=="content";)l[i][1].type==="chunkText"&&(l[i][1]._isInFirstContentOfListItem=!0,i++);if(r[0]==="enter")r[1].contentType&&(Object.assign(t,kMe(u,n)),n=t[n],c=!0);else if(r[1]._container){for(i=n,a=void 0;i--&&(o=u.get(i),o[1].type==="lineEnding"||o[1].type==="lineEndingBlank");)o[0]==="enter"&&(a&&(u.get(a)[1].type="lineEndingBlank"),o[1].type="lineEnding",a=i);a&&(r[1].end=Object.assign({},u.get(a)[1].start),s=u.slice(a,n),s.unshift(r),u.splice(a,n-a+1,s))}}return wo(e,0,Number.POSITIVE_INFINITY,u.slice(0)),!c}function kMe(e,t){const n=e.get(t)[1],r=e.get(t)[2];let a=t-1;const i=[],o=n._tokenizer||r.parser[n.contentType](n.start),s=o.events,l=[],c={};let u,p,f=-1,h=n,g=0,E=0;const y=[E];for(;h;){for(;e.get(++a)[1]!==h;);i.push(a),h._tokenizer||(u=r.sliceStream(h),h.next||u.push(null),p&&o.defineSkip(h.start),h._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=!0),o.write(u),h._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=void 0)),p=h,h=h.next}for(h=n;++f<s.length;)s[f][0]==="exit"&&s[f-1][0]==="enter"&&s[f][1].type===s[f-1][1].type&&s[f][1].start.line!==s[f][1].end.line&&(E=f+1,y.push(E),h._tokenizer=void 0,h.previous=void 0,h=h.next);for(o.events=[],h?(h._tokenizer=void 0,h.previous=void 0):y.pop(),f=y.length;f--;){const b=s.slice(y[f],y[f+1]),v=i.pop();l.push([v,v+b.length-1]),e.splice(v,2,b)}for(l.reverse(),f=-1;++f<l.length;)c[g+l[f][0]]=g+l[f][1],g+=l[f][1]-l[f][0]-1;return c}const PMe={tokenize:UMe,resolve:BMe},FMe={tokenize:$Me,partial:!0};function BMe(e){return DX(e),e}function UMe(e,t){let n;return r;function r(s){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),a(s)}function a(s){return s===null?i(s):Lt(s)?e.check(FMe,o,i)(s):(e.consume(s),a)}function i(s){return e.exit("chunkContent"),e.exit("content"),t(s)}function o(s){return e.consume(s),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,a}}function $Me(e,t,n){const r=this;return a;function a(o){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),cn(e,i,"linePrefix")}function i(o){if(o===null||Lt(o))return n(o);const s=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&s&&s[1].type==="linePrefix"&&s[2].sliceSerialize(s[1],!0).length>=4?t(o):e.interrupt(r.parser.constructs.flow,n,t)(o)}}function LX(e,t,n,r,a,i,o,s,l){const c=l||Number.POSITIVE_INFINITY;let u=0;return p;function p(b){return b===60?(e.enter(r),e.enter(a),e.enter(i),e.consume(b),e.exit(i),f):b===null||b===32||b===41||Wb(b)?n(b):(e.enter(r),e.enter(o),e.enter(s),e.enter("chunkString",{contentType:"string"}),E(b))}function f(b){return b===62?(e.enter(i),e.consume(b),e.exit(i),e.exit(a),e.exit(r),t):(e.enter(s),e.enter("chunkString",{contentType:"string"}),h(b))}function h(b){return b===62?(e.exit("chunkString"),e.exit(s),f(b)):b===null||b===60||Lt(b)?n(b):(e.consume(b),b===92?g:h)}function g(b){return b===60||b===62||b===92?(e.consume(b),h):h(b)}function E(b){return!u&&(b===null||b===41||Hn(b))?(e.exit("chunkString"),e.exit(s),e.exit(o),e.exit(r),t(b)):u<c&&b===40?(e.consume(b),u++,E):b===41?(e.consume(b),u--,E):b===null||b===32||b===40||Wb(b)?n(b):(e.consume(b),b===92?y:E)}function y(b){return b===40||b===41||b===92?(e.consume(b),E):E(b)}}function MX(e,t,n,r,a,i){const o=this;let s=0,l;return c;function c(h){return e.enter(r),e.enter(a),e.consume(h),e.exit(a),e.enter(i),u}function u(h){return s>999||h===null||h===91||h===93&&!l||h===94&&!s&&"_hiddenFootnoteSupport"in o.parser.constructs?n(h):h===93?(e.exit(i),e.enter(a),e.consume(h),e.exit(a),e.exit(r),t):Lt(h)?(e.enter("lineEnding"),e.consume(h),e.exit("lineEnding"),u):(e.enter("chunkString",{contentType:"string"}),p(h))}function p(h){return h===null||h===91||h===93||Lt(h)||s++>999?(e.exit("chunkString"),u(h)):(e.consume(h),l||(l=!dn(h)),h===92?f:p)}function f(h){return h===91||h===92||h===93?(e.consume(h),s++,p):p(h)}}function kX(e,t,n,r,a,i){let o;return s;function s(f){return f===34||f===39||f===40?(e.enter(r),e.enter(a),e.consume(f),e.exit(a),o=f===40?41:f,l):n(f)}function l(f){return f===o?(e.enter(a),e.consume(f),e.exit(a),e.exit(r),t):(e.enter(i),c(f))}function c(f){return f===o?(e.exit(i),l(o)):f===null?n(f):Lt(f)?(e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),cn(e,c,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),u(f))}function u(f){return f===o||f===null||Lt(f)?(e.exit("chunkString"),c(f)):(e.consume(f),f===92?p:u)}function p(f){return f===o||f===92?(e.consume(f),u):u(f)}}function ih(e,t){let n;return r;function r(a){return Lt(a)?(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),n=!0,r):dn(a)?cn(e,r,n?"linePrefix":"lineSuffix")(a):t(a)}}const zMe={name:"definition",tokenize:GMe},HMe={tokenize:VMe,partial:!0};function GMe(e,t,n){const r=this;let a;return i;function i(h){return e.enter("definition"),o(h)}function o(h){return MX.call(r,e,s,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(h)}function s(h){return a=fs(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),h===58?(e.enter("definitionMarker"),e.consume(h),e.exit("definitionMarker"),l):n(h)}function l(h){return Hn(h)?ih(e,c)(h):c(h)}function c(h){return LX(e,u,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(h)}function u(h){return e.attempt(HMe,p,p)(h)}function p(h){return dn(h)?cn(e,f,"whitespace")(h):f(h)}function f(h){return h===null||Lt(h)?(e.exit("definition"),r.parser.defined.push(a),t(h)):n(h)}}function VMe(e,t,n){return r;function r(s){return Hn(s)?ih(e,a)(s):n(s)}function a(s){return kX(e,i,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(s)}function i(s){return dn(s)?cn(e,o,"whitespace")(s):o(s)}function o(s){return s===null||Lt(s)?t(s):n(s)}}const YMe={name:"hardBreakEscape",tokenize:qMe};function qMe(e,t,n){return r;function r(i){return e.enter("hardBreakEscape"),e.consume(i),a}function a(i){return Lt(i)?(e.exit("hardBreakEscape"),t(i)):n(i)}}const WMe={name:"headingAtx",tokenize:KMe,resolve:jMe};function jMe(e,t){let n=e.length-2,r=3,a,i;return e[r][1].type==="whitespace"&&(r+=2),n-2>r&&e[n][1].type==="whitespace"&&(n-=2),e[n][1].type==="atxHeadingSequence"&&(r===n-1||n-4>r&&e[n-2][1].type==="whitespace")&&(n-=r+1===n?2:4),n>r&&(a={type:"atxHeadingText",start:e[r][1].start,end:e[n][1].end},i={type:"chunkText",start:e[r][1].start,end:e[n][1].end,contentType:"text"},wo(e,r,n-r+1,[["enter",a,t],["enter",i,t],["exit",i,t],["exit",a,t]])),e}function KMe(e,t,n){let r=0;return a;function a(u){return e.enter("atxHeading"),i(u)}function i(u){return e.enter("atxHeadingSequence"),o(u)}function o(u){return u===35&&r++<6?(e.consume(u),o):u===null||Hn(u)?(e.exit("atxHeadingSequence"),s(u)):n(u)}function s(u){return u===35?(e.enter("atxHeadingSequence"),l(u)):u===null||Lt(u)?(e.exit("atxHeading"),t(u)):dn(u)?cn(e,s,"whitespace")(u):(e.enter("atxHeadingText"),c(u))}function l(u){return u===35?(e.consume(u),l):(e.exit("atxHeadingSequence"),s(u))}function c(u){return u===null||u===35||Hn(u)?(e.exit("atxHeadingText"),s(u)):(e.consume(u),c)}}const QMe=["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"],q9=["pre","script","style","textarea"],XMe={name:"htmlFlow",tokenize:t8e,resolveTo:e8e,concrete:!0},ZMe={tokenize:r8e,partial:!0},JMe={tokenize:n8e,partial:!0};function e8e(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function t8e(e,t,n){const r=this;let a,i,o,s,l;return c;function c(P){return u(P)}function u(P){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(P),p}function p(P){return P===33?(e.consume(P),f):P===47?(e.consume(P),i=!0,E):P===63?(e.consume(P),a=3,r.interrupt?t:M):Za(P)?(e.consume(P),o=String.fromCharCode(P),y):n(P)}function f(P){return P===45?(e.consume(P),a=2,h):P===91?(e.consume(P),a=5,s=0,g):Za(P)?(e.consume(P),a=4,r.interrupt?t:M):n(P)}function h(P){return P===45?(e.consume(P),r.interrupt?t:M):n(P)}function g(P){const ce="CDATA[";return P===ce.charCodeAt(s++)?(e.consume(P),s===ce.length?r.interrupt?t:te:g):n(P)}function E(P){return Za(P)?(e.consume(P),o=String.fromCharCode(P),y):n(P)}function y(P){if(P===null||P===47||P===62||Hn(P)){const ce=P===47,Te=o.toLowerCase();return!ce&&!i&&q9.includes(Te)?(a=1,r.interrupt?t(P):te(P)):QMe.includes(o.toLowerCase())?(a=6,ce?(e.consume(P),b):r.interrupt?t(P):te(P)):(a=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(P):i?v(P):C(P))}return P===45||Pa(P)?(e.consume(P),o+=String.fromCharCode(P),y):n(P)}function b(P){return P===62?(e.consume(P),r.interrupt?t:te):n(P)}function v(P){return dn(P)?(e.consume(P),v):L(P)}function C(P){return P===47?(e.consume(P),L):P===58||P===95||Za(P)?(e.consume(P),T):dn(P)?(e.consume(P),C):L(P)}function T(P){return P===45||P===46||P===58||P===95||Pa(P)?(e.consume(P),T):O(P)}function O(P){return P===61?(e.consume(P),A):dn(P)?(e.consume(P),O):C(P)}function A(P){return P===null||P===60||P===61||P===62||P===96?n(P):P===34||P===39?(e.consume(P),l=P,N):dn(P)?(e.consume(P),A):k(P)}function N(P){return P===l?(e.consume(P),l=null,B):P===null||Lt(P)?n(P):(e.consume(P),N)}function k(P){return P===null||P===34||P===39||P===47||P===60||P===61||P===62||P===96||Hn(P)?O(P):(e.consume(P),k)}function B(P){return P===47||P===62||dn(P)?C(P):n(P)}function L(P){return P===62?(e.consume(P),H):n(P)}function H(P){return P===null||Lt(P)?te(P):dn(P)?(e.consume(P),H):n(P)}function te(P){return P===45&&a===2?(e.consume(P),le):P===60&&a===1?(e.consume(P),W):P===62&&a===4?(e.consume(P),ie):P===63&&a===3?(e.consume(P),M):P===93&&a===5?(e.consume(P),z):Lt(P)&&(a===6||a===7)?(e.exit("htmlFlowData"),e.check(ZMe,q,K)(P)):P===null||Lt(P)?(e.exit("htmlFlowData"),K(P)):(e.consume(P),te)}function K(P){return e.check(JMe,G,q)(P)}function G(P){return e.enter("lineEnding"),e.consume(P),e.exit("lineEnding"),ne}function ne(P){return P===null||Lt(P)?K(P):(e.enter("htmlFlowData"),te(P))}function le(P){return P===45?(e.consume(P),M):te(P)}function W(P){return P===47?(e.consume(P),o="",V):te(P)}function V(P){if(P===62){const ce=o.toLowerCase();return q9.includes(ce)?(e.consume(P),ie):te(P)}return Za(P)&&o.length<8?(e.consume(P),o+=String.fromCharCode(P),V):te(P)}function z(P){return P===93?(e.consume(P),M):te(P)}function M(P){return P===62?(e.consume(P),ie):P===45&&a===2?(e.consume(P),M):te(P)}function ie(P){return P===null||Lt(P)?(e.exit("htmlFlowData"),q(P)):(e.consume(P),ie)}function q(P){return e.exit("htmlFlow"),t(P)}}function n8e(e,t,n){const r=this;return a;function a(o){return Lt(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),i):n(o)}function i(o){return r.parser.lazy[r.now().line]?n(o):t(o)}}function r8e(e,t,n){return r;function r(a){return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),e.attempt(Pg,t,n)}}const a8e={name:"htmlText",tokenize:i8e};function i8e(e,t,n){const r=this;let a,i,o;return s;function s(M){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(M),l}function l(M){return M===33?(e.consume(M),c):M===47?(e.consume(M),O):M===63?(e.consume(M),C):Za(M)?(e.consume(M),k):n(M)}function c(M){return M===45?(e.consume(M),u):M===91?(e.consume(M),i=0,g):Za(M)?(e.consume(M),v):n(M)}function u(M){return M===45?(e.consume(M),h):n(M)}function p(M){return M===null?n(M):M===45?(e.consume(M),f):Lt(M)?(o=p,W(M)):(e.consume(M),p)}function f(M){return M===45?(e.consume(M),h):p(M)}function h(M){return M===62?le(M):M===45?f(M):p(M)}function g(M){const ie="CDATA[";return M===ie.charCodeAt(i++)?(e.consume(M),i===ie.length?E:g):n(M)}function E(M){return M===null?n(M):M===93?(e.consume(M),y):Lt(M)?(o=E,W(M)):(e.consume(M),E)}function y(M){return M===93?(e.consume(M),b):E(M)}function b(M){return M===62?le(M):M===93?(e.consume(M),b):E(M)}function v(M){return M===null||M===62?le(M):Lt(M)?(o=v,W(M)):(e.consume(M),v)}function C(M){return M===null?n(M):M===63?(e.consume(M),T):Lt(M)?(o=C,W(M)):(e.consume(M),C)}function T(M){return M===62?le(M):C(M)}function O(M){return Za(M)?(e.consume(M),A):n(M)}function A(M){return M===45||Pa(M)?(e.consume(M),A):N(M)}function N(M){return Lt(M)?(o=N,W(M)):dn(M)?(e.consume(M),N):le(M)}function k(M){return M===45||Pa(M)?(e.consume(M),k):M===47||M===62||Hn(M)?B(M):n(M)}function B(M){return M===47?(e.consume(M),le):M===58||M===95||Za(M)?(e.consume(M),L):Lt(M)?(o=B,W(M)):dn(M)?(e.consume(M),B):le(M)}function L(M){return M===45||M===46||M===58||M===95||Pa(M)?(e.consume(M),L):H(M)}function H(M){return M===61?(e.consume(M),te):Lt(M)?(o=H,W(M)):dn(M)?(e.consume(M),H):B(M)}function te(M){return M===null||M===60||M===61||M===62||M===96?n(M):M===34||M===39?(e.consume(M),a=M,K):Lt(M)?(o=te,W(M)):dn(M)?(e.consume(M),te):(e.consume(M),G)}function K(M){return M===a?(e.consume(M),a=void 0,ne):M===null?n(M):Lt(M)?(o=K,W(M)):(e.consume(M),K)}function G(M){return M===null||M===34||M===39||M===60||M===61||M===96?n(M):M===47||M===62||Hn(M)?B(M):(e.consume(M),G)}function ne(M){return M===47||M===62||Hn(M)?B(M):n(M)}function le(M){return M===62?(e.consume(M),e.exit("htmlTextData"),e.exit("htmlText"),t):n(M)}function W(M){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(M),e.exit("lineEnding"),V}function V(M){return dn(M)?cn(e,z,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(M):z(M)}function z(M){return e.enter("htmlTextData"),o(M)}}const Y5={name:"labelEnd",tokenize:d8e,resolveTo:u8e,resolveAll:c8e},o8e={tokenize:p8e},s8e={tokenize:f8e},l8e={tokenize:m8e};function c8e(e){let t=-1;for(;++t<e.length;){const n=e[t][1];(n.type==="labelImage"||n.type==="labelLink"||n.type==="labelEnd")&&(e.splice(t+1,n.type==="labelImage"?4:2),n.type="data",t++)}return e}function u8e(e,t){let n=e.length,r=0,a,i,o,s;for(;n--;)if(a=e[n][1],i){if(a.type==="link"||a.type==="labelLink"&&a._inactive)break;e[n][0]==="enter"&&a.type==="labelLink"&&(a._inactive=!0)}else if(o){if(e[n][0]==="enter"&&(a.type==="labelImage"||a.type==="labelLink")&&!a._balanced&&(i=n,a.type!=="labelLink")){r=2;break}}else a.type==="labelEnd"&&(o=n);const l={type:e[i][1].type==="labelLink"?"link":"image",start:Object.assign({},e[i][1].start),end:Object.assign({},e[e.length-1][1].end)},c={type:"label",start:Object.assign({},e[i][1].start),end:Object.assign({},e[o][1].end)},u={type:"labelText",start:Object.assign({},e[i+r+2][1].end),end:Object.assign({},e[o-2][1].start)};return s=[["enter",l,t],["enter",c,t]],s=To(s,e.slice(i+1,i+r+3)),s=To(s,[["enter",u,t]]),s=To(s,Sy(t.parser.constructs.insideSpan.null,e.slice(i+r+4,o-3),t)),s=To(s,[["exit",u,t],e[o-2],e[o-1],["exit",c,t]]),s=To(s,e.slice(o+1)),s=To(s,[["exit",l,t]]),wo(e,i,e.length,s),e}function d8e(e,t,n){const r=this;let a=r.events.length,i,o;for(;a--;)if((r.events[a][1].type==="labelImage"||r.events[a][1].type==="labelLink")&&!r.events[a][1]._balanced){i=r.events[a][1];break}return s;function s(f){return i?i._inactive?p(f):(o=r.parser.defined.includes(fs(r.sliceSerialize({start:i.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(f),e.exit("labelMarker"),e.exit("labelEnd"),l):n(f)}function l(f){return f===40?e.attempt(o8e,u,o?u:p)(f):f===91?e.attempt(s8e,u,o?c:p)(f):o?u(f):p(f)}function c(f){return e.attempt(l8e,u,p)(f)}function u(f){return t(f)}function p(f){return i._balanced=!0,n(f)}}function p8e(e,t,n){return r;function r(p){return e.enter("resource"),e.enter("resourceMarker"),e.consume(p),e.exit("resourceMarker"),a}function a(p){return Hn(p)?ih(e,i)(p):i(p)}function i(p){return p===41?u(p):LX(e,o,s,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(p)}function o(p){return Hn(p)?ih(e,l)(p):u(p)}function s(p){return n(p)}function l(p){return p===34||p===39||p===40?kX(e,c,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(p):u(p)}function c(p){return Hn(p)?ih(e,u)(p):u(p)}function u(p){return p===41?(e.enter("resourceMarker"),e.consume(p),e.exit("resourceMarker"),e.exit("resource"),t):n(p)}}function f8e(e,t,n){const r=this;return a;function a(s){return MX.call(r,e,i,o,"reference","referenceMarker","referenceString")(s)}function i(s){return r.parser.defined.includes(fs(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(s):n(s)}function o(s){return n(s)}}function m8e(e,t,n){return r;function r(i){return e.enter("reference"),e.enter("referenceMarker"),e.consume(i),e.exit("referenceMarker"),a}function a(i){return i===93?(e.enter("referenceMarker"),e.consume(i),e.exit("referenceMarker"),e.exit("reference"),t):n(i)}}const h8e={name:"labelStartImage",tokenize:g8e,resolveAll:Y5.resolveAll};function g8e(e,t,n){const r=this;return a;function a(s){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(s),e.exit("labelImageMarker"),i}function i(s){return s===91?(e.enter("labelMarker"),e.consume(s),e.exit("labelMarker"),e.exit("labelImage"),o):n(s)}function o(s){return s===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(s):t(s)}}const _8e={name:"labelStartLink",tokenize:E8e,resolveAll:Y5.resolveAll};function E8e(e,t,n){const r=this;return a;function a(o){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(o),e.exit("labelMarker"),e.exit("labelLink"),i}function i(o){return o===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(o):t(o)}}const H2={name:"lineEnding",tokenize:b8e};function b8e(e,t){return n;function n(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),cn(e,t,"linePrefix")}}const qE={name:"thematicBreak",tokenize:S8e};function S8e(e,t,n){let r=0,a;return i;function i(c){return e.enter("thematicBreak"),o(c)}function o(c){return a=c,s(c)}function s(c){return c===a?(e.enter("thematicBreakSequence"),l(c)):r>=3&&(c===null||Lt(c))?(e.exit("thematicBreak"),t(c)):n(c)}function l(c){return c===a?(e.consume(c),r++,l):(e.exit("thematicBreakSequence"),dn(c)?cn(e,s,"whitespace")(c):s(c))}}const fi={name:"list",tokenize:T8e,continuation:{tokenize:C8e},exit:x8e},v8e={tokenize:A8e,partial:!0},y8e={tokenize:R8e,partial:!0};function T8e(e,t,n){const r=this,a=r.events[r.events.length-1];let i=a&&a[1].type==="linePrefix"?a[2].sliceSerialize(a[1],!0).length:0,o=0;return s;function s(h){const g=r.containerState.type||(h===42||h===43||h===45?"listUnordered":"listOrdered");if(g==="listUnordered"?!r.containerState.marker||h===r.containerState.marker:u4(h)){if(r.containerState.type||(r.containerState.type=g,e.enter(g,{_container:!0})),g==="listUnordered")return e.enter("listItemPrefix"),h===42||h===45?e.check(qE,n,c)(h):c(h);if(!r.interrupt||h===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),l(h)}return n(h)}function l(h){return u4(h)&&++o<10?(e.consume(h),l):(!r.interrupt||o<2)&&(r.containerState.marker?h===r.containerState.marker:h===41||h===46)?(e.exit("listItemValue"),c(h)):n(h)}function c(h){return e.enter("listItemMarker"),e.consume(h),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||h,e.check(Pg,r.interrupt?n:u,e.attempt(v8e,f,p))}function u(h){return r.containerState.initialBlankLine=!0,i++,f(h)}function p(h){return dn(h)?(e.enter("listItemPrefixWhitespace"),e.consume(h),e.exit("listItemPrefixWhitespace"),f):n(h)}function f(h){return r.containerState.size=i+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(h)}}function C8e(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(Pg,a,i);function a(s){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,cn(e,t,"listItemIndent",r.containerState.size+1)(s)}function i(s){return r.containerState.furtherBlankLines||!dn(s)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,o(s)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(y8e,t,o)(s))}function o(s){return r.containerState._closeFlow=!0,r.interrupt=void 0,cn(e,e.attempt(fi,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(s)}}function R8e(e,t,n){const r=this;return cn(e,a,"listItemIndent",r.containerState.size+1);function a(i){const o=r.events[r.events.length-1];return o&&o[1].type==="listItemIndent"&&o[2].sliceSerialize(o[1],!0).length===r.containerState.size?t(i):n(i)}}function x8e(e){e.exit(this.containerState.type)}function A8e(e,t,n){const r=this;return cn(e,a,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4+1);function a(i){const o=r.events[r.events.length-1];return!dn(i)&&o&&o[1].type==="listItemPrefixWhitespace"?t(i):n(i)}}const W9={name:"setextUnderline",tokenize:N8e,resolveTo:O8e};function O8e(e,t){let n=e.length,r,a,i;for(;n--;)if(e[n][0]==="enter"){if(e[n][1].type==="content"){r=n;break}e[n][1].type==="paragraph"&&(a=n)}else e[n][1].type==="content"&&e.splice(n,1),!i&&e[n][1].type==="definition"&&(i=n);const o={type:"setextHeading",start:Object.assign({},e[a][1].start),end:Object.assign({},e[e.length-1][1].end)};return e[a][1].type="setextHeadingText",i?(e.splice(a,0,["enter",o,t]),e.splice(i+1,0,["exit",e[r][1],t]),e[r][1].end=Object.assign({},e[i][1].end)):e[r][1]=o,e.push(["exit",o,t]),e}function N8e(e,t,n){const r=this;let a;return i;function i(c){let u=r.events.length,p;for(;u--;)if(r.events[u][1].type!=="lineEnding"&&r.events[u][1].type!=="linePrefix"&&r.events[u][1].type!=="content"){p=r.events[u][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||p)?(e.enter("setextHeadingLine"),a=c,o(c)):n(c)}function o(c){return e.enter("setextHeadingLineSequence"),s(c)}function s(c){return c===a?(e.consume(c),s):(e.exit("setextHeadingLineSequence"),dn(c)?cn(e,l,"lineSuffix")(c):l(c))}function l(c){return c===null||Lt(c)?(e.exit("setextHeadingLine"),t(c)):n(c)}}const I8e={tokenize:w8e};function w8e(e){const t=this,n=e.attempt(Pg,r,e.attempt(this.parser.constructs.flowInitial,a,cn(e,e.attempt(this.parser.constructs.flow,a,e.attempt(PMe,a)),"linePrefix")));return n;function r(i){if(i===null){e.consume(i);return}return e.enter("lineEndingBlank"),e.consume(i),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function a(i){if(i===null){e.consume(i);return}return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),t.currentConstruct=void 0,n}}const D8e={resolveAll:FX()},L8e=PX("string"),M8e=PX("text");function PX(e){return{tokenize:t,resolveAll:FX(e==="text"?k8e:void 0)};function t(n){const r=this,a=this.parser.constructs[e],i=n.attempt(a,o,s);return o;function o(u){return c(u)?i(u):s(u)}function s(u){if(u===null){n.consume(u);return}return n.enter("data"),n.consume(u),l}function l(u){return c(u)?(n.exit("data"),i(u)):(n.consume(u),l)}function c(u){if(u===null)return!0;const p=a[u];let f=-1;if(p)for(;++f<p.length;){const h=p[f];if(!h.previous||h.previous.call(r,r.previous))return!0}return!1}}}function FX(e){return t;function t(n,r){let a=-1,i;for(;++a<=n.length;)i===void 0?n[a]&&n[a][1].type==="data"&&(i=a,a++):(!n[a]||n[a][1].type!=="data")&&(a!==i+2&&(n[i][1].end=n[a-1][1].end,n.splice(i+2,a-i-2),a=i+2),i=void 0);return e?e(n,r):n}}function k8e(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||e[n][1].type==="lineEnding")&&e[n-1][1].type==="data"){const r=e[n-1][1],a=t.sliceStream(r);let i=a.length,o=-1,s=0,l;for(;i--;){const c=a[i];if(typeof c=="string"){for(o=c.length;c.charCodeAt(o-1)===32;)s++,o--;if(o)break;o=-1}else if(c===-2)l=!0,s++;else if(c!==-1){i++;break}}if(s){const c={type:n===e.length||l||s<2?"lineSuffix":"hardBreakTrailing",start:{line:r.end.line,column:r.end.column-s,offset:r.end.offset-s,_index:r.start._index+i,_bufferIndex:i?o:r.start._bufferIndex+o},end:Object.assign({},r.end)};r.end=Object.assign({},c.start),r.start.offset===r.end.offset?Object.assign(r,c):(e.splice(n,0,["enter",c,t],["exit",c,t]),n+=2)}n++}return e}function P8e(e,t,n){let r=Object.assign(n?Object.assign({},n):{line:1,column:1,offset:0},{_index:0,_bufferIndex:-1});const a={},i=[];let o=[],s=[];const l={consume:v,enter:C,exit:T,attempt:N(O),check:N(A),interrupt:N(A,{interrupt:!0})},c={previous:null,code:null,containerState:{},events:[],parser:e,sliceStream:h,sliceSerialize:f,now:g,defineSkip:E,write:p};let u=t.tokenize.call(c,l);return t.resolveAll&&i.push(t),c;function p(H){return o=To(o,H),y(),o[o.length-1]!==null?[]:(k(t,0),c.events=Sy(i,c.events,c),c.events)}function f(H,te){return B8e(h(H),te)}function h(H){return F8e(o,H)}function g(){const{line:H,column:te,offset:K,_index:G,_bufferIndex:ne}=r;return{line:H,column:te,offset:K,_index:G,_bufferIndex:ne}}function E(H){a[H.line]=H.column,L()}function y(){let H;for(;r._index<o.length;){const te=o[r._index];if(typeof te=="string")for(H=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===H&&r._bufferIndex<te.length;)b(te.charCodeAt(r._bufferIndex));else b(te)}}function b(H){u=u(H)}function v(H){Lt(H)?(r.line++,r.column=1,r.offset+=H===-3?2:1,L()):H!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===o[r._index].length&&(r._bufferIndex=-1,r._index++)),c.previous=H}function C(H,te){const K=te||{};return K.type=H,K.start=g(),c.events.push(["enter",K,c]),s.push(K),K}function T(H){const te=s.pop();return te.end=g(),c.events.push(["exit",te,c]),te}function O(H,te){k(H,te.from)}function A(H,te){te.restore()}function N(H,te){return K;function K(G,ne,le){let W,V,z,M;return Array.isArray(G)?q(G):"tokenize"in G?q([G]):ie(G);function ie(me){return Ae;function Ae(Ce){const Ne=Ce!==null&&me[Ce],ze=Ce!==null&&me.null,Ue=[...Array.isArray(Ne)?Ne:Ne?[Ne]:[],...Array.isArray(ze)?ze:ze?[ze]:[]];return q(Ue)(Ce)}}function q(me){return W=me,V=0,me.length===0?le:P(me[V])}function P(me){return Ae;function Ae(Ce){return M=B(),z=me,me.partial||(c.currentConstruct=me),me.name&&c.parser.constructs.disable.null.includes(me.name)?Te():me.tokenize.call(te?Object.assign(Object.create(c),te):c,l,ce,Te)(Ce)}}function ce(me){return H(z,M),ne}function Te(me){return M.restore(),++V<W.length?P(W[V]):le}}}function k(H,te){H.resolveAll&&!i.includes(H)&&i.push(H),H.resolve&&wo(c.events,te,c.events.length-te,H.resolve(c.events.slice(te),c)),H.resolveTo&&(c.events=H.resolveTo(c.events,c))}function B(){const H=g(),te=c.previous,K=c.currentConstruct,G=c.events.length,ne=Array.from(s);return{restore:le,from:G};function le(){r=H,c.previous=te,c.currentConstruct=K,c.events.length=G,s=ne,L()}}function L(){r.line in a&&r.column<2&&(r.column=a[r.line],r.offset+=a[r.line]-1)}}function F8e(e,t){const n=t.start._index,r=t.start._bufferIndex,a=t.end._index,i=t.end._bufferIndex;let o;if(n===a)o=[e[n].slice(r,i)];else{if(o=e.slice(n,a),r>-1){const s=o[0];typeof s=="string"?o[0]=s.slice(r):o.shift()}i>0&&o.push(e[a].slice(0,i))}return o}function B8e(e,t){let n=-1;const r=[];let a;for(;++n<e.length;){const i=e[n];let o;if(typeof i=="string")o=i;else switch(i){case-5:{o="\r";break}case-4:{o=`
340
340
  `;break}case-3:{o=`\r
341
341
  `;break}case-2:{o=t?" ":" ";break}case-1:{if(!t&&a)continue;o=" ";break}default:o=String.fromCharCode(i)}a=i===-2,r.push(o)}return r.join("")}const U8e={42:fi,43:fi,45:fi,48:fi,49:fi,50:fi,51:fi,52:fi,53:fi,54:fi,55:fi,56:fi,57:fi,62:NX},$8e={91:zMe},z8e={[-2]:z2,[-1]:z2,32:z2},H8e={35:WMe,42:qE,45:[W9,qE],60:XMe,61:W9,95:qE,96:Y9,126:Y9},G8e={38:wX,92:IX},V8e={[-5]:H2,[-4]:H2,[-3]:H2,33:h8e,38:wX,42:d4,60:[_Me,a8e],91:_8e,92:[YMe,IX],93:Y5,95:d4,96:IMe},Y8e={null:[d4,D8e]},q8e={null:[42,95]},W8e={null:[]},j8e=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:q8e,contentInitial:$8e,disable:W8e,document:U8e,flow:H8e,flowInitial:z8e,insideSpan:Y8e,string:G8e,text:V8e},Symbol.toStringTag,{value:"Module"}));function K8e(e){const n=AX([j8e,...(e||{}).extensions||[]]),r={defined:[],lazy:{},constructs:n,content:a(uMe),document:a(pMe),flow:a(I8e),string:a(L8e),text:a(M8e)};return r;function a(i){return o;function o(s){return P8e(r,i,s)}}}function Q8e(e){for(;!DX(e););return e}const j9=/[\0\t\n\r]/g;function X8e(){let e=1,t="",n=!0,r;return a;function a(i,o,s){const l=[];let c,u,p,f,h;for(i=t+(typeof i=="string"?i.toString():new TextDecoder(o||void 0).decode(i)),p=0,t="",n&&(i.charCodeAt(0)===65279&&p++,n=void 0);p<i.length;){if(j9.lastIndex=p,c=j9.exec(i),f=c&&c.index!==void 0?c.index:i.length,h=i.charCodeAt(f),!c){t=i.slice(p);break}if(h===10&&p===f&&r)l.push(-3),r=void 0;else switch(r&&(l.push(-5),r=void 0),p<f&&(l.push(i.slice(p,f)),e+=f-p),h){case 0:{l.push(65533),e++;break}case 9:{for(u=Math.ceil(e/4)*4,l.push(-2);e++<u;)l.push(-1);break}case 10:{l.push(-4),e=1;break}default:r=!0,e=1}p=f+1}return s&&(r&&l.push(-5),t&&l.push(t),l.push(null)),l}}const Z8e=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function J8e(e){return e.replace(Z8e,eke)}function eke(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){const a=n.charCodeAt(1),i=a===120||a===88;return OX(n.slice(i?2:1),i?16:10)}return V5(n)||e}const BX={}.hasOwnProperty;function tke(e,t,n){return typeof t!="string"&&(n=t,t=void 0),nke(n)(Q8e(K8e(n).document().write(X8e()(e,t,!0))))}function nke(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:i(Ge),autolinkProtocol:B,autolinkEmail:B,atxHeading:i(Me),blockQuote:i(ze),characterEscape:B,characterReference:B,codeFenced:i(Ue),codeFencedFenceInfo:o,codeFencedFenceMeta:o,codeIndented:i(Ue,o),codeText:i(Le,o),codeTextData:B,data:B,codeFlowValue:B,definition:i(we),definitionDestinationString:o,definitionLabelString:o,definitionTitleString:o,emphasis:i(Pe),hardBreakEscape:i(lt),hardBreakTrailing:i(lt),htmlFlow:i(it,o),htmlFlowData:B,htmlText:i(it,o),htmlTextData:B,image:i(nt),label:o,link:i(Ge),listItem:i(ct),listItemValue:f,listOrdered:i(at,p),listUnordered:i(at),paragraph:i(se),reference:P,referenceString:o,resourceDestinationString:o,resourceTitleString:o,setextHeading:i(Me),strong:i(Fe),thematicBreak:i(oe)},exit:{atxHeading:l(),atxHeadingSequence:O,autolink:l(),autolinkEmail:Ne,autolinkProtocol:Ce,blockQuote:l(),characterEscapeValue:L,characterReferenceMarkerHexadecimal:Te,characterReferenceMarkerNumeric:Te,characterReferenceValue:me,characterReference:Ae,codeFenced:l(y),codeFencedFence:E,codeFencedFenceInfo:h,codeFencedFenceMeta:g,codeFlowValue:L,codeIndented:l(b),codeText:l(ne),codeTextData:L,data:L,definition:l(),definitionDestinationString:T,definitionLabelString:v,definitionTitleString:C,emphasis:l(),hardBreakEscape:l(te),hardBreakTrailing:l(te),htmlFlow:l(K),htmlFlowData:L,htmlText:l(G),htmlTextData:L,image:l(W),label:z,labelText:V,lineEnding:H,link:l(le),listItem:l(),listOrdered:l(),listUnordered:l(),paragraph:l(),referenceString:ce,resourceDestinationString:M,resourceTitleString:ie,resource:q,setextHeading:l(k),setextHeadingLineSequence:N,setextHeadingText:A,strong:l(),thematicBreak:l()}};UX(t,(e||{}).mdastExtensions||[]);const n={};return r;function r(ae){let Z={type:"root",children:[]};const de={stack:[Z],tokenStack:[],config:t,enter:s,exit:c,buffer:o,resume:u,data:n},ve=[];let Ve=-1;for(;++Ve<ae.length;)if(ae[Ve][1].type==="listOrdered"||ae[Ve][1].type==="listUnordered")if(ae[Ve][0]==="enter")ve.push(Ve);else{const ot=ve.pop();Ve=a(ae,ot,Ve)}for(Ve=-1;++Ve<ae.length;){const ot=t[ae[Ve][0]];BX.call(ot,ae[Ve][1].type)&&ot[ae[Ve][1].type].call(Object.assign({sliceSerialize:ae[Ve][2].sliceSerialize},de),ae[Ve][1])}if(de.tokenStack.length>0){const ot=de.tokenStack[de.tokenStack.length-1];(ot[1]||K9).call(de,void 0,ot[0])}for(Z.position={start:oc(ae.length>0?ae[0][1].start:{line:1,column:1,offset:0}),end:oc(ae.length>0?ae[ae.length-2][1].end:{line:1,column:1,offset:0})},Ve=-1;++Ve<t.transforms.length;)Z=t.transforms[Ve](Z)||Z;return Z}function a(ae,Z,de){let ve=Z-1,Ve=-1,ot=!1,qe,_t,be,Q;for(;++ve<=de;){const X=ae[ve];switch(X[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{X[0]==="enter"?Ve++:Ve--,Q=void 0;break}case"lineEndingBlank":{X[0]==="enter"&&(qe&&!Q&&!Ve&&!be&&(be=ve),Q=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:Q=void 0}if(!Ve&&X[0]==="enter"&&X[1].type==="listItemPrefix"||Ve===-1&&X[0]==="exit"&&(X[1].type==="listUnordered"||X[1].type==="listOrdered")){if(qe){let _e=ve;for(_t=void 0;_e--;){const ke=ae[_e];if(ke[1].type==="lineEnding"||ke[1].type==="lineEndingBlank"){if(ke[0]==="exit")continue;_t&&(ae[_t][1].type="lineEndingBlank",ot=!0),ke[1].type="lineEnding",_t=_e}else if(!(ke[1].type==="linePrefix"||ke[1].type==="blockQuotePrefix"||ke[1].type==="blockQuotePrefixWhitespace"||ke[1].type==="blockQuoteMarker"||ke[1].type==="listItemIndent"))break}be&&(!_t||be<_t)&&(qe._spread=!0),qe.end=Object.assign({},_t?ae[_t][1].start:X[1].end),ae.splice(_t||ve,0,["exit",qe,X[2]]),ve++,de++}if(X[1].type==="listItemPrefix"){const _e={type:"listItem",_spread:!1,start:Object.assign({},X[1].start),end:void 0};qe=_e,ae.splice(ve,0,["enter",_e,X[2]]),ve++,de++,be=void 0,Q=!0}}}return ae[Z][1]._spread=ot,de}function i(ae,Z){return de;function de(ve){s.call(this,ae(ve),ve),Z&&Z.call(this,ve)}}function o(){this.stack.push({type:"fragment",children:[]})}function s(ae,Z,de){this.stack[this.stack.length-1].children.push(ae),this.stack.push(ae),this.tokenStack.push([Z,de]),ae.position={start:oc(Z.start),end:void 0}}function l(ae){return Z;function Z(de){ae&&ae.call(this,de),c.call(this,de)}}function c(ae,Z){const de=this.stack.pop(),ve=this.tokenStack.pop();if(ve)ve[0].type!==ae.type&&(Z?Z.call(this,ae,ve[0]):(ve[1]||K9).call(this,ae,ve[0]));else throw new Error("Cannot close `"+ae.type+"` ("+ah({start:ae.start,end:ae.end})+"): it’s not open");de.position.end=oc(ae.end)}function u(){return G5(this.stack.pop())}function p(){this.data.expectingFirstListItemValue=!0}function f(ae){if(this.data.expectingFirstListItemValue){const Z=this.stack[this.stack.length-2];Z.start=Number.parseInt(this.sliceSerialize(ae),10),this.data.expectingFirstListItemValue=void 0}}function h(){const ae=this.resume(),Z=this.stack[this.stack.length-1];Z.lang=ae}function g(){const ae=this.resume(),Z=this.stack[this.stack.length-1];Z.meta=ae}function E(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function y(){const ae=this.resume(),Z=this.stack[this.stack.length-1];Z.value=ae.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function b(){const ae=this.resume(),Z=this.stack[this.stack.length-1];Z.value=ae.replace(/(\r?\n|\r)$/g,"")}function v(ae){const Z=this.resume(),de=this.stack[this.stack.length-1];de.label=Z,de.identifier=fs(this.sliceSerialize(ae)).toLowerCase()}function C(){const ae=this.resume(),Z=this.stack[this.stack.length-1];Z.title=ae}function T(){const ae=this.resume(),Z=this.stack[this.stack.length-1];Z.url=ae}function O(ae){const Z=this.stack[this.stack.length-1];if(!Z.depth){const de=this.sliceSerialize(ae).length;Z.depth=de}}function A(){this.data.setextHeadingSlurpLineEnding=!0}function N(ae){const Z=this.stack[this.stack.length-1];Z.depth=this.sliceSerialize(ae).codePointAt(0)===61?1:2}function k(){this.data.setextHeadingSlurpLineEnding=void 0}function B(ae){const de=this.stack[this.stack.length-1].children;let ve=de[de.length-1];(!ve||ve.type!=="text")&&(ve=ge(),ve.position={start:oc(ae.start),end:void 0},de.push(ve)),this.stack.push(ve)}function L(ae){const Z=this.stack.pop();Z.value+=this.sliceSerialize(ae),Z.position.end=oc(ae.end)}function H(ae){const Z=this.stack[this.stack.length-1];if(this.data.atHardBreak){const de=Z.children[Z.children.length-1];de.position.end=oc(ae.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(Z.type)&&(B.call(this,ae),L.call(this,ae))}function te(){this.data.atHardBreak=!0}function K(){const ae=this.resume(),Z=this.stack[this.stack.length-1];Z.value=ae}function G(){const ae=this.resume(),Z=this.stack[this.stack.length-1];Z.value=ae}function ne(){const ae=this.resume(),Z=this.stack[this.stack.length-1];Z.value=ae}function le(){const ae=this.stack[this.stack.length-1];if(this.data.inReference){const Z=this.data.referenceType||"shortcut";ae.type+="Reference",ae.referenceType=Z,delete ae.url,delete ae.title}else delete ae.identifier,delete ae.label;this.data.referenceType=void 0}function W(){const ae=this.stack[this.stack.length-1];if(this.data.inReference){const Z=this.data.referenceType||"shortcut";ae.type+="Reference",ae.referenceType=Z,delete ae.url,delete ae.title}else delete ae.identifier,delete ae.label;this.data.referenceType=void 0}function V(ae){const Z=this.sliceSerialize(ae),de=this.stack[this.stack.length-2];de.label=J8e(Z),de.identifier=fs(Z).toLowerCase()}function z(){const ae=this.stack[this.stack.length-1],Z=this.resume(),de=this.stack[this.stack.length-1];if(this.data.inReference=!0,de.type==="link"){const ve=ae.children;de.children=ve}else de.alt=Z}function M(){const ae=this.resume(),Z=this.stack[this.stack.length-1];Z.url=ae}function ie(){const ae=this.resume(),Z=this.stack[this.stack.length-1];Z.title=ae}function q(){this.data.inReference=void 0}function P(){this.data.referenceType="collapsed"}function ce(ae){const Z=this.resume(),de=this.stack[this.stack.length-1];de.label=Z,de.identifier=fs(this.sliceSerialize(ae)).toLowerCase(),this.data.referenceType="full"}function Te(ae){this.data.characterReferenceType=ae.type}function me(ae){const Z=this.sliceSerialize(ae),de=this.data.characterReferenceType;let ve;de?(ve=OX(Z,de==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):ve=V5(Z);const Ve=this.stack[this.stack.length-1];Ve.value+=ve}function Ae(ae){const Z=this.stack.pop();Z.position.end=oc(ae.end)}function Ce(ae){L.call(this,ae);const Z=this.stack[this.stack.length-1];Z.url=this.sliceSerialize(ae)}function Ne(ae){L.call(this,ae);const Z=this.stack[this.stack.length-1];Z.url="mailto:"+this.sliceSerialize(ae)}function ze(){return{type:"blockquote",children:[]}}function Ue(){return{type:"code",lang:null,meta:null,value:""}}function Le(){return{type:"inlineCode",value:""}}function we(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function Pe(){return{type:"emphasis",children:[]}}function Me(){return{type:"heading",depth:0,children:[]}}function lt(){return{type:"break"}}function it(){return{type:"html",value:""}}function nt(){return{type:"image",title:null,url:"",alt:null}}function Ge(){return{type:"link",title:null,url:"",children:[]}}function at(ae){return{type:"list",ordered:ae.type==="listOrdered",start:null,spread:ae._spread,children:[]}}function ct(ae){return{type:"listItem",spread:ae._spread,checked:null,children:[]}}function se(){return{type:"paragraph",children:[]}}function Fe(){return{type:"strong",children:[]}}function ge(){return{type:"text",value:""}}function oe(){return{type:"thematicBreak"}}}function oc(e){return{line:e.line,column:e.column,offset:e.offset}}function UX(e,t){let n=-1;for(;++n<t.length;){const r=t[n];Array.isArray(r)?UX(e,r):rke(e,r)}}function rke(e,t){let n;for(n in t)if(BX.call(t,n))switch(n){case"canContainEols":{const r=t[n];r&&e[n].push(...r);break}case"transforms":{const r=t[n];r&&e[n].push(...r);break}case"enter":case"exit":{const r=t[n];r&&Object.assign(e[n],r);break}}}function K9(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+ah({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+ah({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+ah({start:t.start,end:t.end})+") is still open")}function ake(e){const t=this;t.parser=n;function n(r){return tke(r,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function ike(e,t){const n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)}function oke(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:`
@@ -348,7 +348,7 @@ function print() { __p += __j.call(arguments, '') }
348
348
  `});++r<e.length;)r&&n.push({type:"text",value:`
349
349
  `}),n.push(e[r]);return t&&e.length>0&&n.push({type:"text",value:`
350
350
  `}),n}function nF(e){let t=0,n=e.charCodeAt(t);for(;n===9||n===32;)t++,n=e.charCodeAt(t);return e.slice(t)}function rF(e,t){const n=qke(e,t),r=n.one(e,void 0),a=Fke(n),i=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return a&&i.children.push({type:"text",value:`
351
- `},a),i}function Xke(e,t){return e&&"run"in e?async function(n,r){const a=rF(n,{file:r,...t});await e.run(a,r)}:function(n,r){return rF(n,{file:r,...t||e})}}function aF(e){if(e)throw e}var WE=Object.prototype.hasOwnProperty,WX=Object.prototype.toString,iF=Object.defineProperty,oF=Object.getOwnPropertyDescriptor,sF=function(t){return typeof Array.isArray=="function"?Array.isArray(t):WX.call(t)==="[object Array]"},lF=function(t){if(!t||WX.call(t)!=="[object Object]")return!1;var n=WE.call(t,"constructor"),r=t.constructor&&t.constructor.prototype&&WE.call(t.constructor.prototype,"isPrototypeOf");if(t.constructor&&!n&&!r)return!1;var a;for(a in t);return typeof a>"u"||WE.call(t,a)},cF=function(t,n){iF&&n.name==="__proto__"?iF(t,n.name,{enumerable:!0,configurable:!0,value:n.newValue,writable:!0}):t[n.name]=n.newValue},uF=function(t,n){if(n==="__proto__")if(WE.call(t,n)){if(oF)return oF(t,n).value}else return;return t[n]},Zke=function e(){var t,n,r,a,i,o,s=arguments[0],l=1,c=arguments.length,u=!1;for(typeof s=="boolean"&&(u=s,s=arguments[1]||{},l=2),(s==null||typeof s!="object"&&typeof s!="function")&&(s={});l<c;++l)if(t=arguments[l],t!=null)for(n in t)r=uF(s,n),a=uF(t,n),s!==a&&(u&&a&&(lF(a)||(i=sF(a)))?(i?(i=!1,o=r&&sF(r)?r:[]):o=r&&lF(r)?r:{},cF(s,{name:n,newValue:e(u,o,a)})):typeof a<"u"&&cF(s,{name:n,newValue:a}));return s};const G2=xa(Zke);function m4(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function Jke(){const e=[],t={run:n,use:r};return t;function n(...a){let i=-1;const o=a.pop();if(typeof o!="function")throw new TypeError("Expected function as last argument, not "+o);s(null,...a);function s(l,...c){const u=e[++i];let p=-1;if(l){o(l);return}for(;++p<a.length;)(c[p]===null||c[p]===void 0)&&(c[p]=a[p]);a=c,u?ePe(u,s)(...c):o(null,...c)}}function r(a){if(typeof a!="function")throw new TypeError("Expected `middelware` to be a function, not "+a);return e.push(a),t}}function ePe(e,t){let n;return r;function r(...o){const s=e.length>o.length;let l;s&&o.push(a);try{l=e.apply(this,o)}catch(c){const u=c;if(s&&n)throw u;return a(u)}s||(l&&l.then&&typeof l.then=="function"?l.then(i,a):l instanceof Error?a(l):i(l))}function a(o,...s){n||(n=!0,t(o,...s))}function i(o){a(null,o)}}const Rs={basename:tPe,dirname:nPe,extname:rPe,join:aPe,sep:"/"};function tPe(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');Ug(e);let n=0,r=-1,a=e.length,i;if(t===void 0||t.length===0||t.length>e.length){for(;a--;)if(e.codePointAt(a)===47){if(i){n=a+1;break}}else r<0&&(i=!0,r=a+1);return r<0?"":e.slice(n,r)}if(t===e)return"";let o=-1,s=t.length-1;for(;a--;)if(e.codePointAt(a)===47){if(i){n=a+1;break}}else o<0&&(i=!0,o=a+1),s>-1&&(e.codePointAt(a)===t.codePointAt(s--)?s<0&&(r=a):(s=-1,r=o));return n===r?r=o:r<0&&(r=e.length),e.slice(n,r)}function nPe(e){if(Ug(e),e.length===0)return".";let t=-1,n=e.length,r;for(;--n;)if(e.codePointAt(n)===47){if(r){t=n;break}}else r||(r=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function rPe(e){Ug(e);let t=e.length,n=-1,r=0,a=-1,i=0,o;for(;t--;){const s=e.codePointAt(t);if(s===47){if(o){r=t+1;break}continue}n<0&&(o=!0,n=t+1),s===46?a<0?a=t:i!==1&&(i=1):a>-1&&(i=-1)}return a<0||n<0||i===0||i===1&&a===n-1&&a===r+1?"":e.slice(a,n)}function aPe(...e){let t=-1,n;for(;++t<e.length;)Ug(e[t]),e[t]&&(n=n===void 0?e[t]:n+"/"+e[t]);return n===void 0?".":iPe(n)}function iPe(e){Ug(e);const t=e.codePointAt(0)===47;let n=oPe(e,!t);return n.length===0&&!t&&(n="."),n.length>0&&e.codePointAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function oPe(e,t){let n="",r=0,a=-1,i=0,o=-1,s,l;for(;++o<=e.length;){if(o<e.length)s=e.codePointAt(o);else{if(s===47)break;s=47}if(s===47){if(!(a===o-1||i===1))if(a!==o-1&&i===2){if(n.length<2||r!==2||n.codePointAt(n.length-1)!==46||n.codePointAt(n.length-2)!==46){if(n.length>2){if(l=n.lastIndexOf("/"),l!==n.length-1){l<0?(n="",r=0):(n=n.slice(0,l),r=n.length-1-n.lastIndexOf("/")),a=o,i=0;continue}}else if(n.length>0){n="",r=0,a=o,i=0;continue}}t&&(n=n.length>0?n+"/..":"..",r=2)}else n.length>0?n+="/"+e.slice(a+1,o):n=e.slice(a+1,o),r=o-a-1;a=o,i=0}else s===46&&i>-1?i++:i=-1}return n}function Ug(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const sPe={cwd:lPe};function lPe(){return"/"}function h4(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function cPe(e){if(typeof e=="string")e=new URL(e);else if(!h4(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if(e.protocol!=="file:"){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return uPe(e)}function uPe(e){if(e.hostname!==""){const r=new TypeError('File URL host must be "localhost" or empty on darwin');throw r.code="ERR_INVALID_FILE_URL_HOST",r}const t=e.pathname;let n=-1;for(;++n<t.length;)if(t.codePointAt(n)===37&&t.codePointAt(n+1)===50){const r=t.codePointAt(n+2);if(r===70||r===102){const a=new TypeError("File URL path must not include encoded / characters");throw a.code="ERR_INVALID_FILE_URL_PATH",a}}return decodeURIComponent(t)}const V2=["history","path","basename","stem","extname","dirname"];class jX{constructor(t){let n;t?h4(t)?n={path:t}:typeof t=="string"||dPe(t)?n={value:t}:n=t:n={},this.cwd=sPe.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let r=-1;for(;++r<V2.length;){const i=V2[r];i in n&&n[i]!==void 0&&n[i]!==null&&(this[i]=i==="history"?[...n[i]]:n[i])}let a;for(a in n)V2.includes(a)||(this[a]=n[a])}get basename(){return typeof this.path=="string"?Rs.basename(this.path):void 0}set basename(t){q2(t,"basename"),Y2(t,"basename"),this.path=Rs.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?Rs.dirname(this.path):void 0}set dirname(t){dF(this.basename,"dirname"),this.path=Rs.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?Rs.extname(this.path):void 0}set extname(t){if(Y2(t,"extname"),dF(this.dirname,"extname"),t){if(t.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(t.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=Rs.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){h4(t)&&(t=cPe(t)),q2(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?Rs.basename(this.path,this.extname):void 0}set stem(t){q2(t,"stem"),Y2(t,"stem"),this.path=Rs.join(this.dirname||"",t+(this.extname||""))}fail(t,n,r){const a=this.message(t,n,r);throw a.fatal=!0,a}info(t,n,r){const a=this.message(t,n,r);return a.fatal=void 0,a}message(t,n,r){const a=new Ba(t,n,r);return this.path&&(a.name=this.path+":"+a.name,a.file=this.path),a.fatal=!1,this.messages.push(a),a}toString(t){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(t||void 0).decode(this.value)}}function Y2(e,t){if(e&&e.includes(Rs.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+Rs.sep+"`")}function q2(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function dF(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function dPe(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const pPe=function(e){const r=this.constructor.prototype,a=r[e],i=function(){return a.apply(i,arguments)};Object.setPrototypeOf(i,r);const o=Object.getOwnPropertyNames(a);for(const s of o){const l=Object.getOwnPropertyDescriptor(a,s);l&&Object.defineProperty(i,s,l)}return i},fPe={}.hasOwnProperty;class X5 extends pPe{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=Jke()}copy(){const t=new X5;let n=-1;for(;++n<this.attachers.length;){const r=this.attachers[n];t.use(...r)}return t.data(G2(!0,{},this.namespace)),t}data(t,n){return typeof t=="string"?arguments.length===2?(K2("data",this.frozen),this.namespace[t]=n,this):fPe.call(this.namespace,t)&&this.namespace[t]||void 0:t?(K2("data",this.frozen),this.namespace=t,this):this.namespace}freeze(){if(this.frozen)return this;const t=this;for(;++this.freezeIndex<this.attachers.length;){const[n,...r]=this.attachers[this.freezeIndex];if(r[0]===!1)continue;r[0]===!0&&(r[0]=void 0);const a=n.call(t,...r);typeof a=="function"&&this.transformers.use(a)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(t){this.freeze();const n=tE(t),r=this.parser||this.Parser;return W2("parse",r),r(String(n),n)}process(t,n){const r=this;return this.freeze(),W2("process",this.parser||this.Parser),j2("process",this.compiler||this.Compiler),n?a(void 0,n):new Promise(a);function a(i,o){const s=tE(t),l=r.parse(s);r.run(l,s,function(u,p,f){if(u||!p||!f)return c(u);const h=p,g=r.stringify(h,f);gPe(g)?f.value=g:f.result=g,c(u,f)});function c(u,p){u||!p?o(u):i?i(p):n(void 0,p)}}}processSync(t){let n=!1,r;return this.freeze(),W2("processSync",this.parser||this.Parser),j2("processSync",this.compiler||this.Compiler),this.process(t,a),fF("processSync","process",n),r;function a(i,o){n=!0,aF(i),r=o}}run(t,n,r){pF(t),this.freeze();const a=this.transformers;return!r&&typeof n=="function"&&(r=n,n=void 0),r?i(void 0,r):new Promise(i);function i(o,s){const l=tE(n);a.run(t,l,c);function c(u,p,f){const h=p||t;u?s(u):o?o(h):r(void 0,h,f)}}}runSync(t,n){let r=!1,a;return this.run(t,n,i),fF("runSync","run",r),a;function i(o,s){aF(o),a=s,r=!0}}stringify(t,n){this.freeze();const r=tE(n),a=this.compiler||this.Compiler;return j2("stringify",a),pF(t),a(t,r)}use(t,...n){const r=this.attachers,a=this.namespace;if(K2("use",this.frozen),t!=null)if(typeof t=="function")l(t,n);else if(typeof t=="object")Array.isArray(t)?s(t):o(t);else throw new TypeError("Expected usable value, not `"+t+"`");return this;function i(c){if(typeof c=="function")l(c,[]);else if(typeof c=="object")if(Array.isArray(c)){const[u,...p]=c;l(u,p)}else o(c);else throw new TypeError("Expected usable value, not `"+c+"`")}function o(c){if(!("plugins"in c)&&!("settings"in c))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");s(c.plugins),c.settings&&(a.settings=G2(!0,a.settings,c.settings))}function s(c){let u=-1;if(c!=null)if(Array.isArray(c))for(;++u<c.length;){const p=c[u];i(p)}else throw new TypeError("Expected a list of plugins, not `"+c+"`")}function l(c,u){let p=-1,f=-1;for(;++p<r.length;)if(r[p][0]===c){f=p;break}if(f===-1)r.push([c,...u]);else if(u.length>0){let[h,...g]=u;const E=r[f][1];m4(E)&&m4(h)&&(h=G2(!0,E,h)),r[f]=[c,h,...g]}}}}const mPe=new X5().freeze();function W2(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function j2(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function K2(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function pF(e){if(!m4(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function fF(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function tE(e){return hPe(e)?e:new jX(e)}function hPe(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function gPe(e){return typeof e=="string"||_Pe(e)}function _Pe(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const EPe="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",mF=[],hF={allowDangerousHtml:!0},bPe=/^(https?|ircs?|mailto|xmpp)$/i,SPe=[{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:"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 vPe(e){const t=e.allowedElements,n=e.allowElement,r=e.children||"",a=e.className,i=e.components,o=e.disallowedElements,s=e.rehypePlugins||mF,l=e.remarkPlugins||mF,c=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...hF}:hF,u=e.skipHtml,p=e.unwrapDisallowed,f=e.urlTransform||yPe,h=mPe().use(ake).use(l).use(Xke,c).use(s),g=new jX;typeof r=="string"&&(g.value=r);for(const v of SPe)Object.hasOwn(e,v.from)&&(""+v.from+(v.to?"use `"+v.to+"` instead":"remove it")+EPe+v.id,void 0);const E=h.parse(g);let y=h.runSync(E,g);return a&&(y={type:"element",tagName:"div",properties:{className:a},children:y.type==="root"?y.children:[y]}),Bg(y,b),$Le(y,{Fragment:_.Fragment,components:i,ignoreInvalidStyle:!0,jsx:_.jsx,jsxs:_.jsxs,passKeys:!0,passNode:!0});function b(v,C,T){if(v.type==="raw"&&T&&typeof C=="number")return u?T.children.splice(C,1):T.children[C]={type:"text",value:v.value},C;if(v.type==="element"){let O;for(O in $2)if(Object.hasOwn($2,O)&&Object.hasOwn(v.properties,O)){const A=v.properties[O],N=$2[O];(N===null||N.includes(v.tagName))&&(v.properties[O]=f(String(A||""),O,v))}}if(v.type==="element"){let O=t?!t.includes(v.tagName):o?o.includes(v.tagName):!1;if(!O&&n&&typeof C=="number"&&(O=!n(v,C,T)),O&&T&&typeof C=="number")return p&&v.children?T.children.splice(C,1,...v.children):T.children.splice(C,1),C}}}function yPe(e){const t=e.indexOf(":"),n=e.indexOf("?"),r=e.indexOf("#"),a=e.indexOf("/");return t<0||a>-1&&t>a||n>-1&&t>n||r>-1&&t>r||bPe.test(e.slice(0,t))?e:""}const gF=/[#.]/g;function TPe(e,t){const n=e||"",r={};let a=0,i,o;for(;a<n.length;){gF.lastIndex=a;const s=gF.exec(n),l=n.slice(a,s?s.index:n.length);l&&(i?i==="#"?r.id=l:Array.isArray(r.className)?r.className.push(l):r.className=[l]:o=l,a+=l.length),s&&(i=s[0],a++)}return{type:"element",tagName:o||t||"div",properties:r,children:[]}}const CPe=new Set(["button","menu","reset","submit"]),g4={}.hasOwnProperty;function KX(e,t,n){const r=n&&OPe(n);function a(i,o,...s){let l=-1,c;if(i==null){c={type:"root",children:[]};const u=o;s.unshift(u)}else if(c=TPe(i,t),c.tagName=c.tagName.toLowerCase(),r&&g4.call(r,c.tagName)&&(c.tagName=r[c.tagName]),RPe(o,c.tagName)){let u;for(u in o)g4.call(o,u)&&xPe(e,c.properties,u,o[u])}else s.unshift(o);for(;++l<s.length;)_4(c.children,s[l]);return c.type==="element"&&c.tagName==="template"&&(c.content={type:"root",children:c.children},c.children=[]),c}return a}function RPe(e,t){return e==null||typeof e!="object"||Array.isArray(e)?!1:t==="input"||!e.type||typeof e.type!="string"?!0:"children"in e&&Array.isArray(e.children)?!1:t==="button"?CPe.has(e.type.toLowerCase()):!("value"in e)}function xPe(e,t,n,r){const a=_y(e,n);let i=-1,o;if(r!=null){if(typeof r=="number"){if(Number.isNaN(r))return;o=r}else typeof r=="boolean"?o=r:typeof r=="string"?a.spaceSeparated?o=w9(r):a.commaSeparated?o=x9(r):a.commaOrSpaceSeparated?o=w9(x9(r).join(" ")):o=_F(a,a.property,r):Array.isArray(r)?o=r.concat():o=a.property==="style"?APe(r):String(r);if(Array.isArray(o)){const s=[];for(;++i<o.length;){const l=_F(a,a.property,o[i]);s[i]=l}o=s}if(a.property==="className"&&Array.isArray(t.className)){const s=o;o=t.className.concat(s)}t[a.property]=o}}function _4(e,t){let n=-1;if(t!=null)if(typeof t=="string"||typeof t=="number")e.push({type:"text",value:String(t)});else if(Array.isArray(t))for(;++n<t.length;)_4(e,t[n]);else if(typeof t=="object"&&"type"in t)t.type==="root"?_4(e,t.children):e.push(t);else throw new Error("Expected node, nodes, or string, got `"+t+"`")}function _F(e,t,n){if(typeof n=="string"){if(e.number&&n&&!Number.isNaN(Number(n)))return Number(n);if((e.boolean||e.overloadedBoolean)&&(n===""||Wh(n)===Wh(t)))return!0}return n}function APe(e){const t=[];let n;for(n in e)g4.call(e,n)&&t.push([n,e[n]].join(": "));return t.join("; ")}function OPe(e){const t={};let n=-1;for(;++n<e.length;)t[e[n].toLowerCase()]=e[n];return t}const NPe=["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","solidColor","textArea","textPath"],QX=KX(kg,"div"),XX=KX(ou,"g",NPe),Is={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function IPe(e,t){return ZX(e,t||{})||{type:"root",children:[]}}function ZX(e,t){const n=wPe(e,t);return n&&t.afterTransform&&t.afterTransform(e,n),n}function wPe(e,t){switch(e.nodeType){case 1:return kPe(e,t);case 3:return LPe(e);case 8:return MPe(e);case 9:return EF(e,t);case 10:return DPe();case 11:return EF(e,t);default:return}}function EF(e,t){return{type:"root",children:JX(e,t)}}function DPe(){return{type:"doctype"}}function LPe(e){return{type:"text",value:e.nodeValue||""}}function MPe(e){return{type:"comment",value:e.nodeValue||""}}function kPe(e,t){const n=e.namespaceURI,r=n===Is.svg?XX:QX,a=n===Is.html?e.tagName.toLowerCase():e.tagName,i=n===Is.html&&a==="template"?e.content:e,o=e.getAttributeNames(),s={};let l=-1;for(;++l<o.length;)s[o[l]]=e.getAttribute(o[l])||"";return r(a,s,JX(i,t))}function JX(e,t){const n=e.childNodes,r=[];let a=-1;for(;++a<n.length;){const i=ZX(n[a],t);i!==void 0&&r.push(i)}return r}const PPe=new DOMParser;function FPe(e,t){const n=t!=null&&t.fragment?BPe(e):PPe.parseFromString(e,"text/html");return IPe(n)}function BPe(e){const t=document.createElement("template");return t.innerHTML=e,t.content}const bF=function(e,t,n){const r=Fg(n);if(!e||!e.type||!e.children)throw new Error("Expected parent node");if(typeof t=="number"){if(t<0||t===Number.POSITIVE_INFINITY)throw new Error("Expected positive finite number as index")}else if(t=e.children.indexOf(t),t<0)throw new Error("Expected child node or index");for(;++t<e.children.length;)if(r(e.children[t],t,e))return e.children[t]},yd=function(e){if(e==null)return zPe;if(typeof e=="string")return $Pe(e);if(typeof e=="object")return UPe(e);if(typeof e=="function")return Z5(e);throw new Error("Expected function, string, or array as `test`")};function UPe(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=yd(e[n]);return Z5(r);function r(...a){let i=-1;for(;++i<t.length;)if(t[i].apply(this,a))return!0;return!1}}function $Pe(e){return Z5(t);function t(n){return n.tagName===e}}function Z5(e){return t;function t(n,r,a){return!!(HPe(n)&&e.call(this,n,typeof r=="number"?r:void 0,a||void 0))}}function zPe(e){return!!(e&&typeof e=="object"&&"type"in e&&e.type==="element"&&"tagName"in e&&typeof e.tagName=="string")}function HPe(e){return e!==null&&typeof e=="object"&&"type"in e&&"tagName"in e}const SF=/\n/g,vF=/[\t ]+/g,E4=yd("br"),yF=yd(QPe),GPe=yd("p"),TF=yd("tr"),VPe=yd(["datalist","head","noembed","noframes","noscript","rp","script","style","template","title",KPe,XPe]),eZ=yd(["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 YPe(e,t){const n=t||{},r="children"in e?e.children:[],a=eZ(e),i=rZ(e,{whitespace:n.whitespace||"normal",breakBefore:!1,breakAfter:!1}),o=[];(e.type==="text"||e.type==="comment")&&o.push(...nZ(e,{whitespace:i,breakBefore:!0,breakAfter:!0}));let s=-1;for(;++s<r.length;)o.push(...tZ(r[s],e,{whitespace:i,breakBefore:s?void 0:a,breakAfter:s<r.length-1?E4(r[s+1]):a}));const l=[];let c;for(s=-1;++s<o.length;){const u=o[s];typeof u=="number"?c!==void 0&&u>c&&(c=u):u&&(c!==void 0&&c>-1&&l.push(`
351
+ `},a),i}function Xke(e,t){return e&&"run"in e?async function(n,r){const a=rF(n,{file:r,...t});await e.run(a,r)}:function(n,r){return rF(n,{file:r,...t||e})}}function aF(e){if(e)throw e}var WE=Object.prototype.hasOwnProperty,WX=Object.prototype.toString,iF=Object.defineProperty,oF=Object.getOwnPropertyDescriptor,sF=function(t){return typeof Array.isArray=="function"?Array.isArray(t):WX.call(t)==="[object Array]"},lF=function(t){if(!t||WX.call(t)!=="[object Object]")return!1;var n=WE.call(t,"constructor"),r=t.constructor&&t.constructor.prototype&&WE.call(t.constructor.prototype,"isPrototypeOf");if(t.constructor&&!n&&!r)return!1;var a;for(a in t);return typeof a>"u"||WE.call(t,a)},cF=function(t,n){iF&&n.name==="__proto__"?iF(t,n.name,{enumerable:!0,configurable:!0,value:n.newValue,writable:!0}):t[n.name]=n.newValue},uF=function(t,n){if(n==="__proto__")if(WE.call(t,n)){if(oF)return oF(t,n).value}else return;return t[n]},Zke=function e(){var t,n,r,a,i,o,s=arguments[0],l=1,c=arguments.length,u=!1;for(typeof s=="boolean"&&(u=s,s=arguments[1]||{},l=2),(s==null||typeof s!="object"&&typeof s!="function")&&(s={});l<c;++l)if(t=arguments[l],t!=null)for(n in t)r=uF(s,n),a=uF(t,n),s!==a&&(u&&a&&(lF(a)||(i=sF(a)))?(i?(i=!1,o=r&&sF(r)?r:[]):o=r&&lF(r)?r:{},cF(s,{name:n,newValue:e(u,o,a)})):typeof a<"u"&&cF(s,{name:n,newValue:a}));return s};const G2=xa(Zke);function m4(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function Jke(){const e=[],t={run:n,use:r};return t;function n(...a){let i=-1;const o=a.pop();if(typeof o!="function")throw new TypeError("Expected function as last argument, not "+o);s(null,...a);function s(l,...c){const u=e[++i];let p=-1;if(l){o(l);return}for(;++p<a.length;)(c[p]===null||c[p]===void 0)&&(c[p]=a[p]);a=c,u?ePe(u,s)(...c):o(null,...c)}}function r(a){if(typeof a!="function")throw new TypeError("Expected `middelware` to be a function, not "+a);return e.push(a),t}}function ePe(e,t){let n;return r;function r(...o){const s=e.length>o.length;let l;s&&o.push(a);try{l=e.apply(this,o)}catch(c){const u=c;if(s&&n)throw u;return a(u)}s||(l&&l.then&&typeof l.then=="function"?l.then(i,a):l instanceof Error?a(l):i(l))}function a(o,...s){n||(n=!0,t(o,...s))}function i(o){a(null,o)}}const Rs={basename:tPe,dirname:nPe,extname:rPe,join:aPe,sep:"/"};function tPe(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');Ug(e);let n=0,r=-1,a=e.length,i;if(t===void 0||t.length===0||t.length>e.length){for(;a--;)if(e.codePointAt(a)===47){if(i){n=a+1;break}}else r<0&&(i=!0,r=a+1);return r<0?"":e.slice(n,r)}if(t===e)return"";let o=-1,s=t.length-1;for(;a--;)if(e.codePointAt(a)===47){if(i){n=a+1;break}}else o<0&&(i=!0,o=a+1),s>-1&&(e.codePointAt(a)===t.codePointAt(s--)?s<0&&(r=a):(s=-1,r=o));return n===r?r=o:r<0&&(r=e.length),e.slice(n,r)}function nPe(e){if(Ug(e),e.length===0)return".";let t=-1,n=e.length,r;for(;--n;)if(e.codePointAt(n)===47){if(r){t=n;break}}else r||(r=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function rPe(e){Ug(e);let t=e.length,n=-1,r=0,a=-1,i=0,o;for(;t--;){const s=e.codePointAt(t);if(s===47){if(o){r=t+1;break}continue}n<0&&(o=!0,n=t+1),s===46?a<0?a=t:i!==1&&(i=1):a>-1&&(i=-1)}return a<0||n<0||i===0||i===1&&a===n-1&&a===r+1?"":e.slice(a,n)}function aPe(...e){let t=-1,n;for(;++t<e.length;)Ug(e[t]),e[t]&&(n=n===void 0?e[t]:n+"/"+e[t]);return n===void 0?".":iPe(n)}function iPe(e){Ug(e);const t=e.codePointAt(0)===47;let n=oPe(e,!t);return n.length===0&&!t&&(n="."),n.length>0&&e.codePointAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function oPe(e,t){let n="",r=0,a=-1,i=0,o=-1,s,l;for(;++o<=e.length;){if(o<e.length)s=e.codePointAt(o);else{if(s===47)break;s=47}if(s===47){if(!(a===o-1||i===1))if(a!==o-1&&i===2){if(n.length<2||r!==2||n.codePointAt(n.length-1)!==46||n.codePointAt(n.length-2)!==46){if(n.length>2){if(l=n.lastIndexOf("/"),l!==n.length-1){l<0?(n="",r=0):(n=n.slice(0,l),r=n.length-1-n.lastIndexOf("/")),a=o,i=0;continue}}else if(n.length>0){n="",r=0,a=o,i=0;continue}}t&&(n=n.length>0?n+"/..":"..",r=2)}else n.length>0?n+="/"+e.slice(a+1,o):n=e.slice(a+1,o),r=o-a-1;a=o,i=0}else s===46&&i>-1?i++:i=-1}return n}function Ug(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const sPe={cwd:lPe};function lPe(){return"/"}function h4(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function cPe(e){if(typeof e=="string")e=new URL(e);else if(!h4(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if(e.protocol!=="file:"){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return uPe(e)}function uPe(e){if(e.hostname!==""){const r=new TypeError('File URL host must be "localhost" or empty on darwin');throw r.code="ERR_INVALID_FILE_URL_HOST",r}const t=e.pathname;let n=-1;for(;++n<t.length;)if(t.codePointAt(n)===37&&t.codePointAt(n+1)===50){const r=t.codePointAt(n+2);if(r===70||r===102){const a=new TypeError("File URL path must not include encoded / characters");throw a.code="ERR_INVALID_FILE_URL_PATH",a}}return decodeURIComponent(t)}const V2=["history","path","basename","stem","extname","dirname"];class jX{constructor(t){let n;t?h4(t)?n={path:t}:typeof t=="string"||dPe(t)?n={value:t}:n=t:n={},this.cwd=sPe.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let r=-1;for(;++r<V2.length;){const i=V2[r];i in n&&n[i]!==void 0&&n[i]!==null&&(this[i]=i==="history"?[...n[i]]:n[i])}let a;for(a in n)V2.includes(a)||(this[a]=n[a])}get basename(){return typeof this.path=="string"?Rs.basename(this.path):void 0}set basename(t){q2(t,"basename"),Y2(t,"basename"),this.path=Rs.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?Rs.dirname(this.path):void 0}set dirname(t){dF(this.basename,"dirname"),this.path=Rs.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?Rs.extname(this.path):void 0}set extname(t){if(Y2(t,"extname"),dF(this.dirname,"extname"),t){if(t.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(t.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=Rs.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){h4(t)&&(t=cPe(t)),q2(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?Rs.basename(this.path,this.extname):void 0}set stem(t){q2(t,"stem"),Y2(t,"stem"),this.path=Rs.join(this.dirname||"",t+(this.extname||""))}fail(t,n,r){const a=this.message(t,n,r);throw a.fatal=!0,a}info(t,n,r){const a=this.message(t,n,r);return a.fatal=void 0,a}message(t,n,r){const a=new Ba(t,n,r);return this.path&&(a.name=this.path+":"+a.name,a.file=this.path),a.fatal=!1,this.messages.push(a),a}toString(t){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(t||void 0).decode(this.value)}}function Y2(e,t){if(e&&e.includes(Rs.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+Rs.sep+"`")}function q2(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function dF(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function dPe(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const pPe=function(e){const r=this.constructor.prototype,a=r[e],i=function(){return a.apply(i,arguments)};return Object.setPrototypeOf(i,r),i},fPe={}.hasOwnProperty;class X5 extends pPe{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=Jke()}copy(){const t=new X5;let n=-1;for(;++n<this.attachers.length;){const r=this.attachers[n];t.use(...r)}return t.data(G2(!0,{},this.namespace)),t}data(t,n){return typeof t=="string"?arguments.length===2?(K2("data",this.frozen),this.namespace[t]=n,this):fPe.call(this.namespace,t)&&this.namespace[t]||void 0:t?(K2("data",this.frozen),this.namespace=t,this):this.namespace}freeze(){if(this.frozen)return this;const t=this;for(;++this.freezeIndex<this.attachers.length;){const[n,...r]=this.attachers[this.freezeIndex];if(r[0]===!1)continue;r[0]===!0&&(r[0]=void 0);const a=n.call(t,...r);typeof a=="function"&&this.transformers.use(a)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(t){this.freeze();const n=tE(t),r=this.parser||this.Parser;return W2("parse",r),r(String(n),n)}process(t,n){const r=this;return this.freeze(),W2("process",this.parser||this.Parser),j2("process",this.compiler||this.Compiler),n?a(void 0,n):new Promise(a);function a(i,o){const s=tE(t),l=r.parse(s);r.run(l,s,function(u,p,f){if(u||!p||!f)return c(u);const h=p,g=r.stringify(h,f);gPe(g)?f.value=g:f.result=g,c(u,f)});function c(u,p){u||!p?o(u):i?i(p):n(void 0,p)}}}processSync(t){let n=!1,r;return this.freeze(),W2("processSync",this.parser||this.Parser),j2("processSync",this.compiler||this.Compiler),this.process(t,a),fF("processSync","process",n),r;function a(i,o){n=!0,aF(i),r=o}}run(t,n,r){pF(t),this.freeze();const a=this.transformers;return!r&&typeof n=="function"&&(r=n,n=void 0),r?i(void 0,r):new Promise(i);function i(o,s){const l=tE(n);a.run(t,l,c);function c(u,p,f){const h=p||t;u?s(u):o?o(h):r(void 0,h,f)}}}runSync(t,n){let r=!1,a;return this.run(t,n,i),fF("runSync","run",r),a;function i(o,s){aF(o),a=s,r=!0}}stringify(t,n){this.freeze();const r=tE(n),a=this.compiler||this.Compiler;return j2("stringify",a),pF(t),a(t,r)}use(t,...n){const r=this.attachers,a=this.namespace;if(K2("use",this.frozen),t!=null)if(typeof t=="function")l(t,n);else if(typeof t=="object")Array.isArray(t)?s(t):o(t);else throw new TypeError("Expected usable value, not `"+t+"`");return this;function i(c){if(typeof c=="function")l(c,[]);else if(typeof c=="object")if(Array.isArray(c)){const[u,...p]=c;l(u,p)}else o(c);else throw new TypeError("Expected usable value, not `"+c+"`")}function o(c){if(!("plugins"in c)&&!("settings"in c))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");s(c.plugins),c.settings&&(a.settings=G2(!0,a.settings,c.settings))}function s(c){let u=-1;if(c!=null)if(Array.isArray(c))for(;++u<c.length;){const p=c[u];i(p)}else throw new TypeError("Expected a list of plugins, not `"+c+"`")}function l(c,u){let p=-1,f=-1;for(;++p<r.length;)if(r[p][0]===c){f=p;break}if(f===-1)r.push([c,...u]);else if(u.length>0){let[h,...g]=u;const E=r[f][1];m4(E)&&m4(h)&&(h=G2(!0,E,h)),r[f]=[c,h,...g]}}}}const mPe=new X5().freeze();function W2(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function j2(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function K2(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function pF(e){if(!m4(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function fF(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function tE(e){return hPe(e)?e:new jX(e)}function hPe(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function gPe(e){return typeof e=="string"||_Pe(e)}function _Pe(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const EPe="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",mF=[],hF={allowDangerousHtml:!0},bPe=/^(https?|ircs?|mailto|xmpp)$/i,SPe=[{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:"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 vPe(e){const t=e.allowedElements,n=e.allowElement,r=e.children||"",a=e.className,i=e.components,o=e.disallowedElements,s=e.rehypePlugins||mF,l=e.remarkPlugins||mF,c=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...hF}:hF,u=e.skipHtml,p=e.unwrapDisallowed,f=e.urlTransform||yPe,h=mPe().use(ake).use(l).use(Xke,c).use(s),g=new jX;typeof r=="string"&&(g.value=r);for(const v of SPe)Object.hasOwn(e,v.from)&&(""+v.from+(v.to?"use `"+v.to+"` instead":"remove it")+EPe+v.id,void 0);const E=h.parse(g);let y=h.runSync(E,g);return a&&(y={type:"element",tagName:"div",properties:{className:a},children:y.type==="root"?y.children:[y]}),Bg(y,b),$Le(y,{Fragment:_.Fragment,components:i,ignoreInvalidStyle:!0,jsx:_.jsx,jsxs:_.jsxs,passKeys:!0,passNode:!0});function b(v,C,T){if(v.type==="raw"&&T&&typeof C=="number")return u?T.children.splice(C,1):T.children[C]={type:"text",value:v.value},C;if(v.type==="element"){let O;for(O in $2)if(Object.hasOwn($2,O)&&Object.hasOwn(v.properties,O)){const A=v.properties[O],N=$2[O];(N===null||N.includes(v.tagName))&&(v.properties[O]=f(String(A||""),O,v))}}if(v.type==="element"){let O=t?!t.includes(v.tagName):o?o.includes(v.tagName):!1;if(!O&&n&&typeof C=="number"&&(O=!n(v,C,T)),O&&T&&typeof C=="number")return p&&v.children?T.children.splice(C,1,...v.children):T.children.splice(C,1),C}}}function yPe(e){const t=e.indexOf(":"),n=e.indexOf("?"),r=e.indexOf("#"),a=e.indexOf("/");return t<0||a>-1&&t>a||n>-1&&t>n||r>-1&&t>r||bPe.test(e.slice(0,t))?e:""}const gF=/[#.]/g;function TPe(e,t){const n=e||"",r={};let a=0,i,o;for(;a<n.length;){gF.lastIndex=a;const s=gF.exec(n),l=n.slice(a,s?s.index:n.length);l&&(i?i==="#"?r.id=l:Array.isArray(r.className)?r.className.push(l):r.className=[l]:o=l,a+=l.length),s&&(i=s[0],a++)}return{type:"element",tagName:o||t||"div",properties:r,children:[]}}const CPe=new Set(["button","menu","reset","submit"]),g4={}.hasOwnProperty;function KX(e,t,n){const r=n&&OPe(n);function a(i,o,...s){let l=-1,c;if(i==null){c={type:"root",children:[]};const u=o;s.unshift(u)}else if(c=TPe(i,t),c.tagName=c.tagName.toLowerCase(),r&&g4.call(r,c.tagName)&&(c.tagName=r[c.tagName]),RPe(o,c.tagName)){let u;for(u in o)g4.call(o,u)&&xPe(e,c.properties,u,o[u])}else s.unshift(o);for(;++l<s.length;)_4(c.children,s[l]);return c.type==="element"&&c.tagName==="template"&&(c.content={type:"root",children:c.children},c.children=[]),c}return a}function RPe(e,t){return e==null||typeof e!="object"||Array.isArray(e)?!1:t==="input"||!e.type||typeof e.type!="string"?!0:"children"in e&&Array.isArray(e.children)?!1:t==="button"?CPe.has(e.type.toLowerCase()):!("value"in e)}function xPe(e,t,n,r){const a=_y(e,n);let i=-1,o;if(r!=null){if(typeof r=="number"){if(Number.isNaN(r))return;o=r}else typeof r=="boolean"?o=r:typeof r=="string"?a.spaceSeparated?o=w9(r):a.commaSeparated?o=x9(r):a.commaOrSpaceSeparated?o=w9(x9(r).join(" ")):o=_F(a,a.property,r):Array.isArray(r)?o=r.concat():o=a.property==="style"?APe(r):String(r);if(Array.isArray(o)){const s=[];for(;++i<o.length;){const l=_F(a,a.property,o[i]);s[i]=l}o=s}if(a.property==="className"&&Array.isArray(t.className)){const s=o;o=t.className.concat(s)}t[a.property]=o}}function _4(e,t){let n=-1;if(t!=null)if(typeof t=="string"||typeof t=="number")e.push({type:"text",value:String(t)});else if(Array.isArray(t))for(;++n<t.length;)_4(e,t[n]);else if(typeof t=="object"&&"type"in t)t.type==="root"?_4(e,t.children):e.push(t);else throw new Error("Expected node, nodes, or string, got `"+t+"`")}function _F(e,t,n){if(typeof n=="string"){if(e.number&&n&&!Number.isNaN(Number(n)))return Number(n);if((e.boolean||e.overloadedBoolean)&&(n===""||Wh(n)===Wh(t)))return!0}return n}function APe(e){const t=[];let n;for(n in e)g4.call(e,n)&&t.push([n,e[n]].join(": "));return t.join("; ")}function OPe(e){const t={};let n=-1;for(;++n<e.length;)t[e[n].toLowerCase()]=e[n];return t}const NPe=["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","solidColor","textArea","textPath"],QX=KX(kg,"div"),XX=KX(ou,"g",NPe),Is={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function IPe(e,t){return ZX(e,t||{})||{type:"root",children:[]}}function ZX(e,t){const n=wPe(e,t);return n&&t.afterTransform&&t.afterTransform(e,n),n}function wPe(e,t){switch(e.nodeType){case 1:return kPe(e,t);case 3:return LPe(e);case 8:return MPe(e);case 9:return EF(e,t);case 10:return DPe();case 11:return EF(e,t);default:return}}function EF(e,t){return{type:"root",children:JX(e,t)}}function DPe(){return{type:"doctype"}}function LPe(e){return{type:"text",value:e.nodeValue||""}}function MPe(e){return{type:"comment",value:e.nodeValue||""}}function kPe(e,t){const n=e.namespaceURI,r=n===Is.svg?XX:QX,a=n===Is.html?e.tagName.toLowerCase():e.tagName,i=n===Is.html&&a==="template"?e.content:e,o=e.getAttributeNames(),s={};let l=-1;for(;++l<o.length;)s[o[l]]=e.getAttribute(o[l])||"";return r(a,s,JX(i,t))}function JX(e,t){const n=e.childNodes,r=[];let a=-1;for(;++a<n.length;){const i=ZX(n[a],t);i!==void 0&&r.push(i)}return r}const PPe=new DOMParser;function FPe(e,t){const n=t!=null&&t.fragment?BPe(e):PPe.parseFromString(e,"text/html");return IPe(n)}function BPe(e){const t=document.createElement("template");return t.innerHTML=e,t.content}const bF=function(e,t,n){const r=Fg(n);if(!e||!e.type||!e.children)throw new Error("Expected parent node");if(typeof t=="number"){if(t<0||t===Number.POSITIVE_INFINITY)throw new Error("Expected positive finite number as index")}else if(t=e.children.indexOf(t),t<0)throw new Error("Expected child node or index");for(;++t<e.children.length;)if(r(e.children[t],t,e))return e.children[t]},yd=function(e){if(e==null)return zPe;if(typeof e=="string")return $Pe(e);if(typeof e=="object")return UPe(e);if(typeof e=="function")return Z5(e);throw new Error("Expected function, string, or array as `test`")};function UPe(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=yd(e[n]);return Z5(r);function r(...a){let i=-1;for(;++i<t.length;)if(t[i].apply(this,a))return!0;return!1}}function $Pe(e){return Z5(t);function t(n){return n.tagName===e}}function Z5(e){return t;function t(n,r,a){return!!(HPe(n)&&e.call(this,n,typeof r=="number"?r:void 0,a||void 0))}}function zPe(e){return!!(e&&typeof e=="object"&&"type"in e&&e.type==="element"&&"tagName"in e&&typeof e.tagName=="string")}function HPe(e){return e!==null&&typeof e=="object"&&"type"in e&&"tagName"in e}const SF=/\n/g,vF=/[\t ]+/g,E4=yd("br"),yF=yd(QPe),GPe=yd("p"),TF=yd("tr"),VPe=yd(["datalist","head","noembed","noframes","noscript","rp","script","style","template","title",KPe,XPe]),eZ=yd(["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 YPe(e,t){const n=t||{},r="children"in e?e.children:[],a=eZ(e),i=rZ(e,{whitespace:n.whitespace||"normal",breakBefore:!1,breakAfter:!1}),o=[];(e.type==="text"||e.type==="comment")&&o.push(...nZ(e,{whitespace:i,breakBefore:!0,breakAfter:!0}));let s=-1;for(;++s<r.length;)o.push(...tZ(r[s],e,{whitespace:i,breakBefore:s?void 0:a,breakAfter:s<r.length-1?E4(r[s+1]):a}));const l=[];let c;for(s=-1;++s<o.length;){const u=o[s];typeof u=="number"?c!==void 0&&u>c&&(c=u):u&&(c!==void 0&&c>-1&&l.push(`
352
352
  `.repeat(c)||" "),c=-1,l.push(u))}return l.join("")}function tZ(e,t,n){return e.type==="element"?qPe(e,t,n):e.type==="text"?n.whitespace==="normal"?nZ(e,n):WPe(e):[]}function qPe(e,t,n){const r=rZ(e,n),a=e.children||[];let i=-1,o=[];if(VPe(e))return o;let s,l;for(E4(e)||TF(e)&&bF(t,e,TF)?l=`
353
353
  `:GPe(e)?(s=2,l=2):eZ(e)&&(s=1,l=1);++i<a.length;)o=o.concat(tZ(a[i],e,{whitespace:r,breakBefore:i?void 0:s,breakAfter:i<a.length-1?E4(a[i+1]):l}));return yF(e)&&bF(t,e,yF)&&o.push(" "),s&&o.unshift(s),l&&o.push(l),o}function nZ(e,t){const n=String(e.value),r=[],a=[];let i=0;for(;i<=n.length;){SF.lastIndex=i;const l=SF.exec(n),c=l&&"index"in l?l.index:n.length;r.push(jPe(n.slice(i,c).replace(/[\u061C\u200E\u200F\u202A-\u202E\u2066-\u2069]/g,""),i===0?t.breakBefore:!0,c===n.length?t.breakAfter:!0)),i=c+1}let o=-1,s;for(;++o<r.length;)r[o].charCodeAt(r[o].length-1)===8203||o<r.length-1&&r[o+1].charCodeAt(0)===8203?(a.push(r[o]),s=void 0):r[o]?(typeof s=="number"&&a.push(s),a.push(r[o]),s=0):(o===0||o===r.length-1)&&a.push(0);return a}function WPe(e){return[String(e.value)]}function jPe(e,t,n){const r=[];let a=0,i;for(;a<e.length;){vF.lastIndex=a;const o=vF.exec(e);i=o?o.index:e.length,!a&&!i&&o&&!t&&r.push(""),a!==i&&r.push(e.slice(a,i)),a=o?i+o[0].length:i}return a!==i&&!n&&r.push(""),r.join(" ")}function rZ(e,t){if(e.type==="element"){const n=e.properties||{};switch(e.tagName){case"listing":case"plaintext":case"xmp":return"pre";case"nobr":return"nowrap";case"pre":return n.wrap?"pre-wrap":"pre";case"td":case"th":return n.noWrap?"nowrap":t.whitespace;case"textarea":return"pre-wrap"}}return t.whitespace}function KPe(e){return!!(e.properties||{}).hidden}function QPe(e){return e.tagName==="td"||e.tagName==="th"}function XPe(e){return e.tagName==="dialog"&&!(e.properties||{}).open}class Vi{constructor(t,n,r){this.lexer=void 0,this.start=void 0,this.end=void 0,this.lexer=t,this.start=n,this.end=r}static range(t,n){return n?!t||!t.loc||!n.loc||t.loc.lexer!==n.loc.lexer?null:new Vi(t.loc.lexer,t.loc.start,n.loc.end):t&&t.loc}}class Do{constructor(t,n){this.text=void 0,this.loc=void 0,this.noexpand=void 0,this.treatAsRelax=void 0,this.text=t,this.loc=n}range(t,n){return new Do(n,Vi.range(this,t))}}class mt{constructor(t,n){this.name=void 0,this.position=void 0,this.length=void 0,this.rawMessage=void 0;var r="KaTeX parse error: "+t,a,i,o=n&&n.loc;if(o&&o.start<=o.end){var s=o.lexer.input;a=o.start,i=o.end,a===s.length?r+=" at end of input: ":r+=" at position "+(a+1)+": ";var l=s.slice(a,i).replace(/[^]/g,"$&̲"),c;a>15?c="…"+s.slice(a-15,a):c=s.slice(0,a);var u;i+15<s.length?u=s.slice(i,i+15)+"…":u=s.slice(i),r+=c+l+u}var p=new Error(r);return p.name="ParseError",p.__proto__=mt.prototype,p.position=a,a!=null&&i!=null&&(p.length=i-a),p.rawMessage=t,p}}mt.prototype.__proto__=Error.prototype;var ZPe=function(t,n){return t.indexOf(n)!==-1},JPe=function(t,n){return t===void 0?n:t},e7e=/([A-Z])/g,t7e=function(t){return t.replace(e7e,"-$1").toLowerCase()},n7e={"&":"&amp;",">":"&gt;","<":"&lt;",'"':"&quot;","'":"&#x27;"},r7e=/[&><"']/g;function a7e(e){return String(e).replace(r7e,t=>n7e[t])}var aZ=function e(t){return t.type==="ordgroup"||t.type==="color"?t.body.length===1?e(t.body[0]):t:t.type==="font"?e(t.body):t},i7e=function(t){var n=aZ(t);return n.type==="mathord"||n.type==="textord"||n.type==="atom"},o7e=function(t){if(!t)throw new Error("Expected non-null, but got "+String(t));return t},s7e=function(t){var n=/^[\x00-\x20]*([^\\/#?]*?)(:|&#0*58|&#x0*3a|&colon)/i.exec(t);return n?n[2]!==":"||!/^[a-zA-Z][a-zA-Z0-9+\-.]*$/.test(n[1])?null:n[1].toLowerCase():"_relative"},Pt={contains:ZPe,deflt:JPe,escape:a7e,hyphenate:t7e,getBaseElem:aZ,isCharacterBox:i7e,protocolFromUrl:s7e},jE={displayMode:{type:"boolean",description:"Render math in display mode, which puts the math in display style (so \\int and \\sum are large, for example), and centers the math on the page on its own line.",cli:"-d, --display-mode"},output:{type:{enum:["htmlAndMathml","html","mathml"]},description:"Determines the markup language of the output.",cli:"-F, --format <type>"},leqno:{type:"boolean",description:"Render display math in leqno style (left-justified tags)."},fleqn:{type:"boolean",description:"Render display math flush left."},throwOnError:{type:"boolean",default:!0,cli:"-t, --no-throw-on-error",cliDescription:"Render errors (in the color given by --error-color) instead of throwing a ParseError exception when encountering an error."},errorColor:{type:"string",default:"#cc0000",cli:"-c, --error-color <color>",cliDescription:"A color string given in the format 'rgb' or 'rrggbb' (no #). This option determines the color of errors rendered by the -t option.",cliProcessor:e=>"#"+e},macros:{type:"object",cli:"-m, --macro <def>",cliDescription:"Define custom macro of the form '\\foo:expansion' (use multiple -m arguments for multiple macros).",cliDefault:[],cliProcessor:(e,t)=>(t.push(e),t)},minRuleThickness:{type:"number",description:"Specifies a minimum thickness, in ems, for fraction lines, `\\sqrt` top lines, `{array}` vertical lines, `\\hline`, `\\hdashline`, `\\underline`, `\\overline`, and the borders of `\\fbox`, `\\boxed`, and `\\fcolorbox`.",processor:e=>Math.max(0,e),cli:"--min-rule-thickness <size>",cliProcessor:parseFloat},colorIsTextColor:{type:"boolean",description:"Makes \\color behave like LaTeX's 2-argument \\textcolor, instead of LaTeX's one-argument \\color mode change.",cli:"-b, --color-is-text-color"},strict:{type:[{enum:["warn","ignore","error"]},"boolean","function"],description:"Turn on strict / LaTeX faithfulness mode, which throws an error if the input uses features that are not supported by LaTeX.",cli:"-S, --strict",cliDefault:!1},trust:{type:["boolean","function"],description:"Trust the input, enabling all HTML features such as \\url.",cli:"-T, --trust"},maxSize:{type:"number",default:1/0,description:"If non-zero, all user-specified sizes, e.g. in \\rule{500em}{500em}, will be capped to maxSize ems. Otherwise, elements and spaces can be arbitrarily large",processor:e=>Math.max(0,e),cli:"-s, --max-size <n>",cliProcessor:parseInt},maxExpand:{type:"number",default:1e3,description:"Limit the number of macro expansions to the specified number, to prevent e.g. infinite macro loops. If set to Infinity, the macro expander will try to fully expand as in LaTeX.",processor:e=>Math.max(0,e),cli:"-e, --max-expand <n>",cliProcessor:e=>e==="Infinity"?1/0:parseInt(e)},globalGroup:{type:"boolean",cli:!1}};function l7e(e){if(e.default)return e.default;var t=e.type,n=Array.isArray(t)?t[0]:t;if(typeof n!="string")return n.enum[0];switch(n){case"boolean":return!1;case"string":return"";case"number":return 0;case"object":return{}}}class J5{constructor(t){this.displayMode=void 0,this.output=void 0,this.leqno=void 0,this.fleqn=void 0,this.throwOnError=void 0,this.errorColor=void 0,this.macros=void 0,this.minRuleThickness=void 0,this.colorIsTextColor=void 0,this.strict=void 0,this.trust=void 0,this.maxSize=void 0,this.maxExpand=void 0,this.globalGroup=void 0,t=t||{};for(var n in jE)if(jE.hasOwnProperty(n)){var r=jE[n];this[n]=t[n]!==void 0?r.processor?r.processor(t[n]):t[n]:l7e(r)}}reportNonstrict(t,n,r){var a=this.strict;if(typeof a=="function"&&(a=a(t,n,r)),!(!a||a==="ignore")){if(a===!0||a==="error")throw new mt("LaTeX-incompatible input and strict mode is set to 'error': "+(n+" ["+t+"]"),r);a==="warn"?typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(n+" ["+t+"]")):typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+a+"': "+n+" ["+t+"]"))}}useStrictBehavior(t,n,r){var a=this.strict;if(typeof a=="function")try{a=a(t,n,r)}catch{a="error"}return!a||a==="ignore"?!1:a===!0||a==="error"?!0:a==="warn"?(typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(n+" ["+t+"]")),!1):(typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+a+"': "+n+" ["+t+"]")),!1)}isTrusted(t){if(t.url&&!t.protocol){var n=Pt.protocolFromUrl(t.url);if(n==null)return!1;t.protocol=n}var r=typeof this.trust=="function"?this.trust(t):this.trust;return!!r}}class sc{constructor(t,n,r){this.id=void 0,this.size=void 0,this.cramped=void 0,this.id=t,this.size=n,this.cramped=r}sup(){return Os[c7e[this.id]]}sub(){return Os[u7e[this.id]]}fracNum(){return Os[d7e[this.id]]}fracDen(){return Os[p7e[this.id]]}cramp(){return Os[f7e[this.id]]}text(){return Os[m7e[this.id]]}isTight(){return this.size>=2}}var eD=0,Xb=1,ef=2,Al=3,Kh=4,Oo=5,Af=6,Ja=7,Os=[new sc(eD,0,!1),new sc(Xb,0,!0),new sc(ef,1,!1),new sc(Al,1,!0),new sc(Kh,2,!1),new sc(Oo,2,!0),new sc(Af,3,!1),new sc(Ja,3,!0)],c7e=[Kh,Oo,Kh,Oo,Af,Ja,Af,Ja],u7e=[Oo,Oo,Oo,Oo,Ja,Ja,Ja,Ja],d7e=[ef,Al,Kh,Oo,Af,Ja,Af,Ja],p7e=[Al,Al,Oo,Oo,Ja,Ja,Ja,Ja],f7e=[Xb,Xb,Al,Al,Oo,Oo,Ja,Ja],m7e=[eD,Xb,ef,Al,ef,Al,ef,Al],Bt={DISPLAY:Os[eD],TEXT:Os[ef],SCRIPT:Os[Kh],SCRIPTSCRIPT:Os[Af]},b4=[{name:"latin",blocks:[[256,591],[768,879]]},{name:"cyrillic",blocks:[[1024,1279]]},{name:"armenian",blocks:[[1328,1423]]},{name:"brahmic",blocks:[[2304,4255]]},{name:"georgian",blocks:[[4256,4351]]},{name:"cjk",blocks:[[12288,12543],[19968,40879],[65280,65376]]},{name:"hangul",blocks:[[44032,55215]]}];function h7e(e){for(var t=0;t<b4.length;t++)for(var n=b4[t],r=0;r<n.blocks.length;r++){var a=n.blocks[r];if(e>=a[0]&&e<=a[1])return n.name}return null}var KE=[];b4.forEach(e=>e.blocks.forEach(t=>KE.push(...t)));function iZ(e){for(var t=0;t<KE.length;t+=2)if(e>=KE[t]&&e<=KE[t+1])return!0;return!1}var op=80,g7e=function(t,n){return"M95,"+(622+t+n)+`
354
354
  c-2.7,0,-7.17,-2.7,-13.5,-8c-5.8,-5.3,-9.5,-10,-9.5,-14
@@ -648,7 +648,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`),ie=W,M=V),z===void 0&&
648
648
  }
649
649
  `,cH="​";function M4({whitespace:e}){return _.jsx(bt,{component:"span",sx:{display:"inline-block",width:"12px",height:"12px",backgroundColor:"text.primary",borderRadius:"50%",animation:`1s ease-in-out 0.1s ${tWe} infinite`,ml:e?"0.5em":0}})}const nWe=()=>e=>{Bg(e,"text",(t,n,r)=>{var o;const a=/\u200B/g,i=[...((o=t.value)==null?void 0:o.matchAll(a))||[]];if(i.length>0){const s=[];let l=0;i.forEach(c=>{const[u]=c,p=c.index,f=p+u.length;p>l&&s.push({type:"text",value:t.value.slice(l,p)}),s.push({type:"blinkingCursor",data:{hName:"blinkingCursor",hProperties:{text:"Blinking Cursor"}}}),l=f}),l<t.value.length&&s.push({type:"text",value:t.value.slice(l)}),r.children.splice(n,1,...s)}})};function eg({refElements:e,allowHtml:t,latex:n,children:r}){const a=R.useMemo(()=>{let o=[];return t&&(o=[e$e,...o]),n&&(o=[X9e,...o]),o},[t,n]),i=R.useMemo(()=>{let o=[nWe,cHe];return n&&(o=[...o,SHe]),o},[n]);return _.jsx(vPe,{remarkPlugins:i,rehypePlugins:a,className:"markdown-body",components:{a({children:o,...s}){const l=o,c=e==null?void 0:e.find(u=>u.name===l);return c?_.jsx(eWe,{element:c}):_.jsx(Zp,{...s,target:"_blank",children:o})},code({...o}){return _.jsx(vHe,{...o})},pre({...o}){return _.jsx(Jqe,{...o})},table({children:o,...s}){return _.jsx(EDe,{sx:{width:"fit-content",minWidth:"300px"},elevation:0,component:Qf,children:_.jsx(X5e,{...s,children:o})})},thead({children:o,...s}){return _.jsx(RDe,{...s,children:o})},tr({children:o,...s}){return _.jsx(DDe,{...s,children:o})},th({children:o,...s}){return _.jsx(o9,{...s,align:"right",sx:{padding:1},children:o})},td({children:o,...s}){return _.jsx(o9,{...s,align:"right",sx:{padding:1},children:o})},tbody({children:o,...s}){return _.jsx(iDe,{...s,children:o})},blinkingCursor:()=>_.jsx(M4,{whitespace:!0})},children:r})}const Ree=({element:e})=>{var l,c;const{data:t,error:n,isLoading:r}=lX(e.url||null),{config:a}=Zr(),i=(l=a==null?void 0:a.features)==null?void 0:l.unsafe_allow_html,o=(c=a==null?void 0:a.features)==null?void 0:c.latex;let s="";return r?s="Loading...":n?s="An error occured":t&&(s=t),!r&&!n&&e.language&&(s=`\`\`\`${e.language}
650
650
  ${s}
651
- \`\`\``),_.jsx(bt,{sx:{fontFamily:u=>u.typography.fontFamily},children:_.jsx(eg,{allowHtml:i,latex:o,children:s})})};var rWe=function(t,n,r){var a=document.head||document.getElementsByTagName("head")[0],i=document.createElement("script");typeof n=="function"&&(r=n,n={}),n=n||{},r=r||function(){},i.type=n.type||"text/javascript",i.charset=n.charset||"utf8",i.async="async"in n?!!n.async:!0,i.src=t,n.attrs&&aWe(i,n.attrs),n.text&&(i.text=""+n.text);var o="onload"in i?uH:iWe;o(i,r),i.onload||uH(i,r),a.appendChild(i)};function aWe(e,t){for(var n in t)e.setAttribute(n,t[n])}function uH(e,t){e.onload=function(){this.onerror=this.onload=null,t(null,e)},e.onerror=function(){this.onerror=this.onload=null,t(new Error("Failed to load "+this.src),e)}}function iWe(e,t){e.onreadystatechange=function(){this.readyState!="complete"&&this.readyState!="loaded"||(this.onreadystatechange=null,t(null,e))}}var oWe=function(t){return sWe(t)&&!lWe(t)};function sWe(e){return!!e&&typeof e=="object"}function lWe(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||dWe(e)}var cWe=typeof Symbol=="function"&&Symbol.for,uWe=cWe?Symbol.for("react.element"):60103;function dWe(e){return e.$$typeof===uWe}function pWe(e){return Array.isArray(e)?[]:{}}function tg(e,t){return t.clone!==!1&&t.isMergeableObject(e)?If(pWe(e),e,t):e}function fWe(e,t,n){return e.concat(t).map(function(r){return tg(r,n)})}function mWe(e,t){if(!t.customMerge)return If;var n=t.customMerge(e);return typeof n=="function"?n:If}function hWe(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[]}function dH(e){return Object.keys(e).concat(hWe(e))}function xee(e,t){try{return t in e}catch{return!1}}function gWe(e,t){return xee(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))}function _We(e,t,n){var r={};return n.isMergeableObject(e)&&dH(e).forEach(function(a){r[a]=tg(e[a],n)}),dH(t).forEach(function(a){gWe(e,a)||(xee(e,a)&&n.isMergeableObject(t[a])?r[a]=mWe(a,n)(e[a],t[a],n):r[a]=tg(t[a],n))}),r}function If(e,t,n){n=n||{},n.arrayMerge=n.arrayMerge||fWe,n.isMergeableObject=n.isMergeableObject||oWe,n.cloneUnlessOtherwiseSpecified=tg;var r=Array.isArray(t),a=Array.isArray(e),i=r===a;return i?r?n.arrayMerge(e,t,n):_We(e,t,n):tg(t,n)}If.all=function(t,n){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(r,a){return If(r,a,n)},{})};var EWe=If,Aee=EWe,bWe=Object.create,ky=Object.defineProperty,SWe=Object.getOwnPropertyDescriptor,vWe=Object.getOwnPropertyNames,yWe=Object.getPrototypeOf,TWe=Object.prototype.hasOwnProperty,CWe=(e,t)=>{for(var n in t)ky(e,n,{get:t[n],enumerable:!0})},Oee=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of vWe(t))!TWe.call(e,a)&&a!==n&&ky(e,a,{get:()=>t[a],enumerable:!(r=SWe(t,a))||r.enumerable});return e},DD=(e,t,n)=>(n=e!=null?bWe(yWe(e)):{},Oee(t||!e||!e.__esModule?ky(n,"default",{value:e,enumerable:!0}):n,e)),RWe=e=>Oee(ky({},"__esModule",{value:!0}),e),Nee={};CWe(Nee,{callPlayer:()=>zWe,getConfig:()=>UWe,getSDK:()=>BWe,isBlobUrl:()=>GWe,isMediaStream:()=>HWe,lazy:()=>NWe,omit:()=>$We,parseEndTime:()=>kWe,parseStartTime:()=>MWe,queryString:()=>FWe,randomString:()=>PWe,supportsWebKitPresentationMode:()=>VWe});var Py=RWe(Nee),xWe=DD(R),AWe=DD(rWe),OWe=DD(Aee);const NWe=e=>xWe.default.lazy(async()=>{const t=await e();return typeof t.default=="function"?t:t.default}),IWe=/[?&#](?:start|t)=([0-9hms]+)/,wWe=/[?&#]end=([0-9hms]+)/,k4=/(\d+)(h|m|s)/g,DWe=/^\d+$/;function Iee(e,t){if(e instanceof Array)return;const n=e.match(t);if(n){const r=n[1];if(r.match(k4))return LWe(r);if(DWe.test(r))return parseInt(r)}}function LWe(e){let t=0,n=k4.exec(e);for(;n!==null;){const[,r,a]=n;a==="h"&&(t+=parseInt(r,10)*60*60),a==="m"&&(t+=parseInt(r,10)*60),a==="s"&&(t+=parseInt(r,10)),n=k4.exec(e)}return t}function MWe(e){return Iee(e,IWe)}function kWe(e){return Iee(e,wWe)}function PWe(){return Math.random().toString(36).substr(2,5)}function FWe(e){return Object.keys(e).map(t=>`${t}=${e[t]}`).join("&")}function KO(e){return window[e]?window[e]:window.exports&&window.exports[e]?window.exports[e]:window.module&&window.module.exports&&window.module.exports[e]?window.module.exports[e]:null}const lp={},BWe=function(t,n,r=null,a=()=>!0,i=AWe.default){const o=KO(n);return o&&a(o)?Promise.resolve(o):new Promise((s,l)=>{if(lp[t]){lp[t].push({resolve:s,reject:l});return}lp[t]=[{resolve:s,reject:l}];const c=u=>{lp[t].forEach(p=>p.resolve(u))};if(r){const u=window[r];window[r]=function(){u&&u(),c(KO(n))}}i(t,u=>{u?(lp[t].forEach(p=>p.reject(u)),lp[t]=null):r||c(KO(n))})})};function UWe(e,t){return(0,OWe.default)(t.config,e.config)}function $We(e,...t){const n=[].concat(...t),r={},a=Object.keys(e);for(const i of a)n.indexOf(i)===-1&&(r[i]=e[i]);return r}function zWe(e,...t){if(!this.player||!this.player[e]){let n=`ReactPlayer: ${this.constructor.displayName} player could not call %c${e}%c – `;return this.player?this.player[e]||(n+="The method was not available"):n+="The player was not available",console.warn(n,"font-weight: bold",""),null}return this.player[e](...t)}function HWe(e){return typeof window<"u"&&typeof window.MediaStream<"u"&&e instanceof window.MediaStream}function GWe(e){return/^blob:/.test(e)}function VWe(e=document.createElement("video")){const t=/iPhone|iPod/.test(navigator.userAgent)===!1;return e.webkitSupportsPresentationMode&&typeof e.webkitSetPresentationMode=="function"&&t}var LD=Object.defineProperty,YWe=Object.getOwnPropertyDescriptor,qWe=Object.getOwnPropertyNames,WWe=Object.prototype.hasOwnProperty,jWe=(e,t)=>{for(var n in t)LD(e,n,{get:t[n],enumerable:!0})},KWe=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of qWe(t))!WWe.call(e,a)&&a!==n&&LD(e,a,{get:()=>t[a],enumerable:!(r=YWe(t,a))||r.enumerable});return e},QWe=e=>KWe(LD({},"__esModule",{value:!0}),e),wee={};jWe(wee,{AUDIO_EXTENSIONS:()=>MD,DASH_EXTENSIONS:()=>Yee,FLV_EXTENSIONS:()=>qee,HLS_EXTENSIONS:()=>PD,MATCH_URL_DAILYMOTION:()=>zee,MATCH_URL_FACEBOOK:()=>kee,MATCH_URL_FACEBOOK_WATCH:()=>Pee,MATCH_URL_KALTURA:()=>Vee,MATCH_URL_MIXCLOUD:()=>Hee,MATCH_URL_MUX:()=>Mee,MATCH_URL_SOUNDCLOUD:()=>Dee,MATCH_URL_STREAMABLE:()=>Fee,MATCH_URL_TWITCH_CHANNEL:()=>$ee,MATCH_URL_TWITCH_VIDEO:()=>Uee,MATCH_URL_VIDYARD:()=>Gee,MATCH_URL_VIMEO:()=>Lee,MATCH_URL_WISTIA:()=>Bee,MATCH_URL_YOUTUBE:()=>P4,VIDEO_EXTENSIONS:()=>kD,canPlay:()=>ZWe});var XWe=QWe(wee),pH=Py;const P4=/(?:youtu\.be\/|youtube(?:-nocookie|education)?\.com\/(?:embed\/|v\/|watch\/|watch\?v=|watch\?.+&v=|shorts\/|live\/))((\w|-){11})|youtube\.com\/playlist\?list=|youtube\.com\/user\//,Dee=/(?:soundcloud\.com|snd\.sc)\/[^.]+$/,Lee=/vimeo\.com\/(?!progressive_redirect).+/,Mee=/stream\.mux\.com\/(?!\w+\.m3u8)(\w+)/,kee=/^https?:\/\/(www\.)?facebook\.com.*\/(video(s)?|watch|story)(\.php?|\/).+$/,Pee=/^https?:\/\/fb\.watch\/.+$/,Fee=/streamable\.com\/([a-z0-9]+)$/,Bee=/(?:wistia\.(?:com|net)|wi\.st)\/(?:medias|embed)\/(?:iframe\/)?([^?]+)/,Uee=/(?:www\.|go\.)?twitch\.tv\/videos\/(\d+)($|\?)/,$ee=/(?:www\.|go\.)?twitch\.tv\/([a-zA-Z0-9_]+)($|\?)/,zee=/^(?:(?:https?):)?(?:\/\/)?(?:www\.)?(?:(?:dailymotion\.com(?:\/embed)?\/video)|dai\.ly)\/([a-zA-Z0-9]+)(?:_[\w_-]+)?(?:[\w.#_-]+)?/,Hee=/mixcloud\.com\/([^/]+\/[^/]+)/,Gee=/vidyard.com\/(?:watch\/)?([a-zA-Z0-9-_]+)/,Vee=/^https?:\/\/[a-zA-Z]+\.kaltura.(com|org)\/p\/([0-9]+)\/sp\/([0-9]+)00\/embedIframeJs\/uiconf_id\/([0-9]+)\/partner_id\/([0-9]+)(.*)entry_id.([a-zA-Z0-9-_].*)$/,MD=/\.(m4a|m4b|mp4a|mpga|mp2|mp2a|mp3|m2a|m3a|wav|weba|aac|oga|spx)($|\?)/i,kD=/\.(mp4|og[gv]|webm|mov|m4v)(#t=[,\d+]+)?($|\?)/i,PD=/\.(m3u8)($|\?)/i,Yee=/\.(mpd)($|\?)/i,qee=/\.(flv)($|\?)/i,F4=e=>{if(e instanceof Array){for(const t of e)if(typeof t=="string"&&F4(t)||F4(t.src))return!0;return!1}return(0,pH.isMediaStream)(e)||(0,pH.isBlobUrl)(e)?!0:MD.test(e)||kD.test(e)||PD.test(e)||Yee.test(e)||qee.test(e)},ZWe={youtube:e=>e instanceof Array?e.every(t=>P4.test(t)):P4.test(e),soundcloud:e=>Dee.test(e)&&!MD.test(e),vimeo:e=>Lee.test(e)&&!kD.test(e)&&!PD.test(e),mux:e=>Mee.test(e),facebook:e=>kee.test(e)||Pee.test(e),streamable:e=>Fee.test(e),wistia:e=>Bee.test(e),twitch:e=>Uee.test(e)||$ee.test(e),dailymotion:e=>zee.test(e),mixcloud:e=>Hee.test(e),vidyard:e=>Gee.test(e),kaltura:e=>Vee.test(e),file:F4};var FD=Object.defineProperty,JWe=Object.getOwnPropertyDescriptor,eje=Object.getOwnPropertyNames,tje=Object.prototype.hasOwnProperty,nje=(e,t)=>{for(var n in t)FD(e,n,{get:t[n],enumerable:!0})},rje=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of eje(t))!tje.call(e,a)&&a!==n&&FD(e,a,{get:()=>t[a],enumerable:!(r=JWe(t,a))||r.enumerable});return e},aje=e=>rje(FD({},"__esModule",{value:!0}),e),Wee={};nje(Wee,{default:()=>oje});var ije=aje(Wee),di=Py,Ya=XWe,oje=[{key:"youtube",name:"YouTube",canPlay:Ya.canPlay.youtube,lazyPlayer:(0,di.lazy)(()=>Wa(()=>import("./YouTube-f20013d0.js").then(e=>e.Y),[]))},{key:"soundcloud",name:"SoundCloud",canPlay:Ya.canPlay.soundcloud,lazyPlayer:(0,di.lazy)(()=>Wa(()=>import("./SoundCloud-09b74715.js").then(e=>e.S),[]))},{key:"vimeo",name:"Vimeo",canPlay:Ya.canPlay.vimeo,lazyPlayer:(0,di.lazy)(()=>Wa(()=>import("./Vimeo-dd6bf7ea.js").then(e=>e.V),[]))},{key:"mux",name:"Mux",canPlay:Ya.canPlay.mux,lazyPlayer:(0,di.lazy)(()=>Wa(()=>import("./Mux-b96eaa94.js").then(e=>e.M),[]))},{key:"facebook",name:"Facebook",canPlay:Ya.canPlay.facebook,lazyPlayer:(0,di.lazy)(()=>Wa(()=>import("./Facebook-644622d4.js").then(e=>e.F),[]))},{key:"streamable",name:"Streamable",canPlay:Ya.canPlay.streamable,lazyPlayer:(0,di.lazy)(()=>Wa(()=>import("./Streamable-48c1fa82.js").then(e=>e.S),[]))},{key:"wistia",name:"Wistia",canPlay:Ya.canPlay.wistia,lazyPlayer:(0,di.lazy)(()=>Wa(()=>import("./Wistia-a4a2bf34.js").then(e=>e.W),[]))},{key:"twitch",name:"Twitch",canPlay:Ya.canPlay.twitch,lazyPlayer:(0,di.lazy)(()=>Wa(()=>import("./Twitch-457de5f4.js").then(e=>e.T),[]))},{key:"dailymotion",name:"DailyMotion",canPlay:Ya.canPlay.dailymotion,lazyPlayer:(0,di.lazy)(()=>Wa(()=>import("./DailyMotion-92fc1621.js").then(e=>e.D),[]))},{key:"mixcloud",name:"Mixcloud",canPlay:Ya.canPlay.mixcloud,lazyPlayer:(0,di.lazy)(()=>Wa(()=>import("./Mixcloud-f0974962.js").then(e=>e.M),[]))},{key:"vidyard",name:"Vidyard",canPlay:Ya.canPlay.vidyard,lazyPlayer:(0,di.lazy)(()=>Wa(()=>import("./Vidyard-d5e20d28.js").then(e=>e.V),[]))},{key:"kaltura",name:"Kaltura",canPlay:Ya.canPlay.kaltura,lazyPlayer:(0,di.lazy)(()=>Wa(()=>import("./Kaltura-9432f468.js").then(e=>e.K),[]))},{key:"file",name:"FilePlayer",canPlay:Ya.canPlay.file,canEnablePIP:e=>Ya.canPlay.file(e)&&(document.pictureInPictureEnabled||(0,di.supportsWebKitPresentationMode)())&&!Ya.AUDIO_EXTENSIONS.test(e),lazyPlayer:(0,di.lazy)(()=>Wa(()=>import("./FilePlayer-adb407f0.js").then(e=>e.F),[]))}],fH=Number.isNaN||function(t){return typeof t=="number"&&t!==t};function sje(e,t){return!!(e===t||fH(e)&&fH(t))}function lje(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!sje(e[n],t[n]))return!1;return!0}function cje(e,t){t===void 0&&(t=lje);var n,r=[],a,i=!1;function o(){for(var s=[],l=0;l<arguments.length;l++)s[l]=arguments[l];return i&&n===this&&t(s,r)||(a=e.apply(this,s),i=!0,n=this,r=s),a}return o}const uje=Object.freeze(Object.defineProperty({__proto__:null,default:cje},Symbol.toStringTag,{value:"Module"})),dje=b3(uje);var pje=typeof Element<"u",fje=typeof Map=="function",mje=typeof Set=="function",hje=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function ZE(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;var n,r,a;if(Array.isArray(e)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(!ZE(e[r],t[r]))return!1;return!0}var i;if(fje&&e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(i=e.entries();!(r=i.next()).done;)if(!t.has(r.value[0]))return!1;for(i=e.entries();!(r=i.next()).done;)if(!ZE(r.value[1],t.get(r.value[0])))return!1;return!0}if(mje&&e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(i=e.entries();!(r=i.next()).done;)if(!t.has(r.value[0]))return!1;return!0}if(hje&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(e[r]!==t[r])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf&&typeof e.valueOf=="function"&&typeof t.valueOf=="function")return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString&&typeof e.toString=="function"&&typeof t.toString=="function")return e.toString()===t.toString();if(a=Object.keys(e),n=a.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!Object.prototype.hasOwnProperty.call(t,a[r]))return!1;if(pje&&e instanceof Element)return!1;for(r=n;r--!==0;)if(!((a[r]==="_owner"||a[r]==="__v"||a[r]==="__o")&&e.$$typeof)&&!ZE(e[a[r]],t[a[r]]))return!1;return!0}return e!==e&&t!==t}var jee=function(t,n){try{return ZE(t,n)}catch(r){if((r.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw r}},gje=Object.create,Fy=Object.defineProperty,_je=Object.getOwnPropertyDescriptor,Eje=Object.getOwnPropertyNames,bje=Object.getPrototypeOf,Sje=Object.prototype.hasOwnProperty,vje=(e,t)=>{for(var n in t)Fy(e,n,{get:t[n],enumerable:!0})},Kee=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of Eje(t))!Sje.call(e,a)&&a!==n&&Fy(e,a,{get:()=>t[a],enumerable:!(r=_je(t,a))||r.enumerable});return e},yje=(e,t,n)=>(n=e!=null?gje(bje(e)):{},Kee(t||!e||!e.__esModule?Fy(n,"default",{value:e,enumerable:!0}):n,e)),Tje=e=>Kee(Fy({},"__esModule",{value:!0}),e),Qee={};vje(Qee,{defaultProps:()=>xje,propTypes:()=>Rje});var Xee=Tje(Qee),Cje=yje(Wf);const{string:_a,bool:qa,number:cp,array:QO,oneOfType:Sm,shape:Ui,object:Da,func:jr,node:mH}=Cje.default,Rje={url:Sm([_a,QO,Da]),playing:qa,loop:qa,controls:qa,volume:cp,muted:qa,playbackRate:cp,width:Sm([_a,cp]),height:Sm([_a,cp]),style:Da,progressInterval:cp,playsinline:qa,pip:qa,stopOnUnmount:qa,light:Sm([qa,_a,Da]),playIcon:mH,previewTabIndex:cp,previewAriaLabel:_a,fallback:mH,oEmbedUrl:_a,wrapper:Sm([_a,jr,Ui({render:jr.isRequired})]),config:Ui({soundcloud:Ui({options:Da}),youtube:Ui({playerVars:Da,embedOptions:Da,onUnstarted:jr}),facebook:Ui({appId:_a,version:_a,playerId:_a,attributes:Da}),dailymotion:Ui({params:Da}),vimeo:Ui({playerOptions:Da,title:_a}),mux:Ui({attributes:Da,version:_a}),file:Ui({attributes:Da,tracks:QO,forceVideo:qa,forceAudio:qa,forceHLS:qa,forceSafariHLS:qa,forceDisableHls:qa,forceDASH:qa,forceFLV:qa,hlsOptions:Da,hlsVersion:_a,dashVersion:_a,flvVersion:_a}),wistia:Ui({options:Da,playerId:_a,customControls:QO}),mixcloud:Ui({options:Da}),twitch:Ui({options:Da,playerId:_a}),vidyard:Ui({options:Da})}),onReady:jr,onStart:jr,onPlay:jr,onPause:jr,onBuffer:jr,onBufferEnd:jr,onEnded:jr,onError:jr,onDuration:jr,onSeek:jr,onPlaybackRateChange:jr,onPlaybackQualityChange:jr,onProgress:jr,onClickPreview:jr,onEnablePIP:jr,onDisablePIP:jr},Ea=()=>{},xje={playing:!1,loop:!1,controls:!1,volume:null,muted:!1,playbackRate:1,width:"640px",height:"360px",style:{},progressInterval:1e3,playsinline:!1,pip:!1,stopOnUnmount:!0,light:!1,fallback:null,wrapper:"div",previewTabIndex:0,previewAriaLabel:"",oEmbedUrl:"https://noembed.com/embed?url={url}",config:{soundcloud:{options:{visual:!0,buying:!1,liking:!1,download:!1,sharing:!1,show_comments:!1,show_playcount:!1}},youtube:{playerVars:{playsinline:1,showinfo:0,rel:0,iv_load_policy:3,modestbranding:1},embedOptions:{},onUnstarted:Ea},facebook:{appId:"1309697205772819",version:"v3.3",playerId:null,attributes:{}},dailymotion:{params:{api:1,"endscreen-enable":!1}},vimeo:{playerOptions:{autopause:!1,byline:!1,portrait:!1,title:!1},title:null},mux:{attributes:{},version:"2"},file:{attributes:{},tracks:[],forceVideo:!1,forceAudio:!1,forceHLS:!1,forceDASH:!1,forceFLV:!1,hlsOptions:{},hlsVersion:"1.1.4",dashVersion:"3.1.3",flvVersion:"1.5.0",forceDisableHls:!1},wistia:{options:{},playerId:null,customControls:null},mixcloud:{options:{hide_cover:1}},twitch:{options:{},playerId:null},vidyard:{options:{}}},onReady:Ea,onStart:Ea,onPlay:Ea,onPause:Ea,onBuffer:Ea,onBufferEnd:Ea,onEnded:Ea,onError:Ea,onDuration:Ea,onSeek:Ea,onPlaybackRateChange:Ea,onPlaybackQualityChange:Ea,onProgress:Ea,onClickPreview:Ea,onEnablePIP:Ea,onDisablePIP:Ea};var Aje=Object.create,Yg=Object.defineProperty,Oje=Object.getOwnPropertyDescriptor,Nje=Object.getOwnPropertyNames,Ije=Object.getPrototypeOf,wje=Object.prototype.hasOwnProperty,Dje=(e,t,n)=>t in e?Yg(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Lje=(e,t)=>{for(var n in t)Yg(e,n,{get:t[n],enumerable:!0})},Zee=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of Nje(t))!wje.call(e,a)&&a!==n&&Yg(e,a,{get:()=>t[a],enumerable:!(r=Oje(t,a))||r.enumerable});return e},Jee=(e,t,n)=>(n=e!=null?Aje(Ije(e)):{},Zee(t||!e||!e.__esModule?Yg(n,"default",{value:e,enumerable:!0}):n,e)),Mje=e=>Zee(Yg({},"__esModule",{value:!0}),e),wr=(e,t,n)=>(Dje(e,typeof t!="symbol"?t+"":t,n),n),ete={};Lje(ete,{default:()=>By});var kje=Mje(ete),hH=Jee(R),Pje=Jee(jee),tte=Xee,Fje=Py;const Bje=5e3;class By extends hH.Component{constructor(){super(...arguments),wr(this,"mounted",!1),wr(this,"isReady",!1),wr(this,"isPlaying",!1),wr(this,"isLoading",!0),wr(this,"loadOnReady",null),wr(this,"startOnPlay",!0),wr(this,"seekOnPlay",null),wr(this,"onDurationCalled",!1),wr(this,"handlePlayerMount",t=>{if(this.player){this.progress();return}this.player=t,this.player.load(this.props.url),this.progress()}),wr(this,"getInternalPlayer",t=>this.player?this.player[t]:null),wr(this,"progress",()=>{if(this.props.url&&this.player&&this.isReady){const t=this.getCurrentTime()||0,n=this.getSecondsLoaded(),r=this.getDuration();if(r){const a={playedSeconds:t,played:t/r};n!==null&&(a.loadedSeconds=n,a.loaded=n/r),(a.playedSeconds!==this.prevPlayed||a.loadedSeconds!==this.prevLoaded)&&this.props.onProgress(a),this.prevPlayed=a.playedSeconds,this.prevLoaded=a.loadedSeconds}}this.progressTimeout=setTimeout(this.progress,this.props.progressFrequency||this.props.progressInterval)}),wr(this,"handleReady",()=>{if(!this.mounted)return;this.isReady=!0,this.isLoading=!1;const{onReady:t,playing:n,volume:r,muted:a}=this.props;t(),!a&&r!==null&&this.player.setVolume(r),this.loadOnReady?(this.player.load(this.loadOnReady,!0),this.loadOnReady=null):n&&this.player.play(),this.handleDurationCheck()}),wr(this,"handlePlay",()=>{this.isPlaying=!0,this.isLoading=!1;const{onStart:t,onPlay:n,playbackRate:r}=this.props;this.startOnPlay&&(this.player.setPlaybackRate&&r!==1&&this.player.setPlaybackRate(r),t(),this.startOnPlay=!1),n(),this.seekOnPlay&&(this.seekTo(this.seekOnPlay),this.seekOnPlay=null),this.handleDurationCheck()}),wr(this,"handlePause",t=>{this.isPlaying=!1,this.isLoading||this.props.onPause(t)}),wr(this,"handleEnded",()=>{const{activePlayer:t,loop:n,onEnded:r}=this.props;t.loopOnEnded&&n&&this.seekTo(0),n||(this.isPlaying=!1,r())}),wr(this,"handleError",(...t)=>{this.isLoading=!1,this.props.onError(...t)}),wr(this,"handleDurationCheck",()=>{clearTimeout(this.durationCheckTimeout);const t=this.getDuration();t?this.onDurationCalled||(this.props.onDuration(t),this.onDurationCalled=!0):this.durationCheckTimeout=setTimeout(this.handleDurationCheck,100)}),wr(this,"handleLoaded",()=>{this.isLoading=!1})}componentDidMount(){this.mounted=!0}componentWillUnmount(){clearTimeout(this.progressTimeout),clearTimeout(this.durationCheckTimeout),this.isReady&&this.props.stopOnUnmount&&(this.player.stop(),this.player.disablePIP&&this.player.disablePIP()),this.mounted=!1}componentDidUpdate(t){if(!this.player)return;const{url:n,playing:r,volume:a,muted:i,playbackRate:o,pip:s,loop:l,activePlayer:c,disableDeferredLoading:u}=this.props;if(!(0,Pje.default)(t.url,n)){if(this.isLoading&&!c.forceLoad&&!u&&!(0,Fje.isMediaStream)(n)){console.warn(`ReactPlayer: the attempt to load ${n} is being deferred until the player has loaded`),this.loadOnReady=n;return}this.isLoading=!0,this.startOnPlay=!0,this.onDurationCalled=!1,this.player.load(n,this.isReady)}!t.playing&&r&&!this.isPlaying&&this.player.play(),t.playing&&!r&&this.isPlaying&&this.player.pause(),!t.pip&&s&&this.player.enablePIP&&this.player.enablePIP(),t.pip&&!s&&this.player.disablePIP&&this.player.disablePIP(),t.volume!==a&&a!==null&&this.player.setVolume(a),t.muted!==i&&(i?this.player.mute():(this.player.unmute(),a!==null&&setTimeout(()=>this.player.setVolume(a)))),t.playbackRate!==o&&this.player.setPlaybackRate&&this.player.setPlaybackRate(o),t.loop!==l&&this.player.setLoop&&this.player.setLoop(l)}getDuration(){return this.isReady?this.player.getDuration():null}getCurrentTime(){return this.isReady?this.player.getCurrentTime():null}getSecondsLoaded(){return this.isReady?this.player.getSecondsLoaded():null}seekTo(t,n,r){if(!this.isReady){t!==0&&(this.seekOnPlay=t,setTimeout(()=>{this.seekOnPlay=null},Bje));return}if(n?n==="fraction":t>0&&t<1){const i=this.player.getDuration();if(!i){console.warn("ReactPlayer: could not seek using fraction – duration not yet available");return}this.player.seekTo(i*t,r);return}this.player.seekTo(t,r)}render(){const t=this.props.activePlayer;return t?hH.default.createElement(t,{...this.props,onMount:this.handlePlayerMount,onReady:this.handleReady,onPlay:this.handlePlay,onPause:this.handlePause,onEnded:this.handleEnded,onLoaded:this.handleLoaded,onError:this.handleError}):null}}wr(By,"displayName","Player");wr(By,"propTypes",tte.propTypes);wr(By,"defaultProps",tte.defaultProps);var Uje=Object.create,qg=Object.defineProperty,$je=Object.getOwnPropertyDescriptor,zje=Object.getOwnPropertyNames,Hje=Object.getPrototypeOf,Gje=Object.prototype.hasOwnProperty,Vje=(e,t,n)=>t in e?qg(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Yje=(e,t)=>{for(var n in t)qg(e,n,{get:t[n],enumerable:!0})},nte=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of zje(t))!Gje.call(e,a)&&a!==n&&qg(e,a,{get:()=>t[a],enumerable:!(r=$je(t,a))||r.enumerable});return e},Wg=(e,t,n)=>(n=e!=null?Uje(Hje(e)):{},nte(t||!e||!e.__esModule?qg(n,"default",{value:e,enumerable:!0}):n,e)),qje=e=>nte(qg({},"__esModule",{value:!0}),e),Ir=(e,t,n)=>(Vje(e,typeof t!="symbol"?t+"":t,n),n),rte={};Yje(rte,{createReactPlayer:()=>tKe});var Wje=qje(rte),Sp=Wg(R),jje=Wg(Aee),XO=Wg(dje),gH=Wg(jee),Fm=Xee,ate=Py,Kje=Wg(kje);const Qje=(0,ate.lazy)(()=>Wa(()=>import("./Preview-b3ef64e8.js").then(e=>e.P),[])),Xje=typeof window<"u"&&window.document&&typeof document<"u",Zje=typeof aa<"u"&&aa.window&&aa.window.document,Jje=Object.keys(Fm.propTypes),eKe=Xje||Zje?Sp.Suspense:()=>null,vm=[],tKe=(e,t)=>{var n;return n=class extends Sp.Component{constructor(){super(...arguments),Ir(this,"state",{showPreview:!!this.props.light}),Ir(this,"references",{wrapper:r=>{this.wrapper=r},player:r=>{this.player=r}}),Ir(this,"handleClickPreview",r=>{this.setState({showPreview:!1}),this.props.onClickPreview(r)}),Ir(this,"showPreview",()=>{this.setState({showPreview:!0})}),Ir(this,"getDuration",()=>this.player?this.player.getDuration():null),Ir(this,"getCurrentTime",()=>this.player?this.player.getCurrentTime():null),Ir(this,"getSecondsLoaded",()=>this.player?this.player.getSecondsLoaded():null),Ir(this,"getInternalPlayer",(r="player")=>this.player?this.player.getInternalPlayer(r):null),Ir(this,"seekTo",(r,a,i)=>{if(!this.player)return null;this.player.seekTo(r,a,i)}),Ir(this,"handleReady",()=>{this.props.onReady(this)}),Ir(this,"getActivePlayer",(0,XO.default)(r=>{for(const a of[...vm,...e])if(a.canPlay(r))return a;return t||null})),Ir(this,"getConfig",(0,XO.default)((r,a)=>{const{config:i}=this.props;return jje.default.all([Fm.defaultProps.config,Fm.defaultProps.config[a]||{},i,i[a]||{}])})),Ir(this,"getAttributes",(0,XO.default)(r=>(0,ate.omit)(this.props,Jje))),Ir(this,"renderActivePlayer",r=>{if(!r)return null;const a=this.getActivePlayer(r);if(!a)return null;const i=this.getConfig(r,a.key);return Sp.default.createElement(Kje.default,{...this.props,key:a.key,ref:this.references.player,config:i,activePlayer:a.lazyPlayer||a,onReady:this.handleReady})})}shouldComponentUpdate(r,a){return!(0,gH.default)(this.props,r)||!(0,gH.default)(this.state,a)}componentDidUpdate(r){const{light:a}=this.props;!r.light&&a&&this.setState({showPreview:!0}),r.light&&!a&&this.setState({showPreview:!1})}renderPreview(r){if(!r)return null;const{light:a,playIcon:i,previewTabIndex:o,oEmbedUrl:s,previewAriaLabel:l}=this.props;return Sp.default.createElement(Qje,{url:r,light:a,playIcon:i,previewTabIndex:o,previewAriaLabel:l,oEmbedUrl:s,onClick:this.handleClickPreview})}render(){const{url:r,style:a,width:i,height:o,fallback:s,wrapper:l}=this.props,{showPreview:c}=this.state,u=this.getAttributes(r),p=typeof l=="string"?this.references.wrapper:void 0;return Sp.default.createElement(l,{ref:p,style:{...a,width:i,height:o},...u},Sp.default.createElement(eKe,{fallback:s},c?this.renderPreview(r):this.renderActivePlayer(r)))}},Ir(n,"displayName","ReactPlayer"),Ir(n,"propTypes",Fm.propTypes),Ir(n,"defaultProps",Fm.defaultProps),Ir(n,"addCustomPlayer",r=>{vm.push(r)}),Ir(n,"removeCustomPlayers",()=>{vm.length=0}),Ir(n,"canPlay",r=>{for(const a of[...vm,...e])if(a.canPlay(r))return!0;return!1}),Ir(n,"canEnablePIP",r=>{for(const a of[...vm,...e])if(a.canEnablePIP&&a.canEnablePIP(r))return!0;return!1}),n};var nKe=Object.create,Uy=Object.defineProperty,rKe=Object.getOwnPropertyDescriptor,aKe=Object.getOwnPropertyNames,iKe=Object.getPrototypeOf,oKe=Object.prototype.hasOwnProperty,sKe=(e,t)=>{for(var n in t)Uy(e,n,{get:t[n],enumerable:!0})},ite=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of aKe(t))!oKe.call(e,a)&&a!==n&&Uy(e,a,{get:()=>t[a],enumerable:!(r=rKe(t,a))||r.enumerable});return e},lKe=(e,t,n)=>(n=e!=null?nKe(iKe(e)):{},ite(t||!e||!e.__esModule?Uy(n,"default",{value:e,enumerable:!0}):n,e)),cKe=e=>ite(Uy({},"__esModule",{value:!0}),e),ote={};sKe(ote,{default:()=>fKe});var uKe=cKe(ote),B4=lKe(ije),dKe=Wje;const pKe=B4.default[B4.default.length-1];var fKe=(0,dKe.createReactPlayer)(B4.default,pKe);const mKe=xa(uKe),ste=({element:e})=>e.url?_.jsx(mKe,{className:`${e.display}-video`,width:"100%",controls:!0,url:e.url,config:e.playerConfig||{}}):null,lte=({element:e})=>{switch(e==null?void 0:e.type){case"file":return _.jsx(KQ,{element:e});case"image":return _.jsx(QQ,{element:e});case"text":return _.jsx(Ree,{element:e});case"pdf":return _.jsx(XQ,{element:e});case"audio":return _.jsx(GQ,{element:e});case"video":return _.jsx(ste,{element:e});case"plotly":return _.jsx(cX,{element:e});default:return null}};var BD={exports:{}},jg={},$y={exports:{}},cte={};function ute(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=ute(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function _H(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=ute(e))&&(r&&(r+=" "),r+=t);return r}const hKe=Object.freeze(Object.defineProperty({__proto__:null,clsx:_H,default:_H},Symbol.toStringTag,{value:"Module"})),gKe=b3(hKe);var xr={},Xs={};Object.defineProperty(Xs,"__esModule",{value:!0});Xs.dontSetMe=vKe;Xs.findInArray=_Ke;Xs.int=SKe;Xs.isFunction=EKe;Xs.isNum=bKe;function _Ke(e,t){for(let n=0,r=e.length;n<r;n++)if(t.apply(t,[e[n],n,e]))return e[n]}function EKe(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Function]"}function bKe(e){return typeof e=="number"&&!isNaN(e)}function SKe(e){return parseInt(e,10)}function vKe(e,t,n){if(e[t])return new Error("Invalid prop ".concat(t," passed to ").concat(n," - do not set this, set it on the child."))}var xd={};Object.defineProperty(xd,"__esModule",{value:!0});xd.browserPrefixToKey=pte;xd.browserPrefixToStyle=yKe;xd.default=void 0;xd.getPrefix=dte;const ZO=["Moz","Webkit","O","ms"];function dte(){var e;let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"transform";if(typeof window>"u")return"";const n=(e=window.document)===null||e===void 0||(e=e.documentElement)===null||e===void 0?void 0:e.style;if(!n||t in n)return"";for(let r=0;r<ZO.length;r++)if(pte(t,ZO[r])in n)return ZO[r];return""}function pte(e,t){return t?"".concat(t).concat(TKe(e)):e}function yKe(e,t){return t?"-".concat(t.toLowerCase(),"-").concat(e):e}function TKe(e){let t="",n=!0;for(let r=0;r<e.length;r++)n?(t+=e[r].toUpperCase(),n=!1):e[r]==="-"?n=!0:t+=e[r];return t}xd.default=dte();Object.defineProperty(xr,"__esModule",{value:!0});xr.addClassName=hte;xr.addEvent=xKe;xr.addUserSelectStyles=FKe;xr.createCSSTransform=LKe;xr.createSVGTransform=MKe;xr.getTouch=kKe;xr.getTouchIdentifier=PKe;xr.getTranslation=UD;xr.innerHeight=IKe;xr.innerWidth=wKe;xr.matchesSelector=mte;xr.matchesSelectorAndParentsTo=RKe;xr.offsetXYFromParent=DKe;xr.outerHeight=OKe;xr.outerWidth=NKe;xr.removeClassName=gte;xr.removeEvent=AKe;xr.removeUserSelectStyles=BKe;var Xi=Xs,EH=CKe(xd);function fte(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(fte=function(r){return r?n:t})(e)}function CKe(e,t){if(!t&&e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=fte(t);if(n&&n.has(e))return n.get(e);var r={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(i!=="default"&&Object.prototype.hasOwnProperty.call(e,i)){var o=a?Object.getOwnPropertyDescriptor(e,i):null;o&&(o.get||o.set)?Object.defineProperty(r,i,o):r[i]=e[i]}return r.default=e,n&&n.set(e,r),r}let hE="";function mte(e,t){return hE||(hE=(0,Xi.findInArray)(["matches","webkitMatchesSelector","mozMatchesSelector","msMatchesSelector","oMatchesSelector"],function(n){return(0,Xi.isFunction)(e[n])})),(0,Xi.isFunction)(e[hE])?e[hE](t):!1}function RKe(e,t,n){let r=e;do{if(mte(r,t))return!0;if(r===n)return!1;r=r.parentNode}while(r);return!1}function xKe(e,t,n,r){if(!e)return;const a={capture:!0,...r};e.addEventListener?e.addEventListener(t,n,a):e.attachEvent?e.attachEvent("on"+t,n):e["on"+t]=n}function AKe(e,t,n,r){if(!e)return;const a={capture:!0,...r};e.removeEventListener?e.removeEventListener(t,n,a):e.detachEvent?e.detachEvent("on"+t,n):e["on"+t]=null}function OKe(e){let t=e.clientHeight;const n=e.ownerDocument.defaultView.getComputedStyle(e);return t+=(0,Xi.int)(n.borderTopWidth),t+=(0,Xi.int)(n.borderBottomWidth),t}function NKe(e){let t=e.clientWidth;const n=e.ownerDocument.defaultView.getComputedStyle(e);return t+=(0,Xi.int)(n.borderLeftWidth),t+=(0,Xi.int)(n.borderRightWidth),t}function IKe(e){let t=e.clientHeight;const n=e.ownerDocument.defaultView.getComputedStyle(e);return t-=(0,Xi.int)(n.paddingTop),t-=(0,Xi.int)(n.paddingBottom),t}function wKe(e){let t=e.clientWidth;const n=e.ownerDocument.defaultView.getComputedStyle(e);return t-=(0,Xi.int)(n.paddingLeft),t-=(0,Xi.int)(n.paddingRight),t}function DKe(e,t,n){const a=t===t.ownerDocument.body?{left:0,top:0}:t.getBoundingClientRect(),i=(e.clientX+t.scrollLeft-a.left)/n,o=(e.clientY+t.scrollTop-a.top)/n;return{x:i,y:o}}function LKe(e,t){const n=UD(e,t,"px");return{[(0,EH.browserPrefixToKey)("transform",EH.default)]:n}}function MKe(e,t){return UD(e,t,"")}function UD(e,t,n){let{x:r,y:a}=e,i="translate(".concat(r).concat(n,",").concat(a).concat(n,")");if(t){const o="".concat(typeof t.x=="string"?t.x:t.x+n),s="".concat(typeof t.y=="string"?t.y:t.y+n);i="translate(".concat(o,", ").concat(s,")")+i}return i}function kKe(e,t){return e.targetTouches&&(0,Xi.findInArray)(e.targetTouches,n=>t===n.identifier)||e.changedTouches&&(0,Xi.findInArray)(e.changedTouches,n=>t===n.identifier)}function PKe(e){if(e.targetTouches&&e.targetTouches[0])return e.targetTouches[0].identifier;if(e.changedTouches&&e.changedTouches[0])return e.changedTouches[0].identifier}function FKe(e){if(!e)return;let t=e.getElementById("react-draggable-style-el");t||(t=e.createElement("style"),t.type="text/css",t.id="react-draggable-style-el",t.innerHTML=`.react-draggable-transparent-selection *::-moz-selection {all: inherit;}
651
+ \`\`\``),_.jsx(bt,{sx:{fontFamily:u=>u.typography.fontFamily},children:_.jsx(eg,{allowHtml:i,latex:o,children:s})})};var rWe=function(t,n,r){var a=document.head||document.getElementsByTagName("head")[0],i=document.createElement("script");typeof n=="function"&&(r=n,n={}),n=n||{},r=r||function(){},i.type=n.type||"text/javascript",i.charset=n.charset||"utf8",i.async="async"in n?!!n.async:!0,i.src=t,n.attrs&&aWe(i,n.attrs),n.text&&(i.text=""+n.text);var o="onload"in i?uH:iWe;o(i,r),i.onload||uH(i,r),a.appendChild(i)};function aWe(e,t){for(var n in t)e.setAttribute(n,t[n])}function uH(e,t){e.onload=function(){this.onerror=this.onload=null,t(null,e)},e.onerror=function(){this.onerror=this.onload=null,t(new Error("Failed to load "+this.src),e)}}function iWe(e,t){e.onreadystatechange=function(){this.readyState!="complete"&&this.readyState!="loaded"||(this.onreadystatechange=null,t(null,e))}}var oWe=function(t){return sWe(t)&&!lWe(t)};function sWe(e){return!!e&&typeof e=="object"}function lWe(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||dWe(e)}var cWe=typeof Symbol=="function"&&Symbol.for,uWe=cWe?Symbol.for("react.element"):60103;function dWe(e){return e.$$typeof===uWe}function pWe(e){return Array.isArray(e)?[]:{}}function tg(e,t){return t.clone!==!1&&t.isMergeableObject(e)?If(pWe(e),e,t):e}function fWe(e,t,n){return e.concat(t).map(function(r){return tg(r,n)})}function mWe(e,t){if(!t.customMerge)return If;var n=t.customMerge(e);return typeof n=="function"?n:If}function hWe(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[]}function dH(e){return Object.keys(e).concat(hWe(e))}function xee(e,t){try{return t in e}catch{return!1}}function gWe(e,t){return xee(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))}function _We(e,t,n){var r={};return n.isMergeableObject(e)&&dH(e).forEach(function(a){r[a]=tg(e[a],n)}),dH(t).forEach(function(a){gWe(e,a)||(xee(e,a)&&n.isMergeableObject(t[a])?r[a]=mWe(a,n)(e[a],t[a],n):r[a]=tg(t[a],n))}),r}function If(e,t,n){n=n||{},n.arrayMerge=n.arrayMerge||fWe,n.isMergeableObject=n.isMergeableObject||oWe,n.cloneUnlessOtherwiseSpecified=tg;var r=Array.isArray(t),a=Array.isArray(e),i=r===a;return i?r?n.arrayMerge(e,t,n):_We(e,t,n):tg(t,n)}If.all=function(t,n){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(r,a){return If(r,a,n)},{})};var EWe=If,Aee=EWe,bWe=Object.create,ky=Object.defineProperty,SWe=Object.getOwnPropertyDescriptor,vWe=Object.getOwnPropertyNames,yWe=Object.getPrototypeOf,TWe=Object.prototype.hasOwnProperty,CWe=(e,t)=>{for(var n in t)ky(e,n,{get:t[n],enumerable:!0})},Oee=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of vWe(t))!TWe.call(e,a)&&a!==n&&ky(e,a,{get:()=>t[a],enumerable:!(r=SWe(t,a))||r.enumerable});return e},DD=(e,t,n)=>(n=e!=null?bWe(yWe(e)):{},Oee(t||!e||!e.__esModule?ky(n,"default",{value:e,enumerable:!0}):n,e)),RWe=e=>Oee(ky({},"__esModule",{value:!0}),e),Nee={};CWe(Nee,{callPlayer:()=>zWe,getConfig:()=>UWe,getSDK:()=>BWe,isBlobUrl:()=>GWe,isMediaStream:()=>HWe,lazy:()=>NWe,omit:()=>$We,parseEndTime:()=>kWe,parseStartTime:()=>MWe,queryString:()=>FWe,randomString:()=>PWe,supportsWebKitPresentationMode:()=>VWe});var Py=RWe(Nee),xWe=DD(R),AWe=DD(rWe),OWe=DD(Aee);const NWe=e=>xWe.default.lazy(async()=>{const t=await e();return typeof t.default=="function"?t:t.default}),IWe=/[?&#](?:start|t)=([0-9hms]+)/,wWe=/[?&#]end=([0-9hms]+)/,k4=/(\d+)(h|m|s)/g,DWe=/^\d+$/;function Iee(e,t){if(e instanceof Array)return;const n=e.match(t);if(n){const r=n[1];if(r.match(k4))return LWe(r);if(DWe.test(r))return parseInt(r)}}function LWe(e){let t=0,n=k4.exec(e);for(;n!==null;){const[,r,a]=n;a==="h"&&(t+=parseInt(r,10)*60*60),a==="m"&&(t+=parseInt(r,10)*60),a==="s"&&(t+=parseInt(r,10)),n=k4.exec(e)}return t}function MWe(e){return Iee(e,IWe)}function kWe(e){return Iee(e,wWe)}function PWe(){return Math.random().toString(36).substr(2,5)}function FWe(e){return Object.keys(e).map(t=>`${t}=${e[t]}`).join("&")}function KO(e){return window[e]?window[e]:window.exports&&window.exports[e]?window.exports[e]:window.module&&window.module.exports&&window.module.exports[e]?window.module.exports[e]:null}const lp={},BWe=function(t,n,r=null,a=()=>!0,i=AWe.default){const o=KO(n);return o&&a(o)?Promise.resolve(o):new Promise((s,l)=>{if(lp[t]){lp[t].push({resolve:s,reject:l});return}lp[t]=[{resolve:s,reject:l}];const c=u=>{lp[t].forEach(p=>p.resolve(u))};if(r){const u=window[r];window[r]=function(){u&&u(),c(KO(n))}}i(t,u=>{u?(lp[t].forEach(p=>p.reject(u)),lp[t]=null):r||c(KO(n))})})};function UWe(e,t){return(0,OWe.default)(t.config,e.config)}function $We(e,...t){const n=[].concat(...t),r={},a=Object.keys(e);for(const i of a)n.indexOf(i)===-1&&(r[i]=e[i]);return r}function zWe(e,...t){if(!this.player||!this.player[e]){let n=`ReactPlayer: ${this.constructor.displayName} player could not call %c${e}%c – `;return this.player?this.player[e]||(n+="The method was not available"):n+="The player was not available",console.warn(n,"font-weight: bold",""),null}return this.player[e](...t)}function HWe(e){return typeof window<"u"&&typeof window.MediaStream<"u"&&e instanceof window.MediaStream}function GWe(e){return/^blob:/.test(e)}function VWe(e=document.createElement("video")){const t=/iPhone|iPod/.test(navigator.userAgent)===!1;return e.webkitSupportsPresentationMode&&typeof e.webkitSetPresentationMode=="function"&&t}var LD=Object.defineProperty,YWe=Object.getOwnPropertyDescriptor,qWe=Object.getOwnPropertyNames,WWe=Object.prototype.hasOwnProperty,jWe=(e,t)=>{for(var n in t)LD(e,n,{get:t[n],enumerable:!0})},KWe=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of qWe(t))!WWe.call(e,a)&&a!==n&&LD(e,a,{get:()=>t[a],enumerable:!(r=YWe(t,a))||r.enumerable});return e},QWe=e=>KWe(LD({},"__esModule",{value:!0}),e),wee={};jWe(wee,{AUDIO_EXTENSIONS:()=>MD,DASH_EXTENSIONS:()=>Yee,FLV_EXTENSIONS:()=>qee,HLS_EXTENSIONS:()=>PD,MATCH_URL_DAILYMOTION:()=>zee,MATCH_URL_FACEBOOK:()=>kee,MATCH_URL_FACEBOOK_WATCH:()=>Pee,MATCH_URL_KALTURA:()=>Vee,MATCH_URL_MIXCLOUD:()=>Hee,MATCH_URL_MUX:()=>Mee,MATCH_URL_SOUNDCLOUD:()=>Dee,MATCH_URL_STREAMABLE:()=>Fee,MATCH_URL_TWITCH_CHANNEL:()=>$ee,MATCH_URL_TWITCH_VIDEO:()=>Uee,MATCH_URL_VIDYARD:()=>Gee,MATCH_URL_VIMEO:()=>Lee,MATCH_URL_WISTIA:()=>Bee,MATCH_URL_YOUTUBE:()=>P4,VIDEO_EXTENSIONS:()=>kD,canPlay:()=>ZWe});var XWe=QWe(wee),pH=Py;const P4=/(?:youtu\.be\/|youtube(?:-nocookie|education)?\.com\/(?:embed\/|v\/|watch\/|watch\?v=|watch\?.+&v=|shorts\/|live\/))((\w|-){11})|youtube\.com\/playlist\?list=|youtube\.com\/user\//,Dee=/(?:soundcloud\.com|snd\.sc)\/[^.]+$/,Lee=/vimeo\.com\/(?!progressive_redirect).+/,Mee=/stream\.mux\.com\/(?!\w+\.m3u8)(\w+)/,kee=/^https?:\/\/(www\.)?facebook\.com.*\/(video(s)?|watch|story)(\.php?|\/).+$/,Pee=/^https?:\/\/fb\.watch\/.+$/,Fee=/streamable\.com\/([a-z0-9]+)$/,Bee=/(?:wistia\.(?:com|net)|wi\.st)\/(?:medias|embed)\/(?:iframe\/)?([^?]+)/,Uee=/(?:www\.|go\.)?twitch\.tv\/videos\/(\d+)($|\?)/,$ee=/(?:www\.|go\.)?twitch\.tv\/([a-zA-Z0-9_]+)($|\?)/,zee=/^(?:(?:https?):)?(?:\/\/)?(?:www\.)?(?:(?:dailymotion\.com(?:\/embed)?\/video)|dai\.ly)\/([a-zA-Z0-9]+)(?:_[\w_-]+)?(?:[\w.#_-]+)?/,Hee=/mixcloud\.com\/([^/]+\/[^/]+)/,Gee=/vidyard.com\/(?:watch\/)?([a-zA-Z0-9-_]+)/,Vee=/^https?:\/\/[a-zA-Z]+\.kaltura.(com|org)\/p\/([0-9]+)\/sp\/([0-9]+)00\/embedIframeJs\/uiconf_id\/([0-9]+)\/partner_id\/([0-9]+)(.*)entry_id.([a-zA-Z0-9-_].*)$/,MD=/\.(m4a|m4b|mp4a|mpga|mp2|mp2a|mp3|m2a|m3a|wav|weba|aac|oga|spx)($|\?)/i,kD=/\.(mp4|og[gv]|webm|mov|m4v)(#t=[,\d+]+)?($|\?)/i,PD=/\.(m3u8)($|\?)/i,Yee=/\.(mpd)($|\?)/i,qee=/\.(flv)($|\?)/i,F4=e=>{if(e instanceof Array){for(const t of e)if(typeof t=="string"&&F4(t)||F4(t.src))return!0;return!1}return(0,pH.isMediaStream)(e)||(0,pH.isBlobUrl)(e)?!0:MD.test(e)||kD.test(e)||PD.test(e)||Yee.test(e)||qee.test(e)},ZWe={youtube:e=>e instanceof Array?e.every(t=>P4.test(t)):P4.test(e),soundcloud:e=>Dee.test(e)&&!MD.test(e),vimeo:e=>Lee.test(e)&&!kD.test(e)&&!PD.test(e),mux:e=>Mee.test(e),facebook:e=>kee.test(e)||Pee.test(e),streamable:e=>Fee.test(e),wistia:e=>Bee.test(e),twitch:e=>Uee.test(e)||$ee.test(e),dailymotion:e=>zee.test(e),mixcloud:e=>Hee.test(e),vidyard:e=>Gee.test(e),kaltura:e=>Vee.test(e),file:F4};var FD=Object.defineProperty,JWe=Object.getOwnPropertyDescriptor,eje=Object.getOwnPropertyNames,tje=Object.prototype.hasOwnProperty,nje=(e,t)=>{for(var n in t)FD(e,n,{get:t[n],enumerable:!0})},rje=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of eje(t))!tje.call(e,a)&&a!==n&&FD(e,a,{get:()=>t[a],enumerable:!(r=JWe(t,a))||r.enumerable});return e},aje=e=>rje(FD({},"__esModule",{value:!0}),e),Wee={};nje(Wee,{default:()=>oje});var ije=aje(Wee),di=Py,Ya=XWe,oje=[{key:"youtube",name:"YouTube",canPlay:Ya.canPlay.youtube,lazyPlayer:(0,di.lazy)(()=>Wa(()=>import("./YouTube-bdf4ca10.js").then(e=>e.Y),[]))},{key:"soundcloud",name:"SoundCloud",canPlay:Ya.canPlay.soundcloud,lazyPlayer:(0,di.lazy)(()=>Wa(()=>import("./SoundCloud-8afad6c0.js").then(e=>e.S),[]))},{key:"vimeo",name:"Vimeo",canPlay:Ya.canPlay.vimeo,lazyPlayer:(0,di.lazy)(()=>Wa(()=>import("./Vimeo-ca732959.js").then(e=>e.V),[]))},{key:"mux",name:"Mux",canPlay:Ya.canPlay.mux,lazyPlayer:(0,di.lazy)(()=>Wa(()=>import("./Mux-fb751398.js").then(e=>e.M),[]))},{key:"facebook",name:"Facebook",canPlay:Ya.canPlay.facebook,lazyPlayer:(0,di.lazy)(()=>Wa(()=>import("./Facebook-25f45c09.js").then(e=>e.F),[]))},{key:"streamable",name:"Streamable",canPlay:Ya.canPlay.streamable,lazyPlayer:(0,di.lazy)(()=>Wa(()=>import("./Streamable-08844d93.js").then(e=>e.S),[]))},{key:"wistia",name:"Wistia",canPlay:Ya.canPlay.wistia,lazyPlayer:(0,di.lazy)(()=>Wa(()=>import("./Wistia-74e58d71.js").then(e=>e.W),[]))},{key:"twitch",name:"Twitch",canPlay:Ya.canPlay.twitch,lazyPlayer:(0,di.lazy)(()=>Wa(()=>import("./Twitch-1b95f5c8.js").then(e=>e.T),[]))},{key:"dailymotion",name:"DailyMotion",canPlay:Ya.canPlay.dailymotion,lazyPlayer:(0,di.lazy)(()=>Wa(()=>import("./DailyMotion-4f715d15.js").then(e=>e.D),[]))},{key:"mixcloud",name:"Mixcloud",canPlay:Ya.canPlay.mixcloud,lazyPlayer:(0,di.lazy)(()=>Wa(()=>import("./Mixcloud-914b75ee.js").then(e=>e.M),[]))},{key:"vidyard",name:"Vidyard",canPlay:Ya.canPlay.vidyard,lazyPlayer:(0,di.lazy)(()=>Wa(()=>import("./Vidyard-5028fa2f.js").then(e=>e.V),[]))},{key:"kaltura",name:"Kaltura",canPlay:Ya.canPlay.kaltura,lazyPlayer:(0,di.lazy)(()=>Wa(()=>import("./Kaltura-37152a96.js").then(e=>e.K),[]))},{key:"file",name:"FilePlayer",canPlay:Ya.canPlay.file,canEnablePIP:e=>Ya.canPlay.file(e)&&(document.pictureInPictureEnabled||(0,di.supportsWebKitPresentationMode)())&&!Ya.AUDIO_EXTENSIONS.test(e),lazyPlayer:(0,di.lazy)(()=>Wa(()=>import("./FilePlayer-04482650.js").then(e=>e.F),[]))}],fH=Number.isNaN||function(t){return typeof t=="number"&&t!==t};function sje(e,t){return!!(e===t||fH(e)&&fH(t))}function lje(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!sje(e[n],t[n]))return!1;return!0}function cje(e,t){t===void 0&&(t=lje);var n,r=[],a,i=!1;function o(){for(var s=[],l=0;l<arguments.length;l++)s[l]=arguments[l];return i&&n===this&&t(s,r)||(a=e.apply(this,s),i=!0,n=this,r=s),a}return o}const uje=Object.freeze(Object.defineProperty({__proto__:null,default:cje},Symbol.toStringTag,{value:"Module"})),dje=b3(uje);var pje=typeof Element<"u",fje=typeof Map=="function",mje=typeof Set=="function",hje=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function ZE(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;var n,r,a;if(Array.isArray(e)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(!ZE(e[r],t[r]))return!1;return!0}var i;if(fje&&e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(i=e.entries();!(r=i.next()).done;)if(!t.has(r.value[0]))return!1;for(i=e.entries();!(r=i.next()).done;)if(!ZE(r.value[1],t.get(r.value[0])))return!1;return!0}if(mje&&e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(i=e.entries();!(r=i.next()).done;)if(!t.has(r.value[0]))return!1;return!0}if(hje&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(e[r]!==t[r])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf&&typeof e.valueOf=="function"&&typeof t.valueOf=="function")return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString&&typeof e.toString=="function"&&typeof t.toString=="function")return e.toString()===t.toString();if(a=Object.keys(e),n=a.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!Object.prototype.hasOwnProperty.call(t,a[r]))return!1;if(pje&&e instanceof Element)return!1;for(r=n;r--!==0;)if(!((a[r]==="_owner"||a[r]==="__v"||a[r]==="__o")&&e.$$typeof)&&!ZE(e[a[r]],t[a[r]]))return!1;return!0}return e!==e&&t!==t}var jee=function(t,n){try{return ZE(t,n)}catch(r){if((r.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw r}},gje=Object.create,Fy=Object.defineProperty,_je=Object.getOwnPropertyDescriptor,Eje=Object.getOwnPropertyNames,bje=Object.getPrototypeOf,Sje=Object.prototype.hasOwnProperty,vje=(e,t)=>{for(var n in t)Fy(e,n,{get:t[n],enumerable:!0})},Kee=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of Eje(t))!Sje.call(e,a)&&a!==n&&Fy(e,a,{get:()=>t[a],enumerable:!(r=_je(t,a))||r.enumerable});return e},yje=(e,t,n)=>(n=e!=null?gje(bje(e)):{},Kee(t||!e||!e.__esModule?Fy(n,"default",{value:e,enumerable:!0}):n,e)),Tje=e=>Kee(Fy({},"__esModule",{value:!0}),e),Qee={};vje(Qee,{defaultProps:()=>xje,propTypes:()=>Rje});var Xee=Tje(Qee),Cje=yje(Wf);const{string:_a,bool:qa,number:cp,array:QO,oneOfType:Sm,shape:Ui,object:Da,func:jr,node:mH}=Cje.default,Rje={url:Sm([_a,QO,Da]),playing:qa,loop:qa,controls:qa,volume:cp,muted:qa,playbackRate:cp,width:Sm([_a,cp]),height:Sm([_a,cp]),style:Da,progressInterval:cp,playsinline:qa,pip:qa,stopOnUnmount:qa,light:Sm([qa,_a,Da]),playIcon:mH,previewTabIndex:cp,previewAriaLabel:_a,fallback:mH,oEmbedUrl:_a,wrapper:Sm([_a,jr,Ui({render:jr.isRequired})]),config:Ui({soundcloud:Ui({options:Da}),youtube:Ui({playerVars:Da,embedOptions:Da,onUnstarted:jr}),facebook:Ui({appId:_a,version:_a,playerId:_a,attributes:Da}),dailymotion:Ui({params:Da}),vimeo:Ui({playerOptions:Da,title:_a}),mux:Ui({attributes:Da,version:_a}),file:Ui({attributes:Da,tracks:QO,forceVideo:qa,forceAudio:qa,forceHLS:qa,forceSafariHLS:qa,forceDisableHls:qa,forceDASH:qa,forceFLV:qa,hlsOptions:Da,hlsVersion:_a,dashVersion:_a,flvVersion:_a}),wistia:Ui({options:Da,playerId:_a,customControls:QO}),mixcloud:Ui({options:Da}),twitch:Ui({options:Da,playerId:_a}),vidyard:Ui({options:Da})}),onReady:jr,onStart:jr,onPlay:jr,onPause:jr,onBuffer:jr,onBufferEnd:jr,onEnded:jr,onError:jr,onDuration:jr,onSeek:jr,onPlaybackRateChange:jr,onPlaybackQualityChange:jr,onProgress:jr,onClickPreview:jr,onEnablePIP:jr,onDisablePIP:jr},Ea=()=>{},xje={playing:!1,loop:!1,controls:!1,volume:null,muted:!1,playbackRate:1,width:"640px",height:"360px",style:{},progressInterval:1e3,playsinline:!1,pip:!1,stopOnUnmount:!0,light:!1,fallback:null,wrapper:"div",previewTabIndex:0,previewAriaLabel:"",oEmbedUrl:"https://noembed.com/embed?url={url}",config:{soundcloud:{options:{visual:!0,buying:!1,liking:!1,download:!1,sharing:!1,show_comments:!1,show_playcount:!1}},youtube:{playerVars:{playsinline:1,showinfo:0,rel:0,iv_load_policy:3,modestbranding:1},embedOptions:{},onUnstarted:Ea},facebook:{appId:"1309697205772819",version:"v3.3",playerId:null,attributes:{}},dailymotion:{params:{api:1,"endscreen-enable":!1}},vimeo:{playerOptions:{autopause:!1,byline:!1,portrait:!1,title:!1},title:null},mux:{attributes:{},version:"2"},file:{attributes:{},tracks:[],forceVideo:!1,forceAudio:!1,forceHLS:!1,forceDASH:!1,forceFLV:!1,hlsOptions:{},hlsVersion:"1.1.4",dashVersion:"3.1.3",flvVersion:"1.5.0",forceDisableHls:!1},wistia:{options:{},playerId:null,customControls:null},mixcloud:{options:{hide_cover:1}},twitch:{options:{},playerId:null},vidyard:{options:{}}},onReady:Ea,onStart:Ea,onPlay:Ea,onPause:Ea,onBuffer:Ea,onBufferEnd:Ea,onEnded:Ea,onError:Ea,onDuration:Ea,onSeek:Ea,onPlaybackRateChange:Ea,onPlaybackQualityChange:Ea,onProgress:Ea,onClickPreview:Ea,onEnablePIP:Ea,onDisablePIP:Ea};var Aje=Object.create,Yg=Object.defineProperty,Oje=Object.getOwnPropertyDescriptor,Nje=Object.getOwnPropertyNames,Ije=Object.getPrototypeOf,wje=Object.prototype.hasOwnProperty,Dje=(e,t,n)=>t in e?Yg(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Lje=(e,t)=>{for(var n in t)Yg(e,n,{get:t[n],enumerable:!0})},Zee=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of Nje(t))!wje.call(e,a)&&a!==n&&Yg(e,a,{get:()=>t[a],enumerable:!(r=Oje(t,a))||r.enumerable});return e},Jee=(e,t,n)=>(n=e!=null?Aje(Ije(e)):{},Zee(t||!e||!e.__esModule?Yg(n,"default",{value:e,enumerable:!0}):n,e)),Mje=e=>Zee(Yg({},"__esModule",{value:!0}),e),wr=(e,t,n)=>(Dje(e,typeof t!="symbol"?t+"":t,n),n),ete={};Lje(ete,{default:()=>By});var kje=Mje(ete),hH=Jee(R),Pje=Jee(jee),tte=Xee,Fje=Py;const Bje=5e3;class By extends hH.Component{constructor(){super(...arguments),wr(this,"mounted",!1),wr(this,"isReady",!1),wr(this,"isPlaying",!1),wr(this,"isLoading",!0),wr(this,"loadOnReady",null),wr(this,"startOnPlay",!0),wr(this,"seekOnPlay",null),wr(this,"onDurationCalled",!1),wr(this,"handlePlayerMount",t=>{if(this.player){this.progress();return}this.player=t,this.player.load(this.props.url),this.progress()}),wr(this,"getInternalPlayer",t=>this.player?this.player[t]:null),wr(this,"progress",()=>{if(this.props.url&&this.player&&this.isReady){const t=this.getCurrentTime()||0,n=this.getSecondsLoaded(),r=this.getDuration();if(r){const a={playedSeconds:t,played:t/r};n!==null&&(a.loadedSeconds=n,a.loaded=n/r),(a.playedSeconds!==this.prevPlayed||a.loadedSeconds!==this.prevLoaded)&&this.props.onProgress(a),this.prevPlayed=a.playedSeconds,this.prevLoaded=a.loadedSeconds}}this.progressTimeout=setTimeout(this.progress,this.props.progressFrequency||this.props.progressInterval)}),wr(this,"handleReady",()=>{if(!this.mounted)return;this.isReady=!0,this.isLoading=!1;const{onReady:t,playing:n,volume:r,muted:a}=this.props;t(),!a&&r!==null&&this.player.setVolume(r),this.loadOnReady?(this.player.load(this.loadOnReady,!0),this.loadOnReady=null):n&&this.player.play(),this.handleDurationCheck()}),wr(this,"handlePlay",()=>{this.isPlaying=!0,this.isLoading=!1;const{onStart:t,onPlay:n,playbackRate:r}=this.props;this.startOnPlay&&(this.player.setPlaybackRate&&r!==1&&this.player.setPlaybackRate(r),t(),this.startOnPlay=!1),n(),this.seekOnPlay&&(this.seekTo(this.seekOnPlay),this.seekOnPlay=null),this.handleDurationCheck()}),wr(this,"handlePause",t=>{this.isPlaying=!1,this.isLoading||this.props.onPause(t)}),wr(this,"handleEnded",()=>{const{activePlayer:t,loop:n,onEnded:r}=this.props;t.loopOnEnded&&n&&this.seekTo(0),n||(this.isPlaying=!1,r())}),wr(this,"handleError",(...t)=>{this.isLoading=!1,this.props.onError(...t)}),wr(this,"handleDurationCheck",()=>{clearTimeout(this.durationCheckTimeout);const t=this.getDuration();t?this.onDurationCalled||(this.props.onDuration(t),this.onDurationCalled=!0):this.durationCheckTimeout=setTimeout(this.handleDurationCheck,100)}),wr(this,"handleLoaded",()=>{this.isLoading=!1})}componentDidMount(){this.mounted=!0}componentWillUnmount(){clearTimeout(this.progressTimeout),clearTimeout(this.durationCheckTimeout),this.isReady&&this.props.stopOnUnmount&&(this.player.stop(),this.player.disablePIP&&this.player.disablePIP()),this.mounted=!1}componentDidUpdate(t){if(!this.player)return;const{url:n,playing:r,volume:a,muted:i,playbackRate:o,pip:s,loop:l,activePlayer:c,disableDeferredLoading:u}=this.props;if(!(0,Pje.default)(t.url,n)){if(this.isLoading&&!c.forceLoad&&!u&&!(0,Fje.isMediaStream)(n)){console.warn(`ReactPlayer: the attempt to load ${n} is being deferred until the player has loaded`),this.loadOnReady=n;return}this.isLoading=!0,this.startOnPlay=!0,this.onDurationCalled=!1,this.player.load(n,this.isReady)}!t.playing&&r&&!this.isPlaying&&this.player.play(),t.playing&&!r&&this.isPlaying&&this.player.pause(),!t.pip&&s&&this.player.enablePIP&&this.player.enablePIP(),t.pip&&!s&&this.player.disablePIP&&this.player.disablePIP(),t.volume!==a&&a!==null&&this.player.setVolume(a),t.muted!==i&&(i?this.player.mute():(this.player.unmute(),a!==null&&setTimeout(()=>this.player.setVolume(a)))),t.playbackRate!==o&&this.player.setPlaybackRate&&this.player.setPlaybackRate(o),t.loop!==l&&this.player.setLoop&&this.player.setLoop(l)}getDuration(){return this.isReady?this.player.getDuration():null}getCurrentTime(){return this.isReady?this.player.getCurrentTime():null}getSecondsLoaded(){return this.isReady?this.player.getSecondsLoaded():null}seekTo(t,n,r){if(!this.isReady){t!==0&&(this.seekOnPlay=t,setTimeout(()=>{this.seekOnPlay=null},Bje));return}if(n?n==="fraction":t>0&&t<1){const i=this.player.getDuration();if(!i){console.warn("ReactPlayer: could not seek using fraction – duration not yet available");return}this.player.seekTo(i*t,r);return}this.player.seekTo(t,r)}render(){const t=this.props.activePlayer;return t?hH.default.createElement(t,{...this.props,onMount:this.handlePlayerMount,onReady:this.handleReady,onPlay:this.handlePlay,onPause:this.handlePause,onEnded:this.handleEnded,onLoaded:this.handleLoaded,onError:this.handleError}):null}}wr(By,"displayName","Player");wr(By,"propTypes",tte.propTypes);wr(By,"defaultProps",tte.defaultProps);var Uje=Object.create,qg=Object.defineProperty,$je=Object.getOwnPropertyDescriptor,zje=Object.getOwnPropertyNames,Hje=Object.getPrototypeOf,Gje=Object.prototype.hasOwnProperty,Vje=(e,t,n)=>t in e?qg(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Yje=(e,t)=>{for(var n in t)qg(e,n,{get:t[n],enumerable:!0})},nte=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of zje(t))!Gje.call(e,a)&&a!==n&&qg(e,a,{get:()=>t[a],enumerable:!(r=$je(t,a))||r.enumerable});return e},Wg=(e,t,n)=>(n=e!=null?Uje(Hje(e)):{},nte(t||!e||!e.__esModule?qg(n,"default",{value:e,enumerable:!0}):n,e)),qje=e=>nte(qg({},"__esModule",{value:!0}),e),Ir=(e,t,n)=>(Vje(e,typeof t!="symbol"?t+"":t,n),n),rte={};Yje(rte,{createReactPlayer:()=>tKe});var Wje=qje(rte),Sp=Wg(R),jje=Wg(Aee),XO=Wg(dje),gH=Wg(jee),Fm=Xee,ate=Py,Kje=Wg(kje);const Qje=(0,ate.lazy)(()=>Wa(()=>import("./Preview-85fbb8da.js").then(e=>e.P),[])),Xje=typeof window<"u"&&window.document&&typeof document<"u",Zje=typeof aa<"u"&&aa.window&&aa.window.document,Jje=Object.keys(Fm.propTypes),eKe=Xje||Zje?Sp.Suspense:()=>null,vm=[],tKe=(e,t)=>{var n;return n=class extends Sp.Component{constructor(){super(...arguments),Ir(this,"state",{showPreview:!!this.props.light}),Ir(this,"references",{wrapper:r=>{this.wrapper=r},player:r=>{this.player=r}}),Ir(this,"handleClickPreview",r=>{this.setState({showPreview:!1}),this.props.onClickPreview(r)}),Ir(this,"showPreview",()=>{this.setState({showPreview:!0})}),Ir(this,"getDuration",()=>this.player?this.player.getDuration():null),Ir(this,"getCurrentTime",()=>this.player?this.player.getCurrentTime():null),Ir(this,"getSecondsLoaded",()=>this.player?this.player.getSecondsLoaded():null),Ir(this,"getInternalPlayer",(r="player")=>this.player?this.player.getInternalPlayer(r):null),Ir(this,"seekTo",(r,a,i)=>{if(!this.player)return null;this.player.seekTo(r,a,i)}),Ir(this,"handleReady",()=>{this.props.onReady(this)}),Ir(this,"getActivePlayer",(0,XO.default)(r=>{for(const a of[...vm,...e])if(a.canPlay(r))return a;return t||null})),Ir(this,"getConfig",(0,XO.default)((r,a)=>{const{config:i}=this.props;return jje.default.all([Fm.defaultProps.config,Fm.defaultProps.config[a]||{},i,i[a]||{}])})),Ir(this,"getAttributes",(0,XO.default)(r=>(0,ate.omit)(this.props,Jje))),Ir(this,"renderActivePlayer",r=>{if(!r)return null;const a=this.getActivePlayer(r);if(!a)return null;const i=this.getConfig(r,a.key);return Sp.default.createElement(Kje.default,{...this.props,key:a.key,ref:this.references.player,config:i,activePlayer:a.lazyPlayer||a,onReady:this.handleReady})})}shouldComponentUpdate(r,a){return!(0,gH.default)(this.props,r)||!(0,gH.default)(this.state,a)}componentDidUpdate(r){const{light:a}=this.props;!r.light&&a&&this.setState({showPreview:!0}),r.light&&!a&&this.setState({showPreview:!1})}renderPreview(r){if(!r)return null;const{light:a,playIcon:i,previewTabIndex:o,oEmbedUrl:s,previewAriaLabel:l}=this.props;return Sp.default.createElement(Qje,{url:r,light:a,playIcon:i,previewTabIndex:o,previewAriaLabel:l,oEmbedUrl:s,onClick:this.handleClickPreview})}render(){const{url:r,style:a,width:i,height:o,fallback:s,wrapper:l}=this.props,{showPreview:c}=this.state,u=this.getAttributes(r),p=typeof l=="string"?this.references.wrapper:void 0;return Sp.default.createElement(l,{ref:p,style:{...a,width:i,height:o},...u},Sp.default.createElement(eKe,{fallback:s},c?this.renderPreview(r):this.renderActivePlayer(r)))}},Ir(n,"displayName","ReactPlayer"),Ir(n,"propTypes",Fm.propTypes),Ir(n,"defaultProps",Fm.defaultProps),Ir(n,"addCustomPlayer",r=>{vm.push(r)}),Ir(n,"removeCustomPlayers",()=>{vm.length=0}),Ir(n,"canPlay",r=>{for(const a of[...vm,...e])if(a.canPlay(r))return!0;return!1}),Ir(n,"canEnablePIP",r=>{for(const a of[...vm,...e])if(a.canEnablePIP&&a.canEnablePIP(r))return!0;return!1}),n};var nKe=Object.create,Uy=Object.defineProperty,rKe=Object.getOwnPropertyDescriptor,aKe=Object.getOwnPropertyNames,iKe=Object.getPrototypeOf,oKe=Object.prototype.hasOwnProperty,sKe=(e,t)=>{for(var n in t)Uy(e,n,{get:t[n],enumerable:!0})},ite=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of aKe(t))!oKe.call(e,a)&&a!==n&&Uy(e,a,{get:()=>t[a],enumerable:!(r=rKe(t,a))||r.enumerable});return e},lKe=(e,t,n)=>(n=e!=null?nKe(iKe(e)):{},ite(t||!e||!e.__esModule?Uy(n,"default",{value:e,enumerable:!0}):n,e)),cKe=e=>ite(Uy({},"__esModule",{value:!0}),e),ote={};sKe(ote,{default:()=>fKe});var uKe=cKe(ote),B4=lKe(ije),dKe=Wje;const pKe=B4.default[B4.default.length-1];var fKe=(0,dKe.createReactPlayer)(B4.default,pKe);const mKe=xa(uKe),ste=({element:e})=>e.url?_.jsx(mKe,{className:`${e.display}-video`,width:"100%",controls:!0,url:e.url,config:e.playerConfig||{}}):null,lte=({element:e})=>{switch(e==null?void 0:e.type){case"file":return _.jsx(KQ,{element:e});case"image":return _.jsx(QQ,{element:e});case"text":return _.jsx(Ree,{element:e});case"pdf":return _.jsx(XQ,{element:e});case"audio":return _.jsx(GQ,{element:e});case"video":return _.jsx(ste,{element:e});case"plotly":return _.jsx(cX,{element:e});default:return null}};var BD={exports:{}},jg={},$y={exports:{}},cte={};function ute(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=ute(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function _H(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=ute(e))&&(r&&(r+=" "),r+=t);return r}const hKe=Object.freeze(Object.defineProperty({__proto__:null,clsx:_H,default:_H},Symbol.toStringTag,{value:"Module"})),gKe=b3(hKe);var xr={},Xs={};Object.defineProperty(Xs,"__esModule",{value:!0});Xs.dontSetMe=vKe;Xs.findInArray=_Ke;Xs.int=SKe;Xs.isFunction=EKe;Xs.isNum=bKe;function _Ke(e,t){for(let n=0,r=e.length;n<r;n++)if(t.apply(t,[e[n],n,e]))return e[n]}function EKe(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Function]"}function bKe(e){return typeof e=="number"&&!isNaN(e)}function SKe(e){return parseInt(e,10)}function vKe(e,t,n){if(e[t])return new Error("Invalid prop ".concat(t," passed to ").concat(n," - do not set this, set it on the child."))}var xd={};Object.defineProperty(xd,"__esModule",{value:!0});xd.browserPrefixToKey=pte;xd.browserPrefixToStyle=yKe;xd.default=void 0;xd.getPrefix=dte;const ZO=["Moz","Webkit","O","ms"];function dte(){var e;let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"transform";if(typeof window>"u")return"";const n=(e=window.document)===null||e===void 0||(e=e.documentElement)===null||e===void 0?void 0:e.style;if(!n||t in n)return"";for(let r=0;r<ZO.length;r++)if(pte(t,ZO[r])in n)return ZO[r];return""}function pte(e,t){return t?"".concat(t).concat(TKe(e)):e}function yKe(e,t){return t?"-".concat(t.toLowerCase(),"-").concat(e):e}function TKe(e){let t="",n=!0;for(let r=0;r<e.length;r++)n?(t+=e[r].toUpperCase(),n=!1):e[r]==="-"?n=!0:t+=e[r];return t}xd.default=dte();Object.defineProperty(xr,"__esModule",{value:!0});xr.addClassName=hte;xr.addEvent=xKe;xr.addUserSelectStyles=FKe;xr.createCSSTransform=LKe;xr.createSVGTransform=MKe;xr.getTouch=kKe;xr.getTouchIdentifier=PKe;xr.getTranslation=UD;xr.innerHeight=IKe;xr.innerWidth=wKe;xr.matchesSelector=mte;xr.matchesSelectorAndParentsTo=RKe;xr.offsetXYFromParent=DKe;xr.outerHeight=OKe;xr.outerWidth=NKe;xr.removeClassName=gte;xr.removeEvent=AKe;xr.removeUserSelectStyles=BKe;var Xi=Xs,EH=CKe(xd);function fte(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(fte=function(r){return r?n:t})(e)}function CKe(e,t){if(!t&&e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=fte(t);if(n&&n.has(e))return n.get(e);var r={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(i!=="default"&&Object.prototype.hasOwnProperty.call(e,i)){var o=a?Object.getOwnPropertyDescriptor(e,i):null;o&&(o.get||o.set)?Object.defineProperty(r,i,o):r[i]=e[i]}return r.default=e,n&&n.set(e,r),r}let hE="";function mte(e,t){return hE||(hE=(0,Xi.findInArray)(["matches","webkitMatchesSelector","mozMatchesSelector","msMatchesSelector","oMatchesSelector"],function(n){return(0,Xi.isFunction)(e[n])})),(0,Xi.isFunction)(e[hE])?e[hE](t):!1}function RKe(e,t,n){let r=e;do{if(mte(r,t))return!0;if(r===n)return!1;r=r.parentNode}while(r);return!1}function xKe(e,t,n,r){if(!e)return;const a={capture:!0,...r};e.addEventListener?e.addEventListener(t,n,a):e.attachEvent?e.attachEvent("on"+t,n):e["on"+t]=n}function AKe(e,t,n,r){if(!e)return;const a={capture:!0,...r};e.removeEventListener?e.removeEventListener(t,n,a):e.detachEvent?e.detachEvent("on"+t,n):e["on"+t]=null}function OKe(e){let t=e.clientHeight;const n=e.ownerDocument.defaultView.getComputedStyle(e);return t+=(0,Xi.int)(n.borderTopWidth),t+=(0,Xi.int)(n.borderBottomWidth),t}function NKe(e){let t=e.clientWidth;const n=e.ownerDocument.defaultView.getComputedStyle(e);return t+=(0,Xi.int)(n.borderLeftWidth),t+=(0,Xi.int)(n.borderRightWidth),t}function IKe(e){let t=e.clientHeight;const n=e.ownerDocument.defaultView.getComputedStyle(e);return t-=(0,Xi.int)(n.paddingTop),t-=(0,Xi.int)(n.paddingBottom),t}function wKe(e){let t=e.clientWidth;const n=e.ownerDocument.defaultView.getComputedStyle(e);return t-=(0,Xi.int)(n.paddingLeft),t-=(0,Xi.int)(n.paddingRight),t}function DKe(e,t,n){const a=t===t.ownerDocument.body?{left:0,top:0}:t.getBoundingClientRect(),i=(e.clientX+t.scrollLeft-a.left)/n,o=(e.clientY+t.scrollTop-a.top)/n;return{x:i,y:o}}function LKe(e,t){const n=UD(e,t,"px");return{[(0,EH.browserPrefixToKey)("transform",EH.default)]:n}}function MKe(e,t){return UD(e,t,"")}function UD(e,t,n){let{x:r,y:a}=e,i="translate(".concat(r).concat(n,",").concat(a).concat(n,")");if(t){const o="".concat(typeof t.x=="string"?t.x:t.x+n),s="".concat(typeof t.y=="string"?t.y:t.y+n);i="translate(".concat(o,", ").concat(s,")")+i}return i}function kKe(e,t){return e.targetTouches&&(0,Xi.findInArray)(e.targetTouches,n=>t===n.identifier)||e.changedTouches&&(0,Xi.findInArray)(e.changedTouches,n=>t===n.identifier)}function PKe(e){if(e.targetTouches&&e.targetTouches[0])return e.targetTouches[0].identifier;if(e.changedTouches&&e.changedTouches[0])return e.changedTouches[0].identifier}function FKe(e){if(!e)return;let t=e.getElementById("react-draggable-style-el");t||(t=e.createElement("style"),t.type="text/css",t.id="react-draggable-style-el",t.innerHTML=`.react-draggable-transparent-selection *::-moz-selection {all: inherit;}
652
652
  `,t.innerHTML+=`.react-draggable-transparent-selection *::selection {all: inherit;}
653
653
  `,e.getElementsByTagName("head")[0].appendChild(t)),e.body&&hte(e.body,"react-draggable-transparent-selection")}function BKe(e){if(e)try{if(e.body&&gte(e.body,"react-draggable-transparent-selection"),e.selection)e.selection.empty();else{const t=(e.defaultView||window).getSelection();t&&t.type!=="Caret"&&t.removeAllRanges()}}catch{}}function hte(e,t){e.classList?e.classList.add(t):e.className.match(new RegExp("(?:^|\\s)".concat(t,"(?!\\S)")))||(e.className+=" ".concat(t))}function gte(e,t){e.classList?e.classList.remove(t):e.className=e.className.replace(new RegExp("(?:^|\\s)".concat(t,"(?!\\S)"),"g"),"")}var Zs={};Object.defineProperty(Zs,"__esModule",{value:!0});Zs.canDragX=zKe;Zs.canDragY=HKe;Zs.createCoreData=VKe;Zs.createDraggableData=YKe;Zs.getBoundPosition=UKe;Zs.getControlPosition=GKe;Zs.snapToGrid=$Ke;var zi=Xs,Fp=xr;function UKe(e,t,n){if(!e.props.bounds)return[t,n];let{bounds:r}=e.props;r=typeof r=="string"?r:qKe(r);const a=$D(e);if(typeof r=="string"){const{ownerDocument:i}=a,o=i.defaultView;let s;if(r==="parent"?s=a.parentNode:s=i.querySelector(r),!(s instanceof o.HTMLElement))throw new Error('Bounds selector "'+r+'" could not find an element.');const l=s,c=o.getComputedStyle(a),u=o.getComputedStyle(l);r={left:-a.offsetLeft+(0,zi.int)(u.paddingLeft)+(0,zi.int)(c.marginLeft),top:-a.offsetTop+(0,zi.int)(u.paddingTop)+(0,zi.int)(c.marginTop),right:(0,Fp.innerWidth)(l)-(0,Fp.outerWidth)(a)-a.offsetLeft+(0,zi.int)(u.paddingRight)-(0,zi.int)(c.marginRight),bottom:(0,Fp.innerHeight)(l)-(0,Fp.outerHeight)(a)-a.offsetTop+(0,zi.int)(u.paddingBottom)-(0,zi.int)(c.marginBottom)}}return(0,zi.isNum)(r.right)&&(t=Math.min(t,r.right)),(0,zi.isNum)(r.bottom)&&(n=Math.min(n,r.bottom)),(0,zi.isNum)(r.left)&&(t=Math.max(t,r.left)),(0,zi.isNum)(r.top)&&(n=Math.max(n,r.top)),[t,n]}function $Ke(e,t,n){const r=Math.round(t/e[0])*e[0],a=Math.round(n/e[1])*e[1];return[r,a]}function zKe(e){return e.props.axis==="both"||e.props.axis==="x"}function HKe(e){return e.props.axis==="both"||e.props.axis==="y"}function GKe(e,t,n){const r=typeof t=="number"?(0,Fp.getTouch)(e,t):null;if(typeof t=="number"&&!r)return null;const a=$D(n),i=n.props.offsetParent||a.offsetParent||a.ownerDocument.body;return(0,Fp.offsetXYFromParent)(r||e,i,n.props.scale)}function VKe(e,t,n){const r=!(0,zi.isNum)(e.lastX),a=$D(e);return r?{node:a,deltaX:0,deltaY:0,lastX:t,lastY:n,x:t,y:n}:{node:a,deltaX:t-e.lastX,deltaY:n-e.lastY,lastX:e.lastX,lastY:e.lastY,x:t,y:n}}function YKe(e,t){const n=e.props.scale;return{node:t.node,x:e.state.x+t.deltaX/n,y:e.state.y+t.deltaY/n,deltaX:t.deltaX/n,deltaY:t.deltaY/n,lastX:e.state.x,lastY:e.state.y}}function qKe(e){return{left:e.left,top:e.top,right:e.right,bottom:e.bottom}}function $D(e){const t=e.findDOMNode();if(!t)throw new Error("<DraggableCore>: Unmounted during event!");return t}var zy={},Hy={};Object.defineProperty(Hy,"__esModule",{value:!0});Hy.default=WKe;function WKe(){}Object.defineProperty(zy,"__esModule",{value:!0});zy.default=void 0;var JO=KKe(R),pi=zD(Wf),jKe=zD(zf),La=xr,cc=Zs,eN=Xs,ym=zD(Hy);function zD(e){return e&&e.__esModule?e:{default:e}}function _te(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(_te=function(r){return r?n:t})(e)}function KKe(e,t){if(!t&&e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=_te(t);if(n&&n.has(e))return n.get(e);var r={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(i!=="default"&&Object.prototype.hasOwnProperty.call(e,i)){var o=a?Object.getOwnPropertyDescriptor(e,i):null;o&&(o.get||o.set)?Object.defineProperty(r,i,o):r[i]=e[i]}return r.default=e,n&&n.set(e,r),r}function Ka(e,t,n){return t=QKe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function QKe(e){var t=XKe(e,"string");return typeof t=="symbol"?t:String(t)}function XKe(e,t){if(typeof e!="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}const Zo={touch:{start:"touchstart",move:"touchmove",stop:"touchend"},mouse:{start:"mousedown",move:"mousemove",stop:"mouseup"}};let uc=Zo.mouse,Gy=class extends JO.Component{constructor(){super(...arguments),Ka(this,"dragging",!1),Ka(this,"lastX",NaN),Ka(this,"lastY",NaN),Ka(this,"touchIdentifier",null),Ka(this,"mounted",!1),Ka(this,"handleDragStart",t=>{if(this.props.onMouseDown(t),!this.props.allowAnyClick&&typeof t.button=="number"&&t.button!==0)return!1;const n=this.findDOMNode();if(!n||!n.ownerDocument||!n.ownerDocument.body)throw new Error("<DraggableCore> not mounted on DragStart!");const{ownerDocument:r}=n;if(this.props.disabled||!(t.target instanceof r.defaultView.Node)||this.props.handle&&!(0,La.matchesSelectorAndParentsTo)(t.target,this.props.handle,n)||this.props.cancel&&(0,La.matchesSelectorAndParentsTo)(t.target,this.props.cancel,n))return;t.type==="touchstart"&&t.preventDefault();const a=(0,La.getTouchIdentifier)(t);this.touchIdentifier=a;const i=(0,cc.getControlPosition)(t,a,this);if(i==null)return;const{x:o,y:s}=i,l=(0,cc.createCoreData)(this,o,s);(0,ym.default)("DraggableCore: handleDragStart: %j",l),(0,ym.default)("calling",this.props.onStart),!(this.props.onStart(t,l)===!1||this.mounted===!1)&&(this.props.enableUserSelectHack&&(0,La.addUserSelectStyles)(r),this.dragging=!0,this.lastX=o,this.lastY=s,(0,La.addEvent)(r,uc.move,this.handleDrag),(0,La.addEvent)(r,uc.stop,this.handleDragStop))}),Ka(this,"handleDrag",t=>{const n=(0,cc.getControlPosition)(t,this.touchIdentifier,this);if(n==null)return;let{x:r,y:a}=n;if(Array.isArray(this.props.grid)){let s=r-this.lastX,l=a-this.lastY;if([s,l]=(0,cc.snapToGrid)(this.props.grid,s,l),!s&&!l)return;r=this.lastX+s,a=this.lastY+l}const i=(0,cc.createCoreData)(this,r,a);if((0,ym.default)("DraggableCore: handleDrag: %j",i),this.props.onDrag(t,i)===!1||this.mounted===!1){try{this.handleDragStop(new MouseEvent("mouseup"))}catch{const l=document.createEvent("MouseEvents");l.initMouseEvent("mouseup",!0,!0,window,0,0,0,0,0,!1,!1,!1,!1,0,null),this.handleDragStop(l)}return}this.lastX=r,this.lastY=a}),Ka(this,"handleDragStop",t=>{if(!this.dragging)return;const n=(0,cc.getControlPosition)(t,this.touchIdentifier,this);if(n==null)return;let{x:r,y:a}=n;if(Array.isArray(this.props.grid)){let l=r-this.lastX||0,c=a-this.lastY||0;[l,c]=(0,cc.snapToGrid)(this.props.grid,l,c),r=this.lastX+l,a=this.lastY+c}const i=(0,cc.createCoreData)(this,r,a);if(this.props.onStop(t,i)===!1||this.mounted===!1)return!1;const s=this.findDOMNode();s&&this.props.enableUserSelectHack&&(0,La.removeUserSelectStyles)(s.ownerDocument),(0,ym.default)("DraggableCore: handleDragStop: %j",i),this.dragging=!1,this.lastX=NaN,this.lastY=NaN,s&&((0,ym.default)("DraggableCore: Removing handlers"),(0,La.removeEvent)(s.ownerDocument,uc.move,this.handleDrag),(0,La.removeEvent)(s.ownerDocument,uc.stop,this.handleDragStop))}),Ka(this,"onMouseDown",t=>(uc=Zo.mouse,this.handleDragStart(t))),Ka(this,"onMouseUp",t=>(uc=Zo.mouse,this.handleDragStop(t))),Ka(this,"onTouchStart",t=>(uc=Zo.touch,this.handleDragStart(t))),Ka(this,"onTouchEnd",t=>(uc=Zo.touch,this.handleDragStop(t)))}componentDidMount(){this.mounted=!0;const t=this.findDOMNode();t&&(0,La.addEvent)(t,Zo.touch.start,this.onTouchStart,{passive:!1})}componentWillUnmount(){this.mounted=!1;const t=this.findDOMNode();if(t){const{ownerDocument:n}=t;(0,La.removeEvent)(n,Zo.mouse.move,this.handleDrag),(0,La.removeEvent)(n,Zo.touch.move,this.handleDrag),(0,La.removeEvent)(n,Zo.mouse.stop,this.handleDragStop),(0,La.removeEvent)(n,Zo.touch.stop,this.handleDragStop),(0,La.removeEvent)(t,Zo.touch.start,this.onTouchStart,{passive:!1}),this.props.enableUserSelectHack&&(0,La.removeUserSelectStyles)(n)}}findDOMNode(){var t,n;return(t=this.props)!==null&&t!==void 0&&t.nodeRef?(n=this.props)===null||n===void 0||(n=n.nodeRef)===null||n===void 0?void 0:n.current:jKe.default.findDOMNode(this)}render(){return JO.cloneElement(JO.Children.only(this.props.children),{onMouseDown:this.onMouseDown,onMouseUp:this.onMouseUp,onTouchEnd:this.onTouchEnd})}};zy.default=Gy;Ka(Gy,"displayName","DraggableCore");Ka(Gy,"propTypes",{allowAnyClick:pi.default.bool,children:pi.default.node.isRequired,disabled:pi.default.bool,enableUserSelectHack:pi.default.bool,offsetParent:function(e,t){if(e[t]&&e[t].nodeType!==1)throw new Error("Draggable's offsetParent must be a DOM Node.")},grid:pi.default.arrayOf(pi.default.number),handle:pi.default.string,cancel:pi.default.string,nodeRef:pi.default.object,onStart:pi.default.func,onDrag:pi.default.func,onStop:pi.default.func,onMouseDown:pi.default.func,scale:pi.default.number,className:eN.dontSetMe,style:eN.dontSetMe,transform:eN.dontSetMe});Ka(Gy,"defaultProps",{allowAnyClick:!1,disabled:!1,enableUserSelectHack:!0,onStart:function(){},onDrag:function(){},onStop:function(){},onMouseDown:function(){},scale:1});(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"DraggableCore",{enumerable:!0,get:function(){return l.default}}),e.default=void 0;var t=f(R),n=u(Wf),r=u(zf),a=u(gKe),i=xr,o=Zs,s=Xs,l=u(zy),c=u(Hy);function u(v){return v&&v.__esModule?v:{default:v}}function p(v){if(typeof WeakMap!="function")return null;var C=new WeakMap,T=new WeakMap;return(p=function(O){return O?T:C})(v)}function f(v,C){if(!C&&v&&v.__esModule)return v;if(v===null||typeof v!="object"&&typeof v!="function")return{default:v};var T=p(C);if(T&&T.has(v))return T.get(v);var O={},A=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var N in v)if(N!=="default"&&Object.prototype.hasOwnProperty.call(v,N)){var k=A?Object.getOwnPropertyDescriptor(v,N):null;k&&(k.get||k.set)?Object.defineProperty(O,N,k):O[N]=v[N]}return O.default=v,T&&T.set(v,O),O}function h(){return h=Object.assign?Object.assign.bind():function(v){for(var C=1;C<arguments.length;C++){var T=arguments[C];for(var O in T)Object.prototype.hasOwnProperty.call(T,O)&&(v[O]=T[O])}return v},h.apply(this,arguments)}function g(v,C,T){return C=E(C),C in v?Object.defineProperty(v,C,{value:T,enumerable:!0,configurable:!0,writable:!0}):v[C]=T,v}function E(v){var C=y(v,"string");return typeof C=="symbol"?C:String(C)}function y(v,C){if(typeof v!="object"||v===null)return v;var T=v[Symbol.toPrimitive];if(T!==void 0){var O=T.call(v,C||"default");if(typeof O!="object")return O;throw new TypeError("@@toPrimitive must return a primitive value.")}return(C==="string"?String:Number)(v)}class b extends t.Component{static getDerivedStateFromProps(C,T){let{position:O}=C,{prevPropsPosition:A}=T;return O&&(!A||O.x!==A.x||O.y!==A.y)?((0,c.default)("Draggable: getDerivedStateFromProps %j",{position:O,prevPropsPosition:A}),{x:O.x,y:O.y,prevPropsPosition:{...O}}):null}constructor(C){super(C),g(this,"onDragStart",(T,O)=>{if((0,c.default)("Draggable: onDragStart: %j",O),this.props.onStart(T,(0,o.createDraggableData)(this,O))===!1)return!1;this.setState({dragging:!0,dragged:!0})}),g(this,"onDrag",(T,O)=>{if(!this.state.dragging)return!1;(0,c.default)("Draggable: onDrag: %j",O);const A=(0,o.createDraggableData)(this,O),N={x:A.x,y:A.y,slackX:0,slackY:0};if(this.props.bounds){const{x:B,y:L}=N;N.x+=this.state.slackX,N.y+=this.state.slackY;const[H,te]=(0,o.getBoundPosition)(this,N.x,N.y);N.x=H,N.y=te,N.slackX=this.state.slackX+(B-N.x),N.slackY=this.state.slackY+(L-N.y),A.x=N.x,A.y=N.y,A.deltaX=N.x-this.state.x,A.deltaY=N.y-this.state.y}if(this.props.onDrag(T,A)===!1)return!1;this.setState(N)}),g(this,"onDragStop",(T,O)=>{if(!this.state.dragging||this.props.onStop(T,(0,o.createDraggableData)(this,O))===!1)return!1;(0,c.default)("Draggable: onDragStop: %j",O);const N={dragging:!1,slackX:0,slackY:0};if(!!this.props.position){const{x:B,y:L}=this.props.position;N.x=B,N.y=L}this.setState(N)}),this.state={dragging:!1,dragged:!1,x:C.position?C.position.x:C.defaultPosition.x,y:C.position?C.position.y:C.defaultPosition.y,prevPropsPosition:{...C.position},slackX:0,slackY:0,isElementSVG:!1},C.position&&!(C.onDrag||C.onStop)&&console.warn("A `position` was applied to this <Draggable>, without drag handlers. This will make this component effectively undraggable. Please attach `onDrag` or `onStop` handlers so you can adjust the `position` of this element.")}componentDidMount(){typeof window.SVGElement<"u"&&this.findDOMNode()instanceof window.SVGElement&&this.setState({isElementSVG:!0})}componentWillUnmount(){this.setState({dragging:!1})}findDOMNode(){var C,T;return(C=(T=this.props)===null||T===void 0||(T=T.nodeRef)===null||T===void 0?void 0:T.current)!==null&&C!==void 0?C:r.default.findDOMNode(this)}render(){const{axis:C,bounds:T,children:O,defaultPosition:A,defaultClassName:N,defaultClassNameDragging:k,defaultClassNameDragged:B,position:L,positionOffset:H,scale:te,...K}=this.props;let G={},ne=null;const W=!!!L||this.state.dragging,V=L||A,z={x:(0,o.canDragX)(this)&&W?this.state.x:V.x,y:(0,o.canDragY)(this)&&W?this.state.y:V.y};this.state.isElementSVG?ne=(0,i.createSVGTransform)(z,H):G=(0,i.createCSSTransform)(z,H);const M=(0,a.default)(O.props.className||"",N,{[k]:this.state.dragging,[B]:this.state.dragged});return t.createElement(l.default,h({},K,{onStart:this.onDragStart,onDrag:this.onDrag,onStop:this.onDragStop}),t.cloneElement(t.Children.only(O),{className:M,style:{...O.props.style,...G},transform:ne}))}}e.default=b,g(b,"displayName","Draggable"),g(b,"propTypes",{...l.default.propTypes,axis:n.default.oneOf(["both","x","y","none"]),bounds:n.default.oneOfType([n.default.shape({left:n.default.number,right:n.default.number,top:n.default.number,bottom:n.default.number}),n.default.string,n.default.oneOf([!1])]),defaultClassName:n.default.string,defaultClassNameDragging:n.default.string,defaultClassNameDragged:n.default.string,defaultPosition:n.default.shape({x:n.default.number,y:n.default.number}),positionOffset:n.default.shape({x:n.default.oneOfType([n.default.number,n.default.string]),y:n.default.oneOfType([n.default.number,n.default.string])}),position:n.default.shape({x:n.default.number,y:n.default.number}),className:s.dontSetMe,style:s.dontSetMe,transform:s.dontSetMe}),g(b,"defaultProps",{...l.default.defaultProps,axis:"both",bounds:!1,defaultClassName:"react-draggable",defaultClassNameDragging:"react-draggable-dragging",defaultClassNameDragged:"react-draggable-dragged",defaultPosition:{x:0,y:0},scale:1})})(cte);const{default:Ete,DraggableCore:ZKe}=cte;$y.exports=Ete;$y.exports.default=Ete;$y.exports.DraggableCore=ZKe;var JKe=$y.exports,HD={};HD.__esModule=!0;HD.cloneElement=iQe;var eQe=tQe(R);function tQe(e){return e&&e.__esModule?e:{default:e}}function bH(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function SH(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?bH(Object(n),!0).forEach(function(r){nQe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):bH(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function nQe(e,t,n){return t=rQe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function rQe(e){var t=aQe(e,"string");return typeof t=="symbol"?t:String(t)}function aQe(e,t){if(typeof e!="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function iQe(e,t){return t.style&&e.props.style&&(t.style=SH(SH({},e.props.style),t.style)),t.className&&e.props.className&&(t.className=e.props.className+" "+t.className),eQe.default.cloneElement(e,t)}var Kg={};Kg.__esModule=!0;Kg.resizableProps=void 0;var Jt=oQe(Wf);function oQe(e){return e&&e.__esModule?e:{default:e}}var sQe={axis:Jt.default.oneOf(["both","x","y","none"]),className:Jt.default.string,children:Jt.default.element.isRequired,draggableOpts:Jt.default.shape({allowAnyClick:Jt.default.bool,cancel:Jt.default.string,children:Jt.default.node,disabled:Jt.default.bool,enableUserSelectHack:Jt.default.bool,offsetParent:Jt.default.node,grid:Jt.default.arrayOf(Jt.default.number),handle:Jt.default.string,nodeRef:Jt.default.object,onStart:Jt.default.func,onDrag:Jt.default.func,onStop:Jt.default.func,onMouseDown:Jt.default.func,scale:Jt.default.number}),height:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var a=n[0];if(a.axis==="both"||a.axis==="y"){var i;return(i=Jt.default.number).isRequired.apply(i,n)}return Jt.default.number.apply(Jt.default,n)},handle:Jt.default.oneOfType([Jt.default.node,Jt.default.func]),handleSize:Jt.default.arrayOf(Jt.default.number),lockAspectRatio:Jt.default.bool,maxConstraints:Jt.default.arrayOf(Jt.default.number),minConstraints:Jt.default.arrayOf(Jt.default.number),onResizeStop:Jt.default.func,onResizeStart:Jt.default.func,onResize:Jt.default.func,resizeHandles:Jt.default.arrayOf(Jt.default.oneOf(["s","w","e","n","sw","nw","se","ne"])),transformScale:Jt.default.number,width:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var a=n[0];if(a.axis==="both"||a.axis==="x"){var i;return(i=Jt.default.number).isRequired.apply(i,n)}return Jt.default.number.apply(Jt.default,n)}};Kg.resizableProps=sQe;jg.__esModule=!0;jg.default=void 0;var Tm=pQe(R),lQe=JKe,cQe=HD,uQe=Kg,dQe=["children","className","draggableOpts","width","height","handle","handleSize","lockAspectRatio","axis","minConstraints","maxConstraints","onResize","onResizeStop","onResizeStart","resizeHandles","transformScale"];function bte(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(bte=function(a){return a?n:t})(e)}function pQe(e,t){if(!t&&e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=bte(t);if(n&&n.has(e))return n.get(e);var r={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(i!=="default"&&Object.prototype.hasOwnProperty.call(e,i)){var o=a?Object.getOwnPropertyDescriptor(e,i):null;o&&(o.get||o.set)?Object.defineProperty(r,i,o):r[i]=e[i]}return r.default=e,n&&n.set(e,r),r}function U4(){return U4=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},U4.apply(this,arguments)}function fQe(e,t){if(e==null)return{};var n={},r=Object.keys(e),a,i;for(i=0;i<r.length;i++)a=r[i],!(t.indexOf(a)>=0)&&(n[a]=e[a]);return n}function vH(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function tN(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?vH(Object(n),!0).forEach(function(r){mQe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):vH(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function mQe(e,t,n){return t=hQe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function hQe(e){var t=gQe(e,"string");return typeof t=="symbol"?t:String(t)}function gQe(e,t){if(typeof e!="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function _Qe(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,$4(e,t)}function $4(e,t){return $4=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},$4(e,t)}var GD=function(e){_Qe(t,e);function t(){for(var r,a=arguments.length,i=new Array(a),o=0;o<a;o++)i[o]=arguments[o];return r=e.call.apply(e,[this].concat(i))||this,r.handleRefs={},r.lastHandleRect=null,r.slack=null,r}var n=t.prototype;return n.componentWillUnmount=function(){this.resetData()},n.resetData=function(){this.lastHandleRect=this.slack=null},n.runConstraints=function(a,i){var o=this.props,s=o.minConstraints,l=o.maxConstraints,c=o.lockAspectRatio;if(!s&&!l&&!c)return[a,i];if(c){var u=this.props.width/this.props.height,p=a-this.props.width,f=i-this.props.height;Math.abs(p)>Math.abs(f*u)?i=a/u:a=i*u}var h=a,g=i,E=this.slack||[0,0],y=E[0],b=E[1];return a+=y,i+=b,s&&(a=Math.max(s[0],a),i=Math.max(s[1],i)),l&&(a=Math.min(l[0],a),i=Math.min(l[1],i)),this.slack=[y+(h-a),b+(g-i)],[a,i]},n.resizeHandler=function(a,i){var o=this;return function(s,l){var c=l.node,u=l.deltaX,p=l.deltaY;a==="onResizeStart"&&o.resetData();var f=(o.props.axis==="both"||o.props.axis==="x")&&i!=="n"&&i!=="s",h=(o.props.axis==="both"||o.props.axis==="y")&&i!=="e"&&i!=="w";if(!(!f&&!h)){var g=i[0],E=i[i.length-1],y=c.getBoundingClientRect();if(o.lastHandleRect!=null){if(E==="w"){var b=y.left-o.lastHandleRect.left;u+=b}if(g==="n"){var v=y.top-o.lastHandleRect.top;p+=v}}o.lastHandleRect=y,E==="w"&&(u=-u),g==="n"&&(p=-p);var C=o.props.width+(f?u/o.props.transformScale:0),T=o.props.height+(h?p/o.props.transformScale:0),O=o.runConstraints(C,T);C=O[0],T=O[1];var A=C!==o.props.width||T!==o.props.height,N=typeof o.props[a]=="function"?o.props[a]:null,k=a==="onResize"&&!A;N&&!k&&(s.persist==null||s.persist(),N(s,{node:c,size:{width:C,height:T},handle:i})),a==="onResizeStop"&&o.resetData()}}},n.renderResizeHandle=function(a,i){var o=this.props.handle;if(!o)return Tm.createElement("span",{className:"react-resizable-handle react-resizable-handle-"+a,ref:i});if(typeof o=="function")return o(a,i);var s=typeof o.type=="string",l=tN({ref:i},s?{}:{handleAxis:a});return Tm.cloneElement(o,l)},n.render=function(){var a=this,i=this.props,o=i.children,s=i.className,l=i.draggableOpts;i.width,i.height,i.handle,i.handleSize,i.lockAspectRatio,i.axis,i.minConstraints,i.maxConstraints,i.onResize,i.onResizeStop,i.onResizeStart;var c=i.resizeHandles;i.transformScale;var u=fQe(i,dQe);return(0,cQe.cloneElement)(o,tN(tN({},u),{},{className:(s?s+" ":"")+"react-resizable",children:[].concat(o.props.children,c.map(function(p){var f,h=(f=a.handleRefs[p])!=null?f:a.handleRefs[p]=Tm.createRef();return Tm.createElement(lQe.DraggableCore,U4({},l,{nodeRef:h,key:"resizableHandle-"+p,onStop:a.resizeHandler("onResizeStop",p),onStart:a.resizeHandler("onResizeStart",p),onDrag:a.resizeHandler("onResize",p)}),a.renderResizeHandle(p,h))}))}))},t}(Tm.Component);jg.default=GD;GD.propTypes=uQe.resizableProps;GD.defaultProps={axis:"both",handleSize:[20,20],lockAspectRatio:!1,minConstraints:[20,20],maxConstraints:[1/0,1/0],resizeHandles:["se"],transformScale:1};var Vy={};Vy.__esModule=!0;Vy.default=void 0;var nN=yQe(R),EQe=Ste(Wf),bQe=Ste(jg),SQe=Kg,vQe=["handle","handleSize","onResize","onResizeStart","onResizeStop","draggableOpts","minConstraints","maxConstraints","lockAspectRatio","axis","width","height","resizeHandles","style","transformScale"];function Ste(e){return e&&e.__esModule?e:{default:e}}function vte(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(vte=function(a){return a?n:t})(e)}function yQe(e,t){if(!t&&e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=vte(t);if(n&&n.has(e))return n.get(e);var r={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(i!=="default"&&Object.prototype.hasOwnProperty.call(e,i)){var o=a?Object.getOwnPropertyDescriptor(e,i):null;o&&(o.get||o.set)?Object.defineProperty(r,i,o):r[i]=e[i]}return r.default=e,n&&n.set(e,r),r}function z4(){return z4=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},z4.apply(this,arguments)}function yH(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function iS(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?yH(Object(n),!0).forEach(function(r){TQe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):yH(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function TQe(e,t,n){return t=CQe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function CQe(e){var t=RQe(e,"string");return typeof t=="symbol"?t:String(t)}function RQe(e,t){if(typeof e!="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function xQe(e,t){if(e==null)return{};var n={},r=Object.keys(e),a,i;for(i=0;i<r.length;i++)a=r[i],!(t.indexOf(a)>=0)&&(n[a]=e[a]);return n}function AQe(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,H4(e,t)}function H4(e,t){return H4=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},H4(e,t)}var yte=function(e){AQe(t,e);function t(){for(var r,a=arguments.length,i=new Array(a),o=0;o<a;o++)i[o]=arguments[o];return r=e.call.apply(e,[this].concat(i))||this,r.state={width:r.props.width,height:r.props.height,propsWidth:r.props.width,propsHeight:r.props.height},r.onResize=function(s,l){var c=l.size;r.props.onResize?(s.persist==null||s.persist(),r.setState(c,function(){return r.props.onResize&&r.props.onResize(s,l)})):r.setState(c)},r}t.getDerivedStateFromProps=function(a,i){return i.propsWidth!==a.width||i.propsHeight!==a.height?{width:a.width,height:a.height,propsWidth:a.width,propsHeight:a.height}:null};var n=t.prototype;return n.render=function(){var a=this.props,i=a.handle,o=a.handleSize;a.onResize;var s=a.onResizeStart,l=a.onResizeStop,c=a.draggableOpts,u=a.minConstraints,p=a.maxConstraints,f=a.lockAspectRatio,h=a.axis;a.width,a.height;var g=a.resizeHandles,E=a.style,y=a.transformScale,b=xQe(a,vQe);return nN.createElement(bQe.default,{axis:h,draggableOpts:c,handle:i,handleSize:o,height:this.state.height,lockAspectRatio:f,maxConstraints:p,minConstraints:u,onResizeStart:s,onResize:this.onResize,onResizeStop:l,resizeHandles:g,transformScale:y,width:this.state.width},nN.createElement("div",z4({},b,{style:iS(iS({},E),{},{width:this.state.width+"px",height:this.state.height+"px"})})))},t}(nN.Component);Vy.default=yte;yte.propTypes=iS(iS({},SQe.resizableProps),{},{children:EQe.default.element});BD.exports=function(){throw new Error("Don't instantiate Resizable directly! Use require('react-resizable').Resizable")};var OQe=BD.exports.Resizable=jg.default;BD.exports.ResizableBox=Vy.default;var VD={},Tte={exports:{}};(function(e){function t(n){return n&&n.__esModule?n:{default:n}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(Tte);var Qn=Tte.exports,rN={};const NQe=b3(w2e);var TH;function Xn(){return TH||(TH=1,function(e){"use client";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.createSvgIcon}});var t=NQe}(rN)),rN}var IQe=Qn;Object.defineProperty(VD,"__esModule",{value:!0});var wf=VD.default=void 0,wQe=IQe(Xn()),DQe=_,LQe=(0,wQe.default)((0,DQe.jsx)("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close");wf=VD.default=LQe;const aN=400,MQe=R.forwardRef(function({...t},n){return delete t.handleAxis,_.jsx(bt,{sx:{boxSizing:"content-box",width:"4px",height:"24px",position:"absolute",top:"50%",marginTop:"-12px",left:0,cursor:"ew-resize",padding:"10px 5px"},ref:n,...t,children:_.jsx(bt,{sx:{boxSizing:"content-box",width:"100%",height:"100%",backgroundColor:"grey.300",borderRadius:"4px"}})})}),kQe=()=>{const[e,t]=R.useState(!1),[n,r]=R.useState(aN),[a,i]=Ra(_v),o=(c,u)=>r(u.size.width),{width:s}=Qqe(),l=wg(c=>c.breakpoints.down("sm"));return n<aN&&l&&r(aN),_.jsx(OQe,{width:n,height:0,onResize:o,onResizeStart:()=>t(!0),onResizeStop:()=>t(!1),resizeHandles:["w"],handle:l?_.jsx(_.Fragment,{}):_.jsx(MQe,{}),axis:"x",minConstraints:[100,0],maxConstraints:[s/2,0],children:_.jsxs(PQe,{anchor:"right",isSmallScreen:l,open:!!a,variant:l?"temporary":"persistent",width:n,children:[_.jsxs(Dt,{direction:"row",alignItems:"center",children:[_.jsx(pn,{noWrap:!0,fontSize:"20px",fontWeight:500,id:"side-view-title",children:a==null?void 0:a.name}),_.jsx(zn,{edge:"end",sx:{ml:"auto"},onClick:()=>i(void 0),children:_.jsx(wf,{})})]}),_.jsx(bt,{mt:"1.5rem",id:"side-view-content",sx:{height:"100%",pointerEvents:e?"none":"auto"},children:_.jsx(lte,{element:a})})]})})},PQe=je(bQ,{shouldForwardProp:e=>e!=="isSmallScreen"})(({theme:e,open:t,width:n,isSmallScreen:r})=>({width:n,flexShrink:0,display:t?"flex":"none","& .MuiDrawer-paper":{position:"inherit",width:n,maxWidth:r?"80%":"100%",backgroundColor:e.palette.background.paper,borderLeft:`1px solid ${e.palette.divider}`,flexDirection:"column",borderRadius:0,color:e.palette.text.primary,whiteSpace:"nowrap",boxSizing:"border-box",padding:"1.5rem",paddingTop:".5rem",overflowX:"hidden"}}));var YD={},FQe=Qn;Object.defineProperty(YD,"__esModule",{value:!0});var Cte=YD.default=void 0,BQe=FQe(Xn()),UQe=_,$Qe=(0,BQe.default)((0,UQe.jsx)("path",{d:"M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20v-2z"}),"ArrowBack");Cte=YD.default=$Qe;const uu=()=>{var e;return((e=window.theme)==null?void 0:e.layout)==="wide"?"min(60rem, 100vw)":"min(48rem, 100vw)"},zQe=({element:e,onGoBack:t})=>{const n=uu();return _.jsxs(bt,{display:"flex",flexDirection:"column",flexGrow:1,p:3,gap:2,boxSizing:"border-box",mx:"auto",sx:{width:"100%",maxWidth:n,color:"text.primary"},id:"element-view",children:[_.jsxs(Dt,{direction:"row",gap:1,children:[t?_.jsx(zn,{edge:"start",onClick:t,children:_.jsx(Cte,{})}):null,_.jsx(pn,{fontWeight:700,fontSize:"25px",children:e.name})]}),_.jsx(lte,{element:e})]})},HQe=({items:e})=>_.jsx(Dt,{spacing:1,children:e.map((t,n)=>_.jsx(bt,{pt:.5,children:_.jsx(GQ,{element:t})},n))}),GQe=({items:e})=>_.jsx(Dt,{spacing:1,direction:"row",children:e.map((t,n)=>_.jsx("div",{children:_.jsx(KQ,{element:t})},n))}),CH=e=>{switch(e.size){case"small":return 1;case"medium":return 2;case"large":return 4;default:return 2}},Rte=({elements:e,renderElement:t})=>_.jsx(g4e,{sx:{margin:0,transform:"translateZ(0)",width:"100%",maxWidth:600,overflowY:"hidden"},variant:"quilted",cols:4,gap:8,children:e.map((n,r)=>{const a=CH(n),i=CH(n);return _.jsx(T4e,{cols:a,rows:i,children:_.jsx(t,{element:n})},r)})}),VQe=({items:e})=>_.jsx(Rte,{elements:e,renderElement:t=>_.jsx(QQ,{element:t.element})}),YQe=({items:e})=>_.jsx(Dt,{spacing:1,children:e.map((t,n)=>_.jsx("div",{style:{maxWidth:"600px",height:"400px"},children:_.jsx(XQ,{element:t})},n))}),qQe=({items:e})=>_.jsx(Dt,{spacing:1,children:e.map((t,n)=>_.jsx("div",{style:{maxWidth:"600px",height:"400px"},children:_.jsx(cX,{element:t})},n))}),WQe=({items:e})=>_.jsx(Dt,{spacing:1,children:e.map((t,n)=>_.jsxs(zs,{color:"info",icon:!1,children:[_.jsx(jRe,{children:t.name}),_.jsx(Ree,{element:t})]},n))}),jQe=({items:e})=>_.jsx(Rte,{elements:e,renderElement:t=>_.jsx(ste,{element:t.element})}),KQe=({elements:e})=>{var n,r,a,i,o,s,l;if(!e.length)return null;const t=e.reduce((c,u)=>(c[u.type]||(c[u.type]=[]),c[u.type].push(u),c),{});return _.jsxs(Dt,{gap:1,mb:2,children:[(n=t.image)!=null&&n.length?_.jsx(VQe,{items:t.image}):null,(r=t.text)!=null&&r.length?_.jsx(WQe,{items:t.text}):null,(a=t.pdf)!=null&&a.length?_.jsx(YQe,{items:t.pdf}):null,(i=t.audio)!=null&&i.length?_.jsx(HQe,{items:t.audio}):null,(o=t.video)!=null&&o.length?_.jsx(jQe,{items:t.video}):null,(s=t.file)!=null&&s.length?_.jsx(GQe,{items:t.file}):null,(l=t.plotly)!=null&&l.length?_.jsx(qQe,{items:t.plotly}):null]})};function QQe(){if(console&&console.warn){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];typeof t[0]=="string"&&(t[0]=`react-i18next:: ${t[0]}`),console.warn(...t)}}const RH={};function G4(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];typeof t[0]=="string"&&RH[t[0]]||(typeof t[0]=="string"&&(RH[t[0]]=new Date),QQe(...t))}const xte=(e,t)=>()=>{if(e.isInitialized)t();else{const n=()=>{setTimeout(()=>{e.off("initialized",n)},0),t()};e.on("initialized",n)}};function xH(e,t,n){e.loadNamespaces(t,xte(e,n))}function AH(e,t,n,r){typeof n=="string"&&(n=[n]),n.forEach(a=>{e.options.ns.indexOf(a)<0&&e.options.ns.push(a)}),e.loadLanguages(t,xte(e,r))}function XQe(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const r=t.languages[0],a=t.options?t.options.fallbackLng:!1,i=t.languages[t.languages.length-1];if(r.toLowerCase()==="cimode")return!0;const o=(s,l)=>{const c=t.services.backendConnector.state[`${s}|${l}`];return c===-1||c===2};return n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&t.services.backendConnector.backend&&t.isLanguageChangingTo&&!o(t.isLanguageChangingTo,e)?!1:!!(t.hasResourceBundle(r,e)||!t.services.backendConnector.backend||t.options.resources&&!t.options.partialBundledLanguages||o(r,e)&&(!a||o(i,e)))}function ZQe(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return!t.languages||!t.languages.length?(G4("i18n.languages were undefined or empty",t.languages),!0):t.options.ignoreJSONStructure!==void 0?t.hasLoadedNamespace(e,{lng:n.lng,precheck:(a,i)=>{if(n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&a.services.backendConnector.backend&&a.isLanguageChangingTo&&!i(a.isLanguageChangingTo,e))return!1}}):XQe(e,t,n)}const JQe=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,eXe={"&amp;":"&","&#38;":"&","&lt;":"<","&#60;":"<","&gt;":">","&#62;":">","&apos;":"'","&#39;":"'","&quot;":'"',"&#34;":'"',"&nbsp;":" ","&#160;":" ","&copy;":"©","&#169;":"©","&reg;":"®","&#174;":"®","&hellip;":"…","&#8230;":"…","&#x2F;":"/","&#47;":"/"},tXe=e=>eXe[e],nXe=e=>e.replace(JQe,tXe);let V4={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:nXe};function rXe(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};V4={...V4,...e}}function aXe(){return V4}let Ate;function iXe(e){Ate=e}function oXe(){return Ate}const sXe={type:"3rdParty",init(e){rXe(e.options.react),iXe(e)}},lXe=R.createContext();class cXe{constructor(){this.usedNamespaces={}}addUsedNamespaces(t){t.forEach(n=>{this.usedNamespaces[n]||(this.usedNamespaces[n]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}const uXe=(e,t)=>{const n=R.useRef();return R.useEffect(()=>{n.current=t?n.current:e},[e,t]),n.current};function Yy(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{i18n:n}=t,{i18n:r,defaultNS:a}=R.useContext(lXe)||{},i=n||r||oXe();if(i&&!i.reportNamespaces&&(i.reportNamespaces=new cXe),!i){G4("You will need to pass in an i18next instance by using initReactI18next");const C=(O,A)=>typeof A=="string"?A:A&&typeof A=="object"&&typeof A.defaultValue=="string"?A.defaultValue:Array.isArray(O)?O[O.length-1]:O,T=[C,{},!1];return T.t=C,T.i18n={},T.ready=!1,T}i.options.react&&i.options.react.wait!==void 0&&G4("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");const o={...aXe(),...i.options.react,...t},{useSuspense:s,keyPrefix:l}=o;let c=e||a||i.options&&i.options.defaultNS;c=typeof c=="string"?[c]:c||["translation"],i.reportNamespaces.addUsedNamespaces&&i.reportNamespaces.addUsedNamespaces(c);const u=(i.isInitialized||i.initializedStoreOnce)&&c.every(C=>ZQe(C,i,o));function p(){return i.getFixedT(t.lng||null,o.nsMode==="fallback"?c:c[0],l)}const[f,h]=R.useState(p);let g=c.join();t.lng&&(g=`${t.lng}${g}`);const E=uXe(g),y=R.useRef(!0);R.useEffect(()=>{const{bindI18n:C,bindI18nStore:T}=o;y.current=!0,!u&&!s&&(t.lng?AH(i,t.lng,c,()=>{y.current&&h(p)}):xH(i,c,()=>{y.current&&h(p)})),u&&E&&E!==g&&y.current&&h(p);function O(){y.current&&h(p)}return C&&i&&i.on(C,O),T&&i&&i.store.on(T,O),()=>{y.current=!1,C&&i&&C.split(" ").forEach(A=>i.off(A,O)),T&&i&&T.split(" ").forEach(A=>i.store.off(A,O))}},[i,g]);const b=R.useRef(!0);R.useEffect(()=>{y.current&&!b.current&&h(p),b.current=!1},[i,l]);const v=[f,i,u];if(v.t=f,v.i18n=i,v.ready=u,u||!u&&!s)return v;throw new Promise(C=>{t.lng?AH(i,t.lng,c,()=>C()):xH(i,c,()=>C())})}const kt=({path:e,options:t,suffix:n})=>{const{t:r,i18n:a}=Yy();return a.exists(e,t)?_.jsxs("span",{children:[r(e,t),n]}):_.jsx(Rl,{variant:"text",width:20})},Yl=()=>{const{t:e,ready:t,i18n:n}=Yy();return{t:(r,a)=>n.exists(r,a)?e(r,a):"...",ready:t,i18n:n}},qy={fontFamily:["Inter","sans-serif"].join(",")},Wy={MuiButton:{defaultProps:{disableElevation:!0,disableRipple:!0,sx:{textTransform:"none"}}},MuiLink:{defaultProps:{fontWeight:500}},MuiFormHelperText:{defaultProps:{sx:{m:0,fontWeight:400,color:Mt[500]}}},MuiTooltip:{styleOverrides:{tooltip:{backgroundColor:"black"}}}},jy={borderRadius:8},Ote={main:P5[500],contrastText:xl},Nte={main:"rgba(239, 65, 70, 1)",contrastText:xl},dXe=(e,t)=>Kf({typography:e?{fontFamily:e}:qy,components:Wy,shape:jy,breakpoints:t,palette:{mode:"dark",success:Ote,error:Nte,background:{default:Mt[850],paper:Mt[900]},primary:{main:"#F80061",dark:k5[800],light:"#FFE7EB",contrastText:xl},secondary:{main:"#9757D7",dark:"#763FB8",light:"#B87FE7",contrastText:xl},divider:Mt[800],text:{primary:Mt[200],secondary:Mt[400]}}}),pXe=(e,t)=>Kf({typography:e?{fontFamily:e}:qy,components:Wy,shape:jy,breakpoints:t,palette:{mode:"light",success:Ote,error:Nte,background:{default:Mt[50],paper:xl},primary:{main:"#F80061",dark:k5[800],light:"#FFE7EB",contrastText:xl},secondary:{main:"#9757D7",dark:"#763FB8",light:"#B87FE7",contrastText:xl},divider:Mt[200],text:{primary:Mt[900],secondary:Mt[700]}}}),fXe=(e,t,n)=>e==="dark"?dXe(t,n):pXe(t,n);Kf({typography:qy,components:Wy,shape:jy,palette:{primary:{main:Mt[900]}}});Kf({typography:qy,components:Wy,shape:jy,palette:{primary:{main:Mt[200]}}});const Ite=Fn({key:"HighlightMessage",default:null}),wte=Fn({key:"chatSettingsOpen",default:!1}),mXe=({status:e})=>e==="running"?_.jsx(bt,{sx:{marginTop:"-2px",width:"24px",height:"24px",display:"flex",alignItems:"center",justifyContent:"center",color:Mt[700]},children:_.jsx(Ag,{color:"inherit",size:18})}):_.jsxs(ca,{width:24,height:24,sx:{marginTop:"-2px",fill:"none"},children:[e==="done"&&_.jsxs(_.Fragment,{children:[_.jsx("circle",{cx:12,cy:12,r:9,fill:P5[500]}),_.jsx("path",{stroke:xl,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"m15.333 9.5-4.583 4.583L8.667 12"})]}),e==="ready"&&_.jsx("circle",{cx:12,cy:12,r:8.25,stroke:Mt[700],strokeWidth:1.5}),e==="failed"&&_.jsxs(_.Fragment,{children:[_.jsx("circle",{cx:12,cy:12,r:9,fill:k5[500]}),_.jsx("path",{stroke:xl,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"m14.5 9.5-5 5m0-5 5 5"})]})]}),OH=({index:e,task:t})=>{const n=An(Ite),r=da();return _.jsx(e4,{disableGutters:!0,className:`task task-status-${t.status}`,children:_.jsxs(T3e,{disableRipple:!t.forId,sx:{color:{ready:r.palette.mode==="dark"?Mt[300]:Mt[700],running:r.palette.mode==="dark"?Mt[100]:Mt[850],done:Mt[500],failed:Mt[500]}[t.status]||r.palette.text.secondary,fontWeight:t.status==="running"?"700":"500",alignItems:"flex-start",fontSize:"14px",lineHeight:1.36,cursor:t.forId?"pointer":"default"},onClick:()=>{if(t.forId){n(t.forId);const a=document.getElementById(`message-${t.forId}`);a&&a.scrollIntoView({behavior:"smooth",block:"start",inline:"start"})}},children:[_.jsx(bt,{sx:{paddingRight:r.spacing(1),flex:"0 0 18px",width:"18px"},children:e}),_.jsx(mXe,{status:t.status}),_.jsx(bt,{sx:{paddingLeft:r.spacing(2)},children:t.title})]})})},NH=({status:e})=>{const t=da();return _.jsxs(bt,{sx:{display:"flex",alignItems:"center",flexDirection:"row",padding:t.spacing(2)},children:[_.jsx(bt,{sx:{flexGrow:"1",fontWeight:"600",paddingLeft:t.spacing(1),fontFamily:t.typography.fontFamily},children:_.jsx(kt,{path:"components.molecules.tasklist.TaskList.title"})}),_.jsx(A5,{label:e||"?",sx:{fontWeight:"500",borderRadius:"4px",backgroundColor:t.palette.background.default,color:t.palette.mode==="dark"?Mt[500]:Mt[600]}})]})},IH=e=>({background:e.palette.background.paper,borderLeft:`1px solid ${e.palette.divider}`,width:"100%",display:"flex",flexDirection:"column",fontFamily:e.typography.fontFamily,boxShadow:e.palette.mode==="dark"?"0px 4px 20px 0px rgba(0, 0, 0, 0.20)":"0px 4px 20px 0px rgba(0, 0, 0, 0.05)"}),Dte=({isMobile:e})=>{const t=da(),{tasklists:n}=nu(),r=n[n.length-1],a=R.useMemo(()=>{if(!(r!=null&&r.url))return null;const u=new URL(r.url);return u.pathname+u.search},[r==null?void 0:r.url]),{isLoading:i,error:o,data:s}=qf(a||null,{keepPreviousData:!0});if(!a)return null;if(i&&!s)return _.jsx("div",{children:_.jsx(kt,{path:"components.molecules.tasklist.TaskList.loading"})});if(o)return _.jsx("div",{children:_.jsx(kt,{path:"components.molecules.tasklist.TaskList.error"})});const l=s;if(!l)return null;const c=l.tasks;if(e){let u=c.length-1;for(let f=0;f<c.length;f++)if(c[f].status==="running"||c[f].status==="ready"){u=f;break}const p=c==null?void 0:c[u];return _.jsx(bt,{component:"aside",sx:{color:t.palette.text.primary,padding:t.spacing(2),width:"100%",boxSizing:"border-box",display:{xs:"flex",md:"none"}},className:"tasklist tasklist-mobile",children:_.jsxs(bt,{sx:{...IH(t)},children:[_.jsx(NH,{status:l.status}),p&&_.jsx(Hb,{children:_.jsx(OH,{index:u+1,task:p})})]})})}return _.jsx(bt,{component:"aside",sx:{color:t.palette.text.primary,width:"380px",flexShrink:"0",display:{xs:"none",md:"flex"}},className:"tasklist tasklist-desktop",children:_.jsxs(bt,{sx:{...IH(t)},children:[_.jsx(NH,{status:l==null?void 0:l.status}),_.jsx(bt,{sx:{overflowY:"auto"},children:_.jsx(Hb,{children:c==null?void 0:c.map((u,p)=>_.jsx(OH,{index:p+1,task:u},p))})})]})})},hXe=e=>_.jsx(ca,{children:_.jsxs("svg",{...e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[_.jsx("path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2"}),_.jsx("circle",{cx:"12",cy:"7",r:"4"})]})});function gXe(e){var n,r,a;const{user:t}=Uo();return _.jsx(zn,{...e,children:_.jsx(N5,{sx:{width:32,height:32,bgcolor:"primary.main",color:"primary.contrastText"},src:((n=t==null?void 0:t.metadata)==null?void 0:n.image)||void 0,children:t?(a=(r=t.identifier)==null?void 0:r[0])==null?void 0:a.toUpperCase():_.jsx(hXe,{sx:{height:20,width:20}})})})}var qD={},_Xe=Qn;Object.defineProperty(qD,"__esModule",{value:!0});var Lte=qD.default=void 0,EXe=_Xe(Xn()),bXe=_,SXe=(0,EXe.default)((0,bXe.jsx)("path",{d:"M9.37 5.51c-.18.64-.27 1.31-.27 1.99 0 4.08 3.32 7.4 7.4 7.4.68 0 1.35-.09 1.99-.27C17.45 17.19 14.93 19 12 19c-3.86 0-7-3.14-7-7 0-2.93 1.81-5.45 4.37-6.49zM12 3c-4.97 0-9 4.03-9 9s4.03 9 9 9 9-4.03 9-9c0-.46-.04-.92-.1-1.36-.98 1.37-2.58 2.26-4.4 2.26-2.98 0-5.4-2.42-5.4-5.4 0-1.81.89-3.42 2.26-4.4-.44-.06-.9-.1-1.36-.1z"}),"DarkModeOutlined");Lte=qD.default=SXe;var WD={},vXe=Qn;Object.defineProperty(WD,"__esModule",{value:!0});var Mte=WD.default=void 0,yXe=vXe(Xn()),TXe=_,CXe=(0,yXe.default)((0,TXe.jsx)("path",{d:"M21 10h-8.35C11.83 7.67 9.61 6 7 6c-3.31 0-6 2.69-6 6s2.69 6 6 6c2.61 0 4.83-1.67 5.65-4H13l2 2 2-2 2 2 4-4.04L21 10zM7 15c-1.65 0-3-1.35-3-3s1.35-3 3-3 3 1.35 3 3-1.35 3-3 3z"}),"Key");Mte=WD.default=CXe;var jD={},RXe=Qn;Object.defineProperty(jD,"__esModule",{value:!0});var kte=jD.default=void 0,xXe=RXe(Xn()),AXe=_,OXe=(0,xXe.default)((0,AXe.jsx)("path",{d:"m17 7-1.41 1.41L18.17 11H8v2h10.17l-2.58 2.58L17 17l5-5zM4 5h8V3H4c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h8v-2H4V5z"}),"Logout");kte=jD.default=OXe;var KD={},NXe=Qn;Object.defineProperty(KD,"__esModule",{value:!0});var Pte=KD.default=void 0,IXe=NXe(Xn()),wXe=_,DXe=(0,IXe.default)((0,wXe.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-6h2v6zm0-8h-2V7h2v2z"}),"Info");Pte=KD.default=DXe;const Fte=({count:e,inputProps:t})=>{const n=da();return e?t?(()=>{const i=o=>{const s=e.toString();let l=s.length*8+(o?22:0);return(s.includes(".")||s.includes(","))&&(l-=6),`${l}px`};return t?_.jsx(Lg,{id:t.id,inputProps:{type:"number",max:t.max,min:t.min,step:t.step||1,sx:{width:i(),padding:o=>o.spacing(.5,1),fontSize:"12px",fontWeight:600,color:"text.secondary",MozAppearance:"textfield","&::-webkit-inner-spin-button, &::-webkit-outer-spin-button":{display:"none"},"&:focus":{width:i(!0),MozAppearance:"auto","&::-webkit-inner-spin-button, &::-webkit-outer-spin-button":{display:"flex"}}}},sx:{borderRadius:"6px",backgroundColor:o=>o.palette.mode==="light"?"grey.100":"grey.800","& fieldset":{border:"none"}},value:e,onChange:t.onChange}):null})():(()=>_.jsx(bt,{display:"flex",alignItems:"center",className:"notification-count",sx:{borderRadius:"6px",padding:"4px 8px",backgroundColor:n.palette.mode==="light"?"grey.100":"grey.800"},children:_.jsx(pn,{className:"notification-count",color:"text.secondary",sx:{fontSize:"12px",fontWeight:600},children:e})}))():null},LXe=({id:e,label:t,tooltip:n,notificationsProps:r})=>_.jsxs(bt,{display:"flex",justifyContent:"space-between",width:"100%",children:[_.jsxs(bt,{display:"flex",gap:.5,alignItems:"center",children:[_.jsx(IQ,{htmlFor:e,sx:{fontWeight:600,fontSize:"12px",color:"grey.500"},children:t}),n?_.jsx(la,{title:n,children:_.jsx(Pte,{sx:{fontSize:12,color:"grey.600"}})}):null]}),r?_.jsx(Fte,{...r}):null]}),Qg=e=>{const{children:t,description:n,hasError:r,id:a,label:i,notificationsProps:o,tooltip:s,sx:l}=e;return _.jsxs(Dt,{sx:l,gap:.5,children:[i?_.jsx(LXe,{id:a,label:i,tooltip:s,notificationsProps:o}):null,_.jsxs(yQ,{error:r,fullWidth:!0,children:[t,n?_.jsx(TQ,{children:n}):null]})]})},Bte=e=>{const{checked:t,description:n,disabled:r,hasError:a,id:i,inputProps:o,label:s,onChange:l,tooltip:c}=e;return _.jsx(Qg,{description:n,hasError:a,id:i,label:s,tooltip:c,children:_.jsx(MXe,{name:i,disabled:r,edge:"end",onChange:l,checked:t,inputProps:o})})},MXe=je(e=>_.jsx(V5e,{focusVisibleClassName:".Mui-focusVisible",disableRipple:!0,...e}))(({theme:e})=>{const t=e.palette.mode==="dark";return{width:40,height:24,padding:0,"& .MuiSwitch-switchBase":{margin:0,padding:"4px",transitionDuration:"300ms","&.Mui-checked":{transform:"translateX(16px)",color:"#fff","& + .MuiSwitch-track":{backgroundColor:P5[500],opacity:1,border:0},"&.Mui-disabled + .MuiSwitch-track":{opacity:.5}},"&.Mui-disabled .MuiSwitch-thumb":{color:t?e.palette.grey[600]:e.palette.grey[100]},"&.Mui-disabled + .MuiSwitch-track":{opacity:t?.3:.7}},"& .MuiSwitch-thumb":{boxSizing:"border-box",width:16,height:16,boxShadow:"unset"},"& .MuiSwitch-track":{borderRadius:26/2,backgroundColor:e.palette.grey[400],opacity:1,transition:e.transitions.create(["background-color"],{duration:500})}}});var BV;const kXe=((BV=window.theme)==null?void 0:BV.default)||"dark",wH=localStorage.getItem("themeVariant"),PXe=wH||kXe,FXe={open:!1,defaultCollapseContent:!0,isChatHistoryOpen:!0,language:"en-US",theme:PXe},Ad=Fn({key:"AppSettings",default:FXe});function BXe({anchorEl:e,open:t,handleClose:n}){var E;const{user:r,logout:a}=Uo(),[i,o]=Ra(Ad),{config:s}=Zr(),l=!!((E=s==null?void 0:s.userEnv)!=null&&E.length),c=r&&_.jsxs(e4,{sx:{display:"flex",flexDirection:"column"},children:[_.jsx(pn,{width:"100%",fontSize:"14px",fontWeight:700,children:r.id}),_.jsx(pn,{width:"100%",fontSize:"13px",fontWeight:400,children:r.identifier})]},"user-name"),u=_.jsxs(e4,{sx:{display:"flex",gap:1},children:[_.jsx(x2,{children:_.jsx(Lte,{})}),_.jsx(j3e,{id:"switch-theme",secondary:_.jsx(kt,{path:"components.molecules.settingsModal.darkMode"})}),_.jsx(bt,{children:_.jsx(Bte,{id:"switch-theme",onChange:()=>{const y=i.theme==="light"?"dark":"light";localStorage.setItem("themeVariant",y),o(b=>({...b,theme:y}))},checked:i.theme==="dark",inputProps:{"aria-labelledby":"switch-theme"}})})]},"theme"),h=[c,u,l&&_.jsxs(Vb,{component:x3,to:"/env",children:[_.jsx(x2,{children:_.jsx(Mte,{fontSize:"small"})}),_.jsx(kt,{path:"components.atoms.buttons.userButton.menu.APIKeys"})]},"env"),r&&_.jsxs(Vb,{onClick:()=>{a(),n()},children:[_.jsx(x2,{children:_.jsx(kte,{fontSize:"small"})}),_.jsx(kt,{path:"components.atoms.buttons.userButton.menu.logout"})]},"logout")].filter(y=>!!y),g=h.reduce((y,b,v)=>v===h.length-1?[...y,b]:[...y,b,_.jsx(gQ,{sx:{my:1}},`divider-${v}`)],[]);return _.jsx(Dg,{anchorEl:e,id:"account-menu",open:t,onClose:n,PaperProps:{sx:{width:220,overflow:"visible",mt:1.5,backgroundImage:"none",border:y=>`1px solid ${y.palette.divider}`,boxShadow:y=>y.palette.mode==="light"?"0px 2px 4px 0px #0000000D":"0px 10px 10px 0px #0000000D","& .MuiAvatar-root":{width:32,height:32,ml:-.5,mr:1},"&:before":{content:'""',display:"block",position:"absolute",top:0,right:14,width:10,height:10,bgcolor:"background.default",transform:"translateY(-50%) rotate(45deg)",zIndex:0}}},transformOrigin:{horizontal:"center",vertical:"top"},anchorOrigin:{horizontal:"center",vertical:"bottom"},children:g})}function UXe(){const[e,t]=R.useState(null),n=!!e,r=i=>{t(i.currentTarget)},a=()=>{t(null)};return _.jsxs(_.Fragment,{children:[_.jsx(gXe,{onClick:r,"aria-controls":n?"account-menu":void 0,"aria-haspopup":"true","aria-expanded":n?"true":void 0}),_.jsx(BXe,{open:n,anchorEl:e,handleClose:a})]})}const QD=({style:e})=>{const{theme:t}=mn(Ad),n=R.useContext(ri);return _.jsx("img",{src:n.getLogoEndpoint(t),alt:"logo",style:e})};var $Xe=Object.prototype;function zXe(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||$Xe;return e===n}var XD=zXe;function HXe(e,t){return function(n){return e(t(n))}}var Ute=HXe,GXe=Ute,VXe=GXe(Object.keys,Object),YXe=VXe,qXe=XD,WXe=YXe,jXe=Object.prototype,KXe=jXe.hasOwnProperty;function QXe(e){if(!qXe(e))return WXe(e);var t=[];for(var n in Object(e))KXe.call(e,n)&&n!="constructor"&&t.push(n);return t}var $te=QXe,XXe=typeof aa=="object"&&aa&&aa.Object===Object&&aa,zte=XXe,ZXe=zte,JXe=typeof self=="object"&&self&&self.Object===Object&&self,eZe=ZXe||JXe||Function("return this")(),_s=eZe,tZe=_s,nZe=tZe.Symbol,Xg=nZe,DH=Xg,Hte=Object.prototype,rZe=Hte.hasOwnProperty,aZe=Hte.toString,Cm=DH?DH.toStringTag:void 0;function iZe(e){var t=rZe.call(e,Cm),n=e[Cm];try{e[Cm]=void 0;var r=!0}catch{}var a=aZe.call(e);return r&&(t?e[Cm]=n:delete e[Cm]),a}var oZe=iZe,sZe=Object.prototype,lZe=sZe.toString;function cZe(e){return lZe.call(e)}var uZe=cZe,LH=Xg,dZe=oZe,pZe=uZe,fZe="[object Null]",mZe="[object Undefined]",MH=LH?LH.toStringTag:void 0;function hZe(e){return e==null?e===void 0?mZe:fZe:MH&&MH in Object(e)?dZe(e):pZe(e)}var o0=hZe;function gZe(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var du=gZe,_Ze=o0,EZe=du,bZe="[object AsyncFunction]",SZe="[object Function]",vZe="[object GeneratorFunction]",yZe="[object Proxy]";function TZe(e){if(!EZe(e))return!1;var t=_Ze(e);return t==SZe||t==vZe||t==bZe||t==yZe}var Gte=TZe,CZe=_s,RZe=CZe["__core-js_shared__"],xZe=RZe,iN=xZe,kH=function(){var e=/[^.]+$/.exec(iN&&iN.keys&&iN.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function AZe(e){return!!kH&&kH in e}var OZe=AZe,NZe=Function.prototype,IZe=NZe.toString;function wZe(e){if(e!=null){try{return IZe.call(e)}catch{}try{return e+""}catch{}}return""}var Vte=wZe,DZe=Gte,LZe=OZe,MZe=du,kZe=Vte,PZe=/[\\^$.*+?()[\]{}|]/g,FZe=/^\[object .+?Constructor\]$/,BZe=Function.prototype,UZe=Object.prototype,$Ze=BZe.toString,zZe=UZe.hasOwnProperty,HZe=RegExp("^"+$Ze.call(zZe).replace(PZe,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function GZe(e){if(!MZe(e)||LZe(e))return!1;var t=DZe(e)?HZe:FZe;return t.test(kZe(e))}var VZe=GZe;function YZe(e,t){return e==null?void 0:e[t]}var qZe=YZe,WZe=VZe,jZe=qZe;function KZe(e,t){var n=jZe(e,t);return WZe(n)?n:void 0}var Od=KZe,QZe=Od,XZe=_s,ZZe=QZe(XZe,"DataView"),JZe=ZZe,eJe=Od,tJe=_s,nJe=eJe(tJe,"Map"),ZD=nJe,rJe=Od,aJe=_s,iJe=rJe(aJe,"Promise"),oJe=iJe,sJe=Od,lJe=_s,cJe=sJe(lJe,"Set"),Yte=cJe,uJe=Od,dJe=_s,pJe=uJe(dJe,"WeakMap"),fJe=pJe,Y4=JZe,q4=ZD,W4=oJe,j4=Yte,K4=fJe,qte=o0,s0=Vte,PH="[object Map]",mJe="[object Object]",FH="[object Promise]",BH="[object Set]",UH="[object WeakMap]",$H="[object DataView]",hJe=s0(Y4),gJe=s0(q4),_Je=s0(W4),EJe=s0(j4),bJe=s0(K4),Lu=qte;(Y4&&Lu(new Y4(new ArrayBuffer(1)))!=$H||q4&&Lu(new q4)!=PH||W4&&Lu(W4.resolve())!=FH||j4&&Lu(new j4)!=BH||K4&&Lu(new K4)!=UH)&&(Lu=function(e){var t=qte(e),n=t==mJe?e.constructor:void 0,r=n?s0(n):"";if(r)switch(r){case hJe:return $H;case gJe:return PH;case _Je:return FH;case EJe:return BH;case bJe:return UH}return t});var Zg=Lu,SJe=9007199254740991;function vJe(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=SJe}var JD=vJe,yJe=Gte,TJe=JD;function CJe(e){return e!=null&&TJe(e.length)&&!yJe(e)}var Jg=CJe,RJe=Array.isArray,Es=RJe;function xJe(e){return e!=null&&typeof e=="object"}var pu=xJe,AJe=o0,OJe=Es,NJe=pu,IJe="[object String]";function wJe(e){return typeof e=="string"||!OJe(e)&&NJe(e)&&AJe(e)==IJe}var DJe=wJe;function LJe(e){return function(t){return t==null?void 0:t[e]}}var Wte=LJe,MJe=Wte,kJe=MJe("length"),PJe=kJe,FJe="\\ud800-\\udfff",BJe="\\u0300-\\u036f",UJe="\\ufe20-\\ufe2f",$Je="\\u20d0-\\u20ff",zJe=BJe+UJe+$Je,HJe="\\ufe0e\\ufe0f",GJe="\\u200d",VJe=RegExp("["+GJe+FJe+zJe+HJe+"]");function YJe(e){return VJe.test(e)}var e6=YJe,jte="\\ud800-\\udfff",qJe="\\u0300-\\u036f",WJe="\\ufe20-\\ufe2f",jJe="\\u20d0-\\u20ff",KJe=qJe+WJe+jJe,QJe="\\ufe0e\\ufe0f",XJe="["+jte+"]",Q4="["+KJe+"]",X4="\\ud83c[\\udffb-\\udfff]",ZJe="(?:"+Q4+"|"+X4+")",Kte="[^"+jte+"]",Qte="(?:\\ud83c[\\udde6-\\uddff]){2}",Xte="[\\ud800-\\udbff][\\udc00-\\udfff]",JJe="\\u200d",Zte=ZJe+"?",Jte="["+QJe+"]?",eet="(?:"+JJe+"(?:"+[Kte,Qte,Xte].join("|")+")"+Jte+Zte+")*",tet=Jte+Zte+eet,net="(?:"+[Kte+Q4+"?",Q4,Qte,Xte,XJe].join("|")+")",zH=RegExp(X4+"(?="+X4+")|"+net+tet,"g");function ret(e){for(var t=zH.lastIndex=0;zH.test(e);)++t;return t}var aet=ret,iet=PJe,oet=e6,set=aet;function cet(e){return oet(e)?set(e):iet(e)}var uet=cet,det=$te,pet=Zg,fet=Jg,met=DJe,het=uet,get="[object Map]",_et="[object Set]";function Eet(e){if(e==null)return 0;if(fet(e))return met(e)?het(e):e.length;var t=pet(e);return t==get||t==_et?e.size:det(e).length}var bet=Eet;const ene=xa(bet),gE=(e,...t)=>{const n={...e};for(const r of t)delete n[r];return n},vet=({description:e,hasError:t,id:n,label:r,tooltip:a,setField:i,...o})=>{var l;const s=c=>{const u=parseFloat(c.target.value),{min:p,max:f,onChange:h}=o;f&&u>f?i&&i(n,f):p&&u<p?i&&i(n,p):h&&h(c,u,0)};return _.jsx(Qg,{description:e,hasError:t,id:n,label:r,tooltip:a,notificationsProps:{count:((l=o.value)==null?void 0:l.toString())||"0",inputProps:{id:n,max:o.max,min:o.min,step:o.step||1,onChange:s}},children:_.jsx(yet,{...o,id:n,name:n})})},yet=je(R5e)(({theme:e})=>{const t=e.palette.mode==="light";return{width:"calc(100% - 18px)",marginLeft:"8px",color:Mt[t?300:850],height:3,"& .MuiSlider-track":{border:"none",color:Mt[500]},"& .MuiSlider-thumb":{height:15,width:15,backgroundColor:t?Mt[600]:"white",border:`4px solid ${t?Mt[300]:Mt[800]}`,"&:focus, &:hover, &.Mui-active, &.Mui-focusVisible":{boxShadow:"inherit"},"&:before":{display:"none"}},"& .MuiSlider-valueLabel":{lineHeight:1.2,fontSize:12,background:"unset",padding:0,width:32,height:32,borderRadius:"50% 50% 50% 0",backgroundColor:"#52af77",transformOrigin:"bottom left",transform:"translate(50%, -100%) rotate(-45deg) scale(0)","&:before":{display:"none"},"&.MuiSlider-valueLabelOpen":{transform:"translate(50%, -100%) rotate(-45deg) scale(1)"},"& > *":{transform:"rotate(45deg)"}}}}),ng={enter:"Enter",backspace:"Backspace"},Tet={ime:229},Cet=je(A5)(({theme:e,size:t})=>`
654
654
  max-width: 100%;