modelroom 0.0.2 → 0.0.4

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.
@@ -0,0 +1,69 @@
1
+ /* modelroom UI — built from web/ by scripts/build-web.mjs. Do not edit by hand; run `npm run build:web`. */
2
+ var J5=Object.create;var jO=Object.defineProperty;var e3=Object.getOwnPropertyDescriptor;var t3=Object.getOwnPropertyNames;var a3=Object.getPrototypeOf,n3=Object.prototype.hasOwnProperty;var be=(t,e)=>()=>{try{return e||t((e={exports:{}}).exports,e),e.exports}catch(a){throw e=0,a}},ew=(t,e)=>{for(var a in e)jO(t,a,{get:e[a],enumerable:!0})},r3=(t,e,a,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of t3(e))!n3.call(t,r)&&r!==a&&jO(t,r,{get:()=>e[r],enumerable:!(n=e3(e,r))||n.enumerable});return t};var M=(t,e,a)=>(a=t!=null?J5(a3(t)):{},r3(e||!t||!t.__esModule?jO(a,"default",{value:t,enumerable:!0}):a,t));var cw=be(gt=>{"use strict";function KO(t,e){var a=t.length;t.push(e);e:for(;0<a;){var n=a-1>>>1,r=t[n];if(0<Sh(r,e))t[n]=e,t[a]=r,a=n;else break e}}function kr(t){return t.length===0?null:t[0]}function vh(t){if(t.length===0)return null;var e=t[0],a=t.pop();if(a!==e){t[0]=a;e:for(var n=0,r=t.length,i=r>>>1;n<i;){var o=2*(n+1)-1,s=t[o],l=o+1,u=t[l];if(0>Sh(s,a))l<r&&0>Sh(u,s)?(t[n]=u,t[l]=a,n=l):(t[n]=s,t[o]=a,n=o);else if(l<r&&0>Sh(u,a))t[n]=u,t[l]=a,n=l;else break e}}return e}function Sh(t,e){var a=t.sortIndex-e.sortIndex;return a!==0?a:t.id-e.id}gt.unstable_now=void 0;typeof performance=="object"&&typeof performance.now=="function"?(tw=performance,gt.unstable_now=function(){return tw.now()}):(VO=Date,aw=VO.now(),gt.unstable_now=function(){return VO.now()-aw});var tw,VO,aw,ni=[],zi=[],i3=1,En=null,Ca=3,JO=!1,wc=!1,kc=!1,eb=!1,iw=typeof setTimeout=="function"?setTimeout:null,ow=typeof clearTimeout=="function"?clearTimeout:null,nw=typeof setImmediate<"u"?setImmediate:null;function yh(t){for(var e=kr(zi);e!==null;){if(e.callback===null)vh(zi);else if(e.startTime<=t)vh(zi),e.sortIndex=e.expirationTime,KO(ni,e);else break;e=kr(zi)}}function tb(t){if(kc=!1,yh(t),!wc)if(kr(ni)!==null)wc=!0,wl||(wl=!0,Cl());else{var e=kr(zi);e!==null&&ab(tb,e.startTime-t)}}var wl=!1,Lc=-1,sw=5,lw=-1;function uw(){return eb?!0:!(gt.unstable_now()-lw<sw)}function YO(){if(eb=!1,wl){var t=gt.unstable_now();lw=t;var e=!0;try{e:{wc=!1,kc&&(kc=!1,ow(Lc),Lc=-1),JO=!0;var a=Ca;try{t:{for(yh(t),En=kr(ni);En!==null&&!(En.expirationTime>t&&uw());){var n=En.callback;if(typeof n=="function"){En.callback=null,Ca=En.priorityLevel;var r=n(En.expirationTime<=t);if(t=gt.unstable_now(),typeof r=="function"){En.callback=r,yh(t),e=!0;break t}En===kr(ni)&&vh(ni),yh(t)}else vh(ni);En=kr(ni)}if(En!==null)e=!0;else{var i=kr(zi);i!==null&&ab(tb,i.startTime-t),e=!1}}break e}finally{En=null,Ca=a,JO=!1}e=void 0}}finally{e?Cl():wl=!1}}}var Cl;typeof nw=="function"?Cl=function(){nw(YO)}:typeof MessageChannel<"u"?(WO=new MessageChannel,rw=WO.port2,WO.port1.onmessage=YO,Cl=function(){rw.postMessage(null)}):Cl=function(){iw(YO,0)};var WO,rw;function ab(t,e){Lc=iw(function(){t(gt.unstable_now())},e)}gt.unstable_IdlePriority=5;gt.unstable_ImmediatePriority=1;gt.unstable_LowPriority=4;gt.unstable_NormalPriority=3;gt.unstable_Profiling=null;gt.unstable_UserBlockingPriority=2;gt.unstable_cancelCallback=function(t){t.callback=null};gt.unstable_forceFrameRate=function(t){0>t||125<t?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):sw=0<t?Math.floor(1e3/t):5};gt.unstable_getCurrentPriorityLevel=function(){return Ca};gt.unstable_next=function(t){switch(Ca){case 1:case 2:case 3:var e=3;break;default:e=Ca}var a=Ca;Ca=e;try{return t()}finally{Ca=a}};gt.unstable_requestPaint=function(){eb=!0};gt.unstable_runWithPriority=function(t,e){switch(t){case 1:case 2:case 3:case 4:case 5:break;default:t=3}var a=Ca;Ca=t;try{return e()}finally{Ca=a}};gt.unstable_scheduleCallback=function(t,e,a){var n=gt.unstable_now();switch(typeof a=="object"&&a!==null?(a=a.delay,a=typeof a=="number"&&0<a?n+a:n):a=n,t){case 1:var r=-1;break;case 2:r=250;break;case 5:r=1073741823;break;case 4:r=1e4;break;default:r=5e3}return r=a+r,t={id:i3++,callback:e,priorityLevel:t,startTime:a,expirationTime:r,sortIndex:-1},a>n?(t.sortIndex=a,KO(zi,t),kr(ni)===null&&t===kr(zi)&&(kc?(ow(Lc),Lc=-1):kc=!0,ab(tb,a-n))):(t.sortIndex=r,KO(ni,t),wc||JO||(wc=!0,wl||(wl=!0,Cl()))),t};gt.unstable_shouldYield=uw;gt.unstable_wrapCallback=function(t){var e=Ca;return function(){var a=Ca;Ca=e;try{return t.apply(this,arguments)}finally{Ca=a}}}});var dw=be((uee,fw)=>{"use strict";fw.exports=cw()});var kw=be(ve=>{"use strict";var ib=Symbol.for("react.transitional.element"),o3=Symbol.for("react.portal"),s3=Symbol.for("react.fragment"),l3=Symbol.for("react.strict_mode"),u3=Symbol.for("react.profiler"),c3=Symbol.for("react.consumer"),f3=Symbol.for("react.context"),d3=Symbol.for("react.forward_ref"),h3=Symbol.for("react.suspense"),p3=Symbol.for("react.memo"),Ow=Symbol.for("react.lazy"),m3=Symbol.for("react.activity"),g3=Symbol.for("react.view_transition"),hw=Symbol.iterator;function O3(t){return t===null||typeof t!="object"?null:(t=hw&&t[hw]||t["@@iterator"],typeof t=="function"?t:null)}var bw={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},xw=Object.assign,Sw={};function Ll(t,e,a){this.props=t,this.context=e,this.refs=Sw,this.updater=a||bw}Ll.prototype.isReactComponent={};Ll.prototype.setState=function(t,e){if(typeof t!="object"&&typeof t!="function"&&t!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,t,e,"setState")};Ll.prototype.forceUpdate=function(t){this.updater.enqueueForceUpdate(this,t,"forceUpdate")};function yw(){}yw.prototype=Ll.prototype;function ob(t,e,a){this.props=t,this.context=e,this.refs=Sw,this.updater=a||bw}var sb=ob.prototype=new yw;sb.constructor=ob;xw(sb,Ll.prototype);sb.isPureReactComponent=!0;var pw=Array.isArray;function rb(){}var lt={H:null,A:null,T:null,S:null},vw=Object.prototype.hasOwnProperty;function lb(t,e,a){var n=a.ref;return{$$typeof:ib,type:t,key:e,ref:n!==void 0?n:null,props:a}}function b3(t,e){return lb(t.type,e,t.props)}function ub(t){return typeof t=="object"&&t!==null&&t.$$typeof===ib}function x3(t){var e={"=":"=0",":":"=2"};return"$"+t.replace(/[=:]/g,function(a){return e[a]})}var mw=/\/+/g;function nb(t,e){return typeof t=="object"&&t!==null&&t.key!=null?x3(""+t.key):e.toString(36)}function S3(t){switch(t.status){case"fulfilled":return t.value;case"rejected":throw t.reason;default:switch(typeof t.status=="string"?t.then(rb,rb):(t.status="pending",t.then(function(e){t.status==="pending"&&(t.status="fulfilled",t.value=e)},function(e){t.status==="pending"&&(t.status="rejected",t.reason=e)})),t.status){case"fulfilled":return t.value;case"rejected":throw t.reason}}throw t}function kl(t,e,a,n,r){var i=typeof t;(i==="undefined"||i==="boolean")&&(t=null);var o=!1;if(t===null)o=!0;else switch(i){case"bigint":case"string":case"number":o=!0;break;case"object":switch(t.$$typeof){case ib:case o3:o=!0;break;case Ow:return o=t._init,kl(o(t._payload),e,a,n,r)}}if(o)return r=r(t),o=n===""?"."+nb(t,0):n,pw(r)?(a="",o!=null&&(a=o.replace(mw,"$&/")+"/"),kl(r,e,a,"",function(u){return u})):r!=null&&(ub(r)&&(r=b3(r,a+(r.key==null||t&&t.key===r.key?"":(""+r.key).replace(mw,"$&/")+"/")+o)),e.push(r)),1;o=0;var s=n===""?".":n+":";if(pw(t))for(var l=0;l<t.length;l++)n=t[l],i=s+nb(n,l),o+=kl(n,e,a,i,r);else if(l=O3(t),typeof l=="function")for(t=l.call(t),l=0;!(n=t.next()).done;)n=n.value,i=s+nb(n,l++),o+=kl(n,e,a,i,r);else if(i==="object"){if(typeof t.then=="function")return kl(S3(t),e,a,n,r);throw e=String(t),Error("Objects are not valid as a React child (found: "+(e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)+"). If you meant to render a collection of children, use an array instead.")}return o}function Ch(t,e,a){if(t==null)return t;var n=[],r=0;return kl(t,n,"","",function(i){return e.call(a,i,r++)}),n}function y3(t){if(t._status===-1){var e=t._result,a=e();a.then(function(n){(t._status===0||t._status===-1)&&(t._status=1,t._result=n,a.status===void 0&&(a.status="fulfilled",a.value=n))},function(n){(t._status===0||t._status===-1)&&(t._status=2,t._result=n,a.status===void 0&&(a.status="rejected",a.reason=n))}),t._status===-1&&(t._status=0,t._result=a)}if(t._status===1)return t._result.default;throw t._result}var gw=typeof reportError=="function"?reportError:function(t){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var e=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof t=="object"&&t!==null&&typeof t.message=="string"?String(t.message):String(t),error:t});if(!window.dispatchEvent(e))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",t);return}console.error(t)};function Cw(t){var e=lt.T,a={};a.types=e!==null?e.types:null,lt.T=a;try{var n=t(),r=lt.S;r!==null&&r(a,n),typeof n=="object"&&n!==null&&typeof n.then=="function"&&n.then(rb,gw)}catch(i){gw(i)}finally{e!==null&&a.types!==null&&(e.types=a.types),lt.T=e}}function ww(t){var e=lt.T;if(e!==null){var a=e.types;a===null?e.types=[t]:a.indexOf(t)===-1&&a.push(t)}else Cw(ww.bind(null,t))}var v3={map:Ch,forEach:function(t,e,a){Ch(t,function(){e.apply(this,arguments)},a)},count:function(t){var e=0;return Ch(t,function(){e++}),e},toArray:function(t){return Ch(t,function(e){return e})||[]},only:function(t){if(!ub(t))throw Error("React.Children.only expected to receive a single React element child.");return t}};ve.Activity=m3;ve.Children=v3;ve.Component=Ll;ve.Fragment=s3;ve.Profiler=u3;ve.PureComponent=ob;ve.StrictMode=l3;ve.Suspense=h3;ve.ViewTransition=g3;ve.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=lt;ve.__COMPILER_RUNTIME={__proto__:null,c:function(t){return lt.H.useMemoCache(t)}};ve.addTransitionType=ww;ve.cache=function(t){return function(){return t.apply(null,arguments)}};ve.cacheSignal=function(){return null};ve.cloneElement=function(t,e,a){if(t==null)throw Error("The argument must be a React element, but you passed "+t+".");var n=xw({},t.props),r=t.key;if(e!=null)for(i in e.key!==void 0&&(r=""+e.key),e)!vw.call(e,i)||i==="key"||i==="__self"||i==="__source"||i==="ref"&&e.ref===void 0||(n[i]=e[i]);var i=arguments.length-2;if(i===1)n.children=a;else if(1<i){for(var o=Array(i),s=0;s<i;s++)o[s]=arguments[s+2];n.children=o}return lb(t.type,r,n)};ve.createContext=function(t){return t={$$typeof:f3,_currentValue:t,_currentValue2:t,_threadCount:0,Provider:null,Consumer:null},t.Provider=t,t.Consumer={$$typeof:c3,_context:t},t};ve.createElement=function(t,e,a){var n,r={},i=null;if(e!=null)for(n in e.key!==void 0&&(i=""+e.key),e)vw.call(e,n)&&n!=="key"&&n!=="__self"&&n!=="__source"&&(r[n]=e[n]);var o=arguments.length-2;if(o===1)r.children=a;else if(1<o){for(var s=Array(o),l=0;l<o;l++)s[l]=arguments[l+2];r.children=s}if(t&&t.defaultProps)for(n in o=t.defaultProps,o)r[n]===void 0&&(r[n]=o[n]);return lb(t,i,r)};ve.createRef=function(){return{current:null}};ve.forwardRef=function(t){return{$$typeof:d3,render:t}};ve.isValidElement=ub;ve.lazy=function(t){return{$$typeof:Ow,_payload:{_status:-1,_result:t},_init:y3}};ve.memo=function(t,e){return{$$typeof:p3,type:t,compare:e===void 0?null:e}};ve.startTransition=Cw;ve.unstable_useCacheRefresh=function(){return lt.H.useCacheRefresh()};ve.use=function(t){return lt.H.use(t)};ve.useActionState=function(t,e,a){return lt.H.useActionState(t,e,a)};ve.useCallback=function(t,e){return lt.H.useCallback(t,e)};ve.useContext=function(t){return lt.H.useContext(t)};ve.useDebugValue=function(){};ve.useDeferredValue=function(t,e){return lt.H.useDeferredValue(t,e)};ve.useEffect=function(t,e){return lt.H.useEffect(t,e)};ve.useEffectEvent=function(t){return lt.H.useEffectEvent(t)};ve.useId=function(){return lt.H.useId()};ve.useImperativeHandle=function(t,e,a){return lt.H.useImperativeHandle(t,e,a)};ve.useInsertionEffect=function(t,e){return lt.H.useInsertionEffect(t,e)};ve.useLayoutEffect=function(t,e){return lt.H.useLayoutEffect(t,e)};ve.useMemo=function(t,e){return lt.H.useMemo(t,e)};ve.useOptimistic=function(t,e){return lt.H.useOptimistic(t,e)};ve.useReducer=function(t,e,a){return lt.H.useReducer(t,e,a)};ve.useRef=function(t){return lt.H.useRef(t)};ve.useState=function(t){return lt.H.useState(t)};ve.useSyncExternalStore=function(t,e,a){return lt.H.useSyncExternalStore(t,e,a)};ve.useTransition=function(){return lt.H.useTransition()};ve.version="19.3.1"});var ye=be((fee,Lw)=>{"use strict";Lw.exports=kw()});var _w=be(wa=>{"use strict";var C3=ye();function Aw(t){var e="https://react.dev/errors/"+t;if(1<arguments.length){e+="?args[]="+encodeURIComponent(arguments[1]);for(var a=2;a<arguments.length;a++)e+="&args[]="+encodeURIComponent(arguments[a])}return"Minified React error #"+t+"; visit "+e+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function Ui(){}var _a={d:{f:Ui,r:function(){throw Error(Aw(522))},D:Ui,C:Ui,L:Ui,m:Ui,X:Ui,S:Ui,M:Ui},p:0,findDOMNode:null},w3=Symbol.for("react.portal"),k3=Symbol.for("react.recoverable"),Ew=Symbol.for("react.optimistic_key");function L3(t,e,a){var n=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:w3,key:n==null?null:n===Ew?Ew:""+n,children:t,containerInfo:e,implementation:a}}var Ec=C3.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function wh(t,e){if(t==="font")return"";if(typeof e=="string")return e==="use-credentials"?e:""}wa.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=_a;wa.browser=function(t){return{$$typeof:k3,_reason:t}};wa.createPortal=function(t,e){var a=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)throw Error(Aw(299));return L3(t,e,null,a)};wa.flushSync=function(t){var e=Ec.T,a=_a.p;try{if(Ec.T=null,_a.p=2,t)return t()}finally{Ec.T=e,_a.p=a,_a.d.f()}};wa.preconnect=function(t,e){typeof t=="string"&&(e?(e=e.crossOrigin,e=typeof e=="string"?e==="use-credentials"?e:"":void 0):e=null,_a.d.C(t,e))};wa.prefetchDNS=function(t){typeof t=="string"&&_a.d.D(t)};wa.preinit=function(t,e){if(typeof t=="string"&&e&&typeof e.as=="string"){var a=e.as,n=wh(a,e.crossOrigin),r=typeof e.integrity=="string"?e.integrity:void 0,i=typeof e.fetchPriority=="string"?e.fetchPriority:void 0;a==="style"?_a.d.S(t,typeof e.precedence=="string"?e.precedence:void 0,{crossOrigin:n,integrity:r,fetchPriority:i}):a==="script"&&_a.d.X(t,{crossOrigin:n,integrity:r,fetchPriority:i,nonce:typeof e.nonce=="string"?e.nonce:void 0})}};wa.preinitModule=function(t,e){if(typeof t=="string")if(typeof e=="object"&&e!==null){if(e.as==null||e.as==="script"){var a=wh(e.as,e.crossOrigin);_a.d.M(t,{crossOrigin:a,integrity:typeof e.integrity=="string"?e.integrity:void 0,nonce:typeof e.nonce=="string"?e.nonce:void 0,fetchPriority:typeof e.fetchPriority=="string"?e.fetchPriority:void 0})}}else e==null&&_a.d.M(t)};wa.preload=function(t,e){if(typeof t=="string"&&typeof e=="object"&&e!==null&&typeof e.as=="string"){var a=e.as,n=wh(a,e.crossOrigin);_a.d.L(t,a,{crossOrigin:n,integrity:typeof e.integrity=="string"?e.integrity:void 0,nonce:typeof e.nonce=="string"?e.nonce:void 0,type:typeof e.type=="string"?e.type:void 0,fetchPriority:typeof e.fetchPriority=="string"?e.fetchPriority:void 0,referrerPolicy:typeof e.referrerPolicy=="string"?e.referrerPolicy:void 0,imageSrcSet:typeof e.imageSrcSet=="string"?e.imageSrcSet:void 0,imageSizes:typeof e.imageSizes=="string"?e.imageSizes:void 0,media:typeof e.media=="string"?e.media:void 0})}};wa.preloadModule=function(t,e){if(typeof t=="string")if(e){var a=wh(e.as,e.crossOrigin);_a.d.m(t,{as:typeof e.as=="string"&&e.as!=="script"?e.as:void 0,crossOrigin:a,integrity:typeof e.integrity=="string"?e.integrity:void 0,nonce:typeof e.nonce=="string"?e.nonce:void 0,fetchPriority:typeof e.fetchPriority=="string"?e.fetchPriority:void 0})}else _a.d.m(t)};wa.requestFormReset=function(t){_a.d.r(t)};wa.unstable_batchedUpdates=function(t,e){return t(e)};wa.useFormState=function(t,e,a){return Ec.H.useFormState(t,e,a)};wa.useFormStatus=function(){return Ec.H.useHostTransitionStatus()};wa.version="19.3.1"});var cb=be((hee,Tw)=>{"use strict";function Rw(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Rw)}catch(t){console.error(t)}}Rw(),Tw.exports=_w()});var O_=be(im=>{"use strict";var Xt=dw(),gL=ye(),E3=cb();function P(t){var e="https://react.dev/errors/"+t;if(1<arguments.length){e+="?args[]="+encodeURIComponent(arguments[1]);for(var a=2;a<arguments.length;a++)e+="&args[]="+encodeURIComponent(arguments[a])}return"Minified React error #"+t+"; visit "+e+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function OL(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)}function mf(t){for(var e=t,a=e;a&&!a.alternate;)e=a,(e.flags&4098)!==0&&(t=e.return),a=e.return;for(;e.return;)e=e.return;return e.tag===3?t:null}function bL(t){if(t.tag===13){var e=t.memoizedState;if(e===null&&(t=t.alternate,t!==null&&(e=t.memoizedState)),e!==null)return e.dehydrated}return null}function xL(t){if(t.tag===31){var e=t.memoizedState;if(e===null&&(t=t.alternate,t!==null&&(e=t.memoizedState)),e!==null)return e.dehydrated}return null}function Iw(t){if(mf(t)!==t)throw Error(P(188))}function A3(t){var e=t.alternate;if(!e){if(e=mf(t),e===null)throw Error(P(188));return e!==t?null:t}for(var a=t,n=e;;){var r=a.return;if(r===null)break;var i=r.alternate;if(i===null){if(n=r.return,n!==null){a=n;continue}break}if(r.child===i.child){for(i=r.child;i;){if(i===a)return Iw(r),t;if(i===n)return Iw(r),e;i=i.sibling}throw Error(P(188))}if(a.return!==n.return)a=r,n=i;else{for(var o=!1,s=r.child;s;){if(s===a){o=!0,a=r,n=i;break}if(s===n){o=!0,n=r,a=i;break}s=s.sibling}if(!o){for(s=i.child;s;){if(s===a){o=!0,a=i,n=r;break}if(s===n){o=!0,n=i,a=r;break}s=s.sibling}if(!o)throw Error(P(189))}}if(a.alternate!==n)throw Error(P(190))}if(a.tag!==3)throw Error(P(188));return a.stateNode.current===a?t:e}function SL(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t;for(t=t.child;t!==null;){if(e=SL(t),e!==null)return e;t=t.sibling}return null}function Va(t,e,a,n,r,i){for(;t!==null;){if((t.tag===5||t.tag===27||t.tag===6)&&a(t,n,r,i)||(t.tag!==22||t.memoizedState===null)&&(e||t.tag!==5&&t.tag!==27)&&Va(t.child,e,a,n,r,i))return!0;t=t.sibling}return!1}function Rs(t){for(t=t.return;t!==null;){if(t.tag===3||t.tag===5||t.tag===27)return t;t=t.return}return null}function Pw(t){var e=!1;for(t=t.return;t!==null&&(t.tag===4&&(e=!0),!(t.tag===3||t.tag===5||t.tag===27));)t=t.return;return e}function yL(t){var e=[null,null],a=Rs(t);return a===null||vL(e,t,a.child,{foundSelf:!1}),e}function vL(t,e,a,n){for(;a!==null;){if(a===e)n.foundSelf=!0;else if(a.tag===5||a.tag===27||a.tag===6){if(n.foundSelf)return t[1]=a,!0;t[0]=a}else if((a.tag!==22||a.memoizedState===null)&&vL(t,e,a.child,n))return!0;a=a.sibling}return!1}function Ut(t){switch(t.tag){case 5:case 27:case 6:return t.stateNode;case 3:return t.stateNode.containerInfo;default:throw Error(P(559))}}var Pl=null,Xb=null;function _3(t,e,a){return t===a?!0:t===e?(Pl=t,!0):!1}function R3(t,e,a){return t===a?(Xb=t,!1):t===e?(Xb!==null&&(Pl=t),!0):!1}function Mw(t){if(t===null)return null;do t=t===null?null:t.return;while(t&&t.tag!==5&&t.tag!==27&&t.tag!==3);return t||null}function qb(t,e,a){for(var n=0,r=t;r;r=a(r))n++;r=0;for(var i=e;i;i=a(i))r++;for(;0<n-r;)t=a(t),n--;for(;0<r-n;)e=a(e),r--;for(;n--;){if(t===e||e!==null&&t===e.alternate)return t;t=a(t),e=a(e)}return null}var it=Object.assign,T3=Symbol.for("react.element"),kh=Symbol.for("react.transitional.element"),Mc=Symbol.for("react.portal"),Ml=Symbol.for("react.fragment"),CL=Symbol.for("react.strict_mode"),Zb=Symbol.for("react.profiler"),wL=Symbol.for("react.consumer"),Tr=Symbol.for("react.context"),J0=Symbol.for("react.forward_ref"),Fb=Symbol.for("react.suspense"),Gb=Symbol.for("react.suspense_list"),ex=Symbol.for("react.memo"),Fi=Symbol.for("react.lazy"),Hb=Symbol.for("react.activity"),I3=Symbol.for("react.legacy_hidden"),P3=Symbol.for("react.memo_cache_sentinel"),jb=Symbol.for("react.view_transition"),M3=Symbol.for("react.recoverable"),Dw=Symbol.iterator;function Ac(t){return t===null||typeof t!="object"?null:(t=Dw&&t[Dw]||t["@@iterator"],typeof t=="function"?t:null)}var D3=Symbol.for("react.client.reference");function Vb(t){if(t==null)return null;if(typeof t=="function")return t.$$typeof===D3?null:t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case Ml:return"Fragment";case Zb:return"Profiler";case CL:return"StrictMode";case Fb:return"Suspense";case Gb:return"SuspenseList";case Hb:return"Activity";case jb:return"ViewTransition"}if(typeof t=="object")switch(t.$$typeof){case Mc:return"Portal";case Tr:return t.displayName||"Context";case wL:return(t._context.displayName||"Context")+".Consumer";case J0:var e=t.render;return t=t.displayName,t||(t=e.displayName||e.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case ex:return e=t.displayName||null,e!==null?e:Vb(t.type)||"Memo";case Fi:e=t._payload,t=t._init;try{return Vb(t(e))}catch{}}return null}var Dc=Array.isArray,xe=gL.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,He=E3.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Os={pending:!1,data:null,method:null,action:null},Yb=[],Dl=-1;function $r(t){return{current:t}}function fa(t){0>Dl||(t.current=Yb[Dl],Yb[Dl]=null,Dl--)}function ft(t,e){Dl++,Yb[Dl]=t.current,t.current=e}var Dr=$r(null),Kc=$r(null),eo=$r(null),fp=$r(null);function dp(t,e){switch(ft(eo,e),ft(Kc,t),ft(Dr,null),e.nodeType){case 9:case 11:t=(t=e.documentElement)&&(t=t.namespaceURI)?Vk(t):0;break;default:if(t=e.tagName,e=e.namespaceURI)e=Vk(e),t=GA(e,t);else switch(t){case"svg":t=1;break;case"math":t=2;break;default:t=0}}fa(Dr),ft(Dr,t)}function tu(){fa(Dr),fa(Kc),fa(eo)}function Wb(t){var e=t.memoizedState;e!==null&&(fu._currentValue=e.memoizedState,ft(fp,t)),e=Dr.current;var a=GA(e,t.type);e!==a&&(ft(Kc,t),ft(Dr,a))}function hp(t){Kc.current===t&&(fa(Dr),fa(Kc)),fp.current===t&&(fa(fp),fu._currentValue=Os)}var fb,Nw;function qi(t){if(fb===void 0)try{throw Error()}catch(a){var e=a.stack.trim().match(/\n( *(at )?)/);fb=e&&e[1]||"",Nw=-1<a.stack.indexOf(`
3
+ at`)?" (<anonymous>)":-1<a.stack.indexOf("@")?"@unknown:0:0":""}return`
4
+ `+fb+t+Nw}var db=!1;function hb(t,e){if(!t||db)return"";db=!0;var a=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var n={DetermineComponentFrameRoot:function(){try{if(e){var f=function(){throw Error()};if(Object.defineProperty(f.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(f,[])}catch(p){var d=p}Reflect.construct(t,[],f)}else{try{f.call()}catch(p){d=p}f=!1;try{var h=Object.getOwnPropertyDescriptor(t.prototype,"props");Object.defineProperty(t.prototype,"props",{configurable:!0,set:function(){throw Error()}}),f=!0,new t}finally{f&&(h!==void 0?Object.defineProperty(t.prototype,"props",h):delete t.prototype.props)}}}else{try{throw Error()}catch(p){d=p}(f=t())&&typeof f.catch=="function"&&f.catch(function(){})}}catch(p){if(p&&d&&typeof p.stack=="string")return[p.stack,d.stack]}return[null,null]}};n.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var r=Object.getOwnPropertyDescriptor(n.DetermineComponentFrameRoot,"name");r&&r.configurable&&Object.defineProperty(n.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var i=n.DetermineComponentFrameRoot(),o=i[0],s=i[1];if(o&&s){var l=o.split(`
5
+ `),u=s.split(`
6
+ `);for(r=n=0;n<l.length&&!l[n].includes("DetermineComponentFrameRoot");)n++;for(;r<u.length&&!u[r].includes("DetermineComponentFrameRoot");)r++;if(n===l.length||r===u.length)for(n=l.length-1,r=u.length-1;1<=n&&0<=r&&l[n]!==u[r];)r--;for(;1<=n&&0<=r;n--,r--)if(l[n]!==u[r]){if(n!==1||r!==1)do if(n--,r--,0>r||l[n]!==u[r]){var c=`
7
+ `+l[n].replace(" at new "," at ");return t.displayName&&c.includes("<anonymous>")&&(c=c.replace("<anonymous>",t.displayName)),c}while(1<=n&&0<=r);break}}}finally{db=!1,Error.prepareStackTrace=a}return(a=t?t.displayName||t.name:"")?qi(a):""}function N3(t,e){switch(t.tag){case 26:case 27:case 5:return qi(t.type);case 16:return qi("Lazy");case 13:return t.child!==e&&e!==null?qi("Suspense Fallback"):qi("Suspense");case 19:return qi("SuspenseList");case 0:case 15:return hb(t.type,!1);case 11:return hb(t.type.render,!1);case 1:return hb(t.type,!0);case 31:return qi("Activity");case 30:return qi("ViewTransition");default:return""}}function Qw(t){try{var e="",a=null;do e+=N3(t,a),a=t,t=t.return;while(t);return e}catch(n){return`
8
+ Error generating stack: `+n.message+`
9
+ `+n.stack}}var Kb=Object.prototype.hasOwnProperty,tx=Xt.unstable_scheduleCallback,pb=Xt.unstable_cancelCallback,Q3=Xt.unstable_shouldYield,$3=Xt.unstable_requestPaint,sn=Xt.unstable_now,B3=Xt.unstable_getCurrentPriorityLevel,kL=Xt.unstable_ImmediatePriority,LL=Xt.unstable_UserBlockingPriority,pp=Xt.unstable_NormalPriority,z3=Xt.unstable_LowPriority,EL=Xt.unstable_IdlePriority,U3=Xt.log,X3=Xt.unstable_setDisableYieldValue,gf=null,ln=null;function ji(t){if(typeof U3=="function"&&X3(t),ln&&typeof ln.setStrictMode=="function")try{ln.setStrictMode(gf,t)}catch{}}var un=Math.clz32?Math.clz32:F3,q3=Math.log,Z3=Math.LN2;function F3(t){return t>>>=0,t===0?32:31-(q3(t)/Z3|0)|0}var Lh=256,Eh=262144,Ah=4194304;function ds(t){var e=t&42;if(e!==0)return e;switch(t&-t){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 t&-t;case 262144:case 524288:case 1048576:case 2097152:return t&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return t&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return t}}function zp(t,e,a){var n=t.pendingLanes;if(n===0)return 0;var r=0,i=t.suspendedLanes,o=t.pingedLanes;t=t.warmLanes;var s=n&134217727;return s!==0?(n=s&~i,n!==0?r=ds(n):(o&=s,o!==0?r=ds(o):a||(a=s&~t,a!==0&&(r=ds(a))))):(s=n&~i,s!==0?r=ds(s):o!==0?r=ds(o):a||(a=n&~t,a!==0&&(r=ds(a)))),r===0?0:e!==0&&e!==r&&(e&i)===0&&(i=r&-r,a=e&-e,i>=a||i===32&&(a&4194048)!==0)?e:r}function Of(t,e){return(t.pendingLanes&~(t.suspendedLanes&~t.pingedLanes)&e)===0}function AL(t,e){(e&8)!==0&&(e|=e&32);var a=t.entangledLanes;if(a!==0)for(t=t.entanglements,a&=e;0<a;){var n=31-un(a),r=1<<n;e|=t[n],a&=~r}return e}function G3(t,e){switch(t){case 1:case 2:case 4:case 8:case 64:return e+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 e+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 _L(){var t=Ah;return Ah<<=1,(Ah&62914560)===0&&(Ah=4194304),t}function mb(t){for(var e=[],a=0;31>a;a++)e.push(t);return e}function bf(t,e){t.pendingLanes|=e,e!==268435456&&(t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0)}function H3(t,e,a,n,r,i){var o=t.pendingLanes;t.pendingLanes=a,t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0,t.expiredLanes&=a,t.entangledLanes&=a,t.errorRecoveryDisabledLanes&=a,t.shellSuspendCounter=0;var s=t.entanglements,l=t.expirationTimes,u=t.hiddenUpdates;for(a=o&~a;0<a;){var c=31-un(a),f=1<<c;s[c]=0,l[c]=-1;var d=u[c];if(d!==null)for(u[c]=null,c=0;c<d.length;c++){var h=d[c];h!==null&&(h.lane&=-536870913)}a&=~f}n!==0&&RL(t,n,0),i!==0&&r===0&&t.tag!==0&&(t.suspendedLanes|=i&~(o&~e))}function RL(t,e,a){t.pendingLanes|=e,t.suspendedLanes&=~e;var n=31-un(e);t.entangledLanes|=e,t.entanglements[n]=t.entanglements[n]|1073741824|a&261930}function TL(t,e){var a=t.entangledLanes|=e;for(t=t.entanglements;a;){var n=31-un(a),r=1<<n;r&e|t[n]&e&&(t[n]|=e),a&=~r}}function IL(t,e){var a=e&-e;return a=(a&42)!==0?1:ax(a),(a&(t.suspendedLanes|e))!==0?0:a}function ax(t){switch(t){case 2:t=1;break;case 8:t=4;break;case 32:t=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:t=128;break;case 268435456:t=134217728;break;default:t=0}return t}function nx(t){return t&=-t,2<t?8<t?(t&134217727)!==0?32:268435456:8:2}function PL(){var t=He.p;return t!==0?t:(t=window.event,t===void 0?32:p_(t.type))}function $w(t,e){var a=He.p;try{return He.p=t,e()}finally{He.p=a}}var gi=Math.random().toString(36).slice(2),ua="__reactFiber$"+gi,Ya="__reactProps$"+gi,pu="__reactContainer$"+gi,Bw="__reactEvents$"+gi,j3="__reactListeners$"+gi,V3="__reactHandles$"+gi,zw="__reactResources$"+gi,xf="__reactMarker$"+gi,mp="__reactLoad$"+gi;function Up(t){delete t[ua],delete t[Ya],delete t[j3],delete t[V3]}function ms(t){var e;if(e=t[ua])return e;for(var a=t.parentNode;a;){if(e=a[pu]||a[ua]){if(a=e.alternate,e.child!==null||a!==null&&a.child!==null)for(t=nL(t);t!==null;){if(a=t[ua])return a;t=nL(t)}return e}t=a,a=t.parentNode}return null}function mu(t){if(t=t[ua]||t[pu]){var e=t.tag;if(e===5||e===6||e===13||e===31||e===26||e===27||e===3)return t}return null}function Nc(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t.stateNode;throw Error(P(33))}function Fl(t){var e=t[zw];return e||(e=t[zw]={hoistableStyles:new Map,hoistableScripts:new Map}),e}function Kt(t){t[xf]=!0}function ML(t){t[mp]=void 0}var DL=new Set,NL={};function Ts(t,e){au(t,e),au(t+"Capture",e)}function au(t,e){for(NL[t]=e,t=0;t<e.length;t++)DL.add(e[t])}var Y3=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]*$"),Uw={},Xw={};function W3(t){return Kb.call(Xw,t)?!0:Kb.call(Uw,t)?!1:Y3.test(t)?Xw[t]=!0:(Uw[t]=!0,!1)}var qe=!1;function qw(){var t=qe;return qe=!1,t}function Gh(t,e,a){if(W3(e))if(a===null)t.removeAttribute(e);else{switch(typeof a){case"undefined":case"function":case"symbol":t.removeAttribute(e);return;case"boolean":var n=e.toLowerCase().slice(0,5);if(n!=="data-"&&n!=="aria-"){t.removeAttribute(e);return}}t.setAttribute(e,a)}}function _h(t,e,a){if(a===null)t.removeAttribute(e);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(e);return}t.setAttribute(e,a)}}function ri(t,e,a,n){if(n===null)t.removeAttribute(a);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(a);return}t.setAttributeNS(e,a,n)}}function an(t){switch(typeof t){case"bigint":case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function QL(t){var e=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function K3(t,e,a){var n=Object.getOwnPropertyDescriptor(t.constructor.prototype,e);if(!t.hasOwnProperty(e)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var r=n.get,i=n.set;return Object.defineProperty(t,e,{configurable:!0,get:function(){return r.call(this)},set:function(o){a=""+o,i.call(this,o)}}),Object.defineProperty(t,e,{enumerable:n.enumerable}),{getValue:function(){return a},setValue:function(o){a=""+o},stopTracking:function(){t._valueTracker=null,delete t[e]}}}}function Jb(t){if(!t._valueTracker){var e=QL(t)?"checked":"value";t._valueTracker=K3(t,e,""+t[e])}}function $L(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var a=e.getValue(),n="";return t&&(n=QL(t)?t.checked?"true":"false":t.value),t=n,t!==a?(e.setValue(t),!0):!1}var J3=/[\n"\\]/g;function In(t){return t.replace(J3,function(e){return"\\"+e.charCodeAt(0).toString(16)+" "})}function e0(t,e,a,n,r,i,o,s){t.name="",o!=null&&typeof o!="function"&&typeof o!="symbol"&&typeof o!="boolean"?t.type=o:t.removeAttribute("type"),e!=null?o==="number"?(e===0&&t.value===""||t.value!=e)&&(t.value=""+an(e)):t.value!==""+an(e)&&(t.value=""+an(e)):o!=="submit"&&o!=="reset"||t.removeAttribute("value"),e!=null?o==="number"&&t.value==e?gb(t,an(t.value)):gb(t,an(e)):a!=null?gb(t,an(a)):n!=null&&t.removeAttribute("value"),r==null&&i!=null&&(t.defaultChecked=!!i),r!=null&&(t.checked=r&&typeof r!="function"&&typeof r!="symbol"),s!=null&&typeof s!="function"&&typeof s!="symbol"&&typeof s!="boolean"?t.name=""+an(s):t.removeAttribute("name")}function BL(t,e,a,n,r,i,o,s){if(i!=null&&typeof i!="function"&&typeof i!="symbol"&&typeof i!="boolean"&&(t.type=i),e!=null||a!=null){if(!(i!=="submit"&&i!=="reset"||e!=null)){Jb(t);return}a=a!=null?""+an(a):"",e=e!=null?""+an(e):a,s||e===t.value||(t.value=e),t.defaultValue=e}n=n??r,n=typeof n!="function"&&typeof n!="symbol"&&!!n,t.checked=s?t.checked:!!n,t.defaultChecked=!!n,o!=null&&typeof o!="function"&&typeof o!="symbol"&&typeof o!="boolean"&&(t.name=o),Jb(t)}function gb(t,e){t.defaultValue!==""+e&&(t.defaultValue=""+e)}function Gl(t,e,a,n){if(t=t.options,e){e={};for(var r=0;r<a.length;r++)e["$"+a[r]]=!0;for(a=0;a<t.length;a++)r=e.hasOwnProperty("$"+t[a].value),t[a].selected!==r&&(t[a].selected=r),r&&n&&(t[a].defaultSelected=!0)}else{for(a=""+an(a),e=null,r=0;r<t.length;r++){if(t[r].value===a){t[r].selected=!0,n&&(t[r].defaultSelected=!0);return}e!==null||t[r].disabled||(e=t[r])}e!==null&&(e.selected=!0)}}function zL(t,e,a){if(e!=null&&(e=""+an(e),e!==t.value&&(t.value=e),a==null)){t.defaultValue!==e&&(t.defaultValue=e);return}t.defaultValue=a!=null?""+an(a):""}function UL(t,e,a,n){if(e==null){if(n!=null){if(a!=null)throw Error(P(92));if(Dc(n)){if(1<n.length)throw Error(P(93));n=n[0]}a=n}a==null&&(a=""),e=a}a=an(e),t.defaultValue=a,n=t.textContent,n===a&&n!==""&&n!==null&&(t.value=n),Jb(t)}function nu(t,e){if(e){var a=t.firstChild;if(a&&a===t.lastChild&&a.nodeType===3){a.nodeValue=e;return}}t.textContent=e}var eU=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 Zw(t,e,a){var n=e.indexOf("--")===0;a==null||typeof a=="boolean"||a===""?n?t.setProperty(e,""):e==="float"?t.cssFloat="":t[e]="":n?t.setProperty(e,a):typeof a!="number"||a===0||eU.has(e)?e==="float"?t.cssFloat=a:t[e]=(""+a).trim():t[e]=a+"px"}function XL(t,e,a){if(e!=null&&typeof e!="object")throw Error(P(62));if(t=t.style,a!=null){for(var n in a)!a.hasOwnProperty(n)||e!=null&&e.hasOwnProperty(n)||(n.indexOf("--")===0?t.setProperty(n,""):n==="float"?t.cssFloat="":t[n]="",qe=!0);for(var r in e)n=e[r],e.hasOwnProperty(r)&&a[r]!==n&&(Zw(t,r,n),qe=!0)}else for(var i in e)e.hasOwnProperty(i)&&Zw(t,i,e[i])}function rx(t){if(t.indexOf("-")===-1)return!1;switch(t){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 tU=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"],["maskType","mask-type"],["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"]]),aU=/^[\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 Hh(t){return aU.test(""+t)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":t}function Ir(){}var t0=null;function ix(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var Nl=null,Hl=null;function Fw(t){var e=mu(t);if(e&&(t=e.stateNode)){var a=t[Ya]||null;e:switch(t=e.stateNode,e.type){case"input":if(e0(t,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name),e=a.name,a.type==="radio"&&e!=null){for(a=t;a.parentNode;)a=a.parentNode;for(a=a.querySelectorAll('input[name="'+In(""+e)+'"][type="radio"]'),e=0;e<a.length;e++){var n=a[e];if(n!==t&&n.form===t.form){var r=n[Ya]||null;if(!r)throw Error(P(90));e0(n,r.value,r.defaultValue,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name)}}for(e=0;e<a.length;e++)n=a[e],n.form===t.form&&$L(n)}break e;case"textarea":zL(t,a.value,a.defaultValue);break e;case"select":e=a.value,e!=null&&Gl(t,!!a.multiple,e,!1)}}}var Ob=!1;function qL(t,e,a){if(Ob)return t(e,a);Ob=!0;try{var n=t(e);return n}finally{if(Ob=!1,(Nl!==null||Hl!==null)&&(tm(),Nl&&(e=Nl,t=Hl,Hl=Nl=null,Fw(e),t)))for(e=0;e<t.length;e++)Fw(t[e])}}function Jc(t,e){var a=t.stateNode;if(a===null)return null;var n=a[Ya]||null;if(n===null)return null;a=n[e];e:switch(e){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(n=!n.disabled)||(t=t.type,n=!(t==="button"||t==="input"||t==="select"||t==="textarea")),t=!n;break e;default:t=!1}if(t)return null;if(a&&typeof a!="function")throw Error(P(231,e,typeof a));return a}var ci=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),a0=!1;if(ci)try{El={},Object.defineProperty(El,"passive",{get:function(){a0=!0}}),window.addEventListener("test",El,El),window.removeEventListener("test",El,El)}catch{a0=!1}var El,Vi=null,ox=null,jh=null;function ZL(){if(jh)return jh;var t,e=ox,a=e.length,n,r="value"in Vi?Vi.value:Vi.textContent,i=r.length;for(t=0;t<a&&e[t]===r[t];t++);var o=a-t;for(n=1;n<=o&&e[a-n]===r[i-n];n++);return jh=r.slice(t,1<n?1-n:void 0)}function Vh(t){var e=t.keyCode;return"charCode"in t?(t=t.charCode,t===0&&e===13&&(t=13)):t=e,t===10&&(t=13),32<=t||t===13?t:0}function Rh(){return!0}function Gw(){return!1}function Pa(t){function e(a,n,r,i,o){this._reactName=a,this._targetInst=r,this.type=n,this.nativeEvent=i,this.target=o,this.currentTarget=null;for(var s in t)t.hasOwnProperty(s)&&(a=t[s],this[s]=a?a(i):i[s]);return this.isDefaultPrevented=(i.defaultPrevented!=null?i.defaultPrevented:i.returnValue===!1)?Rh:Gw,this.isPropagationStopped=Gw,this}return it(e.prototype,{preventDefault:function(){this.defaultPrevented=!0;var a=this.nativeEvent;a&&(a.preventDefault?a.preventDefault():typeof a.returnValue!="unknown"&&(a.returnValue=!1),this.isDefaultPrevented=Rh)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():typeof a.cancelBubble!="unknown"&&(a.cancelBubble=!0),this.isPropagationStopped=Rh)},persist:function(){},isPersistent:Rh}),e}var go={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Xp=Pa(go),Sf=it({},go,{view:0,detail:0}),nU=Pa(Sf),bb,xb,_c,qp=it({},Sf,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:sx,button:0,buttons:0,relatedTarget:function(t){return t.relatedTarget===void 0?t.fromElement===t.srcElement?t.toElement:t.fromElement:t.relatedTarget},movementX:function(t){return"movementX"in t?t.movementX:(t!==_c&&(_c&&t.type==="mousemove"?(bb=t.screenX-_c.screenX,xb=t.screenY-_c.screenY):xb=bb=0,_c=t),bb)},movementY:function(t){return"movementY"in t?t.movementY:xb}}),Hw=Pa(qp),rU=it({},qp,{dataTransfer:0}),iU=Pa(rU),oU=it({},Sf,{relatedTarget:0}),Sb=Pa(oU),sU=it({},go,{animationName:0,elapsedTime:0,pseudoElement:0}),lU=Pa(sU),uU=it({},go,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),cU=Pa(uU),fU=it({},go,{data:0}),jw=Pa(fU),dU={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},hU={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"},pU={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function mU(t){var e=this.nativeEvent;return e.getModifierState?e.getModifierState(t):(t=pU[t])?!!e[t]:!1}function sx(){return mU}var gU=it({},Sf,{key:function(t){if(t.key){var e=dU[t.key]||t.key;if(e!=="Unidentified")return e}return t.type==="keypress"?(t=Vh(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?hU[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:sx,charCode:function(t){return t.type==="keypress"?Vh(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?Vh(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),OU=Pa(gU),bU=it({},qp,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Vw=Pa(bU),xU=it({},go,{submitter:0}),SU=Pa(xU),yU=it({},Sf,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:sx}),vU=Pa(yU),CU=it({},go,{propertyName:0,elapsedTime:0,pseudoElement:0}),wU=Pa(CU),kU=it({},qp,{deltaX:function(t){return"deltaX"in t?t.deltaX:"wheelDeltaX"in t?-t.wheelDeltaX:0},deltaY:function(t){return"deltaY"in t?t.deltaY:"wheelDeltaY"in t?-t.wheelDeltaY:"wheelDelta"in t?-t.wheelDelta:0},deltaZ:0,deltaMode:0}),LU=Pa(kU),EU=it({},go,{newState:0,oldState:0,source:0}),AU=Pa(EU),_U=[9,13,27,32],lx=ci&&"CompositionEvent"in window,Bc=null;ci&&"documentMode"in document&&(Bc=document.documentMode);var RU=ci&&"TextEvent"in window&&!Bc,FL=ci&&(!lx||Bc&&8<Bc&&11>=Bc),Yw=" ",Ww=!1;function GL(t,e){switch(t){case"keyup":return _U.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function HL(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var Ql=!1;function TU(t,e){switch(t){case"compositionend":return HL(e);case"keypress":return e.which!==32?null:(Ww=!0,Yw);case"textInput":return t=e.data,t===Yw&&Ww?null:t;default:return null}}function IU(t,e){if(Ql)return t==="compositionend"||!lx&&GL(t,e)?(t=ZL(),jh=ox=Vi=null,Ql=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(e.ctrlKey||e.altKey||e.metaKey)||e.ctrlKey&&e.altKey){if(e.char&&1<e.char.length)return e.char;if(e.which)return String.fromCharCode(e.which)}return null;case"compositionend":return FL&&e.locale!=="ko"?null:e.data;default:return null}}var PU={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 Kw(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e==="input"?!!PU[t.type]:e==="textarea"}function jL(t,e,a,n){Nl?Hl?Hl.push(n):Hl=[n]:Nl=n,e=Qp(e,"onChange"),0<e.length&&(a=new Xp("onChange","change",null,a,n),t.push({event:a,listeners:e}))}var zc=null,ef=null;function MU(t){qA(t,0)}function Zp(t){var e=Nc(t);if($L(e))return t}function Jw(t,e){if(t==="change")return e}var VL=!1;ci&&(ci?(Ih="oninput"in document,Ih||(yb=document.createElement("div"),yb.setAttribute("oninput","return;"),Ih=typeof yb.oninput=="function"),Th=Ih):Th=!1,VL=Th&&(!document.documentMode||9<document.documentMode));var Th,Ih,yb;function ek(){zc&&(zc.detachEvent("onpropertychange",YL),ef=zc=null)}function YL(t){if(t.propertyName==="value"&&Zp(ef)){var e=[];jL(e,ef,t,ix(t)),qL(MU,e)}}function DU(t,e,a){t==="focusin"?(ek(),zc=e,ef=a,zc.attachEvent("onpropertychange",YL)):t==="focusout"&&ek()}function NU(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return Zp(ef)}function QU(t,e){if(t==="click")return Zp(e)}function $U(t,e){if(t==="input"||t==="change")return Zp(e)}function BU(t,e){return t===e&&(t!==0||1/t===1/e)||t!==t&&e!==e}var fn=typeof Object.is=="function"?Object.is:BU;function tf(t,e){if(fn(t,e))return!0;if(typeof t!="object"||t===null||typeof e!="object"||e===null)return!1;var a=Object.keys(t),n=Object.keys(e);if(a.length!==n.length)return!1;for(n=0;n<a.length;n++){var r=a[n];if(!Kb.call(e,r)||!fn(t[r],e[r]))return!1}return!0}function n0(t){if(t=t||(typeof document<"u"?document:void 0),typeof t>"u")return null;try{return t.activeElement||t.body}catch{return t.body}}function tk(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function ak(t,e){var a=tk(t);t=0;for(var n;a;){if(a.nodeType===3){if(n=t+a.textContent.length,t<=e&&n>=e)return{node:a,offset:e-t};t=n}e:{for(;a;){if(a.nextSibling){a=a.nextSibling;break e}a=a.parentNode}a=void 0}a=tk(a)}}function WL(t,e){return t&&e?t===e?!0:t&&t.nodeType===3?!1:e&&e.nodeType===3?WL(t,e.parentNode):"contains"in t?t.contains(e):t.compareDocumentPosition?!!(t.compareDocumentPosition(e)&16):!1:!1}function KL(t){t=t!=null&&t.ownerDocument!=null&&t.ownerDocument.defaultView!=null?t.ownerDocument.defaultView:window;for(var e=n0(t.document);e instanceof t.HTMLIFrameElement;){try{var a=typeof e.contentWindow.location.href=="string"}catch{a=!1}if(a)t=e.contentWindow;else break;e=n0(t.document)}return e}function ux(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e&&(e==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||e==="textarea"||t.contentEditable==="true")}var zU=ci&&"documentMode"in document&&11>=document.documentMode,$l=null,r0=null,Uc=null,i0=!1;function nk(t,e,a){var n=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;i0||$l==null||$l!==n0(n)||(n=$l,"selectionStart"in n&&ux(n)?n={start:n.selectionStart,end:n.selectionEnd}:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}),Uc&&tf(Uc,n)||(Uc=n,n=Qp(r0,"onSelect"),0<n.length&&(e=new Xp("onSelect","select",null,e,a),t.push({event:e,listeners:n}),e.target=$l)))}function cs(t,e){var a={};return a[t.toLowerCase()]=e.toLowerCase(),a["Webkit"+t]="webkit"+e,a["Moz"+t]="moz"+e,a}var Bl={animationend:cs("Animation","AnimationEnd"),animationiteration:cs("Animation","AnimationIteration"),animationstart:cs("Animation","AnimationStart"),transitionrun:cs("Transition","TransitionRun"),transitionstart:cs("Transition","TransitionStart"),transitioncancel:cs("Transition","TransitionCancel"),transitionend:cs("Transition","TransitionEnd")},vb={},JL={};ci&&(JL=document.createElement("div").style,"AnimationEvent"in window||(delete Bl.animationend.animation,delete Bl.animationiteration.animation,delete Bl.animationstart.animation),"TransitionEvent"in window||delete Bl.transitionend.transition);function Is(t){if(vb[t])return vb[t];if(!Bl[t])return t;var e=Bl[t],a;for(a in e)if(e.hasOwnProperty(a)&&a in JL)return vb[t]=e[a];return t}var eE=Is("animationend"),tE=Is("animationiteration"),aE=Is("animationstart"),UU=Is("transitionrun"),XU=Is("transitionstart"),qU=Is("transitioncancel"),nE=Is("transitionend"),rE=new Map,o0="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error fullscreenChange fullscreenError 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(" ");o0.push("scrollEnd");function lr(t,e){rE.set(t,e),Ts(e,[t])}var ZU=0;function fi(t,e){if(t.name!=null&&t.name!=="auto")return t.name;if(e.autoName!==null)return e.autoName;t=sr.identifierPrefix;var a=ZU++;return t="_"+t+"t_"+a.toString(32)+"_",e.autoName=t}function rk(t){if(t==null||typeof t=="string")return t;var e=null,a=eu;if(a!==null)for(var n=0;n<a.length;n++){var r=t[a[n]];if(r!=null){if(r==="none")return"none";e=e==null?r:e+(" "+r)}}return e??t.default}function Oi(t,e){return t=rk(t),e=rk(e),e==null?t==="auto"?null:t:e==="auto"?null:e}var gp=typeof reportError=="function"?reportError:function(t){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var e=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof t=="object"&&t!==null&&typeof t.message=="string"?String(t.message):String(t),error:t});if(!window.dispatchEvent(e))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",t);return}console.error(t)},_n=[],zl=0,cx=0;function Fp(){for(var t=zl,e=cx=zl=0;e<t;){var a=_n[e];_n[e++]=null;var n=_n[e];_n[e++]=null;var r=_n[e];_n[e++]=null;var i=_n[e];if(_n[e++]=null,n!==null&&r!==null){var o=n.pending;o===null?r.next=r:(r.next=o.next,o.next=r),n.pending=r}i!==0&&iE(a,r,i)}}function Gp(t,e,a,n){_n[zl++]=t,_n[zl++]=e,_n[zl++]=a,_n[zl++]=n,cx|=n,t.lanes|=n,t=t.alternate,t!==null&&(t.lanes|=n)}function fx(t,e,a,n){return Gp(t,e,a,n),Op(t)}function Ps(t,e){return Gp(t,null,null,e),Op(t)}function iE(t,e,a){t.lanes|=a;var n=t.alternate;n!==null&&(n.lanes|=a);for(var r=!1,i=t.return;i!==null;)i.childLanes|=a,n=i.alternate,n!==null&&(n.childLanes|=a),i.tag===22&&(t=i.stateNode,t===null||t._visibility&1||(r=!0)),t=i,i=i.return;return t.tag===3?(i=t.stateNode,r&&e!==null&&(r=31-un(a),t=i.hiddenUpdates,n=t[r],n===null?t[r]=[e]:n.push(e),e.lane=a|536870912),i):null}function Op(t){if(50<Wc)throw Wc=0,ip=null,Error(P(185));for(var e=t.return;e!==null;)t=e,e=t.return;return t.tag===3?t.stateNode:null}var Ul={};function FU(t,e,a,n){this.tag=t,this.key=a,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=e,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=n,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ha(t,e,a,n){return new FU(t,e,a,n)}function dx(t){return t=t.prototype,!(!t||!t.isReactComponent)}function li(t,e){var a=t.alternate;return a===null?(a=Ha(t.tag,e,t.key,t.mode),a.elementType=t.elementType,a.type=t.type,a.stateNode=t.stateNode,a.alternate=t,t.alternate=a):(a.pendingProps=e,a.type=t.type,a.flags=0,a.subtreeFlags=0,a.deletions=null),a.flags=t.flags&1206910976,a.childLanes=t.childLanes,a.lanes=t.lanes,a.child=t.child,a.memoizedProps=t.memoizedProps,a.memoizedState=t.memoizedState,a.updateQueue=t.updateQueue,e=t.dependencies,a.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext},a.sibling=t.sibling,a.index=t.index,a.ref=t.ref,a.refCleanup=t.refCleanup,a}function oE(t,e){t.flags&=1206910978;var a=t.alternate;return a===null?(t.childLanes=0,t.lanes=e,t.child=null,t.subtreeFlags=0,t.memoizedProps=null,t.memoizedState=null,t.updateQueue=null,t.dependencies=null,t.stateNode=null):(t.childLanes=a.childLanes,t.lanes=a.lanes,t.child=a.child,t.subtreeFlags=0,t.deletions=null,t.memoizedProps=a.memoizedProps,t.memoizedState=a.memoizedState,t.updateQueue=a.updateQueue,t.type=a.type,e=a.dependencies,t.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),t}function Yh(t,e,a,n,r,i){var o=0;if(n=t,typeof n=="function")dx(n)&&(o=1);else if(typeof n=="string")o=Oq(t,a,Dr.current)?26:t==="html"||t==="head"||t==="body"?27:5;else e:switch(n){case Hb:return t=Ha(31,a,e,r),t.elementType=Hb,t.lanes=i,t;case Ml:return bs(a.children,r,i,e);case CL:o=8,r|=24;break;case Zb:return t=Ha(12,a,e,r|2),t.elementType=Zb,t.lanes=i,t;case Fb:return t=Ha(13,a,e,r),t.elementType=Fb,t.lanes=i,t;case Gb:return t=Ha(19,a,e,r),t.elementType=Gb,t.lanes=i,t;case I3:case jb:return t=r|32,t=Ha(30,a,e,t),t.elementType=jb,t.lanes=i,t.stateNode={autoName:null,paired:null,clones:null,ref:null},t;default:if(typeof n=="object"&&n!==null)switch(n.$$typeof){case Tr:o=10;break e;case wL:o=9;break e;case J0:o=11;break e;case ex:o=14;break e;case Fi:o=16,n=null;break e}o=29,a=Error(P(130,t===null?"null":typeof t,"")),n=null}return e=Ha(o,a,e,r),e.elementType=t,e.type=n,e.lanes=i,e}function bs(t,e,a,n){return t=Ha(7,t,n,e),t.lanes=a,t}function Cb(t,e,a){return t=Ha(6,t,null,e),t.lanes=a,t}function sE(t){var e=Ha(18,null,null,0);return e.stateNode=t,e}function wb(t,e,a){return e=Ha(4,t.children!==null?t.children:[],t.key,e),e.lanes=a,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}var ik=new WeakMap;function Pn(t,e){if(typeof t=="object"&&t!==null){var a=ik.get(t);return a!==void 0?a:(e={value:t,source:e,stack:Qw(e)},ik.set(t,e),e)}return{value:t,source:e,stack:Qw(e)}}var Xl=[],ql=0,bp=null,af=0,Rn=[],Tn=0,co=null,Pr=1,Mr="";function oi(t,e){Xl[ql++]=af,Xl[ql++]=bp,bp=t,af=e}function lE(t,e,a){Rn[Tn++]=Pr,Rn[Tn++]=Mr,Rn[Tn++]=co,co=t;var n=Pr;t=Mr;var r=32-un(n)-1;n&=~(1<<r),a+=1;var i=32-un(e)+r;if(30<i){var o=r-r%5;i=(n&(1<<o)-1).toString(32),n>>=o,r-=o,Pr=1<<32-un(e)+r|a<<r|n,Mr=i+t}else Pr=1<<i|a<<r|n,Mr=t}function Hp(t){t.return!==null&&(oi(t,1),lE(t,1,0))}function hx(t){for(;t===bp;)bp=Xl[--ql],Xl[ql]=null,af=Xl[--ql],Xl[ql]=null;for(;t===co;)co=Rn[--Tn],Rn[Tn]=null,Mr=Rn[--Tn],Rn[Tn]=null,Pr=Rn[--Tn],Rn[Tn]=null}function uE(t,e){Rn[Tn++]=Pr,Rn[Tn++]=Mr,Rn[Tn++]=co,Pr=e.id,Mr=e.overflow,co=t}var Jt=null,ct=null,_e=!1,to=null,Mn=!1,s0=Error(P(519));function fo(t){var e=Error(P(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw nf(Pn(e,t)),s0}function ok(t){var e=t.stateNode,a=t.type,n=t.memoizedProps;switch(e[ua]=t,e[Ya]=n,a){case"dialog":Ie("cancel",e),Ie("close",e);break;case"iframe":case"object":case"embed":Ie("load",e);break;case"video":case"audio":for(a=0;a<lf.length;a++)Ie(lf[a],e);break;case"source":Ie("error",e);break;case"img":case"image":case"link":Ie("error",e),Ie("load",e);break;case"details":Ie("toggle",e);break;case"input":Ie("invalid",e),BL(e,n.value,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name,!0);break;case"select":Ie("invalid",e);break;case"textarea":Ie("invalid",e),UL(e,n.value,n.defaultValue,n.children)}a=n.children,typeof a!="string"&&typeof a!="number"&&typeof a!="bigint"||e.textContent===""+a||n.suppressHydrationWarning===!0||FA(e.textContent,a)?(n.popover!=null&&(Ie("beforetoggle",e),Ie("toggle",e)),n.onScroll!=null&&Ie("scroll",e),n.onScrollEnd!=null&&Ie("scrollend",e),n.onClick!=null&&(e.onclick=Ir),e=!0):e=!1,e||fo(t,!0)}function xp(t){for(Jt=t.return;Jt;)switch(Jt.tag){case 5:case 31:case 13:Mn=!1;return;case 27:case 3:Mn=!0;return;default:Jt=Jt.return}}function Al(t){if(t!==Jt)return!1;if(!_e)return xp(t),_e=!0,!1;var e=t.tag,a;if((a=e!==3&&e!==27)&&((a=e===5)&&(a=t.type,a=!(a!=="form"&&a!=="button")||F0(t.type,t.memoizedProps)),a=!a),a&&ct&&fo(t),xp(t),e===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(P(317));ct=aL(t)}else if(e===31){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(P(317));ct=aL(t)}else e===27?(e=ct,Oo(t.type)?(t=V0,V0=null,ct=t):ct=e):ct=Jt?Dn(t.stateNode.nextSibling):null;return!0}function vs(){ct=Jt=null,_e=!1}function kb(){var t=to;return t!==null&&(Fa===null?Fa=t:Fa.push.apply(Fa,t),to=null),t}function nf(t){to===null?to=[t]:to.push(t)}var l0=$r(null),Ms=null,si=null;function Yi(t,e,a){ft(l0,e._currentValue),e._currentValue=a}function ui(t){t._currentValue=l0.current,fa(l0)}function Wh(t,e,a){for(;t!==null;){var n=t.alternate;if((t.childLanes&e)!==e?(t.childLanes|=e,n!==null&&(n.childLanes|=e)):n!==null&&(n.childLanes&e)!==e&&(n.childLanes|=e),t===a)break;t=t.return}}function u0(t,e,a,n){var r=t.child;for(r!==null&&(r.return=t);r!==null;){var i=r.dependencies;if(i!==null){var o=r.child;i=i.firstContext;e:for(;i!==null;){var s=i;i=r;for(var l=0;l<e.length;l++)if(s.context===e[l]){i.lanes|=a,s=i.alternate,s!==null&&(s.lanes|=a),Wh(i.return,a,t),n||(o=null);break e}i=s.next}}else if(r.tag===18){if(o=r.return,o===null)throw Error(P(341));o.lanes|=a,i=o.alternate,i!==null&&(i.lanes|=a),Wh(o,a,t),o=null}else r.tag===13&&r.memoizedState!==null&&r.memoizedState.dehydrated===null?(r.lanes|=a,o=r.alternate,o!==null&&(o.lanes|=a),Wh(r.return,a,t),o=r.child,o=o!==null?o.sibling:null):o=r.child;if(o!==null)o.return=r;else for(o=r;o!==null;){if(o===t){o=null;break}if(r=o.sibling,r!==null){r.return=o.return,o=r;break}o=o.return}r=o}}function Cs(t,e,a,n){t=null;for(var r=e,i=!1;r!==null;){if(!i){if((r.flags&524288)!==0)i=!0;else if((r.flags&262144)!==0)break}if(r.tag===10){var o=r.alternate;if(o===null)throw Error(P(387));if(o=o.memoizedProps,o!==null){var s=r.type;fn(r.pendingProps.value,o.value)||(t!==null?t.push(s):t=[s])}}else if(r===fp.current){if(o=r.alternate,o===null)throw Error(P(387));o.memoizedState.memoizedState!==r.memoizedState.memoizedState&&(t!==null?t.push(fu):t=[fu])}r=r.return}return t!==null&&u0(e,t,a,n),e.flags|=262144,t!==null}function Sp(t){for(t=t.firstContext;t!==null;){if(!fn(t.context._currentValue,t.memoizedValue))return!0;t=t.next}return!1}function ws(t){Ms=t,si=null,t=t.dependencies,t!==null&&(t.firstContext=null)}function ca(t){return cE(Ms,t)}function Ph(t,e){return Ms===null&&ws(t),cE(t,e)}function cE(t,e){var a=e._currentValue;if(e={context:e,memoizedValue:a,next:null},si===null){if(t===null)throw Error(P(308));si=e,t.dependencies={lanes:0,firstContext:e},t.flags|=524288}else si=si.next=e;return a}var GU=typeof AbortController<"u"?AbortController:function(){var t=[],e=this.signal={aborted:!1,addEventListener:function(a,n){t.push(n)}};this.abort=function(){e.aborted=!0,t.forEach(function(a){return a()})}},HU=Xt.unstable_scheduleCallback,jU=Xt.unstable_NormalPriority,Pt={$$typeof:Tr,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function px(){return{controller:new GU,data:new Map,refCount:0}}function yf(t){t.refCount--,t.refCount===0&&HU(jU,function(){t.controller.abort()})}function sk(t,e){if((t.pendingLanes&4194048)!==0){var a=t.transitionTypes;for(a===null&&(a=t.transitionTypes=[]),t=0;t<e.length;t++){var n=e[t];a.indexOf(n)===-1&&a.push(n)}}}var Qc=null;function VU(t){var e=t.transitionTypes;return t.transitionTypes=null,e}var Xc=null,c0=0,ks=0,jl=null;function YU(t,e){if(Xc===null){var a=Xc=[];c0=0,ks=Xx(),jl={status:"pending",value:void 0,then:function(n){a.push(n)}}}return c0++,e.then(lk,lk),e}function lk(){if(--c0===0&&(Qc=null,Xc!==null)){jl!==null&&(jl.status="fulfilled");var t=Xc;Xc=null,ks=0,jl=null;for(var e=0;e<t.length;e++)(0,t[e])()}}function WU(t,e){var a=[],n={status:"pending",value:null,reason:null,then:function(r){a.push(r)}};return t.then(function(){n.status="fulfilled",n.value=e;for(var r=0;r<a.length;r++)(0,a[r])(e)},function(r){for(n.status="rejected",n.reason=r,r=0;r<a.length;r++)(0,a[r])(void 0)}),n}var uk=xe.S;xe.S=function(t,e){if(AA=sn(),typeof e=="object"&&e!==null&&typeof e.then=="function"&&YU(t,e),Qc!==null)for(var a=lu;a!==null;)sk(a,Qc),a=a.next;if(a=t.types,a!==null){for(var n=lu;n!==null;)sk(n,a),n=n.next;if(ks!==0){n=Qc,n===null&&(n=Qc=[]);for(var r=0;r<a.length;r++){var i=a[r];n.indexOf(i)===-1&&n.push(i)}}}uk!==null&&uk(t,e)};var xs=$r(null);function mx(){var t=xs.current;return t!==null?t:rt.pooledCache}function Kh(t,e){e===null?ft(xs,xs.current):ft(xs,e.pool)}function fE(){var t=mx();return t===null?null:{parent:Pt._currentValue,pool:t}}var gu=Error(P(460)),gx=Error(P(474)),jp=Error(P(542)),yp={then:function(){}};function ck(t){return t=t.status,t==="fulfilled"||t==="rejected"}function dE(t,e,a){switch(a=t[a],a===void 0?t.push(e):a!==e&&(e.then(Ir,Ir),e=a),e.status){case"fulfilled":return e.value;case"rejected":throw t=e.reason,dk(t),t===void 0&&!("reason"in e)?Error(P(600)):t;default:if(typeof e.status=="string")e.then(Ir,Ir);else{if(t=rt,t!==null&&100<t.shellSuspendCounter)throw Error(P(482));t=e,t.status="pending",t.then(function(n){if(e.status==="pending"){var r=e;r.status="fulfilled",r.value=n}},function(n){if(e.status==="pending"){var r=e;r.status="rejected",r.reason=n}})}switch(e.status){case"fulfilled":return e.value;case"rejected":throw t=e.reason,dk(t),t}throw Ss=e,gu}}function hs(t){try{var e=t._init;return e(t._payload)}catch(a){throw a!==null&&typeof a=="object"&&typeof a.then=="function"?(Ss=a,gu):a}}var Ss=null;function fk(){if(Ss===null)throw Error(P(459));var t=Ss;return Ss=null,t}function dk(t){if(t===gu||t===jp)throw Error(P(483))}var Vl=null,rf=0;function Mh(t){var e=rf;return rf+=1,Vl===null&&(Vl=[]),dE(Vl,t,e)}function Xi(t,e){e=e.props.ref,t.ref=e!==void 0?e:null}function Dh(t,e){throw e.$$typeof===T3?Error(P(525)):(t=Object.prototype.toString.call(e),Error(P(31,t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)))}function hE(t){function e(m,O){if(t){var x=m.deletions;x===null?(m.deletions=[O],m.flags|=16):x.push(O)}}function a(m,O){if(!t)return null;for(;O!==null;)e(m,O),O=O.sibling;return null}function n(m){for(var O=new Map;m!==null;)m.key===null?O.set(m.index,m):O.set(m.key,m),m=m.sibling;return O}function r(m,O){return m=li(m,O),m.index=0,m.sibling=null,m}function i(m,O,x){return m.index=x,t?(x=m.alternate,x!==null?(x=x.index,x<O?(m.flags|=2,O):x):(m.flags|=134217730,O)):(m.flags|=1048576,O)}function o(m){return t&&m.alternate===null&&(m.flags|=134217730),m}function s(m,O,x,S){return O===null||O.tag!==6?(O=Cb(x,m.mode,S),O.return=m,O):(O=r(O,x),O.return=m,O)}function l(m,O,x,S){var y=x.type;return y===Ml?(m=c(m,O,x.props.children,S,x.key),Xi(m,x),m):O!==null&&(O.elementType===y||typeof y=="object"&&y!==null&&y.$$typeof===Fi&&hs(y)===O.type)?(O=r(O,x.props),Xi(O,x),O.return=m,O):(O=Yh(x.type,x.key,x.props,null,m.mode,S),Xi(O,x),O.return=m,O)}function u(m,O,x,S){return O===null||O.tag!==4||O.stateNode.containerInfo!==x.containerInfo||O.stateNode.implementation!==x.implementation?(O=wb(x,m.mode,S),O.return=m,O):(O=r(O,x.children||[]),O.return=m,O)}function c(m,O,x,S,y){return O===null||O.tag!==7?(O=bs(x,m.mode,S,y),O.return=m,O):(O=r(O,x),O.return=m,O)}function f(m,O,x){if(typeof O=="string"&&O!==""||typeof O=="number"||typeof O=="bigint")return O=Cb(""+O,m.mode,x),O.return=m,O;if(typeof O=="object"&&O!==null){switch(O.$$typeof){case kh:return x=Yh(O.type,O.key,O.props,null,m.mode,x),Xi(x,O),x.return=m,x;case Mc:return O=wb(O,m.mode,x),O.return=m,O;case Fi:return O=hs(O),f(m,O,x)}if(Dc(O)||Ac(O))return O=bs(O,m.mode,x,null),O.return=m,O;if(typeof O.then=="function")return f(m,Mh(O),x);if(O.$$typeof===Tr)return f(m,Ph(m,O),x);Dh(m,O)}return null}function d(m,O,x,S){var y=O!==null?O.key:null;if(typeof x=="string"&&x!==""||typeof x=="number"||typeof x=="bigint")return y!==null?null:s(m,O,""+x,S);if(typeof x=="object"&&x!==null){switch(x.$$typeof){case kh:return x.key===y?l(m,O,x,S):null;case Mc:return x.key===y?u(m,O,x,S):null;case Fi:return x=hs(x),d(m,O,x,S)}if(Dc(x)||Ac(x))return y!==null?null:c(m,O,x,S,null);if(typeof x.then=="function")return d(m,O,Mh(x),S);if(x.$$typeof===Tr)return d(m,O,Ph(m,x),S);Dh(m,x)}return null}function h(m,O,x,S,y){if(typeof S=="string"&&S!==""||typeof S=="number"||typeof S=="bigint")return m=m.get(x)||null,s(O,m,""+S,y);if(typeof S=="object"&&S!==null){switch(S.$$typeof){case kh:return m=m.get(S.key===null?x:S.key)||null,l(O,m,S,y);case Mc:return m=m.get(S.key===null?x:S.key)||null,u(O,m,S,y);case Fi:return S=hs(S),h(m,O,x,S,y)}if(Dc(S)||Ac(S))return m=m.get(x)||null,c(O,m,S,y,null);if(typeof S.then=="function")return h(m,O,x,Mh(S),y);if(S.$$typeof===Tr)return h(m,O,x,Ph(O,S),y);Dh(O,S)}return null}function p(m,O,x,S){for(var y=null,C=null,v=O,k=O=0,L=null;v!==null&&k<x.length;k++){v.index>k?(L=v,v=null):L=v.sibling;var A=d(m,v,x[k],S);if(A===null){v===null&&(v=L);break}t&&v&&A.alternate===null&&e(m,v),O=i(A,O,k),C===null?y=A:C.sibling=A,C=A,v=L}if(k===x.length)return a(m,v),_e&&oi(m,k),y;if(v===null){for(;k<x.length;k++)v=f(m,x[k],S),v!==null&&(O=i(v,O,k),C===null?y=v:C.sibling=v,C=v);return _e&&oi(m,k),y}for(v=n(v);k<x.length;k++)L=h(v,m,k,x[k],S),L!==null&&(t&&(A=L.alternate,A!==null&&v.delete(A.key===null?k:A.key)),O=i(L,O,k),C===null?y=L:C.sibling=L,C=L);return t&&v.forEach(function(R){return e(m,R)}),_e&&oi(m,k),y}function g(m,O,x,S){if(x==null)throw Error(P(151));for(var y=null,C=null,v=O,k=O=0,L=null,A=x.next();v!==null&&!A.done;k++,A=x.next()){v.index>k?(L=v,v=null):L=v.sibling;var R=d(m,v,A.value,S);if(R===null){v===null&&(v=L);break}t&&v&&R.alternate===null&&e(m,v),O=i(R,O,k),C===null?y=R:C.sibling=R,C=R,v=L}if(A.done)return a(m,v),_e&&oi(m,k),y;if(v===null){for(;!A.done;k++,A=x.next())A=f(m,A.value,S),A!==null&&(O=i(A,O,k),C===null?y=A:C.sibling=A,C=A);return _e&&oi(m,k),y}for(v=n(v);!A.done;k++,A=x.next())A=h(v,m,k,A.value,S),A!==null&&(t&&(L=A.alternate,L!==null&&v.delete(L.key===null?k:L.key)),O=i(A,O,k),C===null?y=A:C.sibling=A,C=A);return t&&v.forEach(function(T){return e(m,T)}),_e&&oi(m,k),y}function b(m,O,x,S){if(typeof x=="object"&&x!==null&&x.type===Ml&&x.key===null&&x.props.ref===void 0&&(x=x.props.children),typeof x=="object"&&x!==null){switch(x.$$typeof){case kh:e:{for(var y=x.key;O!==null;){if(O.key===y){if(y=x.type,y===Ml){if(O.tag===7){a(m,O.sibling),S=r(O,x.props.children),Xi(S,x),S.return=m,m=S;break e}}else if(O.elementType===y||typeof y=="object"&&y!==null&&y.$$typeof===Fi&&hs(y)===O.type){a(m,O.sibling),S=r(O,x.props),Xi(S,x),S.return=m,m=S;break e}a(m,O);break}else e(m,O);O=O.sibling}x.type===Ml?(S=bs(x.props.children,m.mode,S,x.key),Xi(S,x),S.return=m,m=S):(S=Yh(x.type,x.key,x.props,null,m.mode,S),Xi(S,x),S.return=m,m=S)}return o(m);case Mc:e:{for(y=x.key;O!==null;){if(O.key===y)if(O.tag===4&&O.stateNode.containerInfo===x.containerInfo&&O.stateNode.implementation===x.implementation){a(m,O.sibling),S=r(O,x.children||[]),S.return=m,m=S;break e}else{a(m,O);break}else e(m,O);O=O.sibling}S=wb(x,m.mode,S),S.return=m,m=S}return o(m);case Fi:return x=hs(x),b(m,O,x,S)}if(Dc(x))return p(m,O,x,S);if(Ac(x)){if(y=Ac(x),typeof y!="function")throw Error(P(150));return x=y.call(x),g(m,O,x,S)}if(typeof x.then=="function")return b(m,O,Mh(x),S);if(x.$$typeof===Tr)return b(m,O,Ph(m,x),S);Dh(m,x)}return typeof x=="string"&&x!==""||typeof x=="number"||typeof x=="bigint"?(x=""+x,O!==null&&O.tag===6?(a(m,O.sibling),S=r(O,x),S.return=m,m=S):(a(m,O),S=Cb(x,m.mode,S),S.return=m,m=S),o(m)):a(m,O)}return function(m,O,x,S){try{rf=0;var y=b(m,O,x,S);return Vl=null,y}catch(v){if(v===gu||v===jp)throw v;var C=Ha(29,v,null,m.mode);return C.lanes=S,C.return=m,C}}}var Ls=hE(!0),pE=hE(!1),Gi=!1;function Ox(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function f0(t,e){t=t.updateQueue,e.updateQueue===t&&(e.updateQueue={baseState:t.baseState,firstBaseUpdate:t.firstBaseUpdate,lastBaseUpdate:t.lastBaseUpdate,shared:t.shared,callbacks:null})}function ao(t){return{lane:t,tag:0,payload:null,callback:null,next:null}}function no(t,e,a){var n=t.updateQueue;if(n===null)return null;if(n=n.shared,(Ge&2)!==0){var r=n.pending;return r===null?e.next=e:(e.next=r.next,r.next=e),n.pending=e,e=Op(t),iE(t,null,a),e}return Gp(t,n,e,a),Op(t)}function qc(t,e,a){if(e=e.updateQueue,e!==null&&(e=e.shared,(a&4194048)!==0)){var n=e.lanes;n&=t.pendingLanes,a|=n,e.lanes=a,TL(t,a)}}function Lb(t,e){var a=t.updateQueue,n=t.alternate;if(n!==null&&(n=n.updateQueue,a===n)){var r=null,i=null;if(a=a.firstBaseUpdate,a!==null){do{var o={lane:a.lane,tag:a.tag,payload:a.payload,callback:null,next:null};i===null?r=i=o:i=i.next=o,a=a.next}while(a!==null);i===null?r=i=e:i=i.next=e}else r=i=e;a={baseState:n.baseState,firstBaseUpdate:r,lastBaseUpdate:i,shared:n.shared,callbacks:n.callbacks},t.updateQueue=a;return}t=a.lastBaseUpdate,t===null?a.firstBaseUpdate=e:t.next=e,a.lastBaseUpdate=e}var d0=!1;function Zc(){if(d0){var t=jl;if(t!==null)throw t}}function Fc(t,e,a,n){d0=!1;var r=t.updateQueue;Gi=!1;var i=r.firstBaseUpdate,o=r.lastBaseUpdate,s=r.shared.pending;if(s!==null){r.shared.pending=null;var l=s,u=l.next;l.next=null,o===null?i=u:o.next=u,o=l;var c=t.alternate;c!==null&&(c=c.updateQueue,s=c.lastBaseUpdate,s!==o&&(s===null?c.firstBaseUpdate=u:s.next=u,c.lastBaseUpdate=l))}if(i!==null){var f=r.baseState;o=0,c=u=l=null,s=i;do{var d=s.lane&-536870913,h=d!==s.lane;if(h?(De&d)===d:(n&d)===d){d!==0&&d===ks&&(d0=!0),c!==null&&(c=c.next={lane:0,tag:s.tag,payload:s.payload,callback:null,next:null});e:{var p=t,g=s;d=e;var b=a;switch(g.tag){case 1:if(p=g.payload,typeof p=="function"){f=p.call(b,f,d);break e}f=p;break e;case 3:p.flags=p.flags&-65537|128;case 0:if(p=g.payload,d=typeof p=="function"?p.call(b,f,d):p,d==null)break e;f=it({},f,d);break e;case 2:Gi=!0}}d=s.callback,d!==null&&(t.flags|=64,h&&(t.flags|=8192),h=r.callbacks,h===null?r.callbacks=[d]:h.push(d))}else h={lane:d,tag:s.tag,payload:s.payload,callback:s.callback,next:null},c===null?(u=c=h,l=f):c=c.next=h,o|=d;if(s=s.next,s===null){if(s=r.shared.pending,s===null)break;h=s,s=h.next,h.next=null,r.lastBaseUpdate=h,r.shared.pending=null}}while(!0);c===null&&(l=f),r.baseState=l,r.firstBaseUpdate=u,r.lastBaseUpdate=c,i===null&&(r.shared.lanes=0),mo|=o,t.lanes=o,t.memoizedState=f}}function mE(t,e){if(typeof t!="function")throw Error(P(191,t));t.call(e)}function gE(t,e){var a=t.callbacks;if(a!==null)for(t.callbacks=null,t=0;t<a.length;t++)mE(a[t],e)}var ho=$r(null),vp=$r(0);function hk(t,e){t=mi,ft(vp,t),ft(ho,e),mi=t|e.baseLanes}function h0(){ft(vp,mi),ft(ho,ho.current)}function bx(){mi=vp.current,fa(ho),fa(vp)}var pa=$r(null),ka=null;function ro(t){var e=t.alternate;ft(da,da.current&1),ft(pa,t),ka===null&&(e===null||ho.current!==null||e.memoizedState!==null)&&(ka=t)}function p0(t){ft(da,da.current),ft(pa,t),ka===null&&(ka=t)}function OE(t){t.tag===22?(ft(da,da.current),ft(pa,t),ka===null&&(ka=t)):io()}function io(){ft(da,da.current),ft(pa,pa.current)}function nn(t){fa(pa),ka===t&&(ka=null),fa(da)}var da=$r(0);function of(t,e){ft(pa,pa.current),ft(da,e)}function xx(t){fa(da),fa(pa),ka===t&&(ka=null)}function Cp(t){for(var e=t;e!==null;){if(e.tag===13){var a=e.memoizedState;if(a!==null&&(a=a.dehydrated,a===null||j0(a)||Gx(a)))return e}else if(e.tag===19&&e.memoizedProps.revealOrder!=="independent"){if((e.flags&128)!==0)return e}else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return null;e=e.return}e.sibling.return=e.return,e=e.sibling}return null}var di=0,ke=null,tt=null,It=null,wp=!1,Yl=!1,Es=!1,kp=0,sf=0,Wl=null,KU=0;function vt(){throw Error(P(321))}function Sx(t,e){if(e===null)return!1;for(var a=0;a<e.length&&a<t.length;a++)if(!fn(t[a],e[a]))return!1;return!0}function yx(t,e,a,n,r,i){return di=i,ke=e,e.memoizedState=null,e.updateQueue=null,e.lanes=0,xe.H=t===null||t.memoizedState===null?jE:VE,Es=!1,i=a(n,r),Es=!1,Yl&&(i=xE(e,a,n,r)),bE(t),i}function bE(t){xe.H=Lp;var e=tt!==null&&tt.next!==null;if(di=0,It=tt=ke=null,wp=!1,sf=0,Wl=null,e)throw Error(P(300));t===null||Mt||(t=t.dependencies,t!==null&&Sp(t)&&(Mt=!0))}function xE(t,e,a,n){ke=t;var r=0;do{if(Yl&&(Wl=null),sf=0,Yl=!1,25<=r)throw Error(P(301));if(r+=1,It=tt=null,t.updateQueue!=null){var i=t.updateQueue;i.lastEffect=null,i.events=null,i.stores=null,i.memoCache!=null&&(i.memoCache.index=0)}xe.H=oX,i=e(a,n)}while(Yl);return i}function JU(){var t=xe.H,e=t.useState()[0];return e=typeof e.then=="function"?vf(e):e,t=t.useState()[0],(tt!==null?tt.memoizedState:null)!==t&&(ke.flags|=1024),e}function vx(){var t=kp!==0;return kp=0,t}function Cx(t,e,a){e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~a}function wx(t){if(wp){for(t=t.memoizedState;t!==null;){var e=t.queue;e!==null&&(e.pending=null),t=t.next}wp=!1}di=0,It=tt=ke=null,Yl=!1,sf=kp=0,Wl=null}function Ia(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return It===null?ke.memoizedState=It=t:It=It.next=t,It}function Et(){if(tt===null){var t=ke.alternate;t=t!==null?t.memoizedState:null}else t=tt.next;var e=It===null?ke.memoizedState:It.next;if(e!==null)It=e,tt=t;else{if(t===null)throw ke.alternate===null?Error(P(467)):Error(P(310));tt=t,t={memoizedState:tt.memoizedState,baseState:tt.baseState,baseQueue:tt.baseQueue,queue:tt.queue,next:null},It===null?ke.memoizedState=It=t:It=It.next=t}return It}function Vp(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function vf(t){var e=sf;return sf+=1,Wl===null&&(Wl=[]),t=dE(Wl,t,e),e=ke,(It===null?e.memoizedState:It.next)===null&&(e=e.alternate,xe.H=e===null||e.memoizedState===null?jE:VE),t}function Yp(t){if(t!==null&&typeof t=="object"){if(typeof t.then=="function")return vf(t);if(t.$$typeof===M3)return;if(t.$$typeof===Tr)return ca(t)}throw Error(P(438,String(t)))}function kx(t){var e=null,a=ke.updateQueue;if(a!==null&&(e=a.memoCache),e==null){var n=ke.alternate;n!==null&&(n=n.updateQueue,n!==null&&(n=n.memoCache,n!=null&&(e={data:n.data.map(function(r){return r.slice()}),index:0})))}if(e==null&&(e={data:[],index:0}),a===null&&(a=Vp(),ke.updateQueue=a),a.memoCache=e,a=e.data[e.index],a===void 0)for(a=e.data[e.index]=Array(t),n=0;n<t;n++)a[n]=P3;return e.index++,a}function hi(t,e){return typeof e=="function"?e(t):e}function Jh(t){var e=Et();return Lx(e,tt,t)}function Lx(t,e,a){var n=t.queue;if(n===null)throw Error(P(311));n.lastRenderedReducer=a;var r=t.baseQueue,i=n.pending;if(i!==null){if(r!==null){var o=r.next;r.next=i.next,i.next=o}e.baseQueue=r=i,n.pending=null}if(i=t.baseState,r===null)t.memoizedState=i;else{e=r.next;var s=o=null,l=null,u=e,c=!1;do{var f=u.lane&-536870913;if(f!==u.lane?(De&f)===f:(di&f)===f){var d=u.revertLane;if(d===0)l!==null&&(l=l.next={lane:0,revertLane:0,gesture:null,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),f===ks&&(c=!0);else if((di&d)===d){u=u.next,d===ks&&(c=!0);continue}else f={lane:0,revertLane:u.revertLane,gesture:null,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},l===null?(s=l=f,o=i):l=l.next=f,ke.lanes|=d,mo|=d;f=u.action,Es&&a(i,f),i=u.hasEagerState?u.eagerState:a(i,f)}else d={lane:f,revertLane:u.revertLane,gesture:u.gesture,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},l===null?(s=l=d,o=i):l=l.next=d,ke.lanes|=f,mo|=f;u=u.next}while(u!==null&&u!==e);if(l===null?o=i:l.next=s,!fn(i,t.memoizedState)&&(Mt=!0,c&&(a=jl,a!==null)))throw a;t.memoizedState=i,t.baseState=o,t.baseQueue=l,n.lastRenderedState=i}return r===null&&(n.lanes=0),[t.memoizedState,n.dispatch]}function Eb(t){var e=Et(),a=e.queue;if(a===null)throw Error(P(311));a.lastRenderedReducer=t;var n=a.dispatch,r=a.pending,i=e.memoizedState;if(r!==null){a.pending=null;var o=r=r.next;do i=t(i,o.action),o=o.next;while(o!==r);fn(i,e.memoizedState)||(Mt=!0),e.memoizedState=i,e.baseQueue===null&&(e.baseState=i),a.lastRenderedState=i}return[i,n]}function SE(t,e,a){var n=ke,r=Et(),i=_e;if(i){if(a===void 0)throw Error(P(407));a=a()}else a=e();var o=!fn((tt||r).memoizedState,a);if(o&&(r.memoizedState=a,Mt=!0),r=r.queue,Ex(CE.bind(null,n,r,t),[t]),t=r.getSnapshot!==e||o||It!==null&&(It.memoizedState.tag&1)!==0,ru(t?9:8,{destroy:void 0},vE.bind(null,n,r,a,e),null),t){if(n.flags|=2048,rt===null)throw Error(P(349));i||(di&127)!==0||yE(n,e,a)}return a}function yE(t,e,a){t.flags|=16384,t={getSnapshot:e,value:a},e=ke.updateQueue,e===null?(e=Vp(),ke.updateQueue=e,e.stores=[t]):(a=e.stores,a===null?e.stores=[t]:a.push(t))}function vE(t,e,a,n){e.value=a,e.getSnapshot=n,wE(e)&&kE(t)}function CE(t,e,a){return a(function(){wE(e)&&kE(t)})}function wE(t){var e=t.getSnapshot;t=t.value;try{var a=e();return!fn(t,a)}catch{return!0}}function kE(t){var e=Ps(t,2);e!==null&&ja(e,t,2)}function m0(t){var e=Ia();if(typeof t=="function"){var a=t;if(t=a(),Es){ji(!0);try{a()}finally{ji(!1)}}}return e.memoizedState=e.baseState=t,e.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:hi,lastRenderedState:t},e}function LE(t,e,a,n){return t.baseState=a,Lx(t,tt,typeof n=="function"?n:hi)}function eX(t,e,a,n,r){if(Kp(t))throw Error(P(485));if(t=e.action,t!==null){var i={payload:r,action:t,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(o){i.listeners.push(o)}};xe.T!==null?a(!0):i.isTransition=!1,n(i),a=e.pending,a===null?(i.next=e.pending=i,EE(e,i)):(i.next=a.next,e.pending=a.next=i)}}function EE(t,e){var a=e.action,n=e.payload,r=t.state;if(e.isTransition){var i=xe.T,o={};o.types=i!==null?i.types:null,xe.T=o;try{var s=a(r,n),l=xe.S;l!==null&&l(o,s),pk(t,e,s)}catch(u){g0(t,e,u)}finally{i!==null&&o.types!==null&&(i.types=o.types),xe.T=i}}else try{i=a(r,n),pk(t,e,i)}catch(u){g0(t,e,u)}}function pk(t,e,a){a!==null&&typeof a=="object"&&typeof a.then=="function"?a.then(function(n){mk(t,e,n)},function(n){return g0(t,e,n)}):mk(t,e,a)}function mk(t,e,a){e.status="fulfilled",e.value=a,AE(e),t.state=a,e=t.pending,e!==null&&(a=e.next,a===e?t.pending=null:(a=a.next,e.next=a,EE(t,a)))}function g0(t,e,a){var n=t.pending;if(t.pending=null,n!==null){n=n.next;do e.status="rejected",e.reason=a,AE(e),e=e.next;while(e!==n)}t.action=null}function AE(t){t=t.listeners;for(var e=0;e<t.length;e++)(0,t[e])()}function _E(t,e){return e}function gk(t,e){if(_e){var a=rt.formState;if(a!==null){e:{var n=ke;if(_e){if(ct){t:{for(var r=ct,i=Mn;r.nodeType!==8;){if(!i){r=null;break t}if(r=Dn(r.nextSibling),r===null){r=null;break t}}i=r.data,r=i==="F!"||i==="F"?r:null}if(r){ct=Dn(r.nextSibling),n=r.data==="F!";break e}}fo(n)}n=!1}n&&(e=a[0])}}return a=Ia(),a.memoizedState=a.baseState=e,n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:_E,lastRenderedState:e},a.queue=n,a=FE.bind(null,ke,n),n.dispatch=a,n=m0(!1),i=Tx.bind(null,ke,!1,n.queue),n=Ia(),r={state:e,dispatch:null,action:t,pending:null},n.queue=r,a=eX.bind(null,ke,r,i,a),r.dispatch=a,n.memoizedState=t,[e,a,!1]}function Ok(t){var e=Et();return RE(e,tt,t)}function RE(t,e,a){if(e=Lx(t,e,_E)[0],t=Jh(hi)[0],typeof e=="object"&&e!==null&&typeof e.then=="function")try{var n=vf(e)}catch(o){throw o===gu?jp:o}else n=e;e=Et();var r=e.queue,i=r.dispatch;return a!==e.memoizedState&&(ke.flags|=2048,ru(9,{destroy:void 0},tX.bind(null,r,a),null)),[n,i,t]}function tX(t,e){t.action=e}function bk(t){var e=Et(),a=tt;if(a!==null)return RE(e,a,t);Et(),e=e.memoizedState,a=Et();var n=a.queue.dispatch;return a.memoizedState=t,[e,n,!1]}function ru(t,e,a,n){return t={tag:t,create:a,deps:n,inst:e,next:null},e=ke.updateQueue,e===null&&(e=Vp(),ke.updateQueue=e),a=e.lastEffect,a===null?e.lastEffect=t.next=t:(n=a.next,a.next=t,t.next=n,e.lastEffect=t),t}function TE(){return Et().memoizedState}function ep(t,e,a,n){var r=Ia();ke.flags|=t,r.memoizedState=ru(1|e,{destroy:void 0},a,n===void 0?null:n)}function Wp(t,e,a,n){var r=Et();n=n===void 0?null:n;var i=r.memoizedState.inst;tt!==null&&n!==null&&Sx(n,tt.memoizedState.deps)?r.memoizedState=ru(e,i,a,n):(ke.flags|=t,r.memoizedState=ru(1|e,i,a,n))}function xk(t,e){ep(8390656,8,t,e)}function Ex(t,e){Wp(2048,8,t,e)}function aX(t){ke.flags|=4;var e=ke.updateQueue;if(e===null)e=Vp(),ke.updateQueue=e,e.events=[t];else{var a=e.events;a===null?e.events=[t]:a.push(t)}}function IE(t){var e=Et().memoizedState;return aX({ref:e,nextImpl:t}),function(){if((Ge&2)!==0)throw Error(P(440));return e.impl.apply(void 0,arguments)}}function PE(t,e){return Wp(4,2,t,e)}function ME(t,e){return Wp(4,4,t,e)}function DE(t,e){if(typeof e=="function"){t=t();var a=e(t);return function(){typeof a=="function"?a():e(null)}}if(e!=null)return t=t(),e.current=t,function(){e.current=null}}function NE(t,e,a){a=a!=null?a.concat([t]):null,Wp(4,4,DE.bind(null,e,t),a)}function Ax(){}function QE(t,e){var a=Et();e=e===void 0?null:e;var n=a.memoizedState;return e!==null&&Sx(e,n[1])?n[0]:(a.memoizedState=[t,e],t)}function $E(t,e){var a=Et();e=e===void 0?null:e;var n=a.memoizedState;if(e!==null&&Sx(e,n[1]))return n[0];if(n=t(),Es){ji(!0);try{t()}finally{ji(!1)}}return a.memoizedState=[n,e],n}function _x(t,e,a){return a===void 0||(di&1073741824)!==0&&(De&261930)===0?t.memoizedState=e:(t.memoizedState=a,t=RA(),ke.lanes|=t,mo|=t,a)}function BE(t,e,a,n){return fn(a,e)?a:ho.current!==null?(t=_x(t,a,n),fn(t,e)||(Mt=!0),t):(di&106)===0||(di&1073741824)!==0&&(De&261930)===0?(Mt=!0,t.memoizedState=a):(t=RA(),ke.lanes|=t,mo|=t,e)}function zE(t,e,a,n,r){var i=He.p;He.p=i!==0&&8>i?i:8;var o=xe.T,s={};s.types=o!==null?o.types:null,xe.T=s,Tx(t,!1,e,a);try{var l=r(),u=xe.S;if(u!==null&&u(s,l),l!==null&&typeof l=="object"&&typeof l.then=="function"){var c=WU(l,n);Gc(t,e,c,cn(t))}else Gc(t,e,n,cn(t))}catch(f){Gc(t,e,{then:function(){},status:"rejected",reason:f},cn())}finally{He.p=i,o!==null&&s.types!==null&&(o.types=s.types),xe.T=o}}function nX(){}function O0(t,e,a,n){if(t.tag!==5)throw Error(P(476));var r=UE(t).queue;zE(t,r,e,Os,a===null?nX:function(){return XE(t),a(n)})}function UE(t){var e=t.memoizedState;if(e!==null)return e;e={memoizedState:Os,baseState:Os,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:hi,lastRenderedState:Os},next:null};var a={};return e.next={memoizedState:a,baseState:a,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:hi,lastRenderedState:a},next:null},t.memoizedState=e,t=t.alternate,t!==null&&(t.memoizedState=e),e}function XE(t){var e=UE(t);e.next===null&&(e=t.alternate.memoizedState),Gc(t,e.next.queue,{},cn())}function Rx(){return ca(fu)}function qE(){return Et().memoizedState}function ZE(){return Et().memoizedState}function rX(t){for(var e=t.return;e!==null;){switch(e.tag){case 24:case 3:var a=cn();t=ao(a);var n=no(e,t,a);n!==null&&(ja(n,e,a),qc(n,e,a)),e={cache:px()},t.payload=e;return}e=e.return}}function iX(t,e,a){var n=cn();a={lane:n,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},Kp(t)?GE(e,a):(a=fx(t,e,a,n),a!==null&&(ja(a,t,n),HE(a,e,n)))}function FE(t,e,a){var n=cn();Gc(t,e,a,n)}function Gc(t,e,a,n){var r={lane:n,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null};if(Kp(t))GE(e,r);else{var i=t.alternate;if(t.lanes===0&&(i===null||i.lanes===0)&&(i=e.lastRenderedReducer,i!==null))try{var o=e.lastRenderedState,s=i(o,a);if(r.hasEagerState=!0,r.eagerState=s,fn(s,o))return Gp(t,e,r,0),rt===null&&Fp(),!1}catch{}if(a=fx(t,e,r,n),a!==null)return ja(a,t,n),HE(a,e,n),!0}return!1}function Tx(t,e,a,n){if(n={lane:2,revertLane:Xx(),gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},Kp(t)){if(e)throw Error(P(479))}else e=fx(t,a,n,2),e!==null&&ja(e,t,2)}function Kp(t){var e=t.alternate;return t===ke||e!==null&&e===ke}function GE(t,e){Yl=wp=!0;var a=t.pending;a===null?e.next=e:(e.next=a.next,a.next=e),t.pending=e}function HE(t,e,a){if((a&4194048)!==0){var n=e.lanes;n&=t.pendingLanes,a|=n,e.lanes=a,TL(t,a)}}var Lp={readContext:ca,use:Yp,useCallback:vt,useContext:vt,useEffect:vt,useImperativeHandle:vt,useLayoutEffect:vt,useInsertionEffect:vt,useMemo:vt,useReducer:vt,useRef:vt,useState:vt,useDebugValue:vt,useDeferredValue:vt,useTransition:vt,useSyncExternalStore:vt,useId:vt,useHostTransitionStatus:vt,useFormState:vt,useActionState:vt,useOptimistic:vt,useMemoCache:vt,useCacheRefresh:vt,useEffectEvent:vt},jE={readContext:ca,use:Yp,useCallback:function(t,e){return Ia().memoizedState=[t,e===void 0?null:e],t},useContext:ca,useEffect:xk,useImperativeHandle:function(t,e,a){a=a!=null?a.concat([t]):null,ep(4194308,4,DE.bind(null,e,t),a)},useLayoutEffect:function(t,e){return ep(4194308,4,t,e)},useInsertionEffect:function(t,e){ep(4,2,t,e)},useMemo:function(t,e){var a=Ia();e=e===void 0?null:e;var n=t();if(Es){ji(!0);try{t()}finally{ji(!1)}}return a.memoizedState=[n,e],n},useReducer:function(t,e,a){var n=Ia();if(a!==void 0){var r=a(e);if(Es){ji(!0);try{a(e)}finally{ji(!1)}}}else r=e;return n.memoizedState=n.baseState=r,t={pending:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:r},n.queue=t,t=t.dispatch=iX.bind(null,ke,t),[n.memoizedState,t]},useRef:function(t){var e=Ia();return t={current:t},e.memoizedState=t},useState:function(t){t=m0(t);var e=t.queue,a=FE.bind(null,ke,e);return e.dispatch=a,[t.memoizedState,a]},useDebugValue:Ax,useDeferredValue:function(t,e){var a=Ia();return _x(a,t,e)},useTransition:function(){var t=m0(!1);return t=zE.bind(null,ke,t.queue,!0,!1),Ia().memoizedState=t,[!1,t]},useSyncExternalStore:function(t,e,a){var n=ke,r=Ia();if(_e){if(a===void 0)throw Error(P(407));a=a()}else{if(a=e(),rt===null)throw Error(P(349));(De&127)!==0||yE(n,e,a)}r.memoizedState=a;var i={value:a,getSnapshot:e};return r.queue=i,xk(CE.bind(null,n,i,t),[t]),n.flags|=2048,ru(9,{destroy:void 0},vE.bind(null,n,i,a,e),null),a},useId:function(){var t=Ia(),e=rt.identifierPrefix;if(_e){var a=Mr,n=Pr;a=(n&~(1<<32-un(n)-1)).toString(32)+a,e="_"+e+"R_"+a,a=kp++,0<a&&(e+="H"+a.toString(32)),e+="_"}else a=KU++,e="_"+e+"r_"+a.toString(32)+"_";return t.memoizedState=e},useHostTransitionStatus:Rx,useFormState:gk,useActionState:gk,useOptimistic:function(t){var e=Ia();e.memoizedState=e.baseState=t;var a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return e.queue=a,e=Tx.bind(null,ke,!0,a),a.dispatch=e,[t,e]},useMemoCache:kx,useCacheRefresh:function(){return Ia().memoizedState=rX.bind(null,ke)},useEffectEvent:function(t){var e=Ia(),a={impl:t};return e.memoizedState=a,function(){if((Ge&2)!==0)throw Error(P(440));return a.impl.apply(void 0,arguments)}}},VE={readContext:ca,use:Yp,useCallback:QE,useContext:ca,useEffect:Ex,useImperativeHandle:NE,useInsertionEffect:PE,useLayoutEffect:ME,useMemo:$E,useReducer:Jh,useRef:TE,useState:function(){return Jh(hi)},useDebugValue:Ax,useDeferredValue:function(t,e){var a=Et();return BE(a,tt.memoizedState,t,e)},useTransition:function(){var t=Jh(hi)[0],e=Et().memoizedState;return[typeof t=="boolean"?t:vf(t),e]},useSyncExternalStore:SE,useId:qE,useHostTransitionStatus:Rx,useFormState:Ok,useActionState:Ok,useOptimistic:function(t,e){var a=Et();return LE(a,tt,t,e)},useMemoCache:kx,useCacheRefresh:ZE,useEffectEvent:IE},oX={readContext:ca,use:Yp,useCallback:QE,useContext:ca,useEffect:Ex,useImperativeHandle:NE,useInsertionEffect:PE,useLayoutEffect:ME,useMemo:$E,useReducer:Eb,useRef:TE,useState:function(){return Eb(hi)},useDebugValue:Ax,useDeferredValue:function(t,e){var a=Et();return tt===null?_x(a,t,e):BE(a,tt.memoizedState,t,e)},useTransition:function(){var t=Eb(hi)[0],e=Et().memoizedState;return[typeof t=="boolean"?t:vf(t),e]},useSyncExternalStore:SE,useId:qE,useHostTransitionStatus:Rx,useFormState:bk,useActionState:bk,useOptimistic:function(t,e){var a=Et();return tt!==null?LE(a,tt,t,e):(a.baseState=t,[t,a.queue.dispatch])},useMemoCache:kx,useCacheRefresh:ZE,useEffectEvent:IE};function Ab(t,e,a,n){e=t.memoizedState,a=a(n,e),a=a==null?e:it({},e,a),t.memoizedState=a,t.lanes===0&&(t.updateQueue.baseState=a)}var b0={enqueueSetState:function(t,e,a){t=t._reactInternals;var n=cn(),r=ao(n);r.payload=e,a!=null&&(r.callback=a),e=no(t,r,n),e!==null&&(ja(e,t,n),qc(e,t,n))},enqueueReplaceState:function(t,e,a){t=t._reactInternals;var n=cn(),r=ao(n);r.tag=1,r.payload=e,a!=null&&(r.callback=a),e=no(t,r,n),e!==null&&(ja(e,t,n),qc(e,t,n))},enqueueForceUpdate:function(t,e){t=t._reactInternals;var a=cn(),n=ao(a);n.tag=2,e!=null&&(n.callback=e),e=no(t,n,a),e!==null&&(ja(e,t,a),qc(e,t,a))}};function Sk(t,e,a,n,r,i,o){return t=t.stateNode,typeof t.shouldComponentUpdate=="function"?t.shouldComponentUpdate(n,i,o):e.prototype&&e.prototype.isPureReactComponent?!tf(a,n)||!tf(r,i):!0}function yk(t,e,a,n){t=e.state,typeof e.componentWillReceiveProps=="function"&&e.componentWillReceiveProps(a,n),typeof e.UNSAFE_componentWillReceiveProps=="function"&&e.UNSAFE_componentWillReceiveProps(a,n),e.state!==t&&b0.enqueueReplaceState(e,e.state,null)}function As(t,e){var a=e;if("ref"in e){a={};for(var n in e)n!=="ref"&&(a[n]=e[n])}if(t=t.defaultProps){a===e&&(a=it({},a));for(var r in t)a[r]===void 0&&(a[r]=t[r])}return a}function YE(t){gp(t)}function WE(t){console.error(t)}function KE(t){gp(t)}function Ep(t,e){try{var a=t.onUncaughtError;a(e.value,{componentStack:e.stack})}catch(n){setTimeout(function(){throw n})}}function vk(t,e,a){try{var n=t.onCaughtError;n(a.value,{componentStack:a.stack,errorBoundary:e.tag===1?e.stateNode:null})}catch(r){setTimeout(function(){throw r})}}function x0(t,e,a){return a=ao(a),a.tag=3,a.payload={element:null},a.callback=function(){Ep(t,e)},a}function JE(t){return t=ao(t),t.tag=3,t}function eA(t,e,a,n){var r=a.type.getDerivedStateFromError;if(typeof r=="function"){var i=n.value;t.payload=function(){return r(i)},t.callback=function(){vk(e,a,n)}}var o=a.stateNode;o!==null&&typeof o.componentDidCatch=="function"&&(t.callback=function(){vk(e,a,n),typeof r!="function"&&(oo===null?oo=new Set([this]):oo.add(this));var s=n.stack;this.componentDidCatch(n.value,{componentStack:s!==null?s:""})})}function sX(t,e,a,n,r){if(a.flags|=32768,n!==null&&typeof n=="object"&&typeof n.then=="function"){if(e=a.alternate,e!==null&&Cs(e,a,r,!0),a=pa.current,a!==null){switch(a.tag){case 31:case 13:case 19:return ka===null?Dp():a.alternate===null&&Ct===0&&(Ct=3),a.flags&=-257,a.flags|=65536,a.lanes=r,n===yp?a.flags|=16384:(e=a.updateQueue,e===null?a.updateQueue=new Set([n]):e.add(n),Db(t,n,r)),!1;case 22:return a.flags|=65536,n===yp?a.flags|=16384:(e=a.updateQueue,e===null?(e={transitions:null,markerInstances:null,retryQueue:new Set([n])},a.updateQueue=e):(a=e.retryQueue,a===null?e.retryQueue=new Set([n]):a.add(n)),Db(t,n,r)),!1}throw Error(P(435,a.tag))}return Db(t,n,r),Dp(),!1}if(_e)return e=pa.current,e!==null?((e.flags&65536)===0&&(e.flags|=256),e.flags|=65536,e.lanes=r,n!==s0&&(t=Error(P(422),{cause:n}),nf(Pn(t,a)))):(n!==s0&&(e=Error(P(423),{cause:n}),nf(Pn(e,a))),t=t.current.alternate,t.flags|=65536,r&=-r,t.lanes|=r,n=Pn(n,a),r=x0(t.stateNode,n,r),Lb(t,r),Ct!==4&&(Ct=2)),!1;var i=Error(P(520),{cause:n});if(i=Pn(i,a),Yc===null?Yc=[i]:Yc.push(i),Ct!==4&&(Ct=2),e===null)return!0;n=Pn(n,a),a=e;do{switch(a.tag){case 3:return a.flags|=65536,t=r&-r,a.lanes|=t,t=x0(a.stateNode,n,t),Lb(a,t),!1;case 1:if(e=a.type,i=a.stateNode,(a.flags&128)===0&&(typeof e.getDerivedStateFromError=="function"||i!==null&&typeof i.componentDidCatch=="function"&&(oo===null||!oo.has(i))))return a.flags|=65536,r&=-r,a.lanes|=r,r=JE(r),eA(r,t,a,n),Lb(a,r),!1;break;case 22:if(a.memoizedState!==null)return a.flags|=65536,!1}a=a.return}while(a!==null);return!1}var Ix=Error(P(461)),Mt=!1;function zt(t,e,a,n){e.child=t===null?pE(e,null,a,n):Ls(e,t.child,a,n)}function Ck(t,e,a,n,r){a=a.render;var i=e.ref;if("ref"in n){var o={};for(var s in n)s!=="ref"&&(o[s]=n[s])}else o=n;return ws(e),n=yx(t,e,a,o,i,r),s=vx(),t!==null&&!Mt?(Cx(t,e,r),pi(t,e,r)):(_e&&s&&Hp(e),e.flags|=1,zt(t,e,n,r),e.child)}function wk(t,e,a,n,r){if(t===null){var i=a.type;return typeof i=="function"&&!dx(i)&&i.defaultProps===void 0&&a.compare===null?(e.tag=15,e.type=i,tA(t,e,i,n,r)):(t=Yh(a.type,null,n,e,e.mode,r),t.ref=e.ref,t.return=e,e.child=t)}if(i=t.child,!Mx(t,r)){var o=i.memoizedProps;if(a=a.compare,a=a!==null?a:tf,a(o,n)&&t.ref===e.ref)return pi(t,e,r)}return e.flags|=1,t=li(i,n),t.ref=e.ref,t.return=e,e.child=t}function tA(t,e,a,n,r){if(t!==null){var i=t.memoizedProps;if(tf(i,n)&&t.ref===e.ref)if(Mt=!1,e.pendingProps=n=i,Mx(t,r))(t.flags&131072)!==0&&(Mt=!0);else return e.lanes=t.lanes,pi(t,e,r)}return S0(t,e,a,n,r)}function aA(t,e,a,n){var r=n.children,i=t!==null?t.memoizedState:null;if(t===null&&e.stateNode===null&&(e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),n.mode==="hidden"){if((e.flags&128)!==0){if(i=i!==null?i.baseLanes|a:a,t!==null){for(n=e.child=t.child,r=0;n!==null;)r=r|n.lanes|n.childLanes,n=n.sibling;n=r&~i}else n=0,e.child=null;return kk(t,e,i,a,n)}if((a&536870912)!==0)e.memoizedState={baseLanes:0,cachePool:null},t!==null&&Kh(e,i!==null?i.cachePool:null),i!==null?hk(e,i):h0(),OE(e);else return n=e.lanes=536870912,kk(t,e,i!==null?i.baseLanes|a:a,a,n)}else i!==null?(Kh(e,i.cachePool),hk(e,i),io(),e.memoizedState=null):(t!==null&&Kh(e,null),h0(),io());return zt(t,e,r,a),e.child}function Hc(t,e){return t!==null&&t.tag===22||e.stateNode!==null||(e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),e.sibling}function kk(t,e,a,n,r){var i=mx();return i=i===null?null:{parent:Pt._currentValue,pool:i},e.memoizedState={baseLanes:a,cachePool:i},t!==null&&Kh(e,null),h0(),OE(e),t!==null&&Cs(t,e,n,!0),e.childLanes=r,null}function tp(t,e){return e=Jp({mode:e.mode,children:e.children},t.mode),e.ref=t.ref,t.child=e,e.return=t,e}function Lk(t,e,a){return Ls(e,t.child,null,a),t=tp(e,e.pendingProps),t.flags|=2,nn(e),e.memoizedState=null,t}function lX(t,e,a){var n=e.pendingProps,r=(e.flags&128)!==0;if(e.flags&=-129,t===null){if(_e){if(n.mode==="hidden")return t=tp(e,n),e.lanes=536870912,t.memoizedState={baseLanes:0,cachePool:null},Hc(null,t);if(p0(e),(t=ct)?(t=a_(t,Mn),t=t!==null&&t.data==="&"?t:null,t!==null&&(e.memoizedState={dehydrated:t,treeContext:co!==null?{id:Pr,overflow:Mr}:null,retryLane:536870912,hydrationErrors:null},a=sE(t),a.return=e,e.child=a,Jt=e,ct=null)):t=null,t===null)throw fo(e);return e.lanes=536870912,null}return tp(e,n)}var i=t.memoizedState;if(i!==null){var o=i.dehydrated;if(p0(e),r)if(e.flags&256)e.flags&=-257,e=Lk(t,e,a);else if(e.memoizedState!==null)e.child=t.child,e.flags|=128,e=null;else throw Error(P(558));else if(Mt||Cs(t,e,a,!1),r=(a&t.childLanes)!==0,Mt||r){if(ho.current===null){if(n=rt,n!==null&&(o=IL(n,a),o!==0&&o!==i.retryLane))throw i.retryLane=o,Ps(t,o),ja(n,t,o),Ix;Dp()}e=Lk(t,e,a)}else t=i.treeContext,ct=Dn(o.nextSibling),Jt=e,_e=!0,to=null,Mn=!1,t!==null&&uE(e,t),e=tp(e,n),e.flags|=134221824;return e}return t=li(t.child,{mode:n.mode,children:n.children}),t.ref=e.ref,e.child=t,t.return=e,t}function Rl(t,e){var a=e.ref;if(a===null)t!==null&&t.ref!==null&&(e.flags|=4194816);else{if(typeof a!="function"&&typeof a!="object")throw Error(P(284));(t===null||t.ref!==a)&&(e.flags|=4194816)}}function S0(t,e,a,n,r){return ws(e),a=yx(t,e,a,n,void 0,r),n=vx(),t!==null&&!Mt?(Cx(t,e,r),pi(t,e,r)):(_e&&n&&Hp(e),e.flags|=1,zt(t,e,a,r),e.child)}function Ek(t,e,a,n,r,i){return ws(e),e.updateQueue=null,a=xE(e,n,a,r),bE(t),n=vx(),t!==null&&!Mt?(Cx(t,e,i),pi(t,e,i)):(_e&&n&&Hp(e),e.flags|=1,zt(t,e,a,i),e.child)}function Ak(t,e,a,n,r){if(ws(e),e.stateNode===null){var i=Ul,o=a.contextType;typeof o=="object"&&o!==null&&(i=ca(o)),i=new a(n,i),e.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,i.updater=b0,e.stateNode=i,i._reactInternals=e,i=e.stateNode,i.props=n,i.state=e.memoizedState,i.refs={},Ox(e),o=a.contextType,i.context=typeof o=="object"&&o!==null?ca(o):Ul,i.state=e.memoizedState,o=a.getDerivedStateFromProps,typeof o=="function"&&(Ab(e,a,o,n),i.state=e.memoizedState),typeof a.getDerivedStateFromProps=="function"||typeof i.getSnapshotBeforeUpdate=="function"||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(o=i.state,typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount(),o!==i.state&&b0.enqueueReplaceState(i,i.state,null),Fc(e,n,i,r),Zc(),i.state=e.memoizedState),typeof i.componentDidMount=="function"&&(e.flags|=4194308),n=!0}else if(t===null){i=e.stateNode;var s=e.memoizedProps,l=As(a,s);i.props=l;var u=i.context,c=a.contextType;o=Ul,typeof c=="object"&&c!==null&&(o=ca(c));var f=a.getDerivedStateFromProps;c=typeof f=="function"||typeof i.getSnapshotBeforeUpdate=="function",s=e.pendingProps!==s,c||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(s||u!==o)&&yk(e,i,n,o),Gi=!1;var d=e.memoizedState;i.state=d,Fc(e,n,i,r),Zc(),u=e.memoizedState,s||d!==u||Gi?(typeof f=="function"&&(Ab(e,a,f,n),u=e.memoizedState),(l=Gi||Sk(e,a,l,n,d,u,o))?(c||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount()),typeof i.componentDidMount=="function"&&(e.flags|=4194308)):(typeof i.componentDidMount=="function"&&(e.flags|=4194308),e.memoizedProps=n,e.memoizedState=u),i.props=n,i.state=u,i.context=o,n=l):(typeof i.componentDidMount=="function"&&(e.flags|=4194308),n=!1)}else{i=e.stateNode,f0(t,e),o=e.memoizedProps,c=As(a,o),i.props=c,f=e.pendingProps,d=i.context,u=a.contextType,l=Ul,typeof u=="object"&&u!==null&&(l=ca(u)),s=a.getDerivedStateFromProps,(u=typeof s=="function"||typeof i.getSnapshotBeforeUpdate=="function")||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(o!==f||d!==l)&&yk(e,i,n,l),Gi=!1,d=e.memoizedState,i.state=d,Fc(e,n,i,r),Zc();var h=e.memoizedState;o!==f||d!==h||Gi||t!==null&&t.dependencies!==null&&Sp(t.dependencies)?(typeof s=="function"&&(Ab(e,a,s,n),h=e.memoizedState),(c=Gi||Sk(e,a,c,n,d,h,l)||t!==null&&t.dependencies!==null&&Sp(t.dependencies))?(u||typeof i.UNSAFE_componentWillUpdate!="function"&&typeof i.componentWillUpdate!="function"||(typeof i.componentWillUpdate=="function"&&i.componentWillUpdate(n,h,l),typeof i.UNSAFE_componentWillUpdate=="function"&&i.UNSAFE_componentWillUpdate(n,h,l)),typeof i.componentDidUpdate=="function"&&(e.flags|=4),typeof i.getSnapshotBeforeUpdate=="function"&&(e.flags|=1024)):(typeof i.componentDidUpdate!="function"||o===t.memoizedProps&&d===t.memoizedState||(e.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||o===t.memoizedProps&&d===t.memoizedState||(e.flags|=1024),e.memoizedProps=n,e.memoizedState=h),i.props=n,i.state=h,i.context=l,n=c):(typeof i.componentDidUpdate!="function"||o===t.memoizedProps&&d===t.memoizedState||(e.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||o===t.memoizedProps&&d===t.memoizedState||(e.flags|=1024),n=!1)}return i=n,Rl(t,e),n=(e.flags&128)!==0,i||n?(i=e.stateNode,a=n&&typeof a.getDerivedStateFromError!="function"?null:i.render(),e.flags|=1,t!==null&&n?(e.child=Ls(e,t.child,null,r),e.child=Ls(e,null,a,r)):zt(t,e,a,r),e.memoizedState=i.state,t=e.child):t=pi(t,e,r),t}function _k(t,e,a,n){return vs(),e.flags|=256,zt(t,e,a,n),e.child}var y0={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function v0(t){return{baseLanes:t,cachePool:fE()}}function C0(t,e,a){return t=t!==null?t.childLanes&~a:0,e&&(t|=on),t}function nA(t,e,a){var n=e.pendingProps,r=!1,i=(e.flags&128)!==0,o;if((o=i)||(o=t!==null&&t.memoizedState===null?!1:(da.current&2)!==0),o&&(r=!0,e.flags&=-129),o=(e.flags&32)!==0,e.flags&=-33,t===null){if(_e){if(r?ro(e):io(),(t=ct)?(t=a_(t,Mn),t=t!==null&&t.data!=="&"?t:null,t!==null&&(e.memoizedState={dehydrated:t,treeContext:co!==null?{id:Pr,overflow:Mr}:null,retryLane:536870912,hydrationErrors:null},a=sE(t),a.return=e,e.child=a,Jt=e,ct=null)):t=null,t===null)throw fo(e);return Gx(t)?e.lanes=32:e.lanes=536870912,null}return i=n.children,n=n.fallback,r?(io(),r=e.mode,i=Jp({mode:"hidden",children:i},r),n=bs(n,r,a,null),i.return=e,n.return=e,i.sibling=n,e.child=i,n=e.child,n.memoizedState=v0(a),n.childLanes=C0(t,o,a),e.memoizedState=y0,Hc(null,n)):(ro(e),Px(e,i))}var s=t.memoizedState;if(s!==null){var l=s.dehydrated;if(l!==null)return uX(t,e,i,o,n,l,s,a)}return r?(io(),r=n.fallback,i=e.mode,s=t.child,l=s.sibling,n=li(s,{mode:"hidden",children:n.children}),n.subtreeFlags=s.subtreeFlags&1206910976,l!==null?r=li(l,r):(r=bs(r,i,a,null),r.flags|=2),r.return=e,n.return=e,n.sibling=r,e.child=n,Hc(null,n),n=e.child,r=t.child.memoizedState,r===null?r=v0(a):(i=r.cachePool,i!==null?(s=Pt._currentValue,i=i.parent!==s?{parent:s,pool:s}:i):i=fE(),r={baseLanes:r.baseLanes|a,cachePool:i}),n.memoizedState=r,n.childLanes=C0(t,o,a),e.memoizedState=y0,Hc(t.child,n)):(ro(e),a=t.child,t=a.sibling,a=li(a,{mode:"visible",children:n.children}),a.return=e,a.sibling=null,t!==null&&(o=e.deletions,o===null?(e.deletions=[t],e.flags|=16):o.push(t)),e.child=a,e.memoizedState=null,a)}function Px(t,e){return e=Jp({mode:"visible",children:e},t.mode),e.return=t,t.child=e}function Jp(t,e){return t=Ha(22,t,null,e),t.lanes=0,t}function Nh(t,e,a){return Ls(e,t.child,null,a),t=Px(e,e.pendingProps.children),t.flags|=2,e.memoizedState=null,t}function uX(t,e,a,n,r,i,o,s){if(a)return e.flags&256?(ro(e),e.flags&=-257,Nh(t,e,s)):e.memoizedState!==null?(io(),e.child=t.child,e.flags|=128,null):(io(),i=r.fallback,o=e.mode,r=Jp({mode:"visible",children:r.children},o),i=bs(i,o,s,null),i.flags|=2,r.return=e,i.return=e,r.sibling=i,e.child=r,Ls(e,t.child,null,s),r=e.child,r.memoizedState=v0(s),r.childLanes=C0(t,n,s),e.memoizedState=y0,Hc(null,r));if(ro(e),Gx(i)){if(n=i.nextSibling&&i.nextSibling.dataset,n)var l=n.dgst;return n=l,n!==""&&(r=Error(P(419)),r.stack="",r.digest=n,nf({value:r,source:null,stack:null})),Nh(t,e,s)}if(Mt||Cs(t,e,s,!1),n=(s&t.childLanes)!==0,Mt||n){if(ho.current!==null)return Nh(t,e,s);if(n=rt,n!==null&&(r=IL(n,s),r!==0&&r!==o.retryLane))throw o.retryLane=r,Ps(t,r),ja(n,t,r),Ix;return j0(i)||Dp(),Nh(t,e,s)}return j0(i)?(e.flags|=192,e.child=t.child,null):(t=o.treeContext,ct=Dn(i.nextSibling),Jt=e,_e=!0,to=null,Mn=!1,t!==null&&uE(e,t),e=Px(e,r.children),e.flags|=134221824,e)}function Rk(t,e,a){t.lanes|=e;var n=t.alternate;n!==null&&(n.lanes|=e),Wh(t.return,e,a)}function Tk(t){for(var e=null;t!==null;){var a=t.alternate;a!==null&&Cp(a)===null&&(e=t),t=t.sibling}return e}function Qh(t,e,a,n,r,i){var o=t.memoizedState;o===null?t.memoizedState={isBackwards:e,rendering:null,renderingStartTime:0,last:n,tail:a,tailMode:r,treeForkCount:i}:(o.isBackwards=e,o.rendering=null,o.renderingStartTime=0,o.last=n,o.tail=a,o.tailMode=r,o.treeForkCount=i)}function _b(t){var e=t.child;for(t.child=null;e!==null;){var a=e.sibling;e.sibling=t.child,t.child=e,e=a}}function w0(t,e,a){var n=e.pendingProps,r=n.revealOrder,i=n.tail;n=n.children;var o=da.current;if(e.flags&128)return of(e,o),null;var s=(o&2)!==0;if(s?(o=o&1|2,e.flags|=128):o&=1,of(e,o),r==="backwards"&&t!==null?(_b(t),zt(t,e,n,a),_b(t)):zt(t,e,n,a),n=_e?af:0,!s&&t!==null&&(t.flags&128)!==0)e:for(t=e.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&Rk(t,a,e);else if(t.tag===19)Rk(t,a,e);else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;t=t.return}t.sibling.return=t.return,t=t.sibling}switch(r){case"backwards":a=Tk(e.child),a===null?(r=e.child,e.child=null):(r=a.sibling,a.sibling=null,_b(e)),Qh(e,!0,r,null,i,n);break;case"unstable_legacy-backwards":for(a=null,r=e.child,e.child=null;r!==null;){if(t=r.alternate,t!==null&&Cp(t)===null){e.child=r;break}t=r.sibling,r.sibling=a,a=r,r=t}Qh(e,!0,a,null,i,n);break;case"together":Qh(e,!1,null,null,void 0,n);break;case"independent":e.memoizedState=null;break;default:a=Tk(e.child),a===null?(r=e.child,e.child=null):(r=a.sibling,a.sibling=null),Qh(e,!1,r,a,i,n)}return e.child}function Ik(t,e,a){var n=e.pendingProps;return Yi(e,e.type,n.value),zt(t,e,n.children,a),e.child}function pi(t,e,a){if(t!==null&&(e.dependencies=t.dependencies),mo|=e.lanes,(a&e.childLanes)===0)if(t!==null){if(Cs(t,e,a,!1),(a&e.childLanes)===0)return null}else return null;if(t!==null&&e.child!==t.child)throw Error(P(153));if(e.child!==null){for(t=e.child,a=li(t,t.pendingProps),e.child=a,a.return=e;t.sibling!==null;)t=t.sibling,a=a.sibling=li(t,t.pendingProps),a.return=e;a.sibling=null}return e.child}function Mx(t,e){return(t.lanes&e)!==0?!0:(t=t.dependencies,!!(t!==null&&Sp(t)))}function cX(t,e,a){switch(e.tag){case 3:dp(e,e.stateNode.containerInfo),Yi(e,Pt,t.memoizedState.cache),vs();break;case 27:case 5:Wb(e);break;case 4:dp(e,e.stateNode.containerInfo);break;case 10:Yi(e,e.type,e.memoizedProps.value);break;case 31:if(e.memoizedState!==null)return e.flags|=128,p0(e),null;break;case 13:var n=e.memoizedState;if(n!==null){if(n.dehydrated!==null)return ro(e),e.flags|=128,null;n=Cs(t,e,a,!1);var r=e.child.childLanes;return n||(a&r)!==0?nA(t,e,a):(ro(e),t=pi(t,e,a),t!==null?t.sibling:null)}ro(e);break;case 19:if(e.flags&128)return w0(t,e,a);if(r=(t.flags&128)!==0,n=(a&e.childLanes)!==0,n||(Cs(t,e,a,!1),n=(a&e.childLanes)!==0),r){if(n)return w0(t,e,a);e.flags|=128}if(r=e.memoizedState,r!==null&&(r.rendering=null,r.tail=null,r.lastEffect=null),of(e,da.current),n)break;return null;case 22:return e.lanes=0,aA(t,e,a,e.pendingProps);case 24:Yi(e,Pt,t.memoizedState.cache)}return pi(t,e,a)}function rA(t,e,a){if(t!==null)if(t.memoizedProps!==e.pendingProps)Mt=!0;else{if(!Mx(t,a)&&(e.flags&128)===0)return Mt=!1,cX(t,e,a);Mt=(t.flags&131072)!==0}else Mt=!1,_e&&(e.flags&1048576)!==0&&lE(e,af,e.index);switch(e.lanes=0,e.tag){case 16:e:{var n=e.pendingProps;if(t=hs(e.elementType),e.type=t,typeof t=="function")dx(t)?(n=As(t,n),e.tag=1,e=Ak(null,e,t,n,a)):(e.tag=0,e=S0(null,e,t,n,a));else{if(t!=null){var r=t.$$typeof;if(r===J0){e.tag=11,e=Ck(null,e,t,n,a);break e}else if(r===ex){e.tag=14,e=wk(null,e,t,n,a);break e}else if(r===Tr){e.tag=10,e.type=t,e=Ik(null,e,a);break e}}throw e=Vb(t)||t,Error(P(306,e,""))}}return e;case 0:return S0(t,e,e.type,e.pendingProps,a);case 1:return n=e.type,r=As(n,e.pendingProps),Ak(t,e,n,r,a);case 3:e:{if(dp(e,e.stateNode.containerInfo),t===null)throw Error(P(387));n=e.pendingProps;var i=e.memoizedState;r=i.element,f0(t,e),Fc(e,n,null,a);var o=e.memoizedState;if(n=o.cache,Yi(e,Pt,n),n!==i.cache&&u0(e,[Pt],a,!0),Zc(),n=o.element,i.isDehydrated)if(i={element:n,isDehydrated:!1,cache:o.cache},e.updateQueue.baseState=i,e.memoizedState=i,e.flags&256){e=_k(t,e,n,a);break e}else if(n!==r){r=Pn(Error(P(424)),e),nf(r),e=_k(t,e,n,a);break e}else for(t=e.stateNode.containerInfo,t.nodeType===9?t=t.body:t=t.nodeName==="HTML"?t.ownerDocument.body:t,ct=Dn(t.firstChild),Jt=e,_e=!0,to=null,Mn=!0,a=pE(e,null,n,a),e.child=a;a;)a.flags=a.flags&-3|134221824,a=a.sibling;else{if(vs(),n===r){e=pi(t,e,a);break e}zt(t,e,n,a)}e=e.child}return e;case 26:return Rl(t,e),t===null?(a=iL(e.type,null,e.pendingProps,null))?e.memoizedState=a:_e||(e.stateNode=HA(e.type,e.pendingProps,eo.current,e)):e.memoizedState=iL(e.type,t.memoizedProps,e.pendingProps,t.memoizedState),null;case 27:return Wb(e),t===null&&_e&&(n=e.stateNode=n_(e.type,e.pendingProps,eo.current),Jt=e,Mn=!0,r=ct,Oo(e.type)?(V0=r,ct=Dn(n.firstChild)):ct=r),zt(t,e,e.pendingProps.children,a),Rl(t,e),t===null&&(e.flags|=4194304),e.child;case 5:return t===null&&_e&&((r=n=ct)&&(n=aq(n,e.type,e.pendingProps,Mn),n!==null?(e.stateNode=n,Jt=e,ct=Dn(n.firstChild),Mn=!1,r=!0):r=!1),r||fo(e)),Wb(e),r=e.type,i=e.pendingProps,o=t!==null?t.memoizedProps:null,n=i.children,F0(r,i)?n=null:o!==null&&F0(r,o)&&(e.flags|=32),e.memoizedState!==null&&(r=yx(t,e,JU,null,null,a),fu._currentValue=r),Rl(t,e),zt(t,e,n,a),e.child;case 6:return t===null&&_e&&((t=a=ct)&&(a=nq(a,e.pendingProps,Mn),a!==null?(e.stateNode=a,Jt=e,ct=null,t=!0):t=!1),t||fo(e)),null;case 13:return nA(t,e,a);case 4:return dp(e,e.stateNode.containerInfo),n=e.pendingProps,t===null?e.child=Ls(e,null,n,a):zt(t,e,n,a),e.child;case 11:return Ck(t,e,e.type,e.pendingProps,a);case 7:return n=e.pendingProps,Rl(t,e),zt(t,e,n,a),e.child;case 8:return zt(t,e,e.pendingProps.children,a),e.child;case 12:return zt(t,e,e.pendingProps.children,a),e.child;case 10:return Ik(t,e,a);case 9:return r=e.type._context,n=e.pendingProps.children,ws(e),r=ca(r),n=n(r),e.flags|=1,zt(t,e,n,a),e.child;case 14:return wk(t,e,e.type,e.pendingProps,a);case 15:return tA(t,e,e.type,e.pendingProps,a);case 19:return w0(t,e,a);case 31:return lX(t,e,a);case 22:return aA(t,e,a,e.pendingProps);case 24:return ws(e),n=ca(Pt),t===null?(r=mx(),r===null&&(r=rt,i=px(),r.pooledCache=i,i.refCount++,i!==null&&(r.pooledCacheLanes|=a),r=i),e.memoizedState={parent:n,cache:r},Ox(e),Yi(e,Pt,r)):((t.lanes&a)!==0&&(f0(t,e),Fc(e,null,null,a),Zc()),r=t.memoizedState,i=e.memoizedState,r.parent!==n?(r={parent:n,cache:n},e.memoizedState=r,e.lanes===0&&(e.memoizedState=e.updateQueue.baseState=r),Yi(e,Pt,n)):(n=i.cache,Yi(e,Pt,n),n!==r.cache&&u0(e,[Pt],a,!0))),zt(t,e,e.pendingProps.children,a),e.child;case 30:return e.stateNode===null&&(e.stateNode={autoName:null,paired:null,clones:null,ref:null}),n=e.pendingProps,n.name!=null&&n.name!=="auto"?e.flags|=t===null?18882560:18874368:_e&&Hp(e),t!==null&&t.memoizedProps.name!==n.name?e.flags|=4194816:Rl(t,e),zt(t,e,n.children,a),e.child;case 29:throw e.pendingProps}throw Error(P(156,e.tag))}function ii(t){t.flags|=4}function Rb(t,e,a,n,r){var i;if((i=(t.mode&32)!==0)&&(i=a===null?lL(e,n):lL(e,n)&&(n.src!==a.src||n.srcSet!==a.srcSet)),i){if(t.flags|=16777216,(r&335544128)===r)if(t.stateNode.complete)t.flags|=8192;else if(PA())t.flags|=8192;else throw Ss=yp,gx}else t.flags&=-16777217}function Pk(t,e){if(e.type!=="stylesheet"||(e.state.loading&4)!==0)t.flags&=-16777217;else if(t.flags|=16777216,!s_(e))if(PA())t.flags|=8192;else throw Ss=yp,gx}function $h(t,e){e!==null&&(t.flags|=4),t.flags&16384&&(e=t.tag!==22?_L():536870912,t.lanes|=e,iu|=e)}function Rc(t,e){if(!_e)switch(t.tailMode){case"visible":break;case"collapsed":for(var a=t.tail,n=null;a!==null;)a.alternate!==null&&(n=a),a=a.sibling;n===null?e||t.tail===null?t.tail=null:t.tail.sibling=null:n.sibling=null;break;default:for(e=t.tail,a=null;e!==null;)e.alternate!==null&&(a=e),e=e.sibling;a===null?t.tail=null:a.sibling=null}}function ut(t){var e=t.alternate!==null&&t.alternate.child===t.child,a=0,n=0;if(e)for(var r=t.child;r!==null;)a|=r.lanes|r.childLanes,n|=r.subtreeFlags&1206910976,n|=r.flags&1206910976,r.return=t,r=r.sibling;else for(r=t.child;r!==null;)a|=r.lanes|r.childLanes,n|=r.subtreeFlags,n|=r.flags,r.return=t,r=r.sibling;return t.subtreeFlags|=n,t.childLanes=a,e}function fX(t,e,a){var n=e.pendingProps;switch(hx(e),e.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return ut(e),null;case 1:return ut(e),null;case 3:return a=e.stateNode,n=null,t!==null&&(n=t.memoizedState.cache),e.memoizedState.cache!==n&&(e.flags|=2048),ui(Pt),tu(),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),(t===null||t.child===null)&&(Al(e)?ii(e):t===null||t.memoizedState.isDehydrated&&(e.flags&256)===0||(e.flags|=1024,kb())),ut(e),null;case 26:var r=e.type,i=e.memoizedState;return t===null?(ii(e),i!==null?(ut(e),Pk(e,i)):(ut(e),Rb(e,r,null,n,a))):i?i!==t.memoizedState?(ii(e),ut(e),Pk(e,i)):(ut(e),e.flags&=-16777217):(t=t.memoizedProps,t!==n&&ii(e),ut(e),Rb(e,r,t,n,a)),null;case 27:if(hp(e),a=eo.current,r=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==n&&ii(e);else{if(!n){if(e.stateNode===null)throw Error(P(166));return ut(e),e.subtreeFlags&=-33554433,null}t=Dr.current,Al(e)?ok(e,t):(t=n_(r,n,a),e.stateNode=t,ii(e))}return ut(e),e.subtreeFlags&=-33554433,null;case 5:if(hp(e),r=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==n&&ii(e);else{if(!n){if(e.stateNode===null)throw Error(P(166));return ut(e),e.subtreeFlags&=-33554433,null}if(i=Dr.current,Al(e))ok(e,i);else{var o=cf(eo.current);switch(i){case 1:i=o.createElementNS("http://www.w3.org/2000/svg",r);break;case 2:i=o.createElementNS("http://www.w3.org/1998/Math/MathML",r);break;default:switch(r){case"svg":i=o.createElementNS("http://www.w3.org/2000/svg",r);break;case"math":i=o.createElementNS("http://www.w3.org/1998/Math/MathML",r);break;case"script":i=o.createElement("div"),i.innerHTML="<script><\/script>",i=i.removeChild(i.firstChild);break;case"select":i=typeof n.is=="string"?o.createElement("select",{is:n.is}):o.createElement("select"),n.multiple?i.multiple=!0:n.size&&(i.size=n.size);break;default:i=typeof n.is=="string"?o.createElement(r,{is:n.is}):o.createElement(r)}}i[ua]=e,i[Ya]=n;e:for(o=e.child;o!==null;){if(o.tag===5||o.tag===6)i.appendChild(o.stateNode);else if(o.tag!==4&&o.tag!==27&&o.child!==null){o.child.return=o,o=o.child;continue}if(o===e)break e;for(;o.sibling===null;){if(o.return===null||o.return===e)break e;o=o.return}o.sibling.return=o.return,o=o.sibling}e.stateNode=i;e:switch(ha(i,r,n),r){case"button":case"input":case"select":case"textarea":n=!!n.autoFocus;break e;case"img":n=!0;break e;default:n=!1}n&&ii(e)}}return ut(e),e.subtreeFlags&=-33554433,Rb(e,e.type,t===null?null:t.memoizedProps,e.pendingProps,a),null;case 6:if(t&&e.stateNode!=null)t.memoizedProps!==n&&ii(e);else{if(typeof n!="string"&&e.stateNode===null)throw Error(P(166));if(t=eo.current,Al(e)){if(t=e.stateNode,a=e.memoizedProps,n=null,r=Jt,r!==null)switch(r.tag){case 27:case 5:n=r.memoizedProps}t[ua]=e,t=!!(t.nodeValue===a||n!==null&&n.suppressHydrationWarning===!0||FA(t.nodeValue,a)),t||fo(e,!0)}else t=cf(t).createTextNode(n),t[ua]=e,e.stateNode=t}return ut(e),null;case 31:if(a=e.memoizedState,t===null||t.memoizedState!==null){if(n=Al(e),a!==null){if(t===null){if(!n)throw Error(P(318));if(t=e.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(P(557));t[ua]=e}else vs(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;ut(e),t=!1}else a=kb(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=a),t=!0;if(!t)return e.flags&256?(nn(e),e):(nn(e),null);if((e.flags&128)!==0)throw Error(P(558))}return ut(e),null;case 13:if(n=e.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(r=Al(e),n!==null&&n.dehydrated!==null){if(t===null){if(!r)throw Error(P(318));if(r=e.memoizedState,r=r!==null?r.dehydrated:null,!r)throw Error(P(317));r[ua]=e}else vs(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;ut(e),r=!1}else r=kb(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=r),r=!0;if(!r)return e.flags&256?(nn(e),e):(nn(e),null)}return nn(e),(e.flags&128)!==0?(e.lanes=a,e):(a=n!==null,t=t!==null&&t.memoizedState!==null,a&&(n=e.child,r=null,n.alternate!==null&&n.alternate.memoizedState!==null&&n.alternate.memoizedState.cachePool!==null&&(r=n.alternate.memoizedState.cachePool.pool),i=null,n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(i=n.memoizedState.cachePool.pool),i!==r&&(n.flags|=2048)),a!==t&&a&&(e.child.flags|=8192),$h(e,e.updateQueue),ut(e),null);case 4:return tu(),t===null&&qx(e.stateNode.containerInfo),e.flags|=67108864,ut(e),null;case 10:return ui(e.type),ut(e),null;case 19:if(xx(e),n=e.memoizedState,n===null)return ut(e),null;if(r=(e.flags&128)!==0,i=n.rendering,i===null)if(r)Rc(n,!1);else{if(Ct!==0||t!==null&&(t.flags&128)!==0)for(t=e.child;t!==null;){if(i=Cp(t),i!==null){for(e.flags|=128,Rc(n,!1),t=i.updateQueue,e.updateQueue=t,$h(e,t),e.subtreeFlags=0,t=a,a=e.child;a!==null;)oE(a,t),a=a.sibling;return of(e,da.current&1|2),_e&&oi(e,n.treeForkCount),e.child}t=t.sibling}n.tail!==null&&sn()>Pp&&(e.flags|=128,r=!0,Rc(n,!1),e.lanes=4194304)}else{if(!r)if(t=Cp(i),t!==null){if(e.flags|=128,r=!0,t=t.updateQueue,e.updateQueue=t,$h(e,t),Rc(n,!0),n.tail===null&&n.tailMode!=="collapsed"&&n.tailMode!=="visible"&&!i.alternate&&!_e)return ut(e),null}else 2*sn()-n.renderingStartTime>Pp&&a!==536870912&&(e.flags|=128,r=!0,Rc(n,!1),e.lanes=4194304);n.isBackwards?(i.sibling=e.child,e.child=i):(t=n.last,t!==null?t.sibling=i:e.child=i,n.last=i)}if(n.tail!==null){t=n.tail;e:{for(a=t;a!==null;){if(a.alternate!==null){a=!1;break e}a=a.sibling}a=!0}return n.rendering=t,n.tail=t.sibling,n.renderingStartTime=sn(),t.sibling=null,i=da.current,i=r?i&1|2:i&1,n.tailMode==="visible"||n.tailMode==="collapsed"||!a||_e?of(e,i):(a=i,ft(pa,e),ft(da,a),ka===null&&(ka=e)),_e&&oi(e,n.treeForkCount),t}return ut(e),null;case 22:case 23:return nn(e),bx(),n=e.memoizedState!==null,t!==null?t.memoizedState!==null!==n&&(e.flags|=8192):n&&(e.flags|=8192),n?(a&536870912)!==0&&(e.flags&128)===0&&(ut(e),e.subtreeFlags&6&&(e.flags|=8192)):ut(e),a=e.updateQueue,a!==null&&$h(e,a.retryQueue),a=null,t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(a=t.memoizedState.cachePool.pool),n=null,e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),n!==a&&(e.flags|=2048),t!==null&&fa(xs),null;case 24:return a=null,t!==null&&(a=t.memoizedState.cache),e.memoizedState.cache!==a&&(e.flags|=2048),ui(Pt),ut(e),null;case 25:return null;case 30:return e.flags|=33554432,ut(e),null}throw Error(P(156,e.tag))}function dX(t,e){switch(hx(e),e.tag){case 1:return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 3:return ui(Pt),tu(),t=e.flags,(t&65536)!==0&&(t&128)===0?(e.flags=t&-65537|128,e):null;case 26:case 27:case 5:return hp(e),null;case 31:if(e.memoizedState!==null){if(nn(e),e.alternate===null)throw Error(P(340));vs()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 13:if(nn(e),t=e.memoizedState,t!==null&&t.dehydrated!==null){if(e.alternate===null)throw Error(P(340));vs()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 19:return xx(e),t=e.flags,t&65536?(e.flags=t&-65537|128,t=e.memoizedState,t!==null&&(t.rendering=null,t.tail=null),e.flags|=4,e):null;case 4:return tu(),null;case 10:return ui(e.type),null;case 22:case 23:return nn(e),bx(),t!==null&&fa(xs),t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 24:return ui(Pt),null;case 25:return null;default:return null}}function iA(t,e){switch(hx(e),e.tag){case 3:ui(Pt),tu();break;case 26:case 27:case 5:hp(e);break;case 4:tu();break;case 31:e.memoizedState!==null&&nn(e);break;case 13:nn(e);break;case 19:xx(e);break;case 10:ui(e.type);break;case 22:case 23:nn(e),bx(),t!==null&&fa(xs);break;case 24:ui(Pt)}}function Cf(t,e){try{var a=e.updateQueue,n=a!==null?a.lastEffect:null;if(n!==null){var r=n.next;a=r;do{if((a.tag&t)===t){n=void 0;var i=a.create,o=a.inst;n=i(),o.destroy=n}a=a.next}while(a!==r)}}catch(s){Je(e,e.return,s)}}function po(t,e,a){try{var n=e.updateQueue,r=n!==null?n.lastEffect:null;if(r!==null){var i=r.next;n=i;do{if((n.tag&t)===t){var o=n.inst,s=o.destroy;if(s!==void 0){o.destroy=void 0,r=e;var l=a,u=s;try{u()}catch(c){Je(r,l,c)}}}n=n.next}while(n!==i)}}catch(c){Je(e,e.return,c)}}function oA(t){var e=t.updateQueue;if(e!==null){var a=t.stateNode;try{gE(e,a)}catch(n){Je(t,t.return,n)}}}function sA(t,e,a){a.props=As(t.type,t.memoizedProps),a.state=t.memoizedState;try{a.componentWillUnmount()}catch(n){Je(t,e,n)}}function _r(t,e){try{var a=t.ref;if(a!==null){switch(t.tag){case 26:case 27:case 5:var n=t.stateNode;break;case 30:var r=t.stateNode,i=fi(t.memoizedProps,r);(r.ref===null||r.ref.name!==i)&&(r.ref=WA(i)),n=r.ref;break;case 7:if(t.stateNode===null){var o=new dn(t);Va(t.child,!1,eq,o,void 0,void 0),t.stateNode=o}n=t.stateNode;break;default:n=t.stateNode}typeof a=="function"?t.refCleanup=a(n):a.current=n}}catch(s){Je(t,e,s)}}function la(t,e){var a=t.ref,n=t.refCleanup;if(a!==null)if(typeof n=="function")try{n()}catch(r){Je(t,e,r)}finally{t.refCleanup=null,t=t.alternate,t!=null&&(t.refCleanup=null)}else if(typeof a=="function")try{a(null)}catch(r){Je(t,e,r)}else a.current=null}function Ap(t,e){if((t.tag===5||t.tag===27||t.tag===6)&&t.alternate===null&&e!==null)for(var a=0;a<e.length;a++)t_(t.stateNode,e[a])}function Mk(t){for(var e=t.return;e!==null&&(Nx(e)&&t_(t.stateNode,e.stateNode),!Dx(e));)e=e.return}function jc(t){for(var e=t.return;e!==null&&(Nx(e)&&tq(t.stateNode,e.stateNode),!Dx(e));)e=e.return}function Dx(t){return t.tag===5||t.tag===3||t.tag===27}function Nx(t){return t&&t.tag===7&&t.stateNode!==null}function k0(t){var e=t.type,a=t.memoizedProps,n=t.stateNode;try{e:switch(e){case"button":case"input":case"select":case"textarea":a.autoFocus&&n.focus();break e;case"img":a.src?n.src=a.src:a.srcSet&&(n.srcset=a.srcSet)}}catch(r){Je(t,t.return,r)}}function Tb(t,e,a){try{var n=t.stateNode;NX(n,t.type,a,e),n[Ya]=e}catch(r){Je(t,t.return,r)}}function lA(t){return t.tag===5||t.tag===3||t.tag===26||t.tag===27&&Oo(t.type)||t.tag===4}function Ib(t){e:for(;;){for(;t.sibling===null;){if(t.return===null||lA(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==5&&t.tag!==6&&t.tag!==18;){if(t.tag===27&&Oo(t.type)||t.flags&2||t.child===null||t.tag===4)continue e;t.child.return=t,t=t.child}if(!(t.flags&2))return t.stateNode}}function L0(t,e,a,n){var r=t.tag;if(r===5||r===6)r=t.stateNode,e?(a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a).insertBefore(r,e):(e=a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a,e.appendChild(r),a=a._reactRootContainer,a!=null||e.onclick!==null||(e.onclick=Ir)),Ap(t,n),qe=!0;else if(r!==4&&(r===27&&(Ap(t,n),n=null,Oo(t.type)&&(a=t.stateNode,e=null)),t=t.child,t!==null))for(L0(t,e,a,n),t=t.sibling;t!==null;)L0(t,e,a,n),t=t.sibling}function _p(t,e,a,n){var r=t.tag;if(r===5||r===6)r=t.stateNode,e?a.insertBefore(r,e):a.appendChild(r),Ap(t,n),qe=!0;else if(r!==4&&(r===27&&(Ap(t,n),n=null,Oo(t.type)&&(a=t.stateNode)),t=t.child,t!==null))for(_p(t,e,a,n),t=t.sibling;t!==null;)_p(t,e,a,n),t=t.sibling}function uA(t){var e=t.stateNode,a=t.memoizedProps;try{for(var n=t.type,r=e.attributes;r.length;)e.removeAttributeNode(r[0]);ha(e,n,a),e[ua]=t,e[Ya]=a}catch(i){Je(t,t.return,i)}}var Rp=!1,rn=null;function Dk(t){(t.tag===30||(t.subtreeFlags&33554432)!==0)&&(Rp=!0)}var Rr=null;function Nk(){var t=Rr;return Rr=null,t}var Ga=0;function Ou(t,e,a,n,r){return Ga=0,cA(t.child,e,a,n,r)}function cA(t,e,a,n,r){for(var i=!1;t!==null;){if(t.tag===5){var o=t.stateNode;if(n!==null){var s=G0(o);n.push(s),s.view&&(i=!0)}else i||G0(o).view&&(i=!0);Rp=!0,jA(o,Ga===0?e:e+"_"+Ga,a),Ga++}else(t.tag!==22||t.memoizedState===null)&&(t.tag===30&&r||cA(t.child,e,a,n,r)&&(i=!0));t=t.sibling}return i}function Qr(t,e){for(;t!==null;)t.tag===5?VA(t.stateNode,t.memoizedProps):(t.tag!==22||t.memoizedState===null)&&(t.tag===30&&e||Qr(t.child,e)),t=t.sibling}function ap(t){if((t.subtreeFlags&18874368)!==0)for(t=t.child;t!==null;){if((t.tag!==22||t.memoizedState===null)&&(ap(t),t.tag===30&&(t.flags&18874368)!==0&&t.stateNode.paired)){var e=t.memoizedProps;if(e.name==null||e.name==="auto")throw Error(P(544));var a=e.name;e=Oi(e.default,e.share),e!=="none"&&(Ou(t,a,e,null,!1)||Qr(t.child,!1))}t=t.sibling}}function E0(t,e){if(t.tag===30){var a=t.stateNode,n=t.memoizedProps,r=fi(n,a),i=Oi(n.default,a.paired?n.share:n.enter);i!=="none"?Ou(t,r,i,null,!1)?(ap(t),a.paired||e||ou(t,n.onEnter)):Qr(t.child,!1):ap(t)}else if((t.subtreeFlags&33554432)!==0)for(t=t.child;t!==null;)E0(t,e),t=t.sibling;else ap(t)}function A0(t){if(rn!==null&&rn.size!==0){var e=rn;if((t.subtreeFlags&18874368)!==0)for(t=t.child;t!==null;){if(t.tag!==22||t.memoizedState===null){if(t.tag===30&&(t.flags&18874368)!==0){var a=t.memoizedProps,n=a.name;if(n!=null&&n!=="auto"){var r=e.get(n);if(r!==void 0){var i=Oi(a.default,a.share);if(i!=="none"&&(Ou(t,n,i,null,!1)?(i=t.stateNode,r.paired=i,i.paired=r,ou(t,a.onShare)):Qr(t.child,!1)),e.delete(n),e.size===0)break}}}A0(t)}t=t.sibling}}}function _0(t){if(t.tag===30){var e=t.memoizedProps,a=fi(e,t.stateNode),n=rn!==null?rn.get(a):void 0,r=Oi(e.default,n!==void 0?e.share:e.exit);r!=="none"&&(Ou(t,a,r,null,!1)?n!==void 0?(r=t.stateNode,n.paired=r,r.paired=n,rn.delete(a),ou(t,e.onShare)):ou(t,e.onExit):Qr(t.child,!1)),rn!==null&&A0(t)}else if((t.subtreeFlags&33554432)!==0)for(t=t.child;t!==null;)_0(t),t=t.sibling;else rn!==null&&A0(t)}function fA(t){for(t=t.child;t!==null;){if(t.tag===30){var e=t.memoizedProps,a=fi(e,t.stateNode);e=Oi(e.default,e.update),t.flags&=-5,e!=="none"&&Ou(t,a,e,t.memoizedState=[],!1)}else(t.subtreeFlags&33554432)!==0&&fA(t);t=t.sibling}}function R0(t){if((t.subtreeFlags&18874368)!==0)for(t=t.child;t!==null;){if(t.tag!==22||t.memoizedState===null){if(t.tag===30&&(t.flags&18874368)!==0){var e=t.stateNode;e.paired!==null&&(e.paired=null,Qr(t.child,!1))}R0(t)}t=t.sibling}}function np(t){if(t.tag===30)t.stateNode.paired=null,Qr(t.child,!1),R0(t);else if((t.subtreeFlags&33554432)!==0)for(t=t.child;t!==null;)np(t),t=t.sibling;else R0(t)}function dA(t){for(t=t.child;t!==null;)t.tag===30?Qr(t.child,!1):(t.subtreeFlags&33554432)!==0&&dA(t),t=t.sibling}function Qx(t,e,a,n,r,i,o){for(var s=!1;e!==null;){if(e.tag===5){var l=e.stateNode;if(i!==null&&Ga<i.length){var u=i[Ga],c=G0(l);(u.view||c.view)&&(s=!0);var f;if(f=(t.flags&4)===0)if(c.clip)f=!0;else{f=u.rect;var d=c.rect;f=f.y!==d.y||f.x!==d.x||f.height!==d.height||f.width!==d.width}f&&(t.flags|=4),c.abs?c=!u.abs:(u=u.rect,c=c.rect,c=u.height!==c.height||u.width!==c.width),c&&(t.flags|=32)}else t.flags|=32;(t.flags&4)!==0&&jA(l,Ga===0?a:a+"_"+Ga,r),s&&(t.flags&4)!==0||(Rr===null&&(Rr=[]),Rr.push(l,Ga===0?n:n+"_"+Ga,e.memoizedProps)),Ga++}else(e.tag!==22||e.memoizedState===null)&&(e.tag===30&&o?t.flags|=e.flags&32:Qx(t,e.child,a,n,r,i,o)&&(s=!0));e=e.sibling}return s}function hA(t,e){for(t=t.child;t!==null;){if(t.tag===30){var a=t.memoizedProps,n=t.stateNode,r=fi(a,n),i=Oi(a.default,a.update);if(e){n=n.clones;var o=n===null?null:n.map(XX)}else o=t.memoizedState,t.memoizedState=null;n=t;var s=t.child;Ga=0,r=Qx(n,s,r,r,i,o,!1),(t.flags&4)!==0&&r&&(e||ou(t,a.onUpdate))}else(t.subtreeFlags&33554432)!==0&&hA(t,e);t=t.sibling}}var Yt=!1,Ve=!1,Lr=!1,Pb=!1,Qk=typeof WeakSet=="function"?WeakSet:Set,Wt=null,Er=!1,$c=!1,Tp=!1,T0=!1;function hX(t,e,a){if(t=t.containerInfo,q0=du,t=KL(t),ux(t)){if("selectionStart"in t)var n={start:t.selectionStart,end:t.selectionEnd};else e:{n=(n=t.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break e}var s=0,l=-1,u=-1,c=0,f=0,d=t,h=null;t:for(;;){for(var p;d!==n||i!==0&&d.nodeType!==3||(l=s+i),d!==o||r!==0&&d.nodeType!==3||(u=s+r),d.nodeType===3&&(s+=d.nodeValue.length),(p=d.firstChild)!==null;)h=d,d=p;for(;;){if(d===t)break t;if(h===n&&++c===i&&(l=s),h===o&&++f===r&&(u=s),(p=d.nextSibling)!==null)break;d=h,h=d.parentNode}d=p}n=l===-1||u===-1?null:{start:l,end:u}}else n=null}n=n||{start:0,end:0}}else n=null;for(Z0={focusedElem:t,selectionRange:n},du=!1,a=(a&335544064)===a,Wt=e,e=a?9270:1024;Wt!==null;){if(t=Wt,a&&(n=t.deletions,n!==null))for(i=0;i<n.length;i++)a&&_0(n[i]);if(t.alternate===null&&(t.flags&2)!==0)a&&Dk(t),Bh(a);else{if(t.tag===22){if(n=t.alternate,t.memoizedState!==null){n!==null&&n.memoizedState===null&&a&&_0(n),Bh(a);continue}else if(n!==null&&n.memoizedState!==null){a&&Dk(t),Bh(a);continue}}n=t.child,(t.subtreeFlags&e)!==0&&n!==null?(n.return=t,Wt=n):(a&&fA(t),Bh(a))}}rn=null}function Bh(t){for(;Wt!==null;){var e=Wt,a=t,n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 15:break;case 1:if((r&1024)!==0&&n!==null){a=void 0,r=n.memoizedProps,n=n.memoizedState;var i=e.stateNode;try{var o=As(e.type,r);a=i.getSnapshotBeforeUpdate(o,n),i.__reactInternalSnapshotBeforeUpdate=a}catch(s){Je(e,e.return,s)}}break;case 3:if((r&1024)!==0){if(n=e.stateNode.containerInfo,a=n.nodeType,a===9)H0(n);else if(a===1)switch(n.nodeName){case"HEAD":case"HTML":case"BODY":H0(n);break;default:n.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;case 30:a&&n!==null&&(a=fi(n.memoizedProps,n.stateNode),r=e.memoizedProps,r=Oi(r.default,r.update),r!=="none"&&Ou(n,a,r,n.memoizedState=[],!0));break;default:if((r&1024)!==0)throw Error(P(163))}if(n=e.sibling,n!==null){n.return=e.return,Wt=n;break}Wt=e.return}}function pA(t,e,a){var n=a.flags;switch(a.tag){case 0:case 11:case 15:Ar(t,a),n&4&&Cf(5,a);break;case 1:if(Ar(t,a),n&4)if(t=a.stateNode,e===null)try{t.componentDidMount()}catch(o){Je(a,a.return,o)}else{var r=As(a.type,e.memoizedProps);e=e.memoizedState;try{t.componentDidUpdate(r,e,t.__reactInternalSnapshotBeforeUpdate)}catch(o){Je(a,a.return,o)}}n&64&&oA(a),n&512&&_r(a,a.return);break;case 3:if(Ar(t,a),n&64&&(t=a.updateQueue,t!==null)){if(e=null,a.child!==null)switch(a.child.tag){case 27:case 5:e=a.child.stateNode;break;case 1:e=a.child.stateNode}try{gE(t,e)}catch(o){Je(a,a.return,o)}}break;case 27:e===null&&n&4&&uA(a);case 26:case 5:Ar(t,a),e===null&&n&4&&k0(a),n&512&&_r(a,a.return);break;case 12:Ar(t,a);break;case 31:Ar(t,a),n&4&&bA(t,a);break;case 13:Ar(t,a),n&4&&xA(t,a),n&64&&(t=a.memoizedState,t!==null&&(t=t.dehydrated,t!==null&&(a=kX.bind(null,a),rq(t,a))));break;case 22:if(n=a.memoizedState!==null||Yt,!n){var i=e!==null&&e.memoizedState!==null||Ve;e=Yt,r=Ve,Yt=n,(Ve=i)&&!r?(n=2,(a.subtreeFlags&8772)!==0&&(n|=1),rr(t,a,n)):Ar(t,a),Yt=e,Ve=r}break;case 30:Ar(t,a),n&512&&_r(a,a.return);break;case 7:n&512&&_r(a,a.return);default:Ar(t,a)}}function I0(t,e){for(t=t.child;t!==null;)mA(t,e),t=t.sibling}function mA(t,e){switch(t.tag){case 5:case 26:try{var a=t.stateNode;if(e){var n=a.style;typeof n.setProperty=="function"?n.setProperty("display","none","important"):n.display="none"}else{var r=t.stateNode,i=t.memoizedProps.style,o=i!=null&&i.hasOwnProperty("display")?i.display:null;r.style.display=o==null||typeof o=="boolean"?"":(""+o).trim()}}catch(l){Je(t,t.return,l)}P0(t,e);break;case 6:try{t.stateNode.nodeValue=e?"":t.memoizedProps,qe=!0}catch(l){Je(t,t.return,l)}break;case 18:try{var s=t.stateNode;e?Jk(s,!0):Jk(t.stateNode,!1)}catch(l){Je(t,t.return,l)}break;case 22:case 23:t.memoizedState===null&&I0(t,e);break;default:I0(t,e)}}function P0(t,e){if(t.subtreeFlags&67108864)for(t=t.child;t!==null;){e:{var a=t,n=e;switch(a.tag){case 4:mA(a,n);break e;case 22:a.memoizedState===null&&P0(a,n);break e;default:P0(a,n)}}t=t.sibling}}function gA(t){var e=t.alternate;e!==null&&(t.alternate=null,gA(e)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(e=t.stateNode,e!==null&&Up(e)),t.stateNode=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}var Ot=null,Za=!1;function nr(t,e,a){for(a=a.child;a!==null;)OA(t,e,a),a=a.sibling}function OA(t,e,a){if(ln&&typeof ln.onCommitFiberUnmount=="function")try{ln.onCommitFiberUnmount(gf,a)}catch{}switch(a.tag){case 26:Ve||la(a,e),nr(t,e,a),a.memoizedState?a.memoizedState.count--:a.stateNode&&!Ve&&(a=a.stateNode,a.parentNode.removeChild(a));break;case 27:Ve||la(a,e),jc(a);var n=Ot,r=Za;Oo(a.type)&&(Ot=a.stateNode,Za=!1),nr(t,e,a),r_(a.stateNode,a.type,a.memoizedProps),Ot=n,Za=r;break;case 5:Ve||la(a,e),jc(a);case 6:if(a.tag===6&&jc(a),n=Ot,r=Za,Ot=null,nr(t,e,a),Ot=n,Za=r,Ot!==null)if(Za)try{(Ot.nodeType===9?Ot.body:Ot.nodeName==="HTML"?Ot.ownerDocument.body:Ot).removeChild(a.stateNode),qe=!0}catch(i){Je(a,e,i)}else try{Ot.removeChild(a.stateNode),qe=!0}catch(i){Je(a,e,i)}break;case 18:Ot!==null&&(Za?(t=Ot,Kk(t.nodeType===9?t.body:t.nodeName==="HTML"?t.ownerDocument.body:t,a.stateNode),hu(t)):Kk(Ot,a.stateNode));break;case 4:n=Ot,r=Za,Ot=a.stateNode.containerInfo,Za=!0,nr(t,e,a),Ot=n,Za=r;break;case 0:case 11:case 14:case 15:po(2,a,e),Ve||po(4,a,e),nr(t,e,a);break;case 1:Ve||(la(a,e),n=a.stateNode,typeof n.componentWillUnmount=="function"&&sA(a,e,n)),nr(t,e,a);break;case 21:nr(t,e,a);break;case 22:Ve=(n=Ve)||a.memoizedState!==null,nr(t,e,a),Ve=n;break;case 30:la(a,e),nr(t,e,a);break;case 7:Ve||la(a,e),nr(t,e,a);break;default:nr(t,e,a)}}function bA(t,e){if(e.memoizedState===null&&(t=e.alternate,t!==null&&(t=t.memoizedState,t!==null))){t=t.dehydrated;try{hu(t)}catch(a){Je(e,e.return,a)}}}function xA(t,e){if(e.memoizedState===null&&(t=e.alternate,t!==null&&(t=t.memoizedState,t!==null&&(t=t.dehydrated,t!==null))))try{hu(t)}catch(a){Je(e,e.return,a)}}function pX(t){switch(t.tag){case 31:case 13:case 19:var e=t.stateNode;return e===null&&(e=t.stateNode=new Qk),e;case 22:return t=t.stateNode,e=t._retryCache,e===null&&(e=t._retryCache=new Qk),e;default:throw Error(P(435,t.tag))}}function zh(t,e){var a=pX(t);e.forEach(function(n){if(!a.has(n)){a.add(n);var r=LX.bind(null,t,n);n.then(r,r)}})}function Ra(t,e,a){var n=e.deletions;if(n!==null)for(var r=0;r<n.length;r++){var i=n[r],o=t,s=e,l=s;e:for(;l!==null;){switch(l.tag){case 27:if(Oo(l.type)){Ot=l.stateNode,Za=!1;break e}break;case 5:Ot=l.stateNode,Za=!1;break e;case 3:case 4:Ot=l.stateNode.containerInfo,Za=!0;break e}l=l.return}if(Ot===null)throw Error(P(160));OA(o,s,i),Ot=null,Za=!1,o=i.alternate,o!==null&&(o.return=null),i.return=null}if(e.subtreeFlags&13886)for(e=e.child;e!==null;)SA(e,t,a),e=e.sibling}var ir=null;function SA(t,e,a){var n=t.alternate,r=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:if(r&4&&(n=t.updateQueue,n=n!==null?n.events:null,n!==null))for(var i=0;i<n.length;i++){var o=n[i];o.ref.impl=o.nextImpl}Ra(e,t,a),Ta(t),r&4&&(po(3,t,t.return),Cf(3,t),po(5,t,t.return));break;case 1:Ra(e,t,a),Ta(t),r&512&&(Ve||n===null||la(n,n.return)),r&64&&Yt&&(t=t.updateQueue,t!==null&&(e=t.callbacks,e!==null&&(a=t.shared.hiddenCallbacks,t.shared.hiddenCallbacks=a===null?e:a.concat(e))));break;case 26:if(i=ir,Ra(e,t,a),Ta(t),r&512&&(Ve||n===null||la(n,n.return)),r&4)if(r=n!==null?n.memoizedState:null,a=t.memoizedState,n===null)if(a===null)if(t.stateNode===null)if(Yt)t.stateNode=HA(t.type,t.memoizedProps,e.containerInfo,t);else{e:{e=t.type,a=t.memoizedProps,r=i.ownerDocument||i;t:switch(e){case"title":n=r.getElementsByTagName("title")[0],(!n||n[xf]||n[ua]||n.namespaceURI==="http://www.w3.org/2000/svg"||n.hasAttribute("itemprop"))&&(n=r.createElement(e),r.head.insertBefore(n,r.querySelector("head > title"))),ha(n,e,a),n[ua]=t,Kt(n),e=n;break e;case"link":if(i=sL("link","href",r).get(e+(a.href||""))){for(o=0;o<i.length;o++)if(n=i[o],n.getAttribute("href")===(a.href==null||a.href===""?null:a.href)&&n.getAttribute("rel")===(a.rel==null?null:a.rel)&&n.getAttribute("title")===(a.title==null?null:a.title)&&n.getAttribute("crossorigin")===(a.crossOrigin==null?null:a.crossOrigin)){i.splice(o,1);break t}}n=r.createElement(e),ha(n,e,a),r.head.appendChild(n);break;case"meta":if(i=sL("meta","content",r).get(e+(a.content||""))){for(o=0;o<i.length;o++)if(n=i[o],n.getAttribute("content")===(a.content==null?null:""+a.content)&&n.getAttribute("name")===(a.name==null?null:a.name)&&n.getAttribute("property")===(a.property==null?null:a.property)&&n.getAttribute("http-equiv")===(a.httpEquiv==null?null:a.httpEquiv)&&n.getAttribute("charset")===(a.charSet==null?null:a.charSet)){i.splice(o,1);break t}}n=r.createElement(e),ha(n,e,a),r.head.appendChild(n);break;default:throw Error(P(468,e))}n[ua]=t,Kt(n),e=n}t.stateNode=e}else Yt||Y0(i,t.type,t.stateNode);else t.stateNode=oL(i,a,t.memoizedProps);else r!==a?(r===null?(e=n.stateNode,e===null||Ve||e.parentNode.removeChild(e)):r.count--,a===null?Yt||Y0(i,t.type,t.stateNode):oL(i,a,t.memoizedProps)):a===null&&t.stateNode!==null&&Tb(t,t.memoizedProps,n.memoizedProps);break;case 27:Ra(e,t,a),Ta(t),r&512&&(Ve||n===null||la(n,n.return)),n!==null&&r&4&&Tb(t,t.memoizedProps,n.memoizedProps);break;case 5:if(i=Lr,Lr=!1,Ra(e,t,a),Lr=i,Ta(t),r&512&&(Ve||n===null||la(n,n.return)),t.flags&32){e=t.stateNode;try{nu(e,""),qe=!0}catch(c){Je(t,t.return,c)}}r&4&&t.stateNode!=null&&(e=t.memoizedProps,Tb(t,e,n!==null?n.memoizedProps:e)),r&1024&&(Pb=!0);break;case 6:if(Ra(e,t,a),Ta(t),r&4){if(t.stateNode===null)throw Error(P(162));e=t.memoizedProps,a=t.stateNode;try{a.nodeValue=e,qe=!0}catch(c){Je(t,t.return,c)}}break;case 3:if(qe=!1,sp=null,i=ir,ir=ff(e.containerInfo),Ra(e,t,a),ir=i,Ta(t),r&4&&n!==null&&n.memoizedState.isDehydrated)try{hu(e.containerInfo)}catch(c){Je(t,t.return,c)}Pb&&(Pb=!1,yA(t)),qe=!1;break;case 4:r=Lr,Lr=Yt,n=qw(),i=ir,ir=ff(t.stateNode.containerInfo),Ra(e,t,a),Ta(t),ir=i,qe&&$c&&(Tp=!0),qe=n,Lr=r;break;case 12:Ra(e,t,a),Ta(t);break;case 31:Ra(e,t,a),Ta(t),r&4&&(e=t.updateQueue,e!==null&&(t.updateQueue=null,zh(t,e)));break;case 13:Ra(e,t,a),Ta(t),t.child.flags&8192&&t.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(em=sn()),r&4&&(e=t.updateQueue,e!==null&&(t.updateQueue=null,zh(t,e)));break;case 22:i=t.memoizedState!==null,o=n!==null&&n.memoizedState!==null;var s=Yt,l=Ve,u=Lr;Yt=s||i,Lr=u||i,Ve=l||o,Ra(e,t,a),Ve=l,Lr=u,Yt=s,Ta(t),r&8192&&(e=t.stateNode,e._visibility=i?e._visibility&-2:e._visibility|1,!i||n===null||o||Yt||Ve||(e=o||Ve,a=Yt,n=Ve,Yt=i||Yt,Ve=e,Zi(t,2),Yt=a,Ve=n),!i&&Lr||I0(t,i)),r&4&&(e=t.updateQueue,e!==null&&(a=e.retryQueue,a!==null&&(e.retryQueue=null,zh(t,a))));break;case 19:Ra(e,t,a),Ta(t),r&4&&(e=t.updateQueue,e!==null&&(t.updateQueue=null,zh(t,e)));break;case 30:r&512&&(Ve||n===null||la(n,n.return)),r=qw(),i=$c,o=(a&335544064)===a,s=t.memoizedProps,$c=o&&Oi(s.default,s.update)!=="none",Ra(e,t,a),Ta(t),o&&n!==null&&qe&&(t.flags|=4),$c=i,qe=r;break;case 21:break;case 7:r&512&&(Ve||n===null||la(n,n.return)),n&&n.stateNode!==null&&(n.stateNode._fragmentFiber=t);default:Ra(e,t,a),Ta(t)}}function Ta(t){var e=t.flags;if(e&2){try{for(var a,n=t.return;n!==null;){if(lA(n)){a=n;break}n=n.return}n=null;for(var r=t.return;r!==null;){if(Nx(r)){var i=r.stateNode;n===null?n=[i]:n.push(i)}if(Dx(r))break;r=r.return}var o=n;if(a==null)throw Error(P(160));switch(a.tag){case 27:var s=a.stateNode,l=Ib(t);_p(t,l,s,o);break;case 5:var u=a.stateNode;a.flags&32&&(nu(u,""),a.flags&=-33);var c=Ib(t);_p(t,c,u,o);break;case 3:case 4:var f=a.stateNode.containerInfo,d=Ib(t);L0(t,d,f,o);break;default:throw Error(P(161))}}catch(h){Je(t,t.return,h)}t.flags&=-3}e&4096&&(t.flags&=-4097)}function yA(t){if(t.subtreeFlags&1024)for(t=t.child;t!==null;){var e=t;yA(e),e.tag===5&&e.flags&1024&&(e=e.stateNode,du=!0,e.reset(),du=!1),t=t.sibling}}function _l(t,e){if(e.subtreeFlags&9270)for(e=e.child;e!==null;)vA(e,t),e=e.sibling;else hA(e,!1)}function vA(t,e){var a=t.alternate;if(a===null)E0(t,!1);else switch(t.tag){case 3:if(T0=Er=!1,Nk(),_l(e,t),!Er&&!Tp){if(t=Rr,t!==null)for(var n=0;n<t.length;n+=3){a=t[n];var r=t[n+1];VA(a,t[n+2]),a=a.ownerDocument.documentElement,a!==null&&a.animate({opacity:[0,0],pointerEvents:["none","none"]},{duration:0,fill:"forwards",pseudoElement:"::view-transition-group("+r+")"})}t=e.containerInfo,t=t.nodeType===9?t.documentElement:t.ownerDocument.documentElement,t!==null&&t.style.viewTransitionName===""&&(t.style.viewTransitionName="none",t.animate({opacity:[0,0],pointerEvents:["none","none"]},{duration:0,fill:"forwards",pseudoElement:"::view-transition-group(root)"}),t.animate({width:[0,0],height:[0,0]},{duration:0,fill:"forwards",pseudoElement:"::view-transition"})),T0=!0}Rr=null;break;case 5:_l(e,t);break;case 4:n=Er,Er=!1,_l(e,t),Er&&(Tp=!0),Er=n;break;case 22:t.memoizedState===null&&(a.memoizedState!==null?E0(t,!1):_l(e,t));break;case 30:n=Er,r=Nk(),Er=!1,_l(e,t),Er&&(t.flags|=4);var i=t.memoizedProps,o=t.stateNode;e=fi(i,o),o=fi(a.memoizedProps,o);var s=Oi(i.default,i.update);s==="none"?e=!1:(i=a.memoizedState,a.memoizedState=null,a=t.child,Ga=0,e=Qx(t,a,e,o,s,i,!0),Ga!==(i===null?0:i.length)&&(t.flags|=32)),(t.flags&4)!==0&&e?(ou(t,t.memoizedProps.onUpdate),Rr=r):r!==null&&(r.push.apply(r,Rr),Rr=r),Er=(t.flags&32)!==0?!0:n;break;default:_l(e,t)}}function Ar(t,e){if(e.subtreeFlags&8772)for(e=e.child;e!==null;)pA(t,e.alternate,e),e=e.sibling}function Zi(t,e){for(t=t.child;t!==null;){var a=t,n=e;switch(a.tag){case 0:case 11:case 14:case 15:po(4,a,a.return),Zi(a,n);break;case 1:la(a,a.return);var r=a.stateNode;typeof r.componentWillUnmount=="function"&&sA(a,a.return,r),Zi(a,n);break;case 27:(n&2)!==0&&r_(a.stateNode,a.type,a.memoizedProps);case 5:la(a,a.return),a.tag!==5&&a.tag!==27||jc(a),Zi(a,n);break;case 6:jc(a);break;case 26:la(a,a.return),r=a.stateNode,a.memoizedState!==null||r===null||Ve||r.parentNode.removeChild(r),Zi(a,n);break;case 22:a.memoizedState===null&&Zi(a,n);break;case 30:la(a,a.return),Zi(a,n);break;case 7:la(a,a.return);default:Zi(a,n)}t=t.sibling}}function rr(t,e,a){for(a=(e.subtreeFlags&8772)!==0?a:a&-2,e=e.child;e!==null;){var n=e.alternate,r=t,i=e,o=i.flags,s=(a&1)!==0;switch(i.tag){case 0:case 11:case 15:rr(r,i,a),Cf(4,i);break;case 1:if(rr(r,i,a),n=i,r=n.stateNode,typeof r.componentDidMount=="function")try{r.componentDidMount()}catch(c){Je(n,n.return,c)}if(n=i,r=n.updateQueue,r!==null){var l=n.stateNode;try{var u=r.shared.hiddenCallbacks;if(u!==null)for(r.shared.hiddenCallbacks=null,r=0;r<u.length;r++)mE(u[r],l)}catch(c){Je(n,n.return,c)}}s&&o&64&&oA(i),_r(i,i.return);break;case 27:(a&2)!==0&&uA(i);case 5:i.tag!==5&&i.tag!==27||Mk(i),rr(r,i,a),s&&n===null&&o&4&&k0(i),_r(i,i.return);break;case 6:Mk(i);break;case 26:l=i.stateNode,i.memoizedState!==null||l===null||Yt||Y0(ff(l.ownerDocument),i.type,l),rr(r,i,a),s&&n===null&&o&4&&k0(i),_r(i,i.return);break;case 12:rr(r,i,a);break;case 31:rr(r,i,a),s&&o&4&&bA(r,i);break;case 13:rr(r,i,a),s&&o&4&&xA(r,i);break;case 22:i.memoizedState===null&&rr(r,i,a),_r(i,i.return);break;case 30:rr(r,i,a),_r(i,i.return);break;case 7:_r(i,i.return);default:rr(r,i,a)}e=e.sibling}}function $x(t,e){var a=null;t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(a=t.memoizedState.cachePool.pool),t=null,e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(t=e.memoizedState.cachePool.pool),t!==a&&(t!=null&&t.refCount++,a!=null&&yf(a))}function Bx(t,e){t=null,e.alternate!==null&&(t=e.alternate.memoizedState.cache),e=e.memoizedState.cache,e!==t&&(e.refCount++,t!=null&&yf(t))}function An(t,e,a,n){var r=(a&335544064)===a;if(e.subtreeFlags&(r?10262:10256))for(e=e.child;e!==null;)CA(t,e,a,n),e=e.sibling;else r&&dA(e)}function CA(t,e,a,n){var r=(a&335544064)===a;r&&e.alternate===null&&e.return!==null&&e.return.alternate!==null&&np(e);var i=e.flags;switch(e.tag){case 0:case 11:case 15:An(t,e,a,n),i&2048&&Cf(9,e);break;case 1:An(t,e,a,n);break;case 3:An(t,e,a,n),r&&T0&&(t=t.containerInfo,t=t.nodeType===9?t.body:t.nodeName==="HTML"?t.ownerDocument.body:t,t.style.viewTransitionName==="root"&&(t.style.viewTransitionName=""),t=t.ownerDocument.documentElement,t!==null&&t.style.viewTransitionName==="none"&&(t.style.viewTransitionName="")),i&2048&&(i=null,e.alternate!==null&&(i=e.alternate.memoizedState.cache),e=e.memoizedState.cache,e!==i&&(e.refCount++,i!=null&&yf(i)));break;case 12:if(i&2048){An(t,e,a,n),i=e.stateNode;try{var o=e.memoizedProps,s=o.id,l=o.onPostCommit;typeof l=="function"&&l(s,e.alternate===null?"mount":"update",i.passiveEffectDuration,-0)}catch(u){Je(e,e.return,u)}}else An(t,e,a,n);break;case 31:An(t,e,a,n);break;case 13:An(t,e,a,n);break;case 23:break;case 22:o=e.stateNode,s=e.alternate,e.memoizedState!==null?(r&&s!==null&&s.memoizedState===null&&np(s),o._visibility&2?An(t,e,a,n):Vc(t,e)):(r&&s!==null&&s.memoizedState!==null&&np(e),o._visibility&2?An(t,e,a,n):(o._visibility|=2,Tl(t,e,a,n,(e.subtreeFlags&10256)!==0||!1))),i&2048&&$x(s,e);break;case 24:An(t,e,a,n),i&2048&&Bx(e.alternate,e);break;case 30:r&&(i=e.alternate,i!==null&&(Qr(i.child,!0),Qr(e.child,!0))),An(t,e,a,n);break;default:An(t,e,a,n)}}function Tl(t,e,a,n,r){for(r=r&&((e.subtreeFlags&10256)!==0||!1),e=e.child;e!==null;){var i=t,o=e,s=a,l=n,u=o.flags;switch(o.tag){case 0:case 11:case 15:Tl(i,o,s,l,r),Cf(8,o);break;case 23:break;case 22:var c=o.stateNode;o.memoizedState!==null?c._visibility&2?Tl(i,o,s,l,r):Vc(i,o):(c._visibility|=2,Tl(i,o,s,l,r)),r&&u&2048&&$x(o.alternate,o);break;case 24:Tl(i,o,s,l,r),r&&u&2048&&Bx(o.alternate,o);break;default:Tl(i,o,s,l,r)}e=e.sibling}}function Vc(t,e){if(e.subtreeFlags&10256)for(e=e.child;e!==null;){var a=t,n=e,r=n.flags;switch(n.tag){case 22:Vc(a,n),r&2048&&$x(n.alternate,n);break;case 24:Vc(a,n),r&2048&&Bx(n.alternate,n);break;default:Vc(a,n)}e=e.sibling}}var ps=8192;function fs(t,e,a){if(t.subtreeFlags&ps)for(t=t.child;t!==null;)wA(t,e,a),t=t.sibling}function wA(t,e,a){switch(t.tag){case 26:fs(t,e,a),t.flags&ps&&(t.memoizedState!==null?bq(a,ir,t.memoizedState,t.memoizedProps):(t=t.stateNode,(e&335544128)===e&&uL(a,t)));break;case 5:fs(t,e,a),t.flags&ps&&(t=t.stateNode,(e&335544128)===e&&uL(a,t));break;case 3:case 4:var n=ir;ir=ff(t.stateNode.containerInfo),fs(t,e,a),ir=n;break;case 22:t.memoizedState===null&&(n=t.alternate,n!==null&&n.memoizedState!==null?(n=ps,ps=16777216,fs(t,e,a),ps=n):fs(t,e,a));break;case 30:if((t.flags&ps)!==0&&(n=t.memoizedProps.name,n!=null&&n!=="auto")){var r=t.stateNode;r.paired=null,rn===null&&(rn=new Map),rn.set(n,r)}fs(t,e,a);break;default:fs(t,e,a)}}function kA(t){var e=t.alternate;if(e!==null&&(t=e.child,t!==null)){e.child=null;do e=t.sibling,t.sibling=null,t=e;while(t!==null)}}function Tc(t){var e=t.deletions;if((t.flags&16)!==0){if(e!==null)for(var a=0;a<e.length;a++){var n=e[a];Wt=n,EA(n,t)}kA(t)}if(t.subtreeFlags&10256)for(t=t.child;t!==null;)LA(t),t=t.sibling}function LA(t){switch(t.tag){case 0:case 11:case 15:Tc(t),t.flags&2048&&po(9,t,t.return);break;case 3:Tc(t);break;case 12:Tc(t);break;case 22:var e=t.stateNode;t.memoizedState!==null&&e._visibility&2&&(t.return===null||t.return.tag!==13)?(e._visibility&=-3,rp(t)):Tc(t);break;default:Tc(t)}}function rp(t){var e=t.deletions;if((t.flags&16)!==0){if(e!==null)for(var a=0;a<e.length;a++){var n=e[a];Wt=n,EA(n,t)}kA(t)}for(t=t.child;t!==null;){switch(e=t,e.tag){case 0:case 11:case 15:po(8,e,e.return),rp(e);break;case 22:a=e.stateNode,a._visibility&2&&(a._visibility&=-3,rp(e));break;default:rp(e)}t=t.sibling}}function EA(t,e){for(;Wt!==null;){var a=Wt;switch(a.tag){case 0:case 11:case 15:po(8,a,e);break;case 23:case 22:if(a.memoizedState!==null&&a.memoizedState.cachePool!==null){var n=a.memoizedState.cachePool.pool;n!=null&&n.refCount++}break;case 24:yf(a.memoizedState.cache)}if(n=a.child,n!==null)n.return=a,Wt=n;else e:for(a=t;Wt!==null;){n=Wt;var r=n.sibling,i=n.return;if(gA(n),n===a){Wt=null;break e}if(r!==null){r.return=i,Wt=r;break e}Wt=i}}}var mX={getCacheForType:function(t){var e=ca(Pt),a=e.data.get(t);return a===void 0&&(a=t(),e.data.set(t,a)),a},cacheSignal:function(){return ca(Pt).controller.signal}},gX=typeof WeakMap=="function"?WeakMap:Map,Ge=0,rt=null,Pe=null,De=0,We=0,tn=null,Wi=!1,bu=!1,zx=!1,mi=0,Ct=0,mo=0,ys=0,Ip=0,on=0,iu=0,Yc=null,Fa=null,M0=!1,em=0,AA=0,Pp=1/0,Mp=null,oo=null,yt=0,sr=null,_s=null,Nr=0,D0=0,N0=null,_A=null,Kl=null,Jl=null,eu=null,Wc=0,ip=null;function cn(){return(Ge&2)!==0&&De!==0?De&-De:xe.T!==null?Xx():PL()}function RA(){if(on===0)if((De&536870912)===0||_e){var t=Eh;Eh<<=1,(Eh&3932160)===0&&(Eh=262144),on=t}else on=536870912;return t=pa.current,t!==null&&(t.flags|=32),on}function ou(t,e){if(e!=null){var a=t.stateNode,n=a.ref;n===null&&(n=a.ref=WA(fi(t.memoizedProps,a))),Jl===null&&(Jl=[]),Jl.push(e.bind(null,n))}}function ja(t,e,a){(t===rt&&(We===2||We===9)||t.cancelPendingCommit!==null)&&(su(t,0),Ki(t,De,on,!1)),bf(t,a),((Ge&2)===0||t!==rt)&&(t===rt&&((Ge&2)===0&&(ys|=a),Ct===4&&Ki(t,De,on,!1)),Br(t))}function TA(t,e,a){if((Ge&6)!==0)throw Error(P(327));var n=!a&&(e&127)===0&&(e&t.expiredLanes)===0||Of(t,e),r=n?xX(t,e):Mb(t,e,!0),i=n;do{if(r===0){bu&&!n&&Ki(t,e,0,!1);break}else{if(a=t.current.alternate,i&&!OX(a)){r=Mb(t,e,!1),i=!1;continue}if(r===2){if(i=e,t.errorRecoveryDisabledLanes&i)var o=0;else o=t.pendingLanes&-536870913,o=o!==0?o:o&536870912?536870912:0;if(o!==0){e=o;e:{var s=t;r=Yc;var l=s.current.memoizedState.isDehydrated;if(l&&(su(s,o).flags|=256),o=Mb(s,o,!1),o!==2&&o!==6){if(zx&&!l){s.errorRecoveryDisabledLanes|=i,ys|=i,r=4;break e}i=Fa,Fa=r,i!==null&&(Fa===null?Fa=i:Fa.push.apply(Fa,i))}r=o}if(i=!1,r!==2)continue}}if(r===1){su(t,0),Ki(t,e,0,!0);break}e:{switch(n=t,i=r,i){case 0:case 1:throw Error(P(345));case 4:if((e&4194048)!==e&&(e&62914560)!==e)break;case 6:Ki(n,e,on,!Wi);break e;case 2:Fa=null;break;case 3:case 5:break;default:throw Error(P(329))}if((e&62914560)===e&&(r=em+300-sn(),10<r)){if(Ki(n,e,on,!Wi),zp(n,0,!0)!==0)break e;Nr=e,n.timeoutHandle=Zx($k.bind(null,n,a,Fa,Mp,M0,e,on,ys,iu,Wi,i,"Throttled",-0,0),r);break e}$k(n,a,Fa,Mp,M0,e,on,ys,iu,Wi,i,null,-0,0)}}break}while(!0);Br(t)}function $k(t,e,a,n,r,i,o,s,l,u,c,f,d,h){t.timeoutHandle=-1;var p=e.subtreeFlags,g=(i&335544064)===i;if(f=null,(g||p&8192||(p&16785408)===16785408)&&(f={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Ir},rn=null,wA(e,i,f),g&&(p=f,g=t.containerInfo,g=(g.nodeType===9?g:g.ownerDocument).__reactViewTransition,g!=null&&(p.count++,p.waitingForViewTransition=!0,p=df.bind(p),g.finished.then(p,p))),p=(i&62914560)===i?em-sn():(i&4194048)===i?AA-sn():0,p=xq(f,p),p!==null)){Nr=i,t.cancelPendingCommit=p(zk.bind(null,t,e,i,a,n,r,o,s,l,u,c,f,null,d,h)),Ki(t,i,o,!u);return}zk(t,e,i,a,n,r,o,s,l,u,c,f)}function OX(t){for(var e=t;;){var a=e.tag;if((a===0||a===11||a===15)&&e.flags&16384&&(a=e.updateQueue,a!==null&&(a=a.stores,a!==null)))for(var n=0;n<a.length;n++){var r=a[n],i=r.getSnapshot;r=r.value;try{if(!fn(i(),r))return!1}catch{return!1}}if(a=e.child,e.subtreeFlags&16384&&a!==null)a.return=e,e=a;else{if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return!0;e=e.return}e.sibling.return=e.return,e=e.sibling}}return!0}function Ki(t,e,a,n){e=AL(t,e),e&=~Ip,e&=~ys,t.suspendedLanes|=e,t.pingedLanes&=~e,n&&(t.warmLanes|=e),n=t.expirationTimes;for(var r=e;0<r;){var i=31-un(r),o=1<<i;n[i]=-1,r&=~o}a!==0&&RL(t,a,e)}function tm(){return(Ge&6)===0?(wf(0,!1),!1):!0}function Ux(){if(Pe!==null){if(We===0)var t=Pe.return;else t=Pe,si=Ms=null,wx(t),Vl=null,rf=0,t=Pe;for(;t!==null;)iA(t.alternate,t),t=t.return;Pe=null}}function su(t,e){var a=t.timeoutHandle;return a!==-1&&(t.timeoutHandle=-1,BX(a)),a=t.cancelPendingCommit,a!==null&&(t.cancelPendingCommit=null,a()),Nr=0,Ux(),rt=t,Pe=a=li(t.current,null),De=e,We=0,tn=null,Wi=!1,bu=Of(t,e),zx=!1,iu=on=Ip=ys=mo=Ct=0,Fa=Yc=null,M0=!1,mi=AL(t,e),Fp(),a}function IA(t,e){ke=null,xe.H=Lp,e===gu||e===jp?(e=fk(),We=3):e===gx?(e=fk(),We=4):We=e===Ix?8:e!==null&&typeof e=="object"&&typeof e.then=="function"?6:1,tn=e,Pe===null&&(Ct=1,Ep(t,Pn(e,t.current)))}function PA(){var t=pa.current;return t===null?!0:(De&4194048)===De?ka===null:(De&62914560)===De||(De&536870912)!==0?t===ka:!1}function MA(){var t=xe.H;return xe.H=Lp,t===null?Lp:t}function DA(){var t=xe.A;return xe.A=mX,t}function Dp(){Ct=4,Wi||(De&4194048)!==De&&pa.current!==null||(bu=!0),(mo&134217727)===0&&(ys&134217727)===0||rt===null||Ki(rt,De,on,!1)}function Mb(t,e,a){var n=Ge;Ge|=2;var r=MA(),i=DA();(rt!==t||De!==e)&&(Mp=null,su(t,e)),e=!1;var o=Ct;e:do try{if(We!==0&&Pe!==null){var s=Pe,l=tn;switch(We){case 8:Ux(),o=6;break e;case 3:case 2:case 9:case 6:pa.current===null&&(e=!0);var u=We;if(We=0,tn=null,Zl(t,s,l,u),a&&bu){o=0;break e}break;default:u=We,We=0,tn=null,Zl(t,s,l,u)}}bX(),o=Ct;break}catch(c){IA(t,c)}while(!0);return e&&t.shellSuspendCounter++,si=Ms=null,Ge=n,xe.H=r,xe.A=i,Pe===null&&(rt=null,De=0,Fp()),o}function bX(){for(;Pe!==null;)NA(Pe)}function xX(t,e){var a=Ge;Ge|=2;var n=MA(),r=DA();rt!==t||De!==e?(Mp=null,Pp=sn()+500,su(t,e)):bu=Of(t,e);e:do try{if(We!==0&&Pe!==null){e=Pe;var i=tn;t:switch(We){case 1:We=0,tn=null,Zl(t,e,i,1);break;case 2:case 9:if(ck(i)){We=0,tn=null,Bk(e);break}e=function(){We!==2&&We!==9||rt!==t||(We=7),Br(t)},i.then(e,e);break e;case 3:We=7;break e;case 4:We=5;break e;case 7:ck(i)?(We=0,tn=null,Bk(e)):(We=0,tn=null,Zl(t,e,i,7));break;case 5:var o=null;switch(Pe.tag){case 26:o=Pe.memoizedState;case 5:case 27:var s=Pe;if(o?s_(o):s.stateNode.complete){We=0,tn=null;var l=s.sibling;if(l!==null)Pe=l;else{var u=s.return;u!==null?(Pe=u,am(u)):Pe=null}break t}}We=0,tn=null,Zl(t,e,i,5);break;case 6:We=0,tn=null,Zl(t,e,i,6);break;case 8:Ux(),Ct=6;break e;default:throw Error(P(462))}}SX();break}catch(c){IA(t,c)}while(!0);return si=Ms=null,xe.H=n,xe.A=r,Ge=a,Pe!==null?0:(rt=null,De=0,Fp(),Ct)}function SX(){for(;Pe!==null&&!Q3();)NA(Pe)}function NA(t){var e=rA(t.alternate,t,mi);t.memoizedProps=t.pendingProps,e===null?am(t):Pe=e}function Bk(t){var e=t,a=e.alternate;switch(e.tag){case 15:case 0:e=Ek(a,e,e.pendingProps,e.type,void 0,De);break;case 11:e=Ek(a,e,e.pendingProps,e.type.render,e.ref,De);break;case 5:wx(e);var n=e;n===Jt&&(_e?(xp(n),n.tag===5&&n.stateNode!=null&&(ct=n.stateNode)):(xp(n),_e=!0));default:iA(a,e),e=Pe=oE(e,mi),e=rA(a,e,mi)}t.memoizedProps=t.pendingProps,e===null?am(t):Pe=e}function Zl(t,e,a,n){si=Ms=null,wx(e),Vl=null,rf=0;var r=e.return;try{if(sX(t,r,e,a,De)){Ct=1,Ep(t,Pn(a,t.current)),Pe=null;return}}catch(i){if(r!==null)throw Pe=r,i;Ct=1,Ep(t,Pn(a,t.current)),Pe=null;return}e.flags&32768?(_e||n===1?t=!0:bu||(De&536870912)!==0?t=!1:(Wi=t=!0,(n===2||n===9||n===3||n===6)&&(n=pa.current,n!==null&&n.tag===13&&(n.flags|=16384))),QA(e,t)):am(e)}function am(t){var e=t;do{if((e.flags&32768)!==0){QA(e,Wi);return}t=e.return;var a=fX(e.alternate,e,mi);if(a!==null){Pe=a;return}if(e=e.sibling,e!==null){Pe=e;return}Pe=e=t}while(e!==null);Ct===0&&(Ct=5)}function QA(t,e){do{var a=dX(t.alternate,t);if(a!==null){a.flags&=32767,Pe=a;return}if(a=t.return,a!==null&&(a.flags|=32768,a.subtreeFlags=0,a.deletions=null),!e&&(t=t.sibling,t!==null)){Pe=t;return}Pe=t=a}while(t!==null);Ct=6,Pe=null}function zk(t,e,a,n,r,i,o,s,l,u,c,f){t.cancelPendingCommit=null;do nm();while(yt!==0);if((Ge&6)!==0)throw Error(P(327));if(e!==null){if(e===t.current)throw Error(P(177));t===rt&&(Pe=rt=null,De=0),_s=e,sr=t,Nr=a,N0=r,_A=n,yX(t,e,a,o,s,l,f)}}function yX(t,e,a,n,r,i,o){var s=e.lanes|e.childLanes;if(D0=s,s|=cx,H3(t,a,s,n,r,i),Jl=null,(a&335544064)===a?(eu=VU(t),n=10262):(eu=null,n=10256),(e.subtreeFlags&n)!==0||(e.flags&n)!==0?(t.callbackNode=null,t.callbackPriority=0,EX(pp,function(){return z0(),null})):(t.callbackNode=null,t.callbackPriority=0),Rp=!1,n=(e.flags&13878)!==0,(e.subtreeFlags&13878)!==0||n){n=xe.T,xe.T=null,r=He.p,He.p=2,i=Ge,Ge|=4;try{hX(t,e,a)}finally{Ge=i,He.p=r,xe.T=n}}yt=1,Rp?Kl=FX(o,t.containerInfo,eu,Q0,$0,CX,B0,z0,vX,null,null):(Q0(),$0(),B0())}function vX(t){if(yt!==0){var e=sr.onRecoverableError;e(t,{componentStack:null})}}function CX(){yt===3&&(yt=0,vA(_s,sr),yt=4)}function Q0(){if(yt===1){yt=0;var t=sr,e=_s,a=Nr,n=(e.flags&13878)!==0;if((e.subtreeFlags&13878)!==0||n){n=xe.T,xe.T=null;var r=He.p;He.p=2;var i=Ge;Ge|=4;try{$c=Tp=!1,SA(e,t,a),a=Z0;var o=KL(t.containerInfo),s=a.focusedElem,l=a.selectionRange;if(o!==s&&s&&s.ownerDocument&&WL(s.ownerDocument.documentElement,s)){if(l!==null&&ux(s)){var u=l.start,c=l.end;if(c===void 0&&(c=u),"selectionStart"in s)s.selectionStart=u,s.selectionEnd=Math.min(c,s.value.length);else{var f=s.ownerDocument||document,d=f&&f.defaultView||window;if(d.getSelection){var h=d.getSelection(),p=s.textContent.length,g=Math.min(l.start,p),b=l.end===void 0?g:Math.min(l.end,p);!h.extend&&g>b&&(o=b,b=g,g=o);var m=ak(s,g),O=ak(s,b);if(m&&O&&(h.rangeCount!==1||h.anchorNode!==m.node||h.anchorOffset!==m.offset||h.focusNode!==O.node||h.focusOffset!==O.offset)){var x=f.createRange();x.setStart(m.node,m.offset),h.removeAllRanges(),g>b?(h.addRange(x),h.extend(O.node,O.offset)):(x.setEnd(O.node,O.offset),h.addRange(x))}}}}for(f=[],h=s;h=h.parentNode;)h.nodeType===1&&f.push({element:h,left:h.scrollLeft,top:h.scrollTop});for(typeof s.focus=="function"&&s.focus(),s=0;s<f.length;s++){var S=f[s];S.element.scrollLeft=S.left,S.element.scrollTop=S.top}}du=!!q0,Z0=q0=null}finally{Ge=i,He.p=r,xe.T=n}}t.current=e,yt=2}}function $0(){if(yt===2){yt=0;var t=sr,e=_s,a=(e.flags&8772)!==0;if((e.subtreeFlags&8772)!==0||a){a=xe.T,xe.T=null;var n=He.p;He.p=2;var r=Ge;Ge|=4;try{pA(t,e.alternate,e)}finally{Ge=r,He.p=n,xe.T=a}}yt=3}}function B0(){if(yt===4||yt===3){yt=0;var t=Kl;Kl=null,$3();var e=sr,a=_s,n=Nr,r=_A,i=(n&335544064)===n?10262:10256;if((a.subtreeFlags&i)!==0||(a.flags&i)!==0?yt=5:(yt=0,_s=sr=null,$A(e,e.pendingLanes)),i=e.pendingLanes,i===0&&(oo=null),nx(n),a=a.stateNode,ln&&typeof ln.onCommitFiberRoot=="function")try{ln.onCommitFiberRoot(gf,a,void 0,(a.current.flags&128)===128)}catch{}if(r!==null){a=xe.T,i=He.p,He.p=2,xe.T=null;try{for(var o=e.onRecoverableError,s=0;s<r.length;s++){var l=r[s];o(l.value,{componentStack:l.stack})}}finally{xe.T=a,He.p=i}}if(r=Jl,o=eu,eu=null,r!==null&&(Jl=null,o===null&&(o=[]),t!==null))for(l=0;l<r.length;l++)a=(0,r[l])(o),a!==void 0&&t.finished.finally(a);(Nr&3)!==0&&nm(),Br(e),i=e.pendingLanes,(n&261930)!==0&&(i&42)!==0?e===ip?Wc++:(Wc=0,ip=e):(Wc=0,ip=null),wf(0,!1)}}function $A(t,e){(t.pooledCacheLanes&=e)===0&&(e=t.pooledCache,e!=null&&(t.pooledCache=null,yf(e)))}function nm(){return Kl!==null&&(Kl.skipTransition(),Kl=null),Q0(),$0(),B0(),z0()}function z0(){if(yt!==5)return!1;var t=sr,e=D0;D0=0;var a=nx(Nr),n=xe.T,r=He.p;try{He.p=32>a?32:a,xe.T=null,a=N0,N0=null;var i=sr,o=Nr;if(yt=0,_s=sr=null,Nr=0,(Ge&6)!==0)throw Error(P(331));var s=Ge;if(Ge|=4,LA(i.current),CA(i,i.current,o,a),Ge=s,wf(0,!1),ln&&typeof ln.onPostCommitFiberRoot=="function")try{ln.onPostCommitFiberRoot(gf,i)}catch{}return!0}finally{He.p=r,xe.T=n,$A(t,e)}}function Uk(t,e,a){e=Pn(a,e),e=x0(t.stateNode,e,2),t=no(t,e,2),t!==null&&(bf(t,2),Br(t))}function Je(t,e,a){if(t.tag===3)Uk(t,t,a);else for(;e!==null;){if(e.tag===3){Uk(e,t,a);break}else if(e.tag===1){var n=e.stateNode;if(typeof e.type.getDerivedStateFromError=="function"||typeof n.componentDidCatch=="function"&&(oo===null||!oo.has(n))){t=Pn(a,t),a=JE(2),n=no(e,a,2),n!==null&&(eA(a,n,e,t),bf(n,2),Br(n));break}}e=e.return}}function Db(t,e,a){var n=t.pingCache;if(n===null){n=t.pingCache=new gX;var r=new Set;n.set(e,r)}else r=n.get(e),r===void 0&&(r=new Set,n.set(e,r));r.has(a)||(zx=!0,r.add(a),t=wX.bind(null,t,e,a),e.then(t,t))}function wX(t,e,a){var n=t.pingCache;n!==null&&n.delete(e),t.pingedLanes|=t.suspendedLanes&a,t.warmLanes&=~a,rt===t&&(De&a)===a&&((Ct===4||Ct===3&&(De&62914560)===De&&300>sn()-em)&&(Ge&2)===0?su(t,0):Ip|=a,iu===De&&(iu=0)),Br(t)}function BA(t,e){e===0&&(e=_L()),t=Ps(t,e),t!==null&&(bf(t,e),Br(t))}function kX(t){var e=t.memoizedState,a=0;e!==null&&(a=e.retryLane),BA(t,a)}function LX(t,e){var a=0;switch(t.tag){case 31:case 13:var n=t.stateNode,r=t.memoizedState;r!==null&&(a=r.retryLane);break;case 19:n=t.stateNode;break;case 22:n=t.stateNode._retryCache;break;default:throw Error(P(314))}n!==null&&n.delete(e),BA(t,a)}function EX(t,e){return tx(t,e)}var lu=null,Il=null,U0=!1,Np=!1,Nb=!1,Ji=0;function Br(t){t!==Il&&t.next===null&&(Il===null?lu=Il=t:Il=Il.next=t),Np=!0,U0||(U0=!0,_X())}function wf(t,e){if(!Nb&&Np){Nb=!0;do for(var a=!1,n=lu;n!==null;){if(!e)if(t!==0){var r=n.pendingLanes;if(r===0)var i=0;else{var o=n.suspendedLanes,s=n.pingedLanes;i=(1<<31-un(42|t)+1)-1,i&=r&~(o&~s),i=i&201326741?i&201326741|1:i?i|2:0}i!==0&&(a=!0,Xk(n,i))}else i=De,i=zp(n,n===rt?i:0,n.cancelPendingCommit!==null||n.timeoutHandle!==-1),(i&3)===0||Of(n,i)||(a=!0,Xk(n,i));n=n.next}while(a);Nb=!1}}function AX(){zA()}function zA(){Np=U0=!1;var t=0;Ji!==0&&$X()&&(t=Ji);for(var e=sn(),a=null,n=lu;n!==null;){var r=n.next,i=UA(n,e);i===0?(n.next=null,a===null?lu=r:a.next=r,r===null&&(Il=a)):(a=n,(t!==0||(i&3)!==0)&&(Np=!0)),n=r}yt!==0&&yt!==5||wf(t,!1),Ji!==0&&(Ji=0)}function UA(t,e){for(var a=t.suspendedLanes,n=t.pingedLanes,r=t.expirationTimes,i=t.pendingLanes&-62914561;0<i;){var o=31-un(i),s=1<<o,l=r[o];l===-1?((s&a)===0||(s&n)!==0)&&(r[o]=G3(s,e)):l<=e&&(t.expiredLanes|=s),i&=~s}if(e=rt,a=De,a=zp(t,t===e?a:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),n=t.callbackNode,a===0||t===e&&(We===2||We===9)||t.cancelPendingCommit!==null)return n!==null&&n!==null&&pb(n),t.callbackNode=null,t.callbackPriority=0;if((a&3)===0||Of(t,a)){if(e=a&-a,e===t.callbackPriority)return e;switch(n!==null&&pb(n),nx(a)){case 2:case 8:a=LL;break;case 32:a=pp;break;case 268435456:a=EL;break;default:a=pp}return n=XA.bind(null,t),a=tx(a,n),t.callbackPriority=e,t.callbackNode=a,e}return n!==null&&n!==null&&pb(n),t.callbackPriority=2,t.callbackNode=null,2}function XA(t,e){if(yt!==0&&yt!==5)return t.callbackNode=null,t.callbackPriority=0,null;var a=t.callbackNode;if(nm()&&t.callbackNode!==a)return null;var n=De;return n=zp(t,t===rt?n:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),n===0?null:(TA(t,n,e),UA(t,sn()),t.callbackNode!=null&&t.callbackNode===a?XA.bind(null,t):null)}function Xk(t,e){if(nm())return null;TA(t,e,!0)}function _X(){zX(function(){(Ge&6)!==0?tx(kL,AX):zA()})}function Xx(){if(Ji===0){var t=ks;t===0&&(t=Lh,Lh<<=1,(Lh&261888)===0&&(Lh=256)),Ji=t}return Ji}function qk(t){return t==null||typeof t=="symbol"||typeof t=="boolean"?null:typeof t=="function"?t:Hh(t)}function RX(t,e,a,n,r){if(e==="submit"&&a&&a.stateNode===r){var i=qk((r[Ya]||null).action),o=n.submitter;o&&(e=(e=o[Ya]||null)?qk(e.formAction):o.getAttribute("formAction"),e!==null&&(i=e,o=null));var s=new Xp("action","action",null,n,r);t.push({event:s,listeners:[{instance:null,listener:function(){if(n.defaultPrevented){if(Ji!==0){var l=new FormData(r,o);O0(a,{pending:!0,data:l,method:r.method,action:i},null,l)}}else typeof i=="function"&&(s.preventDefault(),l=new FormData(r,o),O0(a,{pending:!0,data:l,method:r.method,action:i},i,l))},currentTarget:r}]})}}for(Uh=0;Uh<o0.length;Uh++)Xh=o0[Uh],Zk=Xh.toLowerCase(),Fk=Xh[0].toUpperCase()+Xh.slice(1),lr(Zk,"on"+Fk);var Xh,Zk,Fk,Uh;lr(eE,"onAnimationEnd");lr(tE,"onAnimationIteration");lr(aE,"onAnimationStart");lr("dblclick","onDoubleClick");lr("focusin","onFocus");lr("focusout","onBlur");lr(UU,"onTransitionRun");lr(XU,"onTransitionStart");lr(qU,"onTransitionCancel");lr(nE,"onTransitionEnd");au("onMouseEnter",["mouseout","mouseover"]);au("onMouseLeave",["mouseout","mouseover"]);au("onPointerEnter",["pointerout","pointerover"]);au("onPointerLeave",["pointerout","pointerover"]);Ts("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Ts("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Ts("onBeforeInput",["compositionend","keypress","textInput","paste"]);Ts("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Ts("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Ts("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var lf="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(" "),TX=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(lf));function qA(t,e){e=(e&4)!==0;for(var a=0;a<t.length;a++){var n=t[a],r=n.event;n=n.listeners;e:{var i=void 0;if(e)for(var o=n.length-1;0<=o;o--){var s=n[o],l=s.instance,u=s.currentTarget;if(s=s.listener,l!==i&&r.isPropagationStopped())break e;i=s,r.currentTarget=u;try{i(r)}catch(c){gp(c)}r.currentTarget=null,i=l}else for(o=0;o<n.length;o++){if(s=n[o],l=s.instance,u=s.currentTarget,s=s.listener,l!==i&&r.isPropagationStopped())break e;i=s,r.currentTarget=u;try{i(r)}catch(c){gp(c)}r.currentTarget=null,i=l}}}}function Ie(t,e){var a=e[Bw];a===void 0&&(a=e[Bw]=new Set);var n=t+"__bubble";a.has(n)||(ZA(e,t,2,!1),a.add(n))}function Qb(t,e,a){var n=0;e&&(n|=4),ZA(a,t,n,e)}var qh="_reactListening"+Math.random().toString(36).slice(2);function qx(t){if(!t[qh]){t[qh]=!0,DL.forEach(function(a){a!=="selectionchange"&&(TX.has(a)||Qb(a,!1,t),Qb(a,!0,t))});var e=t.nodeType===9?t:t.ownerDocument;e===null||e[qh]||(e[qh]=!0,Qb("selectionchange",!1,e))}}function ZA(t,e,a,n){switch(p_(e)){case 2:var r=Cq;break;case 8:r=wq;break;default:r=Yx}a=r.bind(null,e,a,t),r=void 0,!a0||e!=="touchstart"&&e!=="touchmove"&&e!=="wheel"||(r=!0),n?r!==void 0?t.addEventListener(e,a,{capture:!0,passive:r}):t.addEventListener(e,a,!0):r!==void 0?t.addEventListener(e,a,{passive:r}):t.addEventListener(e,a,!1)}function $b(t,e,a,n,r){var i=n;if((e&1)===0&&(e&2)===0&&n!==null)e:for(;;){if(n===null)return;var o=n.tag;if(o===3||o===4){var s=n.stateNode.containerInfo;if(s===r)break;if(o===4)for(o=n.return;o!==null;){var l=o.tag;if((l===3||l===4)&&o.stateNode.containerInfo===r)return;o=o.return}for(;s!==null;){if(o=ms(s),o===null)return;if(l=o.tag,l===5||l===6||l===26||l===27){n=i=o;continue e}s=s.parentNode}}n=n.return}qL(function(){var u=i,c=ix(a),f=[];e:{var d=rE.get(t);if(d!==void 0){var h=Xp,p=t;switch(t){case"keypress":if(Vh(a)===0)break e;case"keydown":case"keyup":h=OU;break;case"focusin":p="focus",h=Sb;break;case"focusout":p="blur",h=Sb;break;case"beforeblur":case"afterblur":h=Sb;break;case"click":if(a.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":h=Hw;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":h=iU;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":h=vU;break;case eE:case tE:case aE:h=lU;break;case nE:h=wU;break;case"scroll":case"scrollend":h=nU;break;case"wheel":h=LU;break;case"copy":case"cut":case"paste":h=cU;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":h=Vw;break;case"submit":h=SU;break;case"toggle":case"beforetoggle":h=AU}var g=(e&4)!==0,b=!g&&(t==="scroll"||t==="scrollend"),m=g?d!==null?d+"Capture":null:d;g=[];for(var O=u,x;O!==null;){var S=O;if(x=S.stateNode,S=S.tag,S!==5&&S!==26&&S!==27||x===null||m===null||(S=Jc(O,m),S!=null&&g.push(uf(O,S,x))),b)break;O=O.return}0<g.length&&(d=new h(d,p,null,a,c),f.push({event:d,listeners:g}))}}if((e&7)===0){e:{if(h=t==="mouseover"||t==="pointerover",d=t==="mouseout"||t==="pointerout",h&&a!==t0&&(p=a.relatedTarget||a.fromElement)&&(ms(p)||p[pu]))break e;(d||h)&&(p=c.window===c?c:(h=c.ownerDocument)?h.defaultView||h.parentWindow:window,d?(h=a.relatedTarget||a.toElement,d=u,h=h?ms(h):null,h!==null&&(b=mf(h),g=h.tag,h!==b||g!==5&&g!==27&&g!==6)&&(h=null)):(d=null,h=u),d!==h&&(g=Hw,S="onMouseLeave",m="onMouseEnter",O="mouse",(t==="pointerout"||t==="pointerover")&&(g=Vw,S="onPointerLeave",m="onPointerEnter",O="pointer"),b=d==null?p:Nc(d),x=h==null?p:Nc(h),p=new g(S,O+"leave",d,a,c),p.target=b,p.relatedTarget=x,S=null,ms(c)===u&&(g=new g(m,O+"enter",h,a,c),g.target=x,g.relatedTarget=b,S=g),b=S,g=d&&h?qb(d,h,IX):null,d!==null&&Gk(f,p,d,g,!1),h!==null&&b!==null&&Gk(f,b,h,g,!0)))}e:{if(d=u?Nc(u):window,h=d.nodeName&&d.nodeName.toLowerCase(),h==="select"||h==="input"&&d.type==="file")var y=Jw;else if(Kw(d))if(VL)y=$U;else{y=NU;var C=DU}else h=d.nodeName,!h||h.toLowerCase()!=="input"||d.type!=="checkbox"&&d.type!=="radio"?u&&rx(u.elementType)&&(y=Jw):y=QU;if(y&&(y=y(t,u))){jL(f,y,a,c);break e}C&&C(t,d,u)}switch(C=u?Nc(u):window,t){case"focusin":(Kw(C)||C.contentEditable==="true")&&($l=C,r0=u,Uc=null);break;case"focusout":Uc=r0=$l=null;break;case"mousedown":i0=!0;break;case"contextmenu":case"mouseup":case"dragend":i0=!1,nk(f,a,c);break;case"selectionchange":if(zU)break;case"keydown":case"keyup":nk(f,a,c)}var v;if(lx)e:{switch(t){case"compositionstart":var k="onCompositionStart";break e;case"compositionend":k="onCompositionEnd";break e;case"compositionupdate":k="onCompositionUpdate";break e}k=void 0}else Ql?GL(t,a)&&(k="onCompositionEnd"):t==="keydown"&&a.keyCode===229&&(k="onCompositionStart");k&&(FL&&a.locale!=="ko"&&(Ql||k!=="onCompositionStart"?k==="onCompositionEnd"&&Ql&&(v=ZL()):(Vi=c,ox="value"in Vi?Vi.value:Vi.textContent,Ql=!0)),C=Qp(u,k),0<C.length&&(k=new jw(k,t,null,a,c),f.push({event:k,listeners:C}),v?k.data=v:(v=HL(a),v!==null&&(k.data=v)))),(v=RU?TU(t,a):IU(t,a))&&(k=Qp(u,"onBeforeInput"),0<k.length&&(C=new jw("onBeforeInput","beforeinput",null,a,c),f.push({event:C,listeners:k}),C.data=v)),RX(f,t,u,a,c)}qA(f,e)})}function uf(t,e,a){return{instance:t,listener:e,currentTarget:a}}function Qp(t,e){for(var a=e+"Capture",n=[];t!==null;){var r=t,i=r.stateNode;if(r=r.tag,r!==5&&r!==26&&r!==27||i===null||(r=Jc(t,a),r!=null&&n.unshift(uf(t,r,i)),r=Jc(t,e),r!=null&&n.push(uf(t,r,i))),t.tag===3)return n;t=t.return}return[]}function IX(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5&&t.tag!==27);return t||null}function Gk(t,e,a,n,r){for(var i=e._reactName,o=[];a!==null&&a!==n;){var s=a,l=s.alternate,u=s.stateNode;if(s=s.tag,l!==null&&l===n)break;s!==5&&s!==26&&s!==27||u===null||(l=u,r?(u=Jc(a,i),u!=null&&o.unshift(uf(a,u,l))):r||(u=Jc(a,i),u!=null&&o.push(uf(a,u,l)))),a=a.return}o.length!==0&&t.push({event:e,listeners:o})}var PX=/\r\n?/g,MX=/\u0000|\uFFFD/g;function Hk(t){return(typeof t=="string"?t:""+t).replace(PX,`
10
+ `).replace(MX,"")}function FA(t,e){return e=Hk(e),Hk(t)===e}function Ke(t,e,a,n,r,i){switch(a){case"children":if(typeof n=="string")e==="body"||e==="textarea"&&n===""||nu(t,n);else if(typeof n=="number"||typeof n=="bigint")e!=="body"&&nu(t,""+n);else return;break;case"className":_h(t,"class",n);break;case"tabIndex":_h(t,"tabindex",n);break;case"dir":case"role":case"viewBox":case"width":case"height":_h(t,a,n);break;case"style":XL(t,n,i);return;case"data":if(e!=="object"){_h(t,"data",n);break}case"src":case"href":if(n===""&&(e!=="a"||a!=="href")){t.removeAttribute(a);break}if(n==null||typeof n=="function"||typeof n=="symbol"||typeof n=="boolean"){t.removeAttribute(a);break}n=Hh(n),t.setAttribute(a,n);break;case"action":case"formAction":if(typeof n=="function"){t.setAttribute(a,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof i=="function"&&(a==="formAction"?(e!=="input"&&Ke(t,e,"name",r.name,r,null),Ke(t,e,"formEncType",r.formEncType,r,null),Ke(t,e,"formMethod",r.formMethod,r,null),Ke(t,e,"formTarget",r.formTarget,r,null)):(Ke(t,e,"encType",r.encType,r,null),Ke(t,e,"method",r.method,r,null),Ke(t,e,"target",r.target,r,null)));if(n==null||typeof n=="symbol"||typeof n=="boolean"){t.removeAttribute(a);break}n=Hh(n),t.setAttribute(a,n);break;case"onClick":n!=null&&(t.onclick=Ir);return;case"onScroll":n!=null&&Ie("scroll",t);return;case"onScrollEnd":n!=null&&Ie("scrollend",t);return;case"dangerouslySetInnerHTML":if(n!=null){if(typeof n!="object"||!("__html"in n))throw Error(P(61));if(a=n.__html,a!=null){if(r.children!=null)throw Error(P(60));i?.__html!==a&&(t.innerHTML=a)}}break;case"multiple":t.multiple=n&&typeof n!="function"&&typeof n!="symbol";break;case"muted":t.muted=n&&typeof n!="function"&&typeof n!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(n==null||typeof n=="function"||typeof n=="boolean"||typeof n=="symbol"){t.removeAttribute("xlink:href");break}a=Hh(n),t.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",a);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":n!=null&&typeof n!="function"&&typeof n!="symbol"?t.setAttribute(a,n):t.removeAttribute(a);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"credentialless":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":n&&typeof n!="function"&&typeof n!="symbol"?t.setAttribute(a,""):t.removeAttribute(a);break;case"capture":case"download":n===!0?t.setAttribute(a,""):n!==!1&&n!=null&&typeof n!="function"&&typeof n!="symbol"?t.setAttribute(a,n):t.removeAttribute(a);break;case"cols":case"rows":case"size":case"span":n!=null&&typeof n!="function"&&typeof n!="symbol"&&!isNaN(n)&&1<=n?t.setAttribute(a,n):t.removeAttribute(a);break;case"rowSpan":case"start":n==null||typeof n=="function"||typeof n=="symbol"||isNaN(n)?t.removeAttribute(a):t.setAttribute(a,n);break;case"popover":Ie("beforetoggle",t),Ie("toggle",t),Gh(t,"popover",n);break;case"xlinkActuate":ri(t,"http://www.w3.org/1999/xlink","xlink:actuate",n);break;case"xlinkArcrole":ri(t,"http://www.w3.org/1999/xlink","xlink:arcrole",n);break;case"xlinkRole":ri(t,"http://www.w3.org/1999/xlink","xlink:role",n);break;case"xlinkShow":ri(t,"http://www.w3.org/1999/xlink","xlink:show",n);break;case"xlinkTitle":ri(t,"http://www.w3.org/1999/xlink","xlink:title",n);break;case"xlinkType":ri(t,"http://www.w3.org/1999/xlink","xlink:type",n);break;case"xmlBase":ri(t,"http://www.w3.org/XML/1998/namespace","xml:base",n);break;case"xmlLang":ri(t,"http://www.w3.org/XML/1998/namespace","xml:lang",n);break;case"xmlSpace":ri(t,"http://www.w3.org/XML/1998/namespace","xml:space",n);break;case"is":Gh(t,"is",n);break;case"innerText":case"textContent":return;default:if(!(2<a.length)||a[0]!=="o"&&a[0]!=="O"||a[1]!=="n"&&a[1]!=="N")a=tU.get(a)||a,Gh(t,a,n);else return}qe=!0}function X0(t,e,a,n,r,i){switch(a){case"style":XL(t,n,i);return;case"dangerouslySetInnerHTML":if(n!=null){if(typeof n!="object"||!("__html"in n))throw Error(P(61));if(a=n.__html,a!=null){if(r.children!=null)throw Error(P(60));i?.__html!==a&&(t.innerHTML=a)}}break;case"children":if(typeof n=="string")nu(t,n);else if(typeof n=="number"||typeof n=="bigint")nu(t,""+n);else return;break;case"onScroll":n!=null&&Ie("scroll",t);return;case"onScrollEnd":n!=null&&Ie("scrollend",t);return;case"onClick":n!=null&&(t.onclick=Ir);return;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":return;case"innerText":case"textContent":return;default:if(!NL.hasOwnProperty(a))e:{if(a[0]==="o"&&a[1]==="n"&&(r=a.endsWith("Capture"),i=a.slice(2,r?a.length-7:void 0),e=t[Ya]||null,e=e!=null?e[a]:null,typeof e=="function"&&t.removeEventListener(i,e,r),typeof n=="function")){typeof e!="function"&&e!==null&&(a in t?t[a]=null:t.hasAttribute(a)&&t.removeAttribute(a)),t.addEventListener(i,n,r);break e}qe=!0,a in t?t[a]=n:n===!0?t.setAttribute(a,""):Gh(t,a,n)}return}qe=!0}function ha(t,e,a){switch(e){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Ie("error",t),Ie("load",t);var n=!1,r=!1,i;for(i in a)if(a.hasOwnProperty(i)){var o=a[i];if(o!=null)switch(i){case"src":n=!0;break;case"srcSet":r=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(P(137,e));default:Ke(t,e,i,o,a,null)}}r&&Ke(t,e,"srcSet",a.srcSet,a,null),n&&Ke(t,e,"src",a.src,a,null);return;case"input":Ie("invalid",t);var s=i=o=r=null,l=null,u=null;for(n in a)if(a.hasOwnProperty(n)){var c=a[n];if(c!=null)switch(n){case"name":r=c;break;case"type":o=c;break;case"checked":l=c;break;case"defaultChecked":u=c;break;case"value":i=c;break;case"defaultValue":s=c;break;case"children":case"dangerouslySetInnerHTML":if(c!=null)throw Error(P(137,e));break;default:Ke(t,e,n,c,a,null)}}BL(t,i,s,l,u,o,r,!1);return;case"select":Ie("invalid",t),n=o=i=null;for(r in a)if(a.hasOwnProperty(r)&&(s=a[r],s!=null))switch(r){case"value":i=s;break;case"defaultValue":o=s;break;case"multiple":n=s;default:Ke(t,e,r,s,a,null)}e=i,a=o,t.multiple=!!n,e!=null?Gl(t,!!n,e,!1):a!=null&&Gl(t,!!n,a,!0);return;case"textarea":Ie("invalid",t),i=r=n=null;for(o in a)if(a.hasOwnProperty(o)&&(s=a[o],s!=null))switch(o){case"value":n=s;break;case"defaultValue":r=s;break;case"children":i=s;break;case"dangerouslySetInnerHTML":if(s!=null)throw Error(P(91));break;default:Ke(t,e,o,s,a,null)}UL(t,n,r,i);return;case"option":for(l in a)a.hasOwnProperty(l)&&(n=a[l],n!=null)&&(l==="selected"?t.selected=n&&typeof n!="function"&&typeof n!="symbol":Ke(t,e,l,n,a,null));return;case"dialog":Ie("beforetoggle",t),Ie("toggle",t),Ie("cancel",t),Ie("close",t);break;case"iframe":case"object":Ie("load",t);break;case"video":case"audio":for(n=0;n<lf.length;n++)Ie(lf[n],t);break;case"image":Ie("error",t),Ie("load",t);break;case"details":Ie("toggle",t);break;case"embed":case"source":case"link":Ie("error",t),Ie("load",t);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 a)if(a.hasOwnProperty(u)&&(n=a[u],n!=null))switch(u){case"children":case"dangerouslySetInnerHTML":throw Error(P(137,e));default:Ke(t,e,u,n,a,null)}return;default:if(rx(e)){for(c in a)a.hasOwnProperty(c)&&(n=a[c],n!==void 0&&X0(t,e,c,n,a,void 0));return}}for(s in a)a.hasOwnProperty(s)&&(n=a[s],n!=null&&Ke(t,e,s,n,a,null))}var DX={};function NX(t,e,a,n){switch(e){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var r=null,i=null,o=null,s=null,l=null,u=null,c=null;for(h in a){var f=a[h];if(a.hasOwnProperty(h)&&f!=null)switch(h){case"checked":break;case"value":break;case"defaultValue":l=f;default:n.hasOwnProperty(h)||Ke(t,e,h,null,n,f)}}for(var d in n){var h=n[d];if(f=a[d],n.hasOwnProperty(d)&&(h!=null||f!=null))switch(d){case"type":h!==f&&(qe=!0),i=h;break;case"name":h!==f&&(qe=!0),r=h;break;case"checked":h!==f&&(qe=!0),u=h;break;case"defaultChecked":h!==f&&(qe=!0),c=h;break;case"value":h!==f&&(qe=!0),o=h;break;case"defaultValue":h!==f&&(qe=!0),s=h;break;case"children":case"dangerouslySetInnerHTML":if(h!=null)throw Error(P(137,e));break;default:h!==f&&Ke(t,e,d,h,n,f)}}e0(t,o,s,l,u,c,i,r);return;case"select":h=o=s=d=null;for(i in a)if(l=a[i],a.hasOwnProperty(i)&&l!=null)switch(i){case"value":break;case"multiple":h=l;default:n.hasOwnProperty(i)||Ke(t,e,i,null,n,l)}for(r in n)if(i=n[r],l=a[r],n.hasOwnProperty(r)&&(i!=null||l!=null))switch(r){case"value":i!==l&&(qe=!0),d=i;break;case"defaultValue":i!==l&&(qe=!0),s=i;break;case"multiple":i!==l&&(qe=!0),o=i;default:i!==l&&Ke(t,e,r,i,n,l)}e=s,a=o,n=h,d!=null?Gl(t,!!a,d,!1):!!n!=!!a&&(e!=null?Gl(t,!!a,e,!0):Gl(t,!!a,a?[]:"",!1));return;case"textarea":h=d=null;for(s in a)if(r=a[s],a.hasOwnProperty(s)&&r!=null&&!n.hasOwnProperty(s))switch(s){case"value":break;case"children":break;default:Ke(t,e,s,null,n,r)}for(o in n)if(r=n[o],i=a[o],n.hasOwnProperty(o)&&(r!=null||i!=null))switch(o){case"value":r!==i&&(qe=!0),d=r;break;case"defaultValue":r!==i&&(qe=!0),h=r;break;case"children":break;case"dangerouslySetInnerHTML":if(r!=null)throw Error(P(91));break;default:r!==i&&Ke(t,e,o,r,n,i)}zL(t,d,h);return;case"option":for(var p in a)d=a[p],a.hasOwnProperty(p)&&d!=null&&!n.hasOwnProperty(p)&&(p==="selected"?t.selected=!1:Ke(t,e,p,null,n,d));for(l in n)d=n[l],h=a[l],n.hasOwnProperty(l)&&d!==h&&(d!=null||h!=null)&&(l==="selected"?(d!==h&&(qe=!0),t.selected=d&&typeof d!="function"&&typeof d!="symbol"):Ke(t,e,l,d,n,h));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 a)d=a[g],a.hasOwnProperty(g)&&d!=null&&!n.hasOwnProperty(g)&&Ke(t,e,g,null,n,d);for(u in n)if(d=n[u],h=a[u],n.hasOwnProperty(u)&&d!==h&&(d!=null||h!=null))switch(u){case"children":case"dangerouslySetInnerHTML":if(d!=null)throw Error(P(137,e));break;default:Ke(t,e,u,d,n,h)}return;default:if(rx(e)){for(var b in a)d=a[b],a.hasOwnProperty(b)&&d!==void 0&&!n.hasOwnProperty(b)&&X0(t,e,b,void 0,n,d);for(c in n)d=n[c],h=a[c],!n.hasOwnProperty(c)||d===h||d===void 0&&h===void 0||X0(t,e,c,d,n,h);return}}for(var m in a)d=a[m],a.hasOwnProperty(m)&&d!=null&&!n.hasOwnProperty(m)&&Ke(t,e,m,null,n,d);for(f in n)d=n[f],h=a[f],!n.hasOwnProperty(f)||d===h||d==null&&h==null||Ke(t,e,f,d,n,h)}function jk(t){switch(t){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function QX(){if(typeof performance.getEntriesByType=="function"){for(var t=0,e=0,a=performance.getEntriesByType("resource"),n=0;n<a.length;n++){var r=a[n],i=r.transferSize,o=r.initiatorType,s=r.duration;if(i&&s&&jk(o)){for(o=0,s=r.responseEnd,n+=1;n<a.length;n++){var l=a[n],u=l.startTime;if(u>s)break;var c=l.transferSize,f=l.initiatorType;c&&jk(f)&&(l=l.responseEnd,o+=c*(l<s?1:(s-u)/(l-u)))}if(--n,e+=8*(i+o)/(r.duration/1e3),t++,10<t)break}}if(0<t)return e/t/1e6}return navigator.connection&&(t=navigator.connection.downlink,typeof t=="number")?t:5}var q0=null,Z0=null;function cf(t){return t.nodeType===9?t:t.ownerDocument}function Vk(t){switch(t){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function GA(t,e){if(t===0)switch(e){case"svg":return 1;case"math":return 2;default:return 0}return t===1&&e==="foreignObject"?0:t}function HA(t,e,a,n){return a=cf(a).createElement(t),a[ua]=n,a[Ya]=e,ha(a,t,e),Kt(a),a}function F0(t,e){return t==="textarea"||t==="noscript"||typeof e.children=="string"||typeof e.children=="number"||typeof e.children=="bigint"||typeof e.dangerouslySetInnerHTML=="object"&&e.dangerouslySetInnerHTML!==null&&e.dangerouslySetInnerHTML.__html!=null}var Bb=null;function $X(){var t=window.event;return t&&t.type==="popstate"?t===Bb?!1:(Bb=t,!0):(Bb=null,!1)}var Zx=typeof setTimeout=="function"?setTimeout:void 0,BX=typeof clearTimeout=="function"?clearTimeout:void 0,Yk=typeof Promise=="function"?Promise:void 0,Wk=typeof requestAnimationFrame=="function"?requestAnimationFrame:Zx,zX=typeof queueMicrotask=="function"?queueMicrotask:typeof Yk<"u"?function(t){return Yk.resolve(null).then(t).catch(UX)}:Zx;function UX(t){setTimeout(function(){throw t})}function Oo(t){return t==="head"}function Kk(t,e){var a=e,n=0;do{var r=a.nextSibling;if(t.removeChild(a),r&&r.nodeType===8)if(a=r.data,a==="/$"||a==="/&"){if(n===0){t.removeChild(r),hu(e);return}n--}else if(a==="$"||a==="$?"||a==="$~"||a==="$!"||a==="&")n++;else if(a==="html")Ub(t.ownerDocument.documentElement);else if(a==="head"){a=t.ownerDocument.head,Ub(a);for(var i=a.firstChild;i;){var o=i.nextSibling,s=i.nodeName;i[xf]||s==="SCRIPT"||s==="STYLE"||s==="LINK"&&i.rel.toLowerCase()==="stylesheet"||a.removeChild(i),i=o}}else a==="body"&&Ub(t.ownerDocument.body);a=r}while(a);hu(e)}function Jk(t,e){var a=t;t=0;do{var n=a.nextSibling;if(a.nodeType===1?e?(a._stashedDisplay=a.style.display,a.style.display="none"):(a.style.display=a._stashedDisplay||"",a.getAttribute("style")===""&&a.removeAttribute("style")):a.nodeType===3&&(e?(a._stashedText=a.nodeValue,a.nodeValue=""):a.nodeValue=a._stashedText||""),n&&n.nodeType===8)if(a=n.data,a==="/$"){if(t===0)break;t--}else a!=="$"&&a!=="$?"&&a!=="$~"&&a!=="$!"||t++;a=n}while(a)}function jA(t,e,a){if(e=CSS.escape(e)!==e?"r-"+btoa(e).replace(/=/g,""):e,t.style.viewTransitionName=e,a!=null&&(t.style.viewTransitionClass=a),a=getComputedStyle(t),a.display==="inline"){if(e=t.getClientRects(),e.length===1)var n=1;else for(var r=n=0;r<e.length;r++){var i=e[r];0<i.width&&0<i.height&&n++}n===1&&(t=t.style,t.display=e.length===1?"inline-block":"block",t.marginTop="-"+a.paddingTop,t.marginBottom="-"+a.paddingBottom)}}function VA(t,e){t=t.style,e=e.style;var a=e!=null?e.hasOwnProperty("viewTransitionName")?e.viewTransitionName:e.hasOwnProperty("view-transition-name")?e["view-transition-name"]:null:null;t.viewTransitionName=a==null||typeof a=="boolean"?"":(""+a).trim(),a=e!=null?e.hasOwnProperty("viewTransitionClass")?e.viewTransitionClass:e.hasOwnProperty("view-transition-class")?e["view-transition-class"]:null:null,t.viewTransitionClass=a==null||typeof a=="boolean"?"":(""+a).trim(),t.display==="inline-block"&&(e==null?t.display=t.margin="":(a=e.display,t.display=a==null||typeof a=="boolean"?"":a,a=e.margin,a!=null?t.margin=a:(a=e.hasOwnProperty("marginTop")?e.marginTop:e["margin-top"],t.marginTop=a==null||typeof a=="boolean"?"":a,e=e.hasOwnProperty("marginBottom")?e.marginBottom:e["margin-bottom"],t.marginBottom=e==null||typeof e=="boolean"?"":e)))}function YA(t,e,a){return a=a.ownerDocument.defaultView,{rect:t,abs:e.position==="absolute"||e.position==="fixed",clip:e.clipPath!=="none"||e.overflow!=="visible"||e.filter!=="none"||e.mask!=="none"||e.mask!=="none"||e.borderRadius!=="0px",view:0<=t.bottom&&0<=t.right&&t.top<=a.innerHeight&&t.left<=a.innerWidth}}function G0(t){var e=t.getBoundingClientRect(),a=getComputedStyle(t);return YA(e,a,t)}function XX(t){var e=t.getBoundingClientRect();e=new DOMRect(e.x+2e4,e.y+2e4,e.width,e.height);var a=getComputedStyle(t);return YA(e,a,t)}function qX(t){return t.documentElement.clientHeight}function ZX(t){this.addEventListener("load",t),this.addEventListener("error",t)}function FX(t,e,a,n,r,i,o,s,l){var u=e.nodeType===9?e:e.ownerDocument;try{var c=u.startViewTransition({update:function(){var d=u.defaultView,h=d.navigation&&d.navigation.transition,p=u.fonts.status;n();var g=[];if(p==="loaded"&&(qX(u),u.fonts.status==="loading"&&g.push(u.fonts.ready)),p=g.length,t!==null)for(var b=t.suspenseyImages,m=0,O=0;O<b.length;O++){var x=b[O];if(!x.complete){var S=x.getBoundingClientRect();if(0<S.bottom&&0<S.right&&S.top<d.innerHeight&&S.left<d.innerWidth){if(m+=l_(x),m>lp){g.length=p;break}x=new Promise(ZX.bind(x)),g.push(x)}}}if(0<g.length)return d=Promise.race([Promise.all(g),new Promise(function(y){return setTimeout(y,500)})]).then(r,r),(h?Promise.allSettled([h.finished,d]):d).then(i,i);if(r(),h)return h.finished.then(i,i);i()},types:a});u.__reactViewTransition=c;var f=[];return c.ready.then(function(){for(var d=u.documentElement.getAnimations({subtree:!0}),h=0;h<d.length;h++){var p=d[h],g=p.effect,b=g.pseudoElement;if(b!=null&&b.startsWith("::view-transition")){f.push(p),p=g.getKeyframes();for(var m=b=void 0,O=!0,x=0;x<p.length;x++){var S=p[x],y=S.width;if(b===void 0)b=y;else if(b!==y){O=!1;break}if(y=S.height,m===void 0)m=y;else if(m!==y){O=!1;break}delete S.width,delete S.height,S.transform==="none"&&delete S.transform}O&&b!==void 0&&m!==void 0&&(g.setKeyframes(p),O=getComputedStyle(g.target,g.pseudoElement),O.width!==b||O.height!==m)&&(O=p[0],O.width=b,O.height=m,O=p[p.length-1],O.width=b,O.height=m,g.setKeyframes(p))}}o()},function(d){u.__reactViewTransition===c&&(u.__reactViewTransition=null);try{typeof d=="object"&&d!==null&&d.name==="InvalidStateError"&&(d.message==="View transition was skipped because document visibility state is hidden."||d.message==="Skipping view transition because document visibility state has become hidden."||d.message==="Skipping view transition because viewport size changed."||d.message==="Transition was aborted because of invalid state")&&(d=null),d!==null&&l(d)}finally{n(),r(),o()}}),c.finished.finally(function(){for(var d=0;d<f.length;d++)f[d].cancel();u.__reactViewTransition===c&&(u.__reactViewTransition=null),s()}),c}catch{return n(),r(),o(),null}}function gs(t,e){this._scope=document.documentElement,this._selector="::view-transition-"+t+"("+e+")"}gs.prototype.animate=function(t,e){return e=typeof e=="number"?{duration:e}:it({},e),e.pseudoElement=this._selector,this._scope.animate(t,e)};gs.prototype.getAnimations=function(){for(var t=this._scope,e=this._selector,a=t.getAnimations({subtree:!0}),n=[],r=0;r<a.length;r++){var i=a[r].effect;i!==null&&i.target===t&&i.pseudoElement===e&&n.push(a[r])}return n};gs.prototype.getComputedStyle=function(){return getComputedStyle(this._scope,this._selector)};function WA(t){return{name:t,group:new gs("group",t),imagePair:new gs("image-pair",t),old:new gs("old",t),new:new gs("new",t)}}function dn(t){this._fragmentFiber=t,this._observers=this._eventListeners=null}dn.prototype.addEventListener=function(t,e,a){var n=null,r=null;if(!(a!=null&&typeof a!="boolean"&&(n=a.signal||null,n!==null&&n.aborted))){this._eventListeners===null&&(this._eventListeners=[]);var i=this._eventListeners;if(KA(i,t,e,a)===-1){var o=this,s=e;a!=null&&typeof a!="boolean"&&a.once===!0&&(s=function(l){o.removeEventListener(t,e,a),typeof e=="function"?e.call(this,l):e.handleEvent(l)}),n!==null&&(r=o.removeEventListener.bind(o,t,e,a),n.addEventListener("abort",r,{once:!0}),r=n.removeEventListener.bind(n,"abort",r)),n=uu(a),i.push({type:t,listener:e,optionsOrUseCapture:a,attachedListener:s,cleanup:r}),Va(this._fragmentFiber.child,!1,GX,t,s,n)}this._eventListeners=i}};function GX(t,e,a,n){return Ut(t).addEventListener(e,a,n),!1}dn.prototype.removeEventListener=function(t,e,a){var n=this._eventListeners;if(n!==null&&(e=KA(n,t,e,a),e!==-1)){var r=n[e];a=r.attachedListener;var i=r.cleanup;r=uu(r.optionsOrUseCapture),Va(this._fragmentFiber.child,!1,HX,t,a,r),n.splice(e,1),i!==null&&i()}};function HX(t,e,a,n){return Ut(t).removeEventListener(e,a,n),!1}function uu(t){return t!=null&&typeof t!="boolean"&&(t.once===!0||t.signal instanceof AbortSignal)?{capture:t.capture,passive:t.passive}:t}function eL(t){return t==null?"c=0":typeof t=="boolean"?"c="+(t?"1":"0"):"c="+(t.capture?"1":"0")}function KA(t,e,a,n){if(t.length===0)return-1;n=eL(n);for(var r=0;r<t.length;r++){var i=t[r];if(i.type===e&&i.listener===a&&eL(i.optionsOrUseCapture)===n)return r}return-1}dn.prototype.dispatchEvent=function(t){var e=Rs(this._fragmentFiber);if(e===null)return!0;e=Ut(e);var a=this._eventListeners;if(a!==null&&0<a.length||!t.bubbles){var n=e.nodeType===9?e.createComment(""):document.createTextNode("");if(a)for(var r=0;r<a.length;r++){var i=a[r];n.addEventListener(i.type,i.attachedListener,uu(i.optionsOrUseCapture))}if(e.appendChild(n),t=n.dispatchEvent(t),a)for(r=0;r<a.length;r++)i=a[r],n.removeEventListener(i.type,i.attachedListener,uu(i.optionsOrUseCapture));return e.removeChild(n),t}return e.dispatchEvent(t)};dn.prototype.focus=function(t){Va(this._fragmentFiber.child,!0,JA,t,void 0,void 0)};function JA(t,e){return t.tag===6?!1:(t=Ut(t),iq(t,e))}dn.prototype.focusLast=function(t){var e=[];Va(this._fragmentFiber.child,!0,Fx,e,void 0,void 0);for(var a=e.length-1;0<=a&&!JA(e[a],t);a--);};function Fx(t,e){return e.push(t),!1}dn.prototype.blur=function(){var t=Rs(this._fragmentFiber);t!==null&&(t=Ut(t),t=cf(t).activeElement,t!==null&&Va(this._fragmentFiber.child,!1,jX,t,void 0,void 0))};function jX(t,e){return t.tag===6?!1:(t=Ut(t),t===e||t.contains(e)?(e.blur(),!0):!1)}dn.prototype.observeUsing=function(t){this._observers===null&&(this._observers=new Set),this._observers.add(t),Va(this._fragmentFiber.child,!1,VX,t,void 0,void 0)};function VX(t,e){return t.tag===6||(t=Ut(t),e.observe(t)),!1}dn.prototype.unobserveUsing=function(t){var e=this._observers;if(e!==null&&e.has(t)){e.delete(t),Va(this._fragmentFiber.child,!1,YX,t,void 0,void 0);for(var a=e=0;a<or.length;a++){var n=or[a];n.fragmentInstance===this&&n.observer===t?t.unobserve(n.instance):or[e++]=n}or.length=e}};function YX(t,e){return t.tag===6||(t=Ut(t),e.unobserve(t)),!1}var or=[],zb=!1;function WX(t,e,a){or.push({fragmentInstance:t,observer:e,instance:a}),zb||(zb=!0,oq(function(){zb=!1;var n=or;or=[];for(var r=0;r<n.length;r++){var i=n[r];i.observer.unobserve(i.instance)}}))}dn.prototype.getClientRects=function(){var t=[];return Va(this._fragmentFiber.child,!1,KX,t,void 0,void 0),t};function KX(t,e){if(t.tag===6){t=t.stateNode;var a=t.ownerDocument.createRange();a.selectNodeContents(t),e.push.apply(e,a.getClientRects())}else t=Ut(t),e.push.apply(e,t.getClientRects());return!1}dn.prototype.getRootNode=function(t){var e=Rs(this._fragmentFiber);return e===null?this:Ut(e).getRootNode(t)};dn.prototype.compareDocumentPosition=function(t){var e=Rs(this._fragmentFiber);if(e===null)return Node.DOCUMENT_POSITION_DISCONNECTED;var a=[];Va(this._fragmentFiber.child,!1,Fx,a,void 0,void 0);var n=Ut(e);if(a.length===0){if(a=n,Pw(this._fragmentFiber)){e:{for(e=this._fragmentFiber.return;e!==null;){if(e.tag===4){e=e.stateNode.containerInfo;break e}if(e.tag===3||e.tag===5||e.tag===27)break;e=e.return}e=null}e!=null&&(a=e)}e=this._fragmentFiber;var r=n=a.compareDocumentPosition(t);return a===t?r=Node.DOCUMENT_POSITION_CONTAINS:n&Node.DOCUMENT_POSITION_CONTAINED_BY&&(a=yL(e)[1],a===null?r=Node.DOCUMENT_POSITION_PRECEDING:(t=Ut(a).compareDocumentPosition(t),r=t===0||t&Node.DOCUMENT_POSITION_FOLLOWING?Node.DOCUMENT_POSITION_FOLLOWING:Node.DOCUMENT_POSITION_PRECEDING)),r|=Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC}e=Ut(a[0]),r=Ut(a[a.length-1]);var i=Pw(this._fragmentFiber)?e.parentElement:n;if(i==null)return Node.DOCUMENT_POSITION_DISCONNECTED;n=i.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY,i=i.compareDocumentPosition(r)&Node.DOCUMENT_POSITION_CONTAINED_BY;var o=e.compareDocumentPosition(t),s=r.compareDocumentPosition(t),l=o&Node.DOCUMENT_POSITION_CONTAINED_BY||s&Node.DOCUMENT_POSITION_CONTAINED_BY;return s=n&&i&&o&Node.DOCUMENT_POSITION_FOLLOWING&&s&Node.DOCUMENT_POSITION_PRECEDING,e=n&&e===t||i&&r===t||l||s?Node.DOCUMENT_POSITION_CONTAINED_BY:!n&&e===t||!i&&r===t?Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC:o,e&Node.DOCUMENT_POSITION_DISCONNECTED||e&Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC||JX(e,this._fragmentFiber,a[0],a[a.length-1],t)?e:Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC};function JX(t,e,a,n,r){var i=ms(r);if(t&Node.DOCUMENT_POSITION_CONTAINED_BY){if(a=!!i)e:{for(;i!==null;){if(i.tag===7&&(i===e||i.alternate===e)){a=!0;break e}i=i.return}a=!1}return a}if(t&Node.DOCUMENT_POSITION_CONTAINS){if(i===null)return i=r.ownerDocument,r===i||r===i.documentElement||r===i.body;e:{for(i=e,e=Rs(e);i!==null;){if(!(i.tag!==5&&i.tag!==3&&i.tag!==27||i!==e&&i.alternate!==e)){i=!0;break e}i=i.return}i=!1}return i}return t&Node.DOCUMENT_POSITION_PRECEDING?((e=!!i)&&!(e=i===a)&&(e=qb(a,i,Mw),e===null?e=!1:(Va(e,!0,_3,i,a),i=Pl,Pl=null,e=i!==null)),e):t&Node.DOCUMENT_POSITION_FOLLOWING?((e=!!i)&&!(e=i===n)&&(e=qb(n,i,Mw),e===null?e=!1:(Va(e,!0,R3,i,n),i=Pl,Xb=Pl=null,e=i!==null)),e):!1}function tL(t,e){var a=t.ownerDocument.createRange();a.selectNodeContents(t),t=a.getBoundingClientRect(),window.scrollTo(window.scrollX+t.left,e?window.scrollY+t.top:window.scrollY+t.bottom-window.innerHeight)}dn.prototype.scrollIntoView=function(t){if(typeof t=="object")throw Error(P(566));var e=[];Va(this._fragmentFiber.child,!1,Fx,e,void 0,void 0);var a=t!==!1;if(e.length===0){var n=yL(this._fragmentFiber);if(n=a?n[1]||n[0]||Rs(this._fragmentFiber):n[0]||n[1],n===null)return;if(n.tag===6){t=Ut(n),tL(t,a);return}if(n=Ut(n),n.nodeType!==9){if(n.nodeType===11){a="host"in n?n.host:null,a!==null&&a.scrollIntoView(t);return}n.scrollIntoView(t)}}for(n=a?e.length-1:0;n!==(a?-1:e.length);){var r=e[n];r.tag===6?(r=Ut(r),tL(r,a)):Ut(r).scrollIntoView(t),n+=a?-1:1}};function eq(t,e){return t=Ut(t),e_(t,e),!1}function e_(t,e){t.reactFragments==null&&(t.reactFragments=new Set),t.reactFragments.add(e)}function t_(t,e){var a=e._eventListeners;if(a!==null)for(var n=0;n<a.length;n++){var r=a[n];t.addEventListener(r.type,r.attachedListener,uu(r.optionsOrUseCapture))}t.nodeType!==3&&(a=e._observers,a!==null&&a.forEach(function(i){for(var o=0,s=0;s<or.length;s++){var l=or[s];(l.fragmentInstance!==e||l.observer!==i||l.instance!==t)&&(or[o++]=l)}or.length=o,i.observe(t)}),e_(t,e))}function tq(t,e){var a=e._eventListeners;if(a!==null)for(var n=0;n<a.length;n++){var r=a[n];t.removeEventListener(r.type,r.attachedListener,uu(r.optionsOrUseCapture))}t.nodeType!==3&&(a=e._observers,a!==null&&a.forEach(function(i){typeof i.rootMargin=="string"?WX(e,i,t):i.unobserve(t)}),t.reactFragments!=null&&t.reactFragments.delete(e))}function H0(t){var e=t.firstChild;for(e&&e.nodeType===10&&(e=e.nextSibling);e;){var a=e;switch(e=e.nextSibling,a.nodeName){case"HTML":case"HEAD":case"BODY":H0(a),Up(a);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(a.rel.toLowerCase()==="stylesheet")continue}t.removeChild(a)}}function aq(t,e,a,n){for(;t.nodeType===1;){var r=a;if(t.nodeName.toLowerCase()!==e.toLowerCase()){if(!n&&(t.nodeName!=="INPUT"||t.type!=="hidden"))break}else if(n){if(!t[xf])switch(e){case"meta":if(!t.hasAttribute("itemprop"))break;return t;case"link":if(i=t.getAttribute("rel"),i==="stylesheet"&&t.hasAttribute("data-precedence"))break;if(i!==r.rel||t.getAttribute("href")!==(r.href==null||r.href===""?null:r.href)||t.getAttribute("crossorigin")!==(r.crossOrigin==null?null:r.crossOrigin)||t.getAttribute("title")!==(r.title==null?null:r.title))break;return t;case"style":if(t.hasAttribute("data-precedence"))break;return t;case"script":if(i=t.getAttribute("src"),(i!==(r.src==null?null:r.src)||t.getAttribute("type")!==(r.type==null?null:r.type)||t.getAttribute("crossorigin")!==(r.crossOrigin==null?null:r.crossOrigin))&&i&&t.hasAttribute("async")&&!t.hasAttribute("itemprop"))break;return t;default:return t}}else if(e==="input"&&t.type==="hidden"){var i=r.name==null?null:""+r.name;if(r.type==="hidden"&&t.getAttribute("name")===i)return t}else return t;if(t=Dn(t.nextSibling),t===null)break}return null}function nq(t,e,a){if(e==="")return null;for(;t.nodeType!==3;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!a||(t=Dn(t.nextSibling),t===null))return null;return t}function a_(t,e){for(;t.nodeType!==8;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!e||(t=Dn(t.nextSibling),t===null))return null;return t}function j0(t){return t.data==="$?"||t.data==="$~"}function Gx(t){return t.data==="$!"||t.data==="$?"&&t.ownerDocument.readyState!=="loading"}function rq(t,e){var a=t.ownerDocument;if(t.data==="$~")t._reactRetry=e;else if(t.data!=="$?"||a.readyState!=="loading")e();else{var n=function(){e(),a.removeEventListener("DOMContentLoaded",n)};a.addEventListener("DOMContentLoaded",n),t._reactRetry=n}}function Dn(t){for(;t!=null;t=t.nextSibling){var e=t.nodeType;if(e===1||e===3)break;if(e===8){if(e=t.data,e==="$"||e==="$!"||e==="$?"||e==="$~"||e==="&"||e==="F!"||e==="F")break;if(e==="/$"||e==="/&")return null}}return t}var V0=null;function aL(t){t=t.nextSibling;for(var e=0;t;){if(t.nodeType===8){var a=t.data;if(a==="/$"||a==="/&"){if(e===0)return Dn(t.nextSibling);e--}else a!=="$"&&a!=="$!"&&a!=="$?"&&a!=="$~"&&a!=="&"||e++}t=t.nextSibling}return null}function nL(t){t=t.previousSibling;for(var e=0;t;){if(t.nodeType===8){var a=t.data;if(a==="$"||a==="$!"||a==="$?"||a==="$~"||a==="&"){if(e===0)return t;e--}else a!=="/$"&&a!=="/&"||e++}t=t.previousSibling}return null}function iq(t,e){function a(){n=!0}if(t.ownerDocument.activeElement===t)return!0;var n=!1;try{t.ownerDocument.addEventListener("focus",a,!0),(t.focus||HTMLElement.prototype.focus).call(t,e)}finally{t.ownerDocument.removeEventListener("focus",a,!0)}return n}function oq(t){Wk(function(){Wk(function(e){return t(e)})})}function n_(t,e,a){switch(e=cf(a),t){case"html":if(t=e.documentElement,!t)throw Error(P(452));return t;case"head":if(t=e.head,!t)throw Error(P(453));return t;case"body":if(t=e.body,!t)throw Error(P(454));return t;default:throw Error(P(451))}}function r_(t,e,a){for(var n in a){var r=a[n];a.hasOwnProperty(n)&&r!=null&&Ke(t,e,n,null,DX,r)}a.dangerouslySetInnerHTML!=null&&(t.textContent=""),t.onclick===Ir&&(t.onclick=null),Up(t)}function Ub(t){for(var e=t.attributes;e.length;)t.removeAttributeNode(e[0]);Up(t)}var Nn=new Map,rL=new Set;function ff(t){if(typeof t.getRootNode=="function"){var e=t.getRootNode();if(e.nodeType===9||e.nodeType===11)return e}return t.nodeType===9?t:t.ownerDocument}var bi=He.d;He.d={f:sq,r:lq,D:uq,C:cq,L:fq,m:dq,X:pq,S:hq,M:mq};function sq(){var t=bi.f(),e=tm();return t||e}function lq(t){var e=mu(t);e!==null&&e.tag===5&&e.type==="form"?XE(e):bi.r(t)}var xu=typeof document>"u"?null:document;function i_(t,e,a){var n=xu;if(n&&typeof e=="string"&&e){var r=In(e);r='link[rel="'+t+'"][href="'+r+'"]',typeof a=="string"&&(r+='[crossorigin="'+a+'"]'),rL.has(r)||(rL.add(r),t={rel:t,crossOrigin:a,href:e},n.querySelector(r)===null&&(e=n.createElement("link"),ha(e,"link",t),Kt(e),n.head.appendChild(e)))}}function uq(t){bi.D(t),i_("dns-prefetch",t,null)}function cq(t,e){bi.C(t,e),i_("preconnect",t,e)}function fq(t,e,a){bi.L(t,e,a);var n=xu;if(n&&t&&e){var r='link[rel="preload"][as="'+In(e)+'"]';e==="image"&&a&&a.imageSrcSet?(r+='[imagesrcset="'+In(a.imageSrcSet)+'"]',typeof a.imageSizes=="string"&&(r+='[imagesizes="'+In(a.imageSizes)+'"]')):r+='[href="'+In(t)+'"]';var i=r;switch(e){case"style":i=cu(t);break;case"script":i=Su(t)}if(!(Nn.has(i)||(t=it({rel:"preload",href:e==="image"&&a&&a.imageSrcSet?void 0:t,as:e},a),Nn.set(i,t),n.querySelector(r)!==null||e==="style"&&n.querySelector(kf(i))||e==="script"&&n.querySelector(Lf(i))))){var o=n.createElement("link");ha(o,"link",t),e==="style"&&(o[mp]=!0,o.onload=o.onerror=function(){ML(o)}),Kt(o),n.head.appendChild(o)}}}function dq(t,e){bi.m(t,e);var a=xu;if(a&&t){var n=e&&typeof e.as=="string"?e.as:"script",r='link[rel="modulepreload"][as="'+In(n)+'"][href="'+In(t)+'"]',i=r;switch(n){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":i=Su(t)}if(!Nn.has(i)&&(t=it({rel:"modulepreload",href:t},e),Nn.set(i,t),a.querySelector(r)===null)){switch(n){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(a.querySelector(Lf(i)))return}n=a.createElement("link"),ha(n,"link",t),Kt(n),a.head.appendChild(n)}}}function hq(t,e,a){bi.S(t,e,a);var n=xu;if(n&&t){var r=Fl(n).hoistableStyles,i=cu(t);e=e||"default";var o=r.get(i);if(!o){var s={loading:0,preload:null};if(o=n.querySelector(kf(i)))s.loading=5;else{t=it({rel:"stylesheet",href:t,"data-precedence":e},a),(a=Nn.get(i))&&Hx(t,a);var l=o=n.createElement("link");Kt(l),ha(l,"link",t),l._p=new Promise(function(u,c){l.onload=u,l.onerror=c}),l.addEventListener("load",function(){s.loading|=1}),l.addEventListener("error",function(){s.loading|=2}),s.loading|=4,op(o,e,n)}o={type:"stylesheet",instance:o,count:1,state:s},r.set(i,o)}}}function pq(t,e){bi.X(t,e);var a=xu;if(a&&t){var n=Fl(a).hoistableScripts,r=Su(t),i=n.get(r);i||(i=a.querySelector(Lf(r)),i||(t=it({src:t,async:!0},e),(e=Nn.get(r))&&jx(t,e),i=a.createElement("script"),Kt(i),ha(i,"link",t),a.head.appendChild(i)),i={type:"script",instance:i,count:1,state:null},n.set(r,i))}}function mq(t,e){bi.M(t,e);var a=xu;if(a&&t){var n=Fl(a).hoistableScripts,r=Su(t),i=n.get(r);i||(i=a.querySelector(Lf(r)),i||(t=it({src:t,async:!0,type:"module"},e),(e=Nn.get(r))&&jx(t,e),i=a.createElement("script"),Kt(i),ha(i,"link",t),a.head.appendChild(i)),i={type:"script",instance:i,count:1,state:null},n.set(r,i))}}function iL(t,e,a,n){var r=(r=eo.current)?ff(r):null;if(!r)throw Error(P(446));switch(t){case"meta":case"title":return null;case"style":return typeof a.precedence=="string"&&typeof a.href=="string"?(a=cu(a.href),e=Fl(r).hoistableStyles,n=e.get(a),n||(n={type:"style",instance:null,count:0,state:null},e.set(a,n)),n):{type:"void",instance:null,count:0,state:null};case"link":if(a.rel==="stylesheet"&&typeof a.href=="string"&&typeof a.precedence=="string"){t=cu(a.href);var i=Fl(r).hoistableStyles,o=i.get(t);if(o||(r=r.ownerDocument||r,o={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},i.set(t,o),(i=r.querySelector(kf(t)))?i._p||(o.instance=i,o.state.loading=5):(i=Nn.get(t),i||(i={rel:"preload",as:"style",href:a.href,crossOrigin:a.crossOrigin,integrity:a.integrity,media:a.media,hrefLang:a.hrefLang,referrerPolicy:a.referrerPolicy},Nn.set(t,i)),gq(r,t,i,o.state))),e&&n===null)throw Error(P(528,""));return o}if(e&&n!==null)throw Error(P(529,""));return null;case"script":return e=a.async,a=a.src,typeof a=="string"&&e&&typeof e!="function"&&typeof e!="symbol"?(a=Su(a),e=Fl(r).hoistableScripts,n=e.get(a),n||(n={type:"script",instance:null,count:0,state:null},e.set(a,n)),n):{type:"void",instance:null,count:0,state:null};default:throw Error(P(444,t))}}function cu(t){return'href="'+In(t)+'"'}function kf(t){return'link[rel="stylesheet"]['+t+"]"}function o_(t){return it({},t,{"data-precedence":t.precedence,precedence:null})}function gq(t,e,a,n){if(e=t.querySelector('link[rel="preload"][as="style"]['+e+"]")){if(e[mp]!==!0){n.loading=1;return}}else e=t.createElement("link"),e[mp]=!0,e.onload=e.onerror=ML.bind(null,e),ha(e,"link",a),Kt(e),t.head.appendChild(e);n.preload=e,e.addEventListener("load",function(){return n.loading|=1}),e.addEventListener("error",function(){return n.loading|=2})}function Su(t){return'[src="'+In(t)+'"]'}function Lf(t){return"script[async]"+t}function oL(t,e,a){if(e.count++,e.instance===null)switch(e.type){case"style":var n=t.querySelector('style[data-href~="'+In(a.href)+'"]');if(n)return e.instance=n,Kt(n),n;var r=it({},a,{"data-href":a.href,"data-precedence":a.precedence,href:null,precedence:null});return n=(t.ownerDocument||t).createElement("style"),Kt(n),ha(n,"style",r),op(n,a.precedence,t),e.instance=n;case"stylesheet":r=cu(a.href);var i=t.querySelector(kf(r));if(i)return e.state.loading|=4,e.instance=i,Kt(i),i;n=o_(a),(r=Nn.get(r))&&Hx(n,r),i=(t.ownerDocument||t).createElement("link"),Kt(i);var o=i;return o._p=new Promise(function(s,l){o.onload=s,o.onerror=l}),ha(i,"link",n),e.state.loading|=4,op(i,a.precedence,t),e.instance=i;case"script":return i=Su(a.src),(r=t.querySelector(Lf(i)))?(e.instance=r,Kt(r),r):(n=a,(r=Nn.get(i))&&(n=it({},a),jx(n,r)),t=t.ownerDocument||t,r=t.createElement("script"),Kt(r),ha(r,"link",n),t.head.appendChild(r),e.instance=r);case"void":return null;default:throw Error(P(443,e.type))}else e.type==="stylesheet"&&(e.state.loading&4)===0&&(n=e.instance,e.state.loading|=4,op(n,a.precedence,t));return e.instance}function op(t,e,a){for(var n=a.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),r=n.length?n[n.length-1]:null,i=r,o=0;o<n.length;o++){var s=n[o];if(s.dataset.precedence===e)i=s;else if(i!==r)break}i?i.parentNode.insertBefore(t,i.nextSibling):(e=a.nodeType===9?a.head:a,e.insertBefore(t,e.firstChild))}function Hx(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.title==null&&(t.title=e.title)}function jx(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.integrity==null&&(t.integrity=e.integrity)}var sp=null;function sL(t,e,a){if(sp===null){var n=new Map,r=sp=new Map;r.set(a,n)}else r=sp,n=r.get(a),n||(n=new Map,r.set(a,n));if(n.has(t))return n;for(n.set(t,null),a=a.getElementsByTagName(t),r=0;r<a.length;r++){var i=a[r];if(!(i[xf]||i[ua]||t==="link"&&i.getAttribute("rel")==="stylesheet")&&i.namespaceURI!=="http://www.w3.org/2000/svg"){var o=i.getAttribute(e)||"";o=t+o;var s=n.get(o);s?s.push(i):n.set(o,[i])}}return n}function Y0(t,e,a){t=t.ownerDocument||t,t.head.insertBefore(a,e==="title"?t.querySelector("head > title"):null)}function Oq(t,e,a){if(a===1||e.itemProp!=null)return!1;switch(t){case"meta":case"title":return!0;case"style":if(typeof e.precedence!="string"||typeof e.href!="string"||e.href==="")break;return!0;case"link":if(typeof e.rel!="string"||typeof e.href!="string"||e.href===""||e.onLoad||e.onError)break;return e.rel==="stylesheet"?(t=e.disabled,typeof e.precedence=="string"&&t==null):!0;case"script":if(e.async&&typeof e.async!="function"&&typeof e.async!="symbol"&&!e.onLoad&&!e.onError&&e.src&&typeof e.src=="string")return!0}return!1}function lL(t,e){return t==="img"&&e.src!=null&&e.src!==""&&e.onLoad==null&&e.loading!=="lazy"}function s_(t){return!(t.type==="stylesheet"&&(t.state.loading&3)===0)}function l_(t){return(t.width||100)*(t.height||100)*(typeof devicePixelRatio=="number"?devicePixelRatio:1)*.25}function uL(t,e){typeof e.decode=="function"&&(t.imgCount++,e.complete||(t.imgBytes+=l_(e),t.suspenseyImages.push(e)),t=Sq.bind(t),e.decode().then(t,t))}function bq(t,e,a,n){if(a.type==="stylesheet"&&(typeof n.media!="string"||matchMedia(n.media).matches!==!1)&&(a.state.loading&4)===0){if(a.instance===null){var r=cu(n.href),i=e.querySelector(kf(r));if(i){e=i._p,e!==null&&typeof e=="object"&&typeof e.then=="function"&&(t.count++,t=df.bind(t),e.then(t,t)),a.state.loading|=4,a.instance=i,Kt(i);return}i=e.ownerDocument||e,n=o_(n),(r=Nn.get(r))&&Hx(n,r),i=i.createElement("link"),Kt(i);var o=i;o._p=new Promise(function(s,l){o.onload=s,o.onerror=l}),ha(i,"link",n),a.instance=i}t.stylesheets===null&&(t.stylesheets=new Map),t.stylesheets.set(a,e),(e=a.state.preload)&&(a.state.loading&3)===0&&(t.count++,a=df.bind(t),e.addEventListener("load",a),e.addEventListener("error",a))}}var lp=0;function xq(t,e){return t.stylesheets&&t.count===0&&up(t,t.stylesheets),0<t.count||0<t.imgCount?function(a){var n=setTimeout(function(){if(t.stylesheets&&up(t,t.stylesheets),t.unsuspend){var i=t.unsuspend;t.unsuspend=null,i()}},6e4+e);0<t.imgBytes&&lp===0&&(lp=62500*QX());var r=setTimeout(function(){if(t.waitingForImages=!1,t.count===0&&(t.stylesheets&&up(t,t.stylesheets),t.unsuspend)){var i=t.unsuspend;t.unsuspend=null,i()}},(t.imgBytes>lp?50:800)+e);return t.unsuspend=a,function(){t.unsuspend=null,clearTimeout(n),clearTimeout(r)}}:null}function u_(t){if(t.count===0&&(t.imgCount===0||!t.waitingForImages)){if(t.stylesheets)up(t,t.stylesheets);else if(t.unsuspend){var e=t.unsuspend;t.unsuspend=null,e()}}}function df(){this.count--,u_(this)}function Sq(){this.imgCount--,u_(this)}var $p=null;function up(t,e){t.stylesheets=null,t.unsuspend!==null&&(t.count++,$p=new Map,e.forEach(yq,t),$p=null,df.call(t))}function yq(t,e){if(!(e.state.loading&4)){var a=$p.get(t);if(a)var n=a.get(null);else{a=new Map,$p.set(t,a);for(var r=t.querySelectorAll("link[data-precedence],style[data-precedence]"),i=0;i<r.length;i++){var o=r[i];(o.nodeName==="LINK"||o.getAttribute("media")!=="not all")&&(a.set(o.dataset.precedence,o),n=o)}n&&a.set(null,n)}r=e.instance,o=r.getAttribute("data-precedence"),i=a.get(o)||n,i===n&&a.set(null,r),a.set(o,r),this.count++,n=df.bind(this),r.addEventListener("load",n),r.addEventListener("error",n),i?i.parentNode.insertBefore(r,i.nextSibling):(t=t.nodeType===9?t.head:t,t.insertBefore(r,t.firstChild)),e.state.loading|=4}}var fu={$$typeof:Tr,Provider:null,Consumer:null,_currentValue:Os,_currentValue2:Os,_threadCount:0};function vq(t,e,a,n,r,i,o,s,l){this.tag=1,this.containerInfo=t,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=mb(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=mb(0),this.hiddenUpdates=mb(null),this.identifierPrefix=n,this.onUncaughtError=r,this.onCaughtError=i,this.onRecoverableError=o,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=l,this.transitionTypes=null,this.incompleteTransitions=new Map}function c_(t,e,a,n,r,i,o,s,l,u,c,f){return t=new vq(t,e,a,o,l,u,c,f,s),e=1,i===!0&&(e|=24),i=Ha(3,null,null,e),t.current=i,i.stateNode=t,e=px(),e.refCount++,t.pooledCache=e,e.refCount++,i.memoizedState={element:n,isDehydrated:a,cache:e},Ox(i),t}function f_(t){return t?(t=Ul,t):Ul}function d_(t,e,a,n,r,i){r=f_(r),n.context===null?n.context=r:n.pendingContext=r,n=ao(e),n.payload={element:a},i=i===void 0?null:i,i!==null&&(n.callback=i),a=no(t,n,e),a!==null&&(ja(a,t,e),qc(a,t,e))}function cL(t,e){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var a=t.retryLane;t.retryLane=a!==0&&a<e?a:e}}function Vx(t,e){cL(t,e),(t=t.alternate)&&cL(t,e)}function h_(t){if(t.tag===13||t.tag===31){var e=Ps(t,67108864);e!==null&&ja(e,t,67108864),Vx(t,67108864)}}function fL(t){if(t.tag===13||t.tag===31){var e=cn();e=ax(e);var a=Ps(t,e);a!==null&&ja(a,t,e),Vx(t,e)}}var du=!0;function Cq(t,e,a,n){var r=xe.T;xe.T=null;var i=He.p;try{He.p=2,Yx(t,e,a,n)}finally{He.p=i,xe.T=r}}function wq(t,e,a,n){var r=xe.T;xe.T=null;var i=He.p;try{He.p=8,Yx(t,e,a,n)}finally{He.p=i,xe.T=r}}function Yx(t,e,a,n){if(du){var r=W0(n);if(r===null)$b(t,e,n,Bp,a),dL(t,n);else if(Lq(r,t,e,a,n))n.stopPropagation();else if(dL(t,n),e&4&&-1<kq.indexOf(t)){for(;r!==null;){var i=mu(r);if(i!==null)switch(i.tag){case 3:if(i=i.stateNode,i.current.memoizedState.isDehydrated){var o=ds(i.pendingLanes);if(o!==0){var s=i;for(s.pendingLanes|=2,s.entangledLanes|=2;o;){var l=1<<31-un(o);s.entanglements[1]|=l,o&=~l}Br(i),(Ge&6)===0&&(Pp=sn()+500,wf(0,!1))}}break;case 31:case 13:s=Ps(i,2),s!==null&&ja(s,i,2),tm(),Vx(i,2)}if(i=W0(n),i===null&&$b(t,e,n,Bp,a),i===r)break;r=i}r!==null&&n.stopPropagation()}else $b(t,e,n,null,a)}}function W0(t){return t=ix(t),Wx(t)}var Bp=null;function Wx(t){if(Bp=null,t=ms(t),t!==null){var e=mf(t);if(e===null)t=null;else{var a=e.tag;if(a===13){if(t=bL(e),t!==null)return t;t=null}else if(a===31){if(t=xL(e),t!==null)return t;t=null}else if(a===3){if(e.stateNode.current.memoizedState.isDehydrated)return e.tag===3?e.stateNode.containerInfo:null;t=null}else e!==t&&(t=null)}}return Bp=t,null}function p_(t){switch(t){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"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"fullscreenerror":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"resize":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(B3()){case kL:return 2;case LL:return 8;case pp:case z3:return 32;case EL:return 268435456;default:return 32}default:return 32}}var K0=!1,so=null,lo=null,uo=null,hf=new Map,pf=new Map,Hi=[],kq="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 dL(t,e){switch(t){case"focusin":case"focusout":so=null;break;case"dragenter":case"dragleave":lo=null;break;case"mouseover":case"mouseout":uo=null;break;case"pointerover":case"pointerout":hf.delete(e.pointerId);break;case"gotpointercapture":case"lostpointercapture":pf.delete(e.pointerId)}}function Ic(t,e,a,n,r,i){return t===null||t.nativeEvent!==i?(t={blockedOn:e,domEventName:a,eventSystemFlags:n,nativeEvent:i,targetContainers:[r]},e!==null&&(e=mu(e),e!==null&&h_(e)),t):(t.eventSystemFlags|=n,e=t.targetContainers,r!==null&&e.indexOf(r)===-1&&e.push(r),t)}function Lq(t,e,a,n,r){switch(e){case"focusin":return so=Ic(so,t,e,a,n,r),!0;case"dragenter":return lo=Ic(lo,t,e,a,n,r),!0;case"mouseover":return uo=Ic(uo,t,e,a,n,r),!0;case"pointerover":var i=r.pointerId;return hf.set(i,Ic(hf.get(i)||null,t,e,a,n,r)),!0;case"gotpointercapture":return i=r.pointerId,pf.set(i,Ic(pf.get(i)||null,t,e,a,n,r)),!0}return!1}function m_(t){var e=ms(t.target);if(e!==null){var a=mf(e);if(a!==null){if(e=a.tag,e===13){if(e=bL(a),e!==null){t.blockedOn=e,$w(t.priority,function(){fL(a)});return}}else if(e===31){if(e=xL(a),e!==null){t.blockedOn=e,$w(t.priority,function(){fL(a)});return}}else if(e===3&&a.stateNode.current.memoizedState.isDehydrated){t.blockedOn=a.tag===3?a.stateNode.containerInfo:null;return}}}t.blockedOn=null}function cp(t){if(t.blockedOn!==null)return!1;for(var e=t.targetContainers;0<e.length;){var a=W0(t.nativeEvent);if(a===null){a=t.nativeEvent;var n=new a.constructor(a.type,a);t0=n,a.target.dispatchEvent(n),t0=null}else return e=mu(a),e!==null&&h_(e),t.blockedOn=a,!1;e.shift()}return!0}function hL(t,e,a){cp(t)&&a.delete(e)}function Eq(){K0=!1,so!==null&&cp(so)&&(so=null),lo!==null&&cp(lo)&&(lo=null),uo!==null&&cp(uo)&&(uo=null),hf.forEach(hL),pf.forEach(hL)}function Zh(t,e){t.blockedOn===e&&(t.blockedOn=null,K0||(K0=!0,Xt.unstable_scheduleCallback(Xt.unstable_NormalPriority,Eq)))}var Fh=null;function pL(t){Fh!==t&&(Fh=t,Xt.unstable_scheduleCallback(Xt.unstable_NormalPriority,function(){Fh===t&&(Fh=null);for(var e=0;e<t.length;e+=3){var a=t[e],n=t[e+1],r=t[e+2];if(typeof n!="function"){if(Wx(n||a)===null)continue;break}var i=mu(a);i!==null&&(t.splice(e,3),e-=3,O0(i,{pending:!0,data:r,method:a.method,action:n},n,r))}}))}function hu(t){function e(l){return Zh(l,t)}so!==null&&Zh(so,t),lo!==null&&Zh(lo,t),uo!==null&&Zh(uo,t),hf.forEach(e),pf.forEach(e);for(var a=0;a<Hi.length;a++){var n=Hi[a];n.blockedOn===t&&(n.blockedOn=null)}for(;0<Hi.length&&(a=Hi[0],a.blockedOn===null);)m_(a),a.blockedOn===null&&Hi.shift();if(a=(t.ownerDocument||t).$$reactFormReplay,a!=null)for(n=0;n<a.length;n+=3){var r=a[n],i=a[n+1],o=r[Ya]||null;if(typeof i=="function")o||pL(a);else if(o){var s=null;if(i&&i.hasAttribute("formAction")){if(r=i,o=i[Ya]||null)s=o.formAction;else if(Wx(r)!==null)continue}else s=o.action;typeof s=="function"?a[n+1]=s:(a.splice(n,3),n-=3),pL(a)}}}function g_(){function t(i){i.canIntercept&&i.info==="react-transition"&&i.intercept({handler:function(){return new Promise(function(o){return r=o})},focusReset:"manual",scroll:"manual"})}function e(){r!==null&&(r(),r=null),n||setTimeout(a,20)}function a(){if(!n&&!navigation.transition){var i=navigation.currentEntry;i&&i.url!=null&&navigation.navigate(i.url,{state:i.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var n=!1,r=null;return navigation.addEventListener("navigate",t),navigation.addEventListener("navigatesuccess",e),navigation.addEventListener("navigateerror",e),setTimeout(a,100),function(){n=!0,navigation.removeEventListener("navigate",t),navigation.removeEventListener("navigatesuccess",e),navigation.removeEventListener("navigateerror",e),r!==null&&(r(),r=null)}}}function Kx(t){this._internalRoot=t}rm.prototype.render=Kx.prototype.render=function(t){var e=this._internalRoot;if(e===null)throw Error(P(409));var a=e.current,n=cn();d_(a,n,t,e,null,null)};rm.prototype.unmount=Kx.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var e=t.containerInfo;d_(t.current,2,null,t,null,null),tm(),e[pu]=null}};function rm(t){this._internalRoot=t}rm.prototype.unstable_scheduleHydration=function(t){if(t){var e=PL();t={blockedOn:null,target:t,priority:e};for(var a=0;a<Hi.length&&e!==0&&e<Hi[a].priority;a++);Hi.splice(a,0,t),a===0&&m_(t)}};var mL=gL.version;if(mL!=="19.3.1")throw Error(P(527,mL,"19.3.1"));He.findDOMNode=function(t){var e=t._reactInternals;if(e===void 0)throw typeof t.render=="function"?Error(P(188)):(t=Object.keys(t).join(","),Error(P(268,t)));return t=A3(e),t=t!==null?SL(t):null,t=t===null?null:t.stateNode,t};var Aq={bundleType:0,version:"19.3.1",rendererPackageName:"react-dom",currentDispatcherRef:xe,reconcilerVersion:"19.3.1"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&(Pc=__REACT_DEVTOOLS_GLOBAL_HOOK__,!Pc.isDisabled&&Pc.supportsFiber))try{gf=Pc.inject(Aq),ln=Pc}catch{}var Pc;im.createRoot=function(t,e){if(!OL(t))throw Error(P(299));var a=!1,n="",r=YE,i=WE,o=KE;return e!=null&&(e.unstable_strictMode===!0&&(a=!0),e.identifierPrefix!==void 0&&(n=e.identifierPrefix),e.onUncaughtError!==void 0&&(r=e.onUncaughtError),e.onCaughtError!==void 0&&(i=e.onCaughtError),e.onRecoverableError!==void 0&&(o=e.onRecoverableError)),e=c_(t,1,!1,null,null,a,n,null,r,i,o,g_),t[pu]=e.current,qx(t),new Kx(e)};im.hydrateRoot=function(t,e,a){if(!OL(t))throw Error(P(299));var n=!1,r="",i=YE,o=WE,s=KE,l=null;return a!=null&&(a.unstable_strictMode===!0&&(n=!0),a.identifierPrefix!==void 0&&(r=a.identifierPrefix),a.onUncaughtError!==void 0&&(i=a.onUncaughtError),a.onCaughtError!==void 0&&(o=a.onCaughtError),a.onRecoverableError!==void 0&&(s=a.onRecoverableError),a.formState!==void 0&&(l=a.formState)),e=c_(t,1,!0,e,a??null,n,r,l,i,o,s,g_),e.context=f_(null),a=e.current,n=cn(),n=ax(n),r=ao(n),r.callback=null,no(a,r,n),a=n,e.current.lanes=a,bf(e,a),Br(e),t[pu]=e.current,qx(t),new rm(e)};im.version="19.3.1"});var S_=be((mee,x_)=>{"use strict";function b_(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(b_)}catch(t){console.error(t)}}b_(),x_.exports=O_()});var v_=be(om=>{"use strict";var _q=Symbol.for("react.transitional.element"),Rq=Symbol.for("react.fragment");function y_(t,e,a){var n=null;if(a!==void 0&&(n=""+a),e.key!==void 0&&(n=""+e.key),"key"in e){a={};for(var r in e)r!=="key"&&(a[r]=e[r])}else a=e;return e=a.ref,{$$typeof:_q,type:t,key:n,ref:e!==void 0?e:null,props:a}}om.Fragment=Rq;om.jsx=y_;om.jsxs=y_});var ae=be((Oee,C_)=>{"use strict";C_.exports=v_()});var QP=be((Bie,NP)=>{function wP(t){return t instanceof Map?t.clear=t.delete=t.set=function(){throw new Error("map is read-only")}:t instanceof Set&&(t.add=t.clear=t.delete=function(){throw new Error("set is read-only")}),Object.freeze(t),Object.getOwnPropertyNames(t).forEach(e=>{let a=t[e],n=typeof a;(n==="object"||n==="function")&&!Object.isFrozen(a)&&wP(a)}),t}var zm=class{constructor(e){e.data===void 0&&(e.data={}),this.data=e.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}};function kP(t){return t.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;")}function Qo(t,...e){let a=Object.create(null);for(let n in t)a[n]=t[n];return e.forEach(function(n){for(let r in n)a[r]=n[r]}),a}var fG="</span>",bP=t=>!!t.scope,dG=(t,{prefix:e})=>{if(t.startsWith("language:"))return t.replace("language:","language-");if(t.includes(".")){let a=t.split(".");return[`${e}${a.shift()}`,...a.map((n,r)=>`${n}${"_".repeat(r+1)}`)].join(" ")}return`${e}${t}`},YS=class{constructor(e,a){this.buffer="",this.classPrefix=a.classPrefix,e.walk(this)}addText(e){this.buffer+=kP(e)}openNode(e){if(!bP(e))return;let a=dG(e.scope,{prefix:this.classPrefix});this.span(a)}closeNode(e){bP(e)&&(this.buffer+=fG)}value(){return this.buffer}span(e){this.buffer+=`<span class="${e}">`}},xP=(t={})=>{let e={children:[]};return Object.assign(e,t),e},WS=class t{constructor(){this.rootNode=xP(),this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(e){this.top.children.push(e)}openNode(e){let a=xP({scope:e});this.add(a),this.stack.push(a)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(e){return this.constructor._walk(e,this.rootNode)}static _walk(e,a){return typeof a=="string"?e.addText(a):a.children&&(e.openNode(a),a.children.forEach(n=>this._walk(e,n)),e.closeNode(a)),e}static _collapse(e){typeof e!="string"&&e.children&&(e.children.every(a=>typeof a=="string")?e.children=[e.children.join("")]:e.children.forEach(a=>{t._collapse(a)}))}},KS=class extends WS{constructor(e){super(),this.options=e}addText(e){e!==""&&this.add(e)}startScope(e){this.openNode(e)}endScope(){this.closeNode()}__addSublanguage(e,a){let n=e.root;a&&(n.scope=`language:${a}`),this.add(n)}toHTML(){return new YS(this,this.options).value()}finalize(){return this.closeAllNodes(),!0}};function dd(t){return t?typeof t=="string"?t:t.source:null}function LP(t){return Gs("(?=",t,")")}function hG(t){return Gs("(?:",t,")*")}function pG(t){return Gs("(?:",t,")?")}function Gs(...t){return t.map(a=>dd(a)).join("")}function mG(t){let e=t[t.length-1];return typeof e=="object"&&e.constructor===Object?(t.splice(t.length-1,1),e):{}}function Xm(...t){return"("+(mG(t).capture?"":"?:")+t.map(n=>dd(n)).join("|")+")"}function EP(t){return new RegExp(t.toString()+"|").exec("").length-1}function gG(t,e){let a=t&&t.exec(e);return a&&a.index===0}var OG=new RegExp(Xm(/\[(?:[^\\\]]|\\.)*\]/,/\(\?<(?![=!])[^>]+>/,/\(\?'[^']+'/,/\(\??/,/\\([1-9][0-9]*)/,/\\./));function ey(t,{joinWith:e}){let a=0;return t.map(n=>{a+=1;let r=a,i=dd(n),o="";for(;i.length>0;){let s=OG.exec(i);if(!s){o+=i;break}o+=i.substring(0,s.index),i=i.substring(s.index+s[0].length),s[0][0]==="\\"&&s[1]?o+="\\"+String(Number(s[1])+r):(o+=s[0],(s[0]==="("||/^\(\?[<']/.test(s[0]))&&a++)}return o}).map(n=>`(${n})`).join(e)}var bG=/\b\B/,AP="[a-zA-Z]\\w*",ty="[a-zA-Z_]\\w*",_P="\\b\\d+(\\.\\d+)?",RP="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",TP="\\b(0b[01]+)",xG="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",SG=(t={})=>{let e=/^#![ ]*\//;return t.binary&&(t.begin=Gs(e,/.*\b/,t.binary,/\b.*/)),Qo({scope:"meta",begin:e,end:/$/,relevance:0,"on:begin":(a,n)=>{a.index!==0&&n.ignoreMatch()}},t)},hd={begin:"\\\\[\\s\\S]",relevance:0},yG={scope:"string",begin:"'",end:"'",illegal:"\\n",contains:[hd]},vG={scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[hd]},CG={begin:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/},qm=function(t,e,a={}){let n=Qo({scope:"comment",begin:t,end:e,contains:[]},a);n.contains.push({scope:"doctag",begin:"[ ]*(?=(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):)",end:/(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):/,excludeBegin:!0,relevance:0});let r=Xm("I","a","is","so","us","to","at","if","in","it","on",/[A-Za-z]+['](d|ve|re|ll|t|s|n)/,/[A-Za-z]+[-][a-z]+/,/[A-Za-z][a-z]{2,}/);return n.contains.push({begin:Gs(/[ ]+/,"(",r,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),n},wG=qm("//","$"),kG=qm("/\\*","\\*/"),LG=qm("#","$"),EG={scope:"number",begin:_P,relevance:0},AG={scope:"number",begin:RP,relevance:0},_G={scope:"number",begin:TP,relevance:0},RG={scope:"regexp",begin:/\/(?=[^/\n]*\/)/,end:/\/[gimuy]*/,contains:[hd,{begin:/\[/,end:/\]/,relevance:0,contains:[hd]}]},TG={scope:"title",begin:AP,relevance:0},IG={scope:"title",begin:ty,relevance:0},PG={begin:"\\.\\s*"+ty,relevance:0},MG=function(t){return Object.assign(t,{"on:begin":(e,a)=>{a.data._beginMatch=e[1]},"on:end":(e,a)=>{a.data._beginMatch!==e[1]&&a.ignoreMatch()}})},Bm=Object.freeze({__proto__:null,APOS_STRING_MODE:yG,BACKSLASH_ESCAPE:hd,BINARY_NUMBER_MODE:_G,BINARY_NUMBER_RE:TP,COMMENT:qm,C_BLOCK_COMMENT_MODE:kG,C_LINE_COMMENT_MODE:wG,C_NUMBER_MODE:AG,C_NUMBER_RE:RP,END_SAME_AS_BEGIN:MG,HASH_COMMENT_MODE:LG,IDENT_RE:AP,MATCH_NOTHING_RE:bG,METHOD_GUARD:PG,NUMBER_MODE:EG,NUMBER_RE:_P,PHRASAL_WORDS_MODE:CG,QUOTE_STRING_MODE:vG,REGEXP_MODE:RG,RE_STARTERS_RE:xG,SHEBANG:SG,TITLE_MODE:TG,UNDERSCORE_IDENT_RE:ty,UNDERSCORE_TITLE_MODE:IG});function DG(t,e){t.input[t.index-1]==="."&&e.ignoreMatch()}function NG(t,e){t.className!==void 0&&(t.scope=t.className,delete t.className)}function QG(t,e){e&&t.beginKeywords&&(t.begin="\\b("+t.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",t.__beforeBegin=DG,t.keywords=t.keywords||t.beginKeywords,delete t.beginKeywords,t.relevance===void 0&&(t.relevance=0))}function $G(t,e){Array.isArray(t.illegal)&&(t.illegal=Xm(...t.illegal))}function BG(t,e){if(t.match){if(t.begin||t.end)throw new Error("begin & end are not supported with match");t.begin=t.match,delete t.match}}function zG(t,e){t.relevance===void 0&&(t.relevance=1)}var UG=(t,e)=>{if(!t.beforeMatch)return;if(t.starts)throw new Error("beforeMatch cannot be used with starts");let a=Object.assign({},t);Object.keys(t).forEach(n=>{delete t[n]}),t.keywords=a.keywords,t.begin=Gs(a.beforeMatch,LP(a.begin)),t.starts={relevance:0,contains:[Object.assign(a,{endsParent:!0})]},t.relevance=0,delete a.beforeMatch},XG=["of","and","for","in","not","or","if","then","parent","list","value"],qG="keyword";function IP(t,e,a=qG){let n=Object.create(null);return typeof t=="string"?r(a,t.split(" ")):Array.isArray(t)?r(a,t):Object.keys(t).forEach(function(i){Object.assign(n,IP(t[i],e,i))}),n;function r(i,o){e&&(o=o.map(s=>s.toLowerCase())),o.forEach(function(s){let l=s.split("|");n[l[0]]=[i,ZG(l[0],l[1])]})}}function ZG(t,e){return e?Number(e):FG(t)?0:1}function FG(t){return XG.includes(t.toLowerCase())}var SP={},Fs=t=>{console.error(t)},yP=(t,...e)=>{console.log(`WARN: ${t}`,...e)},Iu=(t,e)=>{SP[`${t}/${e}`]||(console.log(`Deprecated as of ${t}. ${e}`),SP[`${t}/${e}`]=!0)},Um=new Error;function PP(t,e,{key:a}){let n=0,r=t[a],i={},o={};for(let s=1;s<=e.length;s++)o[s+n]=r[s],i[s+n]=!0,n+=EP(e[s-1]);t[a]=o,t[a]._emit=i,t[a]._multi=!0}function GG(t){if(Array.isArray(t.begin)){if(t.skip||t.excludeBegin||t.returnBegin)throw Fs("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),Um;if(typeof t.beginScope!="object"||t.beginScope===null)throw Fs("beginScope must be object"),Um;PP(t,t.begin,{key:"beginScope"}),t.begin=ey(t.begin,{joinWith:""})}}function HG(t){if(Array.isArray(t.end)){if(t.skip||t.excludeEnd||t.returnEnd)throw Fs("skip, excludeEnd, returnEnd not compatible with endScope: {}"),Um;if(typeof t.endScope!="object"||t.endScope===null)throw Fs("endScope must be object"),Um;PP(t,t.end,{key:"endScope"}),t.end=ey(t.end,{joinWith:""})}}function jG(t){t.scope&&typeof t.scope=="object"&&t.scope!==null&&(t.beginScope=t.scope,delete t.scope)}function VG(t){jG(t),typeof t.beginScope=="string"&&(t.beginScope={_wrap:t.beginScope}),typeof t.endScope=="string"&&(t.endScope={_wrap:t.endScope}),GG(t),HG(t)}function YG(t){function e(o,s){return new RegExp(dd(o),"m"+(t.case_insensitive?"i":"")+(t.unicodeRegex?"u":"")+(s?"g":""))}class a{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(s,l){l.position=this.position++,this.matchIndexes[this.matchAt]=l,this.regexes.push([l,s]),this.matchAt+=EP(s)+1}compile(){this.regexes.length===0&&(this.exec=()=>null);let s=this.regexes.map(l=>l[1]);this.matcherRe=e(ey(s,{joinWith:"|"}),!0),this.lastIndex=0}exec(s){this.matcherRe.lastIndex=this.lastIndex;let l=this.matcherRe.exec(s);if(!l)return null;let u=l.findIndex((f,d)=>d>0&&f!==void 0),c=this.matchIndexes[u];return l.splice(0,u),Object.assign(l,c)}}class n{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(s){if(this.multiRegexes[s])return this.multiRegexes[s];let l=new a;return this.rules.slice(s).forEach(([u,c])=>l.addRule(u,c)),l.compile(),this.multiRegexes[s]=l,l}resumingScanAtSamePosition(){return this.regexIndex!==0}considerAll(){this.regexIndex=0}addRule(s,l){this.rules.push([s,l]),l.type==="begin"&&this.count++}exec(s){let l=this.getMatcher(this.regexIndex);l.lastIndex=this.lastIndex;let u=l.exec(s);if(this.resumingScanAtSamePosition()&&!(u&&u.index===this.lastIndex)){let c=this.getMatcher(0);c.lastIndex=this.lastIndex+1,u=c.exec(s)}return u&&(this.regexIndex+=u.position+1,this.regexIndex===this.count&&this.considerAll()),u}}function r(o){let s=new n;return o.contains.forEach(l=>s.addRule(l.begin,{rule:l,type:"begin"})),o.terminatorEnd&&s.addRule(o.terminatorEnd,{type:"end"}),o.illegal&&s.addRule(o.illegal,{type:"illegal"}),s}function i(o,s){let l=o;if(o.isCompiled)return l;[NG,BG,VG,UG].forEach(c=>c(o,s)),t.compilerExtensions.forEach(c=>c(o,s)),o.__beforeBegin=null,[QG,$G,zG].forEach(c=>c(o,s)),o.isCompiled=!0;let u=null;return typeof o.keywords=="object"&&o.keywords.$pattern&&(o.keywords=Object.assign({},o.keywords),u=o.keywords.$pattern,delete o.keywords.$pattern),u=u||/\w+/,o.keywords&&(o.keywords=IP(o.keywords,t.case_insensitive)),l.keywordPatternRe=e(u,!0),s&&(o.begin||(o.begin=/\B|\b/),l.beginRe=e(l.begin),!o.end&&!o.endsWithParent&&(o.end=/\B|\b/),o.end&&(l.endRe=e(l.end)),l.terminatorEnd=dd(l.end)||"",o.endsWithParent&&s.terminatorEnd&&(l.terminatorEnd+=(o.end?"|":"")+s.terminatorEnd)),o.illegal&&(l.illegalRe=e(o.illegal)),o.contains||(o.contains=[]),o.contains=[].concat(...o.contains.map(function(c){return WG(c==="self"?o:c)})),o.contains.forEach(function(c){i(c,l)}),o.starts&&i(o.starts,s),l.matcher=r(l),l}if(t.compilerExtensions||(t.compilerExtensions=[]),t.contains&&t.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return t.classNameAliases=Qo(t.classNameAliases||{}),i(t)}function MP(t){return t?t.endsWithParent||MP(t.starts):!1}function WG(t){return t.variants&&!t.cachedVariants&&(t.cachedVariants=t.variants.map(function(e){return Qo(t,{variants:null},e)})),t.cachedVariants?t.cachedVariants:MP(t)?Qo(t,{starts:t.starts?Qo(t.starts):null}):Object.isFrozen(t)?Qo(t):t}var KG="11.12.0",JS=class extends Error{constructor(e,a){super(e),this.name="HTMLInjectionError",this.html=a}},VS=kP,vP=Qo,CP=Symbol("nomatch"),JG=7,DP=function(t){let e=Object.create(null),a=Object.create(null),n=[],r=!0,i="Could not find the language '{}', did you forget to load/include a language module?",o={disableAutodetect:!0,name:"Plain text",contains:[]},s={ignoreUnescapedHTML:!1,throwUnescapedHTML:!1,noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",cssSelector:"pre code",languages:null,__emitter:KS};function l(_){return s.noHighlightRe.test(_)}function u(_){let $=_.className+" ";$+=_.parentNode?_.parentNode.className:"";let z=s.languageDetectRe.exec($);if(z){let H=k(z[1]);return H||(yP(i.replace("{}",z[1])),yP("Falling back to no-highlight mode for this block.",_)),H?z[1]:"no-highlight"}return $.split(/\s+/).find(H=>l(H)||k(H))}function c(_,$,z){let H="",E="";typeof $=="object"?(H=_,z=$.ignoreIllegals,E=$.language):(Iu("10.7.0","highlight(lang, code, ...args) has been deprecated."),Iu("10.7.0",`Please use highlight(code, options) instead.
11
+ https://github.com/highlightjs/highlight.js/issues/2277`),E=_,H=$),z===void 0&&(z=!0);let N={code:H,language:E};Q("before:highlight",N);let F=N.result?N.result:f(N.language,N.code,z);return F.code=N.code,Q("after:highlight",F),F}function f(_,$,z,H){let E=Object.create(null);function N(ee,ce){return ee.keywords[ce]}function F(){if(!oe.keywords){Bt.addText(Xe);return}let ee=0;oe.keywordPatternRe.lastIndex=0;let ce=oe.keywordPatternRe.exec(Xe),Ae="";for(;ce;){Ae+=Xe.substring(ee,ce.index);let Ye=Vt.case_insensitive?ce[0].toLowerCase():ce[0],va=N(oe,Ye);if(va){let[ai,W5]=va;if(Bt.addText(Ae),Ae="",E[Ye]=(E[Ye]||0)+1,E[Ye]<=JG&&(us+=W5),ai.startsWith("_"))Ae+=ce[0];else{let K5=Vt.classNameAliases[ai]||ai;q(ce[0],K5)}}else Ae+=ce[0];ee=oe.keywordPatternRe.lastIndex,ce=oe.keywordPatternRe.exec(Xe)}Ae+=Xe.substring(ee),Bt.addText(Ae)}function B(){if(Xe==="")return;let ee=null;if(typeof oe.subLanguage=="string"){if(!e[oe.subLanguage]){Bt.addText(Xe);return}ee=f(oe.subLanguage,Xe,!0,ls[oe.subLanguage]),ls[oe.subLanguage]=ee._top}else ee=h(Xe,oe.subLanguage.length?oe.subLanguage:null);oe.relevance>0&&(us+=ee.relevance),Bt.__addSublanguage(ee._emitter,ee.language)}function V(){oe.subLanguage!=null?B():F(),Xe=""}function q(ee,ce){ee!==""&&(Bt.startScope(ce),Bt.addText(ee),Bt.endScope())}function Y(ee,ce){let Ae=1,Ye=ce.length-1;for(;Ae<=Ye;){if(!ee._emit[Ae]){Ae++;continue}let va=Vt.classNameAliases[ee[Ae]]||ee[Ae],ai=ce[Ae];va?q(ai,va):(Xe=ai,F(),Xe=""),Ae++}}function W(ee,ce){return ee.scope&&typeof ee.scope=="string"&&Bt.openNode(Vt.classNameAliases[ee.scope]||ee.scope),ee.beginScope&&(ee.beginScope._wrap?(q(Xe,Vt.classNameAliases[ee.beginScope._wrap]||ee.beginScope._wrap),Xe=""):ee.beginScope._multi&&(Y(ee.beginScope,ce),Xe="")),oe=Object.create(ee,{parent:{value:oe}}),oe}function Oe(ee,ce,Ae){let Ye=gG(ee.endRe,Ae);if(Ye){if(ee["on:end"]){let va=new zm(ee);ee["on:end"](ce,va),va.isMatchIgnored&&(Ye=!1)}if(Ye){for(;ee.endsParent&&ee.parent;)ee=ee.parent;return ee}}if(ee.endsWithParent)return Oe(ee.parent,ce,Ae)}function me(ee){return oe.matcher.regexIndex===0?(Xe+=ee[0],1):(HO=!0,0)}function nt(ee){let ce=ee[0],Ae=ee.rule,Ye=new zm(Ae),va=[Ae.__beforeBegin,Ae["on:begin"]];for(let ai of va)if(ai&&(ai(ee,Ye),Ye.isMatchIgnored))return me(ce);return Ae.skip?Xe+=ce:(Ae.excludeBegin&&(Xe+=ce),V(),!Ae.returnBegin&&!Ae.excludeBegin&&(Xe=ce)),W(Ae,ee),Ae.returnBegin?0:ce.length}function Qt(ee){let ce=ee[0],Ae=$.substring(ee.index),Ye=Oe(oe,ee,Ae);if(!Ye)return CP;let va=oe;oe.endScope&&oe.endScope._wrap?(V(),q(ce,oe.endScope._wrap)):oe.endScope&&oe.endScope._multi?(V(),Y(oe.endScope,ee)):va.skip?Xe+=ce:(va.returnEnd||va.excludeEnd||(Xe+=ce),V(),va.excludeEnd&&(Xe=ce));do oe.scope&&Bt.closeNode(),!oe.skip&&!oe.subLanguage&&(us+=oe.relevance),oe=oe.parent;while(oe!==Ye.parent);return Ye.starts&&W(Ye.starts,ee),va.returnEnd?0:ce.length}function $t(){let ee=[];for(let ce=oe;ce!==Vt;ce=ce.parent)ce.scope&&ee.unshift(ce.scope);ee.forEach(ce=>Bt.openNode(ce))}let ze={};function Lt(ee,ce){let Ae=ce&&ce[0];if(Xe+=ee,Ae==null)return V(),0;if(ze.type==="begin"&&ce.type==="end"&&ze.index===ce.index&&Ae===""){if(Xe+=$.slice(ce.index,ce.index+1),!r){let Ye=new Error(`0 width match regex (${_})`);throw Ye.languageName=_,Ye.badRule=ze.rule,Ye}return 1}if(ze=ce,ce.type==="begin")return nt(ce);if(ce.type==="illegal"&&!z){let Ye=new Error('Illegal lexeme "'+Ae+'" for mode "'+(oe.scope||"<unnamed>")+'"');throw Ye.mode=oe,Ye}else if(ce.type==="end"){let Ye=Qt(ce);if(Ye!==CP)return Ye}if(ce.type==="illegal"&&Ae==="")return ce.index===$.length||(Xe+=`
12
+ `),1;if(GO>1e5&&GO>ce.index*3)throw new Error("potential infinite loop, way more iterations than matches");return Xe+=Ae,Ae.length}let Vt=k(_);if(!Vt)throw Fs(i.replace("{}",_)),new Error('Unknown language: "'+_+'"');let Ue=YG(Vt),Ln="",oe=H||Ue,ls={},Bt=new s.__emitter(s);$t();let Xe="",us=0,ti=0,GO=0,HO=!1;try{if(Vt.__emitTokens)Vt.__emitTokens($,Bt);else{for(oe.matcher.considerAll();;){GO++,HO?HO=!1:oe.matcher.considerAll(),oe.matcher.lastIndex=ti;let ee=oe.matcher.exec($);if(!ee)break;let ce=$.substring(ti,ee.index),Ae=Lt(ce,ee);ti=ee.index+Ae}Lt($.substring(ti))}return Bt.finalize(),Ln=Bt.toHTML(),{language:_,value:Ln,relevance:us,illegal:!1,_emitter:Bt,_top:oe}}catch(ee){if(ee.message&&ee.message.includes("Illegal"))return{language:_,value:VS($),illegal:!0,relevance:0,_illegalBy:{message:ee.message,index:ti,context:$.slice(ti-100,ti+100),mode:ee.mode,resultSoFar:Ln},_emitter:Bt};if(r)return{language:_,value:VS($),illegal:!1,relevance:0,errorRaised:ee,_emitter:Bt,_top:oe};throw ee}}function d(_){let $={value:VS(_),illegal:!1,relevance:0,_top:o,_emitter:new s.__emitter(s)};return $._emitter.addText(_),$}function h(_,$){$=$||s.languages||Object.keys(e);let z=d(_),H=$.filter(k).filter(A).map(V=>f(V,_,!1));H.unshift(z);let E=H.sort((V,q)=>{if(V.relevance!==q.relevance)return q.relevance-V.relevance;if(V.language&&q.language){if(k(V.language).supersetOf===q.language)return 1;if(k(q.language).supersetOf===V.language)return-1}return 0}),[N,F]=E,B=N;return B.secondBest=F,B}function p(_,$,z){let H=$&&a[$]||z;_.classList.add("hljs"),_.classList.add(`language-${H}`)}function g(_){let $=null,z=u(_);if(l(z))return;if(Q("before:highlightElement",{el:_,language:z}),_.dataset.highlighted){console.log("Element previously highlighted. To highlight again, first unset `dataset.highlighted`.",_);return}if(_.children.length>0&&(s.ignoreUnescapedHTML||(console.warn("One of your code blocks includes unescaped HTML. This is a potentially serious security risk."),console.warn("https://github.com/highlightjs/highlight.js/wiki/security"),console.warn("The element with unescaped HTML:"),console.warn(_)),s.throwUnescapedHTML))throw new JS("One of your code blocks includes unescaped HTML.",_.innerHTML);$=_;let H=$.textContent,E=z?c(H,{language:z,ignoreIllegals:!0}):h(H);_.innerHTML=E.value,_.dataset.highlighted="yes",p(_,z,E.language),_.result={language:E.language,re:E.relevance,relevance:E.relevance},E.secondBest&&(_.secondBest={language:E.secondBest.language,relevance:E.secondBest.relevance}),Q("after:highlightElement",{el:_,result:E,text:H})}function b(_){s=vP(s,_)}let m=()=>{S(),Iu("10.6.0","initHighlighting() deprecated. Use highlightAll() now.")};function O(){S(),Iu("10.6.0","initHighlightingOnLoad() deprecated. Use highlightAll() now.")}let x=!1;function S(){function _(){S()}if(document.readyState==="loading"){x||window.addEventListener("DOMContentLoaded",_,!1),x=!0;return}document.querySelectorAll(s.cssSelector).forEach(g)}function y(_,$){let z=null;try{z=$(t)}catch(H){if(Fs("Language definition for '{}' could not be registered.".replace("{}",_)),r)Fs(H);else throw H;z=o}z.name||(z.name=_),e[_]=z,z.rawDefinition=$.bind(null,t),z.aliases&&L(z.aliases,{languageName:_})}function C(_){delete e[_];for(let $ of Object.keys(a))a[$]===_&&delete a[$]}function v(){return Object.keys(e)}function k(_){return _=(_||"").toLowerCase(),e[_]||e[a[_]]}function L(_,{languageName:$}){typeof _=="string"&&(_=[_]),_.forEach(z=>{a[z.toLowerCase()]=$})}function A(_){let $=k(_);return $&&!$.disableAutodetect}function R(_){_["before:highlightBlock"]&&!_["before:highlightElement"]&&(_["before:highlightElement"]=$=>{_["before:highlightBlock"](Object.assign({block:$.el},$))}),_["after:highlightBlock"]&&!_["after:highlightElement"]&&(_["after:highlightElement"]=$=>{_["after:highlightBlock"](Object.assign({block:$.el},$))})}function T(_){R(_),n.push(_)}function U(_){let $=n.indexOf(_);$!==-1&&n.splice($,1)}function Q(_,$){let z=_;n.forEach(function(H){H[z]&&H[z]($)})}function D(_){return Iu("10.7.0","highlightBlock will be removed entirely in v12.0"),Iu("10.7.0","Please use highlightElement now."),g(_)}Object.assign(t,{highlight:c,highlightAuto:h,highlightAll:S,highlightElement:g,highlightBlock:D,configure:b,initHighlighting:m,initHighlightingOnLoad:O,registerLanguage:y,unregisterLanguage:C,listLanguages:v,getLanguage:k,registerAliases:L,autoDetection:A,inherit:vP,addPlugin:T,removePlugin:U}),t.debugMode=function(){r=!1},t.safeMode=function(){r=!0},t.versionString=KG,t.regex={concat:Gs,lookahead:LP,either:Xm,optional:pG,anyNumberOfTimes:hG};for(let _ in Bm)typeof Bm[_]=="object"&&wP(Bm[_]);return Object.assign(t,Bm),t},Pu=DP({});Pu.newInstance=()=>DP({});NP.exports=Pu;Pu.HighlightJS=Pu;Pu.default=Pu});var BP=be((zie,$P)=>{function e6(t){let e=t.regex,a=e.concat(/[\p{L}_]/u,e.optional(/[\p{L}0-9_.-]*:/u),/[\p{L}0-9_.-]*/u),n=/[\p{L}0-9._:-]+/u,r={className:"symbol",begin:/&[a-z]+;|&#[0-9]+;|&#x[a-f0-9]+;/},i={begin:/\s/,contains:[{className:"keyword",begin:/#?[a-z_][a-z1-9_-]+/,illegal:/\n/}]},o=t.inherit(i,{begin:/\(/,end:/\)/}),s=t.inherit(t.APOS_STRING_MODE,{className:"string"}),l=t.inherit(t.QUOTE_STRING_MODE,{className:"string"}),u={endsWithParent:!0,illegal:/</,relevance:0,contains:[{className:"attr",begin:n,relevance:0},{begin:/=\s*/,relevance:0,contains:[{className:"string",endsParent:!0,variants:[{begin:/"/,end:/"/,contains:[r]},{begin:/'/,end:/'/,contains:[r]},{begin:/[^\s"'=<>`]+/}]}]}]};return{name:"HTML, XML",aliases:["html","xhtml","rss","atom","xjb","xsd","xsl","plist","wsf","svg"],case_insensitive:!0,unicodeRegex:!0,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,relevance:10,contains:[i,l,s,o,{begin:/\[/,end:/\]/,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,contains:[i,o,l,s]}]}]},t.COMMENT(/<!--/,/-->/,{relevance:10}),{begin:/<!\[CDATA\[/,end:/\]\]>/,relevance:10},r,{className:"meta",end:/\?>/,variants:[{begin:/<\?xml/,relevance:10,contains:[l]},{begin:/<\?[a-z][a-z0-9]+/}]},{className:"tag",begin:/<style(?=\s|>)/,end:/>/,keywords:{name:"style"},contains:[u],starts:{end:/<\/style>/,returnEnd:!0,subLanguage:"css"}},{className:"tag",begin:/<script(?=\s|>)/,end:/>/,keywords:{name:"script"},contains:[u],starts:{end:/<\/script>/,returnEnd:!0,subLanguage:"javascript"}},{className:"tag",begin:/<>|<\/>/},{className:"tag",begin:e.concat(/</,e.lookahead(e.concat(a,e.either(/\/>/,/>/,/\s/)))),end:/\/?>/,contains:[{className:"name",begin:a,relevance:0,starts:u}]},{className:"tag",begin:e.concat(/<\//,e.lookahead(e.concat(a,/>/))),contains:[{className:"name",begin:a,relevance:0},{begin:/>/,relevance:0,endsParent:!0}]}]}}$P.exports=e6});var UP=be((Uie,zP)=>{function t6(t){let e=t.regex,a={},n={begin:/\$\{/,end:/\}/,contains:["self",{begin:/:-/,contains:[a]}]};Object.assign(a,{className:"variable",variants:[{begin:e.concat(/\$[\w\d#@][\w\d_]*/,"(?![\\w\\d])(?![$])")},n]});let r={className:"subst",begin:/\$\(/,end:/\)/,contains:[t.BACKSLASH_ESCAPE]},i=t.inherit(t.COMMENT(),{match:[/(^|\s)/,/#.*$/],scope:{2:"comment"}}),o={begin:/<<-?\s*(?=\w+)/,starts:{contains:[t.END_SAME_AS_BEGIN({begin:/(\w+)/,end:/(\w+)/,className:"string"})]}},s={className:"string",begin:/"/,end:/"/,contains:[t.BACKSLASH_ESCAPE,a,r]};r.contains.push(s);let l={match:/\\"/},u={className:"string",begin:/'/,end:/'/},c={match:/\\'/},f={begin:/\$?\(\(/,end:/\)\)/,contains:[{begin:/\d+#[0-9a-f]+/,className:"number"},t.NUMBER_MODE,a]},d=["fish","bash","zsh","sh","csh","ksh","tcsh","dash","scsh"],h=t.SHEBANG({binary:`(${d.join("|")})`,relevance:10}),p={className:"function",begin:/\w[\w\d_]*\s*\(\s*\)\s*\{/,returnBegin:!0,contains:[t.inherit(t.TITLE_MODE,{begin:/\w[\w\d_]*/})],relevance:0},g=["if","then","else","elif","fi","time","for","while","until","in","do","done","case","esac","coproc","function","select"],b=["true","false"],m={match:/(\/[a-z._-]+)+/},O=["break","cd","continue","eval","exec","exit","export","getopts","hash","pwd","readonly","return","shift","test","times","trap","umask","unset"],x=["alias","bind","builtin","caller","command","declare","echo","enable","help","let","local","logout","mapfile","printf","read","readarray","source","sudo","type","typeset","ulimit","unalias"],S=["autoload","bg","bindkey","bye","cap","chdir","clone","comparguments","compcall","compctl","compdescribe","compfiles","compgroups","compquote","comptags","comptry","compvalues","dirs","disable","disown","echotc","echoti","emulate","fc","fg","float","functions","getcap","getln","history","integer","jobs","kill","limit","log","noglob","popd","print","pushd","pushln","rehash","sched","setcap","setopt","stat","suspend","ttyctl","unfunction","unhash","unlimit","unsetopt","vared","wait","whence","where","which","zcompile","zformat","zftp","zle","zmodload","zparseopts","zprof","zpty","zregexparse","zsocket","zstyle","ztcp"],y=["chcon","chgrp","chown","chmod","cp","dd","df","dir","dircolors","ln","ls","mkdir","mkfifo","mknod","mktemp","mv","realpath","rm","rmdir","shred","sync","touch","truncate","vdir","b2sum","base32","base64","cat","cksum","comm","csplit","cut","expand","fmt","fold","head","join","md5sum","nl","numfmt","od","paste","ptx","pr","sha1sum","sha224sum","sha256sum","sha384sum","sha512sum","shuf","sort","split","sum","tac","tail","tr","tsort","unexpand","uniq","wc","arch","basename","chroot","date","dirname","du","echo","env","expr","factor","groups","hostid","id","link","logname","nice","nohup","nproc","pathchk","pinky","printenv","printf","pwd","readlink","runcon","seq","sleep","stat","stdbuf","stty","tee","test","timeout","tty","uname","unlink","uptime","users","who","whoami","yes"];return{name:"Bash",aliases:["sh","zsh"],keywords:{$pattern:/\b[a-z][a-z0-9._-]+\b/,keyword:g,literal:b,built_in:[...O,...x,"set","shopt",...S,...y]},contains:[h,t.SHEBANG(),p,f,i,o,m,s,l,u,c,a]}}zP.exports=t6});var qP=be((Xie,XP)=>{function a6(t){let e=t.regex,a=t.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),n="decltype\\(auto\\)",r="[a-zA-Z_]\\w*::",o="("+n+"|"+e.optional(r)+"[a-zA-Z_]\\w*"+e.optional("<[^<>]+>")+")",s=e.concat(/\batomic_/,e.either("bool","char","schar","uchar","short","ushort","int","uint","long","ulong","llong","ullong","char16_t","char32_t","wchar_t","int_least8_t","uint_least8_t","int_least16_t","uint_least16_t","int_least32_t","uint_least32_t","int_least64_t","uint_least64_t","int_fast8_t","uint_fast8_t","int_fast16_t","uint_fast16_t","int_fast32_t","uint_fast32_t","int_fast64_t","uint_fast64_t","intptr_t","uintptr_t","size_t","ptrdiff_t","intmax_t","uintmax_t"),/\b/),l={className:"type",variants:[{begin:"\\b[a-z\\d_]*_t\\b"},{match:s}]},c={className:"string",variants:[{begin:'(u8?|U|L)?"',end:'"',illegal:"\\n",contains:[t.BACKSLASH_ESCAPE]},{begin:"(u8?|U|L)?'("+"\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)"+"|.)",end:"'",illegal:"."},t.END_SAME_AS_BEGIN({begin:/(?:u8?|U|L)?R"([^()\\\s"]{0,16})\(/,end:/\)([^()\\\s"]{0,16})"/})]},f={className:"number",variants:[{match:/\b(0b[01']+)/},{match:/(-?)\b([\d']+(\.[\d']*)?|\.[\d']+)((ll|LL|l|L)(u|U)?|(u|U)(ll|LL|l|L)?|f|F|b|B)/},{match:/(-?)\b(0[xX][a-fA-F0-9]+(?:'[a-fA-F0-9]+)*(?:\.[a-fA-F0-9]*(?:'[a-fA-F0-9]*)*)?(?:[pP][-+]?[0-9]+)?(l|L)?(u|U)?)/},{match:/(-?)\b\d+(?:'\d+)*(?:\.\d*(?:'\d*)*)?(?:[eE][-+]?\d+)?/}],relevance:0},d={scope:"meta",begin:/#\s*include\b/,end:/$/,keywords:{keyword:"include"},contains:[{begin:/\\\n/},c,{scope:"string",begin:/<.*?>/},a,t.C_BLOCK_COMMENT_MODE]},h={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:"if else elif endif define undef warning error line pragma _Pragma ifdef ifndef elifdef elifndef include"},contains:[{begin:/\\\n/,relevance:0},t.inherit(c,{className:"string"}),a,t.C_BLOCK_COMMENT_MODE]},p=[d,h],g={className:"title",begin:e.optional(r)+t.IDENT_RE,relevance:0},b=e.optional(r)+t.IDENT_RE+"\\s*\\(",m=12,S={keyword:["asm","auto","break","case","continue","default","do","else","enum","extern","for","fortran","goto","if","inline","register","restrict","return","sizeof","typeof","typeof_unqual","struct","switch","typedef","union","volatile","while","_Alignas","_Alignof","_Atomic","_Generic","_Noreturn","_Static_assert","_Thread_local","alignas","alignof","noreturn","static_assert","thread_local","_Pragma"],type:["float","double","signed","unsigned","int","short","long","char","void","_Bool","_BitInt","_Complex","_Imaginary","_Decimal32","_Decimal64","_Decimal96","_Decimal128","_Decimal64x","_Decimal128x","_Float16","_Float32","_Float64","_Float128","_Float32x","_Float64x","_Float128x","const","static","constexpr","complex","bool","imaginary"],literal:"true false NULL",built_in:"std string wstring cin cout cerr clog stdin stdout stderr stringstream istringstream ostringstream auto_ptr deque list queue stack vector map set pair bitset multiset multimap unordered_set unordered_map unordered_multiset unordered_multimap priority_queue make_pair array shared_ptr abort terminate abs acos asin atan2 atan calloc ceil cosh cos exit exp fabs floor fmod fprintf fputs free frexp fscanf future isalnum isalpha iscntrl isdigit isgraph islower isprint ispunct isspace isupper isxdigit tolower toupper labs ldexp log10 log malloc realloc memchr memcmp memcpy memset modf pow printf putchar puts scanf sinh sin snprintf sprintf sqrt sscanf strcat strchr strcmp strcpy strcspn strlen strncat strncmp strncpy strpbrk strrchr strspn strstr tanh tan vfprintf vprintf vsprintf endl initializer_list unique_ptr"},y=[...p,l,a,t.C_BLOCK_COMMENT_MODE,f,c],C={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:S,contains:y.concat([{begin:/\(/,end:/\)/,keywords:S,contains:y.concat(["self"]),relevance:0}]),relevance:0},v={begin:"("+o+"[\\*&\\s]+){1,"+m+"}"+b,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:S,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:n,keywords:S,relevance:0},{begin:b,returnBegin:!0,contains:[t.inherit(g,{className:"title.function"})],relevance:0},{relevance:0,match:/,/},{className:"params",begin:/\(/,end:/\)/,keywords:S,relevance:0,contains:[a,t.C_BLOCK_COMMENT_MODE,c,f,l,{begin:/\(/,end:/\)/,keywords:S,relevance:0,contains:["self",a,t.C_BLOCK_COMMENT_MODE,c,f,l]}]},l,a,t.C_BLOCK_COMMENT_MODE,...p]};return{name:"C",aliases:["h"],keywords:S,disableAutodetect:!0,illegal:"</",contains:[].concat(C,v,y,[...p,{begin:t.IDENT_RE+"::",keywords:S},{className:"class",beginKeywords:"enum class struct union",end:/[{;:<>=]/,contains:[{beginKeywords:"final class struct"},t.TITLE_MODE]}]),exports:{preprocessor:h,strings:c,keywords:S}}}XP.exports=a6});var FP=be((qie,ZP)=>{function n6(t){let e=t.regex,a=t.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),n="decltype\\(auto\\)",r="[a-zA-Z_]\\w*::",o="(?!struct)("+n+"|"+e.optional(r)+"[a-zA-Z_]\\w*"+e.optional("<[^<>]+>")+")",s={className:"type",begin:"\\b[a-z\\d_]*_t\\b"},u={className:"string",variants:[{begin:'(u8?|U|L)?"',end:'"',illegal:"\\n",contains:[t.BACKSLASH_ESCAPE]},{begin:"(u8?|U|L)?'("+"\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)"+"|.)",end:"'",illegal:"."},t.END_SAME_AS_BEGIN({begin:/(?:u8?|U|L)?R"([^()\\\s"]{0,16})\(/,end:/\)([^()\\\s"]{0,16})"/})]},c={className:"number",variants:[{begin:"[+-]?(?:(?:\\b[0-9](?:'?[0-9])*\\.(?:[0-9](?:'?[0-9])*)?|\\.[0-9](?:'?[0-9])*)(?:[Ee][+-]?[0-9](?:'?[0-9])*)?|\\b[0-9](?:'?[0-9])*[Ee][+-]?[0-9](?:'?[0-9])*|\\b0[Xx](?:[0-9A-Fa-f](?:'?[0-9A-Fa-f])*(?:\\.(?:[0-9A-Fa-f](?:'?[0-9A-Fa-f])*)?)?|\\.[0-9A-Fa-f](?:'?[0-9A-Fa-f])*)[Pp][+-]?[0-9](?:'?[0-9])*)(?:[Ff](?:16|32|64|128)?|(BF|bf)16|[Ll]|)"},{begin:"[+-]?\\b(?:0[Bb][01](?:'?[01])*|0[Xx][0-9A-Fa-f](?:'?[0-9A-Fa-f])*|0(?:'?[0-7])*|[1-9](?:'?[0-9])*)(?:[Uu](?:LL?|ll?)|[Uu][Zz]?|(?:LL?|ll?)[Uu]?|[Zz][Uu]|)"}],relevance:0},f={scope:"meta",begin:/#\s*include\b/,end:/$/,keywords:{keyword:"include"},contains:[{begin:/\\\n/},u,{scope:"string",begin:/<.*?>/},a,t.C_BLOCK_COMMENT_MODE]},d={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:"if else elif endif define undef warning error line pragma _Pragma ifdef ifndef include"},contains:[{begin:/\\\n/,relevance:0},t.inherit(u,{className:"string"}),a,t.C_BLOCK_COMMENT_MODE]},h=[f,d],p={className:"title",begin:e.optional(r)+t.IDENT_RE,relevance:0},g=e.optional(r)+t.IDENT_RE+"\\s*\\(",b=12,m=["alignas","alignof","and","and_eq","asm","atomic_cancel","atomic_commit","atomic_noexcept","auto","bitand","bitor","break","case","catch","class","co_await","co_return","co_yield","compl","concept","const_cast|10","consteval","constexpr","constinit","continue","decltype","default","delete","do","dynamic_cast|10","else","enum","explicit","export","extern","false","final","for","friend","goto","if","import","inline","module","mutable","namespace","new","noexcept","not","not_eq","nullptr","operator","or","or_eq","override","private","protected","public","reflexpr","register","reinterpret_cast|10","requires","return","sizeof","static_assert","static_cast|10","struct","switch","synchronized","template","this","thread_local","throw","transaction_safe","transaction_safe_dynamic","true","try","typedef","typeid","typename","union","using","virtual","volatile","while","xor","xor_eq"],O=["bool","char","char16_t","char32_t","char8_t","double","float","int","long","short","void","wchar_t","unsigned","signed","const","static"],x=["any","auto_ptr","barrier","binary_semaphore","bitset","complex","condition_variable","condition_variable_any","counting_semaphore","deque","false_type","flat_map","flat_set","future","imaginary","initializer_list","istringstream","jthread","latch","lock_guard","multimap","multiset","mutex","optional","ostringstream","packaged_task","pair","promise","priority_queue","queue","recursive_mutex","recursive_timed_mutex","scoped_lock","set","shared_future","shared_lock","shared_mutex","shared_timed_mutex","shared_ptr","stack","string_view","stringstream","timed_mutex","thread","true_type","tuple","unique_lock","unique_ptr","unordered_map","unordered_multimap","unordered_multiset","unordered_set","variant","vector","weak_ptr","wstring","wstring_view"],S=["abort","abs","acos","apply","as_const","asin","atan","atan2","calloc","ceil","cerr","cin","clog","cos","cosh","cout","declval","endl","exchange","exit","exp","fabs","floor","fmod","forward","fprintf","fputs","free","frexp","fscanf","future","invoke","isalnum","isalpha","iscntrl","isdigit","isgraph","islower","isprint","ispunct","isspace","isupper","isxdigit","labs","launder","ldexp","log","log10","make_pair","make_shared","make_shared_for_overwrite","make_tuple","make_unique","malloc","memchr","memcmp","memcpy","memset","modf","move","pow","printf","putchar","puts","realloc","scanf","sin","sinh","snprintf","sprintf","sqrt","sscanf","std","stderr","stdin","stdout","strcat","strchr","strcmp","strcpy","strcspn","strlen","strncat","strncmp","strncpy","strpbrk","strrchr","strspn","strstr","swap","tan","tanh","terminate","to_underlying","tolower","toupper","vfprintf","visit","vprintf","vsprintf"],v={type:O,keyword:m,literal:["NULL","false","nullopt","nullptr","true"],built_in:["_Pragma"],_type_hints:x},k={className:"function.dispatch",relevance:0,keywords:{_hint:S},begin:e.concat(/\b/,`(?!${m.join("|")})`,t.IDENT_RE,e.lookahead(/(<[^<>]+>|)\s*\(/))},L=[k,...h,s,a,t.C_BLOCK_COMMENT_MODE,c,u],A={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:v,contains:L.concat([{begin:/\(/,end:/\)/,keywords:v,contains:L.concat(["self"]),relevance:0}]),relevance:0},R={className:"function",begin:"("+o+"[\\*&\\s]+){1,"+b+"}"+g,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:v,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:n,keywords:v,relevance:0},{begin:g,returnBegin:!0,contains:[p],relevance:0},{begin:/::/,relevance:0},{begin:/:/,endsWithParent:!0,contains:[u,c]},{relevance:0,match:/,/},{className:"params",begin:/\(/,end:/\)/,keywords:v,relevance:0,contains:[a,t.C_BLOCK_COMMENT_MODE,u,c,s,{begin:/\(/,end:/\)/,keywords:v,relevance:0,contains:["self",a,t.C_BLOCK_COMMENT_MODE,u,c,s]}]},s,a,t.C_BLOCK_COMMENT_MODE,...h]};return{name:"C++",aliases:["cc","c++","h++","hpp","hh","hxx","cxx"],keywords:v,illegal:"</",classNameAliases:{"function.dispatch":"built_in"},contains:[].concat(A,R,k,L,[...h,{begin:"\\b(deque|list|queue|priority_queue|pair|stack|vector|map|set|bitset|multiset|multimap|unordered_map|unordered_set|unordered_multiset|unordered_multimap|array|tuple|optional|variant|function|flat_map|flat_set)\\s*<(?!<)",end:">",keywords:v,contains:["self",s]},{begin:t.IDENT_RE+"::",keywords:v},{match:[/\b(?:enum(?:\s+(?:class|struct))?|class|struct|union)/,/\s+/,/\w+/],className:{1:"keyword",3:"title.class"}}])}}ZP.exports=n6});var HP=be((Zie,GP)=>{function r6(t){let e=["bool","byte","char","decimal","delegate","double","dynamic","enum","float","int","long","nint","nuint","object","sbyte","short","string","ulong","uint","ushort"],a=["public","private","protected","static","internal","protected","abstract","async","extern","override","unsafe","virtual","new","sealed","partial"],n=["default","false","null","true"],r=["abstract","as","base","break","case","catch","class","const","continue","do","else","event","explicit","extern","finally","fixed","for","foreach","goto","if","implicit","in","interface","internal","is","lock","namespace","new","operator","out","override","params","private","protected","public","readonly","record","ref","return","scoped","sealed","sizeof","stackalloc","static","struct","switch","this","throw","try","typeof","unchecked","unsafe","using","virtual","void","volatile","while"],i=["add","alias","and","ascending","args","async","await","by","descending","dynamic","equals","file","from","get","global","group","init","into","join","let","nameof","not","notnull","on","or","orderby","partial","record","remove","required","scoped","select","set","unmanaged","value|0","var","when","where","with","yield"],o={keyword:r.concat(i),built_in:e,literal:n},s=t.inherit(t.TITLE_MODE,{begin:"[a-zA-Z](\\.?\\w)*"}),l="\\d(_*\\d)*",u="([uU][lL]?|[lL][uU]?)?",f={className:"number",variants:[{begin:"\\b0[bB]_*[01](_*[01])*"+u},{begin:"(-?)\\b0[xX]_*[a-fA-F0-9](_*[a-fA-F0-9])*"+u},{begin:"(-?)(\\b"+l+"(\\.("+l+")?)?|\\."+l+")([eE][-+]?"+l+")?"+"([fFdDmM]|[uU][lL]?|[lL][uU]?)?"}],relevance:0},d={className:"string",begin:/"""("*)(?!")(.|\n)*?"""\1/,relevance:1},h={className:"string",begin:'@"',end:'"',contains:[{begin:'""'}]},p=t.inherit(h,{illegal:/\n/}),g={className:"subst",begin:/\{/,end:/\}/,keywords:o},b=t.inherit(g,{illegal:/\n/}),m={className:"string",begin:/\$"/,end:'"',illegal:/\n/,contains:[{begin:/\{\{/},{begin:/\}\}/},t.BACKSLASH_ESCAPE,b]},O={className:"string",begin:/\$@"/,end:'"',contains:[{begin:/\{\{/},{begin:/\}\}/},{begin:'""'},g]},x=t.inherit(O,{illegal:/\n/,contains:[{begin:/\{\{/},{begin:/\}\}/},{begin:'""'},b]});g.contains=[O,m,h,t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,f,t.C_BLOCK_COMMENT_MODE],b.contains=[x,m,p,t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,f,t.inherit(t.C_BLOCK_COMMENT_MODE,{illegal:/\n/})];let S={variants:[d,O,m,h,t.APOS_STRING_MODE,t.QUOTE_STRING_MODE]},y={begin:"<",end:">",contains:[{beginKeywords:"in out"},s]},C=t.IDENT_RE+"(<"+t.IDENT_RE+"(\\s*,\\s*"+t.IDENT_RE+")*>)?(\\[\\])?",v={begin:"@"+t.IDENT_RE,relevance:0};return{name:"C#",aliases:["cs","c#"],keywords:o,illegal:/::/,contains:[t.COMMENT("///","$",{returnBegin:!0,contains:[{className:"doctag",variants:[{begin:"///",relevance:0},{begin:"<!--|-->"},{begin:"</?",end:">"}]}]}),t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,{className:"meta",begin:"#",end:"$",keywords:{keyword:"if else elif endif define undef warning error line region endregion pragma checksum"}},S,f,{beginKeywords:"class interface",relevance:0,end:/[{;=]/,illegal:/[^\s:,]/,contains:[{beginKeywords:"where class"},s,y,t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE]},{beginKeywords:"namespace",relevance:0,end:/[{;=]/,illegal:/[^\s:]/,contains:[s,t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE]},{beginKeywords:"record",relevance:0,end:/[{;=]/,illegal:/[^\s:]/,contains:[s,y,t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE]},{className:"meta",begin:"^\\s*\\[(?=[\\w])",excludeBegin:!0,end:"\\]",excludeEnd:!0,contains:[{className:"string",begin:/"/,end:/"/}]},{beginKeywords:"new return throw await else",relevance:0},{className:"function",begin:"("+C+"\\s+)+"+t.IDENT_RE+"\\s*(<[^=]+>\\s*)?\\(",returnBegin:!0,end:/\s*[{;=]/,excludeEnd:!0,keywords:o,contains:[{beginKeywords:a.join(" "),relevance:0},{begin:t.IDENT_RE+"\\s*(<[^=]+>\\s*)?\\(",returnBegin:!0,contains:[t.TITLE_MODE,y],relevance:0},{match:/\(\)/},{className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:o,relevance:0,contains:[S,f,t.C_BLOCK_COMMENT_MODE]},t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE]},v]}}GP.exports=r6});var VP=be((Fie,jP)=>{var i6=t=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:t.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},UNICODE_RANGE:{scope:"number",begin:/\b[Uu]\+[0-9A-Fa-f][0-9A-Fa-f?]{0,5}(-[0-9A-Fa-f][0-9A-Fa-f]{0,5})?/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[t.APOS_STRING_MODE,t.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:t.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z_][A-Za-z0-9_-]*/}}),o6=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","optgroup","option","p","picture","q","quote","samp","section","select","source","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],s6=["defs","g","marker","mask","pattern","svg","switch","symbol","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feFlood","feGaussianBlur","feImage","feMerge","feMorphology","feOffset","feSpecularLighting","feTile","feTurbulence","linearGradient","radialGradient","stop","circle","ellipse","image","line","path","polygon","polyline","rect","text","use","textPath","tspan","foreignObject","clipPath"],l6=[...o6,...s6],u6=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"].sort().reverse(),c6=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"].sort().reverse(),f6=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"].sort().reverse(),d6=["accent-color","align-content","align-items","align-self","alignment-baseline","all","anchor-name","animation","animation-composition","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-range","animation-range-end","animation-range-start","animation-timeline","animation-timing-function","appearance","aspect-ratio","backdrop-filter","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-position-x","background-position-y","background-repeat","background-size","baseline-shift","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-end-end-radius","border-end-start-radius","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-start-end-radius","border-start-start-radius","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-align","box-decoration-break","box-direction","box-flex","box-flex-group","box-lines","box-ordinal-group","box-orient","box-pack","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","color-scheme","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","contain-intrinsic-block-size","contain-intrinsic-height","contain-intrinsic-inline-size","contain-intrinsic-size","contain-intrinsic-width","container","container-name","container-type","content","content-visibility","corner-bottom-left-shape","corner-bottom-right-shape","corner-shape","corner-top-left-shape","corner-top-right-shape","counter-increment","counter-reset","counter-set","cue","cue-after","cue-before","cursor","cx","cy","direction","display","dominant-baseline","empty-cells","enable-background","field-sizing","fill","fill-opacity","fill-rule","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flood-color","flood-opacity","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-optical-sizing","font-palette","font-size","font-size-adjust","font-smooth","font-smoothing","font-stretch","font-style","font-synthesis","font-synthesis-position","font-synthesis-small-caps","font-synthesis-style","font-synthesis-weight","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-emoji","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","forced-color-adjust","gap","glyph-orientation-horizontal","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphenate-character","hyphenate-limit-chars","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","initial-letter","initial-letter-align","inline-size","inset","inset-area","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","justify-content","justify-items","justify-self","kerning","left","letter-spacing","lighting-color","line-break","line-height","line-height-step","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","margin-trim","marker","marker-end","marker-mid","marker-start","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","masonry-auto-flow","math-depth","math-shift","math-style","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-anchor","overflow-block","overflow-clip-margin","overflow-inline","overflow-wrap","overflow-x","overflow-y","overlay","overscroll-behavior","overscroll-behavior-block","overscroll-behavior-inline","overscroll-behavior-x","overscroll-behavior-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","paint-order","pause","pause-after","pause-before","perspective","perspective-origin","place-content","place-items","place-self","pointer-events","position","position-anchor","position-visibility","print-color-adjust","quotes","r","resize","rest","rest-after","rest-before","right","rotate","row-gap","ruby-align","ruby-position","scale","scroll-behavior","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scroll-timeline","scroll-timeline-axis","scroll-timeline-name","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","shape-rendering","speak","speak-as","src","stop-color","stop-opacity","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","tab-size","table-layout","text-align","text-align-all","text-align-last","text-anchor","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-skip-ink","text-decoration-style","text-decoration-thickness","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-size-adjust","text-transform","text-underline-offset","text-underline-position","text-wrap","text-wrap-mode","text-wrap-style","timeline-scope","top","touch-action","transform","transform-box","transform-origin","transform-style","transition","transition-behavior","transition-delay","transition-duration","transition-property","transition-timing-function","translate","unicode-bidi","unicode-range","user-modify","user-select","vector-effect","vertical-align","view-timeline","view-timeline-axis","view-timeline-inset","view-timeline-name","view-transition-name","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","white-space-collapse","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","x","y","z-index","zoom"].sort().reverse();function h6(t){let e=t.regex,a=i6(t),n={begin:/-(webkit|moz|ms|o)-(?=[a-z])/},r="and or not only",i=/@-?\w[\w]*(-\w+)*/,o="[a-zA-Z-][a-zA-Z0-9_-]*",s=[t.APOS_STRING_MODE,t.QUOTE_STRING_MODE];return{name:"CSS",case_insensitive:!0,illegal:/[=|'\$]/,keywords:{keyframePosition:"from to"},classNameAliases:{keyframePosition:"selector-tag"},contains:[a.BLOCK_COMMENT,n,a.CSS_NUMBER_MODE,{className:"selector-id",begin:/#[A-Za-z0-9_-]+/,relevance:0},{className:"selector-class",begin:"\\."+o,relevance:0},a.ATTRIBUTE_SELECTOR_MODE,{className:"selector-pseudo",variants:[{begin:":("+c6.join("|")+")"},{begin:":(:)?("+f6.join("|")+")"}]},a.CSS_VARIABLE,{className:"attribute",begin:"\\b("+d6.join("|")+")\\b"},{begin:/:/,end:/[;}{]/,contains:[a.BLOCK_COMMENT,a.HEXCOLOR,a.IMPORTANT,a.CSS_NUMBER_MODE,a.UNICODE_RANGE,...s,{begin:/(url|data-uri)\(/,end:/\)/,relevance:0,keywords:{built_in:"url data-uri"},contains:[...s,{className:"string",begin:/[^)]/,endsWithParent:!0,excludeEnd:!0}]},a.FUNCTION_DISPATCH]},{begin:e.lookahead(/@/),end:"[{;]",relevance:0,illegal:/:/,contains:[{className:"keyword",begin:i},{begin:/\s/,endsWithParent:!0,excludeEnd:!0,relevance:0,keywords:{$pattern:/[a-z-]+/,keyword:r,attribute:u6.join(" ")},contains:[{begin:/[a-z-]+(?=:)/,className:"attribute"},...s,a.CSS_NUMBER_MODE]}]},{className:"selector-tag",begin:"\\b("+l6.join("|")+")\\b"}]}}jP.exports=h6});var WP=be((Gie,YP)=>{function p6(t){let e=t.regex,a={begin:/<\/?[A-Za-z_]/,end:">",subLanguage:"xml",relevance:0},n={match:/^ {0,3}([-*_])[ \t]*(?:\1[ \t]*){2,}$/},r={className:"code",variants:[{begin:"(`{3,})[^`](.|\\n)*?\\1`*[ ]*"},{begin:"(~{3,})[^~](.|\\n)*?\\1~*[ ]*"},{begin:"```",end:"```+[ ]*$"},{begin:"~~~",end:"~~~+[ ]*$"},{begin:"`.+?`"},{begin:"(?=^( {4}|\\t))",contains:[{begin:"^( {4}|\\t)",end:"(\\n)$"}],relevance:0}]},i={className:"bullet",begin:"^[ ]*([*+-]|(\\d+\\.))(?=\\s+)",end:"\\s+",excludeEnd:!0},o={begin:/^\[[^\n]+\]:/,returnBegin:!0,contains:[{className:"symbol",begin:/\[/,end:/\]/,excludeBegin:!0,excludeEnd:!0},{className:"link",begin:/:\s*/,end:/$/,excludeBegin:!0}]},s=/[A-Za-z][A-Za-z0-9+.-]*/,l={variants:[{begin:/\[.+?\]\[.*?\]/,relevance:0},{begin:/\[.+?\]\(((data|javascript|mailto):|(?:http|ftp)s?:\/\/).*?\)/,relevance:2},{begin:e.concat(/\[.+?\]\(/,s,/:\/\/.*?\)/),relevance:2},{begin:/\[.+?\]\([./?&#].*?\)/,relevance:1},{begin:/\[.*?\]\(.*?\)/,relevance:0}],returnBegin:!0,contains:[{match:/\[(?=\])/},{className:"string",relevance:0,begin:"\\[",end:"\\]",excludeBegin:!0,returnEnd:!0},{className:"link",relevance:0,begin:"\\]\\(",end:"\\)",excludeBegin:!0,excludeEnd:!0},{className:"symbol",relevance:0,begin:"\\]\\[",end:"\\]",excludeBegin:!0,excludeEnd:!0}]},u={className:"strong",contains:[],variants:[{begin:/_{2}(?!\s)/,end:/_{2}/},{begin:/\*{2}(?!\s)/,end:/\*{2}/}]},c={className:"emphasis",contains:[],variants:[{begin:/\*(?![*\s])/,end:/\*/},{begin:/_(?![_\s])/,end:/_/,relevance:0}]},f=t.inherit(u,{contains:[]}),d=t.inherit(c,{contains:[]});u.contains.push(d),c.contains.push(f);let h=[a,l];return[u,c,f,d].forEach(m=>{m.contains=m.contains.concat(h)}),h=h.concat(u,c),{name:"Markdown",aliases:["md","mkdown","mkd"],contains:[{className:"section",variants:[{begin:"^#{1,6}",end:"$",contains:h},{begin:"(?=^.+?\\n[=-]{2,}$)",contains:[{begin:"^[=-]*$"},{begin:"^",end:"\\n",contains:h}]}]},a,i,n,u,c,{className:"quote",begin:"^>\\s+",contains:h,end:"$"},r,l,o,{scope:"literal",match:/&([a-zA-Z0-9]+|#[0-9]{1,7}|#[Xx][0-9a-fA-F]{1,6});/}]}}YP.exports=p6});var JP=be((Hie,KP)=>{function m6(t){let e=t.regex;return{name:"Diff",aliases:["patch"],contains:[{className:"meta",relevance:10,match:e.either(/^@@ +-\d+,\d+ +\+\d+,\d+ +@@/,/^@@ +-\d+ +\+\d+,\d+ +@@/,/^@@ +-\d+,\d+ +\+\d+ +@@/,/^@@ +-\d+ +\+\d+ +@@/,/^\*\*\* +\d+,\d+ +\*\*\*\*$/,/^--- +\d+,\d+ +----$/)},{className:"comment",variants:[{begin:e.either(/Index: /,/^index/,/={3,}/,/^-{3}/,/^\*{3} /,/^\+{3}/,/^diff --git/),end:/$/},{match:/^\*{15}$/}]},{className:"addition",begin:/^\+/,end:/$/},{className:"deletion",begin:/^-/,end:/$/},{className:"addition",begin:/^!/,end:/$/}]}}KP.exports=m6});var tM=be((jie,eM)=>{function g6(t){let e=t.regex,a="([a-zA-Z_]\\w*[!?=]?|[-+~]@|<<|>>|=~|===?|<=>|[<>]=?|\\*\\*|[-/+%^&*~`|]|\\[\\]=?)",n=e.either(/\b([A-Z]+[a-z0-9]+)+/,/\b([A-Z]+[a-z0-9]+)+[A-Z]+/),r=e.concat(n,/(::\w+)*/),o={"variable.constant":["__FILE__","__LINE__","__ENCODING__"],"variable.language":["self","super"],keyword:["alias","and","begin","BEGIN","break","case","class","defined","do","else","elsif","end","END","ensure","for","if","in","module","next","not","or","redo","require","rescue","retry","return","then","undef","unless","until","when","while","yield",...["include","extend","prepend","public","private","protected","raise","throw"]],built_in:["proc","lambda","attr_accessor","attr_reader","attr_writer","define_method","private_constant","module_function"],literal:["true","false","nil"]},s={className:"doctag",begin:"@[A-Za-z]+"},l={begin:"#<",end:">"},u=[t.COMMENT("#","$",{contains:[s]}),t.COMMENT("^=begin","^=end",{contains:[s],relevance:10}),t.COMMENT("^__END__",t.MATCH_NOTHING_RE)],c={className:"subst",begin:/#\{/,end:/\}/,keywords:o},f={className:"string",contains:[t.BACKSLASH_ESCAPE,c],variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/},{begin:/`/,end:/`/},{begin:/%[qQwWx]?\(/,end:/\)/},{begin:/%[qQwWx]?\[/,end:/\]/},{begin:/%[qQwWx]?\{/,end:/\}/},{begin:/%[qQwWx]?</,end:/>/},{begin:/%[qQwWx]?\//,end:/\//},{begin:/%[qQwWx]?%/,end:/%/},{begin:/%[qQwWx]?-/,end:/-/},{begin:/%[qQwWx]?\|/,end:/\|/},{begin:/\B\?(\\\d{1,3})/},{begin:/\B\?(\\x[A-Fa-f0-9]{1,2})/},{begin:/\B\?(\\u\{?[A-Fa-f0-9]{1,6}\}?)/},{begin:/\B\?(\\M-\\C-|\\M-\\c|\\c\\M-|\\M-|\\C-\\M-)[\x20-\x7e]/},{begin:/\B\?\\(c|C-)[\x20-\x7e]/},{begin:/\B\?\\?\S/},{begin:e.concat(/<<[-~]?'?/,e.lookahead(/(\w+)(?=\W)[^\n]*\n(?:[^\n]*\n)*?\s*\1\b/)),contains:[t.END_SAME_AS_BEGIN({begin:/(\w+)/,end:/(\w+)/,contains:[t.BACKSLASH_ESCAPE,c]})]}]},d="[1-9](_?[0-9])*|0",h="[0-9](_?[0-9])*",p={className:"number",relevance:0,variants:[{begin:`\\b(${d})(\\.(${h}))?([eE][+-]?(${h})|r)?i?\\b`},{begin:"\\b0[dD][0-9](_?[0-9])*r?i?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*r?i?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*r?i?\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*r?i?\\b"},{begin:"\\b0(_?[0-7])+r?i?\\b"}]},g={variants:[{match:/\(\)/},{className:"params",begin:/\(/,end:/(?=\))/,excludeBegin:!0,endsParent:!0,keywords:o}]},C=[f,{variants:[{match:[/class\s+/,r,/\s+<\s+/,r]},{match:[/\b(class|module)\s+/,r]}],scope:{2:"title.class",4:"title.class.inherited"},keywords:o},{match:[/(include|extend)\s+/,r],scope:{2:"title.class"},keywords:o},{relevance:0,match:[r,/\.new[. (]/],scope:{1:"title.class"}},{relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"},{relevance:0,match:n,scope:"title.class"},{match:[/def/,/\s+/,a],scope:{1:"keyword",3:"title.function"},contains:[g]},{begin:"::"},{className:"symbol",begin:t.UNDERSCORE_IDENT_RE+"(!|\\?)?:",relevance:0},{className:"symbol",begin:":(?!\\s)",contains:[f,{begin:a}],relevance:0},p,{className:"variable",begin:"(\\$\\W)|((\\$|@@?)(\\w+))(?=[^@$?])(?![A-Za-z])(?![@$?'])"},{className:"params",begin:/\|(?!=)/,end:/\|/,excludeBegin:!0,excludeEnd:!0,relevance:0,keywords:o},{begin:"("+t.RE_STARTERS_RE+"|unless)\\s*",keywords:"unless",contains:[{className:"regexp",contains:[t.BACKSLASH_ESCAPE,c],illegal:/\n/,variants:[{begin:"/",end:"/[a-z]*"},{begin:/%r\{/,end:/\}[a-z]*/},{begin:"%r\\(",end:"\\)[a-z]*"},{begin:"%r!",end:"![a-z]*"},{begin:"%r\\[",end:"\\][a-z]*"}]}].concat(l,u),relevance:0}].concat(l,u);c.contains=C,g.contains=C;let A=[{begin:/^\s*=>/,starts:{end:"$",contains:C}},{className:"meta.prompt",begin:"^("+"[>?]>"+"|"+"[\\w#]+\\(\\w+\\):\\d+:\\d+[>*]"+"|"+"(\\w+-)?\\d+\\.\\d+\\.\\d+(p\\d+)?[^\\d][^>]+>"+")(?=[ ])",starts:{end:"$",keywords:o,contains:C}}];return u.unshift(l),{name:"Ruby",aliases:["rb","gemspec","podspec","thor","irb"],keywords:o,illegal:/\/\*/,contains:[t.SHEBANG({binary:"ruby"})].concat(A).concat(u).concat(C)}}eM.exports=g6});var nM=be((Vie,aM)=>{function O6(t){let i={keyword:["break","case","chan","const","continue","default","defer","else","fallthrough","for","func","go","goto","if","import","interface","map","package","range","return","select","struct","switch","type","var"],type:["bool","byte","complex64","complex128","error","float32","float64","int8","int16","int32","int64","string","uint8","uint16","uint32","uint64","int","uint","uintptr","rune"],literal:["true","false","iota","nil"],built_in:["append","cap","close","complex","copy","imag","len","make","new","panic","print","println","real","recover","delete"]};return{name:"Go",aliases:["golang"],keywords:i,illegal:"</",contains:[t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,{className:"string",variants:[t.QUOTE_STRING_MODE,t.APOS_STRING_MODE,{begin:"`",end:"`"}]},{className:"number",variants:[{match:/-?\b0[xX]\.[a-fA-F0-9](_?[a-fA-F0-9])*[pP][+-]?\d(_?\d)*i?/,relevance:0},{match:/-?\b0[xX](_?[a-fA-F0-9])+((\.([a-fA-F0-9](_?[a-fA-F0-9])*)?)?[pP][+-]?\d(_?\d)*)?i?/,relevance:0},{match:/-?\b0[oO](_?[0-7])*i?/,relevance:0},{match:/-?\b0[bB](_?[01])*i?/,relevance:0},{match:/-?\.\d(_?\d)*([eE][+-]?\d(_?\d)*)?i?/,relevance:0},{match:/-?\b\d(_?\d)*(\.(\d(_?\d)*)?)?([eE][+-]?\d(_?\d)*)?i?/,relevance:0}]},{begin:/:=/},{className:"function",beginKeywords:"func",end:"\\s*(\\{|$)",excludeEnd:!0,contains:[t.TITLE_MODE,{className:"params",begin:/\(/,end:/\)/,endsParent:!0,keywords:i,illegal:/["']/}]}]}}aM.exports=O6});var iM=be((Yie,rM)=>{function b6(t){let e=t.regex,a=/[_A-Za-z][_0-9A-Za-z]*/;return{name:"GraphQL",aliases:["gql"],case_insensitive:!0,disableAutodetect:!1,keywords:{keyword:["query","mutation","subscription","type","input","schema","directive","interface","union","scalar","fragment","enum","on"],literal:["true","false","null"]},contains:[t.HASH_COMMENT_MODE,t.QUOTE_STRING_MODE,t.NUMBER_MODE,{scope:"punctuation",match:/[.]{3}/,relevance:0},{scope:"punctuation",begin:/[\!\(\)\:\=\[\]\{\|\}]{1}/,relevance:0},{scope:"variable",begin:/\$/,end:/\W/,excludeEnd:!0,relevance:0},{scope:"meta",match:/@\w+/,excludeEnd:!0},{scope:"symbol",begin:e.concat(a,e.lookahead(/\s*:/)),relevance:0}],illegal:[/[;<']/,/BEGIN/]}}rM.exports=b6});var sM=be((Wie,oM)=>{function x6(t){let e=t.regex,a={className:"number",relevance:0,variants:[{begin:/([+-]+)?[\d]+_[\d_]+/},{begin:t.NUMBER_RE}]},n=t.COMMENT();n.variants=[{begin:/;/,end:/$/},{begin:/#/,end:/$/}];let r={className:"variable",variants:[{begin:/\$[\w\d"][\w\d_]*/},{begin:/\$\{(.*?)\}/}]},i={className:"literal",begin:/\bon|off|true|false|yes|no\b/},o={className:"string",contains:[t.BACKSLASH_ESCAPE],variants:[{begin:"'''",end:"'''",relevance:10},{begin:'"""',end:'"""',relevance:10},{begin:'"',end:'"'},{begin:"'",end:"'"}]},s={begin:/\[/,end:/\]/,contains:[n,i,r,o,a,"self"],relevance:0},l=/[A-Za-z0-9_-]+/,u=/"(\\"|[^"])*"/,c=/'[^']*'/,f=e.either(l,u,c),d=e.concat(f,"(\\s*\\.\\s*",f,")*",e.lookahead(/\s*=\s*[^#\s]/));return{name:"TOML, also INI",aliases:["toml"],case_insensitive:!0,illegal:/\S/,contains:[n,{className:"section",begin:/\[+/,end:/\]+/},{begin:d,className:"attr",starts:{end:/$/,contains:[n,s,i,r,o,a]}}]}}oM.exports=x6});var fM=be((Kie,cM)=>{var Mu="[0-9](_*[0-9])*",Zm=`\\.(${Mu})`,Fm="[0-9a-fA-F](_*[0-9a-fA-F])*",lM={className:"number",variants:[{begin:`(\\b(${Mu})((${Zm})|\\.)?|(${Zm}))[eE][+-]?(${Mu})[fFdD]?\\b`},{begin:`\\b(${Mu})((${Zm})[fFdD]?\\b|\\.([fFdD]\\b)?)`},{begin:`(${Zm})[fFdD]?\\b`},{begin:`\\b(${Mu})[fFdD]\\b`},{begin:`\\b0[xX]((${Fm})\\.?|(${Fm})?\\.(${Fm}))[pP][+-]?(${Mu})[fFdD]?\\b`},{begin:"\\b(0|[1-9](_*[0-9])*)[lL]?\\b"},{begin:`\\b0[xX](${Fm})[lL]?\\b`},{begin:"\\b0(_*[0-7])*[lL]?\\b"},{begin:"\\b0[bB][01](_*[01])*[lL]?\\b"}],relevance:0};function uM(t,e,a){return a===-1?"":t.replace(e,n=>uM(t,e,a-1))}function S6(t){let e=t.regex,a="[\xC0-\u02B8a-zA-Z_$][\xC0-\u02B8a-zA-Z_$0-9]*",n="(?:(?:\\s*\\[\\s*])+)?",r=a+"<@@@>"+n,o="(?:"+("\\?(?:\\s+(?:extends|super)\\s+"+r+")?")+"|"+r+")",s=uM("(?:\\s*<\\s*"+o+"(?:\\s*,\\s*"+o+")*\\s*>)?",/<@@@>/g,2),d={keyword:["synchronized","abstract","private","var","static","if","const ","for","while","strictfp","finally","protected","import","native","final","void","enum","else","break","transient","catch","instanceof","volatile","case","assert","package","default","public","try","switch","continue","throws","protected","public","private","module","requires","exports","do","sealed","yield","permits","goto","when"],literal:["false","true","null"],type:["char","boolean","long","float","int","byte","short","double"],built_in:["super","this"]},h={className:"meta",begin:"@"+a,contains:[{begin:/\(/,end:/\)/,contains:["self"]}]},p={className:"params",begin:/\(/,end:/\)/,keywords:d,relevance:0,contains:[t.C_BLOCK_COMMENT_MODE],endsParent:!0};return{name:"Java",aliases:["jsp"],keywords:d,illegal:/<\/|#/,contains:[t.COMMENT("/\\*\\*","\\*/",{relevance:0,contains:[{begin:/\w+@/,relevance:0},{className:"doctag",begin:"@[A-Za-z]+"}]}),{begin:/import java\.[a-z]+\./,keywords:"import",relevance:2},t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,{begin:/"""/,end:/"""/,className:"string",contains:[t.BACKSLASH_ESCAPE]},t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,{match:[/\b(?:class|interface|enum|extends|implements|new)/,/\s+/,a],className:{1:"keyword",3:"title.class"}},{match:/non-sealed/,scope:"keyword"},{beginKeywords:"new throw return else yield assert",relevance:0},{begin:[a,e.concat(s,n,/\s+/),a,n,/\s*/,/=(?!=)/],className:{1:"type",3:"variable",6:"operator"}},{begin:[/record/,/\s+/,a],className:{1:"keyword",3:"title.class"},contains:[p,t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE]},{begin:[a,e.concat(s,n,/\s+/),a,/\s*(?=\()/],className:{1:"type",3:"title.function"},keywords:d,contains:[{className:"params",begin:/\(/,end:/\)/,keywords:d,relevance:0,contains:[h,t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,lM,t.C_BLOCK_COMMENT_MODE]},t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE]},lM,h]}}cM.exports=S6});var OM=be((Jie,gM)=>{var dM="[A-Za-z$_][0-9A-Za-z$_]*",y6=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends","using"],v6=["true","false","null","undefined","NaN","Infinity"],hM=["Object","Function","Boolean","Symbol","Math","Date","Number","BigInt","String","RegExp","Array","Float32Array","Float64Array","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Int32Array","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array","Set","Map","WeakSet","WeakMap","ArrayBuffer","SharedArrayBuffer","Atomics","DataView","JSON","Promise","Generator","GeneratorFunction","AsyncFunction","Reflect","Proxy","Intl","WebAssembly"],pM=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],mM=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],C6=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","self","global"],w6=[].concat(mM,hM,pM);function k6(t){let e=t.regex,a=(z,{after:H})=>{let E="</"+z[0].slice(1);return z.input.indexOf(E,H)!==-1},n=dM,r={begin:"<>",end:"</>"},i=/<[A-Za-z0-9\\._:-]+\s*\/>/,o={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(z,H)=>{let E=z[0].length+z.index,N=z.input[E];if(N==="<"||N===","){H.ignoreMatch();return}N===">"&&(a(z,{after:E})||H.ignoreMatch());let F,B=z.input.substring(E);if(F=B.match(/^\s*=/)){H.ignoreMatch();return}if((F=B.match(/^\s+extends\s+/))&&F.index===0){H.ignoreMatch();return}}},s={$pattern:dM,keyword:y6,literal:v6,built_in:w6,"variable.language":C6},l="[0-9](_?[0-9])*",u=`\\.(${l})`,c="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",f={className:"number",variants:[{begin:`(\\b(${c})((${u})|\\.)?|(${u}))[eE][+-]?(${l})\\b`},{begin:`\\b(${c})\\b((${u})\\b|\\.)?|(${u})\\b`},{begin:"\\b(0|[1-9](_?[0-9])*)n\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*n?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*n?\\b"},{begin:"\\b0[0-7]+n?\\b"}],relevance:0},d={className:"subst",begin:"\\$\\{",end:"\\}",keywords:s,contains:[]},h={begin:".?html`",end:"",starts:{end:"`",returnEnd:!1,contains:[t.BACKSLASH_ESCAPE,d],subLanguage:"xml"}},p={begin:".?css`",end:"",starts:{end:"`",returnEnd:!1,contains:[t.BACKSLASH_ESCAPE,d],subLanguage:"css"}},g={begin:".?gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[t.BACKSLASH_ESCAPE,d],subLanguage:"graphql"}},b={className:"string",begin:"`",end:"`",contains:[t.BACKSLASH_ESCAPE,d]},O={className:"comment",variants:[t.COMMENT(/\/\*\*(?!\/)/,"\\*/",{relevance:0,contains:[{begin:"(?=@[A-Za-z]+)",relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"},{className:"type",begin:"\\{",end:"\\}",excludeEnd:!0,excludeBegin:!0,relevance:0},{className:"variable",begin:n+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),t.C_BLOCK_COMMENT_MODE,t.C_LINE_COMMENT_MODE]},x=[t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,h,p,g,b,{match:/\$\d+/},f];d.contains=x.concat({begin:/\{/,end:/\}/,keywords:s,contains:["self"].concat(x)});let S=[].concat(O,d.contains),y=S.concat([{begin:/(\s*)\(/,end:/\)/,keywords:s,contains:["self"].concat(S)}]),C={className:"params",begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:s,contains:y},v={variants:[{match:[/class/,/\s+/,n,/\s+/,/extends/,/\s+/,e.concat(n,"(",e.concat(/\./,n),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,n],scope:{1:"keyword",3:"title.class"}}]},k={relevance:0,match:e.either(/\bJSON/,/\b[A-Z][a-z]+([A-Z][a-z]*|\d)*/,/\b[A-Z]{2,}([A-Z][a-z]+|\d)+([A-Z][a-z]*)*/,/\b[A-Z]{2,}[a-z]+([A-Z][a-z]+|\d)*([A-Z][a-z]*)*/),className:"title.class",keywords:{_:[...hM,...pM]}},L={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},A={variants:[{match:[/function/,/\s+/,n,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[C],illegal:/%/},R={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function T(z){return e.concat("(?!",z.join("|"),")")}let U={match:e.concat(/\b/,T([...mM,"super","import","await"].map(z=>`${z}\\s*\\(`)),n,e.lookahead(/\s*\(/)),className:"title.function",relevance:0},Q={begin:e.concat(/\./,e.lookahead(e.concat(n,/(?![0-9A-Za-z$_(])/))),end:n,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},D={match:[/get|set/,/\s+/,n,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},C]},_="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+t.UNDERSCORE_IDENT_RE+")\\s*=>",$={match:[/const|var|let/,/\s+/,n,/\s*/,/=\s*/,/(async\s*)?/,e.lookahead(_)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[C]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:s,exports:{PARAMS_CONTAINS:y,CLASS_REFERENCE:k},illegal:/#(?![$_A-Za-z])/,contains:[t.SHEBANG({label:"shebang",binary:"node",relevance:5}),L,t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,h,p,g,b,O,{match:/\$\d+/},f,k,{scope:"attr",match:n+e.lookahead(":"),relevance:0},$,{begin:"("+t.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[O,t.REGEXP_MODE,{className:"function",begin:_,returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:t.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:s,contains:y}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:r.begin,end:r.end},{match:i},{begin:o.begin,"on:begin":o.isTrulyOpeningTag,end:o.end}],subLanguage:"xml",contains:[{begin:o.begin,end:o.end,skip:!0,contains:["self"]}]}]},A,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+t.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[C,t.inherit(t.TITLE_MODE,{begin:n,className:"title.function"})]},{match:/\.\.\./,relevance:0},Q,{match:"\\$"+n,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[C]},U,R,v,D,{match:/\$[(.]/}]}}gM.exports=k6});var xM=be((eoe,bM)=>{var L6="([-+]?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)|NaN|[-+]?Infinity",E6={scope:"number",match:L6,relevance:0};function A6(t){let e={className:"attr",begin:/(("(\\.|[^\\"\r\n])*")|('(\\.|[^\\'\r\n])*'))(?=\s*:)/,relevance:1.01},a={match:/[{}[\],:]/,className:"punctuation",relevance:0},n=["true","false","null"],r={scope:"literal",beginKeywords:n.join(" ")};return{name:"JSON",aliases:["jsonc","json5"],keywords:{literal:n},contains:[e,a,t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,r,E6,t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE],illegal:"\\S"}}bM.exports=A6});var yM=be((toe,SM)=>{var Du="[0-9](_*[0-9])*",Gm=`\\.(${Du})`,Hm="[0-9a-fA-F](_*[0-9a-fA-F])*",_6={className:"number",variants:[{begin:`(\\b(${Du})((${Gm})|\\.)?|(${Gm}))[eE][+-]?(${Du})[fFdD]?\\b`},{begin:`\\b(${Du})((${Gm})[fFdD]?\\b|\\.([fFdD]\\b)?)`},{begin:`(${Gm})[fFdD]?\\b`},{begin:`\\b(${Du})[fFdD]\\b`},{begin:`\\b0[xX]((${Hm})\\.?|(${Hm})?\\.(${Hm}))[pP][+-]?(${Du})[fFdD]?\\b`},{begin:"\\b(0|[1-9](_*[0-9])*)[lL]?\\b"},{begin:`\\b0[xX](${Hm})[lL]?\\b`},{begin:"\\b0(_*[0-7])*[lL]?\\b"},{begin:"\\b0[bB][01](_*[01])*[lL]?\\b"}],relevance:0};function R6(t){let e={keyword:"abstract as val var vararg get set class object open private protected public noinline crossinline dynamic final enum if else do while for when throw try catch finally import package is in fun override companion reified inline lateinit init interface annotation data sealed internal infix operator out by constructor super tailrec where const inner suspend typealias external expect actual",built_in:"Byte Short Char Int Long Boolean Float Double Void Unit Nothing",literal:"true false null"},a={className:"keyword",begin:/\b(break|continue|return|this)\b/,starts:{contains:[{className:"symbol",begin:/@\w+/}]}},n={className:"symbol",begin:t.UNDERSCORE_IDENT_RE+"@"},r={className:"subst",begin:/\$\{/,end:/\}/,contains:[t.C_NUMBER_MODE]},i={className:"variable",begin:"\\$"+t.UNDERSCORE_IDENT_RE},o={className:"string",variants:[{begin:'"""',end:'"""(?=[^"])',contains:[i,r]},{begin:"'",end:"'",illegal:/\n/,contains:[t.BACKSLASH_ESCAPE]},{begin:'"',end:'"',illegal:/\n/,contains:[t.BACKSLASH_ESCAPE,i,r]}]};r.contains.push(o);let s={className:"meta",begin:"@(?:file|property|field|get|set|receiver|param|setparam|delegate)\\s*:(?:\\s*"+t.UNDERSCORE_IDENT_RE+")?"},l={className:"meta",begin:"@"+t.UNDERSCORE_IDENT_RE,contains:[{begin:/\(/,end:/\)/,contains:[t.inherit(o,{className:"string"}),"self"]}]},u=_6,c=t.COMMENT("/\\*","\\*/",{contains:[t.C_BLOCK_COMMENT_MODE]}),f={variants:[{className:"type",begin:t.UNDERSCORE_IDENT_RE},{begin:/\(/,end:/\)/,contains:[]}]},d=f;return d.variants[1].contains=[f],f.variants[1].contains=[d],{name:"Kotlin",aliases:["kt","kts","ktm","ktx"],keywords:e,contains:[t.COMMENT("/\\*\\*","\\*/",{relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"}]}),t.C_LINE_COMMENT_MODE,c,a,n,s,l,{className:"function",beginKeywords:"fun",end:"[(]|$",returnBegin:!0,excludeEnd:!0,keywords:e,relevance:5,contains:[{begin:t.UNDERSCORE_IDENT_RE+"\\s*\\(",returnBegin:!0,relevance:0,contains:[t.UNDERSCORE_TITLE_MODE]},{className:"type",begin:/</,end:/>/,keywords:"reified",relevance:0},{className:"params",begin:/\(/,end:/\)/,endsParent:!0,keywords:e,relevance:0,contains:[{begin:/:/,end:/[=,\/]/,endsWithParent:!0,contains:[f,t.C_LINE_COMMENT_MODE,c],relevance:0},t.C_LINE_COMMENT_MODE,c,s,l,o,t.C_NUMBER_MODE]},c]},{begin:[/class|interface|trait/,/\s+/,t.UNDERSCORE_IDENT_RE],beginScope:{3:"title.class"},keywords:"class interface trait",end:/[:\{(]|$/,excludeEnd:!0,illegal:"extends implements",contains:[{beginKeywords:"public protected internal private constructor"},t.UNDERSCORE_TITLE_MODE,{className:"type",begin:/</,end:/>/,excludeBegin:!0,excludeEnd:!0,relevance:0},{className:"type",begin:/[,:]\s*/,end:/[<\(,){\s]|$/,excludeBegin:!0,returnEnd:!0},s,l]},o,{className:"meta",begin:"^#!/usr/bin/env",end:"$",illegal:`
13
+ `},u]}}SM.exports=R6});var kM=be((aoe,wM)=>{var T6=t=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:t.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},UNICODE_RANGE:{scope:"number",begin:/\b[Uu]\+[0-9A-Fa-f][0-9A-Fa-f?]{0,5}(-[0-9A-Fa-f][0-9A-Fa-f]{0,5})?/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[t.APOS_STRING_MODE,t.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:t.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z_][A-Za-z0-9_-]*/}}),I6=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","optgroup","option","p","picture","q","quote","samp","section","select","source","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],P6=["defs","g","marker","mask","pattern","svg","switch","symbol","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feFlood","feGaussianBlur","feImage","feMerge","feMorphology","feOffset","feSpecularLighting","feTile","feTurbulence","linearGradient","radialGradient","stop","circle","ellipse","image","line","path","polygon","polyline","rect","text","use","textPath","tspan","foreignObject","clipPath"],M6=[...I6,...P6],D6=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"].sort().reverse(),vM=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"].sort().reverse(),CM=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"].sort().reverse(),N6=["accent-color","align-content","align-items","align-self","alignment-baseline","all","anchor-name","animation","animation-composition","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-range","animation-range-end","animation-range-start","animation-timeline","animation-timing-function","appearance","aspect-ratio","backdrop-filter","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-position-x","background-position-y","background-repeat","background-size","baseline-shift","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-end-end-radius","border-end-start-radius","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-start-end-radius","border-start-start-radius","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-align","box-decoration-break","box-direction","box-flex","box-flex-group","box-lines","box-ordinal-group","box-orient","box-pack","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","color-scheme","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","contain-intrinsic-block-size","contain-intrinsic-height","contain-intrinsic-inline-size","contain-intrinsic-size","contain-intrinsic-width","container","container-name","container-type","content","content-visibility","corner-bottom-left-shape","corner-bottom-right-shape","corner-shape","corner-top-left-shape","corner-top-right-shape","counter-increment","counter-reset","counter-set","cue","cue-after","cue-before","cursor","cx","cy","direction","display","dominant-baseline","empty-cells","enable-background","field-sizing","fill","fill-opacity","fill-rule","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flood-color","flood-opacity","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-optical-sizing","font-palette","font-size","font-size-adjust","font-smooth","font-smoothing","font-stretch","font-style","font-synthesis","font-synthesis-position","font-synthesis-small-caps","font-synthesis-style","font-synthesis-weight","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-emoji","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","forced-color-adjust","gap","glyph-orientation-horizontal","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphenate-character","hyphenate-limit-chars","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","initial-letter","initial-letter-align","inline-size","inset","inset-area","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","justify-content","justify-items","justify-self","kerning","left","letter-spacing","lighting-color","line-break","line-height","line-height-step","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","margin-trim","marker","marker-end","marker-mid","marker-start","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","masonry-auto-flow","math-depth","math-shift","math-style","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-anchor","overflow-block","overflow-clip-margin","overflow-inline","overflow-wrap","overflow-x","overflow-y","overlay","overscroll-behavior","overscroll-behavior-block","overscroll-behavior-inline","overscroll-behavior-x","overscroll-behavior-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","paint-order","pause","pause-after","pause-before","perspective","perspective-origin","place-content","place-items","place-self","pointer-events","position","position-anchor","position-visibility","print-color-adjust","quotes","r","resize","rest","rest-after","rest-before","right","rotate","row-gap","ruby-align","ruby-position","scale","scroll-behavior","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scroll-timeline","scroll-timeline-axis","scroll-timeline-name","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","shape-rendering","speak","speak-as","src","stop-color","stop-opacity","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","tab-size","table-layout","text-align","text-align-all","text-align-last","text-anchor","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-skip-ink","text-decoration-style","text-decoration-thickness","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-size-adjust","text-transform","text-underline-offset","text-underline-position","text-wrap","text-wrap-mode","text-wrap-style","timeline-scope","top","touch-action","transform","transform-box","transform-origin","transform-style","transition","transition-behavior","transition-delay","transition-duration","transition-property","transition-timing-function","translate","unicode-bidi","unicode-range","user-modify","user-select","vector-effect","vertical-align","view-timeline","view-timeline-axis","view-timeline-inset","view-timeline-name","view-transition-name","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","white-space-collapse","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","x","y","z-index","zoom"].sort().reverse(),Q6=vM.concat(CM).sort().reverse();function $6(t){let e=T6(t),a=Q6,n="and or not only",r="[\\w-]+",i="("+r+"|@\\{"+r+"\\})",o=[],s=[],l=function(x){return{className:"string",begin:"~?"+x+".*?"+x}},u=function(x,S,y){return{className:x,begin:S,relevance:y}},c={$pattern:/[a-z-]+/,keyword:n,attribute:D6.join(" ")},f={begin:"\\(",end:"\\)",contains:s,keywords:c,relevance:0};s.push(t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,l("'"),l('"'),e.CSS_NUMBER_MODE,{begin:"(url|data-uri)\\(",starts:{className:"string",end:"[\\)\\n]",excludeEnd:!0}},e.UNICODE_RANGE,e.HEXCOLOR,f,u("variable","@@?"+r,10),u("variable","@\\{"+r+"\\}"),u("built_in","~?`[^`]*?`"),{className:"attribute",begin:r+"\\s*:",end:":",returnBegin:!0,excludeEnd:!0},e.IMPORTANT,{beginKeywords:"and not"},e.FUNCTION_DISPATCH);let d=s.concat({begin:/\{/,end:/\}/,contains:o}),h={beginKeywords:"when",endsWithParent:!0,contains:[{beginKeywords:"and not"}].concat(s)},p={begin:i+"\\s*:",returnBegin:!0,end:/[;}]/,relevance:0,contains:[{begin:/-(webkit|moz|ms|o)-/},e.CSS_VARIABLE,{className:"attribute",begin:"\\b("+N6.join("|")+")\\b",end:/(?=:)/,starts:{endsWithParent:!0,illegal:"[<=$]",relevance:0,contains:s}}]},g={className:"keyword",begin:"@(import|media|charset|font-face|(-[a-z]+-)?keyframes|supports|document|namespace|page|viewport|host)\\b",starts:{end:"[;{}]",keywords:c,returnEnd:!0,contains:s,relevance:0}},b={className:"variable",variants:[{begin:"@"+r+"\\s*:",relevance:15},{begin:"@"+r}],starts:{end:"[;}]",returnEnd:!0,contains:d}},m={variants:[{begin:"[\\.#:&\\[>]",end:"[;{}]"},{begin:i,end:/\{/}],returnBegin:!0,returnEnd:!0,illegal:`[<='$"]`,relevance:0,contains:[t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,h,u("keyword","all\\b"),u("variable","@\\{"+r+"\\}"),{begin:"\\b("+M6.join("|")+")\\b",className:"selector-tag"},e.CSS_NUMBER_MODE,u("selector-tag",i,0),u("selector-id","#"+i),u("selector-class","\\."+i,0),u("selector-tag","&",0),e.ATTRIBUTE_SELECTOR_MODE,{className:"selector-pseudo",begin:":("+vM.join("|")+")"},{className:"selector-pseudo",begin:":(:)?("+CM.join("|")+")"},{begin:/\(/,end:/\)/,relevance:0,contains:d},{begin:"!important"},e.FUNCTION_DISPATCH]},O={begin:r+`:(:)?(${a.join("|")})`,returnBegin:!0,contains:[m]};return o.push(t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,g,b,O,p,m,h,e.FUNCTION_DISPATCH),{name:"Less",case_insensitive:!0,illegal:`[=>'/<($"]`,contains:o}}wM.exports=$6});var EM=be((noe,LM)=>{function B6(t){let e="\\[=*\\[",a="\\]=*\\]",n={begin:e,end:a,contains:["self"]},r=[t.COMMENT("--(?!"+e+")","$"),t.COMMENT("--"+e,a,{contains:[n],relevance:10})];return{name:"Lua",aliases:["pluto"],keywords:{$pattern:t.UNDERSCORE_IDENT_RE,literal:"true false nil",keyword:"and break do else elseif end for goto if in local global not or repeat return then until while",built_in:"_G _ENV _VERSION __index __newindex __mode __call __metatable __tostring __len __gc __add __sub __mul __div __mod __pow __concat __unm __eq __lt __le assert collectgarbage dofile error getfenv getmetatable ipairs load loadfile loadstring module next pairs pcall print rawequal rawget rawset require select setfenv setmetatable tonumber tostring type unpack xpcall arg self coroutine resume yield status wrap create running debug getupvalue debug sethook getmetatable gethook setmetatable setlocal traceback setfenv getinfo setupvalue getlocal getregistry getfenv io lines write close flush open output type read stderr stdin input stdout popen tmpfile math log max acos huge ldexp pi cos tanh pow deg tan cosh sinh random randomseed frexp ceil floor rad abs sqrt modf asin min mod fmod log10 atan2 exp sin atan os exit setlocale date getenv difftime remove time clock tmpname rename execute package preload loadlib loaded loaders cpath config path seeall string sub upper len gfind rep find match char dump gmatch reverse byte format gsub lower table setn insert getn foreachi maxn foreach concat sort remove"},contains:r.concat([{className:"function",beginKeywords:"function",end:"\\)",contains:[t.inherit(t.TITLE_MODE,{begin:"([_a-zA-Z]\\w*\\.)*([_a-zA-Z]\\w*:)?[_a-zA-Z]\\w*"}),{className:"params",begin:"\\(",endsWithParent:!0,contains:r}].concat(r)},t.C_NUMBER_MODE,t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,{className:"string",begin:e,end:a,contains:[n],relevance:5}])}}LM.exports=B6});var _M=be((roe,AM)=>{function z6(t){let e={className:"variable",variants:[{begin:"\\$\\("+t.UNDERSCORE_IDENT_RE+"\\)",contains:[t.BACKSLASH_ESCAPE]},{begin:/\$[@%<?\^\+\*]/}]},a={className:"string",begin:/"/,end:/"/,contains:[t.BACKSLASH_ESCAPE,e]},n={className:"variable",begin:/\$\([\w-]+\s/,end:/\)/,keywords:{built_in:"subst patsubst strip findstring filter filter-out sort word wordlist firstword lastword dir notdir suffix basename addsuffix addprefix join wildcard realpath abspath error warning shell origin flavor foreach if or and call eval file value"},contains:[e,a]},r={begin:"^"+t.UNDERSCORE_IDENT_RE+"\\s*(?=[:+?]?=)"},i={className:"meta",begin:/^\.PHONY:/,end:/$/,keywords:{$pattern:/[\.\w]+/,keyword:".PHONY"}},o={className:"section",begin:/^[^\s]+:/,end:/$/,contains:[e]};return{name:"Makefile",aliases:["mk","mak","make"],keywords:{$pattern:/[\w-]+/,keyword:"define endef undefine ifdef ifndef ifeq ifneq else endif include -include sinclude override export unexport private vpath"},contains:[t.HASH_COMMENT_MODE,e,a,n,r,i,o]}}AM.exports=z6});var TM=be((ioe,RM)=>{function U6(t){let e=t.regex,a=["abs","accept","alarm","and","atan2","bind","binmode","bless","break","caller","chdir","chmod","chomp","chop","chown","chr","chroot","class","close","closedir","connect","continue","cos","crypt","dbmclose","dbmopen","defined","delete","die","do","dump","each","else","elsif","endgrent","endhostent","endnetent","endprotoent","endpwent","endservent","eof","eval","exec","exists","exit","exp","fcntl","field","fileno","flock","for","foreach","fork","format","formline","getc","getgrent","getgrgid","getgrnam","gethostbyaddr","gethostbyname","gethostent","getlogin","getnetbyaddr","getnetbyname","getnetent","getpeername","getpgrp","getpriority","getprotobyname","getprotobynumber","getprotoent","getpwent","getpwnam","getpwuid","getservbyname","getservbyport","getservent","getsockname","getsockopt","given","glob","gmtime","goto","grep","gt","hex","if","index","int","ioctl","join","keys","kill","last","lc","lcfirst","length","link","listen","local","localtime","log","lstat","lt","ma","map","method","mkdir","msgctl","msgget","msgrcv","msgsnd","my","ne","next","no","not","oct","open","opendir","or","ord","our","pack","package","pipe","pop","pos","print","printf","prototype","push","q|0","qq","quotemeta","qw","qx","rand","read","readdir","readline","readlink","readpipe","recv","redo","ref","rename","require","reset","return","reverse","rewinddir","rindex","rmdir","say","scalar","seek","seekdir","select","semctl","semget","semop","send","setgrent","sethostent","setnetent","setpgrp","setpriority","setprotoent","setpwent","setservent","setsockopt","shift","shmctl","shmget","shmread","shmwrite","shutdown","sin","sleep","socket","socketpair","sort","splice","split","sprintf","sqrt","srand","stat","state","study","sub","substr","symlink","syscall","sysopen","sysread","sysseek","system","syswrite","tell","telldir","tie","tied","time","times","tr","truncate","uc","ucfirst","umask","undef","unless","unlink","unpack","unshift","untie","until","use","utime","values","vec","wait","waitpid","wantarray","warn","when","while","write","x|0","xor","y|0"],n=/[dualxmsipngr]{0,12}/,r={$pattern:/[\w.]+/,keyword:a.join(" ")},i={className:"subst",begin:"[$@]\\{",end:"\\}",keywords:r},o={begin:/->\{/,end:/\}/},s={scope:"attr",match:/\s+:\s*\w+(\s*\(.*?\))?/},l={scope:"variable",variants:[{begin:/\$\d/},{begin:e.concat(/[$%@](?!")(\^\w\b|#\w+(::\w+)*|\{\w+\}|\w+(::\w*)*)/,"(?![A-Za-z])(?![@$%])")},{begin:/[$%@](?!")[^\s\w{=]|\$=/,relevance:0}],contains:[s]},u={className:"number",variants:[{match:/0?\.[0-9][0-9_]+\b/},{match:/\bv?(0|[1-9][0-9_]*(\.[0-9_]+)?|[1-9][0-9_]*)\b/},{match:/\b0[0-7][0-7_]*\b/},{match:/\b0x[0-9a-fA-F][0-9a-fA-F_]*\b/},{match:/\b0b[0-1][0-1_]*\b/}],relevance:0},c=[t.BACKSLASH_ESCAPE,i,l],f=[/!/,/\//,/\|/,/\?/,/'/,/"/,/#/],d=(g,b,m="\\1")=>{let O=m==="\\1"?m:e.concat(m,b);return e.concat(e.concat("(?:",g,")"),b,/(?:\\.|[^\\\/])*?/,O,/(?:\\.|[^\\\/])*?/,m,n)},h=(g,b,m)=>e.concat(e.concat("(?:",g,")"),b,/(?:\\.|[^\\\/])*?/,m,n),p=[l,t.HASH_COMMENT_MODE,t.COMMENT(/^=\w/,/=cut/,{endsWithParent:!0}),o,{className:"string",contains:c,variants:[{begin:"q[qwxr]?\\s*\\(",end:"\\)",relevance:5},{begin:"q[qwxr]?\\s*\\[",end:"\\]",relevance:5},{begin:"q[qwxr]?\\s*\\{",end:"\\}",relevance:5},{begin:"q[qwxr]?\\s*\\|",end:"\\|",relevance:5},{begin:"q[qwxr]?\\s*<",end:">",relevance:5},{begin:"qw\\s+q",end:"q",relevance:5},{begin:"'",end:"'",contains:[t.BACKSLASH_ESCAPE]},{begin:'"',end:'"'},{begin:"`",end:"`",contains:[t.BACKSLASH_ESCAPE]},{begin:/\{\w+\}/,relevance:0},{begin:"-?\\w+\\s*=>",relevance:0}]},u,{begin:"(\\/\\/|"+t.RE_STARTERS_RE+"|\\b(split|return|print|reverse|grep)\\b)\\s*",keywords:"split return print reverse grep",relevance:0,contains:[t.HASH_COMMENT_MODE,{className:"regexp",variants:[{begin:d("s|tr|y",e.either(...f,{capture:!0}))},{begin:d("s|tr|y","\\(","\\)")},{begin:d("s|tr|y","\\[","\\]")},{begin:d("s|tr|y","\\{","\\}")}],relevance:2},{className:"regexp",variants:[{begin:/(m|qr)\/\//,relevance:0},{begin:h("(?:m|qr)?",/\//,/\//)},{begin:h("m|qr",e.either(...f,{capture:!0}),/\1/)},{begin:h("m|qr",/\(/,/\)/)},{begin:h("m|qr",/\[/,/\]/)},{begin:h("m|qr",/\{/,/\}/)}]}]},{className:"function",beginKeywords:"sub method",end:"(\\s*\\(.*?\\))?[;{]",excludeEnd:!0,relevance:5,contains:[t.TITLE_MODE,s]},{className:"class",beginKeywords:"class",end:"[;{]",excludeEnd:!0,relevance:5,contains:[t.TITLE_MODE,s,u]},{begin:"-\\w\\b",relevance:0},{begin:"^__DATA__$",end:"^__END__$",subLanguage:"mojolicious",contains:[{begin:"^@@.*",end:"$",className:"comment"}]}];return i.contains=p,o.contains=p,{name:"Perl",aliases:["pl","pm"],keywords:r,contains:p}}RM.exports=U6});var PM=be((ooe,IM)=>{function X6(t){let e={className:"built_in",begin:"\\b(AV|CA|CF|CG|CI|CL|CM|CN|CT|MK|MP|MTK|MTL|NS|SCN|SK|UI|WK|XC)\\w+"},a=/[a-zA-Z@][a-zA-Z0-9_]*/,s={"variable.language":["this","super"],$pattern:a,keyword:["while","export","sizeof","typedef","const","struct","for","union","volatile","static","mutable","if","do","return","goto","enum","else","break","extern","asm","case","default","register","explicit","typename","switch","continue","inline","readonly","assign","readwrite","self","@synchronized","id","typeof","nonatomic","IBOutlet","IBAction","strong","weak","copy","in","out","inout","bycopy","byref","oneway","__strong","__weak","__block","__autoreleasing","@private","@protected","@public","@try","@property","@end","@throw","@catch","@finally","@autoreleasepool","@synthesize","@dynamic","@selector","@optional","@required","@encode","@package","@import","@defs","@compatibility_alias","__bridge","__bridge_transfer","__bridge_retained","__bridge_retain","__covariant","__contravariant","__kindof","_Nonnull","_Nullable","_Null_unspecified","__FUNCTION__","__PRETTY_FUNCTION__","__attribute__","getter","setter","retain","unsafe_unretained","nonnull","nullable","null_unspecified","null_resettable","class","instancetype","NS_DESIGNATED_INITIALIZER","NS_UNAVAILABLE","NS_REQUIRES_SUPER","NS_RETURNS_INNER_POINTER","NS_INLINE","NS_AVAILABLE","NS_DEPRECATED","NS_ENUM","NS_OPTIONS","NS_SWIFT_UNAVAILABLE","NS_ASSUME_NONNULL_BEGIN","NS_ASSUME_NONNULL_END","NS_REFINED_FOR_SWIFT","NS_SWIFT_NAME","NS_SWIFT_NOTHROW","NS_DURING","NS_HANDLER","NS_ENDHANDLER","NS_VALUERETURN","NS_VOIDRETURN"],literal:["false","true","FALSE","TRUE","nil","YES","NO","NULL"],built_in:["dispatch_once_t","dispatch_queue_t","dispatch_sync","dispatch_async","dispatch_once"],type:["int","float","char","unsigned","signed","short","long","double","wchar_t","unichar","void","bool","BOOL","id|0","_Bool"]},l={$pattern:a,keyword:["@interface","@class","@protocol","@implementation"]};return{name:"Objective-C",aliases:["mm","objc","obj-c","obj-c++","objective-c++"],keywords:s,illegal:"</",contains:[e,t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,t.C_NUMBER_MODE,t.QUOTE_STRING_MODE,t.APOS_STRING_MODE,{className:"string",variants:[{begin:'@"',end:'"',illegal:"\\n",contains:[t.BACKSLASH_ESCAPE]}]},{className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:"if else elif endif define undef warning error line pragma ifdef ifndef include"},contains:[{begin:/\\\n/,relevance:0},t.inherit(t.QUOTE_STRING_MODE,{className:"string"}),{className:"string",begin:/<.*?>/,end:/$/,illegal:"\\n"},t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE]},{className:"class",begin:"("+l.keyword.join("|")+")\\b",end:/(\{|$)/,excludeEnd:!0,keywords:l,contains:[t.UNDERSCORE_TITLE_MODE]},{begin:"\\."+t.UNDERSCORE_IDENT_RE,relevance:0}]}}IM.exports=X6});var DM=be((soe,MM)=>{function q6(t){let e=t.regex,a=/(?![A-Za-z0-9])(?![$])/,n=e.concat(/[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*/,a),r=e.concat(/(\\?[A-Z][a-z0-9_\x7f-\xff]+|\\?[A-Z]+(?=[A-Z][a-z0-9_\x7f-\xff])){1,}/,a),i=e.concat(/[A-Z]+/,a),o={scope:"variable",match:"\\$+"+n},s={scope:"meta",variants:[{begin:/<\?php/,relevance:10},{begin:/<\?=/},{begin:/<\?/,relevance:.1},{begin:/\?>/}]},l={scope:"subst",variants:[{begin:/\$\w+/},{begin:/\{\$/,end:/\}/}]},u=t.inherit(t.APOS_STRING_MODE,{illegal:null}),c=t.inherit(t.QUOTE_STRING_MODE,{illegal:null,contains:t.QUOTE_STRING_MODE.contains.concat(l)}),f={begin:/<<<[ \t]*(?:(\w+)|"(\w+)")\n/,end:/[ \t]*(\w+)\b/,contains:t.QUOTE_STRING_MODE.contains.concat(l),"on:begin":(Q,D)=>{D.data._beginMatch=Q[1]||Q[2]},"on:end":(Q,D)=>{D.data._beginMatch!==Q[1]&&D.ignoreMatch()}},d=t.END_SAME_AS_BEGIN({begin:/<<<[ \t]*'(\w+)'\n/,end:/[ \t]*(\w+)\b/}),h=`[
14
+ ]`,p={scope:"string",variants:[c,u,f,d]},g={scope:"number",variants:[{begin:"\\b0[bB][01]+(?:_[01]+)*\\b"},{begin:"\\b0[oO][0-7]+(?:_[0-7]+)*\\b"},{begin:"\\b0[xX][\\da-fA-F]+(?:_[\\da-fA-F]+)*\\b"},{begin:"(?:\\b\\d+(?:_\\d+)*(\\.(?:\\d+(?:_\\d+)*))?|\\B\\.\\d+)(?:[eE][+-]?\\d+)?"}],relevance:0},b=["false","null","true"],m=["__CLASS__","__DIR__","__FILE__","__FUNCTION__","__COMPILER_HALT_OFFSET__","__LINE__","__METHOD__","__NAMESPACE__","__TRAIT__","die","echo","exit","include","include_once","print","require","require_once","array","abstract","and","as","binary","bool","boolean","break","callable","case","catch","class","clone","const","continue","declare","default","do","double","else","elseif","empty","enddeclare","endfor","endforeach","endif","endswitch","endwhile","enum","eval","extends","final","finally","float","for","foreach","from","global","goto","if","implements","instanceof","insteadof","int","integer","interface","isset","iterable","list","match|0","mixed","new","never","object","or","private","protected","public","readonly","real","return","string","switch","throw","trait","try","unset","use","var","void","while","xor","yield"],O=["Error|0","AppendIterator","ArgumentCountError","ArithmeticError","ArrayIterator","ArrayObject","AssertionError","BadFunctionCallException","BadMethodCallException","CachingIterator","CallbackFilterIterator","CompileError","Countable","DirectoryIterator","DivisionByZeroError","DomainException","EmptyIterator","ErrorException","Exception","FilesystemIterator","FilterIterator","GlobIterator","InfiniteIterator","InvalidArgumentException","IteratorIterator","LengthException","LimitIterator","LogicException","MultipleIterator","NoRewindIterator","OutOfBoundsException","OutOfRangeException","OuterIterator","OverflowException","ParentIterator","ParseError","RangeException","RecursiveArrayIterator","RecursiveCachingIterator","RecursiveCallbackFilterIterator","RecursiveDirectoryIterator","RecursiveFilterIterator","RecursiveIterator","RecursiveIteratorIterator","RecursiveRegexIterator","RecursiveTreeIterator","RegexIterator","RuntimeException","SeekableIterator","SplDoublyLinkedList","SplFileInfo","SplFileObject","SplFixedArray","SplHeap","SplMaxHeap","SplMinHeap","SplObjectStorage","SplObserver","SplPriorityQueue","SplQueue","SplStack","SplSubject","SplTempFileObject","TypeError","UnderflowException","UnexpectedValueException","UnhandledMatchError","ArrayAccess","BackedEnum","Closure","Fiber","Generator","Iterator","IteratorAggregate","Serializable","Stringable","Throwable","Traversable","UnitEnum","WeakReference","WeakMap","Directory","__PHP_Incomplete_Class","parent","php_user_filter","self","static","stdClass"],S={keyword:m,literal:(Q=>{let D=[];return Q.forEach(_=>{D.push(_),_.toLowerCase()===_?D.push(_.toUpperCase()):D.push(_.toLowerCase())}),D})(b),built_in:O},y=Q=>Q.map(D=>D.replace(/\|\d+$/,"")),C={variants:[{match:[/new/,e.concat(h,"+"),e.concat("(?!",y(O).join("\\b|"),"\\b)"),r],scope:{1:"keyword",4:"title.class"}}]},v=e.concat(n,"\\b(?!\\()"),k={variants:[{match:[e.concat(/::/,e.lookahead(/(?!class\b)/)),v],scope:{2:"variable.constant"}},{match:[/::/,/class/],scope:{2:"variable.language"}},{match:[r,e.concat(/::/,e.lookahead(/(?!class\b)/)),v],scope:{1:"title.class",3:"variable.constant"}},{match:[r,e.concat("::",e.lookahead(/(?!class\b)/))],scope:{1:"title.class"}},{match:[r,/::/,/class/],scope:{1:"title.class",3:"variable.language"}}]},L={scope:"attr",match:e.concat(n,e.lookahead(":"),e.lookahead(/(?!::)/))},A={relevance:0,begin:/\(/,end:/\)/,keywords:S,contains:[L,o,k,t.C_BLOCK_COMMENT_MODE,t.C_LINE_COMMENT_MODE,t.HASH_COMMENT_MODE,p,g,C]},R={relevance:0,match:[/\b/,e.concat("(?!fn\\b|function\\b|",y(m).join("\\b|"),"|",y(O).join("\\b|"),"\\b)"),n,e.concat(h,"*"),e.lookahead(/(?=\()/)],scope:{3:"title.function.invoke"},contains:[A]};A.contains.push(R);let T=[L,k,t.C_BLOCK_COMMENT_MODE,t.C_LINE_COMMENT_MODE,t.HASH_COMMENT_MODE,p,g,C],U={begin:e.concat(/#\[\s*\\?/,e.either(r,i)),beginScope:"meta",end:/]/,endScope:"meta",keywords:{literal:b,keyword:["new","array"]},contains:[{begin:/\[/,end:/]/,keywords:{literal:b,keyword:["new","array"]},contains:["self",...T]},...T,{scope:"meta",variants:[{match:r},{match:i}]}]};return{case_insensitive:!1,keywords:S,contains:[U,t.HASH_COMMENT_MODE,t.COMMENT("//","$"),t.COMMENT("/\\*","\\*/",{contains:[{scope:"doctag",match:"@[A-Za-z]+"}]}),{match:/__halt_compiler\(\);/,keywords:"__halt_compiler",starts:{scope:"comment",end:t.MATCH_NOTHING_RE,contains:[{match:/\?>/,scope:"meta",endsParent:!0}]}},s,{scope:"variable.language",match:/\$this\b/},o,R,k,{match:[/const/,/\s/,n],scope:{1:"keyword",3:"variable.constant"}},C,{scope:"function",relevance:0,beginKeywords:"fn function",end:/[;{]/,excludeEnd:!0,illegal:"[$%\\[]",contains:[{beginKeywords:"use"},t.UNDERSCORE_TITLE_MODE,{begin:"=>",endsParent:!0},{scope:"params",begin:"\\(",end:"\\)",excludeBegin:!0,excludeEnd:!0,keywords:S,contains:["self",U,o,k,t.C_BLOCK_COMMENT_MODE,t.C_LINE_COMMENT_MODE,t.HASH_COMMENT_MODE,p,g]}]},{scope:"class",variants:[{beginKeywords:"enum",illegal:/[($"]/},{beginKeywords:"class interface trait",illegal:/[:($"]/}],relevance:0,end:/\{/,excludeEnd:!0,contains:[{beginKeywords:"extends implements"},t.UNDERSCORE_TITLE_MODE]},{beginKeywords:"namespace",relevance:0,end:";",illegal:/[.']/,contains:[t.inherit(t.UNDERSCORE_TITLE_MODE,{scope:"title.class"})]},{beginKeywords:"use",relevance:0,end:";",contains:[{match:/\b(as|const|function)\b/,scope:"keyword"},t.UNDERSCORE_TITLE_MODE]},p,g]}}MM.exports=q6});var QM=be((loe,NM)=>{function Z6(t){return{name:"PHP template",subLanguage:"xml",contains:[{begin:/<\?(php|=)?/,end:/\?>/,subLanguage:"php",contains:[{begin:"/\\*",end:"\\*/",skip:!0},{begin:'b"',end:'"',skip:!0},{begin:"b'",end:"'",skip:!0},t.inherit(t.APOS_STRING_MODE,{illegal:null,className:null,contains:null,skip:!0}),t.inherit(t.QUOTE_STRING_MODE,{illegal:null,className:null,contains:null,skip:!0})]}]}}NM.exports=Z6});var BM=be((uoe,$M)=>{function F6(t){return{name:"Plain text",aliases:["text","txt"],disableAutodetect:!0}}$M.exports=F6});var UM=be((coe,zM)=>{function G6(t){let e=t.regex,a=/[\p{XID_Start}_]\p{XID_Continue}*/u,n=["and","as","assert","async","await","break","case","class","continue","def","del","elif","else","except","finally","for","from","global","if","import","in","is","lambda","lazy","match","nonlocal|10","not","or","pass","raise","return","try","while","with","yield"],s={$pattern:/[A-Za-z]\w+|__\w+__/,keyword:n,built_in:["__import__","abs","aiter","all","anext","any","ascii","bin","bool","breakpoint","bytearray","bytes","callable","chr","classmethod","compile","complex","delattr","dict","dir","divmod","enumerate","eval","exec","filter","float","format","frozendict","frozenset","getattr","globals","hasattr","hash","help","hex","id","input","int","isinstance","issubclass","iter","len","list","locals","map","max","memoryview","min","next","object","oct","open","ord","pow","print","property","range","repr","reversed","round","sentinel","set","setattr","slice","sorted","staticmethod","str","sum","super","tuple","type","vars","zip"],literal:["__debug__","Ellipsis","False","None","NotImplemented","True"],type:["Any","Callable","Coroutine","Dict","List","Literal","Generic","Optional","Sequence","Set","Tuple","Type","Union"]},l={className:"meta",begin:/^(>>>|\.\.\.) /},u={className:"subst",begin:/\{/,end:/\}/,keywords:s,illegal:/#/},c={begin:/\{\{/,relevance:0},f={className:"string",contains:[t.BACKSLASH_ESCAPE],variants:[{begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?'''/,end:/'''/,contains:[t.BACKSLASH_ESCAPE,l],relevance:10},{begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?"""/,end:/"""/,contains:[t.BACKSLASH_ESCAPE,l],relevance:10},{begin:/([fFtT][rR]|[rR][fFtT]|[fFtT])'''/,end:/'''/,contains:[t.BACKSLASH_ESCAPE,l,c,u]},{begin:/([fFtT][rR]|[rR][fFtT]|[fFtT])"""/,end:/"""/,contains:[t.BACKSLASH_ESCAPE,l,c,u]},{begin:/([uU]|[rR])'/,end:/'/,relevance:10},{begin:/([uU]|[rR])"/,end:/"/,relevance:10},{begin:/([bB]|[bB][rR]|[rR][bB])'/,end:/'/},{begin:/([bB]|[bB][rR]|[rR][bB])"/,end:/"/},{begin:/([fFtT][rR]|[rR][fFtT]|[fFtT])'/,end:/'/,contains:[t.BACKSLASH_ESCAPE,c,u]},{begin:/([fFtT][rR]|[rR][fFtT]|[fFtT])"/,end:/"/,contains:[t.BACKSLASH_ESCAPE,c,u]},t.APOS_STRING_MODE,t.QUOTE_STRING_MODE]},d="[0-9](_?[0-9])*",h=`(\\b(${d}))?\\.(${d})|\\b(${d})\\.`,p=`\\b|${n.join("|")}`,g={className:"number",relevance:0,variants:[{begin:`(\\b(${d})|(${h}))[eE][+-]?(${d})[jJ]?(?=${p})`},{begin:`(${h})[jJ]?`},{begin:`\\b([1-9](_?[0-9])*|0+(_?0)*)[lLjJ]?(?=${p})`},{begin:`\\b0[bB](_?[01])+[lL]?(?=${p})`},{begin:`\\b0[oO](_?[0-7])+[lL]?(?=${p})`},{begin:`\\b0[xX](_?[0-9a-fA-F])+[lL]?(?=${p})`},{begin:`\\b(${d})[jJ](?=${p})`}]},b={className:"comment",begin:e.lookahead(/# type:/),end:/$/,keywords:s,contains:[{begin:/# type:/},{begin:/#/,end:/\b\B/,endsWithParent:!0}]},m={className:"params",variants:[{className:"",begin:/\(\s*\)/,skip:!0},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:s,contains:["self",l,g,f,t.HASH_COMMENT_MODE]}]};return u.contains=[f,g,l],{name:"Python",aliases:["py","gyp","ipython"],unicodeRegex:!0,keywords:s,illegal:/(<\/|\?)|=>/,contains:[l,g,{scope:"variable.language",match:/\bself\b/},{beginKeywords:"if",relevance:0},{match:/\bor\b/,scope:"keyword"},f,b,t.HASH_COMMENT_MODE,{match:[/\bdef/,/\s+/,a],scope:{1:"keyword",3:"title.function"},contains:[m]},{variants:[{match:[/\bclass/,/\s+/,a,/\s*/,/\(\s*/,a,/\s*\)/]},{match:[/\bclass/,/\s+/,a]}],scope:{1:"keyword",3:"title.class",6:"title.class.inherited"}},{className:"meta",begin:/^[\t ]*@/,end:/(?=#)|$/,contains:[g,m,f]}]}}zM.exports=G6});var qM=be((foe,XM)=>{function H6(t){return{aliases:["pycon"],contains:[{className:"meta.prompt",starts:{end:/ |$/,starts:{end:"$",subLanguage:"python"}},variants:[{begin:/^>>>(?=[ ]|$)/},{begin:/^\.\.\.(?=[ ]|$)/}]}]}}XM.exports=H6});var FM=be((doe,ZM)=>{function j6(t){let e=t.regex,a=/(?:(?:[a-zA-Z]|\.[._a-zA-Z])[._a-zA-Z0-9]*)|\.(?!\d)/,n=e.either(/0[xX][0-9a-fA-F]+\.[0-9a-fA-F]*[pP][+-]?\d+i?/,/0[xX][0-9a-fA-F]+(?:[pP][+-]?\d+)?[Li]?/,/(?:\d+(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+)?[Li]?/),r=/[=!<>:]=|\|\||&&|:::?|<-|<<-|->>|->|\|>|[-+*\/?!$&|:<=>@^~]|\*\*/,i=e.either(/[()]/,/[{}]/,/\[\[/,/[[\]]/,/\\/,/,/);return{name:"R",keywords:{$pattern:a,keyword:"function if in break next repeat else for while",literal:"NULL NA TRUE FALSE Inf NaN NA_integer_|10 NA_real_|10 NA_character_|10 NA_complex_|10",built_in:"LETTERS letters month.abb month.name pi T F abs acos acosh all any anyNA Arg as.call as.character as.complex as.double as.environment as.integer as.logical as.null.default as.numeric as.raw asin asinh atan atanh attr attributes baseenv browser c call ceiling class Conj cos cosh cospi cummax cummin cumprod cumsum digamma dim dimnames emptyenv exp expression floor forceAndCall gamma gc.time globalenv Im interactive invisible is.array is.atomic is.call is.character is.complex is.double is.environment is.expression is.finite is.function is.infinite is.integer is.language is.list is.logical is.matrix is.na is.name is.nan is.null is.numeric is.object is.pairlist is.raw is.recursive is.single is.symbol lazyLoadDBfetch length lgamma list log max min missing Mod names nargs nzchar oldClass on.exit pos.to.env proc.time prod quote range Re rep retracemem return round seq_along seq_len seq.int sign signif sin sinh sinpi sqrt standardGeneric substitute sum switch tan tanh tanpi tracemem trigamma trunc unclass untracemem UseMethod xtfrm"},contains:[t.COMMENT(/#'/,/$/,{contains:[{scope:"doctag",match:/@examples/,starts:{end:e.lookahead(e.either(/\n^#'\s*(?=@[a-zA-Z]+)/,/\n^(?!#')/)),endsParent:!0}},{scope:"doctag",begin:"@param",end:/$/,contains:[{scope:"variable",variants:[{match:a},{match:/`(?:\\.|[^`\\])+`/}],endsParent:!0}]},{scope:"doctag",match:/@[a-zA-Z]+/},{scope:"keyword",match:/\\[a-zA-Z]+/}]}),t.HASH_COMMENT_MODE,{scope:"string",contains:[t.BACKSLASH_ESCAPE],variants:[t.END_SAME_AS_BEGIN({begin:/[rR]"(-*)\(/,end:/\)(-*)"/}),t.END_SAME_AS_BEGIN({begin:/[rR]"(-*)\{/,end:/\}(-*)"/}),t.END_SAME_AS_BEGIN({begin:/[rR]"(-*)\[/,end:/\](-*)"/}),t.END_SAME_AS_BEGIN({begin:/[rR]'(-*)\(/,end:/\)(-*)'/}),t.END_SAME_AS_BEGIN({begin:/[rR]'(-*)\{/,end:/\}(-*)'/}),t.END_SAME_AS_BEGIN({begin:/[rR]'(-*)\[/,end:/\](-*)'/}),{begin:'"',end:'"',relevance:0},{begin:"'",end:"'",relevance:0}]},{relevance:0,variants:[{scope:{1:"operator",2:"number"},match:[r,n]},{scope:{1:"operator",2:"number"},match:[/%[^%]*%/,n]},{scope:{1:"punctuation",2:"number"},match:[i,n]},{scope:{2:"number"},match:[/[^a-zA-Z0-9._]|^/,n]}]},{scope:{3:"operator"},match:[a,/\s+/,/<-/,/\s+/]},{scope:"operator",relevance:0,variants:[{match:r},{match:/%[^%]*%/}]},{scope:"punctuation",relevance:0,match:i},{begin:"`",end:"`",contains:[{begin:/\\./}]}]}}ZM.exports=j6});var HM=be((hoe,GM)=>{function V6(t){let e=t.regex,a=/(r#)?/,n=e.concat(a,t.UNDERSCORE_IDENT_RE),r=e.concat(a,t.IDENT_RE),i={scope:"title.function.invoke",relevance:0,begin:e.concat(/\b/,/(?!(?:let|for|while|if|else|match)\b)/,r,e.lookahead(/\s*\(/))},o="([ui](8|16|32|64|128|size)|f(16|32|64|128))?",s=["abstract","as","async","await","become","box","break","const","continue","crate","do","dyn","else","enum","extern","false","final","fn","for","if","impl","in","let","loop","macro","match","mod","move","mut","override","priv","pub","raw","ref","return","self","Self","static","struct","super","trait","true","try","type","typeof","union","unsafe","unsized","use","virtual","where","while","yield"],l=["true","false","Some","None","Ok","Err"],u=["drop ","Copy","Send","Sized","Sync","Drop","Fn","FnMut","FnOnce","ToOwned","Clone","Debug","PartialEq","PartialOrd","Eq","Ord","AsRef","AsMut","Into","From","Default","Iterator","Extend","IntoIterator","DoubleEndedIterator","ExactSizeIterator","SliceConcatExt","ToString","assert!","assert_eq!","bitflags!","bytes!","cfg!","col!","concat!","concat_idents!","debug_assert!","debug_assert_eq!","env!","eprintln!","panic!","file!","format!","format_args!","include_bytes!","include_str!","line!","local_data_key!","module_path!","option_env!","print!","println!","select!","stringify!","try!","unimplemented!","unreachable!","vec!","write!","writeln!","macro_rules!","assert_ne!","debug_assert_ne!"],c=["i8","i16","i32","i64","i128","isize","u8","u16","u32","u64","u128","usize","f16","f32","f64","f128","str","char","bool","Box","Option","Result","String","Vec"];return{name:"Rust",aliases:["rs"],keywords:{$pattern:t.IDENT_RE+"!?",type:c,keyword:s,literal:l,built_in:u},illegal:"</",contains:[t.C_LINE_COMMENT_MODE,t.COMMENT("/\\*","\\*/",{contains:["self"]}),t.inherit(t.QUOTE_STRING_MODE,{begin:/b?"/,illegal:null}),{scope:"symbol",begin:/'[a-zA-Z_][a-zA-Z0-9_]*(?!')/},{scope:"string",variants:[{begin:/b?r(#*)"(.|\n)*?"\1(?!#)/},{begin:/b?'/,end:/'/,contains:[{scope:"char.escape",match:/\\('|"|\\|\w|x\w{2}|u\w{4}|U\w{8})/}]}]},{scope:"number",variants:[{begin:"\\b0b([01_]+)"+o},{begin:"\\b0o([0-7_]+)"+o},{begin:"\\b0x([A-Fa-f0-9_]+)"+o},{begin:"\\b(\\d[\\d_]*(\\.[0-9_]+)?([eE][+-]?[0-9_]+)?)"+o}],relevance:0},{begin:[/\bsafe/,/\s+/,/extern/],scope:{1:"keyword",3:"keyword"}},{begin:[/fn/,/\s+/,n],scope:{1:"keyword",3:"title.function"}},{scope:"meta",begin:"#!?\\[",end:"\\]",contains:[{scope:"string",begin:/"/,end:/"/,contains:[t.BACKSLASH_ESCAPE]}]},{begin:[/let/,/\s+/,/(?:mut\s+)?/,n],scope:{1:"keyword",3:"keyword",4:"variable"}},{begin:[/for/,/\s+/,n,/\s+/,/in/],scope:{1:"keyword",3:"variable",5:"keyword"}},{begin:[/type/,/\s+/,n],scope:{1:"keyword",3:"title.class"}},{begin:[/(?:trait|enum|struct|union|impl|for)/,/\s+/,n],scope:{1:"keyword",3:"title.class"}},{begin:t.IDENT_RE+"::",keywords:{keyword:"Self",built_in:u,type:c}},{scope:"punctuation",begin:"->"},i]}}GM.exports=V6});var VM=be((poe,jM)=>{var Y6=t=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:t.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},UNICODE_RANGE:{scope:"number",begin:/\b[Uu]\+[0-9A-Fa-f][0-9A-Fa-f?]{0,5}(-[0-9A-Fa-f][0-9A-Fa-f]{0,5})?/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[t.APOS_STRING_MODE,t.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:t.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z_][A-Za-z0-9_-]*/}}),W6=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","optgroup","option","p","picture","q","quote","samp","section","select","source","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],K6=["defs","g","marker","mask","pattern","svg","switch","symbol","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feFlood","feGaussianBlur","feImage","feMerge","feMorphology","feOffset","feSpecularLighting","feTile","feTurbulence","linearGradient","radialGradient","stop","circle","ellipse","image","line","path","polygon","polyline","rect","text","use","textPath","tspan","foreignObject","clipPath"],J6=[...W6,...K6],eH=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"].sort().reverse(),tH=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"].sort().reverse(),aH=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"].sort().reverse(),nH=["accent-color","align-content","align-items","align-self","alignment-baseline","all","anchor-name","animation","animation-composition","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-range","animation-range-end","animation-range-start","animation-timeline","animation-timing-function","appearance","aspect-ratio","backdrop-filter","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-position-x","background-position-y","background-repeat","background-size","baseline-shift","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-end-end-radius","border-end-start-radius","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-start-end-radius","border-start-start-radius","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-align","box-decoration-break","box-direction","box-flex","box-flex-group","box-lines","box-ordinal-group","box-orient","box-pack","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","color-scheme","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","contain-intrinsic-block-size","contain-intrinsic-height","contain-intrinsic-inline-size","contain-intrinsic-size","contain-intrinsic-width","container","container-name","container-type","content","content-visibility","corner-bottom-left-shape","corner-bottom-right-shape","corner-shape","corner-top-left-shape","corner-top-right-shape","counter-increment","counter-reset","counter-set","cue","cue-after","cue-before","cursor","cx","cy","direction","display","dominant-baseline","empty-cells","enable-background","field-sizing","fill","fill-opacity","fill-rule","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flood-color","flood-opacity","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-optical-sizing","font-palette","font-size","font-size-adjust","font-smooth","font-smoothing","font-stretch","font-style","font-synthesis","font-synthesis-position","font-synthesis-small-caps","font-synthesis-style","font-synthesis-weight","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-emoji","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","forced-color-adjust","gap","glyph-orientation-horizontal","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphenate-character","hyphenate-limit-chars","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","initial-letter","initial-letter-align","inline-size","inset","inset-area","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","justify-content","justify-items","justify-self","kerning","left","letter-spacing","lighting-color","line-break","line-height","line-height-step","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","margin-trim","marker","marker-end","marker-mid","marker-start","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","masonry-auto-flow","math-depth","math-shift","math-style","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-anchor","overflow-block","overflow-clip-margin","overflow-inline","overflow-wrap","overflow-x","overflow-y","overlay","overscroll-behavior","overscroll-behavior-block","overscroll-behavior-inline","overscroll-behavior-x","overscroll-behavior-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","paint-order","pause","pause-after","pause-before","perspective","perspective-origin","place-content","place-items","place-self","pointer-events","position","position-anchor","position-visibility","print-color-adjust","quotes","r","resize","rest","rest-after","rest-before","right","rotate","row-gap","ruby-align","ruby-position","scale","scroll-behavior","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scroll-timeline","scroll-timeline-axis","scroll-timeline-name","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","shape-rendering","speak","speak-as","src","stop-color","stop-opacity","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","tab-size","table-layout","text-align","text-align-all","text-align-last","text-anchor","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-skip-ink","text-decoration-style","text-decoration-thickness","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-size-adjust","text-transform","text-underline-offset","text-underline-position","text-wrap","text-wrap-mode","text-wrap-style","timeline-scope","top","touch-action","transform","transform-box","transform-origin","transform-style","transition","transition-behavior","transition-delay","transition-duration","transition-property","transition-timing-function","translate","unicode-bidi","unicode-range","user-modify","user-select","vector-effect","vertical-align","view-timeline","view-timeline-axis","view-timeline-inset","view-timeline-name","view-transition-name","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","white-space-collapse","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","x","y","z-index","zoom"].sort().reverse();function rH(t){let e=Y6(t),a=aH,n=tH,r="@[a-z-]+",i="and or not only",s={className:"variable",begin:"(\\$"+"[a-zA-Z-][a-zA-Z0-9_-]*"+")\\b",relevance:0};return{name:"SCSS",case_insensitive:!0,illegal:"[=/|']",contains:[t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,e.CSS_NUMBER_MODE,{className:"selector-id",begin:"#[A-Za-z0-9_-]+",relevance:0},{className:"selector-class",begin:"\\.[A-Za-z0-9_-]+",relevance:0},e.ATTRIBUTE_SELECTOR_MODE,{className:"selector-tag",begin:"\\b("+J6.join("|")+")\\b",relevance:0},{className:"selector-pseudo",begin:":("+n.join("|")+")"},{className:"selector-pseudo",begin:":(:)?("+a.join("|")+")"},s,{begin:/\(/,end:/\)/,contains:[e.CSS_NUMBER_MODE]},e.CSS_VARIABLE,{className:"attribute",begin:"\\b("+nH.join("|")+")\\b"},{begin:"\\b(whitespace|wait|w-resize|visible|vertical-text|vertical-ideographic|uppercase|upper-roman|upper-alpha|underline|transparent|top|thin|thick|text|text-top|text-bottom|tb-rl|table-header-group|table-footer-group|sw-resize|super|strict|static|square|solid|small-caps|separate|se-resize|scroll|s-resize|rtl|row-resize|ridge|right|repeat|repeat-y|repeat-x|relative|progress|pointer|overline|outside|outset|oblique|nowrap|not-allowed|normal|none|nw-resize|no-repeat|no-drop|newspaper|ne-resize|n-resize|move|middle|medium|ltr|lr-tb|lowercase|lower-roman|lower-alpha|loose|list-item|line|line-through|line-edge|lighter|left|keep-all|justify|italic|inter-word|inter-ideograph|inside|inset|inline|inline-block|inherit|inactive|ideograph-space|ideograph-parenthesis|ideograph-numeric|ideograph-alpha|horizontal|hidden|help|hand|groove|fixed|ellipsis|e-resize|double|dotted|distribute|distribute-space|distribute-letter|distribute-all-lines|disc|disabled|default|decimal|dashed|crosshair|collapse|col-resize|circle|char|center|capitalize|break-word|break-all|bottom|both|bolder|bold|block|bidi-override|below|baseline|auto|always|all-scroll|absolute|table|table-cell)\\b"},{begin:/:/,end:/[;}{]/,relevance:0,contains:[e.BLOCK_COMMENT,s,e.HEXCOLOR,e.CSS_NUMBER_MODE,e.UNICODE_RANGE,t.QUOTE_STRING_MODE,t.APOS_STRING_MODE,e.IMPORTANT,e.FUNCTION_DISPATCH]},{begin:"@(page|font-face)",keywords:{$pattern:r,keyword:"@page @font-face"}},{begin:"@",end:"[{;]",returnBegin:!0,keywords:{$pattern:/[a-z-]+/,keyword:i,attribute:eH.join(" ")},contains:[{begin:r,className:"keyword"},{begin:/[a-z-]+(?=:)/,className:"attribute"},s,t.QUOTE_STRING_MODE,t.APOS_STRING_MODE,e.HEXCOLOR,e.CSS_NUMBER_MODE]},e.FUNCTION_DISPATCH]}}jM.exports=rH});var WM=be((moe,YM)=>{function iH(t){return{name:"Shell Session",aliases:["console","shellsession"],contains:[{className:"meta.prompt",begin:/^\s{0,3}[./~\w\d[\]()@-]*[>%$#][ ]?/,starts:{end:/[^\\](?=\s*$)/,subLanguage:"bash"}}]}}YM.exports=iH});var JM=be((goe,KM)=>{function oH(t){let e=t.regex,a=t.COMMENT("--","$"),n={scope:"string",variants:[{begin:/'/,end:/'/,contains:[{match:/''/}]}]},r={begin:/"/,end:/"/,contains:[{match:/""/}]},i=["true","false","unknown"],o=["double precision","large object","with timezone","without timezone"],s=["bigint","binary","blob","boolean","char","character","clob","date","dec","decfloat","decimal","float","int","integer","interval","nchar","nclob","national","numeric","real","row","smallint","time","timestamp","varchar","varying","varbinary"],l=["add","asc","collation","desc","final","first","last","view"],u=["abs","acos","all","allocate","alter","and","any","are","array","array_agg","array_max_cardinality","as","asensitive","asin","asymmetric","at","atan","atomic","authorization","avg","begin","begin_frame","begin_partition","between","bigint","binary","blob","boolean","both","by","call","called","cardinality","cascaded","case","cast","ceil","ceiling","char","char_length","character","character_length","check","classifier","clob","close","coalesce","collate","collect","column","commit","condition","connect","constraint","contains","convert","copy","corr","corresponding","cos","cosh","count","covar_pop","covar_samp","create","cross","cube","cume_dist","current","current_catalog","current_date","current_default_transform_group","current_path","current_role","current_row","current_schema","current_time","current_timestamp","current_path","current_role","current_transform_group_for_type","current_user","cursor","cycle","date","day","deallocate","dec","decimal","decfloat","declare","default","define","delete","dense_rank","deref","describe","deterministic","disconnect","distinct","double","drop","dynamic","each","element","else","empty","end","end_frame","end_partition","end-exec","equals","escape","every","except","exec","execute","exists","exp","external","extract","false","fetch","filter","first_value","float","floor","for","foreign","frame_row","free","from","full","function","fusion","get","global","grant","group","grouping","groups","having","hold","hour","identity","in","indicator","initial","inner","inout","insensitive","insert","int","integer","intersect","intersection","interval","into","is","join","json_array","json_arrayagg","json_exists","json_object","json_objectagg","json_query","json_table","json_table_primitive","json_value","lag","language","large","last_value","lateral","lead","leading","left","like","like_regex","listagg","ln","local","localtime","localtimestamp","log","log10","lower","match","match_number","match_recognize","matches","max","member","merge","method","min","minute","mod","modifies","module","month","multiset","national","natural","nchar","nclob","new","no","none","normalize","not","nth_value","ntile","null","nullif","numeric","octet_length","occurrences_regex","of","offset","old","omit","on","one","only","open","or","order","out","outer","over","overlaps","overlay","parameter","partition","pattern","per","percent","percent_rank","percentile_cont","percentile_disc","period","portion","position","position_regex","power","precedes","precision","prepare","primary","procedure","ptf","range","rank","reads","real","recursive","ref","references","referencing","regr_avgx","regr_avgy","regr_count","regr_intercept","regr_r2","regr_slope","regr_sxx","regr_sxy","regr_syy","release","result","return","returns","revoke","right","rollback","rollup","row","row_number","rows","running","savepoint","scope","scroll","search","second","seek","select","sensitive","session_user","set","show","similar","sin","sinh","skip","smallint","some","specific","specifictype","sql","sqlexception","sqlstate","sqlwarning","sqrt","start","static","stddev_pop","stddev_samp","submultiset","subset","substring","substring_regex","succeeds","sum","symmetric","system","system_time","system_user","table","tablesample","tan","tanh","then","time","timestamp","timezone_hour","timezone_minute","to","trailing","translate","translate_regex","translation","treat","trigger","trim","trim_array","true","truncate","uescape","union","unique","unknown","unnest","update","upper","user","using","value","values","value_of","var_pop","var_samp","varbinary","varchar","varying","versioning","when","whenever","where","width_bucket","window","with","within","without","year"],c=["abs","acos","array_agg","asin","atan","avg","cast","ceil","ceiling","coalesce","corr","cos","cosh","count","covar_pop","covar_samp","cume_dist","dense_rank","deref","element","exp","extract","first_value","floor","json_array","json_arrayagg","json_exists","json_object","json_objectagg","json_query","json_table","json_table_primitive","json_value","lag","last_value","lead","listagg","ln","log","log10","lower","max","min","mod","nth_value","ntile","nullif","percent_rank","percentile_cont","percentile_disc","position","position_regex","power","rank","regr_avgx","regr_avgy","regr_count","regr_intercept","regr_r2","regr_slope","regr_sxx","regr_sxy","regr_syy","row_number","sin","sinh","sqrt","stddev_pop","stddev_samp","substring","substring_regex","sum","tan","tanh","translate","translate_regex","treat","trim","trim_array","unnest","upper","value_of","var_pop","var_samp","width_bucket"],f=["current_catalog","current_date","current_default_transform_group","current_path","current_role","current_schema","current_transform_group_for_type","current_user","session_user","system_time","system_user","current_time","localtime","current_timestamp","localtimestamp"],d=["create table","insert into","primary key","foreign key","not null","alter table","add constraint","grouping sets","on overflow","character set","respect nulls","ignore nulls","nulls first","nulls last","depth first","breadth first"],h=c,p=[...u,...l].filter(y=>!c.includes(y)),g={scope:"variable",match:/@[a-z0-9][a-z0-9_]*/},b={scope:"operator",match:/[-+*/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?/,relevance:0},m={match:e.concat(/\b/,e.either(...h),/\s*\(/),relevance:0,keywords:{built_in:h}};function O(y){return e.concat(/\b/,e.either(...y.map(C=>C.replace(/\s+/,"\\s+"))),/\b/)}let x={scope:"keyword",match:O(d),relevance:0};function S(y,{exceptions:C,when:v}={}){let k=v;return C=C||[],y.map(L=>L.match(/\|\d+$/)||C.includes(L)?L:k(L)?`${L}|0`:L)}return{name:"SQL",case_insensitive:!0,illegal:/[{}]|<\//,keywords:{$pattern:/\b[\w\.]+/,keyword:S(p,{when:y=>y.length<3}),literal:i,type:s,built_in:f},contains:[{scope:"type",match:O(o)},x,m,g,n,r,t.C_NUMBER_MODE,t.C_BLOCK_COMMENT_MODE,a,b]}}KM.exports=oH});var l2=be((Ooe,s2)=>{function n2(t){return t?typeof t=="string"?t:t.source:null}function pd(t){return at("(?=",t,")")}function at(...t){return t.map(a=>n2(a)).join("")}function sH(t){let e=t[t.length-1];return typeof e=="object"&&e.constructor===Object?(t.splice(t.length-1,1),e):{}}function La(...t){return"("+(sH(t).capture?"":"?:")+t.map(n=>n2(n)).join("|")+")"}new RegExp(La(/\[(?:[^\\\]]|\\.)*\]/,/\(\?<(?![=!])[^>]+>/,/\(\?'[^']+'/,/\(\??/,/\\([1-9][0-9]*)/,/\\./));var ry=t=>at(/\b/,t,/\w$/.test(t)?/\b/:/\B/),lH=["Protocol","Type"].map(ry),e2=["init","self"].map(ry),uH=["Any","Self"],ay=["actor","any","associatedtype","async","await",/as\?/,/as!/,"as","borrowing","break","case","catch","class","consume","consuming","continue","convenience","copy","default","defer","deinit","didSet","distributed","do","dynamic","each","else","enum","extension","fallthrough",/fileprivate\(set\)/,"fileprivate","final","for","func","get","guard","if","import","indirect","infix",/init\?/,/init!/,"inout",/internal\(set\)/,"internal","in","is","isolated","nonisolated","lazy","let","macro","mutating","nonmutating",/open\(set\)/,"open","operator","optional","override","package","postfix","precedencegroup","prefix",/private\(set\)/,"private","protocol",/public\(set\)/,"public","repeat","required","rethrows","return","set","some","static","struct","subscript","super","switch","throws","throw",/try\?/,/try!/,"try","typealias",/unowned\(safe\)/,/unowned\(unsafe\)/,"unowned","var","weak","where","while","willSet"],t2=["false","nil","true"],cH=["assignment","associativity","higherThan","left","lowerThan","none","right"],fH=["#colorLiteral","#column","#dsohandle","#else","#elseif","#endif","#error","#file","#fileID","#fileLiteral","#filePath","#function","#if","#imageLiteral","#keyPath","#line","#selector","#sourceLocation","#warning"],a2=["abs","all","any","assert","assertionFailure","debugPrint","dump","fatalError","getVaList","isKnownUniquelyReferenced","max","min","numericCast","pointwiseMax","pointwiseMin","precondition","preconditionFailure","print","readLine","repeatElement","sequence","stride","swap","swift_unboxFromSwiftValueWithType","transcode","type","unsafeBitCast","unsafeDowncast","withExtendedLifetime","withUnsafeMutablePointer","withUnsafePointer","withVaList","withoutActuallyEscaping","zip"],r2=La(/[/=\-+!*%<>&|^~?]/,/[\u00A1-\u00A7]/,/[\u00A9\u00AB]/,/[\u00AC\u00AE]/,/[\u00B0\u00B1]/,/[\u00B6\u00BB\u00BF\u00D7\u00F7]/,/[\u2016-\u2017]/,/[\u2020-\u2027]/,/[\u2030-\u203E]/,/[\u2041-\u2053]/,/[\u2055-\u205E]/,/[\u2190-\u23FF]/,/[\u2500-\u2775]/,/[\u2794-\u2BFF]/,/[\u2E00-\u2E7F]/,/[\u3001-\u3003]/,/[\u3008-\u3020]/,/[\u3030]/),i2=La(r2,/[\u0300-\u036F]/,/[\u1DC0-\u1DFF]/,/[\u20D0-\u20FF]/,/[\uFE00-\uFE0F]/,/[\uFE20-\uFE2F]/),ny=at(r2,i2,"*"),o2=La(/[a-zA-Z_]/,/[\u00A8\u00AA\u00AD\u00AF\u00B2-\u00B5\u00B7-\u00BA]/,/[\u00BC-\u00BE\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF]/,/[\u0100-\u02FF\u0370-\u167F\u1681-\u180D\u180F-\u1DBF]/,/[\u1E00-\u1FFF]/,/[\u200B-\u200D\u202A-\u202E\u203F-\u2040\u2054\u2060-\u206F]/,/[\u2070-\u20CF\u2100-\u218F\u2460-\u24FF\u2776-\u2793]/,/[\u2C00-\u2DFF\u2E80-\u2FFF]/,/[\u3004-\u3007\u3021-\u302F\u3031-\u303F\u3040-\uD7FF]/,/[\uF900-\uFD3D\uFD40-\uFDCF\uFDF0-\uFE1F\uFE30-\uFE44]/,/[\uFE47-\uFEFE\uFF00-\uFFFD]/),Vm=La(o2,/\d/,/[\u0300-\u036F\u1DC0-\u1DFF\u20D0-\u20FF\uFE20-\uFE2F]/),Hr=at(o2,Vm,"*"),jm=at(/[A-Z]/,Vm,"*"),dH=["attached","autoclosure",at(/convention\(/,La("swift","block","c"),/\)/),"discardableResult","dynamicCallable","dynamicMemberLookup","escaping","freestanding","frozen","GKInspectable","IBAction","IBDesignable","IBInspectable","IBOutlet","IBSegueAction","inlinable","main","nonobjc","NSApplicationMain","NSCopying","NSManaged",at(/objc\(/,Hr,/\)/),"objc","objcMembers","propertyWrapper","requires_stored_property_inits","resultBuilder","Sendable","testable","UIApplicationMain","unchecked","unknown","usableFromInline","warn_unqualified_access"],hH=["iOS","iOSApplicationExtension","macOS","macOSApplicationExtension","macCatalyst","macCatalystApplicationExtension","watchOS","watchOSApplicationExtension","tvOS","tvOSApplicationExtension","swift"];function pH(t){let e={match:/\s+/,relevance:0},a=t.COMMENT("/\\*","\\*/",{contains:["self"]}),n=[t.C_LINE_COMMENT_MODE,a],r={match:[/\./,La(...lH,...e2)],className:{2:"keyword"}},i={match:at(/\./,La(...ay)),relevance:0},o=ay.filter(Ue=>typeof Ue=="string").concat(["_|0"]),s=ay.filter(Ue=>typeof Ue!="string").concat(uH).map(ry),l={variants:[{className:"keyword",match:La(...s,...e2)}]},u={$pattern:La(/\b\w+/,/#\w+/),keyword:o.concat(fH),literal:t2},c=[r,i,l],f={match:at(/\./,La(...a2)),relevance:0},d={className:"built_in",match:at(/\b/,La(...a2),/(?=\()/)},h=[f,d],p={match:/->/,relevance:0},g={className:"operator",relevance:0,variants:[{match:ny},{match:`\\.(\\.|${i2})+`}]},b=[p,g],m="([0-9]_*)+",O="([0-9a-fA-F]_*)+",x={className:"number",relevance:0,variants:[{match:`\\b(${m})(\\.(${m}))?([eE][+-]?(${m}))?\\b`},{match:`\\b0x(${O})(\\.(${O}))?([pP][+-]?(${m}))?\\b`},{match:/\b0o([0-7]_*)+\b/},{match:/\b0b([01]_*)+\b/}]},S=(Ue="")=>({className:"subst",variants:[{match:at(/\\/,Ue,/[0\\tnr"']/)},{match:at(/\\/,Ue,/u\{[0-9a-fA-F]{1,8}\}/)}]}),y=(Ue="")=>({className:"subst",match:at(/\\/,Ue,/[\t ]*(?:[\r\n]|\r\n)/)}),C=(Ue="")=>({className:"subst",label:"interpol",begin:at(/\\/,Ue,/\(/),end:/\)/}),v=(Ue="")=>({begin:at(Ue,/"""/),end:at(/"""/,Ue),contains:[S(Ue),y(Ue),C(Ue)]}),k=(Ue="")=>({begin:at(Ue,/"/),end:at(/"/,Ue),contains:[S(Ue),C(Ue)]}),L={className:"string",variants:[v(),v("#"),v("##"),v("###"),k(),k("#"),k("##"),k("###")]},A=[t.BACKSLASH_ESCAPE,{begin:/\[/,end:/\]/,relevance:0,contains:[t.BACKSLASH_ESCAPE]}],R={begin:/\/[^\s](?=[^/\n]*\/)/,end:/\//,contains:A},T=Ue=>{let Ln=at(Ue,/\//),oe=at(/\//,Ue);return{begin:Ln,end:oe,contains:[...A,{scope:"comment",begin:`#(?!.*${oe})`,end:/$/}]}},U={scope:"regexp",variants:[T("###"),T("##"),T("#"),R]},Q={match:at(/`/,Hr,/`/)},D={className:"variable",match:/\$\d+/},_={className:"variable",match:`\\$${Vm}+`},$=[Q,D,_],z={match:/(@|#(un)?)available/,scope:"keyword",starts:{contains:[{begin:/\(/,end:/\)/,keywords:hH,contains:[...b,x,L]}]}},H={scope:"keyword",match:at(/@/,La(...dH),pd(La(/\(/,/\s+/)))},E={scope:"meta",match:at(/@/,Hr)},N=[z,H,E],F={match:pd(/\b[A-Z]/),relevance:0,contains:[{className:"type",match:at(/(AV|CA|CF|CG|CI|CL|CM|CN|CT|MK|MP|MTK|MTL|NS|SCN|SK|UI|WK|XC)/,Vm,"+")},{className:"type",match:jm,relevance:0},{match:/[?!]+/,relevance:0},{match:/\.\.\./,relevance:0},{match:at(/\s+&\s+/,pd(jm)),relevance:0}]},B={begin:/</,end:/>/,keywords:u,contains:[...n,...c,...N,p,F]};F.contains.push(B);let V={match:at(Hr,/\s*:/),keywords:"_|0",relevance:0},q={begin:/\(/,end:/\)/,relevance:0,keywords:u,contains:["self",V,...n,U,...c,...h,...b,x,L,...$,...N,F]},Y={begin:/</,end:/>/,keywords:"repeat each",contains:[...n,F]},W={begin:La(pd(at(Hr,/\s*:/)),pd(at(Hr,/\s+/,Hr,/\s*:/))),end:/:/,relevance:0,contains:[{className:"keyword",match:/\b_\b/},{className:"params",match:Hr}]},Oe={begin:/\(/,end:/\)/,keywords:u,contains:[W,...n,...c,...b,x,L,...N,F,q],endsParent:!0,illegal:/["']/},me={match:[/(func|macro)/,/\s+/,La(Q.match,Hr,ny)],className:{1:"keyword",3:"title.function"},contains:[Y,Oe,e],illegal:[/\[/,/%/]},nt={match:[/\b(?:subscript|init[?!]?)/,/\s*(?=[<(])/],className:{1:"keyword"},contains:[Y,Oe,e],illegal:/\[|%/},Qt={match:[/operator/,/\s+/,ny],className:{1:"keyword",3:"title"}},$t={begin:[/precedencegroup/,/\s+/,jm],className:{1:"keyword",3:"title"},contains:[F],keywords:[...cH,...t2],end:/}/},ze={match:[/class\b/,/\s+/,/func\b/,/\s+/,/\b[A-Za-z_][A-Za-z0-9_]*\b/],scope:{1:"keyword",3:"keyword",5:"title.function"}},Lt={match:[/class\b/,/\s+/,/var\b/],scope:{1:"keyword",3:"keyword"}},Vt={begin:[/(struct|protocol|class|extension|enum|actor)/,/\s+/,Hr,/\s*/],beginScope:{1:"keyword",3:"title.class"},keywords:u,contains:[Y,...c,{begin:/:/,end:/\{/,keywords:u,contains:[{scope:"title.class.inherited",match:jm},...c],relevance:0}]};for(let Ue of L.variants){let Ln=Ue.contains.find(ls=>ls.label==="interpol");Ln.keywords=u;let oe=[...c,...h,...b,x,L,...$];Ln.contains=[...oe,{begin:/\(/,end:/\)/,contains:["self",...oe]}]}return{name:"Swift",keywords:u,contains:[...n,me,nt,ze,Lt,Vt,Qt,$t,{beginKeywords:"import",end:/$/,contains:[...n],relevance:0},U,...c,...h,...b,x,L,...$,...N,F,q]}}s2.exports=pH});var c2=be((boe,u2)=>{function mH(t){let e="true false yes no null",a="[\\w#;/?:@&=+$,.~*'()[\\]]+",n={className:"attr",variants:[{begin:/[\w*@][\w*@ :()\./-]*:(?=[ \t]|$)/},{begin:/"[\w*@][\w*@ :()\./-]*":(?=[ \t]|$)/},{begin:/'[\w*@][\w*@ :()\./-]*':(?=[ \t]|$)/}]},r={className:"template-variable",variants:[{begin:/\{\{/,end:/\}\}/},{begin:/%\{/,end:/\}/}]},i={className:"string",relevance:0,begin:/'/,end:/'/,contains:[{match:/''/,scope:"char.escape",relevance:0}]},o={className:"string",relevance:0,variants:[{begin:/"/,end:/"/},{begin:/\S+/}],contains:[t.BACKSLASH_ESCAPE,r]},s=t.inherit(o,{variants:[{begin:/'/,end:/'/,contains:[{begin:/''/,relevance:0}]},{begin:/"/,end:/"/},{begin:/[^\s,{}[\]]+/}]}),d={className:"number",begin:"\\b"+"[0-9]{4}(-[0-9][0-9]){0,2}"+"([Tt \\t][0-9][0-9]?(:[0-9][0-9]){2})?"+"(\\.[0-9]*)?"+"([ \\t])*(Z|[-+][0-9][0-9]?(:[0-9][0-9])?)?"+"\\b"},h={end:",",endsWithParent:!0,excludeEnd:!0,keywords:e,relevance:0},p={begin:/\{/,end:/\}/,contains:[h],illegal:"\\n",relevance:0},g={begin:"\\[",end:"\\]",contains:[h],illegal:"\\n",relevance:0},b=[n,{className:"meta",begin:"^---\\s*$",relevance:10},{className:"string",begin:"[\\|>]([1-9]?[+-])?[ ]*\\n( +)[^ ][^\\n]*\\n(\\2[^\\n]+\\n?)*"},{begin:"<%[%=-]?",end:"[%-]?%>",subLanguage:"ruby",excludeBegin:!0,excludeEnd:!0,relevance:0},{className:"type",begin:"!\\w+!"+a},{className:"type",begin:"!<"+a+">"},{className:"type",begin:"!"+a},{className:"type",begin:"!!"+a},{className:"meta",begin:"&"+t.UNDERSCORE_IDENT_RE+"$"},{className:"meta",begin:"\\*"+t.UNDERSCORE_IDENT_RE+"$"},{className:"bullet",begin:"-(?=[ ]|$)",relevance:0},t.HASH_COMMENT_MODE,{beginKeywords:e,keywords:{literal:e}},d,{className:"number",begin:t.C_NUMBER_RE+"\\b",relevance:0},p,g,i,o],m=[...b];return m.pop(),m.push(s),h.contains=m,{name:"YAML",case_insensitive:!0,aliases:["yml"],contains:b}}u2.exports=mH});var x2=be((xoe,b2)=>{var Ym="[A-Za-z$_][0-9A-Za-z$_]*",f2=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends","using"],d2=["true","false","null","undefined","NaN","Infinity"],h2=["Object","Function","Boolean","Symbol","Math","Date","Number","BigInt","String","RegExp","Array","Float32Array","Float64Array","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Int32Array","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array","Set","Map","WeakSet","WeakMap","ArrayBuffer","SharedArrayBuffer","Atomics","DataView","JSON","Promise","Generator","GeneratorFunction","AsyncFunction","Reflect","Proxy","Intl","WebAssembly"],p2=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],m2=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],g2=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","self","global"],O2=[].concat(m2,h2,p2);function gH(t){let e=t.regex,a=(z,{after:H})=>{let E="</"+z[0].slice(1);return z.input.indexOf(E,H)!==-1},n=Ym,r={begin:"<>",end:"</>"},i=/<[A-Za-z0-9\\._:-]+\s*\/>/,o={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(z,H)=>{let E=z[0].length+z.index,N=z.input[E];if(N==="<"||N===","){H.ignoreMatch();return}N===">"&&(a(z,{after:E})||H.ignoreMatch());let F,B=z.input.substring(E);if(F=B.match(/^\s*=/)){H.ignoreMatch();return}if((F=B.match(/^\s+extends\s+/))&&F.index===0){H.ignoreMatch();return}}},s={$pattern:Ym,keyword:f2,literal:d2,built_in:O2,"variable.language":g2},l="[0-9](_?[0-9])*",u=`\\.(${l})`,c="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",f={className:"number",variants:[{begin:`(\\b(${c})((${u})|\\.)?|(${u}))[eE][+-]?(${l})\\b`},{begin:`\\b(${c})\\b((${u})\\b|\\.)?|(${u})\\b`},{begin:"\\b(0|[1-9](_?[0-9])*)n\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*n?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*n?\\b"},{begin:"\\b0[0-7]+n?\\b"}],relevance:0},d={className:"subst",begin:"\\$\\{",end:"\\}",keywords:s,contains:[]},h={begin:".?html`",end:"",starts:{end:"`",returnEnd:!1,contains:[t.BACKSLASH_ESCAPE,d],subLanguage:"xml"}},p={begin:".?css`",end:"",starts:{end:"`",returnEnd:!1,contains:[t.BACKSLASH_ESCAPE,d],subLanguage:"css"}},g={begin:".?gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[t.BACKSLASH_ESCAPE,d],subLanguage:"graphql"}},b={className:"string",begin:"`",end:"`",contains:[t.BACKSLASH_ESCAPE,d]},O={className:"comment",variants:[t.COMMENT(/\/\*\*(?!\/)/,"\\*/",{relevance:0,contains:[{begin:"(?=@[A-Za-z]+)",relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"},{className:"type",begin:"\\{",end:"\\}",excludeEnd:!0,excludeBegin:!0,relevance:0},{className:"variable",begin:n+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),t.C_BLOCK_COMMENT_MODE,t.C_LINE_COMMENT_MODE]},x=[t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,h,p,g,b,{match:/\$\d+/},f];d.contains=x.concat({begin:/\{/,end:/\}/,keywords:s,contains:["self"].concat(x)});let S=[].concat(O,d.contains),y=S.concat([{begin:/(\s*)\(/,end:/\)/,keywords:s,contains:["self"].concat(S)}]),C={className:"params",begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:s,contains:y},v={variants:[{match:[/class/,/\s+/,n,/\s+/,/extends/,/\s+/,e.concat(n,"(",e.concat(/\./,n),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,n],scope:{1:"keyword",3:"title.class"}}]},k={relevance:0,match:e.either(/\bJSON/,/\b[A-Z][a-z]+([A-Z][a-z]*|\d)*/,/\b[A-Z]{2,}([A-Z][a-z]+|\d)+([A-Z][a-z]*)*/,/\b[A-Z]{2,}[a-z]+([A-Z][a-z]+|\d)*([A-Z][a-z]*)*/),className:"title.class",keywords:{_:[...h2,...p2]}},L={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},A={variants:[{match:[/function/,/\s+/,n,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[C],illegal:/%/},R={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function T(z){return e.concat("(?!",z.join("|"),")")}let U={match:e.concat(/\b/,T([...m2,"super","import","await"].map(z=>`${z}\\s*\\(`)),n,e.lookahead(/\s*\(/)),className:"title.function",relevance:0},Q={begin:e.concat(/\./,e.lookahead(e.concat(n,/(?![0-9A-Za-z$_(])/))),end:n,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},D={match:[/get|set/,/\s+/,n,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},C]},_="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+t.UNDERSCORE_IDENT_RE+")\\s*=>",$={match:[/const|var|let/,/\s+/,n,/\s*/,/=\s*/,/(async\s*)?/,e.lookahead(_)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[C]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:s,exports:{PARAMS_CONTAINS:y,CLASS_REFERENCE:k},illegal:/#(?![$_A-Za-z])/,contains:[t.SHEBANG({label:"shebang",binary:"node",relevance:5}),L,t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,h,p,g,b,O,{match:/\$\d+/},f,k,{scope:"attr",match:n+e.lookahead(":"),relevance:0},$,{begin:"("+t.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[O,t.REGEXP_MODE,{className:"function",begin:_,returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:t.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:s,contains:y}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:r.begin,end:r.end},{match:i},{begin:o.begin,"on:begin":o.isTrulyOpeningTag,end:o.end}],subLanguage:"xml",contains:[{begin:o.begin,end:o.end,skip:!0,contains:["self"]}]}]},A,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+t.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[C,t.inherit(t.TITLE_MODE,{begin:n,className:"title.function"})]},{match:/\.\.\./,relevance:0},Q,{match:"\\$"+n,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[C]},U,R,v,D,{match:/\$[(.]/}]}}function OH(t){let e=t.regex,a=gH(t),n=Ym,r=["any","void","number","boolean","string","object","never","symbol","bigint","unknown"],i={begin:[/namespace/,/\s+/,t.IDENT_RE],beginScope:{1:"keyword",3:"title.class"}},o={beginKeywords:"interface",end:/\{/,excludeEnd:!0,keywords:{keyword:"interface extends",built_in:r},contains:[a.exports.CLASS_REFERENCE]},s={className:"meta",relevance:10,begin:/^\s*['"]use strict['"]/},l=["type","interface","public","private","protected","implements","declare","abstract","readonly","enum","override","satisfies"],u={$pattern:Ym,keyword:f2.concat(l),literal:d2,built_in:O2.concat(r),"variable.language":g2},c={className:"meta",begin:"@"+n},f=(g,b,m)=>{let O=g.contains.findIndex(x=>x.label===b);if(O===-1)throw new Error("can not find mode to replace");g.contains.splice(O,1,m)};Object.assign(a.keywords,u),a.exports.PARAMS_CONTAINS.push(c);let d=a.contains.find(g=>g.scope==="attr"),h=Object.assign({},d,{match:e.concat(n,e.lookahead(/\s*\?:/))});a.exports.PARAMS_CONTAINS.push([a.exports.CLASS_REFERENCE,d,h]),a.contains=a.contains.concat([c,i,o,h]),f(a,"shebang",t.SHEBANG()),f(a,"use_strict",s);let p=a.contains.find(g=>g.label==="func.def");return p.relevance=0,Object.assign(a,{name:"TypeScript",aliases:["ts","tsx","mts","cts"]}),a}b2.exports=OH});var y2=be((Soe,S2)=>{function bH(t){let e=t.regex,a={className:"string",begin:/"(""|[^/n])"C\b/},n={className:"string",begin:/"/,end:/"/,illegal:/\n/,contains:[{begin:/""/}]},r=/\d{1,2}\/\d{1,2}\/\d{4}/,i=/\d{4}-\d{1,2}-\d{1,2}/,o=/(\d|1[012])(:\d+){0,2} *(AM|PM)/,s=/\d{1,2}(:\d{1,2}){1,2}/,l={className:"literal",variants:[{begin:e.concat(/# */,e.either(i,r),/ *#/)},{begin:e.concat(/# */,s,/ *#/)},{begin:e.concat(/# */,o,/ *#/)},{begin:e.concat(/# */,e.either(i,r),/ +/,e.either(o,s),/ *#/)}]},u={className:"number",relevance:0,variants:[{begin:/\b\d[\d_]*((\.[\d_]+(E[+-]?[\d_]+)?)|(E[+-]?[\d_]+))[RFD@!#]?/},{begin:/\b\d[\d_]*((U?[SIL])|[%&])?/},{begin:/&H[\dA-F_]+((U?[SIL])|[%&])?/},{begin:/&O[0-7_]+((U?[SIL])|[%&])?/},{begin:/&B[01_]+((U?[SIL])|[%&])?/}]},c={className:"label",begin:/^\w+:/},f=t.COMMENT(/'''/,/$/,{contains:[{className:"doctag",begin:/<\/?/,end:/>/}]}),d=t.COMMENT(null,/$/,{variants:[{begin:/'/},{begin:/([\t ]|^)REM(?=\s)/}]});return{name:"Visual Basic .NET",aliases:["vb"],case_insensitive:!0,classNameAliases:{label:"symbol"},keywords:{keyword:"addhandler alias aggregate ansi as async assembly auto binary by byref byval call case catch class compare const continue custom declare default delegate dim distinct do each equals else elseif end enum erase error event exit explicit finally for friend from function get global goto group handles if implements imports in inherits interface into iterator join key let lib loop me mid module mustinherit mustoverride mybase myclass namespace narrowing new next notinheritable notoverridable of off on operator option optional order overloads overridable overrides paramarray partial preserve private property protected public raiseevent readonly redim removehandler resume return select set shadows shared skip static step stop structure strict sub synclock take text then throw to try unicode until using when where while widening with withevents writeonly yield",built_in:"addressof and andalso await directcast gettype getxmlnamespace is isfalse isnot istrue like mod nameof new not or orelse trycast typeof xor cbool cbyte cchar cdate cdbl cdec cint clng cobj csbyte cshort csng cstr cuint culng cushort",type:"boolean byte char date decimal double integer long object sbyte short single string uinteger ulong ushort",literal:"true false nothing"},illegal:"//|\\{|\\}|endif|gosub|variant|wend|^\\$ ",contains:[a,n,l,u,c,f,d,{className:"meta",begin:/[\t ]*#(const|disable|else|elseif|enable|end|externalsource|if|region)\b/,end:/$/,keywords:{keyword:"const disable else elseif enable end externalsource if region then"},contains:[d]}]}}S2.exports=bH});var C2=be((yoe,v2)=>{function xH(t){t.regex;let e=t.COMMENT(/\(;/,/;\)/);e.contains.push("self");let a=t.COMMENT(/;;/,/$/),n=["anyfunc","block","br","br_if","br_table","call","call_indirect","data","drop","elem","else","end","export","func","global.get","global.set","local.get","local.set","local.tee","get_global","get_local","global","if","import","local","loop","memory","memory.grow","memory.size","module","mut","nop","offset","param","result","return","select","set_global","set_local","start","table","tee_local","then","type","unreachable"],r={begin:[/(?:func|call|call_indirect)/,/\s+/,/\$[^\s)]+/],className:{1:"keyword",3:"title.function"}},i={className:"variable",begin:/\$[\w_]+/},o={match:/(\((?!;)|\))+/,className:"punctuation",relevance:0},s={className:"number",relevance:0,match:/[+-]?\b(?:\d(?:_?\d)*(?:\.\d(?:_?\d)*)?(?:[eE][+-]?\d(?:_?\d)*)?|0x[\da-fA-F](?:_?[\da-fA-F])*(?:\.[\da-fA-F](?:_?[\da-fA-D])*)?(?:[pP][+-]?\d(?:_?\d)*)?)\b|\binf\b|\bnan(?::0x[\da-fA-F](?:_?[\da-fA-D])*)?\b/},l={match:/(i32|i64|f32|f64)(?!\.)/,className:"type"},u={className:"keyword",match:/\b(f32|f64|i32|i64)(?:\.(?:abs|add|and|ceil|clz|const|convert_[su]\/i(?:32|64)|copysign|ctz|demote\/f64|div(?:_[su])?|eqz?|extend_[su]\/i32|floor|ge(?:_[su])?|gt(?:_[su])?|le(?:_[su])?|load(?:(?:8|16|32)_[su])?|lt(?:_[su])?|max|min|mul|nearest|neg?|or|popcnt|promote\/f32|reinterpret\/[fi](?:32|64)|rem_[su]|rot[lr]|shl|shr_[su]|store(?:8|16|32)?|sqrt|sub|trunc(?:_[su]\/f(?:32|64))?|wrap\/i64|xor))\b/};return{name:"WebAssembly",keywords:{$pattern:/[\w.]+/,keyword:n},contains:[a,e,{match:[/(?:offset|align)/,/\s*/,/=/],className:{1:"keyword",3:"operator"}},i,o,r,t.QUOTE_STRING_MODE,l,u,s]}}v2.exports=xH});var k2=be((voe,w2)=>{var Le=QP();Le.registerLanguage("xml",BP());Le.registerLanguage("bash",UP());Le.registerLanguage("c",qP());Le.registerLanguage("cpp",FP());Le.registerLanguage("csharp",HP());Le.registerLanguage("css",VP());Le.registerLanguage("markdown",WP());Le.registerLanguage("diff",JP());Le.registerLanguage("ruby",tM());Le.registerLanguage("go",nM());Le.registerLanguage("graphql",iM());Le.registerLanguage("ini",sM());Le.registerLanguage("java",fM());Le.registerLanguage("javascript",OM());Le.registerLanguage("json",xM());Le.registerLanguage("kotlin",yM());Le.registerLanguage("less",kM());Le.registerLanguage("lua",EM());Le.registerLanguage("makefile",_M());Le.registerLanguage("perl",TM());Le.registerLanguage("objectivec",PM());Le.registerLanguage("php",DM());Le.registerLanguage("php-template",QM());Le.registerLanguage("plaintext",BM());Le.registerLanguage("python",UM());Le.registerLanguage("python-repl",qM());Le.registerLanguage("r",FM());Le.registerLanguage("rust",HM());Le.registerLanguage("scss",VM());Le.registerLanguage("shell",WM());Le.registerLanguage("sql",JM());Le.registerLanguage("swift",l2());Le.registerLanguage("yaml",c2());Le.registerLanguage("typescript",x2());Le.registerLanguage("vbnet",y2());Le.registerLanguage("wasm",C2());Le.HighlightJS=Le;Le.default=Le;w2.exports=Le});var Y5=M(S_(),1);var ma=M(ye(),1),L_=M(ae(),1),w_=(0,ma.createContext)(null),Ef=()=>{let t=(0,ma.useContext)(w_);if(!t)throw new Error("useServerEvents must be used inside <ServerEventsProvider>");return t},Tq=["hello","status","change","chat-start","chat","chat-done","render-start","render-done","doc-saved","settings"];function k_({children:t}){let e=(0,ma.useRef)(new Map),[a,n]=(0,ma.useState)(null),[r,i]=(0,ma.useState)(!1);(0,ma.useEffect)(()=>{let l=new EventSource("/events"),u=f=>d=>{let h=null;try{h=JSON.parse(d.data)}catch{return}f==="status"&&n(h);for(let p of e.current.get(f)??[])p(h)},c=Tq.map(f=>{let d=u(f);return l.addEventListener(f,d),[f,d]});return l.addEventListener("open",()=>i(!0)),l.addEventListener("error",()=>i(!1)),()=>{for(let[f,d]of c)l.removeEventListener(f,d);l.close()}},[]);let o=(0,ma.useCallback)((l,u)=>{let c=e.current.get(l);return c||(c=new Set,e.current.set(l,c)),c.add(u),()=>{c.delete(u)}},[]),s=(0,ma.useMemo)(()=>({status:a,connected:r,subscribe:o}),[a,r,o]);return(0,L_.jsx)(w_.Provider,{value:s,children:t})}function qt(t,e){let{subscribe:a}=Ef(),n=(0,ma.useRef)(e);n.current=e,(0,ma.useEffect)(()=>a(t,r=>n.current(r)),[a,t])}var pt=M(ye(),1);async function xi(t,e){return await(await fetch(t,e)).json().catch(()=>({}))}var sm=t=>({method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(t)}),E_=t=>xi(`/api/room?room=${encodeURIComponent(t)}`),A_=(t,e)=>xi(`/api/doc?room=${encodeURIComponent(t)}&name=${encodeURIComponent(e)}`);async function __(t){let e=await fetch("/api/doc",{method:"PUT",headers:{"content-type":"application/json"},body:JSON.stringify(t)}),a=await e.json().catch(()=>({}));return{ok:e.ok,status:e.status,data:a}}var lm=t=>xi(`/api/session?room=${encodeURIComponent(t)}`),R_=(t,e)=>xi("/api/chat",sm({room:t,prompt:e})),T_=t=>xi("/api/session",sm({room:t})),I_=(t,e)=>xi("/api/artifact",sm({room:t,device:e})),P_=t=>Math.max(0,Math.min(100,t)),um=()=>xi("/api/rooms"),M_=t=>xi(`/api/search?q=${encodeURIComponent(t)}`),D_=t=>xi("/api/settings",sm(t));var yu=t=>t==null||!Number.isFinite(t)?"\u2014":t>=1e6?(t/1e6).toFixed(2)+"M":t>=1e3?(t/1e3).toFixed(1)+"K":String(t),Ds=t=>new Date(t??Date.now()).toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"}),N_=t=>new Date(t??Date.now()).toLocaleString([],{month:"short",day:"numeric",hour:"2-digit",minute:"2-digit"}),Q_=t=>t.replace(/\.md$/i,"");function $_(t){let e=/^\uFEFF?---\r?\n([\s\S]*?)\r?\n---\r?\n?/.exec(t);if(!e)return{rows:[],body:t};let a=[];for(let n of e[1].split(/\r?\n/)){let r=/^([A-Za-z0-9_-]+)\s*:\s*(.*)$/.exec(n);if(!r)continue;let i=r[1],o=r[2].trim().replace(/^["']|["']$/g,"");o=o.replace(/^\[(.*)\]$/,(s,l)=>l.split(",").map(u=>u.trim()).filter(Boolean).join(", ")),a.push({key:i,value:o})}return{rows:a,body:t.slice(e[0].length)}}function B_(t){var e,a,n="";if(typeof t=="string"||typeof t=="number")n+=t;else if(typeof t=="object")if(Array.isArray(t)){var r=t.length;for(e=0;e<r;e++)t[e]&&(a=B_(t[e]))&&(n&&(n+=" "),n+=a)}else for(a in t)t[a]&&(n&&(n+=" "),n+=a);return n}function cm(){for(var t,e,a=0,n="",r=arguments.length;a<r;a++)(t=arguments[a])&&(e=B_(t))&&(n&&(n+=" "),n+=e);return n}var Iq=(t,e)=>{let a=new Array(t.length+e.length);for(let n=0;n<t.length;n++)a[n]=t[n];for(let n=0;n<e.length;n++)a[t.length+n]=e[n];return a},Pq=(t,e)=>({classGroupId:t,validator:e}),F_=(t=new Map,e=null,a)=>({nextPart:t,validators:e,classGroupId:a});var z_=[],Mq="arbitrary..",Dq=t=>{let e=Qq(t),{conflictingClassGroups:a,conflictingClassGroupModifiers:n}=t;return{getClassGroupId:o=>{if(o.startsWith("[")&&o.endsWith("]"))return Nq(o);let s=o.split("-"),l=s[0]===""&&s.length>1?1:0;return G_(s,l,e)},getConflictingClassGroupIds:(o,s)=>{if(s){let l=n[o],u=a[o];return l?u?Iq(u,l):l:u||z_}return a[o]||z_}}},G_=(t,e,a)=>{if(t.length-e===0)return a.classGroupId;let r=t[e],i=a.nextPart.get(r);if(i){let u=G_(t,e+1,i);if(u)return u}let o=a.validators;if(o===null)return;let s=e===0?t.join("-"):t.slice(e).join("-"),l=o.length;for(let u=0;u<l;u++){let c=o[u];if(c.validator(s))return c.classGroupId}},Nq=t=>t.slice(1,-1).indexOf(":")===-1?void 0:(()=>{let e=t.slice(1,-1),a=e.indexOf(":"),n=e.slice(0,a);return n?Mq+n:void 0})(),Qq=t=>{let{theme:e,classGroups:a}=t;return $q(a,e)},$q=(t,e)=>{let a=F_();for(let n in t){let r=t[n];eS(r,a,n,e)}return a},eS=(t,e,a,n)=>{let r=t.length;for(let i=0;i<r;i++){let o=t[i];Bq(o,e,a,n)}},Bq=(t,e,a,n)=>{if(typeof t=="string"){zq(t,e,a);return}if(typeof t=="function"){Uq(t,e,a,n);return}Xq(t,e,a,n)},zq=(t,e,a)=>{let n=t===""?e:H_(e,t);n.classGroupId=a},Uq=(t,e,a,n)=>{if(qq(t)){eS(t(n),e,a,n);return}e.validators===null&&(e.validators=[]),e.validators.push(Pq(a,t))},Xq=(t,e,a,n)=>{let r=Object.entries(t),i=r.length;for(let o=0;o<i;o++){let[s,l]=r[o];eS(l,H_(e,s),a,n)}},H_=(t,e)=>{let a=t,n=e.split("-"),r=n.length;for(let i=0;i<r;i++){let o=n[i],s=a.nextPart.get(o);s||(s=F_(),a.nextPart.set(o,s)),a=s}return a},qq=t=>"isThemeGetter"in t&&t.isThemeGetter===!0,Zq=t=>{if(t<1)return{get:()=>{},set:()=>{}};let e=0,a=Object.create(null),n=Object.create(null),r=(i,o)=>{a[i]=o,e++,e>t&&(e=0,n=a,a=Object.create(null))};return{get(i){let o=a[i];if(o!==void 0)return o;if((o=n[i])!==void 0)return r(i,o),o},set(i,o){i in a?a[i]=o:r(i,o)}}};var Fq=[],U_=(t,e,a,n,r)=>({modifiers:t,hasImportantModifier:e,baseClassName:a,maybePostfixModifierPosition:n,isExternal:r}),Gq=t=>{let{prefix:e,experimentalParseClassName:a}=t,n=r=>{let i=[],o=0,s=0,l=0,u,c=r.length;for(let g=0;g<c;g++){let b=r[g];if(o===0&&s===0){if(b===":"){i.push(r.slice(l,g)),l=g+1;continue}if(b==="/"){u=g;continue}}b==="["?o++:b==="]"?o--:b==="("?s++:b===")"&&s--}let f=i.length===0?r:r.slice(l),d=f,h=!1;f.endsWith("!")?(d=f.slice(0,-1),h=!0):f.startsWith("!")&&(d=f.slice(1),h=!0);let p=u&&u>l?u-l:void 0;return U_(i,h,d,p)};if(e){let r=e+":",i=n;n=o=>o.startsWith(r)?i(o.slice(r.length)):U_(Fq,!1,o,void 0,!0)}if(a){let r=n;n=i=>a({className:i,parseClassName:r})}return n},Hq=t=>{let e=new Map;return t.orderSensitiveModifiers.forEach((a,n)=>{e.set(a,1e6+n)}),a=>{let n=[],r=[];for(let i=0;i<a.length;i++){let o=a[i],s=o[0]==="[",l=e.has(o);s||l?(r.length>0&&(r.sort(),n.push(...r),r=[]),n.push(o)):r.push(o)}return r.length>0&&(r.sort(),n.push(...r)),n}},jq=t=>({cache:Zq(t.cacheSize),parseClassName:Gq(t),sortModifiers:Hq(t),postfixLookupClassGroupIds:Vq(t),...Dq(t)}),Vq=t=>{let e=Object.create(null),a=t.postfixLookupClassGroups;if(a)for(let n=0;n<a.length;n++)e[a[n]]=!0;return e},Yq=/\s+/,Wq=(t,e)=>{let{parseClassName:a,getClassGroupId:n,getConflictingClassGroupIds:r,sortModifiers:i,postfixLookupClassGroupIds:o}=e,s=[],l=t.trim().split(Yq),u="";for(let c=l.length-1;c>=0;c-=1){let f=l[c],{isExternal:d,modifiers:h,hasImportantModifier:p,baseClassName:g,maybePostfixModifierPosition:b}=a(f);if(d){u=f+(u.length>0?" "+u:u);continue}let m=!!b,O;if(m){let v=g.substring(0,b);O=n(v);let k=O&&o[O]?n(g):void 0;k&&k!==O&&(O=k,m=!1)}else O=n(g);if(!O){if(!m){u=f+(u.length>0?" "+u:u);continue}if(O=n(g),!O){u=f+(u.length>0?" "+u:u);continue}m=!1}let x=h.length===0?"":h.length===1?h[0]:i(h).join(":"),S=p?x+"!":x,y=S+O;if(s.indexOf(y)>-1)continue;s.push(y);let C=r(O,m);for(let v=0;v<C.length;++v){let k=C[v];s.push(S+k)}u=f+(u.length>0?" "+u:u)}return u},Kq=(...t)=>{let e=0,a,n,r="";for(;e<t.length;)(a=t[e++])&&(n=j_(a))&&(r&&(r+=" "),r+=n);return r},j_=t=>{if(typeof t=="string")return t;let e,a="";for(let n=0;n<t.length;n++)t[n]&&(e=j_(t[n]))&&(a&&(a+=" "),a+=e);return a},Jq=(t,...e)=>{let a,n,r,i,o=l=>{let u=e.reduce((c,f)=>f(c),t());return a=jq(u),n=a.cache.get,r=a.cache.set,i=s,s(l)},s=l=>{let u=n(l);if(u)return u;let c=Wq(l,a);return r(l,c),c};return i=o,(...l)=>i(Kq(...l))},eZ=[],Zt=t=>{let e=a=>a[t]||eZ;return e.isThemeGetter=!0,e.themeKey=t,e},V_=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Y_=/^\((?:(\w[\w-]*):)?(.+)\)$/i,tZ=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,aZ=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,nZ=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,rZ=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix|color|light-dark)\(.+\)$/,iZ=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,oZ=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,bo=t=>tZ.test(t),Re=t=>!!t&&!Number.isNaN(Number(t)),zr=t=>!!t&&Number.isInteger(Number(t)),Jx=t=>t.endsWith("%")&&Re(t.slice(0,-1)),Si=t=>aZ.test(t),W_=()=>!0,sZ=t=>nZ.test(t)&&!rZ.test(t),tS=()=>!1,lZ=t=>iZ.test(t),uZ=t=>oZ.test(t),cZ=t=>!ne(t)&&!ie(t),fZ=t=>t.startsWith("@container")&&(t[10]==="/"&&t[11]!==void 0||t[11]==="s"&&t[16]!==void 0&&t.startsWith("-size/",10)||t[11]==="n"&&t[18]!==void 0&&t.startsWith("-normal/",10)),dZ=t=>xo(t,eR,tS),ne=t=>V_.test(t),Ns=t=>xo(t,tR,sZ),X_=t=>xo(t,SZ,Re),hZ=t=>xo(t,nR,W_),pZ=t=>xo(t,aR,tS),q_=t=>xo(t,K_,tS),mZ=t=>xo(t,J_,uZ),fm=t=>xo(t,rR,lZ),ie=t=>Y_.test(t),Af=t=>Qs(t,tR),gZ=t=>Qs(t,aR),Z_=t=>Qs(t,K_),OZ=t=>Qs(t,eR),bZ=t=>Qs(t,J_),dm=t=>Qs(t,rR,!0),xZ=t=>Qs(t,nR,!0),xo=(t,e,a)=>{let n=V_.exec(t);return n?n[1]?e(n[1]):a(n[2]):!1},Qs=(t,e,a=!1)=>{let n=Y_.exec(t);return n?n[1]?e(n[1]):a:!1},K_=t=>t==="position"||t==="percentage",J_=t=>t==="image"||t==="url",eR=t=>t==="length"||t==="size"||t==="bg-size",tR=t=>t==="length",SZ=t=>t==="number",aR=t=>t==="family-name",nR=t=>t==="number"||t==="weight",rR=t=>t==="shadow";var yZ=()=>{let t=Zt("color"),e=Zt("font"),a=Zt("text"),n=Zt("font-weight"),r=Zt("tracking"),i=Zt("leading"),o=Zt("breakpoint"),s=Zt("container"),l=Zt("spacing"),u=Zt("radius"),c=Zt("shadow"),f=Zt("inset-shadow"),d=Zt("text-shadow"),h=Zt("drop-shadow"),p=Zt("blur"),g=Zt("perspective"),b=Zt("aspect"),m=Zt("ease"),O=Zt("animate"),x=()=>["auto","avoid","all","avoid-page","page","left","right","column"],S=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],y=()=>[...S(),ie,ne],C=()=>["auto","hidden","clip","visible","scroll"],v=()=>["auto","contain","none"],k=()=>[ie,ne,l],L=()=>[bo,"full","auto",...k()],A=()=>[zr,"none","subgrid",ie,ne],R=()=>["auto",{span:["full",zr,ie,ne]},zr,ie,ne],T=()=>[zr,"auto",ie,ne],U=()=>["auto","min","max","fr",ie,ne],Q=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],D=()=>["start","end","center","stretch","center-safe","end-safe"],_=()=>["auto",...k()],$=()=>[bo,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...k()],z=()=>[s,bo,"screen","full","dvw","lvw","svw","min","max","fit",...k()],H=()=>[bo,"screen","full","lh","dvh","lvh","svh","min","max","fit",...k()],E=()=>[t,ie,ne],N=()=>[...S(),Z_,q_,{position:[ie,ne]}],F=()=>["no-repeat",{repeat:["","x","y","space","round"]}],B=()=>["auto","cover","contain",OZ,dZ,{size:[ie,ne]}],V=()=>[Jx,Af,Ns],q=()=>["","none","full",u,ie,ne],Y=()=>["",Re,Af,Ns],W=()=>["solid","dashed","dotted","double"],Oe=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],me=()=>[Re,Jx,Z_,q_],nt=()=>["","none",p,ie,ne],Qt=()=>["none",Re,ie,ne],$t=()=>["none",Re,ie,ne],ze=()=>[Re,ie,ne],Lt=()=>[bo,"full",...k()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Si],breakpoint:[Si],color:[W_],container:[Si],"drop-shadow":[Si],ease:["in","out","in-out"],font:[cZ],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Si],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Si],shadow:[Si],spacing:["px",Re],text:[Si],"text-shadow":[Si],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",bo,ne,ie,b]}],container:["container"],"container-type":[{"@container":["","normal","size",ie,ne]}],"container-named":[fZ],columns:[{columns:[Re,"auto",ne,ie,s]}],"break-after":[{"break-after":x()}],"break-before":[{"break-before":x()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:y()}],overflow:[{overflow:C()}],"overflow-x":[{"overflow-x":C()}],"overflow-y":[{"overflow-y":C()}],overscroll:[{overscroll:v()}],"overscroll-x":[{"overscroll-x":v()}],"overscroll-y":[{"overscroll-y":v()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:L()}],"inset-x":[{"inset-x":L()}],"inset-y":[{"inset-y":L()}],start:[{"inset-s":L(),start:L()}],end:[{"inset-e":L(),end:L()}],"inset-bs":[{"inset-bs":L()}],"inset-be":[{"inset-be":L()}],top:[{top:L()}],right:[{right:L()}],bottom:[{bottom:L()}],left:[{left:L()}],visibility:["visible","invisible","collapse"],z:[{z:[zr,"auto",ie,ne]}],basis:[{basis:[bo,"full","auto",s,...k()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Re,bo,"auto","initial","none",ne]}],grow:[{grow:["",Re,ie,ne]}],shrink:[{shrink:["",Re,ie,ne]}],order:[{order:[zr,"first","last","none",ie,ne]}],"grid-cols":[{"grid-cols":A()}],"col-start-end":[{col:R()}],"col-start":[{"col-start":T()}],"col-end":[{"col-end":T()}],"grid-rows":[{"grid-rows":A()}],"row-start-end":[{row:R()}],"row-start":[{"row-start":T()}],"row-end":[{"row-end":T()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":U()}],"auto-rows":[{"auto-rows":U()}],gap:[{gap:k()}],"gap-x":[{"gap-x":k()}],"gap-y":[{"gap-y":k()}],"justify-content":[{justify:[...Q(),"normal"]}],"justify-items":[{"justify-items":[...D(),"normal"]}],"justify-self":[{"justify-self":["auto",...D()]}],"align-content":[{content:["normal",...Q()]}],"align-items":[{items:[...D(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...D(),{baseline:["","last"]}]}],"place-content":[{"place-content":Q()}],"place-items":[{"place-items":[...D(),"baseline"]}],"place-self":[{"place-self":["auto",...D()]}],p:[{p:k()}],px:[{px:k()}],py:[{py:k()}],ps:[{ps:k()}],pe:[{pe:k()}],pbs:[{pbs:k()}],pbe:[{pbe:k()}],pt:[{pt:k()}],pr:[{pr:k()}],pb:[{pb:k()}],pl:[{pl:k()}],m:[{m:_()}],mx:[{mx:_()}],my:[{my:_()}],ms:[{ms:_()}],me:[{me:_()}],mbs:[{mbs:_()}],mbe:[{mbe:_()}],mt:[{mt:_()}],mr:[{mr:_()}],mb:[{mb:_()}],ml:[{ml:_()}],"space-x":[{"space-x":k()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":k()}],"space-y-reverse":["space-y-reverse"],size:[{size:$()}],"inline-size":[{inline:["auto",...z()]}],"min-inline-size":[{"min-inline":["auto",...z()]}],"max-inline-size":[{"max-inline":["none",...z()]}],"block-size":[{block:["auto",...H()]}],"min-block-size":[{"min-block":["auto",...H()]}],"max-block-size":[{"max-block":["none",...H()]}],w:[{w:[s,"screen",...$()]}],"min-w":[{"min-w":[s,"screen","none",...$()]}],"max-w":[{"max-w":[s,"screen","none","prose",{screen:[o]},...$()]}],h:[{h:["screen","lh",...$()]}],"min-h":[{"min-h":["screen","lh","none",...$()]}],"max-h":[{"max-h":["screen","lh","none",...$()]}],"font-size":[{text:["base",a,Af,Ns]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[n,xZ,hZ]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Jx,ne]}],"font-family":[{font:[gZ,pZ,e]}],"font-features":[{"font-features":[ne]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[r,ie,ne]}],"line-clamp":[{"line-clamp":[Re,"none",ie,X_]}],leading:[{leading:["none",i,...k()]}],"list-image":[{"list-image":["none",ie,ne]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",ie,ne]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:E()}],"text-color":[{text:E()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...W(),"wavy"]}],"text-decoration-thickness":[{decoration:[Re,"from-font","auto",ie,Ns]}],"text-decoration-color":[{decoration:E()}],"underline-offset":[{"underline-offset":[Re,"auto",ie,ne]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:k()}],"tab-size":[{tab:[zr,ie,ne]}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",ie,ne]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",ie,ne]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:N()}],"bg-repeat":[{bg:F()}],"bg-size":[{bg:B()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},zr,ie,ne],radial:["",ie,ne],conic:["",zr,ie,ne]},bZ,mZ]}],"bg-color":[{bg:E()}],"gradient-from-pos":[{from:V()}],"gradient-via-pos":[{via:V()}],"gradient-to-pos":[{to:V()}],"gradient-from":[{from:E()}],"gradient-via":[{via:E()}],"gradient-to":[{to:E()}],rounded:[{rounded:q()}],"rounded-s":[{"rounded-s":q()}],"rounded-e":[{"rounded-e":q()}],"rounded-t":[{"rounded-t":q()}],"rounded-r":[{"rounded-r":q()}],"rounded-b":[{"rounded-b":q()}],"rounded-l":[{"rounded-l":q()}],"rounded-ss":[{"rounded-ss":q()}],"rounded-se":[{"rounded-se":q()}],"rounded-ee":[{"rounded-ee":q()}],"rounded-es":[{"rounded-es":q()}],"rounded-tl":[{"rounded-tl":q()}],"rounded-tr":[{"rounded-tr":q()}],"rounded-br":[{"rounded-br":q()}],"rounded-bl":[{"rounded-bl":q()}],"border-w":[{border:Y()}],"border-w-x":[{"border-x":Y()}],"border-w-y":[{"border-y":Y()}],"border-w-s":[{"border-s":Y()}],"border-w-e":[{"border-e":Y()}],"border-w-bs":[{"border-bs":Y()}],"border-w-be":[{"border-be":Y()}],"border-w-t":[{"border-t":Y()}],"border-w-r":[{"border-r":Y()}],"border-w-b":[{"border-b":Y()}],"border-w-l":[{"border-l":Y()}],"divide-x":[{"divide-x":Y()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":Y()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...W(),"hidden","none"]}],"divide-style":[{divide:[...W(),"hidden","none"]}],"border-color":[{border:E()}],"border-color-x":[{"border-x":E()}],"border-color-y":[{"border-y":E()}],"border-color-s":[{"border-s":E()}],"border-color-e":[{"border-e":E()}],"border-color-bs":[{"border-bs":E()}],"border-color-be":[{"border-be":E()}],"border-color-t":[{"border-t":E()}],"border-color-r":[{"border-r":E()}],"border-color-b":[{"border-b":E()}],"border-color-l":[{"border-l":E()}],"divide-color":[{divide:E()}],"outline-style":[{outline:[...W(),"none","hidden"]}],"outline-offset":[{"outline-offset":[Re,ie,ne]}],"outline-w":[{outline:["",Re,Af,Ns]}],"outline-color":[{outline:E()}],shadow:[{shadow:["","inner","none",c,dm,fm]}],"shadow-color":[{shadow:E()}],"inset-shadow":[{"inset-shadow":["none",f,dm,fm]}],"inset-shadow-color":[{"inset-shadow":E()}],"ring-w":[{ring:Y()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:E()}],"ring-offset-w":[{"ring-offset":[Re,Ns]}],"ring-offset-color":[{"ring-offset":E()}],"inset-ring-w":[{"inset-ring":Y()}],"inset-ring-color":[{"inset-ring":E()}],"text-shadow":[{"text-shadow":["none",d,dm,fm]}],"text-shadow-color":[{"text-shadow":E()}],opacity:[{opacity:[Re,ie,ne]}],"mix-blend":[{"mix-blend":[...Oe(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":Oe()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[Re]}],"mask-image-linear-from-pos":[{"mask-linear-from":me()}],"mask-image-linear-to-pos":[{"mask-linear-to":me()}],"mask-image-linear-from-color":[{"mask-linear-from":E()}],"mask-image-linear-to-color":[{"mask-linear-to":E()}],"mask-image-t-from-pos":[{"mask-t-from":me()}],"mask-image-t-to-pos":[{"mask-t-to":me()}],"mask-image-t-from-color":[{"mask-t-from":E()}],"mask-image-t-to-color":[{"mask-t-to":E()}],"mask-image-r-from-pos":[{"mask-r-from":me()}],"mask-image-r-to-pos":[{"mask-r-to":me()}],"mask-image-r-from-color":[{"mask-r-from":E()}],"mask-image-r-to-color":[{"mask-r-to":E()}],"mask-image-b-from-pos":[{"mask-b-from":me()}],"mask-image-b-to-pos":[{"mask-b-to":me()}],"mask-image-b-from-color":[{"mask-b-from":E()}],"mask-image-b-to-color":[{"mask-b-to":E()}],"mask-image-l-from-pos":[{"mask-l-from":me()}],"mask-image-l-to-pos":[{"mask-l-to":me()}],"mask-image-l-from-color":[{"mask-l-from":E()}],"mask-image-l-to-color":[{"mask-l-to":E()}],"mask-image-x-from-pos":[{"mask-x-from":me()}],"mask-image-x-to-pos":[{"mask-x-to":me()}],"mask-image-x-from-color":[{"mask-x-from":E()}],"mask-image-x-to-color":[{"mask-x-to":E()}],"mask-image-y-from-pos":[{"mask-y-from":me()}],"mask-image-y-to-pos":[{"mask-y-to":me()}],"mask-image-y-from-color":[{"mask-y-from":E()}],"mask-image-y-to-color":[{"mask-y-to":E()}],"mask-image-radial":[{"mask-radial":[ie,ne]}],"mask-image-radial-from-pos":[{"mask-radial-from":me()}],"mask-image-radial-to-pos":[{"mask-radial-to":me()}],"mask-image-radial-from-color":[{"mask-radial-from":E()}],"mask-image-radial-to-color":[{"mask-radial-to":E()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":S()}],"mask-image-conic-pos":[{"mask-conic":[Re]}],"mask-image-conic-from-pos":[{"mask-conic-from":me()}],"mask-image-conic-to-pos":[{"mask-conic-to":me()}],"mask-image-conic-from-color":[{"mask-conic-from":E()}],"mask-image-conic-to-color":[{"mask-conic-to":E()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:N()}],"mask-repeat":[{mask:F()}],"mask-size":[{mask:B()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",ie,ne]}],filter:[{filter:["","none",ie,ne]}],blur:[{blur:nt()}],brightness:[{brightness:[Re,ie,ne]}],contrast:[{contrast:[Re,ie,ne]}],"drop-shadow":[{"drop-shadow":["","none",h,dm,fm]}],"drop-shadow-color":[{"drop-shadow":E()}],grayscale:[{grayscale:["",Re,ie,ne]}],"hue-rotate":[{"hue-rotate":[Re,ie,ne]}],invert:[{invert:["",Re,ie,ne]}],saturate:[{saturate:[Re,ie,ne]}],sepia:[{sepia:["",Re,ie,ne]}],"backdrop-filter":[{"backdrop-filter":["","none",ie,ne]}],"backdrop-blur":[{"backdrop-blur":nt()}],"backdrop-brightness":[{"backdrop-brightness":[Re,ie,ne]}],"backdrop-contrast":[{"backdrop-contrast":[Re,ie,ne]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Re,ie,ne]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Re,ie,ne]}],"backdrop-invert":[{"backdrop-invert":["",Re,ie,ne]}],"backdrop-opacity":[{"backdrop-opacity":[Re,ie,ne]}],"backdrop-saturate":[{"backdrop-saturate":[Re,ie,ne]}],"backdrop-sepia":[{"backdrop-sepia":["",Re,ie,ne]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":k()}],"border-spacing-x":[{"border-spacing-x":k()}],"border-spacing-y":[{"border-spacing-y":k()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",ie,ne]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Re,"initial",ie,ne]}],ease:[{ease:["linear","initial",m,ie,ne]}],delay:[{delay:[Re,ie,ne]}],animate:[{animate:["none",O,ie,ne]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[g,ie,ne]}],"perspective-origin":[{"perspective-origin":y()}],rotate:[{rotate:Qt()}],"rotate-x":[{"rotate-x":Qt()}],"rotate-y":[{"rotate-y":Qt()}],"rotate-z":[{"rotate-z":Qt()}],scale:[{scale:$t()}],"scale-x":[{"scale-x":$t()}],"scale-y":[{"scale-y":$t()}],"scale-z":[{"scale-z":$t()}],"scale-3d":["scale-3d"],skew:[{skew:ze()}],"skew-x":[{"skew-x":ze()}],"skew-y":[{"skew-y":ze()}],transform:[{transform:[ie,ne,"","none","gpu","cpu"]}],"transform-origin":[{origin:y()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:Lt()}],"translate-x":[{"translate-x":Lt()}],"translate-y":[{"translate-y":Lt()}],"translate-z":[{"translate-z":Lt()}],"translate-none":["translate-none"],zoom:[{zoom:[zr,ie,ne]}],accent:[{accent:E()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:E()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",ie,ne]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scrollbar-thumb-color":[{"scrollbar-thumb":E()}],"scrollbar-track-color":[{"scrollbar-track":E()}],"scrollbar-gutter":[{"scrollbar-gutter":["auto","stable","both"]}],"scrollbar-w":[{scrollbar:["auto","thin","none"]}],"scroll-m":[{"scroll-m":k()}],"scroll-mx":[{"scroll-mx":k()}],"scroll-my":[{"scroll-my":k()}],"scroll-ms":[{"scroll-ms":k()}],"scroll-me":[{"scroll-me":k()}],"scroll-mbs":[{"scroll-mbs":k()}],"scroll-mbe":[{"scroll-mbe":k()}],"scroll-mt":[{"scroll-mt":k()}],"scroll-mr":[{"scroll-mr":k()}],"scroll-mb":[{"scroll-mb":k()}],"scroll-ml":[{"scroll-ml":k()}],"scroll-p":[{"scroll-p":k()}],"scroll-px":[{"scroll-px":k()}],"scroll-py":[{"scroll-py":k()}],"scroll-ps":[{"scroll-ps":k()}],"scroll-pe":[{"scroll-pe":k()}],"scroll-pbs":[{"scroll-pbs":k()}],"scroll-pbe":[{"scroll-pbe":k()}],"scroll-pt":[{"scroll-pt":k()}],"scroll-pr":[{"scroll-pr":k()}],"scroll-pb":[{"scroll-pb":k()}],"scroll-pl":[{"scroll-pl":k()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",ie,ne]}],fill:[{fill:["none",...E()]}],"stroke-w":[{stroke:[Re,Af,Ns,X_]}],stroke:[{stroke:["none",...E()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{"container-named":["container-type"],overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["start","end","right","left"],"inset-y":["inset-bs","inset-be","top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["ps","pe","pr","pl"],py:["pbs","pbe","pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["ms","me","mr","ml"],my:["mbs","mbe","mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-s","border-w-e","border-w-r","border-w-l"],"border-w-y":["border-w-bs","border-w-be","border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-s","border-color-e","border-color-r","border-color-l"],"border-color-y":["border-color-bs","border-color-be","border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-ms","scroll-me","scroll-mr","scroll-ml"],"scroll-my":["scroll-mbs","scroll-mbe","scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-ps","scroll-pe","scroll-pr","scroll-pl"],"scroll-py":["scroll-pbs","scroll-pbe","scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},postfixLookupClassGroups:["container-type"],orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}};var iR=Jq(yZ);function Ce(...t){return iR(cm(t))}var ga=M(ye(),1);var oR=M(ye(),1),vZ=Object.defineProperty,nS=(t,e)=>vZ(t,"name",{value:e,configurable:!0});function aS(t,e){if(typeof t=="function")return t(e);t!=null&&(t.current=e)}nS(aS,"setRef");function sR(...t){return e=>{let a=!1,n=t.map(r=>{let i=aS(r,e);return!a&&typeof i=="function"&&(a=!0),i});if(a)return()=>{for(let r=0;r<n.length;r++){let i=n[r];typeof i=="function"?i():aS(t[r],null)}}}}nS(sR,"composeRefs");function Ma(...t){return oR.useCallback(sR(...t),t)}nS(Ma,"useComposedRefs");var CZ=Object.defineProperty,hn=(t,e)=>CZ(t,"name",{value:e,configurable:!0});function Ur(t){let e=ga.forwardRef((a,n)=>{let{children:r,...i}=a,o=null,s=!1,l=[];r=pR(r),ga.Children.forEach(r,d=>{if(dR(d)){s=!0;let h=d,p="child"in h.props?h.props.child:h.props.children;for(;rS(p)&&typeof hm=="function";)p=hm(p._payload);o=kZ(h,p),l.push(o?.props?.children)}else l.push(d)}),o?o=ga.cloneElement(o,void 0,l):!s&&ga.Children.count(r)===1&&ga.isValidElement(r)&&(o=r);let u=o?fR(o):void 0,c=Ma(n,u);if(!o){if(r||r===0)throw new Error(s?AZ(t):EZ(t));return r}let f=cR(i,o.props??{});return o.type!==ga.Fragment&&(f.ref=n?c:u),ga.cloneElement(o,f)});return e.displayName=`${t}.Slot`,e}hn(Ur,"createSlot");var lR=Ur("Slot"),uR=Symbol.for("radix.slottable");function wZ(t){let e=hn(a=>"child"in a?a.children(a.child):a.children,"Slottable");return e.displayName=`${t}.Slottable`,e.__radixId=uR,e}hn(wZ,"createSlottable");var kZ=hn((t,e)=>"child"in t.props?ga.isValidElement(e)?ga.cloneElement(e,void 0,t.props.children(e.props.children)):null:ga.isValidElement(e)?e:null,"getSlottableElementFromSlottable");function cR(t,e){let a={...e};for(let n in e){let r=t[n],i=e[n];/^on[A-Z]/.test(n)?r&&i?a[n]=(...s)=>{let l=i(...s);return r(...s),l}:r&&(a[n]=r):n==="style"?a[n]={...r,...i}:n==="className"?a[n]=[r,i].filter(Boolean).join(" "):n==="aria-describedby"&&(a[n]=mR(i,r))}return{...t,...a}}hn(cR,"mergeProps");function fR(t){let e=Object.getOwnPropertyDescriptor(t.props,"ref")?.get,a=e&&"isReactWarning"in e&&e.isReactWarning;return a?t.ref:(e=Object.getOwnPropertyDescriptor(t,"ref")?.get,a=e&&"isReactWarning"in e&&e.isReactWarning,a?t.props.ref:t.props.ref||t.ref)}hn(fR,"getElementRef");function dR(t){return ga.isValidElement(t)&&typeof t.type=="function"&&"__radixId"in t.type&&t.type.__radixId===uR}hn(dR,"isSlottable");var LZ=Symbol.for("react.lazy");function rS(t){return t!=null&&typeof t=="object"&&"$$typeof"in t&&t.$$typeof===LZ&&"_payload"in t&&hR(t._payload)}hn(rS,"isLazyComponent");function hR(t){return typeof t=="object"&&t!==null&&"then"in t}hn(hR,"isPromiseLike");function pR(t){let e=t;for(;rS(e)&&typeof hm=="function";)e=hm(e._payload);return e}hn(pR,"useUnwrappedLazy");function mR(...t){let e=new Set;for(let a of t)if(typeof a=="string")for(let n of String(a).trim().split(/\s+/))n&&e.add(n);return e.size>0?Array.from(e).join(" "):void 0}hn(mR,"concatAriaDescribedby");var EZ=hn(t=>`${t} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`,"createSlotError"),AZ=hn(t=>`${t} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`,"createSlottableError"),hm=ga[" use ".trim().toString()];var gR=t=>typeof t=="boolean"?`${t}`:t===0?"0":t,OR=cm,pm=(t,e)=>a=>{var n;if(e?.variants==null)return OR(t,a?.class,a?.className);let{variants:r,defaultVariants:i}=e,o=Object.keys(r).map(u=>{let c=a?.[u],f=i?.[u];if(c===null)return null;let d=gR(c)||gR(f);return r[u][d]}),s=a&&Object.entries(a).reduce((u,c)=>{let[f,d]=c;return d===void 0||(u[f]=d),u},{}),l=e==null||(n=e.compoundVariants)===null||n===void 0?void 0:n.reduce((u,c)=>{let{class:f,className:d,...h}=c;return Object.entries(h).every(p=>{let[g,b]=p;return Array.isArray(b)?b.includes({...i,...s}[g]):{...i,...s}[g]===b})?[...u,f,d]:u},[]);return OR(t,o,l,a?.class,a?.className)};var bR=M(ae(),1),_Z=pm("inline-flex shrink-0 items-center justify-center gap-1.5 whitespace-nowrap rounded-md text-sm font-medium outline-none transition-colors focus-visible:ring-2 focus-visible:ring-ring/50 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground shadow-xs hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-xs hover:bg-destructive/90",outline:"border border-border bg-background shadow-xs hover:bg-muted",secondary:"bg-secondary text-secondary-foreground shadow-xs hover:bg-secondary/80",ghost:"hover:bg-muted",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-8 px-3",sm:"h-7 gap-1 px-2.5 text-[13px]",xs:"h-6 gap-1 rounded-md px-2 text-xs",lg:"h-10 px-5",icon:"size-8","icon-sm":"size-7","icon-xs":"size-6"}},defaultVariants:{variant:"default",size:"default"}});function Qe({className:t,variant:e,size:a,asChild:n=!1,...r}){return(0,bR.jsx)(n?lR:"button",{"data-slot":"button",className:Ce(_Z({variant:e,size:a}),t),...r})}var mm=M(ye(),1);var xR=t=>t?.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();function SR(t,e,a=[]){if(e==null)throw new Error("[lucide]: iconNode is required when icon name is used");return{name:xR(t),size:24,node:e,...a.length>0?{aliases:a}:{}}}var yR=t=>{let e="",a=!1;for(let n of t){if(n==="-"||n==="_"||n<=" "){a=e.length>0;continue}e.length===0?e+=n.toLowerCase():e+=a?n.toUpperCase():n,a=!1}return e};var vR=t=>{let e=yR(t);return e.charAt(0).toUpperCase()+e.slice(1)};var Rf=M(ye(),1);var _f=(...t)=>t.filter((e,a,n)=>!!e&&e.trim()!==""&&n.indexOf(e)===a).join(" ").trim();var So={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":2,"stroke-linecap":"round","stroke-linejoin":"round"};function iS(t){return t!=null}function CR(t,e={}){let a=e.attributeNames??{},n=d=>a[d]??d,r=t.size??t.width??So.width,i=t.size??t.height??So.height,o=t.aliases?.filter(d=>typeof d=="string"&&d.trim()!=="").map(d=>`lucide-${d}`)??[],s=[...t.name?[`lucide-${t.name}`]:[],...o],l=e.className?.split(" ").filter(Boolean)??[],u=e.includeDefaultClasses===!1?_f(...l):_f("lucide",...s,...l),c=e.absoluteStrokeWidth?Number(e.strokeWidth??So["stroke-width"])*Number(t.size??t.width??So.width)/Number(e.size??e.width??So.width):e.strokeWidth??So["stroke-width"];return["svg",{...Object.entries(So).reduce((d,[h,p])=>(d[n(h)]=p,d),{}),..."color"in e&&e.color&&{[n("stroke")]:e.color},..."size"in e&&iS(e.size)&&{[n("width")]:e.size,[n("height")]:e.size},..."width"in e&&iS(e.width)&&{[n("width")]:e.width},..."height"in e&&iS(e.height)&&{[n("height")]:e.height},[n("stroke-width")]:c,...u&&{[n("class")]:u},[n("viewBox")]:`0 0 ${r} ${i}`,...e.hasA11yProp===!1?{[n("aria-hidden")]:"true"}:{},..."attributes"in e&&e.attributes},t.node.map(d=>{let[h,p,g]=d,b=e.nonScalingStroke?{[n("vector-effect")]:"non-scaling-stroke",...p}:p;return g?[h,b,g]:[h,b]})]}function wR(t,e={}){return CR(t,{...e,attributeNames:{...e.attributeNames,class:"className","stroke-width":"strokeWidth","stroke-linecap":"strokeLinecap","stroke-linejoin":"strokeLinejoin","vector-effect":"vectorEffect"}})}var kR=t=>{for(let e in t)if(e.startsWith("aria-")||e==="role"||e==="title")return!0;return!1};var vu=M(ye(),1);var RZ=(0,vu.createContext)({});var LR=()=>(0,vu.useContext)(RZ);var ER=(0,Rf.forwardRef)(({color:t,size:e,width:a,height:n,strokeWidth:r,absoluteStrokeWidth:i,nonScalingStroke:o,className:s="",children:l,iconNode:u=[],icon:c={node:u,aliases:[],size:24},...f},d)=>{let{size:h=24,strokeWidth:p=2,absoluteStrokeWidth:g=!1,nonScalingStroke:b=!1,color:m="currentColor",className:O=""}=LR()??{},x=!!l||kR(f),[S,y,C=[]]=wR(c,{color:t??m,width:a??e??h,height:n??e??h,strokeWidth:r??p,absoluteStrokeWidth:i??g,nonScalingStroke:o??b,className:_f(O,s),hasA11yProp:x,attributes:f});return(0,Rf.createElement)(S,{ref:d,...y},[...C.map(([v,k])=>(0,Rf.createElement)(v,k)),...Array.isArray(l)?l:[l]])});function he(t,e=[],a=[]){let n=typeof t=="string"?SR(t,e,a):t,r=(0,mm.forwardRef)(({className:i,...o},s)=>(0,mm.createElement)(ER,{ref:s,icon:n,className:i,...o}));return n.name&&(r.displayName=vR(n.name)),r}var AR={name:"arrow-left",size:24,node:[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]};AR.node;var Tf=he(AR);var _R={name:"check",size:24,node:[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]};_R.node;var $s=he(_R);var RR={name:"chevron-down",size:24,node:[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]};RR.node;var Bs=he(RR);var TR={name:"clock",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 6v6l4 2",key:"mmk7yg"}]]};TR.node;var If=he(TR);var IR={name:"columns-2",size:24,node:[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M12 3v18",key:"108xh3"}]],aliases:["columns"]};IR.node;var yo=he(IR);var PR={name:"copy",size:24,node:[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]};PR.node;var Pf=he(PR);var MR={name:"external-link",size:24,node:[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]]};MR.node;var Mf=he(MR);var DR={name:"eye",size:24,node:[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]};DR.node;var Df=he(DR);var NR={name:"file-text",size:24,node:[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]]};NR.node;var Nf=he(NR);var QR={name:"image",size:24,node:[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",key:"1xmnt7"}]]};QR.node;var Qf=he(QR);var $R={name:"layout-grid",size:24,node:[["rect",{width:"7",height:"7",x:"3",y:"3",rx:"1",key:"1g98yp"}],["rect",{width:"7",height:"7",x:"14",y:"3",rx:"1",key:"6d4xhi"}],["rect",{width:"7",height:"7",x:"14",y:"14",rx:"1",key:"nxv5o0"}],["rect",{width:"7",height:"7",x:"3",y:"14",rx:"1",key:"1bb6yr"}]]};$R.node;var $f=he($R);var BR={name:"loader-circle",size:24,node:[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],aliases:["loader-2"]};BR.node;var vo=he(BR);var zR={name:"moon",size:24,node:[["path",{d:"M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401",key:"kfwtm"}]]};zR.node;var Bf=he(zR);var UR={name:"panel-right",size:24,node:[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M15 3v18",key:"14nvp0"}]]};UR.node;var zf=he(UR);var XR={name:"pencil",size:24,node:[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}]]};XR.node;var Uf=he(XR);var qR={name:"plus",size:24,node:[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]};qR.node;var Xf=he(qR);var ZR={name:"refresh-cw",size:24,node:[["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"}]]};ZR.node;var qf=he(ZR);var FR={name:"rows-2",size:24,node:[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M3 12h18",key:"1i2n21"}]],aliases:["rows"]};FR.node;var Co=he(FR);var GR={name:"search",size:24,node:[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]]};GR.node;var Zf=he(GR);var HR={name:"send",size:24,node:[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]]};HR.node;var Ff=he(HR);var jR={name:"sparkles",size:24,node:[["path",{d:"M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z",key:"1s2grr"}],["path",{d:"M20 2v4",key:"1rf3ol"}],["path",{d:"M22 4h-4",key:"gwowj6"}],["circle",{cx:"4",cy:"20",r:"2",key:"6kqj1y"}]],aliases:["stars"]};jR.node;var wo=he(jR);var VR={name:"square",size:24,node:[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}]]};VR.node;var Gf=he(VR);var YR={name:"sun",size:24,node:[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]]};YR.node;var Hf=he(YR);var WR={name:"terminal",size:24,node:[["path",{d:"M12 19h8",key:"baeox8"}],["path",{d:"m4 17 6-6-6-6",key:"1yngyt"}]]};WR.node;var jf=he(WR);var KR={name:"triangle-alert",size:24,node:[["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"}]],aliases:["alert-triangle"]};KR.node;var ko=he(KR);var JR={name:"x",size:24,node:[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]};JR.node;var Vf=he(JR);var tT=M(ae(),1),eT=["arrow-left","send","stop","copy","check","refresh","plus","pencil","eye","columns","rows","grid","terminal","x","external","chevron-down","sparkles","sun","moon","panel-right","image","alert","clock","file","loader","search"],TZ={"arrow-left":Tf,send:Ff,stop:Gf,copy:Pf,check:$s,refresh:qf,plus:Xf,pencil:Uf,eye:Df,columns:yo,rows:Co,grid:$f,terminal:jf,x:Vf,external:Mf,"chevron-down":Bs,sparkles:wo,sun:Hf,moon:Bf,"panel-right":zf,image:Qf,alert:ko,clock:If,file:Nf,loader:vo,search:Zf};function pe({name:t,className:e="size-4"}){let a=TZ[t];return(0,tT.jsx)(a,{className:e,"aria-hidden":"true"})}var gm=M(ye(),1);function Qn(t,e){try{let a=localStorage.getItem(t);return a===null?e:JSON.parse(a)}catch{return e}}function $n(t,e){try{localStorage.setItem(t,JSON.stringify(e))}catch{}}var aT="modelroom.theme";function nT(){let[t,e]=(0,gm.useState)(()=>Qn(aT,document.documentElement.dataset.theme==="dark"?"dark":"light"));return(0,gm.useEffect)(()=>{document.documentElement.dataset.theme=t,$n(aT,t)},[t]),[t,e]}var oS=M(ae(),1);function Cu({className:t=""}){let[e,a]=nT(),n=e==="dark";return(0,oS.jsx)(Qe,{variant:"ghost",size:"icon-xs",className:t,title:n?"Light theme":"Dark theme",onClick:()=>a(n?"light":"dark"),children:(0,oS.jsx)(pe,{name:n?"sun":"moon",className:"size-4"})})}var rT=M(ae(),1),IZ=pm("inline-flex w-fit shrink-0 items-center justify-center gap-1 whitespace-nowrap rounded-md border px-2 py-0.5 text-xs font-medium [&_svg]:pointer-events-none [&_svg]:size-3",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground",secondary:"border-transparent bg-secondary text-secondary-foreground",destructive:"border-transparent bg-destructive text-destructive-foreground",outline:"border-border text-foreground",muted:"border-transparent bg-muted text-muted-foreground",success:"border-transparent bg-success text-success-foreground",warning:"border-transparent bg-warning text-warning-foreground"}},defaultVariants:{variant:"default"}});function bt({className:t,variant:e,...a}){return(0,rT.jsx)("span",{"data-slot":"badge",className:Ce(IZ({variant:e}),t),...a})}var Yf=M(ae(),1);function yi({className:t,...e}){return(0,Yf.jsx)("div",{"data-slot":"card",className:Ce("rounded-lg border border-border bg-card text-card-foreground shadow-xs",t),...e})}function Lo({className:t,...e}){return(0,Yf.jsx)("div",{"data-slot":"card-header",className:Ce("flex flex-col gap-1 p-5",t),...e})}function Eo({className:t,...e}){return(0,Yf.jsx)("h2",{"data-slot":"card-title",className:Ce("text-base font-semibold",t),...e})}function vi({className:t,...e}){return(0,Yf.jsx)("div",{"data-slot":"card-content",className:Ce("px-5 pb-5",t),...e})}var Ft=M(ye(),1);var zn=M(ye(),1),sS=M(ae(),1),PZ=Object.defineProperty,Bn=(t,e)=>PZ(t,"name",{value:e,configurable:!0});function MZ(t,e){let a=zn.createContext(e);a.displayName=t+"Context";let n=Bn(i=>{let{children:o,...s}=i,l=zn.useMemo(()=>s,Object.values(s));return(0,sS.jsx)(a.Provider,{value:l,children:o})},"Provider");n.displayName=t+"Provider";function r(i,o={}){let{optional:s=!1}=o,l=zn.useContext(a);if(l)return l;if(e!==void 0)return e;if(!s)throw new Error(`\`${i}\` must be used within \`${t}\``)}return Bn(r,"useContext"),[n,r]}Bn(MZ,"createContext");function pn(t,e=[]){let a=[];function n(i,o){let s=zn.createContext(o);s.displayName=i+"Context";let l=a.length;a=[...a,o];let u=Bn(f=>{let{scope:d,children:h,...p}=f,g=d?.[t]?.[l]||s,b=zn.useMemo(()=>p,Object.values(p));return(0,sS.jsx)(g.Provider,{value:b,children:h})},"Provider");u.displayName=i+"Provider";function c(f,d,h={}){let{optional:p=!1}=h,g=d?.[t]?.[l]||s,b=zn.useContext(g);if(b)return b;if(o!==void 0)return o;if(!p)throw new Error(`\`${f}\` must be used within \`${i}\``)}return Bn(c,"useContext"),[u,c]}Bn(n,"createContext");let r=Bn(()=>{let i=a.map(o=>zn.createContext(o));return Bn(function(s){let l=s?.[t]||i;return zn.useMemo(()=>({[`__scope${t}`]:{...s,[t]:l}}),[s,l])},"useScope")},"createScope");return r.scopeName=t,[n,iT(r,...e)]}Bn(pn,"createContextScope");function iT(...t){let e=t[0];if(t.length===1)return e;let a=Bn(()=>{let n=t.map(r=>({useScope:r(),scopeName:r.scopeName}));return Bn(function(i){let o=n.reduce((s,{useScope:l,scopeName:u})=>{let f=l(i)[`__scope${u}`];return{...s,...f}},{});return zn.useMemo(()=>({[`__scope${e.scopeName}`]:o}),[o])},"useComposedScopes")},"createScope");return a.scopeName=e.scopeName,a}Bn(iT,"composeContextScopes");var DZ=Object.defineProperty,wu=(t,e)=>DZ(t,"name",{value:e,configurable:!0}),oT=!!(typeof window<"u"&&window.document&&window.document.createElement);function ea(t,e,{checkForDefaultPrevented:a=!0}={}){return wu(function(r){if(t?.(r),a===!1||!r||!r.defaultPrevented)return e?.(r)},"handleEvent")}wu(ea,"composeEventHandlers");function NZ(t){if(!oT)throw new Error("Cannot access window outside of the DOM");return t?.ownerDocument?.defaultView??window}wu(NZ,"getOwnerWindow");function lS(t){if(!oT)throw new Error("Cannot access document outside of the DOM");return t?.ownerDocument??document}wu(lS,"getOwnerDocument");function sT(t,e=!1){let{activeElement:a}=lS(t);if(!a?.nodeName)return null;if(lT(a)&&a.contentDocument)return sT(a.contentDocument.body,e);if(e){let n=a.getAttribute("aria-activedescendant");if(n){let r=lS(a).getElementById(n);if(r)return r}}return a}wu(sT,"getActiveElement");function lT(t){return t.tagName==="IFRAME"}wu(lT,"isFrame");var Un=M(ye(),1);var Om=!1;var uT=M(ye(),1),Oa=globalThis?.document?uT.useLayoutEffect:()=>{};var ur=M(ye(),1);var ku=M(ye(),1),QZ=Object.defineProperty,$Z=(t,e)=>QZ(t,"name",{value:e,configurable:!0}),cT=ku[" useEffectEvent ".trim().toString()],fT=ku[" useInsertionEffect ".trim().toString()];function uS(t){if(typeof cT=="function")return cT(t);let e=ku.useRef(()=>{throw new Error("Cannot call an event handler while rendering.")});return typeof fT=="function"?fT(()=>{e.current=t}):Oa(()=>{e.current=t}),ku.useMemo(()=>((...a)=>e.current?.(...a)),[])}$Z(uS,"useEffectEvent");var BZ=Object.defineProperty,Wf=(t,e)=>BZ(t,"name",{value:e,configurable:!0}),zZ=Un[" useInsertionEffect ".trim().toString()]||Oa;function Xn({prop:t,defaultProp:e,onChange:a=Wf(()=>{},"onChange"),caller:n}){let[r,i,o]=hT({defaultProp:e,onChange:a}),s=t!==void 0,l=s?t:r;if(Om){let c=Un.useRef(t!==void 0);Un.useEffect(()=>{let f=c.current;f!==s&&console.warn(`${n} is changing from ${f?"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.`),c.current=s},[s,n])}let u=Un.useCallback(c=>{if(s){let f=pT(c)?c(t):c;f!==t&&o.current?.(f)}else i(c)},[s,t,i,o]);return[l,u]}Wf(Xn,"useControllableState");function hT({defaultProp:t,onChange:e}){let[a,n]=Un.useState(t),r=Un.useRef(a),i=Un.useRef(e);return zZ(()=>{i.current=e},[e]),Un.useEffect(()=>{r.current!==a&&(i.current?.(a),r.current=a)},[a,r]),[a,n,i]}Wf(hT,"useUncontrolledState");function pT(t){return typeof t=="function"}Wf(pT,"isFunction");var dT=Symbol("RADIX:SYNC_STATE");function UZ(t,e,a,n){let{prop:r,defaultProp:i,onChange:o,caller:s}=e,l=r!==void 0,u=uS(o);if(Om){let b=ur.useRef(r!==void 0);ur.useEffect(()=>{let m=b.current;m!==l&&console.warn(`${s} is changing from ${m?"controlled":"uncontrolled"} to ${l?"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.`),b.current=l},[l,s])}let c=[{...a,state:i}];n&&c.push(n);let[f,d]=ur.useReducer((b,m)=>{if(m.type===dT)return{...b,state:m.state};let O=t(b,m);return l&&!Object.is(O.state,b.state)&&u(O.state),O},...c),h=f.state,p=ur.useRef(h);ur.useEffect(()=>{p.current!==h&&(p.current=h,l||u(h))},[h,p,l]);let g=ur.useMemo(()=>r!==void 0?{...f,state:r}:f,[f,r]);return ur.useEffect(()=>{l&&!Object.is(r,f.state)&&d({type:dT,state:r})},[r,f.state,l]),[g,d]}Wf(UZ,"useControllableStateReducer");var mT=M(ye(),1);var XZ=Object.defineProperty,qZ=(t,e)=>XZ(t,"name",{value:e,configurable:!0});function cS(t){let[e,a]=mT.useState(void 0);return Oa(()=>{if(t){a({width:t.offsetWidth,height:t.offsetHeight});let n=0,r=new ResizeObserver(i=>{if(!Array.isArray(i)||!i.length)return;let o=i[0];window.cancelAnimationFrame(n),n=window.requestAnimationFrame(()=>{let s,l;if("borderBoxSize"in o){let u=o.borderBoxSize,c=Array.isArray(u)?u[0]:u;s=c.inlineSize,l=c.blockSize}else s=t.offsetWidth,l=t.offsetHeight;a({width:s,height:l})})});return r.observe(t,{box:"border-box"}),()=>{window.cancelAnimationFrame(n),r.unobserve(t)}}else a(void 0)},[t]),e}qZ(cS,"useSize");var ba=M(ye(),1);var gT=M(ye(),1),ZZ=Object.defineProperty,Ci=(t,e)=>ZZ(t,"name",{value:e,configurable:!0});function OT(t,e){return gT.useReducer((a,n)=>e[a][n]??a,t)}Ci(OT,"useStateMachine");var bT=Ci(t=>{let{present:e,children:a}=t,n=xT(e),r=typeof a=="function"?a({present:n.isPresent}):ba.Children.only(a),i=ST(n.ref,yT(r));return typeof a=="function"||n.isPresent?ba.cloneElement(r,{ref:i}):null},"Presence");function xT(t){let[e,a]=ba.useState(),n=ba.useRef(null),r=ba.useRef(t),i=ba.useRef("none"),o=ba.useRef(void 0),s=t?"mounted":"unmounted",[l,u]=OT(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return ba.useEffect(()=>{l==="mounted"?(i.current=o.current??Lu(n.current),o.current=void 0):i.current="none"},[l]),Oa(()=>{let c=n.current,f=r.current;if(f!==t){let h=i.current,p=Lu(c);t?(o.current=p,u("MOUNT")):p==="none"||c?.display==="none"?u("UNMOUNT"):u(f&&h!==p?"ANIMATION_OUT":"UNMOUNT"),r.current=t}},[t,u]),Oa(()=>{if(e){let c,f=e.ownerDocument.defaultView??window,d=Ci(p=>{let b=Lu(n.current).includes(CSS.escape(p.animationName));if(p.target===e&&b&&(u("ANIMATION_END"),!r.current)){let m=e.style.animationFillMode;e.style.animationFillMode="forwards",c=f.setTimeout(()=>{e.style.animationFillMode==="forwards"&&(e.style.animationFillMode=m)})}},"handleAnimationEnd"),h=Ci(p=>{p.target===e&&(i.current=Lu(n.current))},"handleAnimationStart");return e.addEventListener("animationstart",h),e.addEventListener("animationcancel",d),e.addEventListener("animationend",d),()=>{f.clearTimeout(c),e.removeEventListener("animationstart",h),e.removeEventListener("animationcancel",d),e.removeEventListener("animationend",d)}}else u("ANIMATION_END")},[e,u]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:ba.useCallback(c=>{if(c){let f=getComputedStyle(c);n.current=f,o.current=Lu(f)}else n.current=null;a(c)},[])}}Ci(xT,"usePresence");function fS(t,e){if(typeof t=="function")return t(e);t!=null&&(t.current=e)}Ci(fS,"setRef");function ST(...t){let e=ba.useRef(t);return e.current=t,ba.useCallback(a=>{let n=e.current,r=!1,i=n.map(o=>{let s=fS(o,a);return!r&&typeof s=="function"&&(r=!0),s});if(r)return()=>{for(let o=0;o<i.length;o++){let s=i[o];typeof s=="function"?s():fS(n[o],null)}}},[])}Ci(ST,"useStableComposedRefs");function Lu(t){return t?.animationName||"none"}Ci(Lu,"getAnimationName");function yT(t){let e=Object.getOwnPropertyDescriptor(t.props,"ref")?.get,a=e&&"isReactWarning"in e&&e.isReactWarning;return a?t.ref:(e=Object.getOwnPropertyDescriptor(t,"ref")?.get,a=e&&"isReactWarning"in e&&e.isReactWarning,a?t.props.ref:t.props.ref||t.ref)}Ci(yT,"getElementRef");var vT=M(ye(),1),CT=M(cb(),1);var wT=M(ae(),1),FZ=Object.defineProperty,GZ=(t,e)=>FZ(t,"name",{value:e,configurable:!0}),HZ=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],ta=HZ.reduce((t,e)=>{let a=Ur(`Primitive.${e}`),n=vT.forwardRef((r,i)=>{let{asChild:o,...s}=r,l=o?a:e;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),(0,wT.jsx)(l,{...s,ref:i})});return n.displayName=`Primitive.${e}`,{...t,[e]:n}},{});function jZ(t,e){t&&CT.flushSync(()=>t.dispatchEvent(e))}GZ(jZ,"dispatchDiscreteCustomEvent");var mn=M(ae(),1),VZ=Object.defineProperty,wi=(t,e)=>VZ(t,"name",{value:e,configurable:!0}),dS="Checkbox",[YZ,pne]=pn(dS),[WZ,hS]=YZ(dS);function kT(t){let{__scopeCheckbox:e,checked:a,children:n,defaultChecked:r,disabled:i,form:o,name:s,onCheckedChange:l,required:u,value:c="on",internal_do_not_use_render:f}=t,[d,h]=Xn({prop:a,defaultProp:r??!1,onChange:l,caller:dS}),[p,g]=Ft.useState(null),[b,m]=Ft.useState(null),[O,x]=Ft.useState(null),S=p?!!o||!!p.closest("form"):!0,y={checked:d,disabled:i,setChecked:h,control:p,setControl:g,name:s,form:o,value:c,userClick:O,onUserClick:x,required:u,defaultChecked:qn(r)?!1:r,isFormControl:S,bubbleInput:b,setBubbleInput:m};return(0,mn.jsx)(WZ,{scope:e,...y,children:AT(f)?f(y):n})}wi(kT,"CheckboxProvider");var KZ="CheckboxTrigger",JZ=Ft.forwardRef(wi(function({__scopeCheckbox:e,onKeyDown:a,onClick:n,...r},i){let{control:o,value:s,disabled:l,checked:u,required:c,setControl:f,setChecked:d,onUserClick:h,isFormControl:p,bubbleInput:g}=hS(KZ,e),b=Ma(i,f),m=Ft.useRef(u);return Ft.useEffect(()=>{let O=o?.form;if(O){let x=wi(()=>d(m.current),"reset");return O.addEventListener("reset",x),()=>O.removeEventListener("reset",x)}},[o,d]),(0,mn.jsx)(ta.button,{type:"button",role:"checkbox","aria-checked":qn(u)?"mixed":u,"aria-required":c,"data-state":pS(u),"data-disabled":l?"":void 0,disabled:l,value:s,...r,ref:b,onKeyDown:ea(a,O=>{O.key==="Enter"&&O.preventDefault()}),onClick:ea(n,O=>{let x=O.isPropagationStopped();h({requestedChecked:qn(u)?!0:!u,hasConsumerStoppedPropagation:x}),d(S=>qn(S)?!0:!S),g&&p&&(x||O.stopPropagation())})})},"CheckboxTrigger")),LT=Ft.forwardRef(wi(function(e,a){let{__scopeCheckbox:n,name:r,checked:i,defaultChecked:o,required:s,disabled:l,value:u,onCheckedChange:c,form:f,...d}=e;return(0,mn.jsx)(kT,{__scopeCheckbox:n,checked:i,defaultChecked:o,disabled:l,required:s,onCheckedChange:c,name:r,form:f,value:u,internal_do_not_use_render:({isFormControl:h})=>(0,mn.jsxs)(mn.Fragment,{children:[(0,mn.jsx)(JZ,{...d,ref:a,__scopeCheckbox:n}),h&&(0,mn.jsx)(aF,{__scopeCheckbox:n})]})})},"Checkbox")),eF="CheckboxIndicator",ET=Ft.forwardRef(wi(function(e,a){let{__scopeCheckbox:n,forceMount:r,...i}=e,o=hS(eF,n);return(0,mn.jsx)(bT,{present:r||qn(o.checked)||o.checked===!0,children:(0,mn.jsx)(ta.span,{"data-state":pS(o.checked),"data-disabled":o.disabled?"":void 0,...i,ref:a,style:{pointerEvents:"none",...e.style}})})},"CheckboxIndicator")),tF="CheckboxBubbleInput",aF=Ft.forwardRef(wi(function({__scopeCheckbox:e,onClick:a,...n},r){let{control:i,userClick:o,checked:s,defaultChecked:l,required:u,disabled:c,name:f,value:d,form:h,bubbleInput:p,setBubbleInput:g}=hS(tF,e),b=Ma(r,g),m=cS(i),O=Ft.useRef(!1),x=Ft.useRef(s),S=Ft.useRef(o),y=Ft.useRef(null);Ft.useEffect(()=>{let v=p;if(!v)return;let k=window.HTMLInputElement.prototype,A=Object.getOwnPropertyDescriptor(k,"checked").set;if(!A)return;let R=x.current!==s;x.current=s;let T=o!==null&&o!==S.current;if(S.current=o,T)y.current=R?null:o,R&&(v.indeterminate=qn(s),A.call(v,qn(s)?!1:s)),v.dispatchEvent(new Event("click",{bubbles:!o.hasConsumerStoppedPropagation}));else if(R){let U=y.current;y.current=null;let Q=U?.requestedChecked===s;O.current=!0,v.indeterminate=qn(s),A.call(v,qn(s)?!1:s),v.dispatchEvent(new Event("click",{bubbles:!(Q&&U.hasConsumerStoppedPropagation)})),O.current=!1}},[p,s,o]);let C=Ft.useRef(qn(s)?!1:s);return(0,mn.jsx)(ta.input,{type:"checkbox","aria-hidden":!0,defaultChecked:l??C.current,required:u,disabled:c,name:f,value:d,form:h,...n,tabIndex:-1,ref:b,onClick:ea(a,v=>{O.current&&v.stopPropagation()}),style:{...n.style,...m,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})},"CheckboxBubbleInput"));function AT(t){return typeof t=="function"}wi(AT,"isFunction");function qn(t){return t==="indeterminate"}wi(qn,"isIndeterminate");function pS(t){return qn(t)?"indeterminate":t?"checked":"unchecked"}wi(pS,"getState");var bm=M(ae(),1);function Ao({className:t,...e}){return(0,bm.jsx)(LT,{"data-slot":"checkbox",className:Ce("peer size-3.5 shrink-0 rounded-[4px] border border-input shadow-xs outline-none transition-colors","focus-visible:ring-2 focus-visible:ring-ring/40 disabled:cursor-not-allowed disabled:opacity-50","data-[state=checked]:border-primary data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground",t),...e,children:(0,bm.jsx)(ET,{className:"flex items-center justify-center text-current",children:(0,bm.jsx)($s,{className:"size-3",strokeWidth:3})})})}var _T=M(ae(),1);function _o({className:t,type:e="text",...a}){return(0,_T.jsx)("input",{type:e,"data-slot":"input",className:Ce("flex h-8 w-full min-w-0 rounded-md border border-input bg-background px-2.5 py-1 text-sm shadow-xs transition-colors outline-none","placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground","focus-visible:border-ring focus-visible:ring-2 focus-visible:ring-ring/30","disabled:cursor-not-allowed disabled:opacity-50","file:inline-flex file:border-0 file:bg-transparent file:text-sm file:font-medium",t),...a})}var Kf=M(ae(),1);function Eu({className:t,children:e,...a}){return(0,Kf.jsxs)("div",{className:"relative w-full",children:[(0,Kf.jsx)("select",{"data-slot":"select",className:Ce("h-8 w-full appearance-none rounded-md border border-input bg-background pr-7 pl-2.5 text-sm shadow-xs transition-colors outline-none","focus-visible:border-ring focus-visible:ring-2 focus-visible:ring-ring/30","disabled:cursor-not-allowed disabled:opacity-50",t),...a,children:e}),(0,Kf.jsx)(Bs,{"aria-hidden":"true",className:"pointer-events-none absolute top-1/2 right-2 size-3.5 -translate-y-1/2 text-muted-foreground"})]})}var RT=M(ae(),1);function ki({className:t,...e}){return(0,RT.jsx)("div",{"data-slot":"skeleton",className:Ce("animate-pulse rounded-md bg-muted",t),...e})}var Z=M(ae(),1),rF={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},iF=t=>t.replace(/[&<>"']/g,e=>rF[e]),oF=t=>{let e=String(t??"").toLowerCase();return/adopt|approv|done|complete|accept/.test(e)?"success":/review/.test(e)?"warning":"muted"};function sF({room:t,hit:e,query:a}){let n=a.trim().split(/\s+/).filter(Boolean),r=e?.snippets[0],i=o=>{let s=iF(o);if(!n.length)return s;let l=new RegExp("("+n.map(u=>u.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")).join("|")+")","gi");return s.replace(l,'<mark class="rounded bg-warning/40 px-0.5">$1</mark>')};return(0,Z.jsxs)("a",{href:`/room/${encodeURIComponent(t.name)}`,className:Ce("group flex flex-col overflow-hidden rounded-lg border border-border bg-card shadow-xs transition-all","hover:-translate-y-0.5 hover:shadow-md",t.deprecated&&"opacity-60"),children:[t.hasThumb&&t.thumbUrl?(0,Z.jsx)("img",{className:"mr-card-artifact",src:`${t.thumbUrl}?v=${t.updatedAt}`,alt:"",loading:"lazy"}):(0,Z.jsx)("div",{className:"mr-card-artifact grid place-items-center text-xs text-muted-foreground",children:t.hasArtifact?"no thumbnail yet":"no artifact yet"}),(0,Z.jsxs)("div",{className:"flex flex-1 flex-col gap-1 p-3",children:[(0,Z.jsxs)("div",{className:"flex items-center gap-2",children:[(0,Z.jsx)("span",{className:"truncate font-medium",children:t.title||t.name}),t.version!==null&&t.version!==void 0&&(0,Z.jsxs)(bt,{variant:"outline",className:"font-mono",children:["v",t.version]}),t.running&&(0,Z.jsxs)(bt,{variant:"secondary",className:"gap-1",children:[(0,Z.jsx)(pe,{name:"loader",className:"size-3 animate-spin"}),"running"]})]}),(0,Z.jsxs)("div",{className:"truncate font-mono text-xs text-muted-foreground",children:["rooms/",t.name]}),t.summary&&(0,Z.jsx)("p",{className:"line-clamp-2 text-xs text-muted-foreground",children:t.summary}),r&&(0,Z.jsx)("p",{className:"rounded bg-muted/60 px-2 py-1 text-xs text-muted-foreground",dangerouslySetInnerHTML:{__html:i(r.text)}}),(0,Z.jsxs)("div",{className:"mt-1 flex flex-wrap items-center gap-1",children:[t.status&&(0,Z.jsx)(bt,{variant:oF(t.status),children:t.status}),t.deprecated&&(0,Z.jsx)(bt,{variant:"destructive",children:"archived"}),t.tags.slice(0,4).map(o=>(0,Z.jsx)(bt,{variant:"outline",children:o},o)),t.behaviourIds.length>0&&(0,Z.jsxs)(bt,{variant:"outline",children:[t.behaviourIds.length," behaviour",t.behaviourIds.length>1?"s":""]}),(0,Z.jsx)("span",{className:"ml-auto text-xs text-muted-foreground",children:N_(t.updatedAt)})]})]})]})}function lF({facet:t,selected:e,onToggle:a,onPick:n}){return(0,Z.jsxs)("fieldset",{className:"max-w-[16rem] min-w-[9rem]",children:[(0,Z.jsx)("legend",{className:"mb-1 text-[11px] tracking-wide text-muted-foreground uppercase",children:t.key}),t.control==="checkboxes"&&(0,Z.jsx)("div",{className:"flex flex-col gap-1",children:t.values.map(r=>(0,Z.jsxs)("label",{className:"flex cursor-pointer items-center gap-2 text-sm",children:[(0,Z.jsx)(Ao,{checked:e.includes(r.value),onCheckedChange:()=>a(r.value)}),(0,Z.jsx)("span",{className:"truncate",children:r.value}),(0,Z.jsx)("span",{className:"ml-auto text-xs text-muted-foreground",children:r.count})]},r.value))}),t.control==="radio"&&(0,Z.jsx)("div",{className:"flex flex-col gap-1",children:[{value:"",count:null},...t.values].map(r=>(0,Z.jsxs)("label",{className:"flex cursor-pointer items-center gap-2 text-sm",children:[(0,Z.jsx)("input",{type:"radio",name:`facet-${t.key}`,className:"size-3.5 accent-primary",checked:r.value?e.includes(r.value):e.length===0,onChange:()=>n(r.value)}),(0,Z.jsx)("span",{className:Ce("truncate",!r.value&&"text-muted-foreground"),children:r.value||"any"}),r.count!==null&&(0,Z.jsx)("span",{className:"ml-auto text-xs text-muted-foreground",children:r.count})]},r.value||"any"))}),t.control==="select"&&(0,Z.jsxs)(Eu,{value:e[0]??"",onChange:r=>n(r.target.value),"aria-label":t.key,children:[(0,Z.jsx)("option",{value:"",children:"any"}),t.values.map(r=>(0,Z.jsxs)("option",{value:r.value,children:[r.value," (",r.count,")"]},r.value))]})]})}function TT(){let[t,e]=(0,pt.useState)([]),[a,n]=(0,pt.useState)([]),[r,i]=(0,pt.useState)(""),[o,s]=(0,pt.useState)({}),[l,u]=(0,pt.useState)(!1),[c,f]=(0,pt.useState)(null),[d,h]=(0,pt.useState)(!0),p=(0,pt.useRef)(0),g=(0,pt.useRef)(null),b=(0,pt.useRef)(null),m=(0,pt.useRef)(null),{status:O,connected:x}=Ef(),S=(0,pt.useCallback)(E=>{let N=new URLSearchParams,F=E.q??r,B=E.filters??o,V=E.archived??l;F&&N.set("q",F);for(let[Y,W]of Object.entries(B))W.length&&N.set(`f.${Y}`,W.join("|"));V&&N.set("archived","1");let q=N.toString();history.replaceState(null,"",q?`?${q}`:location.pathname)},[l,o,r]),y=(0,pt.useCallback)(async E=>{let N=++p.current;if(!E.trim()){f(null);return}let F=await M_(E).catch(()=>null);!F||N!==p.current||f(F.hits??[])},[]),C=(0,pt.useCallback)(async()=>{let E=await um().catch(()=>null);E&&(e(E.rooms??[]),n(E.facets??[]),h(!1))},[]);(0,pt.useEffect)(()=>{let E=new URLSearchParams(location.search),N=E.get("q")??"",F=E.get("archived")==="1",B={};for(let[V,q]of E)!V.startsWith("f.")||!q||(B[V.slice(2)]=q.split("|").filter(Boolean));i(N),u(F),s(B),(async()=>(await C(),N.trim()&&await y(N)))()},[C,y]),(0,pt.useEffect)(()=>()=>{b.current!==null&&window.clearTimeout(b.current),g.current!==null&&window.clearTimeout(g.current)},[]);let v=(0,pt.useCallback)(()=>{b.current!==null&&window.clearTimeout(b.current),b.current=window.setTimeout(()=>{C()},350)},[C]);qt("change",v),qt("chat-start",v),qt("chat-done",v),qt("render-done",v),qt("doc-saved",v);let k=E=>{i(E),g.current!==null&&window.clearTimeout(g.current),g.current=window.setTimeout(()=>{S({q:E}),y(E)},220)},L=(E,N=l)=>{let F=Object.fromEntries(Object.entries(E).filter(([,B])=>B.length));s(F),S({filters:F,archived:N})},A=(E,N)=>{let F=new Set(o[E]??[]);F.has(N)?F.delete(N):F.add(N),L({...o,[E]:[...F]})},R=(E,N)=>{let F={...o};N?F[E]=[N]:delete F[E],L(F)},T=E=>{u(E),S({archived:E})},U=()=>{i(""),s({}),u(!1),f(null),S({q:"",filters:{},archived:!1})},Q=(0,pt.useMemo)(()=>new Map((c??[]).map((E,N)=>[E.name,N])),[c]),D=(0,pt.useMemo)(()=>{let E=t.filter(N=>l||!N.deprecated);for(let[N,F]of Object.entries(o))if(F.length)for(let B=E.length-1;B>=0;B-=1){let q=E[B].fields?.[N];(Array.isArray(q)?q:[q]).filter(W=>W!=null).map(String).some(W=>F.includes(W))||E.splice(B,1)}return r?(E.sort((N,F)=>(Q.get(N.name)??0)-(Q.get(F.name)??0)),E.filter(N=>Q.has(N.name))):E.sort((N,F)=>F.updatedAt-N.updatedAt)},[l,o,Q,r,t]),_=t.filter(E=>l||!E.deprecated).length,$=t.filter(E=>E.deprecated).length,z=!!r||Object.keys(o).length>0;(0,pt.useEffect)(()=>{let E=N=>{N.key==="/"&&document.activeElement!==m.current&&(N.preventDefault(),m.current?.focus()),N.key==="Escape"&&document.activeElement===m.current&&m.current?.blur()};return document.addEventListener("keydown",E),()=>document.removeEventListener("keydown",E)},[]);let H=O?.phase==="chat"||O?.phase==="rendering";return(0,Z.jsxs)("div",{className:"flex min-h-dvh flex-col bg-background",children:[(0,Z.jsxs)("header",{className:"sticky top-0 z-20 flex h-12 items-center gap-3 border-b border-border bg-card px-4",children:[(0,Z.jsxs)("div",{className:"flex shrink-0 items-center gap-2",children:[(0,Z.jsx)("span",{className:"text-lg font-semibold tracking-tight",children:"modelroom"}),(0,Z.jsx)(bt,{variant:"secondary",children:D.length===_?`rooms ${_}`:`${D.length} / ${_}`})]}),(0,Z.jsxs)("div",{className:"relative flex-1",children:[(0,Z.jsx)(_o,{ref:m,type:"search",value:r,onChange:E=>k(E.target.value),placeholder:"Search rooms, docs, tags\u2026 ( / )",className:"max-w-xl pl-8",autoComplete:"off","aria-label":"Search rooms"}),(0,Z.jsx)(pe,{name:"search",className:"pointer-events-none absolute top-1/2 left-2.5 size-3.5 -translate-y-1/2 text-muted-foreground"})]}),(0,Z.jsxs)("div",{className:"ml-auto flex shrink-0 items-center gap-1.5",children:[(0,Z.jsxs)(bt,{variant:"outline",className:Ce(!x&&"border-destructive text-destructive"),children:[H?(0,Z.jsx)(pe,{name:"loader",className:"size-3 animate-spin"}):(0,Z.jsx)("span",{className:Ce("size-1.5 rounded-full",x?"bg-success":"bg-destructive")}),x?O?.message??"ready":"reconnecting\u2026"]}),(0,Z.jsx)(Cu,{}),(0,Z.jsx)(Qe,{variant:"ghost",size:"sm",asChild:!0,children:(0,Z.jsx)("a",{href:"/settings",children:"Settings"})}),(0,Z.jsxs)(Qe,{variant:"ghost",size:"sm",onClick:()=>{C()},children:[(0,Z.jsx)(pe,{name:"refresh",className:"size-3.5"}),"Refresh"]})]})]}),(0,Z.jsxs)("main",{className:"mx-auto w-full max-w-[1600px] p-5",children:[a.length>0||$>0?(0,Z.jsxs)("div",{className:"mb-4 flex flex-wrap items-start gap-5",children:[a.map(E=>(0,Z.jsx)(lF,{facet:E,selected:o[E.key]??[],onToggle:N=>A(E.key,N),onPick:N=>R(E.key,N)},E.key)),$>0&&(0,Z.jsxs)("label",{className:"ml-auto flex cursor-pointer items-center gap-2 text-sm",children:[(0,Z.jsx)(Ao,{checked:l,onCheckedChange:E=>T(E===!0)}),(0,Z.jsxs)("span",{className:"text-muted-foreground",children:["archived (",$,")"]})]})]}):null,z&&(0,Z.jsxs)("div",{className:"mb-3 flex flex-wrap items-center gap-2",children:[r&&(0,Z.jsxs)(bt,{variant:"secondary",children:["search: ",r]}),Object.entries(o).flatMap(([E,N])=>N.map(F=>(0,Z.jsxs)(Qe,{variant:"ghost",size:"xs",onClick:()=>A(E,F),children:[E,": ",F,(0,Z.jsx)("span",{className:"text-muted-foreground",children:"\xD7"})]},`${E}-${F}`))),(r?1:0)+Object.values(o).reduce((E,N)=>E+N.length,0)>1&&(0,Z.jsx)(Qe,{variant:"link",size:"xs",onClick:U,children:"clear all"})]}),d?(0,Z.jsx)("div",{className:"grid gap-4 [grid-template-columns:repeat(auto-fill,minmax(240px,1fr))]",children:Array.from({length:6},(E,N)=>(0,Z.jsxs)(yi,{className:"overflow-hidden",children:[(0,Z.jsx)(ki,{className:"aspect-[16/10] w-full rounded-none"}),(0,Z.jsxs)(vi,{className:"flex flex-col gap-2 pt-4",children:[(0,Z.jsx)(ki,{className:"h-4 w-32"}),(0,Z.jsx)(ki,{className:"h-3 w-24"}),(0,Z.jsx)(ki,{className:"h-3 w-40"})]})]},N))}):D.length>0?(0,Z.jsx)("div",{className:"grid gap-4 [grid-template-columns:repeat(auto-fill,minmax(240px,1fr))]",children:D.map(E=>(0,Z.jsx)(sF,{room:E,hit:(c??[]).find(N=>N.name===E.name)??null,query:r},E.name))}):(0,Z.jsxs)(yi,{className:"max-w-2xl",children:[(0,Z.jsx)(Lo,{children:(0,Z.jsx)(Eo,{children:z?"Nothing matches":"No rooms yet"})}),(0,Z.jsxs)(vi,{className:"flex flex-col gap-3 text-sm text-muted-foreground",children:[z?(0,Z.jsx)("p",{children:"Loosen a filter, or search for something else."}):(0,Z.jsxs)("p",{children:["A room is one screen: ",(0,Z.jsx)("code",{className:"font-mono",children:"rooms/<name>/"})," with"," ",(0,Z.jsx)("code",{className:"font-mono",children:"BRIEF.md"}),","," ",(0,Z.jsx)("code",{className:"font-mono",children:"SPEC.md"}),","," ",(0,Z.jsx)("code",{className:"font-mono",children:"BEHAVIOUR.md"})," and an artifact."]}),!z&&(0,Z.jsx)("pre",{className:"mr-scroll overflow-x-auto rounded-md border border-border bg-muted/50 p-3 font-mono text-xs",children:(0,Z.jsxs)("code",{children:["$ npx modelroom init my-first-room",`
15
+ `,"$ npx modelroom serve"]})}),z&&(0,Z.jsx)(Qe,{variant:"outline",size:"sm",className:"self-start",onClick:U,children:"Clear search and filters"})]})]})]}),(0,Z.jsx)("footer",{className:"mx-auto w-full max-w-[1600px] px-5 pb-8 text-xs text-muted-foreground",children:"Agent-agnostic: modelroom drives the coding agent you configure. Artifacts are served unmodified (no injection)."})]})}var cr=M(ye(),1);var se=M(ae(),1);function xm({label:t,hint:e,children:a}){return(0,se.jsxs)("label",{className:"flex flex-col gap-1.5",children:[(0,se.jsxs)("span",{className:"text-sm font-medium",children:[t,e&&(0,se.jsx)("span",{className:"ml-1 font-normal text-muted-foreground",children:e})]}),a]})}var mS=({children:t})=>(0,se.jsx)("code",{className:"rounded bg-muted px-1 py-0.5 font-mono text-xs",children:t});function IT(){let[t,e]=(0,cr.useState)(null),[a,n]=(0,cr.useState)("opencode"),[r,i]=(0,cr.useState)(""),[o,s]=(0,cr.useState)(""),[l,u]=(0,cr.useState)(""),[c,f]=(0,cr.useState)(!0),[d,h]=(0,cr.useState)(!1),[p,g]=(0,cr.useState)(null);(0,cr.useEffect)(()=>{(async()=>{let m=await um().catch(()=>null);if(!m?.config)return;let O=m.config;e(O),n(O.agent.adapter),i(O.agent.command??""),s(O.agent.agent??""),u(O.agent.model??""),f(O.agent.standalone)})()},[]);let b=async()=>{h(!0);try{let m=await D_({adapter:a,command:r.trim(),agent:o.trim(),model:l.trim(),standalone:c});m.config&&e(m.config),g(m.error?`failed: ${m.error}`:`saved ${Ds()}`)}catch{g("failed: could not reach the server")}finally{h(!1)}};return(0,se.jsxs)("div",{className:"flex min-h-dvh flex-col bg-background",children:[(0,se.jsxs)("header",{className:"flex h-12 items-center gap-3 border-b border-border bg-card px-4",children:[(0,se.jsx)(Qe,{variant:"ghost",size:"sm",asChild:!0,children:(0,se.jsxs)("a",{href:"/",children:[(0,se.jsx)(pe,{name:"arrow-left",className:"size-4"}),"Rooms"]})}),(0,se.jsx)("span",{className:"font-semibold",children:"Settings"}),(0,se.jsx)("div",{className:"ml-auto",children:(0,se.jsx)(Cu,{})})]}),(0,se.jsxs)("main",{className:"mx-auto flex w-full max-w-3xl flex-col gap-4 p-5",children:[(0,se.jsxs)(yi,{children:[(0,se.jsxs)(Lo,{children:[(0,se.jsx)(Eo,{children:"Agent"}),(0,se.jsx)("p",{className:"text-sm text-muted-foreground",children:"modelroom drives the agent you already use. Nothing here is sent anywhere by modelroom itself."})]}),(0,se.jsxs)(vi,{className:"flex flex-col gap-4",children:[(0,se.jsx)(xm,{label:"Adapter",children:(0,se.jsxs)(Eu,{value:a,onChange:m=>n(m.target.value),children:[(0,se.jsx)("option",{value:"opencode",children:"opencode \u2014 OpenCode CLI (sessions, model, agent)"}),(0,se.jsxs)("option",{value:"command",children:["command \u2014 any CLI, with args containing ","{prompt}"," and ","{session}"]})]})}),(0,se.jsxs)("div",{className:"grid gap-4 sm:grid-cols-2",children:[(0,se.jsx)(xm,{label:"Command",children:(0,se.jsx)(_o,{value:r,onChange:m=>i(m.target.value),placeholder:"opencode",className:"font-mono"})}),(0,se.jsx)(xm,{label:"Agent name",children:(0,se.jsx)(_o,{value:o,onChange:m=>s(m.target.value),placeholder:"build",className:"font-mono"})})]}),(0,se.jsx)(xm,{label:"Model",hint:"(optional \u2014 many agents fail on an unset default)",children:(0,se.jsx)(_o,{value:l,onChange:m=>u(m.target.value),placeholder:"e.g. openrouter/deepseek/deepseek-v4.1-flash",className:"font-mono"})}),(0,se.jsxs)("label",{className:"flex cursor-pointer items-start gap-2.5",children:[(0,se.jsx)(Ao,{checked:c,onCheckedChange:m=>f(m===!0),className:"mt-0.5"}),(0,se.jsx)("span",{className:"text-sm text-muted-foreground",children:"Run the agent against its own server, using this process's environment (opencode)"})]}),(0,se.jsxs)("div",{className:"flex items-center gap-3",children:[(0,se.jsxs)(Qe,{size:"sm",onClick:()=>{b()},disabled:d,children:[d&&(0,se.jsx)(pe,{name:"loader",className:"size-3.5 animate-spin"}),"Save"]}),p&&(0,se.jsx)("span",{className:"text-sm text-muted-foreground",children:p})]})]})]}),(0,se.jsxs)(yi,{children:[(0,se.jsx)(Lo,{children:(0,se.jsx)(Eo,{children:"Config"})}),(0,se.jsxs)(vi,{className:"flex flex-col gap-3 text-sm",children:[t?(0,se.jsxs)(se.Fragment,{children:[(0,se.jsxs)("div",{className:"flex flex-wrap items-center gap-2 font-mono text-xs",children:[(0,se.jsxs)(bt,{variant:"outline",children:["root ",t.root]}),(0,se.jsxs)(bt,{variant:"outline",children:["rooms ",t.rooms,"/"]}),(0,se.jsxs)(bt,{variant:"outline",children:["artifact ",t.artifact]})]}),(0,se.jsxs)("div",{className:"flex flex-wrap items-center gap-2 font-mono text-xs",children:[(0,se.jsxs)(bt,{variant:"secondary",children:["agent ",t.agent.adapter]}),(0,se.jsxs)(bt,{variant:"secondary",children:["command ",t.agent.command]}),(0,se.jsxs)(bt,{variant:"secondary",children:["agent name ",t.agent.agent||"-"]}),(0,se.jsxs)(bt,{variant:"secondary",children:["model ",t.agent.model||"default"]})]})]}):(0,se.jsx)("p",{className:"text-muted-foreground",children:"loading\u2026"}),(0,se.jsxs)("p",{className:"text-xs text-muted-foreground",children:["Committed settings live in ",(0,se.jsx)(mS,{children:"modelroom.json"}),". Anything you save here is kept locally in ",(0,se.jsx)(mS,{children:".modelroom/state.json"})," (git-ignored). Editable room files are:"," ",(0,se.jsx)("span",{className:"font-mono",children:(t?.docs??[]).join(", ")}),"."]})]})]}),(0,se.jsxs)(yi,{children:[(0,se.jsx)(Lo,{children:(0,se.jsx)(Eo,{children:"Thumbnails"})}),(0,se.jsxs)(vi,{className:"text-sm text-muted-foreground",children:["Rendering an artifact to PNG needs Playwright and a browser:"," ",(0,se.jsx)(mS,{children:"npm i -D playwright && npx playwright install chromium"}),". modelroom works without it \u2014 rooms simply show no thumbnail."]})]})]})]})}var kn=M(ye(),1);var Xr=M(ye(),1);var uF={messages:[],running:!1,sessionId:null,assistantId:null,logId:null,seq:0},OS=(t,e)=>`${e}-${t.seq+1}`;function gS(t,e,a,n){let r=t[a];if(r)return{...t,messages:t.messages.map(l=>l.id===r?{...l,text:l.text+n}:l)};let i=OS(t,e),o=Date.now(),s=e==="assistant"?{id:i,role:"assistant",text:n,at:o,done:!1}:{id:i,role:"log",text:n,at:o,done:!1};return{...t,seq:t.seq+1,[a]:i,messages:[...t.messages,s]}}function cF(t,e){switch(e.type){case"replay":{if(t.messages.length)return t;let a=Date.now(),n=e.lines.map((r,i)=>{let o=`replay-${i}`;return r.role==="user"?{id:o,role:"user",text:r.text,at:a}:r.role==="assistant"?{id:o,role:"assistant",text:r.text,at:a,done:!0}:{id:o,role:"log",text:r.text,at:a,done:!0}});return{...t,sessionId:e.sessionId??t.sessionId,messages:n}}case"user":{let a=OS(t,"user");return{...t,seq:t.seq+1,messages:[...t.messages,{id:a,role:"user",text:e.text,at:Date.now()}]}}case"notice":{let a=OS(t,"system");return{...t,seq:t.seq+1,messages:[...t.messages,{id:a,role:"system",text:e.text,at:Date.now(),tone:e.tone}]}}case"start":return{...t,running:!0,sessionId:e.sessionId??t.sessionId,assistantId:null,logId:null};case"session":return{...t,sessionId:e.sessionId};case"chunk":return e.stream==="meta"||e.stream==="stderr"?gS(t,"log","logId",e.chunk):gS(t,"assistant","assistantId",e.chunk);case"done":{let a=n=>n.role==="assistant"||n.role==="log"?{...n,done:!0}:n;return{...t,running:!1,messages:t.messages.map(a),assistantId:null,logId:null}}default:return t}}function PT(t){let[e,a]=(0,Xr.useReducer)(cF,uF),[n,r]=(0,Xr.useState)([]);qt("chat-start",s=>{s.room===t&&a({type:"start",sessionId:s.sessionId})}),qt("chat",s=>{s.room===t&&a({type:"chunk",stream:s.stream,chunk:s.chunk})}),qt("chat-done",s=>{s.room===t&&a({type:"done",code:s.code,error:s.error})}),(0,Xr.useEffect)(()=>{let s=!1;return(async()=>{try{let l=await lm(t);if(s)return;a({type:"replay",lines:l.lines??[],sessionId:l.session??null})}catch{}})(),()=>{s=!0}},[t]);let i=(0,Xr.useCallback)(async s=>{let l=s.trim();if(l){a({type:"user",text:l});try{let u=await R_(t,l);u.started||(a({type:"notice",text:`could not send: ${u.reason??u.error??"the agent is busy"}`,tone:"error"}),a({type:"done",code:-1,error:null}))}catch{a({type:"notice",text:"could not reach the server",tone:"error"}),a({type:"done",code:-1,error:null})}}},[t]),o=(0,Xr.useCallback)(async s=>{let l=s.trim();l&&(e.running?r(u=>[...u,l]):await i(l))},[e.running,i]);return(0,Xr.useEffect)(()=>{if(e.running||n.length===0)return;let[s,...l]=n;r(l),s&&i(s)},[e.running,n,i]),{messages:e.messages,running:e.running,sessionId:e.sessionId,queue:n,submit:o,removeQueued:s=>r(l=>l.filter((u,c)=>c!==s)),setSessionId:s=>a({type:"session",sessionId:s}),notice:s=>a({type:"notice",text:s,tone:"info"})}}var na=M(ye(),1);var Na=M(ye(),1);var aa=M(ye(),1);var fr=M(ye(),1);var ym=M(ae(),1),Ht=M(ye(),1);var To=M(ae(),1),fF=Object.defineProperty,Gt=(t,e)=>fF(t,"name",{value:e,configurable:!0});function bS(t){let e=t+"CollectionProvider",[a,n]=pn(e),[r,i]=a(e,{collectionRef:{current:null},itemMap:new Map}),o=Gt(g=>{let{scope:b,children:m}=g,O=fr.useRef(null),x=fr.useRef(new Map).current;return(0,ym.jsx)(r,{scope:b,itemMap:x,collectionRef:O,children:m})},"CollectionProvider");o.displayName=e;let s=t+"CollectionSlot",l=Ur(s),u=fr.forwardRef((g,b)=>{let{scope:m,children:O}=g,x=i(s,m),S=Ma(b,x.collectionRef);return(0,ym.jsx)(l,{ref:S,children:O})});u.displayName=s;let c=t+"CollectionItemSlot",f="data-radix-collection-item",d=Ur(c),h=fr.forwardRef((g,b)=>{let{scope:m,children:O,...x}=g,S=fr.useRef(null),y=Ma(b,S),C=i(c,m);return fr.useEffect(()=>(C.itemMap.set(S,{ref:S,...x}),()=>{C.itemMap.delete(S)})),(0,ym.jsx)(d,{[f]:"",ref:y,children:O})});h.displayName=c;function p(g){let b=i(t+"CollectionConsumer",g);return fr.useCallback(()=>{let O=b.collectionRef.current;if(!O)return[];let x=Array.from(O.querySelectorAll(`[${f}]`));return Array.from(b.itemMap.values()).sort((C,v)=>x.indexOf(C.ref.current)-x.indexOf(v.ref.current))},[b.collectionRef,b.itemMap])}return Gt(p,"useCollection"),[{Provider:o,Slot:u,ItemSlot:h},p,n]}Gt(bS,"createCollection");var MT=new WeakMap,Sm=class Ro extends Map{static{Gt(this,"OrderedDict")}#e;constructor(e){super(e),this.#e=[...super.keys()],MT.set(this,!0)}set(e,a){return MT.get(this)&&!this.has(e)&&this.#e.push(e),super.set(e,a),this}insert(e,a,n){let r=this.has(a),i=r?this.size:this.size+1,o=xS(e),s=o>=0?Math.min(o,i-1):Math.max(i+o,0);if(r?this.#e.indexOf(a)===s:s===this.size)return this.set(a,n),this;let l=this.#e.filter(c=>c!==a);l.splice(s,0,a);let u=l.map(c=>[c,c===a?n:this.get(c)]);this.clear();for(let[c,f]of u)this.set(c,f);return this}with(e,a,n){let r=new Ro(this);return r.insert(e,a,n),r}before(e){let a=this.#e.indexOf(e)-1;if(!(a<0))return this.entryAt(a)}setBefore(e,a,n){let r=this.#e.indexOf(e);if(r===-1)return this;let i=this.#e.indexOf(a),o=i!==-1&&i<r?r-1:r;return this.insert(o,a,n)}after(e){let a=this.#e.indexOf(e);if(a=a===-1||a===this.size-1?-1:a+1,a!==-1)return this.entryAt(a)}setAfter(e,a,n){let r=this.#e.indexOf(e);if(r===-1)return this;let i=this.#e.indexOf(a),o=i!==-1&&i<=r?r:r+1;return this.insert(o,a,n)}first(){return this.entryAt(0)}last(){return this.entryAt(-1)}clear(){return this.#e=[],super.clear()}delete(e){let a=super.delete(e);return a&&this.#e.splice(this.#e.indexOf(e),1),a}deleteAt(e){let a=this.keyAt(e);return a!==void 0?this.delete(a):!1}at(e){let a=vm(this.#e,e);if(a!==void 0)return this.get(a)}entryAt(e){let a=vm(this.#e,e);if(a!==void 0)return[a,this.get(a)]}indexOf(e){return this.#e.indexOf(e)}keyAt(e){return vm(this.#e,e)}from(e,a){let n=this.indexOf(e);if(n===-1)return;let r=n+a;return r<0&&(r=0),r>=this.size&&(r=this.size-1),this.at(r)}keyFrom(e,a){let n=this.indexOf(e);if(n===-1)return;let r=n+a;return r<0&&(r=0),r>=this.size&&(r=this.size-1),this.keyAt(r)}find(e,a){let n=0;for(let r of this){if(Reflect.apply(e,a,[r,n,this]))return r;n++}}findIndex(e,a){let n=0;for(let r of this){if(Reflect.apply(e,a,[r,n,this]))return n;n++}return-1}filter(e,a){let n=[],r=0;for(let i of this)Reflect.apply(e,a,[i,r,this])&&n.push(i),r++;return new Ro(n)}map(e,a){let n=[],r=0;for(let i of this)n.push([i[0],Reflect.apply(e,a,[i,r,this])]),r++;return new Ro(n)}reduce(...e){let[a,n]=e,r=e.length>1;if(!r&&this.size===0)throw new TypeError("Reduce of empty OrderedDict with no initial value");let i=0,o=n;for(let s of this)i===0&&!r?o=s:o=Reflect.apply(a,this,[o,s,i,this]),i++;return o}reduceRight(...e){let[a,n]=e,r=e.length>1;if(!r&&this.size===0)throw new TypeError("Reduce of empty OrderedDict with no initial value");let i=n;for(let o=this.size-1;o>=0;o--){let s=this.entryAt(o);o===this.size-1&&!r?i=s:i=Reflect.apply(a,this,[i,s,o,this])}return i}sort(e){if(typeof e!="function")throw new TypeError("OrderedDict.sort requires a compare function");let a=[...this.entries()].sort(e);this.clear();for(let[n,r]of a)this.set(n,r);return this}toSorted(e){if(typeof e!="function")throw new TypeError("OrderedDict.toSorted requires a compare function");let a=[...this.entries()].sort(e);return new Ro(a)}toReversed(){let e=new Ro;for(let a=this.size-1;a>=0;a--){let n=this.keyAt(a),r=this.get(n);e.set(n,r)}return e}toSpliced(...e){let a=[...this.entries()];return a.splice(...e),new Ro(a)}slice(e,a){let n=new Ro;for(let r of this.#e.slice(e,a))n.set(r,this.get(r));return n}every(e,a){let n=0;for(let r of this){if(!Reflect.apply(e,a,[r,n,this]))return!1;n++}return!0}some(e,a){let n=0;for(let r of this){if(Reflect.apply(e,a,[r,n,this]))return!0;n++}return!1}};function vm(t,e){if("at"in Array.prototype)return Array.prototype.at.call(t,e);let a=DT(t,e);return a===-1?void 0:t[a]}Gt(vm,"at");function DT(t,e){let a=t.length,n=xS(e),r=n>=0?n:a+n;return r<0||r>=a?-1:r}Gt(DT,"toSafeIndex");function xS(t){return t!==t||t===0?0:Math.trunc(t)}Gt(xS,"toSafeInteger");function dF(t){let e=t+"CollectionProvider",[a,n]=pn(e),[r,i]=a(e);r.displayName=t+"CollectionStableContextProvider";let[o,s]=a(e);o.displayName=t+"CollectionStatefulContextProvider";let l=Gt(({state:C,...v})=>C?(0,To.jsx)(c,{...v,state:C}):(0,To.jsx)(u,{...v}),"CollectionProvider");l.displayName=e;let u=Gt(C=>{let v=O();return(0,To.jsx)(c,{...C,state:v})},"CollectionInit");u.displayName=t+"CollectionInit";let c=Gt(C=>{let{scope:v,children:k,state:L}=C,A=Ht.useRef(null),[R,T]=Ht.useState(null),U=Ma(A,T),[Q,D]=L,_=Ht.useRef(new Sm),$=Ht.useCallback(()=>{let z=_.current;return $T(z)||z.sort(Cm),z},[]);return Ht.useEffect(()=>{if(!R)return;let z=BT(()=>{D(H=>{let E=H.toSorted(Cm);return E.some(([F],B)=>H.keyAt(B)!==F)?E:H})});return z.observe(R,{childList:!0,subtree:!0}),()=>{z.disconnect()}},[R,D]),(0,To.jsx)(r,{scope:v,collectionElementRef:U,collectionElementRefObject:A,getCollection:$,setCollection:D,registryRef:_,children:(0,To.jsx)(o,{scope:v,collectionElement:R,collection:Q,children:k})})},"CollectionProviderImpl");c.displayName=t+"CollectionProviderImpl";let f=t+"CollectionSlot",d=Ur(f),h=Ht.forwardRef((C,v)=>{let{scope:k,children:L}=C,A=i(f,k),R=Ma(v,A.collectionElementRef);return(0,To.jsx)(d,{ref:R,children:L})});h.displayName=f;let p=t+"CollectionItemSlot",g="data-radix-collection-item",b=Ur(p),m=Ht.forwardRef((C,v)=>{let{scope:k,children:L,...A}=C,R=Ht.useRef(null),T=i(p,k),{setCollection:U,registryRef:Q}=T,D=Ht.useRef(A);NT(D.current,A)||(D.current=A);let _=D.current,$=Ht.useCallback(E=>{let N=Q.current;E?N.set(E,{...D.current,element:E}):R.current&&N.delete(R.current)},[Q]),z=Ma(v,$,R);Oa(()=>{let E=R.current,N=Q.current;E&&N.has(E)&&N.set(E,{..._,element:E})},[_,Q]);let H=Ht.useRef(null);return Ht.useEffect(()=>{let E=R.current,N=H.current;(N?.element??null)===E&&(!E||N?.itemData===_)||(H.current=E?{element:E,itemData:_}:null,U(F=>{let B=new Sm(F);return N&&N.element!==E&&B.delete(N.element),E&&B.set(E,{..._,element:E}),B.sort(Cm)}))}),Ht.useEffect(()=>()=>{let E=H.current;H.current=null,E&&U(N=>{if(!N.has(E.element))return N;let F=new Sm(N);return F.delete(E.element),F})},[U]),(0,To.jsx)(b,{[g]:"",ref:z,children:L})});m.displayName=p;function O(){return Ht.useState(new Sm)}Gt(O,"useInitCollection");function x(C){let{collection:v}=s(t+"CollectionConsumer",C);return v}Gt(x,"useCollection");function S(C){let{getCollection:v}=i(t+"CollectionConsumer",C);return v}return Gt(S,"useGetCollection"),[{Provider:l,Slot:h,ItemSlot:m},{createCollectionScope:n,useCollection:x,useGetCollection:S,useInitCollection:O}]}Gt(dF,"createCollection");function NT(t,e){if(t===e)return!0;if(typeof t!="object"||typeof e!="object"||t==null||e==null)return!1;let a=Object.keys(t),n=Object.keys(e);if(a.length!==n.length)return!1;for(let r of a)if(!Object.prototype.hasOwnProperty.call(e,r)||t[r]!==e[r])return!1;return!0}Gt(NT,"shallowEqual");function QT(t,e){return!!(e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_PRECEDING)}Gt(QT,"isElementPreceding");function $T(t){let e;for(let a of t.keys()){if(e){let n=e.compareDocumentPosition(a);if(!(n&Node.DOCUMENT_POSITION_DISCONNECTED)&&n&Node.DOCUMENT_POSITION_PRECEDING)return!1}e=a}return!0}Gt($T,"isInDocumentOrder");function Cm(t,e){return!t[1].element||!e[1].element?0:QT(t[1].element,e[1].element)?-1:1}Gt(Cm,"sortByDocumentPosition");function BT(t){return new MutationObserver(a=>{for(let n of a)if(n.type==="childList"){t();return}})}Gt(BT,"getChildListObserver");var SS=M(ye(),1);var hF=Object.defineProperty,pF=(t,e)=>hF(t,"name",{value:e,configurable:!0}),mF=SS[" useId ".trim().toString()]||(()=>{}),gF=0;function Jf(t){let[e,a]=SS.useState(mF());return Oa(()=>{t||a(n=>n??String(gF++))},[t]),t||(e?`radix-${e}`:"")}pF(Jf,"useId");var ed=M(ye(),1),OF=Object.defineProperty,bF=(t,e)=>OF(t,"name",{value:e,configurable:!0}),zT=ed[" useInsertionEffect ".trim().toString()];function yS(t){let e=ed.useRef(t);return typeof zT=="function"?zT(()=>{e.current=t}):Oa(()=>{e.current=t}),ed.useMemo(()=>((...a)=>e.current?.(...a)),[])}bF(yS,"useCallbackRef");var wm=M(ye(),1),yF=M(ae(),1),xF=Object.defineProperty,SF=(t,e)=>xF(t,"name",{value:e,configurable:!0}),vF={LTR:"ltr",RTL:"rtl"},CF=wm.createContext(void 0);function zs(t){let e=wm.useContext(CF);return t||e||vF.LTR}SF(zs,"useDirection");var kF=M(ye(),1),km=M(ye(),1),wF=Object.defineProperty,CS=(t,e)=>wF(t,"name",{value:e,configurable:!0}),vS=!1;function UT(){let[t,e]=km.useState(vS);return km.useEffect(()=>{vS||(vS=!0,e(!0))},[]),t}CS(UT,"useIsHydrated");var XT=kF[" useSyncExternalStore ".trim().toString()];function qT(){return()=>{}}CS(qT,"subscribe");function ZT(){return XT(qT,()=>!0,()=>!1)}CS(ZT,"useIsHydratedModern");var FT=typeof XT=="function"?ZT:UT;var Io=M(ae(),1),LF=Object.defineProperty,Us=(t,e)=>LF(t,"name",{value:e,configurable:!0}),wS="rovingFocusGroup.onEntryFocus",EF={bubbles:!1,cancelable:!0},Lm="RovingFocusGroup",[kS,HT,AF]=bS(Lm),[_F,Au]=pn(Lm,[AF]),GT={Vertical:"vertical",Horizontal:"horizontal"},RF={LTR:"ltr",RTL:"rtl"},[TF,IF]=_F(Lm),Em=aa.forwardRef(Us(function(e,a){return(0,Io.jsx)(kS.Provider,{scope:e.__scopeRovingFocusGroup,children:(0,Io.jsx)(kS.Slot,{scope:e.__scopeRovingFocusGroup,children:(0,Io.jsx)(PF,{...e,ref:a})})})},"RovingFocusGroup")),PF=aa.forwardRef(Us(function(e,a){let{__scopeRovingFocusGroup:n,orientation:r,loop:i=!1,dir:o,currentTabStopId:s,defaultCurrentTabStopId:l,onCurrentTabStopIdChange:u,onEntryFocus:c,preventScrollOnEntryFocus:f=!1,...d}=e,h=aa.useRef(null),p=Ma(a,h),g=zs(o),[b,m]=Xn({prop:s,defaultProp:l??null,onChange:u,caller:Lm}),[O,x]=aa.useState(!1),S=yS(c),y=HT(n),C=aa.useRef(!1),[v,k]=aa.useState(0);return aa.useEffect(()=>{let L=h.current;if(L)return L.addEventListener(wS,S),()=>L.removeEventListener(wS,S)},[S]),(0,Io.jsx)(TF,{scope:n,orientation:r,dir:g,loop:i,currentTabStopId:b,onItemFocus:aa.useCallback(L=>m(L),[m]),onItemShiftTab:aa.useCallback(()=>x(!0),[]),onFocusableItemAdd:aa.useCallback(()=>k(L=>L+1),[]),onFocusableItemRemove:aa.useCallback(()=>k(L=>L-1),[]),children:(0,Io.jsx)(ta.div,{tabIndex:O||v===0?-1:0,"data-orientation":r,...d,ref:p,style:{outline:"none",...e.style},onMouseDown:ea(e.onMouseDown,()=>{C.current=!0}),onFocus:ea(e.onFocus,L=>{let A=!C.current;if(L.target===L.currentTarget&&A&&!O){let R=new CustomEvent(wS,EF);if(L.currentTarget.dispatchEvent(R),!R.defaultPrevented){let T=y().filter($=>$.focusable),U=T.find($=>$.active),Q=T.find($=>$.id===b),_=[U,Q,...T].filter(Boolean).map($=>$.ref.current);LS(_,f)}}C.current=!1}),onBlur:ea(e.onBlur,()=>x(!1))})})},"RovingFocusGroupImpl")),MF="RovingFocusGroupItem",Am=aa.forwardRef(Us(function(e,a){let{__scopeRovingFocusGroup:n,focusable:r=!0,active:i=!1,tabStopId:o,children:s,...l}=e,u=Jf(),c=o||u,f=IF(MF,n),d=f.currentTabStopId===c,h=HT(n),{onFocusableItemAdd:p,onFocusableItemRemove:g,currentTabStopId:b}=f,m=FT();return Oa(()=>{if(!(!m||!r))return p(),()=>g()},[m,r,p,g]),aa.useEffect(()=>{if(!(m||!r))return p(),()=>g()},[m,r,p,g]),(0,Io.jsx)(kS.ItemSlot,{scope:n,id:c,focusable:r,active:i,children:(0,Io.jsx)(ta.span,{tabIndex:d?0:-1,"data-orientation":f.orientation,...l,ref:a,onMouseDown:ea(e.onMouseDown,O=>{r?f.onItemFocus(c):O.preventDefault()}),onFocus:ea(e.onFocus,()=>f.onItemFocus(c)),onKeyDown:ea(e.onKeyDown,O=>{if(O.key==="Tab"&&O.shiftKey){f.onItemShiftTab();return}if(O.target!==O.currentTarget)return;let x=VT(O,f.orientation,f.dir);if(x!==void 0){if(O.metaKey||O.ctrlKey||O.altKey||O.shiftKey)return;O.preventDefault();let y=h().filter(C=>C.focusable).map(C=>C.ref.current);if(x==="last")y.reverse();else if(x==="prev"||x==="next"){x==="prev"&&y.reverse();let C=y.indexOf(O.currentTarget);y=f.loop?YT(y,C+1):y.slice(C+1)}setTimeout(()=>LS(y))}}),children:typeof s=="function"?s({isCurrentTabStop:d,hasTabStop:b!=null}):s})})},"RovingFocusGroupItem")),DF={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function jT(t,e){return e!==RF.RTL?t:t==="ArrowLeft"?"ArrowRight":t==="ArrowRight"?"ArrowLeft":t}Us(jT,"getDirectionAwareKey");function VT(t,e,a){let n=jT(t.key,a);if(!(e===GT.Vertical&&["ArrowLeft","ArrowRight"].includes(n))&&!(e===GT.Horizontal&&["ArrowUp","ArrowDown"].includes(n)))return DF[n]}Us(VT,"getFocusIntent");function LS(t,e=!1){let a=document.activeElement;for(let n of t)if(n===a||(n.focus({preventScroll:e}),document.activeElement!==a))return}Us(LS,"focusFirst");function YT(t,e){return t.map((a,n)=>t[(e+n)%t.length])}Us(YT,"wrapArray");var KT=M(ye(),1);var JT=M(ae(),1),NF=Object.defineProperty,QF=(t,e)=>NF(t,"name",{value:e,configurable:!0}),$F="Toggle",eI=KT.forwardRef(QF(function(e,a){let{pressed:n,defaultPressed:r,onPressedChange:i,...o}=e,[s,l]=Xn({prop:n,onChange:i,defaultProp:r??!1,caller:$F});return(0,JT.jsx)(ta.button,{type:"button","aria-pressed":s,"data-state":s?"on":"off","data-disabled":e.disabled?"":void 0,...o,ref:a,onClick:ea(e.onClick,()=>{e.disabled||l(!s)})})},"Toggle"));var Da=M(ae(),1),BF=Object.defineProperty,Po=(t,e)=>BF(t,"name",{value:e,configurable:!0}),_u="ToggleGroup",td={Single:"single",Multiple:"multiple"},[aI,Mre]=pn(_u,[Au]),nI=Au(),rI=Na.forwardRef(Po(function(e,a){let{type:n,...r}=e;if(n===td.Single)return(0,Da.jsx)(zF,{role:"radiogroup",...r,ref:a});if(n===td.Multiple)return(0,Da.jsx)(UF,{role:"toolbar",...r,ref:a});throw new Error(`Missing prop \`type\` expected on \`${_u}\``)},"ToggleGroup")),[iI,oI]=aI(_u),zF=Na.forwardRef(Po(function(e,a){let{value:n,defaultValue:r,onValueChange:i=Po(()=>{},"onValueChange"),...o}=e,[s,l]=Xn({prop:n,defaultProp:r??"",onChange:i,caller:_u});return(0,Da.jsx)(iI,{scope:e.__scopeToggleGroup,type:td.Single,value:Na.useMemo(()=>s?[s]:[],[s]),onItemActivate:l,onItemDeactivate:Na.useCallback(()=>l(""),[l]),children:(0,Da.jsx)(sI,{...o,ref:a})})},"ToggleGroupImplSingle")),UF=Na.forwardRef(Po(function(e,a){let{value:n,defaultValue:r,onValueChange:i=Po(()=>{},"onValueChange"),...o}=e,[s,l]=Xn({prop:n,defaultProp:r??[],onChange:i,caller:_u}),u=Na.useCallback(f=>l((d=[])=>[...d,f]),[l]),c=Na.useCallback(f=>l((d=[])=>d.filter(h=>h!==f)),[l]);return(0,Da.jsx)(iI,{scope:e.__scopeToggleGroup,type:td.Multiple,value:s,onItemActivate:u,onItemDeactivate:c,children:(0,Da.jsx)(sI,{...o,ref:a})})},"ToggleGroupImplMultiple")),[XF,qF]=aI(_u),sI=Na.forwardRef(Po(function(e,a){let{__scopeToggleGroup:n,disabled:r=!1,rovingFocus:i=!0,orientation:o,dir:s,loop:l=!0,...u}=e,c=nI(n),f=zs(s),d={dir:f,...u};return(0,Da.jsx)(XF,{scope:n,rovingFocus:i,disabled:r,children:i?(0,Da.jsx)(Em,{asChild:!0,...c,orientation:o,dir:f,loop:l,children:(0,Da.jsx)(ta.div,{...d,ref:a})}):(0,Da.jsx)(ta.div,{...d,ref:a})})},"ToggleGroupImpl")),ES="ToggleGroupItem",lI=Na.forwardRef(Po(function(e,a){let n=oI(ES,e.__scopeToggleGroup),r=qF(ES,e.__scopeToggleGroup),i=nI(e.__scopeToggleGroup),o=n.value.includes(e.value),s=r.disabled||e.disabled,l={...e,pressed:o,disabled:s},u=Na.useRef(null);return r.rovingFocus?(0,Da.jsx)(Am,{asChild:!0,...i,focusable:!s,active:o,ref:u,children:(0,Da.jsx)(tI,{...l,ref:a})}):(0,Da.jsx)(tI,{...l,ref:a})},"ToggleGroupItem")),tI=Na.forwardRef(Po(function(e,a){let{__scopeToggleGroup:n,value:r,...i}=e,o=oI(ES,n),s={role:"radio","aria-checked":e.pressed,"aria-pressed":void 0},l=o.type===td.Single?s:void 0;return(0,Da.jsx)(eI,{...l,...i,ref:a,onPressedChange:u=>{u?o.onItemActivate(r):o.onItemDeactivate(r)}})},"ToggleGroupItemImpl"));var AS=M(ae(),1);function uI({className:t,...e}){return(0,AS.jsx)(rI,{"data-slot":"toggle-group",className:Ce("flex w-fit items-center gap-0.5 rounded-lg bg-muted p-0.5",t),...e})}function cI({className:t,...e}){return(0,AS.jsx)(lI,{"data-slot":"toggle-group-item",className:Ce("inline-flex h-6 min-w-6 items-center justify-center gap-1 rounded-md px-2 text-xs font-medium text-muted-foreground outline-none transition-colors","hover:text-foreground focus-visible:ring-2 focus-visible:ring-ring/50 disabled:pointer-events-none disabled:opacity-50","data-[state=on]:bg-background data-[state=on]:text-foreground data-[state=on]:shadow-xs",t),...e})}var _S=M(ae(),1);function dr({value:t,onChange:e,options:a,className:n=""}){return(0,_S.jsx)(uI,{type:"single",value:t,onValueChange:r=>{r&&e(r)},className:n,children:a.map(r=>(0,_S.jsx)(cI,{value:r.value,title:r.title,"aria-label":r.title,children:r.label},r.value))})}var At=M(ae(),1),fI=[{value:"sp",label:"sp 390",width:390},{value:"tablet",label:"tablet 1024",width:1024},{value:"pc",label:"pc 1280",width:1280}],FF=t=>fI.find(e=>e.value===t)?.width??1024;function dI({room:t,roomsPath:e,artifact:a,info:n}){let[r,i]=(0,na.useState)("tablet"),[o,s]=(0,na.useState)(!0),[l,u]=(0,na.useState)("artifact"),[c,f]=(0,na.useState)(()=>Date.now()),[d,h]=(0,na.useState)(()=>Date.now()),[p,g]=(0,na.useState)(n.hasThumb),[b,m]=(0,na.useState)(!1),O=(0,na.useRef)(null),x=(0,na.useRef)(null),S=(0,na.useRef)(null),y=(0,na.useRef)(null),C=(0,na.useCallback)(()=>{let A=O.current,R=x.current,T=S.current;if(!A||!R||!T)return;let U=FF(r),Q=o?Math.min(1,Math.max(.2,(A.clientWidth-24)/U)):1,D=0;try{D=y.current?.contentDocument?.documentElement.scrollHeight??0}catch{D=0}D||(D=Math.max(420,A.clientHeight-24)),R.style.width=`${U}px`,R.style.height=`${D}px`,R.style.transform=`scale(${Q})`,T.style.width=`${Math.round(U*Q)}px`,T.style.height=`${Math.round(D*Q)}px`},[r,o]);(0,na.useEffect)(()=>{C()},[C,l]),(0,na.useEffect)(()=>{let A=O.current;if(!A)return;let R=new ResizeObserver(C);return R.observe(A),()=>R.disconnect()},[C]),qt("render-done",A=>{A.room&&A.room!==t||(g(!0),h(Date.now()))}),qt("change",A=>{let R=A.file.split("/").pop()??"";A.file.startsWith(`${e}/${t}/`)&&(R===a&&f(Date.now()),R===a.replace(/\.html?$/i,".png")&&(g(!0),h(Date.now())))});let v=async()=>{m(!0);try{await I_(t,r)}finally{m(!1)}},k=`/files/${e}/${t}/${a}?v=${c}`,L=`/files/${e}/${t}/${a.replace(/\.html?$/i,".png")}?v=${d}`;return(0,At.jsxs)("section",{className:"flex min-h-0 min-w-0 flex-col bg-card",children:[(0,At.jsxs)("header",{className:"flex flex-wrap items-center gap-2 border-b border-border px-3 py-1.5",children:[(0,At.jsx)(dr,{value:r,onChange:i,options:fI.map(A=>({value:A.value,label:A.label}))}),(0,At.jsxs)("label",{className:"flex cursor-pointer items-center gap-1.5 text-xs text-muted-foreground",children:[(0,At.jsx)("input",{type:"checkbox",className:"size-3.5 accent-primary",checked:o,onChange:A=>s(A.target.checked)}),"fit"]}),(0,At.jsx)(dr,{value:l,onChange:u,options:[{value:"artifact",label:"artifact"},{value:"png",label:"png"}]}),(0,At.jsxs)(Qe,{variant:"outline",size:"xs",disabled:b,onClick:()=>{v()},children:[(0,At.jsx)(pe,{name:b?"loader":"image",className:b?"size-3.5 animate-spin":"size-3.5"}),"make png"]}),(0,At.jsx)(Qe,{variant:"ghost",size:"xs",className:"ml-auto",asChild:!0,children:(0,At.jsxs)("a",{href:`/files/${e}/${t}/${a}`,target:"_blank",rel:"noopener noreferrer",children:["open raw",(0,At.jsx)(pe,{name:"external",className:"size-3.5"})]})})]}),(0,At.jsx)("div",{ref:O,className:"mr-scroll relative flex-1 overflow-auto bg-muted/20 p-3",children:n.hasArtifact?l==="artifact"?(0,At.jsx)("div",{ref:S,className:"relative mx-auto",children:(0,At.jsx)("div",{ref:x,className:"absolute top-0 left-0 origin-top-left overflow-hidden rounded-lg border border-border bg-card shadow-sm",children:(0,At.jsx)("iframe",{ref:y,src:k,onLoad:C,title:"artifact",className:"block h-full w-full border-0 bg-white"})})}):p?(0,At.jsx)("img",{src:L,alt:"artifact thumbnail",className:"w-full rounded-lg border border-border bg-card"}):(0,At.jsx)("div",{className:"mx-auto mt-16 max-w-sm rounded-lg border border-dashed border-border bg-card p-6 text-center text-sm text-muted-foreground",children:"No PNG yet. Use \u201Cmake png\u201D \u2014 it needs Playwright."}):(0,At.jsxs)("div",{className:"mx-auto mt-16 max-w-sm rounded-lg border border-dashed border-border bg-card p-6 text-center text-sm text-muted-foreground",children:["No artifact yet \u2014 ",(0,At.jsx)("span",{className:"font-mono",children:a}),". Ask the agent to create it."]})})]})}var md=M(ye(),1);var Xs=["prose prose-sm max-w-none dark:prose-invert","prose-p:my-1.5 prose-pre:my-2","prose-pre:bg-muted prose-pre:text-foreground prose-pre:border prose-pre:border-border","prose-code:before:content-none prose-code:after:content-none"].join(" ");var qr=M(ye(),1);var ra=M(ae(),1),GF=220,HF=50;function hI({room:t,running:e,queue:a,onSubmit:n,onRemoveQueued:r}){let i=(0,qr.useRef)(null),o=`modelroom.draft.${t}`,s=`modelroom.history.${t}`,[l,u]=(0,qr.useState)(()=>Qn(o,"")),[c,f]=(0,qr.useState)(()=>Qn(s,[])),[d,h]=(0,qr.useState)(null),p=(0,qr.useRef)("");(0,qr.useEffect)(()=>{$n(o,l)},[o,l]),(0,qr.useEffect)(()=>{let O=i.current;O&&(O.style.height="auto",O.style.height=`${Math.min(O.scrollHeight,GF)}px`)},[l]);let g=()=>{let O=l.trim();if(!O)return;n(O),u(""),h(null);let x=c.at(-1)===O?c:[...c,O].slice(-HF);f(x),$n(s,x)},b=O=>{let x=O.currentTarget;if(O.key==="ArrowUp"){let S=x.selectionStart===x.selectionEnd&&!x.value.slice(0,x.selectionStart).includes(`
16
+ `);if(!c.length||d===null&&!S)return;O.preventDefault(),d===null&&(p.current=x.value,h(c.length));let y=d===null?c.length-1:Math.max(0,d-1);h(y),u(c[y]??"");return}O.key==="ArrowDown"&&d!==null&&(O.preventDefault(),d<c.length-1?(h(d+1),u(c[d+1]??"")):(h(null),u(p.current)))},m=O=>{if(!O.nativeEvent.isComposing){if(O.key==="Enter"&&!O.shiftKey){O.preventDefault(),g();return}b(O)}};return(0,ra.jsxs)("div",{className:"border-t border-border p-2",children:[a.length>0&&(0,ra.jsx)("div",{className:"flex flex-wrap gap-1 px-0.5 pb-2",children:a.map((O,x)=>(0,ra.jsxs)("span",{className:"inline-flex max-w-full items-center gap-1 rounded-md bg-muted px-2 py-1 text-xs text-muted-foreground",children:[(0,ra.jsx)(pe,{name:"clock",className:"size-3"}),(0,ra.jsx)("span",{className:"max-w-[16rem] truncate",children:O}),(0,ra.jsx)("button",{type:"button","aria-label":"Remove queued prompt",onClick:()=>r(x),className:"rounded transition-colors hover:text-destructive",children:(0,ra.jsx)(pe,{name:"x",className:"size-3"})})]},`${x}-${O}`))}),(0,ra.jsxs)("div",{className:"flex flex-col gap-1 rounded-xl border border-border bg-background p-1.5 transition-colors focus-within:border-ring",children:[(0,ra.jsx)("textarea",{ref:i,rows:1,value:l,spellCheck:!1,onChange:O=>{u(O.target.value),h(null)},onKeyDown:m,placeholder:"Ask the agent to change this room. It edits the room's files; the artifact updates here.",className:"mr-scroll w-full resize-none bg-transparent px-1.5 py-1 text-sm outline-none placeholder:text-muted-foreground"}),(0,ra.jsxs)("div",{className:"flex items-center gap-2 px-1",children:[(0,ra.jsx)("span",{className:"hidden text-[11px] text-muted-foreground sm:inline",children:"Enter to send \xB7 Shift+Enter for a new line"}),(0,ra.jsxs)("div",{className:"ml-auto flex items-center gap-2",children:[e&&(0,ra.jsxs)("span",{className:"hidden items-center gap-1 text-[11px] text-muted-foreground sm:flex",children:[(0,ra.jsx)(pe,{name:"sparkles",className:"size-3"}),"agent is working\u2026"]}),(0,ra.jsxs)(Qe,{size:"sm",onClick:g,disabled:!l.trim(),children:[(0,ra.jsx)(pe,{name:"send",className:"size-3.5"}),e?"Queue":"Send"]})]})]})]})]})}var Nu=M(ye(),1);var RS={};ew(RS,{decode:()=>ad,encode:()=>Mo,format:()=>Ru,parse:()=>nd});var pI={};function jF(t){let e=pI[t];if(e)return e;e=pI[t]=[];for(let a=0;a<128;a++){let n=String.fromCharCode(a);e.push(n)}for(let a=0;a<t.length;a++){let n=t.charCodeAt(a);e[n]="%"+("0"+n.toString(16).toUpperCase()).slice(-2)}return e}function _m(t,e){typeof e!="string"&&(e=_m.defaultChars);let a=jF(e);return t.replace(/(%[a-f0-9]{2})+/gi,function(n){let r="";for(let i=0,o=n.length;i<o;i+=3){let s=parseInt(n.slice(i+1,i+3),16);if(s<128){r+=a[s];continue}if((s&224)===192&&i+3<o){let l=parseInt(n.slice(i+4,i+6),16);if((l&192)===128){let u=s<<6&1984|l&63;u<128?r+="\uFFFD\uFFFD":r+=String.fromCharCode(u),i+=3;continue}}if((s&240)===224&&i+6<o){let l=parseInt(n.slice(i+4,i+6),16),u=parseInt(n.slice(i+7,i+9),16);if((l&192)===128&&(u&192)===128){let c=s<<12&61440|l<<6&4032|u&63;c<2048||c>=55296&&c<=57343?r+="\uFFFD\uFFFD\uFFFD":r+=String.fromCharCode(c),i+=6;continue}}if((s&248)===240&&i+9<o){let l=parseInt(n.slice(i+4,i+6),16),u=parseInt(n.slice(i+7,i+9),16),c=parseInt(n.slice(i+10,i+12),16);if((l&192)===128&&(u&192)===128&&(c&192)===128){let f=s<<18&1835008|l<<12&258048|u<<6&4032|c&63;f<65536||f>1114111?r+="\uFFFD\uFFFD\uFFFD\uFFFD":(f-=65536,r+=String.fromCharCode(55296+(f>>10),56320+(f&1023))),i+=9;continue}}r+="\uFFFD"}return r})}_m.defaultChars=";/?:@&=+$,#";_m.componentChars="";var ad=_m;var mI={};function VF(t){let e=mI[t];if(e)return e;e=mI[t]=[];for(let a=0;a<128;a++){let n=String.fromCharCode(a);/^[0-9a-z]$/i.test(n)?e.push(n):e.push("%"+("0"+a.toString(16).toUpperCase()).slice(-2))}for(let a=0;a<t.length;a++)e[t.charCodeAt(a)]=t[a];return e}function Rm(t,e,a){typeof e!="string"&&(a=e,e=Rm.defaultChars),typeof a>"u"&&(a=!0);let n=VF(e),r="";for(let i=0,o=t.length;i<o;i++){let s=t.charCodeAt(i);if(a&&s===37&&i+2<o&&/^[0-9a-f]{2}$/i.test(t.slice(i+1,i+3))){r+=t.slice(i,i+3),i+=2;continue}if(s<128){r+=n[s];continue}if(s>=55296&&s<=57343){if(s>=55296&&s<=56319&&i+1<o){let l=t.charCodeAt(i+1);if(l>=56320&&l<=57343){r+=encodeURIComponent(t[i]+t[i+1]),i++;continue}}r+="%EF%BF%BD";continue}r+=encodeURIComponent(t[i])}return r}Rm.defaultChars=";/?:@&=+$,-_.!~*'()#";Rm.componentChars="-_.!~*'()";var Mo=Rm;function Ru(t){let e="";return e+=t.protocol||"",e+=t.slashes?"//":"",e+=t.auth?t.auth+"@":"",t.hostname&&t.hostname.indexOf(":")!==-1?e+="["+t.hostname+"]":e+=t.hostname||"",e+=t.port?":"+t.port:"",e+=t.pathname||"",e+=t.search||"",e+=t.hash||"",e}function Tm(){this.protocol=null,this.slashes=null,this.auth=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.pathname=null}var YF=/^([a-z0-9.+-]+:)/i,WF=/:[0-9]*$/,KF=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,JF=["<",">",'"',"`"," ","\r",`
17
+ `," "],e4=["{","}","|","\\","^","`"].concat(JF),t4=["'"].concat(e4),gI=["%","/","?",";","#"].concat(t4),OI=["/","?","#"],a4=255,bI=/^[+a-z0-9A-Z_-]{0,63}$/,n4=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,xI={javascript:!0,"javascript:":!0},SI={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};function r4(t,e){if(t&&t instanceof Tm)return t;let a=new Tm;return a.parse(t,e),a}Tm.prototype.parse=function(t,e){let a,n,r,i=t;if(i=i.trim(),!e&&t.split("#").length===1){let u=KF.exec(i);if(u)return this.pathname=u[1],u[2]&&(this.search=u[2]),this}let o=YF.exec(i);if(o&&(o=o[0],a=o.toLowerCase(),this.protocol=o,i=i.substr(o.length)),(e||o||i.match(/^\/\/[^@\/]+@[^@\/]+/))&&(r=i.substr(0,2)==="//",r&&!(o&&xI[o])&&(i=i.substr(2),this.slashes=!0)),!xI[o]&&(r||o&&!SI[o])){let u=-1;for(let p=0;p<OI.length;p++)n=i.indexOf(OI[p]),n!==-1&&(u===-1||n<u)&&(u=n);let c,f;u===-1?f=i.lastIndexOf("@"):f=i.lastIndexOf("@",u),f!==-1&&(c=i.slice(0,f),i=i.slice(f+1),this.auth=c),u=-1;for(let p=0;p<gI.length;p++)n=i.indexOf(gI[p]),n!==-1&&(u===-1||n<u)&&(u=n);u===-1&&(u=i.length),i[u-1]===":"&&u--;let d=i.slice(0,u);i=i.slice(u),this.parseHost(d),this.hostname=this.hostname||"";let h=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!h){let p=this.hostname.split(/\./);for(let g=0,b=p.length;g<b;g++){let m=p[g];if(m&&!m.match(bI)){let O="";for(let x=0,S=m.length;x<S;x++)m.charCodeAt(x)>127?O+="x":O+=m[x];if(!O.match(bI)){let x=p.slice(0,g),S=p.slice(g+1),y=m.match(n4);y&&(x.push(y[1]),S.unshift(y[2])),S.length&&(i=S.join(".")+i),this.hostname=x.join(".");break}}}}this.hostname.length>a4&&(this.hostname=""),h&&(this.hostname=this.hostname.substr(1,this.hostname.length-2))}let s=i.indexOf("#");s!==-1&&(this.hash=i.substr(s),i=i.slice(0,s));let l=i.indexOf("?");return l!==-1&&(this.search=i.substr(l),i=i.slice(0,l)),i&&(this.pathname=i),SI[a]&&this.hostname&&!this.pathname&&(this.pathname=""),this};Tm.prototype.parseHost=function(t){let e=WF.exec(t);e&&(e=e[0],e!==":"&&(this.port=e.substr(1)),t=t.substr(0,t.length-e.length)),t&&(this.hostname=t)};var nd=r4;var DS={};ew(DS,{Any:()=>TS,Cc:()=>IS,Cf:()=>i4,P:()=>rd,S:()=>PS,Z:()=>MS});var TS=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,IS=/[\0-\x1F\x7F-\x9F]/,i4=/[\xAD\u0600-\u0605\u061C\u06DD\u070F\u0890\u0891\u08E2\u180E\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u206F\uFEFF\uFFF9-\uFFFB]|\uD804[\uDCBD\uDCCD]|\uD80D[\uDC30-\uDC3F]|\uD82F[\uDCA0-\uDCA3]|\uD834[\uDD73-\uDD7A]|\uDB40[\uDC01\uDC20-\uDC7F]/,rd=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061D-\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B4E\u1B4F\u1B5A-\u1B60\u1B7D-\u1B7F\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52-\u2E5D\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDD6E\uDEAD\uDED0\uDF55-\uDF59\uDF86-\uDF89]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9\uDFD4\uDFD5\uDFD7\uDFD8]|\uD805[\uDC4B-\uDC4F\uDC5A\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDEB9\uDF3C-\uDF3E]|\uD806[\uDC3B\uDD44-\uDD46\uDDE2\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2\uDF00-\uDF09\uDFE1]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8\uDF43-\uDF4F\uDFFF]|\uD809[\uDC70-\uDC74]|\uD80B[\uDFF1\uDFF2]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDD6D-\uDD6F\uDE97-\uDE9A\uDFE2]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD839\uDDFF|\uD83A[\uDD5E\uDD5F]/,PS=/[\$\+<->\^`\|~\xA2-\xA6\xA8\xA9\xAC\xAE-\xB1\xB4\xB8\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0384\u0385\u03F6\u0482\u058D-\u058F\u0606-\u0608\u060B\u060E\u060F\u06DE\u06E9\u06FD\u06FE\u07F6\u07FE\u07FF\u0888\u09F2\u09F3\u09FA\u09FB\u0AF1\u0B70\u0BF3-\u0BFA\u0C7F\u0D4F\u0D79\u0E3F\u0F01-\u0F03\u0F13\u0F15-\u0F17\u0F1A-\u0F1F\u0F34\u0F36\u0F38\u0FBE-\u0FC5\u0FC7-\u0FCC\u0FCE\u0FCF\u0FD5-\u0FD8\u109E\u109F\u1390-\u1399\u166D\u17DB\u1940\u19DE-\u19FF\u1B61-\u1B6A\u1B74-\u1B7C\u1FBD\u1FBF-\u1FC1\u1FCD-\u1FCF\u1FDD-\u1FDF\u1FED-\u1FEF\u1FFD\u1FFE\u2044\u2052\u207A-\u207C\u208A-\u208C\u20A0-\u20C1\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F\u218A\u218B\u2190-\u2307\u230C-\u2328\u232B-\u2429\u2440-\u244A\u249C-\u24E9\u2500-\u2767\u2794-\u27C4\u27C7-\u27E5\u27F0-\u2982\u2999-\u29D7\u29DC-\u29FB\u29FE-\u2B73\u2B76-\u2BFF\u2CE5-\u2CEA\u2E50\u2E51\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFF\u3004\u3012\u3013\u3020\u3036\u3037\u303E\u303F\u309B\u309C\u3190\u3191\u3196-\u319F\u31C0-\u31E5\u31EF\u3200-\u321E\u322A-\u3247\u3250\u3260-\u327F\u328A-\u32B0\u32C0-\u33FF\u4DC0-\u4DFF\uA490-\uA4C6\uA700-\uA716\uA720\uA721\uA789\uA78A\uA828-\uA82B\uA836-\uA839\uAA77-\uAA79\uAB5B\uAB6A\uAB6B\uFB29\uFBB2-\uFBD2\uFD40-\uFD4F\uFD90\uFD91\uFDC8-\uFDCF\uFDFC-\uFDFF\uFE62\uFE64-\uFE66\uFE69\uFF04\uFF0B\uFF1C-\uFF1E\uFF3E\uFF40\uFF5C\uFF5E\uFFE0-\uFFE6\uFFE8-\uFFEE\uFFFC\uFFFD]|\uD800[\uDD37-\uDD3F\uDD79-\uDD89\uDD8C-\uDD8E\uDD90-\uDD9C\uDDA0\uDDD0-\uDDFC]|\uD802[\uDC77\uDC78\uDEC8]|\uD803[\uDD8E\uDD8F\uDED1-\uDED8]|\uD805\uDF3F|\uD807[\uDFD5-\uDFF1]|\uD81A[\uDF3C-\uDF3F\uDF45]|\uD82F\uDC9C|\uD833[\uDC00-\uDCEF\uDCFA-\uDCFC\uDD00-\uDEB3\uDEBA-\uDED0\uDEE0-\uDEF0\uDF50-\uDFC3]|\uD834[\uDC00-\uDCF5\uDD00-\uDD26\uDD29-\uDD64\uDD6A-\uDD6C\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDDEA\uDE00-\uDE41\uDE45\uDF00-\uDF56]|\uD835[\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85\uDE86]|\uD838[\uDD4F\uDEFF]|\uD83B[\uDCAC\uDCB0\uDD2E\uDEF0\uDEF1]|\uD83C[\uDC00-\uDC2B\uDC30-\uDC93\uDCA0-\uDCAE\uDCB1-\uDCBF\uDCC1-\uDCCF\uDCD1-\uDCF5\uDD0D-\uDDAD\uDDE6-\uDE02\uDE10-\uDE3B\uDE40-\uDE48\uDE50\uDE51\uDE60-\uDE65\uDF00-\uDFFF]|\uD83D[\uDC00-\uDED8\uDEDC-\uDEEC\uDEF0-\uDEFC\uDF00-\uDFD9\uDFE0-\uDFEB\uDFF0]|\uD83E[\uDC00-\uDC0B\uDC10-\uDC47\uDC50-\uDC59\uDC60-\uDC87\uDC90-\uDCAD\uDCB0-\uDCBB\uDCC0\uDCC1\uDCD0-\uDCD8\uDD00-\uDE57\uDE60-\uDE6D\uDE70-\uDE7C\uDE80-\uDE8A\uDE8E-\uDEC6\uDEC8\uDECD-\uDEDC\uDEDF-\uDEEA\uDEEF-\uDEF8\uDF00-\uDF92\uDF94-\uDFEF\uDFFA]/,MS=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/;var o4=[8364,0,8218,402,8222,8230,8224,8225,710,8240,352,8249,338,0,381,0,0,8216,8217,8220,8221,8226,8211,8212,732,8482,353,8250,339,0,382,376];function s4(t){return t===0||t>=55296&&t<=57343||t>1114111}function yI(t){return s4(t)?65533:t>=128&&t<=159&&o4[t-128]||t}function vI(t){return t-1>>>0<127||t-160>>>0<55136?String.fromCharCode(t):String.fromCodePoint(yI(t))}var hr=(()=>{let t=new Uint8Array(127),e=0;for(let a=33;a<=126;a++)a!==34&&a!==36&&a!==92&&(t[a]=e++);return t})();function CI(t,e,a,n,r,i){let s=t.length,l=i*90,u=0,c=()=>{let L=hr[t.charCodeAt(u++)];return L<i?L:L*91-l+hr[t.charCodeAt(u++)]},f=a-n,d=a+r,h=new Int32Array(d);h.fill(-1,n,i),h.fill(-1,i+f,d);let p=new Int32Array(d),g=new Int32Array(d);function b(L,A){let R=0,T=A,U=A+L;for(;T<U;){let Q=hr[t.charCodeAt(u++)];if(Q<89)R+=Q,h[T++]=R;else if(Q===89){let D=hr[t.charCodeAt(u++)]+2;for(;D--;)h[T++]=++R}else{let D=hr[t.charCodeAt(u++)];R+=89+(D<90?D*91+hr[t.charCodeAt(u++)]:hr[t.charCodeAt(u++)]*8281+hr[t.charCodeAt(u++)]*91+hr[t.charCodeAt(u++)]),h[T++]=R}}}b(n,0),b(f,i);let m=new Int32Array(r*2),O=0,x=0;function S(L,A){for(let R=0;R<L;R++){let T=A+R,U=c(),Q=c();m[x*2]=U,m[x*2+1]=Q,x+=1,p[T]=O;let D=(h[U]<0?g[U]:1)+(h[Q]<0?g[Q]:1);g[T]=D,O+=D}}S(r-i+n,i+f),S(i-n,n);let y=new Uint16Array(O),C=0;for(let L=0;L<x;L++)for(let A=0;A<2;A++){let R=m[L*2+A],T=h[R];if(T<0){let U=p[R],Q=U+g[R];for(;U<Q;)y[C++]=y[U++]}else y[C++]=T}let v=new Uint16Array(e),k=0;for(;u<s;){let L=hr[t.charCodeAt(u++)];L>=i&&(L=L*91-l+hr[t.charCodeAt(u++)]);let A=h[L];if(A<0){let R=p[L],T=R+g[L];for(;R<T;)v[k++]=y[R++]}else v[k++]=A}return v}var wI=CI("!}.&u%}'&}*'~!6*)%&,~!J~!J~%L~y<~!R,~~%Lu~~#GD~~#|)1#%}^%}2%+#.##%##%}&%##%'#%##&%#%#'%#&#%#&#'#%%#&#%##%#)%''%&%#%#'%#%%#%%}%%%#%#&(23#%%#&-%0%('1#(##%#'##+%'*.:1}#%#6-+(%'%%#%%%}#L'2351&('%}&/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t.FLAG13=8192]="FLAG13",t[t.BRANCH_LENGTH=8064]="BRANCH_LENGTH",t[t.JUMP_TABLE=127]="JUMP_TABLE",t[t.VALUE_MASK=8191]="VALUE_MASK"})(_t||(_t={}));var xa;(function(t){t[t.AMP=38]="AMP",t[t.NUM=35]="NUM",t[t.SEMI=59]="SEMI",t[t.EQUALS=61]="EQUALS",t[t.ZERO=48]="ZERO",t[t.NINE=57]="NINE",t[t.LOWER_A=97]="LOWER_A",t[t.LOWER_X=120]="LOWER_X"})(xa||(xa={}));var Im=32,EI=21,l4=2097151,NS=2047,AI=0;function u4(t){let e=t>>>EI;return e===NS?AI:e}function _I(t){return t-xa.ZERO>>>0<=9}function c4(t){return(t|Im)-xa.LOWER_A>>>0<=5}function RI(t){return(t|Im)-xa.LOWER_A>>>0<=25}function f4(t){return t===xa.EQUALS||RI(t)||_I(t)}var kI;(function(t){t[t.EntityStart=0]="EntityStart",t[t.NumericStart=1]="NumericStart",t[t.NumericDecimal=2]="NumericDecimal",t[t.NumericHex=3]="NumericHex",t[t.NamedEntity=4]="NamedEntity"})(kI||(kI={}));var QS;(function(t){t[t.Legacy=0]="Legacy",t[t.Strict=1]="Strict",t[t.Attribute=2]="Attribute"})(QS||(QS={}));function d4(t,e,a,n){let r=(e&_t.BRANCH_LENGTH)>>7,i=e&_t.JUMP_TABLE;if(i){if(r===0)return n===i?a:-1;let l=n-i;if(l>>>0>=r)return-1;let u=t[a+l];return u===0?-1:a+r+u-1&65535}if(r===0)return-1;let o=r+1>>1,s=a+o+r;for(let l=0;l<r;l++){let c=t[a+(l>>1)]>>((l&1)<<3)&255;if(c===n){let f=a+o+l;return s+t[f]&65535}if(c>n)return-1}return-1}function LI(t,e,a){return a===1?String.fromCharCode(t[e]&_t.VALUE_MASK):a===2?String.fromCharCode(t[e+1]):String.fromCharCode(t[e+1],t[e+2])}function h4(t,e,a){let n=e+1,r=0,i=n;if(n<a&&(t.charCodeAt(n)|Im)===xa.LOWER_X)for(n+=1,i=n;n<a;){let s=t.charCodeAt(n);if(_I(s))r=r*16+(s-xa.ZERO);else if(c4(s))r=r*16+((s|Im)-xa.LOWER_A+10);else break;n+=1}else for(;n<a;){let s=t.charCodeAt(n)-xa.ZERO;if(s>>>0>9)break;r=r*10+s,n+=1}if(n===i)return 0;n<a&&t.charCodeAt(n)===xa.SEMI&&(n+=1),r>1114111&&(r=1114112);let o=n-e;return o>=NS&&(AI=o,o=NS),o<<EI|r}function p4(t,e,a){let n=wI,r=t.indexOf("&");if(r<0)return t;let i=t.length,o=0,s="",l=n[0],u=l&_t.JUMP_TABLE,c=(l&_t.BRANCH_LENGTH)>>7;do{let f=r+1,d=t.charCodeAt(f),h,p;if(d===xa.NUM){let g=h4(t,f,i);h=u4(g),e&&h>0&&t.charCodeAt(f+h-1)!==xa.SEMI&&(h=0),p=h===0?"":vI(g&l4)}else if(RI(d)){h=0,p="";let g=d-u,b;if(g>>>0<c){let y=n[1+g];b=y===0?-1:c+y&65535}else b=-1;let m=0,O=0,x=b<0?0:n[b],S=f+1;e:for(;S<i;){for(;(x&(_t.VALUE_LENGTH|_t.FLAG13))===0&&(x&_t.JUMP_TABLE)!==0;){let k=x&_t.JUMP_TABLE,L=(x&_t.BRANCH_LENGTH)>>7;if(L===0){if(t.charCodeAt(S)!==k)break e;b+=1}else{let A=t.charCodeAt(S)-k;if(A>>>0>=L)break e;let R=n[b+1+A];if(R===0)break e;b=b+L+R&65535}if(x=n[b],S+=1,S>=i)break e}if((x&(_t.VALUE_LENGTH|_t.FLAG13))===_t.FLAG13){let k=(x&_t.BRANCH_LENGTH)>>7;if(t.charCodeAt(S)!==(x&_t.JUMP_TABLE))break;S+=1;let L=k-1,A=b+1,R=0;for(;R+1<L;R+=2){let T=n[A];if(t.charCodeAt(S)!==(T&255)||(S+=1,t.charCodeAt(S)!==(T>>8&255)))break e;S+=1,A+=1}if(R<L){if(t.charCodeAt(S)!==(n[A]&255))break;S+=1}b+=1+(k>>1),x=n[b];continue}let y=x>>>14,C=t.charCodeAt(S);if(y!==0){if(C===xa.SEMI){h=S-f+1,p=y===1?String.fromCharCode(x&_t.VALUE_MASK):LI(n,b,y);break}if(!e&&(x&_t.FLAG13)===0&&(h=S-f,m=b,O=y),y===1)break}let v=d4(n,x,b+(y||1),C);if(v<0)break;b=v,x=n[b],S+=1}if(p===""){let y=x>>>14;y!==0&&!e&&(x&_t.FLAG13)===0&&(h=S-f,m=b,O=y),h>0&&(p=LI(n,m,O))}}else h=0,p="";h===0||a&&d!==xa.NUM&&t.charCodeAt(f+h-1)!==xa.SEMI&&f+h<i&&f4(t.charCodeAt(f+h))?r=f:(o<r&&(s+=t.slice(o,r)),s+=p,r=o=f+h),t.charCodeAt(r)!==xa.AMP&&(r=t.indexOf("&",r))}while(r>=0);return s+t.slice(o)}function Pm(t){return p4(t,!0,!1)}var TI;(function(t){t[t.XML=0]="XML",t[t.HTML=1]="HTML"})(TI||(TI={}));var II;(function(t){t[t.UTF8=0]="UTF8",t[t.ASCII=1]="ASCII",t[t.Extensive=2]="Extensive",t[t.Attribute=3]="Attribute",t[t.Text=4]="Text"})(II||(II={}));var g4=class{src_Any=TS.source;src_Cc=IS.source;src_Z=MS.source;src_P=rd.source;src_ZPCc=[this.src_Z,this.src_P,this.src_Cc].join("|");src_ZCc=[this.src_Z,this.src_Cc].join("|");cache={};opts={maxLength:1e4,urlAuth:!1,schema_names:[]};constructor(t={}){this.opts={...this.opts,...t}}set(t={}){return this.opts={...this.opts,...t},this.cache={},this}escapeRE(t){return t.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}nestedPairRE(t,e,a=4){let n=this.escapeRE(t),r=this.escapeRE(e),i=`(?:(?!${this.src_ZCc}|${n}|${r}).)`,o=`${n}${i}{0,1000}${r}`;for(let s=2;s<=a;s++)o=`${n}(?:${i}|${o}){0,1000}${r}`;return o}get_text_separators(){return this.cache.text_separators??=/[><\uff5c]/}get_pseudo_letter(){return this.cache.src_pseudo_letter??=new RegExp(`(?:(?!${this.get_text_separators().source}|${this.src_ZPCc})${this.src_Any})`)}get_ipv4_addr(){return this.cache.src_ip4??=new RegExp("(?:(?:25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])[.]){3}(?:25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])")}get_ipv6_addr(){let t="[0-9A-Fa-f]{1,4}",e=`(?:(?:${t}:${t})|${this.get_ipv4_addr().source})`;return this.cache.src_ip6_addr??=new RegExp(`(?:(?:${t}:){6}${e}|::(?:${t}:){5}${e}|(?:${t})?::(?:${t}:){4}${e}|(?:(?:${t}:){0,1}${t})?::(?:${t}:){3}${e}|(?:(?:${t}:){0,2}${t})?::(?:${t}:){2}${e}|(?:(?:${t}:){0,3}${t})?::${t}:${e}|(?:(?:${t}:){0,4}${t})?::${e}|(?:(?:${t}:){0,5}${t})?::${t}|(?:(?:${t}:){0,6}${t})?::)`)}get_ipv6_url_host(){return this.cache.src_ip6_host??=new RegExp(`\\[${this.get_ipv6_addr().source}\\]`)}get_ipv6_mail_host(){return this.cache.src_ipv6_mail_host??=new RegExp(`\\[IPv6:${this.get_ipv6_addr().source}\\]`)}get_auth(){return this.cache.src_auth??=new RegExp(`(?:(?:(?!${this.src_ZCc}|[@/\\[\\]()]).){1,50}@)?`)}get_port(){return this.cache.src_port??=new RegExp("(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?")}get_host_terminator(){return this.cache.src_host_terminator??=new RegExp(`(?=$|${this.get_text_separators().source}|${this.src_ZPCc})(?!${this.opts["---"]?"-(?!--)|":"-|"}_|:\\d|\\.-|\\.(?!$|${this.src_ZPCc}))`)}get_path_terminator(){return this.cache.src_path_terminator??=new RegExp(`${this.src_ZPCc}|${this.get_text_separators().source}`)}get_path(){return this.cache.src_path??=new RegExp(`(?:[/?#](?:${this.nestedPairRE("[","]")}|${this.nestedPairRE("(",")")}|${this.nestedPairRE("{","}")}|\\"(?:(?!${this.src_ZCc}|["]).){1,100}\\"|\\'(?:(?!${this.src_ZCc}|[']).){1,100}\\'|\\'(?=${this.get_pseudo_letter().source}|[-])|\\.{2,20}[:]?[a-zA-Z0-9%/&]|\\.(?!${this.src_ZCc}|[.]|$)|`+(this.opts["---"]?"\\-(?!--(?:[^-]|$))(?:-{0,19})|":"\\-{1,20}|")+`,(?!${this.src_ZCc}|$)|;(?!${this.src_ZCc}|$)|\\!{1,20}(?!${this.src_ZCc}|[!]|$)|\\?(?!${this.src_ZCc}|[?]|$)|`+this.get_path_extra().source+`[\\\\/:%@#&=_~*]|(?!${this.get_path_terminator().source}).){1,${this.opts.maxLength}}|\\/)?`)}get_mail_name(){return this.cache.src_mail_name??=new RegExp("[-!#$%&'*+/=?^_`{|}~a-zA-Z0-9](?:[-!#$%&'*+/=?^_`{|}~a-zA-Z0-9]|[.](?=[-!#$%&'*+/=?^_`{|}~a-zA-Z0-9])){0,63}")}get_xn(){return this.cache.src_xn??=new RegExp("xn--[a-z0-9\\-]{1,59}")}get_tld(){if(this.cache.tld)return this.cache.tld;let t=[...new Set(this.opts.tlds||[])].sort().reverse().join("|");return this.cache.tld=new RegExp(`${t||"$#none#$"}|${this.get_xn().source}`),this.cache.tld}get_domain_root(){return this.cache.src_domain_root??=new RegExp("(?:"+this.get_xn().source+`|${this.get_pseudo_letter().source}{1,63})`)}get_domain(){return this.cache.src_domain??=new RegExp("(?:"+this.get_xn().source+`|(?:${this.get_pseudo_letter().source})|(?:${this.get_pseudo_letter().source}(?:-|${this.get_pseudo_letter().source}){0,61}${this.get_pseudo_letter().source}))`)}get_url_host_port(){return this.cache.url_host_port??=new RegExp("(?:"+this.get_ipv6_url_host().source+`|(?:(?:(?:${this.get_domain().source})\\.){0,10}${this.get_domain().source}))`+this.get_port().source+this.get_host_terminator().source)}get_fuzzy_url_host_port(){return this.cache.fuzzy_url_host_port??=new RegExp("(?:"+(this.opts.fuzzyIP?this.get_ipv4_addr().source+"|":"")+`(?:(?:(?:${this.get_domain().source})\\.){1,10}(?:${this.get_tld().source})))`+this.get_host_terminator().source)}get_mail_host(){return this.cache.src_mail_host??=new RegExp("(?:"+this.get_ipv6_mail_host().source+`|(?:(?:(?:${this.get_domain().source})\\.){0,4}${this.get_domain().source}))`+this.get_host_terminator().source)}get_fuzzy_mail_host(){return this.cache.src_fuzzy_mail_host??=new RegExp("(?:"+this.get_ipv6_mail_host().source+`|(?:(?:(?:${this.get_domain().source})[.]){1,4}${this.get_domain_root().source}))`+this.get_host_terminator().source)}get_path_extra(){return this.cache.src_path_extra??=new RegExp("")}get_fuzzy_mail_host_search(){return this.cache.mail_fuzzy_host_search??=new RegExp(`@${this.get_fuzzy_mail_host().source}`,"ig")}get_fuzzy_link_search(){return this.cache.link_fuzzy_search??=new RegExp(`(^|(?![.:/\\-_@])(?:[$+<=>^\`|\uFF5C]|${this.src_ZPCc}))(?:(?![$+<=>^\`|\uFF5C])${this.get_fuzzy_url_host_port().source}${this.get_path().source})`,"ig")}get_http_validator(){return this.cache.http_validator??=new RegExp("\\/\\/"+(this.opts.urlAuth?this.get_auth().source:"")+this.get_url_host_port().source+this.get_path().source,"iy")}get_relative_proto_validator(){return this.cache.relative_proto_validator??=new RegExp((this.opts.urlAuth?this.get_auth().source:"")+`(?:localhost|${this.get_ipv6_url_host().source}|(?:(?:${this.get_domain().source})[.]){1,10}${this.get_domain_root().source})`+this.get_port().source+this.get_host_terminator().source+this.get_path().source,"iy")}get_mail_name_validator(){return this.cache.mail_name_validator??=new RegExp(`(?:^|${this.get_text_separators().source}|"|\\(|${this.src_ZCc})(${this.get_mail_name().source})$`)}get_mailto_validator(){return this.cache.mailto_validator??=new RegExp(`${this.get_mail_name().source}@${this.get_mail_host().source}`,"iy")}get_schema_names(){return this.cache.schema_names??=new RegExp((this.opts.schema_names||[]).map(t=>this.escapeRE(t)).join("|"))}get_schema_search(){return this.cache.schema_search??=new RegExp(`(^|(?!_)(?:[><\uFF5C]|${this.src_ZPCc}))(${this.get_schema_names().source})`,"ig")}get_schema_at_start(){return this.cache.schema_at_start??=new RegExp(`^${this.get_schema_search().source}`,"i")}},$S={validate:(t,e,a)=>{let n=a.re.get_http_validator();n.lastIndex=e;let r=n.exec(t);return r?r[0].length:0},normalize:(t,e)=>e.normalize(t)},O4={"http:":$S,"https:":$S,"ftp:":$S,"//":{validate:function(t,e,a){let n=a.re.get_relative_proto_validator();n.lastIndex=e;let r=n.exec(t);return r?e>=3&&t[e-3]===":"||e>=3&&t[e-3]==="/"?0:r[0].length:0},normalize:(t,e)=>e.normalize(t)},"mailto:":{validate:function(t,e,a){let n=a.re.get_mailto_validator();n.lastIndex=e;let r=n.exec(t);return r?r[0].length:0},normalize:(t,e)=>e.normalize(t)}},b4="a:cdefgilmnoqrstuwxz|b:abdefghijmnorstvwyz|c:acdfghiklmnoruvwxyz|d:ejkmoz|e:cegrstu|f:ijkmor|g:abdefghilmnpqrstuwy|h:kmnrtu|i:delmnoqrst|j:emop|k:eghimnprwyz|l:abcikrstuvy|m:acdeghklmnopqrstuvwxyz|n:acefgilopruz|o:m|p:aefghklmnrstwy|q:a|r:eosuw|s:abcdeghijklmnortuvxyz|t:cdfghjklmnortvwz|u:agksyz|v:aceginu|w:fs|y:et|z:amw",x4="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|\u0440\u0444";function S4(){let t=x4.split("|");return b4.split("|").forEach(e=>{let a=e.indexOf(":"),n=e.slice(0,a);for(let r of e.slice(a+1))t.push(n+r)}),t}var y4={fuzzyLink:!1,fuzzyEmail:!0,fuzzyIP:!1,"---":!1,tlds:S4(),urlAuth:!1,maxLength:1e4},PI=class{schema;index;lastIndex;raw;text;url;constructor(t,e,a,n){let r=t.slice(a,n);this.schema=e.toLowerCase(),this.index=a,this.lastIndex=n,this.raw=r,this.text=r,this.url=r}},MI=class{__opts__;__schemas__;re;constructor(t={}){let{rebuilder:e,...a}=t;this.__opts__={...y4,...a},this.__schemas__={...O4},this.re=e||new g4,this.re.set({...this.__opts__,schema_names:Object.keys(this.__schemas__)})}add(t,e=null){if(!e)delete this.__schemas__[t];else{let a={normalize:(n,r)=>r.normalize(n),...e};this.__schemas__[t]=a}return this.re.set({...this.__opts__,schema_names:Object.keys(this.__schemas__)}),this}set(t={}){return this.__opts__={...this.__opts__,...t},this.re.set({...this.__opts__,schema_names:Object.keys(this.__schemas__)}),this}test(t){if(!t.length)return!1;let e,a;for(a=this.re.get_schema_search(),a.lastIndex=0;(e=a.exec(t))!==null;)if(this.testSchemaAt(t,e[2],a.lastIndex))return!0;if(this.__opts__.fuzzyLink&&this.__schemas__["http:"]&&(a=this.re.get_fuzzy_link_search(),a.lastIndex=0,a.exec(t)!==null))return!0;if(this.__opts__.fuzzyEmail&&this.__schemas__["mailto:"]&&t.indexOf("@")>=0){let n=this.re.get_fuzzy_mail_host_search(),r=this.re.get_mail_name_validator();for(n.lastIndex=0;(e=n.exec(t))!==null;){let i=t.slice(Math.max(0,e.index-65),e.index);if(r.test(i))return!0}}return!1}testSchemaAt(t,e,a){return this.__schemas__[e.toLowerCase()]?this.__schemas__[e.toLowerCase()].validate(t.slice(0,a+this.__opts__.maxLength),a,this):0}match(t){let e=[],a=this.re.get_schema_search(),n,r,i,o,s,l,u=!1,c=!1,f=!1,d=0;if(!t.length)return null;for(a.lastIndex=0,this.__opts__.fuzzyLink&&this.__schemas__["http:"]&&(n=this.re.get_fuzzy_link_search(),n.lastIndex=0),this.__opts__.fuzzyEmail&&this.__schemas__["mailto:"]&&(r=this.re.get_fuzzy_mail_host_search(),r.lastIndex=0,i=this.re.get_mail_name_validator());;){let h=Math.max(d-1,0);if(r&&i&&!f&&(!s||s.index<d))for(r.lastIndex<h&&(r.lastIndex=h);;){let O=r.exec(t);if(!O){f=!0,s=void 0;break}let x=i.exec(t.slice(Math.max(0,O.index-65),O.index));if(x){if(s={schema:"mailto:",index:O.index-x[1].length,lastIndex:O.index+O[0].length},s.index>=d)break;r.lastIndex<h&&(r.lastIndex=h)}}if(n&&!c&&(!o||o.index<d))for(n.lastIndex<h&&(n.lastIndex=h);;){let O=n.exec(t);if(!O){c=!0,o=void 0;break}if(o={schema:"",index:O.index+O[1].length,lastIndex:O.index+O[0].length},o.index>=d)break;n.lastIndex<h&&(n.lastIndex=h)}let p=s;(!p||o&&(o.index<p.index||o.index===p.index&&o.lastIndex>p.lastIndex))&&(p=o);let g;if(!u)for(;;){if(!l){a.lastIndex<h&&(a.lastIndex=h);let S=a.exec(t);if(!S){u=!0;break}l={schema:S[2],index:S.index+S[1].length,lastIndex:S.index+S[0].length}}if(l.index<d){l=void 0;continue}if(p&&l.index>p.index)break;let O=l;l=void 0;let x=this.testSchemaAt(t,O.schema,O.lastIndex);if(x){g={schema:O.schema,index:O.index,lastIndex:O.lastIndex+x};break}}let b=g;if((!b||s&&(s.index<b.index||s.index===b.index&&s.lastIndex>b.lastIndex))&&(b=s),(!b||o&&(o.index<b.index||o.index===b.index&&o.lastIndex>b.lastIndex))&&(b=o),!b)break;b===s?s=void 0:b===o&&(o=void 0);let m=new PI(t,b.schema,b.index,b.lastIndex);m.schema?this.__schemas__[m.schema].normalize(m,this):this.normalize(m),e.push(m),d=b.lastIndex}return e.length?e:null}matchAtStart(t){if(!t.length)return null;let e=this.re.get_schema_at_start().exec(t);if(!e)return null;let a=this.testSchemaAt(t,e[2],e[0].length);if(!a)return null;let n=new PI(t,e[2],e.index+e[1].length,e.index+e[0].length+a);return this.__schemas__[n.schema].normalize(n,this),n}tlds(t,e=!1){return t=Array.isArray(t)?t:[t],e?this.__opts__.tlds=this.__opts__.tlds.concat(t):this.__opts__.tlds=t,this.re.set({...this.__opts__,schema_names:Object.keys(this.__schemas__)}),this}normalize(t){t.schema||(t.url=`http://${t.url}`),t.schema==="mailto:"&&!/^mailto:/i.test(t.url)&&(t.url=`mailto:${t.url}`)}};var v4=/^xn--/,C4=/[^\0-\x7F]/,w4=/[\x2E\u3002\uFF0E\uFF61]/g,k4={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},BS=35,Zr=Math.floor,zS=String.fromCharCode;function Do(t){throw new RangeError(k4[t])}function L4(t,e){let a=[],n=t.length;for(;n--;)a[n]=e(t[n]);return a}function NI(t,e){let a=t.split("@"),n="";a.length>1&&(n=a[0]+"@",t=a[1]),t=t.replace(w4,".");let r=t.split("."),i=L4(r,e).join(".");return n+i}function QI(t){let e=[],a=0,n=t.length;for(;a<n;){let r=t.charCodeAt(a++);if(r>=55296&&r<=56319&&a<n){let i=t.charCodeAt(a++);(i&64512)==56320?e.push(((r&1023)<<10)+(i&1023)+65536):(e.push(r),a--)}else e.push(r)}return e}var E4=t=>String.fromCodePoint(...t),A4=function(t){return t>=48&&t<58?26+(t-48):t>=65&&t<91?t-65:t>=97&&t<123?t-97:36},DI=function(t,e){return t+22+75*(t<26)-((e!=0)<<5)},$I=function(t,e,a){let n=0;for(t=a?Zr(t/700):t>>1,t+=Zr(t/e);t>BS*26>>1;n+=36)t=Zr(t/BS);return Zr(n+(BS+1)*t/(t+38))},BI=function(t){let e=[],a=t.length,n=0,r=128,i=72,o=t.lastIndexOf("-");o<0&&(o=0);for(let s=0;s<o;++s)t.charCodeAt(s)>=128&&Do("not-basic"),e.push(t.charCodeAt(s));for(let s=o>0?o+1:0;s<a;){let l=n;for(let c=1,f=36;;f+=36){s>=a&&Do("invalid-input");let d=A4(t.charCodeAt(s++));d>=36&&Do("invalid-input"),d>Zr((2147483647-n)/c)&&Do("overflow"),n+=d*c;let h=f<=i?1:f>=i+26?26:f-i;if(d<h)break;let p=36-h;c>Zr(2147483647/p)&&Do("overflow"),c*=p}let u=e.length+1;i=$I(n-l,u,l==0),Zr(n/u)>2147483647-r&&Do("overflow"),r+=Zr(n/u),n%=u,e.splice(n++,0,r)}return String.fromCodePoint(...e)},zI=function(t){let e=[];t=QI(t);let a=t.length,n=128,r=0,i=72;for(let l of t)l<128&&e.push(zS(l));let o=e.length,s=o;for(o&&e.push("-");s<a;){let l=2147483647;for(let c of t)c>=n&&c<l&&(l=c);let u=s+1;l-n>Zr((2147483647-r)/u)&&Do("overflow"),r+=(l-n)*u,n=l;for(let c of t)if(c<n&&++r>2147483647&&Do("overflow"),c===n){let f=r;for(let d=36;;d+=36){let h=d<=i?1:d>=i+26?26:d-i;if(f<h)break;let p=f-h,g=36-h;e.push(zS(DI(h+p%g,0))),f=Zr(p/g)}e.push(zS(DI(f,0))),i=$I(r,u,s===o),r=0,++s}++r,++n}return e.join("")},_4=function(t){return NI(t,function(e){return v4.test(e)?BI(e.slice(4).toLowerCase()):e})},R4=function(t){return NI(t,function(e){return C4.test(e)?"xn--"+zI(e):e})},T4={version:"2.3.1",ucs2:{decode:QI,encode:E4},decode:BI,encode:zI,toASCII:R4,toUnicode:_4};var US=T4;var UI=Object.defineProperty,JI=(t,e)=>{let a={};for(var n in t)UI(a,n,{get:t[n],enumerable:!0});return e||UI(a,Symbol.toStringTag,{value:"Module"}),a},I4=JI({arrayReplaceAt:()=>P4,asciiTrim:()=>$m,callable:()=>eP,escapeHtml:()=>No,escapeRE:()=>q4,fromCodePoint:()=>od,isMdAsciiPunct:()=>ud,isPunctChar:()=>aP,isPunctCharCode:()=>ld,isSpace:()=>dt,isValidEntityCode:()=>HS,isWhiteSpace:()=>sd,lib:()=>Z4,normalizeReference:()=>Qm,unescapeAll:()=>Tu,unescapeMd:()=>Q4});function eP(t){let e=function(...a){return Reflect.construct(t,a,new.target&&new.target!==e?new.target:t)};return Object.defineProperty(e,"name",{value:t.name}),Object.setPrototypeOf(e,t),e.prototype=t.prototype,e}function P4(t,e,a){return[].concat(t.slice(0,e),a,t.slice(e+1))}function HS(t){return!(t>=55296&&t<=57343||t>=64976&&t<=65007||(t&65535)===65535||(t&65535)===65534||t>=0&&t<=8||t===11||t>=14&&t<=31||t>=127&&t<=159||t>1114111)}function od(t){if(t>65535){t-=65536;let e=55296+(t>>10),a=56320+(t&1023);return String.fromCharCode(e,a)}return String.fromCharCode(t)}var tP=/\\([!"#$%&'()*+,\-./:;<=>?@[\\\]^_`{|}~])/g,M4=new RegExp(`${tP.source}|${/&([a-z#][a-z0-9]{1,31});/gi.source}`,"gi"),D4=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))$/i;function N4(t,e){if(e.charCodeAt(0)===35&&D4.test(e)){let n=e[1].toLowerCase()==="x"?parseInt(e.slice(2),16):parseInt(e.slice(1),10);return HS(n)?od(n):t}let a=Pm(t);return a!==t?a:t}function Q4(t){return t.indexOf("\\")<0?t:t.replace(tP,"$1")}function Tu(t){return t.indexOf("\\")<0&&t.indexOf("&")<0?t:t.replace(M4,function(e,a,n){return a||N4(e,n)})}var $4=/[&<>"]/,B4=/[&<>"]/g,z4={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;"};function U4(t){return z4[t]}function No(t){return $4.test(t)?t.replace(B4,U4):t}var X4=/[.?*+^$[\]\\(){}|-]/g;function q4(t){return t.replace(X4,"\\$&")}function dt(t){switch(t){case 9:case 32:return!0}return!1}function sd(t){if(t>=8192&&t<=8202)return!0;switch(t){case 9:case 10:case 11:case 12:case 13:case 32:case 160:case 5760:case 8239:case 8287:case 12288:return!0}return!1}function aP(t){return rd.test(t)||PS.test(t)}function ld(t){return aP(od(t))}function ud(t){switch(t){case 33:case 34:case 35:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:case 58:case 59:case 60:case 61:case 62:case 63:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 124:case 125:case 126:return!0;default:return!1}}function Qm(t){return t=t.trim().replace(/\s+/g," "),t.toLowerCase().toUpperCase()}function XI(t){return t===32||t===9||t===10||t===13}function $m(t){let e=0;for(;e<t.length&&XI(t.charCodeAt(e));e++);let a=t.length-1;for(;a>=e&&XI(t.charCodeAt(a));a--);return t.slice(e,a+1)}var Z4={mdurl:RS,ucmicro:DS};function F4(t,e,a){let n,r,i,o,s=t.posMax,l=t.pos;for(t.pos=e+1,n=1;t.pos<s;){if(i=t.src.charCodeAt(t.pos),i===93&&(n--,n===0)){r=!0;break}if(o=t.pos,t.md.inline.skipToken(t),i===91){if(o===t.pos-1)n++;else if(a)return t.pos=l,-1}}let u=-1;return r&&(u=t.pos),t.pos=l,u}function G4(t,e,a){let n,r=e,i={ok:!1,pos:0,str:""};if(t.charCodeAt(r)===60){for(r++;r<a;){if(n=t.charCodeAt(r),n===10||n===60)return i;if(n===62)return i.pos=r+1,i.str=Tu(t.slice(e+1,r)),i.ok=!0,i;if(n===92&&r+1<a){r+=2;continue}r++}return i}let o=0;for(;r<a&&(n=t.charCodeAt(r),!(n===32||n<32||n===127));){if(n===92&&r+1<a){if(t.charCodeAt(r+1)===32){r++;continue}r+=2;continue}if(n===40&&(o++,o>32))return i;if(n===41){if(o===0)break;o--}r++}return e===r||o!==0||(i.str=Tu(t.slice(e,r)),i.pos=r,i.ok=!0),i}function H4(t,e,a,n){let r,i=e,o={ok:!1,can_continue:!1,pos:0,str:"",marker:0};if(n)o.str=n.str,o.marker=n.marker;else{if(i>=a)return o;let s=t.charCodeAt(i);if(s!==34&&s!==39&&s!==40)return o;e++,i++,s===40&&(s=41),o.marker=s}for(;i<a;){if(r=t.charCodeAt(i),r===o.marker)return o.pos=i+1,o.str+=Tu(t.slice(e,i)),o.ok=!0,o;if(r===40&&o.marker===41)return o;r===92&&i+1<a&&i++,i++}return o.can_continue=!0,o.str+=Tu(t.slice(e,i)),o}var j4=JI({parseLinkDestination:()=>G4,parseLinkLabel:()=>F4,parseLinkTitle:()=>H4});function cd(t){"@babel/helpers - typeof";return cd=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},cd(t)}function V4(t,e){if(cd(t)!="object"||!t)return t;var a=t[Symbol.toPrimitive];if(a!==void 0){var n=a.call(t,e||"default");if(cd(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function Y4(t){var e=V4(t,"string");return cd(e)=="symbol"?e:e+""}function le(t,e,a){return(e=Y4(e))in t?Object.defineProperty(t,e,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[e]=a,t}var Zs=class{constructor(t,e,a){le(this,"map",null),le(this,"level",0),le(this,"children",null),le(this,"content",""),le(this,"markup",""),le(this,"info",""),le(this,"block",!1),le(this,"hidden",!1),this.type=t,this.tag=e,this.attrs=null,this.nesting=a,this.meta=null}attrIndex(t){if(!this.attrs)return-1;let e=this.attrs;for(let a=0,n=e.length;a<n;a++)if(e[a][0]===t)return a;return-1}attrPush(t){this.attrs?this.attrs.push(t):this.attrs=[t]}attrSet(t,e){let a=this.attrIndex(t),n=[t,e];a<0?this.attrPush(n):this.attrs[a]=n}attrGet(t){let e=this.attrIndex(t),a=null;return e>=0&&(a=this.attrs[e][1]),a}attrJoin(t,e){let a=this.attrIndex(t);a<0?this.attrPush([t,e]):this.attrs[a][1]=`${this.attrs[a][1]} ${e}`}},fd=class{constructor(){le(this,"__rules__",[]),le(this,"__cache__",null)}__find__(t){for(let e=0;e<this.__rules__.length;e++)if(this.__rules__[e].name===t)return e;return-1}__compile__(){let t=new Set;this.__rules__.forEach(e=>{e.enabled&&e.alt.forEach(a=>{a&&t.add(a)})}),this.__cache__=Object.create(null),this.__cache__[""]=[],this.__rules__.forEach(e=>{e.enabled&&this.__cache__[""].push(e.fn)}),t.forEach(e=>{this.__cache__[e]=[],this.__rules__.forEach(a=>{a.enabled&&a.alt.indexOf(e)>=0&&this.__cache__[e].push(a.fn)})})}at(t,e,a={}){let n=this.__find__(t);if(n===-1)throw new Error(`Parser rule not found: ${t}`);this.__rules__[n].fn=e,this.__rules__[n].alt=a.alt||[],this.__cache__=null}before(t,e,a,n={}){let r=this.__find__(t);if(r===-1)throw new Error(`Parser rule not found: ${t}`);this.__rules__.splice(r,0,{name:e,enabled:!0,fn:a,alt:n.alt||[]}),this.__cache__=null}after(t,e,a,n={}){let r=this.__find__(t);if(r===-1)throw new Error(`Parser rule not found: ${t}`);this.__rules__.splice(r+1,0,{name:e,enabled:!0,fn:a,alt:n.alt||[]}),this.__cache__=null}push(t,e,a={}){this.__rules__.push({name:t,enabled:!0,fn:e,alt:a.alt||[]}),this.__cache__=null}enable(t,e=!1){Array.isArray(t)||(t=[t]);let a=[];return t.forEach(n=>{let r=this.__find__(n);if(r<0){if(e)return;throw new Error(`Rules manager: invalid rule name ${n}`)}this.__rules__[r].enabled=!0,a.push(n)}),this.__cache__=null,a}enableOnly(t,e=!1){Array.isArray(t)||(t=[t]),this.__rules__.forEach(a=>{a.enabled=!1}),this.enable(t,e)}disable(t,e=!1){Array.isArray(t)||(t=[t]);let a=[];return t.forEach(n=>{let r=this.__find__(n);if(r<0){if(e)return;throw new Error(`Rules manager: invalid rule name ${n}`)}this.__rules__[r].enabled=!1,a.push(n)}),this.__cache__=null,a}getRules(t){return this.__cache__||this.__compile__(),this.__cache__[t]||[]}},Fr={};Fr.code_inline=function(t,e,a,n,r){let i=t[e];return`<code${r.renderAttrs(i)}>${No(i.content)}</code>`};Fr.code_block=function(t,e,a,n,r){let i=t[e];return`<pre${r.renderAttrs(i)}><code>${No(t[e].content)}</code></pre>
18
+ `};Fr.fence=function(t,e,a,n,r){let i=t[e],o=i.info?Tu(i.info).trim():"",s="",l="";if(o){let c=o.split(/(\s+)/g);s=c[0],l=c.slice(2).join("")}let u;if(a.highlight?u=a.highlight(i.content,s,l)||No(i.content):u=No(i.content),u.indexOf("<pre")===0)return u+`
19
+ `;if(o){let c=i.attrIndex("class"),f=i.attrs?i.attrs.slice():[];c<0?f.push(["class",`${a.langPrefix}${s}`]):(f[c]=[f[c][0],f[c][1]],f[c][1]+=` ${a.langPrefix}${s}`);let d={attrs:f};return`<pre><code${r.renderAttrs(d)}>${u}</code></pre>
20
+ `}return`<pre><code${r.renderAttrs(i)}>${u}</code></pre>
21
+ `};Fr.image=function(t,e,a,n,r){let i=t[e];return i.attrs[i.attrIndex("alt")][1]=r.renderInlineAsText(i.children,a,n),r.renderToken(t,e,a)};Fr.hardbreak=function(t,e,a){return a.xhtmlOut?`<br />
22
+ `:`<br>
23
+ `};Fr.softbreak=function(t,e,a){return a.breaks?a.xhtmlOut?`<br />
24
+ `:`<br>
25
+ `:`
26
+ `};Fr.text=function(t,e){return No(t[e].content)};Fr.html_block=function(t,e){return t[e].content};Fr.html_inline=function(t,e){return t[e].content};var nP=class{constructor(){le(this,"rules",Object.assign({},Fr))}renderAttrs(t){let e,a,n;if(!t.attrs)return"";for(n="",e=0,a=t.attrs.length;e<a;e++)n+=` ${No(t.attrs[e][0])}="${No(String(t.attrs[e][1]))}"`;return n}renderToken(t,e,a){let n=t[e],r="";if(n.hidden)return"";let i=e-1;for(;i>=0&&t[i].hidden&&t[i].nesting===0;)i--;n.block&&n.nesting!==-1&&i>=0&&t[i].hidden&&t[i].nesting===-1&&(r+=`
27
+ `),r+=(n.nesting===-1?"</":"<")+n.tag,r+=this.renderAttrs(n),n.nesting===0&&a.xhtmlOut&&(r+=" /");let o=!1;if(n.block&&(o=!0,n.nesting===1)){let s=e+1;for(;s<t.length&&t[s].hidden&&t[s].nesting===0;)s++;if(s<t.length){let l=t[s];(l.type==="inline"||l.hidden||l.nesting===-1&&l.tag===n.tag)&&(o=!1)}}return r+=o?`>
28
+ `:">",r}renderInline(t,e,a){let n="",r=this.rules;for(let i=0,o=t.length;i<o;i++){let s=t[i].type;typeof r[s]<"u"?n+=r[s](t,i,e,a,this):n+=this.renderToken(t,i,e)}return n}renderInlineAsText(t,e,a){let n="";for(let r=0,i=t.length;r<i;r++)switch(t[r].type){case"text":case"code_inline":n+=t[r].content;break;case"image":n+=this.renderInlineAsText(t[r].children,e,a);break;case"html_inline":case"html_block":n+=t[r].content;break;case"softbreak":case"hardbreak":n+=`
29
+ `}return n}render(t,e,a){let n="",r=this.rules;for(let i=0,o=t.length;i<o;i++){let s=t[i].type;s==="inline"?n+=this.renderInline(t[i].children,e,a):typeof r[s]<"u"?n+=r[s](t,i,e,a,this):n+=this.renderToken(t,i,e)}return n}},rP=class{constructor(t,e,a){le(this,"tokens",[]),le(this,"inlineMode",!1),le(this,"Token",Zs),this.src=t,this.env=a,this.md=e}},W4=/\r\n?/g,K4=/\0/g;function J4(t){let e;e=t.src.replace(W4,`
30
+ `),e=e.replace(K4,"\uFFFD"),t.src=e}function e9(t){let e;t.inlineMode?(e=new t.Token("inline","",0),e.content=t.src,e.map=[0,1],e.children=[],t.tokens.push(e)):t.md.block.parse(t.src,t.md,t.env,t.tokens)}function t9(t){let e=t.tokens,a=0;for(let n=0;n<e.length;n++)e[n].type!=="reference_definition"&&(n!==a&&(e[a]=e[n]),a++);e.length!==a&&(e.length=a)}function a9(t){let e=t.tokens;for(let a=0,n=e.length;a<n;a++){let r=e[a];r.type==="inline"&&t.md.inline.parse(r.content,t.md,t.env,r.children)}}function n9(t){return/^<a[>\s]/i.test(t)}function r9(t){return/^<\/a\s*>/i.test(t)}function i9(t){let e=t.tokens;if(t.md.options.linkify)for(let a=0,n=e.length;a<n;a++){if(e[a].type!=="inline"||!t.md.linkify.test(e[a].content))continue;let r=e[a].children,i=[],o=0;for(let s=r.length-1;s>=0;s--){let l=r[s];if(l.type==="link_close"){for(s--;r[s].level!==l.level&&r[s].type!=="link_open";)s--;continue}if(l.type==="html_inline"&&(n9(l.content)&&o>0&&o--,r9(l.content)&&o++),!(o>0)&&l.type==="text"&&t.md.linkify.test(l.content)){let u=l.content,c=t.md.linkify.match(u),f=[],d=l.level,h=0;c.length>0&&c[0].index===0&&s>0&&r[s-1].type==="text_special"&&(c=c.slice(1));for(let p=0;p<c.length;p++){let g=c[p].url,b=t.md.normalizeLink(g);if(!t.md.validateLink(b))continue;let m=c[p].text;c[p].schema?c[p].schema==="mailto:"&&!/^mailto:/i.test(m)?m=t.md.normalizeLinkText(`mailto:${m}`).replace(/^mailto:/,""):m=t.md.normalizeLinkText(m):m=t.md.normalizeLinkText(`http://${m}`).replace(/^http:\/\//,"");let O=c[p].index;if(O>h){let C=new t.Token("text","",0);C.content=u.slice(h,O),C.level=d,f.push(C)}let x=new t.Token("link_open","a",1);x.attrs=[["href",b]],x.level=d++,x.markup="linkify",x.info="auto",f.push(x);let S=new t.Token("text","",0);S.content=m,S.level=d,f.push(S);let y=new t.Token("link_close","a",-1);y.level=--d,y.markup="linkify",y.info="auto",f.push(y),h=c[p].lastIndex}if(h<u.length){let p=new t.Token("text","",0);p.content=u.slice(h),p.level=d,f.push(p)}i.push({index:s,nodes:f})}}if(i.length>0){let s=r.length;for(let f of i)s+=f.nodes.length-1;let l=new Array(s),u=0,c=0;i.reverse();for(let f=0;f<r.length;f++){let d=i[u];if(d?.index===f){for(let h of d.nodes)l[c++]=h;u++}else l[c++]=r[f]}e[a].children=l}}}var iP=/\+-|\.\.|\?\?\?\?|!!!!|,,|--/,o9=/\((c|tm|r)\)/i,s9=/\((c|tm|r)\)/gi,l9={c:"\xA9",r:"\xAE",tm:"\u2122"};function u9(t,e){return l9[e.toLowerCase()]}function c9(t){let e=0;for(let a=t.length-1;a>=0;a--){let n=t[a];n.type==="text"&&!e&&(n.content=n.content.replace(s9,u9)),n.type==="link_open"&&n.info==="auto"&&e--,n.type==="link_close"&&n.info==="auto"&&e++}}function f9(t){let e=0;for(let a=t.length-1;a>=0;a--){let n=t[a];n.type==="text"&&!e&&iP.test(n.content)&&(n.content=n.content.replace(/\+-/g,"\xB1").replace(/\.{2,}/g,"\u2026").replace(/([?!])…/g,"$1..").replace(/([?!]){4,}/g,"$1$1$1").replace(/,{2,}/g,",").replace(/(^|[^-])---(?=[^-]|$)/gm,"$1\u2014").replace(/(^|\s)--(?=\s|$)/gm,"$1\u2013").replace(/(^|[^-\s])--(?=[^-\s]|$)/gm,"$1\u2013")),n.type==="link_open"&&n.info==="auto"&&e--,n.type==="link_close"&&n.info==="auto"&&e++}}function d9(t){let e;if(t.md.options.typographer)for(e=t.tokens.length-1;e>=0;e--)t.tokens[e].type==="inline"&&(o9.test(t.tokens[e].content)&&c9(t.tokens[e].children),iP.test(t.tokens[e].content)&&f9(t.tokens[e].children))}var h9=/['"]/,qI=/['"]/g,ZI="\u2019",p9=1e3;function FI(t,e,a){for(;t.length>a;){let n=t.pop();n.isSingleQuote?e.single=n.prevSameQuoteIdx:e.double=n.prevSameQuoteIdx}}function Mm(t,e,a,n){t[e]||(t[e]=[]),t[e].push({pos:a,ch:n})}function m9(t,e){let a="",n=0;e.sort((r,i)=>r.pos-i.pos);for(let r=0;r<e.length;r++){let i=e[r];a+=t.slice(n,i.pos)+i.ch,n=i.pos+1}return a+t.slice(n)}function g9(t,e){let a,n=[],r={single:-1,double:-1},i={};for(let o=0;o<t.length;o++){let s=t[o],l=t[o].level;for(a=n.length-1;a>=0&&!(n[a].level<=l);a--);if(FI(n,r,a+1),s.type!=="text")continue;let u=s.content,c=0,f=u.length;e:for(;c<f;){qI.lastIndex=c;let d=qI.exec(u);if(!d)break;let h=!0,p=!0;c=d.index+1;let g=d[0]==="'",b=32;if(d.index-1>=0)b=u.charCodeAt(d.index-1);else for(a=o-1;a>=0&&!(t[a].type==="softbreak"||t[a].type==="hardbreak");a--)if(t[a].content){b=t[a].content.charCodeAt(t[a].content.length-1);break}let m=32;if(c<f)m=u.charCodeAt(c);else for(a=o+1;a<t.length&&!(t[a].type==="softbreak"||t[a].type==="hardbreak");a++)if(t[a].content){m=t[a].content.charCodeAt(0);break}let O=ud(b)||ld(b),x=ud(m)||ld(m),S=sd(b),y=sd(m);if(y?h=!1:x&&(S||O||(h=!1)),S?p=!1:O&&(y||x||(p=!1)),m===34&&d[0]==='"'&&b>=48&&b<=57&&(p=h=!1),h&&p&&(h=O,p=x),!h&&!p){g&&Mm(i,o,d.index,ZI);continue}if(p&&(a=g?r.single:r.double,a>=0&&n[a].level===l)){let C=n[a],v,k;g?(v=e.md.options.quotes[2],k=e.md.options.quotes[3]):(v=e.md.options.quotes[0],k=e.md.options.quotes[1]),Mm(i,o,d.index,k),Mm(i,C.tokenIdx,C.contentPos,v),FI(n,r,a);continue e}if(h){if(n.length>=p9)return;n.push({tokenIdx:o,contentPos:d.index,isSingleQuote:g,level:l,prevSameQuoteIdx:g?r.single:r.double}),g?r.single=n.length-1:r.double=n.length-1}else p&&g&&Mm(i,o,d.index,ZI)}}Object.keys(i).forEach(function(o){let s=Number(o);t[s].content=m9(t[s].content,i[o])})}function O9(t){if(t.md.options.typographer)for(let e=t.tokens.length-1;e>=0;e--)t.tokens[e].type!=="inline"||!h9.test(t.tokens[e].content)||g9(t.tokens[e].children,t)}function b9(t){let e,a,n=t.length;for(e=0;e<n;e++)t[e].type==="text_special"&&(t[e].type="text");for(e=a=0;e<n;e++)t[e].type==="text"&&e+1<n&&t[e+1].type==="text"?t[e+1].content=t[e].content+t[e+1].content:(e!==a&&(t[a]=t[e]),a++);e!==a&&(t.length=a)}function x9(t){let e,a,n=t.tokens,r=n.length;for(let i=0;i<r;i++){if(n[i].type!=="inline")continue;let o=n[i].children,s=o.length;for(e=0;e<s;e++)o[e].type==="text_special"&&(o[e].type="text"),o[e].children&&b9(o[e].children);for(e=a=0;e<s;e++)o[e].type==="text"&&e+1<s&&o[e+1].type==="text"?o[e+1].content=o[e].content+o[e+1].content:(e!==a&&(o[a]=o[e]),a++);e!==a&&(o.length=a)}}var XS=[["normalize",J4],["block",e9],["strip_references",t9],["inline",a9],["linkify",i9],["replacements",d9],["smartquotes",O9],["text_join",x9]],oP=class{constructor(){le(this,"ruler",new fd),le(this,"State",rP);for(let t=0;t<XS.length;t++)this.ruler.push(XS[t][0],XS[t][1])}process(t){let e=this.ruler.getRules("");for(let a=0,n=e.length;a<n;a++)e[a](t)}},sP=class{constructor(t,e,a,n){le(this,"bMarks",[]),le(this,"eMarks",[]),le(this,"tShift",[]),le(this,"sCount",[]),le(this,"bsCount",[]),le(this,"blkIndent",0),le(this,"line",0),le(this,"lineMax",0),le(this,"tight",!1),le(this,"listIndent",-1),le(this,"parentType","root"),le(this,"level",0),le(this,"Token",Zs),this.src=t,this.md=e,this.env=a,this.tokens=n;let r=this.src;for(let i=0,o=0,s=0,l=0,u=r.length,c=!1;o<u;o++){let f=r.charCodeAt(o);if(!c)if(dt(f)){s++,f===9?l+=4-l%4:l++;continue}else c=!0;(f===10||o===u-1)&&(f!==10&&o++,this.bMarks.push(i),this.eMarks.push(o),this.tShift.push(s),this.sCount.push(l),this.bsCount.push(0),c=!1,s=0,l=0,i=o+1)}this.bMarks.push(r.length),this.eMarks.push(r.length),this.tShift.push(0),this.sCount.push(0),this.bsCount.push(0),this.lineMax=this.bMarks.length-1}push(t,e,a){let n=new Zs(t,e,a);return n.block=!0,a<0&&this.level--,n.level=this.level,a>0&&this.level++,this.tokens.push(n),n}isEmpty(t){return this.bMarks[t]+this.tShift[t]>=this.eMarks[t]}skipEmptyLines(t){for(let e=this.lineMax;t<e&&!(this.bMarks[t]+this.tShift[t]<this.eMarks[t]);t++);return t}skipSpaces(t){for(let e=this.src.length;t<e&&dt(this.src.charCodeAt(t));t++);return t}skipSpacesBack(t,e){if(t<=e)return t;for(;t>e;)if(!dt(this.src.charCodeAt(--t)))return t+1;return t}skipChars(t,e){for(let a=this.src.length;t<a&&this.src.charCodeAt(t)===e;t++);return t}skipCharsBack(t,e,a){if(t<=a)return t;for(;t>a;)if(e!==this.src.charCodeAt(--t))return t+1;return t}getLines(t,e,a,n){if(t>=e)return"";let r=new Array(e-t);for(let i=0,o=t;o<e;o++,i++){let s=0,l=this.bMarks[o],u=l,c;for(o+1<e||n?c=this.eMarks[o]+1:c=this.eMarks[o];u<c&&s<a;){let f=this.src.charCodeAt(u);if(dt(f))f===9?s+=4-(s+this.bsCount[o])%4:s++;else if(u-l<this.tShift[o])s++;else break;u++}s>a?r[i]=new Array(s-a+1).join(" ")+this.src.slice(u,c):r[i]=this.src.slice(u,c)}return r.join("")}},S9=65536;function qS(t,e){let a=t.bMarks[e]+t.tShift[e],n=t.eMarks[e];return t.src.slice(a,n)}function GI(t){let e=[],a=t.length,n=0,r=t.charCodeAt(n),i=!1,o=0,s="";for(;n<a;)r===124&&(i?(s+=t.substring(o,n-1),o=n):(e.push(s+t.substring(o,n)),s="",o=n+1)),i=r===92,n++,r=t.charCodeAt(n);return e.push(s+t.substring(o)),e}function y9(t,e,a,n){if(e+2>a)return!1;let r=e+1;if(t.sCount[r]<t.blkIndent||t.sCount[r]-t.blkIndent>=4)return!1;let i=t.bMarks[r]+t.tShift[r];if(i>=t.eMarks[r])return!1;let o=t.src.charCodeAt(i++);if(o!==124&&o!==45&&o!==58||i>=t.eMarks[r])return!1;let s=t.src.charCodeAt(i++);if(s!==124&&s!==45&&s!==58&&!dt(s)||o===45&&dt(s))return!1;for(;i<t.eMarks[r];){let S=t.src.charCodeAt(i);if(S!==124&&S!==45&&S!==58&&!dt(S))return!1;i++}let l=qS(t,e+1),u=l.split("|"),c=[];for(let S=0;S<u.length;S++){let y=u[S].trim();if(!y){if(S===0||S===u.length-1)continue;return!1}if(!/^:?-+:?$/.test(y))return!1;y.charCodeAt(y.length-1)===58?c.push(y.charCodeAt(0)===58?"center":"right"):y.charCodeAt(0)===58?c.push("left"):c.push("")}if(l=qS(t,e).trim(),l.indexOf("|")===-1||t.sCount[e]-t.blkIndent>=4)return!1;u=GI(l),u.length&&u[0]===""&&u.shift(),u.length&&u[u.length-1]===""&&u.pop();let f=u.length;if(f===0||f!==c.length)return!1;if(n)return!0;let d=t.parentType;t.parentType="table";let h=t.md.block.ruler.getRules("blockquote"),p=t.push("table_open","table",1),g=[e,0];p.map=g;let b=t.push("thead_open","thead",1);b.map=[e,e+1];let m=t.push("tr_open","tr",1);m.map=[e,e+1];for(let S=0;S<u.length;S++){let y=t.push("th_open","th",1);c[S]&&(y.attrs=[["style",`text-align:${c[S]}`]]);let C=t.push("inline","",0);C.content=u[S].trim(),C.children=[],t.push("th_close","th",-1)}t.push("tr_close","tr",-1),t.push("thead_close","thead",-1);let O,x=0;for(r=e+2;r<a&&!(t.sCount[r]<t.blkIndent);r++){let S=!1;for(let C=0,v=h.length;C<v;C++)if(h[C](t,r,a,!0)){S=!0;break}if(S||(l=qS(t,r).trim(),!l)||t.sCount[r]-t.blkIndent>=4||(u=GI(l),u.length&&u[0]===""&&u.shift(),u.length&&u[u.length-1]===""&&u.pop(),x+=f-u.length,x>S9))break;if(r===e+2){let C=t.push("tbody_open","tbody",1);C.map=O=[e+2,0]}let y=t.push("tr_open","tr",1);y.map=[r,r+1];for(let C=0;C<f;C++){let v=t.push("td_open","td",1);c[C]&&(v.attrs=[["style",`text-align:${c[C]}`]]);let k=t.push("inline","",0);k.content=u[C]?u[C].trim():"",k.children=[],t.push("td_close","td",-1)}t.push("tr_close","tr",-1)}return O&&(t.push("tbody_close","tbody",-1),O[1]=r),t.push("table_close","table",-1),g[1]=r,t.parentType=d,t.line=r,!0}function v9(t,e,a){if(t.sCount[e]-t.blkIndent<4)return!1;let n=e+1,r=n;for(;n<a;){if(t.isEmpty(n)){n++;continue}if(t.sCount[n]-t.blkIndent>=4){n++,r=n;continue}break}t.line=r;let i=t.push("code_block","code",0);return i.content=t.getLines(e,r,4+t.blkIndent,!1)+`
31
+ `,i.map=[e,t.line],!0}function C9(t,e,a,n){let r=t.bMarks[e]+t.tShift[e],i=t.eMarks[e];if(t.sCount[e]-t.blkIndent>=4||r+3>i)return!1;let o=t.src.charCodeAt(r);if(o!==126&&o!==96)return!1;let s=r;r=t.skipChars(r,o);let l=r-s;if(l<3)return!1;let u=t.src.slice(s,r),c=t.src.slice(r,i);if(o===96&&c.indexOf(String.fromCharCode(o))>=0)return!1;if(n)return!0;let f=e,d=!1;for(;f++,!(f>=a||(r=s=t.bMarks[f]+t.tShift[f],i=t.eMarks[f],r<i&&t.sCount[f]<t.blkIndent));)if(t.src.charCodeAt(r)===o&&!(t.sCount[f]-t.blkIndent>=4)&&(r=t.skipChars(r,o),!(r-s<l)&&(r=t.skipSpaces(r),!(r<i)))){d=!0;break}l=t.sCount[e],t.line=f+(d?1:0);let h=t.push("fence","code",0);return h.info=c,h.content=t.getLines(e+1,f,l,!0),h.markup=u,h.map=[e,t.line],!0}function w9(t,e,a,n){let r=t.bMarks[e]+t.tShift[e],i=t.eMarks[e],o=t.lineMax;if(t.sCount[e]-t.blkIndent>=4||t.src.charCodeAt(r)!==62)return!1;if(n)return!0;let s=[],l=[],u=[],c=[],f=t.md.block.ruler.getRules("blockquote"),d=t.parentType;t.parentType="blockquote";let h=!1,p;for(p=e;p<a;p++){let x=t.sCount[p]<t.blkIndent;if(r=t.bMarks[p]+t.tShift[p],i=t.eMarks[p],r>=i)break;if(t.src.charCodeAt(r++)===62&&!x){let y=t.sCount[p]+1,C,v;t.src.charCodeAt(r)===32?(r++,y++,v=!1,C=!0):t.src.charCodeAt(r)===9?(C=!0,(t.bsCount[p]+y)%4===3?(r++,y++,v=!1):v=!0):C=!1;let k=y;for(s.push(t.bMarks[p]),t.bMarks[p]=r;r<i;){let L=t.src.charCodeAt(r);if(dt(L))L===9?k+=4-(k+t.bsCount[p]+(v?1:0))%4:k++;else break;r++}h=r>=i,l.push(t.bsCount[p]),t.bsCount[p]=t.sCount[p]+1+(C?1:0),u.push(t.sCount[p]),t.sCount[p]=k-y,c.push(t.tShift[p]),t.tShift[p]=r-t.bMarks[p];continue}if(h)break;let S=!1;for(let y=0,C=f.length;y<C;y++)if(f[y](t,p,a,!0)){S=!0;break}if(S){t.lineMax=p,t.blkIndent!==0&&(s.push(t.bMarks[p]),l.push(t.bsCount[p]),c.push(t.tShift[p]),u.push(t.sCount[p]),t.sCount[p]-=t.blkIndent);break}s.push(t.bMarks[p]),l.push(t.bsCount[p]),c.push(t.tShift[p]),u.push(t.sCount[p]),t.sCount[p]=-1}let g=t.blkIndent;t.blkIndent=0;let b=t.push("blockquote_open","blockquote",1);b.markup=">";let m=[e,0];b.map=m,t.md.block.tokenize(t,e,p);let O=t.push("blockquote_close","blockquote",-1);O.markup=">",t.lineMax=o,t.parentType=d,m[1]=t.line;for(let x=0;x<c.length;x++)t.bMarks[x+e]=s[x],t.tShift[x+e]=c[x],t.sCount[x+e]=u[x],t.bsCount[x+e]=l[x];return t.blkIndent=g,!0}function k9(t,e,a,n){let r=t.eMarks[e];if(t.sCount[e]-t.blkIndent>=4)return!1;let i=t.bMarks[e]+t.tShift[e],o=t.src.charCodeAt(i++);if(o!==42&&o!==45&&o!==95)return!1;let s=1;for(;i<r;){let u=t.src.charCodeAt(i++);if(u!==o&&!dt(u))return!1;u===o&&s++}if(s<3)return!1;if(n)return!0;t.line=e+1;let l=t.push("hr","hr",0);return l.map=[e,t.line],l.markup=Array(s+1).join(String.fromCharCode(o)),!0}function HI(t,e){let a=t.eMarks[e],n=t.bMarks[e]+t.tShift[e],r=t.src.charCodeAt(n++);return r!==42&&r!==45&&r!==43||n<a&&!dt(t.src.charCodeAt(n))?-1:n}function jI(t,e){let a=t.bMarks[e]+t.tShift[e],n=t.eMarks[e],r=a;if(r+1>=n)return-1;let i=t.src.charCodeAt(r++);if(i<48||i>57)return-1;for(;;){if(r>=n)return-1;if(i=t.src.charCodeAt(r++),i>=48&&i<=57){if(r-a>=10)return-1;continue}if(i===41||i===46)break;return-1}return r<n&&(i=t.src.charCodeAt(r),!dt(i))?-1:r}function L9(t,e){let a=t.level+2;for(let n=e+2,r=t.tokens.length-2;n<r;n++)t.tokens[n].level===a&&t.tokens[n].type==="paragraph_open"&&(t.tokens[n+2].hidden=!0,t.tokens[n].hidden=!0,n+=2)}function E9(t,e,a,n){let r,i,o,s,l=e,u=!0;if(t.sCount[l]-t.blkIndent>=4||t.listIndent>=0&&t.sCount[l]-t.listIndent>=4&&t.sCount[l]<t.blkIndent)return!1;let c=!1;n&&t.parentType==="paragraph"&&t.sCount[l]>=t.blkIndent&&(c=!0);let f,d,h;if((h=jI(t,l))>=0){if(f=!0,o=t.bMarks[l]+t.tShift[l],d=Number(t.src.slice(o,h-1)),c&&d!==1)return!1}else if((h=HI(t,l))>=0)f=!1;else return!1;if(c&&t.skipSpaces(h)>=t.eMarks[l])return!1;if(n)return!0;let p=t.src.charCodeAt(h-1),g=t.tokens.length;f?(s=t.push("ordered_list_open","ol",1),d!==1&&(s.attrs=[["start",d]])):s=t.push("bullet_list_open","ul",1);let b=[l,0];s.map=b,s.markup=String.fromCharCode(p);let m=!1,O=t.md.block.ruler.getRules("list"),x=t.parentType;for(t.parentType="list";l<a;){i=h,r=t.eMarks[l];let S=t.sCount[l]+h-(t.bMarks[l]+t.tShift[l]),y=S;for(;i<r;){let D=t.src.charCodeAt(i);if(D===9)y+=4-(y+t.bsCount[l])%4;else if(D===32)y++;else break;i++}let C=i,v;C>=r?v=1:v=y-S,v>4&&(v=1);let k=S+v;s=t.push("list_item_open","li",1),s.markup=String.fromCharCode(p);let L=[l,0];s.map=L,f&&(s.info=t.src.slice(o,h-1));let A=t.tight,R=t.tShift[l],T=t.sCount[l],U=t.listIndent;if(t.listIndent=t.blkIndent,t.blkIndent=k,t.tight=!0,t.tShift[l]=C-t.bMarks[l],t.sCount[l]=y,C>=r&&t.isEmpty(l+1)?t.line=Math.min(t.line+2,a):t.md.block.tokenize(t,l,a),(!t.tight||m)&&(u=!1),m=t.line-l>1&&t.isEmpty(t.line-1),t.blkIndent=t.listIndent,t.listIndent=U,t.tShift[l]=R,t.sCount[l]=T,t.tight=A,s=t.push("list_item_close","li",-1),s.markup=String.fromCharCode(p),l=t.line,L[1]=l,l>=a||t.sCount[l]<t.blkIndent||t.sCount[l]-t.blkIndent>=4)break;let Q=!1;for(let D=0,_=O.length;D<_;D++)if(O[D](t,l,a,!0)){Q=!0;break}if(Q)break;if(f){if(h=jI(t,l),h<0)break;o=t.bMarks[l]+t.tShift[l]}else if(h=HI(t,l),h<0)break;if(p!==t.src.charCodeAt(h-1))break}return f?s=t.push("ordered_list_close","ol",-1):s=t.push("bullet_list_close","ul",-1),s.markup=String.fromCharCode(p),b[1]=l,t.line=l,t.parentType=x,u&&L9(t,g),!0}var ZS=999;function A9(t){let e=t.length;for(let a=0;a<t.length-1;a++){let n=t.charCodeAt(a);if(n<55296||n>56319)continue;let r=t.charCodeAt(a+1);r>=56320&&r<=57343&&(e--,a++)}return e}function id(t,e){return Math.min(t.eMarks[e]+1,t.src.length)}function Dm(t,e){let a=t.lineMax;if(e>=a||t.isEmpty(e))return-1;let n=!1;if(t.sCount[e]-t.blkIndent>3&&(n=!0),t.sCount[e]<0&&(n=!0),!n){let r=t.md.block.ruler.getRules("reference"),i=t.parentType;t.parentType="reference";let o=!1;for(let s=0,l=r.length;s<l;s++)if(r[s](t,e,a,!0)){o=!0;break}if(t.parentType=i,o)return-1}return t.bMarks[e]+t.tShift[e]}function _9(t,e,a,n){let r=t.src,i=t.bMarks[e]+t.tShift[e],o=e+1;if(t.sCount[e]-t.blkIndent>=4||r.charCodeAt(i)!==91)return!1;let s=id(t,e),l="",u=-1,c=++i;for(;i<s;){if(l.length+i-c>ZS*2)return!1;let C=r.charCodeAt(i);if(C===91)return!1;if(C===93){u=i;break}if(C===92&&(C=r.charCodeAt(++i)),C===10&&i<s){let v=Dm(t,o);if(v<0)return!1;l+=r.slice(c,s),i=c=v,s=id(t,o++);continue}i++}if(u<0||r.charCodeAt(u+1)!==58||(l+=r.slice(c,u),l.length>ZS&&A9(l)>ZS))return!1;for(i=u+2;i<s;){let C=r.charCodeAt(i);if(C===10){let v=Dm(t,o);if(v<0)break;i=v,s=id(t,o++)}else if(dt(C))i++;else break}let f=t.md.helpers.parseLinkDestination(r,i,s);if(!f.ok)return!1;let d=t.md.normalizeLink(f.str);if(!t.md.validateLink(d))return!1;i=f.pos;let h=i,p=s,g=o;for(;i<s;){let C=r.charCodeAt(i);if(C===10){let v=Dm(t,o);if(v<0)break;i=v,s=id(t,o++)}else if(dt(C))i++;else break}let b=i,m=t.md.helpers.parseLinkTitle(r,i,s);for(;m.can_continue;){let C=Dm(t,o);if(C<0)break;i=C,s=id(t,o++),m=t.md.helpers.parseLinkTitle(r,i,s,m)}let O;for(b!==h&&m.ok?(O=m.str,i=m.pos):(O="",i=h,s=p,o=g);i<s&&dt(r.charCodeAt(i));)i++;if(i<s&&r.charCodeAt(i)!==10&&O)for(O="",i=h,s=p,o=g;i<s&&dt(r.charCodeAt(i));)i++;if(i<s&&r.charCodeAt(i)!==10)return!1;let x=Qm(l);if(!x)return!1;if(n)return!0;typeof t.env.references>"u"&&(t.env.references={}),typeof t.env.references[x]>"u"&&(t.env.references[x]={title:O,href:d});let S=t.push("reference_definition","",0);S.map=[e,o],S.hidden=!0;let y=Object.create(null);return y.label=x,S.meta=y,t.line=o,!0}var R9=["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"],lP=`<[A-Za-z][A-Za-z0-9\\-]*(?:\\s+[a-zA-Z_:][a-zA-Z0-9:._-]*(?:\\s*=\\s*(?:[^"'=<>\`\\x00-\\x20]+|'[^']*'|"[^"]*"))?)*\\s*\\/?>`,uP="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>";new RegExp(`^(?:${lP}|${uP}|<!---?>|<!--(?:[^-]|-[^-]|--[^>])*-->|<[?][\\s\\S]*?[?]>|<![A-Za-z][^>]*>|<!\\[CDATA\\[[\\s\\S]*?\\]\\]>)`);var cP=new RegExp(`^(?:${lP}|${uP})`),qs=[[/^<(script|pre|style|textarea)(?=(\s|>|$))/i,/<\/(script|pre|style|textarea)>/i,!0],[/^<!--/,/-->/,!0],[/^<\?/,/\?>/,!0],[/^<![A-Za-z]/,/>/,!0],[/^<!\[CDATA\[/,/\]\]>/,!0],[new RegExp(`^</?(${R9.join("|")})(?=(\\s|/?>|$))`,"i"),/^$/,!0],[new RegExp(`${cP.source}\\s*$`),/^$/,!1]];function T9(t,e,a,n){let r=t.bMarks[e]+t.tShift[e],i=t.eMarks[e];if(t.sCount[e]-t.blkIndent>=4||!t.md.options.html||t.src.charCodeAt(r)!==60)return!1;let o=t.src.slice(r,i),s=0;for(;s<qs.length&&!qs[s][0].test(o);s++);if(s===qs.length)return!1;if(n)return qs[s][2];let l=e+1,u=qs[s][1].test("");if(!qs[s][1].test(o)){for(;l<a&&!(t.sCount[l]<t.blkIndent&&(u||!t.isEmpty(l)));l++)if(r=t.bMarks[l]+t.tShift[l],i=t.eMarks[l],o=t.src.slice(r,i),qs[s][1].test(o)){o.length!==0&&l++;break}}t.line=l;let c=t.push("html_block","",0);return c.map=[e,l],c.content=t.getLines(e,l,t.blkIndent,!0),!0}function I9(t,e,a,n){let r=t.bMarks[e]+t.tShift[e],i=t.eMarks[e];if(t.sCount[e]-t.blkIndent>=4)return!1;let o=t.src.charCodeAt(r);if(o!==35||r>=i)return!1;let s=1;for(o=t.src.charCodeAt(++r);o===35&&r<i&&s<=6;)s++,o=t.src.charCodeAt(++r);if(s>6||r<i&&!dt(o))return!1;if(n)return!0;i=t.skipSpacesBack(i,r);let l=t.skipCharsBack(i,35,r);l>r&&dt(t.src.charCodeAt(l-1))&&(i=l),t.line=e+1;let u=t.push("heading_open",`h${s}`,1);u.markup="########".slice(0,s),u.map=[e,t.line];let c=t.push("inline","",0);c.content=$m(t.src.slice(r,i)),c.map=[e,t.line],c.children=[];let f=t.push("heading_close",`h${s}`,-1);return f.markup="########".slice(0,s),!0}function P9(t,e,a){let n=t.md.block.ruler.getRules("paragraph");if(t.sCount[e]-t.blkIndent>=4)return!1;let r=t.parentType;t.parentType="paragraph";let i=0,o,s=e+1;for(;s<a&&!t.isEmpty(s);s++){if(t.sCount[s]-t.blkIndent>3)continue;if(t.sCount[s]>=t.blkIndent){let h=t.bMarks[s]+t.tShift[s],p=t.eMarks[s];if(h<p&&(o=t.src.charCodeAt(h),(o===45||o===61)&&(h=t.skipChars(h,o),h=t.skipSpaces(h),h>=p))){i=o===61?1:2;break}}if(t.sCount[s]<0)continue;let d=!1;for(let h=0,p=n.length;h<p;h++)if(n[h](t,s,a,!0)){d=!0;break}if(d)break}if(!i)return t.parentType=r,!1;let l=$m(t.getLines(e,s,t.blkIndent,!1));t.line=s+1;let u=t.push("heading_open",`h${i}`,1);u.markup=String.fromCharCode(o),u.map=[e,t.line];let c=t.push("inline","",0);c.content=l,c.map=[e,t.line-1],c.children=[];let f=t.push("heading_close",`h${i}`,-1);return f.markup=String.fromCharCode(o),t.parentType=r,!0}function M9(t,e,a){let n=t.md.block.ruler.getRules("paragraph"),r=t.parentType,i=e+1;for(t.parentType="paragraph";i<a&&!t.isEmpty(i);i++){if(t.sCount[i]-t.blkIndent>3||t.sCount[i]<0)continue;let u=!1;for(let c=0,f=n.length;c<f;c++)if(n[c](t,i,a,!0)){u=!0;break}if(u)break}let o=$m(t.getLines(e,i,t.blkIndent,!1));t.line=i;let s=t.push("paragraph_open","p",1);s.map=[e,t.line];let l=t.push("inline","",0);return l.content=o,l.map=[e,t.line],l.children=[],t.push("paragraph_close","p",-1),t.parentType=r,!0}var Nm=[["table",y9,["paragraph","reference"]],["code",v9],["fence",C9,["paragraph","reference","blockquote","list"]],["blockquote",w9,["paragraph","reference","blockquote","list"]],["hr",k9,["paragraph","reference","blockquote","list"]],["list",E9,["paragraph","reference","blockquote"]],["reference",_9],["html_block",T9,["paragraph","reference","blockquote"]],["heading",I9,["paragraph","reference","blockquote"]],["lheading",P9],["paragraph",M9]],fP=class{constructor(){le(this,"ruler",new fd),le(this,"State",sP);for(let t=0;t<Nm.length;t++)this.ruler.push(Nm[t][0],Nm[t][1],{alt:(Nm[t][2]||[]).slice()})}tokenize(t,e,a){let n=this.ruler.getRules(""),r=n.length,i=t.md.options.maxNesting,o=e,s=!1;for(;o<a&&(t.line=o=t.skipEmptyLines(o),!(o>=a||t.sCount[o]<t.blkIndent));){if(t.level>=i){t.line=a;break}let l=t.line,u=!1;for(let c=0;c<r;c++)if(u=n[c](t,o,a,!1),u){if(l>=t.line)throw new Error("block rule didn't increment state.line");break}if(!u)throw new Error("none of the block rules matched");t.tight=!s,t.isEmpty(t.line-1)&&(s=!0),o=t.line,o<a&&t.isEmpty(o)&&(s=!0,o++,t.line=o)}}parse(t,e,a,n){if(!t)return;let r=new this.State(t,e,a,n);this.tokenize(r,r.line,r.lineMax)}},dP=class{constructor(t,e,a,n){le(this,"pos",0),le(this,"level",0),le(this,"pending",""),le(this,"pendingLevel",0),le(this,"cache",{}),le(this,"backticks",{}),le(this,"backticksScanned",!1),le(this,"skipHtmlSpecial",!1),le(this,"linkLevel",0),le(this,"delimiters",[]),le(this,"_prev_delimiters",[]),le(this,"Token",Zs),this.src=t,this.env=a,this.md=e,this.tokens=n,this.tokens_meta=Array(n.length),this.posMax=this.src.length}pushPending(){let t=new Zs("text","",0);return t.content=this.pending,t.level=this.pendingLevel,this.tokens.push(t),this.pending="",t}push(t,e,a){this.pending&&this.pushPending();let n=new Zs(t,e,a),r;return a<0&&(this.level--,this.delimiters=this._prev_delimiters.pop()),n.level=this.level,a>0&&(this.level++,this._prev_delimiters.push(this.delimiters),this.delimiters=[],r={delimiters:this.delimiters}),this.pendingLevel=this.level,this.tokens.push(n),this.tokens_meta.push(r),n}scanDelims(t,e){let a=this.posMax,n=this.src.charCodeAt(t),r;if(t===0)r=32;else if(t===1)r=this.src.charCodeAt(0),(r&63488)===55296&&(r=65533);else if(r=this.src.charCodeAt(t-1),(r&64512)===56320){let p=this.src.charCodeAt(t-2);r=(p&64512)===55296?65536+(p-55296<<10)+(r-56320):65533}else(r&64512)===55296&&(r=65533);let i=t;for(;i<a&&this.src.charCodeAt(i)===n;)i++;let o=i-t,s=i<a?this.src.charCodeAt(i):32;if((s&64512)===55296){let p=this.src.charCodeAt(i+1);s=(p&64512)===56320?65536+(s-55296<<10)+(p-56320):65533}else(s&64512)===56320&&(s=65533);let l=ud(r)||ld(r),u=ud(s)||ld(s),c=sd(r),f=sd(s),d=!f&&(!u||c||l),h=!c&&(!l||f||u);return{can_open:d&&(e||!h||l),can_close:h&&(e||!d||u),length:o}}};function D9(t){switch(t){case 10:case 33:case 35:case 36:case 37:case 38:case 42:case 43:case 45:case 58:case 60:case 61:case 62:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 125:case 126:return!0;default:return!1}}function N9(t,e){let a=t.pos;for(;a<t.posMax&&!D9(t.src.charCodeAt(a));)a++;return a===t.pos?!1:(e||(t.pending+=t.src.slice(t.pos,a)),t.pos=a,!0)}function Q9(t){return t>=65&&t<=90||t>=97&&t<=122}function $9(t){return t>=65&&t<=90||t>=97&&t<=122||t>=48&&t<=57||t===43||t===45||t===46}function B9(t,e){if(!t.md.options.linkify||t.linkLevel>0)return!1;let a=t.pos,n=t.posMax;if(a+3>n||t.src.charCodeAt(a)!==58||t.src.charCodeAt(a+1)!==47||t.src.charCodeAt(a+2)!==47)return!1;let r=a-Math.min(10,t.pending.length,a),i=a;for(;i>r&&$9(t.src.charCodeAt(i-1));)i--;if(i===a||!Q9(t.src.charCodeAt(i)))return!1;let o=a-i,s=t.md.linkify.matchAtStart(t.src.slice(i));if(!s)return!1;let l=s.url;if(l.length<=o)return!1;let u=l.length;for(;u>0&&l.charCodeAt(u-1)===42;)u--;u!==l.length&&(l=l.slice(0,u));let c=t.md.normalizeLink(l);if(!t.md.validateLink(c))return!1;if(!e){t.pending=t.pending.slice(0,-o);let f=t.push("link_open","a",1);f.attrs=[["href",c]],f.markup="linkify",f.info="auto";let d=t.push("text","",0);d.content=t.md.normalizeLinkText(l);let h=t.push("link_close","a",-1);h.markup="linkify",h.info="auto"}return t.pos+=l.length-o,!0}function z9(t,e){let a=t.pos;if(t.src.charCodeAt(a)!==10)return!1;let n=t.pending.length-1,r=t.posMax;if(!e)if(n>=0&&t.pending.charCodeAt(n)===32)if(n>=1&&t.pending.charCodeAt(n-1)===32){let i=n-1;for(;i>=1&&t.pending.charCodeAt(i-1)===32;)i--;t.pending=t.pending.slice(0,i),t.push("hardbreak","br",0)}else t.pending=t.pending.slice(0,-1),t.push("softbreak","br",0);else t.push("softbreak","br",0);for(a++;a<r&&dt(t.src.charCodeAt(a));)a++;return t.pos=a,!0}var jS=[];for(let t=0;t<256;t++)jS.push(0);"\\!\"#$%&'()*+,./:;<=>?@[]^_`{|}~-".split("").forEach(function(t){jS[t.charCodeAt(0)]=1});function U9(t,e){let a=t.pos,n=t.posMax;if(t.src.charCodeAt(a)!==92||(a++,a>=n))return!1;let r=t.src.charCodeAt(a);if(r===10){for(e||t.push("hardbreak","br",0),a++;a<n&&(r=t.src.charCodeAt(a),!!dt(r));)a++;return t.pos=a,!0}if(r===32){if(!e){let s=t.push("text_special","",0);s.content="\\",s.markup="\\",s.info="escape"}return t.pos=a,!0}let i=t.src[a];if(r>=55296&&r<=56319&&a+1<n){let s=t.src.charCodeAt(a+1);s>=56320&&s<=57343&&(i+=t.src[a+1],a++)}let o="\\"+i;if(!e){let s=t.push("text_special","",0);r<256&&jS[r]!==0?s.content=i:s.content=o,s.markup=o,s.info="escape"}return t.pos=a+1,!0}function X9(t){let e={},a=0;for(;(a=t.indexOf("`",a))!==-1;){let n=a;for(;t.charCodeAt(++a)===96;);e[a-n]=n}return e}function q9(t,e){var a;let n=t.pos;if(t.src.charCodeAt(n)!==96)return!1;let r=t.posMax,i=n+1;for(;i<r&&t.src.charCodeAt(i)===96;)i++;let o=t.src.slice(n,i),s=o.length;if(t.backticksScanned||(t.backticks=X9(t.src),t.backticksScanned=!0),((a=t.backticks[s])!==null&&a!==void 0?a:-1)>=i){let l=i,u;for(;(u=t.src.indexOf("`",l))!==-1&&u<r;){for(l=u+1;t.src.charCodeAt(l)===96;)l++;if(l>r)break;if(l-u===s){if(!e){let c=t.push("code_inline","code",0);c.markup=o;let f=t.src.slice(i,u).replace(/\n/g," ");f.startsWith(" ")&&f.endsWith(" ")&&/[^ ]/.test(f)&&(f=f.slice(1,-1)),c.content=f}return t.pos=l,!0}}}return e||(t.pending+=o),t.pos=i,!0}function Z9(t,e){let a=t.pos,n=t.src.charCodeAt(a);if(e||n!==126)return!1;let r=t.scanDelims(t.pos,!0),i=r.length,o=String.fromCharCode(n);if(i<2)return!1;let s;i%2&&(s=t.push("text","",0),s.content=o,i--);for(let l=0;l<i;l+=2)s=t.push("text","",0),s.content=o+o,t.delimiters.push({marker:n,length:0,token:t.tokens.length-1,end:-1,open:r.can_open,close:r.can_close});return t.pos+=r.length,!0}function VI(t,e){let a,n=[],r=e.length;for(let i=0;i<r;i++){let o=e[i];if(o.marker!==126||o.end===-1)continue;let s=e[o.end];a=t.tokens[o.token],a.type="s_open",a.tag="s",a.nesting=1,a.markup="~~",a.content="",a=t.tokens[s.token],a.type="s_close",a.tag="s",a.nesting=-1,a.markup="~~",a.content="",t.tokens[s.token-1].type==="text"&&t.tokens[s.token-1].content==="~"&&n.push(s.token-1)}for(;n.length;){let i=n.pop(),o=i+1;for(;o<t.tokens.length&&t.tokens[o].type==="s_close";)o++;o--,i!==o&&(a=t.tokens[o],t.tokens[o]=t.tokens[i],t.tokens[i]=a)}}function F9(t){let e=t.tokens_meta,a=t.tokens_meta.length;VI(t,t.delimiters);for(let r=0;r<a;r++){var n;let i=(n=e[r])===null||n===void 0?void 0:n.delimiters;i&&VI(t,i)}}var hP={tokenize:Z9,postProcess:F9};function G9(t,e){let a=t.pos,n=t.src.charCodeAt(a);if(e||n!==95&&n!==42)return!1;let r=t.scanDelims(t.pos,n===42);for(let i=0;i<r.length;i++){let o=t.push("text","",0);o.content=String.fromCharCode(n),t.delimiters.push({marker:n,length:r.length,token:t.tokens.length-1,end:-1,open:r.can_open,close:r.can_close})}return t.pos+=r.length,!0}function YI(t,e){let a=e.length;for(let n=a-1;n>=0;n--){let r=e[n];if(r.marker!==95&&r.marker!==42||r.end===-1)continue;let i=e[r.end],o=n>0&&e[n-1].end===r.end+1&&e[n-1].marker===r.marker&&e[n-1].token===r.token-1&&e[r.end+1].token===i.token+1,s=String.fromCharCode(r.marker),l=t.tokens[r.token];l.type=o?"strong_open":"em_open",l.tag=o?"strong":"em",l.nesting=1,l.markup=o?s+s:s,l.content="";let u=t.tokens[i.token];u.type=o?"strong_close":"em_close",u.tag=o?"strong":"em",u.nesting=-1,u.markup=o?s+s:s,u.content="",o&&(t.tokens[e[n-1].token].content="",t.tokens[e[r.end+1].token].content="",n--)}}function H9(t){let e=t.tokens_meta,a=t.tokens_meta.length;YI(t,t.delimiters);for(let r=0;r<a;r++){var n;let i=(n=e[r])===null||n===void 0?void 0:n.delimiters;i&&YI(t,i)}}var pP={tokenize:G9,postProcess:H9};function j9(t,e){let a,n,r,i,o="",s="",l=t.pos,u=!0;if(t.src.charCodeAt(t.pos)!==91)return!1;let c=t.pos,f=t.posMax,d=t.pos+1,h=t.md.helpers.parseLinkLabel(t,t.pos,!0);if(h<0)return!1;let p=h+1;if(p<f&&t.src.charCodeAt(p)===40){for(u=!1,p++;p<f&&(a=t.src.charCodeAt(p),!(!dt(a)&&a!==10));p++);if(p>=f)return!1;if(l=p,r=t.md.helpers.parseLinkDestination(t.src,p,t.posMax),r.ok){for(o=t.md.normalizeLink(r.str),t.md.validateLink(o)?p=r.pos:o="",l=p;p<f&&(a=t.src.charCodeAt(p),!(!dt(a)&&a!==10));p++);if(r=t.md.helpers.parseLinkTitle(t.src,p,t.posMax),p<f&&l!==p&&r.ok)for(s=r.str,p=r.pos;p<f&&(a=t.src.charCodeAt(p),!(!dt(a)&&a!==10));p++);}(p>=f||t.src.charCodeAt(p)!==41)&&(u=!0),p++}if(u){if(typeof t.env.references>"u")return!1;if(p<f&&t.src.charCodeAt(p)===91?(l=p+1,p=t.md.helpers.parseLinkLabel(t,p),p>=0?n=t.src.slice(l,p++):p=h+1):p=h+1,n||(n=t.src.slice(d,h)),n=Qm(n),i=t.env.references[n],!i)return t.pos=c,!1;o=i.href,s=i.title}if(!e){t.pos=d,t.posMax=h;let g=t.push("link_open","a",1),b=[["href",o]];if(g.attrs=b,s&&b.push(["title",s]),n){let m=Object.create(null);m.label=n,g.meta=m}t.linkLevel++,t.md.inline.tokenize(t),t.linkLevel--,t.push("link_close","a",-1)}return t.pos=p,t.posMax=f,!0}function V9(t,e){let a,n,r,i,o,s,l,u,c="",f=t.pos,d=t.posMax;if(t.src.charCodeAt(t.pos)!==33||t.src.charCodeAt(t.pos+1)!==91)return!1;let h=t.pos+2,p=t.md.helpers.parseLinkLabel(t,t.pos+1,!1);if(p<0)return!1;if(i=p+1,i<d&&t.src.charCodeAt(i)===40){for(i++;i<d&&(a=t.src.charCodeAt(i),!(!dt(a)&&a!==10));i++);if(i>=d)return!1;for(u=i,s=t.md.helpers.parseLinkDestination(t.src,i,t.posMax),s.ok&&(c=t.md.normalizeLink(s.str),t.md.validateLink(c)?i=s.pos:c=""),u=i;i<d&&(a=t.src.charCodeAt(i),!(!dt(a)&&a!==10));i++);if(s=t.md.helpers.parseLinkTitle(t.src,i,t.posMax),i<d&&u!==i&&s.ok)for(l=s.str,i=s.pos;i<d&&(a=t.src.charCodeAt(i),!(!dt(a)&&a!==10));i++);else l="";if(i>=d||t.src.charCodeAt(i)!==41)return t.pos=f,!1;i++}else{if(typeof t.env.references>"u")return!1;if(i<d&&t.src.charCodeAt(i)===91?(u=i+1,i=t.md.helpers.parseLinkLabel(t,i),i>=0?r=t.src.slice(u,i++):i=p+1):i=p+1,r||(r=t.src.slice(h,p)),r=Qm(r),o=t.env.references[r],!o)return t.pos=f,!1;c=o.href,l=o.title}if(!e){n=t.src.slice(h,p);let g=[];t.md.inline.parse(n,t.md,t.env,g);let b=t.push("image","img",0),m=[["src",c],["alt",""]];if(b.attrs=m,b.children=g,b.content=n,l&&m.push(["title",l]),r){let O=Object.create(null);O.label=r,b.meta=O}}return t.pos=i,t.posMax=d,!0}var Y9=/^([a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*)$/,W9=/^([a-zA-Z][a-zA-Z0-9+.-]{1,31}):([^<>\x00-\x20]*)$/;function K9(t,e){let a=t.pos;if(t.src.charCodeAt(a)!==60)return!1;let n=t.pos,r=t.posMax;for(;;){if(++a>=r)return!1;let o=t.src.charCodeAt(a);if(o===60)return!1;if(o===62)break}let i=t.src.slice(n+1,a);if(W9.test(i)){let o=t.md.normalizeLink(i);if(!t.md.validateLink(o))return!1;if(!e){let s=t.push("link_open","a",1);s.attrs=[["href",o]],s.markup="autolink",s.info="auto";let l=t.push("text","",0);l.content=t.md.normalizeLinkText(i);let u=t.push("link_close","a",-1);u.markup="autolink",u.info="auto"}return t.pos+=i.length+2,!0}if(Y9.test(i)){let o=t.md.normalizeLink(`mailto:${i}`);if(!t.md.validateLink(o))return!1;if(!e){let s=t.push("link_open","a",1);s.attrs=[["href",o]],s.markup="autolink",s.info="auto";let l=t.push("text","",0);l.content=t.md.normalizeLinkText(i);let u=t.push("link_close","a",-1);u.markup="autolink",u.info="auto"}return t.pos+=i.length+2,!0}return!1}function J9(t){return/^<a[>\s]/i.test(t)}function eG(t){return/^<\/a\s*>/i.test(t)}function mP(t){let e=t|32;return e>=97&&e<=122}function tG(t,e){let a=t.src,n,r;if(a.startsWith("<!--",e)){if(a.startsWith(">",e+4))return e+5;if(a.startsWith("->",e+4))return e+6;n=e+4,r="-->"}else if(a.startsWith("<![CDATA[",e))n=e+9,r="]]>";else if(a.charCodeAt(e+1)===63)n=e+2,r="?>";else if(mP(a.charCodeAt(e+2)))n=e+3,r=">";else return-1;if(t.skipHtmlSpecial)return-1;let i=a.indexOf(r,n);return i<0?(t.skipHtmlSpecial=!0,-1):i+r.length}function aG(t,e){if(!t.md.options.html)return!1;let a=t.posMax,n=t.pos;if(t.src.charCodeAt(n)!==60||n+2>=a)return!1;let r,i=t.src.charCodeAt(n+1);if(i===33||i===63)r=tG(t,n);else if(i===47||mP(i)){let o=t.src.slice(n).match(cP);r=o?n+o[0].length:-1}else return!1;if(r<0)return!1;if(!e){let o=t.push("html_inline","",0);o.content=t.src.slice(n,r),J9(o.content)&&t.linkLevel++,eG(o.content)&&t.linkLevel--}return t.pos=r,!0}var nG=/^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i,rG=/^&([a-z][a-z0-9]{1,31});/i;function iG(t,e){let a=t.pos,n=t.posMax;if(t.src.charCodeAt(a)!==38||a+1>=n)return!1;if(t.src.charCodeAt(a+1)===35){let r=t.src.slice(a).match(nG);if(r){if(!e){let i=r[1][0].toLowerCase()==="x"?parseInt(r[1].slice(1),16):parseInt(r[1],10),o=t.push("text_special","",0);o.content=HS(i)?od(i):od(65533),o.markup=r[0],o.info="entity"}return t.pos+=r[0].length,!0}}else{let r=t.src.slice(a).match(rG);if(r){let i=Pm(r[0]);if(i!==r[0]){if(!e){let o=t.push("text_special","",0);o.content=i,o.markup=r[0],o.info="entity"}return t.pos+=r[0].length,!0}}}return!1}function WI(t){let e={},a=t.length;if(!a)return;let n=0,r=-2,i=[];for(let o=0;o<a;o++){let s=t[o];if(i.push(0),(t[n].marker!==s.marker||r!==s.token-1)&&(n=o),r=s.token,s.length=s.length||0,!s.close)continue;e.hasOwnProperty(s.marker)||(e[s.marker]=[-1,-1,-1,-1,-1,-1]);let l=e[s.marker][(s.open?3:0)+s.length%3],u=n-i[n]-1,c=u;for(;u>l;u-=i[u]+1){let f=t[u];if(f.marker===s.marker&&f.open&&f.end<0){let d=!1;if((f.close||s.open)&&(f.length+s.length)%3===0&&(f.length%3!==0||s.length%3!==0)&&(d=!0),!d){let h=u>0&&!t[u-1].open?i[u-1]+1:0;i[o]=o-u+h,i[u]=h,s.open=!1,f.end=o,f.close=!1,c=-1,r=-2;break}}}c!==-1&&(e[s.marker][(s.open?3:0)+(s.length||0)%3]=c)}}function oG(t){let e=t.tokens_meta,a=t.tokens_meta.length;WI(t.delimiters);for(let r=0;r<a;r++){var n;let i=(n=e[r])===null||n===void 0?void 0:n.delimiters;i&&WI(i)}}function sG(t){let e,a,n=0,r=t.tokens,i=t.tokens.length;for(e=a=0;e<i;e++)r[e].nesting<0&&n--,r[e].level=n,r[e].nesting>0&&n++,r[e].type==="text"&&e+1<i&&r[e+1].type==="text"?r[e+1].content=r[e].content+r[e+1].content:(e!==a&&(r[a]=r[e]),a++);e!==a&&(r.length=a)}var FS=[["text",N9],["linkify",B9],["newline",z9],["escape",U9],["backticks",q9],["strikethrough",hP.tokenize],["emphasis",pP.tokenize],["link",j9],["image",V9],["autolink",K9],["html_inline",aG],["entity",iG]],GS=[["balance_pairs",oG],["strikethrough",hP.postProcess],["emphasis",pP.postProcess],["fragments_join",sG]],gP=class{constructor(){le(this,"ruler",new fd),le(this,"ruler2",new fd),le(this,"State",dP);for(let t=0;t<FS.length;t++)this.ruler.push(FS[t][0],FS[t][1]);for(let t=0;t<GS.length;t++)this.ruler2.push(GS[t][0],GS[t][1])}skipToken(t){let e=t.pos,a=this.ruler.getRules(""),n=a.length,r=t.md.options.maxNesting,i=t.cache;if(typeof i[e]<"u"){t.pos=i[e];return}let o=!1;if(t.level<r){for(let s=0;s<n;s++)if(t.level++,o=a[s](t,!0),t.level--,o){if(e>=t.pos)throw new Error("inline rule didn't increment state.pos");break}}else t.pos=t.posMax;o||t.pos++,i[e]=t.pos}tokenize(t){let e=this.ruler.getRules(""),a=e.length,n=t.posMax,r=t.md.options.maxNesting;for(;t.pos<n;){let i=t.pos,o=!1;if(t.level<r){for(let s=0;s<a;s++)if(o=e[s](t,!1),o){if(i>=t.pos)throw new Error("inline rule didn't increment state.pos");break}}if(o){if(t.pos>=n)break;continue}t.pending+=t.src[t.pos++]}t.pending&&t.pushPending()}parse(t,e,a,n){let r=new this.State(t,e,a,n);this.tokenize(r);let i=this.ruler2.getRules(""),o=i.length;for(let s=0;s<o;s++)i[s](r)}},lG={default:{options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"\u201C\u201D\u2018\u2019",highlight:null,maxNesting:100},components:{core:{},block:{},inline:{}}},zero:{options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"\u201C\u201D\u2018\u2019",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","strip_references","inline","text_join"]},block:{rules:["paragraph"]},inline:{rules:["text"],rules2:["balance_pairs","fragments_join"]}}},commonmark:{options:{html:!0,xhtmlOut:!0,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"\u201C\u201D\u2018\u2019",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","strip_references","inline","text_join"]},block:{rules:["blockquote","code","fence","heading","hr","html_block","lheading","list","reference","paragraph"]},inline:{rules:["autolink","backticks","emphasis","entity","escape","html_inline","image","link","newline","text"],rules2:["balance_pairs","emphasis","fragments_join"]}}}},uG=/^(vbscript|javascript|file|data):/,cG=/^data:image\/(gif|png|jpeg|webp);/,KI=["http:","https:","mailto:"],Gr=class{validateLink(t){let e=t.trim().toLowerCase();return uG.test(e)?cG.test(e):!0}normalizeLink(t){let e=nd(t,!0);if(e.hostname&&(!e.protocol||KI.indexOf(e.protocol)>=0))try{e.hostname=US.toASCII(e.hostname)}catch{}return e.auth&&(e.auth=Mo(e.auth)),e.hostname&&(e.hostname=Mo(e.hostname)),e.pathname&&(e.pathname=Mo(e.pathname)),e.search&&(e.search=Mo(e.search)),e.hash&&(e.hash=Mo(e.hash)),Ru(e)}normalizeLinkText(t){let e=nd(t,!0);if(e.hostname&&(!e.protocol||KI.indexOf(e.protocol)>=0))try{e.hostname=US.toUnicode(e.hostname)}catch{}return ad(Ru(e),ad.defaultChars+"%")}constructor(...t){le(this,"inline",new gP),le(this,"block",new fP),le(this,"core",new oP),le(this,"renderer",new nP),le(this,"linkify",new MI),le(this,"utils",I4),le(this,"helpers",Object.assign({},j4));let[e,a]=t;typeof e=="string"?(this.configure(e),a&&this.set(a)):(this.configure("default"),this.set(e||{}))}set(t){return Object.assign(this.options,t),this}configure(t){let e;if(typeof t=="string"){let r=t;if(e=lG[r],!e)throw new Error(`Wrong 'markdown-it' preset "${r}", check name`)}else e=t;if(!e)throw new Error("Wrong `markdown-it` preset, can't be empty");e.options&&(this.options={...e.options});let a=e.components;if(a){var n;["core","block","inline"].forEach(i=>{var o;let s=(o=a[i])===null||o===void 0?void 0:o.rules;s&&this[i].ruler.enableOnly(s)});let r=(n=a.inline)===null||n===void 0?void 0:n.rules2;r&&this.inline.ruler2.enableOnly(r)}return this}enable(t,e=!1){let a=[];Array.isArray(t)||(t=[t]),["core","block","inline"].forEach(r=>{a=a.concat(this[r].ruler.enable(t,!0))}),a=a.concat(this.inline.ruler2.enable(t,!0));let n=t.filter(r=>a.indexOf(r)<0);if(n.length&&!e)throw new Error(`MarkdownIt. Failed to enable unknown rule(s): ${n}`);return this}disable(t,e=!1){let a=[];Array.isArray(t)||(t=[t]),["core","block","inline"].forEach(r=>{a=a.concat(this[r].ruler.disable(t,!0))}),a=a.concat(this.inline.ruler2.disable(t,!0));let n=t.filter(r=>a.indexOf(r)<0);if(n.length&&!e)throw new Error(`MarkdownIt. Failed to disable unknown rule(s): ${n}`);return this}use(t,...e){return t.apply(t,[this,...e]),this}parse(t,e){if(typeof t!="string")throw new Error("Input data should be a String");let a=new this.core.State(t,this,e);return this.core.process(a),a.tokens}render(t,e={}){return this.renderer.render(this.parse(t,e),this.options,e)}parseInline(t,e){let a=new this.core.State(t,this,e);return a.inlineMode=!0,this.core.process(a),a.tokens}renderInline(t,e={}){return this.renderer.render(this.parseInline(t,e),this.options,e)}};le(Gr,"Token",Zs);le(Gr,"Ruler",fd);le(Gr,"Renderer",nP);le(Gr,"ParserCore",oP);le(Gr,"StateCore",rP);le(Gr,"ParserBlock",fP);le(Gr,"StateBlock",sP);le(Gr,"ParserInline",gP);le(Gr,"StateInline",dP);var OP=eP(Gr);var L2=M(k2(),1);var iy=L2.default;var SH=(t,e)=>{if(e&&iy.getLanguage(e))try{return iy.highlight(t,{language:e,ignoreIllegals:!0}).value}catch{}return""};function E2(t){let e=new OP({html:!1,linkify:!0,breaks:t,highlight:SH}),a=e.renderer.rules.link_open??((n,r,i,o,s)=>s.renderToken(n,r,i));return e.renderer.rules.link_open=(n,r,i,o,s)=>(n[r]?.attrSet("target","_blank"),n[r]?.attrSet("rel","noopener noreferrer"),a(n,r,i,o,s)),e}var yH=E2(!0),vH=E2(!1),A2=t=>yH.render(t),Wm=t=>vH.render(t);var _2=M(ae(),1);function Hs({source:t,render:e=A2,className:a=""}){let n=(0,Nu.useMemo)(()=>e(t),[t,e]),r=(0,Nu.useRef)(null);return(0,Nu.useEffect)(()=>{let i=r.current;if(!i)return;let o=[];for(let s of i.querySelectorAll("pre")){if(s.dataset.mrCopy==="1")continue;let l=s.textContent??"";s.dataset.mrCopy="1";let u=document.createElement("button");u.type="button",u.textContent="copy",u.className="absolute top-1.5 right-1.5 inline-flex h-6 items-center gap-1 rounded-md px-2 text-xs font-medium text-muted-foreground transition-colors hover:bg-muted hover:text-foreground",u.addEventListener("click",()=>{(async()=>{try{await navigator.clipboard.writeText(l),u.textContent="copied",window.setTimeout(()=>{u.textContent="copy"},1200)}catch{}})()}),s.appendChild(u),o.push({pre:s,button:u})}return()=>{for(let{pre:s,button:l}of o)l.remove(),delete s.dataset.mrCopy}},[n]),(0,_2.jsx)("div",{ref:r,className:`mr-markdown ${a}`,dangerouslySetInnerHTML:{__html:n}})}var $o=M(ye(),1);var Qu=M(ae(),1);function Km({text:t,label:e="copy",size:a="xs",className:n=""}){let[r,i]=(0,$o.useState)(!1),o=(0,$o.useRef)(null);(0,$o.useEffect)(()=>()=>{o.current!==null&&window.clearTimeout(o.current)},[]);let s=(0,$o.useCallback)(()=>{(async()=>{try{await navigator.clipboard.writeText(t),i(!0),o.current!==null&&window.clearTimeout(o.current),o.current=window.setTimeout(()=>i(!1),1200)}catch{}})()},[t]);return a!=="xs"?(0,Qu.jsx)(Qe,{variant:"ghost",size:a,onClick:s,title:e,className:n,children:(0,Qu.jsx)(pe,{name:r?"check":"copy",className:"size-3.5"})}):(0,Qu.jsxs)(Qe,{variant:"ghost",size:"xs",onClick:s,title:e,className:n,children:[(0,Qu.jsx)(pe,{name:r?"check":"copy",className:"size-3.5"}),r?"copied":e]})}var $e=M(ae(),1),CH=["Tighten the spacing and the type scale.","Add a loading state and an error state.","Make the primary action the obvious one.","Rewrite SPEC.md so it only holds what the screen cannot show."];function wH({message:t}){return(0,$e.jsxs)("details",{open:!t.done,className:"rounded-lg border border-border bg-muted/40 text-xs",children:[(0,$e.jsxs)("summary",{className:"flex cursor-pointer items-center gap-1.5 px-2.5 py-1.5 font-mono text-muted-foreground",children:[(0,$e.jsx)(pe,{name:"terminal",className:"size-3.5"}),"agent log",!t.done&&(0,$e.jsx)(pe,{name:"loader",className:"size-3 animate-spin"})]}),(0,$e.jsx)("pre",{className:"mr-scroll max-h-56 overflow-auto px-2.5 pb-2 font-mono whitespace-pre-wrap text-muted-foreground",children:t.text})]})}function kH({message:t}){return t.role==="log"?(0,$e.jsx)(wH,{message:t}):t.role==="system"?(0,$e.jsx)("p",{className:Ce("text-center font-mono text-[11px]",t.tone==="error"?"text-destructive":"text-muted-foreground"),children:t.text}):t.role==="user"?(0,$e.jsxs)("div",{className:"flex flex-col items-end gap-1",children:[(0,$e.jsx)("div",{className:"max-w-[92%] rounded-2xl rounded-tr-sm bg-primary px-3 py-2 text-primary-foreground",children:(0,$e.jsx)("p",{className:"text-sm break-words whitespace-pre-wrap",children:t.text})}),(0,$e.jsx)("span",{className:"text-[11px] text-muted-foreground",children:Ds(t.at)})]}):(0,$e.jsxs)("div",{className:"flex flex-col items-start gap-1",children:[(0,$e.jsxs)("div",{className:"max-w-[95%] rounded-2xl rounded-tl-sm border border-border bg-card px-3 py-2 shadow-xs",children:[(0,$e.jsx)(Hs,{source:t.text,className:Xs}),!t.done&&(0,$e.jsx)("span",{className:"mt-1 inline-block h-3.5 w-1.5 animate-pulse rounded-sm bg-primary align-middle"})]}),(0,$e.jsxs)("div",{className:"flex items-center gap-0.5 text-[11px] text-muted-foreground",children:[(0,$e.jsx)("span",{children:Ds(t.at)}),t.done&&(0,$e.jsx)(Km,{text:t.text,size:"icon-xs",label:"Copy reply"})]})]})}function R2({room:t,chat:e,agentLabel:a}){let n=(0,md.useRef)(null),r=(0,md.useRef)(!0);return(0,md.useEffect)(()=>{let i=n.current;i&&r.current&&(i.scrollTop=i.scrollHeight)},[e.messages]),(0,$e.jsxs)("section",{className:"flex min-h-0 min-w-0 flex-col bg-card",children:[(0,$e.jsxs)("header",{className:"flex items-center gap-2 border-b border-border px-3 py-2",children:[(0,$e.jsx)("span",{className:"text-sm font-medium",children:"Chat"}),e.running&&(0,$e.jsx)(pe,{name:"loader",className:"size-3.5 animate-spin text-primary"}),(0,$e.jsx)("span",{className:"ml-auto truncate font-mono text-[11px] text-muted-foreground",title:a,children:a})]}),(0,$e.jsxs)("div",{ref:n,onScroll:i=>{let o=i.currentTarget;r.current=o.scrollHeight-o.scrollTop-o.clientHeight<40},className:"mr-scroll flex flex-1 flex-col gap-3 overflow-y-auto p-3",children:[e.messages.length===0&&(0,$e.jsxs)("div",{className:"flex flex-1 flex-col items-center justify-center gap-3 text-center",children:[(0,$e.jsx)("div",{className:"rounded-full bg-primary/10 p-3 text-primary",children:(0,$e.jsx)(pe,{name:"sparkles",className:"size-5"})}),(0,$e.jsx)("p",{className:"max-w-[15rem] text-sm text-muted-foreground",children:"A room is one screen. Ask for the change; watch the artifact move."}),(0,$e.jsx)("div",{className:"flex flex-wrap justify-center gap-1.5",children:CH.map(i=>(0,$e.jsx)("button",{type:"button",onClick:()=>{e.submit(i)},className:"max-w-full rounded-md border border-border px-2 py-1 text-left text-xs text-muted-foreground transition-colors hover:bg-muted hover:text-foreground",children:i},i))})]}),e.messages.map(i=>(0,$e.jsx)(kH,{message:i},i.id))]}),(0,$e.jsx)(hI,{room:t,running:e.running,queue:e.queue,onSubmit:i=>{e.submit(i)},onRemoveQueued:e.removeQueued},t)]})}var St=M(ye(),1);var Ol=M(ye(),1);var sy=[],M2=[];(()=>{let t="lc,34,7n,7,7b,19,,,,2,,2,,,20,b,1c,l,g,,2t,7,2,6,2,2,,4,z,,u,r,2j,b,1m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,2,,,1c,7,3,5,n,,44l,,6,f,8ug,i,1xc,5,1n,7,t4,,,1j,7,4,29,,b,2,f57,2,3mp,1a,2,n,f2,5,3,6,8,8,2,7,u,4,44,3,1iz,1j,4,1e,8,,e,,m,5,,f,11s,7,,h,2,7,,2,,5,2s,,4g,7,af,,1p,4,e4,4,72,2,6r,,2,,7,2,5,,d6,7,31,7,240,5".split(",").map(e=>e?parseInt(e,36):1);for(let e=0,a=0;e<t.length;e++)(e%2?M2:sy).push(a=a+t[e])})();function LH(t){if(t<768)return!1;for(let e=0,a=sy.length;;){let n=e+a>>1;if(t<sy[n])a=n;else if(t>=M2[n])e=n+1;else return!0;if(e==a)return!1}}function T2(t){return t>=127462&&t<=127487}var I2=8205;function D2(t,e,a=!0,n=!0){return(a?N2:EH)(t,e,n)}function N2(t,e,a){if(e==t.length)return e;e&&Q2(t.charCodeAt(e))&&$2(t.charCodeAt(e-1))&&e--;let n=oy(t,e);for(e+=P2(n);e<t.length;){let r=oy(t,e);if(n==I2||r==I2||a&&LH(r))e+=P2(r),n=r;else if(T2(r)){let i=0,o=e-2;for(;o>=0&&T2(oy(t,o));)i++,o-=2;if(i%2==0)break;e+=2}else break}return e}function EH(t,e,a){for(;e>1;){let n=N2(t,e-2,a);if(n<e)return n;e--}return 0}function oy(t,e){let a=t.charCodeAt(e);if(!$2(a)||e+1==t.length)return a;let n=t.charCodeAt(e+1);return Q2(n)?(a-55296<<10)+(n-56320)+65536:a}function Q2(t){return t>=56320&&t<57344}function $2(t){return t>=55296&&t<56320}function P2(t){return t<65536?1:2}var Me=class t{lineAt(e){if(e<0||e>this.length)throw new RangeError(`Invalid position ${e} in document of length ${this.length}`);return this.lineInner(e,!1,1,0)}line(e){if(e<1||e>this.lines)throw new RangeError(`Invalid line number ${e} in ${this.lines}-line document`);return this.lineInner(e,!0,1,0)}replace(e,a,n){[e,a]=Xu(this,e,a);let r=[];return this.decompose(0,e,r,2),n.length&&n.decompose(0,n.length,r,3),this.decompose(a,this.length,r,1),Bu.from(r,this.length-(a-e)+n.length)}append(e){return this.replace(this.length,this.length,e)}slice(e,a=this.length){[e,a]=Xu(this,e,a);let n=[];return this.decompose(e,a,n,0),Bu.from(n,a-e)}eq(e){if(e==this)return!0;if(e.length!=this.length||e.lines!=this.lines)return!1;let a=this.scanIdentical(e,1),n=this.length-this.scanIdentical(e,-1),r=new Ws(this),i=new Ws(e);for(let o=a,s=a;;){if(r.next(o),i.next(o),o=0,r.lineBreak!=i.lineBreak||r.done!=i.done||r.value!=i.value)return!1;if(s+=r.value.length,r.done||s>=n)return!0}}iter(e=1){return new Ws(this,e)}iterRange(e,a=this.length){return new ng(this,e,a)}iterLines(e,a){let n;if(e==null)n=this.iter();else{a==null&&(a=this.lines+1);let r=this.line(e).from;n=this.iterRange(r,Math.max(r,a==this.lines+1?this.length:a<=1?0:this.line(a-1).to))}return new rg(n)}toString(){return this.sliceString(0)}toJSON(){let e=[];return this.flatten(e),e}constructor(){}static of(e){if(e.length==0)throw new RangeError("A document must have at least one line");return e.length==1&&!e[0]?t.empty:e.length<=32?new gn(e):Bu.from(gn.split(e,[]))}},gn=class t extends Me{constructor(e,a=AH(e)){super(),this.text=e,this.length=a}get lines(){return this.text.length}get children(){return null}lineInner(e,a,n,r){for(let i=0;;i++){let o=this.text[i],s=r+o.length;if((a?n:s)>=e)return new uy(r,s,n,o);r=s+1,n++}}decompose(e,a,n,r){let i=e<=0&&a>=this.length?this:new t(B2(this.text,e,a),Math.min(a,this.length)-Math.max(0,e));if(r&1){let o=n.pop(),s=ag(i.text,o.text.slice(),0,i.length);if(s.length<=32)n.push(new t(s,o.length+i.length));else{let l=s.length>>1;n.push(new t(s.slice(0,l)),new t(s.slice(l)))}}else n.push(i)}replace(e,a,n){if(!(n instanceof t))return super.replace(e,a,n);[e,a]=Xu(this,e,a);let r=ag(this.text,ag(n.text,B2(this.text,0,e)),a),i=this.length+n.length-(a-e);return r.length<=32?new t(r,i):Bu.from(t.split(r,[]),i)}sliceString(e,a=this.length,n=`
32
+ `){[e,a]=Xu(this,e,a);let r="";for(let i=0,o=0;i<=a&&o<this.text.length;o++){let s=this.text[o],l=i+s.length;i>e&&o&&(r+=n),e<l&&a>i&&(r+=s.slice(Math.max(0,e-i),a-i)),i=l+1}return r}flatten(e){for(let a of this.text)e.push(a)}scanIdentical(){return 0}static split(e,a){let n=[],r=-1;for(let i of e)n.push(i),r+=i.length+1,n.length==32&&(a.push(new t(n,r)),n=[],r=-1);return r>-1&&a.push(new t(n,r)),a}},Bu=class t extends Me{constructor(e,a){super(),this.children=e,this.length=a,this.lines=0;for(let n of e)this.lines+=n.lines}lineInner(e,a,n,r){for(let i=0;;i++){let o=this.children[i],s=r+o.length,l=n+o.lines-1;if((a?l:s)>=e)return o.lineInner(e,a,n,r);r=s+1,n=l+1}}decompose(e,a,n,r){for(let i=0,o=0;o<=a&&i<this.children.length;i++){let s=this.children[i],l=o+s.length;if(e<=l&&a>=o){let u=r&((o<=e?1:0)|(l>=a?2:0));o>=e&&l<=a&&!u?n.push(s):s.decompose(e-o,a-o,n,u)}o=l+1}}replace(e,a,n){if([e,a]=Xu(this,e,a),n.lines<this.lines)for(let r=0,i=0;r<this.children.length;r++){let o=this.children[r],s=i+o.length;if(e>=i&&a<=s){let l=o.replace(e-i,a-i,n),u=this.lines-o.lines+l.lines;if(l.lines<u>>4&&l.lines>u>>6){let c=this.children.slice();return c[r]=l,new t(c,this.length-(a-e)+n.length)}return super.replace(i,s,l)}i=s+1}return super.replace(e,a,n)}sliceString(e,a=this.length,n=`
33
+ `){[e,a]=Xu(this,e,a);let r="";for(let i=0,o=0;i<this.children.length&&o<=a;i++){let s=this.children[i],l=o+s.length;o>e&&i&&(r+=n),e<l&&a>o&&(r+=s.sliceString(e-o,a-o,n)),o=l+1}return r}flatten(e){for(let a of this.children)a.flatten(e)}scanIdentical(e,a){if(!(e instanceof t))return 0;let n=0,[r,i,o,s]=a>0?[0,0,this.children.length,e.children.length]:[this.children.length-1,e.children.length-1,-1,-1];for(;;r+=a,i+=a){if(r==o||i==s)return n;let l=this.children[r],u=e.children[i];if(l!=u)return n+l.scanIdentical(u,a);n+=l.length+1}}static from(e,a=e.reduce((n,r)=>n+r.length+1,-1)){let n=0;for(let h of e)n+=h.lines;if(n<32){let h=[];for(let p of e)p.flatten(h);return new gn(h,a)}let r=Math.max(32,n>>5),i=r<<1,o=r>>1,s=[],l=0,u=-1,c=[];function f(h){let p;if(h.lines>i&&h instanceof t)for(let g of h.children)f(g);else h.lines>o&&(l>o||!l)?(d(),s.push(h)):h instanceof gn&&l&&(p=c[c.length-1])instanceof gn&&h.lines+p.lines<=32?(l+=h.lines,u+=h.length+1,c[c.length-1]=new gn(p.text.concat(h.text),p.length+1+h.length)):(l+h.lines>r&&d(),l+=h.lines,u+=h.length+1,c.push(h))}function d(){l!=0&&(s.push(c.length==1?c[0]:t.from(c,u)),u=-1,l=c.length=0)}for(let h of e)f(h);return d(),s.length==1?s[0]:new t(s,a)}};Me.empty=new gn([""],0);function AH(t){let e=-1;for(let a of t)e+=a.length+1;return e}function ag(t,e,a=0,n=1e9){for(let r=0,i=0,o=!0;i<t.length&&r<=n;i++){let s=t[i],l=r+s.length;l>=a&&(l>n&&(s=s.slice(0,n-r)),r<a&&(s=s.slice(a-r)),o?(e[e.length-1]+=s,o=!1):e.push(s)),r=l+1}return e}function B2(t,e,a){return ag(t,[""],e,a)}var Ws=class{constructor(e,a=1){this.dir=a,this.done=!1,this.lineBreak=!1,this.value="",this.nodes=[e],this.offsets=[a>0?1:(e instanceof gn?e.text.length:e.children.length)<<1]}nextInner(e,a){for(this.done=this.lineBreak=!1;;){let n=this.nodes.length-1,r=this.nodes[n],i=this.offsets[n],o=i>>1,s=r instanceof gn?r.text.length:r.children.length;if(o==(a>0?s:0)){if(n==0)return this.done=!0,this.value="",this;a>0&&this.offsets[n-1]++,this.nodes.pop(),this.offsets.pop()}else if((i&1)==(a>0?0:1)){if(this.offsets[n]+=a,e==0)return this.lineBreak=!0,this.value=`
34
+ `,this;e--}else if(r instanceof gn){let l=r.text[o+(a<0?-1:0)];if(this.offsets[n]+=a,l.length>Math.max(0,e))return this.value=e==0?l:a>0?l.slice(e):l.slice(0,l.length-e),this;e-=l.length}else{let l=r.children[o+(a<0?-1:0)];e>l.length?(e-=l.length,this.offsets[n]+=a):(a<0&&this.offsets[n]--,this.nodes.push(l),this.offsets.push(a>0?1:(l instanceof gn?l.text.length:l.children.length)<<1))}}}next(e=0){return e<0&&(this.nextInner(-e,-this.dir),e=this.value.length),this.nextInner(e,this.dir)}},ng=class{constructor(e,a,n){this.value="",this.done=!1,this.cursor=new Ws(e,a>n?-1:1),this.pos=a>n?e.length:0,this.from=Math.min(a,n),this.to=Math.max(a,n)}nextInner(e,a){if(a<0?this.pos<=this.from:this.pos>=this.to)return this.value="",this.done=!0,this;e+=Math.max(0,a<0?this.pos-this.to:this.from-this.pos);let n=a<0?this.pos-this.from:this.to-this.pos;e>n&&(e=n),n-=e;let{value:r}=this.cursor.next(e);return this.pos+=(r.length+e)*a,this.value=r.length<=n?r:a<0?r.slice(r.length-n):r.slice(0,n),this.done=!this.value,this}next(e=0){return e<0?e=Math.max(e,this.from-this.pos):e>0&&(e=Math.min(e,this.to-this.pos)),this.nextInner(e,this.cursor.dir)}get lineBreak(){return this.cursor.lineBreak&&this.value!=""}},rg=class{constructor(e){this.inner=e,this.afterBreak=!0,this.value="",this.done=!1}next(e=0){let{done:a,lineBreak:n,value:r}=this.inner.next(e);return a&&this.afterBreak?(this.value="",this.afterBreak=!1):a?(this.done=!0,this.value=""):n?this.afterBreak?this.value="":(this.afterBreak=!0,this.next()):(this.value=r,this.afterBreak=!1),this}get lineBreak(){return!1}};typeof Symbol<"u"&&(Me.prototype[Symbol.iterator]=function(){return this.iter()},Ws.prototype[Symbol.iterator]=ng.prototype[Symbol.iterator]=rg.prototype[Symbol.iterator]=function(){return this});var uy=class{constructor(e,a,n,r){this.from=e,this.to=a,this.number=n,this.text=r}get length(){return this.to-this.from}};function Xu(t,e,a){return e=Math.max(0,Math.min(t.length,e)),[e,Math.max(e,Math.min(t.length,a))]}function Rt(t,e,a=!0,n=!0){return D2(t,e,a,n)}function _H(t){return t>=56320&&t<57344}function RH(t){return t>=55296&&t<56320}function qu(t,e){let a=t.charCodeAt(e);if(!RH(a)||e+1==t.length)return a;let n=t.charCodeAt(e+1);return _H(n)?(a-55296<<10)+(n-56320)+65536:a}function vy(t){return t<=65535?String.fromCharCode(t):(t-=65536,String.fromCharCode((t>>10)+55296,(t&1023)+56320))}function yd(t){return t<65536?1:2}var cy=/\r\n?|\n/,Sa=(function(t){return t[t.Simple=0]="Simple",t[t.TrackDel=1]="TrackDel",t[t.TrackBefore=2]="TrackBefore",t[t.TrackAfter=3]="TrackAfter",t})(Sa||(Sa={})),Li=class t{constructor(e){this.sections=e}get length(){let e=0;for(let a=0;a<this.sections.length;a+=2)e+=this.sections[a];return e}get newLength(){let e=0;for(let a=0;a<this.sections.length;a+=2){let n=this.sections[a+1];e+=n<0?this.sections[a]:n}return e}get empty(){return this.sections.length==0||this.sections.length==2&&this.sections[1]<0}iterGaps(e){for(let a=0,n=0,r=0;a<this.sections.length;){let i=this.sections[a++],o=this.sections[a++];o<0?(e(n,r,i),r+=i):r+=o,n+=i}}iterChangedRanges(e,a=!1){fy(this,e,a)}get invertedDesc(){let e=[];for(let a=0;a<this.sections.length;){let n=this.sections[a++],r=this.sections[a++];r<0?e.push(n,r):e.push(r,n)}return new t(e)}composeDesc(e){return this.empty?e:e.empty?this:Z2(this,e)}mapDesc(e,a=!1){return e.empty?this:dy(this,e,a)}mapPos(e,a=-1,n=Sa.Simple){let r=0,i=0;for(let o=0;o<this.sections.length;){let s=this.sections[o++],l=this.sections[o++],u=r+s;if(l<0){if(u>e)return i+(e-r);i+=s}else{if(n!=Sa.Simple&&u>=e&&(n==Sa.TrackDel&&r<e&&u>e||n==Sa.TrackBefore&&r<e||n==Sa.TrackAfter&&u>e))return null;if(u>e||u==e&&a<0&&!s)return e==r||a<0?i:i+l;i+=l}r=u}if(e>r)throw new RangeError(`Position ${e} is out of range for changeset of length ${r}`);return i}touchesRange(e,a=e){for(let n=0,r=0;n<this.sections.length&&r<=a;){let i=this.sections[n++],o=this.sections[n++],s=r+i;if(o>=0&&r<=a&&s>=e)return r<e&&s>a?"cover":!0;r=s}return!1}toString(){let e="";for(let a=0;a<this.sections.length;){let n=this.sections[a++],r=this.sections[a++];e+=(e?" ":"")+n+(r>=0?":"+r:"")}return e}toJSON(){return this.sections}static fromJSON(e){if(!Array.isArray(e)||e.length%2||e.some(a=>typeof a!="number"))throw new RangeError("Invalid JSON representation of ChangeDesc");return new t(e)}static create(e){return new t(e)}},Qa=class t extends Li{constructor(e,a){super(e),this.inserted=a}apply(e){if(this.length!=e.length)throw new RangeError("Applying change set to a document with the wrong length");return fy(this,(a,n,r,i,o)=>e=e.replace(r,r+(n-a),o),!1),e}mapDesc(e,a=!1){return dy(this,e,a,!0)}invert(e){let a=this.sections.slice(),n=[];for(let r=0,i=0;r<a.length;r+=2){let o=a[r],s=a[r+1];if(s>=0){a[r]=s,a[r+1]=o;let l=r>>1;for(;n.length<l;)n.push(Me.empty);n.push(o?e.slice(i,i+o):Me.empty)}i+=o}return new t(a,n)}compose(e){return this.empty?e:e.empty?this:Z2(this,e,!0)}map(e,a=!1){return e.empty?this:dy(this,e,a,!0)}iterChanges(e,a=!1){fy(this,e,a)}get desc(){return Li.create(this.sections)}filter(e){let a=[],n=[],r=[],i=new Ks(this);e:for(let o=0,s=0;;){let l=o==e.length?1e9:e[o++];for(;s<l||s==l&&i.len==0;){if(i.done)break e;let c=Math.min(i.len,l-s);Ea(r,c,-1);let f=i.ins==-1?-1:i.off==0?i.ins:0;Ea(a,c,f),f>0&&Bo(n,a,i.text),i.forward(c),s+=c}let u=e[o++];for(;s<u;){if(i.done)break e;let c=Math.min(i.len,u-s);Ea(a,c,-1),Ea(r,c,i.ins==-1?-1:i.off==0?i.ins:0),i.forward(c),s+=c}}return{changes:new t(a,n),filtered:Li.create(r)}}toJSON(){let e=[];for(let a=0;a<this.sections.length;a+=2){let n=this.sections[a],r=this.sections[a+1];r<0?e.push(n):r==0?e.push([n]):e.push([n].concat(this.inserted[a>>1].toJSON()))}return e}static of(e,a,n){let r=[],i=[],o=0,s=null;function l(c=!1){if(!c&&!r.length)return;o<a&&Ea(r,a-o,-1);let f=new t(r,i);s=s?s.compose(f.map(s)):f,r=[],i=[],o=0}function u(c){if(Array.isArray(c))for(let f of c)u(f);else if(c instanceof t){if(c.length!=a)throw new RangeError(`Mismatched change set length (got ${c.length}, expected ${a})`);l(),s=s?s.compose(c.map(s)):c}else{let{from:f,to:d=f,insert:h}=c;if(f>d||f<0||d>a)throw new RangeError(`Invalid change range ${f} to ${d} (in doc of length ${a})`);let p=h?typeof h=="string"?Me.of(h.split(n||cy)):h:Me.empty,g=p.length;if(f==d&&g==0)return;f<o&&l(),f>o&&Ea(r,f-o,-1),Ea(r,d-f,g),Bo(i,r,p),o=d}}return u(e),l(!s),s}static empty(e){return new t(e?[e,-1]:[],[])}static fromJSON(e){if(!Array.isArray(e))throw new RangeError("Invalid JSON representation of ChangeSet");let a=[],n=[];for(let r=0;r<e.length;r++){let i=e[r];if(typeof i=="number")a.push(i,-1);else{if(!Array.isArray(i)||typeof i[0]!="number"||i.some((o,s)=>s&&typeof o!="string"))throw new RangeError("Invalid JSON representation of ChangeSet");if(i.length==1)a.push(i[0],0);else{for(;n.length<r;)n.push(Me.empty);n[r]=Me.of(i.slice(1)),a.push(i[0],n[r].length)}}}return new t(a,n)}static createSet(e,a){return new t(e,a)}};function Ea(t,e,a,n=!1){if(e==0&&a<=0)return;let r=t.length-2;r>=0&&a<=0&&a==t[r+1]?t[r]+=e:r>=0&&e==0&&t[r]==0?t[r+1]+=a:n?(t[r]+=e,t[r+1]+=a):t.push(e,a)}function Bo(t,e,a){if(a.length==0)return;let n=e.length-2>>1;if(n<t.length)t[t.length-1]=t[t.length-1].append(a);else{for(;t.length<n;)t.push(Me.empty);t.push(a)}}function fy(t,e,a){let n=t.inserted;for(let r=0,i=0,o=0;o<t.sections.length;){let s=t.sections[o++],l=t.sections[o++];if(l<0)r+=s,i+=s;else{let u=r,c=i,f=Me.empty;for(;u+=s,c+=l,l&&n&&(f=f.append(n[o-2>>1])),!(a||o==t.sections.length||t.sections[o+1]<0);)s=t.sections[o++],l=t.sections[o++];e(r,u,i,c,f),r=u,i=c}}}function dy(t,e,a,n=!1){let r=[],i=n?[]:null,o=new Ks(t),s=new Ks(e);for(let l=-1;;){if(o.done&&s.len||s.done&&o.len)throw new Error("Mismatched change set lengths");if(o.ins==-1&&s.ins==-1){let u=Math.min(o.len,s.len);Ea(r,u,-1),o.forward(u),s.forward(u)}else if(s.ins>=0&&(o.ins<0||l==o.i||o.off==0&&(s.len<o.len||s.len==o.len&&!a))){let u=s.len;for(Ea(r,s.ins,-1);u;){let c=Math.min(o.len,u);o.ins>=0&&l<o.i&&o.len<=c&&(Ea(r,0,o.ins),i&&Bo(i,r,o.text),l=o.i),o.forward(c),u-=c}s.next()}else if(o.ins>=0){let u=0,c=o.len;for(;c;)if(s.ins==-1){let f=Math.min(c,s.len);u+=f,c-=f,s.forward(f)}else if(s.ins==0&&s.len<c)c-=s.len,s.next();else break;Ea(r,u,l<o.i?o.ins:0),i&&l<o.i&&Bo(i,r,o.text),l=o.i,o.forward(o.len-c)}else{if(o.done&&s.done)return i?Qa.createSet(r,i):Li.create(r);throw new Error("Mismatched change set lengths")}}}function Z2(t,e,a=!1){let n=[],r=a?[]:null,i=new Ks(t),o=new Ks(e);for(let s=!1;;){if(i.done&&o.done)return r?Qa.createSet(n,r):Li.create(n);if(i.ins==0)Ea(n,i.len,0,s),i.next();else if(o.len==0&&!o.done)Ea(n,0,o.ins,s),r&&Bo(r,n,o.text),o.next();else{if(i.done||o.done)throw new Error("Mismatched change set lengths");{let l=Math.min(i.len2,o.len),u=n.length;if(i.ins==-1){let c=o.ins==-1?-1:o.off?0:o.ins;Ea(n,l,c,s),r&&c&&Bo(r,n,o.text)}else o.ins==-1?(Ea(n,i.off?0:i.len,l,s),r&&Bo(r,n,i.textBit(l))):(Ea(n,i.off?0:i.len,o.off?0:o.ins,s),r&&!o.off&&Bo(r,n,o.text));s=(i.ins>l||o.ins>=0&&o.len>l)&&(s||n.length>u),i.forward2(l),o.forward(l)}}}}var Ks=class{constructor(e){this.set=e,this.i=0,this.next()}next(){let{sections:e}=this.set;this.i<e.length?(this.len=e[this.i++],this.ins=e[this.i++]):(this.len=0,this.ins=-2),this.off=0}get done(){return this.ins==-2}get len2(){return this.ins<0?this.len:this.ins}get text(){let{inserted:e}=this.set,a=this.i-2>>1;return a>=e.length?Me.empty:e[a]}textBit(e){let{inserted:a}=this.set,n=this.i-2>>1;return n>=a.length&&!e?Me.empty:a[n].slice(this.off,e==null?void 0:this.off+e)}forward(e){e==this.len?this.next():(this.len-=e,this.off+=e)}forward2(e){this.ins==-1?this.forward(e):e==this.ins?this.next():(this.ins-=e,this.off+=e)}},js=class t{constructor(e,a,n,r){this.from=e,this.to=a,this.flags=n,this.goalColumn=r}get anchor(){return this.flags&32?this.to:this.from}get head(){return this.flags&32?this.from:this.to}get empty(){return this.from==this.to}get assoc(){return this.flags&8?-1:this.flags&16?1:0}get undirectional(){return(this.flags&64)>0}get bidiLevel(){let e=this.flags&7;return e==7?null:e}map(e,a=-1){let n,r;return this.empty?n=r=e.mapPos(this.from,a):(n=e.mapPos(this.from,1),r=e.mapPos(this.to,-1)),n==this.from&&r==this.to?this:new t(n,r,this.flags,this.goalColumn)}extend(e,a=e,n=0){if(e<=this.anchor&&a>=this.anchor)return I.range(e,a,void 0,void 0,n);let r=Math.abs(e-this.anchor)>Math.abs(a-this.anchor)?e:a;return I.range(this.anchor,r,void 0,void 0,n)}eq(e,a=!1){return this.anchor==e.anchor&&this.head==e.head&&this.goalColumn==e.goalColumn&&(!a||!this.empty||this.assoc==e.assoc)}toJSON(){return{anchor:this.anchor,head:this.head}}static fromJSON(e){if(!e||typeof e.anchor!="number"||typeof e.head!="number")throw new RangeError("Invalid JSON representation for SelectionRange");return I.range(e.anchor,e.head)}static create(e,a,n,r){return new t(e,a,n,r)}},I=class t{constructor(e,a){this.ranges=e,this.mainIndex=a}map(e,a=-1){return e.empty?this:t.create(this.ranges.map(n=>n.map(e,a)),this.mainIndex)}eq(e,a=!1){if(this.ranges.length!=e.ranges.length||this.mainIndex!=e.mainIndex)return!1;for(let n=0;n<this.ranges.length;n++)if(!this.ranges[n].eq(e.ranges[n],a))return!1;return!0}get main(){return this.ranges[this.mainIndex]}asSingle(){return this.ranges.length==1?this:new t([this.main],0)}addRange(e,a=!0){return t.create([e].concat(this.ranges),a?0:this.mainIndex+1)}replaceRange(e,a=this.mainIndex){let n=this.ranges.slice();return n[a]=e,t.create(n,this.mainIndex)}toJSON(){return{ranges:this.ranges.map(e=>e.toJSON()),main:this.mainIndex}}static fromJSON(e){if(!e||!Array.isArray(e.ranges)||typeof e.main!="number"||e.main>=e.ranges.length)throw new RangeError("Invalid JSON representation for EditorSelection");return new t(e.ranges.map(a=>js.fromJSON(a)),e.main)}static single(e,a=e){return new t([t.range(e,a)],0)}static create(e,a=0){if(e.length==0)throw new RangeError("A selection needs at least one range");for(let n=0,r=0;r<e.length;r++){let i=e[r];if(i.empty?i.from<=n:i.from<n)return t.normalized(e.slice(),a);n=i.to}return new t(e,a)}static cursor(e,a=0,n,r){return js.create(e,e,(a==0?0:a<0?8:16)|(n==null?7:Math.min(6,n)),r)}static range(e,a,n,r,i){let o=r==null?7:Math.min(6,r);return!i&&e!=a&&(i=a<e?1:-1),i&&(o|=i<0?8:16),a<e?js.create(a,e,o|32,n):js.create(e,a,o,n)}static undirectionalRange(e,a){return js.create(e,a,64,void 0)}static normalized(e,a=0){let n=e[a];e.sort((r,i)=>r.from-i.from),a=e.indexOf(n);for(let r=1;r<e.length;r++){let i=e[r],o=e[r-1];if(i.empty?i.from<=o.to:i.from<o.to){let s=o.from,l=Math.max(i.to,o.to);r<=a&&a--,e.splice(--r,2,i.anchor>i.head?t.range(l,s):t.range(s,l))}}return new t(e,a)}};function F2(t,e){for(let a of t.ranges)if(a.to>e)throw new RangeError("Selection points outside of document")}var Cy=0,te=class t{constructor(e,a,n,r,i){this.combine=e,this.compareInput=a,this.compare=n,this.isStatic=r,this.id=Cy++,this.default=e([]),this.extensions=typeof i=="function"?i(this):i}get reader(){return this}static define(e={}){return new t(e.combine||(a=>a),e.compareInput||((a,n)=>a===n),e.compare||(e.combine?(a,n)=>a===n:wy),!!e.static,e.enables)}of(e){return new zu([],this,0,e)}compute(e,a){if(this.isStatic)throw new Error("Can't compute a static facet");return new zu(e,this,1,a)}computeN(e,a){if(this.isStatic)throw new Error("Can't compute a static facet");return new zu(e,this,2,a)}from(e,a){return a||(a=n=>n),this.compute([e],n=>a(n.field(e)))}};function wy(t,e){return t==e||t.length==e.length&&t.every((a,n)=>a===e[n])}var zu=class{constructor(e,a,n,r){this.dependencies=e,this.facet=a,this.type=n,this.value=r,this.id=Cy++}dynamicSlot(e){var a;let n=this.value,r=this.facet.compareInput,i=this.id,o=e[i]>>1,s=this.type==2,l=!1,u=!1,c=[];for(let f of this.dependencies)f=="doc"?l=!0:f=="selection"?u=!0:(((a=e[f.id])!==null&&a!==void 0?a:1)&1)==0&&c.push(e[f.id]);return{create(f){return f.values[o]=n(f),1},update(f,d){if(l&&d.docChanged||u&&(d.docChanged||d.selection)||hy(f,c)){let h=n(f);if(s?!z2(h,f.values[o],r):!r(h,f.values[o]))return f.values[o]=h,1}return 0},reconfigure:(f,d)=>{let h,p=d.config.address[i];if(p!=null){let g=lg(d,p);if(this.dependencies.every(b=>b instanceof te?d.facet(b)===f.facet(b):b instanceof ia?d.field(b,!1)==f.field(b,!1):!0)||(s?z2(h=n(f),g,r):r(h=n(f),g)))return f.values[o]=g,0}else h=n(f);return f.values[o]=h,1}}}get extension(){return this}};function z2(t,e,a){if(t.length!=e.length)return!1;for(let n=0;n<t.length;n++)if(!a(t[n],e[n]))return!1;return!0}function hy(t,e){let a=!1;for(let n of e)Od(t,n)&1&&(a=!0);return a}function TH(t,e,a){let n=a.map(l=>t[l.id]),r=a.map(l=>l.type),i=n.filter(l=>!(l&1)),o=t[e.id]>>1;function s(l){let u=[];for(let c=0;c<n.length;c++){let f=lg(l,n[c]);if(r[c]==2)for(let d of f)u.push(d);else u.push(f)}return e.combine(u)}return{create(l){for(let u of n)Od(l,u);return l.values[o]=s(l),1},update(l,u){if(!hy(l,i))return 0;let c=s(l);return e.compare(c,l.values[o])?0:(l.values[o]=c,1)},reconfigure(l,u){let c=hy(l,n),f=u.config.facets[e.id],d=u.facet(e);if(f&&!c&&wy(a,f))return l.values[o]=d,0;let h=s(l);return e.compare(h,d)?(l.values[o]=d,0):(l.values[o]=h,1)}}}var Jm=te.define({static:!0}),ia=class t{constructor(e,a,n,r,i){this.id=e,this.createF=a,this.updateF=n,this.compareF=r,this.spec=i,this.provides=void 0}static define(e){let a=new t(Cy++,e.create,e.update,e.compare||((n,r)=>n===r),e);return e.provide&&(a.provides=e.provide(a)),a}create(e){let a=e.facet(Jm).find(n=>n.field==this);return(a?.create||this.createF)(e)}slot(e){let a=e[this.id]>>1;return{create:n=>(n.values[a]=this.create(n),1),update:(n,r)=>{let i=n.values[a],o=this.updateF(i,r);return this.compareF(i,o)?0:(n.values[a]=o,1)},reconfigure:(n,r)=>{let i=n.facet(Jm),o=r.facet(Jm),s;return(s=i.find(l=>l.field==this))&&s!=o.find(l=>l.field==this)?(n.values[a]=s.create(n),1):r.config.address[this.id]!=null?(n.values[a]=r.field(this),0):(n.values[a]=this.create(n),1)}}}init(e){return[this,Jm.of({field:this,create:e})]}get extension(){return this}},Vs={lowest:4,low:3,default:2,high:1,highest:0};function gd(t){return e=>new ig(e,t)}var Gn={highest:gd(Vs.highest),high:gd(Vs.high),default:gd(Vs.default),low:gd(Vs.low),lowest:gd(Vs.lowest)},ig=class{constructor(e,a){this.inner=e,this.prec=a}get extension(){return this}},og=class t{of(e){return new bd(this,e)}reconfigure(e){return t.reconfigure.of({compartment:this,extension:e})}get(e){return e.config.compartments.get(this)}},bd=class{constructor(e,a){this.compartment=e,this.inner=a}get extension(){return this}},sg=class t{constructor(e,a,n,r,i,o){for(this.base=e,this.compartments=a,this.dynamicSlots=n,this.address=r,this.staticValues=i,this.facets=o,this.statusTemplate=[];this.statusTemplate.length<n.length;)this.statusTemplate.push(0)}staticFacet(e){let a=this.address[e.id];return a==null?e.default:this.staticValues[a>>1]}static resolve(e,a,n){let r=[],i=Object.create(null),o=new Map;for(let d of IH(e,a,o))d instanceof ia?r.push(d):(i[d.facet.id]||(i[d.facet.id]=[])).push(d);let s=Object.create(null),l=[],u=[];for(let d of r)s[d.id]=u.length<<1,u.push(h=>d.slot(h));let c=n?.config.facets;for(let d in i){let h=i[d],p=h[0].facet,g=c&&c[d]||[];if(h.every(b=>b.type==0))if(s[p.id]=l.length<<1|1,wy(g,h))l.push(n.facet(p));else{let b=p.combine(h.map(m=>m.value));l.push(n&&p.compare(b,n.facet(p))?n.facet(p):b)}else{for(let b of h)b.type==0?(s[b.id]=l.length<<1|1,l.push(b.value)):(s[b.id]=u.length<<1,u.push(m=>b.dynamicSlot(m)));s[p.id]=u.length<<1,u.push(b=>TH(b,p,h))}}let f=u.map(d=>d(s));return new t(e,o,f,s,l,i)}};function IH(t,e,a){let n=[[],[],[],[],[]],r=new Map;function i(o,s){let l=r.get(o);if(l!=null){if(l<=s)return;let u=n[l].indexOf(o);u>-1&&n[l].splice(u,1),o instanceof bd&&a.delete(o.compartment)}if(r.set(o,s),Array.isArray(o))for(let u of o)i(u,s);else if(o instanceof bd){if(a.has(o.compartment))throw new RangeError("Duplicate use of compartment in extensions");let u=e.get(o.compartment)||o.inner;a.set(o.compartment,u),i(u,s)}else if(o instanceof ig)i(o.inner,o.prec);else if(o instanceof ia)n[s].push(o),o.provides&&i(o.provides,s);else if(o instanceof zu)n[s].push(o),o.facet.extensions&&i(o.facet.extensions,Vs.default);else{let u=o.extension;if(!u)throw new Error(`Unrecognized extension value in extension set (${o}).`);if(u==o)throw new Error(`Unrecognized extension value in extension set (${o}). This sometimes happens because multiple instances of @codemirror/state are loaded, breaking instanceof checks.`);i(u,s)}}return i(t,Vs.default),n.reduce((o,s)=>o.concat(s))}function Od(t,e){if(e&1)return 2;let a=e>>1,n=t.status[a];if(n==4)throw new Error("Cyclic dependency between fields and/or facets");if(n&2)return n;t.status[a]=4;let r=t.computeSlot(t,t.config.dynamicSlots[a]);return t.status[a]=2|r}function lg(t,e){return e&1?t.config.staticValues[e>>1]:t.values[e>>1]}var G2=te.define(),py=te.define({combine:t=>t.some(e=>e),static:!0}),H2=te.define({combine:t=>t.length?t[0]:void 0,static:!0}),j2=te.define(),V2=te.define(),Y2=te.define(),W2=te.define({combine:t=>t.length?t[0]:!1}),Wa=class{constructor(e,a){this.type=e,this.value=a}static define(){return new my}},my=class{of(e){return new Wa(this,e)}},gy=class{constructor(e){this.map=e}of(e){return new Te(this,e)}},Te=class t{constructor(e,a){this.type=e,this.value=a}map(e){let a=this.type.map(this.value,e);return a===void 0?void 0:a==this.value?this:new t(this.type,a)}is(e){return this.type==e}static define(e={}){return new gy(e.map||(a=>a))}static mapEffects(e,a){if(!e.length)return e;let n=[];for(let r of e){let i=r.map(a);i&&n.push(i)}return n}};Te.reconfigure=Te.define();Te.appendConfig=Te.define();var Dt=class t{constructor(e,a,n,r,i,o){this.startState=e,this.changes=a,this.selection=n,this.effects=r,this.annotations=i,this.scrollIntoView=o,this._doc=null,this._state=null,n&&F2(n,a.newLength),i.some(s=>s.type==t.time)||(this.annotations=i.concat(t.time.of(Date.now())))}static create(e,a,n,r,i,o){return new t(e,a,n,r,i,o)}get newDoc(){return this._doc||(this._doc=this.changes.apply(this.startState.doc))}get newSelection(){return this.selection||this.startState.selection.map(this.changes)}get state(){return this._state||this.startState.applyTransaction(this),this._state}annotation(e){for(let a of this.annotations)if(a.type==e)return a.value}get docChanged(){return!this.changes.empty}get reconfigured(){return this.startState.config!=this.state.config}isUserEvent(e){let a=this.annotation(t.userEvent);return!!(a&&(a==e||a.length>e.length&&a.slice(0,e.length)==e&&a[e.length]=="."))}};Dt.time=Wa.define();Dt.userEvent=Wa.define();Dt.addToHistory=Wa.define();Dt.remote=Wa.define();function PH(t,e){let a=[];for(let n=0,r=0;;){let i,o;if(n<t.length&&(r==e.length||e[r]>=t[n]))i=t[n++],o=t[n++];else if(r<e.length)i=e[r++],o=e[r++];else return a;!a.length||a[a.length-1]<i?a.push(i,o):a[a.length-1]<o&&(a[a.length-1]=o)}}function K2(t,e,a){var n;let r,i,o;return a?(r=e.changes,i=Qa.empty(e.changes.length),o=t.changes.compose(e.changes)):(r=e.changes.map(t.changes),i=t.changes.mapDesc(e.changes,!0),o=t.changes.compose(r)),{changes:o,selection:e.selection?e.selection.map(i):(n=t.selection)===null||n===void 0?void 0:n.map(r),effects:Te.mapEffects(t.effects,r).concat(Te.mapEffects(e.effects,i)),annotations:t.annotations.length?t.annotations.concat(e.annotations):e.annotations,scrollIntoView:t.scrollIntoView||e.scrollIntoView}}function Oy(t,e,a){let n=e.selection,r=Uu(e.annotations);return e.userEvent&&(r=r.concat(Dt.userEvent.of(e.userEvent))),{changes:e.changes instanceof Qa?e.changes:Qa.of(e.changes||[],a,t.facet(H2)),selection:n&&(n instanceof I?n:I.single(n.anchor,n.head)),effects:Uu(e.effects),annotations:r,scrollIntoView:!!e.scrollIntoView}}function J2(t,e,a){let n=Oy(t,e.length?e[0]:{},t.doc.length);e.length&&e[0].filter===!1&&(a=!1);for(let i=1;i<e.length;i++){e[i].filter===!1&&(a=!1);let o=!!e[i].sequential;n=K2(n,Oy(t,e[i],o?n.changes.newLength:t.doc.length),o)}let r=Dt.create(t,n.changes,n.selection,n.effects,n.annotations,n.scrollIntoView);return DH(a?MH(r):r)}function MH(t){let e=t.startState,a=!0;for(let r of e.facet(j2)){let i=r(t);if(i===!1){a=!1;break}Array.isArray(i)&&(a=a===!0?i:PH(a,i))}if(a!==!0){let r,i;if(a===!1)i=t.changes.invertedDesc,r=Qa.empty(e.doc.length);else{let o=t.changes.filter(a);r=o.changes,i=o.filtered.mapDesc(o.changes).invertedDesc}t=Dt.create(e,r,t.selection&&t.selection.map(i),Te.mapEffects(t.effects,i),t.annotations,t.scrollIntoView)}let n=e.facet(V2);for(let r=n.length-1;r>=0;r--){let i=n[r](t);i instanceof Dt?t=i:Array.isArray(i)&&i.length==1&&i[0]instanceof Dt?t=i[0]:t=J2(e,Uu(i),!1)}return t}function DH(t){let e=t.startState,a=e.facet(Y2),n=t;for(let r=a.length-1;r>=0;r--){let i=a[r](t);i&&Object.keys(i).length&&(n=K2(n,Oy(e,i,t.changes.newLength),!0))}return n==t?t:Dt.create(e,t.changes,t.selection,n.effects,n.annotations,n.scrollIntoView)}var NH=[];function Uu(t){return t==null?NH:Array.isArray(t)?t:[t]}var mt=(function(t){return t[t.Word=0]="Word",t[t.Space=1]="Space",t[t.Other=2]="Other",t})(mt||(mt={})),QH=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/,by;try{by=new RegExp("[\\p{Alphabetic}\\p{Number}_]","u")}catch{}function $H(t){if(by)return by.test(t);for(let e=0;e<t.length;e++){let a=t[e];if(/\w/.test(a)||a>"\x80"&&(a.toUpperCase()!=a.toLowerCase()||QH.test(a)))return!0}return!1}function BH(t){return e=>{if(!/\S/.test(e))return mt.Space;if($H(e))return mt.Word;for(let a=0;a<t.length;a++)if(e.indexOf(t[a])>-1)return mt.Word;return mt.Other}}var et=class t{constructor(e,a,n,r,i,o){this.config=e,this.doc=a,this.selection=n,this.values=r,this.status=e.statusTemplate.slice(),this.computeSlot=i,o&&(o._state=this);for(let s=0;s<this.config.dynamicSlots.length;s++)Od(this,s<<1);this.computeSlot=null}field(e,a=!0){let n=this.config.address[e.id];if(n==null){if(a)throw new RangeError("Field is not present in this state");return}return Od(this,n),lg(this,n)}update(...e){return J2(this,e,!0)}applyTransaction(e){let a=this.config,{base:n,compartments:r}=a;for(let s of e.effects)s.is(og.reconfigure)?(a&&(r=new Map,a.compartments.forEach((l,u)=>r.set(u,l)),a=null),r.set(s.value.compartment,s.value.extension)):s.is(Te.reconfigure)?(a=null,n=s.value):s.is(Te.appendConfig)&&(a=null,n=Uu(n).concat(s.value));let i;a?i=e.startState.values.slice():(a=sg.resolve(n,r,this),i=new t(a,this.doc,this.selection,a.dynamicSlots.map(()=>null),(l,u)=>u.reconfigure(l,this),null).values);let o=e.startState.facet(py)?e.newSelection:e.newSelection.asSingle();new t(a,e.newDoc,o,i,(s,l)=>l.update(s,e),e)}replaceSelection(e){return typeof e=="string"&&(e=this.toText(e)),this.changeByRange(a=>({changes:{from:a.from,to:a.to,insert:e},range:I.cursor(a.from+e.length,-1)}))}changeByRange(e){let a=this.selection,n=e(a.ranges[0]),r=this.changes(n.changes),i=[n.range],o=Uu(n.effects);for(let s=1;s<a.ranges.length;s++){let l=e(a.ranges[s]),u=this.changes(l.changes),c=u.map(r);for(let d=0;d<s;d++)i[d]=i[d].map(c);let f=r.mapDesc(u,!0);i.push(l.range.map(f)),r=r.compose(c),o=Te.mapEffects(o,c).concat(Te.mapEffects(Uu(l.effects),f))}return{changes:r,selection:I.create(i,a.mainIndex),effects:o}}changes(e=[]){return e instanceof Qa?e:Qa.of(e,this.doc.length,this.facet(t.lineSeparator))}toText(e){return Me.of(e.split(this.facet(t.lineSeparator)||cy))}sliceDoc(e=0,a=this.doc.length){return this.doc.sliceString(e,a,this.lineBreak)}facet(e){let a=this.config.address[e.id];return a==null?e.default:(Od(this,a),lg(this,a))}toJSON(e){let a={doc:this.sliceDoc(),selection:this.selection.toJSON()};if(e)for(let n in e){let r=e[n];r instanceof ia&&this.config.address[r.id]!=null&&(a[n]=r.spec.toJSON(this.field(e[n]),this))}return a}static fromJSON(e,a={},n){if(!e||typeof e.doc!="string")throw new RangeError("Invalid JSON representation for EditorState");let r=[];if(n){for(let i in n)if(Object.prototype.hasOwnProperty.call(e,i)){let o=n[i],s=e[i];r.push(o.init(l=>o.spec.fromJSON(s,l)))}}return t.create({doc:e.doc,selection:I.fromJSON(e.selection),extensions:a.extensions?r.concat([a.extensions]):r})}static create(e={}){let a=sg.resolve(e.extensions||[],new Map),n=e.doc instanceof Me?e.doc:Me.of((e.doc||"").split(a.staticFacet(t.lineSeparator)||cy)),r=e.selection?e.selection instanceof I?e.selection:I.single(e.selection.anchor,e.selection.head):I.single(0);return F2(r,n.length),a.staticFacet(py)||(r=r.asSingle()),new t(a,n,r,a.dynamicSlots.map(()=>null),(i,o)=>o.create(i),null)}get tabSize(){return this.facet(t.tabSize)}get lineBreak(){return this.facet(t.lineSeparator)||`
35
+ `}get readOnly(){return this.facet(W2)}phrase(e,...a){for(let n of this.facet(t.phrases))if(Object.prototype.hasOwnProperty.call(n,e)){e=n[e];break}return a.length&&(e=e.replace(/\$(\$|\d*)/g,(n,r)=>{if(r=="$")return"$";let i=+(r||1);return!i||i>a.length?n:a[i-1]})),e}languageDataAt(e,a,n=-1){let r=[];for(let i of this.facet(G2))for(let o of i(this,a,n))Object.prototype.hasOwnProperty.call(o,e)&&r.push(o[e]);return r}charCategorizer(e){let a=this.languageDataAt("wordChars",e);return BH(a.length?a[0]:"")}wordAt(e){let{text:a,from:n,length:r}=this.doc.lineAt(e),i=this.charCategorizer(e),o=e-n,s=e-n;for(;o>0;){let l=Rt(a,o,!1);if(i(a.slice(l,o))!=mt.Word)break;o=l}for(;s<r;){let l=Rt(a,s);if(i(a.slice(s,l))!=mt.Word)break;s=l}return o==s?null:I.range(o+n,s+n)}};et.allowMultipleSelections=py;et.tabSize=te.define({combine:t=>t.length?t[0]:4});et.lineSeparator=H2;et.readOnly=W2;et.phrases=te.define({compare(t,e){let a=Object.keys(t),n=Object.keys(e);return a.length==n.length&&a.every(r=>t[r]==e[r])}});et.languageData=G2;et.changeFilter=j2;et.transactionFilter=V2;et.transactionExtender=Y2;og.reconfigure=Te.define();function On(t,e,a={}){let n={};for(let r of t)for(let i of Object.keys(r)){let o=r[i],s=n[i];if(s===void 0)n[i]=o;else if(!(s===o||o===void 0))if(Object.hasOwnProperty.call(a,i))n[i]=a[i](s,o);else throw new Error("Config merge conflict for field "+i)}for(let r in e)n[r]===void 0&&(n[r]=e[r]);return n}var Fn=class{eq(e){return this==e}range(e,a=e){return xd.create(e,a,this)}};Fn.prototype.startSide=Fn.prototype.endSide=0;Fn.prototype.point=!1;Fn.prototype.mapMode=Sa.TrackDel;function ky(t,e){return t==e||t.constructor==e.constructor&&t.eq(e)}var xd=class t{constructor(e,a,n){this.from=e,this.to=a,this.value=n}static create(e,a,n){return new t(e,a,n)}};function xy(t,e){return t.from-e.from||t.value.startSide-e.value.startSide}var Sy=class t{constructor(e,a,n,r){this.from=e,this.to=a,this.value=n,this.maxPoint=r}get length(){return $u(this.to)}findIndex(e,a,n,r=0){let i=n?this.to:this.from;for(let o=r,s=i.length;;){if(o==s)return o;let l=o+s>>1,u=i[l]-e||(n?this.value[l].endSide:this.value[l].startSide)-a;if(l==o)return u>=0?o:s;u>=0?s=l:o=l+1}}between(e,a,n,r){for(let i=this.findIndex(a,-1e9,!0),o=this.findIndex(n,1e9,!1,i);i<o;i++)if(r(this.from[i]+e,this.to[i]+e,this.value[i])===!1)return!1}map(e,a,n,r,i){let o=[],s=[],l=[],u=-1,c=-1;e:for(let f=0;f<this.value.length;f++){let d=this.value[f],h=this.from[f]+e,p=this.to[f]+e,g,b;if(h==p){let m=a.mapPos(h,d.startSide,d.mapMode);if(m==null||(g=b=m,d.startSide!=d.endSide&&(b=a.mapPos(h,d.endSide),b<g)))continue}else if(g=a.mapPos(h,d.startSide),b=a.mapPos(p,d.endSide),g>b||g==b&&d.startSide>0&&d.endSide<=0)continue;if(!((b-g||d.endSide-d.startSide)<0))if(u<0&&(u=g),d.point&&(c=Math.max(c,b-g)),(g-n||d.startSide-r)>=0)o.push(d),s.push(g-u),l.push(b-u),n=b,r=d.endSide;else{if(g==b)for(let m=o.length;m>0;m--){if((g-(l[m-1]+u)||d.startSide-o[m-1].endSide)>=0){o.splice(m,0,d),s.splice(m,0,g-u),l.splice(m,0,b-u);continue e}if((g-(s[m-1]+u)||d.endSide-o[m-1].startSide)>0)break}i(g,b,d)}}return{mapped:o.length?new t(s,l,o,c):null,pos:u}}},Ze=class t{constructor(e,a,n,r){this.chunkPos=e,this.chunk=a,this.nextLayer=n,this.maxPoint=r}static create(e,a,n,r){return new t(e,a,n,r)}get length(){let e=this.chunk.length-1;return e<0?0:Math.max(this.chunkEnd(e),this.nextLayer.length)}get size(){if(this.isEmpty)return 0;let e=this.nextLayer.size;for(let a of this.chunk)e+=a.value.length;return e}chunkEnd(e){return this.chunkPos[e]+this.chunk[e].length}update(e){let{add:a=[],sort:n=!1,filterFrom:r=0,filterTo:i=this.length}=e,o=e.filter;if(a.length==0&&!o)return this;if(n&&(a=a.slice().sort(xy)),this.isEmpty)return a.length?t.of(a):this;let s=new ug(this,null,-1).goto(0),l=0,u=[],c=new Zn;for(;s.value||l<a.length;)if(l<a.length&&(s.from-a[l].from||s.startSide-a[l].value.startSide)>=0){let f=a[l++];c.addInner(f.from,f.to,f.value,!1)||u.push(f)}else s.rangeIndex==1&&s.chunkIndex<this.chunk.length&&(l==a.length||this.chunkEnd(s.chunkIndex)<a[l].from)&&(!o||r>this.chunkEnd(s.chunkIndex)||i<this.chunkPos[s.chunkIndex])&&c.addChunk(this.chunkPos[s.chunkIndex],this.chunk[s.chunkIndex])?s.nextChunk():((!o||r>s.to||i<s.from||o(s.from,s.to,s.value))&&(c.addInner(s.from,s.to,s.value,!1)||u.push(xd.create(s.from,s.to,s.value))),s.next());return c.finishInner(this.nextLayer.isEmpty&&!u.length?t.empty:this.nextLayer.update({add:u,filter:o,filterFrom:r,filterTo:i}))}map(e){if(e.empty||this.isEmpty)return this;let a=[],n=[],r=-1,i,o=(l,u,c)=>{i||(i=new Zn),i.addRange(l,u,c,!1)};for(let l=0;l<this.chunk.length;l++){let u=this.chunkPos[l],c=this.chunk[l],f=e.touchesRange(u,u+c.length);if(f===!1)r=Math.max(r,c.maxPoint),a.push(c),n.push(e.mapPos(u));else if(f===!0){let[d,h]=a.length?[$u(n)+$u(a).length,$u($u(a).value).endSide]:[-1,-1],{mapped:p,pos:g}=c.map(u,e,d,h,o);p&&(r=Math.max(r,p.maxPoint),a.push(p),n.push(g))}}let s=this.nextLayer.map(e);return i&&(s=i.finishInner(s)),a.length==0?s:new t(n,a,s||t.empty,r)}between(e,a,n){if(!this.isEmpty){for(let r=0;r<this.chunk.length;r++){let i=this.chunkPos[r],o=this.chunk[r];if(a>=i&&e<=i+o.length&&o.between(i,e-i,a-i,n)===!1)return}this.nextLayer.between(e,a,n)}}iter(e=0){return Sd.from([this]).goto(e)}get isEmpty(){return this.nextLayer==this}static iter(e,a=0){return Sd.from(e).goto(a)}static compare(e,a,n,r,i=-1){let o=e.filter(f=>f.maxPoint>0||!f.isEmpty&&f.maxPoint>=i),s=a.filter(f=>f.maxPoint>0||!f.isEmpty&&f.maxPoint>=i),l=U2(o,s,n),u=new Ys(o,l,i),c=new Ys(s,l,i);n.iterGaps((f,d,h)=>X2(u,f,c,d,h,r)),n.empty&&n.length==0&&X2(u,0,c,0,0,r)}static eq(e,a,n=0,r){r==null&&(r=999999999);let i=e.filter(c=>!c.isEmpty&&a.indexOf(c)<0),o=a.filter(c=>!c.isEmpty&&e.indexOf(c)<0);if(i.length!=o.length)return!1;if(!i.length)return!0;let s=U2(i,o),l=new Ys(i,s,0).goto(n),u=new Ys(o,s,0).goto(n);for(;;){if(l.to!=u.to||!yy(l.active,u.active)||l.point&&(!u.point||!ky(l.point,u.point)))return!1;if(l.to>r)return!0;l.next(),u.next()}}static spans(e,a,n,r,i=-1){let o=new Ys(e,null,i).goto(a),s=a,l=o.openStart;for(;;){let u=Math.min(o.to,n);if(o.point){let c=o.activeForPoint(o.to),f=o.pointFrom<a?c.length+1:o.point.startSide<0?c.length:Math.min(c.length,l);r.point(s,u,o.point,c,f,o.pointRank),l=Math.min(o.openEnd(u),c.length)}else u>s&&(r.span(s,u,o.active,l),l=o.openEnd(u));if(o.to>n)return l+(o.point&&o.to>n?1:0);s=o.to,o.next()}}static of(e,a=!1){let n=new Zn;for(let r of e instanceof xd?[e]:a?zH(e):e)n.add(r.from,r.to,r.value);return n.finish()}static join(e){if(!e.length)return t.empty;let a=$u(e);for(let n=e.length-2;n>=0;n--)for(let r=e[n];r!=t.empty;r=r.nextLayer)a=new t(r.chunkPos,r.chunk,a,Math.max(r.maxPoint,a.maxPoint));return a}};Ze.empty=new Ze([],[],null,-1);function $u(t){return t[t.length-1]}function zH(t){if(t.length>1)for(let e=t[0],a=1;a<t.length;a++){let n=t[a];if(xy(e,n)>0)return t.slice().sort(xy);e=n}return t}Ze.empty.nextLayer=Ze.empty;var Zn=class t{finishChunk(e){this.chunks.push(new Sy(this.from,this.to,this.value,this.maxPoint)),this.chunkPos.push(this.chunkStart),this.chunkStart=-1,this.setMaxPoint=Math.max(this.setMaxPoint,this.maxPoint),this.maxPoint=-1,e&&(this.from=[],this.to=[],this.value=[])}constructor(){this.chunks=[],this.chunkPos=[],this.chunkStart=-1,this.last=null,this.lastFrom=-1e9,this.lastTo=-1e9,this.from=[],this.to=[],this.value=[],this.maxPoint=-1,this.setMaxPoint=-1,this.nextLayer=null}add(e,a,n){this.addRange(e,a,n,!0)}addRange(e,a,n,r){this.addInner(e,a,n,r)||(this.nextLayer||(this.nextLayer=new t)).addRange(e,a,n,r)}addInner(e,a,n,r){let i=e-this.lastTo||n.startSide-this.last.endSide;if(r&&i<=0&&(e-this.lastFrom||n.startSide-this.last.startSide)<0)throw new Error("Ranges must be added sorted by `from` position and `startSide`");return i<0?!1:(this.from.length==250&&this.finishChunk(!0),this.chunkStart<0&&(this.chunkStart=e),this.from.push(e-this.chunkStart),this.to.push(a-this.chunkStart),this.last=n,this.lastFrom=e,this.lastTo=a,this.value.push(n),n.point&&(this.maxPoint=Math.max(this.maxPoint,a-e)),!0)}addChunk(e,a){if((e-this.lastTo||a.value[0].startSide-this.last.endSide)<0)return!1;this.from.length&&this.finishChunk(!0),this.setMaxPoint=Math.max(this.setMaxPoint,a.maxPoint),this.chunks.push(a),this.chunkPos.push(e);let n=a.value.length-1;return this.last=a.value[n],this.lastFrom=a.from[n]+e,this.lastTo=a.to[n]+e,!0}finish(){return this.finishInner(Ze.empty)}finishInner(e){if(this.from.length&&this.finishChunk(!1),this.chunks.length==0)return e;let a=Ze.create(this.chunkPos,this.chunks,this.nextLayer?this.nextLayer.finishInner(e):e,this.setMaxPoint);return this.from=null,a}};function U2(t,e,a){let n=new Map;for(let i of t)for(let o=0;o<i.chunk.length;o++)i.chunk[o].maxPoint<=0&&n.set(i.chunk[o],i.chunkPos[o]);let r=new Set;for(let i of e)for(let o=0;o<i.chunk.length;o++){let s=n.get(i.chunk[o]);s!=null&&(a?a.mapPos(s):s)==i.chunkPos[o]&&!a?.touchesRange(s,s+i.chunk[o].length)&&r.add(i.chunk[o])}return r}var ug=class{constructor(e,a,n,r=0){this.layer=e,this.skip=a,this.minPoint=n,this.rank=r}get startSide(){return this.value?this.value.startSide:0}get endSide(){return this.value?this.value.endSide:0}goto(e,a=-1e9){return this.chunkIndex=this.rangeIndex=0,this.gotoInner(e,a,!1),this}gotoInner(e,a,n){for(;this.chunkIndex<this.layer.chunk.length;){let r=this.layer.chunk[this.chunkIndex];if(!(this.skip&&this.skip.has(r)||this.layer.chunkEnd(this.chunkIndex)<e||r.maxPoint<this.minPoint))break;this.chunkIndex++,n=!1}if(this.chunkIndex<this.layer.chunk.length){let r=this.layer.chunk[this.chunkIndex].findIndex(e-this.layer.chunkPos[this.chunkIndex],a,!0);(!n||this.rangeIndex<r)&&this.setRangeIndex(r)}this.next()}forward(e,a){(this.to-e||this.endSide-a)<0&&this.gotoInner(e,a,!0)}next(){for(;;)if(this.chunkIndex==this.layer.chunk.length){this.from=this.to=1e9,this.value=null;break}else{let e=this.layer.chunkPos[this.chunkIndex],a=this.layer.chunk[this.chunkIndex],n=e+a.from[this.rangeIndex];if(this.from=n,this.to=e+a.to[this.rangeIndex],this.value=a.value[this.rangeIndex],this.setRangeIndex(this.rangeIndex+1),this.minPoint<0||this.value.point&&this.to-this.from>=this.minPoint)break}}setRangeIndex(e){if(e==this.layer.chunk[this.chunkIndex].value.length){if(this.chunkIndex++,this.skip)for(;this.chunkIndex<this.layer.chunk.length&&this.skip.has(this.layer.chunk[this.chunkIndex]);)this.chunkIndex++;this.rangeIndex=0}else this.rangeIndex=e}nextChunk(){this.chunkIndex++,this.rangeIndex=0,this.next()}compare(e){return this.from-e.from||this.startSide-e.startSide||this.rank-e.rank||this.to-e.to||this.endSide-e.endSide}},Sd=class t{constructor(e){this.heap=e}static from(e,a=null,n=-1){let r=[];for(let i=0;i<e.length;i++)for(let o=e[i];!o.isEmpty;o=o.nextLayer)o.maxPoint>=n&&r.push(new ug(o,a,n,i));return r.length==1?r[0]:new t(r)}get startSide(){return this.value?this.value.startSide:0}goto(e,a=-1e9){for(let n of this.heap)n.goto(e,a);for(let n=this.heap.length>>1;n>=0;n--)ly(this.heap,n);return this.next(),this}forward(e,a){for(let n of this.heap)n.forward(e,a);for(let n=this.heap.length>>1;n>=0;n--)ly(this.heap,n);(this.to-e||this.value.endSide-a)<0&&this.next()}next(){if(this.heap.length==0)this.from=this.to=1e9,this.value=null,this.rank=-1;else{let e=this.heap[0];this.from=e.from,this.to=e.to,this.value=e.value,this.rank=e.rank,e.value&&e.next(),ly(this.heap,0)}}};function ly(t,e){for(let a=t[e];;){let n=(e<<1)+1;if(n>=t.length)break;let r=t[n];if(n+1<t.length&&r.compare(t[n+1])>=0&&(r=t[n+1],n++),a.compare(r)<0)break;t[n]=a,t[e]=r,e=n}}var Ys=class{constructor(e,a,n){this.minPoint=n,this.active=[],this.activeTo=[],this.activeRank=[],this.minActive=-1,this.point=null,this.pointFrom=0,this.pointRank=0,this.to=-1e9,this.endSide=0,this.openStart=-1,this.cursor=Sd.from(e,a,n)}goto(e,a=-1e9){return this.cursor.goto(e,a),this.active.length=this.activeTo.length=this.activeRank.length=0,this.minActive=-1,this.to=e,this.endSide=a,this.openStart=-1,this.next(),this}forward(e,a){for(;this.minActive>-1&&(this.activeTo[this.minActive]-e||this.active[this.minActive].endSide-a)<0;)this.removeActive(this.minActive);this.cursor.forward(e,a)}removeActive(e){eg(this.active,e),eg(this.activeTo,e),eg(this.activeRank,e),this.minActive=q2(this.active,this.activeTo)}addActive(e){let a=0,{value:n,to:r,rank:i}=this.cursor;for(;a<this.activeRank.length&&(i-this.activeRank[a]||r-this.activeTo[a])>0;)a++;tg(this.active,a,n),tg(this.activeTo,a,r),tg(this.activeRank,a,i),e&&tg(e,a,this.cursor.from),this.minActive=q2(this.active,this.activeTo)}next(){let e=this.to,a=this.point;this.point=null;let n=this.openStart<0?[]:null;for(;;){let r=this.minActive;if(r>-1&&(this.activeTo[r]-this.cursor.from||this.active[r].endSide-this.cursor.startSide)<0){if(this.activeTo[r]>e){this.to=this.activeTo[r],this.endSide=this.active[r].endSide;break}this.removeActive(r),n&&eg(n,r)}else if(this.cursor.value)if(this.cursor.from>e){this.to=this.cursor.from,this.endSide=this.cursor.startSide;break}else{let i=this.cursor.value;if(!i.point)this.addActive(n),this.cursor.next();else if(a&&this.cursor.to==this.to&&this.cursor.from<this.cursor.to)this.cursor.next();else{this.point=i,this.pointFrom=this.cursor.from,this.pointRank=this.cursor.rank,this.to=this.cursor.to,this.endSide=i.endSide,this.cursor.next(),this.forward(this.to,this.endSide);break}}else{this.to=this.endSide=1e9;break}}if(n){this.openStart=0;for(let r=n.length-1;r>=0&&n[r]<e;r--)this.openStart++}}activeForPoint(e){if(!this.active.length)return this.active;let a=[];for(let n=this.active.length-1;n>=0&&!(this.activeRank[n]<this.pointRank);n--)(this.activeTo[n]>e||this.activeTo[n]==e&&this.active[n].endSide>=this.point.endSide)&&a.push(this.active[n]);return a.reverse()}openEnd(e){let a=0;for(let n=this.activeTo.length-1;n>=0&&this.activeTo[n]>e;n--)a++;return a}};function X2(t,e,a,n,r,i){t.goto(e),a.goto(n);let o=n+r,s=n,l=n-e,u=!!i.boundChange;for(let c=!1;;){let f=t.to+l-a.to,d=f||t.endSide-a.endSide,h=d<0?t.to+l:a.to,p=Math.min(h,o);if(t.point||a.point?(t.point&&a.point&&ky(t.point,a.point)&&yy(t.activeForPoint(t.to),a.activeForPoint(a.to))||i.comparePoint(s,p,t.point,a.point),c=!1):(c&&(i.boundChange(s),c=!1),p>s&&!yy(t.active,a.active)&&i.compareRange(s,p,t.active,a.active),u&&p<o&&(f||t.openEnd(h)!=a.openEnd(h))&&(c=!0)),h>o)break;s=h,d<=0&&t.next(),d>=0&&a.next()}}function yy(t,e){if(t.length!=e.length)return!1;for(let a=0;a<t.length;a++)if(t[a]!=e[a]&&!ky(t[a],e[a]))return!1;return!0}function eg(t,e){for(let a=e,n=t.length-1;a<n;a++)t[a]=t[a+1];t.pop()}function tg(t,e,a){for(let n=t.length-1;n>=e;n--)t[n+1]=t[n];t[e]=a}function q2(t,e){let a=-1,n=1e9;for(let r=0;r<e.length;r++)(e[r]-n||t[r].endSide-t[a].endSide)<0&&(a=r,n=e[r]);return a}function $a(t,e,a=t.length){let n=0;for(let r=0;r<a&&r<t.length;)t.charCodeAt(r)==9?(n+=e-n%e,r++):(n++,r=Rt(t,r));return n}function cg(t,e,a,n){for(let r=0,i=0;;){if(i>=e)return r;if(r==t.length)break;i+=t.charCodeAt(r)==9?a-i%a:1,r=Rt(t,r)}return n===!0?-1:t.length}var eD=typeof Symbol>"u"?"__\u037C":Symbol.for("\u037C"),Ly=typeof Symbol>"u"?"__styleSet"+Math.floor(Math.random()*1e8):Symbol("styleSet"),tD=typeof globalThis<"u"?globalThis:typeof window<"u"?window:{},Hn=class{constructor(e,a){this.rules=[];let{finish:n}=a||{};function r(o){return/^@/.test(o)?[o]:o.split(/,\s*/)}function i(o,s,l,u){let c=[],f=/^@(\w+)\b/.exec(o[0]),d=f&&f[1]=="keyframes";if(f&&s==null)return l.push(o[0]+";");for(let h in s){let p=s[h];if(/&/.test(h))i(h.split(/,\s*/).map(g=>o.map(b=>g.replace(/&/,b))).reduce((g,b)=>g.concat(b)),p,l);else if(p&&typeof p=="object"){if(!f)throw new RangeError("The value of a property ("+h+") should be a primitive value.");i(r(h),p,c,d)}else p!=null&&c.push(h.replace(/_.*/,"").replace(/[A-Z]/g,g=>"-"+g.toLowerCase())+": "+p+";")}(c.length||d)&&l.push((n&&!f&&!u?o.map(n):o).join(", ")+" {"+c.join(" ")+"}")}for(let o in e)i(r(o),e[o],this.rules)}getRules(){return this.rules.join(`
36
+ `)}static newName(){let e=tD[eD]||1;return tD[eD]=e+1,"\u037C"+e.toString(36)}static mount(e,a,n){let r=e[Ly],i=n&&n.nonce;r?i&&r.setNonce(i):r=new Ey(e,i),r.mount(Array.isArray(a)?a:[a],e)}},aD=new Map,Ey=class{constructor(e,a){let n=e.ownerDocument||e,r=n.defaultView;if(!e.head&&e.adoptedStyleSheets&&r.CSSStyleSheet){let i=aD.get(n);if(i)return e[Ly]=i;this.sheet=new r.CSSStyleSheet,aD.set(n,this)}else this.styleTag=n.createElement("style"),a&&this.styleTag.setAttribute("nonce",a);this.modules=[],e[Ly]=this}mount(e,a){let n=this.sheet,r=0,i=0,o=!1;for(let s=0;s<e.length;s++){let l=e[s],u=this.modules.indexOf(l);if(u<i&&u>-1&&(this.modules.splice(u,1),o=!0,i--,u=-1),u==-1){if(this.modules.splice(i++,0,l),o=!0,n)for(let c=0;c<l.rules.length;c++)n.insertRule(l.rules[c],r++)}else{for(;i<u;)r+=this.modules[i++].rules.length;r+=l.rules.length,i++}}if(n)a.adoptedStyleSheets.indexOf(this.sheet)<0&&(a.adoptedStyleSheets=[this.sheet,...a.adoptedStyleSheets]);else{if(o){let l="";for(let u=0;u<this.modules.length;u++)l+=this.modules[u].getRules()+`
37
+ `;this.styleTag.textContent=l}let s=a.head||a;this.styleTag.parentNode!=s&&s.insertBefore(this.styleTag,s.firstChild)}}setNonce(e){this.styleTag&&this.styleTag.getAttribute("nonce")!=e&&this.styleTag.setAttribute("nonce",e)}};var Ei={8:"Backspace",9:"Tab",10:"Enter",12:"NumLock",13:"Enter",16:"Shift",17:"Control",18:"Alt",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",44:"PrintScreen",45:"Insert",46:"Delete",59:";",61:"=",91:"Meta",92:"Meta",106:"*",107:"+",108:",",109:"-",110:".",111:"/",144:"NumLock",145:"ScrollLock",160:"Shift",161:"Shift",162:"Control",163:"Control",164:"Alt",165:"Alt",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},Zu={48:")",49:"!",50:"@",51:"#",52:"$",53:"%",54:"^",55:"&",56:"*",57:"(",59:":",61:"+",173:"_",186:":",187:"+",188:"<",189:"_",190:">",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},UH=typeof navigator<"u"&&/Mac/.test(navigator.platform),XH=typeof navigator<"u"&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent);for(Nt=0;Nt<10;Nt++)Ei[48+Nt]=Ei[96+Nt]=String(Nt);var Nt;for(Nt=1;Nt<=24;Nt++)Ei[Nt+111]="F"+Nt;var Nt;for(Nt=65;Nt<=90;Nt++)Ei[Nt]=String.fromCharCode(Nt+32),Zu[Nt]=String.fromCharCode(Nt);var Nt;for(fg in Ei)Zu.hasOwnProperty(fg)||(Zu[fg]=Ei[fg]);var fg;function nD(t){var e=UH&&t.metaKey&&t.shiftKey&&!t.ctrlKey&&!t.altKey||XH&&t.shiftKey&&t.key&&t.key.length==1||t.key=="Unidentified",a=!e&&t.key||(t.shiftKey?Zu:Ei)[t.keyCode]||t.key||"Unidentified";return a=="Esc"&&(a="Escape"),a=="Del"&&(a="Delete"),a=="Left"&&(a="ArrowLeft"),a=="Up"&&(a="ArrowUp"),a=="Right"&&(a="ArrowRight"),a=="Down"&&(a="ArrowDown"),a}function Tt(){var t=arguments[0];typeof t=="string"&&(t=document.createElement(t));var e=1,a=arguments[1];if(a&&typeof a=="object"&&a.nodeType==null&&!Array.isArray(a)){for(var n in a)if(Object.prototype.hasOwnProperty.call(a,n)){var r=a[n];typeof r=="string"?t.setAttribute(n,r):r!=null&&(t[n]=r)}e++}for(;e<arguments.length;e++)rD(t,arguments[e]);return t}function rD(t,e){if(typeof e=="string")t.appendChild(document.createTextNode(e));else if(e!=null)if(e.nodeType!=null)t.appendChild(e);else if(Array.isArray(e))for(var a=0;a<e.length;a++)rD(t,e[a]);else throw new RangeError("Unsupported child node: "+e)}var Ba=typeof navigator<"u"?navigator:{userAgent:"",vendor:"",platform:""},Dy=typeof document<"u"?document:{documentElement:{style:{}}},Ny=/Edge\/(\d+)/.exec(Ba.userAgent),UD=/MSIE \d/.test(Ba.userAgent),Qy=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(Ba.userAgent),Bg=!!(UD||Qy||Ny),iD=!Bg&&/gecko\/(\d+)/i.test(Ba.userAgent),Ay=!Bg&&/Chrome\/(\d+)/.exec(Ba.userAgent),oD="webkitFontSmoothing"in Dy.documentElement.style,$y=!Bg&&/Apple Computer/.test(Ba.vendor),sD=$y&&(/Mobile\/\w+/.test(Ba.userAgent)||Ba.maxTouchPoints>2),K={mac:sD||/Mac/.test(Ba.platform),windows:/Win/.test(Ba.platform),linux:/Linux|X11/.test(Ba.platform),ie:Bg,ie_version:UD?Dy.documentMode||6:Qy?+Qy[1]:Ny?+Ny[1]:0,gecko:iD,gecko_version:iD?+(/Firefox\/(\d+)/.exec(Ba.userAgent)||[0,0])[1]:0,chrome:!!Ay,chrome_version:Ay?+Ay[1]:0,ios:sD,android:/Android\b/.test(Ba.userAgent),webkit:oD,webkit_version:oD?+(/\bAppleWebKit\/(\d+)/.exec(Ba.userAgent)||[0,0])[1]:0,safari:$y,safari_version:$y?+(/\bVersion\/(\d+(\.\d+)?)/.exec(Ba.userAgent)||[0,0])[1]:0,tabSize:Dy.documentElement.style.tabSize!=null?"tab-size":"-moz-tab-size"};function Tv(t,e){for(let a in t)a=="class"&&e.class?e.class+=" "+t.class:a=="style"&&e.style?e.style+=";"+t.style:e[a]=t[a];return e}var kg=Object.create(null);function Iv(t,e,a){if(t==e)return!0;t||(t=kg),e||(e=kg);let n=Object.keys(t),r=Object.keys(e);if(n.length-0!=r.length-0)return!1;for(let i of n)if(i!=a&&(r.indexOf(i)==-1||t[i]!==e[i]))return!1;return!0}function qH(t,e){for(let a=t.attributes.length-1;a>=0;a--){let n=t.attributes[a].name;e[n]==null&&t.removeAttribute(n)}for(let a in e){let n=e[a];a=="style"?t.style.cssText=n:t.getAttribute(a)!=n&&t.setAttribute(a,n)}}function lD(t,e,a){let n=!1;if(e)for(let r in e)a&&r in a||(n=!0,r=="style"?t.style.cssText="":t.removeAttribute(r));if(a)for(let r in a)e&&e[r]==a[r]||(n=!0,r=="style"?t.style.cssText=a[r]:t.setAttribute(r,a[r]));return n}function ZH(t){let e=Object.create(null);for(let a=0;a<t.attributes.length;a++){let n=t.attributes[a];e[n.name]=n.value}return e}var xn=class{eq(e){return!1}updateDOM(e,a,n){return!1}compare(e){return this==e||this.constructor==e.constructor&&this.eq(e)}get estimatedHeight(){return-1}get lineBreaks(){return 0}ignoreEvent(e){return!0}coordsAt(e,a,n){return null}get isHidden(){return!1}get editable(){return!1}destroy(e){}},ya=(function(t){return t[t.Text=0]="Text",t[t.WidgetBefore=1]="WidgetBefore",t[t.WidgetAfter=2]="WidgetAfter",t[t.WidgetRange=3]="WidgetRange",t})(ya||(ya={})),de=class extends Fn{constructor(e,a,n,r){super(),this.startSide=e,this.endSide=a,this.widget=n,this.spec=r}get heightRelevant(){return!1}static mark(e){return new Md(e)}static widget(e){let a=Math.max(-1e4,Math.min(1e4,e.side||0)),n=!!e.block;return a+=n&&!e.inlineOrder?a>0?3e8:-4e8:a>0?1e8:-1e8,new al(e,a,a,n,e.widget||null,!1)}static replace(e){let a=!!e.block,n,r;if(e.isBlockGap)n=-5e8,r=4e8;else{let{start:i,end:o}=XD(e,a);n=(i?a?-3e8:-1:5e8)-1,r=(o?a?2e8:1:-6e8)+1}return new al(e,n,r,a,e.widget||null,!0)}static line(e){return new Dd(e)}static set(e,a=!1){return Ze.of(e,a)}hasHeight(){return this.widget?this.widget.estimatedHeight>-1:!1}};de.none=Ze.empty;var Md=class t extends de{constructor(e){let{start:a,end:n}=XD(e);super(a?-1:5e8,n?1:-6e8,null,e),this.tagName=e.tagName||"span",this.attrs=e.class&&e.attributes?Tv(e.attributes,{class:e.class}):e.class?{class:e.class}:e.attributes||kg}eq(e){return this==e||e instanceof t&&this.tagName==e.tagName&&Iv(this.attrs,e.attrs)}range(e,a=e){if(e>=a)throw new RangeError("Mark decorations may not be empty");return super.range(e,a)}};Md.prototype.point=!1;var Dd=class t extends de{constructor(e){super(-2e8,-2e8,null,e)}eq(e){return e instanceof t&&this.spec.class==e.spec.class&&Iv(this.spec.attributes,e.spec.attributes)}range(e,a=e){if(a!=e)throw new RangeError("Line decoration ranges must be zero-length");return super.range(e,a)}};Dd.prototype.mapMode=Sa.TrackBefore;Dd.prototype.point=!0;var al=class t extends de{constructor(e,a,n,r,i,o){super(a,n,i,e),this.block=r,this.isReplace=o,this.mapMode=r?a<=0?Sa.TrackBefore:Sa.TrackAfter:Sa.TrackDel}get type(){return this.startSide!=this.endSide?ya.WidgetRange:this.startSide<=0?ya.WidgetBefore:ya.WidgetAfter}get heightRelevant(){return this.block||!!this.widget&&(this.widget.estimatedHeight>=5||this.widget.lineBreaks>0)}eq(e){return e instanceof t&&FH(this.widget,e.widget)&&this.block==e.block&&this.startSide==e.startSide&&this.endSide==e.endSide}range(e,a=e){if(this.isReplace&&(e>a||e==a&&this.startSide>0&&this.endSide<=0))throw new RangeError("Invalid range for replacement decoration");if(!this.isReplace&&a!=e)throw new RangeError("Widget decorations can only have zero-length ranges");return super.range(e,a)}};al.prototype.point=!0;function XD(t,e=!1){let{inclusiveStart:a,inclusiveEnd:n}=t;return a==null&&(a=t.inclusive),n==null&&(n=t.inclusive),{start:a??e,end:n??e}}function FH(t,e){return t==e||!!(t&&e&&t.compare(e))}function Yu(t,e,a,n=0){let r=a.length-1;r>=0&&a[r]+n>=t?a[r]=Math.max(a[r],e):a.push(t,e)}var Lg=class t extends Fn{constructor(e,a,n){super(),this.tagName=e,this.attributes=a,this.rank=n}eq(e){return e==this||e instanceof t&&this.tagName==e.tagName&&Iv(this.attributes,e.attributes)}static create(e){return new t(e.tagName,e.attributes||kg,e.rank==null?50:Math.max(0,Math.min(e.rank,100)))}static set(e,a=!1){return Ze.of(e,a)}};Lg.prototype.startSide=Lg.prototype.endSide=-1;var oa=t=>t.nodeType==1,Ku=t=>t.nodeType==3;function Nd(t){let e;return t.nodeType==11?e=t.getSelection?t:t.ownerDocument:e=t,e.getSelection()}function By(t,e){return e?t==e||t.contains(e.nodeType!=1?e.parentNode:e):!1}function kd(t,e){if(!e.anchorNode)return!1;try{return By(t,e.anchorNode)}catch{return!1}}function xg(t){return Ku(t)?Qd(t,0,t.nodeValue.length).getClientRects():oa(t)?t.getClientRects():[]}function Ld(t,e,a,n){return a?uD(t,e,a,n,-1)||uD(t,e,a,n,1):!1}function Xo(t){for(var e=0;;e++)if(t=t.previousSibling,!t)return e}function Eg(t){return oa(t)&&/^(DIV|P|LI|UL|OL|BLOCKQUOTE|DD|DT|H\d|SECTION|PRE)$/.test(t.nodeName)}function uD(t,e,a,n,r){for(;;){if(t==a&&e==n)return!0;if(e==(r<0?0:Ri(t))){if(t.nodeName=="DIV")return!1;let i=t.parentNode;if(!i||!oa(i))return!1;e=Xo(t)+(r<0?0:1),t=i}else if(oa(t)){if(t=t.childNodes[e+(r<0?-1:0)],oa(t)&&(t.nodeName=="IMG"||t.nodeName=="BR"||t.contentEditable=="false"))return!1;e=r<0?Ri(t):0}else return!1}}function Ri(t){return Ku(t)?t.nodeValue.length:t.childNodes.length}function Ag(t,e){let{left:a,right:n}=t;if(a==n)return t;let r=e?a:n;return{left:r,right:r,top:t.top,bottom:t.bottom}}function GH(t){let e=t.visualViewport;return e?{left:0,right:e.width,top:0,bottom:e.height}:{left:0,right:t.innerWidth,top:0,bottom:t.innerHeight}}function qD(t,e){let a=e.width/t.offsetWidth,n=e.height/t.offsetHeight;return(a>.995&&a<1.005||!isFinite(a)||Math.abs(e.width-t.offsetWidth)<1)&&(a=1),(n>.995&&n<1.005||!isFinite(n)||Math.abs(e.height-t.offsetHeight)<1)&&(n=1),{scaleX:a,scaleY:n}}function HH(t,e,a,n,r,i,o,s){let l=t.ownerDocument,u=l.defaultView||window;for(let c=t,f=!1;c&&!f;)if(oa(c)){let d,h=c==l.body,p=1,g=1;if(h)d=GH(u);else{if(/^(fixed|sticky)$/.test(getComputedStyle(c).position)&&(f=!0),c.scrollHeight<=c.clientHeight&&c.scrollWidth<=c.clientWidth){c=c.assignedSlot||c.parentNode;continue}let O=c.getBoundingClientRect();({scaleX:p,scaleY:g}=qD(c,O)),d={left:O.left,right:O.left+c.clientWidth*p,top:O.top,bottom:O.top+c.clientHeight*g}}let b=0,m=0;if(r=="nearest")e.top<d.top+o?(m=e.top-(d.top+o),a>0&&e.bottom>d.bottom+m&&(m=e.bottom-d.bottom+o)):e.bottom>d.bottom-o&&(m=e.bottom-d.bottom+o,a<0&&e.top-m<d.top&&(m=e.top-(d.top+o)));else{let O=e.bottom-e.top,x=d.bottom-d.top;m=(r=="center"&&O<=x?e.top+O/2-x/2:r=="start"||r=="center"&&a<0?e.top-o:e.bottom-x+o)-d.top}if(n=="nearest"?e.left<d.left+i?(b=e.left-(d.left+i),a>0&&e.right>d.right+b&&(b=e.right-d.right+i)):e.right>d.right-i&&(b=e.right-d.right+i,a<0&&e.left<d.left+b&&(b=e.left-(d.left+i))):b=(n=="center"?e.left+(e.right-e.left)/2-(d.right-d.left)/2:n=="start"==s?e.left-i:e.right-(d.right-d.left)+i)-d.left,b||m)if(h)u.scrollBy(b,m);else{let O=0,x=0;if(m){let S=c.scrollTop;c.scrollTop+=m/g,x=(c.scrollTop-S)*g}if(b){let S=c.scrollLeft;c.scrollLeft+=b/p,O=(c.scrollLeft-S)*p}e={left:e.left-O,top:e.top-x,right:e.right-O,bottom:e.bottom-x},O&&Math.abs(O-b)<1&&(n="nearest"),x&&Math.abs(x-m)<1&&(r="nearest")}if(h)break;(e.top<d.top||e.bottom>d.bottom||e.left<d.left||e.right>d.right)&&(e={left:Math.max(e.left,d.left),right:Math.min(e.right,d.right),top:Math.max(e.top,d.top),bottom:Math.min(e.bottom,d.bottom)}),c=c.assignedSlot||c.parentNode}else if(c.nodeType==11)c=c.host;else break}function ZD(t,e=!0){let a=t.ownerDocument,n=null,r=null;for(let i=t.parentNode;i&&!(i==a.body||(!e||n)&&r);)if(oa(i))!r&&i.scrollHeight>i.clientHeight&&(r=i),e&&!n&&i.scrollWidth>i.clientWidth&&(n=i),i=i.assignedSlot||i.parentNode;else if(i.nodeType==11)i=i.host;else break;return{x:n,y:r}}var zy=class{constructor(){this.anchorNode=null,this.anchorOffset=0,this.focusNode=null,this.focusOffset=0}eq(e){return this.anchorNode==e.anchorNode&&this.anchorOffset==e.anchorOffset&&this.focusNode==e.focusNode&&this.focusOffset==e.focusOffset}setRange(e){let{anchorNode:a,focusNode:n}=e;this.set(a,Math.min(e.anchorOffset,a?Ri(a):0),n,Math.min(e.focusOffset,n?Ri(n):0))}set(e,a,n,r){this.anchorNode=e,this.anchorOffset=a,this.focusNode=n,this.focusOffset=r}};function FD(t){let e=[];for(let a=t;a;a=a.nodeType==11?a.host:a.parentNode)oa(a)&&e.push({node:a,left:a.scrollLeft,top:a.scrollTop});return e}function GD(t,e=!0){for(let{node:a,left:n,top:r}of t)e&&a.scrollTop!=r&&(a.scrollTop=r),a.scrollLeft!=n&&(a.scrollLeft=n)}var Js=null;K.safari&&K.safari_version>=26&&(Js=!1);function HD(t){if(t.setActive)return t.setActive();if(Js)return t.focus(Js);let e=FD(t);t.focus(Js==null?{get preventScroll(){return Js={preventScroll:!0},!0}}:void 0),Js||(Js=!1,GD(e))}var cD;function Qd(t,e,a=e){let n=cD||(cD=document.createRange());return n.setEnd(t,a),n.setStart(t,e),n}function Wu(t,e,a,n){let r={key:e,code:e,keyCode:a,which:a,cancelable:!0};n&&({altKey:r.altKey,ctrlKey:r.ctrlKey,shiftKey:r.shiftKey,metaKey:r.metaKey}=n);let i=new KeyboardEvent("keydown",r);i.synthetic=!0,t.dispatchEvent(i);let o=new KeyboardEvent("keyup",r);return o.synthetic=!0,t.dispatchEvent(o),i.defaultPrevented||o.defaultPrevented}function jH(t){for(;t;){if(t&&(t.nodeType==9||t.nodeType==11&&t.host))return t;t=t.assignedSlot||t.parentNode}return null}function VH(t,e){let a=e.focusNode,n=e.focusOffset;if(!a||e.anchorNode!=a||e.anchorOffset!=n)return!1;for(n=Math.min(n,Ri(a));;)if(n){if(!oa(a))return!1;let r=a.childNodes[n-1];r.contentEditable=="false"?n--:(a=r,n=Ri(a))}else{if(a==t)return!0;n=Xo(a),a=a.parentNode}}function jD(t){return t instanceof Window?t.pageYOffset>Math.max(0,t.document.documentElement.scrollHeight-t.innerHeight-4):t.scrollTop>Math.max(1,t.scrollHeight-t.clientHeight-4)}function VD(t,e){for(let a=t,n=e;;){if(Ku(a)&&n>0)return{node:a,offset:n};if(oa(a)&&n>0){if(a.contentEditable=="false")return null;a=a.childNodes[n-1],n=Ri(a)}else if(a.parentNode&&!Eg(a))n=Xo(a),a=a.parentNode;else return null}}function YD(t,e){for(let a=t,n=e;;){if(Ku(a)&&n<a.nodeValue.length)return{node:a,offset:n};if(oa(a)&&n<a.childNodes.length){if(a.contentEditable=="false")return null;a=a.childNodes[n],n=0}else if(a.parentNode&&!Eg(a))n=Xo(a)+1,a=a.parentNode;else return null}}var Vr=class t{constructor(e,a,n=!0){this.node=e,this.offset=a,this.precise=n}static before(e,a){return new t(e.parentNode,Xo(e),a)}static after(e,a){return new t(e.parentNode,Xo(e)+1,a)}},st=(function(t){return t[t.LTR=0]="LTR",t[t.RTL=1]="RTL",t})(st||(st={})),nl=st.LTR,Pv=st.RTL;function WD(t){let e=[];for(let a=0;a<t.length;a++)e.push(1<<+t[a]);return e}var YH=WD("88888888888888888888888888888888888666888888787833333333337888888000000000000000000000000008888880000000000000000000000000088888888888888888888888888888888888887866668888088888663380888308888800000000000000000000000800000000000000000000000000000008"),WH=WD("4444448826627288999999999992222222222222222222222222222222222222222222222229999999999999999999994444444444644222822222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222999999949999999229989999223333333333"),Uy=Object.create(null),jr=[];for(let t of["()","[]","{}"]){let e=t.charCodeAt(0),a=t.charCodeAt(1);Uy[e]=a,Uy[a]=-e}function KD(t){return t<=247?YH[t]:1424<=t&&t<=1524?2:1536<=t&&t<=1785?WH[t-1536]:1774<=t&&t<=2220?4:8192<=t&&t<=8204?256:64336<=t&&t<=65023?4:1}var KH=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac\ufb50-\ufdff]/,Yn=class{get dir(){return this.level%2?Pv:nl}constructor(e,a,n){this.from=e,this.to=a,this.level=n}side(e,a){return this.dir==a==e?this.to:this.from}forward(e,a){return e==(this.dir==a)}static find(e,a,n,r){let i=-1;for(let o=0;o<e.length;o++){let s=e[o];if(s.from<=a&&s.to>=a){if(s.level==n)return o;(i<0||(r!=0?r<0?s.from<a:s.to>a:e[i].level>s.level))&&(i=o)}}if(i<0)throw new RangeError("Index out of range");return i}};function JD(t,e){if(t.length!=e.length)return!1;for(let a=0;a<t.length;a++){let n=t[a],r=e[a];if(n.from!=r.from||n.to!=r.to||n.direction!=r.direction||!JD(n.inner,r.inner))return!1}return!0}var ot=[];function JH(t,e,a,n,r){for(let i=0;i<=n.length;i++){let o=i?n[i-1].to:e,s=i<n.length?n[i].from:a,l=i?256:r;for(let u=o,c=l,f=l;u<s;u++){let d=KD(t.charCodeAt(u));d==512?d=c:d==8&&f==4&&(d=16),ot[u]=d==4?2:d,d&7&&(f=d),c=d}for(let u=o,c=l,f=l;u<s;u++){let d=ot[u];if(d==128)u<s-1&&c==ot[u+1]&&c&24?d=ot[u]=c:ot[u]=256;else if(d==64){let h=u+1;for(;h<s&&ot[h]==64;)h++;let p=u&&c==8||h<a&&ot[h]==8?f==1?1:8:256;for(let g=u;g<h;g++)ot[g]=p;u=h-1}else d==8&&f==1&&(ot[u]=1);c=d,d&7&&(f=d)}}}function e7(t,e,a,n,r){let i=r==1?2:1;for(let o=0,s=0,l=0;o<=n.length;o++){let u=o?n[o-1].to:e,c=o<n.length?n[o].from:a;for(let f=u,d,h,p;f<c;f++)if(h=Uy[d=t.charCodeAt(f)])if(h<0){for(let g=s-3;g>=0;g-=3)if(jr[g+1]==-h){let b=jr[g+2],m=b&2?r:b&4?b&1?i:r:0;m&&(ot[f]=ot[jr[g]]=m),s=g;break}}else{if(jr.length==189)break;jr[s++]=f,jr[s++]=d,jr[s++]=l}else if((p=ot[f])==2||p==1){let g=p==r;l=g?0:1;for(let b=s-3;b>=0;b-=3){let m=jr[b+2];if(m&2)break;if(g)jr[b+2]|=2;else{if(m&4)break;jr[b+2]|=4}}}}}function t7(t,e,a,n){for(let r=0,i=n;r<=a.length;r++){let o=r?a[r-1].to:t,s=r<a.length?a[r].from:e;for(let l=o;l<s;){let u=ot[l];if(u==256){let c=l+1;for(;;)if(c==s){if(r==a.length)break;c=a[r++].to,s=r<a.length?a[r].from:e}else if(ot[c]==256)c++;else break;let f=i==1,d=(c<e?ot[c]:n)==1,h=f==d?f?1:2:n;for(let p=c,g=r,b=g?a[g-1].to:t;p>l;)p==b&&(p=a[--g].from,b=g?a[g-1].to:t),ot[--p]=h;l=c}else i=u,l++}}}function Xy(t,e,a,n,r,i,o){let s=n%2?2:1;if(n%2==r%2)for(let l=e,u=0;l<a;){let c=!0,f=!1;if(u==i.length||l<i[u].from){let g=ot[l];g!=s&&(c=!1,f=g==16)}let d=!c&&s==1?[]:null,h=c?n:n+1,p=l;e:for(;;)if(u<i.length&&p==i[u].from){if(f)break e;let g=i[u];if(!c)for(let b=g.to,m=u+1;;){if(b==a)break e;if(m<i.length&&i[m].from==b)b=i[m++].to;else{if(ot[b]==s)break e;break}}if(u++,d)d.push(g);else{g.from>l&&o.push(new Yn(l,g.from,h));let b=g.direction==nl!=!(h%2);qy(t,b?n+1:n,r,g.inner,g.from,g.to,o),l=g.to}p=g.to}else{if(p==a||(c?ot[p]!=s:ot[p]==s))break;p++}d?Xy(t,l,p,n+1,r,d,o):l<p&&o.push(new Yn(l,p,h)),l=p}else for(let l=a,u=i.length;l>e;){let c=!0,f=!1;if(!u||l>i[u-1].to){let g=ot[l-1];g!=s&&(c=!1,f=g==16)}let d=!c&&s==1?[]:null,h=c?n:n+1,p=l;e:for(;;)if(u&&p==i[u-1].to){if(f)break e;let g=i[--u];if(!c)for(let b=g.from,m=u;;){if(b==e)break e;if(m&&i[m-1].to==b)b=i[--m].from;else{if(ot[b-1]==s)break e;break}}if(d)d.push(g);else{g.to<l&&o.push(new Yn(g.to,l,h));let b=g.direction==nl!=!(h%2);qy(t,b?n+1:n,r,g.inner,g.from,g.to,o),l=g.from}p=g.from}else{if(p==e||(c?ot[p-1]!=s:ot[p-1]==s))break;p--}d?Xy(t,p,l,n+1,r,d,o):p<l&&o.push(new Yn(p,l,h)),l=p}}function qy(t,e,a,n,r,i,o){let s=e%2?2:1;JH(t,r,i,n,s),e7(t,r,i,n,s),t7(r,i,n,s),Xy(t,r,i,e,a,n,o)}function a7(t,e,a){if(!t)return[new Yn(0,0,e==Pv?1:0)];if(e==nl&&!a.length&&!KH.test(t))return eN(t.length);if(a.length)for(;t.length>ot.length;)ot[ot.length]=256;let n=[],r=e==nl?0:1;return qy(t,r,r,a,0,t.length,n),n}function eN(t){return[new Yn(0,t,0)]}var tN="";function n7(t,e,a,n,r){var i;if(!t.length)return null;let o=n.head-t.from,s;if(n.head==t.from&&n.assoc<0){if(!r)return null;o=e[s=0].side(!1,a)}else if(n.head==t.to&&n.assoc>0){if(r)return null;o=e[s=e.length-1].side(!0,a)}else s=Yn.find(e,o,(i=n.bidiLevel)!==null&&i!==void 0?i:-1,n.assoc);let l=e[s],u=l.side(r,a);if(o==u){let d=s+=r?1:-1;if(d<0||d>=e.length)return null;l=e[s=d],o=l.side(!r,a),u=l.side(r,a)}let c=Rt(t.text,o,l.forward(r,a));(c<l.from||c>l.to)&&(c=u),tN=t.text.slice(Math.min(o,c),Math.max(o,c));let f=s==(r?e.length-1:0)?null:e[s+(r?1:-1)];if(c==u){if(!f)return r?I.cursor(t.to,1):I.cursor(t.from,-1);if(f.level+(r?0:1)<l.level)return I.cursor(f.side(!r,a)+t.from,f.forward(r,a)?1:-1,f.level)}return I.cursor(c+t.from,l.forward(r,a)?-1:1,l.level)}function r7(t,e,a){for(let n=e;n<a;n++){let r=KD(t.charCodeAt(n));if(r==1)return nl;if(r==2||r==4)return Pv}return nl}var aN=te.define(),nN=te.define(),rN=te.define(),iN=te.define(),Zy=te.define(),oN=te.define(),sN=te.define(),Mv=te.define(),Dv=te.define(),lN=te.define({combine:t=>t.some(e=>e)}),uN=te.define({combine:t=>t.some(e=>e)}),cN=te.define(),Ed=class t{constructor(e,a,n,r,i,o=!1){this.range=e,this.y=a,this.x=n,this.yMargin=r,this.xMargin=i,this.isSnapshot=o}map(e){return e.empty?this:new t(this.range.map(e),this.y,this.x,this.yMargin,this.xMargin,this.isSnapshot)}clip(e){return this.range.to<=e.doc.length?this:new t(I.cursor(e.doc.length),this.y,this.x,this.yMargin,this.xMargin,this.isSnapshot)}},dg=Te.define({map:(t,e)=>t.map(e)}),fN=Te.define();function Wn(t,e,a){let n=t.facet(iN);n.length?n[0](e):window.onerror&&window.onerror(String(e),a,void 0,void 0,e)||(a?console.error(a+":",e):console.error(e))}var Ai=te.define({combine:t=>t.length?t[0]:!0}),i7=0,Gu=te.define({combine(t){return t.filter((e,a)=>{for(let n=0;n<a;n++)if(t[n].plugin==e.plugin)return!1;return!0})}}),jt=class t{constructor(e,a,n,r,i){this.id=e,this.create=a,this.domEventHandlers=n,this.domEventObservers=r,this.baseExtensions=i(this),this.extension=this.baseExtensions.concat(Gu.of({plugin:this,arg:void 0}))}of(e){return this.baseExtensions.concat(Gu.of({plugin:this,arg:e}))}static define(e,a){let{eventHandlers:n,eventObservers:r,provide:i,decorations:o}=a||{};return new t(i7++,e,n,r,s=>{let l=[];return o&&l.push(zg.of(u=>{let c=u.plugin(s);return c?o(c):de.none})),i&&l.push(i(s)),l})}static fromClass(e,a){return t.define((n,r)=>new e(n,r),a)}},Ad=class{constructor(e){this.spec=e,this.mustUpdate=null,this.value=null}get plugin(){return this.spec&&this.spec.plugin}update(e){if(this.value){if(this.mustUpdate){let a=this.mustUpdate;if(this.mustUpdate=null,this.value.update)try{this.value.update(a)}catch(n){if(Wn(a.state,n,"CodeMirror plugin crashed"),this.value.destroy)try{this.value.destroy()}catch{}this.deactivate()}}}else if(this.spec)try{this.value=this.spec.plugin.create(e,this.spec.arg)}catch(a){Wn(e.state,a,"CodeMirror plugin crashed"),this.deactivate()}return this}destroy(e){var a;if(!((a=this.value)===null||a===void 0)&&a.destroy)try{this.value.destroy()}catch(n){Wn(e.state,n,"CodeMirror plugin crashed")}}deactivate(){this.spec=this.value=null}},dN=te.define(),Nv=te.define(),zg=te.define(),hN=te.define(),Qv=te.define(),Bd=te.define(),pN=te.define();function fD(t,e){let a=t.state.facet(pN);if(!a.length)return a;let n=a.map(i=>i instanceof Function?i(t):i),r=[];return Ze.spans(n,e.from,e.to,{point(){},span(i,o,s,l){let u=i-e.from,c=o-e.from,f=r;for(let d=s.length-1;d>=0;d--,l--){let h=s[d].spec.bidiIsolate,p;if(h==null&&(h=r7(e.text,u,c)),l>0&&f.length&&(p=f[f.length-1]).to==u&&p.direction==h)p.to=c,f=p.inner;else{let g={from:u,to:c,direction:h,inner:[]};f.push(g),f=g.inner}}}}),r}var mN=te.define();function gN(t){let e=0,a=0,n=0,r=0;for(let i of t.state.facet(mN)){let o=i(t);o&&(o.left!=null&&(e=Math.max(e,o.left)),o.right!=null&&(a=Math.max(a,o.right)),o.top!=null&&(n=Math.max(n,o.top)),o.bottom!=null&&(r=Math.max(r,o.bottom)))}return{left:e,right:a,top:n,bottom:r}}var vd=te.define(),mr=class t{constructor(e,a,n,r){this.fromA=e,this.toA=a,this.fromB=n,this.toB=r}join(e){return new t(Math.min(this.fromA,e.fromA),Math.max(this.toA,e.toA),Math.min(this.fromB,e.fromB),Math.max(this.toB,e.toB))}addToSet(e){let a=e.length,n=this;for(;a>0;a--){let r=e[a-1];if(!(r.fromA>n.toA)){if(r.toA<n.fromA)break;n=n.join(r),e.splice(a-1,1)}}return e.splice(a,0,n),e}static extendWithRanges(e,a){if(a.length==0)return e;let n=[];for(let r=0,i=0,o=0;;){let s=r<e.length?e[r].fromB:1e9,l=i<a.length?a[i]:1e9,u=Math.min(s,l);if(u==1e9)break;let c=u+o,f=u,d=c;for(;;)if(i<a.length&&a[i]<=f){let h=a[i+1];i+=2,f=Math.max(f,h);for(let p=r;p<e.length&&e[p].fromB<=f;p++)o=e[p].toA-e[p].toB;d=Math.max(d,h+o)}else if(r<e.length&&e[r].fromB<=f){let h=e[r++];f=Math.max(f,h.toB),d=Math.max(d,h.toA),o=h.toA-h.toB}else break;n.push(new t(c,d,u,f))}return n}},_g=class t{constructor(e,a,n){this.view=e,this.state=a,this.transactions=n,this.flags=0,this.startState=e.state,this.changes=Qa.empty(this.startState.doc.length);for(let i of n)this.changes=this.changes.compose(i.changes);let r=[];this.changes.iterChangedRanges((i,o,s,l)=>r.push(new mr(i,o,s,l))),this.changedRanges=r}static create(e,a,n){return new t(e,a,n)}get viewportChanged(){return(this.flags&4)>0}get viewportMoved(){return(this.flags&8)>0}get heightChanged(){return(this.flags&2)>0}get geometryChanged(){return this.docChanged||(this.flags&18)>0}get focusChanged(){return(this.flags&1)>0}get docChanged(){return!this.changes.empty}get selectionSet(){return this.transactions.some(e=>e.selection)}get empty(){return this.flags==0&&this.transactions.length==0}},o7=[],xt=class{constructor(e,a,n=0){this.dom=e,this.length=a,this.flags=n,this.parent=null,e.cmTile=this}get breakAfter(){return this.flags&1}get children(){return o7}isWidget(){return!1}get isHidden(){return!1}isComposite(){return!1}isLine(){return!1}isText(){return!1}isBlock(){return!1}get domAttrs(){return null}sync(e){if(this.flags|=2,this.flags&4){this.flags&=-5;let a=this.domAttrs;a&&qH(this.dom,a)}}toString(){return this.constructor.name+(this.children.length?`(${this.children})`:"")+(this.breakAfter?"#":"")}destroy(){this.parent=null}setDOM(e){this.dom=e,e.cmTile=this}get posAtStart(){return this.parent?this.parent.posBefore(this):0}get posAtEnd(){return this.posAtStart+this.length}posBefore(e,a=this.posAtStart){let n=a;for(let r of this.children){if(r==e)return n;n+=r.length+r.breakAfter}throw new RangeError("Invalid child in posBefore")}posAfter(e){return this.posBefore(e)+e.length}covers(e){return!0}coordsIn(e,a,n){return null}domPosFor(e,a){let n=Xo(this.dom),r=this.length?e>0:a>0;return new Vr(this.parent.dom,n+(r?1:0),e==0||e==this.length)}markDirty(e){this.flags&=-3,e&&(this.flags|=4),this.parent&&this.parent.flags&2&&this.parent.markDirty(!1)}get overrideDOMText(){return null}get root(){for(let e=this;e;e=e.parent)if(e instanceof ec)return e;return null}static get(e){return e.cmTile}},Ju=class extends xt{constructor(e){super(e,0),this._children=[]}isComposite(){return!0}get children(){return this._children}get lastChild(){return this.children.length?this.children[this.children.length-1]:null}append(e){this.children.push(e),e.parent=this}sync(e){if(this.flags&2)return;super.sync(e);let a=this.dom,n=null,r,i=e?.node==a?e:null,o=0;for(let s of this.children){if(s.sync(e),o+=s.length+s.breakAfter,r=n?n.nextSibling:a.firstChild,i&&r!=s.dom&&(i.written=!0),s.dom.parentNode==a)for(;r&&r!=s.dom;)r=dD(r);else a.insertBefore(s.dom,r);n=s.dom}for(r=n?n.nextSibling:a.firstChild,i&&r&&(i.written=!0);r;)r=dD(r);this.length=o}};function dD(t){let e=t.nextSibling;return t.parentNode.removeChild(t),e}var ec=class extends Ju{constructor(e,a){super(a),this.view=e}owns(e){for(;e;e=e.parent)if(e==this)return!0;return!1}isBlock(){return!0}nearest(e){for(;;){if(!e)return null;let a=xt.get(e);if(a&&this.owns(a))return a;e=e.parentNode}}blockTiles(e){for(let a=[],n=this,r=0,i=0;;)if(r==n.children.length){if(!a.length)return;n=n.parent,n.breakAfter&&i++,r=a.pop()}else{let o=n.children[r++];if(o instanceof _i)a.push(r),n=o,r=0;else{let s=i+o.length,l=e(o,i);if(l!==void 0)return l;i=s+o.breakAfter}}}resolveBlock(e,a){let n,r=-1,i,o=-1;if(this.blockTiles((s,l)=>{let u=l+s.length;if(e>=l&&e<=u){if(s.isWidget()&&a>=-1&&a<=1){if(s.flags&32)return!0;s.flags&16&&(n=void 0)}(l<e||e==u&&(a<-1?s.length:s.covers(1)))&&(!n||!s.isWidget()&&n.isWidget())&&(n=s,r=e-l),(u>e||e==l&&(a>1?s.length:s.covers(-1)))&&(!i||!s.isWidget()&&i.isWidget())&&(i=s,o=e-l)}}),!n&&!i)throw new Error("No tile at position "+e);return n&&a<0||!i?{tile:n,offset:r}:{tile:i,offset:o}}},_i=class t extends Ju{constructor(e,a){super(e),this.wrapper=a}isBlock(){return!0}covers(e){return this.children.length?e<0?this.children[0].covers(-1):this.lastChild.covers(1):!1}get domAttrs(){return this.wrapper.attributes}static of(e,a){let n=new t(a||document.createElement(e.tagName),e);return a||(n.flags|=4),n}},tc=class t extends Ju{constructor(e,a){super(e),this.attrs=a}isLine(){return!0}static start(e,a,n){let r=new t(a||document.createElement("div"),e);return(!a||!n)&&(r.flags|=4),r}get domAttrs(){return this.attrs}resolveInline(e,a,n=!1){let r=null,i=-1,o=null,s=-1;function l(c,f){for(let d=0,h=0;d<c.children.length&&h<=f;d++){let p=c.children[d],g=h+p.length;g>=f&&(p.isComposite()?l(p,f-h):(!o||n&&o.isHidden&&(a>0&&!(o.flags&32)||n&&l7(o,p)))&&(g>f||p.flags&32&&a<=1)?(o=p,s=f-h):(h<f||p.flags&16&&!(n&&p.isHidden)&&a>=-1)&&(r=p,i=f-h)),h=g}}l(this,e);let u=(a<0?r:o)||r||o;return u?{tile:u,offset:u==r?i:s}:null}coordsIn(e,a,n){let r=this.resolveInline(e,a,!0);return r?r.tile.coordsIn(Math.max(0,r.offset),a,n):s7(this)}domIn(e,a){let n=this.resolveInline(e,a);if(n){let{tile:r,offset:i}=n;if(this.dom.contains(r.dom))return r.isText()?new Vr(r.dom,Math.min(r.dom.nodeValue.length,i)):r.domPosFor(i,r.flags&16?1:r.flags&32?-1:a);let o=n.tile.parent,s=!1;for(let l of o.children){if(s)return new Vr(l.dom,0);l==n.tile&&(s=!0)}}return new Vr(this.dom,0)}};function s7(t){let e=t.dom.lastChild;if(!e)return t.dom.getBoundingClientRect();let a=xg(e);return a[a.length-1]||null}function l7(t,e){let a=t.coordsIn(0,1),n=e.coordsIn(0,1);return a&&n&&n.top<a.bottom}var Ka=class t extends Ju{constructor(e,a){super(e),this.mark=a}get domAttrs(){return this.mark.attrs}static of(e,a){let n=new t(a||document.createElement(e.tagName),e);return a||(n.flags|=4),n}},el=class t extends xt{constructor(e,a){super(e,a.length),this.text=a}sync(e){this.flags&2||(super.sync(e),this.dom.nodeValue!=this.text&&(e&&e.node==this.dom&&(e.written=!0),this.dom.nodeValue=this.text))}isText(){return!0}toString(){return JSON.stringify(this.text)}coordsIn(e,a,n){let r=this.dom.nodeValue.length;e>r&&(e=r);let i=e,o=e,s=0;e==0&&a<0||e==r&&a>=0?K.chrome||K.gecko||(e?(i--,s=1):o<r&&(o++,s=-1)):a<0?i--:o<r&&o++;let l=Qd(this.dom,i,o).getClientRects();if(!l.length)return null;let u=l[(s?s<0:a>=0)?0:l.length-1];return K.safari&&!s&&u.width==0&&(u=Array.prototype.find.call(l,c=>c.width)||u),n==null?u:Ag(u,(s?s>0:a<0)==n)}static of(e,a){let n=new t(a||document.createTextNode(e),e);return a||(n.flags|=2),n}},rl=class t extends xt{constructor(e,a,n,r){super(e,a,r),this.widget=n}isWidget(){return!0}get isHidden(){return this.widget.isHidden}covers(e){return this.flags&48?!1:(this.flags&(e<0?64:128))>0}coordsIn(e,a){return this.coordsInWidget(e,a,!1)}coordsInWidget(e,a,n){let r=this.widget.coordsAt(this.dom,e,a);if(r)return r;if(n)return Ag(this.dom.getBoundingClientRect(),this.length?e==0:a<=0);{let i=this.dom.getClientRects(),o=null;if(!i.length)return null;let s=this.flags&16?!0:this.flags&32?!1:e>0;for(let l=s?i.length-1:0;o=i[l],!(e>0?l==0:l==i.length-1||o.top<o.bottom);l+=s?-1:1);return Ag(o,!s)}}get overrideDOMText(){if(!this.length)return Me.empty;let{root:e}=this;if(!e)return Me.empty;let a=this.posAtStart;return e.view.state.doc.slice(a,a+this.length)}destroy(){super.destroy(),this.widget.destroy(this.dom)}static of(e,a,n,r,i){return i||(i=e.toDOM(a),e.editable||(i.contentEditable="false")),new t(i,n,e,r)}},ac=class extends xt{constructor(e){let a=document.createElement("img");a.className="cm-widgetBuffer",a.setAttribute("aria-hidden","true"),super(a,0,e)}get isHidden(){return!0}get overrideDOMText(){return Me.empty}coordsIn(e,a,n){let r=this.dom.getBoundingClientRect();return n==null?r:Ag(r,a>0==n)}},Fy=class{constructor(e){this.index=0,this.beforeBreak=!1,this.parents=[],this.tile=e}advance(e,a,n){let{tile:r,index:i,beforeBreak:o,parents:s}=this;for(;e||a>0;)if(r.isComposite())if(o){if(!e)break;n&&n.break(),e--,o=!1}else if(i==r.children.length){if(!e&&!s.length)break;n&&n.leave(r),o=!!r.breakAfter,{tile:r,index:i}=s.pop(),i++}else{let l=r.children[i],u=l.breakAfter;(a>0?l.length<=e:l.length<e)&&(!n||n.skip(l,0,l.length)!==!1||!l.isComposite)?(o=!!u,i++,e-=l.length):(s.push({tile:r,index:i}),r=l,i=0,n&&l.isComposite()&&n.enter(l))}else{let l=r.length;if(i<l&&e){let u=Math.min(e,l-i);n&&n.skip(r,i,i+u),e-=u,i+=u}if(i==l)o=!!r.breakAfter,{tile:r,index:i}=s.pop(),i++;else if(!e)break}return this.tile=r,this.index=i,this.beforeBreak=o,this}get root(){return this.parents.length?this.parents[0].tile:this.tile}},Gy=class{constructor(e,a,n,r){this.from=e,this.to=a,this.wrapper=n,this.rank=r}},Hy=class{constructor(e,a,n){this.cache=e,this.root=a,this.blockWrappers=n,this.curLine=null,this.lastBlock=null,this.afterWidget=null,this.pos=0,this.wrappers=[],this.wrapperPos=0}addText(e,a,n,r){var i;this.flushBuffer();let o=this.ensureMarks(a,n),s=o.lastChild;if(s&&s.isText()&&!(s.flags&8)&&s.length+e.length<512){this.cache.reused.set(s,2);let l=o.children[o.children.length-1]=new el(s.dom,s.text+e);l.parent=o}else o.append(r||el.of(e,(i=this.cache.find(el))===null||i===void 0?void 0:i.dom));this.pos+=e.length,this.afterWidget=null}addComposition(e,a){let n=this.curLine;n.dom!=a.line.dom&&(n.setDOM(this.cache.reused.has(a.line)?_y(a.line.dom):a.line.dom),this.cache.reused.set(a.line,2));let r=n;for(let s=a.marks.length-1;s>=0;s--){let l=a.marks[s],u=r.lastChild;if(u instanceof Ka&&u.mark.eq(l.mark))u.dom!=l.dom&&u.setDOM(_y(l.dom)),r=u;else{let{dom:c}=l;this.cache.reused.get(l)&&xt.get(l.dom)&&(c=_y(l.dom));let f=Ka.of(l.mark,c);r.append(f),r=f}this.cache.reused.set(l,2)}let i=xt.get(e.text);i&&this.cache.reused.set(i,2);let o=new el(e.text,e.text.nodeValue);o.flags|=8,this.pos=e.range.toB,r.append(o)}addInlineWidget(e,a,n){let r=this.afterWidget&&e.flags&48&&(this.afterWidget.flags&48)==(e.flags&48);r||this.flushBuffer();let i=this.ensureMarks(a,n);!r&&!(e.flags&16)&&i.append(this.getBuffer(1)),i.append(e),this.pos+=e.length,this.afterWidget=e}addMark(e,a,n){this.flushBuffer(),this.ensureMarks(a,n).append(e),this.pos+=e.length,this.afterWidget=null}addBlockWidget(e){this.getBlockPos().append(e),this.pos+=e.length,this.lastBlock=e,this.endLine()}continueWidget(e){let a=this.afterWidget||this.lastBlock;a.length+=e,this.pos+=e}addLineStart(e,a){var n;e||(e=ON);let r=tc.start(e,a||((n=this.cache.find(tc))===null||n===void 0?void 0:n.dom),!!a);this.getBlockPos().append(this.lastBlock=this.curLine=r)}addLine(e){this.getBlockPos().append(e),this.pos+=e.length,this.lastBlock=e,this.endLine()}addBreak(){this.lastBlock.flags|=1,this.endLine(),this.pos++}addLineStartIfNotCovered(e){this.blockPosCovered()||this.addLineStart(e)}ensureLine(e){this.curLine||this.addLineStart(e)}ensureMarks(e,a){var n;let r=this.curLine;for(let i=e.length-1;i>=0;i--){let o=e[i],s;if(a>0&&(s=r.lastChild)&&s instanceof Ka&&s.mark.eq(o))r=s,a--;else{let l=Ka.of(o,(n=this.cache.find(Ka,u=>u.mark.eq(o)))===null||n===void 0?void 0:n.dom);r.append(l),r=l,a=0}}return r}endLine(){if(this.curLine){this.flushBuffer();let e=this.curLine.lastChild;(!e||!hD(this.curLine,!1)||e.dom.nodeName!="BR"&&e.isWidget()&&!(K.ios&&hD(this.curLine,!0)))&&this.curLine.append(this.cache.findWidget(Ry,0,32)||new rl(Ry.toDOM(),0,Ry,32)),this.curLine=this.afterWidget=null}}updateBlockWrappers(){this.wrapperPos>this.pos+1e4&&(this.blockWrappers.goto(this.pos),this.wrappers.length=0);for(let e=this.wrappers.length-1;e>=0;e--)this.wrappers[e].to<this.pos&&this.wrappers.splice(e,1);for(let e=this.blockWrappers;e.value&&e.from<=this.pos;e.next())if(e.to>=this.pos){let a=e.rank*102+e.value.rank,n=new Gy(e.from,e.to,e.value,a),r=this.wrappers.length;for(;r>0&&(this.wrappers[r-1].rank-n.rank||this.wrappers[r-1].to-n.to)<0;)r--;this.wrappers.splice(r,0,n)}this.wrapperPos=this.pos}getBlockPos(){var e;this.updateBlockWrappers();let a=this.root;for(let n of this.wrappers){let r=a.lastChild;if(n.from<this.pos&&r instanceof _i&&r.wrapper.eq(n.wrapper))a=r;else{let i=_i.of(n.wrapper,(e=this.cache.find(_i,o=>o.wrapper.eq(n.wrapper)))===null||e===void 0?void 0:e.dom);a.append(i),a=i}}return a}blockPosCovered(){let e=this.lastBlock;return e!=null&&!e.breakAfter&&(!e.isWidget()||(e.flags&160)>0)}getBuffer(e){let a=2|(e<0?16:32),n=this.cache.find(ac,void 0,1);return n&&(n.flags=a),n||new ac(a)}flushBuffer(){this.afterWidget&&!(this.afterWidget.flags&32)&&(this.afterWidget.parent.append(this.getBuffer(-1)),this.afterWidget=null)}},jy=class{constructor(e){this.skipCount=0,this.text="",this.textOff=0,this.cursor=e.iter()}skip(e){this.textOff+e<=this.text.length?this.textOff+=e:(this.skipCount+=e-(this.text.length-this.textOff),this.text="",this.textOff=0)}next(e){if(this.textOff==this.text.length){let{value:r,lineBreak:i,done:o}=this.cursor.next(this.skipCount);if(this.skipCount=0,o)throw new Error("Ran out of text content when drawing inline views");this.text=r;let s=this.textOff=Math.min(e,r.length);return i?null:r.slice(0,s)}let a=Math.min(this.text.length,this.textOff+e),n=this.text.slice(this.textOff,a);return this.textOff=a,n}},Rg=[rl,tc,el,Ka,ac,_i,ec];for(let t=0;t<Rg.length;t++)Rg[t].bucket=t;var Vy=class{constructor(e){this.view=e,this.buckets=Rg.map(()=>[]),this.index=Rg.map(()=>0),this.reused=new Map}add(e){let a=e.constructor.bucket,n=this.buckets[a];n.length<6?n.push(e):n[this.index[a]=(this.index[a]+1)%6]=e}find(e,a,n=2){let r=e.bucket,i=this.buckets[r],o=this.index[r];for(let s=0;s<i.length;s++){let l=(s+o)%i.length,u=i[l];if((!a||a(u))&&!this.reused.has(u))return i.splice(l,1),l<o&&this.index[r]--,this.reused.set(u,n),u}return null}findWidget(e,a,n){let r=this.buckets[0];if(r.length)for(let i=0,o=0;;i++){if(i==r.length){if(o)return null;o=1,i=0}let s=r[i];if(!this.reused.has(s)&&(o==0?s.widget.compare(e):s.widget.constructor==e.constructor&&e.updateDOM(s.dom,this.view,s.widget)))return r.splice(i,1),i<this.index[0]&&this.index[0]--,s.widget==e&&s.length==a&&(s.flags&497)==n?(this.reused.set(s,1),s):(this.reused.set(s,2),new rl(s.dom,a,e,s.flags&-498|n))}}reuse(e){return this.reused.set(e,1),e}maybeReuse(e,a=2){if(!this.reused.has(e))return this.reused.set(e,a),e.dom}clear(){for(let e=0;e<this.buckets.length;e++)this.buckets[e].length=this.index[e]=0}},Yy=class{constructor(e,a,n,r,i){this.view=e,this.decorations=r,this.disallowBlockEffectsFor=i,this.openWidget=!1,this.openMarks=0,this.cache=new Vy(e),this.text=new jy(e.state.doc),this.builder=new Hy(this.cache,new ec(e,e.contentDOM),Ze.iter(n)),this.cache.reused.set(a,2),this.old=new Fy(a),this.reuseWalker={skip:(o,s,l)=>{if(this.cache.add(o),o.isComposite())return!1},enter:o=>this.cache.add(o),leave:()=>{},break:()=>{}}}run(e,a){let n=a&&this.getCompositionContext(a.text);for(let r=0,i=0,o=0;;){let s=o<e.length?e[o++]:null,l=s?s.fromA:this.old.root.length;if(l>r){let u=l-r;this.preserve(u,!o,!s),r=l,i+=u}if(!s)break;a&&s.fromA<=a.range.fromA&&s.toA>=a.range.toA?(this.forward(s.fromA,a.range.fromA,a.range.fromA<a.range.toA?1:-1),this.emit(i,a.range.fromB),this.builder.flushBuffer(),this.cache.clear(),this.builder.addComposition(a,n),this.text.skip(a.range.toB-a.range.fromB),this.forward(a.range.fromA,s.toA),this.emit(a.range.toB,s.toB)):(this.forward(s.fromA,s.toA),this.emit(i,s.toB)),i=s.toB,r=s.toA}return this.builder.curLine&&this.builder.endLine(),this.builder.root}preserve(e,a,n){let r=f7(this.old),i=this.openMarks;this.old.advance(e,n?1:-1,{skip:(o,s,l)=>{if(o.isWidget())if(this.openWidget)this.builder.continueWidget(l-s);else{let u=l>0||s<o.length?rl.of(o.widget,this.view,l-s,o.flags&496,this.cache.maybeReuse(o)):this.cache.reuse(o);u.flags&256?(u.flags&=-2,this.builder.addBlockWidget(u)):(this.builder.ensureLine(null),this.builder.addInlineWidget(u,r,i),i=r.length)}else if(o.isText())this.builder.ensureLine(null),!s&&l==o.length&&!this.cache.reused.has(o)?this.builder.addText(o.text,r,i,this.cache.reuse(o)):(this.cache.add(o),this.builder.addText(o.text.slice(s,l),r,i)),i=r.length;else if(o.isLine())o.flags&=-2,this.cache.reused.set(o,1),this.builder.addLine(o);else if(o instanceof ac)this.cache.add(o);else if(o instanceof Ka)this.builder.ensureLine(null),this.builder.addMark(o,r,i),this.cache.reused.set(o,1),i=r.length;else return!1;this.openWidget=!1},enter:o=>{o.isLine()?this.builder.addLineStart(o.attrs,this.cache.maybeReuse(o)):(this.cache.add(o),o instanceof Ka&&r.unshift(o.mark)),this.openWidget=!1},leave:o=>{o.isLine()?r.length&&(r.length=i=0):o instanceof Ka&&(r.shift(),i=Math.min(i,r.length))},break:()=>{this.builder.addBreak(),this.openWidget=!1}}),this.text.skip(e)}emit(e,a){let n=null,r=this.builder,i=-1,o=Ze.spans(this.decorations,e,a,{point:(s,l,u,c,f,d)=>{if(u instanceof al){if(this.disallowBlockEffectsFor[d]){if(u.block)throw new RangeError("Block decorations may not be specified via plugins");if(l>this.view.state.doc.lineAt(s).to)throw new RangeError("Decorations that replace line breaks may not be specified via plugins")}if(i=c.length,f>c.length)r.continueWidget(l-s);else{let h=u.widget||(u.block?qo.block:qo.inline),p=u7(u),g=this.cache.findWidget(h,l-s,p)||rl.of(h,this.view,l-s,p);u.block?(u.startSide>0&&r.addLineStartIfNotCovered(n),r.addBlockWidget(g)):(r.ensureLine(n),r.addInlineWidget(g,c,f))}n=null}else n=c7(n,u);l>s&&this.text.skip(l-s)},span:(s,l,u,c)=>{for(let f=s;f<l;){let d=this.text.next(Math.min(512,l-f));d==null?(r.addLineStartIfNotCovered(n),r.addBreak(),f++):(r.ensureLine(n),r.addText(d,u,f==s?c:u.length),f+=d.length),n=null}i=u.length}});i>-1&&(this.openWidget=o>i),this.openWidget||r.addLineStartIfNotCovered(n),this.openMarks=o}forward(e,a,n=1){a-e<=10?this.old.advance(a-e,n,this.reuseWalker):(this.old.advance(5,-1,this.reuseWalker),this.old.advance(a-e-10,-1),this.old.advance(5,n,this.reuseWalker))}getCompositionContext(e){let a=[],n=null;for(let r=e.parentNode;;r=r.parentNode){let i=xt.get(r);if(r==this.view.contentDOM)break;i instanceof Ka?a.push(i):i?.isLine()?n=i:i instanceof _i||(r.nodeName=="DIV"&&!n?n=new tc(r,ON):n||a.push(Ka.of(new Md({tagName:r.nodeName.toLowerCase(),attributes:ZH(r)}),r)))}return n?{line:n,marks:a}:null}};function hD(t,e){let a=n=>{for(let r of n.children)if((e?r.isText():r.length)||a(r))return!0;return!1};return a(t)}function u7(t){let e=t.isReplace?(t.startSide<0?64:0)|(t.endSide>0?128:0):t.startSide>0?32:16;return t.block&&(e|=256),e}var ON={class:"cm-line"};function c7(t,e){let a=e.spec.attributes,n=e.spec.class;return!a&&!n||(t||(t={class:"cm-line"}),a&&Tv(a,t),n&&(t.class+=" "+n)),t}function f7(t){let e=[];for(let a=t.parents.length;a>1;a--){let n=a==t.parents.length?t.tile:t.parents[a].tile;n instanceof Ka&&e.push(n.mark)}return e}function _y(t){let e=xt.get(t);return e&&e.setDOM(t.cloneNode()),t}var qo=class extends xn{constructor(e){super(),this.tag=e}eq(e){return e.tag==this.tag}toDOM(){return document.createElement(this.tag)}updateDOM(e){return e.nodeName.toLowerCase()==this.tag}get isHidden(){return!0}};qo.inline=new qo("span");qo.block=new qo("div");var Ry=new class extends xn{toDOM(){return document.createElement("br")}get isHidden(){return!0}get editable(){return!0}},Tg=class{constructor(e){this.view=e,this.decorations=[],this.blockWrappers=[],this.dynamicDecorationMap=[!1],this.domChanged=null,this.hasComposition=null,this.editContextFormatting=de.none,this.lastCompositionAfterCursor=!1,this.minWidth=0,this.minWidthFrom=0,this.minWidthTo=0,this.impreciseAnchor=null,this.impreciseHead=null,this.forceSelection=!1,this.lastUpdate=Date.now(),this.updateDeco(),this.tile=new ec(e,e.contentDOM),this.updateInner([new mr(0,0,0,e.state.doc.length)],null)}update(e){var a;let n=e.changedRanges;this.minWidth>0&&n.length&&(n.every(({fromA:c,toA:f})=>f<this.minWidthFrom||c>this.minWidthTo)?(this.minWidthFrom=e.changes.mapPos(this.minWidthFrom,1),this.minWidthTo=e.changes.mapPos(this.minWidthTo,1)):this.minWidth=this.minWidthFrom=this.minWidthTo=0),this.updateEditContextFormatting(e);let r=-1;this.view.inputState.composing>=0&&!this.view.observer.editContext&&(!((a=this.domChanged)===null||a===void 0)&&a.newSel?r=this.domChanged.newSel.head:!x7(e.changes,this.hasComposition)&&!e.selectionSet&&(r=e.state.selection.main.head));let i=r>-1?h7(this.view,e.changes,r):null;if(this.domChanged=null,this.hasComposition){let{from:c,to:f}=this.hasComposition;n=new mr(c,f,e.changes.mapPos(c,-1),e.changes.mapPos(f,1)).addToSet(n.slice())}this.hasComposition=i?{from:i.range.fromB,to:i.range.toB}:null,(K.ie||K.chrome)&&!i&&e&&e.state.doc.lines!=e.startState.doc.lines&&(this.forceSelection=!0);let o=this.decorations,s=this.blockWrappers;this.updateDeco();let l=g7(o,this.decorations,e.changes);l.length&&(n=mr.extendWithRanges(n,l));let u=O7(s,this.blockWrappers,e.changes);return u.length&&(n=mr.extendWithRanges(n,u)),i&&!n.some(c=>c.fromA<=i.range.fromA&&c.toA>=i.range.toA)&&(n=i.range.addToSet(n.slice())),this.tile.flags&2&&n.length==0?!1:(this.updateInner(n,i),e.transactions.length&&(this.lastUpdate=Date.now()),!0)}updateInner(e,a){this.view.viewState.mustMeasureContent=!0;let{observer:n}=this.view;n.ignore(()=>{if(a||e.length){let o=this.tile,s=new Yy(this.view,o,this.blockWrappers,this.decorations,this.dynamicDecorationMap);a&&xt.get(a.text)&&s.cache.reused.set(xt.get(a.text),2),this.tile=s.run(e,a),Wy(o,s.cache.reused)}this.tile.dom.style.height=this.view.viewState.contentHeight/this.view.scaleY+"px",this.tile.dom.style.flexBasis=this.minWidth?this.minWidth+"px":"";let i=K.chrome||K.ios?{node:n.selectionRange.focusNode,written:!1}:void 0;this.tile.sync(i),i&&(i.written||n.selectionRange.focusNode!=i.node||!this.tile.dom.contains(i.node))&&(this.forceSelection=!0),this.tile.dom.style.height=""});let r=[];if(this.view.viewport.from||this.view.viewport.to<this.view.state.doc.length)for(let i of this.tile.children)i.isWidget()&&i.widget instanceof _d&&r.push(i.dom);n.updateGaps(r)}updateEditContextFormatting(e){this.editContextFormatting=this.editContextFormatting.map(e.changes);for(let a of e.transactions)for(let n of a.effects)n.is(fN)&&(this.editContextFormatting=n.value)}updateSelection(e=!1,a=!1){(e||!this.view.observer.selectionRange.focusNode)&&this.view.observer.readSelectionRange();let{dom:n}=this.tile,r=this.view.root.activeElement,i=r==n,o=!i&&!(this.view.state.facet(Ai)||n.tabIndex>-1)&&kd(n,this.view.observer.selectionRange)&&!(r&&n.contains(r));if(!(i||a||o))return;let s=this.forceSelection;this.forceSelection=!1;let l=this.view.state.selection.main,u,c;if(l.empty?c=u=this.inlineDOMNearPos(l.anchor,l.assoc||1):(c=this.inlineDOMNearPos(l.head,l.head==l.from?1:-1),u=this.inlineDOMNearPos(l.anchor,l.anchor==l.from?1:-1)),K.gecko&&l.empty&&!this.hasComposition&&d7(u)){let d=document.createTextNode("");this.view.observer.ignore(()=>u.node.insertBefore(d,u.node.childNodes[u.offset]||null)),u=c=new Vr(d,0),s=!0}let f=this.view.observer.selectionRange;(s||!f.focusNode||(!Ld(u.node,u.offset,f.anchorNode,f.anchorOffset)||!Ld(c.node,c.offset,f.focusNode,f.focusOffset))&&!this.suppressWidgetCursorChange(f,l))&&(this.view.observer.ignore(()=>{K.android&&K.chrome&&n.contains(f.focusNode)&&b7(f.focusNode,n)&&(n.blur(),n.focus({preventScroll:!0}));let d=Nd(this.view.root);if(d)if(l.empty){if(K.gecko){let h=p7(u.node,u.offset);if(h&&h!=3){let p=(h==1?VD:YD)(u.node,u.offset);p&&(u=new Vr(p.node,p.offset))}}d.collapse(u.node,u.offset),l.bidiLevel!=null&&d.caretBidiLevel!==void 0&&(d.caretBidiLevel=l.bidiLevel)}else if(d.extend){d.collapse(u.node,u.offset);try{d.extend(c.node,c.offset)}catch{}}else{let h=document.createRange();l.anchor>l.head&&([u,c]=[c,u]),h.setEnd(c.node,c.offset),h.setStart(u.node,u.offset),d.removeAllRanges(),d.addRange(h)}o&&this.view.root.activeElement==n&&(n.blur(),r&&r.focus())}),this.view.observer.setSelectionRange(u,c)),this.impreciseAnchor=u.precise?null:new Vr(f.anchorNode,f.anchorOffset),this.impreciseHead=c.precise?null:new Vr(f.focusNode,f.focusOffset)}suppressWidgetCursorChange(e,a){return this.hasComposition&&a.empty&&Ld(e.focusNode,e.focusOffset,e.anchorNode,e.anchorOffset)&&this.posFromDOM(e.focusNode,e.focusOffset)==a.head}enforceCursorAssoc(){if(this.hasComposition)return;let{view:e}=this,a=e.state.selection.main,n=Nd(e.root),{anchorNode:r,anchorOffset:i}=e.observer.selectionRange;if(!n||!a.empty||!a.assoc||!n.modify)return;let o=this.lineAt(a.head,a.assoc);if(!o)return;let s=o.posAtStart;if(a.head==s||a.head==s+o.length)return;let l=this.coordsAt(a.head,-1),u=this.coordsAt(a.head,1);if(!l||!u||l.bottom>u.top)return;let c=this.domAtPos(a.head+a.assoc,a.assoc);n.collapse(c.node,c.offset),n.modify("move",a.assoc<0?"forward":"backward","lineboundary"),e.observer.readSelectionRange();let f=e.observer.selectionRange;e.docView.posFromDOM(f.anchorNode,f.anchorOffset)!=a.from&&n.collapse(r,i)}posFromDOM(e,a){let n=this.tile.nearest(e);if(!n)return this.tile.dom.compareDocumentPosition(e)&2?0:this.view.state.doc.length;let r=n.posAtStart;if(n.isComposite()){let i;if(e==n.dom)i=n.dom.childNodes[a];else{let o=Ri(e)==0?0:a==0?-1:1;for(;;){let s=e.parentNode;if(s==n.dom)break;o==0&&s.firstChild!=s.lastChild&&(e==s.firstChild?o=-1:o=1),e=s}o<0?i=e:i=e.nextSibling}if(i==n.dom.firstChild)return r;for(;i&&!xt.get(i);)i=i.nextSibling;if(!i)return r+n.length;for(let o=0,s=r;;o++){let l=n.children[o];if(l.dom==i)return s;s+=l.length+l.breakAfter}}else return n.isText()?e==n.dom?r+a:r+(a?n.length:0):r}domAtPos(e,a){let{tile:n,offset:r}=this.tile.resolveBlock(e,a);return n.isWidget()?n.domPosFor(r,a):n.domIn(r,a)}inlineDOMNearPos(e,a){let n,r=-1,i=!1,o,s=-1,l=!1;return this.tile.blockTiles((u,c)=>{if(u.isWidget()){if(u.flags&32&&c>=e)return!0;u.flags&16&&(i=!0)}else{let f=c+u.length;if(c<=e&&(n=u,r=e-c,i=f<e),f>=e&&!o&&(o=u,s=e-c,l=c>e),c>e&&o)return!0}}),!n&&!o?this.domAtPos(e,a):(i&&o?n=null:l&&n&&(o=null),n&&a<0||!o?n.domIn(r,a):o.domIn(s,a))}coordsAt(e,a,n){let{tile:r,offset:i}=this.tile.resolveBlock(e,a);return r.isWidget()?r.widget instanceof _d?null:r.coordsInWidget(i,a,!0):r.coordsIn(i,a,n)}lineAt(e,a){let{tile:n}=this.tile.resolveBlock(e,a);return n.isLine()?n:null}coordsForChar(e){let{tile:a,offset:n}=this.tile.resolveBlock(e,1);if(!a.isLine())return null;function r(i,o){if(i.isComposite())for(let s of i.children){if(s.length>=o){let l=r(s,o);if(l)return l}if(o-=s.length,o<0)break}else if(i.isText()&&o<i.length){let s=Rt(i.text,o);if(s==o)return null;let l=Qd(i.dom,o,s).getClientRects();for(let u=0;u<l.length;u++){let c=l[u];if(u==l.length-1||c.top<c.bottom&&c.left<c.right)return c}}return null}return r(a,n)}measureVisibleLineHeights(e){let a=[],{from:n,to:r}=e,i=this.view.contentDOM.clientWidth,o=i>Math.max(this.view.scrollDOM.clientWidth,this.minWidth)+1,s=-1,l=this.view.textDirection==st.LTR,u=0,c=(f,d,h)=>{for(let p=0;p<f.children.length&&!(d>r);p++){let g=f.children[p],b=d+g.length,m=g.dom.getBoundingClientRect(),{height:O}=m;if(h&&!p&&(u+=m.top-h.top),g instanceof _i)b>n&&c(g,d,m);else if(d>=n&&(u>0&&a.push(-u),a.push(O+u),u=0,o)){let x=g.dom.lastChild,S=x?xg(x):[];if(S.length){let y=S[S.length-1],C=l?y.right-m.left:m.right-y.left;C>s&&(s=C,this.minWidth=i,this.minWidthFrom=d,this.minWidthTo=b)}}h&&p==f.children.length-1&&(u+=h.bottom-m.bottom),d=b+g.breakAfter}};return c(this.tile,0,null),a}textDirectionAt(e){let{tile:a}=this.tile.resolveBlock(e,1);return getComputedStyle(a.dom).direction=="rtl"?st.RTL:st.LTR}measureTextSize(){let e=this.tile.blockTiles(o=>{if(o.isLine()&&o.children.length&&o.length<=20){let s=0,l;for(let u of o.children){if(!u.isText()||/[^ -~]/.test(u.text))return;let c=xg(u.dom);if(c.length!=1)return;s+=c[0].width,l=c[0].height}if(s)return{lineHeight:o.dom.getBoundingClientRect().height,charWidth:s/o.length,textHeight:l}}});if(e)return e;let a=document.createElement("div"),n,r,i;return a.className="cm-line",a.style.width="99999px",a.style.position="absolute",a.textContent="abc def ghi jkl mno pqr stu",this.view.observer.ignore(()=>{this.tile.dom.appendChild(a);let o=xg(a.firstChild)[0];n=a.getBoundingClientRect().height,r=o&&o.width?o.width/27:7,i=o&&o.height?o.height:n,a.remove()}),{lineHeight:n,charWidth:r,textHeight:i}}computeBlockGapDeco(){let e=[],a=this.view.viewState;for(let n=0,r=0;;r++){let i=r==a.viewports.length?null:a.viewports[r],o=i?i.from-1:this.view.state.doc.length;if(o>n){let s=(a.lineBlockAt(o).bottom-a.lineBlockAt(n).top)/this.view.scaleY;e.push(de.replace({widget:new _d(s),block:!0,inclusive:!0,isBlockGap:!0}).range(n,o))}if(!i)break;n=i.to+1}return de.set(e)}updateDeco(){let e=1,a=this.view.state.facet(zg).map(i=>(this.dynamicDecorationMap[e++]=typeof i=="function")?i(this.view):i),n=!1,r=this.view.state.facet(Qv).map((i,o)=>{let s=typeof i=="function";return s&&(n=!0),s?i(this.view):i});for(r.length&&(this.dynamicDecorationMap[e++]=n,a.push(Ze.join(r))),this.decorations=[this.editContextFormatting,...a,this.computeBlockGapDeco(),this.view.viewState.lineGapDeco];e<this.decorations.length;)this.dynamicDecorationMap[e++]=!1;this.blockWrappers=this.view.state.facet(hN).map(i=>typeof i=="function"?i(this.view):i)}scrollIntoView(e){if(e.isSnapshot){let u=this.view.viewState.lineBlockAt(e.range.head);this.view.scrollDOM.scrollTop=u.top-e.yMargin,this.view.scrollDOM.scrollLeft=e.xMargin;return}for(let u of this.view.state.facet(cN))try{if(u(this.view,e.range,e))return!0}catch(c){Wn(this.view.state,c,"scroll handler")}let{range:a}=e,n=this.coordsAt(a.head,a.assoc||(a.head>a.anchor?-1:1)),r;if(!n)return;!a.empty&&(r=this.coordsAt(a.anchor,a.anchor>a.head?-1:1))&&(n={left:Math.min(n.left,r.left),top:Math.min(n.top,r.top),right:Math.max(n.right,r.right),bottom:Math.max(n.bottom,r.bottom)});let i=gN(this.view),o={left:n.left-i.left,top:n.top-i.top,right:n.right+i.right,bottom:n.bottom+i.bottom},{offsetWidth:s,offsetHeight:l}=this.view.scrollDOM;if(HH(this.view.scrollDOM,o,a.head<a.anchor?-1:1,e.x,e.y,Math.max(Math.min(e.xMargin,s),-s),Math.max(Math.min(e.yMargin,l),-l),this.view.textDirection==st.LTR),window.visualViewport&&window.innerHeight-window.visualViewport.height>1&&(n.top>window.visualViewport.offsetTop+window.visualViewport.height||n.bottom<window.visualViewport.offsetTop)){let u=this.view.docView.lineAt(a.head,1);if(u){let c=FD(u.dom);u.dom.scrollIntoView({block:"nearest"}),GD(c,!1)}}}lineHasWidget(e){let a=n=>n.isWidget()||n.children.some(a);return a(this.tile.resolveBlock(e,1).tile)}destroy(){Wy(this.tile)}};function Wy(t,e){let a=e?.get(t);if(a!=1){a==null&&t.destroy();for(let n of t.children)Wy(n,e)}}function d7(t){return oa(t.node)&&t.node.firstChild&&(t.offset==0||t.node.childNodes[t.offset-1].contentEditable=="false")&&(t.offset==t.node.childNodes.length||t.node.childNodes[t.offset].contentEditable=="false")}function bN(t,e){let a=t.observer.selectionRange;if(!a.focusNode)return null;let n=VD(a.focusNode,a.focusOffset),r=YD(a.focusNode,a.focusOffset),i=n||r;if(r&&n&&r.node!=n.node){let s=xt.get(r.node);if(!s||s.isText()&&s.text!=r.node.nodeValue)i=r;else if(t.docView.lastCompositionAfterCursor){let l=xt.get(n.node);!l||l.isText()&&l.text!=n.node.nodeValue||(i=r)}}if(t.docView.lastCompositionAfterCursor=i!=n,!i)return null;let o=e-i.offset;return{from:o,to:o+i.node.nodeValue.length,node:i.node}}function h7(t,e,a){let n=bN(t,a);if(!n)return null;let{node:r,from:i,to:o}=n,s=r.nodeValue;if(/[\n\r]/.test(s)||t.state.doc.sliceString(n.from,n.to)!=s)return null;let l=e.invertedDesc;return{range:new mr(l.mapPos(i),l.mapPos(o),i,o),text:r}}function p7(t,e){return oa(t)?(e&&t.childNodes[e-1].contentEditable=="false"?1:0)|(e<t.childNodes.length&&t.childNodes[e].contentEditable=="false"?2:0):0}var m7=class{constructor(){this.changes=[]}compareRange(e,a){Yu(e,a,this.changes)}comparePoint(e,a){Yu(e,a,this.changes)}boundChange(e){Yu(e,e,this.changes)}};function g7(t,e,a){let n=new m7;return Ze.compare(t,e,a,n),n.changes}var Ky=class{constructor(){this.changes=[]}compareRange(e,a){Yu(e,a,this.changes)}comparePoint(){}boundChange(e){Yu(e,e,this.changes)}};function O7(t,e,a){let n=new Ky;return Ze.compare(t,e,a,n),n.changes}function b7(t,e){for(let a=t;a&&a!=e;a=a.assignedSlot||a.parentNode)if(oa(a)&&a.contentEditable=="false")return!0;return!1}function x7(t,e){let a=!1;return e&&t.iterChangedRanges((n,r)=>{n<e.to&&r>e.from&&(a=!0)}),a}var _d=class extends xn{constructor(e){super(),this.height=e}toDOM(){let e=document.createElement("div");return e.className="cm-gap",this.updateDOM(e),e}eq(e){return e.height==this.height}updateDOM(e){return e.style.height=this.height+"px",!0}get editable(){return!0}get estimatedHeight(){return this.height}ignoreEvent(){return!1}};function S7(t,e,a=1){let n=t.charCategorizer(e),r=t.doc.lineAt(e),i=e-r.from;if(r.length==0)return I.cursor(e);i==0?a=1:i==r.length&&(a=-1);let o=i,s=i;a<0?o=Rt(r.text,i,!1):s=Rt(r.text,i);let l=n(r.text.slice(o,s));for(;o>0;){let u=Rt(r.text,o,!1);if(n(r.text.slice(u,o))!=l)break;o=u}for(;s<r.length;){let u=Rt(r.text,s);if(n(r.text.slice(s,u))!=l)break;s=u}return I.undirectionalRange(o+r.from,s+r.from)}function y7(t,e,a,n,r){let i=Math.round((n-e.left)*t.defaultCharacterWidth);if(t.lineWrapping&&a.height>t.defaultLineHeight*1.5){let s=t.viewState.heightOracle.textHeight,l=Math.floor((r-a.top-(t.defaultLineHeight-s)*.5)/s);i+=l*t.viewState.heightOracle.lineLength}let o=t.state.sliceDoc(a.from,a.to);return a.from+cg(o,i,t.state.tabSize)}function Jy(t,e,a){let n=t.lineBlockAt(e);if(Array.isArray(n.type)){let r;for(let i of n.type){if(i.from>e)break;if(!(i.to<e)){if(i.from<e&&i.to>e)return i;(!r||i.type==ya.Text&&(r.type!=i.type||(a<0?i.from<e:i.to>e)))&&(r=i)}}return r||n}return n}function v7(t,e,a,n){let r=Jy(t,e.head,e.assoc||-1),i=!n||r.type!=ya.Text||!(t.lineWrapping||r.widgetLineBreaks)?null:t.coordsAtPos(e.assoc<0&&e.head>r.from?e.head-1:e.head);if(i){let o=t.dom.getBoundingClientRect(),s=t.textDirectionAt(r.from),l=t.posAtCoords({x:a==(s==st.LTR)?o.right-1:o.left+1,y:(i.top+i.bottom)/2});if(l!=null)return I.cursor(l,a?-1:1)}return I.cursor(a?r.to:r.from,a?-1:1)}function pD(t,e,a,n){let r=t.state.doc.lineAt(e.head),i=t.bidiSpans(r),o=t.textDirectionAt(r.from);for(let s=e,l=null;;){let u=n7(r,i,o,s,a),c=tN;if(!u){if(r.number==(a?t.state.doc.lines:1))return s;c=`
38
+ `,r=t.state.doc.line(r.number+(a?1:-1)),i=t.bidiSpans(r),u=a?I.cursor(r.from,-1):I.cursor(r.to,1)}if(l){if(!l(c))return s}else{if(!n)return u;l=n(c)}s=u}}function C7(t,e,a){let n=t.state.charCategorizer(e),r=n(a);return i=>{let o=n(i);return r==mt.Space&&(r=o),r==o}}function w7(t,e,a,n){let r=e.head,i=a?1:-1;if(r==(a?t.state.doc.length:0))return I.cursor(r,e.assoc);let o=e.goalColumn,s,l=t.contentDOM.getBoundingClientRect(),u=t.coordsAtPos(r,e.assoc||((e.empty?a:e.head==e.from)?1:-1)),c=t.documentTop;if(u)o==null&&(o=u.left-l.left),s=i<0?u.top:u.bottom;else{let p=t.viewState.lineBlockAt(r);o==null&&(o=Math.min(l.right-l.left,t.defaultCharacterWidth*(r-p.from))),s=(i<0?p.top:p.bottom)+c}let f=l.left+o,d=t.viewState.heightOracle.textHeight>>1,h=n??d;for(let p=0;;p+=d){let g=s+(h+p)*i,b=ev(t,{x:f,y:g},!1,i);if(a?g>l.bottom:g<l.top)return I.cursor(b.pos,b.assoc);let m=t.coordsAtPos(b.pos,b.assoc),O=m?(m.top+m.bottom)/2:0;if(!m||(a?O>s:O<s))return I.cursor(b.pos,b.assoc,void 0,o)}}function Rd(t,e,a){for(;;){let n=0;for(let r of t)r.between(e-1,e+1,(i,o,s)=>{if(e>i&&e<o){let l=n||a||(e-i<o-e?-1:1);e=l<0?i:o,n=l}});if(!n)return e}}function xN(t,e){let a=null;for(let n=0;n<e.ranges.length;n++){let r=e.ranges[n],i=null;if(r.empty){let o=Rd(t,r.from,0);o!=r.from&&(i=I.cursor(o,-1))}else{let o=Rd(t,r.from,-1),s=Rd(t,r.to,1);(o!=r.from||s!=r.to)&&(r.undirectional?i=I.undirectionalRange(r.from,r.to):i=I.range(r.from==r.anchor?o:s,r.from==r.head?o:s))}i&&(a||(a=e.ranges.slice()),a[n]=i)}return a?I.create(a,e.mainIndex):e}function Ty(t,e,a){let n=Rd(t.state.facet(Bd).map(r=>r(t)),a.from,e.head>a.from?-1:1);return n==a.from?a:I.cursor(n,n<a.from?1:-1)}var Vn=class{constructor(e,a){this.pos=e,this.assoc=a}};function ev(t,e,a,n){let r=t.contentDOM.getBoundingClientRect(),i=r.top+t.viewState.paddingTop,{x:o,y:s}=e,l=s-i,u;for(;;){if(l<0)return new Vn(0,1);if(l>t.viewState.docHeight)return new Vn(t.state.doc.length,-1);if(u=t.elementAtHeight(l),n==null)break;if(u.type==ya.Text){if(n<0?u.to<t.viewport.from:u.from>t.viewport.to)break;let d=t.docView.coordsAt(n<0?u.from:u.to,n>0?-1:1);if(d&&(n<0?d.top<=l+i:d.bottom>=l+i))break}let f=t.viewState.heightOracle.textHeight/2;l=n>0?u.bottom+f:u.top-f}if(t.viewport.from>=u.to||t.viewport.to<=u.from){if(a)return null;if(u.type==ya.Text){let f=y7(t,r,u,o,s);return new Vn(f,f==u.from?1:-1)}}if(u.type!=ya.Text)return l<(u.top+u.bottom)/2?new Vn(u.from,1):new Vn(u.to,-1);let c=t.docView.lineAt(u.from,2);return(!c||c.length!=u.length)&&(c=t.docView.lineAt(u.from,-2)),new tv(t,o,s,t.textDirectionAt(u.from)).scanTile(c,u.from)}var tv=class{constructor(e,a,n,r){this.view=e,this.x=a,this.y=n,this.baseDir=r,this.line=null,this.spans=null}bidiSpansAt(e){return(!this.line||this.line.from>e||this.line.to<e)&&(this.line=this.view.state.doc.lineAt(e),this.spans=this.view.bidiSpans(this.line)),this}baseDirAt(e,a){let{line:n,spans:r}=this.bidiSpansAt(e);return r[Yn.find(r,e-n.from,-1,a)].level==this.baseDir}dirAt(e,a){let{line:n,spans:r}=this.bidiSpansAt(e);return r[Yn.find(r,e-n.from,-1,a)].dir}bidiIn(e,a){let{spans:n,line:r}=this.bidiSpansAt(e);return n.length>1||n.length&&(n[0].level!=this.baseDir||n[0].to+r.from<a)}scan(e,a,n=!1){let r=0,i=e.length-1,o=new Set,s=this.bidiIn(e[0],e[i]),l,u,c=-1,f=1e9,d;e:for(;r<i;){let p=i-r,g=r+i>>1;t:if(o.has(g)){for(let O=1;O<p;O++){let x=g+O;if(x>=i&&(x-=p),!o.has(x)){g=x;break t}}break e}o.add(g);let b=a(g),m=0;if(b)for(let O=0;O<b.length;O++){let x=b[O];if(!(x.width==0&&b.length>1))if(x.bottom<this.y)(!l||l.bottom<x.bottom)&&(l=x),m=1;else if(x.top>this.y)(!u||u.top>x.top)&&(u=x),m=-1;else{let S=x.left>this.x?this.x-x.left:x.right<this.x?this.x-x.right:0,y=Math.abs(S);y<f&&(c=g,f=y,d=x),S&&(m=S<0==(this.baseDir==st.LTR)?-1:1)}}m==-1&&(!s||this.baseDirAt(e[g],1))?i=g:m==1&&(!s||this.baseDirAt(e[g+1],-1))&&(r=g+1)}if(!d){if(!u&&!l)return{i:0,after:!1};let p=l&&(!u||this.y-l.bottom<u.top-this.y)?l:u;return this.y=(p.top+p.bottom)/2,this.scan(e,a,!0)}if(f&&!n){let{top:p,bottom:g}=d;if(l&&l.bottom>(p+p+g)/3)return this.y=l.bottom-1,this.scan(e,a,!0);if(u&&u.top<(p+g+g)/3)return this.y=u.top+1,this.scan(e,a,!0)}let h=(s?this.dirAt(e[c],1):this.baseDir)==st.LTR;return{i:c,after:this.x>(d.left+d.right)/2==h}}scanText(e,a){let n=[];for(let i=0;i<e.length;i=Rt(e.text,i))n.push(a+i);n.push(a+e.length);let r=this.scan(n,i=>{let o=n[i]-a,s=n[i+1]-a;return Qd(e.dom,o,s).getClientRects()});return r.after?new Vn(n[r.i+1],-1):new Vn(n[r.i],1)}scanTile(e,a){if(!e.length)return new Vn(a,1);if(e.children.length==1){let s=e.children[0];if(s.isText())return this.scanText(s,a);if(s.isComposite())return this.scanTile(s,a)}let n=[a];for(let s=0,l=a;s<e.children.length;s++)n.push(l+=e.children[s].length);let r=this.scan(n,s=>{let l=e.children[s];return l.flags&48?null:(oa(l.dom)?l.dom:Qd(l.dom,0,l.length)).getClientRects()}),i=e.children[r.i],o=n[r.i];return i.isText()?this.scanText(i,o):i.isComposite()?this.scanTile(i,o):r.after?new Vn(n[r.i+1],-1):new Vn(o,1)}},Fu="\uFFFF",av=class{constructor(e,a){this.points=e,this.view=a,this.text="",this.lineSeparator=a.state.facet(et.lineSeparator)}append(e){this.text+=e}lineBreak(){this.text+=Fu}readRange(e,a){if(!e)return this;let n=e.parentNode;for(let r=e;;){this.findPointBefore(n,r);let i=this.text.length;this.readNode(r);let o=xt.get(r),s=r.nextSibling;if(s==a){o?.breakAfter&&!s&&n!=this.view.contentDOM&&this.lineBreak();break}let l=xt.get(s);(o&&l?o.breakAfter:(o?o.breakAfter:Eg(r))||Eg(s)&&(r.nodeName!="BR"||o?.isWidget())&&this.text.length>i)&&!L7(s,a)&&this.lineBreak(),r=s}return this.findPointBefore(n,a),this}readTextNode(e){let a=e.nodeValue;for(let n of this.points)n.node==e&&(n.pos=this.text.length+Math.min(n.offset,a.length));for(let n=0,r=this.lineSeparator?null:/\r\n?|\n/g;;){let i=-1,o=1,s;if(this.lineSeparator?(i=a.indexOf(this.lineSeparator,n),o=this.lineSeparator.length):(s=r.exec(a))&&(i=s.index,o=s[0].length),this.append(a.slice(n,i<0?a.length:i)),i<0)break;if(this.lineBreak(),o>1)for(let l of this.points)l.node==e&&l.pos>this.text.length&&(l.pos-=o-1);n=i+o}}readNode(e){let a=xt.get(e),n=a&&a.overrideDOMText;if(n!=null){this.findPointInside(e,n.length);for(let r=n.iter();!r.next().done;)r.lineBreak?this.lineBreak():this.append(r.value)}else Ku(e)?this.readTextNode(e):e.nodeName=="BR"?e.nextSibling&&this.lineBreak():oa(e)&&this.readRange(e.firstChild,null)}findPointBefore(e,a){for(let n of this.points)n.node==e&&e.childNodes[n.offset]==a&&(n.pos=this.text.length)}findPointInside(e,a){for(let n of this.points)(Ku(e)?n.node==e:e.contains(n.node))&&(n.pos=this.text.length+(k7(e,n.node,n.offset)?a:0))}};function k7(t,e,a){for(;;){if(!e||a<Ri(e))return!1;if(e==t)return!0;a=Xo(e)+1,e=e.parentNode}}function L7(t,e){let a;for(;!(t==e||!t);t=t.nextSibling){let n=xt.get(t);if(!n?.isWidget())return!1;n&&(a||(a=[])).push(n)}if(a)for(let n of a){let r=n.overrideDOMText;if(r?.length)return!1}return!0}var Ig=class{constructor(e,a){this.node=e,this.offset=a,this.pos=-1}},nv=class{constructor(e,a,n,r){this.typeOver=r,this.bounds=null,this.text="",this.domChanged=a>-1;let{impreciseHead:i,impreciseAnchor:o}=e.docView,s=e.state.selection;if(e.state.readOnly&&a>-1)this.newSel=null;else if(a>-1&&(this.bounds=SN(e.docView.tile,a,n,0))){let l=i||o?[]:A7(e),u=new av(l,e);u.readRange(this.bounds.startDOM,this.bounds.endDOM),this.text=u.text,this.newSel=_7(l,this.bounds.from)}else{let l=e.observer.selectionRange,u=i&&i.node==l.focusNode&&i.offset==l.focusOffset||!By(e.contentDOM,l.focusNode)?s.main.head:e.docView.posFromDOM(l.focusNode,l.focusOffset),c=o&&o.node==l.anchorNode&&o.offset==l.anchorOffset||!By(e.contentDOM,l.anchorNode)?s.main.anchor:e.docView.posFromDOM(l.anchorNode,l.anchorOffset),f=e.viewport;if((K.ios||K.chrome)&&u!=c&&Math.min(u,c)<=s.main.from&&Math.max(u,c)>=s.main.to&&(f.from>0||f.to<e.state.doc.length)){let d=Math.min(u,c),h=Math.max(u,c),p=f.from-d,g=f.to-h;(p==0||p==1||d==0)&&(g==0||g==-1||h==e.state.doc.length)&&(u=0,c=e.state.doc.length)}if(e.inputState.composing>-1&&s.ranges.length>1)this.newSel=s.replaceRange(I.range(c,u));else if(e.lineWrapping&&c==u&&!(s.main.empty&&s.main.head==u)&&e.inputState.lastTouchTime>Date.now()-100){let d=e.coordsAtPos(u,-1),h=0;d&&(h=e.inputState.lastTouchY<=d.bottom?-1:1),this.newSel=I.create([I.cursor(u,h)])}else this.newSel=I.single(c,u)}}};function SN(t,e,a,n){if(t.isComposite()){let r=-1,i=-1,o=-1,s=-1;for(let l=0,u=n,c=n;l<t.children.length;l++){let f=t.children[l],d=u+f.length;if(u<e&&d>a)return SN(f,e,a,u);if(d>=e&&r==-1&&(r=l,i=u),u>a&&f.dom.parentNode==t.dom){o=l,s=c;break}c=d,u=d+f.breakAfter}return{from:i,to:s<0?n+t.length:s,startDOM:(r?t.children[r-1].dom.nextSibling:null)||t.dom.firstChild,endDOM:o<t.children.length&&o>=0?t.children[o].dom:null}}else return t.isText()?{from:n,to:n+t.length,startDOM:t.dom,endDOM:t.dom.nextSibling}:null}function yN(t,e){let a,{newSel:n}=e,{state:r}=t,i=r.selection.main,o=t.inputState.lastKeyTime>Date.now()-100?t.inputState.lastKeyCode:-1;if(e.bounds){let{from:s,to:l}=e.bounds,u=i.from,c=null;(o===8||K.android&&e.text.length<l-s)&&(u=i.to,c="end");let f=r.doc.sliceString(s,l,Fu),d,h;!i.empty&&i.from>=s&&i.to<=l&&(e.typeOver||f!=e.text)&&f.slice(0,i.from-s)==e.text.slice(0,i.from-s)&&f.slice(i.to-s)==e.text.slice(d=e.text.length-(f.length-(i.to-s)))?a={from:i.from,to:i.to,insert:Me.of(e.text.slice(i.from-s,d).split(Fu))}:(h=vN(f,e.text,u-s,c))&&(K.chrome&&o==13&&h.toB==h.from+2&&e.text.slice(h.from,h.toB)==Fu+Fu&&h.toB--,a={from:s+h.from,to:s+h.toA,insert:Me.of(e.text.slice(h.from,h.toB).split(Fu))})}else n&&(!t.hasFocus&&r.facet(Ai)||rv(n,i))&&(n=null);if(!a&&!n)return!1;if((K.mac||K.android)&&a&&a.from==a.to&&a.from==i.head-1&&/^\. ?$/.test(a.insert.toString())&&t.contentDOM.getAttribute("autocorrect")=="off"?(n&&a.insert.length==2&&(n=I.single(n.main.anchor-1,n.main.head-1)),a={from:a.from,to:a.to,insert:Me.of([a.insert.toString().replace("."," ")])}):r.doc.lineAt(i.from).to<i.to&&t.docView.lineHasWidget(i.to)&&t.inputState.insertingTextAt>Date.now()-50?a={from:i.from,to:i.to,insert:r.toText(t.inputState.insertingText)}:K.chrome&&a&&a.from==a.to&&a.from==i.head&&a.insert.toString()==`
39
+ `&&t.lineWrapping&&(n&&(n=I.single(n.main.anchor-1,n.main.head-1)),a={from:i.from,to:i.to,insert:Me.of([" "])}),a)return $v(t,a,n,o);if(n&&!rv(n,i)){let s=!1,l="select";return t.inputState.lastSelectionTime>Date.now()-50&&(t.inputState.lastSelectionOrigin=="select"&&(s=!0),l=t.inputState.lastSelectionOrigin,l=="select.pointer"&&(n=xN(r.facet(Bd).map(u=>u(t)),n))),t.dispatch({selection:n,scrollIntoView:s,userEvent:l}),!0}else return!1}function $v(t,e,a,n=-1){if(K.ios&&t.inputState.flushIOSKey(e))return!0;let r=t.state.selection.main;if(K.android&&(e.to==r.to&&(e.from==r.from||e.from==r.from-1&&t.state.sliceDoc(e.from,r.from)==" ")&&e.insert.length==1&&e.insert.lines==2&&Wu(t.contentDOM,"Enter",13)||(e.from==r.from-1&&e.to==r.to&&e.insert.length==0||n==8&&e.insert.length<e.to-e.from&&e.to>r.head)&&Wu(t.contentDOM,"Backspace",8)||e.from==r.from&&e.to==r.to+1&&e.insert.length==0&&Wu(t.contentDOM,"Delete",46)))return!0;let i=e.insert.toString();t.inputState.composing>=0&&t.inputState.composing++;let o,s=()=>o||(o=E7(t,e,a));return t.state.facet(oN).some(l=>l(t,e.from,e.to,i,s))||t.dispatch(s()),!0}function E7(t,e,a){let n,r=t.state,i=r.selection.main,o=-1;if(e.from==e.to&&e.from<i.from||e.from>i.to){let l=e.from<i.from?-1:1,u=l<0?i.from:i.to,c=Rd(r.facet(Bd).map(f=>f(t)),u,l);e.from==c&&(o=c)}if(o>-1)n={changes:e,selection:I.cursor(e.from+e.insert.length,-1)};else if(e.from>=i.from&&e.to<=i.to&&e.to-e.from>=(i.to-i.from)/3&&(!a||a.main.empty&&a.main.from==e.from+e.insert.length)&&t.inputState.composing<0){let l=i.from<e.from?r.sliceDoc(i.from,e.from):"",u=i.to>e.to?r.sliceDoc(e.to,i.to):"";n=r.replaceSelection(t.state.toText(l+e.insert.sliceString(0,void 0,t.state.lineBreak)+u))}else{let l=r.changes(e),u=a&&a.main.to<=l.newLength?a.main:void 0;if(r.selection.ranges.length>1&&(t.inputState.composing>=0||t.inputState.compositionPendingChange)&&e.to<=i.to+10&&e.to>=i.to-10){let c=t.state.sliceDoc(e.from,e.to),f,d=a&&bN(t,a.main.head);if(d){let p=e.insert.length-(e.to-e.from);f={from:d.from,to:d.to-p}}else f=t.state.doc.lineAt(i.head);let h=i.to-e.to;n=r.changeByRange(p=>{if(p.from==i.from&&p.to==i.to)return{changes:l,range:u||p.map(l)};let g=p.to-h,b=g-c.length;if(t.state.sliceDoc(b,g)!=c||g>=f.from&&b<=f.to)return{range:p};let m=r.changes({from:b,to:g,insert:e.insert}),O=p.to-i.to;return{changes:m,range:u?I.range(Math.max(0,u.anchor+O),Math.max(0,u.head+O)):p.map(m)}})}else n={changes:l,selection:u&&r.selection.replaceRange(u)}}let s="input.type";return(t.composing||t.inputState.compositionPendingChange&&t.inputState.compositionEndedAt>Date.now()-50)&&(t.inputState.compositionPendingChange=!1,s+=".compose",t.inputState.compositionFirstChange&&(s+=".start",t.inputState.compositionFirstChange=!1)),r.update(n,{userEvent:s,scrollIntoView:!0})}function vN(t,e,a,n){let r=Math.min(t.length,e.length),i=0;for(;i<r&&t.charCodeAt(i)==e.charCodeAt(i);)i++;if(i==r&&t.length==e.length)return null;let o=t.length,s=e.length;for(;o>0&&s>0&&t.charCodeAt(o-1)==e.charCodeAt(s-1);)o--,s--;if(n=="end"){let l=Math.max(0,i-Math.min(o,s));a-=o+l-i}if(o<i&&t.length<e.length){let l=a<=i&&a>=o?i-a:0;i-=l,s=i+(s-o),o=i}else if(s<i){let l=a<=i&&a>=s?i-a:0;i-=l,o=i+(o-s),s=i}return{from:i,toA:o,toB:s}}function A7(t){let e=[];if(t.root.activeElement!=t.contentDOM)return e;let{anchorNode:a,anchorOffset:n,focusNode:r,focusOffset:i}=t.observer.selectionRange;return a&&(e.push(new Ig(a,n)),(r!=a||i!=n)&&e.push(new Ig(r,i))),e}function _7(t,e){if(t.length==0)return null;let a=t[0].pos,n=t.length==2?t[1].pos:a;return a<0||n<0?null:a==n?I.create([I.cursor(n+e,-1)]):I.single(a+e,n+e)}function rv(t,e){return e.head==t.main.head&&e.anchor==t.main.anchor}var iv=class{setSelectionOrigin(e){this.lastSelectionOrigin=e,this.lastSelectionTime=Date.now()}constructor(e){this.view=e,this.lastKeyCode=0,this.lastKeyTime=0,this.touchActive=!1,this.lastTouchTime=0,this.lastTouchX=0,this.lastTouchY=0,this.lastFocusTime=0,this.lastScrollTop=0,this.lastScrollLeft=0,this.lastWheelEvent=0,this.pendingIOSKey=void 0,this.lastIOSMomentumScroll=0,this.tabFocusMode=-1,this.lastSelectionOrigin=null,this.lastSelectionTime=0,this.lastContextMenu=0,this.scrollHandlers=[],this.handlers=Object.create(null),this.composing=-1,this.compositionFirstChange=null,this.compositionEndedAt=0,this.compositionPendingKey=!1,this.compositionPendingChange=!1,this.insertingText="",this.insertingTextAt=0,this.mouseSelection=null,this.draggedContent=null,this.handleEvent=this.handleEvent.bind(this),this.notifiedFocused=e.hasFocus,K.safari&&e.contentDOM.addEventListener("input",()=>null),K.gecko&&Z7(e.contentDOM.ownerDocument)}handleEvent(e){!Q7(this.view,e)||this.ignoreDuringComposition(e)||e.type=="keydown"&&this.keydown(e)||(this.view.updateState!=0?Promise.resolve().then(()=>this.runHandlers(e.type,e)):this.runHandlers(e.type,e))}runHandlers(e,a){let n=this.handlers[e];if(n){for(let r of n.observers)r(this.view,a);for(let r of n.handlers){if(a.defaultPrevented)break;if(r(this.view,a)){a.preventDefault();break}}}}ensureHandlers(e){let a=T7(e),n=this.handlers,r=this.view.contentDOM;for(let i in a)if(i!="scroll"){let o=!a[i].handlers.length,s=n[i];s&&o!=!s.handlers.length&&(r.removeEventListener(i,this.handleEvent),s=null),s||r.addEventListener(i,this.handleEvent,{passive:o})}for(let i in n)i!="scroll"&&!a[i]&&r.removeEventListener(i,this.handleEvent);this.handlers=a}keydown(e){if(this.lastKeyCode=e.keyCode,this.lastKeyTime=Date.now(),e.keyCode==9&&this.tabFocusMode>-1&&(!this.tabFocusMode||Date.now()<=this.tabFocusMode))return!0;if(this.tabFocusMode>0&&e.keyCode!=27&&wN.indexOf(e.keyCode)<0&&(this.tabFocusMode=-1),K.android&&K.chrome&&!e.synthetic&&(e.keyCode==13||e.keyCode==8))return this.view.observer.delayAndroidKey(e.key,e.keyCode),!0;if(K.ios&&!e.synthetic&&!e.altKey&&!e.metaKey&&(CN.some(a=>a.keyCode==e.keyCode)&&!e.ctrlKey||I7.indexOf(e.key)>-1&&e.ctrlKey)){let a={ctrlKey:e.ctrlKey,altKey:e.altKey,metaKey:e.metaKey,shiftKey:e.shiftKey};a.shiftKey&&K.ios&&!/^(off|none)$/.test(this.view.contentDOM.autocapitalize)&&R7(this.view.win)&&(a.shiftKey=!1);let n=this.pendingIOSKey={key:e.key,keyCode:e.keyCode,mods:a};return setTimeout(()=>{this.pendingIOSKey==n&&this.flushIOSKey()},50),!0}return e.keyCode!=229&&this.view.observer.forceFlush(),!1}flushIOSKey(e){let a=this.pendingIOSKey;return!a||this.view.observer.pendingRecords().length||a.key=="Enter"&&e&&e.from<e.to&&/^\S+$/.test(e.insert.toString())?!1:(this.pendingIOSKey=void 0,Wu(this.view.contentDOM,a.key,a.keyCode,a.mods))}ignoreDuringComposition(e){return!/^key/.test(e.type)||e.synthetic?!1:this.composing>0?!0:K.safari&&!K.ios&&this.compositionPendingKey&&Date.now()-this.compositionEndedAt<100?(this.compositionPendingKey=!1,!0):!1}startMouseSelection(e){this.mouseSelection&&this.mouseSelection.destroy(),this.mouseSelection=e}update(e){this.view.observer.update(e),this.mouseSelection&&this.mouseSelection.update(e),this.draggedContent&&e.docChanged&&(this.draggedContent=this.draggedContent.map(e.changes)),e.transactions.length&&(this.lastKeyCode=this.lastSelectionTime=0)}destroy(){this.mouseSelection&&this.mouseSelection.destroy()}};function R7(t){return t.visualViewport?t.visualViewport.height*t.visualViewport.scale/t.document.documentElement.clientHeight<.85:!1}function mD(t,e){return(a,n)=>{try{return e.call(t,n,a)}catch(r){Wn(a.state,r)}}}function T7(t){let e=Object.create(null);function a(n){return e[n]||(e[n]={observers:[],handlers:[]})}for(let n of t){let r=n.spec,i=r&&r.plugin.domEventHandlers,o=r&&r.plugin.domEventObservers;if(i)for(let s in i){let l=i[s];l&&a(s).handlers.push(mD(n.value,l))}if(o)for(let s in o){let l=o[s];l&&a(s).observers.push(mD(n.value,l))}}for(let n in gr)a(n).handlers.push(gr[n]);for(let n in za)a(n).observers.push(za[n]);return e}var CN=[{key:"Backspace",keyCode:8,inputType:"deleteContentBackward"},{key:"Enter",keyCode:13,inputType:"insertParagraph"},{key:"Enter",keyCode:13,inputType:"insertLineBreak"},{key:"Delete",keyCode:46,inputType:"deleteContentForward"}],I7="dthko",wN=[16,17,18,20,91,92,224,225],hg=6;function pg(t){return Math.max(0,t)*.7+8}function P7(t,e){return Math.max(Math.abs(t.clientX-e.clientX),Math.abs(t.clientY-e.clientY))}var ov=class{constructor(e,a,n,r){this.view=e,this.startEvent=a,this.style=n,this.mustSelect=r,this.scrollSpeed={x:0,y:0},this.scrolling=-1,this.lastEvent=a,this.scrollParents=ZD(e.contentDOM),this.atoms=e.state.facet(Bd).map(o=>o(e));let i=e.contentDOM.ownerDocument;i.addEventListener("mousemove",this.move=this.move.bind(this)),i.addEventListener("mouseup",this.up=this.up.bind(this)),this.extend=a.shiftKey,this.multiple=e.state.facet(et.allowMultipleSelections)&&M7(e,a),this.dragging=N7(e,a)&&EN(a)==1?null:!1}start(e){this.dragging===!1&&this.select(e)}move(e){if(e.buttons==0)return this.destroy();if(this.dragging||this.dragging==null&&P7(this.startEvent,e)<10)return;this.select(this.lastEvent=e);let a=0,n=0,r=0,i=0,o=this.view.win.innerWidth,s=this.view.win.innerHeight;this.scrollParents.x&&({left:r,right:o}=this.scrollParents.x.getBoundingClientRect()),this.scrollParents.y&&({top:i,bottom:s}=this.scrollParents.y.getBoundingClientRect());let l=gN(this.view);e.clientX-l.left<=r+hg?a=-pg(r-e.clientX):e.clientX+l.right>=o-hg&&(a=pg(e.clientX-o)),e.clientY-l.top<=i+hg?n=-pg(i-e.clientY):e.clientY+l.bottom>=s-hg&&(n=pg(e.clientY-s)),this.setScrollSpeed(a,n)}up(e){this.dragging==null&&this.select(this.lastEvent),this.dragging||e.preventDefault(),this.destroy()}destroy(){this.setScrollSpeed(0,0);let e=this.view.contentDOM.ownerDocument;e.removeEventListener("mousemove",this.move),e.removeEventListener("mouseup",this.up),this.view.inputState.mouseSelection=this.view.inputState.draggedContent=null}setScrollSpeed(e,a){this.scrollSpeed={x:e,y:a},e||a?this.scrolling<0&&(this.scrolling=setInterval(()=>this.scroll(),50)):this.scrolling>-1&&(clearInterval(this.scrolling),this.scrolling=-1)}scroll(){let{x:e,y:a}=this.scrollSpeed;e&&this.scrollParents.x&&(this.scrollParents.x.scrollLeft+=e,e=0),a&&this.scrollParents.y&&(this.scrollParents.y.scrollTop+=a,a=0),(e||a)&&this.view.win.scrollBy(e,a),this.dragging===!1&&this.select(this.lastEvent)}select(e){let{view:a}=this,n=xN(this.atoms,this.style.get(e,this.extend,this.multiple));(this.mustSelect||!n.eq(a.state.selection,this.dragging===!1))&&this.view.dispatch({selection:n,userEvent:"select.pointer"}),this.mustSelect=!1}update(e){e.transactions.some(a=>a.isUserEvent("input.type"))?this.destroy():this.style.update(e)&&setTimeout(()=>this.select(this.lastEvent),20)}};function M7(t,e){let a=t.state.facet(aN);return a.length?a[0](e):K.mac?e.metaKey:e.ctrlKey}function D7(t,e){let a=t.state.facet(nN);return a.length?a[0](e):K.mac?!e.altKey:!e.ctrlKey}function N7(t,e){let{main:a}=t.state.selection;if(a.empty)return!1;let n=Nd(t.root);if(!n||n.rangeCount==0)return!0;let r=n.getRangeAt(0).getClientRects();for(let i=0;i<r.length;i++){let o=r[i];if(o.left<=e.clientX&&o.right>=e.clientX&&o.top<=e.clientY&&o.bottom>=e.clientY)return!0}return!1}function Q7(t,e){if(!e.bubbles)return!0;if(e.defaultPrevented)return!1;for(let a=e.target,n;a!=t.contentDOM;a=a.parentNode)if(!a||a.nodeType==11||(n=xt.get(a))&&n.isWidget()&&!n.isHidden&&n.widget.ignoreEvent(e))return!1;return!0}var gr=Object.create(null),za=Object.create(null),kN=K.ie&&K.ie_version<15||K.ios&&K.webkit_version<604;function $7(t){let e=t.dom.parentNode;if(!e)return;let a=e.appendChild(document.createElement("textarea"));a.style.cssText="position: fixed; left: -10000px; top: 10px",a.focus(),setTimeout(()=>{t.focus(),a.remove(),LN(t,a.value)},50)}function Ug(t,e,a){for(let n of t.facet(e))a=n(a,t);return a}function LN(t,e){e=Ug(t.state,Mv,e);let{state:a}=t,n,r=1,i=a.toText(e),o=i.lines==a.selection.ranges.length;if(sv!=null&&a.selection.ranges.every(l=>l.empty)&&sv==i.toString()){let l=-1;n=a.changeByRange(u=>{let c=a.doc.lineAt(u.from);if(c.from==l)return{range:u};l=c.from;let f=a.toText((o?i.line(r++).text:e)+a.lineBreak);return{changes:{from:c.from,insert:f},range:I.cursor(u.from+f.length,-1)}})}else o?n=a.changeByRange(l=>{let u=i.line(r++);return{changes:{from:l.from,to:l.to,insert:u.text},range:I.cursor(l.from+u.length,-1)}}):n=a.replaceSelection(i);t.dispatch(n,{userEvent:"input.paste",scrollIntoView:!0})}za.scroll=t=>{let e=t.inputState;e.lastScrollTop=t.scrollDOM.scrollTop,e.lastScrollLeft=t.scrollDOM.scrollLeft,K.ios&&!e.touchActive&&(e.lastIOSMomentumScroll=Date.now())};za.wheel=za.mousewheel=t=>{t.inputState.lastWheelEvent=Date.now()};gr.keydown=(t,e)=>(t.inputState.setSelectionOrigin("select"),e.keyCode==27&&t.inputState.tabFocusMode!=0&&(t.inputState.tabFocusMode=Date.now()+2e3),!1);za.touchstart=(t,e)=>{let a=t.inputState,n=e.targetTouches[0];a.touchActive=!0,a.lastTouchTime=Date.now(),n&&(a.lastTouchX=n.clientX,a.lastTouchY=n.clientY),a.setSelectionOrigin("select.pointer")};za.touchmove=t=>{t.inputState.setSelectionOrigin("select.pointer")};za.touchend=(t,e)=>{t.inputState.touchActive=!1};gr.mousedown=(t,e)=>{if(t.observer.flush(),t.inputState.lastTouchTime>Date.now()-2e3)return!1;let a=null;for(let n of t.state.facet(rN))if(a=n(t,e),a)break;if(!a&&e.button==0&&(a=z7(t,e)),a){let n=!t.hasFocus;t.inputState.startMouseSelection(new ov(t,e,a,n)),n&&t.observer.ignore(()=>{HD(t.contentDOM);let i=t.root.activeElement;i&&!i.contains(t.contentDOM)&&i.blur()});let r=t.inputState.mouseSelection;if(r)return r.start(e),r.dragging===!1}else t.inputState.setSelectionOrigin("select.pointer");return!1};function gD(t,e,a,n){if(n==1)return I.cursor(e,a);if(n==2)return S7(t.state,e,a);{let r=t.docView.lineAt(e,a),i=t.state.doc.lineAt(r?r.posAtEnd:e),o=r?r.posAtStart:i.from,s=r?r.posAtEnd:i.to;return s<t.state.doc.length&&s==i.to&&s++,I.undirectionalRange(o,s)}}var B7=K.ie&&K.ie_version<=11,OD=null,bD=0,xD=0;function EN(t){if(!B7)return t.detail;let e=OD,a=xD;return OD=t,xD=Date.now(),bD=!e||a>Date.now()-400&&Math.abs(e.clientX-t.clientX)<2&&Math.abs(e.clientY-t.clientY)<2?(bD+1)%3:1}function z7(t,e){let a=t.posAndSideAtCoords({x:e.clientX,y:e.clientY},!1),n=EN(e),r=t.state.selection;return{update(i){i.docChanged&&(a.pos=i.changes.mapPos(a.pos),r=r.map(i.changes))},get(i,o,s){let l=t.posAndSideAtCoords({x:i.clientX,y:i.clientY},!1),u,c=gD(t,l.pos,l.assoc,n);if(a.pos!=l.pos&&!o){let f=gD(t,a.pos,a.assoc,n),d=Math.min(f.from,c.from),h=Math.max(f.to,c.to);c=d<c.from?I.range(d,h,c.assoc):I.range(h,d,c.assoc)}return o?r.replaceRange(r.main.extend(c.from,c.to,c.assoc)):s&&n==1&&r.ranges.length>1&&(u=U7(r,l.pos))?u:s?r.addRange(c):I.create([c])}}}function U7(t,e){for(let a=0;a<t.ranges.length;a++){let{from:n,to:r}=t.ranges[a];if(n<=e&&r>=e)return I.create(t.ranges.slice(0,a).concat(t.ranges.slice(a+1)),t.mainIndex==a?0:t.mainIndex-(t.mainIndex>a?1:0))}return null}gr.dragstart=(t,e)=>{let{selection:{main:a}}=t.state;if(e.target.draggable){let r=t.docView.tile.nearest(e.target);if(r&&r.isWidget()){let i=r.posAtStart,o=i+r.length;(i>=a.to||o<=a.from)&&(a=I.undirectionalRange(i,o))}}let{inputState:n}=t;return n.mouseSelection&&(n.mouseSelection.dragging=!0),n.draggedContent=a,e.dataTransfer&&(e.dataTransfer.setData("Text",Ug(t.state,Dv,t.state.sliceDoc(a.from,a.to))),e.dataTransfer.effectAllowed="copyMove"),!1};gr.dragend=t=>(t.inputState.draggedContent=null,!1);function SD(t,e,a,n){if(a=Ug(t.state,Mv,a),!a)return;let r=t.posAtCoords({x:e.clientX,y:e.clientY},!1),{draggedContent:i}=t.inputState,o=n&&i&&D7(t,e)?{from:i.from,to:i.to}:null,s={from:r,insert:a},l=t.state.changes(o?[o,s]:s);t.focus(),t.dispatch({changes:l,selection:{anchor:l.mapPos(r,-1),head:l.mapPos(r,1)},userEvent:o?"move.drop":"input.drop"}),t.inputState.draggedContent=null}gr.drop=(t,e)=>{if(!e.dataTransfer)return!1;if(t.state.readOnly)return!0;let a=e.dataTransfer.files;if(a&&a.length){let n=Array(a.length),r=0,i=()=>{++r==a.length&&SD(t,e,n.filter(o=>o!=null).join(t.state.lineBreak),!1)};for(let o=0;o<a.length;o++){let s=new FileReader;s.onerror=i,s.onload=()=>{/[\x00-\x08\x0e-\x1f]{2}/.test(s.result)||(n[o]=s.result),i()},s.readAsText(a[o])}return!0}else{let n=e.dataTransfer.getData("Text");if(n)return SD(t,e,n,!0),!0}return!1};gr.paste=(t,e)=>{if(t.state.readOnly)return!0;t.observer.flush();let a=kN?null:e.clipboardData;return a?(LN(t,a.getData("text/plain")||a.getData("text/uri-list")),!0):($7(t),!1)};function X7(t,e){let a=t.dom.parentNode;if(!a)return;let n=a.appendChild(document.createElement("textarea"));n.style.cssText="position: fixed; left: -10000px; top: 10px",n.value=e,n.focus(),n.selectionEnd=e.length,n.selectionStart=0,setTimeout(()=>{n.remove(),t.focus()},50)}function q7(t){let e=[],a=[],n=!1;for(let r of t.selection.ranges)r.empty||(e.push(t.sliceDoc(r.from,r.to)),a.push(r));if(!e.length){let r=-1;for(let{from:i}of t.selection.ranges){let o=t.doc.lineAt(i);o.number>r&&(e.push(o.text),a.push({from:o.from,to:Math.min(t.doc.length,o.to+1)})),r=o.number}n=!0}return{text:Ug(t,Dv,e.join(t.lineBreak)),ranges:a,linewise:n}}var sv=null;gr.copy=gr.cut=(t,e)=>{if(!kd(t.contentDOM,t.observer.selectionRange))return!1;let{text:a,ranges:n,linewise:r}=q7(t.state);if(!a&&!r)return!1;sv=r?a:null,e.type=="cut"&&!t.state.readOnly&&t.dispatch({changes:n,scrollIntoView:!0,userEvent:"delete.cut"});let i=kN?null:e.clipboardData;return i?(i.clearData(),i.setData("text/plain",a),!0):(X7(t,a),!1)};var AN=Wa.define();function _N(t,e){let a=[];for(let n of t.facet(sN)){let r=n(t,e);r&&a.push(r)}return a.length?t.update({effects:a,annotations:AN.of(!0)}):null}function RN(t){setTimeout(()=>{let e=t.hasFocus;if(e!=t.inputState.notifiedFocused){let a=_N(t.state,e);a?t.dispatch(a):t.update([])}},10)}za.focus=t=>{t.inputState.lastFocusTime=Date.now(),!t.scrollDOM.scrollTop&&(t.inputState.lastScrollTop||t.inputState.lastScrollLeft)&&(t.scrollDOM.scrollTop=t.inputState.lastScrollTop,t.scrollDOM.scrollLeft=t.inputState.lastScrollLeft),RN(t)};za.blur=t=>{t.observer.clearSelectionRange(),RN(t)};za.compositionstart=za.compositionupdate=(t,e)=>{if(!t.observer.editContext&&(t.inputState.compositionFirstChange==null&&(t.inputState.compositionFirstChange=!0),t.inputState.composing<0)){let{main:a}=t.state.selection;!a.empty&&t.lineBlockAt(a.from).from!=t.lineBlockAt(a.to).from&&!t.state.readOnly&&t.dispatch({changes:t.state.selection.ranges.filter(n=>!n.empty).map(n=>({from:n.from,to:n.to})),userEvent:"input"}),t.inputState.composing=0}};za.compositionend=t=>{t.observer.editContext||(t.inputState.composing=-1,t.inputState.compositionEndedAt=Date.now(),t.inputState.compositionPendingKey=!0,t.inputState.compositionPendingChange=t.observer.pendingRecords().length>0,t.inputState.compositionFirstChange=null,K.chrome&&K.android?t.observer.flushSoon():t.inputState.compositionPendingChange?Promise.resolve().then(()=>t.observer.flush()):setTimeout(()=>{t.inputState.composing<0&&t.docView.hasComposition&&t.update([])},50))};za.contextmenu=t=>{t.inputState.lastContextMenu=Date.now()};gr.beforeinput=(t,e)=>{var a,n;if((e.inputType=="insertText"||e.inputType=="insertCompositionText")&&(t.inputState.insertingText=e.data,t.inputState.insertingTextAt=Date.now()),e.inputType=="insertReplacementText"&&t.observer.editContext){let i=(a=e.dataTransfer)===null||a===void 0?void 0:a.getData("text/plain"),o=e.getTargetRanges();if(i&&o.length){let s=o[0],l=t.posAtDOM(s.startContainer,s.startOffset),u=t.posAtDOM(s.endContainer,s.endOffset);return $v(t,{from:l,to:u,insert:t.state.toText(i)},null),!0}}let r;if(K.chrome&&K.android&&(r=CN.find(i=>i.inputType==e.inputType))&&(t.observer.delayAndroidKey(r.key,r.keyCode),r.key=="Backspace"||r.key=="Delete")){let i=((n=window.visualViewport)===null||n===void 0?void 0:n.height)||0;setTimeout(()=>{var o;(((o=window.visualViewport)===null||o===void 0?void 0:o.height)||0)>i+10&&t.hasFocus&&(t.contentDOM.blur(),t.focus())},100)}return K.ios&&e.inputType=="deleteContentForward"&&t.observer.flushSoon(),K.safari&&e.inputType=="insertText"&&t.inputState.composing>=0&&setTimeout(()=>za.compositionend(t,e),20),!1};var yD=new Set;function Z7(t){yD.has(t)||(yD.add(t),t.addEventListener("copy",()=>{}),t.addEventListener("cut",()=>{}))}var vD=["pre-wrap","normal","pre-line","break-spaces"],nc=!1;function CD(){nc=!1}var lv=class{constructor(e){this.lineWrapping=e,this.doc=Me.empty,this.heightSamples={},this.lineHeight=14,this.charWidth=7,this.textHeight=14,this.lineLength=30}heightForGap(e,a){let n=this.doc.lineAt(a).number-this.doc.lineAt(e).number+1;return this.lineWrapping&&(n+=Math.max(0,Math.ceil((a-e-n*this.lineLength*.5)/this.lineLength))),this.lineHeight*n}heightForLine(e){return this.lineWrapping?(1+Math.max(0,Math.ceil((e-this.lineLength)/Math.max(1,this.lineLength-5))))*this.lineHeight:this.lineHeight}setDoc(e){return this.doc=e,this}mustRefreshForWrapping(e){return vD.indexOf(e)>-1!=this.lineWrapping}mustRefreshForHeights(e){let a=!1;for(let n=0;n<e.length;n++){let r=e[n];r<0?n++:this.heightSamples[Math.floor(r*10)]||(a=!0,this.heightSamples[Math.floor(r*10)]=!0)}return a}refresh(e,a,n,r,i,o){let s=vD.indexOf(e)>-1,l=Math.abs(a-this.lineHeight)>.3||this.lineWrapping!=s;if(this.lineWrapping=s,this.lineHeight=a,this.charWidth=n,this.textHeight=r,this.lineLength=i,l){this.heightSamples={};for(let u=0;u<o.length;u++){let c=o[u];c<0?u++:this.heightSamples[Math.floor(c*10)]=!0}}return l}},uv=class{constructor(e,a){this.from=e,this.heights=a,this.index=0}get more(){return this.index<this.heights.length}},pr=class t{constructor(e,a,n,r,i){this.from=e,this.length=a,this.top=n,this.height=r,this._content=i}get type(){return typeof this._content=="number"?ya.Text:Array.isArray(this._content)?this._content:this._content.type}get to(){return this.from+this.length}get bottom(){return this.top+this.height}get widget(){return this._content instanceof al?this._content.widget:null}get widgetLineBreaks(){return typeof this._content=="number"?this._content:0}join(e){let a=(Array.isArray(this._content)?this._content:[this]).concat(Array.isArray(e._content)?e._content:[e]);return new t(this.from,this.length+e.length,this.top,this.height+e.height,a)}},ht=(function(t){return t[t.ByPos=0]="ByPos",t[t.ByHeight=1]="ByHeight",t[t.ByPosNoHeight=2]="ByPosNoHeight",t})(ht||(ht={})),Sg=.001,bn=class t{constructor(e,a,n=2){this.length=e,this.height=a,this.flags=n}get outdated(){return(this.flags&2)>0}set outdated(e){this.flags=(e?2:0)|this.flags&-3}setHeight(e){this.height!=e&&(Math.abs(this.height-e)>Sg&&(nc=!0),this.height=e)}replace(e,a,n){return t.of(n)}decomposeLeft(e,a){a.push(this)}decomposeRight(e,a){a.push(this)}applyChanges(e,a,n,r){let i=this,o=n.doc;for(let s=r.length-1;s>=0;s--){let{fromA:l,toA:u,fromB:c,toB:f}=r[s],d=i.lineAt(l,ht.ByPosNoHeight,n.setDoc(a),0,0),h=d.to>=u?d:i.lineAt(u,ht.ByPosNoHeight,n,0,0);for(f+=h.to-u,u=h.to;s>0&&d.from<=r[s-1].toA;)l=r[s-1].fromA,c=r[s-1].fromB,s--,l<d.from&&(d=i.lineAt(l,ht.ByPosNoHeight,n,0,0));c+=d.from-l,l=d.from;let p=fv.build(n.setDoc(o),e,c,f);i=Pg(i,i.replace(l,u,p))}return i.updateHeight(n,0)}static empty(){return new jn(0,0,0)}static of(e){if(e.length==1)return e[0];let a=0,n=e.length,r=0,i=0;for(;;)if(a==n)if(r>i*2){let s=e[a-1];s.break?e.splice(--a,1,s.left,null,s.right):e.splice(--a,1,s.left,s.right),n+=1+s.break,r-=s.size}else if(i>r*2){let s=e[n];s.break?e.splice(n,1,s.left,null,s.right):e.splice(n,1,s.left,s.right),n+=2+s.break,i-=s.size}else break;else if(r<i){let s=e[a++];s&&(r+=s.size)}else{let s=e[--n];s&&(i+=s.size)}let o=!1;return e[a-1]==null?(o=!0,a--):e[a]==null&&(o=!0,n++),new cv(t.of(e.slice(0,a)),o,t.of(e.slice(n)))}};function Pg(t,e){return t==e?t:(t.constructor!=e.constructor&&(nc=!0),e)}bn.prototype.size=1;var F7=de.replace({}),Mg=class extends bn{constructor(e,a,n){super(e,a),this.deco=n,this.spaceAbove=0}mainBlock(e,a){return new pr(a,this.length,e+this.spaceAbove,this.height-this.spaceAbove,this.deco||0)}blockAt(e,a,n,r){return this.spaceAbove&&e<n+this.spaceAbove?new pr(r,0,n,this.spaceAbove,F7):this.mainBlock(n,r)}lineAt(e,a,n,r,i){let o=this.mainBlock(r,i);return this.spaceAbove?this.blockAt(0,n,r,i).join(o):o}forEachLine(e,a,n,r,i,o){e<=i+this.length&&a>=i&&o(this.lineAt(0,ht.ByPos,n,r,i))}setMeasuredHeight(e){let a=e.heights[e.index++];a<0?(this.spaceAbove=-a,a=e.heights[e.index++]):this.spaceAbove=0,this.setHeight(a)}updateHeight(e,a=0,n=!1,r){return r&&r.from<=a&&r.more&&this.setMeasuredHeight(r),this.outdated=!1,this}toString(){return`block(${this.length})`}},jn=class t extends Mg{constructor(e,a,n){super(e,a,null),this.collapsed=0,this.widgetHeight=0,this.breaks=0,this.spaceAbove=n}mainBlock(e,a){return new pr(a,this.length,e+this.spaceAbove,this.height-this.spaceAbove,this.breaks)}replace(e,a,n){let r=n[0];return n.length==1&&(r instanceof t||r instanceof Uo&&r.flags&4)&&Math.abs(this.length-r.length)<10?(r instanceof Uo?r=new t(r.length,this.height,this.spaceAbove):r.height=this.height,this.outdated||(r.outdated=!1),r):bn.of(n)}updateHeight(e,a=0,n=!1,r){return r&&r.from<=a&&r.more?this.setMeasuredHeight(r):(n||this.outdated)&&(this.spaceAbove=0,this.setHeight(Math.max(this.widgetHeight,e.heightForLine(this.length-this.collapsed))+this.breaks*e.lineHeight)),this.outdated=!1,this}toString(){return`line(${this.length}${this.collapsed?-this.collapsed:""}${this.widgetHeight?":"+this.widgetHeight:""})`}},Uo=class t extends bn{constructor(e){super(e,0)}heightMetrics(e,a){let n=e.doc.lineAt(a).number,r=e.doc.lineAt(a+this.length).number,i=r-n+1,o,s=0;if(e.lineWrapping){let l=Math.min(this.height,e.lineHeight*i);o=l/i,this.length>i+1&&(s=(this.height-l)/(this.length-i-1))}else o=this.height/i;return{firstLine:n,lastLine:r,perLine:o,perChar:s}}blockAt(e,a,n,r){let{firstLine:i,lastLine:o,perLine:s,perChar:l}=this.heightMetrics(a,r);if(a.lineWrapping){let u=r+(e<a.lineHeight?0:Math.round(Math.max(0,Math.min(1,(e-n)/this.height))*this.length)),c=a.doc.lineAt(u),f=s+c.length*l,d=Math.max(n,e-f/2);return new pr(c.from,c.length,d,f,0)}else{let u=Math.max(0,Math.min(o-i,Math.floor((e-n)/s))),{from:c,length:f}=a.doc.line(i+u);return new pr(c,f,n+s*u,s,0)}}lineAt(e,a,n,r,i){if(a==ht.ByHeight)return this.blockAt(e,n,r,i);if(a==ht.ByPosNoHeight){let{from:h,to:p}=n.doc.lineAt(e);return new pr(h,p-h,0,0,0)}let{firstLine:o,perLine:s,perChar:l}=this.heightMetrics(n,i),u=n.doc.lineAt(e),c=s+u.length*l,f=u.number-o,d=r+s*f+l*(u.from-i-f);return new pr(u.from,u.length,Math.max(r,Math.min(d,r+this.height-c)),c,0)}forEachLine(e,a,n,r,i,o){e=Math.max(e,i),a=Math.min(a,i+this.length);let{firstLine:s,perLine:l,perChar:u}=this.heightMetrics(n,i);for(let c=e,f=r;c<=a;){let d=n.doc.lineAt(c);if(c==e){let p=d.number-s;f+=l*p+u*(e-i-p)}let h=l+u*d.length;o(new pr(d.from,d.length,f,h,0)),f+=h,c=d.to+1}}replace(e,a,n){let r=this.length-a;if(r>0){let i=n[n.length-1];i instanceof t?n[n.length-1]=new t(i.length+r):n.push(null,new t(r-1))}if(e>0){let i=n[0];i instanceof t?n[0]=new t(e+i.length):n.unshift(new t(e-1),null)}return bn.of(n)}decomposeLeft(e,a){a.push(new t(e-1),null)}decomposeRight(e,a){a.push(null,new t(this.length-e-1))}updateHeight(e,a=0,n=!1,r){let i=a+this.length;if(r&&r.from<=a+this.length&&r.more){let o=[],s=Math.max(a,r.from),l=-1;for(r.from>a&&o.push(new t(r.from-a-1).updateHeight(e,a));s<=i&&r.more;){let c=e.doc.lineAt(s).length;o.length&&o.push(null);let f=r.heights[r.index++],d=0;f<0&&(d=-f,f=r.heights[r.index++]),l==-1?l=f:Math.abs(f-l)>=Sg&&(l=-2);let h=new jn(c,f,d);h.outdated=!1,o.push(h),s+=c+1}s<=i&&o.push(null,new t(i-s).updateHeight(e,s));let u=bn.of(o);return(l<0||Math.abs(u.height-this.height)>=Sg||Math.abs(l-this.heightMetrics(e,a).perLine)>=Sg)&&(nc=!0),Pg(this,u)}else(n||this.outdated)&&(this.setHeight(e.heightForGap(a,a+this.length)),this.outdated=!1);return this}toString(){return`gap(${this.length})`}},cv=class extends bn{constructor(e,a,n){super(e.length+(a?1:0)+n.length,e.height+n.height,(a?1:0)|(e.outdated||n.outdated?2:0)),this.left=e,this.right=n,this.size=e.size+n.size}get break(){return this.flags&1}blockAt(e,a,n,r){let i=n+this.left.height;return e<i?this.left.blockAt(e,a,n,r):this.right.blockAt(e,a,i,r+this.left.length+this.break)}lineAt(e,a,n,r,i){let o=r+this.left.height,s=i+this.left.length+this.break,l=a==ht.ByHeight?e<o:e<s,u=l?this.left.lineAt(e,a,n,r,i):this.right.lineAt(e,a,n,o,s);if(this.break||(l?u.to<s:u.from>s))return u;let c=a==ht.ByPosNoHeight?ht.ByPosNoHeight:ht.ByPos;return l?u.join(this.right.lineAt(s,c,n,o,s)):this.left.lineAt(s,c,n,r,i).join(u)}forEachLine(e,a,n,r,i,o){let s=r+this.left.height,l=i+this.left.length+this.break;if(this.break)e<l&&this.left.forEachLine(e,a,n,r,i,o),a>=l&&this.right.forEachLine(e,a,n,s,l,o);else{let u=this.lineAt(l,ht.ByPos,n,r,i);e<u.from&&this.left.forEachLine(e,Math.min(a,u.from-1),n,r,i,o),u.to>=e&&u.from<=a&&o(u),a>u.to&&this.right.forEachLine(Math.max(e,u.to+1),a,n,s,l,o)}}replace(e,a,n){let r=this.left.length+this.break;if(a<r)return this.balanced(this.left.replace(e,a,n),this.right);if(e>this.left.length)return this.balanced(this.left,this.right.replace(e-r,a-r,n));let i=[];e>0&&this.decomposeLeft(e,i);let o=i.length;for(let s of n)i.push(s);if(e>0&&wD(i,o-1),a<this.length){let s=i.length;this.decomposeRight(a,i),wD(i,s)}return bn.of(i)}decomposeLeft(e,a){let n=this.left.length;if(e<=n)return this.left.decomposeLeft(e,a);a.push(this.left),this.break&&(n++,e>=n&&a.push(null)),e>n&&this.right.decomposeLeft(e-n,a)}decomposeRight(e,a){let n=this.left.length,r=n+this.break;if(e>=r)return this.right.decomposeRight(e-r,a);e<n&&this.left.decomposeRight(e,a),this.break&&e<r&&a.push(null),a.push(this.right)}balanced(e,a){return e.size>2*a.size||a.size>2*e.size?bn.of(this.break?[e,null,a]:[e,a]):(this.left=Pg(this.left,e),this.right=Pg(this.right,a),this.setHeight(e.height+a.height),this.outdated=e.outdated||a.outdated,this.size=e.size+a.size,this.length=e.length+this.break+a.length,this)}updateHeight(e,a=0,n=!1,r){let{left:i,right:o}=this,s=a+i.length+this.break,l=null;return r&&r.from<=a+i.length&&r.more?l=i=i.updateHeight(e,a,n,r):i.updateHeight(e,a,n),r&&r.from<=s+o.length&&r.more?l=o=o.updateHeight(e,s,n,r):o.updateHeight(e,s,n),l?this.balanced(i,o):(this.height=this.left.height+this.right.height,this.outdated=!1,this)}toString(){return this.left+(this.break?" ":"-")+this.right}};function wD(t,e){let a,n;t[e]==null&&(a=t[e-1])instanceof Uo&&(n=t[e+1])instanceof Uo&&t.splice(e-1,3,new Uo(a.length+1+n.length))}var G7=5,fv=class t{constructor(e,a){this.pos=e,this.oracle=a,this.nodes=[],this.lineStart=-1,this.lineEnd=-1,this.covering=null,this.writtenTo=e}get isCovered(){return this.covering&&this.nodes[this.nodes.length-1]==this.covering}span(e,a){if(this.lineStart>-1){let n=Math.min(a,this.lineEnd),r=this.nodes[this.nodes.length-1];r instanceof jn?r.length+=n-this.pos:(n>this.pos||!this.isCovered)&&this.nodes.push(new jn(n-this.pos,-1,0)),this.writtenTo=n,a>n&&(this.nodes.push(null),this.writtenTo++,this.lineStart=-1)}this.pos=a}point(e,a,n){if(e<a||n.heightRelevant){let r=n.widget?n.widget.estimatedHeight:0,i=n.widget?n.widget.lineBreaks:0;r<0&&(r=this.oracle.lineHeight);let o=a-e;n.block?this.addBlock(new Mg(o,r,n)):(o||i||r>=G7)&&this.addLineDeco(r,i,o)}else a>e&&this.span(e,a);this.lineEnd>-1&&this.lineEnd<this.pos&&(this.lineEnd=this.oracle.doc.lineAt(this.pos).to)}enterLine(){if(this.lineStart>-1)return;let{from:e,to:a}=this.oracle.doc.lineAt(this.pos);this.lineStart=e,this.lineEnd=a,this.writtenTo<e&&((this.writtenTo<e-1||this.nodes[this.nodes.length-1]==null)&&this.nodes.push(this.blankContent(this.writtenTo,e-1)),this.nodes.push(null)),this.pos>e&&this.nodes.push(new jn(this.pos-e,-1,0)),this.writtenTo=this.pos}blankContent(e,a){let n=new Uo(a-e);return this.oracle.doc.lineAt(e).to==a&&(n.flags|=4),n}ensureLine(){this.enterLine();let e=this.nodes.length?this.nodes[this.nodes.length-1]:null;if(e instanceof jn)return e;let a=new jn(0,-1,0);return this.nodes.push(a),a}addBlock(e){this.enterLine();let a=e.deco;a&&a.startSide>0&&!this.isCovered&&this.ensureLine(),this.nodes.push(e),this.writtenTo=this.pos=this.pos+e.length,a&&a.endSide>0&&(this.covering=e)}addLineDeco(e,a,n){let r=this.ensureLine();r.length+=n,r.collapsed+=n,r.widgetHeight=Math.max(r.widgetHeight,e),r.breaks+=a,this.writtenTo=this.pos=this.pos+n}finish(e){let a=this.nodes.length==0?null:this.nodes[this.nodes.length-1];this.lineStart>-1&&!(a instanceof jn)&&!this.isCovered?this.nodes.push(new jn(0,-1,0)):(this.writtenTo<this.pos||a==null)&&this.nodes.push(this.blankContent(this.writtenTo,this.pos));let n=e;for(let r of this.nodes)r instanceof jn&&r.updateHeight(this.oracle,n),n+=r?r.length:1;return this.nodes}static build(e,a,n,r){let i=new t(n,e);return Ze.spans(a,n,r,i,0),i.finish(n)}};function H7(t,e,a){let n=new dv;return Ze.compare(t,e,a,n,0),n.changes}var dv=class{constructor(){this.changes=[]}compareRange(){}comparePoint(e,a,n,r){(e<a||n&&n.heightRelevant||r&&r.heightRelevant)&&Yu(e,a,this.changes,5)}};function j7(t,e){let a=t.getBoundingClientRect(),n=t.ownerDocument,r=n.defaultView||window,i=Math.max(0,a.left),o=Math.min(r.innerWidth,a.right),s=Math.max(0,a.top),l=Math.min(r.innerHeight,a.bottom);for(let u=t.parentNode;u&&u!=n.body;)if(oa(u)){let c=window.getComputedStyle(u);if((u.scrollHeight>u.clientHeight||u.scrollWidth>u.clientWidth)&&c.overflow!="visible"){let f=u.getBoundingClientRect();i=Math.max(i,f.left),o=Math.min(o,f.right),s=Math.max(s,f.top),l=Math.min(u==t.parentNode?r.innerHeight:l,f.bottom)}u=c.position=="absolute"||c.position=="fixed"?u.offsetParent:u.parentNode}else if(u.nodeType==11)u=u.host;else break;return{left:i-a.left,right:Math.max(i,o)-a.left,top:s-(a.top+e),bottom:Math.max(s,l)-(a.top+e)}}function V7(t){let e=t.getBoundingClientRect(),a=t.ownerDocument.defaultView||window;return e.left<a.innerWidth&&e.right>0&&e.top<a.innerHeight&&e.bottom>0}function Y7(t,e){let a=t.getBoundingClientRect();return{left:0,right:a.right-a.left,top:e,bottom:a.bottom-(a.top+e)}}var Td=class{constructor(e,a,n,r){this.from=e,this.to=a,this.size=n,this.displaySize=r}static same(e,a){if(e.length!=a.length)return!1;for(let n=0;n<e.length;n++){let r=e[n],i=a[n];if(r.from!=i.from||r.to!=i.to||r.size!=i.size)return!1}return!0}draw(e,a){return de.replace({widget:new hv(this.displaySize*(a?e.scaleY:e.scaleX),a)}).range(this.from,this.to)}},hv=class extends xn{constructor(e,a){super(),this.size=e,this.vertical=a}eq(e){return e.size==this.size&&e.vertical==this.vertical}toDOM(){let e=document.createElement("div");return this.vertical?e.style.height=this.size+"px":(e.style.width=this.size+"px",e.style.height="2px",e.style.display="inline-block"),e}get estimatedHeight(){return this.vertical?this.size:-1}},Dg=class{constructor(e,a){this.view=e,this.state=a,this.pixelViewport={left:0,right:window.innerWidth,top:0,bottom:0},this.inView=!0,this.paddingTop=0,this.paddingBottom=0,this.contentDOMWidth=0,this.contentDOMHeight=0,this.editorHeight=0,this.editorWidth=0,this.scaleX=1,this.scaleY=1,this.scrollOffset=0,this.scrolledToBottom=!1,this.scrollAnchorPos=0,this.scrollAnchorHeight=-1,this.scaler=kD,this.scrollTarget=null,this.printing=!1,this.mustMeasureContent=!0,this.defaultTextDirection=st.LTR,this.visibleRanges=[],this.mustEnforceCursorAssoc=!1;let n=a.facet(Nv).some(r=>typeof r!="function"&&r.class=="cm-lineWrapping");this.heightOracle=new lv(n),this.stateDeco=LD(a),this.heightMap=bn.empty().applyChanges(this.stateDeco,Me.empty,this.heightOracle.setDoc(a.doc),[new mr(0,0,0,a.doc.length)]);for(let r=0;r<2&&(this.viewport=this.getViewport(0,null),!!this.updateForViewport());r++);this.updateViewportLines(),this.lineGaps=this.ensureLineGaps([]),this.lineGapDeco=de.set(this.lineGaps.map(r=>r.draw(this,!1))),this.scrollParent=e.scrollDOM,this.computeVisibleRanges()}updateForViewport(){let e=[this.viewport],{main:a}=this.state.selection;for(let n=0;n<=1;n++){let r=n?a.head:a.anchor;if(!e.some(({from:i,to:o})=>r>=i&&r<=o)){let{from:i,to:o}=this.lineBlockAt(r);e.push(new Hu(i,o))}}return this.viewports=e.sort((n,r)=>n.from-r.from),this.updateScaler()}updateScaler(){let e=this.scaler;return this.scaler=this.heightMap.height<=7e6?kD:new pv(this.heightOracle,this.heightMap,this.viewports),e.eq(this.scaler)?0:2}updateViewportLines(){this.viewportLines=[],this.heightMap.forEachLine(this.viewport.from,this.viewport.to,this.heightOracle.setDoc(this.state.doc),0,0,e=>{this.viewportLines.push(Cd(e,this.scaler))})}update(e,a=null){this.state=e.state;let n=this.stateDeco;this.stateDeco=LD(this.state);let r=e.changedRanges,i=mr.extendWithRanges(r,H7(n,this.stateDeco,e?e.changes:Qa.empty(this.state.doc.length))),o=this.heightMap.height,s=this.scrolledToBottom?null:this.scrollAnchorAt(this.scrollOffset);CD(),this.heightMap=this.heightMap.applyChanges(this.stateDeco,e.startState.doc,this.heightOracle.setDoc(this.state.doc),i),(this.heightMap.height!=o||nc)&&(e.flags|=2),s?(this.scrollAnchorPos=e.changes.mapPos(s.from,-1),this.scrollAnchorHeight=s.top):(this.scrollAnchorPos=-1,this.scrollAnchorHeight=o);let l=i.length?this.mapViewport(this.viewport,e.changes):this.viewport;(a&&(a.range.head<l.from||a.range.head>l.to)||!this.viewportIsAppropriate(l))&&(l=this.getViewport(0,a));let u=l.from!=this.viewport.from||l.to!=this.viewport.to;this.viewport=l,e.flags|=this.updateForViewport(),(u||!e.changes.empty||e.flags&2)&&this.updateViewportLines(),(this.lineGaps.length||this.viewport.to-this.viewport.from>4e3)&&this.updateLineGaps(this.ensureLineGaps(this.mapLineGaps(this.lineGaps,e.changes))),e.flags|=this.computeVisibleRanges(e.changes),a&&(this.scrollTarget=a),!this.mustEnforceCursorAssoc&&(e.selectionSet||e.focusChanged)&&e.view.lineWrapping&&e.state.selection.main.empty&&e.state.selection.main.assoc&&!e.state.facet(uN)&&(this.mustEnforceCursorAssoc=!0)}measure(){let{view:e}=this,a=e.contentDOM,n=window.getComputedStyle(a),r=this.heightOracle,i=n.whiteSpace;this.defaultTextDirection=n.direction=="rtl"?st.RTL:st.LTR;let o=this.heightOracle.mustRefreshForWrapping(i)||this.mustMeasureContent==="refresh",s=a.getBoundingClientRect(),l=o||this.mustMeasureContent||this.contentDOMHeight!=s.height;this.contentDOMHeight=s.height,this.mustMeasureContent=!1;let u=0,c=0;if(s.width&&s.height){let{scaleX:y,scaleY:C}=qD(a,s);(y>.005&&Math.abs(this.scaleX-y)>.005||C>.005&&Math.abs(this.scaleY-C)>.005)&&(this.scaleX=y,this.scaleY=C,u|=16,o=l=!0)}let f=(parseInt(n.paddingTop)||0)*this.scaleY,d=(parseInt(n.paddingBottom)||0)*this.scaleY;(this.paddingTop!=f||this.paddingBottom!=d)&&(this.paddingTop=f,this.paddingBottom=d,u|=18),this.editorWidth!=e.scrollDOM.clientWidth&&(r.lineWrapping&&(l=!0),this.editorWidth=e.scrollDOM.clientWidth,u|=16);let h=ZD(this.view.contentDOM,!1).y;h!=this.scrollParent&&(this.scrollParent=h,this.scrollAnchorHeight=-1,this.scrollOffset=0);let p=this.getScrollOffset();this.scrollOffset!=p&&(this.scrollAnchorHeight=-1,this.scrollOffset=p),this.scrolledToBottom=jD(this.scrollParent||e.win);let g=(this.printing?Y7:j7)(a,this.paddingTop),b=g.top-this.pixelViewport.top,m=g.bottom-this.pixelViewport.bottom;this.pixelViewport=g;let O=this.pixelViewport.bottom>this.pixelViewport.top&&this.pixelViewport.right>this.pixelViewport.left;if(O!=this.inView&&(this.inView=O,O&&(l=!0)),!this.inView&&!this.scrollTarget&&!V7(e.dom))return 0;let x=s.width;if((this.contentDOMWidth!=x||this.editorHeight!=e.scrollDOM.clientHeight)&&(this.contentDOMWidth=s.width,this.editorHeight=e.scrollDOM.clientHeight,u|=16),l){let y=e.docView.measureVisibleLineHeights(this.viewport);if(r.mustRefreshForHeights(y)&&(o=!0),o||r.lineWrapping&&Math.abs(x-this.contentDOMWidth)>r.charWidth){let{lineHeight:C,charWidth:v,textHeight:k}=e.docView.measureTextSize();o=C>0&&r.refresh(i,C,v,k,Math.max(5,x/v),y),o&&(e.docView.minWidth=0,u|=16)}b>0&&m>0?c=Math.max(b,m):b<0&&m<0&&(c=Math.min(b,m)),CD();for(let C of this.viewports){let v=C.from==this.viewport.from?y:e.docView.measureVisibleLineHeights(C);this.heightMap=(o?bn.empty().applyChanges(this.stateDeco,Me.empty,this.heightOracle,[new mr(0,0,0,e.state.doc.length)]):this.heightMap).updateHeight(r,0,o,new uv(C.from,v))}nc&&(u|=2)}let S=!this.viewportIsAppropriate(this.viewport,c)||this.scrollTarget&&(this.scrollTarget.range.head<this.viewport.from||this.scrollTarget.range.head>this.viewport.to);return S&&(u&2&&(u|=this.updateScaler()),this.viewport=this.getViewport(c,this.scrollTarget),u|=this.updateForViewport()),(u&2||S)&&this.updateViewportLines(),(this.lineGaps.length||this.viewport.to-this.viewport.from>4e3)&&this.updateLineGaps(this.ensureLineGaps(o?[]:this.lineGaps,e)),u|=this.computeVisibleRanges(),this.mustEnforceCursorAssoc&&(this.mustEnforceCursorAssoc=!1,e.docView.enforceCursorAssoc()),u}get visibleTop(){return this.scaler.fromDOM(this.pixelViewport.top)}get visibleBottom(){return this.scaler.fromDOM(this.pixelViewport.bottom)}getViewport(e,a){let n=.5-Math.max(-.5,Math.min(.5,e/1e3/2)),r=this.heightMap,i=this.heightOracle,{visibleTop:o,visibleBottom:s}=this,l=new Hu(r.lineAt(o-n*1e3,ht.ByHeight,i,0,0).from,r.lineAt(s+(1-n)*1e3,ht.ByHeight,i,0,0).to);if(a){let{head:u}=a.range;if(u<l.from||u>l.to){let c=Math.min(this.editorHeight,this.pixelViewport.bottom-this.pixelViewport.top),f=r.lineAt(u,ht.ByPos,i,0,0),d;a.y=="center"?d=(f.top+f.bottom)/2-c/2:a.y=="start"||a.y=="nearest"&&u<l.from?d=f.top:d=f.bottom-c,l=new Hu(r.lineAt(d-1e3/2,ht.ByHeight,i,0,0).from,r.lineAt(d+c+1e3/2,ht.ByHeight,i,0,0).to)}}return l}mapViewport(e,a){let n=a.mapPos(e.from,-1),r=a.mapPos(e.to,1);return new Hu(this.heightMap.lineAt(n,ht.ByPos,this.heightOracle,0,0).from,this.heightMap.lineAt(r,ht.ByPos,this.heightOracle,0,0).to)}viewportIsAppropriate({from:e,to:a},n=0){if(!this.inView)return!0;let{top:r}=this.heightMap.lineAt(e,ht.ByPos,this.heightOracle,0,0),{bottom:i}=this.heightMap.lineAt(a,ht.ByPos,this.heightOracle,0,0),{visibleTop:o,visibleBottom:s}=this;return(e==0||r<=o-Math.max(10,Math.min(-n,250)))&&(a==this.state.doc.length||i>=s+Math.max(10,Math.min(n,250)))&&r>o-2*1e3&&i<s+2*1e3}mapLineGaps(e,a){if(!e.length||a.empty)return e;let n=[];for(let r of e)a.touchesRange(r.from,r.to)||n.push(new Td(a.mapPos(r.from),a.mapPos(r.to),r.size,r.displaySize));return n}ensureLineGaps(e,a){let n=this.heightOracle.lineWrapping,r=n?1e4:2e3,i=r>>1,o=r<<1;if(this.defaultTextDirection!=st.LTR&&!n)return[];let s=[],l=(c,f,d,h)=>{if(f-c<i)return;let p=this.state.selection.main,g=[p.from];p.empty||g.push(p.to);for(let m of g)if(m>c&&m<f){l(c,m-10,d,h),l(m+10,f,d,h);return}let b=K7(e,m=>m.from>=d.from&&m.to<=d.to&&Math.abs(m.from-c)<i&&Math.abs(m.to-f)<i&&!g.some(O=>m.from<O&&m.to>O));if(!b){if(f<d.to&&a&&n&&a.visibleRanges.some(x=>x.from<=f&&x.to>=f)){let x=a.moveToLineBoundary(I.cursor(f),!1,!0).head;x>c&&(f=x)}let m=this.gapSize(d,c,f,h),O=n||m<2e6?m:2e6;b=new Td(c,f,m,O)}s.push(b)},u=c=>{if(c.length<o||c.type!=ya.Text)return;let f=W7(c.from,c.to,this.stateDeco);if(f.total<o)return;let d=this.scrollTarget?this.scrollTarget.range.head:null,h,p;if(n){let g=r/this.heightOracle.lineLength*this.heightOracle.lineHeight,b,m;if(d!=null){let O=gg(f,d),x=((this.visibleBottom-this.visibleTop)/2+g)/c.height;b=O-x,m=O+x}else b=(this.visibleTop-c.top-g)/c.height,m=(this.visibleBottom-c.top+g)/c.height;h=mg(f,b),p=mg(f,m)}else{let g=f.total*this.heightOracle.charWidth,b=r*this.heightOracle.charWidth,m=0;if(g>2e6)for(let C of e)C.from>=c.from&&C.from<c.to&&C.size!=C.displaySize&&C.from*this.heightOracle.charWidth+m<this.pixelViewport.left&&(m=C.size-C.displaySize);let O=this.pixelViewport.left+m,x=this.pixelViewport.right+m,S,y;if(d!=null){let C=gg(f,d),v=((x-O)/2+b)/g;S=C-v,y=C+v}else S=(O-b)/g,y=(x+b)/g;h=mg(f,S),p=mg(f,y)}h>c.from&&l(c.from,h,c,f),p<c.to&&l(p,c.to,c,f)};for(let c of this.viewportLines)Array.isArray(c.type)?c.type.forEach(u):u(c);return s}gapSize(e,a,n,r){let i=gg(r,n)-gg(r,a);return this.heightOracle.lineWrapping?e.height*i:r.total*this.heightOracle.charWidth*i}updateLineGaps(e){Td.same(e,this.lineGaps)||(this.lineGaps=e,this.lineGapDeco=de.set(e.map(a=>a.draw(this,this.heightOracle.lineWrapping))))}computeVisibleRanges(e){let a=this.stateDeco;this.lineGaps.length&&(a=a.concat(this.lineGapDeco));let n=[];Ze.spans(a,this.viewport.from,this.viewport.to,{span(i,o){n.push({from:i,to:o})},point(){}},20);let r=0;if(n.length!=this.visibleRanges.length)r=12;else for(let i=0;i<n.length&&!(r&8);i++){let o=this.visibleRanges[i],s=n[i];(o.from!=s.from||o.to!=s.to)&&(r|=4,e&&e.mapPos(o.from,-1)==s.from&&e.mapPos(o.to,1)==s.to||(r|=8))}return this.visibleRanges=n,r}lineBlockAt(e){return e>=this.viewport.from&&e<=this.viewport.to&&this.viewportLines.find(a=>a.from<=e&&a.to>=e)||Cd(this.heightMap.lineAt(e,ht.ByPos,this.heightOracle,0,0),this.scaler)}lineBlockAtHeight(e){return e>=this.viewportLines[0].top&&e<=this.viewportLines[this.viewportLines.length-1].bottom&&this.viewportLines.find(a=>a.top<=e&&a.bottom>=e)||Cd(this.heightMap.lineAt(this.scaler.fromDOM(e),ht.ByHeight,this.heightOracle,0,0),this.scaler)}getScrollOffset(){return this.scrollParent==this.view.scrollDOM?this.scrollParent.scrollTop*this.scaleY:(this.scrollParent?this.scrollParent.getBoundingClientRect().top:0)-this.view.contentDOM.getBoundingClientRect().top}scrollAnchorAt(e){let a=this.lineBlockAtHeight(e+8);return a.from>=this.viewport.from||this.viewportLines[0].top-e>200?a:this.viewportLines[0]}elementAtHeight(e){return Cd(this.heightMap.blockAt(this.scaler.fromDOM(e),this.heightOracle,0,0),this.scaler)}get docHeight(){return this.scaler.toDOM(this.heightMap.height)}get contentHeight(){return this.docHeight+this.paddingTop+this.paddingBottom}},Hu=class{constructor(e,a){this.from=e,this.to=a}};function W7(t,e,a){let n=[],r=t,i=0;return Ze.spans(a,t,e,{span(){},point(o,s){o>r&&(n.push({from:r,to:o}),i+=o-r),r=s}},20),r<e&&(n.push({from:r,to:e}),i+=e-r),{total:i,ranges:n}}function mg({total:t,ranges:e},a){if(a<=0)return e[0].from;if(a>=1)return e[e.length-1].to;let n=Math.floor(t*a);for(let r=0;;r++){let{from:i,to:o}=e[r],s=o-i;if(n<=s)return i+n;n-=s}}function gg(t,e){let a=0;for(let{from:n,to:r}of t.ranges){if(e<=r){a+=e-n;break}a+=r-n}return a/t.total}function K7(t,e){for(let a of t)if(e(a))return a}var kD={toDOM(t){return t},fromDOM(t){return t},scale:1,eq(t){return t==this}};function LD(t){let e=t.facet(zg).filter(n=>typeof n!="function"),a=t.facet(Qv).filter(n=>typeof n!="function");return a.length&&e.push(Ze.join(a)),e}var pv=class t{constructor(e,a,n){let r=0,i=0,o=0;this.viewports=n.map(({from:s,to:l})=>{let u=a.lineAt(s,ht.ByPos,e,0,0).top,c=a.lineAt(l,ht.ByPos,e,0,0).bottom;return r+=c-u,{from:s,to:l,top:u,bottom:c,domTop:0,domBottom:0}}),this.scale=(7e6-r)/(a.height-r);for(let s of this.viewports)s.domTop=o+(s.top-i)*this.scale,o=s.domBottom=s.domTop+(s.bottom-s.top),i=s.bottom}toDOM(e){for(let a=0,n=0,r=0;;a++){let i=a<this.viewports.length?this.viewports[a]:null;if(!i||e<i.top)return r+(e-n)*this.scale;if(e<=i.bottom)return i.domTop+(e-i.top);n=i.bottom,r=i.domBottom}}fromDOM(e){for(let a=0,n=0,r=0;;a++){let i=a<this.viewports.length?this.viewports[a]:null;if(!i||e<i.domTop)return n+(e-r)/this.scale;if(e<=i.domBottom)return i.top+(e-i.domTop);n=i.bottom,r=i.domBottom}}eq(e){return e instanceof t?this.scale==e.scale&&this.viewports.length==e.viewports.length&&this.viewports.every((a,n)=>a.from==e.viewports[n].from&&a.to==e.viewports[n].to):!1}};function Cd(t,e){if(e.scale==1)return t;let a=e.toDOM(t.top),n=e.toDOM(t.bottom);return new pr(t.from,t.length,a,n-a,Array.isArray(t._content)?t._content.map(r=>Cd(r,e)):t._content)}var Og=te.define({combine:t=>t.join(" ")}),mv=te.define({combine:t=>t.indexOf(!0)>-1}),gv=Hn.newName(),TN=Hn.newName(),IN=Hn.newName(),PN={"&light":"."+TN,"&dark":"."+IN};function Ov(t,e,a){return new Hn(e,{finish(n){return/&/.test(n)?n.replace(/&\w*/,r=>{if(r=="&")return t;if(!a||!a[r])throw new RangeError(`Unsupported selector: ${r}`);return a[r]}):t+" "+n}})}var J7=Ov("."+gv,{"&":{position:"relative !important",boxSizing:"border-box","&.cm-focused":{outline:"1px dotted #212121"},display:"flex !important",flexDirection:"column"},".cm-scroller":{display:"flex !important",alignItems:"flex-start !important",fontFamily:"monospace",lineHeight:1.4,height:"100%",overflowX:"auto",position:"relative",zIndex:0,overflowAnchor:"none"},".cm-content":{margin:0,flexGrow:2,flexShrink:0,display:"block",whiteSpace:"pre",wordWrap:"normal",boxSizing:"border-box",minHeight:"100%",padding:"4px 0",outline:"none","&[contenteditable=true]":{WebkitUserModify:"read-write-plaintext-only"}},".cm-lineWrapping":{whiteSpace_fallback:"pre-wrap",whiteSpace:"break-spaces",wordBreak:"break-word",overflowWrap:"anywhere",flexShrink:1},"&light .cm-content":{caretColor:"black"},"&dark .cm-content":{caretColor:"white"},".cm-line":{display:"block",padding:"0 2px 0 6px"},".cm-layer":{userSelect:"none",position:"absolute",left:0,top:0,contain:"size style","& > *":{position:"absolute"}},"&light .cm-selectionBackground":{background:"#d9d9d9"},"&dark .cm-selectionBackground":{background:"#222"},"&light.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground":{background:"#d7d4f0"},"&dark.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground":{background:"#233"},".cm-cursorLayer":{pointerEvents:"none"},"&.cm-focused > .cm-scroller > .cm-cursorLayer":{animation:"steps(1) cm-blink 1.2s infinite"},"@keyframes cm-blink":{"0%":{},"50%":{opacity:0},"100%":{}},"@keyframes cm-blink2":{"0%":{},"50%":{opacity:0},"100%":{}},".cm-cursor, .cm-dropCursor":{borderLeft:"1.2px solid black",marginLeft:"-0.6px",pointerEvents:"none"},".cm-cursor":{display:"none"},"&dark .cm-cursor":{borderLeftColor:"#ddd"},".cm-selectionHandle":{backgroundColor:"currentColor",width:"1.5px"},".cm-selectionHandle-start::before, .cm-selectionHandle-end::before":{content:'""',backgroundColor:"inherit",borderRadius:"50%",width:"8px",height:"8px",position:"absolute",left:"-3.25px"},".cm-selectionHandle-start::before":{top:"-8px"},".cm-selectionHandle-end::before":{bottom:"-8px"},".cm-dropCursor":{position:"absolute"},"&.cm-focused > .cm-scroller > .cm-cursorLayer .cm-cursor":{display:"block"},".cm-iso":{unicodeBidi:"isolate"},".cm-announced":{position:"fixed",top:"-10000px"},"@media print":{".cm-announced":{display:"none"}},"&light .cm-activeLine":{backgroundColor:"#cceeff44"},"&dark .cm-activeLine":{backgroundColor:"#99eeff33"},"&light .cm-specialChar":{color:"red"},"&dark .cm-specialChar":{color:"#f78"},".cm-gutters":{flexShrink:0,display:"flex",height:"100%",boxSizing:"border-box",zIndex:200},".cm-gutters-before":{insetInlineStart:0},".cm-gutters-after":{insetInlineEnd:0},"&light .cm-gutters":{backgroundColor:"#f5f5f5",color:"#6c6c6c",border:"0px solid #ddd","&.cm-gutters-before":{borderRightWidth:"1px"},"&.cm-gutters-after":{borderLeftWidth:"1px"}},"&dark .cm-gutters":{backgroundColor:"#333338",color:"#ccc"},".cm-gutter":{display:"flex !important",flexDirection:"column",flexShrink:0,boxSizing:"border-box",minHeight:"100%",overflow:"hidden"},".cm-gutterElement":{boxSizing:"border-box"},".cm-lineNumbers .cm-gutterElement":{padding:"0 3px 0 5px",minWidth:"20px",textAlign:"right",whiteSpace:"nowrap"},"&light .cm-activeLineGutter":{backgroundColor:"#e2f2ff"},"&dark .cm-activeLineGutter":{backgroundColor:"#222227"},".cm-panels":{boxSizing:"border-box",position:"sticky",left:0,right:0,zIndex:300},"&light .cm-panels":{backgroundColor:"#f5f5f5",color:"black"},".cm-panels-top":{top:"0"},".cm-panels-bottom":{bottom:"0"},"&light .cm-panels-top":{borderBottom:"1px solid #ddd"},"&light .cm-panels-bottom":{borderTop:"1px solid #ddd"},"&dark .cm-panels":{backgroundColor:"#333338",color:"white"},".cm-dialog":{padding:"2px 19px 4px 6px",position:"relative","& label":{fontSize:"80%"}},".cm-dialog-close":{position:"absolute",top:"3px",right:"4px",backgroundColor:"inherit",border:"none",font:"inherit",fontSize:"14px",padding:"0"},".cm-tab":{display:"inline-block",overflow:"hidden",verticalAlign:"bottom"},".cm-widgetBuffer":{verticalAlign:"baseline",height:"1em",width:0,display:"inline"},".cm-placeholder":{color:"#888",display:"inline-block",verticalAlign:"top",userSelect:"none"},".cm-highlightSpace":{background:"radial-gradient(circle at 50% 55%, #aaa 20%, transparent 0) no-repeat",backgroundSize:".4em",backgroundPosition:"calc(min(50%, 0px)) center"},".cm-highlightTab":{backgroundImage:`url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="200" height="20"><path stroke="%23888" stroke-width="1" fill="none" d="M1 10H196L190 5M190 15L196 10M197 4L197 16"/></svg>')`,backgroundSize:"auto 100%",backgroundPosition:"right 90%",backgroundRepeat:"no-repeat"},".cm-trailingSpace":{backgroundColor:"#ff332255"},".cm-button":{verticalAlign:"middle",color:"inherit",fontSize:"70%",padding:".2em 1em",borderRadius:"1px"},"&light .cm-button":{backgroundImage:"linear-gradient(#eff1f5, #d9d9df)",border:"1px solid #888","&:active":{backgroundImage:"linear-gradient(#b4b4b4, #d0d3d6)"}},"&dark .cm-button":{backgroundImage:"linear-gradient(#393939, #111)",border:"1px solid #888","&:active":{backgroundImage:"linear-gradient(#111, #333)"}},".cm-textfield":{verticalAlign:"middle",color:"inherit",fontSize:"70%",border:"1px solid silver",padding:".2em .5em"},"&light .cm-textfield":{backgroundColor:"white"},"&dark .cm-textfield":{border:"1px solid #555",backgroundColor:"inherit"}},PN),ej={childList:!0,characterData:!0,subtree:!0,attributes:!0,characterDataOldValue:!0},Iy=K.ie&&K.ie_version<=11,bv=class{constructor(e){this.view=e,this.active=!1,this.editContext=null,this.selectionRange=new zy,this.selectionChanged=!1,this.delayedFlush=-1,this.resizeTimeout=-1,this.queue=[],this.delayedAndroidKey=null,this.flushingAndroidKey=-1,this.lastChange=0,this.scrollTargets=[],this.intersection=null,this.resizeScroll=null,this.intersecting=!1,this.gapIntersection=null,this.gaps=[],this.printQuery=null,this.parentCheck=-1,this.dom=e.contentDOM,this.observer=new MutationObserver(a=>{for(let n of a)this.queue.push(n);(K.ie&&K.ie_version<=11||K.ios&&e.composing)&&a.some(n=>n.type=="childList"&&n.removedNodes.length||n.type=="characterData"&&n.oldValue.length>n.target.nodeValue.length)?this.flushSoon():this.flush()}),window.EditContext&&K.android&&e.constructor.EDIT_CONTEXT!==!1&&!(K.chrome&&K.chrome_version<126)&&(this.editContext=new xv(e),e.state.facet(Ai)&&(e.contentDOM.editContext=this.editContext.editContext)),Iy&&(this.onCharData=a=>{this.queue.push({target:a.target,type:"characterData",oldValue:a.prevValue}),this.flushSoon()}),this.onSelectionChange=this.onSelectionChange.bind(this),this.onResize=this.onResize.bind(this),this.onPrint=this.onPrint.bind(this),this.onScroll=this.onScroll.bind(this),window.matchMedia&&(this.printQuery=window.matchMedia("print")),typeof ResizeObserver=="function"&&(this.resizeScroll=new ResizeObserver(()=>{var a;((a=this.view.docView)===null||a===void 0?void 0:a.lastUpdate)<Date.now()-75&&this.onResize()}),this.resizeScroll.observe(e.scrollDOM)),this.addWindowListeners(this.win=e.win),this.start(),typeof IntersectionObserver=="function"&&(this.intersection=new IntersectionObserver(a=>{this.parentCheck<0&&(this.parentCheck=setTimeout(this.listenForScroll.bind(this),1e3)),a.length>0&&a[a.length-1].intersectionRatio>0!=this.intersecting&&(this.intersecting=!this.intersecting,this.intersecting!=this.view.inView&&this.onScrollChanged(document.createEvent("Event")))},{threshold:[0,.001]}),this.intersection.observe(this.dom),this.gapIntersection=new IntersectionObserver(a=>{a.length>0&&a[a.length-1].intersectionRatio>0&&this.onScrollChanged(document.createEvent("Event"))},{})),this.listenForScroll(),this.readSelectionRange()}onScrollChanged(e){this.view.inputState.runHandlers("scroll",e),this.intersecting&&this.view.measure()}onScroll(e){this.intersecting&&this.flush(!1),this.editContext&&this.view.requestMeasure(this.editContext.measureReq),this.onScrollChanged(e)}onResize(){this.resizeTimeout<0&&(this.resizeTimeout=setTimeout(()=>{this.resizeTimeout=-1,this.view.requestMeasure()},50))}onPrint(e){(e.type=="change"||!e.type)&&!e.matches||(this.view.viewState.printing=!0,this.view.measure(),setTimeout(()=>{this.view.viewState.printing=!1,this.view.requestMeasure()},500))}updateGaps(e){if(this.gapIntersection&&(e.length!=this.gaps.length||this.gaps.some((a,n)=>a!=e[n]))){this.gapIntersection.disconnect();for(let a of e)this.gapIntersection.observe(a);this.gaps=e}}onSelectionChange(e){let a=this.selectionChanged;if(!this.readSelectionRange()||this.delayedAndroidKey)return;let{view:n}=this,r=this.selectionRange;if(n.state.facet(Ai)?n.root.activeElement!=this.dom:!kd(this.dom,r))return;let i=r.anchorNode&&n.docView.tile.nearest(r.anchorNode);if(i&&i.isWidget()&&i.widget.ignoreEvent(e)){a||(this.selectionChanged=!1);return}(K.ie&&K.ie_version<=11||K.android&&K.chrome)&&!n.state.selection.main.empty&&r.focusNode&&Ld(r.focusNode,r.focusOffset,r.anchorNode,r.anchorOffset)?this.flushSoon():this.flush(!1)}readSelectionRange(){let{view:e}=this,a=Nd(e.root);if(!a)return!1;let n=K.safari&&e.root.nodeType==11&&e.root.activeElement==this.dom&&tj(this.view,a)||a;if(!n||this.selectionRange.eq(n))return!1;let r=kd(this.dom,n);return r&&!this.selectionChanged&&e.inputState.lastFocusTime>Date.now()-200&&e.inputState.lastTouchTime<Date.now()-300&&VH(this.dom,n)?(this.view.inputState.lastFocusTime=0,e.docView.updateSelection(),!1):(this.selectionRange.setRange(n),r&&(this.selectionChanged=!0),!0)}setSelectionRange(e,a){this.selectionRange.set(e.node,e.offset,a.node,a.offset),this.selectionChanged=!1}clearSelectionRange(){this.selectionRange.set(null,0,null,0)}listenForScroll(){this.parentCheck=-1;let e=0,a=null;for(let n=this.dom;n;)if(oa(n))!a&&e<this.scrollTargets.length&&this.scrollTargets[e]==n?e++:a||(a=this.scrollTargets.slice(0,e)),a&&a.push(n),n=n.assignedSlot||n.parentNode;else if(n.nodeType==11)n=n.host;else break;if(e<this.scrollTargets.length&&!a&&(a=this.scrollTargets.slice(0,e)),a){for(let n of this.scrollTargets)n.removeEventListener("scroll",this.onScroll);for(let n of this.scrollTargets=a)n.addEventListener("scroll",this.onScroll)}}ignore(e){if(!this.active)return e();try{return this.stop(),e()}finally{this.start(),this.clear()}}start(){this.active||(this.observer.observe(this.dom,ej),Iy&&this.dom.addEventListener("DOMCharacterDataModified",this.onCharData),this.active=!0)}stop(){this.active&&(this.active=!1,this.observer.disconnect(),Iy&&this.dom.removeEventListener("DOMCharacterDataModified",this.onCharData))}clear(){this.processRecords(),this.queue.length=0,this.selectionChanged=!1}delayAndroidKey(e,a){var n;if(!this.delayedAndroidKey){let r=()=>{let i=this.delayedAndroidKey;i&&(this.clearDelayedAndroidKey(),this.view.inputState.lastKeyCode=i.keyCode,this.view.inputState.lastKeyTime=Date.now(),!this.flush()&&i.force&&Wu(this.dom,i.key,i.keyCode))};this.flushingAndroidKey=this.view.win.requestAnimationFrame(r)}(!this.delayedAndroidKey||e=="Enter")&&(this.delayedAndroidKey={key:e,keyCode:a,force:this.lastChange<Date.now()-50||!!(!((n=this.delayedAndroidKey)===null||n===void 0)&&n.force)})}clearDelayedAndroidKey(){this.win.cancelAnimationFrame(this.flushingAndroidKey),this.delayedAndroidKey=null,this.flushingAndroidKey=-1}flushSoon(){this.delayedFlush<0&&(this.delayedFlush=this.view.win.requestAnimationFrame(()=>{this.delayedFlush=-1,this.flush()}))}forceFlush(){this.delayedFlush>=0&&(this.view.win.cancelAnimationFrame(this.delayedFlush),this.delayedFlush=-1),this.flush()}pendingRecords(){for(let e of this.observer.takeRecords())this.queue.push(e);return this.queue}processRecords(){let e=this.pendingRecords();e.length&&(this.queue=[]);let a=-1,n=-1,r=!1;for(let i of e){let o=this.readMutation(i);o&&(o.typeOver&&(r=!0),a==-1?{from:a,to:n}=o:(a=Math.min(o.from,a),n=Math.max(o.to,n)))}return{from:a,to:n,typeOver:r}}readChange(){let{from:e,to:a,typeOver:n}=this.processRecords(),r=this.selectionChanged&&kd(this.dom,this.selectionRange);if(e<0&&!r)return null;e>-1&&(this.lastChange=Date.now()),this.view.inputState.lastFocusTime=0,this.selectionChanged=!1;let i=new nv(this.view,e,a,n);return this.view.docView.domChanged={newSel:i.newSel?i.newSel.main:null},i}flush(e=!0){if(this.delayedFlush>=0||this.delayedAndroidKey)return!1;e&&this.readSelectionRange();let a=this.selectionChanged,n=this.readChange();if(!n)return this.view.requestMeasure(),!1;let r=this.view.state,i=yN(this.view,n);return this.view.state==r&&(n.domChanged||a)&&this.view.update([]),i}readMutation(e){let a=this.view.docView.tile.nearest(e.target);if(!a||a.isWidget())return null;if(a.markDirty(e.type=="attributes"),e.type=="childList"){let n=ED(a,e.previousSibling||e.target.previousSibling,-1),r=ED(a,e.nextSibling||e.target.nextSibling,1);return{from:n?a.posAfter(n):a.posAtStart,to:r?a.posBefore(r):a.posAtEnd,typeOver:!1}}else return e.type=="characterData"?{from:a.posAtStart,to:a.posAtEnd,typeOver:e.target.nodeValue==e.oldValue}:null}setWindow(e){e!=this.win&&(this.removeWindowListeners(this.win),this.win=e,this.addWindowListeners(this.win))}addWindowListeners(e){e.addEventListener("resize",this.onResize),this.printQuery?this.printQuery.addEventListener?this.printQuery.addEventListener("change",this.onPrint):this.printQuery.addListener(this.onPrint):e.addEventListener("beforeprint",this.onPrint),e.addEventListener("scroll",this.onScroll),e.document.addEventListener("selectionchange",this.onSelectionChange)}removeWindowListeners(e){e.removeEventListener("scroll",this.onScroll),e.removeEventListener("resize",this.onResize),this.printQuery?this.printQuery.removeEventListener?this.printQuery.removeEventListener("change",this.onPrint):this.printQuery.removeListener(this.onPrint):e.removeEventListener("beforeprint",this.onPrint),e.document.removeEventListener("selectionchange",this.onSelectionChange)}update(e){this.editContext&&(this.editContext.update(e),e.startState.facet(Ai)!=e.state.facet(Ai)&&(e.view.contentDOM.editContext=e.state.facet(Ai)?this.editContext.editContext:null))}destroy(){var e,a,n;this.stop(),(e=this.intersection)===null||e===void 0||e.disconnect(),(a=this.gapIntersection)===null||a===void 0||a.disconnect(),(n=this.resizeScroll)===null||n===void 0||n.disconnect();for(let r of this.scrollTargets)r.removeEventListener("scroll",this.onScroll);this.removeWindowListeners(this.win),clearTimeout(this.parentCheck),clearTimeout(this.resizeTimeout),this.win.cancelAnimationFrame(this.delayedFlush),this.win.cancelAnimationFrame(this.flushingAndroidKey),this.editContext&&(this.view.contentDOM.editContext=null,this.editContext.destroy())}};function ED(t,e,a){for(;e;){let n=xt.get(e);if(n&&n.parent==t)return n;let r=e.parentNode;e=r!=t.dom?r:a>0?e.nextSibling:e.previousSibling}return null}function AD(t,e){let a=e.startContainer,n=e.startOffset,r=e.endContainer,i=e.endOffset,o=t.docView.domAtPos(t.state.selection.main.anchor,1);return Ld(o.node,o.offset,r,i)&&([a,n,r,i]=[r,i,a,n]),{anchorNode:a,anchorOffset:n,focusNode:r,focusOffset:i}}function tj(t,e){if(e.getComposedRanges){let r=e.getComposedRanges(t.root)[0];if(r)return AD(t,r)}let a=null;function n(r){r.preventDefault(),r.stopImmediatePropagation(),a=r.getTargetRanges()[0]}return t.contentDOM.addEventListener("beforeinput",n,!0),t.dom.ownerDocument.execCommand("indent"),t.contentDOM.removeEventListener("beforeinput",n,!0),a?AD(t,a):null}var xv=class{constructor(e){this.from=0,this.to=0,this.pendingContextChange=null,this.handlers=Object.create(null),this.composing=null,this.resetRange(e.state);let a=this.editContext=new window.EditContext({text:e.state.doc.sliceString(this.from,this.to),selectionStart:this.toContextPos(Math.max(this.from,Math.min(this.to,e.state.selection.main.anchor))),selectionEnd:this.toContextPos(e.state.selection.main.head)});this.handlers.textupdate=n=>{let r=e.state.selection.main,{anchor:i,head:o}=r,s=this.toEditorPos(n.updateRangeStart),l=this.toEditorPos(n.updateRangeEnd);e.inputState.composing>=0&&!this.composing&&(this.composing={contextBase:n.updateRangeStart,editorBase:s,drifted:!1});let u=l-s>n.text.length;s==this.from&&i<this.from?s=i:l==this.to&&i>this.to&&(l=i);let c=vN(e.state.sliceDoc(s,l),n.text,(u?r.from:r.to)-s,u?"end":null);if(!c){let d=I.single(this.toEditorPos(n.selectionStart),this.toEditorPos(n.selectionEnd));rv(d,r)||e.dispatch({selection:d,userEvent:"select"});return}let f={from:c.from+s,to:c.toA+s,insert:Me.of(n.text.slice(c.from,c.toB).split(`
40
+ `))};if((K.mac||K.android)&&f.from==o-1&&/^\. ?$/.test(n.text)&&e.contentDOM.getAttribute("autocorrect")=="off"&&(f={from:s,to:l,insert:Me.of([n.text.replace("."," ")])}),this.pendingContextChange=f,!e.state.readOnly){let d=this.to-this.from+(f.to-f.from+f.insert.length);$v(e,f,I.single(this.toEditorPos(n.selectionStart,d),this.toEditorPos(n.selectionEnd,d)))}this.pendingContextChange&&(this.revertPending(e.state),this.setSelection(e.state)),f.from<f.to&&!f.insert.length&&e.inputState.composing>=0&&!/[\\p{Alphabetic}\\p{Number}_]/.test(a.text.slice(Math.max(0,n.updateRangeStart-1),Math.min(a.text.length,n.updateRangeStart+1)))&&this.handlers.compositionend(n)},this.handlers.characterboundsupdate=n=>{let r=[],i=null;for(let o=this.toEditorPos(n.rangeStart),s=this.toEditorPos(n.rangeEnd);o<s;o++){let l=e.coordsForChar(o);i=l&&new DOMRect(l.left,l.top,l.right-l.left,l.bottom-l.top)||i||new DOMRect,r.push(i)}a.updateCharacterBounds(n.rangeStart,r)},this.handlers.textformatupdate=n=>{let r=[];for(let i of n.getTextFormats()){let o=i.underlineStyle,s=i.underlineThickness;if(!/none/i.test(o)&&!/none/i.test(s)){let l=this.toEditorPos(i.rangeStart),u=this.toEditorPos(i.rangeEnd);if(l<u){let c=`text-decoration: underline ${/^[a-z]/.test(o)?o+" ":o=="Dashed"?"dashed ":o=="Squiggle"?"wavy ":""}${/thin/i.test(s)?1:2}px`;r.push(de.mark({attributes:{style:c}}).range(l,u))}}}e.dispatch({effects:fN.of(de.set(r))})},this.handlers.compositionstart=()=>{e.inputState.composing<0&&(e.inputState.composing=0,e.inputState.compositionFirstChange=!0)},this.handlers.compositionend=()=>{if(e.inputState.composing=-1,e.inputState.compositionFirstChange=null,this.composing){let{drifted:n}=this.composing;this.composing=null,n&&this.reset(e.state)}};for(let n in this.handlers)a.addEventListener(n,this.handlers[n]);this.measureReq={read:n=>{let r=Nd(n.root);r&&r.rangeCount&&this.editContext.updateSelectionBounds(r.getRangeAt(0).getBoundingClientRect())}}}applyEdits(e){let a=0,n=!1,r=this.pendingContextChange;return e.changes.iterChanges((i,o,s,l,u)=>{if(n)return;let c=u.length-(o-i);if(r&&o>=r.to)if(r.from==i&&r.to==o&&r.insert.eq(u)){r=this.pendingContextChange=null,a+=c,this.to+=c;return}else r=null,this.revertPending(e.state);if(i+=a,o+=a,o<=this.from)this.from+=c,this.to+=c;else if(i<this.to){if(i<this.from||o>this.to||this.to-this.from+u.length>3e4){n=!0;return}this.editContext.updateText(this.toContextPos(i),this.toContextPos(o),u.toString()),this.to+=c}a+=c}),r&&!n&&this.revertPending(e.state),!n}update(e){let a=this.pendingContextChange,n=e.startState.selection.main;this.composing&&(this.composing.drifted||!e.changes.touchesRange(n.from,n.to)&&e.transactions.some(r=>!r.isUserEvent("input.type")&&r.changes.touchesRange(this.from,this.to)))?(this.composing.drifted=!0,this.composing.editorBase=e.changes.mapPos(this.composing.editorBase)):!this.applyEdits(e)||!this.rangeIsValid(e.state)?(this.pendingContextChange=null,this.reset(e.state)):(e.docChanged||e.selectionSet||a)&&this.setSelection(e.state),(e.geometryChanged||e.docChanged||e.selectionSet)&&e.view.requestMeasure(this.measureReq)}resetRange(e){let{head:a}=e.selection.main;this.from=Math.max(0,a-1e4),this.to=Math.min(e.doc.length,a+1e4)}reset(e){this.resetRange(e),this.editContext.updateText(0,this.editContext.text.length,e.doc.sliceString(this.from,this.to)),this.setSelection(e)}revertPending(e){let a=this.pendingContextChange;this.pendingContextChange=null,this.editContext.updateText(this.toContextPos(a.from),this.toContextPos(a.from+a.insert.length),e.doc.sliceString(a.from,a.to))}setSelection(e){let{main:a}=e.selection,n=this.toContextPos(Math.max(this.from,Math.min(this.to,a.anchor))),r=this.toContextPos(a.head);(this.editContext.selectionStart!=n||this.editContext.selectionEnd!=r)&&this.editContext.updateSelection(n,r)}rangeIsValid(e){let{head:a}=e.selection.main;return!(this.from>0&&a-this.from<500||this.to<e.doc.length&&this.to-a<500||this.to-this.from>1e4*3)}toEditorPos(e,a=this.to-this.from){e=Math.min(e,a);let n=this.composing;return n&&n.drifted?n.editorBase+(e-n.contextBase):e+this.from}toContextPos(e){let a=this.composing;return a&&a.drifted?a.contextBase+(e-a.editorBase):e-this.from}destroy(){for(let e in this.handlers)this.editContext.removeEventListener(e,this.handlers[e])}},J=class t{get state(){return this.viewState.state}get viewport(){return this.viewState.viewport}get visibleRanges(){return this.viewState.visibleRanges}get inView(){return this.viewState.inView}get composing(){return!!this.inputState&&this.inputState.composing>0}get compositionStarted(){return!!this.inputState&&this.inputState.composing>=0}get root(){return this._root}get win(){return this.dom.ownerDocument.defaultView||window}constructor(e={}){var a;this.plugins=[],this.pluginMap=new Map,this.editorAttrs={},this.contentAttrs={},this.bidiCache=[],this.destroyed=!1,this.updateState=2,this.measureScheduled=-1,this.measureRequests=[],this.clearAnnouncement=-1,this.contentDOM=document.createElement("div"),this.scrollDOM=document.createElement("div"),this.scrollDOM.tabIndex=-1,this.scrollDOM.className="cm-scroller",this.scrollDOM.appendChild(this.contentDOM),this.announceDOM=document.createElement("div"),this.announceDOM.className="cm-announced",this.announceDOM.setAttribute("aria-live","polite"),this.dom=document.createElement("div"),this.dom.appendChild(this.announceDOM),this.dom.appendChild(this.scrollDOM),e.parent&&e.parent.appendChild(this.dom);let{dispatch:n}=e;this.dispatchTransactions=e.dispatchTransactions||n&&(r=>r.forEach(i=>n(i,this)))||(r=>this.update(r)),this.dispatch=this.dispatch.bind(this),this._root=e.root||jH(e.parent)||document,this.viewState=new Dg(this,e.state||et.create(e)),e.scrollTo&&e.scrollTo.is(dg)&&(this.viewState.scrollTarget=e.scrollTo.value.clip(this.viewState.state)),this.plugins=this.state.facet(Gu).map(r=>new Ad(r));for(let r of this.plugins)r.update(this);this.observer=new bv(this),this.inputState=new iv(this),this.inputState.ensureHandlers(this.plugins),this.docView=new Tg(this),this.mountStyles(),this.updateAttrs(),this.updateState=0,this.requestMeasure(),!((a=document.fonts)===null||a===void 0)&&a.ready&&document.fonts.ready.then(()=>{this.viewState.mustMeasureContent="refresh",this.requestMeasure()})}dispatch(...e){let a=e.length==1&&e[0]instanceof Dt?e:e.length==1&&Array.isArray(e[0])?e[0]:[this.state.update(...e)];this.dispatchTransactions(a,this)}update(e){if(this.updateState!=0)throw new Error("Calls to EditorView.update are not allowed while an update is in progress");let a=!1,n=!1,r,i=this.state;for(let d of e){if(d.startState!=i)throw new RangeError("Trying to update state with a transaction that doesn't start from the previous state.");i=d.state}if(this.destroyed){this.viewState.state=i;return}let o=this.hasFocus,s=0,l=null;e.some(d=>d.annotation(AN))?(this.inputState.notifiedFocused=o,s=1):o!=this.inputState.notifiedFocused&&(this.inputState.notifiedFocused=o,l=_N(i,o),l||(s=1));let u=this.observer.delayedAndroidKey,c=null;if(u?(this.observer.clearDelayedAndroidKey(),c=this.observer.readChange(),(c&&!this.state.doc.eq(i.doc)||!this.state.selection.eq(i.selection))&&(c=null)):this.observer.clear(),i.facet(et.phrases)!=this.state.facet(et.phrases))return this.setState(i);r=_g.create(this,i,e),r.flags|=s;let f=this.viewState.scrollTarget;try{this.updateState=2;for(let d of e){if(f&&(f=f.map(d.changes)),d.scrollIntoView){let{main:h}=d.state.selection,{x:p,y:g}=this.state.facet(t.cursorScrollMargin);f=new Ed(h.empty?h:I.cursor(h.head,h.head>h.anchor?-1:1),"nearest","nearest",g,p)}for(let h of d.effects)h.is(dg)&&(f=h.value.clip(this.state))}this.viewState.update(r,f),this.bidiCache=Ng.update(this.bidiCache,r.changes),r.empty||(this.updatePlugins(r),this.inputState.update(r)),a=this.docView.update(r),this.state.facet(vd)!=this.styleModules&&this.mountStyles(),n=this.updateAttrs(),this.showAnnouncements(e),this.docView.updateSelection(a,e.some(d=>d.isUserEvent("select.pointer")))}finally{this.updateState=0}if(r.startState.facet(Og)!=r.state.facet(Og)&&(this.viewState.mustMeasureContent=!0),(a||n||f||this.viewState.mustEnforceCursorAssoc||this.viewState.mustMeasureContent)&&this.requestMeasure(),a&&this.docViewUpdate(),!r.empty)for(let d of this.state.facet(Zy))try{d(r)}catch(h){Wn(this.state,h,"update listener")}(l||c)&&Promise.resolve().then(()=>{l&&this.state==l.startState&&this.dispatch(l),c&&!yN(this,c)&&u.force&&Wu(this.contentDOM,u.key,u.keyCode)})}setState(e){if(this.updateState!=0)throw new Error("Calls to EditorView.setState are not allowed while an update is in progress");if(this.destroyed){this.viewState.state=e;return}this.updateState=2;let a=this.hasFocus;try{for(let n of this.plugins)n.destroy(this);this.viewState=new Dg(this,e),this.plugins=e.facet(Gu).map(n=>new Ad(n)),this.pluginMap.clear();for(let n of this.plugins)n.update(this);this.docView.destroy(),this.docView=new Tg(this),this.inputState.ensureHandlers(this.plugins),this.mountStyles(),this.updateAttrs(),this.bidiCache=[]}finally{this.updateState=0}a&&this.focus(),this.requestMeasure()}updatePlugins(e){let a=e.startState.facet(Gu),n=e.state.facet(Gu);if(a!=n){let r=[];for(let i of n){let o=a.indexOf(i);if(o<0)r.push(new Ad(i));else{let s=this.plugins[o];s.mustUpdate=e,r.push(s)}}for(let i of this.plugins)i.mustUpdate!=e&&i.destroy(this);this.plugins=r,this.pluginMap.clear()}else for(let r of this.plugins)r.mustUpdate=e;for(let r=0;r<this.plugins.length;r++)this.plugins[r].update(this);a!=n&&this.inputState.ensureHandlers(this.plugins)}docViewUpdate(){for(let e of this.plugins){let a=e.value;if(a&&a.docViewUpdate)try{a.docViewUpdate(this)}catch(n){Wn(this.state,n,"doc view update listener")}}}measure(e=!0){if(this.destroyed)return;if(this.measureScheduled>-1&&this.win.cancelAnimationFrame(this.measureScheduled),this.observer.delayedAndroidKey){this.measureScheduled=-1,this.requestMeasure();return}this.measureScheduled=0,e&&this.observer.forceFlush();let a=null,n=this.viewState.scrollParent,r=this.viewState.getScrollOffset(),{scrollAnchorPos:i,scrollAnchorHeight:o,scaleY:s}=this.viewState;Math.abs(r-this.viewState.scrollOffset)>1&&(o=-1),this.viewState.scrollAnchorHeight=-1;try{for(let l=0;;l++){if(o<0){if(jD(n||this.win))i=-1,o=this.viewState.heightMap.height/this.viewState.scaleY;else{let p=this.viewState.scrollAnchorAt(r);i=p.from,o=p.top}s=this.viewState.scaleY}this.updateState=1;let u=this.viewState.measure();if(!u&&!this.measureRequests.length&&this.viewState.scrollTarget==null)break;if(l>5){console.warn(this.measureRequests.length?"Measure loop restarted more than 5 times":"Viewport failed to stabilize");break}let c=[];u&4||([this.measureRequests,c]=[c,this.measureRequests]);let f=c.map(p=>{try{return p.read(this)}catch(g){return Wn(this.state,g),_D}}),d=_g.create(this,this.state,[]),h=!1;d.flags|=u,a?a.flags|=u:a=d,this.updateState=2,d.empty||(this.updatePlugins(d),this.inputState.update(d),this.updateAttrs(),h=this.docView.update(d),h&&this.docViewUpdate());for(let p=0;p<c.length;p++)if(f[p]!=_D)try{let g=c[p];g.write&&g.write(f[p],this)}catch(g){Wn(this.state,g)}if(h&&this.docView.updateSelection(!0),!d.viewportChanged&&this.measureRequests.length==0){if(this.viewState.editorHeight)if(this.viewState.scrollTarget){this.docView.scrollIntoView(this.viewState.scrollTarget),this.viewState.scrollTarget=null,o=-1;continue}else{let g=(i<0?this.viewState.heightMap.height:this.viewState.lineBlockAt(i).top)/this.viewState.scaleY-o/s;if((g>1||g<-1)&&!(K.ios&&this.inputState.lastIOSMomentumScroll>Date.now()-100)&&(n==this.scrollDOM||this.hasFocus||Math.max(this.inputState.lastWheelEvent,this.inputState.lastTouchTime)>Date.now()-100)){r=r+g,n?i<0?n.scrollTop=n.scrollHeight:n.scrollTop+=g:this.win.scrollBy(0,g),o=-1;continue}}break}}}finally{this.updateState=0,this.measureScheduled=-1}if(a&&!a.empty)for(let l of this.state.facet(Zy))l(a)}get themeClasses(){return gv+" "+(this.state.facet(mv)?IN:TN)+" "+this.state.facet(Og)}updateAttrs(){let e=RD(this,dN,{class:"cm-editor"+(this.hasFocus?" cm-focused ":" ")+this.themeClasses}),a={spellcheck:"false",autocorrect:"off",autocapitalize:"off",writingsuggestions:"false",translate:"no",contenteditable:this.state.facet(Ai)?"true":"false",class:"cm-content",style:`${K.tabSize}: ${this.state.tabSize}`,role:"textbox","aria-multiline":"true"};this.state.readOnly&&(a["aria-readonly"]="true"),RD(this,Nv,a);let n=this.observer.ignore(()=>{let r=lD(this.contentDOM,this.contentAttrs,a),i=lD(this.dom,this.editorAttrs,e);return r||i});return this.editorAttrs=e,this.contentAttrs=a,n}showAnnouncements(e){let a=!0;for(let n of e)for(let r of n.effects)if(r.is(t.announce)){a&&(this.announceDOM.textContent="",this.win.clearTimeout(this.clearAnnouncement),this.clearAnnouncement=this.win.setTimeout(()=>{this.announceDOM.textContent="\xA0"},200),a=!1);let i=this.announceDOM.appendChild(document.createElement("div"));i.textContent=r.value}}mountStyles(){this.styleModules=this.state.facet(vd);let e=this.state.facet(t.cspNonce);Hn.mount(this.root,this.styleModules.concat(J7).reverse(),e?{nonce:e}:void 0)}readMeasured(){if(this.updateState==2)throw new Error("Reading the editor layout isn't allowed during an update");this.updateState==0&&this.measureScheduled>-1&&this.measure(!1)}requestMeasure(e){if(this.measureScheduled<0&&(this.measureScheduled=this.win.requestAnimationFrame(()=>this.measure())),e){if(this.measureRequests.indexOf(e)>-1)return;if(e.key!=null){for(let a=0;a<this.measureRequests.length;a++)if(this.measureRequests[a].key===e.key){this.measureRequests[a]=e;return}}this.measureRequests.push(e)}}plugin(e){let a=this.pluginMap.get(e);return(a===void 0||a&&a.plugin!=e)&&this.pluginMap.set(e,a=this.plugins.find(n=>n.plugin==e)||null),a&&a.update(this).value}get documentTop(){return this.contentDOM.getBoundingClientRect().top+this.viewState.paddingTop}get documentPadding(){return{top:this.viewState.paddingTop,bottom:this.viewState.paddingBottom}}get scaleX(){return this.viewState.scaleX}get scaleY(){return this.viewState.scaleY}elementAtHeight(e){return this.readMeasured(),this.viewState.elementAtHeight(e)}lineBlockAtHeight(e){return this.readMeasured(),this.viewState.lineBlockAtHeight(e)}get viewportLineBlocks(){return this.viewState.viewportLines}lineBlockAt(e){return this.viewState.lineBlockAt(e)}get contentHeight(){return this.viewState.contentHeight}moveByChar(e,a,n){return Ty(this,e,pD(this,e,a,n))}moveByGroup(e,a){return Ty(this,e,pD(this,e,a,n=>C7(this,e.head,n)))}visualLineSide(e,a){return a?I.cursor(e.to,1):I.cursor(e.from,-1)}moveToLineBoundary(e,a,n=!0){return v7(this,e,a,n)}moveVertically(e,a,n){return Ty(this,e,w7(this,e,a,n))}domAtPos(e,a=1){return this.docView.domAtPos(e,a)}posAtDOM(e,a=0){return this.docView.posFromDOM(e,a)}posAtCoords(e,a=!0){this.readMeasured();let n=ev(this,e,a);return n&&n.pos}posAndSideAtCoords(e,a=!0){return this.readMeasured(),ev(this,e,a)}coordsAtPos(e,a=1){this.readMeasured();let n=this.state.doc.lineAt(e),r=this.bidiSpans(n),i=r[Yn.find(r,e-n.from,-1,a)];return n.length&&(e==n.from&&a<0||e==n.to&&a>0)&&i.dir!=this.textDirectionAt(n.from)&&(e==n.to?(e=n.from+i.from,a=1):(e=n.from+i.to,a=-1)),this.docView.coordsAt(e,a,i.dir==st.RTL)}coordsForChar(e){return this.readMeasured(),this.docView.coordsForChar(e)}get defaultCharacterWidth(){return this.viewState.heightOracle.charWidth}get defaultLineHeight(){return this.viewState.heightOracle.lineHeight}get textDirection(){return this.viewState.defaultTextDirection}textDirectionAt(e){return!this.state.facet(lN)||e<this.viewport.from||e>this.viewport.to?this.textDirection:(this.readMeasured(),this.docView.textDirectionAt(e))}get lineWrapping(){return this.viewState.heightOracle.lineWrapping}bidiSpans(e){if(e.length>aj)return eN(e.length);let a=this.textDirectionAt(e.from),n;for(let i of this.bidiCache)if(i.from==e.from&&i.dir==a&&(i.fresh||JD(i.isolates,n=fD(this,e))))return i.order;n||(n=fD(this,e));let r=a7(e.text,a,n);return this.bidiCache.push(new Ng(e.from,e.to,a,n,!0,r)),r}get hasFocus(){var e;return(this.dom.ownerDocument.hasFocus()||K.safari&&((e=this.inputState)===null||e===void 0?void 0:e.lastContextMenu)>Date.now()-3e4)&&this.root.activeElement==this.contentDOM}focus(){this.observer.ignore(()=>{HD(this.contentDOM),this.docView.updateSelection()})}setRoot(e){this._root!=e&&(this._root=e,this.observer.setWindow((e.nodeType==9?e:e.ownerDocument).defaultView||window),this.mountStyles())}destroy(){this.root.activeElement==this.contentDOM&&this.contentDOM.blur();for(let e of this.plugins)e.destroy(this);this.plugins=[],this.inputState.destroy(),this.docView.destroy(),this.dom.remove(),this.observer.destroy(),this.win.clearTimeout(this.clearAnnouncement),this.measureScheduled>-1&&this.win.cancelAnimationFrame(this.measureScheduled),this.destroyed=!0}static scrollIntoView(e,a={}){var n,r,i,o;return dg.of(new Ed(typeof e=="number"?I.cursor(e):e,(n=a.y)!==null&&n!==void 0?n:"nearest",(r=a.x)!==null&&r!==void 0?r:"nearest",(i=a.yMargin)!==null&&i!==void 0?i:5,(o=a.xMargin)!==null&&o!==void 0?o:5))}scrollSnapshot(){let{scrollTop:e,scrollLeft:a}=this.scrollDOM,n=this.viewState.scrollAnchorAt(e);return dg.of(new Ed(I.cursor(n.from),"start","start",n.top-e,a,!0))}setTabFocusMode(e){e==null?this.inputState.tabFocusMode=this.inputState.tabFocusMode<0?0:-1:typeof e=="boolean"?this.inputState.tabFocusMode=e?0:-1:this.inputState.tabFocusMode!=0&&(this.inputState.tabFocusMode=Date.now()+e)}static domEventHandlers(e){return jt.define(()=>({}),{eventHandlers:e})}static domEventObservers(e){return jt.define(()=>({}),{eventObservers:e})}static theme(e,a){let n=Hn.newName(),r=[Og.of(n),vd.of(Ov(`.${n}`,e))];return a&&a.dark&&r.push(mv.of(!0)),r}static baseTheme(e){return Gn.lowest(vd.of(Ov("."+gv,e,PN)))}static findFromDOM(e){var a;let n=e.querySelector(".cm-content"),r=n&&xt.get(n)||xt.get(e);return((a=r?.root)===null||a===void 0?void 0:a.view)||null}};J.styleModule=vd;J.inputHandler=oN;J.clipboardInputFilter=Mv;J.clipboardOutputFilter=Dv;J.scrollHandler=cN;J.focusChangeEffect=sN;J.perLineTextDirection=lN;J.exceptionSink=iN;J.updateListener=Zy;J.editable=Ai;J.mouseSelectionStyle=rN;J.dragMovesSelection=nN;J.clickAddsSelectionRange=aN;J.decorations=zg;J.blockWrappers=hN;J.outerDecorations=Qv;J.atomicRanges=Bd;J.bidiIsolatedRanges=pN;J.cursorScrollMargin=te.define({combine:t=>{let e=5,a=5;for(let n of t)typeof n=="number"?e=a=n:{x:e,y:a}=n;return{x:e,y:a}}});J.scrollMargins=mN;J.darkTheme=mv;J.cspNonce=te.define({combine:t=>t.length?t[0]:""});J.contentAttributes=Nv;J.editorAttributes=dN;J.lineWrapping=J.contentAttributes.of({class:"cm-lineWrapping"});J.announce=Te.define();var aj=4096,_D={},Ng=class t{constructor(e,a,n,r,i,o){this.from=e,this.to=a,this.dir=n,this.isolates=r,this.fresh=i,this.order=o}static update(e,a){if(a.empty&&!e.some(i=>i.fresh))return e;let n=[],r=e.length?e[e.length-1].dir:st.LTR;for(let i=Math.max(0,e.length-10);i<e.length;i++){let o=e[i];o.dir==r&&!a.touchesRange(o.from,o.to)&&n.push(new t(a.mapPos(o.from,1),a.mapPos(o.to,-1),o.dir,o.isolates,!1,o.order))}return n}};function RD(t,e,a){for(let n=t.state.facet(e),r=n.length-1;r>=0;r--){let i=n[r],o=typeof i=="function"?i(t):i;o&&Tv(o,a)}return a}var nj=K.mac?"mac":K.windows?"win":K.linux?"linux":"key";function rj(t,e){let a=t.split(/-(?!$)/),n=a[a.length-1];n=="Space"&&(n=" ");let r,i,o,s;for(let l=0;l<a.length-1;++l){let u=a[l];if(/^(cmd|meta|m)$/i.test(u))s=!0;else if(/^a(lt)?$/i.test(u))r=!0;else if(/^(c|ctrl|control)$/i.test(u))i=!0;else if(/^s(hift)?$/i.test(u))o=!0;else if(/^mod$/i.test(u))e=="mac"?s=!0:i=!0;else throw new Error("Unrecognized modifier name: "+u)}return r&&(n="Alt-"+n),i&&(n="Ctrl-"+n),s&&(n="Meta-"+n),o&&(n="Shift-"+n),n}function bg(t,e,a){return e.altKey&&(t="Alt-"+t),e.ctrlKey&&(t="Ctrl-"+t),e.metaKey&&(t="Meta-"+t),a!==!1&&e.shiftKey&&(t="Shift-"+t),t}var ij=Gn.default(J.domEventHandlers({keydown(t,e){return NN(MN(e.state),t,e,"editor")}})),il=te.define({enables:ij}),TD=new WeakMap;function MN(t){let e=t.facet(il),a=TD.get(e);return a||TD.set(e,a=sj(e.reduce((n,r)=>n.concat(r),[]))),a}function DN(t,e,a){return NN(MN(t.state),e,t,a)}var zo=null,oj=4e3;function sj(t,e=nj){let a=Object.create(null),n=Object.create(null),r=(o,s)=>{let l=n[o];if(l==null)n[o]=s;else if(l!=s)throw new Error("Key binding "+o+" is used both as a regular binding and as a multi-stroke prefix")},i=(o,s,l,u,c)=>{var f,d;let h=a[o]||(a[o]=Object.create(null)),p=s.split(/ (?!$)/).map(m=>rj(m,e));for(let m=1;m<p.length;m++){let O=p.slice(0,m).join(" ");r(O,!0),h[O]||(h[O]={preventDefault:!0,stopPropagation:!1,run:[x=>{let S=zo={view:x,prefix:O,scope:o};return setTimeout(()=>{zo==S&&(zo=null)},oj),!0}]})}let g=p.join(" ");r(g,!1);let b=h[g]||(h[g]={preventDefault:!1,stopPropagation:!1,run:((d=(f=h._any)===null||f===void 0?void 0:f.run)===null||d===void 0?void 0:d.slice())||[]});l&&b.run.push(l),u&&(b.preventDefault=!0),c&&(b.stopPropagation=!0)};for(let o of t){let s=o.scope?o.scope.split(" "):["editor"];if(o.any)for(let u of s){let c=a[u]||(a[u]=Object.create(null));c._any||(c._any={preventDefault:!1,stopPropagation:!1,run:[]});let{any:f}=o;for(let d in c)c[d].run.push(h=>f(h,Sv))}let l=o[e]||o.key;if(l)for(let u of s)i(u,l,o.run,o.preventDefault,o.stopPropagation),o.shift&&i(u,"Shift-"+l,o.shift,o.preventDefault,o.stopPropagation)}return a}var Sv=null;function NN(t,e,a,n){Sv=e;let r=nD(e),i=qu(r,0),o=yd(i)==r.length&&r!=" ",s="",l=!1,u=!1,c=!1;zo&&zo.view==a&&zo.scope==n&&(s=zo.prefix+" ",wN.indexOf(e.keyCode)<0&&(u=!0,zo=null));let f=new Set,d=b=>{if(b){for(let m of b.run)if(!f.has(m)&&(f.add(m),m(a)))return b.stopPropagation&&(c=!0),!0;b.preventDefault&&(b.stopPropagation&&(c=!0),u=!0)}return!1},h=t[n],p,g;return h&&(d(h[s+bg(r,e,!o)])?l=!0:o&&(e.altKey||e.metaKey||e.ctrlKey)&&!(K.windows&&e.ctrlKey&&e.altKey)&&!(K.mac&&e.altKey&&!(e.ctrlKey||e.metaKey))&&(p=Ei[e.keyCode])&&p!=r?(d(h[s+bg(p,e,!0)])||e.shiftKey&&(g=Zu[e.keyCode])!=r&&g!=p&&d(h[s+bg(g,e,!1)]))&&(l=!0):o&&e.shiftKey&&d(h[s+bg(r,e,!0)])&&(l=!0),!l&&d(h._any)&&(l=!0)),u&&(l=!0),l&&c&&e.stopPropagation(),Sv=null,l}var tl=class t{constructor(e,a,n,r,i){this.className=e,this.left=a,this.top=n,this.width=r,this.height=i}draw(){let e=document.createElement("div");return e.className=this.className,this.adjust(e),e}update(e,a){return a.className!=this.className?!1:(this.adjust(e),!0)}adjust(e){e.style.left=this.left+"px",e.style.top=this.top+"px",this.width!=null&&(e.style.width=this.width+"px"),e.style.height=this.height+"px"}eq(e){return this.left==e.left&&this.top==e.top&&this.width==e.width&&this.height==e.height&&this.className==e.className}static forRange(e,a,n){if(n.empty){let r=e.coordsAtPos(n.head,n.assoc||1);if(!r)return[];let i=QN(e);return[new t(a,r.left-i.left,r.top-i.top,null,r.bottom-r.top)]}else return lj(e,a,n)}};function QN(t){let e=t.scrollDOM.getBoundingClientRect();return{left:(t.textDirection==st.LTR?e.left:e.right-t.scrollDOM.clientWidth*t.scaleX)-t.scrollDOM.scrollLeft*t.scaleX,top:e.top-t.scrollDOM.scrollTop*t.scaleY}}function ID(t,e,a,n){let r=t.coordsAtPos(e,a*2);if(!r)return n;let i=t.dom.getBoundingClientRect(),o=(r.top+r.bottom)/2,s=t.posAtCoords({x:i.left+1,y:o}),l=t.posAtCoords({x:i.right-1,y:o});return s==null||l==null?n:{from:Math.max(n.from,Math.min(s,l)),to:Math.min(n.to,Math.max(s,l))}}function lj(t,e,a){if(a.to<=t.viewport.from||a.from>=t.viewport.to)return[];let n=Math.max(a.from,t.viewport.from),r=Math.min(a.to,t.viewport.to),i=t.textDirection==st.LTR,o=t.contentDOM,s=o.getBoundingClientRect(),l=QN(t),u=o.querySelector(".cm-line"),c=u&&window.getComputedStyle(u),f=s.left+(c?parseInt(c.paddingLeft)+Math.min(0,parseInt(c.textIndent)):0),d=s.right-(c?parseInt(c.paddingRight):0),h=Jy(t,n,1),p=Jy(t,r,-1),g=h.type==ya.Text?h:null,b=p.type==ya.Text?p:null;if(g&&(t.lineWrapping||h.widgetLineBreaks)&&(g=ID(t,n,1,g)),b&&(t.lineWrapping||p.widgetLineBreaks)&&(b=ID(t,r,-1,b)),g&&b&&g.from==b.from&&g.to==b.to)return O(x(a.from,a.to,g));{let y=g?x(a.from,null,g):S(h,!1),C=b?x(null,a.to,b):S(p,!0),v=[];return(g||h).to<(b||p).from-(g&&b?1:0)||h.widgetLineBreaks>1&&y.bottom+t.defaultLineHeight/2<C.top?v.push(m(f,y.bottom,d,C.top)):y.bottom<C.top&&t.elementAtHeight((y.bottom+C.top)/2).type==ya.Text&&(y.bottom=C.top=(y.bottom+C.top)/2),O(y).concat(v).concat(O(C))}function m(y,C,v,k){return new tl(e,y-l.left,C-l.top,Math.max(0,v-y),k-C)}function O({top:y,bottom:C,horizontal:v}){let k=[];for(let L=0;L<v.length;L+=2)k.push(m(v[L],y,v[L+1],C));return k}function x(y,C,v){let k=1e9,L=-1e9,A=[];function R(Q,D,_,$,z){let H=t.coordsAtPos(Q,Q==v.to?-2:2),E=t.coordsAtPos(_,_==v.from?2:-2);!H||!E||(k=Math.min(H.top,E.top,k),L=Math.max(H.bottom,E.bottom,L),z==st.LTR?A.push(i&&D?f:H.left,i&&$?d:E.right):A.push(!i&&$?f:E.left,!i&&D?d:H.right))}let T=y??v.from,U=C??v.to;for(let Q of t.visibleRanges)if(Q.to>T&&Q.from<U)for(let D=Math.max(Q.from,T),_=Math.min(Q.to,U);;){let $=t.state.doc.lineAt(D);for(let z of t.bidiSpans($)){let H=z.from+$.from,E=z.to+$.from;if(H>=_)break;E>D&&R(Math.max(H,D),y==null&&H<=T,Math.min(E,_),C==null&&E>=U,z.dir)}if(D=$.to+1,D>=_)break}return A.length==0&&R(T,y==null,U,C==null,t.textDirection),{top:k,bottom:L,horizontal:A}}function S(y,C){let v=s.top+(C?y.top:y.bottom);return{top:v,bottom:v,horizontal:[]}}}function uj(t,e){return t.constructor==e.constructor&&t.eq(e)}var yv=class{constructor(e,a){this.view=e,this.layer=a,this.drawn=[],this.scaleX=1,this.scaleY=1,this.measureReq={read:this.measure.bind(this),write:this.draw.bind(this)},this.dom=e.scrollDOM.appendChild(document.createElement("div")),this.dom.classList.add("cm-layer"),a.above&&this.dom.classList.add("cm-layer-above"),a.class&&this.dom.classList.add(a.class),this.scale(),this.dom.setAttribute("aria-hidden","true"),this.setOrder(e.state),e.requestMeasure(this.measureReq),a.mount&&a.mount(this.dom,e)}update(e){e.startState.facet(yg)!=e.state.facet(yg)&&this.setOrder(e.state),(this.layer.update(e,this.dom)||e.geometryChanged)&&(this.scale(),e.view.requestMeasure(this.measureReq))}docViewUpdate(e){this.layer.updateOnDocViewUpdate!==!1&&e.requestMeasure(this.measureReq)}setOrder(e){let a=0,n=e.facet(yg);for(;a<n.length&&n[a]!=this.layer;)a++;this.dom.style.zIndex=String((this.layer.above?150:-1)-a)}measure(){return this.layer.markers(this.view)}scale(){let{scaleX:e,scaleY:a}=this.view;(e!=this.scaleX||a!=this.scaleY)&&(this.scaleX=e,this.scaleY=a,this.dom.style.transform=`scale(${1/e}, ${1/a})`)}draw(e){if(e.length!=this.drawn.length||e.some((a,n)=>!uj(a,this.drawn[n]))){let a=this.dom.firstChild,n=0;for(let r of e)r.update&&a&&r.constructor&&this.drawn[n].constructor&&r.update(a,this.drawn[n])?(a=a.nextSibling,n++):this.dom.insertBefore(r.draw(),a);for(;a;){let r=a.nextSibling;a.remove(),a=r}this.drawn=e,K.webkit&&(this.dom.style.display=this.dom.firstChild?"":"none")}}destroy(){this.layer.destroy&&this.layer.destroy(this.dom,this.view),this.dom.remove()}},yg=te.define();function $N(t){return[jt.define(e=>new yv(e,t)),yg.of(t)]}var vv=!K.ios,rc=te.define({combine(t){return On(t,{cursorBlinkRate:1200,drawRangeCursor:!0,iosSelectionHandles:!0},{cursorBlinkRate:(e,a)=>Math.min(e,a),drawRangeCursor:(e,a)=>e||a})}});function BN(t={}){return[rc.of(t),cj,fj,hj,uN.of(!0)]}function zN(t){return t.startState.facet(rc)!=t.state.facet(rc)}var cj=$N({above:!0,markers(t){let{state:e}=t,a=e.facet(rc),n=[];for(let r of e.selection.ranges){let i=r==e.selection.main;if(r.empty||a.drawRangeCursor&&!(i&&K.ios&&a.iosSelectionHandles)){let o=i?"cm-cursor cm-cursor-primary":"cm-cursor cm-cursor-secondary",s=r.empty?r:I.cursor(r.head,r.assoc);for(let l of tl.forRange(t,o,s))n.push(l)}}return n},update(t,e){t.transactions.some(n=>n.selection)&&(e.style.animationName=e.style.animationName=="cm-blink"?"cm-blink2":"cm-blink");let a=zN(t);return a&&PD(t.state,e),t.docChanged||t.selectionSet||a},mount(t,e){PD(e.state,t)},class:"cm-cursorLayer"});function PD(t,e){e.style.animationDuration=t.facet(rc).cursorBlinkRate+"ms"}var fj=$N({above:!1,markers(t){let e=[],{main:a,ranges:n}=t.state.selection;for(let r of n)if(!r.empty&&(vv||r!=a))for(let i of tl.forRange(t,"cm-selectionBackground",r))e.push(i);if(K.ios&&!a.empty&&t.state.facet(rc).iosSelectionHandles){for(let r of tl.forRange(t,"cm-selectionHandle cm-selectionHandle-start",I.cursor(a.from,1)))e.push(r);for(let r of tl.forRange(t,"cm-selectionHandle cm-selectionHandle-end",I.cursor(a.to,1)))e.push(r)}return e},update(t,e){return t.docChanged||t.selectionSet||t.viewportChanged||zN(t)},class:"cm-selectionLayer"}),dj=K.gecko&&K.gecko_version==153?"#ffffff01":"transparent",hj=Gn.highest(J.theme({".cm-line":{...vv?{"& ::selection, &::selection":{backgroundColor:`${dj} !important`}}:{},caretColor:"transparent !important"},".cm-content":{caretColor:"transparent !important","& :focus":{caretColor:"initial !important",...vv?{"&::selection, & ::selection":{backgroundColor:"Highlight !important"}}:{}}}})),UN=Te.define({map(t,e){return t==null?null:e.mapPos(t)}}),wd=ia.define({create(){return null},update(t,e){return t!=null&&(t=e.changes.mapPos(t)),e.effects.reduce((a,n)=>n.is(UN)?n.value:a,t)}}),pj=jt.fromClass(class{constructor(t){this.view=t,this.cursor=null,this.measureReq={read:this.readPos.bind(this),write:this.drawCursor.bind(this)}}update(t){var e;let a=t.state.field(wd);a==null?this.cursor!=null&&((e=this.cursor)===null||e===void 0||e.remove(),this.cursor=null):(this.cursor||(this.cursor=this.view.scrollDOM.appendChild(document.createElement("div")),this.cursor.className="cm-dropCursor"),(t.startState.field(wd)!=a||t.docChanged||t.geometryChanged)&&this.view.requestMeasure(this.measureReq))}readPos(){let{view:t}=this,e=t.state.field(wd),a=e!=null&&t.coordsAtPos(e);if(!a)return null;let n=t.scrollDOM.getBoundingClientRect();return{left:a.left-n.left+t.scrollDOM.scrollLeft*t.scaleX,top:a.top-n.top+t.scrollDOM.scrollTop*t.scaleY,height:a.bottom-a.top}}drawCursor(t){if(this.cursor){let{scaleX:e,scaleY:a}=this.view;t?(this.cursor.style.left=t.left/e+"px",this.cursor.style.top=t.top/a+"px",this.cursor.style.height=t.height/a+"px"):this.cursor.style.left="-100000px"}}destroy(){this.cursor&&this.cursor.remove()}setDropPos(t){this.view.state.field(wd)!=t&&this.view.dispatch({effects:UN.of(t)})}},{eventObservers:{dragover(t){this.setDropPos(this.view.posAtCoords({x:t.clientX,y:t.clientY}))},dragleave(t){(t.target==this.view.contentDOM||!this.view.contentDOM.contains(t.relatedTarget))&&this.setDropPos(null)},dragend(){this.setDropPos(null)},drop(){this.setDropPos(null)}}});function XN(){return[wd,pj]}function MD(t,e,a,n,r){e.lastIndex=0;for(let i=t.iterRange(a,n),o=a,s;!i.next().done;o+=i.value.length)if(!i.lineBreak)for(;s=e.exec(i.value);)r(o+s.index,s)}function mj(t,e){let a=t.visibleRanges;if(a.length==1&&a[0].from==t.viewport.from&&a[0].to==t.viewport.to)return a;let n=[];for(let{from:r,to:i}of a)r=Math.max(t.state.doc.lineAt(r).from,r-e),i=Math.min(t.state.doc.lineAt(i).to,i+e),n.length&&n[n.length-1].to>=r?n[n.length-1].to=i:n.push({from:r,to:i});return n}var Cv=class{constructor(e){let{regexp:a,decoration:n,decorate:r,boundary:i,maxLength:o=1e3}=e;if(!a.global)throw new RangeError("The regular expression given to MatchDecorator should have its 'g' flag set");if(this.regexp=a,r)this.addMatch=(s,l,u,c)=>r(c,u,u+s[0].length,s,l);else if(typeof n=="function")this.addMatch=(s,l,u,c)=>{let f=n(s,l,u);f&&c(u,u+s[0].length,f)};else if(n)this.addMatch=(s,l,u,c)=>c(u,u+s[0].length,n);else throw new RangeError("Either 'decorate' or 'decoration' should be provided to MatchDecorator");this.boundary=i,this.maxLength=o}createDeco(e){let a=new Zn,n=a.add.bind(a);for(let{from:r,to:i}of mj(e,this.maxLength))MD(e.state.doc,this.regexp,r,i,(o,s)=>this.addMatch(s,e,o,n));return a.finish()}updateDeco(e,a){let n=1e9,r=-1;return e.docChanged&&e.changes.iterChanges((i,o,s,l)=>{l>=e.view.viewport.from&&s<=e.view.viewport.to&&(n=Math.min(s,n),r=Math.max(l,r))}),e.viewportMoved||r-n>1e3?this.createDeco(e.view):r>-1?this.updateRange(e.view,a.map(e.changes),n,r):a}updateRange(e,a,n,r){for(let i of e.visibleRanges){let o=Math.max(i.from,n),s=Math.min(i.to,r);if(s>=o){let l=e.state.doc.lineAt(o),u=l.to<s?e.state.doc.lineAt(s):l,c=Math.max(i.from,l.from),f=Math.min(i.to,u.to);if(this.boundary){for(;o>l.from;o--)if(this.boundary.test(l.text[o-1-l.from])){c=o;break}for(;s<u.to;s++)if(this.boundary.test(u.text[s-u.from])){f=s;break}}let d=[],h,p=(g,b,m)=>d.push(m.range(g,b));if(l==u)for(this.regexp.lastIndex=c-l.from;(h=this.regexp.exec(l.text))&&h.index<f-l.from;)this.addMatch(h,e,h.index+l.from,p);else MD(e.state.doc,this.regexp,c,f,(g,b)=>this.addMatch(b,e,g,p));a=a.update({filterFrom:c,filterTo:f,filter:(g,b)=>g<c||b>f,add:d})}}return a}},wv=/x/.unicode!=null?"gu":"g",gj=new RegExp(`[\0-\b
41
+ -\x7F-\x9F\xAD\u061C\u200B\u200E\u200F\u2028\u2029\u202D\u202E\u2066\u2067\u2069\uFEFF\uFFF9-\uFFFC]`,wv),Oj={0:"null",7:"bell",8:"backspace",10:"newline",11:"vertical tab",13:"carriage return",27:"escape",8203:"zero width space",8204:"zero width non-joiner",8205:"zero width joiner",8206:"left-to-right mark",8207:"right-to-left mark",8232:"line separator",8237:"left-to-right override",8238:"right-to-left override",8294:"left-to-right isolate",8295:"right-to-left isolate",8297:"pop directional isolate",8233:"paragraph separator",65279:"zero width no-break space",65532:"object replacement"},Py=null;function bj(){var t;if(Py==null&&typeof document<"u"&&document.body){let e=document.body.style;Py=((t=e.tabSize)!==null&&t!==void 0?t:e.MozTabSize)!=null}return Py||!1}var vg=te.define({combine(t){let e=On(t,{render:null,specialChars:gj,addSpecialChars:null});return(e.replaceTabs=!bj())&&(e.specialChars=new RegExp(" |"+e.specialChars.source,wv)),e.addSpecialChars&&(e.specialChars=new RegExp(e.specialChars.source+"|"+e.addSpecialChars.source,wv)),e}});function qN(t={}){return[vg.of(t),xj()]}var DD=null;function xj(){return DD||(DD=jt.fromClass(class{constructor(t){this.view=t,this.decorations=de.none,this.decorationCache=Object.create(null),this.decorator=this.makeDecorator(t.state.facet(vg)),this.decorations=this.decorator.createDeco(t)}makeDecorator(t){return new Cv({regexp:t.specialChars,decoration:(e,a,n)=>{let{doc:r}=a.state,i=qu(e[0],0);if(i==9){let o=r.lineAt(n),s=a.state.tabSize,l=$a(o.text,s,n-o.from);return de.replace({widget:new Lv((s-l%s)*this.view.defaultCharacterWidth/this.view.scaleX)})}return this.decorationCache[i]||(this.decorationCache[i]=de.replace({widget:new kv(t,i)}))},boundary:t.replaceTabs?void 0:/[^]/})}update(t){let e=t.state.facet(vg);t.startState.facet(vg)!=e?(this.decorator=this.makeDecorator(e),this.decorations=this.decorator.createDeco(t.view)):this.decorations=this.decorator.updateDeco(t,this.decorations)}},{decorations:t=>t.decorations}))}var Sj="\u2022";function yj(t){return t>=32?Sj:t==10?"\u2424":String.fromCharCode(9216+t)}var kv=class extends xn{constructor(e,a){super(),this.options=e,this.code=a}eq(e){return e.code==this.code}toDOM(e){let a=yj(this.code),n=e.state.phrase("Control character")+" "+(Oj[this.code]||"0x"+this.code.toString(16)),r=this.options.render&&this.options.render(this.code,n,a);if(r)return r;let i=document.createElement("span");return i.textContent=a,i.title=n,i.setAttribute("aria-label",n),i.className="cm-specialChar",i}ignoreEvent(){return!1}},Lv=class extends xn{constructor(e){super(),this.width=e}eq(e){return e.width==this.width}toDOM(){let e=document.createElement("span");return e.textContent=" ",e.className="cm-tab",e.style.width=this.width+"px",e}ignoreEvent(){return!1}};function ZN(){return Cj}var vj=de.line({class:"cm-activeLine"}),Cj=jt.fromClass(class{constructor(t){this.decorations=this.getDeco(t)}update(t){(t.docChanged||t.selectionSet)&&(this.decorations=this.getDeco(t.view))}getDeco(t){let e=-1,a=[];for(let n of t.state.selection.ranges){let r=t.lineBlockAt(n.head);r.from>e&&(a.push(vj.range(r.from)),e=r.from)}return de.set(a)}},{decorations:t=>t.decorations});var Ev=2e3;function wj(t,e,a){let n=Math.min(e.line,a.line),r=Math.max(e.line,a.line),i=[];if(e.off>Ev||a.off>Ev||e.col<0||a.col<0){let o=Math.min(e.off,a.off),s=Math.max(e.off,a.off);for(let l=n;l<=r;l++){let u=t.doc.line(l);u.length<=s&&i.push(I.range(u.from+o,u.to+s))}}else{let o=Math.min(e.col,a.col),s=Math.max(e.col,a.col);for(let l=n;l<=r;l++){let u=t.doc.line(l),c=cg(u.text,o,t.tabSize,!0);if(c<0)i.push(I.cursor(u.to));else{let f=cg(u.text,s,t.tabSize);i.push(I.range(u.from+c,u.from+f))}}}return i}function kj(t,e){let a=t.coordsAtPos(t.viewport.from);return a?Math.round(Math.abs((a.left-e)/t.defaultCharacterWidth)):-1}function ND(t,e){let a=t.posAtCoords({x:e.clientX,y:e.clientY},!1),n=t.state.doc.lineAt(a),r=a-n.from,i=r>Ev?-1:r==n.length?kj(t,e.clientX):$a(n.text,t.state.tabSize,a-n.from);return{line:n.number,col:i,off:r}}function Lj(t,e){let a=ND(t,e),n=t.state.selection;return a?{update(r){if(r.docChanged){let i=r.changes.mapPos(r.startState.doc.line(a.line).from),o=r.state.doc.lineAt(i);a={line:o.number,col:a.col,off:Math.min(a.off,o.length)},n=n.map(r.changes)}},get(r,i,o){let s=ND(t,r);if(!s)return n;let l=wj(t.state,a,s);return l.length?o?I.create(l.concat(n.ranges)):I.create(l):n}}:null}function FN(t){let e=t?.eventFilter||(a=>a.altKey&&a.button==0);return J.mouseSelectionStyle.of((a,n)=>e(n)?Lj(a,n):null)}var QD=te.define({combine(t){let e,a;for(let n of t)e=e||n.topContainer,a=a||n.bottomContainer;return{topContainer:e,bottomContainer:a}}});function Xg(t,e){let a=t.plugin(GN),n=a?a.specs.indexOf(e):-1;return n>-1?a.panels[n]:null}var GN=jt.fromClass(class{constructor(t){this.input=t.state.facet($d),this.specs=this.input.filter(a=>a),this.panels=this.specs.map(a=>a(t));let e=t.state.facet(QD);this.top=new ju(t,!0,e.topContainer),this.bottom=new ju(t,!1,e.bottomContainer),this.top.sync(this.panels.filter(a=>a.top)),this.bottom.sync(this.panels.filter(a=>!a.top));for(let a of this.panels)a.dom.classList.add("cm-panel"),a.mount&&a.mount()}update(t){let e=t.state.facet(QD);this.top.container!=e.topContainer&&(this.top.sync([]),this.top=new ju(t.view,!0,e.topContainer)),this.bottom.container!=e.bottomContainer&&(this.bottom.sync([]),this.bottom=new ju(t.view,!1,e.bottomContainer)),this.top.syncClasses(),this.bottom.syncClasses();let a=t.state.facet($d);if(a!=this.input){let n=a.filter(l=>l),r=[],i=[],o=[],s=[];for(let l of n){let u=this.specs.indexOf(l),c;u<0?(c=l(t.view),s.push(c)):(c=this.panels[u],c.update&&c.update(t)),r.push(c),(c.top?i:o).push(c)}this.specs=n,this.panels=r,this.top.sync(i),this.bottom.sync(o);for(let l of s)l.dom.classList.add("cm-panel"),l.mount&&l.mount()}else for(let n of this.panels)n.update&&n.update(t)}destroy(){this.top.sync([]),this.bottom.sync([])}},{provide:t=>J.scrollMargins.of(e=>{let a=e.plugin(t);return a&&{top:a.top.scrollMargin(),bottom:a.bottom.scrollMargin()}})}),ju=class{constructor(e,a,n){this.view=e,this.top=a,this.container=n,this.dom=void 0,this.classes="",this.panels=[],this.syncClasses()}sync(e){for(let a of this.panels)a.destroy&&e.indexOf(a)<0&&a.destroy();this.panels=e,this.syncDOM()}syncDOM(){if(this.panels.length==0){this.dom&&(this.dom.remove(),this.dom=void 0);return}if(!this.dom){this.dom=document.createElement("div"),this.dom.className=this.top?"cm-panels cm-panels-top":"cm-panels cm-panels-bottom";let a=this.container||this.view.dom;a.insertBefore(this.dom,this.top?a.firstChild:null)}let e=this.dom.firstChild;for(let a of this.panels)if(a.dom.parentNode==this.dom){for(;e!=a.dom;)e=$D(e);e=e.nextSibling}else this.dom.insertBefore(a.dom,e);for(;e;)e=$D(e)}scrollMargin(){return!this.dom||this.container?0:Math.max(0,this.top?this.dom.getBoundingClientRect().bottom-Math.max(0,this.view.scrollDOM.getBoundingClientRect().top):Math.min(innerHeight,this.view.scrollDOM.getBoundingClientRect().bottom)-this.dom.getBoundingClientRect().top)}syncClasses(){if(!(!this.container||this.classes==this.view.themeClasses)){for(let e of this.classes.split(" "))e&&this.container.classList.remove(e);for(let e of(this.classes=this.view.themeClasses).split(" "))e&&this.container.classList.add(e)}}};function $D(t){let e=t.nextSibling;return t.remove(),e}var $d=te.define({enables:GN});function HN(t,e){let a,n=new Promise(o=>a=o),r=o=>Ej(o,e,a);t.state.field(Cg,!1)?t.dispatch({effects:VN.of(r)}):t.dispatch({effects:Te.appendConfig.of(Cg.init(()=>[r]))});let i=YN.of(r);return{close:i,result:n.then(o=>((t.win.queueMicrotask||(l=>t.win.setTimeout(l,10)))(()=>{t.state.field(Cg).indexOf(r)>-1&&t.dispatch({effects:i})}),o))}}function jN(t,e){let a=t.state.field(Cg,!1)||[];for(let n of a){let r=Xg(t,n);if(r&&r.dom.classList.contains(e))return r}return null}var Cg=ia.define({create(){return[]},update(t,e){for(let a of e.effects)a.is(VN)?t=[a.value].concat(t):a.is(YN)&&(t=t.filter(n=>n!=a.value));return t},provide:t=>$d.computeN([t],e=>e.field(t))}),VN=Te.define(),YN=Te.define();function Ej(t,e,a){let n=e.content?e.content(t,()=>o(null)):null;if(!n){if(n=Tt("form"),e.input){let s=Tt("input",e.input);/^(text|password|number|email|tel|url)$/.test(s.type)&&s.classList.add("cm-textfield"),s.name||(s.name="input"),n.appendChild(Tt("label",(e.label||"")+": ",s))}else n.appendChild(document.createTextNode(e.label||""));n.appendChild(document.createTextNode(" ")),n.appendChild(Tt("button",{class:"cm-button",type:"submit"},e.submitLabel||"OK"))}let r=n.nodeName=="FORM"?[n]:n.querySelectorAll("form");for(let s=0;s<r.length;s++){let l=r[s];l.addEventListener("keydown",u=>{u.keyCode==27?(u.preventDefault(),o(null)):u.keyCode==13&&(u.preventDefault(),o(l))}),l.addEventListener("submit",u=>{u.preventDefault(),o(l)})}let i=Tt("div",n,Tt("button",{onclick:()=>o(null),"aria-label":t.state.phrase("close"),class:"cm-dialog-close",type:"button"},["\xD7"]));e.class&&(i.className=e.class),i.classList.add("cm-dialog");function o(s){i.contains(i.ownerDocument.activeElement)&&t.focus(),a(s)}return{dom:i,top:e.top,mount:()=>{if(e.focus){let s;typeof e.focus=="string"?s=n.querySelector(e.focus):s=n.querySelector("input")||n.querySelector("button"),s&&"select"in s?s.select():s&&"focus"in s&&s.focus()}}}}var Kn=class extends Fn{compare(e){return this==e||this.constructor==e.constructor&&this.eq(e)}eq(e){return!1}destroy(e){}};Kn.prototype.elementClass="";Kn.prototype.toDOM=void 0;Kn.prototype.mapMode=Sa.TrackBefore;Kn.prototype.startSide=Kn.prototype.endSide=-1;Kn.prototype.point=!0;var wg=te.define(),Aj=te.define(),_j={class:"",renderEmptyElements:!1,elementStyle:"",markers:()=>Ze.empty,lineMarker:()=>null,widgetMarker:()=>null,lineMarkerChange:null,initialSpacer:null,updateSpacer:null,domEventHandlers:{},side:"before"},Id=te.define();function WN(t){return[KN(),Id.of({..._j,...t})]}var Av=te.define({combine:t=>t.some(e=>e)});function KN(t){let e=[Rj];return t&&t.fixed===!1&&e.push(Av.of(!0)),e}var Rj=jt.fromClass(class{constructor(t){this.view=t,this.domAfter=null,this.prevViewport=t.viewport,this.dom=document.createElement("div"),this.dom.className="cm-gutters cm-gutters-before",this.dom.setAttribute("aria-hidden","true"),this.dom.style.minHeight=this.view.contentHeight/this.view.scaleY+"px",this.gutters=t.state.facet(Id).map(e=>new Qg(t,e)),this.fixed=!t.state.facet(Av);for(let e of this.gutters)e.config.side=="after"?this.getDOMAfter().appendChild(e.dom):this.dom.appendChild(e.dom);this.fixed&&(this.dom.style.position="sticky"),this.syncGutters(!1),t.scrollDOM.insertBefore(this.dom,t.contentDOM)}getDOMAfter(){return this.domAfter||(this.domAfter=document.createElement("div"),this.domAfter.className="cm-gutters cm-gutters-after",this.domAfter.setAttribute("aria-hidden","true"),this.domAfter.style.minHeight=this.view.contentHeight/this.view.scaleY+"px",this.domAfter.style.position=this.fixed?"sticky":"",this.view.scrollDOM.appendChild(this.domAfter)),this.domAfter}update(t){if(this.updateGutters(t)){let e=this.prevViewport,a=t.view.viewport,n=Math.min(e.to,a.to)-Math.max(e.from,a.from);this.syncGutters(n<(a.to-a.from)*.8)}if(t.geometryChanged){let e=this.view.contentHeight/this.view.scaleY+"px";this.dom.style.minHeight=e,this.domAfter&&(this.domAfter.style.minHeight=e)}this.view.state.facet(Av)!=!this.fixed&&(this.fixed=!this.fixed,this.dom.style.position=this.fixed?"sticky":"",this.domAfter&&(this.domAfter.style.position=this.fixed?"sticky":"")),this.prevViewport=t.view.viewport}syncGutters(t){let e=this.dom.nextSibling;t&&(this.dom.remove(),this.domAfter&&this.domAfter.remove());let a=Ze.iter(this.view.state.facet(wg),this.view.viewport.from),n=[],r=this.gutters.map(i=>new Rv(i,this.view.viewport,-this.view.documentPadding.top));for(let i of this.view.viewportLineBlocks)if(n.length&&(n=[]),Array.isArray(i.type)){let o=!0;for(let s of i.type)if(s.type==ya.Text&&o){_v(a,n,s.from);for(let l of r)l.line(this.view,s,n);o=!1}else if(s.widget)for(let l of r)l.widget(this.view,s)}else if(i.type==ya.Text){_v(a,n,i.from);for(let o of r)o.line(this.view,i,n)}else if(i.widget)for(let o of r)o.widget(this.view,i);for(let i of r)i.finish();t&&(this.view.scrollDOM.insertBefore(this.dom,e),this.domAfter&&this.view.scrollDOM.appendChild(this.domAfter))}updateGutters(t){let e=t.startState.facet(Id),a=t.state.facet(Id),n=t.docChanged||t.heightChanged||t.viewportChanged||!Ze.eq(t.startState.facet(wg),t.state.facet(wg),t.view.viewport.from,t.view.viewport.to);if(e==a)for(let r of this.gutters)r.update(t)&&(n=!0);else{n=!0;let r=[];for(let i of a){let o=e.indexOf(i);o<0?r.push(new Qg(this.view,i)):(this.gutters[o].update(t),r.push(this.gutters[o]))}for(let i of this.gutters)i.dom.remove(),r.indexOf(i)<0&&i.destroy();for(let i of r)i.config.side=="after"?this.getDOMAfter().appendChild(i.dom):this.dom.appendChild(i.dom);this.gutters=r}return n}destroy(){for(let t of this.gutters)t.destroy();this.dom.remove(),this.domAfter&&this.domAfter.remove()}},{provide:t=>J.scrollMargins.of(e=>{let a=e.plugin(t);if(!a||a.gutters.length==0||!a.fixed)return null;let n=a.dom.offsetWidth*e.scaleX,r=a.domAfter?a.domAfter.offsetWidth*e.scaleX:0;return e.textDirection==st.LTR?{left:n,right:r}:{right:n,left:r}})});function BD(t){return Array.isArray(t)?t:[t]}function _v(t,e,a){for(;t.value&&t.from<=a;)t.from==a&&e.push(t.value),t.next()}var Rv=class{constructor(e,a,n){this.gutter=e,this.height=n,this.i=0,this.cursor=Ze.iter(e.markers,a.from)}addElement(e,a,n){let{gutter:r}=this,i=(a.top-this.height)/e.scaleY,o=a.height/e.scaleY;if(this.i==r.elements.length){let s=new $g(e,o,i,n);r.elements.push(s),r.dom.appendChild(s.dom)}else r.elements[this.i].update(e,o,i,n);this.height=a.bottom,this.i++}line(e,a,n){let r=[];_v(this.cursor,r,a.from),n.length&&(r=r.concat(n));let i=this.gutter.config.lineMarker(e,a,r);i&&r.unshift(i);let o=this.gutter;r.length==0&&!o.config.renderEmptyElements||this.addElement(e,a,r)}widget(e,a){let n=this.gutter.config.widgetMarker(e,a.widget,a),r=n?[n]:null;for(let i of e.state.facet(Aj)){let o=i(e,a.widget,a);o&&(r||(r=[])).push(o)}r&&this.addElement(e,a,r)}finish(){let e=this.gutter;for(;e.elements.length>this.i;){let a=e.elements.pop();e.dom.removeChild(a.dom),a.destroy()}}},Qg=class{constructor(e,a){this.view=e,this.config=a,this.elements=[],this.spacer=null,this.dom=document.createElement("div"),this.dom.className="cm-gutter"+(this.config.class?" "+this.config.class:"");for(let n in a.domEventHandlers)this.dom.addEventListener(n,r=>{let i=r.target,o;if(i!=this.dom&&this.dom.contains(i)){for(;i.parentNode!=this.dom;)i=i.parentNode;let l=i.getBoundingClientRect();o=(l.top+l.bottom)/2}else o=r.clientY;let s=e.lineBlockAtHeight(o-e.documentTop);a.domEventHandlers[n](e,s,r)&&r.preventDefault()});this.markers=BD(a.markers(e)),a.initialSpacer&&(this.spacer=new $g(e,0,0,[a.initialSpacer(e)]),this.dom.appendChild(this.spacer.dom),this.spacer.dom.style.cssText+="visibility: hidden; pointer-events: none")}update(e){let a=this.markers;if(this.markers=BD(this.config.markers(e.view)),this.spacer&&this.config.updateSpacer){let r=this.config.updateSpacer(this.spacer.markers[0],e);r!=this.spacer.markers[0]&&this.spacer.update(e.view,0,0,[r])}let n=e.view.viewport;return!Ze.eq(this.markers,a,n.from,n.to)||(this.config.lineMarkerChange?this.config.lineMarkerChange(e):!1)}destroy(){for(let e of this.elements)e.destroy()}},$g=class{constructor(e,a,n,r){this.height=-1,this.above=0,this.markers=[],this.dom=document.createElement("div"),this.dom.className="cm-gutterElement",this.update(e,a,n,r)}update(e,a,n,r){this.height!=a&&(this.height=a,this.dom.style.height=a+"px"),this.above!=n&&(this.dom.style.marginTop=(this.above=n)?n+"px":""),Tj(this.markers,r)||this.setMarkers(e,r)}setMarkers(e,a){let n="cm-gutterElement",r=this.dom.firstChild;for(let i=0,o=0;;){let s=o,l=i<a.length?a[i++]:null,u=!1;if(l){let c=l.elementClass;c&&(n+=" "+c);for(let f=o;f<this.markers.length;f++)if(this.markers[f].compare(l)){s=f,u=!0;break}}else s=this.markers.length;for(;o<s;){let c=this.markers[o++];if(c.toDOM){c.destroy(r);let f=r.nextSibling;r.remove(),r=f}}if(!l)break;l.toDOM&&(u?r=r.nextSibling:this.dom.insertBefore(l.toDOM(e),r)),u&&o++}this.dom.className=n,this.markers=a}destroy(){this.setMarkers(null,[])}};function Tj(t,e){if(t.length!=e.length)return!1;for(let a=0;a<t.length;a++)if(!t[a].compare(e[a]))return!1;return!0}var Ij=te.define(),Pj=te.define(),Vu=te.define({combine(t){return On(t,{formatNumber:String,domEventHandlers:{}},{domEventHandlers(e,a){let n=Object.assign({},e);for(let r in a){let i=n[r],o=a[r];n[r]=i?(s,l,u)=>i(s,l,u)||o(s,l,u):o}return n}})}}),Pd=class extends Kn{constructor(e){super(),this.number=e}eq(e){return this.number==e.number}toDOM(){return document.createTextNode(this.number)}};function My(t,e){return t.state.facet(Vu).formatNumber(e,t.state)}var Mj=Id.compute([Vu],t=>({class:"cm-lineNumbers",renderEmptyElements:!1,markers(e){return e.state.facet(Ij)},lineMarker(e,a,n){return n.some(r=>r.toDOM)?null:new Pd(My(e,e.state.doc.lineAt(a.from).number))},widgetMarker:(e,a,n)=>{for(let r of e.state.facet(Pj)){let i=r(e,a,n);if(i)return i}return null},lineMarkerChange:e=>e.startState.facet(Vu)!=e.state.facet(Vu),initialSpacer(e){return new Pd(My(e,zD(e.state.doc.lines)))},updateSpacer(e,a){let n=My(a.view,zD(a.view.state.doc.lines));return n==e.number?e:new Pd(n)},domEventHandlers:t.facet(Vu).domEventHandlers,side:"before"}));function JN(t={}){return[Vu.of(t),KN(),Mj]}function zD(t){let e=9;for(;e<t;)e=e*10+9;return e}var Dj=new class extends Kn{constructor(){super(...arguments),this.elementClass="cm-activeLineGutter"}},Nj=wg.compute(["selection"],t=>{let e=[],a=-1;for(let n of t.selection.ranges){let r=t.doc.lineAt(n.head).from;r>a&&(a=r,e.push(Dj.range(r)))}return Ze.of(e)});function eQ(){return Nj}var Qj=0,Ja=class{constructor(e,a){this.from=e,this.to=a}},fe=class{constructor(e={}){this.id=Qj++,this.perNode=!!e.perNode,this.deserialize=e.deserialize||(()=>{throw new Error("This node type doesn't define a deserialize function")}),this.combine=e.combine||null}add(e){if(this.perNode)throw new RangeError("Can't add per-node props to node types");return typeof e!="function"&&(e=wt.match(e)),a=>{let n=e(a);return n===void 0?null:[this,n]}}};fe.closedBy=new fe({deserialize:t=>t.split(" ")});fe.openedBy=new fe({deserialize:t=>t.split(" ")});fe.group=new fe({deserialize:t=>t.split(" ")});fe.isolate=new fe({deserialize:t=>{if(t&&t!="rtl"&&t!="ltr"&&t!="auto")throw new RangeError("Invalid value for isolate: "+t);return t||"auto"}});fe.contextHash=new fe({perNode:!0});fe.lookAhead=new fe({perNode:!0});fe.mounted=new fe({perNode:!0});var Zo=class{constructor(e,a,n,r=!1){this.tree=e,this.overlay=a,this.parser=n,this.bracketed=r}static get(e){return e&&e.props&&e.props[fe.mounted.id]}},$j=Object.create(null),wt=class t{constructor(e,a,n,r=0){this.name=e,this.props=a,this.id=n,this.flags=r}static define(e){let a=e.props&&e.props.length?Object.create(null):$j,n=(e.top?1:0)|(e.skipped?2:0)|(e.error?4:0)|(e.name==null?8:0),r=new t(e.name||"",a,e.id,n);if(e.props){for(let i of e.props)if(Array.isArray(i)||(i=i(r)),i){if(i[0].perNode)throw new RangeError("Can't store a per-node prop on a node type");a[i[0].id]=i[1]}}return r}prop(e){return this.props[e.id]}get isTop(){return(this.flags&1)>0}get isSkipped(){return(this.flags&2)>0}get isError(){return(this.flags&4)>0}get isAnonymous(){return(this.flags&8)>0}is(e){if(typeof e=="string"){if(this.name==e)return!0;let a=this.prop(fe.group);return a?a.indexOf(e)>-1:!1}return this.id==e}static match(e){let a=Object.create(null);for(let n in e)for(let r of n.split(" "))a[r]=e[n];return n=>{for(let r=n.prop(fe.group),i=-1;i<(r?r.length:0);i++){let o=a[i<0?n.name:r[i]];if(o)return o}}}};wt.none=new wt("",Object.create(null),0,8);var Fo=class t{constructor(e){this.types=e;for(let a=0;a<e.length;a++)if(e[a].id!=a)throw new RangeError("Node type ids should correspond to array positions when creating a node set")}extend(...e){let a=[];for(let n of this.types){let r=null;for(let i of e){let o=i(n);if(o){r||(r=Object.assign({},n.props));let s=o[1],l=o[0];l.combine&&l.id in r&&(s=l.combine(r[l.id],s)),r[l.id]=s}}a.push(r?new wt(n.name,r,n.id,n.flags):n)}return new t(a)}},qg=new WeakMap,tQ=new WeakMap,Ne;(function(t){t[t.ExcludeBuffers=1]="ExcludeBuffers",t[t.IncludeAnonymous=2]="IncludeAnonymous",t[t.IgnoreMounts=4]="IgnoreMounts",t[t.IgnoreOverlays=8]="IgnoreOverlays",t[t.EnterBracketed=16]="EnterBracketed"})(Ne||(Ne={}));var Fe=class t{constructor(e,a,n,r,i){if(this.type=e,this.children=a,this.positions=n,this.length=r,this.props=null,i&&i.length){this.props=Object.create(null);for(let[o,s]of i)this.props[typeof o=="number"?o:o.id]=s}}toString(){let e=Zo.get(this);if(e&&!e.overlay)return e.tree.toString();let a="";for(let n of this.children){let r=n.toString();r&&(a&&(a+=","),a+=r)}return this.type.name?(/\W/.test(this.type.name)&&!this.type.isError?JSON.stringify(this.type.name):this.type.name)+(a.length?"("+a+")":""):a}cursor(e=0){return new ic(this.topNode,e)}cursorAt(e,a=0,n=0){let r=qg.get(this)||this.topNode,i=new ic(r);return i.moveTo(e,a),qg.set(this,i._tree),i}get topNode(){return new en(this,0,0,null)}resolve(e,a=0){let n=zd(qg.get(this)||this.topNode,e,a,!1);return qg.set(this,n),n}resolveInner(e,a=0){let n=zd(tQ.get(this)||this.topNode,e,a,!0);return tQ.set(this,n),n}resolveStack(e,a=0){return Bj(this,e,a)}iterate(e){let{enter:a,leave:n,from:r=0,to:i=this.length}=e,o=e.mode||0,s=(o&Ne.IncludeAnonymous)>0;for(let l=this.cursor(o|Ne.IncludeAnonymous);;){let u=!1;if(l.from<=i&&l.to>=r&&(!s&&l.type.isAnonymous||a(l)!==!1)){if(l.firstChild())continue;u=!0}for(;u&&n&&(s||!l.type.isAnonymous)&&n(l),!l.nextSibling();){if(!l.parent())return;u=!0}}}prop(e){return e.perNode?this.props?this.props[e.id]:void 0:this.type.prop(e)}get propValues(){let e=[];if(this.props)for(let a in this.props)e.push([+a,this.props[a]]);return e}balance(e={}){return this.children.length<=8?this:Vv(wt.none,this.children,this.positions,0,this.children.length,0,this.length,(a,n,r)=>new t(this.type,a,n,r,this.propValues),e.makeTree||((a,n,r)=>new t(wt.none,a,n,r)))}static build(e){return zj(e)}};Fe.empty=new Fe(wt.none,[],[],0);var Bv=class t{constructor(e,a){this.buffer=e,this.index=a}get id(){return this.buffer[this.index-4]}get start(){return this.buffer[this.index-3]}get end(){return this.buffer[this.index-2]}get size(){return this.buffer[this.index-1]}get pos(){return this.index}next(){this.index-=4}fork(){return new t(this.buffer,this.index)}},Go=class t{constructor(e,a,n){this.buffer=e,this.length=a,this.set=n}get type(){return wt.none}toString(){let e=[];for(let a=0;a<this.buffer.length;)e.push(this.childString(a)),a=this.buffer[a+3];return e.join(",")}childString(e){let a=this.buffer[e],n=this.buffer[e+3],r=this.set.types[a],i=r.name;if(/\W/.test(i)&&!r.isError&&(i=JSON.stringify(i)),e+=4,n==e)return i;let o=[];for(;e<n;)o.push(this.childString(e)),e=this.buffer[e+3];return i+"("+o.join(",")+")"}findChild(e,a,n,r,i){let{buffer:o}=this,s=-1;for(let l=e;l!=a&&!(lQ(i,r,o[l+1],o[l+2])&&(s=l,n>0));l=o[l+3]);return s}slice(e,a,n){let r=this.buffer,i=new Uint16Array(a-e),o=0;for(let s=e,l=0;s<a;){i[l++]=r[s++],i[l++]=r[s++]-n;let u=i[l++]=r[s++]-n;i[l++]=r[s++]-e,o=Math.max(o,u)}return new t(i,o,this.set)}};function lQ(t,e,a,n){switch(t){case-2:return a<e;case-1:return n>=e&&a<e;case 0:return a<e&&n>e;case 1:return a<=e&&n>e;case 2:return n>e;case 4:return!0}}function zd(t,e,a,n){for(var r;t.from==t.to||(a<1?t.from>=e:t.from>e)||(a>-1?t.to<=e:t.to<e);){let o=!n&&t instanceof en&&t.index<0?null:t.parent;if(!o)return t;t=o}let i=n?0:Ne.IgnoreOverlays;if(n)for(let o=t,s=o.parent;s;o=s,s=o.parent)o instanceof en&&o.index<0&&((r=s.enter(e,a,i))===null||r===void 0?void 0:r.from)!=o.from&&(t=s);for(;;){let o=t.enter(e,a,i);if(!o)return t;t=o}}var Fg=class{cursor(e=0){return new ic(this,e)}getChild(e,a=null,n=null){let r=aQ(this,e,a,n);return r.length?r[0]:null}getChildren(e,a=null,n=null){return aQ(this,e,a,n)}resolve(e,a=0){return zd(this,e,a,!1)}resolveInner(e,a=0){return zd(this,e,a,!0)}matchContext(e){return zv(this.parent,e)}enterUnfinishedNodesBefore(e){let a=this.childBefore(e),n=this;for(;a;){let r=a.lastChild;if(!r||r.to!=a.to)break;r.type.isError&&r.from==r.to?(n=a,a=r.prevSibling):a=r}return n}get node(){return this}get next(){return this.parent}},en=class t extends Fg{constructor(e,a,n,r){super(),this._tree=e,this.from=a,this.index=n,this._parent=r}get type(){return this._tree.type}get name(){return this._tree.type.name}get to(){return this.from+this._tree.length}nextChild(e,a,n,r,i=0){for(let o=this;;){for(let{children:s,positions:l}=o._tree,u=a>0?s.length:-1;e!=u;e+=a){let c=s[e],f=l[e]+o.from,d;if(!(!(i&Ne.EnterBracketed&&c instanceof Fe&&(d=Zo.get(c))&&!d.overlay&&d.bracketed&&n>=f&&n<=f+c.length)&&!lQ(r,n,f,f+c.length))){if(c instanceof Go){if(i&Ne.ExcludeBuffers)continue;let h=c.findChild(0,c.buffer.length,a,n-f,r);if(h>-1)return new ol(new Uv(o,c,e,f),null,h)}else if(i&Ne.IncludeAnonymous||!c.type.isAnonymous||jv(c)){let h;if(!(i&Ne.IgnoreMounts)&&(h=Zo.get(c))&&!h.overlay)return new t(h.tree,f,e,o);let p=new t(c,f,e,o);return i&Ne.IncludeAnonymous||!p.type.isAnonymous?p:p.nextChild(a<0?c.children.length-1:0,a,n,r,i)}}}if(i&Ne.IncludeAnonymous||!o.type.isAnonymous||(o.index>=0?e=o.index+a:e=a<0?-1:o._parent._tree.children.length,o=o._parent,!o))return null}}get firstChild(){return this.nextChild(0,1,0,4)}get lastChild(){return this.nextChild(this._tree.children.length-1,-1,0,4)}childAfter(e){return this.nextChild(0,1,e,2)}childBefore(e){return this.nextChild(this._tree.children.length-1,-1,e,-2)}prop(e){return this._tree.prop(e)}enter(e,a,n=0){let r;if(!(n&Ne.IgnoreOverlays)&&(r=Zo.get(this._tree))&&r.overlay){let i=e-this.from,o=n&Ne.EnterBracketed&&r.bracketed;for(let{from:s,to:l}of r.overlay)if((a>0||o?s<=i:s<i)&&(a<0||o?l>=i:l>i))return new t(r.tree,r.overlay[0].from+this.from,-1,this)}return this.nextChild(0,1,e,a,n)}nextSignificantParent(){let e=this;for(;e.type.isAnonymous&&e._parent;)e=e._parent;return e}get parent(){return this._parent?this._parent.nextSignificantParent():null}get nextSibling(){return this._parent&&this.index>=0?this._parent.nextChild(this.index+1,1,0,4):null}get prevSibling(){return this._parent&&this.index>=0?this._parent.nextChild(this.index-1,-1,0,4):null}get tree(){return this._tree}toTree(){return this._tree}toString(){return this._tree.toString()}};function aQ(t,e,a,n){let r=t.cursor(),i=[];if(!r.firstChild())return i;if(a!=null){for(let o=!1;!o;)if(o=r.type.is(a),!r.nextSibling())return i}for(;;){if(n!=null&&r.type.is(n))return i;if(r.type.is(e)&&i.push(r.node),!r.nextSibling())return n==null?i:[]}}function zv(t,e,a=e.length-1){for(let n=t;a>=0;n=n.parent){if(!n)return!1;if(!n.type.isAnonymous){if(e[a]&&e[a]!=n.name)return!1;a--}}return!0}var Uv=class{constructor(e,a,n,r){this.parent=e,this.buffer=a,this.index=n,this.start=r}},ol=class t extends Fg{get name(){return this.type.name}get from(){return this.context.start+this.context.buffer.buffer[this.index+1]}get to(){return this.context.start+this.context.buffer.buffer[this.index+2]}constructor(e,a,n){super(),this.context=e,this._parent=a,this.index=n,this.type=e.buffer.set.types[e.buffer.buffer[n]]}child(e,a,n){let{buffer:r}=this.context,i=r.findChild(this.index+4,r.buffer[this.index+3],e,a-this.context.start,n);return i<0?null:new t(this.context,this,i)}get firstChild(){return this.child(1,0,4)}get lastChild(){return this.child(-1,0,4)}childAfter(e){return this.child(1,e,2)}childBefore(e){return this.child(-1,e,-2)}prop(e){return this.type.prop(e)}enter(e,a,n=0){if(n&Ne.ExcludeBuffers)return null;let{buffer:r}=this.context,i=r.findChild(this.index+4,r.buffer[this.index+3],a>0?1:-1,e-this.context.start,a);return i<0?null:new t(this.context,this,i)}get parent(){return this._parent||this.context.parent.nextSignificantParent()}externalSibling(e){return this._parent?null:this.context.parent.nextChild(this.context.index+e,e,0,4)}get nextSibling(){let{buffer:e}=this.context,a=e.buffer[this.index+3];return a<(this._parent?e.buffer[this._parent.index+3]:e.buffer.length)?new t(this.context,this._parent,a):this.externalSibling(1)}get prevSibling(){let{buffer:e}=this.context,a=this._parent?this._parent.index+4:0;return this.index==a?this.externalSibling(-1):new t(this.context,this._parent,e.findChild(a,this.index,-1,0,4))}get tree(){return null}toTree(){let e=[],a=[],{buffer:n}=this.context,r=this.index+4,i=n.buffer[this.index+3];if(i>r){let o=n.buffer[this.index+1];e.push(n.slice(r,i,o)),a.push(0)}return new Fe(this.type,e,a,this.to-this.from)}toString(){return this.context.buffer.childString(this.index)}};function uQ(t){if(!t.length)return null;let e=0,a=t[0];for(let i=1;i<t.length;i++){let o=t[i];(o.from>a.from||o.to<a.to)&&(a=o,e=i)}let n=a instanceof en&&a.index<0?null:a.parent,r=t.slice();return n?r[e]=n:r.splice(e,1),new Xv(r,a)}var Xv=class{constructor(e,a){this.heads=e,this.node=a}get next(){return uQ(this.heads)}};function Bj(t,e,a){let n=t.resolveInner(e,a),r=null;for(let i=n instanceof en?n:n.context.parent;i;i=i.parent)if(i.index<0){let o=i.parent;(r||(r=[n])).push(o.resolve(e,a)),i=o}else{let o=Zo.get(i.tree);if(o&&o.overlay&&o.overlay[0].from<=e&&o.overlay[o.overlay.length-1].to>=e){let s=new en(o.tree,o.overlay[0].from+i.from,-1,i);(r||(r=[n])).push(zd(s,e,a,!1))}}return r?uQ(r):n}var ic=class{get name(){return this.type.name}constructor(e,a=0){if(this.buffer=null,this.stack=[],this.index=0,this.bufferNode=null,this.mode=a&~Ne.EnterBracketed,e instanceof en)this.yieldNode(e);else{this._tree=e.context.parent,this.buffer=e.context;for(let n=e._parent;n;n=n._parent)this.stack.unshift(n.index);this.bufferNode=e,this.yieldBuf(e.index)}}yieldNode(e){return e?(this._tree=e,this.type=e.type,this.from=e.from,this.to=e.to,!0):!1}yieldBuf(e,a){this.index=e;let{start:n,buffer:r}=this.buffer;return this.type=a||r.set.types[r.buffer[e]],this.from=n+r.buffer[e+1],this.to=n+r.buffer[e+2],!0}yield(e){return e?e instanceof en?(this.buffer=null,this.yieldNode(e)):(this.buffer=e.context,this.yieldBuf(e.index,e.type)):!1}toString(){return this.buffer?this.buffer.buffer.childString(this.index):this._tree.toString()}enterChild(e,a,n){if(!this.buffer)return this.yield(this._tree.nextChild(e<0?this._tree._tree.children.length-1:0,e,a,n,this.mode));let{buffer:r}=this.buffer,i=r.findChild(this.index+4,r.buffer[this.index+3],e,a-this.buffer.start,n);return i<0?!1:(this.stack.push(this.index),this.yieldBuf(i))}firstChild(){return this.enterChild(1,0,4)}lastChild(){return this.enterChild(-1,0,4)}childAfter(e){return this.enterChild(1,e,2)}childBefore(e){return this.enterChild(-1,e,-2)}enter(e,a,n=this.mode){return this.buffer?n&Ne.ExcludeBuffers?!1:this.enterChild(1,e,a):this.yield(this._tree.enter(e,a,n))}parent(){if(!this.buffer)return this.yieldNode(this.mode&Ne.IncludeAnonymous?this._tree._parent:this._tree.parent);if(this.stack.length)return this.yieldBuf(this.stack.pop());let e=this.mode&Ne.IncludeAnonymous?this.buffer.parent:this.buffer.parent.nextSignificantParent();return this.buffer=null,this.yieldNode(e)}sibling(e){if(!this.buffer)return this._tree._parent?this.yield(this._tree.index<0?null:this._tree._parent.nextChild(this._tree.index+e,e,0,4,this.mode)):!1;let{buffer:a}=this.buffer,n=this.stack.length-1;if(e<0){let r=n<0?0:this.stack[n]+4;if(this.index!=r)return this.yieldBuf(a.findChild(r,this.index,-1,0,4))}else{let r=a.buffer[this.index+3];if(r<(n<0?a.buffer.length:a.buffer[this.stack[n]+3]))return this.yieldBuf(r)}return n<0?this.yield(this.buffer.parent.nextChild(this.buffer.index+e,e,0,4,this.mode)):!1}nextSibling(){return this.sibling(1)}prevSibling(){return this.sibling(-1)}atLastNode(e){let a,n,{buffer:r}=this;if(r){if(e>0){if(this.index<r.buffer.buffer.length)return!1}else for(let i=0;i<this.index;i++)if(r.buffer.buffer[i+3]<this.index)return!1;({index:a,parent:n}=r)}else({index:a,_parent:n}=this._tree);for(;n;{index:a,_parent:n}=n)if(a>-1)for(let i=a+e,o=e<0?-1:n._tree.children.length;i!=o;i+=e){let s=n._tree.children[i];if(this.mode&Ne.IncludeAnonymous||s instanceof Go||!s.type.isAnonymous||jv(s))return!1}return!0}move(e,a){if(a&&this.enterChild(e,0,4))return!0;for(;;){if(this.sibling(e))return!0;if(this.atLastNode(e)||!this.parent())return!1}}next(e=!0){return this.move(1,e)}prev(e=!0){return this.move(-1,e)}moveTo(e,a=0){for(;(this.from==this.to||(a<1?this.from>=e:this.from>e)||(a>-1?this.to<=e:this.to<e))&&this.parent(););for(;this.enterChild(1,e,a););return this}get node(){if(!this.buffer)return this._tree;let e=this.bufferNode,a=null,n=0;if(e&&e.context==this.buffer)e:for(let r=this.index,i=this.stack.length;i>=0;){for(let o=e;o;o=o._parent)if(o.index==r){if(r==this.index)return o;a=o,n=i+1;break e}r=this.stack[--i]}for(let r=n;r<this.stack.length;r++)a=new ol(this.buffer,a,this.stack[r]);return this.bufferNode=new ol(this.buffer,a,this.index)}get tree(){return this.buffer?null:this._tree._tree}iterate(e,a){for(let n=0;;){let r=!1;if(this.type.isAnonymous||e(this)!==!1){if(this.firstChild()){n++;continue}this.type.isAnonymous||(r=!0)}for(;;){if(r&&a&&a(this),r=this.type.isAnonymous,!n)return;if(this.nextSibling())break;this.parent(),n--,r=!0}}}matchContext(e){if(!this.buffer)return zv(this.node.parent,e);let{buffer:a}=this.buffer,{types:n}=a.set;for(let r=e.length-1,i=this.stack.length-1;r>=0;i--){if(i<0)return zv(this._tree,e,r);let o=n[a.buffer[this.stack[i]]];if(!o.isAnonymous){if(e[r]&&e[r]!=o.name)return!1;r--}}return!0}};function jv(t){return t.children.some(e=>e instanceof Go||!e.type.isAnonymous||jv(e))}function zj(t){var e;let{buffer:a,nodeSet:n,maxBufferLength:r=1024,reused:i=[],minRepeatType:o=n.types.length}=t,s=Array.isArray(a)?new Bv(a,a.length):a,l=n.types,u=0,c=0;function f(y,C,v,k,L,A){let{id:R,start:T,end:U,size:Q}=s,D=c,_=u;if(Q<0)if(s.next(),Q==-1){let N=i[R];v.push(N),k.push(T-y);return}else if(Q==-3){u=R;return}else if(Q==-4){c=R;return}else throw new RangeError(`Unrecognized record size: ${Q}`);let $=l[R],z,H,E=T-y;if(U-T<=r&&(H=b(s.pos-C,L))){let N=new Uint16Array(H.size-H.skip),F=s.pos-H.size,B=N.length;for(;s.pos>F;)B=m(H.start,N,B);z=new Go(N,U-H.start,n),E=H.start-y}else{let N=s.pos-Q;s.next();let F=[],B=[],V=R>=o?R:-1,q=0,Y=U;for(;s.pos>N;)V>=0&&s.id==V&&s.size>=0?(s.end<=Y-r&&(p(F,B,T,q,s.end,Y,V,D,_),q=F.length,Y=s.end),s.next()):A>2500?d(T,N,F,B):f(T,N,F,B,V,A+1);if(V>=0&&q>0&&q<F.length&&p(F,B,T,q,T,Y,V,D,_),F.reverse(),B.reverse(),V>-1&&q>0){let W=h($,_);z=Vv($,F,B,0,F.length,0,U-T,W,W)}else z=g($,F,B,U-T,D-U,_)}v.push(z),k.push(E)}function d(y,C,v,k){let L=[],A=0,R=-1;for(;s.pos>C;){let{id:T,start:U,end:Q,size:D}=s;if(D>4)s.next();else{if(R>-1&&U<R)break;R<0&&(R=Q-r),L.push(T,U,Q),A++,s.next()}}if(A){let T=new Uint16Array(A*4),U=L[L.length-2];for(let Q=L.length-3,D=0;Q>=0;Q-=3)T[D++]=L[Q],T[D++]=L[Q+1]-U,T[D++]=L[Q+2]-U,T[D++]=D;v.push(new Go(T,L[2]-U,n)),k.push(U-y)}}function h(y,C){return(v,k,L)=>{let A=0,R=v.length-1,T,U;if(R>=0&&(T=v[R])instanceof Fe){if(!R&&T.type==y&&T.length==L)return T;(U=T.prop(fe.lookAhead))&&(A=k[R]+T.length+U)}return g(y,v,k,L,A,C)}}function p(y,C,v,k,L,A,R,T,U){let Q=[],D=[];for(;y.length>k;)Q.push(y.pop()),D.push(C.pop()+v-L);y.push(g(n.types[R],Q,D,A-L,T-A,U)),C.push(L-v)}function g(y,C,v,k,L,A,R){if(A){let T=[fe.contextHash,A];R=R?[T].concat(R):[T]}if(L>25){let T=[fe.lookAhead,L];R=R?[T].concat(R):[T]}return new Fe(y,C,v,k,R)}function b(y,C){let v=s.fork(),k=0,L=0,A=0,R=v.end-r,T={size:0,start:0,skip:0};e:for(let U=v.pos-y;v.pos>U;){let Q=v.size;if(v.id==C&&Q>=0){T.size=k,T.start=L,T.skip=A,A+=4,k+=4,v.next();continue}let D=v.pos-Q;if(Q<0||D<U||v.start<R)break;let _=v.id>=o?4:0,$=v.start;for(v.next();v.pos>D;){if(v.size<0)if(v.size==-3||v.size==-4)_+=4;else break e;else v.id>=o&&(_+=4);v.next()}L=$,k+=Q,A+=_}return(C<0||k==y)&&(T.size=k,T.start=L,T.skip=A),T.size>4?T:void 0}function m(y,C,v){let{id:k,start:L,end:A,size:R}=s;if(s.next(),R>=0&&k<o){let T=v;if(R>4){let U=s.pos-(R-4);for(;s.pos>U;)v=m(y,C,v)}C[--v]=T,C[--v]=A-y,C[--v]=L-y,C[--v]=k}else R==-3?u=k:R==-4&&(c=k);return v}let O=[],x=[];for(;s.pos>0;)f(t.start||0,t.bufferStart||0,O,x,-1,0);let S=(e=t.length)!==null&&e!==void 0?e:O.length?x[0]+O[0].length:0;return new Fe(l[t.topID],O.reverse(),x.reverse(),S)}var nQ=new WeakMap;function Zg(t,e){if(!t.isAnonymous||e instanceof Go||e.type!=t)return 1;let a=nQ.get(e);if(a==null){a=1;for(let n of e.children){if(n.type!=t||!(n instanceof Fe)){a=1;break}a+=Zg(t,n)}nQ.set(e,a)}return a}function Vv(t,e,a,n,r,i,o,s,l){let u=0;for(let p=n;p<r;p++)u+=Zg(t,e[p]);let c=Math.ceil(u*1.5/8),f=[],d=[];function h(p,g,b,m,O){for(let x=b;x<m;){let S=x,y=g[x],C=Zg(t,p[x]);for(x++;x<m;x++){let v=Zg(t,p[x]);if(C+v>=c)break;C+=v}if(x==S+1){if(C>c){let v=p[S];h(v.children,v.positions,0,v.children.length,g[S]+O);continue}f.push(p[S])}else{let v=g[x-1]+p[x-1].length-y;f.push(Vv(t,p,g,S,x,y,v,null,l))}d.push(y+O-i)}}return h(e,a,n,r,0),(s||l)(f,d,o)}var oc=class{constructor(){this.map=new WeakMap}setBuffer(e,a,n){let r=this.map.get(e);r||this.map.set(e,r=new Map),r.set(a,n)}getBuffer(e,a){let n=this.map.get(e);return n&&n.get(a)}set(e,a){e instanceof ol?this.setBuffer(e.context.buffer,e.index,a):e instanceof en&&this.map.set(e.tree,a)}get(e){return e instanceof ol?this.getBuffer(e.context.buffer,e.index):e instanceof en?this.map.get(e.tree):void 0}cursorSet(e,a){e.buffer?this.setBuffer(e.buffer.buffer,e.index,a):this.map.set(e.tree,a)}cursorGet(e){return e.buffer?this.getBuffer(e.buffer.buffer,e.index):this.map.get(e.tree)}},Ti=class t{constructor(e,a,n,r,i=!1,o=!1){this.from=e,this.to=a,this.tree=n,this.offset=r,this.open=(i?1:0)|(o?2:0)}get openStart(){return(this.open&1)>0}get openEnd(){return(this.open&2)>0}static addTree(e,a=[],n=!1){let r=[new t(0,e.length,e,0,!1,n)];for(let i of a)i.to>e.length&&r.push(i);return r}static applyChanges(e,a,n=128){if(!a.length)return e;let r=[],i=1,o=e.length?e[0]:null;for(let s=0,l=0,u=0;;s++){let c=s<a.length?a[s]:null,f=c?c.fromA:1e9;if(f-l>=n)for(;o&&o.from<f;){let d=o;if(l>=d.from||f<=d.to||u){let h=Math.max(d.from,l)-u,p=Math.min(d.to,f)-u;d=h>=p?null:new t(h,p,d.tree,d.offset+u,s>0,!!c)}if(d&&r.push(d),o.to>f)break;o=i<e.length?e[i++]:null}if(!c)break;l=c.toA,u=c.toA-c.toB}return r}},Ho=class{startParse(e,a,n){return typeof e=="string"&&(e=new qv(e)),n=n?n.length?n.map(r=>new Ja(r.from,r.to)):[new Ja(0,0)]:[new Ja(0,e.length)],this.createParse(e,a||[],n)}parse(e,a,n){let r=this.startParse(e,a,n);for(;;){let i=r.advance();if(i)return i}}},qv=class{constructor(e){this.string=e}get length(){return this.string.length}chunk(e){return this.string.slice(e)}get lineChunks(){return!1}read(e,a){return this.string.slice(e,a)}};function jg(t){return(e,a,n,r)=>new Gv(e,t,a,n,r)}var Gg=class{constructor(e,a,n,r,i,o){this.parser=e,this.parse=a,this.overlay=n,this.bracketed=r,this.target=i,this.from=o}};function rQ(t){if(!t.length||t.some(e=>e.from>=e.to))throw new RangeError("Invalid inner parse ranges given: "+JSON.stringify(t))}var Zv=class{constructor(e,a,n,r,i,o,s,l){this.parser=e,this.predicate=a,this.mounts=n,this.index=r,this.start=i,this.bracketed=o,this.target=s,this.prev=l,this.depth=0,this.ranges=[]}},Fv=new fe({perNode:!0}),Gv=class{constructor(e,a,n,r,i){this.nest=a,this.input=n,this.fragments=r,this.ranges=i,this.inner=[],this.innerDone=0,this.baseTree=null,this.stoppedAt=null,this.baseParse=e}advance(){if(this.baseParse){let n=this.baseParse.advance();if(!n)return null;if(this.baseParse=null,this.baseTree=n,this.startInner(),this.stoppedAt!=null)for(let r of this.inner)r.parse.stopAt(this.stoppedAt)}if(this.innerDone==this.inner.length){let n=this.baseTree;return this.stoppedAt!=null&&(n=new Fe(n.type,n.children,n.positions,n.length,n.propValues.concat([[Fv,this.stoppedAt]]))),n}let e=this.inner[this.innerDone],a=e.parse.advance();if(a){this.innerDone++;let n=Object.assign(Object.create(null),e.target.props);n[fe.mounted.id]=new Zo(a,e.overlay,e.parser,e.bracketed),e.target.props=n}return null}get parsedPos(){if(this.baseParse)return 0;let e=this.input.length;for(let a=this.innerDone;a<this.inner.length;a++)this.inner[a].from<e&&(e=Math.min(e,this.inner[a].parse.parsedPos));return e}stopAt(e){if(this.stoppedAt=e,this.baseParse)this.baseParse.stopAt(e);else for(let a=this.innerDone;a<this.inner.length;a++)this.inner[a].parse.stopAt(e)}startInner(){let e=new Hv(this.fragments),a=null,n=null,r=new ic(new en(this.baseTree,this.ranges[0].from,0,null),Ne.IncludeAnonymous|Ne.IgnoreMounts);e:for(let i,o;;){let s=!0,l;if(this.stoppedAt!=null&&r.from>=this.stoppedAt)s=!1;else if(e.hasNode(r)){if(a){let u=a.mounts.find(c=>c.frag.from<=r.from&&c.frag.to>=r.to&&c.mount.overlay);if(u)for(let c of u.mount.overlay){let f=c.from+u.pos,d=c.to+u.pos;f>=r.from&&d<=r.to&&!a.ranges.some(h=>h.from<d&&h.to>f)&&a.ranges.push({from:f,to:d})}}s=!1}else if(n&&(o=Uj(n.ranges,r.from,r.to)))s=o!=2;else if(!r.type.isAnonymous&&(i=this.nest(r,this.input))&&(r.from<r.to||!i.overlay)){r.tree||(Xj(r),a&&a.depth++,n&&n.depth++);let u=e.findMounts(r.from,i.parser);if(typeof i.overlay=="function")a=new Zv(i.parser,i.overlay,u,this.inner.length,r.from,!!i.bracketed,r.tree,a);else{let c=oQ(this.ranges,i.overlay||(r.from<r.to?[new Ja(r.from,r.to)]:[]));c.length&&rQ(c),(c.length||!i.overlay)&&this.inner.push(new Gg(i.parser,c.length?i.parser.startParse(this.input,sQ(u,c),c):i.parser.startParse(""),i.overlay?i.overlay.map(f=>new Ja(f.from-r.from,f.to-r.from)):null,!!i.bracketed,r.tree,c.length?c[0].from:r.from)),i.overlay?c.length&&(n={ranges:c,depth:0,prev:n}):s=!1}}else if(a&&(l=a.predicate(r))&&(l===!0&&(l=new Ja(r.from,r.to)),l.from<l.to)){let u=a.ranges.length-1;u>=0&&a.ranges[u].to==l.from?a.ranges[u]={from:a.ranges[u].from,to:l.to}:a.ranges.push(l)}if(s&&r.firstChild())a&&a.depth++,n&&n.depth++;else for(;!r.nextSibling();){if(!r.parent())break e;if(a&&!--a.depth){let u=oQ(this.ranges,a.ranges);u.length&&(rQ(u),this.inner.splice(a.index,0,new Gg(a.parser,a.parser.startParse(this.input,sQ(a.mounts,u),u),a.ranges.map(c=>new Ja(c.from-a.start,c.to-a.start)),a.bracketed,a.target,u[0].from))),a=a.prev}n&&!--n.depth&&(n=n.prev)}}}};function Uj(t,e,a){for(let n of t){if(n.from>=a)break;if(n.to>e)return n.from<=e&&n.to>=a?2:1}return 0}function iQ(t,e,a,n,r,i){if(e<a){let o=t.buffer[e+1];n.push(t.slice(e,a,o)),r.push(o-i)}}function Xj(t){let{node:e}=t,a=[],n=e.context.buffer;do a.push(t.index),t.parent();while(!t.tree);let r=t.tree,i=r.children.indexOf(n),o=r.children[i],s=o.buffer,l=[i];function u(c,f,d,h,p,g){let b=a[g],m=[],O=[];iQ(o,c,b,m,O,h);let x=s[b+1],S=s[b+2];l.push(m.length);let y=g?u(b+4,s[b+3],o.set.types[s[b]],x,S-x,g-1):e.toTree();return m.push(y),O.push(x-h),iQ(o,s[b+3],f,m,O,h),new Fe(d,m,O,p)}r.children[i]=u(0,s.length,wt.none,0,o.length,a.length-1);for(let c of l){let f=t.tree.children[c],d=t.tree.positions[c];t.yield(new en(f,d+t.from,c,t._tree))}}var Hg=class{constructor(e,a){this.offset=a,this.done=!1,this.cursor=e.cursor(Ne.IncludeAnonymous|Ne.IgnoreMounts|Ne.ExcludeBuffers)}moveTo(e){let{cursor:a}=this,n=e-this.offset;for(;!this.done&&a.from<n;)if(!(a.to>=n&&a.enter(n,1,Ne.IncludeAnonymous|Ne.IgnoreOverlays|Ne.ExcludeBuffers)))if(a.to<=n)a.next(!1)||(this.done=!0);else break}hasNode(e){if(this.moveTo(e.from),!this.done&&this.cursor.from+this.offset==e.from&&this.cursor.tree)for(let a=this.cursor.tree;;){if(a==e.tree)return!0;if(a.children.length&&a.positions[0]==0&&a.children[0]instanceof Fe)a=a.children[0];else break}return!1}},Hv=class{constructor(e){var a;if(this.fragments=e,this.curTo=0,this.fragI=0,e.length){let n=this.curFrag=e[0];this.curTo=(a=n.tree.prop(Fv))!==null&&a!==void 0?a:n.to,this.inner=new Hg(n.tree,-n.offset)}else this.curFrag=this.inner=null}hasNode(e){for(;this.curFrag&&e.from>=this.curTo;)this.nextFrag();return this.curFrag&&this.curFrag.from<=e.from&&this.curTo>=e.to&&this.inner.hasNode(e)}nextFrag(){var e;if(this.fragI++,this.fragI==this.fragments.length)this.curFrag=this.inner=null;else{let a=this.curFrag=this.fragments[this.fragI];this.curTo=(e=a.tree.prop(Fv))!==null&&e!==void 0?e:a.to,this.inner=new Hg(a.tree,-a.offset)}}findMounts(e,a){var n;let r=[];if(this.inner){this.inner.cursor.moveTo(e,1);for(let i=this.inner.cursor.node;i;i=i.parent){let o=(n=i.tree)===null||n===void 0?void 0:n.prop(fe.mounted);if(o&&o.parser==a)for(let s=this.fragI;s<this.fragments.length;s++){let l=this.fragments[s];if(l.from>=i.to)break;l.tree==this.curFrag.tree&&r.push({frag:l,pos:i.from-l.offset,mount:o})}}}return r}};function oQ(t,e){let a=null,n=e;for(let r=1,i=0;r<t.length;r++){let o=t[r-1].to,s=t[r].from;for(;i<n.length;i++){let l=n[i];if(l.from>=s)break;l.to<=o||(a||(n=a=e.slice()),l.from<o?(a[i]=new Ja(l.from,o),l.to>s&&a.splice(i+1,0,new Ja(s,l.to))):l.to>s?a[i--]=new Ja(s,l.to):a.splice(i--,1))}}return n}function qj(t,e,a,n){let r=0,i=0,o=!1,s=!1,l=-1e9,u=[];for(;;){let c=r==t.length?1e9:o?t[r].to:t[r].from,f=i==e.length?1e9:s?e[i].to:e[i].from;if(o!=s){let d=Math.max(l,a),h=Math.min(c,f,n);d<h&&u.push(new Ja(d,h))}if(l=Math.min(c,f),l==1e9)break;c==l&&(o?(o=!1,r++):o=!0),f==l&&(s?(s=!1,i++):s=!0)}return u}function sQ(t,e){let a=[];for(let{pos:n,mount:r,frag:i}of t){let o=n+(r.overlay?r.overlay[0].from:0),s=o+r.tree.length,l=Math.max(i.from,o),u=Math.min(i.to,s);if(r.overlay){let c=r.overlay.map(d=>new Ja(d.from+n,d.to+n)),f=qj(e,c,l,u);for(let d=0,h=l;;d++){let p=d==f.length,g=p?u:f[d].from;if(g>h&&a.push(new Ti(h,g,r.tree,-o,i.from>=h||i.openStart,i.to<=g||i.openEnd)),p)break;h=f[d].to}}else a.push(new Ti(l,u,r.tree,-o,i.from>=o||i.openStart,i.to<=s||i.openEnd))}return a}var Zj=0,Sn=class t{constructor(e,a,n,r){this.name=e,this.set=a,this.base=n,this.modified=r,this.id=Zj++}toString(){let{name:e}=this;for(let a of this.modified)a.name&&(e=`${a.name}(${e})`);return e}static define(e,a){let n=typeof e=="string"?e:"?";if(e instanceof t&&(a=e),a?.base)throw new Error("Can not derive from a modified tag");let r=new t(n,[],null,[]);if(r.set.push(r),a)for(let i of a.set)r.set.push(i);return r}static defineModifier(e){let a=new Kg(e);return n=>n.modified.indexOf(a)>-1?n:Kg.get(n.base||n,n.modified.concat(a).sort((r,i)=>r.id-i.id))}},Fj=0,Kg=class t{constructor(e){this.name=e,this.instances=[],this.id=Fj++}static get(e,a){if(!a.length)return e;let n=a[0].instances.find(s=>s.base==e&&Gj(a,s.modified));if(n)return n;let r=[],i=new Sn(e.name,r,e,a);for(let s of a)s.instances.push(i);let o=Hj(a);for(let s of e.set)if(!s.modified.length)for(let l of o)r.push(t.get(s,l));return i}};function Gj(t,e){return t.length==e.length&&t.every((a,n)=>a==e[n])}function Hj(t){let e=[[]];for(let a=0;a<t.length;a++)for(let n=0,r=e.length;n<r;n++)e.push(e[n].concat(t[a]));return e.sort((a,n)=>n.length-a.length)}function Or(t){let e=Object.create(null);for(let a in t){let n=t[a];Array.isArray(n)||(n=[n]);for(let r of a.split(" "))if(r){let i=[],o=2,s=r;for(let f=0;;){if(s=="..."&&f>0&&f+3==r.length){o=1;break}let d=/^"(?:[^"\\]|\\.)*?"|[^\/!]+/.exec(s);if(!d)throw new RangeError("Invalid path: "+r);if(i.push(d[0]=="*"?"":d[0][0]=='"'?JSON.parse(d[0]):d[0]),f+=d[0].length,f==r.length)break;let h=r[f++];if(f==r.length&&h=="!"){o=0;break}if(h!="/")throw new RangeError("Invalid path: "+r);s=r.slice(f)}let l=i.length-1,u=i[l];if(!u)throw new RangeError("Invalid path: "+r);let c=new ll(n,o,l>0?i.slice(0,l):null);e[u]=c.sort(e[u])}}return dQ.add(e)}var dQ=new fe({combine(t,e){let a,n,r;for(;t||e;){if(!t||e&&t.depth<=e.depth?(r=e,e=e.next):(r=t,t=t.next),a&&a.mode==r.mode&&!r.context&&!a.context)continue;let i=new ll(r.tags,r.mode,r.context);a?a.next=i:n=i,a=i}return n}}),ll=class{constructor(e,a,n,r){this.tags=e,this.mode=a,this.context=n,this.next=r}get opaque(){return this.mode==0}get inherit(){return this.mode==1}sort(e){return!e||e.depth<this.depth?(this.next=e,this):(e.next=this.sort(e.next),e)}get depth(){return this.context?this.context.length:0}};ll.empty=new ll([],2,null);function Jv(t,e){let a=Object.create(null);for(let i of t)if(!Array.isArray(i.tag))a[i.tag.id]=i.class;else for(let o of i.tag)a[o.id]=i.class;let{scope:n,all:r=null}=e||{};return{style:i=>{let o=r;for(let s of i)for(let l of s.set){let u=a[l.id];if(u){o=o?o+" "+u:u;break}}return o},scope:n}}function jj(t,e){let a=null;for(let n of t){let r=n.style(e);r&&(a=a?a+" "+r:r)}return a}function hQ(t,e,a,n=0,r=t.length){let i=new Wv(n,Array.isArray(e)?e:[e],a);i.highlightRange(t.cursor(),n,r,"",i.highlighters),i.flush(r)}var Wv=class{constructor(e,a,n){this.at=e,this.highlighters=a,this.span=n,this.class=""}startSpan(e,a){a!=this.class&&(this.flush(e),e>this.at&&(this.at=e),this.class=a)}flush(e){e>this.at&&this.class&&this.span(this.at,e,this.class)}highlightRange(e,a,n,r,i){let{type:o,from:s,to:l}=e;if(s>=n||l<=a)return;o.isTop&&(i=this.highlighters.filter(h=>!h.scope||h.scope(o)));let u=r,c=Vj(e)||ll.empty,f=jj(i,c.tags);if(f&&(u&&(u+=" "),u+=f,c.mode==1&&(r+=(r?" ":"")+f)),this.startSpan(Math.max(a,s),u),c.opaque)return;let d=e.tree&&e.tree.prop(fe.mounted);if(d&&d.overlay){let h=e.node.enter(d.overlay[0].from+s,1),p=this.highlighters.filter(b=>!b.scope||b.scope(d.tree.type)),g=e.firstChild();for(let b=0,m=s;;b++){let O=b<d.overlay.length?d.overlay[b]:null,x=O?O.from+s:l,S=Math.max(a,m),y=Math.min(n,x);if(S<y&&g)for(;e.from<y&&(this.highlightRange(e,S,y,r,i),this.startSpan(Math.min(y,e.to),u),!(e.to>=x||!e.nextSibling())););if(!O||x>n)break;m=O.to+s,m>a&&(this.highlightRange(h.cursor(),Math.max(a,O.from+s),Math.min(n,m),"",p),this.startSpan(Math.min(n,m),u))}g&&e.parent()}else if(e.firstChild()){d&&(r="");do if(!(e.to<=a)){if(e.from>=n)break;this.highlightRange(e,a,n,r,i),this.startSpan(Math.min(n,e.to),u)}while(e.nextSibling());e.parent()}}};function Vj(t){let e=t.type.prop(dQ);for(;e&&e.context&&!t.matchContext(e.context);)e=e.next;return e||null}var j=Sn.define,Vg=j(),jo=j(),cQ=j(jo),fQ=j(jo),Vo=j(),Yg=j(Vo),Yv=j(Vo),Kr=j(),sl=j(Kr),Yr=j(),Wr=j(),Kv=j(),Ud=j(Kv),Wg=j(),w={comment:Vg,lineComment:j(Vg),blockComment:j(Vg),docComment:j(Vg),name:jo,variableName:j(jo),typeName:cQ,tagName:j(cQ),propertyName:fQ,attributeName:j(fQ),className:j(jo),labelName:j(jo),namespace:j(jo),macroName:j(jo),literal:Vo,string:Yg,docString:j(Yg),character:j(Yg),attributeValue:j(Yg),number:Yv,integer:j(Yv),float:j(Yv),bool:j(Vo),regexp:j(Vo),escape:j(Vo),color:j(Vo),url:j(Vo),keyword:Yr,self:j(Yr),null:j(Yr),atom:j(Yr),unit:j(Yr),modifier:j(Yr),operatorKeyword:j(Yr),controlKeyword:j(Yr),definitionKeyword:j(Yr),moduleKeyword:j(Yr),operator:Wr,derefOperator:j(Wr),arithmeticOperator:j(Wr),logicOperator:j(Wr),bitwiseOperator:j(Wr),compareOperator:j(Wr),updateOperator:j(Wr),definitionOperator:j(Wr),typeOperator:j(Wr),controlOperator:j(Wr),punctuation:Kv,separator:j(Kv),bracket:Ud,angleBracket:j(Ud),squareBracket:j(Ud),paren:j(Ud),brace:j(Ud),content:Kr,heading:sl,heading1:j(sl),heading2:j(sl),heading3:j(sl),heading4:j(sl),heading5:j(sl),heading6:j(sl),contentSeparator:j(Kr),list:j(Kr),quote:j(Kr),emphasis:j(Kr),strong:j(Kr),link:j(Kr),monospace:j(Kr),strikethrough:j(Kr),inserted:j(),deleted:j(),changed:j(),invalid:j(),meta:Wg,documentMeta:j(Wg),annotation:j(Wg),processingInstruction:j(Wg),definition:Sn.defineModifier("definition"),constant:Sn.defineModifier("constant"),function:Sn.defineModifier("function"),standard:Sn.defineModifier("standard"),local:Sn.defineModifier("local"),special:Sn.defineModifier("special")};for(let t in w){let e=w[t];e instanceof Sn&&(e.name=t)}var sse=Jv([{tag:w.link,class:"tok-link"},{tag:w.heading,class:"tok-heading"},{tag:w.emphasis,class:"tok-emphasis"},{tag:w.strong,class:"tok-strong"},{tag:w.keyword,class:"tok-keyword"},{tag:w.atom,class:"tok-atom"},{tag:w.bool,class:"tok-bool"},{tag:w.url,class:"tok-url"},{tag:w.labelName,class:"tok-labelName"},{tag:w.inserted,class:"tok-inserted"},{tag:w.deleted,class:"tok-deleted"},{tag:w.literal,class:"tok-literal"},{tag:w.string,class:"tok-string"},{tag:w.number,class:"tok-number"},{tag:[w.regexp,w.escape,w.special(w.string)],class:"tok-string2"},{tag:w.variableName,class:"tok-variableName"},{tag:w.local(w.variableName),class:"tok-variableName tok-local"},{tag:w.definition(w.variableName),class:"tok-variableName tok-definition"},{tag:w.special(w.variableName),class:"tok-variableName2"},{tag:w.definition(w.propertyName),class:"tok-propertyName tok-definition"},{tag:w.typeName,class:"tok-typeName"},{tag:w.namespace,class:"tok-namespace"},{tag:w.className,class:"tok-className"},{tag:w.macroName,class:"tok-macroName"},{tag:w.propertyName,class:"tok-propertyName"},{tag:w.operator,class:"tok-operator"},{tag:w.comment,class:"tok-comment"},{tag:w.meta,class:"tok-meta"},{tag:w.invalid,class:"tok-invalid"},{tag:w.punctuation,class:"tok-punctuation"}]);var e1,Yo=new fe;function Hd(t){return te.define({combine:t?e=>e.concat(t):void 0})}var tO=new fe,Ua=class{constructor(e,a,n=[],r=""){this.data=e,this.name=r,et.prototype.hasOwnProperty("tree")||Object.defineProperty(et.prototype,"tree",{get(){return je(this)}}),this.parser=a,this.extension=[Ko.of(this),et.languageData.of((i,o,s)=>{let l=pQ(i,o,s),u=l.type.prop(Yo);if(!u)return[];let c=i.facet(u),f=l.type.prop(tO);if(f){let d=l.resolve(o-l.from,s);for(let h of f)if(h.test(d,i)){let p=i.facet(h.facet);return h.type=="replace"?p:p.concat(c)}}return c})].concat(n)}isActiveAt(e,a,n=-1){return pQ(e,a,n).type.prop(Yo)==this.data}findRegions(e){let a=e.facet(Ko);if(a?.data==this.data)return[{from:0,to:e.doc.length}];if(!a||!a.allowsNesting)return[];let n=[],r=(i,o)=>{if(i.prop(Yo)==this.data){n.push({from:o,to:o+i.length});return}let s=i.prop(fe.mounted);if(s){if(s.tree.prop(Yo)==this.data){if(s.overlay)for(let l of s.overlay)n.push({from:l.from+o,to:l.to+o});else n.push({from:o,to:o+i.length});return}else if(s.overlay){let l=n.length;if(r(s.tree,s.overlay[0].from+o),n.length>l)return}}for(let l=0;l<i.children.length;l++){let u=i.children[l];u instanceof Fe&&r(u,i.positions[l]+o)}};return r(je(e),0),n}get allowsNesting(){return!0}};Ua.setState=Te.define();function pQ(t,e,a){let n=t.facet(Ko),r=je(t).topNode;if(!n||n.allowsNesting)for(let i=r;i;i=i.enter(e,a,Ne.ExcludeBuffers|Ne.EnterBracketed))i.type.isTop&&(r=i);return r}var Wo=class t extends Ua{constructor(e,a,n){super(e,a,[],n),this.parser=a}static define(e){let a=Hd(e.languageData);return new t(a,e.parser.configure({props:[Yo.add(n=>n.isTop?a:void 0)]}),e.name)}configure(e,a){return new t(this.data,this.parser.configure(e),a||this.name)}get allowsNesting(){return this.parser.hasWrappers()}};function je(t){let e=t.field(Ua.state,!1);return e?e.tree:Fe.empty}var r1=class{constructor(e){this.doc=e,this.cursorPos=0,this.string="",this.cursor=e.iter()}get length(){return this.doc.length}syncTo(e){return this.string=this.cursor.next(e-this.cursorPos).value,this.cursorPos=e+this.string.length,this.cursorPos-this.string.length}chunk(e){return this.syncTo(e),this.string}get lineChunks(){return!0}read(e,a){let n=this.cursorPos-this.string.length;return e<n||a>=this.cursorPos?this.doc.sliceString(e,a):this.string.slice(e-n,a-n)}},Xd=null,Zd=class t{constructor(e,a,n=[],r,i,o,s,l){this.parser=e,this.state=a,this.fragments=n,this.tree=r,this.treeLen=i,this.viewport=o,this.skipped=s,this.scheduleOn=l,this.parse=null,this.tempSkipped=[]}static create(e,a,n){return new t(e,a,[],Fe.empty,0,n,[],null)}startParse(){return this.parser.startParse(new r1(this.state.doc),this.fragments)}work(e,a){return a!=null&&a>=this.state.doc.length&&(a=void 0),this.tree!=Fe.empty&&this.isDone(a??this.state.doc.length)?(this.takeTree(),!0):this.withContext(()=>{var n;if(typeof e=="number"){let r=Date.now()+e;e=()=>Date.now()>r}for(this.parse||(this.parse=this.startParse()),a!=null&&(this.parse.stoppedAt==null||this.parse.stoppedAt>a)&&a<this.state.doc.length&&this.parse.stopAt(a);;){let r=this.parse.advance();if(r)if(this.fragments=this.withoutTempSkipped(Ti.addTree(r,this.fragments,this.parse.stoppedAt!=null)),this.treeLen=(n=this.parse.stoppedAt)!==null&&n!==void 0?n:this.state.doc.length,this.tree=r,this.parse=null,this.treeLen<(a??this.state.doc.length))this.parse=this.startParse();else return!0;if(e())return!1}})}takeTree(){let e,a;this.parse&&(e=this.parse.parsedPos)>=this.treeLen&&((this.parse.stoppedAt==null||this.parse.stoppedAt>e)&&this.parse.stopAt(e),this.withContext(()=>{for(;!(a=this.parse.advance()););}),this.treeLen=e,this.tree=a,this.fragments=this.withoutTempSkipped(Ti.addTree(this.tree,this.fragments,!0)),this.parse=null)}withContext(e){let a=Xd;Xd=this;try{return e()}finally{Xd=a}}withoutTempSkipped(e){for(let a;a=this.tempSkipped.pop();)e=mQ(e,a.from,a.to);return e}changes(e,a){let{fragments:n,tree:r,treeLen:i,viewport:o,skipped:s}=this;if(this.takeTree(),!e.empty){let l=[];if(e.iterChangedRanges((u,c,f,d)=>l.push({fromA:u,toA:c,fromB:f,toB:d})),n=Ti.applyChanges(n,l),r=Fe.empty,i=0,o={from:e.mapPos(o.from,-1),to:e.mapPos(o.to,1)},this.skipped.length){s=[];for(let u of this.skipped){let c=e.mapPos(u.from,1),f=e.mapPos(u.to,-1);c<f&&s.push({from:c,to:f})}}}return new t(this.parser,a,n,r,i,o,s,this.scheduleOn)}updateViewport(e){if(this.viewport.from==e.from&&this.viewport.to==e.to)return!1;this.viewport=e;let a=this.skipped.length;for(let n=0;n<this.skipped.length;n++){let{from:r,to:i}=this.skipped[n];r<e.to&&i>e.from&&(this.fragments=mQ(this.fragments,r,i),this.skipped.splice(n--,1))}return this.skipped.length>=a?!1:(this.reset(),!0)}reset(){this.parse&&(this.takeTree(),this.parse=null)}skipUntilInView(e,a){this.skipped.push({from:e,to:a})}static getSkippingParser(e){return new class extends Ho{createParse(a,n,r){let i=r[0].from,o=r[r.length-1].to;return{parsedPos:i,advance(){let l=Xd;if(l){for(let u of r)l.tempSkipped.push(u);e&&(l.scheduleOn=l.scheduleOn?Promise.all([l.scheduleOn,e]):e)}return this.parsedPos=o,new Fe(wt.none,[],[],o-i)},stoppedAt:null,stopAt(){}}}}}isDone(e){e=Math.min(e,this.state.doc.length);let a=this.fragments;return this.treeLen>=e&&a.length&&a[0].from==0&&a[0].to>=e}static get(){return Xd}};function mQ(t,e,a){return Ti.applyChanges(t,[{fromA:e,toA:a,fromB:e,toB:a}])}var Fd=class t{constructor(e){this.context=e,this.tree=e.tree}apply(e){if(!e.docChanged&&this.tree==this.context.tree)return this;let a=this.context.changes(e.changes,e.state),n=this.context.treeLen==e.startState.doc.length?void 0:Math.max(e.changes.mapPos(this.context.treeLen),a.viewport.to);return a.work(20,n)||a.takeTree(),new t(a)}static init(e){let a=Math.min(3e3,e.doc.length),n=Zd.create(e.facet(Ko).parser,e,{from:0,to:a});return n.work(20,a)||n.takeTree(),new t(n)}};Ua.state=ia.define({create:Fd.init,update(t,e){for(let a of e.effects)if(a.is(Ua.setState))return a.value;return e.startState.facet(Ko)!=e.state.facet(Ko)?Fd.init(e.state):t.apply(e)}});var vQ=t=>{let e=setTimeout(()=>t(),500);return()=>clearTimeout(e)};typeof requestIdleCallback<"u"&&(vQ=t=>{let e=-1,a=setTimeout(()=>{e=requestIdleCallback(t,{timeout:400})},100);return()=>e<0?clearTimeout(a):cancelIdleCallback(e)});var t1=typeof navigator<"u"&&(!((e1=navigator.scheduling)===null||e1===void 0)&&e1.isInputPending)?()=>navigator.scheduling.isInputPending():null,Yj=jt.fromClass(class{constructor(e){this.view=e,this.working=null,this.workScheduled=0,this.chunkEnd=-1,this.chunkBudget=-1,this.work=this.work.bind(this),this.scheduleWork()}update(e){let a=this.view.state.field(Ua.state).context;(a.updateViewport(e.view.viewport)||this.view.viewport.to>a.treeLen)&&this.scheduleWork(),(e.docChanged||e.selectionSet)&&(this.view.hasFocus&&(this.chunkBudget+=50),this.scheduleWork()),this.checkAsyncSchedule(a)}scheduleWork(){if(this.working)return;let{state:e}=this.view,a=e.field(Ua.state);(a.tree!=a.context.tree||!a.context.isDone(e.doc.length))&&(this.working=vQ(this.work))}work(e){this.working=null;let a=Date.now();if(this.chunkEnd<a&&(this.chunkEnd<0||this.view.hasFocus)&&(this.chunkEnd=a+3e4,this.chunkBudget=3e3),this.chunkBudget<=0)return;let{state:n,viewport:{to:r}}=this.view,i=n.field(Ua.state);if(i.tree==i.context.tree&&i.context.isDone(r+1e5))return;let o=Date.now()+Math.min(this.chunkBudget,100,e&&!t1?Math.max(25,e.timeRemaining()-5):1e9),s=i.context.treeLen<r&&n.doc.length>r+1e3,l=i.context.work(()=>t1&&t1()||Date.now()>o,r+(s?0:1e5));this.chunkBudget-=Date.now()-a,(l||this.chunkBudget<=0)&&(i.context.takeTree(),this.view.dispatch({effects:Ua.setState.of(new Fd(i.context))})),this.chunkBudget>0&&!(l&&!s)&&this.scheduleWork(),this.checkAsyncSchedule(i.context)}checkAsyncSchedule(e){e.scheduleOn&&(this.workScheduled++,e.scheduleOn.then(()=>this.scheduleWork()).catch(a=>Wn(this.view.state,a)).then(()=>this.workScheduled--),e.scheduleOn=null)}destroy(){this.working&&this.working()}isWorking(){return!!(this.working||this.workScheduled>0)}},{eventHandlers:{focus(){this.scheduleWork()}}}),Ko=te.define({combine(t){return t.length?t[0]:null},enables:t=>[Ua.state,Yj,J.contentAttributes.compute([t],e=>{let a=e.facet(t);return a&&a.name?{"data-language":a.name}:{}})]}),xr=class{constructor(e,a=[]){this.language=e,this.support=a,this.extension=[e,a]}},Gd=class t{constructor(e,a,n,r,i,o=void 0){this.name=e,this.alias=a,this.extensions=n,this.filename=r,this.loadFunc=i,this.support=o,this.loading=null}load(){return this.loading||(this.loading=this.loadFunc().then(e=>this.support=e,e=>{throw this.loading=null,e}))}static of(e){let{load:a,support:n}=e;if(!a){if(!n)throw new RangeError("Must pass either 'load' or 'support' to LanguageDescription.of");a=()=>Promise.resolve(n)}return new t(e.name,(e.alias||[]).concat(e.name).map(r=>r.toLowerCase()),e.extensions||[],e.filename,a,n)}static matchFilename(e,a){for(let r of e)if(r.filename&&r.filename.test(a))return r;let n=/\.([^.]+)$/.exec(a);if(n){for(let r of e)if(r.extensions.indexOf(n[1])>-1)return r}return null}static matchLanguageName(e,a,n=!0){a=a.toLowerCase();for(let r of e)if(r.alias.some(i=>i==a))return r;if(n)for(let r of e)for(let i of r.alias){let o=a.indexOf(i);if(o>-1&&(i.length>2||!/\w/.test(a[o-1])&&!/\w/.test(a[o+i.length])))return r}return null}},Wj=te.define(),Jo=te.define({combine:t=>{if(!t.length)return" ";let e=t[0];if(!e||/\S/.test(e)||Array.from(e).some(a=>a!=e[0]))throw new Error("Invalid indent unit: "+JSON.stringify(t[0]));return e}});function jd(t){let e=t.facet(Jo);return e.charCodeAt(0)==9?t.tabSize*e.length:e.length}function lc(t,e){let a="",n=t.tabSize,r=t.facet(Jo)[0];if(r==" "){for(;e>=n;)a+=" ",e-=n;r=" "}for(let i=0;i<e;i++)a+=r;return a}function aO(t,e){t instanceof et&&(t=new ul(t));for(let n of t.state.facet(Wj)){let r=n(t,e);if(r!==void 0)return r}let a=je(t.state);return a.length>=e?Kj(t,a,e):null}var ul=class{constructor(e,a={}){this.state=e,this.options=a,this.unit=jd(e)}lineAt(e,a=1){let n=this.state.doc.lineAt(e),{simulateBreak:r,simulateDoubleBreak:i}=this.options;return r!=null&&r>=n.from&&r<=n.to?i&&r==e?{text:"",from:e}:(a<0?r<e:r<=e)?{text:n.text.slice(r-n.from),from:r}:{text:n.text.slice(0,r-n.from),from:n.from}:n}textAfterPos(e,a=1){if(this.options.simulateDoubleBreak&&e==this.options.simulateBreak)return"";let{text:n,from:r}=this.lineAt(e,a);return n.slice(e-r,Math.min(n.length,e+100-r))}column(e,a=1){let{text:n,from:r}=this.lineAt(e,a),i=this.countColumn(n,e-r),o=this.options.overrideIndentation?this.options.overrideIndentation(r):-1;return o>-1&&(i+=o-this.countColumn(n,n.search(/\S|$/))),i}countColumn(e,a=e.length){return $a(e,this.state.tabSize,a)}lineIndent(e,a=1){let{text:n,from:r}=this.lineAt(e,a),i=this.options.overrideIndentation;if(i){let o=i(r);if(o>-1)return o}return this.countColumn(n,n.search(/\S|$/))}get simulatedBreak(){return this.options.simulateBreak||null}},Ii=new fe;function Kj(t,e,a){let n=e.resolveStack(a),r=e.resolveInner(a,-1).resolve(a,0).enterUnfinishedNodesBefore(a);if(r!=n.node){let i=[];for(let o=r;o&&!(o.from<n.node.from||o.to>n.node.to||o.from==n.node.from&&o.type==n.node.type);o=o.parent)i.push(o);for(let o=i.length-1;o>=0;o--)n={node:i[o],next:n}}return CQ(n,t,a)}function CQ(t,e,a){for(let n=t;n;n=n.next){let r=e8(n.node);if(r)return r(i1.create(e,a,n))}return 0}function Jj(t){return t.pos==t.options.simulateBreak&&t.options.simulateDoubleBreak}function e8(t){let e=t.type.prop(Ii);if(e)return e;let a=t.firstChild,n;if(a&&(n=a.type.prop(fe.closedBy))){let r=t.lastChild,i=r&&n.indexOf(r.name)>-1;return o=>kQ(o,!0,1,void 0,i&&!Jj(o)?r.from:void 0)}return t.parent==null?t8:null}function t8(){return 0}var i1=class t extends ul{constructor(e,a,n){super(e.state,e.options),this.base=e,this.pos=a,this.context=n}get node(){return this.context.node}static create(e,a,n){return new t(e,a,n)}get textAfter(){return this.textAfterPos(this.pos)}get baseIndent(){return this.baseIndentFor(this.node)}baseIndentFor(e){let a=this.state.doc.lineAt(e.from);for(;;){let n=e.resolve(a.from);for(;n.parent&&n.parent.from==n.from;)n=n.parent;if(a8(n,e))break;a=this.state.doc.lineAt(n.from)}return this.lineIndent(a.from)}continue(){return CQ(this.context.next,this.base,this.pos)}};function a8(t,e){for(let a=e;a;a=a.parent)if(t==a)return!0;return!1}function n8(t){let e=t.node,a=e.childAfter(e.from),n=e.lastChild;if(!a)return null;let r=t.options.simulateBreak,i=t.state.doc.lineAt(a.from),o=r==null||r<=i.from?i.to:Math.min(i.to,r);for(let s=a.to;;){let l=e.childAfter(s);if(!l||l==n)return null;if(!l.type.isSkipped){if(l.from>=o)return null;let u=/^ */.exec(i.text.slice(a.to-i.from))[0].length;return{from:a.from,to:a.to+u}}s=l.to}}function wQ({closing:t,align:e=!0,units:a=1}){return n=>kQ(n,e,a,t)}function kQ(t,e,a,n,r){let i=t.textAfter,o=i.match(/^\s*/)[0].length,s=n&&i.slice(o,o+n.length)==n||r==t.pos+o,l=e?n8(t):null;return l?s?t.column(l.from):t.column(l.to):t.baseIndent+(s?0:t.unit*a)}var LQ=t=>t.baseIndent;function uc({except:t,units:e=1}={}){return a=>{let n=t&&t.test(a.textAfter);return a.baseIndent+(n?0:e*a.unit)}}var r8=200;function EQ(){return et.transactionFilter.of(t=>{if(!t.docChanged||!t.isUserEvent("input.type")&&!t.isUserEvent("input.complete"))return t;let e=t.startState.languageDataAt("indentOnInput",t.startState.selection.main.head);if(!e.length)return t;let a=t.newDoc,{head:n}=t.newSelection.main,r=a.lineAt(n);if(n>r.from+r8)return t;let i=a.sliceString(r.from,n);if(!e.some(u=>u.test(i)))return t;let{state:o}=t,s=-1,l=[];for(let{head:u}of o.selection.ranges){let c=o.doc.lineAt(u);if(c.from==s)continue;s=c.from;let f=aO(o,c.from);if(f==null)continue;let d=/^\s*/.exec(c.text)[0],h=lc(o,f);d!=h&&l.push({from:c.from,to:c.from+d.length,insert:h})}return l.length?[t,{changes:l,sequential:!0}]:t})}var f1=te.define(),Jr=new fe;function nO(t){let e=t.firstChild,a=t.lastChild;return e&&e.to<a.from?{from:e.to,to:a.type.isError?t.to:a.from}:null}function i8(t,e,a){let n=je(t);if(n.length<a)return null;let r=n.resolveStack(a,1),i=null;for(let o=r;o;o=o.next){let s=o.node;if(s.to<=a||s.from>a)continue;if(i&&s.from<e)break;let l=s.type.prop(Jr);if(l&&(s.to<n.length-50||n.length==t.doc.length||!o8(s))){let u=l(s,t);u&&u.from<=a&&u.from>=e&&u.to>a&&(i=u)}}return i}function o8(t){let e=t.lastChild;return e&&e.to==t.to&&e.type.isError}function Jg(t,e,a){for(let n of t.facet(f1)){let r=n(t,e,a);if(r)return r}return i8(t,e,a)}function AQ(t,e){let a=e.mapPos(t.from,1),n=e.mapPos(t.to,-1);return a>=n?void 0:{from:a,to:n}}var rO=Te.define({map:AQ}),Vd=Te.define({map:AQ});function _Q(t){let e=[];for(let{head:a}of t.state.selection.ranges)e.some(n=>n.from<=a&&n.to>=a)||e.push(t.lineBlockAt(a));return e}var cl=ia.define({create(){return de.none},update(t,e){e.isUserEvent("delete")&&e.changes.iterChangedRanges((n,r)=>t=gQ(t,n,r)),t=t.map(e.changes);let a=[];for(let n of e.effects)n.is(rO)&&!s8(t,n.value.from,n.value.to)?a.push(n.value):n.is(Vd)&&(t=t.update({filter:(r,i)=>n.value.from!=r||n.value.to!=i,filterFrom:n.value.from,filterTo:n.value.to}));if(a.length){let{preparePlaceholder:n}=e.state.facet(d1),r=a.map(i=>(n?de.replace({widget:new o1(n(e.state,i))}):OQ).range(i.from,i.to));t=t.update({add:r})}return e.selection&&(t=gQ(t,e.selection.main.head)),t},provide:t=>J.decorations.from(t),toJSON(t,e){let a=[];return t.between(0,e.doc.length,(n,r)=>{a.push(n,r)}),a},fromJSON(t){if(!Array.isArray(t)||t.length%2)throw new RangeError("Invalid JSON for fold state");let e=[];for(let a=0;a<t.length;){let n=t[a++],r=t[a++];if(typeof n!="number"||typeof r!="number")throw new RangeError("Invalid JSON for fold state");e.push(OQ.range(n,r))}return de.set(e,!0)}});function gQ(t,e,a=e){let n=!1;return t.between(e,a,(r,i)=>{r<a&&i>e&&(n=!0)}),n?t.update({filterFrom:e,filterTo:a,filter:(r,i)=>r>=a||i<=e}):t}function eO(t,e,a){var n;let r=null;return(n=t.field(cl,!1))===null||n===void 0||n.between(e,a,(i,o)=>{(!r||r.from>i)&&(r={from:i,to:o})}),r}function s8(t,e,a){let n=!1;return t.between(e,e,(r,i)=>{r==e&&i==a&&(n=!0)}),n}function RQ(t,e){return t.field(cl,!1)?e:e.concat(Te.appendConfig.of(PQ()))}var l8=t=>{for(let e of _Q(t)){let a=Jg(t.state,e.from,e.to);if(a)return t.dispatch({effects:RQ(t.state,[rO.of(a),TQ(t,a)])}),!0}return!1},u8=t=>{if(!t.state.field(cl,!1))return!1;let e=[];for(let a of _Q(t)){let n=eO(t.state,a.from,a.to);n&&e.push(Vd.of(n),TQ(t,n,!1))}return e.length&&t.dispatch({effects:e}),e.length>0};function TQ(t,e,a=!0){let n=t.state.doc.lineAt(e.from).number,r=t.state.doc.lineAt(e.to).number;return J.announce.of(`${t.state.phrase(a?"Folded lines":"Unfolded lines")} ${n} ${t.state.phrase("to")} ${r}.`)}var c8=t=>{let{state:e}=t,a=[];for(let n=0;n<e.doc.length;){let r=t.lineBlockAt(n),i=Jg(e,r.from,r.to);i&&a.push(rO.of(i)),n=(i?t.lineBlockAt(i.to):r).to+1}return a.length&&t.dispatch({effects:RQ(t.state,a)}),!!a.length},f8=t=>{let e=t.state.field(cl,!1);if(!e||!e.size)return!1;let a=[];return e.between(0,t.state.doc.length,(n,r)=>{a.push(Vd.of({from:n,to:r}))}),t.dispatch({effects:a}),!0};var IQ=[{key:"Ctrl-Shift-[",mac:"Cmd-Alt-[",run:l8},{key:"Ctrl-Shift-]",mac:"Cmd-Alt-]",run:u8},{key:"Ctrl-Alt-[",run:c8},{key:"Ctrl-Alt-]",run:f8}],d8={placeholderDOM:null,preparePlaceholder:null,placeholderText:"\u2026"},d1=te.define({combine(t){return On(t,d8)}});function PQ(t){let e=[cl,p8];return t&&e.push(d1.of(t)),e}function MQ(t,e){let{state:a}=t,n=a.facet(d1),r=o=>{let s=t.lineBlockAt(t.posAtDOM(o.target)),l=eO(t.state,s.from,s.to);l&&t.dispatch({effects:Vd.of(l)}),o.preventDefault()};if(n.placeholderDOM)return n.placeholderDOM(t,r,e);let i=document.createElement("span");return i.textContent=n.placeholderText,i.setAttribute("aria-label",a.phrase("folded code")),i.title=a.phrase("unfold"),i.className="cm-foldPlaceholder",i.onclick=r,i}var OQ=de.replace({widget:new class extends xn{toDOM(t){return MQ(t,null)}}}),o1=class extends xn{constructor(e){super(),this.value=e}eq(e){return this.value==e.value}toDOM(e){return MQ(e,this.value)}},h8={openText:"\u2304",closedText:"\u203A",markerDOM:null,domEventHandlers:{},foldingChanged:()=>!1},qd=class extends Kn{constructor(e,a){super(),this.config=e,this.open=a}eq(e){return this.config==e.config&&this.open==e.open}toDOM(e){if(this.config.markerDOM)return this.config.markerDOM(this.open);let a=document.createElement("span");return a.textContent=this.open?this.config.openText:this.config.closedText,a.title=e.state.phrase(this.open?"Fold line":"Unfold line"),a}};function DQ(t={}){let e={...h8,...t},a=new qd(e,!0),n=new qd(e,!1),r=jt.fromClass(class{constructor(o){this.from=o.viewport.from,this.markers=this.buildMarkers(o)}update(o){(o.docChanged||o.viewportChanged||o.startState.facet(Ko)!=o.state.facet(Ko)||o.startState.field(cl,!1)!=o.state.field(cl,!1)||je(o.startState)!=je(o.state)||e.foldingChanged(o))&&(this.markers=this.buildMarkers(o.view))}buildMarkers(o){let s=new Zn;for(let l of o.viewportLineBlocks){let u=eO(o.state,l.from,l.to)?n:Jg(o.state,l.from,l.to)?a:null;u&&s.add(l.from,l.from,u)}return s.finish()}}),{domEventHandlers:i}=e;return[r,WN({class:"cm-foldGutter",markers(o){var s;return((s=o.plugin(r))===null||s===void 0?void 0:s.markers)||Ze.empty},initialSpacer(){return new qd(e,!1)},domEventHandlers:{...i,click:(o,s,l)=>{if(i.click&&i.click(o,s,l))return!0;let u=eO(o.state,s.from,s.to);if(u)return o.dispatch({effects:Vd.of(u)}),!0;let c=Jg(o.state,s.from,s.to);return c?(o.dispatch({effects:rO.of(c)}),!0):!1}}}),PQ()]}var p8=J.baseTheme({".cm-foldPlaceholder":{backgroundColor:"#eee",border:"1px solid #ddd",color:"#888",borderRadius:".2em",margin:"0 1px",padding:"0 1px",cursor:"pointer"},".cm-foldGutter span":{padding:"0 1px",cursor:"pointer"}}),sc=class t{constructor(e,a){this.specs=e;let n;function r(s){let l=Hn.newName();return(n||(n=Object.create(null)))["."+l]=s,l}let i=typeof a.all=="string"?a.all:a.all?r(a.all):void 0,o=a.scope;this.scope=o instanceof Ua?s=>s.prop(Yo)==o.data:o?s=>s==o:void 0,this.style=Jv(e.map(s=>({tag:s.tag,class:s.class||r(Object.assign({},s,{tag:null}))})),{all:i}).style,this.module=n?new Hn(n):null,this.themeType=a.themeType}static define(e,a){return new t(e,a||{})}},s1=te.define(),NQ=te.define({combine(t){return t.length?[t[0]]:null}});function a1(t){let e=t.facet(s1);return e.length?e:t.facet(NQ)}function QQ(t,e){let a=[m8],n;return t instanceof sc&&(t.module&&a.push(J.styleModule.of(t.module)),n=t.themeType),e?.fallback?a.push(NQ.of(t)):n?a.push(s1.computeN([J.darkTheme],r=>r.facet(J.darkTheme)==(n=="dark")?[t]:[])):a.push(s1.of(t)),a}var l1=class{constructor(e){this.markCache=Object.create(null),this.tree=je(e.state),this.decorations=this.buildDeco(e,a1(e.state)),this.decoratedTo=e.viewport.to}update(e){let a=je(e.state),n=a1(e.state),r=n!=a1(e.startState),{viewport:i}=e.view,o=e.changes.mapPos(this.decoratedTo,1);a.length<i.to&&!r&&a.type==this.tree.type&&o>=i.to?(this.decorations=this.decorations.map(e.changes),this.decoratedTo=o):(a!=this.tree||e.viewportChanged||r)&&(this.tree=a,this.decorations=this.buildDeco(e.view,n),this.decoratedTo=i.to)}buildDeco(e,a){if(!a||!this.tree.length)return de.none;let n=new Zn;for(let{from:r,to:i}of e.visibleRanges)hQ(this.tree,a,(o,s,l)=>{n.add(o,s,this.markCache[l]||(this.markCache[l]=de.mark({class:l})))},r,i);return n.finish()}},m8=Gn.high(jt.fromClass(l1,{decorations:t=>t.decorations})),mse=sc.define([{tag:w.meta,color:"#404740"},{tag:w.link,textDecoration:"underline"},{tag:w.heading,textDecoration:"underline",fontWeight:"bold"},{tag:w.emphasis,fontStyle:"italic"},{tag:w.strong,fontWeight:"bold"},{tag:w.strikethrough,textDecoration:"line-through"},{tag:w.keyword,color:"#708"},{tag:[w.atom,w.bool,w.url,w.contentSeparator,w.labelName],color:"#219"},{tag:[w.literal,w.inserted],color:"#164"},{tag:[w.string,w.deleted],color:"#a11"},{tag:[w.regexp,w.escape,w.special(w.string)],color:"#e40"},{tag:w.definition(w.variableName),color:"#00f"},{tag:w.local(w.variableName),color:"#30a"},{tag:[w.typeName,w.namespace],color:"#085"},{tag:w.className,color:"#167"},{tag:[w.special(w.variableName),w.macroName],color:"#256"},{tag:w.definition(w.propertyName),color:"#00c"},{tag:w.comment,color:"#940"},{tag:w.invalid,color:"#f00"}]),g8=J.baseTheme({"&.cm-focused .cm-matchingBracket":{backgroundColor:"#328c8252"},"&.cm-focused .cm-nonmatchingBracket":{backgroundColor:"#bb555544"}}),$Q=1e4,BQ="()[]{}",zQ=te.define({combine(t){return On(t,{afterCursor:!0,brackets:BQ,maxScanDistance:$Q,renderMatch:x8})}}),O8=de.mark({class:"cm-matchingBracket"}),b8=de.mark({class:"cm-nonmatchingBracket"});function x8(t){let e=[],a=t.matched?O8:b8;return e.push(a.range(t.start.from,t.start.to)),t.end&&e.push(a.range(t.end.from,t.end.to)),e}function bQ(t){let e=[],a=t.facet(zQ);for(let n of t.selection.ranges){if(!n.empty)continue;let r=br(t,n.head,-1,a)||n.head>0&&br(t,n.head-1,1,a)||a.afterCursor&&(br(t,n.head,1,a)||n.head<t.doc.length&&br(t,n.head+1,-1,a));r&&(e=e.concat(a.renderMatch(r,t)))}return de.set(e,!0)}var S8=jt.fromClass(class{constructor(t){this.paused=!1,this.decorations=bQ(t.state)}update(t){(t.docChanged||t.selectionSet||this.paused)&&(t.view.composing?(this.decorations=this.decorations.map(t.changes),this.paused=!0):(this.decorations=bQ(t.state),this.paused=!1))}},{decorations:t=>t.decorations}),y8=[S8,g8];function UQ(t={}){return[zQ.of(t),y8]}var h1=new fe;function u1(t,e,a){let n=t.prop(e<0?fe.openedBy:fe.closedBy);if(n)return n;if(t.name.length==1){let r=a.indexOf(t.name);if(r>-1&&r%2==(e<0?1:0))return[a[r+e]]}return null}function c1(t){let e=t.type.prop(h1);return e?e(t.node):t}function br(t,e,a,n={}){let r=n.maxScanDistance||$Q,i=n.brackets||BQ,o=je(t),s=o.resolveInner(e,a);for(let l=s;l;l=l.parent){let u=u1(l.type,a,i);if(u&&l.from<l.to){let c=c1(l);if(c&&(a>0?e>=c.from&&e<c.to:e>c.from&&e<=c.to))return v8(t,e,a,l,c,u,i)}}return C8(t,e,a,o,s.type,r,i)}function v8(t,e,a,n,r,i,o){let s=n.parent,l={from:r.from,to:r.to},u=0,c=s?.cursor();if(c&&(a<0?c.childBefore(n.from):c.childAfter(n.to)))do if(a<0?c.to<=n.from:c.from>=n.to){if(u==0&&i.indexOf(c.type.name)>-1&&c.from<c.to){let f=c1(c);return{start:l,end:f?{from:f.from,to:f.to}:void 0,matched:!0}}else if(u1(c.type,a,o))u++;else if(u1(c.type,-a,o)){if(u==0){let f=c1(c);return{start:l,end:f&&f.from<f.to?{from:f.from,to:f.to}:void 0,matched:!1}}u--}}while(a<0?c.prevSibling():c.nextSibling());return{start:l,matched:!1}}function C8(t,e,a,n,r,i,o){if(a<0?!e:e==t.doc.length)return null;let s=a<0?t.sliceDoc(e-1,e):t.sliceDoc(e,e+1),l=o.indexOf(s);if(l<0||l%2==0!=a>0)return null;let u={from:a<0?e-1:e,to:a>0?e+1:e},c=t.doc.iterRange(e,a>0?t.doc.length:0),f=0;for(let d=0;!c.next().done&&d<=i;){let h=c.value;a<0&&(d+=h.length);let p=e+d*a;for(let g=a>0?0:h.length-1,b=a>0?h.length:-1;g!=b;g+=a){let m=o.indexOf(h[g]);if(!(m<0||n.resolveInner(p+g,1).type!=r))if(m%2==0==a>0)f++;else{if(f==1)return{start:u,end:{from:p+g,to:p+g+1},matched:m>>1==l>>1};f--}}a>0&&(d+=h.length)}return c.done?{start:u,matched:!1}:null}var w8=Object.create(null),xQ=[wt.none];var SQ=[],yQ=Object.create(null),k8=Object.create(null);for(let[t,e]of[["variable","variableName"],["variable-2","variableName.special"],["string-2","string.special"],["def","variableName.definition"],["tag","tagName"],["attribute","attributeName"],["type","typeName"],["builtin","variableName.standard"],["qualifier","modifier"],["error","invalid"],["header","heading"],["property","propertyName"]])k8[t]=L8(w8,e);function n1(t,e){SQ.indexOf(t)>-1||(SQ.push(t),console.warn(e))}function L8(t,e){let a=[];for(let s of e.split(" ")){let l=[];for(let u of s.split(".")){let c=t[u]||w[u];c?typeof c=="function"?l.length?l=l.map(c):n1(u,`Modifier ${u} used at start of tag`):l.length?n1(u,`Tag ${u} used as modifier`):l=Array.isArray(c)?c:[c]:n1(u,`Unknown highlighting tag ${u}`)}for(let u of l)a.push(u)}if(!a.length)return 0;let n=e.replace(/ /g,"_"),r=n+" "+a.map(s=>s.id),i=yQ[r];if(i)return i.id;let o=yQ[r]=wt.define({id:xQ.length,name:n,props:[Or({[n]:a})]});return xQ.push(o),o.id}var gse={rtl:de.mark({class:"cm-iso",inclusive:!0,attributes:{dir:"rtl"},bidiIsolate:st.RTL}),ltr:de.mark({class:"cm-iso",inclusive:!0,attributes:{dir:"ltr"},bidiIsolate:st.LTR}),auto:de.mark({class:"cm-iso",inclusive:!0,attributes:{dir:"auto"},bidiIsolate:null})};var E8=t=>{let{state:e}=t,a=e.doc.lineAt(e.selection.main.from),n=S1(t.state,a.from);return n.line?A8(t):n.block?R8(t):!1};function x1(t,e){return({state:a,dispatch:n})=>{if(a.readOnly)return!1;let r=t(e,a);return r?(n(a.update(r)),!0):!1}}var A8=x1(P8,0);var _8=x1(YQ,0);var R8=x1((t,e)=>YQ(t,e,I8(e)),0);function S1(t,e){let a=t.languageDataAt("commentTokens",e,1);return a.length?a[0]:{}}var Yd=50;function T8(t,{open:e,close:a},n,r){let i=t.sliceDoc(n-Yd,n),o=t.sliceDoc(r,r+Yd),s=/\s*$/.exec(i)[0].length,l=/^\s*/.exec(o)[0].length,u=i.length-s;if(i.slice(u-e.length,u)==e&&o.slice(l,l+a.length)==a)return{open:{pos:n-s,margin:s&&1},close:{pos:r+l,margin:l&&1}};let c,f;r-n<=2*Yd?c=f=t.sliceDoc(n,r):(c=t.sliceDoc(n,n+Yd),f=t.sliceDoc(r-Yd,r));let d=/^\s*/.exec(c)[0].length,h=/\s*$/.exec(f)[0].length,p=f.length-h-a.length;return c.slice(d,d+e.length)==e&&f.slice(p,p+a.length)==a?{open:{pos:n+d+e.length,margin:/\s/.test(c.charAt(d+e.length))?1:0},close:{pos:r-h-a.length,margin:/\s/.test(f.charAt(p-1))?1:0}}:null}function I8(t){let e=[];for(let a of t.selection.ranges){let n=t.doc.lineAt(a.from),r=a.to<=n.to?n:t.doc.lineAt(a.to);r.from>n.from&&r.from==a.to&&(r=a.to==n.to+1?n:t.doc.lineAt(a.to-1));let i=e.length-1;i>=0&&e[i].to>n.from?e[i].to=r.to:e.push({from:n.from+/^\s*/.exec(n.text)[0].length,to:r.to})}return e}function YQ(t,e,a=e.selection.ranges){let n=a.map(i=>S1(e,i.from).block);if(!n.every(i=>i))return null;let r=a.map((i,o)=>T8(e,n[o],i.from,i.to));if(t!=2&&!r.every(i=>i))return{changes:e.changes(a.map((i,o)=>r[o]?[]:[{from:i.from,insert:n[o].open+" "},{from:i.to,insert:" "+n[o].close}]))};if(t!=1&&r.some(i=>i)){let i=[];for(let o=0,s;o<r.length;o++)if(s=r[o]){let l=n[o],{open:u,close:c}=s;i.push({from:u.pos-l.open.length,to:u.pos+u.margin},{from:c.pos-c.margin,to:c.pos+l.close.length})}return{changes:i}}return null}function P8(t,e,a=e.selection.ranges){let n=[],r=-1;e:for(let{from:i,to:o}of a){let s=n.length,l=1e9,u;for(let c=i;c<=o;){let f=e.doc.lineAt(c);if(u==null&&(u=S1(e,f.from).line,!u))continue e;if(f.from>r&&(i==o||o>f.from)){r=f.from;let d=/^\s*/.exec(f.text)[0].length,h=d==f.length,p=f.text.slice(d,d+u.length)==u?d:-1;d<f.text.length&&d<l&&(l=d),n.push({line:f,comment:p,token:u,indent:d,empty:h,single:!1})}c=f.to+1}if(l<1e9)for(let c=s;c<n.length;c++)n[c].indent<n[c].line.text.length&&(n[c].indent=l);n.length==s+1&&(n[s].single=!0)}if(t!=2&&n.some(i=>i.comment<0&&(!i.empty||i.single))){let i=[];for(let{line:s,token:l,indent:u,empty:c,single:f}of n)(f||!c)&&i.push({from:s.from+u,insert:l+" "});let o=e.changes(i);return{changes:o,selection:e.selection.map(o,1)}}else if(t!=1&&n.some(i=>i.comment>=0)){let i=[];for(let{line:o,comment:s,token:l}of n)if(s>=0){let u=o.from+s,c=u+l.length;o.text[c-o.from]==" "&&c++,i.push({from:u,to:c})}return{changes:i}}return null}var m1=Wa.define(),M8=Wa.define(),D8=te.define(),WQ=te.define({combine(t){return On(t,{minDepth:100,newGroupDelay:500,joinToEvent:(e,a)=>a},{minDepth:Math.max,newGroupDelay:Math.min,joinToEvent:(e,a)=>(n,r)=>e(n,r)||a(n,r)})}}),KQ=ia.define({create(){return fl.empty},update(t,e){let a=e.state.facet(WQ),n=e.annotation(m1);if(n){let l=Sr.fromTransaction(e,n.selection),u=n.side,c=u==0?t.undone:t.done;return l?c=oO(c,c.length,a.minDepth,l):c=a$(c,e.startState.selection),new fl(u==0?n.rest:c,u==0?c:n.rest)}let r=e.annotation(M8);if((r=="full"||r=="before")&&(t=t.isolate()),e.annotation(Dt.addToHistory)===!1)return e.changes.empty?t:t.addMapping(e.changes.desc);let i=Sr.fromTransaction(e),o=e.annotation(Dt.time),s=e.annotation(Dt.userEvent);return i?t=t.addChanges(i,o,s,a,e):e.selection&&(t=t.addSelection(e.startState.selection,o,s,a.newGroupDelay)),(r=="full"||r=="after")&&(t=t.isolate()),t},toJSON(t){return{done:t.done.map(e=>e.toJSON()),undone:t.undone.map(e=>e.toJSON())}},fromJSON(t){return new fl(t.done.map(Sr.fromJSON),t.undone.map(Sr.fromJSON))}});function JQ(t={}){return[KQ,WQ.of(t),J.domEventHandlers({beforeinput(e,a){let n=e.inputType=="historyUndo"?e$:e.inputType=="historyRedo"?g1:null;return n?(e.preventDefault(),n(a)):!1}})]}function sO(t,e){return function({state:a,dispatch:n}){if(!e&&a.readOnly)return!1;let r=a.field(KQ,!1);if(!r)return!1;let i=r.pop(t,a,e);return i?(n(i),!0):!1}}var e$=sO(0,!1),g1=sO(1,!1),N8=sO(0,!0),Q8=sO(1,!0);var Sr=class t{constructor(e,a,n,r,i){this.changes=e,this.effects=a,this.mapped=n,this.startSelection=r,this.selectionsAfter=i}setSelAfter(e){return new t(this.changes,this.effects,this.mapped,this.startSelection,e)}toJSON(){var e,a,n;return{changes:(e=this.changes)===null||e===void 0?void 0:e.toJSON(),mapped:(a=this.mapped)===null||a===void 0?void 0:a.toJSON(),startSelection:(n=this.startSelection)===null||n===void 0?void 0:n.toJSON(),selectionsAfter:this.selectionsAfter.map(r=>r.toJSON())}}static fromJSON(e){return new t(e.changes&&Qa.fromJSON(e.changes),[],e.mapped&&Li.fromJSON(e.mapped),e.startSelection&&I.fromJSON(e.startSelection),e.selectionsAfter.map(I.fromJSON))}static fromTransaction(e,a){let n=Jn;for(let r of e.startState.facet(D8)){let i=r(e);i.length&&(n=n.concat(i))}return!n.length&&e.changes.empty?null:new t(e.changes.invert(e.startState.doc),n,void 0,a||e.startState.selection,Jn)}static selection(e){return new t(void 0,Jn,void 0,void 0,e)}};function oO(t,e,a,n){let r=e+1>a+20?e-a-1:0,i=t.slice(r,e);return i.push(n),i}function $8(t,e){let a=[],n=!1;return t.iterChangedRanges((r,i)=>a.push(r,i)),e.iterChangedRanges((r,i,o,s)=>{for(let l=0;l<a.length;){let u=a[l++],c=a[l++];s>=u&&o<=c&&(n=!0)}}),n}function B8(t,e){return t.ranges.length==e.ranges.length&&t.ranges.filter((a,n)=>a.empty!=e.ranges[n].empty).length===0}function t$(t,e){return t.length?e.length?t.concat(e):t:e}var Jn=[],z8=200;function a$(t,e){if(t.length){let a=t[t.length-1],n=a.selectionsAfter.slice(Math.max(0,a.selectionsAfter.length-z8));return n.length&&n[n.length-1].eq(e)?t:(n.push(e),oO(t,t.length-1,1e9,a.setSelAfter(n)))}else return[Sr.selection([e])]}function U8(t){let e=t[t.length-1],a=t.slice();return a[t.length-1]=e.setSelAfter(e.selectionsAfter.slice(0,e.selectionsAfter.length-1)),a}function p1(t,e){if(!t.length)return t;let a=t.length,n=Jn;for(;a;){let r=X8(t[a-1],e,n);if(r.changes&&!r.changes.empty||r.effects.length){let i=t.slice(0,a);return i[a-1]=r,i}else e=r.mapped,a--,n=r.selectionsAfter}return n.length?[Sr.selection(n)]:Jn}function X8(t,e,a){let n=t$(t.selectionsAfter.length?t.selectionsAfter.map(s=>s.map(e)):Jn,a);if(!t.changes)return Sr.selection(n);let r=t.changes.map(e),i=e.mapDesc(t.changes,!0),o=t.mapped?t.mapped.composeDesc(i):i;return new Sr(r,Te.mapEffects(t.effects,e),o,t.startSelection.map(i),n)}var q8=/^(input\.type|delete)($|\.)/,fl=class t{constructor(e,a,n=0,r=void 0){this.done=e,this.undone=a,this.prevTime=n,this.prevUserEvent=r}isolate(){return this.prevTime?new t(this.done,this.undone):this}addChanges(e,a,n,r,i){let o=this.done,s=o[o.length-1];return s&&s.changes&&!s.changes.empty&&e.changes&&(!n||q8.test(n))&&(!s.selectionsAfter.length&&a-this.prevTime<r.newGroupDelay&&r.joinToEvent(i,$8(s.changes,e.changes))||n=="input.type.compose")?o=oO(o,o.length-1,r.minDepth,new Sr(e.changes.compose(s.changes),t$(Te.mapEffects(e.effects,s.changes),s.effects),s.mapped,s.startSelection,Jn)):o=oO(o,o.length,r.minDepth,e),new t(o,Jn,a,n)}addSelection(e,a,n,r){let i=this.done.length?this.done[this.done.length-1].selectionsAfter:Jn;return i.length>0&&a-this.prevTime<r&&n==this.prevUserEvent&&n&&/^select($|\.)/.test(n)&&B8(i[i.length-1],e)?this:new t(a$(this.done,e),this.undone,a,n)}addMapping(e){return new t(p1(this.done,e),p1(this.undone,e),this.prevTime,this.prevUserEvent)}pop(e,a,n){let r=e==0?this.done:this.undone;if(r.length==0)return null;let i=r[r.length-1],o=i.selectionsAfter[0]||(i.startSelection?i.startSelection.map(i.changes.invertedDesc,1):a.selection);if(n&&i.selectionsAfter.length)return a.update({selection:i.selectionsAfter[i.selectionsAfter.length-1],annotations:m1.of({side:e,rest:U8(r),selection:o}),userEvent:e==0?"select.undo":"select.redo",scrollIntoView:!0});if(i.changes){let s=r.length==1?Jn:r.slice(0,r.length-1);return i.mapped&&(s=p1(s,i.mapped)),a.update({changes:i.changes,selection:i.startSelection,effects:i.effects,annotations:m1.of({side:e,rest:s,selection:o}),filter:!1,userEvent:e==0?"undo":"redo",scrollIntoView:!0})}else return null}};fl.empty=new fl(Jn,Jn);var n$=[{key:"Mod-z",run:e$,preventDefault:!0},{key:"Mod-y",mac:"Mod-Shift-z",run:g1,preventDefault:!0},{linux:"Ctrl-Shift-z",run:g1,preventDefault:!0},{key:"Mod-u",run:N8,preventDefault:!0},{key:"Alt-u",mac:"Mod-Shift-u",run:Q8,preventDefault:!0}];function cc(t,e){return I.create(t.ranges.map(e),t.mainIndex)}function yr(t,e){return t.update({selection:e,scrollIntoView:!0,userEvent:"select"})}function vr({state:t,dispatch:e},a){let n=cc(t.selection,a);return n.eq(t.selection,!0)?!1:(e(yr(t,n)),!0)}function lO(t,e){return I.cursor(e?t.to:t.from)}function r$(t,e){return vr(t,a=>a.empty?t.moveByChar(a,e):lO(a,e))}function Aa(t){return t.textDirectionAt(t.state.selection.main.head)==st.LTR}var i$=t=>r$(t,!Aa(t)),o$=t=>r$(t,Aa(t));function s$(t,e){return vr(t,a=>a.empty?t.moveByGroup(a,e):lO(a,e))}var Z8=t=>s$(t,!Aa(t)),F8=t=>s$(t,Aa(t));var Lse=typeof Intl<"u"&&Intl.Segmenter?new Intl.Segmenter(void 0,{granularity:"word"}):null;function G8(t,e,a){if(e.type.prop(a))return!0;let n=e.to-e.from;return n&&(n>2||/[^\s,.;:]/.test(t.sliceDoc(e.from,e.to)))||e.firstChild}function uO(t,e,a){let n=je(t).resolveInner(e.head),r=a?fe.closedBy:fe.openedBy;for(let l=e.head;;){let u=a?n.childAfter(l):n.childBefore(l);if(!u)break;G8(t,u,r)?n=u:l=a?u.to:u.from}let i=n.type.prop(r),o,s;return i&&(o=a?br(t,n.from,1):br(t,n.to,-1))&&o.matched?s=a?o.end.to:o.end.from:s=a?n.to:n.from,I.cursor(s,a?-1:1)}var H8=t=>vr(t,e=>uO(t.state,e,!Aa(t))),j8=t=>vr(t,e=>uO(t.state,e,Aa(t)));function l$(t,e){return vr(t,a=>{if(!a.empty)return lO(a,e);let n=t.moveVertically(a,e);return n.head!=a.head?n:t.moveToLineBoundary(a,e)})}var u$=t=>l$(t,!1),c$=t=>l$(t,!0);function f$(t){let e=t.scrollDOM.clientHeight<t.scrollDOM.scrollHeight-2,a=0,n=0,r;if(e){for(let i of t.state.facet(J.scrollMargins)){let o=i(t);o?.top&&(a=Math.max(o?.top,a)),o?.bottom&&(n=Math.max(o?.bottom,n))}r=t.scrollDOM.clientHeight-a-n}else r=(t.dom.ownerDocument.defaultView||window).innerHeight;return{marginTop:a,marginBottom:n,selfScroll:e,height:Math.max(t.defaultLineHeight,r-5)}}function d$(t,e){let a=f$(t),{state:n}=t,r=cc(n.selection,o=>o.empty?t.moveVertically(o,e,a.height):lO(o,e));if(r.eq(n.selection))return!1;let i;if(a.selfScroll){let o=t.coordsAtPos(n.selection.main.head),s=t.scrollDOM.getBoundingClientRect(),l=s.top+a.marginTop,u=s.bottom-a.marginBottom;o&&o.top>l&&o.bottom<u&&(i=J.scrollIntoView(r.main.head,{y:"start",yMargin:o.top-l}))}return t.dispatch(yr(n,r),{effects:i}),!0}var XQ=t=>d$(t,!1),O1=t=>d$(t,!0);function es(t,e,a){let n=t.lineBlockAt(e.head),r=t.moveToLineBoundary(e,a);if(r.head==e.head&&r.head!=(a?n.to:n.from)&&(r=t.moveToLineBoundary(e,a,!1)),!a&&r.head==n.from&&n.length){let i=/^\s*/.exec(t.state.sliceDoc(n.from,Math.min(n.from+100,n.to)))[0].length;i&&e.head!=n.from+i&&(r=I.cursor(n.from+i))}return r}var V8=t=>vr(t,e=>es(t,e,!0)),Y8=t=>vr(t,e=>es(t,e,!1)),W8=t=>vr(t,e=>es(t,e,!Aa(t))),K8=t=>vr(t,e=>es(t,e,Aa(t))),J8=t=>vr(t,e=>t.moveToLineBoundary(e,!1,!1)),eV=t=>vr(t,e=>t.moveToLineBoundary(e,!0,!1));function tV(t,e,a){let n=!1,r=cc(t.selection,i=>{let o=br(t,i.head,-1)||br(t,i.head,1)||i.head>0&&br(t,i.head-1,1)||i.head<t.doc.length&&br(t,i.head+1,-1);if(!o||!o.end)return i;n=!0;let s=o.start.from==i.head?o.end.to:o.end.from;return a?I.range(i.anchor,s):I.cursor(s)});return n?(e(yr(t,r)),!0):!1}var aV=({state:t,dispatch:e})=>tV(t,e,!1);function er(t,e,a){let n=cc(t.state.selection,r=>{r.undirectional&&r.head>=r.anchor!=e&&(r=I.range(r.head,r.anchor));let i=a(r);return I.range(r.anchor,i.head,i.goalColumn,i.bidiLevel||void 0,i.assoc)});return n.eq(t.state.selection)?!1:(t.dispatch(yr(t.state,n)),!0)}function h$(t,e){return er(t,e,a=>t.moveByChar(a,e))}var p$=t=>h$(t,!Aa(t)),m$=t=>h$(t,Aa(t));function g$(t,e){return er(t,e,a=>t.moveByGroup(a,e))}var nV=t=>g$(t,!Aa(t)),rV=t=>g$(t,Aa(t));var iV=t=>{let e=!Aa(t);return er(t,e,a=>uO(t.state,a,e))},oV=t=>{let e=Aa(t);return er(t,e,a=>uO(t.state,a,e))};function O$(t,e){return er(t,e,a=>t.moveVertically(a,e))}var b$=t=>O$(t,!1),x$=t=>O$(t,!0);function S$(t,e){return er(t,e,a=>t.moveVertically(a,e,f$(t).height))}var qQ=t=>S$(t,!1),ZQ=t=>S$(t,!0),sV=t=>er(t,!0,e=>es(t,e,!0)),lV=t=>er(t,!1,e=>es(t,e,!1)),uV=t=>{let e=!Aa(t);return er(t,e,a=>es(t,a,e))},cV=t=>{let e=Aa(t);return er(t,e,a=>es(t,a,e))},fV=t=>er(t,!1,e=>I.cursor(t.lineBlockAt(e.head).from)),dV=t=>er(t,!0,e=>I.cursor(t.lineBlockAt(e.head).to)),FQ=({state:t,dispatch:e})=>(e(yr(t,{anchor:0})),!0),GQ=({state:t,dispatch:e})=>(e(yr(t,{anchor:t.doc.length})),!0),HQ=({state:t,dispatch:e})=>(e(yr(t,{anchor:t.selection.main.anchor,head:0})),!0),jQ=({state:t,dispatch:e})=>(e(yr(t,{anchor:t.selection.main.anchor,head:t.doc.length})),!0),hV=({state:t,dispatch:e})=>(e(t.update({selection:{anchor:0,head:t.doc.length},userEvent:"select"})),!0),pV=({state:t,dispatch:e})=>{let a=cO(t).map(({from:n,to:r})=>I.undirectionalRange(n,Math.min(r+1,t.doc.length)));return e(t.update({selection:I.create(a),userEvent:"select"})),!0},mV=({state:t,dispatch:e})=>{let a=cc(t.selection,n=>{let r=je(t),i=r.resolveStack(n.from,1);if(n.empty){let o=r.resolveStack(n.from,-1);o.node.from>=i.node.from&&o.node.to<=i.node.to&&(i=o)}for(let o=i;o;o=o.next){let{node:s}=o;if((s.from<n.from&&s.to>=n.to||s.to>n.to&&s.from<=n.from)&&o.next)return I.undirectionalRange(s.from,s.to)}return n});return a.eq(t.selection)?!1:(e(yr(t,a)),!0)};function y$(t,e){let{state:a}=t,n=a.selection,r=a.selection.ranges.slice();for(let i of a.selection.ranges){let o=a.doc.lineAt(i.head);if(e?o.to<t.state.doc.length:o.from>0)for(let s=i;;){let l=t.moveVertically(s,e);if(l.head<o.from||l.head>o.to){r.some(u=>u.head==l.head)||r.push(l);break}else{if(l.head==s.head)break;s=l}}}return r.length==n.ranges.length?!1:(t.dispatch(yr(a,I.create(r,r.length-1))),!0)}var gV=t=>y$(t,!1),OV=t=>y$(t,!0),bV=({state:t,dispatch:e})=>{let a=t.selection,n=null;return a.ranges.length>1?n=I.create([a.main]):a.main.empty||(n=I.create([I.cursor(a.main.head)])),n?(e(yr(t,n)),!0):!1};function Wd(t,e){if(t.state.readOnly)return!1;let a="delete.selection",{state:n}=t,r=n.changeByRange(i=>{let{from:o,to:s}=i;if(o==s){let l=e(i);l<o?(a="delete.backward",l=iO(t,l,!1)):l>o&&(a="delete.forward",l=iO(t,l,!0)),o=Math.min(o,l),s=Math.max(s,l)}else o=iO(t,o,!1),s=iO(t,s,!0);return o==s?{range:i}:{changes:{from:o,to:s},range:I.cursor(o,o<i.head?-1:1)}});return r.changes.empty?!1:(t.dispatch(n.update(r,{scrollIntoView:!0,userEvent:a,effects:a=="delete.selection"?J.announce.of(n.phrase("Selection deleted")):void 0})),!0)}function iO(t,e,a){if(t instanceof J)for(let n of t.state.facet(J.atomicRanges).map(r=>r(t)))n.between(e,e,(r,i)=>{r<e&&i>e&&(e=a?i:r)});return e}var v$=(t,e,a)=>Wd(t,n=>{let r=n.from,{state:i}=t,o=i.doc.lineAt(r),s,l;if(a&&!e&&r>o.from&&r<o.from+200&&!/[^ \t]/.test(s=o.text.slice(0,r-o.from))){if(s[s.length-1]==" ")return r-1;let u=$a(s,i.tabSize),c=u%jd(i)||jd(i);for(let f=0;f<c&&s[s.length-1-f]==" ";f++)r--;l=r}else l=Rt(o.text,r-o.from,e,e)+o.from,l==r&&o.number!=(e?i.doc.lines:1)?l+=e?1:-1:!e&&/[\ufe00-\ufe0f]/.test(o.text.slice(l-o.from,r-o.from))&&(l=Rt(o.text,l-o.from,!1,!1)+o.from);return l}),b1=t=>v$(t,!1,!0);var C$=t=>v$(t,!0,!1),w$=(t,e)=>Wd(t,a=>{let n=a.head,{state:r}=t,i=r.doc.lineAt(n),o=r.charCategorizer(n);for(let s=null;;){if(n==(e?i.to:i.from)){n==a.head&&i.number!=(e?r.doc.lines:1)&&(n+=e?1:-1);break}let l=Rt(i.text,n-i.from,e)+i.from,u=i.text.slice(Math.min(n,l)-i.from,Math.max(n,l)-i.from),c=o(u);if(s!=null&&c!=s)break;(u!=" "||n!=a.head)&&(s=c),n=l}return n}),k$=t=>w$(t,!1),xV=t=>w$(t,!0);var SV=t=>Wd(t,e=>{let a=t.lineBlockAt(e.head).to;return e.head<a?a:Math.min(t.state.doc.length,e.head+1)});var yV=t=>Wd(t,e=>{let a=t.moveToLineBoundary(e,!1).head;return e.head>a?a:Math.max(0,e.head-1)}),vV=t=>Wd(t,e=>{let a=t.moveToLineBoundary(e,!0).head;return e.head<a?a:Math.min(t.state.doc.length,e.head+1)});var CV=({state:t,dispatch:e})=>{if(t.readOnly)return!1;let a=t.changeByRange(n=>({changes:{from:n.from,to:n.to,insert:Me.of(["",""])},range:I.cursor(n.from)}));return e(t.update(a,{scrollIntoView:!0,userEvent:"input"})),!0},wV=({state:t,dispatch:e})=>{if(t.readOnly)return!1;let a=t.changeByRange(n=>{if(!n.empty||n.from==0||n.from==t.doc.length)return{range:n};let r=n.from,i=t.doc.lineAt(r),o=r==i.from?r-1:Rt(i.text,r-i.from,!1)+i.from,s=r==i.to?r+1:Rt(i.text,r-i.from,!0)+i.from;return{changes:{from:o,to:s,insert:t.doc.slice(r,s).append(t.doc.slice(o,r))},range:I.cursor(s)}});return a.changes.empty?!1:(e(t.update(a,{scrollIntoView:!0,userEvent:"move.character"})),!0)};function cO(t){let e=[],a=-1;for(let n of t.selection.ranges){let r=t.doc.lineAt(n.from),i=t.doc.lineAt(n.to);if(!n.empty&&n.to==i.from&&(i=t.doc.lineAt(n.to-1)),a>=r.number){let o=e[e.length-1];o.to=i.to,o.ranges.push(n)}else e.push({from:r.from,to:i.to,ranges:[n]});a=i.number+1}return e}function L$(t,e,a){if(t.readOnly)return!1;let n=[],r=[];for(let i of cO(t)){if(a?i.to==t.doc.length:i.from==0)continue;let o=t.doc.lineAt(a?i.to+1:i.from-1),s=o.length+1;if(a){n.push({from:i.to,to:o.to},{from:i.from,insert:o.text+t.lineBreak});for(let l of i.ranges)r.push(I.range(Math.min(t.doc.length,l.anchor+s),Math.min(t.doc.length,l.head+s)))}else{n.push({from:o.from,to:i.from},{from:i.to,insert:t.lineBreak+o.text});for(let l of i.ranges)r.push(I.range(l.anchor-s,l.head-s))}}return n.length?(e(t.update({changes:n,scrollIntoView:!0,selection:I.create(r,t.selection.mainIndex),userEvent:"move.line"})),!0):!1}var kV=({state:t,dispatch:e})=>L$(t,e,!1),LV=({state:t,dispatch:e})=>L$(t,e,!0);function E$(t,e,a){if(t.readOnly)return!1;let n=[];for(let i of cO(t))a?n.push({from:i.from,insert:t.doc.slice(i.from,i.to)+t.lineBreak}):n.push({from:i.to,insert:t.lineBreak+t.doc.slice(i.from,i.to)});let r=t.changes(n);return e(t.update({changes:r,selection:t.selection.map(r,a?1:-1),scrollIntoView:!0,userEvent:"input.copyline"})),!0}var EV=({state:t,dispatch:e})=>E$(t,e,!1),AV=({state:t,dispatch:e})=>E$(t,e,!0),_V=t=>{if(t.state.readOnly)return!1;let{state:e}=t,a=e.changes(cO(e).map(({from:r,to:i})=>(r>0?r--:i<e.doc.length&&i++,{from:r,to:i}))),n=cc(e.selection,r=>{let i;if(t.lineWrapping){let o=t.lineBlockAt(r.head),s=t.coordsAtPos(r.head,r.assoc||1);s&&(i=o.bottom+t.documentTop-s.bottom+t.defaultLineHeight/2)}return t.moveVertically(r,!0,i)}).map(a);return t.dispatch({changes:a,selection:n,scrollIntoView:!0,userEvent:"delete.line"}),!0};function RV(t,e){if(/\(\)|\[\]|\{\}/.test(t.sliceDoc(e-1,e+1)))return{from:e,to:e};let a=je(t).resolveInner(e),n=a.childBefore(e),r=a.childAfter(e),i;return n&&r&&n.to<=e&&r.from>=e&&(i=n.type.prop(fe.closedBy))&&i.indexOf(r.name)>-1&&t.doc.lineAt(n.to).from==t.doc.lineAt(r.from).from&&!/\S/.test(t.sliceDoc(n.to,r.from))?{from:n.to,to:r.from}:null}var VQ=A$(!1),TV=A$(!0);function A$(t){return({state:e,dispatch:a})=>{if(e.readOnly)return!1;let n=e.changeByRange(r=>{let{from:i,to:o}=r,s=e.doc.lineAt(i),l=!t&&i==o&&RV(e,i);t&&(i=o=(o<=s.to?s:e.doc.lineAt(o)).to);let u=new ul(e,{simulateBreak:i,simulateDoubleBreak:!!l}),c=aO(u,i);for(c==null&&(c=$a(/^\s*/.exec(e.doc.lineAt(i).text)[0],e.tabSize));o<s.to&&/\s/.test(s.text[o-s.from]);)o++;l?{from:i,to:o}=l:i>s.from&&i<s.from+100&&!/\S/.test(s.text.slice(0,i))&&(i=s.from);let f=["",lc(e,c)];return l&&f.push(lc(e,u.lineIndent(s.from,-1))),{changes:{from:i,to:o,insert:Me.of(f)},range:I.cursor(i+1+f[1].length)}});return a(e.update(n,{scrollIntoView:!0,userEvent:"input"})),!0}}function y1(t,e){let a=-1;return t.changeByRange(n=>{let r=[];for(let o=n.from;o<=n.to;){let s=t.doc.lineAt(o);s.number>a&&(n.empty||n.to>s.from)&&(e(s,r,n),a=s.number),o=s.to+1}let i=t.changes(r);return{changes:r,range:I.range(i.mapPos(n.anchor,1),i.mapPos(n.head,1))}})}var IV=({state:t,dispatch:e})=>{if(t.readOnly)return!1;let a=Object.create(null),n=new ul(t,{overrideIndentation:i=>{let o=a[i];return o??-1}}),r=y1(t,(i,o,s)=>{let l=aO(n,i.from);if(l==null)return;/\S/.test(i.text)||(l=0);let u=/^\s*/.exec(i.text)[0],c=lc(t,l);(u!=c||s.from<i.from+u.length)&&(a[i.from]=l,o.push({from:i.from,to:i.from+u.length,insert:c}))});return r.changes.empty||e(t.update(r,{userEvent:"indent"})),!0},_$=({state:t,dispatch:e})=>t.readOnly?!1:(e(t.update(y1(t,(a,n)=>{n.push({from:a.from,insert:t.facet(Jo)})}),{userEvent:"input.indent"})),!0),R$=({state:t,dispatch:e})=>t.readOnly?!1:(e(t.update(y1(t,(a,n)=>{let r=/^\s*/.exec(a.text)[0];if(!r)return;let i=$a(r,t.tabSize),o=0,s=lc(t,Math.max(0,i-jd(t)));for(;o<r.length&&o<s.length&&r.charCodeAt(o)==s.charCodeAt(o);)o++;n.push({from:a.from+o,to:a.from+r.length,insert:s.slice(o)})}),{userEvent:"delete.dedent"})),!0),PV=t=>(t.setTabFocusMode(),!0);var MV=[{key:"Ctrl-b",run:i$,shift:p$,preventDefault:!0},{key:"Ctrl-f",run:o$,shift:m$},{key:"Ctrl-p",run:u$,shift:b$},{key:"Ctrl-n",run:c$,shift:x$},{key:"Ctrl-a",run:J8,shift:fV},{key:"Ctrl-e",run:eV,shift:dV},{key:"Ctrl-d",run:C$},{key:"Ctrl-h",run:b1},{key:"Ctrl-k",run:SV},{key:"Ctrl-Alt-h",run:k$},{key:"Ctrl-o",run:CV},{key:"Ctrl-t",run:wV},{key:"Ctrl-v",run:O1}],DV=[{key:"ArrowLeft",run:i$,shift:p$,preventDefault:!0},{key:"Mod-ArrowLeft",mac:"Alt-ArrowLeft",run:Z8,shift:nV,preventDefault:!0},{mac:"Cmd-ArrowLeft",run:W8,shift:uV,preventDefault:!0},{key:"ArrowRight",run:o$,shift:m$,preventDefault:!0},{key:"Mod-ArrowRight",mac:"Alt-ArrowRight",run:F8,shift:rV,preventDefault:!0},{mac:"Cmd-ArrowRight",run:K8,shift:cV,preventDefault:!0},{key:"ArrowUp",run:u$,shift:b$,preventDefault:!0},{mac:"Cmd-ArrowUp",run:FQ,shift:HQ},{mac:"Ctrl-ArrowUp",run:XQ,shift:qQ},{key:"ArrowDown",run:c$,shift:x$,preventDefault:!0},{mac:"Cmd-ArrowDown",run:GQ,shift:jQ},{mac:"Ctrl-ArrowDown",run:O1,shift:ZQ},{key:"PageUp",run:XQ,shift:qQ},{key:"PageDown",run:O1,shift:ZQ},{key:"Home",run:Y8,shift:lV,preventDefault:!0},{key:"Mod-Home",run:FQ,shift:HQ},{key:"End",run:V8,shift:sV,preventDefault:!0},{key:"Mod-End",run:GQ,shift:jQ},{key:"Enter",run:VQ,shift:VQ},{key:"Mod-a",run:hV},{key:"Backspace",run:b1,shift:b1,preventDefault:!0},{key:"Delete",run:C$,preventDefault:!0},{key:"Mod-Backspace",mac:"Alt-Backspace",run:k$,preventDefault:!0},{key:"Mod-Delete",mac:"Alt-Delete",run:xV,preventDefault:!0},{mac:"Mod-Backspace",run:yV,preventDefault:!0},{mac:"Mod-Delete",run:vV,preventDefault:!0}].concat(MV.map(t=>({mac:t.key,run:t.run,shift:t.shift}))),T$=[{key:"Alt-ArrowLeft",mac:"Ctrl-ArrowLeft",run:H8,shift:iV},{key:"Alt-ArrowRight",mac:"Ctrl-ArrowRight",run:j8,shift:oV},{key:"Alt-ArrowUp",run:kV},{key:"Shift-Alt-ArrowUp",run:EV},{key:"Alt-ArrowDown",run:LV},{key:"Shift-Alt-ArrowDown",run:AV},{key:"Mod-Alt-ArrowUp",run:gV},{key:"Mod-Alt-ArrowDown",run:OV},{key:"Escape",run:bV},{key:"Mod-Enter",run:TV},{key:"Alt-l",mac:"Ctrl-l",run:pV},{key:"Mod-i",run:mV,preventDefault:!0},{key:"Mod-[",run:R$},{key:"Mod-]",run:_$},{key:"Mod-Alt-\\",run:IV},{key:"Shift-Mod-k",run:_V},{key:"Shift-Mod-\\",run:aV},{key:"Mod-/",run:E8},{key:"Alt-A",mac:"Ctrl-A",run:_8},{key:"Ctrl-m",mac:"Shift-Alt-m",run:PV}].concat(DV),I$={key:"Tab",run:_$,shift:R$};var P$=typeof String.prototype.normalize=="function"?t=>t.normalize("NFKD"):t=>t,as=class{constructor(e,a,n=0,r=e.length,i,o){this.test=o,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?s=>i(P$(s)):P$,this.query=this.normalize(a)}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 qu(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 a=vy(e),n=this.bufferStart+this.bufferPos;this.bufferPos+=yd(e);let r=this.normalize(a);if(r.length)for(let i=0,o=n,s=!0;;i++){let l=r.charCodeAt(i),u=this.match(l,o,s,this.bufferPos+this.bufferStart,i==r.length-1);if(u)return this.value=u,this;if(i==r.length-1)break;s&&i<a.length&&a.charCodeAt(i)==l?o++:s=!1}}}match(e,a,n,r,i){let o=null;for(let s=0;s<this.matches.length;){let l=this.matches[s],u=!1;this.query.charCodeAt(l.index)==e&&(l.index==this.query.length-1?o={from:l.from,to:r,precise:i&&l.precise}:(l.index++,u=!0)),u?s++:this.matches.splice(s,1)}return this.query.charCodeAt(0)==e&&(this.query.length==1?o={from:a,to:r,precise:n&&i}:this.matches.push({from:a,index:1,precise:n})),o&&this.test&&!this.test(o.from,o.to,this.buffer,this.bufferStart)&&(o=null),o}};typeof Symbol<"u"&&(as.prototype[Symbol.iterator]=function(){return this});var N$={from:-1,to:-1,match:/.*/.exec(""),precise:!0},E1="gm"+(/x/.unicode==null?"":"u"),hO=class{constructor(e,a,n,r=0,i=e.length){if(this.text=e,this.to=i,this.curLine="",this.done=!1,this.value=N$,/\\[sWDnr]|\n|\r|\[\^/.test(a))return new mO(e,a,n,r,i);this.re=new RegExp(a,E1+(n?.ignoreCase?"i":"")),this.test=n?.test,this.iter=e.iter();let o=e.lineAt(r);this.curLineStart=o.from,this.matchPos=gO(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 a=this.matchPos<=this.to&&this.re.exec(this.curLine);if(a){let n=this.curLineStart+a.index,r=n+a[0].length;if(this.matchPos=gO(this.text,r+(n==r?1:0)),n==this.curLineStart+this.curLine.length&&this.nextLine(),(n<r||n>this.value.to)&&(!this.test||this.test(n,r,a)))return this.value={from:n,to:r,precise:!0,match:a},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}}},v1=new WeakMap,pO=class t{constructor(e,a){this.from=e,this.text=a}get to(){return this.from+this.text.length}static get(e,a,n){let r=v1.get(e);if(!r||r.from>=n||r.to<=a){let s=new t(a,e.sliceString(a,n));return v1.set(e,s),s}if(r.from==a&&r.to==n)return r;let{text:i,from:o}=r;return o>a&&(i=e.sliceString(a,o)+i,o=a),r.to<n&&(i+=e.sliceString(r.to,n)),v1.set(e,new t(o,i)),new t(a,i.slice(a-o,n-o))}},mO=class{constructor(e,a,n,r,i){this.text=e,this.to=i,this.done=!1,this.value=N$,this.matchPos=gO(e,r),this.re=new RegExp(a,E1+(n?.ignoreCase?"i":"")),this.test=n?.test,this.flat=pO.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,a=this.re.exec(this.flat.text);if(a&&!a[0]&&a.index==e&&(this.re.lastIndex=e+1,a=this.re.exec(this.flat.text)),a){let n=this.flat.from+a.index,r=n+a[0].length;if((this.flat.to>=this.to||a.index+a[0].length<=this.flat.text.length-10)&&(!this.test||this.test(n,r,a)))return this.value={from:n,to:r,precise:!0,match:a},this.matchPos=gO(this.text,r+(n==r?1:0)),this}if(this.flat.to==this.to)return this.done=!0,this;this.flat=pO.get(this.text,this.flat.from,this.chunkEnd(this.flat.from+this.flat.text.length*2))}}};typeof Symbol<"u"&&(hO.prototype[Symbol.iterator]=mO.prototype[Symbol.iterator]=function(){return this});function NV(t){try{return new RegExp(t,E1),!0}catch{return!1}}function gO(t,e){if(e>=t.length)return e;let a=t.lineAt(e),n;for(;e<a.to&&(n=a.text.charCodeAt(e-a.from))>=56320&&n<57344;)e++;return e}var QV=t=>{let e=jN(t,"cm-goto-line");if(e){let o=e.dom.querySelector("input[type=text]");return o&&o.select(),!0}let{state:a}=t,n=String(a.doc.lineAt(t.state.selection.main.head).number),{close:r,result:i}=HN(t,{class:"cm-goto-line",label:a.phrase("Go to line"),input:{type:"text",name:"line",value:n},focus:!0,submitLabel:a.phrase("go")});return i.then(o=>{let s=o&&/^([+-])?(\d+)?(:\d+)?(%)?$/.exec(o.elements.line.value);if(!s){t.dispatch({effects:r});return}let l=a.doc.lineAt(a.selection.main.head),[,u,c,f,d]=s,h=f?+f.slice(1):0,p=c?+c:l.number;if(c&&d){let m=p/100;u&&(m=m*(u=="-"?-1:1)+l.number/a.doc.lines),p=Math.round(a.doc.lines*m)}else c&&u&&(p=p*(u=="-"?-1:1)+l.number);let g=a.doc.line(Math.max(1,Math.min(a.doc.lines,p))),b=I.cursor(g.from+Math.max(0,Math.min(h,g.length)));t.dispatch({effects:[r,J.scrollIntoView(b.from,{y:"center"})],selection:b})}),!0},$V={highlightWordAroundCursor:!1,minSelectionLength:1,maxMatches:100,wholeWords:!1},Q$=te.define({combine(t){return On(t,$V,{highlightWordAroundCursor:(e,a)=>e||a,minSelectionLength:Math.min,maxMatches:Math.min})}});function $$(t){let e=[qV,XV];return t&&e.push(Q$.of(t)),e}var BV=de.mark({class:"cm-selectionMatch"}),zV=de.mark({class:"cm-selectionMatch cm-selectionMatch-main"});function M$(t,e,a,n){return(a==0||t(e.sliceDoc(a-1,a))!=mt.Word)&&(n==e.doc.length||t(e.sliceDoc(n,n+1))!=mt.Word)}function UV(t,e,a,n){return t(e.sliceDoc(a,a+1))==mt.Word&&t(e.sliceDoc(n-1,n))==mt.Word}var XV=jt.fromClass(class{constructor(t){this.decorations=this.getDeco(t)}update(t){(t.selectionSet||t.docChanged||t.viewportChanged)&&(this.decorations=this.getDeco(t.view))}getDeco(t){let e=t.state.facet(Q$),{state:a}=t,n=a.selection;if(n.ranges.length>1)return de.none;let r=n.main,i,o=null;if(r.empty){if(!e.highlightWordAroundCursor)return de.none;let l=a.wordAt(r.head);if(!l)return de.none;o=a.charCategorizer(r.head),i=a.sliceDoc(l.from,l.to)}else{let l=r.to-r.from;if(l<e.minSelectionLength||l>200)return de.none;if(e.wholeWords){if(i=a.sliceDoc(r.from,r.to),o=a.charCategorizer(r.head),!(M$(o,a,r.from,r.to)&&UV(o,a,r.from,r.to)))return de.none}else if(i=a.sliceDoc(r.from,r.to),!i)return de.none}let s=[];for(let l of t.visibleRanges){let u=new as(a.doc,i,l.from,l.to);for(;!u.next().done;){let{from:c,to:f}=u.value;if((!o||M$(o,a,c,f))&&(r.empty&&c<=r.from&&f>=r.to?s.push(zV.range(c,f)):(c>=r.to||f<=r.from)&&s.push(BV.range(c,f)),s.length>e.maxMatches))return de.none}}return de.set(s)}},{decorations:t=>t.decorations}),qV=J.baseTheme({".cm-selectionMatch":{backgroundColor:"#99ff7780"},".cm-searchMatch .cm-selectionMatch":{backgroundColor:"transparent"}}),ZV=({state:t,dispatch:e})=>{let{selection:a}=t,n=I.create(a.ranges.map(r=>t.wordAt(r.head)||I.cursor(r.head)),a.mainIndex);return n.eq(a)?!1:(e(t.update({selection:n})),!0)};function FV(t,e){let{main:a,ranges:n}=t.selection,r=t.wordAt(a.head),i=r&&r.from==a.from&&r.to==a.to;for(let o=!1,s=new as(t.doc,e,n[n.length-1].to);;)if(s.next(),s.done){if(o)return null;s=new as(t.doc,e,0,Math.max(0,n[n.length-1].from-1)),o=!0}else{if(o&&n.some(l=>l.from==s.value.from))continue;if(i){let l=t.wordAt(s.value.from);if(!l||l.from!=s.value.from||l.to!=s.value.to)continue}return s.value}}var GV=({state:t,dispatch:e})=>{let{ranges:a}=t.selection;if(a.some(i=>i.from===i.to))return ZV({state:t,dispatch:e});let n=t.sliceDoc(a[0].from,a[0].to);if(t.selection.ranges.some(i=>t.sliceDoc(i.from,i.to)!=n))return!1;let r=FV(t,n);return r?(e(t.update({selection:t.selection.addRange(I.range(r.from,r.to),!1),effects:J.scrollIntoView(r.to)})),!0):!1},hc=te.define({combine(t){return On(t,{top:!1,caseSensitive:!1,literal:!1,regexp:!1,wholeWord:!1,createPanel:e=>new L1(e),scrollToMatch:e=>J.scrollIntoView(e)})}});var OO=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||NV(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,(a,n)=>n=="n"?`
42
+ `:n=="r"?"\r":n=="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 w1(this):new C1(this)}getCursor(e,a=0,n){let r=e.doc?e:et.create({doc:e});return n==null&&(n=r.doc.length),this.regexp?dc(this,r,a,n):fc(this,r,a,n)}},bO=class{constructor(e){this.spec=e}};function HV(t,e,a){return(n,r,i,o)=>{if(a&&!a(n,r,i,o))return!1;let s=n>=o&&r<=o+i.length?i.slice(n-o,r-o):e.doc.sliceString(n,r);return t(s,e,n,r)}}function fc(t,e,a,n){let r;return t.wholeWord&&(r=jV(e.doc,e.charCategorizer(e.selection.main.head))),t.test&&(r=HV(t.test,e,r)),new as(e.doc,t.unquoted,a,n,t.caseSensitive?void 0:i=>i.toLowerCase(),r)}function jV(t,e){return(a,n,r,i)=>((i>a||i+r.length<n)&&(i=Math.max(0,a-2),r=t.sliceString(i,Math.min(t.length,n+2))),(e(xO(r,a-i))!=mt.Word||e(SO(r,a-i))!=mt.Word)&&(e(SO(r,n-i))!=mt.Word||e(xO(r,n-i))!=mt.Word))}var C1=class extends bO{constructor(e){super(e)}nextMatch(e,a,n){let r=fc(this.spec,e,n,e.doc.length).nextOverlapping();if(r.done){let i=Math.min(e.doc.length,a+this.spec.unquoted.length);r=fc(this.spec,e,0,i).nextOverlapping()}return r.done||r.value.from==a&&r.value.to==n?null:r.value}prevMatchInRange(e,a,n){for(let r=n;;){let i=Math.max(a,r-1e4-this.spec.unquoted.length),o=fc(this.spec,e,i,r),s=null;for(;!o.nextOverlapping().done;)s=o.value;if(s)return s;if(i==a)return null;r-=1e4}}prevMatch(e,a,n){let r=this.prevMatchInRange(e,0,a);return r||(r=this.prevMatchInRange(e,Math.max(0,n-this.spec.unquoted.length),e.doc.length)),r&&(r.from!=a||r.to!=n)?r:null}getReplacement(e){return this.spec.unquote(this.spec.replace)}matchAll(e,a){let n=fc(this.spec,e,0,e.doc.length),r=[];for(;!n.next().done;){if(r.length>=a)return null;r.push(n.value)}return r}highlight(e,a,n,r){let i=fc(this.spec,e,Math.max(0,a-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 VV(t,e,a){return(n,r,i)=>(!a||a(n,r,i))&&t(i[0],e,n,r)}function dc(t,e,a,n){let r;return t.wholeWord&&(r=YV(e.charCategorizer(e.selection.main.head))),t.test&&(r=VV(t.test,e,r)),new hO(e.doc,t.search,{ignoreCase:!t.caseSensitive,test:r},a,n)}function xO(t,e){return t.slice(Rt(t,e,!1),e)}function SO(t,e){return t.slice(e,Rt(t,e))}function YV(t){return(e,a,n)=>!n[0].length||(t(xO(n.input,n.index))!=mt.Word||t(SO(n.input,n.index))!=mt.Word)&&(t(SO(n.input,n.index+n[0].length))!=mt.Word||t(xO(n.input,n.index+n[0].length))!=mt.Word)}var w1=class extends bO{nextMatch(e,a,n){let r=dc(this.spec,e,n,e.doc.length).next();return r.done&&(r=dc(this.spec,e,0,a).next()),r.done?null:r.value}prevMatchInRange(e,a,n){for(let r=1;;r++){let i=Math.max(a,n-r*1e4),o=dc(this.spec,e,i,n),s=null;for(;!o.next().done;)s=o.value;if(s&&(i==a||s.from>i+10))return s;if(i==a)return null}}prevMatch(e,a,n){return this.prevMatchInRange(e,0,a)||this.prevMatchInRange(e,n,e.doc.length)}getReplacement(e){return this.spec.unquote(this.spec.replace).replace(/\$([$&]|\d+)/g,(a,n)=>{if(n=="&")return e.match[0];if(n=="$")return"$";for(let r=n.length;r>0;r--){let i=+n.slice(0,r);if(i>0&&i<e.match.length)return e.match[i]+n.slice(r)}return a})}matchAll(e,a){let n=dc(this.spec,e,0,e.doc.length),r=[];for(;!n.next().done;){if(r.length>=a)return null;r.push(n.value)}return r}highlight(e,a,n,r){let i=dc(this.spec,e,Math.max(0,a-250),Math.min(n+250,e.doc.length));for(;!i.next().done;)r(i.value.from,i.value.to)}},Jd=Te.define(),A1=Te.define(),ts=ia.define({create(t){return new Kd(k1(t).create(),null)},update(t,e){for(let a of e.effects)a.is(Jd)?t=new Kd(a.value.create(),t.panel):a.is(A1)&&(t=new Kd(t.query,a.value?_1:null));return t},provide:t=>$d.from(t,e=>e.panel)});var Kd=class{constructor(e,a){this.query=e,this.panel=a}},WV=de.mark({class:"cm-searchMatch"}),KV=de.mark({class:"cm-searchMatch cm-searchMatch-selected"}),JV=jt.fromClass(class{constructor(t){this.view=t,this.decorations=this.highlight(t.state.field(ts))}update(t){let e=t.state.field(ts);(e!=t.startState.field(ts)||t.docChanged||t.selectionSet||t.viewportChanged)&&(this.decorations=this.highlight(e))}highlight({query:t,panel:e}){if(!e||!t.spec.valid)return de.none;let{view:a}=this,n=new Zn;for(let r=0,i=a.visibleRanges,o=i.length;r<o;r++){let{from:s,to:l}=i[r];for(;r<o-1&&l>i[r+1].from-500;)l=i[++r].to;t.highlight(a.state,s,l,(u,c)=>{let f=a.state.selection.ranges.some(d=>d.from==u&&d.to==c);n.add(u,c,f?KV:WV)})}return n.finish()}},{decorations:t=>t.decorations});function eh(t){return e=>{let a=e.state.field(ts,!1);return a&&a.query.spec.valid?t(e,a):U$(e)}}var yO=eh((t,{query:e})=>{let{to:a}=t.state.selection.main,n=e.nextMatch(t.state,a,a);if(!n)return!1;let r=I.single(n.from,n.to),i=t.state.facet(hc);return t.dispatch({selection:r,effects:[R1(t,n),i.scrollToMatch(r.main,t)],userEvent:"select.search"}),z$(t),!0}),vO=eh((t,{query:e})=>{let{state:a}=t,{from:n}=a.selection.main,r=e.prevMatch(a,n,n);if(!r)return!1;let i=I.single(r.from,r.to),o=t.state.facet(hc);return t.dispatch({selection:i,effects:[R1(t,r),o.scrollToMatch(i.main,t)],userEvent:"select.search"}),z$(t),!0}),eY=eh((t,{query:e})=>{let a=e.matchAll(t.state,1e3);return!a||!a.length?!1:(t.dispatch({selection:I.create(a.map(n=>I.range(n.from,n.to))),userEvent:"select.search.matches"}),!0)}),tY=({state:t,dispatch:e})=>{let a=t.selection;if(a.ranges.length>1||a.main.empty)return!1;let{from:n,to:r}=a.main,i=[],o=0;for(let s=new as(t.doc,t.sliceDoc(n,r));!s.next().done;){if(i.length>1e3)return!1;s.value.from==n&&(o=i.length),i.push(I.range(s.value.from,s.value.to))}return e(t.update({selection:I.create(i,o),userEvent:"select.search.matches"})),!0},D$=eh((t,{query:e})=>{let{state:a}=t,{from:n,to:r}=a.selection.main;if(a.readOnly)return!1;let i=e.nextMatch(a,n,n);if(!i)return!1;let o=i,s=[],l,u,c=[];o.precise?o.from==n&&o.to==r&&(u=a.toText(e.getReplacement(o)),s.push({from:o.from,to:o.to,insert:u}),o=e.nextMatch(a,o.from,o.to),c.push(J.announce.of(a.phrase("replaced match on line $",a.doc.lineAt(n).number)+"."))):o=e.nextMatch(a,o.from,o.to);let f=t.state.changes(s);return o&&(l=I.single(o.from,o.to).map(f),c.push(R1(t,o)),c.push(a.facet(hc).scrollToMatch(l.main,t))),t.dispatch({changes:f,selection:l,effects:c,userEvent:"input.replace"}),!0}),aY=eh((t,{query:e})=>{if(t.state.readOnly)return!1;let a=[];for(let r of e.matchAll(t.state,1e9)){let{from:i,to:o,precise:s}=r;s&&a.push({from:i,to:o,insert:e.getReplacement(r)})}if(!a.length)return!1;let n=t.state.phrase("replaced $ matches",a.length)+".";return t.dispatch({changes:a,effects:J.announce.of(n),userEvent:"input.replace.all"}),!0});function _1(t){return t.state.facet(hc).createPanel(t)}function k1(t,e){var a,n,r,i,o;let s=t.selection.main,l=s.empty||s.to>s.from+100?"":t.sliceDoc(s.from,s.to);if(e&&!l)return e;let u=t.facet(hc);return new OO({search:((a=e?.literal)!==null&&a!==void 0?a:u.literal)?l:l.replace(/\n/g,"\\n"),caseSensitive:(n=e?.caseSensitive)!==null&&n!==void 0?n:u.caseSensitive,literal:(r=e?.literal)!==null&&r!==void 0?r:u.literal,regexp:(i=e?.regexp)!==null&&i!==void 0?i:u.regexp,wholeWord:(o=e?.wholeWord)!==null&&o!==void 0?o:u.wholeWord})}function B$(t){let e=Xg(t,_1);return e&&e.dom.querySelector("[main-field]")}function z$(t){let e=B$(t);e&&e==t.root.activeElement&&e.select()}var U$=t=>{let e=t.state.field(ts,!1);if(e&&e.panel){let a=B$(t);if(a&&a!=t.root.activeElement){let n=k1(t.state,e.query.spec);n.valid&&t.dispatch({effects:Jd.of(n)}),a.focus(),a.select()}}else t.dispatch({effects:[A1.of(!0),e?Jd.of(k1(t.state,e.query.spec)):Te.appendConfig.of(rY)]});return!0},X$=t=>{let e=t.state.field(ts,!1);if(!e||!e.panel)return!1;let a=Xg(t,_1);return a&&a.dom.contains(t.root.activeElement)&&t.focus(),t.dispatch({effects:A1.of(!1)}),!0},q$=[{key:"Mod-f",run:U$,scope:"editor search-panel"},{key:"F3",run:yO,shift:vO,scope:"editor search-panel",preventDefault:!0},{key:"Mod-g",run:yO,shift:vO,scope:"editor search-panel",preventDefault:!0},{key:"Escape",run:X$,scope:"editor search-panel"},{key:"Mod-Shift-l",run:tY},{key:"Mod-Alt-g",run:QV},{key:"Mod-d",run:GV,preventDefault:!0}],L1=class{constructor(e){this.view=e;let a=this.query=e.state.field(ts).query.spec;this.commit=this.commit.bind(this),this.searchField=Tt("input",{value:a.search,placeholder:yn(e,"Find"),"aria-label":yn(e,"Find"),class:"cm-textfield",name:"search",form:"","main-field":"true",onchange:this.commit,onkeyup:this.commit}),this.replaceField=Tt("input",{value:a.replace,placeholder:yn(e,"Replace"),"aria-label":yn(e,"Replace"),class:"cm-textfield",name:"replace",form:"",onchange:this.commit,onkeyup:this.commit}),this.caseField=Tt("input",{type:"checkbox",name:"case",form:"",checked:a.caseSensitive,onchange:this.commit}),this.reField=Tt("input",{type:"checkbox",name:"re",form:"",checked:a.regexp,onchange:this.commit}),this.wordField=Tt("input",{type:"checkbox",name:"word",form:"",checked:a.wholeWord,onchange:this.commit});function n(r,i,o){return Tt("button",{class:"cm-button",name:r,onclick:i,type:"button"},o)}this.dom=Tt("div",{onkeydown:r=>this.keydown(r),class:"cm-search"},[this.searchField,n("next",()=>yO(e),[yn(e,"next")]),n("prev",()=>vO(e),[yn(e,"previous")]),n("select",()=>eY(e),[yn(e,"all")]),Tt("label",null,[this.caseField,yn(e,"match case")]),Tt("label",null,[this.reField,yn(e,"regexp")]),Tt("label",null,[this.wordField,yn(e,"by word")]),...e.state.readOnly?[]:[Tt("br"),this.replaceField,n("replace",()=>D$(e),[yn(e,"replace")]),n("replaceAll",()=>aY(e),[yn(e,"replace all")])],Tt("button",{name:"close",onclick:()=>X$(e),"aria-label":yn(e,"close"),type:"button"},["\xD7"])])}commit(){let e=new OO({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:Jd.of(e)}))}keydown(e){DN(this.view,e,"search-panel")?e.preventDefault():e.keyCode==13&&e.target==this.searchField?(e.preventDefault(),(e.shiftKey?vO:yO)(this.view)):e.keyCode==13&&e.target==this.replaceField&&(e.preventDefault(),D$(this.view))}update(e){for(let a of e.transactions)for(let n of a.effects)n.is(Jd)&&!n.value.eq(this.query)&&this.setQuery(n.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(hc).top}};function yn(t,e){return t.state.phrase(e)}var fO=30,dO=/[\s\.,:;?!]/;function R1(t,{from:e,to:a}){let n=t.state.doc.lineAt(e),r=t.state.doc.lineAt(a).to,i=Math.max(n.from,e-fO),o=Math.min(r,a+fO),s=t.state.sliceDoc(i,o);if(i!=n.from){for(let l=0;l<fO;l++)if(!dO.test(s[l+1])&&dO.test(s[l])){s=s.slice(l);break}}if(o!=r){for(let l=s.length-1;l>s.length-fO;l--)if(!dO.test(s[l-1])&&dO.test(s[l])){s=s.slice(0,l);break}}return J.announce.of(`${t.state.phrase("current match")}. ${s} ${t.state.phrase("on line")} ${n.number}.`)}var nY=J.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"}}),rY=[ts,Gn.low(JV),nY];var CO=class{constructor(e,a,n,r){this.state=e,this.pos=a,this.explicit=n,this.view=r,this.abortListeners=[],this.abortOnDocChange=!1}tokenBefore(e){let a=je(this.state).resolveInner(this.pos,-1);for(;a&&e.indexOf(a.name)<0;)a=a.parent;return a?{from:a.from,to:this.pos,text:this.state.sliceDoc(a.from,this.pos),type:a.type}:null}matchBefore(e){let a=this.state.doc.lineAt(this.pos),n=Math.max(a.from,this.pos-250),r=a.text.slice(n-a.from,this.pos-a.from),i=r.search(oY(e,!1));return i<0?null:{from:n+i,to:this.pos,text:r.slice(i)}}get aborted(){return this.abortListeners==null}addEventListener(e,a,n){e=="abort"&&this.abortListeners&&(this.abortListeners.push(a),n&&n.onDocChange&&(this.abortOnDocChange=!0))}};function Z$(t){let e=Object.keys(t).join(""),a=/\w/.test(e);return a&&(e=e.replace(/\w/g,"")),`[${a?"\\w":""}${e.replace(/[^\w\s]/g,"\\$&")}]`}function iY(t){let e=Object.create(null),a=Object.create(null);for(let{label:r}of t){e[r[0]]=!0;for(let i=1;i<r.length;i++)a[r[i]]=!0}let n=Z$(e)+Z$(a)+"*$";return[new RegExp("^"+n),new RegExp(n)]}function G$(t){let e=t.map(r=>typeof r=="string"?{label:r}:r),[a,n]=e.every(r=>/^\w+$/.test(r.label))?[/\w*$/,/\w+$/]:iY(e);return r=>{let i=r.matchBefore(n);return i||r.explicit?{from:i?i.from:r.pos,options:e,validFor:a}:null}}function H$(t,e){return a=>{for(let n=je(a.state).resolveInner(a.pos,-1);n;n=n.parent){if(t.indexOf(n.name)>-1)return null;if(n.type.isTop)break}return e(a)}}function oY(t,e){var a;let{source:n}=t,r=e&&n[0]!="^",i=n[n.length-1]!="$";return!r&&!i?t:new RegExp(`${r?"^":""}(?:${n})${i?"$":""}`,(a=t.flags)!==null&&a!==void 0?a:t.ignoreCase?"i":"")}var sY=Wa.define();var Bse=typeof navigator=="object"&&/Win/.test(navigator.platform);var lY=J.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:'"\xB7\xB7\xB7"',opacity:.5,display:"block",textAlign:"center",cursor:"pointer"},".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:"'\u0192'"}},".cm-completionIcon-class":{"&:after":{content:"'\u25CB'"}},".cm-completionIcon-interface":{"&:after":{content:"'\u25CC'"}},".cm-completionIcon-variable":{"&:after":{content:"'\u{1D465}'"}},".cm-completionIcon-constant":{"&:after":{content:"'\u{1D436}'"}},".cm-completionIcon-type":{"&:after":{content:"'\u{1D461}'"}},".cm-completionIcon-enum":{"&:after":{content:"'\u222A'"}},".cm-completionIcon-property":{"&:after":{content:"'\u25A1'"}},".cm-completionIcon-keyword":{"&:after":{content:"'\u{1F511}\uFE0E'"}},".cm-completionIcon-namespace":{"&:after":{content:"'\u25A2'"}},".cm-completionIcon-text":{"&:after":{content:"'abc'",fontSize:"50%",verticalAlign:"middle"}}}),T1=class{constructor(e,a,n,r){this.field=e,this.line=a,this.from=n,this.to=r}},I1=class t{constructor(e,a,n){this.field=e,this.from=a,this.to=n}map(e){let a=e.mapPos(this.from,-1,Sa.TrackDel),n=e.mapPos(this.to,1,Sa.TrackDel);return a==null||n==null?null:new t(this.field,a,n)}},P1=class t{constructor(e,a){this.lines=e,this.fieldPositions=a}instantiate(e,a){let n=[],r=[a],i=e.doc.lineAt(a),o=/^\s*/.exec(i.text)[0];for(let l of this.lines){if(n.length){let u=o,c=/^\t*/.exec(l)[0].length;for(let f=0;f<c;f++)u+=e.facet(Jo);r.push(a+u.length-c),l=u+l.slice(c)}n.push(l),a+=l.length+1}let s=this.fieldPositions.map(l=>new I1(l.field,r[l.line]+l.from,r[l.line]+l.to));return{text:n,ranges:s}}static parse(e){let a=[],n=[],r=[],i;for(let o of e.split(/\r\n?|\n/)){for(;i=/[#$]\{(?:(\d+)(?::([^{}]*))?|((?:\\[{}]|[^{}])*))\}/.exec(o);){let s=i[1]?+i[1]:null,l=i[2]||i[3]||"",u=-1;s===0&&(s=1e9);let c=l.replace(/\\[{}]/g,f=>f[1]);for(let f=0;f<a.length;f++)(s!=null?a[f].seq==s:c&&a[f].name==c)&&(u=f);if(u<0){let f=0;for(;f<a.length&&(s==null||a[f].seq!=null&&a[f].seq<s);)f++;a.splice(f,0,{seq:s,name:c}),u=f;for(let d of r)d.field>=u&&d.field++}for(let f of r)if(f.line==n.length&&f.from>i.index){let d=i[2]?3+(i[1]||"").length:2;f.from-=d,f.to-=d}r.push(new T1(u,n.length,i.index,i.index+c.length)),o=o.slice(0,i.index)+l+o.slice(i.index+i[0].length)}o=o.replace(/\\([{}])/g,(s,l,u)=>{for(let c of r)c.line==n.length&&c.from>u&&(c.from--,c.to--);return l}),n.push(o)}return new t(n,r)}},uY=de.widget({widget:new class extends xn{toDOM(){let t=document.createElement("span");return t.className="cm-snippetFieldPosition",t}ignoreEvent(){return!1}}}),cY=de.mark({class:"cm-snippetField"}),pc=class t{constructor(e,a){this.ranges=e,this.active=a,this.deco=de.set(e.map(n=>(n.from==n.to?uY:cY).range(n.from,n.to)),!0)}map(e){let a=[];for(let n of this.ranges){let r=n.map(e);if(!r)return null;a.push(r)}return new t(a,this.active)}selectionInsideField(e){return e.ranges.every(a=>this.ranges.some(n=>n.field==this.active&&n.from<=a.from&&n.to>=a.to))}},ah=Te.define({map(t,e){return t&&t.map(e)}}),fY=Te.define(),th=ia.define({create(){return null},update(t,e){for(let a of e.effects){if(a.is(ah))return a.value;if(a.is(fY)&&t)return new pc(t.ranges,a.value)}return t&&e.docChanged&&(t=t.map(e.changes)),t&&e.selection&&!t.selectionInsideField(e.selection)&&(t=null),t},provide:t=>J.decorations.from(t,e=>e?e.deco:de.none)});function M1(t,e){return I.create(t.filter(a=>a.field==e).map(a=>I.range(a.from,a.to)))}function dY(t){let e=P1.parse(t);return(a,n,r,i)=>{let{text:o,ranges:s}=e.instantiate(a.state,r),{main:l}=a.state.selection,u={changes:{from:r,to:i==l.from?l.to:i,insert:Me.of(o)},scrollIntoView:!0,annotations:n?[sY.of(n),Dt.userEvent.of("input.complete")]:void 0};if(s.length&&(u.selection=M1(s,0)),s.some(c=>c.field>0)){let c=new pc(s,0),f=u.effects=[ah.of(c)];a.state.field(th,!1)===void 0&&f.push(Te.appendConfig.of([th,OY,bY,lY]))}a.dispatch(a.state.update(u))}}function j$(t){return({state:e,dispatch:a})=>{let n=e.field(th,!1);if(!n||t<0&&n.active==0)return!1;let r=n.active+t,i=t>0&&!n.ranges.some(o=>o.field==r+t);return a(e.update({selection:M1(n.ranges,r),effects:ah.of(i?null:new pc(n.ranges,r)),scrollIntoView:!0})),!0}}var hY=({state:t,dispatch:e})=>t.field(th,!1)?(e(t.update({effects:ah.of(null)})),!0):!1,pY=j$(1),mY=j$(-1);var gY=[{key:"Tab",run:pY,shift:mY},{key:"Escape",run:hY}],F$=te.define({combine(t){return t.length?t[0]:gY}}),OY=Gn.highest(il.compute([F$],t=>t.facet(F$)));function Xa(t,e){return{...e,apply:dY(t)}}var bY=J.domEventHandlers({mousedown(t,e){let a=e.state.field(th,!1),n;if(!a||(n=e.posAtCoords({x:t.clientX,y:t.clientY}))==null)return!1;let r=a.ranges.find(i=>i.from<=n&&i.to>=n);return!r||r.field==a.active?!1:(e.dispatch({selection:M1(a.ranges,r.field),effects:ah.of(a.ranges.some(i=>i.field>r.field)?new pc(a.ranges,r.field):null),scrollIntoView:!0}),!0)}});var V$=new class extends Fn{};V$.startSide=1;V$.endSide=-1;var zse=typeof navigator=="object"&&/Android\b/.test(navigator.userAgent);var LO=class t{static create(e,a,n,r,i){let o=r+(r<<8)+e+(a<<4)|0;return new t(e,a,n,o,i,[],[])}constructor(e,a,n,r,i,o,s){this.type=e,this.value=a,this.from=n,this.hash=r,this.end=i,this.children=o,this.positions=s,this.hashProp=[[fe.contextHash,r]]}addChild(e,a){e.prop(fe.contextHash)!=this.hash&&(e=new Fe(e.type,e.children,e.positions,e.length,this.hashProp)),this.children.push(e),this.positions.push(a)}toTree(e,a=this.end){let n=this.children.length-1;return n>=0&&(a=Math.max(a,this.positions[n]+this.children[n].length+this.from)),new Fe(e.types[this.type],this.children,this.positions,a-this.from).balance({makeTree:(r,i,o)=>new Fe(wt.none,r,i,o,this.hashProp)})}},X;(function(t){t[t.Document=1]="Document",t[t.CodeBlock=2]="CodeBlock",t[t.FencedCode=3]="FencedCode",t[t.Blockquote=4]="Blockquote",t[t.HorizontalRule=5]="HorizontalRule",t[t.BulletList=6]="BulletList",t[t.OrderedList=7]="OrderedList",t[t.ListItem=8]="ListItem",t[t.ATXHeading1=9]="ATXHeading1",t[t.ATXHeading2=10]="ATXHeading2",t[t.ATXHeading3=11]="ATXHeading3",t[t.ATXHeading4=12]="ATXHeading4",t[t.ATXHeading5=13]="ATXHeading5",t[t.ATXHeading6=14]="ATXHeading6",t[t.SetextHeading1=15]="SetextHeading1",t[t.SetextHeading2=16]="SetextHeading2",t[t.HTMLBlock=17]="HTMLBlock",t[t.LinkReference=18]="LinkReference",t[t.Paragraph=19]="Paragraph",t[t.CommentBlock=20]="CommentBlock",t[t.ProcessingInstructionBlock=21]="ProcessingInstructionBlock",t[t.Escape=22]="Escape",t[t.Entity=23]="Entity",t[t.HardBreak=24]="HardBreak",t[t.Emphasis=25]="Emphasis",t[t.StrongEmphasis=26]="StrongEmphasis",t[t.Link=27]="Link",t[t.Image=28]="Image",t[t.InlineCode=29]="InlineCode",t[t.HTMLTag=30]="HTMLTag",t[t.Comment=31]="Comment",t[t.ProcessingInstruction=32]="ProcessingInstruction",t[t.Autolink=33]="Autolink",t[t.HeaderMark=34]="HeaderMark",t[t.QuoteMark=35]="QuoteMark",t[t.ListMark=36]="ListMark",t[t.LinkMark=37]="LinkMark",t[t.EmphasisMark=38]="EmphasisMark",t[t.CodeMark=39]="CodeMark",t[t.CodeText=40]="CodeText",t[t.CodeInfo=41]="CodeInfo",t[t.LinkTitle=42]="LinkTitle",t[t.LinkLabel=43]="LinkLabel",t[t.URL=44]="URL"})(X||(X={}));var Q1=class{constructor(e,a){this.start=e,this.content=a,this.marks=[],this.parsers=[]}},$1=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 rh(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,a=0,n=0){for(let r=a;r<e;r++)n+=this.text.charCodeAt(r)==9?4-n%4:1;return n}findColumn(e){let a=0;for(let n=0;a<this.text.length&&n<e;a++)n+=this.text.charCodeAt(a)==9?4-n%4:1;return a}scrub(){if(!this.baseIndent)return this.text;let e="";for(let a=0;a<this.basePos;a++)e+=" ";return e+this.text.slice(this.basePos)}};function Y$(t,e,a){if(a.pos==a.text.length||t!=e.block&&a.indent>=e.stack[a.depth+1].value+a.baseIndent)return!0;if(a.indent>=a.baseIndent+4)return!1;let n=(t.type==X.OrderedList?Y1:V1)(a,e,!1);return n>0&&(t.type!=X.BulletList||j1(a,e,!1)<0)&&a.text.charCodeAt(a.pos+n-1)==t.value}var sB={[X.Blockquote](t,e,a){return a.next!=62?!1:(a.markers.push(Be(X.QuoteMark,e.lineStart+a.pos,e.lineStart+a.pos+1)),a.moveBase(a.pos+(tr(a.text.charCodeAt(a.pos+1))?2:1)),t.end=e.lineStart+a.text.length,!0)},[X.ListItem](t,e,a){return a.indent<a.baseIndent+t.value&&a.next>-1?!1:(a.moveBaseColumn(a.baseIndent+t.value),!0)},[X.OrderedList]:Y$,[X.BulletList]:Y$,[X.Document](){return!0}};function tr(t){return t==32||t==9||t==10||t==13}function rh(t,e=0){for(;e<t.length&&tr(t.charCodeAt(e));)e++;return e}function W$(t,e,a){for(;e>a&&tr(t.charCodeAt(e-1));)e--;return e}function lB(t){if(t.next!=96&&t.next!=126)return-1;let e=t.pos+1;for(;e<t.text.length&&t.text.charCodeAt(e)==t.next;)e++;if(e<t.pos+3)return-1;if(t.next==96){for(let a=e;a<t.text.length;a++)if(t.text.charCodeAt(a)==96)return-1}return e}function uB(t){return t.next!=62?-1:t.text.charCodeAt(t.pos+1)==32?2:1}function j1(t,e,a){if(t.next!=42&&t.next!=45&&t.next!=95)return-1;let n=1;for(let r=t.pos+1;r<t.text.length;r++){let i=t.text.charCodeAt(r);if(i==t.next)n++;else if(!tr(i))return-1}return a&&t.next==45&&dB(t)>-1&&t.depth==e.stack.length&&e.parser.leafBlockParsers.indexOf(gB.SetextHeading)>-1||n<3?-1:1}function cB(t,e){for(let a=t.stack.length-1;a>=0;a--)if(t.stack[a].type==e)return!0;return!1}function V1(t,e,a){return(t.next==45||t.next==43||t.next==42)&&(t.pos==t.text.length-1||tr(t.text.charCodeAt(t.pos+1)))&&(!a||cB(e,X.BulletList)||t.skipSpace(t.pos+2)<t.text.length)?1:-1}function Y1(t,e,a){let n=t.pos,r=t.next;for(;r>=48&&r<=57;){n++;if(n==t.text.length)return-1;r=t.text.charCodeAt(n)}return n==t.pos||n>t.pos+9||r!=46&&r!=41||n<t.text.length-1&&!tr(t.text.charCodeAt(n+1))||a&&!cB(e,X.OrderedList)&&(t.skipSpace(n+1)==t.text.length||n>t.pos+1||t.next!=49)?-1:n+1-t.pos}function fB(t){if(t.next!=35)return-1;let e=t.pos+1;for(;e<t.text.length&&t.text.charCodeAt(e)==35;)e++;if(e<t.text.length&&t.text.charCodeAt(e)!=32)return-1;let a=e-t.pos;return a>6?-1:a}function dB(t){if(t.next!=45&&t.next!=61||t.indent>=t.baseIndent+4)return-1;let e=t.pos+1;for(;e<t.text.length&&t.text.charCodeAt(e)==t.next;)e++;let a=e;for(;e<t.text.length&&tr(t.text.charCodeAt(e));)e++;return e==t.text.length?a:-1}var B1=/^[ \t]*$/,hB=/-->/,pB=/\?>/,z1=[[/^<(?:script|pre|style)(?:\s|>|$)/i,/<\/(?:script|pre|style)>/i],[/^\s*<!--/,hB],[/^\s*<\?/,pB],[/^\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,B1],[/^\s*(?:<\/[a-z][\w-]*\s*>|<[a-z][\w-]*(\s+[a-z:_][\w-.]*(?:\s*=\s*(?:[^\s"'=<>`]+|'[^']*'|"[^"]*"))?)*\s*>)\s*$/i,B1]];function mB(t,e,a){if(t.next!=60)return-1;let n=t.text.slice(t.pos);for(let r=0,i=z1.length-(a?1:0);r<i;r++)if(z1[r][0].test(n))return r;return-1}function K$(t,e){let a=t.countIndent(e,t.pos,t.indent),n=t.skipSpace(e),r=t.countIndent(n,e,a);return r>=a+5||n==t.text.length?a+1:r}function ns(t,e,a){let n=t.length-1;n>=0&&t[n].to==e&&t[n].type==X.CodeText?t[n].to=a:t.push(Be(X.CodeText,e,a))}var wO={LinkReference:void 0,IndentedCode(t,e){let a=e.baseIndent+4;if(e.indent<a)return!1;let n=e.findColumn(a),r=t.lineStart+n,i=t.lineStart+e.text.length,o=[],s=[];for(ns(o,r,i);t.nextLine()&&e.depth>=t.stack.length;)if(e.pos==e.text.length){ns(s,t.lineStart-1,t.lineStart);for(let l of e.markers)s.push(l)}else{if(e.indent<a)break;{if(s.length){for(let u of s)u.type==X.CodeText?ns(o,u.from,u.to):o.push(u);s=[]}ns(o,t.lineStart-1,t.lineStart);for(let u of e.markers)o.push(u);i=t.lineStart+e.text.length;let l=t.lineStart+e.findColumn(e.baseIndent+4);l<i&&ns(o,l,i)}}return s.length&&(s=s.filter(l=>l.type!=X.CodeText),s.length&&(e.markers=s.concat(e.markers))),t.addNode(t.buffer.writeElements(o,-r).finish(X.CodeBlock,i-r),r),!0},FencedCode(t,e){let a=lB(e);if(a<0)return!1;let n=t.lineStart+e.pos,r=e.next,i=a-e.pos,o=e.skipSpace(a),s=W$(e.text,e.text.length,o),l=[Be(X.CodeMark,n,n+i)];o<s&&l.push(Be(X.CodeInfo,t.lineStart+o,t.lineStart+s));for(let u=!0,c=!0,f=!1;t.nextLine()&&e.depth>=t.stack.length;u=!1){let d=e.pos;if(e.indent-e.baseIndent<4)for(;d<e.text.length&&e.text.charCodeAt(d)==r;)d++;if(d-e.pos>=i&&e.skipSpace(d)==e.text.length){for(let h of e.markers)l.push(h);c&&f&&ns(l,t.lineStart-1,t.lineStart),l.push(Be(X.CodeMark,t.lineStart+e.pos,t.lineStart+d)),t.nextLine();break}else{f=!0,u||(ns(l,t.lineStart-1,t.lineStart),c=!1);for(let g of e.markers)l.push(g);let h=t.lineStart+e.basePos,p=t.lineStart+e.text.length;h<p&&(ns(l,h,p),c=!1)}}return t.addNode(t.buffer.writeElements(l,-n).finish(X.FencedCode,t.prevLineEnd()-n),n),!0},Blockquote(t,e){let a=uB(e);return a<0?!1:(t.startContext(X.Blockquote,e.pos),t.addNode(X.QuoteMark,t.lineStart+e.pos,t.lineStart+e.pos+1),e.moveBase(e.pos+a),null)},HorizontalRule(t,e){if(j1(e,t,!1)<0)return!1;let a=t.lineStart+e.pos;return t.nextLine(),t.addNode(X.HorizontalRule,a),!0},BulletList(t,e){let a=V1(e,t,!1);if(a<0)return!1;t.block.type!=X.BulletList&&t.startContext(X.BulletList,e.basePos,e.next);let n=K$(e,e.pos+1);return t.startContext(X.ListItem,e.basePos,n-e.baseIndent),t.addNode(X.ListMark,t.lineStart+e.pos,t.lineStart+e.pos+a),e.moveBaseColumn(n),null},OrderedList(t,e){let a=Y1(e,t,!1);if(a<0)return!1;t.block.type!=X.OrderedList&&t.startContext(X.OrderedList,e.basePos,e.text.charCodeAt(e.pos+a-1));let n=K$(e,e.pos+a);return t.startContext(X.ListItem,e.basePos,n-e.baseIndent),t.addNode(X.ListMark,t.lineStart+e.pos,t.lineStart+e.pos+a),e.moveBaseColumn(n),null},ATXHeading(t,e){let a=fB(e);if(a<0)return!1;let n=e.pos,r=t.lineStart+n,i=W$(e.text,e.text.length,n),o=i;for(;o>n&&e.text.charCodeAt(o-1)==e.next;)o--;(o==i||o==n||!tr(e.text.charCodeAt(o-1)))&&(o=e.text.length);let s=t.buffer.write(X.HeaderMark,0,a).writeElements(t.parser.parseInline(e.text.slice(n+a+1,o),r+a+1),-r);o<e.text.length&&s.write(X.HeaderMark,o-n,i-n);let l=s.finish(X.ATXHeading1-1+a,e.text.length-n);return t.nextLine(),t.addNode(l,r),!0},HTMLBlock(t,e){let a=mB(e,t,!1);if(a<0)return!1;let n=t.lineStart+e.pos,r=z1[a][1],i=[],o=r!=B1;for(;!r.test(e.text)&&t.nextLine();){if(e.depth<t.stack.length){o=!1;break}for(let u of e.markers)i.push(u)}o&&t.nextLine();let s=r==hB?X.CommentBlock:r==pB?X.ProcessingInstructionBlock:X.HTMLBlock,l=t.prevLineEnd();return t.addNode(t.buffer.writeElements(i,-n).finish(s,l-n),n),!0},SetextHeading:void 0},U1=class{constructor(e){this.stage=0,this.elts=[],this.pos=0,this.start=e.start,this.advance(e.content)}nextLine(e,a,n){if(this.stage==-1)return!1;let r=n.content+`
43
+ `+a.scrub(),i=this.advance(r);return i>-1&&i<r.length?this.complete(e,n,i):!1}finish(e,a){return(this.stage==2||this.stage==3)&&rh(a.content,this.pos)==a.content.length?this.complete(e,a,a.content.length):!1}complete(e,a,n){return e.addLeafElement(a,Be(X.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;if(this.stage==0){if(!this.nextStage(yB(e,this.pos,this.start,!0)))return-1;if(e.charCodeAt(this.pos)!=58)return this.stage=-1;this.elts.push(Be(X.LinkMark,this.pos+this.start,this.pos+this.start+1)),this.pos++}else if(this.stage==1){if(!this.nextStage(xB(e,rh(e,this.pos),this.start)))return-1}else if(this.stage==2){let a=rh(e,this.pos),n=0;if(a>this.pos){let r=SB(e,a,this.start);if(r){let i=D1(e,r.to-this.start);i>0&&(this.nextStage(r),n=i)}}return n||(n=D1(e,this.pos)),n>0&&n<e.length?n:-1}else return D1(e,this.pos)}}};function D1(t,e){for(;e<t.length;e++){let a=t.charCodeAt(e);if(a==10)break;if(!tr(a))return-1}return e}var X1=class{nextLine(e,a,n){let r=a.depth<e.stack.length?-1:dB(a),i=a.next;if(r<0)return!1;let o=Be(X.HeaderMark,e.lineStart+a.pos,e.lineStart+r);return e.nextLine(),e.addLeafElement(n,Be(i==61?X.SetextHeading1:X.SetextHeading2,n.start,e.prevLineEnd(),[...e.parser.parseInline(n.content,n.start),o])),!0}finish(){return!1}},gB={LinkReference(t,e){return e.content.charCodeAt(0)==91?new U1(e):null},SetextHeading(){return new X1}},xY=[(t,e)=>fB(e)>=0,(t,e)=>lB(e)>=0,(t,e)=>uB(e)>=0,(t,e)=>V1(e,t,!0)>=0,(t,e)=>Y1(e,t,!0)>=0,(t,e)=>j1(e,t,!0)>=0,(t,e)=>mB(e,t,!0)>=0],SY={text:"",end:0},q1=class{constructor(e,a,n,r){this.parser=e,this.input=a,this.ranges=r,this.line=new $1,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=LO.create(X.Document,0,this.lineStart,0,0),this.stack=[this.block],this.fragments=n.length?new G1(n,a):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 n=0;;){let r=e.depth<this.stack.length?this.stack[this.stack.length-1]:null;for(;n<e.markers.length&&(!r||e.markers[n].from<r.end);){let i=e.markers[n++];this.addNode(i.type,i.from,i.to)}if(!r)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;e:for(;;){for(let n of this.parser.blockParsers)if(n){let r=n(this,e);if(r!=!1){if(r==!0)return null;e.forward();continue e}}break}if(e.pos==e.text.length)return this.nextLine()?null:this.finish();let a=new Q1(this.lineStart+e.pos,e.text.slice(e.pos));for(let n of this.parser.leafBlockParsers)if(n){let r=n(this,a);r&&a.parsers.push(r)}e: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,a))break e}for(let n of a.parsers)if(n.nextLine(this,e,a))return null;a.content+=`
44
+ `+e.scrub();for(let n of e.markers)a.marks.push(n)}return this.finishLeaf(a),null}stopAt(e){if(this.stoppedAt!=null&&this.stoppedAt<e)throw new 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 a=this.fragments.takeNodes(this);return a?(this.absoluteLineStart+=a,this.lineStart=vB(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 a=SY;if(a.end=e,e>=this.to)a.text="";else if(a.text=this.lineChunkAt(e),a.end+=a.text.length,this.ranges.length>1){let n=this.absoluteLineStart,r=this.rangeI;for(;this.ranges[r].to<a.end;){r++;let i=this.ranges[r].from,o=this.lineChunkAt(i);a.end=i+o.length,a.text=a.text.slice(0,this.ranges[r-1].to-n)+o,n=a.end-a.text.length}}return a}readLine(){let{line:e}=this,{text:a,end:n}=this.scanLine(this.absoluteLineStart);for(this.absoluteLineEnd=n,e.reset(a);e.depth<this.stack.length;e.depth++){let r=this.stack[e.depth],i=this.parser.skipContextMarkup[r.type];if(!i)throw new Error("Unhandled block context "+X[r.type]);let o=this.line.markers.length;if(!i(r,this,e)){this.line.markers.length>o&&(r.end=this.line.markers[this.line.markers.length-1].to),e.forward();break}e.forward()}}lineChunkAt(e){let a=this.input.chunk(e),n;if(this.input.lineChunks)n=a==`
45
+ `?"":a;else{let r=a.indexOf(`
46
+ `);n=r<0?a:a.slice(0,r)}return e+n.length>this.to?n.slice(0,this.to-e):n}prevLineEnd(){return this.atEnd?this.lineStart:this.lineStart-1}startContext(e,a,n=0){this.block=LO.create(e,n,this.lineStart+a,this.block.hash,this.lineStart+this.line.text.length),this.stack.push(this.block)}startComposite(e,a,n=0){this.startContext(this.parser.getNodeType(e),a,n)}addNode(e,a,n){typeof e=="number"&&(e=new Fe(this.parser.nodeSet.types[e],mc,mc,(n??this.prevLineEnd())-a)),this.block.addChild(e,a-this.block.from)}addElement(e){this.block.addChild(e.toTree(this.parser.nodeSet),e.from-this.block.from)}addLeafElement(e,a){this.addNode(this.buffer.writeElements(F1(a.children,e.marks),-a.from).finish(a.type,a.to-a.from),a.from)}finishContext(){let e=this.stack.pop(),a=this.stack[this.stack.length-1];a.addChild(e.toTree(this.parser.nodeSet),e.from-a.from),this.block=a}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?OB(this.ranges,0,e.topNode,this.ranges[0].from,this.reusePlaceholders):e}finishLeaf(e){for(let n of e.parsers)if(n.finish(this,e))return;let a=F1(this.parser.parseInline(e.content,e.start),e.marks);this.addNode(this.buffer.writeElements(a,-e.start).finish(X.Paragraph,e.content.length),e.start)}elt(e,a,n,r){return typeof e=="string"?Be(this.parser.getNodeType(e),a,n,r):new AO(e,a)}get buffer(){return new EO(this.parser.nodeSet)}};function OB(t,e,a,n,r){let i=t[e].to,o=[],s=[],l=a.from+n;function u(c,f){for(;f?c>=i:c>i;){let d=t[e+1].from-i;n+=d,c+=d,e++,i=t[e].to}}for(let c=a.firstChild;c;c=c.nextSibling){u(c.from+n,!0);let f=c.from+n,d,h=r.get(c.tree);h?d=h:c.to+n>i?(d=OB(t,e,c,n,r),u(c.to+n,!1)):d=c.toTree(),o.push(d),s.push(f-l)}return u(a.to+n,!1),new Fe(a.type,o,s,a.to+n-l,a.tree?a.tree.propValues:void 0)}var oh=class t extends Ho{constructor(e,a,n,r,i,o,s,l,u){super(),this.nodeSet=e,this.blockParsers=a,this.leafBlockParsers=n,this.blockNames=r,this.endLeafBlock=i,this.skipContextMarkup=o,this.inlineParsers=s,this.inlineNames=l,this.wrappers=u,this.nodeTypes=Object.create(null);for(let c of e.types)this.nodeTypes[c.name]=c.id}createParse(e,a,n){let r=new q1(this,e,a,n);for(let i of this.wrappers)r=i(r,e,a,n);return r}configure(e){let a=Z1(e);if(!a)return this;let{nodeSet:n,skipContextMarkup:r}=this,i=this.blockParsers.slice(),o=this.leafBlockParsers.slice(),s=this.blockNames.slice(),l=this.inlineParsers.slice(),u=this.inlineNames.slice(),c=this.endLeafBlock.slice(),f=this.wrappers;if(nh(a.defineNodes)){r=Object.assign({},r);let d=n.types.slice(),h;for(let p of a.defineNodes){let{name:g,block:b,composite:m,style:O}=typeof p=="string"?{name:p}:p;if(d.some(y=>y.name==g))continue;m&&(r[d.length]=(y,C,v)=>m(C,v,y.value));let x=d.length,S=m?["Block","BlockContext"]:b?x>=X.ATXHeading1&&x<=X.SetextHeading2?["Block","LeafBlock","Heading"]:["Block","LeafBlock"]:void 0;d.push(wt.define({id:x,name:g,props:S&&[[fe.group,S]]})),O&&(h||(h={}),Array.isArray(O)||O instanceof Sn?h[g]=O:Object.assign(h,O))}n=new Fo(d),h&&(n=n.extend(Or(h)))}if(nh(a.props)&&(n=n.extend(...a.props)),nh(a.remove))for(let d of a.remove){let h=this.blockNames.indexOf(d),p=this.inlineNames.indexOf(d);h>-1&&(i[h]=o[h]=void 0),p>-1&&(l[p]=void 0)}if(nh(a.parseBlock))for(let d of a.parseBlock){let h=s.indexOf(d.name);if(h>-1)i[h]=d.parse,o[h]=d.leaf;else{let p=d.before?kO(s,d.before):d.after?kO(s,d.after)+1:s.length-1;i.splice(p,0,d.parse),o.splice(p,0,d.leaf),s.splice(p,0,d.name)}d.endLeaf&&c.push(d.endLeaf)}if(nh(a.parseInline))for(let d of a.parseInline){let h=u.indexOf(d.name);if(h>-1)l[h]=d.parse;else{let p=d.before?kO(u,d.before):d.after?kO(u,d.after)+1:u.length-1;l.splice(p,0,d.parse),u.splice(p,0,d.name)}}return a.wrap&&(f=f.concat(a.wrap)),new t(n,i,o,s,c,r,l,u,f)}getNodeType(e){let a=this.nodeTypes[e];if(a==null)throw new RangeError(`Unknown node type '${e}'`);return a}parseInline(e,a){let n=new pl(this,e,a);e:for(let r=a;r<n.end;){let i=n.char(r);for(let o of this.inlineParsers)if(o){let s=o(n,i,r);if(s>=0){r=s;continue e}}r++}return n.resolveMarkers(0)}};function nh(t){return t!=null&&t.length>0}function Z1(t){if(!Array.isArray(t))return t;if(t.length==0)return null;let e=Z1(t[0]);if(t.length==1)return e;let a=Z1(t.slice(1));if(!a||!e)return e||a;let n=(o,s)=>(o||mc).concat(s||mc),r=e.wrap,i=a.wrap;return{props:n(e.props,a.props),defineNodes:n(e.defineNodes,a.defineNodes),parseBlock:n(e.parseBlock,a.parseBlock),parseInline:n(e.parseInline,a.parseInline),remove:n(e.remove,a.remove),wrap:r?i?(o,s,l,u)=>r(i(o,s,l,u),s,l,u):r:i}}function kO(t,e){let a=t.indexOf(e);if(a<0)throw new RangeError(`Position specified relative to unknown parser ${e}`);return a}var bB=[wt.none];for(let t=1,e;e=X[t];t++)bB[t]=wt.define({id:t,name:e,props:t>=X.Escape?[]:[[fe.group,t in sB?["Block","BlockContext"]:["Block","LeafBlock"]]],top:e=="Document"});var mc=[],EO=class{constructor(e){this.nodeSet=e,this.content=[],this.nodes=[]}write(e,a,n,r=0){return this.content.push(e,a,n,4+r*4),this}writeElements(e,a=0){for(let n of e)n.writeTo(this,a);return this}finish(e,a){return Fe.build({buffer:this.content,nodeSet:this.nodeSet,reused:this.nodes,topID:e,length:a})}},hl=class{constructor(e,a,n,r=mc){this.type=e,this.from=a,this.to=n,this.children=r}writeTo(e,a){let n=e.content.length;e.writeElements(this.children,a),e.content.push(this.type,this.from+a,this.to+a,e.content.length+4-n)}toTree(e){return new EO(e).writeElements(this.children,-this.from).finish(this.type,this.to-this.from)}},AO=class{constructor(e,a){this.tree=e,this.from=a}get to(){return this.from+this.tree.length}get type(){return this.tree.type.id}get children(){return mc}writeTo(e,a){e.nodes.push(this.tree),e.content.push(e.nodes.length-1,this.from+a,this.to+a,-1)}toTree(){return this.tree}};function Be(t,e,a,n){return new hl(t,e,a,n)}var W1={resolve:"Emphasis",mark:"EmphasisMark"},K1={resolve:"Emphasis",mark:"EmphasisMark"},dl={},_O={},qa=class{constructor(e,a,n,r,i=n-a){this.type=e,this.from=a,this.to=n,this.side=r,this.size=i}},J$="!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~",sh=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\xA1\u2010-\u2027]/;try{sh=new RegExp("[\\p{S}|\\p{P}]","u")}catch{}var N1={Escape(t,e,a){if(e!=92||a==t.end-1)return-1;let n=t.char(a+1);for(let r=0;r<J$.length;r++)if(J$.charCodeAt(r)==n)return t.append(Be(X.Escape,a,a+2));return-1},Entity(t,e,a){if(e!=38)return-1;let n=/^(?:#\d+|#x[a-f\d]+|\w+);/i.exec(t.slice(a+1,a+31));return n?t.append(Be(X.Entity,a,a+1+n[0].length)):-1},InlineCode(t,e,a){if(e!=96||a&&t.char(a-1)==96)return-1;let n=a+1;for(;n<t.end&&t.char(n)==96;)n++;let r=n-a,i=0;for(;n<t.end;n++)if(t.char(n)==96){if(i++,i==r&&t.char(n+1)!=96)return t.append(Be(X.InlineCode,a,n+1,[Be(X.CodeMark,a,a+r),Be(X.CodeMark,n+1-r,n+1)]))}else i=0;return-1},HTMLTag(t,e,a){if(e!=60||a==t.end-1)return-1;let n=t.slice(a+1,t.end),r=/^(?:[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(n);if(r)return t.append(Be(X.Autolink,a,a+1+r[0].length,[Be(X.LinkMark,a,a+1),Be(X.URL,a+1,a+r[0].length),Be(X.LinkMark,a+r[0].length,a+1+r[0].length)]));let i=/^!--[^>](?:-[^-]|[^-])*?-->/i.exec(n);if(i)return t.append(Be(X.Comment,a,a+1+i[0].length));let o=/^\?[^]*?\?>/.exec(n);if(o)return t.append(Be(X.ProcessingInstruction,a,a+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(n);return s?t.append(Be(X.HTMLTag,a,a+1+s[0].length)):-1},Emphasis(t,e,a){if(e!=95&&e!=42)return-1;let n=a+1;for(;t.char(n)==e;)n++;let r=t.slice(a-1,a),i=t.slice(n,n+1),o=sh.test(r),s=sh.test(i),l=/\s|^$/.test(r),u=/\s|^$/.test(i),c=!u&&(!s||l||o),f=!l&&(!o||u||s),d=c&&(e==42||!f||o),h=f&&(e==42||!c||s);return t.append(new qa(e==95?W1:K1,a,n,(d?1:0)|(h?2:0)))},HardBreak(t,e,a){if(e==92&&t.char(a+1)==10)return t.append(Be(X.HardBreak,a,a+2));if(e==32){let n=a+1;for(;t.char(n)==32;)n++;if(t.char(n)==10&&n>=a+2)return t.append(Be(X.HardBreak,a,n+1))}return-1},Link(t,e,a){return e==91?t.append(new qa(dl,a,a+1,1)):-1},Image(t,e,a){return e==33&&t.char(a+1)==91?t.append(new qa(_O,a,a+2,1)):-1},LinkEnd(t,e,a){if(e!=93)return-1;for(let n=t.parts.length-1;n>=0;n--){let r=t.parts[n];if(r instanceof qa&&(r.type==dl||r.type==_O)){if(!r.side||t.skipSpace(r.to)==a&&!/[(\[]/.test(t.slice(a+1,a+2)))return t.parts[n]=null,-1;let i=t.takeContent(n),o=t.parts[n]=yY(t,i,r.type==dl?X.Link:X.Image,r.from,a+1);if(r.type==dl)for(let s=0;s<n;s++){let l=t.parts[s];l instanceof qa&&l.type==dl&&(l.side=0)}return o.to}}return-1}};function yY(t,e,a,n,r){let{text:i}=t,o=t.char(r),s=r;if(e.unshift(Be(X.LinkMark,n,n+(a==X.Image?2:1))),e.push(Be(X.LinkMark,r-1,r)),o==40){let l=t.skipSpace(r+1),u=xB(i,l-t.offset,t.offset),c;u&&(l=t.skipSpace(u.to),l!=u.to&&(c=SB(i,l-t.offset,t.offset),c&&(l=t.skipSpace(c.to)))),t.char(l)==41&&(e.push(Be(X.LinkMark,r,r+1)),s=l+1,u&&e.push(u),c&&e.push(c),e.push(Be(X.LinkMark,l,s)))}else if(o==91){let l=yB(i,r-t.offset,t.offset,!1);l&&(e.push(l),s=l.to)}return Be(a,n,s,e)}function xB(t,e,a){if(t.charCodeAt(e)==60){for(let r=e+1;r<t.length;r++){let i=t.charCodeAt(r);if(i==62)return Be(X.URL,e+a,r+1+a);if(i==60||i==10)return!1}return null}else{let r=0,i=e;for(let o=!1;i<t.length;i++){let s=t.charCodeAt(i);if(tr(s))break;if(o)o=!1;else if(s==40)r++;else if(s==41){if(!r)break;r--}else s==92&&(o=!0)}return i>e?Be(X.URL,e+a,i+a):i==t.length?null:!1}}function SB(t,e,a){let n=t.charCodeAt(e);if(n!=39&&n!=34&&n!=40)return!1;let r=n==40?41:n;for(let i=e+1,o=!1;i<t.length;i++){let s=t.charCodeAt(i);if(o)o=!1;else{if(s==r)return Be(X.LinkTitle,e+a,i+1+a);s==92&&(o=!0)}}return null}function yB(t,e,a,n){for(let r=!1,i=e+1,o=Math.min(t.length,i+999);i<o;i++){let s=t.charCodeAt(i);if(r)r=!1;else{if(s==93)return n?!1:Be(X.LinkLabel,e+a,i+1+a);if(n&&!tr(s)&&(n=!1),s==91)return!1;s==92&&(r=!0)}}return null}var pl=class{constructor(e,a,n){this.parser=e,this.text=a,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,a){return this.text.slice(e-this.offset,a-this.offset)}append(e){return this.parts.push(e),e.to}addDelimiter(e,a,n,r,i){return this.append(new qa(e,a,n,(r?1:0)|(i?2:0)))}get hasOpenLink(){for(let e=this.parts.length-1;e>=0;e--){let a=this.parts[e];if(a instanceof qa&&(a.type==dl||a.type==_O))return!0}return!1}addElement(e){return this.append(e)}resolveMarkers(e){for(let n=e;n<this.parts.length;n++){let r=this.parts[n];if(!(r instanceof qa&&r.type.resolve&&r.side&2))continue;let i=r.type==W1||r.type==K1,o=r.to-r.from,s,l=n-1;for(;l>=e;l--){let g=this.parts[l];if(g instanceof qa&&g.side&1&&g.type==r.type&&!(i&&(r.side&1||g.side&2)&&(g.size+r.size)%3==0&&(g.size%3||r.size%3))){s=g;break}}if(!s)continue;let u=r.type.resolve,c=[],f=s.from,d=r.to;if(i){let g=Math.min(2,s.to-s.from,o);f=s.to-g,d=r.from+g,u=g==1?"Emphasis":"StrongEmphasis"}s.type.mark&&c.push(this.elt(s.type.mark,f,s.to));for(let g=l+1;g<n;g++)this.parts[g]instanceof hl&&c.push(this.parts[g]),this.parts[g]=null;r.type.mark&&c.push(this.elt(r.type.mark,r.from,d));let h=this.elt(u,f,d,c);this.parts[l]=i&&s.from!=f?new qa(s.type,s.from,f,s.side,s.size):null,(this.parts[n]=i&&r.to!=d?new qa(r.type,d,r.to,r.side,r.size):null)?this.parts.splice(n,0,h):this.parts[n]=h}let a=[];for(let n=e;n<this.parts.length;n++){let r=this.parts[n];r instanceof hl&&a.push(r)}return a}findOpeningDelimiter(e){for(let a=this.parts.length-1;a>=0;a--){let n=this.parts[a];if(n instanceof qa&&n.type==e&&n.side&1)return a}return null}takeContent(e){let a=this.resolveMarkers(e);return this.parts.length=e,a}getDelimiterAt(e){let a=this.parts[e];return a instanceof qa?a:null}skipSpace(e){return rh(this.text,e-this.offset)+this.offset}elt(e,a,n,r){return typeof e=="string"?Be(this.parser.getNodeType(e),a,n,r):new AO(e,a)}};pl.linkStart=dl;pl.imageStart=_O;pl.emphasisAsterisk=K1;pl.emphasisUnderscore=W1;function F1(t,e){if(!e.length)return t;if(!t.length)return e;let a=t.slice(),n=0;for(let r of e){for(;n<a.length&&a[n].to<r.to;)n++;if(n<a.length&&a[n].from<r.from){let i=a[n];i instanceof hl&&(a[n]=new hl(i.type,i.from,i.to,F1(i.children,[r])))}else a.splice(n++,0,r)}return a}var vY=[X.CodeBlock,X.ListItem,X.OrderedList,X.BulletList],G1=class{constructor(e,a){this.fragments=e,this.input=a,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,a){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 i=this.fragment.to;for(;i>0&&this.input.read(i-1,i)!=`
47
+ `;)i--;this.fragmentEnd=i?i-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<=a;if(!n.childAfter(r))return!1}}matches(e){let a=this.cursor.tree;return a&&a.prop(fe.contextHash)==e}takeNodes(e){let a=this.cursor,n=this.fragment.offset,r=this.fragmentEnd-(this.fragment.openEnd?1:0),i=e.absoluteLineStart,o=i,s=e.block.children.length,l=o,u=s;for(;;){if(a.to-n>r||a.to-n>e.to){if(a.type.isAnonymous&&a.firstChild())continue;break}let c=vB(a.from-n,e.ranges);if(a.to-n<=e.ranges[e.rangeI].to)e.addNode(a.tree,c);else{let f=new Fe(e.parser.nodeSet.types[X.Paragraph],[],[],0,e.block.hashProp);e.reusePlaceholders.set(f,a.tree),e.addNode(f,c)}if(a.type.is("Block")&&(vY.indexOf(a.type.id)<0?(o=a.to-n,s=e.block.children.length):(o=l,s=u),l=a.to-n,u=e.block.children.length),!a.nextSibling())break}for(;e.block.children.length>s;)e.block.children.pop(),e.block.positions.pop();return o-i}};function vB(t,e){let a=t;for(let n=1;n<e.length;n++){let r=e[n-1].to,i=e[n].from;r<t&&(a-=i-r)}return a}var CY=Or({"Blockquote/...":w.quote,HorizontalRule:w.contentSeparator,"ATXHeading1/... SetextHeading1/...":w.heading1,"ATXHeading2/... SetextHeading2/...":w.heading2,"ATXHeading3/...":w.heading3,"ATXHeading4/...":w.heading4,"ATXHeading5/...":w.heading5,"ATXHeading6/...":w.heading6,"Comment CommentBlock":w.comment,Escape:w.escape,Entity:w.character,"Emphasis/...":w.emphasis,"StrongEmphasis/...":w.strong,"Link/... Image/...":w.link,"OrderedList/... BulletList/...":w.list,"BlockQuote/...":w.quote,"InlineCode CodeText":w.monospace,"URL Autolink":w.url,"HeaderMark HardBreak QuoteMark ListMark LinkMark EmphasisMark CodeMark":w.processingInstruction,"CodeInfo LinkLabel":w.labelName,LinkTitle:w.string,Paragraph:w.content}),CB=new oh(new Fo(bB).extend(CY),Object.keys(wO).map(t=>wO[t]),Object.keys(wO).map(t=>gB[t]),Object.keys(wO),xY,sB,Object.keys(N1).map(t=>N1[t]),Object.keys(N1),[]);function wY(t,e,a){let n=[];for(let r=t.firstChild,i=e;;r=r.nextSibling){let o=r?r.from:a;if(o>i&&n.push({from:i,to:o}),!r)break;i=r.to}return n}function wB(t){let{codeParser:e,htmlParser:a}=t;return{wrap:jg((r,i)=>{let o=r.type.id;if(e&&(o==X.CodeBlock||o==X.FencedCode)){let s="";if(o==X.FencedCode){let u=r.node.getChild(X.CodeInfo);u&&(s=i.read(u.from,u.to))}let l=e(s);if(l)return{parser:l,overlay:u=>u.type.id==X.CodeText,bracketed:o==X.FencedCode}}else if(a&&(o==X.HTMLBlock||o==X.HTMLTag||o==X.CommentBlock))return{parser:a,overlay:wY(r.node,r.from,r.to)};return null})}}var kY={resolve:"Strikethrough",mark:"StrikethroughMark"},LY={defineNodes:[{name:"Strikethrough",style:{"Strikethrough/...":w.strikethrough}},{name:"StrikethroughMark",style:w.processingInstruction}],parseInline:[{name:"Strikethrough",parse(t,e,a){if(e!=126||t.char(a+1)!=126||t.char(a+2)==126)return-1;let n=t.slice(a-1,a),r=t.slice(a+2,a+3),i=/\s|^$/.test(n),o=/\s|^$/.test(r),s=sh.test(n),l=sh.test(r);return t.addDelimiter(kY,a,a+2,!o&&(!l||i||s),!i&&(!s||o||l))},after:"Emphasis"}]};function ih(t,e,a=0,n,r=0){let i=0,o=!0,s=-1,l=-1,u=!1,c=()=>{n.push(t.elt("TableCell",r+s,r+l,t.parser.parseInline(e.slice(s,l),r+s)))};for(let f=a;f<e.length;f++){let d=e.charCodeAt(f);d==124&&!u?((!o||s>-1)&&i++,o=!1,n&&(s>-1&&c(),n.push(t.elt("TableDelimiter",f+r,f+r+1))),s=l=-1):(u||d!=32&&d!=9)&&(s<0&&(s=f),l=f+1),u=!u&&d==92}return s>-1&&(i++,n&&c()),i}function eB(t,e){for(let a=e;a<t.length;a++){let n=t.charCodeAt(a);if(n==124)return!0;n==92&&a++}return!1}var kB=/^[>\s]*\|?(\s*:?-+:?\s*\|)+(\s*:?-+:?\s*)?$/,RO=class{constructor(){this.rows=null}nextLine(e,a,n){if(this.rows==null){this.rows=!1;let r;if((a.next==45||a.next==58||a.next==124)&&kB.test(r=a.text.slice(a.pos))){let i=[];ih(e,n.content,0,i,n.start)==ih(e,r,0)&&(this.rows=[e.elt("TableHeader",n.start,n.start+n.content.length,i),e.elt("TableDelimiter",e.lineStart+a.pos,e.lineStart+a.text.length)])}}else if(this.rows){let r=[];ih(e,a.text,a.pos,r,e.lineStart),this.rows.push(e.elt("TableRow",e.lineStart+a.pos,e.lineStart+a.text.length,r))}return!1}finish(e,a){return this.rows?(e.addLeafElement(a,e.elt("Table",a.start,a.start+a.content.length,this.rows)),!0):!1}},EY={defineNodes:[{name:"Table",block:!0},{name:"TableHeader",style:{"TableHeader/...":w.heading}},"TableRow",{name:"TableCell",style:w.content},{name:"TableDelimiter",style:w.processingInstruction}],parseBlock:[{name:"Table",leaf(t,e){return eB(e.content,0)?new RO:null},endLeaf(t,e,a){if(a.parsers.some(r=>r instanceof RO)||!eB(e.text,e.basePos))return!1;let n=t.peekLine();return kB.test(n)&&ih(t,e.text,e.basePos)==ih(t,n,e.basePos)},before:"SetextHeading"}]},H1=class{nextLine(){return!1}finish(e,a){return e.addLeafElement(a,e.elt("Task",a.start,a.start+a.content.length,[e.elt("TaskMarker",a.start,a.start+3),...e.parser.parseInline(a.content.slice(3),a.start+3)])),!0}},AY={defineNodes:[{name:"Task",block:!0,style:w.list},{name:"TaskMarker",style:w.atom}],parseBlock:[{name:"TaskList",leaf(t,e){return/^\[[ xX]\][ \t]/.test(e.content)&&t.parentType().name=="ListItem"?new H1:null},after:"SetextHeading"}]},tB=/(www\.)|(https?:\/\/)|([\w.+-]{1,100}@)|(mailto:|xmpp:)/gy,aB=/[\w-]+(\.[\w-]+)+(:\d+)?(\/[^\s<]*)?/gy,_Y=/[\w-]+\.[\w-]+($|[/:])/,nB=/[\w.+-]+@[\w-]+(\.[\w.-]+)+/gy,rB=/\/[a-zA-Z\d@.]+/gy;function iB(t,e,a,n){let r=0;for(let i=e;i<a;i++)t[i]==n&&r++;return r}function RY(t,e){aB.lastIndex=e;let a=aB.exec(t);if(!a||_Y.exec(a[0])[0].indexOf("_")>-1)return-1;let n=e+a[0].length;for(;;){let r=t[n-1],i;if(/[?!.,:*_~]/.test(r)||r==")"&&iB(t,e,n,")")>iB(t,e,n,"("))n--;else if(r==";"&&(i=/&(?:#\d+|#x[a-f\d]+|\w+);$/.exec(t.slice(e,n))))n=e+i.index;else break}return n}function oB(t,e){nB.lastIndex=e;let a=nB.exec(t);if(!a)return-1;let n=a[0][a[0].length-1];return n=="_"||n=="-"?-1:e+a[0].length-(n=="."?1:0)}var TY={parseInline:[{name:"Autolink",parse(t,e,a){let n=a-t.offset;if(n&&/\w/.test(t.text[n-1]))return-1;tB.lastIndex=n;let r=tB.exec(t.text),i=-1;if(!r)return-1;if(r[1]||r[2]){if(i=RY(t.text,n+r[0].length),i>-1&&t.hasOpenLink){let o=/([^\[\]]|\[[^\]]*\])*/.exec(t.text.slice(n,i));i=n+o[0].length}}else r[3]?i=oB(t.text,n):(i=oB(t.text,n+r[0].length),i>-1&&r[0]=="xmpp:"&&(rB.lastIndex=i,r=rB.exec(t.text),r&&(i=r.index+r[0].length)));return i<0?-1:(t.addElement(t.elt("URL",a,i+t.offset)),i+t.offset)}}]},LB=[EY,AY,LY,TY];function EB(t,e,a){return(n,r,i)=>{if(r!=t||n.char(i+1)==t)return-1;let o=[n.elt(a,i,i+1)];for(let s=i+1;s<n.end;s++){let l=n.char(s);if(l==t)return n.addElement(n.elt(e,i,s+1,o.concat(n.elt(a,s,s+1))));if(l==92&&o.push(n.elt("Escape",s,s+++2)),tr(l))break}return-1}}var AB={defineNodes:[{name:"Superscript",style:w.special(w.content)},{name:"SuperscriptMark",style:w.processingInstruction}],parseInline:[{name:"Superscript",parse:EB(94,"Superscript","SuperscriptMark")}]},_B={defineNodes:[{name:"Subscript",style:w.special(w.content)},{name:"SubscriptMark",style:w.processingInstruction}],parseInline:[{name:"Subscript",parse:EB(126,"Subscript","SubscriptMark")}]},RB={defineNodes:[{name:"Emoji",style:w.character}],parseInline:[{name:"Emoji",parse(t,e,a){let n;return e!=58||!(n=/^[a-zA-Z_0-9]+:/.exec(t.slice(a+1,t.end)))?-1:t.addElement(t.elt("Emoji",a,a+1+n[0].length))}}]};var tC=class t{constructor(e,a,n,r,i,o,s,l,u,c=0,f){this.p=e,this.stack=a,this.state=n,this.reducePos=r,this.pos=i,this.score=o,this.buffer=s,this.bufferBase=l,this.curContext=u,this.lookAhead=c,this.parent=f}toString(){return`[${this.stack.filter((e,a)=>a%3==0).concat(this.state)}]@${this.pos}${this.score?"!"+this.score:""}`}static start(e,a,n=0){let r=e.parser.context;return new t(e,[],a,n,n,0,[],0,r?new TO(r,r.start):null,0,null)}get context(){return this.curContext?this.curContext.context:null}pushState(e,a){this.stack.push(this.state,a,this.bufferBase+this.buffer.length),this.state=e}reduce(e){var a;let n=e>>19,r=e&65535,{parser:i}=this.p,o=this.reducePos<this.pos-25&&this.setLookAhead(this.pos),s=i.dynamicPrecedence(r);if(s&&(this.score+=s),n==0){r<i.minRepeatTerm&&this.reducePos<this.pos&&(this.reducePos=this.pos),this.pushState(i.getGoto(this.state,r,!0),this.reducePos),r<i.minRepeatTerm&&this.storeNode(r,this.reducePos,this.reducePos,o?8:4,!0),this.reduceContext(r,this.reducePos);return}let l=this.stack.length-(n-1)*3-(e&262144?6:0),u=l?this.stack[l-2]:this.p.ranges[0].from;r<i.minRepeatTerm&&u==this.reducePos&&this.reducePos<this.pos&&(this.reducePos=this.pos);let c=this.reducePos-u;c>=2e3&&!(!((a=this.p.parser.nodeSet.types[r])===null||a===void 0)&&a.isAnonymous)&&(u==this.p.lastBigReductionStart?(this.p.bigReductionCount++,this.p.lastBigReductionSize=c):this.p.lastBigReductionSize<c&&(this.p.bigReductionCount=1,this.p.lastBigReductionStart=u,this.p.lastBigReductionSize=c));let f=l?this.stack[l-1]:0,d=this.bufferBase+this.buffer.length-f;if(r<i.minRepeatTerm||e&131072){let h=i.stateFlag(this.state,1)?this.pos:this.reducePos;this.storeNode(r,u,h,d+4,!0)}if(e&262144)this.state=this.stack[l];else{let h=this.stack[l-3];this.state=i.getGoto(h,r,!0)}for(;this.stack.length>l;)this.stack.pop();this.reduceContext(r,u)}storeNode(e,a,n,r=4,i=!1){if(e==0&&(!this.stack.length||this.stack[this.stack.length-1]<this.buffer.length+this.bufferBase)){let o=this.buffer.length;if(o>0&&this.buffer[o-4]==0&&this.buffer[o-1]>-1){if(a==n)return;if(this.buffer[o-2]>=a){this.buffer[o-2]=n;return}}}if(!i||this.pos==n)this.buffer.push(e,a,n,r);else{let o=this.buffer.length;if(o>0&&(this.buffer[o-4]!=0||this.buffer[o-1]<0)){let s=!1;for(let l=o;l>0&&this.buffer[l-2]>n;l-=4)if(this.buffer[l-1]>=0){s=!0;break}if(s)for(;o>0&&this.buffer[o-2]>n;)this.buffer[o]=this.buffer[o-4],this.buffer[o+1]=this.buffer[o-3],this.buffer[o+2]=this.buffer[o-2],this.buffer[o+3]=this.buffer[o-1],o-=4,r>4&&(r-=4)}this.buffer[o]=e,this.buffer[o+1]=a,this.buffer[o+2]=n,this.buffer[o+3]=r}}shift(e,a,n,r){if(e&131072)this.pushState(e&65535,this.pos);else if((e&262144)==0){let i=e,{parser:o}=this.p;this.pos=r;let s=o.stateFlag(i,1);!s&&(r>n||a<=o.maxNode)&&(this.reducePos=r),this.pushState(i,s?n:Math.min(n,this.reducePos)),this.shiftContext(a,n),a<=o.maxNode&&this.buffer.push(a,n,r,4)}else this.pos=r,this.shiftContext(a,n),a<=this.p.parser.maxNode&&this.buffer.push(a,n,r,4)}apply(e,a,n,r){e&65536?this.reduce(e):this.shift(e,a,n,r)}useNode(e,a,n){let r=this.p.reused.length-1;(r<0||this.p.reused[r]!=e)&&(this.p.reused.push(e),r++);let i=this.reducePos=this.pos=n+e.length;this.pushState(a,n),this.buffer.push(r,n,i,-1),this.curContext&&this.updateContext(this.curContext.tracker.reuse(this.curContext.context,e,this,this.p.stream.reset(this.pos-e.length)))}split(){let e=this,a=e.buffer.length;for(a&&e.buffer[a-4]==0&&(a-=4);a>0&&e.buffer[a-2]>e.reducePos;)a-=4;let n=e.buffer.slice(a),r=e.bufferBase+a;for(;e&&r==e.bufferBase;)e=e.parent;return new t(this.p,this.stack.slice(),this.state,this.reducePos,this.pos,this.score,n,r,this.curContext,this.lookAhead,e)}recoverByDelete(e,a){let n=e<=this.p.parser.maxNode;n&&this.storeNode(e,this.pos,a,4),this.storeNode(0,this.pos,a,n?8:4),this.pos=this.reducePos=a,this.score-=190}canShift(e){for(let a=new aC(this);;){let n=this.p.parser.stateSlot(a.state,4)||this.p.parser.hasAction(a.state,e);if(n==0)return!1;if((n&65536)==0)return!0;a.reduce(n)}}recoverByInsert(e){if(this.stack.length>=300)return[];let a=this.p.parser.nextStates(this.state);if(a.length>8||this.stack.length>=120){let r=[];for(let i=0,o;i<a.length;i+=2)(o=a[i+1])!=this.state&&this.p.parser.hasAction(o,e)&&r.push(a[i],o);if(this.stack.length<120)for(let i=0;r.length<8&&i<a.length;i+=2){let o=a[i+1];r.some((s,l)=>l&1&&s==o)||r.push(a[i],o)}a=r}let n=[];for(let r=0;r<a.length&&n.length<4;r+=2){let i=a[r+1];if(i==this.state)continue;let o=this.split();o.pushState(i,this.pos),o.storeNode(0,o.pos,o.pos,4,!0),o.shiftContext(a[r],this.pos),o.reducePos=this.pos,o.score-=200,n.push(o)}return n}forceReduce(){let{parser:e}=this.p,a=e.stateSlot(this.state,5);if((a&65536)==0)return!1;if(!e.validAction(this.state,a)){let n=a>>19,r=a&65535,i=this.stack.length-n*3;if(i<0||e.getGoto(this.stack[i],r,!1)<0){let o=this.findForcedReduction();if(o==null)return!1;a=o}this.storeNode(0,this.pos,this.pos,4,!0),this.score-=100}return this.reducePos=this.pos,this.reduce(a),!0}findForcedReduction(){let{parser:e}=this.p,a=[],n=(r,i)=>{if(!a.includes(r))return a.push(r),e.allActions(r,o=>{if(!(o&393216))if(o&65536){let s=(o>>19)-i;if(s>1){let l=o&65535,u=this.stack.length-s*3;if(u>=0&&e.getGoto(this.stack[u],l,!1)>=0)return s<<19|65536|l}}else{let s=n(o,i+1);if(s!=null)return s}})};return n(this.state,0)}forceAll(){for(;!this.p.parser.stateFlag(this.state,2);)if(!this.forceReduce()){this.storeNode(0,this.pos,this.pos,4,!0);break}return this}get deadEnd(){if(this.stack.length!=3)return!1;let{parser:e}=this.p;return e.data[e.stateSlot(this.state,1)]==65535&&!e.stateSlot(this.state,4)}restart(){this.storeNode(0,this.pos,this.pos,4,!0),this.state=this.stack[0],this.stack.length=0}sameState(e){if(this.state!=e.state||this.stack.length!=e.stack.length)return!1;for(let a=0;a<this.stack.length;a+=3)if(this.stack[a]!=e.stack[a])return!1;return!0}get parser(){return this.p.parser}dialectEnabled(e){return this.p.parser.dialect.flags[e]}shiftContext(e,a){this.curContext&&this.updateContext(this.curContext.tracker.shift(this.curContext.context,e,this,this.p.stream.reset(a)))}reduceContext(e,a){this.curContext&&this.updateContext(this.curContext.tracker.reduce(this.curContext.context,e,this,this.p.stream.reset(a)))}emitContext(){let e=this.buffer.length-1;(e<0||this.buffer[e]!=-3)&&this.storeNode(this.curContext.hash,this.reducePos,this.reducePos,-3,!0)}emitLookAhead(){let e=this.buffer.length-1;(e<0||this.buffer[e]!=-4)&&this.buffer.push(this.lookAhead,this.pos,this.pos,-4)}updateContext(e){if(e!=this.curContext.context){let a=new TO(this.curContext.tracker,e);a.hash!=this.curContext.hash&&this.emitContext(),this.curContext=a}}setLookAhead(e){return e<=this.lookAhead?!1:(this.emitLookAhead(),this.lookAhead=e,!0)}close(){this.curContext&&this.curContext.tracker.strict&&this.emitContext(),this.lookAhead>0&&this.emitLookAhead()}},TO=class{constructor(e,a){this.tracker=e,this.context=a,this.hash=e.strict?e.hash(a):0}},aC=class{constructor(e){this.start=e,this.state=e.state,this.stack=e.stack,this.base=this.stack.length}reduce(e){let a=e&65535,n=e>>19;n==0?(this.stack==this.start.stack&&(this.stack=this.stack.slice()),this.stack.push(this.state,0,0),this.base+=3):this.base-=(n-1)*3;let r=this.start.p.parser.getGoto(this.stack[this.base-3],a,!0);this.state=r}},nC=class t{constructor(e,a,n){this.stack=e,this.pos=a,this.index=n,this.buffer=e.buffer,this.index==0&&this.maybeNext()}static create(e,a=e.bufferBase+e.buffer.length){return new t(e,a,a-e.bufferBase)}maybeNext(){let e=this.stack.parent;e!=null&&(this.index=this.stack.bufferBase-e.bufferBase,this.stack=e,this.buffer=e.buffer)}get id(){return this.buffer[this.index-4]}get start(){return this.buffer[this.index-3]}get end(){return this.buffer[this.index-2]}get size(){return this.buffer[this.index-1]}next(){this.index-=4,this.pos-=4,this.index==0&&this.maybeNext()}fork(){return new t(this.stack,this.pos,this.index)}};function lh(t,e=Uint16Array){if(typeof t!="string")return t;let a=null;for(let n=0,r=0;n<t.length;){let i=0;for(;;){let o=t.charCodeAt(n++),s=!1;if(o==126){i=65535;break}o>=92&&o--,o>=34&&o--;let l=o-32;if(l>=46&&(l-=46,s=!0),i+=l,s)break;i*=46}a?a[r++]=i:a=new e(i)}return a}var gc=class{constructor(){this.start=-1,this.value=-1,this.end=-1,this.extended=-1,this.lookAhead=0,this.mask=0,this.context=0}},TB=new gc,rC=class{constructor(e,a){this.input=e,this.ranges=a,this.chunk="",this.chunkOff=0,this.chunk2="",this.chunk2Pos=0,this.next=-1,this.token=TB,this.rangeIndex=0,this.pos=this.chunkPos=a[0].from,this.range=a[0],this.end=a[a.length-1].to,this.readNext()}resolveOffset(e,a){let n=this.range,r=this.rangeIndex,i=this.pos+e;for(;i<n.from;){if(!r)return null;let o=this.ranges[--r];i-=n.from-o.to,n=o}for(;a<0?i>n.to:i>=n.to;){if(r==this.ranges.length-1)return null;let o=this.ranges[++r];i+=o.from-n.to,n=o}return i}clipPos(e){if(e>=this.range.from&&e<this.range.to)return e;for(let a of this.ranges)if(a.to>e)return Math.max(e,a.from);return this.end}peek(e){let a=this.chunkOff+e,n,r;if(a>=0&&a<this.chunk.length)n=this.pos+e,r=this.chunk.charCodeAt(a);else{let i=this.resolveOffset(e,1);if(i==null)return-1;if(n=i,n>=this.chunk2Pos&&n<this.chunk2Pos+this.chunk2.length)r=this.chunk2.charCodeAt(n-this.chunk2Pos);else{let o=this.rangeIndex,s=this.range;for(;s.to<=n;)s=this.ranges[++o];this.chunk2=this.input.chunk(this.chunk2Pos=n),n+this.chunk2.length>s.to&&(this.chunk2=this.chunk2.slice(0,s.to-n)),r=this.chunk2.charCodeAt(0)}}return n>=this.token.lookAhead&&(this.token.lookAhead=n+1),r}acceptToken(e,a=0){let n=a?this.resolveOffset(a,-1):this.pos;if(n==null||n<this.token.start)throw new RangeError("Token end out of bounds");this.token.value=e,this.token.end=n}acceptTokenTo(e,a){this.token.value=e,this.token.end=a}getChunk(){if(this.pos>=this.chunk2Pos&&this.pos<this.chunk2Pos+this.chunk2.length){let{chunk:e,chunkPos:a}=this;this.chunk=this.chunk2,this.chunkPos=this.chunk2Pos,this.chunk2=e,this.chunk2Pos=a,this.chunkOff=this.pos-this.chunkPos}else{this.chunk2=this.chunk,this.chunk2Pos=this.chunkPos;let e=this.input.chunk(this.pos),a=this.pos+e.length;this.chunk=a>this.range.to?e.slice(0,this.range.to-this.pos):e,this.chunkPos=this.pos,this.chunkOff=0}}readNext(){return this.chunkOff>=this.chunk.length&&(this.getChunk(),this.chunkOff==this.chunk.length)?this.next=-1:this.next=this.chunk.charCodeAt(this.chunkOff)}advance(e=1){for(this.chunkOff+=e;this.pos+e>=this.range.to;){if(this.rangeIndex==this.ranges.length-1)return this.setDone();e-=this.range.to-this.pos,this.range=this.ranges[++this.rangeIndex],this.pos=this.range.from}return this.pos+=e,this.pos>=this.token.lookAhead&&(this.token.lookAhead=this.pos+1),this.readNext()}setDone(){return this.pos=this.chunkPos=this.end,this.range=this.ranges[this.rangeIndex=this.ranges.length-1],this.chunk="",this.next=-1}reset(e,a){if(a?(this.token=a,a.start=e,a.lookAhead=e+1,a.value=a.extended=-1):this.token=TB,this.pos!=e){if(this.pos=e,e==this.end)return this.setDone(),this;for(;e<this.range.from;)this.range=this.ranges[--this.rangeIndex];for(;e>=this.range.to;)this.range=this.ranges[++this.rangeIndex];e>=this.chunkPos&&e<this.chunkPos+this.chunk.length?this.chunkOff=e-this.chunkPos:(this.chunk="",this.chunkOff=0),this.readNext()}return this}read(e,a){if(e>=this.chunkPos&&a<=this.chunkPos+this.chunk.length)return this.chunk.slice(e-this.chunkPos,a-this.chunkPos);if(e>=this.chunk2Pos&&a<=this.chunk2Pos+this.chunk2.length)return this.chunk2.slice(e-this.chunk2Pos,a-this.chunk2Pos);if(e>=this.range.from&&a<=this.range.to)return this.input.read(e,a);let n="";for(let r of this.ranges){if(r.from>=a)break;r.to>e&&(n+=this.input.read(Math.max(r.from,e),Math.min(r.to,a)))}return n}},rs=class{constructor(e,a){this.data=e,this.id=a}token(e,a){let{parser:n}=a.p;NB(this.data,e,a,this.id,n.data,n.tokenPrecTable)}};rs.prototype.contextual=rs.prototype.fallback=rs.prototype.extend=!1;var is=class{constructor(e,a,n){this.precTable=a,this.elseToken=n,this.data=typeof e=="string"?lh(e):e}token(e,a){let n=e.pos,r=0;for(;;){let i=e.next<0,o=e.resolveOffset(1,1);if(NB(this.data,e,a,0,this.data,this.precTable),e.token.value>-1)break;if(this.elseToken==null)return;if(i||r++,o==null)break;e.reset(o,e.token)}r&&(e.reset(n,e.token),e.acceptToken(this.elseToken,r))}};is.prototype.contextual=rs.prototype.fallback=rs.prototype.extend=!1;var sa=class{constructor(e,a={}){this.token=e,this.contextual=!!a.contextual,this.fallback=!!a.fallback,this.extend=!!a.extend}};function NB(t,e,a,n,r,i){let o=0,s=1<<n,{dialect:l}=a.p.parser;e:for(;(s&t[o])!=0;){let u=t[o+1];for(let h=o+3;h<u;h+=2)if((t[h+1]&s)>0){let p=t[h];if(l.allows(p)&&(e.token.value==-1||e.token.value==p||PY(p,e.token.value,r,i))){e.acceptToken(p);break}}let c=e.next,f=0,d=t[o+2];if(e.next<0&&d>f&&t[u+d*3-3]==65535){o=t[u+d*3-1];continue e}for(;f<d;){let h=f+d>>1,p=u+h+(h<<1),g=t[p],b=t[p+1]||65536;if(c<g)d=h;else if(c>=b)f=h+1;else{o=t[p+2],e.advance();continue e}}break}}function IB(t,e,a){for(let n=e,r;(r=t[n])!=65535;n++)if(r==a)return n-e;return-1}function PY(t,e,a,n){let r=IB(a,n,e);return r<0||IB(a,n,t)<r}var vn=typeof process<"u"&&process.env&&/\bparse\b/.test(process.env.LOG),J1=null;function PB(t,e,a){let n=t.cursor(Ne.IncludeAnonymous);for(n.moveTo(e);;)if(!(a<0?n.childBefore(e):n.childAfter(e)))for(;;){if((a<0?n.to<e:n.from>e)&&!n.type.isError)return a<0?Math.max(0,Math.min(n.to-1,e-25)):Math.min(t.length,Math.max(n.from+1,e+25));if(a<0?n.prevSibling():n.nextSibling())break;if(!n.parent())return a<0?0:t.length}}var iC=class{constructor(e,a){this.fragments=e,this.minRepeat=a,this.i=0,this.fragment=null,this.safeFrom=-1,this.safeTo=-1,this.trees=[],this.start=[],this.index=[],this.lastRepeat=null,this.lastRepeatPos=-1,this.nextFragment()}nextFragment(){let e=this.fragment=this.i==this.fragments.length?null:this.fragments[this.i++];if(e){for(this.safeFrom=e.openStart?PB(e.tree,e.from+e.offset,1)-e.offset:e.from,this.safeTo=e.openEnd?PB(e.tree,e.to+e.offset,-1)-e.offset:e.to;this.trees.length;)this.trees.pop(),this.start.pop(),this.index.pop();this.trees.push(e.tree),this.start.push(-e.offset),this.index.push(0),this.nextStart=this.safeFrom}else this.nextStart=1e9}nodeAt(e){if(e<this.nextStart)return null;for(;this.fragment&&this.safeTo<=e;)this.nextFragment();if(!this.fragment)return null;for(;;){let a=this.trees.length-1;if(a<0)return this.nextFragment(),null;let n=this.trees[a],r=this.index[a];if(r==n.children.length){this.trees.pop(),this.start.pop(),this.index.pop();continue}let i=n.children[r],o=this.start[a]+n.positions[r];if(o>e)return this.nextStart=o,null;if(i instanceof Fe){let s=o>this.lastRepeatPos&&i.type.id>=this.minRepeat;if(o==e||s){let l=o+i.length,u;if(o>=this.safeFrom&&l<=this.safeTo&&(!(u=i.prop(fe.lookAhead))||l+u<this.fragment.to)){if(s&&(this.lastRepeat=i,this.lastRepeatPos=o),o==e)return i}else if(o==e)return null}this.index[a]++,o+i.length>=Math.max(this.safeFrom,e)&&(this.trees.push(i),this.start.push(o),this.index.push(0))}else this.index[a]++,this.nextStart=o+i.length}}},oC=class{constructor(e,a){this.stream=a,this.tokens=[],this.mainToken=null,this.actions=[],this.tokens=e.tokenizers.map(n=>new gc)}getActions(e){let a=0,n=null,{parser:r}=e.p,{tokenizers:i}=r,o=r.stateSlot(e.state,3),s=e.curContext?e.curContext.hash:0,l=0;for(let u=0;u<i.length;u++){if((1<<u&o)==0)continue;let c=i[u],f=this.tokens[u];if(!(n&&!c.fallback)&&((c.contextual||f.start!=e.pos||f.mask!=o||f.context!=s)&&(this.updateCachedToken(f,c,e),f.mask=o,f.context=s),f.lookAhead>f.end+25&&(l=Math.max(f.lookAhead,l)),f.value!=0)){let d=a;if(f.extended>-1&&(a=this.addActions(e,f.extended,f.end,a)),a=this.addActions(e,f.value,f.end,a),!c.extend&&(n=f,a>d))break}}for(;this.actions.length>a;)this.actions.pop();return l&&e.setLookAhead(l),!n&&e.pos==this.stream.end&&(n=new gc,n.value=e.p.parser.eofTerm,n.start=n.end=e.pos,a=this.addActions(e,n.value,n.end,a)),this.mainToken=n,this.actions}getMainToken(e){if(this.mainToken)return this.mainToken;let a=new gc,{pos:n,p:r}=e;return a.start=n,a.end=Math.min(n+1,r.stream.end),a.value=n==r.stream.end?r.parser.eofTerm:0,a}updateCachedToken(e,a,n){let r=this.stream.clipPos(n.pos);if(a.token(this.stream.reset(r,e),n),e.value>-1){let{parser:i}=n.p;for(let o=0;o<i.specialized.length;o++)if(i.specialized[o]==e.value){let s=i.specializers[o](this.stream.read(e.start,e.end),n);if(s>=0&&n.p.parser.dialect.allows(s>>1)){(s&1)==0?e.value=s>>1:e.extended=s>>1;break}}}else e.value=0,e.end=this.stream.clipPos(r+1)}putAction(e,a,n,r){for(let i=0;i<r;i+=3)if(this.actions[i]==e)return r;return this.actions[r++]=e,this.actions[r++]=a,this.actions[r++]=n,r}addActions(e,a,n,r){let{state:i}=e,{parser:o}=e.p,{data:s}=o;for(let l=0;l<2;l++)for(let u=o.stateSlot(i,l?2:1);;u+=3){if(s[u]==65535)if(s[u+1]==1)u=Pi(s,u+2);else{r==0&&s[u+1]==2&&(r=this.putAction(Pi(s,u+2),a,n,r));break}s[u]==a&&(r=this.putAction(Pi(s,u+1),a,n,r))}return r}},sC=class{constructor(e,a,n,r){this.parser=e,this.input=a,this.ranges=r,this.recovering=0,this.nextStackID=9812,this.minStackPos=0,this.reused=[],this.stoppedAt=null,this.lastBigReductionStart=-1,this.lastBigReductionSize=0,this.bigReductionCount=0,this.stream=new rC(a,r),this.tokens=new oC(e,this.stream),this.topTerm=e.top[1];let{from:i}=r[0];this.stacks=[tC.start(this,e.top[0],i)],this.fragments=n.length&&this.stream.end-i>e.bufferLength*4?new iC(n,e.minRepeatTerm):null}get parsedPos(){return this.minStackPos}advance(){let e=this.stacks,a=this.minStackPos,n=this.stacks=[],r,i;if(this.bigReductionCount>300&&e.length==1){let[o]=e;for(;o.forceReduce()&&o.stack.length&&o.stack[o.stack.length-2]>=this.lastBigReductionStart;);this.bigReductionCount=this.lastBigReductionSize=0}for(let o=0;o<e.length;o++){let s=e[o];for(;;){if(this.tokens.mainToken=null,s.pos>a)n.push(s);else{if(this.advanceStack(s,n,e))continue;{r||(r=[],i=[]),r.push(s);let l=this.tokens.getMainToken(s);i.push(l.value,l.end)}}break}}if(!n.length){let o=r&&MY(r);if(o)return vn&&console.log("Finish with "+this.stackID(o)),this.stackToTree(o);if(this.parser.strict)throw vn&&r&&console.log("Stuck with token "+(this.tokens.mainToken?this.parser.getName(this.tokens.mainToken.value):"none")),new SyntaxError("No parse at "+a);this.recovering||(this.recovering=5)}if(this.recovering&&r){let o=this.stoppedAt!=null&&r[0].pos>this.stoppedAt?r[0]:this.runRecovery(r,i,n);if(o)return vn&&console.log("Force-finish "+this.stackID(o)),this.stackToTree(o.forceAll())}if(this.recovering){let o=this.recovering==1?1:this.recovering*3;if(n.length>o)for(n.sort((s,l)=>l.score-s.score);n.length>o;)n.pop();n.some(s=>s.reducePos>a)&&this.recovering--}else if(n.length>1){e:for(let o=0;o<n.length-1;o++){let s=n[o];for(let l=o+1;l<n.length;l++){let u=n[l];if(s.sameState(u)||s.buffer.length>500&&u.buffer.length>500)if((s.score-u.score||s.buffer.length-u.buffer.length)>0)n.splice(l--,1);else{n.splice(o--,1);continue e}}}n.length>12&&(n.sort((o,s)=>s.score-o.score),n.splice(12,n.length-12))}this.minStackPos=n[0].pos;for(let o=1;o<n.length;o++)n[o].pos<this.minStackPos&&(this.minStackPos=n[o].pos);return null}stopAt(e){if(this.stoppedAt!=null&&this.stoppedAt<e)throw new RangeError("Can't move stoppedAt forward");this.stoppedAt=e}tryReuse(e,a,n,r){if(!n)return null;let i=e.curContext&&e.curContext.tracker.strict,o=i?e.curContext.hash:0;for(;n;){let s=this.parser.nodeSet.types[n.type.id]!=n.type?-1:this.parser.getGoto(e.state,n.type.id);if(s>-1&&n.length&&(!i||(n.prop(fe.contextHash)||0)==o))return e.useNode(n,s,a),n;if(n.children.length==0||n.positions[0]>0)break;let l=n.children[0];if(l instanceof Fe&&(!r||l.type.id>=this.parser.minRepeatTerm))n=l;else break}return null}advanceStack(e,a,n){let r=e.pos,{parser:i}=this,o=vn?this.stackID(e)+" -> ":"";if(this.stoppedAt!=null&&r>this.stoppedAt)return e.forceReduce()?e:null;if(this.fragments){let u=e.reducePos<r&&e.buffer.length&&e.buffer[e.buffer.length-2]<=e.reducePos&&this.fragments.lastRepeatPos==e.reducePos&&this.tryReuse(e,e.reducePos,this.fragments.lastRepeat,!0)||this.tryReuse(e,r,this.fragments.nodeAt(r),!1);if(u)return vn&&console.log(o+this.stackID(e)+` (via reuse of ${i.getName(u.type.id)})`),!0}let s=i.stateSlot(e.state,4);if(s>0)return e.reduce(s),vn&&console.log(o+this.stackID(e)+` (via always-reduce ${i.getName(s&65535)})`),!0;if(e.stack.length>=8400)for(;e.stack.length>6e3&&e.forceReduce(););let l=this.tokens.getActions(e);for(let u=0;u<l.length;){let c=l[u++],f=l[u++],d=l[u++],h=u==l.length||!n,p=h?e:e.split(),g=this.tokens.mainToken;if(p.apply(c,f,g?g.start:p.pos,d),vn&&console.log(o+this.stackID(p)+` (via ${(c&65536)==0?"shift":`reduce of ${i.getName(c&65535)}`} for ${i.getName(f)} @ ${r}${p==e?"":", split"})`),h)return!0;p.pos>r?a.push(p):n.push(p)}return!1}advanceFully(e,a){let n=e.pos;for(;;){if(!this.advanceStack(e,null,null))return!1;if(e.pos>n)return MB(e,a),!0}}runRecovery(e,a,n){let r=null,i=!1;for(let o=0;o<e.length;o++){let s=e[o],l=a[o<<1],u=a[(o<<1)+1],c=vn?this.stackID(s)+" -> ":"";if(s.deadEnd&&(i||(i=!0,s.restart(),vn&&console.log(c+this.stackID(s)+" (restarted)"),this.advanceFully(s,n))))continue;let f=s.split(),d=c;for(let h=0;h<10&&f.forceReduce()&&(vn&&console.log(d+this.stackID(f)+" (via force-reduce)"),!this.advanceFully(f,n));h++)vn&&(d=this.stackID(f)+" -> ");for(let h of s.recoverByInsert(l))vn&&console.log(c+this.stackID(h)+" (via recover-insert)"),this.advanceFully(h,n);this.stream.end>s.pos?(u==s.pos&&(u++,l=0),s.recoverByDelete(l,u),vn&&console.log(c+this.stackID(s)+` (via recover-delete ${this.parser.getName(l)})`),MB(s,n)):(!r||r.score<f.score)&&(r=f)}return r}stackToTree(e){return e.close(),Fe.build({buffer:nC.create(e),nodeSet:this.parser.nodeSet,topID:this.topTerm,maxBufferLength:this.parser.bufferLength,reused:this.reused,start:this.ranges[0].from,length:e.pos-this.ranges[0].from,minRepeatType:this.parser.minRepeatTerm})}stackID(e){let a=(J1||(J1=new WeakMap)).get(e);return a||J1.set(e,a=String.fromCodePoint(this.nextStackID++)),a+e}};function MB(t,e){for(let a=0;a<e.length;a++){let n=e[a];if(n.pos==t.pos&&n.sameState(t)){e[a].score<t.score&&(e[a]=t);return}}e.push(t)}var lC=class{constructor(e,a,n){this.source=e,this.flags=a,this.disabled=n}allows(e){return!this.disabled||this.disabled[e]==0}},eC=t=>t,Oc=class{constructor(e){this.start=e.start,this.shift=e.shift||eC,this.reduce=e.reduce||eC,this.reuse=e.reuse||eC,this.hash=e.hash||(()=>0),this.strict=e.strict!==!1}},os=class t extends Ho{constructor(e){if(super(),this.wrappers=[],e.version!=14)throw new RangeError(`Parser version (${e.version}) doesn't match runtime version (14)`);let a=e.nodeNames.split(" ");this.minRepeatTerm=a.length;for(let s=0;s<e.repeatNodeCount;s++)a.push("");let n=Object.keys(e.topRules).map(s=>e.topRules[s][1]),r=[];for(let s=0;s<a.length;s++)r.push([]);function i(s,l,u){r[s].push([l,l.deserialize(String(u))])}if(e.nodeProps)for(let s of e.nodeProps){let l=s[0];typeof l=="string"&&(l=fe[l]);for(let u=1;u<s.length;){let c=s[u++];if(c>=0)i(c,l,s[u++]);else{let f=s[u+-c];for(let d=-c;d>0;d--)i(s[u++],l,f);u++}}}this.nodeSet=new Fo(a.map((s,l)=>wt.define({name:l>=this.minRepeatTerm?void 0:s,id:l,props:r[l],top:n.indexOf(l)>-1,error:l==0,skipped:e.skippedNodes&&e.skippedNodes.indexOf(l)>-1}))),e.propSources&&(this.nodeSet=this.nodeSet.extend(...e.propSources)),this.strict=!1,this.bufferLength=1024;let o=lh(e.tokenData);this.context=e.context,this.specializerSpecs=e.specialized||[],this.specialized=new Uint16Array(this.specializerSpecs.length);for(let s=0;s<this.specializerSpecs.length;s++)this.specialized[s]=this.specializerSpecs[s].term;this.specializers=this.specializerSpecs.map(DB),this.states=lh(e.states,Uint32Array),this.data=lh(e.stateData),this.goto=lh(e.goto),this.maxTerm=e.maxTerm,this.tokenizers=e.tokenizers.map(s=>typeof s=="number"?new rs(o,s):s),this.topRules=e.topRules,this.dialects=e.dialects||{},this.dynamicPrecedences=e.dynamicPrecedences||null,this.tokenPrecTable=e.tokenPrec,this.termNames=e.termNames||null,this.maxNode=this.nodeSet.types.length-1,this.dialect=this.parseDialect(),this.top=this.topRules[Object.keys(this.topRules)[0]]}createParse(e,a,n){let r=new sC(this,e,a,n);for(let i of this.wrappers)r=i(r,e,a,n);return r}getGoto(e,a,n=!1){let r=this.goto;if(a>=r[0])return-1;for(let i=r[a+1];;){let o=r[i++],s=o&1,l=r[i++];if(s&&n)return l;for(let u=i+(o>>1);i<u;i++)if(r[i]==e)return l;if(s)return-1}}hasAction(e,a){let n=this.data;for(let r=0;r<2;r++)for(let i=this.stateSlot(e,r?2:1),o;;i+=3){if((o=n[i])==65535)if(n[i+1]==1)o=n[i=Pi(n,i+2)];else{if(n[i+1]==2)return Pi(n,i+2);break}if(o==a||o==0)return Pi(n,i+1)}return 0}stateSlot(e,a){return this.states[e*6+a]}stateFlag(e,a){return(this.stateSlot(e,0)&a)>0}validAction(e,a){return!!this.allActions(e,n=>n==a?!0:null)}allActions(e,a){let n=this.stateSlot(e,4),r=n?a(n):void 0;for(let i=this.stateSlot(e,1);r==null;i+=3){if(this.data[i]==65535)if(this.data[i+1]==1)i=Pi(this.data,i+2);else break;r=a(Pi(this.data,i+1))}return r}nextStates(e){let a=[];for(let n=this.stateSlot(e,1);;n+=3){if(this.data[n]==65535)if(this.data[n+1]==1)n=Pi(this.data,n+2);else break;if((this.data[n+2]&1)==0){let r=this.data[n+1];a.some((i,o)=>o&1&&i==r)||a.push(this.data[n],r)}}return a}configure(e){let a=Object.assign(Object.create(t.prototype),this);if(e.props&&(a.nodeSet=this.nodeSet.extend(...e.props)),e.top){let n=this.topRules[e.top];if(!n)throw new RangeError(`Invalid top rule name ${e.top}`);a.top=n}return e.tokenizers&&(a.tokenizers=this.tokenizers.map(n=>{let r=e.tokenizers.find(i=>i.from==n);return r?r.to:n})),e.specializers&&(a.specializers=this.specializers.slice(),a.specializerSpecs=this.specializerSpecs.map((n,r)=>{let i=e.specializers.find(s=>s.from==n.external);if(!i)return n;let o=Object.assign(Object.assign({},n),{external:i.to});return a.specializers[r]=DB(o),o})),e.contextTracker&&(a.context=e.contextTracker),e.dialect&&(a.dialect=this.parseDialect(e.dialect)),e.strict!=null&&(a.strict=e.strict),e.wrap&&(a.wrappers=a.wrappers.concat(e.wrap)),e.bufferLength!=null&&(a.bufferLength=e.bufferLength),a}hasWrappers(){return this.wrappers.length>0}getName(e){return this.termNames?this.termNames[e]:String(e<=this.maxNode&&this.nodeSet.types[e].name||e)}get eofTerm(){return this.maxNode+1}get topNode(){return this.nodeSet.types[this.top[1]]}dynamicPrecedence(e){let a=this.dynamicPrecedences;return a==null?0:a[e]||0}parseDialect(e){let a=Object.keys(this.dialects),n=a.map(()=>!1);if(e)for(let i of e.split(" ")){let o=a.indexOf(i);o>=0&&(n[o]=!0)}let r=null;for(let i=0;i<a.length;i++)if(!n[i])for(let o=this.dialects[a[i]],s;(s=this.data[o++])!=65535;)(r||(r=new Uint8Array(this.maxTerm+1)))[s]=1;return new lC(e,n,r)}static deserialize(e){return new t(e)}};function Pi(t,e){return t[e]|t[e+1]<<16}function MY(t){let e=null;for(let a of t){let n=a.p.stoppedAt;(a.pos==a.p.stream.end||n!=null&&a.pos>n)&&a.p.parser.stateFlag(a.state,2)&&(!e||e.score<a.score)&&(e=a)}return e}function DB(t){if(t.external){let e=t.extend?1:0;return(a,n)=>t.external(a,n)<<1|e}return t.get}var DY=55,NY=1,QY=56,$Y=2,BY=57,zY=3,QB=4,UY=5,hC=6,FB=7,GB=8,HB=9,jB=10,XY=11,qY=12,ZY=13,uC=58,FY=14,GY=15,$B=59,VB=21,HY=23,YB=24,jY=25,fC=27,WB=28,VY=29,YY=32,WY=35,KY=37,JY=38,eW=0,tW=1,aW={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},nW={dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},BB={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 rW(t){return t==45||t==46||t==58||t>=65&&t<=90||t==95||t>=97&&t<=122||t>=161}var zB=null,UB=null,XB=0;function dC(t,e){let a=t.pos+e;if(XB==a&&UB==t)return zB;let n=t.peek(e),r="";for(;rW(n);)r+=String.fromCharCode(n),n=t.peek(++e);return UB=t,XB=a,zB=r?r.toLowerCase():n==iW||n==oW?void 0:null}var KB=60,IO=62,pC=47,iW=63,oW=33,sW=45;function qB(t,e){this.name=t,this.parent=e}var lW=[hC,jB,FB,GB,HB],uW=new Oc({start:null,shift(t,e,a,n){return lW.indexOf(e)>-1?new qB(dC(n,1)||"",t):t},reduce(t,e){return e==VB&&t?t.parent:t},reuse(t,e,a,n){let r=e.type.id;return r==hC||r==KY?new qB(dC(n,1)||"",t):t},strict:!1}),cW=new sa((t,e)=>{if(t.next!=KB){t.next<0&&e.context&&t.acceptToken(uC);return}t.advance();let a=t.next==pC;a&&t.advance();let n=dC(t,0);if(n===void 0)return;if(!n)return t.acceptToken(a?GY:FY);let r=e.context?e.context.name:null;if(a){if(n==r)return t.acceptToken(XY);if(r&&nW[r])return t.acceptToken(uC,-2);if(e.dialectEnabled(eW))return t.acceptToken(qY);for(let i=e.context;i;i=i.parent)if(i.name==n)return;t.acceptToken(ZY)}else{if(n=="script")return t.acceptToken(FB);if(n=="style")return t.acceptToken(GB);if(n=="textarea")return t.acceptToken(HB);if(aW.hasOwnProperty(n))return t.acceptToken(jB);r&&BB[r]&&BB[r][n]?t.acceptToken(uC,-1):t.acceptToken(hC)}},{contextual:!0}),fW=new sa(t=>{for(let e=0,a=0;;a++){if(t.next<0){a&&t.acceptToken($B);break}if(t.next==sW)e++;else if(t.next==IO&&e>=2){a>=3&&t.acceptToken($B,-2);break}else e=0;t.advance()}});function dW(t){for(;t;t=t.parent)if(t.name=="svg"||t.name=="math")return!0;return!1}var hW=new sa((t,e)=>{if(t.next==pC&&t.peek(1)==IO){let a=e.dialectEnabled(tW)||dW(e.context);t.acceptToken(a?UY:QB,2)}else t.next==IO&&t.acceptToken(QB,1)});function mC(t,e,a){let n=2+t.length;return new sa(r=>{for(let i=0,o=0,s=0;;s++){if(r.next<0){s&&r.acceptToken(e);break}if(i==0&&r.next==KB||i==1&&r.next==pC||i>=2&&i<n&&r.next==t.charCodeAt(i-2))i++,o++;else if(i==n&&r.next==IO){s>o?r.acceptToken(e,-o):r.acceptToken(a,-(o-2));break}else if((r.next==10||r.next==13)&&s){r.acceptToken(e,1);break}else i=o=0;r.advance()}})}var pW=mC("script",DY,NY),mW=mC("style",QY,$Y),gW=mC("textarea",BY,zY),OW=Or({"Text RawText IncompleteTag IncompleteCloseTag":w.content,"StartTag StartCloseTag SelfClosingEndTag EndTag":w.angleBracket,TagName:w.tagName,"MismatchedCloseTag/TagName":[w.tagName,w.invalid],AttributeName:w.attributeName,"AttributeValue UnquotedAttributeValue":w.attributeValue,Is:w.definitionOperator,"EntityReference CharacterReference":w.character,Comment:w.blockComment,ProcessingInst:w.processingInstruction,DoctypeDecl:w.documentMeta}),JB=os.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'#CqO$kO!rO'#CqOOO`'#Cq'#CqO$rO$fO'#DUO$zQ#tO'#DWO%PQ#tO'#DXOOO`'#Dl'#DlOOO`'#DZ'#DZQVO!rOOO%UQ&rO,59^O%aQ&rO,59gO%lQ&rO,59jO%wQ&rO,59mO&SQ&rO,59oOOOa'#D_'#D_O&_OaO'#CyO&jOaO,59]OOOb'#D`'#D`O&rObO'#C|O&}ObO,59]OOOd'#Da'#DaO'VOdO'#DPO'bOdO,59]OOO`'#Db'#DbO'jO!rO,59]O'qQ#tO'#DSOOO`,59],59]OOOp'#Dc'#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j!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:"\u26A0 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:uW,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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P;=`<%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:[pW,mW,gW,hW,cW,fW,0,1,2,3,4,5],topRules:{Document:[0,16]},dialects:{noMatch:0,selfClosing:515},tokenPrec:517});function ez(t,e){let a=Object.create(null);for(let n of t.getChildren(YB)){let r=n.getChild(jY),i=n.getChild(fC)||n.getChild(WB);r&&(a[e.read(r.from,r.to)]=i?i.type.id==fC?e.read(i.from+1,i.to-1):e.read(i.from,i.to):"")}return a}function ZB(t,e){let a=t.getChild(HY);return a?e.read(a.from,a.to):" "}function cC(t,e,a){let n;for(let r of a)if(!r.attrs||r.attrs(n||(n=ez(t.node.parent.firstChild,e))))return{parser:r.parser,bracketed:!0};return null}function gC(t=[],e=[]){let a=[],n=[],r=[],i=[];for(let s of t)(s.tag=="script"?a:s.tag=="style"?n:s.tag=="textarea"?r:i).push(s);let o=e.length?Object.create(null):null;for(let s of e)(o[s.name]||(o[s.name]=[])).push(s);return jg((s,l)=>{let u=s.type.id;if(u==VY)return cC(s,l,a);if(u==YY)return cC(s,l,n);if(u==WY)return cC(s,l,r);if(u==VB&&i.length){let c=s.node,f=c.firstChild,d=f&&ZB(f,l),h;if(d){for(let p of i)if(p.tag==d&&(!p.attrs||p.attrs(h||(h=ez(f,l))))){let g=c.lastChild,b=g.type.id==JY?g.from:c.to;if(b>f.to)return{parser:p.parser,overlay:[{from:f.to,to:b}]}}}}if(o&&u==YB){let c=s.node,f;if(f=c.firstChild){let d=o[l.read(f.from,f.to)];if(d)for(let h of d){if(h.tagName&&h.tagName!=ZB(c.parent,l))continue;let p=c.lastChild;if(p.type.id==fC){let g=p.from+1,b=p.lastChild,m=p.to-(b&&b.isError?0:1);if(m>g)return{parser:h.parser,overlay:[{from:g,to:m}],bracketed:!0}}else if(p.type.id==WB)return{parser:h.parser,overlay:[{from:p.from,to:p.to}]}}}}return null})}var bW=148,tz=1,xW=149,SW=150,rz=2,yW=151,vW=3,CW=4,wW=152,iz=[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],kW=58,LW=40,oz=95,EW=91,PO=45,AW=46,_W=35,RW=37,TW=38,IW=92,PW=10,MW=42;function uh(t){return t>=65&&t<=90||t>=97&&t<=122||t>=161}function OC(t){return t>=48&&t<=57}function az(t){return OC(t)||t>=97&&t<=102||t>=65&&t<=70}var sz=(t,e,a)=>(n,r)=>{for(let i=!1,o=0,s=0;;s++){let{next:l}=n;if(uh(l)||l==PO||l==oz||i&&OC(l))!i&&(l!=PO||s>0)&&(i=!0),o===s&&l==PO&&o++,n.advance();else if(l==IW&&n.peek(1)!=PW){if(n.advance(),az(n.next)){do n.advance();while(az(n.next));n.next==32&&n.advance()}else n.next>-1&&n.advance();i=!0}else{i&&n.acceptToken(o>=2&&r.canShift(rz)?e:l==LW?a:t);break}}},DW=new sa(sz(xW,rz,SW),{contextual:!0}),NW=new sa(sz(yW,vW,CW),{contextual:!0}),QW=new sa(t=>{if(iz.includes(t.peek(-1))){let{next:e}=t;(uh(e)||e==oz||e==_W||e==AW||e==MW||e==EW||e==kW&&uh(t.peek(1))||e==PO||e==TW)&&t.acceptToken(bW)}}),$W=new sa(t=>{if(!iz.includes(t.peek(-1))){let{next:e}=t;if(e==RW&&(t.advance(),t.acceptToken(tz)),uh(e)){do t.advance();while(uh(t.next)||OC(t.next));t.acceptToken(tz)}}});function nz(t){let e=t.length;return(e==4||e==5||e==7||e==9)&&/^#[a-f\d]+$/i.test(t)?wW:-1}var BW=Or({"AtKeyword import charset namespace keyframes media supports font-feature-values":w.definitionKeyword,"from to selector scope MatchFlag":w.keyword,NamespaceName:w.namespace,KeyframeName:w.labelName,KeyframeRangeName:w.operatorKeyword,TagName:w.tagName,ClassName:w.className,PseudoClassName:w.constant(w.className),IdName:w.labelName,"FeatureName PropertyName":w.propertyName,AttributeName:w.attributeName,NumberLiteral:w.number,KeywordQuery:w.keyword,UnaryQueryOp:w.operatorKeyword,"CallTag ValueName FontName":w.atom,VariableName:w.variableName,Callee:w.operatorKeyword,Unit:w.unit,"UniversalSelector NestingSelector":w.definitionOperator,"MatchOp CompareOp":w.compareOperator,"ChildOp SiblingOp, LogicOp":w.logicOperator,BinOp:w.arithmeticOperator,Important:w.modifier,Comment:w.blockComment,ColorLiteral:w.color,"ParenthesizedContent StringLiteral":w.string,":":w.punctuation,PseudoOp:w.derefOperator,"; , |":w.separator,"( )":w.paren,"[ ]":w.squareBracket,"{ }":w.brace}),zW={__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:88,url:158,"url-prefix":158,domain:158,regexp:158},UW={__proto__:null,or:102,and:102,not:112,only:112,layer:212},XW={__proto__:null,selector:118,style:124,layer:208},qW={__proto__:null,"@import":204,"@media":216,"@charset":220,"@namespace":224,"@keyframes":230,"@supports":242,"@scope":246,"@font-feature-values":252},ZW={__proto__:null,to:249},lz=os.deserialize({version:14,states:"MrQYQdOOO$TQdOOP$[O`OOO%XQaO'#CfOOQP'#Ce'#CeO%`QdO'#CgO%eQ`O'#CgO%jQaO'#FrO&eQdO'#CkO'XQaO'#CcO'cQdO'#CnOOQP'#ES'#ESOOQP'#ER'#ERO'nQdO'#ETO'yQdO'#E[O'yQdO'#E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TXQ!haQ#TkQ#m!RQ$Q!cQ$n!zQ$t#RQ$w#VQ$z#YQ%g$PQ&`$vQ'^&[Q'a&aR(S']SoP!SQ#^pQ%O#[R&g%PZnPp!S#[%PQ$}#ZQ&e${R'd&dR$g!rQ'R%{R(['yR#OhR#QiR$s#QS&[$r&]R(Q'[V&Y$r&]'[R#YlQ#`rR%S#`QdOSpP!SU!kdp%PR%P#[Q%]#p[&l%]&r'i'r'x(bQ&r%aQ'i&mQ'r&wQ'x'OR(b(VQ$[!mQ$^!nQ$`!oV%v$[$^$`Q&Q$iR'X&QQ&v%iS'q&v(WR(W'rQ&n%]R'j&nQ&j%YR'h&jQ!RXR#l!RQ&d${R'c&dQ#]oS%Q#]%RR%R#^Q'z'RR(]'zQ$m!yR&U$mQ&]$rR'_&]Q']&[R(R']Q#XlR$y#XQ$P!cR%f$P_cOPdp!S#[%P^XOPdp!S#[%PQ!_^Q!`_Q#h}Q#i!OQ#j!PQ#k!QQ$u#SQ%Y#oR'g&iR%^#pQ!reQ!{g[$X!m!n!o$[$^$`Q${#Zh%[#p%]%a&m&r&w'O'i'r'x(V(bQ%`#uQ%z$cS&b${&dQ&h%WQ'b&cR'|'T]$Z!m!n!o$[$^$`Q!caU!yf!r$gQ#RjQ#x!bS#|!c$PQ$R!dQ%d#}Q%e$OQ%i$SS&O$i&QQ&T$lR'o&uQ#{!bW%s$W%m&z'uQ&t%bQ'w&}Q(U'mR(d(ZQ%u$WQ&y%mQ't&zR(Y'uR%k$SR%Z#oQqPR#n!SQ!zfQ$f!rR%}$g",nodeNames:"\u26A0 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 ColorLiteral CompareOp UnaryQuery UnaryQueryOp ParenthesizedQuery SelectorQuery selector ParenthesizedSelector StyleQuery style ParenthesedQuery CallQuery ArgList PropertyName , PropertyName UnaryQuery ParenthesedQuery BinaryQuery ParenthesedQuery ParenthesedQuery StyleFeature PropertyName StyleRange 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:176,nodeProps:[["isolate",-2,5,38,""],["openedBy",23,"(",30,"[",33,"{"],["closedBy",24,")",31,"]",34,"}"]],propSources:[BW],skippedNodes:[0,5,130],repeatNodeCount:17,tokenData:"IO~R!bOX%ZX^&R^p%Zpq&Rqr)ers)vst+jtu/wuv%Zvw0qwx1Sxy2qyz3Sz{3X{|3r|}8e}!O8v!O!P9e!P!Q9|!Q![:u![!];p!]!^<l!^!_<}!_!`=y!`!a>^!a!b%Z!b!c?_!c!k%Z!k!lAl!l!u%Z!u!vAl!v!}%Z!}#OA}#O#P%Z#P#QB`#Q#R/w#R#]%Z#]#^Bq#^#g%Z#g#hAl#h#o%Z#o#pGU#p#qGg#q#rHO#r#sHa#s#y%Z#y#z&R#z$f%Z$f$g&R$g#BY%Z#BY#BZ&R#BZ$IS%Z$IS$I_&R$I_$I|%Z$I|$JO&R$JO$JT%Z$JT$JU&R$JU$KV%Z$KV$KW&R$KW&FU%Z&FU&FV&R&FV;'S%Z;'S;=`Hx<%lO%Z`%^SOy%jz;'S%j;'S;=`%{<%lO%j`%oS!r`Oy%jz;'S%j;'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ers:[QW,$W,DW,NW,1,2,3,4,new is("m~RRYZ[z{a~~g~aO$c~~dP!P!Qg~lO$d~~",28,156)],topRules:{StyleSheet:[0,6],Styles:[1,129]},dynamicPrecedences:{97:1},specialized:[{term:172,get:(t,e)=>nz(t)<<1,external:nz},{term:150,get:t=>zW[t]||-1},{term:151,get:t=>UW[t]||-1},{term:4,get:t=>XW[t]||-1},{term:28,get:t=>qW[t]||-1},{term:149,get:t=>ZW[t]||-1}],tokenPrec:2433});var bC=null;function xC(){if(!bC&&typeof document=="object"&&document.body){let{style:t}=document.body,e=[],a=new Set;for(let n in t)n!="cssText"&&n!="cssFloat"&&typeof t[n]=="string"&&(/[A-Z]/.test(n)&&(n=n.replace(/[A-Z]/g,r=>"-"+r.toLowerCase())),a.has(n)||(e.push(n),a.add(n)));bC=e.sort().map(n=>({type:"property",label:n,apply:n+": "}))}return bC||[]}var uz=["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"].map(t=>({type:"class",label:t})),cz=["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"].map(t=>({type:"keyword",label:t})).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"].map(t=>({type:"constant",label:t}))),FW=["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"].map(t=>({type:"type",label:t})),GW=["@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(t=>({type:"keyword",label:t})),Mi=/^(\w[\w-]*|-\w[\w-]*|)$/,HW=/^-(-[\w-]*)?$/;function jW(t,e){var a;if((t.name=="("||t.type.isError)&&(t=t.parent||t),t.name!="ArgList")return!1;let n=(a=t.parent)===null||a===void 0?void 0:a.firstChild;return n?.name!="Callee"?!1:e.sliceString(n.from,n.to)=="var"}var fz=new oc,VW=["Declaration"];function YW(t){for(let e=t;;){if(e.type.isTop)return e;if(!(e=e.parent))return t}}function dz(t,e,a){if(e.to-e.from>4096){let n=fz.get(e);if(n)return n;let r=[],i=new Set,o=e.cursor(Ne.IncludeAnonymous);if(o.firstChild())do for(let s of dz(t,o.node,a))i.has(s.label)||(i.add(s.label),r.push(s));while(o.nextSibling());return fz.set(e,r),r}else{let n=[],r=new Set;return e.cursor().iterate(i=>{var o;if(a(i)&&i.matchContext(VW)&&((o=i.node.nextSibling)===null||o===void 0?void 0:o.name)==":"){let s=t.sliceString(i.from,i.to);r.has(s)||(r.add(s),n.push({label:s,type:"variable"}))}}),n}}var WW=t=>e=>{let{state:a,pos:n}=e,r=je(a).resolveInner(n,-1),i=r.type.isError&&r.from==r.to-1&&a.doc.sliceString(r.from,r.to)=="-";if(r.name=="PropertyName"||(i||r.name=="TagName")&&/^(Block|Styles)$/.test(r.resolve(r.to).name))return{from:r.from,options:xC(),validFor:Mi};if(r.name=="ValueName")return{from:r.from,options:cz,validFor:Mi};if(r.name=="PseudoClassName")return{from:r.from,options:uz,validFor:Mi};if(t(r)||(e.explicit||i)&&jW(r,a.doc))return{from:t(r)||i?r.from:n,options:dz(a.doc,YW(r),t),validFor:HW};if(r.name=="TagName"){for(let{parent:l}=r;l;l=l.parent)if(l.name=="Block")return{from:r.from,options:xC(),validFor:Mi};return{from:r.from,options:FW,validFor:Mi}}if(r.name=="AtKeyword")return{from:r.from,options:GW,validFor:Mi};if(!e.explicit)return null;let o=r.resolve(n),s=o.childBefore(n);return s&&s.name==":"&&o.name=="PseudoClassSelector"?{from:n,options:uz,validFor:Mi}:s&&s.name==":"&&o.name=="Declaration"||o.name=="ArgList"?{from:n,options:cz,validFor:Mi}:o.name=="Block"||o.name=="Styles"?{from:n,options:xC(),validFor:Mi}:null},KW=WW(t=>t.name=="VariableName"),ch=Wo.define({name:"css",parser:lz.configure({props:[Ii.add({Declaration:uc()}),Jr.add({"Block KeyframeList":nO})]}),languageData:{commentTokens:{block:{open:"/*",close:"*/"}},indentOnInput:/^\s*\}$/,wordChars:"-"}});function hz(){return new xr(ch,ch.data.of({autocomplete:KW}))}var JW=317,eK=318,pz=1,tK=2,aK=3,nK=4,rK=319,iK=321,oK=322,sK=5,lK=6,uK=0,yC=[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],mz=125,cK=59,vC=47,fK=42,dK=43,hK=45,pK=60,mK=44,gK=63,OK=46,bK=91,xK=new Oc({start:!1,shift(t,e){return e==sK||e==lK||e==iK?t:e==oK},strict:!1}),SK=new sa((t,e)=>{let{next:a}=t;(a==mz||a==-1||e.context)&&t.acceptToken(rK)},{contextual:!0,fallback:!0}),yK=new sa((t,e)=>{let{next:a}=t,n;yC.indexOf(a)>-1||a==vC&&((n=t.peek(1))==vC||n==fK)||a!=mz&&a!=cK&&a!=-1&&!e.context&&t.acceptToken(JW)},{contextual:!0}),vK=new sa((t,e)=>{t.next==bK&&!e.context&&t.acceptToken(eK)},{contextual:!0}),CK=new sa((t,e)=>{let{next:a}=t;if(a==dK||a==hK){if(t.advance(),a==t.next){t.advance();let n=!e.context&&e.canShift(pz);t.acceptToken(n?pz:tK)}}else a==gK&&t.peek(1)==OK&&(t.advance(),t.advance(),(t.next<48||t.next>57)&&t.acceptToken(aK))},{contextual:!0});function SC(t,e){return t>=65&&t<=90||t>=97&&t<=122||t==95||t>=192||!e&&t>=48&&t<=57}var wK=new sa((t,e)=>{if(t.next!=pK||!e.dialectEnabled(uK)||(t.advance(),t.next==vC))return;let a=0;for(;yC.indexOf(t.next)>-1;)t.advance(),a++;if(SC(t.next,!0)){for(t.advance(),a++;SC(t.next,!1);)t.advance(),a++;for(;yC.indexOf(t.next)>-1;)t.advance(),a++;if(t.next==mK)return;for(let n=0;;n++){if(n==7){if(!SC(t.next,!0))return;break}if(t.next!="extends".charCodeAt(n))break;t.advance(),a++}}t.acceptToken(nK,-a)}),kK=Or({"get set async static":w.modifier,"for while do if else switch try catch finally return throw break continue default case defer":w.controlKeyword,"in of await yield void typeof delete instanceof as satisfies":w.operatorKeyword,"let var const using function class extends":w.definitionKeyword,"import export from":w.moduleKeyword,"with debugger new":w.keyword,TemplateString:w.special(w.string),super:w.atom,BooleanLiteral:w.bool,this:w.self,null:w.null,Star:w.modifier,VariableName:w.variableName,"CallExpression/VariableName TaggedTemplateExpression/VariableName":w.function(w.variableName),VariableDefinition:w.definition(w.variableName),Label:w.labelName,PropertyName:w.propertyName,PrivatePropertyName:w.special(w.propertyName),"CallExpression/MemberExpression/PropertyName":w.function(w.propertyName),"FunctionDeclaration/VariableDefinition":w.function(w.definition(w.variableName)),"ClassDeclaration/VariableDefinition":w.definition(w.className),"NewExpression/VariableName":w.className,PropertyDefinition:w.definition(w.propertyName),PrivatePropertyDefinition:w.definition(w.special(w.propertyName)),UpdateOp:w.updateOperator,"LineComment Hashbang":w.lineComment,BlockComment:w.blockComment,Number:w.number,String:w.string,Escape:w.escape,ArithOp:w.arithmeticOperator,LogicOp:w.logicOperator,BitOp:w.bitwiseOperator,CompareOp:w.compareOperator,RegExp:w.regexp,Equals:w.definitionOperator,Arrow:w.function(w.punctuation),": Spread":w.punctuation,"( )":w.paren,"[ ]":w.squareBracket,"{ }":w.brace,"InterpolationStart InterpolationEnd":w.special(w.brace),".":w.derefOperator,", ;":w.separator,"@":w.meta,TypeName:w.typeName,TypeDefinition:w.definition(w.typeName),"type enum interface implements namespace module declare":w.definitionKeyword,"abstract global Privacy readonly override":w.modifier,"is keyof unique infer asserts":w.operatorKeyword,JSXAttributeValue:w.attributeValue,JSXText:w.content,"JSXStartTag JSXStartCloseTag JSXSelfCloseEndTag JSXEndTag":w.angleBracket,"JSXIdentifier JSXNameSpacedName":w.tagName,"JSXAttribute/JSXIdentifier JSXAttribute/JSXNameSpacedName":w.attributeName,"JSXBuiltin/JSXIdentifier":w.standard(w.tagName)}),LK={__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:237,private:237,protected:237,readonly:239,instanceof:258,satisfies:261,import:294,keyof:351,unique:355,infer:361,asserts:397,is:399,abstract:419,implements:421,type:423,let:426,var:428,using:431,interface:437,enum:441,namespace:447,module:449,declare:453,global:457,defer:473,for:478,of:487,while:490,with:494,do:498,if:502,else:504,switch:508,case:514,try:520,catch:524,finally:528,return:532,throw:536,break:540,continue:544,debugger:548},EK={__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:403},AK={__proto__:null,"<":193},gz=os.deserialize({version:14,states:"$GSQ%TQlOOO%[QlOOO'_QpOOP(lO`OOO*zQ!0MxO'#CiO+RO#tO'#CjO+aO&jO'#CjO+oO#@ItO'#DaO.QQlO'#DgO.bQlO'#DrO%[QlO'#DzO0fQlO'#ESOOQ!0Lf'#E['#E[O1PQ`O'#EXOOQO'#Ep'#EpOOQO'#Im'#ImO1XQ`O'#GtO1dQ`O'#EoO1iQ`O'#EoO3hQ!0MxO'#JsO6[Q!0MxO'#JtO6uQ`O'#F^O6zQ,UO'#FuOOQ!0Lf'#Fg'#FgO7VO7dO'#FgO9XQMhO'#F}O9`Q`O'#F|OOQ!0Lf'#Jt'#JtOOQ!0Lb'#Js'#JsO9eQ`O'#GxOOQ['#K`'#K`O9pQ`O'#IZO9uQ!0LrO'#I[OOQ['#Ja'#JaOOQ['#I`'#I`Q`QlOOQ`QlOOO9}Q!L^O'#DvO:UQlO'#EOO:]QlO'#EQO9kQ`O'#GtO:dQMhO'#CoO:rQ`O'#EnO:}Q`O'#EzO;hQMhO'#FfO;xQ`O'#GtOOQO'#Ka'#KaO;}Q`O'#KaO<]Q`O'#G|O<]Q`O'#G}O<]Q`O'#HPO9kQ`O'#HSO=SQ`O'#HVO>kQ`O'#CeO>{Q`O'#HdO?TQ`O'#HjO?TQ`O'#HlO`QlO'#HnO?TQ`O'#HpO?TQ`O'#HsO?YQ`O'#HyO?_Q!0LsO'#IPO%[QlO'#IRO?jQ!0LsO'#ITO?uQ!0LsO'#IVO9uQ!0LrO'#IXO@QQ!0MxO'#CiOASQpO'#DlQOQ`OOO%[QlO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^W#W#Z%h(U(_*Z+[.V/or#gZm#h#i#l%e(i(j(k+`.].^._.a3^3_7VS*^$x*cQ/v*_Q2W,qQ2m-WQ4b/rQ6s2fQ7u4cQ9Y6tT=n'X+^V#aW%h*ZU#`W%h*ZS(V#W(_U([#Z+[/oS-]'X+^T.Q(U.VV'_!e%i*[Q$lfR)y$qT)n$l)oR4X/WT*`$x*cT*i${*ZQ0y+hQ1i,XQ3a.hQ5v1kQ6R1sQ7Z3eQ8t6UQ9e7YQ:`8sQ:r9dQ;]:bQ;e:tQ;p;^R;s;fnqOXst!Z#d%m&r&t&u&w,u,z2^2aQ&l!VR,j&itmOXst!U!V!Z#d%m&i&r&t&u&w,u,z2^2aR,q&oT%lm,qR1m,ZR,i&gQ&U|S,P&V&WR1`,QR+u&PT&p!W&sT&q!W&sT2`,z2a",nodeNames:"\u26A0 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 VariableDefinition 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:381,context:xK,nodeProps:[["isolate",-8,5,6,14,37,39,51,53,55,""],["group",-26,9,17,19,68,208,212,216,217,219,222,225,235,238,244,246,248,250,253,259,265,267,269,271,273,275,276,"Statement",-34,13,14,32,35,36,42,51,54,55,57,62,70,72,76,80,82,84,85,110,111,121,122,137,140,142,143,144,145,146,148,149,168,170,172,"Expression",-23,31,33,37,41,43,45,174,176,178,179,181,182,183,185,186,187,189,190,191,202,204,206,207,"Type",-3,88,103,109,"ClassItem"],["openedBy",23,"<",38,"InterpolationStart",56,"[",60,"{",73,"(",161,"JSXStartCloseT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]||-1},{term:344,get:t=>EK[t]||-1},{term:95,get:t=>AK[t]||-1}],tokenPrec:15205});var Sz=[Xa("function ${name}(${params}) {\n ${}\n}",{label:"function",detail:"definition",type:"keyword"}),Xa("for (let ${index} = 0; ${index} < ${bound}; ${index}++) {\n ${}\n}",{label:"for",detail:"loop",type:"keyword"}),Xa("for (let ${name} of ${collection}) {\n ${}\n}",{label:"for",detail:"of loop",type:"keyword"}),Xa("do {\n ${}\n} while (${})",{label:"do",detail:"loop",type:"keyword"}),Xa("while (${}) {\n ${}\n}",{label:"while",detail:"loop",type:"keyword"}),Xa(`try {
48
+ \${}
49
+ } catch (\${error}) {
50
+ \${}
51
+ }`,{label:"try",detail:"/ catch block",type:"keyword"}),Xa("if (${}) {\n ${}\n}",{label:"if",detail:"block",type:"keyword"}),Xa(`if (\${}) {
52
+ \${}
53
+ } else {
54
+ \${}
55
+ }`,{label:"if",detail:"/ else block",type:"keyword"}),Xa(`class \${name} {
56
+ constructor(\${params}) {
57
+ \${}
58
+ }
59
+ }`,{label:"class",detail:"definition",type:"keyword"}),Xa('import {${names}} from "${module}"\n${}',{label:"import",detail:"named",type:"keyword"}),Xa('import ${name} from "${module}"\n${}',{label:"import",detail:"default",type:"keyword"})],_K=Sz.concat([Xa("interface ${name} {\n ${}\n}",{label:"interface",detail:"definition",type:"keyword"}),Xa("type ${name} = ${type}",{label:"type",detail:"definition",type:"keyword"}),Xa("enum ${name} {\n ${}\n}",{label:"enum",detail:"definition",type:"keyword"})]),Oz=new oc,yz=new Set(["Script","Block","FunctionExpression","FunctionDeclaration","ArrowFunction","MethodDeclaration","ForStatement"]);function fh(t){return(e,a)=>{let n=e.node.getChild("VariableDefinition");return n&&a(n,t),!0}}var RK=["FunctionDeclaration"],TK={FunctionDeclaration:fh("function"),ClassDeclaration:fh("class"),ClassExpression:()=>!0,EnumDeclaration:fh("constant"),TypeAliasDeclaration:fh("type"),NamespaceDeclaration:fh("namespace"),VariableDefinition(t,e){t.matchContext(RK)||e(t,"variable")},TypeDefinition(t,e){e(t,"type")},__proto__:null};function vz(t,e){let a=Oz.get(e);if(a)return a;let n=[],r=!0;function i(o,s){let l=t.sliceString(o.from,o.to);n.push({label:l,type:s})}return e.cursor(Ne.IncludeAnonymous).iterate(o=>{if(r)r=!1;else if(o.name){let s=TK[o.name];if(s&&s(o,i)||yz.has(o.name))return!1}else if(o.to-o.from>8192){for(let s of vz(t,o.node))n.push(s);return!1}}),Oz.set(e,n),n}var bz=/^[\w$\xa1-\uffff][\w$\d\xa1-\uffff]*$/,Cz=["TemplateString","String","RegExp","LineComment","BlockComment","VariableDefinition","TypeDefinition","Label","PropertyDefinition","PropertyName","PrivatePropertyDefinition","PrivatePropertyName","JSXText","JSXAttributeValue","JSXOpenTag","JSXCloseTag","JSXSelfClosingTag",".","?."];function IK(t){let e=je(t.state).resolveInner(t.pos,-1);if(Cz.indexOf(e.name)>-1)return null;let a=e.name=="VariableName"||e.to-e.from<20&&bz.test(t.state.sliceDoc(e.from,e.to));if(!a&&!t.explicit)return null;let n=[];for(let r=e;r;r=r.parent)yz.has(r.name)&&(n=n.concat(vz(t.state.doc,r)));return{options:n,from:a?e.from:t.pos,validFor:bz}}var Cr=Wo.define({name:"javascript",parser:gz.configure({props:[Ii.add({IfStatement:uc({except:/^\s*({|else\b)/}),TryStatement:uc({except:/^\s*({|catch\b|finally\b)/}),LabeledStatement:LQ,SwitchBody:t=>{let e=t.textAfter,a=/^\s*\}/.test(e),n=/^\s*(case|default)\b/.test(e);return t.baseIndent+(a?0:n?1:2)*t.unit},Block:wQ({closing:"}"}),ArrowFunction:t=>t.baseIndent+t.unit,"TemplateString BlockComment":()=>null,"Statement Property":uc({except:/^\s*{/}),JSXElement(t){let e=/^\s*<\//.test(t.textAfter);return t.lineIndent(t.node.from)+(e?0:t.unit)},JSXEscape(t){let e=/\s*\}/.test(t.textAfter);return t.lineIndent(t.node.from)+(e?0:t.unit)},"JSXOpenTag JSXSelfClosingTag"(t){return t.column(t.node.from)+t.unit}}),Jr.add({"Block ClassBody SwitchBody EnumBody ObjectExpression ArrayExpression ObjectType":nO,BlockComment(t){return{from:t.from+2,to:t.to-2}},JSXElement(t){let e=t.firstChild;if(!e||e.name=="JSXSelfClosingTag")return null;let a=t.lastChild;return{from:e.to,to:a.type.isError?t.to:a.from}},"JSXSelfClosingTag JSXOpenTag"(t){var e;let a=(e=t.firstChild)===null||e===void 0?void 0:e.nextSibling,n=t.lastChild;return!a||a.type.isError?null:{from:a.to,to:n.type.isError?t.to:n.from}}})]}),languageData:{closeBrackets:{brackets:["(","[","{","'",'"',"`"]},commentTokens:{line:"//",block:{open:"/*",close:"*/"}},indentOnInput:/^\s*(?:case |default:|\{|\}|<\/)$/,wordChars:"$"}}),wz={test:t=>/^JSX/.test(t.name),facet:Hd({commentTokens:{block:{open:"{/*",close:"*/}"}}})},CC=Cr.configure({dialect:"ts"},"typescript"),wC=Cr.configure({dialect:"jsx",props:[tO.add(t=>t.isTop?[wz]:void 0)]}),kC=Cr.configure({dialect:"jsx ts",props:[tO.add(t=>t.isTop?[wz]:void 0)]},"typescript"),kz=t=>({label:t,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(kz),PK=Lz.concat(["declare","implements","private","protected","public"].map(kz));function Ez(t={}){let e=t.jsx?t.typescript?kC:wC:t.typescript?CC:Cr,a=t.typescript?_K.concat(PK):Sz.concat(Lz);return new xr(e,[Cr.data.of({autocomplete:H$(Cz,G$(a))}),Cr.data.of({autocomplete:IK}),t.jsx?NK:[]])}function MK(t){for(;;){if(t.name=="JSXOpenTag"||t.name=="JSXSelfClosingTag"||t.name=="JSXFragmentTag")return t;if(t.name=="JSXEscape"||!t.parent)return null;t=t.parent}}function xz(t,e,a=t.length){for(let n=e?.firstChild;n;n=n.nextSibling)if(n.name=="JSXIdentifier"||n.name=="JSXBuiltin"||n.name=="JSXNamespacedName"||n.name=="JSXMemberExpression")return t.sliceString(n.from,Math.min(n.to,a));return""}var DK=typeof navigator=="object"&&/Android\b/.test(navigator.userAgent),NK=J.inputHandler.of((t,e,a,n,r)=>{if((DK?t.composing:t.compositionStarted)||t.state.readOnly||e!=a||n!=">"&&n!="/"||!Cr.isActiveAt(t.state,e,-1))return!1;let i=r(),{state:o}=i,s=o.changeByRange(l=>{var u;let{head:c}=l,f=je(o).resolveInner(c-1,-1),d;if(f.name=="JSXStartTag"&&(f=f.parent),!(o.doc.sliceString(c-1,c)!=n||f.name=="JSXAttributeValue"&&f.to>c)){if(n==">"&&f.name=="JSXFragmentTag")return{range:l,changes:{from:c,insert:"</>"}};if(n=="/"&&f.name=="JSXStartCloseTag"){let h=f.parent,p=h.parent;if(p&&h.from==c-2&&((d=xz(o.doc,p.firstChild,c))||((u=p.firstChild)===null||u===void 0?void 0:u.name)=="JSXFragmentTag")){let g=`${d}>`;return{range:I.cursor(c+g.length,-1),changes:{from:c,insert:g}}}}else if(n==">"){let h=MK(f);if(h&&h.name=="JSXOpenTag"&&!/^\/?>|^<\//.test(o.doc.sliceString(c,c+2))&&(d=xz(o.doc,h,c)))return{range:l,changes:{from:c,insert:`</${d}>`}}}}return{range:l}});return s.changes.empty?!1:(t.dispatch([i,o.update(s,{userEvent:"input.complete",scrollIntoView:!0})]),!0)});var dh=["_blank","_self","_top","_parent"],LC=["ascii","utf-8","utf-16","latin1","latin1"],EC=["get","post","put","delete"],AC=["application/x-www-form-urlencoded","multipart/form-data","text/plain"],Cn=["true","false"],ue={},QK={a:{attrs:{href:null,ping:null,type:null,media:null,target:dh,hreflang:null}},abbr:ue,address:ue,area:{attrs:{alt:null,coords:null,href:null,target:null,ping:null,media:null,hreflang:null,type:null,shape:["default","rect","circle","poly"]}},article:ue,aside:ue,audio:{attrs:{src:null,mediagroup:null,crossorigin:["anonymous","use-credentials"],preload:["none","metadata","auto"],autoplay:["autoplay"],loop:["loop"],controls:["controls"]}},b:ue,base:{attrs:{href:null,target:dh}},bdi:ue,bdo:ue,blockquote:{attrs:{cite:null}},body:ue,br:ue,button:{attrs:{form:null,formaction:null,name:null,value:null,autofocus:["autofocus"],disabled:["autofocus"],formenctype:AC,formmethod:EC,formnovalidate:["novalidate"],formtarget:dh,type:["submit","reset","button"]}},canvas:{attrs:{width:null,height:null}},caption:ue,center:ue,cite:ue,code:ue,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:ue,del:{attrs:{cite:null,datetime:null}},details:{attrs:{open:["open"]}},dfn:ue,div:ue,dl:ue,dt:ue,em:ue,embed:{attrs:{src:null,type:null,width:null,height:null}},eventsource:{attrs:{src:null}},fieldset:{attrs:{disabled:["disabled"],form:null,name:null}},figcaption:ue,figure:ue,footer:ue,form:{attrs:{action:null,name:null,"accept-charset":LC,autocomplete:["on","off"],enctype:AC,method:EC,novalidate:["novalidate"],target:dh}},h1:ue,h2:ue,h3:ue,h4:ue,h5:ue,h6:ue,head:{children:["title","base","link","style","meta","script","noscript","command"]},header:ue,hgroup:ue,hr:ue,html:{attrs:{manifest:null}},i:ue,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:AC,formmethod:EC,formnovalidate:["novalidate"],formtarget:dh,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:ue,keygen:{attrs:{challenge:null,form:null,name:null,autofocus:["autofocus"],disabled:["disabled"],keytype:["RSA"]}},label:{attrs:{for:null,form:null}},legend:ue,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:ue,menu:{attrs:{label:null,type:["list","context","toolbar"]}},meta:{attrs:{content:null,charset:LC,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:ue,noscript:ue,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:ue,param:{attrs:{name:null,value:null}},pre:ue,progress:{attrs:{value:null,max:null}},q:{attrs:{cite:null}},rp:ue,rt:ue,ruby:ue,samp:ue,script:{attrs:{type:["text/javascript"],src:null,async:["async"],defer:["defer"],charset:LC}},section:ue,select:{attrs:{form:null,name:null,size:null,autofocus:["autofocus"],disabled:["disabled"],multiple:["multiple"]}},slot:{attrs:{name:null}},small:ue,source:{attrs:{src:null,type:null,media:null}},span:ue,strong:ue,style:{attrs:{type:["text/css"],media:null,scoped:null}},sub:ue,summary:ue,sup:ue,table:ue,tbody:ue,td:{attrs:{colspan:null,rowspan:null,headers:null}},template:ue,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:ue,th:{attrs:{colspan:null,rowspan:null,headers:null,scope:["row","col","rowgroup","colgroup"]}},thead:ue,time:{attrs:{datetime:null}},title:ue,tr:ue,track:{attrs:{src:null,label:null,default:null,kind:["subtitles","captions","descriptions","chapters","metadata"],srclang:null}},ul:{children:["li","script","template","ul","ol"]},var:ue,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:ue},Tz={accesskey:null,class:null,contenteditable:Cn,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:Cn,autocorrect:Cn,autocapitalize:Cn,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":Cn,"aria-autocomplete":["inline","list","both","none"],"aria-busy":Cn,"aria-checked":["true","false","mixed","undefined"],"aria-controls":null,"aria-describedby":null,"aria-disabled":Cn,"aria-dropeffect":null,"aria-expanded":["true","false","undefined"],"aria-flowto":null,"aria-grabbed":["true","false","undefined"],"aria-haspopup":Cn,"aria-hidden":Cn,"aria-invalid":["true","false","grammar","spelling"],"aria-label":null,"aria-labelledby":null,"aria-level":null,"aria-live":["off","polite","assertive"],"aria-multiline":Cn,"aria-multiselectable":Cn,"aria-owns":null,"aria-posinset":null,"aria-pressed":["true","false","mixed","undefined"],"aria-readonly":Cn,"aria-relevant":null,"aria-required":Cn,"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},Iz="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(t=>"on"+t);for(let t of Iz)Tz[t]=null;var ml=class{constructor(e,a){this.tags={...QK,...e},this.globalAttrs={...Tz,...a},this.allTags=Object.keys(this.tags),this.globalAttrNames=Object.keys(this.globalAttrs)}};ml.default=new ml;function gl(t,e,a=t.length){if(!e)return"";let n=e.firstChild,r=n&&n.getChild("TagName");return r?t.sliceString(r.from,Math.min(r.to,a)):""}function bc(t,e=!1){for(;t;t=t.parent)if(t.name=="Element")if(e)e=!1;else return t;return null}function Pz(t,e,a){let n=a.tags[gl(t,bc(e))];return n?.children||a.allTags}function _C(t,e){let a=[];for(let n=bc(e);n&&!n.type.isTop;n=bc(n.parent)){let r=gl(t,n);if(r&&n.lastChild.name=="CloseTag")break;r&&a.indexOf(r)<0&&(e.name=="EndTag"||e.from>=n.firstChild.to)&&a.push(r)}return a}var Mz=/^[:\-\.\w\u00b7-\uffff]*$/;function Az(t,e,a,n,r){let i=/\s*>/.test(t.sliceDoc(r,r+5))?"":">",o=bc(a,a.name=="StartTag"||a.name=="TagName");return{from:n,to:r,options:Pz(t.doc,o,e).map(s=>({label:s,type:"type"})).concat(_C(t.doc,a).map((s,l)=>({label:"/"+s,apply:"/"+s+i,type:"type",boost:99-l}))),validFor:/^\/?[:\-\.\w\u00b7-\uffff]*$/}}function _z(t,e,a,n){let r=/\s*>/.test(t.sliceDoc(n,n+5))?"":">";return{from:a,to:n,options:_C(t.doc,e).map((i,o)=>({label:i,apply:i+r,type:"type",boost:99-o})),validFor:Mz}}function $K(t,e,a,n){let r=[],i=0;for(let o of Pz(t.doc,a,e))r.push({label:"<"+o,type:"type"});for(let o of _C(t.doc,a))r.push({label:"</"+o+">",type:"type",boost:99-i++});return{from:n,to:n,options:r,validFor:/^<\/?[:\-\.\w\u00b7-\uffff]*$/}}function BK(t,e,a,n,r){let i=bc(a),o=i?e.tags[gl(t.doc,i)]:null,s=o&&o.attrs?Object.keys(o.attrs):[],l=o&&o.globalAttrs===!1?s:s.length?s.concat(e.globalAttrNames):e.globalAttrNames;return{from:n,to:r,options:l.map(u=>({label:u,type:"property"})),validFor:Mz}}function zK(t,e,a,n,r){var i;let o=(i=a.parent)===null||i===void 0?void 0:i.getChild("AttributeName"),s=[],l;if(o){let u=t.sliceDoc(o.from,o.to),c=e.globalAttrs[u];if(!c){let f=bc(a),d=f?e.tags[gl(t.doc,f)]:null;c=d?.attrs&&d.attrs[u]}if(c){let f=t.sliceDoc(n,r).toLowerCase(),d='"',h='"';/^['"]/.test(f)?(l=f[0]=='"'?/^[^"]*$/:/^[^']*$/,d="",h=t.sliceDoc(r,r+1)==f[0]?"":f[0],f=f.slice(1),n++):l=/^[^\s<>='"]*$/;for(let p of c)s.push({label:p,apply:d+p+h,type:"constant"})}}return{from:n,to:r,options:s,validFor:l}}function Dz(t,e){let{state:a,pos:n}=e,r=je(a).resolveInner(n,-1),i=r.resolve(n);for(let o=n,s;i==r&&(s=r.childBefore(o));){let l=s.lastChild;if(!l||!l.type.isError||l.from<l.to)break;i=r=s,o=l.from}return r.name=="TagName"?r.parent&&/CloseTag$/.test(r.parent.name)?_z(a,r,r.from,n):Az(a,t,r,r.from,n):r.name=="StartTag"||r.name=="IncompleteTag"?Az(a,t,r,n,n):r.name=="StartCloseTag"||r.name=="IncompleteCloseTag"?_z(a,r,n,n):r.name=="OpenTag"||r.name=="SelfClosingTag"||r.name=="AttributeName"?BK(a,t,r,r.name=="AttributeName"?r.from:n,n):r.name=="Is"||r.name=="AttributeValue"||r.name=="UnquotedAttributeValue"?zK(a,t,r,r.name=="Is"?n:r.from,n):e.explicit&&(i.name=="Element"||i.name=="Text"||i.name=="Document")?$K(a,t,r,n):null}function Nz(t){return Dz(ml.default,t)}function UK(t){let{extraTags:e,extraGlobalAttributes:a}=t,n=a||e?new ml(e,a):ml.default;return r=>Dz(n,r)}var XK=Cr.parser.configure({top:"SingleExpression"}),Qz=[{tag:"script",attrs:t=>t.type=="text/typescript"||t.lang=="ts",parser:CC.parser},{tag:"script",attrs:t=>t.type=="text/babel"||t.type=="text/jsx",parser:wC.parser},{tag:"script",attrs:t=>t.type=="text/typescript-jsx",parser:kC.parser},{tag:"script",attrs(t){return/^(importmap|speculationrules|application\/(.+\+)?json)$/i.test(t.type)},parser:XK},{tag:"script",attrs(t){return!t.type||/^(?:text|application)\/(?:x-)?(?:java|ecma)script$|^module$|^$/i.test(t.type)},parser:Cr.parser},{tag:"style",attrs(t){return(!t.lang||t.lang=="css")&&(!t.type||/^(text\/)?(x-)?(stylesheet|css)$/i.test(t.type))},parser:ch.parser}],$z=[{name:"style",parser:ch.parser.configure({top:"Styles"})}].concat(Iz.map(t=>({name:t,parser:Cr.parser}))),Bz=Wo.define({name:"html",parser:JB.configure({props:[Ii.add({Element(t){let e=/^(\s*)(<\/)?/.exec(t.textAfter);return t.node.to<=t.pos+e[0].length?t.continue():t.lineIndent(t.node.from)+(e[2]?0:t.unit)},"OpenTag CloseTag SelfClosingTag"(t){return t.column(t.node.from)+t.unit},Document(t){if(t.pos+/\s*/.exec(t.textAfter)[0].length<t.node.to)return t.continue();let e=null,a;for(let n=t.node;;){let r=n.lastChild;if(!r||r.name!="Element"||r.to!=n.to)break;e=n=r}return e&&!((a=e.lastChild)&&(a.name=="CloseTag"||a.name=="SelfClosingTag"))?t.lineIndent(e.from)+t.unit:null}}),Jr.add({Element(t){let e=t.firstChild,a=t.lastChild;return!e||e.name!="OpenTag"?null:{from:e.to,to:a.name=="CloseTag"?a.from:t.to}}}),h1.add({"OpenTag CloseTag":t=>t.getChild("TagName")})]}),languageData:{commentTokens:{block:{open:"<!--",close:"-->"}},indentOnInput:/^\s*<\/\w+\W$/,wordChars:"-_"}}),MO=Bz.configure({wrap:gC(Qz,$z)});function zz(t={}){let e="",a;t.matchClosingTags===!1&&(e="noMatch"),t.selfClosingTags===!0&&(e=(e?e+" ":"")+"selfClosing"),(t.nestedLanguages&&t.nestedLanguages.length||t.nestedAttributes&&t.nestedAttributes.length)&&(a=gC((t.nestedLanguages||[]).concat(Qz),(t.nestedAttributes||[]).concat($z)));let n=a?Bz.configure({wrap:a,dialect:e}):e?MO.configure({dialect:e}):MO;return new xr(n,[MO.data.of({autocomplete:UK(t)}),t.autoCloseTags!==!1?ZK:[],Ez().support,hz().support])}var Rz=new Set("area base br col command embed frame hr img input keygen link meta param source track wbr menuitem".split(" "));function qK(t,e,a){for(var n;;){if(((n=e.lastChild)===null||n===void 0?void 0:n.name)!="CloseTag")return!1;let r=e.parent;if(!r||gl(t,r)!=a)return!0;e=r}}var ZK=J.inputHandler.of((t,e,a,n,r)=>{if(t.composing||t.state.readOnly||e!=a||n!=">"&&n!="/"||!MO.isActiveAt(t.state,e,-1))return!1;let i=r(),{state:o}=i,s=o.changeByRange(l=>{var u;let c=o.doc.sliceString(l.from-1,l.to)==n,{head:f}=l,d=je(o).resolveInner(f,-1),h;if(c&&n==">"&&d.name=="EndTag"){let p=d.parent;if((h=gl(o.doc,p.parent,f))&&!Rz.has(h)&&!qK(o.doc,p.parent,h)){let g=f+(o.doc.sliceString(f,f+1)===">"?1:0),b=`</${h}>`;return{range:l,changes:{from:f,to:g,insert:b}}}}else if(c&&n=="/"&&d.name=="IncompleteCloseTag"){let p=d.parent;if(d.from==f-2&&((u=p.lastChild)===null||u===void 0?void 0:u.name)!="CloseTag"&&(h=gl(o.doc,p,f))&&!Rz.has(h)){let g=f+(o.doc.sliceString(f,f+1)===">"?1:0),b=`${h}>`;return{range:I.cursor(f+b.length,-1),changes:{from:f,to:g,insert:b}}}}return{range:l}});return s.changes.empty?!1:(t.dispatch([i,o.update(s,{userEvent:"input.complete",scrollIntoView:!0})]),!0)});var qz=Hd({commentTokens:{block:{open:"<!--",close:"-->"}}}),Zz=new fe,Fz=CB.configure({props:[Jr.add(t=>!t.is("Block")||t.is("Document")||IC(t)!=null||FK(t)?void 0:(e,a)=>({from:a.doc.lineAt(e.from).to,to:e.to})),Zz.add(IC),Ii.add({Document:()=>null}),Yo.add({Document:qz})]});function IC(t){let e=/^(?:ATX|Setext)Heading(\d)$/.exec(t.name);return e?+e[1]:void 0}function FK(t){return t.name=="OrderedList"||t.name=="BulletList"}function GK(t,e){let a=t;for(;;){let n=a.nextSibling,r;if(!n||(r=IC(n.type))!=null&&r<=e)break;a=n}return a.to}var HK=f1.of((t,e,a)=>{for(let n=je(t).resolveInner(a,-1);n&&!(n.from<e);n=n.parent){let r=n.type.prop(Zz);if(r==null)continue;let i=GK(n,r);if(i>a)return{from:a,to:i}}return null});function PC(t){return new Ua(qz,t,[],"markdown")}var jK=PC(Fz),VK=Fz.configure([LB,_B,AB,RB,{props:[Jr.add({Table:(t,e)=>({from:e.doc.lineAt(t.from).to,to:t.to})})]}]),DO=PC(VK);function YK(t,e){return a=>{if(a&&t){let n=null;if(a=/\S*/.exec(a)[0],typeof t=="function"?n=t(a):n=Gd.matchLanguageName(t,a,!0),n instanceof Gd)return n.support?n.support.language.parser:Zd.getSkippingParser(n.load());if(n)return n.parser}return e?e.parser:null}}var hh=class{constructor(e,a,n,r,i,o,s){this.node=e,this.from=a,this.to=n,this.spaceBefore=r,this.spaceAfter=i,this.type=o,this.item=s}blank(e,a=!0){let n=this.spaceBefore+(this.node.name=="Blockquote"?">":"");if(e!=null){for(;n.length<e;)n+=" ";return n}else{for(let r=this.to-this.from-n.length-this.spaceAfter.length;r>0;r--)n+=" ";return n+(a?this.spaceAfter:"")}}marker(e,a){let n=this.node.name=="OrderedList"?String(+Hz(this.item,e)[2]+a):"";return this.spaceBefore+n+this.type+this.spaceAfter}};function Gz(t,e){let a=[],n=[];for(let r=t;r;r=r.parent){if(r.name=="FencedCode")return n;(r.name=="ListItem"||r.name=="Blockquote")&&a.push(r)}for(let r=a.length-1;r>=0;r--){let i=a[r],o,s=e.lineAt(i.from),l=i.from-s.from;if(i.name=="Blockquote"&&(o=/^ *>( ?)/.exec(s.text.slice(l))))n.push(new hh(i,l,l+o[0].length,"",o[1],">",null));else if(i.name=="ListItem"&&i.parent.name=="OrderedList"&&(o=/^( *)\d+([.)])( *)/.exec(s.text.slice(l)))){let u=o[3],c=o[0].length;u.length>=4&&(u=u.slice(0,u.length-4),c-=4),n.push(new hh(i.parent,l,l+c,o[1],u,o[2],i))}else if(i.name=="ListItem"&&i.parent.name=="BulletList"&&(o=/^( *)([-+*])( {1,4}\[[ xX]\])?( +)/.exec(s.text.slice(l)))){let u=o[4],c=o[0].length;u.length>4&&(u=u.slice(0,u.length-4),c-=4);let f=o[2];o[3]&&(f+=o[3].replace(/[xX]/," ")),n.push(new hh(i.parent,l,l+c,o[1],u,f,i))}}return n}function Hz(t,e){return/^(\s*)(\d+)(?=[.)])/.exec(e.sliceString(t.from,t.from+10))}function RC(t,e,a,n=0){for(let r=-1,i=t;;){if(i.name=="ListItem"){let s=Hz(i,e),l=+s[2];if(r>=0){if(l!=r+1)return;a.push({from:i.from+s[1].length,to:i.from+s[0].length,insert:String(r+2+n)})}r=l}let o=i.nextSibling;if(!o)break;i=o}}function MC(t,e){let a=/^[ \t]*/.exec(t)[0].length;if(!a||e.facet(Jo)!=" ")return t;let n=$a(t,4,a),r="";for(let i=n;i>0;)i>=4?(r+=" ",i-=4):(r+=" ",i--);return r+t.slice(a)}var WK=(t={})=>({state:e,dispatch:a})=>{let n=je(e),{doc:r}=e,i=null,o=e.changeByRange(s=>{if(!s.empty||!DO.isActiveAt(e,s.from,-1)&&!DO.isActiveAt(e,s.from,1))return i={range:s};let l=s.from,u=r.lineAt(l),c=Gz(n.resolveInner(l,-1),r);for(;c.length&&c[c.length-1].from>l-u.from;)c.pop();if(!c.length)return i={range:s};let f=c[c.length-1];if(f.to-f.spaceAfter.length>l-u.from)return i={range:s};let d=l>=f.to-f.spaceAfter.length&&!/\S/.test(u.text.slice(f.to));if(f.item&&d){if(f.item.from<u.from&&!/^[\s>]*$/.test(u.text.slice(0,f.to)))return i={range:s};let m=f.node.firstChild,O=f.node.getChild("ListItem","ListItem");if(m.to>=l||O&&O.to<l||u.from>0&&!/[^\s>]/.test(r.lineAt(u.from-1).text)||t.nonTightLists===!1){let x=c.length>1?c[c.length-2]:null,S,y="";x&&x.item?(S=u.from+x.from,y=x.marker(r,1)):S=u.from+(x?x.to:0);let C=[{from:S,to:l,insert:y}];return f.node.name=="OrderedList"&&RC(f.item,r,C,-2),x&&x.node.name=="OrderedList"&&RC(x.item,r,C),{range:I.cursor(S+y.length),changes:C}}else{let x=Xz(c,e,u);return{range:I.cursor(l+x.length+1),changes:{from:u.from,insert:x+e.lineBreak}}}}if(f.node.name=="Blockquote"&&d&&u.from){let m=r.lineAt(u.from-1),O=/>\s*$/.exec(m.text);if(O&&O.index==f.from){let x=e.changes([{from:m.from+O.index,to:m.to},{from:u.from+f.from,to:u.to}]);return{range:s.map(x),changes:x}}}let h=[];f.node.name=="OrderedList"&&RC(f.item,r,h);let p=f.item&&f.item.from<u.from,g="";if(!p||/^[\s\d.)\-+*>]*/.exec(u.text)[0].length>=f.to)for(let m=0,O=c.length-1;m<=O;m++)g+=m==O&&!p?c[m].marker(r,1):c[m].blank(m<O?$a(u.text,4,c[m+1].from)-g.length:null);let b=l;for(;b>u.from&&/\s/.test(u.text.charAt(b-u.from-1));)b--;return g=MC(g,e),JK(f.node,e.doc)&&(g=Xz(c,e,u)+e.lineBreak+g),h.push({from:b,to:l,insert:e.lineBreak+g}),{range:I.cursor(b+g.length+1),changes:h}});return i?!1:(a(e.update(o,{scrollIntoView:!0,userEvent:"input"})),!0)},KK=WK();function Uz(t){return t.name=="QuoteMark"||t.name=="ListMark"}function JK(t,e){if(t.name!="OrderedList"&&t.name!="BulletList")return!1;let a=t.firstChild,n=t.getChild("ListItem","ListItem");if(!n)return!1;let r=e.lineAt(a.to),i=e.lineAt(n.from),o=/^[\s>]*$/.test(r.text);return r.number+(o?0:1)<i.number}function Xz(t,e,a){let n="";for(let r=0,i=t.length-2;r<=i;r++)n+=t[r].blank(r<i?$a(a.text,4,t[r+1].from)-n.length:null,r<i);return MC(n,e)}function eJ(t,e){let a=t.resolveInner(e,-1),n=e;Uz(a)&&(n=a.from,a=a.parent);for(let r;r=a.childBefore(n);)if(Uz(r))n=r.from;else if(r.name=="OrderedList"||r.name=="BulletList")a=r.lastChild,n=a.to;else break;return a}var tJ=({state:t,dispatch:e})=>{let a=je(t),n=null,r=t.changeByRange(i=>{let o=i.from,{doc:s}=t;if(i.empty&&DO.isActiveAt(t,i.from)){let l=s.lineAt(o),u=Gz(eJ(a,o),s);if(u.length){let c=u[u.length-1],f=c.to-c.spaceAfter.length+(c.spaceAfter?1:0);if(o-l.from>f&&!/\S/.test(l.text.slice(f,o-l.from)))return{range:I.cursor(l.from+f),changes:{from:l.from+f,to:o}};if(o-l.from==f&&(c.item&&l.from<=c.item.from||/^[\s>]*$/.test(l.text.slice(0,c.to)))){let d=l.from+c.from;if(c.item&&c.node.from<c.item.from&&/\S/.test(l.text.slice(c.from,c.to))){let h=c.blank($a(l.text,4,c.to)-$a(l.text,4,c.from));return d==l.from&&(h=MC(h,t)),{range:I.cursor(d+h.length),changes:{from:d,to:l.from+c.to,insert:h}}}if(d<o)return{range:I.cursor(d),changes:{from:d,to:o}}}}}return n={range:i}});return n?!1:(e(t.update(r,{scrollIntoView:!0,userEvent:"delete"})),!0)},DC=[{key:"Enter",run:KK},{key:"Backspace",run:tJ}],jz=zz({matchClosingTags:!1});function Vz(t={}){let{codeLanguages:e,defaultCodeLanguage:a,addKeymap:n=!0,base:{parser:r}=jK,completeHTMLTags:i=!0,pasteURLAsLink:o=!0,htmlTagLanguage:s=jz}=t;if(!(r instanceof oh))throw new RangeError("Base parser provided to `markdown` should be a Markdown parser");let l=t.extensions?[t.extensions]:[],u=[s.support,HK],c;o&&u.push(iJ),a instanceof xr?(u.push(a.support),c=a.language):a&&(c=a);let f=e||c?YK(e,c):void 0;l.push(wB({codeParser:f,htmlParser:s.language.parser})),n&&u.push(Gn.high(il.of(DC)));let d=PC(r.configure(l));return i&&u.push(d.data.of({autocomplete:aJ})),new xr(d,u)}function aJ(t){let{state:e,pos:a}=t,n=/<[:\-\.\w\u00b7-\uffff]*$/.exec(e.sliceDoc(a-25,a));if(!n)return null;let r=je(e).resolveInner(a,-1);for(;r&&!r.type.isTop;){if(r.name=="CodeBlock"||r.name=="FencedCode"||r.name=="ProcessingInstructionBlock"||r.name=="CommentBlock"||r.name=="Link"||r.name=="Image")return null;r=r.parent}return{from:a-n[0].length,to:a,options:nJ(),validFor:/^<[:\-\.\w\u00b7-\uffff]*$/}}var TC=null;function nJ(){if(TC)return TC;let t=Nz(new CO(et.create({extensions:jz}),0,!0));return TC=t?t.options:[]}var rJ=/code|horizontalrule|html|link|comment|processing|escape|entity|image|mark|url/i,iJ=J.domEventHandlers({paste:(t,e)=>{var a;let{main:n}=e.state.selection;if(n.empty)return!1;let r=(a=t.clipboardData)===null||a===void 0?void 0:a.getData("text/plain");if(!r||!/^(https?:\/\/|mailto:|xmpp:|www\.)/.test(r)||(/^www\./.test(r)&&(r="https://"+r),!DO.isActiveAt(e.state,n.from,1)))return!1;let i=je(e.state),o=!1;return i.iterate({from:n.from,to:n.to,enter:s=>{(s.from>n.from||rJ.test(s.name))&&(o=!0)},leave:s=>{s.to<n.to&&(o=!0)}}),o?!1:(e.dispatch({changes:[{from:n.from,insert:"["},{from:n.to,insert:`](${r})`}],userEvent:"input.paste",scrollIntoView:!0}),!0)}});var Wz=M(ae(),1),oJ=J.theme({"&":{height:"100%",backgroundColor:"transparent",color:"var(--foreground)"},".cm-content":{fontFamily:"var(--font-mono)",padding:"0.75rem 0",caretColor:"var(--foreground)"},".cm-line":{padding:"0 0.85rem"},".cm-gutters":{backgroundColor:"transparent",color:"var(--muted-foreground)",border:"none"},".cm-activeLine":{backgroundColor:"color-mix(in oklab, var(--foreground) 5%, transparent)"},".cm-activeLineGutter":{backgroundColor:"transparent"},".cm-selectionBackground, &.cm-focused .cm-selectionBackground, ::selection":{backgroundColor:"color-mix(in oklab, var(--primary) 30%, transparent)"},".cm-cursor":{borderLeftColor:"var(--foreground)"}}),sJ=sc.define([{tag:w.heading,color:"var(--primary)",fontWeight:"600"},{tag:w.strong,fontWeight:"700"},{tag:w.emphasis,fontStyle:"italic"},{tag:w.link,color:"var(--info)",textDecoration:"underline"},{tag:w.monospace,color:"var(--info)"},{tag:w.keyword,color:"var(--primary)"},{tag:w.string,color:"var(--success)"},{tag:[w.number,w.bool,w.null],color:"var(--warning)"},{tag:w.comment,color:"var(--muted-foreground)",fontStyle:"italic"},{tag:w.meta,color:"var(--muted-foreground)"}]);function Yz({value:t,onChange:e,className:a=""}){let n=(0,Ol.useRef)(null),r=(0,Ol.useRef)(null),i=(0,Ol.useRef)(e);return i.current=e,(0,Ol.useEffect)(()=>{if(!n.current)return;let o=et.create({doc:t,extensions:[JN(),eQ(),qN(),JQ(),DQ(),BN(),XN(),FN(),EQ(),UQ(),ZN(),$$(),QQ(sJ),il.of([...T$,...q$,...n$,...IQ,...DC,I$]),Vz(),J.lineWrapping,oJ,J.updateListener.of(l=>{l.docChanged&&i.current(l.state.doc.toString())})]}),s=new J({state:o,parent:n.current});return r.current=s,()=>{s.destroy(),r.current=null}},[]),(0,Ol.useEffect)(()=>{let o=r.current;if(!o)return;let s=o.state.doc.toString();s!==t&&o.dispatch({changes:{from:0,to:s.length,insert:t}})},[t]),(0,Wz.jsx)("div",{ref:n,className:`mr-editor h-full overflow-hidden ${a}`})}var s5=M(ye(),1),re=M(ye(),1),zO=(0,re.createContext)(null);zO.displayName="PanelGroupContext";var kt={group:"data-panel-group",groupDirection:"data-panel-group-direction",groupId:"data-panel-group-id",panel:"data-panel",panelCollapsible:"data-panel-collapsible",panelId:"data-panel-id",panelSize:"data-panel-size",resizeHandle:"data-resize-handle",resizeHandleActive:"data-resize-handle-active",resizeHandleEnabled:"data-panel-resize-handle-enabled",resizeHandleId:"data-panel-resize-handle-id",resizeHandleState:"data-resize-handle-state"},XC=10,xl=re.useLayoutEffect,Kz=s5.useId,lJ=typeof Kz=="function"?Kz:()=>null,uJ=0;function qC(t=null){let e=lJ(),a=(0,re.useRef)(t||e||null);return a.current===null&&(a.current=""+uJ++),t??a.current}function l5({children:t,className:e="",collapsedSize:a,collapsible:n,defaultSize:r,forwardedRef:i,id:o,maxSize:s,minSize:l,onCollapse:u,onExpand:c,onResize:f,order:d,style:h,tagName:p="div",...g}){let b=(0,re.useContext)(zO);if(b===null)throw Error("Panel components must be rendered within a PanelGroup container");let{collapsePanel:m,expandPanel:O,getPanelSize:x,getPanelStyle:S,groupId:y,isPanelCollapsed:C,reevaluatePanelConstraints:v,registerPanel:k,resizePanel:L,unregisterPanel:A}=b,R=qC(o),T=(0,re.useRef)({callbacks:{onCollapse:u,onExpand:c,onResize:f},constraints:{collapsedSize:a,collapsible:n,defaultSize:r,maxSize:s,minSize:l},id:R,idIsFromProps:o!==void 0,order:d});(0,re.useRef)({didLogMissingDefaultSizeWarning:!1}),xl(()=>{let{callbacks:Q,constraints:D}=T.current,_={...D};T.current.id=R,T.current.idIsFromProps=o!==void 0,T.current.order=d,Q.onCollapse=u,Q.onExpand=c,Q.onResize=f,D.collapsedSize=a,D.collapsible=n,D.defaultSize=r,D.maxSize=s,D.minSize=l,(_.collapsedSize!==D.collapsedSize||_.collapsible!==D.collapsible||_.maxSize!==D.maxSize||_.minSize!==D.minSize)&&v(T.current,_)}),xl(()=>{let Q=T.current;return k(Q),()=>{A(Q)}},[d,R,k,A]),(0,re.useImperativeHandle)(i,()=>({collapse:()=>{m(T.current)},expand:Q=>{O(T.current,Q)},getId(){return R},getSize(){return x(T.current)},isCollapsed(){return C(T.current)},isExpanded(){return!C(T.current)},resize:Q=>{L(T.current,Q)}}),[m,O,x,C,R,L]);let U=S(T.current,r);return(0,re.createElement)(p,{...g,children:t,className:e,id:R,style:{...U,...h},[kt.groupId]:y,[kt.panel]:"",[kt.panelCollapsible]:n||void 0,[kt.panelId]:R,[kt.panelSize]:parseFloat(""+U.flexGrow).toFixed(1)})}var ZC=(0,re.forwardRef)((t,e)=>(0,re.createElement)(l5,{...t,forwardedRef:e}));l5.displayName="Panel";ZC.displayName="forwardRef(Panel)";var cJ;function fJ(){return cJ}var UC=null,dJ=!0,Jz=null,QO=-1,Di=null;function hJ(t,e,a){let n=(e&h5)!==0,r=(e&p5)!==0,i=(e&m5)!==0,o=(e&g5)!==0;if(Jz)return Jz({exceedsHorizontalMaximum:r,exceedsHorizontalMinimum:n,exceedsVerticalMaximum:o,exceedsVerticalMinimum:i,intersectsHorizontalDragHandle:t==="horizontal"||t==="intersection",intersectsVerticalDragHandle:t==="vertical"||t==="intersection",isPointerDown:a});if(e){if(n)return i?"se-resize":o?"ne-resize":"e-resize";if(r)return i?"sw-resize":o?"nw-resize":"w-resize";if(i)return"s-resize";if(o)return"n-resize"}switch(t){case"horizontal":return"ew-resize";case"intersection":return"move";case"vertical":return"ns-resize"}}function pJ(){Di!==null&&(document.head.removeChild(Di),UC=null,Di=null,QO=-1)}function NC(t,e,a){var n,r;if(!dJ)return;let i=hJ(t,e,a);if(UC!==i){if(UC=i,Di===null){Di=document.createElement("style");let s=fJ();s&&Di.setAttribute("nonce",s),document.head.appendChild(Di)}if(QO>=0){var o;(o=Di.sheet)===null||o===void 0||o.removeRule(QO)}QO=(n=(r=Di.sheet)===null||r===void 0?void 0:r.insertRule(`*{cursor: ${i} !important;}`))!==null&&n!==void 0?n:-1}}function u5(t){return t.type==="keydown"}function c5(t){return t.type.startsWith("pointer")}function f5(t){return t.type.startsWith("mouse")}function UO(t){if(c5(t)){if(t.isPrimary)return{x:t.clientX,y:t.clientY}}else if(f5(t))return{x:t.clientX,y:t.clientY};return{x:1/0,y:1/0}}function mJ(){if(typeof matchMedia=="function")return matchMedia("(pointer:coarse)").matches?"coarse":"fine"}function gJ(t,e,a){return a?t.x<e.x+e.width&&t.x+t.width>e.x&&t.y<e.y+e.height&&t.y+t.height>e.y:t.x<=e.x+e.width&&t.x+t.width>=e.x&&t.y<=e.y+e.height&&t.y+t.height>=e.y}function OJ(t,e){if(t===e)throw new Error("Cannot compare node with itself");let a={a:a5(t),b:a5(e)},n;for(;a.a.at(-1)===a.b.at(-1);)t=a.a.pop(),e=a.b.pop(),n=t;Ee(n,"Stacking order can only be calculated for elements with a common ancestor");let r={a:t5(e5(a.a)),b:t5(e5(a.b))};if(r.a===r.b){let i=n.childNodes,o={a:a.a.at(-1),b:a.b.at(-1)},s=i.length;for(;s--;){let l=i[s];if(l===o.a)return 1;if(l===o.b)return-1}}return Math.sign(r.a-r.b)}var bJ=/\b(?:position|zIndex|opacity|transform|webkitTransform|mixBlendMode|filter|webkitFilter|isolation)\b/;function xJ(t){var e;let a=getComputedStyle((e=d5(t))!==null&&e!==void 0?e:t).display;return a==="flex"||a==="inline-flex"}function SJ(t){let e=getComputedStyle(t);return!!(e.position==="fixed"||e.zIndex!=="auto"&&(e.position!=="static"||xJ(t))||+e.opacity<1||"transform"in e&&e.transform!=="none"||"webkitTransform"in e&&e.webkitTransform!=="none"||"mixBlendMode"in e&&e.mixBlendMode!=="normal"||"filter"in e&&e.filter!=="none"||"webkitFilter"in e&&e.webkitFilter!=="none"||"isolation"in e&&e.isolation==="isolate"||bJ.test(e.willChange)||e.webkitOverflowScrolling==="touch")}function e5(t){let e=t.length;for(;e--;){let a=t[e];if(Ee(a,"Missing node"),SJ(a))return a}return null}function t5(t){return t&&Number(getComputedStyle(t).zIndex)||0}function a5(t){let e=[];for(;t;)e.push(t),t=d5(t);return e}function d5(t){let{parentNode:e}=t;return e&&e instanceof ShadowRoot?e.host:e}var h5=1,p5=2,m5=4,g5=8,yJ=mJ()==="coarse",wr=[],Qi=!1,ss=new Map,XO=new Map,gh=new Set;function vJ(t,e,a,n,r){var i;let{ownerDocument:o}=e,s={direction:a,element:e,hitAreaMargins:n,setResizeHandlerState:r},l=(i=ss.get(o))!==null&&i!==void 0?i:0;return ss.set(o,l+1),gh.add(s),$O(),function(){var c;XO.delete(t),gh.delete(s);let f=(c=ss.get(o))!==null&&c!==void 0?c:1;if(ss.set(o,f-1),$O(),f===1&&ss.delete(o),wr.includes(s)){let d=wr.indexOf(s);d>=0&&wr.splice(d,1),qO(),r("up",!0,null)}}}function CJ(t){let{target:e}=t,{x:a,y:n}=UO(t);Qi=!0,FC({target:e,x:a,y:n}),$O(),wr.length>0&&(BO("down",t),qO(),t.preventDefault(),O5(e)||t.stopImmediatePropagation())}function QC(t){let{x:e,y:a}=UO(t);if(Qi&&t.type!=="pointerleave"&&t.buttons===0&&(Qi=!1,BO("up",t)),!Qi){let{target:n}=t;FC({target:n,x:e,y:a})}BO("move",t),qO(),wr.length>0&&t.preventDefault()}function $C(t){let{target:e}=t,{x:a,y:n}=UO(t);XO.clear(),Qi=!1,wr.length>0&&(t.preventDefault(),O5(e)||t.stopImmediatePropagation()),BO("up",t),FC({target:e,x:a,y:n}),qO(),$O()}function O5(t){let e=t;for(;e;){if(e.hasAttribute(kt.resizeHandle))return!0;e=e.parentElement}return!1}function FC({target:t,x:e,y:a}){wr.splice(0);let n=null;(t instanceof HTMLElement||t instanceof SVGElement)&&(n=t),gh.forEach(r=>{let{element:i,hitAreaMargins:o}=r,s=i.getBoundingClientRect(),{bottom:l,left:u,right:c,top:f}=s,d=yJ?o.coarse:o.fine;if(e>=u-d&&e<=c+d&&a>=f-d&&a<=l+d){if(n!==null&&document.contains(n)&&i!==n&&!i.contains(n)&&!n.contains(i)&&OJ(n,i)>0){let p=n,g=!1;for(;p&&!p.contains(i);){if(gJ(p.getBoundingClientRect(),s,!0)){g=!0;break}p=p.parentElement}if(g)return}wr.push(r)}})}function BC(t,e){XO.set(t,e)}function qO(){let t=!1,e=!1;wr.forEach(n=>{let{direction:r}=n;r==="horizontal"?t=!0:e=!0});let a=0;XO.forEach(n=>{a|=n}),t&&e?NC("intersection",a,Qi):t?NC("horizontal",a,Qi):e?NC("vertical",a,Qi):pJ()}var zC;function $O(){var t;(t=zC)===null||t===void 0||t.abort(),zC=new AbortController;let e={capture:!0,signal:zC.signal};gh.size&&(Qi?(wr.length>0&&ss.forEach((a,n)=>{let{body:r}=n;a>0&&(r.addEventListener("contextmenu",$C,e),r.addEventListener("pointerleave",QC,e),r.addEventListener("pointermove",QC,e))}),ss.forEach((a,n)=>{let{body:r}=n;r.addEventListener("pointerup",$C,e),r.addEventListener("pointercancel",$C,e)})):ss.forEach((a,n)=>{let{body:r}=n;a>0&&(r.addEventListener("pointerdown",CJ,e),r.addEventListener("pointermove",QC,e))}))}function BO(t,e){gh.forEach(a=>{let{setResizeHandlerState:n}=a,r=wr.includes(a);n(t,r,e)})}function wJ(){let[t,e]=(0,re.useState)(0);return(0,re.useCallback)(()=>e(a=>a+1),[])}function Ee(t,e){if(!t)throw console.error(e),Error(e)}function Sl(t,e,a=XC){return t.toFixed(a)===e.toFixed(a)?0:t>e?1:-1}function Ni(t,e,a=XC){return Sl(t,e,a)===0}function wn(t,e,a){return Sl(t,e,a)===0}function kJ(t,e,a){if(t.length!==e.length)return!1;for(let n=0;n<t.length;n++){let r=t[n],i=e[n];if(!wn(r,i,a))return!1}return!0}function yc({panelConstraints:t,panelIndex:e,size:a}){let n=t[e];Ee(n!=null,`Panel constraints not found for index ${e}`);let{collapsedSize:r=0,collapsible:i,maxSize:o=100,minSize:s=0}=n;if(Sl(a,s)<0)if(i){let l=(r+s)/2;Sl(a,l)<0?a=r:a=s}else a=s;return a=Math.min(o,a),a=parseFloat(a.toFixed(XC)),a}function ph({delta:t,initialLayout:e,panelConstraints:a,pivotIndices:n,prevLayout:r,trigger:i}){if(wn(t,0))return e;let o=[...e],[s,l]=n;Ee(s!=null,"Invalid first pivot index"),Ee(l!=null,"Invalid second pivot index");let u=0;if(i==="keyboard"){{let f=t<0?l:s,d=a[f];Ee(d,`Panel constraints not found for index ${f}`);let{collapsedSize:h=0,collapsible:p,minSize:g=0}=d;if(p){let b=e[f];if(Ee(b!=null,`Previous layout not found for panel index ${f}`),wn(b,h)){let m=g-b;Sl(m,Math.abs(t))>0&&(t=t<0?0-m:m)}}}{let f=t<0?s:l,d=a[f];Ee(d,`No panel constraints found for index ${f}`);let{collapsedSize:h=0,collapsible:p,minSize:g=0}=d;if(p){let b=e[f];if(Ee(b!=null,`Previous layout not found for panel index ${f}`),wn(b,g)){let m=b-h;Sl(m,Math.abs(t))>0&&(t=t<0?0-m:m)}}}}{let f=t<0?1:-1,d=t<0?l:s,h=0;for(;;){let g=e[d];Ee(g!=null,`Previous layout not found for panel index ${d}`);let m=yc({panelConstraints:a,panelIndex:d,size:100})-g;if(h+=m,d+=f,d<0||d>=a.length)break}let p=Math.min(Math.abs(t),Math.abs(h));t=t<0?0-p:p}{let d=t<0?s:l;for(;d>=0&&d<a.length;){let h=Math.abs(t)-Math.abs(u),p=e[d];Ee(p!=null,`Previous layout not found for panel index ${d}`);let g=p-h,b=yc({panelConstraints:a,panelIndex:d,size:g});if(!wn(p,b)&&(u+=p-b,o[d]=b,u.toFixed(3).localeCompare(Math.abs(t).toFixed(3),void 0,{numeric:!0})>=0))break;t<0?d--:d++}}if(kJ(r,o))return r;{let f=t<0?l:s,d=e[f];Ee(d!=null,`Previous layout not found for panel index ${f}`);let h=d+u,p=yc({panelConstraints:a,panelIndex:f,size:h});if(o[f]=p,!wn(p,h)){let g=h-p,m=t<0?l:s;for(;m>=0&&m<a.length;){let O=o[m];Ee(O!=null,`Previous layout not found for panel index ${m}`);let x=O+g,S=yc({panelConstraints:a,panelIndex:m,size:x});if(wn(O,S)||(g-=S-O,o[m]=S),wn(g,0))break;t>0?m--:m++}}}let c=o.reduce((f,d)=>d+f,0);return wn(c,100)?o:r}function LJ({layout:t,panelsArray:e,pivotIndices:a}){let n=0,r=100,i=0,o=0,s=a[0];Ee(s!=null,"No pivot index found"),e.forEach((f,d)=>{let{constraints:h}=f,{maxSize:p=100,minSize:g=0}=h;d===s?(n=g,r=p):(i+=g,o+=p)});let l=Math.min(r,100-i),u=Math.max(n,100-o),c=t[s];return{valueMax:l,valueMin:u,valueNow:c}}function Oh(t,e=document){return Array.from(e.querySelectorAll(`[${kt.resizeHandleId}][data-panel-group-id="${t}"]`))}function b5(t,e,a=document){let r=Oh(t,a).findIndex(i=>i.getAttribute(kt.resizeHandleId)===e);return r??null}function x5(t,e,a){let n=b5(t,e,a);return n!=null?[n,n+1]:[-1,-1]}function EJ(t){return t instanceof HTMLElement?!0:typeof t=="object"&&t!==null&&"tagName"in t&&"getAttribute"in t}function S5(t,e=document){if(EJ(e)&&e.dataset.panelGroupId==t)return e;let a=e.querySelector(`[data-panel-group][data-panel-group-id="${t}"]`);return a||null}function ZO(t,e=document){let a=e.querySelector(`[${kt.resizeHandleId}="${t}"]`);return a||null}function AJ(t,e,a,n=document){var r,i,o,s;let l=ZO(e,n),u=Oh(t,n),c=l?u.indexOf(l):-1,f=(r=(i=a[c])===null||i===void 0?void 0:i.id)!==null&&r!==void 0?r:null,d=(o=(s=a[c+1])===null||s===void 0?void 0:s.id)!==null&&o!==void 0?o:null;return[f,d]}function _J({committedValuesRef:t,eagerValuesRef:e,groupId:a,layout:n,panelDataArray:r,panelGroupElement:i,setLayout:o}){(0,re.useRef)({didWarnAboutMissingResizeHandle:!1}),xl(()=>{if(!i)return;let s=Oh(a,i);for(let l=0;l<r.length-1;l++){let{valueMax:u,valueMin:c,valueNow:f}=LJ({layout:n,panelsArray:r,pivotIndices:[l,l+1]}),d=s[l];if(d!=null){let h=r[l];Ee(h,`No panel data found for index "${l}"`),d.setAttribute("aria-controls",h.id),d.setAttribute("aria-valuemax",""+Math.round(u)),d.setAttribute("aria-valuemin",""+Math.round(c)),d.setAttribute("aria-valuenow",f!=null?""+Math.round(f):"")}}return()=>{s.forEach((l,u)=>{l.removeAttribute("aria-controls"),l.removeAttribute("aria-valuemax"),l.removeAttribute("aria-valuemin"),l.removeAttribute("aria-valuenow")})}},[a,n,r,i]),(0,re.useEffect)(()=>{if(!i)return;let s=e.current;Ee(s,"Eager values not found");let{panelDataArray:l}=s,u=S5(a,i);Ee(u!=null,`No group found for id "${a}"`);let c=Oh(a,i);Ee(c,`No resize handles found for group id "${a}"`);let f=c.map(d=>{let h=d.getAttribute(kt.resizeHandleId);Ee(h,"Resize handle element has no handle id attribute");let[p,g]=AJ(a,h,l,i);if(p==null||g==null)return()=>{};let b=m=>{if(!m.defaultPrevented)switch(m.key){case"Enter":{m.preventDefault();let O=l.findIndex(x=>x.id===p);if(O>=0){let x=l[O];Ee(x,`No panel data found for index ${O}`);let S=n[O],{collapsedSize:y=0,collapsible:C,minSize:v=0}=x.constraints;if(S!=null&&C){let k=ph({delta:wn(S,y)?v-y:y-S,initialLayout:n,panelConstraints:l.map(L=>L.constraints),pivotIndices:x5(a,h,i),prevLayout:n,trigger:"keyboard"});n!==k&&o(k)}}break}}};return d.addEventListener("keydown",b),()=>{d.removeEventListener("keydown",b)}});return()=>{f.forEach(d=>d())}},[i,t,e,a,n,r,o])}function n5(t,e){if(t.length!==e.length)return!1;for(let a=0;a<t.length;a++)if(t[a]!==e[a])return!1;return!0}function y5(t,e){let a=t==="horizontal",{x:n,y:r}=UO(e);return a?n:r}function RJ(t,e,a,n,r){let i=a==="horizontal",o=ZO(e,r);Ee(o,`No resize handle element found for id "${e}"`);let s=o.getAttribute(kt.groupId);Ee(s,"Resize handle element has no group id attribute");let{initialCursorPosition:l}=n,u=y5(a,t),c=S5(s,r);Ee(c,`No group element found for id "${s}"`);let f=c.getBoundingClientRect(),d=i?f.width:f.height;return(u-l)/d*100}function TJ(t,e,a,n,r,i){if(u5(t)){let o=a==="horizontal",s=0;t.shiftKey?s=100:r!=null?s=r:s=10;let l=0;switch(t.key){case"ArrowDown":l=o?0:s;break;case"ArrowLeft":l=o?-s:0;break;case"ArrowRight":l=o?s:0;break;case"ArrowUp":l=o?0:-s;break;case"End":l=100;break;case"Home":l=-100;break}return l}else return n==null?0:RJ(t,e,a,n,i)}function IJ({panelDataArray:t}){let e=Array(t.length),a=t.map(i=>i.constraints),n=0,r=100;for(let i=0;i<t.length;i++){let o=a[i];Ee(o,`Panel constraints not found for index ${i}`);let{defaultSize:s}=o;s!=null&&(n++,e[i]=s,r-=s)}for(let i=0;i<t.length;i++){let o=a[i];Ee(o,`Panel constraints not found for index ${i}`);let{defaultSize:s}=o;if(s!=null)continue;let l=t.length-n,u=r/l;n++,e[i]=u,r-=u}return e}function xc(t,e,a){e.forEach((n,r)=>{let i=t[r];Ee(i,`Panel data not found for index ${r}`);let{callbacks:o,constraints:s,id:l}=i,{collapsedSize:u=0,collapsible:c}=s,f=a[l];if(f==null||n!==f){a[l]=n;let{onCollapse:d,onExpand:h,onResize:p}=o;p&&p(n,f),c&&(d||h)&&(h&&(f==null||Ni(f,u))&&!Ni(n,u)&&h(),d&&(f==null||!Ni(f,u))&&Ni(n,u)&&d())}})}function NO(t,e){if(t.length!==e.length)return!1;for(let a=0;a<t.length;a++)if(t[a]!=e[a])return!1;return!0}function PJ({defaultSize:t,dragState:e,layout:a,panelData:n,panelIndex:r,precision:i=3}){let o=a[r],s;return o==null?s=t!=null?t.toFixed(i):"1":n.length===1?s="1":s=o.toFixed(i),{flexBasis:0,flexGrow:s,flexShrink:1,overflow:"hidden",pointerEvents:e!==null?"none":void 0}}function MJ(t,e=10){let a=null;return(...r)=>{a!==null&&clearTimeout(a),a=setTimeout(()=>{t(...r)},e)}}function r5(t){try{if(typeof localStorage<"u")t.getItem=e=>localStorage.getItem(e),t.setItem=(e,a)=>{localStorage.setItem(e,a)};else throw new Error("localStorage not supported in this environment")}catch(e){console.error(e),t.getItem=()=>null,t.setItem=()=>{}}}function v5(t){return`react-resizable-panels:${t}`}function C5(t){return t.map(e=>{let{constraints:a,id:n,idIsFromProps:r,order:i}=e;return r?n:i?`${i}:${JSON.stringify(a)}`:JSON.stringify(a)}).sort((e,a)=>e.localeCompare(a)).join(",")}function w5(t,e){try{let a=v5(t),n=e.getItem(a);if(n){let r=JSON.parse(n);if(typeof r=="object"&&r!=null)return r}}catch{}return null}function DJ(t,e,a){var n,r;let i=(n=w5(t,a))!==null&&n!==void 0?n:{},o=C5(e);return(r=i[o])!==null&&r!==void 0?r:null}function NJ(t,e,a,n,r){var i;let o=v5(t),s=C5(e),l=(i=w5(t,r))!==null&&i!==void 0?i:{};l[s]={expandToSizes:Object.fromEntries(a.entries()),layout:n};try{r.setItem(o,JSON.stringify(l))}catch(u){console.error(u)}}function i5({layout:t,panelConstraints:e}){let a=[...t],n=a.reduce((i,o)=>i+o,0);if(a.length!==e.length)throw Error(`Invalid ${e.length} panel layout: ${a.map(i=>`${i}%`).join(", ")}`);if(!wn(n,100)&&a.length>0)for(let i=0;i<e.length;i++){let o=a[i];Ee(o!=null,`No layout data found for index ${i}`);let s=100/n*o;a[i]=s}let r=0;for(let i=0;i<e.length;i++){let o=a[i];Ee(o!=null,`No layout data found for index ${i}`);let s=yc({panelConstraints:e,panelIndex:i,size:o});o!=s&&(r+=o-s,a[i]=s)}if(!wn(r,0))for(let i=0;i<e.length;i++){let o=a[i];Ee(o!=null,`No layout data found for index ${i}`);let s=o+r,l=yc({panelConstraints:e,panelIndex:i,size:s});if(o!==l&&(r-=l-o,a[i]=l,wn(r,0)))break}return a}var QJ=100,mh={getItem:t=>(r5(mh),mh.getItem(t)),setItem:(t,e)=>{r5(mh),mh.setItem(t,e)}},o5={};function k5({autoSaveId:t=null,children:e,className:a="",direction:n,forwardedRef:r,id:i=null,onLayout:o=null,keyboardResizeBy:s=null,storage:l=mh,style:u,tagName:c="div",...f}){let d=qC(i),h=(0,re.useRef)(null),[p,g]=(0,re.useState)(null),[b,m]=(0,re.useState)([]),O=wJ(),x=(0,re.useRef)({}),S=(0,re.useRef)(new Map),y=(0,re.useRef)(0),C=(0,re.useRef)({autoSaveId:t,direction:n,dragState:p,id:d,keyboardResizeBy:s,onLayout:o,storage:l}),v=(0,re.useRef)({layout:b,panelDataArray:[],panelDataArrayChanged:!1});(0,re.useRef)({didLogIdAndOrderWarning:!1,didLogPanelConstraintsWarning:!1,prevPanelIds:[]}),(0,re.useImperativeHandle)(r,()=>({getId:()=>C.current.id,getLayout:()=>{let{layout:B}=v.current;return B},setLayout:B=>{let{onLayout:V}=C.current,{layout:q,panelDataArray:Y}=v.current,W=i5({layout:B,panelConstraints:Y.map(Oe=>Oe.constraints)});n5(q,W)||(m(W),v.current.layout=W,V&&V(W),xc(Y,W,x.current))}}),[]),xl(()=>{C.current.autoSaveId=t,C.current.direction=n,C.current.dragState=p,C.current.id=d,C.current.onLayout=o,C.current.storage=l}),_J({committedValuesRef:C,eagerValuesRef:v,groupId:d,layout:b,panelDataArray:v.current.panelDataArray,setLayout:m,panelGroupElement:h.current}),(0,re.useEffect)(()=>{let{panelDataArray:B}=v.current;if(t){if(b.length===0||b.length!==B.length)return;let V=o5[t];V==null&&(V=MJ(NJ,QJ),o5[t]=V);let q=[...B],Y=new Map(S.current);V(t,q,Y,b,l)}},[t,b,l]),(0,re.useEffect)(()=>{});let k=(0,re.useCallback)(B=>{let{onLayout:V}=C.current,{layout:q,panelDataArray:Y}=v.current;if(B.constraints.collapsible){let W=Y.map(Qt=>Qt.constraints),{collapsedSize:Oe=0,panelSize:me,pivotIndices:nt}=bl(Y,B,q);if(Ee(me!=null,`Panel size not found for panel "${B.id}"`),!Ni(me,Oe)){S.current.set(B.id,me);let $t=Sc(Y,B)===Y.length-1?me-Oe:Oe-me,ze=ph({delta:$t,initialLayout:q,panelConstraints:W,pivotIndices:nt,prevLayout:q,trigger:"imperative-api"});NO(q,ze)||(m(ze),v.current.layout=ze,V&&V(ze),xc(Y,ze,x.current))}}},[]),L=(0,re.useCallback)((B,V)=>{let{onLayout:q}=C.current,{layout:Y,panelDataArray:W}=v.current;if(B.constraints.collapsible){let Oe=W.map(Lt=>Lt.constraints),{collapsedSize:me=0,panelSize:nt=0,minSize:Qt=0,pivotIndices:$t}=bl(W,B,Y),ze=V??Qt;if(Ni(nt,me)){let Lt=S.current.get(B.id),Vt=Lt!=null&&Lt>=ze?Lt:ze,Ln=Sc(W,B)===W.length-1?nt-Vt:Vt-nt,oe=ph({delta:Ln,initialLayout:Y,panelConstraints:Oe,pivotIndices:$t,prevLayout:Y,trigger:"imperative-api"});NO(Y,oe)||(m(oe),v.current.layout=oe,q&&q(oe),xc(W,oe,x.current))}}},[]),A=(0,re.useCallback)(B=>{let{layout:V,panelDataArray:q}=v.current,{panelSize:Y}=bl(q,B,V);return Ee(Y!=null,`Panel size not found for panel "${B.id}"`),Y},[]),R=(0,re.useCallback)((B,V)=>{let{panelDataArray:q}=v.current,Y=Sc(q,B);return PJ({defaultSize:V,dragState:p,layout:b,panelData:q,panelIndex:Y})},[p,b]),T=(0,re.useCallback)(B=>{let{layout:V,panelDataArray:q}=v.current,{collapsedSize:Y=0,collapsible:W,panelSize:Oe}=bl(q,B,V);return Ee(Oe!=null,`Panel size not found for panel "${B.id}"`),W===!0&&Ni(Oe,Y)},[]),U=(0,re.useCallback)(B=>{let{layout:V,panelDataArray:q}=v.current,{collapsedSize:Y=0,collapsible:W,panelSize:Oe}=bl(q,B,V);return Ee(Oe!=null,`Panel size not found for panel "${B.id}"`),!W||Sl(Oe,Y)>0},[]),Q=(0,re.useCallback)(B=>{let{panelDataArray:V}=v.current;V.push(B),V.sort((q,Y)=>{let W=q.order,Oe=Y.order;return W==null&&Oe==null?0:W==null?-1:Oe==null?1:W-Oe}),v.current.panelDataArrayChanged=!0,O()},[O]);xl(()=>{if(v.current.panelDataArrayChanged){v.current.panelDataArrayChanged=!1;let{autoSaveId:B,onLayout:V,storage:q}=C.current,{layout:Y,panelDataArray:W}=v.current,Oe=null;if(B){let nt=DJ(B,W,q);nt&&(S.current=new Map(Object.entries(nt.expandToSizes)),Oe=nt.layout)}Oe==null&&(Oe=IJ({panelDataArray:W}));let me=i5({layout:Oe,panelConstraints:W.map(nt=>nt.constraints)});n5(Y,me)||(m(me),v.current.layout=me,V&&V(me),xc(W,me,x.current))}}),xl(()=>{let B=v.current;return()=>{B.layout=[]}},[]);let D=(0,re.useCallback)(B=>{let V=!1,q=h.current;return q&&window.getComputedStyle(q,null).getPropertyValue("direction")==="rtl"&&(V=!0),function(W){W.preventDefault();let Oe=h.current;if(!Oe)return()=>null;let{direction:me,dragState:nt,id:Qt,keyboardResizeBy:$t,onLayout:ze}=C.current,{layout:Lt,panelDataArray:Vt}=v.current,{initialLayout:Ue}=nt??{},Ln=x5(Qt,B,Oe),oe=TJ(W,B,me,nt,$t,Oe),ls=me==="horizontal";ls&&V&&(oe=-oe);let Bt=Vt.map(ti=>ti.constraints),Xe=ph({delta:oe,initialLayout:Ue??Lt,panelConstraints:Bt,pivotIndices:Ln,prevLayout:Lt,trigger:u5(W)?"keyboard":"mouse-or-touch"}),us=!NO(Lt,Xe);(c5(W)||f5(W))&&y.current!=oe&&(y.current=oe,!us&&oe!==0?ls?BC(B,oe<0?h5:p5):BC(B,oe<0?m5:g5):BC(B,0)),us&&(m(Xe),v.current.layout=Xe,ze&&ze(Xe),xc(Vt,Xe,x.current))}},[]),_=(0,re.useCallback)((B,V)=>{let{onLayout:q}=C.current,{layout:Y,panelDataArray:W}=v.current,Oe=W.map(Lt=>Lt.constraints),{panelSize:me,pivotIndices:nt}=bl(W,B,Y);Ee(me!=null,`Panel size not found for panel "${B.id}"`);let $t=Sc(W,B)===W.length-1?me-V:V-me,ze=ph({delta:$t,initialLayout:Y,panelConstraints:Oe,pivotIndices:nt,prevLayout:Y,trigger:"imperative-api"});NO(Y,ze)||(m(ze),v.current.layout=ze,q&&q(ze),xc(W,ze,x.current))},[]),$=(0,re.useCallback)((B,V)=>{let{layout:q,panelDataArray:Y}=v.current,{collapsedSize:W=0,collapsible:Oe}=V,{collapsedSize:me=0,collapsible:nt,maxSize:Qt=100,minSize:$t=0}=B.constraints,{panelSize:ze}=bl(Y,B,q);ze!=null&&(Oe&&nt&&Ni(ze,W)?Ni(W,me)||_(B,me):ze<$t?_(B,$t):ze>Qt&&_(B,Qt))},[_]),z=(0,re.useCallback)((B,V)=>{let{direction:q}=C.current,{layout:Y}=v.current;if(!h.current)return;let W=ZO(B,h.current);Ee(W,`Drag handle element not found for id "${B}"`);let Oe=y5(q,V);g({dragHandleId:B,dragHandleRect:W.getBoundingClientRect(),initialCursorPosition:Oe,initialLayout:Y})},[]),H=(0,re.useCallback)(()=>{g(null)},[]),E=(0,re.useCallback)(B=>{let{panelDataArray:V}=v.current,q=Sc(V,B);q>=0&&(V.splice(q,1),delete x.current[B.id],v.current.panelDataArrayChanged=!0,O())},[O]),N=(0,re.useMemo)(()=>({collapsePanel:k,direction:n,dragState:p,expandPanel:L,getPanelSize:A,getPanelStyle:R,groupId:d,isPanelCollapsed:T,isPanelExpanded:U,reevaluatePanelConstraints:$,registerPanel:Q,registerResizeHandle:D,resizePanel:_,startDragging:z,stopDragging:H,unregisterPanel:E,panelGroupElement:h.current}),[k,p,n,L,A,R,d,T,U,$,Q,D,_,z,H,E]),F={display:"flex",flexDirection:n==="horizontal"?"row":"column",height:"100%",overflow:"hidden",width:"100%"};return(0,re.createElement)(zO.Provider,{value:N},(0,re.createElement)(c,{...f,children:e,className:a,id:i,ref:h,style:{...F,...u},[kt.group]:"",[kt.groupDirection]:n,[kt.groupId]:d}))}var GC=(0,re.forwardRef)((t,e)=>(0,re.createElement)(k5,{...t,forwardedRef:e}));k5.displayName="PanelGroup";GC.displayName="forwardRef(PanelGroup)";function Sc(t,e){return t.findIndex(a=>a===e||a.id===e.id)}function bl(t,e,a){let n=Sc(t,e),i=n===t.length-1?[n-1,n]:[n,n+1],o=a[n];return{...e.constraints,panelSize:o,pivotIndices:i}}function $J({disabled:t,handleId:e,resizeHandler:a,panelGroupElement:n}){(0,re.useEffect)(()=>{if(t||a==null||n==null)return;let r=ZO(e,n);if(r==null)return;let i=o=>{if(!o.defaultPrevented)switch(o.key){case"ArrowDown":case"ArrowLeft":case"ArrowRight":case"ArrowUp":case"End":case"Home":{o.preventDefault(),a(o);break}case"F6":{o.preventDefault();let s=r.getAttribute(kt.groupId);Ee(s,`No group element found for id "${s}"`);let l=Oh(s,n),u=b5(s,e,n);Ee(u!==null,`No resize element found for id "${e}"`);let c=o.shiftKey?u>0?u-1:l.length-1:u+1<l.length?u+1:0;l[c].focus();break}}};return r.addEventListener("keydown",i),()=>{r.removeEventListener("keydown",i)}},[n,t,e,a])}function HC({children:t=null,className:e="",disabled:a=!1,hitAreaMargins:n,id:r,onBlur:i,onClick:o,onDragging:s,onFocus:l,onPointerDown:u,onPointerUp:c,style:f={},tabIndex:d=0,tagName:h="div",...p}){var g,b;let m=(0,re.useRef)(null),O=(0,re.useRef)({onClick:o,onDragging:s,onPointerDown:u,onPointerUp:c});(0,re.useEffect)(()=>{O.current.onClick=o,O.current.onDragging=s,O.current.onPointerDown=u,O.current.onPointerUp=c});let x=(0,re.useContext)(zO);if(x===null)throw Error("PanelResizeHandle components must be rendered within a PanelGroup container");let{direction:S,groupId:y,registerResizeHandle:C,startDragging:v,stopDragging:k,panelGroupElement:L}=x,A=qC(r),[R,T]=(0,re.useState)("inactive"),[U,Q]=(0,re.useState)(!1),[D,_]=(0,re.useState)(null),$=(0,re.useRef)({state:R});xl(()=>{$.current.state=R}),(0,re.useEffect)(()=>{if(a)_(null);else{let N=C(A);_(()=>N)}},[a,A,C]);let z=(g=n?.coarse)!==null&&g!==void 0?g:15,H=(b=n?.fine)!==null&&b!==void 0?b:5;return(0,re.useEffect)(()=>{if(a||D==null)return;let N=m.current;Ee(N,"Element ref not attached");let F=!1;return vJ(A,N,S,{coarse:z,fine:H},(V,q,Y)=>{if(!q){T("inactive");return}switch(V){case"down":{T("drag"),F=!1,Ee(Y,'Expected event to be defined for "down" action'),v(A,Y);let{onDragging:W,onPointerDown:Oe}=O.current;W?.(!0),Oe?.();break}case"move":{let{state:W}=$.current;F=!0,W!=="drag"&&T("hover"),Ee(Y,'Expected event to be defined for "move" action'),D(Y);break}case"up":{T("hover"),k();let{onClick:W,onDragging:Oe,onPointerUp:me}=O.current;Oe?.(!1),me?.(),F||W?.();break}}})},[z,S,a,H,C,A,D,v,k]),$J({disabled:a,handleId:A,resizeHandler:D,panelGroupElement:L}),(0,re.createElement)(h,{...p,children:t,className:e,id:r,onBlur:()=>{Q(!1),i?.()},onFocus:()=>{Q(!0),l?.()},ref:m,role:"separator",style:{...{touchAction:"none",userSelect:"none"},...f},tabIndex:d,[kt.groupDirection]:S,[kt.groupId]:y,[kt.resizeHandle]:"",[kt.resizeHandleActive]:R==="drag"?"pointer":U?"keyboard":void 0,[kt.resizeHandleEnabled]:!a,[kt.resizeHandleId]:A,[kt.resizeHandleState]:R})}HC.displayName="PanelResizeHandle";var bh=M(ae(),1);function vc({className:t,...e}){return(0,bh.jsx)(GC,{"data-slot":"resizable-panel-group",className:Ce("flex h-full w-full data-[panel-group-direction=vertical]:flex-col",t),...e})}function ar({...t}){return(0,bh.jsx)(ZC,{"data-slot":"resizable-panel",...t})}function $i({withHandle:t,className:e,...a}){return(0,bh.jsx)(HC,{"data-slot":"resizable-handle",className:Ce("group relative flex w-px items-center justify-center bg-border transition-colors hover:bg-primary/60 focus-visible:ring-1 focus-visible:ring-ring focus-visible:outline-hidden","data-[panel-group-direction=vertical]:h-px data-[panel-group-direction=vertical]:w-full",'after:absolute after:top-0 after:bottom-0 after:-left-1 after:-right-1 after:content-[""]',"data-[panel-group-direction=vertical]:after:left-0 data-[panel-group-direction=vertical]:after:right-0 data-[panel-group-direction=vertical]:after:-top-1 data-[panel-group-direction=vertical]:after:-bottom-1",e),...a,children:t?(0,bh.jsx)("div",{className:"z-10 flex h-3 w-1 shrink-0 rounded-full bg-border transition-colors group-hover:bg-primary data-[panel-group-direction=vertical]:h-1 data-[panel-group-direction=vertical]:w-3"}):null})}var Cc=M(ye(),1);var yl=M(ae(),1),zJ=Object.defineProperty,xh=(t,e)=>zJ(t,"name",{value:e,configurable:!0}),L5={Automatic:"automatic",Manual:"manual"},jC="Tabs",[UJ,jle]=pn(jC,[Au]),E5=Au(),[XJ,A5]=UJ(jC),_5=Cc.forwardRef(xh(function(e,a){let{__scopeTabs:n,value:r,onValueChange:i,defaultValue:o,orientation:s="horizontal",dir:l,activationMode:u=L5.Automatic,...c}=e,f=zs(l),[d,h]=Xn({prop:r,onChange:i,defaultProp:o??"",caller:jC});return(0,yl.jsx)(XJ,{scope:n,baseId:Jf(),value:d,onValueChange:h,orientation:s,dir:f,activationMode:u,children:(0,yl.jsx)(ta.div,{dir:f,"data-orientation":s,...c,ref:a})})},"Tabs")),qJ="TabsList",R5=Cc.forwardRef(xh(function(e,a){let{__scopeTabs:n,loop:r=!0,...i}=e,o=A5(qJ,n),s=E5(n);return(0,yl.jsx)(Em,{asChild:!0,...s,orientation:o.orientation,dir:o.dir,loop:r,children:(0,yl.jsx)(ta.div,{role:"tablist","aria-orientation":o.orientation,...i,ref:a})})},"TabsList")),ZJ="TabsTrigger",T5=Cc.forwardRef(xh(function(e,a){let{__scopeTabs:n,value:r,disabled:i=!1,...o}=e,s=A5(ZJ,n),l=E5(n),u=I5(s.baseId,r),c=P5(s.baseId,r),f=r===s.value;return(0,yl.jsx)(Am,{asChild:!0,...l,focusable:!i,active:f,children:(0,yl.jsx)(ta.button,{type:"button",role:"tab","aria-selected":f,"aria-controls":c,"data-state":f?"active":"inactive","data-disabled":i?"":void 0,disabled:i,id:u,...o,ref:a,onMouseDown:ea(e.onMouseDown,d=>{!i&&d.button===0&&d.ctrlKey===!1?(d.currentTarget.focus(),s.onValueChange(r)):d.preventDefault()}),onKeyDown:ea(e.onKeyDown,d=>{i||d.target!==d.currentTarget||[" ","Enter"].includes(d.key)&&s.onValueChange(r)}),onFocus:ea(e.onFocus,()=>{let d=s.activationMode!==L5.Manual;!f&&!i&&d&&s.onValueChange(r)})})})},"TabsTrigger"));function I5(t,e){return`${t}-trigger-${e}`}xh(I5,"makeTriggerId");function P5(t,e){return`${t}-content-${e}`}xh(P5,"makeContentId");var VC=M(ae(),1),M5=_5;function D5({className:t,...e}){return(0,VC.jsx)(R5,{"data-slot":"tabs-list",className:Ce("inline-flex w-fit items-center gap-0.5",t),...e})}function N5({className:t,...e}){return(0,VC.jsx)(T5,{"data-slot":"tabs-trigger",className:Ce("inline-flex h-6 items-center justify-center gap-1 rounded-md px-2 font-mono text-xs font-medium whitespace-nowrap text-muted-foreground outline-none transition-colors","hover:text-foreground focus-visible:ring-2 focus-visible:ring-ring/50 disabled:pointer-events-none disabled:opacity-50","data-[state=active]:bg-muted data-[state=active]:text-foreground",t),...e})}var ge=M(ae(),1),GJ=800,HJ=[{value:"edit",label:(0,ge.jsx)(pe,{name:"pencil",className:"size-3.5"}),title:"Edit"},{value:"split",label:(0,ge.jsx)(pe,{name:"columns",className:"size-3.5"}),title:"Edit and preview"},{value:"preview",label:(0,ge.jsx)(pe,{name:"eye",className:"size-3.5"}),title:"Preview"}],jJ=[{value:"row",label:(0,ge.jsx)(pe,{name:"columns",className:"size-3.5"}),title:"Side by side"},{value:"column",label:(0,ge.jsx)(pe,{name:"rows",className:"size-3.5"}),title:"Stacked"}];function FO(t){return t.tone==="error"?{text:`failed: ${t.error??""}`,tone:"text-destructive"}:t.tone==="conflict"?{text:"changed elsewhere",tone:"text-warning"}:t.tone==="saving"?{text:"saving\u2026",tone:"text-muted-foreground"}:t.text!==t.savedText?{text:"unsaved\u2026",tone:"text-muted-foreground"}:t.savedAt?{text:`${t.origin==="saved"?"saved":"on disk"} ${Ds(t.savedAt)}`,tone:"text-muted-foreground"}:{text:"",tone:""}}function VJ({text:t}){let{rows:e,body:a}=(0,St.useMemo)(()=>$_(t),[t]);return(0,ge.jsxs)("div",{className:"mr-scroll h-full overflow-y-auto bg-card p-4",children:[e.length>0&&(0,ge.jsx)("dl",{className:"mb-4 grid grid-cols-[auto_minmax(0,1fr)] gap-x-3 gap-y-1 rounded-lg border border-border bg-muted/40 p-3 text-xs",children:e.map(n=>(0,ge.jsxs)(St.Fragment,{children:[(0,ge.jsx)("dt",{className:"font-mono text-muted-foreground",children:n.key}),(0,ge.jsx)("dd",{className:"truncate",title:n.value,children:n.value||"\u2014"})]},n.key))}),(0,ge.jsx)(Hs,{source:a,render:Wm,className:Xs})]})}function YJ({entry:t,onKeep:e,onTake:a}){return t.tone!=="conflict"?null:(0,ge.jsxs)("div",{className:"flex flex-wrap items-center gap-2 border-b border-destructive/40 bg-destructive/10 px-3 py-1.5 text-xs",children:[(0,ge.jsx)(pe,{name:"alert",className:"size-3.5 text-destructive"}),(0,ge.jsxs)("span",{children:[(0,ge.jsx)("span",{className:"font-mono",children:t.name})," changed on disk while you were typing."]}),(0,ge.jsxs)("div",{className:"ml-auto flex gap-1",children:[(0,ge.jsx)(Qe,{variant:"outline",size:"xs",onClick:e,children:"Keep mine"}),(0,ge.jsx)(Qe,{variant:"destructive",size:"xs",onClick:a,children:"Take theirs"})]})]})}function Q5({room:t,roomsPath:e,docs:a}){let[n,r]=(0,St.useState)(()=>Object.fromEntries(a.map(L=>[L,{name:L,text:"",savedText:"",mtime:0,hash:"",savedAt:0,tone:"idle",origin:"disk"}]))),i=(0,St.useRef)(n),o=(0,St.useRef)(new Map),[s,l]=(0,St.useState)(()=>Qn("modelroom.docs.active",a[0]??"")),[u,c]=(0,St.useState)(()=>Qn("modelroom.docs.mode",window.innerWidth>1200?"split":"edit")),[f,d]=(0,St.useState)(()=>Qn("modelroom.docs.layout","tabs")),[h,p]=(0,St.useState)(()=>Qn("modelroom.docs.orientation","row")),g=(0,St.useCallback)((L,A)=>{let R=i.current[L];R&&(i.current={...i.current,[L]:{...R,...A}},r(i.current))},[]);(0,St.useEffect)(()=>{$n("modelroom.docs.active",s)},[s]),(0,St.useEffect)(()=>{$n("modelroom.docs.mode",u)},[u]),(0,St.useEffect)(()=>{$n("modelroom.docs.layout",f)},[f]),(0,St.useEffect)(()=>{$n("modelroom.docs.orientation",h)},[h]);let b=(0,St.useCallback)(async(L,A)=>{let R=await A_(t,L).catch(()=>null);if(!R)return;if(R.error){g(L,{tone:"error",error:R.error});return}let T=i.current[L];if(!A&&T&&T.text!==T.savedText)return;let U=T!==void 0&&R.text===T.savedText;g(L,{text:R.text,savedText:R.text,mtime:R.mtime,hash:R.hash,savedAt:U&&T?T.savedAt:R.mtime||Date.now(),tone:"saved",origin:U&&T?.origin==="saved"?"saved":"disk",error:void 0,conflict:void 0})},[g,t]),m=(0,St.useCallback)(async L=>{let A=i.current[L];if(!A||A.text===A.savedText)return;g(L,{tone:"saving"});let{ok:R,status:T,data:U}=await __({room:t,name:L,text:A.text,hash:A.hash,mtime:A.mtime});if(R){g(L,{mtime:U.mtime??A.mtime,hash:U.hash??A.hash,savedText:A.text,savedAt:Date.now(),tone:"saved",origin:"saved",error:void 0});return}if(T===409){g(L,{tone:"conflict",conflict:{text:U.text??"",hash:U.hash??""}});return}g(L,{tone:"error",error:U.error??String(T)})},[g,t]),O=(0,St.useCallback)((L,A)=>{g(L,{text:A,tone:i.current[L]?.tone==="conflict"?"conflict":"idle"});let R=o.current.get(L);R!==void 0&&window.clearTimeout(R),o.current.set(L,window.setTimeout(()=>{o.current.delete(L),m(L)},GJ))},[g,m]);(0,St.useEffect)(()=>{for(let L of a)b(L,!0);return()=>{for(let L of o.current.values())window.clearTimeout(L);o.current.clear()}},[a,b]),qt("change",L=>{if(!L.file.startsWith(`${e}/${t}/`))return;let A=L.file.split("/").pop()??"";a.includes(A)&&b(A,!1)});let x=async L=>{let A=i.current[L];A?.conflict&&(g(L,{hash:A.conflict.hash,tone:"idle",conflict:void 0}),await m(L))},S=L=>{let A=i.current[L];A?.conflict&&g(L,{text:A.conflict.text,savedText:A.conflict.text,hash:A.conflict.hash,savedAt:Date.now(),tone:"saved",origin:"disk",conflict:void 0})},y=n[s]??Object.values(n)[0],C=h==="row"?{gridTemplateColumns:"repeat(auto-fit, minmax(260px, 1fr))",gridAutoRows:"minmax(200px, 1fr)"}:{gridTemplateColumns:"minmax(0, 1fr)",gridAutoRows:"minmax(200px, 1fr)"},v=(L,A)=>{let R=(0,ge.jsx)(Yz,{value:L.text,onChange:D=>O(L.name,D)}),T=(0,ge.jsx)(VJ,{text:L.text}),Q=u==="edit"?R:u==="preview"?T:(0,ge.jsxs)(vc,{direction:h==="column"?"vertical":"horizontal",autoSaveId:"modelroom.docs.split",children:[(0,ge.jsx)(ar,{defaultSize:50,minSize:15,children:R}),(0,ge.jsx)($i,{withHandle:!0}),(0,ge.jsx)(ar,{defaultSize:50,minSize:15,children:T})]});return(0,ge.jsxs)("div",{className:"flex min-h-0 min-w-0 flex-1 flex-col",children:[A&&(0,ge.jsxs)("div",{className:"flex items-center gap-2 border-b border-border px-3 py-1",children:[(0,ge.jsx)(pe,{name:"file",className:"size-3.5 text-muted-foreground"}),(0,ge.jsx)("span",{className:"font-mono text-xs",children:L.name}),(0,ge.jsx)("span",{className:Ce("ml-auto text-[11px]",FO(L).tone),children:FO(L).text})]}),(0,ge.jsx)(YJ,{entry:L,onKeep:()=>{x(L.name)},onTake:()=>S(L.name)}),(0,ge.jsx)("div",{className:"min-h-0 flex-1",children:Q})]})};if(!y)return(0,ge.jsx)("div",{className:"p-4 text-sm text-muted-foreground",children:"No docs configured."});let k=(0,ge.jsxs)("div",{className:"ml-auto flex items-center gap-2",children:[f==="tabs"&&(0,ge.jsx)("span",{className:Ce("text-[11px]",FO(y).tone),children:FO(y).text}),(0,ge.jsx)(dr,{value:u,onChange:c,options:HJ}),u==="split"&&(0,ge.jsx)(dr,{value:h,onChange:p,options:jJ}),(0,ge.jsx)(dr,{value:f,onChange:d,options:[{value:"tabs",label:"Tabs",title:"One doc at a time"},{value:"tiles",label:"Tiles",title:"Every doc at once"}]})]});return f==="tabs"?(0,ge.jsxs)(M5,{value:s,onValueChange:l,className:"flex min-h-0 min-w-0 flex-1 flex-col bg-card",children:[(0,ge.jsxs)("header",{className:"flex flex-wrap items-center gap-2 border-b border-border px-2 py-1.5",children:[(0,ge.jsx)(D5,{className:"mr-scroll min-w-0 overflow-x-auto",children:a.map(L=>(0,ge.jsxs)(N5,{value:L,children:[Q_(L),n[L]&&n[L].text!==n[L].savedText&&(0,ge.jsx)("span",{className:"size-1.5 rounded-full bg-primary"})]},L))}),k]}),(0,ge.jsx)("div",{className:"flex min-h-0 flex-1 flex-col",children:v(y,!1)})]}):(0,ge.jsxs)("section",{className:"flex min-h-0 min-w-0 flex-1 flex-col bg-card",children:[(0,ge.jsxs)("header",{className:"flex flex-wrap items-center gap-2 border-b border-border px-2 py-1.5",children:[(0,ge.jsx)("span",{className:"px-1 text-sm font-medium",children:"Docs"}),k]}),(0,ge.jsx)("div",{className:"mr-scroll grid min-h-0 flex-1 gap-px overflow-y-auto bg-border",style:C,children:a.map(L=>{let A=n[L];return A?(0,ge.jsx)("div",{className:"flex min-h-0 min-w-0 flex-col overflow-hidden bg-card",children:v(A,!0)},L):null})})]})}var vl=M(ye(),1);var we=M(ae(),1),$5=({children:t})=>(0,we.jsx)("div",{className:"text-[11px] tracking-wide text-muted-foreground uppercase",children:t}),ei=({label:t,value:e})=>(0,we.jsxs)("div",{className:"flex items-baseline justify-between gap-2 text-sm",children:[(0,we.jsx)("span",{className:"text-muted-foreground",children:t}),(0,we.jsx)("span",{className:"text-right font-mono break-all",children:e})]});function WJ({pct:t}){let e=t>=85?"bg-destructive":t>=70?"bg-warning":"bg-success";return(0,we.jsx)("div",{className:"h-2 w-full overflow-hidden rounded-full bg-muted",children:(0,we.jsx)("div",{className:`h-full ${e}`,style:{width:`${P_(t)}%`}})})}function B5({room:t}){let[e,a]=(0,vl.useState)(null),[n,r]=(0,vl.useState)(!1),i=(0,vl.useCallback)(async()=>{r(!0);let c=await lm(t).catch(()=>null);a(c),r(!1)},[t]);(0,vl.useEffect)(()=>{i()},[i]),qt("chat-done",c=>{c.room===t&&i()});let o=e?.stats,s=o?.tokens??null,l=s?s.input+s.cacheRead:0,u=l>0&&s?Math.round(s.cacheRead/l*100):0;return(0,we.jsxs)("section",{className:"flex min-h-0 min-w-0 flex-col bg-card",children:[(0,we.jsxs)("header",{className:"flex items-center gap-2 border-b border-border px-3 py-2",children:[(0,we.jsx)("span",{className:"text-sm font-medium",children:"\u30BB\u30C3\u30B7\u30E7\u30F3"}),n&&(0,we.jsx)(pe,{name:"loader",className:"size-3.5 animate-spin text-muted-foreground"}),(0,we.jsxs)(Qe,{variant:"ghost",size:"xs",className:"ml-auto",onClick:()=>{i()},title:"refresh",children:[(0,we.jsx)(pe,{name:"refresh",className:"size-3.5"}),"refresh"]})]}),(0,we.jsx)("div",{className:"mr-scroll flex flex-1 flex-col gap-3 overflow-y-auto p-3",children:!e||!e.available?(0,we.jsx)("p",{className:"text-sm text-muted-foreground",children:"\u3053\u306E\u90E8\u5C4B\u306E\u30BB\u30C3\u30B7\u30E7\u30F3\u60C5\u5831\u306F opencode \u30A2\u30C0\u30D7\u30BF\u306E\u3068\u304D\u3060\u3051\u8868\u793A\u3057\u307E\u3059\u3002"}):(0,we.jsxs)(we.Fragment,{children:[(0,we.jsx)($5,{children:"\u30BB\u30C3\u30B7\u30E7\u30F3"}),e.context?(0,we.jsxs)(we.Fragment,{children:[(0,we.jsxs)("div",{className:"flex items-baseline justify-between gap-2 text-sm",children:[(0,we.jsx)("span",{className:"text-muted-foreground",children:"\u30B3\u30F3\u30C6\u30AD\u30B9\u30C8"}),(0,we.jsxs)("span",{className:"font-mono",children:[e.context.pct,"% \u30FB ",yu(e.context.used)]})]}),(0,we.jsx)(WJ,{pct:e.context.pct}),e.context.pct>=70&&(0,we.jsxs)("div",{className:"text-xs text-warning",children:[e.context.pct,"% \u2014 compact \u3092\u691C\u8A0E\uFF08\u4E0A\u9650 ",yu(e.context.limit),"\uFF09"]})]}):(0,we.jsx)("div",{className:"text-xs text-muted-foreground",children:"\u30B3\u30F3\u30C6\u30AD\u30B9\u30C8: \u8A08\u6E2C\u3067\u304D\u307E\u305B\u3093\uFF08\u307E\u3060\u5B9F\u884C\u304C\u306A\u3044\u304B\u3001\u4E0A\u9650\u304C\u4E0D\u660E\uFF09"}),(0,we.jsx)(ei,{label:"\u8CBB\u7528",value:o?.cost!=null?`$${Number(o.cost).toFixed(4)}`:"\u2014"}),s&&(0,we.jsxs)(we.Fragment,{children:[(0,we.jsx)(ei,{label:"\u30C8\u30FC\u30AF\u30F3 \u2191",value:yu(s.input)}),(0,we.jsx)(ei,{label:"\u30C8\u30FC\u30AF\u30F3 \u2193",value:yu(s.output)}),(0,we.jsx)(ei,{label:"reasoning",value:yu(s.reasoning)}),(0,we.jsx)(ei,{label:"\u30AD\u30E3\u30C3\u30B7\u30E5",value:`${u}%`})]}),(0,we.jsx)(ei,{label:"\u72B6\u614B",value:o?.outcome??"\u2014"}),o?.model&&(0,we.jsx)(ei,{label:"model",value:o.model}),e.workspace&&(0,we.jsx)(ei,{label:"workspace",value:e.workspace}),e.mcp&&e.mcp.length>0&&(0,we.jsxs)(we.Fragment,{children:[(0,we.jsx)($5,{children:"MCP"}),e.mcp.map(c=>(0,we.jsx)(ei,{label:c.name,value:c.error?`${c.status}: ${c.error}`:c.status},c.name))]}),e.skills&&e.skills.length>0&&(0,we.jsx)(ei,{label:"\u30B9\u30AD\u30EB",value:String(e.skills.length)})]})})]})}var Se=M(ae(),1);function KJ(t){let[e,a]=(0,kn.useState)(()=>window.matchMedia(t).matches);return(0,kn.useEffect)(()=>{let n=window.matchMedia(t),r=()=>a(n.matches);return n.addEventListener("change",r),()=>n.removeEventListener("change",r)},[t]),e}var JJ=t=>/adopt|approv|done|complete|accept/i.test(t??"")?"success":/review/i.test(t??"")?"warning":"muted";function YC(){let t=decodeURIComponent(location.pathname.replace(/^\/room\//,"").split("?")[0]??""),[e,a]=(0,kn.useState)(null),[n,r]=(0,kn.useState)(null),i=PT(t),{status:o,connected:s}=Ef(),l=(0,kn.useCallback)(()=>{(async()=>{try{let k=await E_(t),L=k;L.error||!k.room?r(L.error??"cannot load this room"):a(k)}catch{r("cannot load this room")}})()},[t]);(0,kn.useEffect)(()=>{l()},[l]),qt("chat-done",k=>{k.room===t&&l()});let u=KJ("(max-width: 1023px)"),[c,f]=(0,kn.useState)("chat"),[d,h]=(0,kn.useState)(()=>Qn("modelroom.panels.session",!0));(0,kn.useEffect)(()=>{$n("modelroom.panels.session",d)},[d]);let p=e?.room.title??e?.room.name??t;(0,kn.useEffect)(()=>{document.title=`${p} \u2014 modelroom`},[p]);let g=async()=>{if(i.running||!window.confirm("Start a new session for this room? The conversation context resets."))return;let k=await T_(t);k.sessionId&&(i.setSessionId(k.sessionId),i.notice("new session started"))};if(n)return(0,Se.jsx)("div",{className:"flex h-full items-center justify-center p-6",children:(0,Se.jsxs)("div",{className:"rounded-lg border border-border bg-card p-6 text-center",children:[(0,Se.jsx)("p",{className:"text-sm text-muted-foreground",children:n}),(0,Se.jsx)(Qe,{variant:"outline",size:"sm",className:"mt-3",asChild:!0,children:(0,Se.jsx)("a",{href:"/",children:"\u2190 Rooms"})})]})});if(!e)return(0,Se.jsxs)("div",{className:"flex h-full items-center justify-center gap-2 text-sm text-muted-foreground",children:[(0,Se.jsx)(pe,{name:"loader",className:"size-4 animate-spin"}),"loading room\u2026"]});let{config:b}=e,m=`${b.agent.adapter} \xB7 ${b.agent.command}${b.agent.model?` \xB7 ${b.agent.model}`:""}`,O=i.sessionId?`session ${i.sessionId.slice(0,16)}\u2026`:"",x=o?.phase==="chat"||o?.phase==="rendering",S=(0,Se.jsx)(R2,{room:t,chat:i,agentLabel:m}),y=(0,Se.jsx)(Q5,{room:t,roomsPath:b.rooms,docs:b.docs},t),C=(0,Se.jsx)(dI,{room:t,roomsPath:b.rooms,artifact:b.artifact,info:e.room}),v=(0,Se.jsx)(B5,{room:t});return(0,Se.jsxs)("div",{className:"flex h-full flex-col bg-background",children:[(0,Se.jsxs)("div",{className:"flex h-12 shrink-0 items-center gap-2 border-b border-border bg-card px-3",children:[(0,Se.jsx)(Qe,{variant:"ghost",size:"sm",asChild:!0,children:(0,Se.jsxs)("a",{href:"/",children:[(0,Se.jsx)(pe,{name:"arrow-left",className:"size-4"}),"Rooms"]})}),(0,Se.jsx)("span",{className:"truncate font-semibold",children:p}),(0,Se.jsxs)(bt,{variant:"outline",className:"hidden font-mono md:inline-flex",children:[b.rooms,"/",e.room.name]}),e.room.status&&(0,Se.jsx)(bt,{variant:JJ(e.room.status),children:e.room.status}),(0,Se.jsxs)("div",{className:"ml-auto flex items-center gap-1.5",children:[(0,Se.jsx)("span",{className:"hidden font-mono text-[11px] text-muted-foreground lg:inline",children:O}),(0,Se.jsxs)(Qe,{variant:"ghost",size:"xs",onClick:()=>{g()},disabled:i.running,children:[(0,Se.jsx)(pe,{name:"plus",className:"size-3.5"}),"new session"]}),(0,Se.jsx)(Cu,{}),!u&&(0,Se.jsx)(Qe,{variant:"ghost",size:"icon-xs",className:Ce(d&&"bg-muted text-foreground"),title:d?"Hide session panel":"Show session panel",onClick:()=>h(k=>!k),children:(0,Se.jsx)(pe,{name:"panel-right",className:"size-4"})}),(0,Se.jsxs)(bt,{variant:"outline",className:Ce(!s&&"border-destructive text-destructive"),children:[x?(0,Se.jsx)(pe,{name:"loader",className:"size-3 animate-spin"}):(0,Se.jsx)("span",{className:Ce("size-1.5 rounded-full",s?"bg-success":"bg-destructive")}),s?o?.message??"ready":"reconnecting\u2026"]})]})]}),u?(0,Se.jsxs)(Se.Fragment,{children:[(0,Se.jsx)("div",{className:"flex shrink-0 items-center gap-2 border-b border-border bg-card px-3 py-1.5",children:(0,Se.jsx)(dr,{value:c,onChange:f,options:[{value:"chat",label:"Chat"},{value:"docs",label:"Docs"},{value:"artifact",label:"Artifact"},{value:"session",label:"Session"}]})}),(0,Se.jsx)("main",{className:"flex min-h-0 flex-1 flex-col",children:c==="chat"?S:c==="docs"?y:c==="artifact"?C:v})]}):(0,Se.jsx)("main",{className:"flex min-h-0 flex-1",children:(0,Se.jsxs)(vc,{direction:"horizontal",autoSaveId:"modelroom.room.layout",children:[(0,Se.jsx)(ar,{defaultSize:24,minSize:16,children:S}),(0,Se.jsx)($i,{}),(0,Se.jsx)(ar,{defaultSize:28,minSize:18,children:y}),(0,Se.jsx)($i,{}),(0,Se.jsx)(ar,{defaultSize:30,minSize:20,children:C}),d&&(0,Se.jsxs)(Se.Fragment,{children:[(0,Se.jsx)($i,{}),(0,Se.jsx)(ar,{defaultSize:18,minSize:14,children:v})]})]})})]})}var j5=M(ye(),1);var X5=M(ye(),1);var q5=M(ae(),1),eee=Object.defineProperty,U5=(t,e)=>eee(t,"name",{value:e,configurable:!0}),WC={Horizontal:"horizontal",Vertical:"vertical"},z5=WC.Horizontal,tee=Object.values(WC),Z5=X5.forwardRef(U5(function(e,a){let{decorative:n,orientation:r=z5,...i}=e,o=F5(r)?r:z5,s=o===WC.Vertical?o:void 0,l=n?{role:"none"}:{"aria-orientation":s,role:"separator"};return(0,q5.jsx)(ta.div,{"data-orientation":o,...l,...i,ref:a})},"Separator"));function F5(t){return tee.includes(t)}U5(F5,"isValidOrientation");var H5=M(ae(),1);function G5({className:t,orientation:e="horizontal",decorative:a=!0,...n}){return(0,H5.jsx)(Z5,{"data-slot":"separator",decorative:a,orientation:e,className:Ce("shrink-0 bg-border",e==="horizontal"?"h-px w-full":"h-full w-px",t),...n})}var G=M(ae(),1),nee="The sign-in room is **two states**, not one:\n\n- `idle` \u2014 the form, the primary action disabled until both fields are filled.\n- `error` \u2014 the same form, with one plain sentence above it.\n\n```ts\nexport type SignInState = 'idle' | 'submitting' | 'error';\n```\n",ree=`# Spec
60
+
61
+ What the artifact cannot show.
62
+
63
+ | Key | Value |
64
+ | --- | --- |
65
+ | device | tablet 1024 |
66
+ | states | idle, error |
67
+
68
+ > A statement lives in one file.
69
+ `;function Bi({title:t,hint:e,children:a}){return(0,G.jsxs)("section",{className:"rounded-lg border border-border bg-card p-5",children:[(0,G.jsx)("h2",{className:"text-sm font-semibold",children:t}),e&&(0,G.jsx)("p",{className:"mt-0.5 mb-3 text-xs text-muted-foreground",children:e}),(0,G.jsx)("div",{className:"mt-3",children:a})]})}function iee(){let[t,e]=(0,j5.useState)("split");return(0,G.jsxs)("div",{className:"flex flex-wrap items-center gap-3",children:[(0,G.jsx)(dr,{value:t,onChange:e,options:[{value:"edit",label:(0,G.jsx)(pe,{name:"pencil",className:"size-3.5"}),title:"Edit"},{value:"split",label:(0,G.jsx)(pe,{name:"columns",className:"size-3.5"}),title:"Edit and preview"},{value:"preview",label:(0,G.jsx)(pe,{name:"eye",className:"size-3.5"}),title:"Preview"}]}),(0,G.jsxs)("span",{className:"font-mono text-xs text-muted-foreground",children:["value: ",t]})]})}function V5(){return(0,G.jsxs)("div",{className:"mx-auto flex w-full max-w-5xl flex-col gap-5 p-5",children:[(0,G.jsxs)("header",{className:"flex items-center gap-2",children:[(0,G.jsx)(pe,{name:"sparkles",className:"size-5 text-primary"}),(0,G.jsx)("h1",{className:"text-lg font-semibold",children:"modelroom \xB7 workshop"}),(0,G.jsx)(Qe,{variant:"ghost",size:"sm",className:"ml-auto",asChild:!0,children:(0,G.jsx)("a",{href:"/",children:"\u2190 Rooms"})})]}),(0,G.jsx)(Bi,{title:"Icons",hint:"lucide-react, behind a name \u2014 the set shadcn uses. `size-4` unless a caller says otherwise.",children:(0,G.jsx)("div",{className:"flex flex-wrap gap-3",children:eT.map(t=>(0,G.jsxs)("div",{className:"flex w-16 flex-col items-center gap-1",children:[(0,G.jsx)(pe,{name:t,className:"size-5"}),(0,G.jsx)("span",{className:"font-mono text-[10px] text-muted-foreground",children:t})]},t))})}),(0,G.jsx)(Bi,{title:"Segmented (ToggleGroup)",hint:"Radix ToggleGroup under a named wrapper: modes, orientation, layout.",children:(0,G.jsx)(iee,{})}),(0,G.jsx)(Bi,{title:"Button & Badge",hint:"shadcn/ui source, our tokens.",children:(0,G.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,G.jsx)("div",{className:"flex flex-wrap items-center gap-2",children:["default","secondary","outline","ghost","destructive","link"].map(t=>(0,G.jsx)(Qe,{variant:t,size:"sm",children:t},t))}),(0,G.jsxs)("div",{className:"flex flex-wrap items-center gap-2",children:[["default","secondary","outline","muted","success","warning","destructive"].map(t=>(0,G.jsx)(bt,{variant:t,children:t},t)),(0,G.jsx)(Qe,{size:"icon-sm",variant:"outline",title:"icon button",children:(0,G.jsx)(pe,{name:"refresh",className:"size-3.5"})}),(0,G.jsx)(Km,{text:"npx modelroom serve",label:"copy command"}),(0,G.jsxs)(Qe,{size:"sm",disabled:!0,children:[(0,G.jsx)(pe,{name:"loader",className:"size-3.5 animate-spin"}),"working"]})]}),(0,G.jsxs)("div",{className:"flex items-center gap-2",children:[(0,G.jsx)(ki,{className:"h-4 w-40"}),(0,G.jsx)(ki,{className:"h-4 w-24"}),(0,G.jsx)(ki,{className:"size-8 rounded-full"})]})]})}),(0,G.jsx)(Bi,{title:"Markdown \u2014 chat",hint:"markdown-it with raw HTML disabled; code fences get a copy button.",children:(0,G.jsx)("div",{className:"max-w-[42rem] rounded-2xl rounded-tl-sm border border-border bg-card px-3 py-2 shadow-xs",children:(0,G.jsx)(Hs,{source:nee,className:Xs})})}),(0,G.jsx)(Bi,{title:"Markdown \u2014 doc preview",hint:"Frontmatter is split out by the panel, not here.",children:(0,G.jsx)("div",{className:"max-w-[42rem] rounded-lg border border-border p-4",children:(0,G.jsx)(Hs,{source:ree,render:Wm,className:Xs})})}),(0,G.jsx)(Bi,{title:"Form controls",hint:"Input, Checkbox (Radix), Select \u2014 the dashboard's facets and the settings form.",children:(0,G.jsxs)("div",{className:"grid max-w-2xl gap-4 sm:grid-cols-2",children:[(0,G.jsxs)("label",{className:"flex flex-col gap-1.5",children:[(0,G.jsx)("span",{className:"text-sm font-medium",children:"Command"}),(0,G.jsx)(_o,{placeholder:"opencode",defaultValue:"opencode",className:"font-mono"})]}),(0,G.jsxs)("label",{className:"flex flex-col gap-1.5",children:[(0,G.jsx)("span",{className:"text-sm font-medium",children:"Model"}),(0,G.jsxs)(Eu,{defaultValue:"default",children:[(0,G.jsx)("option",{value:"default",children:"let the agent decide"}),(0,G.jsx)("option",{value:"fast",children:"fast"})]})]}),(0,G.jsxs)("label",{className:"flex items-center gap-2 text-sm",children:[(0,G.jsx)(Ao,{defaultChecked:!0}),(0,G.jsx)("span",{className:"text-muted-foreground",children:"archived (2)"})]}),(0,G.jsxs)("label",{className:"flex items-center gap-2 text-sm",children:[(0,G.jsx)(Ao,{}),(0,G.jsx)("span",{className:"text-muted-foreground",children:"unchecked"})]})]})}),(0,G.jsx)(Bi,{title:"Card",hint:"The dashboard's surfaces.",children:(0,G.jsxs)(yi,{className:"max-w-md",children:[(0,G.jsx)(Lo,{children:(0,G.jsx)(Eo,{children:"No rooms yet"})}),(0,G.jsxs)(vi,{className:"text-sm text-muted-foreground",children:["A room is one screen: ",(0,G.jsx)("code",{className:"font-mono",children:"rooms/<name>/"}),"."]})]})}),(0,G.jsx)(Bi,{title:"Resizable",hint:"react-resizable-panels \u2014 the room's columns and the docs split.",children:(0,G.jsxs)(vc,{direction:"horizontal",className:"h-28 overflow-hidden rounded-lg border border-border",children:[(0,G.jsx)(ar,{defaultSize:30,minSize:15,children:(0,G.jsx)("div",{className:Ce("grid h-full place-items-center bg-muted/30 text-xs text-muted-foreground"),children:"chat"})}),(0,G.jsx)($i,{withHandle:!0}),(0,G.jsx)(ar,{defaultSize:40,minSize:15,children:(0,G.jsx)("div",{className:"grid h-full place-items-center text-xs text-muted-foreground",children:"docs"})}),(0,G.jsx)($i,{}),(0,G.jsx)(ar,{defaultSize:30,minSize:15,children:(0,G.jsx)("div",{className:"grid h-full place-items-center bg-muted/30 text-xs text-muted-foreground",children:"artifact"})})]})}),(0,G.jsx)(Bi,{title:"Separator",children:(0,G.jsxs)("div",{className:"flex h-16 items-center gap-4 rounded-lg border border-border px-4",children:[(0,G.jsx)("span",{className:"text-xs text-muted-foreground",children:"before"}),(0,G.jsx)(G5,{orientation:"vertical"}),(0,G.jsx)("span",{className:"text-xs text-muted-foreground",children:"after"})]})})]})}var JC=M(ae(),1),oee={room:YC,dashboard:TT,settings:IT,kit:V5},KC=document.getElementById("root");if(KC){let t=KC.dataset.app??"room",e=oee[t]??YC;(0,Y5.createRoot)(KC).render((0,JC.jsx)(k_,{children:(0,JC.jsx)(e,{})}))}