(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[69811],{83619:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>a}),r(88048);var n=r(52751);let i=n["undefined"!=typeof document&&void 0!==document.createElement?"useLayoutEffect":"useEffect"],s=new Map;function o(e){let{root:t,...r}=e,n=JSON.stringify(r),i=s.get(t);return i||(i={},s.set(t,i)),i[n]?i[n]:i[n]=function({root:e=null,pollInterval:t=null,useMutationObserver:r=!1,rootMargin:n="0px 0px 0px 0px",threshold:i=0}){let s=new Set;if("undefined"==typeof IntersectionObserver)return null;let o=new IntersectionObserver(e=>{for(let t of s)t(e,o)},{root:e,rootMargin:n,threshold:i});return o.POLL_INTERVAL=t,o.USE_MUTATION_OBSERVER=r,{observer:o,getListeners:()=>s,subscribe:e=>s.add(e),unsubscribe:e=>s.delete(e)}}(e)}let a=function(e,t={}){let{root:r=null,pollInterval:s=null,useMutationObserver:a=!1,rootMargin:l="0px 0px 0px 0px",threshold:O=0,initialIsIntersecting:h=!1}=t,[c,u]=n.useState(()=>({boundingClientRect:null,intersectionRatio:0,intersectionRect:null,isIntersecting:h,rootBounds:null,target:null,time:0})),[f,p]=n.useState(()=>o({root:r,pollInterval:s,useMutationObserver:a,rootMargin:l,threshold:O}));return n.useEffect(()=>{p(o({root:r,pollInterval:s,useMutationObserver:a,rootMargin:l,threshold:O}))},[r,l,s,a,JSON.stringify(O)]),i(()=>{let t=e&&"current"in e?e.current:e;if(!f||!t)return;let r=!1;f.observer.observe(t);let n=e=>{if(!r)for(let r=0;r{r=!0,f.observer.unobserve(t),f.unsubscribe(n)}},[e,f]),c}},86685:e=>{"use strict";var t=function(){function e(e,t){for(var r=0;r\"]/gm,function(e){return"&"==e?"&":'"'==e?""":"<"==e?"<":">"==e?">":""})}},{key:"linkify",value:function(e){return e.replace(/(https?:\/\/[^\s]+)/gm,function(e){return''+e+""})}},{key:"ansiToHtml",value:function(e,t){return this.process(e,t,!0)}},{key:"ansiToJson",value:function(e,t){return(t=t||{}).json=!0,t.clearLine=!1,this.process(e,t,!0)}},{key:"ansiToText",value:function(e){return this.process(e,{},!1)}},{key:"process",value:function(e,t,r){var n=this,i=e.split(/\033\[/),s=i.shift();null==t&&(t={}),t.clearLine=/\r/.test(e);var o=i.map(function(e){return n.processChunk(e,t,r)});if(t&&t.json){var a=this.processChunkJson("");return a.content=s,a.clearLine=t.clearLine,o.unshift(a),t.remove_empty&&(o=o.filter(function(e){return!e.isEmpty()})),o}return o.unshift(s),o.join("")}},{key:"processChunkJson",value:function(e,t,n){var i=(t=void 0===t?{}:t).use_classes=void 0!==t.use_classes&&t.use_classes,s=t.key=i?"class":"color",o={content:e,fg:null,bg:null,fg_truecolor:null,bg_truecolor:null,isInverted:!1,clearLine:t.clearLine,decoration:null,decorations:[],was_processed:!1,isEmpty:function(){return!o.content}},a=e.match(/^([!\x3c-\x3f]*)([\d;]*)([\x20-\x2c]*[\x40-\x7e])([\s\S]*)/m);if(!a)return o;o.content=a[4];var l=a[2].split(";");if(""!==a[1]||"m"!==a[3]||!n)return o;for(;l.length>0;){var O=parseInt(l.shift());if(isNaN(O)||0===O)this.fg=this.bg=null,this.decorations=[];else if(1===O)this.decorations.push("bold");else if(2===O)this.decorations.push("dim");else if(3===O)this.decorations.push("italic");else if(4===O)this.decorations.push("underline");else if(5===O)this.decorations.push("blink");else if(7===O)this.decorations.push("reverse");else if(8===O)this.decorations.push("hidden");else if(9===O)this.decorations.push("strikethrough");else if(21===O)this.removeDecoration("bold");else if(22===O)this.removeDecoration("bold"),this.removeDecoration("dim");else if(23===O)this.removeDecoration("italic");else if(24===O)this.removeDecoration("underline");else if(25===O)this.removeDecoration("blink");else if(27===O)this.removeDecoration("reverse");else if(28===O)this.removeDecoration("hidden");else if(29===O)this.removeDecoration("strikethrough");else if(39===O)this.fg=null;else if(49===O)this.bg=null;else if(O>=30&&O<38)this.fg=r[0][O%10][s];else if(O>=90&&O<98)this.fg=r[1][O%10][s];else if(O>=40&&O<48)this.bg=r[0][O%10][s];else if(O>=100&&O<108)this.bg=r[1][O%10][s];else if(38===O||48===O){var h=38===O;if(l.length>=1){var c=l.shift();if("5"===c&&l.length>=1){var u=parseInt(l.shift());if(u>=0&&u<=255){if(i){var f=u>=16?"ansi-palette-"+u:r[u>7?1:0][u%8].class;h?this.fg=f:this.bg=f}else this.PALETTE_COLORS||this.setupPalette(),h?this.fg=this.PALETTE_COLORS[u]:this.bg=this.PALETTE_COLORS[u]}}else if("2"===c&&l.length>=3){var p=parseInt(l.shift()),d=parseInt(l.shift()),g=parseInt(l.shift());if(p>=0&&p<=255&&d>=0&&d<=255&&g>=0&&g<=255){var m=p+", "+d+", "+g;i?h?(this.fg="ansi-truecolor",this.fg_truecolor=m):(this.bg="ansi-truecolor",this.bg_truecolor=m):h?this.fg=m:this.bg=m}}}}}return null===this.fg&&null===this.bg&&0===this.decorations.length||(o.fg=this.fg,o.bg=this.bg,o.fg_truecolor=this.fg_truecolor,o.bg_truecolor=this.bg_truecolor,o.decorations=this.decorations,o.decoration=this.decorations.slice(-1).pop()||null,o.was_processed=!0),o}},{key:"processChunk",value:function(e,t,n){var i=this;t=t||{};var s=this.processChunkJson(e,t,n),o=t.use_classes;if(s.decorations=s.decorations.filter(function(e){if("reverse"===e){s.fg||(s.fg=r[0][7][o?"class":"color"]),s.bg||(s.bg=r[0][0][o?"class":"color"]);var t=s.fg;s.fg=s.bg,s.bg=t;var n=s.fg_truecolor;return s.fg_truecolor=s.bg_truecolor,s.bg_truecolor=n,s.isInverted=!0,!1}return!0}),t.json)return s;if(s.isEmpty())return"";if(!s.was_processed)return s.content;var a=[],l=[],O=[],h={},c=function(e){var t=[],r=void 0;for(r in e)e.hasOwnProperty(r)&&t.push("data-"+r+'="'+i.escapeForHtml(e[r])+'"');return t.length>0?" "+t.join(" "):""};return(s.isInverted&&(h["ansi-is-inverted"]="true"),s.fg&&(o?(a.push(s.fg+"-fg"),null!==s.fg_truecolor&&(h["ansi-truecolor-fg"]=s.fg_truecolor,s.fg_truecolor=null)):a.push("color:rgb("+s.fg+")")),s.bg&&(o?(a.push(s.bg+"-bg"),null!==s.bg_truecolor&&(h["ansi-truecolor-bg"]=s.bg_truecolor,s.bg_truecolor=null)):a.push("background-color:rgb("+s.bg+")")),s.decorations.forEach(function(e){if(o){l.push("ansi-"+e);return}"bold"===e?l.push("font-weight:bold"):"dim"===e?l.push("opacity:0.5"):"italic"===e?l.push("font-style:italic"):"hidden"===e?l.push("visibility:hidden"):"strikethrough"===e?O.push("line-through"):O.push(e)}),O.length&&l.push("text-decoration:"+O.join(" ")),o)?'"+s.content+"":'"+s.content+""}},{key:"removeDecoration",value:function(e){var t=this.decorations.indexOf(e);t>=0&&this.decorations.splice(t,1)}}]),e}();e.exports=n},51188:(e,t,r)=>{"use strict";function n(e){var t=e&&e.pop?[]:{};for(var r in e)t[r]=e[r];return t}function i(e,t,r){t.split&&(t=t.split("."));for(var i=n(e),s=i,o=0,a=t.length;oi})},35126:e=>{function t(e){if(!e)return"";if(!/\r/.test(e))return e;for(e=e.replace(/\r+\n/gm,"\n");/\r./.test(e);)e=e.replace(/^([^\r\n]*)\r+([^\r\n]+)/gm,function(e,t,r){return r+t.slice(r.length)});return e}function r(e){if(!/\r/.test(e))return e;for(var t=e.split("\r"),r=[];t.length>0;){var n=function(e){for(var t=0,r=0;r{!function(){"use strict";if("object"==typeof window){if("IntersectionObserver"in window&&"IntersectionObserverEntry"in window&&"intersectionRatio"in window.IntersectionObserverEntry.prototype){"isIntersecting"in window.IntersectionObserverEntry.prototype||Object.defineProperty(window.IntersectionObserverEntry.prototype,"isIntersecting",{get:function(){return this.intersectionRatio>0}});return}var e=window.document,t=[],r=null,n=null;s.prototype.THROTTLE_TIMEOUT=100,s.prototype.POLL_INTERVAL=null,s.prototype.USE_MUTATION_OBSERVER=!0,s._setupCrossOriginUpdater=function(){return r||(r=function(e,r){n=e&&r?c(e,r):O(),t.forEach(function(e){e._checkForIntersections()})}),r},s._resetCrossOriginUpdater=function(){r=null,n=null},s.prototype.observe=function(e){if(!this._observationTargets.some(function(t){return t.element==e})){if(!(e&&1==e.nodeType))throw Error("target must be an Element");this._registerInstance(),this._observationTargets.push({element:e,entry:null}),this._monitorIntersections(e.ownerDocument),this._checkForIntersections()}},s.prototype.unobserve=function(e){this._observationTargets=this._observationTargets.filter(function(t){return t.element!=e}),this._unmonitorIntersections(e.ownerDocument),0==this._observationTargets.length&&this._unregisterInstance()},s.prototype.disconnect=function(){this._observationTargets=[],this._unmonitorAllIntersections(),this._unregisterInstance()},s.prototype.takeRecords=function(){var e=this._queuedEntries.slice();return this._queuedEntries=[],e},s.prototype._initThresholds=function(e){var t=e||[0];return Array.isArray(t)||(t=[t]),t.sort().filter(function(e,t,r){if("number"!=typeof e||isNaN(e)||e<0||e>1)throw Error("threshold must be a number between 0 and 1 inclusively");return e!==r[t-1]})},s.prototype._parseRootMargin=function(e){var t=(e||"0px").split(/\s+/).map(function(e){var t=/^(-?\d*\.?\d+)(px|%)$/.exec(e);if(!t)throw Error("rootMargin must be specified in pixels or percent");return{value:parseFloat(t[1]),unit:t[2]}});return t[1]=t[1]||t[0],t[2]=t[2]||t[0],t[3]=t[3]||t[1],t},s.prototype._monitorIntersections=function(t){var r=t.defaultView;if(r&&-1==this._monitoringDocuments.indexOf(t)){var n=this._checkForIntersections,i=null,s=null;if(this.POLL_INTERVAL?i=r.setInterval(n,this.POLL_INTERVAL):(o(r,"resize",n,!0),o(t,"scroll",n,!0),this.USE_MUTATION_OBSERVER&&"MutationObserver"in r&&(s=new r.MutationObserver(n)).observe(t,{attributes:!0,childList:!0,characterData:!0,subtree:!0})),this._monitoringDocuments.push(t),this._monitoringUnsubscribes.push(function(){var e=t.defaultView;e&&(i&&e.clearInterval(i),a(e,"resize",n,!0)),a(t,"scroll",n,!0),s&&s.disconnect()}),t!=(this.root&&this.root.ownerDocument||e)){var l=p(t);l&&this._monitorIntersections(l.ownerDocument)}}},s.prototype._unmonitorIntersections=function(t){var r=this._monitoringDocuments.indexOf(t);if(-1!=r){var n=this.root&&this.root.ownerDocument||e;if(!this._observationTargets.some(function(e){var r=e.element.ownerDocument;if(r==t)return!0;for(;r&&r!=n;){var i=p(r);if((r=i&&i.ownerDocument)==t)return!0}return!1})){var i=this._monitoringUnsubscribes[r];if(this._monitoringDocuments.splice(r,1),this._monitoringUnsubscribes.splice(r,1),i(),t!=n){var s=p(t);s&&this._unmonitorIntersections(s.ownerDocument)}}}},s.prototype._unmonitorAllIntersections=function(){var e=this._monitoringUnsubscribes.slice(0);this._monitoringDocuments.length=0,this._monitoringUnsubscribes.length=0;for(var t=0;t=0&&a>=0&&{top:r,bottom:n,left:i,right:s,width:o,height:a}||null}(h,o)),!o)break;a=a&&f(a)}return o}},s.prototype._getRootRect=function(){var t;if(this.root)t=l(this.root);else{var r=e.documentElement,n=e.body;t={top:0,left:0,right:r.clientWidth||n.clientWidth,width:r.clientWidth||n.clientWidth,bottom:r.clientHeight||n.clientHeight,height:r.clientHeight||n.clientHeight}}return this._expandRectByRootMargin(t)},s.prototype._expandRectByRootMargin=function(e){var t=this._rootMarginValues.map(function(t,r){return"px"==t.unit?t.value:t.value*(r%2?e.width:e.height)/100}),r={top:e.top-t[0],right:e.right+t[1],bottom:e.bottom+t[2],left:e.left-t[3]};return r.width=r.right-r.left,r.height=r.bottom-r.top,r},s.prototype._hasCrossedThreshold=function(e,t){var r=e&&e.isIntersecting?e.intersectionRatio||0:-1,n=t.isIntersecting?t.intersectionRatio||0:-1;if(r!==n)for(var i=0;it.indexOf(this)&&t.push(this)},s.prototype._unregisterInstance=function(){var e=t.indexOf(this);-1!=e&&t.splice(e,1)},window.IntersectionObserver=s,window.IntersectionObserverEntry=i}function i(e){this.time=e.time,this.target=e.target,this.rootBounds=h(e.rootBounds),this.boundingClientRect=h(e.boundingClientRect),this.intersectionRect=h(e.intersectionRect||O()),this.isIntersecting=!!e.intersectionRect;var t=this.boundingClientRect,r=t.width*t.height,n=this.intersectionRect,i=n.width*n.height;r?this.intersectionRatio=Number((i/r).toFixed(4)):this.intersectionRatio=this.isIntersecting?1:0}function s(e,t){var r,n,i,s=t||{};if("function"!=typeof e)throw Error("callback must be a function");if(s.root&&1!=s.root.nodeType)throw Error("root must be an Element");this._checkForIntersections=(r=this._checkForIntersections.bind(this),n=this.THROTTLE_TIMEOUT,i=null,function(){i||(i=setTimeout(function(){r(),i=null},n))}),this._callback=e,this._observationTargets=[],this._queuedEntries=[],this._rootMarginValues=this._parseRootMargin(s.rootMargin),this.thresholds=this._initThresholds(s.threshold),this.root=s.root||null,this.rootMargin=this._rootMarginValues.map(function(e){return e.value+e.unit}).join(" "),this._monitoringDocuments=[],this._monitoringUnsubscribes=[]}function o(e,t,r,n){"function"==typeof e.addEventListener?e.addEventListener(t,r,n||!1):"function"==typeof e.attachEvent&&e.attachEvent("on"+t,r)}function a(e,t,r,n){"function"==typeof e.removeEventListener?e.removeEventListener(t,r,n||!1):"function"==typeof e.detatchEvent&&e.detatchEvent("on"+t,r)}function l(e){var t;try{t=e.getBoundingClientRect()}catch(e){}return t?(t.width&&t.height||(t={top:t.top,right:t.right,bottom:t.bottom,left:t.left,width:t.right-t.left,height:t.bottom-t.top}),t):O()}function O(){return{top:0,bottom:0,left:0,right:0,width:0,height:0}}function h(e){return!e||"x"in e?e:{top:e.top,y:e.top,bottom:e.bottom,left:e.left,x:e.left,right:e.right,width:e.width,height:e.height}}function c(e,t){var r=t.top-e.top,n=t.left-e.left;return{top:r,left:n,height:t.height,width:t.width,bottom:r+t.height,right:n+t.width}}function u(e,t){for(var r=t;r;){if(r==e)return!0;r=f(r)}return!1}function f(t){var r=t.parentNode;return 9==t.nodeType&&t!=e?p(t):r&&11==r.nodeType&&r.host?r.host:r&&r.assignedSlot?r.assignedSlot.parentNode:r}function p(e){try{return e.defaultView&&e.defaultView.frameElement||null}catch(e){return null}}}()},76696:(e,t,r)=>{var n,i=function(){var e=String.fromCharCode,t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-$",n={};function i(e,t){if(!n[e]){n[e]={};for(var r=0;r>>8,r[2*n+1]=o%256}return r},decompressFromUint8Array:function(t){if(null==t)return s.decompress(t);for(var r=Array(t.length/2),n=0,i=r.length;nh.charCodeAt(0)){for(n=0;n>=1}else{for(n=0,i=1;n>=1}0==--c&&(c=Math.pow(2,f),f++),delete a[h]}else for(n=0,i=o[h];n>=1;0==--c&&(c=Math.pow(2,f),f++),o[O]=u++,h=String(l)}if(""!==h){if(Object.prototype.hasOwnProperty.call(a,h)){if(256>h.charCodeAt(0)){for(n=0;n>=1}else{for(n=0,i=1;n>=1}0==--c&&(c=Math.pow(2,f),f++),delete a[h]}else for(n=0,i=o[h];n>=1;0==--c&&(c=Math.pow(2,f),f++)}for(n=0,i=2;n>=1;for(;;){if(d<<=1,g==t-1){p.push(r(d));break}g++}return p.join("")},decompress:function(e){return null==e?"":""==e?null:s._decompress(e.length,32768,function(t){return e.charCodeAt(t)})},_decompress:function(t,r,n){var i,s,o,a,l,O,h,c=[],u=4,f=4,p=3,d="",g=[],m={val:n(0),position:r,index:1};for(i=0;i<3;i+=1)c[i]=i;for(o=0,l=4,O=1;O!=l;)a=m.val&m.position,m.position>>=1,0==m.position&&(m.position=r,m.val=n(m.index++)),o|=(a>0?1:0)*O,O<<=1;switch(o){case 0:for(o=0,l=256,O=1;O!=l;)a=m.val&m.position,m.position>>=1,0==m.position&&(m.position=r,m.val=n(m.index++)),o|=(a>0?1:0)*O,O<<=1;h=e(o);break;case 1:for(o=0,l=65536,O=1;O!=l;)a=m.val&m.position,m.position>>=1,0==m.position&&(m.position=r,m.val=n(m.index++)),o|=(a>0?1:0)*O,O<<=1;h=e(o);break;case 2:return""}for(c[3]=h,s=h,g.push(h);;){if(m.index>t)return"";for(o=0,l=Math.pow(2,p),O=1;O!=l;)a=m.val&m.position,m.position>>=1,0==m.position&&(m.position=r,m.val=n(m.index++)),o|=(a>0?1:0)*O,O<<=1;switch(h=o){case 0:for(o=0,l=256,O=1;O!=l;)a=m.val&m.position,m.position>>=1,0==m.position&&(m.position=r,m.val=n(m.index++)),o|=(a>0?1:0)*O,O<<=1;c[f++]=e(o),h=f-1,u--;break;case 1:for(o=0,l=65536,O=1;O!=l;)a=m.val&m.position,m.position>>=1,0==m.position&&(m.position=r,m.val=n(m.index++)),o|=(a>0?1:0)*O,O<<=1;c[f++]=e(o),h=f-1,u--;break;case 2:return g.join("")}if(0==u&&(u=Math.pow(2,p),p++),c[h])d=c[h];else{if(h!==f)return null;d=s+s.charAt(0)}g.push(d),c[f++]=s+d.charAt(0),u--,s=d,0==u&&(u=Math.pow(2,p),p++)}}};return s}();void 0!==(n=(function(){return i}).call(t,r,t,e))&&(e.exports=n)},2908:(e,t,r)=>{"use strict";r.d(t,{Ar:()=>O,Bc:()=>eu,Gw:()=>ee,et:()=>l,wm:()=>eo});var n=r(95151),i=r(66855),s=r(38380);class o{constructor(e,t,r){this.state=e,this.pos=t,this.explicit=r,this.abortListeners=[]}tokenBefore(e){let t=(0,s.mv)(this.state).resolveInner(this.pos,-1);for(;t&&0>e.indexOf(t.name);)t=t.parent;return t?{from:t.from,to:this.pos,text:this.state.sliceDoc(t.from,this.pos),type:t.type}:null}matchBefore(e){let t=this.state.doc.lineAt(this.pos),r=Math.max(t.from,this.pos-250),n=t.text.slice(r-t.from,this.pos-t.from),i=n.search(u(e,!1));return i<0?null:{from:r+i,to:this.pos,text:n.slice(i)}}get aborted(){return null==this.abortListeners}addEventListener(e,t){"abort"==e&&this.abortListeners&&this.abortListeners.push(t)}}function a(e){let t=Object.keys(e).join(""),r=/\w/.test(t);return r&&(t=t.replace(/\w/g,"")),`[${r?"\\w":""}${t.replace(/[^\w\s]/g,"\\$&")}]`}function l(e){let t=e.map(e=>"string"==typeof e?{label:e}:e),[r,n]=t.every(e=>/^\w+$/.test(e.label))?[/\w*$/,/\w+$/]:function(e){let t=Object.create(null),r=Object.create(null);for(let{label:n}of e){t[n[0]]=!0;for(let e=1;e{let i=e.matchBefore(n);return i||e.explicit?{from:i?i.from:e.pos,options:t,validFor:r}:null}}function O(e,t){return r=>{for(let t=(0,s.mv)(r.state).resolveInner(r.pos,-1);t;t=t.parent){if(e.indexOf(t.name)>-1)return null;if(t.type.isTop)break}return t(r)}}class h{constructor(e,t,r,n){this.completion=e,this.source=t,this.match=r,this.score=n}}function c(e){return e.selection.main.from}function u(e,t){var r;let{source:n}=e,i=t&&"^"!=n[0],s="$"!=n[n.length-1];return i||s?RegExp(`${i?"^":""}(?:${n})${s?"$":""}`,null!==(r=e.flags)&&void 0!==r?r:e.ignoreCase?"i":""):e}let f=n.YH.define(),p=new WeakMap;function d(e){if(!Array.isArray(e))return e;let t=p.get(e);return t||p.set(e,t=l(e)),t}let g=n.Pe.define(),m=n.Pe.define();class Q{constructor(e){this.pattern=e,this.chars=[],this.folded=[],this.any=[],this.precise=[],this.byWord=[],this.score=0,this.matched=[];for(let t=0;t=48&&O<=57||O>=97&&O<=122?2:O>=65&&O<=90?1:0:($=(0,n.MK)(O))!=$.toLowerCase()?1:$!=$.toUpperCase()?2:0;(!i||1==b&&g||0==Q&&0!=b)&&(t[c]==O||r[c]==O&&(u=!0)?o[c++]=i:o.length&&(m=!1)),Q=b,i+=(0,n.Fh)(O)}return c==l&&0==o[0]&&m?this.result(-100+(u?-200:0),o,e):f==l&&0==p?this.ret(-200-e.length+(d==e.length?0:-100),[0,d]):a>-1?this.ret(-700-e.length,[a,a+this.pattern.length]):f==l?this.ret(-900-e.length,[p,d]):c==l?this.result(-100+(u?-200:0)+-700+(m?0:-1100),o,e):2==t.length?null:this.result((i[0]?-700:0)+-200+-1100,i,e)}result(e,t,r){let i=[],s=0;for(let e of t){let t=e+(this.astral?(0,n.Fh)((0,n.vS)(r,e)):1);s&&i[s-1]==e?i[s-1]=t:(i[s++]=e,i[s++]=t)}return this.ret(e-r.length,i)}}class ${constructor(e){this.pattern=e,this.matched=[],this.score=0,this.folded=e.toLowerCase()}match(e){if(e.length(0,n.QR)(e,{activateOnTyping:!0,activateOnCompletion:()=>!1,activateOnTypingDelay:100,selectOnOpen:!0,override:null,closeOnBlur:!0,maxRenderedOptions:100,defaultKeymap:!0,tooltipClass:()=>"",optionClass:()=>"",aboveCursor:!1,icons:!0,addToOptions:[],positionInfo:P,filterStrict:!1,compareCompletions:(e,t)=>e.label.localeCompare(t.label),interactionDelay:75,updateSyncTime:100},{defaultKeymap:(e,t)=>e&&t,closeOnBlur:(e,t)=>e&&t,icons:(e,t)=>e&&t,tooltipClass:(e,t)=>r=>S(e(r),t(r)),optionClass:(e,t)=>r=>S(e(r),t(r)),addToOptions:(e,t)=>e.concat(t),filterStrict:(e,t)=>e||t})});function S(e,t){return e?t?e+" "+t:e:t}function P(e,t,r,n,s,o){let a=e.textDirection==i.OP.RTL,l=a,O=!1,h="top",c,u,f=t.left-s.left,p=s.right-t.right,d=n.right-n.left,g=n.bottom-n.top;if(l&&f=g||e>t.top?c=r.bottom-t.top:(h="bottom",c=t.bottom-r.top)}let m=(t.bottom-t.top)/o.offsetHeight,Q=(t.right-t.left)/o.offsetWidth;return{style:`${h}: ${c/m}px; max-width: ${u/Q}px`,class:"cm-completionInfo-"+(O?a?"left-narrow":"right-narrow":l?"left":"right")}}function y(e,t,r){if(e<=r)return{from:0,to:e};if(t<0&&(t=0),t<=e>>1){let e=Math.floor(t/r);return{from:e*r,to:(e+1)*r}}let n=Math.floor((e-t)/r);return{from:e-(n+1)*r,to:e-n*r}}class x{constructor(e,t,r){this.view=e,this.stateField=t,this.applyCompletion=r,this.info=null,this.infoDestroy=null,this.placeInfoReq={read:()=>this.measureInfo(),write:e=>this.placeInfo(e),key:this},this.space=null,this.currentClass="";let n=e.state.field(t),{options:i,selected:s}=n.open,o=e.state.facet(b);this.optionContent=function(e){let t=e.addToOptions.slice();return e.icons&&t.push({render(e){let t=document.createElement("div");return t.classList.add("cm-completionIcon"),e.type&&t.classList.add(...e.type.split(/\s+/g).map(e=>"cm-completionIcon-"+e)),t.setAttribute("aria-hidden","true"),t},position:20}),t.push({render(e,t,r,n){let i=document.createElement("span");i.className="cm-completionLabel";let s=e.displayLabel||e.label,o=0;for(let e=0;eo&&i.appendChild(document.createTextNode(s.slice(o,t)));let a=i.appendChild(document.createElement("span"));a.appendChild(document.createTextNode(s.slice(t,r))),a.className="cm-completionMatchedText",o=r}return oe.position-t.position).map(e=>e.render)}(o),this.optionClass=o.optionClass,this.tooltipClass=o.tooltipClass,this.range=y(i.length,s,o.maxRenderedOptions),this.dom=document.createElement("div"),this.dom.className="cm-tooltip-autocomplete",this.updateTooltipClass(e.state),this.dom.addEventListener("mousedown",r=>{let{options:n}=e.state.field(t).open;for(let t=r.target,i;t&&t!=this.dom;t=t.parentNode)if("LI"==t.nodeName&&(i=/-(\d+)$/.exec(t.id))&&+i[1]{let r=e.state.field(this.stateField,!1);r&&r.tooltip&&e.state.facet(b).closeOnBlur&&t.relatedTarget!=e.contentDOM&&e.dispatch({effects:m.of(null)})}),this.showOptions(i,n.id)}mount(){this.updateSel()}showOptions(e,t){this.list&&this.list.remove(),this.list=this.dom.appendChild(this.createListBox(e,t,this.range)),this.list.addEventListener("scroll",()=>{this.info&&this.view.requestMeasure(this.placeInfoReq)})}update(e){var t;let r=e.state.field(this.stateField),n=e.startState.field(this.stateField);if(this.updateTooltipClass(e.state),r!=n){let{options:i,selected:s,disabled:o}=r.open;n.open&&n.open.options==i||(this.range=y(i.length,s,e.state.facet(b).maxRenderedOptions),this.showOptions(i,r.id)),this.updateSel(),o!=(null===(t=n.open)||void 0===t?void 0:t.disabled)&&this.dom.classList.toggle("cm-tooltip-autocomplete-disabled",!!o)}}updateTooltipClass(e){let t=this.tooltipClass(e);if(t!=this.currentClass){for(let e of this.currentClass.split(" "))e&&this.dom.classList.remove(e);for(let e of t.split(" "))e&&this.dom.classList.add(e);this.currentClass=t}}positioned(e){this.space=e,this.info&&this.view.requestMeasure(this.placeInfoReq)}updateSel(){let e=this.view.state.field(this.stateField),t=e.open;if((t.selected>-1&&t.selected=this.range.to)&&(this.range=y(t.options.length,t.selected,this.view.state.facet(b).maxRenderedOptions),this.showOptions(t.options,e.id)),this.updateSelectedOption(t.selected)){this.destroyInfo();let{completion:r}=t.options[t.selected],{info:n}=r;if(!n)return;let s="string"==typeof n?document.createTextNode(n):n(r);if(!s)return;"then"in s?s.then(t=>{t&&this.view.state.field(this.stateField,!1)==e&&this.addInfoPane(t,r)}).catch(e=>(0,i.c_)(this.view.state,e,"completion info")):this.addInfoPane(s,r)}}addInfoPane(e,t){this.destroyInfo();let r=this.info=document.createElement("div");if(r.className="cm-tooltip cm-completionInfo",null!=e.nodeType)r.appendChild(e),this.infoDestroy=null;else{let{dom:t,destroy:n}=e;r.appendChild(t),this.infoDestroy=n||null}this.dom.appendChild(r),this.view.requestMeasure(this.placeInfoReq)}updateSelectedOption(e){var t,r;let n,i,s,o=null;for(let t=this.list.firstChild,r=this.range.from;t;t=t.nextSibling,r++)"LI"==t.nodeName&&t.id?r==e?t.hasAttribute("aria-selected")||(t.setAttribute("aria-selected","true"),o=t):t.hasAttribute("aria-selected")&&t.removeAttribute("aria-selected"):r--;return o&&(t=this.list,r=o,n=t.getBoundingClientRect(),i=r.getBoundingClientRect(),s=n.height/t.offsetHeight,i.topn.bottom&&(t.scrollTop+=(i.bottom-n.bottom)/s)),o}measureInfo(){let e=this.dom.querySelector("[aria-selected]");if(!e||!this.info)return null;let t=this.dom.getBoundingClientRect(),r=this.info.getBoundingClientRect(),n=e.getBoundingClientRect(),i=this.space;if(!i){let e=this.dom.ownerDocument.defaultView||window;i={left:0,top:0,right:e.innerWidth,bottom:e.innerHeight}}return n.top>Math.min(i.bottom,t.bottom)-10||n.bottomr.from||0==r.from)&&(i=e,"string"!=typeof l&&l.header?n.appendChild(l.header(l)):n.appendChild(document.createElement("completion-section")).textContent=e)}let O=n.appendChild(document.createElement("li"));O.id=t+"-"+s,O.setAttribute("role","option");let h=this.optionClass(o);for(let e of(h&&(O.className=h),this.optionContent)){let t=e(o,this.view.state,this.view,a);t&&O.appendChild(t)}}return r.from&&n.classList.add("cm-completionListIncompleteTop"),r.to=this.options.length?this:new w(this.options,X(t,e),this.tooltip,this.timestamp,e,this.disabled)}static build(e,t,r,n,i){let s=function(e,t){let r=[],n=null,i=e=>{r.push(e);let{section:t}=e.completion;if(t){n||(n=[]);let e="string"==typeof t?t:t.name;n.some(t=>t.name==e)||n.push("string"==typeof t?{name:e}:t)}},s=t.facet(b);for(let n of e)if(n.hasResult()){let e=n.result.getMatch;if(!1===n.result.filter)for(let t of n.result.options)i(new h(t,n.source,e?e(t):[],1e9-r.length));else{let r=t.sliceDoc(n.from,n.to),o,a=s.filterStrict?new $(r):new Q(r);for(let t of n.result.options)if(o=a.match(t.label)){let r=t.displayLabel?e?e(t,o.matched):[]:o.matched;i(new h(t,n.source,r,o.score+(t.boost||0)))}}}if(n){let e=Object.create(null),t=0;for(let r of n.sort((e,t)=>{var r,n;return(null!==(r=e.rank)&&void 0!==r?r:1e9)-(null!==(n=t.rank)&&void 0!==n?n:1e9)||(e.namet.score-e.score||l(e.completion,t.completion))){let t=e.completion;a&&a.label==t.label&&a.detail==t.detail&&(null==a.type||null==t.type||a.type==t.type)&&a.apply==t.apply&&a.boost==t.boost?k(e.completion)>k(a)&&(o[o.length-1]=e):o.push(e),a=e.completion}return o}(e,t);if(!s.length)return n&&e.some(e=>1==e.state)?new w(n.options,n.attrs,n.tooltip,n.timestamp,n.selected,!0):null;let o=t.facet(b).selectOnOpen?0:-1;if(n&&n.selected!=o&&-1!=n.selected){let e=n.options[n.selected].completion;for(let t=0;tt.hasResult()?Math.min(e,t.from):e,1e8),create:z,above:i.aboveCursor},n?n.timestamp:Date.now(),o,!1)}map(e){return new w(this.options,this.attrs,Object.assign(Object.assign({},this.tooltip),{pos:e.mapPos(this.tooltip.pos)}),this.timestamp,this.selected,this.disabled)}}class v{constructor(e,t,r){this.active=e,this.id=t,this.open=r}static start(){return new v(_,"cm-ac-"+Math.floor(2e6*Math.random()).toString(36),null)}update(e){let{state:t}=e,r=t.facet(b),n=(r.override||t.languageDataAt("autocomplete",c(t)).map(d)).map(t=>(this.active.find(e=>e.source==t)||new R(t,this.active.some(e=>0!=e.state)?1:0)).update(e,r));n.length==this.active.length&&n.every((e,t)=>e==this.active[t])&&(n=this.active);let i=this.open;for(let s of(i&&e.docChanged&&(i=i.map(e.changes)),e.selection||n.some(t=>t.hasResult()&&e.changes.touchesRange(t.from,t.to))||!function(e,t){if(e==t)return!0;for(let r=0,n=0;;){for(;r1==e.state)&&(i=null),!i&&n.every(e=>1!=e.state)&&n.some(e=>e.hasResult())&&(n=n.map(e=>e.hasResult()?new R(e.source,0):e)),e.effects))s.is(W)&&(i=i&&i.setSelected(s.value,this.id));return n==this.active&&i==this.open?this:new v(n,this.id,i)}get tooltip(){return this.open?this.open.tooltip:null}get attrs(){return this.open?this.open.attrs:Z}}let Z={"aria-autocomplete":"list"};function X(e,t){let r={"aria-autocomplete":"list","aria-haspopup":"listbox","aria-controls":e};return t>-1&&(r["aria-activedescendant"]=e+"-"+t),r}let _=[];class R{constructor(e,t,r=-1){this.source=e,this.state=t,this.explicitPos=r}hasResult(){return!1}update(e,t){let r=function(e,t){if(e.isUserEvent("input.complete")){let r=e.annotation(f);if(r&&t.activateOnCompletion(r))return"input"}return e.isUserEvent("input.type")?"input":e.isUserEvent("delete.backward")?"delete":null}(e,t),n=this;for(let i of(r?n=n.handleUserEvent(e,r,t):e.docChanged?n=n.handleChange(e):e.selection&&0!=n.state&&(n=new R(n.source,0)),e.effects))if(i.is(g))n=new R(n.source,1,i.value?c(e.state):-1);else if(i.is(m))n=new R(n.source,0);else if(i.is(Y))for(let e of i.value)e.source==n.source&&(n=e);return n}handleUserEvent(e,t,r){return"delete"!=t&&r.activateOnTyping?new R(this.source,1):this.map(e.changes)}handleChange(e){return e.changes.touchesRange(c(e.startState))?new R(this.source,0):this.map(e.changes)}map(e){return e.empty||this.explicitPos<0?this:new R(this.source,this.state,e.mapPos(this.explicitPos))}}class T extends R{constructor(e,t,r,n,i){super(e,2,t),this.result=r,this.from=n,this.to=i}hasResult(){return!0}handleUserEvent(e,t,r){var n;let i=this.result;i.map&&!e.changes.empty&&(i=i.map(i,e.changes));let s=e.changes.mapPos(this.from),a=e.changes.mapPos(this.to,1),l=c(e.state);if((this.explicitPos<0?l<=s:la||!i||"delete"==t&&c(e.startState)==this.from)return new R(this.source,"input"==t&&r.activateOnTyping?1:0);let O=this.explicitPos<0?-1:e.changes.mapPos(this.explicitPos);return!function(e,t,r,n){if(!e)return!1;let i=t.sliceDoc(r,n);return"function"==typeof e?e(i,r,n,t):u(e,!0).test(i)}(i.validFor,e.state,s,a)?i.update&&(i=i.update(i,s,a,new o(e.state,l,O>=0)))?new T(this.source,O,i,i.from,null!==(n=i.to)&&void 0!==n?n:c(e.state)):new R(this.source,1,O):new T(this.source,O,i,s,a)}handleChange(e){return e.changes.touchesRange(this.from,this.to)?new R(this.source,0):this.map(e.changes)}map(e){return e.empty?this:(this.result.map?this.result.map(this.result,e):this.result)?new T(this.source,this.explicitPos<0?-1:e.mapPos(this.explicitPos),this.result,e.mapPos(this.from),e.mapPos(this.to,1)):new R(this.source,0)}}let Y=n.Pe.define({map:(e,t)=>e.map(e=>e.map(t))}),W=n.Pe.define(),A=n.sU.define({create:()=>v.start(),update:(e,t)=>e.update(t),provide:e=>[i.DK.from(e,e=>e.tooltip),i.Lz.contentAttributes.from(e,e=>e.attrs)]});function q(e,t){let r=t.completion.apply||t.completion.label,i=e.state.field(A).active.find(e=>e.source==t.source);return i instanceof T&&("string"==typeof r?e.dispatch(Object.assign(Object.assign({},function(e,t,r,i){let{main:s}=e.selection,o=r-s.from,a=i-s.from;return Object.assign(Object.assign({},e.changeByRange(l=>l!=s&&r!=i&&e.sliceDoc(l.from+o,l.from+a)!=e.sliceDoc(r,i)?{range:l}:{changes:{from:l.from+o,to:i==s.from?l.to:l.from+a,insert:t},range:n.OF.cursor(l.from+o+t.length)})),{scrollIntoView:!0,userEvent:"input.complete"})}(e.state,r,i.from,i.to)),{annotations:f.of(t.completion)})):r(e,t.completion,i.from,i.to),!0)}let z=e=>new x(e,A,q);function j(e,t="option"){return r=>{let n=r.state.field(A,!1);if(!n||!n.open||n.open.disabled||Date.now()-n.open.timestamp-1?n.open.selected+s*(e?1:-1):e?0:a-1;return l<0?l="page"==t?0:a-1:l>=a&&(l="page"==t?a-1:0),r.dispatch({effects:W.of(l)}),!0}}"object"==typeof navigator&&navigator.platform;let U=i.Lz.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"},".cm-tooltip.cm-completionInfo":{position:"absolute",padding:"3px 9px",width:"max-content",maxWidth:"400px",boxSizing:"border-box"},".cm-completionInfo.cm-completionInfo-left":{right:"100%"},".cm-completionInfo.cm-completionInfo-right":{left:"100%"},".cm-completionInfo.cm-completionInfo-left-narrow":{right:"30px"},".cm-completionInfo.cm-completionInfo-right-narrow":{left:"30px"},"&light .cm-snippetField":{backgroundColor:"#00000022"},"&dark .cm-snippetField":{backgroundColor:"#ffffff22"},".cm-snippetFieldPosition":{verticalAlign:"text-top",width:0,height:"1.15em",display:"inline-block",margin:"0 -0.7px -.7em",borderLeft:"1.4px dotted #888"},".cm-completionMatchedText":{textDecoration:"underline"},".cm-completionDetail":{marginLeft:"0.5em",fontStyle:"italic"},".cm-completionIcon":{fontSize:"90%",width:".8em",display:"inline-block",textAlign:"center",paddingRight:".6em",opacity:"0.6",boxSizing:"content-box"},".cm-completionIcon-function, .cm-completionIcon-method":{"&:after":{content:"'ƒ'"}},".cm-completionIcon-class":{"&:after":{content:"'○'"}},".cm-completionIcon-interface":{"&:after":{content:"'◌'"}},".cm-completionIcon-variable":{"&:after":{content:"'\uD835\uDC65'"}},".cm-completionIcon-constant":{"&:after":{content:"'\uD835\uDC36'"}},".cm-completionIcon-type":{"&:after":{content:"'\uD835\uDC61'"}},".cm-completionIcon-enum":{"&:after":{content:"'∪'"}},".cm-completionIcon-property":{"&:after":{content:"'□'"}},".cm-completionIcon-keyword":{"&:after":{content:"'\uD83D\uDD11︎'"}},".cm-completionIcon-namespace":{"&:after":{content:"'▢'"}},".cm-completionIcon-text":{"&:after":{content:"'abc'",fontSize:"50%",verticalAlign:"middle"}}});class V{constructor(e,t,r,n){this.field=e,this.line=t,this.from=r,this.to=n}}class C{constructor(e,t,r){this.field=e,this.from=t,this.to=r}map(e){let t=e.mapPos(this.from,-1,n.iR.TrackDel),r=e.mapPos(this.to,1,n.iR.TrackDel);return null==t||null==r?null:new C(this.field,t,r)}}class E{constructor(e,t){this.lines=e,this.fieldPositions=t}instantiate(e,t){let r=[],n=[t],i=e.doc.lineAt(t),o=/^\s*/.exec(i.text)[0];for(let i of this.lines){if(r.length){let r=o,a=/^\t*/.exec(i)[0].length;for(let t=0;tnew C(e.field,n[e.line]+e.from,n[e.line]+e.to))}}static parse(e){let t=[],r=[],n=[],i;for(let s of e.split(/\r\n?|\n/)){for(;i=/[#$]\{(?:(\d+)(?::([^}]*))?|((?:\\[{}]|[^}])*))\}/.exec(s);){let e=i[1]?+i[1]:null,o=i[2]||i[3]||"",a=-1,l=o.replace(/\\[{}]/g,e=>e[1]);for(let r=0;r=a&&i.field++}n.push(new V(a,r.length,i.index,i.index+l.length)),s=s.slice(0,i.index)+o+s.slice(i.index+i[0].length)}s=s.replace(/\\([{}])/g,(e,t,i)=>{for(let e of n)e.line==r.length&&e.from>i&&(e.from--,e.to--);return t}),r.push(s)}return new E(r,n)}}let I=i.NZ.widget({widget:new class extends i.xO{toDOM(){let e=document.createElement("span");return e.className="cm-snippetFieldPosition",e}ignoreEvent(){return!1}}}),G=i.NZ.mark({class:"cm-snippetField"});class M{constructor(e,t){this.ranges=e,this.active=t,this.deco=i.NZ.set(e.map(e=>(e.from==e.to?I:G).range(e.from,e.to)))}map(e){let t=[];for(let r of this.ranges){let n=r.map(e);if(!n)return null;t.push(n)}return new M(t,this.active)}selectionInsideField(e){return e.ranges.every(e=>this.ranges.some(t=>t.field==this.active&&t.from<=e.from&&t.to>=e.to))}}let N=n.Pe.define({map:(e,t)=>e&&e.map(t)}),D=n.Pe.define(),B=n.sU.define({create:()=>null,update(e,t){for(let r of t.effects){if(r.is(N))return r.value;if(r.is(D)&&e)return new M(e.ranges,r.value)}return e&&t.docChanged&&(e=e.map(t.changes)),e&&t.selection&&!e.selectionInsideField(t.selection)&&(e=null),e},provide:e=>i.Lz.decorations.from(e,e=>e?e.deco:i.NZ.none)});function L(e,t){return n.OF.create(e.filter(e=>e.field==t).map(e=>n.OF.range(e.from,e.to)))}function J(e){return({state:t,dispatch:r})=>{let n=t.field(B,!1);if(!n||e<0&&0==n.active)return!1;let i=n.active+e,s=e>0&&!n.ranges.some(t=>t.field==i+e);return r(t.update({selection:L(n.ranges,i),effects:N.of(s?null:new M(n.ranges,i)),scrollIntoView:!0})),!0}}let F=[{key:"Tab",run:J(1),shift:J(-1)},{key:"Escape",run:({state:e,dispatch:t})=>!!e.field(B,!1)&&(t(e.update({effects:N.of(null)})),!0)}],K=n.sj.define({combine:e=>e.length?e[0]:F}),H=n.Nb.highest(i.w4.compute([K],e=>e.facet(K)));function ee(e,t){let r;return Object.assign(Object.assign({},t),{apply:(r=E.parse(e),(e,t,i,s)=>{let{text:o,ranges:a}=r.instantiate(e.state,i),l={changes:{from:i,to:s,insert:n.EY.of(o)},scrollIntoView:!0,annotations:t?[f.of(t),n.ZX.userEvent.of("input.complete")]:void 0};if(a.length&&(l.selection=L(a,0)),a.some(e=>e.field>0)){let t=new M(a,0),r=l.effects=[N.of(t)];void 0===e.state.field(B,!1)&&r.push(n.Pe.appendConfig.of([B,H,et,U]))}e.dispatch(e.state.update(l))})})}let et=i.Lz.domEventHandlers({mousedown(e,t){let r=t.state.field(B,!1),n;if(!r||null==(n=t.posAtCoords({x:e.clientX,y:e.clientY})))return!1;let i=r.ranges.find(e=>e.from<=n&&e.to>=n);return!!i&&i.field!=r.active&&(t.dispatch({selection:L(r.ranges,i.field),effects:N.of(r.ranges.some(e=>e.field>i.field)?new M(r.ranges,i.field):null),scrollIntoView:!0}),!0)}}),er={brackets:["(","[","{","'",'"'],before:")]}:;>",stringPrefixes:[]},en=n.Pe.define({map(e,t){let r=t.mapPos(e,-1,n.iR.TrackAfter);return null==r?void 0:r}}),ei=new class extends n.FB{};ei.startSide=1,ei.endSide=-1;let es=n.sU.define({create:()=>n.om.empty,update(e,t){if(e=e.map(t.changes),t.selection){let r=t.state.doc.lineAt(t.selection.main.head);e=e.update({filter:e=>e>=r.from&&e<=r.to})}for(let r of t.effects)r.is(en)&&(e=e.update({add:[ei.range(r.value,r.value+1)]}));return e}});function eo(){return[ec,es]}let ea="()[]{}<>";function el(e){for(let t=0;t{if((eh?e.composing:e.compositionStarted)||e.state.readOnly)return!1;let o=e.state.selection.main;if(i.length>2||2==i.length&&1==(0,n.Fh)((0,n.vS)(i,0))||t!=o.from||r!=o.to)return!1;let a=function(e,t){let r=eO(e,e.selection.main.head),i=r.brackets||er.brackets;for(let o of i){let a=el((0,n.vS)(o,0));if(t==o)return a==o?function(e,t,r,i){let o=i.stringPrefixes||er.stringPrefixes,a=null,l=e.changeByRange(i=>{if(!i.empty)return{changes:[{insert:t,from:i.from},{insert:t,from:i.to}],effects:en.of(i.to+t.length),range:n.OF.range(i.anchor+t.length,i.head+t.length)};let l=i.head,O=ep(e.doc,l),h;if(O==t){if(ed(e,l))return{changes:{insert:t+t,from:l},effects:en.of(l+t.length),range:n.OF.cursor(l+t.length)};if(ef(e,l)){let i=r&&e.sliceDoc(l,l+3*t.length)==t+t+t?t+t+t:t;return{changes:{from:l,to:l+i.length,insert:i},range:n.OF.cursor(l+i.length)}}}else if(r&&e.sliceDoc(l-2*t.length,l)==t+t&&(h=eg(e,l-2*t.length,o))>-1&&ed(e,h))return{changes:{insert:t+t+t+t,from:l},effects:en.of(l+t.length),range:n.OF.cursor(l+t.length)};else if(e.charCategorizer(l)(O)!=n.Je.Word&&eg(e,l,o)>-1&&!function(e,t,r,n){let i=(0,s.mv)(e).resolveInner(t,-1),o=n.reduce((e,t)=>Math.max(e,t.length),0);for(let s=0;s<5;s++){let s=e.sliceDoc(i.from,Math.min(i.to,i.from+r.length+o)),a=s.indexOf(r);if(!a||a>-1&&n.indexOf(s.slice(0,a))>-1){let t=i.firstChild;for(;t&&t.from==i.from&&t.to-t.from>r.length+a;){if(e.sliceDoc(t.to-r.length,t.to)==r)return!1;t=t.firstChild}return!0}let l=i.to==t&&i.parent;if(!l)break;i=l}return!1}(e,l,t,o))return{changes:{insert:t+t,from:l},effects:en.of(l+t.length),range:n.OF.cursor(l+t.length)};return{range:a=i}});return a?null:e.update(l,{scrollIntoView:!0,userEvent:"input.type"})}(e,o,i.indexOf(o+o+o)>-1,r):function(e,t,r,i){let s=null,o=e.changeByRange(o=>{if(!o.empty)return{changes:[{insert:t,from:o.from},{insert:r,from:o.to}],effects:en.of(o.to+t.length),range:n.OF.range(o.anchor+t.length,o.head+t.length)};let a=ep(e.doc,o.head);return!a||/\s/.test(a)||i.indexOf(a)>-1?{changes:{insert:t+r,from:o.head},effects:en.of(o.head+t.length),range:n.OF.cursor(o.head+t.length)}:{range:s=o}});return s?null:e.update(o,{scrollIntoView:!0,userEvent:"input.type"})}(e,o,a,r.before||er.before);if(t==a&&ef(e,e.selection.main.from))return function(e,t,r){let i=null,s=e.changeByRange(t=>t.empty&&ep(e.doc,t.head)==r?{changes:{from:t.head,to:t.head+r.length,insert:r},range:n.OF.cursor(t.head+r.length)}:i={range:t});return i?null:e.update(s,{scrollIntoView:!0,userEvent:"input.type"})}(e,0,a)}return null}(e.state,i);return!!a&&(e.dispatch(a),!0)}),eu=[{key:"Backspace",run:({state:e,dispatch:t})=>{if(e.readOnly)return!1;let r=eO(e,e.selection.main.head).brackets||er.brackets,i=null,s=e.changeByRange(t=>{if(t.empty){let i=function(e,t){let r=e.sliceString(t-2,t);return(0,n.Fh)((0,n.vS)(r,0))==r.length?r:r.slice(1)}(e.doc,t.head);for(let s of r)if(s==i&&ep(e.doc,t.head)==el((0,n.vS)(s,0)))return{changes:{from:t.head-s.length,to:t.head+s.length},range:n.OF.cursor(t.head-s.length)}}return{range:i=t}});return i||t(e.update(s,{scrollIntoView:!0,userEvent:"delete.backward"})),!i}}];function ef(e,t){let r=!1;return e.field(es).between(0,e.doc.length,e=>{e==t&&(r=!0)}),r}function ep(e,t){let r=e.sliceString(t,t+2);return r.slice(0,(0,n.Fh)((0,n.vS)(r,0)))}function ed(e,t){let r=(0,s.mv)(e).resolveInner(t+1);return r.parent&&r.from==t}function eg(e,t,r){let i=e.charCategorizer(t);if(i(e.sliceDoc(t-1,t))!=n.Je.Word)return t;for(let s of r){let r=t-s.length;if(e.sliceDoc(r,t)==s&&i(e.sliceDoc(r-1,r))!=n.Je.Word)return r}return -1}let em=[{key:"Ctrl-Space",run:e=>!!e.state.field(A,!1)&&(e.dispatch({effects:g.of(!0)}),!0)},{key:"Escape",run:e=>{let t=e.state.field(A,!1);return!!(t&&t.active.some(e=>0!=e.state))&&(e.dispatch({effects:m.of(null)}),!0)}},{key:"ArrowDown",run:j(!0)},{key:"ArrowUp",run:j(!1)},{key:"PageDown",run:j(!0,"page")},{key:"PageUp",run:j(!1,"page")},{key:"Enter",run:e=>{let t=e.state.field(A,!1);return!(e.state.readOnly||!t||!t.open||t.open.selected<0||t.open.disabled||Date.now()-t.open.timestamp{"use strict";r.d(t,{Ce:()=>eQ,Mg:()=>ev,UY:()=>ew,b6:()=>Q,cL:()=>T,pw:()=>eX});var n=r(95151),i=r(66855),s=r(38380),o=r(81376);function a(e,t){return({state:r,dispatch:n})=>{if(r.readOnly)return!1;let i=e(t,r);return!!i&&(n(r.update(i)),!0)}}let l=a(function(e,t,r=t.selection.ranges){let n=[],i=-1;for(let{from:e,to:s}of r){let r=n.length,o=1e9,a=c(t,e).line;if(a){for(let r=e;r<=s;){let l=t.doc.lineAt(r);if(l.from>i&&(e==s||s>l.from)){i=l.from;let e=/^\s*/.exec(l.text)[0].length,t=e==l.length,r=l.text.slice(e,e+a.length)==a?e:-1;ee.comment<0&&(!e.empty||e.single))){let e=[];for(let{line:t,token:r,indent:i,empty:s,single:o}of n)(o||!s)&&e.push({from:t.from+i,insert:r+" "});let r=t.changes(e);return{changes:r,selection:t.selection.map(r,1)}}if(1!=e&&n.some(e=>e.comment>=0)){let e=[];for(let{line:t,comment:r,token:i}of n)if(r>=0){let n=t.from+r,s=n+i.length;" "==t.text[s-t.from]&&s++,e.push({from:n,to:s})}return{changes:e}}return null},0),O=a(u,0),h=a((e,t)=>u(e,t,function(e){let t=[];for(let r of e.selection.ranges){let n=e.doc.lineAt(r.from),i=r.to<=n.to?n:e.doc.lineAt(r.to),s=t.length-1;s>=0&&t[s].to>n.from?t[s].to=i.to:t.push({from:n.from+/^\s*/.exec(n.text)[0].length,to:i.to})}return t}(t)),0);function c(e,t){let r=e.languageDataAt("commentTokens",t);return r.length?r[0]:{}}function u(e,t,r=t.selection.ranges){let n=r.map(e=>c(t,e.from).block);if(!n.every(e=>e))return null;let i=r.map((e,r)=>(function(e,{open:t,close:r},n,i){let s,o,a=e.sliceDoc(n-50,n),l=e.sliceDoc(i,i+50),O=/\s*$/.exec(a)[0].length,h=/^\s*/.exec(l)[0].length,c=a.length-O;if(a.slice(c-t.length,c)==t&&l.slice(h,h+r.length)==r)return{open:{pos:n-O,margin:O&&1},close:{pos:i+h,margin:h&&1}};i-n<=100?s=o=e.sliceDoc(n,i):(s=e.sliceDoc(n,n+50),o=e.sliceDoc(i-50,i));let u=/^\s*/.exec(s)[0].length,f=/\s*$/.exec(o)[0].length,p=o.length-f-r.length;return s.slice(u,u+t.length)==t&&o.slice(p,p+r.length)==r?{open:{pos:n+u+t.length,margin:/\s/.test(s.charAt(u+t.length))?1:0},close:{pos:i-f-r.length,margin:/\s/.test(o.charAt(p-1))?1:0}}:null})(t,n[r],e.from,e.to));if(2!=e&&!i.every(e=>e))return{changes:t.changes(r.map((e,t)=>i[t]?[]:[{from:e.from,insert:n[t].open+" "},{from:e.to,insert:" "+n[t].close}]))};if(1!=e&&i.some(e=>e)){let e=[];for(let t=0,r;t(0,n.QR)(e,{minDepth:100,newGroupDelay:500,joinToEvent:(e,t)=>t},{minDepth:Math.max,newGroupDelay:Math.min,joinToEvent:(e,t)=>(r,n)=>e(r,n)||t(r,n)})}),m=n.sU.define({create:()=>R.empty,update(e,t){let r=t.state.facet(g),i=t.annotation(f);if(i){let n=x.fromTransaction(t,i.selection),s=i.side,o=0==s?e.undone:e.done;return o=n?k(o,o.length,r.minDepth,n):Z(o,t.startState.selection),new R(0==s?i.rest:o,0==s?o:i.rest)}let s=t.annotation(p);if(("full"==s||"before"==s)&&(e=e.isolate()),!1===t.annotation(n.ZX.addToHistory))return t.changes.empty?e:e.addMapping(t.changes.desc);let o=x.fromTransaction(t),a=t.annotation(n.ZX.time),l=t.annotation(n.ZX.userEvent);return o?e=e.addChanges(o,a,l,r,t):t.selection&&(e=e.addSelection(t.startState.selection,a,l,r.newGroupDelay)),("full"==s||"after"==s)&&(e=e.isolate()),e},toJSON:e=>({done:e.done.map(e=>e.toJSON()),undone:e.undone.map(e=>e.toJSON())}),fromJSON:e=>new R(e.done.map(x.fromJSON),e.undone.map(x.fromJSON))});function Q(e={}){return[m,g.of(e),i.Lz.domEventHandlers({beforeinput(e,t){let r="historyUndo"==e.inputType?b:"historyRedo"==e.inputType?S:null;return!!r&&(e.preventDefault(),r(t))}})]}function $(e,t){return function({state:r,dispatch:n}){if(!t&&r.readOnly)return!1;let i=r.field(m,!1);if(!i)return!1;let s=i.pop(e,r,t);return!!s&&(n(s),!0)}}let b=$(0,!1),S=$(1,!1),P=$(0,!0),y=$(1,!0);class x{constructor(e,t,r,n,i){this.changes=e,this.effects=t,this.mapped=r,this.startSelection=n,this.selectionsAfter=i}setSelAfter(e){return new x(this.changes,this.effects,this.mapped,this.startSelection,e)}toJSON(){var e,t,r;return{changes:null===(e=this.changes)||void 0===e?void 0:e.toJSON(),mapped:null===(t=this.mapped)||void 0===t?void 0:t.toJSON(),startSelection:null===(r=this.startSelection)||void 0===r?void 0:r.toJSON(),selectionsAfter:this.selectionsAfter.map(e=>e.toJSON())}}static fromJSON(e){return new x(e.changes&&n.VR.fromJSON(e.changes),[],e.mapped&&n.Gu.fromJSON(e.mapped),e.startSelection&&n.OF.fromJSON(e.startSelection),e.selectionsAfter.map(n.OF.fromJSON))}static fromTransaction(e,t){let r=v;for(let t of e.startState.facet(d)){let n=t(e);n.length&&(r=r.concat(n))}return!r.length&&e.changes.empty?null:new x(e.changes.invert(e.startState.doc),r,void 0,t||e.startState.selection,v)}static selection(e){return new x(void 0,v,void 0,void 0,e)}}function k(e,t,r,n){let i=e.slice(t+1>r+20?t-r-1:0,t);return i.push(n),i}function w(e,t){return e.length?t.length?e.concat(t):e:t}let v=[];function Z(e,t){if(!e.length)return[x.selection([t])];{let r=e[e.length-1],n=r.selectionsAfter.slice(Math.max(0,r.selectionsAfter.length-200));return n.length&&n[n.length-1].eq(t)?e:(n.push(t),k(e,e.length-1,1e9,r.setSelAfter(n)))}}function X(e,t){if(!e.length)return e;let r=e.length,i=v;for(;r;){let s=function(e,t,r){let i=w(e.selectionsAfter.length?e.selectionsAfter.map(e=>e.map(t)):v,r);if(!e.changes)return x.selection(i);let s=e.changes.map(t),o=t.mapDesc(e.changes,!0),a=e.mapped?e.mapped.composeDesc(o):o;return new x(s,n.Pe.mapEffects(e.effects,t),a,e.startSelection.map(o),i)}(e[r-1],t,i);if(s.changes&&!s.changes.empty||s.effects.length){let t=e.slice(0,r);return t[r-1]=s,t}t=s.mapped,r--,i=s.selectionsAfter}return i.length?[x.selection(i)]:v}let _=/^(input\.type|delete)($|\.)/;class R{constructor(e,t,r=0,n){this.done=e,this.undone=t,this.prevTime=r,this.prevUserEvent=n}isolate(){return this.prevTime?new R(this.done,this.undone):this}addChanges(e,t,r,n,i){var s,o;let a,l,O=this.done,h=O[O.length-1];return new R(O=h&&h.changes&&!h.changes.empty&&e.changes&&(!r||_.test(r))&&(!h.selectionsAfter.length&&t-this.prevTimea.push(e,t)),o.iterChangedRanges((e,t,r,n)=>{for(let e=0;e=t&&r<=i&&(l=!0)}}),l))||"input.type.compose"==r)?k(O,O.length-1,n.minDepth,new x(e.changes.compose(h.changes),w(e.effects,h.effects),h.mapped,h.startSelection,v)):k(O,O.length,n.minDepth,e),v,t,r)}addSelection(e,t,r,n){var i;let s=this.done.length?this.done[this.done.length-1].selectionsAfter:v;return s.length>0&&t-this.prevTimet.empty!=e.ranges[r].empty).length?this:new R(Z(this.done,e),this.undone,t,r)}addMapping(e){return new R(X(this.done,e),X(this.undone,e),this.prevTime,this.prevUserEvent)}pop(e,t,r){let n=0==e?this.done:this.undone;if(0==n.length)return null;let i=n[n.length-1],s=i.selectionsAfter[0]||t.selection;if(r&&i.selectionsAfter.length){let r,o;return t.update({selection:i.selectionsAfter[i.selectionsAfter.length-1],annotations:f.of({side:e,rest:(r=n[n.length-1],(o=n.slice())[n.length-1]=r.setSelAfter(r.selectionsAfter.slice(0,r.selectionsAfter.length-1)),o),selection:s}),userEvent:0==e?"select.undo":"select.redo",scrollIntoView:!0})}if(!i.changes)return null;{let r=1==n.length?v:n.slice(0,n.length-1);return i.mapped&&(r=X(r,i.mapped)),t.update({changes:i.changes,selection:i.startSelection,effects:i.effects,annotations:f.of({side:e,rest:r,selection:s}),filter:!1,userEvent:0==e?"undo":"redo",scrollIntoView:!0})}}}R.empty=new R(v,v);let T=[{key:"Mod-z",run:b,preventDefault:!0},{key:"Mod-y",mac:"Mod-Shift-z",run:S,preventDefault:!0},{linux:"Ctrl-Shift-z",run:S,preventDefault:!0},{key:"Mod-u",run:P,preventDefault:!0},{key:"Alt-u",mac:"Mod-Shift-u",run:y,preventDefault:!0}];function Y(e,t){return n.OF.create(e.ranges.map(t),e.mainIndex)}function W(e,t){return e.update({selection:t,scrollIntoView:!0,userEvent:"select"})}function A({state:e,dispatch:t},r){let n=Y(e.selection,r);return!n.eq(e.selection,!0)&&(t(W(e,n)),!0)}function q(e,t){return n.OF.cursor(t?e.to:e.from)}function z(e,t){return A(e,r=>r.empty?e.moveByChar(r,t):q(r,t))}function j(e){return e.textDirectionAt(e.state.selection.main.head)==i.OP.LTR}let U=e=>z(e,!j(e)),V=e=>z(e,j(e));function C(e,t){return A(e,r=>r.empty?e.moveByGroup(r,t):q(r,t))}function E(e,t,r){let i,a,l=(0,s.mv)(e).resolveInner(t.head),O=r?o.uY.closedBy:o.uY.openedBy;for(let n=t.head;;){let t=r?l.childAfter(n):l.childBefore(n);if(!t)break;!function(e,t,r){if(t.type.prop(r))return!0;let n=t.to-t.from;return n&&(n>2||/[^\s,.;:]/.test(e.sliceDoc(t.from,t.to)))||t.firstChild}(e,t,O)?n=r?t.to:t.from:l=t}return a=l.type.prop(O)&&(i=r?(0,s.jU)(e,l.from,1):(0,s.jU)(e,l.to,-1))&&i.matched?r?i.end.to:i.end.from:r?l.to:l.from,n.OF.cursor(a,r?-1:1)}function I(e,t){return A(e,r=>{if(!r.empty)return q(r,t);let n=e.moveVertically(r,t);return n.head!=r.head?n:e.moveToLineBoundary(r,t)})}"undefined"!=typeof Intl&&Intl.Segmenter;let G=e=>I(e,!1),M=e=>I(e,!0);function N(e){let t=e.scrollDOM.clientHeightr.empty?e.moveVertically(r,t,n.height):q(r,t));if(o.eq(s.selection))return!1;if(n.selfScroll){let t=e.coordsAtPos(s.selection.main.head),a=e.scrollDOM.getBoundingClientRect(),l=a.top+n.marginTop,O=a.bottom-n.marginBottom;t&&t.top>l&&t.bottomD(e,!1),L=e=>D(e,!0);function J(e,t,r){let i=e.lineBlockAt(t.head),s=e.moveToLineBoundary(t,r);if(s.head==t.head&&s.head!=(r?i.to:i.from)&&(s=e.moveToLineBoundary(t,r,!1)),!r&&s.head==i.from&&i.length){let r=/^\s*/.exec(e.state.sliceDoc(i.from,Math.min(i.from+100,i.to)))[0].length;r&&t.head!=i.from+r&&(s=n.OF.cursor(i.from+r))}return s}function F(e,t){let r=Y(e.state.selection,e=>{let r=t(e);return n.OF.range(e.anchor,r.head,r.goalColumn,r.bidiLevel||void 0)});return!r.eq(e.state.selection)&&(e.dispatch(W(e.state,r)),!0)}function K(e,t){return F(e,r=>e.moveByChar(r,t))}let H=e=>K(e,!j(e)),ee=e=>K(e,j(e));function et(e,t){return F(e,r=>e.moveByGroup(r,t))}function er(e,t){return F(e,r=>e.moveVertically(r,t))}let en=e=>er(e,!1),ei=e=>er(e,!0);function es(e,t){return F(e,r=>e.moveVertically(r,t,N(e).height))}let eo=e=>es(e,!1),ea=e=>es(e,!0),el=({state:e,dispatch:t})=>(t(W(e,{anchor:0})),!0),eO=({state:e,dispatch:t})=>(t(W(e,{anchor:e.doc.length})),!0),eh=({state:e,dispatch:t})=>(t(W(e,{anchor:e.selection.main.anchor,head:0})),!0),ec=({state:e,dispatch:t})=>(t(W(e,{anchor:e.selection.main.anchor,head:e.doc.length})),!0);function eu(e,t){if(e.state.readOnly)return!1;let r="delete.selection",{state:s}=e,o=s.changeByRange(i=>{let{from:s,to:o}=i;if(s==o){let n=t(i);ns&&(r="delete.forward",n=ef(e,n,!0)),s=Math.min(s,n),o=Math.max(o,n)}else s=ef(e,s,!1),o=ef(e,o,!0);return s==o?{range:i}:{changes:{from:s,to:o},range:n.OF.cursor(s,st(e)))n.between(t,t,(e,n)=>{et&&(t=r?n:e)});return t}let ep=(e,t,r)=>eu(e,i=>{let o=i.from,{state:a}=e,l=a.doc.lineAt(o),O,h;if(r&&!t&&o>l.from&&oep(e,!1,!0),eg=e=>ep(e,!0,!1),em=(e,t)=>eu(e,r=>{let i=r.head,{state:s}=e,o=s.doc.lineAt(i),a=s.charCategorizer(i);for(let e=null;;){if(i==(t?o.to:o.from)){i==r.head&&o.number!=(t?s.doc.lines:1)&&(i+=t?1:-1);break}let l=(0,n.zK)(o.text,i-o.from,t)+o.from,O=o.text.slice(Math.min(i,l)-o.from,Math.max(i,l)-o.from),h=a(O);if(null!=e&&h!=e)break;(" "!=O||i!=r.head)&&(e=h),i=l}return i}),eQ=e=>em(e,!1);function e$(e){let t=[],r=-1;for(let n of e.selection.ranges){let i=e.doc.lineAt(n.from),s=e.doc.lineAt(n.to);if(n.empty||n.to!=s.from||(s=e.doc.lineAt(n.to-1)),r>=i.number){let e=t[t.length-1];e.to=s.to,e.ranges.push(n)}else t.push({from:i.from,to:s.to,ranges:[n]});r=s.number+1}return t}function eb(e,t,r){if(e.readOnly)return!1;let i=[],s=[];for(let t of e$(e)){if(r?t.to==e.doc.length:0==t.from)continue;let o=e.doc.lineAt(r?t.to+1:t.from-1),a=o.length+1;if(r)for(let r of(i.push({from:t.to,to:o.to},{from:t.from,insert:o.text+e.lineBreak}),t.ranges))s.push(n.OF.range(Math.min(e.doc.length,r.anchor+a),Math.min(e.doc.length,r.head+a)));else for(let r of(i.push({from:o.from,to:t.from},{from:t.to,insert:e.lineBreak+o.text}),t.ranges))s.push(n.OF.range(r.anchor-a,r.head-a))}return!!i.length&&(t(e.update({changes:i,scrollIntoView:!0,selection:n.OF.create(s,e.selection.mainIndex),userEvent:"move.line"})),!0)}function eS(e,t,r){if(e.readOnly)return!1;let n=[];for(let t of e$(e))r?n.push({from:t.from,insert:e.doc.slice(t.from,t.to)+e.lineBreak}):n.push({from:t.to,insert:e.lineBreak+e.doc.slice(t.from,t.to)});return t(e.update({changes:n,scrollIntoView:!0,userEvent:"input.copyline"})),!0}let eP=ex(!1),ey=ex(!0);function ex(e){return({state:t,dispatch:r})=>{if(t.readOnly)return!1;let i=t.changeByRange(r=>{let{from:i,to:a}=r,l=t.doc.lineAt(i),O=!e&&i==a&&function(e,t){if(/\(\)|\[\]|\{\}/.test(e.sliceDoc(t-1,t+1)))return{from:t,to:t};let r=(0,s.mv)(e).resolveInner(t),n=r.childBefore(t),i=r.childAfter(t),a;return n&&i&&n.to<=t&&i.from>=t&&(a=n.type.prop(o.uY.closedBy))&&a.indexOf(i.name)>-1&&e.doc.lineAt(n.to).from==e.doc.lineAt(i.from).from&&!/\S/.test(e.sliceDoc(n.to,i.from))?{from:n.to,to:i.from}:null}(t,i);e&&(i=a=(a<=l.to?l:t.doc.lineAt(a)).to);let h=new s.KB(t,{simulateBreak:i,simulateDoubleBreak:!!O}),c=(0,s._v)(h,i);for(null==c&&(c=(0,n.y$)(/^\s*/.exec(t.doc.lineAt(i).text)[0],t.tabSize));al.from&&i{let s=[];for(let n=i.from;n<=i.to;){let o=e.doc.lineAt(n);o.number>r&&(i.empty||i.to>o.from)&&(t(o,s,i),r=o.number),n=o.to+1}let o=e.changes(s);return{changes:s,range:n.OF.range(o.mapPos(i.anchor,1),o.mapPos(i.head,1))}})}let ew=({state:e,dispatch:t})=>!e.readOnly&&(t(e.update(ek(e,(t,r)=>{r.push({from:t.from,insert:e.facet(s.Xt)})}),{userEvent:"input.indent"})),!0),ev=({state:e,dispatch:t})=>!e.readOnly&&(t(e.update(ek(e,(t,r)=>{let i=/^\s*/.exec(t.text)[0];if(!i)return;let o=(0,n.y$)(i,e.tabSize),a=0,l=(0,s.EI)(e,Math.max(0,o-(0,s.tp)(e)));for(;aA(e,t=>n.OF.cursor(e.lineBlockAt(t.head).from,1)),shift:e=>F(e,t=>n.OF.cursor(e.lineBlockAt(t.head).from))},{key:"Ctrl-e",run:e=>A(e,t=>n.OF.cursor(e.lineBlockAt(t.head).to,-1)),shift:e=>F(e,t=>n.OF.cursor(e.lineBlockAt(t.head).to))},{key:"Ctrl-d",run:eg},{key:"Ctrl-h",run:ed},{key:"Ctrl-k",run:e=>eu(e,t=>{let r=e.lineBlockAt(t.head).to;return t.head{if(e.readOnly)return!1;let r=e.changeByRange(e=>({changes:{from:e.from,to:e.to,insert:n.EY.of(["",""])},range:n.OF.cursor(e.from)}));return t(e.update(r,{scrollIntoView:!0,userEvent:"input"})),!0}},{key:"Ctrl-t",run:({state:e,dispatch:t})=>{if(e.readOnly)return!1;let r=e.changeByRange(t=>{if(!t.empty||0==t.from||t.from==e.doc.length)return{range:t};let r=t.from,i=e.doc.lineAt(r),s=r==i.from?r-1:(0,n.zK)(i.text,r-i.from,!1)+i.from,o=r==i.to?r+1:(0,n.zK)(i.text,r-i.from,!0)+i.from;return{changes:{from:s,to:o,insert:e.doc.slice(r,o).append(e.doc.slice(s,r))},range:n.OF.cursor(o)}});return!r.changes.empty&&(t(e.update(r,{scrollIntoView:!0,userEvent:"move.character"})),!0)}},{key:"Ctrl-v",run:L}],eX=[{key:"Alt-ArrowLeft",mac:"Ctrl-ArrowLeft",run:e=>A(e,t=>E(e.state,t,!j(e))),shift:e=>F(e,t=>E(e.state,t,!j(e)))},{key:"Alt-ArrowRight",mac:"Ctrl-ArrowRight",run:e=>A(e,t=>E(e.state,t,j(e))),shift:e=>F(e,t=>E(e.state,t,j(e)))},{key:"Alt-ArrowUp",run:({state:e,dispatch:t})=>eb(e,t,!1)},{key:"Shift-Alt-ArrowUp",run:({state:e,dispatch:t})=>eS(e,t,!1)},{key:"Alt-ArrowDown",run:({state:e,dispatch:t})=>eb(e,t,!0)},{key:"Shift-Alt-ArrowDown",run:({state:e,dispatch:t})=>eS(e,t,!0)},{key:"Escape",run:({state:e,dispatch:t})=>{let r=e.selection,i=null;return r.ranges.length>1?i=n.OF.create([r.main]):r.main.empty||(i=n.OF.create([n.OF.cursor(r.main.head)])),!!i&&(t(W(e,i)),!0)}},{key:"Mod-Enter",run:ey},{key:"Alt-l",mac:"Ctrl-l",run:({state:e,dispatch:t})=>{let r=e$(e).map(({from:t,to:r})=>n.OF.range(t,Math.min(r+1,e.doc.length)));return t(e.update({selection:n.OF.create(r),userEvent:"select"})),!0}},{key:"Mod-i",run:({state:e,dispatch:t})=>{let r=Y(e.selection,t=>{var r;let i=(0,s.mv)(e).resolveStack(t.from,1);for(let e=i;e;e=e.next){let{node:i}=e;if((i.from=t.to||i.to>t.to&&i.from<=t.from)&&(null===(r=i.parent)||void 0===r?void 0:r.parent))return n.OF.range(i.to,i.from)}return t});return t(W(e,r)),!0},preventDefault:!0},{key:"Mod-[",run:ev},{key:"Mod-]",run:ew},{key:"Mod-Alt-\\",run:({state:e,dispatch:t})=>{if(e.readOnly)return!1;let r=Object.create(null),n=new s.KB(e,{overrideIndentation:e=>{let t=r[e];return null==t?-1:t}}),i=ek(e,(t,i,o)=>{let a=(0,s._v)(n,t.from);if(null==a)return;/\S/.test(t.text)||(a=0);let l=/^\s*/.exec(t.text)[0],O=(0,s.EI)(e,a);(l!=O||o.from{if(e.state.readOnly)return!1;let{state:t}=e,r=t.changes(e$(t).map(({from:e,to:r})=>(e>0?e--:r{let r;if(e.lineWrapping){let n=e.lineBlockAt(t.head),i=e.coordsAtPos(t.head,t.assoc||1);i&&(r=n.bottom+e.documentTop-i.bottom+e.defaultLineHeight/2)}return e.moveVertically(t,!0,r)}).map(r);return e.dispatch({changes:r,selection:n,scrollIntoView:!0,userEvent:"delete.line"}),!0}},{key:"Shift-Mod-\\",run:({state:e,dispatch:t})=>(function(e,t,r){let i=!1,o=Y(e.selection,t=>{let o=(0,s.jU)(e,t.head,-1)||(0,s.jU)(e,t.head,1)||t.head>0&&(0,s.jU)(e,t.head-1,1)||t.head{let{state:t}=e,r=t.doc.lineAt(t.selection.main.from),n=c(e.state,r.from);return n.line?l(e):!!n.block&&h(e)}},{key:"Alt-A",run:O}].concat([{key:"ArrowLeft",run:U,shift:H,preventDefault:!0},{key:"Mod-ArrowLeft",mac:"Alt-ArrowLeft",run:e=>C(e,!j(e)),shift:e=>et(e,!j(e)),preventDefault:!0},{mac:"Cmd-ArrowLeft",run:e=>A(e,t=>J(e,t,!j(e))),shift:e=>F(e,t=>J(e,t,!j(e))),preventDefault:!0},{key:"ArrowRight",run:V,shift:ee,preventDefault:!0},{key:"Mod-ArrowRight",mac:"Alt-ArrowRight",run:e=>C(e,j(e)),shift:e=>et(e,j(e)),preventDefault:!0},{mac:"Cmd-ArrowRight",run:e=>A(e,t=>J(e,t,j(e))),shift:e=>F(e,t=>J(e,t,j(e))),preventDefault:!0},{key:"ArrowUp",run:G,shift:en,preventDefault:!0},{mac:"Cmd-ArrowUp",run:el,shift:eh},{mac:"Ctrl-ArrowUp",run:B,shift:eo},{key:"ArrowDown",run:M,shift:ei,preventDefault:!0},{mac:"Cmd-ArrowDown",run:eO,shift:ec},{mac:"Ctrl-ArrowDown",run:L,shift:ea},{key:"PageUp",run:B,shift:eo},{key:"PageDown",run:L,shift:ea},{key:"Home",run:e=>A(e,t=>J(e,t,!1)),shift:e=>F(e,t=>J(e,t,!1)),preventDefault:!0},{key:"Mod-Home",run:el,shift:eh},{key:"End",run:e=>A(e,t=>J(e,t,!0)),shift:e=>F(e,t=>J(e,t,!0)),preventDefault:!0},{key:"Mod-End",run:eO,shift:ec},{key:"Enter",run:eP},{key:"Mod-a",run:({state:e,dispatch:t})=>(t(e.update({selection:{anchor:0,head:e.doc.length},userEvent:"select"})),!0)},{key:"Backspace",run:ed,shift:ed},{key:"Delete",run:eg},{key:"Mod-Backspace",mac:"Alt-Backspace",run:eQ},{key:"Mod-Delete",mac:"Alt-Delete",run:e=>em(e,!0)},{mac:"Mod-Backspace",run:e=>eu(e,t=>{let r=e.moveToLineBoundary(t,!1).head;return t.head>r?r:Math.max(0,t.head-1)})},{mac:"Mod-Delete",run:e=>eu(e,t=>{let r=e.moveToLineBoundary(t,!0).head;return t.head({mac:e.key,run:e.run,shift:e.shift}))))},51407:(e,t,r)=>{"use strict";r.d(t,{AH:()=>X,Yk:()=>Z});var n=r(33108),i=r(53225);let s=[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];function o(e){return e>=65&&e<=90||e>=97&&e<=122||e>=161}function a(e){return e>=48&&e<=57}let l=new n.Lu((e,t)=>{for(let r=!1,n=0,i=0;;i++){let{next:s}=e;if(o(s)||45==s||95==s||r&&a(s))!r&&(45!=s||i>0)&&(r=!0),n===i&&45==s&&n++,e.advance();else if(92==s&&10!=e.peek(1))e.advance(),e.next>-1&&e.advance(),r=!0;else{r&&e.acceptToken(40==s?100:2==n&&t.canShift(2)?2:101);break}}}),O=new n.Lu(e=>{if(s.includes(e.peek(-1))){let{next:t}=e;(o(t)||95==t||35==t||46==t||91==t||58==t&&o(e.peek(1))||45==t||38==t)&&e.acceptToken(99)}}),h=new n.Lu(e=>{if(!s.includes(e.peek(-1))){let{next:t}=e;if(37==t&&(e.advance(),e.acceptToken(1)),o(t)){do e.advance();while(o(e.next)||a(e.next));e.acceptToken(1)}}}),c=(0,i.pn)({"AtKeyword import charset namespace keyframes media supports":i._A.definitionKeyword,"from to selector":i._A.keyword,NamespaceName:i._A.namespace,KeyframeName:i._A.labelName,KeyframeRangeName:i._A.operatorKeyword,TagName:i._A.tagName,ClassName:i._A.className,PseudoClassName:i._A.constant(i._A.className),IdName:i._A.labelName,"FeatureName PropertyName":i._A.propertyName,AttributeName:i._A.attributeName,NumberLiteral:i._A.number,KeywordQuery:i._A.keyword,UnaryQueryOp:i._A.operatorKeyword,"CallTag ValueName":i._A.atom,VariableName:i._A.variableName,Callee:i._A.operatorKeyword,Unit:i._A.unit,"UniversalSelector NestingSelector":i._A.definitionOperator,MatchOp:i._A.compareOperator,"ChildOp SiblingOp, LogicOp":i._A.logicOperator,BinOp:i._A.arithmeticOperator,Important:i._A.modifier,Comment:i._A.blockComment,ColorLiteral:i._A.color,"ParenthesizedContent StringLiteral":i._A.string,":":i._A.punctuation,"PseudoOp #":i._A.derefOperator,"; ,":i._A.separator,"( )":i._A.paren,"[ ]":i._A.squareBracket,"{ }":i._A.brace}),u={__proto__:null,lang:32,"nth-child":32,"nth-last-child":32,"nth-of-type":32,"nth-last-of-type":32,dir:32,"host-context":32,url:60,"url-prefix":60,domain:60,regexp:60,selector:138},f={__proto__:null,"@import":118,"@media":142,"@charset":146,"@namespace":150,"@keyframes":156,"@supports":168},p={__proto__:null,not:132,only:132},d=n.U1.deserialize({version:14,states:":^QYQ[OOO#_Q[OOP#fOWOOOOQP'#Cd'#CdOOQP'#Cc'#CcO#kQ[O'#CfO$_QXO'#CaO$fQ[O'#ChO$qQ[O'#DTO$vQ[O'#DWOOQP'#Em'#EmO${QdO'#DgO%jQ[O'#DtO${QdO'#DvO%{Q[O'#DxO&WQ[O'#D{O&`Q[O'#ERO&nQ[O'#ETOOQS'#El'#ElOOQS'#EW'#EWQYQ[OOO&uQXO'#CdO'jQWO'#DcO'oQWO'#EsO'zQ[O'#EsQOQWOOP(UO#tO'#C_POOO)C@[)C@[OOQP'#Cg'#CgOOQP,59Q,59QO#kQ[O,59QO(aQ[O'#E[O({QWO,58{O)TQ[O,59SO$qQ[O,59oO$vQ[O,59rO(aQ[O,59uO(aQ[O,59wO(aQ[O,59xO)`Q[O'#DbOOQS,58{,58{OOQP'#Ck'#CkOOQO'#DR'#DROOQP,59S,59SO)gQWO,59SO)lQWO,59SOOQP'#DV'#DVOOQP,59o,59oOOQO'#DX'#DXO)qQ`O,59rOOQS'#Cp'#CpO${QdO'#CqO)yQvO'#CsO+ZQtO,5:ROOQO'#Cx'#CxO)lQWO'#CwO+oQWO'#CyO+tQ[O'#DOOOQS'#Ep'#EpOOQO'#Dj'#DjO+|Q[O'#DqO,[QWO'#EtO&`Q[O'#D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Sp^Oy%^z;'S%^;'S;=`%o<%lO%^bGWUOy%^z#b%^#b#cGj#c;'S%^;'S;=`%o<%lO%^bGoUo`Oy%^z#W%^#W#XHR#X;'S%^;'S;=`%o<%lO%^bHYS!bQo`Oy%^z;'S%^;'S;=`%o<%lO%^bHiUOy%^z#f%^#f#gHR#g;'S%^;'S;=`%o<%lO%^fIQS!TUOy%^z;'S%^;'S;=`%o<%lO%^nIcS!S^Oy%^z;'S%^;'S;=`%o<%lO%^fItU!RQOy%^z!_%^!_!`6y!`;'S%^;'S;=`%o<%lO%^`JZP;=`<%l$}",tokenizers:[O,h,l,1,2,3,4,new n.uC("m~RRYZ[z{a~~g~aO#^~~dP!P!Qg~lO#_~~",28,105)],topRules:{StyleSheet:[0,4],Styles:[1,86]},specialized:[{term:100,get:e=>u[e]||-1},{term:58,get:e=>f[e]||-1},{term:101,get:e=>p[e]||-1}],tokenPrec:1200});var g=r(38380),m=r(81376);let Q=null;function $(){if(!Q&&"object"==typeof document&&document.body){let{style:e}=document.body,t=[],r=new Set;for(let n in e)"cssText"==n||"cssFloat"==n||"string"!=typeof e[n]||(/[A-Z]/.test(n)&&(n=n.replace(/[A-Z]/g,e=>"-"+e.toLowerCase())),r.has(n)||(t.push(n),r.add(n)));Q=t.sort().map(e=>({type:"property",label:e}))}return Q||[]}let b=["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(e=>({type:"class",label:e})),S=["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(e=>({type:"keyword",label:e})).concat(["aliceblue","antiquewhite","aqua","aquamarine","azure","beige","bisque","black","blanchedalmond","blue","blueviolet","brown","burlywood","cadetblue","chartreuse","chocolate","coral","cornflowerblue","cornsilk","crimson","cyan","darkblue","darkcyan","darkgoldenrod","darkgray","darkgreen","darkkhaki","darkmagenta","darkolivegreen","darkorange","darkorchid","darkred","darksalmon","darkseagreen","darkslateblue","darkslategray","darkturquoise","darkviolet","deeppink","deepskyblue","dimgray","dodgerblue","firebrick","floralwhite","forestgreen","fuchsia","gainsboro","ghostwhite","gold","goldenrod","gray","grey","green","greenyellow","honeydew","hotpink","indianred","indigo","ivory","khaki","lavender","lavenderblush","lawngreen","lemonchiffon","lightblue","lightcoral","lightcyan","lightgoldenrodyellow","lightgray","lightgreen","lightpink","lightsalmon","lightseagreen","lightskyblue","lightslategray","lightsteelblue","lightyellow","lime","limegreen","linen","magenta","maroon","mediumaquamarine","mediumblue","mediumorchid","mediumpurple","mediumseagreen","mediumslateblue","mediumspringgreen","mediumturquoise","mediumvioletred","midnightblue","mintcream","mistyrose","moccasin","navajowhite","navy","oldlace","olive","olivedrab","orange","orangered","orchid","palegoldenrod","palegreen","paleturquoise","palevioletred","papayawhip","peachpuff","peru","pink","plum","powderblue","purple","rebeccapurple","red","rosybrown","royalblue","saddlebrown","salmon","sandybrown","seagreen","seashell","sienna","silver","skyblue","slateblue","slategray","snow","springgreen","steelblue","tan","teal","thistle","tomato","turquoise","violet","wheat","white","whitesmoke","yellow","yellowgreen"].map(e=>({type:"constant",label:e}))),P=["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(e=>({type:"type",label:e})),y=/^(\w[\w-]*|-\w[\w-]*|)$/,x=/^-(-[\w-]*)?$/,k=new m.RY,w=["Declaration"],v=(e=>t=>{let{state:r,pos:n}=t,i=(0,g.mv)(r).resolveInner(n,-1),s=i.type.isError&&i.from==i.to-1&&"-"==r.doc.sliceString(i.from,i.to);if("PropertyName"==i.name||(s||"TagName"==i.name)&&/^(Block|Styles)$/.test(i.resolve(i.to).name))return{from:i.from,options:$(),validFor:y};if("ValueName"==i.name)return{from:i.from,options:S,validFor:y};if("PseudoClassName"==i.name)return{from:i.from,options:b,validFor:y};if(e(i)||(t.explicit||s)&&function(e,t){var r;if(("("==e.name||e.type.isError)&&(e=e.parent||e),"ArgList"!=e.name)return!1;let n=null===(r=e.parent)||void 0===r?void 0:r.firstChild;return(null==n?void 0:n.name)=="Callee"&&"var"==t.sliceString(n.from,n.to)}(i,r.doc))return{from:e(i)||s?i.from:n,options:function e(t,r,n){if(r.to-r.from>4096){let i=k.get(r);if(i)return i;let s=[],o=new Set,a=r.cursor(m.Qj.IncludeAnonymous);if(a.firstChild())do for(let r of e(t,a.node,n))o.has(r.label)||(o.add(r.label),s.push(r));while(a.nextSibling());return k.set(r,s),s}{let e=[],i=new Set;return r.cursor().iterate(r=>{var s;if(n(r)&&r.matchContext(w)&&(null===(s=r.node.nextSibling)||void 0===s?void 0:s.name)==":"){let n=t.sliceString(r.from,r.to);i.has(n)||(i.add(n),e.push({label:n,type:"variable"}))}}),e}}(r.doc,function(e){for(let t=e;;){if(t.type.isTop)return t;if(!(t=t.parent))return e}}(i),e),validFor:x};if("TagName"==i.name){for(let{parent:e}=i;e;e=e.parent)if("Block"==e.name)return{from:i.from,options:$(),validFor:y};return{from:i.from,options:P,validFor:y}}if(!t.explicit)return null;let o=i.resolve(n),a=o.childBefore(n);return a&&":"==a.name&&"PseudoClassSelector"==o.name?{from:n,options:b,validFor:y}:a&&":"==a.name&&"Declaration"==o.name||"ArgList"==o.name?{from:n,options:S,validFor:y}:"Block"==o.name||"Styles"==o.name?{from:n,options:$(),validFor:y}:null})(e=>"VariableName"==e.name),Z=g.bj.define({name:"css",parser:d.configure({props:[g.Oh.add({Declaration:(0,g.mz)()}),g.b_.add({"Block KeyframeList":g.yd})]}),languageData:{commentTokens:{block:{open:"/*",close:"*/"}},indentOnInput:/^\s*\}$/,wordChars:"-"}});function X(){return new g.Yy(Z,Z.data.of({autocomplete:v}))}},47362:(e,t,r)=>{"use strict";r.d(t,{qy:()=>es});var n=r(33108),i=r(53225),s=r(81376);let o={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},a={dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},l={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 O(e){return 9==e||10==e||13==e||32==e}let h=null,c=null,u=0;function f(e,t){var r;let n=e.pos+t;if(u==n&&c==e)return h;let i=e.peek(t);for(;O(i);)i=e.peek(++t);let s="";for(;45==(r=i)||46==r||58==r||r>=65&&r<=90||95==r||r>=97&&r<=122||r>=161;)s+=String.fromCharCode(i),i=e.peek(++t);return c=e,u=n,h=s?s.toLowerCase():i==p||i==d?void 0:null}let p=63,d=33;function g(e,t){this.name=e,this.parent=t}let m=[6,10,7,8,9],Q=new n.Aj({start:null,shift:(e,t,r,n)=>m.indexOf(t)>-1?new g(f(n,1)||"",e):e,reduce:(e,t)=>20==t&&e?e.parent:e,reuse(e,t,r,n){let i=t.type.id;return 6==i||36==i?new g(f(n,1)||"",e):e},strict:!1}),$=new n.Lu((e,t)=>{if(60!=e.next){e.next<0&&t.context&&e.acceptToken(57);return}e.advance();let r=47==e.next;r&&e.advance();let n=f(e,0);if(void 0===n)return;if(!n)return e.acceptToken(r?14:6);let i=t.context?t.context.name:null;if(r){if(n==i)return e.acceptToken(11);if(i&&a[i])return e.acceptToken(57,-2);if(t.dialectEnabled(0))return e.acceptToken(12);for(let e=t.context;e;e=e.parent)if(e.name==n)return;e.acceptToken(13)}else{if("script"==n)return e.acceptToken(7);if("style"==n)return e.acceptToken(8);if("textarea"==n)return e.acceptToken(9);if(o.hasOwnProperty(n))return e.acceptToken(10);i&&l[i]&&l[i][n]?e.acceptToken(57,-1):e.acceptToken(6)}},{contextual:!0}),b=new n.Lu(e=>{for(let t=0,r=0;;r++){if(e.next<0){r&&e.acceptToken(58);break}if(45==e.next)t++;else if(62==e.next&&t>=2){r>=3&&e.acceptToken(58,-2);break}else t=0;e.advance()}}),S=new n.Lu((e,t)=>{if(47==e.next&&62==e.peek(1)){let r=t.dialectEnabled(1)||function(e){for(;e;e=e.parent)if("svg"==e.name||"math"==e.name)return!0;return!1}(t.context);e.acceptToken(r?5:4,2)}else 62==e.next&&e.acceptToken(4,1)});function P(e,t,r){let i=2+e.length;return new n.Lu(n=>{for(let s=0,o=0,a=0;;a++){if(n.next<0){a&&n.acceptToken(t);break}if(0==s&&60==n.next||1==s&&47==n.next||s>=2&&so?n.acceptToken(t,-o):n.acceptToken(r,-(o-2));break}else if((10==n.next||13==n.next)&&a){n.acceptToken(t,1);break}else s=o=0;n.advance()}})}let y=P("script",54,1),x=P("style",55,2),k=P("textarea",56,3),w=(0,i.pn)({"Text RawText":i._A.content,"StartTag StartCloseTag SelfClosingEndTag EndTag":i._A.angleBracket,TagName:i._A.tagName,"MismatchedCloseTag/TagName":[i._A.tagName,i._A.invalid],AttributeName:i._A.attributeName,"AttributeValue UnquotedAttributeValue":i._A.attributeValue,Is:i._A.definitionOperator,"EntityReference CharacterReference":i._A.character,Comment:i._A.blockComment,ProcessingInst:i._A.processingInstruction,DoctypeDecl:i._A.documentMeta}),v=n.U1.deserialize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CloseTag StartCloseTag 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:67,context:Q,nodeProps:[["closedBy",-10,1,2,3,7,8,9,10,11,12,13,"EndTag",6,"EndTag SelfClosingEndTag",-4,21,30,33,36,"CloseTag"],["openedBy",4,"StartTag StartCloseTag",5,"StartTag",-4,29,32,35,37,"OpenTag"],["group",-9,14,17,18,19,20,39,40,41,42,"Entity",16,"Entity TextContent",-3,28,31,34,"TextContent Entity"],["isolate",-11,21,29,30,32,33,35,36,37,38,41,42,"ltr",-3,26,27,39,""]],propSources:[w],skippedNodes:[0],repeatNodeCount:9,tokenData:"!]tw8twx7Sx!P8t!P!Q5u!Q!]8t!]!^/^!^!a7S!a#S8t#S#T;{#T#s8t#s$f5u$f;'S8t;'S;=`>V<%l?Ah8t?Ah?BY5u?BY?Mn8t?MnO5u!Z5zbkWOX5uXZ7SZ[5u[^7S^p5uqr5urs7Sst+Ptw5uwx7Sx!]5u!]!^7w!^!a7S!a#S5u#S#T7S#T;'S5u;'S;=`8n<%lO5u!R7VVOp7Sqs7St!]7S!]!^7l!^;'S7S;'S;=`7q<%lO7S!R7qOa!R!R7tP;=`<%l7S!Z8OYkWa!ROX+PZ[+P^p+Pqr+Psw+Px!^+P!a#S+P#T;'S+P;'S;=`+t<%lO+P!Z8qP;=`<%l5u!_8{ihSkWOX5uXZ7SZ[5u[^7S^p5uqr8trs7Sst/^tw8twx7Sx!P8t!P!Q5u!Q!]8t!]!^:j!^!a7S!a#S8t#S#T;{#T#s8t#s$f5u$f;'S8t;'S;=`>V<%l?Ah8t?Ah?BY5u?BY?Mn8t?MnO5u!_:sbhSkWa!ROX+PZ[+P^p+Pqr/^sw/^x!P/^!P!Q+P!Q!^/^!a#S/^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s)return _(e,t,r);if(31==s)return _(e,t,n);if(34==s)return _(e,t,i);if(20==s&&o.length){let r=e.node,n=r.firstChild,i=n&&X(n,t),s;if(i){for(let e of o)if(e.tag==i&&(!e.attrs||e.attrs(s||(s=Z(n,t))))){let t=r.lastChild,i=37==t.type.id?t.from:r.to;if(i>n.to)return{parser:e.parser,overlay:[{from:n.to,to:i}]}}}}if(a&&23==s){let r=e.node,n;if(n=r.firstChild){let e=a[t.read(n.from,n.to)];if(e)for(let n of e){if(n.tagName&&n.tagName!=X(r.parent,t))continue;let e=r.lastChild;if(26==e.type.id){let t=e.from+1,r=e.lastChild,i=e.to-(r&&r.isError?0:1);if(i>t)return{parser:n.parser,overlay:[{from:t,to:i}]}}else if(27==e.type.id)return{parser:n.parser,overlay:[{from:e.from,to:e.to}]}}}}return null})}var T=r(51407),Y=r(41594),W=r(66855),A=r(95151),q=r(38380);let z=["_blank","_self","_top","_parent"],j=["ascii","utf-8","utf-16","latin1","latin1"],U=["get","post","put","delete"],V=["application/x-www-form-urlencoded","multipart/form-data","text/plain"],C=["true","false"],E={},I={a:{attrs:{href:null,ping:null,type:null,media:null,target:z,hreflang:null}},abbr:E,address:E,area:{attrs:{alt:null,coords:null,href:null,target:null,ping:null,media:null,hreflang:null,type:null,shape:["default","rect","circle","poly"]}},article:E,aside:E,audio:{attrs:{src:null,mediagroup:null,crossorigin:["anonymous","use-credentials"],preload:["none","metadata","auto"],autoplay:["autoplay"],loop:["loop"],controls:["controls"]}},b:E,base:{attrs:{href:null,target:z}},bdi:E,bdo:E,blockquote:{attrs:{cite:null}},body:E,br:E,button:{attrs:{form:null,formaction:null,name:null,value:null,autofocus:["autofocus"],disabled:["autofocus"],formenctype:V,formmethod:U,formnovalidate:["novalidate"],formtarget:z,type:["submit","reset","button"]}},canvas:{attrs:{width:null,height:null}},caption:E,center:E,cite:E,code:E,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:E,del:{attrs:{cite:null,datetime:null}},details:{attrs:{open:["open"]}},dfn:E,div:E,dl:E,dt:E,em:E,embed:{attrs:{src:null,type:null,width:null,height:null}},eventsource:{attrs:{src:null}},fieldset:{attrs:{disabled:["disabled"],form:null,name:null}},figcaption:E,figure:E,footer:E,form:{attrs:{action:null,name:null,"accept-charset":j,autocomplete:["on","off"],enctype:V,method:U,novalidate:["novalidate"],target:z}},h1:E,h2:E,h3:E,h4:E,h5:E,h6:E,head:{children:["title","base","link","style","meta","script","noscript","command"]},header:E,hgroup:E,hr:E,html:{attrs:{manifest:null}},i:E,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:V,formmethod:U,formnovalidate:["novalidate"],formtarget:z,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:E,keygen:{attrs:{challenge:null,form:null,name:null,autofocus:["autofocus"],disabled:["disabled"],keytype:["RSA"]}},label:{attrs:{for:null,form:null}},legend:E,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:E,menu:{attrs:{label:null,type:["list","context","toolbar"]}},meta:{attrs:{content:null,charset:j,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:E,noscript:E,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:E,param:{attrs:{name:null,value:null}},pre:E,progress:{attrs:{value:null,max:null}},q:{attrs:{cite:null}},rp:E,rt:E,ruby:E,samp:E,script:{attrs:{type:["text/javascript"],src:null,async:["async"],defer:["defer"],charset:j}},section:E,select:{attrs:{form:null,name:null,size:null,autofocus:["autofocus"],disabled:["disabled"],multiple:["multiple"]}},slot:{attrs:{name:null}},small:E,source:{attrs:{src:null,type:null,media:null}},span:E,strong:E,style:{attrs:{type:["text/css"],media:null,scoped:null}},sub:E,summary:E,sup:E,table:E,tbody:E,td:{attrs:{colspan:null,rowspan:null,headers:null}},template:E,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:E,th:{attrs:{colspan:null,rowspan:null,headers:null,scope:["row","col","rowgroup","colgroup"]}},thead:E,time:{attrs:{datetime:null}},title:E,tr:E,track:{attrs:{src:null,label:null,default:null,kind:["subtitles","captions","descriptions","chapters","metadata"],srclang:null}},ul:{children:["li","script","template","ul","ol"]},var:E,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:E},G={accesskey:null,class:null,contenteditable:C,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:C,autocorrect:C,autocapitalize:C,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":C,"aria-autocomplete":["inline","list","both","none"],"aria-busy":C,"aria-checked":["true","false","mixed","undefined"],"aria-controls":null,"aria-describedby":null,"aria-disabled":C,"aria-dropeffect":null,"aria-expanded":["true","false","undefined"],"aria-flowto":null,"aria-grabbed":["true","false","undefined"],"aria-haspopup":C,"aria-hidden":C,"aria-invalid":["true","false","grammar","spelling"],"aria-label":null,"aria-labelledby":null,"aria-level":null,"aria-live":["off","polite","assertive"],"aria-multiline":C,"aria-multiselectable":C,"aria-owns":null,"aria-posinset":null,"aria-pressed":["true","false","mixed","undefined"],"aria-readonly":C,"aria-relevant":null,"aria-required":C,"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},M="beforeunload copy cut dragstart dragover dragleave dragenter dragend drag paste focus blur change click load mousedown mouseenter mouseleave mouseup keydown keyup resize scroll unload".split(" ").map(e=>"on"+e);for(let e of M)G[e]=null;class N{constructor(e,t){this.tags=Object.assign(Object.assign({},I),e),this.globalAttrs=Object.assign(Object.assign({},G),t),this.allTags=Object.keys(this.tags),this.globalAttrNames=Object.keys(this.globalAttrs)}}function D(e,t,r=e.length){if(!t)return"";let n=t.firstChild,i=n&&n.getChild("TagName");return i?e.sliceString(i.from,Math.min(i.to,r)):""}function B(e,t=!1){for(;e;e=e.parent)if("Element"==e.name){if(!t)return e;t=!1}return null}function L(e,t,r){let n=r.tags[D(e,B(t))];return(null==n?void 0:n.children)||r.allTags}function J(e,t){let r=[];for(let n=B(t);n&&!n.type.isTop;n=B(n.parent)){let i=D(e,n);if(i&&"CloseTag"==n.lastChild.name)break;i&&0>r.indexOf(i)&&("EndTag"==t.name||t.from>=n.firstChild.to)&&r.push(i)}return r}N.default=new N;let F=/^[:\-\.\w\u00b7-\uffff]*$/;function K(e,t,r,n,i){let s=/\s*>/.test(e.sliceDoc(i,i+5))?"":">",o=B(r,!0);return{from:n,to:i,options:L(e.doc,o,t).map(e=>({label:e,type:"type"})).concat(J(e.doc,r).map((e,t)=>({label:"/"+e,apply:"/"+e+s,type:"type",boost:99-t}))),validFor:/^\/?[:\-\.\w\u00b7-\uffff]*$/}}function H(e,t,r,n){let i=/\s*>/.test(e.sliceDoc(n,n+5))?"":">";return{from:r,to:n,options:J(e.doc,t).map((e,t)=>({label:e,apply:e+i,type:"type",boost:99-t})),validFor:F}}let ee=Y.o$.parser.configure({top:"SingleExpression"}),et=[{tag:"script",attrs:e=>"text/typescript"==e.type||"ts"==e.lang,parser:Y.sL.parser},{tag:"script",attrs:e=>"text/babel"==e.type||"text/jsx"==e.type,parser:Y.W6.parser},{tag:"script",attrs:e=>"text/typescript-jsx"==e.type,parser:Y.g4.parser},{tag:"script",attrs:e=>/^(importmap|speculationrules|application\/(.+\+)?json)$/i.test(e.type),parser:ee},{tag:"script",attrs:e=>!e.type||/^(?:text|application)\/(?:x-)?(?:java|ecma)script$|^module$|^$/i.test(e.type),parser:Y.o$.parser},{tag:"style",attrs:e=>(!e.lang||"css"==e.lang)&&(!e.type||/^(text\/)?(x-)?(stylesheet|css)$/i.test(e.type)),parser:T.Yk.parser}],er=[{name:"style",parser:T.Yk.parser.configure({top:"Styles"})}].concat(M.map(e=>({name:e,parser:Y.o$.parser}))),en=q.bj.define({name:"html",parser:v.configure({props:[q.Oh.add({Element(e){let t=/^(\s*)(<\/)?/.exec(e.textAfter);return e.node.to<=e.pos+t[0].length?e.continue():e.lineIndent(e.node.from)+(t[2]?0:e.unit)},"OpenTag CloseTag SelfClosingTag":e=>e.column(e.node.from)+e.unit,Document(e){if(e.pos+/\s*/.exec(e.textAfter)[0].lengthe.getChild("TagName")})]}),languageData:{commentTokens:{block:{open:"\x3c!--",close:"--\x3e"}},indentOnInput:/^\s*<\/\w+\W$/,wordChars:"-._"}}),ei=en.configure({wrap:R(et,er)});function es(e={}){let t="",r;!1===e.matchClosingTags&&(t="noMatch"),!0===e.selfClosingTags&&(t=(t?t+" ":"")+"selfClosing"),(e.nestedLanguages&&e.nestedLanguages.length||e.nestedAttributes&&e.nestedAttributes.length)&&(r=R((e.nestedLanguages||[]).concat(et),(e.nestedAttributes||[]).concat(er)));let n=r?en.configure({wrap:r,dialect:t}):t?ei.configure({dialect:t}):ei;return new q.Yy(n,[ei.data.of({autocomplete:function(e){let{extraTags:t,extraGlobalAttributes:r}=e,n=r||t?new N(t,r):N.default;return e=>(function(e,t){let{state:r,pos:n}=t,i=(0,q.mv)(r).resolveInner(n,-1),s=i.resolve(n);for(let e=n,t;s==i&&(t=i.childBefore(e));){let r=t.lastChild;if(!r||!r.type.isError||r.from({label:e,type:"property"})),validFor:F}}return"Is"==i.name||"AttributeValue"==i.name||"UnquotedAttributeValue"==i.name?function(e,t,r,n,i){var s;let o=null===(s=r.parent)||void 0===s?void 0:s.getChild("AttributeName"),a=[],l;if(o){let s=e.sliceDoc(o.from,o.to),O=t.globalAttrs[s];if(!O){let n=B(r),i=n?t.tags[D(e.doc,n)]:null;O=(null==i?void 0:i.attrs)&&i.attrs[s]}if(O){let t=e.sliceDoc(n,i).toLowerCase(),r='"',s='"';for(let o of(/^['"]/.test(t)?(l='"'==t[0]?/^[^"]*$/:/^[^']*$/,r="",s=e.sliceDoc(i,i+1)==t[0]?"":t[0],t=t.slice(1),n++):l=/^[^\s<>='"]*$/,O))a.push({label:o,apply:r+o+s,type:"constant"})}}return{from:n,to:i,options:a,validFor:l}}(r,e,i,"Is"==i.name?n:i.from,n):t.explicit&&("Element"==s.name||"Text"==s.name||"Document"==s.name)?function(e,t,r,n){let i=[],s=0;for(let n of L(e.doc,r,t))i.push({label:"<"+n,type:"type"});for(let t of J(e.doc,r))i.push({label:"",type:"type",boost:99-s++});return{from:n,to:n,options:i,validFor:/^<\/?[:\-\.\w\u00b7-\uffff]*$/}}(r,e,i,n):null})(n,e)}(e)}),!1!==e.autoCloseTags?ea:[],(0,Y.Q2)().support,(0,T.AH)().support])}let eo=new Set("area base br col command embed frame hr img input keygen link meta param source track wbr menuitem".split(" ")),ea=W.Lz.inputHandler.of((e,t,r,n,i)=>{if(e.composing||e.state.readOnly||t!=r||">"!=n&&"/"!=n||!ei.isActiveAt(e.state,t,-1))return!1;let s=i(),{state:o}=s,a=o.changeByRange(e=>{var t,r,i;let s=o.doc.sliceString(e.from-1,e.to)==n,{head:a}=e,l=(0,q.mv)(o).resolveInner(a,-1),O;if(s&&">"==n&&"EndTag"==l.name){let n=l.parent;if((null===(r=null===(t=n.parent)||void 0===t?void 0:t.lastChild)||void 0===r?void 0:r.name)!="CloseTag"&&(O=D(o.doc,n.parent,a))&&!eo.has(O)){let t=a+(">"===o.doc.sliceString(a,a+1)?1:0);return{range:e,changes:{from:a,to:t,insert:``}}}}else if(s&&"/"==n&&"IncompleteCloseTag"==l.name){let e=l.parent;if(l.from==a-2&&(null===(i=e.lastChild)||void 0===i?void 0:i.name)!="CloseTag"&&(O=D(o.doc,e,a))&&!eo.has(O)){let e=a+(">"===o.doc.sliceString(a,a+1)?1:0),t=`${O}>`;return{range:A.OF.cursor(a+t.length,-1),changes:{from:a,to:e,insert:t}}}}return{range:e}});return!a.changes.empty&&(e.dispatch([s,o.update(a,{userEvent:"input.complete",scrollIntoView:!0})]),!0)})},41594:(e,t,r)=>{"use strict";r.d(t,{Q2:()=>V,o$:()=>T,W6:()=>A,g4:()=>q,sL:()=>W});var n=r(33108),i=r(53225);let s=[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],o=new n.Aj({start:!1,shift:(e,t)=>5==t||6==t||315==t?e:316==t,strict:!1}),a=new n.Lu((e,t)=>{let{next:r}=e;(125==r||-1==r||t.context)&&e.acceptToken(313)},{contextual:!0,fallback:!0}),l=new n.Lu((e,t)=>{let{next:r}=e,n;!(s.indexOf(r)>-1)&&(47==r&&(47==(n=e.peek(1))||42==n)||125==r||59==r||-1==r||t.context||e.acceptToken(312))},{contextual:!0}),O=new n.Lu((e,t)=>{let{next:r}=e;if(43==r||45==r){if(e.advance(),r==e.next){e.advance();let r=!t.context&&t.canShift(1);e.acceptToken(r?1:2)}}else 63==r&&46==e.peek(1)&&(e.advance(),e.advance(),(e.next<48||e.next>57)&&e.acceptToken(3))},{contextual:!0});function h(e,t){return e>=65&&e<=90||e>=97&&e<=122||95==e||e>=192||!t&&e>=48&&e<=57}let c=new n.Lu((e,t)=>{if(60!=e.next||!t.dialectEnabled(0)||(e.advance(),47==e.next))return;let r=0;for(;s.indexOf(e.next)>-1;)e.advance(),r++;if(h(e.next,!0)){for(e.advance(),r++;h(e.next,!1);)e.advance(),r++;for(;s.indexOf(e.next)>-1;)e.advance(),r++;if(44==e.next)return;for(let t=0;;t++){if(7==t){if(!h(e.next,!0))return;break}if(e.next!="extends".charCodeAt(t))break;e.advance(),r++}}e.acceptToken(4,-r)}),u=(0,i.pn)({"get set async static":i._A.modifier,"for while do if else switch try catch finally return throw break continue default case":i._A.controlKeyword,"in of await yield void typeof delete instanceof":i._A.operatorKeyword,"let var const using function class extends":i._A.definitionKeyword,"import export from":i._A.moduleKeyword,"with debugger as new":i._A.keyword,TemplateString:i._A.special(i._A.string),super:i._A.atom,BooleanLiteral:i._A.bool,this:i._A.self,null:i._A.null,Star:i._A.modifier,VariableName:i._A.variableName,"CallExpression/VariableName TaggedTemplateExpression/VariableName":i._A.function(i._A.variableName),VariableDefinition:i._A.definition(i._A.variableName),Label:i._A.labelName,PropertyName:i._A.propertyName,PrivatePropertyName:i._A.special(i._A.propertyName),"CallExpression/MemberExpression/PropertyName":i._A.function(i._A.propertyName),"FunctionDeclaration/VariableDefinition":i._A.function(i._A.definition(i._A.variableName)),"ClassDeclaration/VariableDefinition":i._A.definition(i._A.className),PropertyDefinition:i._A.definition(i._A.propertyName),PrivatePropertyDefinition:i._A.definition(i._A.special(i._A.propertyName)),UpdateOp:i._A.updateOperator,"LineComment Hashbang":i._A.lineComment,BlockComment:i._A.blockComment,Number:i._A.number,String:i._A.string,Escape:i._A.escape,ArithOp:i._A.arithmeticOperator,LogicOp:i._A.logicOperator,BitOp:i._A.bitwiseOperator,CompareOp:i._A.compareOperator,RegExp:i._A.regexp,Equals:i._A.definitionOperator,Arrow:i._A.function(i._A.punctuation),": Spread":i._A.punctuation,"( )":i._A.paren,"[ ]":i._A.squareBracket,"{ }":i._A.brace,"InterpolationStart InterpolationEnd":i._A.special(i._A.brace),".":i._A.derefOperator,", ;":i._A.separator,"@":i._A.meta,TypeName:i._A.typeName,TypeDefinition:i._A.definition(i._A.typeName),"type enum interface implements namespace module declare":i._A.definitionKeyword,"abstract global Privacy readonly override":i._A.modifier,"is keyof unique infer":i._A.operatorKeyword,JSXAttributeValue:i._A.attributeValue,JSXText:i._A.content,"JSXStartTag JSXStartCloseTag JSXSelfCloseEndTag JSXEndTag":i._A.angleBracket,"JSXIdentifier JSXNameSpacedName":i._A.tagName,"JSXAttribute/JSXIdentifier JSXAttribute/JSXNameSpacedName":i._A.attributeName,"JSXBuiltin/JSXIdentifier":i._A.standard(i._A.tagName)}),f={__proto__:null,export:20,as:25,from:33,default:36,async:41,function:42,extends:54,this:58,true:66,false:66,null:78,void:82,typeof:86,super:102,new:136,delete:148,yield:157,await:161,class:166,public:229,private:229,protected:229,readonly:231,instanceof:250,satisfies:253,in:254,const:256,import:290,keyof:345,unique:349,infer:355,is:391,abstract:411,implements:413,type:415,let:418,var:420,using:423,interface:429,enum:433,namespace:439,module:441,declare:445,global:449,for:468,of:477,while:480,with:484,do:488,if:492,else:494,switch:498,case:504,try:510,catch:514,finally:518,return:522,throw:526,break:530,continue:534,debugger:538},p={__proto__:null,async:123,get:125,set:127,declare:189,public:191,private:191,protected:191,static:193,abstract:195,override:197,readonly:203,accessor:205,new:395},d={__proto__:null,"<":187},g=n.U1.deserialize({version:14,states:"$=dO%TQ^OOO%[Q^OOO'_Q`OOP(lOWOOO*zQ?NdO'#CiO+RO!bO'#CjO+aO#tO'#CjO+oO!0LbO'#D^O.QQ^O'#DdO.bQ^O'#DoO%[Q^O'#DwO0fQ^O'#EPOOQ?Mr'#EX'#EXO1PQWO'#EUOOQO'#Em'#EmOOQO'#Ih'#IhO1XQWO'#GpO1dQWO'#ElO1iQWO'#ElO3hQ?NdO'#JmO6[Q?NdO'#JnO6uQWO'#F[O6zQ&jO'#FsOOQ?Mr'#Fe'#FeO7VO,YO'#FeO7eQ7[O'#FzO9RQWO'#FyOOQ?Mr'#Jn'#JnOOQ?Mp'#Jm'#JmO9WQWO'#GtOOQU'#KZ'#KZO9cQWO'#IUO9hQ?MxO'#IVOOQU'#JZ'#JZOOQU'#IZ'#IZQ`Q^OOO`Q^OOO9pQMnO'#DsO9wQ^O'#D{O:OQ^O'#D}O9^QWO'#GpO:VQ7[O'#CoO:eQWO'#EkO:pQWO'#EvO:uQ7[O'#FdO;dQWO'#GpOOQO'#K['#K[O;iQWO'#K[O;wQWO'#GxO;wQWO'#GyO;wQWO'#G{O9^QWO'#HOOVQWO'#CeO>gQWO'#H_O>oQWO'#HeO>oQWO'#HgO`Q^O'#HiO>oQWO'#HkO>oQWO'#HnO>tQWO'#HtO>yQ?MyO'#HzO%[Q^O'#H|O?UQ?MyO'#IOO?aQ?MyO'#IQO9hQ?MxO'#ISO?lQ?NdO'#CiO@nQ`O'#DiQOQWOOO%[Q^O'#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QOP$]OR#zO[;SOo:vO}#yO!P#{O!i#xO!m$]O#O:xO#k:tO#l:uO#m:uO#n:uO#o:wO#p:xO#q:xO#r;RO#s:xO#u:yO([VO(u#}O#y#ji#z#ji#}#ji(m#ji(t#ji!Y#ji!Z#ji~O#w:{O~P& iO#w#ji~P& iOP$]OR#zO[;SOo:vO}#yO!P#{O!i#xO!m$]O#O:xO#k:tO#l:uO#m:uO#n:uO#o:wO#p:xO#q:xO#r;RO#s:xO#u:yO([VO#y#ji#z#ji#}#ji(m#ji!Y#ji!Z#ji~O#w#ji(t#ji(u#ji~P&#qO#w:{O(t#|O(u#}O~P&#qOP$]OR#zO[;SOo:vO}#yO!P#{O!i#xO!m$]O#O:xO#k:tO#l:uO#m:uO#n:uO#o:wO#p:xO#q:xO#r;RO#s:xO#u:yO#w:{O#y:}O([VO(t#|O(u#}O~O#z#ji#}#ji(m#ji!Y#ji!Z#ji~P&&POa#{y!Y#{y'u#{y's#{y!V#{y!h#{ys#{y![#{y%f#{y!d#{y~P!9mOk < TypeParamList TypeDefinition extends ThisType this LiteralType ArithOp Number BooleanLiteral TemplateType InterpolationEnd Interpolation InterpolationStart NullType null VoidType void TypeofType typeof MemberExpression . PropertyName [ TemplateString Escape Interpolation super RegExp ] ArrayExpression Spread , } { ObjectExpression Property async get set PropertyDefinition Block : NewTarget new NewExpression ) ( ArgList UnaryExpression delete LogicOp BitOp YieldExpression yield AwaitExpression await ParenthesizedExpression ClassExpression class ClassBody MethodDeclaration Decorator @ MemberExpression PrivatePropertyName CallExpression TypeArgList CompareOp < declare Privacy static abstract override PrivatePropertyDefinition PropertyDeclaration readonly accessor Optional TypeAnnotation Equals StaticBlock FunctionExpression ArrowFunction ParamList ParamList ArrayPattern ObjectPattern PatternProperty Privacy readonly Arrow MemberExpression BinaryExpression ArithOp ArithOp ArithOp ArithOp BitOp CompareOp instanceof satisfies in const 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 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 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:376,context:o,nodeProps:[["isolate",-8,5,6,14,34,36,48,50,52,""],["group",-26,9,17,19,65,204,208,212,213,215,218,221,231,233,239,241,243,245,248,254,260,262,264,266,268,270,271,"Statement",-34,13,14,29,32,33,39,48,51,52,54,59,67,69,73,77,79,81,82,107,108,117,118,135,138,140,141,142,143,144,146,147,166,167,169,"Expression",-23,28,30,34,38,40,42,171,173,175,176,178,179,180,182,183,184,186,187,188,198,200,202,203,"Type",-3,85,100,106,"ClassItem"],["openedBy",23,"<",35,"InterpolationStart",53,"[",57,"{",70,"(",159,"JSXStartCloseTag"],["clos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z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'Ad#Gpi$h&j(Rp(U!bp'9tOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q![#Ge![!^%Z!^!_*g!_!c%Z!c!i#Ge!i#O%Z#O#P&c#P#R%Z#R#S#Ge#S#T%Z#T#Z#Ge#Z#b%Z#b#c#>_#c#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z*)x#Il_!d$b$h&j#})Lv(Rp(U!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z)[#Jv_al$h&j(Rp(U!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z04f#LS^h#)`#O-f[e]||-1},{term:338,get:e=>p[e]||-1},{term:92,get:e=>d[e]||-1}],tokenPrec:14793});var m=r(38380),Q=r(95151),$=r(66855),b=r(2908),S=r(81376);let P=[(0,b.Gw)("function ${name}(${params}) {\n ${}\n}",{label:"function",detail:"definition",type:"keyword"}),(0,b.Gw)("for (let ${index} = 0; ${index} < ${bound}; ${index}++) {\n ${}\n}",{label:"for",detail:"loop",type:"keyword"}),(0,b.Gw)("for (let ${name} of ${collection}) {\n ${}\n}",{label:"for",detail:"of loop",type:"keyword"}),(0,b.Gw)("do {\n ${}\n} while (${})",{label:"do",detail:"loop",type:"keyword"}),(0,b.Gw)("while (${}) {\n ${}\n}",{label:"while",detail:"loop",type:"keyword"}),(0,b.Gw)("try {\n ${}\n} catch (${error}) {\n ${}\n}",{label:"try",detail:"/ catch block",type:"keyword"}),(0,b.Gw)("if (${}) {\n ${}\n}",{label:"if",detail:"block",type:"keyword"}),(0,b.Gw)("if (${}) {\n ${}\n} else {\n ${}\n}",{label:"if",detail:"/ else block",type:"keyword"}),(0,b.Gw)("class ${name} {\n constructor(${params}) {\n ${}\n }\n}",{label:"class",detail:"definition",type:"keyword"}),(0,b.Gw)('import {${names}} from "${module}"\n${}',{label:"import",detail:"named",type:"keyword"}),(0,b.Gw)('import ${name} from "${module}"\n${}',{label:"import",detail:"default",type:"keyword"})],y=P.concat([(0,b.Gw)("interface ${name} {\n ${}\n}",{label:"interface",detail:"definition",type:"keyword"}),(0,b.Gw)("type ${name} = ${type}",{label:"type",detail:"definition",type:"keyword"}),(0,b.Gw)("enum ${name} {\n ${}\n}",{label:"enum",detail:"definition",type:"keyword"})]),x=new S.RY,k=new Set(["Script","Block","FunctionExpression","FunctionDeclaration","ArrowFunction","MethodDeclaration","ForStatement"]);function w(e){return(t,r)=>{let n=t.node.getChild("VariableDefinition");return n&&r(n,e),!0}}let v=["FunctionDeclaration"],Z={FunctionDeclaration:w("function"),ClassDeclaration:w("class"),ClassExpression:()=>!0,EnumDeclaration:w("constant"),TypeAliasDeclaration:w("type"),NamespaceDeclaration:w("namespace"),VariableDefinition(e,t){e.matchContext(v)||t(e,"variable")},TypeDefinition(e,t){t(e,"type")},__proto__:null},X=/^[\w$\xa1-\uffff][\w$\d\xa1-\uffff]*$/,_=["TemplateString","String","RegExp","LineComment","BlockComment","VariableDefinition","TypeDefinition","Label","PropertyDefinition","PropertyName","PrivatePropertyDefinition","PrivatePropertyName",".","?."];function R(e){let t=(0,m.mv)(e.state).resolveInner(e.pos,-1);if(_.indexOf(t.name)>-1)return null;let r="VariableName"==t.name||t.to-t.from<20&&X.test(e.state.sliceDoc(t.from,t.to));if(!r&&!e.explicit)return null;let n=[];for(let r=t;r;r=r.parent)k.has(r.name)&&(n=n.concat(function e(t,r){let n=x.get(r);if(n)return n;let i=[],s=!0;function o(e,r){let n=t.sliceString(e.from,e.to);i.push({label:n,type:r})}return r.cursor(S.Qj.IncludeAnonymous).iterate(r=>{if(s)s=!1;else if(r.name){let e=Z[r.name];if(e&&e(r,o)||k.has(r.name))return!1}else if(r.to-r.from>8192){for(let n of e(t,r.node))i.push(n);return!1}}),x.set(r,i),i}(e.state.doc,r)));return{options:n,from:r?t.from:e.pos,validFor:X}}let T=m.bj.define({name:"javascript",parser:g.configure({props:[m.Oh.add({IfStatement:(0,m.mz)({except:/^\s*({|else\b)/}),TryStatement:(0,m.mz)({except:/^\s*({|catch\b|finally\b)/}),LabeledStatement:m._Y,SwitchBody:e=>{let t=e.textAfter,r=/^\s*\}/.test(t),n=/^\s*(case|default)\b/.test(t);return e.baseIndent+(r?0:n?1:2)*e.unit},Block:(0,m.Ay)({closing:"}"}),ArrowFunction:e=>e.baseIndent+e.unit,"TemplateString BlockComment":()=>null,"Statement Property":(0,m.mz)({except:/^{/}),JSXElement(e){let t=/^\s*<\//.test(e.textAfter);return e.lineIndent(e.node.from)+(t?0:e.unit)},JSXEscape(e){let t=/\s*\}/.test(e.textAfter);return e.lineIndent(e.node.from)+(t?0:e.unit)},"JSXOpenTag JSXSelfClosingTag":e=>e.column(e.node.from)+e.unit}),m.b_.add({"Block ClassBody SwitchBody EnumBody ObjectExpression ArrayExpression ObjectType":m.yd,BlockComment:e=>({from:e.from+2,to:e.to-2})})]}),languageData:{closeBrackets:{brackets:["(","[","{","'",'"',"`"]},commentTokens:{line:"//",block:{open:"/*",close:"*/"}},indentOnInput:/^\s*(?:case |default:|\{|\}|<\/)$/,wordChars:"$"}}),Y={test:e=>/^JSX/.test(e.name),facet:(0,m.p9)({commentTokens:{block:{open:"{/*",close:"*/}"}}})},W=T.configure({dialect:"ts"},"typescript"),A=T.configure({dialect:"jsx",props:[m.Q0.add(e=>e.isTop?[Y]:void 0)]}),q=T.configure({dialect:"jsx ts",props:[m.Q0.add(e=>e.isTop?[Y]:void 0)]},"typescript"),z=e=>({label:e,type:"keyword"}),j="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(z),U=j.concat(["declare","implements","private","protected","public"].map(z));function V(e={}){let t=e.jsx?e.typescript?q:A:e.typescript?W:T,r=e.typescript?y.concat(U):P.concat(j);return new m.Yy(t,[T.data.of({autocomplete:(0,b.Ar)(_,(0,b.et)(r))}),T.data.of({autocomplete:R}),e.jsx?I:[]])}function C(e,t,r=e.length){for(let n=null==t?void 0:t.firstChild;n;n=n.nextSibling)if("JSXIdentifier"==n.name||"JSXBuiltin"==n.name||"JSXNamespacedName"==n.name||"JSXMemberExpression"==n.name)return e.sliceString(n.from,Math.min(n.to,r));return""}let E="object"==typeof navigator&&/Android\b/.test(navigator.userAgent),I=$.Lz.inputHandler.of((e,t,r,n,i)=>{if((E?e.composing:e.compositionStarted)||e.state.readOnly||t!=r||">"!=n&&"/"!=n||!T.isActiveAt(e.state,t,-1))return!1;let s=i(),{state:o}=s,a=o.changeByRange(e=>{var t;let{head:r}=e,i=(0,m.mv)(o).resolveInner(r-1,-1),s;if("JSXStartTag"==i.name&&(i=i.parent),o.doc.sliceString(r-1,r)!=n||"JSXAttributeValue"==i.name&&i.to>r);else if(">"==n&&"JSXFragmentTag"==i.name)return{range:e,changes:{from:r,insert:""}};else if("/"==n&&"JSXStartCloseTag"==i.name){let e=i.parent,n=e.parent;if(n&&e.from==r-2&&((s=C(o.doc,n.firstChild,r))||(null===(t=n.firstChild)||void 0===t?void 0:t.name)=="JSXFragmentTag")){let e=`${s}>`;return{range:Q.OF.cursor(r+e.length,-1),changes:{from:r,insert:e}}}}else if(">"==n){let t=function(e){for(;;){if("JSXOpenTag"==e.name||"JSXSelfClosingTag"==e.name||"JSXFragmentTag"==e.name)return e;if("JSXEscape"==e.name||!e.parent)return null;e=e.parent}}(i);if(t&&"JSXOpenTag"==t.name&&!/^\/?>|^<\//.test(o.doc.sliceString(r,r+2))&&(s=C(o.doc,t,r)))return{range:e,changes:{from:r,insert:``}}}return{range:e}});return!a.changes.empty&&(e.dispatch([s,o.update(a,{userEvent:"input.complete",scrollIntoView:!0})]),!0)})},38380:(e,t,r)=>{"use strict";r.d(t,{Ay:()=>q,EI:()=>X,KB:()=>R,Oh:()=>T,Q0:()=>c,Q_:()=>eu,SG:()=>ec,Xt:()=>v,Yy:()=>k,_Y:()=>j,_v:()=>_,b_:()=>V,bj:()=>p,cr:()=>F,jU:()=>ed,mv:()=>d,mz:()=>U,p9:()=>h,tp:()=>Z,y9:()=>et,yd:()=>C});var n,i=r(81376),s=r(95151),o=r(66855),a=r(53225),l=r(46217);let O=new i.uY;function h(e){return s.sj.define({combine:e?t=>t.concat(e):void 0})}let c=new i.uY;class u{constructor(e,t,r=[],n=""){this.data=e,this.name=n,s.$t.prototype.hasOwnProperty("tree")||Object.defineProperty(s.$t.prototype,"tree",{get(){return d(this)}}),this.parser=t,this.extension=[x.of(this),s.$t.languageData.of((e,t,r)=>{let n=f(e,t,r),i=n.type.prop(O);if(!i)return[];let s=e.facet(i),o=n.type.prop(c);if(o){let i=n.resolve(t-n.from,r);for(let t of o)if(t.test(i,e)){let r=e.facet(t.facet);return"replace"==t.type?r:r.concat(s)}}return s})].concat(r)}isActiveAt(e,t,r=-1){return f(e,t,r).type.prop(O)==this.data}findRegions(e){let t=e.facet(x);if((null==t?void 0:t.data)==this.data)return[{from:0,to:e.doc.length}];if(!t||!t.allowsNesting)return[];let r=[],n=(e,t)=>{if(e.prop(O)==this.data){r.push({from:t,to:t+e.length});return}let s=e.prop(i.uY.mounted);if(s){if(s.tree.prop(O)==this.data){if(s.overlay)for(let e of s.overlay)r.push({from:e.from+t,to:e.to+t});else r.push({from:t,to:t+e.length});return}if(s.overlay){let e=r.length;if(n(s.tree,s.overlay[0].from+t),r.length>e)return}}for(let r=0;re.isTop?t:void 0)]}),e.name)}configure(e,t){return new p(this.data,this.parser.configure(e),t||this.name)}get allowsNesting(){return this.parser.hasWrappers()}}function d(e){let t=e.field(u.state,!1);return t?t.tree:i.PH.empty}class g{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,t){let r=this.cursorPos-this.string.length;return e=this.cursorPos?this.doc.sliceString(e,t):this.string.slice(e-r,t-r)}}let m=null;class Q{constructor(e,t,r=[],n,i,s,o,a){this.parser=e,this.state=t,this.fragments=r,this.tree=n,this.treeLen=i,this.viewport=s,this.skipped=o,this.scheduleOn=a,this.parse=null,this.tempSkipped=[]}static create(e,t,r){return new Q(e,t,[],i.PH.empty,0,r,[],null)}startParse(){return this.parser.startParse(new g(this.state.doc),this.fragments)}work(e,t){return(null!=t&&t>=this.state.doc.length&&(t=void 0),this.tree!=i.PH.empty&&this.isDone(null!=t?t:this.state.doc.length))?(this.takeTree(),!0):this.withContext(()=>{var r;if("number"==typeof e){let t=Date.now()+e;e=()=>Date.now()>t}for(this.parse||(this.parse=this.startParse()),null!=t&&(null==this.parse.stoppedAt||this.parse.stoppedAt>t)&&t=this.treeLen&&((null==this.parse.stoppedAt||this.parse.stoppedAt>e)&&this.parse.stopAt(e),this.withContext(()=>{for(;!(t=this.parse.advance()););}),this.treeLen=e,this.tree=t,this.fragments=this.withoutTempSkipped(i.rr.addTree(this.tree,this.fragments,!0)),this.parse=null)}withContext(e){let t=m;m=this;try{return e()}finally{m=t}}withoutTempSkipped(e){for(let t;t=this.tempSkipped.pop();)e=$(e,t.from,t.to);return e}changes(e,t){let{fragments:r,tree:n,treeLen:s,viewport:o,skipped:a}=this;if(this.takeTree(),!e.empty){let t=[];if(e.iterChangedRanges((e,r,n,i)=>t.push({fromA:e,toA:r,fromB:n,toB:i})),r=i.rr.applyChanges(r,t),n=i.PH.empty,s=0,o={from:e.mapPos(o.from,-1),to:e.mapPos(o.to,1)},this.skipped.length)for(let t of(a=[],this.skipped)){let r=e.mapPos(t.from,1),n=e.mapPos(t.to,-1);re.from&&(this.fragments=$(this.fragments,r,n),this.skipped.splice(t--,1))}return!(this.skipped.length>=t)&&(this.reset(),!0)}reset(){this.parse&&(this.takeTree(),this.parse=null)}skipUntilInView(e,t){this.skipped.push({from:e,to:t})}static getSkippingParser(e){return new class extends i.iX{createParse(t,r,n){let s=n[0].from,o=n[n.length-1].to;return{parsedPos:s,advance(){let t=m;if(t){for(let e of n)t.tempSkipped.push(e);e&&(t.scheduleOn=t.scheduleOn?Promise.all([t.scheduleOn,e]):e)}return this.parsedPos=o,new i.PH(i.Z6.none,[],[],o-s)},stoppedAt:null,stopAt(){}}}}}isDone(e){e=Math.min(e,this.state.doc.length);let t=this.fragments;return this.treeLen>=e&&t.length&&0==t[0].from&&t[0].to>=e}static get(){return m}}function $(e,t,r){return i.rr.applyChanges(e,[{fromA:t,toA:r,fromB:t,toB:r}])}class b{constructor(e){this.context=e,this.tree=e.tree}apply(e){if(!e.docChanged&&this.tree==this.context.tree)return this;let t=this.context.changes(e.changes,e.state),r=this.context.treeLen==e.startState.doc.length?void 0:Math.max(e.changes.mapPos(this.context.treeLen),t.viewport.to);return t.work(20,r)||t.takeTree(),new b(t)}static init(e){let t=Math.min(3e3,e.doc.length),r=Q.create(e.facet(x).parser,e,{from:0,to:t});return r.work(20,t)||r.takeTree(),new b(r)}}u.state=s.sU.define({create:b.init,update(e,t){for(let e of t.effects)if(e.is(u.setState))return e.value;return t.startState.facet(x)!=t.state.facet(x)?b.init(t.state):e.apply(t)}});let S=e=>{let t=setTimeout(()=>e(),500);return()=>clearTimeout(t)};"undefined"!=typeof requestIdleCallback&&(S=e=>{let t=-1,r=setTimeout(()=>{t=requestIdleCallback(e,{timeout:400})},100);return()=>t<0?clearTimeout(r):cancelIdleCallback(t)});let P="undefined"!=typeof navigator&&(null===(n=navigator.scheduling)||void 0===n?void 0:n.isInputPending)?()=>navigator.scheduling.isInputPending():null,y=o.Z9.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 t=this.view.state.field(u.state).context;(t.updateViewport(e.view.viewport)||this.view.viewport.to>t.treeLen)&&this.scheduleWork(),(e.docChanged||e.selectionSet)&&(this.view.hasFocus&&(this.chunkBudget+=50),this.scheduleWork()),this.checkAsyncSchedule(t)}scheduleWork(){if(this.working)return;let{state:e}=this.view,t=e.field(u.state);t.tree==t.context.tree&&t.context.isDone(e.doc.length)||(this.working=S(this.work))}work(e){this.working=null;let t=Date.now();if(this.chunkEndn+1e3,a=i.context.work(()=>P&&P()||Date.now()>s,n+(o?0:1e5));this.chunkBudget-=Date.now()-t,(a||this.chunkBudget<=0)&&(i.context.takeTree(),this.view.dispatch({effects:u.setState.of(new b(i.context))})),this.chunkBudget>0&&!(a&&!o)&&this.scheduleWork(),this.checkAsyncSchedule(i.context)}checkAsyncSchedule(e){e.scheduleOn&&(this.workScheduled++,e.scheduleOn.then(()=>this.scheduleWork()).catch(e=>(0,o.c_)(this.view.state,e)).then(()=>this.workScheduled--),e.scheduleOn=null)}destroy(){this.working&&this.working()}isWorking(){return!!(this.working||this.workScheduled>0)}},{eventHandlers:{focus(){this.scheduleWork()}}}),x=s.sj.define({combine:e=>e.length?e[0]:null,enables:e=>[u.state,y,o.Lz.contentAttributes.compute([e],t=>{let r=t.facet(e);return r&&r.name?{"data-language":r.name}:{}})]});class k{constructor(e,t=[]){this.language=e,this.support=t,this.extension=[e,t]}}let w=s.sj.define(),v=s.sj.define({combine:e=>{if(!e.length)return" ";let t=e[0];if(!t||/\S/.test(t)||Array.from(t).some(e=>e!=t[0]))throw Error("Invalid indent unit: "+JSON.stringify(e[0]));return t}});function Z(e){let t=e.facet(v);return 9==t.charCodeAt(0)?e.tabSize*t.length:t.length}function X(e,t){let r="",n=e.tabSize,i=e.facet(v)[0];if(" "==i){for(;t>=n;)r+=" ",t-=n;i=" "}for(let e=0;e=t?function(e,t,r){let n=t.resolveStack(r),i=n.node.enterUnfinishedNodesBefore(r);if(i!=n.node){let e=[];for(let t=i;t!=n.node;t=t.parent)e.push(t);for(let t=e.length-1;t>=0;t--)n={node:e[t],next:n}}return Y(n,e,r)}(e,r,t):null}class R{constructor(e,t={}){this.state=e,this.options=t,this.unit=Z(e)}lineAt(e,t=1){let r=this.state.doc.lineAt(e),{simulateBreak:n,simulateDoubleBreak:i}=this.options;return null!=n&&n>=r.from&&n<=r.to?i&&n==e?{text:"",from:e}:(t<0?n-1&&(i+=s-this.countColumn(r,r.search(/\S|$/))),i}countColumn(e,t=e.length){return(0,s.y$)(e,this.state.tabSize,t)}lineIndent(e,t=1){let{text:r,from:n}=this.lineAt(e,t),i=this.options.overrideIndentation;if(i){let e=i(n);if(e>-1)return e}return this.countColumn(r,r.search(/\S|$/))}get simulatedBreak(){return this.options.simulateBreak||null}}let T=new i.uY;function Y(e,t,r){for(let n=e;n;n=n.next){let e=function(e){let t=e.type.prop(T);if(t)return t;let r=e.firstChild,n;if(r&&(n=r.type.prop(i.uY.closedBy))){let t=e.lastChild,r=t&&n.indexOf(t.name)>-1;return e=>z(e,!0,1,void 0,r&&!(e.pos==e.options.simulateBreak&&e.options.simulateDoubleBreak)?t.from:void 0)}return null==e.parent?W:null}(n.node);if(e)return e(A.create(t,r,n))}return 0}function W(){return 0}class A extends R{constructor(e,t,r){super(e.state,e.options),this.base=e,this.pos=t,this.context=r}get node(){return this.context.node}static create(e,t,r){return new A(e,t,r)}get textAfter(){return this.textAfterPos(this.pos)}get baseIndent(){return this.baseIndentFor(this.node)}baseIndentFor(e){let t=this.state.doc.lineAt(e.from);for(;;){let r=e.resolve(t.from);for(;r.parent&&r.parent.from==r.from;)r=r.parent;if(function(e,t){for(let r=t;r;r=r.parent)if(e==r)return!0;return!1}(r,e))break;t=this.state.doc.lineAt(r.from)}return this.lineIndent(t.from)}continue(){return Y(this.context.next,this.base,this.pos)}}function q({closing:e,align:t=!0,units:r=1}){return n=>z(n,t,r,e)}function z(e,t,r,n,i){let s=e.textAfter,o=s.match(/^\s*/)[0].length,a=n&&s.slice(o,o+n.length)==n||i==e.pos+o,l=t?function(e){let t=e.node,r=t.childAfter(t.from),n=t.lastChild;if(!r)return null;let i=e.options.simulateBreak,s=e.state.doc.lineAt(r.from),o=null==i||i<=s.from?s.to:Math.min(s.to,i);for(let e=r.to;;){let i=t.childAfter(e);if(!i||i==n)return null;if(!i.type.isSkipped)return i.frome.baseIndent;function U({except:e,units:t=1}={}){return r=>{let n=e&&e.test(r.textAfter);return r.baseIndent+(n?0:t*r.unit)}}let V=new i.uY;function C(e){let t=e.firstChild,r=e.lastChild;return t&&t.to=n?void 0:{from:r,to:n}}let I=s.Pe.define({map:E}),G=s.Pe.define({map:E}),M=s.sU.define({create:()=>o.NZ.none,update(e,t){for(let r of(e=e.map(t.changes),t.effects))if(r.is(I)&&!function(e,t,r){let n=!1;return e.between(t,t,(e,i)=>{e==t&&i==r&&(n=!0)}),n}(e,r.value.from,r.value.to)){let{preparePlaceholder:n}=t.state.facet(D),i=n?o.NZ.replace({widget:new J(n(t.state,r.value))}):L;e=e.update({add:[i.range(r.value.from,r.value.to)]})}else r.is(G)&&(e=e.update({filter:(e,t)=>r.value.from!=e||r.value.to!=t,filterFrom:r.value.from,filterTo:r.value.to}));if(t.selection){let r=!1,{head:n}=t.selection.main;e.between(n,n,(e,t)=>{en&&(r=!0)}),r&&(e=e.update({filterFrom:n,filterTo:n,filter:(e,t)=>t<=n||e>=n}))}return e},provide:e=>o.Lz.decorations.from(e),toJSON(e,t){let r=[];return e.between(0,t.doc.length,(e,t)=>{r.push(e,t)}),r},fromJSON(e){if(!Array.isArray(e)||e.length%2)throw RangeError("Invalid JSON for fold state");let t=[];for(let r=0;r(0,s.QR)(e,N)});function B(e,t){let{state:r}=e,n=r.facet(D),i=t=>{var r,n,i,s;let o;let a=e.lineBlockAt(e.posAtDOM(t.target)),l=(r=e.state,n=a.from,i=a.to,o=null,null===(s=r.field(M,!1))||void 0===s||s.between(n,i,(e,t)=>{(!o||o.from>e)&&(o={from:e,to:t})}),o);l&&e.dispatch({effects:G.of(l)}),t.preventDefault()};if(n.placeholderDOM)return n.placeholderDOM(e,i,t);let s=document.createElement("span");return s.textContent=n.placeholderText,s.setAttribute("aria-label",r.phrase("folded code")),s.title=r.phrase("unfold"),s.className="cm-foldPlaceholder",s.onclick=i,s}let L=o.NZ.replace({widget:new class extends o.xO{toDOM(e){return B(e,null)}}});class J extends o.xO{constructor(e){super(),this.value=e}eq(e){return this.value==e.value}toDOM(e){return B(e,this.value)}}o.wJ;class F{constructor(e,t){let r;function n(e){let t=l.G.newName();return(r||(r=Object.create(null)))["."+t]=e,t}this.specs=e;let i="string"==typeof t.all?t.all:t.all?n(t.all):void 0,s=t.scope;this.scope=s instanceof u?e=>e.prop(O)==s.data:s?e=>e==s:void 0,this.style=(0,a.az)(e.map(e=>({tag:e.tag,class:e.class||n(Object.assign({},e,{tag:null}))})),{all:i}).style,this.module=r?new l.G(r):null,this.themeType=t.themeType}static define(e,t){return new F(e,t||{})}}let K=s.sj.define(),H=s.sj.define({combine:e=>e.length?[e[0]]:null});function ee(e){let t=e.facet(K);return t.length?t:e.facet(H)}function et(e,t){let r=[en],n;return e instanceof F&&(e.module&&r.push(o.Lz.styleModule.of(e.module)),n=e.themeType),(null==t?void 0:t.fallback)?r.push(H.of(e)):n?r.push(K.computeN([o.Lz.darkTheme],t=>t.facet(o.Lz.darkTheme)==("dark"==n)?[e]:[])):r.push(K.of(e)),r}class er{constructor(e){this.markCache=Object.create(null),this.tree=d(e.state),this.decorations=this.buildDeco(e,ee(e.state)),this.decoratedTo=e.viewport.to}update(e){let t=d(e.state),r=ee(e.state),n=r!=ee(e.startState),{viewport:i}=e.view,s=e.changes.mapPos(this.decoratedTo,1);t.length=i.to?(this.decorations=this.decorations.map(e.changes),this.decoratedTo=s):(t!=this.tree||e.viewportChanged||n)&&(this.tree=t,this.decorations=this.buildDeco(e.view,r),this.decoratedTo=i.to)}buildDeco(e,t){if(!t||!this.tree.length)return o.NZ.none;let r=new s.vB;for(let{from:n,to:i}of e.visibleRanges)(0,a.DM)(this.tree,t,(e,t,n)=>{r.add(e,t,this.markCache[n]||(this.markCache[n]=o.NZ.mark({class:n})))},n,i);return r.finish()}}let en=s.Nb.high(o.Z9.fromClass(er,{decorations:e=>e.decorations}));a._A.meta,a._A.link,a._A.heading,a._A.emphasis,a._A.strong,a._A.strikethrough,a._A.keyword,a._A.atom,a._A.bool,a._A.url,a._A.contentSeparator,a._A.labelName,a._A.literal,a._A.inserted,a._A.string,a._A.deleted,a._A.regexp,a._A.escape,a._A.string,a._A.variableName,a._A.variableName,a._A.typeName,a._A.namespace,a._A.className,a._A.variableName,a._A.macroName,a._A.propertyName,a._A.comment,a._A.invalid;let ei=o.Lz.baseTheme({"&.cm-focused .cm-matchingBracket":{backgroundColor:"#328c8252"},"&.cm-focused .cm-nonmatchingBracket":{backgroundColor:"#bb555544"}}),es="()[]{}",eo=s.sj.define({combine:e=>(0,s.QR)(e,{afterCursor:!0,brackets:es,maxScanDistance:1e4,renderMatch:eO})}),ea=o.NZ.mark({class:"cm-matchingBracket"}),el=o.NZ.mark({class:"cm-nonmatchingBracket"});function eO(e){let t=[],r=e.matched?ea:el;return t.push(r.range(e.start.from,e.start.to)),e.end&&t.push(r.range(e.end.from,e.end.to)),t}let eh=[s.sU.define({create:()=>o.NZ.none,update(e,t){if(!t.docChanged&&!t.selection)return e;let r=[],n=t.state.facet(eo);for(let e of t.state.selection.ranges){if(!e.empty)continue;let i=ed(t.state,e.head,-1,n)||e.head>0&&ed(t.state,e.head-1,1,n)||n.afterCursor&&(ed(t.state,e.head,1,n)||e.heado.Lz.decorations.from(e)}),ei];function ec(e={}){return[eo.of(e),eh]}let eu=new i.uY;function ef(e,t,r){let n=e.prop(t<0?i.uY.openedBy:i.uY.closedBy);if(n)return n;if(1==e.name.length){let n=r.indexOf(e.name);if(n>-1&&n%2==(t<0?1:0))return[r[n+t]]}return null}function ep(e){let t=e.type.prop(eu);return t?t(e.node):e}function ed(e,t,r,n={}){let i=n.maxScanDistance||1e4,s=n.brackets||es,o=d(e),a=o.resolveInner(t,r);for(let e=a;e;e=e.parent){let n=ef(e.type,r,s);if(n&&e.from0?t>=i.from&&ti.from&&t<=i.to))return function(e,t,r,n,i,s,o){let a=n.parent,l={from:i.from,to:i.to},O=0,h=null==a?void 0:a.cursor();if(h&&(r<0?h.childBefore(n.from):h.childAfter(n.to)))do if(r<0?h.to<=n.from:h.from>=n.to){if(0==O&&s.indexOf(h.type.name)>-1&&h.from0)return null;let O={from:r<0?t-1:t,to:r>0?t+1:t},h=e.doc.iterRange(t,r>0?e.doc.length:0),c=0;for(let e=0;!h.next().done&&e<=s;){let s=h.value;r<0&&(e+=s.length);let a=t+e*r;for(let e=r>0?0:s.length-1,t=r>0?s.length:-1;e!=t;e+=r){let t=o.indexOf(s[e]);if(!(t<0)&&n.resolveInner(a+e,1).type==i){if(t%2==0==r>0)c++;else{if(1==c)return{start:O,end:{from:a+e,to:a+e+1},matched:t>>1==l>>1};c--}}}r>0&&(e+=s.length)}return h.done?{start:O,matched:!1}:null}(e,t,r,o,a.type,i,s)}let eg=Object.create(null),em=[i.Z6.none],eQ=[],e$=Object.create(null),eb=Object.create(null);for(let[e,t]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"]])eb[e]=function(e,t){let r=[];for(let n of t.split(" ")){let t=[];for(let r of n.split(".")){let n=e[r]||a._A[r];n?"function"==typeof n?t.length?t=t.map(n):eS(r,`Modifier ${r} used at start of tag`):t.length?eS(r,`Tag ${r} used as modifier`):t=Array.isArray(n)?n:[n]:eS(r,`Unknown highlighting tag ${r}`)}for(let e of t)r.push(e)}if(!r.length)return 0;let n=t.replace(/ /g,"_"),s=n+" "+r.map(e=>e.id),o=e$[s];if(o)return o.id;let l=e$[s]=i.Z6.define({id:em.length,name:n,props:[(0,a.pn)({[n]:r})]});return em.push(l),l.id}(eg,t);function eS(e,t){eQ.indexOf(e)>-1||(eQ.push(e),console.warn(t))}function eP(e){return e.length<=4096&&/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac\ufb50-\ufdff]/.test(e)}let ey={rtl:o.NZ.mark({class:"cm-iso",inclusive:!0,attributes:{dir:"rtl"},bidiIsolate:o.OP.RTL}),ltr:o.NZ.mark({class:"cm-iso",inclusive:!0,attributes:{dir:"ltr"},bidiIsolate:o.OP.LTR}),auto:o.NZ.mark({class:"cm-iso",inclusive:!0,attributes:{dir:"auto"},bidiIsolate:null})}},95151:(e,t,r)=>{"use strict";let n;r.d(t,{$t:()=>eg,EY:()=>i,FB:()=>eQ,Fh:()=>S,Gu:()=>x,Je:()=>ep,MK:()=>b,Nb:()=>M,OF:()=>Y,Pe:()=>el,QR:()=>em,VR:()=>k,YH:()=>es,ZX:()=>eO,iR:()=>y,kn:()=>eA,om:()=>eP,sU:()=>E,sj:()=>q,vB:()=>ey,vS:()=>$,y$:()=>eW,zK:()=>d});class i{lineAt(e){if(e<0||e>this.length)throw 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 RangeError(`Invalid line number ${e} in ${this.lines}-line document`);return this.lineInner(e,!0,1,0)}replace(e,t,r){[e,t]=u(this,e,t);let n=[];return this.decompose(0,e,n,2),r.length&&r.decompose(0,r.length,n,3),this.decompose(t,this.length,n,1),o.from(n,this.length-(t-e)+r.length)}append(e){return this.replace(this.length,this.length,e)}slice(e,t=this.length){[e,t]=u(this,e,t);let r=[];return this.decompose(e,t,r,0),o.from(r,t-e)}eq(e){if(e==this)return!0;if(e.length!=this.length||e.lines!=this.lines)return!1;let t=this.scanIdentical(e,1),r=this.length-this.scanIdentical(e,-1),n=new l(this),i=new l(e);for(let e=t,s=t;;){if(n.next(e),i.next(e),e=0,n.lineBreak!=i.lineBreak||n.done!=i.done||n.value!=i.value)return!1;if(s+=n.value.length,n.done||s>=r)return!0}}iter(e=1){return new l(this,e)}iterRange(e,t=this.length){return new O(this,e,t)}iterLines(e,t){let r;if(null==e)r=this.iter();else{null==t&&(t=this.lines+1);let n=this.line(e).from;r=this.iterRange(n,Math.max(n,t==this.lines+1?this.length:t<=1?0:this.line(t-1).to))}return new h(r)}toString(){return this.sliceString(0)}toJSON(){let e=[];return this.flatten(e),e}constructor(){}static of(e){if(0==e.length)throw RangeError("A document must have at least one line");return 1!=e.length||e[0]?e.length<=32?new s(e):o.from(s.split(e,[])):i.empty}}class s extends i{constructor(e,t=function(e){let t=-1;for(let r of e)t+=r.length+1;return t}(e)){super(),this.text=e,this.length=t}get lines(){return this.text.length}get children(){return null}lineInner(e,t,r,n){for(let i=0;;i++){let s=this.text[i],o=n+s.length;if((t?r:o)>=e)return new c(n,o,r,s);n=o+1,r++}}decompose(e,t,r,n){let i=e<=0&&t>=this.length?this:new s(a(this.text,[""],e,t),Math.min(t,this.length)-Math.max(0,e));if(1&n){let e=r.pop(),t=a(i.text,e.text.slice(),0,i.length);if(t.length<=32)r.push(new s(t,e.length+i.length));else{let e=t.length>>1;r.push(new s(t.slice(0,e)),new s(t.slice(e)))}}else r.push(i)}replace(e,t,r){if(!(r instanceof s))return super.replace(e,t,r);[e,t]=u(this,e,t);let n=a(this.text,a(r.text,a(this.text,[""],0,e)),t),i=this.length+r.length-(t-e);return n.length<=32?new s(n,i):o.from(s.split(n,[]),i)}sliceString(e,t=this.length,r="\n"){[e,t]=u(this,e,t);let n="";for(let i=0,s=0;i<=t&&se&&s&&(n+=r),ei&&(n+=o.slice(Math.max(0,e-i),t-i)),i=a+1}return n}flatten(e){for(let t of this.text)e.push(t)}scanIdentical(){return 0}static split(e,t){let r=[],n=-1;for(let i of e)r.push(i),n+=i.length+1,32==r.length&&(t.push(new s(r,n)),r=[],n=-1);return n>-1&&t.push(new s(r,n)),t}}class o extends i{constructor(e,t){for(let r of(super(),this.children=e,this.length=t,this.lines=0,e))this.lines+=r.lines}lineInner(e,t,r,n){for(let i=0;;i++){let s=this.children[i],o=n+s.length,a=r+s.lines-1;if((t?a:o)>=e)return s.lineInner(e,t,r,n);n=o+1,r=a+1}}decompose(e,t,r,n){for(let i=0,s=0;s<=t&&i=s){let i=n&((s<=e?1:0)|(a>=t?2:0));s>=e&&a<=t&&!i?r.push(o):o.decompose(e-s,t-s,r,i)}s=a+1}}replace(e,t,r){if([e,t]=u(this,e,t),r.lines=i&&t<=a){let l=s.replace(e-i,t-i,r),O=this.lines-s.lines+l.lines;if(l.lines>4&&l.lines>O>>6){let i=this.children.slice();return i[n]=l,new o(i,this.length-(t-e)+r.length)}return super.replace(i,a,l)}i=a+1}return super.replace(e,t,r)}sliceString(e,t=this.length,r="\n"){[e,t]=u(this,e,t);let n="";for(let i=0,s=0;ie&&i&&(n+=r),es&&(n+=o.sliceString(e-s,t-s,r)),s=a+1}return n}flatten(e){for(let t of this.children)t.flatten(e)}scanIdentical(e,t){if(!(e instanceof o))return 0;let r=0,[n,i,s,a]=t>0?[0,0,this.children.length,e.children.length]:[this.children.length-1,e.children.length-1,-1,-1];for(;;n+=t,i+=t){if(n==s||i==a)return r;let o=this.children[n],l=e.children[i];if(o!=l)return r+o.scanIdentical(l,t);r+=o.length+1}}static from(e,t=e.reduce((e,t)=>e+t.length+1,-1)){let r=0;for(let t of e)r+=t.lines;if(r<32){let r=[];for(let t of e)t.flatten(r);return new s(r,t)}let n=Math.max(32,r>>5),i=n<<1,a=n>>1,l=[],O=0,h=-1,c=[];function u(){0!=O&&(l.push(1==c.length?c[0]:o.from(c,h)),h=-1,O=c.length=0)}for(let t of e)!function e(t){let r;if(t.lines>i&&t instanceof o)for(let r of t.children)e(r);else t.lines>a&&(O>a||!O)?(u(),l.push(t)):t instanceof s&&O&&(r=c[c.length-1])instanceof s&&t.lines+r.lines<=32?(O+=t.lines,h+=t.length+1,c[c.length-1]=new s(r.text.concat(t.text),r.length+1+t.length)):(O+t.lines>n&&u(),O+=t.lines,h+=t.length+1,c.push(t))}(t);return u(),1==l.length?l[0]:new o(l,t)}}function a(e,t,r=0,n=1e9){for(let i=0,s=0,o=!0;s=r&&(l>n&&(a=a.slice(0,n-i)),i0?1:(e instanceof s?e.text.length:e.children.length)<<1]}nextInner(e,t){for(this.done=this.lineBreak=!1;;){let r=this.nodes.length-1,n=this.nodes[r],i=this.offsets[r],o=i>>1,a=n instanceof s?n.text.length:n.children.length;if(o==(t>0?a:0)){if(0==r)return this.done=!0,this.value="",this;t>0&&this.offsets[r-1]++,this.nodes.pop(),this.offsets.pop()}else if((1&i)==(t>0?0:1)){if(this.offsets[r]+=t,0==e)return this.lineBreak=!0,this.value="\n",this;e--}else if(n instanceof s){let i=n.text[o+(t<0?-1:0)];if(this.offsets[r]+=t,i.length>Math.max(0,e))return this.value=0==e?i:t>0?i.slice(e):i.slice(0,i.length-e),this;e-=i.length}else{let i=n.children[o+(t<0?-1:0)];e>i.length?(e-=i.length,this.offsets[r]+=t):(t<0&&this.offsets[r]--,this.nodes.push(i),this.offsets.push(t>0?1:(i instanceof s?i.text.length:i.children.length)<<1))}}}next(e=0){return e<0&&(this.nextInner(-e,-this.dir),e=this.value.length),this.nextInner(e,this.dir)}}class O{constructor(e,t,r){this.value="",this.done=!1,this.cursor=new l(e,t>r?-1:1),this.pos=t>r?e.length:0,this.from=Math.min(t,r),this.to=Math.max(t,r)}nextInner(e,t){if(t<0?this.pos<=this.from:this.pos>=this.to)return this.value="",this.done=!0,this;e+=Math.max(0,t<0?this.pos-this.to:this.from-this.pos);let r=t<0?this.pos-this.from:this.to-this.pos;e>r&&(e=r),r-=e;let{value:n}=this.cursor.next(e);return this.pos+=(n.length+e)*t,this.value=n.length<=r?n:t<0?n.slice(n.length-r):n.slice(0,r),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}}class h{constructor(e){this.inner=e,this.afterBreak=!0,this.value="",this.done=!1}next(e=0){let{done:t,lineBreak:r,value:n}=this.inner.next(e);return t&&this.afterBreak?(this.value="",this.afterBreak=!1):t?(this.done=!0,this.value=""):r?this.afterBreak?this.value="":(this.afterBreak=!0,this.next()):(this.value=n,this.afterBreak=!1),this}get lineBreak(){return!1}}"undefined"!=typeof Symbol&&(i.prototype[Symbol.iterator]=function(){return this.iter()},l.prototype[Symbol.iterator]=O.prototype[Symbol.iterator]=h.prototype[Symbol.iterator]=function(){return this});class c{constructor(e,t,r,n){this.from=e,this.to=t,this.number=r,this.text=n}get length(){return this.to-this.from}}function u(e,t,r){return[t=Math.max(0,Math.min(e.length,t)),Math.max(t,Math.min(e.length,r))]}let f="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,9,9,,o,4,,9,,3,,5,17,3,3b,f,,w,1j,,,,4,8,4,,3,7,a,2,t,,1m,,,,2,4,8,,9,,a,2,q,,2,2,1l,,4,2,4,2,2,3,3,,u,2,3,,b,2,1l,,4,5,,2,4,,k,2,m,6,,,1m,,,2,,4,8,,7,3,a,2,u,,1n,,,,c,,9,,14,,3,,1l,3,5,3,,4,7,2,b,2,t,,1m,,2,,2,,3,,5,2,7,2,b,2,s,2,1l,2,,,2,4,8,,9,,a,2,t,,20,,4,,2,3,,,8,,29,,2,7,c,8,2q,,2,9,b,6,22,2,r,,,,,,1j,e,,5,,2,5,b,,10,9,,2u,4,,6,,2,2,2,p,2,4,3,g,4,d,,2,2,6,,f,,jj,3,qa,3,t,3,t,2,u,2,1s,2,,7,8,,2,b,9,,19,3,3b,2,y,,3a,3,4,2,9,,6,3,63,2,2,,1m,,,7,,,,,2,8,6,a,2,,1c,h,1r,4,1c,7,,,5,,14,9,c,2,w,4,2,2,,3,1k,,,2,3,,,3,1m,8,2,2,48,3,,d,,7,4,,6,,3,2,5i,1m,,5,ek,,5f,x,2da,3,3x,,2o,w,fe,6,2x,2,n9w,4,,a,w,2,28,2,7k,,3,,4,,p,2,5,,47,2,q,i,d,,12,8,p,b,1a,3,1c,,2,4,2,2,13,,1v,6,2,2,2,2,c,,8,,1b,,1f,,,3,2,2,5,2,,,16,2,8,,6m,,2,,4,,fn4,,kh,g,g,g,a6,2,gt,,6a,,45,5,1ae,3,,2,5,4,14,3,4,,4l,2,fx,4,ar,2,49,b,4w,,1i,f,1k,3,1d,4,2,2,1x,3,10,5,,8,1q,,c,2,1g,9,a,4,2,,2n,3,2,,,2,6,,4g,,3,8,l,2,1l,2,,,,,m,,e,7,3,5,5f,8,2,3,,,n,,29,,2,6,,,2,,,2,,2,6j,,2,4,6,2,,2,r,2,2d,8,2,,,2,2y,,,,2,6,,,2t,3,2,4,,5,77,9,,2,6t,,a,2,,,4,,40,4,2,2,4,,w,a,14,6,2,4,8,,9,6,2,3,1a,d,,2,ba,7,,6,,,2a,m,2,7,,2,,2,3e,6,3,,,2,,7,,,20,2,3,,,,9n,2,f0b,5,1n,7,t4,,1r,4,29,,f5k,2,43q,,,3,4,5,8,8,2,7,u,4,44,3,1iz,1j,4,1e,8,,e,,m,5,,f,11s,7,,h,2,7,,2,,5,79,7,c5,4,15s,7,31,7,240,5,gx7k,2o,3k,6o".split(",").map(e=>e?parseInt(e,36):1);for(let e=1;e=127462&&e<=127487}function d(e,t,r=!0,n=!0){return(r?g:function(e,t,r){for(;t>0;){let n=g(e,t-2,r);if(ne)return f[t-1]<=e;return!1}(i))t+=S(i),n=i;else if(p(i)){let r=0,n=t-2;for(;n>=0&&p($(e,n));)r++,n-=2;if(r%2==0)break;t+=2}else break}return t}function m(e){return e>=56320&&e<57344}function Q(e){return e>=55296&&e<56320}function $(e,t){let r=e.charCodeAt(t);if(!Q(r)||t+1==e.length)return r;let n=e.charCodeAt(t+1);return m(n)?(r-55296<<10)+(n-56320)+65536:r}function b(e){return e<=65535?String.fromCharCode(e):String.fromCharCode(((e-=65536)>>10)+55296,(1023&e)+56320)}function S(e){return e<65536?1:2}let P=/\r\n?|\n/;var y=function(e){return e[e.Simple=0]="Simple",e[e.TrackDel=1]="TrackDel",e[e.TrackBefore=2]="TrackBefore",e[e.TrackAfter=3]="TrackAfter",e}(y||(y={}));class x{constructor(e){this.sections=e}get length(){let e=0;for(let t=0;te)return i+(e-n);i+=o}else{if(r!=y.Simple&&l>=e&&(r==y.TrackDel&&ne||r==y.TrackBefore&&ne))return null;if(l>e||l==e&&t<0&&!o)return e==n||t<0?i:i+a;i+=a}n=l}if(e>n)throw RangeError(`Position ${e} is out of range for changeset of length ${n}`);return i}touchesRange(e,t=e){for(let r=0,n=0;r=0&&n<=t&&o>=e)return!(nt)||"cover";n=o}return!1}toString(){let e="";for(let t=0;t=0?":"+n:"")}return e}toJSON(){return this.sections}static fromJSON(e){if(!Array.isArray(e)||e.length%2||e.some(e=>"number"!=typeof e))throw RangeError("Invalid JSON representation of ChangeDesc");return new x(e)}static create(e){return new x(e)}}class k extends x{constructor(e,t){super(e),this.inserted=t}apply(e){if(this.length!=e.length)throw RangeError("Applying change set to a document with the wrong length");return Z(this,(t,r,n,i,s)=>e=e.replace(n,n+(r-t),s),!1),e}mapDesc(e,t=!1){return X(this,e,t,!0)}invert(e){let t=this.sections.slice(),r=[];for(let n=0,s=0;n=0){t[n]=a,t[n+1]=o;let l=n>>1;for(;r.length0&&v(r,t,i.text),i.forward(e),o+=e}let l=e[s++];for(;o>1].toJSON()))}return e}static of(e,t,r){let n=[],s=[],o=0,a=null;function l(e=!1){if(!e&&!n.length)return;oa||e<0||a>t)throw RangeError(`Invalid change range ${e} to ${a} (in doc of length ${t})`);let c=h?"string"==typeof h?i.of(h.split(r||P)):h:i.empty,u=c.length;if(e==a&&0==u)return;eo&&w(n,e-o,-1),w(n,a-e,u),v(s,n,c),o=a}}(e),l(!a),a}static empty(e){return new k(e?[e,-1]:[],[])}static fromJSON(e){if(!Array.isArray(e))throw RangeError("Invalid JSON representation of ChangeSet");let t=[],r=[];for(let n=0;nt&&"string"!=typeof e))throw RangeError("Invalid JSON representation of ChangeSet");else if(1==s.length)t.push(s[0],0);else{for(;r.length=0&&r<=0&&r==e[i+1]?e[i]+=t:0==t&&0==e[i]?e[i+1]+=r:n?(e[i]+=t,e[i+1]+=r):e.push(t,r)}function v(e,t,r){if(0==r.length)return;let n=t.length-2>>1;if(n>1])),!r&&a!=e.sections.length&&!(e.sections[a+1]<0);)l=e.sections[a++],O=e.sections[a++];t(s,h,o,c,u),s=h,o=c}}}function X(e,t,r,n=!1){let i=[],s=n?[]:null,o=new R(e),a=new R(t);for(let e=-1;;)if(-1==o.ins&&-1==a.ins){let e=Math.min(o.len,a.len);w(i,e,-1),o.forward(e),a.forward(e)}else if(a.ins>=0&&(o.ins<0||e==o.i||0==o.off&&(a.len=0&&e=0){let t=0,r=o.len;for(;r;)if(-1==a.ins){let e=Math.min(r,a.len);t+=e,r-=e,a.forward(e)}else if(0==a.ins&&a.lent||o.ins>=0&&o.len>t)&&(e||n.length>r),s.forward2(t),o.forward(t)}}else w(n,0,o.ins,e),i&&v(i,n,o.text),o.next()}}class R{constructor(e){this.set=e,this.i=0,this.next()}next(){let{sections:e}=this.set;this.i>1;return t>=e.length?i.empty:e[t]}textBit(e){let{inserted:t}=this.set,r=this.i-2>>1;return r>=t.length&&!e?i.empty:t[r].slice(this.off,null==e?void 0:this.off+e)}forward(e){e==this.len?this.next():(this.len-=e,this.off+=e)}forward2(e){-1==this.ins?this.forward(e):e==this.ins?this.next():(this.ins-=e,this.off+=e)}}class T{constructor(e,t,r){this.from=e,this.to=t,this.flags=r}get anchor(){return 32&this.flags?this.to:this.from}get head(){return 32&this.flags?this.from:this.to}get empty(){return this.from==this.to}get assoc(){return 8&this.flags?-1:16&this.flags?1:0}get bidiLevel(){let e=7&this.flags;return 7==e?null:e}get goalColumn(){let e=this.flags>>6;return 0xffffff==e?void 0:e}map(e,t=-1){let r,n;return this.empty?r=n=e.mapPos(this.from,t):(r=e.mapPos(this.from,1),n=e.mapPos(this.to,-1)),r==this.from&&n==this.to?this:new T(r,n,this.flags)}extend(e,t=e){if(e<=this.anchor&&t>=this.anchor)return Y.range(e,t);let r=Math.abs(e-this.anchor)>Math.abs(t-this.anchor)?e:t;return Y.range(this.anchor,r)}eq(e,t=!1){return this.anchor==e.anchor&&this.head==e.head&&(!t||!this.empty||this.assoc==e.assoc)}toJSON(){return{anchor:this.anchor,head:this.head}}static fromJSON(e){if(!e||"number"!=typeof e.anchor||"number"!=typeof e.head)throw RangeError("Invalid JSON representation for SelectionRange");return Y.range(e.anchor,e.head)}static create(e,t,r){return new T(e,t,r)}}class Y{constructor(e,t){this.ranges=e,this.mainIndex=t}map(e,t=-1){return e.empty?this:Y.create(this.ranges.map(r=>r.map(e,t)),this.mainIndex)}eq(e,t=!1){if(this.ranges.length!=e.ranges.length||this.mainIndex!=e.mainIndex)return!1;for(let r=0;re.toJSON()),main:this.mainIndex}}static fromJSON(e){if(!e||!Array.isArray(e.ranges)||"number"!=typeof e.main||e.main>=e.ranges.length)throw RangeError("Invalid JSON representation for EditorSelection");return new Y(e.ranges.map(e=>T.fromJSON(e)),e.main)}static single(e,t=e){return new Y([Y.range(e,t)],0)}static create(e,t=0){if(0==e.length)throw RangeError("A selection needs at least one range");for(let r=0,n=0;ne?8:0)|i)}static normalized(e,t=0){let r=e[t];e.sort((e,t)=>e.from-t.from),t=e.indexOf(r);for(let r=1;rn.head?Y.range(o,s):Y.range(s,o))}}return new Y(e,t)}}function W(e,t){for(let r of e.ranges)if(r.to>t)throw RangeError("Selection points outside of document")}let A=0;class q{constructor(e,t,r,n,i){this.combine=e,this.compareInput=t,this.compare=r,this.isStatic=n,this.id=A++,this.default=e([]),this.extensions="function"==typeof i?i(this):i}get reader(){return this}static define(e={}){return new q(e.combine||(e=>e),e.compareInput||((e,t)=>e===t),e.compare||(e.combine?(e,t)=>e===t:z),!!e.static,e.enables)}of(e){return new j([],this,0,e)}compute(e,t){if(this.isStatic)throw Error("Can't compute a static facet");return new j(e,this,1,t)}computeN(e,t){if(this.isStatic)throw Error("Can't compute a static facet");return new j(e,this,2,t)}from(e,t){return t||(t=e=>e),this.compute([e],r=>t(r.field(e)))}}function z(e,t){return e==t||e.length==t.length&&e.every((e,r)=>e===t[r])}class j{constructor(e,t,r,n){this.dependencies=e,this.facet=t,this.type=r,this.value=n,this.id=A++}dynamicSlot(e){var t;let r=this.value,n=this.facet.compareInput,i=this.id,s=e[i]>>1,o=2==this.type,a=!1,l=!1,O=[];for(let r of this.dependencies)"doc"==r?a=!0:"selection"==r?l=!0:((null!==(t=e[r.id])&&void 0!==t?t:1)&1)==0&&O.push(e[r.id]);return{create:e=>(e.values[s]=r(e),1),update(e,t){if(a&&t.docChanged||l&&(t.docChanged||t.selection)||V(e,O)){let t=r(e);if(o?!U(t,e.values[s],n):!n(t,e.values[s]))return e.values[s]=t,1}return 0},reconfigure:(e,t)=>{let a,l=t.config.address[i];if(null!=l){let i=F(t,l);if(this.dependencies.every(r=>r instanceof q?t.facet(r)===e.facet(r):!(r instanceof E)||t.field(r,!1)==e.field(r,!1))||(o?U(a=r(e),i,n):n(a=r(e),i)))return e.values[s]=i,0}else a=r(e);return e.values[s]=a,1}}}}function U(e,t,r){if(e.length!=t.length)return!1;for(let n=0;ne===t),e);return e.provide&&(t.provides=e.provide(t)),t}create(e){let t=e.facet(C).find(e=>e.field==this);return((null==t?void 0:t.create)||this.createF)(e)}slot(e){let t=e[this.id]>>1;return{create:e=>(e.values[t]=this.create(e),1),update:(e,r)=>{let n=e.values[t],i=this.updateF(n,r);return this.compareF(n,i)?0:(e.values[t]=i,1)},reconfigure:(e,r)=>null!=r.config.address[this.id]?(e.values[t]=r.field(this),0):(e.values[t]=this.create(e),1)}}init(e){return[this,C.of({field:this,create:e})]}get extension(){return this}}let I={lowest:4,low:3,default:2,high:1,highest:0};function G(e){return t=>new N(t,e)}let M={highest:G(I.highest),high:G(I.high),default:G(I.default),low:G(I.low),lowest:G(I.lowest)};class N{constructor(e,t){this.inner=e,this.prec=t}}class D{of(e){return new B(this,e)}reconfigure(e){return D.reconfigure.of({compartment:this,extension:e})}get(e){return e.config.compartments.get(this)}}class B{constructor(e,t){this.compartment=e,this.inner=t}}class L{constructor(e,t,r,n,i,s){for(this.base=e,this.compartments=t,this.dynamicSlots=r,this.address=n,this.staticValues=i,this.facets=s,this.statusTemplate=[];this.statusTemplate.length>1]}static resolve(e,t,r){let n,i,s=[],o=Object.create(null),a=new Map;for(let r of(n=[[],[],[],[],[]],i=new Map,!function e(r,s){let o=i.get(r);if(null!=o){if(o<=s)return;let e=n[o].indexOf(r);e>-1&&n[o].splice(e,1),r instanceof B&&a.delete(r.compartment)}if(i.set(r,s),Array.isArray(r))for(let t of r)e(t,s);else if(r instanceof B){if(a.has(r.compartment))throw RangeError("Duplicate use of compartment in extensions");let n=t.get(r.compartment)||r.inner;a.set(r.compartment,n),e(n,s)}else if(r instanceof N)e(r.inner,r.prec);else if(r instanceof E)n[s].push(r),r.provides&&e(r.provides,s);else if(r instanceof j)n[s].push(r),r.facet.extensions&&e(r.facet.extensions,I.default);else{let t=r.extension;if(!t)throw Error(`Unrecognized extension value in extension set (${r}). This sometimes happens because multiple instances of @codemirror/state are loaded, breaking instanceof checks.`);e(t,s)}}(e,I.default),n.reduce((e,t)=>e.concat(t))))r instanceof E?s.push(r):(o[r.facet.id]||(o[r.facet.id]=[])).push(r);let l=Object.create(null),O=[],h=[];for(let e of s)l[e.id]=h.length<<1,h.push(t=>e.slot(t));let c=null==r?void 0:r.config.facets;for(let e in o){let t=o[e],n=t[0].facet,i=c&&c[e]||[];if(t.every(e=>0==e.type)){if(l[n.id]=O.length<<1|1,z(i,t))O.push(r.facet(n));else{let e=n.combine(t.map(e=>e.value));O.push(r&&n.compare(e,r.facet(n))?r.facet(n):e)}}else{for(let e of t)0==e.type?(l[e.id]=O.length<<1|1,O.push(e.value)):(l[e.id]=h.length<<1,h.push(t=>e.dynamicSlot(t)));l[n.id]=h.length<<1,h.push(e=>(function(e,t,r){let n=r.map(t=>e[t.id]),i=r.map(e=>e.type),s=n.filter(e=>!(1&e)),o=e[t.id]>>1;function a(e){let r=[];for(let t=0;te(l)),l,O,o)}}function J(e,t){if(1&t)return 2;let r=t>>1,n=e.status[r];if(4==n)throw Error("Cyclic dependency between fields and/or facets");if(2&n)return n;e.status[r]=4;let i=e.computeSlot(e,e.config.dynamicSlots[r]);return e.status[r]=2|i}function F(e,t){return 1&t?e.config.staticValues[t>>1]:e.values[t>>1]}let K=q.define(),H=q.define({combine:e=>e.some(e=>e),static:!0}),ee=q.define({combine:e=>e.length?e[0]:void 0,static:!0}),et=q.define(),er=q.define(),en=q.define(),ei=q.define({combine:e=>!!e.length&&e[0]});class es{constructor(e,t){this.type=e,this.value=t}static define(){return new eo}}class eo{of(e){return new es(this,e)}}class ea{constructor(e){this.map=e}of(e){return new el(this,e)}}class el{constructor(e,t){this.type=e,this.value=t}map(e){let t=this.type.map(this.value,e);return void 0===t?void 0:t==this.value?this:new el(this.type,t)}is(e){return this.type==e}static define(e={}){return new ea(e.map||(e=>e))}static mapEffects(e,t){if(!e.length)return e;let r=[];for(let n of e){let e=n.map(t);e&&r.push(e)}return r}}el.reconfigure=el.define(),el.appendConfig=el.define();class eO{constructor(e,t,r,n,i,s){this.startState=e,this.changes=t,this.selection=r,this.effects=n,this.annotations=i,this.scrollIntoView=s,this._doc=null,this._state=null,r&&W(r,t.newLength),i.some(e=>e.type==eO.time)||(this.annotations=i.concat(eO.time.of(Date.now())))}static create(e,t,r,n,i,s){return new eO(e,t,r,n,i,s)}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 t of this.annotations)if(t.type==e)return t.value}get docChanged(){return!this.changes.empty}get reconfigured(){return this.startState.config!=this.state.config}isUserEvent(e){let t=this.annotation(eO.userEvent);return!!(t&&(t==e||t.length>e.length&&t.slice(0,e.length)==e&&"."==t[e.length]))}}function eh(e,t,r){var n;let i,s,o;return r?(i=t.changes,s=k.empty(t.changes.length),o=e.changes.compose(t.changes)):(i=t.changes.map(e.changes),s=e.changes.mapDesc(t.changes,!0),o=e.changes.compose(i)),{changes:o,selection:t.selection?t.selection.map(s):null===(n=e.selection)||void 0===n?void 0:n.map(i),effects:el.mapEffects(e.effects,i).concat(el.mapEffects(t.effects,s)),annotations:e.annotations.length?e.annotations.concat(t.annotations):t.annotations,scrollIntoView:e.scrollIntoView||t.scrollIntoView}}function ec(e,t,r){let n=t.selection,i=ef(t.annotations);return t.userEvent&&(i=i.concat(eO.userEvent.of(t.userEvent))),{changes:t.changes instanceof k?t.changes:k.of(t.changes||[],r,e.facet(ee)),selection:n&&(n instanceof Y?n:Y.single(n.anchor,n.head)),effects:ef(t.effects),annotations:i,scrollIntoView:!!t.scrollIntoView}}eO.time=es.define(),eO.userEvent=es.define(),eO.addToHistory=es.define(),eO.remote=es.define();let eu=[];function ef(e){return null==e?eu:Array.isArray(e)?e:[e]}var ep=function(e){return e[e.Word=0]="Word",e[e.Space=1]="Space",e[e.Other=2]="Other",e}(ep||(ep={}));let ed=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;try{n=RegExp("[\\p{Alphabetic}\\p{Number}_]","u")}catch(e){}class eg{constructor(e,t,r,n,i,s){this.config=e,this.doc=t,this.selection=r,this.values=n,this.status=e.statusTemplate.slice(),this.computeSlot=i,s&&(s._state=this);for(let e=0;e=0;i--){let s=r[i](e);s&&Object.keys(s).length&&(n=eh(n,ec(t,s,e.changes.newLength),!0))}return n==e?e:eO.create(t,e.changes,e.selection,n.effects,n.annotations,n.scrollIntoView)}(n?function(t){let r=t.startState,n=!0;for(let e of r.facet(et)){let r=e(t);if(!1===r){n=!1;break}Array.isArray(r)&&(n=!0===n?r:function(e,t){let r=[];for(let n=0,i=0;;){let s,o;if(n=e[n]))s=e[n++],o=e[n++];else{if(!(i=0;n--){let s=i[n](t);t=s instanceof eO?s:Array.isArray(s)&&1==s.length&&s[0]instanceof eO?s[0]:e(r,ef(s),!1)}return t}(s):s)}(this,e,!0)}applyTransaction(e){let t,r=this.config,{base:n,compartments:i}=r;for(let t of e.effects)t.is(D.reconfigure)?(r&&(i=new Map,r.compartments.forEach((e,t)=>i.set(t,e)),r=null),i.set(t.value.compartment,t.value.extension)):t.is(el.reconfigure)?(r=null,n=t.value):t.is(el.appendConfig)&&(r=null,n=ef(n).concat(t.value));t=r?e.startState.values.slice():new eg(r=L.resolve(n,i,this),this.doc,this.selection,r.dynamicSlots.map(()=>null),(e,t)=>t.reconfigure(e,this),null).values;let s=e.startState.facet(H)?e.newSelection:e.newSelection.asSingle();new eg(r,e.newDoc,s,t,(t,r)=>r.update(t,e),e)}replaceSelection(e){return"string"==typeof e&&(e=this.toText(e)),this.changeByRange(t=>({changes:{from:t.from,to:t.to,insert:e},range:Y.cursor(t.from+e.length)}))}changeByRange(e){let t=this.selection,r=e(t.ranges[0]),n=this.changes(r.changes),i=[r.range],s=ef(r.effects);for(let r=1;ri.spec.fromJSON(s,e)))}}return eg.create({doc:e.doc,selection:Y.fromJSON(e.selection),extensions:t.extensions?n.concat([t.extensions]):n})}static create(e={}){let t=L.resolve(e.extensions||[],new Map),r=e.doc instanceof i?e.doc:i.of((e.doc||"").split(t.staticFacet(eg.lineSeparator)||P)),n=e.selection?e.selection instanceof Y?e.selection:Y.single(e.selection.anchor,e.selection.head):Y.single(0);return W(n,r.length),t.staticFacet(H)||(n=n.asSingle()),new eg(t,r,n,t.dynamicSlots.map(()=>null),(e,t)=>t.create(e),null)}get tabSize(){return this.facet(eg.tabSize)}get lineBreak(){return this.facet(eg.lineSeparator)||"\n"}get readOnly(){return this.facet(ei)}phrase(e,...t){for(let t of this.facet(eg.phrases))if(Object.prototype.hasOwnProperty.call(t,e)){e=t[e];break}return t.length&&(e=e.replace(/\$(\$|\d*)/g,(e,r)=>{if("$"==r)return"$";let n=+(r||1);return!n||n>t.length?e:t[n-1]})),e}languageDataAt(e,t,r=-1){let n=[];for(let i of this.facet(K))for(let s of i(this,t,r))Object.prototype.hasOwnProperty.call(s,e)&&n.push(s[e]);return n}charCategorizer(e){var t;return t=this.languageDataAt("wordChars",e).join(""),e=>{if(!/\S/.test(e))return ep.Space;if(function(e){if(n)return n.test(e);for(let t=0;t"\x80"&&(r.toUpperCase()!=r.toLowerCase()||ed.test(r)))return!0}return!1}(e))return ep.Word;for(let r=0;r-1)return ep.Word;return ep.Other}}wordAt(e){let{text:t,from:r,length:n}=this.doc.lineAt(e),i=this.charCategorizer(e),s=e-r,o=e-r;for(;s>0;){let e=d(t,s,!1);if(i(t.slice(e,s))!=ep.Word)break;s=e}for(;oe.length?e[0]:4}),eg.lineSeparator=ee,eg.readOnly=ei,eg.phrases=q.define({compare(e,t){let r=Object.keys(e),n=Object.keys(t);return r.length==n.length&&r.every(r=>e[r]==t[r])}}),eg.languageData=K,eg.changeFilter=et,eg.transactionFilter=er,eg.transactionExtender=en,D.reconfigure=el.define();class eQ{eq(e){return this==e}range(e,t=e){return e$.create(e,t,this)}}eQ.prototype.startSide=eQ.prototype.endSide=0,eQ.prototype.point=!1,eQ.prototype.mapMode=y.TrackDel;class e${constructor(e,t,r){this.from=e,this.to=t,this.value=r}static create(e,t,r){return new e$(e,t,r)}}function eb(e,t){return e.from-t.from||e.value.startSide-t.value.startSide}class eS{constructor(e,t,r,n){this.from=e,this.to=t,this.value=r,this.maxPoint=n}get length(){return this.to[this.to.length-1]}findIndex(e,t,r,n=0){let i=r?this.to:this.from;for(let s=n,o=i.length;;){if(s==o)return s;let n=s+o>>1,a=i[n]-e||(r?this.value[n].endSide:this.value[n].startSide)-t;if(n==s)return a>=0?s:o;a>=0?o=n:s=n+1}}between(e,t,r,n){for(let i=this.findIndex(t,-1e9,!0),s=this.findIndex(r,1e9,!1,i);i(u=t.mapPos(h,l.endSide))||c==u&&l.startSide>0&&l.endSide<=0)continue;0>(u-c||l.endSide-l.startSide)||(s<0&&(s=c),l.point&&(o=Math.max(o,u-c)),r.push(l),n.push(c-s),i.push(u-s))}return{mapped:r.length?new eS(n,i,r,o):null,pos:s}}}class eP{constructor(e,t,r,n){this.chunkPos=e,this.chunk=t,this.nextLayer=r,this.maxPoint=n}static create(e,t,r,n){return new eP(e,t,r,n)}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 t of this.chunk)e+=t.value.length;return e}chunkEnd(e){return this.chunkPos[e]+this.chunk[e].length}update(e){let{add:t=[],sort:r=!1,filterFrom:n=0,filterTo:i=this.length}=e,s=e.filter;if(0==t.length&&!s)return this;if(r&&(t=t.slice().sort(eb)),this.isEmpty)return t.length?eP.of(t):this;let o=new ek(this,null,-1).goto(0),a=0,l=[],O=new ey;for(;o.value||a=0){let e=t[a++];O.addInner(e.from,e.to,e.value)||l.push(e)}else 1==o.rangeIndex&&o.chunkIndexthis.chunkEnd(o.chunkIndex)||io.to||i=i&&e<=i+s.length&&!1===s.between(i,e-i,t-i,r))return}this.nextLayer.between(e,t,r)}}iter(e=0){return ew.from([this]).goto(e)}get isEmpty(){return this.nextLayer==this}static iter(e,t=0){return ew.from(e).goto(t)}static compare(e,t,r,n,i=-1){let s=e.filter(e=>e.maxPoint>0||!e.isEmpty&&e.maxPoint>=i),o=t.filter(e=>e.maxPoint>0||!e.isEmpty&&e.maxPoint>=i),a=ex(s,o,r),l=new eZ(s,a,i),O=new eZ(o,a,i);r.iterGaps((e,t,r)=>eX(l,e,O,t,r,n)),r.empty&&0==r.length&&eX(l,0,O,0,0,n)}static eq(e,t,r=0,n){null==n&&(n=0x3b9ac9ff);let i=e.filter(e=>!e.isEmpty&&0>t.indexOf(e)),s=t.filter(t=>!t.isEmpty&&0>e.indexOf(t));if(i.length!=s.length)return!1;if(!i.length)return!0;let o=ex(i,s),a=new eZ(i,o,0).goto(r),l=new eZ(s,o,0).goto(r);for(;;){if(a.to!=l.to||!e_(a.active,l.active)||a.point&&(!l.point||!a.point.eq(l.point)))return!1;if(a.to>n)return!0;a.next(),l.next()}}static spans(e,t,r,n,i=-1){let s=new eZ(e,null,i).goto(t),o=t,a=s.openStart;for(;;){let e=Math.min(s.to,r);if(s.point){let r=s.activeForPoint(s.to),i=s.pointFromo&&(n.span(o,e,s.active,a),a=s.openEnd(e));if(s.to>r)return a+(s.point&&s.to>r?1:0);o=s.to,s.next()}}static of(e,t=!1){let r=new ey;for(let n of e instanceof e$?[e]:t?function(e){if(e.length>1)for(let t=e[0],r=1;r0)return e.slice().sort(eb);t=n}return e}(e):e)r.add(n.from,n.to,n.value);return r.finish()}static join(e){if(!e.length)return eP.empty;let t=e[e.length-1];for(let r=e.length-2;r>=0;r--)for(let n=e[r];n!=eP.empty;n=n.nextLayer)t=new eP(n.chunkPos,n.chunk,t,Math.max(n.maxPoint,t.maxPoint));return t}}eP.empty=new eP([],[],null,-1),eP.empty.nextLayer=eP.empty;class ey{finishChunk(e){this.chunks.push(new eS(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,t,r){this.addInner(e,t,r)||(this.nextLayer||(this.nextLayer=new ey)).add(e,t,r)}addInner(e,t,r){let n=e-this.lastTo||r.startSide-this.last.endSide;if(n<=0&&0>(e-this.lastFrom||r.startSide-this.last.startSide))throw Error("Ranges must be added sorted by `from` position and `startSide`");return!(n<0)&&(250==this.from.length&&this.finishChunk(!0),this.chunkStart<0&&(this.chunkStart=e),this.from.push(e-this.chunkStart),this.to.push(t-this.chunkStart),this.last=r,this.lastFrom=e,this.lastTo=t,this.value.push(r),r.point&&(this.maxPoint=Math.max(this.maxPoint,t-e)),!0)}addChunk(e,t){if(0>(e-this.lastTo||t.value[0].startSide-this.last.endSide))return!1;this.from.length&&this.finishChunk(!0),this.setMaxPoint=Math.max(this.setMaxPoint,t.maxPoint),this.chunks.push(t),this.chunkPos.push(e);let r=t.value.length-1;return this.last=t.value[r],this.lastFrom=t.from[r]+e,this.lastTo=t.to[r]+e,!0}finish(){return this.finishInner(eP.empty)}finishInner(e){if(this.from.length&&this.finishChunk(!1),0==this.chunks.length)return e;let t=eP.create(this.chunkPos,this.chunks,this.nextLayer?this.nextLayer.finishInner(e):e,this.setMaxPoint);return this.from=null,t}}function ex(e,t,r){let n=new Map;for(let t of e)for(let e=0;e(this.to-e||this.endSide-t)&&this.gotoInner(e,t,!0)}next(){for(;;){if(this.chunkIndex==this.layer.chunk.length){this.from=this.to=1e9,this.value=null;break}{let e=this.layer.chunkPos[this.chunkIndex],t=this.layer.chunk[this.chunkIndex],r=e+t.from[this.rangeIndex];if(this.from=r,this.to=e+t.to[this.rangeIndex],this.value=t.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=r&&n.push(new ek(s,t,r,i));return 1==n.length?n[0]:new ew(n)}get startSide(){return this.value?this.value.startSide:0}goto(e,t=-1e9){for(let r of this.heap)r.goto(e,t);for(let e=this.heap.length>>1;e>=0;e--)ev(this.heap,e);return this.next(),this}forward(e,t){for(let r of this.heap)r.forward(e,t);for(let e=this.heap.length>>1;e>=0;e--)ev(this.heap,e);0>(this.to-e||this.value.endSide-t)&&this.next()}next(){if(0==this.heap.length)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(),ev(this.heap,0)}}}function ev(e,t){for(let r=e[t];;){let n=(t<<1)+1;if(n>=e.length)break;let i=e[n];if(n+1=0&&(i=e[n+1],n++),0>r.compare(i))break;e[n]=r,e[t]=i,t=n}}class eZ{constructor(e,t,r){this.minPoint=r,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=ew.from(e,t,r)}goto(e,t=-1e9){return this.cursor.goto(e,t),this.active.length=this.activeTo.length=this.activeRank.length=0,this.minActive=-1,this.to=e,this.endSide=t,this.openStart=-1,this.next(),this}forward(e,t){for(;this.minActive>-1&&0>(this.activeTo[this.minActive]-e||this.active[this.minActive].endSide-t);)this.removeActive(this.minActive);this.cursor.forward(e,t)}removeActive(e){eR(this.active,e),eR(this.activeTo,e),eR(this.activeRank,e),this.minActive=eY(this.active,this.activeTo)}addActive(e){let t=0,{value:r,to:n,rank:i}=this.cursor;for(;t0;)t++;eT(this.active,t,r),eT(this.activeTo,t,n),eT(this.activeRank,t,i),e&&eT(e,t,this.cursor.from),this.minActive=eY(this.active,this.activeTo)}next(){let e=this.to,t=this.point;this.point=null;let r=this.openStart<0?[]:null;for(;;){let n=this.minActive;if(n>-1&&0>(this.activeTo[n]-this.cursor.from||this.active[n].endSide-this.cursor.startSide)){if(this.activeTo[n]>e){this.to=this.activeTo[n],this.endSide=this.active[n].endSide;break}this.removeActive(n),r&&eR(r,n)}else if(this.cursor.value){if(this.cursor.from>e){this.to=this.cursor.from,this.endSide=this.cursor.startSide;break}{let e=this.cursor.value;if(e.point){if(t&&this.cursor.to==this.to&&this.cursor.from=0&&r[t]=0&&!(this.activeRank[r]e||this.activeTo[r]==e&&this.active[r].endSide>=this.point.endSide)&&t.push(this.active[r]);return t.reverse()}openEnd(e){let t=0;for(let r=this.activeTo.length-1;r>=0&&this.activeTo[r]>e;r--)t++;return t}}function eX(e,t,r,n,i,s){e.goto(t),r.goto(n);let o=n+i,a=n,l=n-t;for(;;){let t=e.to+l-r.to||e.endSide-r.endSide,n=t<0?e.to+l:r.to,i=Math.min(n,o);if(e.point||r.point?e.point&&r.point&&(e.point==r.point||e.point.eq(r.point))&&e_(e.activeForPoint(e.to),r.activeForPoint(r.to))||s.comparePoint(a,i,e.point,r.point):i>a&&!e_(e.active,r.active)&&s.compareRange(a,i,e.active,r.active),n>o)break;a=n,t<=0&&e.next(),t>=0&&r.next()}}function e_(e,t){if(e.length!=t.length)return!1;for(let r=0;r=t;r--)e[r+1]=e[r];e[t]=r}function eY(e,t){let r=-1,n=1e9;for(let i=0;i(t[i]-n||e[i].endSide-e[r].endSide)&&(r=i,n=t[i]);return r}function eW(e,t,r=e.length){let n=0;for(let i=0;i=t)return n;if(n==e.length)break;i+=9==e.charCodeAt(n)?r-i%r:1,n=d(e,n)}return!0===n?-1:e.length}},74437:(e,t,r)=>{"use strict";r.d(t,{Jy:()=>i});var n=r(15127);function i(e,t,i){var s;return void 0===i&&(i={}),(0,n._)(this,void 0,void 0,function(){var o;return(0,n.a)(this,function(n){switch(n.label){case 0:switch(null!==(s=t.template)&&void 0!==s?s:"parcel"){case"node":return[3,1];case"static":return[3,3]}return[3,5];case 1:return[4,Promise.all([r.e(89845),r.e(55770)]).then(r.bind(r,55770)).then(function(e){return e.SandpackNode})];case 2:case 4:return o=n.sent(),[3,7];case 3:return[4,Promise.all([r.e(13332),r.e(89845),r.e(36959)]).then(r.bind(r,36959)).then(function(e){return e.SandpackStatic})];case 5:return[4,r.e(80825).then(r.bind(r,80825)).then(function(e){return e.SandpackRuntime})];case 6:o=n.sent(),n.label=7;case 7:return[2,new o(e,t,i)]}})})}r(3381)},15127:(e,t,r)=>{"use strict";r.d(t,{S:()=>n,_:()=>l,a:()=>O,b:()=>p,c:()=>c,d:()=>d,e:()=>g,f:()=>m,g:()=>o,h:()=>a,i:()=>h,n:()=>u});var n,i=r(3381),s=function(e,t){return(s=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)};function o(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}s(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var a=function(){return(a=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&i[i.length-1])&&(6===s[0]||2===s[0])){o=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]":" ",s=t.lineNumber.toString().length===r?"".concat(t.lineNumber):" ".concat(t.lineNumber),o=t.highlight?"\n"+" ".repeat(n)+"^":"";return e+"\n"+i+" "+s+" | "+t.content+o},"")),l=o?" (".concat(o._originalLineNumber,":").concat(o._originalColumnNumber,")"):"";return{message:(i=o._originalFileName,s=e.message,"".concat(i,": ").concat(s).concat(l,"\n").concat(a)),title:e.title,path:o._originalFileName,line:o._originalLineNumber,column:o._originalColumnNumber}}var m=function(e){return"string"==typeof e?e.startsWith("/")?e:"/".concat(e):Array.isArray(e)?e.map(function(e){return e.startsWith("/")?e:"/".concat(e)}):"object"==typeof e&&null!==e?Object.entries(e).reduce(function(e,t){var r=t[0],n=t[1];return e[r.startsWith("/")?r:"/".concat(r)]=n,e},{}):null}},81376:(e,t,r)=>{"use strict";var n;r.d(t,{$g:()=>q,PH:()=>p,Qj:()=>n,RY:()=>T,Z6:()=>h,cF:()=>i,fI:()=>c,iX:()=>W,rr:()=>Y,uY:()=>a});let i=1024,s=0;class o{constructor(e,t){this.from=e,this.to=t}}class a{constructor(e={}){this.id=s++,this.perNode=!!e.perNode,this.deserialize=e.deserialize||(()=>{throw Error("This node type doesn't define a deserialize function")})}add(e){if(this.perNode)throw RangeError("Can't add per-node props to node types");return"function"!=typeof e&&(e=h.match(e)),t=>{let r=e(t);return void 0===r?null:[this,r]}}}a.closedBy=new a({deserialize:e=>e.split(" ")}),a.openedBy=new a({deserialize:e=>e.split(" ")}),a.group=new a({deserialize:e=>e.split(" ")}),a.isolate=new a({deserialize:e=>{if(e&&"rtl"!=e&&"ltr"!=e&&"auto"!=e)throw RangeError("Invalid value for isolate: "+e);return e||"auto"}}),a.contextHash=new a({perNode:!0}),a.lookAhead=new a({perNode:!0}),a.mounted=new a({perNode:!0});class l{constructor(e,t,r){this.tree=e,this.overlay=t,this.parser=r}static get(e){return e&&e.props&&e.props[a.mounted.id]}}let O=Object.create(null);class h{constructor(e,t,r,n=0){this.name=e,this.props=t,this.id=r,this.flags=n}static define(e){let t=e.props&&e.props.length?Object.create(null):O,r=(e.top?1:0)|(e.skipped?2:0)|(e.error?4:0)|(null==e.name?8:0),n=new h(e.name||"",t,e.id,r);if(e.props){for(let r of e.props)if(Array.isArray(r)||(r=r(n)),r){if(r[0].perNode)throw RangeError("Can't store a per-node prop on a node type");t[r[0].id]=r[1]}}return n}prop(e){return this.props[e.id]}get isTop(){return(1&this.flags)>0}get isSkipped(){return(2&this.flags)>0}get isError(){return(4&this.flags)>0}get isAnonymous(){return(8&this.flags)>0}is(e){if("string"==typeof e){if(this.name==e)return!0;let t=this.prop(a.group);return!!t&&t.indexOf(e)>-1}return this.id==e}static match(e){let t=Object.create(null);for(let r in e)for(let n of r.split(" "))t[n]=e[r];return e=>{for(let r=e.prop(a.group),n=-1;n<(r?r.length:0);n++){let i=t[n<0?e.name:r[n]];if(i)return i}}}}h.none=new h("",Object.create(null),0,8);class c{constructor(e){this.types=e;for(let t=0;t=t){let o=new b(s.tree,s.overlay[0].from+e.from,-1,e);(i||(i=[n])).push(Q(o,t,r,!1))}}return i?k(i):n}(this,e,t)}iterate(e){let{enter:t,leave:r,from:i=0,to:s=this.length}=e,o=e.mode||0,a=(o&n.IncludeAnonymous)>0;for(let e=this.cursor(o|n.IncludeAnonymous);;){let n=!1;if(e.from<=s&&e.to>=i&&(!a&&e.type.isAnonymous||!1!==t(e))){if(e.firstChild())continue;n=!0}for(;n&&r&&(a||!e.type.isAnonymous)&&r(e),!e.nextSibling();){if(!e.parent())return;n=!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 t in this.props)e.push([+t,this.props[t]]);return e}balance(e={}){return this.children.length<=8?this:R(h.none,this.children,this.positions,0,this.children.length,0,this.length,(e,t,r)=>new p(this.type,e,t,r,this.propValues),e.makeTree||((e,t,r)=>new p(h.none,e,t,r)))}static build(e){return function(e){var t;let{buffer:r,nodeSet:n,maxBufferLength:s=i,reused:o=[],minRepeatType:l=n.types.length}=e,O=Array.isArray(r)?new d(r,r.length):r,h=n.types,c=0,u=0;function f(e,t,r,i,s,o,a,l){let O=[],h=[];for(;e.length>i;)O.push(e.pop()),h.push(t.pop()+r-s);e.push(m(n.types[a],O,h,o-s,l-o)),t.push(s-r)}function m(e,t,r,n,i=0,s){if(c){let e=[a.contextHash,c];s=s?[e].concat(s):[e]}if(i>25){let e=[a.lookAhead,i];s=s?[e].concat(s):[e]}return new p(e,t,r,n,s)}let Q=[],$=[];for(;O.pos>0;)!function e(t,r,i,d,Q,$){let{id:b,start:S,end:P,size:y}=O,x=u;for(;y<0;){if(O.next(),-1==y){let e=o[b];i.push(e),d.push(S-t);return}if(-3==y){c=b;return}if(-4==y){u=b;return}throw RangeError(`Unrecognized record size: ${y}`)}let k=h[b],w,v,Z=S-t;if(P-S<=s&&(v=function(e,t){let r=O.fork(),n=0,i=0,o=0,a=r.end-s,h={size:0,start:0,skip:0};t:for(let s=r.pos-e;r.pos>s;){let e=r.size;if(r.id==t&&e>=0){h.size=n,h.start=i,h.skip=o,o+=4,n+=4,r.next();continue}let O=r.pos-e;if(e<0||O=l?4:0,u=r.start;for(r.next();r.pos>O;){if(r.size<0){if(-3==r.size)c+=4;else break t}else r.id>=l&&(c+=4);r.next()}i=u,n+=e,o+=c}return(t<0||n==e)&&(h.size=n,h.start=i,h.skip=o),h.size>4?h:void 0}(O.pos-r,Q))){let e=new Uint16Array(v.size-v.skip),r=O.pos-v.size,i=e.length;for(;O.pos>r;)i=function e(t,r,n){let{id:i,start:s,end:o,size:a}=O;if(O.next(),a>=0&&i4){let i=O.pos-(a-4);for(;O.pos>i;)n=e(t,r,n)}r[--n]=l,r[--n]=o-t,r[--n]=s-t,r[--n]=i}else -3==a?c=i:-4==a&&(u=i);return n}(v.start,e,i);w=new g(e,P-v.start,n),Z=v.start-t}else{let t=O.pos-y;O.next();let r=[],i=[],o=b>=l?b:-1,h=0,c=P;for(;O.pos>t;)o>=0&&O.id==o&&O.size>=0?(O.end<=c-s&&(f(r,i,S,h,O.end,c,o,x),h=r.length,c=O.end),O.next()):$>2500?function(e,t,r,i){let o=[],a=0,l=-1;for(;O.pos>t;){let{id:e,start:t,end:r,size:n}=O;if(n>4)O.next();else if(l>-1&&t=0;e-=3)t[r++]=o[e],t[r++]=o[e+1]-s,t[r++]=o[e+2]-s,t[r++]=r;r.push(new g(t,o[2]-s,n)),i.push(s-e)}}(S,t,r,i):e(S,t,r,i,o,$+1);if(o>=0&&h>0&&h-1&&h>0){let e=function(e){return(t,r,n)=>{let i=0,s=t.length-1,o,l;if(s>=0&&(o=t[s])instanceof p){if(!s&&o.type==e&&o.length==n)return o;(l=o.prop(a.lookAhead))&&(i=r[s]+o.length+l)}return m(e,t,r,n,i)}}(k);w=R(k,r,i,0,r.length,0,P-S,e,e)}else w=m(k,r,i,P-S,x-P)}i.push(w),d.push(Z)}(e.start||0,e.bufferStart||0,Q,$,-1,0);let b=null!==(t=e.length)&&void 0!==t?t:Q.length?$[0]+Q[0].length:0;return new p(h[e.topID],Q.reverse(),$.reverse(),b)}(e)}}p.empty=new p(h.none,[],[],0);class d{constructor(e,t){this.buffer=e,this.index=t}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 d(this.buffer,this.index)}}class g{constructor(e,t,r){this.buffer=e,this.length=t,this.set=r}get type(){return h.none}toString(){let e=[];for(let t=0;t0)));a=s[a+3]);return o}slice(e,t,r){let n=this.buffer,i=new Uint16Array(t-e),s=0;for(let o=e,a=0;o=t&&rt;case 1:return r<=t&&n>t;case 2:return n>t;case 4:return!0}}function Q(e,t,r,i){for(var s;e.from==e.to||(r<1?e.from>=t:e.from>t)||(r>-1?e.to<=t:e.to0?a.length:-1;e!=h;e+=t){let h=a[e],c=O[e]+o.from;if(m(i,r,c,c+h.length)){if(h instanceof g){if(s&n.ExcludeBuffers)continue;let a=h.findChild(0,h.buffer.length,t,r-c,i);if(a>-1)return new x(new y(o,h,e,c),null,a)}else if(s&n.IncludeAnonymous||!h.type.isAnonymous||Z(h)){let a;if(!(s&n.IgnoreMounts)&&(a=l.get(h))&&!a.overlay)return new b(a.tree,c,e,o);let O=new b(h,c,e,o);return s&n.IncludeAnonymous||!O.type.isAnonymous?O:O.nextChild(t<0?h.children.length-1:0,t,r,i)}}}if(s&n.IncludeAnonymous||!o.type.isAnonymous||(e=o.index>=0?o.index+t:t<0?-1:o._parent._tree.children.length,!(o=o._parent)))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)}enter(e,t,r=0){let i;if(!(r&n.IgnoreOverlays)&&(i=l.get(this._tree))&&i.overlay){let r=e-this.from;for(let{from:e,to:n}of i.overlay)if((t>0?e<=r:e=r:n>r))return new b(i.tree,i.overlay[0].from+this.from,-1,this)}return this.nextChild(0,1,e,t,r)}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 S(e,t,r,n){let i=e.cursor(),s=[];if(!i.firstChild())return s;if(null!=r){for(let e=!1;!e;)if(e=i.type.is(r),!i.nextSibling())return s}for(;;){if(null!=n&&i.type.is(n))return s;if(i.type.is(t)&&s.push(i.node),!i.nextSibling())return null==n?s:[]}}function P(e,t,r=t.length-1){for(let n=e.parent;r>=0;n=n.parent){if(!n)return!1;if(!n.type.isAnonymous){if(t[r]&&t[r]!=n.name)return!1;r--}}return!0}class y{constructor(e,t,r,n){this.parent=e,this.buffer=t,this.index=r,this.start=n}}class x extends ${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,t,r){super(),this.context=e,this._parent=t,this.index=r,this.type=e.buffer.set.types[e.buffer.buffer[r]]}child(e,t,r){let{buffer:n}=this.context,i=n.findChild(this.index+4,n.buffer[this.index+3],e,t-this.context.start,r);return i<0?null:new x(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)}enter(e,t,r=0){if(r&n.ExcludeBuffers)return null;let{buffer:i}=this.context,s=i.findChild(this.index+4,i.buffer[this.index+3],t>0?1:-1,e-this.context.start,t);return s<0?null:new x(this.context,this,s)}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,t=e.buffer[this.index+3];return t<(this._parent?e.buffer[this._parent.index+3]:e.buffer.length)?new x(this.context,this._parent,t):this.externalSibling(1)}get prevSibling(){let{buffer:e}=this.context,t=this._parent?this._parent.index+4:0;return this.index==t?this.externalSibling(-1):new x(this.context,this._parent,e.findChild(t,this.index,-1,0,4))}get tree(){return null}toTree(){let e=[],t=[],{buffer:r}=this.context,n=this.index+4,i=r.buffer[this.index+3];if(i>n){let s=r.buffer[this.index+1];e.push(r.slice(n,i,s)),t.push(0)}return new p(this.type,e,t,this.to-this.from)}toString(){return this.context.buffer.childString(this.index)}}function k(e){if(!e.length)return null;let t=0,r=e[0];for(let n=1;nr.from||i.to0){if(this.index-1)for(let i=t+e,s=e<0?-1:r._tree.children.length;i!=s;i+=e){let e=r._tree.children[i];if(this.mode&n.IncludeAnonymous||e instanceof g||!e.type.isAnonymous||Z(e))return!1}return!0}move(e,t){if(t&&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,t=0){for(;(this.from==this.to||(t<1?this.from>=e:this.from>e)||(t>-1?this.to<=e:this.to=0;){for(let s=e;s;s=s._parent)if(s.index==n){if(n==this.index)return s;t=s,r=i+1;break t}n=this.stack[--i]}for(let e=r;e=0;i--){if(i<0)return P(this.node,e,n);let s=r[t.buffer[this.stack[i]]];if(!s.isAnonymous){if(e[n]&&e[n]!=s.name)return!1;n--}}return!0}}function Z(e){return e.children.some(e=>e instanceof g||!e.type.isAnonymous||Z(e))}let X=new WeakMap;function _(e,t){if(!e.isAnonymous||t instanceof g||t.type!=e)return 1;let r=X.get(t);if(null==r){for(let n of(r=1,t.children)){if(n.type!=e||!(n instanceof p)){r=1;break}r+=_(e,n)}X.set(t,r)}return r}function R(e,t,r,n,i,s,o,a,l){let O=0;for(let r=n;r=h)break;p+=t}if(O==i+1){if(p>h){let e=r[i];t(e.children,e.positions,0,e.children.length,n[i]+a);continue}c.push(r[i])}else{let t=n[O-1]+r[O-1].length-f;c.push(R(e,r,n,i,O,f,t,null,l))}u.push(f+a-s)}}(t,r,n,i,0),(a||l)(c,u,o)}class T{constructor(){this.map=new WeakMap}setBuffer(e,t,r){let n=this.map.get(e);n||this.map.set(e,n=new Map),n.set(t,r)}getBuffer(e,t){let r=this.map.get(e);return r&&r.get(t)}set(e,t){e instanceof x?this.setBuffer(e.context.buffer,e.index,t):e instanceof b&&this.map.set(e.tree,t)}get(e){return e instanceof x?this.getBuffer(e.context.buffer,e.index):e instanceof b?this.map.get(e.tree):void 0}cursorSet(e,t){e.buffer?this.setBuffer(e.buffer.buffer,e.index,t):this.map.set(e.tree,t)}cursorGet(e){return e.buffer?this.getBuffer(e.buffer.buffer,e.index):this.map.get(e.tree)}}class Y{constructor(e,t,r,n,i=!1,s=!1){this.from=e,this.to=t,this.tree=r,this.offset=n,this.open=(i?1:0)|(s?2:0)}get openStart(){return(1&this.open)>0}get openEnd(){return(2&this.open)>0}static addTree(e,t=[],r=!1){let n=[new Y(0,e.length,e,0,!1,r)];for(let r of t)r.to>e.length&&n.push(r);return n}static applyChanges(e,t,r=128){if(!t.length)return e;let n=[],i=1,s=e.length?e[0]:null;for(let o=0,a=0,l=0;;o++){let O=o=r)for(;s&&s.from=t.from||h<=t.to||l){let e=Math.max(t.from,a)-l,r=Math.min(t.to,h)-l;t=e>=r?null:new Y(e,r,t.tree,t.offset+l,o>0,!!O)}if(t&&n.push(t),s.to>h)break;s=inew o(e.from,e.to)):[new o(0,0)]:[new o(0,e.length)],this.createParse(e,t||[],r)}parse(e,t,r){let n=this.startParse(e,t,r);for(;;){let e=n.advance();if(e)return e}}}class A{constructor(e){this.string=e}get length(){return this.string.length}chunk(e){return this.string.slice(e)}get lineChunks(){return!1}read(e,t){return this.string.slice(e,t)}}function q(e){return(t,r,n,i)=>new C(t,e,r,n,i)}class z{constructor(e,t,r,n,i){this.parser=e,this.parse=t,this.overlay=r,this.target=n,this.from=i}}function j(e){if(!e.length||e.some(e=>e.from>=e.to))throw RangeError("Invalid inner parse ranges given: "+JSON.stringify(e))}class U{constructor(e,t,r,n,i,s,o){this.parser=e,this.predicate=t,this.mounts=r,this.index=n,this.start=i,this.target=s,this.prev=o,this.depth=0,this.ranges=[]}}let V=new a({perNode:!0});class C{constructor(e,t,r,n,i){this.nest=t,this.input=r,this.fragments=n,this.ranges=i,this.inner=[],this.innerDone=0,this.baseTree=null,this.stoppedAt=null,this.baseParse=e}advance(){if(this.baseParse){let e=this.baseParse.advance();if(!e)return null;if(this.baseParse=null,this.baseTree=e,this.startInner(),null!=this.stoppedAt)for(let e of this.inner)e.parse.stopAt(this.stoppedAt)}if(this.innerDone==this.inner.length){let e=this.baseTree;return null!=this.stoppedAt&&(e=new p(e.type,e.children,e.positions,e.length,e.propValues.concat([[V,this.stoppedAt]]))),e}let e=this.inner[this.innerDone],t=e.parse.advance();if(t){this.innerDone++;let r=Object.assign(Object.create(null),e.target.props);r[a.mounted.id]=new l(t,e.overlay,e.parser),e.target.props=r}return null}get parsedPos(){if(this.baseParse)return 0;let e=this.input.length;for(let t=this.innerDone;t=this.stoppedAt)a=!1;else if(e.hasNode(i)){if(t){let e=t.mounts.find(e=>e.frag.from<=i.from&&e.frag.to>=i.to&&e.mount.overlay);if(e)for(let r of e.mount.overlay){let n=r.from+e.pos,s=r.to+e.pos;n>=i.from&&s<=i.to&&!t.ranges.some(e=>e.fromn)&&t.ranges.push({from:n,to:s})}}a=!1}else if(r&&(s=function(e,t,r){for(let n of e){if(n.from>=r)break;if(n.to>t)return n.from<=t&&n.to>=r?2:1}return 0}(r.ranges,i.from,i.to)))a=2!=s;else if(!i.type.isAnonymous&&(n=this.nest(i,this.input))&&(i.fromnew o(e.from-i.from,e.to-i.from)):null,i.tree,e.length?e[0].from:i.from)),n.overlay?e.length&&(r={ranges:e,depth:0,prev:r}):a=!1}}else t&&(l=t.predicate(i))&&(!0===l&&(l=new o(i.from,i.to)),l.fromnew o(e.from-t.start,e.to-t.start)),t.target,e[0].from))),t=t.prev}!r||--r.depth||(r=r.prev)}}}}function E(e,t,r,n,i,s){if(t=e&&t.enter(r,1,n.IgnoreOverlays|n.ExcludeBuffers)||t.next(!1)||(this.done=!0)}hasNode(e){if(this.moveTo(e.from),!this.done&&this.cursor.from+this.offset==e.from&&this.cursor.tree)for(let t=this.cursor.tree;;){if(t==e.tree)return!0;if(t.children.length&&0==t.positions[0]&&t.children[0]instanceof p)t=t.children[0];else break}return!1}}class G{constructor(e){var t;if(this.fragments=e,this.curTo=0,this.fragI=0,e.length){let r=this.curFrag=e[0];this.curTo=null!==(t=r.tree.prop(V))&&void 0!==t?t:r.to,this.inner=new I(r.tree,-r.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 t=this.curFrag=this.fragments[this.fragI];this.curTo=null!==(e=t.tree.prop(V))&&void 0!==e?e:t.to,this.inner=new I(t.tree,-t.offset)}}findMounts(e,t){var r;let n=[];if(this.inner){this.inner.cursor.moveTo(e,1);for(let e=this.inner.cursor.node;e;e=e.parent){let i=null===(r=e.tree)||void 0===r?void 0:r.prop(a.mounted);if(i&&i.parser==t)for(let t=this.fragI;t=e.to)break;r.tree==this.curFrag.tree&&n.push({frag:r,pos:e.from-r.offset,mount:i})}}}return n}}function M(e,t){let r=null,n=t;for(let i=1,s=0;i=l)break;!(e.to<=a)&&(r||(n=r=t.slice()),e.froml&&r.splice(s+1,0,new o(l,e.to))):e.to>l?r[s--]=new o(l,e.to):r.splice(s--,1))}}return n}function N(e,t){let r=[];for(let{pos:n,mount:i,frag:s}of e){let e=n+(i.overlay?i.overlay[0].from:0),a=e+i.tree.length,l=Math.max(s.from,e),O=Math.min(s.to,a);if(i.overlay){let a=function(e,t,r,n){let i=0,s=0,a=!1,l=!1,O=-1e9,h=[];for(;;){let c=i==e.length?1e9:a?e[i].to:e[i].from,u=s==t.length?1e9:l?t[s].to:t[s].from;if(a!=l){let e=Math.max(O,r),t=Math.min(c,u,n);enew o(e.from+n,e.to+n)),l,O);for(let t=0,n=l;;t++){let o=t==a.length,l=o?O:a[t].from;if(l>n&&r.push(new Y(n,l,i.tree,-e,s.from>=n||s.openStart,s.to<=l||s.openEnd)),o)break;n=a[t].to}}else r.push(new Y(l,O,i.tree,-e,s.from>=e||s.openStart,s.to<=a||s.openEnd))}return r}},53225:(e,t,r)=>{"use strict";r.d(t,{DM:()=>u,_A:()=>X,az:()=>c,pn:()=>l});var n=r(81376);let i=0;class s{constructor(e,t,r){this.set=e,this.base=t,this.modified=r,this.id=i++}static define(e){if(null==e?void 0:e.base)throw Error("Can not derive from a modified tag");let t=new s([],null,[]);if(t.set.push(t),e)for(let r of e.set)t.set.push(r);return t}static defineModifier(){let e=new a;return t=>t.modified.indexOf(e)>-1?t:a.get(t.base||t,t.modified.concat(e).sort((e,t)=>e.id-t.id))}}let o=0;class a{constructor(){this.instances=[],this.id=o++}static get(e,t){if(!t.length)return e;let r=t[0].instances.find(r=>{var n;return r.base==e&&(n=r.modified,t.length==n.length&&t.every((e,t)=>e==n[t]))});if(r)return r;let n=[],i=new s(n,e,t);for(let e of t)e.instances.push(i);let o=function(e){let t=[[]];for(let r=0;rt.length-e.length)}(t);for(let t of e.set)if(!t.modified.length)for(let e of o)n.push(a.get(t,e));return i}}function l(e){let t=Object.create(null);for(let r in e){let n=e[r];for(let e of(Array.isArray(n)||(n=[n]),r.split(" ")))if(e){let r=[],i=2,s=e;for(let t=0;;){if("..."==s&&t>0&&t+3==e.length){i=1;break}let n=/^"(?:[^"\\]|\\.)*?"|[^\/!]+/.exec(s);if(!n)throw RangeError("Invalid path: "+e);if(r.push("*"==n[0]?"":'"'==n[0][0]?JSON.parse(n[0]):n[0]),(t+=n[0].length)==e.length)break;let o=e[t++];if(t==e.length&&"!"==o){i=0;break}if("/"!=o)throw RangeError("Invalid path: "+e);s=e.slice(t)}let o=r.length-1,a=r[o];if(!a)throw RangeError("Invalid path: "+e);let l=new h(n,i,o>0?r.slice(0,o):null);t[a]=l.sort(t[a])}}return O.add(t)}let O=new n.uY;class h{constructor(e,t,r,n){this.tags=e,this.mode=t,this.context=r,this.next=n}get opaque(){return 0==this.mode}get inherit(){return 1==this.mode}sort(e){return!e||e.depth{let t=i;for(let n of e)for(let e of n.set){let n=r[e.id];if(n){t=t?t+" "+n:n;break}}return t},scope:n}}function u(e,t,r,n=0,i=e.length){let s=new f(n,Array.isArray(t)?t:[t],r);s.highlightRange(e.cursor(),n,i,"",s.highlighters),s.flush(i)}h.empty=new h([],2,null);class f{constructor(e,t,r){this.at=e,this.highlighters=t,this.span=r,this.class=""}startSpan(e,t){t!=this.class&&(this.flush(e),e>this.at&&(this.at=e),this.class=t)}flush(e){e>this.at&&this.class&&this.span(this.at,e,this.class)}highlightRange(e,t,r,i,s){let{type:o,from:a,to:l}=e;if(a>=r||l<=t)return;o.isTop&&(s=this.highlighters.filter(e=>!e.scope||e.scope(o)));let c=i,u=function(e){let t=e.type.prop(O);for(;t&&t.context&&!e.matchContext(t.context);)t=t.next;return t||null}(e)||h.empty,f=function(e,t){let r=null;for(let n of e){let e=n.style(t);e&&(r=r?r+" "+e:e)}return r}(s,u.tags);if(f&&(c&&(c+=" "),c+=f,1==u.mode&&(i+=(i?" ":"")+f)),this.startSpan(Math.max(t,a),c),u.opaque)return;let p=e.tree&&e.tree.prop(n.uY.mounted);if(p&&p.overlay){let n=e.node.enter(p.overlay[0].from+a,1),o=this.highlighters.filter(e=>!e.scope||e.scope(p.tree.type)),O=e.firstChild();for(let h=0,u=a;;h++){let f=h=d)&&e.nextSibling()););if(!f||d>r)break;(u=f.to+a)>t&&(this.highlightRange(n.cursor(),Math.max(t,f.from+a),Math.min(r,u),"",o),this.startSpan(Math.min(r,u),c))}O&&e.parent()}else if(e.firstChild()){p&&(i="");do{if(e.to<=t)continue;if(e.from>=r)break;this.highlightRange(e,t,r,i,s),this.startSpan(Math.min(r,e.to),c)}while(e.nextSibling());e.parent()}}}let p=s.define,d=p(),g=p(),m=p(g),Q=p(g),$=p(),b=p($),S=p($),P=p(),y=p(P),x=p(),k=p(),w=p(),v=p(w),Z=p(),X={comment:d,lineComment:p(d),blockComment:p(d),docComment:p(d),name:g,variableName:p(g),typeName:m,tagName:p(m),propertyName:Q,attributeName:p(Q),className:p(g),labelName:p(g),namespace:p(g),macroName:p(g),literal:$,string:b,docString:p(b),character:p(b),attributeValue:p(b),number:S,integer:p(S),float:p(S),bool:p($),regexp:p($),escape:p($),color:p($),url:p($),keyword:x,self:p(x),null:p(x),atom:p(x),unit:p(x),modifier:p(x),operatorKeyword:p(x),controlKeyword:p(x),definitionKeyword:p(x),moduleKeyword:p(x),operator:k,derefOperator:p(k),arithmeticOperator:p(k),logicOperator:p(k),bitwiseOperator:p(k),compareOperator:p(k),updateOperator:p(k),definitionOperator:p(k),typeOperator:p(k),controlOperator:p(k),punctuation:w,separator:p(w),bracket:v,angleBracket:p(v),squareBracket:p(v),paren:p(v),brace:p(v),content:P,heading:y,heading1:p(y),heading2:p(y),heading3:p(y),heading4:p(y),heading5:p(y),heading6:p(y),contentSeparator:p(P),list:p(P),quote:p(P),emphasis:p(P),strong:p(P),link:p(P),monospace:p(P),strikethrough:p(P),inserted:p(),deleted:p(),changed:p(),invalid:p(),meta:Z,documentMeta:p(Z),annotation:p(Z),processingInstruction:p(Z),definition:s.defineModifier(),constant:s.defineModifier(),function:s.defineModifier(),standard:s.defineModifier(),local:s.defineModifier(),special:s.defineModifier()};c([{tag:X.link,class:"tok-link"},{tag:X.heading,class:"tok-heading"},{tag:X.emphasis,class:"tok-emphasis"},{tag:X.strong,class:"tok-strong"},{tag:X.keyword,class:"tok-keyword"},{tag:X.atom,class:"tok-atom"},{tag:X.bool,class:"tok-bool"},{tag:X.url,class:"tok-url"},{tag:X.labelName,class:"tok-labelName"},{tag:X.inserted,class:"tok-inserted"},{tag:X.deleted,class:"tok-deleted"},{tag:X.literal,class:"tok-literal"},{tag:X.string,class:"tok-string"},{tag:X.number,class:"tok-number"},{tag:[X.regexp,X.escape,X.special(X.string)],class:"tok-string2"},{tag:X.variableName,class:"tok-variableName"},{tag:X.local(X.variableName),class:"tok-variableName tok-local"},{tag:X.definition(X.variableName),class:"tok-variableName tok-definition"},{tag:X.special(X.variableName),class:"tok-variableName2"},{tag:X.definition(X.propertyName),class:"tok-propertyName tok-definition"},{tag:X.typeName,class:"tok-typeName"},{tag:X.namespace,class:"tok-namespace"},{tag:X.className,class:"tok-className"},{tag:X.macroName,class:"tok-macroName"},{tag:X.propertyName,class:"tok-propertyName"},{tag:X.operator,class:"tok-operator"},{tag:X.comment,class:"tok-comment"},{tag:X.meta,class:"tok-meta"},{tag:X.invalid,class:"tok-invalid"},{tag:X.punctuation,class:"tok-punctuation"}])},33108:(e,t,r)=>{"use strict";r.d(t,{Aj:()=>v,Lu:()=>d,U1:()=>Z,uC:()=>p});var n=r(81376),i=r(55036);class s{constructor(e,t,r,n,i,s,o,a,l,O=0,h){this.p=e,this.stack=t,this.state=r,this.reducePos=n,this.pos=i,this.score=s,this.buffer=o,this.bufferBase=a,this.curContext=l,this.lookAhead=O,this.parent=h}toString(){return`[${this.stack.filter((e,t)=>t%3==0).concat(this.state)}]@${this.pos}${this.score?"!"+this.score:""}`}static start(e,t,r=0){let n=e.parser.context;return new s(e,[],t,r,r,0,[],0,n?new o(n,n.start):null,0,null)}get context(){return this.curContext?this.curContext.context:null}pushState(e,t){this.stack.push(this.state,t,this.bufferBase+this.buffer.length),this.state=e}reduce(e){var t;let r=e>>19,n=65535&e,{parser:i}=this.p;this.reducePos=2e3&&!(null===(t=this.p.parser.nodeSet.types[n])||void 0===t?void 0:t.isAnonymous)&&(a==this.p.lastBigReductionStart?(this.p.bigReductionCount++,this.p.lastBigReductionSize=l):this.p.lastBigReductionSizeo;)this.stack.pop();this.reduceContext(n,a)}storeNode(e,t,r,n=4,i=!1){if(0==e&&(!this.stack.length||this.stack[this.stack.length-1]0&&0==e.buffer[n-4]&&e.buffer[n-1]>-1){if(t==r)return;if(e.buffer[n-2]>=t){e.buffer[n-2]=r;return}}}if(i&&this.pos!=r){let i=this.buffer.length;if(i>0&&0!=this.buffer[i-4])for(;i>0&&this.buffer[i-2]>r;)this.buffer[i]=this.buffer[i-4],this.buffer[i+1]=this.buffer[i-3],this.buffer[i+2]=this.buffer[i-2],this.buffer[i+3]=this.buffer[i-1],i-=4,n>4&&(n-=4);this.buffer[i]=e,this.buffer[i+1]=t,this.buffer[i+2]=r,this.buffer[i+3]=n}else this.buffer.push(e,t,r,n)}shift(e,t,r,n){if(131072&e)this.pushState(65535&e,this.pos);else if((262144&e)==0){let{parser:i}=this.p;(n>this.pos||t<=i.maxNode)&&(this.pos=n,i.stateFlag(e,1)||(this.reducePos=n)),this.pushState(e,r),this.shiftContext(t,r),t<=i.maxNode&&this.buffer.push(t,r,n,4)}else this.pos=n,this.shiftContext(t,r),t<=this.p.parser.maxNode&&this.buffer.push(t,r,n,4)}apply(e,t,r,n){65536&e?this.reduce(e):this.shift(e,t,r,n)}useNode(e,t){let r=this.p.reused.length-1;(r<0||this.p.reused[r]!=e)&&(this.p.reused.push(e),r++);let n=this.pos;this.reducePos=this.pos=n+e.length,this.pushState(t,n),this.buffer.push(r,n,this.reducePos,-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,t=e.buffer.length;for(;t>0&&e.buffer[t-2]>e.reducePos;)t-=4;let r=e.buffer.slice(t),n=e.bufferBase+t;for(;e&&n==e.bufferBase;)e=e.parent;return new s(this.p,this.stack.slice(),this.state,this.reducePos,this.pos,this.score,r,n,this.curContext,this.lookAhead,e)}recoverByDelete(e,t){let r=e<=this.p.parser.maxNode;r&&this.storeNode(e,this.pos,t,4),this.storeNode(0,this.pos,t,r?8:4),this.pos=this.reducePos=t,this.score-=190}canShift(e){for(let t=new a(this);;){let r=this.p.parser.stateSlot(t.state,4)||this.p.parser.hasAction(t.state,e);if(0==r)return!1;if((65536&r)==0)return!0;t.reduce(r)}}recoverByInsert(e){if(this.stack.length>=300)return[];let t=this.p.parser.nextStates(this.state);if(t.length>8||this.stack.length>=120){let r=[];for(let n=0,i;n1&t&&e==n)||r.push(t[e],n)}t=r}let r=[];for(let e=0;e>19,n=65535&t,i=this.stack.length-3*r;if(i<0||0>e.getGoto(this.stack[i],n,!1)){let e=this.findForcedReduction();if(null==e)return!1;t=e}this.storeNode(0,this.pos,this.pos,4,!0),this.score-=100}return this.reducePos=this.pos,this.reduce(t),!0}findForcedReduction(){let{parser:e}=this.p,t=[],r=(n,i)=>{if(!t.includes(n))return t.push(n),e.allActions(n,t=>{if(393216&t);else if(65536&t){let r=(t>>19)-i;if(r>1){let n=65535&t,i=this.stack.length-3*r;if(i>=0&&e.getGoto(this.stack[i],n,!1)>=0)return r<<19|65536|n}}else{let e=r(t,i+1);if(null!=e)return e}})};return r(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(3!=this.stack.length)return!1;let{parser:e}=this.p;return 65535==e.data[e.stateSlot(this.state,1)]&&!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 t=0;tthis.lookAhead&&(this.emitLookAhead(),this.lookAhead=e)}close(){this.curContext&&this.curContext.tracker.strict&&this.emitContext(),this.lookAhead>0&&this.emitLookAhead()}}class o{constructor(e,t){this.tracker=e,this.context=t,this.hash=e.strict?e.hash(t):0}}class a{constructor(e){this.start=e,this.state=e.state,this.stack=e.stack,this.base=this.stack.length}reduce(e){let t=e>>19;0==t?(this.stack==this.start.stack&&(this.stack=this.stack.slice()),this.stack.push(this.state,0,0),this.base+=3):this.base-=(t-1)*3;let r=this.start.p.parser.getGoto(this.stack[this.base-3],65535&e,!0);this.state=r}}class l{constructor(e,t,r){this.stack=e,this.pos=t,this.index=r,this.buffer=e.buffer,0==this.index&&this.maybeNext()}static create(e,t=e.bufferBase+e.buffer.length){return new l(e,t,t-e.bufferBase)}maybeNext(){let e=this.stack.parent;null!=e&&(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,0==this.index&&this.maybeNext()}fork(){return new l(this.stack,this.pos,this.index)}}function O(e,t=Uint16Array){if("string"!=typeof e)return e;let r=null;for(let n=0,i=0;n=92&&t--,t>=34&&t--;let i=t-32;if(i>=46&&(i-=46,r=!0),s+=i,r)break;s*=46}r?r[i++]=s:r=new t(s)}return r}class h{constructor(){this.start=-1,this.value=-1,this.end=-1,this.extended=-1,this.lookAhead=0,this.mask=0,this.context=0}}let c=new h;class u{constructor(e,t){this.input=e,this.ranges=t,this.chunk="",this.chunkOff=0,this.chunk2="",this.chunk2Pos=0,this.next=-1,this.token=c,this.rangeIndex=0,this.pos=this.chunkPos=t[0].from,this.range=t[0],this.end=t[t.length-1].to,this.readNext()}resolveOffset(e,t){let r=this.range,n=this.rangeIndex,i=this.pos+e;for(;ir.to:i>=r.to;){if(n==this.ranges.length-1)return null;let e=this.ranges[++n];i+=e.from-r.to,r=e}return i}clipPos(e){if(e>=this.range.from&&ee)return Math.max(e,t.from);return this.end}peek(e){let t=this.chunkOff+e,r,n;if(t>=0&&t=this.chunk2Pos&&rt.to&&(this.chunk2=this.chunk2.slice(0,t.to-r)),n=this.chunk2.charCodeAt(0)}}return r>=this.token.lookAhead&&(this.token.lookAhead=r+1),n}acceptToken(e,t=0){let r=t?this.resolveOffset(t,-1):this.pos;if(null==r||r=this.chunk2Pos&&this.posthis.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,t){if(t?(this.token=t,t.start=e,t.lookAhead=e+1,t.value=t.extended=-1):this.token=c,this.pos!=e){if(this.pos=e,e==this.end)return this.setDone(),this;for(;e=this.range.to;)this.range=this.ranges[++this.rangeIndex];e>=this.chunkPos&&e=this.chunkPos&&t<=this.chunkPos+this.chunk.length)return this.chunk.slice(e-this.chunkPos,t-this.chunkPos);if(e>=this.chunk2Pos&&t<=this.chunk2Pos+this.chunk2.length)return this.chunk2.slice(e-this.chunk2Pos,t-this.chunk2Pos);if(e>=this.range.from&&t<=this.range.to)return this.input.read(e,t);let r="";for(let n of this.ranges){if(n.from>=t)break;n.to>e&&(r+=this.input.read(Math.max(n.from,e),Math.min(n.to,t)))}return r}}class f{constructor(e,t){this.data=e,this.id=t}token(e,t){let{parser:r}=t.p;g(this.data,e,t,this.id,r.data,r.tokenPrecTable)}}f.prototype.contextual=f.prototype.fallback=f.prototype.extend=!1;class p{constructor(e,t,r){this.precTable=t,this.elseToken=r,this.data="string"==typeof e?O(e):e}token(e,t){let r=e.pos,n=0;for(;;){let r=e.next<0,i=e.resolveOffset(1,1);if(g(this.data,e,t,0,this.data,this.precTable),e.token.value>-1)break;if(null==this.elseToken)return;if(!r&&n++,null==i)break;e.reset(i,e.token)}n&&(e.reset(r,e.token),e.acceptToken(this.elseToken,n))}}p.prototype.contextual=f.prototype.fallback=f.prototype.extend=!1;class d{constructor(e,t={}){this.token=e,this.contextual=!!t.contextual,this.fallback=!!t.fallback,this.extend=!!t.extend}}function g(e,t,r,n,i,s){let o=0,a=1<0){let r=e[n];if(l.allows(r)&&(-1==t.token.value||t.token.value==r||function(e,t,r,n){let i=m(r,n,t);return i<0||m(r,n,e)O&&65535==e[r+3*h-3]){o=e[r+3*h-1];continue}for(;O>1,s=r+i+(i<<1),a=e[s],l=e[s+1]||65536;if(n=l)O=i+1;else{o=e[s+2],t.advance();continue t}}break}}function m(e,t,r){for(let n=t,i;65535!=(i=e[n]);n++)if(i==r)return n-t;return -1}let Q=void 0!==i&&i.env&&/\bparse\b/.test(i.env.LOG),$=null;function b(e,t,r){let i=e.cursor(n.Qj.IncludeAnonymous);for(i.moveTo(t);;)if(!(r<0?i.childBefore(t):i.childAfter(t)))for(;;){if((r<0?i.tot)&&!i.type.isError)return r<0?Math.max(0,Math.min(i.to-1,t-25)):Math.min(e.length,Math.max(i.from+1,t+25));if(r<0?i.prevSibling():i.nextSibling())break;if(!i.parent())return r<0?0:e.length}}class S{constructor(e,t){this.fragments=e,this.nodeSet=t,this.i=0,this.fragment=null,this.safeFrom=-1,this.safeTo=-1,this.trees=[],this.start=[],this.index=[],this.nextFragment()}nextFragment(){let e=this.fragment=this.i==this.fragments.length?null:this.fragments[this.i++];if(e){for(this.safeFrom=e.openStart?b(e.tree,e.from+e.offset,1)-e.offset:e.from,this.safeTo=e.openEnd?b(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(ee)return this.nextStart=o,null;if(s instanceof n.PH){if(o==e){if(o=Math.max(this.safeFrom,e)&&(this.trees.push(s),this.start.push(o),this.index.push(0))}else this.index[t]++,this.nextStart=o+s.length}}}class P{constructor(e,t){this.stream=t,this.tokens=[],this.mainToken=null,this.actions=[],this.tokens=e.tokenizers.map(e=>new h)}getActions(e){let t=0,r=null,{parser:n}=e.p,{tokenizers:i}=n,s=n.stateSlot(e.state,3),o=e.curContext?e.curContext.hash:0,a=0;for(let n=0;nO.end+25&&(a=Math.max(O.lookAhead,a)),0!=O.value)){let n=t;if(O.extended>-1&&(t=this.addActions(e,O.extended,O.end,t)),t=this.addActions(e,O.value,O.end,t),!l.extend&&(r=O,t>n))break}}for(;this.actions.length>t;)this.actions.pop();return a&&e.setLookAhead(a),r||e.pos!=this.stream.end||((r=new h).value=e.p.parser.eofTerm,r.start=r.end=e.pos,t=this.addActions(e,r.value,r.end,t)),this.mainToken=r,this.actions}getMainToken(e){if(this.mainToken)return this.mainToken;let t=new h,{pos:r,p:n}=e;return t.start=r,t.end=Math.min(r+1,n.stream.end),t.value=r==n.stream.end?n.parser.eofTerm:0,t}updateCachedToken(e,t,r){let n=this.stream.clipPos(r.pos);if(t.token(this.stream.reset(n,e),r),e.value>-1){let{parser:t}=r.p;for(let n=0;n=0&&r.p.parser.dialect.allows(i>>1)){(1&i)==0?e.value=i>>1:e.extended=i>>1;break}}}else e.value=0,e.end=this.stream.clipPos(n+1)}putAction(e,t,r,n){for(let t=0;t4*e.bufferLength?new S(r,e.nodeSet):null}get parsedPos(){return this.minStackPos}advance(){let e,t,r=this.stacks,n=this.minStackPos,i=this.stacks=[];if(this.bigReductionCount>300&&1==r.length){let[e]=r;for(;e.forceReduce()&&e.stack.length&&e.stack[e.stack.length-2]>=this.lastBigReductionStart;);this.bigReductionCount=this.lastBigReductionSize=0}for(let s=0;sn)i.push(o);else{if(this.advanceStack(o,i,r))continue;e||(e=[],t=[]),e.push(o);let n=this.tokens.getMainToken(o);t.push(n.value,n.end)}break}}if(!i.length){let t=e&&function(e){let t=null;for(let r of e){let e=r.p.stoppedAt;(r.pos==r.p.stream.end||null!=e&&r.pos>e)&&r.p.parser.stateFlag(r.state,2)&&(!t||t.scorethis.stoppedAt?e[0]:this.runRecovery(e,t,i);if(r)return Q&&console.log("Force-finish "+this.stackID(r)),this.stackToTree(r.forceAll())}if(this.recovering){let e=1==this.recovering?1:3*this.recovering;if(i.length>e)for(i.sort((e,t)=>t.score-e.score);i.length>e;)i.pop();i.some(e=>e.reducePos>n)&&this.recovering--}else if(i.length>1){r:for(let e=0;e500&&n.buffer.length>500){if((t.score-n.score||t.buffer.length-n.buffer.length)>0)i.splice(r--,1);else{i.splice(e--,1);continue r}}}}i.length>12&&i.splice(12,i.length-12)}this.minStackPos=i[0].pos;for(let e=1;e ":"";if(null!=this.stoppedAt&&i>this.stoppedAt)return e.forceReduce()?e:null;if(this.fragments){let t=e.curContext&&e.curContext.tracker.strict,r=t?e.curContext.hash:0;for(let a=this.fragments.nodeAt(i);a;){let i=this.parser.nodeSet.types[a.type.id]==a.type?s.getGoto(e.state,a.type.id):-1;if(i>-1&&a.length&&(!t||(a.prop(n.uY.contextHash)||0)==r))return e.useNode(a,i),Q&&console.log(o+this.stackID(e)+` (via reuse of ${s.getName(a.type.id)})`),!0;if(!(a instanceof n.PH)||0==a.children.length||a.positions[0]>0)break;let l=a.children[0];if(l instanceof n.PH&&0==a.positions[0])a=l;else break}}let a=s.stateSlot(e.state,4);if(a>0)return e.reduce(a),Q&&console.log(o+this.stackID(e)+` (via always-reduce ${s.getName(65535&a)})`),!0;if(e.stack.length>=8400)for(;e.stack.length>6e3&&e.forceReduce(););let l=this.tokens.getActions(e);for(let n=0;ni?t.push(u):r.push(u)}return!1}advanceFully(e,t){let r=e.pos;for(;;){if(!this.advanceStack(e,null,null))return!1;if(e.pos>r)return x(e,t),!0}}runRecovery(e,t,r){let n=null,i=!1;for(let s=0;s ":"";if(o.deadEnd&&(i||(i=!0,o.restart(),Q&&console.log(O+this.stackID(o)+" (restarted)"),this.advanceFully(o,r))))continue;let h=o.split(),c=O;for(let e=0;h.forceReduce()&&e<10&&(Q&&console.log(c+this.stackID(h)+" (via force-reduce)"),!this.advanceFully(h,r));e++)Q&&(c=this.stackID(h)+" -> ");for(let e of o.recoverByInsert(a))Q&&console.log(O+this.stackID(e)+" (via recover-insert)"),this.advanceFully(e,r);this.stream.end>o.pos?(l==o.pos&&(l++,a=0),o.recoverByDelete(a,l),Q&&console.log(O+this.stackID(o)+` (via recover-delete ${this.parser.getName(a)})`),x(o,r)):(!n||n.scoree;class v{constructor(e){this.start=e.start,this.shift=e.shift||w,this.reduce=e.reduce||w,this.reuse=e.reuse||w,this.hash=e.hash||(()=>0),this.strict=!1!==e.strict}}class Z extends n.iX{constructor(e){if(super(),this.wrappers=[],14!=e.version)throw RangeError(`Parser version (${e.version}) doesn't match runtime version (14)`);let t=e.nodeNames.split(" ");this.minRepeatTerm=t.length;for(let r=0;re.topRules[t][1]),i=[];for(let e=0;e=0)s(n,e,t[r++]);else{let i=t[r+-n];for(let o=-n;o>0;o--)s(t[r++],e,i);r++}}}this.nodeSet=new n.fI(t.map((t,s)=>n.Z6.define({name:s>=this.minRepeatTerm?void 0:t,id:s,props:i[s],top:r.indexOf(s)>-1,error:0==s,skipped:e.skippedNodes&&e.skippedNodes.indexOf(s)>-1}))),e.propSources&&(this.nodeSet=this.nodeSet.extend(...e.propSources)),this.strict=!1,this.bufferLength=n.cF;let o=O(e.tokenData);this.context=e.context,this.specializerSpecs=e.specialized||[],this.specialized=new Uint16Array(this.specializerSpecs.length);for(let e=0;e"number"==typeof e?new f(o,e):e),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,t,r){let n=new y(this,e,t,r);for(let i of this.wrappers)n=i(n,e,t,r);return n}getGoto(e,t,r=!1){let n=this.goto;if(t>=n[0])return -1;for(let i=n[t+1];;){let t=n[i++],s=1&t,o=n[i++];if(s&&r)return o;for(let r=i+(t>>1);i0}validAction(e,t){return!!this.allActions(e,e=>e==t||null)}allActions(e,t){let r=this.stateSlot(e,4),n=r?t(r):void 0;for(let r=this.stateSlot(e,1);null==n;r+=3){if(65535==this.data[r]){if(1==this.data[r+1])r=X(this.data,r+2);else break}n=t(X(this.data,r+1))}return n}nextStates(e){let t=[];for(let r=this.stateSlot(e,1);;r+=3){if(65535==this.data[r]){if(1==this.data[r+1])r=X(this.data,r+2);else break}if((1&this.data[r+2])==0){let e=this.data[r+1];t.some((t,r)=>1&r&&t==e)||t.push(this.data[r],e)}}return t}configure(e){let t=Object.assign(Object.create(Z.prototype),this);if(e.props&&(t.nodeSet=this.nodeSet.extend(...e.props)),e.top){let r=this.topRules[e.top];if(!r)throw RangeError(`Invalid top rule name ${e.top}`);t.top=r}return e.tokenizers&&(t.tokenizers=this.tokenizers.map(t=>{let r=e.tokenizers.find(e=>e.from==t);return r?r.to:t})),e.specializers&&(t.specializers=this.specializers.slice(),t.specializerSpecs=this.specializerSpecs.map((r,n)=>{let i=e.specializers.find(e=>e.from==r.external);if(!i)return r;let s=Object.assign(Object.assign({},r),{external:i.to});return t.specializers[n]=_(s),s})),e.contextTracker&&(t.context=e.contextTracker),e.dialect&&(t.dialect=this.parseDialect(e.dialect)),null!=e.strict&&(t.strict=e.strict),e.wrap&&(t.wrappers=t.wrappers.concat(e.wrap)),null!=e.bufferLength&&(t.bufferLength=e.bufferLength),t}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 t=this.dynamicPrecedences;return null==t?0:t[e]||0}parseDialect(e){let t=Object.keys(this.dialects),r=t.map(()=>!1);if(e)for(let n of e.split(" ")){let e=t.indexOf(n);e>=0&&(r[e]=!0)}let n=null;for(let e=0;ee.external(r,n)<<1|t}return e.get}},58530:(e,t,r)=>{"use strict";r.d(t,{GC:()=>J});var n="colors",i="sizes",s="space",o={gap:s,gridGap:s,columnGap:s,gridColumnGap:s,rowGap:s,gridRowGap:s,inset:s,insetBlock:s,insetBlockEnd:s,insetBlockStart:s,insetInline:s,insetInlineEnd:s,insetInlineStart:s,margin:s,marginTop:s,marginRight:s,marginBottom:s,marginLeft:s,marginBlock:s,marginBlockEnd:s,marginBlockStart:s,marginInline:s,marginInlineEnd:s,marginInlineStart:s,padding:s,paddingTop:s,paddingRight:s,paddingBottom:s,paddingLeft:s,paddingBlock:s,paddingBlockEnd:s,paddingBlockStart:s,paddingInline:s,paddingInlineEnd:s,paddingInlineStart:s,top:s,right:s,bottom:s,left:s,scrollMargin:s,scrollMarginTop:s,scrollMarginRight:s,scrollMarginBottom:s,scrollMarginLeft:s,scrollMarginX:s,scrollMarginY:s,scrollMarginBlock:s,scrollMarginBlockEnd:s,scrollMarginBlockStart:s,scrollMarginInline:s,scrollMarginInlineEnd:s,scrollMarginInlineStart:s,scrollPadding:s,scrollPaddingTop:s,scrollPaddingRight:s,scrollPaddingBottom:s,scrollPaddingLeft:s,scrollPaddingX:s,scrollPaddingY:s,scrollPaddingBlock:s,scrollPaddingBlockEnd:s,scrollPaddingBlockStart:s,scrollPaddingInline:s,scrollPaddingInlineEnd:s,scrollPaddingInlineStart:s,fontSize:"fontSizes",background:n,backgroundColor:n,backgroundImage:n,borderImage:n,border:n,borderBlock:n,borderBlockEnd:n,borderBlockStart:n,borderBottom:n,borderBottomColor:n,borderColor:n,borderInline:n,borderInlineEnd:n,borderInlineStart:n,borderLeft:n,borderLeftColor:n,borderRight:n,borderRightColor:n,borderTop:n,borderTopColor:n,caretColor:n,color:n,columnRuleColor:n,fill:n,outline:n,outlineColor:n,stroke:n,textDecorationColor:n,fontFamily:"fonts",fontWeight:"fontWeights",lineHeight:"lineHeights",letterSpacing:"letterSpacings",blockSize:i,minBlockSize:i,maxBlockSize:i,inlineSize:i,minInlineSize:i,maxInlineSize:i,width:i,minWidth:i,maxWidth:i,height:i,minHeight:i,maxHeight:i,flexBasis:i,gridTemplateColumns:i,gridTemplateRows:i,borderWidth:"borderWidths",borderTopWidth:"borderWidths",borderRightWidth:"borderWidths",borderBottomWidth:"borderWidths",borderLeftWidth:"borderWidths",borderStyle:"borderStyles",borderTopStyle:"borderStyles",borderRightStyle:"borderStyles",borderBottomStyle:"borderStyles",borderLeftStyle:"borderStyles",borderRadius:"radii",borderTopLeftRadius:"radii",borderTopRightRadius:"radii",borderBottomRightRadius:"radii",borderBottomLeftRadius:"radii",boxShadow:"shadows",textShadow:"shadows",transition:"transitions",zIndex:"zIndices"},a=(e,t)=>"function"==typeof t?{"()":Function.prototype.toString.call(t)}:t,l=()=>{let e=Object.create(null);return(t,r,...n)=>{let i=JSON.stringify(t,a);return i in e?e[i]:e[i]=r(t,...n)}},O=Symbol.for("sxs.internal"),h=(e,t)=>Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)),c=e=>{for(let t in e)return!0;return!1},{hasOwnProperty:u}=Object.prototype,f=e=>e.includes("-")?e:e.replace(/[A-Z]/g,e=>"-"+e.toLowerCase()),p=/\s+(?![^()]*\))/,d=e=>t=>e(..."string"==typeof t?String(t).split(p):[t]),g={appearance:e=>({WebkitAppearance:e,appearance:e}),backfaceVisibility:e=>({WebkitBackfaceVisibility:e,backfaceVisibility:e}),backdropFilter:e=>({WebkitBackdropFilter:e,backdropFilter:e}),backgroundClip:e=>({WebkitBackgroundClip:e,backgroundClip:e}),boxDecorationBreak:e=>({WebkitBoxDecorationBreak:e,boxDecorationBreak:e}),clipPath:e=>({WebkitClipPath:e,clipPath:e}),content:e=>({content:e.includes('"')||e.includes("'")||/^([A-Za-z]+\([^]*|[^]*-quote|inherit|initial|none|normal|revert|unset)$/.test(e)?e:`"${e}"`}),hyphens:e=>({WebkitHyphens:e,hyphens:e}),maskImage:e=>({WebkitMaskImage:e,maskImage:e}),maskSize:e=>({WebkitMaskSize:e,maskSize:e}),tabSize:e=>({MozTabSize:e,tabSize:e}),textSizeAdjust:e=>({WebkitTextSizeAdjust:e,textSizeAdjust:e}),userSelect:e=>({WebkitUserSelect:e,userSelect:e}),marginBlock:d((e,t)=>({marginBlockStart:e,marginBlockEnd:t||e})),marginInline:d((e,t)=>({marginInlineStart:e,marginInlineEnd:t||e})),maxSize:d((e,t)=>({maxBlockSize:e,maxInlineSize:t||e})),minSize:d((e,t)=>({minBlockSize:e,minInlineSize:t||e})),paddingBlock:d((e,t)=>({paddingBlockStart:e,paddingBlockEnd:t||e})),paddingInline:d((e,t)=>({paddingInlineStart:e,paddingInlineEnd:t||e}))},m=/([\d.]+)([^]*)/,Q=(e,t)=>e.length?e.reduce((e,r)=>(e.push(...t.map(e=>e.includes("&")?e.replace(/&/g,/[ +>|~]/.test(r)&&/&.*&/.test(e)?`:is(${r})`:r):r+" "+e)),e),[]):t,$=(e,t)=>e in b&&"string"==typeof t?t.replace(/^((?:[^]*[^\w-])?)(fit-content|stretch)((?:[^\w-][^]*)?)$/,(t,r,n,i)=>r+("stretch"===n?`-moz-available${i};${f(e)}:${r}-webkit-fill-available`:`-moz-fit-content${i};${f(e)}:${r}fit-content`)+i):String(t),b={blockSize:1,height:1,inlineSize:1,maxBlockSize:1,maxHeight:1,maxInlineSize:1,maxWidth:1,minBlockSize:1,minHeight:1,minInlineSize:1,minWidth:1,width:1},S=e=>e?e+"-":"",P=(e,t,r)=>e.replace(/([+-])?((?:\d+(?:\.\d*)?|\.\d+)(?:[Ee][+-]?\d+)?)?(\$|--)([$\w-]+)/g,(e,n,i,s,o)=>"$"==s==!!i?e:(n||"--"==s?"calc(":"")+"var(--"+("$"===s?S(t)+(o.includes("$")?"":S(r))+o.replace(/\$/g,"-"):o)+")"+(n||"--"==s?"*"+(n||"")+(i||"1")+")":"")),y=/\s*,\s*(?![^()]*\))/,x=Object.prototype.toString,k=(e,t,r,n,i)=>{let s,o,a;let l=(e,t,r)=>{let O,h;let c=e=>{var u;for(O in e){let p=64===O.charCodeAt(0);for(h of p&&Array.isArray(e[O])?e[O]:[e[O]]){let e=/[A-Z]/.test(u=O)?u:u.replace(/-[^]/g,e=>e[1].toUpperCase()),d="object"==typeof h&&h&&h.toString===x&&(!n.utils[e]||!t.length);if(e in n.utils&&!d){let t=n.utils[e];if(t!==o){o=t,c(t(h)),o=null;continue}}else if(e in g){let t=g[e];if(t!==a){a=t,c(t(h)),a=null;continue}}if(p&&(O=(O.slice(1)in n.media?"@media "+n.media[O.slice(1)]:O).replace(/\(\s*([\w-]+)\s*(=|<|<=|>|>=)\s*([\w-]+)\s*(?:(<|<=|>|>=)\s*([\w-]+)\s*)?\)/g,(e,t,r,n,i,s)=>{let o=m.test(t),a=.0625*(o?-1:1),[l,O]=o?[n,t]:[t,n];return"("+("="===r[0]?"":">"===r[0]===o?"max-":"min-")+l+":"+("="!==r[0]&&1===r.length?O.replace(m,(e,t,n)=>Number(t)+a*(">"===r?1:-1)+n):O)+(i?") and ("+(">"===i[0]?"min-":"max-")+l+":"+(1===i.length?s.replace(m,(e,t,r)=>Number(t)+a*(">"===i?-1:1)+r):s):"")+")"})),d){let e=p?r.concat(O):[...r],n=p?[...t]:Q(t,O.split(y));void 0!==s&&i(w(...s)),s=void 0,l(h,n,e)}else void 0===s&&(s=[[],t,r]),O=p||36!==O.charCodeAt(0)?O:`--${S(n.prefix)}${O.slice(1).replace(/\$/g,"-")}`,h=d?h:"number"==typeof h?h&&e in v?String(h)+"px":String(h):P($(e,null==h?"":h),n.prefix,n.themeMap[e]),s[0].push(`${p?`${O} `:`${f(O)}:`}${h}`)}}};c(e),void 0!==s&&i(w(...s)),s=void 0};l(e,t,r)},w=(e,t,r)=>`${r.map(e=>`${e}{`).join("")}${t.length?`${t.join(",")}{`:""}${e.join(";")}${t.length?"}":""}${Array(r.length?r.length+1:0).join("}")}`,v={animationDelay:1,animationDuration:1,backgroundSize:1,blockSize:1,border:1,borderBlock:1,borderBlockEnd:1,borderBlockEndWidth:1,borderBlockStart:1,borderBlockStartWidth:1,borderBlockWidth:1,borderBottom:1,borderBottomLeftRadius:1,borderBottomRightRadius:1,borderBottomWidth:1,borderEndEndRadius:1,borderEndStartRadius:1,borderInlineEnd:1,borderInlineEndWidth:1,borderInlineStart:1,borderInlineStartWidth:1,borderInlineWidth:1,borderLeft:1,borderLeftWidth:1,borderRadius:1,borderRight:1,borderRightWidth:1,borderSpacing:1,borderStartEndRadius:1,borderStartStartRadius:1,borderTop:1,borderTopLeftRadius:1,borderTopRightRadius:1,borderTopWidth:1,borderWidth:1,bottom:1,columnGap:1,columnRule:1,columnRuleWidth:1,columnWidth:1,containIntrinsicSize:1,flexBasis:1,fontSize:1,gap:1,gridAutoColumns:1,gridAutoRows:1,gridTemplateColumns:1,gridTemplateRows:1,height:1,inlineSize:1,inset:1,insetBlock:1,insetBlockEnd:1,insetBlockStart:1,insetInline:1,insetInlineEnd:1,insetInlineStart:1,left:1,letterSpacing:1,margin:1,marginBlock:1,marginBlockEnd:1,marginBlockStart:1,marginBottom:1,marginInline:1,marginInlineEnd:1,marginInlineStart:1,marginLeft:1,marginRight:1,marginTop:1,maxBlockSize:1,maxHeight:1,maxInlineSize:1,maxWidth:1,minBlockSize:1,minHeight:1,minInlineSize:1,minWidth:1,offsetDistance:1,offsetRotate:1,outline:1,outlineOffset:1,outlineWidth:1,overflowClipMargin:1,padding:1,paddingBlock:1,paddingBlockEnd:1,paddingBlockStart:1,paddingBottom:1,paddingInline:1,paddingInlineEnd:1,paddingInlineStart:1,paddingLeft:1,paddingRight:1,paddingTop:1,perspective:1,right:1,rowGap:1,scrollMargin:1,scrollMarginBlock:1,scrollMarginBlockEnd:1,scrollMarginBlockStart:1,scrollMarginBottom:1,scrollMarginInline:1,scrollMarginInlineEnd:1,scrollMarginInlineStart:1,scrollMarginLeft:1,scrollMarginRight:1,scrollMarginTop:1,scrollPadding:1,scrollPaddingBlock:1,scrollPaddingBlockEnd:1,scrollPaddingBlockStart:1,scrollPaddingBottom:1,scrollPaddingInline:1,scrollPaddingInlineEnd:1,scrollPaddingInlineStart:1,scrollPaddingLeft:1,scrollPaddingRight:1,scrollPaddingTop:1,shapeMargin:1,textDecoration:1,textDecorationThickness:1,textIndent:1,textUnderlineOffset:1,top:1,transitionDelay:1,transitionDuration:1,verticalAlign:1,width:1,wordSpacing:1},Z=e=>String.fromCharCode(e+(e>25?39:97)),X=e=>(e=>{let t,r="";for(t=Math.abs(e);t>52;t=t/52|0)r=Z(t%52)+r;return Z(t%52)+r})(((e,t)=>{let r=t.length;for(;r;)e=33*e^t.charCodeAt(--r);return e})(5381,JSON.stringify(e))>>>0),_=["themed","global","styled","onevar","resonevar","allvar","inline"],R=e=>{if(e.href&&!e.href.startsWith(location.origin))return!1;try{return!!e.cssRules}catch(e){return!1}},T=e=>{let t;let r=()=>{let{cssRules:e}=t.sheet;return[].map.call(e,(r,n)=>{let{cssText:i}=r,s="";if(i.startsWith("--sxs"))return"";if(e[n-1]&&(s=e[n-1].cssText).startsWith("--sxs")){if(!r.cssRules.length)return"";for(let e in t.rules)if(t.rules[e].group===r)return`--sxs{--sxs:${[...t.rules[e].cache].join(" ")}}${i}`;return r.cssRules.length?`${s}${i}`:""}return i}).join("")},n=()=>{if(t){let{rules:e,sheet:r}=t;if(!r.deleteRule){for(;3===Object(Object(r.cssRules)[0]).type;)r.cssRules.splice(0,1);r.cssRules=[]}for(let t in e)delete e[t]}for(let i of Object(e).styleSheets||[])if(R(i)){for(let e=0,s=i.cssRules;s[e];++e){let o=Object(s[e]);if(1!==o.type)continue;let a=Object(s[e+1]);if(4!==a.type)continue;++e;let{cssText:l}=o;if(!l.startsWith("--sxs"))continue;let O=l.slice(14,-3).trim().split(/\s+/),h=_[O[0]];h&&(t||(t={sheet:i,reset:n,rules:{},toString:r}),t.rules[h]={group:a,index:e,cache:new Set(O)})}if(t)break}if(!t){let i=(e,t)=>({type:t,cssRules:[],insertRule(e,t){this.cssRules.splice(t,0,i(e,{import:3,undefined:1}[(e.toLowerCase().match(/^@([a-z]+)/)||[])[1]]||4))},get cssText(){return"@media{}"===e?`@media{${[].map.call(this.cssRules,e=>e.cssText).join("")}}`:e}});t={sheet:e?(e.head||e).appendChild(document.createElement("style")).sheet:i("","text/css"),rules:{},reset:n,toString:r}}let{sheet:i,rules:s}=t;for(let e=_.length-1;e>=0;--e){let t=_[e];if(!s[t]){let r=_[e+1],n=s[r]?s[r].index:i.cssRules.length;i.insertRule("@media{}",n),i.insertRule(`--sxs{--sxs:${e}}`,n),s[t]={group:i.cssRules[n+1],index:n,cache:new Set([e])}}Y(s[t])}};return n(),t},Y=e=>{let t=e.group,r=t.cssRules.length;e.apply=e=>{try{t.insertRule(e,r),++r}catch(e){}}},W=Symbol(),A=l(),q=(e,t)=>A(e,()=>(...r)=>{let n={type:null,composers:new Set};for(let t of r)if(null!=t){if(t[O])for(let e of(null==n.type&&(n.type=t[O].type),t[O].composers))n.composers.add(e);else t.constructor!==Object||t.$$typeof?null==n.type&&(n.type=t):n.composers.add(z(t,e))}return null==n.type&&(n.type="span"),n.composers.size||n.composers.add(["PJLV",{},[],[],{},[]]),j(e,n,t)}),z=({variants:e,compoundVariants:t,defaultVariants:r,...n},i)=>{let s=`${S(i.prefix)}c-${X(n)}`,o=[],a=[],l=Object.create(null),O=[];for(let e in r)l[e]=String(r[e]);if("object"==typeof e&&e)for(let t in e){u.call(l,t)||(l[t]="undefined");let r=e[t];for(let e in r){let n={[t]:String(e)};"undefined"===String(e)&&O.push(t);let i=r[e],s=[n,i,!c(i)];o.push(s)}}if("object"==typeof t&&t)for(let e of t){let{css:t,...r}=e;for(let e in t="object"==typeof t&&t||{},r)r[e]=String(r[e]);let n=[r,t,!c(t)];a.push(n)}return[s,n,o,a,l,O]},j=(e,t,r)=>{let[n,i,s,o]=U(t.composers),a="function"==typeof t.type||t.type.$$typeof?(e=>{function t(){for(let r=0;rt.rules[e]={apply:r=>t[W].push([e,r])}),t})(r):null,l=(a||r).rules,c=`.${n}${i.length>1?`:where(.${i.slice(1).join(".")})`:""}`,u=O=>{let{css:h,...u}=O="object"==typeof O&&O||C,f={};for(let e in s)if(delete u[e],e in O){let t=O[e];"object"==typeof t&&t?f[e]={"@initial":s[e],...t}:(t=String(t),f[e]="undefined"!==t||o.has(e)?t:s[e])}else f[e]=s[e];let p=new Set([...i]);for(let[n,i,s,o]of t.composers){r.rules.styled.cache.has(n)||(r.rules.styled.cache.add(n),k(i,[`.${n}`],[],e,e=>{l.styled.apply(e)}));let t=V(s,f,e.media),a=V(o,f,e.media,!0);for(let i of t)if(void 0!==i)for(let[t,s,o]of i){let i=`${n}-${X(s)}-${t}`;p.add(i);let a=(o?r.rules.resonevar:r.rules.onevar).cache,O=o?l.resonevar:l.onevar;a.has(i)||(a.add(i),k(s,[`.${i}`],[],e,e=>{O.apply(e)}))}for(let t of a)if(void 0!==t)for(let[i,s]of t){let t=`${n}-${X(s)}-${i}`;p.add(t),r.rules.allvar.cache.has(t)||(r.rules.allvar.cache.add(t),k(s,[`.${t}`],[],e,e=>{l.allvar.apply(e)}))}}if("object"==typeof h&&h){let t=`${n}-i${X(h)}-css`;p.add(t),r.rules.inline.cache.has(t)||(r.rules.inline.cache.add(t),k(h,[`.${t}`],[],e,e=>{l.inline.apply(e)}))}for(let e of String(O.className||"").trim().split(/\s+/))e&&p.add(e);let d=u.className=[...p].join(" ");return{type:t.type,className:d,selector:c,props:u,toString:()=>d,deferredInjector:a}};return h(u,{className:n,selector:c,[O]:t,toString:()=>(r.rules.styled.cache.has(n)||u(),n)})},U=e=>{let t="",r=[],n={},i=[];for(let[s,,,,o,a]of e)for(let e in""===t&&(t=s),r.push(s),i.push(...a),o){let t=o[e];(void 0===n[e]||"undefined"!==t||a.includes(t))&&(n[e]=t)}return[t,r,n,new Set(i)]},V=(e,t,r,n)=>{let i=[];n:for(let[s,o,a]of e){if(a)continue;let e,l=0,O=!1;for(e in s){let n=s[e],i=t[e];if(i!==n){if("object"!=typeof i||!i)continue n;{let e,t,s=0;for(let o in i){if(n===String(i[o])){if("@initial"!==o){let e=o.slice(1);(t=t||[]).push(e in r?r[e]:o.replace(/^@media ?/,"")),O=!0}l+=s,e=!0}++s}if(t&&t.length&&(o={["@media "+t.join(", ")]:o}),!e)continue n}}}(i[l]=i[l]||[]).push([n?"cv":`${e}-${s[e]}`,o,O])}return i},C={},E=l(),I=(e,t)=>E(e,()=>(...r)=>{let n=()=>{for(let n of r){let r=X(n="object"==typeof n&&n||{});if(!t.rules.global.cache.has(r)){if(t.rules.global.cache.add(r),"@import"in n){let e=[].indexOf.call(t.sheet.cssRules,t.rules.themed.group)-1;for(let r of[].concat(n["@import"]))r=r.includes('"')||r.includes("'")?r:`"${r}"`,t.sheet.insertRule(`@import ${r};`,e++);delete n["@import"]}k(n,[],[],e,e=>{t.rules.global.apply(e)})}}return""};return h(n,{toString:n})}),G=l(),M=(e,t)=>G(e,()=>r=>{let n=`${S(e.prefix)}k-${X(r)}`,i=()=>{if(!t.rules.global.cache.has(n)){t.rules.global.cache.add(n);let i=[];k(r,[],[],e,e=>i.push(e));let s=`@keyframes ${n}{${i.join("")}}`;t.rules.global.apply(s)}return n};return h(i,{get name(){return i()},toString:i})}),N=class{constructor(e,t,r,n){this.token=null==e?"":String(e),this.value=null==t?"":String(t),this.scale=null==r?"":String(r),this.prefix=null==n?"":String(n)}get computedValue(){return"var("+this.variable+")"}get variable(){return"--"+S(this.prefix)+S(this.scale)+this.token}toString(){return this.computedValue}},D=l(),B=(e,t)=>D(e,()=>(r,n)=>{n="object"==typeof r&&r||Object(n);let i=`.${r=(r="string"==typeof r?r:"")||`${S(e.prefix)}t-${X(n)}`}`,s={},o=[];for(let t in n)for(let r in s[t]={},n[t]){let i=`--${S(e.prefix)}${t}-${r}`,a=P(String(n[t][r]),e.prefix,t);s[t][r]=new N(r,a,t,e.prefix),o.push(`${i}:${a}`)}let a=()=>{if(o.length&&!t.rules.themed.cache.has(r)){t.rules.themed.cache.add(r);let i=`${n===e.theme?":root,":""}.${r}{${o.join(";")}}`;t.rules.themed.apply(i)}return r};return{...s,get className(){return a()},selector:i,toString:a}}),L=l(),J=e=>{let t=!1,r=L(e,e=>{t=!0;let r="prefix"in(e="object"==typeof e&&e||{})?String(e.prefix):"",n="object"==typeof e.media&&e.media||{},i="object"==typeof e.root?e.root||null:globalThis.document||null,s="object"==typeof e.theme&&e.theme||{},a={prefix:r,media:n,theme:s,themeMap:"object"==typeof e.themeMap&&e.themeMap||{...o},utils:"object"==typeof e.utils&&e.utils||{}},l=T(i),O={css:q(a,l),globalCss:I(a,l),keyframes:M(a,l),createTheme:B(a,l),reset(){l.reset(),O.theme.toString()},theme:{},sheet:l,config:a,prefix:r,getCssText:l.toString,toString:l.toString};return String(O.theme=O.createTheme(s)),O});return t||r.reset(),r}},17024:(e,t,r)=>{"use strict";r.d(t,{j:()=>s});var n=Object.prototype.hasOwnProperty;function i(e,t,r){for(r of e.keys())if(s(r,t))return r}function s(e,t){var r,o,a;if(e===t)return!0;if(e&&t&&(r=e.constructor)===t.constructor){if(r===Date)return e.getTime()===t.getTime();if(r===RegExp)return e.toString()===t.toString();if(r===Array){if((o=e.length)===t.length)for(;o--&&s(e[o],t[o]););return -1===o}if(r===Set){if(e.size!==t.size)return!1;for(o of e)if((a=o)&&"object"==typeof a&&!(a=i(t,a))||!t.has(a))return!1;return!0}if(r===Map){if(e.size!==t.size)return!1;for(o of e)if((a=o[0])&&"object"==typeof a&&!(a=i(t,a))||!s(o[1],t.get(a)))return!1;return!0}if(r===ArrayBuffer)e=new Uint8Array(e),t=new Uint8Array(t);else if(r===DataView){if((o=e.byteLength)===t.byteLength)for(;o--&&e.getInt8(o)===t.getInt8(o););return -1===o}if(ArrayBuffer.isView(e)){if((o=e.byteLength)===t.byteLength)for(;o--&&e[o]===t[o];);return -1===o}if(!r||"object"==typeof e){for(r in o=0,e)if(n.call(e,r)&&++o&&!n.call(t,r)||!(r in t)||!s(e[r],t[r]))return!1;return Object.keys(t).length===o}}return e!=e&&t!=t}},3381:(e,t,r)=>{"use strict";r.d(t,{V1:()=>o});var n=/(%?)(%([sdjo]))/g;function i(e,...t){if(0===t.length)return e;let r=0,s=e.replace(n,(e,n,i,s)=>{let o=function(e,t){switch(t){case"s":return e;case"d":case"i":return Number(e);case"j":return JSON.stringify(e);case"o":{if("string"==typeof e)return e;let t=JSON.stringify(e);if("{}"===t||"[]"===t||/^\[object .+?\]$/.test(t))return e;return t}}}(t[r],s);return n?e:(r++,o)});return r{if(!e)throw new s(t,...r)};o.as=(e,t,r,...n)=>{if(!t)throw null!=e.prototype.name?new e(i(r,n)):e(i(r,n))}},46217:(e,t,r)=>{"use strict";r.d(t,{G:()=>o});let n="undefined"==typeof Symbol?"__ͼ":Symbol.for("ͼ"),i="undefined"==typeof Symbol?"__styleSet"+Math.floor(1e8*Math.random()):Symbol("styleSet"),s="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:{};class o{constructor(e,t){this.rules=[];let{finish:r}=t||{};function n(e){return/^@/.test(e)?[e]:e.split(/,\s*/)}for(let t in e)!function e(t,i,s,o){let a=[],l=/^@(\w+)\b/.exec(t[0]),O=l&&"keyframes"==l[1];if(l&&null==i)return s.push(t[0]+";");for(let r in i){let o=i[r];if(/&/.test(r))e(r.split(/,\s*/).map(e=>t.map(t=>e.replace(/&/,t))).reduce((e,t)=>e.concat(t)),o,s);else if(o&&"object"==typeof o){if(!l)throw RangeError("The value of a property ("+r+") should be a primitive value.");e(n(r),o,a,O)}else null!=o&&a.push(r.replace(/_.*/,"").replace(/[A-Z]/g,e=>"-"+e.toLowerCase())+": "+o+";")}(a.length||O)&&s.push((!r||l||o?t:t.map(r)).join(", ")+" {"+a.join(" ")+"}")}(n(t),e[t],this.rules)}getRules(){return this.rules.join("\n")}static newName(){let e=s[n]||1;return s[n]=e+1,"ͼ"+e.toString(36)}static mount(e,t,r){let n=e[i],s=r&&r.nonce;n?s&&n.setNonce(s):n=new l(e,s),n.mount(Array.isArray(t)?t:[t],e)}}let a=new Map;class l{constructor(e,t){let r=e.ownerDocument||e,n=r.defaultView;if(!e.head&&e.adoptedStyleSheets&&n.CSSStyleSheet){let t=a.get(r);if(t)return e[i]=t;this.sheet=new n.CSSStyleSheet,a.set(r,this)}else this.styleTag=r.createElement("style"),t&&this.styleTag.setAttribute("nonce",t);this.modules=[],e[i]=this}mount(e,t){let r=this.sheet,n=0,i=0;for(let t=0;t-1&&(this.modules.splice(o,1),i--,o=-1),-1==o){if(this.modules.splice(i++,0,s),r)for(let e=0;et.adoptedStyleSheets.indexOf(this.sheet)&&(t.adoptedStyleSheets=[this.sheet,...t.adoptedStyleSheets]);else{let e="";for(let t=0;t{"use strict";r.d(t,{BN:()=>i,E3:()=>n,xT:()=>O});for(var n={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:"'"},i={48:")",49:"!",50:"@",51:"#",52:"$",53:"%",54:"^",55:"&",56:"*",57:"(",59:":",61:"+",173:"_",186:":",187:"+",188:"<",189:"_",190:">",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},s="undefined"!=typeof navigator&&/Mac/.test(navigator.platform),o="undefined"!=typeof navigator&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent),a=0;a<10;a++)n[48+a]=n[96+a]=String(a);for(var a=1;a<=24;a++)n[a+111]="F"+a;for(var a=65;a<=90;a++)n[a]=String.fromCharCode(a+32),i[a]=String.fromCharCode(a);for(var l in n)i.hasOwnProperty(l)||(i[l]=n[l]);function O(e){var t=!(s&&e.metaKey&&e.shiftKey&&!e.ctrlKey&&!e.altKey||o&&e.shiftKey&&e.key&&1==e.key.length||"Unidentified"==e.key)&&e.key||(e.shiftKey?i:n)[e.keyCode]||e.key||"Unidentified";return"Esc"==t&&(t="Escape"),"Del"==t&&(t="Delete"),"Left"==t&&(t="ArrowLeft"),"Up"==t&&(t="ArrowUp"),"Right"==t&&(t="ArrowRight"),"Down"==t&&(t="ArrowDown"),t}}}]); //# sourceMappingURL=69811.a47bf1a3f9131fb4.js.map