@pasko70/pibo 1.11.4 → 1.12.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/apps/{context-files-ui/assets/dist-DT9QkgTN.js → chat-ui/assets/dist-B2Pozq2c.js} +1 -1
- package/dist/apps/chat-ui/assets/{dist-yjwDcRbw.js → dist-Bgv5Fm3v.js} +1 -1
- package/dist/apps/chat-ui/assets/{dist-TS4EA6YQ.js → dist-Ci4lft6y.js} +1 -1
- package/dist/apps/{context-files-ui/assets/dist-B07Whoa6.js → chat-ui/assets/dist-CkLit_da.js} +1 -1
- package/dist/apps/{context-files-ui/assets/dist-Dtv5S2qd.js → chat-ui/assets/dist-D1U9ck8z.js} +1 -1
- package/dist/apps/chat-ui/assets/{dist-CjXSEbsr.js → dist-D4qbF8wy.js} +1 -1
- package/dist/apps/chat-ui/assets/{dist-D9B41N2f.js → dist-DYdgxFZX.js} +1 -1
- package/dist/apps/chat-ui/assets/{dist-BXjLdcn6.js → dist-DiPvo4rq.js} +1 -1
- package/dist/apps/{context-files-ui/assets/dist-BQK_wUMR.js → chat-ui/assets/dist-DxJWicji.js} +1 -1
- package/dist/apps/chat-ui/assets/{dist-CSBDio7C.js → dist-la7ZfDGk.js} +1 -1
- package/dist/apps/chat-ui/assets/index-BJoo_GJP.css +1 -0
- package/dist/apps/chat-ui/assets/index-CYxPvrxL.js +237 -0
- package/dist/apps/chat-ui/index.html +2 -2
- package/dist/apps/chat-vscode-web/assets/index-CFSHKXsQ.js +41 -0
- package/dist/apps/chat-vscode-web/index.html +1 -1
- package/dist/apps/{chat-ui/assets/dist-BeKdUsyg.js → context-files-ui/assets/dist-BYcsFgKp.js} +1 -1
- package/dist/apps/context-files-ui/assets/{dist-TG9QLHKj.js → dist-Bdudyq9I.js} +1 -1
- package/dist/apps/context-files-ui/assets/{dist-BFlEjppv.js → dist-BvIW3V94.js} +1 -1
- package/dist/apps/context-files-ui/assets/{dist-De6eI3Cr.js → dist-CSLUWBzz.js} +1 -1
- package/dist/apps/{chat-ui/assets/dist-CNv02m3N.js → context-files-ui/assets/dist-CT-91DFe.js} +1 -1
- package/dist/apps/{chat-ui/assets/dist-BtQ20SMU.js → context-files-ui/assets/dist-DcsDivye.js} +1 -1
- package/dist/apps/context-files-ui/assets/{dist-BACxmdQ2.js → dist-DeozI4lc.js} +1 -1
- package/dist/apps/context-files-ui/assets/{dist-D68eIqmX.js → dist-f2E1-leP.js} +1 -1
- package/dist/apps/context-files-ui/assets/{dist-CigbyRK5.js → dist-sus90AFR.js} +1 -1
- package/dist/apps/{chat-ui/assets/dist-TAhl1jC0.js → context-files-ui/assets/dist-uFphVGi8.js} +1 -1
- package/dist/apps/context-files-ui/assets/index-CQ25ablG.js +202 -0
- package/dist/apps/context-files-ui/index.html +1 -1
- package/dist/apps/vscode-artifacts/latest.vsix +0 -0
- package/dist/apps/vscode-artifacts/pibo-vscode-ext-1.12.0.vsix +0 -0
- package/dist/debug/web.js +1 -1
- package/dist/tools/cdp-client.js +87 -3
- package/package.json +1 -1
- package/dist/apps/chat-ui/assets/index-BoRl0OB_.js +0 -473
- package/dist/apps/chat-ui/assets/index-aTOOomMF.css +0 -1
- package/dist/apps/chat-vscode-web/assets/index-DGcSd2ZH.js +0 -275
- package/dist/apps/context-files-ui/assets/index-B5j33Q2B.js +0 -438
- package/dist/apps/vscode-artifacts/pibo-vscode-ext-1.11.4.vsix +0 -0
|
@@ -0,0 +1,202 @@
|
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/dist-BYcsFgKp.js","assets/dist-D1KyNDg5.js","assets/dist-QQuDy4KA.js","assets/dist-DcsDivye.js","assets/dist-DKoyMSNr.js","assets/dist-uFphVGi8.js","assets/dist-DotDq_kD.js","assets/dist-CT-91DFe.js","assets/dist-f2E1-leP.js","assets/dist-CSLUWBzz.js","assets/dist-DeozI4lc.js","assets/dist-B5ZAfwf5.js","assets/dist-Bdudyq9I.js","assets/dist-DLMjd26T.js","assets/dist-BkUONE3N.js","assets/dist-B5PTVnox.js","assets/dockerfile-CJb2sekW.js","assets/simple-mode-DnMbQuKW.js","assets/factor-B2EMQZkP.js","assets/nsis-DOo3SJmd.js","assets/pug-QU72BPAa.js","assets/javascript-C5pDVaoP.js","assets/dist-BvIW3V94.js","assets/dist-sus90AFR.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{$ as e,A as t,At as n,B as r,Bt as i,C as a,Ct as o,D as s,Dt as c,E as l,Et as u,F as d,Ft as f,G as p,H as m,I as h,It as g,J as _,K as v,L as y,Lt as b,M as x,Mt as S,N as C,Nt as w,O as T,Ot as E,P as ee,Pt as D,Q as O,R as k,Rt as A,S as j,St as M,T as N,Tt as te,U as ne,V as re,Vt as ie,W as ae,X as oe,Y as P,Z as se,_ as ce,_t as le,a as ue,at as de,b as fe,bt as pe,c as me,ct as he,d as ge,dt as _e,et as ve,f as ye,ft as be,g as xe,gt as Se,h as Ce,ht as we,i as Te,it as Ee,j as De,jt as Oe,k as ke,kt as Ae,l as F,lt as je,m as Me,mt as Ne,n as Pe,nt as Fe,o as Ie,ot as Le,p as Re,pt as ze,q as Be,r as Ve,rt as He,s as Ue,st as We,t as Ge,tt as Ke,u as qe,ut as Je,v as Ye,vt as Xe,w as Ze,wt as I,x as Qe,xt as $e,y as et,yt as tt,z as nt,zt as rt}from"./dist-D1KyNDg5.js";var it=Object.create,at=Object.defineProperty,ot=Object.getOwnPropertyDescriptor,st=Object.getOwnPropertyNames,ct=Object.getPrototypeOf,lt=Object.prototype.hasOwnProperty,ut=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t),e=null),t.exports),dt=(e,t)=>{let n={};for(var r in e)at(n,r,{get:e[r],enumerable:!0});return t||at(n,Symbol.toStringTag,{value:`Module`}),n},ft=(e,t,n,r)=>{if(t&&typeof t==`object`||typeof t==`function`)for(var i=st(t),a=0,o=i.length,s;a<o;a++)s=i[a],!lt.call(e,s)&&s!==n&&at(e,s,{get:(e=>t[e]).bind(null,s),enumerable:!(r=ot(t,s))||r.enumerable});return e},pt=(e,t,n)=>(n=e==null?{}:it(ct(e)),ft(t||!e||!e.__esModule?at(n,`default`,{value:e,enumerable:!0}):n,e));(function(){let e=document.createElement(`link`).relList;if(e&&e.supports&&e.supports(`modulepreload`))return;for(let e of document.querySelectorAll(`link[rel="modulepreload"]`))n(e);new MutationObserver(e=>{for(let t of e)if(t.type===`childList`)for(let e of t.addedNodes)e.tagName===`LINK`&&e.rel===`modulepreload`&&n(e)}).observe(document,{childList:!0,subtree:!0});function t(e){let t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),e.crossOrigin===`use-credentials`?t.credentials=`include`:e.crossOrigin===`anonymous`?t.credentials=`omit`:t.credentials=`same-origin`,t}function n(e){if(e.ep)return;e.ep=!0;let n=t(e);fetch(e.href,n)}})();var mt=ut((e=>{var t=Symbol.for(`react.transitional.element`),n=Symbol.for(`react.portal`),r=Symbol.for(`react.fragment`),i=Symbol.for(`react.strict_mode`),a=Symbol.for(`react.profiler`),o=Symbol.for(`react.consumer`),s=Symbol.for(`react.context`),c=Symbol.for(`react.forward_ref`),l=Symbol.for(`react.suspense`),u=Symbol.for(`react.memo`),d=Symbol.for(`react.lazy`),f=Symbol.for(`react.activity`),p=Symbol.iterator;function m(e){return typeof e!=`object`||!e?null:(e=p&&e[p]||e[`@@iterator`],typeof e==`function`?e:null)}var h={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},g=Object.assign,_={};function v(e,t,n){this.props=e,this.context=t,this.refs=_,this.updater=n||h}v.prototype.isReactComponent={},v.prototype.setState=function(e,t){if(typeof e!=`object`&&typeof e!=`function`&&e!=null)throw Error(`takes an object of state variables to update or a function which returns an object of state variables.`);this.updater.enqueueSetState(this,e,t,`setState`)},v.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,`forceUpdate`)};function y(){}y.prototype=v.prototype;function b(e,t,n){this.props=e,this.context=t,this.refs=_,this.updater=n||h}var x=b.prototype=new y;x.constructor=b,g(x,v.prototype),x.isPureReactComponent=!0;var S=Array.isArray;function C(){}var w={H:null,A:null,T:null,S:null},T=Object.prototype.hasOwnProperty;function E(e,n,r){var i=r.ref;return{$$typeof:t,type:e,key:n,ref:i===void 0?null:i,props:r}}function ee(e,t){return E(e.type,t,e.props)}function D(e){return typeof e==`object`&&!!e&&e.$$typeof===t}function O(e){var t={"=":`=0`,":":`=2`};return`$`+e.replace(/[=:]/g,function(e){return t[e]})}var k=/\/+/g;function A(e,t){return typeof e==`object`&&e&&e.key!=null?O(``+e.key):t.toString(36)}function j(e){switch(e.status){case`fulfilled`:return e.value;case`rejected`:throw e.reason;default:switch(typeof e.status==`string`?e.then(C,C):(e.status=`pending`,e.then(function(t){e.status===`pending`&&(e.status=`fulfilled`,e.value=t)},function(t){e.status===`pending`&&(e.status=`rejected`,e.reason=t)})),e.status){case`fulfilled`:return e.value;case`rejected`:throw e.reason}}throw e}function M(e,r,i,a,o){var s=typeof e;(s===`undefined`||s===`boolean`)&&(e=null);var c=!1;if(e===null)c=!0;else switch(s){case`bigint`:case`string`:case`number`:c=!0;break;case`object`:switch(e.$$typeof){case t:case n:c=!0;break;case d:return c=e._init,M(c(e._payload),r,i,a,o)}}if(c)return o=o(e),c=a===``?`.`+A(e,0):a,S(o)?(i=``,c!=null&&(i=c.replace(k,`$&/`)+`/`),M(o,r,i,``,function(e){return e})):o!=null&&(D(o)&&(o=ee(o,i+(o.key==null||e&&e.key===o.key?``:(``+o.key).replace(k,`$&/`)+`/`)+c)),r.push(o)),1;c=0;var l=a===``?`.`:a+`:`;if(S(e))for(var u=0;u<e.length;u++)a=e[u],s=l+A(a,u),c+=M(a,r,i,s,o);else if(u=m(e),typeof u==`function`)for(e=u.call(e),u=0;!(a=e.next()).done;)a=a.value,s=l+A(a,u++),c+=M(a,r,i,s,o);else if(s===`object`){if(typeof e.then==`function`)return M(j(e),r,i,a,o);throw r=String(e),Error(`Objects are not valid as a React child (found: `+(r===`[object Object]`?`object with keys {`+Object.keys(e).join(`, `)+`}`:r)+`). If you meant to render a collection of children, use an array instead.`)}return c}function N(e,t,n){if(e==null)return e;var r=[],i=0;return M(e,r,``,``,function(e){return t.call(n,e,i++)}),r}function te(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(t){(e._status===0||e._status===-1)&&(e._status=1,e._result=t)},function(t){(e._status===0||e._status===-1)&&(e._status=2,e._result=t)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var ne=typeof reportError==`function`?reportError:function(e){if(typeof window==`object`&&typeof window.ErrorEvent==`function`){var t=new window.ErrorEvent(`error`,{bubbles:!0,cancelable:!0,message:typeof e==`object`&&e&&typeof e.message==`string`?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process==`object`&&typeof process.emit==`function`){process.emit(`uncaughtException`,e);return}console.error(e)},re={map:N,forEach:function(e,t,n){N(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return N(e,function(){t++}),t},toArray:function(e){return N(e,function(e){return e})||[]},only:function(e){if(!D(e))throw Error(`React.Children.only expected to receive a single React element child.`);return e}};e.Activity=f,e.Children=re,e.Component=v,e.Fragment=r,e.Profiler=a,e.PureComponent=b,e.StrictMode=i,e.Suspense=l,e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=w,e.__COMPILER_RUNTIME={__proto__:null,c:function(e){return w.H.useMemoCache(e)}},e.cache=function(e){return function(){return e.apply(null,arguments)}},e.cacheSignal=function(){return null},e.cloneElement=function(e,t,n){if(e==null)throw Error(`The argument must be a React element, but you passed `+e+`.`);var r=g({},e.props),i=e.key;if(t!=null)for(a in t.key!==void 0&&(i=``+t.key),t)!T.call(t,a)||a===`key`||a===`__self`||a===`__source`||a===`ref`&&t.ref===void 0||(r[a]=t[a]);var a=arguments.length-2;if(a===1)r.children=n;else if(1<a){for(var o=Array(a),s=0;s<a;s++)o[s]=arguments[s+2];r.children=o}return E(e.type,i,r)},e.createContext=function(e){return e={$$typeof:s,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider=e,e.Consumer={$$typeof:o,_context:e},e},e.createElement=function(e,t,n){var r,i={},a=null;if(t!=null)for(r in t.key!==void 0&&(a=``+t.key),t)T.call(t,r)&&r!==`key`&&r!==`__self`&&r!==`__source`&&(i[r]=t[r]);var o=arguments.length-2;if(o===1)i.children=n;else if(1<o){for(var s=Array(o),c=0;c<o;c++)s[c]=arguments[c+2];i.children=s}if(e&&e.defaultProps)for(r in o=e.defaultProps,o)i[r]===void 0&&(i[r]=o[r]);return E(e,a,i)},e.createRef=function(){return{current:null}},e.forwardRef=function(e){return{$$typeof:c,render:e}},e.isValidElement=D,e.lazy=function(e){return{$$typeof:d,_payload:{_status:-1,_result:e},_init:te}},e.memo=function(e,t){return{$$typeof:u,type:e,compare:t===void 0?null:t}},e.startTransition=function(e){var t=w.T,n={};w.T=n;try{var r=e(),i=w.S;i!==null&&i(n,r),typeof r==`object`&&r&&typeof r.then==`function`&&r.then(C,ne)}catch(e){ne(e)}finally{t!==null&&n.types!==null&&(t.types=n.types),w.T=t}},e.unstable_useCacheRefresh=function(){return w.H.useCacheRefresh()},e.use=function(e){return w.H.use(e)},e.useActionState=function(e,t,n){return w.H.useActionState(e,t,n)},e.useCallback=function(e,t){return w.H.useCallback(e,t)},e.useContext=function(e){return w.H.useContext(e)},e.useDebugValue=function(){},e.useDeferredValue=function(e,t){return w.H.useDeferredValue(e,t)},e.useEffect=function(e,t){return w.H.useEffect(e,t)},e.useEffectEvent=function(e){return w.H.useEffectEvent(e)},e.useId=function(){return w.H.useId()},e.useImperativeHandle=function(e,t,n){return w.H.useImperativeHandle(e,t,n)},e.useInsertionEffect=function(e,t){return w.H.useInsertionEffect(e,t)},e.useLayoutEffect=function(e,t){return w.H.useLayoutEffect(e,t)},e.useMemo=function(e,t){return w.H.useMemo(e,t)},e.useOptimistic=function(e,t){return w.H.useOptimistic(e,t)},e.useReducer=function(e,t,n){return w.H.useReducer(e,t,n)},e.useRef=function(e){return w.H.useRef(e)},e.useState=function(e){return w.H.useState(e)},e.useSyncExternalStore=function(e,t,n){return w.H.useSyncExternalStore(e,t,n)},e.useTransition=function(){return w.H.useTransition()},e.version=`19.2.5`})),ht=ut(((e,t)=>{t.exports=mt()})),gt=ut((e=>{function t(e,t){var n=e.length;e.push(t);a:for(;0<n;){var r=n-1>>>1,a=e[r];if(0<i(a,t))e[r]=t,e[n]=a,n=r;else break a}}function n(e){return e.length===0?null:e[0]}function r(e){if(e.length===0)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;a:for(var r=0,a=e.length,o=a>>>1;r<o;){var s=2*(r+1)-1,c=e[s],l=s+1,u=e[l];if(0>i(c,n))l<a&&0>i(u,c)?(e[r]=u,e[l]=n,r=l):(e[r]=c,e[s]=n,r=s);else if(l<a&&0>i(u,n))e[r]=u,e[l]=n,r=l;else break a}}return t}function i(e,t){var n=e.sortIndex-t.sortIndex;return n===0?e.id-t.id:n}if(e.unstable_now=void 0,typeof performance==`object`&&typeof performance.now==`function`){var a=performance;e.unstable_now=function(){return a.now()}}else{var o=Date,s=o.now();e.unstable_now=function(){return o.now()-s}}var c=[],l=[],u=1,d=null,f=3,p=!1,m=!1,h=!1,g=!1,_=typeof setTimeout==`function`?setTimeout:null,v=typeof clearTimeout==`function`?clearTimeout:null,y=typeof setImmediate<`u`?setImmediate:null;function b(e){for(var i=n(l);i!==null;){if(i.callback===null)r(l);else if(i.startTime<=e)r(l),i.sortIndex=i.expirationTime,t(c,i);else break;i=n(l)}}function x(e){if(h=!1,b(e),!m)if(n(c)!==null)m=!0,S||(S=!0,D());else{var t=n(l);t!==null&&A(x,t.startTime-e)}}var S=!1,C=-1,w=5,T=-1;function E(){return g?!0:!(e.unstable_now()-T<w)}function ee(){if(g=!1,S){var t=e.unstable_now();T=t;var i=!0;try{a:{m=!1,h&&(h=!1,v(C),C=-1),p=!0;var a=f;try{b:{for(b(t),d=n(c);d!==null&&!(d.expirationTime>t&&E());){var o=d.callback;if(typeof o==`function`){d.callback=null,f=d.priorityLevel;var s=o(d.expirationTime<=t);if(t=e.unstable_now(),typeof s==`function`){d.callback=s,b(t),i=!0;break b}d===n(c)&&r(c),b(t)}else r(c);d=n(c)}if(d!==null)i=!0;else{var u=n(l);u!==null&&A(x,u.startTime-t),i=!1}}break a}finally{d=null,f=a,p=!1}i=void 0}}finally{i?D():S=!1}}}var D;if(typeof y==`function`)D=function(){y(ee)};else if(typeof MessageChannel<`u`){var O=new MessageChannel,k=O.port2;O.port1.onmessage=ee,D=function(){k.postMessage(null)}}else D=function(){_(ee,0)};function A(t,n){C=_(function(){t(e.unstable_now())},n)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(e){e.callback=null},e.unstable_forceFrameRate=function(e){0>e||125<e?console.error(`forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported`):w=0<e?Math.floor(1e3/e):5},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_next=function(e){switch(f){case 1:case 2:case 3:var t=3;break;default:t=f}var n=f;f=t;try{return e()}finally{f=n}},e.unstable_requestPaint=function(){g=!0},e.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=f;f=e;try{return t()}finally{f=n}},e.unstable_scheduleCallback=function(r,i,a){var o=e.unstable_now();switch(typeof a==`object`&&a?(a=a.delay,a=typeof a==`number`&&0<a?o+a:o):a=o,r){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}return s=a+s,r={id:u++,callback:i,priorityLevel:r,startTime:a,expirationTime:s,sortIndex:-1},a>o?(r.sortIndex=a,t(l,r),n(c)===null&&r===n(l)&&(h?(v(C),C=-1):h=!0,A(x,a-o))):(r.sortIndex=s,t(c,r),m||p||(m=!0,S||(S=!0,D()))),r},e.unstable_shouldYield=E,e.unstable_wrapCallback=function(e){var t=f;return function(){var n=f;f=t;try{return e.apply(this,arguments)}finally{f=n}}}})),_t=ut(((e,t)=>{t.exports=gt()})),vt=ut((e=>{var t=ht();function n(e){var t=`https://react.dev/errors/`+e;if(1<arguments.length){t+=`?args[]=`+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+=`&args[]=`+encodeURIComponent(arguments[n])}return`Minified React error #`+e+`; visit `+t+` for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`}function r(){}var i={d:{f:r,r:function(){throw Error(n(522))},D:r,C:r,L:r,m:r,X:r,S:r,M:r},p:0,findDOMNode:null},a=Symbol.for(`react.portal`);function o(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:a,key:r==null?null:``+r,children:e,containerInfo:t,implementation:n}}var s=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function c(e,t){if(e===`font`)return``;if(typeof t==`string`)return t===`use-credentials`?t:``}e.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=i,e.createPortal=function(e,t){var r=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)throw Error(n(299));return o(e,t,null,r)},e.flushSync=function(e){var t=s.T,n=i.p;try{if(s.T=null,i.p=2,e)return e()}finally{s.T=t,i.p=n,i.d.f()}},e.preconnect=function(e,t){typeof e==`string`&&(t?(t=t.crossOrigin,t=typeof t==`string`?t===`use-credentials`?t:``:void 0):t=null,i.d.C(e,t))},e.prefetchDNS=function(e){typeof e==`string`&&i.d.D(e)},e.preinit=function(e,t){if(typeof e==`string`&&t&&typeof t.as==`string`){var n=t.as,r=c(n,t.crossOrigin),a=typeof t.integrity==`string`?t.integrity:void 0,o=typeof t.fetchPriority==`string`?t.fetchPriority:void 0;n===`style`?i.d.S(e,typeof t.precedence==`string`?t.precedence:void 0,{crossOrigin:r,integrity:a,fetchPriority:o}):n===`script`&&i.d.X(e,{crossOrigin:r,integrity:a,fetchPriority:o,nonce:typeof t.nonce==`string`?t.nonce:void 0})}},e.preinitModule=function(e,t){if(typeof e==`string`)if(typeof t==`object`&&t){if(t.as==null||t.as===`script`){var n=c(t.as,t.crossOrigin);i.d.M(e,{crossOrigin:n,integrity:typeof t.integrity==`string`?t.integrity:void 0,nonce:typeof t.nonce==`string`?t.nonce:void 0})}}else t??i.d.M(e)},e.preload=function(e,t){if(typeof e==`string`&&typeof t==`object`&&t&&typeof t.as==`string`){var n=t.as,r=c(n,t.crossOrigin);i.d.L(e,n,{crossOrigin:r,integrity:typeof t.integrity==`string`?t.integrity:void 0,nonce:typeof t.nonce==`string`?t.nonce:void 0,type:typeof t.type==`string`?t.type:void 0,fetchPriority:typeof t.fetchPriority==`string`?t.fetchPriority:void 0,referrerPolicy:typeof t.referrerPolicy==`string`?t.referrerPolicy:void 0,imageSrcSet:typeof t.imageSrcSet==`string`?t.imageSrcSet:void 0,imageSizes:typeof t.imageSizes==`string`?t.imageSizes:void 0,media:typeof t.media==`string`?t.media:void 0})}},e.preloadModule=function(e,t){if(typeof e==`string`)if(t){var n=c(t.as,t.crossOrigin);i.d.m(e,{as:typeof t.as==`string`&&t.as!==`script`?t.as:void 0,crossOrigin:n,integrity:typeof t.integrity==`string`?t.integrity:void 0})}else i.d.m(e)},e.requestFormReset=function(e){i.d.r(e)},e.unstable_batchedUpdates=function(e,t){return e(t)},e.useFormState=function(e,t,n){return s.H.useFormState(e,t,n)},e.useFormStatus=function(){return s.H.useHostTransitionStatus()},e.version=`19.2.5`})),yt=ut(((e,t)=>{function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>`u`||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!=`function`))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}n(),t.exports=vt()})),bt=ut((e=>{var t=_t(),n=ht(),r=yt();function i(e){var t=`https://react.dev/errors/`+e;if(1<arguments.length){t+=`?args[]=`+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+=`&args[]=`+encodeURIComponent(arguments[n])}return`Minified React error #`+e+`; visit `+t+` for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`}function a(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function o(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function s(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function c(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function l(e){if(o(e)!==e)throw Error(i(188))}function u(e){var t=e.alternate;if(!t){if(t=o(e),t===null)throw Error(i(188));return t===e?e:null}for(var n=e,r=t;;){var a=n.return;if(a===null)break;var s=a.alternate;if(s===null){if(r=a.return,r!==null){n=r;continue}break}if(a.child===s.child){for(s=a.child;s;){if(s===n)return l(a),e;if(s===r)return l(a),t;s=s.sibling}throw Error(i(188))}if(n.return!==r.return)n=a,r=s;else{for(var c=!1,u=a.child;u;){if(u===n){c=!0,n=a,r=s;break}if(u===r){c=!0,r=a,n=s;break}u=u.sibling}if(!c){for(u=s.child;u;){if(u===n){c=!0,n=s,r=a;break}if(u===r){c=!0,r=s,n=a;break}u=u.sibling}if(!c)throw Error(i(189))}}if(n.alternate!==r)throw Error(i(190))}if(n.tag!==3)throw Error(i(188));return n.stateNode.current===n?e:t}function d(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=d(e),t!==null)return t;e=e.sibling}return null}var f=Object.assign,p=Symbol.for(`react.element`),m=Symbol.for(`react.transitional.element`),h=Symbol.for(`react.portal`),g=Symbol.for(`react.fragment`),_=Symbol.for(`react.strict_mode`),v=Symbol.for(`react.profiler`),y=Symbol.for(`react.consumer`),b=Symbol.for(`react.context`),x=Symbol.for(`react.forward_ref`),S=Symbol.for(`react.suspense`),C=Symbol.for(`react.suspense_list`),w=Symbol.for(`react.memo`),T=Symbol.for(`react.lazy`),E=Symbol.for(`react.activity`),ee=Symbol.for(`react.memo_cache_sentinel`),D=Symbol.iterator;function O(e){return typeof e!=`object`||!e?null:(e=D&&e[D]||e[`@@iterator`],typeof e==`function`?e:null)}var k=Symbol.for(`react.client.reference`);function A(e){if(e==null)return null;if(typeof e==`function`)return e.$$typeof===k?null:e.displayName||e.name||null;if(typeof e==`string`)return e;switch(e){case g:return`Fragment`;case v:return`Profiler`;case _:return`StrictMode`;case S:return`Suspense`;case C:return`SuspenseList`;case E:return`Activity`}if(typeof e==`object`)switch(e.$$typeof){case h:return`Portal`;case b:return e.displayName||`Context`;case y:return(e._context.displayName||`Context`)+`.Consumer`;case x:var t=e.render;return e=e.displayName,e||=(e=t.displayName||t.name||``,e===``?`ForwardRef`:`ForwardRef(`+e+`)`),e;case w:return t=e.displayName||null,t===null?A(e.type)||`Memo`:t;case T:t=e._payload,e=e._init;try{return A(e(t))}catch{}}return null}var j=Array.isArray,M=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,N=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,te={pending:!1,data:null,method:null,action:null},ne=[],re=-1;function ie(e){return{current:e}}function ae(e){0>re||(e.current=ne[re],ne[re]=null,re--)}function oe(e,t){re++,ne[re]=e.current,e.current=t}var P=ie(null),se=ie(null),ce=ie(null),le=ie(null);function ue(e,t){switch(oe(ce,t),oe(se,e),oe(P,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Jd(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Jd(t),e=Yd(t,e);else switch(e){case`svg`:e=1;break;case`math`:e=2;break;default:e=0}}ae(P),oe(P,e)}function de(){ae(P),ae(se),ae(ce)}function fe(e){e.memoizedState!==null&&oe(le,e);var t=P.current,n=Yd(t,e.type);t!==n&&(oe(se,e),oe(P,n))}function pe(e){se.current===e&&(ae(P),ae(se)),le.current===e&&(ae(le),ip._currentValue=te)}var me,he;function ge(e){if(me===void 0)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);me=t&&t[1]||``,he=-1<e.stack.indexOf(`
|
|
3
|
+
at`)?` (<anonymous>)`:-1<e.stack.indexOf(`@`)?`@unknown:0:0`:``}return`
|
|
4
|
+
`+me+e+he}var _e=!1;function ve(e,t){if(!e||_e)return``;_e=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var r={DetermineComponentFrameRoot:function(){try{if(t){var n=function(){throw Error()};if(Object.defineProperty(n.prototype,`props`,{set:function(){throw Error()}}),typeof Reflect==`object`&&Reflect.construct){try{Reflect.construct(n,[])}catch(e){var r=e}Reflect.construct(e,[],n)}else{try{n.call()}catch(e){r=e}e.call(n.prototype)}}else{try{throw Error()}catch(e){r=e}(n=e())&&typeof n.catch==`function`&&n.catch(function(){})}}catch(e){if(e&&r&&typeof e.stack==`string`)return[e.stack,r.stack]}return[null,null]}};r.DetermineComponentFrameRoot.displayName=`DetermineComponentFrameRoot`;var i=Object.getOwnPropertyDescriptor(r.DetermineComponentFrameRoot,`name`);i&&i.configurable&&Object.defineProperty(r.DetermineComponentFrameRoot,`name`,{value:`DetermineComponentFrameRoot`});var a=r.DetermineComponentFrameRoot(),o=a[0],s=a[1];if(o&&s){var c=o.split(`
|
|
5
|
+
`),l=s.split(`
|
|
6
|
+
`);for(i=r=0;r<c.length&&!c[r].includes(`DetermineComponentFrameRoot`);)r++;for(;i<l.length&&!l[i].includes(`DetermineComponentFrameRoot`);)i++;if(r===c.length||i===l.length)for(r=c.length-1,i=l.length-1;1<=r&&0<=i&&c[r]!==l[i];)i--;for(;1<=r&&0<=i;r--,i--)if(c[r]!==l[i]){if(r!==1||i!==1)do if(r--,i--,0>i||c[r]!==l[i]){var u=`
|
|
7
|
+
`+c[r].replace(` at new `,` at `);return e.displayName&&u.includes(`<anonymous>`)&&(u=u.replace(`<anonymous>`,e.displayName)),u}while(1<=r&&0<=i);break}}}finally{_e=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:``)?ge(n):``}function ye(e,t){switch(e.tag){case 26:case 27:case 5:return ge(e.type);case 16:return ge(`Lazy`);case 13:return e.child!==t&&t!==null?ge(`Suspense Fallback`):ge(`Suspense`);case 19:return ge(`SuspenseList`);case 0:case 15:return ve(e.type,!1);case 11:return ve(e.type.render,!1);case 1:return ve(e.type,!0);case 31:return ge(`Activity`);default:return``}}function be(e){try{var t=``,n=null;do t+=ye(e,n),n=e,e=e.return;while(e);return t}catch(e){return`
|
|
8
|
+
Error generating stack: `+e.message+`
|
|
9
|
+
`+e.stack}}var xe=Object.prototype.hasOwnProperty,Se=t.unstable_scheduleCallback,Ce=t.unstable_cancelCallback,we=t.unstable_shouldYield,Te=t.unstable_requestPaint,Ee=t.unstable_now,De=t.unstable_getCurrentPriorityLevel,Oe=t.unstable_ImmediatePriority,ke=t.unstable_UserBlockingPriority,Ae=t.unstable_NormalPriority,F=t.unstable_LowPriority,je=t.unstable_IdlePriority,Me=t.log,Ne=t.unstable_setDisableYieldValue,Pe=null,Fe=null;function Ie(e){if(typeof Me==`function`&&Ne(e),Fe&&typeof Fe.setStrictMode==`function`)try{Fe.setStrictMode(Pe,e)}catch{}}var Le=Math.clz32?Math.clz32:Be,Re=Math.log,ze=Math.LN2;function Be(e){return e>>>=0,e===0?32:31-(Re(e)/ze|0)|0}var Ve=256,He=262144,Ue=4194304;function We(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function Ge(e,t,n){var r=e.pendingLanes;if(r===0)return 0;var i=0,a=e.suspendedLanes,o=e.pingedLanes;e=e.warmLanes;var s=r&134217727;return s===0?(s=r&~a,s===0?o===0?n||(n=r&~e,n!==0&&(i=We(n))):i=We(o):i=We(s)):(r=s&~a,r===0?(o&=s,o===0?n||(n=s&~e,n!==0&&(i=We(n))):i=We(o)):i=We(r)),i===0?0:t!==0&&t!==i&&(t&a)===0&&(a=i&-i,n=t&-t,a>=n||a===32&&n&4194048)?t:i}function Ke(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function qe(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Je(){var e=Ue;return Ue<<=1,!(Ue&62914560)&&(Ue=4194304),e}function Ye(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Xe(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Ze(e,t,n,r,i,a){var o=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var s=e.entanglements,c=e.expirationTimes,l=e.hiddenUpdates;for(n=o&~n;0<n;){var u=31-Le(n),d=1<<u;s[u]=0,c[u]=-1;var f=l[u];if(f!==null)for(l[u]=null,u=0;u<f.length;u++){var p=f[u];p!==null&&(p.lane&=-536870913)}n&=~d}r!==0&&I(e,r,0),a!==0&&i===0&&e.tag!==0&&(e.suspendedLanes|=a&~(o&~t))}function I(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var r=31-Le(t);e.entangledLanes|=t,e.entanglements[r]=e.entanglements[r]|1073741824|n&261930}function Qe(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Le(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}function $e(e,t){var n=t&-t;return n=n&42?1:et(n),(n&(e.suspendedLanes|t))===0?n:0}function et(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function tt(e){return e&=-e,2<e?8<e?e&134217727?32:268435456:8:2}function nt(){var e=N.p;return e===0?(e=window.event,e===void 0?32:bp(e.type)):e}function rt(e,t){var n=N.p;try{return N.p=e,t()}finally{N.p=n}}var it=Math.random().toString(36).slice(2),at=`__reactFiber$`+it,ot=`__reactProps$`+it,st=`__reactContainer$`+it,ct=`__reactEvents$`+it,lt=`__reactListeners$`+it,ut=`__reactHandles$`+it,dt=`__reactResources$`+it,ft=`__reactMarker$`+it;function pt(e){delete e[at],delete e[ot],delete e[ct],delete e[lt],delete e[ut]}function mt(e){var t=e[at];if(t)return t;for(var n=e.parentNode;n;){if(t=n[st]||n[at]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=vf(e);e!==null;){if(n=e[at])return n;e=vf(e)}return t}e=n,n=e.parentNode}return null}function gt(e){if(e=e[at]||e[st]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function vt(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(i(33))}function bt(e){var t=e[dt];return t||=e[dt]={hoistableStyles:new Map,hoistableScripts:new Map},t}function xt(e){e[ft]=!0}var St=new Set,Ct={};function wt(e,t){Tt(e,t),Tt(e+`Capture`,t)}function Tt(e,t){for(Ct[e]=t,e=0;e<t.length;e++)St.add(t[e])}var Et=RegExp(`^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$`),Dt={},L={};function Ot(e){return xe.call(L,e)?!0:xe.call(Dt,e)?!1:Et.test(e)?L[e]=!0:(Dt[e]=!0,!1)}function kt(e,t,n){if(Ot(t))if(n===null)e.removeAttribute(t);else{switch(typeof n){case`undefined`:case`function`:case`symbol`:e.removeAttribute(t);return;case`boolean`:var r=t.toLowerCase().slice(0,5);if(r!==`data-`&&r!==`aria-`){e.removeAttribute(t);return}}e.setAttribute(t,``+n)}}function At(e,t,n){if(n===null)e.removeAttribute(t);else{switch(typeof n){case`undefined`:case`function`:case`symbol`:case`boolean`:e.removeAttribute(t);return}e.setAttribute(t,``+n)}}function jt(e,t,n,r){if(r===null)e.removeAttribute(n);else{switch(typeof r){case`undefined`:case`function`:case`symbol`:case`boolean`:e.removeAttribute(n);return}e.setAttributeNS(t,n,``+r)}}function Mt(e){switch(typeof e){case`bigint`:case`boolean`:case`number`:case`string`:case`undefined`:return e;case`object`:return e;default:return``}}function Nt(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()===`input`&&(t===`checkbox`||t===`radio`)}function Pt(e,t,n){var r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&r!==void 0&&typeof r.get==`function`&&typeof r.set==`function`){var i=r.get,a=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(e){n=``+e,a.call(this,e)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(e){n=``+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Ft(e){if(!e._valueTracker){var t=Nt(e)?`checked`:`value`;e._valueTracker=Pt(e,t,``+e[t])}}function It(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r=``;return e&&(r=Nt(e)?e.checked?`true`:`false`:e.value),e=r,e===n?!1:(t.setValue(e),!0)}function Lt(e){if(e||=typeof document<`u`?document:void 0,e===void 0)return null;try{return e.activeElement||e.body}catch{return e.body}}var Rt=/[\n"\\]/g;function zt(e){return e.replace(Rt,function(e){return`\\`+e.charCodeAt(0).toString(16)+` `})}function Bt(e,t,n,r,i,a,o,s){e.name=``,o!=null&&typeof o!=`function`&&typeof o!=`symbol`&&typeof o!=`boolean`?e.type=o:e.removeAttribute(`type`),t==null?o!==`submit`&&o!==`reset`||e.removeAttribute(`value`):o===`number`?(t===0&&e.value===``||e.value!=t)&&(e.value=``+Mt(t)):e.value!==``+Mt(t)&&(e.value=``+Mt(t)),t==null?n==null?r!=null&&e.removeAttribute(`value`):Ht(e,o,Mt(n)):Ht(e,o,Mt(t)),i==null&&a!=null&&(e.defaultChecked=!!a),i!=null&&(e.checked=i&&typeof i!=`function`&&typeof i!=`symbol`),s!=null&&typeof s!=`function`&&typeof s!=`symbol`&&typeof s!=`boolean`?e.name=``+Mt(s):e.removeAttribute(`name`)}function Vt(e,t,n,r,i,a,o,s){if(a!=null&&typeof a!=`function`&&typeof a!=`symbol`&&typeof a!=`boolean`&&(e.type=a),t!=null||n!=null){if(!(a!==`submit`&&a!==`reset`||t!=null)){Ft(e);return}n=n==null?``:``+Mt(n),t=t==null?n:``+Mt(t),s||t===e.value||(e.value=t),e.defaultValue=t}r??=i,r=typeof r!=`function`&&typeof r!=`symbol`&&!!r,e.checked=s?e.checked:!!r,e.defaultChecked=!!r,o!=null&&typeof o!=`function`&&typeof o!=`symbol`&&typeof o!=`boolean`&&(e.name=o),Ft(e)}function Ht(e,t,n){t===`number`&&Lt(e.ownerDocument)===e||e.defaultValue===``+n||(e.defaultValue=``+n)}function Ut(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t[`$`+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty(`$`+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=``+Mt(n),t=null,i=0;i<e.length;i++){if(e[i].value===n){e[i].selected=!0,r&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function Wt(e,t,n){if(t!=null&&(t=``+Mt(t),t!==e.value&&(e.value=t),n==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=n==null?``:``+Mt(n)}function Gt(e,t,n,r){if(t==null){if(r!=null){if(n!=null)throw Error(i(92));if(j(r)){if(1<r.length)throw Error(i(93));r=r[0]}n=r}n??=``,t=n}n=Mt(t),e.defaultValue=n,r=e.textContent,r===n&&r!==``&&r!==null&&(e.value=r),Ft(e)}function Kt(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var qt=new Set(`animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp`.split(` `));function Jt(e,t,n){var r=t.indexOf(`--`)===0;n==null||typeof n==`boolean`||n===``?r?e.setProperty(t,``):t===`float`?e.cssFloat=``:e[t]=``:r?e.setProperty(t,n):typeof n!=`number`||n===0||qt.has(t)?t===`float`?e.cssFloat=n:e[t]=(``+n).trim():e[t]=n+`px`}function Yt(e,t,n){if(t!=null&&typeof t!=`object`)throw Error(i(62));if(e=e.style,n!=null){for(var r in n)!n.hasOwnProperty(r)||t!=null&&t.hasOwnProperty(r)||(r.indexOf(`--`)===0?e.setProperty(r,``):r===`float`?e.cssFloat=``:e[r]=``);for(var a in t)r=t[a],t.hasOwnProperty(a)&&n[a]!==r&&Jt(e,a,r)}else for(var o in t)t.hasOwnProperty(o)&&Jt(e,o,t[o])}function Xt(e){if(e.indexOf(`-`)===-1)return!1;switch(e){case`annotation-xml`:case`color-profile`:case`font-face`:case`font-face-src`:case`font-face-uri`:case`font-face-format`:case`font-face-name`:case`missing-glyph`:return!1;default:return!0}}var Zt=new Map([[`acceptCharset`,`accept-charset`],[`htmlFor`,`for`],[`httpEquiv`,`http-equiv`],[`crossOrigin`,`crossorigin`],[`accentHeight`,`accent-height`],[`alignmentBaseline`,`alignment-baseline`],[`arabicForm`,`arabic-form`],[`baselineShift`,`baseline-shift`],[`capHeight`,`cap-height`],[`clipPath`,`clip-path`],[`clipRule`,`clip-rule`],[`colorInterpolation`,`color-interpolation`],[`colorInterpolationFilters`,`color-interpolation-filters`],[`colorProfile`,`color-profile`],[`colorRendering`,`color-rendering`],[`dominantBaseline`,`dominant-baseline`],[`enableBackground`,`enable-background`],[`fillOpacity`,`fill-opacity`],[`fillRule`,`fill-rule`],[`floodColor`,`flood-color`],[`floodOpacity`,`flood-opacity`],[`fontFamily`,`font-family`],[`fontSize`,`font-size`],[`fontSizeAdjust`,`font-size-adjust`],[`fontStretch`,`font-stretch`],[`fontStyle`,`font-style`],[`fontVariant`,`font-variant`],[`fontWeight`,`font-weight`],[`glyphName`,`glyph-name`],[`glyphOrientationHorizontal`,`glyph-orientation-horizontal`],[`glyphOrientationVertical`,`glyph-orientation-vertical`],[`horizAdvX`,`horiz-adv-x`],[`horizOriginX`,`horiz-origin-x`],[`imageRendering`,`image-rendering`],[`letterSpacing`,`letter-spacing`],[`lightingColor`,`lighting-color`],[`markerEnd`,`marker-end`],[`markerMid`,`marker-mid`],[`markerStart`,`marker-start`],[`overlinePosition`,`overline-position`],[`overlineThickness`,`overline-thickness`],[`paintOrder`,`paint-order`],[`panose-1`,`panose-1`],[`pointerEvents`,`pointer-events`],[`renderingIntent`,`rendering-intent`],[`shapeRendering`,`shape-rendering`],[`stopColor`,`stop-color`],[`stopOpacity`,`stop-opacity`],[`strikethroughPosition`,`strikethrough-position`],[`strikethroughThickness`,`strikethrough-thickness`],[`strokeDasharray`,`stroke-dasharray`],[`strokeDashoffset`,`stroke-dashoffset`],[`strokeLinecap`,`stroke-linecap`],[`strokeLinejoin`,`stroke-linejoin`],[`strokeMiterlimit`,`stroke-miterlimit`],[`strokeOpacity`,`stroke-opacity`],[`strokeWidth`,`stroke-width`],[`textAnchor`,`text-anchor`],[`textDecoration`,`text-decoration`],[`textRendering`,`text-rendering`],[`transformOrigin`,`transform-origin`],[`underlinePosition`,`underline-position`],[`underlineThickness`,`underline-thickness`],[`unicodeBidi`,`unicode-bidi`],[`unicodeRange`,`unicode-range`],[`unitsPerEm`,`units-per-em`],[`vAlphabetic`,`v-alphabetic`],[`vHanging`,`v-hanging`],[`vIdeographic`,`v-ideographic`],[`vMathematical`,`v-mathematical`],[`vectorEffect`,`vector-effect`],[`vertAdvY`,`vert-adv-y`],[`vertOriginX`,`vert-origin-x`],[`vertOriginY`,`vert-origin-y`],[`wordSpacing`,`word-spacing`],[`writingMode`,`writing-mode`],[`xmlnsXlink`,`xmlns:xlink`],[`xHeight`,`x-height`]]),Qt=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function $t(e){return Qt.test(``+e)?`javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')`:e}function en(){}var tn=null;function nn(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var rn=null,R=null;function an(e){var t=gt(e);if(t&&(e=t.stateNode)){var n=e[ot]||null;a:switch(e=t.stateNode,t.type){case`input`:if(Bt(e,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),t=n.name,n.type===`radio`&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll(`input[name="`+zt(``+t)+`"][type="radio"]`),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var a=r[ot]||null;if(!a)throw Error(i(90));Bt(r,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name)}}for(t=0;t<n.length;t++)r=n[t],r.form===e.form&&It(r)}break a;case`textarea`:Wt(e,n.value,n.defaultValue);break a;case`select`:t=n.value,t!=null&&Ut(e,!!n.multiple,t,!1)}}}var on=!1;function sn(e,t,n){if(on)return e(t,n);on=!0;try{return e(t)}finally{if(on=!1,(rn!==null||R!==null)&&(wu(),rn&&(t=rn,e=R,R=rn=null,an(t),e)))for(t=0;t<e.length;t++)an(e[t])}}function cn(e,t){var n=e.stateNode;if(n===null)return null;var r=n[ot]||null;if(r===null)return null;n=r[t];a:switch(t){case`onClick`:case`onClickCapture`:case`onDoubleClick`:case`onDoubleClickCapture`:case`onMouseDown`:case`onMouseDownCapture`:case`onMouseMove`:case`onMouseMoveCapture`:case`onMouseUp`:case`onMouseUpCapture`:case`onMouseEnter`:(r=!r.disabled)||(e=e.type,r=!(e===`button`||e===`input`||e===`select`||e===`textarea`)),e=!r;break a;default:e=!1}if(e)return null;if(n&&typeof n!=`function`)throw Error(i(231,t,typeof n));return n}var ln=!(typeof window>`u`||window.document===void 0||window.document.createElement===void 0),un=!1;if(ln)try{var dn={};Object.defineProperty(dn,`passive`,{get:function(){un=!0}}),window.addEventListener(`test`,dn,dn),window.removeEventListener(`test`,dn,dn)}catch{un=!1}var fn=null,pn=null,mn=null;function hn(){if(mn)return mn;var e,t=pn,n=t.length,r,i=`value`in fn?fn.value:fn.textContent,a=i.length;for(e=0;e<n&&t[e]===i[e];e++);var o=n-e;for(r=1;r<=o&&t[n-r]===i[a-r];r++);return mn=i.slice(e,1<r?1-r:void 0)}function gn(e){var t=e.keyCode;return`charCode`in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function z(){return!0}function _n(){return!1}function vn(e){function t(t,n,r,i,a){for(var o in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=i,this.target=a,this.currentTarget=null,e)e.hasOwnProperty(o)&&(t=e[o],this[o]=t?t(i):i[o]);return this.isDefaultPrevented=(i.defaultPrevented==null?!1===i.returnValue:i.defaultPrevented)?z:_n,this.isPropagationStopped=_n,this}return f(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():typeof e.returnValue!=`unknown`&&(e.returnValue=!1),this.isDefaultPrevented=z)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():typeof e.cancelBubble!=`unknown`&&(e.cancelBubble=!0),this.isPropagationStopped=z)},persist:function(){},isPersistent:z}),t}var yn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},bn=vn(yn),xn=f({},yn,{view:0,detail:0}),Sn=vn(xn),Cn,wn,Tn,En=f({},xn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:In,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return`movementX`in e?e.movementX:(e!==Tn&&(Tn&&e.type===`mousemove`?(Cn=e.screenX-Tn.screenX,wn=e.screenY-Tn.screenY):wn=Cn=0,Tn=e),Cn)},movementY:function(e){return`movementY`in e?e.movementY:wn}}),Dn=vn(En),On=vn(f({},En,{dataTransfer:0})),kn=vn(f({},xn,{relatedTarget:0})),An=vn(f({},yn,{animationName:0,elapsedTime:0,pseudoElement:0})),jn=vn(f({},yn,{clipboardData:function(e){return`clipboardData`in e?e.clipboardData:window.clipboardData}})),Mn=vn(f({},yn,{data:0})),Nn={Esc:`Escape`,Spacebar:` `,Left:`ArrowLeft`,Up:`ArrowUp`,Right:`ArrowRight`,Down:`ArrowDown`,Del:`Delete`,Win:`OS`,Menu:`ContextMenu`,Apps:`ContextMenu`,Scroll:`ScrollLock`,MozPrintableKey:`Unidentified`},Pn={8:`Backspace`,9:`Tab`,12:`Clear`,13:`Enter`,16:`Shift`,17:`Control`,18:`Alt`,19:`Pause`,20:`CapsLock`,27:`Escape`,32:` `,33:`PageUp`,34:`PageDown`,35:`End`,36:`Home`,37:`ArrowLeft`,38:`ArrowUp`,39:`ArrowRight`,40:`ArrowDown`,45:`Insert`,46:`Delete`,112:`F1`,113:`F2`,114:`F3`,115:`F4`,116:`F5`,117:`F6`,118:`F7`,119:`F8`,120:`F9`,121:`F10`,122:`F11`,123:`F12`,144:`NumLock`,145:`ScrollLock`,224:`Meta`},Fn={Alt:`altKey`,Control:`ctrlKey`,Meta:`metaKey`,Shift:`shiftKey`};function B(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Fn[e])?!!t[e]:!1}function In(){return B}var Ln=vn(f({},xn,{key:function(e){if(e.key){var t=Nn[e.key]||e.key;if(t!==`Unidentified`)return t}return e.type===`keypress`?(e=gn(e),e===13?`Enter`:String.fromCharCode(e)):e.type===`keydown`||e.type===`keyup`?Pn[e.keyCode]||`Unidentified`:``},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:In,charCode:function(e){return e.type===`keypress`?gn(e):0},keyCode:function(e){return e.type===`keydown`||e.type===`keyup`?e.keyCode:0},which:function(e){return e.type===`keypress`?gn(e):e.type===`keydown`||e.type===`keyup`?e.keyCode:0}})),Rn=vn(f({},En,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),zn=vn(f({},xn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:In})),Bn=vn(f({},yn,{propertyName:0,elapsedTime:0,pseudoElement:0})),Vn=vn(f({},En,{deltaX:function(e){return`deltaX`in e?e.deltaX:`wheelDeltaX`in e?-e.wheelDeltaX:0},deltaY:function(e){return`deltaY`in e?e.deltaY:`wheelDeltaY`in e?-e.wheelDeltaY:`wheelDelta`in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0})),Hn=vn(f({},yn,{newState:0,oldState:0})),Un=[9,13,27,32],Wn=ln&&`CompositionEvent`in window,Gn=null;ln&&`documentMode`in document&&(Gn=document.documentMode);var Kn=ln&&`TextEvent`in window&&!Gn,qn=ln&&(!Wn||Gn&&8<Gn&&11>=Gn),Jn=` `,Yn=!1;function Xn(e,t){switch(e){case`keyup`:return Un.indexOf(t.keyCode)!==-1;case`keydown`:return t.keyCode!==229;case`keypress`:case`mousedown`:case`focusout`:return!0;default:return!1}}function Zn(e){return e=e.detail,typeof e==`object`&&`data`in e?e.data:null}var Qn=!1;function $n(e,t){switch(e){case`compositionend`:return Zn(t);case`keypress`:return t.which===32?(Yn=!0,Jn):null;case`textInput`:return e=t.data,e===Jn&&Yn?null:e;default:return null}}function er(e,t){if(Qn)return e===`compositionend`||!Wn&&Xn(e,t)?(e=hn(),mn=pn=fn=null,Qn=!1,e):null;switch(e){case`paste`:return null;case`keypress`:if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case`compositionend`:return qn&&t.locale!==`ko`?null:t.data;default:return null}}var tr={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function nr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t===`input`?!!tr[e.type]:t===`textarea`}function rr(e,t,n,r){rn?R?R.push(r):R=[r]:rn=r,t=Md(t,`onChange`),0<t.length&&(n=new bn(`onChange`,`change`,null,n,r),e.push({event:n,listeners:t}))}var ir=null,ar=null;function or(e){wd(e,0)}function sr(e){if(It(vt(e)))return e}function cr(e,t){if(e===`change`)return t}var lr=!1;if(ln){var ur;if(ln){var dr=`oninput`in document;if(!dr){var fr=document.createElement(`div`);fr.setAttribute(`oninput`,`return;`),dr=typeof fr.oninput==`function`}ur=dr}else ur=!1;lr=ur&&(!document.documentMode||9<document.documentMode)}function pr(){ir&&(ir.detachEvent(`onpropertychange`,mr),ar=ir=null)}function mr(e){if(e.propertyName===`value`&&sr(ar)){var t=[];rr(t,ar,e,nn(e)),sn(or,t)}}function hr(e,t,n){e===`focusin`?(pr(),ir=t,ar=n,ir.attachEvent(`onpropertychange`,mr)):e===`focusout`&&pr()}function gr(e){if(e===`selectionchange`||e===`keyup`||e===`keydown`)return sr(ar)}function _r(e,t){if(e===`click`)return sr(t)}function vr(e,t){if(e===`input`||e===`change`)return sr(t)}function yr(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var br=typeof Object.is==`function`?Object.is:yr;function xr(e,t){if(br(e,t))return!0;if(typeof e!=`object`||!e||typeof t!=`object`||!t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!xe.call(t,i)||!br(e[i],t[i]))return!1}return!0}function Sr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Cr(e,t){var n=Sr(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}a:{for(;n;){if(n.nextSibling){n=n.nextSibling;break a}n=n.parentNode}n=void 0}n=Sr(n)}}function wr(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?wr(e,t.parentNode):`contains`in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Tr(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Lt(e.document);t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href==`string`}catch{n=!1}if(n)e=t.contentWindow;else break;t=Lt(e.document)}return t}function Er(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t===`input`&&(e.type===`text`||e.type===`search`||e.type===`tel`||e.type===`url`||e.type===`password`)||t===`textarea`||e.contentEditable===`true`)}var Dr=ln&&`documentMode`in document&&11>=document.documentMode,Or=null,kr=null,Ar=null,jr=!1;function Mr(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;jr||Or==null||Or!==Lt(r)||(r=Or,`selectionStart`in r&&Er(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Ar&&xr(Ar,r)||(Ar=r,r=Md(kr,`onSelect`),0<r.length&&(t=new bn(`onSelect`,`select`,null,t,n),e.push({event:t,listeners:r}),t.target=Or)))}function Nr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n[`Webkit`+e]=`webkit`+t,n[`Moz`+e]=`moz`+t,n}var Pr={animationend:Nr(`Animation`,`AnimationEnd`),animationiteration:Nr(`Animation`,`AnimationIteration`),animationstart:Nr(`Animation`,`AnimationStart`),transitionrun:Nr(`Transition`,`TransitionRun`),transitionstart:Nr(`Transition`,`TransitionStart`),transitioncancel:Nr(`Transition`,`TransitionCancel`),transitionend:Nr(`Transition`,`TransitionEnd`)},Fr={},Ir={};ln&&(Ir=document.createElement(`div`).style,`AnimationEvent`in window||(delete Pr.animationend.animation,delete Pr.animationiteration.animation,delete Pr.animationstart.animation),`TransitionEvent`in window||delete Pr.transitionend.transition);function Lr(e){if(Fr[e])return Fr[e];if(!Pr[e])return e;var t=Pr[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Ir)return Fr[e]=t[n];return e}var Rr=Lr(`animationend`),zr=Lr(`animationiteration`),Br=Lr(`animationstart`),Vr=Lr(`transitionrun`),Hr=Lr(`transitionstart`),Ur=Lr(`transitioncancel`),Wr=Lr(`transitionend`),Gr=new Map,Kr=`abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel`.split(` `);Kr.push(`scrollEnd`);function qr(e,t){Gr.set(e,t),wt(t,[e])}var Jr=typeof reportError==`function`?reportError:function(e){if(typeof window==`object`&&typeof window.ErrorEvent==`function`){var t=new window.ErrorEvent(`error`,{bubbles:!0,cancelable:!0,message:typeof e==`object`&&e&&typeof e.message==`string`?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process==`object`&&typeof process.emit==`function`){process.emit(`uncaughtException`,e);return}console.error(e)},Yr=[],Xr=0,Zr=0;function Qr(){for(var e=Xr,t=Zr=Xr=0;t<e;){var n=Yr[t];Yr[t++]=null;var r=Yr[t];Yr[t++]=null;var i=Yr[t];Yr[t++]=null;var a=Yr[t];if(Yr[t++]=null,r!==null&&i!==null){var o=r.pending;o===null?i.next=i:(i.next=o.next,o.next=i),r.pending=i}a!==0&&ni(n,i,a)}}function $r(e,t,n,r){Yr[Xr++]=e,Yr[Xr++]=t,Yr[Xr++]=n,Yr[Xr++]=r,Zr|=r,e.lanes|=r,e=e.alternate,e!==null&&(e.lanes|=r)}function ei(e,t,n,r){return $r(e,t,n,r),ri(e)}function ti(e,t){return $r(e,null,null,t),ri(e)}function ni(e,t,n){e.lanes|=n;var r=e.alternate;r!==null&&(r.lanes|=n);for(var i=!1,a=e.return;a!==null;)a.childLanes|=n,r=a.alternate,r!==null&&(r.childLanes|=n),a.tag===22&&(e=a.stateNode,e===null||e._visibility&1||(i=!0)),e=a,a=a.return;return e.tag===3?(a=e.stateNode,i&&t!==null&&(i=31-Le(n),e=a.hiddenUpdates,r=e[i],r===null?e[i]=[t]:r.push(t),t.lane=n|536870912),a):null}function ri(e){if(50<hu)throw hu=0,gu=null,Error(i(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var ii={};function ai(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function oi(e,t,n,r){return new ai(e,t,n,r)}function si(e){return e=e.prototype,!(!e||!e.isReactComponent)}function ci(e,t){var n=e.alternate;return n===null?(n=oi(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&65011712,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n.refCleanup=e.refCleanup,n}function li(e,t){e.flags&=65011714;var n=e.alternate;return n===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type,t=n.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function ui(e,t,n,r,a,o){var s=0;if(r=e,typeof e==`function`)si(e)&&(s=1);else if(typeof e==`string`)s=Yf(e,n,P.current)?26:e===`html`||e===`head`||e===`body`?27:5;else a:switch(e){case E:return e=oi(31,n,t,a),e.elementType=E,e.lanes=o,e;case g:return di(n.children,a,o,t);case _:s=8,a|=24;break;case v:return e=oi(12,n,t,a|2),e.elementType=v,e.lanes=o,e;case S:return e=oi(13,n,t,a),e.elementType=S,e.lanes=o,e;case C:return e=oi(19,n,t,a),e.elementType=C,e.lanes=o,e;default:if(typeof e==`object`&&e)switch(e.$$typeof){case b:s=10;break a;case y:s=9;break a;case x:s=11;break a;case w:s=14;break a;case T:s=16,r=null;break a}s=29,n=Error(i(130,e===null?`null`:typeof e,``)),r=null}return t=oi(s,n,t,a),t.elementType=e,t.type=r,t.lanes=o,t}function di(e,t,n,r){return e=oi(7,e,r,t),e.lanes=n,e}function fi(e,t,n){return e=oi(6,e,null,t),e.lanes=n,e}function pi(e){var t=oi(18,null,null,0);return t.stateNode=e,t}function mi(e,t,n){return t=oi(4,e.children===null?[]:e.children,e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var hi=new WeakMap;function gi(e,t){if(typeof e==`object`&&e){var n=hi.get(e);return n===void 0?(t={value:e,source:t,stack:be(t)},hi.set(e,t),t):n}return{value:e,source:t,stack:be(t)}}var _i=[],vi=0,yi=null,bi=0,xi=[],Si=0,Ci=null,wi=1,V=``;function Ti(e,t){_i[vi++]=bi,_i[vi++]=yi,yi=e,bi=t}function Ei(e,t,n){xi[Si++]=wi,xi[Si++]=V,xi[Si++]=Ci,Ci=e;var r=wi;e=V;var i=32-Le(r)-1;r&=~(1<<i),n+=1;var a=32-Le(t)+i;if(30<a){var o=i-i%5;a=(r&(1<<o)-1).toString(32),r>>=o,i-=o,wi=1<<32-Le(t)+i|n<<i|r,V=a+e}else wi=1<<a|n<<i|r,V=e}function Di(e){e.return!==null&&(Ti(e,1),Ei(e,1,0))}function Oi(e){for(;e===yi;)yi=_i[--vi],_i[vi]=null,bi=_i[--vi],_i[vi]=null;for(;e===Ci;)Ci=xi[--Si],xi[Si]=null,V=xi[--Si],xi[Si]=null,wi=xi[--Si],xi[Si]=null}function ki(e,t){xi[Si++]=wi,xi[Si++]=V,xi[Si++]=Ci,wi=t.id,V=t.overflow,Ci=e}var Ai=null,ji=null,Mi=!1,Ni=null,Pi=!1,Fi=Error(i(519));function Ii(e){throw Hi(gi(Error(i(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?`text`:`HTML`,``)),e)),Fi}function Li(e){var t=e.stateNode,n=e.type,r=e.memoizedProps;switch(t[at]=e,t[ot]=r,n){case`dialog`:Td(`cancel`,t),Td(`close`,t);break;case`iframe`:case`object`:case`embed`:Td(`load`,t);break;case`video`:case`audio`:for(n=0;n<Sd.length;n++)Td(Sd[n],t);break;case`source`:Td(`error`,t);break;case`img`:case`image`:case`link`:Td(`error`,t),Td(`load`,t);break;case`details`:Td(`toggle`,t);break;case`input`:Td(`invalid`,t),Vt(t,r.value,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name,!0);break;case`select`:Td(`invalid`,t);break;case`textarea`:Td(`invalid`,t),Gt(t,r.value,r.defaultValue,r.children)}n=r.children,typeof n!=`string`&&typeof n!=`number`&&typeof n!=`bigint`||t.textContent===``+n||!0===r.suppressHydrationWarning||Rd(t.textContent,n)?(r.popover!=null&&(Td(`beforetoggle`,t),Td(`toggle`,t)),r.onScroll!=null&&Td(`scroll`,t),r.onScrollEnd!=null&&Td(`scrollend`,t),r.onClick!=null&&(t.onclick=en),t=!0):t=!1,t||Ii(e,!0)}function Ri(e){for(Ai=e.return;Ai;)switch(Ai.tag){case 5:case 31:case 13:Pi=!1;return;case 27:case 3:Pi=!0;return;default:Ai=Ai.return}}function zi(e){if(e!==Ai)return!1;if(!Mi)return Ri(e),Mi=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=!(n!==`form`&&n!==`button`)||Xd(e.type,e.memoizedProps)),n=!n),n&&ji&&Ii(e),Ri(e),t===13){if(e=e.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(i(317));ji=_f(e)}else if(t===31){if(e=e.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(i(317));ji=_f(e)}else t===27?(t=ji,af(e.type)?(e=gf,gf=null,ji=e):ji=t):ji=Ai?hf(e.stateNode.nextSibling):null;return!0}function Bi(){ji=Ai=null,Mi=!1}function Vi(){var e=Ni;return e!==null&&(tu===null?tu=e:tu.push.apply(tu,e),Ni=null),e}function Hi(e){Ni===null?Ni=[e]:Ni.push(e)}var Ui=ie(null),Wi=null,Gi=null;function Ki(e,t,n){oe(Ui,t._currentValue),t._currentValue=n}function qi(e){e._currentValue=Ui.current,ae(Ui)}function Ji(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)===t?r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t):(e.childLanes|=t,r!==null&&(r.childLanes|=t)),e===n)break;e=e.return}}function Yi(e,t,n,r){var a=e.child;for(a!==null&&(a.return=e);a!==null;){var o=a.dependencies;if(o!==null){var s=a.child;o=o.firstContext;a:for(;o!==null;){var c=o;o=a;for(var l=0;l<t.length;l++)if(c.context===t[l]){o.lanes|=n,c=o.alternate,c!==null&&(c.lanes|=n),Ji(o.return,n,e),r||(s=null);break a}o=c.next}}else if(a.tag===18){if(s=a.return,s===null)throw Error(i(341));s.lanes|=n,o=s.alternate,o!==null&&(o.lanes|=n),Ji(s,n,e),s=null}else s=a.child;if(s!==null)s.return=a;else for(s=a;s!==null;){if(s===e){s=null;break}if(a=s.sibling,a!==null){a.return=s.return,s=a;break}s=s.return}a=s}}function Xi(e,t,n,r){e=null;for(var a=t,o=!1;a!==null;){if(!o){if(a.flags&524288)o=!0;else if(a.flags&262144)break}if(a.tag===10){var s=a.alternate;if(s===null)throw Error(i(387));if(s=s.memoizedProps,s!==null){var c=a.type;br(a.pendingProps.value,s.value)||(e===null?e=[c]:e.push(c))}}else if(a===le.current){if(s=a.alternate,s===null)throw Error(i(387));s.memoizedState.memoizedState!==a.memoizedState.memoizedState&&(e===null?e=[ip]:e.push(ip))}a=a.return}e!==null&&Yi(t,e,n,r),t.flags|=262144}function Zi(e){for(e=e.firstContext;e!==null;){if(!br(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Qi(e){Wi=e,Gi=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function $i(e){return ta(Wi,e)}function ea(e,t){return Wi===null&&Qi(e),ta(e,t)}function ta(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},Gi===null){if(e===null)throw Error(i(308));Gi=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else Gi=Gi.next=t;return n}var na=typeof AbortController<`u`?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(t,n){e.push(n)}};this.abort=function(){t.aborted=!0,e.forEach(function(e){return e()})}},ra=t.unstable_scheduleCallback,ia=t.unstable_NormalPriority,aa={$$typeof:b,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function oa(){return{controller:new na,data:new Map,refCount:0}}function sa(e){e.refCount--,e.refCount===0&&ra(ia,function(){e.controller.abort()})}var ca=null,la=0,ua=0,da=null;function fa(e,t){if(ca===null){var n=ca=[];la=0,ua=gd(),da={status:`pending`,value:void 0,then:function(e){n.push(e)}}}return la++,t.then(pa,pa),t}function pa(){if(--la===0&&ca!==null){da!==null&&(da.status=`fulfilled`);var e=ca;ca=null,ua=0,da=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function ma(e,t){var n=[],r={status:`pending`,value:null,reason:null,then:function(e){n.push(e)}};return e.then(function(){r.status=`fulfilled`,r.value=t;for(var e=0;e<n.length;e++)(0,n[e])(t)},function(e){for(r.status=`rejected`,r.reason=e,e=0;e<n.length;e++)(0,n[e])(void 0)}),r}var ha=M.S;M.S=function(e,t){iu=Ee(),typeof t==`object`&&t&&typeof t.then==`function`&&fa(e,t),ha!==null&&ha(e,t)};var ga=ie(null);function _a(){var e=ga.current;return e===null?zl.pooledCache:e}function va(e,t){t===null?oe(ga,ga.current):oe(ga,t.pool)}function ya(){var e=_a();return e===null?null:{parent:aa._currentValue,pool:e}}var ba=Error(i(460)),xa=Error(i(474)),Sa=Error(i(542)),Ca={then:function(){}};function wa(e){return e=e.status,e===`fulfilled`||e===`rejected`}function Ta(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(en,en),t=n),t.status){case`fulfilled`:return t.value;case`rejected`:throw e=t.reason,ka(e),e;default:if(typeof t.status==`string`)t.then(en,en);else{if(e=zl,e!==null&&100<e.shellSuspendCounter)throw Error(i(482));e=t,e.status=`pending`,e.then(function(e){if(t.status===`pending`){var n=t;n.status=`fulfilled`,n.value=e}},function(e){if(t.status===`pending`){var n=t;n.status=`rejected`,n.reason=e}})}switch(t.status){case`fulfilled`:return t.value;case`rejected`:throw e=t.reason,ka(e),e}throw Da=t,ba}}function Ea(e){try{var t=e._init;return t(e._payload)}catch(e){throw typeof e==`object`&&e&&typeof e.then==`function`?(Da=e,ba):e}}var Da=null;function Oa(){if(Da===null)throw Error(i(459));var e=Da;return Da=null,e}function ka(e){if(e===ba||e===Sa)throw Error(i(483))}var Aa=null,ja=0;function Ma(e){var t=ja;return ja+=1,Aa===null&&(Aa=[]),Ta(Aa,e,t)}function Na(e,t){t=t.props.ref,e.ref=t===void 0?null:t}function Pa(e,t){throw t.$$typeof===p?Error(i(525)):(e=Object.prototype.toString.call(t),Error(i(31,e===`[object Object]`?`object with keys {`+Object.keys(t).join(`, `)+`}`:e)))}function Fa(e){function t(t,n){if(e){var r=t.deletions;r===null?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;r!==null;)t(n,r),r=r.sibling;return null}function r(e){for(var t=new Map;e!==null;)e.key===null?t.set(e.index,e):t.set(e.key,e),e=e.sibling;return t}function a(e,t){return e=ci(e,t),e.index=0,e.sibling=null,e}function o(t,n,r){return t.index=r,e?(r=t.alternate,r===null?(t.flags|=67108866,n):(r=r.index,r<n?(t.flags|=67108866,n):r)):(t.flags|=1048576,n)}function s(t){return e&&t.alternate===null&&(t.flags|=67108866),t}function c(e,t,n,r){return t===null||t.tag!==6?(t=fi(n,e.mode,r),t.return=e,t):(t=a(t,n),t.return=e,t)}function l(e,t,n,r){var i=n.type;return i===g?d(e,t,n.props.children,r,n.key):t!==null&&(t.elementType===i||typeof i==`object`&&i&&i.$$typeof===T&&Ea(i)===t.type)?(t=a(t,n.props),Na(t,n),t.return=e,t):(t=ui(n.type,n.key,n.props,null,e.mode,r),Na(t,n),t.return=e,t)}function u(e,t,n,r){return t===null||t.tag!==4||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?(t=mi(n,e.mode,r),t.return=e,t):(t=a(t,n.children||[]),t.return=e,t)}function d(e,t,n,r,i){return t===null||t.tag!==7?(t=di(n,e.mode,r,i),t.return=e,t):(t=a(t,n),t.return=e,t)}function f(e,t,n){if(typeof t==`string`&&t!==``||typeof t==`number`||typeof t==`bigint`)return t=fi(``+t,e.mode,n),t.return=e,t;if(typeof t==`object`&&t){switch(t.$$typeof){case m:return n=ui(t.type,t.key,t.props,null,e.mode,n),Na(n,t),n.return=e,n;case h:return t=mi(t,e.mode,n),t.return=e,t;case T:return t=Ea(t),f(e,t,n)}if(j(t)||O(t))return t=di(t,e.mode,n,null),t.return=e,t;if(typeof t.then==`function`)return f(e,Ma(t),n);if(t.$$typeof===b)return f(e,ea(e,t),n);Pa(e,t)}return null}function p(e,t,n,r){var i=t===null?null:t.key;if(typeof n==`string`&&n!==``||typeof n==`number`||typeof n==`bigint`)return i===null?c(e,t,``+n,r):null;if(typeof n==`object`&&n){switch(n.$$typeof){case m:return n.key===i?l(e,t,n,r):null;case h:return n.key===i?u(e,t,n,r):null;case T:return n=Ea(n),p(e,t,n,r)}if(j(n)||O(n))return i===null?d(e,t,n,r,null):null;if(typeof n.then==`function`)return p(e,t,Ma(n),r);if(n.$$typeof===b)return p(e,t,ea(e,n),r);Pa(e,n)}return null}function _(e,t,n,r,i){if(typeof r==`string`&&r!==``||typeof r==`number`||typeof r==`bigint`)return e=e.get(n)||null,c(t,e,``+r,i);if(typeof r==`object`&&r){switch(r.$$typeof){case m:return e=e.get(r.key===null?n:r.key)||null,l(t,e,r,i);case h:return e=e.get(r.key===null?n:r.key)||null,u(t,e,r,i);case T:return r=Ea(r),_(e,t,n,r,i)}if(j(r)||O(r))return e=e.get(n)||null,d(t,e,r,i,null);if(typeof r.then==`function`)return _(e,t,n,Ma(r),i);if(r.$$typeof===b)return _(e,t,n,ea(t,r),i);Pa(t,r)}return null}function v(i,a,s,c){for(var l=null,u=null,d=a,m=a=0,h=null;d!==null&&m<s.length;m++){d.index>m?(h=d,d=null):h=d.sibling;var g=p(i,d,s[m],c);if(g===null){d===null&&(d=h);break}e&&d&&g.alternate===null&&t(i,d),a=o(g,a,m),u===null?l=g:u.sibling=g,u=g,d=h}if(m===s.length)return n(i,d),Mi&&Ti(i,m),l;if(d===null){for(;m<s.length;m++)d=f(i,s[m],c),d!==null&&(a=o(d,a,m),u===null?l=d:u.sibling=d,u=d);return Mi&&Ti(i,m),l}for(d=r(d);m<s.length;m++)h=_(d,i,m,s[m],c),h!==null&&(e&&h.alternate!==null&&d.delete(h.key===null?m:h.key),a=o(h,a,m),u===null?l=h:u.sibling=h,u=h);return e&&d.forEach(function(e){return t(i,e)}),Mi&&Ti(i,m),l}function y(a,s,c,l){if(c==null)throw Error(i(151));for(var u=null,d=null,m=s,h=s=0,g=null,v=c.next();m!==null&&!v.done;h++,v=c.next()){m.index>h?(g=m,m=null):g=m.sibling;var y=p(a,m,v.value,l);if(y===null){m===null&&(m=g);break}e&&m&&y.alternate===null&&t(a,m),s=o(y,s,h),d===null?u=y:d.sibling=y,d=y,m=g}if(v.done)return n(a,m),Mi&&Ti(a,h),u;if(m===null){for(;!v.done;h++,v=c.next())v=f(a,v.value,l),v!==null&&(s=o(v,s,h),d===null?u=v:d.sibling=v,d=v);return Mi&&Ti(a,h),u}for(m=r(m);!v.done;h++,v=c.next())v=_(m,a,h,v.value,l),v!==null&&(e&&v.alternate!==null&&m.delete(v.key===null?h:v.key),s=o(v,s,h),d===null?u=v:d.sibling=v,d=v);return e&&m.forEach(function(e){return t(a,e)}),Mi&&Ti(a,h),u}function x(e,r,o,c){if(typeof o==`object`&&o&&o.type===g&&o.key===null&&(o=o.props.children),typeof o==`object`&&o){switch(o.$$typeof){case m:a:{for(var l=o.key;r!==null;){if(r.key===l){if(l=o.type,l===g){if(r.tag===7){n(e,r.sibling),c=a(r,o.props.children),c.return=e,e=c;break a}}else if(r.elementType===l||typeof l==`object`&&l&&l.$$typeof===T&&Ea(l)===r.type){n(e,r.sibling),c=a(r,o.props),Na(c,o),c.return=e,e=c;break a}n(e,r);break}else t(e,r);r=r.sibling}o.type===g?(c=di(o.props.children,e.mode,c,o.key),c.return=e,e=c):(c=ui(o.type,o.key,o.props,null,e.mode,c),Na(c,o),c.return=e,e=c)}return s(e);case h:a:{for(l=o.key;r!==null;){if(r.key===l)if(r.tag===4&&r.stateNode.containerInfo===o.containerInfo&&r.stateNode.implementation===o.implementation){n(e,r.sibling),c=a(r,o.children||[]),c.return=e,e=c;break a}else{n(e,r);break}else t(e,r);r=r.sibling}c=mi(o,e.mode,c),c.return=e,e=c}return s(e);case T:return o=Ea(o),x(e,r,o,c)}if(j(o))return v(e,r,o,c);if(O(o)){if(l=O(o),typeof l!=`function`)throw Error(i(150));return o=l.call(o),y(e,r,o,c)}if(typeof o.then==`function`)return x(e,r,Ma(o),c);if(o.$$typeof===b)return x(e,r,ea(e,o),c);Pa(e,o)}return typeof o==`string`&&o!==``||typeof o==`number`||typeof o==`bigint`?(o=``+o,r!==null&&r.tag===6?(n(e,r.sibling),c=a(r,o),c.return=e,e=c):(n(e,r),c=fi(o,e.mode,c),c.return=e,e=c),s(e)):n(e,r)}return function(e,t,n,r){try{ja=0;var i=x(e,t,n,r);return Aa=null,i}catch(t){if(t===ba||t===Sa)throw t;var a=oi(29,t,null,e.mode);return a.lanes=r,a.return=e,a}}}var Ia=Fa(!0),La=Fa(!1),Ra=!1;function za(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Ba(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function Va(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Ha(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,Rl&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,t=ri(e),ni(e,null,n),t}return $r(e,r,t,n),ri(e)}function Ua(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,n&4194048)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Qe(e,n)}}function Wa(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,a=null;if(n=n.firstBaseUpdate,n!==null){do{var o={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};a===null?i=a=o:a=a.next=o,n=n.next}while(n!==null);a===null?i=a=t:a=a.next=t}else i=a=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:a,shared:r.shared,callbacks:r.callbacks},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var Ga=!1;function Ka(){if(Ga){var e=da;if(e!==null)throw e}}function qa(e,t,n,r){Ga=!1;var i=e.updateQueue;Ra=!1;var a=i.firstBaseUpdate,o=i.lastBaseUpdate,s=i.shared.pending;if(s!==null){i.shared.pending=null;var c=s,l=c.next;c.next=null,o===null?a=l:o.next=l,o=c;var u=e.alternate;u!==null&&(u=u.updateQueue,s=u.lastBaseUpdate,s!==o&&(s===null?u.firstBaseUpdate=l:s.next=l,u.lastBaseUpdate=c))}if(a!==null){var d=i.baseState;o=0,u=l=c=null,s=a;do{var p=s.lane&-536870913,m=p!==s.lane;if(m?(Vl&p)===p:(r&p)===p){p!==0&&p===ua&&(Ga=!0),u!==null&&(u=u.next={lane:0,tag:s.tag,payload:s.payload,callback:null,next:null});a:{var h=e,g=s;p=t;var _=n;switch(g.tag){case 1:if(h=g.payload,typeof h==`function`){d=h.call(_,d,p);break a}d=h;break a;case 3:h.flags=h.flags&-65537|128;case 0:if(h=g.payload,p=typeof h==`function`?h.call(_,d,p):h,p==null)break a;d=f({},d,p);break a;case 2:Ra=!0}}p=s.callback,p!==null&&(e.flags|=64,m&&(e.flags|=8192),m=i.callbacks,m===null?i.callbacks=[p]:m.push(p))}else m={lane:p,tag:s.tag,payload:s.payload,callback:s.callback,next:null},u===null?(l=u=m,c=d):u=u.next=m,o|=p;if(s=s.next,s===null){if(s=i.shared.pending,s===null)break;m=s,s=m.next,m.next=null,i.lastBaseUpdate=m,i.shared.pending=null}}while(1);u===null&&(c=d),i.baseState=c,i.firstBaseUpdate=l,i.lastBaseUpdate=u,a===null&&(i.shared.lanes=0),Yl|=o,e.lanes=o,e.memoizedState=d}}function Ja(e,t){if(typeof e!=`function`)throw Error(i(191,e));e.call(t)}function Ya(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)Ja(n[e],t)}var Xa=ie(null),Za=ie(0);function Qa(e,t){e=ql,oe(Za,e),oe(Xa,t),ql=e|t.baseLanes}function $a(){oe(Za,ql),oe(Xa,Xa.current)}function eo(){ql=Za.current,ae(Xa),ae(Za)}var to=ie(null),no=null;function ro(e){var t=e.alternate;oe(co,co.current&1),oe(to,e),no===null&&(t===null||Xa.current!==null||t.memoizedState!==null)&&(no=e)}function io(e){oe(co,co.current),oe(to,e),no===null&&(no=e)}function ao(e){e.tag===22?(oe(co,co.current),oe(to,e),no===null&&(no=e)):oo(e)}function oo(){oe(co,co.current),oe(to,to.current)}function so(e){ae(to),no===e&&(no=null),ae(co)}var co=ie(0);function lo(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||ff(n)||pf(n)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder===`forwards`||t.memoizedProps.revealOrder===`backwards`||t.memoizedProps.revealOrder===`unstable_legacy-backwards`||t.memoizedProps.revealOrder===`together`)){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var uo=0,fo=null,po=null,mo=null,ho=!1,H=!1,go=!1,_o=0,vo=0,yo=null,bo=0;function xo(){throw Error(i(321))}function So(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!br(e[n],t[n]))return!1;return!0}function Co(e,t,n,r,i,a){return uo=a,fo=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,M.H=e===null||e.memoizedState===null?Ls:Rs,go=!1,a=n(r,i),go=!1,H&&(a=U(t,n,r,i)),wo(e),a}function wo(e){M.H=Is;var t=po!==null&&po.next!==null;if(uo=0,mo=po=fo=null,ho=!1,vo=0,yo=null,t)throw Error(i(300));e===null||tc||(e=e.dependencies,e!==null&&Zi(e)&&(tc=!0))}function U(e,t,n,r){fo=e;var a=0;do{if(H&&(yo=null),vo=0,H=!1,25<=a)throw Error(i(301));if(a+=1,mo=po=null,e.updateQueue!=null){var o=e.updateQueue;o.lastEffect=null,o.events=null,o.stores=null,o.memoCache!=null&&(o.memoCache.index=0)}M.H=zs,o=t(n,r)}while(H);return o}function To(){var e=M.H,t=e.useState()[0];return t=typeof t.then==`function`?Mo(t):t,e=e.useState()[0],(po===null?null:po.memoizedState)!==e&&(fo.flags|=1024),t}function Eo(){var e=_o!==0;return _o=0,e}function Do(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function Oo(e){if(ho){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}ho=!1}uo=0,mo=po=fo=null,H=!1,vo=_o=0,yo=null}function ko(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return mo===null?fo.memoizedState=mo=e:mo=mo.next=e,mo}function Ao(){if(po===null){var e=fo.alternate;e=e===null?null:e.memoizedState}else e=po.next;var t=mo===null?fo.memoizedState:mo.next;if(t!==null)mo=t,po=e;else{if(e===null)throw fo.alternate===null?Error(i(467)):Error(i(310));po=e,e={memoizedState:po.memoizedState,baseState:po.baseState,baseQueue:po.baseQueue,queue:po.queue,next:null},mo===null?fo.memoizedState=mo=e:mo=mo.next=e}return mo}function jo(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Mo(e){var t=vo;return vo+=1,yo===null&&(yo=[]),e=Ta(yo,e,t),t=fo,(mo===null?t.memoizedState:mo.next)===null&&(t=t.alternate,M.H=t===null||t.memoizedState===null?Ls:Rs),e}function No(e){if(typeof e==`object`&&e){if(typeof e.then==`function`)return Mo(e);if(e.$$typeof===b)return $i(e)}throw Error(i(438,String(e)))}function Po(e){var t=null,n=fo.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var r=fo.alternate;r!==null&&(r=r.updateQueue,r!==null&&(r=r.memoCache,r!=null&&(t={data:r.data.map(function(e){return e.slice()}),index:0})))}if(t??={data:[],index:0},n===null&&(n=jo(),fo.updateQueue=n),n.memoCache=t,n=t.data[t.index],n===void 0)for(n=t.data[t.index]=Array(e),r=0;r<e;r++)n[r]=ee;return t.index++,n}function Fo(e,t){return typeof t==`function`?t(e):t}function Io(e){return Lo(Ao(),po,e)}function Lo(e,t,n){var r=e.queue;if(r===null)throw Error(i(311));r.lastRenderedReducer=n;var a=e.baseQueue,o=r.pending;if(o!==null){if(a!==null){var s=a.next;a.next=o.next,o.next=s}t.baseQueue=a=o,r.pending=null}if(o=e.baseState,a===null)e.memoizedState=o;else{t=a.next;var c=s=null,l=null,u=t,d=!1;do{var f=u.lane&-536870913;if(f===u.lane?(uo&f)===f:(Vl&f)===f){var p=u.revertLane;if(p===0)l!==null&&(l=l.next={lane:0,revertLane:0,gesture:null,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),f===ua&&(d=!0);else if((uo&p)===p){u=u.next,p===ua&&(d=!0);continue}else f={lane:0,revertLane:u.revertLane,gesture:null,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},l===null?(c=l=f,s=o):l=l.next=f,fo.lanes|=p,Yl|=p;f=u.action,go&&n(o,f),o=u.hasEagerState?u.eagerState:n(o,f)}else p={lane:f,revertLane:u.revertLane,gesture:u.gesture,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},l===null?(c=l=p,s=o):l=l.next=p,fo.lanes|=f,Yl|=f;u=u.next}while(u!==null&&u!==t);if(l===null?s=o:l.next=c,!br(o,e.memoizedState)&&(tc=!0,d&&(n=da,n!==null)))throw n;e.memoizedState=o,e.baseState=s,e.baseQueue=l,r.lastRenderedState=o}return a===null&&(r.lanes=0),[e.memoizedState,r.dispatch]}function Ro(e){var t=Ao(),n=t.queue;if(n===null)throw Error(i(311));n.lastRenderedReducer=e;var r=n.dispatch,a=n.pending,o=t.memoizedState;if(a!==null){n.pending=null;var s=a=a.next;do o=e(o,s.action),s=s.next;while(s!==a);br(o,t.memoizedState)||(tc=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function zo(e,t,n){var r=fo,a=Ao(),o=Mi;if(o){if(n===void 0)throw Error(i(407));n=n()}else n=t();var s=!br((po||a).memoizedState,n);if(s&&(a.memoizedState=n,tc=!0),a=a.queue,ls(Vo.bind(null,r,a,e),[e]),a.getSnapshot!==t||s||mo!==null&&mo.memoizedState.tag&1){if(r.flags|=2048,is(9,{destroy:void 0},W.bind(null,r,a,n,t),null),zl===null)throw Error(i(349));o||uo&127||Bo(r,t,n)}return n}function Bo(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=fo.updateQueue,t===null?(t=jo(),fo.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function W(e,t,n,r){t.value=n,t.getSnapshot=r,Ho(t)&&Uo(e)}function Vo(e,t,n){return n(function(){Ho(t)&&Uo(e)})}function Ho(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!br(e,n)}catch{return!0}}function Uo(e){var t=ti(e,2);t!==null&&yu(t,e,2)}function Wo(e){var t=ko();if(typeof e==`function`){var n=e;if(e=n(),go){Ie(!0);try{n()}finally{Ie(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Fo,lastRenderedState:e},t}function Go(e,t,n,r){return e.baseState=n,Lo(e,po,typeof r==`function`?r:Fo)}function Ko(e,t,n,r,a){if(Ns(e))throw Error(i(485));if(e=t.action,e!==null){var o={payload:a,action:e,next:null,isTransition:!0,status:`pending`,value:null,reason:null,listeners:[],then:function(e){o.listeners.push(e)}};M.T===null?o.isTransition=!1:n(!0),r(o),n=t.pending,n===null?(o.next=t.pending=o,qo(t,o)):(o.next=n.next,t.pending=n.next=o)}}function qo(e,t){var n=t.action,r=t.payload,i=e.state;if(t.isTransition){var a=M.T,o={};M.T=o;try{var s=n(i,r),c=M.S;c!==null&&c(o,s),Jo(e,t,s)}catch(n){Xo(e,t,n)}finally{a!==null&&o.types!==null&&(a.types=o.types),M.T=a}}else try{a=n(i,r),Jo(e,t,a)}catch(n){Xo(e,t,n)}}function Jo(e,t,n){typeof n==`object`&&n&&typeof n.then==`function`?n.then(function(n){Yo(e,t,n)},function(n){return Xo(e,t,n)}):Yo(e,t,n)}function Yo(e,t,n){t.status=`fulfilled`,t.value=n,Zo(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,qo(e,n)))}function Xo(e,t,n){var r=e.pending;if(e.pending=null,r!==null){r=r.next;do t.status=`rejected`,t.reason=n,Zo(t),t=t.next;while(t!==r)}e.action=null}function Zo(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Qo(e,t){return t}function $o(e,t){if(Mi){var n=zl.formState;if(n!==null){a:{var r=fo;if(Mi){if(ji){b:{for(var i=ji,a=Pi;i.nodeType!==8;){if(!a){i=null;break b}if(i=hf(i.nextSibling),i===null){i=null;break b}}a=i.data,i=a===`F!`||a===`F`?i:null}if(i){ji=hf(i.nextSibling),r=i.data===`F!`;break a}}Ii(r)}r=!1}r&&(t=n[0])}}return n=ko(),n.memoizedState=n.baseState=t,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Qo,lastRenderedState:t},n.queue=r,n=As.bind(null,fo,r),r.dispatch=n,r=Wo(!1),a=Ms.bind(null,fo,!1,r.queue),r=ko(),i={state:t,dispatch:null,action:e,pending:null},r.queue=i,n=Ko.bind(null,fo,i,a,n),i.dispatch=n,r.memoizedState=e,[t,n,!1]}function es(e){return ts(Ao(),po,e)}function ts(e,t,n){if(t=Lo(e,t,Qo)[0],e=Io(Fo)[0],typeof t==`object`&&t&&typeof t.then==`function`)try{var r=Mo(t)}catch(e){throw e===ba?Sa:e}else r=t;t=Ao();var i=t.queue,a=i.dispatch;return n!==t.memoizedState&&(fo.flags|=2048,is(9,{destroy:void 0},ns.bind(null,i,n),null)),[r,a,e]}function ns(e,t){e.action=t}function rs(e){var t=Ao(),n=po;if(n!==null)return ts(t,n,e);Ao(),t=t.memoizedState,n=Ao();var r=n.queue.dispatch;return n.memoizedState=e,[t,r,!1]}function is(e,t,n,r){return e={tag:e,create:n,deps:r,inst:t,next:null},t=fo.updateQueue,t===null&&(t=jo(),fo.updateQueue=t),n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function as(){return Ao().memoizedState}function os(e,t,n,r){var i=ko();fo.flags|=e,i.memoizedState=is(1|t,{destroy:void 0},n,r===void 0?null:r)}function ss(e,t,n,r){var i=Ao();r=r===void 0?null:r;var a=i.memoizedState.inst;po!==null&&r!==null&&So(r,po.memoizedState.deps)?i.memoizedState=is(t,a,n,r):(fo.flags|=e,i.memoizedState=is(1|t,a,n,r))}function cs(e,t){os(8390656,8,e,t)}function ls(e,t){ss(2048,8,e,t)}function us(e){fo.flags|=4;var t=fo.updateQueue;if(t===null)t=jo(),fo.updateQueue=t,t.events=[e];else{var n=t.events;n===null?t.events=[e]:n.push(e)}}function ds(e){var t=Ao().memoizedState;return us({ref:t,nextImpl:e}),function(){if(Rl&2)throw Error(i(440));return t.impl.apply(void 0,arguments)}}function fs(e,t){return ss(4,2,e,t)}function ps(e,t){return ss(4,4,e,t)}function ms(e,t){if(typeof t==`function`){e=e();var n=t(e);return function(){typeof n==`function`?n():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function hs(e,t,n){n=n==null?null:n.concat([e]),ss(4,4,ms.bind(null,t,e),n)}function gs(){}function _s(e,t){var n=Ao();t=t===void 0?null:t;var r=n.memoizedState;return t!==null&&So(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function vs(e,t){var n=Ao();t=t===void 0?null:t;var r=n.memoizedState;if(t!==null&&So(t,r[1]))return r[0];if(r=e(),go){Ie(!0);try{e()}finally{Ie(!1)}}return n.memoizedState=[r,t],r}function ys(e,t,n){return n===void 0||uo&1073741824&&!(Vl&261930)?e.memoizedState=t:(e.memoizedState=n,e=vu(),fo.lanes|=e,Yl|=e,n)}function bs(e,t,n,r){return br(n,t)?n:Xa.current===null?!(uo&42)||uo&1073741824&&!(Vl&261930)?(tc=!0,e.memoizedState=n):(e=vu(),fo.lanes|=e,Yl|=e,t):(e=ys(e,n,r),br(e,t)||(tc=!0),e)}function xs(e,t,n,r,i){var a=N.p;N.p=a!==0&&8>a?a:8;var o=M.T,s={};M.T=s,Ms(e,!1,t,n);try{var c=i(),l=M.S;l!==null&&l(s,c),typeof c==`object`&&c&&typeof c.then==`function`?js(e,t,ma(c,r),_u(e)):js(e,t,r,_u(e))}catch(n){js(e,t,{then:function(){},status:`rejected`,reason:n},_u())}finally{N.p=a,o!==null&&s.types!==null&&(o.types=s.types),M.T=o}}function Ss(){}function Cs(e,t,n,r){if(e.tag!==5)throw Error(i(476));var a=ws(e).queue;xs(e,a,t,te,n===null?Ss:function(){return G(e),n(r)})}function ws(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:te,baseState:te,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Fo,lastRenderedState:te},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Fo,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function G(e){var t=ws(e);t.next===null&&(t=e.alternate.memoizedState),js(e,t.next.queue,{},_u())}function Ts(){return $i(ip)}function Es(){return Ao().memoizedState}function Ds(){return Ao().memoizedState}function Os(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=_u();e=Va(n);var r=Ha(t,e,n);r!==null&&(yu(r,t,n),Ua(r,t,n)),t={cache:oa()},e.payload=t;return}t=t.return}}function ks(e,t,n){var r=_u();n={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},Ns(e)?Ps(t,n):(n=ei(e,t,n,r),n!==null&&(yu(n,e,r),Fs(n,t,r)))}function As(e,t,n){js(e,t,n,_u())}function js(e,t,n,r){var i={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(Ns(e))Ps(t,i);else{var a=e.alternate;if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null))try{var o=t.lastRenderedState,s=a(o,n);if(i.hasEagerState=!0,i.eagerState=s,br(s,o))return $r(e,t,i,0),zl===null&&Qr(),!1}catch{}if(n=ei(e,t,i,r),n!==null)return yu(n,e,r),Fs(n,t,r),!0}return!1}function Ms(e,t,n,r){if(r={lane:2,revertLane:gd(),gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null},Ns(e)){if(t)throw Error(i(479))}else t=ei(e,n,r,2),t!==null&&yu(t,e,2)}function Ns(e){var t=e.alternate;return e===fo||t!==null&&t===fo}function Ps(e,t){H=ho=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Fs(e,t,n){if(n&4194048){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Qe(e,n)}}var Is={readContext:$i,use:No,useCallback:xo,useContext:xo,useEffect:xo,useImperativeHandle:xo,useLayoutEffect:xo,useInsertionEffect:xo,useMemo:xo,useReducer:xo,useRef:xo,useState:xo,useDebugValue:xo,useDeferredValue:xo,useTransition:xo,useSyncExternalStore:xo,useId:xo,useHostTransitionStatus:xo,useFormState:xo,useActionState:xo,useOptimistic:xo,useMemoCache:xo,useCacheRefresh:xo};Is.useEffectEvent=xo;var Ls={readContext:$i,use:No,useCallback:function(e,t){return ko().memoizedState=[e,t===void 0?null:t],e},useContext:$i,useEffect:cs,useImperativeHandle:function(e,t,n){n=n==null?null:n.concat([e]),os(4194308,4,ms.bind(null,t,e),n)},useLayoutEffect:function(e,t){return os(4194308,4,e,t)},useInsertionEffect:function(e,t){os(4,2,e,t)},useMemo:function(e,t){var n=ko();t=t===void 0?null:t;var r=e();if(go){Ie(!0);try{e()}finally{Ie(!1)}}return n.memoizedState=[r,t],r},useReducer:function(e,t,n){var r=ko();if(n!==void 0){var i=n(t);if(go){Ie(!0);try{n(t)}finally{Ie(!1)}}}else i=t;return r.memoizedState=r.baseState=i,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:i},r.queue=e,e=e.dispatch=ks.bind(null,fo,e),[r.memoizedState,e]},useRef:function(e){var t=ko();return e={current:e},t.memoizedState=e},useState:function(e){e=Wo(e);var t=e.queue,n=As.bind(null,fo,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:gs,useDeferredValue:function(e,t){return ys(ko(),e,t)},useTransition:function(){var e=Wo(!1);return e=xs.bind(null,fo,e.queue,!0,!1),ko().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var r=fo,a=ko();if(Mi){if(n===void 0)throw Error(i(407));n=n()}else{if(n=t(),zl===null)throw Error(i(349));Vl&127||Bo(r,t,n)}a.memoizedState=n;var o={value:n,getSnapshot:t};return a.queue=o,cs(Vo.bind(null,r,o,e),[e]),r.flags|=2048,is(9,{destroy:void 0},W.bind(null,r,o,n,t),null),n},useId:function(){var e=ko(),t=zl.identifierPrefix;if(Mi){var n=V,r=wi;n=(r&~(1<<32-Le(r)-1)).toString(32)+n,t=`_`+t+`R_`+n,n=_o++,0<n&&(t+=`H`+n.toString(32)),t+=`_`}else n=bo++,t=`_`+t+`r_`+n.toString(32)+`_`;return e.memoizedState=t},useHostTransitionStatus:Ts,useFormState:$o,useActionState:$o,useOptimistic:function(e){var t=ko();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=Ms.bind(null,fo,!0,n),n.dispatch=t,[e,t]},useMemoCache:Po,useCacheRefresh:function(){return ko().memoizedState=Os.bind(null,fo)},useEffectEvent:function(e){var t=ko(),n={impl:e};return t.memoizedState=n,function(){if(Rl&2)throw Error(i(440));return n.impl.apply(void 0,arguments)}}},Rs={readContext:$i,use:No,useCallback:_s,useContext:$i,useEffect:ls,useImperativeHandle:hs,useInsertionEffect:fs,useLayoutEffect:ps,useMemo:vs,useReducer:Io,useRef:as,useState:function(){return Io(Fo)},useDebugValue:gs,useDeferredValue:function(e,t){return bs(Ao(),po.memoizedState,e,t)},useTransition:function(){var e=Io(Fo)[0],t=Ao().memoizedState;return[typeof e==`boolean`?e:Mo(e),t]},useSyncExternalStore:zo,useId:Es,useHostTransitionStatus:Ts,useFormState:es,useActionState:es,useOptimistic:function(e,t){return Go(Ao(),po,e,t)},useMemoCache:Po,useCacheRefresh:Ds};Rs.useEffectEvent=ds;var zs={readContext:$i,use:No,useCallback:_s,useContext:$i,useEffect:ls,useImperativeHandle:hs,useInsertionEffect:fs,useLayoutEffect:ps,useMemo:vs,useReducer:Ro,useRef:as,useState:function(){return Ro(Fo)},useDebugValue:gs,useDeferredValue:function(e,t){var n=Ao();return po===null?ys(n,e,t):bs(n,po.memoizedState,e,t)},useTransition:function(){var e=Ro(Fo)[0],t=Ao().memoizedState;return[typeof e==`boolean`?e:Mo(e),t]},useSyncExternalStore:zo,useId:Es,useHostTransitionStatus:Ts,useFormState:rs,useActionState:rs,useOptimistic:function(e,t){var n=Ao();return po===null?(n.baseState=e,[e,n.queue.dispatch]):Go(n,po,e,t)},useMemoCache:Po,useCacheRefresh:Ds};zs.useEffectEvent=ds;function Bs(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:f({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Vs={enqueueSetState:function(e,t,n){e=e._reactInternals;var r=_u(),i=Va(r);i.payload=t,n!=null&&(i.callback=n),t=Ha(e,i,r),t!==null&&(yu(t,e,r),Ua(t,e,r))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=_u(),i=Va(r);i.tag=1,i.payload=t,n!=null&&(i.callback=n),t=Ha(e,i,r),t!==null&&(yu(t,e,r),Ua(t,e,r))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=_u(),r=Va(n);r.tag=2,t!=null&&(r.callback=t),t=Ha(e,r,n),t!==null&&(yu(t,e,n),Ua(t,e,n))}};function Hs(e,t,n,r,i,a,o){return e=e.stateNode,typeof e.shouldComponentUpdate==`function`?e.shouldComponentUpdate(r,a,o):t.prototype&&t.prototype.isPureReactComponent?!xr(n,r)||!xr(i,a):!0}function Us(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps==`function`&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps==`function`&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&Vs.enqueueReplaceState(t,t.state,null)}function Ws(e,t){var n=t;if(`ref`in t)for(var r in n={},t)r!==`ref`&&(n[r]=t[r]);if(e=e.defaultProps)for(var i in n===t&&(n=f({},n)),e)n[i]===void 0&&(n[i]=e[i]);return n}function Gs(e){Jr(e)}function Ks(e){console.error(e)}function qs(e){Jr(e)}function Js(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(e){setTimeout(function(){throw e})}}function Ys(e,t,n){try{var r=e.onCaughtError;r(n.value,{componentStack:n.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(e){setTimeout(function(){throw e})}}function Xs(e,t,n){return n=Va(n),n.tag=3,n.payload={element:null},n.callback=function(){Js(e,t)},n}function Zs(e){return e=Va(e),e.tag=3,e}function Qs(e,t,n,r){var i=n.type.getDerivedStateFromError;if(typeof i==`function`){var a=r.value;e.payload=function(){return i(a)},e.callback=function(){Ys(t,n,r)}}var o=n.stateNode;o!==null&&typeof o.componentDidCatch==`function`&&(e.callback=function(){Ys(t,n,r),typeof i!=`function`&&(su===null?su=new Set([this]):su.add(this));var e=r.stack;this.componentDidCatch(r.value,{componentStack:e===null?``:e})})}function $s(e,t,n,r,a){if(n.flags|=32768,typeof r==`object`&&r&&typeof r.then==`function`){if(t=n.alternate,t!==null&&Xi(t,n,a,!0),n=to.current,n!==null){switch(n.tag){case 31:case 13:return no===null?ju():n.alternate===null&&Jl===0&&(Jl=3),n.flags&=-257,n.flags|=65536,n.lanes=a,r===Ca?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([r]):t.add(r),Xu(e,r,a)),!1;case 22:return n.flags|=65536,r===Ca?n.flags|=16384:(t=n.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([r])},n.updateQueue=t):(n=t.retryQueue,n===null?t.retryQueue=new Set([r]):n.add(r)),Xu(e,r,a)),!1}throw Error(i(435,n.tag))}return Xu(e,r,a),ju(),!1}if(Mi)return t=to.current,t===null?(r!==Fi&&(t=Error(i(423),{cause:r}),Hi(gi(t,n))),e=e.current.alternate,e.flags|=65536,a&=-a,e.lanes|=a,r=gi(r,n),a=Xs(e.stateNode,r,a),Wa(e,a),Jl!==4&&(Jl=2)):(!(t.flags&65536)&&(t.flags|=256),t.flags|=65536,t.lanes=a,r!==Fi&&(e=Error(i(422),{cause:r}),Hi(gi(e,n)))),!1;var o=Error(i(520),{cause:r});if(o=gi(o,n),eu===null?eu=[o]:eu.push(o),Jl!==4&&(Jl=2),t===null)return!0;r=gi(r,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=a&-a,n.lanes|=e,e=Xs(n.stateNode,r,e),Wa(n,e),!1;case 1:if(t=n.type,o=n.stateNode,!(n.flags&128)&&(typeof t.getDerivedStateFromError==`function`||o!==null&&typeof o.componentDidCatch==`function`&&(su===null||!su.has(o))))return n.flags|=65536,a&=-a,n.lanes|=a,a=Zs(a),Qs(a,e,n,r),Wa(n,a),!1}n=n.return}while(n!==null);return!1}var ec=Error(i(461)),tc=!1;function nc(e,t,n,r){t.child=e===null?La(t,null,n,r):Ia(t,e.child,n,r)}function rc(e,t,n,r,i){n=n.render;var a=t.ref;if(`ref`in r){var o={};for(var s in r)s!==`ref`&&(o[s]=r[s])}else o=r;return Qi(t),r=Co(e,t,n,o,a,i),s=Eo(),e!==null&&!tc?(Do(e,t,i),Dc(e,t,i)):(Mi&&s&&Di(t),t.flags|=1,nc(e,t,r,i),t.child)}function ic(e,t,n,r,i){if(e===null){var a=n.type;return typeof a==`function`&&!si(a)&&a.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=a,ac(e,t,a,r,i)):(e=ui(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(a=e.child,!Oc(e,i)){var o=a.memoizedProps;if(n=n.compare,n=n===null?xr:n,n(o,r)&&e.ref===t.ref)return Dc(e,t,i)}return t.flags|=1,e=ci(a,r),e.ref=t.ref,e.return=t,t.child=e}function ac(e,t,n,r,i){if(e!==null){var a=e.memoizedProps;if(xr(a,r)&&e.ref===t.ref)if(tc=!1,t.pendingProps=r=a,Oc(e,i))e.flags&131072&&(tc=!0);else return t.lanes=e.lanes,Dc(e,t,i)}return pc(e,t,n,r,i)}function oc(e,t,n,r){var i=r.children,a=e===null?null:e.memoizedState;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),r.mode===`hidden`){if(t.flags&128){if(a=a===null?n:a.baseLanes|n,e!==null){for(r=t.child=e.child,i=0;r!==null;)i=i|r.lanes|r.childLanes,r=r.sibling;r=i&~a}else r=0,t.child=null;return cc(e,t,a,n,r)}if(n&536870912)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&va(t,a===null?null:a.cachePool),a===null?$a():Qa(t,a),ao(t);else return r=t.lanes=536870912,cc(e,t,a===null?n:a.baseLanes|n,n,r)}else a===null?(e!==null&&va(t,null),$a(),oo(t)):(va(t,a.cachePool),Qa(t,a),oo(t),t.memoizedState=null);return nc(e,t,i,n),t.child}function sc(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function cc(e,t,n,r,i){var a=_a();return a=a===null?null:{parent:aa._currentValue,pool:a},t.memoizedState={baseLanes:n,cachePool:a},e!==null&&va(t,null),$a(),ao(t),e!==null&&Xi(e,t,r,!0),t.childLanes=i,null}function lc(e,t){return t=Sc({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function uc(e,t,n){return Ia(t,e.child,null,n),e=lc(t,t.pendingProps),e.flags|=2,so(t),t.memoizedState=null,e}function dc(e,t,n){var r=t.pendingProps,a=(t.flags&128)!=0;if(t.flags&=-129,e===null){if(Mi){if(r.mode===`hidden`)return e=lc(t,r),t.lanes=536870912,sc(null,e);if(io(t),(e=ji)?(e=df(e,Pi),e=e!==null&&e.data===`&`?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Ci===null?null:{id:wi,overflow:V},retryLane:536870912,hydrationErrors:null},n=pi(e),n.return=t,t.child=n,Ai=t,ji=null)):e=null,e===null)throw Ii(t);return t.lanes=536870912,null}return lc(t,r)}var o=e.memoizedState;if(o!==null){var s=o.dehydrated;if(io(t),a)if(t.flags&256)t.flags&=-257,t=uc(e,t,n);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(i(558));else if(tc||Xi(e,t,n,!1),a=(n&e.childLanes)!==0,tc||a){if(r=zl,r!==null&&(s=$e(r,n),s!==0&&s!==o.retryLane))throw o.retryLane=s,ti(e,s),yu(r,e,s),ec;ju(),t=uc(e,t,n)}else e=o.treeContext,ji=hf(s.nextSibling),Ai=t,Mi=!0,Ni=null,Pi=!1,e!==null&&ki(t,e),t=lc(t,r),t.flags|=4096;return t}return e=ci(e.child,{mode:r.mode,children:r.children}),e.ref=t.ref,t.child=e,e.return=t,e}function fc(e,t){var n=t.ref;if(n===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof n!=`function`&&typeof n!=`object`)throw Error(i(284));(e===null||e.ref!==n)&&(t.flags|=4194816)}}function pc(e,t,n,r,i){return Qi(t),n=Co(e,t,n,r,void 0,i),r=Eo(),e!==null&&!tc?(Do(e,t,i),Dc(e,t,i)):(Mi&&r&&Di(t),t.flags|=1,nc(e,t,n,i),t.child)}function mc(e,t,n,r,i,a){return Qi(t),t.updateQueue=null,n=U(t,r,n,i),wo(e),r=Eo(),e!==null&&!tc?(Do(e,t,a),Dc(e,t,a)):(Mi&&r&&Di(t),t.flags|=1,nc(e,t,n,a),t.child)}function hc(e,t,n,r,i){if(Qi(t),t.stateNode===null){var a=ii,o=n.contextType;typeof o==`object`&&o&&(a=$i(o)),a=new n(r,a),t.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,a.updater=Vs,t.stateNode=a,a._reactInternals=t,a=t.stateNode,a.props=r,a.state=t.memoizedState,a.refs={},za(t),o=n.contextType,a.context=typeof o==`object`&&o?$i(o):ii,a.state=t.memoizedState,o=n.getDerivedStateFromProps,typeof o==`function`&&(Bs(t,n,o,r),a.state=t.memoizedState),typeof n.getDerivedStateFromProps==`function`||typeof a.getSnapshotBeforeUpdate==`function`||typeof a.UNSAFE_componentWillMount!=`function`&&typeof a.componentWillMount!=`function`||(o=a.state,typeof a.componentWillMount==`function`&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount==`function`&&a.UNSAFE_componentWillMount(),o!==a.state&&Vs.enqueueReplaceState(a,a.state,null),qa(t,r,a,i),Ka(),a.state=t.memoizedState),typeof a.componentDidMount==`function`&&(t.flags|=4194308),r=!0}else if(e===null){a=t.stateNode;var s=t.memoizedProps,c=Ws(n,s);a.props=c;var l=a.context,u=n.contextType;o=ii,typeof u==`object`&&u&&(o=$i(u));var d=n.getDerivedStateFromProps;u=typeof d==`function`||typeof a.getSnapshotBeforeUpdate==`function`,s=t.pendingProps!==s,u||typeof a.UNSAFE_componentWillReceiveProps!=`function`&&typeof a.componentWillReceiveProps!=`function`||(s||l!==o)&&Us(t,a,r,o),Ra=!1;var f=t.memoizedState;a.state=f,qa(t,r,a,i),Ka(),l=t.memoizedState,s||f!==l||Ra?(typeof d==`function`&&(Bs(t,n,d,r),l=t.memoizedState),(c=Ra||Hs(t,n,c,r,f,l,o))?(u||typeof a.UNSAFE_componentWillMount!=`function`&&typeof a.componentWillMount!=`function`||(typeof a.componentWillMount==`function`&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount==`function`&&a.UNSAFE_componentWillMount()),typeof a.componentDidMount==`function`&&(t.flags|=4194308)):(typeof a.componentDidMount==`function`&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),a.props=r,a.state=l,a.context=o,r=c):(typeof a.componentDidMount==`function`&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,Ba(e,t),o=t.memoizedProps,u=Ws(n,o),a.props=u,d=t.pendingProps,f=a.context,l=n.contextType,c=ii,typeof l==`object`&&l&&(c=$i(l)),s=n.getDerivedStateFromProps,(l=typeof s==`function`||typeof a.getSnapshotBeforeUpdate==`function`)||typeof a.UNSAFE_componentWillReceiveProps!=`function`&&typeof a.componentWillReceiveProps!=`function`||(o!==d||f!==c)&&Us(t,a,r,c),Ra=!1,f=t.memoizedState,a.state=f,qa(t,r,a,i),Ka();var p=t.memoizedState;o!==d||f!==p||Ra||e!==null&&e.dependencies!==null&&Zi(e.dependencies)?(typeof s==`function`&&(Bs(t,n,s,r),p=t.memoizedState),(u=Ra||Hs(t,n,u,r,f,p,c)||e!==null&&e.dependencies!==null&&Zi(e.dependencies))?(l||typeof a.UNSAFE_componentWillUpdate!=`function`&&typeof a.componentWillUpdate!=`function`||(typeof a.componentWillUpdate==`function`&&a.componentWillUpdate(r,p,c),typeof a.UNSAFE_componentWillUpdate==`function`&&a.UNSAFE_componentWillUpdate(r,p,c)),typeof a.componentDidUpdate==`function`&&(t.flags|=4),typeof a.getSnapshotBeforeUpdate==`function`&&(t.flags|=1024)):(typeof a.componentDidUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=p),a.props=r,a.state=p,a.context=c,r=u):(typeof a.componentDidUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return a=r,fc(e,t),r=(t.flags&128)!=0,a||r?(a=t.stateNode,n=r&&typeof n.getDerivedStateFromError!=`function`?null:a.render(),t.flags|=1,e!==null&&r?(t.child=Ia(t,e.child,null,i),t.child=Ia(t,null,n,i)):nc(e,t,n,i),t.memoizedState=a.state,e=t.child):e=Dc(e,t,i),e}function gc(e,t,n,r){return Bi(),t.flags|=256,nc(e,t,n,r),t.child}var _c={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function vc(e){return{baseLanes:e,cachePool:ya()}}function yc(e,t,n){return e=e===null?0:e.childLanes&~n,t&&(e|=Ql),e}function bc(e,t,n){var r=t.pendingProps,a=!1,o=(t.flags&128)!=0,s;if((s=o)||(s=e!==null&&e.memoizedState===null?!1:(co.current&2)!=0),s&&(a=!0,t.flags&=-129),s=(t.flags&32)!=0,t.flags&=-33,e===null){if(Mi){if(a?ro(t):oo(t),(e=ji)?(e=df(e,Pi),e=e!==null&&e.data!==`&`?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Ci===null?null:{id:wi,overflow:V},retryLane:536870912,hydrationErrors:null},n=pi(e),n.return=t,t.child=n,Ai=t,ji=null)):e=null,e===null)throw Ii(t);return pf(e)?t.lanes=32:t.lanes=536870912,null}var c=r.children;return r=r.fallback,a?(oo(t),a=t.mode,c=Sc({mode:`hidden`,children:c},a),r=di(r,a,n,null),c.return=t,r.return=t,c.sibling=r,t.child=c,r=t.child,r.memoizedState=vc(n),r.childLanes=yc(e,s,n),t.memoizedState=_c,sc(null,r)):(ro(t),xc(t,c))}var l=e.memoizedState;if(l!==null&&(c=l.dehydrated,c!==null)){if(o)t.flags&256?(ro(t),t.flags&=-257,t=Cc(e,t,n)):t.memoizedState===null?(oo(t),c=r.fallback,a=t.mode,r=Sc({mode:`visible`,children:r.children},a),c=di(c,a,n,null),c.flags|=2,r.return=t,c.return=t,r.sibling=c,t.child=r,Ia(t,e.child,null,n),r=t.child,r.memoizedState=vc(n),r.childLanes=yc(e,s,n),t.memoizedState=_c,t=sc(null,r)):(oo(t),t.child=e.child,t.flags|=128,t=null);else if(ro(t),pf(c)){if(s=c.nextSibling&&c.nextSibling.dataset,s)var u=s.dgst;s=u,r=Error(i(419)),r.stack=``,r.digest=s,Hi({value:r,source:null,stack:null}),t=Cc(e,t,n)}else if(tc||Xi(e,t,n,!1),s=(n&e.childLanes)!==0,tc||s){if(s=zl,s!==null&&(r=$e(s,n),r!==0&&r!==l.retryLane))throw l.retryLane=r,ti(e,r),yu(s,e,r),ec;ff(c)||ju(),t=Cc(e,t,n)}else ff(c)?(t.flags|=192,t.child=e.child,t=null):(e=l.treeContext,ji=hf(c.nextSibling),Ai=t,Mi=!0,Ni=null,Pi=!1,e!==null&&ki(t,e),t=xc(t,r.children),t.flags|=4096);return t}return a?(oo(t),c=r.fallback,a=t.mode,l=e.child,u=l.sibling,r=ci(l,{mode:`hidden`,children:r.children}),r.subtreeFlags=l.subtreeFlags&65011712,u===null?(c=di(c,a,n,null),c.flags|=2):c=ci(u,c),c.return=t,r.return=t,r.sibling=c,t.child=r,sc(null,r),r=t.child,c=e.child.memoizedState,c===null?c=vc(n):(a=c.cachePool,a===null?a=ya():(l=aa._currentValue,a=a.parent===l?a:{parent:l,pool:l}),c={baseLanes:c.baseLanes|n,cachePool:a}),r.memoizedState=c,r.childLanes=yc(e,s,n),t.memoizedState=_c,sc(e.child,r)):(ro(t),n=e.child,e=n.sibling,n=ci(n,{mode:`visible`,children:r.children}),n.return=t,n.sibling=null,e!==null&&(s=t.deletions,s===null?(t.deletions=[e],t.flags|=16):s.push(e)),t.child=n,t.memoizedState=null,n)}function xc(e,t){return t=Sc({mode:`visible`,children:t},e.mode),t.return=e,e.child=t}function Sc(e,t){return e=oi(22,e,null,t),e.lanes=0,e}function Cc(e,t,n){return Ia(t,e.child,null,n),e=xc(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function wc(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Ji(e.return,t,n)}function Tc(e,t,n,r,i,a){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i,treeForkCount:a}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=i,o.treeForkCount=a)}function Ec(e,t,n){var r=t.pendingProps,i=r.revealOrder,a=r.tail;r=r.children;var o=co.current,s=(o&2)!=0;if(s?(o=o&1|2,t.flags|=128):o&=1,oe(co,o),nc(e,t,r,n),r=Mi?bi:0,!s&&e!==null&&e.flags&128)a:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&wc(e,n,t);else if(e.tag===19)wc(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break a;for(;e.sibling===null;){if(e.return===null||e.return===t)break a;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(i){case`forwards`:for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&lo(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),Tc(t,!1,i,n,a,r);break;case`backwards`:case`unstable_legacy-backwards`:for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&lo(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}Tc(t,!0,n,null,a,r);break;case`together`:Tc(t,!1,null,null,void 0,r);break;default:t.memoizedState=null}return t.child}function Dc(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Yl|=t.lanes,(n&t.childLanes)===0)if(e!==null){if(Xi(e,t,n,!1),(n&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(i(153));if(t.child!==null){for(e=t.child,n=ci(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=ci(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function Oc(e,t){return(e.lanes&t)===0?(e=e.dependencies,!!(e!==null&&Zi(e))):!0}function kc(e,t,n){switch(t.tag){case 3:ue(t,t.stateNode.containerInfo),Ki(t,aa,e.memoizedState.cache),Bi();break;case 27:case 5:fe(t);break;case 4:ue(t,t.stateNode.containerInfo);break;case 10:Ki(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,io(t),null;break;case 13:var r=t.memoizedState;if(r!==null)return r.dehydrated===null?(n&t.child.childLanes)===0?(ro(t),e=Dc(e,t,n),e===null?null:e.sibling):bc(e,t,n):(ro(t),t.flags|=128,null);ro(t);break;case 19:var i=(e.flags&128)!=0;if(r=(n&t.childLanes)!==0,r||=(Xi(e,t,n,!1),(n&t.childLanes)!==0),i){if(r)return Ec(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),oe(co,co.current),r)break;return null;case 22:return t.lanes=0,oc(e,t,n,t.pendingProps);case 24:Ki(t,aa,e.memoizedState.cache)}return Dc(e,t,n)}function Ac(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps)tc=!0;else{if(!Oc(e,n)&&!(t.flags&128))return tc=!1,kc(e,t,n);tc=!!(e.flags&131072)}else tc=!1,Mi&&t.flags&1048576&&Ei(t,bi,t.index);switch(t.lanes=0,t.tag){case 16:a:{var r=t.pendingProps;if(e=Ea(t.elementType),t.type=e,typeof e==`function`)si(e)?(r=Ws(e,r),t.tag=1,t=hc(null,t,e,r,n)):(t.tag=0,t=pc(null,t,e,r,n));else{if(e!=null){var a=e.$$typeof;if(a===x){t.tag=11,t=rc(null,t,e,r,n);break a}else if(a===w){t.tag=14,t=ic(null,t,e,r,n);break a}}throw t=A(e)||e,Error(i(306,t,``))}}return t;case 0:return pc(e,t,t.type,t.pendingProps,n);case 1:return r=t.type,a=Ws(r,t.pendingProps),hc(e,t,r,a,n);case 3:a:{if(ue(t,t.stateNode.containerInfo),e===null)throw Error(i(387));r=t.pendingProps;var o=t.memoizedState;a=o.element,Ba(e,t),qa(t,r,null,n);var s=t.memoizedState;if(r=s.cache,Ki(t,aa,r),r!==o.cache&&Yi(t,[aa],n,!0),Ka(),r=s.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:s.cache},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){t=gc(e,t,r,n);break a}else if(r!==a){a=gi(Error(i(424)),t),Hi(a),t=gc(e,t,r,n);break a}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName===`HTML`?e.ownerDocument.body:e}for(ji=hf(e.firstChild),Ai=t,Mi=!0,Ni=null,Pi=!0,n=La(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling}else{if(Bi(),r===a){t=Dc(e,t,n);break a}nc(e,t,r,n)}t=t.child}return t;case 26:return fc(e,t),e===null?(n=Ff(t.type,null,t.pendingProps,null))?t.memoizedState=n:Mi||(n=t.type,e=t.pendingProps,r=qd(ce.current).createElement(n),r[at]=t,r[ot]=e,Vd(r,n,e),xt(r),t.stateNode=r):t.memoizedState=Ff(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return fe(t),e===null&&Mi&&(r=t.stateNode=yf(t.type,t.pendingProps,ce.current),Ai=t,Pi=!0,a=ji,af(t.type)?(gf=a,ji=hf(r.firstChild)):ji=a),nc(e,t,t.pendingProps.children,n),fc(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&Mi&&((a=r=ji)&&(r=lf(r,t.type,t.pendingProps,Pi),r===null?a=!1:(t.stateNode=r,Ai=t,ji=hf(r.firstChild),Pi=!1,a=!0)),a||Ii(t)),fe(t),a=t.type,o=t.pendingProps,s=e===null?null:e.memoizedProps,r=o.children,Xd(a,o)?r=null:s!==null&&Xd(a,s)&&(t.flags|=32),t.memoizedState!==null&&(a=Co(e,t,To,null,null,n),ip._currentValue=a),fc(e,t),nc(e,t,r,n),t.child;case 6:return e===null&&Mi&&((e=n=ji)&&(n=uf(n,t.pendingProps,Pi),n===null?e=!1:(t.stateNode=n,Ai=t,ji=null,e=!0)),e||Ii(t)),null;case 13:return bc(e,t,n);case 4:return ue(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Ia(t,null,r,n):nc(e,t,r,n),t.child;case 11:return rc(e,t,t.type,t.pendingProps,n);case 7:return nc(e,t,t.pendingProps,n),t.child;case 8:return nc(e,t,t.pendingProps.children,n),t.child;case 12:return nc(e,t,t.pendingProps.children,n),t.child;case 10:return r=t.pendingProps,Ki(t,t.type,r.value),nc(e,t,r.children,n),t.child;case 9:return a=t.type._context,r=t.pendingProps.children,Qi(t),a=$i(a),r=r(a),t.flags|=1,nc(e,t,r,n),t.child;case 14:return ic(e,t,t.type,t.pendingProps,n);case 15:return ac(e,t,t.type,t.pendingProps,n);case 19:return Ec(e,t,n);case 31:return dc(e,t,n);case 22:return oc(e,t,n,t.pendingProps);case 24:return Qi(t),r=$i(aa),e===null?(a=_a(),a===null&&(a=zl,o=oa(),a.pooledCache=o,o.refCount++,o!==null&&(a.pooledCacheLanes|=n),a=o),t.memoizedState={parent:r,cache:a},za(t),Ki(t,aa,a)):((e.lanes&n)!==0&&(Ba(e,t),qa(t,null,null,n),Ka()),a=e.memoizedState,o=t.memoizedState,a.parent===r?(r=o.cache,Ki(t,aa,r),r!==a.cache&&Yi(t,[aa],n,!0)):(a={parent:r,cache:r},t.memoizedState=a,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=a),Ki(t,aa,r))),nc(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(i(156,t.tag))}function jc(e){e.flags|=4}function Mc(e,t,n,r,i){if((t=(e.mode&32)!=0)&&(t=!1),t){if(e.flags|=16777216,(i&335544128)===i)if(e.stateNode.complete)e.flags|=8192;else if(Ou())e.flags|=8192;else throw Da=Ca,xa}else e.flags&=-16777217}function Nc(e,t){if(t.type!==`stylesheet`||t.state.loading&4)e.flags&=-16777217;else if(e.flags|=16777216,!Xf(t))if(Ou())e.flags|=8192;else throw Da=Ca,xa}function Pc(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag===22?536870912:Je(),e.lanes|=t,$l|=t)}function Fc(e,t){if(!Mi)switch(e.tailMode){case`hidden`:t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case`collapsed`:n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Ic(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&65011712,r|=i.flags&65011712,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Lc(e,t,n){var r=t.pendingProps;switch(Oi(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ic(t),null;case 1:return Ic(t),null;case 3:return n=t.stateNode,r=null,e!==null&&(r=e.memoizedState.cache),t.memoizedState.cache!==r&&(t.flags|=2048),qi(aa),de(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(zi(t)?jc(t):e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Vi())),Ic(t),null;case 26:var a=t.type,o=t.memoizedState;return e===null?(jc(t),o===null?(Ic(t),Mc(t,a,null,r,n)):(Ic(t),Nc(t,o))):o?o===e.memoizedState?(Ic(t),t.flags&=-16777217):(jc(t),Ic(t),Nc(t,o)):(e=e.memoizedProps,e!==r&&jc(t),Ic(t),Mc(t,a,e,r,n)),null;case 27:if(pe(t),n=ce.current,a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&jc(t);else{if(!r){if(t.stateNode===null)throw Error(i(166));return Ic(t),null}e=P.current,zi(t)?Li(t,e):(e=yf(a,r,n),t.stateNode=e,jc(t))}return Ic(t),null;case 5:if(pe(t),a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&jc(t);else{if(!r){if(t.stateNode===null)throw Error(i(166));return Ic(t),null}if(o=P.current,zi(t))Li(t,o);else{var s=qd(ce.current);switch(o){case 1:o=s.createElementNS(`http://www.w3.org/2000/svg`,a);break;case 2:o=s.createElementNS(`http://www.w3.org/1998/Math/MathML`,a);break;default:switch(a){case`svg`:o=s.createElementNS(`http://www.w3.org/2000/svg`,a);break;case`math`:o=s.createElementNS(`http://www.w3.org/1998/Math/MathML`,a);break;case`script`:o=s.createElement(`div`),o.innerHTML=`<script><\/script>`,o=o.removeChild(o.firstChild);break;case`select`:o=typeof r.is==`string`?s.createElement(`select`,{is:r.is}):s.createElement(`select`),r.multiple?o.multiple=!0:r.size&&(o.size=r.size);break;default:o=typeof r.is==`string`?s.createElement(a,{is:r.is}):s.createElement(a)}}o[at]=t,o[ot]=r;a:for(s=t.child;s!==null;){if(s.tag===5||s.tag===6)o.appendChild(s.stateNode);else if(s.tag!==4&&s.tag!==27&&s.child!==null){s.child.return=s,s=s.child;continue}if(s===t)break a;for(;s.sibling===null;){if(s.return===null||s.return===t)break a;s=s.return}s.sibling.return=s.return,s=s.sibling}t.stateNode=o;a:switch(Vd(o,a,r),a){case`button`:case`input`:case`select`:case`textarea`:r=!!r.autoFocus;break a;case`img`:r=!0;break a;default:r=!1}r&&jc(t)}}return Ic(t),Mc(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==r&&jc(t);else{if(typeof r!=`string`&&t.stateNode===null)throw Error(i(166));if(e=ce.current,zi(t)){if(e=t.stateNode,n=t.memoizedProps,r=null,a=Ai,a!==null)switch(a.tag){case 27:case 5:r=a.memoizedProps}e[at]=t,e=!!(e.nodeValue===n||r!==null&&!0===r.suppressHydrationWarning||Rd(e.nodeValue,n)),e||Ii(t,!0)}else e=qd(e).createTextNode(r),e[at]=t,t.stateNode=e}return Ic(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(r=zi(t),n!==null){if(e===null){if(!r)throw Error(i(318));if(e=t.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(i(557));e[at]=t}else Bi(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Ic(t),e=!1}else n=Vi(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(so(t),t):(so(t),null);if(t.flags&128)throw Error(i(558))}return Ic(t),null;case 13:if(r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(a=zi(t),r!==null&&r.dehydrated!==null){if(e===null){if(!a)throw Error(i(318));if(a=t.memoizedState,a=a===null?null:a.dehydrated,!a)throw Error(i(317));a[at]=t}else Bi(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Ic(t),a=!1}else a=Vi(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),a=!0;if(!a)return t.flags&256?(so(t),t):(so(t),null)}return so(t),t.flags&128?(t.lanes=n,t):(n=r!==null,e=e!==null&&e.memoizedState!==null,n&&(r=t.child,a=null,r.alternate!==null&&r.alternate.memoizedState!==null&&r.alternate.memoizedState.cachePool!==null&&(a=r.alternate.memoizedState.cachePool.pool),o=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(o=r.memoizedState.cachePool.pool),o!==a&&(r.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),Pc(t,t.updateQueue),Ic(t),null);case 4:return de(),e===null&&Od(t.stateNode.containerInfo),Ic(t),null;case 10:return qi(t.type),Ic(t),null;case 19:if(ae(co),r=t.memoizedState,r===null)return Ic(t),null;if(a=(t.flags&128)!=0,o=r.rendering,o===null)if(a)Fc(r,!1);else{if(Jl!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=lo(e),o!==null){for(t.flags|=128,Fc(r,!1),e=o.updateQueue,t.updateQueue=e,Pc(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)li(n,e),n=n.sibling;return oe(co,co.current&1|2),Mi&&Ti(t,r.treeForkCount),t.child}e=e.sibling}r.tail!==null&&Ee()>au&&(t.flags|=128,a=!0,Fc(r,!1),t.lanes=4194304)}else{if(!a)if(e=lo(o),e!==null){if(t.flags|=128,a=!0,e=e.updateQueue,t.updateQueue=e,Pc(t,e),Fc(r,!0),r.tail===null&&r.tailMode===`hidden`&&!o.alternate&&!Mi)return Ic(t),null}else 2*Ee()-r.renderingStartTime>au&&n!==536870912&&(t.flags|=128,a=!0,Fc(r,!1),t.lanes=4194304);r.isBackwards?(o.sibling=t.child,t.child=o):(e=r.last,e===null?t.child=o:e.sibling=o,r.last=o)}return r.tail===null?(Ic(t),null):(e=r.tail,r.rendering=e,r.tail=e.sibling,r.renderingStartTime=Ee(),e.sibling=null,n=co.current,oe(co,a?n&1|2:n&1),Mi&&Ti(t,r.treeForkCount),e);case 22:case 23:return so(t),eo(),r=t.memoizedState!==null,e===null?r&&(t.flags|=8192):e.memoizedState!==null!==r&&(t.flags|=8192),r?n&536870912&&!(t.flags&128)&&(Ic(t),t.subtreeFlags&6&&(t.flags|=8192)):Ic(t),n=t.updateQueue,n!==null&&Pc(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),r=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(r=t.memoizedState.cachePool.pool),r!==n&&(t.flags|=2048),e!==null&&ae(ga),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),qi(aa),Ic(t),null;case 25:return null;case 30:return null}throw Error(i(156,t.tag))}function Rc(e,t){switch(Oi(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return qi(aa),de(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return pe(t),null;case 31:if(t.memoizedState!==null){if(so(t),t.alternate===null)throw Error(i(340));Bi()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(so(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(i(340));Bi()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return ae(co),null;case 4:return de(),null;case 10:return qi(t.type),null;case 22:case 23:return so(t),eo(),e!==null&&ae(ga),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return qi(aa),null;case 25:return null;default:return null}}function zc(e,t){switch(Oi(t),t.tag){case 3:qi(aa),de();break;case 26:case 27:case 5:pe(t);break;case 4:de();break;case 31:t.memoizedState!==null&&so(t);break;case 13:so(t);break;case 19:ae(co);break;case 10:qi(t.type);break;case 22:case 23:so(t),eo(),e!==null&&ae(ga);break;case 24:qi(aa)}}function Bc(e,t){try{var n=t.updateQueue,r=n===null?null:n.lastEffect;if(r!==null){var i=r.next;n=i;do{if((n.tag&e)===e){r=void 0;var a=n.create,o=n.inst;r=a(),o.destroy=r}n=n.next}while(n!==i)}}catch(e){Yu(t,t.return,e)}}function Vc(e,t,n){try{var r=t.updateQueue,i=r===null?null:r.lastEffect;if(i!==null){var a=i.next;r=a;do{if((r.tag&e)===e){var o=r.inst,s=o.destroy;if(s!==void 0){o.destroy=void 0,i=t;var c=n,l=s;try{l()}catch(e){Yu(i,c,e)}}}r=r.next}while(r!==a)}}catch(e){Yu(t,t.return,e)}}function Hc(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{Ya(t,n)}catch(t){Yu(e,e.return,t)}}}function Uc(e,t,n){n.props=Ws(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(n){Yu(e,t,n)}}function K(e,t){try{var n=e.ref;if(n!==null){switch(e.tag){case 26:case 27:case 5:var r=e.stateNode;break;case 30:r=e.stateNode;break;default:r=e.stateNode}typeof n==`function`?e.refCleanup=n(r):n.current=r}}catch(n){Yu(e,t,n)}}function Wc(e,t){var n=e.ref,r=e.refCleanup;if(n!==null)if(typeof r==`function`)try{r()}catch(n){Yu(e,t,n)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n==`function`)try{n(null)}catch(n){Yu(e,t,n)}else n.current=null}function Gc(e){var t=e.type,n=e.memoizedProps,r=e.stateNode;try{a:switch(t){case`button`:case`input`:case`select`:case`textarea`:n.autoFocus&&r.focus();break a;case`img`:n.src?r.src=n.src:n.srcSet&&(r.srcset=n.srcSet)}}catch(t){Yu(e,e.return,t)}}function Kc(e,t,n){try{var r=e.stateNode;Hd(r,e.type,n,t),r[ot]=t}catch(t){Yu(e,e.return,t)}}function qc(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&af(e.type)||e.tag===4}function Jc(e){a:for(;;){for(;e.sibling===null;){if(e.return===null||qc(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&af(e.type)||e.flags&2||e.child===null||e.tag===4)continue a;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Yc(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?(n.nodeType===9?n.body:n.nodeName===`HTML`?n.ownerDocument.body:n).insertBefore(e,t):(t=n.nodeType===9?n.body:n.nodeName===`HTML`?n.ownerDocument.body:n,t.appendChild(e),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=en));else if(r!==4&&(r===27&&af(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for(Yc(e,t,n),e=e.sibling;e!==null;)Yc(e,t,n),e=e.sibling}function Xc(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(r===27&&af(e.type)&&(n=e.stateNode),e=e.child,e!==null))for(Xc(e,t,n),e=e.sibling;e!==null;)Xc(e,t,n),e=e.sibling}function Zc(e){var t=e.stateNode,n=e.memoizedProps;try{for(var r=e.type,i=t.attributes;i.length;)t.removeAttributeNode(i[0]);Vd(t,r,n),t[at]=e,t[ot]=n}catch(t){Yu(e,e.return,t)}}var Qc=!1,$c=!1,el=!1,tl=typeof WeakSet==`function`?WeakSet:Set,nl=null;function rl(e,t){if(e=e.containerInfo,Gd=pp,e=Tr(e),Er(e)){if(`selectionStart`in e)var n={start:e.selectionStart,end:e.selectionEnd};else a:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var a=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break a}var s=0,c=-1,l=-1,u=0,d=0,f=e,p=null;b:for(;;){for(var m;f!==n||a!==0&&f.nodeType!==3||(c=s+a),f!==o||r!==0&&f.nodeType!==3||(l=s+r),f.nodeType===3&&(s+=f.nodeValue.length),(m=f.firstChild)!==null;)p=f,f=m;for(;;){if(f===e)break b;if(p===n&&++u===a&&(c=s),p===o&&++d===r&&(l=s),(m=f.nextSibling)!==null)break;f=p,p=f.parentNode}f=m}n=c===-1||l===-1?null:{start:c,end:l}}else n=null}n||={start:0,end:0}}else n=null;for(Kd={focusedElem:e,selectionRange:n},pp=!1,nl=t;nl!==null;)if(t=nl,e=t.child,t.subtreeFlags&1028&&e!==null)e.return=t,nl=e;else for(;nl!==null;){switch(t=nl,o=t.alternate,e=t.flags,t.tag){case 0:if(e&4&&(e=t.updateQueue,e=e===null?null:e.events,e!==null))for(n=0;n<e.length;n++)a=e[n],a.ref.impl=a.nextImpl;break;case 11:case 15:break;case 1:if(e&1024&&o!==null){e=void 0,n=t,a=o.memoizedProps,o=o.memoizedState,r=n.stateNode;try{var h=Ws(n.type,a);e=r.getSnapshotBeforeUpdate(h,o),r.__reactInternalSnapshotBeforeUpdate=e}catch(e){Yu(n,n.return,e)}}break;case 3:if(e&1024){if(e=t.stateNode.containerInfo,n=e.nodeType,n===9)cf(e);else if(n===1)switch(e.nodeName){case`HEAD`:case`HTML`:case`BODY`:cf(e);break;default:e.textContent=``}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if(e&1024)throw Error(i(163))}if(e=t.sibling,e!==null){e.return=t.return,nl=e;break}nl=t.return}}function il(e,t,n){var r=n.flags;switch(n.tag){case 0:case 11:case 15:yl(e,n),r&4&&Bc(5,n);break;case 1:if(yl(e,n),r&4)if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(e){Yu(n,n.return,e)}else{var i=Ws(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(i,t,e.__reactInternalSnapshotBeforeUpdate)}catch(e){Yu(n,n.return,e)}}r&64&&Hc(n),r&512&&K(n,n.return);break;case 3:if(yl(e,n),r&64&&(e=n.updateQueue,e!==null)){if(t=null,n.child!==null)switch(n.child.tag){case 27:case 5:t=n.child.stateNode;break;case 1:t=n.child.stateNode}try{Ya(e,t)}catch(e){Yu(n,n.return,e)}}break;case 27:t===null&&r&4&&Zc(n);case 26:case 5:yl(e,n),t===null&&r&4&&Gc(n),r&512&&K(n,n.return);break;case 12:yl(e,n);break;case 31:yl(e,n),r&4&&ul(e,n);break;case 13:yl(e,n),r&4&&dl(e,n),r&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=$u.bind(null,n),mf(e,n))));break;case 22:if(r=n.memoizedState!==null||Qc,!r){t=t!==null&&t.memoizedState!==null||$c,i=Qc;var a=$c;Qc=r,($c=t)&&!a?xl(e,n,(n.subtreeFlags&8772)!=0):yl(e,n),Qc=i,$c=a}break;case 30:break;default:yl(e,n)}}function al(e){var t=e.alternate;t!==null&&(e.alternate=null,al(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&pt(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var ol=null,sl=!1;function cl(e,t,n){for(n=n.child;n!==null;)ll(e,t,n),n=n.sibling}function ll(e,t,n){if(Fe&&typeof Fe.onCommitFiberUnmount==`function`)try{Fe.onCommitFiberUnmount(Pe,n)}catch{}switch(n.tag){case 26:$c||Wc(n,t),cl(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:$c||Wc(n,t);var r=ol,i=sl;af(n.type)&&(ol=n.stateNode,sl=!1),cl(e,t,n),bf(n.stateNode),ol=r,sl=i;break;case 5:$c||Wc(n,t);case 6:if(r=ol,i=sl,ol=null,cl(e,t,n),ol=r,sl=i,ol!==null)if(sl)try{(ol.nodeType===9?ol.body:ol.nodeName===`HTML`?ol.ownerDocument.body:ol).removeChild(n.stateNode)}catch(e){Yu(n,t,e)}else try{ol.removeChild(n.stateNode)}catch(e){Yu(n,t,e)}break;case 18:ol!==null&&(sl?(e=ol,of(e.nodeType===9?e.body:e.nodeName===`HTML`?e.ownerDocument.body:e,n.stateNode),zp(e)):of(ol,n.stateNode));break;case 4:r=ol,i=sl,ol=n.stateNode.containerInfo,sl=!0,cl(e,t,n),ol=r,sl=i;break;case 0:case 11:case 14:case 15:Vc(2,n,t),$c||Vc(4,n,t),cl(e,t,n);break;case 1:$c||(Wc(n,t),r=n.stateNode,typeof r.componentWillUnmount==`function`&&Uc(n,t,r)),cl(e,t,n);break;case 21:cl(e,t,n);break;case 22:$c=(r=$c)||n.memoizedState!==null,cl(e,t,n),$c=r;break;default:cl(e,t,n)}}function ul(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{zp(e)}catch(e){Yu(t,t.return,e)}}}function dl(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{zp(e)}catch(e){Yu(t,t.return,e)}}function fl(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new tl),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new tl),t;default:throw Error(i(435,e.tag))}}function pl(e,t){var n=fl(e);t.forEach(function(t){if(!n.has(t)){n.add(t);var r=ed.bind(null,e,t);t.then(r,r)}})}function ml(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var a=n[r],o=e,s=t,c=s;a:for(;c!==null;){switch(c.tag){case 27:if(af(c.type)){ol=c.stateNode,sl=!1;break a}break;case 5:ol=c.stateNode,sl=!1;break a;case 3:case 4:ol=c.stateNode.containerInfo,sl=!0;break a}c=c.return}if(ol===null)throw Error(i(160));ll(o,s,a),ol=null,sl=!1,o=a.alternate,o!==null&&(o.return=null),a.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)gl(t,e),t=t.sibling}var hl=null;function gl(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:ml(t,e),_l(e),r&4&&(Vc(3,e,e.return),Bc(3,e),Vc(5,e,e.return));break;case 1:ml(t,e),_l(e),r&512&&($c||n===null||Wc(n,n.return)),r&64&&Qc&&(e=e.updateQueue,e!==null&&(r=e.callbacks,r!==null&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=n===null?r:n.concat(r))));break;case 26:var a=hl;if(ml(t,e),_l(e),r&512&&($c||n===null||Wc(n,n.return)),r&4){var o=n===null?null:n.memoizedState;if(r=e.memoizedState,n===null)if(r===null)if(e.stateNode===null){a:{r=e.type,n=e.memoizedProps,a=a.ownerDocument||a;b:switch(r){case`title`:o=a.getElementsByTagName(`title`)[0],(!o||o[ft]||o[at]||o.namespaceURI===`http://www.w3.org/2000/svg`||o.hasAttribute(`itemprop`))&&(o=a.createElement(r),a.head.insertBefore(o,a.querySelector(`head > title`))),Vd(o,r,n),o[at]=e,xt(o),r=o;break a;case`link`:var s=qf(`link`,`href`,a).get(r+(n.href||``));if(s){for(var c=0;c<s.length;c++)if(o=s[c],o.getAttribute(`href`)===(n.href==null||n.href===``?null:n.href)&&o.getAttribute(`rel`)===(n.rel==null?null:n.rel)&&o.getAttribute(`title`)===(n.title==null?null:n.title)&&o.getAttribute(`crossorigin`)===(n.crossOrigin==null?null:n.crossOrigin)){s.splice(c,1);break b}}o=a.createElement(r),Vd(o,r,n),a.head.appendChild(o);break;case`meta`:if(s=qf(`meta`,`content`,a).get(r+(n.content||``))){for(c=0;c<s.length;c++)if(o=s[c],o.getAttribute(`content`)===(n.content==null?null:``+n.content)&&o.getAttribute(`name`)===(n.name==null?null:n.name)&&o.getAttribute(`property`)===(n.property==null?null:n.property)&&o.getAttribute(`http-equiv`)===(n.httpEquiv==null?null:n.httpEquiv)&&o.getAttribute(`charset`)===(n.charSet==null?null:n.charSet)){s.splice(c,1);break b}}o=a.createElement(r),Vd(o,r,n),a.head.appendChild(o);break;default:throw Error(i(468,r))}o[at]=e,xt(o),r=o}e.stateNode=r}else Jf(a,e.type,e.stateNode);else e.stateNode=Hf(a,r,e.memoizedProps);else o===r?r===null&&e.stateNode!==null&&Kc(e,e.memoizedProps,n.memoizedProps):(o===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):o.count--,r===null?Jf(a,e.type,e.stateNode):Hf(a,r,e.memoizedProps))}break;case 27:ml(t,e),_l(e),r&512&&($c||n===null||Wc(n,n.return)),n!==null&&r&4&&Kc(e,e.memoizedProps,n.memoizedProps);break;case 5:if(ml(t,e),_l(e),r&512&&($c||n===null||Wc(n,n.return)),e.flags&32){a=e.stateNode;try{Kt(a,``)}catch(t){Yu(e,e.return,t)}}r&4&&e.stateNode!=null&&(a=e.memoizedProps,Kc(e,a,n===null?a:n.memoizedProps)),r&1024&&(el=!0);break;case 6:if(ml(t,e),_l(e),r&4){if(e.stateNode===null)throw Error(i(162));r=e.memoizedProps,n=e.stateNode;try{n.nodeValue=r}catch(t){Yu(e,e.return,t)}}break;case 3:if(Kf=null,a=hl,hl=Sf(t.containerInfo),ml(t,e),hl=a,_l(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{zp(t.containerInfo)}catch(t){Yu(e,e.return,t)}el&&(el=!1,vl(e));break;case 4:r=hl,hl=Sf(e.stateNode.containerInfo),ml(t,e),_l(e),hl=r;break;case 12:ml(t,e),_l(e);break;case 31:ml(t,e),_l(e),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,pl(e,r)));break;case 13:ml(t,e),_l(e),e.child.flags&8192&&e.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(ru=Ee()),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,pl(e,r)));break;case 22:a=e.memoizedState!==null;var l=n!==null&&n.memoizedState!==null,u=Qc,d=$c;if(Qc=u||a,$c=d||l,ml(t,e),$c=d,Qc=u,_l(e),r&8192)a:for(t=e.stateNode,t._visibility=a?t._visibility&-2:t._visibility|1,a&&(n===null||l||Qc||$c||bl(e)),n=null,t=e;;){if(t.tag===5||t.tag===26){if(n===null){l=n=t;try{if(o=l.stateNode,a)s=o.style,typeof s.setProperty==`function`?s.setProperty(`display`,`none`,`important`):s.display=`none`;else{c=l.stateNode;var f=l.memoizedProps.style,p=f!=null&&f.hasOwnProperty(`display`)?f.display:null;c.style.display=p==null||typeof p==`boolean`?``:(``+p).trim()}}catch(e){Yu(l,l.return,e)}}}else if(t.tag===6){if(n===null){l=t;try{l.stateNode.nodeValue=a?``:l.memoizedProps}catch(e){Yu(l,l.return,e)}}}else if(t.tag===18){if(n===null){l=t;try{var m=l.stateNode;a?sf(m,!0):sf(l.stateNode,!1)}catch(e){Yu(l,l.return,e)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break a;for(;t.sibling===null;){if(t.return===null||t.return===e)break a;n===t&&(n=null),t=t.return}n===t&&(n=null),t.sibling.return=t.return,t=t.sibling}r&4&&(r=e.updateQueue,r!==null&&(n=r.retryQueue,n!==null&&(r.retryQueue=null,pl(e,n))));break;case 19:ml(t,e),_l(e),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,pl(e,r)));break;case 30:break;case 21:break;default:ml(t,e),_l(e)}}function _l(e){var t=e.flags;if(t&2){try{for(var n,r=e.return;r!==null;){if(qc(r)){n=r;break}r=r.return}if(n==null)throw Error(i(160));switch(n.tag){case 27:var a=n.stateNode;Xc(e,Jc(e),a);break;case 5:var o=n.stateNode;n.flags&32&&(Kt(o,``),n.flags&=-33),Xc(e,Jc(e),o);break;case 3:case 4:var s=n.stateNode.containerInfo;Yc(e,Jc(e),s);break;default:throw Error(i(161))}}catch(t){Yu(e,e.return,t)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function vl(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;vl(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function yl(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)il(e,t.alternate,t),t=t.sibling}function bl(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:Vc(4,t,t.return),bl(t);break;case 1:Wc(t,t.return);var n=t.stateNode;typeof n.componentWillUnmount==`function`&&Uc(t,t.return,n),bl(t);break;case 27:bf(t.stateNode);case 26:case 5:Wc(t,t.return),bl(t);break;case 22:t.memoizedState===null&&bl(t);break;case 30:bl(t);break;default:bl(t)}e=e.sibling}}function xl(e,t,n){for(n&&=(t.subtreeFlags&8772)!=0,t=t.child;t!==null;){var r=t.alternate,i=e,a=t,o=a.flags;switch(a.tag){case 0:case 11:case 15:xl(i,a,n),Bc(4,a);break;case 1:if(xl(i,a,n),r=a,i=r.stateNode,typeof i.componentDidMount==`function`)try{i.componentDidMount()}catch(e){Yu(r,r.return,e)}if(r=a,i=r.updateQueue,i!==null){var s=r.stateNode;try{var c=i.shared.hiddenCallbacks;if(c!==null)for(i.shared.hiddenCallbacks=null,i=0;i<c.length;i++)Ja(c[i],s)}catch(e){Yu(r,r.return,e)}}n&&o&64&&Hc(a),K(a,a.return);break;case 27:Zc(a);case 26:case 5:xl(i,a,n),n&&r===null&&o&4&&Gc(a),K(a,a.return);break;case 12:xl(i,a,n);break;case 31:xl(i,a,n),n&&o&4&&ul(i,a);break;case 13:xl(i,a,n),n&&o&4&&dl(i,a);break;case 22:a.memoizedState===null&&xl(i,a,n),K(a,a.return);break;case 30:break;default:xl(i,a,n)}t=t.sibling}}function Sl(e,t){var n=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==n&&(e!=null&&e.refCount++,n!=null&&sa(n))}function Cl(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&sa(e))}function wl(e,t,n,r){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Tl(e,t,n,r),t=t.sibling}function Tl(e,t,n,r){var i=t.flags;switch(t.tag){case 0:case 11:case 15:wl(e,t,n,r),i&2048&&Bc(9,t);break;case 1:wl(e,t,n,r);break;case 3:wl(e,t,n,r),i&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&sa(e)));break;case 12:if(i&2048){wl(e,t,n,r),e=t.stateNode;try{var a=t.memoizedProps,o=a.id,s=a.onPostCommit;typeof s==`function`&&s(o,t.alternate===null?`mount`:`update`,e.passiveEffectDuration,-0)}catch(e){Yu(t,t.return,e)}}else wl(e,t,n,r);break;case 31:wl(e,t,n,r);break;case 13:wl(e,t,n,r);break;case 23:break;case 22:a=t.stateNode,o=t.alternate,t.memoizedState===null?a._visibility&2?wl(e,t,n,r):(a._visibility|=2,El(e,t,n,r,(t.subtreeFlags&10256)!=0||!1)):a._visibility&2?wl(e,t,n,r):Dl(e,t),i&2048&&Sl(o,t);break;case 24:wl(e,t,n,r),i&2048&&Cl(t.alternate,t);break;default:wl(e,t,n,r)}}function El(e,t,n,r,i){for(i&&=(t.subtreeFlags&10256)!=0||!1,t=t.child;t!==null;){var a=e,o=t,s=n,c=r,l=o.flags;switch(o.tag){case 0:case 11:case 15:El(a,o,s,c,i),Bc(8,o);break;case 23:break;case 22:var u=o.stateNode;o.memoizedState===null?(u._visibility|=2,El(a,o,s,c,i)):u._visibility&2?El(a,o,s,c,i):Dl(a,o),i&&l&2048&&Sl(o.alternate,o);break;case 24:El(a,o,s,c,i),i&&l&2048&&Cl(o.alternate,o);break;default:El(a,o,s,c,i)}t=t.sibling}}function Dl(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var n=e,r=t,i=r.flags;switch(r.tag){case 22:Dl(n,r),i&2048&&Sl(r.alternate,r);break;case 24:Dl(n,r),i&2048&&Cl(r.alternate,r);break;default:Dl(n,r)}t=t.sibling}}var Ol=8192;function kl(e,t,n){if(e.subtreeFlags&Ol)for(e=e.child;e!==null;)Al(e,t,n),e=e.sibling}function Al(e,t,n){switch(e.tag){case 26:kl(e,t,n),e.flags&Ol&&e.memoizedState!==null&&Zf(n,hl,e.memoizedState,e.memoizedProps);break;case 5:kl(e,t,n);break;case 3:case 4:var r=hl;hl=Sf(e.stateNode.containerInfo),kl(e,t,n),hl=r;break;case 22:e.memoizedState===null&&(r=e.alternate,r!==null&&r.memoizedState!==null?(r=Ol,Ol=16777216,kl(e,t,n),Ol=r):kl(e,t,n));break;default:kl(e,t,n)}}function jl(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function Ml(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n];nl=r,Fl(r,e)}jl(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Nl(e),e=e.sibling}function Nl(e){switch(e.tag){case 0:case 11:case 15:Ml(e),e.flags&2048&&Vc(9,e,e.return);break;case 3:Ml(e);break;case 12:Ml(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Pl(e)):Ml(e);break;default:Ml(e)}}function Pl(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n];nl=r,Fl(r,e)}jl(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Vc(8,t,t.return),Pl(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,Pl(t));break;default:Pl(t)}e=e.sibling}}function Fl(e,t){for(;nl!==null;){var n=nl;switch(n.tag){case 0:case 11:case 15:Vc(8,n,t);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var r=n.memoizedState.cachePool.pool;r!=null&&r.refCount++}break;case 24:sa(n.memoizedState.cache)}if(r=n.child,r!==null)r.return=n,nl=r;else a:for(n=e;nl!==null;){r=nl;var i=r.sibling,a=r.return;if(al(r),r===n){nl=null;break a}if(i!==null){i.return=a,nl=i;break a}nl=a}}}var Il={getCacheForType:function(e){var t=$i(aa),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return $i(aa).controller.signal}},Ll=typeof WeakMap==`function`?WeakMap:Map,Rl=0,zl=null,Bl=null,Vl=0,Hl=0,Ul=null,Wl=!1,Gl=!1,Kl=!1,ql=0,Jl=0,Yl=0,Xl=0,Zl=0,Ql=0,$l=0,eu=null,tu=null,nu=!1,ru=0,iu=0,au=1/0,ou=null,su=null,cu=0,lu=null,uu=null,du=0,fu=0,pu=null,mu=null,hu=0,gu=null;function _u(){return Rl&2&&Vl!==0?Vl&-Vl:M.T===null?nt():gd()}function vu(){if(Ql===0)if(!(Vl&536870912)||Mi){var e=He;He<<=1,!(He&3932160)&&(He=262144),Ql=e}else Ql=536870912;return e=to.current,e!==null&&(e.flags|=32),Ql}function yu(e,t,n){(e===zl&&(Hl===2||Hl===9)||e.cancelPendingCommit!==null)&&(Eu(e,0),Cu(e,Vl,Ql,!1)),Xe(e,n),(!(Rl&2)||e!==zl)&&(e===zl&&(!(Rl&2)&&(Xl|=n),Jl===4&&Cu(e,Vl,Ql,!1)),cd(e))}function bu(e,t,n){if(Rl&6)throw Error(i(327));var r=!n&&(t&127)==0&&(t&e.expiredLanes)===0||Ke(e,t),a=r?Pu(e,t):Mu(e,t,!0),o=r;do{if(a===0){Gl&&!r&&Cu(e,t,0,!1);break}else{if(n=e.current.alternate,o&&!Su(n)){a=Mu(e,t,!1),o=!1;continue}if(a===2){if(o=t,e.errorRecoveryDisabledLanes&o)var s=0;else s=e.pendingLanes&-536870913,s=s===0?s&536870912?536870912:0:s;if(s!==0){t=s;a:{var c=e;a=eu;var l=c.current.memoizedState.isDehydrated;if(l&&(Eu(c,s).flags|=256),s=Mu(c,s,!1),s!==2){if(Kl&&!l){c.errorRecoveryDisabledLanes|=o,Xl|=o,a=4;break a}o=tu,tu=a,o!==null&&(tu===null?tu=o:tu.push.apply(tu,o))}a=s}if(o=!1,a!==2)continue}}if(a===1){Eu(e,0),Cu(e,t,0,!0);break}a:{switch(r=e,o=a,o){case 0:case 1:throw Error(i(345));case 4:if((t&4194048)!==t)break;case 6:Cu(r,t,Ql,!Wl);break a;case 2:tu=null;break;case 3:case 5:break;default:throw Error(i(329))}if((t&62914560)===t&&(a=ru+300-Ee(),10<a)){if(Cu(r,t,Ql,!Wl),Ge(r,0,!0)!==0)break a;du=t,r.timeoutHandle=$d(xu.bind(null,r,n,tu,ou,nu,t,Ql,Xl,$l,Wl,o,`Throttled`,-0,0),a);break a}xu(r,n,tu,ou,nu,t,Ql,Xl,$l,Wl,o,null,-0,0)}}break}while(1);cd(e)}function xu(e,t,n,r,i,a,o,s,c,l,u,d,f,p){if(e.timeoutHandle=-1,d=t.subtreeFlags,d&8192||(d&16785408)==16785408){d={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:en},Al(t,a,d);var m=(a&62914560)===a?ru-Ee():(a&4194048)===a?iu-Ee():0;if(m=$f(d,m),m!==null){du=a,e.cancelPendingCommit=m(Vu.bind(null,e,t,a,n,r,i,o,s,c,u,d,null,f,p)),Cu(e,a,o,!l);return}}Vu(e,t,a,n,r,i,o,s,c)}function Su(e){for(var t=e;;){var n=t.tag;if((n===0||n===11||n===15)&&t.flags&16384&&(n=t.updateQueue,n!==null&&(n=n.stores,n!==null)))for(var r=0;r<n.length;r++){var i=n[r],a=i.getSnapshot;i=i.value;try{if(!br(a(),i))return!1}catch{return!1}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Cu(e,t,n,r){t&=~Zl,t&=~Xl,e.suspendedLanes|=t,e.pingedLanes&=~t,r&&(e.warmLanes|=t),r=e.expirationTimes;for(var i=t;0<i;){var a=31-Le(i),o=1<<a;r[a]=-1,i&=~o}n!==0&&I(e,n,t)}function wu(){return Rl&6?!0:(ld(0,!1),!1)}function Tu(){if(Bl!==null){if(Hl===0)var e=Bl.return;else e=Bl,Gi=Wi=null,Oo(e),Aa=null,ja=0,e=Bl;for(;e!==null;)zc(e.alternate,e),e=e.return;Bl=null}}function Eu(e,t){var n=e.timeoutHandle;n!==-1&&(e.timeoutHandle=-1,ef(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),du=0,Tu(),zl=e,Bl=n=ci(e.current,null),Vl=t,Hl=0,Ul=null,Wl=!1,Gl=Ke(e,t),Kl=!1,$l=Ql=Zl=Xl=Yl=Jl=0,tu=eu=null,nu=!1,t&8&&(t|=t&32);var r=e.entangledLanes;if(r!==0)for(e=e.entanglements,r&=t;0<r;){var i=31-Le(r),a=1<<i;t|=e[i],r&=~a}return ql=t,Qr(),n}function Du(e,t){fo=null,M.H=Is,t===ba||t===Sa?(t=Oa(),Hl=3):t===xa?(t=Oa(),Hl=4):Hl=t===ec?8:typeof t==`object`&&t&&typeof t.then==`function`?6:1,Ul=t,Bl===null&&(Jl=1,Js(e,gi(t,e.current)))}function Ou(){var e=to.current;return e===null?!0:(Vl&4194048)===Vl?no===null:(Vl&62914560)===Vl||Vl&536870912?e===no:!1}function ku(){var e=M.H;return M.H=Is,e===null?Is:e}function Au(){var e=M.A;return M.A=Il,e}function ju(){Jl=4,Wl||(Vl&4194048)!==Vl&&to.current!==null||(Gl=!0),!(Yl&134217727)&&!(Xl&134217727)||zl===null||Cu(zl,Vl,Ql,!1)}function Mu(e,t,n){var r=Rl;Rl|=2;var i=ku(),a=Au();(zl!==e||Vl!==t)&&(ou=null,Eu(e,t)),t=!1;var o=Jl;a:do try{if(Hl!==0&&Bl!==null){var s=Bl,c=Ul;switch(Hl){case 8:Tu(),o=6;break a;case 3:case 2:case 9:case 6:to.current===null&&(t=!0);var l=Hl;if(Hl=0,Ul=null,Ru(e,s,c,l),n&&Gl){o=0;break a}break;default:l=Hl,Hl=0,Ul=null,Ru(e,s,c,l)}}Nu(),o=Jl;break}catch(t){Du(e,t)}while(1);return t&&e.shellSuspendCounter++,Gi=Wi=null,Rl=r,M.H=i,M.A=a,Bl===null&&(zl=null,Vl=0,Qr()),o}function Nu(){for(;Bl!==null;)Iu(Bl)}function Pu(e,t){var n=Rl;Rl|=2;var r=ku(),a=Au();zl!==e||Vl!==t?(ou=null,au=Ee()+500,Eu(e,t)):Gl=Ke(e,t);a:do try{if(Hl!==0&&Bl!==null){t=Bl;var o=Ul;b:switch(Hl){case 1:Hl=0,Ul=null,Ru(e,t,o,1);break;case 2:case 9:if(wa(o)){Hl=0,Ul=null,Lu(t);break}t=function(){Hl!==2&&Hl!==9||zl!==e||(Hl=7),cd(e)},o.then(t,t);break a;case 3:Hl=7;break a;case 4:Hl=5;break a;case 7:wa(o)?(Hl=0,Ul=null,Lu(t)):(Hl=0,Ul=null,Ru(e,t,o,7));break;case 5:var s=null;switch(Bl.tag){case 26:s=Bl.memoizedState;case 5:case 27:var c=Bl;if(s?Xf(s):c.stateNode.complete){Hl=0,Ul=null;var l=c.sibling;if(l!==null)Bl=l;else{var u=c.return;u===null?Bl=null:(Bl=u,zu(u))}break b}}Hl=0,Ul=null,Ru(e,t,o,5);break;case 6:Hl=0,Ul=null,Ru(e,t,o,6);break;case 8:Tu(),Jl=6;break a;default:throw Error(i(462))}}Fu();break}catch(t){Du(e,t)}while(1);return Gi=Wi=null,M.H=r,M.A=a,Rl=n,Bl===null?(zl=null,Vl=0,Qr(),Jl):0}function Fu(){for(;Bl!==null&&!we();)Iu(Bl)}function Iu(e){var t=Ac(e.alternate,e,ql);e.memoizedProps=e.pendingProps,t===null?zu(e):Bl=t}function Lu(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=mc(n,t,t.pendingProps,t.type,void 0,Vl);break;case 11:t=mc(n,t,t.pendingProps,t.type.render,t.ref,Vl);break;case 5:Oo(t);default:zc(n,t),t=Bl=li(t,ql),t=Ac(n,t,ql)}e.memoizedProps=e.pendingProps,t===null?zu(e):Bl=t}function Ru(e,t,n,r){Gi=Wi=null,Oo(t),Aa=null,ja=0;var i=t.return;try{if($s(e,i,t,n,Vl)){Jl=1,Js(e,gi(n,e.current)),Bl=null;return}}catch(t){if(i!==null)throw Bl=i,t;Jl=1,Js(e,gi(n,e.current)),Bl=null;return}t.flags&32768?(Mi||r===1?e=!0:Gl||Vl&536870912?e=!1:(Wl=e=!0,(r===2||r===9||r===3||r===6)&&(r=to.current,r!==null&&r.tag===13&&(r.flags|=16384))),Bu(t,e)):zu(t)}function zu(e){var t=e;do{if(t.flags&32768){Bu(t,Wl);return}e=t.return;var n=Lc(t.alternate,t,ql);if(n!==null){Bl=n;return}if(t=t.sibling,t!==null){Bl=t;return}Bl=t=e}while(t!==null);Jl===0&&(Jl=5)}function Bu(e,t){do{var n=Rc(e.alternate,e);if(n!==null){n.flags&=32767,Bl=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){Bl=e;return}Bl=e=n}while(e!==null);Jl=6,Bl=null}function Vu(e,t,n,r,a,o,s,c,l){e.cancelPendingCommit=null;do Ku();while(cu!==0);if(Rl&6)throw Error(i(327));if(t!==null){if(t===e.current)throw Error(i(177));if(o=t.lanes|t.childLanes,o|=Zr,Ze(e,n,o,s,c,l),e===zl&&(Bl=zl=null,Vl=0),uu=t,lu=e,du=n,fu=o,pu=a,mu=r,t.subtreeFlags&10256||t.flags&10256?(e.callbackNode=null,e.callbackPriority=0,td(Ae,function(){return qu(),null})):(e.callbackNode=null,e.callbackPriority=0),r=(t.flags&13878)!=0,t.subtreeFlags&13878||r){r=M.T,M.T=null,a=N.p,N.p=2,s=Rl,Rl|=4;try{rl(e,t,n)}finally{Rl=s,N.p=a,M.T=r}}cu=1,Hu(),Uu(),Wu()}}function Hu(){if(cu===1){cu=0;var e=lu,t=uu,n=(t.flags&13878)!=0;if(t.subtreeFlags&13878||n){n=M.T,M.T=null;var r=N.p;N.p=2;var i=Rl;Rl|=4;try{gl(t,e);var a=Kd,o=Tr(e.containerInfo),s=a.focusedElem,c=a.selectionRange;if(o!==s&&s&&s.ownerDocument&&wr(s.ownerDocument.documentElement,s)){if(c!==null&&Er(s)){var l=c.start,u=c.end;if(u===void 0&&(u=l),`selectionStart`in s)s.selectionStart=l,s.selectionEnd=Math.min(u,s.value.length);else{var d=s.ownerDocument||document,f=d&&d.defaultView||window;if(f.getSelection){var p=f.getSelection(),m=s.textContent.length,h=Math.min(c.start,m),g=c.end===void 0?h:Math.min(c.end,m);!p.extend&&h>g&&(o=g,g=h,h=o);var _=Cr(s,h),v=Cr(s,g);if(_&&v&&(p.rangeCount!==1||p.anchorNode!==_.node||p.anchorOffset!==_.offset||p.focusNode!==v.node||p.focusOffset!==v.offset)){var y=d.createRange();y.setStart(_.node,_.offset),p.removeAllRanges(),h>g?(p.addRange(y),p.extend(v.node,v.offset)):(y.setEnd(v.node,v.offset),p.addRange(y))}}}}for(d=[],p=s;p=p.parentNode;)p.nodeType===1&&d.push({element:p,left:p.scrollLeft,top:p.scrollTop});for(typeof s.focus==`function`&&s.focus(),s=0;s<d.length;s++){var b=d[s];b.element.scrollLeft=b.left,b.element.scrollTop=b.top}}pp=!!Gd,Kd=Gd=null}finally{Rl=i,N.p=r,M.T=n}}e.current=t,cu=2}}function Uu(){if(cu===2){cu=0;var e=lu,t=uu,n=(t.flags&8772)!=0;if(t.subtreeFlags&8772||n){n=M.T,M.T=null;var r=N.p;N.p=2;var i=Rl;Rl|=4;try{il(e,t.alternate,t)}finally{Rl=i,N.p=r,M.T=n}}cu=3}}function Wu(){if(cu===4||cu===3){cu=0,Te();var e=lu,t=uu,n=du,r=mu;t.subtreeFlags&10256||t.flags&10256?cu=5:(cu=0,uu=lu=null,Gu(e,e.pendingLanes));var i=e.pendingLanes;if(i===0&&(su=null),tt(n),t=t.stateNode,Fe&&typeof Fe.onCommitFiberRoot==`function`)try{Fe.onCommitFiberRoot(Pe,t,void 0,(t.current.flags&128)==128)}catch{}if(r!==null){t=M.T,i=N.p,N.p=2,M.T=null;try{for(var a=e.onRecoverableError,o=0;o<r.length;o++){var s=r[o];a(s.value,{componentStack:s.stack})}}finally{M.T=t,N.p=i}}du&3&&Ku(),cd(e),i=e.pendingLanes,n&261930&&i&42?e===gu?hu++:(hu=0,gu=e):hu=0,ld(0,!1)}}function Gu(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,sa(t)))}function Ku(){return Hu(),Uu(),Wu(),qu()}function qu(){if(cu!==5)return!1;var e=lu,t=fu;fu=0;var n=tt(du),r=M.T,a=N.p;try{N.p=32>n?32:n,M.T=null,n=pu,pu=null;var o=lu,s=du;if(cu=0,uu=lu=null,du=0,Rl&6)throw Error(i(331));var c=Rl;if(Rl|=4,Nl(o.current),Tl(o,o.current,s,n),Rl=c,ld(0,!1),Fe&&typeof Fe.onPostCommitFiberRoot==`function`)try{Fe.onPostCommitFiberRoot(Pe,o)}catch{}return!0}finally{N.p=a,M.T=r,Gu(e,t)}}function Ju(e,t,n){t=gi(n,t),t=Xs(e.stateNode,t,2),e=Ha(e,t,2),e!==null&&(Xe(e,2),cd(e))}function Yu(e,t,n){if(e.tag===3)Ju(e,e,n);else for(;t!==null;){if(t.tag===3){Ju(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError==`function`||typeof r.componentDidCatch==`function`&&(su===null||!su.has(r))){e=gi(n,e),n=Zs(2),r=Ha(t,n,2),r!==null&&(Qs(n,r,t,e),Xe(r,2),cd(r));break}}t=t.return}}function Xu(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new Ll;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(Kl=!0,i.add(n),e=Zu.bind(null,e,t,n),t.then(e,e))}function Zu(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,zl===e&&(Vl&n)===n&&(Jl===4||Jl===3&&(Vl&62914560)===Vl&&300>Ee()-ru?!(Rl&2)&&Eu(e,0):Zl|=n,$l===Vl&&($l=0)),cd(e)}function Qu(e,t){t===0&&(t=Je()),e=ti(e,t),e!==null&&(Xe(e,t),cd(e))}function $u(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Qu(e,n)}function ed(e,t){var n=0;switch(e.tag){case 31:case 13:var r=e.stateNode,a=e.memoizedState;a!==null&&(n=a.retryLane);break;case 19:r=e.stateNode;break;case 22:r=e.stateNode._retryCache;break;default:throw Error(i(314))}r!==null&&r.delete(t),Qu(e,n)}function td(e,t){return Se(e,t)}var nd=null,rd=null,id=!1,ad=!1,od=!1,sd=0;function cd(e){e!==rd&&e.next===null&&(rd===null?nd=rd=e:rd=rd.next=e),ad=!0,id||(id=!0,hd())}function ld(e,t){if(!od&&ad){od=!0;do for(var n=!1,r=nd;r!==null;){if(!t)if(e!==0){var i=r.pendingLanes;if(i===0)var a=0;else{var o=r.suspendedLanes,s=r.pingedLanes;a=(1<<31-Le(42|e)+1)-1,a&=i&~(o&~s),a=a&201326741?a&201326741|1:a?a|2:0}a!==0&&(n=!0,md(r,a))}else a=Vl,a=Ge(r,r===zl?a:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),!(a&3)||Ke(r,a)||(n=!0,md(r,a));r=r.next}while(n);od=!1}}function ud(){dd()}function dd(){ad=id=!1;var e=0;sd!==0&&Qd()&&(e=sd);for(var t=Ee(),n=null,r=nd;r!==null;){var i=r.next,a=fd(r,t);a===0?(r.next=null,n===null?nd=i:n.next=i,i===null&&(rd=n)):(n=r,(e!==0||a&3)&&(ad=!0)),r=i}cu!==0&&cu!==5||ld(e,!1),sd!==0&&(sd=0)}function fd(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,a=e.pendingLanes&-62914561;0<a;){var o=31-Le(a),s=1<<o,c=i[o];c===-1?((s&n)===0||(s&r)!==0)&&(i[o]=qe(s,t)):c<=t&&(e.expiredLanes|=s),a&=~s}if(t=zl,n=Vl,n=Ge(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r=e.callbackNode,n===0||e===t&&(Hl===2||Hl===9)||e.cancelPendingCommit!==null)return r!==null&&r!==null&&Ce(r),e.callbackNode=null,e.callbackPriority=0;if(!(n&3)||Ke(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(r!==null&&Ce(r),tt(n)){case 2:case 8:n=ke;break;case 32:n=Ae;break;case 268435456:n=je;break;default:n=Ae}return r=pd.bind(null,e),n=Se(n,r),e.callbackPriority=t,e.callbackNode=n,t}return r!==null&&r!==null&&Ce(r),e.callbackPriority=2,e.callbackNode=null,2}function pd(e,t){if(cu!==0&&cu!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(Ku()&&e.callbackNode!==n)return null;var r=Vl;return r=Ge(e,e===zl?r:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r===0?null:(bu(e,r,t),fd(e,Ee()),e.callbackNode!=null&&e.callbackNode===n?pd.bind(null,e):null)}function md(e,t){if(Ku())return null;bu(e,t,!0)}function hd(){nf(function(){Rl&6?Se(Oe,ud):dd()})}function gd(){if(sd===0){var e=ua;e===0&&(e=Ve,Ve<<=1,!(Ve&261888)&&(Ve=256)),sd=e}return sd}function _d(e){return e==null||typeof e==`symbol`||typeof e==`boolean`?null:typeof e==`function`?e:$t(``+e)}function vd(e,t){var n=t.ownerDocument.createElement(`input`);return n.name=t.name,n.value=t.value,e.id&&n.setAttribute(`form`,e.id),t.parentNode.insertBefore(n,t),e=new FormData(e),n.parentNode.removeChild(n),e}function yd(e,t,n,r,i){if(t===`submit`&&n&&n.stateNode===i){var a=_d((i[ot]||null).action),o=r.submitter;o&&(t=(t=o[ot]||null)?_d(t.formAction):o.getAttribute(`formAction`),t!==null&&(a=t,o=null));var s=new bn(`action`,`action`,null,r,i);e.push({event:s,listeners:[{instance:null,listener:function(){if(r.defaultPrevented){if(sd!==0){var e=o?vd(i,o):new FormData(i);Cs(n,{pending:!0,data:e,method:i.method,action:a},null,e)}}else typeof a==`function`&&(s.preventDefault(),e=o?vd(i,o):new FormData(i),Cs(n,{pending:!0,data:e,method:i.method,action:a},a,e))},currentTarget:i}]})}}for(var bd=0;bd<Kr.length;bd++){var xd=Kr[bd];qr(xd.toLowerCase(),`on`+(xd[0].toUpperCase()+xd.slice(1)))}qr(Rr,`onAnimationEnd`),qr(zr,`onAnimationIteration`),qr(Br,`onAnimationStart`),qr(`dblclick`,`onDoubleClick`),qr(`focusin`,`onFocus`),qr(`focusout`,`onBlur`),qr(Vr,`onTransitionRun`),qr(Hr,`onTransitionStart`),qr(Ur,`onTransitionCancel`),qr(Wr,`onTransitionEnd`),Tt(`onMouseEnter`,[`mouseout`,`mouseover`]),Tt(`onMouseLeave`,[`mouseout`,`mouseover`]),Tt(`onPointerEnter`,[`pointerout`,`pointerover`]),Tt(`onPointerLeave`,[`pointerout`,`pointerover`]),wt(`onChange`,`change click focusin focusout input keydown keyup selectionchange`.split(` `)),wt(`onSelect`,`focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange`.split(` `)),wt(`onBeforeInput`,[`compositionend`,`keypress`,`textInput`,`paste`]),wt(`onCompositionEnd`,`compositionend focusout keydown keypress keyup mousedown`.split(` `)),wt(`onCompositionStart`,`compositionstart focusout keydown keypress keyup mousedown`.split(` `)),wt(`onCompositionUpdate`,`compositionupdate focusout keydown keypress keyup mousedown`.split(` `));var Sd=`abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting`.split(` `),Cd=new Set(`beforetoggle cancel close invalid load scroll scrollend toggle`.split(` `).concat(Sd));function wd(e,t){t=(t&4)!=0;for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;a:{var a=void 0;if(t)for(var o=r.length-1;0<=o;o--){var s=r[o],c=s.instance,l=s.currentTarget;if(s=s.listener,c!==a&&i.isPropagationStopped())break a;a=s,i.currentTarget=l;try{a(i)}catch(e){Jr(e)}i.currentTarget=null,a=c}else for(o=0;o<r.length;o++){if(s=r[o],c=s.instance,l=s.currentTarget,s=s.listener,c!==a&&i.isPropagationStopped())break a;a=s,i.currentTarget=l;try{a(i)}catch(e){Jr(e)}i.currentTarget=null,a=c}}}}function Td(e,t){var n=t[ct];n===void 0&&(n=t[ct]=new Set);var r=e+`__bubble`;n.has(r)||(kd(t,e,2,!1),n.add(r))}function Ed(e,t,n){var r=0;t&&(r|=4),kd(n,e,r,t)}var Dd=`_reactListening`+Math.random().toString(36).slice(2);function Od(e){if(!e[Dd]){e[Dd]=!0,St.forEach(function(t){t!==`selectionchange`&&(Cd.has(t)||Ed(t,!1,e),Ed(t,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Dd]||(t[Dd]=!0,Ed(`selectionchange`,!1,t))}}function kd(e,t,n,r){switch(bp(t)){case 2:var i=mp;break;case 8:i=hp;break;default:i=gp}n=i.bind(null,t,n,e),i=void 0,!un||t!==`touchstart`&&t!==`touchmove`&&t!==`wheel`||(i=!0),r?i===void 0?e.addEventListener(t,n,!0):e.addEventListener(t,n,{capture:!0,passive:i}):i===void 0?e.addEventListener(t,n,!1):e.addEventListener(t,n,{passive:i})}function Ad(e,t,n,r,i){var a=r;if(!(t&1)&&!(t&2)&&r!==null)a:for(;;){if(r===null)return;var s=r.tag;if(s===3||s===4){var c=r.stateNode.containerInfo;if(c===i)break;if(s===4)for(s=r.return;s!==null;){var l=s.tag;if((l===3||l===4)&&s.stateNode.containerInfo===i)return;s=s.return}for(;c!==null;){if(s=mt(c),s===null)return;if(l=s.tag,l===5||l===6||l===26||l===27){r=a=s;continue a}c=c.parentNode}}r=r.return}sn(function(){var r=a,i=nn(n),s=[];a:{var c=Gr.get(e);if(c!==void 0){var l=bn,u=e;switch(e){case`keypress`:if(gn(n)===0)break a;case`keydown`:case`keyup`:l=Ln;break;case`focusin`:u=`focus`,l=kn;break;case`focusout`:u=`blur`,l=kn;break;case`beforeblur`:case`afterblur`:l=kn;break;case`click`:if(n.button===2)break a;case`auxclick`:case`dblclick`:case`mousedown`:case`mousemove`:case`mouseup`:case`mouseout`:case`mouseover`:case`contextmenu`:l=Dn;break;case`drag`:case`dragend`:case`dragenter`:case`dragexit`:case`dragleave`:case`dragover`:case`dragstart`:case`drop`:l=On;break;case`touchcancel`:case`touchend`:case`touchmove`:case`touchstart`:l=zn;break;case Rr:case zr:case Br:l=An;break;case Wr:l=Bn;break;case`scroll`:case`scrollend`:l=Sn;break;case`wheel`:l=Vn;break;case`copy`:case`cut`:case`paste`:l=jn;break;case`gotpointercapture`:case`lostpointercapture`:case`pointercancel`:case`pointerdown`:case`pointermove`:case`pointerout`:case`pointerover`:case`pointerup`:l=Rn;break;case`toggle`:case`beforetoggle`:l=Hn}var d=(t&4)!=0,f=!d&&(e===`scroll`||e===`scrollend`),p=d?c===null?null:c+`Capture`:c;d=[];for(var m=r,h;m!==null;){var g=m;if(h=g.stateNode,g=g.tag,g!==5&&g!==26&&g!==27||h===null||p===null||(g=cn(m,p),g!=null&&d.push(jd(m,g,h))),f)break;m=m.return}0<d.length&&(c=new l(c,u,null,n,i),s.push({event:c,listeners:d}))}}if(!(t&7)){a:{if(c=e===`mouseover`||e===`pointerover`,l=e===`mouseout`||e===`pointerout`,c&&n!==tn&&(u=n.relatedTarget||n.fromElement)&&(mt(u)||u[st]))break a;if((l||c)&&(c=i.window===i?i:(c=i.ownerDocument)?c.defaultView||c.parentWindow:window,l?(u=n.relatedTarget||n.toElement,l=r,u=u?mt(u):null,u!==null&&(f=o(u),d=u.tag,u!==f||d!==5&&d!==27&&d!==6)&&(u=null)):(l=null,u=r),l!==u)){if(d=Dn,g=`onMouseLeave`,p=`onMouseEnter`,m=`mouse`,(e===`pointerout`||e===`pointerover`)&&(d=Rn,g=`onPointerLeave`,p=`onPointerEnter`,m=`pointer`),f=l==null?c:vt(l),h=u==null?c:vt(u),c=new d(g,m+`leave`,l,n,i),c.target=f,c.relatedTarget=h,g=null,mt(i)===r&&(d=new d(p,m+`enter`,u,n,i),d.target=h,d.relatedTarget=f,g=d),f=g,l&&u)b:{for(d=Nd,p=l,m=u,h=0,g=p;g;g=d(g))h++;g=0;for(var _=m;_;_=d(_))g++;for(;0<h-g;)p=d(p),h--;for(;0<g-h;)m=d(m),g--;for(;h--;){if(p===m||m!==null&&p===m.alternate){d=p;break b}p=d(p),m=d(m)}d=null}else d=null;l!==null&&Pd(s,c,l,d,!1),u!==null&&f!==null&&Pd(s,f,u,d,!0)}}a:{if(c=r?vt(r):window,l=c.nodeName&&c.nodeName.toLowerCase(),l===`select`||l===`input`&&c.type===`file`)var v=cr;else if(nr(c))if(lr)v=vr;else{v=gr;var y=hr}else l=c.nodeName,!l||l.toLowerCase()!==`input`||c.type!==`checkbox`&&c.type!==`radio`?r&&Xt(r.elementType)&&(v=cr):v=_r;if(v&&=v(e,r)){rr(s,v,n,i);break a}y&&y(e,c,r),e===`focusout`&&r&&c.type===`number`&&r.memoizedProps.value!=null&&Ht(c,`number`,c.value)}switch(y=r?vt(r):window,e){case`focusin`:(nr(y)||y.contentEditable===`true`)&&(Or=y,kr=r,Ar=null);break;case`focusout`:Ar=kr=Or=null;break;case`mousedown`:jr=!0;break;case`contextmenu`:case`mouseup`:case`dragend`:jr=!1,Mr(s,n,i);break;case`selectionchange`:if(Dr)break;case`keydown`:case`keyup`:Mr(s,n,i)}var b;if(Wn)b:{switch(e){case`compositionstart`:var x=`onCompositionStart`;break b;case`compositionend`:x=`onCompositionEnd`;break b;case`compositionupdate`:x=`onCompositionUpdate`;break b}x=void 0}else Qn?Xn(e,n)&&(x=`onCompositionEnd`):e===`keydown`&&n.keyCode===229&&(x=`onCompositionStart`);x&&(qn&&n.locale!==`ko`&&(Qn||x!==`onCompositionStart`?x===`onCompositionEnd`&&Qn&&(b=hn()):(fn=i,pn=`value`in fn?fn.value:fn.textContent,Qn=!0)),y=Md(r,x),0<y.length&&(x=new Mn(x,e,null,n,i),s.push({event:x,listeners:y}),b?x.data=b:(b=Zn(n),b!==null&&(x.data=b)))),(b=Kn?$n(e,n):er(e,n))&&(x=Md(r,`onBeforeInput`),0<x.length&&(y=new Mn(`onBeforeInput`,`beforeinput`,null,n,i),s.push({event:y,listeners:x}),y.data=b)),yd(s,e,r,n,i)}wd(s,t)})}function jd(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Md(e,t){for(var n=t+`Capture`,r=[];e!==null;){var i=e,a=i.stateNode;if(i=i.tag,i!==5&&i!==26&&i!==27||a===null||(i=cn(e,n),i!=null&&r.unshift(jd(e,i,a)),i=cn(e,t),i!=null&&r.push(jd(e,i,a))),e.tag===3)return r;e=e.return}return[]}function Nd(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Pd(e,t,n,r,i){for(var a=t._reactName,o=[];n!==null&&n!==r;){var s=n,c=s.alternate,l=s.stateNode;if(s=s.tag,c!==null&&c===r)break;s!==5&&s!==26&&s!==27||l===null||(c=l,i?(l=cn(n,a),l!=null&&o.unshift(jd(n,l,c))):i||(l=cn(n,a),l!=null&&o.push(jd(n,l,c)))),n=n.return}o.length!==0&&e.push({event:t,listeners:o})}var Fd=/\r\n?/g,Id=/\u0000|\uFFFD/g;function Ld(e){return(typeof e==`string`?e:``+e).replace(Fd,`
|
|
10
|
+
`).replace(Id,``)}function Rd(e,t){return t=Ld(t),Ld(e)===t}function zd(e,t,n,r,a,o){switch(n){case`children`:typeof r==`string`?t===`body`||t===`textarea`&&r===``||Kt(e,r):(typeof r==`number`||typeof r==`bigint`)&&t!==`body`&&Kt(e,``+r);break;case`className`:At(e,`class`,r);break;case`tabIndex`:At(e,`tabindex`,r);break;case`dir`:case`role`:case`viewBox`:case`width`:case`height`:At(e,n,r);break;case`style`:Yt(e,r,o);break;case`data`:if(t!==`object`){At(e,`data`,r);break}case`src`:case`href`:if(r===``&&(t!==`a`||n!==`href`)){e.removeAttribute(n);break}if(r==null||typeof r==`function`||typeof r==`symbol`||typeof r==`boolean`){e.removeAttribute(n);break}r=$t(``+r),e.setAttribute(n,r);break;case`action`:case`formAction`:if(typeof r==`function`){e.setAttribute(n,`javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')`);break}else typeof o==`function`&&(n===`formAction`?(t!==`input`&&zd(e,t,`name`,a.name,a,null),zd(e,t,`formEncType`,a.formEncType,a,null),zd(e,t,`formMethod`,a.formMethod,a,null),zd(e,t,`formTarget`,a.formTarget,a,null)):(zd(e,t,`encType`,a.encType,a,null),zd(e,t,`method`,a.method,a,null),zd(e,t,`target`,a.target,a,null)));if(r==null||typeof r==`symbol`||typeof r==`boolean`){e.removeAttribute(n);break}r=$t(``+r),e.setAttribute(n,r);break;case`onClick`:r!=null&&(e.onclick=en);break;case`onScroll`:r!=null&&Td(`scroll`,e);break;case`onScrollEnd`:r!=null&&Td(`scrollend`,e);break;case`dangerouslySetInnerHTML`:if(r!=null){if(typeof r!=`object`||!(`__html`in r))throw Error(i(61));if(n=r.__html,n!=null){if(a.children!=null)throw Error(i(60));e.innerHTML=n}}break;case`multiple`:e.multiple=r&&typeof r!=`function`&&typeof r!=`symbol`;break;case`muted`:e.muted=r&&typeof r!=`function`&&typeof r!=`symbol`;break;case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`defaultValue`:case`defaultChecked`:case`innerHTML`:case`ref`:break;case`autoFocus`:break;case`xlinkHref`:if(r==null||typeof r==`function`||typeof r==`boolean`||typeof r==`symbol`){e.removeAttribute(`xlink:href`);break}n=$t(``+r),e.setAttributeNS(`http://www.w3.org/1999/xlink`,`xlink:href`,n);break;case`contentEditable`:case`spellCheck`:case`draggable`:case`value`:case`autoReverse`:case`externalResourcesRequired`:case`focusable`:case`preserveAlpha`:r!=null&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,``+r):e.removeAttribute(n);break;case`inert`:case`allowFullScreen`:case`async`:case`autoPlay`:case`controls`:case`default`:case`defer`:case`disabled`:case`disablePictureInPicture`:case`disableRemotePlayback`:case`formNoValidate`:case`hidden`:case`loop`:case`noModule`:case`noValidate`:case`open`:case`playsInline`:case`readOnly`:case`required`:case`reversed`:case`scoped`:case`seamless`:case`itemScope`:r&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,``):e.removeAttribute(n);break;case`capture`:case`download`:!0===r?e.setAttribute(n,``):!1!==r&&r!=null&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,r):e.removeAttribute(n);break;case`cols`:case`rows`:case`size`:case`span`:r!=null&&typeof r!=`function`&&typeof r!=`symbol`&&!isNaN(r)&&1<=r?e.setAttribute(n,r):e.removeAttribute(n);break;case`rowSpan`:case`start`:r==null||typeof r==`function`||typeof r==`symbol`||isNaN(r)?e.removeAttribute(n):e.setAttribute(n,r);break;case`popover`:Td(`beforetoggle`,e),Td(`toggle`,e),kt(e,`popover`,r);break;case`xlinkActuate`:jt(e,`http://www.w3.org/1999/xlink`,`xlink:actuate`,r);break;case`xlinkArcrole`:jt(e,`http://www.w3.org/1999/xlink`,`xlink:arcrole`,r);break;case`xlinkRole`:jt(e,`http://www.w3.org/1999/xlink`,`xlink:role`,r);break;case`xlinkShow`:jt(e,`http://www.w3.org/1999/xlink`,`xlink:show`,r);break;case`xlinkTitle`:jt(e,`http://www.w3.org/1999/xlink`,`xlink:title`,r);break;case`xlinkType`:jt(e,`http://www.w3.org/1999/xlink`,`xlink:type`,r);break;case`xmlBase`:jt(e,`http://www.w3.org/XML/1998/namespace`,`xml:base`,r);break;case`xmlLang`:jt(e,`http://www.w3.org/XML/1998/namespace`,`xml:lang`,r);break;case`xmlSpace`:jt(e,`http://www.w3.org/XML/1998/namespace`,`xml:space`,r);break;case`is`:kt(e,`is`,r);break;case`innerText`:case`textContent`:break;default:(!(2<n.length)||n[0]!==`o`&&n[0]!==`O`||n[1]!==`n`&&n[1]!==`N`)&&(n=Zt.get(n)||n,kt(e,n,r))}}function Bd(e,t,n,r,a,o){switch(n){case`style`:Yt(e,r,o);break;case`dangerouslySetInnerHTML`:if(r!=null){if(typeof r!=`object`||!(`__html`in r))throw Error(i(61));if(n=r.__html,n!=null){if(a.children!=null)throw Error(i(60));e.innerHTML=n}}break;case`children`:typeof r==`string`?Kt(e,r):(typeof r==`number`||typeof r==`bigint`)&&Kt(e,``+r);break;case`onScroll`:r!=null&&Td(`scroll`,e);break;case`onScrollEnd`:r!=null&&Td(`scrollend`,e);break;case`onClick`:r!=null&&(e.onclick=en);break;case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`innerHTML`:case`ref`:break;case`innerText`:case`textContent`:break;default:if(!Ct.hasOwnProperty(n))a:{if(n[0]===`o`&&n[1]===`n`&&(a=n.endsWith(`Capture`),t=n.slice(2,a?n.length-7:void 0),o=e[ot]||null,o=o==null?null:o[n],typeof o==`function`&&e.removeEventListener(t,o,a),typeof r==`function`)){typeof o!=`function`&&o!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(t,r,a);break a}n in e?e[n]=r:!0===r?e.setAttribute(n,``):kt(e,n,r)}}}function Vd(e,t,n){switch(t){case`div`:case`span`:case`svg`:case`path`:case`a`:case`g`:case`p`:case`li`:break;case`img`:Td(`error`,e),Td(`load`,e);var r=!1,a=!1,o;for(o in n)if(n.hasOwnProperty(o)){var s=n[o];if(s!=null)switch(o){case`src`:r=!0;break;case`srcSet`:a=!0;break;case`children`:case`dangerouslySetInnerHTML`:throw Error(i(137,t));default:zd(e,t,o,s,n,null)}}a&&zd(e,t,`srcSet`,n.srcSet,n,null),r&&zd(e,t,`src`,n.src,n,null);return;case`input`:Td(`invalid`,e);var c=o=s=a=null,l=null,u=null;for(r in n)if(n.hasOwnProperty(r)){var d=n[r];if(d!=null)switch(r){case`name`:a=d;break;case`type`:s=d;break;case`checked`:l=d;break;case`defaultChecked`:u=d;break;case`value`:o=d;break;case`defaultValue`:c=d;break;case`children`:case`dangerouslySetInnerHTML`:if(d!=null)throw Error(i(137,t));break;default:zd(e,t,r,d,n,null)}}Vt(e,o,c,l,u,s,a,!1);return;case`select`:for(a in Td(`invalid`,e),r=s=o=null,n)if(n.hasOwnProperty(a)&&(c=n[a],c!=null))switch(a){case`value`:o=c;break;case`defaultValue`:s=c;break;case`multiple`:r=c;default:zd(e,t,a,c,n,null)}t=o,n=s,e.multiple=!!r,t==null?n!=null&&Ut(e,!!r,n,!0):Ut(e,!!r,t,!1);return;case`textarea`:for(s in Td(`invalid`,e),o=a=r=null,n)if(n.hasOwnProperty(s)&&(c=n[s],c!=null))switch(s){case`value`:r=c;break;case`defaultValue`:a=c;break;case`children`:o=c;break;case`dangerouslySetInnerHTML`:if(c!=null)throw Error(i(91));break;default:zd(e,t,s,c,n,null)}Gt(e,r,a,o);return;case`option`:for(l in n)if(n.hasOwnProperty(l)&&(r=n[l],r!=null))switch(l){case`selected`:e.selected=r&&typeof r!=`function`&&typeof r!=`symbol`;break;default:zd(e,t,l,r,n,null)}return;case`dialog`:Td(`beforetoggle`,e),Td(`toggle`,e),Td(`cancel`,e),Td(`close`,e);break;case`iframe`:case`object`:Td(`load`,e);break;case`video`:case`audio`:for(r=0;r<Sd.length;r++)Td(Sd[r],e);break;case`image`:Td(`error`,e),Td(`load`,e);break;case`details`:Td(`toggle`,e);break;case`embed`:case`source`:case`link`:Td(`error`,e),Td(`load`,e);case`area`:case`base`:case`br`:case`col`:case`hr`:case`keygen`:case`meta`:case`param`:case`track`:case`wbr`:case`menuitem`:for(u in n)if(n.hasOwnProperty(u)&&(r=n[u],r!=null))switch(u){case`children`:case`dangerouslySetInnerHTML`:throw Error(i(137,t));default:zd(e,t,u,r,n,null)}return;default:if(Xt(t)){for(d in n)n.hasOwnProperty(d)&&(r=n[d],r!==void 0&&Bd(e,t,d,r,n,void 0));return}}for(c in n)n.hasOwnProperty(c)&&(r=n[c],r!=null&&zd(e,t,c,r,n,null))}function Hd(e,t,n,r){switch(t){case`div`:case`span`:case`svg`:case`path`:case`a`:case`g`:case`p`:case`li`:break;case`input`:var a=null,o=null,s=null,c=null,l=null,u=null,d=null;for(m in n){var f=n[m];if(n.hasOwnProperty(m)&&f!=null)switch(m){case`checked`:break;case`value`:break;case`defaultValue`:l=f;default:r.hasOwnProperty(m)||zd(e,t,m,null,r,f)}}for(var p in r){var m=r[p];if(f=n[p],r.hasOwnProperty(p)&&(m!=null||f!=null))switch(p){case`type`:o=m;break;case`name`:a=m;break;case`checked`:u=m;break;case`defaultChecked`:d=m;break;case`value`:s=m;break;case`defaultValue`:c=m;break;case`children`:case`dangerouslySetInnerHTML`:if(m!=null)throw Error(i(137,t));break;default:m!==f&&zd(e,t,p,m,r,f)}}Bt(e,s,c,l,u,d,o,a);return;case`select`:for(o in m=s=c=p=null,n)if(l=n[o],n.hasOwnProperty(o)&&l!=null)switch(o){case`value`:break;case`multiple`:m=l;default:r.hasOwnProperty(o)||zd(e,t,o,null,r,l)}for(a in r)if(o=r[a],l=n[a],r.hasOwnProperty(a)&&(o!=null||l!=null))switch(a){case`value`:p=o;break;case`defaultValue`:c=o;break;case`multiple`:s=o;default:o!==l&&zd(e,t,a,o,r,l)}t=c,n=s,r=m,p==null?!!r!=!!n&&(t==null?Ut(e,!!n,n?[]:``,!1):Ut(e,!!n,t,!0)):Ut(e,!!n,p,!1);return;case`textarea`:for(c in m=p=null,n)if(a=n[c],n.hasOwnProperty(c)&&a!=null&&!r.hasOwnProperty(c))switch(c){case`value`:break;case`children`:break;default:zd(e,t,c,null,r,a)}for(s in r)if(a=r[s],o=n[s],r.hasOwnProperty(s)&&(a!=null||o!=null))switch(s){case`value`:p=a;break;case`defaultValue`:m=a;break;case`children`:break;case`dangerouslySetInnerHTML`:if(a!=null)throw Error(i(91));break;default:a!==o&&zd(e,t,s,a,r,o)}Wt(e,p,m);return;case`option`:for(var h in n)if(p=n[h],n.hasOwnProperty(h)&&p!=null&&!r.hasOwnProperty(h))switch(h){case`selected`:e.selected=!1;break;default:zd(e,t,h,null,r,p)}for(l in r)if(p=r[l],m=n[l],r.hasOwnProperty(l)&&p!==m&&(p!=null||m!=null))switch(l){case`selected`:e.selected=p&&typeof p!=`function`&&typeof p!=`symbol`;break;default:zd(e,t,l,p,r,m)}return;case`img`:case`link`:case`area`:case`base`:case`br`:case`col`:case`embed`:case`hr`:case`keygen`:case`meta`:case`param`:case`source`:case`track`:case`wbr`:case`menuitem`:for(var g in n)p=n[g],n.hasOwnProperty(g)&&p!=null&&!r.hasOwnProperty(g)&&zd(e,t,g,null,r,p);for(u in r)if(p=r[u],m=n[u],r.hasOwnProperty(u)&&p!==m&&(p!=null||m!=null))switch(u){case`children`:case`dangerouslySetInnerHTML`:if(p!=null)throw Error(i(137,t));break;default:zd(e,t,u,p,r,m)}return;default:if(Xt(t)){for(var _ in n)p=n[_],n.hasOwnProperty(_)&&p!==void 0&&!r.hasOwnProperty(_)&&Bd(e,t,_,void 0,r,p);for(d in r)p=r[d],m=n[d],!r.hasOwnProperty(d)||p===m||p===void 0&&m===void 0||Bd(e,t,d,p,r,m);return}}for(var v in n)p=n[v],n.hasOwnProperty(v)&&p!=null&&!r.hasOwnProperty(v)&&zd(e,t,v,null,r,p);for(f in r)p=r[f],m=n[f],!r.hasOwnProperty(f)||p===m||p==null&&m==null||zd(e,t,f,p,r,m)}function Ud(e){switch(e){case`css`:case`script`:case`font`:case`img`:case`image`:case`input`:case`link`:return!0;default:return!1}}function Wd(){if(typeof performance.getEntriesByType==`function`){for(var e=0,t=0,n=performance.getEntriesByType(`resource`),r=0;r<n.length;r++){var i=n[r],a=i.transferSize,o=i.initiatorType,s=i.duration;if(a&&s&&Ud(o)){for(o=0,s=i.responseEnd,r+=1;r<n.length;r++){var c=n[r],l=c.startTime;if(l>s)break;var u=c.transferSize,d=c.initiatorType;u&&Ud(d)&&(c=c.responseEnd,o+=u*(c<s?1:(s-l)/(c-l)))}if(--r,t+=8*(a+o)/(i.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e==`number`)?e:5}var Gd=null,Kd=null;function qd(e){return e.nodeType===9?e:e.ownerDocument}function Jd(e){switch(e){case`http://www.w3.org/2000/svg`:return 1;case`http://www.w3.org/1998/Math/MathML`:return 2;default:return 0}}function Yd(e,t){if(e===0)switch(t){case`svg`:return 1;case`math`:return 2;default:return 0}return e===1&&t===`foreignObject`?0:e}function Xd(e,t){return e===`textarea`||e===`noscript`||typeof t.children==`string`||typeof t.children==`number`||typeof t.children==`bigint`||typeof t.dangerouslySetInnerHTML==`object`&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Zd=null;function Qd(){var e=window.event;return e&&e.type===`popstate`?e===Zd?!1:(Zd=e,!0):(Zd=null,!1)}var $d=typeof setTimeout==`function`?setTimeout:void 0,ef=typeof clearTimeout==`function`?clearTimeout:void 0,tf=typeof Promise==`function`?Promise:void 0,nf=typeof queueMicrotask==`function`?queueMicrotask:tf===void 0?$d:function(e){return tf.resolve(null).then(e).catch(rf)};function rf(e){setTimeout(function(){throw e})}function af(e){return e===`head`}function of(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&i.nodeType===8)if(n=i.data,n===`/$`||n===`/&`){if(r===0){e.removeChild(i),zp(t);return}r--}else if(n===`$`||n===`$?`||n===`$~`||n===`$!`||n===`&`)r++;else if(n===`html`)bf(e.ownerDocument.documentElement);else if(n===`head`){n=e.ownerDocument.head,bf(n);for(var a=n.firstChild;a;){var o=a.nextSibling,s=a.nodeName;a[ft]||s===`SCRIPT`||s===`STYLE`||s===`LINK`&&a.rel.toLowerCase()===`stylesheet`||n.removeChild(a),a=o}}else n===`body`&&bf(e.ownerDocument.body);n=i}while(n);zp(t)}function sf(e,t){var n=e;e=0;do{var r=n.nextSibling;if(n.nodeType===1?t?(n._stashedDisplay=n.style.display,n.style.display=`none`):(n.style.display=n._stashedDisplay||``,n.getAttribute(`style`)===``&&n.removeAttribute(`style`)):n.nodeType===3&&(t?(n._stashedText=n.nodeValue,n.nodeValue=``):n.nodeValue=n._stashedText||``),r&&r.nodeType===8)if(n=r.data,n===`/$`){if(e===0)break;e--}else n!==`$`&&n!==`$?`&&n!==`$~`&&n!==`$!`||e++;n=r}while(n)}function cf(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case`HTML`:case`HEAD`:case`BODY`:cf(n),pt(n);continue;case`SCRIPT`:case`STYLE`:continue;case`LINK`:if(n.rel.toLowerCase()===`stylesheet`)continue}e.removeChild(n)}}function lf(e,t,n,r){for(;e.nodeType===1;){var i=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!r&&(e.nodeName!==`INPUT`||e.type!==`hidden`))break}else if(!r)if(t===`input`&&e.type===`hidden`){var a=i.name==null?null:``+i.name;if(i.type===`hidden`&&e.getAttribute(`name`)===a)return e}else return e;else if(!e[ft])switch(t){case`meta`:if(!e.hasAttribute(`itemprop`))break;return e;case`link`:if(a=e.getAttribute(`rel`),a===`stylesheet`&&e.hasAttribute(`data-precedence`)||a!==i.rel||e.getAttribute(`href`)!==(i.href==null||i.href===``?null:i.href)||e.getAttribute(`crossorigin`)!==(i.crossOrigin==null?null:i.crossOrigin)||e.getAttribute(`title`)!==(i.title==null?null:i.title))break;return e;case`style`:if(e.hasAttribute(`data-precedence`))break;return e;case`script`:if(a=e.getAttribute(`src`),(a!==(i.src==null?null:i.src)||e.getAttribute(`type`)!==(i.type==null?null:i.type)||e.getAttribute(`crossorigin`)!==(i.crossOrigin==null?null:i.crossOrigin))&&a&&e.hasAttribute(`async`)&&!e.hasAttribute(`itemprop`))break;return e;default:return e}if(e=hf(e.nextSibling),e===null)break}return null}function uf(e,t,n){if(t===``)return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!==`INPUT`||e.type!==`hidden`)&&!n||(e=hf(e.nextSibling),e===null))return null;return e}function df(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!==`INPUT`||e.type!==`hidden`)&&!t||(e=hf(e.nextSibling),e===null))return null;return e}function ff(e){return e.data===`$?`||e.data===`$~`}function pf(e){return e.data===`$!`||e.data===`$?`&&e.ownerDocument.readyState!==`loading`}function mf(e,t){var n=e.ownerDocument;if(e.data===`$~`)e._reactRetry=t;else if(e.data!==`$?`||n.readyState!==`loading`)t();else{var r=function(){t(),n.removeEventListener(`DOMContentLoaded`,r)};n.addEventListener(`DOMContentLoaded`,r),e._reactRetry=r}}function hf(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t===`$`||t===`$!`||t===`$?`||t===`$~`||t===`&`||t===`F!`||t===`F`)break;if(t===`/$`||t===`/&`)return null}}return e}var gf=null;function _f(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n===`/$`||n===`/&`){if(t===0)return hf(e.nextSibling);t--}else n!==`$`&&n!==`$!`&&n!==`$?`&&n!==`$~`&&n!==`&`||t++}e=e.nextSibling}return null}function vf(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n===`$`||n===`$!`||n===`$?`||n===`$~`||n===`&`){if(t===0)return e;t--}else n!==`/$`&&n!==`/&`||t++}e=e.previousSibling}return null}function yf(e,t,n){switch(t=qd(n),e){case`html`:if(e=t.documentElement,!e)throw Error(i(452));return e;case`head`:if(e=t.head,!e)throw Error(i(453));return e;case`body`:if(e=t.body,!e)throw Error(i(454));return e;default:throw Error(i(451))}}function bf(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);pt(e)}var q=new Map,xf=new Set;function Sf(e){return typeof e.getRootNode==`function`?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var Cf=N.d;N.d={f:wf,r:Tf,D:Of,C:kf,L:Af,m:jf,X:Nf,S:Mf,M:Pf};function wf(){var e=Cf.f(),t=wu();return e||t}function Tf(e){var t=gt(e);t!==null&&t.tag===5&&t.type===`form`?G(t):Cf.r(e)}var Ef=typeof document>`u`?null:document;function Df(e,t,n){var r=Ef;if(r&&typeof t==`string`&&t){var i=zt(t);i=`link[rel="`+e+`"][href="`+i+`"]`,typeof n==`string`&&(i+=`[crossorigin="`+n+`"]`),xf.has(i)||(xf.add(i),e={rel:e,crossOrigin:n,href:t},r.querySelector(i)===null&&(t=r.createElement(`link`),Vd(t,`link`,e),xt(t),r.head.appendChild(t)))}}function Of(e){Cf.D(e),Df(`dns-prefetch`,e,null)}function kf(e,t){Cf.C(e,t),Df(`preconnect`,e,t)}function Af(e,t,n){Cf.L(e,t,n);var r=Ef;if(r&&e&&t){var i=`link[rel="preload"][as="`+zt(t)+`"]`;t===`image`&&n&&n.imageSrcSet?(i+=`[imagesrcset="`+zt(n.imageSrcSet)+`"]`,typeof n.imageSizes==`string`&&(i+=`[imagesizes="`+zt(n.imageSizes)+`"]`)):i+=`[href="`+zt(e)+`"]`;var a=i;switch(t){case`style`:a=If(e);break;case`script`:a=Bf(e)}q.has(a)||(e=f({rel:`preload`,href:t===`image`&&n&&n.imageSrcSet?void 0:e,as:t},n),q.set(a,e),r.querySelector(i)!==null||t===`style`&&r.querySelector(Lf(a))||t===`script`&&r.querySelector(Vf(a))||(t=r.createElement(`link`),Vd(t,`link`,e),xt(t),r.head.appendChild(t)))}}function jf(e,t){Cf.m(e,t);var n=Ef;if(n&&e){var r=t&&typeof t.as==`string`?t.as:`script`,i=`link[rel="modulepreload"][as="`+zt(r)+`"][href="`+zt(e)+`"]`,a=i;switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:a=Bf(e)}if(!q.has(a)&&(e=f({rel:`modulepreload`,href:e},t),q.set(a,e),n.querySelector(i)===null)){switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:if(n.querySelector(Vf(a)))return}r=n.createElement(`link`),Vd(r,`link`,e),xt(r),n.head.appendChild(r)}}}function Mf(e,t,n){Cf.S(e,t,n);var r=Ef;if(r&&e){var i=bt(r).hoistableStyles,a=If(e);t||=`default`;var o=i.get(a);if(!o){var s={loading:0,preload:null};if(o=r.querySelector(Lf(a)))s.loading=5;else{e=f({rel:`stylesheet`,href:e,"data-precedence":t},n),(n=q.get(a))&&Wf(e,n);var c=o=r.createElement(`link`);xt(c),Vd(c,`link`,e),c._p=new Promise(function(e,t){c.onload=e,c.onerror=t}),c.addEventListener(`load`,function(){s.loading|=1}),c.addEventListener(`error`,function(){s.loading|=2}),s.loading|=4,Uf(o,t,r)}o={type:`stylesheet`,instance:o,count:1,state:s},i.set(a,o)}}}function Nf(e,t){Cf.X(e,t);var n=Ef;if(n&&e){var r=bt(n).hoistableScripts,i=Bf(e),a=r.get(i);a||(a=n.querySelector(Vf(i)),a||(e=f({src:e,async:!0},t),(t=q.get(i))&&Gf(e,t),a=n.createElement(`script`),xt(a),Vd(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function Pf(e,t){Cf.M(e,t);var n=Ef;if(n&&e){var r=bt(n).hoistableScripts,i=Bf(e),a=r.get(i);a||(a=n.querySelector(Vf(i)),a||(e=f({src:e,async:!0,type:`module`},t),(t=q.get(i))&&Gf(e,t),a=n.createElement(`script`),xt(a),Vd(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function Ff(e,t,n,r){var a=(a=ce.current)?Sf(a):null;if(!a)throw Error(i(446));switch(e){case`meta`:case`title`:return null;case`style`:return typeof n.precedence==`string`&&typeof n.href==`string`?(t=If(n.href),n=bt(a).hoistableStyles,r=n.get(t),r||(r={type:`style`,instance:null,count:0,state:null},n.set(t,r)),r):{type:`void`,instance:null,count:0,state:null};case`link`:if(n.rel===`stylesheet`&&typeof n.href==`string`&&typeof n.precedence==`string`){e=If(n.href);var o=bt(a).hoistableStyles,s=o.get(e);if(s||(a=a.ownerDocument||a,s={type:`stylesheet`,instance:null,count:0,state:{loading:0,preload:null}},o.set(e,s),(o=a.querySelector(Lf(e)))&&!o._p&&(s.instance=o,s.state.loading=5),q.has(e)||(n={rel:`preload`,as:`style`,href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},q.set(e,n),o||zf(a,e,n,s.state))),t&&r===null)throw Error(i(528,``));return s}if(t&&r!==null)throw Error(i(529,``));return null;case`script`:return t=n.async,n=n.src,typeof n==`string`&&t&&typeof t!=`function`&&typeof t!=`symbol`?(t=Bf(n),n=bt(a).hoistableScripts,r=n.get(t),r||(r={type:`script`,instance:null,count:0,state:null},n.set(t,r)),r):{type:`void`,instance:null,count:0,state:null};default:throw Error(i(444,e))}}function If(e){return`href="`+zt(e)+`"`}function Lf(e){return`link[rel="stylesheet"][`+e+`]`}function Rf(e){return f({},e,{"data-precedence":e.precedence,precedence:null})}function zf(e,t,n,r){e.querySelector(`link[rel="preload"][as="style"][`+t+`]`)?r.loading=1:(t=e.createElement(`link`),r.preload=t,t.addEventListener(`load`,function(){return r.loading|=1}),t.addEventListener(`error`,function(){return r.loading|=2}),Vd(t,`link`,n),xt(t),e.head.appendChild(t))}function Bf(e){return`[src="`+zt(e)+`"]`}function Vf(e){return`script[async]`+e}function Hf(e,t,n){if(t.count++,t.instance===null)switch(t.type){case`style`:var r=e.querySelector(`style[data-href~="`+zt(n.href)+`"]`);if(r)return t.instance=r,xt(r),r;var a=f({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return r=(e.ownerDocument||e).createElement(`style`),xt(r),Vd(r,`style`,a),Uf(r,n.precedence,e),t.instance=r;case`stylesheet`:a=If(n.href);var o=e.querySelector(Lf(a));if(o)return t.state.loading|=4,t.instance=o,xt(o),o;r=Rf(n),(a=q.get(a))&&Wf(r,a),o=(e.ownerDocument||e).createElement(`link`),xt(o);var s=o;return s._p=new Promise(function(e,t){s.onload=e,s.onerror=t}),Vd(o,`link`,r),t.state.loading|=4,Uf(o,n.precedence,e),t.instance=o;case`script`:return o=Bf(n.src),(a=e.querySelector(Vf(o)))?(t.instance=a,xt(a),a):(r=n,(a=q.get(o))&&(r=f({},n),Gf(r,a)),e=e.ownerDocument||e,a=e.createElement(`script`),xt(a),Vd(a,`link`,r),e.head.appendChild(a),t.instance=a);case`void`:return null;default:throw Error(i(443,t.type))}else t.type===`stylesheet`&&!(t.state.loading&4)&&(r=t.instance,t.state.loading|=4,Uf(r,n.precedence,e));return t.instance}function Uf(e,t,n){for(var r=n.querySelectorAll(`link[rel="stylesheet"][data-precedence],style[data-precedence]`),i=r.length?r[r.length-1]:null,a=i,o=0;o<r.length;o++){var s=r[o];if(s.dataset.precedence===t)a=s;else if(a!==i)break}a?a.parentNode.insertBefore(e,a.nextSibling):(t=n.nodeType===9?n.head:n,t.insertBefore(e,t.firstChild))}function Wf(e,t){e.crossOrigin??=t.crossOrigin,e.referrerPolicy??=t.referrerPolicy,e.title??=t.title}function Gf(e,t){e.crossOrigin??=t.crossOrigin,e.referrerPolicy??=t.referrerPolicy,e.integrity??=t.integrity}var Kf=null;function qf(e,t,n){if(Kf===null){var r=new Map,i=Kf=new Map;i.set(n,r)}else i=Kf,r=i.get(n),r||(r=new Map,i.set(n,r));if(r.has(e))return r;for(r.set(e,null),n=n.getElementsByTagName(e),i=0;i<n.length;i++){var a=n[i];if(!(a[ft]||a[at]||e===`link`&&a.getAttribute(`rel`)===`stylesheet`)&&a.namespaceURI!==`http://www.w3.org/2000/svg`){var o=a.getAttribute(t)||``;o=e+o;var s=r.get(o);s?s.push(a):r.set(o,[a])}}return r}function Jf(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t===`title`?e.querySelector(`head > title`):null)}function Yf(e,t,n){if(n===1||t.itemProp!=null)return!1;switch(e){case`meta`:case`title`:return!0;case`style`:if(typeof t.precedence!=`string`||typeof t.href!=`string`||t.href===``)break;return!0;case`link`:if(typeof t.rel!=`string`||typeof t.href!=`string`||t.href===``||t.onLoad||t.onError)break;switch(t.rel){case`stylesheet`:return e=t.disabled,typeof t.precedence==`string`&&e==null;default:return!0}case`script`:if(t.async&&typeof t.async!=`function`&&typeof t.async!=`symbol`&&!t.onLoad&&!t.onError&&t.src&&typeof t.src==`string`)return!0}return!1}function Xf(e){return!(e.type===`stylesheet`&&!(e.state.loading&3))}function Zf(e,t,n,r){if(n.type===`stylesheet`&&(typeof r.media!=`string`||!1!==matchMedia(r.media).matches)&&!(n.state.loading&4)){if(n.instance===null){var i=If(r.href),a=t.querySelector(Lf(i));if(a){t=a._p,typeof t==`object`&&t&&typeof t.then==`function`&&(e.count++,e=ep.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=a,xt(a);return}a=t.ownerDocument||t,r=Rf(r),(i=q.get(i))&&Wf(r,i),a=a.createElement(`link`),xt(a);var o=a;o._p=new Promise(function(e,t){o.onload=e,o.onerror=t}),Vd(a,`link`,r),n.instance=a}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&!(n.state.loading&3)&&(e.count++,n=ep.bind(e),t.addEventListener(`load`,n),t.addEventListener(`error`,n))}}var Qf=0;function $f(e,t){return e.stylesheets&&e.count===0&&np(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var r=setTimeout(function(){if(e.stylesheets&&np(e,e.stylesheets),e.unsuspend){var t=e.unsuspend;e.unsuspend=null,t()}},6e4+t);0<e.imgBytes&&Qf===0&&(Qf=62500*Wd());var i=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&np(e,e.stylesheets),e.unsuspend)){var t=e.unsuspend;e.unsuspend=null,t()}},(e.imgBytes>Qf?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(r),clearTimeout(i)}}:null}function ep(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)np(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var tp=null;function np(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,tp=new Map,t.forEach(rp,e),tp=null,ep.call(e))}function rp(e,t){if(!(t.state.loading&4)){var n=tp.get(e);if(n)var r=n.get(null);else{n=new Map,tp.set(e,n);for(var i=e.querySelectorAll(`link[data-precedence],style[data-precedence]`),a=0;a<i.length;a++){var o=i[a];(o.nodeName===`LINK`||o.getAttribute(`media`)!==`not all`)&&(n.set(o.dataset.precedence,o),r=o)}r&&n.set(null,r)}i=t.instance,o=i.getAttribute(`data-precedence`),a=n.get(o)||r,a===r&&n.set(null,i),n.set(o,i),this.count++,r=ep.bind(this),i.addEventListener(`load`,r),i.addEventListener(`error`,r),a?a.parentNode.insertBefore(i,a.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(i,e.firstChild)),t.state.loading|=4}}var ip={$$typeof:b,Provider:null,Consumer:null,_currentValue:te,_currentValue2:te,_threadCount:0};function ap(e,t,n,r,i,a,o,s,c){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Ye(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ye(0),this.hiddenUpdates=Ye(null),this.identifierPrefix=r,this.onUncaughtError=i,this.onCaughtError=a,this.onRecoverableError=o,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=c,this.incompleteTransitions=new Map}function op(e,t,n,r,i,a,o,s,c,l,u,d){return e=new ap(e,t,n,o,c,l,u,d,s),t=1,!0===a&&(t|=24),a=oi(3,null,null,t),e.current=a,a.stateNode=e,t=oa(),t.refCount++,e.pooledCache=t,t.refCount++,a.memoizedState={element:r,isDehydrated:n,cache:t},za(a),e}function sp(e){return e?(e=ii,e):ii}function cp(e,t,n,r,i,a){i=sp(i),r.context===null?r.context=i:r.pendingContext=i,r=Va(t),r.payload={element:n},a=a===void 0?null:a,a!==null&&(r.callback=a),n=Ha(e,r,t),n!==null&&(yu(n,e,t),Ua(n,e,t))}function lp(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function up(e,t){lp(e,t),(e=e.alternate)&&lp(e,t)}function dp(e){if(e.tag===13||e.tag===31){var t=ti(e,67108864);t!==null&&yu(t,e,67108864),up(e,67108864)}}function fp(e){if(e.tag===13||e.tag===31){var t=_u();t=et(t);var n=ti(e,t);n!==null&&yu(n,e,t),up(e,t)}}var pp=!0;function mp(e,t,n,r){var i=M.T;M.T=null;var a=N.p;try{N.p=2,gp(e,t,n,r)}finally{N.p=a,M.T=i}}function hp(e,t,n,r){var i=M.T;M.T=null;var a=N.p;try{N.p=8,gp(e,t,n,r)}finally{N.p=a,M.T=i}}function gp(e,t,n,r){if(pp){var i=_p(r);if(i===null)Ad(e,t,r,vp,n),kp(e,r);else if(jp(i,e,t,n,r))r.stopPropagation();else if(kp(e,r),t&4&&-1<Op.indexOf(e)){for(;i!==null;){var a=gt(i);if(a!==null)switch(a.tag){case 3:if(a=a.stateNode,a.current.memoizedState.isDehydrated){var o=We(a.pendingLanes);if(o!==0){var s=a;for(s.pendingLanes|=2,s.entangledLanes|=2;o;){var c=1<<31-Le(o);s.entanglements[1]|=c,o&=~c}cd(a),!(Rl&6)&&(au=Ee()+500,ld(0,!1))}}break;case 31:case 13:s=ti(a,2),s!==null&&yu(s,a,2),wu(),up(a,2)}if(a=_p(r),a===null&&Ad(e,t,r,vp,n),a===i)break;i=a}i!==null&&r.stopPropagation()}else Ad(e,t,r,null,n)}}function _p(e){return e=nn(e),yp(e)}var vp=null;function yp(e){if(vp=null,e=mt(e),e!==null){var t=o(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=s(t),e!==null)return e;e=null}else if(n===31){if(e=c(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return vp=e,null}function bp(e){switch(e){case`beforetoggle`:case`cancel`:case`click`:case`close`:case`contextmenu`:case`copy`:case`cut`:case`auxclick`:case`dblclick`:case`dragend`:case`dragstart`:case`drop`:case`focusin`:case`focusout`:case`input`:case`invalid`:case`keydown`:case`keypress`:case`keyup`:case`mousedown`:case`mouseup`:case`paste`:case`pause`:case`play`:case`pointercancel`:case`pointerdown`:case`pointerup`:case`ratechange`:case`reset`:case`resize`:case`seeked`:case`submit`:case`toggle`:case`touchcancel`:case`touchend`:case`touchstart`:case`volumechange`:case`change`:case`selectionchange`:case`textInput`:case`compositionstart`:case`compositionend`:case`compositionupdate`:case`beforeblur`:case`afterblur`:case`beforeinput`:case`blur`:case`fullscreenchange`:case`focus`:case`hashchange`:case`popstate`:case`select`:case`selectstart`:return 2;case`drag`:case`dragenter`:case`dragexit`:case`dragleave`:case`dragover`:case`mousemove`:case`mouseout`:case`mouseover`:case`pointermove`:case`pointerout`:case`pointerover`:case`scroll`:case`touchmove`:case`wheel`:case`mouseenter`:case`mouseleave`:case`pointerenter`:case`pointerleave`:return 8;case`message`:switch(De()){case Oe:return 2;case ke:return 8;case Ae:case F:return 32;case je:return 268435456;default:return 32}default:return 32}}var xp=!1,Sp=null,Cp=null,wp=null,Tp=new Map,Ep=new Map,Dp=[],Op=`mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset`.split(` `);function kp(e,t){switch(e){case`focusin`:case`focusout`:Sp=null;break;case`dragenter`:case`dragleave`:Cp=null;break;case`mouseover`:case`mouseout`:wp=null;break;case`pointerover`:case`pointerout`:Tp.delete(t.pointerId);break;case`gotpointercapture`:case`lostpointercapture`:Ep.delete(t.pointerId)}}function Ap(e,t,n,r,i,a){return e===null||e.nativeEvent!==a?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:a,targetContainers:[i]},t!==null&&(t=gt(t),t!==null&&dp(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function jp(e,t,n,r,i){switch(t){case`focusin`:return Sp=Ap(Sp,e,t,n,r,i),!0;case`dragenter`:return Cp=Ap(Cp,e,t,n,r,i),!0;case`mouseover`:return wp=Ap(wp,e,t,n,r,i),!0;case`pointerover`:var a=i.pointerId;return Tp.set(a,Ap(Tp.get(a)||null,e,t,n,r,i)),!0;case`gotpointercapture`:return a=i.pointerId,Ep.set(a,Ap(Ep.get(a)||null,e,t,n,r,i)),!0}return!1}function Mp(e){var t=mt(e.target);if(t!==null){var n=o(t);if(n!==null){if(t=n.tag,t===13){if(t=s(n),t!==null){e.blockedOn=t,rt(e.priority,function(){fp(n)});return}}else if(t===31){if(t=c(n),t!==null){e.blockedOn=t,rt(e.priority,function(){fp(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Np(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=_p(e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);tn=r,n.target.dispatchEvent(r),tn=null}else return t=gt(n),t!==null&&dp(t),e.blockedOn=n,!1;t.shift()}return!0}function Pp(e,t,n){Np(e)&&n.delete(t)}function Fp(){xp=!1,Sp!==null&&Np(Sp)&&(Sp=null),Cp!==null&&Np(Cp)&&(Cp=null),wp!==null&&Np(wp)&&(wp=null),Tp.forEach(Pp),Ep.forEach(Pp)}function Ip(e,n){e.blockedOn===n&&(e.blockedOn=null,xp||(xp=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,Fp)))}var Lp=null;function Rp(e){Lp!==e&&(Lp=e,t.unstable_scheduleCallback(t.unstable_NormalPriority,function(){Lp===e&&(Lp=null);for(var t=0;t<e.length;t+=3){var n=e[t],r=e[t+1],i=e[t+2];if(typeof r!=`function`){if(yp(r||n)===null)continue;break}var a=gt(n);a!==null&&(e.splice(t,3),t-=3,Cs(a,{pending:!0,data:i,method:n.method,action:r},r,i))}}))}function zp(e){function t(t){return Ip(t,e)}Sp!==null&&Ip(Sp,e),Cp!==null&&Ip(Cp,e),wp!==null&&Ip(wp,e),Tp.forEach(t),Ep.forEach(t);for(var n=0;n<Dp.length;n++){var r=Dp[n];r.blockedOn===e&&(r.blockedOn=null)}for(;0<Dp.length&&(n=Dp[0],n.blockedOn===null);)Mp(n),n.blockedOn===null&&Dp.shift();if(n=(e.ownerDocument||e).$$reactFormReplay,n!=null)for(r=0;r<n.length;r+=3){var i=n[r],a=n[r+1],o=i[ot]||null;if(typeof a==`function`)o||Rp(n);else if(o){var s=null;if(a&&a.hasAttribute(`formAction`)){if(i=a,o=a[ot]||null)s=o.formAction;else if(yp(i)!==null)continue}else s=o.action;typeof s==`function`?n[r+1]=s:(n.splice(r,3),r-=3),Rp(n)}}}function Bp(){function e(e){e.canIntercept&&e.info===`react-transition`&&e.intercept({handler:function(){return new Promise(function(e){return i=e})},focusReset:`manual`,scroll:`manual`})}function t(){i!==null&&(i(),i=null),r||setTimeout(n,20)}function n(){if(!r&&!navigation.transition){var e=navigation.currentEntry;e&&e.url!=null&&navigation.navigate(e.url,{state:e.getState(),info:`react-transition`,history:`replace`})}}if(typeof navigation==`object`){var r=!1,i=null;return navigation.addEventListener(`navigate`,e),navigation.addEventListener(`navigatesuccess`,t),navigation.addEventListener(`navigateerror`,t),setTimeout(n,100),function(){r=!0,navigation.removeEventListener(`navigate`,e),navigation.removeEventListener(`navigatesuccess`,t),navigation.removeEventListener(`navigateerror`,t),i!==null&&(i(),i=null)}}}function Vp(e){this._internalRoot=e}Hp.prototype.render=Vp.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(i(409));var n=t.current;cp(n,_u(),e,t,null,null)},Hp.prototype.unmount=Vp.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;cp(e.current,2,null,e,null,null),wu(),t[st]=null}};function Hp(e){this._internalRoot=e}Hp.prototype.unstable_scheduleHydration=function(e){if(e){var t=nt();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Dp.length&&t!==0&&t<Dp[n].priority;n++);Dp.splice(n,0,e),n===0&&Mp(e)}};var Up=n.version;if(Up!==`19.2.5`)throw Error(i(527,Up,`19.2.5`));N.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render==`function`?Error(i(188)):(e=Object.keys(e).join(`,`),Error(i(268,e)));return e=u(t),e=e===null?null:d(e),e=e===null?null:e.stateNode,e};var Wp={bundleType:0,version:`19.2.5`,rendererPackageName:`react-dom`,currentDispatcherRef:M,reconcilerVersion:`19.2.5`};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`){var Gp=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Gp.isDisabled&&Gp.supportsFiber)try{Pe=Gp.inject(Wp),Fe=Gp}catch{}}e.createRoot=function(e,t){if(!a(e))throw Error(i(299));var n=!1,r=``,o=Gs,s=Ks,c=qs;return t!=null&&(!0===t.unstable_strictMode&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onUncaughtError!==void 0&&(o=t.onUncaughtError),t.onCaughtError!==void 0&&(s=t.onCaughtError),t.onRecoverableError!==void 0&&(c=t.onRecoverableError)),t=op(e,1,!1,null,null,n,r,null,o,s,c,Bp),e[st]=t.current,Od(e),new Vp(t)}})),xt=ut(((e,t)=>{function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>`u`||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!=`function`))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}n(),t.exports=bt()})),St=e=>e.replace(/([a-z0-9])([A-Z])/g,`$1-$2`).toLowerCase(),Ct=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,t,n)=>n?n.toUpperCase():t.toLowerCase()),wt=e=>{let t=Ct(e);return t.charAt(0).toUpperCase()+t.slice(1)},Tt=(...e)=>e.filter((e,t,n)=>!!e&&e.trim()!==``&&n.indexOf(e)===t).join(` `).trim(),Et=e=>{for(let t in e)if(t.startsWith(`aria-`)||t===`role`||t===`title`)return!0},Dt={xmlns:`http://www.w3.org/2000/svg`,width:24,height:24,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:2,strokeLinecap:`round`,strokeLinejoin:`round`},L=pt(ht()),Ot=(0,L.forwardRef)(({color:e=`currentColor`,size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:i=``,children:a,iconNode:o,...s},c)=>(0,L.createElement)(`svg`,{ref:c,...Dt,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:Tt(`lucide`,i),...!a&&!Et(s)&&{"aria-hidden":`true`},...s},[...o.map(([e,t])=>(0,L.createElement)(e,t)),...Array.isArray(a)?a:[a]])),kt=(e,t)=>{let n=(0,L.forwardRef)(({className:n,...r},i)=>(0,L.createElement)(Ot,{ref:i,iconNode:t,className:Tt(`lucide-${St(wt(e))}`,`lucide-${e}`,n),...r}));return n.displayName=wt(e),n},At=kt(`file-plus-2`,[[`path`,{d:`M4 22h14a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v4`,key:`1pf5j1`}],[`path`,{d:`M14 2v4a2 2 0 0 0 2 2h4`,key:`tnqrlb`}],[`path`,{d:`M3 15h6`,key:`4e2qda`}],[`path`,{d:`M6 12v6`,key:`1u72j0`}]]),jt=kt(`file-text`,[[`path`,{d:`M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z`,key:`1rqfz7`}],[`path`,{d:`M14 2v4a2 2 0 0 0 2 2h4`,key:`tnqrlb`}],[`path`,{d:`M10 9H8`,key:`b1mrlr`}],[`path`,{d:`M16 13H8`,key:`t4e002`}],[`path`,{d:`M16 17H8`,key:`z1uh3a`}]]),Mt=kt(`files`,[[`path`,{d:`M15 2a2 2 0 0 1 1.414.586l4 4A2 2 0 0 1 21 8v7a2 2 0 0 1-2 2h-8a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2z`,key:`1vo8kb`}],[`path`,{d:`M15 2v4a2 2 0 0 0 2 2h4`,key:`sud9ri`}],[`path`,{d:`M5 7a2 2 0 0 0-2 2v11a2 2 0 0 0 2 2h8a2 2 0 0 0 1.732-1`,key:`l4dndm`}]]),Nt=kt(`maximize-2`,[[`path`,{d:`M15 3h6v6`,key:`1q9fwt`}],[`path`,{d:`m21 3-7 7`,key:`1l2asr`}],[`path`,{d:`m3 21 7-7`,key:`tjx5ai`}],[`path`,{d:`M9 21H3v-6`,key:`wtvkvv`}]]),Pt=kt(`minimize-2`,[[`path`,{d:`m14 10 7-7`,key:`oa77jy`}],[`path`,{d:`M20 10h-6V4`,key:`mjg0md`}],[`path`,{d:`m3 21 7-7`,key:`tjx5ai`}],[`path`,{d:`M4 14h6v6`,key:`rmj7iw`}]]),Ft=kt(`refresh-cw`,[[`path`,{d:`M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8`,key:`v9h5vc`}],[`path`,{d:`M21 3v5h-5`,key:`1q7to0`}],[`path`,{d:`M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16`,key:`3uifl3`}],[`path`,{d:`M8 16H3v5`,key:`1cv678`}]]),It=kt(`save`,[[`path`,{d:`M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z`,key:`1c8476`}],[`path`,{d:`M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7`,key:`1ydtos`}],[`path`,{d:`M7 3v4a1 1 0 0 0 1 1h7`,key:`t51u73`}]]),Lt=kt(`trash-2`,[[`path`,{d:`M10 11v6`,key:`nco0om`}],[`path`,{d:`M14 11v6`,key:`outv1u`}],[`path`,{d:`M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6`,key:`miytrc`}],[`path`,{d:`M3 6h18`,key:`d0wm0j`}],[`path`,{d:`M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2`,key:`e791ji`}]]),Rt=kt(`triangle-alert`,[[`path`,{d:`m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3`,key:`wmoenq`}],[`path`,{d:`M12 9v4`,key:`juzpu7`}],[`path`,{d:`M12 17h.01`,key:`p32p05`}]]),zt=xt();async function Bt(){return(await Qt(`/api/context-files`)).files}async function Vt(e){return(await Qt(`/api/context-files/${encodeURIComponent(e)}`)).file}async function Ht(e){return(await Qt(`/api/context-files`,{method:`POST`,headers:{"content-type":`application/json`},body:JSON.stringify(e)})).file}async function Ut(e,t={}){return(await Qt(`/api/context-files/${encodeURIComponent(e)}/link-from-plugin`,{method:`POST`,headers:{"content-type":`application/json`},body:JSON.stringify(t)})).file}async function Wt(e,t){return(await Qt(`/api/context-files/${encodeURIComponent(e)}`,{method:`PUT`,headers:{"content-type":`application/json`},body:JSON.stringify(t)})).file}async function Gt(e,t){return(await Qt(`/api/context-files/${encodeURIComponent(e)}`,{method:`PATCH`,headers:{"content-type":`application/json`},body:JSON.stringify(t)})).file}async function Kt(e,t){await Qt(`/api/context-files/${encodeURIComponent(e)}`,{method:`DELETE`,headers:{"content-type":`application/json`},body:JSON.stringify({deleteFile:t})})}async function qt(e){return Qt(`/api/context-files/${encodeURIComponent(e)}/revisions`)}async function Jt(e,t=`source`,n=`working`){let r=new URLSearchParams({base:t,target:n});return Qt(`/api/context-files/${encodeURIComponent(e)}/diff?${r.toString()}`)}async function Yt(e){return(await Qt(`/api/context-files/${encodeURIComponent(e)}/reset-to-source`,{method:`POST`,headers:{"content-type":`application/json`},body:`{}`})).file}async function Xt(e){return(await Qt(`/api/context-files/${encodeURIComponent(e)}/adopt-source`,{method:`POST`,headers:{"content-type":`application/json`},body:`{}`})).file}async function Zt(e,t){return(await Qt(`/api/context-files/${encodeURIComponent(e)}/restore-revision`,{method:`POST`,headers:{"content-type":`application/json`},body:JSON.stringify({revisionId:t})})).file}async function Qt(e,t={}){let n=await fetch(e,{credentials:`same-origin`,...t,headers:{accept:`application/json`,...t.headers}}),r=await n.json().catch(()=>({}));if(!n.ok){let e=r&&typeof r==`object`&&`error`in r?String(r.error):n.statusText,t=Error(e);throw t.status=n.status,t.data=r,t}return r}var $t=pt(ut(((e,t)=>{var n=function(e){var t=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,n=0,r={},i={manual:e.Prism&&e.Prism.manual,disableWorkerMessageHandler:e.Prism&&e.Prism.disableWorkerMessageHandler,util:{encode:function e(t){return t instanceof a?new a(t.type,e(t.content),t.alias):Array.isArray(t)?t.map(e):t.replace(/&/g,`&`).replace(/</g,`<`).replace(/\u00a0/g,` `)},type:function(e){return Object.prototype.toString.call(e).slice(8,-1)},objId:function(e){return e.__id||Object.defineProperty(e,`__id`,{value:++n}),e.__id},clone:function e(t,n){n||={};var r,a;switch(i.util.type(t)){case`Object`:if(a=i.util.objId(t),n[a])return n[a];for(var o in r={},n[a]=r,t)t.hasOwnProperty(o)&&(r[o]=e(t[o],n));return r;case`Array`:return a=i.util.objId(t),n[a]?n[a]:(r=[],n[a]=r,t.forEach(function(t,i){r[i]=e(t,n)}),r);default:return t}},getLanguage:function(e){for(;e;){var n=t.exec(e.className);if(n)return n[1].toLowerCase();e=e.parentElement}return`none`},setLanguage:function(e,n){e.className=e.className.replace(RegExp(t,`gi`),``),e.classList.add(`language-`+n)},currentScript:function(){if(typeof document>`u`)return null;if(document.currentScript&&document.currentScript.tagName===`SCRIPT`)return document.currentScript;try{throw Error()}catch(r){var e=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(r.stack)||[])[1];if(e){var t=document.getElementsByTagName(`script`);for(var n in t)if(t[n].src==e)return t[n]}return null}},isActive:function(e,t,n){for(var r=`no-`+t;e;){var i=e.classList;if(i.contains(t))return!0;if(i.contains(r))return!1;e=e.parentElement}return!!n}},languages:{plain:r,plaintext:r,text:r,txt:r,extend:function(e,t){var n=i.util.clone(i.languages[e]);for(var r in t)n[r]=t[r];return n},insertBefore:function(e,t,n,r){r||=i.languages;var a=r[e],o={};for(var s in a)if(a.hasOwnProperty(s)){if(s==t)for(var c in n)n.hasOwnProperty(c)&&(o[c]=n[c]);n.hasOwnProperty(s)||(o[s]=a[s])}var l=r[e];return r[e]=o,i.languages.DFS(i.languages,function(t,n){n===l&&t!=e&&(this[t]=o)}),o},DFS:function e(t,n,r,a){a||={};var o=i.util.objId;for(var s in t)if(t.hasOwnProperty(s)){n.call(t,s,t[s],r||s);var c=t[s],l=i.util.type(c);l===`Object`&&!a[o(c)]?(a[o(c)]=!0,e(c,n,null,a)):l===`Array`&&!a[o(c)]&&(a[o(c)]=!0,e(c,n,s,a))}}},plugins:{},highlightAll:function(e,t){i.highlightAllUnder(document,e,t)},highlightAllUnder:function(e,t,n){var r={callback:n,container:e,selector:`code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code`};i.hooks.run(`before-highlightall`,r),r.elements=Array.prototype.slice.apply(r.container.querySelectorAll(r.selector)),i.hooks.run(`before-all-elements-highlight`,r);for(var a=0,o;o=r.elements[a++];)i.highlightElement(o,t===!0,r.callback)},highlightElement:function(t,n,r){var a=i.util.getLanguage(t),o=i.languages[a];i.util.setLanguage(t,a);var s=t.parentElement;s&&s.nodeName.toLowerCase()===`pre`&&i.util.setLanguage(s,a);var c={element:t,language:a,grammar:o,code:t.textContent};function l(e){c.highlightedCode=e,i.hooks.run(`before-insert`,c),c.element.innerHTML=c.highlightedCode,i.hooks.run(`after-highlight`,c),i.hooks.run(`complete`,c),r&&r.call(c.element)}if(i.hooks.run(`before-sanity-check`,c),s=c.element.parentElement,s&&s.nodeName.toLowerCase()===`pre`&&!s.hasAttribute(`tabindex`)&&s.setAttribute(`tabindex`,`0`),!c.code){i.hooks.run(`complete`,c),r&&r.call(c.element);return}if(i.hooks.run(`before-highlight`,c),!c.grammar){l(i.util.encode(c.code));return}if(n&&e.Worker){var u=new Worker(i.filename);u.onmessage=function(e){l(e.data)},u.postMessage(JSON.stringify({language:c.language,code:c.code,immediateClose:!0}))}else l(i.highlight(c.code,c.grammar,c.language))},highlight:function(e,t,n){var r={code:e,grammar:t,language:n};if(i.hooks.run(`before-tokenize`,r),!r.grammar)throw Error(`The language "`+r.language+`" has no grammar.`);return r.tokens=i.tokenize(r.code,r.grammar),i.hooks.run(`after-tokenize`,r),a.stringify(i.util.encode(r.tokens),r.language)},tokenize:function(e,t){var n=t.rest;if(n){for(var r in n)t[r]=n[r];delete t.rest}var i=new c;return l(i,i.head,e),s(e,i,t,i.head,0),d(i)},hooks:{all:{},add:function(e,t){var n=i.hooks.all;n[e]=n[e]||[],n[e].push(t)},run:function(e,t){var n=i.hooks.all[e];if(!(!n||!n.length))for(var r=0,a;a=n[r++];)a(t)}},Token:a};e.Prism=i;function a(e,t,n,r){this.type=e,this.content=t,this.alias=n,this.length=(r||``).length|0}a.stringify=function e(t,n){if(typeof t==`string`)return t;if(Array.isArray(t)){var r=``;return t.forEach(function(t){r+=e(t,n)}),r}var a={type:t.type,content:e(t.content,n),tag:`span`,classes:[`token`,t.type],attributes:{},language:n},o=t.alias;o&&(Array.isArray(o)?Array.prototype.push.apply(a.classes,o):a.classes.push(o)),i.hooks.run(`wrap`,a);var s=``;for(var c in a.attributes)s+=` `+c+`="`+(a.attributes[c]||``).replace(/"/g,`"`)+`"`;return`<`+a.tag+` class="`+a.classes.join(` `)+`"`+s+`>`+a.content+`</`+a.tag+`>`};function o(e,t,n,r){e.lastIndex=t;var i=e.exec(n);if(i&&r&&i[1]){var a=i[1].length;i.index+=a,i[0]=i[0].slice(a)}return i}function s(e,t,n,r,c,d){for(var f in n)if(!(!n.hasOwnProperty(f)||!n[f])){var p=n[f];p=Array.isArray(p)?p:[p];for(var m=0;m<p.length;++m){if(d&&d.cause==f+`,`+m)return;var h=p[m],g=h.inside,_=!!h.lookbehind,v=!!h.greedy,y=h.alias;if(v&&!h.pattern.global){var b=h.pattern.toString().match(/[imsuy]*$/)[0];h.pattern=RegExp(h.pattern.source,b+`g`)}for(var x=h.pattern||h,S=r.next,C=c;S!==t.tail&&!(d&&C>=d.reach);C+=S.value.length,S=S.next){var w=S.value;if(t.length>e.length)return;if(!(w instanceof a)){var T=1,E;if(v){if(E=o(x,C,e,_),!E||E.index>=e.length)break;var ee=E.index,D=E.index+E[0].length,O=C;for(O+=S.value.length;ee>=O;)S=S.next,O+=S.value.length;if(O-=S.value.length,C=O,S.value instanceof a)continue;for(var k=S;k!==t.tail&&(O<D||typeof k.value==`string`);k=k.next)T++,O+=k.value.length;T--,w=e.slice(C,O),E.index-=C}else if(E=o(x,0,w,_),!E)continue;var ee=E.index,A=E[0],j=w.slice(0,ee),M=w.slice(ee+A.length),N=C+w.length;d&&N>d.reach&&(d.reach=N);var te=S.prev;j&&(te=l(t,te,j),C+=j.length),u(t,te,T);var ne=new a(f,g?i.tokenize(A,g):A,y,A);if(S=l(t,te,ne),M&&l(t,S,M),T>1){var re={cause:f+`,`+m,reach:N};s(e,t,n,S.prev,C,re),d&&re.reach>d.reach&&(d.reach=re.reach)}}}}}}function c(){var e={value:null,prev:null,next:null},t={value:null,prev:e,next:null};e.next=t,this.head=e,this.tail=t,this.length=0}function l(e,t,n){var r=t.next,i={value:n,prev:t,next:r};return t.next=i,r.prev=i,e.length++,i}function u(e,t,n){for(var r=t.next,i=0;i<n&&r!==e.tail;i++)r=r.next;t.next=r,r.prev=t,e.length-=i}function d(e){for(var t=[],n=e.head.next;n!==e.tail;)t.push(n.value),n=n.next;return t}if(!e.document)return e.addEventListener&&(i.disableWorkerMessageHandler||e.addEventListener(`message`,function(t){var n=JSON.parse(t.data),r=n.language,a=n.code,o=n.immediateClose;e.postMessage(i.highlight(a,i.languages[r],r)),o&&e.close()},!1)),i;var f=i.util.currentScript();f&&(i.filename=f.src,f.hasAttribute(`data-manual`)&&(i.manual=!0));function p(){i.manual||i.highlightAll()}if(!i.manual){var m=document.readyState;m===`loading`||m===`interactive`&&f&&f.defer?document.addEventListener(`DOMContentLoaded`,p):window.requestAnimationFrame?window.requestAnimationFrame(p):window.setTimeout(p,16)}return i}(typeof window<`u`?window:typeof WorkerGlobalScope<`u`&&self instanceof WorkerGlobalScope?self:{});t!==void 0&&t.exports&&(t.exports=n),typeof global<`u`&&(global.Prism=n),n.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:`attr-equals`},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:`named-entity`},/&#x?[\da-f]{1,8};/i]},n.languages.markup.tag.inside[`attr-value`].inside.entity=n.languages.markup.entity,n.languages.markup.doctype.inside[`internal-subset`].inside=n.languages.markup,n.hooks.add(`wrap`,function(e){e.type===`entity`&&(e.attributes.title=e.content.replace(/&/,`&`))}),Object.defineProperty(n.languages.markup.tag,`addInlined`,{value:function(e,t){var r={};r[`language-`+t]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:n.languages[t]},r.cdata=/^<!\[CDATA\[|\]\]>$/i;var i={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:r}};i[`language-`+t]={pattern:/[\s\S]+/,inside:n.languages[t]};var a={};a[e]={pattern:RegExp(`(<__[^>]*>)(?:<!\\[CDATA\\[(?:[^\\]]|\\](?!\\]>))*\\]\\]>|(?!<!\\[CDATA\\[)[\\s\\S])*?(?=<\\/__>)`.replace(/__/g,function(){return e}),`i`),lookbehind:!0,greedy:!0,inside:i},n.languages.insertBefore(`markup`,`cdata`,a)}}),Object.defineProperty(n.languages.markup.tag,`addAttribute`,{value:function(e,t){n.languages.markup.tag.inside[`special-attr`].push({pattern:RegExp(`(^|["'\\s])(?:`+e+`)\\s*=\\s*(?:"[^"]*"|'[^']*'|[^\\s'">=]+(?=[\\s>]))`,`i`),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[t,`language-`+t],inside:n.languages[t]},punctuation:[{pattern:/^=/,alias:`attr-equals`},/"|'/]}}}})}}),n.languages.html=n.languages.markup,n.languages.mathml=n.languages.markup,n.languages.svg=n.languages.markup,n.languages.xml=n.languages.extend(`markup`,{}),n.languages.ssml=n.languages.xml,n.languages.atom=n.languages.xml,n.languages.rss=n.languages.xml,(function(e){var t=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;e.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp(`@[\\w-](?:[^;{\\s"']|\\s+(?!\\s)|`+t.source+`)*?(?:;|(?=\\s*\\{))`),inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:`selector`},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp(`\\burl\\((?:`+t.source+`|(?:[^\\\\\\r\\n()"']|\\\\[\\s\\S])*)\\)`,`i`),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp(`^`+t.source+`$`),alias:`url`}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+t.source+`)*(?=\\s*\\{)`),lookbehind:!0},string:{pattern:t,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},e.languages.css.atrule.inside.rest=e.languages.css;var n=e.languages.markup;n&&(n.tag.addInlined(`style`,`css`),n.tag.addAttribute(`style`,`css`))})(n),n.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/},n.languages.javascript=n.languages.extend(`clike`,{"class-name":[n.languages.clike[`class-name`],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(`(^|[^\\w$])(?:NaN|Infinity|0[bB][01]+(?:_[01]+)*n?|0[oO][0-7]+(?:_[0-7]+)*n?|0[xX][\\dA-Fa-f]+(?:_[\\dA-Fa-f]+)*n?|\\d+(?:_\\d+)*n|(?:\\d+(?:_\\d+)*(?:\\.(?:\\d+(?:_\\d+)*)?)?|\\.\\d+(?:_\\d+)*)(?:[Ee][+-]?\\d+(?:_\\d+)*)?)(?![\\w$])`),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),n.languages.javascript[`class-name`][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,n.languages.insertBefore(`javascript`,`keyword`,{regex:{pattern:RegExp(`((?:^|[^$\\w\\xA0-\\uFFFF."'\\])\\s]|\\b(?:return|yield))\\s*)\\/(?:(?:\\[(?:[^\\]\\\\\\r\\n]|\\\\.)*\\]|\\\\.|[^/\\\\\\[\\r\\n])+\\/[dgimyus]{0,7}|(?:\\[(?:[^[\\]\\\\\\r\\n]|\\\\.|\\[(?:[^[\\]\\\\\\r\\n]|\\\\.|\\[(?:[^[\\]\\\\\\r\\n]|\\\\.)*\\])*\\])*\\]|\\\\.|[^/\\\\\\[\\r\\n])+\\/[dgimyus]{0,7}v[dgimyus]{0,7})(?=(?:\\s|\\/\\*(?:[^*]|\\*(?!\\/))*\\*\\/)*(?:$|[\\r\\n,.;:})\\]]|\\/\\/))`),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:`language-regex`,inside:n.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:`function`},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:n.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:n.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:n.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:n.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),n.languages.insertBefore(`javascript`,`string`,{hashbang:{pattern:/^#!.*/,greedy:!0,alias:`comment`},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:`string`},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:`punctuation`},rest:n.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:`property`}}),n.languages.insertBefore(`javascript`,`operator`,{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:`property`}}),n.languages.markup&&(n.languages.markup.tag.addInlined(`script`,`javascript`),n.languages.markup.tag.addAttribute(`on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)`,`javascript`)),n.languages.js=n.languages.javascript,(function(){if(n===void 0||typeof document>`u`)return;Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector);var e=`Loading…`,t=function(e,t){return`✖ Error `+e+` while fetching file: `+t},r=`✖ Error: File does not exist or is empty`,i={js:`javascript`,py:`python`,rb:`ruby`,ps1:`powershell`,psm1:`powershell`,sh:`bash`,bat:`batch`,h:`c`,tex:`latex`},a=`data-src-status`,o=`loading`,s=`loaded`,c=`failed`,l=`pre[data-src]:not([`+a+`="`+s+`"]):not([`+a+`="`+o+`"])`;function u(e,n,i){var a=new XMLHttpRequest;a.open(`GET`,e,!0),a.onreadystatechange=function(){a.readyState==4&&(a.status<400&&a.responseText?n(a.responseText):a.status>=400?i(t(a.status,a.statusText)):i(r))},a.send(null)}function d(e){var t=/^\s*(\d+)\s*(?:(,)\s*(?:(\d+)\s*)?)?$/.exec(e||``);if(t){var n=Number(t[1]),r=t[2],i=t[3];return r?i?[n,Number(i)]:[n,void 0]:[n,n]}}n.hooks.add(`before-highlightall`,function(e){e.selector+=`, `+l}),n.hooks.add(`before-sanity-check`,function(t){var r=t.element;if(r.matches(l)){t.code=``,r.setAttribute(a,o);var f=r.appendChild(document.createElement(`CODE`));f.textContent=e;var p=r.getAttribute(`data-src`),m=t.language;if(m===`none`){var h=(/\.(\w+)$/.exec(p)||[,`none`])[1];m=i[h]||h}n.util.setLanguage(f,m),n.util.setLanguage(r,m);var g=n.plugins.autoloader;g&&g.loadLanguages(m),u(p,function(e){r.setAttribute(a,s);var t=d(r.getAttribute(`data-range`));if(t){var i=e.split(/\r\n?|\n/g),o=t[0],c=t[1]==null?i.length:t[1];o<0&&(o+=i.length),o=Math.max(0,Math.min(o-1,i.length)),c<0&&(c+=i.length),c=Math.max(0,Math.min(c,i.length)),e=i.slice(o,c).join(`
|
|
11
|
+
`),r.hasAttribute(`data-start`)||r.setAttribute(`data-start`,String(o+1))}f.textContent=e,n.highlightElement(f)},function(e){r.setAttribute(a,c),f.textContent=e})}}),n.plugins.fileHighlight={highlight:function(e){for(var t=(e||document).querySelectorAll(l),r=0,i;i=t[r++];)n.highlightElement(i)}};var f=!1;n.fileHighlight=function(){f||=(console.warn("Prism.fileHighlight is deprecated. Use `Prism.plugins.fileHighlight.highlight` instead."),!0),n.plugins.fileHighlight.highlight.apply(this,arguments)}})()}))(),1);function en(e){return typeof e==`object`&&!!e&&`languages`in e}var tn=globalThis,nn=en(tn.Prism)?tn.Prism:$t.default;tn.Prism=nn,typeof window<`u`&&(window.Prism=nn);var rn=ut((e=>{var t=Symbol.for(`react.transitional.element`),n=Symbol.for(`react.fragment`);function r(e,n,r){var i=null;if(r!==void 0&&(i=``+r),n.key!==void 0&&(i=``+n.key),`key`in n)for(var a in r={},n)a!==`key`&&(r[a]=n[a]);else r=n;return n=r.ref,{$$typeof:t,type:e,key:i,ref:n===void 0?null:n,props:r}}e.Fragment=n,e.jsx=r,e.jsxs=r})),R=ut(((e,t)=>{t.exports=rn()}))(),an=Object.defineProperty,on=(e,t,n)=>t in e?an(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,sn=(e,t,n)=>on(e,typeof t==`symbol`?t:t+``,n),cn=class e{constructor(e=new Map){this.map=e}clone(){return new e(new Map(this.map))}increment(e){let t=this.map.get(e)??0;this.map.set(e,t+1)}decrement(e,t){let n=this.map.get(e);n!==void 0&&(--n,this.map.set(e,n),n===0&&t())}},ln=class{constructor(){sn(this,`map`,new Map)}getOrCreate(e){let t=this.map.get(e);return t===void 0&&(t=new Set,this.map.set(e,t)),t}get(e){return this.map.get(e)}use(e,t){let n=this.get(e);n!==void 0&&t(n)}delete(e){return this.map.delete(e)}};function un(e,t){return t(e),e}function dn(){}var fn=`cell`;function pn(e,t){return e===t}var mn=new Map,hn,gn=class{constructor(e={}){sn(this,`subscriptions`,new ln),sn(this,`singletonSubscriptions`,new Map),sn(this,`graph`,new ln),sn(this,`state`,new Map),sn(this,`distinctNodes`,new Map),sn(this,`executionMaps`,new Map),sn(this,`definitionRegistry`,new Set),sn(this,`combinedCells`,[]);for(let t of Object.getOwnPropertySymbols(e))this.state.set(t,e[t])}cellInstance(e,t=!0,n=Symbol()){return this.state.has(n)||this.state.set(n,e),t!==!1&&!this.distinctNodes.has(n)&&this.distinctNodes.set(n,t===!0?pn:t),n}signalInstance(e=!0,t=Symbol()){return e!==!1&&this.distinctNodes.set(t,e===!0?pn:e),t}sub(e,t){this.register(e);let n=this.subscriptions.getOrCreate(e);return n.add(t),()=>n.delete(t)}singletonSub(e,t){return this.register(e),t===void 0?this.singletonSubscriptions.delete(e):this.singletonSubscriptions.set(e,t),()=>this.singletonSubscriptions.delete(e)}resetSingletonSubs(){this.singletonSubscriptions.clear()}subMultiple(e,t){let n=this.signalInstance();return this.connect({map:e=>(...t)=>{e(t)},sink:n,sources:e}),this.sub(n,t)}pubIn(e){var t;let n=Reflect.ownKeys(e),r=this.getExecutionMap(n),i=r.refCount.clone(),a=r.participatingNodes.slice(),o=new Map(this.state),s=e=>{this.graph.use(e,t=>{for(let{sources:n,sink:r}of t)n.has(e)&&i.decrement(r,()=>{a.splice(a.indexOf(r),1),s(r)})})};for(;;){let n=a.shift();if(n===void 0)break;let i=n,c=!1,l=e=>{let t=this.distinctNodes.get(i);if(t!=null&&t(o.get(i),e)){c=!1;return}c=!0,o.set(i,e),this.state.has(i)&&this.state.set(i,e)};if(Object.prototype.hasOwnProperty.call(e,i)?l(e[i]):r.projections.use(i,e=>{for(let t of e){let e=[...Array.from(t.sources),...Array.from(t.pulls)].map(e=>o.get(e));t.map(l)(...e)}}),c){let e=o.get(i);this.inContext(()=>{this.subscriptions.use(i,t=>{for(let n of t)n(e)})}),(t=this.singletonSubscriptions.get(i))==null||t(e)}else s(i)}}connect({sources:e,pulls:t=[],map:n,sink:r}){let i={map:n,pulls:new Set(t),sink:this.register(r),sources:new Set(e)};for(let n of[...e,...t])this.register(n),this.graph.getOrCreate(n).add(i);this.executionMaps.clear()}pub(e,t){this.pubIn({[e]:t})}pipe(e,...t){return this.combineOperators(...t)(e)}transformer(...e){return t=>un(this.signalInstance(),n=>(this.link(this.pipe(n,...e),t),n))}link(e,t){this.connect({map:e=>t=>{e(t)},sink:t,sources:[e]})}combine(...e){return un(this.signalInstance(),t=>{this.connect({map:e=>(...t)=>{e(t)},sink:t,sources:e})})}combineCells(...e){let t=this.combinedCells.find(t=>e.length===t.sources.length&&e.every((e,n)=>e===t.sources[n]));if(t)return t.cell;let n=this.cellInstance(e.map(e=>this.getValue(e)),!0);return this.connect({map:e=>(...t)=>{e(t)},sink:n,sources:e}),this.combinedCells.push({sources:e,cell:n}),n}getValue(e){return this.register(e),this.state.get(e)}getValues(e){return e.map(e=>this.getValue(e))}register(e){let t=mn.get(e);return t===void 0||this.definitionRegistry.has(e)?e:(this.definitionRegistry.add(e),un(t.type===fn?this.cellInstance(t.initial,t.distinct,e):this.signalInstance(t.distinct,e),e=>{this.inContext(()=>{t.init(this,e)})}))}inContext(e){let t=hn;hn=this;let n=e();return hn=t,n}changeWith(e,t,n){this.connect({sources:[t],pulls:[e],sink:e,map:e=>(t,r)=>{e(n(r,t))}})}calculateExecutionMap(e){let t=[],n=new Set,r=new ln,i=new cn,a=new ln,o=(e,s=0)=>{i.increment(e),!n.has(e)&&(this.register(e),r.use(e,e=>{s=Math.max(...Array.from(e).map(e=>t.indexOf(e)))+1}),this.graph.use(e,t=>{for(let n of t)n.sources.has(e)?(a.getOrCreate(n.sink).add(n),o(n.sink,s)):r.getOrCreate(n.sink).add(e)}),n.add(e),t.splice(s,0,e))};return e.forEach(o),{participatingNodes:t,pendingPulls:r,projections:a,refCount:i}}getExecutionMap(e){let t=e;if(e.length===1){t=e[0];let n=this.executionMaps.get(t);if(n!==void 0)return n}else for(let[t,n]of this.executionMaps.entries())if(Array.isArray(t)&&t.length===e.length&&t.every(t=>e.includes(t)))return n;let n=this.calculateExecutionMap(e);return this.executionMaps.set(t,n),n}combineOperators(...e){return t=>{for(let n of e)t=n(t,this);return t}}};function z(e,t=dn,n=!0){return un(Symbol(),r=>{mn.set(r,{type:fn,distinct:n,initial:e,init:t})})}function _n(e=dn,t=!1){return un(Symbol(),n=>{mn.set(n,{type:`signal`,distinct:t,init:e})})}function vn(e=dn){return un(Symbol(),t=>{mn.set(t,{type:`signal`,distinct:!1,init:e})})}var yn=L.createContext(null);function bn(){let e=L.useContext(yn);if(e===null)throw Error(`useRealm must be used within a RealmContextProvider`);return e}function xn(e){let t=bn();t.register(e);let n=L.useCallback(n=>t.sub(e,n),[t,e]);return L.useSyncExternalStore(n,()=>t.getValue(e),()=>t.getValue(e))}function Sn(...e){let t=bn();return xn(L.useMemo(()=>t.combineCells.apply(t,e),[t,...e]))}function Cn(e){let t=bn();return t.register(e),L.useCallback(n=>{t.pub(e,n)},[t,e])}function wn(e){return(t,n)=>{let r=n.signalInstance();return n.connect({map:t=>n=>{t(e(n))},sink:r,sources:[t]}),r}}function Tn(...e){return(t,n)=>{let r=n.signalInstance();return n.connect({map:e=>(...t)=>{e(t)},pulls:e,sink:r,sources:[t]}),r}}function En(e){return(t,n)=>{let r=n.signalInstance();return n.connect({map:t=>()=>{t(e)},sink:r,sources:[t]}),r}}function Dn(e){return(t,n)=>{let r=n.signalInstance();return n.connect({map:t=>n=>{e(n)&&t(n)},sink:r,sources:[t]}),r}}function On(e,t){return(n,r)=>{let i=r.signalInstance();return r.connect({map:n=>r=>{n(t=e(t,r))},sink:i,sources:[n]}),i}}function kn(e,t){return t(e),e}function An(){}function jn(e){return function(t){return{init:n=>e.init?.call(e,n,t),postInit:n=>e.postInit?.call(e,n,t),update:n=>e.update?.call(e,n,t)}}}function Mn({children:e,plugins:t}){let n=L.useMemo(()=>kn(new gn,e=>{var n,r;for(let r of t)(n=r.init)==null||n.call(r,e);for(let n of t)(r=n.postInit)==null||r.call(n,e)}),[]);return L.useEffect(()=>{var e;for(let r of t)(e=r.update)==null||e.call(r,n)}),L.createElement(yn.Provider,{value:n},e)}var Nn=(0,L.createContext)(null);function Pn(e,t){let n=null;return e!=null&&(n=e[1]),{getTheme:function(){return t??(n==null?null:n.getTheme())}}}function Fn(){let e=(0,L.useContext)(Nn);return e??function(e,...t){let n=new URL(`https://lexical.dev/docs/error`),r=new URLSearchParams;r.append(`code`,e);for(let e of t)r.append(`v`,e);throw n.search=r.toString(),Error(`Minified Lexical error #${e}; visit ${n.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}(8),e}function B(e,...t){let n=new URL(`https://lexical.dev/docs/error`),r=new URLSearchParams;r.append(`code`,e);for(let e of t)r.append(`v`,e);throw n.search=r.toString(),Error(`Minified Lexical error #${e}; visit ${n.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}var In=typeof window<`u`&&window.document!==void 0&&window.document.createElement!==void 0,Ln=In&&`documentMode`in document?document.documentMode:null,Rn=In&&/Mac|iPod|iPhone|iPad/.test(navigator.platform),zn=In&&/^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent),Bn=!(!In||!(`InputEvent`in window)||Ln)&&`getTargetRanges`in new window.InputEvent(`input`),Vn=In&&/Version\/[\d.]+.*Safari/.test(navigator.userAgent),Hn=In&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,Un=In&&/Android/.test(navigator.userAgent),Wn=In&&/^(?=.*Chrome).*/i.test(navigator.userAgent),Gn=In&&Un&&Wn,Kn=In&&/AppleWebKit\/[\d.]+/.test(navigator.userAgent)&&!Wn;function qn(...e){let t=[];for(let n of e)if(n&&typeof n==`string`)for(let[e]of n.matchAll(/\S+/g))t.push(e);return t}var Jn=1,Yn=3,Xn=9,Zn=11,Qn=0,$n=1,er=2,tr=0,nr=1,rr=2,ir=1,ar=2,or=3,sr=4,cr=5,lr=6,ur=Vn||Hn||Kn?`\xA0`:``,dr=`
|
|
12
|
+
|
|
13
|
+
`,fr=zn?`\xA0`:ur,pr={bold:1,capitalize:1024,code:16,highlight:128,italic:2,lowercase:256,strikethrough:4,subscript:32,superscript:64,underline:8,uppercase:512},mr={directionless:1,unmergeable:2},hr={center:ar,end:lr,justify:sr,left:ir,right:or,start:cr},gr={[ar]:`center`,[lr]:`end`,[sr]:`justify`,[ir]:`left`,[or]:`right`,[cr]:`start`},_r={normal:0,segmented:2,token:1},vr={[tr]:`normal`,[rr]:`segmented`,[nr]:`token`},yr=`$config`;function br(e,t,n,r,i,a){let o=e.getFirstChild();for(;o!==null;){let e=o.__key;o.__parent===t&&(G(o)&&br(o,e,n,r,i,a),n.has(e)||a.delete(e),i.push(e)),o=o.getNextSibling()}}var xr=100,Sr=!1,Cr=0;function wr(e){Cr=e.timeStamp}function Tr(e,t,n){let r=e.nodeName===`BR`,i=t.__lexicalLineBreak;return i&&(e===i||r&&e.previousSibling===i)||r&&gc(e,n)!==void 0}function Er(e,t,n){let r=sl(Qc(n)),i=null,a=null;r!==null&&r.anchorNode===e&&(i=r.anchorOffset,a=r.focusOffset);let o=e.nodeValue;o!==null&&kc(t,o,i,a,!1)}function Dr(e,t,n){if(U(e)){let t=e.anchor.getNode();if(t.is(n)&&e.format!==t.getFormat())return!1}return ic(t)&&n.isAttached()}function Or(e,t,n,r){for(let i=e;i&&!Cl(i);i=Kc(i)){let e=gc(i,t);if(e!==void 0){let t=mc(e,n);if(t)return Ds(t)||!ul(i)?void 0:[i,t]}else if(i===r)return[r,xc(n)]}}function kr(e,t,n){Sr=!0;let r=performance.now()-Cr>xr;try{xs(e,(()=>{let i=W()||function(e){return e.getEditorState().read((()=>{let e=W();return e===null?null:e.clone()}))}(e),a=new Map,o=e.getRootElement(),s=e._editorState,c=e._blockCursorElement,l=!1,u=``;for(let n=0;n<t.length;n++){let d=t[n],f=d.type,p=d.target,m=Or(p,e,s,o);if(!m)continue;let[h,g]=m;if(f===`characterData`)r&&H(g)&&ic(p)&&Dr(i,p,g)&&Er(p,g,e);else if(f===`childList`){l=!0;let t=d.addedNodes;for(let n=0;n<t.length;n++){let r=t[n],i=hc(r),a=r.parentNode;if(a!=null&&r!==c&&i===null&&!Tr(r,a,e)){if(zn){let e=(ul(r)?r.innerText:null)||r.nodeValue;e&&(u+=e)}a.removeChild(r)}}let n=d.removedNodes,r=n.length;if(r>0){let t=0;for(let i=0;i<r;i++){let r=n[i];(Tr(r,p,e)||c===r)&&(p.appendChild(r),t++)}r!==t&&a.set(h,g)}}}if(a.size>0)for(let[t,n]of a)n.reconcileObservedMutation(t,e);let d=n.takeRecords();if(d.length>0){for(let t=0;t<d.length;t++){let n=d[t],r=n.addedNodes,i=n.target;for(let t=0;t<r.length;t++){let n=r[t],a=n.parentNode;a==null||n.nodeName!==`BR`||Tr(n,i,e)||a.removeChild(n)}}n.takeRecords()}i!==null&&(l&&Sc(i),zn&&Uc(e)&&i.insertRawText(u))}))}finally{Sr=!1}}function Ar(e){let t=e._observer;t!==null&&kr(e,t.takeRecords(),t)}function jr(e){(function(e){Cr===0&&Qc(e).addEventListener(`textInput`,wr,!0)})(e),e._observer=new MutationObserver(((t,n)=>{kr(e,t,n)}))}function Mr(e){let t=new Map,n=new Set;for(let r=typeof e==`function`?e:e.replace;r.prototype&&r.prototype.getType!==void 0;r=Object.getPrototypeOf(r)){let{ownNodeConfig:e}=Tl(r);if(e&&e.stateConfigs)for(let r of e.stateConfigs){let e;`stateConfig`in r?(e=r.stateConfig,r.flat&&n.add(e.key)):e=r,t.set(e.key,e)}}return{flatKeys:n,sharedConfigMap:t}}var Nr=class e{constructor(e,t,n=void 0,r=new Map,i=void 0){this.node=e,this.sharedNodeState=t,this.unknownState=n,this.knownState=r;let{sharedConfigMap:a}=this.sharedNodeState,o=i===void 0?function(e,t,n){let r=n.size;if(t)for(let i in t){let t=e.get(i);t&&n.has(t)||r++}return r}(a,n,r):i;this.size=o}getValue(e){let t=this.knownState.get(e);if(t!==void 0)return t;this.sharedNodeState.sharedConfigMap.set(e.key,e);let n=e.defaultValue;if(this.unknownState&&e.key in this.unknownState){let t=this.unknownState[e.key];t!==void 0&&(n=e.parse(t)),this.updateFromKnown(e,n)}return n}getInternalState(){return[this.unknownState,this.knownState]}toJSON(){let e={...this.unknownState},t={};for(let[t,n]of this.knownState)t.isEqual(n,t.defaultValue)?delete e[t.key]:e[t.key]=t.unparse(n);for(let n of this.sharedNodeState.flatKeys)n in e&&(t[n]=e[n],delete e[n]);return Ir(e)&&(t.$=e),t}getWritable(t){if(this.node===t)return this;let{sharedNodeState:n,unknownState:r}=this,i=new Map(this.knownState);return new e(t,n,function(e,t,n){let r;if(n)for(let[i,a]of Object.entries(n)){let n=e.get(i);n?t.has(n)||t.set(n,n.parse(a)):(r||={},r[i]=a)}return r}(n.sharedConfigMap,i,r),i,this.size)}updateFromKnown(e,t){let n=e.key;this.sharedNodeState.sharedConfigMap.set(n,e);let{knownState:r,unknownState:i}=this;r.has(e)||i&&n in i||(i&&(delete i[n],this.unknownState=Ir(i)),this.size++),r.set(e,t)}updateFromUnknown(e,t){let n=this.sharedNodeState.sharedConfigMap.get(e);n?this.updateFromKnown(n,n.parse(t)):(this.unknownState=this.unknownState||{},e in this.unknownState||this.size++,this.unknownState[e]=t)}updateFromJSON(e){let{knownState:t}=this;for(let e of t.keys())t.set(e,e.defaultValue);if(this.size=t.size,this.unknownState=void 0,e)for(let[t,n]of Object.entries(e))this.updateFromUnknown(t,n)}};function Pr(e){let t=e.getWritable(),n=t.__state?t.__state.getWritable(t):new Nr(t,Fr(t));return t.__state=n,n}function Fr(e){return e.__state?e.__state.sharedNodeState:qs(_l(),e.getType()).sharedNodeState}function Ir(e){if(e)for(let t in e)return e}function Lr(e,t,n){for(let[r,i]of t.knownState){if(e.has(r.key))continue;e.add(r.key);let t=n?n.getValue(r):r.defaultValue;if(t!==i&&!r.isEqual(t,i))return!0}return!1}function Rr(e,t,n){let{unknownState:r}=t,i=n?n.unknownState:void 0;if(r){for(let[t,n]of Object.entries(r))if(!e.has(t)&&(e.add(t),n!==(i?i[t]:void 0)))return!0}return!1}function zr(e,t){let n=e.__state;return n&&n.node===e?n.getWritable(t):n}function Br(e,t){let n=e.__mode,r=e.__format,i=e.__style,a=t.__mode,o=t.__format,s=t.__style,c=e.__state,l=t.__state;return(n===null||n===a)&&(r===null||r===o)&&(i===null||i===s)&&(e.__state===null||c===l||function(e,t){if(e===t)return!0;if(e&&t&&e.size!==t.size)return!1;let n=new Set;return!(e&&Lr(n,e,t)||t&&Lr(n,t,e)||e&&Rr(n,e,t)||t&&Rr(n,t,e))}(c,l))}function Vr(e,t){let n=e.mergeWithSibling(t),r=cs()._normalizedNodes;return r.add(e.__key),r.add(t.__key),n}function Hr(e){let t,n,r=e;if(r.__text!==``||!r.isSimpleText()||r.isUnmergeable()){for(;(t=r.getPreviousSibling())!==null&&H(t)&&t.isSimpleText()&&!t.isUnmergeable();){if(t.__text!==``){if(Br(t,r)){r=Vr(t,r);break}break}t.remove()}for(;(n=r.getNextSibling())!==null&&H(n)&&n.isSimpleText()&&!n.isUnmergeable();){if(n.__text!==``){if(Br(r,n)){r=Vr(r,n);break}break}n.remove()}}else r.remove()}function Ur(e){return Wr(e.anchor),Wr(e.focus),e}function Wr(e){for(;e.type===`element`;){let t=e.getNode(),n=e.offset,r,i;if(n===t.getChildrenSize()?(r=t.getChildAtIndex(n-1),i=!0):(r=t.getChildAtIndex(n),i=!1),H(r)){e.set(r.__key,i?r.getTextContentSize():0,`text`,!0);break}if(!G(r))break;e.set(r.__key,i?r.getChildrenSize():0,`element`,!0)}}var Gr,Kr,qr,Jr,Yr,Xr,Zr,Qr,$r,ei,ti=``,ni=null,ri=``,ii=``,ai=!1,oi=!1;function si(e,t){let n=Zr.get(e);if(t!==null){let n=wi(e);n.parentNode===t&&t.removeChild(n)}if(Qr.has(e)||Kr._keyToDOMMap.delete(e),G(n)){let e=yi(n,Zr);ci(e,0,e.length-1,null)}n!==void 0&&Bc(ei,qr,Jr,n,`destroyed`)}function ci(e,t,n,r){let i=t;for(;i<=n;++i){let t=e[i];t!==void 0&&si(t,r)}}function li(e,t){e.setProperty(`text-align`,t)}var ui=`40px`;function di(e,t){let n=Gr.theme.indent;if(typeof n==`string`){let r=e.classList.contains(n);t>0&&!r?e.classList.add(n):t<1&&r&&e.classList.remove(n)}let r=getComputedStyle(e).getPropertyValue(`--lexical-indent-base-value`)||ui;e.style.setProperty(`padding-inline-start`,t===0?``:`calc(${t} * ${r})`)}function fi(e,t){let n=e.style;t===0?li(n,``):t===ir?li(n,`left`):t===ar?li(n,`center`):t===or?li(n,`right`):t===sr?li(n,`justify`):t===cr?li(n,`start`):t===lr&&li(n,`end`)}function pi(e,t){let n=function(e){let t=e.__dir;if(t!==null)return t;if(ks(e))return null;let n=e.getParentOrThrow();return ks(n)&&n.__dir===null?`auto`:null}(t);n===null?e.removeAttribute(`dir`):e.dir=n}function mi(e,t){let n=Qr.get(e);n===void 0&&B(60);let r=n.createDOM(Gr,Kr);if(function(e,t,n){let r=n._keyToDOMMap;(function(e,t,n){let r=`__lexicalKey_${t._key}`;e[r]=n})(t,n,e),r.set(e,t)}(e,r,Kr),H(n)?r.setAttribute(`data-lexical-text`,`true`):Ds(n)&&r.setAttribute(`data-lexical-decorator`,`true`),G(n)){let e=n.__indent,t=n.__size;if(pi(r,n),e!==0&&di(r,e),t!==0){let e=t-1;hi(yi(n,Qr),n,0,e,n.getDOMSlot(r))}let i=n.__format;i!==0&&fi(r,i),n.isInline()||_i(null,n,r),Wc(n)&&(ti+=dr,ii+=dr)}else{let t=n.getTextContent();if(Ds(n)){let t=n.decorate(Kr,Gr);t!==null&&xi(e,t),r.contentEditable=`false`}ti+=t,ii+=t}return t!==null&&t.insertChild(r),Bc(ei,qr,Jr,n,`created`),r}function hi(e,t,n,r,i){let a=ti;ti=``;let o=n;for(;o<=r;++o){mi(e[o],i);let t=Qr.get(e[o]);t!==null&&H(t)&&(ni===null&&(ni=t.getFormat()),ri===``&&(ri=t.getStyle()))}Wc(t)&&(ti+=dr),i.element.__lexicalTextContent=ti,ti=a+ti}function gi(e,t){if(e){let n=e.__last;if(n){let e=t.get(n);if(e)return Za(e)?`line-break`:Ds(e)&&e.isInline()?`decorator`:null}return`empty`}return null}function _i(e,t,n){let r=gi(e,Zr),i=gi(t,Qr);r!==i&&t.getDOMSlot(n).setManagedLineBreak(i)}function vi(e,t,n){var r;ni=null,ri=``,function(e,t,n){let r=ti,i=e.__size,a=t.__size;ti=``;let o=n.element;if(i===1&&a===1){let n=e.__first,r=t.__first;if(n===r)bi(n,o);else{let e=wi(n),t=mi(r,null);try{o.replaceChild(t,e)}catch(i){if(typeof i==`object`&&i){let a=`${i.toString()} Parent: ${o.tagName}, new child: {tag: ${t.tagName} key: ${r}}, old child: {tag: ${e.tagName}, key: ${n}}.`;throw Error(a)}throw i}si(n,null)}let i=Qr.get(r);H(i)&&(ni===null&&(ni=i.getFormat()),ri===``&&(ri=i.getStyle()))}else{let r=yi(e,Zr),s=yi(t,Qr);if(r.length!==i&&B(227),s.length!==a&&B(228),i===0)a!==0&&hi(s,t,0,a-1,n);else if(a===0){if(i!==0){let e=n.after==null&&n.before==null&&n.element.__lexicalLineBreak==null;ci(r,0,i-1,e?null:o),e&&(o.textContent=``)}}else (function(e,t,n,r,i,a){let o=r-1,s=i-1,c,l,u=a.getFirstChild(),d=0,f=0;for(;d<=o&&f<=s;){let e=t[d],r=n[f];if(e===r)u=Si(bi(r,a.element)),d++,f++;else{c===void 0&&(c=new Set(t)),l===void 0&&(l=new Set(n));let i=l.has(e),o=c.has(r);if(i)if(o){let e=Gc(Kr,r);e===u?u=Si(bi(r,a.element)):(a.withBefore(u).insertChild(e),bi(r,a.element)),d++,f++}else mi(r,a.withBefore(u)),f++;else u=Si(wi(e)),si(e,a.element),d++}let i=Qr.get(r);i!==null&&H(i)&&(ni===null&&(ni=i.getFormat()),ri===``&&(ri=i.getStyle()))}let p=d>o,m=f>s;if(p&&!m){let t=n[s+1],r=t===void 0?null:Kr.getElementByKey(t);hi(n,e,f,s,a.withBefore(r))}else m&&!p&&ci(t,d,o,a.element)})(t,r,s,i,a,n)}Wc(t)&&(ti+=dr),o.__lexicalTextContent=ti,ti=r+ti}(e,t,t.getDOMSlot(n)),r=t,ni==null||ni===r.__textFormat||oi||r.setTextFormat(ni),function(e){ri===``||ri===e.__textStyle||oi||e.setTextStyle(ri)}(t)}function yi(e,t){let n=[],r=e.__first;for(;r!==null;){let e=t.get(r);e===void 0&&B(101),n.push(r),r=e.__next}return n}function bi(e,t){let n=Zr.get(e),r=Qr.get(e);n!==void 0&&r!==void 0||B(61);let i=ai||Xr.has(e)||Yr.has(e),a=Gc(Kr,e);if(n===r&&!i){if(G(n)){let e=a.__lexicalTextContent;e!==void 0&&(ti+=e,ii+=e)}else{let e=n.getTextContent();ii+=e,ti+=e}return a}if(n!==r&&i&&Bc(ei,qr,Jr,r,`updated`),r.updateDOM(n,a,Gr)){let n=mi(e,null);return t===null&&B(62),t.replaceChild(n,a),si(e,null),n}if(G(n)&&G(r)){let e=r.__indent;(ai||e!==n.__indent)&&di(a,e);let t=r.__format;if((ai||t!==n.__format)&&fi(a,t),i&&(vi(n,r,a),ks(r)||r.isInline()||_i(n,r,a)),Wc(r)&&(ti+=dr,ii+=dr),(ai||r.__dir!==n.__dir)&&(pi(a,r),ks(r)&&!ai))for(let e of r.getChildren())G(e)&&pi(Gc(Kr,e.getKey()),e)}else{let t=r.getTextContent();if(Ds(r)){let t=r.decorate(Kr,Gr);t!==null&&xi(e,t)}ti+=t,ii+=t}if(!oi&&ks(r)&&r.__cachedText!==ii){let e=r.getWritable();e.__cachedText=ii,r=e}return a}function xi(e,t){let n=Kr._pendingDecorators,r=Kr._decorators;if(n===null){if(r[e]===t)return;n=vc(Kr)}n[e]=t}function Si(e){let t=e.nextSibling;return t!==null&&t===Kr._blockCursorElement&&(t=t.nextSibling),t}function Ci(e,t,n,r,i,a){ti=``,ii=``,ai=r===er,Kr=n,Gr=n._config,qr=n._nodes,Jr=Kr._listeners.mutation,Yr=i,Xr=a,Zr=e._nodeMap,Qr=t._nodeMap,oi=t._readOnly,$r=new Map(n._keyToDOMMap);let o=new Map;return ei=o,bi(`root`,null),Kr=void 0,qr=void 0,Yr=void 0,Xr=void 0,Zr=void 0,Qr=void 0,Gr=void 0,$r=void 0,ei=void 0,o}function wi(e){let t=$r.get(e);return t===void 0&&B(75,e),t}function V(e){return{type:e}}var Ti=V(`SELECTION_CHANGE_COMMAND`),Ei=V(`SELECTION_INSERT_CLIPBOARD_NODES_COMMAND`),Di=V(`CLICK_COMMAND`),Oi=V(`DELETE_CHARACTER_COMMAND`),ki=V(`INSERT_LINE_BREAK_COMMAND`),Ai=V(`INSERT_PARAGRAPH_COMMAND`),ji=V(`CONTROLLED_TEXT_INSERTION_COMMAND`),Mi=V(`PASTE_COMMAND`),Ni=V(`REMOVE_TEXT_COMMAND`),Pi=V(`DELETE_WORD_COMMAND`),Fi=V(`DELETE_LINE_COMMAND`),Ii=V(`FORMAT_TEXT_COMMAND`),Li=V(`UNDO_COMMAND`),Ri=V(`REDO_COMMAND`),zi=V(`KEYDOWN_COMMAND`),Bi=V(`KEY_ARROW_RIGHT_COMMAND`),Vi=V(`MOVE_TO_END`),Hi=V(`KEY_ARROW_LEFT_COMMAND`),Ui=V(`MOVE_TO_START`),Wi=V(`KEY_ARROW_UP_COMMAND`),Gi=V(`KEY_ARROW_DOWN_COMMAND`),Ki=V(`KEY_ENTER_COMMAND`),qi=V(`KEY_SPACE_COMMAND`),Ji=V(`KEY_BACKSPACE_COMMAND`),Yi=V(`KEY_ESCAPE_COMMAND`),Xi=V(`KEY_DELETE_COMMAND`),Zi=V(`KEY_TAB_COMMAND`),Qi=V(`INSERT_TAB_COMMAND`),$i=V(`INDENT_CONTENT_COMMAND`),ea=V(`OUTDENT_CONTENT_COMMAND`),ta=V(`DROP_COMMAND`),na=V(`FORMAT_ELEMENT_COMMAND`),ra=V(`DRAGSTART_COMMAND`),ia=V(`DRAGOVER_COMMAND`),aa=V(`DRAGEND_COMMAND`),oa=V(`COPY_COMMAND`),sa=V(`CUT_COMMAND`),ca=V(`SELECT_ALL_COMMAND`),la=V(`CLEAR_EDITOR_COMMAND`),ua=V(`CLEAR_HISTORY_COMMAND`),da=V(`CAN_REDO_COMMAND`),fa=V(`CAN_UNDO_COMMAND`),pa=V(`FOCUS_COMMAND`),ma=V(`BLUR_COMMAND`),ha=V(`KEY_MODIFIER_COMMAND`),ga=Object.freeze({}),_a=30,va=[[`keydown`,function(e,t){if(ya=e.timeStamp,ba=e.key,!t.isComposing()&&!K(t,zi,e)&&e.key!=null){if(Oa&&Ic(e))return xs(t,(()=>{Ra(t,ka)})),Oa=!1,void(ka=``);if(function(e){return Nc(e,`ArrowRight`,{shiftKey:`any`})}(e))K(t,Bi,e);else if(function(e){return Nc(e,`ArrowRight`,Pc)}(e))K(t,Vi,e);else if(function(e){return Nc(e,`ArrowLeft`,{shiftKey:`any`})}(e))K(t,Hi,e);else if(function(e){return Nc(e,`ArrowLeft`,Pc)}(e))K(t,Ui,e);else if(function(e){return Nc(e,`ArrowUp`,{altKey:`any`,shiftKey:`any`})}(e))K(t,Wi,e);else if(function(e){return Nc(e,`ArrowDown`,{altKey:`any`,shiftKey:`any`})}(e))K(t,Gi,e);else if(function(e){return Nc(e,`Enter`,{altKey:`any`,ctrlKey:`any`,metaKey:`any`,shiftKey:!0})}(e))Ea=!0,K(t,Ki,e);else if(function(e){return e.key===` `}(e))K(t,qi,e);else if(function(e){return Rn&&Nc(e,`o`,{ctrlKey:!0})}(e))e.preventDefault(),Ea=!0,K(t,ki,!0);else if(function(e){return Nc(e,`Enter`,{altKey:`any`,ctrlKey:`any`,metaKey:`any`})}(e))Ea=!1,K(t,Ki,e);else if(function(e){return Nc(e,`Backspace`,{shiftKey:`any`})||Rn&&Nc(e,`h`,{ctrlKey:!0})}(e))Ic(e)?K(t,Ji,e):(e.preventDefault(),K(t,Oi,!0));else if(function(e){return e.key===`Escape`}(e))K(t,Yi,e);else if(function(e){return Nc(e,`Delete`,{})||Rn&&Nc(e,`d`,{ctrlKey:!0})}(e))(function(e){return e.key===`Delete`})(e)?K(t,Xi,e):(e.preventDefault(),K(t,Oi,!1));else if(function(e){return Nc(e,`Backspace`,Fc)}(e))e.preventDefault(),K(t,Pi,!0);else if(function(e){return Nc(e,`Delete`,Fc)}(e))e.preventDefault(),K(t,Pi,!1);else if(function(e){return Rn&&Nc(e,`Backspace`,{metaKey:!0})}(e))e.preventDefault(),K(t,Fi,!0);else if(function(e){return Rn&&(Nc(e,`Delete`,{metaKey:!0})||Nc(e,`k`,{ctrlKey:!0}))}(e))e.preventDefault(),K(t,Fi,!1);else if(function(e){return Nc(e,`b`,Pc)}(e))e.preventDefault(),K(t,Ii,`bold`);else if(function(e){return Nc(e,`u`,Pc)}(e))e.preventDefault(),K(t,Ii,`underline`);else if(function(e){return Nc(e,`i`,Pc)}(e))e.preventDefault(),K(t,Ii,`italic`);else if(function(e){return Nc(e,`Tab`,{shiftKey:`any`})}(e))K(t,Zi,e);else if(function(e){return Nc(e,`z`,Pc)}(e))e.preventDefault(),K(t,Li,void 0);else if(function(e){return Rn?Nc(e,`z`,{metaKey:!0,shiftKey:!0}):Nc(e,`y`,{ctrlKey:!0})||Nc(e,`z`,{ctrlKey:!0,shiftKey:!0})}(e))e.preventDefault(),K(t,Ri,void 0);else{let n=t._editorState._selection;n===null||U(n)?Lc(e)&&(e.preventDefault(),K(t,ca,e)):function(e){return Nc(e,`c`,Pc)}(e)?(e.preventDefault(),K(t,oa,e)):function(e){return Nc(e,`x`,Pc)}(e)?(e.preventDefault(),K(t,sa,e)):Lc(e)&&(e.preventDefault(),K(t,ca,e))}(function(e){return e.ctrlKey||e.shiftKey||e.altKey||e.metaKey})(e)&&K(t,ha,e)}}],[`pointerdown`,function(e,t){let n=e.target,r=e.pointerType;dl(n)&&r!==`touch`&&r!==`pen`&&e.button===0&&xs(t,(()=>{Xs(n)||(Ta=!0)}))}],[`compositionstart`,function(e,t){xs(t,(()=>{let n=W();if(U(n)&&!t.isComposing()){let r=n.anchor,i=n.anchor.getNode();fc(r.key),(e.timeStamp<ya+_a||r.type===`element`||!n.isCollapsed()||i.getFormat()!==n.format||H(i)&&i.getStyle()!==n.style)&&K(t,ji,fr)}}))}],[`compositionend`,function(e,t){zn?Da=!0:Hn||!Vn&&!Kn?xs(t,(()=>{Ra(t,e.data)})):(Oa=!0,ka=e.data)}],[`input`,function(e,t){e.stopPropagation(),xs(t,(()=>{if(ul(e.target)&&Xs(e.target))return;let n=W(),r=e.data,i=La(e);if(r!=null&&U(n)&&Ma(n,i,r,e.timeStamp,!1)){Da&&=(Ra(t,r),!1);let i=n.anchor.getNode(),a=sl(Qc(t));if(a===null)return;let o=n.isBackward(),s=o?n.anchor.offset:n.focus.offset,c=o?n.focus.offset:n.anchor.offset;Bn&&!n.isCollapsed()&&H(i)&&a.anchorNode!==null&&i.getTextContent().slice(0,s)+r+i.getTextContent().slice(s+c)===Dc(a.anchorNode)||K(t,ji,r);let l=r.length;zn&&l>1&&e.inputType===`insertCompositionText`&&!t.isComposing()&&(n.anchor.offset-=l),Vn||Hn||Kn||!t.isComposing()||(ya=0,fc(null))}else Oc(!1,t,r===null?void 0:r),Da&&=(Ra(t,r||void 0),!1);(function(){as(),Ar(cs())})()}),{event:e}),Sa=null}],[`click`,function(e,t){xs(t,(()=>{let n=W(),r=sl(Qc(t)),i=Vo();if(r){if(U(n)){let t=n.anchor,a=t.getNode();if(t.type===`element`&&t.offset===0&&n.isCollapsed()&&!ks(a)&&bc().getChildrenSize()===1&&a.getTopLevelElementOrThrow().isEmpty()&&i!==null&&n.is(i))r.removeAllRanges(),n.dirty=!0;else if(e.detail===3&&!n.isCollapsed()&&a!==n.focus.getNode()){let e=function(e,t){let n=e;for(;n!==bc()&&n!=null;){if(t(n))return n;n=n.getParent()}return null}(a,(e=>G(e)&&!e.isInline()));G(e)&&e.select(0)}}else if(e.pointerType===`touch`||e.pointerType===`pen`){let n=r.anchorNode;(ul(n)||ic(n))&&Sc(Bo(i,r,t,e))}}K(t,Di,e)}))}],[`cut`,ga],[`copy`,ga],[`dragstart`,ga],[`dragover`,ga],[`dragend`,ga],[`paste`,ga],[`focus`,ga],[`blur`,ga],[`drop`,ga]];Bn&&va.push([`beforeinput`,(e,t)=>function(e,t){let n=e.inputType,r=La(e);n===`deleteCompositionText`||zn&&Uc(t)||n!==`insertCompositionText`&&xs(t,(()=>{let i=W();if(n===`deleteContentBackward`){if(i===null){let e=Vo();if(!U(e))return;Sc(e.clone())}if(U(i)){let n=i.anchor.key===i.focus.key;if(a=e.timeStamp,ba===`MediaLast`&&a<ya+_a&&t.isComposing()&&n){if(fc(null),ya=0,setTimeout((()=>{xs(t,(()=>{fc(null)}))}),_a),U(i)){let e=i.anchor.getNode();e.markDirty(),H(e)||B(142),Ia(i,e)}}else{fc(null),e.preventDefault();let r=i.anchor.getNode(),a=r.getTextContent(),o=r.canInsertTextAfter(),s=i.anchor.offset===0&&i.focus.offset===a.length,c=Gn&&n&&!s&&o;if(c&&i.isCollapsed()&&(c=!Ds(Hc(i.anchor,!0))),!c){K(t,Oi,!0);let e=W();Gn&&U(e)&&e.isCollapsed()&&(Aa=e,setTimeout((()=>Aa=null)))}}return}}var a;if(!U(i))return;let o=e.data;Sa!==null&&Oc(!1,t,Sa),i.dirty&&Sa===null||!i.isCollapsed()||ks(i.anchor.getNode())||r===null||i.applyDOMRange(r),Sa=null;let s=i.anchor,c=i.focus,l=s.getNode(),u=c.getNode();if(n!==`insertText`&&n!==`insertTranspose`)switch(e.preventDefault(),n){case`insertFromYank`:case`insertFromDrop`:case`insertReplacementText`:K(t,ji,e);break;case`insertFromComposition`:fc(null),K(t,ji,e);break;case`insertLineBreak`:fc(null),K(t,ki,!1);break;case`insertParagraph`:fc(null),Ea&&!Hn?(Ea=!1,K(t,ki,!1)):K(t,Ai,void 0);break;case`insertFromPaste`:case`insertFromPasteAsQuotation`:K(t,Mi,e);break;case`deleteByComposition`:(function(e,t){return e!==t||G(e)||G(t)||!nc(e)||!nc(t)})(l,u)&&K(t,Ni,e);break;case`deleteByDrag`:case`deleteByCut`:K(t,Ni,e);break;case`deleteContent`:K(t,Oi,!1);break;case`deleteWordBackward`:K(t,Pi,!0);break;case`deleteWordForward`:K(t,Pi,!1);break;case`deleteHardLineBackward`:case`deleteSoftLineBackward`:K(t,Fi,!0);break;case`deleteContentForward`:case`deleteHardLineForward`:case`deleteSoftLineForward`:K(t,Fi,!1);break;case`formatStrikeThrough`:K(t,Ii,`strikethrough`);break;case`formatBold`:K(t,Ii,`bold`);break;case`formatItalic`:K(t,Ii,`italic`);break;case`formatUnderline`:K(t,Ii,`underline`);break;case`historyUndo`:K(t,Li,void 0);break;case`historyRedo`:K(t,Ri,void 0)}else{if(o===`
|
|
14
|
+
`)e.preventDefault(),K(t,ki,!1);else if(o===dr)e.preventDefault(),K(t,Ai,void 0);else if(o==null&&e.dataTransfer){let t=e.dataTransfer.getData(`text/plain`);e.preventDefault(),i.insertRawText(t)}else o!=null&&Ma(i,r,o,e.timeStamp,!0)?(e.preventDefault(),K(t,ji,o)):Sa=o;xa=e.timeStamp}}))}(e,t)]);var ya=0,ba=null,xa=0,Sa=null,Ca=new WeakMap,wa=!1,Ta=!1,Ea=!1,Da=!1,Oa=!1,ka=``,Aa=null,ja=[0,``,0,`root`,0];function Ma(e,t,n,r,i){let a=e.anchor,o=e.focus,s=a.getNode(),c=cs(),l=sl(Qc(c)),u=l===null?null:l.anchorNode,d=a.key,f=c.getElementByKey(d),p=n.length;return d!==o.key||!H(s)||(!i&&(!Bn||xa<r+50)||s.isDirty()&&p<2||wc(n))&&a.offset!==o.offset&&!s.isComposing()||rc(s)||s.isDirty()&&p>1||(i||!Bn)&&f!==null&&!s.isComposing()&&u!==oc(f)||l!==null&&t!==null&&(!t.collapsed||t.startContainer!==l.anchorNode||t.startOffset!==l.anchorOffset)||s.getFormat()!==e.format||s.getStyle()!==e.style||function(e,t){if(t.isSegmented())return!0;if(!e.isCollapsed())return!1;let n=e.anchor.offset,r=t.getParentOrThrow(),i=nc(t);return n===0?!t.canInsertTextBefore()||!r.canInsertTextBefore()&&!t.isComposing()||i||function(e){let t=e.getPreviousSibling();return(H(t)||G(t)&&t.isInline())&&!t.canInsertTextAfter()}(t):n===t.getTextContentSize()&&(!t.canInsertTextAfter()||!r.canInsertTextAfter()&&!t.isComposing()||i)}(e,s)}function Na(e,t){return ic(e)&&e.nodeValue!==null&&t!==0&&t!==e.nodeValue.length}function Pa(e,t,n){let{anchorNode:r,anchorOffset:i,focusNode:a,focusOffset:o}=e;wa&&(wa=!1,Na(r,i)&&Na(a,o)&&!Aa)||xs(t,(()=>{if(!n)return void Sc(null);if(!Qs(t,r,a))return;let s=W();if(Aa&&U(s)&&s.isCollapsed()){let e=s.anchor,t=Aa.anchor;(e.key===t.key&&e.offset===t.offset+1||e.offset===1&&t.getNode().is(e.getNode().getPreviousSibling()))&&(s=Aa.clone(),Sc(s))}if(Aa=null,U(s)){let n=s.anchor,r=n.getNode();if(s.isCollapsed()){e.type===`Range`&&e.anchorNode===e.focusNode&&(s.dirty=!0);let i=Qc(t).event,a=i?i.timeStamp:performance.now(),[o,c,l,u,d]=ja,f=bc(),p=!1===t.isComposing()&&f.getTextContent()===``;if(a<d+200&&n.offset===l&&n.key===u)Fa(s,o,c);else if(n.type===`text`)H(r)||B(141),Ia(s,r);else if(n.type===`element`&&!p){G(r)||B(259);let e=n.getNode();e.isEmpty()?function(e,t){Fa(e,t.getTextFormat(),t.getTextStyle())}(s,e):Fa(s,0,``)}}else{let e=n.key,t=s.focus.key,r=s.getNodes(),a=r.length,c=s.isBackward(),l=c?o:i,u=c?i:o,d=c?t:e,f=c?e:t,p=2047,m=!1;for(let e=0;e<a;e++){let t=r[e],n=t.getTextContentSize();if(H(t)&&n!==0&&!(e===0&&t.__key===d&&l===n||e===a-1&&t.__key===f&&u===0)&&(m=!0,p&=t.getFormat(),p===0))break}s.format=m?p:0}}K(t,Ti,void 0)}))}function Fa(e,t,n){e.format===t&&e.style===n||(e.format=t,e.style=n,e.dirty=!0)}function Ia(e,t){Fa(e,t.getFormat(),t.getStyle())}function La(e){if(!e.getTargetRanges)return null;let t=e.getTargetRanges();return t.length===0?null:t[0]}function Ra(e,t){let n=e._compositionKey;if(fc(null),n!==null&&t!=null){if(t===``){let t=mc(n),r=oc(e.getElementByKey(n));r!==null&&r.nodeValue!==null&&H(t)&&kc(t,r.nodeValue,null,null,!0);return}if(t[t.length-1]===`
|
|
15
|
+
`){let t=W();if(U(t)){let n=t.focus;t.anchor.set(n.key,n.offset,n.type),K(e,Ki,null);return}}}Oc(!0,e,t)}function za(e){let t=e.__lexicalEventHandles;return t===void 0&&(t=[],e.__lexicalEventHandles=t),t}var Ba=new Map;function Va(e){let t=cl(e.target);if(t===null)return;let n=ec(t.anchorNode);if(n===null)return;Ta&&(Ta=!1,xs(n,(()=>{let r=Vo(),i=t.anchorNode;(ul(i)||ic(i))&&Sc(Bo(r,t,n,e))})));let r=Tc(n),i=r[r.length-1],a=i._key,o=Ba.get(a),s=o||i;s!==n&&Pa(t,s,!1),Pa(t,n,!0),n===i?o&&Ba.delete(a):Ba.set(a,n)}function Ha(e){e._lexicalHandled=!0}function Ua(e){return!0===e._lexicalHandled}function Wa(e){let t=e.ownerDocument,n=Ca.get(t);if(n===void 0)return;let r=n-1;r>=0||B(164),Ca.set(t,r),r===0&&t.removeEventListener(`selectionchange`,Va);let i=tc(e);$s(i)?(function(e){if(e._parentEditor!==null){let t=Tc(e),n=t[t.length-1]._key;Ba.get(n)===e&&Ba.delete(n)}else Ba.delete(e._key)}(i),e.__lexicalEditor=null):i&&B(198);let a=za(e);for(let e=0;e<a.length;e++)a[e]();e.__lexicalEventHandles=[]}function Ga(e,t,n){as();let r=e.__key,i=e.getParent();if(i===null)return;let a=function(e){let t=W();if(!U(t)||!G(e))return t;let{anchor:n,focus:r}=t,i=n.getNode(),a=r.getNode();return Xc(i,e)&&n.set(e.__key,0,`element`),Xc(a,e)&&r.set(e.__key,0,`element`),t}(e),o=!1;if(U(a)&&t){let t=a.anchor,n=a.focus;t.key===r&&(Wo(t,e,i,e.getPreviousSibling(),e.getNextSibling()),o=!0),n.key===r&&(Wo(n,e,i,e.getPreviousSibling(),e.getNextSibling()),o=!0)}else Eo(a)&&t&&e.isSelected()&&e.selectPrevious();if(U(a)&&t&&!o){let t=e.getIndexWithinParent();uc(e),Ho(a,i,t,-1)}else uc(e);n||el(i)||i.canBeEmpty()||!i.isEmpty()||Ga(i,t),t&&a&&ks(i)&&i.isEmpty()&&i.selectEnd()}function Ka(e){return e}var qa=class{static getType(){let{ownNodeType:e}=Tl(this);return e===void 0&&B(64,this.name),e}static clone(e){B(65,this.name)}$config(){return{}}config(e,t){let n=t.extends||Object.getPrototypeOf(this.constructor);return Object.assign(t,{extends:n,type:e}),{[e]:t}}afterCloneFrom(e){this.__key===e.__key?(this.__parent=e.__parent,this.__next=e.__next,this.__prev=e.__prev,this.__state=e.__state):e.__state&&(this.__state=e.__state.getWritable(this))}constructor(e){this.__type=this.constructor.getType(),this.__parent=null,this.__prev=null,this.__next=null,Object.defineProperty(this,`__state`,{configurable:!0,enumerable:!1,value:void 0,writable:!0}),lc(this,e)}getType(){return this.__type}isInline(){B(137,this.constructor.name)}isAttached(){let e=this.__key;for(;e!==null;){if(e===`root`)return!0;let t=mc(e);if(t===null)break;e=t.__parent}return!1}isSelected(e){let t=e||W();if(t==null)return!1;let n=t.getNodes().some((e=>e.__key===this.__key));if(H(this))return n;if(U(t)&&t.anchor.type===`element`&&t.focus.type===`element`){if(t.isCollapsed())return!1;let e=this.getParent();if(Ds(this)&&this.isInline()&&e){let n=t.isBackward()?t.focus:t.anchor;if(e.is(n.getNode())&&n.offset===e.getChildrenSize()&&this.is(e.getLastChild()))return!1}}return n}getKey(){return this.__key}getIndexWithinParent(){let e=this.getParent();if(e===null)return-1;let t=e.getFirstChild(),n=0;for(;t!==null;){if(this.is(t))return n;n++,t=t.getNextSibling()}return-1}getParent(){let e=this.getLatest().__parent;return e===null?null:mc(e)}getParentOrThrow(){let e=this.getParent();return e===null&&B(66,this.__key),e}getTopLevelElement(){let e=this;for(;e!==null;){let t=e.getParent();if(el(t))return G(e)||e===this&&Ds(e)||B(194),e;e=t}return null}getTopLevelElementOrThrow(){let e=this.getTopLevelElement();return e===null&&B(67,this.__key),e}getParents(){let e=[],t=this.getParent();for(;t!==null;)e.push(t),t=t.getParent();return e}getParentKeys(){let e=[],t=this.getParent();for(;t!==null;)e.push(t.__key),t=t.getParent();return e}getPreviousSibling(){let e=this.getLatest().__prev;return e===null?null:mc(e)}getPreviousSiblings(){let e=[],t=this.getParent();if(t===null)return e;let n=t.getFirstChild();for(;n!==null&&!n.is(this);)e.push(n),n=n.getNextSibling();return e}getNextSibling(){let e=this.getLatest().__next;return e===null?null:mc(e)}getNextSiblings(){let e=[],t=this.getNextSibling();for(;t!==null;)e.push(t),t=t.getNextSibling();return e}getCommonAncestor(e){let t=G(this)?this:this.getParent(),n=G(e)?e:e.getParent(),r=t&&n?iu(t,n):null;return r?r.commonAncestor:null}is(e){return e!=null&&this.__key===e.__key}isBefore(e){let t=iu(this,e);return t!==null&&(t.type===`descendant`||(t.type===`branch`?tu(t)===-1:(t.type!==`same`&&t.type!==`ancestor`&&B(279),!1)))}isParentOf(e){let t=iu(this,e);return t!==null&&t.type===`ancestor`}getNodesBetween(e){let t=this.isBefore(e),n=[],r=new Set,i=this;for(;i!==null;){let a=i.__key;if(r.has(a)||(r.add(a),n.push(i)),i===e)break;let o=G(i)?t?i.getFirstChild():i.getLastChild():null;if(o!==null){i=o;continue}let s=t?i.getNextSibling():i.getPreviousSibling();if(s!==null){i=s;continue}let c=i.getParentOrThrow();if(r.has(c.__key)||n.push(c),c===e)break;let l=null,u=c;do{if(u===null&&B(68),l=t?u.getNextSibling():u.getPreviousSibling(),u=u.getParent(),u===null)break;l!==null||r.has(u.__key)||n.push(u)}while(l===null);i=l}return t||n.reverse(),n}isDirty(){let e=cs()._dirtyLeaves;return e!==null&&e.has(this.__key)}getLatest(){let e=mc(this.__key);return e===null&&B(113),e}getWritable(){as();let e=ss(),t=cs(),n=e._nodeMap,r=this.__key,i=this.getLatest(),a=t._cloneNotNeeded,o=W();if(o!==null&&o.setCachedNodes(null),a.has(r))return dc(i),i;let s=xl(i);return a.add(r),dc(s),n.set(r,s),s}getTextContent(){return``}getTextContentSize(){return this.getTextContent().length}createDOM(e,t){B(70)}updateDOM(e,t,n){B(71)}exportDOM(e){return{element:this.createDOM(e._config,e)}}exportJSON(){let e=this.__state?this.__state.toJSON():void 0;return{type:this.__type,version:1,...e}}static importJSON(e){B(18,this.name)}updateFromJSON(e){return function(e,t){let n=e.getWritable(),r=t.$,i=r;for(let e of Fr(n).flatKeys)e in t&&(i!==void 0&&i!==r||(i={...r}),i[e]=t[e]);return(n.__state||i)&&Pr(e).updateFromJSON(i),n}(this,e)}static transform(){return null}remove(e){Ga(this,!0,e)}replace(e,t){as();let n=W();n!==null&&(n=n.clone()),rl(this,e);let r=this.getLatest(),i=this.__key,a=e.__key,o=e.getWritable(),s=this.getParentOrThrow().getWritable(),c=s.__size;uc(o);let l=r.getPreviousSibling(),u=r.getNextSibling(),d=r.__prev,f=r.__next,p=r.__parent;if(Ga(r,!1,!0),l===null?s.__first=a:l.getWritable().__next=a,o.__prev=d,u===null?s.__last=a:u.getWritable().__prev=a,o.__next=f,o.__parent=p,s.__size=c,t&&(G(this)&&G(o)||B(139),this.getChildren().forEach((e=>{o.append(e)}))),U(n)){Sc(n);let e=n.anchor,t=n.focus;e.key===i&&Co(e,o),t.key===i&&Co(t,o)}return pc()===i&&fc(a),o}insertAfter(e,t=!0){as(),rl(this,e);let n=this.getWritable(),r=e.getWritable(),i=r.getParent(),a=W(),o=!1,s=!1;if(i!==null){let t=e.getIndexWithinParent();if(uc(r),U(a)){let e=i.__key,n=a.anchor,r=a.focus;o=n.type===`element`&&n.key===e&&n.offset===t+1,s=r.type===`element`&&r.key===e&&r.offset===t+1}}let c=this.getNextSibling(),l=this.getParentOrThrow().getWritable(),u=r.__key,d=n.__next;if(c===null?l.__last=u:c.getWritable().__prev=u,l.__size++,n.__next=u,r.__next=d,r.__prev=n.__key,r.__parent=n.__parent,t&&U(a)){let e=this.getIndexWithinParent();Ho(a,l,e+1);let t=l.__key;o&&a.anchor.set(t,e+2,`element`),s&&a.focus.set(t,e+2,`element`)}return e}insertBefore(e,t=!0){as(),rl(this,e);let n=this.getWritable(),r=e.getWritable(),i=r.__key;uc(r);let a=this.getPreviousSibling(),o=this.getParentOrThrow().getWritable(),s=n.__prev,c=this.getIndexWithinParent();a===null?o.__first=i:a.getWritable().__next=i,o.__size++,n.__prev=i,r.__prev=s,r.__next=n.__key,r.__parent=n.__parent;let l=W();return t&&U(l)&&Ho(l,this.getParentOrThrow(),c),e}isParentRequired(){return!1}createParentElementNode(){return zs()}selectStart(){return this.selectPrevious()}selectEnd(){return this.selectNext(0,0)}selectPrevious(e,t){as();let n=this.getPreviousSibling(),r=this.getParentOrThrow();if(n===null)return r.select(0,0);if(G(n))return n.select();if(!H(n)){let e=n.getIndexWithinParent()+1;return r.select(e,e)}return n.select(e,t)}selectNext(e,t){as();let n=this.getNextSibling(),r=this.getParentOrThrow();if(n===null)return r.select();if(G(n))return n.select(0,0);if(!H(n)){let e=n.getIndexWithinParent();return r.select(e,e)}return n.select(e,t)}markDirty(){this.getWritable()}reconcileObservedMutation(e,t){this.markDirty()}},Ja=class e extends qa{static getType(){return`linebreak`}static clone(t){return new e(t.__key)}constructor(e){super(e)}getTextContent(){return`
|
|
16
|
+
`}createDOM(){return document.createElement(`br`)}updateDOM(){return!1}isInline(){return!0}static importDOM(){return{br:e=>function(e){let t=e.parentElement;if(t!==null&&ml(t)){let n=t.firstChild;if(n===e||n.nextSibling===e&&Qa(n)){let n=t.lastChild;if(n===e||n.previousSibling===e&&Qa(n))return!0}}return!1}(e)||function(e){let t=e.parentElement;if(t!==null&&ml(t)){let n=t.firstChild;if(n===e||n.nextSibling===e&&Qa(n))return!1;let r=t.lastChild;if(r===e||r.previousSibling===e&&Qa(r))return!0}return!1}(e)?null:{conversion:Ya,priority:0}}}static importJSON(e){return Xa().updateFromJSON(e)}};function Ya(e){return{node:Xa()}}function Xa(){return nl(new Ja)}function Za(e){return e instanceof Ja}function Qa(e){return ic(e)&&/^( |\t|\r?\n)+$/.test(e.textContent||``)}function $a(e,t){return 16&t?`code`:t&128?`mark`:32&t?`sub`:64&t?`sup`:null}function eo(e,t){return 1&t?`strong`:2&t?`em`:`span`}function to(e,t,n,r,i){let a=r.classList,o=zc(i,`base`);o!==void 0&&a.add(...o),o=zc(i,`underlineStrikethrough`);let s=!1,c=t&8&&t&4;o!==void 0&&(n&8&&n&4?(s=!0,c||a.add(...o)):c&&a.remove(...o));for(let e in pr){let r=pr[e];if(o=zc(i,e),o!==void 0)if(n&r){if(s&&(e===`underline`||e===`strikethrough`)){t&r&&a.remove(...o);continue}t&r&&(!c||e!==`underline`)&&e!==`strikethrough`||a.add(...o)}else t&r&&a.remove(...o)}}function no(e,t,n){let r=t.firstChild,i=n.isComposing(),a=e+(i?ur:``);if(r==null)t.textContent=a;else{let e=r.nodeValue;if(e!==a)if(i||zn){let[t,n,i]=function(e,t){let n=e.length,r=t.length,i=0,a=0;for(;i<n&&i<r&&e[i]===t[i];)i++;for(;a+i<n&&a+i<r&&e[n-a-1]===t[r-a-1];)a++;return[i,n-i-a,t.slice(i,r-a)]}(e,a);n!==0&&r.deleteData(t,n),r.insertData(t,i)}else r.nodeValue=a}}function ro(e,t,n,r,i,a){no(i,e,t);let o=a.theme.text;o!==void 0&&to(0,0,r,e,o)}function io(e,t){let n=document.createElement(t);return n.appendChild(e),n}var ao=class e extends qa{static getType(){return`text`}static clone(t){return new e(t.__text,t.__key)}afterCloneFrom(e){super.afterCloneFrom(e),this.__text=e.__text,this.__format=e.__format,this.__style=e.__style,this.__mode=e.__mode,this.__detail=e.__detail}constructor(e=``,t){super(t),this.__text=e,this.__format=0,this.__style=``,this.__mode=0,this.__detail=0}getFormat(){return this.getLatest().__format}getDetail(){return this.getLatest().__detail}getMode(){return vr[this.getLatest().__mode]}getStyle(){return this.getLatest().__style}isToken(){return this.getLatest().__mode===1}isComposing(){return this.__key===pc()}isSegmented(){return this.getLatest().__mode===2}isDirectionless(){return!!(1&this.getLatest().__detail)}isUnmergeable(){return!!(2&this.getLatest().__detail)}hasFormat(e){let t=pr[e];return!!(this.getFormat()&t)}isSimpleText(){return this.__type===`text`&&this.__mode===0}getTextContent(){return this.getLatest().__text}getFormatFlags(e,t){return sc(this.getLatest().__format,e,t)}canHaveFormat(){return!0}isInline(){return!0}createDOM(e,t){let n=this.__format,r=$a(0,n),i=eo(0,n),a=r===null?i:r,o=document.createElement(a),s=o;this.hasFormat(`code`)&&o.setAttribute(`spellcheck`,`false`),r!==null&&(s=document.createElement(i),o.appendChild(s)),ro(s,this,0,n,this.__text,e);let c=this.__style;return c!==``&&(o.style.cssText=c),o}updateDOM(e,t,n){let r=this.__text,i=e.__format,a=this.__format,o=$a(0,i),s=$a(0,a),c=eo(0,i),l=eo(0,a);if((o===null?c:o)!==(s===null?l:s))return!0;if(o===s&&c!==l){let e=t.firstChild;e??B(48);let i=document.createElement(l);return ro(i,this,0,a,r,n),t.replaceChild(i,e),!1}let u=t;s!==null&&o!==null&&(u=t.firstChild,u??B(49)),no(r,u,this);let d=n.theme.text;d!==void 0&&i!==a&&to(0,i,a,u,d);let f=e.__style,p=this.__style;return f!==p&&(t.style.cssText=p),!1}static importDOM(){return{"#text":()=>({conversion:uo,priority:0}),b:()=>({conversion:so,priority:0}),code:()=>({conversion:mo,priority:0}),em:()=>({conversion:mo,priority:0}),i:()=>({conversion:mo,priority:0}),mark:()=>({conversion:mo,priority:0}),s:()=>({conversion:mo,priority:0}),span:()=>({conversion:oo,priority:0}),strong:()=>({conversion:mo,priority:0}),sub:()=>({conversion:mo,priority:0}),sup:()=>({conversion:mo,priority:0}),u:()=>({conversion:mo,priority:0})}}static importJSON(e){return ho().updateFromJSON(e)}updateFromJSON(e){return super.updateFromJSON(e).setTextContent(e.text).setFormat(e.format).setDetail(e.detail).setMode(e.mode).setStyle(e.style)}exportDOM(e){let{element:t}=super.exportDOM(e);return ul(t)||B(132),t.style.whiteSpace=`pre-wrap`,this.hasFormat(`lowercase`)?t.style.textTransform=`lowercase`:this.hasFormat(`uppercase`)?t.style.textTransform=`uppercase`:this.hasFormat(`capitalize`)&&(t.style.textTransform=`capitalize`),this.hasFormat(`bold`)&&(t=io(t,`b`)),this.hasFormat(`italic`)&&(t=io(t,`i`)),this.hasFormat(`strikethrough`)&&(t=io(t,`s`)),this.hasFormat(`underline`)&&(t=io(t,`u`)),{element:t}}exportJSON(){return{detail:this.getDetail(),format:this.getFormat(),mode:this.getMode(),style:this.getStyle(),text:this.getTextContent(),...super.exportJSON()}}selectionTransform(e,t){}setFormat(e){let t=this.getWritable();return t.__format=typeof e==`string`?pr[e]:e,t}setDetail(e){let t=this.getWritable();return t.__detail=typeof e==`string`?mr[e]:e,t}setStyle(e){let t=this.getWritable();return t.__style=e,t}toggleFormat(e){let t=sc(this.getFormat(),e,null);return this.setFormat(t)}toggleDirectionless(){let e=this.getWritable();return e.__detail^=1,e}toggleUnmergeable(){let e=this.getWritable();return e.__detail^=2,e}setMode(e){let t=_r[e];if(this.__mode===t)return this;let n=this.getWritable();return n.__mode=t,n}setTextContent(e){if(this.__text===e)return this;let t=this.getWritable();return t.__text=e,t}select(e,t){as();let n=e,r=t,i=W(),a=this.getTextContent(),o=this.__key;if(typeof a==`string`){let e=a.length;n===void 0&&(n=e),r===void 0&&(r=e)}else n=0,r=0;if(!U(i))return Lo(o,n,o,r,`text`,`text`);{let e=pc();e!==i.anchor.key&&e!==i.focus.key||fc(o),i.setTextNodeRange(this,n,this,r)}return i}selectStart(){return this.select(0,0)}selectEnd(){let e=this.getTextContentSize();return this.select(e,e)}spliceText(e,t,n,r){let i=this.getWritable(),a=i.__text,o=n.length,s=e;s<0&&(s=o+s,s<0&&(s=0));let c=W();if(r&&U(c)){let t=e+o;c.setTextNodeRange(i,t,i,t)}return i.__text=a.slice(0,s)+n+a.slice(s+t),i}canInsertTextBefore(){return!0}canInsertTextAfter(){return!0}splitText(...e){as();let t=this.getLatest(),n=t.getTextContent();if(n===``)return[];let r=t.__key,i=pc(),a=n.length;e.sort(((e,t)=>e-t)),e.push(a);let o=[],s=e.length;for(let t=0,r=0;t<a&&r<=s;r++){let i=e[r];i>t&&(o.push(n.slice(t,i)),t=i)}let c=o.length;if(c===1)return[t];let l=o[0],u=t.getParent(),d,f=t.getFormat(),p=t.getStyle(),m=t.__detail,h=!1,g=null,_=null,v=W();if(U(v)){let[e,t]=v.isBackward()?[v.focus,v.anchor]:[v.anchor,v.focus];e.type===`text`&&e.key===r&&(g=e),t.type===`text`&&t.key===r&&(_=t)}t.isSegmented()?(d=ho(l),d.__format=f,d.__style=p,d.__detail=m,d.__state=zr(t,d),h=!0):d=t.setTextContent(l);let y=[d];for(let e=1;e<c;e++){let n=ho(o[e]);n.__format=f,n.__style=p,n.__detail=m,n.__state=zr(t,n);let a=n.__key;i===r&&fc(a),y.push(n)}let b=g?g.offset:null,x=_?_.offset:null,S=0;for(let e of y){if(!g&&!_)break;let t=S+e.getTextContentSize();if(g!==null&&b!==null&&b<=t&&b>=S&&(g.set(e.getKey(),b-S,`text`),b<t&&(g=null)),_!==null&&x!==null&&x<=t&&x>=S){_.set(e.getKey(),x-S,`text`);break}S=t}if(u!==null){(function(e){let t=e.getPreviousSibling(),n=e.getNextSibling();t!==null&&dc(t),n!==null&&dc(n)})(this);let e=u.getWritable(),t=this.getIndexWithinParent();h?(e.splice(t,0,y),this.remove()):e.splice(t,1,y),U(v)&&Ho(v,u,t,c-1)}return y}mergeWithSibling(e){let t=e===this.getPreviousSibling();t||e===this.getNextSibling()||B(50);let n=this.__key,r=e.__key,i=this.__text,a=i.length;pc()===r&&fc(n);let o=W();if(U(o)){let i=o.anchor,s=o.focus;i!==null&&i.key===r&&Go(i,t,n,e,a),s!==null&&s.key===r&&Go(s,t,n,e,a)}let s=e.__text,c=t?s+i:i+s;this.setTextContent(c);let l=this.getWritable();return e.remove(),l}isTextEntity(){return!1}};function oo(e){return{forChild:go(e.style),node:null}}function so(e){let t=e,n=t.style.fontWeight===`normal`;return{forChild:go(t.style,n?void 0:`bold`),node:null}}var co=new WeakMap;function lo(e){if(!ul(e))return!1;if(e.nodeName===`PRE`)return!0;let t=e.style.whiteSpace;return typeof t==`string`&&t.startsWith(`pre`)}function uo(e){let t=e;e.parentElement===null&&B(129);let n=t.textContent||``;if(function(e){let t,n=e.parentNode,r=[e];for(;n!==null&&(t=co.get(n))===void 0&&!lo(n);)r.push(n),n=n.parentNode;let i=t===void 0?n:t;for(let e=0;e<r.length;e++)co.set(r[e],i);return i}(t)!==null){let e=n.split(/(\r?\n|\t)/),t=[],r=e.length;for(let n=0;n<r;n++){let r=e[n];r===`
|
|
17
|
+
`||r===`\r
|
|
18
|
+
`?t.push(Xa()):r===` `?t.push(vo()):r!==``&&t.push(ho(r))}return{node:t}}if(n=n.replace(/\r/g,``).replace(/[ \t\n]+/g,` `),n===``)return{node:null};if(n[0]===` `){let e=t,r=!0;for(;e!==null&&(e=fo(e,!1))!==null;){let t=e.textContent||``;if(t.length>0){/[ \t\n]$/.test(t)&&(n=n.slice(1)),r=!1;break}}r&&(n=n.slice(1))}if(n[n.length-1]===` `){let e=t,r=!0;for(;e!==null&&(e=fo(e,!0))!==null;)if((e.textContent||``).replace(/^( |\t|\r?\n)+/,``).length>0){r=!1;break}r&&(n=n.slice(0,n.length-1))}return n===``?{node:null}:{node:ho(n)}}function fo(e,t){let n=e;for(;;){let e;for(;(e=t?n.nextSibling:n.previousSibling)===null;){let e=n.parentElement;if(e===null)return null;n=e}if(n=e,ul(n)){let e=n.style.display;if(e===``&&!pl(n)||e!==``&&!e.startsWith(`inline`))return null}let r=n;for(;(r=t?n.firstChild:n.lastChild)!==null;)n=r;if(ic(n))return n;if(n.nodeName===`BR`)return null}}var po={code:`code`,em:`italic`,i:`italic`,mark:`highlight`,s:`strikethrough`,strong:`bold`,sub:`subscript`,sup:`superscript`,u:`underline`};function mo(e){let t=po[e.nodeName.toLowerCase()];return t===void 0?{node:null}:{forChild:go(e.style,t),node:null}}function ho(e=``){return nl(new ao(e))}function H(e){return e instanceof ao}function go(e,t){let n=e.fontWeight,r=e.textDecoration.split(` `),i=n===`700`||n===`bold`,a=r.includes(`line-through`),o=e.fontStyle===`italic`,s=r.includes(`underline`),c=e.verticalAlign;return e=>H(e)?(i&&!e.hasFormat(`bold`)&&e.toggleFormat(`bold`),a&&!e.hasFormat(`strikethrough`)&&e.toggleFormat(`strikethrough`),o&&!e.hasFormat(`italic`)&&e.toggleFormat(`italic`),s&&!e.hasFormat(`underline`)&&e.toggleFormat(`underline`),c!==`sub`||e.hasFormat(`subscript`)||e.toggleFormat(`subscript`),c!==`super`||e.hasFormat(`superscript`)||e.toggleFormat(`superscript`),t&&!e.hasFormat(t)&&e.toggleFormat(t),e):e}var _o=class e extends ao{static getType(){return`tab`}static clone(t){return new e(t.__key)}constructor(e){super(` `,e),this.__detail=2}static importDOM(){return null}createDOM(e){let t=super.createDOM(e),n=zc(e.theme,`tab`);return n!==void 0&&t.classList.add(...n),t}static importJSON(e){return vo().updateFromJSON(e)}setTextContent(e){return e!==` `&&e!==``&&B(126),super.setTextContent(` `)}spliceText(e,t,n,r){return n===``&&t===0||n===` `&&t===1||B(286),this}setDetail(e){return e!==2&&B(127),this}setMode(e){return e!==`normal`&&B(128),this}canInsertTextBefore(){return!1}canInsertTextAfter(){return!1}};function vo(){return nl(new _o)}function yo(e){return e instanceof _o}var bo=class{constructor(e,t,n){this._selection=null,this.key=e,this.offset=t,this.type=n}is(e){return this.key===e.key&&this.offset===e.offset&&this.type===e.type}isBefore(e){return this.key===e.key?this.offset<e.offset:eu(mu(au(this,`next`)),mu(au(e,`next`)))<0}getNode(){let e=mc(this.key);return e===null&&B(20),e}set(e,t,n,r){let i=this._selection,a=this.key;r&&this.key===e&&this.offset===t&&this.type===n||(this.key=e,this.offset=t,this.type=n,is()||(pc()===a&&fc(e),i!==null&&(i.setCachedNodes(null),i.dirty=!0)))}};function xo(e,t,n){return new bo(e,t,n)}function So(e,t){let n=t.__key,r=e.offset,i=`element`;if(H(t)){i=`text`;let e=t.getTextContentSize();r>e&&(r=e)}else if(!G(t)){let e=t.getNextSibling();if(H(e))n=e.__key,r=0,i=`text`;else{let e=t.getParent();e&&(n=e.__key,r=t.getIndexWithinParent()+1)}}e.set(n,r,i)}function Co(e,t){if(G(t)){let n=t.getLastDescendant();G(n)||H(n)?So(e,n):So(e,t)}else So(e,t)}var wo=class e{constructor(e){this._cachedNodes=null,this._nodes=e,this.dirty=!1}getCachedNodes(){return this._cachedNodes}setCachedNodes(e){this._cachedNodes=e}is(e){if(!Eo(e))return!1;let t=this._nodes,n=e._nodes;return t.size===n.size&&Array.from(t).every((e=>n.has(e)))}isCollapsed(){return!1}isBackward(){return!1}getStartEndPoints(){return null}add(e){this.dirty=!0,this._nodes.add(e),this._cachedNodes=null}delete(e){this.dirty=!0,this._nodes.delete(e),this._cachedNodes=null}clear(){this.dirty=!0,this._nodes.clear(),this._cachedNodes=null}has(e){return this._nodes.has(e)}clone(){return new e(new Set(this._nodes))}extract(){return this.getNodes()}insertRawText(e){}insertText(){}insertNodes(e){let t=this.getNodes(),n=t.length,r=t[n-1],i;if(H(r))i=r.select();else{let e=r.getIndexWithinParent()+1;i=r.getParentOrThrow().select(e,e)}i.insertNodes(e);for(let e=0;e<n;e++)t[e].remove()}getNodes(){let e=this._cachedNodes;if(e!==null)return e;let t=this._nodes,n=[];for(let e of t){let t=mc(e);t!==null&&n.push(t)}return is()||(this._cachedNodes=n),n}getTextContent(){let e=this.getNodes(),t=``;for(let n=0;n<e.length;n++)t+=e[n].getTextContent();return t}deleteNodes(){let e=this.getNodes();if((W()||Vo())===this&&e[0]){let t=Vl(e[0],`next`);su(Ql(t,t))}for(let t of e)t.remove()}};function U(e){return e instanceof To}var To=class e{constructor(e,t,n,r){this.anchor=e,this.focus=t,e._selection=this,t._selection=this,this._cachedNodes=null,this.format=n,this.style=r,this.dirty=!1}getCachedNodes(){return this._cachedNodes}setCachedNodes(e){this._cachedNodes=e}is(e){return!!U(e)&&this.anchor.is(e.anchor)&&this.focus.is(e.focus)&&this.format===e.format&&this.style===e.style}isCollapsed(){return this.anchor.is(this.focus)}getNodes(){let e=this._cachedNodes;if(e!==null)return e;let t=function(e){let t=[],[n,r]=e.getTextSlices();n&&t.push(n.caret.origin);let i=new Set,a=new Set;for(let n of e)if(Ll(n)){let{origin:e}=n;t.length===0?i.add(e):(a.add(e),t.push(e))}else{let{origin:e}=n;G(e)&&a.has(e)||t.push(e)}if(r&&t.push(r.caret.origin),Il(e.focus)&&G(e.focus.origin)&&e.focus.getNodeAtCaret()===null)for(let n=Gl(e.focus.origin,`previous`);Ll(n)&&i.has(n.origin)&&!n.origin.isEmpty()&&n.origin.is(t[t.length-1]);n=ql(n))i.delete(n.origin),t.pop();for(;t.length>1;){let e=t[t.length-1];if(!G(e)||a.has(e)||e.isEmpty()||i.has(e))break;t.pop()}if(t.length===0&&e.isCollapsed()){let n=mu(e.anchor),r=mu(e.anchor.getFlipped()),i=e=>Fl(e)?e.origin:e.getNodeAtCaret(),a=i(n)||i(r)||(e.anchor.getNodeAtCaret()?n.origin:r.origin);t.push(a)}return t}(_u(lu(this),`next`));return is()||(this._cachedNodes=t),t}setTextNodeRange(e,t,n,r){this.anchor.set(e.__key,t,`text`),this.focus.set(n.__key,r,`text`)}getTextContent(){let e=this.getNodes();if(e.length===0)return``;let t=e[0],n=e[e.length-1],r=this.anchor,i=this.focus,a=r.isBefore(i),[o,s]=Oo(this),c=``,l=!0;for(let u=0;u<e.length;u++){let d=e[u];if(G(d)&&!d.isInline())l||(c+=`
|
|
19
|
+
`),l=!d.isEmpty();else if(l=!1,H(d)){let e=d.getTextContent();d===t?d===n?r.type===`element`&&i.type===`element`&&i.offset!==r.offset||(e=o<s?e.slice(o,s):e.slice(s,o)):e=a?e.slice(o):e.slice(s):d===n&&(e=a?e.slice(0,s):e.slice(0,o)),c+=e}else !Ds(d)&&!Za(d)||d===n&&this.isCollapsed()||(c+=d.getTextContent())}return c}applyDOMRange(e){let t=cs(),n=t.getEditorState()._selection,r=Fo(e.startContainer,e.startOffset,e.endContainer,e.endOffset,t,n);if(r===null)return;let[i,a]=r;this.anchor.set(i.key,i.offset,i.type,!0),this.focus.set(a.key,a.offset,a.type,!0),Ur(this)}clone(){let t=this.anchor,n=this.focus;return new e(xo(t.key,t.offset,t.type),xo(n.key,n.offset,n.type),this.format,this.style)}toggleFormat(e){this.format=sc(this.format,e,null),this.dirty=!0}setFormat(e){this.format=e,this.dirty=!0}setStyle(e){this.style=e,this.dirty=!0}hasFormat(e){let t=pr[e];return!!(this.format&t)}insertRawText(e){let t=e.split(/(\r?\n|\t)/),n=[],r=t.length;for(let e=0;e<r;e++){let r=t[e];r===`
|
|
20
|
+
`||r===`\r
|
|
21
|
+
`?n.push(Xa()):r===` `?n.push(vo()):n.push(ho(r))}this.insertNodes(n)}insertText(e){let t=this.anchor,n=this.focus,r=this.format,i=this.style,a=t,o=n;!this.isCollapsed()&&n.isBefore(t)&&(a=n,o=t),a.type===`element`&&function(e,t,n,r){let i=e.getNode(),a=i.getChildAtIndex(e.offset),o=ho();if(o.setFormat(n),o.setStyle(r),Bs(a))a.splice(0,0,[o]);else{let e=ks(i)?zs().append(o):o;a===null?i.append(e):a.insertBefore(e)}e.is(t)&&t.set(o.__key,0,`text`),e.set(o.__key,0,`text`)}(a,o,r,i),o.type===`element`&&ou(o,mu(au(o,`next`)));let s=a.offset,c=o.offset,l=this.getNodes(),u=l.length,d=l[0];H(d)||B(26);let f=d.getTextContent().length,p=d.getParentOrThrow(),m=l[u-1];if(u===1&&o.type===`element`&&(c=f,o.set(a.key,c,`text`)),this.isCollapsed()&&s===f&&(rc(d)||!d.canInsertTextAfter()||!p.canInsertTextAfter()&&d.getNextSibling()===null)){let t=d.getNextSibling();if(H(t)&&t.canInsertTextBefore()&&!rc(t)||(t=ho(),t.setFormat(r),t.setStyle(i),p.canInsertTextAfter()?d.insertAfter(t):p.insertAfter(t)),t.select(0,0),d=t,e!==``)return void this.insertText(e)}else if(this.isCollapsed()&&s===0&&(rc(d)||!d.canInsertTextBefore()||!p.canInsertTextBefore()&&d.getPreviousSibling()===null)){let t=d.getPreviousSibling();if(H(t)&&!rc(t)||(t=ho(),t.setFormat(r),p.canInsertTextBefore()?d.insertBefore(t):p.insertBefore(t)),t.select(),d=t,e!==``)return void this.insertText(e)}else if(d.isSegmented()&&s!==f){let e=ho(d.getTextContent());e.setFormat(r),d.replace(e),d=e}else if(!this.isCollapsed()&&e!==``){let t=m.getParent();if(!p.canInsertTextBefore()||!p.canInsertTextAfter()||G(t)&&(!t.canInsertTextBefore()||!t.canInsertTextAfter()))return this.insertText(``),Po(this.anchor,this.focus,null),void this.insertText(e)}if(u===1){if(nc(d)){let t=ho(e);t.select(),d.replace(t);return}let t=d.getFormat(),n=d.getStyle();if(s!==c||t===r&&n===i){if(yo(d)){let t=ho(e);t.setFormat(r),t.setStyle(i),t.select(),d.replace(t);return}}else{if(d.getTextContent()!==``){let t=ho(e);if(t.setFormat(r),t.setStyle(i),t.select(),s===0)d.insertBefore(t,!1);else{let[e]=d.splitText(s);e.insertAfter(t,!1)}t.isComposing()&&this.anchor.type===`text`&&(this.anchor.offset-=e.length);return}d.setFormat(r),d.setStyle(i)}let a=c-s;d=d.spliceText(s,a,e,!0),d.getTextContent()===``?d.remove():this.anchor.type===`text`&&(d.isComposing()?this.anchor.offset-=e.length:(this.format=t,this.style=n))}else{let t=new Set([...d.getParentKeys(),...m.getParentKeys()]),n=G(d)?d:d.getParentOrThrow(),r=G(m)?m:m.getParentOrThrow(),i=m;if(!n.is(r)&&r.isInline())do i=r,r=r.getParentOrThrow();while(r.isInline());if(o.type===`text`&&(c!==0||m.getTextContent()===``)||o.type===`element`&&m.getIndexWithinParent()<c)if(H(m)&&!nc(m)&&c!==m.getTextContentSize()){if(m.isSegmented()){let e=ho(m.getTextContent());m.replace(e),m=e}ks(o.getNode())||o.type!==`text`||(m=m.spliceText(0,c,``)),t.add(m.__key)}else{let e=m.getParentOrThrow();e.canBeEmpty()||e.getChildrenSize()!==1?m.remove():e.remove()}else t.add(m.__key);let a=r.getChildren(),p=new Set(l),h=n.is(r),g=n.isInline()&&d.getNextSibling()===null?n:d;for(let e=a.length-1;e>=0;e--){let t=a[e];if(t.is(d)||G(t)&&t.isParentOf(d))break;t.isAttached()&&(!p.has(t)||t.is(i)?h||g.insertAfter(t,!1):t.remove())}if(!h){let e=r,n=null;for(;e!==null;){let r=e.getChildren(),i=r.length;(i===0||r[i-1].is(n))&&(t.delete(e.__key),n=e),e=e.getParent()}}if(nc(d))if(s===f)d.select();else{let t=ho(e);t.select(),d.replace(t)}else d=d.spliceText(s,f-s,e,!0),d.getTextContent()===``?d.remove():d.isComposing()&&this.anchor.type===`text`&&(this.anchor.offset-=e.length);for(let e=1;e<u;e++){let n=l[e],r=n.__key;t.has(r)||n.remove()}}}removeText(){let e=W()===this;cu(this,pu(lu(this))),e&&W()!==this&&Sc(this)}formatText(e,t=null){if(this.isCollapsed())return this.toggleFormat(e),void fc(null);let n=this.getNodes(),r=[];for(let e of n)H(e)&&r.push(e);let i=t=>{n.forEach((n=>{if(G(n)){let r=n.getFormatFlags(e,t);n.setTextFormat(r)}}))},a=r.length;if(a===0)return this.toggleFormat(e),fc(null),void i(t);let o=this.anchor,s=this.focus,c=this.isBackward(),l=c?s:o,u=c?o:s,d=0,f=r[0],p=l.type===`element`?0:l.offset;if(l.type===`text`&&p===f.getTextContentSize()&&(d=1,f=r[1],p=0),f==null)return;let m=f.getFormatFlags(e,t);i(m);let h=a-1,g=r[h],_=u.type===`text`?u.offset:g.getTextContentSize();if(f.is(g)){if(p===_)return;if(rc(f)||p===0&&_===f.getTextContentSize())f.setFormat(m);else{let e=f.splitText(p,_),t=p===0?e[0]:e[1];t.setFormat(m),l.type===`text`&&l.set(t.__key,0,`text`),u.type===`text`&&u.set(t.__key,_-p,`text`)}this.format=m;return}p===0||rc(f)||([,f]=f.splitText(p),p=0),f.setFormat(m);let v=g.getFormatFlags(e,m);_>0&&(_===g.getTextContentSize()||rc(g)||([g]=g.splitText(_)),g.setFormat(v));for(let t=d+1;t<h;t++){let n=r[t],i=n.getFormatFlags(e,v);n.setFormat(i)}l.type===`text`&&l.set(f.__key,p,`text`),u.type===`text`&&u.set(g.__key,_,`text`),this.format=m|v}insertNodes(e){if(e.length===0)return;if(this.isCollapsed()||this.removeText(),this.anchor.key===`root`){this.insertParagraph();let t=W();return U(t)||B(134),t.insertNodes(e)}let t=(this.isBackward()?this.focus:this.anchor).getNode(),n=gl(t,hl),r=e[e.length-1];if(G(n)&&`__language`in n){if(`__language`in e[0])this.insertText(e[0].getTextContent());else{let t=Yo(this);n.splice(t,0,e),r.selectEnd()}return}if(!e.some((e=>(G(e)||Ds(e))&&!e.isInline()))){G(n)||B(211,t.constructor.name,t.getType());let i=Yo(this);n.splice(i,0,e),r.selectEnd();return}let i=function(e){let t=zs(),n=null;for(let r=0;r<e.length;r++){let i=e[r],a=Za(i);if(a||Ds(i)&&i.isInline()||G(i)&&i.isInline()||H(i)||i.isParentRequired()){if(n===null&&(n=i.createParentElementNode(),t.append(n),a))continue;n!==null&&n.append(i)}else t.append(i),n=null}return t}(e),a=i.getLastDescendant(),o=i.getChildren(),s=!G(n)||!n.isEmpty()?this.insertParagraph():null,c=o[o.length-1],l=o[0];var u;G(u=l)&&hl(u)&&!u.isEmpty()&&G(n)&&(!n.isEmpty()||n.canMergeWhenEmpty())&&(G(n)||B(211,t.constructor.name,t.getType()),n.append(...l.getChildren()),l=o[1]),l&&(n===null&&B(212,t.constructor.name,t.getType()),function(e,t,n){let r=t.getParentOrThrow().getLastChild(),i=t,a=[t];for(;i!==r;)i.getNextSibling()||B(140),i=i.getNextSibling(),a.push(i);let o=e;for(let e of a)o=o.insertAfter(e)}(n,l));let d=gl(a,hl);s&&G(d)&&(s.canMergeWhenEmpty()||hl(c))&&(d.append(...s.getChildren()),s.remove()),G(n)&&n.isEmpty()&&n.remove(),a.selectEnd();let f=G(n)?n.getLastChild():null;Za(f)&&d!==n&&f.remove()}insertParagraph(){if(this.anchor.key===`root`){let e=zs();return bc().splice(this.anchor.offset,0,[e]),e.select(),e}let e=Yo(this),t=gl(this.anchor.getNode(),hl);G(t)||B(213);let n=t.getChildAtIndex(e),r=n?[n,...n.getNextSiblings()]:[],i=t.insertNewAfter(this,!1);return i?(i.append(...r),i.selectStart(),i):null}insertLineBreak(e){let t=Xa();if(this.insertNodes([t]),e){let e=t.getParentOrThrow(),n=t.getIndexWithinParent();e.select(n,n)}}extract(){let e=this.getNodes(),t=e.length,n=t-1,r=this.anchor,i=this.focus,a=e[0],o=e[n],[s,c]=Oo(this);if(t===0)return[];if(t===1){if(H(a)&&!this.isCollapsed()){let e=s>c?c:s,t=s>c?s:c,n=a.splitText(e,t),r=e===0?n[0]:n[1];return r==null?[]:[r]}return[a]}let l=r.isBefore(i);if(H(a)){let t=l?s:c;t===a.getTextContentSize()?e.shift():t!==0&&([,a]=a.splitText(t),e[0]=a)}if(H(o)){let t=o.getTextContent().length,r=l?c:s;r===0?e.pop():r!==t&&([o]=o.splitText(r),e[n]=o)}return e}modify(e,t,n){if(Zo(this,e,t,n))return;let r=e===`move`,i=cs(),a=sl(Qc(i));if(!a)return;let o=i._blockCursorElement,s=i._rootElement,c=this.focus.getNode();if(s===null||o===null||!G(c)||c.isInline()||c.canBeEmpty()||ol(o,i,s),this.dirty){let e=Gc(i,this.anchor.key),t=Gc(i,this.focus.key);this.anchor.type===`text`&&(e=oc(e)),this.focus.type===`text`&&(t=oc(t)),e&&t&&Ko(a,e,this.anchor.offset,t,this.focus.offset)}if(function(e,t,n,r){e.modify(t,n,r)}(a,e,t?`backward`:`forward`,n),a.rangeCount>0){let e=a.getRangeAt(0),n=this.anchor.getNode(),i=ks(n)?n:$c(n);if(this.applyDOMRange(e),this.dirty=!0,!r){let n=this.getNodes(),r=[],o=!1;for(let e=0;e<n.length;e++){let t=n[e];Xc(t,i)?r.push(t):o=!0}if(o&&r.length>0)if(t){let e=r[0];G(e)?e.selectStart():e.getParentOrThrow().selectStart()}else{let e=r[r.length-1];G(e)?e.selectEnd():e.getParentOrThrow().selectEnd()}a.anchorNode===e.startContainer&&a.anchorOffset===e.startOffset||function(e){let t=e.focus,n=e.anchor,r=n.key,i=n.offset,a=n.type;n.set(t.key,t.offset,t.type,!0),t.set(r,i,a,!0)}(this)}}n===`lineboundary`&&Zo(this,e,t,n,`decorators`)}forwardDeletion(e,t,n){if(!n&&(e.type===`element`&&G(t)&&e.offset===t.getChildrenSize()||e.type===`text`&&e.offset===t.getTextContentSize())){let e=t.getParent(),n=t.getNextSibling()||(e===null?null:e.getNextSibling());if(G(n)&&n.isShadowRoot())return!0}return!1}deleteCharacter(e){let t=this.isCollapsed();if(this.isCollapsed()){let t=this.anchor,n=t.getNode();if(this.forwardDeletion(t,n,e))return;let r=Xl(au(t,e?`previous`:`next`));if(r.getTextSlices().every((e=>e===null||e.distance===0))){let e={type:`initial`};for(let t of r.iterNodeCarets(`shadowRoot`))if(Ll(t)){if(!t.origin.isInline()){if(t.origin.isShadowRoot()){if(e.type===`merge-block`)break;if(G(r.anchor.origin)&&r.anchor.origin.isEmpty()){let e=mu(t);cu(this,Ql(e,e)),r.anchor.origin.remove()}return}e.type!==`merge-next-block`&&e.type!==`merge-block`||(e={block:e.block,caret:t,type:`merge-block`})}}else{if(e.type===`merge-block`)break;if(Il(t)){if(G(t.origin)){if(t.origin.isInline()){if(!t.origin.isParentOf(r.anchor.origin))break}else e={block:t.origin,type:`merge-next-block`};continue}if(Ds(t.origin)){if(!t.origin.isIsolated())if(e.type===`merge-next-block`&&(t.origin.isKeyboardSelectable()||!t.origin.isInline())&&G(r.anchor.origin)&&r.anchor.origin.isEmpty()){r.anchor.origin.remove();let e=zo();e.add(t.origin.getKey()),Sc(e)}else t.origin.remove();return}break}}if(e.type===`merge-block`){let{caret:t,block:n}=e;return cu(this,Ql(!t.origin.isEmpty()&&n.isEmpty()?uu(Vl(n,t.direction)):r.anchor,t)),this.removeText()}}let i=this.focus;if(this.modify(`extend`,e,`character`),this.isCollapsed()){if(e&&t.offset===0&&ko(this,t.getNode()))return}else{let r=i.type===`text`?i.getNode():null;if(n=t.type===`text`?t.getNode():null,r!==null&&r.isSegmented()){let t=i.offset,a=r.getTextContentSize();if(r.is(n)||e&&t!==a||!e&&t!==0)return void jo(r,e,t)}else if(n!==null&&n.isSegmented()){let i=t.offset,a=n.getTextContentSize();if(n.is(r)||e&&i!==0||!e&&i!==a)return void jo(n,e,i)}(function(e,t){let n=e.anchor,r=e.focus,i=n.getNode();if(i===r.getNode()&&n.type===`text`&&r.type===`text`){let e=n.offset,a=r.offset,o=e<a,s=o?e:a,c=o?a:e,l=c-1;s!==l&&(function(e){return!(wc(e)||Ao(e))})(i.getTextContent().slice(s,c))&&(t?r.set(r.key,l,r.type):n.set(n.key,l,n.type))}})(this,e)}}if(this.removeText(),e&&!t&&this.isCollapsed()&&this.anchor.type===`element`&&this.anchor.offset===0){let e=this.anchor.getNode();e.isEmpty()&&ks(e.getParent())&&e.getPreviousSibling()===null&&ko(this,e)}}deleteLine(e){this.isCollapsed()&&this.modify(`extend`,e,`lineboundary`),this.isCollapsed()?this.deleteCharacter(e):this.removeText()}deleteWord(e){if(this.isCollapsed()){let t=this.anchor,n=t.getNode();if(this.forwardDeletion(t,n,e))return;this.modify(`extend`,e,`word`)}this.removeText()}isBackward(){return this.focus.isBefore(this.anchor)}getStartEndPoints(){return[this.anchor,this.focus]}};function Eo(e){return e instanceof wo}function Do(e){let t=e.offset;if(e.type===`text`)return t;let n=e.getNode();return t===n.getChildrenSize()?n.getTextContent().length:0}function Oo(e){let t=e.getStartEndPoints();if(t===null)return[0,0];let[n,r]=t;return n.type===`element`&&r.type===`element`&&n.key===r.key&&n.offset===r.offset?[0,0]:[Do(n),Do(r)]}function ko(e,t){for(let n=t;n;n=n.getParent()){if(G(n)){if(n.collapseAtStart(e))return!0;if(el(n))break}if(n.getPreviousSibling())break}return!1}var Ao=(()=>{try{let e=RegExp(`\\p{Emoji}`,`u`),t=e.test.bind(e);if(t(`❤️`)&&t(`#️⃣`)&&t(`👍`))return t}catch{}return()=>!1})();function jo(e,t,n){let r=e,i=r.getTextContent().split(/(?=\s)/g),a=i.length,o=0,s=0;for(let e=0;e<a;e++){let r=e===a-1;if(s=o,o+=i[e].length,t&&o===n||o>n||r){i.splice(e,1),r&&(s=void 0);break}}let c=i.join(``).trim();c===``?r.remove():(r.setTextContent(c),r.select(s,s))}function Mo(e,t,n,r){let i,a=t;if(ul(e)){let o=!1,s=e.childNodes,c=s.length,l=r._blockCursorElement;a===c&&(o=!0,a=c-1);let u=s[a],d=!1;if(u===l)u=s[a+1],d=!0;else if(l!==null){let n=l.parentNode;e===n&&t>Array.prototype.indexOf.call(n.children,l)&&a--}if(i=Cc(u),H(i))a=Ul(i,o?`next`:`previous`);else{let s=Cc(e);if(s===null)return null;if(G(s)){let c=r.getElementByKey(s.getKey());c===null&&B(214);let l=s.getDOMSlot(c);[s,a]=l.resolveChildIndex(s,c,e,t),G(s)||B(215),o&&a>=s.getChildrenSize()&&(a=Math.max(0,s.getChildrenSize()-1));let u=s.getChildAtIndex(a);if(G(u)&&function(e,t,n){let r=e.getParent();return n===null||r===null||!r.canBeEmpty()||r!==n.getNode()}(u,0,n)){let e=o?u.getLastDescendant():u.getFirstDescendant();e===null?s=u:(u=e,s=G(u)?u:u.getParentOrThrow()),a=0}H(u)?(i=u,s=null,a=Ul(u,o?`next`:`previous`)):u!==s&&o&&!d&&(G(s)||B(216),a=Math.min(s.getChildrenSize(),a+1))}else{let n=s.getIndexWithinParent();a=t===0&&Ds(s)&&Cc(e)===s?n:n+1,s=s.getParentOrThrow()}if(G(s))return xo(s.__key,a,`element`)}}else i=Cc(e);return H(i)?xo(i.__key,Ul(i,a,`clamp`),`text`):null}function No(e,t,n){let r=e.offset,i=e.getNode();if(r===0){let r=i.getPreviousSibling(),a=i.getParent();if(t){if((n||!t)&&r===null&&G(a)&&a.isInline()){let t=a.getPreviousSibling();H(t)&&e.set(t.__key,t.getTextContent().length,`text`)}}else G(r)&&!n&&r.isInline()?e.set(r.__key,r.getChildrenSize(),`element`):H(r)&&e.set(r.__key,r.getTextContent().length,`text`)}else if(r===i.getTextContent().length){let r=i.getNextSibling(),a=i.getParent();if(t&&G(r)&&r.isInline())e.set(r.__key,0,`element`);else if((n||t)&&r===null&&G(a)&&a.isInline()&&!a.canInsertTextAfter()){let t=a.getNextSibling();H(t)&&e.set(t.__key,0,`text`)}}}function Po(e,t,n){if(e.type===`text`&&t.type===`text`){let r=e.isBefore(t),i=e.is(t);No(e,r,i),No(t,!r,i),i&&t.set(e.key,e.offset,e.type);let a=cs();if(a.isComposing()&&a._compositionKey!==e.key&&U(n)){let r=n.anchor,i=n.focus;e.set(r.key,r.offset,r.type,!0),t.set(i.key,i.offset,i.type,!0)}}}function Fo(e,t,n,r,i,a){if(e===null||n===null||!Qs(i,e,n))return null;let o=Mo(e,t,U(a)?a.anchor:null,i);if(o===null)return null;let s=Mo(n,r,U(a)?a.focus:null,i);if(s===null)return null;if(o.type===`element`&&s.type===`element`){let t=Cc(e),r=Cc(n);if(Ds(t)&&Ds(r))return null}return Po(o,s,a),[o,s]}function Io(e){return G(e)&&!e.isInline()}function Lo(e,t,n,r,i,a){let o=ss(),s=new To(xo(e,t,i),xo(n,r,a),0,``);return s.dirty=!0,o._selection=s,s}function Ro(){return new To(xo(`root`,0,`element`),xo(`root`,0,`element`),0,``)}function zo(){return new wo(new Set)}function Bo(e,t,n,r){let i=n._window;if(i===null)return null;let a=r||i.event,o=a?a.type:void 0,s=o===`selectionchange`,c=!Sr&&(s||o===`beforeinput`||o===`compositionstart`||o===`compositionend`||o===`click`&&a&&a.detail===3||o===`drop`||o===void 0),l,u,d,f;if(U(e)&&!c)return e.clone();if(t===null)return null;if(l=t.anchorNode,u=t.focusNode,d=t.anchorOffset,f=t.focusOffset,s&&U(e)&&!Qs(n,l,u))return e.clone();let p=Fo(l,d,u,f,n,e);if(p===null)return null;let[m,h]=p;return new To(m,h,U(e)?e.format:0,U(e)?e.style:``)}function W(){return ss()._selection}function Vo(){return cs()._editorState._selection}function Ho(e,t,n,r=1){let i=e.anchor,a=e.focus,o=i.getNode(),s=a.getNode();if(!t.is(o)&&!t.is(s))return;let c=t.__key;if(e.isCollapsed()){let t=i.offset;if(n<=t&&r>0||n<t&&r<0){let n=Math.max(0,t+r);i.set(c,n,`element`),a.set(c,n,`element`),Uo(e)}}else{let o=e.isBackward(),s=o?a:i,l=s.getNode(),u=o?i:a,d=u.getNode();if(t.is(l)){let e=s.offset;(n<=e&&r>0||n<e&&r<0)&&s.set(c,Math.max(0,e+r),`element`)}if(t.is(d)){let e=u.offset;(n<=e&&r>0||n<e&&r<0)&&u.set(c,Math.max(0,e+r),`element`)}}Uo(e)}function Uo(e){let t=e.anchor,n=t.offset,r=e.focus,i=r.offset,a=t.getNode(),o=r.getNode();if(e.isCollapsed()){if(!G(a))return;let e=a.getChildrenSize(),i=n>=e,o=i?a.getChildAtIndex(e-1):a.getChildAtIndex(n);if(H(o)){let e=0;i&&(e=o.getTextContentSize()),t.set(o.__key,e,`text`),r.set(o.__key,e,`text`)}}else{if(G(a)){let e=a.getChildrenSize(),r=n>=e,i=r?a.getChildAtIndex(e-1):a.getChildAtIndex(n);if(H(i)){let e=0;r&&(e=i.getTextContentSize()),t.set(i.__key,e,`text`)}}if(G(o)){let e=o.getChildrenSize(),t=i>=e,n=t?o.getChildAtIndex(e-1):o.getChildAtIndex(i);if(H(n)){let e=0;t&&(e=n.getTextContentSize()),r.set(n.__key,e,`text`)}}}}function Wo(e,t,n,r,i){let a=null,o=0,s=null;r===null?i!==null&&(a=i.__key,H(i)?s=`text`:G(i)&&(s=`element`)):(a=r.__key,H(r)?(o=r.getTextContentSize(),s=`text`):G(r)&&(o=r.getChildrenSize(),s=`element`)),a!==null&&s!==null?e.set(a,o,s):(o=t.getIndexWithinParent(),o===-1&&(o=n.getChildrenSize()),e.set(n.__key,o,`element`))}function Go(e,t,n,r,i){e.type===`text`?e.set(n,e.offset+(t?0:i),`text`):e.offset>r.getIndexWithinParent()&&e.set(e.key,e.offset-1,`element`)}function Ko(e,t,n,r,i){try{e.setBaseAndExtent(t,n,r,i)}catch{}}function qo(e,t,n,r,i,a,o){let s=r.anchorNode,c=r.focusNode,l=r.anchorOffset,u=r.focusOffset,d=document.activeElement;if(i.has(`collaboration`)&&d!==a||d!==null&&Zs(d))return;if(!U(t))return void(e!==null&&Qs(n,s,c)&&r.removeAllRanges());let f=t.anchor,p=t.focus,m=f.key,h=p.key,g=Gc(n,m),_=Gc(n,h),v=f.offset,y=p.offset,b=t.format,x=t.style,S=t.isCollapsed(),C=g,w=_,T=!1;if(f.type===`text`){C=oc(g);let e=f.getNode();T=e.getFormat()!==b||e.getStyle()!==x}else U(e)&&e.anchor.type===`text`&&(T=!0);var E,ee,D,O,k;if((p.type===`text`&&(w=oc(_)),C!==null&&w!==null)&&(S&&(e===null||T||U(e)&&(e.format!==b||e.style!==x))&&(E=b,ee=x,D=v,O=m,k=performance.now(),ja=[E,ee,D,O,k]),l!==v||u!==y||s!==C||c!==w||r.type===`Range`&&S||(d!==null&&a.contains(d)||a.focus({preventScroll:!0}),f.type===`element`))){if(Ko(r,C,v,w,y),!i.has(`skip-scroll-into-view`)&&t.isCollapsed()&&a!==null&&a===document.activeElement){let e=U(t)&&t.anchor.type===`element`?C.childNodes[v]||null:r.rangeCount>0?r.getRangeAt(0):null;if(e!==null){let t;if(e instanceof Text){let n=document.createRange();n.selectNode(e),t=n.getBoundingClientRect()}else t=e.getBoundingClientRect();(function(e,t,n){let r=qc(n),i=Zc(r);if(r===null||i===null)return;let{top:a,bottom:o}=t,s=0,c=0,l=n;for(;l!==null;){let t=l===r.body;if(t)s=0,c=Qc(e).innerHeight;else{let e=l.getBoundingClientRect();s=e.top,c=e.bottom}let n=0;if(a<s?n=-(s-a):o>c&&(n=o-c),n!==0)if(t)i.scrollBy(0,n);else{let e=l.scrollTop;l.scrollTop+=n;let t=l.scrollTop-e;a-=t,o-=t}if(t)break;l=Kc(l)}})(n,t,a)}}wa=!0}}function Jo(e){let t=W()||Vo();t===null&&(t=bc().selectEnd()),t.insertNodes(e)}function Yo(e){let t=e;e.isCollapsed()||t.removeText();let n=W();U(n)&&(t=n),U(t)||B(161);let r=t.anchor,i=r.getNode(),a=r.offset;for(;!hl(i);){let e=i;if([i,a]=Xo(i,a),e.is(i))break}return a}function Xo(e,t){let n=e.getParent();if(!n){let e=zs();return bc().append(e),e.select(),[bc(),0]}if(H(e)){let r=e.splitText(t);if(r.length===0)return[n,e.getIndexWithinParent()];let i=t===0?0:1;return[n,r[0].getIndexWithinParent()+i]}if(!G(e)||t===0)return[n,e.getIndexWithinParent()];let r=e.getChildAtIndex(t);if(r){let n=new To(xo(e.__key,t,`element`),xo(e.__key,t,`element`),0,``),i=e.insertNewAfter(n);i&&i.append(r,...r.getNextSiblings())}return[n,e.getIndexWithinParent()+1]}function Zo(e,t,n,r,i=`decorators-and-blocks`){if(t===`move`&&r===`character`&&!e.isCollapsed()){let[t,r]=n===e.isBackward()?[e.focus,e.anchor]:[e.anchor,e.focus];return r.set(t.key,t.offset,t.type),!0}let a=au(e.focus,n?`previous`:`next`),o=r===`lineboundary`,s=t===`move`,c=a,l=i===`decorators-and-blocks`;if(!hu(c)){for(let e of c){l=!1;let{origin:t}=e;if(!Ds(t)||t.isIsolated()||(c=e,!o||!t.isInline()))break}if(l)for(let e of Xl(a).iterNodeCarets(t===`extend`?`shadowRoot`:`root`)){if(Ll(e))e.origin.isInline()||(c=e);else{if(G(e.origin))continue;Ds(e.origin)&&!e.origin.isInline()&&(c=e)}break}}if(c===a)return!1;if(s&&!o&&Ds(c.origin)&&c.origin.isKeyboardSelectable()){let e=zo();return e.add(c.origin.getKey()),Sc(e),!0}return c=mu(c),s&&ou(e.anchor,c),ou(e.focus,c),l||!o}var Qo=null,$o=null,es=!1,ts=!1,ns=0,rs={characterData:!0,childList:!0,subtree:!0};function is(){return es||Qo!==null&&Qo._readOnly}function as(){es&&B(13)}function os(){ns>99&&B(14)}function ss(){return Qo===null&&B(195,ls()),Qo}function cs(){return $o===null&&B(196,ls()),$o}function ls(){let e=0,t=new Set,n=Us.version;if(typeof window<`u`)for(let r of document.querySelectorAll(`[contenteditable]`)){let i=tc(r);if($s(i))e++;else if(i){let e=String(i.constructor.version||`<0.17.1`);e===n&&(e+=` (separately built, likely a bundler configuration issue)`),t.add(e)}}let r=` Detected on the page: ${e} compatible editor(s) with version ${n}`;return t.size&&(r+=` and incompatible editors with versions ${Array.from(t).join(`, `)}`),r}function us(){return $o}function ds(e,t,n){let r=t.__type,i=qs(e,r),a=n.get(r);a===void 0&&(a=Array.from(i.transforms),n.set(r,a));let o=a.length;for(let e=0;e<o&&(a[e](t),t.isAttached());e++);}function fs(e,t){return e!==void 0&&e.__key!==t&&e.isAttached()}function ps(e,t){if(!t)return;let n=e._updateTags,r=t;Array.isArray(t)||(r=[t]);for(let e of r)n.add(e)}function ms(e){return hs(e,cs()._nodes)}function hs(e,t){let n=e.type,r=t.get(n);r===void 0&&B(17,n);let i=r.klass;e.type!==i.getType()&&B(18,i.name);let a=i.importJSON(e),o=e.children;if(G(a)&&Array.isArray(o))for(let e=0;e<o.length;e++){let n=hs(o[e],t);a.append(n)}return a}function gs(e,t,n){let r=Qo,i=es,a=$o;Qo=t,es=!0,$o=e;try{return n()}finally{Qo=r,es=i,$o=a}}function _s(e,t){let n=e._pendingEditorState,r=e._rootElement,i=e._headless||r===null;if(n===null)return;let a=e._editorState,o=a._selection,s=n._selection,c=e._dirtyType!==Qn,l=Qo,u=es,d=$o,f=e._updating,p=e._observer,m=null;if(e._pendingEditorState=null,e._editorState=n,!i&&c&&p!==null){$o=e,Qo=n,es=!1,e._updating=!0;try{let t=e._dirtyType,r=e._dirtyElements,i=e._dirtyLeaves;p.disconnect(),m=Ci(a,n,e,t,r,i)}catch(t){if(t instanceof Error&&e._onError(t),ts)throw t;Vs(e,null,r,n),jr(e),e._dirtyType=er,ts=!0,_s(e,a),ts=!1;return}finally{p.observe(r,rs),e._updating=f,Qo=l,es=u,$o=d}}n._readOnly||=!0;let h=e._dirtyLeaves,g=e._dirtyElements,_=e._normalizedNodes,v=e._updateTags,y=e._deferred;c&&(e._dirtyType=Qn,e._cloneNotNeeded.clear(),e._dirtyLeaves=new Set,e._dirtyElements=new Map,e._normalizedNodes=new Set,e._updateTags=new Set),function(e,t){let n=e._decorators,r=e._pendingDecorators||n,i=t._nodeMap,a;for(a in r)i.has(a)||(r===n&&(r=vc(e)),delete r[a])}(e,n);let b=i?null:sl(Qc(e));if(e._editable&&b!==null&&(c||s===null||s.dirty)&&r!==null&&!v.has(`skip-dom-selection`)){$o=e,Qo=n;try{if(p!==null&&p.disconnect(),c||s===null||s.dirty){let t=e._blockCursorElement;t!==null&&ol(t,e,r),qo(o,s,e,b,v,r)}(function(e,t,n){let r=e._blockCursorElement;if(U(n)&&n.isCollapsed()&&n.anchor.type===`element`&&t.contains(document.activeElement)){let i=n.anchor,a=i.getNode(),o=i.offset,s=!1,c=null;if(o===a.getChildrenSize())al(a.getChildAtIndex(o-1))&&(s=!0);else{let t=a.getChildAtIndex(o);if(t!==null&&al(t)){let n=t.getPreviousSibling();(n===null||al(n))&&(s=!0,c=e.getElementByKey(t.__key))}}if(s){let n=e.getElementByKey(a.__key);r===null&&(e._blockCursorElement=r=function(e){let t=e.theme,n=document.createElement(`div`);n.contentEditable=`false`,n.setAttribute(`data-lexical-cursor`,`true`);let r=t.blockCursor;return r!==void 0&&(typeof r==`string`&&(r=t.blockCursor=qn(r)),r!==void 0&&n.classList.add(...r)),n}(e._config)),t.style.caretColor=`transparent`,c===null?n.appendChild(r):n.insertBefore(r,c);return}}r!==null&&ol(r,e,t)})(e,r,s)}finally{p!==null&&p.observe(r,rs),$o=d,Qo=l}}m!==null&&function(e,t,n,r,i){let a=Array.from(e._listeners.mutation),o=a.length;for(let e=0;e<o;e++){let[o,s]=a[e];for(let e of s){let a=t.get(e);a!==void 0&&o(a,{dirtyLeaves:r,prevEditorState:i,updateTags:n})}}}(e,m,v,h,a),U(s)||s===null||o!==null&&o.is(s)||e.dispatchCommand(Ti,void 0);let x=e._pendingDecorators;x!==null&&(e._decorators=x,e._pendingDecorators=null,vs(`decorator`,e,!0,x)),function(e,t,n){let r=yc(t),i=yc(n);r!==i&&vs(`textcontent`,e,!0,i)}(e,t||a,n),vs(`update`,e,!0,{dirtyElements:g,dirtyLeaves:h,editorState:n,mutatedNodes:m,normalizedNodes:_,prevEditorState:t||a,tags:v}),function(e,t){if(e._deferred=[],t.length!==0){let n=e._updating;e._updating=!0;try{for(let e=0;e<t.length;e++)t[e]()}finally{e._updating=n}}}(e,y),function(e){let t=e._updates;if(t.length!==0){let n=t.shift();if(n){let[t,r]=n;bs(e,t,r)}}}(e)}function vs(e,t,n,...r){let i=t._updating;t._updating=n;try{let n=Array.from(t._listeners[e]);for(let e=0;e<n.length;e++)n[e].apply(null,r)}finally{t._updating=i}}function ys(e,t){let n=e._updates,r=t||!1;for(;n.length!==0;){let t=n.shift();if(t){let[n,i]=t,a=e._pendingEditorState,o;i!==void 0&&(o=i.onUpdate,i.skipTransforms&&(r=!0),i.discrete&&(a===null&&B(191),a._flushSync=!0),o&&e._deferred.push(o),ps(e,i.tag)),a==null?bs(e,n,i):n()}}return r}function bs(e,t,n){let r=e._updateTags,i,a=!1,o=!1;n!==void 0&&(i=n.onUpdate,ps(e,n.tag),a=n.skipTransforms||!1,o=n.discrete||!1),i&&e._deferred.push(i);let s=e._editorState,c=e._pendingEditorState,l=!1;(c===null||c._readOnly)&&(c=e._pendingEditorState=As(c||s),l=!0),c._flushSync=o;let u=Qo,d=es,f=$o,p=e._updating;Qo=c,es=!1,e._updating=!0,$o=e;let m=e._headless||e.getRootElement()===null;Gs(null);try{l&&(m?s._selection!==null&&(c._selection=s._selection.clone()):c._selection=function(e,t){let n=e.getEditorState()._selection,r=sl(Qc(e));return U(n)||n==null?Bo(n,r,e,t):n.clone()}(e,n&&n.event||null));let r=e._compositionKey;t(),a=ys(e,a),function(e,t){let n=t.getEditorState()._selection,r=e._selection;if(U(r)){let e=r.anchor,t=r.focus,i;if(e.type===`text`&&(i=e.getNode(),i.selectionTransform(n,r)),t.type===`text`){let e=t.getNode();i!==e&&e.selectionTransform(n,r)}}}(c,e),e._dirtyType!==Qn&&(a?function(e,t){let n=t._dirtyLeaves,r=e._nodeMap;for(let e of n){let t=r.get(e);H(t)&&t.isAttached()&&t.isSimpleText()&&!t.isUnmergeable()&&Hr(t)}}(c,e):function(e,t){let n=t._dirtyLeaves,r=t._dirtyElements,i=e._nodeMap,a=pc(),o=new Map,s=n,c=s.size,l=r,u=l.size;for(;c>0||u>0;){if(c>0){t._dirtyLeaves=new Set;for(let e of s){let r=i.get(e);H(r)&&r.isAttached()&&r.isSimpleText()&&!r.isUnmergeable()&&Hr(r),r!==void 0&&fs(r,a)&&ds(t,r,o),n.add(e)}if(s=t._dirtyLeaves,c=s.size,c>0){ns++;continue}}t._dirtyLeaves=new Set,t._dirtyElements=new Map,l.delete(`root`)&&l.set(`root`,!0);for(let e of l){let n=e[0],s=e[1];if(r.set(n,s),!s)continue;let c=i.get(n);c!==void 0&&fs(c,a)&&ds(t,c,o)}s=t._dirtyLeaves,c=s.size,l=t._dirtyElements,u=l.size,ns++}t._dirtyLeaves=n,t._dirtyElements=r}(c,e),ys(e),function(e,t,n,r){let i=e._nodeMap,a=t._nodeMap,o=[];for(let[e]of r){let t=a.get(e);t!==void 0&&(t.isAttached()||(G(t)&&br(t,e,i,a,o,r),i.has(e)||r.delete(e),o.push(e)))}for(let e of o)a.delete(e);for(let e of n){let t=a.get(e);t===void 0||t.isAttached()||(i.has(e)||n.delete(e),a.delete(e))}}(s,c,e._dirtyLeaves,e._dirtyElements)),r!==e._compositionKey&&(c._flushSync=!0);let i=c._selection;if(U(i)){let e=c._nodeMap,t=i.anchor.key,n=i.focus.key;e.get(t)!==void 0&&e.get(n)!==void 0||B(19)}else Eo(i)&&i._nodes.size===0&&(c._selection=null)}catch(t){t instanceof Error&&e._onError(t),e._pendingEditorState=s,e._dirtyType=er,e._cloneNotNeeded.clear(),e._dirtyLeaves=new Set,e._dirtyElements.clear(),_s(e);return}finally{Qo=u,es=d,$o=f,e._updating=p,ns=0}e._dirtyType!==Qn||e._deferred.length>0||function(e,t){let n=t.getEditorState()._selection,r=e._selection;if(r!==null){if(r.dirty||!r.is(n))return!0}else if(n!==null)return!0;return!1}(c,e)?c._flushSync?(c._flushSync=!1,_s(e)):l&&Ys((()=>{_s(e)})):(c._flushSync=!1,l&&(r.clear(),e._deferred=[],e._pendingEditorState=null))}function xs(e,t,n){$o===e&&n===void 0?t():bs(e,t,n)}var Ss=class e{constructor(e,t,n){this.element=e,this.before=t||null,this.after=n||null}withBefore(t){return new e(this.element,t,this.after)}withAfter(t){return new e(this.element,this.before,t)}withElement(t){return this.element===t?this:new e(t,this.before,this.after)}insertChild(e){let t=this.before||this.getManagedLineBreak();return t!==null&&t.parentElement!==this.element&&B(222),this.element.insertBefore(e,t),this}removeChild(e){return e.parentElement!==this.element&&B(223),this.element.removeChild(e),this}replaceChild(e,t){return t.parentElement!==this.element&&B(224),this.element.replaceChild(e,t),this}getFirstChild(){let e=this.after?this.after.nextSibling:this.element.firstChild;return e===this.before||e===this.getManagedLineBreak()?null:e}getManagedLineBreak(){return this.element.__lexicalLineBreak||null}setManagedLineBreak(e){if(e===null)this.removeManagedLineBreak();else{let t=e===`decorator`&&(Hn||Vn);this.insertManagedLineBreak(t)}}removeManagedLineBreak(){let e=this.getManagedLineBreak();if(e){let t=this.element,n=e.nodeName===`IMG`?e.nextSibling:null;n&&t.removeChild(n),t.removeChild(e),t.__lexicalLineBreak=void 0}}insertManagedLineBreak(e){let t=this.getManagedLineBreak();if(t){if(e===(t.nodeName===`IMG`))return;this.removeManagedLineBreak()}let n=this.element,r=this.before,i=document.createElement(`br`);if(n.insertBefore(i,r),e){let e=document.createElement(`img`);e.setAttribute(`data-lexical-linebreak`,`true`),e.style.cssText=`display: inline !important; border: 0px !important; margin: 0px !important;`,e.alt=``,n.insertBefore(e,i),n.__lexicalLineBreak=e}else n.__lexicalLineBreak=i}getFirstChildOffset(){let e=0;for(let t=this.after;t!==null;t=t.previousSibling)e++;return e}resolveChildIndex(e,t,n,r){if(n===this.element){let t=this.getFirstChildOffset();return[e,Math.min(t+e.getChildrenSize(),Math.max(t,r))]}let i=Cs(t,n);i.push(r);let a=Cs(t,this.element),o=e.getIndexWithinParent();for(let e=0;e<a.length;e++){let t=i[e],n=a[e];if(t===void 0||t<n)break;if(t>n){o+=1;break}}return[e.getParentOrThrow(),o]}};function Cs(e,t){let n=[],r=t;for(;r!==e&&r!==null;r=r.parentNode){let e=0;for(let t=r.previousSibling;t!==null;t=t.previousSibling)e++;n.push(e)}return r!==e&&B(225),n.reverse()}var ws=class extends qa{constructor(e){super(e),this.__first=null,this.__last=null,this.__size=0,this.__format=0,this.__style=``,this.__indent=0,this.__dir=null,this.__textFormat=0,this.__textStyle=``}afterCloneFrom(e){super.afterCloneFrom(e),this.__key===e.__key&&(this.__first=e.__first,this.__last=e.__last,this.__size=e.__size),this.__indent=e.__indent,this.__format=e.__format,this.__style=e.__style,this.__dir=e.__dir,this.__textFormat=e.__textFormat,this.__textStyle=e.__textStyle}getFormat(){return this.getLatest().__format}getFormatType(){return gr[this.getFormat()]||``}getStyle(){return this.getLatest().__style}getIndent(){return this.getLatest().__indent}getChildren(){let e=[],t=this.getFirstChild();for(;t!==null;)e.push(t),t=t.getNextSibling();return e}getChildrenKeys(){let e=[],t=this.getFirstChild();for(;t!==null;)e.push(t.__key),t=t.getNextSibling();return e}getChildrenSize(){return this.getLatest().__size}isEmpty(){return this.getChildrenSize()===0}isDirty(){let e=cs()._dirtyElements;return e!==null&&e.has(this.__key)}isLastChild(){let e=this.getLatest(),t=this.getParentOrThrow().getLastChild();return t!==null&&t.is(e)}getAllTextNodes(){let e=[],t=this.getFirstChild();for(;t!==null;){if(H(t)&&e.push(t),G(t)){let n=t.getAllTextNodes();e.push(...n)}t=t.getNextSibling()}return e}getFirstDescendant(){let e=this.getFirstChild();for(;G(e);){let t=e.getFirstChild();if(t===null)break;e=t}return e}getLastDescendant(){let e=this.getLastChild();for(;G(e);){let t=e.getLastChild();if(t===null)break;e=t}return e}getDescendantByIndex(e){let t=this.getChildren(),n=t.length;if(e>=n){let e=t[n-1];return G(e)&&e.getLastDescendant()||e||null}let r=t[e];return G(r)&&r.getFirstDescendant()||r||null}getFirstChild(){let e=this.getLatest().__first;return e===null?null:mc(e)}getFirstChildOrThrow(){let e=this.getFirstChild();return e===null&&B(45,this.__key),e}getLastChild(){let e=this.getLatest().__last;return e===null?null:mc(e)}getLastChildOrThrow(){let e=this.getLastChild();return e===null&&B(96,this.__key),e}getChildAtIndex(e){let t=this.getChildrenSize(),n,r;if(e<t/2){for(n=this.getFirstChild(),r=0;n!==null&&r<=e;){if(r===e)return n;n=n.getNextSibling(),r++}return null}for(n=this.getLastChild(),r=t-1;n!==null&&r>=e;){if(r===e)return n;n=n.getPreviousSibling(),r--}return null}getTextContent(){let e=``,t=this.getChildren(),n=t.length;for(let r=0;r<n;r++){let i=t[r];e+=i.getTextContent(),G(i)&&r!==n-1&&!i.isInline()&&(e+=dr)}return e}getTextContentSize(){let e=0,t=this.getChildren(),n=t.length;for(let r=0;r<n;r++){let i=t[r];e+=i.getTextContentSize(),G(i)&&r!==n-1&&!i.isInline()&&(e+=2)}return e}getDirection(){return this.getLatest().__dir}getTextFormat(){return this.getLatest().__textFormat}hasFormat(e){if(e!==``){let t=hr[e];return!!(this.getFormat()&t)}return!1}hasTextFormat(e){let t=pr[e];return!!(this.getTextFormat()&t)}getFormatFlags(e,t){return sc(this.getLatest().__textFormat,e,t)}getTextStyle(){return this.getLatest().__textStyle}select(e,t){as();let n=W(),r=e,i=t,a=this.getChildrenSize();if(!this.canBeEmpty()){if(e===0&&t===0){let e=this.getFirstChild();if(H(e)||G(e))return e.select(0,0)}else if(!(e!==void 0&&e!==a||t!==void 0&&t!==a)){let e=this.getLastChild();if(H(e)||G(e))return e.select()}}r===void 0&&(r=a),i===void 0&&(i=a);let o=this.__key;return U(n)?(n.anchor.set(o,r,`element`),n.focus.set(o,i,`element`),n.dirty=!0,n):Lo(o,r,o,i,`element`,`element`)}selectStart(){let e=this.getFirstDescendant();return e?e.selectStart():this.select()}selectEnd(){let e=this.getLastDescendant();return e?e.selectEnd():this.select()}clear(){let e=this.getWritable();return this.getChildren().forEach((e=>e.remove())),e}append(...e){return this.splice(this.getChildrenSize(),0,e)}setDirection(e){let t=this.getWritable();return t.__dir=e,t}setFormat(e){return this.getWritable().__format=e===``?0:hr[e],this}setStyle(e){return this.getWritable().__style=e||``,this}setTextFormat(e){let t=this.getWritable();return t.__textFormat=e,t}setTextStyle(e){let t=this.getWritable();return t.__textStyle=e,t}setIndent(e){return this.getWritable().__indent=e,this}splice(e,t,n){let r=n.length,i=this.getChildrenSize(),a=this.getWritable();e+t<=i||B(226,String(e),String(t),String(i));let o=a.__key,s=[],c=[],l=this.getChildAtIndex(e+t),u=null,d=i-t+r;if(e!==0)if(e===i)u=this.getLastChild();else{let t=this.getChildAtIndex(e);t!==null&&(u=t.getPreviousSibling())}if(t>0){let e=u===null?this.getFirstChild():u.getNextSibling();for(let n=0;n<t;n++){e===null&&B(100);let t=e.getNextSibling(),n=e.__key;uc(e.getWritable()),c.push(n),e=t}}let f=u;for(let e=0;e<r;e++){let t=n[e];f!==null&&t.is(f)&&(u=f=f.getPreviousSibling());let r=t.getWritable();r.__parent===o&&d--,uc(r);let i=t.__key;if(f===null)a.__first=i,r.__prev=null;else{let e=f.getWritable();e.__next=i,r.__prev=e.__key}t.__key===o&&B(76),r.__parent=o,s.push(i),f=t}if(e+t===i)f!==null&&(f.getWritable().__next=null,a.__last=f.__key);else if(l!==null){let e=l.getWritable();if(f!==null){let t=f.getWritable();e.__prev=f.__key,t.__next=l.__key}else e.__prev=null}if(a.__size=d,c.length){let e=W();if(U(e)){let t=new Set(c),n=new Set(s),{anchor:r,focus:i}=e;Ts(r,t,n)&&Wo(r,r.getNode(),this,u,l),Ts(i,t,n)&&Wo(i,i.getNode(),this,u,l),d!==0||this.canBeEmpty()||el(this)||this.remove()}}return a}getDOMSlot(e){return new Ss(e)}exportDOM(e){let{element:t}=super.exportDOM(e);if(ul(t)){let e=this.getIndent();e>0&&(t.style.paddingInlineStart=40*e+`px`);let n=this.getDirection();n&&(t.dir=n)}return{element:t}}exportJSON(){let e={children:[],direction:this.getDirection(),format:this.getFormatType(),indent:this.getIndent(),...super.exportJSON()},t=this.getTextFormat(),n=this.getTextStyle();return t!==0&&(e.textFormat=t),n!==``&&(e.textStyle=n),e}updateFromJSON(e){return super.updateFromJSON(e).setFormat(e.format).setIndent(e.indent).setDirection(e.direction).setTextFormat(e.textFormat||0).setTextStyle(e.textStyle||``)}insertNewAfter(e,t){return null}canIndent(){return!0}collapseAtStart(e){return!1}excludeFromCopy(e){return!1}canReplaceWith(e){return!0}canInsertAfter(e){return!0}canBeEmpty(){return!0}canInsertTextBefore(){return!0}canInsertTextAfter(){return!0}isInline(){return!1}isShadowRoot(){return!1}canMergeWith(e){return!1}extractWithChild(e,t,n){return!1}canMergeWhenEmpty(){return!1}reconcileObservedMutation(e,t){let n=this.getDOMSlot(e),r=n.getFirstChild();for(let e=this.getFirstChild();e;e=e.getNextSibling()){let i=t.getElementByKey(e.getKey());i!==null&&(r==null?(n.insertChild(i),r=i):r!==i&&n.replaceChild(i,r),r=r.nextSibling)}}};function G(e){return e instanceof ws}function Ts(e,t,n){let r=e.getNode();for(;r;){let e=r.__key;if(t.has(e)&&!n.has(e))return!0;r=r.getParent()}return!1}var Es=class extends qa{decorate(e,t){B(47)}isIsolated(){return!1}isInline(){return!0}isKeyboardSelectable(){return!0}};function Ds(e){return e instanceof Es}var Os=class e extends ws{static getType(){return`root`}static clone(){return new e}constructor(){super(`root`),this.__cachedText=null}getTopLevelElementOrThrow(){B(51)}getTextContent(){let e=this.__cachedText;return!is()&&cs()._dirtyType!==Qn||e===null?super.getTextContent():e}remove(){B(52)}replace(e){B(53)}insertBefore(e){B(54)}insertAfter(e){B(55)}updateDOM(e,t){return!1}splice(e,t,n){for(let e of n)G(e)||Ds(e)||B(282);return super.splice(e,t,n)}static importJSON(e){return bc().updateFromJSON(e)}collapseAtStart(){return!0}};function ks(e){return e instanceof Os}function As(e){return new Ns(new Map(e._nodeMap))}function js(){return new Ns(new Map([[`root`,new Os]]))}function Ms(e){let t=e.exportJSON(),n=e.constructor;if(t.type!==n.getType()&&B(130,n.name),G(e)){let r=t.children;Array.isArray(r)||B(59,n.name);let i=e.getChildren();for(let e=0;e<i.length;e++){let t=Ms(i[e]);r.push(t)}}return t}var Ns=class e{constructor(e,t){this._nodeMap=e,this._selection=t||null,this._flushSync=!1,this._readOnly=!1}isEmpty(){return this._nodeMap.size===1&&this._selection===null}read(e,t){return gs(t&&t.editor||null,this,e)}clone(t){let n=new e(this._nodeMap,t===void 0?this._selection:t);return n._readOnly=!0,n}toJSON(){return gs(null,this,(()=>({root:Ms(bc())})))}},Ps=`history-push`,Fs=`history-merge`,Is=class extends ws{static getType(){return`artificial`}createDOM(e){return document.createElement(`div`)}},Ls=class e extends ws{static getType(){return`paragraph`}static clone(t){return new e(t.__key)}createDOM(e){let t=document.createElement(`p`),n=zc(e.theme,`paragraph`);return n!==void 0&&t.classList.add(...n),t}updateDOM(e,t,n){return!1}static importDOM(){return{p:e=>({conversion:Rs,priority:0})}}exportDOM(e){let{element:t}=super.exportDOM(e);if(ul(t)){this.isEmpty()&&t.append(document.createElement(`br`));let e=this.getFormatType();e&&(t.style.textAlign=e)}return{element:t}}static importJSON(e){return zs().updateFromJSON(e)}exportJSON(){return{...super.exportJSON(),textFormat:this.getTextFormat(),textStyle:this.getTextStyle()}}insertNewAfter(e,t){let n=zs();n.setTextFormat(e.format),n.setTextStyle(e.style);let r=this.getDirection();return n.setDirection(r),n.setFormat(this.getFormatType()),n.setStyle(this.getStyle()),this.insertAfter(n,t),n}collapseAtStart(){let e=this.getChildren();if(e.length===0||H(e[0])&&e[0].getTextContent().trim()===``){if(this.getNextSibling()!==null)return this.selectNext(),this.remove(),!0;if(this.getPreviousSibling()!==null)return this.selectPrevious(),this.remove(),!0}return!1}};function Rs(e){let t=zs();return e.style&&(t.setFormat(e.style.textAlign),Sl(e,t)),{node:t}}function zs(){return nl(new Ls)}function Bs(e){return e instanceof Ls}function Vs(e,t,n,r){let i=e._keyToDOMMap;i.clear(),e._editorState=js(),e._pendingEditorState=r,e._compositionKey=null,e._dirtyType=Qn,e._cloneNotNeeded.clear(),e._dirtyLeaves=new Set,e._dirtyElements.clear(),e._normalizedNodes=new Set,e._updateTags=new Set,e._updates=[],e._blockCursorElement=null;let a=e._observer;a!==null&&(a.disconnect(),e._observer=null),t!==null&&(t.textContent=``),n!==null&&(n.textContent=``,i.set(`root`,n))}function Hs(e){let t=e||{},n=us(),r=t.theme||{},i=e===void 0?n:t.parentEditor||null,a=t.disableEvents||!1,o=js(),s=t.namespace||(i===null?Ec():i._config.namespace),c=t.editorState,l=[Os,ao,Ja,_o,Ls,Is,...t.nodes||[]],{onError:u,html:d}=t,f=t.editable===void 0||t.editable,p;if(e===void 0&&n!==null)p=n._nodes;else{p=new Map;for(let e=0;e<l.length;e++){let t=l[e],n=null,r=null;if(typeof t!=`function`){let e=t;t=e.replace,n=e.with,r=e.withKlass||null}let{ownNodeConfig:i}=Tl(t),a=t.getType(),o=t.transform(),s=new Set;i&&i.$transform&&s.add(i.$transform),o!==null&&s.add(o),p.set(a,{exportDOM:d&&d.export?d.export.get(t):void 0,klass:t,replace:n,replaceWithKlass:r,sharedNodeState:Mr(l[e]),transforms:s})}}let m=new Us(o,i,p,{disableEvents:a,namespace:s,theme:r},u||console.error,function(e,t){let n=new Map,r=new Set,i=e=>{Object.keys(e).forEach((t=>{let r=n.get(t);r===void 0&&(r=[],n.set(t,r)),r.push(e[t])}))};return e.forEach((e=>{let t=e.klass.importDOM;if(t==null||r.has(t))return;r.add(t);let n=t.call(e.klass);n!==null&&i(n)})),t&&i(t),n}(p,d?d.import:void 0),f,e);return c!==void 0&&(m._pendingEditorState=c,m._dirtyType=er),m}var Us=class{constructor(e,t,n,r,i,a,o,s){this._createEditorArgs=s,this._parentEditor=t,this._rootElement=null,this._editorState=e,this._pendingEditorState=null,this._compositionKey=null,this._deferred=[],this._keyToDOMMap=new Map,this._updates=[],this._updating=!1,this._listeners={decorator:new Set,editable:new Set,mutation:new Map,root:new Set,textcontent:new Set,update:new Set},this._commands=new Map,this._config=r,this._nodes=n,this._decorators={},this._pendingDecorators=null,this._dirtyType=Qn,this._cloneNotNeeded=new Set,this._dirtyLeaves=new Set,this._dirtyElements=new Map,this._normalizedNodes=new Set,this._updateTags=new Set,this._observer=null,this._key=Ec(),this._onError=i,this._htmlConversions=a,this._editable=o,this._headless=t!==null&&t._headless,this._window=null,this._blockCursorElement=null}isComposing(){return this._compositionKey!=null}registerUpdateListener(e){let t=this._listeners.update;return t.add(e),()=>{t.delete(e)}}registerEditableListener(e){let t=this._listeners.editable;return t.add(e),()=>{t.delete(e)}}registerDecoratorListener(e){let t=this._listeners.decorator;return t.add(e),()=>{t.delete(e)}}registerTextContentListener(e){let t=this._listeners.textcontent;return t.add(e),()=>{t.delete(e)}}registerRootListener(e){let t=this._listeners.root;return e(this._rootElement,null),t.add(e),()=>{e(null,this._rootElement),t.delete(e)}}registerCommand(e,t,n){n===void 0&&B(35);let r=this._commands;r.has(e)||r.set(e,[new Set,new Set,new Set,new Set,new Set]);let i=r.get(e);i===void 0&&B(36,String(e));let a=i[n];return a.add(t),()=>{a.delete(t),i.every((e=>e.size===0))&&r.delete(e)}}registerMutationListener(e,t,n){let r=this.resolveRegisteredNodeAfterReplacements(this.getRegisteredNode(e)).klass,i=this._listeners.mutation,a=i.get(t);a===void 0&&(a=new Set,i.set(t,a)),a.add(r);let o=n&&n.skipInitialization;return o!==void 0&&o||this.initializeMutationListener(t,r),()=>{a.delete(r),a.size===0&&i.delete(t)}}getRegisteredNode(e){let t=this._nodes.get(e.getType());return t===void 0&&B(37,e.name),t}resolveRegisteredNodeAfterReplacements(e){for(;e.replaceWithKlass;)e=this.getRegisteredNode(e.replaceWithKlass);return e}initializeMutationListener(e,t){let n=this._editorState,r=bl(n).get(t.getType());if(!r)return;let i=new Map;for(let e of r.keys())i.set(e,`created`);i.size>0&&e(i,{dirtyLeaves:new Set,prevEditorState:n,updateTags:new Set([`registerMutationListener`])})}registerNodeTransformToKlass(e,t){let n=this.getRegisteredNode(e);return n.transforms.add(t),n}registerNodeTransform(e,t){let n=this.registerNodeTransformToKlass(e,t),r=[n],i=n.replaceWithKlass;if(i!=null){let e=this.registerNodeTransformToKlass(i,t);r.push(e)}return function(e,t){let n=bl(e.getEditorState()),r=[];for(let e of t){let t=n.get(e);t&&r.push(t)}r.length!==0&&e.update((()=>{for(let e of r)for(let t of e.keys()){let e=mc(t);e&&e.markDirty()}}),e._pendingEditorState===null?{tag:Fs}:void 0)}(this,r.map((e=>e.klass.getType()))),()=>{r.forEach((e=>e.transforms.delete(t)))}}hasNode(e){return this._nodes.has(e.getType())}hasNodes(e){return e.every(this.hasNode.bind(this))}dispatchCommand(e,t){return K(this,e,t)}getDecorators(){return this._decorators}getRootElement(){return this._rootElement}getKey(){return this._key}setRootElement(e){let t=this._rootElement;if(e!==t){let n=zc(this._config.theme,`root`),r=this._pendingEditorState||this._editorState;if(this._rootElement=e,Vs(this,t,e,r),t!==null&&(this._config.disableEvents||Wa(t),n!=null&&t.classList.remove(...n)),e!==null){let t=Zc(e),r=e.style;r.userSelect=`text`,r.whiteSpace=`pre-wrap`,r.wordBreak=`break-word`,e.setAttribute(`data-lexical-editor`,`true`),this._window=t,this._dirtyType=er,jr(this),this._updateTags.add(Fs),_s(this),this._config.disableEvents||function(e,t){let n=e.ownerDocument,r=Ca.get(n);(r===void 0||r<1)&&n.addEventListener(`selectionchange`,Va),Ca.set(n,(r||0)+1),e.__lexicalEditor=t;let i=za(e);for(let n=0;n<va.length;n++){let[r,a]=va[n],o=typeof a==`function`?e=>{Ua(e)||(Ha(e),(t.isEditable()||r===`click`)&&a(e,t))}:e=>{if(Ua(e))return;Ha(e);let n=t.isEditable();switch(r){case`cut`:return n&&K(t,sa,e);case`copy`:return K(t,oa,e);case`paste`:return n&&K(t,Mi,e);case`dragstart`:return n&&K(t,ra,e);case`dragover`:return n&&K(t,ia,e);case`dragend`:return n&&K(t,aa,e);case`focus`:return n&&K(t,pa,e);case`blur`:return n&&K(t,ma,e);case`drop`:return n&&K(t,ta,e)}};e.addEventListener(r,o),i.push((()=>{e.removeEventListener(r,o)}))}}(e,this),n!=null&&e.classList.add(...n)}else this._window=null,this._updateTags.add(Fs),_s(this);vs(`root`,this,!1,e,t)}}getElementByKey(e){return this._keyToDOMMap.get(e)||null}getEditorState(){return this._editorState}setEditorState(e,t){e.isEmpty()&&B(38);let n=e;n._readOnly&&(n=As(e),n._selection=e._selection?e._selection.clone():null),Ar(this);let r=this._pendingEditorState,i=this._updateTags,a=t===void 0?null:t.tag;r===null||r.isEmpty()||(a!=null&&i.add(a),_s(this)),this._pendingEditorState=n,this._dirtyType=er,this._dirtyElements.set(`root`,!1),this._compositionKey=null,a!=null&&i.add(a),this._updating||_s(this)}parseEditorState(e,t){return function(e,t,n){let r=js(),i=Qo,a=es,o=$o,s=t._dirtyElements,c=t._dirtyLeaves,l=t._cloneNotNeeded,u=t._dirtyType;t._dirtyElements=new Map,t._dirtyLeaves=new Set,t._cloneNotNeeded=new Set,t._dirtyType=0,Qo=r,es=!1,$o=t,Gs(null);try{let i=t._nodes;hs(e.root,i),n&&n(),r._readOnly=!0}catch(e){e instanceof Error&&t._onError(e)}finally{t._dirtyElements=s,t._dirtyLeaves=c,t._cloneNotNeeded=l,t._dirtyType=u,Qo=i,es=a,$o=o}return r}(typeof e==`string`?JSON.parse(e):e,this,t)}read(e){return _s(this),this.getEditorState().read(e,{editor:this})}update(e,t){(function(e,t,n){e._updating?e._updates.push([t,n]):bs(e,t,n)})(this,e,t)}focus(e,t={}){let n=this._rootElement;n!==null&&(n.setAttribute(`autocapitalize`,`off`),xs(this,(()=>{let r=W(),i=bc();r===null?i.getChildrenSize()!==0&&(t.defaultSelection===`rootStart`?i.selectStart():i.selectEnd()):r.dirty||Sc(r.clone()),Jc(`focus`),Yc((()=>{n.removeAttribute(`autocapitalize`),e&&e()}))})),this._pendingEditorState===null&&n.removeAttribute(`autocapitalize`))}blur(){let e=this._rootElement;e!==null&&e.blur();let t=sl(this._window);t!==null&&t.removeAllRanges()}isEditable(){return this._editable}setEditable(e){this._editable!==e&&(this._editable=e,vs(`editable`,this,!0,e))}toJSON(){return{editorState:this._editorState.toJSON()}}};Us.version=`0.35.0+prod.esm`;var Ws=null;function Gs(e){Ws=e}var Ks=1;function qs(e,t){let n=Js(e,t);return n===void 0&&B(30,t),n}function Js(e,t){return e._nodes.get(t)}var Ys=typeof queueMicrotask==`function`?queueMicrotask:e=>{Promise.resolve().then(e)};function Xs(e){return Ds(_c(e))}function Zs(e){let t=document.activeElement;if(!ul(t))return!1;let n=t.nodeName;return Ds(_c(e))&&(n===`INPUT`||n===`TEXTAREA`||t.contentEditable===`true`&&tc(t)==null)}function Qs(e,t,n){let r=e.getRootElement();try{return r!==null&&r.contains(t)&&r.contains(n)&&t!==null&&!Zs(t)&&ec(t)===e}catch{return!1}}function $s(e){return e instanceof Us}function ec(e){let t=e;for(;t!=null;){let e=tc(t);if($s(e))return e;t=Kc(t)}return null}function tc(e){return e?e.__lexicalEditor:null}function nc(e){return yo(e)||e.isToken()}function rc(e){return nc(e)||e.isSegmented()}function ic(e){return dl(e)&&e.nodeType===Yn}function ac(e){return dl(e)&&e.nodeType===Xn}function oc(e){let t=e;for(;t!=null;){if(ic(t))return t;t=t.firstChild}return null}function sc(e,t,n){let r=pr[t];if(n!==null&&(e&r)==(n&r))return e;let i=e^r;return t===`subscript`?i&=~pr.superscript:t===`superscript`?i&=~pr.subscript:t===`lowercase`?(i&=~pr.uppercase,i&=~pr.capitalize):t===`uppercase`?(i&=~pr.lowercase,i&=~pr.capitalize):t===`capitalize`&&(i&=~pr.lowercase,i&=~pr.uppercase),i}function cc(e){return H(e)||Za(e)||Ds(e)}function lc(e,t){let n=function(){let e=Ws;return Ws=null,e}();if((t||=n&&n.__key)!=null)return void(e.__key=t);as(),os();let r=cs(),i=ss(),a=``+ Ks++;i._nodeMap.set(a,e),G(e)?r._dirtyElements.set(a,!0):r._dirtyLeaves.add(a),r._cloneNotNeeded.add(a),r._dirtyType=$n,e.__key=a}function uc(e){let t=e.getParent();if(t!==null){let n=e.getWritable(),r=t.getWritable(),i=e.getPreviousSibling(),a=e.getNextSibling(),o=a===null?null:a.__key,s=i===null?null:i.__key,c=i===null?null:i.getWritable(),l=a===null?null:a.getWritable();i===null&&(r.__first=o),a===null&&(r.__last=s),c!==null&&(c.__next=o),l!==null&&(l.__prev=s),n.__prev=null,n.__next=null,n.__parent=null,r.__size--}}function dc(e){os();let t=e.getLatest(),n=t.__parent,r=ss(),i=cs(),a=r._nodeMap,o=i._dirtyElements;n!==null&&function(e,t,n){let r=e;for(;r!==null;){if(n.has(r))return;let e=t.get(r);if(e===void 0)break;n.set(r,!1),r=e.__parent}}(n,a,o);let s=t.__key;i._dirtyType=$n,G(e)?o.set(s,!0):i._dirtyLeaves.add(s)}function fc(e){as();let t=cs(),n=t._compositionKey;if(e!==n){if(t._compositionKey=e,n!==null){let e=mc(n);e!==null&&e.getWritable()}if(e!==null){let t=mc(e);t!==null&&t.getWritable()}}}function pc(){return is()?null:cs()._compositionKey}function mc(e,t){let n=(t||ss())._nodeMap.get(e);return n===void 0?null:n}function hc(e,t){let n=gc(e,cs());return n===void 0?null:mc(n,t)}function gc(e,t){return e[`__lexicalKey_${t._key}`]}function _c(e,t){let n=e;for(;n!=null;){let e=hc(n,t);if(e!==null)return e;n=Kc(n)}return null}function vc(e){let t=e._decorators,n=Object.assign({},t);return e._pendingDecorators=n,n}function yc(e){return e.read((()=>bc().getTextContent()))}function bc(){return xc(ss())}function xc(e){return e._nodeMap.get(`root`)}function Sc(e){as();let t=ss();e!==null&&(e.dirty=!0,e.setCachedNodes(null)),t._selection=e}function Cc(e){let t=cs(),n=function(e,t){let n=e;for(;n!=null;){let e=gc(n,t);if(e!==void 0)return e;n=Kc(n)}return null}(e,t);return n===null?e===t.getRootElement()?mc(`root`):null:mc(n)}function wc(e){return/[\uD800-\uDBFF][\uDC00-\uDFFF]/g.test(e)}function Tc(e){let t=[],n=e;for(;n!==null;)t.push(n),n=n._parentEditor;return t}function Ec(){return Math.random().toString(36).replace(/[^a-z]+/g,``).substring(0,5)}function Dc(e){return ic(e)?e.nodeValue:null}function Oc(e,t,n){let r=sl(Qc(t));if(r===null)return;let i=r.anchorNode,{anchorOffset:a,focusOffset:o}=r;if(i!==null){let t=Dc(i),r=_c(i);if(t!==null&&H(r)){if(t===ur&&n){let e=n.length;t=n,a=e,o=e}t!==null&&kc(r,t,a,o,e)}}}function kc(e,t,n,r,i){let a=e;if(a.isAttached()&&(i||!a.isDirty())){let o=a.isComposing(),s=t;(o||i)&&t[t.length-1]===ur&&(s=t.slice(0,-1));let c=a.getTextContent();if(i||s!==c){if(s===``){if(fc(null),Vn||Hn||Kn)a.remove();else{let e=cs();setTimeout((()=>{e.update((()=>{a.isAttached()&&a.remove()}))}),20)}return}let t=a.getParent(),i=Vo(),c=a.getTextContentSize(),l=pc(),u=a.getKey();if(a.isToken()||l!==null&&u===l&&!o||U(i)&&(t!==null&&!t.canInsertTextBefore()&&i.anchor.offset===0||i.anchor.key===e.__key&&i.anchor.offset===0&&!a.canInsertTextBefore()&&!o||i.focus.key===e.__key&&i.focus.offset===c&&!a.canInsertTextAfter()&&!o))return void a.markDirty();let d=W();if(!U(d)||n===null||r===null)return void Ac(a,s,d);if(d.setTextNodeRange(a,n,a,r),a.isSegmented()){let e=ho(a.getTextContent());a.replace(e),a=e}Ac(a,s,d)}}}function Ac(e,t,n){if(e.setTextContent(t),U(n)){let t=e.getKey();for(let r of[`anchor`,`focus`]){let i=n[r];i.type===`text`&&i.key===t&&(i.offset=Ul(e,i.offset,`clamp`))}}}function jc(e,t,n){let r=t[n]||!1;return r===`any`||r===e[n]}function Mc(e,t){return jc(e,t,`altKey`)&&jc(e,t,`ctrlKey`)&&jc(e,t,`shiftKey`)&&jc(e,t,`metaKey`)}function Nc(e,t,n){return Mc(e,n)&&e.key.toLowerCase()===t.toLowerCase()}var Pc={ctrlKey:!Rn,metaKey:Rn},Fc={altKey:Rn,ctrlKey:!Rn};function Ic(e){return e.key===`Backspace`}function Lc(e){return Nc(e,`a`,Pc)}function Rc(e){let t=bc();if(U(e)){let t=e.anchor,n=e.focus,r=t.getNode().getTopLevelElementOrThrow().getParentOrThrow();return t.set(r.getKey(),0,`element`),n.set(r.getKey(),r.getChildrenSize(),`element`),Ur(e),e}{let e=t.select(0,t.getChildrenSize());return Sc(Ur(e)),e}}function zc(e,t){e.__lexicalClassNameCache===void 0&&(e.__lexicalClassNameCache={});let n=e.__lexicalClassNameCache,r=n[t];if(r!==void 0)return r;let i=e[t];if(typeof i==`string`){let e=qn(i);return n[t]=e,e}return i}function Bc(e,t,n,r,i){if(n.size===0)return;let a=r.__type,o=r.__key,s=t.get(a);s===void 0&&B(33,a);let c=s.klass,l=e.get(c);l===void 0&&(l=new Map,e.set(c,l));let u=l.get(o),d=u===`destroyed`&&i===`created`;(u===void 0||d)&&l.set(o,d?`updated`:i)}function Vc(e,t,n){let r=e.getParent(),i=n,a=e;return r!==null&&(t&&n===0?(i=a.getIndexWithinParent(),a=r):t||n!==a.getChildrenSize()||(i=a.getIndexWithinParent()+1,a=r)),a.getChildAtIndex(t?i-1:i)}function Hc(e,t){let n=e.offset;if(e.type===`element`)return Vc(e.getNode(),t,n);{let r=e.getNode();if(t&&n===0||!t&&n===r.getTextContentSize()){let e=t?r.getPreviousSibling():r.getNextSibling();return e===null?Vc(r.getParentOrThrow(),t,r.getIndexWithinParent()+ +!t):e}}return null}function Uc(e){let t=Qc(e).event,n=t&&t.inputType;return n===`insertFromPaste`||n===`insertFromPasteAsQuotation`}function K(e,t,n){return function(e,t,n){let r=Tc(e);for(let i=4;i>=0;i--)for(let a=0;a<r.length;a++){let o=r[a],s=o._commands.get(t);if(s!==void 0){let t=s[i];if(t!==void 0){let r=Array.from(t),i=r.length,a=!1;if(xs(o,(()=>{for(let t=0;t<i;t++)if(r[t](n,e))return void(a=!0)})),a)return a}}}return!1}(e,t,n)}function Wc(e){return!ks(e)&&!e.isLastChild()&&!e.isInline()}function Gc(e,t){let n=e._keyToDOMMap.get(t);return n===void 0&&B(75,t),n}function Kc(e){let t=e.assignedSlot||e.parentElement;return fl(t)?t.host:t}function qc(e){return ac(e)?e:ul(e)?e.ownerDocument:null}function Jc(e){as(),cs()._updateTags.add(e)}function Yc(e){as(),cs()._deferred.push(e)}function Xc(e,t){let n=e.getParent();for(;n!==null;){if(n.is(t))return!0;n=n.getParent()}return!1}function Zc(e){let t=qc(e);return t?t.defaultView:null}function Qc(e){let t=e._window;return t===null&&B(78),t}function $c(e){let t=e.getParentOrThrow();for(;t!==null;){if(el(t))return t;t=t.getParentOrThrow()}return t}function el(e){return ks(e)||G(e)&&e.isShadowRoot()}function tl(e){let t=e.constructor.clone(e);return lc(t,null),t.afterCloneFrom(e),t}function nl(e){let t=cs(),n=e.getType(),r=Js(t,n);r===void 0&&B(200,e.constructor.name,n);let{replace:i,replaceWithKlass:a}=r;if(i!==null){let t=i(e),r=t.constructor;return a===null?t instanceof e.constructor&&r!==e.constructor||B(202,r.name,r.getType(),e.constructor.name,n):t instanceof a||B(201,a.name,a.getType(),r.name,r.getType(),e.constructor.name,n),t.__key===e.__key&&B(203,e.constructor.name,n,r.name,r.getType()),t}return e}function rl(e,t){!ks(e.getParent())||G(t)||Ds(t)||B(99)}function il(e){let t=mc(e);return t===null&&B(63,e),t}function al(e){return(Ds(e)||G(e)&&!e.canBeEmpty())&&!e.isInline()}function ol(e,t,n){n.style.removeProperty(`caret-color`),t._blockCursorElement=null;let r=e.parentElement;r!==null&&r.removeChild(e)}function sl(e){return In?(e||window).getSelection():null}function cl(e){let t=Zc(e);return t?t.getSelection():null}function ll(e){return ul(e)&&e.tagName===`A`}function ul(e){return dl(e)&&e.nodeType===Jn}function dl(e){return typeof e==`object`&&!!e&&`nodeType`in e&&typeof e.nodeType==`number`}function fl(e){return dl(e)&&e.nodeType===Zn}function pl(e){let t=new RegExp(/^(a|abbr|acronym|b|cite|code|del|em|i|ins|kbd|label|mark|output|q|ruby|s|samp|span|strong|sub|sup|time|u|tt|var|#text)$/,`i`);return e.nodeName.match(t)!==null}function ml(e){let t=new RegExp(/^(address|article|aside|blockquote|canvas|dd|div|dl|dt|fieldset|figcaption|figure|footer|form|h1|h2|h3|h4|h5|h6|header|hr|li|main|nav|noscript|ol|p|pre|section|table|td|tfoot|ul|video)$/,`i`);return e.nodeName.match(t)!==null}function hl(e){if(Ds(e)&&!e.isInline())return!0;if(!G(e)||el(e))return!1;let t=e.getFirstChild(),n=t===null||Za(t)||H(t)||t.isInline();return!e.isInline()&&!1!==e.canBeEmpty()&&n}function gl(e,t){let n=e;for(;n!==null&&n.getParent()!==null&&!t(n);)n=n.getParentOrThrow();return t(n)?n:null}function _l(){return cs()}var vl=new WeakMap,yl=new Map;function bl(e){if(!e._readOnly&&e.isEmpty())return yl;e._readOnly||B(192);let t=vl.get(e);return t||(t=function(e){let t=new Map;for(let[n,r]of e._nodeMap){let e=r.__type,i=t.get(e);i||(i=new Map,t.set(e,i)),i.set(n,r)}return t}(e),vl.set(e,t)),t}function xl(e){let t=e.constructor.clone(e);return t.afterCloneFrom(e),t}function Sl(e,t){let n=parseInt(e.style.paddingInlineStart,10)||0,r=Math.round(n/40);t.setIndent(r)}function Cl(e){return!0===e.__lexicalUnmanaged}function wl(e,t){return function(e,t){return Object.prototype.hasOwnProperty.call(e,t)}(e,t)&&e[t]!==qa[t]}function Tl(e){let t=yr in e.prototype?e.prototype[yr]():void 0,n=function(e){return e===Es||e===ws||e===qa}(e),r=!n&&wl(e,`getType`)?e.getType():void 0,i,a=r;if(t)if(r)i=t[r];else for(let[e,n]of Object.entries(t))a=e,i=n;if(!n&&a&&(wl(e,`getType`)||(e.getType=()=>a),wl(e,`clone`)||(e.clone=t=>(Gs(t),new e)),wl(e,`importJSON`)||(e.importJSON=i&&i.$importJSON||(t=>new e().updateFromJSON(t))),!wl(e,`importDOM`)&&i)){let{importDOM:t}=i;t&&(e.importDOM=()=>t)}return{ownNodeConfig:i,ownNodeType:a}}function El(e){let t=_l();return as(),new(t.resolveRegisteredNodeAfterReplacements(t.getRegisteredNode(e))).klass}var Dl={next:`previous`,previous:`next`},Ol=class{constructor(e){this.origin=e}[Symbol.iterator](){return $l({hasNext:Il,initial:this.getAdjacentCaret(),map:e=>e,step:e=>e.getAdjacentCaret()})}getAdjacentCaret(){return Vl(this.getNodeAtCaret(),this.direction)}getSiblingCaret(){return Vl(this.origin,this.direction)}remove(){let e=this.getNodeAtCaret();return e&&e.remove(),this}replaceOrInsert(e,t){let n=this.getNodeAtCaret();return e.is(this.origin)||e.is(n)||(n===null?this.insert(e):n.replace(e,t)),this}splice(e,t,n=`next`){let r=n===this.direction?t:Array.from(t).reverse(),i=this,a=this.getParentAtCaret(),o=new Map;for(let t=i.getAdjacentCaret();t!==null&&o.size<e;t=t.getAdjacentCaret()){let e=t.origin.getWritable();o.set(e.getKey(),e)}for(let e of r){if(o.size>0){let t=i.getNodeAtCaret();if(t){if(o.delete(t.getKey()),o.delete(e.getKey()),!(t.is(e)||i.origin.is(e))){let n=e.getParent();n&&n.is(a)&&e.remove(),t.replace(e)}}else t===null&&B(263,Array.from(o).join(` `))}else i.insert(e);i=Vl(e,this.direction)}for(let e of o.values())e.remove();return this}},kl=class e extends Ol{type=`child`;getLatest(){let e=this.origin.getLatest();return e===this.origin?this:Gl(e,this.direction)}getParentCaret(e=`root`){return Vl(Ml(this.getParentAtCaret(),e),this.direction)}getFlipped(){let e=jl(this.direction);return Vl(this.getNodeAtCaret(),e)||Gl(this.origin,e)}getParentAtCaret(){return this.origin}getChildCaret(){return this}isSameNodeCaret(t){return t instanceof e&&this.direction===t.direction&&this.origin.is(t.origin)}isSamePointCaret(e){return this.isSameNodeCaret(e)}},Al={root:ks,shadowRoot:el};function jl(e){return Dl[e]}function Ml(e,t=`root`){return Al[t](e)?null:e}var Nl=class e extends Ol{type=`sibling`;getLatest(){let e=this.origin.getLatest();return e===this.origin?this:Vl(e,this.direction)}getSiblingCaret(){return this}getParentAtCaret(){return this.origin.getParent()}getChildCaret(){return G(this.origin)?Gl(this.origin,this.direction):null}getParentCaret(e=`root`){return Vl(Ml(this.getParentAtCaret(),e),this.direction)}getFlipped(){let e=jl(this.direction);return Vl(this.getNodeAtCaret(),e)||Gl(this.origin.getParentOrThrow(),e)}isSamePointCaret(t){return t instanceof e&&this.direction===t.direction&&this.origin.is(t.origin)}isSameNodeCaret(t){return(t instanceof e||t instanceof Pl)&&this.direction===t.direction&&this.origin.is(t.origin)}},Pl=class e extends Ol{type=`text`;constructor(e,t){super(e),this.offset=t}getLatest(){let e=this.origin.getLatest();return e===this.origin?this:Hl(e,this.direction,this.offset)}getParentAtCaret(){return this.origin.getParent()}getChildCaret(){return null}getParentCaret(e=`root`){return Vl(Ml(this.getParentAtCaret(),e),this.direction)}getFlipped(){return Hl(this.origin,jl(this.direction),this.offset)}isSamePointCaret(t){return t instanceof e&&this.direction===t.direction&&this.origin.is(t.origin)&&this.offset===t.offset}isSameNodeCaret(t){return(t instanceof Nl||t instanceof e)&&this.direction===t.direction&&this.origin.is(t.origin)}getSiblingCaret(){return Vl(this.origin,this.direction)}};function Fl(e){return e instanceof Pl}function Il(e){return e instanceof Nl}function Ll(e){return e instanceof kl}var Rl={next:class extends Pl{direction=`next`;getNodeAtCaret(){return this.origin.getNextSibling()}insert(e){return this.origin.insertAfter(e),this}},previous:class extends Pl{direction=`previous`;getNodeAtCaret(){return this.origin.getPreviousSibling()}insert(e){return this.origin.insertBefore(e),this}}},zl={next:class extends Nl{direction=`next`;getNodeAtCaret(){return this.origin.getNextSibling()}insert(e){return this.origin.insertAfter(e),this}},previous:class extends Nl{direction=`previous`;getNodeAtCaret(){return this.origin.getPreviousSibling()}insert(e){return this.origin.insertBefore(e),this}}},Bl={next:class extends kl{direction=`next`;getNodeAtCaret(){return this.origin.getFirstChild()}insert(e){return this.origin.splice(0,0,[e]),this}},previous:class extends kl{direction=`previous`;getNodeAtCaret(){return this.origin.getLastChild()}insert(e){return this.origin.splice(this.origin.getChildrenSize(),0,[e]),this}}};function Vl(e,t){return e?new zl[t](e):null}function Hl(e,t,n){return e?new Rl[t](e,Ul(e,n)):null}function Ul(e,t,n=`error`){let r=e.getTextContentSize(),i=t===`next`?r:t===`previous`?0:t;return(i<0||i>r)&&(n!==`clamp`&&function(e,...t){let n=new URL(`https://lexical.dev/docs/error`),r=new URLSearchParams;r.append(`code`,e);for(let e of t)r.append(`v`,e);n.search=r.toString(),console.warn(`Minified Lexical warning #${e}; visit ${n.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}(284,String(t),String(r),e.getKey()),i=i<0?0:r),i}function Wl(e,t){return new Yl(e,t)}function Gl(e,t){return G(e)?new Bl[t](e):null}function Kl(e){return e&&e.getChildCaret()||e}function ql(e){return e&&Kl(e.getAdjacentCaret())}var Jl=class e{type=`node-caret-range`;constructor(e,t,n){this.anchor=e,this.focus=t,this.direction=n}getLatest(){let t=this.anchor.getLatest(),n=this.focus.getLatest();return t===this.anchor&&n===this.focus?this:new e(t,n,this.direction)}isCollapsed(){return this.anchor.isSamePointCaret(this.focus)}getTextSlices(){let e=e=>{let t=this[e].getLatest();return Fl(t)?function(e,t){let{direction:n,origin:r}=e;return Wl(e,Ul(r,t===`focus`?jl(n):n)-e.offset)}(t,e):null},t=e(`anchor`),n=e(`focus`);if(t&&n){let{caret:e}=t,{caret:r}=n;if(e.isSameNodeCaret(r))return[Wl(e,r.offset-e.offset),null]}return[t,n]}iterNodeCarets(e=`root`){let t=Fl(this.anchor)?this.anchor.getSiblingCaret():this.anchor.getLatest(),n=this.focus.getLatest(),r=Fl(n),i=t=>t.isSameNodeCaret(n)?null:ql(t)||t.getParentCaret(e);return $l({hasNext:e=>e!==null&&!(r&&n.isSameNodeCaret(e)),initial:t.isSameNodeCaret(n)?null:i(t),map:e=>e,step:i})}[Symbol.iterator](){return this.iterNodeCarets(`root`)}},Yl=class{type=`slice`;constructor(e,t){this.caret=e,this.distance=t}getSliceIndices(){let{distance:e,caret:{offset:t}}=this,n=t+e;return n<t?[n,t]:[t,n]}getTextContent(){let[e,t]=this.getSliceIndices();return this.caret.origin.getTextContent().slice(e,t)}getTextContentSize(){return Math.abs(this.distance)}removeTextSlice(){let{caret:{origin:e,direction:t}}=this,[n,r]=this.getSliceIndices(),i=e.getTextContent();return Hl(e.setTextContent(i.slice(0,n)+i.slice(r)),t,n)}};function Xl(e){return Ql(e,Vl(bc(),e.direction))}function Zl(e){return Ql(e,e)}function Ql(e,t){return e.direction!==t.direction&&B(265),new Jl(e,t,e.direction)}function $l(e){let{initial:t,hasNext:n,step:r,map:i}=e,a=t;return{[Symbol.iterator](){return this},next(){if(!n(a))return{done:!0,value:void 0};let e={done:!1,value:i(a)};return a=r(a),e}}}function eu(e,t){let n=iu(e.origin,t.origin);switch(n===null&&B(275,e.origin.getKey(),t.origin.getKey()),n.type){case`same`:{let n=e.type===`text`,r=t.type===`text`;return n&&r?function(e,t){return Math.sign(e-t)}(e.offset,t.offset):e.type===t.type?0:n?-1:r?1:e.type===`child`?-1:1}case`ancestor`:return e.type===`child`?-1:1;case`descendant`:return t.type===`child`?1:-1;case`branch`:return tu(n)}}function tu(e){let{a:t,b:n}=e,r=t.__key,i=n.__key,a=t,o=n;for(;a&&o;a=a.getNextSibling(),o=o.getNextSibling()){if(a.__key===i)return-1;if(o.__key===r)return 1}return a===null?1:-1}function nu(e,t){return t.is(e)}function ru(e){return G(e)?[e.getLatest(),null]:[e.getParent(),e.getLatest()]}function iu(e,t){if(e.is(t))return{commonAncestor:e,type:`same`};let n=new Map;for(let[t,r]=ru(e);t;r=t,t=t.getParent())n.set(t,r);for(let[r,i]=ru(t);r;i=r,r=r.getParent()){let a=n.get(r);if(a!==void 0)return a===null?(nu(e,r)||B(276),{commonAncestor:r,type:`ancestor`}):i===null?(nu(t,r)||B(277),{commonAncestor:r,type:`descendant`}):((G(a)||nu(e,a))&&(G(i)||nu(t,i))&&r.is(a.getParent())&&r.is(i.getParent())||B(278),{a,b:i,commonAncestor:r,type:`branch`})}return null}function au(e,t){let{type:n,key:r,offset:i}=e,a=il(e.key);return n===`text`?(H(a)||B(266,a.getType(),r),Hl(a,t,i)):(G(a)||B(267,a.getType(),r),vu(a,e.offset,t))}function ou(e,t){let{origin:n,direction:r}=t,i=r===`next`;Fl(t)?e.set(n.getKey(),t.offset,`text`):Il(t)?H(n)?e.set(n.getKey(),Ul(n,r),`text`):e.set(n.getParentOrThrow().getKey(),n.getIndexWithinParent()+ +!!i,`element`):(Ll(t)&&G(n)||B(268),e.set(n.getKey(),i?0:n.getChildrenSize(),`element`))}function su(e){let t=W(),n=U(t)?t:Ro();return cu(n,e),Sc(n),n}function cu(e,t){ou(e.anchor,t.anchor),ou(e.focus,t.focus)}function lu(e){let{anchor:t,focus:n}=e,r=au(t,`next`),i=au(n,`next`),a=eu(r,i)<=0?`next`:`previous`;return Ql(gu(r,a),gu(i,a))}function uu(e){let{direction:t,origin:n}=e,r=Vl(n,jl(t)).getNodeAtCaret();return r?Vl(r,t):Gl(n.getParentOrThrow(),t)}function du(e,t=`root`){let n=[e];for(let r=Ll(e)?e.getParentCaret(t):e.getSiblingCaret();r!==null;r=r.getParentCaret(t))n.push(uu(r));return n}function fu(e){return!!e&&e.origin.isAttached()}function pu(e,t=`removeEmptySlices`){if(e.isCollapsed())return e;let n=`root`,r=`next`,i=t,a=_u(e,r),o=du(a.anchor,n),s=du(a.focus.getFlipped(),n),c=new Set,l=[];for(let e of a.iterNodeCarets(n))if(Ll(e))c.add(e.origin.getKey());else if(Il(e)){let{origin:t}=e;G(t)&&!c.has(t.getKey())||l.push(t)}for(let e of l)e.remove();for(let e of a.getTextSlices()){if(!e)continue;let{origin:t}=e.caret,n=t.getTextContentSize(),a=uu(Vl(t,r)),c=t.getMode();if(Math.abs(e.distance)===n&&i===`removeEmptySlices`||c===`token`&&e.distance!==0)a.remove();else if(e.distance!==0){i=`removeEmptySlices`;let t=e.removeTextSlice(),n=e.caret.origin;if(c===`segmented`){let e=t.origin,n=ho(e.getTextContent()).setStyle(e.getStyle()).setFormat(e.getFormat());a.replaceOrInsert(n),t=Hl(n,r,t.offset)}n.is(o[0].origin)&&(o[0]=t),n.is(s[0].origin)&&(s[0]=t.getFlipped())}}let u,d;for(let e of o)if(fu(e)){u=mu(e);break}for(let e of s)if(fu(e)){d=mu(e);break}let f=function(e,t,n){if(!e||!t)return null;let r=e.getParentAtCaret(),i=t.getParentAtCaret();if(!r||!i)return null;let a=r.getParents().reverse();a.push(r);let o=i.getParents().reverse();o.push(i);let s=Math.min(a.length,o.length),c;for(c=0;c<s&&a[c]===o[c];c++);let l=(e,t)=>{let n;for(let r=c;r<e.length;r++){let i=e[r];if(el(i))return;!n&&t(i)&&(n=i)}return n},u=l(a,hl),d=u&&l(o,(e=>n.has(e.getKey())&&hl(e)));return u&&d?[u,d]:null}(u,d,c);if(f){let[e,t]=f;Gl(e,`previous`).splice(0,t.getChildren()),t.remove()}let p=[u,d,...o,...s].find(fu);if(p)return Zl(gu(mu(p),e.direction));B(269,JSON.stringify(o.map((e=>e.origin.__key))))}function mu(e){let t=function(e){let t=e;for(;Ll(t);){let e=ql(t);if(!Ll(e))break;t=e}return t}(e.getLatest()),{direction:n}=t;if(H(t.origin))return Fl(t)?t:Hl(t.origin,n,n);let r=t.getAdjacentCaret();return Il(r)&&H(r.origin)?Hl(r.origin,n,jl(n)):t}function hu(e){return Fl(e)&&e.offset!==Ul(e.origin,e.direction)}function gu(e,t){return e.direction===t?e:e.getFlipped()}function _u(e,t){return e.direction===t?e:Ql(gu(e.focus,t),gu(e.anchor,t))}function vu(e,t,n){let r=Gl(e,`next`);for(let e=0;e<t;e++){let e=r.getAdjacentCaret();if(e===null)break;r=e}return gu(r,n)}function yu(e){let{origin:t,offset:n,direction:r}=e;if(n===Ul(t,r))return e.getSiblingCaret();if(n===Ul(t,jl(r)))return uu(e.getSiblingCaret());let[i]=t.splitText(n);return H(i)||B(281),gu(Vl(i,`next`),r)}function bu(e,t){return!0}function xu(e,{$copyElementNode:t=tl,$splitTextPointCaretNext:n=yu,rootMode:r=`shadowRoot`,$shouldSplit:i=bu}={}){if(Fl(e))return n(e);let a=e.getParentCaret(r);if(a){let{origin:n}=a;if(Ll(e)&&(!n.canBeEmpty()||!i(n,`first`)))return uu(a);let r=function(e){let t=[];for(let n=e.getAdjacentCaret();n;n=n.getAdjacentCaret())t.push(n.origin);return t}(e);(r.length>0||n.canBeEmpty()&&i(n,`last`))&&a.insert(t(n).splice(0,0,r))}return a}function Su(e,...t){let n=new URL(`https://lexical.dev/docs/error`),r=new URLSearchParams;r.append(`code`,e);for(let e of t)r.append(`v`,e);throw n.search=r.toString(),Error(`Minified Lexical error #${e}; visit ${n.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}var Cu=new Map;function wu(e){let t={};if(!e)return t;let n=e.split(`;`);for(let e of n)if(e!==``){let[n,r]=e.split(/:([^]+)/);n&&r&&(t[n.trim()]=r.trim())}return t}function Tu(e){let t=Cu.get(e);return t===void 0&&(t=wu(e),Cu.set(e,t)),t}function Eu(e){let t=_l().getElementByKey(e.getKey());if(t===null)return null;let n=t.ownerDocument.defaultView;return n===null?null:n.getComputedStyle(t)}function Du(e){return Eu(ks(e)?e:e.getParentOrThrow())}function Ou(e){let t=Du(e);return t!==null&&t.direction===`rtl`}function ku(e,t){let n=e.getStartEndPoints();if(t.isSelected(e)&&!rc(t)&&n!==null){let[r,i]=n,a=e.isBackward(),o=r.getNode(),s=i.getNode(),c=t.is(o),l=t.is(s);if(c||l){let[n,r]=Oo(e),i=o.is(s),c=t.is(a?s:o),l=t.is(a?o:s),u,d=0;i?(d=n>r?r:n,u=n>r?n:r):c?(d=a?r:n,u=void 0):l&&(d=0,u=a?n:r),t.__text=t.__text.slice(d,u)}}return t}function Au(e){if(e.type===`text`)return e.offset===e.getNode().getTextContentSize();let t=e.getNode();return G(t)||Su(177),e.offset===t.getChildrenSize()}function ju(e){let t=e.getStyle(),n=wu(t);Cu.set(t,n)}function Mu(e,t){let n=e.getFormatType(),r=e.getIndent();n!==t.getFormatType()&&t.setFormat(n),r!==t.getIndent()&&t.setIndent(r)}function Nu(e,t,n=Mu){if(e===null)return;let r=e.getStartEndPoints(),i=new Map,a=null;if(r){let[e,t]=r;a=Ro(),a.anchor.set(e.key,e.offset,e.type),a.focus.set(t.key,t.offset,t.type);let n=Bu(e.getNode(),hl),o=Bu(t.getNode(),hl);G(n)&&i.set(n.getKey(),n),G(o)&&i.set(o.getKey(),o)}for(let t of e.getNodes())if(G(t)&&hl(t))i.set(t.getKey(),t);else if(r===null){let e=Bu(t,hl);G(e)&&i.set(e.getKey(),e)}for(let[e,r]of i){let i=t();n(r,i),r.replace(i,!0),a&&(e===a.anchor.key&&a.anchor.set(i.getKey(),a.anchor.offset,a.anchor.type),e===a.focus.key&&a.focus.set(i.getKey(),a.focus.offset,a.focus.type))}a&&e.is(W())&&Sc(a)}function Pu(e){let t=Fu(e);return t!==null&&t.writingMode===`vertical-rl`}function Fu(e){let t=e.anchor.getNode();return G(t)?Eu(t):Du(t)}function Iu(e,t){let n=Pu(e)?!t:t;Ru(e)&&(n=!n);let r=au(e.focus,n?`previous`:`next`);if(hu(r))return!1;for(let e of Xl(r)){if(Ll(e))return!e.origin.isInline();if(!G(e.origin)){if(Ds(e.origin))return!0;break}}return!1}function Lu(e,t,n,r){e.modify(t?`extend`:`move`,n,r)}function Ru(e){let t=Fu(e);return t!==null&&t.direction===`rtl`}function zu(e,t,n){let r=Ru(e),i;i=Pu(e)||r?!n:n,Lu(e,t,i,`character`)}function Bu(e,t){let n=e;for(;n!==null&&n.getParent()!==null&&!t(n);)n=n.getParentOrThrow();return t(n)?n:null}function Vu(e,...t){let n=new URL(`https://lexical.dev/docs/error`),r=new URLSearchParams;r.append(`code`,e);for(let e of t)r.append(`v`,e);throw n.search=r.toString(),Error(`Minified Lexical error #${e}; visit ${n.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}var Hu=typeof window<`u`&&window.document!==void 0&&window.document.createElement!==void 0,Uu=Hu&&`documentMode`in document?document.documentMode:null;Hu&&/Mac|iPod|iPhone|iPad/.test(navigator.platform);var Wu=Hu&&/^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent);!(!Hu||!(`InputEvent`in window)||Uu)&&`getTargetRanges`in new window.InputEvent(`input`),Hu&&/Version\/[\d.]+.*Safari/.test(navigator.userAgent),Hu&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&window.MSStream,Hu&&/Android/.test(navigator.userAgent),Hu&&/^(?=.*Chrome).*/i.test(navigator.userAgent),Hu&&/AppleWebKit\/[\d.]+/.test(navigator.userAgent);function Gu(...e){let t=[];for(let n of e)if(n&&typeof n==`string`)for(let[e]of n.matchAll(/\S+/g))t.push(e);return t}function Ku(...e){return()=>{for(let t=e.length-1;t>=0;t--)e[t]();e.length=0}}var qu=Hu,Ju=Wu;function Yu(e,...t){let n=Gu(...t);n.length>0&&e.classList.add(...n)}function Xu(e,...t){let n=Gu(...t);n.length>0&&e.classList.remove(...n)}function Zu(e){return e?e.getAdjacentCaret():null}function Qu(e,t){let n=e;for(;n!=null;){if(n instanceof t)return n;n=n.getParent()}return null}function $u(e){let t=ed(e,(e=>G(e)&&!e.isInline()));return G(t)||Vu(4,e.__key),t}var ed=(e,t)=>{let n=e;for(;n!==bc()&&n!=null;){if(t(n))return n;n=n.getParent()}return null};function td(e){let t=W()||Vo(),n;if(U(t))n=au(t.focus,`next`);else{if(t!=null){let e=t.getNodes(),r=e[e.length-1];r&&(n=Vl(r,`next`))}n||=Gl(bc(),`previous`).getFlipped().insert(zs())}let r=nd(e,n),i=ql(r);return su(Zl(Ll(i)?mu(i):r)),e.getLatest()}function nd(e,t,n){let r=gu(t,`next`);for(let e=r;e;e=xu(e,n))r=e;return Fl(r)&&Vu(283),r.insert(e.isInline()?zs().append(e):e),gu(Vl(e.getLatest(),`next`),t.direction)}function rd(e,t){let n=t();return e.replace(n),n.append(e),n}function id(e,t){return e!==null&&Object.getPrototypeOf(e).constructor.name===t.name}function ad(e,t){let n=[];for(let r=0;r<e.length;r++){let i=t(e[r]);i!==null&&n.push(i)}return n}var od=!(Ju||!qu)&&void 0;function sd(e){let t=1;if(function(){if(od===void 0){let e=document.createElement(`div`);e.style.cssText=`position: absolute; opacity: 0; width: 100px; left: -1000px;`,document.body.appendChild(e);let t=e.getBoundingClientRect();e.style.setProperty(`zoom`,`2`),od=e.getBoundingClientRect().width===t.width,document.body.removeChild(e)}return od}())for(;e;)t*=Number(window.getComputedStyle(e).getPropertyValue(`zoom`)),e=e.parentElement;return t}var cd=0,ld=1,ud=2,dd=0,fd=1,pd=2,md=3,hd=4;function gd(e,t,n,r,i){if(e===null||n.size===0&&r.size===0&&!i)return dd;let a=t._selection,o=e._selection;if(i)return fd;if(!(U(a)&&U(o)&&o.isCollapsed()&&a.isCollapsed()))return dd;let s=function(e,t,n){let r=e._nodeMap,i=[];for(let e of t){let t=r.get(e);t!==void 0&&i.push(t)}for(let[e,t]of n){if(!t)continue;let n=r.get(e);n===void 0||ks(n)||i.push(n)}return i}(t,n,r);if(s.length===0)return dd;if(s.length>1){let n=t._nodeMap,r=n.get(a.anchor.key),i=n.get(o.anchor.key);return r&&i&&!e._nodeMap.has(r.__key)&&H(r)&&r.__text.length===1&&a.anchor.offset===1?pd:dd}let c=s[0],l=e._nodeMap.get(c.__key);if(!H(l)||!H(c)||l.__mode!==c.__mode)return dd;let u=l.__text,d=c.__text;if(u===d)return dd;let f=a.anchor,p=o.anchor;if(f.key!==p.key||f.type!==`text`)return dd;let m=f.offset,h=p.offset,g=d.length-u.length;return g===1&&h===m-1?pd:g===-1&&h===m+1?md:g===-1&&h===m?hd:dd}function _d(e,t){let n=Date.now(),r=dd;return(i,a,o,s,c,l)=>{let u=Date.now();if(l.has(`historic`))return r=dd,n=u,ud;let d=gd(i,a,s,c,e.isComposing()),f=(()=>{let f=o===null||o.editor===e,p=l.has(Ps);if(!p&&f&&l.has(`history-merge`))return cd;if(i===null)return ld;let m=a._selection;return s.size>0||c.size>0?!1===p&&d!==dd&&d===r&&u<n+t&&f||s.size===1&&function(e,t,n){let r=t._nodeMap.get(e),i=n._nodeMap.get(e),a=t._selection,o=n._selection;return!(U(a)&&U(o)&&a.anchor.type===`element`&&a.focus.type===`element`&&o.anchor.type===`text`&&o.focus.type===`text`||!H(r)||!H(i)||r.__parent!==i.__parent)&&JSON.stringify(t.read((()=>r.exportJSON())))===JSON.stringify(n.read((()=>i.exportJSON())))}(Array.from(s)[0],i,a)?cd:ld:m===null?ud:cd})();return n=u,r=d,f}}function vd(e){e.undoStack=[],e.redoStack=[],e.current=null}function yd(e,t,n){let r=_d(e,n);return Ku(e.registerCommand(Li,(()=>(function(e,t){let n=t.redoStack,r=t.undoStack;if(r.length!==0){let i=t.current,a=r.pop();i!==null&&(n.push(i),e.dispatchCommand(da,!0)),r.length===0&&e.dispatchCommand(fa,!1),t.current=a||null,a&&a.editor.setEditorState(a.editorState,{tag:`historic`})}}(e,t),!0)),0),e.registerCommand(Ri,(()=>(function(e,t){let n=t.redoStack,r=t.undoStack;if(n.length!==0){let i=t.current;i!==null&&(r.push(i),e.dispatchCommand(fa,!0));let a=n.pop();n.length===0&&e.dispatchCommand(da,!1),t.current=a||null,a&&a.editor.setEditorState(a.editorState,{tag:`historic`})}}(e,t),!0)),0),e.registerCommand(la,(()=>(vd(t),!1)),0),e.registerCommand(ua,(()=>(vd(t),e.dispatchCommand(da,!1),e.dispatchCommand(fa,!1),!0)),0),e.registerUpdateListener((({editorState:n,prevEditorState:i,dirtyLeaves:a,dirtyElements:o,tags:s})=>{let c=t.current,l=t.redoStack,u=t.undoStack,d=c===null?null:c.editorState;if(c!==null&&n===d)return;let f=r(i,n,c,a,o,s);if(f===ld)l.length!==0&&(t.redoStack=[],e.dispatchCommand(da,!1)),c!==null&&(u.push({...c}),e.dispatchCommand(fa,!0));else if(f===ud)return;t.current={editor:e,editorState:n}})))}function bd(){return{current:null,redoStack:[],undoStack:[]}}function xd({delay:e,externalHistoryState:t}){let[n]=Fn();return function(e,t,n=1e3){let r=(0,L.useMemo)((()=>t||bd()),[t]);(0,L.useEffect)((()=>yd(e,r,n)),[n,e,r])}(n,t,e),null}function Sd(e,t){let n=t.body?t.body.childNodes:[],r=[],i=[];for(let t=0;t<n.length;t++){let a=n[t];if(!Td.has(a.nodeName)){let t=Ed(a,e,i,!1);t!==null&&(r=r.concat(t))}}return function(e){for(let t of e)t.getNextSibling()instanceof Is&&t.insertAfter(Xa());for(let t of e){let e=t.getChildren();for(let n of e)t.insertBefore(n);t.remove()}}(i),r}function Cd(e,t){if(typeof document>`u`||typeof window>`u`&&global.window===void 0)throw Error(`To use $generateHtmlFromNodes in headless mode please initialize a headless browser implementation such as JSDom before calling this function.`);let n=document.createElement(`div`),r=bc().getChildren();for(let i=0;i<r.length;i++)wd(e,r[i],n,t);return n.innerHTML}function wd(e,t,n,r=null){let i=r===null||t.isSelected(r),a=G(t)&&t.excludeFromCopy(`html`),o=t;if(r!==null){let e=xl(t);e=H(e)&&r!==null?ku(r,e):e,o=e}let s=G(o)?o.getChildren():[],c=Js(e,o.getType()),l;l=c&&c.exportDOM!==void 0?c.exportDOM(e,o):o.exportDOM(e);let{element:u,after:d}=l;if(!u)return!1;let f=document.createDocumentFragment();for(let n=0;n<s.length;n++){let a=s[n],o=wd(e,a,f,r);!i&&G(t)&&o&&t.extractWithChild(a,r,`html`)&&(i=!0)}if(i&&!a){if((ul(u)||fl(u))&&u.append(f),n.append(u),d){let e=d.call(o,u);e&&(fl(u)?u.replaceChildren(e):u.replaceWith(e))}}else n.append(f);return i}var Td=new Set([`STYLE`,`SCRIPT`]);function Ed(e,t,n,r,i=new Map,a){let o=[];if(Td.has(e.nodeName))return o;let s=null,c=function(e,t){let{nodeName:n}=e,r=t._htmlConversions.get(n.toLowerCase()),i=null;if(r!==void 0)for(let t of r){let n=t(e);n!==null&&(i===null||(i.priority||0)<=(n.priority||0))&&(i=n)}return i===null?null:i.conversion}(e,t),l=c?c(e):null,u=null;if(l!==null){u=l.after;let t=l.node;if(s=Array.isArray(t)?t[t.length-1]:t,s!==null){for(let[,e]of i)if(s=e(s,a),!s)break;s&&o.push(...Array.isArray(t)?t:[s])}l.forChild!=null&&i.set(e.nodeName,l.forChild)}let d=e.childNodes,f=[],p=(s==null||!el(s))&&(s!=null&&Io(s)||r);for(let e=0;e<d.length;e++)f.push(...Ed(d[e],t,n,p,new Map(i),s));return u!=null&&(f=u(f)),ml(e)&&(f=Dd(e,f,p?()=>{let e=new Is;return n.push(e),e}:zs)),s==null?f.length>0?o=o.concat(f):ml(e)&&function(e){return e.nextSibling==null||e.previousSibling==null?!1:pl(e.nextSibling)&&pl(e.previousSibling)}(e)&&(o=o.concat(Xa())):G(s)&&s.append(...f),o}function Dd(e,t,n){let r=e.style.textAlign,i=[],a=[];for(let e=0;e<t.length;e++){let o=t[e];if(Io(o))r&&!o.getFormat()&&o.setFormat(r),i.push(o);else if(a.push(o),e===t.length-1||e<t.length-1&&Io(t[e+1])){let e=n();e.setFormat(r),e.append(...a),i.push(e),a=[]}}return i}function Od(e,...t){let n=new URL(`https://lexical.dev/docs/error`),r=new URLSearchParams;r.append(`code`,e);for(let e of t)r.append(`v`,e);throw n.search=r.toString(),Error(`Minified Lexical error #${e}; visit ${n.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}function kd(e,t=W()){return t??Od(166),U(t)&&t.isCollapsed()||t.getNodes().length===0?``:Cd(e,t)}function Ad(e,t=W()){return t??Od(166),U(t)&&t.isCollapsed()||t.getNodes().length===0?null:JSON.stringify(Pd(e,t))}function jd(e,t,n){let r=e.getData(`application/x-lexical-editor`);if(r)try{let e=JSON.parse(r);if(e.namespace===n._config.namespace&&Array.isArray(e.nodes))return Md(n,Fd(e.nodes),t)}catch{}let i=e.getData(`text/html`),a=e.getData(`text/plain`);if(i&&a!==i)try{return Md(n,Sd(n,new DOMParser().parseFromString(function(e){return window.trustedTypes&&window.trustedTypes.createPolicy?window.trustedTypes.createPolicy(`lexical`,{createHTML:e=>e}).createHTML(e):e}(i),`text/html`)),t)}catch{}let o=a||e.getData(`text/uri-list`);if(o!=null)if(U(t)){let e=o.split(/(\r?\n|\t)/);e[e.length-1]===``&&e.pop();for(let t=0;t<e.length;t++){let n=W();if(U(n)){let r=e[t];r===`
|
|
22
|
+
`||r===`\r
|
|
23
|
+
`?n.insertParagraph():r===` `?n.insertNodes([vo()]):n.insertText(r)}}}else t.insertRawText(o)}function Md(e,t,n){e.dispatchCommand(Ei,{nodes:t,selection:n})||(n.insertNodes(t),function(e){if(U(e)&&e.isCollapsed()){let t=e.anchor,n=null,r=au(t,`previous`);if(r)if(Fl(r))n=r.origin;else{let e=Ql(r,Gl(bc(),`next`).getFlipped());for(let t of e){if(H(t.origin)){n=t.origin;break}if(G(t.origin)&&!t.origin.isInline())break}}if(n&&H(n)){let t=n.getFormat(),r=n.getStyle();e.format===t&&e.style===r||(e.format=t,e.style=r,e.dirty=!0)}}}(n))}function Nd(e,t,n,r=[]){let i=t===null||n.isSelected(t),a=G(n)&&n.excludeFromCopy(`html`),o=n;if(t!==null){let e=xl(n);e=H(e)&&t!==null?ku(t,e):e,o=e}let s=G(o)?o.getChildren():[],c=function(e){let t=e.exportJSON(),n=e.constructor;if(t.type!==n.getType()&&Od(58,n.name),G(e)){let e=t.children;Array.isArray(e)||Od(59,n.name)}return t}(o);if(H(o)){let e=o.__text;e.length>0?c.text=e:i=!1}for(let r=0;r<s.length;r++){let a=s[r],o=Nd(e,t,a,c.children);!i&&G(n)&&o&&n.extractWithChild(a,t,`clone`)&&(i=!0)}if(i&&!a)r.push(c);else if(Array.isArray(c.children))for(let e=0;e<c.children.length;e++){let t=c.children[e];r.push(t)}return i}function Pd(e,t){let n=[],r=bc().getChildren();for(let i=0;i<r.length;i++)Nd(e,t,r[i],n);return{namespace:e._config.namespace,nodes:n}}function Fd(e){let t=[];for(let n=0;n<e.length;n++){let r=e[n],i=ms(r);H(i)&&ju(i),t.push(i)}return t}var Id=null;async function Ld(e,t,n){if(Id!==null)return!1;if(t!==null)return new Promise(((r,i)=>{e.update((()=>{r(Rd(e,t,n))}))}));let r=e.getRootElement(),i=e._window||window,a=window.document,o=sl(i);if(r===null||o===null)return!1;let s=a.createElement(`span`);s.style.cssText=`position: fixed; top: -1000px;`,s.append(a.createTextNode(`#`)),r.append(s);let c=new Range;return c.setStart(s,0),c.setEnd(s,1),o.removeAllRanges(),o.addRange(c),new Promise(((t,r)=>{let i=e.registerCommand(oa,(r=>(id(r,ClipboardEvent)&&(i(),Id!==null&&(window.clearTimeout(Id),Id=null),t(Rd(e,r,n))),!0)),4);Id=window.setTimeout((()=>{i(),Id=null,t(!1)}),50),a.execCommand(`copy`),s.remove()}))}function Rd(e,t,n){if(n===void 0){let t=sl(e._window);if(!t)return!1;let r=t.anchorNode,i=t.focusNode;if(r!==null&&i!==null&&!Qs(e,r,i))return!1;let a=W();if(a===null)return!1;n=Bd(a)}t.preventDefault();let r=t.clipboardData;return r!==null&&(Vd(r,n),!0)}var zd=[[`text/html`,kd],[`application/x-lexical-editor`,Ad]];function Bd(e=W()){let t={"text/plain":e?e.getTextContent():``};if(e){let n=_l();for(let[r,i]of zd){let a=i(n,e);a!==null&&(t[r]=a)}}return t}function Vd(e,t){for(let n in t){let r=t[n];r!==void 0&&e.setData(n,r)}}function Hd(e,t){if(document.caretRangeFromPoint!==void 0){let n=document.caretRangeFromPoint(e,t);return n===null?null:{node:n.startContainer,offset:n.startOffset}}if(document.caretPositionFromPoint!==`undefined`){let n=document.caretPositionFromPoint(e,t);return n===null?null:{node:n.offsetNode,offset:n.offset}}return null}var Ud=typeof window<`u`&&window.document!==void 0&&window.document.createElement!==void 0,Wd=Ud&&`documentMode`in document?document.documentMode:null,Gd=!(!Ud||!(`InputEvent`in window)||Wd)&&`getTargetRanges`in new window.InputEvent(`input`),Kd=Ud&&/Version\/[\d.]+.*Safari/.test(navigator.userAgent),qd=Ud&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,Jd=Ud&&/^(?=.*Chrome).*/i.test(navigator.userAgent),Yd=Ud&&/AppleWebKit\/[\d.]+/.test(navigator.userAgent)&&!Jd,Xd=V(`DRAG_DROP_PASTE_FILE`),Zd=class e extends ws{static getType(){return`quote`}static clone(t){return new e(t.__key)}createDOM(e){let t=document.createElement(`blockquote`);return Yu(t,e.theme.quote),t}updateDOM(e,t){return!1}static importDOM(){return{blockquote:e=>({conversion:rf,priority:0})}}exportDOM(e){let{element:t}=super.exportDOM(e);if(ul(t)){this.isEmpty()&&t.append(document.createElement(`br`));let e=this.getFormatType();e&&(t.style.textAlign=e);let n=this.getDirection();n&&(t.dir=n)}return{element:t}}static importJSON(e){return Qd().updateFromJSON(e)}insertNewAfter(e,t){let n=zs(),r=this.getDirection();return n.setDirection(r),this.insertAfter(n,t),n}collapseAtStart(){let e=zs();return this.getChildren().forEach((t=>e.append(t))),this.replace(e),!0}canMergeWhenEmpty(){return!0}};function Qd(){return nl(new Zd)}function $d(e){return e instanceof Zd}var ef=class e extends ws{static getType(){return`heading`}static clone(t){return new e(t.__tag,t.__key)}constructor(e,t){super(t),this.__tag=e}getTag(){return this.__tag}setTag(e){let t=this.getWritable();return this.__tag=e,t}createDOM(e){let t=this.__tag,n=document.createElement(t),r=e.theme.heading;if(r!==void 0){let e=r[t];Yu(n,e)}return n}updateDOM(e,t,n){return e.__tag!==this.__tag}static importDOM(){return{h1:e=>({conversion:nf,priority:0}),h2:e=>({conversion:nf,priority:0}),h3:e=>({conversion:nf,priority:0}),h4:e=>({conversion:nf,priority:0}),h5:e=>({conversion:nf,priority:0}),h6:e=>({conversion:nf,priority:0}),p:e=>{let t=e.firstChild;return t!==null&&tf(t)?{conversion:()=>({node:null}),priority:3}:null},span:e=>tf(e)?{conversion:e=>({node:af(`h1`)}),priority:3}:null}}exportDOM(e){let{element:t}=super.exportDOM(e);if(ul(t)){this.isEmpty()&&t.append(document.createElement(`br`));let e=this.getFormatType();e&&(t.style.textAlign=e);let n=this.getDirection();n&&(t.dir=n)}return{element:t}}static importJSON(e){return af(e.tag).updateFromJSON(e)}updateFromJSON(e){return super.updateFromJSON(e).setTag(e.tag)}exportJSON(){return{...super.exportJSON(),tag:this.getTag()}}insertNewAfter(e,t=!0){let n=e?e.anchor.offset:0,r=this.getLastDescendant(),i=!r||e&&e.anchor.key===r.getKey()&&n===r.getTextContentSize()||!e?zs():af(this.getTag()),a=this.getDirection();if(i.setDirection(a),this.insertAfter(i,t),n===0&&!this.isEmpty()&&e){let e=zs();e.select(),this.replace(e,!0)}return i}collapseAtStart(){let e=this.isEmpty()?zs():af(this.getTag());return this.getChildren().forEach((t=>e.append(t))),this.replace(e),!0}extractWithChild(){return!0}};function tf(e){return e.nodeName.toLowerCase()===`span`&&e.style.fontSize===`26pt`}function nf(e){let t=e.nodeName.toLowerCase(),n=null;return t!==`h1`&&t!==`h2`&&t!==`h3`&&t!==`h4`&&t!==`h5`&&t!==`h6`||(n=af(t),e.style!==null&&(Sl(e,n),n.setFormat(e.style.textAlign))),{node:n}}function rf(e){let t=Qd();return e.style!==null&&(t.setFormat(e.style.textAlign),Sl(e,t)),{node:t}}function af(e=`h1`){return nl(new ef(e))}function of(e){return e instanceof ef}function sf(e){let t=null;if(id(e,DragEvent)?t=e.dataTransfer:id(e,ClipboardEvent)&&(t=e.clipboardData),t===null)return[!1,[],!1];let n=t.types,r=n.includes(`Files`),i=n.includes(`text/html`)||n.includes(`text/plain`);return[r,Array.from(t.files),i]}function cf(e){let t=W();if(!U(t))return!1;let n=new Set,r=t.getNodes();for(let t=0;t<r.length;t++){let i=r[t],a=i.getKey();if(n.has(a))continue;let o=ed(i,(e=>G(e)&&!e.isInline()));if(o===null)continue;let s=o.getKey();o.canIndent()&&!n.has(s)&&(n.add(s),e(o))}return n.size>0}function lf(e){return Ds(_c(e))}function uf(e){for(let t of[`lowercase`,`uppercase`,`capitalize`])e.hasFormat(t)&&e.toggleFormat(t)}function df(e){return Ku(e.registerCommand(Di,(e=>{let t=W();return!!Eo(t)&&(t.clear(),!0)}),0),e.registerCommand(Oi,(e=>{let t=W();return U(t)?(t.deleteCharacter(e),!0):!!Eo(t)&&(t.deleteNodes(),!0)}),0),e.registerCommand(Pi,(e=>{let t=W();return!!U(t)&&(t.deleteWord(e),!0)}),0),e.registerCommand(Fi,(e=>{let t=W();return!!U(t)&&(t.deleteLine(e),!0)}),0),e.registerCommand(ji,(t=>{let n=W();if(typeof t==`string`)n!==null&&n.insertText(t);else{if(n===null)return!1;let r=t.dataTransfer;if(r!=null)jd(r,n,e);else if(U(n)){let e=t.data;return e&&n.insertText(e),!0}}return!0}),0),e.registerCommand(Ni,(()=>{let e=W();return!!U(e)&&(e.removeText(),!0)}),0),e.registerCommand(Ii,(e=>{let t=W();return!!U(t)&&(t.formatText(e),!0)}),0),e.registerCommand(na,(e=>{let t=W();if(!U(t)&&!Eo(t))return!1;let n=t.getNodes();for(let t of n){let n=ed(t,(e=>G(e)&&!e.isInline()));n!==null&&n.setFormat(e)}return!0}),0),e.registerCommand(ki,(e=>{let t=W();return!!U(t)&&(t.insertLineBreak(e),!0)}),0),e.registerCommand(Ai,(()=>{let e=W();return!!U(e)&&(e.insertParagraph(),!0)}),0),e.registerCommand(Qi,(()=>(Jo([vo()]),!0)),0),e.registerCommand($i,(()=>cf((e=>{let t=e.getIndent();e.setIndent(t+1)}))),0),e.registerCommand(ea,(()=>cf((e=>{let t=e.getIndent();t>0&&e.setIndent(Math.max(0,t-1))}))),0),e.registerCommand(Wi,(e=>{let t=W();if(Eo(t)){let e=t.getNodes();if(e.length>0)return e[0].selectPrevious(),!0}else if(U(t)){let n=Hc(t.focus,!0);if(!e.shiftKey&&Ds(n)&&!n.isIsolated()&&!n.isInline())return n.selectPrevious(),e.preventDefault(),!0}return!1}),0),e.registerCommand(Gi,(e=>{let t=W();if(Eo(t)){let e=t.getNodes();if(e.length>0)return e[0].selectNext(0,0),!0}else if(U(t)){if(function(e){let t=e.focus;return t.key===`root`&&t.offset===bc().getChildrenSize()}(t))return e.preventDefault(),!0;let n=Hc(t.focus,!1);if(!e.shiftKey&&Ds(n)&&!n.isIsolated()&&!n.isInline())return n.selectNext(),e.preventDefault(),!0}return!1}),0),e.registerCommand(Hi,(e=>{let t=W();if(Eo(t)){let n=t.getNodes();if(n.length>0)return e.preventDefault(),Ou(n[0])?n[0].selectNext(0,0):n[0].selectPrevious(),!0}if(!U(t))return!1;if(Iu(t,!0)){let n=e.shiftKey;return e.preventDefault(),zu(t,n,!0),!0}return!1}),0),e.registerCommand(Bi,(e=>{let t=W();if(Eo(t)){let n=t.getNodes();if(n.length>0)return e.preventDefault(),Ou(n[0])?n[0].selectPrevious():n[0].selectNext(0,0),!0}if(!U(t))return!1;let n=e.shiftKey;return!!Iu(t,!1)&&(e.preventDefault(),zu(t,n,!1),!0)}),0),e.registerCommand(Ji,(t=>{if(lf(t.target))return!1;let n=W();if(U(n)){if(function(e){if(!e.isCollapsed())return!1;let{anchor:t}=e;if(t.offset!==0)return!1;let n=t.getNode();if(ks(n))return!1;let r=$u(n);return r.getIndent()>0&&(r.is(n)||n.is(r.getFirstDescendant()))}(n))return t.preventDefault(),e.dispatchCommand(ea,void 0);if(qd&&navigator.language===`ko-KR`)return!1}else if(!Eo(n))return!1;return t.preventDefault(),e.dispatchCommand(Oi,!0)}),0),e.registerCommand(Xi,(t=>{if(lf(t.target))return!1;let n=W();return!(!U(n)&&!Eo(n))&&(t.preventDefault(),e.dispatchCommand(Oi,!1))}),0),e.registerCommand(Ki,(t=>{let n=W();if(!U(n))return!1;if(uf(n),t!==null){if((qd||Kd||Yd)&&Gd)return!1;if(t.preventDefault(),t.shiftKey)return e.dispatchCommand(ki,!1)}return e.dispatchCommand(Ai,void 0)}),0),e.registerCommand(Yi,(()=>!!U(W())&&(e.blur(),!0)),0),e.registerCommand(ta,(t=>{let[,n]=sf(t);if(n.length>0){let r=Hd(t.clientX,t.clientY);if(r!==null){let{offset:t,node:i}=r,a=_c(i);if(a!==null){let e=Ro();if(H(a))e.anchor.set(a.getKey(),t,`text`),e.focus.set(a.getKey(),t,`text`);else{let t=a.getParentOrThrow().getKey(),n=a.getIndexWithinParent()+1;e.anchor.set(t,n,`element`),e.focus.set(t,n,`element`)}Sc(Ur(e))}e.dispatchCommand(Xd,n)}return t.preventDefault(),!0}return!!U(W())}),0),e.registerCommand(ra,(e=>{let[t]=sf(e),n=W();return!(t&&!U(n))}),0),e.registerCommand(ia,(e=>{let[t]=sf(e),n=W();if(t&&!U(n))return!1;let r=Hd(e.clientX,e.clientY);return r!==null&&Ds(_c(r.node))&&e.preventDefault(),!0}),0),e.registerCommand(ca,(()=>(Rc(),!0)),0),e.registerCommand(oa,(t=>(Ld(e,id(t,ClipboardEvent)?t:null),!0)),0),e.registerCommand(sa,(t=>(async function(e,t){await Ld(t,id(e,ClipboardEvent)?e:null),t.update((()=>{let e=W();U(e)?e.removeText():Eo(e)&&e.getNodes().forEach((e=>e.remove()))}))}(t,e),!0)),0),e.registerCommand(Mi,(t=>{let[,n,r]=sf(t);return n.length>0&&!r?(e.dispatchCommand(Xd,n),!0):dl(t.target)&&Zs(t.target)?!1:W()!==null&&(function(e,t){e.preventDefault(),t.update((()=>{let n=W(),r=id(e,InputEvent)||id(e,KeyboardEvent)?null:e.clipboardData;r!=null&&n!==null&&jd(r,n,t)}),{tag:`paste`})}(t,e),!0)}),0),e.registerCommand(qi,(e=>{let t=W();return U(t)&&uf(t),!1}),0),e.registerCommand(Zi,(e=>{let t=W();return U(t)&&uf(t),!1}),0))}function ff(e,t,n,r){let i=e.length,a=0,o;if(t=t<0?-t>i?0:i+t:t>i?i: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);a<r.length;)o=r.slice(a,a+1e4),o.unshift(t,0),e.splice(...o),a+=1e4,t+=1e4}function pf(e,t){return e.length>0?(ff(e,e.length,0,t),e):t}var mf=Tf(/[A-Za-z]/),hf=Tf(/[\dA-Za-z]/),gf=Tf(/[#-'*+\--9=?A-Z^-~]/);function _f(e){return e!==null&&(e<32||e===127)}var vf=Tf(/\d/),yf=Tf(/[\dA-Fa-f]/),bf=Tf(/[!-/:-@[-`{-~]/);function q(e){return e!==null&&e<-2}function xf(e){return e!==null&&(e<0||e===32)}function Sf(e){return e===-2||e===-1||e===32}var Cf=Tf(/\p{P}|\p{S}/u),wf=Tf(/\s/);function Tf(e){return t;function t(t){return t!==null&&t>-1&&e.test(String.fromCharCode(t))}}function Ef(e){if(e===null||xf(e)||wf(e))return 1;if(Cf(e))return 2}function Df(e,t,n){let r=[],i=-1;for(;++i<e.length;){let a=e[i].resolveAll;a&&!r.includes(a)&&(t=a(t,n),r.push(a))}return t}function Of(e){let t=(e||{}).singleTilde,n={name:`strikethrough`,tokenize:i,resolveAll:r};return t??=!0,{text:{126:n},insideSpan:{null:[n]},attentionMarkers:{null:[126]}};function r(e,t){let n=-1;for(;++n<e.length;)if(e[n][0]===`enter`&&e[n][1].type===`strikethroughSequenceTemporary`&&e[n][1]._close){let r=n;for(;r--;)if(e[r][0]===`exit`&&e[r][1].type===`strikethroughSequenceTemporary`&&e[r][1]._open&&e[n][1].end.offset-e[n][1].start.offset===e[r][1].end.offset-e[r][1].start.offset){e[n][1].type=`strikethroughSequence`,e[r][1].type=`strikethroughSequence`;let i={type:`strikethrough`,start:Object.assign({},e[r][1].start),end:Object.assign({},e[n][1].end)},a={type:`strikethroughText`,start:Object.assign({},e[r][1].end),end:Object.assign({},e[n][1].start)},o=[[`enter`,i,t],[`enter`,e[r][1],t],[`exit`,e[r][1],t],[`enter`,a,t]],s=t.parser.constructs.insideSpan.null;s&&ff(o,o.length,0,Df(s,e.slice(r+1,n),t)),ff(o,o.length,0,[[`exit`,a,t],[`enter`,e[n][1],t],[`exit`,e[n][1],t],[`exit`,i,t]]),ff(e,r-1,n-r+3,o),n=r+o.length-2;break}}for(n=-1;++n<e.length;)e[n][1].type===`strikethroughSequenceTemporary`&&(e[n][1].type=`data`);return e}function i(e,n,r){let i=this.previous,a=this.events,o=0;return s;function s(t){return i===126&&a[a.length-1][1].type!==`characterEscape`?r(t):(e.enter(`strikethroughSequenceTemporary`),c(t))}function c(a){let s=Ef(i);if(a===126)return o>1?r(a):(e.consume(a),o++,c);if(o<2&&!t)return r(a);let l=e.exit(`strikethroughSequenceTemporary`),u=Ef(a);return l._open=!u||u===2&&!!s,l._close=!s||s===2&&!!u,n(a)}}}var kf=[`autolink`,`destinationLiteral`,`destinationRaw`,`reference`,`titleQuote`,`titleApostrophe`];Pf.peek=Ff;function Af(){return{canContainEols:[`delete`],enter:{strikethrough:Mf},exit:{strikethrough:Nf}}}function jf(){return{unsafe:[{character:`~`,inConstruct:`phrasing`,notInConstruct:kf}],handlers:{delete:Pf}}}function Mf(e){this.enter({type:`delete`,children:[]},e)}function Nf(e){this.exit(e)}function Pf(e,t,n,r){let i=n.createTracker(r),a=n.enter(`strikethrough`),o=i.move(`~~`);return o+=n.containerPhrasing(e,{...i.current(),before:o,after:`~`}),o+=i.move(`~~`),a(),o}function Ff(){return`~`}Vf.peek=Hf;var If=[`autolink`,`destinationLiteral`,`destinationRaw`,`reference`,`titleQuote`,`titleApostrophe`],Lf={canContainEols:[`highlight`],enter:{highlight:Rf},exit:{highlight:zf}};function Rf(e){this.enter({type:`highlight`,children:[]},e)}function zf(e){this.exit(e)}var Bf={unsafe:[{character:`=`,inConstruct:`phrasing`,notInConstruct:If}],handlers:{highlight:Vf}};function Vf(e,t,n,r){let i=n.createTracker(r),a=n.enter(`highlight`),o=i.move(`==`);return o+=i.move(n.containerPhrasing(e,{before:o,after:`=`,...i.current()})),o+=i.move(`==`),a(),o}function Hf(){return`=`}function Uf(e,t){let n=String(e);if(typeof t!=`string`)throw TypeError(`Expected character`);let r=0,i=n.indexOf(t);for(;i!==-1;)r++,i=n.indexOf(t,i+t.length);return r}var Wf=`AElig.AMP.Aacute.Acirc.Agrave.Aring.Atilde.Auml.COPY.Ccedil.ETH.Eacute.Ecirc.Egrave.Euml.GT.Iacute.Icirc.Igrave.Iuml.LT.Ntilde.Oacute.Ocirc.Ograve.Oslash.Otilde.Ouml.QUOT.REG.THORN.Uacute.Ucirc.Ugrave.Uuml.Yacute.aacute.acirc.acute.aelig.agrave.amp.aring.atilde.auml.brvbar.ccedil.cedil.cent.copy.curren.deg.divide.eacute.ecirc.egrave.eth.euml.frac12.frac14.frac34.gt.iacute.icirc.iexcl.igrave.iquest.iuml.laquo.lt.macr.micro.middot.nbsp.not.ntilde.oacute.ocirc.ograve.ordf.ordm.oslash.otilde.ouml.para.plusmn.pound.quot.raquo.reg.sect.shy.sup1.sup2.sup3.szlig.thorn.times.uacute.ucirc.ugrave.uml.uuml.yacute.yen.yuml`.split(`.`),Gf={0:`�`,128:`€`,130:`‚`,131:`ƒ`,132:`„`,133:`…`,134:`†`,135:`‡`,136:`ˆ`,137:`‰`,138:`Š`,139:`‹`,140:`Œ`,142:`Ž`,145:`‘`,146:`’`,147:`“`,148:`”`,149:`•`,150:`–`,151:`—`,152:`˜`,153:`™`,154:`š`,155:`›`,156:`œ`,158:`ž`,159:`Ÿ`};function Kf(e){let t=typeof e==`string`?e.charCodeAt(0):e;return t>=48&&t<=57}function qf(e){let t=typeof e==`string`?e.charCodeAt(0):e;return t>=97&&t<=102||t>=65&&t<=70||t>=48&&t<=57}function Jf(e){let t=typeof e==`string`?e.charCodeAt(0):e;return t>=97&&t<=122||t>=65&&t<=90}function Yf(e){return Jf(e)||Kf(e)}var Xf=document.createElement(`i`);function Zf(e){let t=`&`+e+`;`;Xf.innerHTML=t;let n=Xf.textContent;return n.charCodeAt(n.length-1)===59&&e!==`semi`||n===t?!1:n}var Qf=[``,`Named character references must be terminated by a semicolon`,`Numeric character references must be terminated by a semicolon`,`Named character references cannot be empty`,`Numeric character references cannot be empty`,`Named character references must be known`,`Numeric character references cannot be disallowed`,`Numeric character references cannot be outside the permissible Unicode range`];function $f(e,t){let n=t||{},r=typeof n.additional==`string`?n.additional.charCodeAt(0):n.additional,i=[],a=0,o=-1,s=``,c,l;n.position&&(`start`in n.position||`indent`in n.position?(l=n.position.indent,c=n.position.start):c=n.position);let u=(c?c.line:0)||1,d=(c?c.column:0)||1,f=m(),p;for(a--;++a<=e.length;)if(p===10&&(d=(l?l[o]:0)||1),p=e.charCodeAt(a),p===38){let t=e.charCodeAt(a+1);if(t===9||t===10||t===12||t===32||t===38||t===60||Number.isNaN(t)||r&&t===r){s+=String.fromCharCode(p),d++;continue}let o=a+1,c=o,l=o,u;if(t===35){l=++c;let t=e.charCodeAt(l);t===88||t===120?(u=`hexadecimal`,l=++c):u=`decimal`}else u=`named`;let _=``,v=``,y=``,b=u===`named`?Yf:u===`decimal`?Kf:qf;for(l--;++l<=e.length;){let t=e.charCodeAt(l);if(!b(t))break;y+=String.fromCharCode(t),u===`named`&&Wf.includes(y)&&(_=y,v=Zf(y))}let x=e.charCodeAt(l)===59;if(x){l++;let e=u===`named`?Zf(y):!1;e&&(_=y,v=e)}let S=1+l-o,C=``;if(!(!x&&n.nonTerminated===!1))if(!y)u!==`named`&&h(4,S);else if(u===`named`){if(x&&!v)h(5,1);else if(_!==y&&(l=c+_.length,S=1+l-c,x=!1),!x){let t=_?1:3;if(n.attribute){let n=e.charCodeAt(l);n===61?(h(t,S),v=``):Yf(n)?v=``:h(t,S)}else h(t,S)}C=v}else{x||h(2,S);let e=Number.parseInt(y,u===`hexadecimal`?16:10);if(ep(e))h(7,S),C=`�`;else if(e in Gf)h(6,S),C=Gf[e];else{let t=``;tp(e)&&h(6,S),e>65535&&(e-=65536,t+=String.fromCharCode(e>>>10|55296),e=56320|e&1023),C=t+String.fromCharCode(e)}}if(C){g(),f=m(),a=l-1,d+=l-o+1,i.push(C);let t=m();t.offset++,n.reference&&n.reference.call(n.referenceContext||void 0,C,{start:f,end:t},e.slice(o-1,l)),f=t}else y=e.slice(o-1,l),s+=y,d+=y.length,a=l-1}else p===10&&(u++,o++,d=0),Number.isNaN(p)?g():(s+=String.fromCharCode(p),d++);return i.join(``);function m(){return{line:u,column:d,offset:a+((c?c.offset:0)||0)}}function h(e,t){let r;n.warning&&(r=m(),r.column+=t,r.offset+=t,n.warning.call(n.warningContext||void 0,Qf[e],r,e))}function g(){s&&=(i.push(s),n.text&&n.text.call(n.textContext||void 0,s,{start:f,end:m()}),``)}}function ep(e){return e>=55296&&e<=57343||e>1114111}function tp(e){return e>=1&&e<=8||e===11||e>=13&&e<=31||e>=127&&e<=159||e>=64976&&e<=65007||(e&65535)==65535||(e&65535)==65534}var np=/["&'<>`]/g,rp=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,ip=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,ap=/[|\\{}()[\]^$+*?.]/g,op=new WeakMap;function sp(e,t){if(e=e.replace(t.subset?cp(t.subset):np,r),t.subset||t.escapeOnly)return e;return e.replace(rp,n).replace(ip,r);function n(e,n,r){return t.format((e.charCodeAt(0)-55296)*1024+e.charCodeAt(1)-56320+65536,r.charCodeAt(n+2),t)}function r(e,n,r){return t.format(e.charCodeAt(0),r.charCodeAt(n+1),t)}}function cp(e){let t=op.get(e);return t||(t=lp(e),op.set(e,t)),t}function lp(e){let t=[],n=-1;for(;++n<e.length;)t.push(e[n].replace(ap,`\\$&`));return RegExp(`(?:`+t.join(`|`)+`)`,`g`)}function up(e){return`&#x`+e.toString(16).toUpperCase()+`;`}function dp(e,t){return sp(e,Object.assign({format:up},t))}function fp(e){return!e||typeof e!=`object`?``:`position`in e||`type`in e?mp(e.position):`start`in e||`end`in e?mp(e):`line`in e||`column`in e?pp(e):``}function pp(e){return hp(e&&e.line)+`:`+hp(e&&e.column)}function mp(e){return pp(e&&e.start)+`-`+pp(e&&e.end)}function hp(e){return e&&typeof e==`number`?e:1}var gp=class extends Error{constructor(e,t,n){super(),typeof t==`string`&&(n=t,t=void 0);let r=``,i={},a=!1;if(t&&(i=`line`in t&&`column`in t||`start`in t&&`end`in t?{place:t}:`type`in t?{ancestors:[t],place:t.position}:{...t}),typeof e==`string`?r=e:!i.cause&&e&&(a=!0,r=e.message,i.cause=e),!i.ruleId&&!i.source&&typeof n==`string`){let e=n.indexOf(`:`);e===-1?i.ruleId=n:(i.source=n.slice(0,e),i.ruleId=n.slice(e+1))}if(!i.place&&i.ancestors&&i.ancestors){let e=i.ancestors[i.ancestors.length-1];e&&(i.place=e.position)}let o=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=o?o.column:void 0,this.fatal=void 0,this.file=``,this.message=r,this.line=o?o.line:void 0,this.name=fp(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=a&&i.cause&&typeof i.cause.stack==`string`?i.cause.stack:``,this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}};gp.prototype.file=``,gp.prototype.name=``,gp.prototype.reason=``,gp.prototype.message=``,gp.prototype.stack=``,gp.prototype.column=void 0,gp.prototype.line=void 0,gp.prototype.ancestors=void 0,gp.prototype.cause=void 0,gp.prototype.fatal=void 0,gp.prototype.place=void 0,gp.prototype.ruleId=void 0,gp.prototype.source=void 0;var _p=` `;function vp(){return{canContainEols:[`mdxJsxTextElement`],enter:{mdxJsxFlowTag:r,mdxJsxFlowTagClosingMarker:i,mdxJsxFlowTagAttribute:d,mdxJsxFlowTagExpressionAttribute:f,mdxJsxFlowTagAttributeValueLiteral:e,mdxJsxFlowTagAttributeValueExpression:e,mdxJsxFlowTagSelfClosingMarker:o,mdxJsxTextTag:r,mdxJsxTextTagClosingMarker:i,mdxJsxTextTagAttribute:d,mdxJsxTextTagExpressionAttribute:f,mdxJsxTextTagAttributeValueLiteral:e,mdxJsxTextTagAttributeValueExpression:e,mdxJsxTextTagSelfClosingMarker:o},exit:{mdxJsxFlowTagClosingMarker:s,mdxJsxFlowTagNamePrimary:c,mdxJsxFlowTagNameMember:l,mdxJsxFlowTagNameLocal:u,mdxJsxFlowTagExpressionAttribute:p,mdxJsxFlowTagExpressionAttributeValue:n,mdxJsxFlowTagAttributeNamePrimary:m,mdxJsxFlowTagAttributeNameLocal:h,mdxJsxFlowTagAttributeValueLiteral:g,mdxJsxFlowTagAttributeValueLiteralValue:n,mdxJsxFlowTagAttributeValueExpression:_,mdxJsxFlowTagAttributeValueExpressionValue:n,mdxJsxFlowTagSelfClosingMarker:v,mdxJsxFlowTag:y,mdxJsxTextTagClosingMarker:s,mdxJsxTextTagNamePrimary:c,mdxJsxTextTagNameMember:l,mdxJsxTextTagNameLocal:u,mdxJsxTextTagExpressionAttribute:p,mdxJsxTextTagExpressionAttributeValue:n,mdxJsxTextTagAttributeNamePrimary:m,mdxJsxTextTagAttributeNameLocal:h,mdxJsxTextTagAttributeValueLiteral:g,mdxJsxTextTagAttributeValueLiteralValue:n,mdxJsxTextTagAttributeValueExpression:_,mdxJsxTextTagAttributeValueExpressionValue:n,mdxJsxTextTagSelfClosingMarker:v,mdxJsxTextTag:y}};function e(){this.buffer()}function t(e){return{line:e.line,column:e.column,offset:e.offset}}function n(e){this.config.enter.data.call(this,e),this.config.exit.data.call(this,e)}function r(e){let t={name:void 0,attributes:[],close:!1,selfClosing:!1,start:e.start,end:e.end};this.data.mdxJsxTagStack||(this.data.mdxJsxTagStack=[]),this.data.mdxJsxTag=t,this.buffer()}function i(e){if(this.data.mdxJsxTagStack.length===0)throw new gp("Unexpected closing slash `/` in tag, expected an open tag first",{start:e.start,end:e.end},`mdast-util-mdx-jsx:unexpected-closing-slash`)}function a(e){if(this.data.mdxJsxTag.close)throw new gp(`Unexpected attribute in closing tag, expected the end of the tag`,{start:e.start,end:e.end},`mdast-util-mdx-jsx:unexpected-attribute`)}function o(e){if(this.data.mdxJsxTag.close)throw new gp("Unexpected self-closing slash `/` in closing tag, expected the end of the tag",{start:e.start,end:e.end},`mdast-util-mdx-jsx:unexpected-self-closing-slash`)}function s(){let e=this.data.mdxJsxTag;e.close=!0}function c(e){let t=this.data.mdxJsxTag;t.name=this.sliceSerialize(e)}function l(e){let t=this.data.mdxJsxTag;t.name+=`.`+this.sliceSerialize(e)}function u(e){let t=this.data.mdxJsxTag;t.name+=`:`+this.sliceSerialize(e)}function d(e){let n=this.data.mdxJsxTag;a.call(this,e),n.attributes.push({type:`mdxJsxAttribute`,name:``,value:null,position:{start:t(e.start),end:void 0}})}function f(e){let n=this.data.mdxJsxTag;a.call(this,e),n.attributes.push({type:`mdxJsxExpressionAttribute`,value:``,position:{start:t(e.start),end:void 0}}),this.buffer()}function p(e){let n=this.data.mdxJsxTag,r=n.attributes[n.attributes.length-1];r.type;let i=e.estree;r.value=this.resume(),r.position,r.position.end=t(e.end),i&&(r.data={estree:i})}function m(e){let n=this.data.mdxJsxTag,r=n.attributes[n.attributes.length-1];r.type,r.name=this.sliceSerialize(e),r.position,r.position.end=t(e.end)}function h(e){let n=this.data.mdxJsxTag,r=n.attributes[n.attributes.length-1];r.type,r.name+=`:`+this.sliceSerialize(e),r.position,r.position.end=t(e.end)}function g(e){let n=this.data.mdxJsxTag,r=n.attributes[n.attributes.length-1];r.value=$f(this.resume(),{nonTerminated:!1}),r.position,r.position.end=t(e.end)}function _(e){let n=this.data.mdxJsxTag,r=n.attributes[n.attributes.length-1];r.type;let i={type:`mdxJsxAttributeValueExpression`,value:this.resume()},a=e.estree;a&&(i.data={estree:a}),r.value=i,r.position,r.position.end=t(e.end)}function v(){let e=this.data.mdxJsxTag;e.selfClosing=!0}function y(e){let t=this.data.mdxJsxTag,n=this.data.mdxJsxTagStack,r=n[n.length-1];if(t.close&&r.name!==t.name)throw new gp("Unexpected closing tag `"+S(t)+"`, expected corresponding closing tag for `"+S(r)+"` ("+fp(r)+`)`,{start:e.start,end:e.end},`mdast-util-mdx-jsx:end-tag-mismatch`);this.resume(),t.close?n.pop():this.enter({type:e.type===`mdxJsxTextTag`?`mdxJsxTextElement`:`mdxJsxFlowElement`,name:t.name||null,attributes:t.attributes,children:[]},e,b),t.selfClosing||t.close?this.exit(e,x):n.push(t)}function b(e,t){let n=this.data.mdxJsxTagStack,r=n[n.length-1],i=e?" before the end of `"+e.type+"`":``,a=e?{start:e.start,end:e.end}:void 0;throw new gp("Expected a closing tag for `"+S(r)+"` ("+fp({start:t.start,end:t.end})+`)`+i,a,`mdast-util-mdx-jsx:end-tag-mismatch`)}function x(e,t){let n=this.data.mdxJsxTag;throw new gp("Expected the closing tag `"+S(n)+"` either after the end of `"+t.type+"` ("+fp(t.end)+") or another opening tag after the start of `"+t.type+"` ("+fp(t.start)+`)`,{start:e.start,end:e.end},`mdast-util-mdx-jsx:end-tag-mismatch`)}function S(e){return`<`+(e.close?`/`:``)+(e.name||``)+`>`}}function yp(e){let t=e||{},n=t.quote||`"`,r=t.quoteSmart||!1,i=t.tightSelfClosing||!1,a=t.printWidth||1/0,o=n===`"`?`'`:`"`;if(n!==`"`&&n!==`'`)throw Error("Cannot serialize attribute values with `"+n+"` for `options.quote`, expected `\"`, or `'`");return s.peek=Cp,{handlers:{mdxJsxFlowElement:s,mdxJsxTextElement:s},unsafe:[{character:`<`,inConstruct:[`phrasing`]},{atBreak:!0,character:`<`}],fences:!0,resourceLink:!0};function s(e,t,s,c){let l=e.type===`mdxJsxFlowElement`,u=e.name?!e.children||e.children.length===0:!1,d=Sp(xp(s)),f=s.createTracker(c),p=s.createTracker(c),m=[],h=(l?d:``)+`<`+(e.name||``),g=s.enter(e.type);if(f.move(h),p.move(h),e.attributes&&e.attributes.length>0){if(!e.name)throw Error(`Cannot serialize fragment w/ attributes`);let t=-1;for(;++t<e.attributes.length;){let i=e.attributes[t],a;if(i.type===`mdxJsxExpressionAttribute`)a=`{`+(i.value||``)+`}`;else{if(!i.name)throw Error(`Cannot serialize attribute w/o name`);let e=i.value,t=i.name,s=``;if(e!=null)if(typeof e==`object`)s=`{`+(e.value||``)+`}`;else{let t=r&&Uf(e,n)>Uf(e,o)?o:n;s=t+dp(e,{subset:[t]})+t}a=t+(s?`=`:``)+s}m.push(a)}}let _=!1,v=m.join(` `);l&&(/\r?\n|\r/.test(v)||f.current().now.column+v.length+(u?i?2:3:1)>a)&&(_=!0);let y=f,b=h;if(_){y=p;let e=-1;for(;++e<m.length;)m[e]=d+_p+m[e];b+=y.move(`
|
|
24
|
+
`+m.join(`
|
|
25
|
+
`)+`
|
|
26
|
+
`+d)}else v&&(b+=y.move(` `+v));return u&&(b+=y.move((i||_?``:` `)+`/`)),b+=y.move(`>`),e.children&&e.children.length>0&&(e.type===`mdxJsxTextElement`?b+=y.move(s.containerPhrasing(e,{...y.current(),before:`>`,after:`<`})):(y.shift(2),b+=y.move(`
|
|
27
|
+
`),b+=y.move(bp(e,s,y.current())),b+=y.move(`
|
|
28
|
+
`))),u||(b+=y.move((l?d:``)+`</`+(e.name||``)+`>`)),g(),b}}function bp(e,t,n){let r=t.indexStack,i=e.children,a=t.createTracker(n),o=Sp(xp(t)),s=[],c=-1;for(r.push(-1);++c<i.length;){let n=i[c];r[r.length-1]=c;let l={before:`
|
|
29
|
+
`,after:`
|
|
30
|
+
`,...a.current()},u=t.handle(n,e,t,l),d=n.type===`mdxJsxFlowElement`?u:t.indentLines(u,function(e,t,n){return(n?``:o)+e});s.push(a.move(d)),n.type!==`list`&&(t.bulletLastUsed=void 0),c<i.length-1&&s.push(a.move(`
|
|
31
|
+
|
|
32
|
+
`))}return r.pop(),s.join(``)}function xp(e){let t=0,n=e.stack.length;for(;--n>-1;){let r=e.stack[n];if(r===`blockquote`||r===`listItem`)break;r===`mdxJsxFlowElement`&&t++}return t}function Sp(e){return _p.repeat(e)}function Cp(){return`<`}var wp=Object.prototype.hasOwnProperty;function Tp(e,t,n){for(n of e.keys())if(Ep(n,t))return n}function Ep(e,t){var n,r,i;if(e===t)return!0;if(e&&t&&(n=e.constructor)===t.constructor){if(n===Date)return e.getTime()===t.getTime();if(n===RegExp)return e.toString()===t.toString();if(n===Array){if((r=e.length)===t.length)for(;r--&&Ep(e[r],t[r]););return r===-1}if(n===Set){if(e.size!==t.size)return!1;for(r of e)if(i=r,i&&typeof i==`object`&&(i=Tp(t,i),!i)||!t.has(i))return!1;return!0}if(n===Map){if(e.size!==t.size)return!1;for(r of e)if(i=r[0],i&&typeof i==`object`&&(i=Tp(t,i),!i)||!Ep(r[1],t.get(i)))return!1;return!0}if(n===ArrayBuffer)e=new Uint8Array(e),t=new Uint8Array(t);else if(n===DataView){if((r=e.byteLength)===t.byteLength)for(;r--&&e.getInt8(r)===t.getInt8(r););return r===-1}if(ArrayBuffer.isView(e)){if((r=e.byteLength)===t.byteLength)for(;r--&&e[r]===t[r];);return r===-1}if(!n||typeof e==`object`){for(n in r=0,e)if(wp.call(e,n)&&++r&&!wp.call(t,n)||!(n in t)||!Ep(e[n],t[n]))return!1;return Object.keys(t).length===r}}return e!==e&&t!==t}var Dp,Op,kp,Ap,jp=!0;typeof process<`u`&&({FORCE_COLOR:Dp,NODE_DISABLE_COLORS:Op,NO_COLOR:kp,TERM:Ap}={},jp=process.stdout&&process.stdout.isTTY);var Mp={enabled:!Op&&kp==null&&Ap!==`dumb`&&(Dp!=null&&Dp!==`0`||jp),reset:Fp(0,0),bold:Fp(1,22),dim:Fp(2,22),italic:Fp(3,23),underline:Fp(4,24),inverse:Fp(7,27),hidden:Fp(8,28),strikethrough:Fp(9,29),black:Fp(30,39),red:Fp(31,39),green:Fp(32,39),yellow:Fp(33,39),blue:Fp(34,39),magenta:Fp(35,39),cyan:Fp(36,39),white:Fp(37,39),gray:Fp(90,39),grey:Fp(90,39),bgBlack:Fp(40,49),bgRed:Fp(41,49),bgGreen:Fp(42,49),bgYellow:Fp(43,49),bgBlue:Fp(44,49),bgMagenta:Fp(45,49),bgCyan:Fp(46,49),bgWhite:Fp(47,49)};function Np(e,t){let n=0,r,i=``,a=``;for(;n<e.length;n++)r=e[n],i+=r.open,a+=r.close,~t.indexOf(r.close)&&(t=t.replace(r.rgx,r.close+r.open));return i+t+a}function Pp(e,t){let n={has:e,keys:t};return n.reset=Mp.reset.bind(n),n.bold=Mp.bold.bind(n),n.dim=Mp.dim.bind(n),n.italic=Mp.italic.bind(n),n.underline=Mp.underline.bind(n),n.inverse=Mp.inverse.bind(n),n.hidden=Mp.hidden.bind(n),n.strikethrough=Mp.strikethrough.bind(n),n.black=Mp.black.bind(n),n.red=Mp.red.bind(n),n.green=Mp.green.bind(n),n.yellow=Mp.yellow.bind(n),n.blue=Mp.blue.bind(n),n.magenta=Mp.magenta.bind(n),n.cyan=Mp.cyan.bind(n),n.white=Mp.white.bind(n),n.gray=Mp.gray.bind(n),n.grey=Mp.grey.bind(n),n.bgBlack=Mp.bgBlack.bind(n),n.bgRed=Mp.bgRed.bind(n),n.bgGreen=Mp.bgGreen.bind(n),n.bgYellow=Mp.bgYellow.bind(n),n.bgBlue=Mp.bgBlue.bind(n),n.bgMagenta=Mp.bgMagenta.bind(n),n.bgCyan=Mp.bgCyan.bind(n),n.bgWhite=Mp.bgWhite.bind(n),n}function Fp(e,t){let n={open:`\x1b[${e}m`,close:`\x1b[${t}m`,rgx:RegExp(`\\x1b\\[${t}m`,`g`)};return function(t){return this!==void 0&&this.has!==void 0?(~this.has.indexOf(e)||(this.has.push(e),this.keys.push(n)),t===void 0?this:Mp.enabled?Np(this.keys,t+``):t+``):t===void 0?Pp([e],[n]):Mp.enabled?Np([n],t+``):t+``}}function Ip(){}Ip.prototype={diff:function(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=n.callback;typeof n==`function`&&(r=n,n={}),this.options=n;var i=this;function a(e){return r?(setTimeout(function(){r(void 0,e)},0),!0):e}e=this.castInput(e),t=this.castInput(t),e=this.removeEmpty(this.tokenize(e)),t=this.removeEmpty(this.tokenize(t));var o=t.length,s=e.length,c=1,l=o+s;n.maxEditLength&&(l=Math.min(l,n.maxEditLength));var u=n.timeout??1/0,d=Date.now()+u,f=[{oldPos:-1,lastComponent:void 0}],p=this.extractCommon(f[0],t,e,0);if(f[0].oldPos+1>=s&&p+1>=o)return a([{value:this.join(t),count:t.length}]);var m=-1/0,h=1/0;function g(){for(var n=Math.max(m,-c);n<=Math.min(h,c);n+=2){var r=void 0,l=f[n-1],u=f[n+1];l&&(f[n-1]=void 0);var d=!1;if(u){var g=u.oldPos-n;d=u&&0<=g&&g<o}var _=l&&l.oldPos+1<s;if(!d&&!_){f[n]=void 0;continue}if(r=!_||d&&l.oldPos+1<u.oldPos?i.addToPath(u,!0,void 0,0):i.addToPath(l,void 0,!0,1),p=i.extractCommon(r,t,e,n),r.oldPos+1>=s&&p+1>=o)return a(Lp(i,r.lastComponent,t,e,i.useLongestToken));f[n]=r,r.oldPos+1>=s&&(h=Math.min(h,n-1)),p+1>=o&&(m=Math.max(m,n+1))}c++}if(r)(function e(){setTimeout(function(){if(c>l||Date.now()>d)return r();g()||e()},0)})();else for(;c<=l&&Date.now()<=d;){var _=g();if(_)return _}},addToPath:function(e,t,n,r){var i=e.lastComponent;return i&&i.added===t&&i.removed===n?{oldPos:e.oldPos+r,lastComponent:{count:i.count+1,added:t,removed:n,previousComponent:i.previousComponent}}:{oldPos:e.oldPos+r,lastComponent:{count:1,added:t,removed:n,previousComponent:i}}},extractCommon:function(e,t,n,r){for(var i=t.length,a=n.length,o=e.oldPos,s=o-r,c=0;s+1<i&&o+1<a&&this.equals(t[s+1],n[o+1]);)s++,o++,c++;return c&&(e.lastComponent={count:c,previousComponent:e.lastComponent}),e.oldPos=o,s},equals:function(e,t){return this.options.comparator?this.options.comparator(e,t):e===t||this.options.ignoreCase&&e.toLowerCase()===t.toLowerCase()},removeEmpty:function(e){for(var t=[],n=0;n<e.length;n++)e[n]&&t.push(e[n]);return t},castInput:function(e){return e},tokenize:function(e){return e.split(``)},join:function(e){return e.join(``)}};function Lp(e,t,n,r,i){for(var a=[],o;t;)a.push(t),o=t.previousComponent,delete t.previousComponent,t=o;a.reverse();for(var s=0,c=a.length,l=0,u=0;s<c;s++){var d=a[s];if(!d.removed){if(!d.added&&i){var f=n.slice(l,l+d.count);f=f.map(function(e,t){var n=r[u+t];return n.length>e.length?n:e}),d.value=e.join(f)}else d.value=e.join(n.slice(l,l+d.count));l+=d.count,d.added||(u+=d.count)}else if(d.value=e.join(r.slice(u,u+d.count)),u+=d.count,s&&a[s-1].added){var p=a[s-1];a[s-1]=a[s],a[s]=p}}var m=a[c-1];return c>1&&typeof m.value==`string`&&(m.added||m.removed)&&e.equals(``,m.value)&&(a[c-2].value+=m.value,a.pop()),a}var Rp=new Ip;function zp(e,t,n){return Rp.diff(e,t,n)}var Bp=/^[A-Za-z\xC0-\u02C6\u02C8-\u02D7\u02DE-\u02FF\u1E00-\u1EFF]+$/,Vp=/\S/,Hp=new Ip;Hp.equals=function(e,t){return this.options.ignoreCase&&(e=e.toLowerCase(),t=t.toLowerCase()),e===t||this.options.ignoreWhitespace&&!Vp.test(e)&&!Vp.test(t)},Hp.tokenize=function(e){for(var t=e.split(/([^\S\r\n]+|[()[\]{}'"\r\n]|\b)/),n=0;n<t.length-1;n++)!t[n+1]&&t[n+2]&&Bp.test(t[n])&&Bp.test(t[n+2])&&(t[n]+=t[n+2],t.splice(n+1,2),n--);return t};var Up=new Ip;Up.tokenize=function(e){this.options.stripTrailingCr&&(e=e.replace(/\r\n/g,`
|
|
33
|
+
`));var t=[],n=e.split(/(\n|\r\n)/);n[n.length-1]||n.pop();for(var r=0;r<n.length;r++){var i=n[r];r%2&&!this.options.newlineIsToken?t[t.length-1]+=i:(this.options.ignoreWhitespace&&(i=i.trim()),t.push(i))}return t};function Wp(e,t,n){return Up.diff(e,t,n)}var Gp=new Ip;Gp.tokenize=function(e){return e.split(/(\S.+?[.!?])(?=\s+|$)/)};var Kp=new Ip;Kp.tokenize=function(e){return e.split(/([{}:;,]|\s+)/)};function qp(e){"@babel/helpers - typeof";return qp=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},qp(e)}var Jp=Object.prototype.toString,Yp=new Ip;Yp.useLongestToken=!0,Yp.tokenize=Up.tokenize,Yp.castInput=function(e){var t=this.options,n=t.undefinedReplacement,r=t.stringifyReplacer,i=r===void 0?function(e,t){return t===void 0?n:t}:r;return typeof e==`string`?e:JSON.stringify(Xp(e,null,null,i),i,` `)},Yp.equals=function(e,t){return Ip.prototype.equals.call(Yp,e.replace(/,([\r\n])/g,`$1`),t.replace(/,([\r\n])/g,`$1`))};function Xp(e,t,n,r,i){t||=[],n||=[],r&&(e=r(i,e));var a;for(a=0;a<t.length;a+=1)if(t[a]===e)return n[a];var o;if(Jp.call(e)===`[object Array]`){for(t.push(e),o=Array(e.length),n.push(o),a=0;a<e.length;a+=1)o[a]=Xp(e[a],t,n,r,i);return t.pop(),n.pop(),o}if(e&&e.toJSON&&(e=e.toJSON()),qp(e)===`object`&&e!==null){t.push(e),o={},n.push(o);var s=[],c;for(c in e)e.hasOwnProperty(c)&&s.push(c);for(s.sort(),a=0;a<s.length;a+=1)c=s[a],o[c]=Xp(e[c],t,n,r,c);t.pop(),n.pop()}else o=e;return o}var Zp=new Ip;Zp.tokenize=function(e){return e.slice()},Zp.join=Zp.removeEmpty=function(e){return e};function Qp(e,t,n){return Zp.diff(e,t,n)}var $p={"--":Mp.red,"··":Mp.grey,"++":Mp.green},em=Mp.dim().italic,tm=Mp.dim(`→`),nm=Mp.dim(`·`),rm=Mp.dim(`↵`),im=(e,t)=>$p[e](e+om(t))+`
|
|
34
|
+
`,am=(e,t)=>Mp.dim(`L`+String(e).padStart(t,`0`)+` `),om=e=>e.replace(/[ ]/g,nm).replace(/\t/g,tm).replace(/(\r?\n)/g,rm);function sm(e,t,n){let r=e.removed?`--`:e.added?`++`:`··`,i=e.value.replace(/\r?\n$/,``).split(`
|
|
35
|
+
`),a=0,o,s=``;for(e.added?s+=$p[r]().underline(em(`Expected:`))+`
|
|
36
|
+
`:e.removed&&(s+=$p[r]().underline(em(`Actual:`))+`
|
|
37
|
+
`);a<i.length;a++)o=i[a],o!=null&&(t&&(s+=am(t+a,n)),s+=im(r,o||`
|
|
38
|
+
`));return s}function cm(e,t){let n=Qp(e,t),r=0,i=0,a=0,o,s,c,l,u,d=im(`··`,`[`);for(;r<n.length;r++)for(c=(o=n[r]).removed?`--`:o.added?`++`:`··`,o.added?d+=$p[c]().underline(em(`Expected:`))+`
|
|
39
|
+
`:o.removed&&(d+=$p[c]().underline(em(`Actual:`))+`
|
|
40
|
+
`),i=0;i<o.value.length;i++)for(l=o.value[i]&&typeof o.value[i]==`object`,s=mm(o.value[i]).split(/\r?\n/g),a=0;a<s.length;)u=` `+s[a++]+(l?``:`,`),l&&a===s.length&&i+1<o.value.length&&(u+=`,`),d+=im(c,u);return d+im(`··`,`]`)}function lm(e,t,n=0){let r=0,i,a=``,o=Wp(e,t),s=String(t.split(/\r?\n/g).length-n).length;for(;r<o.length;r++)a+=sm(i=o[r],n,s),n&&!i.removed&&(n+=i.count);return a}function um(e,t){let n=zp(e,t),r=0,i=``,a,o=e.length,s=t.length,c=om(e),l=om(t);if(a=n[r],o!==s&&a.removed&&n[r+1]){let i=a.count-n[r+1].count;i==0||(i>0?(t=` `.repeat(i)+t,l=` `.repeat(i)+l,s+=i):i<0&&(e=` `.repeat(-i)+e,c=` `.repeat(-i)+c,o+=-i))}if(i+=dm(c,l,o,s),o===s)for(a=` `;r<o;r++)a+=e[r]===t[r]?` `:`^`;else for(a=` `;r<n.length;r++)a+=(n[r].added||n[r].removed?`^`:` `).repeat(Math.max(n[r].count,0)),r+1<n.length&&(n[r].added&&n[r+1].removed||n[r].removed&&n[r+1].added)&&(n[r+1].count-=n[r].count);return i+Mp.red(a)}function dm(e,t,n=String(e).length,r=String(t).length){let i=4,a=Math.max(n,r),o=typeof e,s=typeof t;if(o!==s){i=2;let c=i+a-n,l=i+a-r;e+=` `.repeat(c)+Mp.dim(`[${o}]`),t+=` `.repeat(l)+Mp.dim(`[${s}]`),n+=c+o.length+2,r+=l+s.length+2,a=Math.max(n,r)}return $p[`++`](`++`+t+` `.repeat(i+a-r)+em(`(Expected)`))+`
|
|
41
|
+
`+$p[`--`](`--`+e+` `.repeat(i+a-n)+em(`(Actual)`))+`
|
|
42
|
+
`}function fm(e,t){var n,r=0,i,a=Array.isArray(e),o=[],s=a?Array(e.length):{};if(a)for(r=0;r<s.length;r++)i=e[r],!i||typeof i!=`object`?s[r]=i:s[r]=fm(i,t[r]);else{for(n in t)o.push(n);for(;r<o.length;r++)Object.prototype.hasOwnProperty.call(e,n=o[r])&&(!(i=e[n])||typeof i!=`object`?s[n]=i:s[n]=fm(i,t[n]));for(n in e)s.hasOwnProperty(n)||(s[n]=e[n])}return s}function pm(){var e=new Set;return function(t,n){return n===void 0?`[__VOID__]`:typeof n==`number`&&n!==n?`[__NAN__]`:typeof n==`bigint`?n.toString():!n||typeof n!=`object`?n:e.has(n)?`[Circular]`:(e.add(n),n)}}function mm(e){return JSON.stringify(e,pm(),2).replace(/"\[__NAN__\]"/g,`NaN`).replace(/"\[__VOID__\]"/g,`undefined`)}function hm(e,t){if(Array.isArray(t)&&Array.isArray(e))return cm(e,t);if(t instanceof RegExp)return um(``+e,``+t);let n=e&&typeof e==`object`,r=t&&typeof t==`object`;return n&&r&&(e=fm(e,t)),r&&(t=mm(t)),n&&(e=mm(e)),t&&typeof t==`object`&&(e=mm(fm(e,t)),t=mm(t)),n=typeof e==`string`,r=typeof t==`string`,n&&/\r?\n/.test(e)?lm(e,``+t):r&&/\r?\n/.test(t)?lm(``+e,t):n&&r?um(e,t):dm(e,t)}function gm(e){e=e.replace(/\r?\n/g,`
|
|
43
|
+
`);let t=e.match(/^[ \t]*(?=\S)/gm),n=0,r=1/0,i=(t||[]).length;for(;n<i;n++)r=Math.min(r,t[n].length);return i&&r?e.replace(RegExp(`^[ \\t]{${r}}`,`gm`),``):e}var _m=class extends Error{constructor(e={}){super(e.message),this.name=`Assertion`,this.code=`ERR_ASSERTION`,Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor),this.details=e.details||!1,this.generated=!!e.generated,this.operator=e.operator,this.expects=e.expects,this.actual=e.actual}};function vm(e,t,n,r,i,a,o){if(e)return;let s=o||a;throw o instanceof Error?o:new _m({actual:t,expects:n,operator:r,message:s,details:i&&i(t,n),generated:!o})}function ym(e,t){vm(!!e,!1,!0,`ok`,!1,`Expected value to be truthy`,t)}function bm(e,t,n){vm(e===t,e,t,`is`,hm,`Expected values to be strictly equal:`,n)}function xm(e,t){vm(!e,!0,!1,`not`,!1,`Expected value to be falsey`,t)}xm.ok=xm,bm.not=function(e,t,n){vm(e!==t,e,t,`is.not`,!1,`Expected values not to be strictly equal`,n)},xm.equal=function(e,t,n){vm(!Ep(e,t),e,t,`not.equal`,!1,`Expected values not to be deeply equal`,n)},xm.type=function(e,t,n){let r=typeof e;vm(r!==t,r,t,`not.type`,!1,`Expected "${r}" not to be "${t}"`,n)},xm.instance=function(e,t,n){let r="`"+(t.name||t.constructor.name)+"`";vm(!(e instanceof t),e,t,`not.instance`,!1,`Expected value not to be an instance of ${r}`,n)},xm.snapshot=function(e,t,n){e=gm(e),t=gm(t),vm(e!==t,e,t,`not.snapshot`,!1,`Expected value not to match snapshot`,n)},xm.fixture=function(e,t,n){e=gm(e),t=gm(t),vm(e!==t,e,t,`not.fixture`,!1,`Expected value not to match fixture`,n)},xm.match=function(e,t,n){typeof t==`string`?vm(!e.includes(t),e,t,`not.match`,!1,`Expected value not to include "${t}" substring`,n):vm(!t.test(e),e,t,`not.match`,!1,`Expected value not to match \`${String(t)}\` pattern`,n)},xm.throws=function(e,t,n){!n&&typeof t==`string`&&(n=t,t=null);try{e()}catch(e){typeof t==`function`?vm(!t(e),!0,!1,`not.throws`,!1,`Expected function not to throw matching exception`,n):t instanceof RegExp?vm(!t.test(e.message),!0,!1,`not.throws`,!1,`Expected function not to throw exception matching \`${String(t)}\` pattern`,n):t||vm(!1,!0,!1,`not.throws`,!1,`Expected function not to throw`,n)}};var Sm={carriageReturn:-5,lineFeed:-4,carriageReturnLineFeed:-3,horizontalTab:-2,virtualSpace:-1,eof:null,nul:0,soh:1,stx:2,etx:3,eot:4,enq:5,ack:6,bel:7,bs:8,ht:9,lf:10,vt:11,ff:12,cr:13,so:14,si:15,dle:16,dc1:17,dc2:18,dc3:19,dc4:20,nak:21,syn:22,etb:23,can:24,em:25,sub:26,esc:27,fs:28,gs:29,rs:30,us:31,space:32,exclamationMark:33,quotationMark:34,numberSign:35,dollarSign:36,percentSign:37,ampersand:38,apostrophe:39,leftParenthesis:40,rightParenthesis:41,asterisk:42,plusSign:43,comma:44,dash:45,dot:46,slash:47,digit0:48,digit1:49,digit2:50,digit3:51,digit4:52,digit5:53,digit6:54,digit7:55,digit8:56,digit9:57,colon:58,semicolon:59,lessThan:60,equalsTo:61,greaterThan:62,questionMark:63,atSign:64,uppercaseA:65,uppercaseB:66,uppercaseC:67,uppercaseD:68,uppercaseE:69,uppercaseF:70,uppercaseG:71,uppercaseH:72,uppercaseI:73,uppercaseJ:74,uppercaseK:75,uppercaseL:76,uppercaseM:77,uppercaseN:78,uppercaseO:79,uppercaseP:80,uppercaseQ:81,uppercaseR:82,uppercaseS:83,uppercaseT:84,uppercaseU:85,uppercaseV:86,uppercaseW:87,uppercaseX:88,uppercaseY:89,uppercaseZ:90,leftSquareBracket:91,backslash:92,rightSquareBracket:93,caret:94,underscore:95,graveAccent:96,lowercaseA:97,lowercaseB:98,lowercaseC:99,lowercaseD:100,lowercaseE:101,lowercaseF:102,lowercaseG:103,lowercaseH:104,lowercaseI:105,lowercaseJ:106,lowercaseK:107,lowercaseL:108,lowercaseM:109,lowercaseN:110,lowercaseO:111,lowercaseP:112,lowercaseQ:113,lowercaseR:114,lowercaseS:115,lowercaseT:116,lowercaseU:117,lowercaseV:118,lowercaseW:119,lowercaseX:120,lowercaseY:121,lowercaseZ:122,leftCurlyBrace:123,verticalBar:124,rightCurlyBrace:125,tilde:126,del:127,byteOrderMarker:65279,replacementCharacter:65533},Cm={attentionSideAfter:2,attentionSideBefore:1,atxHeadingOpeningFenceSizeMax:6,autolinkDomainSizeMax:63,autolinkSchemeSizeMax:32,cdataOpeningString:`CDATA[`,characterGroupPunctuation:2,characterGroupWhitespace:1,characterReferenceDecimalSizeMax:7,characterReferenceHexadecimalSizeMax:6,characterReferenceNamedSizeMax:31,codeFencedSequenceSizeMin:3,contentTypeContent:`content`,contentTypeDocument:`document`,contentTypeFlow:`flow`,contentTypeString:`string`,contentTypeText:`text`,hardBreakPrefixSizeMin:2,htmlBasic:6,htmlCdata:5,htmlComment:2,htmlComplete:7,htmlDeclaration:4,htmlInstruction:3,htmlRawSizeMax:8,htmlRaw:1,linkResourceDestinationBalanceMax:32,linkReferenceSizeMax:999,listItemValueSizeMax:10,numericBaseDecimal:10,numericBaseHexadecimal:16,tabSize:4,thematicBreakMarkerCountMin:3,v8MaxSafeChunkSize:1e4},wm={data:`data`,whitespace:`whitespace`,lineEnding:`lineEnding`,lineEndingBlank:`lineEndingBlank`,linePrefix:`linePrefix`,lineSuffix:`lineSuffix`,atxHeading:`atxHeading`,atxHeadingSequence:`atxHeadingSequence`,atxHeadingText:`atxHeadingText`,autolink:`autolink`,autolinkEmail:`autolinkEmail`,autolinkMarker:`autolinkMarker`,autolinkProtocol:`autolinkProtocol`,characterEscape:`characterEscape`,characterEscapeValue:`characterEscapeValue`,characterReference:`characterReference`,characterReferenceMarker:`characterReferenceMarker`,characterReferenceMarkerNumeric:`characterReferenceMarkerNumeric`,characterReferenceMarkerHexadecimal:`characterReferenceMarkerHexadecimal`,characterReferenceValue:`characterReferenceValue`,codeFenced:`codeFenced`,codeFencedFence:`codeFencedFence`,codeFencedFenceSequence:`codeFencedFenceSequence`,codeFencedFenceInfo:`codeFencedFenceInfo`,codeFencedFenceMeta:`codeFencedFenceMeta`,codeFlowValue:`codeFlowValue`,codeIndented:`codeIndented`,codeText:`codeText`,codeTextData:`codeTextData`,codeTextPadding:`codeTextPadding`,codeTextSequence:`codeTextSequence`,content:`content`,definition:`definition`,definitionDestination:`definitionDestination`,definitionDestinationLiteral:`definitionDestinationLiteral`,definitionDestinationLiteralMarker:`definitionDestinationLiteralMarker`,definitionDestinationRaw:`definitionDestinationRaw`,definitionDestinationString:`definitionDestinationString`,definitionLabel:`definitionLabel`,definitionLabelMarker:`definitionLabelMarker`,definitionLabelString:`definitionLabelString`,definitionMarker:`definitionMarker`,definitionTitle:`definitionTitle`,definitionTitleMarker:`definitionTitleMarker`,definitionTitleString:`definitionTitleString`,emphasis:`emphasis`,emphasisSequence:`emphasisSequence`,emphasisText:`emphasisText`,escapeMarker:`escapeMarker`,hardBreakEscape:`hardBreakEscape`,hardBreakTrailing:`hardBreakTrailing`,htmlFlow:`htmlFlow`,htmlFlowData:`htmlFlowData`,htmlText:`htmlText`,htmlTextData:`htmlTextData`,image:`image`,label:`label`,labelText:`labelText`,labelLink:`labelLink`,labelImage:`labelImage`,labelMarker:`labelMarker`,labelImageMarker:`labelImageMarker`,labelEnd:`labelEnd`,link:`link`,paragraph:`paragraph`,reference:`reference`,referenceMarker:`referenceMarker`,referenceString:`referenceString`,resource:`resource`,resourceDestination:`resourceDestination`,resourceDestinationLiteral:`resourceDestinationLiteral`,resourceDestinationLiteralMarker:`resourceDestinationLiteralMarker`,resourceDestinationRaw:`resourceDestinationRaw`,resourceDestinationString:`resourceDestinationString`,resourceMarker:`resourceMarker`,resourceTitle:`resourceTitle`,resourceTitleMarker:`resourceTitleMarker`,resourceTitleString:`resourceTitleString`,setextHeading:`setextHeading`,setextHeadingText:`setextHeadingText`,setextHeadingLine:`setextHeadingLine`,setextHeadingLineSequence:`setextHeadingLineSequence`,strong:`strong`,strongSequence:`strongSequence`,strongText:`strongText`,thematicBreak:`thematicBreak`,thematicBreakSequence:`thematicBreakSequence`,blockQuote:`blockQuote`,blockQuotePrefix:`blockQuotePrefix`,blockQuoteMarker:`blockQuoteMarker`,blockQuotePrefixWhitespace:`blockQuotePrefixWhitespace`,listOrdered:`listOrdered`,listUnordered:`listUnordered`,listItemIndent:`listItemIndent`,listItemMarker:`listItemMarker`,listItemPrefix:`listItemPrefix`,listItemPrefixWhitespace:`listItemPrefixWhitespace`,listItemValue:`listItemValue`,chunkDocument:`chunkDocument`,chunkContent:`chunkContent`,chunkFlow:`chunkFlow`,chunkText:`chunkText`,chunkString:`chunkString`},Tm=`highlightSequenceTemporary`,Em=`highlightSequence`,Dm=`highlight`,Om=`highlightText`;function km(){let e={name:`highlight`,tokenize:n,resolveAll:t};return{text:{[Sm.equalsTo]:e},insideSpan:{null:[e]},attentionMarkers:{null:[Sm.equalsTo]}};function t(e,t){let n=-1;for(;++n<e.length;)if(e[n][0]===`enter`&&e[n][1].type===Tm&&e[n][1]._close){let r=n;for(;r--;)if(e[r][0]===`exit`&&e[r][1].type===Tm&&e[r][1]._open&&e[n][1].end.offset-e[n][1].start.offset===e[r][1].end.offset-e[r][1].start.offset){e[n][1].type=Em,e[r][1].type=Em;let i={type:Dm,start:Object.assign({},e[r][1].start),end:Object.assign({},e[n][1].end)},a={type:Om,start:Object.assign({},e[r][1].end),end:Object.assign({},e[n][1].start)},o=[[`enter`,i,t],[`enter`,e[r][1],t],[`exit`,e[r][1],t],[`enter`,a,t]],s=t.parser.constructs.insideSpan.null;s&&ff(o,o.length,0,Df(s,e.slice(r+1,n),t)),ff(o,o.length,0,[[`exit`,a,t],[`enter`,e[n][1],t],[`exit`,e[n][1],t],[`exit`,i,t]]),ff(e,r-1,n-r+3,o),n=r+o.length-2;break}}for(n=-1;++n<e.length;)e[n][1].type===Tm&&(e[n][1].type=wm.data);return e}function n(e,t,n){let r=this.previous,i=this.events,a=0;return o;function o(t){return ym(t===Sm.equalsTo,"expected `=`"),r===Sm.equalsTo&&i[i.length-1][1].type!==wm.characterEscape?n(t):(e.enter(Tm),s(t))}function s(i){let o=Ef(r);if(i===Sm.equalsTo)return a>1?n(i):(e.consume(i),a++,s);if(a<2)return n(i);let c=e.exit(Tm),l=Ef(i);return c._open=!l||l===Cm.attentionSideAfter&&!!o,c._close=!o||o===Cm.attentionSideAfter&&!!l,t(i)}}}var Am=/[$_\p{ID_Start}]/u,jm=/[$_\u{200C}\u{200D}\p{ID_Continue}]/u,Mm=/[-$_\u{200C}\u{200D}\p{ID_Continue}]/u,Nm={};function Pm(e){return e?Am.test(String.fromCodePoint(e)):!1}function Fm(e,t){let n=(t||Nm).jsx?Mm:jm;return e?n.test(String.fromCodePoint(e)):!1}function Im(e,t,n,r){let i=r?r-1:1/0,a=0;return o;function o(r){return Sf(r)?(e.enter(n),s(r)):t(r)}function s(r){return Sf(r)&&a++<i?(e.consume(r),s):(e.exit(n),t(r))}}function Lm(e){return e}var Rm={}.hasOwnProperty,zm=Symbol(`continue`),Bm=Symbol(`exit`),Vm=Symbol(`skip`);function Hm(e,t){let n,r;typeof t==`function`?n=t:t&&typeof t==`object`&&(t.enter&&(n=t.enter),t.leave&&(r=t.leave)),i(e,void 0,void 0,[])();function i(e,t,a,o){return Wm(e)&&(s.displayName=`node (`+Lm(e.type)+`)`),s;function s(){let s=n?Um(n(e,t,a,o)):[];if(s[0]===Bm)return s;if(s[0]!==Vm){let t;for(t in e)if(Rm.call(e,t)&&e[t]&&typeof e[t]==`object`&&t!==`data`&&t!==`position`){let n=o.concat(e),r=e[t];if(Array.isArray(r)){let e=r,a=0;for(;a>-1&&a<e.length;){let r=e[a];if(Wm(r)){let e=i(r,t,a,n)();if(e[0]===Bm)return e;a=typeof e[1]==`number`?e[1]:a+1}else a++}}else if(Wm(r)){let e=i(r,t,void 0,n)();if(e[0]===Bm)return e}}}return r?Um(r(e,t,a,o)):s}}}function Um(e){return Array.isArray(e)?e:typeof e==`number`?[zm,e]:[e]}function Wm(e){return!!(e&&typeof e==`object`&&`type`in e&&typeof e.type==`string`&&e.type.length>0)}function Gm(e,t){let n=t.prefix||``,r=t.suffix||``,i=Object.assign({},t.acornOptions),a=[],o=[],s=i.onComment,c=i.onToken,l=!1,u,d,f=Object.assign({},i,{onComment:a,preserveParens:!0});c&&(f.onToken=o);let p=qm(e,t.tokenTypes),m=p.value,h=n+m+r,g=t.expression&&Km(m);if(g&&!t.allowEmpty)throw new gp(`Unexpected empty expression`,{place:v(0),ruleId:`unexpected-empty-expression`,source:`micromark-extension-mdx-expression`});try{u=t.expression&&!g?t.acorn.parseExpressionAt(h,0,f):t.acorn.parse(h,f)}catch(e){let t=e,r=v(t.pos);t.message=String(t.message).replace(/ \(\d+:\d+\)$/,``),t.pos=r.offset,t.loc={line:r.line,column:r.column-1},d=t,l=t.raisedAt>=n.length+m.length||t.message===`Unterminated comment`}if(u&&t.expression&&!g)if(Km(h.slice(u.end,h.length-r.length)))u={type:`Program`,start:0,end:n.length+m.length,body:[{type:`ExpressionStatement`,expression:u,start:0,end:n.length+m.length}],sourceType:`module`,comments:[]};else{let e=v(u.end),t=Error(`Unexpected content after expression`);t.pos=e.offset,t.loc={line:e.line,column:e.column-1},d=t,u=void 0}if(u){if(u.comments=a,Hm(u,function(e,t,n,r){let i=r[r.length-1],a=t;e.type===`ParenthesizedExpression`&&i&&a&&(typeof n==`number`&&(i=i[a],a=n),i[a]=e.expression),_(e)}),Array.isArray(s))s.push(...a);else if(typeof s==`function`)for(let e of a)s(e.type===`Block`,e.value,e.start,e.end,e.loc.start,e.loc.end);for(let e of o)e.end<=n.length||e.start-n.length>=m.length||(_(e),Array.isArray(c)?c.push(e):c(e))}return{estree:u,error:d,swallow:l};function _(e){let t=v(e.start),n=v(e.end);e.start=t.offset,e.end=n.offset,e.loc={start:{line:t.line,column:t.column-1,offset:t.offset},end:{line:n.line,column:n.column-1,offset:n.offset}},e.range=[e.start,e.end]}function v(e){let r=e-n.length;r<0?r=0:r>m.length&&(r=m.length);let i=Jm(p.stops,r);return i||={line:t.start.line,column:t.start.column,offset:t.start.offset},i}}function Km(e){return/^\s*$/.test(e.replace(/\/\*[\s\S]*?\*\//g,``).replace(/\/\/[^\r\n]*(\r\n|\n|\r)/g,``))}function qm(e,t){let n={value:``,stops:[]},r=-1;for(;++r<e.length;){let i=e[r];if(i[0]===`enter`){let e=i[1].type;if(e===`lineEnding`||t.includes(e)){let e=i[2].sliceStream(i[1]);for(;e.length>0&&e[0]===-1;)e.shift();let t=Ym(e);n.stops.push([n.value.length,i[1].start]),n.value+=t,n.stops.push([n.value.length,i[1].end])}}}return n}function Jm(e,t){let n=0;for(;n<e.length&&e[n][0]<=t;)n+=1;if(n===0)return;let[r,i]=e[n-1],a=t-r;return{line:i.line,column:i.column+a,offset:i.offset+a}}function Ym(e){let t=-1,n=[],r;for(;++t<e.length;){let i=e[t],a;if(typeof i==`string`)a=i;else switch(i){case-5:a=`\r`;break;case-4:a=`
|
|
44
|
+
`;break;case-3:a=`\r
|
|
45
|
+
`;break;case-2:a=` `;break;case-1:if(r)continue;a=` `;break;default:a=String.fromCharCode(i)}r=i===-2,n.push(a)}return n.join(``)}function Xm(e){let t=e||{},n=t.loc||{},r=t.range||[void 0,void 0],i=Zm(n.start,r[0]||t.start),a=Zm(n.end,r[1]||t.end);if(i&&a)return{start:i,end:a}}function Zm(e,t){if(e&&typeof e==`object`){let n=`line`in e?Qm(e.line):void 0,r=`column`in e?Qm(e.column):void 0;if(n&&r!==void 0)return{line:n,column:r+1,offset:Qm(t)}}}function Qm(e){return typeof e==`number`&&e>-1?e:void 0}var $m=2,eh=`https://github.com/micromark/micromark-extension-mdx-expression/tree/main/packages/micromark-extension-mdx-expression`,th=`#unexpected-end-of-file-in-expression-expected-a-corresponding-closing-brace-for-`,nh=`#unexpected-lazy-line-in-expression-in-container-expected-line-to-be-prefixed`,rh=`#unexpected-type-in-code-expected-an-object-spread-spread`,ih=`#unexpected-extra-content-in-spread-only-a-single-spread-is-supported`,ah=`#could-not-parse-expression-with-acorn`;function oh(e,t,n,r,i,a,o,s,c,l,u){let d=this,f=this.events.length+3,p=0,m,h;return g;function g(t){return e.enter(n),e.enter(r),e.consume(t),e.exit(r),m=d.now(),_}function _(u){if(u===null){if(h)throw h;let e=new gp("Unexpected end of file in expression, expected a corresponding closing brace for `{`",{place:d.now(),ruleId:`unexpected-eof`,source:`micromark-extension-mdx-expression`});throw e.url=eh+th,e}if(q(u))return e.enter(`lineEnding`),e.consume(u),e.exit(`lineEnding`),y;if(u===125&&p===0){let p=a?sh.call(d,a,o,i,f,m,l||!1,c||!1):{type:`ok`,estree:void 0};if(p.type===`ok`){e.enter(r),e.consume(u),e.exit(r);let i=e.exit(n);return s&&p.estree&&Object.assign(i,{estree:p.estree}),t}return h=p.message,e.enter(i),e.consume(u),v}return e.enter(i),v(u)}function v(t){return t===125&&p===0||t===null||q(t)?(e.exit(i),_(t)):(t===123&&!a?p+=1:t===125&&--p,e.consume(t),v)}function y(t){let n=d.now();if(n.line!==m.line&&!u&&d.parser.lazy[n.line]){let e=new gp("Unexpected lazy line in expression in container, expected line to be prefixed with `>` when in a block quote, whitespace when in a list, etc",{place:d.now(),ruleId:`unexpected-lazy`,source:`micromark-extension-mdx-expression`});throw e.url=eh+nh,e}return Sf(t)?Im(e,_,`linePrefix`,$m+1)(t):_(t)}}function sh(e,t,n,r,i,a,o){let s=Gm(this.events.slice(r),{acorn:e,tokenTypes:[n],acornOptions:t,start:i,expression:!0,allowEmpty:a,prefix:o?`({`:``,suffix:o?`})`:``}),c=s.estree;if(o&&c){let e=c.body[0];if(e.type!==`ExpressionStatement`||e.expression.type!==`ObjectExpression`){let t=Xm(e),n=new gp("Unexpected `"+e.type+"` in code: expected an object spread (`{...spread}`)",{place:t.start,ruleId:`non-spread`,source:`micromark-extension-mdx-expression`});throw n.url=eh+rh,n}if(e.expression.properties[1]){let t=new gp(`Unexpected extra content in spread: only a single spread is supported`,{place:Xm(e.expression.properties[1]).start,ruleId:`spread-extra`,source:`micromark-extension-mdx-expression`});throw t.url=eh+ih,t}if(e.expression.properties[0]&&e.expression.properties[0].type!==`SpreadElement`){let t=Xm(e.expression.properties[0]),n=new gp("Unexpected `"+e.expression.properties[0].type+"` in code: only spread elements are supported",{place:t.start,ruleId:`non-spread`,source:`micromark-extension-mdx-expression`});throw n.url=eh+rh,n}}if(s.error){let e=new gp(`Could not parse expression with acorn`,{cause:s.error,place:{line:s.error.loc.line,column:s.error.loc.column+1,offset:s.error.pos},ruleId:`acorn`,source:`micromark-extension-mdx-expression`});return e.url=eh+ah,{type:`nok`,message:e}}return{type:`ok`,estree:c}}var ch=`https://github.com/micromark/micromark-extension-mdx-jsx`;function lh(e,t,n,r,i,a,o,s,c,l,u,d,f,p,m,h,g,_,v,y,b,x,S,C,w,T,E,ee,D,O,k,A){let j=this,M,N;return te;function te(t){return e.enter(s),e.enter(c),e.consume(t),e.exit(c),ne}function ne(e){return xf(e)?n(e):(M=re,Te(e))}function re(t){if(t===47)return e.enter(l),e.consume(t),e.exit(l),M=ie,Te;if(t===62)return we(t);if(t!==null&&t>=0&&Pm(t))return e.enter(d),e.enter(f),e.consume(t),ae;Oe(t,`before name`,"a character that can start a name, such as a letter, `$`, or `_`"+(t===33?" (note: to create a comment in MDX, use `{/* text */}`)":``))}function ie(t){if(t===62)return we(t);if(t!==null&&t>=0&&Pm(t))return e.enter(d),e.enter(f),e.consume(t),ae;Oe(t,`before name`,"a character that can start a name, such as a letter, `$`, or `_`"+(t===42||t===47?` (note: JS comments in JSX tags are not supported in MDX)`:``))}function ae(t){if(t!==null&&t>=0&&Fm(t,{jsx:!0}))return e.consume(t),ae;if(t===46||t===47||t===58||t===62||t===123||xf(t)||wf(t))return e.exit(f),M=oe,Te(t);Oe(t,`in name`,"a name character such as letters, digits, `$`, or `_`; whitespace before attributes; or the end of the tag"+(t===64?" (note: to create a link in MDX, use `[text](url)`)":``))}function oe(t){if(t===46)return e.enter(p),e.consume(t),e.exit(p),M=P,Te;if(t===58)return e.enter(h),e.consume(t),e.exit(h),M=le,Te;if(t===47||t===62||t===123||t!==null&&t>=0&&Pm(t))return e.exit(d),fe(t);Oe(t,`after name`,"a character that can start an attribute name, such as a letter, `$`, or `_`; whitespace before attributes; or the end of the tag")}function P(t){if(t!==null&&t>=0&&Pm(t))return e.enter(m),e.consume(t),se;Oe(t,`before member name`,"a character that can start an attribute name, such as a letter, `$`, or `_`; whitespace before attributes; or the end of the tag")}function se(t){if(t!==null&&t>=0&&Fm(t,{jsx:!0}))return e.consume(t),se;if(t===46||t===47||t===62||t===123||xf(t)||wf(t))return e.exit(m),M=ce,Te(t);Oe(t,`in member name`,"a name character such as letters, digits, `$`, or `_`; whitespace before attributes; or the end of the tag"+(t===64?" (note: to create a link in MDX, use `[text](url)`)":``))}function ce(t){if(t===46)return e.enter(p),e.consume(t),e.exit(p),M=P,Te;if(t===47||t===62||t===123||t!==null&&t>=0&&Pm(t))return e.exit(d),fe(t);Oe(t,`after member name`,"a character that can start an attribute name, such as a letter, `$`, or `_`; whitespace before attributes; or the end of the tag")}function le(t){if(t!==null&&t>=0&&Pm(t))return e.enter(g),e.consume(t),ue;Oe(t,`before local name`,"a character that can start a name, such as a letter, `$`, or `_`"+(t===43||t!==null&&t>46&&t<58?" (note: to create a link in MDX, use `[text](url)`)":``))}function ue(t){if(t!==null&&t>=0&&Fm(t,{jsx:!0}))return e.consume(t),ue;if(t===47||t===62||t===123||xf(t)||wf(t))return e.exit(g),M=de,Te(t);Oe(t,`in local name`,"a name character such as letters, digits, `$`, or `_`; whitespace before attributes; or the end of the tag")}function de(t){if(t===47||t===62||t===123||t!==null&&t>=0&&Pm(t))return e.exit(d),fe(t);Oe(t,`after local name`,"a character that can start an attribute name, such as a letter, `$`, or `_`; whitespace before attributes; or the end of the tag")}function fe(t){if(t===47)return e.enter(u),e.consume(t),e.exit(u),M=Ce,Te;if(t===62)return we(t);if(t===123)return oh.call(j,e,pe,_,v,y,r,i,a,!0,!1,o)(t);if(t!==null&&t>=0&&Pm(t))return e.enter(b),e.enter(x),e.enter(S),e.consume(t),me;Oe(t,`before attribute name`,"a character that can start an attribute name, such as a letter, `$`, or `_`; whitespace before attributes; or the end of the tag")}function pe(e){return M=fe,Te(e)}function me(t){if(t!==null&&t>=0&&Fm(t,{jsx:!0}))return e.consume(t),me;if(t===47||t===58||t===61||t===62||t===123||xf(t)||wf(t))return e.exit(S),M=he,Te(t);Oe(t,`in attribute name`,"an attribute name character such as letters, digits, `$`, or `_`; `=` to initialize a value; whitespace before attributes; or the end of the tag")}function he(t){if(t===58)return e.enter(C),e.consume(t),e.exit(C),M=ge,Te;if(t===61)return e.exit(x),e.enter(T),e.consume(t),e.exit(T),M=ye,Te;if(t===47||t===62||t===123||xf(t)||wf(t)||t!==null&&t>=0&&Pm(t))return e.exit(x),e.exit(b),M=fe,Te(t);Oe(t,`after attribute name`,"a character that can start an attribute name, such as a letter, `$`, or `_`; `=` to initialize a value; or the end of the tag")}function ge(t){if(t!==null&&t>=0&&Pm(t))return e.enter(w),e.consume(t),_e;Oe(t,`before local attribute name`,"a character that can start an attribute name, such as a letter, `$`, or `_`; `=` to initialize a value; or the end of the tag")}function _e(t){if(t!==null&&t>=0&&Fm(t,{jsx:!0}))return e.consume(t),_e;if(t===47||t===61||t===62||t===123||xf(t)||wf(t))return e.exit(w),e.exit(x),M=ve,Te(t);Oe(t,`in local attribute name`,"an attribute name character such as letters, digits, `$`, or `_`; `=` to initialize a value; whitespace before attributes; or the end of the tag")}function ve(t){if(t===61)return e.enter(T),e.consume(t),e.exit(T),M=ye,Te;if(t===47||t===62||t===123||t!==null&&t>=0&&Pm(t))return e.exit(b),fe(t);Oe(t,`after local attribute name`,"a character that can start an attribute name, such as a letter, `$`, or `_`; `=` to initialize a value; or the end of the tag")}function ye(t){if(t===34||t===39)return e.enter(E),e.enter(ee),e.consume(t),e.exit(ee),N=t,xe;if(t===123)return oh.call(j,e,be,O,k,A,r,i,a,!1,!1,o)(t);Oe(t,`before attribute value`,"a character that can start an attribute value, such as `\"`, `'`, or `{`"+(t===60?" (note: to use an element or fragment as a prop value in MDX, use `{<element />}`)":``))}function be(t){return e.exit(b),M=fe,Te(t)}function xe(t){return t===null&&Oe(t,`in attribute value`,"a corresponding closing quote `"+String.fromCodePoint(N)+"`"),t===N?(e.enter(ee),e.consume(t),e.exit(ee),e.exit(E),e.exit(b),N=void 0,M=fe,Te):q(t)?(M=xe,Te(t)):(e.enter(D),Se(t))}function Se(t){return t===null||t===N||q(t)?(e.exit(D),xe(t)):(e.consume(t),Se)}function Ce(e){if(e===62)return we(e);Oe(e,`after self-closing slash`,"`>` to end the tag"+(e===42||e===47?` (note: JS comments in JSX tags are not supported in MDX)`:``))}function we(n){return e.enter(c),e.consume(n),e.exit(c),e.exit(s),t}function Te(t){return q(t)?(e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),De):Sf(t)||wf(t)?(e.enter(`esWhitespace`),Ee(t)):M(t)}function Ee(t){return q(t)?(e.exit(`esWhitespace`),Te(t)):Sf(t)||wf(t)?(e.consume(t),Ee):(e.exit(`esWhitespace`),M(t))}function De(e){if(!o&&j.parser.lazy[j.now().line]){let e=new gp("Unexpected lazy line in container, expected line to be prefixed with `>` when in a block quote, whitespace when in a list, etc",j.now(),`micromark-extension-mdx-jsx:unexpected-lazy`);throw e.url=ch+`#unexpected-lazy-line-in-container-expected-line-to-be`,e}return Te(e)}function Oe(e,t,n){let r=new gp(`Unexpected `+(e===null?`end of file`:"character `"+(e===96?"` ` `":String.fromCodePoint(e))+"` ("+uh(e)+`)`)+` `+t+`, expected `+n,j.now(),`micromark-extension-mdx-jsx:unexpected-`+(e===null?`eof`:`character`));throw r.url=ch+(e===null?`#unexpected-end-of-file-at-expected-expect`:`#unexpected-character-at-expected-expect`),r}}function uh(e){return`U+`+e.toString(16).toUpperCase().padStart(4,`0`)}function dh(e,t){return{name:`mdxJsxTextTag`,tokenize:n};function n(n,r,i){return lh.call(this,n,r,i,e,t.acornOptions,t.addResult,!0,`mdxJsxTextTag`,`mdxJsxTextTagMarker`,`mdxJsxTextTagClosingMarker`,`mdxJsxTextTagSelfClosingMarker`,`mdxJsxTextTagName`,`mdxJsxTextTagNamePrimary`,`mdxJsxTextTagNameMemberMarker`,`mdxJsxTextTagNameMember`,`mdxJsxTextTagNamePrefixMarker`,`mdxJsxTextTagNameLocal`,`mdxJsxTextTagExpressionAttribute`,`mdxJsxTextTagExpressionAttributeMarker`,`mdxJsxTextTagExpressionAttributeValue`,`mdxJsxTextTagAttribute`,`mdxJsxTextTagAttributeName`,`mdxJsxTextTagAttributeNamePrimary`,`mdxJsxTextTagAttributeNamePrefixMarker`,`mdxJsxTextTagAttributeNameLocal`,`mdxJsxTextTagAttributeInitializerMarker`,`mdxJsxTextTagAttributeValueLiteral`,`mdxJsxTextTagAttributeValueLiteralMarker`,`mdxJsxTextTagAttributeValueLiteralValue`,`mdxJsxTextTagAttributeValueExpression`,`mdxJsxTextTagAttributeValueExpressionMarker`,`mdxJsxTextTagAttributeValueExpressionValue`)}}function fh(e,t){return{concrete:!0,name:`mdxJsxFlowTag`,tokenize:n};function n(n,r,i){let a=this;return o;function o(e){return s(e)}function s(r){return lh.call(a,n,c,i,e,t.acornOptions,t.addResult,!1,`mdxJsxFlowTag`,`mdxJsxFlowTagMarker`,`mdxJsxFlowTagClosingMarker`,`mdxJsxFlowTagSelfClosingMarker`,`mdxJsxFlowTagName`,`mdxJsxFlowTagNamePrimary`,`mdxJsxFlowTagNameMemberMarker`,`mdxJsxFlowTagNameMember`,`mdxJsxFlowTagNamePrefixMarker`,`mdxJsxFlowTagNameLocal`,`mdxJsxFlowTagExpressionAttribute`,`mdxJsxFlowTagExpressionAttributeMarker`,`mdxJsxFlowTagExpressionAttributeValue`,`mdxJsxFlowTagAttribute`,`mdxJsxFlowTagAttributeName`,`mdxJsxFlowTagAttributeNamePrimary`,`mdxJsxFlowTagAttributeNamePrefixMarker`,`mdxJsxFlowTagAttributeNameLocal`,`mdxJsxFlowTagAttributeInitializerMarker`,`mdxJsxFlowTagAttributeValueLiteral`,`mdxJsxFlowTagAttributeValueLiteralMarker`,`mdxJsxFlowTagAttributeValueLiteralValue`,`mdxJsxFlowTagAttributeValueExpression`,`mdxJsxFlowTagAttributeValueExpressionMarker`,`mdxJsxFlowTagAttributeValueExpressionValue`)(r)}function c(e){return Sf(e)?Im(n,l,`whitespace`)(e):l(e)}function l(e){let t=a.parser.constructs.flow[123],s=Array.isArray(t)?t:t?[t]:[],c;for(let e of s)if(e.name===`mdxFlowExpression`){c=e;break}return e===60?o(e):e===123&&c?n.attempt(c,l,i)(e):e===null||q(e)?r(e):i(e)}}}function ph(e){let t=e||{},n=t.acorn,r;if(n){if(!n.parse||!n.parseExpressionAt)throw Error("Expected a proper `acorn` instance passed in as `options.acorn`");r=Object.assign({ecmaVersion:2024,sourceType:`module`},t.acornOptions,{locations:!0})}else if(t.acornOptions||t.addResult)throw Error("Expected an `acorn` instance passed in as `options.acorn`");return{flow:{60:fh(n||void 0,{acornOptions:r,addResult:t.addResult||void 0})},text:{60:dh(n||void 0,{acornOptions:r,addResult:t.addResult||void 0})}}}function mh(){return{disable:{null:[`autolink`,`codeIndented`,`htmlFlow`,`htmlText`]}}}var hh={}.hasOwnProperty;function gh(e,t){let n=t||{};function r(t,...n){let i=r.invalid,a=r.handlers;if(t&&hh.call(t,e)){let n=String(t[e]);i=hh.call(a,n)?a[n]:r.unknown}if(i)return i.call(this,t,...n)}return r.handlers=n.handlers||{},r.invalid=n.invalid,r.unknown=n.unknown,r}var _h={}.hasOwnProperty;function vh(e,t){let n=-1,r;if(t.extensions)for(;++n<t.extensions.length;)vh(e,t.extensions[n]);for(r in t)if(_h.call(t,r))switch(r){case`extensions`:break;case`unsafe`:yh(e[r],t[r]);break;case`join`:yh(e[r],t[r]);break;case`handlers`:bh(e[r],t[r]);break;default:e.options[r]=t[r]}return e}function yh(e,t){t&&e.push(...t)}function bh(e,t){t&&Object.assign(e,t)}function xh(e,t,n,r){let i=n.enter(`blockquote`),a=n.createTracker(r);a.move(`> `),a.shift(2);let o=n.indentLines(n.containerFlow(e,a.current()),Sh);return i(),o}function Sh(e,t,n){return`>`+(n?``:` `)+e}function Ch(e,t){return wh(e,t.inConstruct,!0)&&!wh(e,t.notInConstruct,!1)}function wh(e,t,n){if(typeof t==`string`&&(t=[t]),!t||t.length===0)return n;let r=-1;for(;++r<t.length;)if(e.includes(t[r]))return!0;return!1}function Th(e,t,n,r){let i=-1;for(;++i<n.unsafe.length;)if(n.unsafe[i].character===`
|
|
46
|
+
`&&Ch(n.stack,n.unsafe[i]))return/[ \t]/.test(r.before)?``:` `;return`\\
|
|
47
|
+
`}function Eh(e,t){let n=String(e),r=n.indexOf(t),i=r,a=0,o=0;if(typeof t!=`string`)throw TypeError(`Expected substring`);for(;r!==-1;)r===i?++a>o&&(o=a):a=1,i=r+t.length,r=n.indexOf(t,i);return o}function Dh(e,t){return!!(t.options.fences===!1&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}function Oh(e){let t=e.options.fence||"`";if(t!=="`"&&t!==`~`)throw Error("Cannot serialize code with `"+t+"` for `options.fence`, expected `` ` `` or `~`");return t}function kh(e,t,n,r){let i=Oh(n),a=e.value||``,o=i==="`"?`GraveAccent`:`Tilde`;if(Dh(e,n)){let e=n.enter(`codeIndented`),t=n.indentLines(a,Ah);return e(),t}let s=n.createTracker(r),c=i.repeat(Math.max(Eh(a,i)+1,3)),l=n.enter(`codeFenced`),u=s.move(c);if(e.lang){let t=n.enter(`codeFencedLang${o}`);u+=s.move(n.safe(e.lang,{before:u,after:` `,encode:["`"],...s.current()})),t()}if(e.lang&&e.meta){let t=n.enter(`codeFencedMeta${o}`);u+=s.move(` `),u+=s.move(n.safe(e.meta,{before:u,after:`
|
|
48
|
+
`,encode:["`"],...s.current()})),t()}return u+=s.move(`
|
|
49
|
+
`),a&&(u+=s.move(a+`
|
|
50
|
+
`)),u+=s.move(c),l(),u}function Ah(e,t,n){return(n?``:` `)+e}function jh(e){let t=e.options.quote||`"`;if(t!==`"`&&t!==`'`)throw Error("Cannot serialize title with `"+t+"` for `options.quote`, expected `\"`, or `'`");return t}function Mh(e,t,n,r){let i=jh(n),a=i===`"`?`Quote`:`Apostrophe`,o=n.enter(`definition`),s=n.enter(`label`),c=n.createTracker(r),l=c.move(`[`);return l+=c.move(n.safe(n.associationId(e),{before:l,after:`]`,...c.current()})),l+=c.move(`]: `),s(),!e.url||/[\0- \u007F]/.test(e.url)?(s=n.enter(`destinationLiteral`),l+=c.move(`<`),l+=c.move(n.safe(e.url,{before:l,after:`>`,...c.current()})),l+=c.move(`>`)):(s=n.enter(`destinationRaw`),l+=c.move(n.safe(e.url,{before:l,after:e.title?` `:`
|
|
51
|
+
`,...c.current()}))),s(),e.title&&(s=n.enter(`title${a}`),l+=c.move(` `+i),l+=c.move(n.safe(e.title,{before:l,after:i,...c.current()})),l+=c.move(i),s()),o(),l}function Nh(e){let t=e.options.emphasis||`*`;if(t!==`*`&&t!==`_`)throw Error("Cannot serialize emphasis with `"+t+"` for `options.emphasis`, expected `*`, or `_`");return t}function Ph(e){return`&#x`+e.toString(16).toUpperCase()+`;`}function Fh(e,t,n){let r=Ef(e),i=Ef(t);return r===void 0?i===void 0?n===`_`?{inside:!0,outside:!0}:{inside:!1,outside:!1}:i===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:r===1?i===void 0?{inside:!1,outside:!1}:i===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:i===void 0?{inside:!1,outside:!1}:i===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}Ih.peek=Lh;function Ih(e,t,n,r){let i=Nh(n),a=n.enter(`emphasis`),o=n.createTracker(r),s=o.move(i),c=o.move(n.containerPhrasing(e,{after:i,before:s,...o.current()})),l=c.charCodeAt(0),u=Fh(r.before.charCodeAt(r.before.length-1),l,i);u.inside&&(c=Ph(l)+c.slice(1));let d=c.charCodeAt(c.length-1),f=Fh(r.after.charCodeAt(0),d,i);f.inside&&(c=c.slice(0,-1)+Ph(d));let p=o.move(i);return a(),n.attentionEncodeSurroundingInfo={after:f.outside,before:u.outside},s+c+p}function Lh(e,t,n){return n.options.emphasis||`*`}var Rh=(function(e){if(e==null)return Uh;if(typeof e==`function`)return Hh(e);if(typeof e==`object`)return Array.isArray(e)?zh(e):Bh(e);if(typeof e==`string`)return Vh(e);throw Error(`Expected function, string, or object as test`)});function zh(e){let t=[],n=-1;for(;++n<e.length;)t[n]=Rh(e[n]);return Hh(r);function r(...e){let n=-1;for(;++n<t.length;)if(t[n].apply(this,e))return!0;return!1}}function Bh(e){let t=e;return Hh(n);function n(n){let r=n,i;for(i in e)if(r[i]!==t[i])return!1;return!0}}function Vh(e){return Hh(t);function t(t){return t&&t.type===e}}function Hh(e){return t;function t(t,n,r){return!!(Wh(t)&&e.call(this,t,typeof n==`number`?n:void 0,r||void 0))}}function Uh(){return!0}function Wh(e){return typeof e==`object`&&!!e&&`type`in e}function Gh(e){return e}var Kh=[];function qh(e,t,n,r){let i;typeof t==`function`&&typeof n!=`function`?(r=n,n=t):i=t;let a=Rh(i),o=r?-1:1;s(e,void 0,[])();function s(e,i,c){let l=e&&typeof e==`object`?e:{};if(typeof l.type==`string`){let t=typeof l.tagName==`string`?l.tagName:typeof l.name==`string`?l.name:void 0;Object.defineProperty(u,`name`,{value:`node (`+Gh(e.type+(t?`<`+t+`>`:``))+`)`})}return u;function u(){let l=Kh,u,d,f;if((!t||a(e,i,c[c.length-1]||void 0))&&(l=Jh(n(e,c)),l[0]===!1))return l;if(`children`in e&&e.children){let t=e;if(t.children&&l[0]!==`skip`)for(d=(r?t.children.length:-1)+o,f=c.concat(t);d>-1&&d<t.children.length;){let e=t.children[d];if(u=s(e,d,f)(),u[0]===!1)return u;d=typeof u[1]==`number`?u[1]:d+o}}return l}}}function Jh(e){return Array.isArray(e)?e:typeof e==`number`?[!0,e]:e==null?Kh:[e]}function Yh(e,t,n,r){let i,a,o;typeof t==`function`&&typeof n!=`function`?(a=void 0,o=t,i=n):(a=t,o=n,i=r),qh(e,a,s,i);function s(e,t){let n=t[t.length-1],r=n?n.children.indexOf(e):void 0;return o(e,r,n)}}var Xh={};function Zh(e,t){let n=t||Xh;return Qh(e,typeof n.includeImageAlt==`boolean`?n.includeImageAlt:!0,typeof n.includeHtml==`boolean`?n.includeHtml:!0)}function Qh(e,t,n){if(eg(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 $h(e.children,t,n)}return Array.isArray(e)?$h(e,t,n):``}function $h(e,t,n){let r=[],i=-1;for(;++i<e.length;)r[i]=Qh(e[i],t,n);return r.join(``)}function eg(e){return!!(e&&typeof e==`object`)}function tg(e,t){let n=!1;return Yh(e,function(e){if(`value`in e&&/\r?\n|\r/.test(e.value)||e.type===`break`)return n=!0,!1}),!!((!e.depth||e.depth<3)&&Zh(e)&&(t.options.setext||n))}function ng(e,t,n,r){let i=Math.max(Math.min(6,e.depth||1),1),a=n.createTracker(r);if(tg(e,n)){let t=n.enter(`headingSetext`),r=n.enter(`phrasing`),o=n.containerPhrasing(e,{...a.current(),before:`
|
|
52
|
+
`,after:`
|
|
53
|
+
`});return r(),t(),o+`
|
|
54
|
+
`+(i===1?`=`:`-`).repeat(o.length-(Math.max(o.lastIndexOf(`\r`),o.lastIndexOf(`
|
|
55
|
+
`))+1))}let o=`#`.repeat(i),s=n.enter(`headingAtx`),c=n.enter(`phrasing`);a.move(o+` `);let l=n.containerPhrasing(e,{before:`# `,after:`
|
|
56
|
+
`,...a.current()});return/^[\t ]/.test(l)&&(l=Ph(l.charCodeAt(0))+l.slice(1)),l=l?o+` `+l:o,n.options.closeAtx&&(l+=` `+o),c(),s(),l}rg.peek=ig;function rg(e){return e.value||``}function ig(){return`<`}ag.peek=og;function ag(e,t,n,r){let i=jh(n),a=i===`"`?`Quote`:`Apostrophe`,o=n.enter(`image`),s=n.enter(`label`),c=n.createTracker(r),l=c.move(`![`);return l+=c.move(n.safe(e.alt,{before:l,after:`]`,...c.current()})),l+=c.move(`](`),s(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(s=n.enter(`destinationLiteral`),l+=c.move(`<`),l+=c.move(n.safe(e.url,{before:l,after:`>`,...c.current()})),l+=c.move(`>`)):(s=n.enter(`destinationRaw`),l+=c.move(n.safe(e.url,{before:l,after:e.title?` `:`)`,...c.current()}))),s(),e.title&&(s=n.enter(`title${a}`),l+=c.move(` `+i),l+=c.move(n.safe(e.title,{before:l,after:i,...c.current()})),l+=c.move(i),s()),l+=c.move(`)`),o(),l}function og(){return`!`}sg.peek=cg;function sg(e,t,n,r){let i=e.referenceType,a=n.enter(`imageReference`),o=n.enter(`label`),s=n.createTracker(r),c=s.move(`![`),l=n.safe(e.alt,{before:c,after:`]`,...s.current()});c+=s.move(l+`][`),o();let u=n.stack;n.stack=[],o=n.enter(`reference`);let d=n.safe(n.associationId(e),{before:c,after:`]`,...s.current()});return o(),n.stack=u,a(),i===`full`||!l||l!==d?c+=s.move(d+`]`):i===`shortcut`?c=c.slice(0,-1):c+=s.move(`]`),c}function cg(){return`!`}lg.peek=ug;function lg(e,t,n){let r=e.value||``,i="`",a=-1;for(;RegExp("(^|[^`])"+i+"([^`]|$)").test(r);)i+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=` `+r+` `);++a<n.unsafe.length;){let e=n.unsafe[a],t=n.compilePattern(e),i;if(e.atBreak)for(;i=t.exec(r);){let e=i.index;r.charCodeAt(e)===10&&r.charCodeAt(e-1)===13&&e--,r=r.slice(0,e)+` `+r.slice(i.index+1)}}return i+r+i}function ug(){return"`"}function dg(e,t){let n=Zh(e);return!!(!t.options.resourceLink&&e.url&&!e.title&&e.children&&e.children.length===1&&e.children[0].type===`text`&&(n===e.url||`mailto:`+n===e.url)&&/^[a-z][a-z+.-]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))}fg.peek=pg;function fg(e,t,n,r){let i=jh(n),a=i===`"`?`Quote`:`Apostrophe`,o=n.createTracker(r),s,c;if(dg(e,n)){let t=n.stack;n.stack=[],s=n.enter(`autolink`);let r=o.move(`<`);return r+=o.move(n.containerPhrasing(e,{before:r,after:`>`,...o.current()})),r+=o.move(`>`),s(),n.stack=t,r}s=n.enter(`link`),c=n.enter(`label`);let l=o.move(`[`);return l+=o.move(n.containerPhrasing(e,{before:l,after:`](`,...o.current()})),l+=o.move(`](`),c(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(c=n.enter(`destinationLiteral`),l+=o.move(`<`),l+=o.move(n.safe(e.url,{before:l,after:`>`,...o.current()})),l+=o.move(`>`)):(c=n.enter(`destinationRaw`),l+=o.move(n.safe(e.url,{before:l,after:e.title?` `:`)`,...o.current()}))),c(),e.title&&(c=n.enter(`title${a}`),l+=o.move(` `+i),l+=o.move(n.safe(e.title,{before:l,after:i,...o.current()})),l+=o.move(i),c()),l+=o.move(`)`),s(),l}function pg(e,t,n){return dg(e,n)?`<`:`[`}mg.peek=hg;function mg(e,t,n,r){let i=e.referenceType,a=n.enter(`linkReference`),o=n.enter(`label`),s=n.createTracker(r),c=s.move(`[`),l=n.containerPhrasing(e,{before:c,after:`]`,...s.current()});c+=s.move(l+`][`),o();let u=n.stack;n.stack=[],o=n.enter(`reference`);let d=n.safe(n.associationId(e),{before:c,after:`]`,...s.current()});return o(),n.stack=u,a(),i===`full`||!l||l!==d?c+=s.move(d+`]`):i===`shortcut`?c=c.slice(0,-1):c+=s.move(`]`),c}function hg(){return`[`}function gg(e){let t=e.options.bullet||`*`;if(t!==`*`&&t!==`+`&&t!==`-`)throw Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}function _g(e){let t=gg(e),n=e.options.bulletOther;if(!n)return t===`*`?`-`:`*`;if(n!==`*`&&n!==`+`&&n!==`-`)throw Error("Cannot serialize items with `"+n+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(n===t)throw Error("Expected `bullet` (`"+t+"`) and `bulletOther` (`"+n+"`) to be different");return n}function vg(e){let t=e.options.bulletOrdered||`.`;if(t!==`.`&&t!==`)`)throw Error("Cannot serialize items with `"+t+"` for `options.bulletOrdered`, expected `.` or `)`");return t}function yg(e){let t=e.options.rule||`*`;if(t!==`*`&&t!==`-`&&t!==`_`)throw Error("Cannot serialize rules with `"+t+"` for `options.rule`, expected `*`, `-`, or `_`");return t}function bg(e,t,n,r){let i=n.enter(`list`),a=n.bulletCurrent,o=e.ordered?vg(n):gg(n),s=e.ordered?o===`.`?`)`:`.`:_g(n),c=t&&n.bulletLastUsed?o===n.bulletLastUsed:!1;if(!e.ordered){let t=e.children?e.children[0]:void 0;if((o===`*`||o===`-`)&&t&&(!t.children||!t.children[0])&&n.stack[n.stack.length-1]===`list`&&n.stack[n.stack.length-2]===`listItem`&&n.stack[n.stack.length-3]===`list`&&n.stack[n.stack.length-4]===`listItem`&&n.indexStack[n.indexStack.length-1]===0&&n.indexStack[n.indexStack.length-2]===0&&n.indexStack[n.indexStack.length-3]===0&&(c=!0),yg(n)===o&&t){let t=-1;for(;++t<e.children.length;){let n=e.children[t];if(n&&n.type===`listItem`&&n.children&&n.children[0]&&n.children[0].type===`thematicBreak`){c=!0;break}}}}c&&(o=s),n.bulletCurrent=o;let l=n.containerFlow(e,r);return n.bulletLastUsed=o,n.bulletCurrent=a,i(),l}function xg(e){let t=e.options.listItemIndent||`one`;if(t!==`tab`&&t!==`one`&&t!==`mixed`)throw Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}function Sg(e,t,n,r){let i=xg(n),a=n.bulletCurrent||gg(n);t&&t.type===`list`&&t.ordered&&(a=(typeof t.start==`number`&&t.start>-1?t.start:1)+(n.options.incrementListMarker===!1?0:t.children.indexOf(e))+a);let o=a.length+1;(i===`tab`||i===`mixed`&&(t&&t.type===`list`&&t.spread||e.spread))&&(o=Math.ceil(o/4)*4);let s=n.createTracker(r);s.move(a+` `.repeat(o-a.length)),s.shift(o);let c=n.enter(`listItem`),l=n.indentLines(n.containerFlow(e,s.current()),u);return c(),l;function u(e,t,n){return t?(n?``:` `.repeat(o))+e:(n?a:a+` `.repeat(o-a.length))+e}}function Cg(e,t,n,r){let i=n.enter(`paragraph`),a=n.enter(`phrasing`),o=n.containerPhrasing(e,r);return a(),i(),o}var wg=Rh([`break`,`delete`,`emphasis`,`footnote`,`footnoteReference`,`image`,`imageReference`,`inlineCode`,`inlineMath`,`link`,`linkReference`,`mdxJsxTextElement`,`mdxTextExpression`,`strong`,`text`,`textDirective`]);function Tg(e,t,n,r){return(e.children.some(function(e){return wg(e)})?n.containerPhrasing:n.containerFlow).call(n,e,r)}function Eg(e){let t=e.options.strong||`*`;if(t!==`*`&&t!==`_`)throw Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}Dg.peek=Og;function Dg(e,t,n,r){let i=Eg(n),a=n.enter(`strong`),o=n.createTracker(r),s=o.move(i+i),c=o.move(n.containerPhrasing(e,{after:i,before:s,...o.current()})),l=c.charCodeAt(0),u=Fh(r.before.charCodeAt(r.before.length-1),l,i);u.inside&&(c=Ph(l)+c.slice(1));let d=c.charCodeAt(c.length-1),f=Fh(r.after.charCodeAt(0),d,i);f.inside&&(c=c.slice(0,-1)+Ph(d));let p=o.move(i+i);return a(),n.attentionEncodeSurroundingInfo={after:f.outside,before:u.outside},s+c+p}function Og(e,t,n){return n.options.strong||`*`}function kg(e,t,n,r){return n.safe(e.value,r)}function Ag(e){let t=e.options.ruleRepetition||3;if(t<3)throw Error("Cannot serialize rules with repetition `"+t+"` for `options.ruleRepetition`, expected `3` or more");return t}function jg(e,t,n){let r=(yg(n)+(n.options.ruleSpaces?` `:``)).repeat(Ag(n));return n.options.ruleSpaces?r.slice(0,-1):r}var Mg={blockquote:xh,break:Th,code:kh,definition:Mh,emphasis:Ih,hardBreak:Th,heading:ng,html:rg,image:ag,imageReference:sg,inlineCode:lg,link:fg,linkReference:mg,list:bg,listItem:Sg,paragraph:Cg,root:Tg,strong:Dg,text:kg,thematicBreak:jg},Ng=[Pg];function Pg(e,t,n,r){if(t.type===`code`&&Dh(t,r)&&(e.type===`list`||e.type===t.type&&Dh(e,r)))return!1;if(`spread`in n&&typeof n.spread==`boolean`)return e.type===`paragraph`&&(e.type===t.type||t.type===`definition`||t.type===`heading`&&tg(t,r))?void 0:+!!n.spread}var Fg=[`autolink`,`destinationLiteral`,`destinationRaw`,`reference`,`titleQuote`,`titleApostrophe`],Ig=[{character:` `,after:`[\\r\\n]`,inConstruct:`phrasing`},{character:` `,before:`[\\r\\n]`,inConstruct:`phrasing`},{character:` `,inConstruct:[`codeFencedLangGraveAccent`,`codeFencedLangTilde`]},{character:`\r`,inConstruct:[`codeFencedLangGraveAccent`,`codeFencedLangTilde`,`codeFencedMetaGraveAccent`,`codeFencedMetaTilde`,`destinationLiteral`,`headingAtx`]},{character:`
|
|
57
|
+
`,inConstruct:[`codeFencedLangGraveAccent`,`codeFencedLangTilde`,`codeFencedMetaGraveAccent`,`codeFencedMetaTilde`,`destinationLiteral`,`headingAtx`]},{character:` `,after:`[\\r\\n]`,inConstruct:`phrasing`},{character:` `,before:`[\\r\\n]`,inConstruct:`phrasing`},{character:` `,inConstruct:[`codeFencedLangGraveAccent`,`codeFencedLangTilde`]},{character:`!`,after:`\\[`,inConstruct:`phrasing`,notInConstruct:Fg},{character:`"`,inConstruct:`titleQuote`},{atBreak:!0,character:`#`},{character:`#`,inConstruct:`headingAtx`,after:`(?:[\r
|
|
58
|
+
]|$)`},{character:`&`,after:`[#A-Za-z]`,inConstruct:`phrasing`},{character:`'`,inConstruct:`titleApostrophe`},{character:`(`,inConstruct:`destinationRaw`},{before:`\\]`,character:`(`,inConstruct:`phrasing`,notInConstruct:Fg},{atBreak:!0,before:`\\d+`,character:`)`},{character:`)`,inConstruct:`destinationRaw`},{atBreak:!0,character:`*`,after:`(?:[ \r
|
|
59
|
+
*])`},{character:`*`,inConstruct:`phrasing`,notInConstruct:Fg},{atBreak:!0,character:`+`,after:`(?:[ \r
|
|
60
|
+
])`},{atBreak:!0,character:`-`,after:`(?:[ \r
|
|
61
|
+
-])`},{atBreak:!0,before:`\\d+`,character:`.`,after:`(?:[ \r
|
|
62
|
+
]|$)`},{atBreak:!0,character:`<`,after:`[!/?A-Za-z]`},{character:`<`,after:`[!/?A-Za-z]`,inConstruct:`phrasing`,notInConstruct:Fg},{character:`<`,inConstruct:`destinationLiteral`},{atBreak:!0,character:`=`},{atBreak:!0,character:`>`},{character:`>`,inConstruct:`destinationLiteral`},{atBreak:!0,character:`[`},{character:`[`,inConstruct:`phrasing`,notInConstruct:Fg},{character:`[`,inConstruct:[`label`,`reference`]},{character:`\\`,after:`[\\r\\n]`,inConstruct:`phrasing`},{character:`]`,inConstruct:[`label`,`reference`]},{atBreak:!0,character:`_`},{character:`_`,inConstruct:`phrasing`,notInConstruct:Fg},{atBreak:!0,character:"`"},{character:"`",inConstruct:[`codeFencedLangGraveAccent`,`codeFencedMetaGraveAccent`]},{character:"`",inConstruct:`phrasing`,notInConstruct:Fg},{atBreak:!0,character:`~`}];function Lg(e,t){let 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)}var Rg=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function zg(e){return e.replace(Rg,Bg)}function Bg(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){let e=n.charCodeAt(1),t=e===120||e===88;return Lg(n.slice(t?2:1),t?16:10)}return Zf(n)||e}function Vg(e){return e.label||!e.identifier?e.label||``:zg(e.identifier)}function Hg(e){if(!e._compiled){let t=(e.atBreak?`[\\r\\n][\\t ]*`:``)+(e.before?`(?:`+e.before+`)`:``);e._compiled=RegExp((t?`(`+t+`)`:``)+(/[|\\{}()[\]^$+*?.-]/.test(e.character)?`\\`:``)+e.character+(e.after?`(?:`+e.after+`)`:``),`g`)}return e._compiled}function Ug(e,t,n){let r=t.indexStack,i=e.children||[],a=[],o=-1,s=n.before,c;r.push(-1);let l=t.createTracker(n);for(;++o<i.length;){let u=i[o],d;if(r[r.length-1]=o,o+1<i.length){let n=t.handle.handlers[i[o+1].type];n&&n.peek&&(n=n.peek),d=n?n(i[o+1],e,t,{before:``,after:``,...l.current()}).charAt(0):``}else d=n.after;a.length>0&&(s===`\r`||s===`
|
|
63
|
+
`)&&u.type===`html`&&(a[a.length-1]=a[a.length-1].replace(/(\r?\n|\r)$/,` `),s=` `,l=t.createTracker(n),l.move(a.join(``)));let f=t.handle(u,e,t,{...l.current(),after:d,before:s});c&&c===f.slice(0,1)&&(f=Ph(c.charCodeAt(0))+f.slice(1));let p=t.attentionEncodeSurroundingInfo;t.attentionEncodeSurroundingInfo=void 0,c=void 0,p&&(a.length>0&&p.before&&s===a[a.length-1].slice(-1)&&(a[a.length-1]=a[a.length-1].slice(0,-1)+Ph(s.charCodeAt(0))),p.after&&(c=d)),l.move(f),a.push(f),s=f.slice(-1)}return r.pop(),a.join(``)}function Wg(e,t,n){let r=t.indexStack,i=e.children||[],a=t.createTracker(n),o=[],s=-1;for(r.push(-1);++s<i.length;){let n=i[s];r[r.length-1]=s,o.push(a.move(t.handle(n,e,t,{before:`
|
|
64
|
+
`,after:`
|
|
65
|
+
`,...a.current()}))),n.type!==`list`&&(t.bulletLastUsed=void 0),s<i.length-1&&o.push(a.move(Gg(n,i[s+1],e,t)))}return r.pop(),o.join(``)}function Gg(e,t,n,r){let i=r.join.length;for(;i--;){let a=r.join[i](e,t,n,r);if(a===!0||a===1)break;if(typeof a==`number`)return`
|
|
66
|
+
`.repeat(1+a);if(a===!1)return`
|
|
67
|
+
|
|
68
|
+
<!---->
|
|
69
|
+
|
|
70
|
+
`}return`
|
|
71
|
+
|
|
72
|
+
`}var Kg=/\r?\n|\r/g;function qg(e,t){let n=[],r=0,i=0,a;for(;a=Kg.exec(e);)o(e.slice(r,a.index)),n.push(a[0]),r=a.index+a[0].length,i++;return o(e.slice(r)),n.join(``);function o(e){n.push(t(e,i,!e))}}function Jg(e,t,n){let r=(n.before||``)+(t||``)+(n.after||``),i=[],a=[],o={},s=-1;for(;++s<e.unsafe.length;){let t=e.unsafe[s];if(!Ch(e.stack,t))continue;let n=e.compilePattern(t),a;for(;a=n.exec(r);){let e=`before`in t||!!t.atBreak,n=`after`in t,r=a.index+(e?a[1].length:0);i.includes(r)?(o[r].before&&!e&&(o[r].before=!1),o[r].after&&!n&&(o[r].after=!1)):(i.push(r),o[r]={before:e,after:n})}}i.sort(Yg);let c=n.before?n.before.length:0,l=r.length-(n.after?n.after.length:0);for(s=-1;++s<i.length;){let e=i[s];e<c||e>=l||e+1<l&&i[s+1]===e+1&&o[e].after&&!o[e+1].before&&!o[e+1].after||i[s-1]===e-1&&o[e].before&&!o[e-1].before&&!o[e-1].after||(c!==e&&a.push(Xg(r.slice(c,e),`\\`)),c=e,/[!-/:-@[-`{-~]/.test(r.charAt(e))&&(!n.encode||!n.encode.includes(r.charAt(e)))?a.push(`\\`):(a.push(Ph(r.charCodeAt(e))),c++))}return a.push(Xg(r.slice(c,l),n.after)),a.join(``)}function Yg(e,t){return e-t}function Xg(e,t){let n=/\\(?=[!-/:-@[-`{-~])/g,r=[],i=[],a=e+t,o=-1,s=0,c;for(;c=n.exec(a);)r.push(c.index);for(;++o<r.length;)s!==r[o]&&i.push(e.slice(s,r[o])),i.push(`\\`),s=r[o];return i.push(e.slice(s)),i.join(``)}function Zg(e){let t=e||{},n=t.now||{},r=t.lineShift||0,i=n.line||1,a=n.column||1;return{move:c,current:o,shift:s};function o(){return{now:{line:i,column:a},lineShift:r}}function s(e){r+=e}function c(e){let t=e||``,n=t.split(/\r?\n|\r/g),o=n[n.length-1];return i+=n.length-1,a=n.length===1?a+o.length:1+o.length+r,t}}function Qg(e,t){let n=t||{},r={associationId:Vg,containerPhrasing:n_,containerFlow:r_,createTracker:Zg,compilePattern:Hg,enter:a,handlers:{...Mg},handle:void 0,indentLines:qg,indexStack:[],join:[...Ng],options:{},safe:i_,stack:[],unsafe:[...Ig]};vh(r,n),r.options.tightDefinitions&&r.join.push(t_),r.handle=gh(`type`,{invalid:$g,unknown:e_,handlers:r.handlers});let i=r.handle(e,void 0,r,{before:`
|
|
73
|
+
`,after:`
|
|
74
|
+
`,now:{line:1,column:1},lineShift:0});return i&&i.charCodeAt(i.length-1)!==10&&i.charCodeAt(i.length-1)!==13&&(i+=`
|
|
75
|
+
`),i;function a(e){return r.stack.push(e),t;function t(){r.stack.pop()}}}function $g(e){throw Error("Cannot handle value `"+e+"`, expected node")}function e_(e){throw Error("Cannot handle unknown node `"+e.type+"`")}function t_(e,t){if(e.type===`definition`&&e.type===t.type)return 0}function n_(e,t){return Ug(e,this,t)}function r_(e,t){return Wg(e,this,t)}function i_(e,t){return Jg(this,e,t)}var a_=[`mdxJsxTextElement`,`mdxJsxFlowElement`];function o_(e){return a_.includes(e.type)&&s_.includes(e.name)}var s_=`a.abbr.address.area.article.aside.audio.b.base.bdi.bdo.blockquote.body.br.button.canvas.caption.cite.code.col.colgroup.data.datalist.dd.del.details.dfn.dialog.div.dl.dt.em.embed.fieldset.figcaption.figure.footer.form.h1.h2.h3.h4.h5.h6.head.header.hgroup.hr.html.i.iframe.input.ins.kbd.label.legend.li.link.main.map.mark.meta.meter.nav.noscript.object.ol.optgroup.option.output.p.param.picture.pre.progress.q.rp.rt.ruby.s.samp.script.section.select.small.source.span.strong.style.sub.summary.sup.table.tbody.td.template.textarea.tfoot.th.thead.time.title.tr.track.u.ul.var.video.wbr`.split(`.`);function c_(e,t){let n=l_(e),r=l_(t);return u_({...n,...r})}function l_(e){let t={};return e.split(`;`).filter(e=>e.trim()!==``).forEach(e=>{let[n,r]=e.split(`:`).map(e=>e.trim());t[n]=r}),t}function u_(e){return Object.entries(e).map(([e,t])=>`${e}: ${t}`).join(`; `)}function d_(e){return e.children instanceof Array}function f_({root:e,visitors:t,jsxComponentDescriptors:n,jsxIsAvailable:r,addImportStatements:i=!0}){let a=null,o=new Set,s=new Map;t=t.sort((e,t)=>(t.priority??0)-(e.priority??0)),d(e,null);function c(e,t){o.add(e),t&&s.set(e,{...t})}function l(e,n){if(a===null)return a=n,a;if(!d_(e))throw Error(`Attempting to append children to a non-parent`);let r=e.children,i=r.at(-1);if(i){let e=t.find(e=>e.shouldJoin?.call(e,i,n));if(e){let t=e.join(i,n);return r.splice(r.length-1,1,t),t}}return r.push(n),n}function u(e,t){e.getChildren().forEach(e=>{d(e,t)})}function d(e,n,r=null){var i;let a=t.find((t,n)=>r?.has(n)?!1:t.testLexicalNode?.call(t,e));if(!a)throw Error(`no lexical visitor found for ${e.getType()}`,{cause:e});(i=a.visitLexicalNode)==null||i.call(a,{lexicalNode:e,mdastParent:n,actions:{addAndStepInto(t,r={},i=!0){let a={type:t,...r,...i?{children:[]}:{}};l(n,a),G(e)&&i&&u(e,a)},appendToParent:l,visitChildren:u,visit:d,registerReferredComponent:c,nextVisitor(){d(e,n,(r??new Set).add(t.indexOf(a)))}}})}if(a===null)throw Error(`traversal ended with no root element`);let f=new Map,p=new Map;for(let e of o){let t=n.find(t=>t.name===e)??s.get(e)??n.find(e=>e.name===`*`);if(!t)throw Error(`Component ${e} is used but not imported`);if(t.source)if(t.defaultExport)p.set(e,t.source);else{let{source:n}=t,r=f.get(n);r?r.push(e):f.set(n,[e])}}if(!i){for(let[e,t]of f.entries()){let n=t.filter(e=>s.has(e));n.length>0?f.set(e,n):f.delete(e)}for(let e of p.keys())s.has(e)||p.delete(e)}let m=Array.from(f).map(([e,t])=>({type:`mdxjsEsm`,value:`import { ${t.join(`, `)} } from '${e}'`}));m.push(...Array.from(p).map(([e,t])=>({type:`mdxjsEsm`,value:`import ${e} from '${t}'`})));let h=a,g=h.children.find(e=>e.type===`yaml`);return g?h.children.splice(h.children.indexOf(g)+1,0,...m):h.children.unshift(...m),__(h,[]),p_(h),r||m_(h),h}function p_(e){if(`children`in e&&e.children.length>0){if(o_(e)&&e.children.length===1){let t=e.children[0];t.type===`mdxJsxTextElement`&&t.name===`span`&&(t.attributes.forEach(t=>{if(t.type===`mdxJsxAttribute`){let n=e.attributes.find(e=>e.type===`mdxJsxAttribute`&&e.name===t.name);if(n)if(t.name===`className`){let e=new Set([...n.value.split(` `),...t.value.split(` `)]);n.value=Array.from(e).join(` `)}else t.name===`style`&&(n.value=c_(n.value,t.value));else e.attributes.push(t)}}),e.children=t.children)}e.children.forEach(e=>{p_(e)})}}function m_(e){if(Object.hasOwn(e,`children`)){let t=e,n=[];t.children.forEach(e=>{e.type===`mdxJsxTextElement`&&e.name===`u`?n.push({type:`html`,value:`<u>`},...e.children,{type:`html`,value:`</u>`}):(n.push(e),m_(e))}),t.children=n}}var h_=/\s+$/,g_=/^\s+/;function __(e,t){if(e.type===`strong`||e.type===`emphasis`){let n=e.children.at(-1);if(n?.type===`text`){let r=h_.exec(n.value);if(r){n.value=n.value.replace(h_,``);let i=t.at(-1);i&&(i.children.splice(i.children.indexOf(e)+1,0,{type:`text`,value:r[0]}),__(i,t.slice(0,-1)))}}let r=e.children.at(0);if(r?.type===`text`){let n=g_.exec(r.value);if(n){r.value=r.value.replace(g_,``);let i=t.at(-1);i&&(i.children.splice(i.children.indexOf(e),0,{type:`text`,value:n[0]}),__(i,t.slice(0,-1)))}}}if(`children`in e&&e.children.length>0){let n=e;n.children.forEach(e=>{__(e,[...t,n])})}}function v_({root:e,toMarkdownOptions:t,toMarkdownExtensions:n,visitors:r,jsxComponentDescriptors:i,jsxIsAvailable:a}){return Qg(f_({root:e,visitors:r,jsxComponentDescriptors:i,jsxIsAvailable:a}),{extensions:n,...t})+`
|
|
76
|
+
`}var y_={}.hasOwnProperty;function b_(e){let t={},n=-1;for(;++n<e.length;)x_(t,e[n]);return t}function x_(e,t){let n;for(n in t){let r=(y_.call(e,n)?e[n]:void 0)||(e[n]={}),i=t[n],a;if(i)for(a in i){y_.call(r,a)||(r[a]=[]);let e=i[a];S_(r[a],Array.isArray(e)?e:e?[e]:[])}}}function S_(e,t){let n=-1,r=[];for(;++n<t.length;)(t[n].add===`after`?e:r).push(t[n]);ff(e,0,0,r)}function C_(e){return e.replace(/[\t\n\r ]+/g,` `).replace(/^ | $/g,``).toLowerCase().toUpperCase()}var w_={tokenize:T_};function T_(e){let t=e.attempt(this.parser.constructs.contentInitial,r,i),n;return t;function r(n){if(n===null){e.consume(n);return}return e.enter(`lineEnding`),e.consume(n),e.exit(`lineEnding`),Im(e,t,`linePrefix`)}function i(t){return e.enter(`paragraph`),a(t)}function a(t){let r=e.enter(`chunkText`,{contentType:`text`,previous:n});return n&&(n.next=r),n=r,o(t)}function o(t){if(t===null){e.exit(`chunkText`),e.exit(`paragraph`),e.consume(t);return}return q(t)?(e.consume(t),e.exit(`chunkText`),a):(e.consume(t),o)}}var E_={tokenize:O_},D_={tokenize:k_};function O_(e){let t=this,n=[],r=0,i,a,o;return s;function s(i){if(r<n.length){let a=n[r];return t.containerState=a[1],e.attempt(a[0].continuation,c,l)(i)}return l(i)}function c(e){if(r++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,i&&v();let n=t.events.length,a=n,o;for(;a--;)if(t.events[a][0]===`exit`&&t.events[a][1].type===`chunkFlow`){o=t.events[a][1].end;break}_(r);let s=n;for(;s<t.events.length;)t.events[s][1].end={...o},s++;return ff(t.events,a+1,0,t.events.slice(n)),t.events.length=s,l(e)}return s(e)}function l(a){if(r===n.length){if(!i)return f(a);if(i.currentConstruct&&i.currentConstruct.concrete)return m(a);t.interrupt=!!(i.currentConstruct&&!i._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(D_,u,d)(a)}function u(e){return i&&v(),_(r),f(e)}function d(e){return t.parser.lazy[t.now().line]=r!==n.length,o=t.now().offset,m(e)}function f(n){return t.containerState={},e.attempt(D_,p,m)(n)}function p(e){return r++,n.push([t.currentConstruct,t.containerState]),f(e)}function m(n){if(n===null){i&&v(),_(0),e.consume(n);return}return i||=t.parser.flow(t.now()),e.enter(`chunkFlow`,{_tokenizer:i,contentType:`flow`,previous:a}),h(n)}function h(n){if(n===null){g(e.exit(`chunkFlow`),!0),_(0),e.consume(n);return}return q(n)?(e.consume(n),g(e.exit(`chunkFlow`)),r=0,t.interrupt=void 0,s):(e.consume(n),h)}function g(e,n){let s=t.sliceStream(e);if(n&&s.push(null),e.previous=a,a&&(a.next=e),a=e,i.defineSkip(e.start),i.write(s),t.parser.lazy[e.start.line]){let e=i.events.length;for(;e--;)if(i.events[e][1].start.offset<o&&(!i.events[e][1].end||i.events[e][1].end.offset>o))return;let n=t.events.length,a=n,s,c;for(;a--;)if(t.events[a][0]===`exit`&&t.events[a][1].type===`chunkFlow`){if(s){c=t.events[a][1].end;break}s=!0}for(_(r),e=n;e<t.events.length;)t.events[e][1].end={...c},e++;ff(t.events,a+1,0,t.events.slice(n)),t.events.length=e}}function _(r){let i=n.length;for(;i-- >r;){let r=n[i];t.containerState=r[1],r[0].exit.call(t,e)}n.length=r}function v(){i.write([null]),a=void 0,i=void 0,t.containerState._closeFlow=void 0}}function k_(e,t,n){return Im(e,e.attempt(this.parser.constructs.document,t,n),`linePrefix`,this.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)}var A_={name:`attention`,resolveAll:j_,tokenize:M_};function j_(e,t){let n=-1,r,i,a,o,s,c,l,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;c=e[r][1].end.offset-e[r][1].start.offset>1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;let d={...e[r][1].end},f={...e[n][1].start};N_(d,-c),N_(f,c),o={type:c>1?`strongSequence`:`emphasisSequence`,start:d,end:{...e[r][1].end}},s={type:c>1?`strongSequence`:`emphasisSequence`,start:{...e[n][1].start},end:f},a={type:c>1?`strongText`:`emphasisText`,start:{...e[r][1].end},end:{...e[n][1].start}},i={type:c>1?`strong`:`emphasis`,start:{...o.start},end:{...s.end}},e[r][1].end={...o.start},e[n][1].start={...s.end},l=[],e[r][1].end.offset-e[r][1].start.offset&&(l=pf(l,[[`enter`,e[r][1],t],[`exit`,e[r][1],t]])),l=pf(l,[[`enter`,i,t],[`enter`,o,t],[`exit`,o,t],[`enter`,a,t]]),l=pf(l,Df(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),l=pf(l,[[`exit`,a,t],[`enter`,s,t],[`exit`,s,t],[`exit`,i,t]]),e[n][1].end.offset-e[n][1].start.offset?(u=2,l=pf(l,[[`enter`,e[n][1],t],[`exit`,e[n][1],t]])):u=0,ff(e,r-1,n-r+3,l),n=r+l.length-u-2;break}}for(n=-1;++n<e.length;)e[n][1].type===`attentionSequence`&&(e[n][1].type=`data`);return e}function M_(e,t){let n=this.parser.constructs.attentionMarkers.null,r=this.previous,i=Ef(r),a;return o;function o(t){return a=t,e.enter(`attentionSequence`),s(t)}function s(o){if(o===a)return e.consume(o),s;let c=e.exit(`attentionSequence`),l=Ef(o),u=!l||l===2&&i||n.includes(o),d=!i||i===2&&l||n.includes(r);return c._open=!!(a===42?u:u&&(i||!d)),c._close=!!(a===42?d:d&&(l||!u)),t(o)}}function N_(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}var P_={name:`autolink`,tokenize:F_};function F_(e,t,n){let r=0;return i;function i(t){return e.enter(`autolink`),e.enter(`autolinkMarker`),e.consume(t),e.exit(`autolinkMarker`),e.enter(`autolinkProtocol`),a}function a(t){return mf(t)?(e.consume(t),o):t===64?n(t):l(t)}function o(e){return e===43||e===45||e===46||hf(e)?(r=1,s(e)):l(e)}function s(t){return t===58?(e.consume(t),r=0,c):(t===43||t===45||t===46||hf(t))&&r++<32?(e.consume(t),s):(r=0,l(t))}function c(r){return r===62?(e.exit(`autolinkProtocol`),e.enter(`autolinkMarker`),e.consume(r),e.exit(`autolinkMarker`),e.exit(`autolink`),t):r===null||r===32||r===60||_f(r)?n(r):(e.consume(r),c)}function l(t){return t===64?(e.consume(t),u):gf(t)?(e.consume(t),l):n(t)}function u(e){return hf(e)?d(e):n(e)}function d(n){return n===46?(e.consume(n),r=0,u):n===62?(e.exit(`autolinkProtocol`).type=`autolinkEmail`,e.enter(`autolinkMarker`),e.consume(n),e.exit(`autolinkMarker`),e.exit(`autolink`),t):f(n)}function f(t){if((t===45||hf(t))&&r++<63){let n=t===45?f:d;return e.consume(t),n}return n(t)}}var I_={partial:!0,tokenize:L_};function L_(e,t,n){return r;function r(t){return Sf(t)?Im(e,i,`linePrefix`)(t):i(t)}function i(e){return e===null||q(e)?t(e):n(e)}}var R_={continuation:{tokenize:B_},exit:V_,name:`blockQuote`,tokenize:z_};function z_(e,t,n){let r=this;return i;function i(t){if(t===62){let n=r.containerState;return n.open||=(e.enter(`blockQuote`,{_container:!0}),!0),e.enter(`blockQuotePrefix`),e.enter(`blockQuoteMarker`),e.consume(t),e.exit(`blockQuoteMarker`),a}return n(t)}function a(n){return Sf(n)?(e.enter(`blockQuotePrefixWhitespace`),e.consume(n),e.exit(`blockQuotePrefixWhitespace`),e.exit(`blockQuotePrefix`),t):(e.exit(`blockQuotePrefix`),t(n))}}function B_(e,t,n){let r=this;return i;function i(t){return Sf(t)?Im(e,a,`linePrefix`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)(t):a(t)}function a(r){return e.attempt(R_,t,n)(r)}}function V_(e){e.exit(`blockQuote`)}var H_={name:`characterEscape`,tokenize:U_};function U_(e,t,n){return r;function r(t){return e.enter(`characterEscape`),e.enter(`escapeMarker`),e.consume(t),e.exit(`escapeMarker`),i}function i(r){return bf(r)?(e.enter(`characterEscapeValue`),e.consume(r),e.exit(`characterEscapeValue`),e.exit(`characterEscape`),t):n(r)}}var W_={name:`characterReference`,tokenize:G_};function G_(e,t,n){let r=this,i=0,a,o;return s;function s(t){return e.enter(`characterReference`),e.enter(`characterReferenceMarker`),e.consume(t),e.exit(`characterReferenceMarker`),c}function c(t){return t===35?(e.enter(`characterReferenceMarkerNumeric`),e.consume(t),e.exit(`characterReferenceMarkerNumeric`),l):(e.enter(`characterReferenceValue`),a=31,o=hf,u(t))}function l(t){return t===88||t===120?(e.enter(`characterReferenceMarkerHexadecimal`),e.consume(t),e.exit(`characterReferenceMarkerHexadecimal`),e.enter(`characterReferenceValue`),a=6,o=yf,u):(e.enter(`characterReferenceValue`),a=7,o=vf,u(t))}function u(s){if(s===59&&i){let i=e.exit(`characterReferenceValue`);return o===hf&&!Zf(r.sliceSerialize(i))?n(s):(e.enter(`characterReferenceMarker`),e.consume(s),e.exit(`characterReferenceMarker`),e.exit(`characterReference`),t)}return o(s)&&i++<a?(e.consume(s),u):n(s)}}var K_={partial:!0,tokenize:Y_},q_={concrete:!0,name:`codeFenced`,tokenize:J_};function J_(e,t,n){let r=this,i={partial:!0,tokenize:x},a=0,o=0,s;return c;function c(e){return l(e)}function l(t){let n=r.events[r.events.length-1];return a=n&&n[1].type===`linePrefix`?n[2].sliceSerialize(n[1],!0).length:0,s=t,e.enter(`codeFenced`),e.enter(`codeFencedFence`),e.enter(`codeFencedFenceSequence`),u(t)}function u(t){return t===s?(o++,e.consume(t),u):o<3?n(t):(e.exit(`codeFencedFenceSequence`),Sf(t)?Im(e,d,`whitespace`)(t):d(t))}function d(n){return n===null||q(n)?(e.exit(`codeFencedFence`),r.interrupt?t(n):e.check(K_,h,b)(n)):(e.enter(`codeFencedFenceInfo`),e.enter(`chunkString`,{contentType:`string`}),f(n))}function f(t){return t===null||q(t)?(e.exit(`chunkString`),e.exit(`codeFencedFenceInfo`),d(t)):Sf(t)?(e.exit(`chunkString`),e.exit(`codeFencedFenceInfo`),Im(e,p,`whitespace`)(t)):t===96&&t===s?n(t):(e.consume(t),f)}function p(t){return t===null||q(t)?d(t):(e.enter(`codeFencedFenceMeta`),e.enter(`chunkString`,{contentType:`string`}),m(t))}function m(t){return t===null||q(t)?(e.exit(`chunkString`),e.exit(`codeFencedFenceMeta`),d(t)):t===96&&t===s?n(t):(e.consume(t),m)}function h(t){return e.attempt(i,b,g)(t)}function g(t){return e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),_}function _(t){return a>0&&Sf(t)?Im(e,v,`linePrefix`,a+1)(t):v(t)}function v(t){return t===null||q(t)?e.check(K_,h,b)(t):(e.enter(`codeFlowValue`),y(t))}function y(t){return t===null||q(t)?(e.exit(`codeFlowValue`),v(t)):(e.consume(t),y)}function b(n){return e.exit(`codeFenced`),t(n)}function x(e,t,n){let i=0;return a;function a(t){return e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),c}function c(t){return e.enter(`codeFencedFence`),Sf(t)?Im(e,l,`linePrefix`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)(t):l(t)}function l(t){return t===s?(e.enter(`codeFencedFenceSequence`),u(t)):n(t)}function u(t){return t===s?(i++,e.consume(t),u):i>=o?(e.exit(`codeFencedFenceSequence`),Sf(t)?Im(e,d,`whitespace`)(t):d(t)):n(t)}function d(r){return r===null||q(r)?(e.exit(`codeFencedFence`),t(r)):n(r)}}}function Y_(e,t,n){let r=this;return i;function i(t){return t===null?n(t):(e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),a)}function a(e){return r.parser.lazy[r.now().line]?n(e):t(e)}}var X_={name:`codeIndented`,tokenize:Q_},Z_={partial:!0,tokenize:$_};function Q_(e,t,n){let r=this;return i;function i(t){return e.enter(`codeIndented`),Im(e,a,`linePrefix`,5)(t)}function a(e){let t=r.events[r.events.length-1];return t&&t[1].type===`linePrefix`&&t[2].sliceSerialize(t[1],!0).length>=4?o(e):n(e)}function o(t){return t===null?c(t):q(t)?e.attempt(Z_,o,c)(t):(e.enter(`codeFlowValue`),s(t))}function s(t){return t===null||q(t)?(e.exit(`codeFlowValue`),o(t)):(e.consume(t),s)}function c(n){return e.exit(`codeIndented`),t(n)}}function $_(e,t,n){let r=this;return i;function i(t){return r.parser.lazy[r.now().line]?n(t):q(t)?(e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),i):Im(e,a,`linePrefix`,5)(t)}function a(e){let a=r.events[r.events.length-1];return a&&a[1].type===`linePrefix`&&a[2].sliceSerialize(a[1],!0).length>=4?t(e):q(e)?i(e):n(e)}}var ev={name:`codeText`,previous:nv,resolve:tv,tokenize:rv};function tv(e){let t=e.length-4,n=3,r,i;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;)i===void 0?r!==t&&e[r][1].type!==`lineEnding`&&(i=r):(r===t||e[r][1].type===`lineEnding`)&&(e[i][1].type=`codeTextData`,r!==i+2&&(e[i][1].end=e[r-1][1].end,e.splice(i+2,r-i-2),t-=r-i-2,r=i+2),i=void 0);return e}function nv(e){return e!==96||this.events[this.events.length-1][1].type===`characterEscape`}function rv(e,t,n){let r=0,i,a;return o;function o(t){return e.enter(`codeText`),e.enter(`codeTextSequence`),s(t)}function s(t){return t===96?(e.consume(t),r++,s):(e.exit(`codeTextSequence`),c(t))}function c(t){return t===null?n(t):t===32?(e.enter(`space`),e.consume(t),e.exit(`space`),c):t===96?(a=e.enter(`codeTextSequence`),i=0,u(t)):q(t)?(e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),c):(e.enter(`codeTextData`),l(t))}function l(t){return t===null||t===32||t===96||q(t)?(e.exit(`codeTextData`),c(t)):(e.consume(t),l)}function u(n){return n===96?(e.consume(n),i++,u):i===r?(e.exit(`codeTextSequence`),e.exit(`codeText`),t(n)):(a.type=`codeTextData`,l(n))}}var iv=class{constructor(e){this.left=e?[...e]:[],this.right=[]}get(e){if(e<0||e>=this.left.length+this.right.length)throw RangeError("Cannot access index `"+e+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return e<this.left.length?this.left[e]:this.right[this.right.length-e+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(e,t){let n=t??1/0;return n<this.left.length?this.left.slice(e,n):e>this.left.length?this.right.slice(this.right.length-n+this.left.length,this.right.length-e+this.left.length).reverse():this.left.slice(e).concat(this.right.slice(this.right.length-n+this.left.length).reverse())}splice(e,t,n){let r=t||0;this.setCursor(Math.trunc(e));let i=this.right.splice(this.right.length-r,1/0);return n&&av(this.left,n),i.reverse()}pop(){return this.setCursor(1/0),this.left.pop()}push(e){this.setCursor(1/0),this.left.push(e)}pushMany(e){this.setCursor(1/0),av(this.left,e)}unshift(e){this.setCursor(0),this.right.push(e)}unshiftMany(e){this.setCursor(0),av(this.right,e.reverse())}setCursor(e){if(!(e===this.left.length||e>this.left.length&&this.right.length===0||e<0&&this.left.length===0))if(e<this.left.length){let t=this.left.splice(e,1/0);av(this.right,t.reverse())}else{let t=this.right.splice(this.left.length+this.right.length-e,1/0);av(this.left,t.reverse())}}};function av(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 ov(e){let t={},n=-1,r,i,a,o,s,c,l,u=new iv(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`&&(c=r[1]._tokenizer.events,a=0,a<c.length&&c[a][1].type===`lineEndingBlank`&&(a+=2),a<c.length&&c[a][1].type===`content`))for(;++a<c.length&&c[a][1].type!==`content`;)c[a][1].type===`chunkText`&&(c[a][1]._isInFirstContentOfListItem=!0,a++);if(r[0]===`enter`)r[1].contentType&&(Object.assign(t,sv(u,n)),n=t[n],l=!0);else if(r[1]._container){for(a=n,i=void 0;a--;)if(o=u.get(a),o[1].type===`lineEnding`||o[1].type===`lineEndingBlank`)o[0]===`enter`&&(i&&(u.get(i)[1].type=`lineEndingBlank`),o[1].type=`lineEnding`,i=a);else if(!(o[1].type===`linePrefix`||o[1].type===`listItemIndent`))break;i&&(r[1].end={...u.get(i)[1].start},s=u.slice(i,n),s.unshift(r),u.splice(i,n-i+1,s))}}return ff(e,0,1/0,u.slice(0)),!l}function sv(e,t){let n=e.get(t)[1],r=e.get(t)[2],i=t-1,a=[],o=n._tokenizer;o||(o=r.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(o._contentTypeTextTrailing=!0));let s=o.events,c=[],l={},u,d,f=-1,p=n,m=0,h=0,g=[h];for(;p;){for(;e.get(++i)[1]!==p;);a.push(i),p._tokenizer||(u=r.sliceStream(p),p.next||u.push(null),d&&o.defineSkip(p.start),p._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=!0),o.write(u),p._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=void 0)),d=p,p=p.next}for(p=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&&(h=f+1,g.push(h),p._tokenizer=void 0,p.previous=void 0,p=p.next);for(o.events=[],p?(p._tokenizer=void 0,p.previous=void 0):g.pop(),f=g.length;f--;){let t=s.slice(g[f],g[f+1]),n=a.pop();c.push([n,n+t.length-1]),e.splice(n,2,t)}for(c.reverse(),f=-1;++f<c.length;)l[m+c[f][0]]=m+c[f][1],m+=c[f][1]-c[f][0]-1;return l}var cv={resolve:uv,tokenize:dv},lv={partial:!0,tokenize:fv};function uv(e){return ov(e),e}function dv(e,t){let n;return r;function r(t){return e.enter(`content`),n=e.enter(`chunkContent`,{contentType:`content`}),i(t)}function i(t){return t===null?a(t):q(t)?e.check(lv,o,a)(t):(e.consume(t),i)}function a(n){return e.exit(`chunkContent`),e.exit(`content`),t(n)}function o(t){return e.consume(t),e.exit(`chunkContent`),n.next=e.enter(`chunkContent`,{contentType:`content`,previous:n}),n=n.next,i}}function fv(e,t,n){let r=this;return i;function i(t){return e.exit(`chunkContent`),e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),Im(e,a,`linePrefix`)}function a(i){if(i===null||q(i))return n(i);let a=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes(`codeIndented`)&&a&&a[1].type===`linePrefix`&&a[2].sliceSerialize(a[1],!0).length>=4?t(i):e.interrupt(r.parser.constructs.flow,n,t)(i)}}function pv(e,t,n,r,i,a,o,s,c){let l=c||1/0,u=0;return d;function d(t){return t===60?(e.enter(r),e.enter(i),e.enter(a),e.consume(t),e.exit(a),f):t===null||t===32||t===41||_f(t)?n(t):(e.enter(r),e.enter(o),e.enter(s),e.enter(`chunkString`,{contentType:`string`}),h(t))}function f(n){return n===62?(e.enter(a),e.consume(n),e.exit(a),e.exit(i),e.exit(r),t):(e.enter(s),e.enter(`chunkString`,{contentType:`string`}),p(n))}function p(t){return t===62?(e.exit(`chunkString`),e.exit(s),f(t)):t===null||t===60||q(t)?n(t):(e.consume(t),t===92?m:p)}function m(t){return t===60||t===62||t===92?(e.consume(t),p):p(t)}function h(i){return!u&&(i===null||i===41||xf(i))?(e.exit(`chunkString`),e.exit(s),e.exit(o),e.exit(r),t(i)):u<l&&i===40?(e.consume(i),u++,h):i===41?(e.consume(i),u--,h):i===null||i===32||i===40||_f(i)?n(i):(e.consume(i),i===92?g:h)}function g(t){return t===40||t===41||t===92?(e.consume(t),h):h(t)}}function mv(e,t,n,r,i,a){let o=this,s=0,c;return l;function l(t){return e.enter(r),e.enter(i),e.consume(t),e.exit(i),e.enter(a),u}function u(l){return s>999||l===null||l===91||l===93&&!c||l===94&&!s&&`_hiddenFootnoteSupport`in o.parser.constructs?n(l):l===93?(e.exit(a),e.enter(i),e.consume(l),e.exit(i),e.exit(r),t):q(l)?(e.enter(`lineEnding`),e.consume(l),e.exit(`lineEnding`),u):(e.enter(`chunkString`,{contentType:`string`}),d(l))}function d(t){return t===null||t===91||t===93||q(t)||s++>999?(e.exit(`chunkString`),u(t)):(e.consume(t),c||=!Sf(t),t===92?f:d)}function f(t){return t===91||t===92||t===93?(e.consume(t),s++,d):d(t)}}function hv(e,t,n,r,i,a){let o;return s;function s(t){return t===34||t===39||t===40?(e.enter(r),e.enter(i),e.consume(t),e.exit(i),o=t===40?41:t,c):n(t)}function c(n){return n===o?(e.enter(i),e.consume(n),e.exit(i),e.exit(r),t):(e.enter(a),l(n))}function l(t){return t===o?(e.exit(a),c(o)):t===null?n(t):q(t)?(e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),Im(e,l,`linePrefix`)):(e.enter(`chunkString`,{contentType:`string`}),u(t))}function u(t){return t===o||t===null||q(t)?(e.exit(`chunkString`),l(t)):(e.consume(t),t===92?d:u)}function d(t){return t===o||t===92?(e.consume(t),u):u(t)}}function gv(e,t){let n;return r;function r(i){return q(i)?(e.enter(`lineEnding`),e.consume(i),e.exit(`lineEnding`),n=!0,r):Sf(i)?Im(e,r,n?`linePrefix`:`lineSuffix`)(i):t(i)}}var _v={name:`definition`,tokenize:yv},vv={partial:!0,tokenize:bv};function yv(e,t,n){let r=this,i;return a;function a(t){return e.enter(`definition`),o(t)}function o(t){return mv.call(r,e,s,n,`definitionLabel`,`definitionLabelMarker`,`definitionLabelString`)(t)}function s(t){return i=C_(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),t===58?(e.enter(`definitionMarker`),e.consume(t),e.exit(`definitionMarker`),c):n(t)}function c(t){return xf(t)?gv(e,l)(t):l(t)}function l(t){return pv(e,u,n,`definitionDestination`,`definitionDestinationLiteral`,`definitionDestinationLiteralMarker`,`definitionDestinationRaw`,`definitionDestinationString`)(t)}function u(t){return e.attempt(vv,d,d)(t)}function d(t){return Sf(t)?Im(e,f,`whitespace`)(t):f(t)}function f(a){return a===null||q(a)?(e.exit(`definition`),r.parser.defined.push(i),t(a)):n(a)}}function bv(e,t,n){return r;function r(t){return xf(t)?gv(e,i)(t):n(t)}function i(t){return hv(e,a,n,`definitionTitle`,`definitionTitleMarker`,`definitionTitleString`)(t)}function a(t){return Sf(t)?Im(e,o,`whitespace`)(t):o(t)}function o(e){return e===null||q(e)?t(e):n(e)}}var xv={name:`hardBreakEscape`,tokenize:Sv};function Sv(e,t,n){return r;function r(t){return e.enter(`hardBreakEscape`),e.consume(t),i}function i(r){return q(r)?(e.exit(`hardBreakEscape`),t(r)):n(r)}}var Cv={name:`headingAtx`,resolve:wv,tokenize:Tv};function wv(e,t){let n=e.length-2,r=3,i,a;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&&(i={type:`atxHeadingText`,start:e[r][1].start,end:e[n][1].end},a={type:`chunkText`,start:e[r][1].start,end:e[n][1].end,contentType:`text`},ff(e,r,n-r+1,[[`enter`,i,t],[`enter`,a,t],[`exit`,a,t],[`exit`,i,t]])),e}function Tv(e,t,n){let r=0;return i;function i(t){return e.enter(`atxHeading`),a(t)}function a(t){return e.enter(`atxHeadingSequence`),o(t)}function o(t){return t===35&&r++<6?(e.consume(t),o):t===null||xf(t)?(e.exit(`atxHeadingSequence`),s(t)):n(t)}function s(n){return n===35?(e.enter(`atxHeadingSequence`),c(n)):n===null||q(n)?(e.exit(`atxHeading`),t(n)):Sf(n)?Im(e,s,`whitespace`)(n):(e.enter(`atxHeadingText`),l(n))}function c(t){return t===35?(e.consume(t),c):(e.exit(`atxHeadingSequence`),s(t))}function l(t){return t===null||t===35||xf(t)?(e.exit(`atxHeadingText`),s(t)):(e.consume(t),l)}}var Ev=`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`.split(`.`),Dv=[`pre`,`script`,`style`,`textarea`],Ov={concrete:!0,name:`htmlFlow`,resolveTo:jv,tokenize:Mv},kv={partial:!0,tokenize:Pv},Av={partial:!0,tokenize:Nv};function jv(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 Mv(e,t,n){let r=this,i,a,o,s,c;return l;function l(e){return u(e)}function u(t){return e.enter(`htmlFlow`),e.enter(`htmlFlowData`),e.consume(t),d}function d(s){return s===33?(e.consume(s),f):s===47?(e.consume(s),a=!0,h):s===63?(e.consume(s),i=3,r.interrupt?t:ne):mf(s)?(e.consume(s),o=String.fromCharCode(s),g):n(s)}function f(a){return a===45?(e.consume(a),i=2,p):a===91?(e.consume(a),i=5,s=0,m):mf(a)?(e.consume(a),i=4,r.interrupt?t:ne):n(a)}function p(i){return i===45?(e.consume(i),r.interrupt?t:ne):n(i)}function m(i){return i===`CDATA[`.charCodeAt(s++)?(e.consume(i),s===6?r.interrupt?t:D:m):n(i)}function h(t){return mf(t)?(e.consume(t),o=String.fromCharCode(t),g):n(t)}function g(s){if(s===null||s===47||s===62||xf(s)){let c=s===47,l=o.toLowerCase();return!c&&!a&&Dv.includes(l)?(i=1,r.interrupt?t(s):D(s)):Ev.includes(o.toLowerCase())?(i=6,c?(e.consume(s),_):r.interrupt?t(s):D(s)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(s):a?v(s):y(s))}return s===45||hf(s)?(e.consume(s),o+=String.fromCharCode(s),g):n(s)}function _(i){return i===62?(e.consume(i),r.interrupt?t:D):n(i)}function v(t){return Sf(t)?(e.consume(t),v):E(t)}function y(t){return t===47?(e.consume(t),E):t===58||t===95||mf(t)?(e.consume(t),b):Sf(t)?(e.consume(t),y):E(t)}function b(t){return t===45||t===46||t===58||t===95||hf(t)?(e.consume(t),b):x(t)}function x(t){return t===61?(e.consume(t),S):Sf(t)?(e.consume(t),x):y(t)}function S(t){return t===null||t===60||t===61||t===62||t===96?n(t):t===34||t===39?(e.consume(t),c=t,C):Sf(t)?(e.consume(t),S):w(t)}function C(t){return t===c?(e.consume(t),c=null,T):t===null||q(t)?n(t):(e.consume(t),C)}function w(t){return t===null||t===34||t===39||t===47||t===60||t===61||t===62||t===96||xf(t)?x(t):(e.consume(t),w)}function T(e){return e===47||e===62||Sf(e)?y(e):n(e)}function E(t){return t===62?(e.consume(t),ee):n(t)}function ee(t){return t===null||q(t)?D(t):Sf(t)?(e.consume(t),ee):n(t)}function D(t){return t===45&&i===2?(e.consume(t),j):t===60&&i===1?(e.consume(t),M):t===62&&i===4?(e.consume(t),re):t===63&&i===3?(e.consume(t),ne):t===93&&i===5?(e.consume(t),te):q(t)&&(i===6||i===7)?(e.exit(`htmlFlowData`),e.check(kv,ie,O)(t)):t===null||q(t)?(e.exit(`htmlFlowData`),O(t)):(e.consume(t),D)}function O(t){return e.check(Av,k,ie)(t)}function k(t){return e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),A}function A(t){return t===null||q(t)?O(t):(e.enter(`htmlFlowData`),D(t))}function j(t){return t===45?(e.consume(t),ne):D(t)}function M(t){return t===47?(e.consume(t),o=``,N):D(t)}function N(t){if(t===62){let n=o.toLowerCase();return Dv.includes(n)?(e.consume(t),re):D(t)}return mf(t)&&o.length<8?(e.consume(t),o+=String.fromCharCode(t),N):D(t)}function te(t){return t===93?(e.consume(t),ne):D(t)}function ne(t){return t===62?(e.consume(t),re):t===45&&i===2?(e.consume(t),ne):D(t)}function re(t){return t===null||q(t)?(e.exit(`htmlFlowData`),ie(t)):(e.consume(t),re)}function ie(n){return e.exit(`htmlFlow`),t(n)}}function Nv(e,t,n){let r=this;return i;function i(t){return q(t)?(e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),a):n(t)}function a(e){return r.parser.lazy[r.now().line]?n(e):t(e)}}function Pv(e,t,n){return r;function r(r){return e.enter(`lineEnding`),e.consume(r),e.exit(`lineEnding`),e.attempt(I_,t,n)}}var Fv={name:`htmlText`,tokenize:Iv};function Iv(e,t,n){let r=this,i,a,o;return s;function s(t){return e.enter(`htmlText`),e.enter(`htmlTextData`),e.consume(t),c}function c(t){return t===33?(e.consume(t),l):t===47?(e.consume(t),x):t===63?(e.consume(t),y):mf(t)?(e.consume(t),w):n(t)}function l(t){return t===45?(e.consume(t),u):t===91?(e.consume(t),a=0,m):mf(t)?(e.consume(t),v):n(t)}function u(t){return t===45?(e.consume(t),p):n(t)}function d(t){return t===null?n(t):t===45?(e.consume(t),f):q(t)?(o=d,M(t)):(e.consume(t),d)}function f(t){return t===45?(e.consume(t),p):d(t)}function p(e){return e===62?j(e):e===45?f(e):d(e)}function m(t){return t===`CDATA[`.charCodeAt(a++)?(e.consume(t),a===6?h:m):n(t)}function h(t){return t===null?n(t):t===93?(e.consume(t),g):q(t)?(o=h,M(t)):(e.consume(t),h)}function g(t){return t===93?(e.consume(t),_):h(t)}function _(t){return t===62?j(t):t===93?(e.consume(t),_):h(t)}function v(t){return t===null||t===62?j(t):q(t)?(o=v,M(t)):(e.consume(t),v)}function y(t){return t===null?n(t):t===63?(e.consume(t),b):q(t)?(o=y,M(t)):(e.consume(t),y)}function b(e){return e===62?j(e):y(e)}function x(t){return mf(t)?(e.consume(t),S):n(t)}function S(t){return t===45||hf(t)?(e.consume(t),S):C(t)}function C(t){return q(t)?(o=C,M(t)):Sf(t)?(e.consume(t),C):j(t)}function w(t){return t===45||hf(t)?(e.consume(t),w):t===47||t===62||xf(t)?T(t):n(t)}function T(t){return t===47?(e.consume(t),j):t===58||t===95||mf(t)?(e.consume(t),E):q(t)?(o=T,M(t)):Sf(t)?(e.consume(t),T):j(t)}function E(t){return t===45||t===46||t===58||t===95||hf(t)?(e.consume(t),E):ee(t)}function ee(t){return t===61?(e.consume(t),D):q(t)?(o=ee,M(t)):Sf(t)?(e.consume(t),ee):T(t)}function D(t){return t===null||t===60||t===61||t===62||t===96?n(t):t===34||t===39?(e.consume(t),i=t,O):q(t)?(o=D,M(t)):Sf(t)?(e.consume(t),D):(e.consume(t),k)}function O(t){return t===i?(e.consume(t),i=void 0,A):t===null?n(t):q(t)?(o=O,M(t)):(e.consume(t),O)}function k(t){return t===null||t===34||t===39||t===60||t===61||t===96?n(t):t===47||t===62||xf(t)?T(t):(e.consume(t),k)}function A(e){return e===47||e===62||xf(e)?T(e):n(e)}function j(r){return r===62?(e.consume(r),e.exit(`htmlTextData`),e.exit(`htmlText`),t):n(r)}function M(t){return e.exit(`htmlTextData`),e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),N}function N(t){return Sf(t)?Im(e,te,`linePrefix`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)(t):te(t)}function te(t){return e.enter(`htmlTextData`),o(t)}}var Lv={name:`labelEnd`,resolveAll:Vv,resolveTo:Hv,tokenize:Uv},Rv={tokenize:Wv},zv={tokenize:Gv},Bv={tokenize:Kv};function Vv(e){let t=-1,n=[];for(;++t<e.length;){let r=e[t][1];if(n.push(e[t]),r.type===`labelImage`||r.type===`labelLink`||r.type===`labelEnd`){let e=r.type===`labelImage`?4:2;r.type=`data`,t+=e}}return e.length!==n.length&&ff(e,0,e.length,n),e}function Hv(e,t){let n=e.length,r=0,i,a,o,s;for(;n--;)if(i=e[n][1],a){if(i.type===`link`||i.type===`labelLink`&&i._inactive)break;e[n][0]===`enter`&&i.type===`labelLink`&&(i._inactive=!0)}else if(o){if(e[n][0]===`enter`&&(i.type===`labelImage`||i.type===`labelLink`)&&!i._balanced&&(a=n,i.type!==`labelLink`)){r=2;break}}else i.type===`labelEnd`&&(o=n);let c={type:e[a][1].type===`labelLink`?`link`:`image`,start:{...e[a][1].start},end:{...e[e.length-1][1].end}},l={type:`label`,start:{...e[a][1].start},end:{...e[o][1].end}},u={type:`labelText`,start:{...e[a+r+2][1].end},end:{...e[o-2][1].start}};return s=[[`enter`,c,t],[`enter`,l,t]],s=pf(s,e.slice(a+1,a+r+3)),s=pf(s,[[`enter`,u,t]]),s=pf(s,Df(t.parser.constructs.insideSpan.null,e.slice(a+r+4,o-3),t)),s=pf(s,[[`exit`,u,t],e[o-2],e[o-1],[`exit`,l,t]]),s=pf(s,e.slice(o+1)),s=pf(s,[[`exit`,c,t]]),ff(e,a,e.length,s),e}function Uv(e,t,n){let r=this,i=r.events.length,a,o;for(;i--;)if((r.events[i][1].type===`labelImage`||r.events[i][1].type===`labelLink`)&&!r.events[i][1]._balanced){a=r.events[i][1];break}return s;function s(t){return a?a._inactive?d(t):(o=r.parser.defined.includes(C_(r.sliceSerialize({start:a.end,end:r.now()}))),e.enter(`labelEnd`),e.enter(`labelMarker`),e.consume(t),e.exit(`labelMarker`),e.exit(`labelEnd`),c):n(t)}function c(t){return t===40?e.attempt(Rv,u,o?u:d)(t):t===91?e.attempt(zv,u,o?l:d)(t):o?u(t):d(t)}function l(t){return e.attempt(Bv,u,d)(t)}function u(e){return t(e)}function d(e){return a._balanced=!0,n(e)}}function Wv(e,t,n){return r;function r(t){return e.enter(`resource`),e.enter(`resourceMarker`),e.consume(t),e.exit(`resourceMarker`),i}function i(t){return xf(t)?gv(e,a)(t):a(t)}function a(t){return t===41?u(t):pv(e,o,s,`resourceDestination`,`resourceDestinationLiteral`,`resourceDestinationLiteralMarker`,`resourceDestinationRaw`,`resourceDestinationString`,32)(t)}function o(t){return xf(t)?gv(e,c)(t):u(t)}function s(e){return n(e)}function c(t){return t===34||t===39||t===40?hv(e,l,n,`resourceTitle`,`resourceTitleMarker`,`resourceTitleString`)(t):u(t)}function l(t){return xf(t)?gv(e,u)(t):u(t)}function u(r){return r===41?(e.enter(`resourceMarker`),e.consume(r),e.exit(`resourceMarker`),e.exit(`resource`),t):n(r)}}function Gv(e,t,n){let r=this;return i;function i(t){return mv.call(r,e,a,o,`reference`,`referenceMarker`,`referenceString`)(t)}function a(e){return r.parser.defined.includes(C_(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(e):n(e)}function o(e){return n(e)}}function Kv(e,t,n){return r;function r(t){return e.enter(`reference`),e.enter(`referenceMarker`),e.consume(t),e.exit(`referenceMarker`),i}function i(r){return r===93?(e.enter(`referenceMarker`),e.consume(r),e.exit(`referenceMarker`),e.exit(`reference`),t):n(r)}}var qv={name:`labelStartImage`,resolveAll:Lv.resolveAll,tokenize:Jv};function Jv(e,t,n){let r=this;return i;function i(t){return e.enter(`labelImage`),e.enter(`labelImageMarker`),e.consume(t),e.exit(`labelImageMarker`),a}function a(t){return t===91?(e.enter(`labelMarker`),e.consume(t),e.exit(`labelMarker`),e.exit(`labelImage`),o):n(t)}function o(e){return e===94&&`_hiddenFootnoteSupport`in r.parser.constructs?n(e):t(e)}}var Yv={name:`labelStartLink`,resolveAll:Lv.resolveAll,tokenize:Xv};function Xv(e,t,n){let r=this;return i;function i(t){return e.enter(`labelLink`),e.enter(`labelMarker`),e.consume(t),e.exit(`labelMarker`),e.exit(`labelLink`),a}function a(e){return e===94&&`_hiddenFootnoteSupport`in r.parser.constructs?n(e):t(e)}}var Zv={name:`lineEnding`,tokenize:Qv};function Qv(e,t){return n;function n(n){return e.enter(`lineEnding`),e.consume(n),e.exit(`lineEnding`),Im(e,t,`linePrefix`)}}var $v={name:`thematicBreak`,tokenize:ey};function ey(e,t,n){let r=0,i;return a;function a(t){return e.enter(`thematicBreak`),o(t)}function o(e){return i=e,s(e)}function s(a){return a===i?(e.enter(`thematicBreakSequence`),c(a)):r>=3&&(a===null||q(a))?(e.exit(`thematicBreak`),t(a)):n(a)}function c(t){return t===i?(e.consume(t),r++,c):(e.exit(`thematicBreakSequence`),Sf(t)?Im(e,s,`whitespace`)(t):s(t))}}var ty={continuation:{tokenize:ay},exit:sy,name:`list`,tokenize:iy},ny={partial:!0,tokenize:cy},ry={partial:!0,tokenize:oy};function iy(e,t,n){let r=this,i=r.events[r.events.length-1],a=i&&i[1].type===`linePrefix`?i[2].sliceSerialize(i[1],!0).length:0,o=0;return s;function s(t){let i=r.containerState.type||(t===42||t===43||t===45?`listUnordered`:`listOrdered`);if(i===`listUnordered`?!r.containerState.marker||t===r.containerState.marker:vf(t)){if(r.containerState.type||(r.containerState.type=i,e.enter(i,{_container:!0})),i===`listUnordered`)return e.enter(`listItemPrefix`),t===42||t===45?e.check($v,n,l)(t):l(t);if(!r.interrupt||t===49)return e.enter(`listItemPrefix`),e.enter(`listItemValue`),c(t)}return n(t)}function c(t){return vf(t)&&++o<10?(e.consume(t),c):(!r.interrupt||o<2)&&(r.containerState.marker?t===r.containerState.marker:t===41||t===46)?(e.exit(`listItemValue`),l(t)):n(t)}function l(t){return e.enter(`listItemMarker`),e.consume(t),e.exit(`listItemMarker`),r.containerState.marker=r.containerState.marker||t,e.check(I_,r.interrupt?n:u,e.attempt(ny,f,d))}function u(e){return r.containerState.initialBlankLine=!0,a++,f(e)}function d(t){return Sf(t)?(e.enter(`listItemPrefixWhitespace`),e.consume(t),e.exit(`listItemPrefixWhitespace`),f):n(t)}function f(n){return r.containerState.size=a+r.sliceSerialize(e.exit(`listItemPrefix`),!0).length,t(n)}}function ay(e,t,n){let r=this;return r.containerState._closeFlow=void 0,e.check(I_,i,a);function i(n){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,Im(e,t,`listItemIndent`,r.containerState.size+1)(n)}function a(n){return r.containerState.furtherBlankLines||!Sf(n)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,o(n)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(ry,t,o)(n))}function o(i){return r.containerState._closeFlow=!0,r.interrupt=void 0,Im(e,e.attempt(ty,t,n),`linePrefix`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)(i)}}function oy(e,t,n){let r=this;return Im(e,i,`listItemIndent`,r.containerState.size+1);function i(e){let i=r.events[r.events.length-1];return i&&i[1].type===`listItemIndent`&&i[2].sliceSerialize(i[1],!0).length===r.containerState.size?t(e):n(e)}}function sy(e){e.exit(this.containerState.type)}function cy(e,t,n){let r=this;return Im(e,i,`listItemPrefixWhitespace`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:5);function i(e){let i=r.events[r.events.length-1];return!Sf(e)&&i&&i[1].type===`listItemPrefixWhitespace`?t(e):n(e)}}var ly={name:`setextUnderline`,resolveTo:uy,tokenize:dy};function uy(e,t){let n=e.length,r,i,a;for(;n--;)if(e[n][0]===`enter`){if(e[n][1].type===`content`){r=n;break}e[n][1].type===`paragraph`&&(i=n)}else e[n][1].type===`content`&&e.splice(n,1),!a&&e[n][1].type===`definition`&&(a=n);let o={type:`setextHeading`,start:{...e[r][1].start},end:{...e[e.length-1][1].end}};return e[i][1].type=`setextHeadingText`,a?(e.splice(i,0,[`enter`,o,t]),e.splice(a+1,0,[`exit`,e[r][1],t]),e[r][1].end={...e[a][1].end}):e[r][1]=o,e.push([`exit`,o,t]),e}function dy(e,t,n){let r=this,i;return a;function a(t){let a=r.events.length,s;for(;a--;)if(r.events[a][1].type!==`lineEnding`&&r.events[a][1].type!==`linePrefix`&&r.events[a][1].type!==`content`){s=r.events[a][1].type===`paragraph`;break}return!r.parser.lazy[r.now().line]&&(r.interrupt||s)?(e.enter(`setextHeadingLine`),i=t,o(t)):n(t)}function o(t){return e.enter(`setextHeadingLineSequence`),s(t)}function s(t){return t===i?(e.consume(t),s):(e.exit(`setextHeadingLineSequence`),Sf(t)?Im(e,c,`lineSuffix`)(t):c(t))}function c(r){return r===null||q(r)?(e.exit(`setextHeadingLine`),t(r)):n(r)}}var fy={tokenize:py};function py(e){let t=this,n=e.attempt(I_,r,e.attempt(this.parser.constructs.flowInitial,i,Im(e,e.attempt(this.parser.constructs.flow,i,e.attempt(cv,i)),`linePrefix`)));return n;function r(r){if(r===null){e.consume(r);return}return e.enter(`lineEndingBlank`),e.consume(r),e.exit(`lineEndingBlank`),t.currentConstruct=void 0,n}function i(r){if(r===null){e.consume(r);return}return e.enter(`lineEnding`),e.consume(r),e.exit(`lineEnding`),t.currentConstruct=void 0,n}}var my={resolveAll:vy()},hy=_y(`string`),gy=_y(`text`);function _y(e){return{resolveAll:vy(e===`text`?yy:void 0),tokenize:t};function t(t){let n=this,r=this.parser.constructs[e],i=t.attempt(r,a,o);return a;function a(e){return c(e)?i(e):o(e)}function o(e){if(e===null){t.consume(e);return}return t.enter(`data`),t.consume(e),s}function s(e){return c(e)?(t.exit(`data`),i(e)):(t.consume(e),s)}function c(e){if(e===null)return!0;let t=r[e],i=-1;if(t)for(;++i<t.length;){let e=t[i];if(!e.previous||e.previous.call(n,n.previous))return!0}return!1}}}function vy(e){return t;function t(t,n){let r=-1,i;for(;++r<=t.length;)i===void 0?t[r]&&t[r][1].type===`data`&&(i=r,r++):(!t[r]||t[r][1].type!==`data`)&&(r!==i+2&&(t[i][1].end=t[r-1][1].end,t.splice(i+2,r-i-2),r=i+2),i=void 0);return e?e(t,n):t}}function yy(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||e[n][1].type===`lineEnding`)&&e[n-1][1].type===`data`){let r=e[n-1][1],i=t.sliceStream(r),a=i.length,o=-1,s=0,c;for(;a--;){let e=i[a];if(typeof e==`string`){for(o=e.length;e.charCodeAt(o-1)===32;)s++,o--;if(o)break;o=-1}else if(e===-2)c=!0,s++;else if(e!==-1){a++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(s=0),s){let i={type:n===e.length||c||s<2?`lineSuffix`:`hardBreakTrailing`,start:{_bufferIndex:a?o:r.start._bufferIndex+o,_index:r.start._index+a,line:r.end.line,column:r.end.column-s,offset:r.end.offset-s},end:{...r.end}};r.end={...i.start},r.start.offset===r.end.offset?Object.assign(r,i):(e.splice(n,0,[`enter`,i,t],[`exit`,i,t]),n+=2)}n++}return e}var by=dt({attentionMarkers:()=>Oy,contentInitial:()=>Sy,disable:()=>ky,document:()=>xy,flow:()=>wy,flowInitial:()=>Cy,insideSpan:()=>Dy,string:()=>Ty,text:()=>Ey}),xy={42:ty,43:ty,45:ty,48:ty,49:ty,50:ty,51:ty,52:ty,53:ty,54:ty,55:ty,56:ty,57:ty,62:R_},Sy={91:_v},Cy={[-2]:X_,[-1]:X_,32:X_},wy={35:Cv,42:$v,45:[ly,$v],60:Ov,61:ly,95:$v,96:q_,126:q_},Ty={38:W_,92:H_},Ey={[-5]:Zv,[-4]:Zv,[-3]:Zv,33:qv,38:W_,42:A_,60:[P_,Fv],91:Yv,92:[xv,H_],93:Lv,95:A_,96:ev},Dy={null:[A_,my]},Oy={null:[42,95]},ky={null:[]};function Ay(e,t,n){let r={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0},i={},a=[],o=[],s=[],c={attempt:C(x),check:C(S),consume:v,enter:y,exit:b,interrupt:C(S,{interrupt:!0})},l={code:null,containerState:{},defineSkip:h,events:[],now:m,parser:e,previous:null,sliceSerialize:f,sliceStream:p,write:d},u=t.tokenize.call(l,c);return t.resolveAll&&a.push(t),l;function d(e){return o=pf(o,e),g(),o[o.length-1]===null?(w(t,0),l.events=Df(a,l.events,l),l.events):[]}function f(e,t){return My(p(e),t)}function p(e){return jy(o,e)}function m(){let{_bufferIndex:e,_index:t,line:n,column:i,offset:a}=r;return{_bufferIndex:e,_index:t,line:n,column:i,offset:a}}function h(e){i[e.line]=e.column,E()}function g(){let e;for(;r._index<o.length;){let t=o[r._index];if(typeof t==`string`)for(e=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===e&&r._bufferIndex<t.length;)_(t.charCodeAt(r._bufferIndex));else _(t)}}function _(e){u=u(e)}function v(e){q(e)?(r.line++,r.column=1,r.offset+=e===-3?2:1,E()):e!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===o[r._index].length&&(r._bufferIndex=-1,r._index++)),l.previous=e}function y(e,t){let n=t||{};return n.type=e,n.start=m(),l.events.push([`enter`,n,l]),s.push(n),n}function b(e){let t=s.pop();return t.end=m(),l.events.push([`exit`,t,l]),t}function x(e,t){w(e,t.from)}function S(e,t){t.restore()}function C(e,t){return n;function n(n,r,i){let a,o,s,u;return Array.isArray(n)?f(n):`tokenize`in n?f([n]):d(n);function d(e){return t;function t(t){let n=t!==null&&e[t],r=t!==null&&e.null;return f([...Array.isArray(n)?n:n?[n]:[],...Array.isArray(r)?r:r?[r]:[]])(t)}}function f(e){return a=e,o=0,e.length===0?i:p(e[o])}function p(e){return n;function n(n){return u=T(),s=e,e.partial||(l.currentConstruct=e),e.name&&l.parser.constructs.disable.null.includes(e.name)?h(n):e.tokenize.call(t?Object.assign(Object.create(l),t):l,c,m,h)(n)}}function m(t){return e(s,u),r}function h(e){return u.restore(),++o<a.length?p(a[o]):i}}}function w(e,t){e.resolveAll&&!a.includes(e)&&a.push(e),e.resolve&&ff(l.events,t,l.events.length-t,e.resolve(l.events.slice(t),l)),e.resolveTo&&(l.events=e.resolveTo(l.events,l))}function T(){let e=m(),t=l.previous,n=l.currentConstruct,i=l.events.length,a=Array.from(s);return{from:i,restore:o};function o(){r=e,l.previous=t,l.currentConstruct=n,l.events.length=i,s=a,E()}}function E(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}}function jy(e,t){let n=t.start._index,r=t.start._bufferIndex,i=t.end._index,a=t.end._bufferIndex,o;if(n===i)o=[e[n].slice(r,a)];else{if(o=e.slice(n,i),r>-1){let e=o[0];typeof e==`string`?o[0]=e.slice(r):o.shift()}a>0&&o.push(e[i].slice(0,a))}return o}function My(e,t){let n=-1,r=[],i;for(;++n<e.length;){let a=e[n],o;if(typeof a==`string`)o=a;else switch(a){case-5:o=`\r`;break;case-4:o=`
|
|
77
|
+
`;break;case-3:o=`\r
|
|
78
|
+
`;break;case-2:o=t?` `:` `;break;case-1:if(!t&&i)continue;o=` `;break;default:o=String.fromCharCode(a)}i=a===-2,r.push(o)}return r.join(``)}function Ny(e){let t={constructs:b_([by,...(e||{}).extensions||[]]),content:n(w_),defined:[],document:n(E_),flow:n(fy),lazy:{},string:n(hy),text:n(gy)};return t;function n(e){return n;function n(n){return Ay(t,e,n)}}}function Py(e){for(;!ov(e););return e}var Fy=/[\0\t\n\r]/g;function Iy(){let e=1,t=``,n=!0,r;return i;function i(i,a,o){let s=[],c,l,u,d,f;for(i=t+(typeof i==`string`?i.toString():new TextDecoder(a||void 0).decode(i)),u=0,t=``,n&&=(i.charCodeAt(0)===65279&&u++,void 0);u<i.length;){if(Fy.lastIndex=u,c=Fy.exec(i),d=c&&c.index!==void 0?c.index:i.length,f=i.charCodeAt(d),!c){t=i.slice(u);break}if(f===10&&u===d&&r)s.push(-3),r=void 0;else switch(r&&=(s.push(-5),void 0),u<d&&(s.push(i.slice(u,d)),e+=d-u),f){case 0:s.push(65533),e++;break;case 9:for(l=Math.ceil(e/4)*4,s.push(-2);e++<l;)s.push(-1);break;case 10:s.push(-4),e=1;break;default:r=!0,e=1}u=d+1}return o&&(r&&s.push(-5),t&&s.push(t),s.push(null)),s}}var Ly={}.hasOwnProperty;function Ry(e,t,n){return t&&typeof t==`object`&&(n=t,t=void 0),zy(n)(Py(Ny(n).document().write(Iy()(e,t,!0))))}function zy(e){let t={transforms:[],canContainEols:[`emphasis`,`fragment`,`heading`,`paragraph`,`strong`],enter:{autolink:a(be),autolinkProtocol:T,autolinkEmail:T,atxHeading:a(ge),blockQuote:a(de),characterEscape:T,characterReference:T,codeFenced:a(fe),codeFencedFenceInfo:o,codeFencedFenceMeta:o,codeIndented:a(fe,o),codeText:a(pe,o),codeTextData:T,data:T,codeFlowValue:T,definition:a(me),definitionDestinationString:o,definitionLabelString:o,definitionTitleString:o,emphasis:a(he),hardBreakEscape:a(_e),hardBreakTrailing:a(_e),htmlFlow:a(ve,o),htmlFlowData:T,htmlText:a(ve,o),htmlTextData:T,image:a(ye),label:o,link:a(be),listItem:a(Se),listItemValue:f,listOrdered:a(xe,d),listUnordered:a(xe),paragraph:a(Ce),reference:ae,referenceString:o,resourceDestinationString:o,resourceTitleString:o,setextHeading:a(ge),strong:a(we),thematicBreak:a(Ee)},exit:{atxHeading:c(),atxHeadingSequence:x,autolink:c(),autolinkEmail:ue,autolinkProtocol:le,blockQuote:c(),characterEscapeValue:E,characterReferenceMarkerHexadecimal:P,characterReferenceMarkerNumeric:P,characterReferenceValue:se,characterReference:ce,codeFenced:c(g),codeFencedFence:h,codeFencedFenceInfo:p,codeFencedFenceMeta:m,codeFlowValue:E,codeIndented:c(_),codeText:c(A),codeTextData:E,data:E,definition:c(),definitionDestinationString:b,definitionLabelString:v,definitionTitleString:y,emphasis:c(),hardBreakEscape:c(D),hardBreakTrailing:c(D),htmlFlow:c(O),htmlFlowData:E,htmlText:c(k),htmlTextData:E,image:c(M),label:te,labelText:N,lineEnding:ee,link:c(j),listItem:c(),listOrdered:c(),listUnordered:c(),paragraph:c(),referenceString:oe,resourceDestinationString:ne,resourceTitleString:re,resource:ie,setextHeading:c(w),setextHeadingLineSequence:C,setextHeadingText:S,strong:c(),thematicBreak:c()}};Vy(t,(e||{}).mdastExtensions||[]);let n={};return r;function r(e){let r={type:`root`,children:[]},a={stack:[r],tokenStack:[],config:t,enter:s,exit:l,buffer:o,resume:u,data:n},c=[],d=-1;for(;++d<e.length;)(e[d][1].type===`listOrdered`||e[d][1].type===`listUnordered`)&&(e[d][0]===`enter`?c.push(d):d=i(e,c.pop(),d));for(d=-1;++d<e.length;){let n=t[e[d][0]];Ly.call(n,e[d][1].type)&&n[e[d][1].type].call(Object.assign({sliceSerialize:e[d][2].sliceSerialize},a),e[d][1])}if(a.tokenStack.length>0){let e=a.tokenStack[a.tokenStack.length-1];(e[1]||Uy).call(a,void 0,e[0])}for(r.position={start:By(e.length>0?e[0][1].start:{line:1,column:1,offset:0}),end:By(e.length>0?e[e.length-2][1].end:{line:1,column:1,offset:0})},d=-1;++d<t.transforms.length;)r=t.transforms[d](r)||r;return r}function i(e,t,n){let r=t-1,i=-1,a=!1,o,s,c,l;for(;++r<=n;){let t=e[r];switch(t[1].type){case`listUnordered`:case`listOrdered`:case`blockQuote`:t[0]===`enter`?i++:i--,l=void 0;break;case`lineEndingBlank`:t[0]===`enter`&&(o&&!l&&!i&&!c&&(c=r),l=void 0);break;case`linePrefix`:case`listItemValue`:case`listItemMarker`:case`listItemPrefix`:case`listItemPrefixWhitespace`:break;default:l=void 0}if(!i&&t[0]===`enter`&&t[1].type===`listItemPrefix`||i===-1&&t[0]===`exit`&&(t[1].type===`listUnordered`||t[1].type===`listOrdered`)){if(o){let i=r;for(s=void 0;i--;){let t=e[i];if(t[1].type===`lineEnding`||t[1].type===`lineEndingBlank`){if(t[0]===`exit`)continue;s&&(e[s][1].type=`lineEndingBlank`,a=!0),t[1].type=`lineEnding`,s=i}else if(!(t[1].type===`linePrefix`||t[1].type===`blockQuotePrefix`||t[1].type===`blockQuotePrefixWhitespace`||t[1].type===`blockQuoteMarker`||t[1].type===`listItemIndent`))break}c&&(!s||c<s)&&(o._spread=!0),o.end=Object.assign({},s?e[s][1].start:t[1].end),e.splice(s||r,0,[`exit`,o,t[2]]),r++,n++}if(t[1].type===`listItemPrefix`){let i={type:`listItem`,_spread:!1,start:Object.assign({},t[1].start),end:void 0};o=i,e.splice(r,0,[`enter`,i,t[2]]),r++,n++,c=void 0,l=!0}}}return e[t][1]._spread=a,n}function a(e,t){return n;function n(n){s.call(this,e(n),n),t&&t.call(this,n)}}function o(){this.stack.push({type:`fragment`,children:[]})}function s(e,t,n){this.stack[this.stack.length-1].children.push(e),this.stack.push(e),this.tokenStack.push([t,n||void 0]),e.position={start:By(t.start),end:void 0}}function c(e){return t;function t(t){e&&e.call(this,t),l.call(this,t)}}function l(e,t){let n=this.stack.pop(),r=this.tokenStack.pop();if(r)r[0].type!==e.type&&(t?t.call(this,e,r[0]):(r[1]||Uy).call(this,e,r[0]));else throw Error("Cannot close `"+e.type+"` ("+fp({start:e.start,end:e.end})+`): it’s not open`);n.position.end=By(e.end)}function u(){return Zh(this.stack.pop())}function d(){this.data.expectingFirstListItemValue=!0}function f(e){if(this.data.expectingFirstListItemValue){let t=this.stack[this.stack.length-2];t.start=Number.parseInt(this.sliceSerialize(e),10),this.data.expectingFirstListItemValue=void 0}}function p(){let e=this.resume(),t=this.stack[this.stack.length-1];t.lang=e}function m(){let e=this.resume(),t=this.stack[this.stack.length-1];t.meta=e}function h(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function g(){let e=this.resume(),t=this.stack[this.stack.length-1];t.value=e.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,``),this.data.flowCodeInside=void 0}function _(){let e=this.resume(),t=this.stack[this.stack.length-1];t.value=e.replace(/(\r?\n|\r)$/g,``)}function v(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=C_(this.sliceSerialize(e)).toLowerCase()}function y(){let e=this.resume(),t=this.stack[this.stack.length-1];t.title=e}function b(){let e=this.resume(),t=this.stack[this.stack.length-1];t.url=e}function x(e){let t=this.stack[this.stack.length-1];t.depth||=this.sliceSerialize(e).length}function S(){this.data.setextHeadingSlurpLineEnding=!0}function C(e){let t=this.stack[this.stack.length-1];t.depth=this.sliceSerialize(e).codePointAt(0)===61?1:2}function w(){this.data.setextHeadingSlurpLineEnding=void 0}function T(e){let t=this.stack[this.stack.length-1].children,n=t[t.length-1];(!n||n.type!==`text`)&&(n=Te(),n.position={start:By(e.start),end:void 0},t.push(n)),this.stack.push(n)}function E(e){let t=this.stack.pop();t.value+=this.sliceSerialize(e),t.position.end=By(e.end)}function ee(e){let n=this.stack[this.stack.length-1];if(this.data.atHardBreak){let t=n.children[n.children.length-1];t.position.end=By(e.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(n.type)&&(T.call(this,e),E.call(this,e))}function D(){this.data.atHardBreak=!0}function O(){let e=this.resume(),t=this.stack[this.stack.length-1];t.value=e}function k(){let e=this.resume(),t=this.stack[this.stack.length-1];t.value=e}function A(){let e=this.resume(),t=this.stack[this.stack.length-1];t.value=e}function j(){let e=this.stack[this.stack.length-1];if(this.data.inReference){let t=this.data.referenceType||`shortcut`;e.type+=`Reference`,e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}function M(){let e=this.stack[this.stack.length-1];if(this.data.inReference){let t=this.data.referenceType||`shortcut`;e.type+=`Reference`,e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}function N(e){let t=this.sliceSerialize(e),n=this.stack[this.stack.length-2];n.label=zg(t),n.identifier=C_(t).toLowerCase()}function te(){let e=this.stack[this.stack.length-1],t=this.resume(),n=this.stack[this.stack.length-1];this.data.inReference=!0,n.type===`link`?n.children=e.children:n.alt=t}function ne(){let e=this.resume(),t=this.stack[this.stack.length-1];t.url=e}function re(){let e=this.resume(),t=this.stack[this.stack.length-1];t.title=e}function ie(){this.data.inReference=void 0}function ae(){this.data.referenceType=`collapsed`}function oe(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=C_(this.sliceSerialize(e)).toLowerCase(),this.data.referenceType=`full`}function P(e){this.data.characterReferenceType=e.type}function se(e){let t=this.sliceSerialize(e),n=this.data.characterReferenceType,r;n?(r=Lg(t,n===`characterReferenceMarkerNumeric`?10:16),this.data.characterReferenceType=void 0):r=Zf(t);let i=this.stack[this.stack.length-1];i.value+=r}function ce(e){let t=this.stack.pop();t.position.end=By(e.end)}function le(e){E.call(this,e);let t=this.stack[this.stack.length-1];t.url=this.sliceSerialize(e)}function ue(e){E.call(this,e);let t=this.stack[this.stack.length-1];t.url=`mailto:`+this.sliceSerialize(e)}function de(){return{type:`blockquote`,children:[]}}function fe(){return{type:`code`,lang:null,meta:null,value:``}}function pe(){return{type:`inlineCode`,value:``}}function me(){return{type:`definition`,identifier:``,label:null,title:null,url:``}}function he(){return{type:`emphasis`,children:[]}}function ge(){return{type:`heading`,depth:0,children:[]}}function _e(){return{type:`break`}}function ve(){return{type:`html`,value:``}}function ye(){return{type:`image`,title:null,url:``,alt:null}}function be(){return{type:`link`,title:null,url:``,children:[]}}function xe(e){return{type:`list`,ordered:e.type===`listOrdered`,start:null,spread:e._spread,children:[]}}function Se(e){return{type:`listItem`,spread:e._spread,checked:null,children:[]}}function Ce(){return{type:`paragraph`,children:[]}}function we(){return{type:`strong`,children:[]}}function Te(){return{type:`text`,value:``}}function Ee(){return{type:`thematicBreak`}}}function By(e){return{line:e.line,column:e.column,offset:e.offset}}function Vy(e,t){let n=-1;for(;++n<t.length;){let r=t[n];Array.isArray(r)?Vy(e,r):Hy(e,r)}}function Hy(e,t){let n;for(n in t)if(Ly.call(t,n))switch(n){case`canContainEols`:{let r=t[n];r&&e[n].push(...r);break}case`transforms`:{let r=t[n];r&&e[n].push(...r);break}case`enter`:case`exit`:{let r=t[n];r&&Object.assign(e[n],r);break}}}function Uy(e,t){throw Error(e?"Cannot close `"+e.type+"` ("+fp({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+fp({start:t.start,end:t.end})+`) is open`:"Cannot close document, a token (`"+t.type+"`, "+fp({start:t.start,end:t.end})+`) is still open`)}function Wy(e){return e.children instanceof Array}var Gy=class extends Error{constructor(e,t){super(e),this.name=`MarkdownParseError`,this.cause=t}},Ky=class extends Error{constructor(e){super(e),this.name=`UnrecognizedMarkdownConstructError`}};function qy(e){let t=new Map;return e.type===`root`?(e.children.filter(e=>e.type===`mdxjsEsm`).filter(e=>e.value.startsWith(`import `)).forEach(e=>{(e.data?.estree?.body??[]).forEach(e=>{e.type===`ImportDeclaration`&&e.specifiers.forEach(n=>{t.set(n.local.name,{source:`${e.source.value}`,defaultExport:n.type===`ImportDefaultSpecifier`})})})}),{importDeclarations:Object.fromEntries(t.entries())}):{importDeclarations:{}}}function Jy({root:e,markdown:t,visitors:n,syntaxExtensions:r,mdastExtensions:i,...a}){let o;try{o=Ry(t,{extensions:r,mdastExtensions:i})}catch(e){throw e instanceof Error?new Gy(`Error parsing markdown: ${e.message}`,e):new Gy(`Error parsing markdown: ${e}`,e)}o.children.length===0&&o.children.push({type:`paragraph`,children:[]}),o.children.at(-1)?.type!==`paragraph`&&o.children.push({type:`paragraph`,children:[]}),Yy({root:e,mdastRoot:o,visitors:n,...a})}function Yy({root:e,mdastRoot:t,visitors:n,...r}){let i=new WeakMap,a=new WeakMap,o=qy(t);n=n.sort((e,t)=>(t.priority??0)-(e.priority??0));function s(e,t){if(!Wy(e))throw Error(`Attempting to visit children of a non-parent`);e.children.forEach(n=>{c(n,t,e)})}function c(e,t,l,u=null){let d=n.find((t,n)=>u?.has(n)?!1:typeof t.testNode==`string`?t.testNode===e.type:t.testNode(e,r));if(!d)try{throw new Ky(`Unsupported markdown syntax: ${Qg(e)}`)}catch{throw new Ky(`Parsing of the following markdown structure failed: ${JSON.stringify({type:e.type,name:`name`in e?e.name:`N/A`})}`)}d.visitNode({mdastNode:e,lexicalParent:t,mdastParent:l,descriptors:r,metaData:o,actions:{visitChildren:s,nextVisitor(){c(e,t,l,(u??new Set).add(n.indexOf(d)))},addAndStepInto(n){t.append(n),Wy(e)&&s(e,n)},addFormatting(t,n){n||Wy(e)&&(n=e),n&&i.set(n,t|(i.get(l)??0))},removeFormatting(t,n){n||Wy(e)&&(n=e),n&&i.set(n,t^(i.get(l)??0))},getParentFormatting(){return i.get(l)??0},addStyle(t,n){n||Wy(e)&&(n=e),n&&a.set(n,t)},getParentStyle(){return a.get(l)??``}}})}c(t,e,null)}var Xy=Object.defineProperty,Zy=(e,t,n)=>t in e?Xy(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Qy=(e,t,n)=>(Zy(e,typeof t==`symbol`?t:t+``,n),n),$y=`generic-html`,eb=class e extends ws{constructor(e,t,n,r){super(r),Qy(this,`__tag`),Qy(this,`__nodeType`),Qy(this,`__attributes`),this.__tag=e,this.__nodeType=t,this.__attributes=n}static getType(){return $y}static clone(t){return new e(t.__tag,t.__nodeType,t.__attributes,t.__key)}getTag(){return this.__tag}getNodeType(){return this.__nodeType}getAttributes(){return this.__attributes}updateAttributes(e){let t=this.getWritable();t.__attributes=e}getStyle(){return this.__attributes.find(e=>e.name===`style`)?.value}createDOM(){let e=this.__tag,t=document.createElement(e);return this.__attributes.forEach(e=>{t.setAttribute(e.name,e.value)}),t}updateDOM(){return!1}static importDOM(){return{}}exportDOM(e){let{element:t}=super.exportDOM(e);return{element:t}}static importJSON(e){let t=tb(e.tag,e.mdxType,e.attributes);return t.setFormat(e.format),t.setIndent(e.indent),t.setDirection(e.direction),t}exportJSON(){return{...super.exportJSON(),tag:this.getTag(),attributes:this.__attributes,mdxType:this.__nodeType,type:$y,version:1}}extractWithChild(){return!0}isInline(){return this.__nodeType===`mdxJsxTextElement`}};function tb(e,t,n){return nl(new eb(e,t,n))}function nb(e){return e instanceof eb}var rb={testLexicalNode:nb,visitLexicalNode({actions:e,lexicalNode:t}){e.addAndStepInto(`mdxJsxTextElement`,{name:t.getTag(),type:t.getNodeType(),attributes:t.getAttributes()})},priority:-100},ib={testLexicalNode:Za,visitLexicalNode:({mdastParent:e,actions:t})=>{t.appendToParent(e,{type:`text`,value:`
|
|
79
|
+
`})}},ab={testLexicalNode:Bs,visitLexicalNode:({actions:e})=>{e.addAndStepInto(`paragraph`)}},ob={testLexicalNode:ks,visitLexicalNode:({actions:e})=>{e.addAndStepInto(`root`)}};function sb(e){return e.type===`text`}var cb=[`u`,`span`,`sub`,`sup`],lb={shouldJoin:(e,t)=>{if([`text`,`emphasis`,`strong`,`highlight`].includes(e.type))return e.type===t.type;if(e.type===`mdxJsxTextElement`&&t.type===`mdxJsxTextElement`&&cb.includes(t.name)){let n=t;return e.name===n.name&&JSON.stringify(e.attributes)===JSON.stringify(n.attributes)}return!1},join(e,t){return sb(e)&&sb(t)?{type:`text`,value:e.value+t.value}:{...e,children:[...e.children,...t.children]}},testLexicalNode:H,visitLexicalNode:({lexicalNode:e,mdastParent:t,actions:n})=>{let r=e.getPreviousSibling(),i=H(r)?r.getFormat():0,a=e.getTextContent(),o=e.getFormat(),s=e.getStyle(),c=t;if(s&&(c=n.appendToParent(c,{type:`mdxJsxTextElement`,name:`span`,children:[],attributes:[{type:`mdxJsxAttribute`,name:`style`,value:s}]})),i&o&8&&(c=n.appendToParent(c,{type:`mdxJsxTextElement`,name:`u`,children:[],attributes:[]})),i&o&64&&(c=n.appendToParent(c,{type:`mdxJsxTextElement`,name:`sup`,children:[],attributes:[]})),i&o&32&&(c=n.appendToParent(c,{type:`mdxJsxTextElement`,name:`sub`,children:[],attributes:[]})),i&o&2&&(c=n.appendToParent(c,{type:`emphasis`,children:[]})),i&o&1&&(c=n.appendToParent(c,{type:`strong`,children:[]})),i&o&4&&(c=n.appendToParent(c,{type:`delete`,children:[]})),i&o&128&&(c=n.appendToParent(c,{type:`highlight`,children:[]})),o&8&&!(i&8)&&(c=n.appendToParent(c,{type:`mdxJsxTextElement`,name:`u`,children:[],attributes:[]})),o&64&&!(i&64)&&(c=n.appendToParent(c,{type:`mdxJsxTextElement`,name:`sup`,children:[],attributes:[]})),o&32&&!(i&32)&&(c=n.appendToParent(c,{type:`mdxJsxTextElement`,name:`sub`,children:[],attributes:[]})),o&2&&!(i&2)&&(c=n.appendToParent(c,{type:`emphasis`,children:[]})),o&1&&!(i&1)&&(c=n.appendToParent(c,{type:`strong`,children:[]})),o&4&&!(i&4)&&(c=n.appendToParent(c,{type:`delete`,children:[]})),o&128&&!(i&128)&&(c=n.appendToParent(c,{type:`highlight`,children:[]})),o&16){n.appendToParent(c,{type:`inlineCode`,value:a});return}n.appendToParent(c,{type:`text`,value:a})}},ub={testNode:`break`,visitNode:function({lexicalParent:e}){e.append(Xa())}};function db(e,t){return[{testNode:t=>t.type===`mdxJsxTextElement`&&t.name===e,visitNode({actions:e,mdastNode:n,lexicalParent:r}){e.addFormatting(t),e.visitChildren(n,r)}},{testNode:t=>t.type===`html`&&t.value===`<${e}>`,visitNode({actions:e,mdastParent:n}){e.addFormatting(t,n)}},{testNode:t=>t.type===`html`&&t.value===`</${e}>`,visitNode({actions:e,mdastParent:n}){e.removeFormatting(t,n)}}]}var fb={testNode:`delete`,visitNode({mdastNode:e,actions:t,lexicalParent:n}){t.addFormatting(4),t.visitChildren(e,n)}},pb={testNode:`highlight`,visitNode({mdastNode:e,actions:t,lexicalParent:n}){t.addFormatting(128),t.visitChildren(e,n)}},mb={testNode:`inlineCode`,visitNode({mdastNode:e,actions:t}){t.addAndStepInto(ho(e.value).setFormat(t.getParentFormatting()|16))}},hb=[{testNode:`emphasis`,visitNode({mdastNode:e,actions:t,lexicalParent:n}){t.addFormatting(2),t.visitChildren(e,n)}},{testNode:`strong`,visitNode({mdastNode:e,actions:t,lexicalParent:n}){t.addFormatting(1),t.visitChildren(e,n)}},...db(`u`,8),...db(`code`,16),mb,fb,pb,...db(`sup`,64),...db(`sub`,32)],gb={testNode:o_,visitNode:function({mdastNode:e,actions:t,lexicalParent:n}){e.name===`span`&&e.attributes.length===1&&e.attributes[0].type===`mdxJsxAttribute`&&e.attributes[0].name===`style`?(t.addStyle(e.attributes[0].value,e),t.visitChildren(e,n)):t.addAndStepInto(tb(e.name,e.type,e.attributes))},priority:-100},_b=[`listitem`,`admonition`],vb={testNode:`paragraph`,visitNode:function({mdastNode:e,lexicalParent:t,actions:n}){_b.includes(t.getType())?n.visitChildren(e,t):n.addAndStepInto(zs())}},yb={testNode:`root`,visitNode({actions:e,mdastNode:t,lexicalParent:n}){e.visitChildren(t,n)}},bb={testNode:`text`,visitNode({mdastNode:e,actions:t}){let n=ho(e.value);n.setFormat(t.getParentFormatting());let r=t.getParentStyle();r!==``&&n.setStyle(r),t.addAndStepInto(n)}},xb=()=>L.createElement(xd,{externalHistoryState:xn(zx)});function Sb(e){return{canContainEols:[`comment`],enter:{comment(e){this.buffer()}},exit:{comment(e){this.resume()}}}}var Cb=(e,t,n)=>{return r;function r(t){return e.enter(`comment`),e.consume(t),i}function i(t){return t===Sm.exclamationMark?(e.consume(t),a):n(t)}function a(t){return t===Sm.dash?(e.consume(t),o):n(t)}function o(t){return t===Sm.dash?(e.consume(t),s):n(t)}function s(t){return t===Sm.greaterThan?n(t):q(t)?u(t):(e.enter(wm.data),t===Sm.dash?(e.consume(t),c):l(t))}function c(e){return e===Sm.greaterThan?n(e):l(e)}function l(t){return t===Sm.eof?n(t):t===Sm.dash?(e.consume(t),f):q(t)?(e.exit(wm.data),u(t)):(e.consume(t),l)}function u(t){return e.enter(wm.lineEnding),e.consume(t),e.exit(wm.lineEnding),Im(e,d,wm.linePrefix)}function d(t){return q(t)?u(t):(e.enter(wm.data),l(t))}function f(t){return t===Sm.dash?(e.consume(t),p):l(t)}function p(n){return n===Sm.greaterThan?(e.exit(wm.data),e.enter(`commentEnd`),e.consume(n),e.exit(`commentEnd`),e.exit(`comment`),t(n)):n===Sm.dash?(e.consume(n),p):l(n)}},wb={flow:{60:{tokenize:Cb,concrete:!0}},text:{60:{tokenize:Cb}}},Tb={bold:`_bold_1tncs_10`,italic:`_italic_1tncs_14`,underline:`_underline_1tncs_18`,strikethrough:`_strikethrough_1tncs_34`,underlineStrikethrough:`_underlineStrikethrough_1tncs_38`,subscript:`_subscript_1tncs_42`,superscript:`_superscript_1tncs_47`,code:`_code_1tncs_52`,nestedListItem:`_nestedListItem_1tncs_59`,listitem:`_listitem_1tncs_69`,listItemChecked:`_listItemChecked_1tncs_73`,listItemUnchecked:`_listItemUnchecked_1tncs_74`,admonitionDanger:`_admonitionDanger_1tncs_151`,admonitionInfo:`_admonitionInfo_1tncs_152`,admonitionNote:`_admonitionNote_1tncs_153`,admonitionTip:`_admonitionTip_1tncs_154`,admonitionCaution:`_admonitionCaution_1tncs_155`,mdxExpression:`_mdxExpression_1tncs_188`},Eb={text:{bold:Tb.bold,italic:Tb.italic,underline:Tb.underline,code:Tb.code,strikethrough:Tb.strikethrough,subscript:Tb.subscript,superscript:Tb.superscript,underlineStrikethrough:Tb.underlineStrikethrough},list:{listitem:Tb.listitem,listitemChecked:Tb.listItemChecked,listitemUnchecked:Tb.listItemUnchecked,nested:{listitem:Tb.nestedListItem}},admonition:{danger:Tb.admonitionDanger,info:Tb.admonitionInfo,note:Tb.admonitionNote,tip:Tb.admonitionTip,caution:Tb.admonitionCaution}},Db=V(`NESTED_EDITOR_UPDATED_COMMAND`),Ob=z(null),kb=z(null),Ab=z(``),jb=z(!0),Mb=z(!1,e=>{e.sub(e.pipe(Mb,Tn(Ob)),([e,t])=>{t?.setEditable(!e)})}),Nb=z(``),Pb=z(!1),Fb=z(!1),Ib=z(0),Lb=z(null),Rb=_n(e=>{e.link(e.pipe(Lb,Dn(e=>e!==null)),Rb)}),zb=_n(e=>{e.sub(e.pipe(zb,Tn(kb)),([e,t])=>{t?.dispatchCommand(Ii,e)})}),Bb=z(null,e=>{e.sub(e.pipe(Bb,Tn(kb)),([t,n])=>{if(!t||!n)return;let r=t.anchor.getNode(),i=r.getKey()===`root`?r:ed(r,e=>{let t=e.getParent();return t!==null&&el(t)});i??=r.getTopLevelElementOrThrow();let a=i.getKey();if(n.getElementByKey(a)!==null){let t=of(i)?i.getTag():i.getType();e.pub(Bx,t)}})}),Vb=z(``),Hb=z(``),Ub=z(!1),Wb=_n(e=>{e.link(Hb,Wb),e.sub(Vb,t=>{e.pubIn({[Ub]:!0,[Hb]:t})})}),Gb=_n(e=>{e.link(e.pipe(Wb,Tn(fx),Dn(([,e])=>!e),wn(([e])=>e)),Gb)},!0),Kb=z([]),qb=z([]),Jb=z([]),Yb=z([]),Xb=z([]),Zb=z([]),Qb=z({}),$b=z(!1),ex=z([]),tx=z([]),nx=z([]),rx=z(null),ix=z(null),ax=z(null),ox=Sx(qb),sx=Sx(Kb),cx=Sx(Jb),lx=Sx(Yb),ux=Sx(Xb),dx=Sx(Zb),fx=z(!1),px=_n(e=>{e.sub(e.pipe(px,Tn(Hb,Ob,Fb),Dn(([e,t])=>e.trim()!==t.trim())),([t,,n,r])=>{e.pub(fx,!0),n?.update(()=>{bc().clear(),Ex(e,bc(),t),r?n.focus():Sc(null)},{onUpdate:()=>{e.pub(fx,!1)}})})}),mx=_n(e=>{e.sub(e.pipe(mx,Tn(kb,Fb)),([t,n,r])=>{n?.update(()=>{let i=W();if(i!==null){let n={children:[],append(e){this.children.push(e)},getType(){return i.getNodes()[0].getType()}};Ex(e,n,t),Jo(n.children)}r?n.focus():Sc(null)})})});function hx(){return On((e,[t,n])=>(e.forEach(e=>{if(!e)throw Error(`You have a subscription that does not return a teardown`);e()}),n?t.map(e=>e(n)):[]),[])}var gx=z(null),_x=z([],e=>{e.pipe(e.combine(_x,kb),hx())}),vx=z([],e=>{e.pipe(e.combine(vx,Ob),hx())}),yx=z(null,An,(e,t)=>!!(e&&t&&e.editorRef===t.editorRef)),bx=_n(),xx=z(e=>{throw Error(`No icon component for ${e}`)});function Sx(e,t){return _n((n,r)=>{n.changeWith(e,r,(e,t)=>{Array.isArray(t)||(t=[t]);let n=e;for(let r of t)e.includes(r)||(n=[...n,r]);return n}),t?.(n,r)})}function Cx(e){let t=W();U(t)&&e.pubIn({[Bb]:t,[Ib]:t.format})}var wx=Sx(vx,(e,t)=>{e.pub(t,[t=>t.registerCommand(Ti,(t,n)=>(e.pubIn({[kb]:n,[Fb]:!0}),n._parentEditor===null&&n.getEditorState().read(()=>{e.pub(yx,{rootNode:bc(),editorType:`lexical`,editorRef:n})}),Cx(e),!1),4),t=>t.registerUpdateListener(({dirtyElements:n,dirtyLeaves:r,editorState:i})=>{if(e.getValue(Lb)!==null||n.size===0&&r.size===0)return;let a;i.read(()=>{bc().getLastChild()instanceof Es&&t.update(()=>{bc().append(zs())},{discrete:!0}),a=v_({root:bc(),visitors:e.getValue(Xb),jsxComponentDescriptors:e.getValue(ex),toMarkdownExtensions:e.getValue(Zb),toMarkdownOptions:e.getValue(Qb),jsxIsAvailable:e.getValue($b)})}),e.pub(Hb,a.trim()),e.pub(Ub,!1)}),t=>t.registerCommand(pa,()=>(e.pub(Fb,!0),!1),4)])}),Tx=Sx(_x,(e,t)=>{e.pub(t,[t=>t.registerUpdateListener(({editorState:t})=>{t.read(()=>{Cx(e)})}),t=>t.registerCommand(ma,t=>{let n=e.getValue(Ob);return n&&(n.getRootElement()?.contains(t.relatedTarget)||e.pubIn({[Fb]:!1,[bx]:t})),!1},4)])});function Ex(e,t,n){try{Jy({root:t,visitors:e.getValue(Kb),mdastExtensions:e.getValue(Yb),markdown:n,syntaxExtensions:e.getValue(Jb),jsxComponentDescriptors:e.getValue(ex),directiveDescriptors:e.getValue(tx),codeBlockEditorDescriptors:e.getValue(nx)}),e.pub(Lb,null)}catch(t){if(t instanceof Gy||t instanceof Ky)e.pubIn({[Hb]:n,[Lb]:{error:t.message,source:n}});else throw t}}var Dx=z([]),Ox=Sx(Dx),kx=z([]),Ax=Sx(kx),jx=z([]),Mx=Sx(jx),Nx=z([]),Px=Sx(Nx),Fx=Sx(z([])),Ix=z([]),Lx=Sx(Ix),Rx=z(!1,e=>{e.link(e.pipe(kb,wn(e=>[`td`,`th`].includes((e?.getRootElement()?.parentNode)?.nodeName.toLowerCase()??``))),Rx)}),zx=z(bd()),Bx=z(``);_n();var Vx=_n(e=>{e.sub(e.pipe(Vx,Tn(kb)),([e,t])=>{t?.update(()=>{let n=W();U(n)&&(Nu(n,e),setTimeout(()=>{t.focus()}))})})}),Hx=_n(e=>{e.sub(e.pipe(Hx,Tn(kb)),([e,t])=>{t?.focus(()=>{t.getEditorState().read(()=>{U(W())&&(t.update(()=>{let t=e();t.isInline()?(Jo([t]),el(t.getParentOrThrow())&&rd(t,zs).selectEnd()):td(t),setTimeout(()=>{`select`in t&&typeof t.select==`function`&&t.select()})}),setTimeout(()=>{t.dispatchCommand(Db,void 0)}))})},{defaultSelection:`rootEnd`})})}),Ux=z(`rich-text`,e=>{function t(){return On((e,t)=>({current:e.next,next:t}),{current:`rich-text`,next:`rich-text`})}e.sub(e.pipe(Ux,t(),Tn(Wx)),([{current:t},n])=>{(t===`source`||t===`diff`)&&e.pub(px,n)}),e.sub(e.pipe(Ux,t(),Dn(e=>e.current===`rich-text`),Tn(kb)),([,e])=>{e?.dispatchCommand(Db,void 0)})}),Wx=z(``,e=>{e.link(Hb,Wx),e.link(Wx,Wb)},!0),Gx=z([]),Kx=Sx(Gx),qx=z(()=>{throw Error(`No translation function provided`)}),Jx=z(Eb),Yx=jn({init(e,t){let n=t?.initialMarkdown??``;e.register(wx),e.register(Tx),e.register(Wb),e.register(Wx),e.pubIn({[Vb]:t?.trim?n.trim():n,[xx]:t?.iconComponentFor,[sx]:[yb,vb,bb,ub,...hb],[ox]:[Ls,ao,eb],[ux]:[ob,ab,lb,ib,rb],[Ab]:t?.contentEditableClassName,[jb]:t?.spellCheck,[Qb]:t?.toMarkdownOptions,[Pb]:t?.autoFocus,[Nb]:t?.placeholder,[Mb]:t?.readOnly,[qx]:t?.translation,[lx]:[Af(),Lf],[cx]:[Of(),km()],[dx]:[yp(),jf(),Bf],[Jx]:t?.lexicalTheme??Eb}),e.singletonSub(Rb,t?.onError),e.singletonSub(Gb,n=>{t?.onChange(n,e.getValue(Ub))}),e.singletonSub(bx,t?.onBlur),t?.suppressHtmlProcessing||e.pubIn({[lx]:[vp(),Sb()],[cx]:[ph(),mh(),wb],[sx]:gb}),t?.suppressSharedHistory||e.pub(Ox,xb)},postInit(e,t){let n=Hs({editable:t?.readOnly!==!0,namespace:t?.lexicalEditorNamespace??`MDXEditor`,nodes:[...e.getValue(qb),...t?.additionalLexicalNodes??[]],onError:e=>{throw e},theme:e.getValue(Jx)});t?.editorState!==null&&n.update(()=>{let r=t?.initialMarkdown.trim()??``;Ex(e,bc(),r);let i=t?.autoFocus;if(i){if(i===!0){setTimeout(()=>{n.focus(An,{defaultSelection:`rootStart`})});return}setTimeout(()=>{n.focus(An,{defaultSelection:i.defaultSelection??`rootStart`})})}}),e.pub(Ob,n),e.pub(kb,n)},update(e,t){e.pubIn({[Ab]:t?.contentEditableClassName,[jb]:t?.spellCheck,[Qb]:t?.toMarkdownOptions,[Pb]:t?.autoFocus,[Nb]:t?.placeholder,[Mb]:t?.readOnly}),e.singletonSub(Gb,n=>{t?.onChange(n,e.getValue(Ub))}),e.singletonSub(bx,t?.onBlur),e.singletonSub(Rb,t?.onError)}});function Xx(){return xn(qx)}function Zx(){return bc().getTextContent()}function Qx(e,t=!0){if(e)return!1;let n=Zx();return t&&(n=n.trim()),n===``}function $x(e){if(!Qx(e,!1))return!1;let t=bc().getChildren(),n=t.length;if(n>1)return!1;for(let e=0;e<n;e++){let n=t[e];if(Ds(n))return!1;if(G(n)){if(!Bs(n)||n.__indent!==0)return!1;let t=n.getChildren(),r=t.length;for(let n=0;n<r;n++){let n=t[e];if(!H(n))return!1}}}return!0}function eS(e){return()=>$x(e)}var tS=typeof window<`u`&&window.document!==void 0&&window.document.createElement!==void 0?L.useLayoutEffect:L.useEffect;function nS({editor:e,ariaActiveDescendant:t,ariaAutoComplete:n,ariaControls:r,ariaDescribedBy:i,ariaErrorMessage:a,ariaExpanded:o,ariaInvalid:s,ariaLabel:c,ariaLabelledBy:l,ariaMultiline:u,ariaOwns:d,ariaRequired:f,autoCapitalize:p,className:m,id:h,role:g=`textbox`,spellCheck:_=!0,style:v,tabIndex:y,"data-testid":b,...x},S){let[C,w]=(0,L.useState)(e.isEditable()),T=(0,L.useCallback)((t=>{t&&t.ownerDocument&&t.ownerDocument.defaultView?e.setRootElement(t):e.setRootElement(null)}),[e]),E=(0,L.useMemo)((()=>function(...e){return t=>{e.forEach((e=>{typeof e==`function`?e(t):e!=null&&(e.current=t)}))}}(S,T)),[T,S]);return tS((()=>(w(e.isEditable()),e.registerEditableListener((e=>{w(e)})))),[e]),(0,R.jsx)(`div`,{"aria-activedescendant":C?t:void 0,"aria-autocomplete":C?n:`none`,"aria-controls":C?r:void 0,"aria-describedby":i,...a==null?{}:{"aria-errormessage":a},"aria-expanded":C&&g===`combobox`?!!o:void 0,...s==null?{}:{"aria-invalid":s},"aria-label":c,"aria-labelledby":l,"aria-multiline":u,"aria-owns":C?d:void 0,"aria-readonly":!C||void 0,"aria-required":f,autoCapitalize:p,className:m,contentEditable:C,"data-testid":b,id:h,ref:E,role:g,spellCheck:_,style:v,tabIndex:y,...x})}var rS=(0,L.forwardRef)(nS);function iS(e){return e.getEditorState().read(eS(e.isComposing()))}var aS=(0,L.forwardRef)(oS);function oS(e,t){let{placeholder:n,...r}=e,[i]=Fn();return(0,R.jsxs)(R.Fragment,{children:[(0,R.jsx)(rS,{editor:i,...r,ref:t}),n!=null&&(0,R.jsx)(sS,{editor:i,content:n})]})}function sS({content:e,editor:t}){let n=function(e){let[t,n]=(0,L.useState)((()=>iS(e)));return tS((()=>{function t(){n(iS(e))}return t(),Ku(e.registerUpdateListener((()=>{t()})),e.registerEditableListener((()=>{t()})))}),[e]),t}(t),[r,i]=(0,L.useState)(t.isEditable());if((0,L.useLayoutEffect)((()=>(i(t.isEditable()),t.registerEditableListener((e=>{i(e)})))),[t]),!n)return null;let a=null;return typeof e==`function`?a=e(r):e!==null&&(a=e),a===null?null:(0,R.jsx)(`div`,{"aria-hidden":!0,children:a})}function cS(e,t){return cS=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},cS(e,t)}var lS={error:null},uS=function(e){var t,n;function r(){for(var t,n=arguments.length,r=Array(n),i=0;i<n;i++)r[i]=arguments[i];return(t=e.call.apply(e,[this].concat(r))||this).state=lS,t.resetErrorBoundary=function(){for(var e,n=arguments.length,r=Array(n),i=0;i<n;i++)r[i]=arguments[i];t.props.onReset==null||(e=t.props).onReset.apply(e,r),t.reset()},t}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,cS(t,n),r.getDerivedStateFromError=function(e){return{error:e}};var i=r.prototype;return i.reset=function(){this.setState(lS)},i.componentDidCatch=function(e,t){var n,r;(n=(r=this.props).onError)==null||n.call(r,e,t)},i.componentDidUpdate=function(e,t){var n,r,i,a,o=this.state.error,s=this.props.resetKeys;o!==null&&t.error!==null&&((i=e.resetKeys)===void 0&&(i=[]),(a=s)===void 0&&(a=[]),i.length!==a.length||i.some((function(e,t){return!Object.is(e,a[t])})))&&((n=(r=this.props).onResetKeysChange)==null||n.call(r,e.resetKeys,s),this.reset())},i.render=function(){var e=this.state.error,t=this.props,n=t.fallbackRender,r=t.FallbackComponent,i=t.fallback;if(e!==null){var a={error:e,resetErrorBoundary:this.resetErrorBoundary};if(L.isValidElement(i))return i;if(typeof n==`function`)return n(a);if(r)return L.createElement(r,a);throw Error(`react-error-boundary requires either a fallback, fallbackRender, or FallbackComponent prop`)}return this.props.children},r}(L.Component);function dS({children:e,onError:t}){return(0,R.jsx)(uS,{fallback:(0,R.jsx)(`div`,{style:{border:`1px solid #f00`,color:`#f00`,padding:`8px`},children:`An error was thrown.`}),onError:t,children:e})}var fS=typeof window<`u`&&window.document!==void 0&&window.document.createElement!==void 0?L.useLayoutEffect:L.useEffect;function pS(e){return{initialValueFn:()=>e.isEditable(),subscribe:t=>e.registerEditableListener(t)}}function mS(){return function(e){let[t]=Fn(),n=(0,L.useMemo)((()=>e(t)),[t,e]),[r,i]=(0,L.useState)((()=>n.initialValueFn())),a=(0,L.useRef)(r);return fS((()=>{let{initialValueFn:e,subscribe:t}=n,r=e();return a.current!==r&&(a.current=r,i(r)),t((e=>{a.current=e,i(e)}))}),[n,e]),r}(pS)}function hS(e){let t=window.location.origin,n=n=>{if(n.origin!==t)return;let r=e.getRootElement();if(document.activeElement!==r)return;let i=n.data;if(typeof i==`string`){let t;try{t=JSON.parse(i)}catch{return}if(t&&t.protocol===`nuanria_messaging`&&t.type===`request`){let r=t.payload;if(r&&r.functionId===`makeChanges`){let t=r.args;if(t){let[r,i,a,o,s,c]=t;e.update((()=>{let e=W();if(U(e)){let t=e.anchor,c=t.getNode(),l=0,u=0;if(H(c)&&r>=0&&i>=0&&(l=r,u=r+i,e.setTextNodeRange(c,l,c,u)),l===u&&a===``||(e.insertRawText(a),c=t.getNode()),H(c)){l=o,u=o+s;let t=c.getTextContentSize();l=l>t?t:l,u=u>t?t:u,e.setTextNodeRange(c,l,c,u)}n.stopImmediatePropagation()}}))}}}}};return window.addEventListener(`message`,n,!0),()=>{window.removeEventListener(`message`,n,!0)}}var gS=pt(yt(),1),_S=typeof window<`u`&&window.document!==void 0&&window.document.createElement!==void 0?L.useLayoutEffect:L.useEffect;function vS(e){return e.getEditorState().read(eS(e.isComposing()))}function yS({contentEditable:e,placeholder:t=null,ErrorBoundary:n}){let[r]=Fn(),i=function(e,t){let[n,r]=(0,L.useState)((()=>e.getDecorators()));return _S((()=>e.registerDecoratorListener((e=>{(0,gS.flushSync)((()=>{r(e)}))}))),[e]),(0,L.useEffect)((()=>{r(e.getDecorators())}),[e]),(0,L.useMemo)((()=>{let r=[],i=Object.keys(n);for(let a=0;a<i.length;a++){let o=i[a],s=(0,R.jsx)(t,{onError:t=>e._onError(t),children:(0,R.jsx)(L.Suspense,{fallback:null,children:n[o]})}),c=e.getElementByKey(o);c!==null&&r.push((0,gS.createPortal)(s,c,o))}return r}),[t,n,e])}(r,n);return function(e){_S((()=>Ku(df(e),hS(e))),[e])}(r),(0,R.jsxs)(R.Fragment,{children:[e,(0,R.jsx)(bS,{content:t}),i]})}function bS({content:e}){let[t]=Fn(),n=function(e){let[t,n]=(0,L.useState)((()=>vS(e)));return _S((()=>{function t(){n(vS(e))}return t(),Ku(e.registerUpdateListener((()=>{t()})),e.registerEditableListener((()=>{t()})))}),[e]),t}(t),r=mS();return n?typeof e==`function`?e(r):e:null}var xS=ut(((e,t)=>{(function(){var e={}.hasOwnProperty;function n(){for(var e=``,t=0;t<arguments.length;t++){var n=arguments[t];n&&(e=i(e,r(n)))}return e}function r(t){if(typeof t==`string`||typeof t==`number`)return t;if(typeof t!=`object`)return``;if(Array.isArray(t))return n.apply(null,t);if(t.toString!==Object.prototype.toString&&!t.toString.toString().includes(`[native code]`))return t.toString();var r=``;for(var a in t)e.call(t,a)&&t[a]&&(r=i(r,a));return r}function i(e,t){return t?e?e+` `+t:e+t:e}t!==void 0&&t.exports?(n.default=n,t.exports=n):typeof define==`function`&&typeof define.amd==`object`&&define.amd?define(`classnames`,[],function(){return n}):window.classNames=n})()})),SS={undo:L.createElement(`svg`,{width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},L.createElement(`path`,{d:`M7.202 18.5V17H14.3788C15.4224 17 16.3205 16.6554 17.073 15.9663C17.8257 15.2773 18.202 14.4263 18.202 13.4135C18.202 12.4007 17.8257 11.5512 17.073 10.8652C16.3205 10.1794 15.4224 9.8365 14.3788 9.8365H7.35775L10.1402 12.6193L9.0865 13.673L4.5 9.0865L9.0865 4.5L10.1402 5.55375L7.35775 8.3365H14.3788C15.8416 8.3365 17.0945 8.82467 18.1375 9.801C19.1805 10.7773 19.702 11.9815 19.702 13.4135C19.702 14.8455 19.1805 16.0513 18.1375 17.0308C17.0945 18.0103 15.8416 18.5 14.3788 18.5H7.202Z`,fill:`currentColor`})),redo:L.createElement(`svg`,{width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},L.createElement(`path`,{d:`M9.6211 18.5C8.15827 18.5 6.90535 18.0103 5.86235 17.0308C4.81935 16.0513 4.29785 14.8455 4.29785 13.4135C4.29785 11.9815 4.81935 10.7773 5.86235 9.801C6.90535 8.82467 8.15827 8.3365 9.6211 8.3365H16.6421L13.8596 5.55375L14.9134 4.5L19.4999 9.0865L14.9134 13.673L13.8596 12.6193L16.6421 9.8365H9.6211C8.57744 9.8365 7.67935 10.1794 6.92685 10.8652C6.17418 11.5512 5.79785 12.4007 5.79785 13.4135C5.79785 14.4263 6.17418 15.2773 6.92685 15.9663C7.67935 16.6554 8.57744 17 9.6211 17H16.7979V18.5H9.6211Z`,fill:`currentColor`})),format_bold:L.createElement(`svg`,{width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},L.createElement(`path`,{d:`M7.33838 18.625V5.375H12.1999C13.219 5.375 14.1405 5.69233 14.9644 6.327C15.788 6.9615 16.1999 7.816 16.1999 8.8905C16.1999 9.63783 16.0194 10.2471 15.6584 10.7182C15.2975 11.1894 14.9088 11.5314 14.4921 11.7442C15.005 11.9211 15.4947 12.2708 15.9614 12.7933C16.428 13.3158 16.6614 14.0193 16.6614 14.9038C16.6614 16.1819 16.1902 17.1217 15.2479 17.723C14.3055 18.3243 13.3562 18.625 12.3999 18.625H7.33838ZM9.48838 16.6328H12.3191C13.1063 16.6328 13.6627 16.4142 13.9884 15.977C14.314 15.5398 14.4769 15.1206 14.4769 14.7192C14.4769 14.3179 14.314 13.8987 13.9884 13.4615C13.6627 13.0243 13.0909 12.8058 12.2729 12.8058H9.48838V16.6328ZM9.48838 10.875H12.0826C12.6903 10.875 13.172 10.7013 13.5279 10.3538C13.8835 10.0064 14.0614 9.59042 14.0614 9.10575C14.0614 8.59042 13.8733 8.16925 13.4971 7.84225C13.1208 7.51542 12.6595 7.352 12.1134 7.352H9.48838V10.875Z`,fill:`currentColor`})),format_italic:L.createElement(`svg`,{width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},L.createElement(`path`,{d:`M5.39404 18.625V16.8173H9.21129L12.4518 7.18275H8.63454V5.375H17.7883V7.18275H14.2785L11.0383 16.8173H14.5478V18.625H5.39404Z`,fill:`currentColor`})),format_underlined:L.createElement(`svg`,{width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},L.createElement(`path`,{d:`M5.34619 22.125V20.625H18.6537V22.125H5.34619ZM11.9999 18.5287C10.4448 18.5287 9.23102 18.0566 8.35869 17.1125C7.48619 16.1683 7.04994 14.9032 7.04994 13.3172V5.41345H8.90369V13.4095C8.90369 14.4198 9.17228 15.2295 9.70944 15.8385C10.2466 16.4475 11.0101 16.752 11.9999 16.752C12.9898 16.752 13.7533 16.4475 14.2904 15.8385C14.8276 15.2295 15.0962 14.4198 15.0962 13.4095V5.41345H16.9499V13.3172C16.9499 14.9032 16.5137 16.1683 15.6412 17.1125C14.7689 18.0566 13.5551 18.5287 11.9999 18.5287Z`,fill:`currentColor`})),format_highlight:L.createElement(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`1.75`,strokeLinecap:`round`,strokeLinejoin:`round`},L.createElement(`path`,{d:`m9 11-6 6v3h9l3-3`}),L.createElement(`path`,{d:`m22 12-4.6 4.6a2 2 0 0 1-2.8 0l-5.2-5.2a2 2 0 0 1 0-2.8L14 4`})),code:L.createElement(`svg`,{width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},L.createElement(`path`,{d:`M7.99994 17.6537L2.34619 11.9999L7.99994 6.34619L9.06919 7.41544L4.46919 12.0154L9.05369 16.5999L7.99994 17.6537ZM15.9999 17.6537L14.9307 16.5844L19.5307 11.9844L14.9462 7.39994L15.9999 6.34619L21.6537 11.9999L15.9999 17.6537Z`,fill:`currentColor`})),strikeThrough:L.createElement(`svg`,{width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},L.createElement(`path`,{d:`M12.15 19.6923C10.9732 19.6923 9.9315 19.359 9.025 18.6923C8.11867 18.0256 7.45525 17.1128 7.03475 15.9538L8.6385 15.2635C8.91667 16.0444 9.3545 16.6867 9.952 17.1905C10.5493 17.6944 11.2923 17.9463 12.1808 17.9463C12.9578 17.9463 13.6744 17.7508 14.3307 17.3598C14.9872 16.9686 15.3155 16.3487 15.3155 15.5C15.3155 15.123 15.2555 14.7968 15.1355 14.5213C15.0157 14.2456 14.8462 13.9885 14.627 13.75H16.677C16.7987 13.9705 16.8932 14.2256 16.9605 14.5153C17.0278 14.8051 17.0615 15.1334 17.0615 15.5C17.0615 16.8372 16.5747 17.8702 15.601 18.599C14.6272 19.3279 13.4768 19.6923 12.15 19.6923ZM2.25 11.75V10.25H21.75V11.75H2.25ZM12.05 4.19629C13.0475 4.19629 13.9123 4.42704 14.6443 4.88854C15.3763 5.35004 15.9673 6.05896 16.4173 7.01529L14.823 7.73079C14.6218 7.26029 14.2978 6.84462 13.851 6.48379C13.4042 6.12279 12.8141 5.94229 12.0808 5.94229C11.2244 5.94229 10.5392 6.16221 10.025 6.60204C9.51083 7.04171 9.264 7.59104 9.2845 8.25004H7.5385C7.50133 7.16421 7.89783 6.21712 8.728 5.40879C9.558 4.60046 10.6653 4.19629 12.05 4.19629Z`,fill:`currentColor`})),superscript:L.createElement(`svg`,{width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},L.createElement(`path`,{d:`M16.6924 8V6.2115C16.6924 5.95383 16.7786 5.73875 16.9511 5.56625C17.1235 5.39392 17.3385 5.30775 17.5961 5.30775H19.5001V4.38475H16.6924V3.5H19.4809C19.7385 3.5 19.9536 3.58625 20.1261 3.75875C20.2985 3.93108 20.3846 4.14617 20.3846 4.404V5.2885C20.3846 5.54617 20.2985 5.76125 20.1261 5.93375C19.9536 6.10608 19.7385 6.19225 19.4809 6.19225H17.5771V7.1155H20.3846V8H16.6924ZM4.44238 18.5L8.84638 11.6287L4.77713 5.30775H6.74438L9.95963 10.404H10.0214L13.2501 5.30775H15.2329L11.1194 11.6287L15.5579 18.5H13.5751L10.0214 12.9308H9.95963L6.42513 18.5H4.44238Z`,fill:`currentColor`})),subscript:L.createElement(`svg`,{width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},L.createElement(`path`,{d:`M16.6924 20.5V18.7115C16.6924 18.4538 16.7786 18.2387 16.9511 18.0662C17.1235 17.8939 17.3385 17.8077 17.5961 17.8077H19.5001V16.8845H16.6924V16H19.4809C19.7385 16 19.9536 16.0863 20.1261 16.2587C20.2985 16.4311 20.3846 16.6461 20.3846 16.9038V17.7885C20.3846 18.0462 20.2985 18.2612 20.1261 18.4337C19.9536 18.6061 19.7385 18.6923 19.4809 18.6923H17.5771V19.6152H20.3846V20.5H16.6924ZM4.44238 18.6923L8.84638 11.8212L4.77713 5.5H6.74438L9.95963 10.5962H10.0214L13.2501 5.5H15.2329L11.1194 11.8212L15.5579 18.6923H13.5751L10.0214 13.123H9.95963L6.42513 18.6923H4.44238Z`,fill:`currentColor`})),format_list_bulleted:L.createElement(`svg`,{width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},L.createElement(`path`,{d:`M9.30775 18.75V17.25H20.5V18.75H9.30775ZM9.30775 12.75V11.25H20.5V12.75H9.30775ZM9.30775 6.75005V5.25005H20.5V6.75005H9.30775ZM5.1635 19.6635C4.706 19.6635 4.31442 19.5006 3.98875 19.1748C3.66292 18.8491 3.5 18.4575 3.5 18C3.5 17.5425 3.66292 17.151 3.98875 16.8253C4.31442 16.4995 4.706 16.3365 5.1635 16.3365C5.621 16.3365 6.01258 16.4995 6.33825 16.8253C6.66408 17.151 6.827 17.5425 6.827 18C6.827 18.4575 6.66408 18.8491 6.33825 19.1748C6.01258 19.5006 5.621 19.6635 5.1635 19.6635ZM5.1635 13.6635C4.706 13.6635 4.31442 13.5006 3.98875 13.1748C3.66292 12.8491 3.5 12.4575 3.5 12C3.5 11.5425 3.66292 11.151 3.98875 10.8253C4.31442 10.4995 4.706 10.3365 5.1635 10.3365C5.621 10.3365 6.01258 10.4995 6.33825 10.8253C6.66408 11.151 6.827 11.5425 6.827 12C6.827 12.4575 6.66408 12.8491 6.33825 13.1748C6.01258 13.5006 5.621 13.6635 5.1635 13.6635ZM5.1635 7.66355C4.706 7.66355 4.31442 7.50063 3.98875 7.1748C3.66292 6.84913 3.5 6.45755 3.5 6.00005C3.5 5.54255 3.66292 5.15096 3.98875 4.8253C4.31442 4.49946 4.706 4.33655 5.1635 4.33655C5.621 4.33655 6.01258 4.49946 6.33825 4.8253C6.66408 5.15096 6.827 5.54255 6.827 6.00005C6.827 6.45755 6.66408 6.84913 6.33825 7.1748C6.01258 7.50063 5.621 7.66355 5.1635 7.66355Z`,fill:`currentColor`})),format_list_numbered:L.createElement(`svg`,{width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},L.createElement(`path`,{d:`M3.5 21.5V20.3078H6V19.25H4.5V18.0577H6V17H3.5V15.8077H6.34625C6.58592 15.8077 6.78683 15.8888 6.949 16.051C7.11117 16.2132 7.19225 16.4141 7.19225 16.6538V17.8462C7.19225 18.0859 7.11117 18.2868 6.949 18.449C6.78683 18.6112 6.58592 18.6923 6.34625 18.6923C6.58592 18.6923 6.78683 18.7733 6.949 18.9355C7.11117 19.0977 7.19225 19.2987 7.19225 19.5385V20.6538C7.19225 20.8936 7.11117 21.0946 6.949 21.2568C6.78683 21.4189 6.58592 21.5 6.34625 21.5H3.5ZM3.5 14.8463V12.25C3.5 12.0103 3.58108 11.8093 3.74325 11.647C3.90542 11.4848 4.10642 11.4038 4.34625 11.4038H6V10.3462H3.5V9.15375H6.34625C6.58592 9.15375 6.78683 9.23483 6.949 9.397C7.11117 9.55933 7.19225 9.76033 7.19225 10V11.75C7.19225 11.9897 7.11117 12.1907 6.949 12.353C6.78683 12.5152 6.58592 12.5963 6.34625 12.5963H4.69225V13.6538H7.19225V14.8463H3.5ZM5 8.19225V3.69225H3.5V2.5H6.19225V8.19225H5ZM9.30775 18.75V17.25H20.5V18.75H9.30775ZM9.30775 12.75V11.25H20.5V12.75H9.30775ZM9.30775 6.75V5.25H20.5V6.75H9.30775Z`,fill:`currentColor`})),format_list_checked:L.createElement(`svg`,{width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},L.createElement(`path`,{d:`M5.69425 18.452L2.5 15.2578L3.54425 14.2135L5.66925 16.3385L9.91925 12.0885L10.9635 13.1578L5.69425 18.452ZM5.69425 10.8365L2.5 7.64227L3.54425 6.59802L5.66925 8.72302L9.91925 4.47302L10.9635 5.54227L5.69425 10.8365ZM13.0095 16.5578V15.0578H21.5095V16.5578H13.0095ZM13.0095 8.94227V7.44227H21.5095V8.94227H13.0095Z`,fill:`currentColor`})),link:L.createElement(`svg`,{width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},L.createElement(`path`,{d:`M10.8077 16.5385H7.0385C5.78283 16.5385 4.7125 16.096 3.8275 15.211C2.9425 14.3262 2.5 13.256 2.5 12.0005C2.5 10.745 2.9425 9.67471 3.8275 8.78955C4.7125 7.90421 5.78283 7.46155 7.0385 7.46155H10.8077V8.96155H7.0385C6.19867 8.96155 5.48233 9.25805 4.8895 9.85105C4.2965 10.444 4 11.1604 4 12C4 12.8397 4.2965 13.556 4.8895 14.149C5.48233 14.742 6.19867 15.0385 7.0385 15.0385H10.8077V16.5385ZM8.25 12.75V11.25H15.75V12.75H8.25ZM13.1923 16.5385V15.0385H16.9615C17.8013 15.0385 18.5177 14.742 19.1105 14.149C19.7035 13.556 20 12.8397 20 12C20 11.1604 19.7035 10.444 19.1105 9.85105C18.5177 9.25805 17.8013 8.96155 16.9615 8.96155H13.1923V7.46155H16.9615C18.2172 7.46155 19.2875 7.90405 20.1725 8.78905C21.0575 9.67388 21.5 10.744 21.5 11.9995C21.5 13.255 21.0575 14.3254 20.1725 15.2105C19.2875 16.0959 18.2172 16.5385 16.9615 16.5385H13.1923Z`,fill:`currentColor`})),add_photo:L.createElement(`svg`,{width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},L.createElement(`path`,{d:`M5.11537 20.5C4.6182 20.5 4.19262 20.323 3.83862 19.969C3.48462 19.615 3.30762 19.1894 3.30762 18.6922V5.30773C3.30762 4.81056 3.48462 4.38498 3.83862 4.03098C4.19262 3.67698 4.6182 3.49998 5.11537 3.49998H13.8076V4.99998H5.11537C5.02553 4.99998 4.95178 5.02881 4.89412 5.08648C4.83645 5.14415 4.80762 5.2179 4.80762 5.30773V18.6922C4.80762 18.7821 4.83645 18.8558 4.89412 18.9135C4.95178 18.9711 5.02553 19 5.11537 19H18.4999C18.5895 19 18.6633 18.9711 18.7211 18.9135C18.7788 18.8558 18.8076 18.7821 18.8076 18.6922V9.99998H20.3076V18.6922C20.3076 19.1894 20.1306 19.615 19.7766 19.969C19.4226 20.323 18.997 20.5 18.4999 20.5H5.11537ZM17.1921 8.61523V6.61523H15.1921V5.11548H17.1921V3.11548H18.6921V5.11548H20.6921V6.61523H18.6921V8.61523H17.1921ZM6.55762 16.75H17.1344L13.8459 12.3655L11.0384 16.0192L9.03837 13.4615L6.55762 16.75Z`,fill:`currentColor`})),table:L.createElement(`svg`,{width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},L.createElement(`path`,{d:`M3.5 18.6923V5.30775C3.5 4.81058 3.677 4.385 4.031 4.031C4.385 3.677 4.81058 3.5 5.30775 3.5H18.6923C19.1894 3.5 19.615 3.677 19.969 4.031C20.323 4.385 20.5 4.81058 20.5 5.30775V18.6923C20.5 19.1894 20.323 19.615 19.969 19.969C19.615 20.323 19.1894 20.5 18.6923 20.5H5.30775C4.81058 20.5 4.385 20.323 4.031 19.969C3.677 19.615 3.5 19.1894 3.5 18.6923ZM5 9.077H19V5.30775C19 5.21792 18.9712 5.14417 18.9135 5.0865C18.8558 5.02883 18.7821 5 18.6923 5H5.30775C5.21792 5 5.14417 5.02883 5.0865 5.0865C5.02883 5.14417 5 5.21792 5 5.30775V9.077ZM10.1615 14.0385H13.8385V10.577H10.1615V14.0385ZM10.1615 19H13.8385V15.5385H10.1615V19ZM5 14.0385H8.6615V10.577H5V14.0385ZM15.3385 14.0385H19V10.577H15.3385V14.0385ZM5.30775 19H8.6615V15.5385H5V18.6923C5 18.7821 5.02883 18.8558 5.0865 18.9135C5.14417 18.9712 5.21792 19 5.30775 19ZM15.3385 19H18.6923C18.7821 19 18.8558 18.9712 18.9135 18.9135C18.9712 18.8558 19 18.7821 19 18.6923V15.5385H15.3385V19Z`,fill:`currentColor`})),horizontal_rule:L.createElement(`svg`,{width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},L.createElement(`path`,{d:`M4.5 12.75V11.25H19.5V12.75H4.5Z`,fill:`currentColor`})),frontmatter:L.createElement(`svg`,{width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},L.createElement(`path`,{d:`M4.5 8.75V7.25H8.5V8.75H4.5Z`,fill:`currentColor`}),L.createElement(`path`,{d:`M4.5 14.75V13.25H8.5V14.75H4.5Z`,fill:`currentColor`}),L.createElement(`path`,{d:`M9.5 8.75V7.25H13.5V8.75H9.5Z`,fill:`currentColor`}),L.createElement(`path`,{d:`M9.5 14.75V13.25H13.5V14.75H9.5Z`,fill:`currentColor`}),L.createElement(`path`,{d:`M14.5 8.75V7.25H18.5V8.75H14.5Z`,fill:`currentColor`}),L.createElement(`path`,{d:`M14.5 14.75V13.25H18.5V14.75H14.5Z`,fill:`currentColor`})),frame_source:L.createElement(`svg`,{width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},L.createElement(`path`,{d:`M8.6 15.2443L5.35575 12L8.6 8.75575L9.64425 9.825L7.46925 12L9.64425 14.175L8.6 15.2443ZM15.4 15.2443L14.3558 14.175L16.5307 12L14.3558 9.825L15.4 8.75575L18.6443 12L15.4 15.2443ZM5.30775 20.5C4.80258 20.5 4.375 20.325 4.025 19.975C3.675 19.625 3.5 19.1974 3.5 18.6923V15H5V18.6923C5 18.7692 5.03208 18.8398 5.09625 18.9038C5.16025 18.9679 5.23075 19 5.30775 19H9V20.5H5.30775ZM15 20.5V19H18.6923C18.7692 19 18.8398 18.9679 18.9038 18.9038C18.9679 18.8398 19 18.7692 19 18.6923V15H20.5V18.6923C20.5 19.1974 20.325 19.625 19.975 19.975C19.625 20.325 19.1974 20.5 18.6923 20.5H15ZM3.5 9V5.30775C3.5 4.80258 3.675 4.375 4.025 4.025C4.375 3.675 4.80258 3.5 5.30775 3.5H9V5H5.30775C5.23075 5 5.16025 5.03208 5.09625 5.09625C5.03208 5.16025 5 5.23075 5 5.30775V9H3.5ZM19 9V5.30775C19 5.23075 18.9679 5.16025 18.9038 5.09625C18.8398 5.03208 18.7692 5 18.6923 5H15V3.5H18.6923C19.1974 3.5 19.625 3.675 19.975 4.025C20.325 4.375 20.5 4.80258 20.5 5.30775V9H19Z`,fill:`currentColor`})),arrow_drop_down:L.createElement(`svg`,{width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},L.createElement(`path`,{d:`M11.9999 14.6537L7.59619 10.25H16.4037L11.9999 14.6537Z`,fill:`currentColor`})),admonition:L.createElement(`svg`,{width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},L.createElement(`path`,{d:`M12.0001 21.4C11.7654 21.4 11.5385 21.3548 11.3193 21.2645C11.1002 21.174 10.9002 21.0435 10.7193 20.873L3.1271 13.2807C2.9566 13.0999 2.8261 12.8999 2.7356 12.6807C2.64526 12.4616 2.6001 12.2346 2.6001 12C2.6001 11.7653 2.64526 11.5358 2.7356 11.3115C2.8261 11.0871 2.9566 10.8897 3.1271 10.7192L10.7193 3.12698C10.9002 2.94614 11.1002 2.81314 11.3193 2.72798C11.5385 2.64264 11.7654 2.59998 12.0001 2.59998C12.2348 2.59998 12.4643 2.64264 12.6886 2.72798C12.9129 2.81314 13.1103 2.94614 13.2808 3.12698L20.8731 10.7192C21.0539 10.8897 21.1869 11.0871 21.2721 11.3115C21.3574 11.5358 21.4001 11.7653 21.4001 12C21.4001 12.2346 21.3574 12.4616 21.2721 12.6807C21.1869 12.8999 21.0539 13.0999 20.8731 13.2807L13.2808 20.873C13.1103 21.0435 12.9129 21.174 12.6886 21.2645C12.4643 21.3548 12.2348 21.4 12.0001 21.4ZM12.2213 19.8037L19.8039 12.2212C19.8552 12.1699 19.8808 12.0961 19.8808 12C19.8808 11.9038 19.8552 11.8301 19.8039 11.7787L12.2213 4.19623C12.17 4.14489 12.0963 4.11923 12.0001 4.11923C11.9039 4.11923 11.8302 4.14489 11.7788 4.19623L4.19635 11.7787C4.14501 11.8301 4.11935 11.9038 4.11935 12C4.11935 12.0961 4.14501 12.1699 4.19635 12.2212L11.7788 19.8037C11.8302 19.8551 11.9039 19.8807 12.0001 19.8807C12.0963 19.8807 12.17 19.8551 12.2213 19.8037ZM11.2501 13.0865H12.7501V7.47123H11.2501V13.0865ZM12.0001 15.702C12.2258 15.702 12.4168 15.6237 12.5731 15.4672C12.7296 15.3109 12.8078 15.1199 12.8078 14.8942C12.8078 14.6686 12.7296 14.4776 12.5731 14.3212C12.4168 14.1647 12.2258 14.0865 12.0001 14.0865C11.7744 14.0865 11.5834 14.1647 11.4271 14.3212C11.2706 14.4776 11.1923 14.6686 11.1923 14.8942C11.1923 15.1199 11.2706 15.3109 11.4271 15.4672C11.5834 15.6237 11.7744 15.702 12.0001 15.702Z`,fill:`currentColor`})),sandpack:L.createElement(`svg`,{width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},L.createElement(`path`,{d:`M12.9999 22.5C12.4947 22.5 12.0671 22.325 11.7171 21.975C11.3671 21.625 11.1921 21.1974 11.1921 20.6922V7.30775C11.1921 6.80258 11.3671 6.375 11.7171 6.025C12.0671 5.675 12.4947 5.5 12.9999 5.5H16.3844C16.8895 5.5 17.3171 5.675 17.6671 6.025C18.0171 6.375 18.1921 6.80258 18.1921 7.30775V20.6922C18.1921 21.1974 18.0171 21.625 17.6671 21.975C17.3171 22.325 16.8895 22.5 16.3844 22.5H12.9999ZM12.6921 7.30775V20.6922C12.6921 20.7692 12.7242 20.8398 12.7884 20.9038C12.8524 20.9679 12.9229 21 12.9999 21H16.3844C16.4614 21 16.5319 20.9679 16.5959 20.9038C16.66 20.8398 16.6921 20.7692 16.6921 20.6922V7.30775C16.6921 7.23075 16.66 7.16025 16.5959 7.09625C16.5319 7.03208 16.4614 7 16.3844 7H12.9999C12.9229 7 12.8524 7.03208 12.7884 7.09625C12.7242 7.16025 12.6921 7.23075 12.6921 7.30775ZM6.61537 18.5C6.1102 18.5 5.68262 18.325 5.33262 17.975C4.98262 17.625 4.80762 17.1974 4.80762 16.6923V3.30775C4.80762 2.80258 4.98262 2.375 5.33262 2.025C5.68262 1.675 6.1102 1.5 6.61537 1.5H9.99987C10.505 1.5 10.9326 1.675 11.2826 2.025C11.6326 2.375 11.8076 2.80258 11.8076 3.30775V16.6923C11.8076 17.1974 11.6326 17.625 11.2826 17.975C10.9326 18.325 10.505 18.5 9.99987 18.5H6.61537ZM6.30762 3.30775V16.6923C6.30762 16.7692 6.3397 16.8398 6.40387 16.9038C6.46787 16.9679 6.53837 17 6.61537 17H9.99987C10.0769 17 10.1474 16.9679 10.2114 16.9038C10.2755 16.8398 10.3076 16.7692 10.3076 16.6923V3.30775C10.3076 3.23075 10.2755 3.16025 10.2114 3.09625C10.1474 3.03208 10.0769 3 9.99987 3H6.61537C6.53837 3 6.46787 3.03208 6.40387 3.09625C6.3397 3.16025 6.30762 3.23075 6.30762 3.30775Z`,fill:`currentColor`})),rich_text:L.createElement(`svg`,{width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},L.createElement(`path`,{d:`M5.30775 20.5C4.80258 20.5 4.375 20.325 4.025 19.975C3.675 19.625 3.5 19.1974 3.5 18.6923V5.30775C3.5 4.80258 3.675 4.375 4.025 4.025C4.375 3.675 4.80258 3.5 5.30775 3.5H18.6923C19.1974 3.5 19.625 3.675 19.975 4.025C20.325 4.375 20.5 4.80258 20.5 5.30775V18.6923C20.5 19.1974 20.325 19.625 19.975 19.975C19.625 20.325 19.1974 20.5 18.6923 20.5H5.30775ZM5.30775 19H18.6923C18.7692 19 18.8398 18.9679 18.9038 18.9038C18.9679 18.8398 19 18.7692 19 18.6923V5.30775C19 5.23075 18.9679 5.16025 18.9038 5.09625C18.8398 5.03208 18.7692 5 18.6923 5H5.30775C5.23075 5 5.16025 5.03208 5.09625 5.09625C5.03208 5.16025 5 5.23075 5 5.30775V18.6923C5 18.7692 5.03208 18.8398 5.09625 18.9038C5.16025 18.9679 5.23075 19 5.30775 19ZM6.75 17H17.3268L14 12.3655L11.2308 16.0192L9 13.4615L6.75 17Z`,fill:`currentColor`}),L.createElement(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M6 12V6.5H9.1925C9.5925 6.5 9.9425 6.65 10.2425 6.95C10.5425 7.25 10.6925 7.6 10.6925 8V8.6925C10.6925 9.03733 10.605 9.32675 10.43 9.56075C10.255 9.79458 10.0168 9.97817 9.7155 10.1115L10.6155 12H9.404L8.504 10.1925H7.1925V12H6ZM9.1925 9H7.1925V7.6925H9.1925C9.26933 7.6925 9.33983 7.7245 9.404 7.7885C9.468 7.85267 9.5 7.92317 9.5 8V8.6925C9.5 8.76933 9.468 8.83983 9.404 8.904C9.33983 8.968 9.26933 9 9.1925 9Z`,fill:`currentColor`}),L.createElement(`path`,{d:`M12.5 7H17.5V8.25H12.5V7Z`,fill:`currentColor`}),L.createElement(`path`,{d:`M12.5 9.25H17.5V10.5H12.5V9.25Z`,fill:`currentColor`})),difference:L.createElement(`svg`,{width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},L.createElement(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M5.30775 20.5C4.80258 20.5 4.375 20.325 4.025 19.975C3.675 19.625 3.5 19.1974 3.5 18.6923V5.30775C3.5 4.80258 3.675 4.375 4.025 4.025C4.375 3.675 4.80258 3.5 5.30775 3.5H18.6923C19.1974 3.5 19.625 3.675 19.975 4.025C20.325 4.375 20.5 4.80258 20.5 5.30775V18.6923C20.5 19.1974 20.325 19.625 19.975 19.975C19.625 20.325 19.1974 20.5 18.6923 20.5H5.30775ZM18.6923 19H5.30775C5.23075 19 5.16025 18.9679 5.09625 18.9038C5.03208 18.8398 5 18.7692 5 18.6923V5.30775C5 5.23075 5.03208 5.16025 5.09625 5.09625C5.16025 5.03208 5.23075 5 5.30775 5H18.6923C18.7692 5 18.8398 5.03208 18.9038 5.09625C18.9679 5.16025 19 5.23075 19 5.30775V18.6923C19 18.7692 18.9679 18.8398 18.9038 18.9038C18.8398 18.9679 18.7692 19 18.6923 19Z`,fill:`currentColor`}),L.createElement(`rect`,{x:`9`,y:`10`,width:`5.5`,height:`1.5`,fill:`currentColor`}),L.createElement(`rect`,{x:`9`,y:`15`,width:`5.5`,height:`1.5`,fill:`currentColor`}),L.createElement(`rect`,{x:`11`,y:`8`,width:`1.5`,height:`5.5`,fill:`currentColor`})),markdown:L.createElement(`svg`,{width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},L.createElement(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M5.30775 20.5C4.80258 20.5 4.375 20.325 4.025 19.975C3.675 19.625 3.5 19.1974 3.5 18.6923V5.30775C3.5 4.80258 3.675 4.375 4.025 4.025C4.375 3.675 4.80258 3.5 5.30775 3.5H18.6923C19.1974 3.5 19.625 3.675 19.975 4.025C20.325 4.375 20.5 4.80258 20.5 5.30775V18.6923C20.5 19.1974 20.325 19.625 19.975 19.975C19.625 20.325 19.1974 20.5 18.6923 20.5H5.30775ZM18.6923 19H5.30775C5.23075 19 5.16025 18.9679 5.09625 18.9038C5.03208 18.8398 5 18.7692 5 18.6923V5.30775C5 5.23075 5.03208 5.16025 5.09625 5.09625C5.16025 5.03208 5.23075 5 5.30775 5H18.6923C18.7692 5 18.8398 5.03208 18.9038 5.09625C18.9679 5.16025 19 5.23075 19 5.30775V18.6923C19 18.7692 18.9679 18.8398 18.9038 18.9038C18.8398 18.9679 18.7692 19 18.6923 19Z`,fill:`currentColor`}),L.createElement(`path`,{d:`M13 15H11.5V11L9.5 14L7.5 11V15H6V8H7.5L9.5 11L11.5 8H13V15Z`,fill:`currentColor`}),L.createElement(`path`,{d:`M15.9921 15.5833L13.2886 12.8797L14.0546 12.1137L15.4504 13.5016V7.99597L16.5336 7.99993V13.5016L17.9296 12.1137L18.6954 12.8797L15.9921 15.5833Z`,fill:`currentColor`})),open_in_new:L.createElement(`svg`,{width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},L.createElement(`path`,{d:`M5.30775 20.5C4.80258 20.5 4.375 20.325 4.025 19.975C3.675 19.625 3.5 19.1974 3.5 18.6923V5.30775C3.5 4.80258 3.675 4.375 4.025 4.025C4.375 3.675 4.80258 3.5 5.30775 3.5H11.6152V5H5.30775C5.23075 5 5.16025 5.03208 5.09625 5.09625C5.03208 5.16025 5 5.23075 5 5.30775V18.6923C5 18.7692 5.03208 18.8398 5.09625 18.9038C5.16025 18.9679 5.23075 19 5.30775 19H18.6923C18.7692 19 18.8398 18.9679 18.9038 18.9038C18.9679 18.8398 19 18.7692 19 18.6923V12.3848H20.5V18.6923C20.5 19.1974 20.325 19.625 19.975 19.975C19.625 20.325 19.1974 20.5 18.6923 20.5H5.30775ZM9.71925 15.3345L8.6655 14.2808L17.9462 5H14V3.5H20.5V10H19V6.05375L9.71925 15.3345Z`,fill:`currentColor`})),link_off:L.createElement(`svg`,{width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},L.createElement(`path`,{d:`M18.8843 16.1038L17.7498 14.9385C18.4228 14.7552 18.9661 14.3946 19.3796 13.8568C19.7931 13.319 19.9998 12.7 19.9998 12C19.9998 11.1604 19.705 10.444 19.1153 9.85105C18.5255 9.25805 17.8139 8.96155 16.9806 8.96155H13.1728V7.46155H16.9806C18.2293 7.46155 19.2947 7.90422 20.1768 8.78955C21.0588 9.67472 21.4998 10.7449 21.4998 12C21.4998 12.8859 21.262 13.6951 20.7863 14.4278C20.3107 15.1606 19.6767 15.7193 18.8843 16.1038ZM15.5806 12.75L14.0806 11.25H15.7306V12.75H15.5806ZM20.1461 22.2538L1.74609 3.8538L2.79984 2.80005L21.1998 21.2L20.1461 22.2538ZM10.8268 16.5386H7.03834C5.78318 16.5386 4.71301 16.0959 3.82784 15.2105C2.94251 14.3254 2.49984 13.2552 2.49984 12C2.49984 10.8885 2.85784 9.91322 3.57384 9.07405C4.28984 8.23505 5.18826 7.72838 6.26909 7.55405H6.49984L7.90759 8.96155H7.03834C6.19851 8.96155 5.48218 9.25805 4.88934 9.85105C4.29634 10.444 3.99984 11.1604 3.99984 12C3.99984 12.8397 4.29634 13.556 4.88934 14.149C5.48218 14.742 6.19851 15.0385 7.03834 15.0385H10.8268V16.5386ZM8.26909 12.75V11.25H10.2113L11.6863 12.75H8.26909Z`,fill:`currentColor`})),edit:L.createElement(`svg`,{width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},L.createElement(`path`,{d:`M5 19H6.2615L16.498 8.7635L15.2365 7.502L5 17.7385V19ZM3.5 20.5V17.1155L16.6905 3.93075C16.8417 3.79342 17.0086 3.68733 17.1913 3.6125C17.3741 3.5375 17.5658 3.5 17.7663 3.5C17.9668 3.5 18.1609 3.53558 18.3488 3.60675C18.5367 3.67792 18.7032 3.79108 18.848 3.94625L20.0693 5.18275C20.2244 5.32758 20.335 5.49425 20.401 5.68275C20.467 5.87125 20.5 6.05975 20.5 6.24825C20.5 6.44942 20.4657 6.64133 20.397 6.824C20.3283 7.00683 20.2191 7.17383 20.0693 7.325L6.8845 20.5H3.5ZM15.8562 8.14375L15.2365 7.502L16.498 8.7635L15.8562 8.14375Z`,fill:`currentColor`})),content_copy:L.createElement(`svg`,{width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},L.createElement(`path`,{d:`M9.05775 17.5C8.55258 17.5 8.125 17.325 7.775 16.975C7.425 16.625 7.25 16.1974 7.25 15.6923V4.30775C7.25 3.80258 7.425 3.375 7.775 3.025C8.125 2.675 8.55258 2.5 9.05775 2.5H17.4423C17.9474 2.5 18.375 2.675 18.725 3.025C19.075 3.375 19.25 3.80258 19.25 4.30775V15.6923C19.25 16.1974 19.075 16.625 18.725 16.975C18.375 17.325 17.9474 17.5 17.4423 17.5H9.05775ZM9.05775 16H17.4423C17.5192 16 17.5898 15.9679 17.6538 15.9038C17.7179 15.8398 17.75 15.7692 17.75 15.6923V4.30775C17.75 4.23075 17.7179 4.16025 17.6538 4.09625C17.5898 4.03208 17.5192 4 17.4423 4H9.05775C8.98075 4 8.91025 4.03208 8.84625 4.09625C8.78208 4.16025 8.75 4.23075 8.75 4.30775V15.6923C8.75 15.7692 8.78208 15.8398 8.84625 15.9038C8.91025 15.9679 8.98075 16 9.05775 16ZM5.55775 21C5.05258 21 4.625 20.825 4.275 20.475C3.925 20.125 3.75 19.6974 3.75 19.1923V6.30775H5.25V19.1923C5.25 19.2693 5.28208 19.3398 5.34625 19.4038C5.41025 19.4679 5.48075 19.5 5.55775 19.5H15.4423V21H5.55775Z`,fill:`currentColor`})),more_horiz:L.createElement(`svg`,{width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},L.createElement(`path`,{d:`M6.23096 13.5C5.81846 13.5 5.46537 13.3531 5.17171 13.0592C4.87787 12.7656 4.73096 12.4125 4.73096 12C4.73096 11.5875 4.87787 11.2344 5.17171 10.9408C5.46537 10.6469 5.81846 10.5 6.23096 10.5C6.64346 10.5 6.99662 10.6469 7.29046 10.9408C7.58412 11.2344 7.73096 11.5875 7.73096 12C7.73096 12.4125 7.58412 12.7656 7.29046 13.0592C6.99662 13.3531 6.64346 13.5 6.23096 13.5ZM12.0002 13.5C11.5877 13.5 11.2346 13.3531 10.941 13.0592C10.6471 12.7656 10.5002 12.4125 10.5002 12C10.5002 11.5875 10.6471 11.2344 10.941 10.9408C11.2346 10.6469 11.5877 10.5 12.0002 10.5C12.4127 10.5 12.7658 10.6469 13.0595 10.9408C13.3533 11.2344 13.5002 11.5875 13.5002 12C13.5002 12.4125 13.3533 12.7656 13.0595 13.0592C12.7658 13.3531 12.4127 13.5 12.0002 13.5ZM17.7695 13.5C17.357 13.5 17.0038 13.3531 16.71 13.0592C16.4163 12.7656 16.2695 12.4125 16.2695 12C16.2695 11.5875 16.4163 11.2344 16.71 10.9408C17.0038 10.6469 17.357 10.5 17.7695 10.5C18.182 10.5 18.535 10.6469 18.8287 10.9408C19.1225 11.2344 19.2695 11.5875 19.2695 12C19.2695 12.4125 19.1225 12.7656 18.8287 13.0592C18.535 13.3531 18.182 13.5 17.7695 13.5Z`,fill:`currentColor`})),more_vert:L.createElement(`svg`,{width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},L.createElement(`path`,{d:`M12 19.2692C11.5875 19.2692 11.2344 19.1223 10.9408 18.8285C10.6469 18.5348 10.5 18.1817 10.5 17.7692C10.5 17.3567 10.6469 17.0035 10.9408 16.7097C11.2344 16.416 11.5875 16.2692 12 16.2692C12.4125 16.2692 12.7656 16.416 13.0592 16.7097C13.3531 17.0035 13.5 17.3567 13.5 17.7692C13.5 18.1817 13.3531 18.5348 13.0592 18.8285C12.7656 19.1223 12.4125 19.2692 12 19.2692ZM12 13.5C11.5875 13.5 11.2344 13.353 10.9408 13.0592C10.6469 12.7655 10.5 12.4125 10.5 12C10.5 11.5875 10.6469 11.2344 10.9408 10.9407C11.2344 10.6469 11.5875 10.5 12 10.5C12.4125 10.5 12.7656 10.6469 13.0592 10.9407C13.3531 11.2344 13.5 11.5875 13.5 12C13.5 12.4125 13.3531 12.7655 13.0592 13.0592C12.7656 13.353 12.4125 13.5 12 13.5ZM12 7.73071C11.5875 7.73071 11.2344 7.58388 10.9408 7.29021C10.6469 6.99638 10.5 6.64321 10.5 6.23071C10.5 5.81821 10.6469 5.46513 10.9408 5.17146C11.2344 4.87763 11.5875 4.73071 12 4.73071C12.4125 4.73071 12.7656 4.87763 13.0592 5.17146C13.3531 5.46513 13.5 5.81821 13.5 6.23071C13.5 6.64321 13.3531 6.99638 13.0592 7.29021C12.7656 7.58388 12.4125 7.73071 12 7.73071Z`,fill:`currentColor`})),close:L.createElement(`svg`,{width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},L.createElement(`path`,{d:`M6.39994 18.6538L5.34619 17.6L10.9462 12L5.34619 6.4L6.39994 5.34625L11.9999 10.9463L17.5999 5.34625L18.6537 6.4L13.0537 12L18.6537 17.6L17.5999 18.6538L11.9999 13.0538L6.39994 18.6538Z`,fill:`currentColor`})),settings:L.createElement(`svg`,{width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},L.createElement(`path`,{d:`M9.69225 21.5L9.3115 18.4538C9.04367 18.3641 8.769 18.2385 8.4875 18.077C8.20617 17.9153 7.95459 17.7422 7.73275 17.5577L4.9115 18.75L2.604 14.75L5.04425 12.9058C5.02125 12.7571 5.00492 12.6077 4.99525 12.4578C4.98559 12.3078 4.98075 12.1583 4.98075 12.0095C4.98075 11.8673 4.98559 11.7228 4.99525 11.576C5.00492 11.4292 5.02125 11.2686 5.04425 11.0943L2.604 9.25L4.9115 5.26925L7.723 6.452C7.96417 6.261 8.22159 6.08633 8.49525 5.928C8.76892 5.76967 9.03784 5.64242 9.302 5.54625L9.69225 2.5H14.3078L14.6885 5.55575C14.9885 5.66475 15.2599 5.792 15.5028 5.9375C15.7458 6.083 15.991 6.2545 16.2385 6.452L19.0885 5.26925L21.396 9.25L18.9173 11.123C18.9531 11.2845 18.9727 11.4355 18.976 11.576C18.9792 11.7163 18.9808 11.8577 18.9808 12C18.9808 12.1358 18.9775 12.274 18.971 12.4145C18.9647 12.5548 18.9417 12.7154 18.902 12.8963L21.3615 14.75L19.0538 18.75L16.2385 17.548C15.991 17.7455 15.7384 17.9202 15.4808 18.072C15.2231 18.224 14.959 18.3481 14.6885 18.4443L14.3078 21.5H9.69225ZM11 20H12.9655L13.325 17.3212C13.8353 17.1879 14.3017 16.9985 14.724 16.753C15.1465 16.5073 15.5539 16.1916 15.9463 15.8057L18.4308 16.85L19.4155 15.15L17.2463 13.5155C17.3296 13.2565 17.3863 13.0026 17.4163 12.7537C17.4464 12.5051 17.4615 12.2538 17.4615 12C17.4615 11.7397 17.4464 11.4884 17.4163 11.2463C17.3863 11.0039 17.3296 10.7564 17.2463 10.5038L19.4345 8.85L18.45 7.15L15.9365 8.2095C15.6018 7.85183 15.2009 7.53583 14.7338 7.2615C14.2664 6.98717 13.7937 6.79292 13.3155 6.67875L13 4H11.0155L10.6845 6.66925C10.1743 6.78975 9.70325 6.97433 9.27125 7.223C8.83909 7.47183 8.42684 7.79233 8.0345 8.1845L5.55 7.15L4.5655 8.85L6.725 10.4595C6.64167 10.6968 6.58334 10.9437 6.55 11.2C6.51667 11.4563 6.5 11.7262 6.5 12.0095C6.5 12.2698 6.51667 12.525 6.55 12.775C6.58334 13.025 6.6385 13.2718 6.7155 13.5155L4.5655 15.15L5.55 16.85L8.025 15.8C8.4045 16.1897 8.81025 16.5089 9.24225 16.7578C9.67442 17.0064 10.152 17.1974 10.675 17.3307L11 20ZM12.0115 15C12.8435 15 13.5515 14.708 14.1355 14.124C14.7195 13.54 15.0115 12.832 15.0115 12C15.0115 11.168 14.7195 10.46 14.1355 9.876C13.5515 9.292 12.8435 9 12.0115 9C11.1692 9 10.4586 9.292 9.87975 9.876C9.30092 10.46 9.0115 11.168 9.0115 12C9.0115 12.832 9.30092 13.54 9.87975 14.124C10.4586 14.708 11.1692 15 12.0115 15Z`,fill:`currentColor`})),delete_big:L.createElement(`svg`,{width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},L.createElement(`path`,{d:`M7.30775 20.5C6.80908 20.5 6.38308 20.3234 6.02975 19.9702C5.67658 19.6169 5.5 19.1909 5.5 18.6922V5.99998H4.5V4.49998H9V3.61548H15V4.49998H19.5V5.99998H18.5V18.6922C18.5 19.1974 18.325 19.625 17.975 19.975C17.625 20.325 17.1974 20.5 16.6923 20.5H7.30775ZM17 5.99998H7V18.6922C7 18.7821 7.02883 18.8558 7.0865 18.9135C7.14417 18.9711 7.21792 19 7.30775 19H16.6923C16.7692 19 16.8398 18.9679 16.9038 18.9037C16.9679 18.8397 17 18.7692 17 18.6922V5.99998ZM9.404 17H10.9037V7.99998H9.404V17ZM13.0962 17H14.596V7.99998H13.0962V17Z`,fill:`currentColor`})),delete_small:L.createElement(`svg`,{width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},L.createElement(`path`,{d:`M7.30775 20.5C6.80908 20.5 6.38308 20.3234 6.02975 19.9702C5.67658 19.6169 5.5 19.1909 5.5 18.6922V5.99998H4.5V4.49998H9V3.61548H15V4.49998H19.5V5.99998H18.5V18.6922C18.5 19.1974 18.325 19.625 17.975 19.975C17.625 20.325 17.1974 20.5 16.6923 20.5H7.30775ZM17 5.99998H7V18.6922C7 18.7821 7.02883 18.8558 7.0865 18.9135C7.14417 18.9711 7.21792 19 7.30775 19H16.6923C16.7692 19 16.8398 18.9679 16.9038 18.9037C16.9679 18.8397 17 18.7692 17 18.6922V5.99998ZM9.404 17H10.9037V7.99998H9.404V17ZM13.0962 17H14.596V7.99998H13.0962V17Z`,fill:`currentColor`})),format_align_center:L.createElement(`svg`,{width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},L.createElement(`path`,{d:`M3.5 20.5V19H20.5V20.5H3.5ZM7.5 16.625V15.125H16.5V16.625H7.5ZM3.5 12.75V11.25H20.5V12.75H3.5ZM7.5 8.875V7.375H16.5V8.875H7.5ZM3.5 5V3.5H20.5V5H3.5Z`,fill:`currentColor`})),format_align_left:L.createElement(`svg`,{width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},L.createElement(`path`,{d:`M3.5 20.5V19H20.5V20.5H3.5ZM3.5 16.625V15.125H14.5V16.625H3.5ZM3.5 12.75V11.25H20.5V12.75H3.5ZM3.5 8.875V7.375H14.5V8.875H3.5ZM3.5 5V3.5H20.5V5H3.5Z`,fill:`currentColor`})),format_align_right:L.createElement(`svg`,{width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},L.createElement(`path`,{d:`M3.5 5V3.5H20.5V5H3.5ZM9.5 8.875V7.375H20.5V8.875H9.5ZM3.5 12.75V11.25H20.5V12.75H3.5ZM9.5 16.625V15.125H20.5V16.625H9.5ZM3.5 20.5V19H20.5V20.5H3.5Z`,fill:`currentColor`})),add_row:L.createElement(`svg`,{width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},L.createElement(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M4.025 10.2077C4.375 9.85775 4.80258 9.68275 5.30775 9.68275H6.5V11.1827H5.30775C5.21792 11.1827 5.14417 11.2116 5.0865 11.2693C5.02883 11.3269 5 11.4007 5 11.4905V16.1923C5 16.2821 5.02883 16.3558 5.0865 16.4135C5.14417 16.4712 5.21792 16.5 5.30775 16.5H18.6923C18.7821 16.5 18.8558 16.4712 18.9135 16.4135C18.9712 16.3558 19 16.2821 19 16.1923V11.4905C19 11.4007 18.9712 11.3269 18.9135 11.2693C18.8558 11.2116 18.7821 11.1827 18.6923 11.1827H17.6923V9.68275H18.6923C19.1974 9.68275 19.625 9.85775 19.975 10.2077C20.325 10.5577 20.5 10.9853 20.5 11.4905V16.1923C20.5 16.6974 20.325 17.125 19.975 17.475C19.625 17.825 19.1974 18 18.6923 18H5.30775C4.80258 18 4.375 17.825 4.025 17.475C3.675 17.125 3.5 16.6974 3.5 16.1923V11.4905C3.5 10.9853 3.675 10.5577 4.025 10.2077Z`,fill:`currentColor`}),L.createElement(`path`,{d:`M11.3848 9.68275V7.5H12.8848V9.68275H15V11.1827H12.8848V13.2307H11.3848V11.1827H9.26925V9.68275H11.3848Z`,fill:`currentColor`})),add_column:L.createElement(`svg`,{width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},L.createElement(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M9.70775 4.025C9.35775 4.375 9.18275 4.80258 9.18275 5.30775V6.5H10.6827V5.30775C10.6827 5.21792 10.7116 5.14417 10.7693 5.0865C10.8269 5.02883 10.9007 5 10.9905 5H15.6923C15.7821 5 15.8558 5.02883 15.9135 5.0865C15.9712 5.14417 16 5.21792 16 5.30775V18.6923C16 18.7821 15.9712 18.8558 15.9135 18.9135C15.8558 18.9712 15.7821 19 15.6923 19H10.9905C10.9007 19 10.8269 18.9712 10.7693 18.9135C10.7116 18.8558 10.6827 18.7821 10.6827 18.6923V17.6923H9.18275V18.6923C9.18275 19.1974 9.35775 19.625 9.70775 19.975C10.0577 20.325 10.4853 20.5 10.9905 20.5H15.6923C16.1974 20.5 16.625 20.325 16.975 19.975C17.325 19.625 17.5 19.1974 17.5 18.6923V5.30775C17.5 4.80258 17.325 4.375 16.975 4.025C16.625 3.675 16.1974 3.5 15.6923 3.5H10.9905C10.4853 3.5 10.0577 3.675 9.70775 4.025Z`,fill:`currentColor`}),L.createElement(`path`,{d:`M9.18275 11.3848H7V12.8848H9.18275V15H10.6827V12.8848H12.7307V11.3848H10.6827V9.26925H9.18275V11.3848Z`,fill:`currentColor`})),insert_col_left:L.createElement(`svg`,{width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},L.createElement(`path`,{d:`M13.0001 20.1152H8.67713H8.75388H8.69238H13.0001ZM7.19238 19.8075C7.19238 20.3127 7.36738 20.7402 7.71738 21.0902C8.06738 21.4402 8.49497 21.6152 9.00013 21.6152H12.6924C13.1975 21.6152 13.6251 21.4402 13.9751 21.0902C14.3251 20.7402 14.5001 20.3127 14.5001 19.8075V10.423H13.0001V19.8075C13.0001 19.8973 12.9713 19.9711 12.9136 20.0287C12.856 20.0864 12.7822 20.1152 12.6924 20.1152H9.00013C8.9103 20.1152 8.83655 20.0864 8.77888 20.0287C8.72122 19.9711 8.69238 19.8973 8.69238 19.8075V4.69223C8.26422 4.74357 7.90722 4.93299 7.62138 5.26048C7.33538 5.58798 7.19238 5.97548 7.19238 6.42298V19.8075ZM13.0001 2.49998V4.61523H10.8846V6.11523H13.0001V8.23073H14.5001V6.11523H16.6154V4.61523H14.5001V2.49998H13.0001Z`,fill:`currentColor`})),insert_row_above:L.createElement(`svg`,{width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},L.createElement(`path`,{d:`M20.1152 9.99987V14.3229V14.2461V14.3076V9.99987ZM19.8075 15.8076C20.3127 15.8076 20.7402 15.6326 21.0902 15.2826C21.4402 14.9326 21.6152 14.505 21.6152 13.9999V10.3076C21.6152 9.80245 21.4402 9.37487 21.0902 9.02487C20.7402 8.67487 20.3127 8.49987 19.8075 8.49987H10.423V9.99987H19.8075C19.8973 9.99987 19.9711 10.0287 20.0287 10.0864C20.0864 10.144 20.1152 10.2178 20.1152 10.3076V13.9999C20.1152 14.0897 20.0864 14.1635 20.0287 14.2211C19.9711 14.2788 19.8973 14.3076 19.8075 14.3076H4.69223C4.74357 14.7358 4.93299 15.0928 5.26048 15.3786C5.58798 15.6646 5.97548 15.8076 6.42298 15.8076H19.8075ZM2.49998 9.99987H4.61523V12.1154H6.11523V9.99987H8.23073V8.49987H6.11523V6.38462H4.61523V8.49987H2.49998V9.99987Z`,fill:`currentColor`})),insert_row_below:L.createElement(`svg`,{width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},L.createElement(`path`,{d:`M20.1152 14.1924V9.86939V9.94614V9.88464V14.1924ZM19.8075 8.38464C20.3127 8.38464 20.7402 8.55964 21.0902 8.90964C21.4402 9.25964 21.6152 9.68723 21.6152 10.1924V13.8846C21.6152 14.3898 21.4402 14.8174 21.0902 15.1674C20.7402 15.5174 20.3127 15.6924 19.8075 15.6924H10.423V14.1924H19.8075C19.8973 14.1924 19.9711 14.1636 20.0287 14.1059C20.0864 14.0482 20.1152 13.9745 20.1152 13.8846V10.1924C20.1152 10.1026 20.0864 10.0288 20.0287 9.97114C19.9711 9.91348 19.8973 9.88464 19.8075 9.88464H4.69223C4.74357 9.45648 4.93299 9.09948 5.26048 8.81364C5.58798 8.52764 5.97548 8.38464 6.42298 8.38464H19.8075ZM2.49998 14.1924H4.61523V12.0769H6.11523V14.1924H8.23073V15.6924H6.11523V17.8076H4.61523V15.6924H2.49998V14.1924Z`,fill:`currentColor`})),insert_col_right:L.createElement(`svg`,{width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},L.createElement(`path`,{d:`M10.8075 20.1152H15.1305H15.0537H15.1152H10.8075ZM16.6152 19.8075C16.6152 20.3127 16.4402 20.7402 16.0902 21.0902C15.7402 21.4402 15.3127 21.6152 14.8075 21.6152H11.1152C10.6101 21.6152 10.1825 21.4402 9.83248 21.0902C9.48248 20.7402 9.30748 20.3127 9.30748 19.8075V10.423H10.8075V19.8075C10.8075 19.8973 10.8363 19.9711 10.894 20.0287C10.9517 20.0864 11.0254 20.1152 11.1152 20.1152H14.8075C14.8973 20.1152 14.9711 20.0864 15.0287 20.0287C15.0864 19.9711 15.1152 19.8973 15.1152 19.8075V4.69223C15.5434 4.74357 15.9004 4.93299 16.1862 5.26048C16.4722 5.58798 16.6152 5.97548 16.6152 6.42298V19.8075ZM10.8075 2.49998V4.61523H12.923V6.11523H10.8075V8.23073H9.30748V6.11523H7.19223V4.61523H9.30748V2.49998H10.8075Z`,fill:`currentColor`})),check:L.createElement(`svg`,{width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},L.createElement(`path`,{d:`M9.54983 17.6537L4.21533 12.3192L5.28433 11.25L9.54983 15.5155L18.7153 6.34998L19.7843 7.41923L9.54983 17.6537Z`,fill:`currentColor`}))},J={editorRoot:`_editorRoot_1e2ox_53`,editorWrapper:`_editorWrapper_1e2ox_155`,toolbarRoot:`_toolbarRoot_1e2ox_162`,readOnlyToolbarRoot:`_readOnlyToolbarRoot_1e2ox_189`,toolbarToggleItem:`_toolbarToggleItem_1e2ox_208`,toolbarGroupOfGroups:`_toolbarGroupOfGroups_1e2ox_219`,toolbarToggleSingleGroup:`_toolbarToggleSingleGroup_1e2ox_224`,toolbarButton:`_toolbarButton_1e2ox_239`,activeToolbarButton:`_activeToolbarButton_1e2ox_275`,toolbarButtonDropdownContainer:`_toolbarButtonDropdownContainer_1e2ox_286`,selectContainer:`_selectContainer_1e2ox_288`,selectItem:`_selectItem_1e2ox_301`,toolbarButtonSelectTrigger:`_toolbarButtonSelectTrigger_1e2ox_307`,selectTrigger:`_selectTrigger_1e2ox_308`,selectDropdownArrow:`_selectDropdownArrow_1e2ox_374`,contentEditable:`_contentEditable_1e2ox_380`,codeMirrorWrapper:`_codeMirrorWrapper_1e2ox_392`,sandPackWrapper:`_sandPackWrapper_1e2ox_401`,codeMirrorToolbar:`_codeMirrorToolbar_1e2ox_409`,propertyPanelTitle:`_propertyPanelTitle_1e2ox_431`,propertyEditorTable:`_propertyEditorTable_1e2ox_439`,iconButton:`_iconButton_1e2ox_457`,readOnlyColumnCell:`_readOnlyColumnCell_1e2ox_462`,buttonsFooter:`_buttonsFooter_1e2ox_475`,propertyEditorInput:`_propertyEditorInput_1e2ox_481`,primaryButton:`_primaryButton_1e2ox_507`,secondaryButton:`_secondaryButton_1e2ox_508`,smallButton:`_smallButton_1e2ox_523`,dialogForm:`_dialogForm_1e2ox_535`,linkDialogEditForm:`_linkDialogEditForm_1e2ox_541`,linkDialogInputContainer:`_linkDialogInputContainer_1e2ox_549`,linkDialogInputWrapper:`_linkDialogInputWrapper_1e2ox_555`,linkDialogInput:`_linkDialogInput_1e2ox_549`,linkDialogAnchor:`_linkDialogAnchor_1e2ox_587`,linkDialogPopoverContent:`_linkDialogPopoverContent_1e2ox_601`,tableColumnEditorPopoverContent:`_tableColumnEditorPopoverContent_1e2ox_602`,dialogContent:`_dialogContent_1e2ox_603`,largeDialogContent:`_largeDialogContent_1e2ox_615`,dialogTitle:`_dialogTitle_1e2ox_625`,dialogCloseButton:`_dialogCloseButton_1e2ox_631`,popoverContent:`_popoverContent_1e2ox_638`,popoverArrow:`_popoverArrow_1e2ox_650`,linkDialogPreviewAnchor:`_linkDialogPreviewAnchor_1e2ox_654`,tooltipTrigger:`_tooltipTrigger_1e2ox_677`,tooltipContent:`_tooltipContent_1e2ox_681`,actionButton:`_actionButton_1e2ox_695`,primaryActionButton:`_primaryActionButton_1e2ox_702`,tableEditor:`_tableEditor_1e2ox_714`,toolCell:`_toolCell_1e2ox_725`,tableColumnEditorTrigger:`_tableColumnEditorTrigger_1e2ox_744`,addRowButton:`_addRowButton_1e2ox_746`,addColumnButton:`_addColumnButton_1e2ox_747`,tableColumnEditorToolbar:`_tableColumnEditorToolbar_1e2ox_789`,toggleGroupRoot:`_toggleGroupRoot_1e2ox_802`,tableToolsColumn:`_tableToolsColumn_1e2ox_820`,leftAlignedCell:`_leftAlignedCell_1e2ox_829`,rightAlignedCell:`_rightAlignedCell_1e2ox_833`,centeredCell:`_centeredCell_1e2ox_837`,dialogOverlay:`_dialogOverlay_1e2ox_870`,focusedImage:`_focusedImage_1e2ox_916`,imageWrapper:`_imageWrapper_1e2ox_920`,editImageToolbar:`_editImageToolbar_1e2ox_933`,editImageButton:`_editImageButton_1e2ox_937`,inlineEditor:`_inlineEditor_1e2ox_943`,blockEditor:`_blockEditor_1e2ox_952`,nestedEditor:`_nestedEditor_1e2ox_961`,genericComponentName:`_genericComponentName_1e2ox_980`,diffSourceToggleWrapper:`_diffSourceToggleWrapper_1e2ox_986`,ggDiffSourceToggle:`_ggDiffSourceToggle_1e2ox_994`,diffSourceToggle:`_diffSourceToggle_1e2ox_986`,selectWithLabel:`_selectWithLabel_1e2ox_1012`,toolbarTitleMode:`_toolbarTitleMode_1e2ox_1027`,imageControlWrapperResizing:`_imageControlWrapperResizing_1e2ox_1032`,imageResizer:`_imageResizer_1e2ox_1036`,imageResizerN:`_imageResizerN_1e2ox_1045`,imageResizerNe:`_imageResizerNe_1e2ox_1051`,imageResizerE:`_imageResizerE_1e2ox_1057`,imageResizerSe:`_imageResizerSe_1e2ox_1063`,imageResizerS:`_imageResizerS_1e2ox_1063`,imageResizerSw:`_imageResizerSw_1e2ox_1075`,imageResizerW:`_imageResizerW_1e2ox_1081`,imageResizerNw:`_imageResizerNw_1e2ox_1087`,imagePlaceholder:`_imagePlaceholder_1e2ox_1093`,imageDimensionsContainer:`_imageDimensionsContainer_1e2ox_1101`,placeholder:`_placeholder_1e2ox_1106`,rootContentEditableWrapper:`_rootContentEditableWrapper_1e2ox_1119`,downshiftInputWrapper:`_downshiftInputWrapper_1e2ox_1129`,downshiftInput:`_downshiftInput_1e2ox_1129`,downshiftAutocompleteContainer:`_downshiftAutocompleteContainer_1e2ox_1160`,textInput:`_textInput_1e2ox_1206`,multiFieldForm:`_multiFieldForm_1e2ox_1214`,formField:`_formField_1e2ox_1220`,markdownParseError:`_markdownParseError_1e2ox_1231`,popupContainer:`_popupContainer_1e2ox_1240`,inputSizer:`_inputSizer_1e2ox_1245`},CS=new Set([`http:`,`https:`,`mailto:`,`sms:`,`tel:`]),wS=class e extends ws{static getType(){return`link`}static clone(t){return new e(t.__url,{rel:t.__rel,target:t.__target,title:t.__title},t.__key)}constructor(e=``,t={},n){super(n);let{target:r=null,rel:i=null,title:a=null}=t;this.__url=e,this.__target=r,this.__rel=i,this.__title=a}createDOM(e){let t=document.createElement(`a`);return this.updateLinkDOM(null,t,e),Yu(t,e.theme.link),t}updateLinkDOM(e,t,n){if(ll(t)){e&&e.__url===this.__url||(t.href=this.sanitizeUrl(this.__url));for(let n of[`target`,`rel`,`title`]){let r=`__${n}`,i=this[r];e&&e[r]===i||(i?t[n]=i:t.removeAttribute(n))}}}updateDOM(e,t,n){return this.updateLinkDOM(e,t,n),!1}static importDOM(){return{a:e=>({conversion:TS,priority:1})}}static importJSON(e){return ES().updateFromJSON(e)}updateFromJSON(e){return super.updateFromJSON(e).setURL(e.url).setRel(e.rel||null).setTarget(e.target||null).setTitle(e.title||null)}sanitizeUrl(e){e=IS(e);try{let t=new URL(IS(e));if(!CS.has(t.protocol))return`about:blank`}catch{return e}return e}exportJSON(){return{...super.exportJSON(),rel:this.getRel(),target:this.getTarget(),title:this.getTitle(),url:this.getURL()}}getURL(){return this.getLatest().__url}setURL(e){let t=this.getWritable();return t.__url=e,t}getTarget(){return this.getLatest().__target}setTarget(e){let t=this.getWritable();return t.__target=e,t}getRel(){return this.getLatest().__rel}setRel(e){let t=this.getWritable();return t.__rel=e,t}getTitle(){return this.getLatest().__title}setTitle(e){let t=this.getWritable();return t.__title=e,t}insertNewAfter(e,t=!0){let n=ES(this.__url,{rel:this.__rel,target:this.__target,title:this.__title});return this.insertAfter(n,t),n}canInsertTextBefore(){return!1}canInsertTextAfter(){return!1}canBeEmpty(){return!1}isInline(){return!0}extractWithChild(e,t,n){if(!U(t))return!1;let r=t.anchor.getNode(),i=t.focus.getNode();return this.isParentOf(r)&&this.isParentOf(i)&&t.getTextContent().length>0}isEmailURI(){return this.__url.startsWith(`mailto:`)}isWebSiteURI(){return this.__url.startsWith(`https://`)||this.__url.startsWith(`http://`)}};function TS(e){let t=null;if(ll(e)){let n=e.textContent;(n!==null&&n!==``||e.children.length>0)&&(t=ES(e.getAttribute(`href`)||``,{rel:e.getAttribute(`rel`),target:e.getAttribute(`target`),title:e.getAttribute(`title`)}))}return{node:t}}function ES(e=``,t){return nl(new wS(e,t))}function DS(e){return e instanceof wS}var OS=class e extends wS{constructor(e=``,t={},n){super(e,t,n),this.__isUnlinked=t.isUnlinked!==void 0&&t.isUnlinked!==null&&t.isUnlinked}static getType(){return`autolink`}static clone(t){return new e(t.__url,{isUnlinked:t.__isUnlinked,rel:t.__rel,target:t.__target,title:t.__title},t.__key)}getIsUnlinked(){return this.__isUnlinked}setIsUnlinked(e){let t=this.getWritable();return t.__isUnlinked=e,t}createDOM(e){return this.__isUnlinked?document.createElement(`span`):super.createDOM(e)}updateDOM(e,t,n){return super.updateDOM(e,t,n)||e.__isUnlinked!==this.__isUnlinked}static importJSON(e){return kS().updateFromJSON(e)}updateFromJSON(e){return super.updateFromJSON(e).setIsUnlinked(e.isUnlinked||!1)}static importDOM(){return null}exportJSON(){return{...super.exportJSON(),isUnlinked:this.__isUnlinked}}insertNewAfter(e,t=!0){let n=this.getParentOrThrow().insertNewAfter(e,t);if(G(n)){let e=kS(this.__url,{isUnlinked:this.__isUnlinked,rel:this.__rel,target:this.__target,title:this.__title});return n.append(e),e}return null}};function kS(e=``,t){return nl(new OS(e,t))}function AS(e){return e instanceof OS}var jS=V(`TOGGLE_LINK_COMMAND`);function MS(e,t){if(e.type===`element`){let n=e.getNode();return G(n)||function(e,...t){let n=new URL(`https://lexical.dev/docs/error`),r=new URLSearchParams;r.append(`code`,e);for(let e of t)r.append(`v`,e);throw n.search=r.toString(),Error(`Minified Lexical error #${e}; visit ${n.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}(252),n.getChildren()[e.offset+t]||null}return null}function NS(e,t={}){let{target:n,title:r}=t,i=t.rel===void 0?`noreferrer`:t.rel,a=W();if(a===null||!U(a)&&!Eo(a))return;if(Eo(a)){let t=a.getNodes();if(t.length===0)return;t.forEach((t=>{if(e===null){let e=ed(t,(e=>!AS(e)&&DS(e)));e&&(e.insertBefore(t),e.getChildren().length===0&&e.remove())}else{let r=ed(t,(e=>!AS(e)&&DS(e)));if(r)r.setURL(e),n!==void 0&&r.setTarget(n),i!==void 0&&r.setRel(i);else{let r=ES(e,{rel:i,target:n});t.insertBefore(r),r.append(t)}}}));return}let o=a.extract();if(e===null)return void o.forEach((e=>{let t=ed(e,(e=>!AS(e)&&DS(e)));if(t){let e=t.getChildren();for(let n=0;n<e.length;n++)t.insertBefore(e[n]);t.remove()}}));let s=new Set,c=t=>{s.has(t.getKey())||(s.add(t.getKey()),t.setURL(e),n!==void 0&&t.setTarget(n),i!==void 0&&t.setRel(i),r!==void 0&&t.setTitle(r))};if(o.length===1){let e=PS(o[0],DS);if(e!==null)return c(e)}(function(e){let t=W();if(!U(t))return e();let n=Ur(t),r=n.isBackward(),i=MS(n.anchor,r?-1:0),a=MS(n.focus,r?0:-1);if(e(),i||a){let e=W();if(U(e)){let t=e.clone();if(i){let e=i.getParent();e&&t.anchor.set(e.getKey(),i.getIndexWithinParent()+ +!!r,`element`)}if(a){let e=a.getParent();e&&t.focus.set(e.getKey(),a.getIndexWithinParent()+ +!r,`element`)}Sc(Ur(t))}}})((()=>{let t=null;for(let a of o){if(!a.isAttached())continue;let o=PS(a,DS);if(o){c(o);continue}if(G(a)){if(!a.isInline())continue;if(DS(a)){if(!(AS(a)||t!==null&&t.getParentOrThrow().isParentOf(a))){c(a),t=a;continue}for(let e of a.getChildren())a.insertBefore(e);a.remove();continue}}let s=a.getPreviousSibling();DS(s)&&s.is(t)?s.append(a):(t=ES(e,{rel:i,target:n,title:r}),a.insertAfter(t),t.append(a))}}))}function PS(e,t){let n=e;for(;n!==null&&n.getParent()!==null&&!t(n);)n=n.getParentOrThrow();return t(n)?n:null}var FS=/^\+?[0-9\s()-]{5,}$/;function IS(e){return e.match(/^[a-z][a-z0-9+.-]*:/i)||e.match(/^[/#.]/)?e:e.includes(`@`)?`mailto:${e}`:FS.test(e)?`tel:${e}`:`https://${e}`}function LS(e,...t){let n=new URL(`https://lexical.dev/docs/error`),r=new URLSearchParams;r.append(`code`,e);for(let e of t)r.append(`v`,e);throw n.search=r.toString(),Error(`Minified Lexical error #${e}; visit ${n.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}function RS(e){let t=1,n=e.getParent();for(;n!=null;){if(iC(n)){let e=n.getParent();if(dC(e)){t++,n=e.getParent();continue}LS(40)}return t}return t}function zS(e){let t=e.getParent();dC(t)||LS(40);let n=t;for(;n!==null;)n=n.getParent(),dC(n)&&(t=n);return t}function BS(e){let t=[],n=e.getChildren().filter(iC);for(let e=0;e<n.length;e++){let r=n[e],i=r.getFirstChild();dC(i)?t=t.concat(BS(i)):t.push(r)}return t}function VS(e){return iC(e)&&dC(e.getFirstChild())}function HS(e){return rC().append(e)}function US(e,t){return iC(e)&&(t.length===0||t.length===1&&e.is(t[0])&&e.getChildrenSize()===0)}function WS(e){let t=W();if(t!==null){let n=t.getNodes();if(U(t)){let r=t.getStartEndPoints();r===null&&LS(143);let[i]=r,a=i.getNode(),o=a.getParent();if(el(a)){let e=a.getFirstChild();if(e)n=e.selectStart().getNodes();else{let e=zs();a.append(e),n=e.select().getNodes()}}else if(US(a,n)){let t=uC(e);if(el(o)){a.replace(t);let e=rC();G(a)&&(e.setFormat(a.getFormatType()),e.setIndent(a.getIndent())),t.append(e)}else if(iC(a)){let e=a.getParentOrThrow();GS(t,e.getChildren()),e.replace(t)}return}}let r=new Set;for(let t=0;t<n.length;t++){let i=n[t];if(G(i)&&i.isEmpty()&&!iC(i)&&!r.has(i.getKey())){KS(i,e);continue}let a=cc(i)?i.getParent():iC(i)&&i.isEmpty()?i:null;for(;a!=null;){let t=a.getKey();if(dC(a)){if(!r.has(t)){let n=uC(e);GS(n,a.getChildren()),a.replace(n),r.add(t)}break}{let n=a.getParent();if(el(n)&&!r.has(t)){r.add(t),KS(a,e);break}a=n}}}}}function GS(e,t){e.splice(e.getChildrenSize(),0,t)}function KS(e,t){if(dC(e))return e;let n=e.getPreviousSibling(),r=e.getNextSibling(),i=rC(),a;if(GS(i,e.getChildren()),dC(n)&&t===n.getListType())n.append(i),dC(r)&&t===r.getListType()&&(GS(n,r.getChildren()),r.remove()),a=n;else if(dC(r)&&t===r.getListType())r.getFirstChildOrThrow().insertBefore(i),a=r;else{let n=uC(t);n.append(i),e.replace(n),a=n}return i.setFormat(e.getFormatType()),i.setIndent(e.getIndent()),e.remove(),a}function qS(e,t){let n=e.getLastChild(),r=t.getFirstChild();n&&r&&VS(n)&&VS(r)&&(qS(n.getFirstChild(),r.getFirstChild()),r.remove());let i=t.getChildren();i.length>0&&e.append(...i),t.remove()}function JS(){let e=W();if(U(e)){let t=new Set,n=e.getNodes(),r=e.anchor.getNode();if(US(r,n))t.add(zS(r));else for(let e=0;e<n.length;e++){let r=n[e];if(cc(r)){let e=Qu(r,eC);e!=null&&t.add(zS(e))}}for(let n of t){let t=n,r=BS(n);for(let n of r){let r=zs().setTextStyle(e.style).setTextFormat(e.format);GS(r,n.getChildren()),t.insertAfter(r),t=r,n.__key===e.anchor.key&&ou(e.anchor,mu(Gl(r,`next`))),n.__key===e.focus.key&&ou(e.focus,mu(Gl(r,`next`))),n.remove()}n.remove()}}}function YS(e){let t=e.getListType()!==`check`,n=e.getStart();for(let r of e.getChildren())iC(r)&&(r.getValue()!==n&&r.setValue(n),t&&r.getLatest().__checked!=null&&r.setChecked(void 0),dC(r.getFirstChild())||n++)}function XS(e){let t=new Set;if(VS(e)||t.has(e.getKey()))return;let n=e.getParent(),r=e.getNextSibling(),i=e.getPreviousSibling();if(VS(r)&&VS(i)){let n=i.getFirstChild();if(dC(n)){n.append(e);let i=r.getFirstChild();dC(i)&&(GS(n,i.getChildren()),r.remove(),t.add(r.getKey()))}}else if(VS(r)){let t=r.getFirstChild();if(dC(t)){let n=t.getFirstChild();n!==null&&n.insertBefore(e)}}else if(VS(i)){let t=i.getFirstChild();dC(t)&&t.append(e)}else if(dC(n)){let t=rC().setTextFormat(e.getTextFormat()).setTextStyle(e.getTextStyle()),a=uC(n.getListType()).setTextFormat(n.getTextFormat()).setTextStyle(n.getTextStyle());t.append(a),a.append(e),i?i.insertAfter(t):r?r.insertBefore(t):n.append(t)}}function ZS(e){if(VS(e))return;let t=e.getParent(),n=t?t.getParent():void 0;if(dC(n?n.getParent():void 0)&&iC(n)&&dC(t)){let r=t?t.getFirstChild():void 0,i=t?t.getLastChild():void 0;if(e.is(r))n.insertBefore(e),t.isEmpty()&&n.remove();else if(e.is(i))n.insertAfter(e),t.isEmpty()&&n.remove();else{let r=t.getListType(),i=rC(),a=uC(r);i.append(a),e.getPreviousSiblings().forEach((e=>a.append(e)));let o=rC(),s=uC(r);o.append(s),GS(s,e.getNextSiblings()),n.insertBefore(i),n.insertAfter(o),n.replace(e)}}}function QS(){let e=W();if(!U(e)||!e.isCollapsed())return!1;let t=e.anchor.getNode();if(!iC(t)||t.getChildrenSize()!==0)return!1;let n=zS(t),r=t.getParent();dC(r)||LS(40);let i=r.getParent(),a;if(el(i))a=zs(),n.insertAfter(a);else{if(!iC(i))return!1;a=rC(),i.insertAfter(a)}a.setTextStyle(e.style).setTextFormat(e.format).select();let o=t.getNextSiblings();if(o.length>0){let e=uC(r.getListType());if(iC(a)){let t=rC();t.append(e),a.insertAfter(t)}else a.insertAfter(e);e.append(...o)}return function(e){let t=e;for(;t.getNextSibling()==null&&t.getPreviousSibling()==null;){let e=t.getParent();if(e==null||!iC(e)&&!dC(e))break;t=e}t.remove()}(t),!0}function $S(...e){let t=[];for(let n of e)if(n&&typeof n==`string`)for(let[e]of n.matchAll(/\S+/g))t.push(e);return t}var eC=class extends ws{$config(){return this.config(`listitem`,{$transform:e=>{if(e.__checked==null)return;let t=e.getParent();dC(t)&&t.getListType()!==`check`&&e.getChecked()!=null&&e.setChecked(void 0)},extends:ws,importDOM:Ka({li:()=>({conversion:tC,priority:0})})})}constructor(e=1,t=void 0,n){super(n),this.__value=e===void 0?1:e,this.__checked=t}afterCloneFrom(e){super.afterCloneFrom(e),this.__value=e.__value,this.__checked=e.__checked}createDOM(e){let t=document.createElement(`li`);return this.updateListItemDOM(null,t,e),t}updateListItemDOM(e,t,n){let r=this.getParent();dC(r)&&r.getListType()===`check`&&function(e,t,n,r){dC(t.getFirstChild())?(e.removeAttribute(`role`),e.removeAttribute(`tabIndex`),e.removeAttribute(`aria-checked`)):(e.setAttribute(`role`,`checkbox`),e.setAttribute(`tabIndex`,`-1`),n&&t.__checked===n.__checked||e.setAttribute(`aria-checked`,t.getChecked()?`true`:`false`))}(t,this,e),t.value=this.__value,function(e,t,n){let r=[],i=[],a=t.list,o=a?a.listitem:void 0,s;if(a&&a.nested&&(s=a.nested.listitem),o!==void 0&&r.push(...$S(o)),a){let e=n.getParent(),t=dC(e)&&e.getListType()===`check`,o=n.getChecked();t&&!o||i.push(a.listitemUnchecked),t&&o||i.push(a.listitemChecked),t&&r.push(o?a.listitemChecked:a.listitemUnchecked)}if(s!==void 0){let e=$S(s);n.getChildren().some((e=>dC(e)))?r.push(...e):i.push(...e)}i.length>0&&Xu(e,...i),r.length>0&&Yu(e,...r)}(t,n.theme,this);let i=e?e.__style:``,a=this.__style;i!==a&&(a===``?t.removeAttribute(`style`):t.style.cssText=a),function(e,t,n){let r=Tu(t.__textStyle);for(let t in r)e.style.setProperty(`--listitem-marker-${t}`,r[t]);if(n)for(let t in Tu(n.__textStyle))t in r||e.style.removeProperty(`--listitem-marker-${t}`)}(t,this,e)}updateDOM(e,t,n){let r=t;return this.updateListItemDOM(e,r,n),!1}updateFromJSON(e){return super.updateFromJSON(e).setValue(e.value).setChecked(e.checked)}exportDOM(e){let t=this.createDOM(e._config),n=this.getFormatType();n&&(t.style.textAlign=n);let r=this.getDirection();return r&&(t.dir=r),{element:t}}exportJSON(){return{...super.exportJSON(),checked:this.getChecked(),value:this.getValue()}}append(...e){for(let t=0;t<e.length;t++){let n=e[t];if(G(n)&&this.canMergeWith(n)){let e=n.getChildren();this.append(...e),n.remove()}else super.append(n)}return this}replace(e,t){if(iC(e))return super.replace(e);this.setIndent(0);let n=this.getParentOrThrow();if(!dC(n))return e;if(n.__first===this.getKey())n.insertBefore(e);else if(n.__last===this.getKey())n.insertAfter(e);else{let t=uC(n.getListType()),r=this.getNextSibling();for(;r;){let e=r;r=r.getNextSibling(),t.append(e)}n.insertAfter(e),e.insertAfter(t)}return t&&(G(e)||LS(139),this.getChildren().forEach((t=>{e.append(t)}))),this.remove(),n.getChildrenSize()===0&&n.remove(),e}insertAfter(e,t=!0){let n=this.getParentOrThrow();if(dC(n)||LS(39),iC(e))return super.insertAfter(e,t);let r=this.getNextSiblings();if(n.insertAfter(e,t),r.length!==0){let i=uC(n.getListType());r.forEach((e=>i.append(e))),e.insertAfter(i,t)}return e}remove(e){let t=this.getPreviousSibling(),n=this.getNextSibling();super.remove(e),t&&n&&VS(t)&&VS(n)&&(qS(t.getFirstChild(),n.getFirstChild()),n.remove())}insertNewAfter(e,t=!0){let n=rC().updateFromJSON(this.exportJSON()).setChecked(!this.getChecked()&&void 0);return this.insertAfter(n,t),n}collapseAtStart(e){let t=zs();this.getChildren().forEach((e=>t.append(e)));let n=this.getParentOrThrow(),r=n.getParentOrThrow(),i=iC(r);if(n.getChildrenSize()===1)if(i)n.remove(),r.select();else{n.insertBefore(t),n.remove();let r=e.anchor,i=e.focus,a=t.getKey();r.type===`element`&&r.getNode().is(this)&&r.set(a,r.offset,`element`),i.type===`element`&&i.getNode().is(this)&&i.set(a,i.offset,`element`)}else n.insertBefore(t),this.remove();return!0}getValue(){return this.getLatest().__value}setValue(e){let t=this.getWritable();return t.__value=e,t}getChecked(){let e=this.getLatest(),t,n=this.getParent();return dC(n)&&(t=n.getListType()),t===`check`?!!e.__checked:void 0}setChecked(e){let t=this.getWritable();return t.__checked=e,t}toggleChecked(){let e=this.getWritable();return e.setChecked(!e.__checked)}getIndent(){let e=this.getParent();if(e===null||!this.isAttached())return this.getLatest().__indent;let t=e.getParentOrThrow(),n=0;for(;iC(t);)t=t.getParentOrThrow().getParentOrThrow(),n++;return n}setIndent(e){typeof e!=`number`&&LS(117),(e=Math.floor(e))>=0||LS(199);let t=this.getIndent();for(;t!==e;)t<e?(XS(this),t++):(ZS(this),t--);return this}canInsertAfter(e){return iC(e)}canReplaceWith(e){return iC(e)}canMergeWith(e){return iC(e)||Bs(e)}extractWithChild(e,t){if(!U(t))return!1;let n=t.anchor.getNode(),r=t.focus.getNode();return this.isParentOf(n)&&this.isParentOf(r)&&this.getTextContent().length===t.getTextContent().length}isParentRequired(){return!0}createParentElementNode(){return uC(`bullet`)}canMergeWhenEmpty(){return!0}};function tC(e){if(e.classList.contains(`task-list-item`)){for(let t of e.children)if(t.tagName===`INPUT`)return nC(t)}let t=e.getAttribute(`aria-checked`);return{node:rC(t===`true`||t!==`false`&&void 0)}}function nC(e){return e.getAttribute(`type`)===`checkbox`?{node:rC(e.hasAttribute(`checked`))}:{node:null}}function rC(e){return nl(new eC(void 0,e))}function iC(e){return e instanceof eC}var aC=class extends ws{$config(){return this.config(`list`,{$transform:e=>{(function(e){let t=e.getNextSibling();dC(t)&&e.getListType()===t.getListType()&&qS(e,t)})(e),YS(e)},extends:ws,importDOM:Ka({ol:()=>({conversion:cC,priority:0}),ul:()=>({conversion:cC,priority:0})})})}constructor(e=`number`,t=1,n){super(n);let r=lC[e]||e;this.__listType=r,this.__tag=r===`number`?`ol`:`ul`,this.__start=t}afterCloneFrom(e){super.afterCloneFrom(e),this.__listType=e.__listType,this.__tag=e.__tag,this.__start=e.__start}getTag(){return this.getLatest().__tag}setListType(e){let t=this.getWritable();return t.__listType=e,t.__tag=e===`number`?`ol`:`ul`,t}getListType(){return this.getLatest().__listType}getStart(){return this.getLatest().__start}setStart(e){let t=this.getWritable();return t.__start=e,t}createDOM(e,t){let n=this.__tag,r=document.createElement(n);return this.__start!==1&&r.setAttribute(`start`,String(this.__start)),r.__lexicalListType=this.__listType,oC(r,e.theme,this),r}updateDOM(e,t,n){return e.__tag!==this.__tag||(oC(t,n.theme,this),!1)}updateFromJSON(e){return super.updateFromJSON(e).setListType(e.listType).setStart(e.start)}exportDOM(e){let t=this.createDOM(e._config,e);return ul(t)&&(this.__start!==1&&t.setAttribute(`start`,String(this.__start)),this.__listType===`check`&&t.setAttribute(`__lexicalListType`,`check`)),{element:t}}exportJSON(){return{...super.exportJSON(),listType:this.getListType(),start:this.getStart(),tag:this.getTag()}}canBeEmpty(){return!1}canIndent(){return!1}splice(e,t,n){let r=n;for(let e=0;e<n.length;e++){let t=n[e];iC(t)||(r===n&&(r=[...n]),r[e]=rC().append(!G(t)||dC(t)||t.isInline()?t:ho(t.getTextContent())))}return super.splice(e,t,r)}extractWithChild(e){return iC(e)}};function oC(e,t,n){let r=[],i=[],a=t.list;if(a!==void 0){let e=a[`${n.__tag}Depth`]||[],t=RS(n)-1,o=t%e.length,s=e[o],c=a[n.__tag],l,u=a.nested,d=a.checklist;if(u!==void 0&&u.list&&(l=u.list),c!==void 0&&r.push(c),d!==void 0&&n.__listType===`check`&&r.push(d),s!==void 0){r.push(...$S(s));for(let t=0;t<e.length;t++)t!==o&&i.push(n.__tag+t)}if(l!==void 0){let e=$S(l);t>1?r.push(...e):i.push(...e)}}i.length>0&&Xu(e,...i),r.length>0&&Yu(e,...r)}function sC(e){let t=[];for(let n=0;n<e.length;n++){let r=e[n];if(iC(r)){t.push(r);let e=r.getChildren();e.length>1&&e.forEach((e=>{dC(e)&&t.push(HS(e))}))}else t.push(HS(r))}return t}function cC(e){let t=e.nodeName.toLowerCase(),n=null;return t===`ol`?n=uC(`number`,e.start):t===`ul`&&(n=function(e){if(e.getAttribute(`__lexicallisttype`)===`check`||e.classList.contains(`contains-task-list`))return!0;for(let t of e.childNodes)if(ul(t)&&t.hasAttribute(`aria-checked`))return!0;return!1}(e)?uC(`check`):uC(`bullet`)),{after:sC,node:n}}var lC={ol:`number`,ul:`bullet`};function uC(e=`number`,t=1){return nl(new aC(e,t))}function dC(e){return e instanceof aC}var fC=V(`INSERT_CHECK_LIST_COMMAND`);function pC(e){return Ku(e.registerCommand(fC,(()=>(WS(`check`),!0)),1),e.registerCommand(Gi,(t=>vC(t,e,!1)),1),e.registerCommand(Wi,(t=>vC(t,e,!0)),1),e.registerCommand(Yi,(()=>_C()==null?!1:(e.getRootElement()?.focus(),!0)),1),e.registerCommand(qi,(t=>{let n=_C();return!(n==null||!e.isEditable())&&(e.update((()=>{let e=_c(n);iC(e)&&(t.preventDefault(),e.toggleChecked())})),!0)}),1),e.registerCommand(Hi,(t=>e.getEditorState().read((()=>{let n=W();if(U(n)&&n.isCollapsed()){let{anchor:r}=n,i=r.type===`element`;if(i||r.offset===0){let n=r.getNode(),a=ed(n,(e=>G(e)&&!e.isInline()));if(iC(a)){let r=a.getParent();if(dC(r)&&r.getListType()===`check`&&(i||a.getFirstDescendant()===n)){let n=e.getElementByKey(a.__key);if(n!=null&&document.activeElement!==n)return n.focus(),t.preventDefault(),!0}}}}return!1}))),1),e.registerRootListener(((e,t)=>{e!==null&&(e.addEventListener(`click`,hC),e.addEventListener(`pointerdown`,gC)),t!==null&&(t.removeEventListener(`click`,hC),t.removeEventListener(`pointerdown`,gC))})))}function mC(e,t){let n=e.target;if(!ul(n))return;let r=n.firstChild;if(ul(r)&&(r.tagName===`UL`||r.tagName===`OL`))return;let i=n.parentNode;if(!i||i.__lexicalListType!==`check`)return;let a=n.getBoundingClientRect(),o=sd(n),s=e.clientX/o,c=window.getComputedStyle?window.getComputedStyle(n,`::before`):{width:`0px`},l=parseFloat(c.width),u=e.pointerType===`touch`?32:0;(n.dir===`rtl`?s<a.right+u&&s>a.right-l-u:s>a.left-u&&s<a.left+l+u)&&t()}function hC(e){mC(e,(()=>{if(ul(e.target)){let t=e.target,n=ec(t);n!=null&&n.isEditable()&&n.update((()=>{let e=_c(t);iC(e)&&(t.focus(),e.toggleChecked())}))}}))}function gC(e){mC(e,(()=>{e.preventDefault()}))}function _C(){let e=document.activeElement;return ul(e)&&e.tagName===`LI`&&e.parentNode!=null&&e.parentNode.__lexicalListType===`check`?e:null}function vC(e,t,n){let r=_C();return r!=null&&t.update((()=>{let i=_c(r);if(!iC(i))return;let a=function(e,t){let n=t?e.getPreviousSibling():e.getNextSibling(),r=e;for(;n==null&&iC(r);)r=r.getParentOrThrow().getParent(),r!=null&&(n=t?r.getPreviousSibling():r.getNextSibling());for(;iC(n);){let e=t?n.getLastChild():n.getFirstChild();if(!dC(e))return n;n=t?e.getLastChild():e.getFirstChild()}return null}(i,n);if(a!=null){a.selectStart();let n=t.getElementByKey(a.__key);n!=null&&(e.preventDefault(),setTimeout((()=>{n.focus()}),0))}})),!1}var yC=V(`UPDATE_LIST_START_COMMAND`),bC=V(`INSERT_UNORDERED_LIST_COMMAND`),xC=V(`INSERT_ORDERED_LIST_COMMAND`),SC=V(`REMOVE_LIST_COMMAND`);function CC(e){return Ku(e.registerCommand(xC,(()=>(WS(`number`),!0)),1),e.registerCommand(yC,(e=>{let{listNodeKey:t,newStart:n}=e,r=mc(t);return!!dC(r)&&(r.getListType()===`number`&&(r.setStart(n),YS(r)),!0)}),1),e.registerCommand(bC,(()=>(WS(`bullet`),!0)),1),e.registerCommand(SC,(()=>(JS(),!0)),1),e.registerCommand(Ai,(()=>QS()),1),e.registerNodeTransform(eC,(e=>{let t=e.getFirstChild();if(t){if(H(t)){let n=t.getStyle(),r=t.getFormat();e.getTextStyle()!==n&&e.setTextStyle(n),e.getTextFormat()!==r&&e.setTextFormat(r)}}else{let t=W();U(t)&&(t.style!==e.getTextStyle()||t.format!==e.getTextFormat())&&t.isCollapsed()&&e.is(t.anchor.getNode())&&e.setTextStyle(t.style).setTextFormat(t.format)}})),e.registerNodeTransform(ao,(e=>{let t=e.getParent();if(iC(t)&&e.is(t.getFirstChild())){let n=e.getStyle(),r=e.getFormat();n===t.getTextStyle()&&r===t.getTextFormat()||t.setTextStyle(n).setTextFormat(r)}})))}function wC(e){let t=e=>{let t=e.getParent();if(dC(e.getFirstChild())||!dC(t))return;let n=ed(e,(e=>iC(e)&&dC(e.getParent())&&iC(e.getPreviousSibling())));if(n===null&&e.getIndent()>0)e.setIndent(0);else if(iC(n)){let r=n.getPreviousSibling();if(iC(r)){let n=function(e){let t=e,n=t.getFirstChild();for(;dC(n);){let e=n.getLastChild();if(!iC(e))break;t=e,n=t.getFirstChild()}return t}(r).getParent();if(dC(n)){let r=RS(n);r+1<RS(t)&&e.setIndent(r)}}}};return e.registerNodeTransform(aC,(e=>{let n=[e];for(;n.length>0;){let e=n.shift();if(dC(e)){for(let r of e.getChildren())if(iC(r)){t(r);let e=r.getFirstChild();dC(e)&&n.push(e)}}}}))}function TC(e){try{let t=e.anchor,n=e.focus,r=e.anchor.getNode(),i=e.focus.getNode();return r===i?r:e.isBackward()?Au(n)?r:i:Au(t)?r:i}catch{return null}}var EC=[`transform`,`perspective`,`filter`,`backdrop-filter`,`contain`,`container-type`],DC=[`layout`,`paint`,`strict`,`content`];function OC(e){let t=e?.parentElement;for(;t;){let e=window.getComputedStyle(t),n=e.willChange.split(`,`).map(e=>e.trim()).some(e=>EC.includes(e));if(e.transform!==`none`||e.perspective!==`none`||e.filter!==`none`||e.backdropFilter!==`none`||DC.includes(e.contain)||e.containerType!==`normal`||e.contentVisibility===`auto`||n)return t;t=t.parentElement}return null}function kC(e){let t=W(),n=window.getSelection(),r=document.activeElement,i=e.getRootElement();if(t!==null&&n!==null&&i!==null&&i.contains(n.anchorNode)&&e.isEditable()){let e=n.getRangeAt(0),t;if(n.isCollapsed){let e=n.anchorNode;e?.nodeType==3&&(e=e.parentNode),t=e.getBoundingClientRect(),t.width=0}else if(n.anchorNode===i){let e=i;for(;e.firstElementChild!=null;)e=e.firstElementChild;t=e.getBoundingClientRect()}else t=e.getBoundingClientRect();let r=OC(i);if(r){let e=r.getBoundingClientRect();return{top:Math.round(t.top-e.top),left:Math.round(t.left-e.left),width:Math.round(t.width),height:Math.round(t.height)}}return{top:Math.round(t.top),left:Math.round(t.left),width:Math.round(t.width),height:Math.round(t.height)}}else if(r?.className!==`link-input`)return null;return null}function AC(e,t){let n=``;return e.getEditorState().read(()=>{let e=W();if(!e||!U(e)||e.isCollapsed())return;let t=e.getNodes();if(t.length===0)return;let r=new Set;t.forEach(e=>{let t=e;for(;t;){if(of(t)||iC(t)||t.getType()===`paragraph`||t.getType()===`quote`){G(t)&&r.add(t);break}t=t.getParent()}});let i=r.size>0?Array.from(r):t;function a(e){if(of(e)){let t=parseInt(e.getTag().replace(`h`,``)),n=e.getChildren().map(e=>a(e)).join(``);return`#`.repeat(t)+` `+n+`
|
|
80
|
+
|
|
81
|
+
`}else if(iC(e)){let t=e.getParent();return(t&&dC(t)&&t.getListType()===`number`?`1. `:`- `)+e.getChildren().map(e=>a(e)).join(``)+`
|
|
82
|
+
`}else if(dC(e))return e.getChildren().map(e=>a(e)).join(``)+`
|
|
83
|
+
`;else if(H(e)){let t=e.getTextContent(),n=e.getFormat();return n&16?`\`${t}\``:(n&1&&(t=`**${t}**`),n&2&&(t=`*${t}*`),n&4&&(t=`~~${t}~~`),t)}else if(DS(e)){let t=e.getURL(),n=e.getTitle(),r=e.getChildren().map(e=>a(e)).join(``);return n?`[${r}](${t} "${n}")`:`[${r}](${t})`}else if(G(e))return e.getChildren().map(e=>a(e)).join(``);return e.getTextContent()}n=i.map(e=>a(e)).join(``)}),n.trim()}var jC=pt(xS(),1),MC=({children:e})=>{let t=xn(Ob),n=L.useMemo(()=>[t,Pn(null,Eb)],[t]);return L.createElement(Nn.Provider,{value:n},e)},NC=()=>{let e=Xx(),t=Cn(ax),n=Cn(gx),r=e=>{n(e),t(e?{current:e}:null)},[i,a,o,s,c,l,u]=Sn(Ab,jb,Dx,kx,Nx,Nb,jx);return L.createElement(L.Fragment,null,s.map((e,t)=>L.createElement(e,{key:t})),L.createElement(LC,{wrappers:c},L.createElement(`div`,{className:(0,jC.default)(J.rootContentEditableWrapper,`mdxeditor-root-contenteditable`)},L.createElement(yS,{contentEditable:L.createElement(`div`,{ref:r},L.createElement(aS,{className:(0,jC.default)(J.contentEditable,i),ariaLabel:e(`contentArea.editableMarkdown`,`editable markdown`),spellCheck:a})),placeholder:L.createElement(`div`,{className:(0,jC.default)(J.contentEditable,J.placeholder,i)},L.createElement(`p`,null,l)),ErrorBoundary:dS}))),o.map((e,t)=>L.createElement(e,{key:t})),u.map((e,t)=>L.createElement(e,{key:t})))},PC={listItemIndent:`one`},FC=e=>SS[e];function IC(e,t,n={}){let r=t;for(let[e,t]of Object.entries(n))r=r.replaceAll(`{{${e}}}`,String(t));return r}var LC=({wrappers:e,children:t})=>{if(e.length===0)return L.createElement(L.Fragment,null,t);let n=e[0];return L.createElement(n,null,L.createElement(LC,{wrappers:e.slice(1)},t))},RC=({children:e,className:t,overlayContainer:n})=>{let r=L.useRef(null),i=L.useRef(null),a=Cn(rx),o=Cn(ix);return L.useEffect(()=>{let e=document.createElement(`div`);return e.classList.add(`mdxeditor-popup-container`,J.editorRoot,J.popupContainer,...(t??``).trim().split(` `).filter(Boolean)),(n??document.body).appendChild(e),r.current=e,a(r),o(i),()=>{e.remove()}},[t,r,n,a,o]),L.createElement(`div`,{className:(0,jC.default)(`mdxeditor`,J.editorRoot,J.editorWrapper,t),ref:i},e)},zC=({mdxRef:e})=>{let t=bn();return L.useImperativeHandle(e,()=>({getMarkdown:()=>{let e=t.getValue(Ux);return e===`source`||e===`diff`?t.getValue(Wx):t.getValue(Hb)},setMarkdown:e=>{t.pub(px,e)},insertMarkdown:e=>{t.pub(mx,e)},focus:(e,n)=>{var r;(r=t.getValue(Ob))==null||r.focus(e,n)},getContentEditableHTML:()=>t.getValue(ax)?.current.innerHTML??``,getSelectionMarkdown:()=>{let e=t.getValue(Ux);if(e===`source`||e===`diff`)return``;let n=t.getValue(kb);return n?(t.getValue(Xb),t.getValue(Zb),t.getValue(Qb),t.getValue(ex),t.getValue($b),AC(n)):``}}),[t]),null},BC=L.forwardRef((e,t)=>L.createElement(Mn,{plugins:[Yx({contentEditableClassName:e.contentEditableClassName??``,spellCheck:e.spellCheck??!0,initialMarkdown:e.markdown,onChange:e.onChange??An,onBlur:e.onBlur??An,toMarkdownOptions:e.toMarkdownOptions??PC,autoFocus:e.autoFocus??!1,placeholder:e.placeholder??``,readOnly:!!e.readOnly,iconComponentFor:e.iconComponentFor??FC,suppressHtmlProcessing:e.suppressHtmlProcessing??!1,onError:e.onError??An,translation:e.translation??IC,trim:e.trim??!0,lexicalTheme:e.lexicalTheme,...`editorState`in e?{editorState:e.editorState}:{},suppressSharedHistory:e.suppressSharedHistory??!1,additionalLexicalNodes:e.additionalLexicalNodes??[],lexicalEditorNamespace:e.lexicalEditorNamespace??`MDXEditor`}),...e.plugins??[]]},L.createElement(RC,{className:e.className,overlayContainer:e.overlayContainer},L.createElement(MC,null,L.createElement(NC,null))),L.createElement(zC,{mdxRef:t}))),VC=typeof window<`u`&&window.document.createElement!==void 0,HC=VC&&(()=>{let e=navigator.userAgentData?.platform;return e?/mac/i.test(e):/Mac|iPod|iPhone|iPad/.test(navigator.userAgent)})();function UC(e,t){return HC?e:t}var WC={testLexicalNode:of,visitLexicalNode:({lexicalNode:e,actions:t})=>{let n=parseInt(e.getTag()[1],10);t.addAndStepInto(`heading`,{depth:n})}},GC={testNode:`heading`,visitNode:function({mdastNode:e,actions:t}){t.addAndStepInto(af(`h${e.depth}`))}},KC=[`Digit0`,`Digit1`,`Digit2`,`Digit3`,`Digit4`,`Digit5`,`Digit6`],qC=[1,2,3,4,5,6],JC={Digit1:1,Digit2:2,Digit3:3,Digit4:4,Digit5:5,Digit6:6},YC=z(qC,e=>{e.pub(wx,t=>t.registerCommand(zi,n=>{let{code:r,ctrlKey:i,metaKey:a,altKey:o}=n;return KC.includes(r)&&UC(a,i)&&o?(n.preventDefault(),t.update(()=>{if(r===`Digit0`)e.pub(Vx,()=>zs());else{let t=e.getValue(YC),n=JC[r];t.includes(n)&&e.pub(Vx,()=>af(`h${n}`))}}),!0):!1},1))}),XC=jn({init(e){e.pubIn({[Kx]:`headings`,[sx]:GC,[ox]:ef,[ux]:WC})},update(e,t){e.pub(YC,t?.allowedHeadingLevels??qC)}});function ZC(e,t){return e.getEditorState().read((()=>{let e=mc(t);return e!==null&&e.isSelected()}))}function QC(e){let[t]=Fn(),[n,r]=(0,L.useState)((()=>ZC(t,e)));return(0,L.useEffect)((()=>{let n=!0,i=t.registerUpdateListener((()=>{n&&r(ZC(t,e))}));return()=>{n=!1,i()}}),[t,e]),[n,(0,L.useCallback)((n=>{t.update((()=>{let t=W();Eo(t)||(t=zo(),Sc(t)),Eo(t)&&(n?t.add(e):t.delete(e))}))}),[t,e]),(0,L.useCallback)((()=>{t.update((()=>{let e=W();Eo(e)&&e.clear()}))}),[t])]}var $C=V(`INSERT_HORIZONTAL_RULE_COMMAND`);function ew({nodeKey:e}){let[t]=Fn(),[n,r,i]=QC(e);return(0,L.useEffect)((()=>Ku(t.registerCommand(Di,(a=>{let o=t.getElementByKey(e);return a.target===o&&(a.shiftKey||i(),r(!n),!0)}),1))),[i,t,n,e,r]),(0,L.useEffect)((()=>{let r=t.getElementByKey(e),i=t._config.theme.hrSelected??`selected`;r!==null&&(n?Yu(r,i):Xu(r,i))}),[t,n,e]),null}var tw=class e extends Es{static getType(){return`horizontalrule`}static clone(t){return new e(t.__key)}static importJSON(e){return rw().updateFromJSON(e)}static importDOM(){return{hr:()=>({conversion:nw,priority:0})}}exportDOM(){return{element:document.createElement(`hr`)}}createDOM(e){let t=document.createElement(`hr`);return Yu(t,e.theme.hr),t}getTextContent(){return`
|
|
84
|
+
`}isInline(){return!1}updateDOM(){return!1}decorate(){return(0,R.jsx)(ew,{nodeKey:this.__key})}};function nw(){return{node:rw()}}function rw(){return nl(new tw)}function iw(e){return e instanceof tw}function aw(){let[e]=Fn();return(0,L.useEffect)((()=>e.registerCommand($C,(e=>{let t=W();return U(t)?(t.focus.getNode()!==null&&td(rw()),!0):!1}),0)),[e]),null}var ow={testLexicalNode:iw,visitLexicalNode({actions:e}){e.addAndStepInto(`thematicBreak`)}},sw={testNode:`thematicBreak`,visitNode({actions:e}){e.addAndStepInto(rw())}},cw=vn(e=>{e.sub(e.pipe(cw,Tn(kb)),([,e])=>{e?.dispatchCommand($C,void 0)})}),lw=jn({init(e){e.pubIn({[Kx]:`thematicBreak`,[sx]:sw,[ox]:tw,[ux]:ow,[Ox]:aw})}}),uw={testNode:`list`,visitNode:function({mdastNode:e,lexicalParent:t,actions:n}){let r=uC(e.children.some(e=>typeof e.checked==`boolean`)?`check`:e.ordered?`number`:`bullet`);if(iC(t)){let e=rC();e.append(r),t.insertAfter(e)}else t.append(r);n.visitChildren(e,r)}},dw={testNode:`listItem`,visitNode({mdastNode:e,actions:t,lexicalParent:n}){let r=n.getListType()===`check`?e.checked??!1:void 0;t.addAndStepInto(rC(r))}},fw={testLexicalNode:dC,visitLexicalNode:({lexicalNode:e,actions:t})=>{t.addAndStepInto(`list`,{ordered:e.getListType()===`number`,spread:!1})}},pw={testLexicalNode:iC,visitLexicalNode:({lexicalNode:e,mdastParent:t,actions:n})=>{let r=e.getChildren(),i=r[0];if(r.length===1&&dC(i)){let r=t.children.at(-1);r?n.visitChildren(e,r):n.visitChildren(i,t)}else{let r=e.getParent(),i=n.appendToParent(t,{type:`listItem`,checked:r.getListType()===`check`?!!e.getChecked():void 0,spread:!1,children:[]}),a=null;for(let t of e.getChildren())H(t)||Za(t)||t.isInline()&&(G(t)||Ds(t))?(a??=n.appendToParent(i,{type:`paragraph`,children:[]}),n.visit(t,a)):(a=null,n.visit(t,i))}}};function mw(e,t){return Ku(e.registerCommand(Zi,(t=>{let n=W();if(!U(n))return!1;t.preventDefault();let r=function(e){if(ad(e.getNodes(),(e=>Io(e)&&e.canIndent()?e:null)).length>0)return!0;let t=e.anchor,n=e.focus,r=n.isBefore(t)?n:t,i=$u(r.getNode());if(i.canIndent()){let e=i.getKey(),t=Ro();if(t.anchor.set(e,0,`element`),t.focus.set(e,0,`element`),t=Ur(t),t.anchor.is(r))return!0}return!1}(n)?t.shiftKey?ea:$i:Qi;return e.dispatchCommand(r,void 0)}),0),e.registerCommand($i,(()=>{if(t==null)return!1;let e=W();if(!U(e))return!1;let n=e.getNodes().map((e=>$u(e).getIndent()));return Math.max(...n)+1>=t}),4))}function hw({maxIndent:e}){let[t]=Fn();return(0,L.useEffect)((()=>mw(t,e)),[t,e]),null}function gw(){let[e]=Fn();return(0,L.useEffect)((()=>pC(e)),[e]),null}function _w({hasStrictIndent:e=!1}){let[t]=Fn();return(0,L.useEffect)((()=>{if(!t.hasNodes([aC,eC]))throw Error(`ListPlugin: ListNode and/or ListItemNode not registered on editor`)}),[t]),(0,L.useEffect)((()=>{if(e)return wC(t)}),[t,e]),function(e){(0,L.useEffect)((()=>CC(e)),[e])}(t),null}var vw={name:`tasklistCheck`,tokenize:bw};function yw(){return{text:{91:vw}}}function bw(e,t,n){let r=this;return i;function i(t){return r.previous!==null||!r._gfmTasklistFirstContentOfListItem?n(t):(e.enter(`taskListCheck`),e.enter(`taskListCheckMarker`),e.consume(t),e.exit(`taskListCheckMarker`),a)}function a(t){return xf(t)?(e.enter(`taskListCheckValueUnchecked`),e.consume(t),e.exit(`taskListCheckValueUnchecked`),o):t===88||t===120?(e.enter(`taskListCheckValueChecked`),e.consume(t),e.exit(`taskListCheckValueChecked`),o):n(t)}function o(t){return t===93?(e.enter(`taskListCheckMarker`),e.consume(t),e.exit(`taskListCheckMarker`),e.exit(`taskListCheck`),s):n(t)}function s(r){return q(r)?t(r):Sf(r)?e.check({tokenize:xw},t,n)(r):n(r)}}function xw(e,t,n){return Im(e,r,`whitespace`);function r(e){return e===null?n(e):t(e)}}function Sw(){return{exit:{taskListCheckValueChecked:ww,taskListCheckValueUnchecked:ww,paragraph:Tw}}}function Cw(){return{unsafe:[{atBreak:!0,character:`-`,after:`[:|-]`}],handlers:{listItem:Ew}}}function ww(e){let t=this.stack[this.stack.length-2];t.type,t.checked=e.type===`taskListCheckValueChecked`}function Tw(e){let t=this.stack[this.stack.length-2];if(t&&t.type===`listItem`&&typeof t.checked==`boolean`){let e=this.stack[this.stack.length-1];e.type;let n=e.children[0];if(n&&n.type===`text`){let r=t.children,i=-1,a;for(;++i<r.length;){let e=r[i];if(e.type===`paragraph`){a=e;break}}a===e&&(n.value=n.value.slice(1),n.value.length===0?e.children.shift():e.position&&n.position&&typeof n.position.start.offset==`number`&&(n.position.start.column++,n.position.start.offset++,e.position.start=Object.assign({},n.position.start)))}}this.exit(e)}function Ew(e,t,n,r){let i=e.children[0],a=typeof e.checked==`boolean`&&i&&i.type===`paragraph`,o=`[`+(e.checked?`x`:` `)+`] `,s=n.createTracker(r);a&&s.move(o);let c=Mg.listItem(e,t,n,{...r,...s.current()});return a&&(c=c.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,l)),c;function l(e){return e+o}}var Dw=new Map([[`number`,xC],[`bullet`,bC],[`check`,fC],[``,SC]]),Ow=z(``,e=>{e.sub(e.pipe(Bb,Tn(kb)),([t,n])=>{if(!t||!n)return;let r=t.anchor.getNode(),i=r.getKey()===`root`?r:ed(r,e=>{let t=e.getParent();return t!==null&&el(t)});i??=r.getTopLevelElementOrThrow();let a=i.getKey();if(n.getElementByKey(a)!==null)if(dC(i)){let t=Qu(r,aC),n=t?t.getListType():i.getListType();e.pub(Ow,n)}else e.pub(Ow,``)})}),kw=_n(e=>{e.sub(e.pipe(kw,Tn(kb)),([e,t])=>{t?.dispatchCommand(Dw.get(e),void 0)})}),Aw=jn({init(e){var t;(t=e.getValue(Ob))==null||t.registerCommand($i,()=>!Mw(7),4),e.pubIn({[Kx]:`lists`,[lx]:Sw(),[cx]:yw(),[sx]:[uw,dw],[ox]:[eC,aC],[ux]:[fw,pw],[dx]:Cw(),[Ox]:[hw,_w,gw],[Fx]:[hw,_w,gw]})}});function jw(e){let t=e.getNodes();return t.length===0?new Set([e.anchor.getNode().getParentOrThrow(),e.focus.getNode().getParentOrThrow()]):new Set(t.map(e=>G(e)?e:e.getParentOrThrow()))}function Mw(e){let t=W();if(!U(t))return!1;let n=jw(t),r=0;for(let e of n)if(dC(e))r=Math.max(RS(e)+1,r);else if(iC(e)){let t=e.getParent();if(t?.getChildren().length===1){let e=t.getParent();if(iC(e)&&e.getChildren().length===1)return!1}if(!dC(t))throw Error(`ListMaxIndentLevelPlugin: A ListItemNode must have a ListNode for a parent.`);r=Math.max(RS(t)+1,r)}return r<=e}function Nw(e){return e.length}function Pw(e,t){let n=t||{},r=(n.align||[]).concat(),i=n.stringLength||Nw,a=[],o=[],s=[],c=[],l=0,u=-1;for(;++u<e.length;){let t=[],r=[],a=-1;for(e[u].length>l&&(l=e[u].length);++a<e[u].length;){let o=Fw(e[u][a]);if(n.alignDelimiters!==!1){let e=i(o);r[a]=e,(c[a]===void 0||e>c[a])&&(c[a]=e)}t.push(o)}o[u]=t,s[u]=r}let d=-1;if(typeof r==`object`&&`length`in r)for(;++d<l;)a[d]=Iw(r[d]);else{let e=Iw(r);for(;++d<l;)a[d]=e}d=-1;let f=[],p=[];for(;++d<l;){let e=a[d],t=``,r=``;e===99?(t=`:`,r=`:`):e===108?t=`:`:e===114&&(r=`:`);let i=n.alignDelimiters===!1?1:Math.max(1,c[d]-t.length-r.length),o=t+`-`.repeat(i)+r;n.alignDelimiters!==!1&&(i=t.length+i+r.length,i>c[d]&&(c[d]=i),p[d]=i),f[d]=o}o.splice(1,0,f),s.splice(1,0,p),u=-1;let m=[];for(;++u<o.length;){let e=o[u],t=s[u];d=-1;let r=[];for(;++d<l;){let i=e[d]||``,o=``,s=``;if(n.alignDelimiters!==!1){let e=c[d]-(t[d]||0),n=a[d];n===114?o=` `.repeat(e):n===99?e%2?(o=` `.repeat(e/2+.5),s=` `.repeat(e/2-.5)):(o=` `.repeat(e/2),s=o):s=` `.repeat(e)}n.delimiterStart!==!1&&!d&&r.push(`|`),n.padding!==!1&&!(n.alignDelimiters===!1&&i===``)&&(n.delimiterStart!==!1||d)&&r.push(` `),n.alignDelimiters!==!1&&r.push(o),r.push(i),n.alignDelimiters!==!1&&r.push(s),n.padding!==!1&&r.push(` `),(n.delimiterEnd!==!1||d!==l-1)&&r.push(`|`)}m.push(n.delimiterEnd===!1?r.join(``).replace(/ +$/,``):r.join(``))}return m.join(`
|
|
85
|
+
`)}function Fw(e){return e==null?``:String(e)}function Iw(e){let t=typeof e==`string`?e.codePointAt(0):0;return t===67||t===99?99:t===76||t===108?108:t===82||t===114?114:0}function Lw(){return{enter:{table:Rw,tableData:Hw,tableHeader:Hw,tableRow:Bw},exit:{codeText:Uw,table:zw,tableData:Vw,tableHeader:Vw,tableRow:Vw}}}function Rw(e){let t=e._align;this.enter({type:`table`,align:t.map(function(e){return e===`none`?null:e}),children:[]},e),this.data.inTable=!0}function zw(e){this.exit(e),this.data.inTable=void 0}function Bw(e){this.enter({type:`tableRow`,children:[]},e)}function Vw(e){this.exit(e)}function Hw(e){this.enter({type:`tableCell`,children:[]},e)}function Uw(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,Ww));let n=this.stack[this.stack.length-1];n.type,n.value=t,this.exit(e)}function Ww(e,t){return t===`|`?t:e}function Gw(e){let t=e||{},n=t.tableCellPadding,r=t.tablePipeAlign,i=t.stringLength,a=n?` `:`|`;return{unsafe:[{character:`\r`,inConstruct:`tableCell`},{character:`
|
|
86
|
+
`,inConstruct:`tableCell`},{atBreak:!0,character:`|`,after:`[ :-]`},{character:`|`,inConstruct:`tableCell`},{atBreak:!0,character:`:`,after:`-`},{atBreak:!0,character:`-`,after:`[:|-]`}],handlers:{inlineCode:f,table:o,tableCell:c,tableRow:s}};function o(e,t,n,r){return l(u(e,n,r),e.align)}function s(e,t,n,r){let i=l([d(e,n,r)]);return i.slice(0,i.indexOf(`
|
|
87
|
+
`))}function c(e,t,n,r){let i=n.enter(`tableCell`),o=n.enter(`phrasing`),s=n.containerPhrasing(e,{...r,before:a,after:a});return o(),i(),s}function l(e,t){return Pw(e,{align:t,alignDelimiters:r,padding:n,stringLength:i})}function u(e,t,n){let r=e.children,i=-1,a=[],o=t.enter(`table`);for(;++i<r.length;)a[i]=d(r[i],t,n);return o(),a}function d(e,t,n){let r=e.children,i=-1,a=[],o=t.enter(`tableRow`);for(;++i<r.length;)a[i]=c(r[i],e,t,n);return o(),a}function f(e,t,n){let r=Mg.inlineCode(e,t,n);return n.stack.includes(`tableCell`)&&(r=r.replace(/\|/g,`\\$&`)),r}}var Kw=class{constructor(){this.map=[]}add(e,t,n){qw(this,e,t,n)}consume(e){if(this.map.sort(function(e,t){return e[0]-t[0]}),this.map.length===0)return;let t=this.map.length,n=[];for(;t>0;)--t,n.push(e.slice(this.map[t][0]+this.map[t][1]),this.map[t][2]),e.length=this.map[t][0];n.push(e.slice()),e.length=0;let r=n.pop();for(;r;){for(let t of r)e.push(t);r=n.pop()}this.map.length=0}};function qw(e,t,n,r){let i=0;if(!(n===0&&r.length===0)){for(;i<e.map.length;){if(e.map[i][0]===t){e.map[i][1]+=n,e.map[i][2].push(...r);return}i+=1}e.map.push([t,n,r])}}function Jw(e,t){let n=!1,r=[];for(;t<e.length;){let i=e[t];if(n){if(i[0]===`enter`)i[1].type===`tableContent`&&r.push(e[t+1][1].type===`tableDelimiterMarker`?`left`:`none`);else if(i[1].type===`tableContent`){if(e[t-1][1].type===`tableDelimiterMarker`){let e=r.length-1;r[e]=r[e]===`left`?`center`:`right`}}else if(i[1].type===`tableDelimiterRow`)break}else i[0]===`enter`&&i[1].type===`tableDelimiterRow`&&(n=!0);t+=1}return r}function Yw(){return{flow:{null:{name:`table`,tokenize:Xw,resolveAll:Zw}}}}function Xw(e,t,n){let r=this,i=0,a=0,o;return s;function s(e){let t=r.events.length-1;for(;t>-1;){let e=r.events[t][1].type;if(e===`lineEnding`||e===`linePrefix`)t--;else break}let i=t>-1?r.events[t][1].type:null,a=i===`tableHead`||i===`tableRow`?S:c;return a===S&&r.parser.lazy[r.now().line]?n(e):a(e)}function c(t){return e.enter(`tableHead`),e.enter(`tableRow`),l(t)}function l(e){return e===124?u(e):(o=!0,a+=1,u(e))}function u(t){return t===null?n(t):q(t)?a>1?(a=0,r.interrupt=!0,e.exit(`tableRow`),e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),p):n(t):Sf(t)?Im(e,u,`whitespace`)(t):(a+=1,o&&(o=!1,i+=1),t===124?(e.enter(`tableCellDivider`),e.consume(t),e.exit(`tableCellDivider`),o=!0,u):(e.enter(`data`),d(t)))}function d(t){return t===null||t===124||xf(t)?(e.exit(`data`),u(t)):(e.consume(t),t===92?f:d)}function f(t){return t===92||t===124?(e.consume(t),d):d(t)}function p(t){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(t):(e.enter(`tableDelimiterRow`),o=!1,Sf(t)?Im(e,m,`linePrefix`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)(t):m(t))}function m(t){return t===45||t===58?g(t):t===124?(o=!0,e.enter(`tableCellDivider`),e.consume(t),e.exit(`tableCellDivider`),h):x(t)}function h(t){return Sf(t)?Im(e,g,`whitespace`)(t):g(t)}function g(t){return t===58?(a+=1,o=!0,e.enter(`tableDelimiterMarker`),e.consume(t),e.exit(`tableDelimiterMarker`),_):t===45?(a+=1,_(t)):t===null||q(t)?b(t):x(t)}function _(t){return t===45?(e.enter(`tableDelimiterFiller`),v(t)):x(t)}function v(t){return t===45?(e.consume(t),v):t===58?(o=!0,e.exit(`tableDelimiterFiller`),e.enter(`tableDelimiterMarker`),e.consume(t),e.exit(`tableDelimiterMarker`),y):(e.exit(`tableDelimiterFiller`),y(t))}function y(t){return Sf(t)?Im(e,b,`whitespace`)(t):b(t)}function b(n){return n===124?m(n):n===null||q(n)?!o||i!==a?x(n):(e.exit(`tableDelimiterRow`),e.exit(`tableHead`),t(n)):x(n)}function x(e){return n(e)}function S(t){return e.enter(`tableRow`),C(t)}function C(n){return n===124?(e.enter(`tableCellDivider`),e.consume(n),e.exit(`tableCellDivider`),C):n===null||q(n)?(e.exit(`tableRow`),t(n)):Sf(n)?Im(e,C,`whitespace`)(n):(e.enter(`data`),w(n))}function w(t){return t===null||t===124||xf(t)?(e.exit(`data`),C(t)):(e.consume(t),t===92?T:w)}function T(t){return t===92||t===124?(e.consume(t),w):w(t)}}function Zw(e,t){let n=-1,r=!0,i=0,a=[0,0,0,0],o=[0,0,0,0],s=!1,c=0,l,u,d,f=new Kw;for(;++n<e.length;){let p=e[n],m=p[1];p[0]===`enter`?m.type===`tableHead`?(s=!1,c!==0&&($w(f,t,c,l,u),u=void 0,c=0),l={type:`table`,start:Object.assign({},m.start),end:Object.assign({},m.end)},f.add(n,0,[[`enter`,l,t]])):m.type===`tableRow`||m.type===`tableDelimiterRow`?(r=!0,d=void 0,a=[0,0,0,0],o=[0,n+1,0,0],s&&(s=!1,u={type:`tableBody`,start:Object.assign({},m.start),end:Object.assign({},m.end)},f.add(n,0,[[`enter`,u,t]])),i=m.type===`tableDelimiterRow`?2:u?3:1):i&&(m.type===`data`||m.type===`tableDelimiterMarker`||m.type===`tableDelimiterFiller`)?(r=!1,o[2]===0&&(a[1]!==0&&(o[0]=o[1],d=Qw(f,t,a,i,void 0,d),a=[0,0,0,0]),o[2]=n)):m.type===`tableCellDivider`&&(r?r=!1:(a[1]!==0&&(o[0]=o[1],d=Qw(f,t,a,i,void 0,d)),a=o,o=[a[1],n,0,0])):m.type===`tableHead`?(s=!0,c=n):m.type===`tableRow`||m.type===`tableDelimiterRow`?(c=n,a[1]===0?o[1]!==0&&(d=Qw(f,t,o,i,n,d)):(o[0]=o[1],d=Qw(f,t,a,i,n,d)),i=0):i&&(m.type===`data`||m.type===`tableDelimiterMarker`||m.type===`tableDelimiterFiller`)&&(o[3]=n)}for(c!==0&&$w(f,t,c,l,u),f.consume(t.events),n=-1;++n<t.events.length;){let e=t.events[n];e[0]===`enter`&&e[1].type===`table`&&(e[1]._align=Jw(t.events,n))}return e}function Qw(e,t,n,r,i,a){let o=r===1?`tableHeader`:r===2?`tableDelimiter`:`tableData`;n[0]!==0&&(a.end=Object.assign({},eT(t.events,n[0])),e.add(n[0],0,[[`exit`,a,t]]));let s=eT(t.events,n[1]);if(a={type:o,start:Object.assign({},s),end:Object.assign({},s)},e.add(n[1],0,[[`enter`,a,t]]),n[2]!==0){let i=eT(t.events,n[2]),a=eT(t.events,n[3]),o={type:`tableContent`,start:Object.assign({},i),end:Object.assign({},a)};if(e.add(n[2],0,[[`enter`,o,t]]),r!==2){let r=t.events[n[2]],i=t.events[n[3]];if(r[1].end=Object.assign({},i[1].end),r[1].type=`chunkText`,r[1].contentType=`text`,n[3]>n[2]+1){let t=n[2]+1,r=n[3]-n[2]-1;e.add(t,r,[])}}e.add(n[3]+1,0,[[`exit`,o,t]])}return i!==void 0&&(a.end=Object.assign({},eT(t.events,i)),e.add(i,0,[[`exit`,a,t]]),a=void 0),a}function $w(e,t,n,r,i){let a=[],o=eT(t.events,n);i&&(i.end=Object.assign({},o),a.push([`exit`,i,t])),r.end=Object.assign({},o),a.push([`exit`,r,t]),e.add(n+1,0,a)}function eT(e,t){let n=e[t],r=n[0]===`enter`?`start`:`end`;return n[1][r]}var tT=[[`Cat`,`rgb(125, 50, 0)`],[`Dog`,`rgb(100, 0, 0)`],[`Rabbit`,`rgb(150, 0, 0)`],[`Frog`,`rgb(200, 0, 0)`],[`Fox`,`rgb(200, 75, 0)`],[`Hedgehog`,`rgb(0, 75, 0)`],[`Pigeon`,`rgb(0, 125, 0)`],[`Squirrel`,`rgb(75, 100, 0)`],[`Bear`,`rgb(125, 100, 0)`],[`Tiger`,`rgb(0, 0, 150)`],[`Leopard`,`rgb(0, 0, 200)`],[`Zebra`,`rgb(0, 0, 250)`],[`Wolf`,`rgb(0, 100, 150)`],[`Owl`,`rgb(0, 100, 100)`],[`Gull`,`rgb(100, 0, 100)`],[`Squid`,`rgb(150, 0, 150)`]],nT=tT[Math.floor(Math.random()*tT.length)],rT=(0,L.createContext)({clientID:0,color:nT[1],isCollabActive:!1,name:nT[0],yjsDocMap:new Map});function iT(e,t){let n=(0,L.useContext)(rT);return e!=null&&(n.name=e),t!=null&&(n.color=t),n}function aT(e){let t=new Set,{ownNodeConfig:n}=Tl(e),r=e.transform();if(n){let e=n.$transform;e&&t.add(e)}return r&&t.add(r),t}function oT({initialEditor:e,children:t,initialNodes:n,initialTheme:r,skipCollabChecks:i,skipEditableListener:a}){let o=(0,L.useRef)(!1),s=(0,L.useContext)(Nn);s??function(e,...t){let n=new URL(`https://lexical.dev/docs/error`),r=new URLSearchParams;r.append(`code`,e);for(let e of t)r.append(`v`,e);throw n.search=r.toString(),Error(`Minified Lexical error #${e}; visit ${n.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}(9);let[c,{getTheme:l}]=s,u=(0,L.useMemo)((()=>{let t=r||l()||void 0,i=Pn(s,t);t!==void 0&&(e._config.theme=t),e._parentEditor=e._parentEditor||c;let a=e._createEditorArgs,o=a&&a.namespace;if(n){o||(e._config.namespace=c._config.namespace);for(let t of n){let n=null,r=null;if(typeof t!=`function`){let e=t;t=e.replace,n=e.with,r=e.withKlass||null}let i=Js(e,t.getType());e._nodes.set(t.getType(),{exportDOM:i?i.exportDOM:void 0,klass:t,replace:n,replaceWithKlass:r,sharedNodeState:Mr(t),transforms:aT(t)})}}else if(a&&a.nodes)o||(e._config.namespace=c._config.namespace);else{let t=e._nodes=new Map(c._nodes);o||(e._config.namespace=c._config.namespace);for(let[n,r]of t)e._nodes.set(n,{exportDOM:r.exportDOM,klass:r.klass,replace:r.replace,replaceWithKlass:r.replaceWithKlass,sharedNodeState:Mr(r.klass),transforms:aT(r.klass)})}return[e,i]}),[]),{isCollabActive:d,yjsDocMap:f}=iT(),p=i||o.current||f.has(e.getKey());return(0,L.useEffect)((()=>{p&&(o.current=!0)}),[p]),(0,L.useEffect)((()=>{if(!a){let t=t=>e.setEditable(t);return t(c.isEditable()),c.registerEditableListener(t)}}),[e,c,a]),(0,R.jsx)(Nn.Provider,{value:u,children:!d||p?t:null})}typeof window<`u`&&window.document&&window.document.createElement;function sT(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),n===!1||!r.defaultPrevented)return t?.(r)}}function cT(e,t){if(typeof e==`function`)return e(t);e!=null&&(e.current=t)}function lT(...e){return t=>{let n=!1,r=e.map(e=>{let r=cT(e,t);return!n&&typeof r==`function`&&(n=!0),r});if(n)return()=>{for(let t=0;t<r.length;t++){let n=r[t];typeof n==`function`?n():cT(e[t],null)}}}}function uT(...e){return L.useCallback(lT(...e),e)}function dT(e,t){let n=L.createContext(t),r=e=>{let{children:t,...r}=e,i=L.useMemo(()=>r,Object.values(r));return(0,R.jsx)(n.Provider,{value:i,children:t})};r.displayName=e+`Provider`;function i(r){let i=L.useContext(n);if(i)return i;if(t!==void 0)return t;throw Error(`\`${r}\` must be used within \`${e}\``)}return[r,i]}function fT(e,t=[]){let n=[];function r(t,r){let i=L.createContext(r),a=n.length;n=[...n,r];let o=t=>{let{scope:n,children:r,...o}=t,s=n?.[e]?.[a]||i,c=L.useMemo(()=>o,Object.values(o));return(0,R.jsx)(s.Provider,{value:c,children:r})};o.displayName=t+`Provider`;function s(n,o){let s=o?.[e]?.[a]||i,c=L.useContext(s);if(c)return c;if(r!==void 0)return r;throw Error(`\`${n}\` must be used within \`${t}\``)}return[o,s]}let i=()=>{let t=n.map(e=>L.createContext(e));return function(n){let r=n?.[e]||t;return L.useMemo(()=>({[`__scope${e}`]:{...n,[e]:r}}),[n,r])}};return i.scopeName=e,[r,pT(i,...t)]}function pT(...e){let t=e[0];if(e.length===1)return t;let n=()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let r=n.reduce((t,{useScope:n,scopeName:r})=>{let i=n(e)[`__scope${r}`];return{...t,...i}},{});return L.useMemo(()=>({[`__scope${t.scopeName}`]:r}),[r])}};return n.scopeName=t.scopeName,n}function mT(e){let t=hT(e),n=L.forwardRef((e,n)=>{let{children:r,...i}=e,a=L.Children.toArray(r),o=a.find(vT);if(o){let e=o.props.children,r=a.map(t=>t===o?L.Children.count(e)>1?L.Children.only(null):L.isValidElement(e)?e.props.children:null:t);return(0,R.jsx)(t,{...i,ref:n,children:L.isValidElement(e)?L.cloneElement(e,void 0,r):null})}return(0,R.jsx)(t,{...i,ref:n,children:r})});return n.displayName=`${e}.Slot`,n}function hT(e){let t=L.forwardRef((e,t)=>{let{children:n,...r}=e;if(L.isValidElement(n)){let e=bT(n),i=yT(r,n.props);return n.type!==L.Fragment&&(i.ref=t?lT(t,e):e),L.cloneElement(n,i)}return L.Children.count(n)>1?L.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var gT=Symbol(`radix.slottable`);function _T(e){let t=({children:e})=>(0,R.jsx)(R.Fragment,{children:e});return t.displayName=`${e}.Slottable`,t.__radixId=gT,t}function vT(e){return L.isValidElement(e)&&typeof e.type==`function`&&`__radixId`in e.type&&e.type.__radixId===gT}function yT(e,t){let n={...t};for(let r in t){let i=e[r],a=t[r];/^on[A-Z]/.test(r)?i&&a?n[r]=(...e)=>{let t=a(...e);return i(...e),t}:i&&(n[r]=i):r===`style`?n[r]={...i,...a}:r===`className`&&(n[r]=[i,a].filter(Boolean).join(` `))}return{...e,...n}}function bT(e){let t=Object.getOwnPropertyDescriptor(e.props,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var xT=[`a`,`button`,`div`,`form`,`h2`,`h3`,`img`,`input`,`label`,`li`,`nav`,`ol`,`p`,`select`,`span`,`svg`,`ul`].reduce((e,t)=>{let n=mT(`Primitive.${t}`),r=L.forwardRef((e,r)=>{let{asChild:i,...a}=e,o=i?n:t;return typeof window<`u`&&(window[Symbol.for(`radix-ui`)]=!0),(0,R.jsx)(o,{...a,ref:r})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function ST(e,t){e&&gS.flushSync(()=>e.dispatchEvent(t))}function CT(e){let t=L.useRef(e);return L.useEffect(()=>{t.current=e}),L.useMemo(()=>(...e)=>t.current?.(...e),[])}function wT(e,t=globalThis?.document){let n=CT(e);L.useEffect(()=>{let e=e=>{e.key===`Escape`&&n(e)};return t.addEventListener(`keydown`,e,{capture:!0}),()=>t.removeEventListener(`keydown`,e,{capture:!0})},[n,t])}var TT=`DismissableLayer`,ET=`dismissableLayer.update`,DT=`dismissableLayer.pointerDownOutside`,OT=`dismissableLayer.focusOutside`,kT,AT=L.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),jT=L.forwardRef((e,t)=>{let{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:i,onFocusOutside:a,onInteractOutside:o,onDismiss:s,...c}=e,l=L.useContext(AT),[u,d]=L.useState(null),f=u?.ownerDocument??globalThis?.document,[,p]=L.useState({}),m=uT(t,e=>d(e)),h=Array.from(l.layers),[g]=[...l.layersWithOutsidePointerEventsDisabled].slice(-1),_=h.indexOf(g),v=u?h.indexOf(u):-1,y=l.layersWithOutsidePointerEventsDisabled.size>0,b=v>=_,x=PT(e=>{let t=e.target,n=[...l.branches].some(e=>e.contains(t));!b||n||(i?.(e),o?.(e),e.defaultPrevented||s?.())},f),S=FT(e=>{let t=e.target;[...l.branches].some(e=>e.contains(t))||(a?.(e),o?.(e),e.defaultPrevented||s?.())},f);return wT(e=>{v===l.layers.size-1&&(r?.(e),!e.defaultPrevented&&s&&(e.preventDefault(),s()))},f),L.useEffect(()=>{if(u)return n&&(l.layersWithOutsidePointerEventsDisabled.size===0&&(kT=f.body.style.pointerEvents,f.body.style.pointerEvents=`none`),l.layersWithOutsidePointerEventsDisabled.add(u)),l.layers.add(u),IT(),()=>{n&&l.layersWithOutsidePointerEventsDisabled.size===1&&(f.body.style.pointerEvents=kT)}},[u,f,n,l]),L.useEffect(()=>()=>{u&&(l.layers.delete(u),l.layersWithOutsidePointerEventsDisabled.delete(u),IT())},[u,l]),L.useEffect(()=>{let e=()=>p({});return document.addEventListener(ET,e),()=>document.removeEventListener(ET,e)},[]),(0,R.jsx)(xT.div,{...c,ref:m,style:{pointerEvents:y?b?`auto`:`none`:void 0,...e.style},onFocusCapture:sT(e.onFocusCapture,S.onFocusCapture),onBlurCapture:sT(e.onBlurCapture,S.onBlurCapture),onPointerDownCapture:sT(e.onPointerDownCapture,x.onPointerDownCapture)})});jT.displayName=TT;var MT=`DismissableLayerBranch`,NT=L.forwardRef((e,t)=>{let n=L.useContext(AT),r=L.useRef(null),i=uT(t,r);return L.useEffect(()=>{let e=r.current;if(e)return n.branches.add(e),()=>{n.branches.delete(e)}},[n.branches]),(0,R.jsx)(xT.div,{...e,ref:i})});NT.displayName=MT;function PT(e,t=globalThis?.document){let n=CT(e),r=L.useRef(!1),i=L.useRef(()=>{});return L.useEffect(()=>{let e=e=>{if(e.target&&!r.current){let r=function(){LT(DT,n,a,{discrete:!0})},a={originalEvent:e};e.pointerType===`touch`?(t.removeEventListener(`click`,i.current),i.current=r,t.addEventListener(`click`,i.current,{once:!0})):r()}else t.removeEventListener(`click`,i.current);r.current=!1},a=window.setTimeout(()=>{t.addEventListener(`pointerdown`,e)},0);return()=>{window.clearTimeout(a),t.removeEventListener(`pointerdown`,e),t.removeEventListener(`click`,i.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function FT(e,t=globalThis?.document){let n=CT(e),r=L.useRef(!1);return L.useEffect(()=>{let e=e=>{e.target&&!r.current&<(OT,n,{originalEvent:e},{discrete:!1})};return t.addEventListener(`focusin`,e),()=>t.removeEventListener(`focusin`,e)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function IT(){let e=new CustomEvent(ET);document.dispatchEvent(e)}function LT(e,t,n,{discrete:r}){let i=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),r?ST(i,a):i.dispatchEvent(a)}var RT=0;function zT(){L.useEffect(()=>{let e=document.querySelectorAll(`[data-radix-focus-guard]`);return document.body.insertAdjacentElement(`afterbegin`,e[0]??BT()),document.body.insertAdjacentElement(`beforeend`,e[1]??BT()),RT++,()=>{RT===1&&document.querySelectorAll(`[data-radix-focus-guard]`).forEach(e=>e.remove()),RT--}},[])}function BT(){let e=document.createElement(`span`);return e.setAttribute(`data-radix-focus-guard`,``),e.tabIndex=0,e.style.outline=`none`,e.style.opacity=`0`,e.style.position=`fixed`,e.style.pointerEvents=`none`,e}var VT=`focusScope.autoFocusOnMount`,HT=`focusScope.autoFocusOnUnmount`,UT={bubbles:!1,cancelable:!0},WT=`FocusScope`,GT=L.forwardRef((e,t)=>{let{loop:n=!1,trapped:r=!1,onMountAutoFocus:i,onUnmountAutoFocus:a,...o}=e,[s,c]=L.useState(null),l=CT(i),u=CT(a),d=L.useRef(null),f=uT(t,e=>c(e)),p=L.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;L.useEffect(()=>{if(r){let e=function(e){if(p.paused||!s)return;let t=e.target;s.contains(t)?d.current=t:QT(d.current,{select:!0})},t=function(e){if(p.paused||!s)return;let t=e.relatedTarget;t!==null&&(s.contains(t)||QT(d.current,{select:!0}))},n=function(e){if(document.activeElement===document.body)for(let t of e)t.removedNodes.length>0&&QT(s)};document.addEventListener(`focusin`,e),document.addEventListener(`focusout`,t);let r=new MutationObserver(n);return s&&r.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener(`focusin`,e),document.removeEventListener(`focusout`,t),r.disconnect()}}},[r,s,p.paused]),L.useEffect(()=>{if(s){$T.add(p);let e=document.activeElement;if(!s.contains(e)){let t=new CustomEvent(VT,UT);s.addEventListener(VT,l),s.dispatchEvent(t),t.defaultPrevented||(KT(nE(JT(s)),{select:!0}),document.activeElement===e&&QT(s))}return()=>{s.removeEventListener(VT,l),setTimeout(()=>{let t=new CustomEvent(HT,UT);s.addEventListener(HT,u),s.dispatchEvent(t),t.defaultPrevented||QT(e??document.body,{select:!0}),s.removeEventListener(HT,u),$T.remove(p)},0)}}},[s,l,u,p]);let m=L.useCallback(e=>{if(!n&&!r||p.paused)return;let t=e.key===`Tab`&&!e.altKey&&!e.ctrlKey&&!e.metaKey,i=document.activeElement;if(t&&i){let t=e.currentTarget,[r,a]=qT(t);r&&a?!e.shiftKey&&i===a?(e.preventDefault(),n&&QT(r,{select:!0})):e.shiftKey&&i===r&&(e.preventDefault(),n&&QT(a,{select:!0})):i===t&&e.preventDefault()}},[n,r,p.paused]);return(0,R.jsx)(xT.div,{tabIndex:-1,...o,ref:f,onKeyDown:m})});GT.displayName=WT;function KT(e,{select:t=!1}={}){let n=document.activeElement;for(let r of e)if(QT(r,{select:t}),document.activeElement!==n)return}function qT(e){let t=JT(e);return[YT(t,e),YT(t.reverse(),e)]}function JT(e){let t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{let t=e.tagName===`INPUT`&&e.type===`hidden`;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function YT(e,t){for(let n of e)if(!XT(n,{upTo:t}))return n}function XT(e,{upTo:t}){if(getComputedStyle(e).visibility===`hidden`)return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display===`none`)return!0;e=e.parentElement}return!1}function ZT(e){return e instanceof HTMLInputElement&&`select`in e}function QT(e,{select:t=!1}={}){if(e&&e.focus){let n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&ZT(e)&&t&&e.select()}}var $T=eE();function eE(){let e=[];return{add(t){let n=e[0];t!==n&&n?.pause(),e=tE(e,t),e.unshift(t)},remove(t){e=tE(e,t),e[0]?.resume()}}}function tE(e,t){let n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function nE(e){return e.filter(e=>e.tagName!==`A`)}var rE=globalThis?.document?L.useLayoutEffect:()=>{},iE=L.useId||(()=>void 0),aE=0;function oE(e){let[t,n]=L.useState(iE());return rE(()=>{e||n(e=>e??String(aE++))},[e]),e||(t?`radix-${t}`:``)}var sE=[`top`,`right`,`bottom`,`left`],cE=Math.min,lE=Math.max,uE=Math.round,dE=Math.floor,fE=e=>({x:e,y:e}),pE={left:`right`,right:`left`,bottom:`top`,top:`bottom`};function mE(e,t,n){return lE(e,cE(t,n))}function hE(e,t){return typeof e==`function`?e(t):e}function gE(e){return e.split(`-`)[0]}function _E(e){return e.split(`-`)[1]}function vE(e){return e===`x`?`y`:`x`}function yE(e){return e===`y`?`height`:`width`}function bE(e){let t=e[0];return t===`t`||t===`b`?`y`:`x`}function xE(e){return vE(bE(e))}function SE(e,t,n){n===void 0&&(n=!1);let r=_E(e),i=xE(e),a=yE(i),o=i===`x`?r===(n?`end`:`start`)?`right`:`left`:r===`start`?`bottom`:`top`;return t.reference[a]>t.floating[a]&&(o=jE(o)),[o,jE(o)]}function CE(e){let t=jE(e);return[wE(e),t,wE(t)]}function wE(e){return e.includes(`start`)?e.replace(`start`,`end`):e.replace(`end`,`start`)}var TE=[`left`,`right`],EE=[`right`,`left`],DE=[`top`,`bottom`],OE=[`bottom`,`top`];function kE(e,t,n){switch(e){case`top`:case`bottom`:return n?t?EE:TE:t?TE:EE;case`left`:case`right`:return t?DE:OE;default:return[]}}function AE(e,t,n,r){let i=_E(e),a=kE(gE(e),n===`start`,r);return i&&(a=a.map(e=>e+`-`+i),t&&(a=a.concat(a.map(wE)))),a}function jE(e){let t=gE(e);return pE[t]+e.slice(t.length)}function ME(e){return{top:0,right:0,bottom:0,left:0,...e}}function NE(e){return typeof e==`number`?{top:e,right:e,bottom:e,left:e}:ME(e)}function PE(e){let{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function FE(e,t,n){let{reference:r,floating:i}=e,a=bE(t),o=xE(t),s=yE(o),c=gE(t),l=a===`y`,u=r.x+r.width/2-i.width/2,d=r.y+r.height/2-i.height/2,f=r[s]/2-i[s]/2,p;switch(c){case`top`:p={x:u,y:r.y-i.height};break;case`bottom`:p={x:u,y:r.y+r.height};break;case`right`:p={x:r.x+r.width,y:d};break;case`left`:p={x:r.x-i.width,y:d};break;default:p={x:r.x,y:r.y}}switch(_E(t)){case`start`:p[o]-=f*(n&&l?-1:1);break;case`end`:p[o]+=f*(n&&l?-1:1);break}return p}async function IE(e,t){t===void 0&&(t={});let{x:n,y:r,platform:i,rects:a,elements:o,strategy:s}=e,{boundary:c=`clippingAncestors`,rootBoundary:l=`viewport`,elementContext:u=`floating`,altBoundary:d=!1,padding:f=0}=hE(t,e),p=NE(f),m=o[d?u===`floating`?`reference`:`floating`:u],h=PE(await i.getClippingRect({element:await(i.isElement==null?void 0:i.isElement(m))??!0?m:m.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(o.floating)),boundary:c,rootBoundary:l,strategy:s})),g=u===`floating`?{x:n,y:r,width:a.floating.width,height:a.floating.height}:a.reference,_=await(i.getOffsetParent==null?void 0:i.getOffsetParent(o.floating)),v=await(i.isElement==null?void 0:i.isElement(_))&&await(i.getScale==null?void 0:i.getScale(_))||{x:1,y:1},y=PE(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:o,rect:g,offsetParent:_,strategy:s}):g);return{top:(h.top-y.top+p.top)/v.y,bottom:(y.bottom-h.bottom+p.bottom)/v.y,left:(h.left-y.left+p.left)/v.x,right:(y.right-h.right+p.right)/v.x}}var LE=50,RE=async(e,t,n)=>{let{placement:r=`bottom`,strategy:i=`absolute`,middleware:a=[],platform:o}=n,s=o.detectOverflow?o:{...o,detectOverflow:IE},c=await(o.isRTL==null?void 0:o.isRTL(t)),l=await o.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:d}=FE(l,r,c),f=r,p=0,m={};for(let n=0;n<a.length;n++){let h=a[n];if(!h)continue;let{name:g,fn:_}=h,{x:v,y,data:b,reset:x}=await _({x:u,y:d,initialPlacement:r,placement:f,strategy:i,middlewareData:m,rects:l,platform:s,elements:{reference:e,floating:t}});u=v??u,d=y??d,m[g]={...m[g],...b},x&&p<LE&&(p++,typeof x==`object`&&(x.placement&&(f=x.placement),x.rects&&(l=x.rects===!0?await o.getElementRects({reference:e,floating:t,strategy:i}):x.rects),{x:u,y:d}=FE(l,f,c)),n=-1)}return{x:u,y:d,placement:f,strategy:i,middlewareData:m}},zE=e=>({name:`arrow`,options:e,async fn(t){let{x:n,y:r,placement:i,rects:a,platform:o,elements:s,middlewareData:c}=t,{element:l,padding:u=0}=hE(e,t)||{};if(l==null)return{};let d=NE(u),f={x:n,y:r},p=xE(i),m=yE(p),h=await o.getDimensions(l),g=p===`y`,_=g?`top`:`left`,v=g?`bottom`:`right`,y=g?`clientHeight`:`clientWidth`,b=a.reference[m]+a.reference[p]-f[p]-a.floating[m],x=f[p]-a.reference[p],S=await(o.getOffsetParent==null?void 0:o.getOffsetParent(l)),C=S?S[y]:0;(!C||!await(o.isElement==null?void 0:o.isElement(S)))&&(C=s.floating[y]||a.floating[m]);let w=b/2-x/2,T=C/2-h[m]/2-1,E=cE(d[_],T),ee=cE(d[v],T),D=E,O=C-h[m]-ee,k=C/2-h[m]/2+w,A=mE(D,k,O),j=!c.arrow&&_E(i)!=null&&k!==A&&a.reference[m]/2-(k<D?E:ee)-h[m]/2<0,M=j?k<D?k-D:k-O:0;return{[p]:f[p]+M,data:{[p]:A,centerOffset:k-A-M,...j&&{alignmentOffset:M}},reset:j}}}),BE=function(e){return e===void 0&&(e={}),{name:`flip`,options:e,async fn(t){var n;let{placement:r,middlewareData:i,rects:a,initialPlacement:o,platform:s,elements:c}=t,{mainAxis:l=!0,crossAxis:u=!0,fallbackPlacements:d,fallbackStrategy:f=`bestFit`,fallbackAxisSideDirection:p=`none`,flipAlignment:m=!0,...h}=hE(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};let g=gE(r),_=bE(o),v=gE(o)===o,y=await(s.isRTL==null?void 0:s.isRTL(c.floating)),b=d||(v||!m?[jE(o)]:CE(o)),x=p!==`none`;!d&&x&&b.push(...AE(o,m,p,y));let S=[o,...b],C=await s.detectOverflow(t,h),w=[],T=i.flip?.overflows||[];if(l&&w.push(C[g]),u){let e=SE(r,a,y);w.push(C[e[0]],C[e[1]])}if(T=[...T,{placement:r,overflows:w}],!w.every(e=>e<=0)){let e=(i.flip?.index||0)+1,t=S[e];if(t&&(!(u===`alignment`&&_!==bE(t))||T.every(e=>bE(e.placement)===_?e.overflows[0]>0:!0)))return{data:{index:e,overflows:T},reset:{placement:t}};let n=T.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0]?.placement;if(!n)switch(f){case`bestFit`:{let e=T.filter(e=>{if(x){let t=bE(e.placement);return t===_||t===`y`}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0]?.[0];e&&(n=e);break}case`initialPlacement`:n=o;break}if(r!==n)return{reset:{placement:n}}}return{}}}};function VE(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function HE(e){return sE.some(t=>e[t]>=0)}var UE=function(e){return e===void 0&&(e={}),{name:`hide`,options:e,async fn(t){let{rects:n,platform:r}=t,{strategy:i=`referenceHidden`,...a}=hE(e,t);switch(i){case`referenceHidden`:{let e=VE(await r.detectOverflow(t,{...a,elementContext:`reference`}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:HE(e)}}}case`escaped`:{let e=VE(await r.detectOverflow(t,{...a,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:HE(e)}}}default:return{}}}}},WE=new Set([`left`,`top`]);async function GE(e,t){let{placement:n,platform:r,elements:i}=e,a=await(r.isRTL==null?void 0:r.isRTL(i.floating)),o=gE(n),s=_E(n),c=bE(n)===`y`,l=WE.has(o)?-1:1,u=a&&c?-1:1,d=hE(t,e),{mainAxis:f,crossAxis:p,alignmentAxis:m}=typeof d==`number`?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&typeof m==`number`&&(p=s===`end`?m*-1:m),c?{x:p*u,y:f*l}:{x:f*l,y:p*u}}var KE=function(e){return e===void 0&&(e=0),{name:`offset`,options:e,async fn(t){var n;let{x:r,y:i,placement:a,middlewareData:o}=t,s=await GE(t,e);return a===o.offset?.placement&&(n=o.arrow)!=null&&n.alignmentOffset?{}:{x:r+s.x,y:i+s.y,data:{...s,placement:a}}}}},qE=function(e){return e===void 0&&(e={}),{name:`shift`,options:e,async fn(t){let{x:n,y:r,placement:i,platform:a}=t,{mainAxis:o=!0,crossAxis:s=!1,limiter:c={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...l}=hE(e,t),u={x:n,y:r},d=await a.detectOverflow(t,l),f=bE(gE(i)),p=vE(f),m=u[p],h=u[f];if(o){let e=p===`y`?`top`:`left`,t=p===`y`?`bottom`:`right`,n=m+d[e],r=m-d[t];m=mE(n,m,r)}if(s){let e=f===`y`?`top`:`left`,t=f===`y`?`bottom`:`right`,n=h+d[e],r=h-d[t];h=mE(n,h,r)}let g=c.fn({...t,[p]:m,[f]:h});return{...g,data:{x:g.x-n,y:g.y-r,enabled:{[p]:o,[f]:s}}}}}},JE=function(e){return e===void 0&&(e={}),{options:e,fn(t){let{x:n,y:r,placement:i,rects:a,middlewareData:o}=t,{offset:s=0,mainAxis:c=!0,crossAxis:l=!0}=hE(e,t),u={x:n,y:r},d=bE(i),f=vE(d),p=u[f],m=u[d],h=hE(s,t),g=typeof h==`number`?{mainAxis:h,crossAxis:0}:{mainAxis:0,crossAxis:0,...h};if(c){let e=f===`y`?`height`:`width`,t=a.reference[f]-a.floating[e]+g.mainAxis,n=a.reference[f]+a.reference[e]-g.mainAxis;p<t?p=t:p>n&&(p=n)}if(l){let e=f===`y`?`width`:`height`,t=WE.has(gE(i)),n=a.reference[d]-a.floating[e]+(t&&o.offset?.[d]||0)+(t?0:g.crossAxis),r=a.reference[d]+a.reference[e]+(t?0:o.offset?.[d]||0)-(t?g.crossAxis:0);m<n?m=n:m>r&&(m=r)}return{[f]:p,[d]:m}}}},YE=function(e){return e===void 0&&(e={}),{name:`size`,options:e,async fn(t){var n,r;let{placement:i,rects:a,platform:o,elements:s}=t,{apply:c=()=>{},...l}=hE(e,t),u=await o.detectOverflow(t,l),d=gE(i),f=_E(i),p=bE(i)===`y`,{width:m,height:h}=a.floating,g,_;d===`top`||d===`bottom`?(g=d,_=f===(await(o.isRTL==null?void 0:o.isRTL(s.floating))?`start`:`end`)?`left`:`right`):(_=d,g=f===`end`?`top`:`bottom`);let v=h-u.top-u.bottom,y=m-u.left-u.right,b=cE(h-u[g],v),x=cE(m-u[_],y),S=!t.middlewareData.shift,C=b,w=x;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(w=y),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(C=v),S&&!f){let e=lE(u.left,0),t=lE(u.right,0),n=lE(u.top,0),r=lE(u.bottom,0);p?w=m-2*(e!==0||t!==0?e+t:lE(u.left,u.right)):C=h-2*(n!==0||r!==0?n+r:lE(u.top,u.bottom))}await c({...t,availableWidth:w,availableHeight:C});let T=await o.getDimensions(s.floating);return m!==T.width||h!==T.height?{reset:{rects:!0}}:{}}}};function XE(){return typeof window<`u`}function ZE(e){return eD(e)?(e.nodeName||``).toLowerCase():`#document`}function QE(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function $E(e){return((eD(e)?e.ownerDocument:e.document)||window.document)?.documentElement}function eD(e){return XE()?e instanceof Node||e instanceof QE(e).Node:!1}function tD(e){return XE()?e instanceof Element||e instanceof QE(e).Element:!1}function nD(e){return XE()?e instanceof HTMLElement||e instanceof QE(e).HTMLElement:!1}function rD(e){return!XE()||typeof ShadowRoot>`u`?!1:e instanceof ShadowRoot||e instanceof QE(e).ShadowRoot}function iD(e){let{overflow:t,overflowX:n,overflowY:r,display:i}=hD(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&i!==`inline`&&i!==`contents`}function aD(e){return/^(table|td|th)$/.test(ZE(e))}function oD(e){try{if(e.matches(`:popover-open`))return!0}catch{}try{return e.matches(`:modal`)}catch{return!1}}var sD=/transform|translate|scale|rotate|perspective|filter/,cD=/paint|layout|strict|content/,lD=e=>!!e&&e!==`none`,uD;function dD(e){let t=tD(e)?hD(e):e;return lD(t.transform)||lD(t.translate)||lD(t.scale)||lD(t.rotate)||lD(t.perspective)||!pD()&&(lD(t.backdropFilter)||lD(t.filter))||sD.test(t.willChange||``)||cD.test(t.contain||``)}function fD(e){let t=_D(e);for(;nD(t)&&!mD(t);){if(dD(t))return t;if(oD(t))return null;t=_D(t)}return null}function pD(){return uD??=typeof CSS<`u`&&CSS.supports&&CSS.supports(`-webkit-backdrop-filter`,`none`),uD}function mD(e){return/^(html|body|#document)$/.test(ZE(e))}function hD(e){return QE(e).getComputedStyle(e)}function gD(e){return tD(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function _D(e){if(ZE(e)===`html`)return e;let t=e.assignedSlot||e.parentNode||rD(e)&&e.host||$E(e);return rD(t)?t.host:t}function vD(e){let t=_D(e);return mD(t)?e.ownerDocument?e.ownerDocument.body:e.body:nD(t)&&iD(t)?t:vD(t)}function yD(e,t,n){t===void 0&&(t=[]),n===void 0&&(n=!0);let r=vD(e),i=r===e.ownerDocument?.body,a=QE(r);if(i){let e=bD(a);return t.concat(a,a.visualViewport||[],iD(r)?r:[],e&&n?yD(e):[])}else return t.concat(r,yD(r,[],n))}function bD(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function xD(e){let t=hD(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,i=nD(e),a=i?e.offsetWidth:n,o=i?e.offsetHeight:r,s=uE(n)!==a||uE(r)!==o;return s&&(n=a,r=o),{width:n,height:r,$:s}}function SD(e){return tD(e)?e:e.contextElement}function CD(e){let t=SD(e);if(!nD(t))return fE(1);let n=t.getBoundingClientRect(),{width:r,height:i,$:a}=xD(t),o=(a?uE(n.width):n.width)/r,s=(a?uE(n.height):n.height)/i;return(!o||!Number.isFinite(o))&&(o=1),(!s||!Number.isFinite(s))&&(s=1),{x:o,y:s}}var wD=fE(0);function TD(e){let t=QE(e);return!pD()||!t.visualViewport?wD:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function ED(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==QE(e)?!1:t}function DD(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);let i=e.getBoundingClientRect(),a=SD(e),o=fE(1);t&&(r?tD(r)&&(o=CD(r)):o=CD(e));let s=ED(a,n,r)?TD(a):fE(0),c=(i.left+s.x)/o.x,l=(i.top+s.y)/o.y,u=i.width/o.x,d=i.height/o.y;if(a){let e=QE(a),t=r&&tD(r)?QE(r):r,n=e,i=bD(n);for(;i&&r&&t!==n;){let e=CD(i),t=i.getBoundingClientRect(),r=hD(i),a=t.left+(i.clientLeft+parseFloat(r.paddingLeft))*e.x,o=t.top+(i.clientTop+parseFloat(r.paddingTop))*e.y;c*=e.x,l*=e.y,u*=e.x,d*=e.y,c+=a,l+=o,n=QE(i),i=bD(n)}}return PE({width:u,height:d,x:c,y:l})}function OD(e,t){let n=gD(e).scrollLeft;return t?t.left+n:DD($E(e)).left+n}function kD(e,t){let n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-OD(e,n),y:n.top+t.scrollTop}}function AD(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e,a=i===`fixed`,o=$E(r),s=t?oD(t.floating):!1;if(r===o||s&&a)return n;let c={scrollLeft:0,scrollTop:0},l=fE(1),u=fE(0),d=nD(r);if((d||!d&&!a)&&((ZE(r)!==`body`||iD(o))&&(c=gD(r)),d)){let e=DD(r);l=CD(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}let f=o&&!d&&!a?kD(o,c):fE(0);return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-c.scrollLeft*l.x+u.x+f.x,y:n.y*l.y-c.scrollTop*l.y+u.y+f.y}}function jD(e){return Array.from(e.getClientRects())}function MD(e){let t=$E(e),n=gD(e),r=e.ownerDocument.body,i=lE(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=lE(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),o=-n.scrollLeft+OD(e),s=-n.scrollTop;return hD(r).direction===`rtl`&&(o+=lE(t.clientWidth,r.clientWidth)-i),{width:i,height:a,x:o,y:s}}var ND=25;function PD(e,t){let n=QE(e),r=$E(e),i=n.visualViewport,a=r.clientWidth,o=r.clientHeight,s=0,c=0;if(i){a=i.width,o=i.height;let e=pD();(!e||e&&t===`fixed`)&&(s=i.offsetLeft,c=i.offsetTop)}let l=OD(r);if(l<=0){let e=r.ownerDocument,t=e.body,n=getComputedStyle(t),i=e.compatMode===`CSS1Compat`&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,o=Math.abs(r.clientWidth-t.clientWidth-i);o<=ND&&(a-=o)}else l<=ND&&(a+=l);return{width:a,height:o,x:s,y:c}}function FD(e,t){let n=DD(e,!0,t===`fixed`),r=n.top+e.clientTop,i=n.left+e.clientLeft,a=nD(e)?CD(e):fE(1);return{width:e.clientWidth*a.x,height:e.clientHeight*a.y,x:i*a.x,y:r*a.y}}function ID(e,t,n){let r;if(t===`viewport`)r=PD(e,n);else if(t===`document`)r=MD($E(e));else if(tD(t))r=FD(t,n);else{let n=TD(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return PE(r)}function LD(e,t){let n=_D(e);return n===t||!tD(n)||mD(n)?!1:hD(n).position===`fixed`||LD(n,t)}function RD(e,t){let n=t.get(e);if(n)return n;let r=yD(e,[],!1).filter(e=>tD(e)&&ZE(e)!==`body`),i=null,a=hD(e).position===`fixed`,o=a?_D(e):e;for(;tD(o)&&!mD(o);){let t=hD(o),n=dD(o);!n&&t.position===`fixed`&&(i=null),(a?!n&&!i:!n&&t.position===`static`&&i&&(i.position===`absolute`||i.position===`fixed`)||iD(o)&&!n&&LD(e,o))?r=r.filter(e=>e!==o):i=t,o=_D(o)}return t.set(e,r),r}function zD(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e,a=[...n===`clippingAncestors`?oD(t)?[]:RD(t,this._c):[].concat(n),r],o=ID(t,a[0],i),s=o.top,c=o.right,l=o.bottom,u=o.left;for(let e=1;e<a.length;e++){let n=ID(t,a[e],i);s=lE(n.top,s),c=cE(n.right,c),l=cE(n.bottom,l),u=lE(n.left,u)}return{width:c-u,height:l-s,x:u,y:s}}function BD(e){let{width:t,height:n}=xD(e);return{width:t,height:n}}function VD(e,t,n){let r=nD(t),i=$E(t),a=n===`fixed`,o=DD(e,!0,a,t),s={scrollLeft:0,scrollTop:0},c=fE(0);function l(){c.x=OD(i)}if(r||!r&&!a)if((ZE(t)!==`body`||iD(i))&&(s=gD(t)),r){let e=DD(t,!0,a,t);c.x=e.x+t.clientLeft,c.y=e.y+t.clientTop}else i&&l();a&&!r&&i&&l();let u=i&&!r&&!a?kD(i,s):fE(0);return{x:o.left+s.scrollLeft-c.x-u.x,y:o.top+s.scrollTop-c.y-u.y,width:o.width,height:o.height}}function HD(e){return hD(e).position===`static`}function UD(e,t){if(!nD(e)||hD(e).position===`fixed`)return null;if(t)return t(e);let n=e.offsetParent;return $E(e)===n&&(n=n.ownerDocument.body),n}function WD(e,t){let n=QE(e);if(oD(e))return n;if(!nD(e)){let t=_D(e);for(;t&&!mD(t);){if(tD(t)&&!HD(t))return t;t=_D(t)}return n}let r=UD(e,t);for(;r&&aD(r)&&HD(r);)r=UD(r,t);return r&&mD(r)&&HD(r)&&!dD(r)?n:r||fD(e)||n}var GD=async function(e){let t=this.getOffsetParent||WD,n=this.getDimensions,r=await n(e.floating);return{reference:VD(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function KD(e){return hD(e).direction===`rtl`}var qD={convertOffsetParentRelativeRectToViewportRelativeRect:AD,getDocumentElement:$E,getClippingRect:zD,getOffsetParent:WD,getElementRects:GD,getClientRects:jD,getDimensions:BD,getScale:CD,isElement:tD,isRTL:KD};function JD(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function YD(e,t){let n=null,r,i=$E(e);function a(){var e;clearTimeout(r),(e=n)==null||e.disconnect(),n=null}function o(s,c){s===void 0&&(s=!1),c===void 0&&(c=1),a();let l=e.getBoundingClientRect(),{left:u,top:d,width:f,height:p}=l;if(s||t(),!f||!p)return;let m=dE(d),h=dE(i.clientWidth-(u+f)),g=dE(i.clientHeight-(d+p)),_=dE(u),v={rootMargin:-m+`px `+-h+`px `+-g+`px `+-_+`px`,threshold:lE(0,cE(1,c))||1},y=!0;function b(t){let n=t[0].intersectionRatio;if(n!==c){if(!y)return o();n?o(!1,n):r=setTimeout(()=>{o(!1,1e-7)},1e3)}n===1&&!JD(l,e.getBoundingClientRect())&&o(),y=!1}try{n=new IntersectionObserver(b,{...v,root:i.ownerDocument})}catch{n=new IntersectionObserver(b,v)}n.observe(e)}return o(!0),a}function XD(e,t,n,r){r===void 0&&(r={});let{ancestorScroll:i=!0,ancestorResize:a=!0,elementResize:o=typeof ResizeObserver==`function`,layoutShift:s=typeof IntersectionObserver==`function`,animationFrame:c=!1}=r,l=SD(e),u=i||a?[...l?yD(l):[],...t?yD(t):[]]:[];u.forEach(e=>{i&&e.addEventListener(`scroll`,n,{passive:!0}),a&&e.addEventListener(`resize`,n)});let d=l&&s?YD(l,n):null,f=-1,p=null;o&&(p=new ResizeObserver(e=>{let[r]=e;r&&r.target===l&&p&&t&&(p.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var e;(e=p)==null||e.observe(t)})),n()}),l&&!c&&p.observe(l),t&&p.observe(t));let m,h=c?DD(e):null;c&&g();function g(){let t=DD(e);h&&!JD(h,t)&&n(),h=t,m=requestAnimationFrame(g)}return n(),()=>{var e;u.forEach(e=>{i&&e.removeEventListener(`scroll`,n),a&&e.removeEventListener(`resize`,n)}),d?.(),(e=p)==null||e.disconnect(),p=null,c&&cancelAnimationFrame(m)}}var ZD=KE,QD=qE,$D=BE,eO=YE,tO=UE,nO=zE,rO=JE,iO=(e,t,n)=>{let r=new Map,i={platform:qD,...n},a={...i.platform,_c:r};return RE(e,t,{...i,platform:a})},aO=typeof document<`u`?L.useLayoutEffect:function(){};function oO(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e==`function`&&e.toString()===t.toString())return!0;let n,r,i;if(e&&t&&typeof e==`object`){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!oO(e[r],t[r]))return!1;return!0}if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,i[r]))return!1;for(r=n;r--!==0;){let n=i[r];if(!(n===`_owner`&&e.$$typeof)&&!oO(e[n],t[n]))return!1}return!0}return e!==e&&t!==t}function sO(e){return typeof window>`u`?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function cO(e,t){let n=sO(e);return Math.round(t*n)/n}function lO(e){let t=L.useRef(e);return aO(()=>{t.current=e}),t}function uO(e){e===void 0&&(e={});let{placement:t=`bottom`,strategy:n=`absolute`,middleware:r=[],platform:i,elements:{reference:a,floating:o}={},transform:s=!0,whileElementsMounted:c,open:l}=e,[u,d]=L.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[f,p]=L.useState(r);oO(f,r)||p(r);let[m,h]=L.useState(null),[g,_]=L.useState(null),v=L.useCallback(e=>{e!==S.current&&(S.current=e,h(e))},[]),y=L.useCallback(e=>{e!==C.current&&(C.current=e,_(e))},[]),b=a||m,x=o||g,S=L.useRef(null),C=L.useRef(null),w=L.useRef(u),T=c!=null,E=lO(c),ee=lO(i),D=lO(l),O=L.useCallback(()=>{if(!S.current||!C.current)return;let e={placement:t,strategy:n,middleware:f};ee.current&&(e.platform=ee.current),iO(S.current,C.current,e).then(e=>{let t={...e,isPositioned:D.current!==!1};k.current&&!oO(w.current,t)&&(w.current=t,gS.flushSync(()=>{d(t)}))})},[f,t,n,ee,D]);aO(()=>{l===!1&&w.current.isPositioned&&(w.current.isPositioned=!1,d(e=>({...e,isPositioned:!1})))},[l]);let k=L.useRef(!1);aO(()=>(k.current=!0,()=>{k.current=!1}),[]),aO(()=>{if(b&&(S.current=b),x&&(C.current=x),b&&x){if(E.current)return E.current(b,x,O);O()}},[b,x,O,E,T]);let A=L.useMemo(()=>({reference:S,floating:C,setReference:v,setFloating:y}),[v,y]),j=L.useMemo(()=>({reference:b,floating:x}),[b,x]),M=L.useMemo(()=>{let e={position:n,left:0,top:0};if(!j.floating)return e;let t=cO(j.floating,u.x),r=cO(j.floating,u.y);return s?{...e,transform:`translate(`+t+`px, `+r+`px)`,...sO(j.floating)>=1.5&&{willChange:`transform`}}:{position:n,left:t,top:r}},[n,s,j.floating,u.x,u.y]);return L.useMemo(()=>({...u,update:O,refs:A,elements:j,floatingStyles:M}),[u,O,A,j,M])}var dO=e=>{function t(e){return{}.hasOwnProperty.call(e,`current`)}return{name:`arrow`,options:e,fn(n){let{element:r,padding:i}=typeof e==`function`?e(n):e;return r&&t(r)?r.current==null?{}:nO({element:r.current,padding:i}).fn(n):r?nO({element:r,padding:i}).fn(n):{}}}},fO=(e,t)=>{let n=ZD(e);return{name:n.name,fn:n.fn,options:[e,t]}},pO=(e,t)=>{let n=QD(e);return{name:n.name,fn:n.fn,options:[e,t]}},mO=(e,t)=>({fn:rO(e).fn,options:[e,t]}),hO=(e,t)=>{let n=$D(e);return{name:n.name,fn:n.fn,options:[e,t]}},gO=(e,t)=>{let n=eO(e);return{name:n.name,fn:n.fn,options:[e,t]}},_O=(e,t)=>{let n=tO(e);return{name:n.name,fn:n.fn,options:[e,t]}},vO=(e,t)=>{let n=dO(e);return{name:n.name,fn:n.fn,options:[e,t]}},yO=`Arrow`,bO=L.forwardRef((e,t)=>{let{children:n,width:r=10,height:i=5,...a}=e;return(0,R.jsx)(xT.svg,{...a,ref:t,width:r,height:i,viewBox:`0 0 30 10`,preserveAspectRatio:`none`,children:e.asChild?n:(0,R.jsx)(`polygon`,{points:`0,0 30,0 15,10`})})});bO.displayName=yO;var xO=bO;function SO(e){let[t,n]=L.useState(void 0);return rE(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});let t=new ResizeObserver(t=>{if(!Array.isArray(t)||!t.length)return;let r=t[0],i,a;if(`borderBoxSize`in r){let e=r.borderBoxSize,t=Array.isArray(e)?e[0]:e;i=t.inlineSize,a=t.blockSize}else i=e.offsetWidth,a=e.offsetHeight;n({width:i,height:a})});return t.observe(e,{box:`border-box`}),()=>t.unobserve(e)}else n(void 0)},[e]),t}var CO=`Popper`,[wO,TO]=fT(CO),[EO,DO]=wO(CO),OO=e=>{let{__scopePopper:t,children:n}=e,[r,i]=L.useState(null);return(0,R.jsx)(EO,{scope:t,anchor:r,onAnchorChange:i,children:n})};OO.displayName=CO;var kO=`PopperAnchor`,AO=L.forwardRef((e,t)=>{let{__scopePopper:n,virtualRef:r,...i}=e,a=DO(kO,n),o=L.useRef(null),s=uT(t,o),c=L.useRef(null);return L.useEffect(()=>{let e=c.current;c.current=r?.current||o.current,e!==c.current&&a.onAnchorChange(c.current)}),r?null:(0,R.jsx)(xT.div,{...i,ref:s})});AO.displayName=kO;var jO=`PopperContent`,[MO,NO]=wO(jO),PO=L.forwardRef((e,t)=>{let{__scopePopper:n,side:r=`bottom`,sideOffset:i=0,align:a=`center`,alignOffset:o=0,arrowPadding:s=0,avoidCollisions:c=!0,collisionBoundary:l=[],collisionPadding:u=0,sticky:d=`partial`,hideWhenDetached:f=!1,updatePositionStrategy:p=`optimized`,onPlaced:m,...h}=e,g=DO(jO,n),[_,v]=L.useState(null),y=uT(t,e=>v(e)),[b,x]=L.useState(null),S=SO(b),C=S?.width??0,w=S?.height??0,T=r+(a===`center`?``:`-`+a),E=typeof u==`number`?u:{top:0,right:0,bottom:0,left:0,...u},ee=Array.isArray(l)?l:[l],D=ee.length>0,O={padding:E,boundary:ee.filter(RO),altBoundary:D},{refs:k,floatingStyles:A,placement:j,isPositioned:M,middlewareData:N}=uO({strategy:`fixed`,placement:T,whileElementsMounted:(...e)=>XD(...e,{animationFrame:p===`always`}),elements:{reference:g.anchor},middleware:[fO({mainAxis:i+w,alignmentAxis:o}),c&&pO({mainAxis:!0,crossAxis:!1,limiter:d===`partial`?mO():void 0,...O}),c&&hO({...O}),gO({...O,apply:({elements:e,rects:t,availableWidth:n,availableHeight:r})=>{let{width:i,height:a}=t.reference,o=e.floating.style;o.setProperty(`--radix-popper-available-width`,`${n}px`),o.setProperty(`--radix-popper-available-height`,`${r}px`),o.setProperty(`--radix-popper-anchor-width`,`${i}px`),o.setProperty(`--radix-popper-anchor-height`,`${a}px`)}}),b&&vO({element:b,padding:s}),zO({arrowWidth:C,arrowHeight:w}),f&&_O({strategy:`referenceHidden`,...O})]}),[te,ne]=BO(j),re=CT(m);rE(()=>{M&&re?.()},[M,re]);let ie=N.arrow?.x,ae=N.arrow?.y,oe=N.arrow?.centerOffset!==0,[P,se]=L.useState();return rE(()=>{_&&se(window.getComputedStyle(_).zIndex)},[_]),(0,R.jsx)(`div`,{ref:k.setFloating,"data-radix-popper-content-wrapper":``,style:{...A,transform:M?A.transform:`translate(0, -200%)`,minWidth:`max-content`,zIndex:P,"--radix-popper-transform-origin":[N.transformOrigin?.x,N.transformOrigin?.y].join(` `),...N.hide?.referenceHidden&&{visibility:`hidden`,pointerEvents:`none`}},dir:e.dir,children:(0,R.jsx)(MO,{scope:n,placedSide:te,onArrowChange:x,arrowX:ie,arrowY:ae,shouldHideArrow:oe,children:(0,R.jsx)(xT.div,{"data-side":te,"data-align":ne,...h,ref:y,style:{...h.style,animation:M?void 0:`none`}})})})});PO.displayName=jO;var FO=`PopperArrow`,IO={top:`bottom`,right:`left`,bottom:`top`,left:`right`},LO=L.forwardRef(function(e,t){let{__scopePopper:n,...r}=e,i=NO(FO,n),a=IO[i.placedSide];return(0,R.jsx)(`span`,{ref:i.onArrowChange,style:{position:`absolute`,left:i.arrowX,top:i.arrowY,[a]:0,transformOrigin:{top:``,right:`0 0`,bottom:`center 0`,left:`100% 0`}[i.placedSide],transform:{top:`translateY(100%)`,right:`translateY(50%) rotate(90deg) translateX(-50%)`,bottom:`rotate(180deg)`,left:`translateY(50%) rotate(-90deg) translateX(50%)`}[i.placedSide],visibility:i.shouldHideArrow?`hidden`:void 0},children:(0,R.jsx)(xO,{...r,ref:t,style:{...r.style,display:`block`}})})});LO.displayName=FO;function RO(e){return e!==null}var zO=e=>({name:`transformOrigin`,options:e,fn(t){let{placement:n,rects:r,middlewareData:i}=t,a=i.arrow?.centerOffset!==0,o=a?0:e.arrowWidth,s=a?0:e.arrowHeight,[c,l]=BO(n),u={start:`0%`,center:`50%`,end:`100%`}[l],d=(i.arrow?.x??0)+o/2,f=(i.arrow?.y??0)+s/2,p=``,m=``;return c===`bottom`?(p=a?u:`${d}px`,m=`${-s}px`):c===`top`?(p=a?u:`${d}px`,m=`${r.floating.height+s}px`):c===`right`?(p=`${-s}px`,m=a?u:`${f}px`):c===`left`&&(p=`${r.floating.width+s}px`,m=a?u:`${f}px`),{data:{x:p,y:m}}}});function BO(e){let[t,n=`center`]=e.split(`-`);return[t,n]}var VO=OO,HO=AO,UO=PO,WO=LO,GO=`Portal`,KO=L.forwardRef((e,t)=>{let{container:n,...r}=e,[i,a]=L.useState(!1);rE(()=>a(!0),[]);let o=n||i&&globalThis?.document?.body;return o?gS.createPortal((0,R.jsx)(xT.div,{...r,ref:t}),o):null});KO.displayName=GO;function qO(e,t){return L.useReducer((e,n)=>t[e][n]??e,e)}var JO=e=>{let{present:t,children:n}=e,r=YO(t),i=typeof n==`function`?n({present:r.isPresent}):L.Children.only(n),a=uT(r.ref,ZO(i));return typeof n==`function`||r.isPresent?L.cloneElement(i,{ref:a}):null};JO.displayName=`Presence`;function YO(e){let[t,n]=L.useState(),r=L.useRef(null),i=L.useRef(e),a=L.useRef(`none`),[o,s]=qO(e?`mounted`:`unmounted`,{mounted:{UNMOUNT:`unmounted`,ANIMATION_OUT:`unmountSuspended`},unmountSuspended:{MOUNT:`mounted`,ANIMATION_END:`unmounted`},unmounted:{MOUNT:`mounted`}});return L.useEffect(()=>{let e=XO(r.current);a.current=o===`mounted`?e:`none`},[o]),rE(()=>{let t=r.current,n=i.current;if(n!==e){let r=a.current,o=XO(t);e?s(`MOUNT`):o===`none`||t?.display===`none`?s(`UNMOUNT`):s(n&&r!==o?`ANIMATION_OUT`:`UNMOUNT`),i.current=e}},[e,s]),rE(()=>{if(t){let e,n=t.ownerDocument.defaultView??window,o=a=>{let o=XO(r.current).includes(CSS.escape(a.animationName));if(a.target===t&&o&&(s(`ANIMATION_END`),!i.current)){let r=t.style.animationFillMode;t.style.animationFillMode=`forwards`,e=n.setTimeout(()=>{t.style.animationFillMode===`forwards`&&(t.style.animationFillMode=r)})}},c=e=>{e.target===t&&(a.current=XO(r.current))};return t.addEventListener(`animationstart`,c),t.addEventListener(`animationcancel`,o),t.addEventListener(`animationend`,o),()=>{n.clearTimeout(e),t.removeEventListener(`animationstart`,c),t.removeEventListener(`animationcancel`,o),t.removeEventListener(`animationend`,o)}}else s(`ANIMATION_END`)},[t,s]),{isPresent:[`mounted`,`unmountSuspended`].includes(o),ref:L.useCallback(e=>{r.current=e?getComputedStyle(e):null,n(e)},[])}}function XO(e){return e?.animationName||`none`}function ZO(e){let t=Object.getOwnPropertyDescriptor(e.props,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var QO=L.useInsertionEffect||rE;function $O({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){let[i,a,o]=ek({defaultProp:t,onChange:n}),s=e!==void 0,c=s?e:i;{let t=L.useRef(e!==void 0);L.useEffect(()=>{let e=t.current;e!==s&&console.warn(`${r} is changing from ${e?`controlled`:`uncontrolled`} to ${s?`controlled`:`uncontrolled`}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),t.current=s},[s,r])}return[c,L.useCallback(t=>{if(s){let n=tk(t)?t(e):t;n!==e&&o.current?.(n)}else a(t)},[s,e,a,o])]}function ek({defaultProp:e,onChange:t}){let[n,r]=L.useState(e),i=L.useRef(n),a=L.useRef(t);return QO(()=>{a.current=t},[t]),L.useEffect(()=>{i.current!==n&&(a.current?.(n),i.current=n)},[n,i]),[n,r,a]}function tk(e){return typeof e==`function`}var nk=function(e){return typeof document>`u`?null:(Array.isArray(e)?e[0]:e).ownerDocument.body},rk=new WeakMap,ik=new WeakMap,ak={},ok=0,sk=function(e){return e&&(e.host||sk(e.parentNode))},ck=function(e,t){return t.map(function(t){if(e.contains(t))return t;var n=sk(t);return n&&e.contains(n)?n:(console.error(`aria-hidden`,t,`in not contained inside`,e,`. Doing nothing`),null)}).filter(function(e){return!!e})},lk=function(e,t,n,r){var i=ck(t,Array.isArray(e)?e:[e]);ak[n]||(ak[n]=new WeakMap);var a=ak[n],o=[],s=new Set,c=new Set(i),l=function(e){!e||s.has(e)||(s.add(e),l(e.parentNode))};i.forEach(l);var u=function(e){!e||c.has(e)||Array.prototype.forEach.call(e.children,function(e){if(s.has(e))u(e);else try{var t=e.getAttribute(r),i=t!==null&&t!==`false`,c=(rk.get(e)||0)+1,l=(a.get(e)||0)+1;rk.set(e,c),a.set(e,l),o.push(e),c===1&&i&&ik.set(e,!0),l===1&&e.setAttribute(n,`true`),i||e.setAttribute(r,`true`)}catch(t){console.error(`aria-hidden: cannot operate on `,e,t)}})};return u(t),s.clear(),ok++,function(){o.forEach(function(e){var t=rk.get(e)-1,i=a.get(e)-1;rk.set(e,t),a.set(e,i),t||(ik.has(e)||e.removeAttribute(r),ik.delete(e)),i||e.removeAttribute(n)}),ok--,ok||(rk=new WeakMap,rk=new WeakMap,ik=new WeakMap,ak={})}},uk=function(e,t,n){n===void 0&&(n=`data-aria-hidden`);var r=Array.from(Array.isArray(e)?e:[e]),i=t||nk(e);return i?(r.push.apply(r,Array.from(i.querySelectorAll(`[aria-live], script`))),lk(r,i,n,`aria-hidden`)):function(){return null}},dk=function(){return dk=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},dk.apply(this,arguments)};function fk(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}function pk(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r<i;r++)(a||!(r in t))&&(a||=Array.prototype.slice.call(t,0,r),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))}var mk=`right-scroll-bar-position`,hk=`width-before-scroll-bar`,gk=`with-scroll-bars-hidden`,_k=`--removed-body-scroll-bar-size`;function vk(e,t){return typeof e==`function`?e(t):e&&(e.current=t),e}function yk(e,t){var n=(0,L.useState)(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(e){var t=n.value;t!==e&&(n.value=e,n.callback(e,t))}}}})[0];return n.callback=t,n.facade}var bk=typeof window<`u`?L.useLayoutEffect:L.useEffect,xk=new WeakMap;function Sk(e,t){var n=yk(t||null,function(t){return e.forEach(function(e){return vk(e,t)})});return bk(function(){var t=xk.get(n);if(t){var r=new Set(t),i=new Set(e),a=n.current;r.forEach(function(e){i.has(e)||vk(e,null)}),i.forEach(function(e){r.has(e)||vk(e,a)})}xk.set(n,e)},[e]),n}function Ck(e){return e}function wk(e,t){t===void 0&&(t=Ck);var n=[],r=!1;return{read:function(){if(r)throw Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(e){var i=t(e,r);return n.push(i),function(){n=n.filter(function(e){return e!==i})}},assignSyncMedium:function(e){for(r=!0;n.length;){var t=n;n=[],t.forEach(e)}n={push:function(t){return e(t)},filter:function(){return n}}},assignMedium:function(e){r=!0;var t=[];if(n.length){var i=n;n=[],i.forEach(e),t=n}var a=function(){var n=t;t=[],n.forEach(e)},o=function(){return Promise.resolve().then(a)};o(),n={push:function(e){t.push(e),o()},filter:function(e){return t=t.filter(e),n}}}}}function Tk(e){e===void 0&&(e={});var t=wk(null);return t.options=dk({async:!0,ssr:!1},e),t}var Ek=function(e){var t=e.sideCar,n=fk(e,[`sideCar`]);if(!t)throw Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw Error(`Sidecar medium not found`);return L.createElement(r,dk({},n))};Ek.isSideCarExport=!0;function Dk(e,t){return e.useMedium(t),Ek}var Ok=Tk(),kk=function(){},Ak=L.forwardRef(function(e,t){var n=L.useRef(null),r=L.useState({onScrollCapture:kk,onWheelCapture:kk,onTouchMoveCapture:kk}),i=r[0],a=r[1],o=e.forwardProps,s=e.children,c=e.className,l=e.removeScrollBar,u=e.enabled,d=e.shards,f=e.sideCar,p=e.noRelative,m=e.noIsolation,h=e.inert,g=e.allowPinchZoom,_=e.as,v=_===void 0?`div`:_,y=e.gapMode,b=fk(e,[`forwardProps`,`children`,`className`,`removeScrollBar`,`enabled`,`shards`,`sideCar`,`noRelative`,`noIsolation`,`inert`,`allowPinchZoom`,`as`,`gapMode`]),x=f,S=Sk([n,t]),C=dk(dk({},b),i);return L.createElement(L.Fragment,null,u&&L.createElement(x,{sideCar:Ok,removeScrollBar:l,shards:d,noRelative:p,noIsolation:m,inert:h,setCallbacks:a,allowPinchZoom:!!g,lockRef:n,gapMode:y}),o?L.cloneElement(L.Children.only(s),dk(dk({},C),{ref:S})):L.createElement(v,dk({},C,{className:c,ref:S}),s))});Ak.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},Ak.classNames={fullWidth:hk,zeroRight:mk};var jk,Mk=function(){if(jk)return jk;if(typeof __webpack_nonce__<`u`)return __webpack_nonce__};function Nk(){if(!document)return null;var e=document.createElement(`style`);e.type=`text/css`;var t=Mk();return t&&e.setAttribute(`nonce`,t),e}function Pk(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function Fk(e){(document.head||document.getElementsByTagName(`head`)[0]).appendChild(e)}var Ik=function(){var e=0,t=null;return{add:function(n){e==0&&(t=Nk())&&(Pk(t,n),Fk(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},Lk=function(){var e=Ik();return function(t,n){L.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},Rk=function(){var e=Lk();return function(t){var n=t.styles,r=t.dynamic;return e(n,r),null}},zk={left:0,top:0,right:0,gap:0},Bk=function(e){return parseInt(e||``,10)||0},Vk=function(e){var t=window.getComputedStyle(document.body),n=t[e===`padding`?`paddingLeft`:`marginLeft`],r=t[e===`padding`?`paddingTop`:`marginTop`],i=t[e===`padding`?`paddingRight`:`marginRight`];return[Bk(n),Bk(r),Bk(i)]},Hk=function(e){if(e===void 0&&(e=`margin`),typeof window>`u`)return zk;var t=Vk(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},Uk=Rk(),Wk=`data-scroll-locked`,Gk=function(e,t,n,r){var i=e.left,a=e.top,o=e.right,s=e.gap;return n===void 0&&(n=`margin`),`
|
|
88
|
+
.${gk} {
|
|
89
|
+
overflow: hidden ${r};
|
|
90
|
+
padding-right: ${s}px ${r};
|
|
91
|
+
}
|
|
92
|
+
body[${Wk}] {
|
|
93
|
+
overflow: hidden ${r};
|
|
94
|
+
overscroll-behavior: contain;
|
|
95
|
+
${[t&&`position: relative ${r};`,n===`margin`&&`
|
|
96
|
+
padding-left: ${i}px;
|
|
97
|
+
padding-top: ${a}px;
|
|
98
|
+
padding-right: ${o}px;
|
|
99
|
+
margin-left:0;
|
|
100
|
+
margin-top:0;
|
|
101
|
+
margin-right: ${s}px ${r};
|
|
102
|
+
`,n===`padding`&&`padding-right: ${s}px ${r};`].filter(Boolean).join(``)}
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
.${mk} {
|
|
106
|
+
right: ${s}px ${r};
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
.${hk} {
|
|
110
|
+
margin-right: ${s}px ${r};
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
.${mk} .${mk} {
|
|
114
|
+
right: 0 ${r};
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
.${hk} .${hk} {
|
|
118
|
+
margin-right: 0 ${r};
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
body[${Wk}] {
|
|
122
|
+
${_k}: ${s}px;
|
|
123
|
+
}
|
|
124
|
+
`},Kk=function(){var e=parseInt(document.body.getAttribute(`data-scroll-locked`)||`0`,10);return isFinite(e)?e:0},qk=function(){L.useEffect(function(){return document.body.setAttribute(Wk,(Kk()+1).toString()),function(){var e=Kk()-1;e<=0?document.body.removeAttribute(Wk):document.body.setAttribute(Wk,e.toString())}},[])},Jk=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,i=r===void 0?`margin`:r;qk();var a=L.useMemo(function(){return Hk(i)},[i]);return L.createElement(Uk,{styles:Gk(a,!t,i,n?``:`!important`)})},Yk=!1;if(typeof window<`u`)try{var Xk=Object.defineProperty({},`passive`,{get:function(){return Yk=!0,!0}});window.addEventListener(`test`,Xk,Xk),window.removeEventListener(`test`,Xk,Xk)}catch{Yk=!1}var Zk=Yk?{passive:!1}:!1,Qk=function(e){return e.tagName===`TEXTAREA`},$k=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!==`hidden`&&!(n.overflowY===n.overflowX&&!Qk(e)&&n[t]===`visible`)},eA=function(e){return $k(e,`overflowY`)},tA=function(e){return $k(e,`overflowX`)},nA=function(e,t){var n=t.ownerDocument,r=t;do{if(typeof ShadowRoot<`u`&&r instanceof ShadowRoot&&(r=r.host),aA(e,r)){var i=oA(e,r);if(i[1]>i[2])return!0}r=r.parentNode}while(r&&r!==n.body);return!1},rA=function(e){return[e.scrollTop,e.scrollHeight,e.clientHeight]},iA=function(e){return[e.scrollLeft,e.scrollWidth,e.clientWidth]},aA=function(e,t){return e===`v`?eA(t):tA(t)},oA=function(e,t){return e===`v`?rA(t):iA(t)},sA=function(e,t){return e===`h`&&t===`rtl`?-1:1},cA=function(e,t,n,r,i){var a=sA(e,window.getComputedStyle(t).direction),o=a*r,s=n.target,c=t.contains(s),l=!1,u=o>0,d=0,f=0;do{if(!s)break;var p=oA(e,s),m=p[0],h=p[1]-p[2]-a*m;(m||h)&&aA(e,s)&&(d+=h,f+=m);var g=s.parentNode;s=g&&g.nodeType===Node.DOCUMENT_FRAGMENT_NODE?g.host:g}while(!c&&s!==document.body||c&&(t.contains(s)||t===s));return(u&&(i&&Math.abs(d)<1||!i&&o>d)||!u&&(i&&Math.abs(f)<1||!i&&-o>f))&&(l=!0),l},lA=function(e){return`changedTouches`in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},uA=function(e){return[e.deltaX,e.deltaY]},dA=function(e){return e&&`current`in e?e.current:e},fA=function(e,t){return e[0]===t[0]&&e[1]===t[1]},pA=function(e){return`
|
|
125
|
+
.block-interactivity-${e} {pointer-events: none;}
|
|
126
|
+
.allow-interactivity-${e} {pointer-events: all;}
|
|
127
|
+
`},mA=0,hA=[];function gA(e){var t=L.useRef([]),n=L.useRef([0,0]),r=L.useRef(),i=L.useState(mA++)[0],a=L.useState(Rk)[0],o=L.useRef(e);L.useEffect(function(){o.current=e},[e]),L.useEffect(function(){if(e.inert){document.body.classList.add(`block-interactivity-${i}`);var t=pk([e.lockRef.current],(e.shards||[]).map(dA),!0).filter(Boolean);return t.forEach(function(e){return e.classList.add(`allow-interactivity-${i}`)}),function(){document.body.classList.remove(`block-interactivity-${i}`),t.forEach(function(e){return e.classList.remove(`allow-interactivity-${i}`)})}}},[e.inert,e.lockRef.current,e.shards]);var s=L.useCallback(function(e,t){if(`touches`in e&&e.touches.length===2||e.type===`wheel`&&e.ctrlKey)return!o.current.allowPinchZoom;var i=lA(e),a=n.current,s=`deltaX`in e?e.deltaX:a[0]-i[0],c=`deltaY`in e?e.deltaY:a[1]-i[1],l,u=e.target,d=Math.abs(s)>Math.abs(c)?`h`:`v`;if(`touches`in e&&d===`h`&&u.type===`range`)return!1;var f=window.getSelection(),p=f&&f.anchorNode;if(p&&(p===u||p.contains(u)))return!1;var m=nA(d,u);if(!m)return!0;if(m?l=d:(l=d===`v`?`h`:`v`,m=nA(d,u)),!m)return!1;if(!r.current&&`changedTouches`in e&&(s||c)&&(r.current=l),!l)return!0;var h=r.current||l;return cA(h,t,e,h===`h`?s:c,!0)},[]),c=L.useCallback(function(e){var n=e;if(!(!hA.length||hA[hA.length-1]!==a)){var r=`deltaY`in n?uA(n):lA(n),i=t.current.filter(function(e){return e.name===n.type&&(e.target===n.target||n.target===e.shadowParent)&&fA(e.delta,r)})[0];if(i&&i.should){n.cancelable&&n.preventDefault();return}if(!i){var c=(o.current.shards||[]).map(dA).filter(Boolean).filter(function(e){return e.contains(n.target)});(c.length>0?s(n,c[0]):!o.current.noIsolation)&&n.cancelable&&n.preventDefault()}}},[]),l=L.useCallback(function(e,n,r,i){var a={name:e,delta:n,target:r,should:i,shadowParent:_A(r)};t.current.push(a),setTimeout(function(){t.current=t.current.filter(function(e){return e!==a})},1)},[]),u=L.useCallback(function(e){n.current=lA(e),r.current=void 0},[]),d=L.useCallback(function(t){l(t.type,uA(t),t.target,s(t,e.lockRef.current))},[]),f=L.useCallback(function(t){l(t.type,lA(t),t.target,s(t,e.lockRef.current))},[]);L.useEffect(function(){return hA.push(a),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:f}),document.addEventListener(`wheel`,c,Zk),document.addEventListener(`touchmove`,c,Zk),document.addEventListener(`touchstart`,u,Zk),function(){hA=hA.filter(function(e){return e!==a}),document.removeEventListener(`wheel`,c,Zk),document.removeEventListener(`touchmove`,c,Zk),document.removeEventListener(`touchstart`,u,Zk)}},[]);var p=e.removeScrollBar,m=e.inert;return L.createElement(L.Fragment,null,m?L.createElement(a,{styles:pA(i)}):null,p?L.createElement(Jk,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function _A(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}var vA=Dk(Ok,gA),yA=L.forwardRef(function(e,t){return L.createElement(Ak,dk({},e,{ref:t,sideCar:vA}))});yA.classNames=Ak.classNames;var bA=`Popover`,[xA,SA]=fT(bA,[TO]),CA=TO(),[wA,TA]=xA(bA),EA=e=>{let{__scopePopover:t,children:n,open:r,defaultOpen:i,onOpenChange:a,modal:o=!1}=e,s=CA(t),c=L.useRef(null),[l,u]=L.useState(!1),[d,f]=$O({prop:r,defaultProp:i??!1,onChange:a,caller:bA});return(0,R.jsx)(VO,{...s,children:(0,R.jsx)(wA,{scope:t,contentId:oE(),triggerRef:c,open:d,onOpenChange:f,onOpenToggle:L.useCallback(()=>f(e=>!e),[f]),hasCustomAnchor:l,onCustomAnchorAdd:L.useCallback(()=>u(!0),[]),onCustomAnchorRemove:L.useCallback(()=>u(!1),[]),modal:o,children:n})})};EA.displayName=bA;var DA=`PopoverAnchor`,OA=L.forwardRef((e,t)=>{let{__scopePopover:n,...r}=e,i=TA(DA,n),a=CA(n),{onCustomAnchorAdd:o,onCustomAnchorRemove:s}=i;return L.useEffect(()=>(o(),()=>s()),[o,s]),(0,R.jsx)(HO,{...a,...r,ref:t})});OA.displayName=DA;var kA=`PopoverTrigger`,AA=L.forwardRef((e,t)=>{let{__scopePopover:n,...r}=e,i=TA(kA,n),a=CA(n),o=uT(t,i.triggerRef),s=(0,R.jsx)(xT.button,{type:`button`,"aria-haspopup":`dialog`,"aria-expanded":i.open,"aria-controls":i.contentId,"data-state":GA(i.open),...r,ref:o,onClick:sT(e.onClick,i.onOpenToggle)});return i.hasCustomAnchor?s:(0,R.jsx)(HO,{asChild:!0,...a,children:s})});AA.displayName=kA;var jA=`PopoverPortal`,[MA,NA]=xA(jA,{forceMount:void 0}),PA=e=>{let{__scopePopover:t,forceMount:n,children:r,container:i}=e,a=TA(jA,t);return(0,R.jsx)(MA,{scope:t,forceMount:n,children:(0,R.jsx)(JO,{present:n||a.open,children:(0,R.jsx)(KO,{asChild:!0,container:i,children:r})})})};PA.displayName=jA;var FA=`PopoverContent`,IA=L.forwardRef((e,t)=>{let n=NA(FA,e.__scopePopover),{forceMount:r=n.forceMount,...i}=e,a=TA(FA,e.__scopePopover);return(0,R.jsx)(JO,{present:r||a.open,children:a.modal?(0,R.jsx)(RA,{...i,ref:t}):(0,R.jsx)(zA,{...i,ref:t})})});IA.displayName=FA;var LA=mT(`PopoverContent.RemoveScroll`),RA=L.forwardRef((e,t)=>{let n=TA(FA,e.__scopePopover),r=L.useRef(null),i=uT(t,r),a=L.useRef(!1);return L.useEffect(()=>{let e=r.current;if(e)return uk(e)},[]),(0,R.jsx)(yA,{as:LA,allowPinchZoom:!0,children:(0,R.jsx)(BA,{...e,ref:i,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:sT(e.onCloseAutoFocus,e=>{e.preventDefault(),a.current||n.triggerRef.current?.focus()}),onPointerDownOutside:sT(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,n=t.button===0&&t.ctrlKey===!0;a.current=t.button===2||n},{checkForDefaultPrevented:!1}),onFocusOutside:sT(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1})})})}),zA=L.forwardRef((e,t)=>{let n=TA(FA,e.__scopePopover),r=L.useRef(!1),i=L.useRef(!1);return(0,R.jsx)(BA,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),t.defaultPrevented||(r.current||n.triggerRef.current?.focus(),t.preventDefault()),r.current=!1,i.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),t.defaultPrevented||(r.current=!0,t.detail.originalEvent.type===`pointerdown`&&(i.current=!0));let a=t.target;n.triggerRef.current?.contains(a)&&t.preventDefault(),t.detail.originalEvent.type===`focusin`&&i.current&&t.preventDefault()}})}),BA=L.forwardRef((e,t)=>{let{__scopePopover:n,trapFocus:r,onOpenAutoFocus:i,onCloseAutoFocus:a,disableOutsidePointerEvents:o,onEscapeKeyDown:s,onPointerDownOutside:c,onFocusOutside:l,onInteractOutside:u,...d}=e,f=TA(FA,n),p=CA(n);return zT(),(0,R.jsx)(GT,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:i,onUnmountAutoFocus:a,children:(0,R.jsx)(jT,{asChild:!0,disableOutsidePointerEvents:o,onInteractOutside:u,onEscapeKeyDown:s,onPointerDownOutside:c,onFocusOutside:l,onDismiss:()=>f.onOpenChange(!1),children:(0,R.jsx)(UO,{"data-state":GA(f.open),role:`dialog`,id:f.contentId,...p,...d,ref:t,style:{...d.style,"--radix-popover-content-transform-origin":`var(--radix-popper-transform-origin)`,"--radix-popover-content-available-width":`var(--radix-popper-available-width)`,"--radix-popover-content-available-height":`var(--radix-popper-available-height)`,"--radix-popover-trigger-width":`var(--radix-popper-anchor-width)`,"--radix-popover-trigger-height":`var(--radix-popper-anchor-height)`}})})})}),VA=`PopoverClose`,HA=L.forwardRef((e,t)=>{let{__scopePopover:n,...r}=e,i=TA(VA,n);return(0,R.jsx)(xT.button,{type:`button`,...r,ref:t,onClick:sT(e.onClick,()=>i.onOpenChange(!1))})});HA.displayName=VA;var UA=`PopoverArrow`,WA=L.forwardRef((e,t)=>{let{__scopePopover:n,...r}=e,i=CA(n);return(0,R.jsx)(WO,{...i,...r,ref:t})});WA.displayName=UA;function GA(e){return e?`open`:`closed`}var KA=EA,qA=OA,JA=PA,YA=IA,XA=WA;function ZA(e){let t=e+`CollectionProvider`,[n,r]=fT(t),[i,a]=n(t,{collectionRef:{current:null},itemMap:new Map}),o=e=>{let{scope:t,children:n}=e,r=L.useRef(null),a=L.useRef(new Map).current;return(0,R.jsx)(i,{scope:t,itemMap:a,collectionRef:r,children:n})};o.displayName=t;let s=e+`CollectionSlot`,c=mT(s),l=L.forwardRef((e,t)=>{let{scope:n,children:r}=e;return(0,R.jsx)(c,{ref:uT(t,a(s,n).collectionRef),children:r})});l.displayName=s;let u=e+`CollectionItemSlot`,d=`data-radix-collection-item`,f=mT(u),p=L.forwardRef((e,t)=>{let{scope:n,children:r,...i}=e,o=L.useRef(null),s=uT(t,o),c=a(u,n);return L.useEffect(()=>(c.itemMap.set(o,{ref:o,...i}),()=>void c.itemMap.delete(o))),(0,R.jsx)(f,{[d]:``,ref:s,children:r})});p.displayName=u;function m(t){let n=a(e+`CollectionConsumer`,t);return L.useCallback(()=>{let e=n.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll(`[${d}]`));return Array.from(n.itemMap.values()).sort((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current))},[n.collectionRef,n.itemMap])}return[{Provider:o,Slot:l,ItemSlot:p},m,r]}var QA=L.createContext(void 0);function $A(e){let t=L.useContext(QA);return e||t||`ltr`}var ej=`rovingFocusGroup.onEntryFocus`,tj={bubbles:!1,cancelable:!0},nj=`RovingFocusGroup`,[rj,ij,aj]=ZA(nj),[oj,sj]=fT(nj,[aj]),[cj,lj]=oj(nj),uj=L.forwardRef((e,t)=>(0,R.jsx)(rj.Provider,{scope:e.__scopeRovingFocusGroup,children:(0,R.jsx)(rj.Slot,{scope:e.__scopeRovingFocusGroup,children:(0,R.jsx)(dj,{...e,ref:t})})}));uj.displayName=nj;var dj=L.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:n,orientation:r,loop:i=!1,dir:a,currentTabStopId:o,defaultCurrentTabStopId:s,onCurrentTabStopIdChange:c,onEntryFocus:l,preventScrollOnEntryFocus:u=!1,...d}=e,f=L.useRef(null),p=uT(t,f),m=$A(a),[h,g]=$O({prop:o,defaultProp:s??null,onChange:c,caller:nj}),[_,v]=L.useState(!1),y=CT(l),b=ij(n),x=L.useRef(!1),[S,C]=L.useState(0);return L.useEffect(()=>{let e=f.current;if(e)return e.addEventListener(ej,y),()=>e.removeEventListener(ej,y)},[y]),(0,R.jsx)(cj,{scope:n,orientation:r,dir:m,loop:i,currentTabStopId:h,onItemFocus:L.useCallback(e=>g(e),[g]),onItemShiftTab:L.useCallback(()=>v(!0),[]),onFocusableItemAdd:L.useCallback(()=>C(e=>e+1),[]),onFocusableItemRemove:L.useCallback(()=>C(e=>e-1),[]),children:(0,R.jsx)(xT.div,{tabIndex:_||S===0?-1:0,"data-orientation":r,...d,ref:p,style:{outline:`none`,...e.style},onMouseDown:sT(e.onMouseDown,()=>{x.current=!0}),onFocus:sT(e.onFocus,e=>{let t=!x.current;if(e.target===e.currentTarget&&t&&!_){let t=new CustomEvent(ej,tj);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){let e=b().filter(e=>e.focusable);_j([e.find(e=>e.active),e.find(e=>e.id===h),...e].filter(Boolean).map(e=>e.ref.current),u)}}x.current=!1}),onBlur:sT(e.onBlur,()=>v(!1))})})}),fj=`RovingFocusGroupItem`,pj=L.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:n,focusable:r=!0,active:i=!1,tabStopId:a,children:o,...s}=e,c=oE(),l=a||c,u=lj(fj,n),d=u.currentTabStopId===l,f=ij(n),{onFocusableItemAdd:p,onFocusableItemRemove:m,currentTabStopId:h}=u;return L.useEffect(()=>{if(r)return p(),()=>m()},[r,p,m]),(0,R.jsx)(rj.ItemSlot,{scope:n,id:l,focusable:r,active:i,children:(0,R.jsx)(xT.span,{tabIndex:d?0:-1,"data-orientation":u.orientation,...s,ref:t,onMouseDown:sT(e.onMouseDown,e=>{r?u.onItemFocus(l):e.preventDefault()}),onFocus:sT(e.onFocus,()=>u.onItemFocus(l)),onKeyDown:sT(e.onKeyDown,e=>{if(e.key===`Tab`&&e.shiftKey){u.onItemShiftTab();return}if(e.target!==e.currentTarget)return;let t=gj(e,u.orientation,u.dir);if(t!==void 0){if(e.metaKey||e.ctrlKey||e.altKey||e.shiftKey)return;e.preventDefault();let n=f().filter(e=>e.focusable).map(e=>e.ref.current);if(t===`last`)n.reverse();else if(t===`prev`||t===`next`){t===`prev`&&n.reverse();let r=n.indexOf(e.currentTarget);n=u.loop?vj(n,r+1):n.slice(r+1)}setTimeout(()=>_j(n))}}),children:typeof o==`function`?o({isCurrentTabStop:d,hasTabStop:h!=null}):o})})});pj.displayName=fj;var mj={ArrowLeft:`prev`,ArrowUp:`prev`,ArrowRight:`next`,ArrowDown:`next`,PageUp:`first`,Home:`first`,PageDown:`last`,End:`last`};function hj(e,t){return t===`rtl`?e===`ArrowLeft`?`ArrowRight`:e===`ArrowRight`?`ArrowLeft`:e:e}function gj(e,t,n){let r=hj(e.key,n);if(!(t===`vertical`&&[`ArrowLeft`,`ArrowRight`].includes(r))&&!(t===`horizontal`&&[`ArrowUp`,`ArrowDown`].includes(r)))return mj[r]}function _j(e,t=!1){let n=document.activeElement;for(let r of e)if(r===n||(r.focus({preventScroll:t}),document.activeElement!==n))return}function vj(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var yj=uj,bj=pj,xj=`Separator`,Sj=`horizontal`,Cj=[`horizontal`,`vertical`],wj=L.forwardRef((e,t)=>{let{decorative:n,orientation:r=Sj,...i}=e,a=Tj(r)?r:Sj,o=n?{role:`none`}:{"aria-orientation":a===`vertical`?a:void 0,role:`separator`};return(0,R.jsx)(xT.div,{"data-orientation":a,...o,...i,ref:t})});wj.displayName=xj;function Tj(e){return Cj.includes(e)}var Ej=wj,Dj=`Toggle`,Oj=L.forwardRef((e,t)=>{let{pressed:n,defaultPressed:r,onPressedChange:i,...a}=e,[o,s]=$O({prop:n,onChange:i,defaultProp:r??!1,caller:Dj});return(0,R.jsx)(xT.button,{type:`button`,"aria-pressed":o,"data-state":o?`on`:`off`,"data-disabled":e.disabled?``:void 0,...a,ref:t,onClick:sT(e.onClick,()=>{e.disabled||s(!o)})})});Oj.displayName=Dj;var kj=`ToggleGroup`,[Aj,jj]=fT(kj,[sj]),Mj=sj(),Nj=L.forwardRef((e,t)=>{let{type:n,...r}=e;if(n===`single`)return(0,R.jsx)(Ij,{...r,ref:t});if(n===`multiple`)return(0,R.jsx)(Lj,{...r,ref:t});throw Error(`Missing prop \`type\` expected on \`${kj}\``)});Nj.displayName=kj;var[Pj,Fj]=Aj(kj),Ij=L.forwardRef((e,t)=>{let{value:n,defaultValue:r,onValueChange:i=()=>{},...a}=e,[o,s]=$O({prop:n,defaultProp:r??``,onChange:i,caller:kj});return(0,R.jsx)(Pj,{scope:e.__scopeToggleGroup,type:`single`,value:L.useMemo(()=>o?[o]:[],[o]),onItemActivate:s,onItemDeactivate:L.useCallback(()=>s(``),[s]),children:(0,R.jsx)(Bj,{...a,ref:t})})}),Lj=L.forwardRef((e,t)=>{let{value:n,defaultValue:r,onValueChange:i=()=>{},...a}=e,[o,s]=$O({prop:n,defaultProp:r??[],onChange:i,caller:kj}),c=L.useCallback(e=>s((t=[])=>[...t,e]),[s]),l=L.useCallback(e=>s((t=[])=>t.filter(t=>t!==e)),[s]);return(0,R.jsx)(Pj,{scope:e.__scopeToggleGroup,type:`multiple`,value:o,onItemActivate:c,onItemDeactivate:l,children:(0,R.jsx)(Bj,{...a,ref:t})})});Nj.displayName=kj;var[Rj,zj]=Aj(kj),Bj=L.forwardRef((e,t)=>{let{__scopeToggleGroup:n,disabled:r=!1,rovingFocus:i=!0,orientation:a,dir:o,loop:s=!0,...c}=e,l=Mj(n),u=$A(o),d={role:`group`,dir:u,...c};return(0,R.jsx)(Rj,{scope:n,rovingFocus:i,disabled:r,children:i?(0,R.jsx)(yj,{asChild:!0,...l,orientation:a,dir:u,loop:s,children:(0,R.jsx)(xT.div,{...d,ref:t})}):(0,R.jsx)(xT.div,{...d,ref:t})})}),Vj=`ToggleGroupItem`,Hj=L.forwardRef((e,t)=>{let n=Fj(Vj,e.__scopeToggleGroup),r=zj(Vj,e.__scopeToggleGroup),i=Mj(e.__scopeToggleGroup),a=n.value.includes(e.value),o=r.disabled||e.disabled,s={...e,pressed:a,disabled:o},c=L.useRef(null);return r.rovingFocus?(0,R.jsx)(bj,{asChild:!0,...i,focusable:!o,active:a,ref:c,children:(0,R.jsx)(Uj,{...s,ref:t})}):(0,R.jsx)(Uj,{...s,ref:t})});Hj.displayName=Vj;var Uj=L.forwardRef((e,t)=>{let{__scopeToggleGroup:n,value:r,...i}=e,a=Fj(Vj,n),o={role:`radio`,"aria-checked":e.pressed,"aria-pressed":void 0};return(0,R.jsx)(Oj,{...a.type===`single`?o:void 0,...i,ref:t,onPressedChange:e=>{e?a.onItemActivate(r):a.onItemDeactivate(r)}})}),Wj=Nj,Gj=Hj,Kj=`Toolbar`,[qj,Jj]=fT(Kj,[sj,jj]),Yj=sj(),Xj=jj(),[Zj,Qj]=qj(Kj),$j=L.forwardRef((e,t)=>{let{__scopeToolbar:n,orientation:r=`horizontal`,dir:i,loop:a=!0,...o}=e,s=Yj(n),c=$A(i);return(0,R.jsx)(Zj,{scope:n,orientation:r,dir:c,children:(0,R.jsx)(yj,{asChild:!0,...s,orientation:r,dir:c,loop:a,children:(0,R.jsx)(xT.div,{role:`toolbar`,"aria-orientation":r,dir:c,...o,ref:t})})})});$j.displayName=Kj;var eM=`ToolbarSeparator`,tM=L.forwardRef((e,t)=>{let{__scopeToolbar:n,...r}=e,i=Qj(eM,n);return(0,R.jsx)(Ej,{orientation:i.orientation===`horizontal`?`vertical`:`horizontal`,...r,ref:t})});tM.displayName=eM;var nM=`ToolbarButton`,rM=L.forwardRef((e,t)=>{let{__scopeToolbar:n,...r}=e,i=Yj(n);return(0,R.jsx)(bj,{asChild:!0,...i,focusable:!e.disabled,children:(0,R.jsx)(xT.button,{type:`button`,...r,ref:t})})});rM.displayName=nM;var iM=`ToolbarLink`,aM=L.forwardRef((e,t)=>{let{__scopeToolbar:n,...r}=e,i=Yj(n);return(0,R.jsx)(bj,{asChild:!0,...i,focusable:!0,children:(0,R.jsx)(xT.a,{...r,ref:t,onKeyDown:sT(e.onKeyDown,e=>{e.key===` `&&e.currentTarget.click()})})})});aM.displayName=iM;var oM=`ToolbarToggleGroup`,sM=L.forwardRef((e,t)=>{let{__scopeToolbar:n,...r}=e,i=Qj(oM,n),a=Xj(n);return(0,R.jsx)(Wj,{"data-orientation":i.orientation,dir:i.dir,...a,...r,ref:t,rovingFocus:!1})});sM.displayName=oM;var cM=`ToolbarToggleItem`,lM=L.forwardRef((e,t)=>{let{__scopeToolbar:n,...r}=e,i=Xj(n);return(0,R.jsx)(rM,{asChild:!0,__scopeToolbar:e.__scopeToolbar,children:(0,R.jsx)(Gj,{...i,...r,ref:t})})});lM.displayName=cM;var uM=$j,dM=tM,fM=rM,pM=sM,mM=lM;function hM(e,t){return e===null||e===t?!1:e.dataset.editorDialog!==void 0||e.dataset.toolbarItem!==void 0||e.dataset.editorDropdown?!0:hM(e.parentElement,t)}function gM(){let e=[...Array(256).keys()].map(e=>e.toString(16).padStart(2,`0`)),t=crypto.getRandomValues(new Uint8Array(16));return t[6]=t[6]&15|64,t[8]=t[8]&63|128,[...t.entries()].map(([t,n])=>[4,6,8,10].includes(t)?`-${e[n]}`:e[n]).join(``)}var _M=e=>e===0?`th`:`td`,vM={center:J.centeredCell,left:J.leftAlignedCell,right:J.rightAlignedCell},yM=({mdastNode:e,parentEditor:t,lexicalTable:n})=>{let[r,i]=L.useState(null),[a,o]=Sn(xx,Mb),s=L.useMemo(()=>e=>(e.__cacheKey??=gM(),e.__cacheKey),[]),c=L.useCallback(e=>{let r=n.getColCount();if(e===null){i(null);return}let[a,o]=e;if(a>r-1&&(a=0,o++),a<0&&(a=r-1,--o),o>n.getRowCount()-1){i(null),t.update(()=>{if(n.getLatest().getNextSibling())n.getLatest().selectNext();else{let e=zs();n.insertAfter(e),e.select()}});return}if(o<0){i(null),t.update(()=>{n.getLatest().selectPrevious()});return}i([a,o])},[n,t]);L.useEffect(()=>{n.focusEmitter.subscribe(c)},[n,c]);let l=L.useCallback(e=>{e.preventDefault(),t.update(()=>{n.addRowToBottom(),i([0,n.getRowCount()])})},[t,n]),u=L.useCallback(e=>{e.preventDefault(),t.update(()=>{n.addColumnToRight(),i([n.getColCount(),0])})},[t,n]),[d,f]=L.useState([-1,-1]),p=L.useCallback(e=>{let t=e.target;for(;t&&![`TH`,`TD`].includes(t.tagName);){if(t===e.currentTarget)return;t=t.parentElement}if(t===null)return;let n=t.parentElement;f([n.parentElement.tagName===`TFOOT`?-1:Array.from(n.children).indexOf(t),t.tagName===`TH`?-1:Array.from(n.parentElement.children).indexOf(n)])},[]),m=Xx();return L.createElement(`table`,{className:J.tableEditor,onMouseOver:p,onMouseLeave:()=>{f([-1,-1])}},L.createElement(`colgroup`,null,o?null:L.createElement(`col`,null),Array.from({length:e.children[0].children.length},(t,n)=>{let r=vM[(e.align??[])[n]??`left`];return L.createElement(`col`,{key:n,className:r})}),o?null:L.createElement(`col`,null)),o||L.createElement(`thead`,null,L.createElement(`tr`,null,L.createElement(`th`,{className:J.tableToolsColumn}),Array.from({length:e.children[0].children.length},(r,i)=>L.createElement(`th`,{key:i,"data-tool-cell":!0},L.createElement(SM,{setActiveCellWithBoundaries:c,parentEditor:t,colIndex:i,highlightedCoordinates:d,lexicalTable:n,align:(e.align??[])[i]}))),L.createElement(`th`,{className:J.tableToolsColumn,"data-tool-cell":!0},L.createElement(`button`,{className:J.iconButton,type:`button`,title:m(`table.deleteTable`,`Delete table`),onClick:e=>{e.preventDefault(),t.update(()=>{n.selectNext(),n.remove()})}},a(`delete_small`))))),L.createElement(`tbody`,null,e.children.map((i,l)=>{let f=_M(l);return L.createElement(`tr`,{key:l},o||L.createElement(f,{className:J.toolCell,"data-tool-cell":!0},L.createElement(CM,{setActiveCellWithBoundaries:c,parentEditor:t,rowIndex:l,highlightedCoordinates:d,lexicalTable:n})),i.children.map((i,a)=>L.createElement(bM,{align:e.align?.[a],key:s(i),contents:i.children,setActiveCell:c,rowIndex:l,colIndex:a,lexicalTable:n,parentEditor:t,activeCell:o?[-1,-1]:r})),o||l===0&&L.createElement(`th`,{rowSpan:n.getRowCount(),"data-tool-cell":!0},L.createElement(`button`,{type:`button`,className:J.addColumnButton,onClick:u},a(`add_column`))))})),o||L.createElement(`tfoot`,null,L.createElement(`tr`,null,L.createElement(`th`,null),L.createElement(`th`,{colSpan:n.getColCount(),"data-tool-cell":!0},L.createElement(`button`,{type:`button`,className:J.addRowButton,onClick:l},a(`add_row`))),L.createElement(`th`,null))))},bM=({align:e,...t})=>{let{activeCell:n,setActiveCell:r}=t,i=!!(n&&n[0]===t.colIndex&&n[1]===t.rowIndex),a=vM[e??`left`],o=_M(t.rowIndex);return L.createElement(o,{className:a,"data-active":i,onClick:()=>{r([t.colIndex,t.rowIndex])}},L.createElement(xM,{...t,focus:i}))},xM=({focus:e,setActiveCell:t,parentEditor:n,lexicalTable:r,contents:i,colIndex:a,rowIndex:o})=>{let[s,c,l,u,d,f,p,m,h]=Sn(Kb,Xb,qb,ex,tx,nx,$b,Ob,Ix),[g]=L.useState(()=>{let e=Hs({nodes:l,theme:Eb,namespace:`TableCellEditor`});return e.update(()=>{Yy({root:bc(),mdastRoot:{type:`root`,children:[{type:`paragraph`,children:i}]},visitors:s,jsxComponentDescriptors:u,directiveDescriptors:d,codeBlockEditorDescriptors:f})}),e}),_=L.useCallback(e=>{g.getEditorState().read(()=>{let e=f_({root:bc(),jsxComponentDescriptors:u,visitors:c,jsxIsAvailable:p});n.update(()=>{r.updateCellContents(a,o,e.children[0].children)},{discrete:!0}),n.dispatchCommand(Db,void 0)}),t(e)},[a,g,c,u,p,r,n,o,t]);return L.useEffect(()=>Ku(g.registerCommand(Zi,e=>(e.preventDefault(),_(e.shiftKey?[a-1,o]:[a+1,o]),!0),4),g.registerCommand(pa,()=>(t([a,o]),!1),1),g.registerCommand(Ki,e=>(e?.preventDefault(),_(e?.shiftKey?[a,o-1]:[a,o+1]),!0),4),g.registerCommand(ma,e=>{let t=e.relatedTarget;return hM(t,m.getRootElement())?!1:(_(null),!0)},0),g.registerCommand(Db,()=>(_(null),!0),0)),[a,g,m,o,_,t]),L.useEffect(()=>{e&&g.focus()},[e,g]),L.createElement(oT,{initialEditor:g},L.createElement(yS,{contentEditable:L.createElement(aS,null),placeholder:L.createElement(`div`,null),ErrorBoundary:dS}),h.map((e,t)=>L.createElement(e,{key:t})),L.createElement(xd,null))},SM=({parentEditor:e,highlightedCoordinates:t,align:n,lexicalTable:r,colIndex:i,setActiveCellWithBoundaries:a})=>{let[o,s]=Sn(rx,xx),c=L.useCallback(t=>{e.update(()=>{r.insertColumnAt(t)}),a([t,0])},[e,r,a]),l=L.useCallback(t=>{e.update(()=>{r.deleteColumnAt(t)})},[e,r]),u=L.useCallback((t,n)=>{e.update(()=>{r.setColumnAlign(t,n)})},[e,r]),d=Xx();return L.createElement(KA,null,L.createElement(AA,{className:J.tableColumnEditorTrigger,"data-active":t[0]===i+1,title:d(`table.columnMenu`,`Column menu`)},s(`more_horiz`)),L.createElement(JA,{container:o?.current},L.createElement(IA,{className:(0,jC.default)(J.tableColumnEditorPopoverContent),onOpenAutoFocus:e=>{e.preventDefault()},sideOffset:5,side:`top`},L.createElement(uM,{className:J.tableColumnEditorToolbar},L.createElement(pM,{className:J.toggleGroupRoot,onValueChange:e=>{u(i,e)},value:n??`left`,type:`single`,"aria-label":d(`table.textAlignment`,`Text alignment`)},L.createElement(mM,{value:`left`,title:d(`table.alignLeft`,`Align left`)},s(`format_align_left`)),L.createElement(mM,{value:`center`,title:d(`table.alignCenter`,`Align center`)},s(`format_align_center`)),L.createElement(mM,{value:`right`,title:d(`table.alignRight`,`Align right`)},s(`format_align_right`))),L.createElement(dM,null),L.createElement(fM,{onClick:c.bind(null,i),title:d(`table.insertColumnLeft`,`Insert a column to the left of this one`)},s(`insert_col_left`)),L.createElement(fM,{onClick:c.bind(null,i+1),title:d(`table.insertColumnRight`,`Insert a column to the right of this one`)},s(`insert_col_right`)),L.createElement(fM,{onClick:l.bind(null,i),title:d(`table.deleteColumn`,`Delete this column`)},s(`delete_small`))),L.createElement(XA,{className:J.popoverArrow}))))},CM=({parentEditor:e,highlightedCoordinates:t,lexicalTable:n,rowIndex:r,setActiveCellWithBoundaries:i})=>{let[a,o]=Sn(rx,xx),s=L.useCallback(t=>{e.update(()=>{n.insertRowAt(t)}),i([0,t])},[e,n,i]),c=L.useCallback(t=>{e.update(()=>{n.deleteRowAt(t)})},[e,n]),l=Xx();return L.createElement(KA,null,L.createElement(AA,{className:J.tableColumnEditorTrigger,"data-active":t[1]===r,title:l(`table.rowMenu`,`Row menu`)},o(`more_horiz`)),L.createElement(JA,{container:a?.current},L.createElement(IA,{className:(0,jC.default)(J.tableColumnEditorPopoverContent),onOpenAutoFocus:e=>{e.preventDefault()},sideOffset:5,side:`bottom`},L.createElement(uM,{className:J.tableColumnEditorToolbar},L.createElement(fM,{onClick:s.bind(null,r),title:l(`table.insertRowAbove`,`Insert a row above this one`)},o(`insert_row_above`)),L.createElement(fM,{onClick:s.bind(null,r+1),title:l(`table.insertRowBelow`,`Insert a row below this one`)},o(`insert_row_below`)),L.createElement(fM,{onClick:c.bind(null,r),title:l(`table.deleteRow`,`Delete this row`)},o(`delete_small`))),L.createElement(XA,{className:J.popoverArrow}))))},wM=Object.defineProperty,TM=(e,t,n)=>t in e?wM(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,EM=(e,t,n)=>(TM(e,typeof t==`symbol`?t:t+``,n),n),DM={type:`tableCell`,children:[]};function OM(){let e=An;return{publish:t=>{e(t)},subscribe:t=>{e=t}}}var kM=class e extends Es{constructor(e,t){super(t),EM(this,`__mdastNode`),EM(this,`focusEmitter`,OM()),this.__mdastNode=e??{type:`table`,children:[]}}static getType(){return`table`}static clone(t){return new e(structuredClone(t.__mdastNode),t.__key)}static importJSON(e){return jM(e.mdastNode)}static importDOM(){return{table:()=>({conversion:MM,priority:3})}}exportJSON(){return{mdastNode:structuredClone(this.__mdastNode),type:`table`,version:1}}getMdastNode(){return this.__mdastNode}getRowCount(){return this.__mdastNode.children.length}getColCount(){return this.__mdastNode.children[0]?.children.length||0}createDOM(){return document.createElement(`div`)}updateDOM(){return!1}updateCellContents(e,t,n){let r=this.getWritable().__mdastNode,i=r.children[t],a=i.children,o=a[e],s=Array.from(a),c={...o,children:n},l={...i,children:s};s[e]=c,r.children[t]=l}insertColumnAt(e){let t=this.getWritable().__mdastNode;for(let n=0;n<t.children.length;n++){let r=t.children[n],i=r.children,a=Array.from(i),o={...r,children:a};a.splice(e,0,structuredClone(DM)),t.children[n]=o}t.align&&t.align.length>0&&t.align.splice(e,0,`left`)}deleteColumnAt(e){let t=this.getWritable().__mdastNode;for(let n=0;n<t.children.length;n++){let r=t.children[n],i=r.children,a=Array.from(i),o={...r,children:a};a.splice(e,1),t.children[n]=o}}insertRowAt(e){let t=this.getWritable().__mdastNode,n={type:`tableRow`,children:Array.from({length:this.getColCount()},()=>structuredClone(DM))};t.children.splice(e,0,n)}deleteRowAt(e){this.getRowCount()===1?(this.selectNext(),this.remove()):this.getWritable().__mdastNode.children.splice(e,1)}addRowToBottom(){this.insertRowAt(this.getRowCount())}addColumnToRight(){this.insertColumnAt(this.getColCount())}setColumnAlign(e,t){let n=this.getWritable().__mdastNode;n.align??=[],n.align[e]=t}decorate(e){return L.createElement(yM,{lexicalTable:this,mdastNode:this.__mdastNode,parentEditor:e})}select(e){this.focusEmitter.publish(e??[0,0])}isInline(){return!1}};function AM(e){return e instanceof kM}function jM(e){return new kM(e)}function MM(e){let t=e.querySelectorAll(`tr`);return{node:new kM({type:`table`,children:Array.from(t).map(e=>({type:`tableRow`,children:Array.from(e.querySelectorAll(`td, th`)).map(e=>({type:`tableCell`,children:[{type:`text`,value:e.textContent}]}))}))})}}var NM={testLexicalNode:AM,visitLexicalNode({actions:e,mdastParent:t,lexicalNode:n}){e.appendToParent(t,n.getMdastNode())}},PM={testNode:`table`,visitNode({mdastNode:e,lexicalParent:t}){t.append(jM(e))}};function FM(e=1,t=1){let n={type:`table`,children:[]};for(let r=0;r<e;r++){let e={type:`tableRow`,children:[]};for(let n=0;n<t;n++)e.children.push({type:`tableCell`,children:[]});n.children.push(e)}return n}var IM=_n(e=>{e.link(e.pipe(IM,wn(({rows:e,columns:t})=>()=>jM(FM(e,t)))),Hx)}),LM=jn({init(e,t){e.pubIn({[lx]:Lw(),[cx]:Yw(),[sx]:PM,[ox]:kM,[ux]:NM,[dx]:Gw({tableCellPadding:t?.tableCellPadding??!0,tablePipeAlign:t?.tablePipeAlign??!0})})}}),RM={testNode:`link`,visitNode({mdastNode:e,actions:t}){t.addAndStepInto(ES(e.url,{title:e.title}))}},zM={testLexicalNode:DS,visitLexicalNode:({lexicalNode:e,actions:t})=>{t.addAndStepInto(`link`,{url:e.getURL(),title:e.getTitle()})}};function BM({validateUrl:e,attributes:t}){let[n]=Fn();return(0,L.useEffect)((()=>{if(!n.hasNodes([wS]))throw Error(`LinkPlugin: LinkNode not registered on editor`);return Ku(n.registerCommand(jS,(n=>{if(n===null)return NS(n),!0;if(typeof n==`string`)return!(e!==void 0&&!e(n))&&(NS(n,t),!0);{let{url:e,target:r,rel:i,title:a}=n;return NS(e,{...t,rel:i,target:r,title:a}),!0}}),1),e===void 0?()=>{}:n.registerCommand(Mi,(r=>{let i=W();if(!U(i)||i.isCollapsed()||!id(r,ClipboardEvent)||r.clipboardData===null)return!1;let a=r.clipboardData.getData(`text`);return!!e(a)&&!i.getNodes().some((e=>G(e)))&&(n.dispatchCommand(jS,{...t,url:a}),r.preventDefault(),!0)}),1))}),[n,e,t]),null}function VM(e,t=(e=>e)){return n=>{let r=e.exec(n);return r===null?null:{index:r.index,length:r[0].length,text:r[0],url:t(r[0])}}}function HM(e,t){for(let n=0;n<t.length;n++){let r=t[n](e);if(r)return r}return null}var UM=/[.,;\s]/;function WM(e){return UM.test(e)}function GM(e){return WM(e[e.length-1])}function KM(e){return WM(e[0])}function qM(e){let t=e.getPreviousSibling();return G(t)&&(t=t.getLastDescendant()),t===null||Za(t)||H(t)&&GM(t.getTextContent())}function JM(e){let t=e.getNextSibling();return G(t)&&(t=t.getFirstDescendant()),t===null||Za(t)||H(t)&&KM(t.getTextContent())}function YM(e,t,n,r){return(e>0?WM(n[e-1]):qM(r[0]))?t<n.length?WM(n[t]):JM(r[r.length-1]):!1}function XM(e,t,n){let r=[],i=[],a=[],o=0,s=0,c=[...e];for(;c.length>0;){let e=c[0],l=e.getTextContent().length,u=s;s+l<=t?(r.push(e),o+=l):u>=n?a.push(e):i.push(e),s+=l,c.shift()}return[o,r,i,a]}function ZM(e,t,n,r){let i=kS(r.url,r.attributes);if(e.length===1){let a,o=e[0];t===0?[a,o]=o.splitText(n):[,a,o]=o.splitText(t,n);let s=ho(r.text);return s.setFormat(a.getFormat()),s.setDetail(a.getDetail()),s.setStyle(a.getStyle()),i.append(s),a.replace(i),o}if(e.length>1){let r=e[0],a,o=r.getTextContent().length;t===0?a=r:[,a]=r.splitText(t);let s=[],c;for(let t=1;t<e.length;t++){let r=e[t],i=r.getTextContent().length,a=o;if(a<n)if(o+i<=n)s.push(r);else{let[e,t]=r.splitText(n-a);s.push(e),c=t}o+=i}let l=W(),u=l?l.getNodes().find(H):void 0,d=ho(a.getTextContent());return d.setFormat(a.getFormat()),d.setDetail(a.getDetail()),d.setStyle(a.getStyle()),i.append(d,...s),u&&u===a&&(U(l)?d.select(l.anchor.offset,l.focus.offset):Eo(l)&&d.select(0,d.getTextContent().length)),a.replace(i),c}}function QM(e,t,n){let r=e.getChildren(),i=r.length;for(let t=0;t<i;t++){let i=r[t];if(!H(i)||!i.isSimpleText())return $M(e),void n(null,e.getURL())}let a=e.getTextContent(),o=HM(a,t);if(o===null||o.text!==a||!qM(e)||!JM(e))return $M(e),void n(null,e.getURL());let s=e.getURL();if(s!==o.url&&(e.setURL(o.url),n(o.url,s)),o.attributes){let t=e.getRel();t!==o.attributes.rel&&(e.setRel(o.attributes.rel||null),n(o.attributes.rel||null,t));let r=e.getTarget();r!==o.attributes.target&&(e.setTarget(o.attributes.target||null),n(o.attributes.target||null,r))}}function $M(e){let t=e.getChildren();for(let n=t.length-1;n>=0;n--)e.insertAfter(t[n]);return e.remove(),t.map((e=>e.getLatest()))}function eN(e,t,n){(0,L.useEffect)((()=>{e.hasNodes([OS])||function(e,...t){let n=new URL(`https://lexical.dev/docs/error`),r=new URLSearchParams;r.append(`code`,e);for(let e of t)r.append(`v`,e);throw n.search=r.toString(),Error(`Minified Lexical error #${e}; visit ${n.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}(77);let r=(e,t)=>{n&&n(e,t)};return Ku(e.registerNodeTransform(ao,(e=>{let n=e.getParentOrThrow(),i=e.getPreviousSibling();AS(n)&&!n.getIsUnlinked()?QM(n,t,r):DS(n)||(e.isSimpleText()&&(KM(e.getTextContent())||!AS(i))&&(function(e,t,n){let r=[...e],i=r.map((e=>e.getTextContent())).join(``),a,o=i,s=0;for(;(a=HM(o,t))&&a!==null;){let e=a.index,t=e+a.length;if(YM(s+e,s+t,i,r)){let[i,,o,c]=XM(r,s+e,s+t),l=ZM(o,s+e-i,s+t-i,a);r=l?[l,...c]:c,n(a.url,null),s=0}else s+=t;o=o.substring(t)}})(function(e){let t=[e],n=e.getNextSibling();for(;n!==null&&H(n)&&n.isSimpleText()&&(t.push(n),!/[\s]/.test(n.getTextContent()));)n=n.getNextSibling();return t}(e),t,r),(function(e,t,n){let r=e.getPreviousSibling(),i=e.getNextSibling(),a=e.getTextContent();var o;!AS(r)||r.getIsUnlinked()||KM(a)&&(o=a,!(r.isEmailURI()?/^\.[a-zA-Z]{2,}/.test(o):/^\.[a-zA-Z0-9]{1,}/.test(o)))||(r.append(e),QM(r,t,n),n(null,r.getURL())),!AS(i)||i.getIsUnlinked()||GM(a)||($M(i),QM(i,t,n),n(null,i.getURL()))})(e,t,r))})),e.registerCommand(jS,(e=>{let t=W();return e!==null||!U(t)||t.extract().forEach((e=>{let t=e.getParent();AS(t)&&(t.setIsUnlinked(!t.getIsUnlinked()),t.markDirty())})),!1}),1))}),[e,t,n])}function tN({matchers:e,onChange:t}){let[n]=Fn();return eN(n,e,t),null}var nN=[VM(/((https?:\/\/(www\.)?)|(www\.))[-a-zA-Z0-9@:%._+~#=]{1,256}\.[a-zA-Z0-9()]{1,6}\b([-a-zA-Z0-9()@:%_+.~#?&//=]*)/,e=>e.startsWith(`http`)?e:`https://${e}`),VM(/(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))/,e=>`mailto:${e}`)],rN=()=>L.createElement(tN,{matchers:nN}),iN=z(!1),aN=jn({init(e,t){let n=!!t?.disableAutoLink,r=t?.validateUrl?{validateUrl:t.validateUrl}:{},i=()=>L.createElement(L.Fragment,null,L.createElement(BM,{...r}),n?null:L.createElement(rN,null));e.pubIn({[Kx]:`link`,[sx]:RM,[ox]:[wS,OS],[ux]:zM,[iN]:n,[Fx]:i,[Lx]:i,[Ox]:i})}});function oN(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var sN=[`color`],cN=(0,L.forwardRef)(function(e,t){var n=e.color,r=n===void 0?`currentColor`:n,i=oN(e,sN);return(0,L.createElement)(`svg`,Object.assign({width:`15`,height:`15`,viewBox:`0 0 15 15`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},i,{ref:t}),(0,L.createElement)(`path`,{d:`M2.5 1H12.5C13.3284 1 14 1.67157 14 2.5V12.5C14 13.3284 13.3284 14 12.5 14H2.5C1.67157 14 1 13.3284 1 12.5V2.5C1 1.67157 1.67157 1 2.5 1ZM2.5 2C2.22386 2 2 2.22386 2 2.5V8.3636L3.6818 6.6818C3.76809 6.59551 3.88572 6.54797 4.00774 6.55007C4.12975 6.55216 4.24568 6.60372 4.32895 6.69293L7.87355 10.4901L10.6818 7.6818C10.8575 7.50607 11.1425 7.50607 11.3182 7.6818L13 9.3636V2.5C13 2.22386 12.7761 2 12.5 2H2.5ZM2 12.5V9.6364L3.98887 7.64753L7.5311 11.4421L8.94113 13H2.5C2.22386 13 2 12.7761 2 12.5ZM12.5 13H10.155L8.48336 11.153L11 8.6364L13 10.6364V12.5C13 12.7761 12.7761 13 12.5 13ZM6.64922 5.5C6.64922 5.03013 7.03013 4.64922 7.5 4.64922C7.96987 4.64922 8.35078 5.03013 8.35078 5.5C8.35078 5.96987 7.96987 6.35078 7.5 6.35078C7.03013 6.35078 6.64922 5.96987 6.64922 5.5ZM7.5 3.74922C6.53307 3.74922 5.74922 4.53307 5.74922 5.5C5.74922 6.46693 6.53307 7.25078 7.5 7.25078C8.46693 7.25078 9.25078 6.46693 9.25078 5.5C9.25078 4.53307 8.46693 3.74922 7.5 3.74922Z`,fill:r,fillRule:`evenodd`,clipRule:`evenodd`}))}),lN=()=>L.createElement(`div`,{className:J.imagePlaceholder},L.createElement(cN,null));function uN(e){let{nodeKey:t,imageSource:n,initialImagePath:r,title:i,alt:a,width:o,height:s}=e,[c,l,u]=Sn(sz,xx,Mb),[d]=Fn(),f=Cn(az),p=Xx();return L.createElement(`div`,{className:J.editImageToolbar},L.createElement(`button`,{className:J.iconButton,type:`button`,title:p(`imageEditor.deleteImage`,`Delete image`),disabled:u,onClick:e=>{e.preventDefault(),d.update(()=>{var e;(e=mc(t))==null||e.remove()})}},l(`delete_small`)),!c&&L.createElement(`button`,{type:`button`,className:(0,jC.default)(J.iconButton,J.editImageButton),title:p(`imageEditor.editImage`,`Edit image`),disabled:u,onClick:()=>{f({nodeKey:t,initialValues:{src:r??n,title:i,altText:a,width:dz(o),height:dz(s)}})}},l(`settings`)))}var dN=`Dialog`,[fN,pN]=fT(dN),[mN,hN]=fN(dN),gN=e=>{let{__scopeDialog:t,children:n,open:r,defaultOpen:i,onOpenChange:a,modal:o=!0}=e,s=L.useRef(null),c=L.useRef(null),[l,u]=$O({prop:r,defaultProp:i??!1,onChange:a,caller:dN});return(0,R.jsx)(mN,{scope:t,triggerRef:s,contentRef:c,contentId:oE(),titleId:oE(),descriptionId:oE(),open:l,onOpenChange:u,onOpenToggle:L.useCallback(()=>u(e=>!e),[u]),modal:o,children:n})};gN.displayName=dN;var _N=`DialogTrigger`,vN=L.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,i=hN(_N,n),a=uT(t,i.triggerRef);return(0,R.jsx)(xT.button,{type:`button`,"aria-haspopup":`dialog`,"aria-expanded":i.open,"aria-controls":i.contentId,"data-state":RN(i.open),...r,ref:a,onClick:sT(e.onClick,i.onOpenToggle)})});vN.displayName=_N;var yN=`DialogPortal`,[bN,xN]=fN(yN,{forceMount:void 0}),SN=e=>{let{__scopeDialog:t,forceMount:n,children:r,container:i}=e,a=hN(yN,t);return(0,R.jsx)(bN,{scope:t,forceMount:n,children:L.Children.map(r,e=>(0,R.jsx)(JO,{present:n||a.open,children:(0,R.jsx)(KO,{asChild:!0,container:i,children:e})}))})};SN.displayName=yN;var CN=`DialogOverlay`,wN=L.forwardRef((e,t)=>{let n=xN(CN,e.__scopeDialog),{forceMount:r=n.forceMount,...i}=e,a=hN(CN,e.__scopeDialog);return a.modal?(0,R.jsx)(JO,{present:r||a.open,children:(0,R.jsx)(EN,{...i,ref:t})}):null});wN.displayName=CN;var TN=mT(`DialogOverlay.RemoveScroll`),EN=L.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,i=hN(CN,n);return(0,R.jsx)(yA,{as:TN,allowPinchZoom:!0,shards:[i.contentRef],children:(0,R.jsx)(xT.div,{"data-state":RN(i.open),...r,ref:t,style:{pointerEvents:`auto`,...r.style}})})}),DN=`DialogContent`,ON=L.forwardRef((e,t)=>{let n=xN(DN,e.__scopeDialog),{forceMount:r=n.forceMount,...i}=e,a=hN(DN,e.__scopeDialog);return(0,R.jsx)(JO,{present:r||a.open,children:a.modal?(0,R.jsx)(kN,{...i,ref:t}):(0,R.jsx)(AN,{...i,ref:t})})});ON.displayName=DN;var kN=L.forwardRef((e,t)=>{let n=hN(DN,e.__scopeDialog),r=L.useRef(null),i=uT(t,n.contentRef,r);return L.useEffect(()=>{let e=r.current;if(e)return uk(e)},[]),(0,R.jsx)(jN,{...e,ref:i,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:sT(e.onCloseAutoFocus,e=>{e.preventDefault(),n.triggerRef.current?.focus()}),onPointerDownOutside:sT(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,n=t.button===0&&t.ctrlKey===!0;(t.button===2||n)&&e.preventDefault()}),onFocusOutside:sT(e.onFocusOutside,e=>e.preventDefault())})}),AN=L.forwardRef((e,t)=>{let n=hN(DN,e.__scopeDialog),r=L.useRef(!1),i=L.useRef(!1);return(0,R.jsx)(jN,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),t.defaultPrevented||(r.current||n.triggerRef.current?.focus(),t.preventDefault()),r.current=!1,i.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),t.defaultPrevented||(r.current=!0,t.detail.originalEvent.type===`pointerdown`&&(i.current=!0));let a=t.target;n.triggerRef.current?.contains(a)&&t.preventDefault(),t.detail.originalEvent.type===`focusin`&&i.current&&t.preventDefault()}})}),jN=L.forwardRef((e,t)=>{let{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:i,onCloseAutoFocus:a,...o}=e,s=hN(DN,n),c=L.useRef(null),l=uT(t,c);return zT(),(0,R.jsxs)(R.Fragment,{children:[(0,R.jsx)(GT,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:i,onUnmountAutoFocus:a,children:(0,R.jsx)(jT,{role:`dialog`,id:s.contentId,"aria-describedby":s.descriptionId,"aria-labelledby":s.titleId,"data-state":RN(s.open),...o,ref:l,onDismiss:()=>s.onOpenChange(!1)})}),(0,R.jsxs)(R.Fragment,{children:[(0,R.jsx)(HN,{titleId:s.titleId}),(0,R.jsx)(WN,{contentRef:c,descriptionId:s.descriptionId})]})]})}),MN=`DialogTitle`,NN=L.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,i=hN(MN,n);return(0,R.jsx)(xT.h2,{id:i.titleId,...r,ref:t})});NN.displayName=MN;var PN=`DialogDescription`,FN=L.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,i=hN(PN,n);return(0,R.jsx)(xT.p,{id:i.descriptionId,...r,ref:t})});FN.displayName=PN;var IN=`DialogClose`,LN=L.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,i=hN(IN,n);return(0,R.jsx)(xT.button,{type:`button`,...r,ref:t,onClick:sT(e.onClick,()=>i.onOpenChange(!1))})});LN.displayName=IN;function RN(e){return e?`open`:`closed`}var zN=`DialogTitleWarning`,[BN,VN]=dT(zN,{contentName:DN,titleName:MN,docsSlug:`dialog`}),HN=({titleId:e})=>{let t=VN(zN),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
|
|
128
|
+
|
|
129
|
+
If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
|
|
130
|
+
|
|
131
|
+
For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return L.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},UN=`DialogDescriptionWarning`,WN=({contentRef:e,descriptionId:t})=>{let n=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${VN(UN).contentName}}.`;return L.useEffect(()=>{let r=e.current?.getAttribute(`aria-describedby`);t&&r&&(document.getElementById(t)||console.warn(n))},[n,e,t]),null},GN=gN,KN=SN,qN=wN,JN=ON,YN=NN,XN=LN,ZN=e=>e.type===`checkbox`,QN=e=>e instanceof Date,$N=e=>e==null,eP=e=>typeof e==`object`,tP=e=>!$N(e)&&!Array.isArray(e)&&eP(e)&&!QN(e),nP=e=>tP(e)&&e.target?ZN(e.target)?e.target.checked:e.target.value:e,rP=(e,t)=>t.split(`.`).some((t,n,r)=>!isNaN(Number(t))&&e.has(r.slice(0,n).join(`.`))),iP=e=>{let t=e.constructor&&e.constructor.prototype;return tP(t)&&t.hasOwnProperty(`isPrototypeOf`)},aP=typeof window<`u`&&window.HTMLElement!==void 0&&typeof document<`u`;function oP(e){if(e instanceof Date)return new Date(e);let t=typeof FileList<`u`&&e instanceof FileList;if(aP&&(e instanceof Blob||t))return e;let n=Array.isArray(e);if(!n&&!(tP(e)&&iP(e)))return e;let r=n?[]:Object.create(Object.getPrototypeOf(e));for(let t in e)Object.prototype.hasOwnProperty.call(e,t)&&(r[t]=oP(e[t]));return r}var sP=e=>/^\w*$/.test(e),cP=e=>e===void 0,lP=e=>Array.isArray(e)?e.filter(Boolean):[],uP=e=>lP(e.replace(/["|']|\]/g,``).split(/\.|\[/)),Y=(e,t,n)=>{if(!t||!tP(e))return n;let r=(sP(t)?[t]:uP(t)).reduce((e,t)=>$N(e)?void 0:e[t],e);return cP(r)||r===e?cP(e[t])?n:e[t]:r},dP=e=>typeof e==`boolean`,fP=e=>typeof e==`function`,pP=(e,t,n)=>{let r=-1,i=sP(t)?[t]:uP(t),a=i.length,o=a-1;for(;++r<a;){let t=i[r],a=n;if(r!==o){let n=e[t];a=tP(n)||Array.isArray(n)?n:isNaN(+i[r+1])?{}:[]}if(t===`__proto__`||t===`constructor`||t===`prototype`)return;e[t]=a,e=e[t]}},mP={BLUR:`blur`,FOCUS_OUT:`focusout`,CHANGE:`change`,SUBMIT:`submit`,TRIGGER:`trigger`,VALID:`valid`},hP={onBlur:`onBlur`,onChange:`onChange`,onSubmit:`onSubmit`,onTouched:`onTouched`,all:`all`},gP={max:`max`,min:`min`,maxLength:`maxLength`,minLength:`minLength`,pattern:`pattern`,required:`required`,validate:`validate`},_P=`form`,vP=`root`,yP=L.createContext(null);yP.displayName=`HookFormControlContext`;var bP=()=>L.useContext(yP),xP=(e,t,n,r=!0)=>{let i={defaultValues:t._defaultValues};for(let a in e)Object.defineProperty(i,a,{get:()=>{let i=a;return t._proxyFormState[i]!==hP.all&&(t._proxyFormState[i]=!r||hP.all),n&&(n[i]=!0),e[i]}});return i},SP=typeof window<`u`?L.useLayoutEffect:L.useEffect;function CP(e){let t=bP(),{control:n=t,disabled:r,name:i,exact:a}=e||{},[o,s]=L.useState(n._formState),c=L.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1});return SP(()=>n._subscribe({name:i,formState:c.current,exact:a,callback:e=>{!r&&s({...n._formState,...e})}}),[i,r,a]),L.useEffect(()=>{c.current.isValid&&n._setValid(!0)},[n]),L.useMemo(()=>xP(o,n,c.current,!1),[o,n])}var wP=e=>typeof e==`string`,TP=(e,t,n,r,i)=>wP(e)?(r&&t.watch.add(e),Y(n,e,i)):Array.isArray(e)?e.map(e=>(r&&t.watch.add(e),Y(n,e))):(r&&(t.watchAll=!0),n),EP=e=>$N(e)||!eP(e);function DP(e,t,n=new WeakSet){if(e===t)return!0;if(EP(e)||EP(t))return Object.is(e,t);if(QN(e)&&QN(t))return Object.is(e.getTime(),t.getTime());let r=Object.keys(e),i=Object.keys(t);if(r.length!==i.length)return!1;if(n.has(e)||n.has(t))return!0;n.add(e),n.add(t);for(let i of r){let r=e[i];if(!(i in t))return!1;if(i!==`ref`){let e=t[i];if(QN(r)&&QN(e)||(tP(r)||Array.isArray(r))&&(tP(e)||Array.isArray(e))?!DP(r,e,n):!Object.is(r,e))return!1}}return!0}function OP(e){let t=bP(),{control:n=t,name:r,defaultValue:i,disabled:a,exact:o,compute:s}=e||{},c=L.useRef(i),l=L.useRef(s),u=L.useRef(void 0),d=L.useRef(n),f=L.useRef(r);l.current=s;let[p,m]=L.useState(()=>{let e=n._getWatch(r,c.current);return l.current?l.current(e):e}),h=L.useCallback(e=>{let t=TP(r,n._names,e||n._formValues,!1,c.current);return l.current?l.current(t):t},[n._formValues,n._names,r]),g=L.useCallback(e=>{if(!a){let t=TP(r,n._names,e||n._formValues,!1,c.current);if(l.current){let e=l.current(t);DP(e,u.current)||(m(e),u.current=e)}else m(t)}},[n._formValues,n._names,a,r]);SP(()=>((d.current!==n||!DP(f.current,r))&&(d.current=n,f.current=r,g()),n._subscribe({name:r,formState:{values:!0},exact:o,callback:e=>{g(e.values)}})),[n,o,r,g]),L.useEffect(()=>n._removeUnmounted());let _=d.current!==n,v=f.current,y=L.useMemo(()=>{if(a)return null;let e=!_&&!DP(v,r);return _||e?h():null},[a,_,r,v,h]);return y===null?p:y}function kP(e){let t=bP(),{name:n,disabled:r,control:i=t,shouldUnregister:a,defaultValue:o,exact:s=!0}=e,c=rP(i._names.array,n),l=OP({control:i,name:n,defaultValue:L.useMemo(()=>Y(i._formValues,n,Y(i._defaultValues,n,o)),[i,n,o]),exact:s}),u=CP({control:i,name:n,exact:s}),d=L.useRef(e),f=L.useRef(i.register(n,{...e.rules,value:l,...dP(e.disabled)?{disabled:e.disabled}:{}}));d.current=e;let p=L.useMemo(()=>Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!Y(u.errors,n)},isDirty:{enumerable:!0,get:()=>!!Y(u.dirtyFields,n)},isTouched:{enumerable:!0,get:()=>!!Y(u.touchedFields,n)},isValidating:{enumerable:!0,get:()=>!!Y(u.validatingFields,n)},error:{enumerable:!0,get:()=>Y(u.errors,n)}}),[u,n]),m=L.useCallback(e=>f.current.onChange({target:{value:nP(e),name:n},type:mP.CHANGE}),[n]),h=L.useCallback(()=>f.current.onBlur({target:{value:Y(i._formValues,n),name:n},type:mP.BLUR}),[n,i._formValues]),g=L.useCallback(e=>{let t=Y(i._fields,n);t&&t._f&&e&&(t._f.ref={focus:()=>fP(e.focus)&&e.focus(),select:()=>fP(e.select)&&e.select(),setCustomValidity:t=>fP(e.setCustomValidity)&&e.setCustomValidity(t),reportValidity:()=>fP(e.reportValidity)&&e.reportValidity()})},[i._fields,n]),_=L.useMemo(()=>({name:n,value:l,...dP(r)||u.disabled?{disabled:u.disabled||r}:{},onChange:m,onBlur:h,ref:g}),[n,r,u.disabled,m,h,g,l]);return L.useEffect(()=>{let e=i._options.shouldUnregister||a;i.register(n,{...d.current.rules,...dP(d.current.disabled)?{disabled:d.current.disabled}:{}});let t=(e,t)=>{let n=Y(i._fields,e);n&&n._f&&(n._f.mount=t)};if(t(n,!0),e){let e=oP(Y(i._options.defaultValues,n,d.current.defaultValue));pP(i._defaultValues,n,e),cP(Y(i._formValues,n))&&pP(i._formValues,n,e)}return!c&&i.register(n),()=>{(c?e&&!i._state.action:e)?i.unregister(n):t(n,!1)}},[n,i,c,a]),L.useEffect(()=>{i._setDisabledField({disabled:r,name:n})},[r,n,i]),L.useMemo(()=>({field:_,formState:u,fieldState:p}),[_,u,p])}var AP=e=>e.render(kP(e)),jP=L.createContext(null);jP.displayName=`HookFormContext`;var MP=(e,t,n,r,i)=>t?{...n[e],types:{...n[e]&&n[e].types?n[e].types:{},[r]:i||!0}}:{},NP=e=>Array.isArray(e)?e:[e],PP=()=>{let e=[];return{get observers(){return e},next:t=>{for(let n of e)n.next&&n.next(t)},subscribe:t=>(e.push(t),{unsubscribe:()=>{e=e.filter(e=>e!==t)}}),unsubscribe:()=>{e=[]}}};function FP(e,t){let n={};for(let r in e)if(e.hasOwnProperty(r)){let i=e[r],a=t[r];if(i&&tP(i)&&a){let e=FP(i,a);tP(e)&&(n[r]=e)}else e[r]&&(n[r]=a)}return n}var IP=e=>tP(e)&&!Object.keys(e).length,LP=e=>e.type===`file`,RP=e=>{if(!aP)return!1;let t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},zP=e=>e.type===`select-multiple`,BP=e=>e.type===`radio`,VP=e=>BP(e)||ZN(e),HP=e=>RP(e)&&e.isConnected;function UP(e,t){let n=t.slice(0,-1).length,r=0;for(;r<n;){if($N(e)){e=void 0;break}e=e[t[r]],r++}return e}function WP(e){for(let t in e)if(e.hasOwnProperty(t)&&!cP(e[t]))return!1;return!0}function GP(e,t){if(wP(t)&&Object.prototype.hasOwnProperty.call(e,t))return delete e[t],e;let n=Array.isArray(t)?t:sP(t)?[t]:uP(t),r=n.length===1?e:UP(e,n),i=n.length-1,a=n[i];return r&&delete r[a],i!==0&&(tP(r)&&IP(r)||Array.isArray(r)&&WP(r))&&GP(e,n.slice(0,-1)),e}var KP=e=>{for(let t in e)if(fP(e[t]))return!0;return!1};function qP(e){return Array.isArray(e)||tP(e)&&!KP(e)}function JP(e,t={}){for(let n in e){let r=e[n];qP(r)?(t[n]=Array.isArray(r)?[]:{},JP(r,t[n])):cP(r)||(t[n]=!0)}return t}function YP(e,t,n){n||=JP(t);for(let r in e){let i=e[r];if(qP(i))cP(t)||EP(n[r])?n[r]=JP(i,Array.isArray(i)?[]:{}):YP(i,$N(t)?{}:t[r],n[r]);else{let e=t[r];n[r]=!DP(i,e)}}return n}var XP={value:!1,isValid:!1},ZP={value:!0,isValid:!0},QP=e=>{if(Array.isArray(e)){if(e.length>1){let t=e.filter(e=>e&&e.checked&&!e.disabled).map(e=>e.value);return{value:t,isValid:!!t.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!cP(e[0].attributes.value)?cP(e[0].value)||e[0].value===``?ZP:{value:e[0].value,isValid:!0}:ZP:XP}return XP},$P=(e,{valueAsNumber:t,valueAsDate:n,setValueAs:r})=>cP(e)?e:t?e===``?NaN:e&&+e:n&&wP(e)?new Date(e):r?r(e):e,eF={isValid:!1,value:null},tF=e=>Array.isArray(e)?e.reduce((e,t)=>t&&t.checked&&!t.disabled?{isValid:!0,value:t.value}:e,eF):eF;function nF(e){let t=e.ref;return LP(t)?t.files:BP(t)?tF(e.refs).value:zP(t)?[...t.selectedOptions].map(({value:e})=>e):ZN(t)?QP(e.refs).value:$P(cP(t.value)?e.ref.value:t.value,e)}var rF=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,iF=(e,t,n,r)=>{let i={};for(let n of e){let e=Y(t,n);e&&pP(i,n,e._f)}return{criteriaMode:n,names:[...e],fields:i,shouldUseNativeValidation:r}},aF=e=>e instanceof RegExp,oF=e=>cP(e)?e:aF(e)?e.source:tP(e)?aF(e.value)?e.value.source:e.value:e,sF=e=>({isOnSubmit:!e||e===hP.onSubmit,isOnBlur:e===hP.onBlur,isOnChange:e===hP.onChange,isOnAll:e===hP.all,isOnTouch:e===hP.onTouched}),cF=`AsyncFunction`,lF=e=>!!e&&!!e.validate&&!!(fP(e.validate)&&e.validate.constructor.name===cF||tP(e.validate)&&Object.values(e.validate).find(e=>e.constructor.name===cF)),uF=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate),dF=(e,t,n)=>!n&&(t.watchAll||t.watch.has(e)||[...t.watch].some(t=>e.startsWith(t)&&/^\.\w+/.test(e.slice(t.length)))),fF=(e,t,n,r)=>{for(let i of n||Object.keys(e)){let n=Y(e,i);if(n){let{_f:e,...a}=n;if(e){if(e.refs&&e.refs[0]&&t(e.refs[0],i)&&!r||e.ref&&t(e.ref,e.name)&&!r)return!0;if(fF(a,t))break}else if(tP(a)&&fF(a,t))break}}};function pF(e,t,n){let r=Y(e,n);if(r||sP(n))return{error:r,name:n};let i=n.split(`.`);for(;i.length;){let r=i.join(`.`),a=Y(t,r),o=Y(e,r);if(a&&!Array.isArray(a)&&n!==r)return{name:n};if(o&&o.type)return{name:r,error:o};if(o&&o.root&&o.root.type)return{name:`${r}.root`,error:o.root};i.pop()}return{name:n}}var mF=(e,t,n,r)=>{n(e);let{name:i,...a}=e;return IP(a)||Object.keys(a).length>=Object.keys(t).length||Object.keys(a).find(e=>t[e]===(!r||hP.all))},hF=(e,t,n)=>!e||!t||e===t||NP(e).some(e=>e&&(n?e===t:e.startsWith(t)||t.startsWith(e))),gF=(e,t,n,r,i)=>i.isOnAll?!1:!n&&i.isOnTouch?!(t||e):(n?r.isOnBlur:i.isOnBlur)?!e:(n?r.isOnChange:i.isOnChange)?e:!0,_F=(e,t)=>!lP(Y(e,t)).length&&GP(e,t),vF=(e,t,n)=>{let r=NP(Y(e,n));return pP(r,vP,t[n]),pP(e,n,r),e};function yF(e,t,n=`validate`){if(wP(e)||Array.isArray(e)&&e.every(wP)||dP(e)&&!e)return{type:n,message:wP(e)?e:``,ref:t}}var bF=e=>tP(e)&&!aF(e)?e:{value:e,message:``},xF=async(e,t,n,r,i,a)=>{let{ref:o,refs:s,required:c,maxLength:l,minLength:u,min:d,max:f,pattern:p,validate:m,name:h,valueAsNumber:g,mount:_}=e._f,v=Y(n,h);if(!_||t.has(h))return{};let y=s?s[0]:o,b=e=>{i&&y.reportValidity&&(y.setCustomValidity(dP(e)?``:e||``),y.reportValidity())},x={},S=BP(o),C=ZN(o),w=S||C,T=(g||LP(o))&&cP(o.value)&&cP(v)||RP(o)&&o.value===``||v===``||Array.isArray(v)&&!v.length||g&&typeof v==`number`&&isNaN(v),E=MP.bind(null,h,r,x),ee=(e,t,n,r=gP.maxLength,i=gP.minLength)=>{let a=e?t:n;x[h]={type:e?r:i,message:a,ref:o,...E(e?r:i,a)}};if(a?!Array.isArray(v)||!v.length:c&&(!w&&(T||$N(v))||dP(v)&&!v||C&&!QP(s).isValid||S&&!tF(s).isValid)){let{value:e,message:t}=wP(c)?{value:!!c,message:c}:bF(c);if(e&&(x[h]={type:gP.required,message:t,ref:y,...E(gP.required,t)},!r))return b(t),x}if(!T&&(!$N(d)||!$N(f))){let e,t,n=bF(f),i=bF(d);if(!$N(v)&&!isNaN(v)){let r=o.valueAsNumber||v&&+v;$N(n.value)||(e=r>n.value),$N(i.value)||(t=r<i.value)}else{let r=o.valueAsDate||new Date(v),a=e=>new Date(new Date().toDateString()+` `+e),s=o.type==`time`,c=o.type==`week`;wP(n.value)&&v&&(e=s?a(v)>a(n.value):c?v>n.value:r>new Date(n.value)),wP(i.value)&&v&&(t=s?a(v)<a(i.value):c?v<i.value:r<new Date(i.value))}if((e||t)&&(ee(!!e,n.message,i.message,gP.max,gP.min),!r))return b(x[h].message),x}if((l||u)&&!T&&(wP(v)||a&&Array.isArray(v))){let e=bF(l),t=bF(u),n=!$N(e.value)&&v.length>+e.value,i=!$N(t.value)&&v.length<+t.value;if((n||i)&&(ee(n,e.message,t.message),!r))return b(x[h].message),x}if(p&&!T&&wP(v)){let{value:e,message:t}=bF(p);if(aF(e)&&!v.match(e)&&(x[h]={type:gP.pattern,message:t,ref:o,...E(gP.pattern,t)},!r))return b(t),x}if(m){if(fP(m)){let e=yF(await m(v,n),y);if(e&&(x[h]={...e,...E(gP.validate,e.message)},!r))return b(e.message),x}else if(tP(m)){let e={};for(let t in m){if(!IP(e)&&!r)break;let i=yF(await m[t](v,n),y,t);i&&(e={...i,...E(t,i.message)},b(i.message),r&&(x[h]=e))}if(!IP(e)&&(x[h]={ref:y,...e},!r))return x}}return b(!0),x},SF={mode:hP.onSubmit,reValidateMode:hP.onChange,shouldFocusError:!0};function CF(e={}){let t={...SF,...e},n={submitCount:0,isDirty:!1,isReady:!1,isLoading:fP(t.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:t.errors||{},disabled:t.disabled||!1},r={},i=(tP(t.defaultValues)||tP(t.values))&&oP(t.defaultValues||t.values)||{},a=t.shouldUnregister?{}:oP(i),o={action:!1,mount:!1,watch:!1,keepIsValid:!1},s={mount:new Set,disabled:new Set,unMount:new Set,array:new Set,watch:new Set,registerName:new Set},c,l=0,u={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},d={...u},f={...d},p={array:PP(),state:PP()},m=t.criteriaMode===hP.all,h=e=>t=>{clearTimeout(l),l=setTimeout(e,t)},g=async e=>{if(!o.keepIsValid&&!t.disabled&&(d.isValid||f.isValid||e)){let e;t.resolver?(e=IP((await T()).errors),_()):e=await D({fields:r,onlyCheckValid:!0,eventType:mP.VALID}),e!==n.isValid&&p.state.next({isValid:e})}},_=(e,r)=>{!t.disabled&&(d.isValidating||d.validatingFields||f.isValidating||f.validatingFields)&&((e||Array.from(s.mount)).forEach(e=>{e&&(r?pP(n.validatingFields,e,r):GP(n.validatingFields,e))}),p.state.next({validatingFields:n.validatingFields,isValidating:!IP(n.validatingFields)}))},v=e=>{let t=YP(i,a),r=rF(e);pP(n.dirtyFields,r,Y(t,r))},y=(e,i=[],s,c,l=!0,u=!0)=>{if(c&&s&&!t.disabled){if(o.action=!0,u&&Array.isArray(Y(r,e))){let t=s(Y(r,e),c.argA,c.argB);l&&pP(r,e,t)}if(u&&Array.isArray(Y(n.errors,e))){let t=s(Y(n.errors,e),c.argA,c.argB);l&&pP(n.errors,e,t),_F(n.errors,e)}if((d.touchedFields||f.touchedFields)&&u&&Array.isArray(Y(n.touchedFields,e))){let t=s(Y(n.touchedFields,e),c.argA,c.argB);l&&pP(n.touchedFields,e,t)}(d.dirtyFields||f.dirtyFields)&&v(e),p.state.next({name:e,isDirty:k(e,i),dirtyFields:n.dirtyFields,errors:n.errors,isValid:n.isValid})}else pP(a,e,i)},b=(e,t)=>{pP(n.errors,e,t),p.state.next({errors:n.errors})},x=e=>{n.errors=e,p.state.next({errors:n.errors,isValid:!1})},S=(e,t,n,s)=>{let c=Y(r,e);if(c){let r=Y(a,e,cP(n)?Y(i,e):n);cP(r)||s&&s.defaultChecked||t?pP(a,e,t?r:nF(c._f)):M(e,r),o.mount&&!o.action&&g()}},C=(e,r,a,o,s)=>{let c=!1,l=!1,u={name:e};if(!t.disabled){if(!a||o){(d.isDirty||f.isDirty)&&(l=n.isDirty,n.isDirty=u.isDirty=k(),c=l!==u.isDirty);let t=DP(Y(i,e),r);l=!!Y(n.dirtyFields,e),t?GP(n.dirtyFields,e):pP(n.dirtyFields,e,!0),u.dirtyFields=n.dirtyFields,c||=(d.dirtyFields||f.dirtyFields)&&l!==!t}if(a){let t=Y(n.touchedFields,e);t||(pP(n.touchedFields,e,a),u.touchedFields=n.touchedFields,c||=(d.touchedFields||f.touchedFields)&&t!==a)}c&&s&&p.state.next(u)}return c?u:{}},w=(e,r,i,a)=>{let o=Y(n.errors,e),s=(d.isValid||f.isValid)&&dP(r)&&n.isValid!==r;if(t.delayError&&i?(c=h(()=>b(e,i)),c(t.delayError)):(clearTimeout(l),c=null,i?pP(n.errors,e,i):GP(n.errors,e)),(i?!DP(o,i):o)||!IP(a)||s){let t={...a,...s&&dP(r)?{isValid:r}:{},errors:n.errors,name:e};n={...n,...t},p.state.next(t)}},T=async e=>(_(e,!0),await t.resolver(a,t.context,iF(e||s.mount,r,t.criteriaMode,t.shouldUseNativeValidation))),E=async e=>{let{errors:t}=await T(e);if(_(e),e)for(let r of e){let e=Y(t,r);e?pP(n.errors,r,e):GP(n.errors,r)}else n.errors=t;return t},ee=async({name:t,eventType:r})=>{if(e.validate){let i=await e.validate({formValues:a,formState:n,name:t,eventType:r});if(tP(i))for(let e in i)i[e]&&ce(`${_P}.${e}`,{message:wP(i.message)?i.message:``,type:gP.validate});else wP(i)||!i?ce(_P,{message:i||``,type:gP.validate}):se(_P);return i}return!0},D=async({fields:r,onlyCheckValid:i,name:o,eventType:c,context:l={valid:!0,runRootValidation:!1}})=>{if(e.validate&&(l.runRootValidation=!0,!await ee({name:o,eventType:c})&&(l.valid=!1,i)))return l.valid;for(let o in r){let u=r[o];if(u){let{_f:r,...f}=u;if(r){let o=s.array.has(r.name),c=u._f&&lF(u._f);c&&d.validatingFields&&_([r.name],!0);let f=await xF(u,s.disabled,a,m,t.shouldUseNativeValidation&&!i,o);if(c&&d.validatingFields&&_([r.name]),f[r.name]&&(l.valid=!1,i)||(!i&&(Y(f,r.name)?o?vF(n.errors,f,r.name):pP(n.errors,r.name,f[r.name]):GP(n.errors,r.name)),e.shouldUseNativeValidation&&f[r.name]))break}!IP(f)&&await D({context:l,onlyCheckValid:i,fields:f,name:o,eventType:c})}}return l.valid},O=()=>{for(let e of s.unMount){let t=Y(r,e);t&&(t._f.refs?t._f.refs.every(e=>!HP(e)):!HP(t._f.ref))&&fe(e)}s.unMount=new Set},k=(e,n)=>!t.disabled&&(e&&n&&pP(a,e,n),!DP(oe(),i)),A=(e,t,n)=>TP(e,s,{...o.mount?a:cP(t)?i:wP(e)?{[e]:t}:t},n,t),j=e=>lP(Y(o.mount?a:i,e,t.shouldUnregister?Y(i,e,[]):[])),M=(e,t,n={})=>{let i=Y(r,e),o=t;if(i){let n=i._f;n&&(!n.disabled&&pP(a,e,$P(t,n)),o=RP(n.ref)&&$N(t)?``:t,zP(n.ref)?[...n.ref.options].forEach(e=>e.selected=o.includes(e.value)):n.refs?ZN(n.ref)?n.refs.forEach(e=>{(!e.defaultChecked||!e.disabled)&&(Array.isArray(o)?e.checked=!!o.find(t=>t===e.value):e.checked=o===e.value||!!o)}):n.refs.forEach(e=>e.checked=e.value===o):LP(n.ref)?n.ref.value=``:(n.ref.value=o,n.ref.type||p.state.next({name:e,values:oP(a)})))}(n.shouldDirty||n.shouldTouch)&&C(e,o,n.shouldTouch,n.shouldDirty,!0),n.shouldValidate&&ae(e)},N=(e,t,n)=>{for(let i in t){if(!t.hasOwnProperty(i))return;let a=t[i],o=e+`.`+i,c=Y(r,o);(s.array.has(e)||tP(a)||c&&!c._f)&&!QN(a)?N(o,a,n):M(o,a,n)}},te=(e,t,i={})=>{let c=Y(r,e),l=s.array.has(e),u=oP(t),d=DP(Y(a,e),u);if(pP(a,e,u),l)p.array.next({name:e,values:oP(a)}),i.shouldDirty&&(v(e),p.state.next({name:e,dirtyFields:n.dirtyFields,isDirty:k(e,u)}));else{let t=Array.isArray(u)&&!u.length||IP(u);!c||c._f||$N(u)||t?M(e,u,i):N(e,u,i)}d||(dF(e,s)?p.state.next({...n,name:e,values:oP(a)}):p.state.next({name:o.mount?e:void 0,values:oP(a)}))},ne=e=>{let t=fP(e)?e(a):e;DP(a,t)||(a={...a,...t},p.state.next({...n,values:a}))},re=async i=>{o.mount=!0;let l=i.target,u=l.name,h=!0,v=Y(r,u),y=e=>{h=Number.isNaN(e)||QN(e)&&isNaN(e.getTime())||DP(e,Y(a,u,e))},b=sF(t.mode),x=sF(t.reValidateMode);if(v){let o,S,E=l.type?nF(v._f):nP(i),O=i.type===mP.BLUR||i.type===mP.FOCUS_OUT,k=!uF(v._f)&&!e.validate&&!t.resolver&&!Y(n.errors,u)&&!v._f.deps||gF(O,Y(n.touchedFields,u),n.isSubmitted,x,b),A=dF(u,s,O);pP(a,u,E),O?(!l||!l.readOnly)&&(v._f.onBlur&&v._f.onBlur(i),c&&c(0)):v._f.onChange&&v._f.onChange(i);let j=C(u,E,O),M=!IP(j)||A;if(!O&&p.state.next({name:u,type:i.type,values:oP(a)}),k)return(d.isValid||f.isValid)&&(t.mode===`onBlur`?O&&g():O||g()),M&&p.state.next({name:u,...A?{}:j});if(!t.resolver&&e.validate&&await ee({name:u,eventType:i.type}),!O&&A&&p.state.next({...n}),t.resolver){let{errors:e}=await T([u]);if(_([u]),y(E),h){let t=pF(n.errors,r,u),i=pF(e,r,t.name||u);o=i.error,u=i.name,S=IP(e)}}else _([u],!0),o=(await xF(v,s.disabled,a,m,t.shouldUseNativeValidation))[u],_([u]),y(E),h&&(o?S=!1:(d.isValid||f.isValid)&&(S=await D({fields:r,onlyCheckValid:!0,name:u,eventType:i.type})));h&&(v._f.deps&&(!Array.isArray(v._f.deps)||v._f.deps.length>0)&&ae(v._f.deps),w(u,S,o,j))}},ie=(e,t)=>{if(Y(n.errors,t)&&e.focus)return e.focus(),1},ae=async(e,i={})=>{let a,o,c=NP(e);if(t.resolver){let t=await E(cP(e)?e:c);a=IP(t),o=e?!c.some(e=>Y(t,e)):a}else e?(o=(await Promise.all(c.map(async e=>{let t=Y(r,e);return await D({fields:t&&t._f?{[e]:t}:t,eventType:mP.TRIGGER})}))).every(Boolean),!(!o&&!n.isValid)&&g()):o=a=await D({fields:r,name:e,eventType:mP.TRIGGER});return p.state.next({...!wP(e)||(d.isValid||f.isValid)&&a!==n.isValid?{}:{name:e},...t.resolver||!e?{isValid:a}:{},errors:n.errors}),i.shouldFocus&&!o&&fF(r,ie,e?c:s.mount),o},oe=(e,t)=>{let r={...o.mount?a:i};return t&&(r=FP(t.dirtyFields?n.dirtyFields:n.touchedFields,r)),cP(e)?r:wP(e)?Y(r,e):e.map(e=>Y(r,e))},P=(e,t)=>({invalid:!!Y((t||n).errors,e),isDirty:!!Y((t||n).dirtyFields,e),error:Y((t||n).errors,e),isValidating:!!Y(n.validatingFields,e),isTouched:!!Y((t||n).touchedFields,e)}),se=e=>{let t=e?NP(e):void 0;t?.forEach(e=>GP(n.errors,e)),t?t.forEach(e=>{p.state.next({name:e,errors:n.errors})}):p.state.next({errors:{}})},ce=(e,t,i)=>{let a=(Y(r,e,{_f:{}})._f||{}).ref,{ref:o,message:s,type:c,...l}=Y(n.errors,e)||{};pP(n.errors,e,{...l,...t,ref:a}),p.state.next({name:e,errors:n.errors,isValid:!1}),i&&i.shouldFocus&&a&&a.focus&&a.focus()},le=(e,t)=>fP(e)?p.state.subscribe({next:n=>`values`in n&&e(n.values||A(void 0,t),n)}):A(e,t,!0),ue=e=>p.state.subscribe({next:t=>{if(hF(e.name,t.name,e.exact)&&mF(t,e.formState||d,Se,e.reRenderRoot)){let r={...a};e.callback({values:r,...n,...t,defaultValues:i})}}}).unsubscribe,de=e=>(o.mount=!0,f={...f,...e.formState},ue({...e,formState:{...u,...e.formState}})),fe=(e,o={})=>{for(let c of e?NP(e):s.mount)s.mount.delete(c),s.array.delete(c),o.keepValue||(GP(r,c),GP(a,c)),!o.keepError&&GP(n.errors,c),!o.keepDirty&&GP(n.dirtyFields,c),!o.keepTouched&&GP(n.touchedFields,c),!o.keepIsValidating&&GP(n.validatingFields,c),!t.shouldUnregister&&!o.keepDefaultValue&&GP(i,c);p.state.next({values:oP(a)}),p.state.next({...n,...o.keepDirty?{isDirty:k()}:{}}),!o.keepIsValid&&g()},pe=({disabled:e,name:t})=>{if(dP(e)&&o.mount||e||s.disabled.has(t)){let n=s.disabled.has(t)!==!!e;e?s.disabled.add(t):s.disabled.delete(t),n&&o.mount&&!o.action&&g()}},me=(e,n={})=>{let a=Y(r,e),c=dP(n.disabled)||dP(t.disabled),l=!s.registerName.has(e)&&a&&a._f&&!a._f.mount;return pP(r,e,{...a||{},_f:{...a&&a._f?a._f:{ref:{name:e}},name:e,mount:!0,...n}}),s.mount.add(e),a&&!l?pe({disabled:dP(n.disabled)?n.disabled:t.disabled,name:e}):S(e,!0,n.value),{...c?{disabled:n.disabled||t.disabled}:{},...t.progressive?{required:!!n.required,min:oF(n.min),max:oF(n.max),minLength:oF(n.minLength),maxLength:oF(n.maxLength),pattern:oF(n.pattern)}:{},name:e,onChange:re,onBlur:re,ref:c=>{if(c){s.registerName.add(e),me(e,n),s.registerName.delete(e),a=Y(r,e);let t=cP(c.value)&&c.querySelectorAll&&c.querySelectorAll(`input,select,textarea`)[0]||c,o=VP(t),l=a._f.refs||[];if(o?l.find(e=>e===t):t===a._f.ref)return;pP(r,e,{_f:{...a._f,...o?{refs:[...l.filter(HP),t,...Array.isArray(Y(i,e))?[{}]:[]],ref:{type:t.type,name:e}}:{ref:t}}}),S(e,!1,void 0,t)}else a=Y(r,e,{}),a._f&&(a._f.mount=!1),(t.shouldUnregister||n.shouldUnregister)&&!(rP(s.array,e)&&o.action)&&s.unMount.add(e)}}},he=()=>t.shouldFocusError&&fF(r,ie,s.mount),ge=e=>{dP(e)&&(p.state.next({disabled:e}),fF(r,(t,n)=>{let i=Y(r,n);i&&(t.disabled=i._f.disabled||e,Array.isArray(i._f.refs)&&i._f.refs.forEach(t=>{t.disabled=i._f.disabled||e}))},0,!1))},_e=(e,i)=>async o=>{let c;o&&(o.preventDefault&&o.preventDefault(),o.persist&&o.persist());let l=oP(a);if(p.state.next({isSubmitting:!0}),t.resolver){let{errors:e,values:t}=await T();_(),n.errors=e,l=oP(t)}else await D({fields:r,eventType:mP.SUBMIT});if(s.disabled.size)for(let e of s.disabled)GP(l,e);if(GP(n.errors,vP),IP(n.errors)){p.state.next({errors:{}});try{await e(l,o)}catch(e){c=e}}else i&&await i({...n.errors},o),he(),setTimeout(he);if(p.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:IP(n.errors)&&!c,submitCount:n.submitCount+1,errors:n.errors}),c)throw c},ve=(e,t={})=>{Y(r,e)&&(cP(t.defaultValue)?te(e,oP(Y(i,e))):(te(e,t.defaultValue),pP(i,e,oP(t.defaultValue))),t.keepTouched||GP(n.touchedFields,e),t.keepDirty||(GP(n.dirtyFields,e),n.isDirty=t.defaultValue?k(e,oP(Y(i,e))):k()),t.keepError||(GP(n.errors,e),d.isValid&&g()),p.state.next({...n}))},ye=(e,c={})=>{let l=e?oP(e):i,u=oP(l),f=IP(e),m=f?i:u;if(c.keepDefaultValues||(i=l),!c.keepValues){if(c.keepDirtyValues){let e=new Set([...s.mount,...Object.keys(YP(i,a))]);for(let t of Array.from(e)){let e=Y(n.dirtyFields,t),r=Y(a,t),i=Y(m,t);e&&!cP(r)?pP(m,t,r):!e&&!cP(i)&&te(t,i)}}else{if(aP&&cP(e))for(let e of s.mount){let t=Y(r,e);if(t&&t._f){let e=Array.isArray(t._f.refs)?t._f.refs[0]:t._f.ref;if(RP(e)){let t=e.closest(`form`);if(t){t.reset();break}}}}if(c.keepFieldsRef)for(let e of s.mount)te(e,Y(m,e));else r={}}a=t.shouldUnregister?c.keepDefaultValues?oP(i):{}:oP(m),p.array.next({values:{...m}}),p.state.next({values:{...m}})}s={mount:c.keepDirtyValues?s.mount:new Set,unMount:new Set,array:new Set,registerName:new Set,disabled:new Set,watch:new Set,watchAll:!1,focus:``},o.mount=!d.isValid||!!c.keepIsValid||!!c.keepDirtyValues||!t.shouldUnregister&&!IP(m),o.watch=!!t.shouldUnregister,o.keepIsValid=!!c.keepIsValid,o.action=!1,c.keepErrors||(n.errors={}),p.state.next({submitCount:c.keepSubmitCount?n.submitCount:0,isDirty:f?!1:c.keepDirty?n.isDirty:!!(c.keepDefaultValues&&!DP(e,i)),isSubmitted:c.keepIsSubmitted?n.isSubmitted:!1,dirtyFields:f?{}:c.keepDirtyValues?c.keepDefaultValues&&a?YP(i,a):n.dirtyFields:c.keepDefaultValues&&e?YP(i,e):c.keepDirty?n.dirtyFields:{},touchedFields:c.keepTouched?n.touchedFields:{},errors:c.keepErrors?n.errors:{},isSubmitSuccessful:c.keepIsSubmitSuccessful?n.isSubmitSuccessful:!1,isSubmitting:!1,defaultValues:i})},be=(e,n)=>ye(fP(e)?e(a):e,{...t.resetOptions,...n}),xe=(e,t={})=>{let n=Y(r,e),i=n&&n._f;if(i){let e=i.refs?i.refs[0]:i.ref;e.focus&&setTimeout(()=>{e.focus(),t.shouldSelect&&fP(e.select)&&e.select()})}},Se=e=>{n={...n,...e}},Ce={control:{register:me,unregister:fe,getFieldState:P,handleSubmit:_e,setError:ce,_subscribe:ue,_runSchema:T,_updateIsValidating:_,_focusError:he,_getWatch:A,_getDirty:k,_setValid:g,_setFieldArray:y,_setDisabledField:pe,_setErrors:x,_getFieldArray:j,_reset:ye,_resetDefaultValues:()=>fP(t.defaultValues)&&t.defaultValues().then(e=>{be(e,t.resetOptions),p.state.next({isLoading:!1})}),_removeUnmounted:O,_disableForm:ge,_subjects:p,_proxyFormState:d,get _fields(){return r},get _formValues(){return a},get _state(){return o},set _state(e){o=e},get _defaultValues(){return i},get _names(){return s},set _names(e){s=e},get _formState(){return n},get _options(){return t},set _options(e){t={...t,...e}}},subscribe:de,trigger:ae,register:me,handleSubmit:_e,watch:le,setValue:te,setValues:ne,getValues:oe,reset:be,resetField:ve,clearErrors:se,unregister:fe,setError:ce,setFocus:xe,getFieldState:P};return{...Ce,formControl:Ce}}var wF=()=>{if(typeof crypto<`u`&&crypto.randomUUID)return crypto.randomUUID();let e=typeof performance>`u`?Date.now():performance.now()*1e3;return`xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx`.replace(/[xy]/g,t=>{let n=(Math.random()*16+e)%16|0;return(t==`x`?n:n&3|8).toString(16)})},TF=(e,t,n={})=>n.shouldFocus||cP(n.shouldFocus)?n.focusName||`${e}.${cP(n.focusIndex)?t:n.focusIndex}.`:``,EF=(e,t)=>[...e,...NP(t)],DF=e=>Array.isArray(e)?e.map(()=>void 0):void 0;function OF(e,t,n){return[...e.slice(0,t),...NP(n),...e.slice(t)]}var kF=(e,t,n)=>Array.isArray(e)?(cP(e[n])&&(e[n]=void 0),e.splice(n,0,e.splice(t,1)[0]),e):[],AF=(e,t)=>[...NP(t),...NP(e)];function jF(e,t){let n=0,r=[...e];for(let e of t)r.splice(e-n,1),n++;return lP(r).length?r:[]}var MF=(e,t)=>cP(t)?[]:jF(e,NP(t).sort((e,t)=>e-t)),NF=(e,t,n)=>{[e[t],e[n]]=[e[n],e[t]]},PF=(e,t,n)=>(e[t]=n,e);function FF(e){let t=bP(),{control:n=t,name:r,keyName:i=`id`,shouldUnregister:a,rules:o}=e,[s,c]=L.useState(n._getFieldArray(r)),l=L.useRef(n._getFieldArray(r).map(wF)),u=L.useRef(!1);n._names.array.add(r),L.useMemo(()=>o&&s.length>=0&&n.register(r,o),[n,r,s.length,o]),SP(()=>n._subjects.array.subscribe({next:({values:e,name:t})=>{if(t===r||!t){let t=Y(e,r);Array.isArray(t)&&(c(t),l.current=t.map(wF))}}}).unsubscribe,[n,r]);let d=L.useCallback(e=>{u.current=!0,n._setFieldArray(r,e)},[n,r]);return L.useEffect(()=>{n._state.action=!1,dF(r,n._names)&&n._subjects.state.next({...n._formState});let e=sF(n._options.mode);if(u.current&&(!e.isOnSubmit||n._formState.isSubmitted)&&!sF(n._options.reValidateMode).isOnSubmit&&!e.isOnBlur)if(n._options.resolver)n._runSchema([r]).then(e=>{n._updateIsValidating([r]);let t=Y(e.errors,r),i=Y(n._formState.errors,r);(i?!t&&i.type||t&&(i.type!==t.type||i.message!==t.message):t&&t.type)&&(t?pP(n._formState.errors,r,t):GP(n._formState.errors,r),n._subjects.state.next({errors:n._formState.errors}))});else{let e=Y(n._fields,r);e&&e._f&&!(sF(n._options.reValidateMode).isOnSubmit&&sF(n._options.mode).isOnSubmit)&&xF(e,n._names.disabled,n._formValues,n._options.criteriaMode===hP.all,n._options.shouldUseNativeValidation,!0).then(e=>!IP(e)&&n._subjects.state.next({errors:vF(n._formState.errors,e,r)}))}n._subjects.state.next({name:r,values:oP(n._formValues)}),n._names.focus&&fF(n._fields,(e,t)=>{if(n._names.focus&&t.startsWith(n._names.focus)&&e.focus)return e.focus(),1}),n._names.focus=``,n._setValid(),u.current=!1},[s,r,n]),L.useEffect(()=>(!Y(n._formValues,r)&&n._setFieldArray(r),()=>{n._options.shouldUnregister||a?n.unregister(r):((e,t)=>{let r=Y(n._fields,e);r&&r._f&&(r._f.mount=t)})(r,!1)}),[r,n,i,a]),{swap:L.useCallback((e,t)=>{let i=n._getFieldArray(r);NF(i,e,t),NF(l.current,e,t),d(i),c(i),n._setFieldArray(r,i,NF,{argA:e,argB:t},!1)},[d,r,n]),move:L.useCallback((e,t)=>{let i=n._getFieldArray(r);kF(i,e,t),kF(l.current,e,t),d(i),c(i),n._setFieldArray(r,i,kF,{argA:e,argB:t},!1)},[d,r,n]),prepend:L.useCallback((e,t)=>{let i=NP(oP(e)),a=AF(n._getFieldArray(r),i);n._names.focus=TF(r,0,t),l.current=AF(l.current,i.map(wF)),d(a),c(a),n._setFieldArray(r,a,AF,{argA:DF(e)})},[d,r,n]),append:L.useCallback((e,t)=>{let i=NP(oP(e)),a=EF(n._getFieldArray(r),i);n._names.focus=TF(r,a.length-1,t),l.current=EF(l.current,i.map(wF)),d(a),c(a),n._setFieldArray(r,a,EF,{argA:DF(e)})},[d,r,n]),remove:L.useCallback(e=>{let t=MF(n._getFieldArray(r),e);l.current=MF(l.current,e),d(t),c(t),!Array.isArray(Y(n._fields,r))&&pP(n._fields,r,void 0),n._setFieldArray(r,t,MF,{argA:e})},[d,r,n]),insert:L.useCallback((e,t,i)=>{let a=NP(oP(t)),o=OF(n._getFieldArray(r),e,a);n._names.focus=TF(r,e,i),l.current=OF(l.current,e,a.map(wF)),d(o),c(o),n._setFieldArray(r,o,OF,{argA:e,argB:DF(t)})},[d,r,n]),update:L.useCallback((e,t)=>{let i=oP(t),a=PF(n._getFieldArray(r),e,i);l.current=[...a].map((t,n)=>!t||n===e?wF():l.current[n]),d(a),c([...a]),n._setFieldArray(r,a,PF,{argA:e,argB:i},!0,!1)},[d,r,n]),replace:L.useCallback(e=>{let t=NP(oP(e));l.current=t.map(wF),d([...t]),c([...t]),n._setFieldArray(r,[...t],e=>e,{},!0,!1)},[d,r,n]),fields:L.useMemo(()=>s.map((e,t)=>({...e,[i]:l.current[t]||wF()})),[s,i])}}function IF(e={}){let t=L.useRef(void 0),n=L.useRef(void 0),[r,i]=L.useState({isDirty:!1,isValidating:!1,isLoading:fP(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},validatingFields:{},errors:e.errors||{},disabled:e.disabled||!1,isReady:!1,defaultValues:fP(e.defaultValues)?void 0:e.defaultValues});if(!t.current)if(e.formControl)t.current={...e.formControl,formState:r},e.defaultValues&&!fP(e.defaultValues)&&e.formControl.reset(e.defaultValues,e.resetOptions);else{let{formControl:n,...i}=CF(e);t.current={...i,formState:r}}let a=t.current.control;return a._options=e,SP(()=>{let e=a._subscribe({formState:a._proxyFormState,callback:()=>i({...a._formState}),reRenderRoot:!0});return i(e=>({...e,isReady:!0})),a._formState.isReady=!0,e},[a]),L.useEffect(()=>a._disableForm(e.disabled),[a,e.disabled]),L.useEffect(()=>{e.mode&&(a._options.mode=e.mode),e.reValidateMode&&(a._options.reValidateMode=e.reValidateMode)},[a,e.mode,e.reValidateMode]),L.useEffect(()=>{e.errors&&(a._setErrors(e.errors),a._focusError())},[a,e.errors]),L.useEffect(()=>{e.shouldUnregister&&a._subjects.state.next({values:a._getWatch()})},[a,e.shouldUnregister]),L.useEffect(()=>{if(a._proxyFormState.isDirty){let e=a._getDirty();e!==r.isDirty&&a._subjects.state.next({isDirty:e})}},[a,r.isDirty]),L.useEffect(()=>{e.values&&!DP(e.values,n.current)?(a._reset(e.values,{keepFieldsRef:!0,...a._options.resetOptions}),a._options.resetOptions?.keepIsValid||a._setValid(),n.current=e.values,i(e=>({...e}))):a._resetDefaultValues()},[a,e.values]),L.useEffect(()=>{a._state.mount||(a._setValid(),a._state.mount=!0),a._state.watch&&(a._state.watch=!1,a._subjects.state.next({...a._formState})),a._removeUnmounted()}),t.current.formState=L.useMemo(()=>xP(r,a),[a,r]),t.current}function LF(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function RF(){return RF=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},RF.apply(null,arguments)}var zF=ut(((e,t)=>{t.exports=`SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED`})),BF=ut(((e,t)=>{var n=zF();function r(){}function i(){}i.resetWarningCache=r,t.exports=function(){function e(e,t,r,i,a,o){if(o!==n){var s=Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name=`Invariant Violation`,s}}e.isRequired=e;function t(){return e}var a={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:r};return a.PropTypes=a,a}})),VF=ut(((e,t)=>{t.exports=BF()()})),HF=ut((e=>{if(typeof Symbol==`function`&&Symbol.for){var t=Symbol.for;t(`react.element`),t(`react.portal`),t(`react.fragment`),t(`react.strict_mode`),t(`react.profiler`),t(`react.provider`),t(`react.context`),t(`react.forward_ref`),t(`react.suspense`),t(`react.suspense_list`),t(`react.memo`),t(`react.lazy`),t(`react.block`),t(`react.server.block`),t(`react.fundamental`),t(`react.debug_trace_mode`),t(`react.legacy_hidden`)}})),UF=ut(((e,t)=>{t.exports=HF()})),WF=e=>typeof e==`object`&&!!e&&e.nodeType===1,GF=(e,t)=>(!t||e!==`hidden`)&&e!==`visible`&&e!==`clip`,KF=(e,t)=>{if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){let n=getComputedStyle(e,null);return GF(n.overflowY,t)||GF(n.overflowX,t)||(e=>{let t=(e=>{if(!e.ownerDocument||!e.ownerDocument.defaultView)return null;try{return e.ownerDocument.defaultView.frameElement}catch{return null}})(e);return!!t&&(t.clientHeight<e.scrollHeight||t.clientWidth<e.scrollWidth)})(e)}return!1},qF=(e,t,n,r,i,a,o,s)=>a<e&&o>t||a>e&&o<t?0:a<=e&&s<=n||o>=t&&s>=n?a-e-r:o>t&&s<n||a<e&&s>n?o-t+i:0,JF=e=>e.parentElement??(e.getRootNode().host||null),YF=(e,t)=>{if(typeof document>`u`)return[];let{scrollMode:n,block:r,inline:i,boundary:a,skipOverflowHiddenElements:o}=t,s=typeof a==`function`?a:e=>e!==a;if(!WF(e))throw TypeError(`Invalid target`);let c=document.scrollingElement||document.documentElement,l=[],u=e;for(;WF(u)&&s(u);){if(u=JF(u),u===c){l.push(u);break}u!=null&&u===document.body&&KF(u)&&!KF(document.documentElement)||u!=null&&KF(u,o)&&l.push(u)}let d=window.visualViewport?.width??innerWidth,f=window.visualViewport?.height??innerHeight,p=window.scrollX??pageXOffset,m=window.scrollY??pageYOffset,{height:h,width:g,top:_,right:v,bottom:y,left:b}=e.getBoundingClientRect(),x=r===`start`||r===`nearest`?_:r===`end`?y:_+h/2,S=i===`center`?b+g/2:i===`end`?v:b,C=[];for(let e=0;e<l.length;e++){let t=l[e],{height:a,width:o,top:s,right:u,bottom:w,left:T}=t.getBoundingClientRect();if(n===`if-needed`&&_>=0&&b>=0&&y<=f&&v<=d&&_>=s&&y<=w&&b>=T&&v<=u)return C;let E=getComputedStyle(t),ee=parseInt(E.borderLeftWidth,10),D=parseInt(E.borderTopWidth,10),O=parseInt(E.borderRightWidth,10),k=parseInt(E.borderBottomWidth,10),A=0,j=0,M=`offsetWidth`in t?t.offsetWidth-t.clientWidth-ee-O:0,N=`offsetHeight`in t?t.offsetHeight-t.clientHeight-D-k:0,te=`offsetWidth`in t?t.offsetWidth===0?0:o/t.offsetWidth:0,ne=`offsetHeight`in t?t.offsetHeight===0?0:a/t.offsetHeight:0;if(c===t)A=r===`start`?x:r===`end`?x-f:r===`nearest`?qF(m,m+f,f,D,k,m+x,m+x+h,h):x-f/2,j=i===`start`?S:i===`center`?S-d/2:i===`end`?S-d:qF(p,p+d,d,ee,O,p+S,p+S+g,g),A=Math.max(0,A+m),j=Math.max(0,j+p);else{A=r===`start`?x-s-D:r===`end`?x-w+k+N:r===`nearest`?qF(s,w,a,D,k+N,x,x+h,h):x-(s+a/2)+N/2,j=i===`start`?S-T-ee:i===`center`?S-(T+o/2)+M/2:i===`end`?S-u+O+M:qF(T,u,o,ee,O+M,S,S+g,g);let{scrollLeft:e,scrollTop:n}=t;A=Math.max(0,Math.min(n+A/ne,t.scrollHeight-a/ne+N)),j=Math.max(0,Math.min(e+j/te,t.scrollWidth-o/te+M)),x+=n-A,S+=e-j}C.push({el:t,top:A,left:j})}return C},X=pt(VF());UF();var XF=0;function ZF(){}function QF(e,t){e&&YF(e,{boundary:t,block:`nearest`,scrollMode:`if-needed`}).forEach(function(e){var t=e.el,n=e.top,r=e.left;t.scrollTop=n,t.scrollLeft=r})}function $F(e,t,n){return e===t||t instanceof n.Node&&e.contains&&e.contains(t)}function eI(e,t){var n;function r(){n&&clearTimeout(n)}function i(){var i=[...arguments];r(),n=setTimeout(function(){n=null,e.apply(void 0,i)},t)}return i.cancel=r,i}function tI(){var e=[...arguments];return function(t){var n=[...arguments].slice(1);return e.some(function(e){return e&&e.apply(void 0,[t].concat(n)),t.preventDownshiftDefault||t.hasOwnProperty(`nativeEvent`)&&t.nativeEvent.preventDownshiftDefault})}}function nI(){var e=[...arguments];return function(t){e.forEach(function(e){typeof e==`function`?e(t):e&&(e.current=t)})}}function rI(){return String(XF++)}function iI(e){var t=e.isOpen,n=e.resultCount,r=e.previousResultCount;return t?n?n===r?``:n+` result`+(n===1?` is`:`s are`)+` available, use up and down arrow keys to navigate. Press Enter key to select.`:`No results are available.`:``}function aI(e,t){return Object.keys(e).reduce(function(n,r){return n[r]=oI(t,r)?t[r]:e[r],n},{})}function oI(e,t){return e[t]!==void 0}function sI(e){var t=e.key,n=e.keyCode;return n>=37&&n<=40&&t.indexOf(`Arrow`)!==0?`Arrow`+t:t}function cI(e,t,n,r,i){if(i===void 0&&(i=!0),n===0)return-1;var a=n-1;(typeof t!=`number`||t<0||t>=n)&&(t=e>0?-1:a+1);var o=t+e;o<0?o=i?a:0:o>a&&(o=i?0:a);var s=lI(e,o,n,r,i);return s===-1?t>=n?-1:t:s}function lI(e,t,n,r,i){var a=r(t);if(!a||!a.hasAttribute(`disabled`))return t;if(e>0){for(var o=t+1;o<n;o++)if(!r(o).hasAttribute(`disabled`))return o}else for(var s=t-1;s>=0;s--)if(!r(s).hasAttribute(`disabled`))return s;return i?e>0?lI(1,0,n,r,!1):lI(-1,n-1,n,r,!1):-1}function uI(e,t,n,r){return r===void 0&&(r=!0),t.some(function(t){return t&&($F(t,e,n)||r&&$F(t,n.document.activeElement,n))})}var dI=eI(function(e){pI(e).textContent=``},500);function fI(e,t){var n=pI(t);e&&(n.textContent=e,dI(t))}function pI(e){e===void 0&&(e=document);var t=e.getElementById(`a11y-status-message`);return t||(t=e.createElement(`div`),t.setAttribute(`id`,`a11y-status-message`),t.setAttribute(`role`,`status`),t.setAttribute(`aria-live`,`polite`),t.setAttribute(`aria-relevant`,`additions text`),Object.assign(t.style,{border:`0`,clip:`rect(0 0 0 0)`,height:`1px`,margin:`-1px`,overflow:`hidden`,padding:`0`,position:`absolute`,width:`1px`}),e.body.appendChild(t),t)}var mI=[`isInitialMount`,`highlightedIndex`,`items`,`environment`],hI={highlightedIndex:-1,isOpen:!1,selectedItem:null,inputValue:``};function gI(e,t,n){var r=e.props,i=e.type,a={};Object.keys(t).forEach(function(r){_I(r,e,t,n),n[r]!==t[r]&&(a[r]=n[r])}),r.onStateChange&&Object.keys(a).length&&r.onStateChange(RF({type:i},a))}function _I(e,t,n,r){var i=t.props,a=t.type,o=`on`+EI(e)+`Change`;i[o]&&r[e]!==void 0&&r[e]!==n[e]&&i[o](RF({type:a},r))}function vI(e,t){return t.changes}function yI(e){var t=e.selectedItem,n=e.itemToString;return t?n(t)+` has been selected.`:``}var bI=eI(function(e,t){fI(e(),t)},200),xI=typeof window<`u`&&window.document!==void 0&&window.document.createElement!==void 0?L.useLayoutEffect:L.useEffect;function SI(e){var t=e.id,n=t===void 0?`downshift-`+rI():t,r=e.labelId,i=e.menuId,a=e.getItemId,o=e.toggleButtonId,s=e.inputId;return(0,L.useRef)({labelId:r||n+`-label`,menuId:i||n+`-menu`,getItemId:a||function(e){return n+`-item-`+e},toggleButtonId:o||n+`-toggle-button`,inputId:s||n+`-input`}).current}function CI(e,t,n,r){var i,a;if(e===void 0){if(t===void 0)throw Error(r);i=n[t],a=t}else a=t===void 0?n.indexOf(e):t,i=e;return[i,a]}function wI(e){return e?String(e):``}function TI(e){return/^\S{1}$/.test(e)}function EI(e){return``+e.slice(0,1).toUpperCase()+e.slice(1)}function DI(e){var t=(0,L.useRef)(e);return t.current=e,t}function OI(e,t,n){var r=(0,L.useRef)(),i=(0,L.useRef)(),a=(0,L.useReducer)((0,L.useCallback)(function(t,n){i.current=n,t=aI(t,n.props);var r=e(t,n);return n.props.stateReducer(t,RF({},n,{changes:r}))},[e]),t),o=a[0],s=a[1],c=DI(n),l=(0,L.useCallback)(function(e){return s(RF({props:c.current},e))},[c]),u=i.current;return(0,L.useEffect)(function(){u&&r.current&&r.current!==o&&gI(u,aI(r.current,u.props),o),r.current=o},[o,n,u]),[o,l]}function kI(e,t,n){var r=OI(e,t,n),i=r[0],a=r[1];return[aI(i,n),a]}var AI={itemToString:wI,stateReducer:vI,getA11ySelectionMessage:yI,scrollIntoView:QF,environment:typeof window>`u`?{}:window};function jI(e,t,n){n===void 0&&(n=hI);var r=e[`default`+EI(t)];return r===void 0?n[t]:r}function MI(e,t,n){n===void 0&&(n=hI);var r=e[t];if(r!==void 0)return r;var i=e[`initial`+EI(t)];return i===void 0?jI(e,t,n):i}function NI(e){var t=MI(e,`selectedItem`),n=MI(e,`isOpen`),r=MI(e,`highlightedIndex`),i=MI(e,`inputValue`);return{highlightedIndex:r<0&&t&&n?e.items.indexOf(t):r,isOpen:n,selectedItem:t,inputValue:i}}function PI(e,t,n){var r=e.items,i=e.initialHighlightedIndex,a=e.defaultHighlightedIndex,o=t.selectedItem,s=t.highlightedIndex;return r.length===0?-1:i!==void 0&&s===i?i:a===void 0?o?r.indexOf(o):n===0?-1:n<0?r.length-1:0:a}function FI(e,t,n,r){var i=(0,L.useRef)({isMouseDown:!1,isTouchMove:!1});return(0,L.useEffect)(function(){if(n?.addEventListener!=null){var a=function(){i.current.isMouseDown=!0},o=function(a){i.current.isMouseDown=!1,e&&!uI(a.target,t.map(function(e){return e.current}),n)&&r()},s=function(){i.current.isTouchMove=!1},c=function(){i.current.isTouchMove=!0},l=function(a){e&&!i.current.isTouchMove&&!uI(a.target,t.map(function(e){return e.current}),n,!1)&&r()};return n.addEventListener(`mousedown`,a),n.addEventListener(`mouseup`,o),n.addEventListener(`touchstart`,s),n.addEventListener(`touchmove`,c),n.addEventListener(`touchend`,l),function(){n.removeEventListener(`mousedown`,a),n.removeEventListener(`mouseup`,o),n.removeEventListener(`touchstart`,s),n.removeEventListener(`touchmove`,c),n.removeEventListener(`touchend`,l)}}},[e,n]),i}var II=function(){return ZF};function LI(e,t,n){var r=n.isInitialMount,i=n.highlightedIndex,a=n.items,o=n.environment,s=LF(n,mI);(0,L.useEffect)(function(){r||bI(function(){return e(RF({highlightedIndex:i,highlightedItem:a[i],resultCount:a.length},s))},o.document)},t)}function RI(e){var t=e.highlightedIndex,n=e.isOpen,r=e.itemRefs,i=e.getItemNodeFromIndex,a=e.menuElement,o=e.scrollIntoView,s=(0,L.useRef)(!0);return xI(function(){t<0||!n||!Object.keys(r.current).length||(s.current===!1?s.current=!0:o(i(t),a))},[t]),s}var zI=ZF;function BI(e,t,n){return n===void 0&&(n=!0),RF({isOpen:!1,highlightedIndex:-1},e.items?.length&&t>=0&&RF({selectedItem:e.items[t],isOpen:jI(e,`isOpen`),highlightedIndex:jI(e,`highlightedIndex`)},n&&{inputValue:e.itemToString(e.items[t])}))}function VI(e,t,n){var r=t.type,i=t.props,a;switch(r){case n.ItemMouseMove:a={highlightedIndex:t.disabled?-1:t.index};break;case n.MenuMouseLeave:a={highlightedIndex:-1};break;case n.ToggleButtonClick:case n.FunctionToggleMenu:a={isOpen:!e.isOpen,highlightedIndex:e.isOpen?-1:PI(i,e,0)};break;case n.FunctionOpenMenu:a={isOpen:!0,highlightedIndex:PI(i,e,0)};break;case n.FunctionCloseMenu:a={isOpen:!1};break;case n.FunctionSetHighlightedIndex:a={highlightedIndex:t.highlightedIndex};break;case n.FunctionSetInputValue:a={inputValue:t.inputValue};break;case n.FunctionReset:a={highlightedIndex:jI(i,`highlightedIndex`),isOpen:jI(i,`isOpen`),selectedItem:jI(i,`selectedItem`),inputValue:jI(i,`inputValue`)};break;default:throw Error(`Reducer called without proper action type.`)}return RF({},e,a)}function HI(e){for(var t=e.keysSoFar,n=e.highlightedIndex,r=e.items,i=e.itemToString,a=e.getItemNodeFromIndex,o=t.toLowerCase(),s=0;s<r.length;s++){var c=(s+n+ +(t.length<2))%r.length,l=r[c];if(l!==void 0&&i(l).toLowerCase().startsWith(o)&&!a(c)?.hasAttribute(`disabled`))return c}return n}X.default.array.isRequired,X.default.func,X.default.func,X.default.func,X.default.number,X.default.number,X.default.number,X.default.bool,X.default.bool,X.default.bool,X.default.any,X.default.any,X.default.any,X.default.string,X.default.string,X.default.string,X.default.func,X.default.string,X.default.func,X.default.func,X.default.func,X.default.func,X.default.func,X.default.shape({addEventListener:X.default.func,removeEventListener:X.default.func,document:X.default.shape({getElementById:X.default.func,activeElement:X.default.any,body:X.default.any})});function UI(e){var t=e.isOpen,n=e.resultCount,r=e.previousResultCount;return t?n?n===r?``:`${n} result${n===1?` is`:`s are`} available, use up and down arrow keys to navigate. Press Enter or Space Bar keys to select.`:`No results are available.`:``}var WI=dk(dk({},AI),{getA11yStatusMessage:UI}),GI=ZF,KI=0,qI=1,JI=2,YI=3,XI=4,ZI=5,QI=6,$I=7,eL=8,tL=9,nL=10,rL=11,iL=12,aL=13,oL=14,sL=15,cL=16,lL=17,uL=18,dL=19,fL=20,pL=21,mL=Object.freeze({__proto__:null,ToggleButtonClick:KI,ToggleButtonKeyDownArrowDown:qI,ToggleButtonKeyDownArrowUp:JI,ToggleButtonKeyDownCharacter:YI,ToggleButtonKeyDownEscape:XI,ToggleButtonKeyDownHome:ZI,ToggleButtonKeyDownEnd:QI,ToggleButtonKeyDownEnter:$I,ToggleButtonKeyDownSpaceButton:eL,ToggleButtonKeyDownPageUp:tL,ToggleButtonKeyDownPageDown:nL,ToggleButtonBlur:rL,MenuMouseLeave:iL,ItemMouseMove:aL,ItemClick:oL,FunctionToggleMenu:sL,FunctionOpenMenu:cL,FunctionCloseMenu:lL,FunctionSetHighlightedIndex:uL,FunctionSelectItem:dL,FunctionSetInputValue:fL,FunctionReset:pL});function hL(e,t){var n=t.type,r=t.props,i=t.altKey,a;switch(n){case oL:a={isOpen:jI(r,`isOpen`),highlightedIndex:jI(r,`highlightedIndex`),selectedItem:r.items[t.index]};break;case YI:var o=t.key,s=``+e.inputValue+o;a={inputValue:s,highlightedIndex:HI({keysSoFar:s,highlightedIndex:!e.isOpen&&e.selectedItem?r.items.indexOf(e.selectedItem):e.highlightedIndex,items:r.items,itemToString:r.itemToString,getItemNodeFromIndex:t.getItemNodeFromIndex}),isOpen:!0};break;case qI:a={highlightedIndex:e.isOpen?cI(1,e.highlightedIndex,r.items.length,t.getItemNodeFromIndex,!1):i&&e.selectedItem==null?-1:PI(r,e,1),isOpen:!0};break;case JI:a=e.isOpen&&i?BI(r,e.highlightedIndex,!1):{highlightedIndex:e.isOpen?cI(-1,e.highlightedIndex,r.items.length,t.getItemNodeFromIndex,!1):PI(r,e,-1),isOpen:!0};break;case $I:case eL:a=BI(r,e.highlightedIndex,!1);break;case ZI:a={highlightedIndex:lI(1,0,r.items.length,t.getItemNodeFromIndex,!1),isOpen:!0};break;case QI:a={highlightedIndex:lI(-1,r.items.length-1,r.items.length,t.getItemNodeFromIndex,!1),isOpen:!0};break;case tL:a={highlightedIndex:cI(-10,e.highlightedIndex,r.items.length,t.getItemNodeFromIndex,!1)};break;case nL:a={highlightedIndex:cI(10,e.highlightedIndex,r.items.length,t.getItemNodeFromIndex,!1)};break;case XI:a={isOpen:!1,highlightedIndex:-1};break;case rL:a=RF({isOpen:!1,highlightedIndex:-1},e.highlightedIndex>=0&&r.items?.length&&{selectedItem:r.items[e.highlightedIndex]});break;case dL:a={selectedItem:t.selectedItem};break;default:return VI(e,t,mL)}return RF({},e,a)}var gL=[`onMouseLeave`,`refKey`,`onKeyDown`,`onBlur`,`ref`],_L=[`onBlur`,`onClick`,`onPress`,`onKeyDown`,`refKey`,`ref`],vL=[`item`,`index`,`onMouseMove`,`onClick`,`onPress`,`refKey`,`ref`,`disabled`];yL.stateChangeTypes=mL;function yL(e){e===void 0&&(e={}),GI(e,yL);var t=RF({},WI,e),n=t.items,r=t.scrollIntoView,i=t.environment,a=t.itemToString,o=t.getA11ySelectionMessage,s=t.getA11yStatusMessage,c=kI(hL,NI(t),t),l=c[0],u=c[1],d=l.isOpen,f=l.highlightedIndex,p=l.selectedItem,m=l.inputValue,h=(0,L.useRef)(null),g=(0,L.useRef)(null),_=(0,L.useRef)({}),v=(0,L.useRef)(null),y=SI(t),b=(0,L.useRef)(),x=(0,L.useRef)(!0),S=DI({state:l,props:t}),C=(0,L.useCallback)(function(e){return _.current[y.getItemId(e)]},[y]);LI(s,[d,f,m,n],RF({isInitialMount:x.current,previousResultCount:b.current,items:n,environment:i,itemToString:a},l)),LI(o,[p],RF({isInitialMount:x.current,previousResultCount:b.current,items:n,environment:i,itemToString:a},l));var w=RI({menuElement:g.current,highlightedIndex:f,isOpen:d,itemRefs:_,scrollIntoView:r,getItemNodeFromIndex:C});(0,L.useEffect)(function(){return v.current=eI(function(e){e({type:fL,inputValue:``})},500),function(){v.current.cancel()}},[]),(0,L.useEffect)(function(){m&&v.current(u)},[u,m]),zI({isInitialMount:x.current,props:t,state:l}),(0,L.useEffect)(function(){x.current||(b.current=n.length)});var T=FI(d,[g,h],i,function(){u({type:rL})}),E=II(`getMenuProps`,`getToggleButtonProps`);(0,L.useEffect)(function(){return x.current=!1,function(){x.current=!0}},[]),(0,L.useEffect)(function(){d||(_.current={})},[d]);var ee=(0,L.useMemo)(function(){return{ArrowDown:function(e){e.preventDefault(),u({type:qI,getItemNodeFromIndex:C,altKey:e.altKey})},ArrowUp:function(e){e.preventDefault(),u({type:JI,getItemNodeFromIndex:C,altKey:e.altKey})},Home:function(e){e.preventDefault(),u({type:ZI,getItemNodeFromIndex:C})},End:function(e){e.preventDefault(),u({type:QI,getItemNodeFromIndex:C})},Escape:function(){S.current.state.isOpen&&u({type:XI})},Enter:function(e){e.preventDefault(),u({type:S.current.state.isOpen?$I:KI})},PageUp:function(e){S.current.state.isOpen&&(e.preventDefault(),u({type:tL,getItemNodeFromIndex:C}))},PageDown:function(e){S.current.state.isOpen&&(e.preventDefault(),u({type:nL,getItemNodeFromIndex:C}))}," ":function(e){e.preventDefault();var t=S.current.state;if(!t.isOpen){u({type:KI});return}t.inputValue?u({type:YI,key:` `,getItemNodeFromIndex:C}):u({type:eL})}}},[u,C,S]),D=(0,L.useCallback)(function(){u({type:sL})},[u]),O=(0,L.useCallback)(function(){u({type:lL})},[u]),k=(0,L.useCallback)(function(){u({type:cL})},[u]),A=(0,L.useCallback)(function(e){u({type:uL,highlightedIndex:e})},[u]),j=(0,L.useCallback)(function(e){u({type:dL,selectedItem:e})},[u]),M=(0,L.useCallback)(function(){u({type:pL})},[u]),N=(0,L.useCallback)(function(e){u({type:fL,inputValue:e})},[u]),te=(0,L.useCallback)(function(e){return RF({id:y.labelId,htmlFor:y.toggleButtonId},e)},[y]),ne=(0,L.useCallback)(function(e,t){var n,r=e===void 0?{}:e,i=r.onMouseLeave,a=r.refKey,o=a===void 0?`ref`:a;r.onKeyDown,r.onBlur;var s=r.ref,c=LF(r,gL),l=(t===void 0?{}:t).suppressRefError;return E(`getMenuProps`,l===void 0?!1:l,o,g),RF((n={},n[o]=nI(s,function(e){g.current=e}),n.id=y.menuId,n.role=`listbox`,n[`aria-labelledby`]=c&&c[`aria-label`]?void 0:``+y.labelId,n.onMouseLeave=tI(i,function(){u({type:iL})}),n),c)},[u,E,y]);return{getToggleButtonProps:(0,L.useCallback)(function(e,t){var n,r=e===void 0?{}:e,i=r.onBlur,a=r.onClick;r.onPress;var o=r.onKeyDown,s=r.refKey,c=s===void 0?`ref`:s,l=r.ref,d=LF(r,_L),f=(t===void 0?{}:t).suppressRefError,p=f===void 0?!1:f,m=S.current.state,g=function(){u({type:KI})},_=function(){m.isOpen&&!T.current.isMouseDown&&u({type:rL})},v=function(e){var t=sI(e);t&&ee[t]?ee[t](e):TI(t)&&u({type:YI,key:t,getItemNodeFromIndex:C})},b=RF((n={},n[c]=nI(l,function(e){h.current=e}),n[`aria-activedescendant`]=m.isOpen&&m.highlightedIndex>-1?y.getItemId(m.highlightedIndex):``,n[`aria-controls`]=y.menuId,n[`aria-expanded`]=S.current.state.isOpen,n[`aria-haspopup`]=`listbox`,n[`aria-labelledby`]=d&&d[`aria-label`]?void 0:``+y.labelId,n.id=y.toggleButtonId,n.role=`combobox`,n.tabIndex=0,n.onBlur=tI(i,_),n),d);return d.disabled||(b.onClick=tI(a,g),b.onKeyDown=tI(o,v)),E(`getToggleButtonProps`,p,c,h),b},[S,y,E,u,T,ee,C]),getLabelProps:te,getMenuProps:ne,getItemProps:(0,L.useCallback)(function(e){var t,n=e===void 0?{}:e,r=n.item,i=n.index,a=n.onMouseMove,o=n.onClick;n.onPress;var s=n.refKey,c=s===void 0?`ref`:s,l=n.ref,d=n.disabled,f=LF(n,vL),m=S.current,h=m.state,g=m.props,v=CI(r,i,g.items,`Pass either item or index to getItemProps!`),b=v[0],x=v[1],C=function(){x!==h.highlightedIndex&&(w.current=!1,u({type:aL,index:x,disabled:d}))},T=function(){u({type:oL,index:x})},E=RF((t={disabled:d,role:`option`,"aria-selected":``+(b===p),id:y.getItemId(x)},t[c]=nI(l,function(e){e&&(_.current[y.getItemId(x)]=e)}),t),f);return d||(E.onClick=tI(o,T)),E.onMouseMove=tI(a,C),E},[S,p,y,w,u]),toggleMenu:D,openMenu:k,closeMenu:O,setHighlightedIndex:A,selectItem:j,reset:M,setInputValue:N,highlightedIndex:f,isOpen:d,selectedItem:p,inputValue:m}}var bL=0,xL=1,SL=2,CL=3,wL=4,TL=5,EL=6,DL=7,OL=8,kL=9,AL=10,jL=11,ML=12,NL=13,PL=14,FL=15,IL=16,LL=17,RL=18,zL=19,BL=20,VL=21,HL=22,UL=Object.freeze({__proto__:null,InputKeyDownArrowDown:bL,InputKeyDownArrowUp:xL,InputKeyDownEscape:SL,InputKeyDownHome:CL,InputKeyDownEnd:wL,InputKeyDownPageUp:TL,InputKeyDownPageDown:EL,InputKeyDownEnter:DL,InputChange:OL,InputBlur:kL,InputFocus:AL,MenuMouseLeave:jL,ItemMouseMove:ML,ItemClick:NL,ToggleButtonClick:PL,FunctionToggleMenu:FL,FunctionOpenMenu:IL,FunctionCloseMenu:LL,FunctionSetHighlightedIndex:RL,FunctionSelectItem:zL,FunctionSetInputValue:BL,FunctionReset:VL,ControlledPropUpdatedSelectedItem:HL});function WL(e){var t=NI(e),n=t.selectedItem,r=t.inputValue;return r===``&&n&&e.defaultInputValue===void 0&&e.initialInputValue===void 0&&e.inputValue===void 0&&(r=e.itemToString(n)),RF({},t,{inputValue:r})}X.default.array.isRequired,X.default.func,X.default.func,X.default.func,X.default.func,X.default.number,X.default.number,X.default.number,X.default.bool,X.default.bool,X.default.bool,X.default.any,X.default.any,X.default.any,X.default.string,X.default.string,X.default.string,X.default.string,X.default.string,X.default.string,X.default.func,X.default.string,X.default.string,X.default.func,X.default.func,X.default.func,X.default.func,X.default.func,X.default.func,X.default.shape({addEventListener:X.default.func,removeEventListener:X.default.func,document:X.default.shape({getElementById:X.default.func,activeElement:X.default.any,body:X.default.any})});function GL(e,t,n){var r=(0,L.useRef)(),i=OI(e,t,n),a=i[0],o=i[1];return(0,L.useEffect)(function(){oI(n,`selectedItem`)&&(n.selectedItemChanged(r.current,n.selectedItem)&&o({type:HL,inputValue:n.itemToString(n.selectedItem)}),r.current=a.selectedItem===r.current?n.selectedItem:a.selectedItem)},[a.selectedItem,n.selectedItem]),[aI(a,n),o]}var KL=ZF,qL=RF({},AI,{selectedItemChanged:function(e,t){return e!==t},getA11yStatusMessage:iI});function JL(e,t){var n=t.type,r=t.props,i=t.altKey,a;switch(n){case NL:a={isOpen:jI(r,`isOpen`),highlightedIndex:jI(r,`highlightedIndex`),selectedItem:r.items[t.index],inputValue:r.itemToString(r.items[t.index])};break;case bL:a=e.isOpen?{highlightedIndex:cI(1,e.highlightedIndex,r.items.length,t.getItemNodeFromIndex,!0)}:{highlightedIndex:i&&e.selectedItem==null?-1:PI(r,e,1,t.getItemNodeFromIndex),isOpen:r.items.length>=0};break;case xL:a=e.isOpen?i?BI(r,e.highlightedIndex):{highlightedIndex:cI(-1,e.highlightedIndex,r.items.length,t.getItemNodeFromIndex,!0)}:{highlightedIndex:PI(r,e,-1,t.getItemNodeFromIndex),isOpen:r.items.length>=0};break;case DL:a=BI(r,e.highlightedIndex);break;case SL:a=RF({isOpen:!1,highlightedIndex:-1},!e.isOpen&&{selectedItem:null,inputValue:``});break;case TL:a={highlightedIndex:cI(-10,e.highlightedIndex,r.items.length,t.getItemNodeFromIndex,!1)};break;case EL:a={highlightedIndex:cI(10,e.highlightedIndex,r.items.length,t.getItemNodeFromIndex,!1)};break;case CL:a={highlightedIndex:lI(1,0,r.items.length,t.getItemNodeFromIndex,!1)};break;case wL:a={highlightedIndex:lI(-1,r.items.length-1,r.items.length,t.getItemNodeFromIndex,!1)};break;case kL:a=RF({isOpen:!1,highlightedIndex:-1},e.highlightedIndex>=0&&r.items?.length&&t.selectItem&&{selectedItem:r.items[e.highlightedIndex],inputValue:r.itemToString(r.items[e.highlightedIndex])});break;case OL:a={isOpen:!0,highlightedIndex:jI(r,`highlightedIndex`),inputValue:t.inputValue};break;case AL:a={isOpen:!0,highlightedIndex:PI(r,e,0)};break;case zL:a={selectedItem:t.selectedItem,inputValue:r.itemToString(t.selectedItem)};break;case HL:a={inputValue:t.inputValue};break;default:return VI(e,t,UL)}return RF({},e,a)}var YL=[`onMouseLeave`,`refKey`,`ref`],XL=[`item`,`index`,`refKey`,`ref`,`onMouseMove`,`onMouseDown`,`onClick`,`onPress`,`disabled`],ZL=[`onClick`,`onPress`,`refKey`,`ref`],QL=[`onKeyDown`,`onChange`,`onInput`,`onFocus`,`onBlur`,`onChangeText`,`refKey`,`ref`];$L.stateChangeTypes=UL;function $L(e){e===void 0&&(e={}),KL(e,$L);var t=RF({},qL,e),n=t.initialIsOpen,r=t.defaultIsOpen,i=t.items,a=t.scrollIntoView,o=t.environment,s=t.getA11yStatusMessage,c=t.getA11ySelectionMessage,l=t.itemToString,u=GL(JL,WL(t),t),d=u[0],f=u[1],p=d.isOpen,m=d.highlightedIndex,h=d.selectedItem,g=d.inputValue,_=(0,L.useRef)(null),v=(0,L.useRef)({}),y=(0,L.useRef)(null),b=(0,L.useRef)(null),x=(0,L.useRef)(!0),S=SI(t),C=(0,L.useRef)(),w=DI({state:d,props:t}),T=(0,L.useCallback)(function(e){return v.current[S.getItemId(e)]},[S]);LI(s,[p,m,g,i],RF({isInitialMount:x.current,previousResultCount:C.current,items:i,environment:o,itemToString:l},d)),LI(c,[h],RF({isInitialMount:x.current,previousResultCount:C.current,items:i,environment:o,itemToString:l},d));var E=RI({menuElement:_.current,highlightedIndex:m,isOpen:p,itemRefs:v,scrollIntoView:a,getItemNodeFromIndex:T});zI({isInitialMount:x.current,props:t,state:d}),(0,L.useEffect)(function(){(n||r||p)&&y.current&&y.current.focus()},[]),(0,L.useEffect)(function(){x.current||(C.current=i.length)});var ee=FI(p,[y,_,b],o,function(){f({type:kL,selectItem:!1})}),D=II(`getInputProps`,`getMenuProps`);(0,L.useEffect)(function(){return x.current=!1,function(){x.current=!0}},[]),(0,L.useEffect)(function(){if(!p)v.current={};else if(o.document?.activeElement!==y.current){var e;y==null||(e=y.current)==null||e.focus()}},[p,o]);var O=(0,L.useMemo)(function(){return{ArrowDown:function(e){e.preventDefault(),f({type:bL,altKey:e.altKey,getItemNodeFromIndex:T})},ArrowUp:function(e){e.preventDefault(),f({type:xL,altKey:e.altKey,getItemNodeFromIndex:T})},Home:function(e){w.current.state.isOpen&&(e.preventDefault(),f({type:CL,getItemNodeFromIndex:T}))},End:function(e){w.current.state.isOpen&&(e.preventDefault(),f({type:wL,getItemNodeFromIndex:T}))},Escape:function(e){var t=w.current.state;(t.isOpen||t.inputValue||t.selectedItem||t.highlightedIndex>-1)&&(e.preventDefault(),f({type:SL}))},Enter:function(e){!w.current.state.isOpen||e.which===229||(e.preventDefault(),f({type:DL,getItemNodeFromIndex:T}))},PageUp:function(e){w.current.state.isOpen&&(e.preventDefault(),f({type:TL,getItemNodeFromIndex:T}))},PageDown:function(e){w.current.state.isOpen&&(e.preventDefault(),f({type:EL,getItemNodeFromIndex:T}))}}},[f,w,T]),k=(0,L.useCallback)(function(e){return RF({id:S.labelId,htmlFor:S.inputId},e)},[S]),A=(0,L.useCallback)(function(e,t){var n,r=e===void 0?{}:e,i=r.onMouseLeave,a=r.refKey,o=a===void 0?`ref`:a,s=r.ref,c=LF(r,YL),l=(t===void 0?{}:t).suppressRefError;return D(`getMenuProps`,l===void 0?!1:l,o,_),RF((n={},n[o]=nI(s,function(e){_.current=e}),n.id=S.menuId,n.role=`listbox`,n[`aria-labelledby`]=c&&c[`aria-label`]?void 0:``+S.labelId,n.onMouseLeave=tI(i,function(){f({type:jL})}),n),c)},[f,D,S]),j=(0,L.useCallback)(function(e){var t,n,r=e===void 0?{}:e,i=r.item,a=r.index,o=r.refKey,s=o===void 0?`ref`:o,c=r.ref,l=r.onMouseMove,u=r.onMouseDown,d=r.onClick;r.onPress;var p=r.disabled,m=LF(r,XL),h=w.current,g=h.props,_=h.state,y=CI(i,a,g.items,`Pass either item or index to getItemProps!`)[1],b=`onClick`,x=d;return RF((t={},t[s]=nI(c,function(e){e&&(v.current[S.getItemId(y)]=e)}),t.disabled=p,t.role=`option`,t[`aria-selected`]=``+(y===_.highlightedIndex),t.id=S.getItemId(y),t),!p&&(n={},n[b]=tI(x,function(){f({type:NL,index:y})}),n),{onMouseMove:tI(l,function(){y!==_.highlightedIndex&&(E.current=!1,f({type:ML,index:y,disabled:p}))}),onMouseDown:tI(u,function(e){return e.preventDefault()})},m)},[f,w,E,S]),M=(0,L.useCallback)(function(e){var t,n=e===void 0?{}:e,r=n.onClick;n.onPress;var i=n.refKey,a=i===void 0?`ref`:i,o=n.ref,s=LF(n,ZL),c=w.current.state;return RF((t={},t[a]=nI(o,function(e){b.current=e}),t[`aria-controls`]=S.menuId,t[`aria-expanded`]=c.isOpen,t.id=S.toggleButtonId,t.tabIndex=-1,t),!s.disabled&&RF({},{onClick:tI(r,function(){f({type:PL})})}),s)},[f,w,S]),N=(0,L.useCallback)(function(e,t){var n,r=e===void 0?{}:e,i=r.onKeyDown,a=r.onChange,s=r.onInput,c=r.onFocus,l=r.onBlur;r.onChangeText;var u=r.refKey,d=u===void 0?`ref`:u,p=r.ref,m=LF(r,QL),h=(t===void 0?{}:t).suppressRefError;D(`getInputProps`,h===void 0?!1:h,d,y);var g=w.current.state,_=function(e){var t=sI(e);t&&O[t]&&O[t](e)},v=function(e){f({type:OL,inputValue:e.target.value})},b=function(e){g.isOpen&&!ee.current.isMouseDown&&f({type:kL,selectItem:!(e.relatedTarget===null&&o.document.activeElement!==o.document.body)})},x=function(){g.isOpen||f({type:AL})},C=`onChange`,T={};if(!m.disabled){var E;T=(E={},E[C]=tI(a,s,v),E.onKeyDown=tI(i,_),E.onBlur=tI(l,b),E.onFocus=tI(c,x),E)}return RF((n={},n[d]=nI(p,function(e){y.current=e}),n[`aria-activedescendant`]=g.isOpen&&g.highlightedIndex>-1?S.getItemId(g.highlightedIndex):``,n[`aria-autocomplete`]=`list`,n[`aria-controls`]=S.menuId,n[`aria-expanded`]=g.isOpen,n[`aria-labelledby`]=m&&m[`aria-label`]?void 0:``+S.labelId,n.autoComplete=`off`,n.id=S.inputId,n.role=`combobox`,n.value=g.inputValue,n),T,m)},[D,w,S,O,f,ee,o]),te=(0,L.useCallback)(function(){f({type:FL})},[f]),ne=(0,L.useCallback)(function(){f({type:LL})},[f]),re=(0,L.useCallback)(function(){f({type:IL})},[f]),ie=(0,L.useCallback)(function(e){f({type:RL,highlightedIndex:e})},[f]),ae=(0,L.useCallback)(function(e){f({type:zL,selectedItem:e})},[f]);return{getItemProps:j,getLabelProps:k,getMenuProps:A,getInputProps:N,getToggleButtonProps:M,toggleMenu:te,openMenu:re,closeMenu:ne,setHighlightedIndex:ie,setInputValue:(0,L.useCallback)(function(e){f({type:BL,inputValue:e})},[f]),selectItem:ae,reset:(0,L.useCallback)(function(){f({type:VL})},[f]),highlightedIndex:m,isOpen:p,selectedItem:h,inputValue:g}}var eR={activeIndex:-1,selectedItems:[]};function tR(e,t){return MI(e,t,eR)}function nR(e,t){return jI(e,t,eR)}function rR(e){return{activeIndex:tR(e,`activeIndex`),selectedItems:tR(e,`selectedItems`)}}function iR(e){if(e.shiftKey||e.metaKey||e.ctrlKey||e.altKey)return!1;var t=e.target;return!(t instanceof HTMLInputElement&&t.value!==``&&(t.selectionStart!==0||t.selectionEnd!==0))}function aR(e){var t=e.removedSelectedItem,n=e.itemToString;return n(t)+` has been removed.`}X.default.array,X.default.array,X.default.array,X.default.func,X.default.func,X.default.func,X.default.number,X.default.number,X.default.number,X.default.func,X.default.func,X.default.string,X.default.string,X.default.shape({addEventListener:X.default.func,removeEventListener:X.default.func,document:X.default.shape({getElementById:X.default.func,activeElement:X.default.any,body:X.default.any})});var oR={itemToString:AI.itemToString,stateReducer:AI.stateReducer,environment:AI.environment,getA11yRemovalMessage:aR,keyNavigationNext:`ArrowRight`,keyNavigationPrevious:`ArrowLeft`},sR=ZF,cR=0,lR=1,uR=2,dR=3,fR=4,pR=5,mR=6,hR=7,gR=8,_R=9,vR=10,yR=11,bR=12,xR=Object.freeze({__proto__:null,SelectedItemClick:cR,SelectedItemKeyDownDelete:lR,SelectedItemKeyDownBackspace:uR,SelectedItemKeyDownNavigationNext:dR,SelectedItemKeyDownNavigationPrevious:fR,DropdownKeyDownNavigationPrevious:pR,DropdownKeyDownBackspace:mR,DropdownClick:hR,FunctionAddSelectedItem:gR,FunctionRemoveSelectedItem:_R,FunctionSetSelectedItems:vR,FunctionSetActiveIndex:yR,FunctionReset:bR});function SR(e,t){var n=t.type,r=t.index,i=t.props,a=t.selectedItem,o=e.activeIndex,s=e.selectedItems,c;switch(n){case cR:c={activeIndex:r};break;case fR:c={activeIndex:o-1<0?0:o-1};break;case dR:c={activeIndex:o+1>=s.length?-1:o+1};break;case uR:case lR:if(o<0)break;var l=o;s.length===1?l=-1:o===s.length-1&&(l=s.length-2),c=RF({selectedItems:[].concat(s.slice(0,o),s.slice(o+1))},{activeIndex:l});break;case pR:c={activeIndex:s.length-1};break;case mR:c={selectedItems:s.slice(0,s.length-1)};break;case gR:c={selectedItems:[].concat(s,[a])};break;case hR:c={activeIndex:-1};break;case _R:var u=o,d=s.indexOf(a);if(d<0)break;s.length===1?u=-1:d===s.length-1&&(u=s.length-2),c={selectedItems:[].concat(s.slice(0,d),s.slice(d+1)),activeIndex:u};break;case vR:c={selectedItems:t.selectedItems};break;case yR:c={activeIndex:t.activeIndex};break;case bR:c={activeIndex:nR(i,`activeIndex`),selectedItems:nR(i,`selectedItems`)};break;default:throw Error(`Reducer called without proper action type.`)}return RF({},e,c)}var CR=[`refKey`,`ref`,`onClick`,`onKeyDown`,`selectedItem`,`index`],wR=[`refKey`,`ref`,`onKeyDown`,`onClick`,`preventKeyAction`];TR.stateChangeTypes=xR;function TR(e){e===void 0&&(e={}),sR(e,TR);var t=RF({},oR,e),n=t.getA11yRemovalMessage,r=t.itemToString,i=t.environment,a=t.keyNavigationNext,o=t.keyNavigationPrevious,s=kI(SR,rR(t),t),c=s[0],l=s[1],u=c.activeIndex,d=c.selectedItems,f=(0,L.useRef)(!0),p=(0,L.useRef)(null),m=(0,L.useRef)(d),h=(0,L.useRef)();h.current=[];var g=DI({state:c,props:t});(0,L.useEffect)(function(){if(!f.current){if(d.length<m.current.length){var e=m.current.find(function(e){return d.indexOf(e)<0});fI(n({itemToString:r,resultCount:d.length,removedSelectedItem:e,activeIndex:u,activeSelectedItem:d[u]}),i.document)}m.current=d}},[d.length]),(0,L.useEffect)(function(){f.current||(u===-1&&p.current?p.current.focus():h.current[u]&&h.current[u].focus())},[u]),zI({isInitialMount:f.current,props:t,state:c});var _=II(`getDropdownProps`);(0,L.useEffect)(function(){return f.current=!1,function(){f.current=!0}},[]);var v=(0,L.useMemo)(function(){var e;return e={},e[o]=function(){l({type:fR})},e[a]=function(){l({type:dR})},e.Delete=function(){l({type:lR})},e.Backspace=function(){l({type:uR})},e},[l,a,o]),y=(0,L.useMemo)(function(){var e;return e={},e[o]=function(e){iR(e)&&l({type:pR})},e.Backspace=function(e){iR(e)&&l({type:mR})},e},[l,o]);return{getSelectedItemProps:(0,L.useCallback)(function(e){var t,n=e===void 0?{}:e,r=n.refKey,i=r===void 0?`ref`:r,a=n.ref,o=n.onClick,s=n.onKeyDown,c=n.selectedItem,u=n.index,d=LF(n,CR),f=g.current.state,p=CI(c,u,f.selectedItems,`Pass either item or index to getSelectedItemProps!`)[1],m=p>-1&&p===f.activeIndex;return RF((t={},t[i]=nI(a,function(e){e&&h.current.push(e)}),t.tabIndex=m?0:-1,t.onClick=tI(o,function(){l({type:cR,index:p})}),t.onKeyDown=tI(s,function(e){var t=sI(e);t&&v[t]&&v[t](e)}),t),d)},[l,g,v]),getDropdownProps:(0,L.useCallback)(function(e,t){var n,r=e===void 0?{}:e,i=r.refKey,a=i===void 0?`ref`:i,o=r.ref,s=r.onKeyDown,c=r.onClick,u=r.preventKeyAction,d=u===void 0?!1:u,f=LF(r,wR),m=(t===void 0?{}:t).suppressRefError;return _(`getDropdownProps`,m===void 0?!1:m,a,p),RF((n={},n[a]=nI(o,function(e){e&&(p.current=e)}),n),!d&&{onKeyDown:tI(s,function(e){var t=sI(e);t&&y[t]&&y[t](e)}),onClick:tI(c,function(){l({type:hR})})},f)},[l,y,_]),addSelectedItem:(0,L.useCallback)(function(e){l({type:gR,selectedItem:e})},[l]),removeSelectedItem:(0,L.useCallback)(function(e){l({type:_R,selectedItem:e})},[l]),setSelectedItems:(0,L.useCallback)(function(e){l({type:vR,selectedItems:e})},[l]),setActiveIndex:(0,L.useCallback)(function(e){l({type:yR,activeIndex:e})},[l]),reset:(0,L.useCallback)(function(){l({type:bR})},[l]),selectedItems:d,activeIndex:u}}var ER=20,DR=e=>e.suggestions.length>0?L.createElement(OR,{...e}):L.createElement(`input`,{className:J.textInput,size:40,autoFocus:!0,...e.register(e.inputName)}),OR=({autofocus:e,suggestions:t,control:n,inputName:r,placeholder:i,initialInputValue:a,setValue:o})=>{let[s,c]=L.useState(t.slice(0,ER)),l=xn(xx),u=t.length>0,{isOpen:d,getToggleButtonProps:f,getMenuProps:p,getInputProps:m,highlightedIndex:h,getItemProps:g,selectedItem:_}=$L({initialInputValue:a,onInputValueChange({inputValue:e=``}){o(r,e),e=e.toLowerCase()||``;let n=[];for(let r of t)if(r.toLowerCase().includes(e)&&(n.push(r),n.length>=ER))break;c(n)},items:s,itemToString(e){return e??``}}),v=d&&s.length>0;return L.createElement(`div`,{className:J.downshiftAutocompleteContainer},L.createElement(`div`,{"data-visible-dropdown":v,className:J.downshiftInputWrapper},L.createElement(AP,{name:r,control:n,render:({field:t})=>{let n=m();return L.createElement(`input`,{...n,name:t.name,placeholder:i,className:J.downshiftInput,size:30,"data-editor-dialog":!0,autoFocus:e})}}),u&&L.createElement(`button`,{"aria-label":`toggle menu`,type:`button`,...f()},l(`arrow_drop_down`))),L.createElement(`div`,{className:J.downshiftAutocompleteContainer},L.createElement(`ul`,{...p(),"data-visible":v},s.map((e,t)=>L.createElement(`li`,{"data-selected":_===e,"data-highlighted":h===t,key:`${e}${t}`,...g({item:e,index:t})},e)))))},kR=()=>{let[e,t,n,r,i]=Sn(QR,rz,rx,ez,cz),a=Cn(lz),o=Cn(oz),s=Xx(),{register:c,handleSubmit:l,control:u,setValue:d,reset:f}=IF({values:t.type===`editing`?t.initialValues:{}}),p=()=>{f({src:``,title:``,altText:``,width:void 0,height:void 0})};return t.type===`inactive`?null:L.createElement(GN,{open:!0,onOpenChange:e=>{e||(o(),p())}},L.createElement(KN,{container:n?.current},L.createElement(qN,{className:J.dialogOverlay}),L.createElement(JN,{className:J.dialogContent,onOpenAutoFocus:e=>{e.preventDefault()}},L.createElement(YN,null,s(`uploadImage.dialogTitle`,`Upload an image`)),L.createElement(`form`,{onSubmit:async e=>{e.preventDefault(),e.stopPropagation(),await l(a)(e),p()},className:J.multiFieldForm},r===null?L.createElement(`input`,{type:`hidden`,accept:`image/*`,...c(`file`)}):L.createElement(`div`,{className:J.formField},L.createElement(`label`,{htmlFor:`file`},s(`uploadImage.uploadInstructions`,`Upload an image from your device:`)),L.createElement(`input`,{type:`file`,accept:`image/*`,...c(`file`)})),L.createElement(`div`,{className:J.formField},L.createElement(`label`,{htmlFor:`src`},r===null?s(`uploadImage.addViaUrlInstructionsNoUpload`,`Add an image from an URL:`):s(`uploadImage.addViaUrlInstructions`,`Or add an image from an URL:`)),L.createElement(DR,{register:c,initialInputValue:t.type===`editing`?t.initialValues.src??``:``,inputName:`src`,suggestions:e,setValue:d,control:u,placeholder:s(`uploadImage.autoCompletePlaceholder`,`Select or paste an image src`)})),L.createElement(`div`,{className:J.formField},L.createElement(`label`,{htmlFor:`alt`},s(`uploadImage.alt`,`Alt:`)),L.createElement(`input`,{type:`text`,...c(`altText`),className:J.textInput})),L.createElement(`div`,{className:J.formField},L.createElement(`label`,{htmlFor:`title`},s(`uploadImage.title`,`Title:`)),L.createElement(`input`,{type:`text`,...c(`title`),className:J.textInput})),i&&L.createElement(`div`,{className:J.imageDimensionsContainer},L.createElement(`div`,{className:J.formField},L.createElement(`label`,{htmlFor:`width`},s(`uploadImage.width`,`Width:`)),L.createElement(`input`,{type:`number`,min:0,...c(`width`),className:J.textInput})),L.createElement(`div`,{className:J.formField},L.createElement(`label`,{htmlFor:`height`},s(`uploadImage.height`,`Height:`)),L.createElement(`input`,{type:`number`,min:0,...c(`height`),className:J.textInput}))),L.createElement(`div`,{style:{display:`flex`,justifyContent:`flex-end`,gap:`var(--spacing-2)`}},L.createElement(`button`,{type:`submit`,title:s(`dialogControls.save`,`Save`),"aria-label":s(`dialogControls.save`,`Save`),className:(0,jC.default)(J.primaryButton)},s(`dialogControls.save`,`Save`)),L.createElement(XN,{asChild:!0},L.createElement(`button`,{type:`reset`,title:s(`dialogControls.cancel`,`Cancel`),"aria-label":s(`dialogControls.cancel`,`Cancel`),className:(0,jC.default)(J.secondaryButton)},s(`dialogControls.cancel`,`Cancel`))))))))};function AR(e,t,n){return Math.min(Math.max(e,t),n)}var jR={east:1,north:8,south:2,west:4};function MR({onResizeStart:e,onResizeEnd:t,imageRef:n,maxWidth:r,editor:i}){let a=(0,L.useRef)(null),o=(0,L.useRef)({priority:``,value:`default`}),s=(0,L.useRef)({currentHeight:0,currentWidth:0,direction:0,isResizing:!1,ratio:0,startHeight:0,startWidth:0,startX:0,startY:0}),c=i.getRootElement(),l=r??(c===null?100:c.getBoundingClientRect().width-20),u=c===null?100:c.getBoundingClientRect().height-20,d=e=>{let t=e===jR.east||e===jR.west,n=e===jR.north||e===jR.south,r=e&jR.north&&e&jR.west||e&jR.south&&e&jR.east,i=t?`ew`:n?`ns`:r?`nwse`:`nesw`;c!==null&&c.style.setProperty(`cursor`,`${i}-resize`,`important`),document.body!==null&&(document.body.style.setProperty(`cursor`,`${i}-resize`,`important`),o.current.value=document.body.style.getPropertyValue(`-webkit-user-select`),o.current.priority=document.body.style.getPropertyPriority(`-webkit-user-select`),document.body.style.setProperty(`-webkit-user-select`,`none`,`important`))},f=()=>{c!==null&&c.style.setProperty(`cursor`,`text`),document.body!==null&&(document.body.style.setProperty(`cursor`,`default`),document.body.style.setProperty(`-webkit-user-select`,o.current.value,o.current.priority))},p=(t,r)=>{if(!i.isEditable())return;let o=n.current,c=a.current;if(o!==null&&c!==null){t.preventDefault();let{width:n,height:i}=o.getBoundingClientRect(),a=s.current;a.startWidth=n,a.startHeight=i,a.ratio=n/i,a.currentWidth=n,a.currentHeight=i,a.startX=t.clientX,a.startY=t.clientY,a.isResizing=!0,a.direction=r,d(r),e(),c.classList.add(J.imageControlWrapperResizing),o.style.height=`${i}px`,o.style.width=`${n}px`,document.addEventListener(`pointermove`,m),document.addEventListener(`pointerup`,h)}},m=e=>{let t=n.current,r=s.current,i=r.direction&(jR.east|jR.west),a=r.direction&(jR.south|jR.north);if(t!==null&&r.isResizing)if(i&&a){let n=Math.floor(r.startX-e.clientX);n=r.direction&jR.east?-n:n;let i=AR(r.startWidth+n,100,l),a=i/r.ratio;t.style.width=`${i}px`,t.style.height=`${a}px`,r.currentHeight=a,r.currentWidth=i}else if(a){let n=Math.floor(r.startY-e.clientY);n=r.direction&jR.south?-n:n;let i=AR(r.startHeight+n,100,u);t.style.height=`${i}px`,r.currentHeight=i}else{let n=Math.floor(r.startX-e.clientX);n=r.direction&jR.east?-n:n;let i=AR(r.startWidth+n,100,l);t.style.width=`${i}px`,r.currentWidth=i}},h=()=>{let e=n.current,r=s.current,i=a.current;if(e!==null&&i!==null&&r.isResizing){let e=r.currentWidth,n=r.currentHeight;r.startWidth=0,r.startHeight=0,r.ratio=0,r.startX=0,r.startY=0,r.currentWidth=0,r.currentHeight=0,r.isResizing=!1,i.classList.remove(J.imageControlWrapperResizing),f(),t(e,n),document.removeEventListener(`pointermove`,m),document.removeEventListener(`pointerup`,h)}};return L.createElement(`div`,{ref:a},L.createElement(`div`,{className:(0,jC.default)(J.imageResizer,J.imageResizerN),onPointerDown:e=>{p(e,jR.north)}}),L.createElement(`div`,{className:(0,jC.default)(J.imageResizer,J.imageResizerNe),onPointerDown:e=>{p(e,jR.north|jR.east)}}),L.createElement(`div`,{className:(0,jC.default)(J.imageResizer,J.imageResizerE),onPointerDown:e=>{p(e,jR.east)}}),L.createElement(`div`,{className:(0,jC.default)(J.imageResizer,J.imageResizerSe),onPointerDown:e=>{p(e,jR.south|jR.east)}}),L.createElement(`div`,{className:(0,jC.default)(J.imageResizer,J.imageResizerS),onPointerDown:e=>{p(e,jR.south)}}),L.createElement(`div`,{className:(0,jC.default)(J.imageResizer,J.imageResizerSw),onPointerDown:e=>{p(e,jR.south|jR.west)}}),L.createElement(`div`,{className:(0,jC.default)(J.imageResizer,J.imageResizerW),onPointerDown:e=>{p(e,jR.west)}}),L.createElement(`div`,{className:(0,jC.default)(J.imageResizer,J.imageResizerNw),onPointerDown:e=>{p(e,jR.north|jR.west)}}))}var NR=`data:image/svg+xml;charset=utf-8,%0A%20%20%20%20%3Csvg%20id%3D%22imgLoadError%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22100%22%20height%3D%22100%22%3E%0A%20%20%20%20%20%20%3Crect%20x%3D%220%22%20y%3D%220%22%20width%3D%22100%22%20height%3D%22100%22%20fill%3D%22none%22%20stroke%3D%22red%22%20stroke-width%3D%224%22%20stroke-dasharray%3D%224%22%20%2F%3E%0A%20%20%20%20%20%20%3Ctext%20x%3D%2250%22%20y%3D%2255%22%20text-anchor%3D%22middle%22%20font-size%3D%2220%22%20fill%3D%22red%22%3E%E2%9A%A0%EF%B8%8F%3C%2Ftext%3E%0A%20%20%20%20%3C%2Fsvg%3E%0A`,PR={__cache:{},read(e){if(this.__cache[e]||(this.__cache[e]=new Promise(t=>{let n=new Image;n.onerror=()=>{this.__cache[e]=NR,t()},n.onload=()=>{this.__cache[e]=e,t()},n.src=e})),this.__cache[e]instanceof Promise)throw this.__cache[e];return this.__cache[e]}};function FR({title:e,alt:t,className:n,imageRef:r,src:i,width:a,height:o}){return L.createElement(`img`,{className:n??void 0,alt:t,src:PR.read(i),title:e,ref:r,draggable:`false`,width:a,height:o})}function IR({src:e,title:t,alt:n,nodeKey:r,width:i,height:a,rest:o}){let[s,c,l,u,d,f]=Sn(nz,$R,cz,tz,Mb,uz),p=L.useRef(null),m=L.useRef(null),[h,g,_]=QC(r),[v]=Fn(),[y,b]=L.useState(null),x=L.useRef(null),[S,C]=L.useState(!1),[w,T]=L.useState(null),[E,ee]=L.useState(null),D=L.useCallback(e=>{if(h&&Eo(W())){e.preventDefault();let t=mc(r);WR(t)&&t.remove()}return!1},[h,r]),O=L.useCallback(e=>{let t=W(),n=m.current;return h&&Eo(t)&&t.getNodes().length===1&&n!==null&&n!==document.activeElement?(e.preventDefault(),n.focus(),!0):!1},[h]),k=L.useCallback(e=>m.current===e.target?(Sc(null),v.update(()=>{g(!0);let e=v.getRootElement();e!==null&&e.focus()}),!0):!1,[v,g]);L.useEffect(()=>{u?(async()=>{E||ee(e),T(await u(e))})().catch(e=>{console.error(e)}):T(e)},[e,u,E]),L.useEffect(()=>{if(l&&p.current){let{current:e}=p;LR(e,`width`,i),LR(e,`height`,a)}},[l,i,a]),L.useEffect(()=>{let e=!0,t=Ku(v.registerUpdateListener(({editorState:t})=>{e&&b(t.read(()=>W()))}),v.registerCommand(Ti,(e,t)=>(x.current=t,!1),1),v.registerCommand(Di,e=>{let t=e;return S?!0:t.target===p.current?(t.shiftKey?g(!h):(_(),g(!0)),!0):!1},1),v.registerCommand(ra,e=>e.target===p.current?(e.preventDefault(),!0):!1,1),v.registerCommand(Xi,D,1),v.registerCommand(Ji,D,1),v.registerCommand(Ki,O,1),v.registerCommand(Yi,k,1));return()=>{e=!1,t()}},[_,v,S,h,r,D,O,k,g]);let A=(e,t)=>{setTimeout(()=>{C(!1)},200),v.update(()=>{let n=mc(r);WR(n)&&n.setWidthAndHeight(e,t)})},j=()=>{C(!0)},M=Eo(y),N=h,te=L.useMemo(()=>{if(o.length===0)return null;let e=o.find(e=>e.type===`mdxJsxAttribute`&&(e.name===`class`||e.name===`className`));return e?e.value:null},[o]);return w===null?null:L.createElement(L.Suspense,{fallback:s?L.createElement(s,null):null},L.createElement(`div`,{className:J.imageWrapper,"data-editor-block-type":`image`},L.createElement(`div`,{draggable:M},L.createElement(FR,{width:i,height:a,className:(0,jC.default)({[J.focusedImage]:N},te),src:w,title:t??``,alt:n??``,imageRef:p})),M&&N&&!c&&L.createElement(MR,{editor:v,imageRef:p,onResizeStart:j,onResizeEnd:A}),d||L.createElement(f,{nodeKey:r,imageSource:w,initialImagePath:E,title:t??``,alt:n??``,width:i,height:a})))}var LR=(e,t,n)=>{typeof n==`number`?e.style[t]=`${n}px`:e.style.removeProperty(t)},RR=Object.defineProperty,zR=(e,t,n)=>t in e?RR(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,BR=(e,t,n)=>(zR(e,typeof t==`symbol`?t:t+``,n),n);function VR(e){if(e instanceof HTMLImageElement){let{alt:t,src:n,title:r,width:i,height:a}=e;return{node:UR({altText:t,src:n,title:r,width:i||void 0,height:a||void 0})}}return null}var HR=class e extends Es{constructor(e,t,n,r,i,a,o){super(o),BR(this,`__src`),BR(this,`__altText`),BR(this,`__title`),BR(this,`__width`),BR(this,`__height`),BR(this,`__rest`),this.__src=e,this.__title=n,this.__altText=t,this.__width=r??`inherit`,this.__height=i??`inherit`,this.__rest=a??[]}static getType(){return`image`}static clone(t){return new e(t.__src,t.__altText,t.__title,t.__width,t.__height,t.__rest,t.__key)}afterCloneFrom(e){super.afterCloneFrom(e),this.__src=e.__src,this.__altText=e.__altText,this.__title=e.__title,this.__width=e.__width,this.__height=e.__height,this.__rest=e.__rest}static importJSON(e){let{altText:t,title:n,src:r,width:i,rest:a,height:o}=e;return UR({altText:t,title:n,src:r,height:o,width:i,rest:a})}exportDOM(){let e=document.createElement(`img`);return e.setAttribute(`src`,this.__src),e.setAttribute(`alt`,this.__altText),this.__title&&e.setAttribute(`title`,this.__title),this.__width!==`inherit`&&this.__width&&e.setAttribute(`width`,this.__width.toString()),this.__height!==`inherit`&&this.__height&&e.setAttribute(`height`,this.__height.toString()),{element:e}}static importDOM(){return{img:()=>({conversion:VR,priority:0})}}exportJSON(){return{altText:this.getAltText(),title:this.getTitle(),height:this.__height===`inherit`?void 0:this.__height,width:this.__width===`inherit`?void 0:this.__width,src:this.getSrc(),rest:this.__rest,type:`image`,version:1}}setWidthAndHeight(e,t){let n=this.getWritable();n.__width=e,n.__height=t}createDOM(e,t){let n=document.createElement(`span`),r=e.theme.image;return r!==void 0&&(n.className=r),n}updateDOM(){return!1}getSrc(){return this.__src}getAltText(){return this.__altText}getTitle(){return this.__title}getHeight(){return this.__height}getWidth(){return this.__width}getRest(){return this.__rest}setTitle(e){this.getWritable().__title=e}setSrc(e){this.getWritable().__src=e}setAltText(e){this.getWritable().__altText=e??``}shouldBeSerializedAsElement(){return this.__width!==`inherit`||this.__height!==`inherit`||this.__rest.length>0}decorate(e){return L.createElement(IR,{src:this.getSrc(),title:this.getTitle(),nodeKey:this.getKey(),width:this.__width,height:this.__height,alt:this.__altText,rest:this.__rest})}};function UR(e){let{altText:t,title:n,src:r,key:i,width:a,height:o,rest:s}=e;return new HR(r,t,n,a,o,s,i)}function WR(e){return e instanceof HR}var GR={testLexicalNode:WR,visitLexicalNode({mdastParent:e,lexicalNode:t,actions:n}){if(t.shouldBeSerializedAsElement()){let r=new Image;t.getHeight()!==`inherit`&&(r.height=t.getHeight()),t.getWidth()!==`inherit`&&(r.width=t.getWidth()),t.getAltText()&&(r.alt=t.getAltText()),t.getTitle()&&(r.title=t.getTitle());for(let e of t.getRest())e.type===`mdxJsxAttribute`&&typeof e.value==`string`&&r.setAttribute(e.name,e.value);n.appendToParent(e,{type:`html`,value:r.outerHTML.replace(/>$/,` src="${t.getSrc()}" />`)})}else n.appendToParent(e,{type:`image`,url:t.getSrc(),alt:t.getAltText(),title:t.getTitle()})}},KR={testNode:`image`,visitNode({mdastNode:e,actions:t}){t.addAndStepInto(UR({src:e.url,altText:e.alt??``,title:e.title??``}))}},qR={testNode:e=>e.type===`html`&&e.value.trim().startsWith(`<img`),visitNode({mdastNode:e,lexicalParent:t}){let n=document.createElement(`div`);n.innerHTML=e.value;let r=n.querySelector(`img`);if(!r)throw Error(`Invalid HTML image`);let i=r.src,a=r.alt,o=r.title,s=r.width,c=r.height,l=UR({src:i||``,altText:a,title:o,width:s||void 0,height:c||void 0});if(t.getType()===`root`){let e=zs();e.append(l),t.append(e)}else t.append(l)}};function JR(e,t){let n=e.attributes.find(e=>e.type===`mdxJsxAttribute`&&e.name===t);if(n)return n.value}var YR={testNode:e=>(e.type===`mdxJsxTextElement`||e.type===`mdxJsxFlowElement`)&&e.name===`img`,visitNode({mdastNode:e,lexicalParent:t}){let n=JR(e,`src`);if(!n)return;let r=JR(e,`alt`)??``,i=JR(e,`title`),a=JR(e,`height`),o=JR(e,`width`),s=e.attributes.filter(e=>e.type===`mdxJsxAttribute`&&![`src`,`alt`,`title`,`height`,`width`].includes(e.name)),c=UR({src:n,altText:r,title:i,width:o?parseInt(o,10):void 0,height:a?parseInt(a,10):void 0,rest:s});if(t.getType()===`root`){let e=zs();e.append(c),t.append(e)}else t.append(c)}},XR=_n(e=>{e.sub(e.pipe(XR,Tn(kb)),([e,t])=>{t?.update(()=>{let t=UR({altText:e.altText??``,src:e.src,title:e.title??``,width:dz(e.width),height:dz(e.height)});Jo([t]),el(t.getParentOrThrow())&&rd(t,zs).selectEnd()})})}),ZR=_n(e=>{e.sub(e.pipe(ZR,Tn(ez)),([t,n])=>{let r=n=>{e.pub(XR,{...t,src:n})};`file`in t?n?.(t.file).then(r).catch(e=>{throw e}):r(t.src)})}),QR=z([]),$R=z(!1),ez=z(null),tz=z(null),nz=z(null),rz=z({type:`inactive`},e=>{e.sub(e.pipe(lz,Tn(kb,ez,rz,cz)),([t,n,r,i,a])=>{let o=i.type===`editing`?r=>{n?.update(()=>{let{nodeKey:e}=i,n=mc(e);if(n.setTitle(t.title),n.setAltText(t.altText),n.setSrc(r),a){let e=dz(t.width),r=dz(t.height);n.setWidthAndHeight(e??`inherit`,r??`inherit`)}}),e.pub(rz,{type:`inactive`})}:n=>{e.pub(XR,{...t,src:n}),e.pub(rz,{type:`inactive`})};t.file&&t.file.length>0?r?.(t.file.item(0)).then(o).catch(e=>{throw e}):t.src&&o(t.src)}),e.pub(Tx,t=>{let n=e.getValue(ez);return Ku(t.registerCommand(mz,e=>{let t=UR(e);return Jo([t]),el(t.getParentOrThrow())&&rd(t,zs).selectEnd(),!0},0),t.registerCommand(ra,e=>gz(e),3),t.registerCommand(ia,e=>_z(e,!!n),1),t.registerCommand(ta,n=>vz(n,t,e.getValue(ez)),3),t.registerCommand(Mi,r=>{if(!n){let e=Array.from(r.clipboardData?.items??[]);return e=e.filter(e=>e.type.includes(`text`)),!e.length||e.length===0}let i=Array.from(r.clipboardData?.items??[]);if(i.some(e=>!e.type.includes(`image`))||!i.length||i.length===0)return!1;let a=e.getValue(ez);return Promise.all(i.map(e=>a(e.getAsFile()))).then(e=>{e.forEach(e=>{t.dispatchCommand(mz,{src:e,altText:``})})}).catch(e=>{throw e}),!0},4))})}),iz=vn(e=>{e.link(e.pipe(iz,En({type:`new`})),rz)}),az=_n(e=>{e.link(e.pipe(az,wn(e=>({type:`editing`,...e}))),rz)}),oz=vn(e=>{e.link(e.pipe(oz,En({type:`inactive`})),rz)}),sz=z(!1),cz=z(!1),lz=_n(),uz=z(uN),dz=e=>{if(e===void 0)return;let t=parseInt(String(e),10);return Number.isNaN(t)?void 0:t},fz=jn({init(e,t){e.pubIn({[sx]:[KR,qR,YR],[ox]:HR,[ux]:GR,[Ox]:t?.ImageDialog??kR,[ez]:t?.imageUploadHandler??null,[QR]:t?.imageAutocompleteSuggestions??[],[$R]:!!t?.disableImageResize,[sz]:!!t?.disableImageSettingsButton,[cz]:!!t?.allowSetImageDimensions,[tz]:t?.imagePreviewHandler??null,[uz]:t?.EditImageToolbar??uN,[nz]:t?.imagePlaceholder??lN})},update(e,t){e.pubIn({[ez]:t?.imageUploadHandler??null,[QR]:t?.imageAutocompleteSuggestions??[],[$R]:!!t?.disableImageResize,[tz]:t?.imagePreviewHandler??null,[cz]:!!t?.allowSetImageDimensions,[uz]:t?.EditImageToolbar??uN,[nz]:t?.imagePlaceholder??lN})}}),pz=e=>VC?(e??window).getSelection():null,mz=V(`INSERT_IMAGE_COMMAND`),hz=`data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7`;function gz(e){let t=yz();if(!t)return!1;let n=e.dataTransfer;if(!n)return!1;n.setData(`text/plain`,`_`);let r=document.createElement(`img`);return r.src=hz,n.setDragImage(r,0,0),n.setData(`application/x-lexical-drag`,JSON.stringify({data:{altText:t.__altText,title:t.__title,key:t.getKey(),src:t.__src},type:`image`})),!0}function _z(e,t){if(t){let t=Array.from(e.dataTransfer?.items??[]);if(t=t.filter(e=>e.type.includes(`image`)),t.length>0)return e.preventDefault(),!0}return yz()?(xz(e)||e.preventDefault(),!0):!1}function vz(e,t,n){let r=Array.from(e.dataTransfer?.items??[]);if(r=r.filter(e=>e.type.includes(`image`)),r.length>0&&n!==null)return e.preventDefault(),Promise.all(r.map(e=>e.kind===`string`?new Promise(t=>{e.getAsString(t)}):n(e.getAsFile()))).then(e=>{e.forEach(e=>{t.dispatchCommand(mz,{src:e,altText:``})})}).catch(e=>{throw e}),!0;let i=yz();if(!i)return!1;let a=bz(e);if(!a)return!1;if(e.preventDefault(),xz(e)){let n=Sz(e);i.remove();let r=Ro();n!=null&&r.applyDOMRange(n),Sc(r),t.dispatchCommand(mz,a)}return!0}function yz(){let e=W();if(!Eo(e))return null;let t=e.getNodes()[0];return WR(t)?t:null}function bz(e){let t=e.dataTransfer?.getData(`application/x-lexical-drag`);if(!t)return null;let{type:n,data:r}=JSON.parse(t);return n===`image`?r:null}function xz(e){let t=e.target;return!!(t&&t instanceof HTMLElement&&t.parentElement)}function Sz(e){let t,n=e.target,r=pz(n==null?null:n.nodeType===9?n.defaultView:n.ownerDocument.defaultView);if(document.caretRangeFromPoint)t=document.caretRangeFromPoint(e.clientX,e.clientY);else if(e.rangeParent&&r!==null)r.collapse(e.rangeParent,e.rangeOffset??0),t=r.getRangeAt(0);else throw Error(`Cannot get the selection when dragging`);return t}var Cz=pt(ut(((e,t)=>{(function(){var e=t===void 0?function(){return this||(0,eval)(`this`)}():t.exports=i;e.format=i,e.vsprintf=r,typeof console<`u`&&typeof console.log==`function`&&(e.printf=n);function n(){console.log(i.apply(null,arguments))}function r(e,t){return i.apply(null,[e].concat(t))}function i(e){for(var t=1,n=[].slice.call(arguments),r=0,i=e.length,a=``,o,s=!1,c,l,u=!1,d,f=function(){return n[t++]},p=function(){for(var t=``;/\d/.test(e[r]);)t+=e[r++],o=e[r];return t.length>0?parseInt(t):null};r<i;++r)if(o=e[r],s)switch(s=!1,o==`.`?(u=!1,o=e[++r]):o==`0`&&e[r+1]==`.`?(u=!0,r+=2,o=e[r]):u=!0,d=p(),o){case`b`:a+=parseInt(f(),10).toString(2);break;case`c`:c=f(),typeof c==`string`||c instanceof String?a+=c:a+=String.fromCharCode(parseInt(c,10));break;case`d`:a+=parseInt(f(),10);break;case`f`:l=String(parseFloat(f()).toFixed(d||6)),a+=u?l:l.replace(/^0/,``);break;case`j`:a+=JSON.stringify(f());break;case`o`:a+=`0`+parseInt(f(),10).toString(8);break;case`s`:a+=f();break;case`x`:a+=`0x`+parseInt(f(),10).toString(16);break;case`X`:a+=`0x`+parseInt(f(),10).toString(16).toUpperCase();break;default:a+=o;break}else o===`%`?s=!0:a+=o;return a}})()}))(),1),wz=Object.assign(Tz(Error),{eval:Tz(EvalError),range:Tz(RangeError),reference:Tz(ReferenceError),syntax:Tz(SyntaxError),type:Tz(TypeError),uri:Tz(URIError)});function Tz(e){return t.displayName=e.displayName||e.name,t;function t(t,...n){return new e(t&&(0,Cz.default)(t,...n))}}var Ez={}.hasOwnProperty,Dz={yaml:`-`,toml:`+`};function Oz(e){let t=[],n=-1,r=Array.isArray(e)?e:e?[e]:[`yaml`];for(;++n<r.length;)t[n]=kz(r[n]);return t}function kz(e){let t=e;if(typeof t==`string`){if(!Ez.call(Dz,t))throw wz("Missing matter definition for `%s`",t);t={type:t,marker:Dz[t]}}else if(typeof t!=`object`)throw wz("Expected matter to be an object, not `%j`",t);if(!Ez.call(t,`type`))throw wz("Missing `type` in matter `%j`",t);if(!Ez.call(t,`fence`)&&!Ez.call(t,`marker`))throw wz("Missing `marker` or `fence` in matter `%j`",t);return t}function Az(e){let t=Oz(e),n={},r=-1;for(;++r<t.length;){let e=t[r],i=Mz(e,`open`).charCodeAt(0),a=jz(e),o=n[i];Array.isArray(o)?o.push(a):n[i]=[a]}return{flow:n}}function jz(e){let t=e.anywhere,n=e.type,r=n+`Fence`,i=r+`Sequence`,a=n+`Value`,o={tokenize:u,partial:!0},s,c=0;return{tokenize:l,concrete:!0};function l(l,u,d){let f=this;return p;function p(a){let o=f.now();return o.column===1&&(o.line===1||t)&&(s=Mz(e,`open`),c=0,a===s.charCodeAt(c))?(l.enter(n),l.enter(r),l.enter(i),m(a)):d(a)}function m(e){return c===s.length?(l.exit(i),Sf(e)?(l.enter(`whitespace`),h(e)):g(e)):e===s.charCodeAt(c++)?(l.consume(e),m):d(e)}function h(e){return Sf(e)?(l.consume(e),h):(l.exit(`whitespace`),g(e))}function g(t){return q(t)?(l.exit(r),l.enter(`lineEnding`),l.consume(t),l.exit(`lineEnding`),s=Mz(e,`close`),c=0,l.attempt(o,b,_)):d(t)}function _(e){return e===null||q(e)?y(e):(l.enter(a),v(e))}function v(e){return e===null||q(e)?(l.exit(a),y(e)):(l.consume(e),v)}function y(e){return e===null?d(e):(l.enter(`lineEnding`),l.consume(e),l.exit(`lineEnding`),l.attempt(o,b,_))}function b(e){return l.exit(n),u(e)}}function u(e,t,n){let a=0;return o;function o(t){return t===s.charCodeAt(a)?(e.enter(r),e.enter(i),c(t)):n(t)}function c(t){return a===s.length?(e.exit(i),Sf(t)?(e.enter(`whitespace`),l(t)):u(t)):t===s.charCodeAt(a++)?(e.consume(t),c):n(t)}function l(t){return Sf(t)?(e.consume(t),l):(e.exit(`whitespace`),u(t))}function u(i){return i===null||q(i)?(e.exit(r),t(i)):n(i)}}}function Mz(e,t){return e.marker?Nz(e.marker,t).repeat(3):Nz(e.fence,t)}function Nz(e,t){return typeof e==`string`?e:e[t]}function Pz(e){if(typeof e!=`string`)throw TypeError(`Expected a string`);return e.replace(/[|\\{}()[\]^$+*?.]/g,`\\$&`).replace(/-/g,`\\x2d`)}function Fz(e){let t=Oz(e),n={},r={},i=-1;for(;++i<t.length;){let e=t[i];n[e.type]=Iz(e),r[e.type]=Lz,r[e.type+`Value`]=Rz}return{enter:n,exit:r}}function Iz(e){return t;function t(t){this.enter({type:e.type,value:``},t),this.buffer()}}function Lz(e){let t=this.resume(),n=this.stack[this.stack.length-1];`value`in n,this.exit(e),n.value=t.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,``)}function Rz(e){this.config.enter.data.call(this,e),this.config.exit.data.call(this,e)}function zz(e){let t=[],n={},r=Oz(e),i=-1;for(;++i<r.length;){let e=r[i];n[e.type]=Bz(e);let a=Vz(e,`open`);t.push({atBreak:!0,character:a.charAt(0),after:Pz(a.charAt(1))})}return{unsafe:t,handlers:n}}function Bz(e){let t=Vz(e,`open`),n=Vz(e,`close`);return r;function r(e){return t+(e.value?`
|
|
132
|
+
`+e.value:``)+`
|
|
133
|
+
`+n}}function Vz(e,t){return e.marker?Hz(e.marker,t).repeat(3):Hz(e.fence,t)}function Hz(e,t){return typeof e==`string`?e:e[t]}function Uz(e){return e==null}function Wz(e){return typeof e==`object`&&!!e}function Gz(e){return Array.isArray(e)?e:Uz(e)?[]:[e]}function Kz(e,t){var n,r,i,a;if(t)for(a=Object.keys(t),n=0,r=a.length;n<r;n+=1)i=a[n],e[i]=t[i];return e}function qz(e,t){var n=``,r;for(r=0;r<t;r+=1)n+=e;return n}function Jz(e){return e===0&&1/e==-1/0}var Yz={isNothing:Uz,isObject:Wz,toArray:Gz,repeat:qz,isNegativeZero:Jz,extend:Kz};function Xz(e,t){var n=``,r=e.reason||`(unknown reason)`;return e.mark?(e.mark.name&&(n+=`in "`+e.mark.name+`" `),n+=`(`+(e.mark.line+1)+`:`+(e.mark.column+1)+`)`,!t&&e.mark.snippet&&(n+=`
|
|
134
|
+
|
|
135
|
+
`+e.mark.snippet),r+` `+n):r}function Zz(e,t){Error.call(this),this.name=`YAMLException`,this.reason=e,this.mark=t,this.message=Xz(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=Error().stack||``}Zz.prototype=Object.create(Error.prototype),Zz.prototype.constructor=Zz,Zz.prototype.toString=function(e){return this.name+`: `+Xz(this,e)};var Qz=Zz;function $z(e,t,n,r,i){var a=``,o=``,s=Math.floor(i/2)-1;return r-t>s&&(a=` ... `,t=r-s+a.length),n-r>s&&(o=` ...`,n=r+s-o.length),{str:a+e.slice(t,n).replace(/\t/g,`→`)+o,pos:r-t+a.length}}function eB(e,t){return Yz.repeat(` `,t-e.length)+e}function tB(e,t){if(t=Object.create(t||null),!e.buffer)return null;t.maxLength||=79,typeof t.indent!=`number`&&(t.indent=1),typeof t.linesBefore!=`number`&&(t.linesBefore=3),typeof t.linesAfter!=`number`&&(t.linesAfter=2);for(var n=/\r?\n|\r|\0/g,r=[0],i=[],a,o=-1;a=n.exec(e.buffer);)i.push(a.index),r.push(a.index+a[0].length),e.position<=a.index&&o<0&&(o=r.length-2);o<0&&(o=r.length-1);var s=``,c,l,u=Math.min(e.line+t.linesAfter,i.length).toString().length,d=t.maxLength-(t.indent+u+3);for(c=1;c<=t.linesBefore&&!(o-c<0);c++)l=$z(e.buffer,r[o-c],i[o-c],e.position-(r[o]-r[o-c]),d),s=Yz.repeat(` `,t.indent)+eB((e.line-c+1).toString(),u)+` | `+l.str+`
|
|
136
|
+
`+s;for(l=$z(e.buffer,r[o],i[o],e.position,d),s+=Yz.repeat(` `,t.indent)+eB((e.line+1).toString(),u)+` | `+l.str+`
|
|
137
|
+
`,s+=Yz.repeat(`-`,t.indent+u+3+l.pos)+`^
|
|
138
|
+
`,c=1;c<=t.linesAfter&&!(o+c>=i.length);c++)l=$z(e.buffer,r[o+c],i[o+c],e.position-(r[o]-r[o+c]),d),s+=Yz.repeat(` `,t.indent)+eB((e.line+c+1).toString(),u)+` | `+l.str+`
|
|
139
|
+
`;return s.replace(/\n$/,``)}var nB=tB,rB=[`kind`,`multi`,`resolve`,`construct`,`instanceOf`,`predicate`,`represent`,`representName`,`defaultStyle`,`styleAliases`],iB=[`scalar`,`sequence`,`mapping`];function aB(e){var t={};return e!==null&&Object.keys(e).forEach(function(n){e[n].forEach(function(e){t[String(e)]=n})}),t}function oB(e,t){if(t||={},Object.keys(t).forEach(function(t){if(rB.indexOf(t)===-1)throw new Qz(`Unknown option "`+t+`" is met in definition of "`+e+`" YAML type.`)}),this.options=t,this.tag=e,this.kind=t.kind||null,this.resolve=t.resolve||function(){return!0},this.construct=t.construct||function(e){return e},this.instanceOf=t.instanceOf||null,this.predicate=t.predicate||null,this.represent=t.represent||null,this.representName=t.representName||null,this.defaultStyle=t.defaultStyle||null,this.multi=t.multi||!1,this.styleAliases=aB(t.styleAliases||null),iB.indexOf(this.kind)===-1)throw new Qz(`Unknown kind "`+this.kind+`" is specified for "`+e+`" YAML type.`)}var sB=oB;function cB(e,t){var n=[];return e[t].forEach(function(e){var t=n.length;n.forEach(function(n,r){n.tag===e.tag&&n.kind===e.kind&&n.multi===e.multi&&(t=r)}),n[t]=e}),n}function lB(){var e={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},t,n;function r(t){t.multi?(e.multi[t.kind].push(t),e.multi.fallback.push(t)):e[t.kind][t.tag]=e.fallback[t.tag]=t}for(t=0,n=arguments.length;t<n;t+=1)arguments[t].forEach(r);return e}function uB(e){return this.extend(e)}uB.prototype.extend=function(e){var t=[],n=[];if(e instanceof sB)n.push(e);else if(Array.isArray(e))n=n.concat(e);else if(e&&(Array.isArray(e.implicit)||Array.isArray(e.explicit)))e.implicit&&(t=t.concat(e.implicit)),e.explicit&&(n=n.concat(e.explicit));else throw new Qz(`Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })`);t.forEach(function(e){if(!(e instanceof sB))throw new Qz(`Specified list of YAML types (or a single Type object) contains a non-Type object.`);if(e.loadKind&&e.loadKind!==`scalar`)throw new Qz(`There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.`);if(e.multi)throw new Qz(`There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.`)}),n.forEach(function(e){if(!(e instanceof sB))throw new Qz(`Specified list of YAML types (or a single Type object) contains a non-Type object.`)});var r=Object.create(uB.prototype);return r.implicit=(this.implicit||[]).concat(t),r.explicit=(this.explicit||[]).concat(n),r.compiledImplicit=cB(r,`implicit`),r.compiledExplicit=cB(r,`explicit`),r.compiledTypeMap=lB(r.compiledImplicit,r.compiledExplicit),r};var dB=uB,fB=new sB(`tag:yaml.org,2002:str`,{kind:`scalar`,construct:function(e){return e===null?``:e}}),pB=new sB(`tag:yaml.org,2002:seq`,{kind:`sequence`,construct:function(e){return e===null?[]:e}}),mB=new sB(`tag:yaml.org,2002:map`,{kind:`mapping`,construct:function(e){return e===null?{}:e}}),hB=new dB({explicit:[fB,pB,mB]});function gB(e){if(e===null)return!0;var t=e.length;return t===1&&e===`~`||t===4&&(e===`null`||e===`Null`||e===`NULL`)}function _B(){return null}function vB(e){return e===null}var yB=new sB(`tag:yaml.org,2002:null`,{kind:`scalar`,resolve:gB,construct:_B,predicate:vB,represent:{canonical:function(){return`~`},lowercase:function(){return`null`},uppercase:function(){return`NULL`},camelcase:function(){return`Null`},empty:function(){return``}},defaultStyle:`lowercase`});function bB(e){if(e===null)return!1;var t=e.length;return t===4&&(e===`true`||e===`True`||e===`TRUE`)||t===5&&(e===`false`||e===`False`||e===`FALSE`)}function xB(e){return e===`true`||e===`True`||e===`TRUE`}function SB(e){return Object.prototype.toString.call(e)===`[object Boolean]`}var CB=new sB(`tag:yaml.org,2002:bool`,{kind:`scalar`,resolve:bB,construct:xB,predicate:SB,represent:{lowercase:function(e){return e?`true`:`false`},uppercase:function(e){return e?`TRUE`:`FALSE`},camelcase:function(e){return e?`True`:`False`}},defaultStyle:`lowercase`});function wB(e){return 48<=e&&e<=57||65<=e&&e<=70||97<=e&&e<=102}function TB(e){return 48<=e&&e<=55}function EB(e){return 48<=e&&e<=57}function DB(e){if(e===null)return!1;var t=e.length,n=0,r=!1,i;if(!t)return!1;if(i=e[n],(i===`-`||i===`+`)&&(i=e[++n]),i===`0`){if(n+1===t)return!0;if(i=e[++n],i===`b`){for(n++;n<t;n++)if(i=e[n],i!==`_`){if(i!==`0`&&i!==`1`)return!1;r=!0}return r&&i!==`_`}if(i===`x`){for(n++;n<t;n++)if(i=e[n],i!==`_`){if(!wB(e.charCodeAt(n)))return!1;r=!0}return r&&i!==`_`}if(i===`o`){for(n++;n<t;n++)if(i=e[n],i!==`_`){if(!TB(e.charCodeAt(n)))return!1;r=!0}return r&&i!==`_`}}if(i===`_`)return!1;for(;n<t;n++)if(i=e[n],i!==`_`){if(!EB(e.charCodeAt(n)))return!1;r=!0}return!(!r||i===`_`)}function OB(e){var t=e,n=1,r;if(t.indexOf(`_`)!==-1&&(t=t.replace(/_/g,``)),r=t[0],(r===`-`||r===`+`)&&(r===`-`&&(n=-1),t=t.slice(1),r=t[0]),t===`0`)return 0;if(r===`0`){if(t[1]===`b`)return n*parseInt(t.slice(2),2);if(t[1]===`x`)return n*parseInt(t.slice(2),16);if(t[1]===`o`)return n*parseInt(t.slice(2),8)}return n*parseInt(t,10)}function kB(e){return Object.prototype.toString.call(e)===`[object Number]`&&e%1==0&&!Yz.isNegativeZero(e)}var AB=new sB(`tag:yaml.org,2002:int`,{kind:`scalar`,resolve:DB,construct:OB,predicate:kB,represent:{binary:function(e){return e>=0?`0b`+e.toString(2):`-0b`+e.toString(2).slice(1)},octal:function(e){return e>=0?`0o`+e.toString(8):`-0o`+e.toString(8).slice(1)},decimal:function(e){return e.toString(10)},hexadecimal:function(e){return e>=0?`0x`+e.toString(16).toUpperCase():`-0x`+e.toString(16).toUpperCase().slice(1)}},defaultStyle:`decimal`,styleAliases:{binary:[2,`bin`],octal:[8,`oct`],decimal:[10,`dec`],hexadecimal:[16,`hex`]}}),jB=RegExp(`^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$`);function MB(e){return!(e===null||!jB.test(e)||e[e.length-1]===`_`)}function NB(e){var t=e.replace(/_/g,``).toLowerCase(),n=t[0]===`-`?-1:1;return`+-`.indexOf(t[0])>=0&&(t=t.slice(1)),t===`.inf`?n===1?1/0:-1/0:t===`.nan`?NaN:n*parseFloat(t,10)}var PB=/^[-+]?[0-9]+e/;function FB(e,t){var n;if(isNaN(e))switch(t){case`lowercase`:return`.nan`;case`uppercase`:return`.NAN`;case`camelcase`:return`.NaN`}else if(e===1/0)switch(t){case`lowercase`:return`.inf`;case`uppercase`:return`.INF`;case`camelcase`:return`.Inf`}else if(e===-1/0)switch(t){case`lowercase`:return`-.inf`;case`uppercase`:return`-.INF`;case`camelcase`:return`-.Inf`}else if(Yz.isNegativeZero(e))return`-0.0`;return n=e.toString(10),PB.test(n)?n.replace(`e`,`.e`):n}function IB(e){return Object.prototype.toString.call(e)===`[object Number]`&&(e%1!=0||Yz.isNegativeZero(e))}var LB=new sB(`tag:yaml.org,2002:float`,{kind:`scalar`,resolve:MB,construct:NB,predicate:IB,represent:FB,defaultStyle:`lowercase`}),RB=hB.extend({implicit:[yB,CB,AB,LB]}),zB=RB,BB=RegExp(`^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$`),VB=RegExp(`^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$`);function HB(e){return e===null?!1:BB.exec(e)!==null||VB.exec(e)!==null}function UB(e){var t,n,r,i,a,o,s,c=0,l=null,u,d,f;if(t=BB.exec(e),t===null&&(t=VB.exec(e)),t===null)throw Error(`Date resolve error`);if(n=+t[1],r=t[2]-1,i=+t[3],!t[4])return new Date(Date.UTC(n,r,i));if(a=+t[4],o=+t[5],s=+t[6],t[7]){for(c=t[7].slice(0,3);c.length<3;)c+=`0`;c=+c}return t[9]&&(u=+t[10],d=+(t[11]||0),l=(u*60+d)*6e4,t[9]===`-`&&(l=-l)),f=new Date(Date.UTC(n,r,i,a,o,s,c)),l&&f.setTime(f.getTime()-l),f}function WB(e){return e.toISOString()}var GB=new sB(`tag:yaml.org,2002:timestamp`,{kind:`scalar`,resolve:HB,construct:UB,instanceOf:Date,represent:WB});function KB(e){return e===`<<`||e===null}var qB=new sB(`tag:yaml.org,2002:merge`,{kind:`scalar`,resolve:KB}),JB=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
|
|
140
|
+
\r`;function YB(e){if(e===null)return!1;var t,n,r=0,i=e.length,a=JB;for(n=0;n<i;n++)if(t=a.indexOf(e.charAt(n)),!(t>64)){if(t<0)return!1;r+=6}return r%8==0}function XB(e){var t,n,r=e.replace(/[\r\n=]/g,``),i=r.length,a=JB,o=0,s=[];for(t=0;t<i;t++)t%4==0&&t&&(s.push(o>>16&255),s.push(o>>8&255),s.push(o&255)),o=o<<6|a.indexOf(r.charAt(t));return n=i%4*6,n===0?(s.push(o>>16&255),s.push(o>>8&255),s.push(o&255)):n===18?(s.push(o>>10&255),s.push(o>>2&255)):n===12&&s.push(o>>4&255),new Uint8Array(s)}function ZB(e){var t=``,n=0,r,i,a=e.length,o=JB;for(r=0;r<a;r++)r%3==0&&r&&(t+=o[n>>18&63],t+=o[n>>12&63],t+=o[n>>6&63],t+=o[n&63]),n=(n<<8)+e[r];return i=a%3,i===0?(t+=o[n>>18&63],t+=o[n>>12&63],t+=o[n>>6&63],t+=o[n&63]):i===2?(t+=o[n>>10&63],t+=o[n>>4&63],t+=o[n<<2&63],t+=o[64]):i===1&&(t+=o[n>>2&63],t+=o[n<<4&63],t+=o[64],t+=o[64]),t}function QB(e){return Object.prototype.toString.call(e)===`[object Uint8Array]`}var $B=new sB(`tag:yaml.org,2002:binary`,{kind:`scalar`,resolve:YB,construct:XB,predicate:QB,represent:ZB}),eV=Object.prototype.hasOwnProperty,tV=Object.prototype.toString;function nV(e){if(e===null)return!0;var t=[],n,r,i,a,o,s=e;for(n=0,r=s.length;n<r;n+=1){if(i=s[n],o=!1,tV.call(i)!==`[object Object]`)return!1;for(a in i)if(eV.call(i,a))if(!o)o=!0;else return!1;if(!o)return!1;if(t.indexOf(a)===-1)t.push(a);else return!1}return!0}function rV(e){return e===null?[]:e}var iV=new sB(`tag:yaml.org,2002:omap`,{kind:`sequence`,resolve:nV,construct:rV}),aV=Object.prototype.toString;function oV(e){if(e===null)return!0;var t,n,r,i,a,o=e;for(a=Array(o.length),t=0,n=o.length;t<n;t+=1){if(r=o[t],aV.call(r)!==`[object Object]`||(i=Object.keys(r),i.length!==1))return!1;a[t]=[i[0],r[i[0]]]}return!0}function sV(e){if(e===null)return[];var t,n,r,i,a,o=e;for(a=Array(o.length),t=0,n=o.length;t<n;t+=1)r=o[t],i=Object.keys(r),a[t]=[i[0],r[i[0]]];return a}var cV=new sB(`tag:yaml.org,2002:pairs`,{kind:`sequence`,resolve:oV,construct:sV}),lV=Object.prototype.hasOwnProperty;function uV(e){if(e===null)return!0;var t,n=e;for(t in n)if(lV.call(n,t)&&n[t]!==null)return!1;return!0}function dV(e){return e===null?{}:e}var fV=new sB(`tag:yaml.org,2002:set`,{kind:`mapping`,resolve:uV,construct:dV}),pV=zB.extend({implicit:[GB,qB],explicit:[$B,iV,cV,fV]}),mV=Object.prototype.hasOwnProperty,hV=1,gV=2,_V=3,vV=4,yV=1,bV=2,xV=3,SV=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,CV=/[\x85\u2028\u2029]/,wV=/[,\[\]\{\}]/,TV=/^(?:!|!!|![a-z\-]+!)$/i,EV=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function DV(e){return Object.prototype.toString.call(e)}function OV(e){return e===10||e===13}function kV(e){return e===9||e===32}function AV(e){return e===9||e===32||e===10||e===13}function jV(e){return e===44||e===91||e===93||e===123||e===125}function MV(e){var t;return 48<=e&&e<=57?e-48:(t=e|32,97<=t&&t<=102?t-97+10:-1)}function NV(e){return e===120?2:e===117?4:e===85?8:0}function PV(e){return 48<=e&&e<=57?e-48:-1}function FV(e){return e===48?`\0`:e===97?`\x07`:e===98?`\b`:e===116||e===9?` `:e===110?`
|
|
141
|
+
`:e===118?`\v`:e===102?`\f`:e===114?`\r`:e===101?`\x1B`:e===32?` `:e===34?`"`:e===47?`/`:e===92?`\\`:e===78?`
`:e===95?`\xA0`:e===76?`\u2028`:e===80?`\u2029`:``}function IV(e){return e<=65535?String.fromCharCode(e):String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}function LV(e,t,n){t===`__proto__`?Object.defineProperty(e,t,{configurable:!0,enumerable:!0,writable:!0,value:n}):e[t]=n}for(var RV=Array(256),zV=Array(256),BV=0;BV<256;BV++)RV[BV]=+!!FV(BV),zV[BV]=FV(BV);function VV(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||pV,this.onWarning=t.onWarning||null,this.legacy=t.legacy||!1,this.json=t.json||!1,this.listener=t.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=e.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}function HV(e,t){var n={name:e.filename,buffer:e.input.slice(0,-1),position:e.position,line:e.line,column:e.position-e.lineStart};return n.snippet=nB(n),new Qz(t,n)}function UV(e,t){throw HV(e,t)}function WV(e,t){e.onWarning&&e.onWarning.call(null,HV(e,t))}var GV={YAML:function(e,t,n){var r,i,a;e.version!==null&&UV(e,`duplication of %YAML directive`),n.length!==1&&UV(e,`YAML directive accepts exactly one argument`),r=/^([0-9]+)\.([0-9]+)$/.exec(n[0]),r===null&&UV(e,`ill-formed argument of the YAML directive`),i=parseInt(r[1],10),a=parseInt(r[2],10),i!==1&&UV(e,`unacceptable YAML version of the document`),e.version=n[0],e.checkLineBreaks=a<2,a!==1&&a!==2&&WV(e,`unsupported YAML version of the document`)},TAG:function(e,t,n){var r,i;n.length!==2&&UV(e,`TAG directive accepts exactly two arguments`),r=n[0],i=n[1],TV.test(r)||UV(e,`ill-formed tag handle (first argument) of the TAG directive`),mV.call(e.tagMap,r)&&UV(e,`there is a previously declared suffix for "`+r+`" tag handle`),EV.test(i)||UV(e,`ill-formed tag prefix (second argument) of the TAG directive`);try{i=decodeURIComponent(i)}catch{UV(e,`tag prefix is malformed: `+i)}e.tagMap[r]=i}};function KV(e,t,n,r){var i,a,o,s;if(t<n){if(s=e.input.slice(t,n),r)for(i=0,a=s.length;i<a;i+=1)o=s.charCodeAt(i),o===9||32<=o&&o<=1114111||UV(e,`expected valid JSON character`);else SV.test(s)&&UV(e,`the stream contains non-printable characters`);e.result+=s}}function qV(e,t,n,r){var i,a,o,s;for(Yz.isObject(n)||UV(e,`cannot merge mappings; the provided source object is unacceptable`),i=Object.keys(n),o=0,s=i.length;o<s;o+=1)a=i[o],mV.call(t,a)||(LV(t,a,n[a]),r[a]=!0)}function JV(e,t,n,r,i,a,o,s,c){var l,u;if(Array.isArray(i))for(i=Array.prototype.slice.call(i),l=0,u=i.length;l<u;l+=1)Array.isArray(i[l])&&UV(e,`nested arrays are not supported inside keys`),typeof i==`object`&&DV(i[l])===`[object Object]`&&(i[l]=`[object Object]`);if(typeof i==`object`&&DV(i)===`[object Object]`&&(i=`[object Object]`),i=String(i),t===null&&(t={}),r===`tag:yaml.org,2002:merge`)if(Array.isArray(a))for(l=0,u=a.length;l<u;l+=1)qV(e,t,a[l],n);else qV(e,t,a,n);else !e.json&&!mV.call(n,i)&&mV.call(t,i)&&(e.line=o||e.line,e.lineStart=s||e.lineStart,e.position=c||e.position,UV(e,`duplicated mapping key`)),LV(t,i,a),delete n[i];return t}function YV(e){var t=e.input.charCodeAt(e.position);t===10?e.position++:t===13?(e.position++,e.input.charCodeAt(e.position)===10&&e.position++):UV(e,`a line break is expected`),e.line+=1,e.lineStart=e.position,e.firstTabInLine=-1}function XV(e,t,n){for(var r=0,i=e.input.charCodeAt(e.position);i!==0;){for(;kV(i);)i===9&&e.firstTabInLine===-1&&(e.firstTabInLine=e.position),i=e.input.charCodeAt(++e.position);if(t&&i===35)do i=e.input.charCodeAt(++e.position);while(i!==10&&i!==13&&i!==0);if(OV(i))for(YV(e),i=e.input.charCodeAt(e.position),r++,e.lineIndent=0;i===32;)e.lineIndent++,i=e.input.charCodeAt(++e.position);else break}return n!==-1&&r!==0&&e.lineIndent<n&&WV(e,`deficient indentation`),r}function ZV(e){var t=e.position,n=e.input.charCodeAt(t);return!!((n===45||n===46)&&n===e.input.charCodeAt(t+1)&&n===e.input.charCodeAt(t+2)&&(t+=3,n=e.input.charCodeAt(t),n===0||AV(n)))}function QV(e,t){t===1?e.result+=` `:t>1&&(e.result+=Yz.repeat(`
|
|
142
|
+
`,t-1))}function $V(e,t,n){var r,i,a,o,s,c,l,u,d=e.kind,f=e.result,p=e.input.charCodeAt(e.position);if(AV(p)||jV(p)||p===35||p===38||p===42||p===33||p===124||p===62||p===39||p===34||p===37||p===64||p===96||(p===63||p===45)&&(i=e.input.charCodeAt(e.position+1),AV(i)||n&&jV(i)))return!1;for(e.kind=`scalar`,e.result=``,a=o=e.position,s=!1;p!==0;){if(p===58){if(i=e.input.charCodeAt(e.position+1),AV(i)||n&&jV(i))break}else if(p===35){if(r=e.input.charCodeAt(e.position-1),AV(r))break}else if(e.position===e.lineStart&&ZV(e)||n&&jV(p))break;else if(OV(p))if(c=e.line,l=e.lineStart,u=e.lineIndent,XV(e,!1,-1),e.lineIndent>=t){s=!0,p=e.input.charCodeAt(e.position);continue}else{e.position=o,e.line=c,e.lineStart=l,e.lineIndent=u;break}s&&=(KV(e,a,o,!1),QV(e,e.line-c),a=o=e.position,!1),kV(p)||(o=e.position+1),p=e.input.charCodeAt(++e.position)}return KV(e,a,o,!1),e.result?!0:(e.kind=d,e.result=f,!1)}function eH(e,t){var n=e.input.charCodeAt(e.position),r,i;if(n!==39)return!1;for(e.kind=`scalar`,e.result=``,e.position++,r=i=e.position;(n=e.input.charCodeAt(e.position))!==0;)if(n===39)if(KV(e,r,e.position,!0),n=e.input.charCodeAt(++e.position),n===39)r=e.position,e.position++,i=e.position;else return!0;else OV(n)?(KV(e,r,i,!0),QV(e,XV(e,!1,t)),r=i=e.position):e.position===e.lineStart&&ZV(e)?UV(e,`unexpected end of the document within a single quoted scalar`):(e.position++,i=e.position);UV(e,`unexpected end of the stream within a single quoted scalar`)}function tH(e,t){var n,r,i,a,o,s=e.input.charCodeAt(e.position);if(s!==34)return!1;for(e.kind=`scalar`,e.result=``,e.position++,n=r=e.position;(s=e.input.charCodeAt(e.position))!==0;)if(s===34)return KV(e,n,e.position,!0),e.position++,!0;else if(s===92){if(KV(e,n,e.position,!0),s=e.input.charCodeAt(++e.position),OV(s))XV(e,!1,t);else if(s<256&&RV[s])e.result+=zV[s],e.position++;else if((o=NV(s))>0){for(i=o,a=0;i>0;i--)s=e.input.charCodeAt(++e.position),(o=MV(s))>=0?a=(a<<4)+o:UV(e,`expected hexadecimal character`);e.result+=IV(a),e.position++}else UV(e,`unknown escape sequence`);n=r=e.position}else OV(s)?(KV(e,n,r,!0),QV(e,XV(e,!1,t)),n=r=e.position):e.position===e.lineStart&&ZV(e)?UV(e,`unexpected end of the document within a double quoted scalar`):(e.position++,r=e.position);UV(e,`unexpected end of the stream within a double quoted scalar`)}function nH(e,t){var n=!0,r,i,a,o=e.tag,s,c=e.anchor,l,u,d,f,p,m=Object.create(null),h,g,_,v=e.input.charCodeAt(e.position);if(v===91)u=93,p=!1,s=[];else if(v===123)u=125,p=!0,s={};else return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=s),v=e.input.charCodeAt(++e.position);v!==0;){if(XV(e,!0,t),v=e.input.charCodeAt(e.position),v===u)return e.position++,e.tag=o,e.anchor=c,e.kind=p?`mapping`:`sequence`,e.result=s,!0;n?v===44&&UV(e,`expected the node content, but found ','`):UV(e,`missed comma between flow collection entries`),g=h=_=null,d=f=!1,v===63&&(l=e.input.charCodeAt(e.position+1),AV(l)&&(d=f=!0,e.position++,XV(e,!0,t))),r=e.line,i=e.lineStart,a=e.position,lH(e,t,hV,!1,!0),g=e.tag,h=e.result,XV(e,!0,t),v=e.input.charCodeAt(e.position),(f||e.line===r)&&v===58&&(d=!0,v=e.input.charCodeAt(++e.position),XV(e,!0,t),lH(e,t,hV,!1,!0),_=e.result),p?JV(e,s,m,g,h,_,r,i,a):d?s.push(JV(e,null,m,g,h,_,r,i,a)):s.push(h),XV(e,!0,t),v=e.input.charCodeAt(e.position),v===44?(n=!0,v=e.input.charCodeAt(++e.position)):n=!1}UV(e,`unexpected end of the stream within a flow collection`)}function rH(e,t){var n,r,i=yV,a=!1,o=!1,s=t,c=0,l=!1,u,d=e.input.charCodeAt(e.position);if(d===124)r=!1;else if(d===62)r=!0;else return!1;for(e.kind=`scalar`,e.result=``;d!==0;)if(d=e.input.charCodeAt(++e.position),d===43||d===45)yV===i?i=d===43?xV:bV:UV(e,`repeat of a chomping mode identifier`);else if((u=PV(d))>=0)u===0?UV(e,`bad explicit indentation width of a block scalar; it cannot be less than one`):o?UV(e,`repeat of an indentation width identifier`):(s=t+u-1,o=!0);else break;if(kV(d)){do d=e.input.charCodeAt(++e.position);while(kV(d));if(d===35)do d=e.input.charCodeAt(++e.position);while(!OV(d)&&d!==0)}for(;d!==0;){for(YV(e),e.lineIndent=0,d=e.input.charCodeAt(e.position);(!o||e.lineIndent<s)&&d===32;)e.lineIndent++,d=e.input.charCodeAt(++e.position);if(!o&&e.lineIndent>s&&(s=e.lineIndent),OV(d)){c++;continue}if(e.lineIndent<s){i===xV?e.result+=Yz.repeat(`
|
|
143
|
+
`,a?1+c:c):i===yV&&a&&(e.result+=`
|
|
144
|
+
`);break}for(r?kV(d)?(l=!0,e.result+=Yz.repeat(`
|
|
145
|
+
`,a?1+c:c)):l?(l=!1,e.result+=Yz.repeat(`
|
|
146
|
+
`,c+1)):c===0?a&&(e.result+=` `):e.result+=Yz.repeat(`
|
|
147
|
+
`,c):e.result+=Yz.repeat(`
|
|
148
|
+
`,a?1+c:c),a=!0,o=!0,c=0,n=e.position;!OV(d)&&d!==0;)d=e.input.charCodeAt(++e.position);KV(e,n,e.position,!1)}return!0}function iH(e,t){var n,r=e.tag,i=e.anchor,a=[],o,s=!1,c;if(e.firstTabInLine!==-1)return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=a),c=e.input.charCodeAt(e.position);c!==0&&(e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,UV(e,`tab characters must not be used in indentation`)),!(c!==45||(o=e.input.charCodeAt(e.position+1),!AV(o))));){if(s=!0,e.position++,XV(e,!0,-1)&&e.lineIndent<=t){a.push(null),c=e.input.charCodeAt(e.position);continue}if(n=e.line,lH(e,t,_V,!1,!0),a.push(e.result),XV(e,!0,-1),c=e.input.charCodeAt(e.position),(e.line===n||e.lineIndent>t)&&c!==0)UV(e,`bad indentation of a sequence entry`);else if(e.lineIndent<t)break}return s?(e.tag=r,e.anchor=i,e.kind=`sequence`,e.result=a,!0):!1}function aH(e,t,n){var r,i,a,o,s,c,l=e.tag,u=e.anchor,d={},f=Object.create(null),p=null,m=null,h=null,g=!1,_=!1,v;if(e.firstTabInLine!==-1)return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=d),v=e.input.charCodeAt(e.position);v!==0;){if(!g&&e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,UV(e,`tab characters must not be used in indentation`)),r=e.input.charCodeAt(e.position+1),a=e.line,(v===63||v===58)&&AV(r))v===63?(g&&(JV(e,d,f,p,m,null,o,s,c),p=m=h=null),_=!0,g=!0,i=!0):g?(g=!1,i=!0):UV(e,`incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line`),e.position+=1,v=r;else{if(o=e.line,s=e.lineStart,c=e.position,!lH(e,n,gV,!1,!0))break;if(e.line===a){for(v=e.input.charCodeAt(e.position);kV(v);)v=e.input.charCodeAt(++e.position);if(v===58)v=e.input.charCodeAt(++e.position),AV(v)||UV(e,`a whitespace character is expected after the key-value separator within a block mapping`),g&&(JV(e,d,f,p,m,null,o,s,c),p=m=h=null),_=!0,g=!1,i=!1,p=e.tag,m=e.result;else if(_)UV(e,`can not read an implicit mapping pair; a colon is missed`);else return e.tag=l,e.anchor=u,!0}else if(_)UV(e,`can not read a block mapping entry; a multiline key may not be an implicit key`);else return e.tag=l,e.anchor=u,!0}if((e.line===a||e.lineIndent>t)&&(g&&(o=e.line,s=e.lineStart,c=e.position),lH(e,t,vV,!0,i)&&(g?m=e.result:h=e.result),g||(JV(e,d,f,p,m,h,o,s,c),p=m=h=null),XV(e,!0,-1),v=e.input.charCodeAt(e.position)),(e.line===a||e.lineIndent>t)&&v!==0)UV(e,`bad indentation of a mapping entry`);else if(e.lineIndent<t)break}return g&&JV(e,d,f,p,m,null,o,s,c),_&&(e.tag=l,e.anchor=u,e.kind=`mapping`,e.result=d),_}function oH(e){var t,n=!1,r=!1,i,a,o=e.input.charCodeAt(e.position);if(o!==33)return!1;if(e.tag!==null&&UV(e,`duplication of a tag property`),o=e.input.charCodeAt(++e.position),o===60?(n=!0,o=e.input.charCodeAt(++e.position)):o===33?(r=!0,i=`!!`,o=e.input.charCodeAt(++e.position)):i=`!`,t=e.position,n){do o=e.input.charCodeAt(++e.position);while(o!==0&&o!==62);e.position<e.length?(a=e.input.slice(t,e.position),o=e.input.charCodeAt(++e.position)):UV(e,`unexpected end of the stream within a verbatim tag`)}else{for(;o!==0&&!AV(o);)o===33&&(r?UV(e,`tag suffix cannot contain exclamation marks`):(i=e.input.slice(t-1,e.position+1),TV.test(i)||UV(e,`named tag handle cannot contain such characters`),r=!0,t=e.position+1)),o=e.input.charCodeAt(++e.position);a=e.input.slice(t,e.position),wV.test(a)&&UV(e,`tag suffix cannot contain flow indicator characters`)}a&&!EV.test(a)&&UV(e,`tag name cannot contain such characters: `+a);try{a=decodeURIComponent(a)}catch{UV(e,`tag name is malformed: `+a)}return n?e.tag=a:mV.call(e.tagMap,i)?e.tag=e.tagMap[i]+a:i===`!`?e.tag=`!`+a:i===`!!`?e.tag=`tag:yaml.org,2002:`+a:UV(e,`undeclared tag handle "`+i+`"`),!0}function sH(e){var t,n=e.input.charCodeAt(e.position);if(n!==38)return!1;for(e.anchor!==null&&UV(e,`duplication of an anchor property`),n=e.input.charCodeAt(++e.position),t=e.position;n!==0&&!AV(n)&&!jV(n);)n=e.input.charCodeAt(++e.position);return e.position===t&&UV(e,`name of an anchor node must contain at least one character`),e.anchor=e.input.slice(t,e.position),!0}function cH(e){var t,n,r=e.input.charCodeAt(e.position);if(r!==42)return!1;for(r=e.input.charCodeAt(++e.position),t=e.position;r!==0&&!AV(r)&&!jV(r);)r=e.input.charCodeAt(++e.position);return e.position===t&&UV(e,`name of an alias node must contain at least one character`),n=e.input.slice(t,e.position),mV.call(e.anchorMap,n)||UV(e,`unidentified alias "`+n+`"`),e.result=e.anchorMap[n],XV(e,!0,-1),!0}function lH(e,t,n,r,i){var a,o,s,c=1,l=!1,u=!1,d,f,p,m,h,g;if(e.listener!==null&&e.listener(`open`,e),e.tag=null,e.anchor=null,e.kind=null,e.result=null,a=o=s=vV===n||_V===n,r&&XV(e,!0,-1)&&(l=!0,e.lineIndent>t?c=1:e.lineIndent===t?c=0:e.lineIndent<t&&(c=-1)),c===1)for(;oH(e)||sH(e);)XV(e,!0,-1)?(l=!0,s=a,e.lineIndent>t?c=1:e.lineIndent===t?c=0:e.lineIndent<t&&(c=-1)):s=!1;if(s&&=l||i,(c===1||vV===n)&&(h=hV===n||gV===n?t:t+1,g=e.position-e.lineStart,c===1?s&&(iH(e,g)||aH(e,g,h))||nH(e,h)?u=!0:(o&&rH(e,h)||eH(e,h)||tH(e,h)?u=!0:cH(e)?(u=!0,(e.tag!==null||e.anchor!==null)&&UV(e,`alias node should not have any properties`)):$V(e,h,hV===n)&&(u=!0,e.tag===null&&(e.tag=`?`)),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):c===0&&(u=s&&iH(e,g))),e.tag===null)e.anchor!==null&&(e.anchorMap[e.anchor]=e.result);else if(e.tag===`?`){for(e.result!==null&&e.kind!==`scalar`&&UV(e,`unacceptable node kind for !<?> tag; it should be "scalar", not "`+e.kind+`"`),d=0,f=e.implicitTypes.length;d<f;d+=1)if(m=e.implicitTypes[d],m.resolve(e.result)){e.result=m.construct(e.result),e.tag=m.tag,e.anchor!==null&&(e.anchorMap[e.anchor]=e.result);break}}else if(e.tag!==`!`){if(mV.call(e.typeMap[e.kind||`fallback`],e.tag))m=e.typeMap[e.kind||`fallback`][e.tag];else for(m=null,p=e.typeMap.multi[e.kind||`fallback`],d=0,f=p.length;d<f;d+=1)if(e.tag.slice(0,p[d].tag.length)===p[d].tag){m=p[d];break}m||UV(e,`unknown tag !<`+e.tag+`>`),e.result!==null&&m.kind!==e.kind&&UV(e,`unacceptable node kind for !<`+e.tag+`> tag; it should be "`+m.kind+`", not "`+e.kind+`"`),m.resolve(e.result,e.tag)?(e.result=m.construct(e.result,e.tag),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):UV(e,`cannot resolve a node with !<`+e.tag+`> explicit tag`)}return e.listener!==null&&e.listener(`close`,e),e.tag!==null||e.anchor!==null||u}function uH(e){var t=e.position,n,r,i,a=!1,o;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap=Object.create(null),e.anchorMap=Object.create(null);(o=e.input.charCodeAt(e.position))!==0&&(XV(e,!0,-1),o=e.input.charCodeAt(e.position),!(e.lineIndent>0||o!==37));){for(a=!0,o=e.input.charCodeAt(++e.position),n=e.position;o!==0&&!AV(o);)o=e.input.charCodeAt(++e.position);for(r=e.input.slice(n,e.position),i=[],r.length<1&&UV(e,`directive name must not be less than one character in length`);o!==0;){for(;kV(o);)o=e.input.charCodeAt(++e.position);if(o===35){do o=e.input.charCodeAt(++e.position);while(o!==0&&!OV(o));break}if(OV(o))break;for(n=e.position;o!==0&&!AV(o);)o=e.input.charCodeAt(++e.position);i.push(e.input.slice(n,e.position))}o!==0&&YV(e),mV.call(GV,r)?GV[r](e,r,i):WV(e,`unknown document directive "`+r+`"`)}if(XV(e,!0,-1),e.lineIndent===0&&e.input.charCodeAt(e.position)===45&&e.input.charCodeAt(e.position+1)===45&&e.input.charCodeAt(e.position+2)===45?(e.position+=3,XV(e,!0,-1)):a&&UV(e,`directives end mark is expected`),lH(e,e.lineIndent-1,vV,!1,!0),XV(e,!0,-1),e.checkLineBreaks&&CV.test(e.input.slice(t,e.position))&&WV(e,`non-ASCII line breaks are interpreted as content`),e.documents.push(e.result),e.position===e.lineStart&&ZV(e)){e.input.charCodeAt(e.position)===46&&(e.position+=3,XV(e,!0,-1));return}if(e.position<e.length-1)UV(e,`end of the stream or a document separator is expected`);else return}function dH(e,t){e=String(e),t||={},e.length!==0&&(e.charCodeAt(e.length-1)!==10&&e.charCodeAt(e.length-1)!==13&&(e+=`
|
|
149
|
+
`),e.charCodeAt(0)===65279&&(e=e.slice(1)));var n=new VV(e,t),r=e.indexOf(`\0`);for(r!==-1&&(n.position=r,UV(n,`null byte is not allowed in input`)),n.input+=`\0`;n.input.charCodeAt(n.position)===32;)n.lineIndent+=1,n.position+=1;for(;n.position<n.length-1;)uH(n);return n.documents}function fH(e,t,n){typeof t==`object`&&t&&n===void 0&&(n=t,t=null);var r=dH(e,n);if(typeof t!=`function`)return r;for(var i=0,a=r.length;i<a;i+=1)t(r[i])}function pH(e,t){var n=dH(e,t);if(n.length!==0){if(n.length===1)return n[0];throw new Qz(`expected a single document in the stream, but found more`)}}var mH={loadAll:fH,load:pH},hH=Object.prototype.toString,gH=Object.prototype.hasOwnProperty,_H=65279,vH=9,yH=10,bH=13,xH=32,SH=33,CH=34,wH=35,TH=37,EH=38,DH=39,OH=42,kH=44,AH=45,jH=58,MH=61,NH=62,PH=63,FH=64,IH=91,LH=93,RH=96,zH=123,BH=124,VH=125,HH={};HH[0]=`\\0`,HH[7]=`\\a`,HH[8]=`\\b`,HH[9]=`\\t`,HH[10]=`\\n`,HH[11]=`\\v`,HH[12]=`\\f`,HH[13]=`\\r`,HH[27]=`\\e`,HH[34]=`\\"`,HH[92]=`\\\\`,HH[133]=`\\N`,HH[160]=`\\_`,HH[8232]=`\\L`,HH[8233]=`\\P`;var UH=[`y`,`Y`,`yes`,`Yes`,`YES`,`on`,`On`,`ON`,`n`,`N`,`no`,`No`,`NO`,`off`,`Off`,`OFF`],WH=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function GH(e,t){var n,r,i,a,o,s,c;if(t===null)return{};for(n={},r=Object.keys(t),i=0,a=r.length;i<a;i+=1)o=r[i],s=String(t[o]),o.slice(0,2)===`!!`&&(o=`tag:yaml.org,2002:`+o.slice(2)),c=e.compiledTypeMap.fallback[o],c&&gH.call(c.styleAliases,s)&&(s=c.styleAliases[s]),n[o]=s;return n}function KH(e){var t=e.toString(16).toUpperCase(),n,r;if(e<=255)n=`x`,r=2;else if(e<=65535)n=`u`,r=4;else if(e<=4294967295)n=`U`,r=8;else throw new Qz(`code point within a string may not be greater than 0xFFFFFFFF`);return`\\`+n+Yz.repeat(`0`,r-t.length)+t}var qH=1,JH=2;function YH(e){this.schema=e.schema||pV,this.indent=Math.max(1,e.indent||2),this.noArrayIndent=e.noArrayIndent||!1,this.skipInvalid=e.skipInvalid||!1,this.flowLevel=Yz.isNothing(e.flowLevel)?-1:e.flowLevel,this.styleMap=GH(this.schema,e.styles||null),this.sortKeys=e.sortKeys||!1,this.lineWidth=e.lineWidth||80,this.noRefs=e.noRefs||!1,this.noCompatMode=e.noCompatMode||!1,this.condenseFlow=e.condenseFlow||!1,this.quotingType=e.quotingType===`"`?JH:qH,this.forceQuotes=e.forceQuotes||!1,this.replacer=typeof e.replacer==`function`?e.replacer:null,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result=``,this.duplicates=[],this.usedDuplicates=null}function XH(e,t){for(var n=Yz.repeat(` `,t),r=0,i=-1,a=``,o,s=e.length;r<s;)i=e.indexOf(`
|
|
150
|
+
`,r),i===-1?(o=e.slice(r),r=s):(o=e.slice(r,i+1),r=i+1),o.length&&o!==`
|
|
151
|
+
`&&(a+=n),a+=o;return a}function ZH(e,t){return`
|
|
152
|
+
`+Yz.repeat(` `,e.indent*t)}function QH(e,t){var n,r,i;for(n=0,r=e.implicitTypes.length;n<r;n+=1)if(i=e.implicitTypes[n],i.resolve(t))return!0;return!1}function $H(e){return e===xH||e===vH}function eU(e){return 32<=e&&e<=126||161<=e&&e<=55295&&e!==8232&&e!==8233||57344<=e&&e<=65533&&e!==_H||65536<=e&&e<=1114111}function tU(e){return eU(e)&&e!==_H&&e!==bH&&e!==yH}function nU(e,t,n){var r=tU(e),i=r&&!$H(e);return(n?r:r&&e!==kH&&e!==IH&&e!==LH&&e!==zH&&e!==VH)&&e!==wH&&!(t===jH&&!i)||tU(t)&&!$H(t)&&e===wH||t===jH&&i}function rU(e){return eU(e)&&e!==_H&&!$H(e)&&e!==AH&&e!==PH&&e!==jH&&e!==kH&&e!==IH&&e!==LH&&e!==zH&&e!==VH&&e!==wH&&e!==EH&&e!==OH&&e!==SH&&e!==BH&&e!==MH&&e!==NH&&e!==DH&&e!==CH&&e!==TH&&e!==FH&&e!==RH}function iU(e){return!$H(e)&&e!==jH}function aU(e,t){var n=e.charCodeAt(t),r;return n>=55296&&n<=56319&&t+1<e.length&&(r=e.charCodeAt(t+1),r>=56320&&r<=57343)?(n-55296)*1024+r-56320+65536:n}function oU(e){return/^\n* /.test(e)}var sU=1,cU=2,lU=3,uU=4,dU=5;function fU(e,t,n,r,i,a,o,s){var c,l=0,u=null,d=!1,f=!1,p=r!==-1,m=-1,h=rU(aU(e,0))&&iU(aU(e,e.length-1));if(t||o)for(c=0;c<e.length;l>=65536?c+=2:c++){if(l=aU(e,c),!eU(l))return dU;h&&=nU(l,u,s),u=l}else{for(c=0;c<e.length;l>=65536?c+=2:c++){if(l=aU(e,c),l===yH)d=!0,p&&(f||=c-m-1>r&&e[m+1]!==` `,m=c);else if(!eU(l))return dU;h&&=nU(l,u,s),u=l}f||=p&&c-m-1>r&&e[m+1]!==` `}return!d&&!f?h&&!o&&!i(e)?sU:a===JH?dU:cU:n>9&&oU(e)?dU:o?a===JH?dU:cU:f?uU:lU}function pU(e,t,n,r,i){e.dump=function(){if(t.length===0)return e.quotingType===JH?`""`:`''`;if(!e.noCompatMode&&(UH.indexOf(t)!==-1||WH.test(t)))return e.quotingType===JH?`"`+t+`"`:`'`+t+`'`;var a=e.indent*Math.max(1,n),o=e.lineWidth===-1?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-a),s=r||e.flowLevel>-1&&n>=e.flowLevel;function c(t){return QH(e,t)}switch(fU(t,s,e.indent,o,c,e.quotingType,e.forceQuotes&&!r,i)){case sU:return t;case cU:return`'`+t.replace(/'/g,`''`)+`'`;case lU:return`|`+mU(t,e.indent)+hU(XH(t,a));case uU:return`>`+mU(t,e.indent)+hU(XH(gU(t,o),a));case dU:return`"`+vU(t)+`"`;default:throw new Qz(`impossible error: invalid scalar style`)}}()}function mU(e,t){var n=oU(e)?String(t):``,r=e[e.length-1]===`
|
|
153
|
+
`;return n+(r&&(e[e.length-2]===`
|
|
154
|
+
`||e===`
|
|
155
|
+
`)?`+`:r?``:`-`)+`
|
|
156
|
+
`}function hU(e){return e[e.length-1]===`
|
|
157
|
+
`?e.slice(0,-1):e}function gU(e,t){for(var n=/(\n+)([^\n]*)/g,r=function(){var r=e.indexOf(`
|
|
158
|
+
`);return r=r===-1?e.length:r,n.lastIndex=r,_U(e.slice(0,r),t)}(),i=e[0]===`
|
|
159
|
+
`||e[0]===` `,a,o;o=n.exec(e);){var s=o[1],c=o[2];a=c[0]===` `,r+=s+(!i&&!a&&c!==``?`
|
|
160
|
+
`:``)+_U(c,t),i=a}return r}function _U(e,t){if(e===``||e[0]===` `)return e;for(var n=/ [^ ]/g,r,i=0,a,o=0,s=0,c=``;r=n.exec(e);)s=r.index,s-i>t&&(a=o>i?o:s,c+=`
|
|
161
|
+
`+e.slice(i,a),i=a+1),o=s;return c+=`
|
|
162
|
+
`,e.length-i>t&&o>i?c+=e.slice(i,o)+`
|
|
163
|
+
`+e.slice(o+1):c+=e.slice(i),c.slice(1)}function vU(e){for(var t=``,n=0,r,i=0;i<e.length;n>=65536?i+=2:i++)n=aU(e,i),r=HH[n],!r&&eU(n)?(t+=e[i],n>=65536&&(t+=e[i+1])):t+=r||KH(n);return t}function yU(e,t,n){var r=``,i=e.tag,a,o,s;for(a=0,o=n.length;a<o;a+=1)s=n[a],e.replacer&&(s=e.replacer.call(n,String(a),s)),(wU(e,t,s,!1,!1)||s===void 0&&wU(e,t,null,!1,!1))&&(r!==``&&(r+=`,`+(e.condenseFlow?``:` `)),r+=e.dump);e.tag=i,e.dump=`[`+r+`]`}function bU(e,t,n,r){var i=``,a=e.tag,o,s,c;for(o=0,s=n.length;o<s;o+=1)c=n[o],e.replacer&&(c=e.replacer.call(n,String(o),c)),(wU(e,t+1,c,!0,!0,!1,!0)||c===void 0&&wU(e,t+1,null,!0,!0,!1,!0))&&((!r||i!==``)&&(i+=ZH(e,t)),e.dump&&yH===e.dump.charCodeAt(0)?i+=`-`:i+=`- `,i+=e.dump);e.tag=a,e.dump=i||`[]`}function xU(e,t,n){var r=``,i=e.tag,a=Object.keys(n),o,s,c,l,u;for(o=0,s=a.length;o<s;o+=1)u=``,r!==``&&(u+=`, `),e.condenseFlow&&(u+=`"`),c=a[o],l=n[c],e.replacer&&(l=e.replacer.call(n,c,l)),wU(e,t,c,!1,!1)&&(e.dump.length>1024&&(u+=`? `),u+=e.dump+(e.condenseFlow?`"`:``)+`:`+(e.condenseFlow?``:` `),wU(e,t,l,!1,!1)&&(u+=e.dump,r+=u));e.tag=i,e.dump=`{`+r+`}`}function SU(e,t,n,r){var i=``,a=e.tag,o=Object.keys(n),s,c,l,u,d,f;if(e.sortKeys===!0)o.sort();else if(typeof e.sortKeys==`function`)o.sort(e.sortKeys);else if(e.sortKeys)throw new Qz(`sortKeys must be a boolean or a function`);for(s=0,c=o.length;s<c;s+=1)f=``,(!r||i!==``)&&(f+=ZH(e,t)),l=o[s],u=n[l],e.replacer&&(u=e.replacer.call(n,l,u)),wU(e,t+1,l,!0,!0,!0)&&(d=e.tag!==null&&e.tag!==`?`||e.dump&&e.dump.length>1024,d&&(e.dump&&yH===e.dump.charCodeAt(0)?f+=`?`:f+=`? `),f+=e.dump,d&&(f+=ZH(e,t)),wU(e,t+1,u,!0,d)&&(e.dump&&yH===e.dump.charCodeAt(0)?f+=`:`:f+=`: `,f+=e.dump,i+=f));e.tag=a,e.dump=i||`{}`}function CU(e,t,n){var r,i=n?e.explicitTypes:e.implicitTypes,a,o,s,c;for(a=0,o=i.length;a<o;a+=1)if(s=i[a],(s.instanceOf||s.predicate)&&(!s.instanceOf||typeof t==`object`&&t instanceof s.instanceOf)&&(!s.predicate||s.predicate(t))){if(n?s.multi&&s.representName?e.tag=s.representName(t):e.tag=s.tag:e.tag=`?`,s.represent){if(c=e.styleMap[s.tag]||s.defaultStyle,hH.call(s.represent)===`[object Function]`)r=s.represent(t,c);else if(gH.call(s.represent,c))r=s.represent[c](t,c);else throw new Qz(`!<`+s.tag+`> tag resolver accepts not "`+c+`" style`);e.dump=r}return!0}return!1}function wU(e,t,n,r,i,a,o){e.tag=null,e.dump=n,CU(e,n,!1)||CU(e,n,!0);var s=hH.call(e.dump),c=r,l;r&&=e.flowLevel<0||e.flowLevel>t;var u=s===`[object Object]`||s===`[object Array]`,d,f;if(u&&(d=e.duplicates.indexOf(n),f=d!==-1),(e.tag!==null&&e.tag!==`?`||f||e.indent!==2&&t>0)&&(i=!1),f&&e.usedDuplicates[d])e.dump=`*ref_`+d;else{if(u&&f&&!e.usedDuplicates[d]&&(e.usedDuplicates[d]=!0),s===`[object Object]`)r&&Object.keys(e.dump).length!==0?(SU(e,t,e.dump,i),f&&(e.dump=`&ref_`+d+e.dump)):(xU(e,t,e.dump),f&&(e.dump=`&ref_`+d+` `+e.dump));else if(s===`[object Array]`)r&&e.dump.length!==0?(e.noArrayIndent&&!o&&t>0?bU(e,t-1,e.dump,i):bU(e,t,e.dump,i),f&&(e.dump=`&ref_`+d+e.dump)):(yU(e,t,e.dump),f&&(e.dump=`&ref_`+d+` `+e.dump));else if(s===`[object String]`)e.tag!==`?`&&pU(e,e.dump,t,a,c);else if(s===`[object Undefined]`)return!1;else{if(e.skipInvalid)return!1;throw new Qz(`unacceptable kind of an object to dump `+s)}e.tag!==null&&e.tag!==`?`&&(l=encodeURI(e.tag[0]===`!`?e.tag.slice(1):e.tag).replace(/!/g,`%21`),l=e.tag[0]===`!`?`!`+l:l.slice(0,18)===`tag:yaml.org,2002:`?`!!`+l.slice(18):`!<`+l+`>`,e.dump=l+` `+e.dump)}return!0}function TU(e,t){var n=[],r=[],i,a;for(EU(e,n,r),i=0,a=r.length;i<a;i+=1)t.duplicates.push(n[r[i]]);t.usedDuplicates=Array(a)}function EU(e,t,n){var r,i,a;if(typeof e==`object`&&e)if(i=t.indexOf(e),i!==-1)n.indexOf(i)===-1&&n.push(i);else if(t.push(e),Array.isArray(e))for(i=0,a=e.length;i<a;i+=1)EU(e[i],t,n);else for(r=Object.keys(e),i=0,a=r.length;i<a;i+=1)EU(e[r[i]],t,n)}function DU(e,t){t||={};var n=new YH(t);n.noRefs||TU(e,n);var r=e;return n.replacer&&(r=n.replacer.call({"":r},``,r)),wU(n,0,r,!0,!0)?n.dump+`
|
|
164
|
+
`:``}var OU={dump:DU};function kU(e,t){return function(){throw Error(`Function yaml.`+e+` is removed in js-yaml 4. Use yaml.`+t+` instead, which is now safe by default.`)}}var AU={Type:sB,Schema:dB,FAILSAFE_SCHEMA:hB,JSON_SCHEMA:RB,CORE_SCHEMA:zB,DEFAULT_SCHEMA:pV,load:mH.load,loadAll:mH.loadAll,dump:OU.dump,YAMLException:Qz,types:{binary:$B,float:LB,map:mB,null:yB,pairs:cV,set:fV,timestamp:GB,bool:CB,int:AB,merge:qB,omap:iV,seq:pB,str:fB},safeLoad:kU(`safeLoad`,`load`),safeLoadAll:kU(`safeLoadAll`,`loadAll`),safeDump:kU(`safeDump`,`dump`)},jU=({yaml:e,onChange:t})=>{let[n,r,i,a]=Sn(Mb,rx,xx,VU),o=Xx(),s=Cn(VU),c=Cn(UU),{register:l,control:u,handleSubmit:d}=IF({defaultValues:{yamlConfig:L.useMemo(()=>e?Object.entries(AU.load(e)).map(([e,t])=>({key:e,value:t})):[],[e])}}),{fields:f,append:p,remove:m}=FF({control:u,name:`yamlConfig`}),h=L.useCallback(({yamlConfig:e})=>{if(e.length===0){c(),s(!1);return}let n=e.reduce((e,{key:t,value:n})=>(t&&n&&(e[t]=n),e),{});t(AU.dump(n).trim()),s(!1)},[t,s,c]);return L.createElement(L.Fragment,null,L.createElement(GN,{open:a,onOpenChange:e=>{s(e)}},L.createElement(KN,{container:r?.current},L.createElement(qN,{className:J.dialogOverlay}),L.createElement(JN,{className:J.largeDialogContent,"data-editor-type":`frontmatter`},L.createElement(YN,{className:J.dialogTitle},o(`frontmatterEditor.title`,`Edit document frontmatter`)),L.createElement(`form`,{onSubmit:e=>{d(h)(e),e.stopPropagation()},onReset:e=>{e.stopPropagation(),s(!1)}},L.createElement(`table`,{className:J.propertyEditorTable},L.createElement(`colgroup`,null,L.createElement(`col`,null),L.createElement(`col`,null),L.createElement(`col`,null)),L.createElement(`thead`,null,L.createElement(`tr`,null,L.createElement(`th`,null,o(`frontmatterEditor.key`,`Key`)),L.createElement(`th`,null,o(`frontmatterEditor.value`,`Value`)),L.createElement(`th`,null))),L.createElement(`tbody`,null,f.map((e,t)=>L.createElement(`tr`,{key:e.id},L.createElement(`td`,null,L.createElement(MU,{...l(`yamlConfig.${t}.key`,{required:!0}),autofocusIfEmpty:!0,readOnly:n})),L.createElement(`td`,null,L.createElement(MU,{...l(`yamlConfig.${t}.value`,{required:!0}),readOnly:n})),L.createElement(`td`,null,L.createElement(`button`,{type:`button`,onClick:()=>{m(t)},className:J.iconButton,disabled:n},i(`delete_big`)))))),L.createElement(`tfoot`,null,L.createElement(`tr`,null,L.createElement(`td`,null,L.createElement(`button`,{disabled:n,className:(0,jC.default)(J.primaryButton,J.smallButton),type:`button`,onClick:()=>{p({key:``,value:``})}},o(`frontmatterEditor.addEntry`,`Add entry`)))))),L.createElement(`div`,{style:{display:`flex`,justifyContent:`flex-end`,gap:`var(--spacing-2)`}},L.createElement(`button`,{type:`submit`,className:J.primaryButton},o(`dialogControls.save`,`Save`)),L.createElement(`button`,{type:`reset`,className:J.secondaryButton},o(`dialogControls.cancel`,`Cancel`)))),L.createElement(XN,{asChild:!0},L.createElement(`button`,{className:J.dialogCloseButton,"aria-label":o(`dialogControls.cancel`,`Cancel`)},i(`close`)))))))},MU=L.forwardRef(({className:e,autofocusIfEmpty:t,...n},r)=>L.createElement(`input`,{className:(0,jC.default)(J.propertyEditorInput,e),...n,ref:r})),NU=Object.defineProperty,PU=(e,t,n)=>t in e?NU(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,FU=(e,t,n)=>(PU(e,typeof t==`symbol`?t:t+``,n),n),IU=class e extends Es{constructor(e,t){super(t),FU(this,`__yaml`),this.__yaml=e}static getType(){return`frontmatter`}static clone(t){return new e(t.__yaml,t.__key)}static importJSON(e){let{yaml:t}=e;return LU(t)}exportJSON(){return{yaml:this.getYaml(),type:`frontmatter`,version:1}}createDOM(e){return document.createElement(`div`)}updateDOM(){return!1}getYaml(){return this.getLatest().__yaml}setYaml(e){e!==this.__yaml&&(this.getWritable().__yaml=e)}decorate(e){return L.createElement(jU,{yaml:this.getYaml(),onChange:t=>{e.update(()=>{this.setYaml(t)})}})}isKeyboardSelectable(){return!1}};function LU(e){return new IU(e)}function RU(e){return e instanceof IU}var zU={testLexicalNode:RU,visitLexicalNode:({actions:e,lexicalNode:t})=>{e.addAndStepInto(`yaml`,{value:t.getYaml()})}},BU={testNode:`yaml`,visitNode({mdastNode:e,actions:t}){t.addAndStepInto(LU(e.value))}},VU=z(!1),HU=vn(e=>{e.sub(e.pipe(HU,Tn(Ob)),([,t])=>{t?.update(()=>{let e=bc().getFirstChild();if(!RU(e)){let t=LU(`"": ""`);e?e.insertBefore(t):bc().append(t)}}),e.pub(VU,!0)})}),UU=vn(e=>{e.sub(e.pipe(UU,Tn(Ob)),([,t])=>{t?.update(()=>{let e=bc().getFirstChild();RU(e)&&e.remove()}),e.pub(VU,!1)})}),WU=z(!1,e=>{e.pub(wx,t=>t.registerUpdateListener(({editorState:t})=>{t.read(()=>{e.pub(WU,RU(bc().getFirstChild()))})}))}),GU=jn({init:e=>{e.pubIn({[lx]:Fz(`yaml`),[cx]:Az(),[ox]:IU,[sx]:BU,[ux]:zU,[dx]:zz(`yaml`),[wx]:e=>e.registerCommand(zi,t=>{let n=!1;return e.read(()=>{let r=W();if(U(r))if(r.isCollapsed()&&r.anchor.offset===0&&r.focus.offset===0&&t.key===`Backspace`){let e=r.getNodes()[0];H(e)&&(e=e.getParent()),RU(e?.getPreviousSibling())&&(n=!0,t.preventDefault())}else{let t=r.getNodes()[0];if(RU(t)){let n=t.getYaml();setTimeout(()=>{e.update(()=>{RU(bc().getFirstChild())||bc().splice(0,0,[LU(n)])},{discrete:!0})})}}}),!!n},4)})}}),KU={testNode:`blockquote`,visitNode({actions:e}){e.addAndStepInto(Qd())}},qU={testLexicalNode:$d,visitLexicalNode:({actions:e})=>{e.addAndStepInto(`blockquote`)}},JU=jn({init(e){e.pubIn({[Kx]:`quote`,[sx]:KU,[ox]:Zd,[ux]:qU})}});function YU(){let e=An;return{publish:()=>{e()},subscribe:t=>{e=t}}}var XU=Object.defineProperty,ZU=(e,t,n)=>t in e?XU(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,QU=(e,t,n)=>(ZU(e,typeof t==`symbol`?t:t+``,n),n),$U=class e extends Es{constructor(e,t,n,r){super(r),QU(this,`__code`),QU(this,`__meta`),QU(this,`__language`),QU(this,`__focusEmitter`,YU()),QU(this,`setCode`,e=>{e!==this.__code&&(this.getWritable().__code=e)}),QU(this,`setMeta`,e=>{e!==this.__meta&&(this.getWritable().__meta=e)}),QU(this,`setLanguage`,e=>{e!==this.__language&&(this.getWritable().__language=e)}),QU(this,`select`,()=>{this.__focusEmitter.publish()}),this.__code=e,this.__meta=n,this.__language=t}static getType(){return`codeblock`}static clone(t){return new e(t.__code,t.__language,t.__meta,t.__key)}afterCloneFrom(e){super.afterCloneFrom(e),this.__code=e.__code,this.__meta=e.__meta,this.__language=e.__language,this.__focusEmitter=YU()}static importJSON(e){let{code:t,meta:n,language:r}=e;return iW({code:t,language:r,meta:n})}static importDOM(){return{pre:()=>({conversion:oW,priority:3})}}exportJSON(){return{code:this.getCode(),language:this.getLanguage(),meta:this.getMeta(),type:`codeblock`,version:1}}createDOM(e,t){return document.createElement(`div`)}updateDOM(){return!1}getCode(){return this.__code}getMeta(){return this.__meta}getLanguage(){return this.__language}decorate(e){return L.createElement(rW,{parentEditor:e,code:this.getCode(),meta:this.getMeta(),language:this.getLanguage(),codeBlockNode:this,nodeKey:this.getKey(),focusEmitter:this.__focusEmitter})}isInline(){return!1}},eW=L.createContext(null),tW=({parentEditor:e,lexicalNode:t,children:n})=>{let r=L.useMemo(()=>({lexicalNode:t,parentEditor:e,setCode:n=>{e.update(()=>{t.setCode(n),setTimeout(()=>{e.dispatchCommand(Db,void 0)},0)})},setLanguage:n=>{e.update(()=>{t.setLanguage(n)})},setMeta:n=>{e.update(()=>{t.setMeta(n)})}}),[t,e]);return L.createElement(eW.Provider,{value:r},n)};function nW(){let e=L.useContext(eW);if(!e)throw Error(`useCodeBlockEditor must be used within a CodeBlockEditor`);return e}var rW=e=>{let t=xn(nx),n=xn(lW),r=t.sort((e,t)=>t.priority-e.priority).find(t=>t.match(e.language||``,e.meta||``));if(r??=t.find(t=>t.match(n||``,e.meta||``)),!r)throw Error(`No CodeBlockEditor registered for language=${e.language} meta=${e.meta}`);let i=r.Editor,{codeBlockNode:a,parentEditor:o,...s}=e;return L.createElement(tW,{parentEditor:e.parentEditor,lexicalNode:e.codeBlockNode},L.createElement(i,{...s}))};function iW(e){let{code:t=``,language:n=``,meta:r=``}=e;return new $U(t,n,r)}function aW(e){return e instanceof $U}function oW(e){let t=e,n=t.textContent,r=e.getAttribute(`class`)??``,i=e.getAttribute(`data-language`)??``,a=/language-(\w+)/.exec(r);return{node:iW({code:n,language:a?a[1]:i,meta:t.getAttribute(`data-meta`)??``})}}var sW={testLexicalNode:aW,visitLexicalNode:({lexicalNode:e,actions:t})=>{t.addAndStepInto(`code`,{value:e.getCode(),lang:e.getLanguage(),meta:e.getMeta()})}},cW={testNode:(e,{codeBlockEditorDescriptors:t})=>e.type===`code`?t.find(t=>t.match(e.lang,e.meta))!==void 0:!1,visitNode({mdastNode:e,actions:t}){t.addAndStepInto(iW({code:e.value,language:e.lang??``,meta:e.meta??``}))}},lW=z(``),uW=_n(e=>{e.link(e.pipe(uW,Tn(lW),wn(([e,t])=>()=>iW({language:t,...e}))),Hx)}),dW=Sx(nx),fW=jn({update(e,t){e.pub(lW,t?.defaultCodeBlockLanguage??``)},init(e,t){e.pubIn({[Kx]:`codeblock`,[nx]:t?.codeBlockEditorDescriptors??[],[sx]:cW,[ox]:$U,[ux]:sW})}}),pW=`modulepreload`,mW=function(e){return`/apps/context-files/`+e},hW={},Z=function(e,t,n){let r=Promise.resolve();if(t&&t.length>0){let e=document.getElementsByTagName(`link`),i=document.querySelector(`meta[property=csp-nonce]`),a=i?.nonce||i?.getAttribute(`nonce`);function o(e){return Promise.all(e.map(e=>Promise.resolve(e).then(e=>({status:`fulfilled`,value:e}),e=>({status:`rejected`,reason:e}))))}r=o(t.map(t=>{if(t=mW(t,n),t in hW)return;hW[t]=!0;let r=t.endsWith(`.css`),i=r?`[rel="stylesheet"]`:``;if(n)for(let n=e.length-1;n>=0;n--){let i=e[n];if(i.href===t&&(!r||i.rel===`stylesheet`))return}else if(document.querySelector(`link[href="${t}"]${i}`))return;let o=document.createElement(`link`);if(o.rel=r?`stylesheet`:pW,r||(o.as=`script`),o.crossOrigin=``,o.href=t,a&&o.setAttribute(`nonce`,a),document.head.appendChild(o),r)return new Promise((e,n)=>{o.addEventListener(`load`,e),o.addEventListener(`error`,()=>n(Error(`Unable to preload CSS for ${t}`)))})}))}function i(e){let t=new Event(`vite:preloadError`,{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return r.then(t=>{for(let e of t||[])e.status===`rejected`&&i(e.reason);return e().catch(i)})},gW=class{constructor(e,t,n,r){this.state=e,this.pos=t,this.explicit=n,this.view=r,this.abortListeners=[],this.abortOnDocChange=!1}tokenBefore(e){let t=d(this.state).resolveInner(this.pos,-1);for(;t&&e.indexOf(t.name)<0;)t=t.parent;return t?{from:t.from,to:this.pos,text:this.state.sliceDoc(t.from,this.pos),type:t.type}:null}matchBefore(e){let t=this.state.doc.lineAt(this.pos),n=Math.max(t.from,this.pos-250),r=t.text.slice(n-t.from,this.pos-t.from),i=r.search(CW(e,!1));return i<0?null:{from:n+i,to:this.pos,text:r.slice(i)}}get aborted(){return this.abortListeners==null}addEventListener(e,t,n){e==`abort`&&this.abortListeners&&(this.abortListeners.push(t),n&&n.onDocChange&&(this.abortOnDocChange=!0))}};function _W(e){let t=Object.keys(e).join(``),n=/\w/.test(t);return n&&(t=t.replace(/\w/g,``)),`[${n?`\\w`:``}${t.replace(/[^\w\s]/g,`\\$&`)}]`}function vW(e){let t=Object.create(null),n=Object.create(null);for(let{label:r}of e){t[r[0]]=!0;for(let e=1;e<r.length;e++)n[r[e]]=!0}let r=_W(t)+_W(n)+`*$`;return[RegExp(`^`+r),new RegExp(r)]}function yW(e){let t=e.map(e=>typeof e==`string`?{label:e}:e),[n,r]=t.every(e=>/^\w+$/.test(e.label))?[/\w*$/,/\w+$/]:vW(t);return e=>{let i=e.matchBefore(r);return i||e.explicit?{from:i?i.from:e.pos,options:t,validFor:n}:null}}function bW(e,t){return n=>{for(let t=d(n.state).resolveInner(n.pos,-1);t;t=t.parent){if(e.indexOf(t.name)>-1)return null;if(t.type.isTop)break}return t(n)}}var xW=class{constructor(e,t,n,r){this.completion=e,this.source=t,this.match=n,this.score=r}};function SW(e){return e.selection.main.from}function CW(e,t){let{source:n}=e,r=t&&n[0]!=`^`,i=n[n.length-1]!=`$`;return!r&&!i?e:RegExp(`${r?`^`:``}(?:${n})${i?`$`:``}`,e.flags??(e.ignoreCase?`i`:``))}var wW=tt.define();function TW(e,t,n,r){let{main:i}=e.selection,a=n-i.from,o=r-i.from;return{...e.changeByRange(s=>{if(s!=i&&n!=r&&e.sliceDoc(s.from+a,s.from+o)!=e.sliceDoc(n,r))return{range:s};let c=e.toText(t);return{changes:{from:s.from+a,to:r==i.from?s.to:s.from+o,insert:c},range:I.cursor(s.from+a+c.length)}}),scrollIntoView:!0,userEvent:`input.complete`}}var EW=new WeakMap;function DW(e){if(!Array.isArray(e))return e;let t=EW.get(e);return t||EW.set(e,t=yW(e)),t}var OW=S.define(),kW=S.define(),AW=class{constructor(e){this.pattern=e,this.chars=[],this.folded=[],this.any=[],this.precise=[],this.byWord=[],this.score=0,this.matched=[];for(let t=0;t<e.length;){let n=g(e,t),r=b(n);this.chars.push(n);let i=e.slice(t,t+r),a=i.toUpperCase();this.folded.push(g(a==i?i.toLowerCase():a,0)),t+=r}this.astral=e.length!=this.chars.length}ret(e,t){return this.score=e,this.matched=t,this}match(e){if(this.pattern.length==0)return this.ret(-100,[]);if(e.length<this.pattern.length)return null;let{chars:t,folded:n,any:r,precise:i,byWord:a}=this;if(t.length==1){let r=g(e,0),i=b(r),a=i==e.length?0:-100;if(r!=t[0])if(r==n[0])a+=-200;else return null;return this.ret(a,[0,i])}let o=e.indexOf(this.pattern);if(o==0)return this.ret(e.length==this.pattern.length?0:-100,[0,this.pattern.length]);let s=t.length,c=0;if(o<0){for(let i=0,a=Math.min(e.length,200);i<a&&c<s;){let a=g(e,i);(a==t[c]||a==n[c])&&(r[c++]=i),i+=b(a)}if(c<s)return null}let l=0,u=0,d=!1,f=0,p=-1,m=-1,h=/[a-z]/.test(e),_=!0;for(let r=0,c=Math.min(e.length,200),v=0;r<c&&u<s;){let c=g(e,r);o<0&&(l<s&&c==t[l]&&(i[l++]=r),f<s&&(c==t[f]||c==n[f]?(f==0&&(p=r),m=r+1,f++):f=0));let y,x=c<255?c>=48&&c<=57||c>=97&&c<=122?2:+(c>=65&&c<=90):(y=ie(c))==y.toLowerCase()?y==y.toUpperCase()?0:2:1;(!r||x==1&&h||v==0&&x!=0)&&(t[u]==c||n[u]==c&&(d=!0)?a[u++]=r:a.length&&(_=!1)),v=x,r+=b(c)}return u==s&&a[0]==0&&_?this.result(-100+(d?-200:0),a,e):f==s&&p==0?this.ret(-200-e.length+(m==e.length?0:-100),[0,m]):o>-1?this.ret(-700-e.length,[o,o+this.pattern.length]):f==s?this.ret(-900-e.length,[p,m]):u==s?this.result(-100+(d?-200:0)+-700+(_?0:-1100),a,e):t.length==2?null:this.result((r[0]?-700:0)+-200+-1100,r,e)}result(e,t,n){let r=[],i=0;for(let e of t){let t=e+(this.astral?b(g(n,e)):1);i&&r[i-1]==e?r[i-1]=t:(r[i++]=e,r[i++]=t)}return this.ret(e-n.length,r)}},jW=class{constructor(e){this.pattern=e,this.matched=[],this.score=0,this.folded=e.toLowerCase()}match(e){if(e.length<this.pattern.length)return null;let t=e.slice(0,this.pattern.length),n=t==this.pattern?0:t.toLowerCase()==this.folded?-200:null;return n==null?null:(this.matched=[0,t.length],this.score=n+(e.length==this.pattern.length?0:-100),this)}},MW=u.define({combine(e){return A(e,{activateOnTyping:!0,activateOnCompletion:()=>!1,activateOnTypingDelay:100,selectOnOpen:!0,override:null,closeOnBlur:!0,maxRenderedOptions:100,defaultKeymap:!0,tooltipClass:()=>``,optionClass:()=>``,aboveCursor:!1,icons:!0,addToOptions:[],positionInfo:PW,filterStrict:!1,compareCompletions:(e,t)=>(e.sortText||e.label).localeCompare(t.sortText||t.label),interactionDelay:75,updateSyncTime:100},{defaultKeymap:(e,t)=>e&&t,closeOnBlur:(e,t)=>e&&t,icons:(e,t)=>e&&t,tooltipClass:(e,t)=>n=>NW(e(n),t(n)),optionClass:(e,t)=>n=>NW(e(n),t(n)),addToOptions:(e,t)=>e.concat(t),filterStrict:(e,t)=>e||t})}});function NW(e,t){return e?t?e+` `+t:e:t}function PW(e,t,n,r,i,a){let o=e.textDirection==_.RTL,s=o,c=!1,l=`top`,u,d,f=t.left-i.left,p=i.right-t.right,m=r.right-r.left,h=r.bottom-r.top;if(s&&f<Math.min(m,p)?s=!1:!s&&p<Math.min(m,f)&&(s=!0),m<=(s?f:p))u=Math.max(i.top,Math.min(n.top,i.bottom-h))-t.top,d=Math.min(400,s?f:p);else{c=!0,d=Math.min(400,(o?t.right:i.right-t.left)-30);let e=i.bottom-t.bottom;e>=h||e>t.top?u=n.bottom-t.top:(l=`bottom`,u=t.bottom-n.top)}let g=(t.bottom-t.top)/a.offsetHeight,v=(t.right-t.left)/a.offsetWidth;return{style:`${l}: ${u/g}px; max-width: ${d/v}px`,class:`cm-completionInfo-`+(c?o?`left-narrow`:`right-narrow`:s?`left`:`right`)}}var FW=S.define();function IW(e){let t=e.addToOptions.slice();return e.icons&&t.push({render(e){let t=document.createElement(`div`);return t.classList.add(`cm-completionIcon`),e.type&&t.classList.add(...e.type.split(/\s+/g).map(e=>`cm-completionIcon-`+e)),t.setAttribute(`aria-hidden`,`true`),t},position:20}),t.push({render(e,t,n,r){let i=document.createElement(`span`);i.className=`cm-completionLabel`;let a=e.displayLabel||e.label,o=0;for(let e=0;e<r.length;){let t=r[e++],n=r[e++];t>o&&i.appendChild(document.createTextNode(a.slice(o,t)));let s=i.appendChild(document.createElement(`span`));s.appendChild(document.createTextNode(a.slice(t,n))),s.className=`cm-completionMatchedText`,o=n}return o<a.length&&i.appendChild(document.createTextNode(a.slice(o))),i},position:50},{render(e){if(!e.detail)return null;let t=document.createElement(`span`);return t.className=`cm-completionDetail`,t.textContent=e.detail,t},position:80}),t.sort((e,t)=>e.position-t.position).map(e=>e.render)}function LW(e,t,n){if(e<=n)return{from:0,to:e};if(t<0&&(t=0),t<=e>>1){let e=Math.floor(t/n);return{from:e*n,to:(e+1)*n}}let r=Math.floor((e-t)/n);return{from:e-(r+1)*n,to:e-r*n}}var RW=class{constructor(e,t,n){this.view=e,this.stateField=t,this.applyCompletion=n,this.info=null,this.infoDestroy=null,this.placeInfoReq={read:()=>this.measureInfo(),write:e=>this.placeInfo(e),key:this},this.space=null,this.currentClass=``;let r=e.state.field(t),{options:i,selected:a}=r.open,o=e.state.facet(MW);this.optionContent=IW(o),this.optionClass=o.optionClass,this.tooltipClass=o.tooltipClass,this.range=LW(i.length,a,o.maxRenderedOptions),this.dom=document.createElement(`div`),this.dom.className=`cm-tooltip-autocomplete`,this.updateTooltipClass(e.state),this.dom.addEventListener(`mousedown`,n=>{let{options:r}=e.state.field(t).open;for(let t=n.target,i;t&&t!=this.dom;t=t.parentNode)if(t.nodeName==`LI`&&(i=/-(\d+)$/.exec(t.id))&&+i[1]<r.length){this.applyCompletion(e,r[+i[1]]),n.preventDefault();return}if(n.target==this.list){let t=this.list.classList.contains(`cm-completionListIncompleteTop`)&&n.clientY<this.list.firstChild.getBoundingClientRect().top?this.range.from-1:this.list.classList.contains(`cm-completionListIncompleteBottom`)&&n.clientY>this.list.lastChild.getBoundingClientRect().bottom?this.range.to:null;t!=null&&(e.dispatch({effects:FW.of(t)}),n.preventDefault())}}),this.dom.addEventListener(`focusout`,t=>{let n=e.state.field(this.stateField,!1);n&&n.tooltip&&e.state.facet(MW).closeOnBlur&&t.relatedTarget!=e.contentDOM&&e.dispatch({effects:kW.of(null)})}),this.showOptions(i,r.id)}mount(){this.updateSel()}showOptions(e,t){this.list&&this.list.remove(),this.list=this.dom.appendChild(this.createListBox(e,t,this.range)),this.list.addEventListener(`scroll`,()=>{this.info&&this.view.requestMeasure(this.placeInfoReq)})}update(e){let t=e.state.field(this.stateField),n=e.startState.field(this.stateField);if(this.updateTooltipClass(e.state),t!=n){let{options:r,selected:i,disabled:a}=t.open;(!n.open||n.open.options!=r)&&(this.range=LW(r.length,i,e.state.facet(MW).maxRenderedOptions),this.showOptions(r,t.id)),this.updateSel(),a!=n.open?.disabled&&this.dom.classList.toggle(`cm-tooltip-autocomplete-disabled`,!!a)}}updateTooltipClass(e){let t=this.tooltipClass(e);if(t!=this.currentClass){for(let e of this.currentClass.split(` `))e&&this.dom.classList.remove(e);for(let e of t.split(` `))e&&this.dom.classList.add(e);this.currentClass=t}}positioned(e){this.space=e,this.info&&this.view.requestMeasure(this.placeInfoReq)}updateSel(){let e=this.view.state.field(this.stateField),t=e.open;(t.selected>-1&&t.selected<this.range.from||t.selected>=this.range.to)&&(this.range=LW(t.options.length,t.selected,this.view.state.facet(MW).maxRenderedOptions),this.showOptions(t.options,e.id));let n=this.updateSelectedOption(t.selected);if(n){this.destroyInfo();let{completion:r}=t.options[t.selected],{info:i}=r;if(!i)return;let a=typeof i==`string`?document.createTextNode(i):i(r);if(!a)return;`then`in a?a.then(t=>{t&&this.view.state.field(this.stateField,!1)==e&&this.addInfoPane(t,r)}).catch(e=>_e(this.view.state,e,`completion info`)):(this.addInfoPane(a,r),n.setAttribute(`aria-describedby`,this.info.id))}}addInfoPane(e,t){this.destroyInfo();let n=this.info=document.createElement(`div`);if(n.className=`cm-tooltip cm-completionInfo`,n.id=`cm-completionInfo-`+Math.floor(Math.random()*65535).toString(16),e.nodeType!=null)n.appendChild(e),this.infoDestroy=null;else{let{dom:t,destroy:r}=e;n.appendChild(t),this.infoDestroy=r||null}this.dom.appendChild(n),this.view.requestMeasure(this.placeInfoReq)}updateSelectedOption(e){let t=null;for(let n=this.list.firstChild,r=this.range.from;n;n=n.nextSibling,r++)n.nodeName!=`LI`||!n.id?r--:r==e?n.hasAttribute(`aria-selected`)||(n.setAttribute(`aria-selected`,`true`),t=n):n.hasAttribute(`aria-selected`)&&(n.removeAttribute(`aria-selected`),n.removeAttribute(`aria-describedby`));return t&&BW(this.list,t),t}measureInfo(){let e=this.dom.querySelector(`[aria-selected]`);if(!e||!this.info)return null;let t=this.dom.getBoundingClientRect(),n=this.info.getBoundingClientRect(),r=e.getBoundingClientRect(),i=this.space;if(!i){let e=this.dom.ownerDocument.documentElement;i={left:0,top:0,right:e.clientWidth,bottom:e.clientHeight}}return r.top>Math.min(i.bottom,t.bottom)-10||r.bottom<Math.max(i.top,t.top)+10?null:this.view.state.facet(MW).positionInfo(this.view,t,r,n,i,this.dom)}placeInfo(e){this.info&&(e?(e.style&&(this.info.style.cssText=e.style),this.info.className=`cm-tooltip cm-completionInfo `+(e.class||``)):this.info.style.cssText=`top: -1e6px`)}createListBox(e,t,n){let r=document.createElement(`ul`);r.id=t,r.setAttribute(`role`,`listbox`),r.setAttribute(`aria-expanded`,`true`),r.setAttribute(`aria-label`,this.view.state.phrase(`Completions`)),r.addEventListener(`mousedown`,e=>{e.target==r&&e.preventDefault()});let i=null;for(let a=n.from;a<n.to;a++){let{completion:o,match:s}=e[a],{section:c}=o;if(c){let e=typeof c==`string`?c:c.name;if(e!=i&&(a>n.from||n.from==0))if(i=e,typeof c!=`string`&&c.header)r.appendChild(c.header(c));else{let t=r.appendChild(document.createElement(`completion-section`));t.textContent=e}}let l=r.appendChild(document.createElement(`li`));l.id=t+`-`+a,l.setAttribute(`role`,`option`);let u=this.optionClass(o);u&&(l.className=u);for(let e of this.optionContent){let t=e(o,this.view.state,this.view,s);t&&l.appendChild(t)}}return n.from&&r.classList.add(`cm-completionListIncompleteTop`),n.to<e.length&&r.classList.add(`cm-completionListIncompleteBottom`),r}destroyInfo(){this.info&&=(this.infoDestroy&&this.infoDestroy(),this.info.remove(),null)}destroy(){this.destroyInfo()}};function zW(e,t){return n=>new RW(n,e,t)}function BW(e,t){let n=e.getBoundingClientRect(),r=t.getBoundingClientRect(),i=n.height/e.offsetHeight;r.top<n.top?e.scrollTop-=(n.top-r.top)/i:r.bottom>n.bottom&&(e.scrollTop+=(r.bottom-n.bottom)/i)}function VW(e){return(e.boost||0)*100+(e.apply?10:0)+(e.info?5:0)+ +!!e.type}function HW(e,t){let n=[],r=null,i=null,a=e=>{n.push(e);let{section:t}=e.completion;if(t){r||=[];let e=typeof t==`string`?t:t.name;r.some(t=>t.name==e)||r.push(typeof t==`string`?{name:e}:t)}},o=t.facet(MW);for(let r of e)if(r.hasResult()){let e=r.result.getMatch;if(r.result.filter===!1)for(let t of r.result.options)a(new xW(t,r.source,e?e(t):[],1e9-n.length));else{let n=t.sliceDoc(r.from,r.to),s,c=o.filterStrict?new jW(n):new AW(n);for(let t of r.result.options)if(s=c.match(t.label)){let n=t.displayLabel?e?e(t,s.matched):[]:s.matched,o=s.score+(t.boost||0);if(a(new xW(t,r.source,n,o)),typeof t.section==`object`&&t.section.rank===`dynamic`){let{name:e}=t.section;i||=Object.create(null),i[e]=Math.max(o,i[e]||-1e9)}}}}if(r){let e=Object.create(null),t=0,a=(e,t)=>(e.rank===`dynamic`&&t.rank===`dynamic`?i[t.name]-i[e.name]:0)||(typeof e.rank==`number`?e.rank:1e9)-(typeof t.rank==`number`?t.rank:1e9)||(e.name<t.name?-1:1);for(let n of r.sort(a))t-=1e5,e[n.name]=t;for(let t of n){let{section:n}=t.completion;n&&(t.score+=e[typeof n==`string`?n:n.name])}}let s=[],c=null,l=o.compareCompletions;for(let e of n.sort((e,t)=>t.score-e.score||l(e.completion,t.completion))){let t=e.completion;!c||c.label!=t.label||c.detail!=t.detail||c.type!=null&&t.type!=null&&c.type!=t.type||c.apply!=t.apply||c.boost!=t.boost?s.push(e):VW(e.completion)>VW(c)&&(s[s.length-1]=e),c=e.completion}return s}var UW=class e{constructor(e,t,n,r,i,a){this.options=e,this.attrs=t,this.tooltip=n,this.timestamp=r,this.selected=i,this.disabled=a}setSelected(t,n){return t==this.selected||t>=this.options.length?this:new e(this.options,JW(n,t),this.tooltip,this.timestamp,t,this.disabled)}static build(t,n,r,i,a,o){if(i&&!o&&t.some(e=>e.isPending))return i.setDisabled();let s=HW(t,n);if(!s.length)return i&&t.some(e=>e.isPending)?i.setDisabled():null;let c=n.facet(MW).selectOnOpen?0:-1;if(i&&i.selected!=c&&i.selected!=-1){let e=i.options[i.selected].completion;for(let t=0;t<s.length;t++)if(s[t].completion==e){c=t;break}}return new e(s,JW(r,c),{pos:t.reduce((e,t)=>t.hasResult()?Math.min(e,t.from):e,1e8),create:rG,above:a.aboveCursor},i?i.timestamp:Date.now(),c,!1)}map(t){return new e(this.options,this.attrs,{...this.tooltip,pos:t.mapPos(this.tooltip.pos)},this.timestamp,this.selected,this.disabled)}setDisabled(){return new e(this.options,this.attrs,this.tooltip,this.timestamp,this.selected,!0)}},WW=class e{constructor(e,t,n){this.active=e,this.id=t,this.open=n}static start(){return new e(YW,`cm-ac-`+Math.floor(Math.random()*2e6).toString(36),null)}update(t){let{state:n}=t,r=n.facet(MW),i=(r.override||n.languageDataAt(`autocomplete`,SW(n)).map(DW)).map(e=>(this.active.find(t=>t.source==e)||new ZW(e,+!!this.active.some(e=>e.state!=0))).update(t,r));i.length==this.active.length&&i.every((e,t)=>e==this.active[t])&&(i=this.active);let a=this.open,o=t.effects.some(e=>e.is(eG));a&&t.docChanged&&(a=a.map(t.changes)),t.selection||i.some(e=>e.hasResult()&&t.changes.touchesRange(e.from,e.to))||!GW(i,this.active)||o?a=UW.build(i,n,this.id,a,r,o):a&&a.disabled&&!i.some(e=>e.isPending)&&(a=null),!a&&i.every(e=>!e.isPending)&&i.some(e=>e.hasResult())&&(i=i.map(e=>e.hasResult()?new ZW(e.source,0):e));for(let e of t.effects)e.is(FW)&&(a&&=a.setSelected(e.value,this.id));return i==this.active&&a==this.open?this:new e(i,this.id,a)}get tooltip(){return this.open?this.open.tooltip:null}get attrs(){return this.open?this.open.attrs:this.active.length?KW:qW}};function GW(e,t){if(e==t)return!0;for(let n=0,r=0;;){for(;n<e.length&&!e[n].hasResult();)n++;for(;r<t.length&&!t[r].hasResult();)r++;let i=n==e.length,a=r==t.length;if(i||a)return i==a;if(e[n++].result!=t[r++].result)return!1}}var KW={"aria-autocomplete":`list`},qW={};function JW(e,t){let n={"aria-autocomplete":`list`,"aria-haspopup":`listbox`,"aria-controls":e};return t>-1&&(n[`aria-activedescendant`]=e+`-`+t),n}var YW=[];function XW(e,t){if(e.isUserEvent(`input.complete`)){let n=e.annotation(wW);if(n&&t.activateOnCompletion(n))return 12}let n=e.isUserEvent(`input.type`);return n&&t.activateOnTyping?5:n?1:e.isUserEvent(`delete.backward`)?2:e.selection?8:e.docChanged?16:0}var ZW=class e{constructor(e,t,n=!1){this.source=e,this.state=t,this.explicit=n}hasResult(){return!1}get isPending(){return this.state==1}update(t,n){let r=XW(t,n),i=this;(r&8||r&16&&this.touches(t))&&(i=new e(i.source,0)),r&4&&i.state==0&&(i=new e(this.source,1)),i=i.updateFor(t,r);for(let n of t.effects)if(n.is(OW))i=new e(i.source,1,n.value);else if(n.is(kW))i=new e(i.source,0);else if(n.is(eG))for(let e of n.value)e.source==i.source&&(i=e);return i}updateFor(e,t){return this.map(e.changes)}map(e){return this}touches(e){return e.changes.touchesRange(SW(e.state))}},QW=class e extends ZW{constructor(e,t,n,r,i,a){super(e,3,t),this.limit=n,this.result=r,this.from=i,this.to=a}hasResult(){return!0}updateFor(t,n){if(!(n&3))return this.map(t.changes);let r=this.result;r.map&&!t.changes.empty&&(r=r.map(r,t.changes));let i=t.changes.mapPos(this.from),a=t.changes.mapPos(this.to,1),o=SW(t.state);if(o>a||!r||n&2&&(SW(t.startState)==this.from||o<this.limit))return new ZW(this.source,n&4?1:0);let s=t.changes.mapPos(this.limit);return $W(r.validFor,t.state,i,a)?new e(this.source,this.explicit,s,r,i,a):r.update&&(r=r.update(r,i,a,new gW(t.state,o,!1)))?new e(this.source,this.explicit,s,r,r.from,r.to??SW(t.state)):new ZW(this.source,1,this.explicit)}map(t){return t.empty?this:(this.result.map?this.result.map(this.result,t):this.result)?new e(this.source,this.explicit,t.mapPos(this.limit),this.result,t.mapPos(this.from),t.mapPos(this.to,1)):new ZW(this.source,0)}touches(e){return e.changes.touchesRange(this.from,this.to)}};function $W(e,t,n,r){if(!e)return!1;let i=t.sliceDoc(n,r);return typeof e==`function`?e(i,n,r,t):CW(e,!0).test(i)}var eG=S.define({map(e,t){return e.map(e=>e.map(t))}}),tG=w.define({create(){return WW.start()},update(e,t){return e.update(t)},provide:e=>[Se.from(e,e=>e.tooltip),P.contentAttributes.from(e,e=>e.attrs)]});function nG(e,t){let n=t.completion.apply||t.completion.label,r=e.state.field(tG).active.find(e=>e.source==t.source);return r instanceof QW?(typeof n==`string`?e.dispatch({...TW(e.state,n,r.from,r.to),annotations:wW.of(t.completion)}):n(e,t.completion,r.from,r.to),!0):!1}var rG=zW(tG,nG);function iG(e,t=`option`){return n=>{let r=n.state.field(tG,!1);if(!r||!r.open||r.open.disabled||Date.now()-r.open.timestamp<n.state.facet(MW).interactionDelay)return!1;let i=1,a;t==`page`&&(a=He(n,r.open.tooltip))&&(i=Math.max(2,Math.floor(a.dom.offsetHeight/a.dom.querySelector(`li`).offsetHeight)-1));let{length:o}=r.open.options,s=r.open.selected>-1?r.open.selected+i*(e?1:-1):e?0:o-1;return s<0?s=t==`page`?0:o-1:s>=o&&(s=t==`page`?o-1:0),n.dispatch({effects:FW.of(s)}),!0}}var aG=e=>{let t=e.state.field(tG,!1);return e.state.readOnly||!t||!t.open||t.open.selected<0||t.open.disabled||Date.now()-t.open.timestamp<e.state.facet(MW).interactionDelay?!1:nG(e,t.open.options[t.open.selected])},oG=e=>e.state.field(tG,!1)?(e.dispatch({effects:OW.of(!0)}),!0):!1,sG=e=>{let t=e.state.field(tG,!1);return!t||!t.active.some(e=>e.state!=0)?!1:(e.dispatch({effects:kW.of(null)}),!0)},cG=class{constructor(e,t){this.active=e,this.context=t,this.time=Date.now(),this.updates=[],this.done=void 0}},lG=50,uG=1e3,dG=se.fromClass(class{constructor(e){this.view=e,this.debounceUpdate=-1,this.running=[],this.debounceAccept=-1,this.pendingStart=!1,this.composing=0;for(let t of e.state.field(tG).active)t.isPending&&this.startQuery(t)}update(e){let t=e.state.field(tG),n=e.state.facet(MW);if(!e.selectionSet&&!e.docChanged&&e.startState.field(tG)==t)return;let r=e.transactions.some(e=>{let t=XW(e,n);return t&8||(e.selection||e.docChanged)&&!(t&3)});for(let t=0;t<this.running.length;t++){let n=this.running[t];if(r||n.context.abortOnDocChange&&e.docChanged||n.updates.length+e.transactions.length>lG&&Date.now()-n.time>uG){for(let e of n.context.abortListeners)try{e()}catch(e){_e(this.view.state,e)}n.context.abortListeners=null,this.running.splice(t--,1)}else n.updates.push(...e.transactions)}this.debounceUpdate>-1&&clearTimeout(this.debounceUpdate),e.transactions.some(e=>e.effects.some(e=>e.is(OW)))&&(this.pendingStart=!0);let i=this.pendingStart?50:n.activateOnTypingDelay;if(this.debounceUpdate=t.active.some(e=>e.isPending&&!this.running.some(t=>t.active.source==e.source))?setTimeout(()=>this.startUpdate(),i):-1,this.composing!=0)for(let t of e.transactions)t.isUserEvent(`input.type`)?this.composing=2:this.composing==2&&t.selection&&(this.composing=3)}startUpdate(){this.debounceUpdate=-1,this.pendingStart=!1;let{state:e}=this.view,t=e.field(tG);for(let e of t.active)e.isPending&&!this.running.some(t=>t.active.source==e.source)&&this.startQuery(e);this.running.length&&t.open&&t.open.disabled&&(this.debounceAccept=setTimeout(()=>this.accept(),this.view.state.facet(MW).updateSyncTime))}startQuery(e){let{state:t}=this.view,n=new gW(t,SW(t),e.explicit,this.view),r=new cG(e,n);this.running.push(r),Promise.resolve(e.source(n)).then(e=>{r.context.aborted||(r.done=e||null,this.scheduleAccept())},e=>{this.view.dispatch({effects:kW.of(null)}),_e(this.view.state,e)})}scheduleAccept(){this.running.every(e=>e.done!==void 0)?this.accept():this.debounceAccept<0&&(this.debounceAccept=setTimeout(()=>this.accept(),this.view.state.facet(MW).updateSyncTime))}accept(){this.debounceAccept>-1&&clearTimeout(this.debounceAccept),this.debounceAccept=-1;let e=[],t=this.view.state.facet(MW),n=this.view.state.field(tG);for(let r=0;r<this.running.length;r++){let i=this.running[r];if(i.done===void 0)continue;if(this.running.splice(r--,1),i.done){let n=SW(i.updates.length?i.updates[0].startState:this.view.state),r=Math.min(n,i.done.from+ +!i.active.explicit),a=new QW(i.active.source,i.active.explicit,r,i.done,i.done.from,i.done.to??n);for(let e of i.updates)a=a.update(e,t);if(a.hasResult()){e.push(a);continue}}let a=n.active.find(e=>e.source==i.active.source);if(a&&a.isPending)if(i.done==null){let n=new ZW(i.active.source,0);for(let e of i.updates)n=n.update(e,t);n.isPending||e.push(n)}else this.startQuery(a)}(e.length||n.open&&n.open.disabled)&&this.view.dispatch({effects:eG.of(e)})}},{eventHandlers:{blur(e){let t=this.view.state.field(tG,!1);if(t&&t.tooltip&&this.view.state.facet(MW).closeOnBlur){let n=t.open&&He(this.view,t.open.tooltip);(!n||!n.dom.contains(e.relatedTarget))&&setTimeout(()=>this.view.dispatch({effects:kW.of(null)}),10)}},compositionstart(){this.composing=1},compositionend(){this.composing==3&&setTimeout(()=>this.view.dispatch({effects:OW.of(!1)}),20),this.composing=0}}}),fG=typeof navigator==`object`&&/Win/.test(navigator.platform),pG=E.highest(P.domEventHandlers({keydown(e,t){let n=t.state.field(tG,!1);if(!n||!n.open||n.open.disabled||n.open.selected<0||e.key.length>1||e.ctrlKey&&!(fG&&e.altKey)||e.metaKey)return!1;let r=n.open.options[n.open.selected],i=n.active.find(e=>e.source==r.source),a=r.completion.commitCharacters||i.result.commitCharacters;return a&&a.indexOf(e.key)>-1&&nG(t,r),!1}})),mG=P.baseTheme({".cm-tooltip.cm-tooltip-autocomplete":{"& > ul":{fontFamily:`monospace`,whiteSpace:`nowrap`,overflow:`hidden auto`,maxWidth_fallback:`700px`,maxWidth:`min(700px, 95vw)`,minWidth:`250px`,maxHeight:`10em`,height:`100%`,listStyle:`none`,margin:0,padding:0,"& > li, & > completion-section":{padding:`1px 3px`,lineHeight:1.2},"& > li":{overflowX:`hidden`,textOverflow:`ellipsis`,cursor:`pointer`},"& > completion-section":{display:`list-item`,borderBottom:`1px solid silver`,paddingLeft:`0.5em`,opacity:.7}}},"&light .cm-tooltip-autocomplete ul li[aria-selected]":{background:`#17c`,color:`white`},"&light .cm-tooltip-autocomplete-disabled ul li[aria-selected]":{background:`#777`},"&dark .cm-tooltip-autocomplete ul li[aria-selected]":{background:`#347`,color:`white`},"&dark .cm-tooltip-autocomplete-disabled ul li[aria-selected]":{background:`#444`},".cm-completionListIncompleteTop:before, .cm-completionListIncompleteBottom:after":{content:`"···"`,opacity:.5,display:`block`,textAlign:`center`},".cm-tooltip.cm-completionInfo":{position:`absolute`,padding:`3px 9px`,width:`max-content`,maxWidth:`400px`,boxSizing:`border-box`,whiteSpace:`pre-line`},".cm-completionInfo.cm-completionInfo-left":{right:`100%`},".cm-completionInfo.cm-completionInfo-right":{left:`100%`},".cm-completionInfo.cm-completionInfo-left-narrow":{right:`30px`},".cm-completionInfo.cm-completionInfo-right-narrow":{left:`30px`},"&light .cm-snippetField":{backgroundColor:`#00000022`},"&dark .cm-snippetField":{backgroundColor:`#ffffff22`},".cm-snippetFieldPosition":{verticalAlign:`text-top`,width:0,height:`1.15em`,display:`inline-block`,margin:`0 -0.7px -.7em`,borderLeft:`1.4px dotted #888`},".cm-completionMatchedText":{textDecoration:`underline`},".cm-completionDetail":{marginLeft:`0.5em`,fontStyle:`italic`},".cm-completionIcon":{fontSize:`90%`,width:`.8em`,display:`inline-block`,textAlign:`center`,paddingRight:`.6em`,opacity:`0.6`,boxSizing:`content-box`},".cm-completionIcon-function, .cm-completionIcon-method":{"&:after":{content:`'ƒ'`}},".cm-completionIcon-class":{"&:after":{content:`'○'`}},".cm-completionIcon-interface":{"&:after":{content:`'◌'`}},".cm-completionIcon-variable":{"&:after":{content:`'𝑥'`}},".cm-completionIcon-constant":{"&:after":{content:`'𝐶'`}},".cm-completionIcon-type":{"&:after":{content:`'𝑡'`}},".cm-completionIcon-enum":{"&:after":{content:`'∪'`}},".cm-completionIcon-property":{"&:after":{content:`'□'`}},".cm-completionIcon-keyword":{"&:after":{content:`'🔑︎'`}},".cm-completionIcon-namespace":{"&:after":{content:`'▢'`}},".cm-completionIcon-text":{"&:after":{content:`'abc'`,fontSize:`50%`,verticalAlign:`middle`}}}),hG=class{constructor(e,t,n,r){this.field=e,this.line=t,this.from=n,this.to=r}},gG=class e{constructor(e,t,n){this.field=e,this.from=t,this.to=n}map(t){let n=t.mapPos(this.from,-1,c.TrackDel),r=t.mapPos(this.to,1,c.TrackDel);return n==null||r==null?null:new e(this.field,n,r)}},_G=class e{constructor(e,t){this.lines=e,this.fieldPositions=t}instantiate(e,n){let r=[],i=[n],a=e.doc.lineAt(n),o=/^\s*/.exec(a.text)[0];for(let a of this.lines){if(r.length){let r=o,s=/^\t*/.exec(a)[0].length;for(let n=0;n<s;n++)r+=e.facet(t);i.push(n+r.length-s),a=r+a.slice(s)}r.push(a),n+=a.length+1}return{text:r,ranges:this.fieldPositions.map(e=>new gG(e.field,i[e.line]+e.from,i[e.line]+e.to))}}static parse(t){let n=[],r=[],i=[],a;for(let e of t.split(/\r\n?|\n/)){for(;a=/[#$]\{(?:(\d+)(?::([^{}]*))?|((?:\\[{}]|[^{}])*))\}/.exec(e);){let t=a[1]?+a[1]:null,o=a[2]||a[3]||``,s=-1,c=o.replace(/\\[{}]/g,e=>e[1]);for(let e=0;e<n.length;e++)(t==null?c&&n[e].name==c:n[e].seq==t)&&(s=e);if(s<0){let e=0;for(;e<n.length&&(t==null||n[e].seq!=null&&n[e].seq<t);)e++;n.splice(e,0,{seq:t,name:c}),s=e;for(let e of i)e.field>=s&&e.field++}for(let e of i)if(e.line==r.length&&e.from>a.index){let t=a[2]?3+(a[1]||``).length:2;e.from-=t,e.to-=t}i.push(new hG(s,r.length,a.index,a.index+c.length)),e=e.slice(0,a.index)+o+e.slice(a.index+a[0].length)}e=e.replace(/\\([{}])/g,(e,t,n)=>{for(let e of i)e.line==r.length&&e.from>n&&(e.from--,e.to--);return t}),r.push(e)}return new e(r,i)}},vG=Be.widget({widget:new class extends O{toDOM(){let e=document.createElement(`span`);return e.className=`cm-snippetFieldPosition`,e}ignoreEvent(){return!1}}}),yG=Be.mark({class:`cm-snippetField`}),bG=class e{constructor(e,t){this.ranges=e,this.active=t,this.deco=Be.set(e.map(e=>(e.from==e.to?vG:yG).range(e.from,e.to)),!0)}map(t){let n=[];for(let e of this.ranges){let r=e.map(t);if(!r)return null;n.push(r)}return new e(n,this.active)}selectionInsideField(e){return e.ranges.every(e=>this.ranges.some(t=>t.field==this.active&&t.from<=e.from&&t.to>=e.to))}},xG=S.define({map(e,t){return e&&e.map(t)}}),SG=S.define(),CG=w.define({create(){return null},update(e,t){for(let n of t.effects){if(n.is(xG))return n.value;if(n.is(SG)&&e)return new bG(e.ranges,n.value)}return e&&t.docChanged&&(e=e.map(t.changes)),e&&t.selection&&!e.selectionInsideField(t.selection)&&(e=null),e},provide:e=>P.decorations.from(e,e=>e?e.deco:Be.none)});function wG(e,t){return I.create(e.filter(e=>e.field==t).map(e=>I.range(e.from,e.to)))}function TG(e){let t=_G.parse(e);return(e,n,r,i)=>{let{text:a,ranges:o}=t.instantiate(e.state,r),{main:s}=e.state.selection,c={changes:{from:r,to:i==s.from?s.to:i,insert:D.of(a)},scrollIntoView:!0,annotations:n?[wW.of(n),f.userEvent.of(`input.complete`)]:void 0};if(o.length&&(c.selection=wG(o,0)),o.some(e=>e.field>0)){let t=new bG(o,0),n=c.effects=[xG.of(t)];e.state.field(CG,!1)===void 0&&n.push(S.appendConfig.of([CG,kG,jG,mG]))}e.dispatch(e.state.update(c))}}function EG(e){return({state:t,dispatch:n})=>{let r=t.field(CG,!1);if(!r||e<0&&r.active==0)return!1;let i=r.active+e,a=e>0&&!r.ranges.some(t=>t.field==i+e);return n(t.update({selection:wG(r.ranges,i),effects:xG.of(a?null:new bG(r.ranges,i)),scrollIntoView:!0})),!0}}var DG=[{key:`Tab`,run:EG(1),shift:EG(-1)},{key:`Escape`,run:({state:e,dispatch:t})=>e.field(CG,!1)?(t(e.update({effects:xG.of(null)})),!0):!1}],OG=u.define({combine(e){return e.length?e[0]:DG}}),kG=E.highest(je.compute([OG],e=>e.facet(OG)));function AG(e,t){return{...t,apply:TG(e)}}var jG=P.domEventHandlers({mousedown(e,t){let n=t.state.field(CG,!1),r;if(!n||(r=t.posAtCoords({x:e.clientX,y:e.clientY}))==null)return!1;let i=n.ranges.find(e=>e.from<=r&&e.to>=r);return!i||i.field==n.active?!1:(t.dispatch({selection:wG(n.ranges,i.field),effects:xG.of(n.ranges.some(e=>e.field>i.field)?new bG(n.ranges,i.field):null),scrollIntoView:!0}),!0)}}),MG={brackets:[`(`,`[`,`{`,`'`,`"`],before:`)]}:;>`,stringPrefixes:[]},NG=S.define({map(e,t){return t.mapPos(e,-1,c.TrackAfter)??void 0}}),PG=new class extends Oe{};PG.startSide=1,PG.endSide=-1;var FG=w.define({create(){return Ae.empty},update(e,t){if(e=e.map(t.changes),t.selection){let n=t.state.doc.lineAt(t.selection.main.head);e=e.update({filter:e=>e>=n.from&&e<=n.to})}for(let n of t.effects)n.is(NG)&&(e=e.update({add:[PG.range(n.value,n.value+1)]}));return e}});function IG(){return[VG,FG]}var LG=`()[]{}<>«»»«[]{}`;function RG(e){for(let t=0;t<16;t+=2)if(LG.charCodeAt(t)==e)return LG.charAt(t+1);return ie(e<128?e:e+1)}function zG(e,t){return e.languageDataAt(`closeBrackets`,t)[0]||MG}var BG=typeof navigator==`object`&&/Android\b/.test(navigator.userAgent),VG=P.inputHandler.of((e,t,n,r)=>{if((BG?e.composing:e.compositionStarted)||e.state.readOnly)return!1;let i=e.state.selection.main;if(r.length>2||r.length==2&&b(g(r,0))==1||t!=i.from||n!=i.to)return!1;let a=UG(e.state,r);return a?(e.dispatch(a),!0):!1}),HG=[{key:`Backspace`,run:({state:e,dispatch:t})=>{if(e.readOnly)return!1;let n=zG(e,e.selection.main.head).brackets||MG.brackets,r=null,i=e.changeByRange(t=>{if(t.empty){let r=KG(e.doc,t.head);for(let i of n)if(i==r&&GG(e.doc,t.head)==RG(g(i,0)))return{changes:{from:t.head-i.length,to:t.head+i.length},range:I.cursor(t.head-i.length)}}return{range:r=t}});return r||t(e.update(i,{scrollIntoView:!0,userEvent:`delete.backward`})),!r}}];function UG(e,t){let n=zG(e,e.selection.main.head),r=n.brackets||MG.brackets;for(let i of r){let a=RG(g(i,0));if(t==i)return a==i?YG(e,i,r.indexOf(i+i+i)>-1,n):qG(e,i,a,n.before||MG.before);if(t==a&&WG(e,e.selection.main.from))return JG(e,i,a)}return null}function WG(e,t){let n=!1;return e.field(FG).between(0,e.doc.length,e=>{e==t&&(n=!0)}),n}function GG(e,t){let n=e.sliceString(t,t+2);return n.slice(0,b(g(n,0)))}function KG(e,t){let n=e.sliceString(t-2,t);return b(g(n,0))==n.length?n:n.slice(1)}function qG(e,t,n,r){let i=null,a=e.changeByRange(a=>{if(!a.empty)return{changes:[{insert:t,from:a.from},{insert:n,from:a.to}],effects:NG.of(a.to+t.length),range:I.range(a.anchor+t.length,a.head+t.length)};let o=GG(e.doc,a.head);return!o||/\s/.test(o)||r.indexOf(o)>-1?{changes:{insert:t+n,from:a.head},effects:NG.of(a.head+t.length),range:I.cursor(a.head+t.length)}:{range:i=a}});return i?null:e.update(a,{scrollIntoView:!0,userEvent:`input.type`})}function JG(e,t,n){let r=null,i=e.changeByRange(t=>t.empty&&GG(e.doc,t.head)==n?{changes:{from:t.head,to:t.head+n.length,insert:n},range:I.cursor(t.head+n.length)}:r={range:t});return r?null:e.update(i,{scrollIntoView:!0,userEvent:`input.type`})}function YG(e,t,n,r){let i=r.stringPrefixes||MG.stringPrefixes,a=null,o=e.changeByRange(r=>{if(!r.empty)return{changes:[{insert:t,from:r.from},{insert:t,from:r.to}],effects:NG.of(r.to+t.length),range:I.range(r.anchor+t.length,r.head+t.length)};let o=r.head,s=GG(e.doc,o),c;if(s==t){if(XG(e,o))return{changes:{insert:t+t,from:o},effects:NG.of(o+t.length),range:I.cursor(o+t.length)};if(WG(e,o)){let r=n&&e.sliceDoc(o,o+t.length*3)==t+t+t?t+t+t:t;return{changes:{from:o,to:o+r.length,insert:r},range:I.cursor(o+r.length)}}}else if(n&&e.sliceDoc(o-2*t.length,o)==t+t&&(c=QG(e,o-2*t.length,i))>-1&&XG(e,c))return{changes:{insert:t+t+t+t,from:o},effects:NG.of(o+t.length),range:I.cursor(o+t.length)};else if(e.charCategorizer(o)(s)!=M.Word&&QG(e,o,i)>-1&&!ZG(e,o,t,i))return{changes:{insert:t+t,from:o},effects:NG.of(o+t.length),range:I.cursor(o+t.length)};return{range:a=r}});return a?null:e.update(o,{scrollIntoView:!0,userEvent:`input.type`})}function XG(e,t){let n=d(e).resolveInner(t+1);return n.parent&&n.from==t}function ZG(e,t,n,r){let i=d(e).resolveInner(t,-1),a=r.reduce((e,t)=>Math.max(e,t.length),0);for(let o=0;o<5;o++){let o=e.sliceDoc(i.from,Math.min(i.to,i.from+n.length+a)),s=o.indexOf(n);if(!s||s>-1&&r.indexOf(o.slice(0,s))>-1){let t=i.firstChild;for(;t&&t.from==i.from&&t.to-t.from>n.length+s;){if(e.sliceDoc(t.to-n.length,t.to)==n)return!1;t=t.firstChild}return!0}let c=i.to==t&&i.parent;if(!c)break;i=c}return!1}function QG(e,t,n){let r=e.charCategorizer(t);if(r(e.sliceDoc(t-1,t))!=M.Word)return t;for(let i of n){let n=t-i.length;if(e.sliceDoc(n,t)==i&&r(e.sliceDoc(n-1,n))!=M.Word)return n}return-1}function $G(e={}){return[pG,tG,MW.of(e),dG,tK,mG]}var eK=[{key:`Ctrl-Space`,run:oG},{mac:"Alt-`",run:oG},{mac:`Alt-i`,run:oG},{key:`Escape`,run:sG},{key:`ArrowDown`,run:iG(!0)},{key:`ArrowUp`,run:iG(!1)},{key:`PageDown`,run:iG(!0,`page`)},{key:`PageUp`,run:iG(!1,`page`)},{key:`Enter`,run:aG}],tK=E.highest(je.computeN([MW],e=>e.facet(MW).defaultKeymap?[eK]:[])),nK=e=>{let{state:t}=e,n=t.doc.lineAt(t.selection.main.from),r=sK(e.state,n.from);return r.line?iK(e):r.block?oK(e):!1};function rK(e,t){return({state:n,dispatch:r})=>{if(n.readOnly)return!1;let i=e(t,n);return i?(r(n.update(i)),!0):!1}}var iK=rK(fK,0),aK=rK(dK,0),oK=rK((e,t)=>dK(e,t,uK(t)),0);function sK(e,t){let n=e.languageDataAt(`commentTokens`,t,1);return n.length?n[0]:{}}var cK=50;function lK(e,{open:t,close:n},r,i){let a=e.sliceDoc(r-cK,r),o=e.sliceDoc(i,i+cK),s=/\s*$/.exec(a)[0].length,c=/^\s*/.exec(o)[0].length,l=a.length-s;if(a.slice(l-t.length,l)==t&&o.slice(c,c+n.length)==n)return{open:{pos:r-s,margin:s&&1},close:{pos:i+c,margin:c&&1}};let u,d;i-r<=2*cK?u=d=e.sliceDoc(r,i):(u=e.sliceDoc(r,r+cK),d=e.sliceDoc(i-cK,i));let f=/^\s*/.exec(u)[0].length,p=/\s*$/.exec(d)[0].length,m=d.length-p-n.length;return u.slice(f,f+t.length)==t&&d.slice(m,m+n.length)==n?{open:{pos:r+f+t.length,margin:+!!/\s/.test(u.charAt(f+t.length))},close:{pos:i-p-n.length,margin:+!!/\s/.test(d.charAt(m-1))}}:null}function uK(e){let t=[];for(let n of e.selection.ranges){let r=e.doc.lineAt(n.from),i=n.to<=r.to?r:e.doc.lineAt(n.to);i.from>r.from&&i.from==n.to&&(i=n.to==r.to+1?r:e.doc.lineAt(n.to-1));let a=t.length-1;a>=0&&t[a].to>r.from?t[a].to=i.to:t.push({from:r.from+/^\s*/.exec(r.text)[0].length,to:i.to})}return t}function dK(e,t,n=t.selection.ranges){let r=n.map(e=>sK(t,e.from).block);if(!r.every(e=>e))return null;let i=n.map((e,n)=>lK(t,r[n],e.from,e.to));if(e!=2&&!i.every(e=>e))return{changes:t.changes(n.map((e,t)=>i[t]?[]:[{from:e.from,insert:r[t].open+` `},{from:e.to,insert:` `+r[t].close}]))};if(e!=1&&i.some(e=>e)){let e=[];for(let t=0,n;t<i.length;t++)if(n=i[t]){let i=r[t],{open:a,close:o}=n;e.push({from:a.pos-i.open.length,to:a.pos+a.margin},{from:o.pos-o.margin,to:o.pos+i.close.length})}return{changes:e}}return null}function fK(e,t,n=t.selection.ranges){let r=[],i=-1;ranges:for(let{from:e,to:a}of n){let n=r.length,o=1e9,s;for(let n=e;n<=a;){let c=t.doc.lineAt(n);if(s==null&&(s=sK(t,c.from).line,!s))continue ranges;if(c.from>i&&(e==a||a>c.from)){i=c.from;let e=/^\s*/.exec(c.text)[0].length,t=e==c.length,n=c.text.slice(e,e+s.length)==s?e:-1;e<c.text.length&&e<o&&(o=e),r.push({line:c,comment:n,token:s,indent:e,empty:t,single:!1})}n=c.to+1}if(o<1e9)for(let e=n;e<r.length;e++)r[e].indent<r[e].line.text.length&&(r[e].indent=o);r.length==n+1&&(r[n].single=!0)}if(e!=2&&r.some(e=>e.comment<0&&(!e.empty||e.single))){let e=[];for(let{line:t,token:n,indent:i,empty:a,single:o}of r)(o||!a)&&e.push({from:t.from+i,insert:n+` `});let n=t.changes(e);return{changes:n,selection:t.selection.map(n,1)}}else if(e!=1&&r.some(e=>e.comment>=0)){let e=[];for(let{line:t,comment:n,token:i}of r)if(n>=0){let r=t.from+n,a=r+i.length;t.text[a-t.from]==` `&&a++,e.push({from:r,to:a})}return{changes:e}}return null}var pK=tt.define(),mK=tt.define(),hK=u.define(),gK=u.define({combine(e){return A(e,{minDepth:100,newGroupDelay:500,joinToEvent:(e,t)=>t},{minDepth:Math.max,newGroupDelay:Math.min,joinToEvent:(e,t)=>(n,r)=>e(n,r)||t(n,r)})}}),_K=w.define({create(){return IK.empty},update(e,t){let n=t.state.facet(gK),r=t.annotation(pK);if(r){let i=wK.fromTransaction(t,r.selection),a=r.side,o=a==0?e.undone:e.done;return o=i?TK(o,o.length,n.minDepth,i):jK(o,t.startState.selection),new IK(a==0?r.rest:o,a==0?o:r.rest)}let i=t.annotation(mK);if((i==`full`||i==`before`)&&(e=e.isolate()),t.annotation(f.addToHistory)===!1)return t.changes.empty?e:e.addMapping(t.changes.desc);let a=wK.fromTransaction(t),o=t.annotation(f.time),s=t.annotation(f.userEvent);return a?e=e.addChanges(a,o,s,n,t):t.selection&&(e=e.addSelection(t.startState.selection,o,s,n.newGroupDelay)),(i==`full`||i==`after`)&&(e=e.isolate()),e},toJSON(e){return{done:e.done.map(e=>e.toJSON()),undone:e.undone.map(e=>e.toJSON())}},fromJSON(e){return new IK(e.done.map(wK.fromJSON),e.undone.map(wK.fromJSON))}});function vK(e={}){return[_K,gK.of(e),P.domEventHandlers({beforeinput(e,t){let n=e.inputType==`historyUndo`?bK:e.inputType==`historyRedo`?xK:null;return n?(e.preventDefault(),n(t)):!1}})]}function yK(e,t){return function({state:n,dispatch:r}){if(!t&&n.readOnly)return!1;let i=n.field(_K,!1);if(!i)return!1;let a=i.pop(e,n,t);return a?(r(a),!0):!1}}var bK=yK(0,!1),xK=yK(1,!1),SK=yK(0,!0),CK=yK(1,!0),wK=class e{constructor(e,t,n,r,i){this.changes=e,this.effects=t,this.mapped=n,this.startSelection=r,this.selectionsAfter=i}setSelAfter(t){return new e(this.changes,this.effects,this.mapped,this.startSelection,t)}toJSON(){return{changes:this.changes?.toJSON(),mapped:this.mapped?.toJSON(),startSelection:this.startSelection?.toJSON(),selectionsAfter:this.selectionsAfter.map(e=>e.toJSON())}}static fromJSON(t){return new e(t.changes&&$e.fromJSON(t.changes),[],t.mapped&&pe.fromJSON(t.mapped),t.startSelection&&I.fromJSON(t.startSelection),t.selectionsAfter.map(I.fromJSON))}static fromTransaction(t,n){let r=kK;for(let e of t.startState.facet(hK)){let n=e(t);n.length&&(r=r.concat(n))}return!r.length&&t.changes.empty?null:new e(t.changes.invert(t.startState.doc),r,void 0,n||t.startState.selection,kK)}static selection(t){return new e(void 0,kK,void 0,void 0,t)}};function TK(e,t,n,r){let i=t+1>n+20?t-n-1:0,a=e.slice(i,t);return a.push(r),a}function EK(e,t){let n=[],r=!1;return e.iterChangedRanges((e,t)=>n.push(e,t)),t.iterChangedRanges((e,t,i,a)=>{for(let e=0;e<n.length;){let t=n[e++],o=n[e++];a>=t&&i<=o&&(r=!0)}}),r}function DK(e,t){return e.ranges.length==t.ranges.length&&e.ranges.filter((e,n)=>e.empty!=t.ranges[n].empty).length===0}function OK(e,t){return e.length?t.length?e.concat(t):e:t}var kK=[],AK=200;function jK(e,t){if(e.length){let n=e[e.length-1],r=n.selectionsAfter.slice(Math.max(0,n.selectionsAfter.length-AK));return r.length&&r[r.length-1].eq(t)?e:(r.push(t),TK(e,e.length-1,1e9,n.setSelAfter(r)))}else return[wK.selection([t])]}function MK(e){let t=e[e.length-1],n=e.slice();return n[e.length-1]=t.setSelAfter(t.selectionsAfter.slice(0,t.selectionsAfter.length-1)),n}function NK(e,t){if(!e.length)return e;let n=e.length,r=kK;for(;n;){let i=PK(e[n-1],t,r);if(i.changes&&!i.changes.empty||i.effects.length){let t=e.slice(0,n);return t[n-1]=i,t}else t=i.mapped,n--,r=i.selectionsAfter}return r.length?[wK.selection(r)]:kK}function PK(e,t,n){let r=OK(e.selectionsAfter.length?e.selectionsAfter.map(e=>e.map(t)):kK,n);if(!e.changes)return wK.selection(r);let i=e.changes.map(t),a=t.mapDesc(e.changes,!0),o=e.mapped?e.mapped.composeDesc(a):a;return new wK(i,S.mapEffects(e.effects,t),o,e.startSelection.map(a),r)}var FK=/^(input\.type|delete)($|\.)/,IK=class e{constructor(e,t,n=0,r=void 0){this.done=e,this.undone=t,this.prevTime=n,this.prevUserEvent=r}isolate(){return this.prevTime?new e(this.done,this.undone):this}addChanges(t,n,r,i,a){let o=this.done,s=o[o.length-1];return o=s&&s.changes&&!s.changes.empty&&t.changes&&(!r||FK.test(r))&&(!s.selectionsAfter.length&&n-this.prevTime<i.newGroupDelay&&i.joinToEvent(a,EK(s.changes,t.changes))||r==`input.type.compose`)?TK(o,o.length-1,i.minDepth,new wK(t.changes.compose(s.changes),OK(S.mapEffects(t.effects,s.changes),s.effects),s.mapped,s.startSelection,kK)):TK(o,o.length,i.minDepth,t),new e(o,kK,n,r)}addSelection(t,n,r,i){let a=this.done.length?this.done[this.done.length-1].selectionsAfter:kK;return a.length>0&&n-this.prevTime<i&&r==this.prevUserEvent&&r&&/^select($|\.)/.test(r)&&DK(a[a.length-1],t)?this:new e(jK(this.done,t),this.undone,n,r)}addMapping(t){return new e(NK(this.done,t),NK(this.undone,t),this.prevTime,this.prevUserEvent)}pop(e,t,n){let r=e==0?this.done:this.undone;if(r.length==0)return null;let i=r[r.length-1],a=i.selectionsAfter[0]||(i.startSelection?i.startSelection.map(i.changes.invertedDesc,1):t.selection);if(n&&i.selectionsAfter.length)return t.update({selection:i.selectionsAfter[i.selectionsAfter.length-1],annotations:pK.of({side:e,rest:MK(r),selection:a}),userEvent:e==0?`select.undo`:`select.redo`,scrollIntoView:!0});if(i.changes){let n=r.length==1?kK:r.slice(0,r.length-1);return i.mapped&&(n=NK(n,i.mapped)),t.update({changes:i.changes,selection:i.startSelection,effects:i.effects,annotations:pK.of({side:e,rest:n,selection:a}),filter:!1,userEvent:e==0?`undo`:`redo`,scrollIntoView:!0})}else return null}};IK.empty=new IK(kK,kK);var LK=[{key:`Mod-z`,run:bK,preventDefault:!0},{key:`Mod-y`,mac:`Mod-Shift-z`,run:xK,preventDefault:!0},{linux:`Ctrl-Shift-z`,run:xK,preventDefault:!0},{key:`Mod-u`,run:SK,preventDefault:!0},{key:`Alt-u`,mac:`Mod-Shift-u`,run:CK,preventDefault:!0}];function RK(e,t){return I.create(e.ranges.map(t),e.mainIndex)}function zK(e,t){return e.update({selection:t,scrollIntoView:!0,userEvent:`select`})}function BK({state:e,dispatch:t},n){let r=RK(e.selection,n);return r.eq(e.selection,!0)?!1:(t(zK(e,r)),!0)}function VK(e,t){return I.cursor(t?e.to:e.from)}function HK(e,t){return BK(e,n=>n.empty?e.moveByChar(n,t):VK(n,t))}function UK(e){return e.textDirectionAt(e.state.selection.main.head)==_.LTR}var WK=e=>HK(e,!UK(e)),GK=e=>HK(e,UK(e));function KK(e,t){return BK(e,n=>n.empty?e.moveByGroup(n,t):VK(n,t))}var qK=e=>KK(e,!UK(e)),JK=e=>KK(e,UK(e));typeof Intl<`u`&&Intl.Segmenter;function YK(e,t,n){if(t.type.prop(n))return!0;let r=t.to-t.from;return r&&(r>2||/[^\s,.;:]/.test(e.sliceDoc(t.from,t.to)))||t.firstChild}function XK(e,t,n){let i=d(e).resolveInner(t.head),a=n?r.closedBy:r.openedBy;for(let r=t.head;;){let t=n?i.childAfter(r):i.childBefore(r);if(!t)break;YK(e,t,a)?i=t:r=n?t.to:t.from}let o=i.type.prop(a),s,c;return c=o&&(s=n?x(e,i.from,1):x(e,i.to,-1))&&s.matched?n?s.end.to:s.end.from:n?i.to:i.from,I.cursor(c,n?-1:1)}var ZK=e=>BK(e,t=>XK(e.state,t,!UK(e))),QK=e=>BK(e,t=>XK(e.state,t,UK(e)));function $K(e,t){return BK(e,n=>{if(!n.empty)return VK(n,t);let r=e.moveVertically(n,t);return r.head==n.head?e.moveToLineBoundary(n,t):r})}var eq=e=>$K(e,!1),tq=e=>$K(e,!0);function nq(e){let t=e.scrollDOM.clientHeight<e.scrollDOM.scrollHeight-2,n=0,r=0,i;if(t){for(let t of e.state.facet(P.scrollMargins)){let i=t(e);i?.top&&(n=Math.max(i?.top,n)),i?.bottom&&(r=Math.max(i?.bottom,r))}i=e.scrollDOM.clientHeight-n-r}else i=(e.dom.ownerDocument.defaultView||window).innerHeight;return{marginTop:n,marginBottom:r,selfScroll:t,height:Math.max(e.defaultLineHeight,i-5)}}function rq(e,t){let n=nq(e),{state:r}=e,i=RK(r.selection,r=>r.empty?e.moveVertically(r,t,n.height):VK(r,t));if(i.eq(r.selection))return!1;let a;if(n.selfScroll){let t=e.coordsAtPos(r.selection.main.head),o=e.scrollDOM.getBoundingClientRect(),s=o.top+n.marginTop,c=o.bottom-n.marginBottom;t&&t.top>s&&t.bottom<c&&(a=P.scrollIntoView(i.main.head,{y:`start`,yMargin:t.top-s}))}return e.dispatch(zK(r,i),{effects:a}),!0}var iq=e=>rq(e,!1),aq=e=>rq(e,!0);function oq(e,t,n){let r=e.lineBlockAt(t.head),i=e.moveToLineBoundary(t,n);if(i.head==t.head&&i.head!=(n?r.to:r.from)&&(i=e.moveToLineBoundary(t,n,!1)),!n&&i.head==r.from&&r.length){let n=/^\s*/.exec(e.state.sliceDoc(r.from,Math.min(r.from+100,r.to)))[0].length;n&&t.head!=r.from+n&&(i=I.cursor(r.from+n))}return i}var sq=e=>BK(e,t=>oq(e,t,!0)),cq=e=>BK(e,t=>oq(e,t,!1)),lq=e=>BK(e,t=>oq(e,t,!UK(e))),uq=e=>BK(e,t=>oq(e,t,UK(e))),dq=e=>BK(e,t=>I.cursor(e.lineBlockAt(t.head).from,1)),fq=e=>BK(e,t=>I.cursor(e.lineBlockAt(t.head).to,-1));function pq(e,t,n){let r=!1,i=RK(e.selection,t=>{let i=x(e,t.head,-1)||x(e,t.head,1)||t.head>0&&x(e,t.head-1,1)||t.head<e.doc.length&&x(e,t.head+1,-1);if(!i||!i.end)return t;r=!0;let a=i.start.from==t.head?i.end.to:i.end.from;return n?I.range(t.anchor,a):I.cursor(a)});return r?(t(zK(e,i)),!0):!1}var mq=({state:e,dispatch:t})=>pq(e,t,!1);function hq(e,t){let n=RK(e.state.selection,e=>{let n=t(e);return I.range(e.anchor,n.head,n.goalColumn,n.bidiLevel||void 0,n.assoc)});return n.eq(e.state.selection)?!1:(e.dispatch(zK(e.state,n)),!0)}function gq(e,t){return hq(e,n=>e.moveByChar(n,t))}var _q=e=>gq(e,!UK(e)),vq=e=>gq(e,UK(e));function yq(e,t){return hq(e,n=>e.moveByGroup(n,t))}var bq=e=>yq(e,!UK(e)),xq=e=>yq(e,UK(e)),Sq=e=>hq(e,t=>XK(e.state,t,!UK(e))),Cq=e=>hq(e,t=>XK(e.state,t,UK(e)));function wq(e,t){return hq(e,n=>e.moveVertically(n,t))}var Tq=e=>wq(e,!1),Eq=e=>wq(e,!0);function Dq(e,t){return hq(e,n=>e.moveVertically(n,t,nq(e).height))}var Oq=e=>Dq(e,!1),kq=e=>Dq(e,!0),Aq=e=>hq(e,t=>oq(e,t,!0)),jq=e=>hq(e,t=>oq(e,t,!1)),Mq=e=>hq(e,t=>oq(e,t,!UK(e))),Nq=e=>hq(e,t=>oq(e,t,UK(e))),Pq=e=>hq(e,t=>I.cursor(e.lineBlockAt(t.head).from)),Fq=e=>hq(e,t=>I.cursor(e.lineBlockAt(t.head).to)),Iq=({state:e,dispatch:t})=>(t(zK(e,{anchor:0})),!0),Lq=({state:e,dispatch:t})=>(t(zK(e,{anchor:e.doc.length})),!0),Rq=({state:e,dispatch:t})=>(t(zK(e,{anchor:e.selection.main.anchor,head:0})),!0),zq=({state:e,dispatch:t})=>(t(zK(e,{anchor:e.selection.main.anchor,head:e.doc.length})),!0),Bq=({state:e,dispatch:t})=>(t(e.update({selection:{anchor:0,head:e.doc.length},userEvent:`select`})),!0),Vq=({state:e,dispatch:t})=>{let n=oJ(e).map(({from:t,to:n})=>I.range(t,Math.min(n+1,e.doc.length)));return t(e.update({selection:I.create(n),userEvent:`select`})),!0},Hq=({state:e,dispatch:t})=>{let n=RK(e.selection,t=>{let n=d(e),r=n.resolveStack(t.from,1);if(t.empty){let e=n.resolveStack(t.from,-1);e.node.from>=r.node.from&&e.node.to<=r.node.to&&(r=e)}for(let e=r;e;e=e.next){let{node:n}=e;if((n.from<t.from&&n.to>=t.to||n.to>t.to&&n.from<=t.from)&&e.next)return I.range(n.to,n.from)}return t});return n.eq(e.selection)?!1:(t(zK(e,n)),!0)};function Uq(e,t){let{state:n}=e,r=n.selection,i=n.selection.ranges.slice();for(let r of n.selection.ranges){let a=n.doc.lineAt(r.head);if(t?a.to<e.state.doc.length:a.from>0)for(let n=r;;){let r=e.moveVertically(n,t);if(r.head<a.from||r.head>a.to){i.some(e=>e.head==r.head)||i.push(r);break}else if(r.head==n.head)break;else n=r}}return i.length==r.ranges.length?!1:(e.dispatch(zK(n,I.create(i,i.length-1))),!0)}var Wq=e=>Uq(e,!1),Gq=e=>Uq(e,!0),Kq=({state:e,dispatch:t})=>{let n=e.selection,r=null;return n.ranges.length>1?r=I.create([n.main]):n.main.empty||(r=I.create([I.cursor(n.main.head)])),r?(t(zK(e,r)),!0):!1};function qq(e,t){if(e.state.readOnly)return!1;let n=`delete.selection`,{state:r}=e,i=r.changeByRange(r=>{let{from:i,to:a}=r;if(i==a){let o=t(r);o<i?(n=`delete.backward`,o=Jq(e,o,!1)):o>i&&(n=`delete.forward`,o=Jq(e,o,!0)),i=Math.min(i,o),a=Math.max(a,o)}else i=Jq(e,i,!1),a=Jq(e,a,!0);return i==a?{range:r}:{changes:{from:i,to:a},range:I.cursor(i,i<r.head?-1:1)}});return i.changes.empty?!1:(e.dispatch(r.update(i,{scrollIntoView:!0,userEvent:n,effects:n==`delete.selection`?P.announce.of(r.phrase(`Selection deleted`)):void 0})),!0)}function Jq(e,t,n){if(e instanceof P)for(let r of e.state.facet(P.atomicRanges).map(t=>t(e)))r.between(t,t,(e,r)=>{e<t&&r>t&&(t=n?r:e)});return t}var Yq=(e,t,n)=>qq(e,r=>{let a=r.from,{state:o}=e,s=o.doc.lineAt(a),c,l;if(n&&!t&&a>s.from&&a<s.from+200&&!/[^ \t]/.test(c=s.text.slice(0,a-s.from))){if(c[c.length-1]==` `)return a-1;let e=rt(c,o.tabSize)%N(o)||N(o);for(let t=0;t<e&&c[c.length-1-t]==` `;t++)a--;l=a}else l=i(s.text,a-s.from,t,t)+s.from,l==a&&s.number!=(t?o.doc.lines:1)?l+=t?1:-1:!t&&/[\ufe00-\ufe0f]/.test(s.text.slice(l-s.from,a-s.from))&&(l=i(s.text,l-s.from,!1,!1)+s.from);return l}),Xq=e=>Yq(e,!1,!0),Zq=e=>Yq(e,!0,!1),Qq=(e,t)=>qq(e,n=>{let r=n.head,{state:a}=e,o=a.doc.lineAt(r),s=a.charCategorizer(r);for(let e=null;;){if(r==(t?o.to:o.from)){r==n.head&&o.number!=(t?a.doc.lines:1)&&(r+=t?1:-1);break}let c=i(o.text,r-o.from,t)+o.from,l=o.text.slice(Math.min(r,c)-o.from,Math.max(r,c)-o.from),u=s(l);if(e!=null&&u!=e)break;(l!=` `||r!=n.head)&&(e=u),r=c}return r}),$q=e=>Qq(e,!1),eJ=e=>Qq(e,!0),tJ=e=>qq(e,t=>{let n=e.lineBlockAt(t.head).to;return t.head<n?n:Math.min(e.state.doc.length,t.head+1)}),nJ=e=>qq(e,t=>{let n=e.moveToLineBoundary(t,!1).head;return t.head>n?n:Math.max(0,t.head-1)}),rJ=e=>qq(e,t=>{let n=e.moveToLineBoundary(t,!0).head;return t.head<n?n:Math.min(e.state.doc.length,t.head+1)}),iJ=({state:e,dispatch:t})=>{if(e.readOnly)return!1;let n=e.changeByRange(e=>({changes:{from:e.from,to:e.to,insert:D.of([``,``])},range:I.cursor(e.from)}));return t(e.update(n,{scrollIntoView:!0,userEvent:`input`})),!0},aJ=({state:e,dispatch:t})=>{if(e.readOnly)return!1;let n=e.changeByRange(t=>{if(!t.empty||t.from==0||t.from==e.doc.length)return{range:t};let n=t.from,r=e.doc.lineAt(n),a=n==r.from?n-1:i(r.text,n-r.from,!1)+r.from,o=n==r.to?n+1:i(r.text,n-r.from,!0)+r.from;return{changes:{from:a,to:o,insert:e.doc.slice(n,o).append(e.doc.slice(a,n))},range:I.cursor(o)}});return n.changes.empty?!1:(t(e.update(n,{scrollIntoView:!0,userEvent:`move.character`})),!0)};function oJ(e){let t=[],n=-1;for(let r of e.selection.ranges){let i=e.doc.lineAt(r.from),a=e.doc.lineAt(r.to);if(!r.empty&&r.to==a.from&&(a=e.doc.lineAt(r.to-1)),n>=i.number){let e=t[t.length-1];e.to=a.to,e.ranges.push(r)}else t.push({from:i.from,to:a.to,ranges:[r]});n=a.number+1}return t}function sJ(e,t,n){if(e.readOnly)return!1;let r=[],i=[];for(let t of oJ(e)){if(n?t.to==e.doc.length:t.from==0)continue;let a=e.doc.lineAt(n?t.to+1:t.from-1),o=a.length+1;if(n){r.push({from:t.to,to:a.to},{from:t.from,insert:a.text+e.lineBreak});for(let n of t.ranges)i.push(I.range(Math.min(e.doc.length,n.anchor+o),Math.min(e.doc.length,n.head+o)))}else{r.push({from:a.from,to:t.from},{from:t.to,insert:e.lineBreak+a.text});for(let e of t.ranges)i.push(I.range(e.anchor-o,e.head-o))}}return r.length?(t(e.update({changes:r,scrollIntoView:!0,selection:I.create(i,e.selection.mainIndex),userEvent:`move.line`})),!0):!1}var cJ=({state:e,dispatch:t})=>sJ(e,t,!1),lJ=({state:e,dispatch:t})=>sJ(e,t,!0);function uJ(e,t,n){if(e.readOnly)return!1;let r=[];for(let t of oJ(e))n?r.push({from:t.from,insert:e.doc.slice(t.from,t.to)+e.lineBreak}):r.push({from:t.to,insert:e.lineBreak+e.doc.slice(t.from,t.to)});let i=e.changes(r);return t(e.update({changes:i,selection:e.selection.map(i,n?1:-1),scrollIntoView:!0,userEvent:`input.copyline`})),!0}var dJ=({state:e,dispatch:t})=>uJ(e,t,!1),fJ=({state:e,dispatch:t})=>uJ(e,t,!0),pJ=e=>{if(e.state.readOnly)return!1;let{state:t}=e,n=t.changes(oJ(t).map(({from:e,to:n})=>(e>0?e--:n<t.doc.length&&n++,{from:e,to:n}))),r=RK(t.selection,t=>{let n;if(e.lineWrapping){let r=e.lineBlockAt(t.head),i=e.coordsAtPos(t.head,t.assoc||1);i&&(n=r.bottom+e.documentTop-i.bottom+e.defaultLineHeight/2)}return e.moveVertically(t,!0,n)}).map(n);return e.dispatch({changes:n,selection:r,scrollIntoView:!0,userEvent:`delete.line`}),!0};function mJ(e,t){if(/\(\)|\[\]|\{\}/.test(e.sliceDoc(t-1,t+1)))return{from:t,to:t};let n=d(e).resolveInner(t),i=n.childBefore(t),a=n.childAfter(t),o;return i&&a&&i.to<=t&&a.from>=t&&(o=i.type.prop(r.closedBy))&&o.indexOf(a.name)>-1&&e.doc.lineAt(i.to).from==e.doc.lineAt(a.from).from&&!/\S/.test(e.sliceDoc(i.to,a.from))?{from:i.to,to:a.from}:null}var hJ=_J(!1),gJ=_J(!0);function _J(e){return({state:t,dispatch:n})=>{if(t.readOnly)return!1;let r=t.changeByRange(n=>{let{from:r,to:i}=n,a=t.doc.lineAt(r),o=!e&&r==i&&mJ(t,r);e&&(r=i=(i<=a.to?a:t.doc.lineAt(i)).to);let s=new Ie(t,{simulateBreak:r,simulateDoubleBreak:!!o}),c=l(s,r);for(c??=rt(/^\s*/.exec(t.doc.lineAt(r).text)[0],t.tabSize);i<a.to&&/\s/.test(a.text[i-a.from]);)i++;o?{from:r,to:i}=o:r>a.from&&r<a.from+100&&!/\S/.test(a.text.slice(0,r))&&(r=a.from);let u=[``,ke(t,c)];return o&&u.push(ke(t,s.lineIndent(a.from,-1))),{changes:{from:r,to:i,insert:D.of(u)},range:I.cursor(r+1+u[1].length)}});return n(t.update(r,{scrollIntoView:!0,userEvent:`input`})),!0}}function vJ(e,t){let n=-1;return e.changeByRange(r=>{let i=[];for(let a=r.from;a<=r.to;){let o=e.doc.lineAt(a);o.number>n&&(r.empty||r.to>o.from)&&(t(o,i,r),n=o.number),a=o.to+1}let a=e.changes(i);return{changes:i,range:I.range(a.mapPos(r.anchor,1),a.mapPos(r.head,1))}})}var yJ=({state:e,dispatch:t})=>{if(e.readOnly)return!1;let n=Object.create(null),r=new Ie(e,{overrideIndentation:e=>n[e]??-1}),i=vJ(e,(t,i,a)=>{let o=l(r,t.from);if(o==null)return;/\S/.test(t.text)||(o=0);let s=/^\s*/.exec(t.text)[0],c=ke(e,o);(s!=c||a.from<t.from+s.length)&&(n[t.from]=o,i.push({from:t.from,to:t.from+s.length,insert:c}))});return i.changes.empty||t(e.update(i,{userEvent:`indent`})),!0},bJ=({state:e,dispatch:n})=>e.readOnly?!1:(n(e.update(vJ(e,(n,r)=>{r.push({from:n.from,insert:e.facet(t)})}),{userEvent:`input.indent`})),!0),xJ=({state:e,dispatch:t})=>e.readOnly?!1:(t(e.update(vJ(e,(t,n)=>{let r=/^\s*/.exec(t.text)[0];if(!r)return;let i=rt(r,e.tabSize),a=0,o=ke(e,Math.max(0,i-N(e)));for(;a<r.length&&a<o.length&&r.charCodeAt(a)==o.charCodeAt(a);)a++;n.push({from:t.from+a,to:t.from+r.length,insert:o.slice(a)})}),{userEvent:`delete.dedent`})),!0),SJ=e=>(e.setTabFocusMode(),!0),CJ=[{key:`Ctrl-b`,run:WK,shift:_q,preventDefault:!0},{key:`Ctrl-f`,run:GK,shift:vq},{key:`Ctrl-p`,run:eq,shift:Tq},{key:`Ctrl-n`,run:tq,shift:Eq},{key:`Ctrl-a`,run:dq,shift:Pq},{key:`Ctrl-e`,run:fq,shift:Fq},{key:`Ctrl-d`,run:Zq},{key:`Ctrl-h`,run:Xq},{key:`Ctrl-k`,run:tJ},{key:`Ctrl-Alt-h`,run:$q},{key:`Ctrl-o`,run:iJ},{key:`Ctrl-t`,run:aJ},{key:`Ctrl-v`,run:aq}],wJ=[{key:`ArrowLeft`,run:WK,shift:_q,preventDefault:!0},{key:`Mod-ArrowLeft`,mac:`Alt-ArrowLeft`,run:qK,shift:bq,preventDefault:!0},{mac:`Cmd-ArrowLeft`,run:lq,shift:Mq,preventDefault:!0},{key:`ArrowRight`,run:GK,shift:vq,preventDefault:!0},{key:`Mod-ArrowRight`,mac:`Alt-ArrowRight`,run:JK,shift:xq,preventDefault:!0},{mac:`Cmd-ArrowRight`,run:uq,shift:Nq,preventDefault:!0},{key:`ArrowUp`,run:eq,shift:Tq,preventDefault:!0},{mac:`Cmd-ArrowUp`,run:Iq,shift:Rq},{mac:`Ctrl-ArrowUp`,run:iq,shift:Oq},{key:`ArrowDown`,run:tq,shift:Eq,preventDefault:!0},{mac:`Cmd-ArrowDown`,run:Lq,shift:zq},{mac:`Ctrl-ArrowDown`,run:aq,shift:kq},{key:`PageUp`,run:iq,shift:Oq},{key:`PageDown`,run:aq,shift:kq},{key:`Home`,run:cq,shift:jq,preventDefault:!0},{key:`Mod-Home`,run:Iq,shift:Rq},{key:`End`,run:sq,shift:Aq,preventDefault:!0},{key:`Mod-End`,run:Lq,shift:zq},{key:`Enter`,run:hJ,shift:hJ},{key:`Mod-a`,run:Bq},{key:`Backspace`,run:Xq,shift:Xq,preventDefault:!0},{key:`Delete`,run:Zq,preventDefault:!0},{key:`Mod-Backspace`,mac:`Alt-Backspace`,run:$q,preventDefault:!0},{key:`Mod-Delete`,mac:`Alt-Delete`,run:eJ,preventDefault:!0},{mac:`Mod-Backspace`,run:nJ,preventDefault:!0},{mac:`Mod-Delete`,run:rJ,preventDefault:!0}].concat(CJ.map(e=>({mac:e.key,run:e.run,shift:e.shift}))),TJ=[{key:`Alt-ArrowLeft`,mac:`Ctrl-ArrowLeft`,run:ZK,shift:Sq},{key:`Alt-ArrowRight`,mac:`Ctrl-ArrowRight`,run:QK,shift:Cq},{key:`Alt-ArrowUp`,run:cJ},{key:`Shift-Alt-ArrowUp`,run:dJ},{key:`Alt-ArrowDown`,run:lJ},{key:`Shift-Alt-ArrowDown`,run:fJ},{key:`Mod-Alt-ArrowUp`,run:Wq},{key:`Mod-Alt-ArrowDown`,run:Gq},{key:`Escape`,run:Kq},{key:`Mod-Enter`,run:gJ},{key:`Alt-l`,mac:`Ctrl-l`,run:Vq},{key:`Mod-i`,run:Hq,preventDefault:!0},{key:`Mod-[`,run:xJ},{key:`Mod-]`,run:bJ},{key:`Mod-Alt-\\`,run:yJ},{key:`Shift-Mod-k`,run:pJ},{key:`Shift-Mod-\\`,run:mq},{key:`Mod-/`,run:nK},{key:`Alt-A`,run:aK},{key:`Ctrl-m`,mac:`Shift-Alt-m`,run:SJ}].concat(wJ),EJ={key:`Tab`,run:bJ,shift:xJ},DJ=135,OJ=1,kJ=136,AJ=137,jJ=2,MJ=138,NJ=3,PJ=4,FJ=[9,10,11,12,13,32,133,160,5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8232,8233,8239,8287,12288],IJ=58,LJ=40,RJ=95,zJ=91,BJ=45,VJ=46,HJ=35,UJ=37,WJ=38,GJ=92,KJ=10,qJ=42;function JJ(e){return e>=65&&e<=90||e>=97&&e<=122||e>=161}function YJ(e){return e>=48&&e<=57}function XJ(e){return YJ(e)||e>=97&&e<=102||e>=65&&e<=70}var ZJ=(e,t,n)=>(r,i)=>{for(let a=!1,o=0,s=0;;s++){let{next:c}=r;if(JJ(c)||c==BJ||c==RJ||a&&YJ(c))!a&&(c!=BJ||s>0)&&(a=!0),o===s&&c==BJ&&o++,r.advance();else if(c==GJ&&r.peek(1)!=KJ){if(r.advance(),XJ(r.next)){do r.advance();while(XJ(r.next));r.next==32&&r.advance()}else r.next>-1&&r.advance();a=!0}else{a&&r.acceptToken(o==2&&i.canShift(jJ)?t:c==LJ?n:e);break}}},QJ=new Pe(ZJ(kJ,jJ,AJ),{contextual:!0}),$J=new Pe(ZJ(MJ,NJ,PJ),{contextual:!0}),eY=new Pe(e=>{if(FJ.includes(e.peek(-1))){let{next:t}=e;(JJ(t)||t==RJ||t==HJ||t==VJ||t==qJ||t==zJ||t==IJ&&JJ(e.peek(1))||t==BJ||t==WJ)&&e.acceptToken(DJ)}}),tY=new Pe(e=>{if(!FJ.includes(e.peek(-1))){let{next:t}=e;if(t==UJ&&(e.advance(),e.acceptToken(OJ)),JJ(t)){do e.advance();while(JJ(e.next)||YJ(e.next));e.acceptToken(OJ)}}}),nY=y({"AtKeyword import charset namespace keyframes media supports font-feature-values":k.definitionKeyword,"from to selector scope MatchFlag":k.keyword,NamespaceName:k.namespace,KeyframeName:k.labelName,KeyframeRangeName:k.operatorKeyword,TagName:k.tagName,ClassName:k.className,PseudoClassName:k.constant(k.className),IdName:k.labelName,"FeatureName PropertyName":k.propertyName,AttributeName:k.attributeName,NumberLiteral:k.number,KeywordQuery:k.keyword,UnaryQueryOp:k.operatorKeyword,"CallTag ValueName FontName":k.atom,VariableName:k.variableName,Callee:k.operatorKeyword,Unit:k.unit,"UniversalSelector NestingSelector":k.definitionOperator,"MatchOp CompareOp":k.compareOperator,"ChildOp SiblingOp, LogicOp":k.logicOperator,BinOp:k.arithmeticOperator,Important:k.modifier,Comment:k.blockComment,ColorLiteral:k.color,"ParenthesizedContent StringLiteral":k.string,":":k.punctuation,"PseudoOp #":k.derefOperator,"; , |":k.separator,"( )":k.paren,"[ ]":k.squareBracket,"{ }":k.brace}),rY={__proto__:null,lang:44,"nth-child":44,"nth-last-child":44,"nth-of-type":44,"nth-last-of-type":44,dir:44,"host-context":44,if:90,url:132,"url-prefix":132,domain:132,regexp:132},iY={__proto__:null,or:104,and:104,not:112,only:112,layer:186},aY={__proto__:null,selector:118,layer:182},oY={__proto__:null,"@import":178,"@media":190,"@charset":194,"@namespace":198,"@keyframes":204,"@supports":216,"@scope":220,"@font-feature-values":226},sY={__proto__:null,to:223},cY=Ve.deserialize({version:14,states:"IpQYQdOOO#}QdOOP$UO`OOO%OQaO'#CfOOQP'#Ce'#CeO%VQdO'#CgO%[Q`O'#CgO%aQaO'#FdO&XQdO'#CkO&xQaO'#CcO'SQdO'#CnO'_QdO'#DtO'dQdO'#DvO'oQdO'#D}O'oQdO'#EQOOQP'#Fd'#FdO)OQhO'#EsOOQS'#Fc'#FcOOQS'#Ev'#EvQYQdOOO)VQdO'#EWO*cQhO'#E^O)VQdO'#E`O*jQdO'#EbO*uQdO'#EeO)zQhO'#EkO*}QdO'#EmO+YQdO'#EpO+_QaO'#CfO+fQ`O'#ETO+kQ`O'#FnO+vQdO'#FnQOQ`OOP,QO&jO'#CaPOOO)CAR)CAROOQP'#Ci'#CiOOQP,59R,59RO%VQdO,59ROOQP'#Cm'#CmOOQP,59V,59VO&XQdO,59VO,]QdO,59YO'_QdO,5:`O'dQdO,5:bO'oQdO,5:iO'oQdO,5:kO'oQdO,5:lO'oQdO'#E}O,hQ`O,58}O,pQdO'#ESOOQS,58},58}OOQP'#Cq'#CqOOQO'#Dr'#DrOOQP,59Y,59YO,wQ`O,59YO,|Q`O,59YOOQP'#Du'#DuOOQP,5:`,5:`O-RQpO'#DwO-^QdO'#DxO-cQ`O'#DxO-hQpO,5:bO.RQaO,5:iO.iQaO,5:lOOQW'#D^'#D^O/eQhO'#Dg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$O_bOPco!R#Z$}^XOPco!R#Z$}Q!`]Q!a^Q#h|Q#i}Q#j!OQ#k!PQ$s#RQ%W#oR'S&]R%[#pQ!qdQ!zf[$V!m!n!o$Y$[$^Q$y#Yd%Y#p%Z%_&a&f&k'U'^'k'sQ%^#uQ%n$aS&U$y&WQ&[%UQ&}&VR'b&p]$X!m!n!o$Y$[$^Q!d`U!xe!q$eQ#QiQ#x!cS#{!d$OQ$Q!eQ%b#|Q%c#}Q%g$RS%r$g%tQ%w$jR'Z&iQ#z!cQ&h%`R'j'YR%i$RR%X#oQpPR#n!RQ!yeQ$d!qR%q$e",nodeNames:`⚠ Unit VariableName VariableName QueryCallee Comment StyleSheet RuleSet UniversalSelector TagSelector TagName NamespacedTagSelector NamespaceName TagName NestingSelector ClassSelector . ClassName PseudoClassSelector : :: PseudoClassName PseudoClassName ) ( ArgList ValueName ParenthesizedValue AtKeyword # ; ] [ BracketedValue } { BracedValue ColorLiteral NumberLiteral StringLiteral BinaryExpression BinOp CallExpression Callee IfExpression if ArgList IfBranch KeywordQuery FeatureQuery FeatureName BinaryQuery LogicOp ComparisonQuery CompareOp UnaryQuery UnaryQueryOp ParenthesizedQuery SelectorQuery selector ParenthesizedSelector CallQuery ArgList , PseudoQuery CallLiteral CallTag ParenthesizedContent PseudoClassName ArgList IdSelector IdName AttributeSelector AttributeName NamespacedAttribute NamespaceName AttributeName MatchOp MatchFlag ChildSelector ChildOp DescendantSelector SiblingSelector SiblingOp Block Declaration PropertyName Important ImportStatement import Layer layer LayerName layer MediaStatement media CharsetStatement charset NamespaceStatement namespace NamespaceName KeyframesStatement keyframes KeyframeName KeyframeList KeyframeSelector KeyframeRangeName SupportsStatement supports ScopeStatement scope to FontFeatureStatement font-feature-values FontName AtRule Styles`,maxTerm:159,nodeProps:[[`isolate`,-2,5,39,``],[`openedBy`,23,`(`,31,`[`,34,`{`],[`closedBy`,24,`)`,32,`]`,35,`}`]],propSources:[nY],skippedNodes:[0,5,117],repeatNodeCount:17,t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j!Q![CP![!c%j!c!}CP!}#T%j#T#oCP#o;'S%j;'S;=`%{<%lO%jhDRS!pWOy%jz;'S%j;'S;=`%{<%lO%jjDdSpYOy%jz;'S%j;'S;=`%{<%lO%jnDuSo^Oy%jz;'S%j;'S;=`%{<%lO%jjEWU!pWOy%jz#a%j#a#bEj#b;'S%j;'S;=`%{<%lO%jbEoU!e`Oy%jz#d%j#d#eFR#e;'S%j;'S;=`%{<%lO%jbFWU!e`Oy%jz#c%j#c#dFj#d;'S%j;'S;=`%{<%lO%jbFoU!e`Oy%jz#f%j#f#gGR#g;'S%j;'S;=`%{<%lO%jbGWU!e`Oy%jz#h%j#h#iGj#i;'S%j;'S;=`%{<%lO%jbGoU!e`Oy%jz#T%j#T#UHR#U;'S%j;'S;=`%{<%lO%jbHWU!e`Oy%jz#b%j#b#cHj#c;'S%j;'S;=`%{<%lO%jbHoU!e`Oy%jz#h%j#h#iIR#i;'S%j;'S;=`%{<%lO%jbIYS$cQ!e`Oy%jz;'S%j;'S;=`%{<%lO%jjIkSsYOy%jz;'S%j;'S;=`%{<%lO%jfI|U$XUOy%jz!_%j!_!`2n!`;'S%j;'S;=`%{<%lO%jjJeSrYOy%jz;'S%j;'S;=`%{<%lO%jfJvU!uQOy%jz!_%j!_!`2n!`;'S%j;'S;=`%{<%lO%j`K]P;=`<%l%Z",tokenizers:[eY,tY,QJ,$J,1,2,3,4,new Te(`m~RRYZ[z{a~~g~aO$T~~dP!P!Qg~lO$U~~`,28,142)],topRules:{StyleSheet:[0,6],Styles:[1,116]},dynamicPrecedences:{84:1},specialized:[{term:137,get:e=>rY[e]||-1},{term:138,get:e=>iY[e]||-1},{term:4,get:e=>aY[e]||-1},{term:28,get:e=>oY[e]||-1},{term:136,get:e=>sY[e]||-1}],tokenPrec:2256}),lY=dt({css:()=>EY,cssCompletionSource:()=>wY,cssLanguage:()=>TY,defineCSSCompletionSource:()=>CY}),uY=null;function dY(){if(!uY&&typeof document==`object`&&document.body){let{style:e}=document.body,t=[],n=new Set;for(let r in e)r!=`cssText`&&r!=`cssFloat`&&typeof e[r]==`string`&&(/[A-Z]/.test(r)&&(r=r.replace(/[A-Z]/g,e=>`-`+e.toLowerCase())),n.has(r)||(t.push(r),n.add(r)));uY=t.sort().map(e=>({type:`property`,label:e,apply:e+`: `}))}return uY||[]}var fY=`active.after.any-link.autofill.backdrop.before.checked.cue.default.defined.disabled.empty.enabled.file-selector-button.first.first-child.first-letter.first-line.first-of-type.focus.focus-visible.focus-within.fullscreen.has.host.host-context.hover.in-range.indeterminate.invalid.is.lang.last-child.last-of-type.left.link.marker.modal.not.nth-child.nth-last-child.nth-last-of-type.nth-of-type.only-child.only-of-type.optional.out-of-range.part.placeholder.placeholder-shown.read-only.read-write.required.right.root.scope.selection.slotted.target.target-text.valid.visited.where`.split(`.`).map(e=>({type:`class`,label:e})),pY=`above.absolute.activeborder.additive.activecaption.after-white-space.ahead.alias.all.all-scroll.alphabetic.alternate.always.antialiased.appworkspace.asterisks.attr.auto.auto-flow.avoid.avoid-column.avoid-page.avoid-region.axis-pan.background.backwards.baseline.below.bidi-override.blink.block.block-axis.bold.bolder.border.border-box.both.bottom.break.break-all.break-word.bullets.button.button-bevel.buttonface.buttonhighlight.buttonshadow.buttontext.calc.capitalize.caps-lock-indicator.caption.captiontext.caret.cell.center.checkbox.circle.cjk-decimal.clear.clip.close-quote.col-resize.collapse.color.color-burn.color-dodge.column.column-reverse.compact.condensed.contain.content.contents.content-box.context-menu.continuous.copy.counter.counters.cover.crop.cross.crosshair.currentcolor.cursive.cyclic.darken.dashed.decimal.decimal-leading-zero.default.default-button.dense.destination-atop.destination-in.destination-out.destination-over.difference.disc.discard.disclosure-closed.disclosure-open.document.dot-dash.dot-dot-dash.dotted.double.down.e-resize.ease.ease-in.ease-in-out.ease-out.element.ellipse.ellipsis.embed.end.ethiopic-abegede-gez.ethiopic-halehame-aa-er.ethiopic-halehame-gez.ew-resize.exclusion.expanded.extends.extra-condensed.extra-expanded.fantasy.fast.fill.fill-box.fixed.flat.flex.flex-end.flex-start.footnotes.forwards.from.geometricPrecision.graytext.grid.groove.hand.hard-light.help.hidden.hide.higher.highlight.highlighttext.horizontal.hsl.hsla.hue.icon.ignore.inactiveborder.inactivecaption.inactivecaptiontext.infinite.infobackground.infotext.inherit.initial.inline.inline-axis.inline-block.inline-flex.inline-grid.inline-table.inset.inside.intrinsic.invert.italic.justify.keep-all.landscape.large.larger.left.level.lighter.lighten.line-through.linear.linear-gradient.lines.list-item.listbox.listitem.local.logical.loud.lower.lower-hexadecimal.lower-latin.lower-norwegian.lowercase.ltr.luminosity.manipulation.match.matrix.matrix3d.medium.menu.menutext.message-box.middle.min-intrinsic.mix.monospace.move.multiple.multiple_mask_images.multiply.n-resize.narrower.ne-resize.nesw-resize.no-close-quote.no-drop.no-open-quote.no-repeat.none.normal.not-allowed.nowrap.ns-resize.numbers.numeric.nw-resize.nwse-resize.oblique.opacity.open-quote.optimizeLegibility.optimizeSpeed.outset.outside.outside-shape.overlay.overline.padding.padding-box.painted.page.paused.perspective.pinch-zoom.plus-darker.plus-lighter.pointer.polygon.portrait.pre.pre-line.pre-wrap.preserve-3d.progress.push-button.radial-gradient.radio.read-only.read-write.read-write-plaintext-only.rectangle.region.relative.repeat.repeating-linear-gradient.repeating-radial-gradient.repeat-x.repeat-y.reset.reverse.rgb.rgba.ridge.right.rotate.rotate3d.rotateX.rotateY.rotateZ.round.row.row-resize.row-reverse.rtl.run-in.running.s-resize.sans-serif.saturation.scale.scale3d.scaleX.scaleY.scaleZ.screen.scroll.scrollbar.scroll-position.se-resize.self-start.self-end.semi-condensed.semi-expanded.separate.serif.show.single.skew.skewX.skewY.skip-white-space.slide.slider-horizontal.slider-vertical.sliderthumb-horizontal.sliderthumb-vertical.slow.small.small-caps.small-caption.smaller.soft-light.solid.source-atop.source-in.source-out.source-over.space.space-around.space-between.space-evenly.spell-out.square.start.static.status-bar.stretch.stroke.stroke-box.sub.subpixel-antialiased.svg_masks.super.sw-resize.symbolic.symbols.system-ui.table.table-caption.table-cell.table-column.table-column-group.table-footer-group.table-header-group.table-row.table-row-group.text.text-bottom.text-top.textarea.textfield.thick.thin.threeddarkshadow.threedface.threedhighlight.threedlightshadow.threedshadow.to.top.transform.translate.translate3d.translateX.translateY.translateZ.transparent.ultra-condensed.ultra-expanded.underline.unidirectional-pan.unset.up.upper-latin.uppercase.url.var.vertical.vertical-text.view-box.visible.visibleFill.visiblePainted.visibleStroke.visual.w-resize.wait.wave.wider.window.windowframe.windowtext.words.wrap.wrap-reverse.x-large.x-small.xor.xx-large.xx-small`.split(`.`).map(e=>({type:`keyword`,label:e})).concat(`aliceblue.antiquewhite.aqua.aquamarine.azure.beige.bisque.black.blanchedalmond.blue.blueviolet.brown.burlywood.cadetblue.chartreuse.chocolate.coral.cornflowerblue.cornsilk.crimson.cyan.darkblue.darkcyan.darkgoldenrod.darkgray.darkgreen.darkkhaki.darkmagenta.darkolivegreen.darkorange.darkorchid.darkred.darksalmon.darkseagreen.darkslateblue.darkslategray.darkturquoise.darkviolet.deeppink.deepskyblue.dimgray.dodgerblue.firebrick.floralwhite.forestgreen.fuchsia.gainsboro.ghostwhite.gold.goldenrod.gray.grey.green.greenyellow.honeydew.hotpink.indianred.indigo.ivory.khaki.lavender.lavenderblush.lawngreen.lemonchiffon.lightblue.lightcoral.lightcyan.lightgoldenrodyellow.lightgray.lightgreen.lightpink.lightsalmon.lightseagreen.lightskyblue.lightslategray.lightsteelblue.lightyellow.lime.limegreen.linen.magenta.maroon.mediumaquamarine.mediumblue.mediumorchid.mediumpurple.mediumseagreen.mediumslateblue.mediumspringgreen.mediumturquoise.mediumvioletred.midnightblue.mintcream.mistyrose.moccasin.navajowhite.navy.oldlace.olive.olivedrab.orange.orangered.orchid.palegoldenrod.palegreen.paleturquoise.palevioletred.papayawhip.peachpuff.peru.pink.plum.powderblue.purple.rebeccapurple.red.rosybrown.royalblue.saddlebrown.salmon.sandybrown.seagreen.seashell.sienna.silver.skyblue.slateblue.slategray.snow.springgreen.steelblue.tan.teal.thistle.tomato.turquoise.violet.wheat.white.whitesmoke.yellow.yellowgreen`.split(`.`).map(e=>({type:`constant`,label:e}))),mY=`a.abbr.address.article.aside.b.bdi.bdo.blockquote.body.br.button.canvas.caption.cite.code.col.colgroup.dd.del.details.dfn.dialog.div.dl.dt.em.figcaption.figure.footer.form.header.hgroup.h1.h2.h3.h4.h5.h6.hr.html.i.iframe.img.input.ins.kbd.label.legend.li.main.meter.nav.ol.output.p.pre.ruby.section.select.small.source.span.strong.sub.summary.sup.table.tbody.td.template.textarea.tfoot.th.thead.tr.u.ul`.split(`.`).map(e=>({type:`type`,label:e})),hY=[`@charset`,`@color-profile`,`@container`,`@counter-style`,`@font-face`,`@font-feature-values`,`@font-palette-values`,`@import`,`@keyframes`,`@layer`,`@media`,`@namespace`,`@page`,`@position-try`,`@property`,`@scope`,`@starting-style`,`@supports`,`@view-transition`].map(e=>({type:`keyword`,label:e})),gY=/^(\w[\w-]*|-\w[\w-]*|)$/,_Y=/^-(-[\w-]*)?$/;function vY(e,t){if((e.name==`(`||e.type.isError)&&(e=e.parent||e),e.name!=`ArgList`)return!1;let n=e.parent?.firstChild;return n?.name==`Callee`?t.sliceString(n.from,n.to)==`var`:!1}var yY=new ne,bY=[`Declaration`];function xY(e){for(let t=e;;){if(t.type.isTop)return t;if(!(t=t.parent))return e}}function SY(e,t,n){if(t.to-t.from>4096){let r=yY.get(t);if(r)return r;let i=[],a=new Set,o=t.cursor(nt.IncludeAnonymous);if(o.firstChild())do for(let t of SY(e,o.node,n))a.has(t.label)||(a.add(t.label),i.push(t));while(o.nextSibling());return yY.set(t,i),i}else{let r=[],i=new Set;return t.cursor().iterate(t=>{if(n(t)&&t.matchContext(bY)&&t.node.nextSibling?.name==`:`){let n=e.sliceString(t.from,t.to);i.has(n)||(i.add(n),r.push({label:n,type:`variable`}))}}),r}}var CY=e=>t=>{let{state:n,pos:r}=t,i=d(n).resolveInner(r,-1),a=i.type.isError&&i.from==i.to-1&&n.doc.sliceString(i.from,i.to)==`-`;if(i.name==`PropertyName`||(a||i.name==`TagName`)&&/^(Block|Styles)$/.test(i.resolve(i.to).name))return{from:i.from,options:dY(),validFor:gY};if(i.name==`ValueName`)return{from:i.from,options:pY,validFor:gY};if(i.name==`PseudoClassName`)return{from:i.from,options:fY,validFor:gY};if(e(i)||(t.explicit||a)&&vY(i,n.doc))return{from:e(i)||a?i.from:r,options:SY(n.doc,xY(i),e),validFor:_Y};if(i.name==`TagName`){for(let{parent:e}=i;e;e=e.parent)if(e.name==`Block`)return{from:i.from,options:dY(),validFor:gY};return{from:i.from,options:mY,validFor:gY}}if(i.name==`AtKeyword`)return{from:i.from,options:hY,validFor:gY};if(!t.explicit)return null;let o=i.resolve(r),s=o.childBefore(r);return s&&s.name==`:`&&o.name==`PseudoClassSelector`?{from:r,options:fY,validFor:gY}:s&&s.name==`:`&&o.name==`Declaration`||o.name==`ArgList`?{from:r,options:pY,validFor:gY}:o.name==`Block`||o.name==`Styles`?{from:r,options:dY(),validFor:gY}:null},wY=CY(e=>e.name==`VariableName`),TY=Ue.define({name:`css`,parser:cY.configure({props:[s.add({Declaration:Ce()}),a.add({"Block KeyframeList":Qe})]}),languageData:{commentTokens:{block:{open:`/*`,close:`*/`}},indentOnInput:/^\s*\}$/,wordChars:`-`}});function EY(){return new qe(TY,TY.data.of({autocomplete:wY}))}var DY=55,OY=1,kY=56,AY=2,jY=57,MY=3,NY=4,PY=5,FY=6,IY=7,LY=8,RY=9,zY=10,BY=11,VY=12,HY=13,UY=58,WY=14,GY=15,KY=59,qY=21,JY=23,YY=24,XY=25,ZY=27,QY=28,$Y=29,eX=32,tX=35,nX=37,rX=38,iX=0,aX=1,oX={area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},sX={dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},cX={dd:{dd:!0,dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},optgroup:{optgroup:!0},p:{address:!0,article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}};function lX(e){return e==45||e==46||e==58||e>=65&&e<=90||e==95||e>=97&&e<=122||e>=161}var uX=null,dX=null,fX=0;function pX(e,t){let n=e.pos+t;if(fX==n&&dX==e)return uX;let r=e.peek(t),i=``;for(;lX(r);)i+=String.fromCharCode(r),r=e.peek(++t);return dX=e,fX=n,uX=i?i.toLowerCase():r==_X||r==vX?void 0:null}var mX=60,hX=62,gX=47,_X=63,vX=33,yX=45;function bX(e,t){this.name=e,this.parent=t}var xX=[FY,zY,IY,LY,RY],SX=new Ge({start:null,shift(e,t,n,r){return xX.indexOf(t)>-1?new bX(pX(r,1)||``,e):e},reduce(e,t){return t==qY&&e?e.parent:e},reuse(e,t,n,r){let i=t.type.id;return i==FY||i==nX?new bX(pX(r,1)||``,e):e},strict:!1}),CX=new Pe((e,t)=>{if(e.next!=mX){e.next<0&&t.context&&e.acceptToken(UY);return}e.advance();let n=e.next==gX;n&&e.advance();let r=pX(e,0);if(r===void 0)return;if(!r)return e.acceptToken(n?GY:WY);let i=t.context?t.context.name:null;if(n){if(r==i)return e.acceptToken(BY);if(i&&sX[i])return e.acceptToken(UY,-2);if(t.dialectEnabled(iX))return e.acceptToken(VY);for(let e=t.context;e;e=e.parent)if(e.name==r)return;e.acceptToken(HY)}else{if(r==`script`)return e.acceptToken(IY);if(r==`style`)return e.acceptToken(LY);if(r==`textarea`)return e.acceptToken(RY);if(oX.hasOwnProperty(r))return e.acceptToken(zY);i&&cX[i]&&cX[i][r]?e.acceptToken(UY,-1):e.acceptToken(FY)}},{contextual:!0}),wX=new Pe(e=>{for(let t=0,n=0;;n++){if(e.next<0){n&&e.acceptToken(KY);break}if(e.next==yX)t++;else if(e.next==hX&&t>=2){n>=3&&e.acceptToken(KY,-2);break}else t=0;e.advance()}});function TX(e){for(;e;e=e.parent)if(e.name==`svg`||e.name==`math`)return!0;return!1}var EX=new Pe((e,t)=>{if(e.next==gX&&e.peek(1)==hX){let n=t.dialectEnabled(aX)||TX(t.context);e.acceptToken(n?PY:NY,2)}else e.next==hX&&e.acceptToken(NY,1)});function DX(e,t,n){let r=2+e.length;return new Pe(i=>{for(let a=0,o=0,s=0;;s++){if(i.next<0){s&&i.acceptToken(t);break}if(a==0&&i.next==mX||a==1&&i.next==gX||a>=2&&a<r&&i.next==e.charCodeAt(a-2))a++,o++;else if(a==r&&i.next==hX){s>o?i.acceptToken(t,-o):i.acceptToken(n,-(o-2));break}else if((i.next==10||i.next==13)&&s){i.acceptToken(t,1);break}else a=o=0;i.advance()}})}var OX=DX(`script`,DY,OY),kX=DX(`style`,kY,AY),AX=DX(`textarea`,jY,MY),jX=y({"Text RawText IncompleteTag IncompleteCloseTag":k.content,"StartTag StartCloseTag SelfClosingEndTag EndTag":k.angleBracket,TagName:k.tagName,"MismatchedCloseTag/TagName":[k.tagName,k.invalid],AttributeName:k.attributeName,"AttributeValue UnquotedAttributeValue":k.attributeValue,Is:k.definitionOperator,"EntityReference CharacterReference":k.character,Comment:k.blockComment,ProcessingInst:k.processingInstruction,DoctypeDecl:k.documentMeta}),MX=Ve.deserialize({version:14,states:",xOVO!rOOO!ZQ#tO'#CrO!`Q#tO'#C{O!eQ#tO'#DOO!jQ#tO'#DRO!oQ#tO'#DTO!tOaO'#CqO#PObO'#CqO#[OdO'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OgcO~OgdO~OgeO~O!XfOPmP![mP~O!YiOQpP![pP~O!ZlORsP![sP~OUSOVPOWQOXROYTOZqO[]O][O^^O_^Oa^Ob^Oc^Od^Oy^O!eZO~O![rO~P#gO!]sO!fuO~OgvO~OgwO~OS|OT}OiyO~OS!POT}OiyO~OS!ROT}OiyO~OS!TOT}OiyO~OS}OT}OiyO~O!XfOPmX![mX~OP!WO![!XO~O!YiOQpX![pX~OQ!ZO![!XO~O!ZlORsX![sX~OR!]O![!XO~O![!XO~P#gOg!_O~O!]sO!f!aO~OS!bO~OS!cO~Oj!dOShXThXihX~OS!fOT!gOiyO~OS!hOT!gOiyO~OS!iOT!gOiyO~OS!jOT!gOiyO~OS!gOT!gOiyO~Og!kO~Og!lO~Og!mO~OS!nO~Ol!qO!a!oO!c!pO~OS!rO~OS!sO~OS!tO~Ob!uOc!uOd!uO!a!wO!b!uO~Ob!xOc!xOd!xO!c!wO!d!xO~Ob!uOc!uOd!uO!a!{O!b!uO~Ob!xOc!xOd!xO!c!{O!d!xO~OT~cbd!ey|!e~`,goto:"%q!aPPPPPPPPPPPPPPPPPPPPP!b!hP!nPP!zP!}#Q#T#Z#^#a#g#j#m#s#y!bP!b!bP$P$V$m$s$y%P%V%]%cPPPPPPPP%iX^OX`pXUOX`pezabcde{!O!Q!S!UR!q!dRhUR!XhXVOX`pRkVR!XkXWOX`pRnWR!XnXXOX`pQrXR!XpXYOX`pQ`ORx`Q{aQ!ObQ!QcQ!SdQ!UeZ!e{!O!Q!S!UQ!v!oR!z!vQ!y!pR!|!yQgUR!VgQjVR!YjQmWR![mQpXR!^pQtZR!`tS_O`ToXp",nodeNames:`⚠ StartCloseTag StartCloseTag StartCloseTag EndTag SelfClosingEndTag StartTag StartTag StartTag StartTag StartTag StartCloseTag StartCloseTag StartCloseTag IncompleteTag IncompleteCloseTag Document Text EntityReference CharacterReference InvalidEntity Element OpenTag TagName Attribute AttributeName Is AttributeValue UnquotedAttributeValue ScriptText CloseTag OpenTag StyleText CloseTag OpenTag TextareaText CloseTag OpenTag CloseTag SelfClosingTag Comment ProcessingInst MismatchedCloseTag CloseTag DoctypeDecl`,maxTerm:68,context:SX,nodeProps:[[`closedBy`,-10,1,2,3,7,8,9,10,11,12,13,`EndTag`,6,`EndTag SelfClosingEndTag`,-4,22,31,34,37,`CloseTag`],[`openedBy`,4,`StartTag StartCloseTag`,5,`StartTag`,-4,30,33,36,38,`OpenTag`],[`group`,-10,14,15,18,19,20,21,40,41,42,43,`Entity`,17,`Entity TextContent`,-3,29,32,35,`TextContent Entity`],[`isolate`,-11,22,30,31,33,34,36,37,38,39,42,43,`ltr`,-3,27,28,40,``]],propSources:[jX],skippedNodes:[0],repeatNodeCount:9,tokenData:"!<p!aR!YOX$qXY,QYZ,QZ[$q[]&X]^,Q^p$qpq,Qqr-_rs3_sv-_vw3}wxHYx}-_}!OH{!O!P-_!P!Q$q!Q![-_![!]Mz!]!^-_!^!_!$S!_!`!;x!`!a&X!a!c-_!c!}Mz!}#R-_#R#SMz#S#T1k#T#oMz#o#s-_#s$f$q$f%W-_%W%oMz%o%p-_%p&aMz&a&b-_&b1pMz1p4U-_4U4dMz4d4e-_4e$ISMz$IS$I`-_$I`$IbMz$Ib$Kh-_$Kh%#tMz%#t&/x-_&/x&EtMz&Et&FV-_&FV;'SMz;'S;:j!#|;:j;=`3X<%l?&r-_?&r?AhMz?Ah?BY$q?BY?MnMz?MnO$q!Z$|caPlW!b`!dpOX$qXZ&XZ[$q[^&X^p$qpq&Xqr$qrs&}sv$qvw+Pwx(tx!^$q!^!_*V!_!a&X!a#S$q#S#T&X#T;'S$q;'S;=`+z<%lO$q!R&bXaP!b`!dpOr&Xrs&}sv&Xwx(tx!^&X!^!_*V!_;'S&X;'S;=`*y<%lO&Xq'UVaP!dpOv&}wx'kx!^&}!^!_(V!_;'S&};'S;=`(n<%lO&}P'pTaPOv'kw!^'k!_;'S'k;'S;=`(P<%lO'kP(SP;=`<%l'kp([S!dpOv(Vx;'S(V;'S;=`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v!4tvw!6Vwx!8]x!a!4t!a!b!:]!b;'S!4t;'S;=`!;r<%lO!4tq!5pV!dpOv!5kvx!6Vx!a!5k!a!b!7W!b;'S!5k;'S;=`!8V<%lO!5kP!6YTO!a!6V!a!b!6i!b;'S!6V;'S;=`!7Q<%lO!6VP!6lTO!`!6V!`!a!6{!a;'S!6V;'S;=`!7Q<%lO!6VP!7QOyPP!7TP;=`<%l!6Vq!7]V!dpOv!5kvx!6Vx!`!5k!`!a!7r!a;'S!5k;'S;=`!8V<%lO!5kq!7yS!dpyPOv(Vx;'S(V;'S;=`(h<%lO(Vq!8YP;=`<%l!5ka!8bX!b`Or!8]rs!6Vsv!8]vw!6Vw!a!8]!a!b!8}!b;'S!8];'S;=`!:V<%lO!8]a!9SX!b`Or!8]rs!6Vsv!8]vw!6Vw!`!8]!`!a!9o!a;'S!8];'S;=`!:V<%lO!8]a!9vT!b`yPOr)esv)ew;'S)e;'S;=`)y<%lO)ea!:YP;=`<%l!8]!R!:dY!b`!dpOr!4trs!5ksv!4tvw!6Vwx!8]x!`!4t!`!a!;S!a;'S!4t;'S;=`!;r<%lO!4t!R!;]V!b`!dpyPOr*Vrs(Vsv*Vwx)ex;'S*V;'S;=`*s<%lO*V!R!;uP;=`<%l!4t!V!<TXjSaP!b`!dpOr&Xrs&}sv&Xwx(tx!^&X!^!_*V!_;'S&X;'S;=`*y<%lO&X",tokenizers:[OX,kX,AX,EX,CX,wX,0,1,2,3,4,5],topRules:{Document:[0,16]},dialects:{noMatch:0,selfClosing:515},tokenPrec:517});function NX(e,t){let n=Object.create(null);for(let r of e.getChildren(YY)){let e=r.getChild(XY),i=r.getChild(ZY)||r.getChild(QY);e&&(n[t.read(e.from,e.to)]=i?i.type.id==ZY?t.read(i.from+1,i.to-1):t.read(i.from,i.to):``)}return n}function PX(e,t){let n=e.getChild(JY);return n?t.read(n.from,n.to):` `}function FX(e,t,n){let r;for(let i of n)if(!i.attrs||i.attrs(r||=NX(e.node.parent.firstChild,t)))return{parser:i.parser,bracketed:!0};return null}function IX(e=[],t=[]){let n=[],r=[],i=[],a=[];for(let t of e)(t.tag==`script`?n:t.tag==`style`?r:t.tag==`textarea`?i:a).push(t);let o=t.length?Object.create(null):null;for(let e of t)(o[e.name]||(o[e.name]=[])).push(e);return v((e,t)=>{let s=e.type.id;if(s==$Y)return FX(e,t,n);if(s==eX)return FX(e,t,r);if(s==tX)return FX(e,t,i);if(s==qY&&a.length){let n=e.node,r=n.firstChild,i=r&&PX(r,t),o;if(i){for(let e of a)if(e.tag==i&&(!e.attrs||e.attrs(o||=NX(r,t)))){let t=n.lastChild,i=t.type.id==rX?t.from:n.to;if(i>r.to)return{parser:e.parser,overlay:[{from:r.to,to:i}]}}}}if(o&&s==YY){let n=e.node,r;if(r=n.firstChild){let e=o[t.read(r.from,r.to)];if(e)for(let r of e){if(r.tagName&&r.tagName!=PX(n.parent,t))continue;let e=n.lastChild;if(e.type.id==ZY){let t=e.from+1,n=e.lastChild,i=e.to-(n&&n.isError?0:1);if(i>t)return{parser:r.parser,overlay:[{from:t,to:i}],bracketed:!0}}else if(e.type.id==QY)return{parser:r.parser,overlay:[{from:e.from,to:e.to}]}}}}return null})}var LX=316,RX=317,zX=1,BX=2,VX=3,HX=4,UX=318,WX=320,GX=321,KX=5,qX=6,JX=0,YX=[9,10,11,12,13,32,133,160,5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8232,8233,8239,8287,12288],XX=125,ZX=59,QX=47,$X=42,eZ=43,tZ=45,nZ=60,rZ=44,iZ=63,aZ=46,oZ=91,sZ=new Ge({start:!1,shift(e,t){return t==KX||t==qX||t==WX?e:t==GX},strict:!1}),cZ=new Pe((e,t)=>{let{next:n}=e;(n==XX||n==-1||t.context)&&e.acceptToken(UX)},{contextual:!0,fallback:!0}),lZ=new Pe((e,t)=>{let{next:n}=e,r;YX.indexOf(n)>-1||n==QX&&((r=e.peek(1))==QX||r==$X)||n!=XX&&n!=ZX&&n!=-1&&!t.context&&e.acceptToken(LX)},{contextual:!0}),uZ=new Pe((e,t)=>{e.next==oZ&&!t.context&&e.acceptToken(RX)},{contextual:!0}),dZ=new Pe((e,t)=>{let{next:n}=e;if(n==eZ||n==tZ){if(e.advance(),n==e.next){e.advance();let n=!t.context&&t.canShift(zX);e.acceptToken(n?zX:BX)}}else n==iZ&&e.peek(1)==aZ&&(e.advance(),e.advance(),(e.next<48||e.next>57)&&e.acceptToken(VX))},{contextual:!0});function fZ(e,t){return e>=65&&e<=90||e>=97&&e<=122||e==95||e>=192||!t&&e>=48&&e<=57}var pZ=new Pe((e,t)=>{if(e.next!=nZ||!t.dialectEnabled(JX)||(e.advance(),e.next==QX))return;let n=0;for(;YX.indexOf(e.next)>-1;)e.advance(),n++;if(fZ(e.next,!0)){for(e.advance(),n++;fZ(e.next,!1);)e.advance(),n++;for(;YX.indexOf(e.next)>-1;)e.advance(),n++;if(e.next==rZ)return;for(let t=0;;t++){if(t==7){if(!fZ(e.next,!0))return;break}if(e.next!=`extends`.charCodeAt(t))break;e.advance(),n++}}e.acceptToken(HX,-n)}),mZ=y({"get set async static":k.modifier,"for while do if else switch try catch finally return throw break continue default case defer":k.controlKeyword,"in of await yield void typeof delete instanceof as satisfies":k.operatorKeyword,"let var const using function class extends":k.definitionKeyword,"import export from":k.moduleKeyword,"with debugger new":k.keyword,TemplateString:k.special(k.string),super:k.atom,BooleanLiteral:k.bool,this:k.self,null:k.null,Star:k.modifier,VariableName:k.variableName,"CallExpression/VariableName TaggedTemplateExpression/VariableName":k.function(k.variableName),VariableDefinition:k.definition(k.variableName),Label:k.labelName,PropertyName:k.propertyName,PrivatePropertyName:k.special(k.propertyName),"CallExpression/MemberExpression/PropertyName":k.function(k.propertyName),"FunctionDeclaration/VariableDefinition":k.function(k.definition(k.variableName)),"ClassDeclaration/VariableDefinition":k.definition(k.className),"NewExpression/VariableName":k.className,PropertyDefinition:k.definition(k.propertyName),PrivatePropertyDefinition:k.definition(k.special(k.propertyName)),UpdateOp:k.updateOperator,"LineComment Hashbang":k.lineComment,BlockComment:k.blockComment,Number:k.number,String:k.string,Escape:k.escape,ArithOp:k.arithmeticOperator,LogicOp:k.logicOperator,BitOp:k.bitwiseOperator,CompareOp:k.compareOperator,RegExp:k.regexp,Equals:k.definitionOperator,Arrow:k.function(k.punctuation),": Spread":k.punctuation,"( )":k.paren,"[ ]":k.squareBracket,"{ }":k.brace,"InterpolationStart InterpolationEnd":k.special(k.brace),".":k.derefOperator,", ;":k.separator,"@":k.meta,TypeName:k.typeName,TypeDefinition:k.definition(k.typeName),"type enum interface implements namespace module declare":k.definitionKeyword,"abstract global Privacy readonly override":k.modifier,"is keyof unique infer asserts":k.operatorKeyword,JSXAttributeValue:k.attributeValue,JSXText:k.content,"JSXStartTag JSXStartCloseTag JSXSelfCloseEndTag JSXEndTag":k.angleBracket,"JSXIdentifier JSXNameSpacedName":k.tagName,"JSXAttribute/JSXIdentifier JSXAttribute/JSXNameSpacedName":k.attributeName,"JSXBuiltin/JSXIdentifier":k.standard(k.tagName)}),hZ={__proto__:null,export:20,as:25,from:33,default:36,async:41,function:42,in:52,out:55,const:56,extends:60,this:64,true:72,false:72,null:84,void:88,typeof:92,super:108,new:142,delete:154,yield:163,await:167,class:172,public:235,private:235,protected:235,readonly:237,instanceof:256,satisfies:259,import:292,keyof:349,unique:353,infer:359,asserts:395,is:397,abstract:417,implements:419,type:421,let:424,var:426,using:429,interface:435,enum:439,namespace:445,module:447,declare:451,global:455,defer:471,for:476,of:485,while:488,with:492,do:496,if:500,else:502,switch:506,case:512,try:518,catch:522,finally:526,return:530,throw:534,break:538,continue:542,debugger:546},gZ={__proto__:null,async:129,get:131,set:133,declare:195,public:197,private:197,protected:197,static:199,abstract:201,override:203,readonly:209,accessor:211,new:401},_Z={__proto__:null,"<":193},vZ=Ve.deserialize({version:14,states:"$F|Q%TQlOOO%[QlOOO'_QpOOP(lO`OOO*zQ!0MxO'#CiO+RO#tO'#CjO+aO&jO'#CjO+oO#@ItO'#DaO.QQlO'#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Q3y<gQ3z<hQ3{.{Q3|<kQ4P<nQ4Q<{Q4X<iQ5X0rQ5c1SQ6u=OQ6{3QQ7Q3WQ7a3lQ7b=PQ7k=RQ7l=ZQ8k5wQ9X6sQ9]6|Q9g=[Q9m=eQ9n=fQ:o9_Q;W:ZQ;`:mQ<W#SR=v>SR#[WR'Z!el!tQ!r!v!y!z'`'l'm'n-e-u1o5{5}S'V!e-]U*j$|*Z*oS-Y'W'_S0U*k*qQ0^*rQ2u-cQ4v0[R4{0_R({#xQ!fQT-d'`-e]!qQ!r'`-e1o5{Q#p]R'i<VR)f$dY!uQ'`-e1o5{Q'k!rS'u!v!yS'w!z5}S-t'l'mQ-v'nR3T-uT#kZ%eS#jZ%eS%km,oU(g#h#i#lS.Y(h(iQ.^(jQ0t+^Q3Y.ZU3Z.[.]._S7S3[3]R9`7Td#^W#W#Z%h(T(^*Y+Z.T/mr#gZm#h#i#l%e(h(i(j+^.Z.[.]._3[3]7TS*]$x*bQ/t*^Q2U,oQ2l-VQ4`/pQ6q2dQ7s4aQ9W6rT=m'X+[V#aW%h*YU#`W%h*YS(U#W(^U(Z#Z+Z/mS-['X+[T.O(T.TV'^!e%i*ZQ$lfR)x$qT)m$l)nR4V/UT*_$x*bT*h${*YQ0w+fQ1g,VQ3_.fQ5t1iQ6P1qQ7X3cQ8r6SQ9c7WQ:^8qQ:p9bQ;Z:`Q;c:rQ;n;[R;q;dnqOXst!Z#d%m&r&t&u&w,s,x2[2_Q&l!VR,h&itmOXst!U!V!Z#d%m&i&r&t&u&w,s,x2[2_R,o&oT%lm,oR1k,XR,g&gQ&U|S+}&V&WR1^,OR+s&PT&p!W&sT&q!W&sT2^,x2_",nodeNames:`⚠ ArithOp ArithOp ?. JSXStartTag LineComment BlockComment Script Hashbang ExportDeclaration export Star as VariableName String Escape from ; default FunctionDeclaration async function VariableDefinition > < TypeParamList in out const TypeDefinition extends ThisType this LiteralType ArithOp Number BooleanLiteral TemplateType InterpolationEnd Interpolation InterpolationStart NullType null VoidType void TypeofType typeof MemberExpression . PropertyName [ TemplateString Escape Interpolation super RegExp ] ArrayExpression Spread , } { ObjectExpression Property async get set PropertyDefinition Block : NewTarget new NewExpression ) ( ArgList UnaryExpression delete LogicOp BitOp YieldExpression yield AwaitExpression await ParenthesizedExpression ClassExpression class ClassBody MethodDeclaration Decorator @ MemberExpression PrivatePropertyName CallExpression TypeArgList CompareOp < declare Privacy static abstract override PrivatePropertyDefinition PropertyDeclaration readonly accessor Optional TypeAnnotation Equals StaticBlock FunctionExpression ArrowFunction ParamList ParamList ArrayPattern ObjectPattern PatternProperty Privacy readonly Arrow MemberExpression BinaryExpression ArithOp ArithOp ArithOp ArithOp BitOp CompareOp instanceof satisfies CompareOp BitOp BitOp BitOp LogicOp LogicOp ConditionalExpression LogicOp LogicOp AssignmentExpression UpdateOp PostfixExpression CallExpression InstantiationExpression TaggedTemplateExpression DynamicImport import ImportMeta JSXElement JSXSelfCloseEndTag JSXSelfClosingTag JSXIdentifier JSXBuiltin JSXIdentifier JSXNamespacedName JSXMemberExpression JSXSpreadAttribute JSXAttribute JSXAttributeValue JSXEscape JSXEndTag JSXOpenTag JSXFragmentTag JSXText JSXEscape JSXStartCloseTag JSXCloseTag PrefixCast < ArrowFunction TypeParamList SequenceExpression InstantiationExpression KeyofType keyof UniqueType unique ImportType InferredType infer TypeName ParenthesizedType FunctionSignature ParamList NewSignature IndexedType TupleType Label ArrayType ReadonlyType ObjectType MethodType PropertyType IndexSignature PropertyDefinition CallSignature TypePredicate asserts is NewSignature new UnionType LogicOp IntersectionType LogicOp ConditionalType ParameterizedType ClassDeclaration abstract implements type VariableDeclaration let var using TypeAliasDeclaration InterfaceDeclaration interface EnumDeclaration enum EnumBody NamespaceDeclaration namespace module AmbientDeclaration declare GlobalDeclaration global ClassDeclaration ClassBody AmbientFunctionDeclaration ExportGroup VariableName VariableName ImportDeclaration defer ImportGroup ForStatement for ForSpec ForInSpec ForOfSpec of WhileStatement while WithStatement with DoStatement do IfStatement if else SwitchStatement switch SwitchBody CaseLabel case DefaultLabel TryStatement try CatchClause catch FinallyClause finally ReturnStatement return ThrowStatement throw BreakStatement break ContinueStatement continue DebuggerStatement debugger LabeledStatement ExpressionStatement SingleExpression SingleClassItem`,maxTerm:380,context:sZ,nodeProps:[[`isolate`,-8,5,6,14,37,39,51,53,55,``],[`group`,-26,9,17,19,68,207,211,215,216,218,221,224,234,237,243,245,247,249,252,258,264,266,268,270,272,274,275,`Statement`,-34,13,14,32,35,36,42,51,54,55,57,62,70,72,76,80,82,84,85,110,111,120,121,136,139,141,142,143,144,145,147,148,167,169,171,`Expression`,-23,31,33,37,41,43,45,173,175,177,178,180,181,182,184,185,186,188,189,190,201,203,205,206,`Type`,-3,88,103,109,`ClassItem`],[`openedBy`,23,`<`,38,`InterpolationStart`,56,`[`,60,`{`,73,`(`,160,`JSXStartCloseTag`],[`closedBy`,-2,24,168,`>`,40,`InterpolationEnd`,50,`]`,61,`}`,74,`)`,165,`JSXEndTag`]],propSources:[mZ],skippedNodes:[0,5,6,278],repeatNodeCount:37,tokenData:"$Fq07[R!bOX%ZXY+gYZ-yZ[+g[]%Z]^.c^p%Zpq+gqr/mrs3cst:_tuEruvJSvwLkwx! Yxy!'iyz!(sz{!)}{|!,q|}!.O}!O!,q!O!P!/Y!P!Q!9j!Q!R#:O!R![#<_![!]#I_!]!^#Jk!^!_#Ku!_!`$![!`!a$$v!a!b$*T!b!c$,r!c!}Er!}#O$-|#O#P$/W#P#Q$4o#Q#R$5y#R#SEr#S#T$7W#T#o$8b#o#p$<r#p#q$=h#q#r$>x#r#s$@U#s$f%Z$f$g+g$g#BYEr#BY#BZ$A`#BZ$ISEr$IS$I_$A`$I_$I|Er$I|$I}$Dk$I}$JO$Dk$JO$JTEr$JT$JU$A`$JU$KVEr$KV$KW$A`$KW&FUEr&FU&FV$A`&FV;'SEr;'S;=`I|<%l?HTEr?HT?HU$A`?HUOEr(n%d_$i&j(Wp(Z!bOY%ZYZ&cZr%Zrs&}sw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i&j(Wp(Z!b'}0/l$]#t(T,2j(e$I[OY%ZYZ&cZr%Zrs&}st%ZtuEruw%Zwx(rx}%Z}!OGv!O!Q%Z!Q![Er![!^%Z!^!_*g!_!c%Z!c!}Er!}#O%Z#O#P&c#P#R%Z#R#SEr#S#T%Z#T#oEr#o#p*g#p$g%Z$g;'SEr;'S;=`I|<%lOEr",tokenizers:[lZ,uZ,dZ,pZ,2,3,4,5,6,7,8,9,10,11,12,13,14,cZ,new Te("$S~RRtu[#O#Pg#S#T#|~_P#o#pb~gOx~~jVO#i!P#i#j!U#j#l!P#l#m!q#m;'S!P;'S;=`#v<%lO!P~!UO!U~~!XS!Q![!e!c!i!e#T#Z!e#o#p#Z~!hR!Q![!q!c!i!q#T#Z!q~!tR!Q![!}!c!i!}#T#Z!}~#QR!Q![!P!c!i!P#T#Z!P~#^R!Q![#g!c!i#g#T#Z#g~#jS!Q![#g!c!i#g#T#Z#g#q#r!P~#yP;=`<%l!P~$RO(c~~",141,340),new Te(`j~RQYZXz{^~^O(Q~~aP!P!Qd~iO(R~~`,25,323)],topRules:{Script:[0,7],SingleExpression:[1,276],SingleClassItem:[2,277]},dialects:{jsx:0,ts:15175},dynamicPrecedences:{80:1,82:1,94:1,169:1,199:1},specialized:[{term:327,get:e=>hZ[e]||-1},{term:343,get:e=>gZ[e]||-1},{term:95,get:e=>_Z[e]||-1}],tokenPrec:15201}),yZ=dt({autoCloseTags:()=>UZ,javascript:()=>zZ,javascriptLanguage:()=>jZ,jsxLanguage:()=>PZ,localCompletionSource:()=>AZ,snippets:()=>bZ,tsxLanguage:()=>FZ,typescriptLanguage:()=>NZ,typescriptSnippets:()=>xZ}),bZ=[AG("function ${name}(${params}) {\n ${}\n}",{label:`function`,detail:`definition`,type:`keyword`}),AG("for (let ${index} = 0; ${index} < ${bound}; ${index}++) {\n ${}\n}",{label:`for`,detail:`loop`,type:`keyword`}),AG("for (let ${name} of ${collection}) {\n ${}\n}",{label:`for`,detail:`of loop`,type:`keyword`}),AG(`do {
|
|
165
|
+
\${}
|
|
166
|
+
} while (\${})`,{label:`do`,detail:`loop`,type:`keyword`}),AG(`while (\${}) {
|
|
167
|
+
\${}
|
|
168
|
+
}`,{label:`while`,detail:`loop`,type:`keyword`}),AG(`try {
|
|
169
|
+
\${}
|
|
170
|
+
} catch (\${error}) {
|
|
171
|
+
\${}
|
|
172
|
+
}`,{label:`try`,detail:`/ catch block`,type:`keyword`}),AG(`if (\${}) {
|
|
173
|
+
\${}
|
|
174
|
+
}`,{label:`if`,detail:`block`,type:`keyword`}),AG(`if (\${}) {
|
|
175
|
+
\${}
|
|
176
|
+
} else {
|
|
177
|
+
\${}
|
|
178
|
+
}`,{label:`if`,detail:`/ else block`,type:`keyword`}),AG(`class \${name} {
|
|
179
|
+
constructor(\${params}) {
|
|
180
|
+
\${}
|
|
181
|
+
}
|
|
182
|
+
}`,{label:`class`,detail:`definition`,type:`keyword`}),AG('import {${names}} from "${module}"\n${}',{label:`import`,detail:`named`,type:`keyword`}),AG('import ${name} from "${module}"\n${}',{label:`import`,detail:`default`,type:`keyword`})],xZ=bZ.concat([AG(`interface \${name} {
|
|
183
|
+
\${}
|
|
184
|
+
}`,{label:`interface`,detail:`definition`,type:`keyword`}),AG("type ${name} = ${type}",{label:`type`,detail:`definition`,type:`keyword`}),AG(`enum \${name} {
|
|
185
|
+
\${}
|
|
186
|
+
}`,{label:`enum`,detail:`definition`,type:`keyword`})]),SZ=new ne,CZ=new Set([`Script`,`Block`,`FunctionExpression`,`FunctionDeclaration`,`ArrowFunction`,`MethodDeclaration`,`ForStatement`]);function wZ(e){return(t,n)=>{let r=t.node.getChild(`VariableDefinition`);return r&&n(r,e),!0}}var TZ=[`FunctionDeclaration`],EZ={FunctionDeclaration:wZ(`function`),ClassDeclaration:wZ(`class`),ClassExpression:()=>!0,EnumDeclaration:wZ(`constant`),TypeAliasDeclaration:wZ(`type`),NamespaceDeclaration:wZ(`namespace`),VariableDefinition(e,t){e.matchContext(TZ)||t(e,`variable`)},TypeDefinition(e,t){t(e,`type`)},__proto__:null};function DZ(e,t){let n=SZ.get(t);if(n)return n;let r=[],i=!0;function a(t,n){let i=e.sliceString(t.from,t.to);r.push({label:i,type:n})}return t.cursor(nt.IncludeAnonymous).iterate(t=>{if(i)i=!1;else if(t.name){let e=EZ[t.name];if(e&&e(t,a)||CZ.has(t.name))return!1}else if(t.to-t.from>8192){for(let n of DZ(e,t.node))r.push(n);return!1}}),SZ.set(t,r),r}var OZ=/^[\w$\xa1-\uffff][\w$\d\xa1-\uffff]*$/,kZ=[`TemplateString`,`String`,`RegExp`,`LineComment`,`BlockComment`,`VariableDefinition`,`TypeDefinition`,`Label`,`PropertyDefinition`,`PropertyName`,`PrivatePropertyDefinition`,`PrivatePropertyName`,`JSXText`,`JSXAttributeValue`,`JSXOpenTag`,`JSXCloseTag`,`JSXSelfClosingTag`,`.`,`?.`];function AZ(e){let t=d(e.state).resolveInner(e.pos,-1);if(kZ.indexOf(t.name)>-1)return null;let n=t.name==`VariableName`||t.to-t.from<20&&OZ.test(e.state.sliceDoc(t.from,t.to));if(!n&&!e.explicit)return null;let r=[];for(let n=t;n;n=n.parent)CZ.has(n.name)&&(r=r.concat(DZ(e.state.doc,n)));return{options:r,from:n?t.from:e.pos,validFor:OZ}}var jZ=Ue.define({name:`javascript`,parser:vZ.configure({props:[s.add({IfStatement:Ce({except:/^\s*({|else\b)/}),TryStatement:Ce({except:/^\s*({|catch\b|finally\b)/}),LabeledStatement:et,SwitchBody:e=>{let t=e.textAfter,n=/^\s*\}/.test(t),r=/^\s*(case|default)\b/.test(t);return e.baseIndent+(n?0:r?1:2)*e.unit},Block:Ye({closing:`}`}),ArrowFunction:e=>e.baseIndent+e.unit,"TemplateString BlockComment":()=>null,"Statement Property":Ce({except:/^\s*{/}),JSXElement(e){let t=/^\s*<\//.test(e.textAfter);return e.lineIndent(e.node.from)+(t?0:e.unit)},JSXEscape(e){let t=/\s*\}/.test(e.textAfter);return e.lineIndent(e.node.from)+(t?0:e.unit)},"JSXOpenTag JSXSelfClosingTag"(e){return e.column(e.node.from)+e.unit}}),a.add({"Block ClassBody SwitchBody EnumBody ObjectExpression ArrayExpression ObjectType":Qe,BlockComment(e){return{from:e.from+2,to:e.to-2}},JSXElement(e){let t=e.firstChild;if(!t||t.name==`JSXSelfClosingTag`)return null;let n=e.lastChild;return{from:t.to,to:n.type.isError?e.to:n.from}},"JSXSelfClosingTag JSXOpenTag"(e){let t=e.firstChild?.nextSibling,n=e.lastChild;return!t||t.type.isError?null:{from:t.to,to:n.type.isError?e.to:n.from}}})]}),languageData:{closeBrackets:{brackets:[`(`,`[`,`{`,`'`,`"`,"`"]},commentTokens:{line:`//`,block:{open:`/*`,close:`*/`}},indentOnInput:/^\s*(?:case |default:|\{|\}|<\/)$/,wordChars:`$`}}),MZ={test:e=>/^JSX/.test(e.name),facet:ce({commentTokens:{block:{open:`{/*`,close:`*/}`}}})},NZ=jZ.configure({dialect:`ts`},`typescript`),PZ=jZ.configure({dialect:`jsx`,props:[C.add(e=>e.isTop?[MZ]:void 0)]}),FZ=jZ.configure({dialect:`jsx ts`,props:[C.add(e=>e.isTop?[MZ]:void 0)]},`typescript`),IZ=e=>({label:e,type:`keyword`}),LZ=`break case const continue default delete export extends false finally in instanceof let new return static super switch this throw true typeof var yield`.split(` `).map(IZ),RZ=LZ.concat([`declare`,`implements`,`private`,`protected`,`public`].map(IZ));function zZ(e={}){let t=e.jsx?e.typescript?FZ:PZ:e.typescript?NZ:jZ,n=e.typescript?xZ.concat(RZ):bZ.concat(LZ);return new qe(t,[jZ.data.of({autocomplete:bW(kZ,yW(n))}),jZ.data.of({autocomplete:AZ}),e.jsx?UZ:[]])}function BZ(e){for(;;){if(e.name==`JSXOpenTag`||e.name==`JSXSelfClosingTag`||e.name==`JSXFragmentTag`)return e;if(e.name==`JSXEscape`||!e.parent)return null;e=e.parent}}function VZ(e,t,n=e.length){for(let r=t?.firstChild;r;r=r.nextSibling)if(r.name==`JSXIdentifier`||r.name==`JSXBuiltin`||r.name==`JSXNamespacedName`||r.name==`JSXMemberExpression`)return e.sliceString(r.from,Math.min(r.to,n));return``}var HZ=typeof navigator==`object`&&/Android\b/.test(navigator.userAgent),UZ=P.inputHandler.of((e,t,n,r,i)=>{if((HZ?e.composing:e.compositionStarted)||e.state.readOnly||t!=n||r!=`>`&&r!=`/`||!jZ.isActiveAt(e.state,t,-1))return!1;let a=i(),{state:o}=a,s=o.changeByRange(e=>{let{head:t}=e,n=d(o).resolveInner(t-1,-1),i;if(n.name==`JSXStartTag`&&(n=n.parent),!(o.doc.sliceString(t-1,t)!=r||n.name==`JSXAttributeValue`&&n.to>t)){if(r==`>`&&n.name==`JSXFragmentTag`)return{range:e,changes:{from:t,insert:`</>`}};if(r==`/`&&n.name==`JSXStartCloseTag`){let e=n.parent,r=e.parent;if(r&&e.from==t-2&&((i=VZ(o.doc,r.firstChild,t))||r.firstChild?.name==`JSXFragmentTag`)){let e=`${i}>`;return{range:I.cursor(t+e.length,-1),changes:{from:t,insert:e}}}}else if(r==`>`){let r=BZ(n);if(r&&r.name==`JSXOpenTag`&&!/^\/?>|^<\//.test(o.doc.sliceString(t,t+2))&&(i=VZ(o.doc,r,t)))return{range:e,changes:{from:t,insert:`</${i}>`}}}}return{range:e}});return s.changes.empty?!1:(e.dispatch([a,o.update(s,{userEvent:`input.complete`,scrollIntoView:!0})]),!0)}),WZ=dt({autoCloseTags:()=>xQ,html:()=>yQ,htmlCompletionSource:()=>fQ,htmlCompletionSourceWith:()=>pQ,htmlLanguage:()=>vQ}),GZ=[`_blank`,`_self`,`_top`,`_parent`],KZ=[`ascii`,`utf-8`,`utf-16`,`latin1`,`latin1`],qZ=[`get`,`post`,`put`,`delete`],JZ=[`application/x-www-form-urlencoded`,`multipart/form-data`,`text/plain`],YZ=[`true`,`false`],XZ={},ZZ={a:{attrs:{href:null,ping:null,type:null,media:null,target:GZ,hreflang:null}},abbr:XZ,address:XZ,area:{attrs:{alt:null,coords:null,href:null,target:null,ping:null,media:null,hreflang:null,type:null,shape:[`default`,`rect`,`circle`,`poly`]}},article:XZ,aside:XZ,audio:{attrs:{src:null,mediagroup:null,crossorigin:[`anonymous`,`use-credentials`],preload:[`none`,`metadata`,`auto`],autoplay:[`autoplay`],loop:[`loop`],controls:[`controls`]}},b:XZ,base:{attrs:{href:null,target:GZ}},bdi:XZ,bdo:XZ,blockquote:{attrs:{cite:null}},body:XZ,br:XZ,button:{attrs:{form:null,formaction:null,name:null,value:null,autofocus:[`autofocus`],disabled:[`autofocus`],formenctype:JZ,formmethod:qZ,formnovalidate:[`novalidate`],formtarget:GZ,type:[`submit`,`reset`,`button`]}},canvas:{attrs:{width:null,height:null}},caption:XZ,center:XZ,cite:XZ,code:XZ,col:{attrs:{span:null}},colgroup:{attrs:{span:null}},command:{attrs:{type:[`command`,`checkbox`,`radio`],label:null,icon:null,radiogroup:null,command:null,title:null,disabled:[`disabled`],checked:[`checked`]}},data:{attrs:{value:null}},datagrid:{attrs:{disabled:[`disabled`],multiple:[`multiple`]}},datalist:{attrs:{data:null}},dd:XZ,del:{attrs:{cite:null,datetime:null}},details:{attrs:{open:[`open`]}},dfn:XZ,div:XZ,dl:XZ,dt:XZ,em:XZ,embed:{attrs:{src:null,type:null,width:null,height:null}},eventsource:{attrs:{src:null}},fieldset:{attrs:{disabled:[`disabled`],form:null,name:null}},figcaption:XZ,figure:XZ,footer:XZ,form:{attrs:{action:null,name:null,"accept-charset":KZ,autocomplete:[`on`,`off`],enctype:JZ,method:qZ,novalidate:[`novalidate`],target:GZ}},h1:XZ,h2:XZ,h3:XZ,h4:XZ,h5:XZ,h6:XZ,head:{children:[`title`,`base`,`link`,`style`,`meta`,`script`,`noscript`,`command`]},header:XZ,hgroup:XZ,hr:XZ,html:{attrs:{manifest:null}},i:XZ,iframe:{attrs:{src:null,srcdoc:null,name:null,width:null,height:null,sandbox:[`allow-top-navigation`,`allow-same-origin`,`allow-forms`,`allow-scripts`],seamless:[`seamless`]}},img:{attrs:{alt:null,src:null,ismap:null,usemap:null,width:null,height:null,crossorigin:[`anonymous`,`use-credentials`]}},input:{attrs:{alt:null,dirname:null,form:null,formaction:null,height:null,list:null,max:null,maxlength:null,min:null,name:null,pattern:null,placeholder:null,size:null,src:null,step:null,value:null,width:null,accept:[`audio/*`,`video/*`,`image/*`],autocomplete:[`on`,`off`],autofocus:[`autofocus`],checked:[`checked`],disabled:[`disabled`],formenctype:JZ,formmethod:qZ,formnovalidate:[`novalidate`],formtarget:GZ,multiple:[`multiple`],readonly:[`readonly`],required:[`required`],type:[`hidden`,`text`,`search`,`tel`,`url`,`email`,`password`,`datetime`,`date`,`month`,`week`,`time`,`datetime-local`,`number`,`range`,`color`,`checkbox`,`radio`,`file`,`submit`,`image`,`reset`,`button`]}},ins:{attrs:{cite:null,datetime:null}},kbd:XZ,keygen:{attrs:{challenge:null,form:null,name:null,autofocus:[`autofocus`],disabled:[`disabled`],keytype:[`RSA`]}},label:{attrs:{for:null,form:null}},legend:XZ,li:{attrs:{value:null}},link:{attrs:{href:null,type:null,hreflang:null,media:null,sizes:[`all`,`16x16`,`16x16 32x32`,`16x16 32x32 64x64`]}},map:{attrs:{name:null}},mark:XZ,menu:{attrs:{label:null,type:[`list`,`context`,`toolbar`]}},meta:{attrs:{content:null,charset:KZ,name:[`viewport`,`application-name`,`author`,`description`,`generator`,`keywords`],"http-equiv":[`content-language`,`content-type`,`default-style`,`refresh`]}},meter:{attrs:{value:null,min:null,low:null,high:null,max:null,optimum:null}},nav:XZ,noscript:XZ,object:{attrs:{data:null,type:null,name:null,usemap:null,form:null,width:null,height:null,typemustmatch:[`typemustmatch`]}},ol:{attrs:{reversed:[`reversed`],start:null,type:[`1`,`a`,`A`,`i`,`I`]},children:[`li`,`script`,`template`,`ul`,`ol`]},optgroup:{attrs:{disabled:[`disabled`],label:null}},option:{attrs:{disabled:[`disabled`],label:null,selected:[`selected`],value:null}},output:{attrs:{for:null,form:null,name:null}},p:XZ,param:{attrs:{name:null,value:null}},pre:XZ,progress:{attrs:{value:null,max:null}},q:{attrs:{cite:null}},rp:XZ,rt:XZ,ruby:XZ,samp:XZ,script:{attrs:{type:[`text/javascript`],src:null,async:[`async`],defer:[`defer`],charset:KZ}},section:XZ,select:{attrs:{form:null,name:null,size:null,autofocus:[`autofocus`],disabled:[`disabled`],multiple:[`multiple`]}},slot:{attrs:{name:null}},small:XZ,source:{attrs:{src:null,type:null,media:null}},span:XZ,strong:XZ,style:{attrs:{type:[`text/css`],media:null,scoped:null}},sub:XZ,summary:XZ,sup:XZ,table:XZ,tbody:XZ,td:{attrs:{colspan:null,rowspan:null,headers:null}},template:XZ,textarea:{attrs:{dirname:null,form:null,maxlength:null,name:null,placeholder:null,rows:null,cols:null,autofocus:[`autofocus`],disabled:[`disabled`],readonly:[`readonly`],required:[`required`],wrap:[`soft`,`hard`]}},tfoot:XZ,th:{attrs:{colspan:null,rowspan:null,headers:null,scope:[`row`,`col`,`rowgroup`,`colgroup`]}},thead:XZ,time:{attrs:{datetime:null}},title:XZ,tr:XZ,track:{attrs:{src:null,label:null,default:null,kind:[`subtitles`,`captions`,`descriptions`,`chapters`,`metadata`],srclang:null}},ul:{children:[`li`,`script`,`template`,`ul`,`ol`]},var:XZ,video:{attrs:{src:null,poster:null,width:null,height:null,crossorigin:[`anonymous`,`use-credentials`],preload:[`auto`,`metadata`,`none`],autoplay:[`autoplay`],mediagroup:[`movie`],muted:[`muted`],controls:[`controls`]}},wbr:XZ},QZ={accesskey:null,class:null,contenteditable:YZ,contextmenu:null,dir:[`ltr`,`rtl`,`auto`],draggable:[`true`,`false`,`auto`],dropzone:[`copy`,`move`,`link`,`string:`,`file:`],hidden:[`hidden`],id:null,inert:[`inert`],itemid:null,itemprop:null,itemref:null,itemscope:[`itemscope`],itemtype:null,lang:[`ar`,`bn`,`de`,`en-GB`,`en-US`,`es`,`fr`,`hi`,`id`,`ja`,`pa`,`pt`,`ru`,`tr`,`zh`],spellcheck:YZ,autocorrect:YZ,autocapitalize:YZ,style:null,tabindex:null,title:null,translate:[`yes`,`no`],rel:[`stylesheet`,`alternate`,`author`,`bookmark`,`help`,`license`,`next`,`nofollow`,`noreferrer`,`prefetch`,`prev`,`search`,`tag`],role:`alert application article banner button cell checkbox complementary contentinfo dialog document feed figure form grid gridcell heading img list listbox listitem main navigation region row rowgroup search switch tab table tabpanel textbox timer`.split(` `),"aria-activedescendant":null,"aria-atomic":YZ,"aria-autocomplete":[`inline`,`list`,`both`,`none`],"aria-busy":YZ,"aria-checked":[`true`,`false`,`mixed`,`undefined`],"aria-controls":null,"aria-describedby":null,"aria-disabled":YZ,"aria-dropeffect":null,"aria-expanded":[`true`,`false`,`undefined`],"aria-flowto":null,"aria-grabbed":[`true`,`false`,`undefined`],"aria-haspopup":YZ,"aria-hidden":YZ,"aria-invalid":[`true`,`false`,`grammar`,`spelling`],"aria-label":null,"aria-labelledby":null,"aria-level":null,"aria-live":[`off`,`polite`,`assertive`],"aria-multiline":YZ,"aria-multiselectable":YZ,"aria-owns":null,"aria-posinset":null,"aria-pressed":[`true`,`false`,`mixed`,`undefined`],"aria-readonly":YZ,"aria-relevant":null,"aria-required":YZ,"aria-selected":[`true`,`false`,`undefined`],"aria-setsize":null,"aria-sort":[`ascending`,`descending`,`none`,`other`],"aria-valuemax":null,"aria-valuemin":null,"aria-valuenow":null,"aria-valuetext":null},$Z=`beforeunload copy cut dragstart dragover dragleave dragenter dragend drag paste focus blur change click load mousedown mouseenter mouseleave mouseup keydown keyup resize scroll unload`.split(` `).map(e=>`on`+e);for(let e of $Z)QZ[e]=null;var eQ=class{constructor(e,t){this.tags={...ZZ,...e},this.globalAttrs={...QZ,...t},this.allTags=Object.keys(this.tags),this.globalAttrNames=Object.keys(this.globalAttrs)}};eQ.default=new eQ;function tQ(e,t,n=e.length){if(!t)return``;let r=t.firstChild,i=r&&r.getChild(`TagName`);return i?e.sliceString(i.from,Math.min(i.to,n)):``}function nQ(e,t=!1){for(;e;e=e.parent)if(e.name==`Element`)if(t)t=!1;else return e;return null}function rQ(e,t,n){return n.tags[tQ(e,nQ(t))]?.children||n.allTags}function iQ(e,t){let n=[];for(let r=nQ(t);r&&!r.type.isTop;r=nQ(r.parent)){let i=tQ(e,r);if(i&&r.lastChild.name==`CloseTag`)break;i&&n.indexOf(i)<0&&(t.name==`EndTag`||t.from>=r.firstChild.to)&&n.push(i)}return n}var aQ=/^[:\-\.\w\u00b7-\uffff]*$/;function oQ(e,t,n,r,i){let a=/\s*>/.test(e.sliceDoc(i,i+5))?``:`>`,o=nQ(n,n.name==`StartTag`||n.name==`TagName`);return{from:r,to:i,options:rQ(e.doc,o,t).map(e=>({label:e,type:`type`})).concat(iQ(e.doc,n).map((e,t)=>({label:`/`+e,apply:`/`+e+a,type:`type`,boost:99-t}))),validFor:/^\/?[:\-\.\w\u00b7-\uffff]*$/}}function sQ(e,t,n,r){let i=/\s*>/.test(e.sliceDoc(r,r+5))?``:`>`;return{from:n,to:r,options:iQ(e.doc,t).map((e,t)=>({label:e,apply:e+i,type:`type`,boost:99-t})),validFor:aQ}}function cQ(e,t,n,r){let i=[],a=0;for(let r of rQ(e.doc,n,t))i.push({label:`<`+r,type:`type`});for(let t of iQ(e.doc,n))i.push({label:`</`+t+`>`,type:`type`,boost:99-a++});return{from:r,to:r,options:i,validFor:/^<\/?[:\-\.\w\u00b7-\uffff]*$/}}function lQ(e,t,n,r,i){let a=nQ(n),o=a?t.tags[tQ(e.doc,a)]:null,s=o&&o.attrs?Object.keys(o.attrs):[];return{from:r,to:i,options:(o&&o.globalAttrs===!1?s:s.length?s.concat(t.globalAttrNames):t.globalAttrNames).map(e=>({label:e,type:`property`})),validFor:aQ}}function uQ(e,t,n,r,i){let a=n.parent?.getChild(`AttributeName`),o=[],s;if(a){let c=e.sliceDoc(a.from,a.to),l=t.globalAttrs[c];if(!l){let r=nQ(n),i=r?t.tags[tQ(e.doc,r)]:null;l=i?.attrs&&i.attrs[c]}if(l){let t=e.sliceDoc(r,i).toLowerCase(),n=`"`,a=`"`;/^['"]/.test(t)?(s=t[0]==`"`?/^[^"]*$/:/^[^']*$/,n=``,a=e.sliceDoc(i,i+1)==t[0]?``:t[0],t=t.slice(1),r++):s=/^[^\s<>='"]*$/;for(let e of l)o.push({label:e,apply:n+e+a,type:`constant`})}}return{from:r,to:i,options:o,validFor:s}}function dQ(e,t){let{state:n,pos:r}=t,i=d(n).resolveInner(r,-1),a=i.resolve(r);for(let e=r,t;a==i&&(t=i.childBefore(e));){let n=t.lastChild;if(!n||!n.type.isError||n.from<n.to)break;a=i=t,e=n.from}return i.name==`TagName`?i.parent&&/CloseTag$/.test(i.parent.name)?sQ(n,i,i.from,r):oQ(n,e,i,i.from,r):i.name==`StartTag`||i.name==`IncompleteTag`?oQ(n,e,i,r,r):i.name==`StartCloseTag`||i.name==`IncompleteCloseTag`?sQ(n,i,r,r):i.name==`OpenTag`||i.name==`SelfClosingTag`||i.name==`AttributeName`?lQ(n,e,i,i.name==`AttributeName`?i.from:r,r):i.name==`Is`||i.name==`AttributeValue`||i.name==`UnquotedAttributeValue`?uQ(n,e,i,i.name==`Is`?r:i.from,r):t.explicit&&(a.name==`Element`||a.name==`Text`||a.name==`Document`)?cQ(n,e,i,r):null}function fQ(e){return dQ(eQ.default,e)}function pQ(e){let{extraTags:t,extraGlobalAttributes:n}=e,r=n||t?new eQ(t,n):eQ.default;return e=>dQ(r,e)}var mQ=jZ.parser.configure({top:`SingleExpression`}),hQ=[{tag:`script`,attrs:e=>e.type==`text/typescript`||e.lang==`ts`,parser:NZ.parser},{tag:`script`,attrs:e=>e.type==`text/babel`||e.type==`text/jsx`,parser:PZ.parser},{tag:`script`,attrs:e=>e.type==`text/typescript-jsx`,parser:FZ.parser},{tag:`script`,attrs(e){return/^(importmap|speculationrules|application\/(.+\+)?json)$/i.test(e.type)},parser:mQ},{tag:`script`,attrs(e){return!e.type||/^(?:text|application)\/(?:x-)?(?:java|ecma)script$|^module$|^$/i.test(e.type)},parser:jZ.parser},{tag:`style`,attrs(e){return(!e.lang||e.lang==`css`)&&(!e.type||/^(text\/)?(x-)?(stylesheet|css)$/i.test(e.type))},parser:TY.parser}],gQ=[{name:`style`,parser:TY.parser.configure({top:`Styles`})}].concat($Z.map(e=>({name:e,parser:jZ.parser}))),_Q=Ue.define({name:`html`,parser:MX.configure({props:[s.add({Element(e){let t=/^(\s*)(<\/)?/.exec(e.textAfter);return e.node.to<=e.pos+t[0].length?e.continue():e.lineIndent(e.node.from)+(t[2]?0:e.unit)},"OpenTag CloseTag SelfClosingTag"(e){return e.column(e.node.from)+e.unit},Document(e){if(e.pos+/\s*/.exec(e.textAfter)[0].length<e.node.to)return e.continue();let t=null,n;for(let n=e.node;;){let e=n.lastChild;if(!e||e.name!=`Element`||e.to!=n.to)break;t=n=e}return t&&!((n=t.lastChild)&&(n.name==`CloseTag`||n.name==`SelfClosingTag`))?e.lineIndent(t.from)+e.unit:null}}),a.add({Element(e){let t=e.firstChild,n=e.lastChild;return!t||t.name!=`OpenTag`?null:{from:t.to,to:n.name==`CloseTag`?n.from:e.to}}}),Me.add({"OpenTag CloseTag":e=>e.getChild(`TagName`)})]}),languageData:{commentTokens:{block:{open:`<!--`,close:`-->`}},indentOnInput:/^\s*<\/\w+\W$/,wordChars:`-_`}}),vQ=_Q.configure({wrap:IX(hQ,gQ)});function yQ(e={}){let t=``,n;return e.matchClosingTags===!1&&(t=`noMatch`),e.selfClosingTags===!0&&(t=(t?t+` `:``)+`selfClosing`),(e.nestedLanguages&&e.nestedLanguages.length||e.nestedAttributes&&e.nestedAttributes.length)&&(n=IX((e.nestedLanguages||[]).concat(hQ),(e.nestedAttributes||[]).concat(gQ))),new qe(n?_Q.configure({wrap:n,dialect:t}):t?vQ.configure({dialect:t}):vQ,[vQ.data.of({autocomplete:pQ(e)}),e.autoCloseTags===!1?[]:xQ,zZ().support,EY().support])}var bQ=new Set(`area base br col command embed frame hr img input keygen link meta param source track wbr menuitem`.split(` `)),xQ=P.inputHandler.of((e,t,n,r,i)=>{if(e.composing||e.state.readOnly||t!=n||r!=`>`&&r!=`/`||!vQ.isActiveAt(e.state,t,-1))return!1;let a=i(),{state:o}=a,s=o.changeByRange(e=>{let t=o.doc.sliceString(e.from-1,e.to)==r,{head:n}=e,i=d(o).resolveInner(n,-1),a;if(t&&r==`>`&&i.name==`EndTag`){let t=i.parent;if(t.parent?.lastChild?.name!=`CloseTag`&&(a=tQ(o.doc,t.parent,n))&&!bQ.has(a))return{range:e,changes:{from:n,to:n+ +(o.doc.sliceString(n,n+1)===`>`),insert:`</${a}>`}}}else if(t&&r==`/`&&i.name==`IncompleteCloseTag`){let e=i.parent;if(i.from==n-2&&e.lastChild?.name!=`CloseTag`&&(a=tQ(o.doc,e,n))&&!bQ.has(a)){let e=n+ +(o.doc.sliceString(n,n+1)===`>`),t=`${a}>`;return{range:I.cursor(n+t.length,-1),changes:{from:n,to:e,insert:t}}}}return{range:e}});return s.changes.empty?!1:(e.dispatch([a,o.update(s,{userEvent:`input.complete`,scrollIntoView:!0})]),!0)});function SQ(e,t,n,r){let i=xn(kb),a=Cn(yx),o=L.useRef(null),{lexicalNode:s}=nW(),c=L.useRef(!1),l=L.useRef(!1),u=L.useCallback(()=>{a({editorType:t,rootNode:s,editorRef:o.current})},[t,s,a]),d=L.useCallback(t=>{if(t.key===`ArrowDown`){let t=o.current?.getCodemirror()?.state;t&&t.doc.length===t.selection.ranges[0].to&&(c.current?(i?.update(()=>{var t;let n=mc(e);n.getNextSibling()?((t=o.current?.getCodemirror())==null||t.contentDOM.blur(),n.selectNext()):n.insertAfter(zs())}),c.current=!1):c.current=!0)}else if(t.key===`ArrowUp`){let t=o.current?.getCodemirror()?.state;t&&t.selection.ranges[0].from===0&&(l.current?(i?.update(()=>{var t;let n=mc(e);n.getPreviousSibling()&&((t=o.current?.getCodemirror())==null||t.contentDOM.blur(),n.selectPrevious())}),l.current=!1):l.current=!0)}else t.key===`Enter`?t.stopPropagation():(t.key===`Backspace`||t.key===`Delete`)&&(o.current?.getCodemirror()?.state)?.doc.length===0&&i?.update(()=>{mc(e).remove()})},[i,e]);return L.useEffect(()=>{let e=o.current;return setTimeout(()=>{var t,n;(t=e?.getCodemirror())==null||t.contentDOM.addEventListener(`focus`,u),(n=e?.getCodemirror())==null||n.contentDOM.addEventListener(`keydown`,d)},300),()=>{var t,n;(t=e?.getCodemirror())==null||t.contentDOM.removeEventListener(`focus`,u),(n=e?.getCodemirror())==null||n.contentDOM.removeEventListener(`keydown`,d)}},[o,u,d,n]),L.useEffect(()=>{r.subscribe(()=>{var e;(e=o.current?.getCodemirror())==null||e.focus(),u()})},[r,o,e,u]),o}function Q(e){return new qe(ye.define(e))}function CQ(e){return Z(()=>import(`./dist-BYcsFgKp.js`).then(t=>t.sql({dialect:t[e]})),__vite__mapDeps([0,1]))}var wQ=[F.of({name:`C`,extensions:[`c`,`h`,`ino`],load(){return Z(()=>import(`./dist-QQuDy4KA.js`).then(e=>e.cpp()),__vite__mapDeps([2,1]))}}),F.of({name:`C++`,alias:[`cpp`],extensions:[`cpp`,`c++`,`cc`,`cxx`,`hpp`,`h++`,`hh`,`hxx`],load(){return Z(()=>import(`./dist-QQuDy4KA.js`).then(e=>e.cpp()),__vite__mapDeps([2,1]))}}),F.of({name:`CQL`,alias:[`cassandra`],extensions:[`cql`],load(){return CQ(`Cassandra`)}}),F.of({name:`CSS`,extensions:[`css`],load(){return Z(()=>Promise.resolve().then(()=>lY).then(e=>e.css()),void 0)}}),F.of({name:`Go`,extensions:[`go`],load(){return Z(()=>import(`./dist-DcsDivye.js`).then(e=>e.go()),__vite__mapDeps([3,1]))}}),F.of({name:`HTML`,alias:[`xhtml`],extensions:[`html`,`htm`,`handlebars`,`hbs`],load(){return Z(()=>Promise.resolve().then(()=>WZ).then(e=>e.html()),void 0)}}),F.of({name:`Java`,extensions:[`java`],load(){return Z(()=>import(`./dist-DKoyMSNr.js`).then(e=>e.java()),__vite__mapDeps([4,1]))}}),F.of({name:`JavaScript`,alias:[`ecmascript`,`js`,`node`],extensions:[`js`,`mjs`,`cjs`],load(){return Z(()=>Promise.resolve().then(()=>yZ).then(e=>e.javascript()),void 0)}}),F.of({name:`Jinja`,extensions:[`j2`,`jinja`,`jinja2`],load(){return Z(()=>import(`./dist-uFphVGi8.js`).then(e=>e.jinja()),__vite__mapDeps([5,1]))}}),F.of({name:`JSON`,alias:[`json5`],extensions:[`json`,`map`],load(){return Z(()=>import(`./dist-DotDq_kD.js`).then(e=>e.json()),__vite__mapDeps([6,1]))}}),F.of({name:`JSX`,extensions:[`jsx`],load(){return Z(()=>Promise.resolve().then(()=>yZ).then(e=>e.javascript({jsx:!0})),void 0)}}),F.of({name:`LESS`,extensions:[`less`],load(){return Z(()=>import(`./dist-CT-91DFe.js`).then(e=>e.less()),__vite__mapDeps([7,1]))}}),F.of({name:`Liquid`,extensions:[`liquid`],load(){return Z(()=>import(`./dist-f2E1-leP.js`).then(e=>e.liquid()),__vite__mapDeps([8,1]))}}),F.of({name:`MariaDB SQL`,load(){return CQ(`MariaSQL`)}}),F.of({name:`Markdown`,extensions:[`md`,`markdown`,`mkd`],load(){return Z(()=>Promise.resolve().then(()=>B8).then(e=>e.markdown()),void 0)}}),F.of({name:`MS SQL`,load(){return CQ(`MSSQL`)}}),F.of({name:`MySQL`,load(){return CQ(`MySQL`)}}),F.of({name:`PHP`,extensions:[`php`,`php3`,`php4`,`php5`,`php7`,`phtml`],load(){return Z(()=>import(`./dist-CSLUWBzz.js`).then(e=>e.php()),__vite__mapDeps([9,1]))}}),F.of({name:`PLSQL`,extensions:[`pls`],load(){return CQ(`PLSQL`)}}),F.of({name:`PostgreSQL`,load(){return CQ(`PostgreSQL`)}}),F.of({name:`Python`,extensions:[`BUILD`,`bzl`,`py`,`pyw`],filename:/^(BUCK|BUILD)$/,load(){return Z(()=>import(`./dist-DeozI4lc.js`).then(e=>e.python()),__vite__mapDeps([10,1]))}}),F.of({name:`Rust`,extensions:[`rs`],load(){return Z(()=>import(`./dist-B5ZAfwf5.js`).then(e=>e.rust()),__vite__mapDeps([11,1]))}}),F.of({name:`Sass`,extensions:[`sass`],load(){return Z(()=>import(`./dist-Bdudyq9I.js`).then(e=>e.sass({indented:!0})),__vite__mapDeps([12,1]))}}),F.of({name:`SCSS`,extensions:[`scss`],load(){return Z(()=>import(`./dist-Bdudyq9I.js`).then(e=>e.sass()),__vite__mapDeps([12,1]))}}),F.of({name:`SQL`,extensions:[`sql`],load(){return CQ(`StandardSQL`)}}),F.of({name:`SQLite`,load(){return CQ(`SQLite`)}}),F.of({name:`TSX`,extensions:[`tsx`],load(){return Z(()=>Promise.resolve().then(()=>yZ).then(e=>e.javascript({jsx:!0,typescript:!0})),void 0)}}),F.of({name:`TypeScript`,alias:[`ts`],extensions:[`ts`,`mts`,`cts`],load(){return Z(()=>Promise.resolve().then(()=>yZ).then(e=>e.javascript({typescript:!0})),void 0)}}),F.of({name:`WebAssembly`,extensions:[`wat`,`wast`],load(){return Z(()=>import(`./dist-DLMjd26T.js`).then(e=>e.wast()),__vite__mapDeps([13,1]))}}),F.of({name:`XML`,alias:[`rss`,`wsdl`,`xsd`],extensions:[`xml`,`xsl`,`xsd`,`svg`],load(){return Z(()=>import(`./dist-BkUONE3N.js`).then(e=>e.xml()),__vite__mapDeps([14,1]))}}),F.of({name:`YAML`,alias:[`yml`],extensions:[`yaml`,`yml`],load(){return Z(()=>import(`./dist-B5PTVnox.js`).then(e=>e.yaml()),__vite__mapDeps([15,1]))}}),F.of({name:`APL`,extensions:[`dyalog`,`apl`],load(){return Z(()=>import(`./apl-14BqhLYK.js`).then(e=>Q(e.apl)),[])}}),F.of({name:`PGP`,alias:[`asciiarmor`],extensions:[`asc`,`pgp`,`sig`],load(){return Z(()=>import(`./asciiarmor-WLvjqI7d.js`).then(e=>Q(e.asciiArmor)),[])}}),F.of({name:`ASN.1`,extensions:[`asn`,`asn1`],load(){return Z(()=>import(`./asn1-Bg4FbdCg.js`).then(e=>Q(e.asn1({}))),[])}}),F.of({name:`Asterisk`,filename:/^extensions\.conf$/i,load(){return Z(()=>import(`./asterisk-B2MO-X4d.js`).then(e=>Q(e.asterisk)),[])}}),F.of({name:`Brainfuck`,extensions:[`b`,`bf`],load(){return Z(()=>import(`./brainfuck-CV9kufud.js`).then(e=>Q(e.brainfuck)),[])}}),F.of({name:`Cobol`,extensions:[`cob`,`cpy`],load(){return Z(()=>import(`./cobol-BwO6DF08.js`).then(e=>Q(e.cobol)),[])}}),F.of({name:`C#`,alias:[`csharp`,`cs`],extensions:[`cs`],load(){return Z(()=>import(`./clike-CjmcUpt6.js`).then(e=>Q(e.csharp)),[])}}),F.of({name:`Clojure`,extensions:[`clj`,`cljc`,`cljx`],load(){return Z(()=>import(`./clojure-De3QGfx6.js`).then(e=>Q(e.clojure)),[])}}),F.of({name:`ClojureScript`,extensions:[`cljs`],load(){return Z(()=>import(`./clojure-De3QGfx6.js`).then(e=>Q(e.clojure)),[])}}),F.of({name:`Closure Stylesheets (GSS)`,extensions:[`gss`],load(){return Z(()=>import(`./css-CbMZAQ1W.js`).then(e=>Q(e.gss)),[])}}),F.of({name:`CMake`,extensions:[`cmake`,`cmake.in`],filename:/^CMakeLists\.txt$/,load(){return Z(()=>import(`./cmake-i2VDNaRq.js`).then(e=>Q(e.cmake)),[])}}),F.of({name:`CoffeeScript`,alias:[`coffee`,`coffee-script`],extensions:[`coffee`],load(){return Z(()=>import(`./coffeescript-BtivDvRz.js`).then(e=>Q(e.coffeeScript)),[])}}),F.of({name:`Common Lisp`,alias:[`lisp`],extensions:[`cl`,`lisp`,`el`],load(){return Z(()=>import(`./commonlisp-DFkEQdLP.js`).then(e=>Q(e.commonLisp)),[])}}),F.of({name:`Cypher`,extensions:[`cyp`,`cypher`],load(){return Z(()=>import(`./cypher-Dke5QOzv.js`).then(e=>Q(e.cypher)),[])}}),F.of({name:`Cython`,extensions:[`pyx`,`pxd`,`pxi`],load(){return Z(()=>import(`./python-Cs7sNzy_.js`).then(e=>Q(e.cython)),[])}}),F.of({name:`Crystal`,extensions:[`cr`],load(){return Z(()=>import(`./crystal-CU0NkcVL.js`).then(e=>Q(e.crystal)),[])}}),F.of({name:`D`,extensions:[`d`],load(){return Z(()=>import(`./d-TPqSVaHM.js`).then(e=>Q(e.d)),[])}}),F.of({name:`Dart`,extensions:[`dart`],load(){return Z(()=>import(`./clike-CjmcUpt6.js`).then(e=>Q(e.dart)),[])}}),F.of({name:`diff`,extensions:[`diff`,`patch`],load(){return Z(()=>import(`./diff-B365LSoZ.js`).then(e=>Q(e.diff)),[])}}),F.of({name:`Dockerfile`,filename:/^Dockerfile$/,load(){return Z(()=>import(`./dockerfile-CJb2sekW.js`).then(e=>Q(e.dockerFile)),__vite__mapDeps([16,17]))}}),F.of({name:`DTD`,extensions:[`dtd`],load(){return Z(()=>import(`./dtd-CBMymJ7O.js`).then(e=>Q(e.dtd)),[])}}),F.of({name:`Dylan`,extensions:[`dylan`,`dyl`,`intr`],load(){return Z(()=>import(`./dylan-08Azy1NK.js`).then(e=>Q(e.dylan)),[])}}),F.of({name:`EBNF`,load(){return Z(()=>import(`./ebnf-Dkum_1J8.js`).then(e=>Q(e.ebnf)),[])}}),F.of({name:`ECL`,extensions:[`ecl`],load(){return Z(()=>import(`./ecl-dhxjHL8y.js`).then(e=>Q(e.ecl)),[])}}),F.of({name:`edn`,extensions:[`edn`],load(){return Z(()=>import(`./clojure-De3QGfx6.js`).then(e=>Q(e.clojure)),[])}}),F.of({name:`Eiffel`,extensions:[`e`],load(){return Z(()=>import(`./eiffel-C446m6dI.js`).then(e=>Q(e.eiffel)),[])}}),F.of({name:`Elm`,extensions:[`elm`],load(){return Z(()=>import(`./elm-po1E9de0.js`).then(e=>Q(e.elm)),[])}}),F.of({name:`Erlang`,extensions:[`erl`],load(){return Z(()=>import(`./erlang-BD5LkVkR.js`).then(e=>Q(e.erlang)),[])}}),F.of({name:`Esper`,load(){return Z(()=>import(`./sql-DYI2GwJR.js`).then(e=>Q(e.esper)),[])}}),F.of({name:`Factor`,extensions:[`factor`],load(){return Z(()=>import(`./factor-B2EMQZkP.js`).then(e=>Q(e.factor)),__vite__mapDeps([18,17]))}}),F.of({name:`FCL`,load(){return Z(()=>import(`./fcl-DkEOamHd.js`).then(e=>Q(e.fcl)),[])}}),F.of({name:`Forth`,extensions:[`forth`,`fth`,`4th`],load(){return Z(()=>import(`./forth-dCg2_HVB.js`).then(e=>Q(e.forth)),[])}}),F.of({name:`Fortran`,extensions:[`f`,`for`,`f77`,`f90`,`f95`],load(){return Z(()=>import(`./fortran-3ZpXLFh1.js`).then(e=>Q(e.fortran)),[])}}),F.of({name:`F#`,alias:[`fsharp`],extensions:[`fs`],load(){return Z(()=>import(`./mllike-Cw3Iccsb.js`).then(e=>Q(e.fSharp)),[])}}),F.of({name:`Gas`,extensions:[`s`],load(){return Z(()=>import(`./gas-DMmxLZRI.js`).then(e=>Q(e.gas)),[])}}),F.of({name:`Gherkin`,extensions:[`feature`],load(){return Z(()=>import(`./gherkin-DUSFg2R6.js`).then(e=>Q(e.gherkin)),[])}}),F.of({name:`Groovy`,extensions:[`groovy`,`gradle`],filename:/^Jenkinsfile$/,load(){return Z(()=>import(`./groovy-Cmduloe1.js`).then(e=>Q(e.groovy)),[])}}),F.of({name:`Haskell`,extensions:[`hs`],load(){return Z(()=>import(`./haskell-Cyr255R9.js`).then(e=>Q(e.haskell)),[])}}),F.of({name:`Haxe`,extensions:[`hx`],load(){return Z(()=>import(`./haxe-BJVKtprM.js`).then(e=>Q(e.haxe)),[])}}),F.of({name:`HXML`,extensions:[`hxml`],load(){return Z(()=>import(`./haxe-BJVKtprM.js`).then(e=>Q(e.hxml)),[])}}),F.of({name:`HTTP`,load(){return Z(()=>import(`./http-DszHFpc-.js`).then(e=>Q(e.http)),[])}}),F.of({name:`IDL`,extensions:[`pro`],load(){return Z(()=>import(`./idl-Cati9Nrv.js`).then(e=>Q(e.idl)),[])}}),F.of({name:`JSON-LD`,alias:[`jsonld`],extensions:[`jsonld`],load(){return Z(()=>import(`./javascript-C5pDVaoP.js`).then(e=>Q(e.jsonld)),[])}}),F.of({name:`Julia`,extensions:[`jl`],load(){return Z(()=>import(`./julia-DlqY1cTU.js`).then(e=>Q(e.julia)),[])}}),F.of({name:`Kotlin`,extensions:[`kt`,`kts`],load(){return Z(()=>import(`./clike-CjmcUpt6.js`).then(e=>Q(e.kotlin)),[])}}),F.of({name:`LiveScript`,alias:[`ls`],extensions:[`ls`],load(){return Z(()=>import(`./livescript-C6p8-2W1.js`).then(e=>Q(e.liveScript)),[])}}),F.of({name:`Lua`,extensions:[`lua`],load(){return Z(()=>import(`./lua-BxuTHaF7.js`).then(e=>Q(e.lua)),[])}}),F.of({name:`mIRC`,extensions:[`mrc`],load(){return Z(()=>import(`./mirc-CCA0FRfl.js`).then(e=>Q(e.mirc)),[])}}),F.of({name:`Mathematica`,extensions:[`m`,`nb`,`wl`,`wls`],load(){return Z(()=>import(`./mathematica-nDHZUMJT.js`).then(e=>Q(e.mathematica)),[])}}),F.of({name:`Modelica`,extensions:[`mo`],load(){return Z(()=>import(`./modelica-Czx80fNR.js`).then(e=>Q(e.modelica)),[])}}),F.of({name:`MUMPS`,extensions:[`mps`],load(){return Z(()=>import(`./mumps-Ds_ZaumL.js`).then(e=>Q(e.mumps)),[])}}),F.of({name:`Mbox`,extensions:[`mbox`],load(){return Z(()=>import(`./mbox-DAaR0Hcz.js`).then(e=>Q(e.mbox)),[])}}),F.of({name:`Nginx`,filename:/nginx.*\.conf$/i,load(){return Z(()=>import(`./nginx-D9M2PQ4U.js`).then(e=>Q(e.nginx)),[])}}),F.of({name:`NSIS`,extensions:[`nsh`,`nsi`],load(){return Z(()=>import(`./nsis-DOo3SJmd.js`).then(e=>Q(e.nsis)),__vite__mapDeps([19,17]))}}),F.of({name:`NTriples`,extensions:[`nt`,`nq`],load(){return Z(()=>import(`./ntriples-DLHGTvHs.js`).then(e=>Q(e.ntriples)),[])}}),F.of({name:`Objective-C`,alias:[`objective-c`,`objc`],extensions:[`m`],load(){return Z(()=>import(`./clike-CjmcUpt6.js`).then(e=>Q(e.objectiveC)),[])}}),F.of({name:`Objective-C++`,alias:[`objective-c++`,`objc++`],extensions:[`mm`],load(){return Z(()=>import(`./clike-CjmcUpt6.js`).then(e=>Q(e.objectiveCpp)),[])}}),F.of({name:`OCaml`,extensions:[`ml`,`mli`,`mll`,`mly`],load(){return Z(()=>import(`./mllike-Cw3Iccsb.js`).then(e=>Q(e.oCaml)),[])}}),F.of({name:`Octave`,extensions:[`m`],load(){return Z(()=>import(`./octave-8jj96JiC.js`).then(e=>Q(e.octave)),[])}}),F.of({name:`Oz`,extensions:[`oz`],load(){return Z(()=>import(`./oz-BmMq7iC4.js`).then(e=>Q(e.oz)),[])}}),F.of({name:`Pascal`,extensions:[`p`,`pas`],load(){return Z(()=>import(`./pascal-BgMr6XpT.js`).then(e=>Q(e.pascal)),[])}}),F.of({name:`Perl`,extensions:[`pl`,`pm`],load(){return Z(()=>import(`./perl-D6YJObi_.js`).then(e=>Q(e.perl)),[])}}),F.of({name:`Pig`,extensions:[`pig`],load(){return Z(()=>import(`./pig-nx7uchs8.js`).then(e=>Q(e.pig)),[])}}),F.of({name:`PowerShell`,extensions:[`ps1`,`psd1`,`psm1`],load(){return Z(()=>import(`./powershell-B4IPkVxR.js`).then(e=>Q(e.powerShell)),[])}}),F.of({name:`Properties files`,alias:[`ini`,`properties`],extensions:[`properties`,`ini`,`in`],load(){return Z(()=>import(`./properties-CoavQdLC.js`).then(e=>Q(e.properties)),[])}}),F.of({name:`ProtoBuf`,extensions:[`proto`],load(){return Z(()=>import(`./protobuf-D5EWhcmc.js`).then(e=>Q(e.protobuf)),[])}}),F.of({name:`Pug`,alias:[`jade`],extensions:[`pug`,`jade`],load(){return Z(()=>import(`./pug-QU72BPAa.js`).then(e=>Q(e.pug)),__vite__mapDeps([20,21]))}}),F.of({name:`Puppet`,extensions:[`pp`],load(){return Z(()=>import(`./puppet-B_0GFuyD.js`).then(e=>Q(e.puppet)),[])}}),F.of({name:`Q`,extensions:[`q`],load(){return Z(()=>import(`./q-BIB9pPtI.js`).then(e=>Q(e.q)),[])}}),F.of({name:`R`,alias:[`rscript`],extensions:[`r`,`R`],load(){return Z(()=>import(`./r-CN5s4f3o.js`).then(e=>Q(e.r)),[])}}),F.of({name:`RPM Changes`,load(){return Z(()=>import(`./rpm-Ct_Ck8mQ.js`).then(e=>Q(e.rpmChanges)),[])}}),F.of({name:`RPM Spec`,extensions:[`spec`],load(){return Z(()=>import(`./rpm-Ct_Ck8mQ.js`).then(e=>Q(e.rpmSpec)),[])}}),F.of({name:`Ruby`,alias:[`jruby`,`macruby`,`rake`,`rb`,`rbx`],extensions:[`rb`],filename:/^(Gemfile|Rakefile)$/,load(){return Z(()=>import(`./ruby-BVPradRk.js`).then(e=>Q(e.ruby)),[])}}),F.of({name:`SAS`,extensions:[`sas`],load(){return Z(()=>import(`./sas-DN4j74IF.js`).then(e=>Q(e.sas)),[])}}),F.of({name:`Scala`,extensions:[`scala`],load(){return Z(()=>import(`./clike-CjmcUpt6.js`).then(e=>Q(e.scala)),[])}}),F.of({name:`Scheme`,extensions:[`scm`,`ss`],load(){return Z(()=>import(`./scheme-CvNgHAnh.js`).then(e=>Q(e.scheme)),[])}}),F.of({name:`Shell`,alias:[`bash`,`sh`,`zsh`],extensions:[`sh`,`ksh`,`bash`],filename:/^PKGBUILD$/,load(){return Z(()=>import(`./shell-BjiMLAaM.js`).then(e=>Q(e.shell)),[])}}),F.of({name:`Sieve`,extensions:[`siv`,`sieve`],load(){return Z(()=>import(`./sieve-C2U1O5Z4.js`).then(e=>Q(e.sieve)),[])}}),F.of({name:`Smalltalk`,extensions:[`st`],load(){return Z(()=>import(`./smalltalk-DkYwYufV.js`).then(e=>Q(e.smalltalk)),[])}}),F.of({name:`Solr`,load(){return Z(()=>import(`./solr-BopnSD-v.js`).then(e=>Q(e.solr)),[])}}),F.of({name:`SML`,extensions:[`sml`,`sig`,`fun`,`smackspec`],load(){return Z(()=>import(`./mllike-Cw3Iccsb.js`).then(e=>Q(e.sml)),[])}}),F.of({name:`SPARQL`,alias:[`sparul`],extensions:[`rq`,`sparql`],load(){return Z(()=>import(`./sparql-Cpg3YQfd.js`).then(e=>Q(e.sparql)),[])}}),F.of({name:`Spreadsheet`,alias:[`excel`,`formula`],load(){return Z(()=>import(`./spreadsheet-kRxtVt9J.js`).then(e=>Q(e.spreadsheet)),[])}}),F.of({name:`Squirrel`,extensions:[`nut`],load(){return Z(()=>import(`./clike-CjmcUpt6.js`).then(e=>Q(e.squirrel)),[])}}),F.of({name:`Stylus`,extensions:[`styl`],load(){return Z(()=>import(`./stylus-CARoeVE9.js`).then(e=>Q(e.stylus)),[])}}),F.of({name:`Swift`,extensions:[`swift`],load(){return Z(()=>import(`./swift-DKNaLAK6.js`).then(e=>Q(e.swift)),[])}}),F.of({name:`sTeX`,load(){return Z(()=>import(`./stex-BCRT8IJ3.js`).then(e=>Q(e.stex)),[])}}),F.of({name:`LaTeX`,alias:[`tex`],extensions:[`text`,`ltx`,`tex`],load(){return Z(()=>import(`./stex-BCRT8IJ3.js`).then(e=>Q(e.stex)),[])}}),F.of({name:`SystemVerilog`,extensions:[`v`,`sv`,`svh`],load(){return Z(()=>import(`./verilog-DVCHmufx.js`).then(e=>Q(e.verilog)),[])}}),F.of({name:`Tcl`,extensions:[`tcl`],load(){return Z(()=>import(`./tcl-CQyXkgMH.js`).then(e=>Q(e.tcl)),[])}}),F.of({name:`Textile`,extensions:[`textile`],load(){return Z(()=>import(`./textile-Yg_UWn-t.js`).then(e=>Q(e.textile)),[])}}),F.of({name:`TiddlyWiki`,load(){return Z(()=>import(`./tiddlywiki-dqVbkfX4.js`).then(e=>Q(e.tiddlyWiki)),[])}}),F.of({name:`Tiki wiki`,load(){return Z(()=>import(`./tiki-CC_ic8g0.js`).then(e=>Q(e.tiki)),[])}}),F.of({name:`TOML`,extensions:[`toml`],load(){return Z(()=>import(`./toml-B7gGzVkJ.js`).then(e=>Q(e.toml)),[])}}),F.of({name:`Troff`,extensions:[`1`,`2`,`3`,`4`,`5`,`6`,`7`,`8`,`9`],load(){return Z(()=>import(`./troff-Bq3z6oAu.js`).then(e=>Q(e.troff)),[])}}),F.of({name:`TTCN`,extensions:[`ttcn`,`ttcn3`,`ttcnpp`],load(){return Z(()=>import(`./ttcn-GvRgs2AT.js`).then(e=>Q(e.ttcn)),[])}}),F.of({name:`TTCN_CFG`,extensions:[`cfg`],load(){return Z(()=>import(`./ttcn-cfg-CGCXz7Vo.js`).then(e=>Q(e.ttcnCfg)),[])}}),F.of({name:`Turtle`,extensions:[`ttl`],load(){return Z(()=>import(`./turtle-CwIpz2yy.js`).then(e=>Q(e.turtle)),[])}}),F.of({name:`Web IDL`,extensions:[`webidl`],load(){return Z(()=>import(`./webidl-egXQEWlC.js`).then(e=>Q(e.webIDL)),[])}}),F.of({name:`VB.NET`,extensions:[`vb`],load(){return Z(()=>import(`./vb-BmcHUM2C.js`).then(e=>Q(e.vb)),[])}}),F.of({name:`VBScript`,extensions:[`vbs`],load(){return Z(()=>import(`./vbscript-Cs9dylre.js`).then(e=>Q(e.vbScript)),[])}}),F.of({name:`Velocity`,extensions:[`vtl`],load(){return Z(()=>import(`./velocity-CBWU0VCy.js`).then(e=>Q(e.velocity)),[])}}),F.of({name:`Verilog`,extensions:[`v`],load(){return Z(()=>import(`./verilog-DVCHmufx.js`).then(e=>Q(e.verilog)),[])}}),F.of({name:`VHDL`,extensions:[`vhd`,`vhdl`],load(){return Z(()=>import(`./vhdl-BGDk4f1d.js`).then(e=>Q(e.vhdl)),[])}}),F.of({name:`XQuery`,extensions:[`xy`,`xquery`,`xq`,`xqm`,`xqy`],load(){return Z(()=>import(`./xquery-5f0hn7cg.js`).then(e=>Q(e.xQuery)),[])}}),F.of({name:`Yacas`,extensions:[`ys`],load(){return Z(()=>import(`./yacas-DNs9XkmQ.js`).then(e=>Q(e.yacas)),[])}}),F.of({name:`Z80`,extensions:[`z80`],load(){return Z(()=>import(`./z80-B7Dfb4UO.js`).then(e=>Q(e.z80)),[])}}),F.of({name:`MscGen`,extensions:[`mscgen`,`mscin`,`msc`],load(){return Z(()=>import(`./mscgen-BmfuTbzG.js`).then(e=>Q(e.mscgen)),[])}}),F.of({name:`Xù`,extensions:[`xu`],load(){return Z(()=>import(`./mscgen-BmfuTbzG.js`).then(e=>Q(e.xu)),[])}}),F.of({name:`MsGenny`,extensions:[`msgenny`],load(){return Z(()=>import(`./mscgen-BmfuTbzG.js`).then(e=>Q(e.msgenny)),[])}}),F.of({name:`Vue`,extensions:[`vue`],load(){return Z(()=>import(`./dist-BvIW3V94.js`).then(e=>e.vue()),__vite__mapDeps([22,1]))}}),F.of({name:`Angular Template`,load(){return Z(()=>import(`./dist-sus90AFR.js`).then(e=>e.angular()),__vite__mapDeps([23,1]))}})],TQ=`#2e3440`,EQ=`#3b4252`,DQ=`#434c5e`,OQ=`#4c566a`,kQ=`#e5e9f0`,AQ=`#eceff4`,jQ=`#8fbcbb`,MQ=`#88c0d0`,NQ=`#81a1c1`,PQ=`#5e81ac`,FQ=`#bf616a`,IQ=`#d08770`,LQ=`#ebcb8b`,RQ=`#a3be8c`,zQ=`#b48ead`,BQ=`#d30102`,VQ=AQ,HQ=VQ,UQ=`#ffffff`,WQ=EQ,GQ=VQ,KQ=EQ,qQ=[P.theme({"&":{color:TQ,backgroundColor:UQ},".cm-content":{caretColor:KQ},".cm-cursor, .cm-dropCursor":{borderLeftColor:KQ},"&.cm-focused .cm-selectionBackground, .cm-selectionBackground, .cm-content ::selection":{backgroundColor:GQ},".cm-panels":{backgroundColor:VQ,color:OQ},".cm-panels.cm-panels-top":{borderBottom:`2px solid black`},".cm-panels.cm-panels-bottom":{borderTop:`2px solid black`},".cm-searchMatch":{backgroundColor:`#72a1ff59`,outline:`1px solid ${OQ}`},".cm-searchMatch.cm-searchMatch-selected":{backgroundColor:kQ},".cm-activeLine":{backgroundColor:HQ},".cm-selectionMatch":{backgroundColor:kQ},"&.cm-focused .cm-matchingBracket, &.cm-focused .cm-nonmatchingBracket":{outline:`1px solid ${OQ}`},"&.cm-focused .cm-matchingBracket":{backgroundColor:AQ},".cm-gutters":{backgroundColor:AQ,color:TQ,border:`none`},".cm-activeLineGutter":{backgroundColor:HQ},".cm-foldPlaceholder":{backgroundColor:`transparent`,border:`none`,color:`#ddd`},".cm-tooltip":{border:`none`,backgroundColor:WQ},".cm-tooltip .cm-tooltip-arrow:before":{borderTopColor:`transparent`,borderBottomColor:`transparent`},".cm-tooltip .cm-tooltip-arrow:after":{borderTopColor:WQ,borderBottomColor:WQ},".cm-tooltip-autocomplete":{"& > ul > li[aria-selected]":{backgroundColor:HQ,color:OQ}}},{dark:!1}),ee(ue.define([{tag:k.keyword,color:PQ},{tag:[k.name,k.deleted,k.character,k.propertyName,k.macroName],color:IQ},{tag:[k.variableName],color:IQ},{tag:[k.function(k.variableName)],color:PQ},{tag:[k.labelName],color:NQ},{tag:[k.color,k.constant(k.name),k.standard(k.name)],color:PQ},{tag:[k.definition(k.name),k.separator],color:RQ},{tag:[k.brace],color:jQ},{tag:[k.annotation],color:BQ},{tag:[k.number,k.changed,k.annotation,k.modifier,k.self,k.namespace],color:MQ},{tag:[k.typeName,k.className],color:LQ},{tag:[k.operator,k.operatorKeyword],color:RQ},{tag:[k.tagName],color:zQ},{tag:[k.squareBracket],color:FQ},{tag:[k.angleBracket],color:IQ},{tag:[k.attributeName],color:LQ},{tag:[k.regexp],color:PQ},{tag:[k.quote],color:EQ},{tag:[k.string],color:IQ},{tag:k.link,color:jQ,textDecoration:`underline`,textUnderlinePosition:`under`},{tag:[k.url,k.escape,k.special(k.string)],color:IQ},{tag:[k.meta],color:MQ},{tag:[k.comment],color:DQ,fontStyle:`italic`},{tag:k.strong,fontWeight:`bold`,color:PQ},{tag:k.emphasis,fontStyle:`italic`,color:PQ},{tag:k.strikethrough,textDecoration:`line-through`},{tag:k.heading,fontWeight:`bold`,color:PQ},{tag:k.special(k.heading1),fontWeight:`bold`,color:PQ},{tag:k.heading1,fontWeight:`bold`,color:PQ},{tag:[k.heading2,k.heading3,k.heading4],fontWeight:`bold`,color:PQ},{tag:[k.heading5,k.heading6],color:PQ},{tag:[k.atom,k.bool,k.special(k.variableName)],color:IQ},{tag:[k.processingInstruction,k.inserted],color:jQ},{tag:[k.contentSeparator],color:LQ},{tag:k.invalid,color:DQ,borderBottom:`1px dotted ${BQ}`}]))],JQ=typeof String.prototype.normalize==`function`?e=>e.normalize(`NFKD`):e=>e,YQ=class{constructor(e,t,n=0,r=e.length,i,a){this.test=a,this.value={from:0,to:0,precise:!1},this.done=!1,this.matches=[],this.buffer=``,this.bufferPos=0,this.iter=e.iterRange(n,r),this.bufferStart=n,this.normalize=i?e=>i(JQ(e)):JQ,this.query=this.normalize(t)}peek(){if(this.bufferPos==this.buffer.length){if(this.bufferStart+=this.buffer.length,this.iter.next(),this.iter.done)return-1;this.bufferPos=0,this.buffer=this.iter.value}return g(this.buffer,this.bufferPos)}next(){for(;this.matches.length;)this.matches.pop();return this.nextOverlapping()}nextOverlapping(){for(;;){let e=this.peek();if(e<0)return this.done=!0,this;let t=ie(e),n=this.bufferStart+this.bufferPos;this.bufferPos+=b(e);let r=this.normalize(t);if(r.length)for(let e=0,i=n,a=!0;;e++){let n=r.charCodeAt(e),o=this.match(n,i,a,this.bufferPos+this.bufferStart,e==r.length-1);if(o)return this.value=o,this;if(e==r.length-1)break;a&&e<t.length&&t.charCodeAt(e)==n?i++:a=!1}}}match(e,t,n,r,i){let a=null;for(let t=0;t<this.matches.length;){let n=this.matches[t],o=!1;this.query.charCodeAt(n.index)==e&&(n.index==this.query.length-1?a={from:n.from,to:r,precise:i&&n.precise}:(n.index++,o=!0)),o?t++:this.matches.splice(t,1)}return this.query.charCodeAt(0)==e&&(this.query.length==1?a={from:t,to:r,precise:n&&i}:this.matches.push({from:t,index:1,precise:n})),a&&this.test&&!this.test(a.from,a.to,this.buffer,this.bufferStart)&&(a=null),a}};typeof Symbol<`u`&&(YQ.prototype[Symbol.iterator]=function(){return this});var XQ={from:-1,to:-1,match:/.*/.exec(``),precise:!0},ZQ=`gm`+(/x/.unicode==null?``:`u`),QQ=class{constructor(e,t,n,r=0,i=e.length){if(this.text=e,this.to=i,this.curLine=``,this.done=!1,this.value=XQ,/\\[sWDnr]|\n|\r|\[\^/.test(t))return new t$(e,t,n,r,i);this.re=new RegExp(t,ZQ+(n?.ignoreCase?`i`:``)),this.test=n?.test,this.iter=e.iter();let a=e.lineAt(r);this.curLineStart=a.from,this.matchPos=r$(e,r),this.getLine(this.curLineStart)}getLine(e){this.iter.next(e),this.iter.lineBreak?this.curLine=``:(this.curLine=this.iter.value,this.curLineStart+this.curLine.length>this.to&&(this.curLine=this.curLine.slice(0,this.to-this.curLineStart)),this.iter.next())}nextLine(){this.curLineStart=this.curLineStart+this.curLine.length+1,this.curLineStart>this.to?this.curLine=``:this.getLine(0)}next(){for(let e=this.matchPos-this.curLineStart;;){this.re.lastIndex=e;let t=this.matchPos<=this.to&&this.re.exec(this.curLine);if(t){let n=this.curLineStart+t.index,r=n+t[0].length;if(this.matchPos=r$(this.text,r+ +(n==r)),n==this.curLineStart+this.curLine.length&&this.nextLine(),(n<r||n>this.value.to)&&(!this.test||this.test(n,r,t)))return this.value={from:n,to:r,precise:!0,match:t},this;e=this.matchPos-this.curLineStart}else if(this.curLineStart+this.curLine.length<this.to)this.nextLine(),e=0;else return this.done=!0,this}}},$Q=new WeakMap,e$=class e{constructor(e,t){this.from=e,this.text=t}get to(){return this.from+this.text.length}static get(t,n,r){let i=$Q.get(t);if(!i||i.from>=r||i.to<=n){let i=new e(n,t.sliceString(n,r));return $Q.set(t,i),i}if(i.from==n&&i.to==r)return i;let{text:a,from:o}=i;return o>n&&(a=t.sliceString(n,o)+a,o=n),i.to<r&&(a+=t.sliceString(i.to,r)),$Q.set(t,new e(o,a)),new e(n,a.slice(n-o,r-o))}},t$=class{constructor(e,t,n,r,i){this.text=e,this.to=i,this.done=!1,this.value=XQ,this.matchPos=r$(e,r),this.re=new RegExp(t,ZQ+(n?.ignoreCase?`i`:``)),this.test=n?.test,this.flat=e$.get(e,r,this.chunkEnd(r+5e3))}chunkEnd(e){return e>=this.to?this.to:this.text.lineAt(e).to}next(){for(;;){let e=this.re.lastIndex=this.matchPos-this.flat.from,t=this.re.exec(this.flat.text);if(t&&!t[0]&&t.index==e&&(this.re.lastIndex=e+1,t=this.re.exec(this.flat.text)),t){let e=this.flat.from+t.index,n=e+t[0].length;if((this.flat.to>=this.to||t.index+t[0].length<=this.flat.text.length-10)&&(!this.test||this.test(e,n,t)))return this.value={from:e,to:n,precise:!0,match:t},this.matchPos=r$(this.text,n+ +(e==n)),this}if(this.flat.to==this.to)return this.done=!0,this;this.flat=e$.get(this.text,this.flat.from,this.chunkEnd(this.flat.from+this.flat.text.length*2))}}};typeof Symbol<`u`&&(QQ.prototype[Symbol.iterator]=t$.prototype[Symbol.iterator]=function(){return this});function n$(e){try{return new RegExp(e,ZQ),!0}catch{return!1}}function r$(e,t){if(t>=e.length)return t;let n=e.lineAt(t),r;for(;t<n.to&&(r=n.text.charCodeAt(t-n.from))>=56320&&r<57344;)t++;return t}var i$=e=>{let{state:t}=e,n=String(t.doc.lineAt(e.state.selection.main.head).number),{close:r,result:i}=Ne(e,{label:t.phrase(`Go to line`),input:{type:`text`,name:`line`,value:n},focus:!0,submitLabel:t.phrase(`go`)});return i.then(n=>{let i=n&&/^([+-])?(\d+)?(:\d+)?(%)?$/.exec(n.elements.line.value);if(!i){e.dispatch({effects:r});return}let a=t.doc.lineAt(t.selection.main.head),[,o,s,c,l]=i,u=c?+c.slice(1):0,d=s?+s:a.number;if(s&&l){let e=d/100;o&&(e=e*(o==`-`?-1:1)+a.number/t.doc.lines),d=Math.round(t.doc.lines*e)}else s&&o&&(d=d*(o==`-`?-1:1)+a.number);let f=t.doc.line(Math.max(1,Math.min(t.doc.lines,d))),p=I.cursor(f.from+Math.max(0,Math.min(u,f.length)));e.dispatch({effects:[r,P.scrollIntoView(p.from,{y:`center`})],selection:p})}),!0},a$={highlightWordAroundCursor:!1,minSelectionLength:1,maxMatches:100,wholeWords:!1},o$=u.define({combine(e){return A(e,a$,{highlightWordAroundCursor:(e,t)=>e||t,minSelectionLength:Math.min,maxMatches:Math.min})}});function s$(e){let t=[p$,f$];return e&&t.push(o$.of(e)),t}var c$=Be.mark({class:`cm-selectionMatch`}),l$=Be.mark({class:`cm-selectionMatch cm-selectionMatch-main`});function u$(e,t,n,r){return(n==0||e(t.sliceDoc(n-1,n))!=M.Word)&&(r==t.doc.length||e(t.sliceDoc(r,r+1))!=M.Word)}function d$(e,t,n,r){return e(t.sliceDoc(n,n+1))==M.Word&&e(t.sliceDoc(r-1,r))==M.Word}var f$=se.fromClass(class{constructor(e){this.decorations=this.getDeco(e)}update(e){(e.selectionSet||e.docChanged||e.viewportChanged)&&(this.decorations=this.getDeco(e.view))}getDeco(e){let t=e.state.facet(o$),{state:n}=e,r=n.selection;if(r.ranges.length>1)return Be.none;let i=r.main,a,o=null;if(i.empty){if(!t.highlightWordAroundCursor)return Be.none;let e=n.wordAt(i.head);if(!e)return Be.none;o=n.charCategorizer(i.head),a=n.sliceDoc(e.from,e.to)}else{let e=i.to-i.from;if(e<t.minSelectionLength||e>200)return Be.none;if(t.wholeWords){if(a=n.sliceDoc(i.from,i.to),o=n.charCategorizer(i.head),!(u$(o,n,i.from,i.to)&&d$(o,n,i.from,i.to)))return Be.none}else if(a=n.sliceDoc(i.from,i.to),!a)return Be.none}let s=[];for(let r of e.visibleRanges){let e=new YQ(n.doc,a,r.from,r.to);for(;!e.next().done;){let{from:r,to:a}=e.value;if((!o||u$(o,n,r,a))&&(i.empty&&r<=i.from&&a>=i.to?s.push(l$.range(r,a)):(r>=i.to||a<=i.from)&&s.push(c$.range(r,a)),s.length>t.maxMatches))return Be.none}}return Be.set(s)}},{decorations:e=>e.decorations}),p$=P.baseTheme({".cm-selectionMatch":{backgroundColor:`#99ff7780`},".cm-searchMatch .cm-selectionMatch":{backgroundColor:`transparent`}}),m$=({state:e,dispatch:t})=>{let{selection:n}=e,r=I.create(n.ranges.map(t=>e.wordAt(t.head)||I.cursor(t.head)),n.mainIndex);return r.eq(n)?!1:(t(e.update({selection:r})),!0)};function h$(e,t){let{main:n,ranges:r}=e.selection,i=e.wordAt(n.head),a=i&&i.from==n.from&&i.to==n.to;for(let n=!1,i=new YQ(e.doc,t,r[r.length-1].to);;)if(i.next(),i.done){if(n)return null;i=new YQ(e.doc,t,0,Math.max(0,r[r.length-1].from-1)),n=!0}else{if(n&&r.some(e=>e.from==i.value.from))continue;if(a){let t=e.wordAt(i.value.from);if(!t||t.from!=i.value.from||t.to!=i.value.to)continue}return i.value}}var g$=({state:e,dispatch:t})=>{let{ranges:n}=e.selection;if(n.some(e=>e.from===e.to))return m$({state:e,dispatch:t});let r=e.sliceDoc(n[0].from,n[0].to);if(e.selection.ranges.some(t=>e.sliceDoc(t.from,t.to)!=r))return!1;let i=h$(e,r);return i?(t(e.update({selection:e.selection.addRange(I.range(i.from,i.to),!1),effects:P.scrollIntoView(i.to)})),!0):!1},_$=u.define({combine(e){return A(e,{top:!1,caseSensitive:!1,literal:!1,regexp:!1,wholeWord:!1,createPanel:e=>new Z$(e),scrollToMatch:e=>P.scrollIntoView(e)})}}),v$=class{constructor(e){this.search=e.search,this.caseSensitive=!!e.caseSensitive,this.literal=!!e.literal,this.regexp=!!e.regexp,this.replace=e.replace||``,this.valid=!!this.search&&(!this.regexp||n$(this.search)),this.unquoted=this.unquote(this.search),this.wholeWord=!!e.wholeWord,this.test=e.test}unquote(e){return this.literal?e:e.replace(/\\([nrt\\])/g,(e,t)=>t==`n`?`
|
|
187
|
+
`:t==`r`?`\r`:t==`t`?` `:`\\`)}eq(e){return this.search==e.search&&this.replace==e.replace&&this.caseSensitive==e.caseSensitive&&this.regexp==e.regexp&&this.wholeWord==e.wholeWord&&this.test==e.test}create(){return this.regexp?new k$(this):new C$(this)}getCursor(e,t=0,n){let r=e.doc?e:te.create({doc:e});return n??=r.doc.length,this.regexp?T$(this,r,t,n):x$(this,r,t,n)}},y$=class{constructor(e){this.spec=e}};function b$(e,t,n){return(r,i,a,o)=>n&&!n(r,i,a,o)?!1:e(r>=o&&i<=o+a.length?a.slice(r-o,i-o):t.doc.sliceString(r,i),t,r,i)}function x$(e,t,n,r){let i;return e.wholeWord&&(i=S$(t.doc,t.charCategorizer(t.selection.main.head))),e.test&&(i=b$(e.test,t,i)),new YQ(t.doc,e.unquoted,n,r,e.caseSensitive?void 0:e=>e.toLowerCase(),i)}function S$(e,t){return(n,r,i,a)=>((a>n||a+i.length<r)&&(a=Math.max(0,n-2),i=e.sliceString(a,Math.min(e.length,r+2))),(t(E$(i,n-a))!=M.Word||t(D$(i,n-a))!=M.Word)&&(t(D$(i,r-a))!=M.Word||t(E$(i,r-a))!=M.Word))}var C$=class extends y${constructor(e){super(e)}nextMatch(e,t,n){let r=x$(this.spec,e,n,e.doc.length).nextOverlapping();if(r.done){let n=Math.min(e.doc.length,t+this.spec.unquoted.length);r=x$(this.spec,e,0,n).nextOverlapping()}return r.done||r.value.from==t&&r.value.to==n?null:r.value}prevMatchInRange(e,t,n){for(let r=n;;){let n=Math.max(t,r-1e4-this.spec.unquoted.length),i=x$(this.spec,e,n,r),a=null;for(;!i.nextOverlapping().done;)a=i.value;if(a)return a;if(n==t)return null;r-=1e4}}prevMatch(e,t,n){let r=this.prevMatchInRange(e,0,t);return r||=this.prevMatchInRange(e,Math.max(0,n-this.spec.unquoted.length),e.doc.length),r&&(r.from!=t||r.to!=n)?r:null}getReplacement(e){return this.spec.unquote(this.spec.replace)}matchAll(e,t){let n=x$(this.spec,e,0,e.doc.length),r=[];for(;!n.next().done;){if(r.length>=t)return null;r.push(n.value)}return r}highlight(e,t,n,r){let i=x$(this.spec,e,Math.max(0,t-this.spec.unquoted.length),Math.min(n+this.spec.unquoted.length,e.doc.length));for(;!i.next().done;)r(i.value.from,i.value.to)}};function w$(e,t,n){return(r,i,a)=>(!n||n(r,i,a))&&e(a[0],t,r,i)}function T$(e,t,n,r){let i;return e.wholeWord&&(i=O$(t.charCategorizer(t.selection.main.head))),e.test&&(i=w$(e.test,t,i)),new QQ(t.doc,e.search,{ignoreCase:!e.caseSensitive,test:i},n,r)}function E$(e,t){return e.slice(i(e,t,!1),t)}function D$(e,t){return e.slice(t,i(e,t))}function O$(e){return(t,n,r)=>!r[0].length||(e(E$(r.input,r.index))!=M.Word||e(D$(r.input,r.index))!=M.Word)&&(e(D$(r.input,r.index+r[0].length))!=M.Word||e(E$(r.input,r.index+r[0].length))!=M.Word)}var k$=class extends y${nextMatch(e,t,n){let r=T$(this.spec,e,n,e.doc.length).next();return r.done&&(r=T$(this.spec,e,0,t).next()),r.done?null:r.value}prevMatchInRange(e,t,n){for(let r=1;;r++){let i=Math.max(t,n-r*1e4),a=T$(this.spec,e,i,n),o=null;for(;!a.next().done;)o=a.value;if(o&&(i==t||o.from>i+10))return o;if(i==t)return null}}prevMatch(e,t,n){return this.prevMatchInRange(e,0,t)||this.prevMatchInRange(e,n,e.doc.length)}getReplacement(e){return this.spec.unquote(this.spec.replace).replace(/\$([$&]|\d+)/g,(t,n)=>{if(n==`&`)return e.match[0];if(n==`$`)return`$`;for(let t=n.length;t>0;t--){let r=+n.slice(0,t);if(r>0&&r<e.match.length)return e.match[r]+n.slice(t)}return t})}matchAll(e,t){let n=T$(this.spec,e,0,e.doc.length),r=[];for(;!n.next().done;){if(r.length>=t)return null;r.push(n.value)}return r}highlight(e,t,n,r){let i=T$(this.spec,e,Math.max(0,t-250),Math.min(n+250,e.doc.length));for(;!i.next().done;)r(i.value.from,i.value.to)}},A$=S.define(),j$=S.define(),M$=w.define({create(e){return new N$(G$(e).create(),null)},update(e,t){for(let n of t.effects)n.is(A$)?e=new N$(n.value.create(),e.panel):n.is(j$)&&(e=new N$(e.query,n.value?W$:null));return e},provide:e=>we.from(e,e=>e.panel)}),N$=class{constructor(e,t){this.query=e,this.panel=t}},P$=Be.mark({class:`cm-searchMatch`}),F$=Be.mark({class:`cm-searchMatch cm-searchMatch-selected`}),I$=se.fromClass(class{constructor(e){this.view=e,this.decorations=this.highlight(e.state.field(M$))}update(e){let t=e.state.field(M$);(t!=e.startState.field(M$)||e.docChanged||e.selectionSet||e.viewportChanged)&&(this.decorations=this.highlight(t))}highlight({query:e,panel:t}){if(!t||!e.spec.valid)return Be.none;let{view:r}=this,i=new n;for(let t=0,n=r.visibleRanges,a=n.length;t<a;t++){let{from:o,to:s}=n[t];for(;t<a-1&&s>n[t+1].from-500;)s=n[++t].to;e.highlight(r.state,o,s,(e,t)=>{let n=r.state.selection.ranges.some(n=>n.from==e&&n.to==t);i.add(e,t,n?F$:P$)})}return i.finish()}},{decorations:e=>e.decorations});function L$(e){return t=>{let n=t.state.field(M$,!1);return n&&n.query.spec.valid?e(t,n):J$(t)}}var R$=L$((e,{query:t})=>{let{to:n}=e.state.selection.main,r=t.nextMatch(e.state,n,n);if(!r)return!1;let i=I.single(r.from,r.to),a=e.state.facet(_$);return e.dispatch({selection:i,effects:[t1(e,r),a.scrollToMatch(i.main,e)],userEvent:`select.search`}),q$(e),!0}),z$=L$((e,{query:t})=>{let{state:n}=e,{from:r}=n.selection.main,i=t.prevMatch(n,r,r);if(!i)return!1;let a=I.single(i.from,i.to),o=e.state.facet(_$);return e.dispatch({selection:a,effects:[t1(e,i),o.scrollToMatch(a.main,e)],userEvent:`select.search`}),q$(e),!0}),B$=L$((e,{query:t})=>{let n=t.matchAll(e.state,1e3);return!n||!n.length?!1:(e.dispatch({selection:I.create(n.map(e=>I.range(e.from,e.to))),userEvent:`select.search.matches`}),!0)}),V$=({state:e,dispatch:t})=>{let n=e.selection;if(n.ranges.length>1||n.main.empty)return!1;let{from:r,to:i}=n.main,a=[],o=0;for(let t=new YQ(e.doc,e.sliceDoc(r,i));!t.next().done;){if(a.length>1e3)return!1;t.value.from==r&&(o=a.length),a.push(I.range(t.value.from,t.value.to))}return t(e.update({selection:I.create(a,o),userEvent:`select.search.matches`})),!0},H$=L$((e,{query:t})=>{let{state:n}=e,{from:r,to:i}=n.selection.main;if(n.readOnly)return!1;let a=t.nextMatch(n,r,r);if(!a)return!1;let o=a,s=[],c,l,u=[];o.precise?o.from==r&&o.to==i&&(l=n.toText(t.getReplacement(o)),s.push({from:o.from,to:o.to,insert:l}),u.push(P.announce.of(n.phrase(`replaced match on line $`,n.doc.lineAt(r).number)+`.`))):o=t.nextMatch(n,o.from,o.to);let d=e.state.changes(s);return o&&(c=I.single(o.from,o.to).map(d),u.push(t1(e,o)),u.push(n.facet(_$).scrollToMatch(c.main,e))),e.dispatch({changes:d,selection:c,effects:u,userEvent:`input.replace`}),!0}),U$=L$((e,{query:t})=>{if(e.state.readOnly)return!1;let n=[];for(let r of t.matchAll(e.state,1e9)){let{from:e,to:i,precise:a}=r;a&&n.push({from:e,to:i,insert:t.getReplacement(r)})}if(!n.length)return!1;let r=e.state.phrase(`replaced $ matches`,n.length)+`.`;return e.dispatch({changes:n,effects:P.announce.of(r),userEvent:`input.replace.all`}),!0});function W$(e){return e.state.facet(_$).createPanel(e)}function G$(e,t){let n=e.selection.main,r=n.empty||n.to>n.from+100?``:e.sliceDoc(n.from,n.to);if(t&&!r)return t;let i=e.facet(_$);return new v$({search:t?.literal??i.literal?r:r.replace(/\n/g,`\\n`),caseSensitive:t?.caseSensitive??i.caseSensitive,literal:t?.literal??i.literal,regexp:t?.regexp??i.regexp,wholeWord:t?.wholeWord??i.wholeWord})}function K$(e){let t=Fe(e,W$);return t&&t.dom.querySelector(`[main-field]`)}function q$(e){let t=K$(e);t&&t==e.root.activeElement&&t.select()}var J$=e=>{let t=e.state.field(M$,!1);if(t&&t.panel){let n=K$(e);if(n&&n!=e.root.activeElement){let r=G$(e.state,t.query.spec);r.valid&&e.dispatch({effects:A$.of(r)}),n.focus(),n.select()}}else e.dispatch({effects:[j$.of(!0),t?A$.of(G$(e.state,t.query.spec)):S.appendConfig.of(r1)]});return!0},Y$=e=>{let t=e.state.field(M$,!1);if(!t||!t.panel)return!1;let n=Fe(e,W$);return n&&n.dom.contains(e.root.activeElement)&&e.focus(),e.dispatch({effects:j$.of(!1)}),!0},X$=[{key:`Mod-f`,run:J$,scope:`editor search-panel`},{key:`F3`,run:R$,shift:z$,scope:`editor search-panel`,preventDefault:!0},{key:`Mod-g`,run:R$,shift:z$,scope:`editor search-panel`,preventDefault:!0},{key:`Escape`,run:Y$,scope:`editor search-panel`},{key:`Mod-Shift-l`,run:V$},{key:`Mod-Alt-g`,run:i$},{key:`Mod-d`,run:g$,preventDefault:!0}],Z$=class{constructor(e){this.view=e;let t=this.query=e.state.field(M$).query.spec;this.commit=this.commit.bind(this),this.searchField=le(`input`,{value:t.search,placeholder:Q$(e,`Find`),"aria-label":Q$(e,`Find`),class:`cm-textfield`,name:`search`,form:``,"main-field":`true`,onchange:this.commit,onkeyup:this.commit}),this.replaceField=le(`input`,{value:t.replace,placeholder:Q$(e,`Replace`),"aria-label":Q$(e,`Replace`),class:`cm-textfield`,name:`replace`,form:``,onchange:this.commit,onkeyup:this.commit}),this.caseField=le(`input`,{type:`checkbox`,name:`case`,form:``,checked:t.caseSensitive,onchange:this.commit}),this.reField=le(`input`,{type:`checkbox`,name:`re`,form:``,checked:t.regexp,onchange:this.commit}),this.wordField=le(`input`,{type:`checkbox`,name:`word`,form:``,checked:t.wholeWord,onchange:this.commit});function n(e,t,n){return le(`button`,{class:`cm-button`,name:e,onclick:t,type:`button`},n)}this.dom=le(`div`,{onkeydown:e=>this.keydown(e),class:`cm-search`},[this.searchField,n(`next`,()=>R$(e),[Q$(e,`next`)]),n(`prev`,()=>z$(e),[Q$(e,`previous`)]),n(`select`,()=>B$(e),[Q$(e,`all`)]),le(`label`,null,[this.caseField,Q$(e,`match case`)]),le(`label`,null,[this.reField,Q$(e,`regexp`)]),le(`label`,null,[this.wordField,Q$(e,`by word`)]),...e.state.readOnly?[]:[le(`br`),this.replaceField,n(`replace`,()=>H$(e),[Q$(e,`replace`)]),n(`replaceAll`,()=>U$(e),[Q$(e,`replace all`)])],le(`button`,{name:`close`,onclick:()=>Y$(e),"aria-label":Q$(e,`close`),type:`button`},[`×`])])}commit(){let e=new v$({search:this.searchField.value,caseSensitive:this.caseField.checked,regexp:this.reField.checked,wholeWord:this.wordField.checked,replace:this.replaceField.value});e.eq(this.query)||(this.query=e,this.view.dispatch({effects:A$.of(e)}))}keydown(e){ze(this.view,e,`search-panel`)?e.preventDefault():e.keyCode==13&&e.target==this.searchField?(e.preventDefault(),(e.shiftKey?z$:R$)(this.view)):e.keyCode==13&&e.target==this.replaceField&&(e.preventDefault(),H$(this.view))}update(e){for(let t of e.transactions)for(let e of t.effects)e.is(A$)&&!e.value.eq(this.query)&&this.setQuery(e.value)}setQuery(e){this.query=e,this.searchField.value=e.search,this.replaceField.value=e.replace,this.caseField.checked=e.caseSensitive,this.reField.checked=e.regexp,this.wordField.checked=e.wholeWord}mount(){this.searchField.select()}get pos(){return 80}get top(){return this.view.state.facet(_$).top}};function Q$(e,t){return e.state.phrase(t)}var $$=30,e1=/[\s\.,:;?!]/;function t1(e,{from:t,to:n}){let r=e.state.doc.lineAt(t),i=e.state.doc.lineAt(n).to,a=Math.max(r.from,t-$$),o=Math.min(i,n+$$),s=e.state.sliceDoc(a,o);if(a!=r.from){for(let e=0;e<$$;e++)if(!e1.test(s[e+1])&&e1.test(s[e])){s=s.slice(e);break}}if(o!=i){for(let e=s.length-1;e>s.length-$$;e--)if(!e1.test(s[e-1])&&e1.test(s[e])){s=s.slice(0,e);break}}return P.announce.of(`${e.state.phrase(`current match`)}. ${s} ${e.state.phrase(`on line`)} ${r.number}.`)}var n1=P.baseTheme({".cm-panel.cm-search":{padding:`2px 6px 4px`,position:`relative`,"& [name=close]":{position:`absolute`,top:`0`,right:`4px`,backgroundColor:`inherit`,border:`none`,font:`inherit`,padding:0,margin:0},"& input, & button, & label":{margin:`.2em .6em .2em 0`},"& input[type=checkbox]":{marginRight:`.2em`},"& label":{fontSize:`80%`,whiteSpace:`pre`}},"&light .cm-searchMatch":{backgroundColor:`#ffff0054`},"&dark .cm-searchMatch":{backgroundColor:`#00ffff8a`},"&light .cm-searchMatch-selected":{backgroundColor:`#ff6a0054`},"&dark .cm-searchMatch-selected":{backgroundColor:`#ff00ff8a`}}),r1=[M$,E.low(I$),n1],i1=class{constructor(e,t,n){this.from=e,this.to=t,this.diagnostic=n}},a1=class e{constructor(e,t,n){this.diagnostics=e,this.panel=t,this.selected=n}static init(t,r,i){let a=i.facet(y1).markerFilter;a&&(t=a(t,i));let o=t.slice().sort((e,t)=>e.from-t.from||e.to-t.to),s=new n,c=[],l=0,u=i.doc.iter(),d=0,f=i.doc.length;for(let e=0;;){let t=e==o.length?null:o[e];if(!t&&!c.length)break;let n,r;if(c.length)n=l,r=c.reduce((e,t)=>Math.min(e,t.to),t&&t.from>n?t.from:1e8);else{if(n=t.from,n>f)break;r=t.to,c.push(t),e++}for(;e<o.length;){let t=o[e];if(t.from==n&&(t.to>t.from||t.to==n))c.push(t),e++,r=Math.min(t.to,r);else{r=Math.min(t.from,r);break}}r=Math.min(r,f);let i=!1;if(c.some(e=>e.from==n&&(e.to==r||r==f))&&(i=n==r,!i&&r-n<10)){let e=n-(d+u.value.length);e>0&&(u.next(e),d=n);for(let e=n;;){if(e>=r){i=!0;break}if(!u.lineBreak&&d+u.value.length>e)break;e=d+u.value.length,d+=u.value.length,u.next()}}let a=A1(c);if(i)s.add(n,n,Be.widget({widget:new C1(a),diagnostics:c.slice()}));else{let e=c.reduce((e,t)=>t.markClass?e+` `+t.markClass:e,``);s.add(n,r,Be.mark({class:`cm-lintRange cm-lintRange-`+a+e,diagnostics:c.slice(),inclusiveEnd:c.some(e=>e.to>r)}))}if(l=r,l==f)break;for(let e=0;e<c.length;e++)c[e].to<=l&&c.splice(e--,1)}let p=s.finish();return new e(p,r,o1(p))}};function o1(e,t=null,n=0){let r=null;return e.between(n,1e9,(e,n,{spec:i})=>{if(!(t&&i.diagnostics.indexOf(t)<0))if(!r)r=new i1(e,n,t||i.diagnostics[0]);else if(i.diagnostics.indexOf(r.diagnostic)<0)return!1;else r=new i1(r.from,n,r.diagnostic)}),r}function s1(e,t){let n=t.pos,r=t.end||n,i=e.state.facet(y1).hideOn(e,n,r);if(i!=null)return i;let a=e.startState.doc.lineAt(t.pos);return!!(e.effects.some(e=>e.is(l1))||e.changes.touchesRange(a.from,Math.max(a.to,r)))}function c1(e,t){return e.field(f1,!1)?t:t.concat(S.appendConfig.of(j1))}var l1=S.define(),u1=S.define(),d1=S.define(),f1=w.define({create(){return new a1(Be.none,null,null)},update(e,t){if(t.docChanged&&e.diagnostics.size){let n=e.diagnostics.map(t.changes),r=null,i=e.panel;if(e.selected){let i=t.changes.mapPos(e.selected.from,1);r=o1(n,e.selected.diagnostic,i)||o1(n,null,i)}!n.size&&i&&t.state.facet(y1).autoPanel&&(i=null),e=new a1(n,i,r)}for(let n of t.effects)if(n.is(l1)){let r=t.state.facet(y1).autoPanel?n.value.length?T1.open:null:e.panel;e=a1.init(n.value,r,t.state)}else n.is(u1)?e=new a1(e.diagnostics,n.value?T1.open:null,e.selected):n.is(d1)&&(e=new a1(e.diagnostics,e.panel,n.value));return e},provide:e=>[we.from(e,e=>e.panel),P.decorations.from(e,e=>e.diagnostics)]}),p1=Be.mark({class:`cm-lintRange cm-lintRange-active`});function m1(e,t,n){let{diagnostics:r}=e.state.field(f1),i,a=-1,o=-1;r.between(t-+(n<0),t+ +(n>0),(e,r,{spec:s})=>{if(t>=e&&t<=r&&(e==r||(t>e||n>0)&&(t<r||n<0)))return i=s.diagnostics,a=e,o=r,!1});let s=e.state.facet(y1).tooltipFilter;return i&&s&&(i=s(i,e.state)),i?{pos:a,end:o,above:e.state.doc.lineAt(a).to<o,create(){return{dom:h1(e,i)}}}:null}function h1(e,t){return le(`ul`,{class:`cm-tooltip-lint`},t.map(t=>S1(e,t,!1)))}var g1=e=>{let t=e.state.field(f1,!1);(!t||!t.panel)&&e.dispatch({effects:c1(e.state,[u1.of(!0)])});let n=Fe(e,T1.open);return n&&n.dom.querySelector(`.cm-panel-lint ul`).focus(),!0},_1=e=>{let t=e.state.field(f1,!1);return!t||!t.panel?!1:(e.dispatch({effects:u1.of(!1)}),!0)},v1=[{key:`Mod-Shift-m`,run:g1,preventDefault:!0},{key:`F8`,run:e=>{let t=e.state.field(f1,!1);if(!t)return!1;let n=e.state.selection.main,r=o1(t.diagnostics,null,n.to+1);return!r&&(r=o1(t.diagnostics,null,0),!r||r.from==n.from&&r.to==n.to)?!1:(e.dispatch({selection:{anchor:r.from,head:r.to},scrollIntoView:!0}),!0)}}],y1=u.define({combine(e){return{sources:e.map(e=>e.source).filter(e=>e!=null),...A(e.map(e=>e.config),{delay:750,markerFilter:null,tooltipFilter:null,needsRefresh:null,hideOn:()=>null},{delay:Math.max,markerFilter:b1,tooltipFilter:b1,needsRefresh:(e,t)=>e?t?n=>e(n)||t(n):e:t,hideOn:(e,t)=>e?t?(n,r,i)=>e(n,r,i)||t(n,r,i):e:t,autoPanel:(e,t)=>e||t})}}});function b1(e,t){return e?t?(n,r)=>t(e(n,r),r):e:t}function x1(e){let t=[];if(e)actions:for(let{name:n}of e){for(let e=0;e<n.length;e++){let r=n[e];if(/[a-zA-Z]/.test(r)&&!t.some(e=>e.toLowerCase()==r.toLowerCase())){t.push(r);continue actions}}t.push(``)}return t}function S1(e,t,n){let r=n?x1(t.actions):[];return le(`li`,{class:`cm-diagnostic cm-diagnostic-`+t.severity},le(`span`,{class:`cm-diagnosticText`},t.renderMessage?t.renderMessage(e):t.message),t.actions?.map((n,i)=>{let a=!1,o=r=>{if(r.preventDefault(),a)return;a=!0;let i=o1(e.state.field(f1).diagnostics,t);i&&n.apply(e,i.from,i.to)},{name:s}=n,c=r[i]?s.indexOf(r[i]):-1,l=c<0?s:[s.slice(0,c),le(`u`,s.slice(c,c+1)),s.slice(c+1)];return le(`button`,{type:`button`,class:`cm-diagnosticAction`+(n.markClass?` `+n.markClass:``),onclick:o,onmousedown:o,"aria-label":` Action: ${s}${c<0?``:` (access key "${r[i]})"`}.`},l)}),t.source&&le(`div`,{class:`cm-diagnosticSource`},t.source))}var C1=class extends O{constructor(e){super(),this.sev=e}eq(e){return e.sev==this.sev}toDOM(){return le(`span`,{class:`cm-lintPoint cm-lintPoint-`+this.sev})}},w1=class{constructor(e,t){this.diagnostic=t,this.id=`item_`+Math.floor(Math.random()*4294967295).toString(16),this.dom=S1(e,t,!0),this.dom.id=this.id,this.dom.setAttribute(`role`,`option`)}},T1=class e{constructor(e){this.view=e,this.items=[];let t=t=>{if(!(t.ctrlKey||t.altKey||t.metaKey)){if(t.keyCode==27)_1(this.view),this.view.focus();else if(t.keyCode==38||t.keyCode==33)this.moveSelection((this.selectedIndex-1+this.items.length)%this.items.length);else if(t.keyCode==40||t.keyCode==34)this.moveSelection((this.selectedIndex+1)%this.items.length);else if(t.keyCode==36)this.moveSelection(0);else if(t.keyCode==35)this.moveSelection(this.items.length-1);else if(t.keyCode==13)this.view.focus();else if(t.keyCode>=65&&t.keyCode<=90&&this.selectedIndex>=0){let{diagnostic:n}=this.items[this.selectedIndex],r=x1(n.actions);for(let i=0;i<r.length;i++)if(r[i].toUpperCase().charCodeAt(0)==t.keyCode){let t=o1(this.view.state.field(f1).diagnostics,n);t&&n.actions[i].apply(e,t.from,t.to)}}else return;t.preventDefault()}},n=e=>{for(let t=0;t<this.items.length;t++)this.items[t].dom.contains(e.target)&&this.moveSelection(t)};this.list=le(`ul`,{tabIndex:0,role:`listbox`,"aria-label":this.view.state.phrase(`Diagnostics`),onkeydown:t,onclick:n}),this.dom=le(`div`,{class:`cm-panel-lint`},this.list,le(`button`,{type:`button`,name:`close`,"aria-label":this.view.state.phrase(`close`),onclick:()=>_1(this.view)},`×`)),this.update()}get selectedIndex(){let e=this.view.state.field(f1).selected;if(!e)return-1;for(let t=0;t<this.items.length;t++)if(this.items[t].diagnostic==e.diagnostic)return t;return-1}update(){let{diagnostics:e,selected:t}=this.view.state.field(f1),n=0,r=!1,i=null,a=new Set;for(e.between(0,this.view.state.doc.length,(e,o,{spec:s})=>{for(let e of s.diagnostics){if(a.has(e))continue;a.add(e);let o=-1,s;for(let t=n;t<this.items.length;t++)if(this.items[t].diagnostic==e){o=t;break}o<0?(s=new w1(this.view,e),this.items.splice(n,0,s),r=!0):(s=this.items[o],o>n&&(this.items.splice(n,o-n),r=!0)),t&&s.diagnostic==t.diagnostic?s.dom.hasAttribute(`aria-selected`)||(s.dom.setAttribute(`aria-selected`,`true`),i=s):s.dom.hasAttribute(`aria-selected`)&&s.dom.removeAttribute(`aria-selected`),n++}});n<this.items.length&&!(this.items.length==1&&this.items[0].diagnostic.from<0);)r=!0,this.items.pop();this.items.length==0&&(this.items.push(new w1(this.view,{from:-1,to:-1,severity:`info`,message:this.view.state.phrase(`No diagnostics`)})),r=!0),i?(this.list.setAttribute(`aria-activedescendant`,i.id),this.view.requestMeasure({key:this,read:()=>({sel:i.dom.getBoundingClientRect(),panel:this.list.getBoundingClientRect()}),write:({sel:e,panel:t})=>{let n=t.height/this.list.offsetHeight;e.top<t.top?this.list.scrollTop-=(t.top-e.top)/n:e.bottom>t.bottom&&(this.list.scrollTop+=(e.bottom-t.bottom)/n)}})):this.selectedIndex<0&&this.list.removeAttribute(`aria-activedescendant`),r&&this.sync()}sync(){let e=this.list.firstChild;function t(){let t=e;e=t.nextSibling,t.remove()}for(let n of this.items)if(n.dom.parentNode==this.list){for(;e!=n.dom;)t();e=n.dom.nextSibling}else this.list.insertBefore(n.dom,e);for(;e;)t()}moveSelection(e){if(this.selectedIndex<0)return;let t=o1(this.view.state.field(f1).diagnostics,this.items[e].diagnostic);t&&this.view.dispatch({selection:{anchor:t.from,head:t.to},scrollIntoView:!0,effects:d1.of(t)})}static open(t){return new e(t)}};function E1(e,t=`viewBox="0 0 40 40"`){return`url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" ${t}>${encodeURIComponent(e)}</svg>')`}function D1(e){return E1(`<path d="m0 2.5 l2 -1.5 l1 0 l2 1.5 l1 0" stroke="${e}" fill="none" stroke-width=".7"/>`,`width="6" height="3"`)}var O1=P.baseTheme({".cm-diagnostic":{padding:`3px 6px 3px 8px`,marginLeft:`-1px`,display:`block`,whiteSpace:`pre-wrap`},".cm-diagnostic-error":{borderLeft:`5px solid #d11`},".cm-diagnostic-warning":{borderLeft:`5px solid orange`},".cm-diagnostic-info":{borderLeft:`5px solid #999`},".cm-diagnostic-hint":{borderLeft:`5px solid #66d`},".cm-diagnosticAction":{font:`inherit`,border:`none`,padding:`2px 4px`,backgroundColor:`#444`,color:`white`,borderRadius:`3px`,marginLeft:`8px`,cursor:`pointer`},".cm-diagnosticSource":{fontSize:`70%`,opacity:.7},".cm-lintRange":{backgroundPosition:`left bottom`,backgroundRepeat:`repeat-x`,paddingBottom:`0.7px`},".cm-lintRange-error":{backgroundImage:D1(`#d11`)},".cm-lintRange-warning":{backgroundImage:D1(`orange`)},".cm-lintRange-info":{backgroundImage:D1(`#999`)},".cm-lintRange-hint":{backgroundImage:D1(`#66d`)},".cm-lintRange-active":{backgroundColor:`#ffdd9980`},".cm-tooltip-lint":{padding:0,margin:0},".cm-lintPoint":{position:`relative`,"&:after":{content:`""`,position:`absolute`,bottom:0,left:`-2px`,borderLeft:`3px solid transparent`,borderRight:`3px solid transparent`,borderBottom:`4px solid #d11`}},".cm-lintPoint-warning":{"&:after":{borderBottomColor:`orange`}},".cm-lintPoint-info":{"&:after":{borderBottomColor:`#999`}},".cm-lintPoint-hint":{"&:after":{borderBottomColor:`#66d`}},".cm-panel.cm-panel-lint":{position:`relative`,"& ul":{maxHeight:`100px`,overflowY:`auto`,"& [aria-selected]":{backgroundColor:`#ddd`,"& u":{textDecoration:`underline`}},"&:focus [aria-selected]":{background_fallback:`#bdf`,backgroundColor:`Highlight`,color_fallback:`white`,color:`HighlightText`},"& u":{textDecoration:`none`},padding:0,margin:0},"& [name=close]":{position:`absolute`,top:`0`,right:`2px`,background:`inherit`,border:`none`,font:`inherit`,padding:0,margin:0}},"&dark .cm-lintRange-active":{backgroundColor:`#86714a80`},"&dark .cm-panel.cm-panel-lint ul":{"& [aria-selected]":{backgroundColor:`#2e343e`}}});function k1(e){return e==`error`?4:e==`warning`?3:e==`info`?2:1}function A1(e){let t=`hint`,n=1;for(let r of e){let e=k1(r.severity);e>n&&(n=e,t=r.severity)}return t}var j1=[f1,P.decorations.compute([f1],e=>{let{selected:t,panel:n}=e.field(f1);return!t||!n||t.from==t.to?Be.none:Be.set([p1.range(t.from,t.to)])}),he(m1,{hideOn:s1}),O1],M1=[Je(),Le(),We(),vK(),fe(),ve(),Ke(),te.allowMultipleSelections.of(!0),T(),ee(xe,{fallback:!0}),Re(),IG(),$G(),be(),e(),de(),s$(),je.of([...HG,...TJ,...X$,...LK,...j,...eK,...v1])];We(),vK(),ve(),ee(xe,{fallback:!0}),je.of([...TJ,...LK]);function N1(e,[t,n]){return Math.min(n,Math.max(t,e))}function P1(e){let t=L.useRef({value:e,previous:e});return L.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}var F1=Object.freeze({position:`absolute`,border:0,width:1,height:1,padding:0,margin:-1,overflow:`hidden`,clip:`rect(0, 0, 0, 0)`,whiteSpace:`nowrap`,wordWrap:`normal`}),I1=`VisuallyHidden`,L1=L.forwardRef((e,t)=>(0,R.jsx)(xT.span,{...e,ref:t,style:{...F1,...e.style}}));L1.displayName=I1;var R1=L1,z1=[` `,`Enter`,`ArrowUp`,`ArrowDown`],B1=[` `,`Enter`],V1=`Select`,[H1,U1,W1]=ZA(V1),[G1,K1]=fT(V1,[W1,TO]),q1=TO(),[J1,Y1]=G1(V1),[X1,Z1]=G1(V1),Q1=e=>{let{__scopeSelect:t,children:n,open:r,defaultOpen:i,onOpenChange:a,value:o,defaultValue:s,onValueChange:c,dir:l,name:u,autoComplete:d,disabled:f,required:p,form:m}=e,h=q1(t),[g,_]=L.useState(null),[v,y]=L.useState(null),[b,x]=L.useState(!1),S=$A(l),[C,w]=$O({prop:r,defaultProp:i??!1,onChange:a,caller:V1}),[T,E]=$O({prop:o,defaultProp:s,onChange:c,caller:V1}),ee=L.useRef(null),D=g?m||!!g.closest(`form`):!0,[O,k]=L.useState(new Set),A=Array.from(O).map(e=>e.props.value).join(`;`);return(0,R.jsx)(VO,{...h,children:(0,R.jsxs)(J1,{required:p,scope:t,trigger:g,onTriggerChange:_,valueNode:v,onValueNodeChange:y,valueNodeHasChildren:b,onValueNodeHasChildrenChange:x,contentId:oE(),value:T,onValueChange:E,open:C,onOpenChange:w,dir:S,triggerPointerDownPosRef:ee,disabled:f,children:[(0,R.jsx)(H1.Provider,{scope:t,children:(0,R.jsx)(X1,{scope:e.__scopeSelect,onNativeOptionAdd:L.useCallback(e=>{k(t=>new Set(t).add(e))},[]),onNativeOptionRemove:L.useCallback(e=>{k(t=>{let n=new Set(t);return n.delete(e),n})},[]),children:n})}),D?(0,R.jsxs)(q0,{"aria-hidden":!0,required:p,tabIndex:-1,name:u,autoComplete:d,value:T,onChange:e=>E(e.target.value),disabled:f,form:m,children:[T===void 0?(0,R.jsx)(`option`,{value:``}):null,Array.from(O)]},A):null]})})};Q1.displayName=V1;var $1=`SelectTrigger`,e0=L.forwardRef((e,t)=>{let{__scopeSelect:n,disabled:r=!1,...i}=e,a=q1(n),o=Y1($1,n),s=o.disabled||r,c=uT(t,o.onTriggerChange),l=U1(n),u=L.useRef(`touch`),[d,f,p]=Y0(e=>{let t=l().filter(e=>!e.disabled),n=X0(t,e,t.find(e=>e.value===o.value));n!==void 0&&o.onValueChange(n.value)}),m=e=>{s||(o.onOpenChange(!0),p()),e&&(o.triggerPointerDownPosRef.current={x:Math.round(e.pageX),y:Math.round(e.pageY)})};return(0,R.jsx)(HO,{asChild:!0,...a,children:(0,R.jsx)(xT.button,{type:`button`,role:`combobox`,"aria-controls":o.contentId,"aria-expanded":o.open,"aria-required":o.required,"aria-autocomplete":`none`,dir:o.dir,"data-state":o.open?`open`:`closed`,disabled:s,"data-disabled":s?``:void 0,"data-placeholder":J0(o.value)?``:void 0,...i,ref:c,onClick:sT(i.onClick,e=>{e.currentTarget.focus(),u.current!==`mouse`&&m(e)}),onPointerDown:sT(i.onPointerDown,e=>{u.current=e.pointerType;let t=e.target;t.hasPointerCapture(e.pointerId)&&t.releasePointerCapture(e.pointerId),e.button===0&&e.ctrlKey===!1&&e.pointerType===`mouse`&&(m(e),e.preventDefault())}),onKeyDown:sT(i.onKeyDown,e=>{let t=d.current!==``;!(e.ctrlKey||e.altKey||e.metaKey)&&e.key.length===1&&f(e.key),!(t&&e.key===` `)&&z1.includes(e.key)&&(m(),e.preventDefault())})})})});e0.displayName=$1;var t0=`SelectValue`,n0=L.forwardRef((e,t)=>{let{__scopeSelect:n,className:r,style:i,children:a,placeholder:o=``,...s}=e,c=Y1(t0,n),{onValueNodeHasChildrenChange:l}=c,u=a!==void 0,d=uT(t,c.onValueNodeChange);return rE(()=>{l(u)},[l,u]),(0,R.jsx)(xT.span,{...s,ref:d,style:{pointerEvents:`none`},children:J0(c.value)?(0,R.jsx)(R.Fragment,{children:o}):a})});n0.displayName=t0;var r0=`SelectIcon`,i0=L.forwardRef((e,t)=>{let{__scopeSelect:n,children:r,...i}=e;return(0,R.jsx)(xT.span,{"aria-hidden":!0,...i,ref:t,children:r||`▼`})});i0.displayName=r0;var a0=`SelectPortal`,o0=e=>(0,R.jsx)(KO,{asChild:!0,...e});o0.displayName=a0;var s0=`SelectContent`,c0=L.forwardRef((e,t)=>{let n=Y1(s0,e.__scopeSelect),[r,i]=L.useState();if(rE(()=>{i(new DocumentFragment)},[]),!n.open){let t=r;return t?gS.createPortal((0,R.jsx)(u0,{scope:e.__scopeSelect,children:(0,R.jsx)(H1.Slot,{scope:e.__scopeSelect,children:(0,R.jsx)(`div`,{children:e.children})})}),t):null}return(0,R.jsx)(m0,{...e,ref:t})});c0.displayName=s0;var l0=10,[u0,d0]=G1(s0),f0=`SelectContentImpl`,p0=mT(`SelectContent.RemoveScroll`),m0=L.forwardRef((e,t)=>{let{__scopeSelect:n,position:r=`item-aligned`,onCloseAutoFocus:i,onEscapeKeyDown:a,onPointerDownOutside:o,side:s,sideOffset:c,align:l,alignOffset:u,arrowPadding:d,collisionBoundary:f,collisionPadding:p,sticky:m,hideWhenDetached:h,avoidCollisions:g,..._}=e,v=Y1(s0,n),[y,b]=L.useState(null),[x,S]=L.useState(null),C=uT(t,e=>b(e)),[w,T]=L.useState(null),[E,ee]=L.useState(null),D=U1(n),[O,k]=L.useState(!1),A=L.useRef(!1);L.useEffect(()=>{if(y)return uk(y)},[y]),zT();let j=L.useCallback(e=>{let[t,...n]=D().map(e=>e.ref.current),[r]=n.slice(-1),i=document.activeElement;for(let n of e)if(n===i||(n?.scrollIntoView({block:`nearest`}),n===t&&x&&(x.scrollTop=0),n===r&&x&&(x.scrollTop=x.scrollHeight),n?.focus(),document.activeElement!==i))return},[D,x]),M=L.useCallback(()=>j([w,y]),[j,w,y]);L.useEffect(()=>{O&&M()},[O,M]);let{onOpenChange:N,triggerPointerDownPosRef:te}=v;L.useEffect(()=>{if(y){let e={x:0,y:0},t=t=>{e={x:Math.abs(Math.round(t.pageX)-(te.current?.x??0)),y:Math.abs(Math.round(t.pageY)-(te.current?.y??0))}},n=n=>{e.x<=10&&e.y<=10?n.preventDefault():y.contains(n.target)||N(!1),document.removeEventListener(`pointermove`,t),te.current=null};return te.current!==null&&(document.addEventListener(`pointermove`,t),document.addEventListener(`pointerup`,n,{capture:!0,once:!0})),()=>{document.removeEventListener(`pointermove`,t),document.removeEventListener(`pointerup`,n,{capture:!0})}}},[y,N,te]),L.useEffect(()=>{let e=()=>N(!1);return window.addEventListener(`blur`,e),window.addEventListener(`resize`,e),()=>{window.removeEventListener(`blur`,e),window.removeEventListener(`resize`,e)}},[N]);let[ne,re]=Y0(e=>{let t=D().filter(e=>!e.disabled),n=X0(t,e,t.find(e=>e.ref.current===document.activeElement));n&&setTimeout(()=>n.ref.current.focus())}),ie=L.useCallback((e,t,n)=>{let r=!A.current&&!n;(v.value!==void 0&&v.value===t||r)&&(T(e),r&&(A.current=!0))},[v.value]),ae=L.useCallback(()=>y?.focus(),[y]),oe=L.useCallback((e,t,n)=>{let r=!A.current&&!n;(v.value!==void 0&&v.value===t||r)&&ee(e)},[v.value]),P=r===`popper`?v0:g0,se=P===v0?{side:s,sideOffset:c,align:l,alignOffset:u,arrowPadding:d,collisionBoundary:f,collisionPadding:p,sticky:m,hideWhenDetached:h,avoidCollisions:g}:{};return(0,R.jsx)(u0,{scope:n,content:y,viewport:x,onViewportChange:S,itemRefCallback:ie,selectedItem:w,onItemLeave:ae,itemTextRefCallback:oe,focusSelectedItem:M,selectedItemText:E,position:r,isPositioned:O,searchRef:ne,children:(0,R.jsx)(yA,{as:p0,allowPinchZoom:!0,children:(0,R.jsx)(GT,{asChild:!0,trapped:v.open,onMountAutoFocus:e=>{e.preventDefault()},onUnmountAutoFocus:sT(i,e=>{v.trigger?.focus({preventScroll:!0}),e.preventDefault()}),children:(0,R.jsx)(jT,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:a,onPointerDownOutside:o,onFocusOutside:e=>e.preventDefault(),onDismiss:()=>v.onOpenChange(!1),children:(0,R.jsx)(P,{role:`listbox`,id:v.contentId,"data-state":v.open?`open`:`closed`,dir:v.dir,onContextMenu:e=>e.preventDefault(),..._,...se,onPlaced:()=>k(!0),ref:C,style:{display:`flex`,flexDirection:`column`,outline:`none`,..._.style},onKeyDown:sT(_.onKeyDown,e=>{let t=e.ctrlKey||e.altKey||e.metaKey;if(e.key===`Tab`&&e.preventDefault(),!t&&e.key.length===1&&re(e.key),[`ArrowUp`,`ArrowDown`,`Home`,`End`].includes(e.key)){let t=D().filter(e=>!e.disabled).map(e=>e.ref.current);if([`ArrowUp`,`End`].includes(e.key)&&(t=t.slice().reverse()),[`ArrowUp`,`ArrowDown`].includes(e.key)){let n=e.target,r=t.indexOf(n);t=t.slice(r+1)}setTimeout(()=>j(t)),e.preventDefault()}})})})})})})});m0.displayName=f0;var h0=`SelectItemAlignedPosition`,g0=L.forwardRef((e,t)=>{let{__scopeSelect:n,onPlaced:r,...i}=e,a=Y1(s0,n),o=d0(s0,n),[s,c]=L.useState(null),[l,u]=L.useState(null),d=uT(t,e=>u(e)),f=U1(n),p=L.useRef(!1),m=L.useRef(!0),{viewport:h,selectedItem:g,selectedItemText:_,focusSelectedItem:v}=o,y=L.useCallback(()=>{if(a.trigger&&a.valueNode&&s&&l&&h&&g&&_){let e=a.trigger.getBoundingClientRect(),t=l.getBoundingClientRect(),n=a.valueNode.getBoundingClientRect(),i=_.getBoundingClientRect();if(a.dir!==`rtl`){let r=i.left-t.left,a=n.left-r,o=e.left-a,c=e.width+o,l=Math.max(c,t.width),u=window.innerWidth-l0,d=N1(a,[l0,Math.max(l0,u-l)]);s.style.minWidth=c+`px`,s.style.left=d+`px`}else{let r=t.right-i.right,a=window.innerWidth-n.right-r,o=window.innerWidth-e.right-a,c=e.width+o,l=Math.max(c,t.width),u=window.innerWidth-l0,d=N1(a,[l0,Math.max(l0,u-l)]);s.style.minWidth=c+`px`,s.style.right=d+`px`}let o=f(),c=window.innerHeight-l0*2,u=h.scrollHeight,d=window.getComputedStyle(l),m=parseInt(d.borderTopWidth,10),v=parseInt(d.paddingTop,10),y=parseInt(d.borderBottomWidth,10),b=parseInt(d.paddingBottom,10),x=m+v+u+b+y,S=Math.min(g.offsetHeight*5,x),C=window.getComputedStyle(h),w=parseInt(C.paddingTop,10),T=parseInt(C.paddingBottom,10),E=e.top+e.height/2-l0,ee=c-E,D=g.offsetHeight/2,O=g.offsetTop+D,k=m+v+O,A=x-k;if(k<=E){let e=o.length>0&&g===o[o.length-1].ref.current;s.style.bottom=`0px`;let t=l.clientHeight-h.offsetTop-h.offsetHeight,n=k+Math.max(ee,D+(e?T:0)+t+y);s.style.height=n+`px`}else{let e=o.length>0&&g===o[0].ref.current;s.style.top=`0px`;let t=Math.max(E,m+h.offsetTop+(e?w:0)+D)+A;s.style.height=t+`px`,h.scrollTop=k-E+h.offsetTop}s.style.margin=`${l0}px 0`,s.style.minHeight=S+`px`,s.style.maxHeight=c+`px`,r?.(),requestAnimationFrame(()=>p.current=!0)}},[f,a.trigger,a.valueNode,s,l,h,g,_,a.dir,r]);rE(()=>y(),[y]);let[b,x]=L.useState();return rE(()=>{l&&x(window.getComputedStyle(l).zIndex)},[l]),(0,R.jsx)(y0,{scope:n,contentWrapper:s,shouldExpandOnScrollRef:p,onScrollButtonChange:L.useCallback(e=>{e&&m.current===!0&&(y(),v?.(),m.current=!1)},[y,v]),children:(0,R.jsx)(`div`,{ref:c,style:{display:`flex`,flexDirection:`column`,position:`fixed`,zIndex:b},children:(0,R.jsx)(xT.div,{...i,ref:d,style:{boxSizing:`border-box`,maxHeight:`100%`,...i.style}})})})});g0.displayName=h0;var _0=`SelectPopperPosition`,v0=L.forwardRef((e,t)=>{let{__scopeSelect:n,align:r=`start`,collisionPadding:i=l0,...a}=e,o=q1(n);return(0,R.jsx)(UO,{...o,...a,ref:t,align:r,collisionPadding:i,style:{boxSizing:`border-box`,...a.style,"--radix-select-content-transform-origin":`var(--radix-popper-transform-origin)`,"--radix-select-content-available-width":`var(--radix-popper-available-width)`,"--radix-select-content-available-height":`var(--radix-popper-available-height)`,"--radix-select-trigger-width":`var(--radix-popper-anchor-width)`,"--radix-select-trigger-height":`var(--radix-popper-anchor-height)`}})});v0.displayName=_0;var[y0,b0]=G1(s0,{}),x0=`SelectViewport`,S0=L.forwardRef((e,t)=>{let{__scopeSelect:n,nonce:r,...i}=e,a=d0(x0,n),o=b0(x0,n),s=uT(t,a.onViewportChange),c=L.useRef(0);return(0,R.jsxs)(R.Fragment,{children:[(0,R.jsx)(`style`,{dangerouslySetInnerHTML:{__html:`[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}`},nonce:r}),(0,R.jsx)(H1.Slot,{scope:n,children:(0,R.jsx)(xT.div,{"data-radix-select-viewport":``,role:`presentation`,...i,ref:s,style:{position:`relative`,flex:1,overflow:`hidden auto`,...i.style},onScroll:sT(i.onScroll,e=>{let t=e.currentTarget,{contentWrapper:n,shouldExpandOnScrollRef:r}=o;if(r?.current&&n){let e=Math.abs(c.current-t.scrollTop);if(e>0){let r=window.innerHeight-l0*2,i=parseFloat(n.style.minHeight),a=parseFloat(n.style.height),o=Math.max(i,a);if(o<r){let i=o+e,a=Math.min(r,i),s=i-a;n.style.height=a+`px`,n.style.bottom===`0px`&&(t.scrollTop=s>0?s:0,n.style.justifyContent=`flex-end`)}}}c.current=t.scrollTop})})})]})});S0.displayName=x0;var C0=`SelectGroup`,[w0,T0]=G1(C0),E0=L.forwardRef((e,t)=>{let{__scopeSelect:n,...r}=e,i=oE();return(0,R.jsx)(w0,{scope:n,id:i,children:(0,R.jsx)(xT.div,{role:`group`,"aria-labelledby":i,...r,ref:t})})});E0.displayName=C0;var D0=`SelectLabel`,O0=L.forwardRef((e,t)=>{let{__scopeSelect:n,...r}=e,i=T0(D0,n);return(0,R.jsx)(xT.div,{id:i.id,...r,ref:t})});O0.displayName=D0;var k0=`SelectItem`,[A0,j0]=G1(k0),M0=L.forwardRef((e,t)=>{let{__scopeSelect:n,value:r,disabled:i=!1,textValue:a,...o}=e,s=Y1(k0,n),c=d0(k0,n),l=s.value===r,[u,d]=L.useState(a??``),[f,p]=L.useState(!1),m=uT(t,e=>c.itemRefCallback?.(e,r,i)),h=oE(),g=L.useRef(`touch`),_=()=>{i||(s.onValueChange(r),s.onOpenChange(!1))};if(r===``)throw Error(`A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.`);return(0,R.jsx)(A0,{scope:n,value:r,disabled:i,textId:h,isSelected:l,onItemTextChange:L.useCallback(e=>{d(t=>t||(e?.textContent??``).trim())},[]),children:(0,R.jsx)(H1.ItemSlot,{scope:n,value:r,disabled:i,textValue:u,children:(0,R.jsx)(xT.div,{role:`option`,"aria-labelledby":h,"data-highlighted":f?``:void 0,"aria-selected":l&&f,"data-state":l?`checked`:`unchecked`,"aria-disabled":i||void 0,"data-disabled":i?``:void 0,tabIndex:i?void 0:-1,...o,ref:m,onFocus:sT(o.onFocus,()=>p(!0)),onBlur:sT(o.onBlur,()=>p(!1)),onClick:sT(o.onClick,()=>{g.current!==`mouse`&&_()}),onPointerUp:sT(o.onPointerUp,()=>{g.current===`mouse`&&_()}),onPointerDown:sT(o.onPointerDown,e=>{g.current=e.pointerType}),onPointerMove:sT(o.onPointerMove,e=>{g.current=e.pointerType,i?c.onItemLeave?.():g.current===`mouse`&&e.currentTarget.focus({preventScroll:!0})}),onPointerLeave:sT(o.onPointerLeave,e=>{e.currentTarget===document.activeElement&&c.onItemLeave?.()}),onKeyDown:sT(o.onKeyDown,e=>{c.searchRef?.current!==``&&e.key===` `||(B1.includes(e.key)&&_(),e.key===` `&&e.preventDefault())})})})})});M0.displayName=k0;var N0=`SelectItemText`,P0=L.forwardRef((e,t)=>{let{__scopeSelect:n,className:r,style:i,...a}=e,o=Y1(N0,n),s=d0(N0,n),c=j0(N0,n),l=Z1(N0,n),[u,d]=L.useState(null),f=uT(t,e=>d(e),c.onItemTextChange,e=>s.itemTextRefCallback?.(e,c.value,c.disabled)),p=u?.textContent,m=L.useMemo(()=>(0,R.jsx)(`option`,{value:c.value,disabled:c.disabled,children:p},c.value),[c.disabled,c.value,p]),{onNativeOptionAdd:h,onNativeOptionRemove:g}=l;return rE(()=>(h(m),()=>g(m)),[h,g,m]),(0,R.jsxs)(R.Fragment,{children:[(0,R.jsx)(xT.span,{id:c.textId,...a,ref:f}),c.isSelected&&o.valueNode&&!o.valueNodeHasChildren?gS.createPortal(a.children,o.valueNode):null]})});P0.displayName=N0;var F0=`SelectItemIndicator`,I0=L.forwardRef((e,t)=>{let{__scopeSelect:n,...r}=e;return j0(F0,n).isSelected?(0,R.jsx)(xT.span,{"aria-hidden":!0,...r,ref:t}):null});I0.displayName=F0;var L0=`SelectScrollUpButton`,R0=L.forwardRef((e,t)=>{let n=d0(L0,e.__scopeSelect),r=b0(L0,e.__scopeSelect),[i,a]=L.useState(!1),o=uT(t,r.onScrollButtonChange);return rE(()=>{if(n.viewport&&n.isPositioned){let e=function(){a(t.scrollTop>0)},t=n.viewport;return e(),t.addEventListener(`scroll`,e),()=>t.removeEventListener(`scroll`,e)}},[n.viewport,n.isPositioned]),i?(0,R.jsx)(V0,{...e,ref:o,onAutoScroll:()=>{let{viewport:e,selectedItem:t}=n;e&&t&&(e.scrollTop-=t.offsetHeight)}}):null});R0.displayName=L0;var z0=`SelectScrollDownButton`,B0=L.forwardRef((e,t)=>{let n=d0(z0,e.__scopeSelect),r=b0(z0,e.__scopeSelect),[i,a]=L.useState(!1),o=uT(t,r.onScrollButtonChange);return rE(()=>{if(n.viewport&&n.isPositioned){let e=function(){let e=t.scrollHeight-t.clientHeight;a(Math.ceil(t.scrollTop)<e)},t=n.viewport;return e(),t.addEventListener(`scroll`,e),()=>t.removeEventListener(`scroll`,e)}},[n.viewport,n.isPositioned]),i?(0,R.jsx)(V0,{...e,ref:o,onAutoScroll:()=>{let{viewport:e,selectedItem:t}=n;e&&t&&(e.scrollTop+=t.offsetHeight)}}):null});B0.displayName=z0;var V0=L.forwardRef((e,t)=>{let{__scopeSelect:n,onAutoScroll:r,...i}=e,a=d0(`SelectScrollButton`,n),o=L.useRef(null),s=U1(n),c=L.useCallback(()=>{o.current!==null&&(window.clearInterval(o.current),o.current=null)},[]);return L.useEffect(()=>()=>c(),[c]),rE(()=>{s().find(e=>e.ref.current===document.activeElement)?.ref.current?.scrollIntoView({block:`nearest`})},[s]),(0,R.jsx)(xT.div,{"aria-hidden":!0,...i,ref:t,style:{flexShrink:0,...i.style},onPointerDown:sT(i.onPointerDown,()=>{o.current===null&&(o.current=window.setInterval(r,50))}),onPointerMove:sT(i.onPointerMove,()=>{a.onItemLeave?.(),o.current===null&&(o.current=window.setInterval(r,50))}),onPointerLeave:sT(i.onPointerLeave,()=>{c()})})}),H0=`SelectSeparator`,U0=L.forwardRef((e,t)=>{let{__scopeSelect:n,...r}=e;return(0,R.jsx)(xT.div,{"aria-hidden":!0,...r,ref:t})});U0.displayName=H0;var W0=`SelectArrow`,G0=L.forwardRef((e,t)=>{let{__scopeSelect:n,...r}=e,i=q1(n),a=Y1(W0,n),o=d0(W0,n);return a.open&&o.position===`popper`?(0,R.jsx)(WO,{...i,...r,ref:t}):null});G0.displayName=W0;var K0=`SelectBubbleInput`,q0=L.forwardRef(({__scopeSelect:e,value:t,...n},r)=>{let i=L.useRef(null),a=uT(r,i),o=P1(t);return L.useEffect(()=>{let e=i.current;if(!e)return;let n=window.HTMLSelectElement.prototype,r=Object.getOwnPropertyDescriptor(n,`value`).set;if(o!==t&&r){let n=new Event(`change`,{bubbles:!0});r.call(e,t),e.dispatchEvent(n)}},[o,t]),(0,R.jsx)(xT.select,{...n,style:{...F1,...n.style},ref:a,defaultValue:t})});q0.displayName=K0;function J0(e){return e===``||e===void 0}function Y0(e){let t=CT(e),n=L.useRef(``),r=L.useRef(0),i=L.useCallback(e=>{let i=n.current+e;t(i),(function e(t){n.current=t,window.clearTimeout(r.current),t!==``&&(r.current=window.setTimeout(()=>e(``),1e3))})(i)},[t]),a=L.useCallback(()=>{n.current=``,window.clearTimeout(r.current)},[]);return L.useEffect(()=>()=>window.clearTimeout(r.current),[]),[n,i,a]}function X0(e,t,n){let r=t.length>1&&Array.from(t).every(e=>e===t[0])?t[0]:t,i=n?e.indexOf(n):-1,a=Z0(e,Math.max(i,0));r.length===1&&(a=a.filter(e=>e!==n));let o=a.find(e=>e.textValue.toLowerCase().startsWith(r.toLowerCase()));return o===n?void 0:o}function Z0(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var Q0=Q1,$0=e0,e2=n0,t2=i0,n2=o0,r2=c0,i2=S0,a2=M0,o2=P0,s2=U0,[c2,l2]=fT(`Tooltip`,[TO]),u2=TO(),d2=`TooltipProvider`,f2=700,p2=`tooltip.open`,[m2,h2]=c2(d2),g2=e=>{let{__scopeTooltip:t,delayDuration:n=f2,skipDelayDuration:r=300,disableHoverableContent:i=!1,children:a}=e,o=L.useRef(!0),s=L.useRef(!1),c=L.useRef(0);return L.useEffect(()=>{let e=c.current;return()=>window.clearTimeout(e)},[]),(0,R.jsx)(m2,{scope:t,isOpenDelayedRef:o,delayDuration:n,onOpen:L.useCallback(()=>{window.clearTimeout(c.current),o.current=!1},[]),onClose:L.useCallback(()=>{window.clearTimeout(c.current),c.current=window.setTimeout(()=>o.current=!0,r)},[r]),isPointerInTransitRef:s,onPointerInTransitChange:L.useCallback(e=>{s.current=e},[]),disableHoverableContent:i,children:a})};g2.displayName=d2;var _2=`Tooltip`,[v2,y2]=c2(_2),b2=e=>{let{__scopeTooltip:t,children:n,open:r,defaultOpen:i,onOpenChange:a,disableHoverableContent:o,delayDuration:s}=e,c=h2(_2,e.__scopeTooltip),l=u2(t),[u,d]=L.useState(null),f=oE(),p=L.useRef(0),m=o??c.disableHoverableContent,h=s??c.delayDuration,g=L.useRef(!1),[_,v]=$O({prop:r,defaultProp:i??!1,onChange:e=>{e?(c.onOpen(),document.dispatchEvent(new CustomEvent(p2))):c.onClose(),a?.(e)},caller:_2}),y=L.useMemo(()=>_?g.current?`delayed-open`:`instant-open`:`closed`,[_]),b=L.useCallback(()=>{window.clearTimeout(p.current),p.current=0,g.current=!1,v(!0)},[v]),x=L.useCallback(()=>{window.clearTimeout(p.current),p.current=0,v(!1)},[v]),S=L.useCallback(()=>{window.clearTimeout(p.current),p.current=window.setTimeout(()=>{g.current=!0,v(!0),p.current=0},h)},[h,v]);return L.useEffect(()=>()=>{p.current&&=(window.clearTimeout(p.current),0)},[]),(0,R.jsx)(VO,{...l,children:(0,R.jsx)(v2,{scope:t,contentId:f,open:_,stateAttribute:y,trigger:u,onTriggerChange:d,onTriggerEnter:L.useCallback(()=>{c.isOpenDelayedRef.current?S():b()},[c.isOpenDelayedRef,S,b]),onTriggerLeave:L.useCallback(()=>{m?x():(window.clearTimeout(p.current),p.current=0)},[x,m]),onOpen:b,onClose:x,disableHoverableContent:m,children:n})})};b2.displayName=_2;var x2=`TooltipTrigger`,S2=L.forwardRef((e,t)=>{let{__scopeTooltip:n,...r}=e,i=y2(x2,n),a=h2(x2,n),o=u2(n),s=uT(t,L.useRef(null),i.onTriggerChange),c=L.useRef(!1),l=L.useRef(!1),u=L.useCallback(()=>c.current=!1,[]);return L.useEffect(()=>()=>document.removeEventListener(`pointerup`,u),[u]),(0,R.jsx)(HO,{asChild:!0,...o,children:(0,R.jsx)(xT.button,{"aria-describedby":i.open?i.contentId:void 0,"data-state":i.stateAttribute,...r,ref:s,onPointerMove:sT(e.onPointerMove,e=>{e.pointerType!==`touch`&&!l.current&&!a.isPointerInTransitRef.current&&(i.onTriggerEnter(),l.current=!0)}),onPointerLeave:sT(e.onPointerLeave,()=>{i.onTriggerLeave(),l.current=!1}),onPointerDown:sT(e.onPointerDown,()=>{i.open&&i.onClose(),c.current=!0,document.addEventListener(`pointerup`,u,{once:!0})}),onFocus:sT(e.onFocus,()=>{c.current||i.onOpen()}),onBlur:sT(e.onBlur,i.onClose),onClick:sT(e.onClick,i.onClose)})})});S2.displayName=x2;var C2=`TooltipPortal`,[w2,T2]=c2(C2,{forceMount:void 0}),E2=e=>{let{__scopeTooltip:t,forceMount:n,children:r,container:i}=e,a=y2(C2,t);return(0,R.jsx)(w2,{scope:t,forceMount:n,children:(0,R.jsx)(JO,{present:n||a.open,children:(0,R.jsx)(KO,{asChild:!0,container:i,children:r})})})};E2.displayName=C2;var D2=`TooltipContent`,O2=L.forwardRef((e,t)=>{let n=T2(D2,e.__scopeTooltip),{forceMount:r=n.forceMount,side:i=`top`,...a}=e,o=y2(D2,e.__scopeTooltip);return(0,R.jsx)(JO,{present:r||o.open,children:o.disableHoverableContent?(0,R.jsx)(N2,{side:i,...a,ref:t}):(0,R.jsx)(k2,{side:i,...a,ref:t})})}),k2=L.forwardRef((e,t)=>{let n=y2(D2,e.__scopeTooltip),r=h2(D2,e.__scopeTooltip),i=L.useRef(null),a=uT(t,i),[o,s]=L.useState(null),{trigger:c,onClose:l}=n,u=i.current,{onPointerInTransitChange:d}=r,f=L.useCallback(()=>{s(null),d(!1)},[d]),p=L.useCallback((e,t)=>{let n=e.currentTarget,r={x:e.clientX,y:e.clientY},i=L2(r,I2(r,n.getBoundingClientRect())),a=R2(t.getBoundingClientRect());s(B2([...i,...a])),d(!0)},[d]);return L.useEffect(()=>()=>f(),[f]),L.useEffect(()=>{if(c&&u){let e=e=>p(e,u),t=e=>p(e,c);return c.addEventListener(`pointerleave`,e),u.addEventListener(`pointerleave`,t),()=>{c.removeEventListener(`pointerleave`,e),u.removeEventListener(`pointerleave`,t)}}},[c,u,p,f]),L.useEffect(()=>{if(o){let e=e=>{let t=e.target,n={x:e.clientX,y:e.clientY},r=c?.contains(t)||u?.contains(t),i=!z2(n,o);r?f():i&&(f(),l())};return document.addEventListener(`pointermove`,e),()=>document.removeEventListener(`pointermove`,e)}},[c,u,o,l,f]),(0,R.jsx)(N2,{...e,ref:a})}),[A2,j2]=c2(_2,{isInside:!1}),M2=_T(`TooltipContent`),N2=L.forwardRef((e,t)=>{let{__scopeTooltip:n,children:r,"aria-label":i,onEscapeKeyDown:a,onPointerDownOutside:o,...s}=e,c=y2(D2,n),l=u2(n),{onClose:u}=c;return L.useEffect(()=>(document.addEventListener(p2,u),()=>document.removeEventListener(p2,u)),[u]),L.useEffect(()=>{if(c.trigger){let e=e=>{e.target?.contains(c.trigger)&&u()};return window.addEventListener(`scroll`,e,{capture:!0}),()=>window.removeEventListener(`scroll`,e,{capture:!0})}},[c.trigger,u]),(0,R.jsx)(jT,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:a,onPointerDownOutside:o,onFocusOutside:e=>e.preventDefault(),onDismiss:u,children:(0,R.jsxs)(UO,{"data-state":c.stateAttribute,...l,...s,ref:t,style:{...s.style,"--radix-tooltip-content-transform-origin":`var(--radix-popper-transform-origin)`,"--radix-tooltip-content-available-width":`var(--radix-popper-available-width)`,"--radix-tooltip-content-available-height":`var(--radix-popper-available-height)`,"--radix-tooltip-trigger-width":`var(--radix-popper-anchor-width)`,"--radix-tooltip-trigger-height":`var(--radix-popper-anchor-height)`},children:[(0,R.jsx)(M2,{children:r}),(0,R.jsx)(A2,{scope:n,isInside:!0,children:(0,R.jsx)(R1,{id:c.contentId,role:`tooltip`,children:i||r})})]})})});O2.displayName=D2;var P2=`TooltipArrow`,F2=L.forwardRef((e,t)=>{let{__scopeTooltip:n,...r}=e,i=u2(n);return j2(P2,n).isInside?null:(0,R.jsx)(WO,{...i,...r,ref:t})});F2.displayName=P2;function I2(e,t){let n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),i=Math.abs(t.right-e.x),a=Math.abs(t.left-e.x);switch(Math.min(n,r,i,a)){case a:return`left`;case i:return`right`;case n:return`top`;case r:return`bottom`;default:throw Error(`unreachable`)}}function L2(e,t,n=5){let r=[];switch(t){case`top`:r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case`bottom`:r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case`left`:r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case`right`:r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return r}function R2(e){let{top:t,right:n,bottom:r,left:i}=e;return[{x:i,y:t},{x:n,y:t},{x:n,y:r},{x:i,y:r}]}function z2(e,t){let{x:n,y:r}=e,i=!1;for(let e=0,a=t.length-1;e<t.length;a=e++){let o=t[e],s=t[a],c=o.x,l=o.y,u=s.x,d=s.y;l>r!=d>r&&n<(u-c)*(r-l)/(d-l)+c&&(i=!i)}return i}function B2(e){let t=e.slice();return t.sort((e,t)=>e.x<t.x?-1:e.x>t.x?1:e.y<t.y?-1:+(e.y>t.y)),V2(t)}function V2(e){if(e.length<=1)return e.slice();let t=[];for(let n=0;n<e.length;n++){let r=e[n];for(;t.length>=2;){let e=t[t.length-1],n=t[t.length-2];if((e.x-n.x)*(r.y-n.y)>=(e.y-n.y)*(r.x-n.x))t.pop();else break}t.push(r)}t.pop();let n=[];for(let t=e.length-1;t>=0;t--){let r=e[t];for(;n.length>=2;){let e=n[n.length-1],t=n[n.length-2];if((e.x-t.x)*(r.y-t.y)>=(e.y-t.y)*(r.x-t.x))n.pop();else break}n.push(r)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}var H2=g2,U2=b2,W2=S2,G2=E2,K2=O2,q2=F2,J2=L.forwardRef(({title:e,children:t},n)=>{let r=xn(rx);return L.createElement(H2,{delayDuration:100},L.createElement(U2,null,L.createElement(W2,{ref:n,asChild:!0},L.createElement(`span`,{className:J.tooltipTrigger},t)),L.createElement(G2,{container:r?.current},L.createElement(K2,{className:(0,jC.default)(J.tooltipContent),sideOffset:10},e))))}),Y2=L.forwardRef(({children:e,className:t,...n},r)=>L.createElement(a2,{...n,ref:r,className:(0,jC.default)(t,J.selectItem)},L.createElement(o2,null,e))),X2=({title:e,placeholder:t,className:n})=>{let[r,i]=Sn(Mb,xx);return L.createElement(J2,{title:e},L.createElement($0,{"aria-label":t,className:(0,jC.default)(J.selectTrigger,n),"data-toolbar-item":!0,disabled:r},L.createElement(e2,{placeholder:t}),L.createElement(t2,{className:J.selectDropdownArrow},i(`arrow_drop_down`))))},Z2=({children:e,className:t=J.selectContainer})=>{let n=xn(rx);return L.createElement(n2,{container:n?.current},L.createElement(r2,{className:(0,jC.default)(t,`mdxeditor-select-content`),onCloseAutoFocus:e=>{e.preventDefault()},position:`popper`},L.createElement(i2,{"data-editor-dropdown":!0,style:{maxHeight:`var(--radix-select-content-available-height)`}},e)))},Q2=e=>L.createElement(Q0,{value:e.value||``,onValueChange:e.onChange,disabled:e.disabled},L.createElement(X2,{title:e.triggerTitle,placeholder:e.placeholder}),L.createElement(Z2,null,e.items.map((e,t)=>e===`separator`?L.createElement(s2,{key:t}):L.createElement(Y2,{key:t,value:e.value},e.label)))),$2=({language:e,nodeKey:t,code:n,focusEmitter:r})=>{let i=Xx(),{parentEditor:a,lexicalNode:o}=nW(),[s,c,l,u,d]=Sn(Mb,a4,o4,xx,r4),f=SQ(t,`codeblock`,e,r),{setCode:p}=nW(),m=L.useRef(null),h=L.useRef(null),{value:g,items:_}=L.useMemo(()=>n4(d,e),[d,e]),v=L.useRef(p);return v.current=p,f.current={getCodemirror:()=>m.current},L.useEffect(()=>{let t=h.current;return(async()=>{let r=[...c,M1,qQ,Je(),je.of([EJ]),P.lineWrapping,P.updateListener.of(({state:e})=>{v.current(e.doc.toString())}),P.domEventHandlers({focus:()=>{a.update(()=>{Sc(null)})}})];if(s&&r.push(te.readOnly.of(!0)),e!==``){let t=d.keyMap[e]??e,n=d.supportMap[t];if(n)r.push(n.extension);else if(l){let t=wQ.find(t=>t.name===e||t.alias.includes(e)||t.extensions.includes(e));if(t)try{let e=await t.load();r.push(e.extension)}catch{console.warn(`failed to load language support for`,e)}}}t.innerHTML=``,m.current=new P({parent:t,state:te.create({doc:n,extensions:r})}),t.addEventListener(`keydown`,e4)})(),()=>{var e;(e=m.current)==null||e.destroy(),m.current=null,t.removeEventListener(`keydown`,e4)}},[s,e,...c]),L.createElement(`div`,{className:J.codeMirrorWrapper},L.createElement(`div`,{className:J.codeMirrorToolbar},L.createElement(Q2,{disabled:s,value:g,onChange:e=>{a.update(()=>{o.setLanguage(e===`__EMPTY_VALUE__`?``:e),setTimeout(()=>{a.update(()=>{o.getLatest().select()})})})},triggerTitle:i(`codeBlock.selectLanguage`,`Select code block language`),placeholder:i(`codeBlock.inlineLanguage`,`Language`),items:_}),L.createElement(`button`,{className:J.iconButton,type:`button`,disabled:s,title:i(`codeblock.delete`,`Delete code block`),onClick:e=>{e.preventDefault(),a.update(()=>{o.remove()})}},u(`delete_small`))),L.createElement(`div`,{ref:h}))};function e4(e){e.stopPropagation()}function t4(e){let t=[],n={},r={};if(Array.isArray(e))for(let i of e){let e=i.alias?.[0]??i.name.toLowerCase(),a=e||`__EMPTY_VALUE__`;if(t.push({value:a,label:i.name}),n[e]=a,i.alias)for(let e of i.alias)n[e]=a;if(i.extensions)for(let e of i.extensions)n[e]=a;n[i.name.toLowerCase()]=a,i.support&&(r[a]=i.support)}else{let r={};for(let[i,a]of Object.entries(e))a in r||(r[a]=i,t.push({value:i||`__EMPTY_VALUE__`,label:a})),n[i]=r[a]||`__EMPTY_VALUE__`}return{items:t,keyMap:n,supportMap:r}}function n4(e,t){let n=e.keyMap[t]??t;return!n||e.items.some(e=>e.value===n)?{value:n,items:e.items}:{value:n,items:[...e.items,{value:n,label:t}]}}var r4=z(t4({js:`JavaScript`,ts:`TypeScript`,tsx:`TypeScript (React)`,jsx:`JavaScript (React)`,css:`CSS`})),i4=_n(e=>{e.link(e.pipe(i4,wn(({language:e,code:t})=>({code:t,language:e,meta:``}))),uW)}),a4=z([]),o4=z(!0),s4=jn({update(e,t){e.pubIn({[r4]:t4(t?.codeBlockLanguages??{}),[a4]:t?.codeMirrorExtensions??[],[o4]:t?.autoLoadLanguageSupport??!0})},init(e,t){let n=t4(t?.codeBlockLanguages??{});e.pubIn({[r4]:n,[a4]:t?.codeMirrorExtensions??[],[dW]:c4(),[o4]:t?.autoLoadLanguageSupport??!0})}});function c4(e){return{match(e,t){return!t},priority:1,Editor:$2}}function l4({url:e,title:t,text:n,onSubmit:r,onCancel:i,linkAutocompleteSuggestions:a,showLinkTitleField:o,showAnchorTextField:s}){let{register:c,handleSubmit:l,control:u,setValue:d,reset:f}=IF({values:{url:e,title:t,text:n}}),p=Xx();return L.createElement(`form`,{onSubmit:e=>{l(r)(e),e.stopPropagation(),e.preventDefault()},onReset:e=>{e.stopPropagation(),i()},onKeyDown:e=>{e.key===`Escape`&&(e.stopPropagation(),i())},className:(0,jC.default)(J.multiFieldForm,J.linkDialogEditForm)},L.createElement(`div`,{className:J.formField},L.createElement(`label`,{htmlFor:`link-url`},p(`createLink.url`,`URL`)),L.createElement(DR,{register:c,initialInputValue:e,inputName:`url`,suggestions:a,setValue:d,control:u,placeholder:p(`createLink.urlPlaceholder`,`Select or paste an URL`),autofocus:!0})),s?L.createElement(`div`,{className:J.formField},L.createElement(`label`,{htmlFor:`link-text`,title:p(`createLink.textTooltip`,`The text to be displayed for the link`)},p(`createLink.text`,`Anchor text`)),L.createElement(`input`,{id:`link-text`,className:J.textInput,size:40,...c(`text`)})):null,o?L.createElement(`div`,{className:J.formField},L.createElement(`label`,{htmlFor:`link-title`,title:p(`createLink.titleTooltip`,`The link's title attribute, shown on hover`)},p(`createLink.title`,`Link title`)),L.createElement(`input`,{id:`link-title`,className:J.textInput,size:40,...c(`title`)})):null,L.createElement(`div`,{style:{display:`flex`,justifyContent:`flex-end`,gap:`var(--spacing-2)`}},L.createElement(`button`,{type:`submit`,title:p(`createLink.saveTooltip`,`Set URL`),"aria-label":p(`createLink.saveTooltip`,`Set URL`),className:(0,jC.default)(J.primaryButton)},p(`dialogControls.save`,`Save`)),L.createElement(`button`,{type:`reset`,title:p(`createLink.cancelTooltip`,`Cancel change`),"aria-label":p(`createLink.cancelTooltip`,`Cancel change`),className:(0,jC.default)(J.secondaryButton)},p(`dialogControls.cancel`,`Cancel`))))}var u4=()=>{let[e,t,n,r,i,a,o]=Sn(rx,kb,xx,m4,b4,x4,w4),s=Cn(p4),c=Cn(h4),l=Cn(g4),u=Cn(_4),d=Cn(v4);L.useEffect(()=>{let e=()=>{t?.getEditorState().read(()=>{s(!0)})};return window.addEventListener(`resize`,e),window.addEventListener(`scroll`,e),()=>{window.removeEventListener(`resize`,e),window.removeEventListener(`scroll`,e)}},[t,s]);let[f,p]=L.useState(!1),m=Xx();if(r.type===`inactive`)return null;let h=r.rectangle,g=r.type===`preview`&&r.url.startsWith(`http`);return L.createElement(KA,{open:!0},L.createElement(qA,{"data-visible":r.type===`edit`,className:J.linkDialogAnchor,style:{top:`${h.top}px`,left:`${h.left}px`,width:`${h.width}px`,height:`${h.height}px`}}),L.createElement(JA,{container:e?.current},L.createElement(YA,{className:(0,jC.default)(J.linkDialogPopoverContent),sideOffset:5,onOpenAutoFocus:e=>{e.preventDefault()},key:r.linkNodeKey},r.type===`edit`&&L.createElement(l4,{url:r.url,title:r.title,text:r.text,onSubmit:c,onCancel:l.bind(null),linkAutocompleteSuggestions:i,showLinkTitleField:o,showAnchorTextField:r.withAnchorText}),r.type===`preview`&&L.createElement(L.Fragment,null,L.createElement(`a`,{className:J.linkDialogPreviewAnchor,href:r.url,...g?{target:`_blank`,rel:`noreferrer`}:{},onClick:e=>{a!==null&&(e.preventDefault(),a(r.url))},title:g?m(`linkPreview.open`,`Open {{url}} in new window`,{url:r.url}):r.url},L.createElement(`span`,null,r.url),g&&n(`open_in_new`)),L.createElement(d4,{onClick:()=>{u()},title:m(`linkPreview.edit`,`Edit link URL`),"aria-label":m(`linkPreview.edit`,`Edit link URL`)},n(`edit`)),L.createElement(H2,null,L.createElement(U2,{open:f},L.createElement(W2,{asChild:!0},L.createElement(d4,{title:m(`linkPreview.copyToClipboard`,`Copy to clipboard`),"aria-label":m(`linkPreview.copyToClipboard`,`Copy to clipboard`),onClick:()=>{window.navigator.clipboard.writeText(r.url).then(()=>{p(!0),setTimeout(()=>{p(!1)},1e3)})}},n(f?`check`:`content_copy`))),L.createElement(G2,{container:e?.current},L.createElement(K2,{className:(0,jC.default)(J.tooltipContent),sideOffset:5},m(`linkPreview.copied`,`Copied!`),L.createElement(q2,null))))),L.createElement(d4,{title:m(`linkPreview.remove`,`Remove link`),"aria-label":m(`linkPreview.remove`,`Remove link`),onClick:()=>{d()}},n(`link_off`))),L.createElement(XA,{className:J.popoverArrow}))))},d4=L.forwardRef(({className:e,...t},n)=>L.createElement(`button`,{className:(0,jC.default)(J.actionButton,e),ref:n,...t}));function f4(e){if(!e)return null;let t=TC(e);if(t===null)return null;let n=t.getParent();return DS(n)?n:DS(t)?t:null}var p4=_n(),m4=z({type:`inactive`},e=>{e.pub(Tx,t=>t.registerCommand(Yi,()=>e.getValue(m4).type===`preview`?(e.pub(m4,{type:`inactive`}),!0):!1,1)),e.sub(e.pipe(Ux),t=>{t!==`rich-text`&&e.pub(m4,{type:`inactive`})}),e.pub(Tx,t=>t.registerCommand(zi,t=>t.key===`k`&&(HC?t.metaKey:t.ctrlKey)&&!e.getValue(Mb)&&U(W())?(e.pub(y4),t.stopPropagation(),t.preventDefault(),!0):!1,3)),e.sub(e.pipe(_4,Tn(m4,kb)),([,t,n])=>{if(t.type===`preview`)setTimeout(()=>{n?.getEditorState().read(()=>{let n=mc(t.linkNodeKey),r=DS(n)?n.getTextContent().length>0&&n.getChildrenSize()<=1:!1,i=r&&n?n.getTextContent():``;e.pub(m4,{type:`edit`,initialUrl:t.url,url:t.url,title:t.title,text:i,withAnchorText:r,linkNodeKey:t.linkNodeKey,rectangle:t.rectangle})})});else throw Error(`Cannot switch to edit mode when not in preview mode`)}),e.sub(e.pipe(h4,Tn(kb,m4,Bb)),([t,n,r,i])=>{let a=t.text?.trim()??``,o=t.url?.trim()??``,s=t.title?.trim()??``;if(o!==``){if(i?.isCollapsed()){let e=a||s||o;n?.update(()=>{let t=f4(i);if(!t){let t=ES(o,{title:s});t.append(ho(e)),Jo([t]),t.select()}else if(AS(t)){let e=ES(o,{title:s});e.append(ho(a)),t.replace(e),e.select()}else t.setURL(o),t.setTitle(s),C4(t.getFirstChild(),a)},{discrete:!0})}else n?.update(()=>{C4(i?.anchor.getNode(),a)}),n?.dispatchCommand(jS,{url:o,title:s});e.pub(m4,{type:`preview`,linkNodeKey:r.linkNodeKey,rectangle:r.rectangle,title:s,url:o})}else r.type===`edit`&&r.initialUrl!==``&&n?.dispatchCommand(jS,null),e.pub(m4,{type:`inactive`})}),e.link(e.pipe(g4,Tn(m4,kb),wn(([,e,t])=>{if(e.type===`edit`)return t?.focus(),e.initialUrl===``?{type:`inactive`}:{type:`preview`,url:e.initialUrl,linkNodeKey:e.linkNodeKey,rectangle:e.rectangle};throw Error(`Cannot cancel edit when not in edit mode`)})),m4),e.link(e.pipe(e.combine(Bb,p4),Tn(kb,m4,Mb),wn(([[e],t,n,r])=>{if(U(e)&&t&&!r){let n=f4(e);if(!e.isCollapsed())return{type:`inactive`};if(n){let e=kC(t);return e?{type:`preview`,url:n.getURL(),linkNodeKey:n.getKey(),title:n.getTitle(),rectangle:e}:{type:`inactive`}}else return{type:`inactive`}}else return{type:`inactive`}})),m4)}),h4=_n(),g4=vn();vn();var _4=vn(),v4=vn(e=>{e.sub(e.pipe(v4,Tn(kb)),([,e])=>{e?.dispatchCommand(jS,null)})}),y4=vn(e=>{e.sub(e.pipe(y4,Tn(Bb,kb),Dn(([,e])=>U(e))),([,t,n])=>{n?.focus(()=>{setTimeout(()=>{n.getEditorState().read(()=>{let r=f4(t),i=kC(n),a=r?.getURL()??``,o=r?.getURL()??``,s=r?.getTitle()??``,c=r?.getKey()??``,l=r?r.getTextContent().length>0&&r.getChildrenSize()<=1:!!t?.isCollapsed(),u=l&&r?r.getTextContent():``;e.pub(m4,{type:`edit`,initialUrl:a,url:o,title:s,text:u,withAnchorText:l,linkNodeKey:c,rectangle:i})})})})})}),b4=z([]),x4=z(null),S4=z(null,e=>{e.pub(Tx,t=>{function n(n){let[r,i]=e.getValues([Mb,S4]);!r||i===null||t.update(()=>{let e=_c(n.target);if(e!==null){let t=ed(e,e=>e instanceof wS);t!==null&&i(n,t,t.getURL())}})}return t.registerRootListener((e,t)=>{e&&e.addEventListener(`click`,n),t&&t.removeEventListener(`click`,n)})})});function C4(e,t){H(e)&&t&&(e.setTextContent(t),e.selectStart())}var w4=z(!0),T4=jn({init(e,t){e.pub(Ox,t?.LinkDialog??u4),e.pub(x4,t?.onClickLinkCallback??null),e.pub(S4,t?.onReadOnlyClickLinkCallback??null),e.pub(w4,t?.showLinkTitleField??!0)},update(e,t={}){e.pub(b4,t.linkAutocompleteSuggestions??[])}});function E4(e,t){return L.forwardRef((n,r)=>{let i=(0,jC.default)(t.className,n.className);return L.createElement(e,{...t,...n,className:i,ref:r})})}function D4(e){return({title:t,children:n,...r})=>L.createElement(e,{"aria-label":t,...r},L.createElement(J2,{title:t},n))}var O4=({readOnly:e,children:t,className:n})=>L.createElement(uM,{className:(0,jC.default)(`mdxeditor-toolbar`,J.toolbarRoot,{[J.readOnlyToolbarRoot]:e},n),...e?{tabIndex:-1}:{}},t),k4=D4(E4(fM,{className:J.toolbarButton,"data-toolbar-item":!0})),A4=E4(mM,{className:J.toolbarToggleItem,"data-toolbar-item":!0});E4(pM,{type:`single`,className:J.toolbarToggleSingleGroup});var j4=L.forwardRef(({on:e,title:t,children:n,disabled:r,...i},a)=>L.createElement(pM,{type:`single`,className:J.toolbarToggleSingleGroup,...i,value:e?`on`:`off`,ref:a},L.createElement(A4,{"aria-label":t,value:`on`,disabled:r},L.createElement(J2,{title:t},n)))),M4=({items:e})=>L.createElement(`div`,{className:J.toolbarGroupOfGroups},e.map((e,t)=>L.createElement(j4,{key:t,title:e.title,on:e.active,onValueChange:t=>{e.onChange(t===`on`)},disabled:e.disabled},e.contents))),N4=({value:e,onChange:t,className:n,ggClassName:r,items:i,disabled:a})=>{let o=Xx();return L.createElement(`div`,{className:(0,jC.default)(J.toolbarGroupOfGroups,r)},L.createElement(pM,{"aria-label":o(`toolbar.toggleGroup`,`toggle group`),type:`single`,className:(0,jC.default)(J.toolbarToggleSingleGroup,n),onValueChange:t,value:e||``,disabled:a,onFocus:e=>{e.preventDefault()}},i.map((e,t)=>L.createElement(A4,{key:t,"aria-label":e.title,value:e.value},L.createElement(J2,{title:e.title},e.contents)))))};function P4(e){return Object.hasOwn(e,`when`)}var F4=({options:e})=>{let t=xn(yx),n=L.useMemo(()=>{let n=e.find(e=>{if(P4(e)){if(e.when(t))return!0}else return!0});return n?P4(n)?n.contents():n.fallback():null},[e,t]);return L.createElement(`div`,{style:{display:`flex`}},n)},I4=dM,L4=z(()=>null),R4=z(``),z4=()=>"This is an empty toolbar. Pass `{toolbarContents: () => { return <>toolbar components</> }}` to the toolbarPlugin to customize it.",B4=jn({init(e,t){let n=t?.toolbarPosition===`bottom`?Mx:Ax;e.pubIn({[L4]:t?.toolbarContents??z4,[R4]:t?.toolbarClassName??``,[n]:()=>{let[e,t,n]=Sn(L4,Mb,R4);return L.createElement(O4,{className:n,readOnly:t},e())}})},update(e,t){e.pub(L4,t?.toolbarContents??z4),e.pub(R4,t?.toolbarClassName??``)}}),V4=class e{constructor(e,t,n,r){this.fromA=e,this.toA=t,this.fromB=n,this.toB=r}offset(t,n=t){return new e(this.fromA+t,this.toA+t,this.fromB+n,this.toB+n)}};function H4(e,t,n,r,i,a){if(e==r)return[];let o=Q4(e,t,n,r,i,a),s=$4(e,t+o,n,r,i+o,a);t+=o,n-=s,i+=o,a-=s;let c=n-t,l=a-i;if(!c||!l)return[new V4(t,n,i,a)];if(c>l){let o=e.slice(t,n).indexOf(r.slice(i,a));if(o>-1)return[new V4(t,t+o,i,i),new V4(t+o+l,n,a,a)]}else if(l>c){let o=r.slice(i,a).indexOf(e.slice(t,n));if(o>-1)return[new V4(t,t,i,i+o),new V4(n,n,i+o+c,a)]}if(c==1||l==1)return[new V4(t,n,i,a)];let u=t3(e,t,n,r,i,a);if(u){let[o,s,c]=u;return H4(e,t,o,r,i,s).concat(H4(e,o+c,n,r,s+c,a))}return K4(e,t,n,r,i,a)}var U4=1e9,W4=0,G4=!1;function K4(e,t,n,r,i,a){let o=n-t,s=a-i;if(U4<1e9&&Math.min(o,s)>U4*16||W4>0&&Date.now()>W4)return Math.min(o,s)>U4*64?[new V4(t,n,i,a)]:n3(e,t,n,r,i,a);let c=Math.ceil((o+s)/2);J4.reset(c),Y4.reset(c);let l=(n,a)=>e.charCodeAt(t+n)==r.charCodeAt(i+a),u=(t,i)=>e.charCodeAt(n-t-1)==r.charCodeAt(a-i-1),d=(o-s)%2==0?null:Y4,f=d?null:J4;for(let p=0;p<c;p++){if(p>U4||W4>0&&!(p&63)&&Date.now()>W4)return n3(e,t,n,r,i,a);let m=J4.advance(p,o,s,c,d,!1,l)||Y4.advance(p,o,s,c,f,!0,u);if(m)return X4(e,t,n,t+m[0],r,i,a,i+m[1])}return[new V4(t,n,i,a)]}var q4=class{constructor(){this.vec=[]}reset(e){this.len=e<<1;for(let e=0;e<this.len;e++)this.vec[e]=-1;this.vec[e+1]=0,this.start=this.end=0}advance(e,t,n,r,i,a,o){for(let s=-e+this.start;s<=e-this.end;s+=2){let c=r+s,l=s==-e||s!=e&&this.vec[c-1]<this.vec[c+1]?this.vec[c+1]:this.vec[c-1]+1,u=l-s;for(;l<t&&u<n&&o(l,u);)l++,u++;if(this.vec[c]=l,l>t)this.end+=2;else if(u>n)this.start+=2;else if(i){let e=r+(t-n)-s;if(e>=0&&e<this.len&&i.vec[e]!=-1)if(a){let n=i.vec[e];if(n>=t-l)return[n,r+n-e]}else{let n=t-i.vec[e];if(l>=n)return[l,u]}}}return null}},J4=new q4,Y4=new q4;function X4(e,t,n,r,i,a,o,s){let c=!1;return!_3(e,r)&&++r==n&&(c=!0),!_3(i,s)&&++s==o&&(c=!0),c?[new V4(t,n,a,o)]:H4(e,t,r,i,a,s).concat(H4(e,r,n,i,s,o))}function Z4(e,t){let n=1,r=Math.min(e,t);for(;n<r;)n<<=1;return n}function Q4(e,t,n,r,i,a){if(t==n||t==a||e.charCodeAt(t)!=r.charCodeAt(i))return 0;let o=Z4(n-t,a-i);for(let s=t,c=i;;){let i=s+o,l=c+o;if(i>n||l>a||e.slice(s,i)!=r.slice(c,l)){if(o==1)return s-t-+!_3(e,s);o>>=1}else if(i==n||l==a)return i-t;else s=i,c=l}}function $4(e,t,n,r,i,a){if(t==n||i==a||e.charCodeAt(n-1)!=r.charCodeAt(a-1))return 0;let o=Z4(n-t,a-i);for(let s=n,c=a;;){let a=s-o,l=c-o;if(a<t||l<i||e.slice(a,s)!=r.slice(l,c)){if(o==1)return n-s-+!_3(e,s);o>>=1}else if(a==t||l==i)return n-a;else s=a,c=l}}function e3(e,t,n,r,i,a,o,s){let c=r.slice(i,a),l=null;for(;;){if(l||o<s)return l;for(let s=t+o;;){_3(e,s)||s++;let u=s+o;if(_3(e,u)||(u+=u==s+1?1:-1),u>=n)break;let d=e.slice(s,u),f=-1;for(;(f=c.indexOf(d,f+1))!=-1;){let o=Q4(e,u,n,r,i+f+d.length,a),c=$4(e,t,s,r,i,i+f),p=d.length+o+c;(!l||l[2]<p)&&(l=[s-c,i+f-c,p])}s=u}if(s<0)return l;o>>=1}}function t3(e,t,n,r,i,a){let o=n-t,s=a-i;if(o<s){let o=t3(r,i,a,e,t,n);return o&&[o[1],o[0],o[2]]}return o<4||s*2<o?null:e3(e,t,n,r,i,a,Math.floor(o/4),-1)}function n3(e,t,n,r,i,a){G4=!0;let o=n-t,s=a-i,c;if(o<s){let s=e3(r,i,a,e,t,n,Math.floor(o/6),50);c=s&&[s[1],s[0],s[2]]}else c=e3(e,t,n,r,i,a,Math.floor(s/6),50);if(!c)return[new V4(t,n,i,a)];let[l,u,d]=c;return H4(e,t,l,r,i,u).concat(H4(e,l+d,n,r,u+d,a))}function r3(e,t){for(let n=1;n<e.length;n++){let r=e[n-1],i=e[n];r.toA>i.fromA-t&&r.toB>i.fromB-t&&(e[n-1]=new V4(r.fromA,i.toA,r.fromB,i.toB),e.splice(n--,1))}}function i3(e,t,n){for(;;){r3(n,1);let r=!1;for(let i=0;i<n.length;i++){let a=n[i],o,s;(o=Q4(e,a.fromA,a.toA,t,a.fromB,a.toB))&&(a=n[i]=new V4(a.fromA+o,a.toA,a.fromB+o,a.toB)),(s=$4(e,a.fromA,a.toA,t,a.fromB,a.toB))&&(a=n[i]=new V4(a.fromA,a.toA-s,a.fromB,a.toB-s));let c=a.toA-a.fromA,l=a.toB-a.fromB;if(c&&l)continue;let u=a.fromA-(i?n[i-1].toA:0),d=(i<n.length-1?n[i+1].fromA:e.length)-a.toA;if(!u||!d)continue;let f=c?e.slice(a.fromA,a.toA):t.slice(a.fromB,a.toB);u<=f.length&&e.slice(a.fromA-u,a.fromA)==f.slice(f.length-u)?(n[i]=new V4(a.fromA-u,a.toA-u,a.fromB-u,a.toB-u),r=!0):d<=f.length&&e.slice(a.toA,a.toA+d)==f.slice(0,d)&&(n[i]=new V4(a.fromA+d,a.toA+d,a.fromB+d,a.toB+d),r=!0)}if(!r)break}return n}function a3(e,t,n){for(let r=0,i=0;i<e.length;i++){let a=e[i],o=a.toA-a.fromA,s=a.toB-a.fromB;if(o&&s||o>3||s>3){let c=i==e.length-1?t.length:e[i+1].fromA,l=a.fromA-r,u=c-a.toA,d=f3(t,a.fromA,l),f=d3(t,a.toA,u),p=a.fromA-d,m=f-a.toA;if((!o||!s)&&p&&m){let l=Math.max(o,s),[u,h,g]=o?[t,a.fromA,a.toA]:[n,a.fromB,a.toB];l>p&&t.slice(d,a.fromA)==u.slice(g-p,g)?(a=e[i]=new V4(d,d+o,a.fromB-p,a.toB-p),d=a.fromA,f=d3(t,a.toA,c-a.toA)):l>m&&t.slice(a.toA,f)==u.slice(h,h+m)&&(a=e[i]=new V4(f-o,f,a.fromB+m,a.toB+m),f=a.toA,d=f3(t,a.fromA,a.fromA-r)),p=a.fromA-d,m=f-a.toA}if(p||m)a=e[i]=new V4(a.fromA-p,a.toA+m,a.fromB-p,a.toB+m);else if(!o){let t=m3(n,a.fromB,a.toB),r,o=t<0?-1:p3(n,a.toB,a.fromB);t>-1&&(r=t-a.fromB)<=u&&n.slice(a.fromB,t)==n.slice(a.toB,a.toB+r)?a=e[i]=a.offset(r):o>-1&&(r=a.toB-o)<=l&&n.slice(a.fromB-r,a.fromB)==n.slice(o,a.toB)&&(a=e[i]=a.offset(-r))}else if(!s){let n=m3(t,a.fromA,a.toA),r,o=n<0?-1:p3(t,a.toA,a.fromA);n>-1&&(r=n-a.fromA)<=u&&t.slice(a.fromA,n)==t.slice(a.toA,a.toA+r)?a=e[i]=a.offset(r):o>-1&&(r=a.toA-o)<=l&&t.slice(a.fromA-r,a.fromA)==t.slice(o,a.toA)&&(a=e[i]=a.offset(-r))}}r=a.toA}return r3(e,3),e}var o3;try{o3=RegExp(`[\\p{Alphabetic}\\p{Number}]`,`u`)}catch{}function s3(e){return e>48&&e<58||e>64&&e<91||e>96&&e<123}function c3(e,t){if(t==e.length)return 0;let n=e.charCodeAt(t);return n<192?+!!s3(n):o3?!h3(n)||t==e.length-1?+!!o3.test(String.fromCharCode(n)):o3.test(e.slice(t,t+2))?2:0:0}function l3(e,t){if(!t)return 0;let n=e.charCodeAt(t-1);return n<192?+!!s3(n):o3?!g3(n)||t==1?+!!o3.test(String.fromCharCode(n)):o3.test(e.slice(t-2,t))?2:0:0}var u3=8;function d3(e,t,n){if(t==e.length||!l3(e,t))return t;for(let r=t,i=t+n,a=0;a<u3;a++){let t=c3(e,r);if(!t||r+t>i)return r;r+=t}return t}function f3(e,t,n){if(!t||!c3(e,t))return t;for(let r=t,i=t-n,a=0;a<u3;a++){let t=l3(e,r);if(!t||r-t<i)return r;r-=t}return t}function p3(e,t,n){for(;t!=n;t--)if(e.charCodeAt(t-1)==10)return t;return-1}function m3(e,t,n){for(;t!=n;t++)if(e.charCodeAt(t)==10)return t;return-1}var h3=e=>e>=55296&&e<=56319,g3=e=>e>=56320&&e<=57343;function _3(e,t){return!t||t==e.length||!h3(e.charCodeAt(t-1))||!g3(e.charCodeAt(t))}function v3(e,t,n){let r=n?.override;return r?r(e,t):(U4=(n?.scanLimit??1e9)>>1,W4=n?.timeout?Date.now()+n.timeout:0,G4=!1,i3(e,t,H4(e,0,e.length,t,0,t.length)))}function y3(){return!G4}function b3(e,t,n){return a3(v3(e,t,n),e,t)}var x3=u.define({combine:e=>e[0]}),S3=S.define(),C3=u.define(),w3=w.define({create(e){return null},update(e,t){for(let n of t.effects)n.is(S3)&&(e=n.value);for(let n of t.state.facet(C3))e=n(e,t);return e}}),T3=class e{constructor(e,t,n,r,i,a=!0){this.changes=e,this.fromA=t,this.toA=n,this.fromB=r,this.toB=i,this.precise=a}offset(t,n){return t||n?new e(this.changes,this.fromA+t,this.toA+t,this.fromB+n,this.toB+n,this.precise):this}get endA(){return Math.max(this.fromA,this.toA-1)}get endB(){return Math.max(this.fromB,this.toB-1)}static build(e,t,n){return O3(b3(e.toString(),t.toString(),n),e,t,0,0,y3())}static updateA(e,t,n,r,i){return M3(j3(e,r,!0,n.length),e,t,n,i)}static updateB(e,t,n,r,i){return M3(j3(e,r,!1,t.length),e,t,n,i)}};function E3(e,t,n,r){let i=n.lineAt(e),a=r.lineAt(t);return i.to==e&&a.to==t&&e<n.length&&t<r.length?[e+1,t+1]:[i.from,a.from]}function D3(e,t,n,r){let i=n.lineAt(e),a=r.lineAt(t);return i.from==e&&a.from==t?[e,t]:[i.to+1,a.to+1]}function O3(e,t,n,r,i,a){let o=[];for(let s=0;s<e.length;s++){let c=e[s],[l,u]=E3(c.fromA+r,c.fromB+i,t,n),[d,f]=D3(c.toA+r,c.toB+i,t,n),p=[c.offset(-l+r,-u+i)];for(;s<e.length-1;){let a=e[s+1],[o,c]=E3(a.fromA+r,a.fromB+i,t,n);if(o>d+1&&c>f+1)break;p.push(a.offset(-l+r,-u+i)),[d,f]=D3(a.toA+r,a.toB+i,t,n),s++}o.push(new T3(p,l,Math.max(l,d),u,Math.max(u,f),a))}return o}var k3=1e3;function A3(e,t,n,r){let i=0,a=e.length;for(;;){if(i==a){let r=0,a=0;i&&({toA:r,toB:a}=e[i-1]);let o=t-(n?r:a);return[r+o,a+o]}let o=i+a>>1,s=e[o],[c,l]=n?[s.fromA,s.toA]:[s.fromB,s.toB];if(c>t)a=o;else if(l<=t)i=o+1;else return r?[s.fromA,s.fromB]:[s.toA,s.toB]}}function j3(e,t,n,r){let i=[];return t.iterChangedRanges((a,o,s,c)=>{let l=0,u=n?t.length:r,d=0,f=n?r:t.length;a>k3&&([l,d]=A3(e,a-k3,n,!0)),o<t.length-k3&&([u,f]=A3(e,o+k3,n,!1));let p=c-s-(o-a),m,[h,g]=n?[p,0]:[0,p];i.length&&(m=i[i.length-1]).toA>=l?i[i.length-1]={fromA:m.fromA,fromB:m.fromB,toA:u,toB:f,diffA:m.diffA+h,diffB:m.diffB+g}:i.push({fromA:l,toA:u,fromB:d,toB:f,diffA:h,diffB:g})}),i}function M3(e,t,n,r,i){if(!e.length)return t;let a=[];for(let o=0,s=0,c=0,l=0;;o++){let u=o==e.length?null:e[o],d=u?u.fromA+s:n.length,f=u?u.fromB+c:r.length;for(;l<t.length;){let e=t[l];if(u&&(e.toA+s>d||e.toB+c>f))break;a.push(e.offset(s,c)),l++}if(!u)break;let p=u.toA+s+u.diffA,m=u.toB+c+u.diffB,h=b3(n.sliceString(d,p),r.sliceString(f,m),i);for(let e of O3(h,n,r,d,f,y3()))a.push(e);for(s+=u.diffA,c+=u.diffB;l<t.length;){let e=t[l];if(e.fromA+s>p&&e.fromB+c>m)break;l++}}return a}var N3={scanLimit:500},P3=se.fromClass(class{constructor(e){({deco:this.deco,gutter:this.gutter}=W3(e))}update(e){(e.docChanged||e.viewportChanged||I3(e.startState,e.state)||L3(e.startState,e.state))&&({deco:this.deco,gutter:this.gutter}=W3(e.view))}},{decorations:e=>e.deco}),F3=E.low(Ee({class:`cm-changeGutter`,markers:e=>e.plugin(P3)?.gutter||Ae.empty}));function I3(e,t){return e.field(w3,!1)!=t.field(w3,!1)}function L3(e,t){return e.facet(x3)!=t.facet(x3)}var R3=Be.line({class:`cm-changedLine`}),z3=Be.mark({class:`cm-changedText`}),B3=Be.mark({tagName:`ins`,class:`cm-insertedLine`}),V3=Be.mark({tagName:`del`,class:`cm-deletedLine`}),H3=new class extends oe{constructor(){super(...arguments),this.elementClass=`cm-changedLineGutter`}};function U3(e,t,n,r,i,a){let o=n?e.fromA:e.fromB,s=n?e.toA:e.toB,c=0;if(o!=s){i.add(o,o,R3),i.add(o,s,n?V3:B3),a&&a.add(o,o,H3);for(let l=t.iterRange(o,s-1),u=o;!l.next().done;){if(l.lineBreak){u++,i.add(u,u,R3),a&&a.add(u,u,H3);continue}let t=u+l.value.length;if(r)for(;c<e.changes.length;){let r=e.changes[c],a=o+(n?r.fromA:r.fromB),s=o+(n?r.toA:r.toB),l=Math.max(u,a),d=Math.min(t,s);if(l<d&&i.add(l,d,z3),s<t)c++;else break}u=t}}}function W3(e){let t=e.state.field(w3),{side:r,highlightChanges:i,markGutter:a,overrideChunk:o}=e.state.facet(x3),s=r==`a`,c=new n,l=a?new n:null,{from:u,to:d}=e.viewport;for(let n of t){if((s?n.fromA:n.fromB)>=d)break;(s?n.toA:n.toB)>u&&(!o||!o(e.state,n,c,l))&&U3(n,e.state.doc,s,i,c,l)}return{deco:c.finish(),gutter:l&&l.finish()}}var G3=class extends O{constructor(e){super(),this.height=e}eq(e){return this.height==e.height}toDOM(){let e=document.createElement(`div`);return e.className=`cm-mergeSpacer`,e.style.height=this.height+`px`,e}updateDOM(e){return e.style.height=this.height+`px`,!0}get estimatedHeight(){return this.height}ignoreEvent(){return!1}},K3=S.define({map:(e,t)=>e.map(t)}),q3=w.define({create:()=>Be.none,update:(e,t)=>{for(let e of t.effects)if(e.is(K3))return e.value;return e.map(t.changes)},provide:e=>P.decorations.from(e)}),J3=.01;function Y3(e,t){if(e.size!=t.size)return!1;let n=e.iter(),r=t.iter();for(;n.value;){if(n.from!=r.from||Math.abs(n.value.spec.widget.height-r.value.spec.widget.height)>1)return!1;n.next(),r.next()}return!0}function X3(e,t,r){let i=new n,a=new n,o=e.state.field(q3).iter(),s=t.state.field(q3).iter(),c=0,l=0,u=0,d=0,f=e.viewport,p=t.viewport;for(let n=0;;n++){let m=n<r.length?r[n]:null,h=m?m.fromA:e.state.doc.length,g=m?m.fromB:t.state.doc.length;if(c<h){let n=e.lineBlockAt(c).top+u-(t.lineBlockAt(l).top+d);n<-J3?(u-=n,i.add(c,c,Be.widget({widget:new G3(-n),block:!0,side:-1}))):n>J3&&(d+=n,a.add(l,l,Be.widget({widget:new G3(n),block:!0,side:-1})))}if(h>c+1e3&&c<f.from&&h>f.from&&l<p.from&&g>p.from){let e=Math.min(f.from-c,p.from-l);c+=e,l+=e,n--}else if(m)c=m.toA,l=m.toB;else break;for(;o.value&&o.from<c;)u-=o.value.spec.widget.height,o.next();for(;s.value&&s.from<l;)d-=s.value.spec.widget.height,s.next()}for(;o.value;)u-=o.value.spec.widget.height,o.next();for(;s.value;)d-=s.value.spec.widget.height,s.next();let m=e.contentHeight+u-(t.contentHeight+d);m<J3?i.add(e.state.doc.length,e.state.doc.length,Be.widget({widget:new G3(-m),block:!0,side:1})):m>J3&&a.add(t.state.doc.length,t.state.doc.length,Be.widget({widget:new G3(m),block:!0,side:1}));let h=i.finish(),g=a.finish();Y3(h,e.state.field(q3))||e.dispatch({effects:K3.of(h)}),Y3(g,t.state.field(q3))||t.dispatch({effects:K3.of(g)})}var Z3=S.define({map:(e,t)=>t.mapPos(e)}),Q3=class extends O{constructor(e){super(),this.lines=e}eq(e){return this.lines==e.lines}toDOM(e){let t=document.createElement(`div`);return t.className=`cm-collapsedLines`,t.textContent=e.state.phrase(`$ unchanged lines`,this.lines),t.addEventListener(`click`,t=>{let n=e.posAtDOM(t.target);e.dispatch({effects:Z3.of(n)});let{side:r,sibling:i}=e.state.facet(x3);i&&i().dispatch({effects:Z3.of($3(n,e.state.field(w3),r==`a`))})}),t}ignoreEvent(e){return e instanceof MouseEvent}get estimatedHeight(){return 27}get type(){return`collapsed-unchanged-code`}};function $3(e,t,n){let r=0,i=0;for(let a=0;;a++){let o=a<t.length?t[a]:null;if(!o||(n?o.fromA:o.fromB)>=e)return i+(e-r);[r,i]=n?[o.toA,o.toB]:[o.toB,o.toA]}}var e6=w.define({create(e){return Be.none},update(e,t){e=e.map(t.changes);for(let n of t.effects)n.is(Z3)&&(e=e.update({filter:e=>e!=n.value}));return e},provide:e=>P.decorations.from(e)});function t6({margin:e=3,minSize:t=4}){return e6.init(n=>n6(n,e,t))}function n6(e,t,r){let i=new n,a=e.facet(x3).side==`a`,o=e.field(w3),s=1;for(let n=0;;n++){let c=n<o.length?o[n]:null,l=n?s+t:1,u=c?e.doc.lineAt(a?c.fromA:c.fromB).number-1-t:e.doc.lines,d=u-l+1;if(d>=r&&i.add(e.doc.line(l).from,e.doc.line(u).to,Be.replace({widget:new Q3(d),block:!0})),!c)break;s=e.doc.lineAt(Math.min(e.doc.length,a?c.toA:c.toB)).number}return i.finish()}var r6=P.styleModule.of(new Xe({".cm-mergeView":{overflowY:`auto`},".cm-mergeViewEditors":{display:`flex`,alignItems:`stretch`},".cm-mergeViewEditor":{flexGrow:1,flexBasis:0,overflow:`hidden`},".cm-merge-revert":{width:`1.6em`,flexGrow:0,flexShrink:0,position:`relative`},".cm-merge-revert button":{position:`absolute`,display:`block`,width:`100%`,boxSizing:`border-box`,textAlign:`center`,background:`none`,border:`none`,font:`inherit`,cursor:`pointer`}})),i6=P.baseTheme({".cm-mergeView & .cm-scroller, .cm-mergeView &":{height:`auto !important`,overflowY:`visible !important`},"&.cm-merge-a .cm-changedLine, .cm-deletedChunk":{backgroundColor:`rgba(160, 128, 100, .08)`},"&.cm-merge-b .cm-changedLine, .cm-inlineChangedLine":{backgroundColor:`rgba(100, 160, 128, .08)`},"&light.cm-merge-a .cm-changedText, &light .cm-deletedChunk .cm-deletedText":{background:`linear-gradient(#ee443366, #ee443366) bottom/100% 2px no-repeat`},"&dark.cm-merge-a .cm-changedText, &dark .cm-deletedChunk .cm-deletedText":{background:`linear-gradient(#ffaa9966, #ffaa9966) bottom/100% 2px no-repeat`},"&light.cm-merge-b .cm-changedText":{background:`linear-gradient(#22bb22aa, #22bb22aa) bottom/100% 2px no-repeat`},"&dark.cm-merge-b .cm-changedText":{background:`linear-gradient(#88ff88aa, #88ff88aa) bottom/100% 2px no-repeat`},"&.cm-merge-b .cm-deletedText":{background:`#ff000033`},".cm-insertedLine, .cm-deletedLine, .cm-deletedLine del":{textDecoration:`none`},".cm-deletedChunk":{paddingLeft:`6px`,"& .cm-chunkButtons":{position:`absolute`,insetInlineEnd:`5px`},"& button":{border:`none`,cursor:`pointer`,color:`white`,margin:`0 2px`,borderRadius:`3px`,"&[name=accept]":{background:`#2a2`},"&[name=reject]":{background:`#d43`}}},".cm-collapsedLines":{padding:`5px 5px 5px 10px`,cursor:`pointer`,"&:before":{content:`"⦚"`,marginInlineEnd:`7px`},"&:after":{content:`"⦚"`,marginInlineStart:`7px`}},"&light .cm-collapsedLines":{color:`#444`,background:`linear-gradient(to bottom, transparent 0, #f3f3f3 30%, #f3f3f3 70%, transparent 100%)`},"&dark .cm-collapsedLines":{color:`#ddd`,background:`linear-gradient(to bottom, transparent 0, #222 30%, #222 70%, transparent 100%)`},".cm-changeGutter":{width:`3px`,paddingLeft:`1px`},"&light.cm-merge-a .cm-changedLineGutter, &light .cm-deletedLineGutter":{background:`#e43`},"&dark.cm-merge-a .cm-changedLineGutter, &dark .cm-deletedLineGutter":{background:`#fa9`},"&light.cm-merge-b .cm-changedLineGutter":{background:`#2b2`},"&dark.cm-merge-b .cm-changedLineGutter":{background:`#8f8`},".cm-inlineChangedLineGutter":{background:`#75d`}}),a6=new o,o6=new o,s6=class{constructor(e){this.revertDOM=null,this.revertToA=!1,this.revertToLeft=!1,this.measuring=-1,this.diffConf=e.diffConfig||N3;let t=[E.low(P3),i6,r6,q3,P.updateListener.of(e=>{this.measuring<0&&(e.heightChanged||e.viewportChanged)&&!e.transactions.some(e=>e.effects.some(e=>e.is(K3)))&&this.measure()})],n=[x3.of({side:`a`,sibling:()=>this.b,highlightChanges:e.highlightChanges!==!1,markGutter:e.gutter!==!1})];e.gutter!==!1&&n.push(F3);let r=te.create({doc:e.a.doc,selection:e.a.selection,extensions:[e.a.extensions||[],P.editorAttributes.of({class:`cm-merge-a`}),o6.of(n),t]}),i=[x3.of({side:`b`,sibling:()=>this.a,highlightChanges:e.highlightChanges!==!1,markGutter:e.gutter!==!1})];e.gutter!==!1&&i.push(F3);let a=te.create({doc:e.b.doc,selection:e.b.selection,extensions:[e.b.extensions||[],P.editorAttributes.of({class:`cm-merge-b`}),o6.of(i),t]});this.chunks=T3.build(r.doc,a.doc,this.diffConf);let o=[w3.init(()=>this.chunks),a6.of(e.collapseUnchanged?t6(e.collapseUnchanged):[])];r=r.update({effects:S.appendConfig.of(o)}).state,a=a.update({effects:S.appendConfig.of(o)}).state,this.dom=document.createElement(`div`),this.dom.className=`cm-mergeView`,this.editorDOM=this.dom.appendChild(document.createElement(`div`)),this.editorDOM.className=`cm-mergeViewEditors`;let s=e.orientation||`a-b`,c=document.createElement(`div`);c.className=`cm-mergeViewEditor`;let l=document.createElement(`div`);l.className=`cm-mergeViewEditor`,this.editorDOM.appendChild(s==`a-b`?c:l),this.editorDOM.appendChild(s==`a-b`?l:c),this.a=new P({state:r,parent:c,root:e.root,dispatchTransactions:e=>this.dispatch(e,this.a)}),this.b=new P({state:a,parent:l,root:e.root,dispatchTransactions:e=>this.dispatch(e,this.b)}),this.setupRevertControls(!!e.revertControls,e.revertControls==`b-to-a`,e.renderRevertControl),e.parent&&e.parent.appendChild(this.dom),this.scheduleMeasure()}dispatch(e,t){if(e.some(e=>e.docChanged)){let n=e[e.length-1],r=e.reduce((e,t)=>e.compose(t.changes),$e.empty(e[0].startState.doc.length));this.chunks=t==this.a?T3.updateA(this.chunks,n.newDoc,this.b.state.doc,r,this.diffConf):T3.updateB(this.chunks,this.a.state.doc,n.newDoc,r,this.diffConf),t.update([...e,n.state.update({effects:S3.of(this.chunks)})]);let i=t==this.a?this.b:this.a;i.update([i.state.update({effects:S3.of(this.chunks)})]),this.scheduleMeasure()}else t.update(e)}reconfigure(e){if(`diffConfig`in e&&(this.diffConf=e.diffConfig),`orientation`in e){let t=e.orientation!=`b-a`;if(t!=(this.editorDOM.firstChild==this.a.dom.parentNode)){let e=this.a.dom.parentNode,n=this.b.dom.parentNode;e.remove(),n.remove(),this.editorDOM.insertBefore(t?e:n,this.editorDOM.firstChild),this.editorDOM.appendChild(t?n:e),this.revertToLeft=!this.revertToLeft,this.revertDOM&&(this.revertDOM.textContent=``)}}if(`revertControls`in e||`renderRevertControl`in e){let t=!!this.revertDOM,n=this.revertToA,r=this.renderRevert;`revertControls`in e&&(t=!!e.revertControls,n=e.revertControls==`b-to-a`),`renderRevertControl`in e&&(r=e.renderRevertControl),this.setupRevertControls(t,n,r)}let t=`highlightChanges`in e,n=`gutter`in e,r=`collapseUnchanged`in e;if(t||n||r){let i=[],a=[];if(t||n){let r=this.a.state.facet(x3),o=n?e.gutter!==!1:r.markGutter,s=t?e.highlightChanges!==!1:r.highlightChanges;i.push(o6.reconfigure([x3.of({side:`a`,sibling:()=>this.b,highlightChanges:s,markGutter:o}),o?F3:[]])),a.push(o6.reconfigure([x3.of({side:`b`,sibling:()=>this.a,highlightChanges:s,markGutter:o}),o?F3:[]]))}if(r){let t=a6.reconfigure(e.collapseUnchanged?t6(e.collapseUnchanged):[]);i.push(t),a.push(t)}this.a.dispatch({effects:i}),this.b.dispatch({effects:a})}this.scheduleMeasure()}setupRevertControls(e,t,n){this.revertToA=t,this.revertToLeft=this.revertToA==(this.editorDOM.firstChild==this.a.dom.parentNode),this.renderRevert=n,!e&&this.revertDOM?(this.revertDOM.remove(),this.revertDOM=null):e&&!this.revertDOM?(this.revertDOM=this.editorDOM.insertBefore(document.createElement(`div`),this.editorDOM.firstChild.nextSibling),this.revertDOM.addEventListener(`mousedown`,e=>this.revertClicked(e)),this.revertDOM.className=`cm-merge-revert`):this.revertDOM&&(this.revertDOM.textContent=``)}scheduleMeasure(){if(this.measuring<0){let e=this.dom.ownerDocument.defaultView||window;this.measuring=e.requestAnimationFrame(()=>{this.measuring=-1,this.measure()})}}measure(){X3(this.a,this.b,this.chunks),this.revertDOM&&this.updateRevertButtons()}updateRevertButtons(){let e=this.revertDOM,t=e.firstChild,n=this.a.viewport,r=this.b.viewport;for(let i=0;i<this.chunks.length;i++){let a=this.chunks[i];if(a.fromA>n.to||a.fromB>r.to)break;if(a.fromA<n.from||a.fromB<r.from)continue;let o=this.a.lineBlockAt(a.fromA).top+`px`;for(;t&&+t.dataset.chunk<i;)t=c6(t);t&&t.dataset.chunk==String(i)?(t.style.top!=o&&(t.style.top=o),t=t.nextSibling):e.insertBefore(this.renderRevertButton(o,i),t)}for(;t;)t=c6(t)}renderRevertButton(e,t){let n;if(this.renderRevert)n=this.renderRevert();else{n=document.createElement(`button`);let e=this.a.state.phrase(`Revert this chunk`);n.setAttribute(`aria-label`,e),n.setAttribute(`title`,e),n.textContent=this.revertToLeft?`⇜`:`⇝`}return n.style.top=e,n.setAttribute(`data-chunk`,String(t)),n}revertClicked(e){let t=e.target,n;for(;t&&t.parentNode!=this.revertDOM;)t=t.parentNode;if(t&&(n=this.chunks[t.dataset.chunk])){let[t,r,i,a,o,s]=this.revertToA?[this.b,this.a,n.fromB,n.toB,n.fromA,n.toA]:[this.a,this.b,n.fromA,n.toA,n.fromB,n.toB],c=t.state.sliceDoc(i,Math.max(i,a-1));i!=a&&s<=r.state.doc.length&&(c+=t.state.lineBreak),r.dispatch({changes:{from:o,to:Math.min(r.state.doc.length,s),insert:c},userEvent:`revert`}),e.preventDefault()}}destroy(){this.a.destroy(),this.b.destroy(),this.measuring>-1&&(this.dom.ownerDocument.defaultView||window).cancelAnimationFrame(this.measuring),this.dom.remove()}};function c6(e){let t=e.nextSibling;return e.remove(),t}var l6=class e{static create(t,n,r,i,a){return new e(t,n,r,i+(i<<8)+t+(n<<4)|0,a,[],[])}constructor(e,t,n,i,a,o,s){this.type=e,this.value=t,this.from=n,this.hash=i,this.end=a,this.children=o,this.positions=s,this.hashProp=[[r.contextHash,i]]}addChild(e,t){e.prop(r.contextHash)!=this.hash&&(e=new p(e.type,e.children,e.positions,e.length,this.hashProp)),this.children.push(e),this.positions.push(t)}toTree(e,t=this.end){let n=this.children.length-1;return n>=0&&(t=Math.max(t,this.positions[n]+this.children[n].length+this.from)),new p(e.types[this.type],this.children,this.positions,t-this.from).balance({makeTree:(e,t,n)=>new p(m.none,e,t,n,this.hashProp)})}},$;(function(e){e[e.Document=1]=`Document`,e[e.CodeBlock=2]=`CodeBlock`,e[e.FencedCode=3]=`FencedCode`,e[e.Blockquote=4]=`Blockquote`,e[e.HorizontalRule=5]=`HorizontalRule`,e[e.BulletList=6]=`BulletList`,e[e.OrderedList=7]=`OrderedList`,e[e.ListItem=8]=`ListItem`,e[e.ATXHeading1=9]=`ATXHeading1`,e[e.ATXHeading2=10]=`ATXHeading2`,e[e.ATXHeading3=11]=`ATXHeading3`,e[e.ATXHeading4=12]=`ATXHeading4`,e[e.ATXHeading5=13]=`ATXHeading5`,e[e.ATXHeading6=14]=`ATXHeading6`,e[e.SetextHeading1=15]=`SetextHeading1`,e[e.SetextHeading2=16]=`SetextHeading2`,e[e.HTMLBlock=17]=`HTMLBlock`,e[e.LinkReference=18]=`LinkReference`,e[e.Paragraph=19]=`Paragraph`,e[e.CommentBlock=20]=`CommentBlock`,e[e.ProcessingInstructionBlock=21]=`ProcessingInstructionBlock`,e[e.Escape=22]=`Escape`,e[e.Entity=23]=`Entity`,e[e.HardBreak=24]=`HardBreak`,e[e.Emphasis=25]=`Emphasis`,e[e.StrongEmphasis=26]=`StrongEmphasis`,e[e.Link=27]=`Link`,e[e.Image=28]=`Image`,e[e.InlineCode=29]=`InlineCode`,e[e.HTMLTag=30]=`HTMLTag`,e[e.Comment=31]=`Comment`,e[e.ProcessingInstruction=32]=`ProcessingInstruction`,e[e.Autolink=33]=`Autolink`,e[e.HeaderMark=34]=`HeaderMark`,e[e.QuoteMark=35]=`QuoteMark`,e[e.ListMark=36]=`ListMark`,e[e.LinkMark=37]=`LinkMark`,e[e.EmphasisMark=38]=`EmphasisMark`,e[e.CodeMark=39]=`CodeMark`,e[e.CodeText=40]=`CodeText`,e[e.CodeInfo=41]=`CodeInfo`,e[e.LinkTitle=42]=`LinkTitle`,e[e.LinkLabel=43]=`LinkLabel`,e[e.URL=44]=`URL`})($||={});var u6=class{constructor(e,t){this.start=e,this.content=t,this.marks=[],this.parsers=[]}},d6=class{constructor(){this.text=``,this.baseIndent=0,this.basePos=0,this.depth=0,this.markers=[],this.pos=0,this.indent=0,this.next=-1}forward(){this.basePos>this.pos&&this.forwardInner()}forwardInner(){let e=this.skipSpace(this.basePos);this.indent=this.countIndent(e,this.pos,this.indent),this.pos=e,this.next=e==this.text.length?-1:this.text.charCodeAt(e)}skipSpace(e){return h6(this.text,e)}reset(e){for(this.text=e,this.baseIndent=this.basePos=this.pos=this.indent=0,this.forwardInner(),this.depth=1;this.markers.length;)this.markers.pop()}moveBase(e){this.basePos=e,this.baseIndent=this.countIndent(e,this.pos,this.indent)}moveBaseColumn(e){this.baseIndent=e,this.basePos=this.findColumn(e)}addMarker(e){this.markers.push(e)}countIndent(e,t=0,n=0){for(let r=t;r<e;r++)n+=this.text.charCodeAt(r)==9?4-n%4:1;return n}findColumn(e){let t=0;for(let n=0;t<this.text.length&&n<e;t++)n+=this.text.charCodeAt(t)==9?4-n%4:1;return t}scrub(){if(!this.baseIndent)return this.text;let e=``;for(let t=0;t<this.basePos;t++)e+=` `;return e+this.text.slice(this.basePos)}};function f6(e,t,n){if(n.pos==n.text.length||e!=t.block&&n.indent>=t.stack[n.depth+1].value+n.baseIndent)return!0;if(n.indent>=n.baseIndent+4)return!1;let r=(e.type==$.OrderedList?S6:x6)(n,t,!1);return r>0&&(e.type!=$.BulletList||y6(n,t,!1)<0)&&n.text.charCodeAt(n.pos+r-1)==e.value}var p6={[$.Blockquote](e,t,n){return n.next==62?(n.markers.push(X6($.QuoteMark,t.lineStart+n.pos,t.lineStart+n.pos+1)),n.moveBase(n.pos+(m6(n.text.charCodeAt(n.pos+1))?2:1)),e.end=t.lineStart+n.text.length,!0):!1},[$.ListItem](e,t,n){return n.indent<n.baseIndent+e.value&&n.next>-1?!1:(n.moveBaseColumn(n.baseIndent+e.value),!0)},[$.OrderedList]:f6,[$.BulletList]:f6,[$.Document](){return!0}};function m6(e){return e==32||e==9||e==10||e==13}function h6(e,t=0){for(;t<e.length&&m6(e.charCodeAt(t));)t++;return t}function g6(e,t,n){for(;t>n&&m6(e.charCodeAt(t-1));)t--;return t}function _6(e){if(e.next!=96&&e.next!=126)return-1;let t=e.pos+1;for(;t<e.text.length&&e.text.charCodeAt(t)==e.next;)t++;if(t<e.pos+3)return-1;if(e.next==96){for(let n=t;n<e.text.length;n++)if(e.text.charCodeAt(n)==96)return-1}return t}function v6(e){return e.next==62?e.text.charCodeAt(e.pos+1)==32?2:1:-1}function y6(e,t,n){if(e.next!=42&&e.next!=45&&e.next!=95)return-1;let r=1;for(let t=e.pos+1;t<e.text.length;t++){let n=e.text.charCodeAt(t);if(n==e.next)r++;else if(!m6(n))return-1}return n&&e.next==45&&w6(e)>-1&&e.depth==t.stack.length&&t.parser.leafBlockParsers.indexOf(I6.SetextHeading)>-1||r<3?-1:1}function b6(e,t){for(let n=e.stack.length-1;n>=0;n--)if(e.stack[n].type==t)return!0;return!1}function x6(e,t,n){return(e.next==45||e.next==43||e.next==42)&&(e.pos==e.text.length-1||m6(e.text.charCodeAt(e.pos+1)))&&(!n||b6(t,$.BulletList)||e.skipSpace(e.pos+2)<e.text.length)?1:-1}function S6(e,t,n){let r=e.pos,i=e.next;for(;i>=48&&i<=57;){if(r++,r==e.text.length)return-1;i=e.text.charCodeAt(r)}return r==e.pos||r>e.pos+9||i!=46&&i!=41||r<e.text.length-1&&!m6(e.text.charCodeAt(r+1))||n&&!b6(t,$.OrderedList)&&(e.skipSpace(r+1)==e.text.length||r>e.pos+1||e.next!=49)?-1:r+1-e.pos}function C6(e){if(e.next!=35)return-1;let t=e.pos+1;for(;t<e.text.length&&e.text.charCodeAt(t)==35;)t++;if(t<e.text.length&&e.text.charCodeAt(t)!=32)return-1;let n=t-e.pos;return n>6?-1:n}function w6(e){if(e.next!=45&&e.next!=61||e.indent>=e.baseIndent+4)return-1;let t=e.pos+1;for(;t<e.text.length&&e.text.charCodeAt(t)==e.next;)t++;let n=t;for(;t<e.text.length&&m6(e.text.charCodeAt(t));)t++;return t==e.text.length?n:-1}var T6=/^[ \t]*$/,E6=/-->/,D6=/\?>/,O6=[[/^<(?:script|pre|style)(?:\s|>|$)/i,/<\/(?:script|pre|style)>/i],[/^\s*<!--/,E6],[/^\s*<\?/,D6],[/^\s*<![A-Z]/,/>/],[/^\s*<!\[CDATA\[/,/\]\]>/],[/^\s*<\/?(?: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|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul)(?:\s|\/?>|$)/i,T6],[/^\s*(?:<\/[a-z][\w-]*\s*>|<[a-z][\w-]*(\s+[a-z:_][\w-.]*(?:\s*=\s*(?:[^\s"'=<>`]+|'[^']*'|"[^"]*"))?)*\s*>)\s*$/i,T6]];function k6(e,t,n){if(e.next!=60)return-1;let r=e.text.slice(e.pos);for(let e=0,t=O6.length-+!!n;e<t;e++)if(O6[e][0].test(r))return e;return-1}function A6(e,t){let n=e.countIndent(t,e.pos,e.indent),r=e.countIndent(e.skipSpace(t),t,n);return r>=n+5?n+1:r}function j6(e,t,n){let r=e.length-1;r>=0&&e[r].to==t&&e[r].type==$.CodeText?e[r].to=n:e.push(X6($.CodeText,t,n))}var M6={LinkReference:void 0,IndentedCode(e,t){let n=t.baseIndent+4;if(t.indent<n)return!1;let r=t.findColumn(n),i=e.lineStart+r,a=e.lineStart+t.text.length,o=[],s=[];for(j6(o,i,a);e.nextLine()&&t.depth>=e.stack.length;)if(t.pos==t.text.length){j6(s,e.lineStart-1,e.lineStart);for(let e of t.markers)s.push(e)}else if(t.indent<n)break;else{if(s.length){for(let e of s)e.type==$.CodeText?j6(o,e.from,e.to):o.push(e);s=[]}j6(o,e.lineStart-1,e.lineStart);for(let e of t.markers)o.push(e);a=e.lineStart+t.text.length;let n=e.lineStart+t.findColumn(t.baseIndent+4);n<a&&j6(o,n,a)}return s.length&&(s=s.filter(e=>e.type!=$.CodeText),s.length&&(t.markers=s.concat(t.markers))),e.addNode(e.buffer.writeElements(o,-i).finish($.CodeBlock,a-i),i),!0},FencedCode(e,t){let n=_6(t);if(n<0)return!1;let r=e.lineStart+t.pos,i=t.next,a=n-t.pos,o=t.skipSpace(n),s=g6(t.text,t.text.length,o),c=[X6($.CodeMark,r,r+a)];o<s&&c.push(X6($.CodeInfo,e.lineStart+o,e.lineStart+s));for(let n=!0,r=!0,o=!1;e.nextLine()&&t.depth>=e.stack.length;n=!1){let s=t.pos;if(t.indent-t.baseIndent<4)for(;s<t.text.length&&t.text.charCodeAt(s)==i;)s++;if(s-t.pos>=a&&t.skipSpace(s)==t.text.length){for(let e of t.markers)c.push(e);r&&o&&j6(c,e.lineStart-1,e.lineStart),c.push(X6($.CodeMark,e.lineStart+t.pos,e.lineStart+s)),e.nextLine();break}else{o=!0,n||(j6(c,e.lineStart-1,e.lineStart),r=!1);for(let e of t.markers)c.push(e);let i=e.lineStart+t.basePos,a=e.lineStart+t.text.length;i<a&&(j6(c,i,a),r=!1)}}return e.addNode(e.buffer.writeElements(c,-r).finish($.FencedCode,e.prevLineEnd()-r),r),!0},Blockquote(e,t){let n=v6(t);return n<0?!1:(e.startContext($.Blockquote,t.pos),e.addNode($.QuoteMark,e.lineStart+t.pos,e.lineStart+t.pos+1),t.moveBase(t.pos+n),null)},HorizontalRule(e,t){if(y6(t,e,!1)<0)return!1;let n=e.lineStart+t.pos;return e.nextLine(),e.addNode($.HorizontalRule,n),!0},BulletList(e,t){let n=x6(t,e,!1);if(n<0)return!1;e.block.type!=$.BulletList&&e.startContext($.BulletList,t.basePos,t.next);let r=A6(t,t.pos+1);return e.startContext($.ListItem,t.basePos,r-t.baseIndent),e.addNode($.ListMark,e.lineStart+t.pos,e.lineStart+t.pos+n),t.moveBaseColumn(r),null},OrderedList(e,t){let n=S6(t,e,!1);if(n<0)return!1;e.block.type!=$.OrderedList&&e.startContext($.OrderedList,t.basePos,t.text.charCodeAt(t.pos+n-1));let r=A6(t,t.pos+n);return e.startContext($.ListItem,t.basePos,r-t.baseIndent),e.addNode($.ListMark,e.lineStart+t.pos,e.lineStart+t.pos+n),t.moveBaseColumn(r),null},ATXHeading(e,t){let n=C6(t);if(n<0)return!1;let r=t.pos,i=e.lineStart+r,a=g6(t.text,t.text.length,r),o=a;for(;o>r&&t.text.charCodeAt(o-1)==t.next;)o--;(o==a||o==r||!m6(t.text.charCodeAt(o-1)))&&(o=t.text.length);let s=e.buffer.write($.HeaderMark,0,n).writeElements(e.parser.parseInline(t.text.slice(r+n+1,o),i+n+1),-i);o<t.text.length&&s.write($.HeaderMark,o-r,a-r);let c=s.finish($.ATXHeading1-1+n,t.text.length-r);return e.nextLine(),e.addNode(c,i),!0},HTMLBlock(e,t){let n=k6(t,e,!1);if(n<0)return!1;let r=e.lineStart+t.pos,i=O6[n][1],a=[],o=i!=T6;for(;!i.test(t.text)&&e.nextLine();){if(t.depth<e.stack.length){o=!1;break}for(let e of t.markers)a.push(e)}o&&e.nextLine();let s=i==E6?$.CommentBlock:i==D6?$.ProcessingInstructionBlock:$.HTMLBlock,c=e.prevLineEnd();return e.addNode(e.buffer.writeElements(a,-r).finish(s,c-r),r),!0},SetextHeading:void 0},N6=class{constructor(e){this.stage=0,this.elts=[],this.pos=0,this.start=e.start,this.advance(e.content)}nextLine(e,t,n){if(this.stage==-1)return!1;let r=n.content+`
|
|
188
|
+
`+t.scrub(),i=this.advance(r);return i>-1&&i<r.length?this.complete(e,n,i):!1}finish(e,t){return(this.stage==2||this.stage==3)&&h6(t.content,this.pos)==t.content.length?this.complete(e,t,t.content.length):!1}complete(e,t,n){return e.addLeafElement(t,X6($.LinkReference,this.start,this.start+n,this.elts)),!0}nextStage(e){return e?(this.pos=e.to-this.start,this.elts.push(e),this.stage++,!0):(e===!1&&(this.stage=-1),!1)}advance(e){for(;;)if(this.stage==-1)return-1;else if(this.stage==0){if(!this.nextStage(c8(e,this.pos,this.start,!0)))return-1;if(e.charCodeAt(this.pos)!=58)return this.stage=-1;this.elts.push(X6($.LinkMark,this.pos+this.start,this.pos+this.start+1)),this.pos++}else if(this.stage==1){if(!this.nextStage(o8(e,h6(e,this.pos),this.start)))return-1}else if(this.stage==2){let t=h6(e,this.pos),n=0;if(t>this.pos){let r=s8(e,t,this.start);if(r){let t=P6(e,r.to-this.start);t>0&&(this.nextStage(r),n=t)}}return n||=P6(e,this.pos),n>0&&n<e.length?n:-1}else return P6(e,this.pos)}};function P6(e,t){for(;t<e.length;t++){let n=e.charCodeAt(t);if(n==10)break;if(!m6(n))return-1}return t}var F6=class{nextLine(e,t,n){let r=t.depth<e.stack.length?-1:w6(t),i=t.next;if(r<0)return!1;let a=X6($.HeaderMark,e.lineStart+t.pos,e.lineStart+r);return e.nextLine(),e.addLeafElement(n,X6(i==61?$.SetextHeading1:$.SetextHeading2,n.start,e.prevLineEnd(),[...e.parser.parseInline(n.content,n.start),a])),!0}finish(){return!1}},I6={LinkReference(e,t){return t.content.charCodeAt(0)==91?new N6(t):null},SetextHeading(){return new F6}},L6=[(e,t)=>C6(t)>=0,(e,t)=>_6(t)>=0,(e,t)=>v6(t)>=0,(e,t)=>x6(t,e,!0)>=0,(e,t)=>S6(t,e,!0)>=0,(e,t)=>y6(t,e,!0)>=0,(e,t)=>k6(t,e,!0)>=0],R6={text:``,end:0},z6=class{constructor(e,t,n,r){this.parser=e,this.input=t,this.ranges=r,this.line=new d6,this.atEnd=!1,this.reusePlaceholders=new Map,this.stoppedAt=null,this.rangeI=0,this.to=r[r.length-1].to,this.lineStart=this.absoluteLineStart=this.absoluteLineEnd=r[0].from,this.block=l6.create($.Document,0,this.lineStart,0,0),this.stack=[this.block],this.fragments=n.length?new f8(n,t):null,this.readLine()}get parsedPos(){return this.absoluteLineStart}advance(){if(this.stoppedAt!=null&&this.absoluteLineStart>this.stoppedAt)return this.finish();let{line:e}=this;for(;;){for(let t=0;;){let n=e.depth<this.stack.length?this.stack[this.stack.length-1]:null;for(;t<e.markers.length&&(!n||e.markers[t].from<n.end);){let n=e.markers[t++];this.addNode(n.type,n.from,n.to)}if(!n)break;this.finishContext()}if(e.pos<e.text.length)break;if(!this.nextLine())return this.finish()}if(this.fragments&&this.reuseFragment(e.basePos))return null;start:for(;;){for(let t of this.parser.blockParsers)if(t){let n=t(this,e);if(n!=0){if(n==1)return null;e.forward();continue start}}break}let t=new u6(this.lineStart+e.pos,e.text.slice(e.pos));for(let e of this.parser.leafBlockParsers)if(e){let n=e(this,t);n&&t.parsers.push(n)}lines:for(;this.nextLine()&&e.pos!=e.text.length;){if(e.indent<e.baseIndent+4){for(let n of this.parser.endLeafBlock)if(n(this,e,t))break lines}for(let n of t.parsers)if(n.nextLine(this,e,t))return null;t.content+=`
|
|
189
|
+
`+e.scrub();for(let n of e.markers)t.marks.push(n)}return this.finishLeaf(t),null}stopAt(e){if(this.stoppedAt!=null&&this.stoppedAt<e)throw RangeError(`Can't move stoppedAt forward`);this.stoppedAt=e}reuseFragment(e){if(!this.fragments.moveTo(this.absoluteLineStart+e,this.absoluteLineStart)||!this.fragments.matches(this.block.hash))return!1;let t=this.fragments.takeNodes(this);return t?(this.absoluteLineStart+=t,this.lineStart=p8(this.absoluteLineStart,this.ranges),this.moveRangeI(),this.absoluteLineStart<this.to?(this.lineStart++,this.absoluteLineStart++,this.readLine()):(this.atEnd=!0,this.readLine()),!0):!1}get depth(){return this.stack.length}parentType(e=this.depth-1){return this.parser.nodeSet.types[this.stack[e].type]}nextLine(){return this.lineStart+=this.line.text.length,this.absoluteLineEnd>=this.to?(this.absoluteLineStart=this.absoluteLineEnd,this.atEnd=!0,this.readLine(),!1):(this.lineStart++,this.absoluteLineStart=this.absoluteLineEnd+1,this.moveRangeI(),this.readLine(),!0)}peekLine(){return this.scanLine(this.absoluteLineEnd+1).text}moveRangeI(){for(;this.rangeI<this.ranges.length-1&&this.absoluteLineStart>=this.ranges[this.rangeI].to;)this.rangeI++,this.absoluteLineStart=Math.max(this.absoluteLineStart,this.ranges[this.rangeI].from)}scanLine(e){let t=R6;if(t.end=e,e>=this.to)t.text=``;else if(t.text=this.lineChunkAt(e),t.end+=t.text.length,this.ranges.length>1){let e=this.absoluteLineStart,n=this.rangeI;for(;this.ranges[n].to<t.end;){n++;let r=this.ranges[n].from,i=this.lineChunkAt(r);t.end=r+i.length,t.text=t.text.slice(0,this.ranges[n-1].to-e)+i,e=t.end-t.text.length}}return t}readLine(){let{line:e}=this,{text:t,end:n}=this.scanLine(this.absoluteLineStart);for(this.absoluteLineEnd=n,e.reset(t);e.depth<this.stack.length;e.depth++){let t=this.stack[e.depth],n=this.parser.skipContextMarkup[t.type];if(!n)throw Error(`Unhandled block context `+$[t.type]);let r=this.line.markers.length;if(!n(t,this,e)){this.line.markers.length>r&&(t.end=this.line.markers[this.line.markers.length-1].to),e.forward();break}e.forward()}}lineChunkAt(e){let t=this.input.chunk(e),n;if(this.input.lineChunks)n=t==`
|
|
190
|
+
`?``:t;else{let e=t.indexOf(`
|
|
191
|
+
`);n=e<0?t:t.slice(0,e)}return e+n.length>this.to?n.slice(0,this.to-e):n}prevLineEnd(){return this.atEnd?this.lineStart:this.lineStart-1}startContext(e,t,n=0){this.block=l6.create(e,n,this.lineStart+t,this.block.hash,this.lineStart+this.line.text.length),this.stack.push(this.block)}startComposite(e,t,n=0){this.startContext(this.parser.getNodeType(e),t,n)}addNode(e,t,n){typeof e==`number`&&(e=new p(this.parser.nodeSet.types[e],K6,K6,(n??this.prevLineEnd())-t)),this.block.addChild(e,t-this.block.from)}addElement(e){this.block.addChild(e.toTree(this.parser.nodeSet),e.from-this.block.from)}addLeafElement(e,t){this.addNode(this.buffer.writeElements(u8(t.children,e.marks),-t.from).finish(t.type,t.to-t.from),t.from)}finishContext(){let e=this.stack.pop(),t=this.stack[this.stack.length-1];t.addChild(e.toTree(this.parser.nodeSet),e.from-t.from),this.block=t}finish(){for(;this.stack.length>1;)this.finishContext();return this.addGaps(this.block.toTree(this.parser.nodeSet,this.lineStart))}addGaps(e){return this.ranges.length>1?B6(this.ranges,0,e.topNode,this.ranges[0].from,this.reusePlaceholders):e}finishLeaf(e){for(let t of e.parsers)if(t.finish(this,e))return;let t=u8(this.parser.parseInline(e.content,e.start),e.marks);this.addNode(this.buffer.writeElements(t,-e.start).finish($.Paragraph,e.content.length),e.start)}elt(e,t,n,r){return typeof e==`string`?X6(this.parser.getNodeType(e),t,n,r):new Y6(e,t)}get buffer(){return new q6(this.parser.nodeSet)}};function B6(e,t,n,r,i){let a=e[t].to,o=[],s=[],c=n.from+r;function l(n,i){for(;i?n>=a:n>a;){let i=e[t+1].from-a;r+=i,n+=i,t++,a=e[t].to}}for(let u=n.firstChild;u;u=u.nextSibling){l(u.from+r,!0);let n=u.from+r,d,f=i.get(u.tree);f?d=f:u.to+r>a?(d=B6(e,t,u,r,i),l(u.to+r,!1)):d=u.toTree(),o.push(d),s.push(n-c)}return l(n.to+r,!1),new p(n.type,o,s,n.to+r-c,n.tree?n.tree.propValues:void 0)}var V6=class e extends ae{constructor(e,t,n,r,i,a,o,s,c){super(),this.nodeSet=e,this.blockParsers=t,this.leafBlockParsers=n,this.blockNames=r,this.endLeafBlock=i,this.skipContextMarkup=a,this.inlineParsers=o,this.inlineNames=s,this.wrappers=c,this.nodeTypes=Object.create(null);for(let t of e.types)this.nodeTypes[t.name]=t.id}createParse(e,t,n){let r=new z6(this,e,t,n);for(let i of this.wrappers)r=i(r,e,t,n);return r}configure(t){let n=U6(t);if(!n)return this;let{nodeSet:i,skipContextMarkup:a}=this,o=this.blockParsers.slice(),s=this.leafBlockParsers.slice(),c=this.blockNames.slice(),l=this.inlineParsers.slice(),u=this.inlineNames.slice(),d=this.endLeafBlock.slice(),f=this.wrappers;if(H6(n.defineNodes)){a=Object.assign({},a);let e=i.types.slice(),t;for(let i of n.defineNodes){let{name:n,block:o,composite:s,style:c}=typeof i==`string`?{name:i}:i;if(e.some(e=>e.name==n))continue;s&&(a[e.length]=(e,t,n)=>s(t,n,e.value));let l=e.length,u=s?[`Block`,`BlockContext`]:o?l>=$.ATXHeading1&&l<=$.SetextHeading2?[`Block`,`LeafBlock`,`Heading`]:[`Block`,`LeafBlock`]:void 0;e.push(m.define({id:l,name:n,props:u&&[[r.group,u]]})),c&&(t||={},Array.isArray(c)||c instanceof h?t[n]=c:Object.assign(t,c))}i=new re(e),t&&(i=i.extend(y(t)))}if(H6(n.props)&&(i=i.extend(...n.props)),H6(n.remove))for(let e of n.remove){let t=this.blockNames.indexOf(e),n=this.inlineNames.indexOf(e);t>-1&&(o[t]=s[t]=void 0),n>-1&&(l[n]=void 0)}if(H6(n.parseBlock))for(let e of n.parseBlock){let t=c.indexOf(e.name);if(t>-1)o[t]=e.parse,s[t]=e.leaf;else{let t=e.before?W6(c,e.before):e.after?W6(c,e.after)+1:c.length-1;o.splice(t,0,e.parse),s.splice(t,0,e.leaf),c.splice(t,0,e.name)}e.endLeaf&&d.push(e.endLeaf)}if(H6(n.parseInline))for(let e of n.parseInline){let t=u.indexOf(e.name);if(t>-1)l[t]=e.parse;else{let t=e.before?W6(u,e.before):e.after?W6(u,e.after)+1:u.length-1;l.splice(t,0,e.parse),u.splice(t,0,e.name)}}return n.wrap&&(f=f.concat(n.wrap)),new e(i,o,s,c,d,a,l,u,f)}getNodeType(e){let t=this.nodeTypes[e];if(t==null)throw RangeError(`Unknown node type '${e}'`);return t}parseInline(e,t){let n=new l8(this,e,t);outer:for(let e=t;e<n.end;){let t=n.char(e);for(let r of this.inlineParsers)if(r){let i=r(n,t,e);if(i>=0){e=i;continue outer}}e++}return n.resolveMarkers(0)}};function H6(e){return e!=null&&e.length>0}function U6(e){if(!Array.isArray(e))return e;if(e.length==0)return null;let t=U6(e[0]);if(e.length==1)return t;let n=U6(e.slice(1));if(!n||!t)return t||n;let r=(e,t)=>(e||K6).concat(t||K6),i=t.wrap,a=n.wrap;return{props:r(t.props,n.props),defineNodes:r(t.defineNodes,n.defineNodes),parseBlock:r(t.parseBlock,n.parseBlock),parseInline:r(t.parseInline,n.parseInline),remove:r(t.remove,n.remove),wrap:i?a?(e,t,n,r)=>i(a(e,t,n,r),t,n,r):i:a}}function W6(e,t){let n=e.indexOf(t);if(n<0)throw RangeError(`Position specified relative to unknown parser ${t}`);return n}var G6=[m.none];for(let e=1,t;t=$[e];e++)G6[e]=m.define({id:e,name:t,props:e>=$.Escape?[]:[[r.group,e in p6?[`Block`,`BlockContext`]:[`Block`,`LeafBlock`]]],top:t==`Document`});var K6=[],q6=class{constructor(e){this.nodeSet=e,this.content=[],this.nodes=[]}write(e,t,n,r=0){return this.content.push(e,t,n,4+r*4),this}writeElements(e,t=0){for(let n of e)n.writeTo(this,t);return this}finish(e,t){return p.build({buffer:this.content,nodeSet:this.nodeSet,reused:this.nodes,topID:e,length:t})}},J6=class{constructor(e,t,n,r=K6){this.type=e,this.from=t,this.to=n,this.children=r}writeTo(e,t){let n=e.content.length;e.writeElements(this.children,t),e.content.push(this.type,this.from+t,this.to+t,e.content.length+4-n)}toTree(e){return new q6(e).writeElements(this.children,-this.from).finish(this.type,this.to-this.from)}},Y6=class{constructor(e,t){this.tree=e,this.from=t}get to(){return this.from+this.tree.length}get type(){return this.tree.type.id}get children(){return K6}writeTo(e,t){e.nodes.push(this.tree),e.content.push(e.nodes.length-1,this.from+t,this.to+t,-1)}toTree(){return this.tree}};function X6(e,t,n,r){return new J6(e,t,n,r)}var Z6={resolve:`Emphasis`,mark:`EmphasisMark`},Q6={resolve:`Emphasis`,mark:`EmphasisMark`},$6={},e8={},t8=class{constructor(e,t,n,r){this.type=e,this.from=t,this.to=n,this.side=r}},n8=`!"#$%&'()*+,-./:;<=>?@[\\]^_\`{|}~`,r8=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\xA1\u2010-\u2027]/;try{r8=RegExp(`[\\p{S}|\\p{P}]`,`u`)}catch{}var i8={Escape(e,t,n){if(t!=92||n==e.end-1)return-1;let r=e.char(n+1);for(let t=0;t<32;t++)if(n8.charCodeAt(t)==r)return e.append(X6($.Escape,n,n+2));return-1},Entity(e,t,n){if(t!=38)return-1;let r=/^(?:#\d+|#x[a-f\d]+|\w+);/i.exec(e.slice(n+1,n+31));return r?e.append(X6($.Entity,n,n+1+r[0].length)):-1},InlineCode(e,t,n){if(t!=96||n&&e.char(n-1)==96)return-1;let r=n+1;for(;r<e.end&&e.char(r)==96;)r++;let i=r-n,a=0;for(;r<e.end;r++)if(e.char(r)==96){if(a++,a==i&&e.char(r+1)!=96)return e.append(X6($.InlineCode,n,r+1,[X6($.CodeMark,n,n+i),X6($.CodeMark,r+1-i,r+1)]))}else a=0;return-1},HTMLTag(e,t,n){if(t!=60||n==e.end-1)return-1;let r=e.slice(n+1,e.end),i=/^(?:[a-z][-\w+.]+:[^\s>]+|[a-z\d.!#$%&'*+/=?^_`{|}~-]+@[a-z\d](?:[a-z\d-]{0,61}[a-z\d])?(?:\.[a-z\d](?:[a-z\d-]{0,61}[a-z\d])?)*)>/i.exec(r);if(i)return e.append(X6($.Autolink,n,n+1+i[0].length,[X6($.LinkMark,n,n+1),X6($.URL,n+1,n+i[0].length),X6($.LinkMark,n+i[0].length,n+1+i[0].length)]));let a=/^!--[^>](?:-[^-]|[^-])*?-->/i.exec(r);if(a)return e.append(X6($.Comment,n,n+1+a[0].length));let o=/^\?[^]*?\?>/.exec(r);if(o)return e.append(X6($.ProcessingInstruction,n,n+1+o[0].length));let s=/^(?:![A-Z][^]*?>|!\[CDATA\[[^]*?\]\]>|\/\s*[a-zA-Z][\w-]*\s*>|\s*[a-zA-Z][\w-]*(\s+[a-zA-Z:_][\w-.:]*(?:\s*=\s*(?:[^\s"'=<>`]+|'[^']*'|"[^"]*"))?)*\s*(\/\s*)?>)/.exec(r);return s?e.append(X6($.HTMLTag,n,n+1+s[0].length)):-1},Emphasis(e,t,n){if(t!=95&&t!=42)return-1;let r=n+1;for(;e.char(r)==t;)r++;let i=e.slice(n-1,n),a=e.slice(r,r+1),o=r8.test(i),s=r8.test(a),c=/\s|^$/.test(i),l=/\s|^$/.test(a),u=!l&&(!s||c||o),d=!c&&(!o||l||s),f=u&&(t==42||!d||o),p=d&&(t==42||!u||s);return e.append(new t8(t==95?Z6:Q6,n,r,!!f|(p?2:0)))},HardBreak(e,t,n){if(t==92&&e.char(n+1)==10)return e.append(X6($.HardBreak,n,n+2));if(t==32){let t=n+1;for(;e.char(t)==32;)t++;if(e.char(t)==10&&t>=n+2)return e.append(X6($.HardBreak,n,t+1))}return-1},Link(e,t,n){return t==91?e.append(new t8($6,n,n+1,1)):-1},Image(e,t,n){return t==33&&e.char(n+1)==91?e.append(new t8(e8,n,n+2,1)):-1},LinkEnd(e,t,n){if(t!=93)return-1;for(let t=e.parts.length-1;t>=0;t--){let r=e.parts[t];if(r instanceof t8&&(r.type==$6||r.type==e8)){if(!r.side||e.skipSpace(r.to)==n&&!/[(\[]/.test(e.slice(n+1,n+2)))return e.parts[t]=null,-1;let i=e.takeContent(t),a=e.parts[t]=a8(e,i,r.type==$6?$.Link:$.Image,r.from,n+1);if(r.type==$6)for(let n=0;n<t;n++){let t=e.parts[n];t instanceof t8&&t.type==$6&&(t.side=0)}return a.to}}return-1}};function a8(e,t,n,r,i){let{text:a}=e,o=e.char(i),s=i;if(t.unshift(X6($.LinkMark,r,r+(n==$.Image?2:1))),t.push(X6($.LinkMark,i-1,i)),o==40){let n=e.skipSpace(i+1),r=o8(a,n-e.offset,e.offset),o;r&&(n=e.skipSpace(r.to),n!=r.to&&(o=s8(a,n-e.offset,e.offset),o&&(n=e.skipSpace(o.to)))),e.char(n)==41&&(t.push(X6($.LinkMark,i,i+1)),s=n+1,r&&t.push(r),o&&t.push(o),t.push(X6($.LinkMark,n,s)))}else if(o==91){let n=c8(a,i-e.offset,e.offset,!1);n&&(t.push(n),s=n.to)}return X6(n,r,s,t)}function o8(e,t,n){if(e.charCodeAt(t)==60){for(let r=t+1;r<e.length;r++){let i=e.charCodeAt(r);if(i==62)return X6($.URL,t+n,r+1+n);if(i==60||i==10)return!1}return null}else{let r=0,i=t;for(let t=!1;i<e.length;i++){let n=e.charCodeAt(i);if(m6(n))break;if(t)t=!1;else if(n==40)r++;else if(n==41){if(!r)break;r--}else n==92&&(t=!0)}return i>t?X6($.URL,t+n,i+n):i==e.length?null:!1}}function s8(e,t,n){let r=e.charCodeAt(t);if(r!=39&&r!=34&&r!=40)return!1;let i=r==40?41:r;for(let r=t+1,a=!1;r<e.length;r++){let o=e.charCodeAt(r);if(a)a=!1;else if(o==i)return X6($.LinkTitle,t+n,r+1+n);else o==92&&(a=!0)}return null}function c8(e,t,n,r){for(let i=!1,a=t+1,o=Math.min(e.length,a+999);a<o;a++){let o=e.charCodeAt(a);if(i)i=!1;else if(o==93)return r?!1:X6($.LinkLabel,t+n,a+1+n);else{if(r&&!m6(o)&&(r=!1),o==91)return!1;o==92&&(i=!0)}}return null}var l8=class{constructor(e,t,n){this.parser=e,this.text=t,this.offset=n,this.parts=[]}char(e){return e>=this.end?-1:this.text.charCodeAt(e-this.offset)}get end(){return this.offset+this.text.length}slice(e,t){return this.text.slice(e-this.offset,t-this.offset)}append(e){return this.parts.push(e),e.to}addDelimiter(e,t,n,r,i){return this.append(new t8(e,t,n,!!r|(i?2:0)))}get hasOpenLink(){for(let e=this.parts.length-1;e>=0;e--){let t=this.parts[e];if(t instanceof t8&&(t.type==$6||t.type==e8))return!0}return!1}addElement(e){return this.append(e)}resolveMarkers(e){for(let t=e;t<this.parts.length;t++){let n=this.parts[t];if(!(n instanceof t8&&n.type.resolve&&n.side&2))continue;let r=n.type==Z6||n.type==Q6,i=n.to-n.from,a,o=t-1;for(;o>=e;o--){let e=this.parts[o];if(e instanceof t8&&e.side&1&&e.type==n.type&&!(r&&(n.side&1||e.side&2)&&(e.to-e.from+i)%3==0&&((e.to-e.from)%3||i%3))){a=e;break}}if(!a)continue;let s=n.type.resolve,c=[],l=a.from,u=n.to;if(r){let e=Math.min(2,a.to-a.from,i);l=a.to-e,u=n.from+e,s=e==1?`Emphasis`:`StrongEmphasis`}a.type.mark&&c.push(this.elt(a.type.mark,l,a.to));for(let e=o+1;e<t;e++)this.parts[e]instanceof J6&&c.push(this.parts[e]),this.parts[e]=null;n.type.mark&&c.push(this.elt(n.type.mark,n.from,u));let d=this.elt(s,l,u,c);this.parts[o]=r&&a.from!=l?new t8(a.type,a.from,l,a.side):null,(this.parts[t]=r&&n.to!=u?new t8(n.type,u,n.to,n.side):null)?this.parts.splice(t,0,d):this.parts[t]=d}let t=[];for(let n=e;n<this.parts.length;n++){let e=this.parts[n];e instanceof J6&&t.push(e)}return t}findOpeningDelimiter(e){for(let t=this.parts.length-1;t>=0;t--){let n=this.parts[t];if(n instanceof t8&&n.type==e&&n.side&1)return t}return null}takeContent(e){let t=this.resolveMarkers(e);return this.parts.length=e,t}getDelimiterAt(e){let t=this.parts[e];return t instanceof t8?t:null}skipSpace(e){return h6(this.text,e-this.offset)+this.offset}elt(e,t,n,r){return typeof e==`string`?X6(this.parser.getNodeType(e),t,n,r):new Y6(e,t)}};l8.linkStart=$6,l8.imageStart=e8;function u8(e,t){if(!t.length)return e;if(!e.length)return t;let n=e.slice(),r=0;for(let e of t){for(;r<n.length&&n[r].to<e.to;)r++;if(r<n.length&&n[r].from<e.from){let t=n[r];t instanceof J6&&(n[r]=new J6(t.type,t.from,t.to,u8(t.children,[e])))}else n.splice(r++,0,e)}return n}var d8=[$.CodeBlock,$.ListItem,$.OrderedList,$.BulletList],f8=class{constructor(e,t){this.fragments=e,this.input=t,this.i=0,this.fragment=null,this.fragmentEnd=-1,this.cursor=null,e.length&&(this.fragment=e[this.i++])}nextFragment(){this.fragment=this.i<this.fragments.length?this.fragments[this.i++]:null,this.cursor=null,this.fragmentEnd=-1}moveTo(e,t){for(;this.fragment&&this.fragment.to<=e;)this.nextFragment();if(!this.fragment||this.fragment.from>(e?e-1:0))return!1;if(this.fragmentEnd<0){let e=this.fragment.to;for(;e>0&&this.input.read(e-1,e)!=`
|
|
192
|
+
`;)e--;this.fragmentEnd=e?e-1:0}let n=this.cursor;n||(n=this.cursor=this.fragment.tree.cursor(),n.firstChild());let r=e+this.fragment.offset;for(;n.to<=r;)if(!n.parent())return!1;for(;;){if(n.from>=r)return this.fragment.from<=t;if(!n.childAfter(r))return!1}}matches(e){let t=this.cursor.tree;return t&&t.prop(r.contextHash)==e}takeNodes(e){let t=this.cursor,n=this.fragment.offset,r=this.fragmentEnd-+!!this.fragment.openEnd,i=e.absoluteLineStart,a=i,o=e.block.children.length,s=a,c=o;for(;;){if(t.to-n>r){if(t.type.isAnonymous&&t.firstChild())continue;break}let i=p8(t.from-n,e.ranges);if(t.to-n<=e.ranges[e.rangeI].to)e.addNode(t.tree,i);else{let n=new p(e.parser.nodeSet.types[$.Paragraph],[],[],0,e.block.hashProp);e.reusePlaceholders.set(n,t.tree),e.addNode(n,i)}if(t.type.is(`Block`)&&(d8.indexOf(t.type.id)<0?(a=t.to-n,o=e.block.children.length):(a=s,o=c),s=t.to-n,c=e.block.children.length),!t.nextSibling())break}for(;e.block.children.length>o;)e.block.children.pop(),e.block.positions.pop();return a-i}};function p8(e,t){let n=e;for(let r=1;r<t.length;r++){let i=t[r-1].to,a=t[r].from;i<e&&(n-=a-i)}return n}var m8=y({"Blockquote/...":k.quote,HorizontalRule:k.contentSeparator,"ATXHeading1/... SetextHeading1/...":k.heading1,"ATXHeading2/... SetextHeading2/...":k.heading2,"ATXHeading3/...":k.heading3,"ATXHeading4/...":k.heading4,"ATXHeading5/...":k.heading5,"ATXHeading6/...":k.heading6,"Comment CommentBlock":k.comment,Escape:k.escape,Entity:k.character,"Emphasis/...":k.emphasis,"StrongEmphasis/...":k.strong,"Link/... Image/...":k.link,"OrderedList/... BulletList/...":k.list,"BlockQuote/...":k.quote,"InlineCode CodeText":k.monospace,"URL Autolink":k.url,"HeaderMark HardBreak QuoteMark ListMark LinkMark EmphasisMark CodeMark":k.processingInstruction,"CodeInfo LinkLabel":k.labelName,LinkTitle:k.string,Paragraph:k.content}),h8=new V6(new re(G6).extend(m8),Object.keys(M6).map(e=>M6[e]),Object.keys(M6).map(e=>I6[e]),Object.keys(M6),L6,p6,Object.keys(i8).map(e=>i8[e]),Object.keys(i8),[]);function g8(e,t,n){let r=[];for(let i=e.firstChild,a=t;;i=i.nextSibling){let e=i?i.from:n;if(e>a&&r.push({from:a,to:e}),!i)break;a=i.to}return r}function _8(e){let{codeParser:t,htmlParser:n}=e;return{wrap:v((e,r)=>{let i=e.type.id;if(t&&(i==$.CodeBlock||i==$.FencedCode)){let n=``;if(i==$.FencedCode){let t=e.node.getChild($.CodeInfo);t&&(n=r.read(t.from,t.to))}let a=t(n);if(a)return{parser:a,overlay:e=>e.type.id==$.CodeText,bracketed:i==$.FencedCode}}else if(n&&(i==$.HTMLBlock||i==$.HTMLTag||i==$.CommentBlock))return{parser:n,overlay:g8(e.node,e.from,e.to)};return null})}}var v8={resolve:`Strikethrough`,mark:`StrikethroughMark`},y8={defineNodes:[{name:`Strikethrough`,style:{"Strikethrough/...":k.strikethrough}},{name:`StrikethroughMark`,style:k.processingInstruction}],parseInline:[{name:`Strikethrough`,parse(e,t,n){if(t!=126||e.char(n+1)!=126||e.char(n+2)==126)return-1;let r=e.slice(n-1,n),i=e.slice(n+2,n+3),a=/\s|^$/.test(r),o=/\s|^$/.test(i),s=r8.test(r),c=r8.test(i);return e.addDelimiter(v8,n,n+2,!o&&(!c||a||s),!a&&(!s||o||c))},after:`Emphasis`}]};function b8(e,t,n=0,r,i=0){let a=0,o=!0,s=-1,c=-1,l=!1,u=()=>{r.push(e.elt(`TableCell`,i+s,i+c,e.parser.parseInline(t.slice(s,c),i+s)))};for(let d=n;d<t.length;d++){let n=t.charCodeAt(d);n==124&&!l?((!o||s>-1)&&a++,o=!1,r&&(s>-1&&u(),r.push(e.elt(`TableDelimiter`,d+i,d+i+1))),s=c=-1):(l||n!=32&&n!=9)&&(s<0&&(s=d),c=d+1),l=!l&&n==92}return s>-1&&(a++,r&&u()),a}function x8(e,t){for(let n=t;n<e.length;n++){let t=e.charCodeAt(n);if(t==124)return!0;t==92&&n++}return!1}var S8=/^\|?(\s*:?-+:?\s*\|)+(\s*:?-+:?\s*)?$/,C8=class{constructor(){this.rows=null}nextLine(e,t,n){if(this.rows==null){this.rows=!1;let r;if((t.next==45||t.next==58||t.next==124)&&S8.test(r=t.text.slice(t.pos))){let i=[];b8(e,n.content,0,i,n.start)==b8(e,r,t.pos)&&(this.rows=[e.elt(`TableHeader`,n.start,n.start+n.content.length,i),e.elt(`TableDelimiter`,e.lineStart+t.pos,e.lineStart+t.text.length)])}}else if(this.rows){let n=[];b8(e,t.text,t.pos,n,e.lineStart),this.rows.push(e.elt(`TableRow`,e.lineStart+t.pos,e.lineStart+t.text.length,n))}return!1}finish(e,t){return this.rows?(e.addLeafElement(t,e.elt(`Table`,t.start,t.start+t.content.length,this.rows)),!0):!1}},w8={defineNodes:[{name:`Table`,block:!0},{name:`TableHeader`,style:{"TableHeader/...":k.heading}},`TableRow`,{name:`TableCell`,style:k.content},{name:`TableDelimiter`,style:k.processingInstruction}],parseBlock:[{name:`Table`,leaf(e,t){return x8(t.content,0)?new C8:null},endLeaf(e,t,n){if(n.parsers.some(e=>e instanceof C8)||!x8(t.text,t.basePos))return!1;let r=e.peekLine();return S8.test(r)&&b8(e,t.text,t.basePos)==b8(e,r,t.basePos)},before:`SetextHeading`}]},T8=class{nextLine(){return!1}finish(e,t){return e.addLeafElement(t,e.elt(`Task`,t.start,t.start+t.content.length,[e.elt(`TaskMarker`,t.start,t.start+3),...e.parser.parseInline(t.content.slice(3),t.start+3)])),!0}},E8={defineNodes:[{name:`Task`,block:!0,style:k.list},{name:`TaskMarker`,style:k.atom}],parseBlock:[{name:`TaskList`,leaf(e,t){return/^\[[ xX]\][ \t]/.test(t.content)&&e.parentType().name==`ListItem`?new T8:null},after:`SetextHeading`}]},D8=/(www\.)|(https?:\/\/)|([\w.+-]{1,100}@)|(mailto:|xmpp:)/gy,O8=/[\w-]+(\.[\w-]+)+(\/[^\s<]*)?/gy,k8=/[\w-]+\.[\w-]+($|\/)/,A8=/[\w.+-]+@[\w-]+(\.[\w.-]+)+/gy,j8=/\/[a-zA-Z\d@.]+/gy;function M8(e,t,n,r){let i=0;for(let a=t;a<n;a++)e[a]==r&&i++;return i}function N8(e,t){O8.lastIndex=t;let n=O8.exec(e);if(!n||k8.exec(n[0])[0].indexOf(`_`)>-1)return-1;let r=t+n[0].length;for(;;){let n=e[r-1],i;if(/[?!.,:*_~]/.test(n)||n==`)`&&M8(e,t,r,`)`)>M8(e,t,r,`(`))r--;else if(n==`;`&&(i=/&(?:#\d+|#x[a-f\d]+|\w+);$/.exec(e.slice(t,r))))r=t+i.index;else break}return r}function P8(e,t){A8.lastIndex=t;let n=A8.exec(e);if(!n)return-1;let r=n[0][n[0].length-1];return r==`_`||r==`-`?-1:t+n[0].length-+(r==`.`)}var F8=[w8,E8,y8,{parseInline:[{name:`Autolink`,parse(e,t,n){let r=n-e.offset;if(r&&/\w/.test(e.text[r-1]))return-1;D8.lastIndex=r;let i=D8.exec(e.text),a=-1;return!i||(i[1]||i[2]?(a=N8(e.text,r+i[0].length),a>-1&&e.hasOpenLink&&(a=r+/([^\[\]]|\[[^\]]*\])*/.exec(e.text.slice(r,a))[0].length)):i[3]?a=P8(e.text,r):(a=P8(e.text,r+i[0].length),a>-1&&i[0]==`xmpp:`&&(j8.lastIndex=a,i=j8.exec(e.text),i&&(a=i.index+i[0].length))),a<0)?-1:(e.addElement(e.elt(`URL`,n,a+e.offset)),a+e.offset)}}]}];function I8(e,t,n){return(r,i,a)=>{if(i!=e||r.char(a+1)==e)return-1;let o=[r.elt(n,a,a+1)];for(let i=a+1;i<r.end;i++){let s=r.char(i);if(s==e)return r.addElement(r.elt(t,a,i+1,o.concat(r.elt(n,i,i+1))));if(s==92&&o.push(r.elt(`Escape`,i,i+++2)),m6(s))break}return-1}}var L8={defineNodes:[{name:`Superscript`,style:k.special(k.content)},{name:`SuperscriptMark`,style:k.processingInstruction}],parseInline:[{name:`Superscript`,parse:I8(94,`Superscript`,`SuperscriptMark`)}]},R8={defineNodes:[{name:`Subscript`,style:k.special(k.content)},{name:`SubscriptMark`,style:k.processingInstruction}],parseInline:[{name:`Subscript`,parse:I8(126,`Subscript`,`SubscriptMark`)}]},z8={defineNodes:[{name:`Emoji`,style:k.character}],parseInline:[{name:`Emoji`,parse(e,t,n){let r;return t!=58||!(r=/^[a-zA-Z_0-9]+:/.exec(e.slice(n+1,e.end)))?-1:e.addElement(e.elt(`Emoji`,n,n+1+r[0].length))}}]},B8=dt({commonmarkLanguage:()=>Y8,deleteMarkupBackward:()=>l5,insertNewlineContinueMarkup:()=>i5,insertNewlineContinueMarkupCommand:()=>r5,markdown:()=>f5,markdownKeymap:()=>u5,markdownLanguage:()=>X8,pasteURLAsLink:()=>_5}),V8=ce({commentTokens:{block:{open:`<!--`,close:`-->`}}}),H8=new r,U8=h8.configure({props:[a.add(e=>!e.is(`Block`)||e.is(`Document`)||W8(e)!=null||G8(e)?void 0:(e,t)=>({from:t.doc.lineAt(e.from).to,to:e.to})),H8.add(W8),s.add({Document:()=>null}),De.add({Document:V8})]});function W8(e){let t=/^(?:ATX|Setext)Heading(\d)$/.exec(e.name);return t?+t[1]:void 0}function G8(e){return e.name==`OrderedList`||e.name==`BulletList`}function K8(e,t){let n=e;for(;;){let e=n.nextSibling,r;if(!e||(r=W8(e.type))!=null&&r<=t)break;n=e}return n.to}var q8=Ze.of((e,t,n)=>{for(let r=d(e).resolveInner(n,-1);r&&!(r.from<t);r=r.parent){let e=r.type.prop(H8);if(e==null)continue;let t=K8(r,e);if(t>n)return{from:n,to:t}}return null});function J8(e){return new me(V8,e,[],`markdown`)}var Y8=J8(U8),X8=J8(U8.configure([F8,R8,L8,z8,{props:[a.add({Table:(e,t)=>({from:t.doc.lineAt(e.from).to,to:e.to})})]}]));function Z8(e,t){return n=>{if(n&&e){let t=null;if(n=/\S*/.exec(n)[0],t=typeof e==`function`?e(n):F.matchLanguageName(e,n,!0),t instanceof F)return t.support?t.support.language.parser:ge.getSkippingParser(t.load());if(t)return t.parser}return t?t.parser:null}}var Q8=class{constructor(e,t,n,r,i,a,o){this.node=e,this.from=t,this.to=n,this.spaceBefore=r,this.spaceAfter=i,this.type=a,this.item=o}blank(e,t=!0){let n=this.spaceBefore+(this.node.name==`Blockquote`?`>`:``);if(e!=null){for(;n.length<e;)n+=` `;return n}else{for(let e=this.to-this.from-n.length-this.spaceAfter.length;e>0;e--)n+=` `;return n+(t?this.spaceAfter:``)}}marker(e,t){let n=this.node.name==`OrderedList`?String(+e5(this.item,e)[2]+t):``;return this.spaceBefore+n+this.type+this.spaceAfter}};function $8(e,t){let n=[],r=[];for(let t=e;t;t=t.parent){if(t.name==`FencedCode`)return r;(t.name==`ListItem`||t.name==`Blockquote`)&&n.push(t)}for(let e=n.length-1;e>=0;e--){let i=n[e],a,o=t.lineAt(i.from),s=i.from-o.from;if(i.name==`Blockquote`&&(a=/^ *>( ?)/.exec(o.text.slice(s))))r.push(new Q8(i,s,s+a[0].length,``,a[1],`>`,null));else if(i.name==`ListItem`&&i.parent.name==`OrderedList`&&(a=/^( *)\d+([.)])( *)/.exec(o.text.slice(s)))){let e=a[3],t=a[0].length;e.length>=4&&(e=e.slice(0,e.length-4),t-=4),r.push(new Q8(i.parent,s,s+t,a[1],e,a[2],i))}else if(i.name==`ListItem`&&i.parent.name==`BulletList`&&(a=/^( *)([-+*])( {1,4}\[[ xX]\])?( +)/.exec(o.text.slice(s)))){let e=a[4],t=a[0].length;e.length>4&&(e=e.slice(0,e.length-4),t-=4);let n=a[2];a[3]&&(n+=a[3].replace(/[xX]/,` `)),r.push(new Q8(i.parent,s,s+t,a[1],e,n,i))}}return r}function e5(e,t){return/^(\s*)(\d+)(?=[.)])/.exec(t.sliceString(e.from,e.from+10))}function t5(e,t,n,r=0){for(let i=-1,a=e;;){if(a.name==`ListItem`){let e=e5(a,t),o=+e[2];if(i>=0){if(o!=i+1)return;n.push({from:a.from+e[1].length,to:a.from+e[0].length,insert:String(i+2+r)})}i=o}let e=a.nextSibling;if(!e)break;a=e}}function n5(e,n){let r=/^[ \t]*/.exec(e)[0].length;if(!r||n.facet(t)!=` `)return e;let i=rt(e,4,r),a=``;for(let e=i;e>0;)e>=4?(a+=` `,e-=4):(a+=` `,e--);return a+e.slice(r)}var r5=(e={})=>({state:t,dispatch:n})=>{let r=d(t),{doc:i}=t,a=null,o=t.changeByRange(n=>{if(!n.empty||!X8.isActiveAt(t,n.from,-1)&&!X8.isActiveAt(t,n.from,1))return a={range:n};let o=n.from,s=i.lineAt(o),c=$8(r.resolveInner(o,-1),i);for(;c.length&&c[c.length-1].from>o-s.from;)c.pop();if(!c.length)return a={range:n};let l=c[c.length-1];if(l.to-l.spaceAfter.length>o-s.from)return a={range:n};let u=o>=l.to-l.spaceAfter.length&&!/\S/.test(s.text.slice(l.to));if(l.item&&u){let n=l.node.firstChild,r=l.node.getChild(`ListItem`,`ListItem`);if(n.to>=o||r&&r.to<o||s.from>0&&!/[^\s>]/.test(i.lineAt(s.from-1).text)||e.nonTightLists===!1){let e=c.length>1?c[c.length-2]:null,t,n=``;e&&e.item?(t=s.from+e.from,n=e.marker(i,1)):t=s.from+(e?e.to:0);let r=[{from:t,to:o,insert:n}];return l.node.name==`OrderedList`&&t5(l.item,i,r,-2),e&&e.node.name==`OrderedList`&&t5(e.item,i,r),{range:I.cursor(t+n.length),changes:r}}else{let e=s5(c,t,s);return{range:I.cursor(o+e.length+1),changes:{from:s.from,insert:e+t.lineBreak}}}}if(l.node.name==`Blockquote`&&u&&s.from){let e=i.lineAt(s.from-1),r=/>\s*$/.exec(e.text);if(r&&r.index==l.from){let i=t.changes([{from:e.from+r.index,to:e.to},{from:s.from+l.from,to:s.to}]);return{range:n.map(i),changes:i}}}let d=[];l.node.name==`OrderedList`&&t5(l.item,i,d);let f=l.item&&l.item.from<s.from,p=``;if(!f||/^[\s\d.)\-+*>]*/.exec(s.text)[0].length>=l.to)for(let e=0,t=c.length-1;e<=t;e++)p+=e==t&&!f?c[e].marker(i,1):c[e].blank(e<t?rt(s.text,4,c[e+1].from)-p.length:null);let m=o;for(;m>s.from&&/\s/.test(s.text.charAt(m-s.from-1));)m--;return p=n5(p,t),o5(l.node,t.doc)&&(p=s5(c,t,s)+t.lineBreak+p),d.push({from:m,to:o,insert:t.lineBreak+p}),{range:I.cursor(m+p.length+1),changes:d}});return a?!1:(n(t.update(o,{scrollIntoView:!0,userEvent:`input`})),!0)},i5=r5();function a5(e){return e.name==`QuoteMark`||e.name==`ListMark`}function o5(e,t){if(e.name!=`OrderedList`&&e.name!=`BulletList`)return!1;let n=e.firstChild,r=e.getChild(`ListItem`,`ListItem`);if(!r)return!1;let i=t.lineAt(n.to),a=t.lineAt(r.from),o=/^[\s>]*$/.test(i.text);return i.number+ +!o<a.number}function s5(e,t,n){let r=``;for(let t=0,i=e.length-2;t<=i;t++)r+=e[t].blank(t<i?rt(n.text,4,e[t+1].from)-r.length:null,t<i);return n5(r,t)}function c5(e,t){let n=e.resolveInner(t,-1),r=t;a5(n)&&(r=n.from,n=n.parent);for(let e;e=n.childBefore(r);)if(a5(e))r=e.from;else if(e.name==`OrderedList`||e.name==`BulletList`)n=e.lastChild,r=n.to;else break;return n}var l5=({state:e,dispatch:t})=>{let n=d(e),r=null,i=e.changeByRange(t=>{let i=t.from,{doc:a}=e;if(t.empty&&X8.isActiveAt(e,t.from)){let t=a.lineAt(i),r=$8(c5(n,i),a);if(r.length){let n=r[r.length-1],a=n.to-n.spaceAfter.length+ +!!n.spaceAfter;if(i-t.from>a&&!/\S/.test(t.text.slice(a,i-t.from)))return{range:I.cursor(t.from+a),changes:{from:t.from+a,to:i}};if(i-t.from==a&&(!n.item||t.from<=n.item.from||!/\S/.test(t.text.slice(0,n.to)))){let r=t.from+n.from;if(n.item&&n.node.from<n.item.from&&/\S/.test(t.text.slice(n.from,n.to))){let i=n.blank(rt(t.text,4,n.to)-rt(t.text,4,n.from));return r==t.from&&(i=n5(i,e)),{range:I.cursor(r+i.length),changes:{from:r,to:t.from+n.to,insert:i}}}if(r<i)return{range:I.cursor(r),changes:{from:r,to:i}}}}}return r={range:t}});return r?!1:(t(e.update(i,{scrollIntoView:!0,userEvent:`delete`})),!0)},u5=[{key:`Enter`,run:i5},{key:`Backspace`,run:l5}],d5=yQ({matchClosingTags:!1});function f5(e={}){let{codeLanguages:t,defaultCodeLanguage:n,addKeymap:r=!0,base:{parser:i}=Y8,completeHTMLTags:a=!0,pasteURLAsLink:o=!0,htmlTagLanguage:s=d5}=e;if(!(i instanceof V6))throw RangeError("Base parser provided to `markdown` should be a Markdown parser");let c=e.extensions?[e.extensions]:[],l=[s.support,q8],u;o&&l.push(_5),n instanceof qe?(l.push(n.support),u=n.language):n&&(u=n);let d=t||u?Z8(t,u):void 0;c.push(_8({codeParser:d,htmlParser:s.language.parser})),r&&l.push(E.high(je.of(u5)));let f=J8(i.configure(c));return a&&l.push(f.data.of({autocomplete:p5})),new qe(f,l)}function p5(e){let{state:t,pos:n}=e,r=/<[:\-\.\w\u00b7-\uffff]*$/.exec(t.sliceDoc(n-25,n));if(!r)return null;let i=d(t).resolveInner(n,-1);for(;i&&!i.type.isTop;){if(i.name==`CodeBlock`||i.name==`FencedCode`||i.name==`ProcessingInstructionBlock`||i.name==`CommentBlock`||i.name==`Link`||i.name==`Image`)return null;i=i.parent}return{from:n-r[0].length,to:n,options:h5(),validFor:/^<[:\-\.\w\u00b7-\uffff]*$/}}var m5=null;function h5(){if(m5)return m5;let e=fQ(new gW(te.create({extensions:d5}),0,!0));return m5=e?e.options:[]}var g5=/code|horizontalrule|html|link|comment|processing|escape|entity|image|mark|url/i,_5=P.domEventHandlers({paste:(e,t)=>{let{main:n}=t.state.selection;if(n.empty)return!1;let r=e.clipboardData?.getData(`text/plain`);if(!r||!/^(https?:\/\/|mailto:|xmpp:|www\.)/.test(r)||(/^www\./.test(r)&&(r=`https://`+r),!X8.isActiveAt(t.state,n.from,1)))return!1;let i=d(t.state),a=!1;return i.iterate({from:n.from,to:n.to,enter:e=>{(e.from>n.from||g5.test(e.name))&&(a=!0)},leave:e=>{e.to<n.to&&(a=!0)}}),a?!1:(t.dispatch({changes:[{from:n.from,insert:`[`},{from:n.to,insert:`](${r})`}],userEvent:`input.paste`,scrollIntoView:!0}),!0)}}),v5=[M1,qQ,f5(),Je(),P.lineWrapping],y5=()=>{let[e,t,n]=Sn(Hb,Mb,w5),r=Cn(Wx),i=Cn(bx),a=L.useRef(null),o=L.useCallback(o=>{var s;if(o!==null){let s=[...n,...v5,P.updateListener.of(({state:e})=>{r(e.doc.toString())}),P.focusChangeEffect.of((e,t)=>(t||i(new FocusEvent(`blur`)),null))];t&&s.push(te.readOnly.of(!0)),o.innerHTML=``,a.current=new P({parent:o,state:te.create({doc:e,extensions:s})})}else (s=a.current)==null||s.destroy(),a.current=null},[e,t,r,n,i]);return L.createElement(`div`,{ref:o,className:`cm-sourceView mdxeditor-source-editor`})};function b5(e,t){e!==void 0&&e.dispatch({changes:{from:0,to:e.state.doc.length,insert:t}})}var x5=()=>{let e=bn(),[t,n,r,i]=Sn(Hb,C5,Mb,T5),a=Cn(Wx),o=L.useRef(null),s=L.useRef(null),c=xn(w5),l=Cn(bx);return L.useEffect(()=>e.sub(C5,e=>{b5(s.current?.a,e)}),[e]),L.useEffect(()=>e.sub(Hb,e=>{b5(s.current?.b,e)}),[e]),L.useEffect(()=>{let e=r||i;return s.current=new s6({...e?{renderRevertControl:void 0,revertControls:void 0}:{renderRevertControl:()=>{let e=document.createElement(`button`);return e.classList.add(`cm-merge-revert`),e.appendChild(document.createTextNode(`⮕`)),e},revertControls:`a-to-b`},parent:o.current,orientation:`a-b`,gutter:!0,a:{doc:n,extensions:[...c,...v5,te.readOnly.of(!0)]},b:{doc:t,extensions:[...c,...v5,te.readOnly.of(e),P.updateListener.of(({state:e})=>{a(e.doc.toString())}),P.focusChangeEffect.of((e,t)=>(t||l(new FocusEvent(`blur`)),null))]}}),()=>{var e;(e=s.current)==null||e.destroy(),s.current=null}},[a,c]),L.createElement(`div`,{ref:o,className:`mdxeditor-diff-editor`})},S5=({children:e})=>{let[t,n]=Sn(Lb,Ux);return L.createElement(`div`,{className:`mdxeditor-diff-source-wrapper`},t?L.createElement(`div`,{className:J.markdownParseError},L.createElement(`p`,null,t.error,`.`),L.createElement(`p`,null,`You can fix the errors in source mode and switch to rich text mode when you are ready.`)):null,L.createElement(`div`,{className:`mdxeditor-rich-text-editor`,style:{display:n===`rich-text`&&t==null?`block`:`none`}},e),n===`diff`?L.createElement(x5,null):null,n===`source`?L.createElement(y5,null):null)},C5=z(``),w5=z([]),T5=z(!1),E5=jn({update:(e,t)=>{e.pub(C5,t?.diffMarkdown??``)},init(e,t){e.pubIn({[C5]:t?.diffMarkdown??``,[w5]:t?.codeMirrorExtensions??[],[Px]:S5,[T5]:t?.readOnlyDiff??!1,[Ux]:t?.viewMode??`rich-text`})}});Prism.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/},Prism.languages.javascript=Prism.languages.extend(`clike`,{"class-name":[Prism.languages.clike[`class-name`],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(`(^|[^\\w$])(?:NaN|Infinity|0[bB][01]+(?:_[01]+)*n?|0[oO][0-7]+(?:_[0-7]+)*n?|0[xX][\\dA-Fa-f]+(?:_[\\dA-Fa-f]+)*n?|\\d+(?:_\\d+)*n|(?:\\d+(?:_\\d+)*(?:\\.(?:\\d+(?:_\\d+)*)?)?|\\.\\d+(?:_\\d+)*)(?:[Ee][+-]?\\d+(?:_\\d+)*)?)(?![\\w$])`),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),Prism.languages.javascript[`class-name`][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,Prism.languages.insertBefore(`javascript`,`keyword`,{regex:{pattern:RegExp(`((?:^|[^$\\w\\xA0-\\uFFFF."'\\])\\s]|\\b(?:return|yield))\\s*)\\/(?:(?:\\[(?:[^\\]\\\\\\r\\n]|\\\\.)*\\]|\\\\.|[^/\\\\\\[\\r\\n])+\\/[dgimyus]{0,7}|(?:\\[(?:[^[\\]\\\\\\r\\n]|\\\\.|\\[(?:[^[\\]\\\\\\r\\n]|\\\\.|\\[(?:[^[\\]\\\\\\r\\n]|\\\\.)*\\])*\\])*\\]|\\\\.|[^/\\\\\\[\\r\\n])+\\/[dgimyus]{0,7}v[dgimyus]{0,7})(?=(?:\\s|\\/\\*(?:[^*]|\\*(?!\\/))*\\*\\/)*(?:$|[\\r\\n,.;:})\\]]|\\/\\/))`),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:`language-regex`,inside:Prism.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:`function`},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:Prism.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:Prism.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:Prism.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:Prism.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),Prism.languages.insertBefore(`javascript`,`string`,{hashbang:{pattern:/^#!.*/,greedy:!0,alias:`comment`},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:`string`},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:`punctuation`},rest:Prism.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:`property`}}),Prism.languages.insertBefore(`javascript`,`operator`,{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:`property`}}),Prism.languages.markup&&(Prism.languages.markup.tag.addInlined(`script`,`javascript`),Prism.languages.markup.tag.addAttribute(`on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)`,`javascript`)),Prism.languages.js=Prism.languages.javascript,Prism.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:`attr-equals`},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:`named-entity`},/&#x?[\da-f]{1,8};/i]},Prism.languages.markup.tag.inside[`attr-value`].inside.entity=Prism.languages.markup.entity,Prism.languages.markup.doctype.inside[`internal-subset`].inside=Prism.languages.markup,Prism.hooks.add(`wrap`,function(e){e.type===`entity`&&(e.attributes.title=e.content.replace(/&/,`&`))}),Object.defineProperty(Prism.languages.markup.tag,`addInlined`,{value:function(e,t){var n={};n[`language-`+t]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:Prism.languages[t]},n.cdata=/^<!\[CDATA\[|\]\]>$/i;var r={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:n}};r[`language-`+t]={pattern:/[\s\S]+/,inside:Prism.languages[t]};var i={};i[e]={pattern:RegExp(`(<__[^>]*>)(?:<!\\[CDATA\\[(?:[^\\]]|\\](?!\\]>))*\\]\\]>|(?!<!\\[CDATA\\[)[\\s\\S])*?(?=<\\/__>)`.replace(/__/g,function(){return e}),`i`),lookbehind:!0,greedy:!0,inside:r},Prism.languages.insertBefore(`markup`,`cdata`,i)}}),Object.defineProperty(Prism.languages.markup.tag,`addAttribute`,{value:function(e,t){Prism.languages.markup.tag.inside[`special-attr`].push({pattern:RegExp(`(^|["'\\s])(?:`+e+`)\\s*=\\s*(?:"[^"]*"|'[^']*'|[^\\s'">=]+(?=[\\s>]))`,`i`),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[t,`language-`+t],inside:Prism.languages[t]},punctuation:[{pattern:/^=/,alias:`attr-equals`},/"|'/]}}}})}}),Prism.languages.html=Prism.languages.markup,Prism.languages.mathml=Prism.languages.markup,Prism.languages.svg=Prism.languages.markup,Prism.languages.xml=Prism.languages.extend(`markup`,{}),Prism.languages.ssml=Prism.languages.xml,Prism.languages.atom=Prism.languages.xml,Prism.languages.rss=Prism.languages.xml,(function(e){var t=`(?:\\\\.|[^\\\\\\n\\r]|(?:\\n|\\r\\n?)(?![\\r\\n]))`;function n(e){return e=e.replace(/<inner>/g,function(){return t}),RegExp(`((?:^|[^\\\\])(?:\\\\{2})*)(?:`+e+`)`)}var r="(?:\\\\.|``(?:[^`\\r\\n]|`(?!`))+``|`[^`\\r\\n]+`|[^\\\\|\\r\\n`])+",i=`\\|?__(?:\\|__)+\\|?(?:(?:\\n|\\r\\n?)|(?![\\s\\S]))`.replace(/__/g,function(){return r}),a=`\\|?[ \\t]*:?-{3,}:?[ \\t]*(?:\\|[ \\t]*:?-{3,}:?[ \\t]*)+\\|?(?:\\n|\\r\\n?)`;e.languages.markdown=e.languages.extend(`markup`,{}),e.languages.insertBefore(`markdown`,`prolog`,{"front-matter-block":{pattern:/(^(?:\s*[\r\n])?)---(?!.)[\s\S]*?[\r\n]---(?!.)/,lookbehind:!0,greedy:!0,inside:{punctuation:/^---|---$/,"front-matter":{pattern:/\S+(?:\s+\S+)*/,alias:[`yaml`,`language-yaml`],inside:e.languages.yaml}}},blockquote:{pattern:/^>(?:[\t ]*>)*/m,alias:`punctuation`},table:{pattern:RegExp(`^`+i+a+`(?:`+i+`)*`,`m`),inside:{"table-data-rows":{pattern:RegExp(`^(`+i+a+`)(?:`+i+`)*$`),lookbehind:!0,inside:{"table-data":{pattern:RegExp(r),inside:e.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp(`^(`+i+`)`+a+`$`),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp(`^`+i+`$`),inside:{"table-header":{pattern:RegExp(r),alias:`important`,inside:e.languages.markdown},punctuation:/\|/}}}},code:[{pattern:/((?:^|\n)[ \t]*\n|(?:^|\r\n?)[ \t]*\r\n?)(?: {4}|\t).+(?:(?:\n|\r\n?)(?: {4}|\t).+)*/,lookbehind:!0,alias:`keyword`},{pattern:/^```[\s\S]*?^```$/m,greedy:!0,inside:{"code-block":{pattern:/^(```.*(?:\n|\r\n?))[\s\S]+?(?=(?:\n|\r\n?)^```$)/m,lookbehind:!0},"code-language":{pattern:/^(```).+/,lookbehind:!0},punctuation:/```/}}],title:[{pattern:/\S.*(?:\n|\r\n?)(?:==+|--+)(?=[ \t]*$)/m,alias:`important`,inside:{punctuation:/==+$|--+$/}},{pattern:/(^\s*)#.+/m,lookbehind:!0,alias:`important`,inside:{punctuation:/^#+|#+$/}}],hr:{pattern:/(^\s*)([*-])(?:[\t ]*\2){2,}(?=\s*$)/m,lookbehind:!0,alias:`punctuation`},list:{pattern:/(^\s*)(?:[*+-]|\d+\.)(?=[\t ].)/m,lookbehind:!0,alias:`punctuation`},"url-reference":{pattern:/!?\[[^\]]+\]:[\t ]+(?:\S+|<(?:\\.|[^>\\])+>)(?:[\t ]+(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\)))?/,inside:{variable:{pattern:/^(!?\[)[^\]]+/,lookbehind:!0},string:/(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\))$/,punctuation:/^[\[\]!:]|[<>]/},alias:`url`},bold:{pattern:n(`\\b__(?:(?!_)<inner>|_(?:(?!_)<inner>)+_)+__\\b|\\*\\*(?:(?!\\*)<inner>|\\*(?:(?!\\*)<inner>)+\\*)+\\*\\*`),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^..)[\s\S]+(?=..$)/,lookbehind:!0,inside:{}},punctuation:/\*\*|__/}},italic:{pattern:n(`\\b_(?:(?!_)<inner>|__(?:(?!_)<inner>)+__)+_\\b|\\*(?:(?!\\*)<inner>|\\*\\*(?:(?!\\*)<inner>)+\\*\\*)+\\*`),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^.)[\s\S]+(?=.$)/,lookbehind:!0,inside:{}},punctuation:/[*_]/}},strike:{pattern:n(`(~~?)(?:(?!~)<inner>)+\\2`),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^~~?)[\s\S]+(?=\1$)/,lookbehind:!0,inside:{}},punctuation:/~~?/}},"code-snippet":{pattern:/(^|[^\\`])(?:``[^`\r\n]+(?:`[^`\r\n]+)*``(?!`)|`[^`\r\n]+`(?!`))/,lookbehind:!0,greedy:!0,alias:[`code`,`keyword`]},url:{pattern:n(`!?\\[(?:(?!\\])<inner>)+\\](?:\\([^\\s)]+(?:[\\t ]+"(?:\\\\.|[^"\\\\])*")?\\)|[ \\t]?\\[(?:(?!\\])<inner>)+\\])`),lookbehind:!0,greedy:!0,inside:{operator:/^!/,content:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0,inside:{}},variable:{pattern:/(^\][ \t]?\[)[^\]]+(?=\]$)/,lookbehind:!0},url:{pattern:/(^\]\()[^\s)]+/,lookbehind:!0},string:{pattern:/(^[ \t]+)"(?:\\.|[^"\\])*"(?=\)$)/,lookbehind:!0}}}}),[`url`,`bold`,`italic`,`strike`].forEach(function(t){[`url`,`bold`,`italic`,`strike`,`code-snippet`].forEach(function(n){t!==n&&(e.languages.markdown[t].inside.content.inside[n]=e.languages.markdown[n])})}),e.hooks.add(`after-tokenize`,function(e){if(e.language!==`markdown`&&e.language!==`md`)return;function t(e){if(!(!e||typeof e==`string`))for(var n=0,r=e.length;n<r;n++){var i=e[n];if(i.type!==`code`){t(i.content);continue}var a=i.content[1],o=i.content[3];if(a&&o&&a.type===`code-language`&&o.type===`code-block`&&typeof a.content==`string`){var s=a.content.replace(/\b#/g,`sharp`).replace(/\b\+\+/g,`pp`);s=(/[a-z][\w-]*/i.exec(s)||[``])[0].toLowerCase();var c=`language-`+s;o.alias?typeof o.alias==`string`?o.alias=[o.alias,c]:o.alias.push(c):o.alias=[c]}}}t(e.tokens)}),e.hooks.add(`wrap`,function(t){if(t.type===`code-block`){for(var n=``,r=0,i=t.classes.length;r<i;r++){var a=t.classes[r],o=/language-(.+)/.exec(a);if(o){n=o[1];break}}var s=e.languages[n];if(s)t.content=e.highlight(l(t.content),s,n);else if(n&&n!==`none`&&e.plugins.autoloader){var c=`md-`+new Date().valueOf()+`-`+Math.floor(Math.random()*0x2386f26fc10000);t.attributes.id=c,e.plugins.autoloader.loadLanguages(n,function(){var t=document.getElementById(c);t&&(t.innerHTML=e.highlight(t.textContent,e.languages[n],n))})}}});var o=RegExp(e.languages.markup.tag.pattern.source,`gi`),s={amp:`&`,lt:`<`,gt:`>`,quot:`"`},c=String.fromCodePoint||String.fromCharCode;function l(e){var t=e.replace(o,``);return t=t.replace(/&(\w{1,8}|#x?[\da-f]{1,8});/gi,function(e,t){return t=t.toLowerCase(),t[0]===`#`?c(t[1]===`x`?parseInt(t.slice(2),16):Number(t.slice(1))):s[t]||e}),t}e.languages.md=e.languages.markdown})(Prism),Prism.languages.c=Prism.languages.extend(`clike`,{comment:{pattern:/\/\/(?:[^\r\n\\]|\\(?:\r\n?|\n|(?![\r\n])))*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},"class-name":{pattern:/(\b(?:enum|struct)\s+(?:__attribute__\s*\(\([\s\S]*?\)\)\s*)?)\w+|\b[a-z]\w*_t\b/,lookbehind:!0},keyword:/\b(?:_Alignas|_Alignof|_Atomic|_Bool|_Complex|_Generic|_Imaginary|_Noreturn|_Static_assert|_Thread_local|__attribute__|asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|inline|int|long|register|return|short|signed|sizeof|static|struct|switch|typedef|typeof|union|unsigned|void|volatile|while)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ful]{0,4}/i,operator:/>>=?|<<=?|->|([-+&|:])\1|[?:~]|[-+*/%&|^!=<>]=?/}),Prism.languages.insertBefore(`c`,`string`,{char:{pattern:/'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n]){0,32}'/,greedy:!0}}),Prism.languages.insertBefore(`c`,`string`,{macro:{pattern:/(^[\t ]*)#\s*[a-z](?:[^\r\n\\/]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|\\(?:\r\n|[\s\S]))*/im,lookbehind:!0,greedy:!0,alias:`property`,inside:{string:[{pattern:/^(#\s*include\s*)<[^>]+>/,lookbehind:!0},Prism.languages.c.string],char:Prism.languages.c.char,comment:Prism.languages.c.comment,"macro-name":[{pattern:/(^#\s*define\s+)\w+\b(?!\()/i,lookbehind:!0},{pattern:/(^#\s*define\s+)\w+\b(?=\()/i,lookbehind:!0,alias:`function`}],directive:{pattern:/^(#\s*)[a-z]+/,lookbehind:!0,alias:`keyword`},"directive-hash":/^#/,punctuation:/##|\\(?=[\r\n])/,expression:{pattern:/\S[\s\S]*/,inside:Prism.languages.c}}}}),Prism.languages.insertBefore(`c`,`function`,{constant:/\b(?:EOF|NULL|SEEK_CUR|SEEK_END|SEEK_SET|__DATE__|__FILE__|__LINE__|__TIMESTAMP__|__TIME__|__func__|stderr|stdin|stdout)\b/}),delete Prism.languages.c.boolean,(function(e){var t=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;e.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp(`@[\\w-](?:[^;{\\s"']|\\s+(?!\\s)|`+t.source+`)*?(?:;|(?=\\s*\\{))`),inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:`selector`},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp(`\\burl\\((?:`+t.source+`|(?:[^\\\\\\r\\n()"']|\\\\[\\s\\S])*)\\)`,`i`),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp(`^`+t.source+`$`),alias:`url`}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+t.source+`)*(?=\\s*\\{)`),lookbehind:!0},string:{pattern:t,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},e.languages.css.atrule.inside.rest=e.languages.css;var n=e.languages.markup;n&&(n.tag.addInlined(`style`,`css`),n.tag.addAttribute(`style`,`css`))})(Prism),Prism.languages.objectivec=Prism.languages.extend(`c`,{string:{pattern:/@?"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},keyword:/\b(?:asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|in|inline|int|long|register|return|self|short|signed|sizeof|static|struct|super|switch|typedef|typeof|union|unsigned|void|volatile|while)\b|(?:@interface|@end|@implementation|@protocol|@class|@public|@protected|@private|@property|@try|@catch|@finally|@throw|@synthesize|@dynamic|@selector)\b/,operator:/-[->]?|\+\+?|!=?|<<?=?|>>?=?|==?|&&?|\|\|?|[~^%?*\/@]/}),delete Prism.languages.objectivec[`class-name`],Prism.languages.objc=Prism.languages.objectivec,Prism.languages.sql={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/,lookbehind:!0},variable:[{pattern:/@(["'`])(?:\\[\s\S]|(?!\1)[^\\])+\1/,greedy:!0},/@[\w.$]+/],string:{pattern:/(^|[^@\\])("|')(?:\\[\s\S]|(?!\2)[^\\]|\2\2)*\2/,greedy:!0,lookbehind:!0},identifier:{pattern:/(^|[^@\\])`(?:\\[\s\S]|[^`\\]|``)*`/,greedy:!0,lookbehind:!0,inside:{punctuation:/^`|`$/}},function:/\b(?:AVG|COUNT|FIRST|FORMAT|LAST|LCASE|LEN|MAX|MID|MIN|MOD|NOW|ROUND|SUM|UCASE)(?=\s*\()/i,keyword:/\b(?:ACTION|ADD|AFTER|ALGORITHM|ALL|ALTER|ANALYZE|ANY|APPLY|AS|ASC|AUTHORIZATION|AUTO_INCREMENT|BACKUP|BDB|BEGIN|BERKELEYDB|BIGINT|BINARY|BIT|BLOB|BOOL|BOOLEAN|BREAK|BROWSE|BTREE|BULK|BY|CALL|CASCADED?|CASE|CHAIN|CHAR(?:ACTER|SET)?|CHECK(?:POINT)?|CLOSE|CLUSTERED|COALESCE|COLLATE|COLUMNS?|COMMENT|COMMIT(?:TED)?|COMPUTE|CONNECT|CONSISTENT|CONSTRAINT|CONTAINS(?:TABLE)?|CONTINUE|CONVERT|CREATE|CROSS|CURRENT(?:_DATE|_TIME|_TIMESTAMP|_USER)?|CURSOR|CYCLE|DATA(?:BASES?)?|DATE(?:TIME)?|DAY|DBCC|DEALLOCATE|DEC|DECIMAL|DECLARE|DEFAULT|DEFINER|DELAYED|DELETE|DELIMITERS?|DENY|DESC|DESCRIBE|DETERMINISTIC|DISABLE|DISCARD|DISK|DISTINCT|DISTINCTROW|DISTRIBUTED|DO|DOUBLE|DROP|DUMMY|DUMP(?:FILE)?|DUPLICATE|ELSE(?:IF)?|ENABLE|ENCLOSED|END|ENGINE|ENUM|ERRLVL|ERRORS|ESCAPED?|EXCEPT|EXEC(?:UTE)?|EXISTS|EXIT|EXPLAIN|EXTENDED|FETCH|FIELDS|FILE|FILLFACTOR|FIRST|FIXED|FLOAT|FOLLOWING|FOR(?: EACH ROW)?|FORCE|FOREIGN|FREETEXT(?:TABLE)?|FROM|FULL|FUNCTION|GEOMETRY(?:COLLECTION)?|GLOBAL|GOTO|GRANT|GROUP|HANDLER|HASH|HAVING|HOLDLOCK|HOUR|IDENTITY(?:COL|_INSERT)?|IF|IGNORE|IMPORT|INDEX|INFILE|INNER|INNODB|INOUT|INSERT|INT|INTEGER|INTERSECT|INTERVAL|INTO|INVOKER|ISOLATION|ITERATE|JOIN|KEYS?|KILL|LANGUAGE|LAST|LEAVE|LEFT|LEVEL|LIMIT|LINENO|LINES|LINESTRING|LOAD|LOCAL|LOCK|LONG(?:BLOB|TEXT)|LOOP|MATCH(?:ED)?|MEDIUM(?:BLOB|INT|TEXT)|MERGE|MIDDLEINT|MINUTE|MODE|MODIFIES|MODIFY|MONTH|MULTI(?:LINESTRING|POINT|POLYGON)|NATIONAL|NATURAL|NCHAR|NEXT|NO|NONCLUSTERED|NULLIF|NUMERIC|OFF?|OFFSETS?|ON|OPEN(?:DATASOURCE|QUERY|ROWSET)?|OPTIMIZE|OPTION(?:ALLY)?|ORDER|OUT(?:ER|FILE)?|OVER|PARTIAL|PARTITION|PERCENT|PIVOT|PLAN|POINT|POLYGON|PRECEDING|PRECISION|PREPARE|PREV|PRIMARY|PRINT|PRIVILEGES|PROC(?:EDURE)?|PUBLIC|PURGE|QUICK|RAISERROR|READS?|REAL|RECONFIGURE|REFERENCES|RELEASE|RENAME|REPEAT(?:ABLE)?|REPLACE|REPLICATION|REQUIRE|RESIGNAL|RESTORE|RESTRICT|RETURN(?:ING|S)?|REVOKE|RIGHT|ROLLBACK|ROUTINE|ROW(?:COUNT|GUIDCOL|S)?|RTREE|RULE|SAVE(?:POINT)?|SCHEMA|SECOND|SELECT|SERIAL(?:IZABLE)?|SESSION(?:_USER)?|SET(?:USER)?|SHARE|SHOW|SHUTDOWN|SIMPLE|SMALLINT|SNAPSHOT|SOME|SONAME|SQL|START(?:ING)?|STATISTICS|STATUS|STRIPED|SYSTEM_USER|TABLES?|TABLESPACE|TEMP(?:ORARY|TABLE)?|TERMINATED|TEXT(?:SIZE)?|THEN|TIME(?:STAMP)?|TINY(?:BLOB|INT|TEXT)|TOP?|TRAN(?:SACTIONS?)?|TRIGGER|TRUNCATE|TSEQUAL|TYPES?|UNBOUNDED|UNCOMMITTED|UNDEFINED|UNION|UNIQUE|UNLOCK|UNPIVOT|UNSIGNED|UPDATE(?:TEXT)?|USAGE|USE|USER|USING|VALUES?|VAR(?:BINARY|CHAR|CHARACTER|YING)|VIEW|WAITFOR|WARNINGS|WHEN|WHERE|WHILE|WITH(?: ROLLUP|IN)?|WORK|WRITE(?:TEXT)?|YEAR)\b/i,boolean:/\b(?:FALSE|NULL|TRUE)\b/i,number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?|\B\.\d+\b/i,operator:/[-+*\/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?|\b(?:AND|BETWEEN|DIV|ILIKE|IN|IS|LIKE|NOT|OR|REGEXP|RLIKE|SOUNDS LIKE|XOR)\b/i,punctuation:/[;[\]()`,.]/},(function(e){var t=e.languages.powershell={comment:[{pattern:/(^|[^`])<#[\s\S]*?#>/,lookbehind:!0},{pattern:/(^|[^`])#.*/,lookbehind:!0}],string:[{pattern:/"(?:`[\s\S]|[^`"])*"/,greedy:!0,inside:null},{pattern:/'(?:[^']|'')*'/,greedy:!0}],namespace:/\[[a-z](?:\[(?:\[[^\]]*\]|[^\[\]])*\]|[^\[\]])*\]/i,boolean:/\$(?:false|true)\b/i,variable:/\$\w+\b/,function:[/\b(?:Add|Approve|Assert|Backup|Block|Checkpoint|Clear|Close|Compare|Complete|Compress|Confirm|Connect|Convert|ConvertFrom|ConvertTo|Copy|Debug|Deny|Disable|Disconnect|Dismount|Edit|Enable|Enter|Exit|Expand|Export|Find|ForEach|Format|Get|Grant|Group|Hide|Import|Initialize|Install|Invoke|Join|Limit|Lock|Measure|Merge|Move|New|Open|Optimize|Out|Ping|Pop|Protect|Publish|Push|Read|Receive|Redo|Register|Remove|Rename|Repair|Request|Reset|Resize|Resolve|Restart|Restore|Resume|Revoke|Save|Search|Select|Send|Set|Show|Skip|Sort|Split|Start|Step|Stop|Submit|Suspend|Switch|Sync|Tee|Test|Trace|Unblock|Undo|Uninstall|Unlock|Unprotect|Unpublish|Unregister|Update|Use|Wait|Watch|Where|Write)-[a-z]+\b/i,/\b(?:ac|cat|chdir|clc|cli|clp|clv|compare|copy|cp|cpi|cpp|cvpa|dbp|del|diff|dir|ebp|echo|epal|epcsv|epsn|erase|fc|fl|ft|fw|gal|gbp|gc|gci|gcs|gdr|gi|gl|gm|gp|gps|group|gsv|gu|gv|gwmi|iex|ii|ipal|ipcsv|ipsn|irm|iwmi|iwr|kill|lp|ls|measure|mi|mount|move|mp|mv|nal|ndr|ni|nv|ogv|popd|ps|pushd|pwd|rbp|rd|rdr|ren|ri|rm|rmdir|rni|rnp|rp|rv|rvpa|rwmi|sal|saps|sasv|sbp|sc|select|set|shcm|si|sl|sleep|sls|sort|sp|spps|spsv|start|sv|swmi|tee|trcm|type|write)\b/i],keyword:/\b(?:Begin|Break|Catch|Class|Continue|Data|Define|Do|DynamicParam|Else|ElseIf|End|Exit|Filter|Finally|For|ForEach|From|Function|If|InlineScript|Parallel|Param|Process|Return|Sequence|Switch|Throw|Trap|Try|Until|Using|Var|While|Workflow)\b/i,operator:{pattern:/(^|\W)(?:!|-(?:b?(?:and|x?or)|as|(?:Not)?(?:Contains|In|Like|Match)|eq|ge|gt|is(?:Not)?|Join|le|lt|ne|not|Replace|sh[lr])\b|-[-=]?|\+[+=]?|[*\/%]=?)/i,lookbehind:!0},punctuation:/[|{}[\];(),.]/};t.string[0].inside={function:{pattern:/(^|[^`])\$\((?:\$\([^\r\n()]*\)|(?!\$\()[^\r\n)])*\)/,lookbehind:!0,inside:t},boolean:t.boolean,variable:t.variable}})(Prism),Prism.languages.python={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0,greedy:!0},"string-interpolation":{pattern:/(?:f|fr|rf)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/,lookbehind:!0,inside:{"format-spec":{pattern:/(:)[^:(){}]+(?=\}$)/,lookbehind:!0},"conversion-option":{pattern://,alias:`punctuation`},rest:null}},string:/[\s\S]+/}},"triple-quoted-string":{pattern:/(?:[rub]|br|rb)?("""|''')[\s\S]*?\1/i,greedy:!0,alias:`string`},string:{pattern:/(?:[rub]|br|rb)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i,greedy:!0},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g,lookbehind:!0},"class-name":{pattern:/(\bclass\s+)\w+/i,lookbehind:!0},decorator:{pattern:/(^[\t ]*)@\w+(?:\.\w+)*/m,lookbehind:!0,alias:[`annotation`,`punctuation`],inside:{punctuation:/\./}},keyword:/\b(?:_(?=\s*:)|and|as|assert|async|await|break|case|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|match|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/,builtin:/\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/,boolean:/\b(?:False|None|True)\b/,number:/\b0(?:b(?:_?[01])+|o(?:_?[0-7])+|x(?:_?[a-f0-9])+)\b|(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:e[+-]?\d+(?:_\d+)*)?j?(?!\w)/i,operator:/[-+%=]=?|!=|:=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/},Prism.languages.python[`string-interpolation`].inside.interpolation.inside.rest=Prism.languages.python,Prism.languages.py=Prism.languages.python,(function(e){for(var t=`\\/\\*(?:[^*/]|\\*(?!\\/)|\\/(?!\\*)|<self>)*\\*\\/`,n=0;n<2;n++)t=t.replace(/<self>/g,function(){return t});t=t.replace(/<self>/g,function(){return`[^\\s\\S]`}),e.languages.rust={comment:[{pattern:RegExp(`(^|[^\\\\])`+t),lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/b?"(?:\\[\s\S]|[^\\"])*"|b?r(#*)"(?:[^"]|"(?!\1))*"\1/,greedy:!0},char:{pattern:/b?'(?:\\(?:x[0-7][\da-fA-F]|u\{(?:[\da-fA-F]_*){1,6}\}|.)|[^\\\r\n\t'])'/,greedy:!0},attribute:{pattern:/#!?\[(?:[^\[\]"]|"(?:\\[\s\S]|[^\\"])*")*\]/,greedy:!0,alias:`attr-name`,inside:{string:null}},"closure-params":{pattern:/([=(,:]\s*|\bmove\s*)\|[^|]*\||\|[^|]*\|(?=\s*(?:\{|->))/,lookbehind:!0,greedy:!0,inside:{"closure-punctuation":{pattern:/^\||\|$/,alias:`punctuation`},rest:null}},"lifetime-annotation":{pattern:/'\w+/,alias:`symbol`},"fragment-specifier":{pattern:/(\$\w+:)[a-z]+/,lookbehind:!0,alias:`punctuation`},variable:/\$\w+/,"function-definition":{pattern:/(\bfn\s+)\w+/,lookbehind:!0,alias:`function`},"type-definition":{pattern:/(\b(?:enum|struct|trait|type|union)\s+)\w+/,lookbehind:!0,alias:`class-name`},"module-declaration":[{pattern:/(\b(?:crate|mod)\s+)[a-z][a-z_\d]*/,lookbehind:!0,alias:`namespace`},{pattern:/(\b(?:crate|self|super)\s*)::\s*[a-z][a-z_\d]*\b(?:\s*::(?:\s*[a-z][a-z_\d]*\s*::)*)?/,lookbehind:!0,alias:`namespace`,inside:{punctuation:/::/}}],keyword:[/\b(?:Self|abstract|as|async|await|become|box|break|const|continue|crate|do|dyn|else|enum|extern|final|fn|for|if|impl|in|let|loop|macro|match|mod|move|mut|override|priv|pub|ref|return|self|static|struct|super|trait|try|type|typeof|union|unsafe|unsized|use|virtual|where|while|yield)\b/,/\b(?:bool|char|f(?:32|64)|[ui](?:8|16|32|64|128|size)|str)\b/],function:/\b[a-z_]\w*(?=\s*(?:::\s*<|\())/,macro:{pattern:/\b\w+!/,alias:`property`},constant:/\b[A-Z_][A-Z_\d]+\b/,"class-name":/\b[A-Z]\w*\b/,namespace:{pattern:/(?:\b[a-z][a-z_\d]*\s*::\s*)*\b[a-z][a-z_\d]*\s*::(?!\s*<)/,inside:{punctuation:/::/}},number:/\b(?:0x[\dA-Fa-f](?:_?[\dA-Fa-f])*|0o[0-7](?:_?[0-7])*|0b[01](?:_?[01])*|(?:(?:\d(?:_?\d)*)?\.)?\d(?:_?\d)*(?:[Ee][+-]?\d+)?)(?:_?(?:f32|f64|[iu](?:8|16|32|64|size)?))?\b/,boolean:/\b(?:false|true)\b/,punctuation:/->|\.\.=|\.{1,3}|::|[{}[\];(),:]/,operator:/[-+*\/%!^]=?|=[=>]?|&[&=]?|\|[|=]?|<<?=?|>>?=?|[@?]/},e.languages.rust[`closure-params`].inside.rest=e.languages.rust,e.languages.rust.attribute.inside.string=e.languages.rust.string})(Prism),Prism.languages.swift={comment:{pattern:/(^|[^\\:])(?:\/\/.*|\/\*(?:[^/*]|\/(?!\*)|\*(?!\/)|\/\*(?:[^*]|\*(?!\/))*\*\/)*\*\/)/,lookbehind:!0,greedy:!0},"string-literal":[{pattern:RegExp(`(^|[^"#])(?:"(?:\\\\(?:\\((?:[^()]|\\([^()]*\\))*\\)|\\r\\n|[^(])|[^\\\\\\r\\n"])*"|"""(?:\\\\(?:\\((?:[^()]|\\([^()]*\\))*\\)|[^(])|[^\\\\"]|"(?!""))*""")(?!["#])`),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\\($/,alias:`punctuation`},punctuation:/\\(?=[\r\n])/,string:/[\s\S]+/}},{pattern:RegExp(`(^|[^"#])(#+)(?:"(?:\\\\(?:#+\\((?:[^()]|\\([^()]*\\))*\\)|\\r\\n|[^#])|[^\\\\\\r\\n])*?"|"""(?:\\\\(?:#+\\((?:[^()]|\\([^()]*\\))*\\)|[^#])|[^\\\\])*?""")\\2`),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\#+\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\#+\($/,alias:`punctuation`},string:/[\s\S]+/}}],directive:{pattern:RegExp(`#(?:(?:elseif|if)\\b(?:[ ]*(?:![ \\t]*)?(?:\\b\\w+\\b(?:[ \\t]*\\((?:[^()]|\\([^()]*\\))*\\))?|\\((?:[^()]|\\([^()]*\\))*\\))(?:[ \\t]*(?:&&|\\|\\|))?)+|(?:else|endif)\\b)`),alias:`property`,inside:{"directive-name":/^#\w+/,boolean:/\b(?:false|true)\b/,number:/\b\d+(?:\.\d+)*\b/,operator:/!|&&|\|\||[<>]=?/,punctuation:/[(),]/}},literal:{pattern:/#(?:colorLiteral|column|dsohandle|file(?:ID|Literal|Path)?|function|imageLiteral|line)\b/,alias:`constant`},"other-directive":{pattern:/#\w+\b/,alias:`property`},attribute:{pattern:/@\w+/,alias:`atrule`},"function-definition":{pattern:/(\bfunc\s+)\w+/,lookbehind:!0,alias:`function`},label:{pattern:/\b(break|continue)\s+\w+|\b[a-zA-Z_]\w*(?=\s*:\s*(?:for|repeat|while)\b)/,lookbehind:!0,alias:`important`},keyword:/\b(?:Any|Protocol|Self|Type|actor|as|assignment|associatedtype|associativity|async|await|break|case|catch|class|continue|convenience|default|defer|deinit|didSet|do|dynamic|else|enum|extension|fallthrough|fileprivate|final|for|func|get|guard|higherThan|if|import|in|indirect|infix|init|inout|internal|is|isolated|lazy|left|let|lowerThan|mutating|none|nonisolated|nonmutating|open|operator|optional|override|postfix|precedencegroup|prefix|private|protocol|public|repeat|required|rethrows|return|right|safe|self|set|some|static|struct|subscript|super|switch|throw|throws|try|typealias|unowned|unsafe|var|weak|where|while|willSet)\b/,boolean:/\b(?:false|true)\b/,nil:{pattern:/\bnil\b/,alias:`constant`},"short-argument":/\$\d+\b/,omit:{pattern:/\b_\b/,alias:`keyword`},number:/\b(?:[\d_]+(?:\.[\de_]+)?|0x[a-f0-9_]+(?:\.[a-f0-9p_]+)?|0b[01_]+|0o[0-7_]+)\b/i,"class-name":/\b[A-Z](?:[A-Z_\d]*[a-z]\w*)?\b/,function:/\b[a-z_]\w*(?=\s*\()/i,constant:/\b(?:[A-Z_]{2,}|k[A-Z][A-Za-z_]+)\b/,operator:/[-+*/%=!<>&|^~?]+|\.[.\-+*/%=!<>&|^~?]+/,punctuation:/[{}[\]();,.:\\]/},Prism.languages.swift[`string-literal`].forEach(function(e){e.inside.interpolation.inside=Prism.languages.swift}),(function(e){e.languages.typescript=e.languages.extend(`javascript`,{"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|type)\s+)(?!keyof\b)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?:\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>)?/,lookbehind:!0,greedy:!0,inside:null},builtin:/\b(?:Array|Function|Promise|any|boolean|console|never|number|string|symbol|unknown)\b/}),e.languages.typescript.keyword.push(/\b(?:abstract|declare|is|keyof|readonly|require)\b/,/\b(?:asserts|infer|interface|module|namespace|type)\b(?=\s*(?:[{_$a-zA-Z\xA0-\uFFFF]|$))/,/\btype\b(?=\s*(?:[\{*]|$))/),delete e.languages.typescript.parameter,delete e.languages.typescript[`literal-property`];var t=e.languages.extend(`typescript`,{});delete t[`class-name`],e.languages.typescript[`class-name`].inside=t,e.languages.insertBefore(`typescript`,`function`,{decorator:{pattern:/@[$\w\xA0-\uFFFF]+/,inside:{at:{pattern:/^@/,alias:`operator`},function:/^[\s\S]+/}},"generic-function":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>(?=\s*\()/,greedy:!0,inside:{function:/^#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/,generic:{pattern:/<[\s\S]+/,alias:`class-name`,inside:t}}}}),e.languages.ts=e.languages.typescript})(Prism),(function(e){var t=/\b(?:abstract|assert|boolean|break|byte|case|catch|char|class|const|continue|default|do|double|else|enum|exports|extends|final|finally|float|for|goto|if|implements|import|instanceof|int|interface|long|module|native|new|non-sealed|null|open|opens|package|permits|private|protected|provides|public|record(?!\s*[(){}[\]<>=%~.:,;?+\-*/&|^])|requires|return|sealed|short|static|strictfp|super|switch|synchronized|this|throw|throws|to|transient|transitive|try|uses|var|void|volatile|while|with|yield)\b/,n=`(?:[a-z]\\w*\\s*\\.\\s*)*(?:[A-Z]\\w*\\s*\\.\\s*)*`,r={pattern:RegExp(`(^|[^\\w.])`+n+`[A-Z](?:[\\d_A-Z]*[a-z]\\w*)?\\b`),lookbehind:!0,inside:{namespace:{pattern:/^[a-z]\w*(?:\s*\.\s*[a-z]\w*)*(?:\s*\.)?/,inside:{punctuation:/\./}},punctuation:/\./}};e.languages.java=e.languages.extend(`clike`,{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"/,lookbehind:!0,greedy:!0},"class-name":[r,{pattern:RegExp(`(^|[^\\w.])`+n+`[A-Z]\\w*(?=\\s+\\w+\\s*[;,=()]|\\s*(?:\\[[\\s,]*\\]\\s*)?::\\s*new\\b)`),lookbehind:!0,inside:r.inside},{pattern:RegExp(`(\\b(?:class|enum|extends|implements|instanceof|interface|new|record|throws)\\s+)`+n+`[A-Z]\\w*\\b`),lookbehind:!0,inside:r.inside}],keyword:t,function:[e.languages.clike.function,{pattern:/(::\s*)[a-z_]\w*/,lookbehind:!0}],number:/\b0b[01][01_]*L?\b|\b0x(?:\.[\da-f_p+-]+|[\da-f_]+(?:\.[\da-f_p+-]+)?)\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?\d[\d_]*)?[dfl]?/i,operator:{pattern:/(^|[^.])(?:<<=?|>>>?=?|->|--|\+\+|&&|\|\||::|[?:~]|[-+*/%&|^!=<>]=?)/m,lookbehind:!0},constant:/\b[A-Z][A-Z_\d]+\b/}),e.languages.insertBefore(`java`,`string`,{"triple-quoted-string":{pattern:/"""[ \t]*[\r\n](?:(?:"|"")?(?:\\.|[^"\\]))*"""/,greedy:!0,alias:`string`},char:{pattern:/'(?:\\.|[^'\\\r\n]){1,6}'/,greedy:!0}}),e.languages.insertBefore(`java`,`class-name`,{annotation:{pattern:/(^|[^.])@\w+(?:\s*\.\s*\w+)*/,lookbehind:!0,alias:`punctuation`},generics:{pattern:/<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&))*>)*>)*>)*>/,inside:{"class-name":r,keyword:t,punctuation:/[<>(),.:]/,operator:/[?&|]/}},import:[{pattern:RegExp(`(\\bimport\\s+)`+n+`(?:[A-Z]\\w*|\\*)(?=\\s*;)`),lookbehind:!0,inside:{namespace:r.inside.namespace,punctuation:/\./,operator:/\*/,"class-name":/\w+/}},{pattern:RegExp(`(\\bimport\\s+static\\s+)`+n+`(?:\\w+|\\*)(?=\\s*;)`),lookbehind:!0,alias:`static`,inside:{namespace:r.inside.namespace,static:/\b\w+$/,punctuation:/\./,operator:/\*/,"class-name":/\w+/}}],namespace:{pattern:RegExp(`(\\b(?:exports|import(?:\\s+static)?|module|open|opens|package|provides|requires|to|transitive|uses|with)\\s+)(?!<keyword>)[a-z]\\w*(?:\\.[a-z]\\w*)*\\.?`.replace(/<keyword>/g,function(){return t.source})),lookbehind:!0,inside:{punctuation:/\./}}})})(Prism),(function(e){var t=/\b(?:alignas|alignof|asm|auto|bool|break|case|catch|char|char16_t|char32_t|char8_t|class|co_await|co_return|co_yield|compl|concept|const|const_cast|consteval|constexpr|constinit|continue|decltype|default|delete|do|double|dynamic_cast|else|enum|explicit|export|extern|final|float|for|friend|goto|if|import|inline|int|int16_t|int32_t|int64_t|int8_t|long|module|mutable|namespace|new|noexcept|nullptr|operator|override|private|protected|public|register|reinterpret_cast|requires|return|short|signed|sizeof|static|static_assert|static_cast|struct|switch|template|this|thread_local|throw|try|typedef|typeid|typename|uint16_t|uint32_t|uint64_t|uint8_t|union|unsigned|using|virtual|void|volatile|wchar_t|while)\b/,n=`\\b(?!<keyword>)\\w+(?:\\s*\\.\\s*\\w+)*\\b`.replace(/<keyword>/g,function(){return t.source});e.languages.cpp=e.languages.extend(`c`,{"class-name":[{pattern:RegExp(`(\\b(?:class|concept|enum|struct|typename)\\s+)(?!<keyword>)\\w+`.replace(/<keyword>/g,function(){return t.source})),lookbehind:!0},/\b[A-Z]\w*(?=\s*::\s*\w+\s*\()/,/\b[A-Z_]\w*(?=\s*::\s*~\w+\s*\()/i,/\b\w+(?=\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>\s*::\s*\w+\s*\()/],keyword:t,number:{pattern:/(?:\b0b[01']+|\b0x(?:[\da-f']+(?:\.[\da-f']*)?|\.[\da-f']+)(?:p[+-]?[\d']+)?|(?:\b[\d']+(?:\.[\d']*)?|\B\.[\d']+)(?:e[+-]?[\d']+)?)[ful]{0,4}/i,greedy:!0},operator:/>>=?|<<=?|->|--|\+\+|&&|\|\||[?:~]|<=>|[-+*/%&|^!=<>]=?|\b(?:and|and_eq|bitand|bitor|not|not_eq|or|or_eq|xor|xor_eq)\b/,boolean:/\b(?:false|true)\b/}),e.languages.insertBefore(`cpp`,`string`,{module:{pattern:RegExp(`(\\b(?:import|module)\\s+)(?:"(?:\\\\(?:\\r\\n|[\\s\\S])|[^"\\\\\\r\\n])*"|<[^<>\\r\\n]*>|`+`<mod-name>(?:\\s*:\\s*<mod-name>)?|:\\s*<mod-name>`.replace(/<mod-name>/g,function(){return n})+`)`),lookbehind:!0,greedy:!0,inside:{string:/^[<"][\s\S]+/,operator:/:/,punctuation:/\./}},"raw-string":{pattern:/R"([^()\\ ]{0,16})\([\s\S]*?\)\1"/,alias:`string`,greedy:!0}}),e.languages.insertBefore(`cpp`,`keyword`,{"generic-function":{pattern:/\b(?!operator\b)[a-z_]\w*\s*<(?:[^<>]|<[^<>]*>)*>(?=\s*\()/i,inside:{function:/^\w+/,generic:{pattern:/<[\s\S]+/,alias:`class-name`,inside:e.languages.cpp}}}}),e.languages.insertBefore(`cpp`,`operator`,{"double-colon":{pattern:/::/,alias:`punctuation`}}),e.languages.insertBefore(`cpp`,`class-name`,{"base-clause":{pattern:/(\b(?:class|struct)\s+\w+\s*:\s*)[^;{}"'\s]+(?:\s+[^;{}"'\s]+)*(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:e.languages.extend(`cpp`,{})}}),e.languages.insertBefore(`inside`,`double-colon`,{"class-name":/\b[a-z_]\w*\b(?!\s*::)/i},e.languages.cpp[`base-clause`])})(Prism);function D5(e,t){for(let n of e.childNodes){if(ul(n)&&n.tagName===t)return!0;D5(n,t)}return!1}var O5=`data-language`,k5=`data-highlight-language`,A5=`data-theme`,j5=class e extends ws{static getType(){return`code`}static clone(t){return new e(t.__language,t.__key)}constructor(e,t){super(t),this.__language=e||void 0,this.__isSyntaxHighlightSupported=!1,this.__theme=void 0}afterCloneFrom(e){super.afterCloneFrom(e),this.__language=e.__language,this.__theme=e.__theme,this.__isSyntaxHighlightSupported=e.__isSyntaxHighlightSupported}createDOM(e){let t=document.createElement(`code`);Yu(t,e.theme.code),t.setAttribute(`spellcheck`,`false`);let n=this.getLanguage();n&&(t.setAttribute(O5,n),this.getIsSyntaxHighlightSupported()&&t.setAttribute(k5,n));let r=this.getTheme();r&&t.setAttribute(A5,r);let i=this.getStyle();return i&&t.setAttribute(`style`,i),t}updateDOM(e,t,n){let r=this.__language,i=e.__language;r?r!==i&&t.setAttribute(O5,r):i&&t.removeAttribute(O5);let a=this.__isSyntaxHighlightSupported;e.__isSyntaxHighlightSupported&&i?a&&r?r!==i&&t.setAttribute(k5,r):t.removeAttribute(k5):a&&r&&t.setAttribute(k5,r);let o=this.__theme,s=e.__theme;o?o!==s&&t.setAttribute(A5,o):s&&t.removeAttribute(A5);let c=this.__style,l=e.__style;return c?c!==l&&t.setAttribute(`style`,c):l&&t.removeAttribute(`style`),!1}exportDOM(e){let t=document.createElement(`pre`);Yu(t,e._config.theme.code),t.setAttribute(`spellcheck`,`false`);let n=this.getLanguage();n&&(t.setAttribute(O5,n),this.getIsSyntaxHighlightSupported()&&t.setAttribute(k5,n));let r=this.getTheme();r&&t.setAttribute(A5,r);let i=this.getStyle();return i&&t.setAttribute(`style`,i),{element:t}}static importDOM(){return{code:e=>e.textContent!=null&&(/\r?\n/.test(e.textContent)||D5(e,`BR`))?{conversion:P5,priority:1}:null,div:()=>({conversion:F5,priority:1}),pre:()=>({conversion:P5,priority:0}),table:e=>z5(e)?{conversion:I5,priority:3}:null,td:e=>{let t=e,n=t.closest(`table`);return t.classList.contains(`js-file-line`)||n&&z5(n)?{conversion:L5,priority:3}:null},tr:e=>{let t=e.closest(`table`);return t&&z5(t)?{conversion:L5,priority:3}:null}}}static importJSON(e){return M5().updateFromJSON(e)}updateFromJSON(e){return super.updateFromJSON(e).setLanguage(e.language).setTheme(e.theme)}exportJSON(){return{...super.exportJSON(),language:this.getLanguage(),theme:this.getTheme()}}insertNewAfter(e,t=!0){let n=this.getChildren(),r=n.length;if(r>=2&&n[r-1].getTextContent()===`
|
|
193
|
+
`&&n[r-2].getTextContent()===`
|
|
194
|
+
`&&e.isCollapsed()&&e.anchor.key===this.__key&&e.anchor.offset===r){n[r-1].remove(),n[r-2].remove();let e=zs();return this.insertAfter(e,t),e}let{anchor:i,focus:a}=e,o=(i.isBefore(a)?i:a).getNode();if(H(o)){let e=G5(o),t=[];for(;;)if(yo(e))t.push(vo()),e=e.getNextSibling();else{if(!U5(e))break;{let n=0,r=e.getTextContent(),i=e.getTextContentSize();for(;n<i&&r[n]===` `;)n++;if(n!==0&&t.push(H5(` `.repeat(n))),n!==i)break;e=e.getNextSibling()}}let n=o.splitText(i.offset)[0],r=i.offset===0?0:1,a=n.getIndexWithinParent()+r,s=o.getParentOrThrow(),c=[Xa(),...t];s.splice(a,0,c);let l=t[t.length-1];l?l.select():i.offset===0?n.selectPrevious():n.getNextSibling().selectNext(0,0)}if(N5(o)){let{offset:t}=e.anchor;o.splice(t,0,[Xa()]),o.select(t+1,t+1)}return null}canIndent(){return!1}collapseAtStart(){let e=zs();return this.getChildren().forEach((t=>e.append(t))),this.replace(e),!0}setLanguage(e){let t=this.getWritable();return t.__language=e||void 0,t}getLanguage(){return this.getLatest().__language}setIsSyntaxHighlightSupported(e){let t=this.getWritable();return t.__isSyntaxHighlightSupported=e,t}getIsSyntaxHighlightSupported(){return this.getLatest().__isSyntaxHighlightSupported}setTheme(e){let t=this.getWritable();return t.__theme=e||void 0,t}getTheme(){return this.getLatest().__theme}};function M5(e,t){return El(j5).setLanguage(e).setTheme(t)}function N5(e){return e instanceof j5}function P5(e){return{node:M5(e.getAttribute(O5))}}function F5(e){let t=e,n=R5(t);return n||function(e){let t=e.parentElement;for(;t!==null;){if(R5(t))return!0;t=t.parentElement}return!1}(t)?{node:n?M5():null}:{node:null}}function I5(){return{node:M5()}}function L5(){return{node:null}}function R5(e){return e.style.fontFamily.match(`monospace`)!==null}function z5(e){return e.classList.contains(`js-file-line-container`)}var B5=class e extends ao{constructor(e=``,t,n){super(e,n),this.__highlightType=t}static getType(){return`code-highlight`}static clone(t){return new e(t.__text,t.__highlightType||void 0,t.__key)}getHighlightType(){return this.getLatest().__highlightType}setHighlightType(e){let t=this.getWritable();return t.__highlightType=e||void 0,t}canHaveFormat(){return!1}createDOM(e){let t=super.createDOM(e);return Yu(t,V5(e.theme,this.__highlightType)),t}updateDOM(e,t,n){let r=super.updateDOM(e,t,n),i=V5(n.theme,e.__highlightType),a=V5(n.theme,this.__highlightType);return i!==a&&(i&&Xu(t,i),a&&Yu(t,a)),r}static importJSON(e){return H5().updateFromJSON(e)}updateFromJSON(e){return super.updateFromJSON(e).setHighlightType(e.highlightType)}exportJSON(){return{...super.exportJSON(),highlightType:this.getHighlightType()}}setFormat(e){return this}isParentRequired(){return!0}createParentElementNode(){return M5()}};function V5(e,t){return t&&e&&e.codeHighlight&&e.codeHighlight[t]}function H5(e=``,t){return nl(new B5(e,t))}function U5(e){return e instanceof B5}function W5(e,t){let n=e;for(let r=Vl(e,t);r&&(U5(r.origin)||yo(r.origin));r=Zu(r))n=r.origin;return n}function G5(e){return W5(e,`previous`)}(function(e){e.languages.diff={coord:[/^(?:\*{3}|-{3}|\+{3}).*$/m,/^@@.*@@$/m,/^\d.*$/m]};var t={"deleted-sign":`-`,"deleted-arrow":`<`,"inserted-sign":`+`,"inserted-arrow":`>`,unchanged:` `,diff:`!`};Object.keys(t).forEach((function(n){var r=t[n],i=[];/^\w+$/.test(n)||i.push(/\w+/.exec(n)[0]),n===`diff`&&i.push(`bold`),e.languages.diff[n]={pattern:RegExp(`^(?:[`+r+`].*(?:\r
|
|
195
|
+
?|
|
|
196
|
+
|(?![\\s\\S])))+`,`m`),alias:i,inside:{line:{pattern:/(.)(?=[\s\S]).*(?:\r\n?|\n)?/,lookbehind:!0},prefix:{pattern:/[\s\S]/,alias:/\w+/.exec(n)[0]}}}})),Object.defineProperty(e.languages.diff,`PREFIXES`,{value:t})})(Prism),globalThis.Prism||window.Prism;function K5(e,t){let n={};for(let r of e){let e=t(r);e&&(n[e]?n[e].push(r):n[e]=[r])}return n}function q5(e){let t=K5(e,(e=>e.type));return{element:t.element||[],multilineElement:t[`multiline-element`]||[],textFormat:t[`text-format`]||[],textMatch:t[`text-match`]||[]}}var J5=/[!-/:-@[-`{-~\s]/;function Y5(e){return H(e)&&!e.hasFormat(`code`)}function X5(e,...t){let n=new URL(`https://lexical.dev/docs/error`),r=new URLSearchParams;r.append(`code`,e);for(let e of t)r.append(`v`,e);throw n.search=r.toString(),Error(`Minified Lexical error #${e}; visit ${n.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}function Z5(e,t,n){let r=n.length;for(let i=t;i>=r;i--){let t=i-r;if(Q5(e,t,n,0,r)&&e[t+r]!==` `)return t}return-1}function Q5(e,t,n,r,i){for(let a=0;a<i;a++)if(e[t+a]!==n[r+a])return!1;return!0}function $5(e,t=A7){let n=q5(t),r=K5(n.textFormat,(({tag:e})=>e[e.length-1])),i=K5(n.textMatch,(({trigger:e})=>e));for(let n of t){let t=n.type;if(t===`element`||t===`text-match`||t===`multiline-element`){let t=n.dependencies;for(let n of t)e.hasNode(n)||X5(173,n.getType())}}let a=(e,t,a)=>{(function(e,t,n,r){if(!el(e.getParent())||e.getFirstChild()!==t)return!1;let i=t.getTextContent();if(i[n-1]!==` `)return!1;for(let{regExp:a,replace:o}of r){let r=i.match(a);if(r&&r[0].length===(r[0].endsWith(` `)?n:n-1)){let i=t.getNextSiblings(),[a,s]=t.splitText(n);if(!1!==o(e,s?[s,...i]:i,r,!1))return a.remove(),!0}}return!1})(e,t,a,n.element)||function(e,t,n,r){if(!el(e.getParent())||e.getFirstChild()!==t)return!1;let i=t.getTextContent();if(i[n-1]!==` `)return!1;for(let{regExpStart:a,replace:o,regExpEnd:s}of r){if(s&&!(`optional`in s)||s&&`optional`in s&&!s.optional)continue;let r=i.match(a);if(r&&r[0].length===(r[0].endsWith(` `)?n:n-1)){let i=t.getNextSiblings(),[a,s]=t.splitText(n);if(!1!==o(e,s?[s,...i]:i,r,null,null,!1))return a.remove(),!0}}return!1}(e,t,a,n.multilineElement)||function(e,t,n){let r=e.getTextContent(),i=n[r[t-1]];if(i==null)return!1;t<r.length&&(r=r.slice(0,t));for(let t of i){if(!t.replace||!t.regExp)continue;let n=r.match(t.regExp);if(n===null)continue;let i=n.index||0,a=i+n[0].length,o;return i===0?[o]=e.splitText(a):[,o]=e.splitText(i,a),o.selectNext(0,0),t.replace(o,n),!0}return!1}(t,a,i)||function(e,t,n){let r=e.getTextContent(),i=t-1,a=r[i],o=n[a];if(!o)return!1;for(let t of o){let{tag:n}=t,o=n.length,s=i-o+1;if(o>1&&!Q5(r,s,n,0,o)||r[s-1]===` `)continue;let c=r[i+1];if(!1===t.intraword&&c&&!J5.test(c))continue;let l=e,u=l,d=Z5(r,s,n),f=u;for(;d<0&&(f=f.getPreviousSibling())&&!Za(f);)if(H(f)){if(f.hasFormat(`code`))continue;let e=f.getTextContent();u=f,d=Z5(e,e.length,n)}if(d<0||u===l&&d+o===s)continue;let p=u.getTextContent();if(d>0&&p[d-1]===a)continue;let m=p[d-1];if(!1===t.intraword&&m&&!J5.test(m))continue;let h=l.getTextContent(),g=h.slice(0,s)+h.slice(i+1);l.setTextContent(g);let _=u===l?g:p;u.setTextContent(_.slice(0,d)+_.slice(d+o));let v=W(),y=Ro();Sc(y);let b=i-o*(u===l?2:1)+1;y.anchor.set(u.__key,d,`text`),y.focus.set(l.__key,b,`text`);for(let e of t.format)y.hasFormat(e)||y.formatText(e);y.anchor.set(y.focus.key,y.focus.offset,y.focus.type);for(let e of t.format)y.hasFormat(e)&&y.toggleFormat(e);return U(v)&&(y.format=v.format),!0}}(t,a,r)};return e.registerUpdateListener((({tags:t,dirtyLeaves:n,editorState:r,prevEditorState:i})=>{if(t.has(`collaboration`)||t.has(`historic`)||e.isComposing())return;let o=r.read(W),s=i.read(W);if(!U(s)||!U(o)||!o.isCollapsed()||o.is(s))return;let c=o.anchor.key,l=o.anchor.offset,u=r._nodeMap.get(c);!H(u)||!n.has(c)||l!==1&&l>s.anchor.offset+1||e.update((()=>{if(!Y5(u))return;let e=u.getParent();e===null||N5(e)||a(e,u,o.anchor.offset)}))}))}var e7=/^(\s*)(\d{1,})\.\s/,t7=/^(\s*)[-*+]\s/,n7=/^(\s*)(?:-\s)?\s?(\[(\s|x)?\])\s/i,r7=/^(#{1,6})\s/,i7=/^>\s/,a7=/^[ \t]*```([\w-]+)?/,o7=/[ \t]*```$/,s7=e=>(t,n,r,i)=>{let a=e(r);a.append(...n),t.replace(a),i||a.select(0,0)},c7=e=>(t,n,r,i)=>{let a=t.getPreviousSibling(),o=t.getNextSibling(),s=rC(e===`check`?r[3]===`x`:void 0);if(dC(o)&&o.getListType()===e){let e=o.getFirstChild();e===null?o.append(s):e.insertBefore(s),t.remove()}else if(dC(a)&&a.getListType()===e)a.append(s),t.remove();else{let n=uC(e,e===`number`?Number(r[2]):void 0);n.append(s),t.replace(n)}s.append(...n),i||s.select(0,0);let c=function(e){let t=e.match(/\t/g),n=e.match(/ /g),r=0;return t&&(r+=t.length),n&&(r+=Math.floor(n.length/4)),r}(r[1]);c&&s.setIndent(c)},l7=(e,t,n)=>{let r=[],i=e.getChildren(),a=0;for(let o of i)if(iC(o)){if(o.getChildrenSize()===1){let e=o.getFirstChild();if(dC(e)){r.push(l7(e,t,n+1));continue}}let i=` `.repeat(4*n),s=e.getListType(),c=s===`number`?`${e.getStart()+a}. `:s===`check`?`- [${o.getChecked()?`x`:` `}] `:`- `;r.push(i+c+t(o)),a++}return r.join(`
|
|
197
|
+
`)},u7={dependencies:[ef],export:(e,t)=>{if(!of(e))return null;let n=Number(e.getTag().slice(1));return`#`.repeat(n)+` `+t(e)},regExp:r7,replace:s7((e=>af(`h`+e[1].length))),type:`element`},d7={dependencies:[Zd],export:(e,t)=>{if(!$d(e))return null;let n=t(e).split(`
|
|
198
|
+
`),r=[];for(let e of n)r.push(`> `+e);return r.join(`
|
|
199
|
+
`)},regExp:i7,replace:(e,t,n,r)=>{if(r){let n=e.getPreviousSibling();if($d(n))return n.splice(n.getChildrenSize(),0,[Xa(),...t]),void e.remove()}let i=Qd();i.append(...t),e.replace(i),r||i.select(0,0)},type:`element`},f7={dependencies:[j5],export:e=>{if(!N5(e))return null;let t=e.getTextContent();return"```"+(e.getLanguage()||``)+(t?`
|
|
200
|
+
`+t:``)+"\n```"},regExpEnd:{optional:!0,regExp:o7},regExpStart:a7,replace:(e,t,n,r,i,a)=>{let o,s;if(!t&&i){if(i.length===1)r?(o=M5(),s=n[1]+i[0]):(o=M5(n[1]),s=i[0].startsWith(` `)?i[0].slice(1):i[0]);else{if(o=M5(n[1]),i[0].trim().length===0)for(;i.length>0&&!i[0].length;)i.shift();else i[0]=i[0].startsWith(` `)?i[0].slice(1):i[0];for(;i.length>0&&!i[i.length-1].length;)i.pop();s=i.join(`
|
|
201
|
+
`)}let t=ho(s);o.append(t),e.append(o)}else t&&s7((e=>M5(e?e[1]:void 0)))(e,t,n,a)},type:`multiline-element`},p7={dependencies:[aC,eC],export:(e,t)=>dC(e)?l7(e,t,0):null,regExp:t7,replace:c7(`bullet`),type:`element`},m7={dependencies:[aC,eC],export:(e,t)=>dC(e)?l7(e,t,0):null,regExp:n7,replace:c7(`check`),type:`element`},h7={dependencies:[aC,eC],export:(e,t)=>dC(e)?l7(e,t,0):null,regExp:e7,replace:c7(`number`),type:`element`},g7={format:[`code`],tag:"`",type:`text-format`},_7={format:[`highlight`],tag:`==`,type:`text-format`},v7={format:[`bold`,`italic`],tag:`***`,type:`text-format`},y7={format:[`bold`,`italic`],intraword:!1,tag:`___`,type:`text-format`},b7={format:[`bold`],tag:`**`,type:`text-format`},x7={format:[`bold`],intraword:!1,tag:`__`,type:`text-format`},S7={format:[`strikethrough`],tag:`~~`,type:`text-format`},C7={format:[`italic`],tag:`*`,type:`text-format`},w7={format:[`italic`],intraword:!1,tag:`_`,type:`text-format`},T7={dependencies:[wS],export:(e,t,n)=>{if(!DS(e)||AS(e))return null;let r=e.getTitle(),i=t(e);return r?`[${i}](${e.getURL()} "${r}")`:`[${i}](${e.getURL()})`},importRegExp:/(?:\[(.*?)\])(?:\((?:([^()\s]+)(?:\s"((?:[^"]*\\")*[^"]*)"\s*)?)\))/,regExp:/(?:\[(.*?)\])(?:\((?:([^()\s]+)(?:\s"((?:[^"]*\\")*[^"]*)"\s*)?)\))$/,replace:(e,t)=>{let[,n,r,i]=t,a=ES(r,{title:i}),o=n.split(`[`).length-1,s=n.split(`]`).length-1,c=n,l=``;if(o<s)return;if(o>s){let e=n.split(`[`);l=`[`+e[0],c=e.slice(1).join(`[`)}let u=ho(c);return u.setFormat(e.getFormat()),a.append(u),e.replace(a),l&&a.insertBefore(ho(l)),u},trigger:`)`,type:`text-match`},E7=[u7,d7,p7,h7],D7=[f7],O7=[g7,v7,y7,b7,x7,_7,C7,w7,S7],k7=[T7],A7=[...E7,...D7,...O7,...k7],j7=[{dependencies:[tw],export:e=>iw(e)?`***`:null,regExp:/^(---|\*\*\*|___)\s?$/,replace:(e,t,n,r)=>{let i=rw();r||e.getNextSibling()!=null?e.replace(i):e.insertBefore(i),i.selectNext()},type:`element`},...A7];function M7({transformers:e=j7}){let[t]=Fn();return(0,L.useEffect)((()=>$5(t,e)),[t,e]),null}var N7=jn({init(e){let t=e.getValue(Gx),n=L7(t,t.includes(`headings`)?e.getValue(YC):[]),r=n.filter(e=>!I7.has(e));e.pubIn({[Ox]:()=>L.createElement(M7,{transformers:n}),[Fx]:()=>L.createElement(M7,{transformers:n}),[Lx]:()=>L.createElement(M7,{transformers:r})})}}),P7=e=>(t,n,r)=>{let i=e(r);i.append(...n),t.replace(i),i.select(0,0)},F7={dependencies:[tw],export:e=>iw(e)?`***`:null,regExp:/^(---|\*\*\*|___)\s?$/,replace:(e,t,n,r)=>{let i=rw();r||e.getNextSibling()!=null?e.replace(i):e.insertBefore(i),i.selectNext()},type:`element`},I7=new Set([h7,p7,m7]);function L7(e,t){let n=[v7,y7,b7,x7,g7,C7,w7];if(e.includes(`headings`)){let e=Math.min(...t),r=Math.max(...t),i=RegExp(`^(#{${e},${r}})\\s`),a={dependencies:[ef],export:(e,t)=>{if(!of(e))return null;let n=Number(e.getTag().slice(1));return`#`.repeat(n)+` `+t(e)},regExp:i,replace:P7(e=>af(`h${e[1].length}`)),type:`element`};n.push(a)}if(e.includes(`thematicBreak`)&&n.push(F7),e.includes(`quote`)&&n.push(d7),e.includes(`link`)&&n.push(T7),e.includes(`lists`)&&n.push(h7,p7,m7),e.includes(`codeblock`)){let e={...f7,dependencies:[$U],replace:(e,t,n)=>{let r=iW({code:``,language:n[1]??``,meta:``});e.selectPrevious(),e.replace(r),setTimeout(()=>{r.select()},80)}};n.push(e)}return n}var R7=()=>{let e=Cn(Vx),t=xn(Bx),n=xn(Gx),r=n.includes(`quote`),i=n.includes(`headings`),a=Xx();if(!r&&!i)return null;let o=[{label:a(`toolbar.blockTypes.paragraph`,`Paragraph`),value:`paragraph`}];if(r&&o.push({label:a(`toolbar.blockTypes.quote`,`Quote`),value:`quote`}),i){let e=xn(YC);o.push(...e.map(e=>({label:a(`toolbar.blockTypes.heading`,`Heading {{level}}`,{level:e}),value:`h${e}`})))}return L.createElement(Q2,{value:t,onChange:t=>{switch(t){case`quote`:e(()=>Qd());break;case`paragraph`:e(()=>zs());break;case``:break;default:if(t.startsWith(`h`))e(()=>af(t));else throw Error(`Unknown block type: ${t}`)}},triggerTitle:a(`toolbar.blockTypeSelect.selectBlockTypeTooltip`,`Select block type`),placeholder:a(`toolbar.blockTypeSelect.placeholder`,`Block type`),items:o})},z7=({format:e,addTitle:t,removeTitle:n,icon:r,formatName:i})=>{let[a,o]=Sn(Ib,xx),s=Cn(zb),c=(a&e)!==0;return L.createElement(j4,{title:c?n:t,on:c,onValueChange:()=>{s(i)}},o(r))},B7=({options:e})=>{let t=Xx(),n=e===void 0;return L.createElement(`div`,{className:J.toolbarGroupOfGroups},n||e.includes(`Bold`)?L.createElement(z7,{format:1,addTitle:t(`toolbar.bold`,`Bold`),removeTitle:t(`toolbar.removeBold`,`Remove bold`),icon:`format_bold`,formatName:`bold`}):null,n||e.includes(`Italic`)?L.createElement(z7,{format:2,addTitle:t(`toolbar.italic`,`Italic`),removeTitle:t(`toolbar.removeItalic`,`Remove italic`),icon:`format_italic`,formatName:`italic`}):null,n||e.includes(`Underline`)?L.createElement(z7,{format:8,addTitle:t(`toolbar.underline`,`Underline`),removeTitle:t(`toolbar.removeUnderline`,`Remove underline`),icon:`format_underlined`,formatName:`underline`}):null)},V7=({options:e})=>{let t=Xx(),n=e===void 0;return L.createElement(`div`,{className:J.toolbarGroupOfGroups},n||e.includes(`Strikethrough`)?L.createElement(z7,{format:4,addTitle:t(`toolbar.strikethrough`,`Strikethrough`),removeTitle:t(`toolbar.removeStrikethrough`,`Remove strikethrough`),icon:`strikeThrough`,formatName:`strikethrough`}):null,n||e.includes(`Sup`)?L.createElement(z7,{format:64,addTitle:t(`toolbar.superscript`,`Superscript`),removeTitle:t(`toolbar.removeSuperscript`,`Remove superscript`),icon:`superscript`,formatName:`superscript`}):null,n||e.includes(`Sub`)?L.createElement(z7,{format:32,addTitle:t(`toolbar.subscript`,`Subscript`),removeTitle:t(`toolbar.removeSubscript`,`Remove subscript`),icon:`subscript`,formatName:`subscript`}):null)},H7=()=>{let[e,t,n]=Sn(yx,kb,r4),r=aW(e.rootNode)?e.rootNode:null,i=Xx();if(!r)return null;let{value:a,items:o}=n4(n,r.getLanguage());return L.createElement(`div`,{className:J.selectWithLabel},L.createElement(`label`,null,i(`codeBlock.language`,`Code block language`)),L.createElement(Q2,{value:a||`__EMPTY_VALUE__`,onChange:e=>{t?.update(()=>{r.setLanguage(e===`__EMPTY_VALUE__`?``:e),setTimeout(()=>{t.update(()=>{r.getLatest().select()})})})},triggerTitle:i(`codeBlock.selectLanguage`,`Select code block language`),placeholder:i(`codeBlock.language`,`Code block language`),items:o}))},U7=()=>{let[e,t]=Sn(Ib,xx),n=Cn(zb),r=Xx(),i=(e&16)!=0,a=i?r(`toolbar.removeInlineCode`,`Remove code format`):r(`toolbar.inlineCode`,`Inline code format`);return L.createElement(M4,{items:[{title:a,contents:t(`code`),active:i,onChange:n.bind(null,`code`)}]})},W7=()=>{let e=Cn(y4),t=xn(xx),n=Xx();return L.createElement(k4,{"aria-label":n(`toolbar.link`,`Create link`),title:n(`toolbar.link`,`Create link`),onClick:t=>{e()}},t(`link`))},G7=({children:e,SourceToolbar:t,options:n=[`rich-text`,`diff`,`source`]})=>{let[r,i]=Sn(Ux,xx),a=Cn(Ux),o=Xx(),s=[];return n.includes(`rich-text`)&&s.push({title:o(`toolbar.richText`,`Rich text`),contents:i(`rich_text`),value:`rich-text`}),n.includes(`diff`)&&s.push({title:o(`toolbar.diffMode`,`Diff mode`),contents:i(`difference`),value:`diff`}),n.includes(`source`)&&s.push({title:o(`toolbar.source`,`Source mode`),contents:i(`markdown`),value:`source`}),L.createElement(L.Fragment,null,r===`rich-text`?e:r===`diff`?L.createElement(`span`,{className:J.toolbarTitleMode},o(`toolbar.diffMode`,`Diff mode`)):t??L.createElement(`span`,{className:J.toolbarTitleMode},o(`toolbar.source`,`Source mode`)),L.createElement(`div`,{className:J.diffSourceToggleWrapper},L.createElement(N4,{className:J.diffSourceToggle,ggClassName:J.ggDiffSourceToggle,value:r,items:s,onChange:e=>{a(e===``?`rich-text`:e)}})))},K7=()=>{let e=Cn(uW),t=xn(xx),n=Xx();return L.createElement(k4,{title:n(`toolbar.codeBlock`,`Insert Code Block`),onClick:()=>{e({})}},t(`frame_source`))},q7=()=>{let e=Cn(HU),[t,n]=Sn(WU,xx),r=Xx();return L.createElement(k4,{title:t?r(`toolbar.editFrontmatter`,`Edit frontmatter`):r(`toolbar.insertFrontmatter`,`Insert frontmatter`),className:(0,jC.default)({[J.activeToolbarButton]:t}),onClick:()=>{e()}},n(`frontmatter`))},J7=L.forwardRef((e,t)=>{let n=Cn(iz),[r,i]=Sn(Mb,xx),a=Xx();return L.createElement(fM,{"aria-label":a(`toolbar.image`,`Insert image`),className:J.toolbarButton,ref:t,disabled:r,onClick:()=>{n()}},L.createElement(J2,{title:a(`toolbar.image`,`Insert image`)},i(`add_photo`)))}),Y7=()=>{let e=xn(xx),t=Cn(IM),n=Xx(),r=xn(Rx);return L.createElement(k4,{title:n(`toolbar.table`,`Insert Table`),onClick:()=>{t({rows:3,columns:3})},...r?{"aria-disabled":!0,"data-disabled":!0,disabled:!0}:{}},e(`table`))},X7=()=>{let e=Cn(cw),t=xn(xx),n=Xx();return L.createElement(k4,{title:n(`toolbar.thematicBreak`,`Insert thematic break`),onClick:()=>{e()}},t(`horizontal_rule`))},Z7={bullet:`format_list_bulleted`,number:`format_list_numbered`,check:`format_list_checked`},Q7=({options:e=[`bullet`,`number`,`check`]})=>{let[t,n,r]=Sn(Ow,xx,Rx),i=Cn(kw),a=Xx(),o={bullet:a(`toolbar.bulletedList`,`Bulleted list`),number:a(`toolbar.numberedList`,`Numbered list`),check:a(`toolbar.checkList`,`Check list`)},s=e.map(e=>({value:e,title:o[e],contents:n(Z7[e])}));return L.createElement(N4,{value:t||``,items:s,onChange:i,disabled:r})},$7=()=>{let[e,t]=Sn(xx,kb),[n,r]=L.useState(!1),[i,a]=L.useState(!1),o=Xx();return L.useEffect(()=>{if(t)return Ku(t.registerCommand(fa,e=>(r(e),!1),4),t.registerCommand(da,e=>(a(e),!1),4))},[t]),L.createElement(M4,{items:[{title:o(`toolbar.undo`,`Undo {{shortcut}}`,{shortcut:HC?`⌘Z`:`Ctrl+Z`}),disabled:!n,contents:e(`undo`),active:!1,onChange:()=>t?.dispatchCommand(Li,void 0)},{title:o(`toolbar.redo`,`Redo {{shortcut}}`,{shortcut:HC?`⌘Y`:`Ctrl+Y`}),disabled:!i,contents:e(`redo`),active:!1,onChange:()=>t?.dispatchCommand(Ri,void 0)}]})},e9=900,t9={txt:`Text`,text:`Text`,plaintext:`Plain Text`,md:`Markdown`,tsx:`TSX`,ts:`TypeScript`,js:`JavaScript`,json:`JSON`,css:`CSS`,bash:`Bash`,sh:`Shell`,shell:`Shell`,yaml:`YAML`,yml:`YAML`,toml:`TOML`,cron:`Cron`};function n9(e){let t=e,n=!1;for(;;){let e=t.getParent();if(e===null||el(e))return null;let r=t.getNextSibling();if(r!==null)return!n&&H(r)?null:{parent:e,offset:t.getIndexWithinParent()+1};if(!e.isInline())return{parent:e,offset:t.getIndexWithinParent()+1};t=e,n=!0}}var r9=jn({init(e){e.pub(wx,e=>e.registerCommand(Bi,t=>{let n=t;if(n.shiftKey||n.altKey||n.ctrlKey||n.metaKey)return!1;let r=!1;return e.update(()=>{let e=W();if(!U(e)||!e.isCollapsed()||e.anchor.type!==`text`)return;let t=e.anchor.getNode();if(!H(t)||!(t.getFormat()&16)||e.anchor.offset!==t.getTextContentSize())return;let n=n9(t);n&&(e.anchor.set(n.parent.getKey(),n.offset,`element`),e.focus.set(n.parent.getKey(),n.offset,`element`),e.setFormat(e.format&-17),r=!0)}),r?(n.preventDefault(),!0):!1},3))}});function i9(){return(0,R.jsx)(F4,{options:[{when:e=>e?.editorType===`codeblock`,contents:()=>(0,R.jsxs)(R.Fragment,{children:[(0,R.jsx)($7,{}),(0,R.jsx)(I4,{}),(0,R.jsx)(H7,{}),(0,R.jsx)(I4,{}),(0,R.jsx)(K7,{})]})},{fallback:()=>(0,R.jsxs)(R.Fragment,{children:[(0,R.jsx)($7,{}),(0,R.jsx)(I4,{}),(0,R.jsx)(B7,{options:[`Bold`,`Italic`]}),(0,R.jsx)(V7,{options:[`Strikethrough`]}),(0,R.jsx)(U7,{}),(0,R.jsx)(I4,{}),(0,R.jsx)(R7,{}),(0,R.jsx)(Q7,{}),(0,R.jsx)(W7,{}),(0,R.jsx)(I4,{}),(0,R.jsx)(J7,{}),(0,R.jsx)(Y7,{}),(0,R.jsx)(X7,{}),(0,R.jsx)(K7,{}),(0,R.jsx)(q7,{})]})}]})}var a9=(0,L.memo)((0,L.forwardRef)(function({documentKey:e,initialMarkdown:t,onPersist:n,onSaveStateChange:r,readOnly:i=!1,ariaLabel:a=`Markdown editor`},o){let s=(0,L.useRef)(null),c=(0,L.useRef)(null),l=(0,L.useRef)(e),u=(0,L.useRef)(t),d=(0,L.useRef)(t),f=(0,L.useRef)(null),p=(0,L.useRef)(null),m=(0,L.useRef)(null),[h,g]=(0,L.useState)(`rich`),[_,v]=(0,L.useState)(t),[y,b]=(0,L.useState)(0),[x,S]=(0,L.useState)(!1),[C,w]=(0,L.useState)(null),T=(0,L.useCallback)(()=>{m.current!==null&&(window.clearTimeout(m.current),m.current=null)},[]),E=(0,L.useCallback)(async()=>{if(i){r(`saved`);return}p.current&&await p.current;let e=u.current;if(e===d.current){r(`saved`);return}r(`saving`),f.current=e;let t=(async()=>{await n(e),d.current=e})();p.current=t;try{if(await t,u.current===d.current){r(`saved`);return}await E()}catch(e){throw r(`error`),e instanceof Error?e:Error(`Autosave failed`)}finally{p.current===t&&(p.current=null,f.current=null)}},[n,r,i]),ee=(0,L.useCallback)(()=>{i||(T(),m.current=window.setTimeout(()=>{m.current=null,E().catch(()=>void 0)},e9))},[T,E,i]),D=(0,L.useCallback)((e,t)=>{if(u.current=e,v(e),t){d.current=e,r(`saved`);return}if(i){r(`saved`);return}if(e===d.current){T(),r(`saved`);return}r(`idle`),ee()},[T,r,i,ee]),O=(0,L.useMemo)(()=>[XC(),Aw(),JU(),lw(),aN(),T4(),fz(),LM(),fW({defaultCodeBlockLanguage:`txt`,codeBlockEditorDescriptors:[{priority:-10,match:()=>!0,Editor:$2}]}),s4({codeBlockLanguages:t9}),GU(),E5({viewMode:`rich-text`}),N7(),r9(),B4({toolbarContents:()=>(0,R.jsx)(G7,{options:[`rich-text`,`source`],children:(0,R.jsx)(i9,{})})})],[]);(0,L.useImperativeHandle)(o,()=>({flushSave:async()=>{T(),await E()},getMarkdown:()=>u.current})),(0,L.useEffect)(()=>()=>T(),[T]),(0,L.useEffect)(()=>{let n=l.current!==e,i=t!==d.current,a=!n&&p.current!==null&&t===f.current;!n&&!i||a||(l.current=e,T(),p.current=null,f.current=null,u.current=t,d.current=t,v(t),g(`rich`),n||b(e=>e+1),r(`saved`))},[e,t,r,T]),(0,L.useEffect)(()=>{if(!x)return;let e=document.body.style.overflow;document.body.style.overflow=`hidden`;let t=e=>{e.key===`Escape`&&(e.preventDefault(),S(!1))};window.addEventListener(`keydown`,t);let n=window.requestAnimationFrame(()=>{h===`plain`||i?c.current?.focus({preventScroll:!0}):s.current?.focus(void 0,{preventScroll:!0})});return()=>{window.cancelAnimationFrame(n),window.removeEventListener(`keydown`,t),document.body.style.overflow=e}},[h,x,i]);let k=h===`plain`||i?(0,R.jsxs)(`div`,{className:`markdown-editor__plain-fallback`,children:[(0,R.jsx)(`p`,{className:`markdown-editor__plain-notice`,children:i?`This document is read-only. Create a managed copy to edit it.`:`The rich editor could not safely load this document. You are editing raw Markdown.`}),(0,R.jsx)(`textarea`,{ref:c,className:`markdown-editor__plain-textarea`,"aria-label":`${a} source`,value:i?t:_,readOnly:i,onChange:e=>{if(i)return;let t=e.currentTarget.value;if(v(t),u.current=t,t===d.current){T(),r(`saved`);return}r(`idle`),ee()},spellCheck:!1})]}):(0,R.jsx)(BC,{ref:s,className:`markdown-editor__mdx`,markdown:t,onChange:D,onError:e=>{console.error(`MDXEditor error`,e.error);let t=e.source||u.current;u.current=t,v(t),g(`plain`)},contentEditableClassName:`markdown-editor__content`,placeholder:(0,R.jsx)(`span`,{children:`Start writing Markdown…`}),overlayContainer:C,plugins:O},`${e}:${y}`);return(0,R.jsxs)(R.Fragment,{children:[x?(0,R.jsx)(`button`,{type:`button`,className:`markdown-editor__backdrop`,"aria-label":`Exit focused Markdown editor`,onClick:()=>S(!1)}):null,(0,R.jsxs)(`div`,{ref:w,className:`markdown-editor-shell${x?` markdown-editor-shell--expanded`:``}`,"aria-label":a,"data-expanded":x?`true`:`false`,"data-read-only":i?`true`:`false`,children:[(0,R.jsxs)(`div`,{className:`markdown-editor__utility-bar`,children:[(0,R.jsxs)(`div`,{className:`markdown-editor__identity`,children:[(0,R.jsx)(jt,{size:14,"aria-hidden":`true`}),(0,R.jsx)(`span`,{children:`Markdown`}),(0,R.jsx)(`span`,{className:`markdown-editor__mode-label`,children:i?`Read only`:h===`plain`?`Source fallback`:`Rich + source`})]}),(0,R.jsxs)(`button`,{type:`button`,className:`markdown-editor__expand-button`,"aria-label":x?`Exit focused editor`:`Open focused editor`,"aria-pressed":x,title:x?`Exit focused editor (Esc)`:`Open focused editor`,onClick:()=>S(e=>!e),children:[x?(0,R.jsx)(Pt,{size:16,"aria-hidden":`true`}):(0,R.jsx)(Nt,{size:16,"aria-hidden":`true`}),(0,R.jsx)(`span`,{children:x?`Exit focus`:`Focus`})]})]}),k]})]})}));function o9(){let e=(0,L.useRef)(null),t=(0,L.useRef)(`saved`),[n,r]=(0,L.useState)([]),[i,a]=(0,L.useState)(null),[o,s]=(0,L.useState)(null),[c,l]=(0,L.useState)([]),[u,d]=(0,L.useState)(null),[f,p]=(0,L.useState)(`saved`),[m,h]=(0,L.useState)(null),[g,_]=(0,L.useState)(null),[v,y]=(0,L.useState)(!0),[b,x]=(0,L.useState)(!1),[S,C]=(0,L.useState)(``),[w,T]=(0,L.useState)(`global`),[E,ee]=(0,L.useState)(``),[D,O]=(0,L.useState)(``);(0,L.useEffect)(()=>{t.current=f},[f]);let k=(0,L.useCallback)(async e=>{if(s(e),a(e.key),h(null),_(null),!e.managed){l([]),d(null);return}let[t,n]=await Promise.all([qt(e.key),e.sourceRef?Jt(e.key).catch(()=>null):Promise.resolve(null)]);l(t.revisions),d(n)},[]),A=(0,L.useCallback)(async()=>{let e=await Bt();r(e),a(t=>t??e[0]?.key??null)},[]),j=(0,L.useCallback)(async e=>{await k(await Vt(e))},[k]);(0,L.useEffect)(()=>{A().catch(e=>_(e instanceof Error?e.message:String(e))).finally(()=>y(!1))},[A]),(0,L.useEffect)(()=>{if(!i){s(null);return}j(i).catch(e=>_(e instanceof Error?e.message:String(e)))},[i,j]),(0,L.useEffect)(()=>{let e=new EventSource(`/api/context-files/events`);return e.addEventListener(`pibo-product`,e=>{let n=d9(e);if(!n?.type.startsWith(`context-file.`))return;A().catch(e=>_(e instanceof Error?e.message:String(e)));let r=n.payload?.key;if(!(!r||r!==i)&&n.source!==`web`){if(t.current===`idle`||t.current===`saving`){h(`This file changed on disk while you had local edits. Review before saving again.`);return}j(r).catch(e=>_(e instanceof Error?e.message:String(e)))}}),e.onerror=()=>{_(`Live context-file updates disconnected.`)},()=>e.close()},[j,A,i]);let M=(0,L.useMemo)(()=>n.find(e=>e.key===i)??null,[n,i]);(0,L.useEffect)(()=>{O(o?.agentProfileName??``)},[o?.agentProfileName,o?.key]);let N=(0,L.useCallback)(async t=>{try{await e.current?.flushSave(),a(t)}catch(e){_(e instanceof Error?e.message:String(e))}},[]),te=(0,L.useCallback)(async()=>{try{let e=await Ht({label:S,scope:w,agentProfileName:w===`agent`?E:void 0,markdown:``});C(``),ee(``),await A(),await k(e),_(null)}catch(e){_(e instanceof Error?e.message:String(e))}},[E,S,w,k,A]),ne=(0,L.useCallback)(async e=>{if(o)try{await k(await Wt(o.key,{markdown:e,expectedVersion:o.version})),h(null),await A()}catch(e){throw f9(e)&&(await k(e.data.file),h(`The file changed before save. The editor reloaded the latest disk version.`)),e}},[o,k,A]),re=(0,L.useCallback)(async()=>{i&&(await j(i),await A())},[j,A,i]),ie=(0,L.useCallback)(async()=>{if(M?.removable)try{await Kt(M.key,!0),a(null),s(null),await A(),_(null)}catch(e){_(e instanceof Error?e.message:String(e))}},[A,M]),ae=(0,L.useCallback)(async e=>{if(o?.managed)try{await k(await Gt(o.key,{scope:e,agentProfileName:e===`agent`?D:void 0})),await A(),_(null)}catch(e){_(e instanceof Error?e.message:String(e))}},[o,k,D,A]),oe=(0,L.useCallback)(async()=>{if(!(!M||M.source!==`plugin`)){x(!0);try{let e=await Ut(M.key);await A(),await k(e),_(null)}catch(e){_(e instanceof Error?e.message:String(e))}finally{x(!1)}}},[k,A,M]),P=(0,L.useCallback)(async()=>{if(!(!o?.managed||!o.sourceRef)){x(!0);try{let e=await Yt(o.key);await A(),await k(e)}catch(e){_(e instanceof Error?e.message:String(e))}finally{x(!1)}}},[o,k,A]),se=(0,L.useCallback)(async()=>{if(!(!o?.managed||o.linkState!==`linked-stale`)){x(!0);try{let e=await Xt(o.key);await A(),await k(e)}catch(e){_(e instanceof Error?e.message:String(e))}finally{x(!1)}}},[o,k,A]),ce=(0,L.useCallback)(async e=>{if(o?.managed){x(!0);try{let t=await Zt(o.key,e);await A(),await k(t)}catch(e){_(e instanceof Error?e.message:String(e))}finally{x(!1)}}},[o,k,A]);return(0,R.jsxs)(`div`,{className:`app-shell`,children:[(0,R.jsxs)(`aside`,{className:`sidebar`,children:[(0,R.jsxs)(`div`,{className:`sidebar-header`,children:[(0,R.jsxs)(`div`,{children:[(0,R.jsx)(`p`,{className:`eyebrow`,children:`Pibo`}),(0,R.jsx)(`h1`,{children:`Context Files`})]}),(0,R.jsx)(`a`,{className:`chat-link`,href:`/apps/chat`,children:`Chat`})]}),(0,R.jsxs)(`section`,{className:`tool-panel`,children:[(0,R.jsxs)(`div`,{className:`segmented`,children:[(0,R.jsxs)(`button`,{className:w===`global`?`active`:``,type:`button`,onClick:()=>T(`global`),children:[(0,R.jsx)(At,{size:15}),`Global`]}),(0,R.jsxs)(`button`,{className:w===`agent`?`active`:``,type:`button`,onClick:()=>T(`agent`),children:[(0,R.jsx)(Mt,{size:15}),`Agent`]})]}),(0,R.jsx)(`input`,{value:S,onChange:e=>C(e.currentTarget.value),placeholder:`Context file name`}),w===`agent`?(0,R.jsx)(`input`,{value:E,onChange:e=>ee(e.currentTarget.value),placeholder:`agent-profile-name`}):null,(0,R.jsx)(`button`,{className:`primary-action`,type:`button`,disabled:!S.trim()||w===`agent`&&!E.trim(),onClick:()=>void te(),children:`Create File`})]}),(0,R.jsxs)(`section`,{className:`file-list`,"aria-label":`Context files`,children:[(0,R.jsxs)(`div`,{className:`list-title`,children:[(0,R.jsx)(Mt,{size:15}),(0,R.jsxs)(`span`,{children:[n.length,` files`]})]}),v?(0,R.jsx)(`div`,{className:`empty`,children:`Loading`}):null,n.map(e=>(0,R.jsxs)(`button`,{type:`button`,className:e.key===i?`file-row selected`:`file-row`,onClick:()=>void N(e.key),children:[(0,R.jsx)(`span`,{className:`file-name`,children:e.label||e.key}),(0,R.jsx)(`span`,{className:`file-path`,children:e.path}),(0,R.jsx)(`span`,{className:`scope-badge scope-badge--${e.scope}`,children:l9(e)}),(0,R.jsx)(`span`,{className:`scope-badge scope-badge--${e.scope}`,children:u9(e.linkState)}),e.exists?null:(0,R.jsx)(`span`,{className:`missing`,children:`missing`})]},e.key)),!v&&n.length===0?(0,R.jsx)(`div`,{className:`empty`,children:`No context files registered`}):null]})]}),(0,R.jsxs)(`main`,{className:`editor-pane`,children:[(0,R.jsxs)(`header`,{className:`editor-header`,children:[(0,R.jsxs)(`div`,{className:`editor-title`,children:[(0,R.jsx)(`p`,{className:`eyebrow`,children:M?l9(M):`Context File`}),(0,R.jsx)(`h2`,{children:o?.label||o?.key||`No file selected`}),o?(0,R.jsx)(`p`,{className:`path-line`,children:o.path}):null]}),(0,R.jsxs)(`div`,{className:`editor-actions`,children:[(0,R.jsxs)(`span`,{className:`save-pill save-pill--${f}`,children:[(0,R.jsx)(It,{size:15}),c9(f)]}),(0,R.jsx)(`button`,{className:`icon-button`,type:`button`,title:`Reload`,onClick:()=>void re(),children:(0,R.jsx)(Ft,{size:16})}),(0,R.jsx)(`button`,{className:`icon-button danger`,type:`button`,title:`Remove managed file`,disabled:!M?.removable,onClick:()=>void ie(),children:(0,R.jsx)(Lt,{size:16})})]})]}),g?(0,R.jsx)(s9,{tone:`error`,text:g}):null,m?(0,R.jsx)(s9,{tone:`warning`,text:m}):null,o?(0,R.jsxs)(`div`,{className:`scope-controls`,children:[(0,R.jsxs)(`div`,{children:[`State: `,(0,R.jsx)(`strong`,{children:u9(o.linkState)})]}),o.sourceRef?(0,R.jsxs)(`div`,{children:[`Source: `,(0,R.jsx)(`code`,{children:o.sourceRef})]}):null,o.sourceHash?(0,R.jsxs)(`div`,{children:[`Hash: `,(0,R.jsx)(`code`,{children:o.sourceHash})]}):null]}):null,o?.source===`plugin`?(0,R.jsxs)(`div`,{className:`scope-controls`,children:[(0,R.jsx)(`div`,{children:`This is a plugin-owned source file. Create a managed copy before editing.`}),(0,R.jsx)(`button`,{className:`primary-action`,type:`button`,disabled:b,onClick:()=>void oe(),children:`Create Managed Copy`})]}):null,o?.managed?(0,R.jsxs)(`div`,{className:`scope-controls`,children:[(0,R.jsxs)(`div`,{className:`segmented`,children:[(0,R.jsx)(`button`,{type:`button`,className:o.scope===`global`?`active`:``,onClick:()=>void ae(`global`),children:`Global`}),(0,R.jsx)(`button`,{type:`button`,className:o.scope===`agent`?`active`:``,onClick:()=>void ae(`agent`),disabled:!D.trim(),children:`Agent`})]}),(0,R.jsx)(`input`,{value:D,onChange:e=>O(e.currentTarget.value),placeholder:`agent-profile-name`}),o.sourceRef?(0,R.jsxs)(R.Fragment,{children:[(0,R.jsx)(`button`,{className:`primary-action`,type:`button`,disabled:b,onClick:()=>void P(),children:`Reset To Source`}),o.linkState===`linked-stale`?(0,R.jsx)(`button`,{className:`primary-action`,type:`button`,disabled:b,onClick:()=>void se(),children:`Adopt Source`}):null]}):null]}):null,o?.exists?(0,R.jsx)(`div`,{className:`editor-frame`,children:(0,R.jsx)(a9,{ref:e,documentKey:o.key,initialMarkdown:o.markdown,onPersist:ne,onSaveStateChange:p,readOnly:!o.editable,ariaLabel:o.label?`${o.label} Markdown editor`:`Context file Markdown editor`})}):(0,R.jsxs)(`div`,{className:`empty-editor`,children:[(0,R.jsx)(Rt,{size:20}),o?`The selected file is missing on disk.`:`Select or create a context file.`]}),o?.managed&&c.length>0?(0,R.jsxs)(`div`,{className:`scope-controls`,children:[(0,R.jsx)(`h3`,{children:`Revisions`}),(0,R.jsx)(`div`,{className:`file-list`,children:c.map(e=>(0,R.jsxs)(`div`,{className:`file-row`,children:[(0,R.jsxs)(`div`,{children:[(0,R.jsx)(`strong`,{children:e.kind}),` `,e.active?`(active)`:``]}),(0,R.jsx)(`div`,{children:e.note??e.id}),(0,R.jsx)(`div`,{children:e.createdAt}),e.active?null:(0,R.jsx)(`button`,{className:`primary-action`,type:`button`,disabled:b,onClick:()=>void ce(e.id),children:`Restore`})]},e.id))})]}):null,o?.managed&&u?(0,R.jsxs)(`div`,{className:`scope-controls`,children:[(0,R.jsx)(`h3`,{children:`Diff`}),(0,R.jsx)(`div`,{className:`file-list`,children:u.chunks.map((e,t)=>(0,R.jsx)(`pre`,{className:`file-row`,children:e.lines.map(t=>`${e.type===`add`?`+`:e.type===`remove`?`-`:` `} ${t}`).join(`
|
|
202
|
+
`)},`${e.type}-${t}`))})]}):null]})]})}function s9({tone:e,text:t}){return(0,R.jsx)(`div`,{className:`status-banner status-banner--${e}`,children:t})}function c9(e){return e===`saving`?`Saving`:e===`saved`?`Saved`:e===`error`?`Error`:`Unsaved`}function l9(e){return e.source===`plugin`?`Plugin Global`:e.scope===`agent`?e.agentProfileName?`Agent ${e.agentProfileName}`:`Agent Local`:`Global`}function u9(e){return e===`plugin-only`?`Plugin Only`:e===`linked-clean`?`Linked Clean`:e===`linked-dirty`?`Linked Dirty`:e===`linked-stale`?`Linked Stale`:e===`orphaned`?`Orphaned`:`Managed Unlinked`}function d9(e){try{let t=JSON.parse(e.data);return t&&typeof t.type==`string`?t:void 0}catch{return}}function f9(e){return typeof e==`object`&&!!e&&`status`in e&&e.status===409&&`data`in e&&typeof e.data==`object`&&e.data?.file!==void 0}(0,zt.createRoot)(document.getElementById(`root`)).render((0,R.jsx)(L.StrictMode,{children:(0,R.jsx)(o9,{})}));export{bW as a,yW as i,jZ as n,AG as o,CY as r,yQ as t};
|