{var r;return o(e,n.prototype)?!0:((r=e.constructor)===null||r===void 0?void 0:r.name)===n.name},un=e=>{const n=typeof e;return e===null?"null":n==="object"&&Array.isArray(e)?"array":n==="object"&&Tt(e,String,(o,r)=>r.isPrototypeOf(o))?"string":n},En=e=>n=>un(n)===e,Pe=e=>n=>typeof n===e,Ut=e=>n=>e===n,ut=(e,n)=>dt(e)&&Tt(e,n,(o,r)=>ln(o)===r),q=En("string"),dt=En("object"),$t=e=>ut(e,Object),kt=En("array"),U=Ut(null),xt=Pe("boolean"),In=Ut(void 0),zt=e=>e==null,Ke=e=>!zt(e),ce=Pe("function"),ze=Pe("number"),Ze=(e,n)=>{if(kt(e)){for(let o=0,r=e.length;o{},E=(e,n)=>(...o)=>e(n.apply(null,o)),Mn=(e,n)=>o=>e(n(o)),nt=e=>()=>e,mo=e=>e,Qt=(e,n)=>e===n;function Ye(e,...n){return(...o)=>{const r=n.concat(o);return e.apply(null,r)}}const go=e=>n=>!e(n),So=e=>()=>{throw new Error(e)},At=e=>e(),fn=e=>{e()},Te=nt(!1),lt=nt(!0);class I{constructor(n,o){this.tag=n,this.value=o}static some(n){return new I(!0,n)}static none(){return I.singletonNone}fold(n,o){return this.tag?o(this.value):n()}isSome(){return this.tag}isNone(){return!this.tag}map(n){return this.tag?I.some(n(this.value)):I.none()}bind(n){return this.tag?n(this.value):I.none()}exists(n){return this.tag&&n(this.value)}forall(n){return!this.tag||n(this.value)}filter(n){return!this.tag||n(this.value)?this:I.none()}getOr(n){return this.tag?this.value:n}or(n){return this.tag?this:n}getOrThunk(n){return this.tag?this.value:n()}orThunk(n){return this.tag?this:n()}getOrDie(n){if(this.tag)return this.value;throw new Error(n??"Called getOrDie on None")}static from(n){return Ke(n)?I.some(n):I.none()}getOrNull(){return this.tag?this.value:null}getOrUndefined(){return this.value}each(n){this.tag&&n(this.value)}toArray(){return this.tag?[this.value]:[]}toString(){return this.tag?`some(${this.value})`:"none()"}}I.singletonNone=new I(!1);const Io=Array.prototype.slice,tt=Array.prototype.indexOf,mt=Array.prototype.push,yt=(e,n)=>tt.call(e,n),Ue=(e,n)=>{const o=yt(e,n);return o===-1?I.none():I.some(o)},ne=(e,n)=>yt(e,n)>-1,Me=(e,n)=>{for(let o=0,r=e.length;o{const o=e.length,r=new Array(o);for(let c=0;c{for(let o=0,r=e.length;o{for(let o=e.length-1;o>=0;o--){const r=e[o];n(r,o)}},_e=(e,n)=>{const o=[],r=[];for(let c=0,u=e.length;c{const o=[];for(let r=0,c=e.length;r(pe(e,(r,c)=>{o=n(o,r,c)}),o),he=(e,n,o)=>(Y(e,(r,c)=>{o=n(o,r,c)}),o),bt=(e,n,o)=>{for(let r=0,c=e.length;rbt(e,n,Te),Vn=(e,n)=>{for(let o=0,r=e.length;o{const n=[];for(let o=0,r=e.length;ouo(Ae(e,n)),wn=(e,n)=>{for(let o=0,r=e.length;o{const n=Io.call(e,0);return n.reverse(),n},Ro=(e,n)=>Be(e,o=>!ne(n,o)),no=(e,n)=>{const o={};for(let r=0,c=e.length;r{const o=Io.call(e,0);return o.sort(n),o},Jn=(e,n)=>n>=0&&nJn(e,0),Lo=e=>Jn(e,e.length-1),Cs=ce(Array.from)?Array.from:e=>Io.call(e),js=(e,n)=>{for(let o=0;o{const o=[],r=ce(n)?c=>Me(o,u=>n(u,c)):c=>ne(o,c);for(let c=0,u=e.length;c{const o=Es(e);for(let r=0,c=o.length;rJr(e,(o,r)=>({k:r,v:n(o,r)})),Jr=(e,n)=>{const o={};return Nt(e,(r,c)=>{const u=n(r,c);o[u.k]=u.v}),o},sr=e=>(n,o)=>{e[o]=n},Va=(e,n,o,r)=>{Nt(e,(c,u)=>{(n(c,u)?o:r)(c,u)})},fa=(e,n)=>{const o={},r={};return Va(e,n,sr(o),sr(r)),{t:o,f:r}},ks=(e,n)=>{const o={};return Va(e,n,sr(o),ft),o},_a=(e,n)=>{const o=[];return Nt(e,(r,c)=>{o.push(n(r,c))}),o},Rr=e=>_a(e,mo),ns=(e,n)=>Un(e,n)?I.from(e[n]):I.none(),Un=(e,n)=>ur.call(e,n),Cr=(e,n)=>Un(e,n)&&e[n]!==void 0&&e[n]!==null,Ee=(e,n,o=wo)=>Tn(o).eq(e,n),We=e=>{const n={};return Y(e,o=>{n[o]={}}),Es(n)},Lt=e=>e.length!==void 0,gn=Array.isArray,ho=e=>{if(gn(e))return e;{const n=[];for(let o=0,r=e.length;o{if(!e)return!1;if(o=o||e,Lt(e)){for(let r=0,c=e.length;r{const o=[];return Ho(e,(r,c)=>{o.push(n(r,c,e))}),o},le=(e,n)=>{const o=[];return Ho(e,(r,c)=>{(!n||n(r,c,e))&&o.push(r)}),o},re=(e,n)=>{if(e){for(let o=0,r=e.length;o{let c=In(o)?e[0]:o;for(let u=0;u{for(let r=0,c=e.length;re[e.length-1],Hn=e=>{let n=!1,o;return(...r)=>(n||(n=!0,o=e.apply(null,r)),o)},Bo=(e,n,o,r)=>{const c=e.isiOS()&&/ipad/i.test(o)===!0,u=e.isiOS()&&!c,m=e.isiOS()||e.isAndroid(),b=m||r("(pointer:coarse)"),v=c||!u&&m&&r("(min-device-width:768px)"),x=u||m&&!v,M=n.isSafari()&&e.isiOS()&&/safari/i.test(o)===!1,D=!x&&!v&&!M;return{isiPad:nt(c),isiPhone:nt(u),isTablet:nt(v),isPhone:nt(x),isTouch:nt(b),isAndroid:e.isAndroid,isiOS:e.isiOS,isWebView:nt(M),isDesktop:nt(D)}},ws=(e,n)=>{for(let o=0;o{const o=ws(e,n);if(!o)return{major:0,minor:0};const r=c=>Number(n.replace(o,"$"+c));return ps(r(1),r(2))},Uo=(e,n)=>{const o=String(n).toLowerCase();return e.length===0?Ce():To(e,o)},Ce=()=>ps(0,0),ps=(e,n)=>({major:e,minor:n}),ie={nu:ps,detect:Uo,unknown:Ce},de=(e,n)=>js(n.brands,o=>{const r=o.brand.toLowerCase();return It(e,c=>{var u;return r===((u=c.brand)===null||u===void 0?void 0:u.toLowerCase())}).map(c=>({current:c.name,version:ie.nu(parseInt(o.version,10),0)}))}),_t=(e,n)=>{const o=String(n).toLowerCase();return It(e,r=>r.search(o))},Ct=(e,n)=>_t(e,n).map(o=>{const r=ie.detect(o.versionRegexes,n);return{current:o.name,version:r}}),Xt=(e,n)=>_t(e,n).map(o=>{const r=ie.detect(o.versionRegexes,n);return{current:o.name,version:r}}),vn=(e,n)=>e.substring(n),hn=(e,n,o)=>n===""||e.length>=n.length&&e.substr(o,o+n.length)===n,_n=(e,n)=>eo(e,n)?vn(e,n.length):e,Qn=(e,n,o=0,r)=>{const c=e.indexOf(n,o);return c!==-1?In(r)?!0:c+n.length<=r:!1},eo=(e,n)=>hn(e,n,0),As=(e,n)=>hn(e,n,e.length-n.length),Gs=e=>n=>n.replace(e,""),Ma=Gs(/^\s+|\s+$/g),Ua=Gs(/^\s+/g),ic=Gs(/\s+$/g),io=e=>e.length>0,hs=e=>!io(e),Os=(e,n)=>n<=0?"":new Array(n+1).join(e),Wr=(e,n=10)=>{const o=parseInt(e,n);return isNaN(o)?I.none():I.some(o)},Qr=/.*?version\/\ ?([0-9]+)\.([0-9]+).*/,Fr=e=>n=>Qn(n,e),Qs=[{name:"Edge",versionRegexes:[/.*?edge\/ ?([0-9]+)\.([0-9]+)$/],search:e=>Qn(e,"edge/")&&Qn(e,"chrome")&&Qn(e,"safari")&&Qn(e,"applewebkit")},{name:"Chromium",brand:"Chromium",versionRegexes:[/.*?chrome\/([0-9]+)\.([0-9]+).*/,Qr],search:e=>Qn(e,"chrome")&&!Qn(e,"chromeframe")},{name:"IE",versionRegexes:[/.*?msie\ ?([0-9]+)\.([0-9]+).*/,/.*?rv:([0-9]+)\.([0-9]+).*/],search:e=>Qn(e,"msie")||Qn(e,"trident")},{name:"Opera",versionRegexes:[Qr,/.*?opera\/([0-9]+)\.([0-9]+).*/],search:Fr("opera")},{name:"Firefox",versionRegexes:[/.*?firefox\/\ ?([0-9]+)\.([0-9]+).*/],search:Fr("firefox")},{name:"Safari",versionRegexes:[Qr,/.*?cpu os ([0-9]+)_([0-9]+).*/],search:e=>(Qn(e,"safari")||Qn(e,"mobile/"))&&Qn(e,"applewebkit")}],Ql=[{name:"Windows",search:Fr("win"),versionRegexes:[/.*?windows\ nt\ ?([0-9]+)\.([0-9]+).*/]},{name:"iOS",search:e=>Qn(e,"iphone")||Qn(e,"ipad"),versionRegexes:[/.*?version\/\ ?([0-9]+)\.([0-9]+).*/,/.*cpu os ([0-9]+)_([0-9]+).*/,/.*cpu iphone os ([0-9]+)_([0-9]+).*/]},{name:"Android",search:Fr("android"),versionRegexes:[/.*?android\ ?([0-9]+)\.([0-9]+).*/]},{name:"macOS",search:Fr("mac os x"),versionRegexes:[/.*?mac\ os\ x\ ?([0-9]+)_([0-9]+).*/]},{name:"Linux",search:Fr("linux"),versionRegexes:[]},{name:"Solaris",search:Fr("sunos"),versionRegexes:[]},{name:"FreeBSD",search:Fr("freebsd"),versionRegexes:[]},{name:"ChromeOS",search:Fr("cros"),versionRegexes:[/.*?chrome\/([0-9]+)\.([0-9]+).*/]}],ji={browsers:nt(Qs),oses:nt(Ql)},zs="Edge",Ca="Chromium",Na="IE",Sr="Opera",Wi="Firefox",lc="Safari",Sa=()=>wc({current:void 0,version:ie.unknown()}),wc=e=>{const n=e.current,o=e.version,r=c=>()=>n===c;return{current:n,version:o,isEdge:r(zs),isChromium:r(Ca),isIE:r(Na),isOpera:r(Sr),isFirefox:r(Wi),isSafari:r(lc)}},al={unknown:Sa,nu:wc,edge:nt(zs),chromium:nt(Ca),ie:nt(Na),opera:nt(Sr),firefox:nt(Wi),safari:nt(lc)},li="Windows",cl="iOS",Ba="Android",Nc="Linux",Zi="macOS",jc="Solaris",qi="FreeBSD",W="ChromeOS",be=()=>Se({current:void 0,version:ie.unknown()}),Se=e=>{const n=e.current,o=e.version,r=c=>()=>n===c;return{current:n,version:o,isWindows:r(li),isiOS:r(cl),isAndroid:r(Ba),isMacOS:r(Zi),isLinux:r(Nc),isSolaris:r(jc),isFreeBSD:r(qi),isChromeOS:r(W)}},ot={unknown:be,nu:Se,windows:nt(li),ios:nt(cl),android:nt(Ba),linux:nt(Nc),macos:nt(Zi),solaris:nt(jc),freebsd:nt(qi),chromeos:nt(W)},Wn={detect:(e,n,o)=>{const r=ji.browsers(),c=ji.oses(),u=n.bind(v=>de(r,v)).orThunk(()=>Ct(r,e)).fold(al.unknown,al.nu),m=Xt(c,e).fold(ot.unknown,ot.nu),b=Bo(m,u,e,o);return{browser:u,os:m,deviceType:b}}},Bs=e=>window.matchMedia(e).matches;let Ir=Hn(()=>Wn.detect(navigator.userAgent,I.from(navigator.userAgentData),Bs));const os=()=>Ir(),Lr=navigator.userAgent,bs=os(),yr=bs.browser,Bc=bs.os,_c=bs.deviceType,_o=Lr.indexOf("Windows Phone")!==-1,_s={transparentSrc:"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",documentMode:yr.isIE()?document.documentMode||7:10,cacheSuffix:null,container:null,canHaveCSP:!yr.isIE(),windowsPhone:_o,browser:{current:yr.current,version:yr.version,isChromium:yr.isChromium,isEdge:yr.isEdge,isFirefox:yr.isFirefox,isIE:yr.isIE,isOpera:yr.isOpera,isSafari:yr.isSafari},os:{current:Bc.current,version:Bc.version,isAndroid:Bc.isAndroid,isChromeOS:Bc.isChromeOS,isFreeBSD:Bc.isFreeBSD,isiOS:Bc.isiOS,isLinux:Bc.isLinux,isMacOS:Bc.isMacOS,isSolaris:Bc.isSolaris,isWindows:Bc.isWindows},deviceType:{isDesktop:_c.isDesktop,isiPad:_c.isiPad,isiPhone:_c.isiPhone,isPhone:_c.isPhone,isTablet:_c.isTablet,isTouch:_c.isTouch,isWebView:_c.isWebView}},ra=/^\s*|\s*$/g,B=e=>zt(e)?"":(""+e).replace(ra,""),K=(e,n)=>n?n==="array"&&gn(e)?!0:typeof e===n:e!==void 0,se=(e,n,o={})=>{const r=q(e)?e.split(n||","):e||[];let c=r.length;for(;c--;)o[r[c]]={};return o},Ge=Un,tn=(e,...n)=>{for(let o=0;on.call(r,c,u,o)===!1?!1:(Mo(c,n,o,r),!0)))},wt={trim:B,isArray:gn,is:K,toArray:ho,makeMap:se,each:Ho,map:qs,grep:le,inArray:re,hasOwn:Ge,extend:tn,walk:Mo,resolve:(e,n=window)=>{const o=e.split(".");for(let r=0,c=o.length;rkt(e)?e:e===""?[]:qs(e.split(n||","),B),_addCacheSuffix:e=>{const n=_s.cacheSuffix;return n&&(e+=(e.indexOf("?")===-1?"?":"&")+n),e}},qr=(e,n,o=Qt)=>e.exists(r=>o(r,n)),xr=e=>{const n=[],o=r=>{n.push(r)};for(let r=0;re.isSome()&&n.isSome()?I.some(o(e.getOrDie(),n.getOrDie())):I.none(),sd=(e,n,o,r)=>e.isSome()&&n.isSome()&&o.isSome()?I.some(r(e.getOrDie(),n.getOrDie(),o.getOrDie())):I.none(),Xo=(e,n)=>e?I.some(n):I.none(),X=typeof window<"u"?window:Function("return this;")(),ae=(e,n)=>{let o=n??X;for(let r=0;r{const o=e.split(".");return ae(o,n)},at=(e,n)=>$e(e,n),Sn=(e,n)=>{const o=at(e,n);if(o==null)throw new Error(e+" not available on this browser");return o},ds=Object.getPrototypeOf,dr=e=>Sn("HTMLElement",e),es=e=>{const n=$e("ownerDocument.defaultView",e);return dt(e)&&(dr(n).prototype.isPrototypeOf(e)||/^HTML\w*Element$/.test(ds(e).constructor.name))},rr=8,xa=9,Ks=11,Cc=1,Wc=3,Ws=e=>e.dom.nodeName.toLowerCase(),Ta=e=>e.dom.nodeType,Tr=e=>n=>Ta(n)===e,Ti=e=>Ta(e)===rr||Ws(e)==="#comment",Sl=e=>er(e)&&es(e.dom),er=Tr(Cc),Sc=Tr(Wc),Ei=Tr(xa),rd=Tr(Ks),il=e=>n=>er(n)&&Ws(n)===e,Qc=(e,n,o)=>{if(q(o)||xt(o)||ze(o))e.setAttribute(n,o+"");else throw console.error("Invalid call to Attribute.set. Key ",n,":: Value ",o,":: Element ",e),new Error("Attribute value was not simple")},ea=(e,n,o)=>{Qc(e.dom,n,o)},uc=(e,n)=>{const o=e.dom;Nt(n,(r,c)=>{Qc(o,c,r)})},Pc=(e,n)=>{const o=e.dom.getAttribute(n);return o===null?void 0:o},ei=(e,n)=>I.from(Pc(e,n)),Qa=(e,n)=>{const o=e.dom;return o&&o.hasAttribute?o.hasAttribute(n):!1},Hr=(e,n)=>{e.dom.removeAttribute(n)},Zc=e=>{const n=e.dom.attributes;return n==null||n.length===0},nf=e=>he(e.dom.attributes,(n,o)=>(n[o.name]=o.value,n),{}),eu=(e,n)=>{const o=Pc(e,n);return o===void 0||o===""?[]:o.split(" ")},tu=(e,n,o)=>{const c=eu(e,n).concat([o]);return ea(e,n,c.join(" ")),!0},Gf=(e,n,o)=>{const r=Be(eu(e,n),c=>c!==o);return r.length>0?ea(e,n,r.join(" ")):Hr(e,n),!1},ui=e=>e.dom.classList!==void 0,nu=e=>eu(e,"class"),ad=(e,n)=>tu(e,"class",n),Gr=(e,n)=>Gf(e,"class",n),of=(e,n)=>ne(nu(e),n)?Gr(e,n):ad(e,n),Au=(e,n)=>{ui(e)?e.dom.classList.add(n):ad(e,n)},Ou=e=>{(ui(e)?e.dom.classList:nu(e)).length===0&&Hr(e,"class")},cd=(e,n)=>{ui(e)?e.dom.classList.remove(n):Gr(e,n),Ou(e)},id=(e,n)=>{const o=ui(e)?e.dom.classList.toggle(n):of(e,n);return Ou(e),o},ld=(e,n)=>ui(e)&&e.dom.classList.contains(n),zu=(e,n)=>{const r=(n||document).createElement("div");if(r.innerHTML=e,!r.hasChildNodes()||r.childNodes.length>1){const c="HTML does not have a single root node";throw console.error(c,e),new Error(c)}return ou(r.childNodes[0])},Kf=(e,n)=>{const r=(n||document).createElement(e);return ou(r)},Yf=(e,n)=>{const r=(n||document).createTextNode(e);return ou(r)},ou=e=>{if(e==null)throw new Error("Node cannot be null or undefined");return{dom:e}},ue={fromHtml:zu,fromTag:Kf,fromText:Yf,fromDom:ou,fromPoint:(e,n,o)=>I.from(e.dom.elementFromPoint(n,o)).map(ou)},ud=(e,n)=>{const o=[],r=u=>(o.push(u),n(u));let c=n(e);do c=c.bind(r);while(c.isSome());return o},$c=(e,n)=>{const o=e.dom;if(o.nodeType!==Cc)return!1;{const r=o;if(r.matches!==void 0)return r.matches(n);if(r.msMatchesSelector!==void 0)return r.msMatchesSelector(n);if(r.webkitMatchesSelector!==void 0)return r.webkitMatchesSelector(n);if(r.mozMatchesSelector!==void 0)return r.mozMatchesSelector(n);throw new Error("Browser lacks native selectors")}},Wm=e=>e.nodeType!==Cc&&e.nodeType!==xa&&e.nodeType!==Ks||e.childElementCount===0,vh=(e,n)=>{const o=n===void 0?document:n.dom;return Wm(o)?[]:Ae(o.querySelectorAll(e),ue.fromDom)},kh=(e,n)=>{const o=n===void 0?document:n.dom;return Wm(o)?I.none():I.from(o.querySelector(e)).map(ue.fromDom)},Ps=(e,n)=>e.dom===n.dom,Ai=(e,n)=>{const o=e.dom,r=n.dom;return o===r?!1:o.contains(r)},xc=e=>ue.fromDom(e.dom.ownerDocument),ti=e=>Ei(e)?e:xc(e),np=e=>ue.fromDom(ti(e).dom.documentElement),xl=e=>ue.fromDom(ti(e).dom.defaultView),di=e=>I.from(e.dom.parentNode).map(ue.fromDom),sf=e=>I.from(e.dom.parentElement).map(ue.fromDom),Zm=(e,n)=>{const o=ce(n)?n:Te;let r=e.dom;const c=[];for(;r.parentNode!==null&&r.parentNode!==void 0;){const u=r.parentNode,m=ue.fromDom(u);if(c.push(m),o(m)===!0)break;r=u}return c},op=e=>{const n=o=>Be(o,r=>!Ps(e,r));return di(e).map(ja).map(n).getOr([])},qc=e=>I.from(e.dom.previousSibling).map(ue.fromDom),dd=e=>I.from(e.dom.nextSibling).map(ue.fromDom),sp=e=>Ln(ud(e,qc)),ni=e=>ud(e,dd),ja=e=>Ae(e.dom.childNodes,ue.fromDom),fd=(e,n)=>{const o=e.dom.childNodes;return I.from(o[n]).map(ue.fromDom)},md=e=>fd(e,0),Oi=e=>fd(e,e.dom.childNodes.length-1),Fc=e=>e.dom.childNodes.length,Xf=e=>{const n=e.dom.head;if(n==null)throw new Error("Head is not available yet");return ue.fromDom(n)},Jf=e=>rd(e)&&Ke(e.dom.host),Qf=ce(Element.prototype.attachShadow)&&ce(Node.prototype.getRootNode),em=nt(Qf),Gi=Qf?e=>ue.fromDom(e.dom.getRootNode()):ti,rf=e=>Jf(e)?e:Xf(ti(e)),rp=e=>Jf(e)?e:ue.fromDom(ti(e).dom.body),kv=e=>{const n=Gi(e);return Jf(n)?I.some(n):I.none()},ap=e=>ue.fromDom(e.dom.host),af=e=>{if(em()&&Ke(e.target)){const n=ue.fromDom(e.target);if(er(n)&&qm(n)&&e.composed&&e.composedPath){const o=e.composedPath();if(o)return Yn(o)}}return I.from(e.target)},qm=e=>Ke(e.dom.shadowRoot),Tl=e=>{const n=Sc(e)?e.dom.parentNode:e.dom;if(n==null||n.ownerDocument===null)return!1;const o=n.ownerDocument;return kv(ue.fromDom(n)).fold(()=>o.body.contains(n),Mn(Tl,ap))};var Gm=(e,n,o,r,c)=>e(o,r)?I.some(o):ce(c)&&c(o)?I.none():n(o,r,c);const vr=(e,n,o)=>{let r=e.dom;const c=ce(o)?o:Te;for(;r.parentNode;){r=r.parentNode;const u=ue.fromDom(r);if(n(u))return I.some(u);if(c(u))break}return I.none()},T=(e,n,o)=>Gm((c,u)=>u(c),vr,e,n,o),R=(e,n)=>{const o=e.dom;return o.parentNode?V(ue.fromDom(o.parentNode),r=>!Ps(e,r)&&n(r)):I.none()},V=(e,n)=>{const o=c=>n(ue.fromDom(c));return It(e.dom.childNodes,o).map(ue.fromDom)},ye=(e,n)=>{const o=r=>{for(let c=0;cvr(e,r=>$c(r,n),o),qt=(e,n)=>kh(n,e),oo=(e,n,o)=>Gm((c,u)=>$c(c,u),ve,e,n,o),xo=e=>oo(e,"[contenteditable]"),Jo=(e,n=!1)=>Tl(e)?e.dom.isContentEditable:xo(e).fold(nt(n),o=>jt(o)==="true"),jt=e=>e.dom.contentEditable,Vs=e=>e.style!==void 0&&ce(e.style.getPropertyValue),Pa=(e,n,o)=>{if(!q(o))throw console.error("Invalid call to CSS.set. Property ",n,":: Value ",o,":: Element ",e),new Error("CSS value must be a string: "+o);Vs(e)&&e.style.setProperty(n,o)},fi=(e,n)=>{Vs(e)&&e.style.removeProperty(n)},cf=(e,n,o)=>{const r=e.dom;Pa(r,n,o)},Km=(e,n)=>{const o=e.dom;Nt(n,(r,c)=>{Pa(o,c,r)})},ll=(e,n)=>{const o=e.dom,c=window.getComputedStyle(o).getPropertyValue(n);return c===""&&!Tl(e)?mi(o,n):c},mi=(e,n)=>Vs(e)?e.style.getPropertyValue(n):"",Ic=(e,n)=>{const o=e.dom,r=mi(o,n);return I.from(r).filter(c=>c.length>0)},zi=e=>{const n={},o=e.dom;if(Vs(o))for(let r=0;r{const o=e.dom;fi(o,n),qr(ei(e,"style").map(Ma),"")&&Hr(e,"style")},iy=e=>e.dom.offsetWidth,Is=(e,n)=>{di(e).each(r=>{r.dom.insertBefore(n.dom,e.dom)})},Du=(e,n)=>{dd(e).fold(()=>{di(e).each(c=>{Kr(c,n)})},r=>{Is(r,n)})},gd=(e,n)=>{md(e).fold(()=>{Kr(e,n)},r=>{e.dom.insertBefore(n.dom,r.dom)})},Kr=(e,n)=>{e.dom.appendChild(n.dom)},ly=(e,n)=>{Is(e,n),Kr(n,e)},wv=(e,n)=>{Y(n,(o,r)=>{const c=r===0?e:n[r-1];Du(c,o)})},Ru=(e,n)=>{Y(n,o=>{Kr(e,o)})},ar=e=>{e.dom.textContent="",Y(ja(e),n=>{fr(n)})},fr=e=>{const n=e.dom;n.parentNode!==null&&n.parentNode.removeChild(n)},Ea=e=>{const n=ja(e);n.length>0&&wv(e,n),fr(e)},pd=(e,n)=>{const r=(n||document).createElement("div");return r.innerHTML=e,ja(ue.fromDom(r))},hd=e=>Ae(e,ue.fromDom),lf=e=>e.dom.innerHTML,bd=(e,n)=>{const r=xc(e).dom,c=ue.fromDom(r.createDocumentFragment()),u=pd(n,r);Ru(c,u),ar(e),Kr(e,c)},ss=e=>{const n=ue.fromTag("div"),o=ue.fromDom(e.dom.cloneNode(!0));return Kr(n,o),lf(n)},cp=(e,n,o,r,c,u,m)=>({target:e,x:n,y:o,stop:r,prevent:c,kill:u,raw:m}),wh=e=>{const n=ue.fromDom(af(e).getOr(e.target)),o=()=>e.stopPropagation(),r=()=>e.preventDefault(),c=E(r,o);return cp(n,e.clientX,e.clientY,o,r,c,e)},_v=(e,n)=>o=>{e(o)&&n(wh(o))},Cv=(e,n,o,r,c)=>{const u=_v(o,r);return e.dom.addEventListener(n,u,c),{unbind:Ye(uy,e,n,u,c)}},Ym=(e,n,o,r)=>Cv(e,n,o,r,!1),uy=(e,n,o,r)=>{e.dom.removeEventListener(n,o,r)},Xm=(e,n)=>({left:e,top:n,translate:(r,c)=>Xm(e+r,n+c)}),ul=Xm,dy=e=>{const n=e.getBoundingClientRect();return ul(n.left,n.top)},ip=(e,n)=>e!==void 0?e:n!==void 0?n:0,fy=e=>{const n=e.dom.ownerDocument,o=n.body,r=n.defaultView,c=n.documentElement;if(o===e.dom)return ul(o.offsetLeft,o.offsetTop);const u=ip(r==null?void 0:r.pageYOffset,c.scrollTop),m=ip(r==null?void 0:r.pageXOffset,c.scrollLeft),b=ip(c.clientTop,o.clientTop),v=ip(c.clientLeft,o.clientLeft);return El(e).translate(m-v,u-b)},El=e=>{const n=e.dom,r=n.ownerDocument.body;return r===n?ul(r.offsetLeft,r.offsetTop):Tl(e)?dy(n):ul(0,0)},_h=e=>{const n=e!==void 0?e.dom:document,o=n.body.scrollLeft||n.documentElement.scrollLeft,r=n.body.scrollTop||n.documentElement.scrollTop;return ul(o,r)},Al=(e,n,o)=>{const c=(o!==void 0?o.dom:document).defaultView;c&&c.scrollTo(e,n)},uf=(e,n)=>{os().browser.isSafari()&&ce(e.dom.scrollIntoViewIfNeeded)?e.dom.scrollIntoViewIfNeeded(!1):e.dom.scrollIntoView(n)},Sv=e=>{const n=e===void 0?window:e;return os().browser.isFirefox()?I.none():I.from(n.visualViewport)},lp=(e,n,o,r)=>({x:e,y:n,width:o,height:r,right:e+o,bottom:n+r}),up=e=>{const n=e===void 0?window:e,o=n.document,r=_h(ue.fromDom(o));return Sv(n).fold(()=>{const c=n.document.documentElement,u=c.clientWidth,m=c.clientHeight;return lp(r.left,r.top,u,m)},c=>lp(Math.max(c.pageLeft,r.left),Math.max(c.pageTop,r.top),c.width,c.height))},my=(e,n)=>Be(ja(e),n),dp=(e,n)=>{let o=[];return Y(ja(e),r=>{n(r)&&(o=o.concat([r])),o=o.concat(dp(r,n))}),o},Tc=(e,n)=>vh(n,e),fp=(e,n,o)=>ve(e,n,o).isSome();class $a{constructor(n,o){this.node=n,this.rootNode=o,this.current=this.current.bind(this),this.next=this.next.bind(this),this.prev=this.prev.bind(this),this.prev2=this.prev2.bind(this)}current(){return this.node}next(n){return this.node=this.findSibling(this.node,"firstChild","nextSibling",n),this.node}prev(n){return this.node=this.findSibling(this.node,"lastChild","previousSibling",n),this.node}prev2(n){return this.node=this.findPreviousNode(this.node,n),this.node}findSibling(n,o,r,c){if(n){if(!c&&n[o])return n[o];if(n!==this.rootNode){let u=n[r];if(u)return u;for(let m=n.parentNode;m&&m!==this.rootNode;m=m.parentNode)if(u=m[r],u)return u}}}findPreviousNode(n,o){if(n){const r=n.previousSibling;if(this.rootNode&&r===this.rootNode)return;if(r){if(!o){for(let u=r.lastChild;u;u=u.lastChild)if(!u.lastChild)return u}return r}const c=n.parentNode;if(c&&c!==this.rootNode)return c}}}const Ec=e=>n=>!!n&&n.nodeType===e,qn=e=>!!e&&!Object.getPrototypeOf(e),dn=Ec(1),Jm=e=>{const n=e.toLowerCase();return o=>Ke(o)&&o.nodeName.toLowerCase()===n},oi=e=>{const n=e.map(o=>o.toLowerCase());return o=>{if(o&&o.nodeName){const r=o.nodeName.toLowerCase();return ne(n,r)}return!1}},Qm=(e,n)=>{const o=n.toLowerCase().split(" ");return r=>{if(dn(r)){const c=r.ownerDocument.defaultView;if(c)for(let u=0;un=>dn(n)&&n.hasAttribute(e),Di=(e,n)=>o=>dn(o)&&o.getAttribute(e)===n,gi=e=>dn(e)&&e.hasAttribute("data-mce-bogus"),gp=e=>dn(e)&&e.getAttribute("data-mce-bogus")==="all",Yr=e=>dn(e)&&e.tagName==="TABLE",tm=e=>n=>!!(dn(n)&&(n.contentEditable===e||n.getAttribute("data-mce-contenteditable")===e)),eg=oi(["textarea","input"]),Bt=Ec(3),xv=Ec(4),gy=Ec(7),Ri=Ec(8),nm=Ec(9),yd=Ec(11),Vr=Jm("br"),py=Jm("img"),Ys=tm("true"),Ls=tm("false"),Ac=oi(["td","th"]),om=oi(["td","th","caption"]),ma=oi(["video","audio","object","embed"]),vd=Jm("li"),ga="\uFEFF",tr=" ",tg=e=>e===ga,vt=e=>e.replace(/\uFEFF/g,""),pp=((e,n)=>{const o=u=>{if(!e(u))throw new Error("Can only get "+n+" value of a "+n+" node");return r(u).getOr("")},r=u=>e(u)?I.from(u.dom.nodeValue):I.none();return{get:o,getOption:r,set:(u,m)=>{if(!e(u))throw new Error("Can only set raw "+n+" value of a "+n+" node");u.dom.nodeValue=m}}})(Sc,"text"),ta=e=>pp.get(e),Ol=e=>pp.getOption(e),Ch=(e,n)=>pp.set(e,n),dl=["article","aside","details","div","dt","figcaption","footer","form","fieldset","header","hgroup","html","main","nav","section","summary","body","p","dl","multicol","dd","figure","address","center","blockquote","h1","h2","h3","h4","h5","h6","listing","xmp","pre","plaintext","menu","dir","ul","ol","li","hr","table","tbody","thead","tfoot","th","tr","td","caption"],Tv=["td","th"],Mu=["thead","tbody","tfoot"],hy=["h1","h2","h3","h4","h5","h6","p","div","address","pre","form","blockquote","center","dir","fieldset","header","footer","article","section","hgroup","aside","nav","figure"],pi=["h1","h2","h3","h4","h5","h6"],$s=["li","dd","dt"],su=["ul","ol","dl"],ng=["pre","script","textarea","style"],Lc=["pre"].concat(pi),zl=e=>{let n;return o=>(n=n||no(e,lt),Un(n,Ws(o)))},Oc=zl(dl),by=e=>Ws(e)==="table",Hc=e=>er(e)&&!Oc(e),Nu=e=>er(e)&&Ws(e)==="br",Fe=zl(hy),si=zl(su),ru=zl($s),hi=zl(Mu),Mi=zl(Tv),tc=zl(ng),Fa=zl(Lc),Ev=e=>Fa(e)||Hc(e),hp=e=>{const n=[];let o=e.dom;for(;o;)n.push(ue.fromDom(o)),o=o.lastChild;return n},w=e=>{const n=Tc(e,"br"),o=Be(hp(e).slice(-1),Nu);n.length===o.length&&Y(o,fr)},_=()=>{const e=ue.fromTag("br");return ea(e,"data-mce-bogus","1"),e},F=e=>{ar(e),Kr(e,_())},Z=e=>{Oi(e).each(n=>{qc(n).each(o=>{Oc(e)&&Nu(n)&&Oc(o)&&fr(n)})})},fe=ga,it=tg,Mt=vt,kn=dn,Oo=Bt,No=e=>(Oo(e)&&(e=e.parentNode),kn(e)&&e.hasAttribute("data-mce-caret")),Xs=e=>Oo(e)&&it(e.data),ys=e=>No(e)||Xs(e),Er=e=>e.firstChild!==e.lastChild||!Vr(e.firstChild),Ni=(e,n)=>{var o;const c=((o=e.ownerDocument)!==null&&o!==void 0?o:document).createTextNode(fe),u=e.parentNode;if(n){const m=e.previousSibling;if(Oo(m)){if(ys(m))return m;if(kd(m))return m.splitText(m.data.length-1)}u==null||u.insertBefore(c,e)}else{const m=e.nextSibling;if(Oo(m)){if(ys(m))return m;if(df(m))return m.splitText(1),m}e.nextSibling?u==null||u.insertBefore(c,e.nextSibling):u==null||u.appendChild(c)}return c},dc=e=>{const n=e.container();return Bt(n)?n.data.charAt(e.offset())===fe||e.isAtStart()&&Xs(n.previousSibling):!1},Dl=e=>{const n=e.container();return Bt(n)?n.data.charAt(e.offset()-1)===fe||e.isAtEnd()&&Xs(n.nextSibling):!1},au=(e,n,o)=>{var r;const u=((r=n.ownerDocument)!==null&&r!==void 0?r:document).createElement(e);u.setAttribute("data-mce-caret",o?"before":"after"),u.setAttribute("data-mce-bogus","all"),u.appendChild(_().dom);const m=n.parentNode;return o?m==null||m.insertBefore(u,n):n.nextSibling?m==null||m.insertBefore(u,n.nextSibling):m==null||m.appendChild(u),u},df=e=>Oo(e)&&e.data[0]===fe,kd=e=>Oo(e)&&e.data[e.data.length-1]===fe,Rl=e=>{var n;const o=e.getElementsByTagName("br"),r=o[o.length-1];gi(r)&&((n=r.parentNode)===null||n===void 0||n.removeChild(r))},wd=e=>e&&e.hasAttribute("data-mce-caret")?(Rl(e),e.removeAttribute("data-mce-caret"),e.removeAttribute("data-mce-bogus"),e.removeAttribute("style"),e.removeAttribute("data-mce-style"),e.removeAttribute("_moz_abspos"),e):null,bp=e=>No(e.startContainer),og=Ys,sm=Ls,Wa=Vr,cu=Bt,vs=oi(["script","style","textarea"]),cr=oi(["img","input","textarea","hr","iframe","video","audio","object","embed"]),Gc=oi(["table"]),pa=ys,bi=e=>pa(e)?!1:cu(e)?!vs(e.parentNode):cr(e)||Wa(e)||Gc(e)||Bu(e),sg=e=>dn(e)&&e.getAttribute("unselectable")==="true",Bu=e=>!sg(e)&&sm(e),fl=(e,n)=>{for(let o=e.parentNode;o&&o!==n;o=o.parentNode){if(Bu(o))return!1;if(og(o))return!0}return!0},rm=e=>Bu(e)?!he(Cs(e.getElementsByTagName("*")),(n,o)=>n||og(o),!1):!1,Av=e=>cr(e)||rm(e),Bi=(e,n)=>bi(e)&&fl(e,n),y_=/^[ \t\r\n]*$/,Pi=e=>y_.test(e),Pu=e=>" \f \v".indexOf(e)!==-1,ml=e=>e===`
+import{g as WZ,b as ZZ,R as tj,d as WW}from"./index-c6e017e7.js";var ZW={exports:{}};(function(Ko){(function(){var ko=function(e){if(e===null)return"null";if(e===void 0)return"undefined";var n=typeof e;return n==="object"&&(Array.prototype.isPrototypeOf(e)||e.constructor&&e.constructor.name==="Array")?"array":n==="object"&&(String.prototype.isPrototypeOf(e)||e.constructor&&e.constructor.name==="String")?"string":n},yo=function(e){return["undefined","boolean","number","string","function","xml","null"].indexOf(e)!==-1},Pn=function(e,n){var o=Array.prototype.slice.call(e);return o.sort(n)},ro=function(e,n){return ao(function(o,r){return e.eq(n(o),n(r))})},ao=function(e){return{eq:e}},lo=ao(function(e,n){return e===n}),Kt=lo,cn=function(e){return ao(function(n,o){if(n.length!==o.length)return!1;for(var r=n.length,c=0;c{var r;return o(e,n.prototype)?!0:((r=e.constructor)===null||r===void 0?void 0:r.name)===n.name},un=e=>{const n=typeof e;return e===null?"null":n==="object"&&Array.isArray(e)?"array":n==="object"&&Tt(e,String,(o,r)=>r.isPrototypeOf(o))?"string":n},En=e=>n=>un(n)===e,Pe=e=>n=>typeof n===e,Ut=e=>n=>e===n,ut=(e,n)=>dt(e)&&Tt(e,n,(o,r)=>ln(o)===r),q=En("string"),dt=En("object"),$t=e=>ut(e,Object),kt=En("array"),U=Ut(null),xt=Pe("boolean"),In=Ut(void 0),zt=e=>e==null,Ke=e=>!zt(e),ce=Pe("function"),ze=Pe("number"),Ze=(e,n)=>{if(kt(e)){for(let o=0,r=e.length;o{},E=(e,n)=>(...o)=>e(n.apply(null,o)),Mn=(e,n)=>o=>e(n(o)),nt=e=>()=>e,mo=e=>e,Qt=(e,n)=>e===n;function Ye(e,...n){return(...o)=>{const r=n.concat(o);return e.apply(null,r)}}const go=e=>n=>!e(n),So=e=>()=>{throw new Error(e)},At=e=>e(),fn=e=>{e()},Te=nt(!1),lt=nt(!0);class I{constructor(n,o){this.tag=n,this.value=o}static some(n){return new I(!0,n)}static none(){return I.singletonNone}fold(n,o){return this.tag?o(this.value):n()}isSome(){return this.tag}isNone(){return!this.tag}map(n){return this.tag?I.some(n(this.value)):I.none()}bind(n){return this.tag?n(this.value):I.none()}exists(n){return this.tag&&n(this.value)}forall(n){return!this.tag||n(this.value)}filter(n){return!this.tag||n(this.value)?this:I.none()}getOr(n){return this.tag?this.value:n}or(n){return this.tag?this:n}getOrThunk(n){return this.tag?this.value:n()}orThunk(n){return this.tag?this:n()}getOrDie(n){if(this.tag)return this.value;throw new Error(n??"Called getOrDie on None")}static from(n){return Ke(n)?I.some(n):I.none()}getOrNull(){return this.tag?this.value:null}getOrUndefined(){return this.value}each(n){this.tag&&n(this.value)}toArray(){return this.tag?[this.value]:[]}toString(){return this.tag?`some(${this.value})`:"none()"}}I.singletonNone=new I(!1);const Io=Array.prototype.slice,tt=Array.prototype.indexOf,mt=Array.prototype.push,yt=(e,n)=>tt.call(e,n),Ue=(e,n)=>{const o=yt(e,n);return o===-1?I.none():I.some(o)},ne=(e,n)=>yt(e,n)>-1,Me=(e,n)=>{for(let o=0,r=e.length;o{const o=e.length,r=new Array(o);for(let c=0;c{for(let o=0,r=e.length;o{for(let o=e.length-1;o>=0;o--){const r=e[o];n(r,o)}},_e=(e,n)=>{const o=[],r=[];for(let c=0,u=e.length;c{const o=[];for(let r=0,c=e.length;r(pe(e,(r,c)=>{o=n(o,r,c)}),o),he=(e,n,o)=>(Y(e,(r,c)=>{o=n(o,r,c)}),o),bt=(e,n,o)=>{for(let r=0,c=e.length;rbt(e,n,Te),Vn=(e,n)=>{for(let o=0,r=e.length;o{const n=[];for(let o=0,r=e.length;ouo(Ae(e,n)),wn=(e,n)=>{for(let o=0,r=e.length;o{const n=Io.call(e,0);return n.reverse(),n},Ro=(e,n)=>Be(e,o=>!ne(n,o)),no=(e,n)=>{const o={};for(let r=0,c=e.length;r{const o=Io.call(e,0);return o.sort(n),o},Jn=(e,n)=>n>=0&&nJn(e,0),Lo=e=>Jn(e,e.length-1),Cs=ce(Array.from)?Array.from:e=>Io.call(e),js=(e,n)=>{for(let o=0;o{const o=[],r=ce(n)?c=>Me(o,u=>n(u,c)):c=>ne(o,c);for(let c=0,u=e.length;c{const o=Es(e);for(let r=0,c=o.length;rJr(e,(o,r)=>({k:r,v:n(o,r)})),Jr=(e,n)=>{const o={};return Nt(e,(r,c)=>{const u=n(r,c);o[u.k]=u.v}),o},sr=e=>(n,o)=>{e[o]=n},Va=(e,n,o,r)=>{Nt(e,(c,u)=>{(n(c,u)?o:r)(c,u)})},fa=(e,n)=>{const o={},r={};return Va(e,n,sr(o),sr(r)),{t:o,f:r}},ks=(e,n)=>{const o={};return Va(e,n,sr(o),ft),o},_a=(e,n)=>{const o=[];return Nt(e,(r,c)=>{o.push(n(r,c))}),o},Rr=e=>_a(e,mo),ns=(e,n)=>Un(e,n)?I.from(e[n]):I.none(),Un=(e,n)=>ur.call(e,n),Cr=(e,n)=>Un(e,n)&&e[n]!==void 0&&e[n]!==null,Ee=(e,n,o=wo)=>Tn(o).eq(e,n),We=e=>{const n={};return Y(e,o=>{n[o]={}}),Es(n)},Lt=e=>e.length!==void 0,gn=Array.isArray,ho=e=>{if(gn(e))return e;{const n=[];for(let o=0,r=e.length;o{if(!e)return!1;if(o=o||e,Lt(e)){for(let r=0,c=e.length;r{const o=[];return Ho(e,(r,c)=>{o.push(n(r,c,e))}),o},le=(e,n)=>{const o=[];return Ho(e,(r,c)=>{(!n||n(r,c,e))&&o.push(r)}),o},re=(e,n)=>{if(e){for(let o=0,r=e.length;o{let c=In(o)?e[0]:o;for(let u=0;u{for(let r=0,c=e.length;re[e.length-1],Hn=e=>{let n=!1,o;return(...r)=>(n||(n=!0,o=e.apply(null,r)),o)},Bo=(e,n,o,r)=>{const c=e.isiOS()&&/ipad/i.test(o)===!0,u=e.isiOS()&&!c,m=e.isiOS()||e.isAndroid(),b=m||r("(pointer:coarse)"),v=c||!u&&m&&r("(min-device-width:768px)"),x=u||m&&!v,M=n.isSafari()&&e.isiOS()&&/safari/i.test(o)===!1,D=!x&&!v&&!M;return{isiPad:nt(c),isiPhone:nt(u),isTablet:nt(v),isPhone:nt(x),isTouch:nt(b),isAndroid:e.isAndroid,isiOS:e.isiOS,isWebView:nt(M),isDesktop:nt(D)}},ws=(e,n)=>{for(let o=0;o{const o=ws(e,n);if(!o)return{major:0,minor:0};const r=c=>Number(n.replace(o,"$"+c));return ps(r(1),r(2))},Uo=(e,n)=>{const o=String(n).toLowerCase();return e.length===0?Ce():To(e,o)},Ce=()=>ps(0,0),ps=(e,n)=>({major:e,minor:n}),ie={nu:ps,detect:Uo,unknown:Ce},de=(e,n)=>js(n.brands,o=>{const r=o.brand.toLowerCase();return It(e,c=>{var u;return r===((u=c.brand)===null||u===void 0?void 0:u.toLowerCase())}).map(c=>({current:c.name,version:ie.nu(parseInt(o.version,10),0)}))}),_t=(e,n)=>{const o=String(n).toLowerCase();return It(e,r=>r.search(o))},Ct=(e,n)=>_t(e,n).map(o=>{const r=ie.detect(o.versionRegexes,n);return{current:o.name,version:r}}),Xt=(e,n)=>_t(e,n).map(o=>{const r=ie.detect(o.versionRegexes,n);return{current:o.name,version:r}}),vn=(e,n)=>e.substring(n),hn=(e,n,o)=>n===""||e.length>=n.length&&e.substr(o,o+n.length)===n,_n=(e,n)=>eo(e,n)?vn(e,n.length):e,Qn=(e,n,o=0,r)=>{const c=e.indexOf(n,o);return c!==-1?In(r)?!0:c+n.length<=r:!1},eo=(e,n)=>hn(e,n,0),As=(e,n)=>hn(e,n,e.length-n.length),Gs=e=>n=>n.replace(e,""),Ma=Gs(/^\s+|\s+$/g),Ua=Gs(/^\s+/g),ic=Gs(/\s+$/g),io=e=>e.length>0,hs=e=>!io(e),Os=(e,n)=>n<=0?"":new Array(n+1).join(e),Wr=(e,n=10)=>{const o=parseInt(e,n);return isNaN(o)?I.none():I.some(o)},Qr=/.*?version\/\ ?([0-9]+)\.([0-9]+).*/,Fr=e=>n=>Qn(n,e),Qs=[{name:"Edge",versionRegexes:[/.*?edge\/ ?([0-9]+)\.([0-9]+)$/],search:e=>Qn(e,"edge/")&&Qn(e,"chrome")&&Qn(e,"safari")&&Qn(e,"applewebkit")},{name:"Chromium",brand:"Chromium",versionRegexes:[/.*?chrome\/([0-9]+)\.([0-9]+).*/,Qr],search:e=>Qn(e,"chrome")&&!Qn(e,"chromeframe")},{name:"IE",versionRegexes:[/.*?msie\ ?([0-9]+)\.([0-9]+).*/,/.*?rv:([0-9]+)\.([0-9]+).*/],search:e=>Qn(e,"msie")||Qn(e,"trident")},{name:"Opera",versionRegexes:[Qr,/.*?opera\/([0-9]+)\.([0-9]+).*/],search:Fr("opera")},{name:"Firefox",versionRegexes:[/.*?firefox\/\ ?([0-9]+)\.([0-9]+).*/],search:Fr("firefox")},{name:"Safari",versionRegexes:[Qr,/.*?cpu os ([0-9]+)_([0-9]+).*/],search:e=>(Qn(e,"safari")||Qn(e,"mobile/"))&&Qn(e,"applewebkit")}],Ql=[{name:"Windows",search:Fr("win"),versionRegexes:[/.*?windows\ nt\ ?([0-9]+)\.([0-9]+).*/]},{name:"iOS",search:e=>Qn(e,"iphone")||Qn(e,"ipad"),versionRegexes:[/.*?version\/\ ?([0-9]+)\.([0-9]+).*/,/.*cpu os ([0-9]+)_([0-9]+).*/,/.*cpu iphone os ([0-9]+)_([0-9]+).*/]},{name:"Android",search:Fr("android"),versionRegexes:[/.*?android\ ?([0-9]+)\.([0-9]+).*/]},{name:"macOS",search:Fr("mac os x"),versionRegexes:[/.*?mac\ os\ x\ ?([0-9]+)_([0-9]+).*/]},{name:"Linux",search:Fr("linux"),versionRegexes:[]},{name:"Solaris",search:Fr("sunos"),versionRegexes:[]},{name:"FreeBSD",search:Fr("freebsd"),versionRegexes:[]},{name:"ChromeOS",search:Fr("cros"),versionRegexes:[/.*?chrome\/([0-9]+)\.([0-9]+).*/]}],ji={browsers:nt(Qs),oses:nt(Ql)},zs="Edge",Ca="Chromium",Na="IE",Sr="Opera",Wi="Firefox",lc="Safari",Sa=()=>wc({current:void 0,version:ie.unknown()}),wc=e=>{const n=e.current,o=e.version,r=c=>()=>n===c;return{current:n,version:o,isEdge:r(zs),isChromium:r(Ca),isIE:r(Na),isOpera:r(Sr),isFirefox:r(Wi),isSafari:r(lc)}},al={unknown:Sa,nu:wc,edge:nt(zs),chromium:nt(Ca),ie:nt(Na),opera:nt(Sr),firefox:nt(Wi),safari:nt(lc)},li="Windows",cl="iOS",Ba="Android",Nc="Linux",Zi="macOS",jc="Solaris",qi="FreeBSD",W="ChromeOS",be=()=>Se({current:void 0,version:ie.unknown()}),Se=e=>{const n=e.current,o=e.version,r=c=>()=>n===c;return{current:n,version:o,isWindows:r(li),isiOS:r(cl),isAndroid:r(Ba),isMacOS:r(Zi),isLinux:r(Nc),isSolaris:r(jc),isFreeBSD:r(qi),isChromeOS:r(W)}},ot={unknown:be,nu:Se,windows:nt(li),ios:nt(cl),android:nt(Ba),linux:nt(Nc),macos:nt(Zi),solaris:nt(jc),freebsd:nt(qi),chromeos:nt(W)},Wn={detect:(e,n,o)=>{const r=ji.browsers(),c=ji.oses(),u=n.bind(v=>de(r,v)).orThunk(()=>Ct(r,e)).fold(al.unknown,al.nu),m=Xt(c,e).fold(ot.unknown,ot.nu),b=Bo(m,u,e,o);return{browser:u,os:m,deviceType:b}}},Bs=e=>window.matchMedia(e).matches;let Ir=Hn(()=>Wn.detect(navigator.userAgent,I.from(navigator.userAgentData),Bs));const os=()=>Ir(),Lr=navigator.userAgent,bs=os(),yr=bs.browser,Bc=bs.os,_c=bs.deviceType,_o=Lr.indexOf("Windows Phone")!==-1,_s={transparentSrc:"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",documentMode:yr.isIE()?document.documentMode||7:10,cacheSuffix:null,container:null,canHaveCSP:!yr.isIE(),windowsPhone:_o,browser:{current:yr.current,version:yr.version,isChromium:yr.isChromium,isEdge:yr.isEdge,isFirefox:yr.isFirefox,isIE:yr.isIE,isOpera:yr.isOpera,isSafari:yr.isSafari},os:{current:Bc.current,version:Bc.version,isAndroid:Bc.isAndroid,isChromeOS:Bc.isChromeOS,isFreeBSD:Bc.isFreeBSD,isiOS:Bc.isiOS,isLinux:Bc.isLinux,isMacOS:Bc.isMacOS,isSolaris:Bc.isSolaris,isWindows:Bc.isWindows},deviceType:{isDesktop:_c.isDesktop,isiPad:_c.isiPad,isiPhone:_c.isiPhone,isPhone:_c.isPhone,isTablet:_c.isTablet,isTouch:_c.isTouch,isWebView:_c.isWebView}},ra=/^\s*|\s*$/g,B=e=>zt(e)?"":(""+e).replace(ra,""),K=(e,n)=>n?n==="array"&&gn(e)?!0:typeof e===n:e!==void 0,se=(e,n,o={})=>{const r=q(e)?e.split(n||","):e||[];let c=r.length;for(;c--;)o[r[c]]={};return o},Ge=Un,tn=(e,...n)=>{for(let o=0;on.call(r,c,u,o)===!1?!1:(Mo(c,n,o,r),!0)))},wt={trim:B,isArray:gn,is:K,toArray:ho,makeMap:se,each:Ho,map:qs,grep:le,inArray:re,hasOwn:Ge,extend:tn,walk:Mo,resolve:(e,n=window)=>{const o=e.split(".");for(let r=0,c=o.length;rkt(e)?e:e===""?[]:qs(e.split(n||","),B),_addCacheSuffix:e=>{const n=_s.cacheSuffix;return n&&(e+=(e.indexOf("?")===-1?"?":"&")+n),e}},qr=(e,n,o=Qt)=>e.exists(r=>o(r,n)),xr=e=>{const n=[],o=r=>{n.push(r)};for(let r=0;re.isSome()&&n.isSome()?I.some(o(e.getOrDie(),n.getOrDie())):I.none(),sd=(e,n,o,r)=>e.isSome()&&n.isSome()&&o.isSome()?I.some(r(e.getOrDie(),n.getOrDie(),o.getOrDie())):I.none(),Xo=(e,n)=>e?I.some(n):I.none(),X=typeof window<"u"?window:Function("return this;")(),ae=(e,n)=>{let o=n??X;for(let r=0;r{const o=e.split(".");return ae(o,n)},at=(e,n)=>$e(e,n),Sn=(e,n)=>{const o=at(e,n);if(o==null)throw new Error(e+" not available on this browser");return o},ds=Object.getPrototypeOf,dr=e=>Sn("HTMLElement",e),es=e=>{const n=$e("ownerDocument.defaultView",e);return dt(e)&&(dr(n).prototype.isPrototypeOf(e)||/^HTML\w*Element$/.test(ds(e).constructor.name))},rr=8,xa=9,Ks=11,Cc=1,Wc=3,Ws=e=>e.dom.nodeName.toLowerCase(),Ta=e=>e.dom.nodeType,Tr=e=>n=>Ta(n)===e,Ti=e=>Ta(e)===rr||Ws(e)==="#comment",Sl=e=>er(e)&&es(e.dom),er=Tr(Cc),Sc=Tr(Wc),Ei=Tr(xa),rd=Tr(Ks),il=e=>n=>er(n)&&Ws(n)===e,Qc=(e,n,o)=>{if(q(o)||xt(o)||ze(o))e.setAttribute(n,o+"");else throw console.error("Invalid call to Attribute.set. Key ",n,":: Value ",o,":: Element ",e),new Error("Attribute value was not simple")},ea=(e,n,o)=>{Qc(e.dom,n,o)},uc=(e,n)=>{const o=e.dom;Nt(n,(r,c)=>{Qc(o,c,r)})},Pc=(e,n)=>{const o=e.dom.getAttribute(n);return o===null?void 0:o},ei=(e,n)=>I.from(Pc(e,n)),Qa=(e,n)=>{const o=e.dom;return o&&o.hasAttribute?o.hasAttribute(n):!1},Hr=(e,n)=>{e.dom.removeAttribute(n)},Zc=e=>{const n=e.dom.attributes;return n==null||n.length===0},nf=e=>he(e.dom.attributes,(n,o)=>(n[o.name]=o.value,n),{}),eu=(e,n)=>{const o=Pc(e,n);return o===void 0||o===""?[]:o.split(" ")},tu=(e,n,o)=>{const c=eu(e,n).concat([o]);return ea(e,n,c.join(" ")),!0},Gf=(e,n,o)=>{const r=Be(eu(e,n),c=>c!==o);return r.length>0?ea(e,n,r.join(" ")):Hr(e,n),!1},ui=e=>e.dom.classList!==void 0,nu=e=>eu(e,"class"),ad=(e,n)=>tu(e,"class",n),Gr=(e,n)=>Gf(e,"class",n),of=(e,n)=>ne(nu(e),n)?Gr(e,n):ad(e,n),Au=(e,n)=>{ui(e)?e.dom.classList.add(n):ad(e,n)},Ou=e=>{(ui(e)?e.dom.classList:nu(e)).length===0&&Hr(e,"class")},cd=(e,n)=>{ui(e)?e.dom.classList.remove(n):Gr(e,n),Ou(e)},id=(e,n)=>{const o=ui(e)?e.dom.classList.toggle(n):of(e,n);return Ou(e),o},ld=(e,n)=>ui(e)&&e.dom.classList.contains(n),zu=(e,n)=>{const r=(n||document).createElement("div");if(r.innerHTML=e,!r.hasChildNodes()||r.childNodes.length>1){const c="HTML does not have a single root node";throw console.error(c,e),new Error(c)}return ou(r.childNodes[0])},Kf=(e,n)=>{const r=(n||document).createElement(e);return ou(r)},Yf=(e,n)=>{const r=(n||document).createTextNode(e);return ou(r)},ou=e=>{if(e==null)throw new Error("Node cannot be null or undefined");return{dom:e}},ue={fromHtml:zu,fromTag:Kf,fromText:Yf,fromDom:ou,fromPoint:(e,n,o)=>I.from(e.dom.elementFromPoint(n,o)).map(ou)},ud=(e,n)=>{const o=[],r=u=>(o.push(u),n(u));let c=n(e);do c=c.bind(r);while(c.isSome());return o},$c=(e,n)=>{const o=e.dom;if(o.nodeType!==Cc)return!1;{const r=o;if(r.matches!==void 0)return r.matches(n);if(r.msMatchesSelector!==void 0)return r.msMatchesSelector(n);if(r.webkitMatchesSelector!==void 0)return r.webkitMatchesSelector(n);if(r.mozMatchesSelector!==void 0)return r.mozMatchesSelector(n);throw new Error("Browser lacks native selectors")}},Wm=e=>e.nodeType!==Cc&&e.nodeType!==xa&&e.nodeType!==Ks||e.childElementCount===0,vh=(e,n)=>{const o=n===void 0?document:n.dom;return Wm(o)?[]:Ae(o.querySelectorAll(e),ue.fromDom)},kh=(e,n)=>{const o=n===void 0?document:n.dom;return Wm(o)?I.none():I.from(o.querySelector(e)).map(ue.fromDom)},Ps=(e,n)=>e.dom===n.dom,Ai=(e,n)=>{const o=e.dom,r=n.dom;return o===r?!1:o.contains(r)},xc=e=>ue.fromDom(e.dom.ownerDocument),ti=e=>Ei(e)?e:xc(e),np=e=>ue.fromDom(ti(e).dom.documentElement),xl=e=>ue.fromDom(ti(e).dom.defaultView),di=e=>I.from(e.dom.parentNode).map(ue.fromDom),sf=e=>I.from(e.dom.parentElement).map(ue.fromDom),Zm=(e,n)=>{const o=ce(n)?n:Te;let r=e.dom;const c=[];for(;r.parentNode!==null&&r.parentNode!==void 0;){const u=r.parentNode,m=ue.fromDom(u);if(c.push(m),o(m)===!0)break;r=u}return c},op=e=>{const n=o=>Be(o,r=>!Ps(e,r));return di(e).map(ja).map(n).getOr([])},qc=e=>I.from(e.dom.previousSibling).map(ue.fromDom),dd=e=>I.from(e.dom.nextSibling).map(ue.fromDom),sp=e=>Ln(ud(e,qc)),ni=e=>ud(e,dd),ja=e=>Ae(e.dom.childNodes,ue.fromDom),fd=(e,n)=>{const o=e.dom.childNodes;return I.from(o[n]).map(ue.fromDom)},md=e=>fd(e,0),Oi=e=>fd(e,e.dom.childNodes.length-1),Fc=e=>e.dom.childNodes.length,Xf=e=>{const n=e.dom.head;if(n==null)throw new Error("Head is not available yet");return ue.fromDom(n)},Jf=e=>rd(e)&&Ke(e.dom.host),Qf=ce(Element.prototype.attachShadow)&&ce(Node.prototype.getRootNode),em=nt(Qf),Gi=Qf?e=>ue.fromDom(e.dom.getRootNode()):ti,rf=e=>Jf(e)?e:Xf(ti(e)),rp=e=>Jf(e)?e:ue.fromDom(ti(e).dom.body),kv=e=>{const n=Gi(e);return Jf(n)?I.some(n):I.none()},ap=e=>ue.fromDom(e.dom.host),af=e=>{if(em()&&Ke(e.target)){const n=ue.fromDom(e.target);if(er(n)&&qm(n)&&e.composed&&e.composedPath){const o=e.composedPath();if(o)return Yn(o)}}return I.from(e.target)},qm=e=>Ke(e.dom.shadowRoot),Tl=e=>{const n=Sc(e)?e.dom.parentNode:e.dom;if(n==null||n.ownerDocument===null)return!1;const o=n.ownerDocument;return kv(ue.fromDom(n)).fold(()=>o.body.contains(n),Mn(Tl,ap))};var Gm=(e,n,o,r,c)=>e(o,r)?I.some(o):ce(c)&&c(o)?I.none():n(o,r,c);const vr=(e,n,o)=>{let r=e.dom;const c=ce(o)?o:Te;for(;r.parentNode;){r=r.parentNode;const u=ue.fromDom(r);if(n(u))return I.some(u);if(c(u))break}return I.none()},T=(e,n,o)=>Gm((c,u)=>u(c),vr,e,n,o),R=(e,n)=>{const o=e.dom;return o.parentNode?V(ue.fromDom(o.parentNode),r=>!Ps(e,r)&&n(r)):I.none()},V=(e,n)=>{const o=c=>n(ue.fromDom(c));return It(e.dom.childNodes,o).map(ue.fromDom)},ye=(e,n)=>{const o=r=>{for(let c=0;cvr(e,r=>$c(r,n),o),qt=(e,n)=>kh(n,e),oo=(e,n,o)=>Gm((c,u)=>$c(c,u),ve,e,n,o),xo=e=>oo(e,"[contenteditable]"),Jo=(e,n=!1)=>Tl(e)?e.dom.isContentEditable:xo(e).fold(nt(n),o=>jt(o)==="true"),jt=e=>e.dom.contentEditable,Vs=e=>e.style!==void 0&&ce(e.style.getPropertyValue),Pa=(e,n,o)=>{if(!q(o))throw console.error("Invalid call to CSS.set. Property ",n,":: Value ",o,":: Element ",e),new Error("CSS value must be a string: "+o);Vs(e)&&e.style.setProperty(n,o)},fi=(e,n)=>{Vs(e)&&e.style.removeProperty(n)},cf=(e,n,o)=>{const r=e.dom;Pa(r,n,o)},Km=(e,n)=>{const o=e.dom;Nt(n,(r,c)=>{Pa(o,c,r)})},ll=(e,n)=>{const o=e.dom,c=window.getComputedStyle(o).getPropertyValue(n);return c===""&&!Tl(e)?mi(o,n):c},mi=(e,n)=>Vs(e)?e.style.getPropertyValue(n):"",Ic=(e,n)=>{const o=e.dom,r=mi(o,n);return I.from(r).filter(c=>c.length>0)},zi=e=>{const n={},o=e.dom;if(Vs(o))for(let r=0;r{const o=e.dom;fi(o,n),qr(ei(e,"style").map(Ma),"")&&Hr(e,"style")},iy=e=>e.dom.offsetWidth,Is=(e,n)=>{di(e).each(r=>{r.dom.insertBefore(n.dom,e.dom)})},Du=(e,n)=>{dd(e).fold(()=>{di(e).each(c=>{Kr(c,n)})},r=>{Is(r,n)})},gd=(e,n)=>{md(e).fold(()=>{Kr(e,n)},r=>{e.dom.insertBefore(n.dom,r.dom)})},Kr=(e,n)=>{e.dom.appendChild(n.dom)},ly=(e,n)=>{Is(e,n),Kr(n,e)},wv=(e,n)=>{Y(n,(o,r)=>{const c=r===0?e:n[r-1];Du(c,o)})},Ru=(e,n)=>{Y(n,o=>{Kr(e,o)})},ar=e=>{e.dom.textContent="",Y(ja(e),n=>{fr(n)})},fr=e=>{const n=e.dom;n.parentNode!==null&&n.parentNode.removeChild(n)},Ea=e=>{const n=ja(e);n.length>0&&wv(e,n),fr(e)},pd=(e,n)=>{const r=(n||document).createElement("div");return r.innerHTML=e,ja(ue.fromDom(r))},hd=e=>Ae(e,ue.fromDom),lf=e=>e.dom.innerHTML,bd=(e,n)=>{const r=xc(e).dom,c=ue.fromDom(r.createDocumentFragment()),u=pd(n,r);Ru(c,u),ar(e),Kr(e,c)},ss=e=>{const n=ue.fromTag("div"),o=ue.fromDom(e.dom.cloneNode(!0));return Kr(n,o),lf(n)},cp=(e,n,o,r,c,u,m)=>({target:e,x:n,y:o,stop:r,prevent:c,kill:u,raw:m}),wh=e=>{const n=ue.fromDom(af(e).getOr(e.target)),o=()=>e.stopPropagation(),r=()=>e.preventDefault(),c=E(r,o);return cp(n,e.clientX,e.clientY,o,r,c,e)},_v=(e,n)=>o=>{e(o)&&n(wh(o))},Cv=(e,n,o,r,c)=>{const u=_v(o,r);return e.dom.addEventListener(n,u,c),{unbind:Ye(uy,e,n,u,c)}},Ym=(e,n,o,r)=>Cv(e,n,o,r,!1),uy=(e,n,o,r)=>{e.dom.removeEventListener(n,o,r)},Xm=(e,n)=>({left:e,top:n,translate:(r,c)=>Xm(e+r,n+c)}),ul=Xm,dy=e=>{const n=e.getBoundingClientRect();return ul(n.left,n.top)},ip=(e,n)=>e!==void 0?e:n!==void 0?n:0,fy=e=>{const n=e.dom.ownerDocument,o=n.body,r=n.defaultView,c=n.documentElement;if(o===e.dom)return ul(o.offsetLeft,o.offsetTop);const u=ip(r==null?void 0:r.pageYOffset,c.scrollTop),m=ip(r==null?void 0:r.pageXOffset,c.scrollLeft),b=ip(c.clientTop,o.clientTop),v=ip(c.clientLeft,o.clientLeft);return El(e).translate(m-v,u-b)},El=e=>{const n=e.dom,r=n.ownerDocument.body;return r===n?ul(r.offsetLeft,r.offsetTop):Tl(e)?dy(n):ul(0,0)},_h=e=>{const n=e!==void 0?e.dom:document,o=n.body.scrollLeft||n.documentElement.scrollLeft,r=n.body.scrollTop||n.documentElement.scrollTop;return ul(o,r)},Al=(e,n,o)=>{const c=(o!==void 0?o.dom:document).defaultView;c&&c.scrollTo(e,n)},uf=(e,n)=>{os().browser.isSafari()&&ce(e.dom.scrollIntoViewIfNeeded)?e.dom.scrollIntoViewIfNeeded(!1):e.dom.scrollIntoView(n)},Sv=e=>{const n=e===void 0?window:e;return os().browser.isFirefox()?I.none():I.from(n.visualViewport)},lp=(e,n,o,r)=>({x:e,y:n,width:o,height:r,right:e+o,bottom:n+r}),up=e=>{const n=e===void 0?window:e,o=n.document,r=_h(ue.fromDom(o));return Sv(n).fold(()=>{const c=n.document.documentElement,u=c.clientWidth,m=c.clientHeight;return lp(r.left,r.top,u,m)},c=>lp(Math.max(c.pageLeft,r.left),Math.max(c.pageTop,r.top),c.width,c.height))},my=(e,n)=>Be(ja(e),n),dp=(e,n)=>{let o=[];return Y(ja(e),r=>{n(r)&&(o=o.concat([r])),o=o.concat(dp(r,n))}),o},Tc=(e,n)=>vh(n,e),fp=(e,n,o)=>ve(e,n,o).isSome();class $a{constructor(n,o){this.node=n,this.rootNode=o,this.current=this.current.bind(this),this.next=this.next.bind(this),this.prev=this.prev.bind(this),this.prev2=this.prev2.bind(this)}current(){return this.node}next(n){return this.node=this.findSibling(this.node,"firstChild","nextSibling",n),this.node}prev(n){return this.node=this.findSibling(this.node,"lastChild","previousSibling",n),this.node}prev2(n){return this.node=this.findPreviousNode(this.node,n),this.node}findSibling(n,o,r,c){if(n){if(!c&&n[o])return n[o];if(n!==this.rootNode){let u=n[r];if(u)return u;for(let m=n.parentNode;m&&m!==this.rootNode;m=m.parentNode)if(u=m[r],u)return u}}}findPreviousNode(n,o){if(n){const r=n.previousSibling;if(this.rootNode&&r===this.rootNode)return;if(r){if(!o){for(let u=r.lastChild;u;u=u.lastChild)if(!u.lastChild)return u}return r}const c=n.parentNode;if(c&&c!==this.rootNode)return c}}}const Ec=e=>n=>!!n&&n.nodeType===e,qn=e=>!!e&&!Object.getPrototypeOf(e),dn=Ec(1),Jm=e=>{const n=e.toLowerCase();return o=>Ke(o)&&o.nodeName.toLowerCase()===n},oi=e=>{const n=e.map(o=>o.toLowerCase());return o=>{if(o&&o.nodeName){const r=o.nodeName.toLowerCase();return ne(n,r)}return!1}},Qm=(e,n)=>{const o=n.toLowerCase().split(" ");return r=>{if(dn(r)){const c=r.ownerDocument.defaultView;if(c)for(let u=0;un=>dn(n)&&n.hasAttribute(e),Di=(e,n)=>o=>dn(o)&&o.getAttribute(e)===n,gi=e=>dn(e)&&e.hasAttribute("data-mce-bogus"),gp=e=>dn(e)&&e.getAttribute("data-mce-bogus")==="all",Yr=e=>dn(e)&&e.tagName==="TABLE",tm=e=>n=>!!(dn(n)&&(n.contentEditable===e||n.getAttribute("data-mce-contenteditable")===e)),eg=oi(["textarea","input"]),Bt=Ec(3),xv=Ec(4),gy=Ec(7),Ri=Ec(8),nm=Ec(9),yd=Ec(11),Vr=Jm("br"),py=Jm("img"),Ys=tm("true"),Ls=tm("false"),Ac=oi(["td","th"]),om=oi(["td","th","caption"]),ma=oi(["video","audio","object","embed"]),vd=Jm("li"),ga="\uFEFF",tr=" ",tg=e=>e===ga,vt=e=>e.replace(/\uFEFF/g,""),pp=((e,n)=>{const o=u=>{if(!e(u))throw new Error("Can only get "+n+" value of a "+n+" node");return r(u).getOr("")},r=u=>e(u)?I.from(u.dom.nodeValue):I.none();return{get:o,getOption:r,set:(u,m)=>{if(!e(u))throw new Error("Can only set raw "+n+" value of a "+n+" node");u.dom.nodeValue=m}}})(Sc,"text"),ta=e=>pp.get(e),Ol=e=>pp.getOption(e),Ch=(e,n)=>pp.set(e,n),dl=["article","aside","details","div","dt","figcaption","footer","form","fieldset","header","hgroup","html","main","nav","section","summary","body","p","dl","multicol","dd","figure","address","center","blockquote","h1","h2","h3","h4","h5","h6","listing","xmp","pre","plaintext","menu","dir","ul","ol","li","hr","table","tbody","thead","tfoot","th","tr","td","caption"],Tv=["td","th"],Mu=["thead","tbody","tfoot"],hy=["h1","h2","h3","h4","h5","h6","p","div","address","pre","form","blockquote","center","dir","fieldset","header","footer","article","section","hgroup","aside","nav","figure"],pi=["h1","h2","h3","h4","h5","h6"],$s=["li","dd","dt"],su=["ul","ol","dl"],ng=["pre","script","textarea","style"],Lc=["pre"].concat(pi),zl=e=>{let n;return o=>(n=n||no(e,lt),Un(n,Ws(o)))},Oc=zl(dl),by=e=>Ws(e)==="table",Hc=e=>er(e)&&!Oc(e),Nu=e=>er(e)&&Ws(e)==="br",Fe=zl(hy),si=zl(su),ru=zl($s),hi=zl(Mu),Mi=zl(Tv),tc=zl(ng),Fa=zl(Lc),Ev=e=>Fa(e)||Hc(e),hp=e=>{const n=[];let o=e.dom;for(;o;)n.push(ue.fromDom(o)),o=o.lastChild;return n},w=e=>{const n=Tc(e,"br"),o=Be(hp(e).slice(-1),Nu);n.length===o.length&&Y(o,fr)},_=()=>{const e=ue.fromTag("br");return ea(e,"data-mce-bogus","1"),e},F=e=>{ar(e),Kr(e,_())},Z=e=>{Oi(e).each(n=>{qc(n).each(o=>{Oc(e)&&Nu(n)&&Oc(o)&&fr(n)})})},fe=ga,it=tg,Mt=vt,kn=dn,Oo=Bt,No=e=>(Oo(e)&&(e=e.parentNode),kn(e)&&e.hasAttribute("data-mce-caret")),Xs=e=>Oo(e)&&it(e.data),ys=e=>No(e)||Xs(e),Er=e=>e.firstChild!==e.lastChild||!Vr(e.firstChild),Ni=(e,n)=>{var o;const c=((o=e.ownerDocument)!==null&&o!==void 0?o:document).createTextNode(fe),u=e.parentNode;if(n){const m=e.previousSibling;if(Oo(m)){if(ys(m))return m;if(kd(m))return m.splitText(m.data.length-1)}u==null||u.insertBefore(c,e)}else{const m=e.nextSibling;if(Oo(m)){if(ys(m))return m;if(df(m))return m.splitText(1),m}e.nextSibling?u==null||u.insertBefore(c,e.nextSibling):u==null||u.appendChild(c)}return c},dc=e=>{const n=e.container();return Bt(n)?n.data.charAt(e.offset())===fe||e.isAtStart()&&Xs(n.previousSibling):!1},Dl=e=>{const n=e.container();return Bt(n)?n.data.charAt(e.offset()-1)===fe||e.isAtEnd()&&Xs(n.nextSibling):!1},au=(e,n,o)=>{var r;const u=((r=n.ownerDocument)!==null&&r!==void 0?r:document).createElement(e);u.setAttribute("data-mce-caret",o?"before":"after"),u.setAttribute("data-mce-bogus","all"),u.appendChild(_().dom);const m=n.parentNode;return o?m==null||m.insertBefore(u,n):n.nextSibling?m==null||m.insertBefore(u,n.nextSibling):m==null||m.appendChild(u),u},df=e=>Oo(e)&&e.data[0]===fe,kd=e=>Oo(e)&&e.data[e.data.length-1]===fe,Rl=e=>{var n;const o=e.getElementsByTagName("br"),r=o[o.length-1];gi(r)&&((n=r.parentNode)===null||n===void 0||n.removeChild(r))},wd=e=>e&&e.hasAttribute("data-mce-caret")?(Rl(e),e.removeAttribute("data-mce-caret"),e.removeAttribute("data-mce-bogus"),e.removeAttribute("style"),e.removeAttribute("data-mce-style"),e.removeAttribute("_moz_abspos"),e):null,bp=e=>No(e.startContainer),og=Ys,sm=Ls,Wa=Vr,cu=Bt,vs=oi(["script","style","textarea"]),cr=oi(["img","input","textarea","hr","iframe","video","audio","object","embed"]),Gc=oi(["table"]),pa=ys,bi=e=>pa(e)?!1:cu(e)?!vs(e.parentNode):cr(e)||Wa(e)||Gc(e)||Bu(e),sg=e=>dn(e)&&e.getAttribute("unselectable")==="true",Bu=e=>!sg(e)&&sm(e),fl=(e,n)=>{for(let o=e.parentNode;o&&o!==n;o=o.parentNode){if(Bu(o))return!1;if(og(o))return!0}return!0},rm=e=>Bu(e)?!he(Cs(e.getElementsByTagName("*")),(n,o)=>n||og(o),!1):!1,Av=e=>cr(e)||rm(e),Bi=(e,n)=>bi(e)&&fl(e,n),y_=/^[ \t\r\n]*$/,Pi=e=>y_.test(e),Pu=e=>" \f \v".indexOf(e)!==-1,ml=e=>e===`
`||e==="\r",yy=(e,n)=>n=0?ml(e[n]):!1,rg=(e,n=4,o=!0,r=!0)=>{const c=Os(" ",n),u=e.replace(/\t/g,c);return he(u,(b,v)=>Pu(v)||v===tr?b.pcIsSpace||b.str===""&&o||b.str.length===u.length-1&&r||yy(u,b.str.length+1)?{pcIsSpace:!1,str:b.str+tr}:{pcIsSpace:!0,str:b.str+" "}:{pcIsSpace:ml(v),str:b.str+v},{pcIsSpace:!1,str:""}).str},v_=(e,n)=>{const o=ue.fromDom(n),r=ue.fromDom(e);return fp(r,"pre,code",Ye(Ps,o))},Yx=(e,n)=>Bt(e)&&Pi(e.data)&&!v_(e,n),Aa=e=>dn(e)&&e.nodeName==="A"&&!e.hasAttribute("href")&&(e.hasAttribute("name")||e.hasAttribute("id")),vy=(e,n)=>bi(e)&&!Yx(e,n)||Aa(e)||_d(e),_d=mp("data-mce-bookmark"),Ov=mp("data-mce-bogus"),zv=Di("data-mce-bogus","all"),ag=(e,n)=>{let o=0;if(vy(e,e))return!1;{let r=e.firstChild;if(!r)return!0;const c=new $a(r,e);do{if(n){if(zv(r)){r=c.next(!0);continue}if(Ov(r)){r=c.next();continue}}if(Vr(r)){o++,r=c.next();continue}if(vy(r,e))return!1;r=c.next()}while(r);return o<=1}},ir=(e,n=!0)=>ag(e.dom,n),Cd="data-mce-block",Sh=e=>Be(Es(e),n=>!/[A-Z]/.test(n)),Dv=e=>Sh(e).join(","),yp=(e,n)=>Ke(n.querySelector(e))?(n.setAttribute(Cd,"true"),n.getAttribute("data-mce-selected")==="inline-boundary"&&n.removeAttribute("data-mce-selected"),!0):(n.removeAttribute(Cd),!1),xh=(e,n)=>{const o=Dv(e.getTransparentElements()),r=Dv(e.getBlockElements());return Be(n.querySelectorAll(o),c=>yp(r,c))},Th=(e,n)=>{var o;const r=n?"lastChild":"firstChild";for(let c=e[r];c;c=c[r])if(ir(ue.fromDom(c))){(o=c.parentNode)===null||o===void 0||o.removeChild(c);return}},Xx=(e,n)=>{const o=document.createRange(),r=e.parentNode;if(r){o.setStartBefore(e),o.setEndBefore(n);const c=o.extractContents();Th(c,!0),o.setStartAfter(n),o.setEndAfter(e);const u=o.extractContents();Th(u,!1),ir(ue.fromDom(c))||r.insertBefore(c,e),ir(ue.fromDom(n))||r.insertBefore(n,e),ir(ue.fromDom(u))||r.insertBefore(u,e),r.removeChild(e)}},Rv=(e,n,o)=>{const r=e.getBlockElements(),c=ue.fromDom(n),u=b=>Ws(b)in r,m=b=>Ps(b,c);Y(hd(o),b=>{vr(b,u,m).each(v=>{const x=my(b,M=>u(M)&&!e.isValidChild(Ws(v),Ws(M)));if(x.length>0){const M=sf(v);Y(x,D=>{vr(D,u,m).each(L=>{Xx(L.dom,D.dom)})}),M.each(D=>xh(e,D.dom))}})})},Mv=(e,n,o)=>{Y([...o,...gf(e,n)?[n]:[]],r=>Y(Tc(ue.fromDom(r),r.nodeName.toLowerCase()),c=>{k_(e,c.dom)&&Ea(c)}))},ff=(e,n)=>{const o=xh(e,n);Rv(e,n,o),Mv(e,n,o)},Sd=(e,n)=>{if(ky(e,n)){const o=Dv(e.getBlockElements());yp(o,n)}},mf=(e,n,o)=>{const r=u=>Ps(u,ue.fromDom(n)),c=Zm(ue.fromDom(o),r);Jn(c,c.length-2).filter(er).fold(()=>ff(e,n),u=>ff(e,u.dom))},am=e=>e.hasAttribute(Cd),Eh=(e,n)=>Un(e.getTransparentElements(),n),ky=(e,n)=>dn(n)&&Eh(e,n.nodeName),gf=(e,n)=>ky(e,n)&&am(n),k_=(e,n)=>ky(e,n)&&!am(n),w_=(e,n)=>n.type===1&&Eh(e,n.name)&&q(n.attr(Cd)),Nv=(e,n)=>n.type===1&&Eh(e,n.name)&&In(n.attr(Cd)),__=os().browser,Ah=e=>It(e,er),Ds=e=>__.isFirefox()&&Ws(e)==="table"?Ah(ja(e)).filter(n=>Ws(n)==="caption").bind(n=>Ah(ni(n)).map(o=>{const r=o.dom.offsetTop,c=n.dom.offsetTop,u=n.dom.offsetHeight;return r<=c?-u:0})).getOr(0):0,Zn=(e,n)=>e.children&&ne(e.children,n),pf=(e,n,o)=>{let r=0,c=0;const u=e.ownerDocument;if(o=o||e,n){if(o===e&&n.getBoundingClientRect&&ll(ue.fromDom(e),"position")==="static"){const b=n.getBoundingClientRect();return r=b.left+(u.documentElement.scrollLeft||e.scrollLeft)-u.documentElement.clientLeft,c=b.top+(u.documentElement.scrollTop||e.scrollTop)-u.documentElement.clientTop,{x:r,y:c}}let m=n;for(;m&&m!==o&&m.nodeType&&!Zn(m,o);){const b=m;r+=b.offsetLeft||0,c+=b.offsetTop||0,m=b.offsetParent}for(m=n.parentNode;m&&m!==o&&m.nodeType&&!Zn(m,o);)r-=m.scrollLeft||0,c-=m.scrollTop||0,m=m.parentNode;c+=Ds(ue.fromDom(n))}return{x:r,y:c}},cg=(e,n={})=>{let o=0;const r={},c=ue.fromDom(e),u=ti(c),m=G=>{n.referrerPolicy=G},b=G=>{n.contentCssCors=G},v=G=>{Kr(rf(c),G)},x=G=>{const te=rf(c);qt(te,"#"+G).each(fr)},M=G=>ns(r,G).getOrThunk(()=>({id:"mce-u"+o++,passed:[],failed:[],count:0})),D=G=>new Promise((te,xe)=>{let we;const De=wt._addCacheSuffix(G),He=M(De);r[De]=He,He.count++;const ht=(Qe,pn)=>{Y(Qe,fn),He.status=pn,He.passed=[],He.failed=[],we&&(we.onload=null,we.onerror=null,we=null)},Jt=()=>ht(He.passed,2),Wt=()=>ht(He.failed,3);if(te&&He.passed.push(te),xe&&He.failed.push(xe),He.status===1)return;if(He.status===2){Jt();return}if(He.status===3){Wt();return}He.status=1;const et=ue.fromTag("link",u.dom);uc(et,{rel:"stylesheet",type:"text/css",id:He.id}),n.contentCssCors&&ea(et,"crossOrigin","anonymous"),n.referrerPolicy&&ea(et,"referrerpolicy",n.referrerPolicy),we=et.dom,we.onload=Jt,we.onerror=Wt,v(et),ea(et,"href",De)}),L=G=>Promise.allSettled(Ae(G,xe=>D(xe).then(nt(xe)))).then(xe=>{const we=_e(xe,De=>De.status==="fulfilled");return we.fail.length>0?Promise.reject(Ae(we.fail,De=>De.reason)):Ae(we.pass,De=>De.value)}),ee=G=>{const te=wt._addCacheSuffix(G);ns(r,te).each(xe=>{--xe.count===0&&(delete r[te],x(xe.id))})};return{load:D,loadAll:L,unload:ee,unloadAll:G=>{Y(G,te=>{ee(te)})},_setReferrerPolicy:m,_setContentCssCors:b}},C_=(()=>{const e=new WeakMap;return{forElement:(o,r)=>{const u=Gi(o).dom;return I.from(e.get(u)).getOrThunk(()=>{const m=cg(u,r);return e.set(u,m),m})}}})(),Bv=e=>e.nodeName.toLowerCase()==="span",kr=(e,n)=>Ke(e)&&(vy(e,n)||Hc(ue.fromDom(e))),S_=(e,n)=>{const o=new $a(e,n).prev(!1),r=new $a(e,n).next(!1),c=In(o)||kr(o,n),u=In(r)||kr(r,n);return c&&u},Pv=e=>Bv(e)&&e.getAttribute("data-mce-type")==="bookmark",x_=(e,n)=>Bt(e)&&e.data.length>0&&S_(e,n),St=e=>dn(e)?e.childNodes.length>0:!1,$v=e=>yd(e)||nm(e),Fv=(e,n,o)=>{var r;const c=o||n;if(dn(n)&&Pv(n))return n;const u=n.childNodes;for(let m=u.length-1;m>=0;m--)Fv(e,u[m],c);if(dn(n)){const m=n.childNodes;m.length===1&&Pv(m[0])&&((r=n.parentNode)===null||r===void 0||r.insertBefore(m[0],n))}return!$v(n)&&!vy(n,c)&&!St(n)&&!x_(n,c)&&e.remove(n),n},ig=wt.makeMap,_y=/[&<>\"\u0060\u007E-\uD7FF\uE000-\uFFEF]|[\uD800-\uDBFF][\uDC00-\uDFFF]/g,hf=/[<>&\u007E-\uD7FF\uE000-\uFFEF]|[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Oh=/[<>&\"\']/g,lg=/([a-z0-9]+);?|&([a-z0-9]+);/gi,Iv={128:"€",130:"‚",131:"ƒ",132:"„",133:"…",134:"†",135:"‡",136:"ˆ",137:"‰",138:"Š",139:"‹",140:"Œ",142:"Ž",145:"‘",146:"’",147:"“",148:"”",149:"•",150:"–",151:"—",152:"˜",153:"™",154:"š",155:"›",156:"œ",158:"ž",159:"Ÿ"},iu={'"':""","'":"'","<":"<",">":">","&":"&","`":"`"},Xr={"<":"<",">":">","&":"&",""":'"',"'":"'"},$i=e=>{const n=ue.fromTag("div").dom;return n.innerHTML=e,n.textContent||n.innerText||e},zh=(e,n)=>{const o={};if(e){const r=e.split(",");n=n||10;for(let c=0;ce.replace(n?_y:hf,o=>iu[o]||o),Lv=e=>(""+e).replace(Oh,n=>iu[n]||n),cm=(e,n)=>e.replace(n?_y:hf,o=>o.length>1?""+((o.charCodeAt(0)-55296)*1024+(o.charCodeAt(1)-56320)+65536)+";":iu[o]||""+o.charCodeAt(0)+";"),Hv=(e,n,o)=>{const r=o||$u;return e.replace(n?_y:hf,c=>iu[c]||r[c]||c)},im={encodeRaw:T_,encodeAllRaw:Lv,encodeNumeric:cm,encodeNamed:Hv,getEncodeFunc:(e,n)=>{const o=zh(n)||$u,r=(m,b)=>m.replace(b?_y:hf,v=>iu[v]!==void 0?iu[v]:o[v]!==void 0?o[v]:v.length>1?""+((v.charCodeAt(0)-55296)*1024+(v.charCodeAt(1)-56320)+65536)+";":""+v.charCodeAt(0)+";"),c=(m,b)=>Hv(m,b,o),u=ig(e.replace(/\+/g,","));return u.named&&u.numeric?r:u.named?n?c:Hv:u.numeric?cm:T_},decode:e=>e.replace(lg,(n,o)=>o?(o.charAt(0).toLowerCase()==="x"?o=parseInt(o.substr(1),16):o=parseInt(o,10),o>65535?(o-=65536,String.fromCharCode(55296+(o>>10),56320+(o&1023))):Iv[o]||String.fromCharCode(o)):Xr[n]||$u[n]||$i(n))},Fu={},Cy={},Jx={},vp=wt.makeMap,nc=wt.each,xn=wt.extend,Vv=wt.explode,A_=wt.inArray,Kc=(e,n)=>(e=wt.trim(e),e?e.split(n||" "):[]),Uv=(e,n={})=>{const o=vp(e," ",vp(e.toUpperCase()," "));return xn(o,n)},O_=e=>Uv("td th li dt dd figcaption caption details summary",e.getTextBlockElements()),jv=e=>{const n={};let o,r,c,u;const m=(v,x="",M="")=>{const D=Kc(M),L=Kc(v);let ee=L.length;for(;ee--;){const oe=Kc([o,x].join(" "));n[L[ee]]={attributes:no(oe,()=>({})),attributesOrder:oe,children:no(D,nt(Jx))}}},b=(v,x)=>{const M=Kc(v),D=Kc(x);let L=M.length;for(;L--;){const ee=n[M[L]];for(let oe=0,G=D.length;oe{m(M,"",c)});const x="center dir isindex noframes";r=[r,x].join(" "),u=[r,c].join(" "),nc(Kc(x),M=>{m(M,"",u)})}return u=u||[r,c].join(" "),m("html","manifest","head body"),m("head","","base command link meta noscript script style title"),m("title hr noscript br"),m("base","href target"),m("link","href rel media hreflang type sizes hreflang"),m("meta","name http-equiv content charset"),m("style","media type scoped"),m("script","src async defer type charset"),m("body","onafterprint onbeforeprint onbeforeunload onblur onerror onfocus onhashchange onload onmessage onoffline ononline onpagehide onpageshow onpopstate onresize onscroll onstorage onunload",u),m("address dt dd div caption","",u),m("h1 h2 h3 h4 h5 h6 pre p abbr code var samp kbd sub sup i b u bdo span legend em strong small s cite dfn","",c),m("blockquote","cite",u),m("ol","reversed start type","li"),m("ul","","li"),m("li","value",u),m("dl","","dt dd"),m("a","href target rel media hreflang type",u),m("q","cite",c),m("ins del","cite datetime",u),m("img","src sizes srcset alt usemap ismap width height"),m("iframe","src name width height",u),m("embed","src type width height"),m("object","data type typemustmatch name usemap form width height",[u,"param"].join(" ")),m("param","name value"),m("map","name",[u,"area"].join(" ")),m("area","alt coords shape href target rel media hreflang type"),m("table","border","caption colgroup thead tfoot tbody tr"+(e==="html4"?" col":"")),m("colgroup","span","col"),m("col","span"),m("tbody thead tfoot","","tr"),m("tr","","td th"),m("td","colspan rowspan headers",u),m("th","colspan rowspan headers scope abbr",u),m("form","accept-charset action autocomplete enctype method name novalidate target",u),m("fieldset","disabled form name",[u,"legend"].join(" ")),m("label","form for",c),m("input","accept alt autocomplete checked dirname disabled form formaction formenctype formmethod formnovalidate formtarget height list max maxlength min multiple name pattern readonly required size src step type value width"),m("button","disabled form formaction formenctype formmethod formnovalidate formtarget name type value",e==="html4"?u:c),m("select","disabled form multiple name required size","option optgroup"),m("optgroup","disabled label","option"),m("option","disabled label selected value"),m("textarea","cols dirname disabled form maxlength name readonly required rows wrap"),m("menu","type label",[u,"li"].join(" ")),m("noscript","",u),e!=="html4"&&(m("wbr"),m("ruby","",[c,"rt rp"].join(" ")),m("figcaption","",u),m("mark rt rp summary bdi","",c),m("canvas","width height",u),m("video","src crossorigin poster preload autoplay mediagroup loop muted controls width height buffered",[u,"track source"].join(" ")),m("audio","src crossorigin preload autoplay mediagroup loop muted controls buffered volume",[u,"track source"].join(" ")),m("picture","","img source"),m("source","src srcset type media sizes"),m("track","kind src srclang label default"),m("datalist","",[c,"option"].join(" ")),m("article section nav aside main header footer","",u),m("hgroup","","h1 h2 h3 h4 h5 h6"),m("figure","",[u,"figcaption"].join(" ")),m("time","datetime",c),m("dialog","open",u),m("command","type label icon disabled checked radiogroup command"),m("output","for form name",c),m("progress","value max",c),m("meter","value min max low high optimum",c),m("details","open",[u,"summary"].join(" ")),m("keygen","autofocus challenge disabled form keytype name")),e!=="html5-strict"&&(b("script","language xml:space"),b("style","xml:space"),b("object","declare classid code codebase codetype archive standby align border hspace vspace"),b("embed","align name hspace vspace"),b("param","valuetype type"),b("a","charset name rev shape coords"),b("br","clear"),b("applet","codebase archive code object alt name width height align hspace vspace"),b("img","name longdesc align border hspace vspace"),b("iframe","longdesc frameborder marginwidth marginheight scrolling align"),b("font basefont","size color face"),b("input","usemap align"),b("select"),b("textarea"),b("h1 h2 h3 h4 h5 h6 div p legend caption","align"),b("ul","type compact"),b("li","type"),b("ol dl menu dir","compact"),b("pre","width xml:space"),b("hr","align noshade size width"),b("isindex","prompt"),b("table","summary width frame rules cellspacing cellpadding align bgcolor"),b("col","width align char charoff valign"),b("colgroup","width align char charoff valign"),b("thead","align char charoff valign"),b("tr","align char charoff valign bgcolor"),b("th","axis align char charoff valign nowrap bgcolor width height"),b("form","accept"),b("td","abbr axis scope align char charoff valign nowrap bgcolor width height"),b("tfoot","align char charoff valign"),b("tbody","align char charoff valign"),b("area","nohref"),b("body","background bgcolor text link vlink alink")),e!=="html4"&&(b("input button select textarea","autofocus"),b("input textarea","placeholder"),b("a","download"),b("link script img","crossorigin"),b("img","loading"),b("iframe","sandbox seamless allow allowfullscreen loading")),e!=="html4"&&Y([n.video,n.audio],v=>{delete v.children.audio,delete v.children.video}),nc(Kc("a form meter progress dfn"),v=>{n[v]&&delete n[v].children[v]}),delete n.caption.children.table,delete n.script,Fu[e]=n,n},xd=(e,n)=>{if(e){const o={};return q(e)&&(e={"*":e}),nc(e,(r,c)=>{o[c]=o[c.toUpperCase()]=n==="map"?vp(r,/[, ]/):Vv(r,/[, ]/)}),o}else return},gl=(e={})=>{var n;const o={},r={};let c=[];const u={},m={},b=($o,Ms,or)=>{const br=e[$o];if(br)return vp(br,/[, ]/,vp(br.toUpperCase(),/[, ]/));{let ua=Cy[$o];return ua||(ua=Uv(Ms,or),Cy[$o]=ua),ua}},v=(n=e.schema)!==null&&n!==void 0?n:"html5",x=jv(v);e.verify_html===!1&&(e.valid_elements="*[*]");const M=xd(e.valid_styles),D=xd(e.invalid_styles,"map"),L=xd(e.valid_classes,"map"),ee=b("whitespace_elements","pre script noscript style textarea video audio iframe object code"),oe=b("self_closing_elements","colgroup dd dt li option p td tfoot th thead tr"),G=b("void_elements","area base basefont br col frame hr img input isindex link meta param embed source wbr track"),te=b("boolean_attributes","checked compact declare defer disabled ismap multiple nohref noresize noshade nowrap readonly selected autoplay loop controls allowfullscreen"),xe="td th iframe video audio object script code",we=b("non_empty_elements",xe+" pre",G),De=b("move_caret_before_on_enter_elements",xe+" table",G),He=b("text_block_elements","h1 h2 h3 h4 h5 h6 p div address pre form blockquote center dir fieldset header footer article section hgroup aside main nav figure"),ht=b("block_elements","hr table tbody thead tfoot th tr td li ol ul caption dl dt dd noscript menu isindex option datalist select optgroup figcaption details summary",He),Jt=b("text_inline_elements","span strong b em i font s strike u var cite dfn code mark q sup sub samp"),Wt=b("transparent_elements","a ins del canvas map");nc("script noscript iframe noframes noembed title style textarea xmp plaintext".split(" "),$o=>{m[$o]=new RegExp(""+$o+"[^>]*>","gi")});const et=$o=>new RegExp("^"+$o.replace(/([?+*])/g,".$1")+"$"),Qe=$o=>{const Ms=/^([#+\-])?([^\[!\/]+)(?:\/([^\[!]+))?(?:(!?)\[([^\]]+)])?$/,or=/^([!\-])?(\w+[\\:]:\w+|[^=~<]+)?(?:([=~<])(.*))?$/,br=/[*?+]/;if($o){const ua=Kc($o,",");let Da,jr;o["@"]&&(Da=o["@"].attributes,jr=o["@"].attributesOrder);for(let Xa=0,Ju=ua.length;Xa{Wf[Zf]=Qu}),jr&&Jd.push(...jr)),oy){const Qu=Kc(oy,"|");for(let Zf=0,Vi=Qu.length;Zf{c=[],Y(Es(o),Ms=>{delete o[Ms]}),Qe($o),nc(x,(Ms,or)=>{r[or]=Ms.children})},jn=$o=>{const Ms=/^(~)?(.+)$/;$o&&(delete Cy.text_block_elements,delete Cy.block_elements,nc(Kc($o,","),or=>{const br=Ms.exec(or);if(br){const ua=br[1]==="~",Da=ua?"span":"div",jr=br[2];if(r[jr]=r[Da],u[jr]=Da,we[jr.toUpperCase()]={},we[jr]={},ua||(ht[jr.toUpperCase()]={},ht[jr]={}),!o[jr]){let Xa=o[Da];Xa=xn({},Xa),delete Xa.removeEmptyAttrs,delete Xa.removeEmpty,o[jr]=Xa}nc(r,(Xa,Ju)=>{Xa[Da]&&(r[Ju]=Xa=xn({},r[Ju]),Xa[jr]=Xa[Da])})}}))},co=$o=>{const Ms=/^([+\-]?)([A-Za-z0-9_\-.\u00b7\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u037d\u037f-\u1fff\u200c-\u200d\u203f-\u2040\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd]+)\[([^\]]+)]$/;delete Fu[v],$o&&nc(Kc($o,","),or=>{const br=Ms.exec(or);if(br){const ua=br[1];let Da;ua?Da=r[br[2]]:Da=r[br[2]]={"#comment":{}},Da=r[br[2]],nc(Kc(br[3],"|"),jr=>{ua==="-"?delete Da[jr]:Da[jr]={}})}})},Wo=$o=>{const Ms=o[$o];if(Ms)return Ms;let or=c.length;for(;or--;){const br=c[or];if(br.pattern.test($o))return br}};e.valid_elements?pn(e.valid_elements):(nc(x,($o,Ms)=>{o[Ms]={attributes:$o.attributes,attributesOrder:$o.attributesOrder},r[Ms]=$o.children}),nc(Kc("strong/b em/i"),$o=>{const Ms=Kc($o,"/");o[Ms[1]].outputName=Ms[0]}),nc(Jt,($o,Ms)=>{o[Ms]&&(e.padd_empty_block_inline_children&&(o[Ms].paddInEmptyBlock=!0),o[Ms].removeEmpty=!0)}),nc(Kc("ol ul blockquote a table tbody"),$o=>{o[$o]&&(o[$o].removeEmpty=!0)}),nc(Kc("p h1 h2 h3 h4 h5 h6 th td pre div address caption li"),$o=>{o[$o].paddEmpty=!0}),nc(Kc("span"),$o=>{o[$o].removeEmptyAttrs=!0})),jn(e.custom_elements),co(e.valid_children),Qe(e.extended_valid_elements),co("+ol[ul|ol],+ul[ul|ol]"),nc({dd:"dl",dt:"dl",li:"ul ol",td:"tr",th:"tr",tr:"tbody thead tfoot",tbody:"table",thead:"table",tfoot:"table",legend:"fieldset",area:"map",param:"video audio object"},($o,Ms)=>{o[Ms]&&(o[Ms].parentsRequired=Kc($o))}),e.invalid_elements&&nc(Vv(e.invalid_elements),$o=>{o[$o]&&delete o[$o]}),Wo("span")||Qe("span[!data-mce-type|*]");const ms=nt(M),Zs=nt(D),hr=nt(L),wa=nt(te),Uc=nt(ht),kc=nt(He),Vt=nt(Jt),Bn=nt(Object.seal(G)),Ts=nt(oe),sn=nt(we),to=nt(De),so=nt(ee),an=nt(Wt),cs=nt(Object.seal(m)),is=($o,Ms)=>{const or=r[$o.toLowerCase()];return!!(or&&or[Ms.toLowerCase()])},Mc=($o,Ms)=>{const or=Wo($o);if(or)if(Ms){if(or.attributes[Ms])return!0;const br=or.attributePatterns;if(br){let ua=br.length;for(;ua--;)if(br[ua].pattern.test(Ms))return!0}}else return!0;return!1},$r=nt(u);return{type:v,children:r,elements:o,getValidStyles:ms,getValidClasses:hr,getBlockElements:Uc,getInvalidStyles:Zs,getVoidElements:Bn,getTextBlockElements:kc,getTextInlineElements:Vt,getBoolAttrs:wa,getElementRule:Wo,getSelfClosingElements:Ts,getNonEmptyElements:sn,getMoveCaretBeforeOnEnterElements:to,getWhitespaceElements:so,getTransparentElements:an,getSpecialElements:cs,isValidChild:is,isValid:Mc,getCustomElements:$r,addValidElements:Qe,setValidElements:pn,addCustomElements:jn,addValidChildren:co}},Sy=(e={},n)=>{const o=/(?:url(?:(?:\(\s*\"([^\"]+)\"\s*\))|(?:\(\s*\'([^\']+)\'\s*\))|(?:\(\s*([^)\s]+)\s*\))))|(?:\'([^\']+)\')|(?:\"([^\"]+)\")/gi,r=/\s*([^:]+):\s*([^;]+);?/g,c=/\s+$/,u={};let m,b;const v=ga;n&&(m=n.getValidStyles(),b=n.getInvalidStyles());const x=(`\\" \\' \\; \\: ; : `+v).split(" ");for(let D=0;D{const L={};let ee=!1;const oe=e.url_converter,G=e.url_converter_scope||M,te=(et,Qe,pn)=>{const jn=L[et+"-top"+Qe];if(!jn)return;const co=L[et+"-right"+Qe];if(!co)return;const Wo=L[et+"-bottom"+Qe];if(!Wo)return;const ms=L[et+"-left"+Qe];if(!ms)return;const Zs=[jn,co,Wo,ms];let hr=Zs.length-1;for(;hr--&&Zs[hr]===Zs[hr+1];);hr>-1&&pn||(L[et+Qe]=hr===-1?Zs[0]:Zs.join(" "),delete L[et+"-top"+Qe],delete L[et+"-right"+Qe],delete L[et+"-bottom"+Qe],delete L[et+"-left"+Qe])},xe=et=>{const Qe=L[et];if(!Qe)return;const pn=Qe.split(" ");let jn=pn.length;for(;jn--;)if(pn[jn]!==pn[0])return!1;return L[et]=pn[0],!0},we=(et,Qe,pn,jn)=>{xe(Qe)&&xe(pn)&&xe(jn)&&(L[et]=L[Qe]+" "+L[pn]+" "+L[jn],delete L[Qe],delete L[pn],delete L[jn])},De=et=>(ee=!0,u[et]),He=(et,Qe)=>(ee&&(et=et.replace(/\uFEFF[0-9]/g,pn=>u[pn])),Qe||(et=et.replace(/\\([\'\";:])/g,"$1")),et),ht=et=>String.fromCharCode(parseInt(et.slice(1),16)),Jt=et=>et.replace(/\\[0-9a-f]+/gi,ht),Wt=(et,Qe,pn,jn,co,Wo)=>{if(co=co||Wo,co)return co=He(co),"'"+co.replace(/\'/g,"\\'")+"'";if(Qe=He(Qe||pn||jn||""),!e.allow_script_urls){const ms=Qe.replace(/[\s\r\n]+/g,"");if(/(java|vb)script:/i.test(ms)||!e.allow_svg_data_urls&&/^data:image\/svg/i.test(ms))return""}return oe&&(Qe=oe.call(G,Qe,"style")),"url('"+Qe.replace(/\'/g,"\\'")+"')"};if(D){D=D.replace(/[\u0000-\u001F]/g,""),D=D.replace(/\\[\"\';:\uFEFF]/g,De).replace(/\"[^\"]+\"|\'[^\']+\'/g,Qe=>Qe.replace(/[;:]/g,De));let et;for(;et=r.exec(D);){r.lastIndex=et.index+et[0].length;let Qe=et[1].replace(c,"").toLowerCase(),pn=et[2].replace(c,"");if(Qe&&pn){if(Qe=Jt(Qe),pn=Jt(pn),Qe.indexOf(v)!==-1||Qe.indexOf('"')!==-1||!e.allow_script_urls&&(Qe==="behavior"||/expression\s*\(|\/\*|\*\//.test(pn)))continue;Qe==="font-weight"&&pn==="700"?pn="bold":(Qe==="color"||Qe==="background-color")&&(pn=pn.toLowerCase()),pn=pn.replace(o,Wt),L[Qe]=ee?He(pn,!0):pn}}te("border","",!0),te("border","-width"),te("border","-color"),te("border","-style"),te("padding",""),te("margin",""),we("border","border-width","border-style","border-color"),L.border==="medium none"&&delete L.border,L["border-image"]==="none"&&delete L["border-image"]}return L},serialize:(D,L)=>{let ee="";const oe=(te,xe)=>{const we=xe[te];if(we)for(let De=0,He=we.length;De0?" ":"")+ht+": "+Jt+";")}},G=(te,xe)=>{if(!b||!xe)return!0;let we=b["*"];return we&&we[te]?!1:(we=b[xe],!(we&&we[te]))};return L&&m?(oe("*",m),oe(L,m)):Nt(D,(te,xe)=>{te&&G(xe,L)&&(ee+=(ee.length>0?" ":"")+xe+": "+te+";")}),ee}};return M},ug={keyLocation:!0,layerX:!0,layerY:!0,returnValue:!0,webkitMovementX:!0,webkitMovementY:!0,keyIdentifier:!0,mozPressure:!0},Qx=e=>e instanceof Event||ce(e.initEvent),z_=e=>e.isDefaultPrevented===lt||e.isDefaultPrevented===Te,Dh=e=>zt(e.preventDefault)||Qx(e),kp=(e,n)=>{const o=n??{};for(const r in e)Un(ug,r)||(o[r]=e[r]);return Ke(e.composedPath)&&(o.composedPath=()=>e.composedPath()),o},wp=(e,n,o,r)=>{var c;const u=kp(n,r);return u.type=e,zt(u.target)&&(u.target=(c=u.srcElement)!==null&&c!==void 0?c:o),Dh(n)&&(u.preventDefault=()=>{u.defaultPrevented=!0,u.isDefaultPrevented=lt,ce(n.preventDefault)&&n.preventDefault()},u.stopPropagation=()=>{u.cancelBubble=!0,u.isPropagationStopped=lt,ce(n.stopPropagation)&&n.stopPropagation()},u.stopImmediatePropagation=()=>{u.isImmediatePropagationStopped=lt,u.stopPropagation()},z_(u)||(u.isDefaultPrevented=u.defaultPrevented===!0?lt:Te,u.isPropagationStopped=u.cancelBubble===!0?lt:Te,u.isImmediatePropagationStopped=Te)),u},dg="mce-data-",D_=/^(?:mouse|contextmenu)|click/,xy=(e,n,o,r)=>{e.addEventListener(n,o,r||!1)},fg=(e,n,o,r)=>{e.removeEventListener(n,o,r||!1)},Ty=e=>Ke(e)&&D_.test(e.type),Yi=(e,n)=>{const o=wp(e.type,e,document,n);if(Ty(e)&&In(e.pageX)&&!In(e.clientX)){const r=o.target.ownerDocument||document,c=r.documentElement,u=r.body,m=o;m.pageX=e.clientX+(c&&c.scrollLeft||u&&u.scrollLeft||0)-(c&&c.clientLeft||u&&u.clientLeft||0),m.pageY=e.clientY+(c&&c.scrollTop||u&&u.scrollTop||0)-(c&&c.clientTop||u&&u.clientTop||0)}return o},Fi=(e,n,o)=>{const r=e.document,c={type:"ready"};if(o.domLoaded){n(c);return}const u=()=>r.readyState==="complete"||r.readyState==="interactive"&&r.body,m=()=>{fg(e,"DOMContentLoaded",m),fg(e,"load",m),o.domLoaded||(o.domLoaded=!0,n(c)),e=null};u()?m():xy(e,"DOMContentLoaded",m),o.domLoaded||xy(e,"load",m)};class yf{constructor(){this.domLoaded=!1,this.events={},this.count=1,this.expando=dg+(+new Date).toString(32),this.hasFocusIn="onfocusin"in document.documentElement,this.count=1}bind(n,o,r,c){const u=this;let m;const b=window,v=L=>{u.executeHandlers(Yi(L||b.event),x)};if(!n||Bt(n)||Ri(n))return r;let x;n[u.expando]?x=n[u.expando]:(x=u.count++,n[u.expando]=x,u.events[x]={}),c=c||n;const M=o.split(" ");let D=M.length;for(;D--;){let L=M[D],ee=v,oe=!1,G=!1;if(L==="DOMContentLoaded"&&(L="ready"),u.domLoaded&&L==="ready"&&n.readyState==="complete"){r.call(c,Yi({type:L}));continue}!u.hasFocusIn&&(L==="focusin"||L==="focusout")&&(oe=!0,G=L==="focusin"?"focus":"blur",ee=te=>{const xe=Yi(te||b.event);xe.type=xe.type==="focus"?"focusin":"focusout",u.executeHandlers(xe,x)}),m=u.events[x][L],m?L==="ready"&&u.domLoaded?r(Yi({type:L})):m.push({func:r,scope:c}):(u.events[x][L]=m=[{func:r,scope:c}],m.fakeName=G,m.capture=oe,m.nativeHandler=ee,L==="ready"?Fi(n,ee,u):xy(n,G||L,ee,oe))}return n=m=null,r}unbind(n,o,r){if(!n||Bt(n)||Ri(n))return this;const c=n[this.expando];if(c){let u=this.events[c];if(o){const m=o.split(" ");let b=m.length;for(;b--;){const v=m[b],x=u[v];if(x){if(r){let M=x.length;for(;M--;)if(x[M].func===r){const D=x.nativeHandler,L=x.fakeName,ee=x.capture,oe=x.slice(0,M).concat(x.slice(M+1));oe.nativeHandler=D,oe.fakeName=L,oe.capture=ee,u[v]=oe}}(!r||x.length===0)&&(delete u[v],fg(n,x.fakeName||v,x.nativeHandler,x.capture))}}}else Nt(u,(m,b)=>{fg(n,m.fakeName||b,m.nativeHandler,m.capture)}),u={};for(const m in u)if(Un(u,m))return this;delete this.events[c];try{delete n[this.expando]}catch{n[this.expando]=null}}return this}fire(n,o,r){return this.dispatch(n,o,r)}dispatch(n,o,r){if(!n||Bt(n)||Ri(n))return this;const c=Yi({type:o,target:n},r);do{const u=n[this.expando];u&&this.executeHandlers(c,u),n=n.parentNode||n.ownerDocument||n.defaultView||n.parentWindow}while(n&&!c.isPropagationStopped());return this}clean(n){if(!n||Bt(n)||Ri(n))return this;if(n[this.expando]&&this.unbind(n),n.getElementsByTagName||(n=n.document),n&&n.getElementsByTagName){this.unbind(n);const o=n.getElementsByTagName("*");let r=o.length;for(;r--;)n=o[r],n[this.expando]&&this.unbind(n)}return this}destroy(){this.events={}}cancel(n){return n&&(n.preventDefault(),n.stopImmediatePropagation()),!1}executeHandlers(n,o){const r=this.events[o],c=r&&r[n.type];if(c)for(let u=0,m=c.length;u{zt(o)||o===""?Hr(e,n):ea(e,n,o)},_p=e=>e.replace(/[A-Z]/g,n=>"-"+n.toLowerCase()),Td=(e,n)=>{let o=0;if(e)for(let r=e.nodeType,c=e.previousSibling;c;c=c.previousSibling){const u=c.nodeType;n&&Bt(c)&&(u===r||!c.data.length)||(o++,r=u)}return o},Wv=(e,n)=>{const o=Pc(n,"style"),r=e.serialize(e.parse(o),Ws(n));Ay(n,Rh,r)},eT=(e,n)=>ze(e)?Un(Iu,n)?e+"":e+"px":e,M_=(e,n,o)=>{const r=_p(n);zt(o)||o===""?ec(e,r):cf(e,r,eT(o,r))},Zv=(e,n,o)=>{const r=n.keep_values,c={set:(m,b,v)=>{const x=ue.fromDom(m);ce(n.url_converter)&&Ke(b)&&(b=n.url_converter.call(n.url_converter_scope||o(),String(b),v,m));const M="data-mce-"+v;Ay(x,M,b),Ay(x,v,b)},get:(m,b)=>{const v=ue.fromDom(m);return Pc(v,"data-mce-"+b)||Pc(v,b)}},u={style:{set:(m,b)=>{const v=ue.fromDom(m);r&&Ay(v,Rh,b),Hr(v,"style"),q(b)&&Km(v,e.parse(b))},get:m=>{const b=ue.fromDom(m),v=Pc(b,Rh)||Pc(b,"style");return e.serialize(e.parse(v),Ws(b))}}};return r&&(u.href=u.src=c),u},Ar=(e,n={})=>{const o={},r=window,c={};let u=0;const m=!0,b=!0,v=C_.forElement(ue.fromDom(e),{contentCssCors:n.contentCssCors,referrerPolicy:n.referrerPolicy}),x=[],M=n.schema?n.schema:gl({}),D=Sy({url_converter:n.url_converter,url_converter_scope:n.url_converter_scope},n.schema),L=n.ownEvents?new yf:yf.Event,ee=M.getBlockElements(),oe=Ve=>q(Ve)?Un(ee,Ve):dn(Ve)&&(Un(ee,Ve.nodeName)||gf(M,Ve)),G=Ve=>Ve&&e&&q(Ve)?e.getElementById(Ve):Ve,te=Ve=>{const je=G(Ve);return Ke(je)?ue.fromDom(je):null},xe=(Ve,je,Zt="")=>{let Pt;const Xn=te(Ve);if(Ke(Xn)&&er(Xn)){const ls=sy[je];ls&&ls.get?Pt=ls.get(Xn.dom,je):Pt=Pc(Xn,je)}return Ke(Pt)?Pt:Zt},we=Ve=>{const je=G(Ve);return zt(je)?[]:je.attributes},De=(Ve,je,Zt)=>{Bn(Ve,Pt=>{if(dn(Pt)){const Xn=ue.fromDom(Pt),ls=Zt===""?null:Zt,_r=Pc(Xn,je),Nr=sy[je];Nr&&Nr.set?Nr.set(Xn.dom,ls,je):Ay(Xn,je,ls),_r!==ls&&n.onSetAttrib&&n.onSetAttrib({attrElm:Xn.dom,attrName:je,attrValue:ls})}})},He=(Ve,je)=>Ve.cloneNode(je),ht=()=>n.root_element||e.body,Jt=Ve=>{const je=up(Ve);return{x:je.x,y:je.y,w:je.width,h:je.height}},Wt=(Ve,je)=>pf(e.body,G(Ve),je),et=(Ve,je,Zt)=>{Bn(Ve,Pt=>{const Xn=ue.fromDom(Pt);M_(Xn,je,Zt),n.update_styles&&Wv(D,Xn)})},Qe=(Ve,je)=>{Bn(Ve,Zt=>{const Pt=ue.fromDom(Zt);Nt(je,(Xn,ls)=>{M_(Pt,ls,Xn)}),n.update_styles&&Wv(D,Pt)})},pn=(Ve,je,Zt)=>{const Pt=G(Ve);if(!(zt(Pt)||!dn(Pt)))return Zt?ll(ue.fromDom(Pt),_p(je)):(je=je.replace(/-(\D)/g,(Xn,ls)=>ls.toUpperCase()),je==="float"&&(je="cssFloat"),Pt.style?Pt.style[je]:void 0)},jn=Ve=>{const je=G(Ve);if(!je)return{w:0,h:0};let Zt=pn(je,"width"),Pt=pn(je,"height");return(!Zt||Zt.indexOf("px")===-1)&&(Zt="0"),(!Pt||Pt.indexOf("px")===-1)&&(Pt="0"),{w:parseInt(Zt,10)||je.offsetWidth||je.clientWidth,h:parseInt(Pt,10)||je.offsetHeight||je.clientHeight}},co=Ve=>{const je=G(Ve),Zt=Wt(je),Pt=jn(je);return{x:Zt.x,y:Zt.y,w:Pt.w,h:Pt.h}},Wo=(Ve,je)=>{if(!Ve)return!1;const Zt=kt(Ve)?Ve:[Ve];return Me(Zt,Pt=>$c(ue.fromDom(Pt),je))},ms=(Ve,je,Zt,Pt)=>{const Xn=[];let ls=G(Ve);Pt=Pt===void 0;const _r=Zt||(ht().nodeName!=="BODY"?ht().parentNode:null);if(q(je))if(je==="*")je=dn;else{const Nr=je;je=jm=>Wo(jm,Nr)}for(;ls&&!(ls===_r||zt(ls.nodeType)||nm(ls)||yd(ls));){if(!je||je(ls))if(Pt)Xn.push(ls);else return[ls];ls=ls.parentNode}return Pt?Xn:null},Zs=(Ve,je,Zt)=>{const Pt=ms(Ve,je,Zt,!1);return Pt&&Pt.length>0?Pt[0]:null},hr=(Ve,je,Zt)=>{let Pt=je;if(Ve){q(je)&&(Pt=Xn=>Wo(Xn,je));for(let Xn=Ve[Zt];Xn;Xn=Xn[Zt])if(ce(Pt)&&Pt(Xn))return Xn}return null},wa=(Ve,je)=>hr(Ve,je,"nextSibling"),Uc=(Ve,je)=>hr(Ve,je,"previousSibling"),kc=Ve=>ce(Ve.querySelectorAll),Vt=(Ve,je)=>{var Zt,Pt;const Xn=(Pt=(Zt=G(je))!==null&&Zt!==void 0?Zt:n.root_element)!==null&&Pt!==void 0?Pt:e;return kc(Xn)?Cs(Xn.querySelectorAll(Ve)):[]},Bn=function(Ve,je,Zt){const Pt=Zt??this;if(kt(Ve)){const Xn=[];return Ey(Ve,(ls,_r)=>{const Nr=G(ls);Nr&&Xn.push(je.call(Pt,Nr,_r))}),Xn}else{const Xn=G(Ve);return Xn?je.call(Pt,Xn):!1}},Ts=(Ve,je)=>{Bn(Ve,Zt=>{Nt(je,(Pt,Xn)=>{De(Zt,Xn,Pt)})})},sn=(Ve,je)=>{Bn(Ve,Zt=>{const Pt=ue.fromDom(Zt);bd(Pt,je)})},to=(Ve,je,Zt,Pt,Xn)=>Bn(Ve,ls=>{const _r=q(je)?e.createElement(je):je;return Ke(Zt)&&Ts(_r,Zt),Pt&&(!q(Pt)&&Pt.nodeType?_r.appendChild(Pt):q(Pt)&&sn(_r,Pt)),Xn?_r:ls.appendChild(_r)}),so=(Ve,je,Zt)=>to(e.createElement(Ve),Ve,je,Zt,!0),an=im.decode,cs=im.encodeAllRaw,is=(Ve,je,Zt="")=>{let Pt="<"+Ve;for(const Xn in je)Cr(je,Xn)&&(Pt+=" "+Xn+'="'+cs(je[Xn])+'"');return hs(Zt)&&Un(M.getVoidElements(),Ve)?Pt+" />":Pt+">"+Zt+""+Ve+">"},Mc=Ve=>{const je=e.createElement("div"),Zt=e.createDocumentFragment();Zt.appendChild(je),Ve&&(je.innerHTML=Ve);let Pt;for(;Pt=je.firstChild;)Zt.appendChild(Pt);return Zt.removeChild(je),Zt},$r=(Ve,je)=>Bn(Ve,Zt=>{const Pt=ue.fromDom(Zt);return je&&Y(ja(Pt),Xn=>{Sc(Xn)&&Xn.dom.length===0?fr(Xn):Is(Pt,Xn)}),fr(Pt),Pt.dom}),$o=Ve=>Bn(Ve,je=>{const Zt=je.attributes;for(let Pt=Zt.length-1;Pt>=0;Pt--)je.removeAttributeNode(Zt.item(Pt))}),Ms=Ve=>D.parse(Ve),or=(Ve,je)=>D.serialize(Ve,je),br=Ve=>{if(Qd!==Ar.DOM&&e===document){if(o[Ve])return;o[Ve]=!0}let je=e.getElementById("mceDefaultStyles");if(!je){je=e.createElement("style"),je.id="mceDefaultStyles",je.type="text/css";const Zt=e.head;Zt.firstChild?Zt.insertBefore(je,Zt.firstChild):Zt.appendChild(je)}je.styleSheet?je.styleSheet.cssText+=Ve:je.appendChild(e.createTextNode(Ve))},ua=Ve=>{Ve||(Ve=""),Y(Ve.split(","),je=>{c[je]=!0,v.load(je).catch(ft)})},Da=(Ve,je,Zt)=>{Bn(Ve,Pt=>{if(dn(Pt)){const Xn=ue.fromDom(Pt),ls=je.split(" ");Y(ls,_r=>{Ke(Zt)?(Zt?Au:cd)(Xn,_r):id(Xn,_r)})}})},jr=(Ve,je)=>{Da(Ve,je,!0)},Xa=(Ve,je)=>{Da(Ve,je,!1)},Ju=(Ve,je)=>{const Zt=te(Ve),Pt=je.split(" ");return Ke(Zt)&&wn(Pt,Xn=>ld(Zt,Xn))},ii=Ve=>{Bn(Ve,je=>ec(ue.fromDom(je),"display"))},jf=Ve=>{Bn(Ve,je=>cf(ue.fromDom(je),"display","none"))},Gl=Ve=>{const je=te(Ve);return Ke(je)&&qr(Ic(je,"display"),"none")},ny=Ve=>(Ve||"mce_")+u++,oy=Ve=>{const je=te(Ve);return Ke(je)?dn(je.dom)?je.dom.outerHTML:ss(je):""},Wf=(Ve,je)=>{Bn(Ve,Zt=>{dn(Zt)&&(Zt.outerHTML=je)})},Jd=(Ve,je)=>{const Zt=G(je);return Bn(Ve,Pt=>{const Xn=Zt==null?void 0:Zt.parentNode,ls=Zt==null?void 0:Zt.nextSibling;return Xn&&(ls?Xn.insertBefore(Pt,ls):Xn.appendChild(Pt)),Pt})},cc=(Ve,je,Zt)=>Bn(je,Pt=>{var Xn;const ls=kt(je)?Ve.cloneNode(!0):Ve;return Zt&&Ey(R_(Pt.childNodes),_r=>{ls.appendChild(_r)}),(Xn=Pt.parentNode)===null||Xn===void 0||Xn.replaceChild(ls,Pt),Pt}),Qu=(Ve,je)=>{if(Ve.nodeName!==je.toUpperCase()){const Zt=so(je);return Ey(we(Ve),Pt=>{De(Zt,Pt.nodeName,xe(Ve,Pt.nodeName))}),cc(Zt,Ve,!0),Zt}else return Ve},Zf=(Ve,je)=>{let Zt=Ve;for(;Zt;){let Pt=je;for(;Pt&&Zt!==Pt;)Pt=Pt.parentNode;if(Zt===Pt)break;Zt=Zt.parentNode}return!Zt&&Ve.ownerDocument?Ve.ownerDocument.documentElement:Zt},Vi=Ve=>{if(dn(Ve)){const je=Ve.nodeName.toLowerCase()==="a"&&!xe(Ve,"href")&&xe(Ve,"id");if(xe(Ve,"name")||xe(Ve,"data-mce-bookmark")||je)return!0}return!1},ed=(Ve,je)=>{let Zt=0;if(Vi(Ve))return!1;const Pt=Ve.firstChild;if(Pt){const Xn=new $a(Pt,Ve),ls=M?M.getWhitespaceElements():{},_r=je||(M?M.getNonEmptyElements():null);let Nr=Pt;do{if(dn(Nr)){const jm=Nr.getAttribute("data-mce-bogus");if(jm){Nr=Xn.next(jm==="all");continue}const Yl=Nr.nodeName.toLowerCase();if(_r&&_r[Yl]){if(Yl==="br"){Zt++,Nr=Xn.next();continue}return!1}if(Vi(Nr))return!1}if(Ri(Nr)||Bt(Nr)&&!Pi(Nr.data)||Bt(Nr)&&Nr.parentNode&&ls[Nr.parentNode.nodeName]&&Pi(Nr.data))return!1;Nr=Xn.next()}while(Nr)}return Zt<=1},Vm=()=>e.createRange(),xi=(Ve,je,Zt)=>{let Pt=Vm(),Xn,ls;if(Ve&&je&&Ve.parentNode&&je.parentNode){const _r=Ve.parentNode;return Pt.setStart(_r,Td(Ve)),Pt.setEnd(je.parentNode,Td(je)),Xn=Pt.extractContents(),Pt=Vm(),Pt.setStart(je.parentNode,Td(je)+1),Pt.setEnd(_r,Td(Ve)+1),ls=Pt.extractContents(),_r.insertBefore(Fv(Qd,Xn),Ve),Zt?_r.insertBefore(Zt,Ve):_r.insertBefore(je,Ve),_r.insertBefore(Fv(Qd,ls),Ve),$r(Ve),Zt||je}else return},Qg=(Ve,je,Zt,Pt)=>{if(kt(Ve)){let Xn=Ve.length;const ls=[];for(;Xn--;)ls[Xn]=Qg(Ve[Xn],je,Zt,Pt);return ls}else return n.collect&&(Ve===e||Ve===r)&&x.push([Ve,je,Zt,Pt]),L.bind(Ve,je,Zt,Pt||Qd)},qf=(Ve,je,Zt)=>{if(kt(Ve)){let Pt=Ve.length;const Xn=[];for(;Pt--;)Xn[Pt]=qf(Ve[Pt],je,Zt);return Xn}else{if(x.length>0&&(Ve===e||Ve===r)){let Pt=x.length;for(;Pt--;){const[Xn,ls,_r]=x[Pt];Ve===Xn&&(!je||je===ls)&&(!Zt||Zt===_r)&&L.unbind(Xn,ls,_r)}}return L.unbind(Ve,je,Zt)}},Kl=(Ve,je,Zt)=>L.dispatch(Ve,je,Zt),Um=(Ve,je,Zt)=>L.dispatch(Ve,je,Zt),f_=Ve=>{if(Ve&&dn(Ve)){const je=Ve.getAttribute("data-mce-contenteditable");return je&&je!=="inherit"?je:Ve.contentEditable!=="inherit"?Ve.contentEditable:null}else return null},Qd={doc:e,settings:n,win:r,files:c,stdMode:m,boxModel:b,styleSheetLoader:v,boundEvents:x,styles:D,schema:M,events:L,isBlock:oe,root:null,clone:He,getRoot:ht,getViewPort:Jt,getRect:co,getSize:jn,getParent:Zs,getParents:ms,get:G,getNext:wa,getPrev:Uc,select:Vt,is:Wo,add:to,create:so,createHTML:is,createFragment:Mc,remove:$r,setStyle:et,getStyle:pn,setStyles:Qe,removeAllAttribs:$o,setAttrib:De,setAttribs:Ts,getAttrib:xe,getPos:Wt,parseStyle:Ms,serializeStyle:or,addStyle:br,loadCSS:ua,addClass:jr,removeClass:Xa,hasClass:Ju,toggleClass:Da,show:ii,hide:jf,isHidden:Gl,uniqueId:ny,setHTML:sn,getOuterHTML:oy,setOuterHTML:Wf,decode:an,encode:cs,insertAfter:Jd,replace:cc,rename:Qu,findCommonAncestor:Zf,run:Bn,getAttribs:we,isEmpty:ed,createRng:Vm,nodeIndex:Td,split:xi,bind:Qg,unbind:qf,fire:Um,dispatch:Kl,getContentEditable:f_,getContentEditableParent:Ve=>{const je=ht();let Zt=null;for(let Pt=Ve;Pt&&Pt!==je&&(Zt=f_(Pt),Zt===null);Pt=Pt.parentNode);return Zt},isEditable:Ve=>{if(Ke(Ve)){const je=dn(Ve)?Ve:Ve.parentElement,Zt=f_(ht())==="true";return Ke(je)&&Jo(ue.fromDom(je),Zt)}else return!1},destroy:()=>{if(x.length>0){let Ve=x.length;for(;Ve--;){const[je,Zt,Pt]=x[Ve];L.unbind(je,Zt,Pt)}}Nt(c,(Ve,je)=>{v.unload(je),delete c[je]})},isChildOf:(Ve,je)=>Ve===je||je.contains(Ve),dumpRng:Ve=>"startContainer: "+Ve.startContainer.nodeName+", startOffset: "+Ve.startOffset+", endContainer: "+Ve.endContainer.nodeName+", endOffset: "+Ve.endOffset},sy=Zv(D,n,nt(Qd));return Qd};Ar.DOM=Ar(document),Ar.nodeIndex=Td;const tT=Ar.DOM,N_=0,nT=1,Oy=2,Cp=3;class vf{constructor(n={}){this.states={},this.queue=[],this.scriptLoadedCallbacks={},this.queueLoadedCallbacks=[],this.loading=!1,this.settings=n}_setReferrerPolicy(n){this.settings.referrerPolicy=n}loadScript(n){return new Promise((o,r)=>{const c=tT;let u;const m=()=>{c.remove(x),u&&(u.onerror=u.onload=u=null)},b=()=>{m(),o()},v=()=>{m(),r("Failed to load script: "+n)},x=c.uniqueId();u=document.createElement("script"),u.id=x,u.type="text/javascript",u.src=wt._addCacheSuffix(n),this.settings.referrerPolicy&&c.setAttrib(u,"referrerpolicy",this.settings.referrerPolicy),u.onload=b,u.onerror=v,(document.getElementsByTagName("head")[0]||document.body).appendChild(u)})}isDone(n){return this.states[n]===Oy}markDone(n){this.states[n]=Oy}add(n){const o=this;return o.queue.push(n),o.states[n]===void 0&&(o.states[n]=N_),new Promise((c,u)=>{o.scriptLoadedCallbacks[n]||(o.scriptLoadedCallbacks[n]=[]),o.scriptLoadedCallbacks[n].push({resolve:c,reject:u})})}load(n){return this.add(n)}remove(n){delete this.states[n],delete this.scriptLoadedCallbacks[n]}loadQueue(){const n=this.queue;return this.queue=[],this.loadScripts(n)}loadScripts(n){const o=this,r=(v,x)=>{ns(o.scriptLoadedCallbacks,x).each(M=>{Y(M,D=>D[v](x))}),delete o.scriptLoadedCallbacks[x]},c=v=>{const x=Be(v,M=>M.status==="rejected");return x.length>0?Promise.reject($n(x,({reason:M})=>kt(M)?M:[M])):Promise.resolve()},u=v=>Promise.allSettled(Ae(v,x=>o.states[x]===Oy?(r("resolve",x),Promise.resolve()):o.states[x]===Cp?(r("reject",x),Promise.reject(x)):(o.states[x]=nT,o.loadScript(x).then(()=>{o.states[x]=Oy,r("resolve",x);const M=o.queue;return M.length>0?(o.queue=[],u(M).then(c)):Promise.resolve()},()=>(o.states[x]=Cp,r("reject",x),Promise.reject(x)))))),m=v=>(o.loading=!0,u(v).then(x=>{o.loading=!1;const M=o.queueLoadedCallbacks.shift();return I.from(M).each(fn),c(x)})),b=We(n);return o.loading?new Promise((v,x)=>{o.queueLoadedCallbacks.push(()=>m(b).then(v,x))}):m(b)}}vf.ScriptLoader=new vf;const Za=e=>{let n=e;return{get:()=>n,set:c=>{n=c}}},kf=e=>dt(e)&&Un(e,"raw"),qv=e=>kt(e)&&e.length>1,qa={},Gv=Za("en"),zy=()=>ns(qa,Gv.get()),Lu={getData:()=>Ao(qa,e=>({...e})),setCode:e=>{e&&Gv.set(e)},getCode:()=>Gv.get(),add:(e,n)=>{let o=qa[e];o||(qa[e]=o={}),Nt(n,(r,c)=>{o[c.toLowerCase()]=r})},translate:e=>{const n=zy().getOr({}),o=m=>ce(m)?Object.prototype.toString.call(m):r(m)?"":""+m,r=m=>m===""||m===null||m===void 0,c=m=>{const b=o(m);return ns(n,b.toLowerCase()).map(o).getOr(b)},u=m=>m.replace(/{context:\w+}$/,"");if(r(e))return"";if(kf(e))return o(e.raw);if(qv(e)){const m=e.slice(1),b=c(e[0]).replace(/\{([0-9]+)\}/g,(v,x)=>Un(m,x)?o(m[x]):v);return u(b)}return u(c(e))},isRtl:()=>zy().bind(e=>ns(e,"_dir")).exists(e=>e==="rtl"),hasCode:e=>Un(qa,e)},Js=()=>{const e=[],n={},o={},r=[],c=(G,te)=>{const xe=Be(r,we=>we.name===G&&we.state===te);Y(xe,we=>we.resolve())},u=G=>Un(n,G),m=G=>Un(o,G),b=G=>{if(o[G])return o[G].instance},v=(G,te)=>{const xe=Lu.getCode(),we=","+(te||"")+",";!xe||te&&we.indexOf(","+xe+",")===-1||vf.ScriptLoader.add(n[G]+"/langs/"+xe+".js")},x=(G,te)=>{Js.languageLoad!==!1&&(u(G)?v(G,te):oe(G,"loaded").then(()=>v(G,te)))},M=(G,te)=>(e.push(te),o[G]={instance:te},c(G,"added"),te),D=G=>{delete n[G],delete o[G]},L=(G,te)=>q(te)?q(G)?{prefix:"",resource:te,suffix:""}:{prefix:G.prefix,resource:te,suffix:G.suffix}:te,ee=(G,te)=>{if(n[G])return Promise.resolve();let xe=q(te)?te:te.prefix+te.resource+te.suffix;xe.indexOf("/")!==0&&xe.indexOf("://")===-1&&(xe=Js.baseURL+"/"+xe),n[G]=xe.substring(0,xe.lastIndexOf("/"));const we=()=>(c(G,"loaded"),Promise.resolve());return o[G]?we():vf.ScriptLoader.add(xe).then(we)},oe=(G,te="added")=>te==="added"&&m(G)||te==="loaded"&&u(G)?Promise.resolve():new Promise(xe=>{r.push({name:G,state:te,resolve:xe})});return{items:e,urls:n,lookup:o,get:b,requireLangPack:x,add:M,remove:D,createUrl:L,load:ee,waitFor:oe}};Js.languageLoad=!0,Js.baseURL="",Js.PluginManager=Js(),Js.ThemeManager=Js(),Js.ModelManager=Js();const $_=e=>{const n=Za(I.none()),o=()=>n.get().each(e);return{clear:()=>{o(),n.set(I.none())},isSet:()=>n.get().isSome(),get:()=>n.get(),set:b=>{o(),n.set(I.some(b))}}},ha=e=>{const n=Za(I.none()),o=()=>n.get().each(b=>clearInterval(b));return{clear:()=>{o(),n.set(I.none())},isSet:()=>n.get().isSome(),get:()=>n.get(),set:b=>{o(),n.set(I.some(setInterval(b,e)))}}},oc=()=>{const e=$_(ft);return{...e,on:o=>e.get().each(o)}},Ml=(e,n)=>{let o=null;return{cancel:()=>{U(o)||(clearTimeout(o),o=null)},throttle:(...u)=>{U(o)&&(o=setTimeout(()=>{o=null,e.apply(null,u)},n))}}},yi=(e,n)=>{let o=null;const r=()=>{U(o)||(clearTimeout(o),o=null)};return{cancel:r,throttle:(...u)=>{r(),o=setTimeout(()=>{o=null,e.apply(null,u)},n)}}},mg=nt("mce-annotation"),Sp=nt("data-mce-annotation"),wf=nt("data-mce-annotation-uid"),pl=nt("data-mce-annotation-active"),lu=nt("data-mce-annotation-classes"),xp=nt("data-mce-annotation-attrs"),Mh=e=>n=>Ps(n,e),Kv=(e,n)=>{const o=e.selection.getRng(),r=ue.fromDom(o.startContainer),c=ue.fromDom(e.getBody()),u=n.fold(()=>"."+mg(),v=>`[${Sp()}="${v}"]`),m=fd(r,o.startOffset).getOr(r);return oo(m,u,Mh(c)).bind(v=>ei(v,`${wf()}`).bind(x=>ei(v,`${Sp()}`).map(M=>{const D=Tp(e,x);return{uid:x,name:M,elements:D}})))},F_=e=>er(e)&&ld(e,mg()),I_=(e,n)=>Qa(e,"data-mce-bogus")||fp(e,'[data-mce-bogus="all"]',Mh(n)),Tp=(e,n)=>{const o=ue.fromDom(e.getBody()),r=Tc(o,`[${wf()}="${n}"]`);return Be(r,c=>!I_(c,o))},Yv=(e,n)=>{const o=ue.fromDom(e.getBody()),r=Tc(o,`[${Sp()}="${n}"]`),c={};return Y(r,u=>{if(!I_(u,o)){const m=Pc(u,wf()),b=ns(c,m).getOr([]);c[m]=b.concat([u])}}),c},oT=(e,n)=>{const o=Za({}),r=()=>({listeners:[],previous:oc()}),c=(D,L)=>{u(D,ee=>(L(ee),ee))},u=(D,L)=>{const ee=o.get(),oe=ns(ee,D).getOrThunk(r),G=L(oe);ee[D]=G,o.set(ee)},m=(D,L,ee)=>{c(D,oe=>{Y(oe.listeners,G=>G(!0,D,{uid:L,nodes:Ae(ee,te=>te.dom)}))})},b=D=>{c(D,L=>{Y(L.listeners,ee=>ee(!1,D))})},v=(D,L)=>{Y(Tp(e,D),ee=>{L?ea(ee,pl(),"true"):Hr(ee,pl())})},x=yi(()=>{const D=Nn(n.getNames());Y(D,L=>{u(L,ee=>{const oe=ee.previous.get();return Kv(e,I.some(L)).fold(()=>{oe.each(G=>{b(L),ee.previous.clear(),v(G,!1)})},({uid:G,name:te,elements:xe})=>{qr(oe,G)||(oe.each(we=>v(we,!1)),m(te,G,xe),ee.previous.set(G),v(G,!0))}),{previous:ee.previous,listeners:ee.listeners}})})},30);return e.on("remove",()=>{x.cancel()}),e.on("NodeChange",()=>{x.throttle()}),{addListener:(D,L)=>{u(D,ee=>({previous:ee.previous,listeners:ee.listeners.concat([L])}))}}},sT=(e,n)=>{const o=Sp(),r=u=>I.from(u.attr(o)).bind(n.lookup),c=u=>{var m,b;u.attr(wf(),null),u.attr(Sp(),null),u.attr(pl(),null);const v=I.from(u.attr(xp())).map(L=>L.split(",")).getOr([]),x=I.from(u.attr(lu())).map(L=>L.split(",")).getOr([]);Y(v,L=>u.attr(L,null));const M=(b=(m=u.attr("class"))===null||m===void 0?void 0:m.split(" "))!==null&&b!==void 0?b:[],D=Ro(M,[mg()].concat(x));u.attr("class",D.length>0?D.join(" "):null),u.attr(lu(),null),u.attr(xp(),null)};e.serializer.addTempAttr(pl()),e.serializer.addAttributeFilter(o,u=>{for(const m of u)r(m).each(b=>{b.persistent===!1&&(m.name==="span"?m.unwrap():c(m))})})},L_=()=>{const e={};return{register:(c,u)=>{e[c]={name:c,settings:u}},lookup:c=>ns(e,c).map(u=>u.settings),getNames:()=>Es(e)}};let H_=0;const Xv=e=>{const o=new Date().getTime(),r=Math.floor(Math.random()*1e9);return H_++,e+"_"+r+H_+String(o)},V_=(e,n)=>{Y(n,o=>{Au(e,o)})},rT=(e,n)=>{Y(n,o=>{cd(e,o)})},Jv=(e,n)=>ue.fromDom(e.dom.cloneNode(n)),gg=e=>Jv(e,!1),Qv=e=>Jv(e,!0),aT=(e,n)=>{const o=ue.fromTag(n),r=nf(e);return uc(o,r),o},cT=(e,n)=>{const o=aT(e,n);Du(e,o);const r=ja(e);return Ru(o,r),fr(e),o},U_=(e,n,o=Te)=>{const r=new $a(e,n),c=u=>{let m;do m=r[u]();while(m&&!Bt(m)&&!o(m));return I.from(m).filter(Bt)};return{current:()=>I.from(r.current()).filter(Bt),next:()=>c("next"),prev:()=>c("prev"),prev2:()=>c("prev2")}},Br=(e,n)=>{const o=n||(m=>e.isBlock(m)||Vr(m)||Ls(m)),r=(m,b,v,x)=>{if(Bt(m)){const M=x(m,b,m.data);if(M!==-1)return I.some({container:m,offset:M})}return v().bind(M=>r(M.container,M.offset,v,x))};return{backwards:(m,b,v,x)=>{const M=U_(m,x??e.getRoot(),o);return r(m,b,()=>M.prev().map(D=>({container:D,offset:D.length})),v).getOrNull()},forwards:(m,b,v,x)=>{const M=U_(m,x??e.getRoot(),o);return r(m,b,()=>M.next().map(D=>({container:D,offset:0})),v).getOrNull()}}},dm=Math.round,pg=e=>e?{left:dm(e.left),top:dm(e.top),bottom:dm(e.bottom),right:dm(e.right),width:dm(e.width),height:dm(e.height)}:{left:0,top:0,bottom:0,right:0,width:0,height:0},j_=(e,n)=>(e=pg(e),n||(e.left=e.left+e.width),e.right=e.left,e.width=0,e),Ry=(e,n)=>e.left===n.left&&e.top===n.top&&e.bottom===n.bottom&&e.right===n.right,Yc=(e,n,o)=>e>=0&&e<=Math.min(n.height,o.height)/2,Ii=(e,n)=>{const o=Math.min(n.height/2,e.height/2);return e.bottom-on.bottom?!1:Yc(n.top-e.bottom,e,n)},hg=(e,n)=>e.top>n.bottom?!0:e.bottomn>=e.left&&n<=e.right&&o>=e.top&&o<=e.bottom,e0=e=>he(e,(n,o)=>n.fold(()=>I.some(o),r=>{const c=Math.min(o.left,r.left),u=Math.min(o.top,r.top),m=Math.max(o.right,r.right),b=Math.max(o.bottom,r.bottom);return I.some({top:u,right:m,bottom:b,left:c,width:m-c,height:b-u})}),I.none()),W_=(e,n,o)=>{const r=Math.max(Math.min(n,e.left+e.width),e.left),c=Math.max(Math.min(o,e.top+e.height),e.top);return Math.sqrt((n-r)*(n-r)+(o-c)*(o-c))},Z_=(e,n)=>Math.max(0,Math.min(e.bottom,n.bottom)-Math.max(e.top,n.top)),q_=(e,n,o)=>Math.min(Math.max(e,n),o),uu=e=>{const n=e.startContainer,o=e.startOffset;return n===e.endContainer&&n.hasChildNodes()&&e.endOffset===o+1?n.childNodes[o]:null},_f=(e,n)=>{if(dn(e)&&e.hasChildNodes()){const o=e.childNodes,r=q_(n,0,o.length-1);return o[r]}else return e},Ur=(e,n)=>{if(!(n<0&&dn(e)&&e.hasChildNodes()))return _f(e,n)},Ed=new RegExp("[̀-ͯ҃-҇҈-҉֑-ֽֿׁ-ׂׄ-ׇׅؐ-ًؚ-ٰٟۖ-ۜ۟-ۤۧ-۪ۨ-ܑۭܰ-݊ަ-ް߫-߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛ࣣ-ंऺ़ु-ै्॑-ॗॢ-ॣঁ়াু-ৄ্ৗৢ-ৣਁ-ਂ਼ੁ-ੂੇ-ੈੋ-੍ੑੰ-ੱੵઁ-ં઼ુ-ૅે-ૈ્ૢ-ૣଁ଼ାିୁ-ୄ୍ୖୗୢ-ୣஂாீ்ௗఀా-ీె-ైొ-్ౕ-ౖౢ-ౣಁ಼ಿೂೆೌ-್ೕ-ೖೢ-ೣഁാു-ൄ്ൗൢ-ൣ්ාි-ුූෟัิ-ฺ็-๎ັິ-ູົ-ຼ່-ໍ༘-ཱ༹༙༵༷-ཾྀ-྄྆-྇ྍ-ྗྙ-ྼ࿆ိ-ူဲ-့္-်ွ-ှၘ-ၙၞ-ၠၱ-ၴႂႅ-ႆႍႝ፝-፟ᜒ-᜔ᜲ-᜴ᝒ-ᝓᝲ-ᝳ឴-឵ិ-ួំ៉-៓៝᠋-᠍ᢩᤠ-ᤢᤧ-ᤨᤲ᤹-᤻ᨗ-ᨘᨛᩖᩘ-ᩞ᩠ᩢᩥ-ᩬᩳ-᩿᩼᪰-᪽᪾ᬀ-ᬃ᬴ᬶ-ᬺᬼᭂ᭫-᭳ᮀ-ᮁᮢ-ᮥᮨ-ᮩ᮫-ᮭ᯦ᯨ-ᯩᯭᯯ-ᯱᰬ-ᰳᰶ-᰷᳐-᳔᳒-᳢᳠-᳨᳭᳴᳸-᳹᷀-᷵᷼-᷿-⃐-⃜⃝-⃠⃡⃢-⃤⃥-⃰⳯-⵿⳱ⷠ-〪ⷿ-〭〮-゙〯-゚꙯꙰-꙲ꙴ-꙽ꚞ-ꚟ꛰-꛱ꠂ꠆ꠋꠥ-ꠦ꣄꣠-꣱ꤦ-꤭ꥇ-ꥑꦀ-ꦂ꦳ꦶ-ꦹꦼꧥꨩ-ꨮꨱ-ꨲꨵ-ꨶꩃꩌꩼꪰꪲ-ꪴꪷ-ꪸꪾ-꪿꫁ꫬ-ꫭ꫶ꯥꯨ꯭ﬞ︀-️︠-゙︯-゚]"),Hu=e=>q(e)&&e.charCodeAt(0)>=768&&Ed.test(e),iT=(...e)=>n=>{for(let o=0;on=>{for(let o=0;oe?e.createRange():Ar.DOM.createRng(),s0=e=>q(e)&&/[\r\n\t ]/.test(e),fm=e=>!!e.setStart&&!!e.setEnd,Ap=e=>{const n=e.startContainer,o=e.startOffset;if(s0(e.toString())&&lT(n.parentNode)&&Bt(n)){const r=n.data;if(s0(r[o-1])||s0(r[o+1]))return!0}return!1},K_=e=>{const n=e.ownerDocument,o=Ph(n),r=n.createTextNode(tr),c=e.parentNode;c.insertBefore(r,e),o.setStart(r,0),o.setEnd(r,1);const u=pg(o.getBoundingClientRect());return c.removeChild(r),u},Y_=e=>{const n=e.startContainer,o=e.endContainer,r=e.startOffset,c=e.endOffset;if(n===o&&Bt(o)&&r===0&&c===1){const u=e.cloneRange();return u.setEndAfter(o),Vu(u)}else return null},X_=e=>e.left===0&&e.right===0&&e.top===0&&e.bottom===0,Vu=e=>{var n;let o;const r=e.getClientRects();return r.length>0?o=pg(r[0]):o=pg(e.getBoundingClientRect()),!fm(e)&&Bh(e)&&X_(o)?K_(e):X_(o)&&fm(e)&&(n=Y_(e))!==null&&n!==void 0?n:o},Nl=(e,n)=>{const o=j_(e,n);return o.width=1,o.right=o.left+1,o},$h=e=>{const n=[],o=m=>{m.height!==0&&(n.length>0&&Ry(m,n[n.length-1])||n.push(m))},r=(m,b)=>{const v=Ph(m.ownerDocument);if(b0&&(v.setStart(m,b-1),v.setEnd(m,b),Ap(v)||o(Nl(Vu(v),!1))),b{const r=()=>(Nh(e),n===0),c=()=>Nh(e)?n>=e.data.length:n>=e.childNodes.length,u=()=>{const M=Ph(e.ownerDocument);return M.setStart(e,n),M.setEnd(e,n),M},m=()=>(o||(o=$h(Ne(e,n))),o),b=()=>m().length>0,v=M=>M&&e===M.container()&&n===M.offset(),x=M=>Ny(e,M?n-1:n);return{container:nt(e),offset:nt(n),toRange:u,getClientRects:m,isVisible:b,isAtStart:r,isAtEnd:c,isEqual:v,getNode:x}};Ne.fromRangeStart=e=>Ne(e.startContainer,e.startOffset),Ne.fromRangeEnd=e=>Ne(e.endContainer,e.endOffset),Ne.after=e=>Ne(e.parentNode,o0(e)+1),Ne.before=e=>Ne(e.parentNode,o0(e)),Ne.isAbove=(e,n)=>ca(Yn(n.getClientRects()),Lo(e.getClientRects()),Ii).getOr(!1),Ne.isBelow=(e,n)=>ca(Lo(n.getClientRects()),Yn(e.getClientRects()),hg).getOr(!1),Ne.isAtStart=e=>e?e.isAtStart():!1,Ne.isAtEnd=e=>e?e.isAtEnd():!1,Ne.isTextPosition=e=>e?Bt(e.container()):!1,Ne.isElementPosition=e=>!Ne.isTextPosition(e);const Pr=(e,n)=>{Bt(n)&&n.data.length===0&&e.remove(n)},vg=(e,n,o)=>{n.insertNode(o),Pr(e,o.previousSibling),Pr(e,o.nextSibling)},r0=(e,n,o)=>{const r=I.from(o.firstChild),c=I.from(o.lastChild);n.insertNode(o),r.each(u=>Pr(e,u.previousSibling)),c.each(u=>Pr(e,u.nextSibling))},wr=(e,n,o)=>{yd(o)?r0(e,n,o):vg(e,n,o)},du=Bt,Fh=gi,sc=Ar.nodeIndex,Cf=e=>{const n=e.parentNode;return Fh(n)?Cf(n):n},a0=e=>e?Je(e.childNodes,(n,o)=>(Fh(o)&&o.nodeName!=="BR"?n=n.concat(a0(o)):n.push(o),n),[]):[],uT=(e,n)=>{let o=e;for(;(o=o.previousSibling)&&du(o);)n+=o.data.length;return n},c0=e=>n=>e===n,Ih=e=>{let n,o;n=a0(Cf(e)),o=qe(n,c0(e),e),n=n.slice(0,o+1);const r=Je(n,(c,u,m)=>(du(u)&&du(n[m-1])&&c++,c),0);return n=le(n,oi([e.nodeName])),o=qe(n,c0(e),e),o-r},kg=e=>(du(e)?"text()":e.nodeName.toLowerCase())+"["+Ih(e)+"]",i0=(e,n,o)=>{const r=[];for(let c=n.parentNode;c&&c!==e&&!(o&&o(c));c=c.parentNode)r.push(c);return r},By=(e,n)=>{let o=[],r=n.container(),c=n.offset(),u;if(du(r))u=uT(r,c);else{const b=r.childNodes;c>=b.length?(u="after",c=b.length-1):u="before",r=b[c]}o.push(kg(r));let m=i0(e,r);return m=le(m,go(gi)),o=o.concat(qs(m,b=>kg(b))),o.reverse().join("/")+","+u},vi=(e,n,o)=>{let r=a0(e);return r=le(r,(c,u)=>!du(c)||!du(r[u-1])),r=le(r,oi([n])),r[o]},Lh=(e,n)=>{let o=e,r=0;for(;du(o);){const c=o.data.length;if(n>=r&&n<=r+c){e=o,n=n-r;break}if(!du(o.nextSibling)){e=o,n=c;break}r+=c,o=o.nextSibling}return du(e)&&n>e.data.length&&(n=e.data.length),Ne(e,n)},l0=(e,n)=>{if(!n)return null;const o=n.split(","),r=o[0].split("/"),c=o.length>1?o[1]:"before",u=Je(r,(m,b)=>{const v=/([\w\-\(\)]+)\[([0-9]+)\]/.exec(b);return v?(v[1]==="text()"&&(v[1]="#text"),vi(m,v[1],parseInt(v[2],10))):null},e);if(!u)return null;if(!du(u)&&u.parentNode){let m;return c==="after"?m=sc(u)+1:m=sc(u),Ne(u.parentNode,m)}return Lh(u,parseInt(c,10))},Hh=Ls,Op=(e,n,o)=>{let r=e(n.data.slice(0,o)).length;for(let c=n.previousSibling;c&&Bt(c);c=c.previousSibling)r+=e(c.data).length;return r},Xi=(e,n,o,r,c)=>{const u=c?r.startContainer:r.endContainer;let m=c?r.startOffset:r.endOffset;const b=[],v=e.getRoot();if(Bt(u))b.push(o?Op(n,u,m):m);else{let x=0;const M=u.childNodes;m>=M.length&&M.length&&(x=1,m=Math.max(0,M.length-1)),b.push(e.nodeIndex(M[m],o)+x)}for(let x=u;x&&x!==v;x=x.parentNode)b.push(e.nodeIndex(x,o));return b},dT=(e,n,o,r)=>{const c=n.dom,u=Xi(c,e,o,r,!0),m=n.isForward(),b=bp(r)?{isFakeCaret:!0}:{};if(n.isCollapsed())return{start:u,forward:m,...b};{const v=Xi(c,e,o,r,!1);return{start:u,end:v,forward:m,...b}}},fc=(e,n,o)=>{let r=0;return wt.each(e.select(n),c=>{if(c.getAttribute("data-mce-bogus")!=="all"){if(c===o)return!1;r++;return}}),r},J_=(e,n)=>{let o=n?e.startContainer:e.endContainer,r=n?e.startOffset:e.endOffset;if(dn(o)&&o.nodeName==="TR"){const c=o.childNodes;o=c[Math.min(n?r:r-1,c.length-1)],o&&(r=n?0:o.childNodes.length,n?e.setStart(o,r):e.setEnd(o,r))}},Sf=e=>(J_(e,!0),J_(e,!1),e),Vh=(e,n)=>{if(dn(e)&&(e=_f(e,n),Hh(e)))return e;if(ys(e)){Bt(e)&&No(e)&&(e=e.parentNode);let o=e.previousSibling;if(Hh(o)||(o=e.nextSibling,Hh(o)))return o}},Q_=e=>Vh(e.startContainer,e.startOffset)||Vh(e.endContainer,e.endOffset),u0=(e,n,o)=>{const r=o.getNode(),c=o.getRng();if(r.nodeName==="IMG"||Hh(r)){const m=r.nodeName;return{name:m,index:fc(o.dom,m,r)}}const u=Q_(c);if(u){const m=u.tagName;return{name:m,index:fc(o.dom,m,u)}}return dT(e,o,n,c)},d0=e=>{const n=e.getRng();return{start:By(e.dom.getRoot(),Ne.fromRangeStart(n)),end:By(e.dom.getRoot(),Ne.fromRangeEnd(n)),forward:e.isForward()}},f0=e=>({rng:e.getRng(),forward:e.isForward()}),m0=(e,n,o)=>{const r={"data-mce-type":"bookmark",id:n,style:"overflow:hidden;line-height:0px"};return o?e.create("span",r,""):e.create("span",r)},e2=(e,n)=>{const o=e.dom;let r=e.getRng();const c=o.uniqueId(),u=e.isCollapsed(),m=e.getNode(),b=m.nodeName,v=e.isForward();if(b==="IMG")return{name:b,index:fc(o,b,m)};const x=Sf(r.cloneRange());if(!u){x.collapse(!1);const D=m0(o,c+"_end",n);wr(o,x,D)}r=Sf(r),r.collapse(!0);const M=m0(o,c+"_start",n);return wr(o,r,M),e.moveToBookmark({id:c,keep:!0,forward:v}),{id:c,forward:v}},fT=(e,n,o=!1)=>n===2?u0(Mt,o,e):n===3?d0(e):n?f0(e):e2(e,!1),mc=Ye(u0,mo,!0),Ga=e=>{const n=u=>u(e),o=nt(e),r=()=>c,c={tag:!0,inner:e,fold:(u,m)=>m(e),isValue:lt,isError:Te,map:u=>na.value(u(e)),mapError:r,bind:n,exists:n,forall:n,getOr:o,or:r,getOrThunk:o,orThunk:r,getOrDie:o,each:u=>{u(e)},toOptional:()=>I.some(e)};return c},ki=e=>{const n=()=>o,o={tag:!1,inner:e,fold:(r,c)=>r(e),isValue:Te,isError:lt,map:n,mapError:r=>na.error(r(e)),bind:n,exists:Te,forall:lt,getOr:mo,or:mo,getOrThunk:At,orThunk:At,getOrDie:So(String(e)),each:ft,toOptional:I.none};return o},na={value:Ga,error:ki,fromOption:(e,n)=>e.fold(()=>ki(n),Ga)},fu={generate:e=>{if(!kt(e))throw new Error("cases must be an array");if(e.length===0)throw new Error("there must be at least one case");const n=[],o={};return Y(e,(r,c)=>{const u=Es(r);if(u.length!==1)throw new Error("one and only one name per case");const m=u[0],b=r[m];if(o[m]!==void 0)throw new Error("duplicate key detected:"+m);if(m==="cata")throw new Error("cannot have a case named cata (sorry)");if(!kt(b))throw new Error("case arguments must be an array");n.push(m),o[m]=(...v)=>{const x=v.length;if(x!==b.length)throw new Error("Wrong number of arguments to case "+m+". Expected "+b.length+" ("+b+"), got "+x);return{fold:(...D)=>{if(D.length!==e.length)throw new Error("Wrong number of arguments to fold. Expected "+e.length+", got "+D.length);return D[c].apply(null,v)},match:D=>{const L=Es(D);if(n.length!==L.length)throw new Error("Wrong number of arguments to match. Expected: "+n.join(",")+`
Actual: `+L.join(","));if(!wn(n,oe=>ne(L,oe)))throw new Error("Not all branches were specified when using match. Specified: "+L.join(", ")+`
Required: `+n.join(", "));return D[m].apply(null,v)},log:D=>{console.log(D,{constructors:n,constructor:m,params:v})}}}}),o}};fu.generate([{bothErrors:["error1","error2"]},{firstError:["error1","value2"]},{secondError:["value1","error2"]},{bothValues:["value1","value2"]}]);const g0=e=>{const n=[],o=[];return Y(e,r=>{r.fold(c=>{n.push(c)},c=>{o.push(c)})}),{errors:n,values:o}},t2=e=>e.type==="inline-command"||e.type==="inline-format",Py=e=>e.type==="block-command"||e.type==="block-format",$y=e=>{const n=r=>na.error({message:r,pattern:e}),o=(r,c,u)=>{if(e.format!==void 0){let m;if(kt(e.format)){if(!wn(e.format,q))return n(r+" pattern has non-string items in the `format` array");m=e.format}else if(q(e.format))m=[e.format];else return n(r+" pattern has non-string `format` parameter");return na.value(c(m))}else return e.cmd!==void 0?q(e.cmd)?na.value(u(e.cmd,e.value)):n(r+" pattern has non-string `cmd` parameter"):n(r+" pattern is missing both `format` and `cmd` parameters")};if(!dt(e))return n("Raw pattern is not an object");if(!q(e.start))return n("Raw pattern is missing `start` parameter");if(e.end!==void 0){if(!q(e.end))return n("Inline pattern has non-string `end` parameter");if(e.start.length===0&&e.end.length===0)return n("Inline pattern has empty `start` and `end` parameters");let r=e.start,c=e.end;return c.length===0&&(c=r,r=""),o("Inline",u=>({type:"inline-format",start:r,end:c,format:u}),(u,m)=>({type:"inline-command",start:r,end:c,cmd:u,value:m}))}else return e.replacement!==void 0?q(e.replacement)?e.start.length===0?n("Replacement pattern has empty `start` parameter"):na.value({type:"inline-command",start:"",end:e.start,cmd:"mceInsertContent",value:e.replacement}):n("Replacement pattern has non-string `replacement` parameter"):e.start.length===0?n("Block pattern has empty `start` parameter"):o("Block",r=>({type:"block-format",start:e.start,format:r[0]}),(r,c)=>({type:"block-command",start:e.start,cmd:r,value:c}))},Fy=e=>Be(e,Py),Uh=e=>Be(e,t2),Iy=(e,n)=>({inlinePatterns:Uh(e),blockPatterns:Fy(e),dynamicPatternsLookup:n}),p0=e=>{const n=g0(Ae(e,$y));return Y(n.errors,o=>console.error(o.message,o.pattern)),n.values},z5=e=>n=>{const o=e(n);return p0(o)},Ly=os().deviceType,h0=Ly.isTouch(),Hy=Ar.DOM,b0=e=>{const n=e.indexOf("=")>0?e.split(/[;,](?![^=;,]*(?:[;,]|$))/):e.split(",");return he(n,(o,r)=>{const c=r.split("="),u=c[0],m=c.length>1?c[1]:u;return o[Ma(u)]=Ma(m),o},{})},n2=e=>ut(e,RegExp),An=e=>n=>n.options.get(e),y0=e=>q(e)||dt(e),o2=(e,n="")=>o=>{const r=q(o);if(r)if(o.indexOf("=")!==-1){const c=b0(o);return{value:ns(c,e.id).getOr(n),valid:r}}else return{value:o,valid:r};else return{valid:!1,message:"Must be a string."}},s2=e=>{const n=e.options.register;n("id",{processor:"string",default:e.id}),n("selector",{processor:"string"}),n("target",{processor:"object"}),n("suffix",{processor:"string"}),n("cache_suffix",{processor:"string"}),n("base_url",{processor:"string"}),n("referrer_policy",{processor:"string",default:""}),n("language_load",{processor:"boolean",default:!0}),n("inline",{processor:"boolean",default:!1}),n("iframe_attrs",{processor:"object",default:{}}),n("doctype",{processor:"string",default:""}),n("document_base_url",{processor:"string",default:e.documentBaseUrl}),n("body_id",{processor:o2(e,"tinymce"),default:"tinymce"}),n("body_class",{processor:o2(e),default:""}),n("content_security_policy",{processor:"string",default:""}),n("br_in_pre",{processor:"boolean",default:!0}),n("forced_root_block",{processor:o=>{const r=q(o)&&io(o);return r?{value:o,valid:r}:{valid:!1,message:"Must be a non-empty string."}},default:"p"}),n("forced_root_block_attrs",{processor:"object",default:{}}),n("newline_behavior",{processor:o=>{const r=ne(["block","linebreak","invert","default"],o);return r?{value:o,valid:r}:{valid:!1,message:"Must be one of: block, linebreak, invert or default."}},default:"default"}),n("br_newline_selector",{processor:"string",default:".mce-toc h2,figcaption,caption"}),n("no_newline_selector",{processor:"string",default:""}),n("keep_styles",{processor:"boolean",default:!0}),n("end_container_on_empty_block",{processor:o=>xt(o)?{valid:!0,value:o}:q(o)?{valid:!0,value:o}:{valid:!1,message:"Must be boolean or a string"},default:"blockquote"}),n("font_size_style_values",{processor:"string",default:"xx-small,x-small,small,medium,large,x-large,xx-large"}),n("font_size_legacy_values",{processor:"string",default:"xx-small,small,medium,large,x-large,xx-large,300%"}),n("font_size_classes",{processor:"string",default:""}),n("automatic_uploads",{processor:"boolean",default:!0}),n("images_reuse_filename",{processor:"boolean",default:!1}),n("images_replace_blob_uris",{processor:"boolean",default:!0}),n("icons",{processor:"string",default:""}),n("icons_url",{processor:"string",default:""}),n("images_upload_url",{processor:"string",default:""}),n("images_upload_base_path",{processor:"string",default:""}),n("images_upload_credentials",{processor:"boolean",default:!1}),n("images_upload_handler",{processor:"function"}),n("language",{processor:"string",default:"en"}),n("language_url",{processor:"string",default:""}),n("entity_encoding",{processor:"string",default:"named"}),n("indent",{processor:"boolean",default:!0}),n("indent_before",{processor:"string",default:"p,h1,h2,h3,h4,h5,h6,blockquote,div,title,style,pre,script,td,th,ul,ol,li,dl,dt,dd,area,table,thead,tfoot,tbody,tr,section,summary,article,hgroup,aside,figure,figcaption,option,optgroup,datalist"}),n("indent_after",{processor:"string",default:"p,h1,h2,h3,h4,h5,h6,blockquote,div,title,style,pre,script,td,th,ul,ol,li,dl,dt,dd,area,table,thead,tfoot,tbody,tr,section,summary,article,hgroup,aside,figure,figcaption,option,optgroup,datalist"}),n("indent_use_margin",{processor:"boolean",default:!1}),n("indentation",{processor:"string",default:"40px"}),n("content_css",{processor:o=>{const r=o===!1||q(o)||Ze(o,q);return r?q(o)?{value:Ae(o.split(","),Ma),valid:r}:kt(o)?{value:o,valid:r}:o===!1?{value:[],valid:r}:{value:o,valid:r}:{valid:!1,message:"Must be false, a string or an array of strings."}},default:x0(e)?[]:["default"]}),n("content_style",{processor:"string"}),n("content_css_cors",{processor:"boolean",default:!1}),n("font_css",{processor:o=>{const r=q(o)||Ze(o,q);return r?{value:kt(o)?o:Ae(o.split(","),Ma),valid:r}:{valid:!1,message:"Must be a string or an array of strings."}},default:[]}),n("inline_boundaries",{processor:"boolean",default:!0}),n("inline_boundaries_selector",{processor:"string",default:"a[href],code,span.mce-annotation"}),n("object_resizing",{processor:o=>{const r=xt(o)||q(o);return r?o===!1||Ly.isiPhone()||Ly.isiPad()?{value:"",valid:r}:{value:o===!0?"table,img,figure.image,div,video,iframe":o,valid:r}:{valid:!1,message:"Must be boolean or a string"}},default:!h0}),n("resize_img_proportional",{processor:"boolean",default:!0}),n("event_root",{processor:"object"}),n("service_message",{processor:"string"}),n("theme",{processor:o=>o===!1||q(o)||ce(o),default:"silver"}),n("theme_url",{processor:"string"}),n("formats",{processor:"object"}),n("format_empty_lines",{processor:"boolean",default:!1}),n("format_noneditable_selector",{processor:"string",default:""}),n("preview_styles",{processor:o=>{const r=o===!1||q(o);return r?{value:o===!1?"":o,valid:r}:{valid:!1,message:"Must be false or a string"}},default:"font-family font-size font-weight font-style text-decoration text-transform color background-color border border-radius outline text-shadow"}),n("custom_ui_selector",{processor:"string",default:""}),n("hidden_input",{processor:"boolean",default:!0}),n("submit_patch",{processor:"boolean",default:!0}),n("encoding",{processor:"string"}),n("add_form_submit_trigger",{processor:"boolean",default:!0}),n("add_unload_trigger",{processor:"boolean",default:!0}),n("custom_undo_redo_levels",{processor:"number",default:0}),n("disable_nodechange",{processor:"boolean",default:!1}),n("readonly",{processor:"boolean",default:!1}),n("plugins",{processor:"string[]",default:[]}),n("external_plugins",{processor:"object"}),n("forced_plugins",{processor:"string[]"}),n("model",{processor:"string",default:e.hasPlugin("rtc")?"plugin":"dom"}),n("model_url",{processor:"string"}),n("block_unsupported_drop",{processor:"boolean",default:!0}),n("visual",{processor:"boolean",default:!0}),n("visual_table_class",{processor:"string",default:"mce-item-table"}),n("visual_anchor_class",{processor:"string",default:"mce-item-anchor"}),n("iframe_aria_text",{processor:"string",default:"Rich Text Area. Press ALT-0 for help."}),n("setup",{processor:"function"}),n("init_instance_callback",{processor:"function"}),n("url_converter",{processor:"function",default:e.convertURL}),n("url_converter_scope",{processor:"object",default:e}),n("urlconverter_callback",{processor:"function"}),n("allow_conditional_comments",{processor:"boolean",default:!1}),n("allow_html_data_urls",{processor:"boolean",default:!1}),n("allow_svg_data_urls",{processor:"boolean"}),n("allow_html_in_named_anchor",{processor:"boolean",default:!1}),n("allow_script_urls",{processor:"boolean",default:!1}),n("allow_unsafe_link_target",{processor:"boolean",default:!1}),n("convert_fonts_to_spans",{processor:"boolean",default:!0,deprecated:!0}),n("fix_list_elements",{processor:"boolean",default:!1}),n("preserve_cdata",{processor:"boolean",default:!1}),n("remove_trailing_brs",{processor:"boolean"}),n("inline_styles",{processor:"boolean",default:!0,deprecated:!0}),n("element_format",{processor:"string",default:"html"}),n("entities",{processor:"string"}),n("schema",{processor:"string",default:"html5"}),n("convert_urls",{processor:"boolean",default:!0}),n("relative_urls",{processor:"boolean",default:!0}),n("remove_script_host",{processor:"boolean",default:!0}),n("custom_elements",{processor:"string"}),n("extended_valid_elements",{processor:"string"}),n("invalid_elements",{processor:"string"}),n("invalid_styles",{processor:y0}),n("valid_children",{processor:"string"}),n("valid_classes",{processor:y0}),n("valid_elements",{processor:"string"}),n("valid_styles",{processor:y0}),n("verify_html",{processor:"boolean",default:!0}),n("auto_focus",{processor:o=>q(o)||o===!0}),n("browser_spellcheck",{processor:"boolean",default:!1}),n("protect",{processor:"array"}),n("images_file_types",{processor:"string",default:"jpeg,jpg,jpe,jfi,jif,jfif,png,gif,bmp,webp"}),n("deprecation_warnings",{processor:"boolean",default:!0}),n("a11y_advanced_options",{processor:"boolean",default:!1}),n("api_key",{processor:"string"}),n("paste_block_drop",{processor:"boolean",default:!1}),n("paste_data_images",{processor:"boolean",default:!0}),n("paste_preprocess",{processor:"function"}),n("paste_postprocess",{processor:"function"}),n("paste_webkit_styles",{processor:"string",default:"none"}),n("paste_remove_styles_if_webkit",{processor:"boolean",default:!0}),n("paste_merge_formats",{processor:"boolean",default:!0}),n("smart_paste",{processor:"boolean",default:!0}),n("paste_as_text",{processor:"boolean",default:!1}),n("paste_tab_spaces",{processor:"number",default:4}),n("text_patterns",{processor:o=>Ze(o,dt)||o===!1?{value:p0(o===!1?[]:o),valid:!0}:{valid:!1,message:"Must be an array of objects or false."},default:[{start:"*",end:"*",format:"italic"},{start:"**",end:"**",format:"bold"},{start:"#",format:"h1"},{start:"##",format:"h2"},{start:"###",format:"h3"},{start:"####",format:"h4"},{start:"#####",format:"h5"},{start:"######",format:"h6"},{start:"1. ",cmd:"InsertOrderedList"},{start:"* ",cmd:"InsertUnorderedList"},{start:"- ",cmd:"InsertUnorderedList"}]}),n("text_patterns_lookup",{processor:o=>ce(o)?{value:z5(o),valid:!0}:{valid:!1,message:"Must be a single function"},default:o=>[]}),n("noneditable_class",{processor:"string",default:"mceNonEditable"}),n("editable_class",{processor:"string",default:"mceEditable"}),n("noneditable_regexp",{processor:o=>Ze(o,n2)?{value:o,valid:!0}:n2(o)?{value:[o],valid:!0}:{valid:!1,message:"Must be a RegExp or an array of RegExp."},default:[]}),n("table_tab_navigation",{processor:"boolean",default:!0}),n("highlight_on_focus",{processor:"boolean",default:!1}),n("xss_sanitization",{processor:"boolean",default:!0}),e.on("ScriptsLoaded",()=>{n("directionality",{processor:"string",default:Lu.isRtl()?"rtl":void 0}),n("placeholder",{processor:"string",default:Hy.getAttrib(e.getElement(),"placeholder")})})},Ht=An("iframe_attrs"),mT=An("doctype"),gc=An("document_base_url"),gT=An("body_id"),r2=An("body_class"),a2=An("content_security_policy"),Bl=An("br_in_pre"),Pl=An("forced_root_block"),jh=An("forced_root_block_attrs"),mu=An("newline_behavior"),v0=An("br_newline_selector"),Wh=An("no_newline_selector"),Ad=An("keep_styles"),Uu=An("end_container_on_empty_block"),Vy=An("automatic_uploads"),$l=An("images_reuse_filename"),pT=An("images_replace_blob_uris"),Uy=An("icons"),jy=An("icons_url"),mm=An("images_upload_url"),c2=An("images_upload_base_path"),k0=An("images_upload_credentials"),hT=An("images_upload_handler"),i2=An("content_css_cors"),zp=An("referrer_policy"),pc=An("language"),bT=An("language_url"),wg=An("indent_use_margin"),l2=An("indentation"),Wy=An("content_css"),yT=An("content_style"),w0=An("font_css"),vT=An("directionality"),Zh=An("inline_boundaries_selector"),u2=An("object_resizing"),d2=An("resize_img_proportional"),_0=An("placeholder"),C0=An("event_root"),f2=An("service_message"),Od=An("theme"),Zy=An("theme_url"),Fl=An("model"),mr=An("model_url"),Dp=An("inline_boundaries"),ri=An("formats"),S0=An("preview_styles"),m2=An("format_empty_lines"),g2=An("format_noneditable_selector"),qh=An("custom_ui_selector"),x0=An("inline"),p2=An("hidden_input"),h2=An("submit_patch"),kT=An("add_form_submit_trigger"),wT=An("add_unload_trigger"),_T=An("custom_undo_redo_levels"),CT=An("disable_nodechange"),Rp=An("readonly"),T0=An("content_css_cors"),E0=An("plugins"),_g=An("external_plugins"),ST=An("block_unsupported_drop"),xT=An("visual"),TT=An("visual_table_class"),A0=An("visual_anchor_class"),b2=An("iframe_aria_text"),Cg=An("setup"),y2=An("init_instance_callback"),ET=An("urlconverter_callback"),AT=An("auto_focus"),OT=An("browser_spellcheck"),Mp=An("protect"),qy=An("paste_block_drop"),Sg=An("paste_data_images"),Gy=An("paste_preprocess"),v2=An("paste_postprocess"),zd=An("paste_webkit_styles"),Ky=An("paste_remove_styles_if_webkit"),k2=An("paste_merge_formats"),ju=An("smart_paste"),gm=An("paste_as_text"),O0=An("paste_tab_spaces"),w2=An("allow_html_data_urls"),zT=An("text_patterns"),DT=An("text_patterns_lookup"),z0=An("noneditable_class"),RT=An("editable_class"),MT=An("noneditable_regexp"),_2=An("preserve_cdata"),C2=An("highlight_on_focus"),Yy=An("xss_sanitization"),NT=e=>e.options.isSet("text_patterns_lookup"),BT=e=>wt.explode(e.options.get("font_size_style_values")),PT=e=>wt.explode(e.options.get("font_size_classes")),S2=e=>e.options.get("encoding")==="xml",D0=e=>wt.explode(e.options.get("images_file_types")),x2=An("table_tab_navigation"),$T=dn,T2=Bt,Gh=e=>{const n=e.parentNode;n&&n.removeChild(e)},R0=e=>{const n=Mt(e);return{count:e.length-n.length,text:n}},M0=e=>{let n;for(;(n=e.data.lastIndexOf(fe))!==-1;)e.deleteData(n,1)},Np=(e,n)=>(xg(e),n),Xy=(e,n)=>{const o=R0(e.data.substr(0,n.offset())),r=R0(e.data.substr(n.offset()));return(o.text+r.text).length>0?(M0(e),Ne(e,n.offset()-o.count)):n},N0=(e,n)=>{const o=n.container(),r=Ue(Cs(o.childNodes),e).map(c=>cT2(e)&&n.container()===e?Xy(e,n):Np(e,n),A2=(e,n)=>n.container()===e.parentNode?N0(e,n):Np(e,n),O2=(e,n)=>Ne.isTextPosition(n)?E2(e,n):A2(e,n),xg=e=>{$T(e)&&ys(e)&&(Er(e)?e.removeAttribute("data-mce-caret"):Gh(e)),T2(e)&&(M0(e),e.data.length===0&&Gh(e))},z2=Ls,Kh=ma,FT=Ac,B0="*[contentEditable=false],video,audio,embed,object",D2=(e,n,o)=>{const r=j_(n.getBoundingClientRect(),o);let c,u;if(e.tagName==="BODY"){const b=e.ownerDocument.documentElement;c=e.scrollLeft||b.scrollLeft,u=e.scrollTop||b.scrollTop}else{const b=e.getBoundingClientRect();c=e.scrollLeft-b.left,u=e.scrollTop-b.top}r.left+=c,r.right+=c,r.top+=u,r.bottom+=u,r.width=1;let m=n.offsetWidth-n.clientWidth;return m>0&&(o&&(m*=-1),r.left+=m,r.right+=m),r},IT=e=>{var n,o;const r=Tc(ue.fromDom(e),B0);for(let c=0;c{const c=oc();let u,m;const b=Pl(e),v=e.dom,x=(G,te)=>{let xe;if(M(),FT(te))return null;if(o(te)){const we=au(b,te,G),De=D2(n,te,G);v.setStyle(we,"top",De.top),m=we;const He=v.create("div",{class:"mce-visual-caret","data-mce-bogus":"all"});v.setStyles(He,{...De}),v.add(n,He),c.set({caret:He,element:te,before:G}),G&&v.addClass(He,"mce-visual-caret-before"),D(),xe=te.ownerDocument.createRange(),xe.setStart(we,0),xe.setEnd(we,0)}else return m=Ni(te,G),xe=te.ownerDocument.createRange(),Yh(m.nextSibling)?(xe.setStart(m,0),xe.setEnd(m,0)):(xe.setStart(m,1),xe.setEnd(m,1)),xe;return xe},M=()=>{IT(n),m&&(xg(m),m=null),c.on(G=>{v.remove(G.caret),c.clear()}),u&&(clearInterval(u),u=void 0)},D=()=>{u=setInterval(()=>{c.on(G=>{r()?v.toggleClass(G.caret,"mce-visual-caret-hidden"):v.addClass(G.caret,"mce-visual-caret-hidden")})},500)};return{show:x,hide:M,getCss:()=>".mce-visual-caret {position: absolute;background-color: black;background-color: currentcolor;}.mce-visual-caret-hidden {display: none;}*[data-mce-caret] {position: absolute;left: -1000px;right: auto;top: 0;margin: 0;padding: 0;}",reposition:()=>{c.on(G=>{const te=D2(n,G.element,G.before);v.setStyles(G.caret,{...te})})},destroy:()=>clearInterval(u)}},Jy=()=>_s.browser.isFirefox(),Yh=e=>z2(e)||Kh(e),xf=e=>(Yh(e)||Yr(e)&&Jy())&&sf(ue.fromDom(e)).exists(Jo),HT=Ys,P0=Ls,R2=ma,Xc=Qm("display","block table table-cell table-caption list-item"),M2=ys,Tg=No,VT=dn,Xh=Bt,N2=bi,Bp=e=>e>0,Eg=e=>e<0,Jh=(e,n)=>{let o;for(;o=e(n);)if(!Tg(o))return o;return null},pm=(e,n,o,r,c)=>{const u=new $a(e,r),m=P0(e)||Tg(e);let b;if(Eg(n)){if(m&&(b=Jh(u.prev.bind(u),!0),o(b)))return b;for(;b=Jh(u.prev.bind(u),c);)if(o(b))return b}if(Bp(n)){if(m&&(b=Jh(u.next.bind(u),!0),o(b)))return b;for(;b=Jh(u.next.bind(u),c);)if(o(b))return b}return null},UT=(e,n)=>{const o=c=>HT(c.dom),r=c=>c.dom===n;return vr(ue.fromDom(e),o,r).map(c=>c.dom).getOr(n)},Ka=(e,n)=>{for(;e&&e!==n;){if(Xc(e))return e;e=e.parentNode}return null},hl=(e,n,o)=>Ka(e.container(),o)===Ka(n.container(),o),Qy=(e,n)=>{if(!n)return I.none();const o=n.container(),r=n.offset();return VT(o)?I.from(o.childNodes[r+e]):I.none()},B2=(e,n)=>{var o;const c=((o=n.ownerDocument)!==null&&o!==void 0?o:document).createRange();return e?(c.setStartBefore(n),c.setEndBefore(n)):(c.setStartAfter(n),c.setEndAfter(n)),c},P2=(e,n,o)=>Ka(n,e)===Ka(o,e),$0=(e,n,o)=>{const r=e?"previousSibling":"nextSibling";let c=o;for(;c&&c!==n;){let u=c[r];if(u&&M2(u)&&(u=u[r]),P0(u)||R2(u)){if(P2(n,u,c))return u;break}if(N2(u))break;c=c.parentNode}return null},Ag=Ye(B2,!0),Qh=Ye(B2,!1),Og=(e,n,o)=>{let r;const c=Ye($0,!0,n),u=Ye($0,!1,n),m=o.startContainer,b=o.startOffset;if(No(m)){const v=Xh(m)?m.parentNode:m,x=v.getAttribute("data-mce-caret");if(x==="before"&&(r=v.nextSibling,xf(r)))return Ag(r);if(x==="after"&&(r=v.previousSibling,xf(r)))return Qh(r)}if(!o.collapsed)return o;if(Bt(m)){if(M2(m)){if(e===1){if(r=u(m),r)return Ag(r);if(r=c(m),r)return Qh(r)}if(e===-1){if(r=c(m),r)return Qh(r);if(r=u(m),r)return Ag(r)}return o}if(kd(m)&&b>=m.data.length-1)return e===1&&(r=u(m),r)?Ag(r):o;if(df(m)&&b<=1)return e===-1&&(r=c(m),r)?Qh(r):o;if(b===m.data.length)return r=u(m),r?Ag(r):o;if(b===0)return r=c(m),r?Qh(r):o}return o},D5=(e,n)=>Qy(e?0:-1,n).filter(P0),Pp=(e,n,o)=>{const r=Og(e,n,o);return e===-1?Ne.fromRangeStart(r):Ne.fromRangeEnd(r)},eb=e=>I.from(e.getNode()).map(ue.fromDom),zg=e=>I.from(e.getNode(!0)).map(ue.fromDom),F0=(e,n)=>{let o=n;for(;o=e(o);)if(o.isVisible())return o;return o},$p=(e,n)=>{const o=hl(e,n);return!o&&Vr(e.getNode())?!0:o};var hc;(function(e){e[e.Backwards=-1]="Backwards",e[e.Forwards=1]="Forwards"})(hc||(hc={}));const I0=Ls,Wu=Bt,Dd=dn,hm=Vr,Dg=bi,e1=Av,t1=Bi,jT=(e,n)=>{const o=[];let r=e;for(;r&&r!==n;)o.push(r),r=r.parentNode;return o},n1=(e,n)=>e.hasChildNodes()&&n{if(Bp(e)){if(Dg(n.previousSibling)&&!Wu(n.previousSibling))return Ne.before(n);if(Wu(n))return Ne(n,0)}if(Eg(e)){if(Dg(n.nextSibling)&&!Wu(n.nextSibling))return Ne.after(n);if(Wu(n))return Ne(n,n.data.length)}return Eg(e)?hm(n)?Ne.before(n):Ne.after(n):Ne.before(n)},$2=(e,n)=>{const o=n.nextSibling;return o&&Dg(o)?Wu(o)?Ne(o,0):Ne.before(o):o1(hc.Forwards,Ne.after(n),e)},o1=(e,n,o)=>{let r,c,u,m;if(!Dd(o)||!n)return null;if(n.isEqual(Ne.after(o))&&o.lastChild){if(m=Ne.after(o.lastChild),Eg(e)&&Dg(o.lastChild)&&Dd(o.lastChild))return hm(o.lastChild)?Ne.before(o.lastChild):m}else m=n;const b=m.container();let v=m.offset();if(Wu(b)){if(Eg(e)&&v>0)return Ne(b,--v);if(Bp(e)&&v0&&(c=n1(b,v-1),Dg(c)))return!e1(c)&&(u=pm(c,e,t1,c),u)?Wu(u)?Ne(u,u.data.length):Ne.after(u):Wu(c)?Ne(c,c.data.length):Ne.before(c);if(Bp(e)&&v({next:n=>o1(hc.Forwards,n,e),prev:n=>o1(hc.Backwards,n,e)}),WT=(e,n,o)=>{const r=e?Ne.before(o):Ne.after(o);return Il(e,n,r)},ZT=e=>Vr(e)?Ne.before(e):Ne.after(e),L0=e=>Ne.isTextPosition(e)?e.offset()===0:bi(e.getNode()),H0=e=>{if(Ne.isTextPosition(e)){const n=e.container();return e.offset()===n.data.length}else return bi(e.getNode(!0))},nb=(e,n)=>!Ne.isTextPosition(e)&&!Ne.isTextPosition(n)&&e.getNode()===n.getNode(!0),F2=e=>!Ne.isTextPosition(e)&&Vr(e.getNode()),I2=(e,n,o)=>e?!nb(n,o)&&!F2(n)&&H0(n)&&L0(o):!nb(o,n)&&L0(n)&&H0(o),Il=(e,n,o)=>{const r=gu(n);return I.from(e?r.next(o):r.prev(o))},s1=(e,n,o)=>Il(e,n,o).bind(r=>hl(o,r,n)&&I2(e,o,r)?Il(e,n,r):I.some(r)),L2=(e,n,o,r)=>s1(e,n,o).bind(c=>r(c)?L2(e,n,c,r):I.some(c)),Rd=(e,n)=>{const o=e?n.firstChild:n.lastChild;return Bt(o)?I.some(Ne(o,e?0:o.data.length)):o?bi(o)?I.some(e?Ne.before(o):ZT(o)):WT(e,n,o):I.none()},bl=Ye(Il,!0),pu=Ye(Il,!1),Qi=Ye(Rd,!0),bm=Ye(Rd,!1),ym="_mce_caret",oa=e=>dn(e)&&e.id===ym,Tf=(e,n)=>{let o=n;for(;o&&o!==e;){if(oa(o))return o;o=o.parentNode}return null},ob=e=>q(e.start),Rg=e=>Un(e,"rng"),r1=e=>Un(e,"id"),a1=e=>Un(e,"name"),V0=e=>wt.isArray(e.start),c1=e=>!a1(e)&&xt(e.forward)?e.forward:!0,H2=(e,n)=>(dn(n)&&e.isBlock(n)&&!n.innerHTML&&(n.innerHTML=' '),n),qT=(e,n)=>{const o=I.from(l0(e.getRoot(),n.start)),r=I.from(l0(e.getRoot(),n.end));return ca(o,r,(c,u)=>{const m=e.createRng();return m.setStart(c.container(),c.offset()),m.setEnd(u.container(),u.offset()),{range:m,forward:c1(n)}})},Md=(e,n)=>{var o;const c=((o=e.ownerDocument)!==null&&o!==void 0?o:document).createTextNode(fe);e.appendChild(c),n.setStart(c,0),n.setEnd(c,0)},sb=e=>!e.hasChildNodes(),U0=(e,n)=>bm(e).fold(Te,o=>(n.setStart(o.container(),o.offset()),n.setEnd(o.container(),o.offset()),!0)),Nd=(e,n,o)=>sb(n)&&Tf(e,n)?(Md(n,o),!0):!1,j0=(e,n,o,r)=>{const c=o[n?"start":"end"],u=e.getRoot();if(c){let m=u,b=c[0];for(let v=c.length-1;m&&v>=1;v--){const x=m.childNodes;if(Nd(u,m,r))return!0;if(c[v]>x.length-1)return Nd(u,m,r)?!0:U0(m,r);m=x[c[v]]}Bt(m)&&(b=Math.min(c[0],m.data.length)),dn(m)&&(b=Math.min(c[0],m.childNodes.length)),n?r.setStart(m,b):r.setEnd(m,b)}return!0},rb=e=>Bt(e)&&e.data.length>0,vm=(e,n,o)=>{const r=e.get(o.id+"_"+n),c=r==null?void 0:r.parentNode,u=o.keep;if(r&&c){let m,b;if(n==="start"?u?r.hasChildNodes()?(m=r.firstChild,b=1):rb(r.nextSibling)?(m=r.nextSibling,b=0):rb(r.previousSibling)?(m=r.previousSibling,b=r.previousSibling.data.length):(m=c,b=e.nodeIndex(r)+1):(m=c,b=e.nodeIndex(r)):u?r.hasChildNodes()?(m=r.firstChild,b=1):rb(r.previousSibling)?(m=r.previousSibling,b=r.previousSibling.data.length):(m=c,b=e.nodeIndex(r)):(m=c,b=e.nodeIndex(r)),!u){const v=r.previousSibling,x=r.nextSibling;wt.each(wt.grep(r.childNodes),D=>{Bt(D)&&(D.data=D.data.replace(/\uFEFF/g,""))});let M;for(;M=e.get(o.id+"_"+n);)e.remove(M,!0);if(Bt(x)&&Bt(v)&&!_s.browser.isOpera()){const D=v.data.length;v.appendData(x.data),e.remove(x),m=v,b=D}}return I.some(Ne(m,b))}else return I.none()},W0=(e,n)=>{const o=e.createRng();return j0(e,!0,n,o)&&j0(e,!1,n,o)?I.some({range:o,forward:c1(n)}):I.none()},V2=(e,n)=>{const o=vm(e,"start",n),r=vm(e,"end",n);return ca(o,r.or(o),(c,u)=>{const m=e.createRng();return m.setStart(H2(e,c.container()),c.offset()),m.setEnd(H2(e,u.container()),u.offset()),{range:m,forward:c1(n)}})},Z0=(e,n)=>I.from(e.select(n.name)[n.index]).map(o=>{const r=e.createRng();return r.selectNode(o),{range:r,forward:!0}}),km=(e,n)=>{const o=e.dom;if(n){if(V0(n))return W0(o,n);if(ob(n))return qT(o,n);if(r1(n))return V2(o,n);if(a1(n))return Z0(o,n);if(Rg(n))return I.some({range:n.rng,forward:c1(n)})}return I.none()},GT=(e,n,o)=>fT(e,n,o),Bd=(e,n)=>{km(e,n).each(({range:o,forward:r})=>{e.setRng(o,r)})},yl=e=>dn(e)&&e.tagName==="SPAN"&&e.getAttribute("data-mce-type")==="bookmark",i1=(e=>n=>e===n)(tr),ab=e=>e!==""&&` \f
diff --git a/public/admin/assets/Tinymce-3c9e549f.js.gz b/public/admin/assets/Tinymce-3c9e549f.js.gz
new file mode 100644
index 0000000..780a97f
Binary files /dev/null and b/public/admin/assets/Tinymce-3c9e549f.js.gz differ
diff --git a/public/admin/assets/Tinymce-4af52130.js.gz b/public/admin/assets/Tinymce-4af52130.js.gz
deleted file mode 100644
index b9eb40d..0000000
Binary files a/public/admin/assets/Tinymce-4af52130.js.gz and /dev/null differ
diff --git a/public/admin/assets/codemirror-744c9f2b.js.gz b/public/admin/assets/codemirror-744c9f2b.js.gz
deleted file mode 100644
index 275bf19..0000000
Binary files a/public/admin/assets/codemirror-744c9f2b.js.gz and /dev/null differ
diff --git a/resources/admin-views/dist/assets/codemirror-744c9f2b.js b/public/admin/assets/codemirror-b187e7af.js
similarity index 99%
rename from resources/admin-views/dist/assets/codemirror-744c9f2b.js
rename to public/admin/assets/codemirror-b187e7af.js
index e5d096a..d1e4528 100644
--- a/resources/admin-views/dist/assets/codemirror-744c9f2b.js
+++ b/public/admin/assets/codemirror-b187e7af.js
@@ -1,4 +1,4 @@
-import{c as uu}from"./index-dfab27d5.js";var Dn={exports:{}},Ko;function cu(){return Ko||(Ko=1,function(_o,fu){(function(re,Lr){_o.exports=Lr()})(uu,function(){var re=navigator.userAgent,Lr=navigator.platform,He=/gecko\/\d/i.test(re),Nn=/MSIE \d/.test(re),An=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(re),kr=/Edge\/(\d+)/.exec(re),A=Nn||An||kr,E=A&&(Nn?document.documentMode||6:+(kr||An)[1]),ie=!kr&&/WebKit\//.test(re),Xo=ie&&/Qt\/\d+\.\d+/.test(re),Ge=!kr&&/Chrome\/(\d+)/.exec(re),On=Ge&&+Ge[1],Ce=/Opera\//.test(re),Tr=/Apple Computer/.test(navigator.vendor),Yo=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(re),qo=/PhantomJS/.test(re),Ut=Tr&&(/Mobile\/\w+/.test(re)||navigator.maxTouchPoints>2),Mr=/Android/.test(re),Kt=Ut||Mr||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(re),ye=Ut||/Mac/.test(Lr),Zo=/\bCrOS\b/.test(re),Qo=/win/i.test(Lr),et=Ce&&re.match(/Version\/(\d*\.\d*)/);et&&(et=Number(et[1])),et&&et>=15&&(Ce=!1,ie=!0);var Wn=ye&&(Xo||Ce&&(et==null||et<12.11)),ci=He||A&&E>=9;function mt(e){return new RegExp("(^|\\s)"+e+"(?:$|\\s)\\s*")}var tt=function(e,t){var i=e.className,r=mt(t).exec(i);if(r){var n=i.slice(r.index+r[0].length);e.className=i.slice(0,r.index)+(n?r[1]+n:"")}};function Ue(e){for(var t=e.childNodes.length;t>0;--t)e.removeChild(e.firstChild);return e}function pe(e,t){return Ue(e).appendChild(t)}function k(e,t,i,r){var n=document.createElement(e);if(i&&(n.className=i),r&&(n.style.cssText=r),typeof t=="string")n.appendChild(document.createTextNode(t));else if(t)for(var l=0;l=t)return o+(t-l);o+=a-l,o+=i-o%i,l=a+1}}var _e=function(){this.id=null,this.f=null,this.time=0,this.handler=pi(this.onTimeout,this)};_e.prototype.onTimeout=function(e){e.id=0,e.time<=+new Date?e.f():setTimeout(e.handler,e.time-+new Date)},_e.prototype.set=function(e,t){this.f=t;var i=+new Date+e;(!this.id||i=t)return r+Math.min(o,t-n);if(n+=l-r,n+=i-n%i,r=l+1,n>=t)return r}}var Ar=[""];function yi(e){for(;Ar.length<=e;)Ar.push(W(Ar)+" ");return Ar[e]}function W(e){return e[e.length-1]}function Or(e,t){for(var i=[],r=0;r""&&(e.toUpperCase()!=e.toLowerCase()||jo.test(e))}function Wr(e,t){return t?t.source.indexOf("\\w")>-1&&mi(e)?!0:t.test(e):mi(e)}function En(e){for(var t in e)if(e.hasOwnProperty(t)&&e[t])return!1;return!0}var Vo=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function bi(e){return e.charCodeAt(0)>=768&&Vo.test(e)}function In(e,t,i){for(;(i<0?t>0:ti?-1:1;;){if(t==i)return t;var n=(t+i)/2,l=r<0?Math.ceil(n):Math.floor(n);if(l==t)return e(l)?t:i;e(l)?i=l:t=l+r}}function $o(e,t,i,r){if(!e)return r(t,i,"ltr",0);for(var n=!1,l=0;lt||t==i&&o.to==t)&&(r(Math.max(o.from,t),Math.min(o.to,i),o.level==1?"rtl":"ltr",l),n=!0)}n||r(t,i,"ltr")}var qt=null;function Zt(e,t,i){var r;qt=null;for(var n=0;nt)return n;l.to==t&&(l.from!=l.to&&i=="before"?r=n:qt=n),l.from==t&&(l.from!=l.to&&i!="before"?r=n:qt=n)}return r??qt}var ea=function(){var e="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",t="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function i(u){return u<=247?e.charAt(u):1424<=u&&u<=1524?"R":1536<=u&&u<=1785?t.charAt(u-1536):1774<=u&&u<=2220?"r":8192<=u&&u<=8203?"w":u==8204?"b":"L"}var r=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,n=/[stwN]/,l=/[LRr]/,o=/[Lb1n]/,a=/[1n]/;function s(u,f,h){this.level=u,this.from=f,this.to=h}return function(u,f){var h=f=="ltr"?"L":"R";if(u.length==0||f=="ltr"&&!r.test(u))return!1;for(var d=u.length,c=[],p=0;p-1&&(r[t]=n.slice(0,l).concat(n.slice(l+1)))}}}function G(e,t){var i=xi(e,t);if(i.length)for(var r=Array.prototype.slice.call(arguments,2),n=0;n0}function xt(e){e.prototype.on=function(t,i){T(this,t,i)},e.prototype.off=function(t,i){ve(this,t,i)}}function oe(e){e.preventDefault?e.preventDefault():e.returnValue=!1}function zn(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}function Ci(e){return e.defaultPrevented!=null?e.defaultPrevented:e.returnValue==!1}function Qt(e){oe(e),zn(e)}function wi(e){return e.target||e.srcElement}function Gn(e){var t=e.which;return t==null&&(e.button&1?t=1:e.button&2?t=3:e.button&4&&(t=2)),ye&&e.ctrlKey&&t==1&&(t=3),t}var ta=function(){if(A&&E<9)return!1;var e=k("div");return"draggable"in e||"dragDrop"in e}(),Si;function ra(e){if(Si==null){var t=k("span","");pe(e,k("span",[t,document.createTextNode("x")])),e.firstChild.offsetHeight!=0&&(Si=t.offsetWidth<=1&&t.offsetHeight>2&&!(A&&E<8))}var i=Si?k("span",""):k("span"," ",null,"display: inline-block; width: 1px; margin-right: -1px");return i.setAttribute("cm-text",""),i}var Li;function ia(e){if(Li!=null)return Li;var t=pe(e,document.createTextNode("AخA")),i=rt(t,0,1).getBoundingClientRect(),r=rt(t,1,2).getBoundingClientRect();return Ue(e),!i||i.left==i.right?!1:Li=r.right-i.right<3}var ki=`
+import{c as uu}from"./index-c6e017e7.js";var Dn={exports:{}},Ko;function cu(){return Ko||(Ko=1,function(_o,fu){(function(re,Lr){_o.exports=Lr()})(uu,function(){var re=navigator.userAgent,Lr=navigator.platform,He=/gecko\/\d/i.test(re),Nn=/MSIE \d/.test(re),An=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(re),kr=/Edge\/(\d+)/.exec(re),A=Nn||An||kr,E=A&&(Nn?document.documentMode||6:+(kr||An)[1]),ie=!kr&&/WebKit\//.test(re),Xo=ie&&/Qt\/\d+\.\d+/.test(re),Ge=!kr&&/Chrome\/(\d+)/.exec(re),On=Ge&&+Ge[1],Ce=/Opera\//.test(re),Tr=/Apple Computer/.test(navigator.vendor),Yo=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(re),qo=/PhantomJS/.test(re),Ut=Tr&&(/Mobile\/\w+/.test(re)||navigator.maxTouchPoints>2),Mr=/Android/.test(re),Kt=Ut||Mr||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(re),ye=Ut||/Mac/.test(Lr),Zo=/\bCrOS\b/.test(re),Qo=/win/i.test(Lr),et=Ce&&re.match(/Version\/(\d*\.\d*)/);et&&(et=Number(et[1])),et&&et>=15&&(Ce=!1,ie=!0);var Wn=ye&&(Xo||Ce&&(et==null||et<12.11)),ci=He||A&&E>=9;function mt(e){return new RegExp("(^|\\s)"+e+"(?:$|\\s)\\s*")}var tt=function(e,t){var i=e.className,r=mt(t).exec(i);if(r){var n=i.slice(r.index+r[0].length);e.className=i.slice(0,r.index)+(n?r[1]+n:"")}};function Ue(e){for(var t=e.childNodes.length;t>0;--t)e.removeChild(e.firstChild);return e}function pe(e,t){return Ue(e).appendChild(t)}function k(e,t,i,r){var n=document.createElement(e);if(i&&(n.className=i),r&&(n.style.cssText=r),typeof t=="string")n.appendChild(document.createTextNode(t));else if(t)for(var l=0;l=t)return o+(t-l);o+=a-l,o+=i-o%i,l=a+1}}var _e=function(){this.id=null,this.f=null,this.time=0,this.handler=pi(this.onTimeout,this)};_e.prototype.onTimeout=function(e){e.id=0,e.time<=+new Date?e.f():setTimeout(e.handler,e.time-+new Date)},_e.prototype.set=function(e,t){this.f=t;var i=+new Date+e;(!this.id||i=t)return r+Math.min(o,t-n);if(n+=l-r,n+=i-n%i,r=l+1,n>=t)return r}}var Ar=[""];function yi(e){for(;Ar.length<=e;)Ar.push(W(Ar)+" ");return Ar[e]}function W(e){return e[e.length-1]}function Or(e,t){for(var i=[],r=0;r""&&(e.toUpperCase()!=e.toLowerCase()||jo.test(e))}function Wr(e,t){return t?t.source.indexOf("\\w")>-1&&mi(e)?!0:t.test(e):mi(e)}function En(e){for(var t in e)if(e.hasOwnProperty(t)&&e[t])return!1;return!0}var Vo=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function bi(e){return e.charCodeAt(0)>=768&&Vo.test(e)}function In(e,t,i){for(;(i<0?t>0:ti?-1:1;;){if(t==i)return t;var n=(t+i)/2,l=r<0?Math.ceil(n):Math.floor(n);if(l==t)return e(l)?t:i;e(l)?i=l:t=l+r}}function $o(e,t,i,r){if(!e)return r(t,i,"ltr",0);for(var n=!1,l=0;lt||t==i&&o.to==t)&&(r(Math.max(o.from,t),Math.min(o.to,i),o.level==1?"rtl":"ltr",l),n=!0)}n||r(t,i,"ltr")}var qt=null;function Zt(e,t,i){var r;qt=null;for(var n=0;nt)return n;l.to==t&&(l.from!=l.to&&i=="before"?r=n:qt=n),l.from==t&&(l.from!=l.to&&i!="before"?r=n:qt=n)}return r??qt}var ea=function(){var e="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",t="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function i(u){return u<=247?e.charAt(u):1424<=u&&u<=1524?"R":1536<=u&&u<=1785?t.charAt(u-1536):1774<=u&&u<=2220?"r":8192<=u&&u<=8203?"w":u==8204?"b":"L"}var r=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,n=/[stwN]/,l=/[LRr]/,o=/[Lb1n]/,a=/[1n]/;function s(u,f,h){this.level=u,this.from=f,this.to=h}return function(u,f){var h=f=="ltr"?"L":"R";if(u.length==0||f=="ltr"&&!r.test(u))return!1;for(var d=u.length,c=[],p=0;p-1&&(r[t]=n.slice(0,l).concat(n.slice(l+1)))}}}function G(e,t){var i=xi(e,t);if(i.length)for(var r=Array.prototype.slice.call(arguments,2),n=0;n0}function xt(e){e.prototype.on=function(t,i){T(this,t,i)},e.prototype.off=function(t,i){ve(this,t,i)}}function oe(e){e.preventDefault?e.preventDefault():e.returnValue=!1}function zn(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}function Ci(e){return e.defaultPrevented!=null?e.defaultPrevented:e.returnValue==!1}function Qt(e){oe(e),zn(e)}function wi(e){return e.target||e.srcElement}function Gn(e){var t=e.which;return t==null&&(e.button&1?t=1:e.button&2?t=3:e.button&4&&(t=2)),ye&&e.ctrlKey&&t==1&&(t=3),t}var ta=function(){if(A&&E<9)return!1;var e=k("div");return"draggable"in e||"dragDrop"in e}(),Si;function ra(e){if(Si==null){var t=k("span","");pe(e,k("span",[t,document.createTextNode("x")])),e.firstChild.offsetHeight!=0&&(Si=t.offsetWidth<=1&&t.offsetHeight>2&&!(A&&E<8))}var i=Si?k("span",""):k("span"," ",null,"display: inline-block; width: 1px; margin-right: -1px");return i.setAttribute("cm-text",""),i}var Li;function ia(e){if(Li!=null)return Li;var t=pe(e,document.createTextNode("AخA")),i=rt(t,0,1).getBoundingClientRect(),r=rt(t,1,2).getBoundingClientRect();return Ue(e),!i||i.left==i.right?!1:Li=r.right-i.right<3}var ki=`
b`.split(/\n/).length!=3?function(e){for(var t=0,i=[],r=e.length;t<=r;){var n=e.indexOf(`
`,t);n==-1&&(n=e.length);var l=e.slice(t,e.charAt(n-1)=="\r"?n-1:n),o=l.indexOf("\r");o!=-1?(i.push(l.slice(0,o)),t+=o+1):(i.push(l),t=n+1)}return i}:function(e){return e.split(/\r\n?|\n/)},na=window.getSelection?function(e){try{return e.selectionStart!=e.selectionEnd}catch{return!1}}:function(e){var t;try{t=e.ownerDocument.selection.createRange()}catch{}return!t||t.parentElement()!=e?!1:t.compareEndPoints("StartToEnd",t)!=0},la=function(){var e=k("div");return"oncopy"in e?!0:(e.setAttribute("oncopy","return;"),typeof e.oncopy=="function")}(),Ti=null;function oa(e){if(Ti!=null)return Ti;var t=pe(e,k("span","x")),i=t.getBoundingClientRect(),r=rt(t,0,1).getBoundingClientRect();return Ti=Math.abs(i.left-r.left)>1}var Mi={},Ct={};function aa(e,t){arguments.length>2&&(t.dependencies=Array.prototype.slice.call(arguments,2)),Mi[e]=t}function sa(e,t){Ct[e]=t}function Hr(e){if(typeof e=="string"&&Ct.hasOwnProperty(e))e=Ct[e];else if(e&&typeof e.name=="string"&&Ct.hasOwnProperty(e.name)){var t=Ct[e.name];typeof t=="string"&&(t={name:t}),e=Pn(t,e),e.name=t.name}else{if(typeof e=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(e))return Hr("application/xml");if(typeof e=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(e))return Hr("application/json")}return typeof e=="string"?{name:e}:e||{name:"null"}}function Di(e,t){t=Hr(t);var i=Mi[t.name];if(!i)return Di(e,"text/plain");var r=i(e,t);if(wt.hasOwnProperty(t.name)){var n=wt[t.name];for(var l in n)n.hasOwnProperty(l)&&(r.hasOwnProperty(l)&&(r["_"+l]=r[l]),r[l]=n[l])}if(r.name=t.name,t.helperType&&(r.helperType=t.helperType),t.modeProps)for(var o in t.modeProps)r[o]=t.modeProps[o];return r}var wt={};function ua(e,t){var i=wt.hasOwnProperty(e)?wt[e]:wt[e]={};nt(t,i)}function lt(e,t){if(t===!0)return t;if(e.copyState)return e.copyState(t);var i={};for(var r in t){var n=t[r];n instanceof Array&&(n=n.concat([])),i[r]=n}return i}function Ni(e,t){for(var i;e.innerMode&&(i=e.innerMode(t),!(!i||i.mode==e));)t=i.state,e=i.mode;return i||{mode:e,state:t}}function Un(e,t,i){return e.startState?e.startState(t,i):!0}var U=function(e,t,i){this.pos=this.start=0,this.string=e,this.tabSize=t||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=i};U.prototype.eol=function(){return this.pos>=this.string.length},U.prototype.sol=function(){return this.pos==this.lineStart},U.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},U.prototype.next=function(){if(this.post},U.prototype.eatSpace=function(){for(var e=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>e},U.prototype.skipToEnd=function(){this.pos=this.string.length},U.prototype.skipTo=function(e){var t=this.string.indexOf(e,this.pos);if(t>-1)return this.pos=t,!0},U.prototype.backUp=function(e){this.pos-=e},U.prototype.column=function(){return this.lastColumnPos0?null:(l&&t!==!1&&(this.pos+=l[0].length),l)}},U.prototype.current=function(){return this.string.slice(this.start,this.pos)},U.prototype.hideFirstChars=function(e,t){this.lineStart+=e;try{return t()}finally{this.lineStart-=e}},U.prototype.lookAhead=function(e){var t=this.lineOracle;return t&&t.lookAhead(e)},U.prototype.baseToken=function(){var e=this.lineOracle;return e&&e.baseToken(this.pos)};function w(e,t){if(t-=e.first,t<0||t>=e.size)throw new Error("There is no line "+(t+e.first)+" in the document.");for(var i=e;!i.lines;)for(var r=0;;++r){var n=i.children[r],l=n.chunkSize();if(t=e.first&&ti?g(i,w(e,i).text.length):fa(t,w(e,t.line).text.length)}function fa(e,t){var i=e.ch;return i==null||i>t?g(e.line,t):i<0?g(e.line,0):e}function _n(e,t){for(var i=[],r=0;rthis.maxLookAhead&&(this.maxLookAhead=e),t},Ne.prototype.baseToken=function(e){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=e;)this.baseTokenPos+=2;var t=this.baseTokens[this.baseTokenPos+1];return{type:t&&t.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-e}},Ne.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},Ne.fromSaved=function(e,t,i){return t instanceof Er?new Ne(e,lt(e.mode,t.state),i,t.lookAhead):new Ne(e,lt(e.mode,t),i)},Ne.prototype.save=function(e){var t=e!==!1?lt(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new Er(t,this.maxLookAhead):t};function Xn(e,t,i,r){var n=[e.state.modeGen],l={};jn(e,t.text,e.doc.mode,i,function(u,f){return n.push(u,f)},l,r);for(var o=i.state,a=function(u){i.baseTokens=n;var f=e.state.overlays[u],h=1,d=0;i.state=!0,jn(e,t.text,f.mode,i,function(c,p){for(var v=h;dc&&n.splice(h,1,c,n[h+1],y),h+=2,d=Math.min(c,y)}if(p)if(f.opaque)n.splice(v,h-v,c,"overlay "+p),h=v+2;else for(;ve.options.maxHighlightLength&<(e.doc.mode,r.state),l=Xn(e,t,r);n&&(r.state=n),t.stateAfter=r.save(!n),t.styles=l.styles,l.classes?t.styleClasses=l.classes:t.styleClasses&&(t.styleClasses=null),i===e.doc.highlightFrontier&&(e.doc.modeFrontier=Math.max(e.doc.modeFrontier,++e.doc.highlightFrontier))}return t.styles}function jt(e,t,i){var r=e.doc,n=e.display;if(!r.mode.startState)return new Ne(r,!0,t);var l=ha(e,t,i),o=l>r.first&&w(r,l-1).stateAfter,a=o?Ne.fromSaved(r,o,l):new Ne(r,Un(r.mode),l);return r.iter(l,t,function(s){Fi(e,s.text,a);var u=a.line;s.stateAfter=u==t-1||u%5==0||u>=n.viewFrom&&ut.start)return l}throw new Error("Mode "+e.name+" failed to advance stream.")}var Zn=function(e,t,i){this.start=e.start,this.end=e.pos,this.string=e.current(),this.type=t||null,this.state=i};function Qn(e,t,i,r){var n=e.doc,l=n.mode,o;t=D(n,t);var a=w(n,t.line),s=jt(e,t.line,i),u=new U(a.text,e.options.tabSize,s),f;for(r&&(f=[]);(r||u.pose.options.maxHighlightLength?(a=!1,o&&Fi(e,t,r,f.pos),f.pos=t.length,h=null):h=Jn(Pi(i,f,r.state,d),l),d){var c=d[0].name;c&&(h="m-"+(h?c+" "+h:c))}if(!a||u!=h){for(;so;--a){if(a<=l.first)return l.first;var s=w(l,a-1),u=s.stateAfter;if(u&&(!i||a+(u instanceof Er?u.lookAhead:0)<=l.modeFrontier))return a;var f=be(s.text,null,e.options.tabSize);(n==null||r>f)&&(n=a-1,r=f)}return n}function ca(e,t){if(e.modeFrontier=Math.min(e.modeFrontier,t),!(e.highlightFrontieri;r--){var n=w(e,r).stateAfter;if(n&&(!(n instanceof Er)||r+n.lookAhead=t:l.to>t);(r||(r=[])).push(new Ir(o,l.from,s?null:l.to))}}return r}function ma(e,t,i){var r;if(e)for(var n=0;n=t:l.to>t);if(a||l.from==t&&o.type=="bookmark"&&(!i||l.marker.insertLeft)){var s=l.from==null||(o.inclusiveLeft?l.from<=t:l.from0&&a)for(var C=0;C0)){var f=[s,1],h=M(u.from,a.from),d=M(u.to,a.to);(h<0||!o.inclusiveLeft&&!h)&&f.push({from:u.from,to:a.from}),(d>0||!o.inclusiveRight&&!d)&&f.push({from:a.to,to:u.to}),n.splice.apply(n,f),s+=f.length-3}}return n}function el(e){var t=e.markedSpans;if(t){for(var i=0;it)&&(!r||Ii(r,l.marker)<0)&&(r=l.marker)}return r}function nl(e,t,i,r,n){var l=w(e,t),o=Pe&&l.markedSpans;if(o)for(var a=0;a=0&&h<=0||f<=0&&h>=0)&&(f<=0&&(s.marker.inclusiveRight&&n.inclusiveLeft?M(u.to,i)>=0:M(u.to,i)>0)||f>=0&&(s.marker.inclusiveRight&&n.inclusiveLeft?M(u.from,r)<=0:M(u.from,r)<0)))return!0}}}function Se(e){for(var t;t=il(e);)e=t.find(-1,!0).line;return e}function Ca(e){for(var t;t=zr(e);)e=t.find(1,!0).line;return e}function wa(e){for(var t,i;t=zr(e);)e=t.find(1,!0).line,(i||(i=[])).push(e);return i}function Ri(e,t){var i=w(e,t),r=Se(i);return i==r?t:H(r)}function ll(e,t){if(t>e.lastLine())return t;var i=w(e,t),r;if(!Xe(e,i))return t;for(;r=zr(i);)i=r.find(1,!0).line;return H(i)+1}function Xe(e,t){var i=Pe&&t.markedSpans;if(i){for(var r=void 0,n=0;nt.maxLineLength&&(t.maxLineLength=n,t.maxLine=r)})}var St=function(e,t,i){this.text=e,tl(this,t),this.height=i?i(this):1};St.prototype.lineNo=function(){return H(this)},xt(St);function Sa(e,t,i,r){e.text=t,e.stateAfter&&(e.stateAfter=null),e.styles&&(e.styles=null),e.order!=null&&(e.order=null),el(e),tl(e,i);var n=r?r(e):1;n!=e.height&&De(e,n)}function La(e){e.parent=null,el(e)}var ka={},Ta={};function ol(e,t){if(!e||/^\s*$/.test(e))return null;var i=t.addModeClass?Ta:ka;return i[e]||(i[e]=e.replace(/\S+/g,"cm-$&"))}function al(e,t){var i=bt("span",null,null,ie?"padding-right: .1px":null),r={pre:bt("pre",[i],"CodeMirror-line"),content:i,col:0,pos:0,cm:e,trailingSpace:!1,splitSpaces:e.getOption("lineWrapping")};t.measure={};for(var n=0;n<=(t.rest?t.rest.length:0);n++){var l=n?t.rest[n-1]:t.line,o=void 0;r.pos=0,r.addToken=Da,ia(e.display.measure)&&(o=Fe(l,e.doc.direction))&&(r.addToken=Aa(r.addToken,o)),r.map=[];var a=t!=e.display.externalMeasured&&H(l);Oa(l,r,Yn(e,l,a)),l.styleClasses&&(l.styleClasses.bgClass&&(r.bgClass=di(l.styleClasses.bgClass,r.bgClass||"")),l.styleClasses.textClass&&(r.textClass=di(l.styleClasses.textClass,r.textClass||""))),r.map.length==0&&r.map.push(0,0,r.content.appendChild(ra(e.display.measure))),n==0?(t.measure.map=r.map,t.measure.cache={}):((t.measure.maps||(t.measure.maps=[])).push(r.map),(t.measure.caches||(t.measure.caches=[])).push({}))}if(ie){var s=r.content.lastChild;(/\bcm-tab\b/.test(s.className)||s.querySelector&&s.querySelector(".cm-tab"))&&(r.content.className="cm-tab-wrap-hack")}return G(e,"renderLine",e,t.line,r.pre),r.pre.className&&(r.textClass=di(r.pre.className,r.textClass||"")),r}function Ma(e){var t=k("span","•","cm-invalidchar");return t.title="\\u"+e.charCodeAt(0).toString(16),t.setAttribute("aria-label",t.title),t}function Da(e,t,i,r,n,l,o){if(t){var a=e.splitSpaces?Na(t,e.trailingSpace):t,s=e.cm.state.specialChars,u=!1,f;if(!s.test(t))e.col+=t.length,f=document.createTextNode(a),e.map.push(e.pos,e.pos+t.length,f),A&&E<9&&(u=!0),e.pos+=t.length;else{f=document.createDocumentFragment();for(var h=0;;){s.lastIndex=h;var d=s.exec(t),c=d?d.index-h:t.length-h;if(c){var p=document.createTextNode(a.slice(h,h+c));A&&E<9?f.appendChild(k("span",[p])):f.appendChild(p),e.map.push(e.pos,e.pos+c,p),e.col+=c,e.pos+=c}if(!d)break;h+=c+1;var v=void 0;if(d[0]==" "){var y=e.cm.options.tabSize,m=y-e.col%y;v=f.appendChild(k("span",yi(m),"cm-tab")),v.setAttribute("role","presentation"),v.setAttribute("cm-text"," "),e.col+=m}else d[0]=="\r"||d[0]==`
diff --git a/public/admin/assets/codemirror-b187e7af.js.gz b/public/admin/assets/codemirror-b187e7af.js.gz
new file mode 100644
index 0000000..fc3e6e6
Binary files /dev/null and b/public/admin/assets/codemirror-b187e7af.js.gz differ
diff --git a/public/admin/assets/codemirror-5f096095.js b/public/admin/assets/codemirror-ed13a6c6.js
similarity index 74%
rename from public/admin/assets/codemirror-5f096095.js
rename to public/admin/assets/codemirror-ed13a6c6.js
index 1682f6c..3057797 100644
--- a/public/admin/assets/codemirror-5f096095.js
+++ b/public/admin/assets/codemirror-ed13a6c6.js
@@ -1 +1 @@
-import{g as a}from"./index-dfab27d5.js";import{r as f}from"./codemirror-744c9f2b.js";function s(o,c){for(var t=0;tr[e]})}}}return Object.freeze(Object.defineProperty(o,Symbol.toStringTag,{value:"Module"}))}var n=f();const m=a(n),d=s({__proto__:null,default:m},[n]);export{d as c};
+import{g as a}from"./index-c6e017e7.js";import{r as f}from"./codemirror-b187e7af.js";function s(o,c){for(var t=0;tr[e]})}}}return Object.freeze(Object.defineProperty(o,Symbol.toStringTag,{value:"Module"}))}var n=f();const m=a(n),d=s({__proto__:null,default:m},[n]);export{d as c};
diff --git a/resources/admin-views/dist/assets/cssMode-ac1dc3e8.js b/public/admin/assets/cssMode-1ed3d852.js
similarity index 99%
rename from resources/admin-views/dist/assets/cssMode-ac1dc3e8.js
rename to public/admin/assets/cssMode-1ed3d852.js
index 0b5d7a0..3531cd0 100644
--- a/resources/admin-views/dist/assets/cssMode-ac1dc3e8.js
+++ b/public/admin/assets/cssMode-1ed3d852.js
@@ -1,4 +1,4 @@
-import{e as x,R as Me,l as v,a as T,U as Pe}from"./editor.main-1a76a7f4.js";import"./index-dfab27d5.js";var Fe=2*60*1e3,je=function(){function n(t){var a=this;this._defaults=t,this._worker=null,this._idleCheckInterval=window.setInterval(function(){return a._checkIfIdle()},30*1e3),this._lastUsedTime=0,this._configChangeListener=this._defaults.onDidChange(function(){return a._stopWorker()})}return n.prototype._stopWorker=function(){this._worker&&(this._worker.dispose(),this._worker=null),this._client=null},n.prototype.dispose=function(){clearInterval(this._idleCheckInterval),this._configChangeListener.dispose(),this._stopWorker()},n.prototype._checkIfIdle=function(){if(this._worker){var t=Date.now()-this._lastUsedTime;t>Fe&&this._stopWorker()}},n.prototype._getClient=function(){return this._lastUsedTime=Date.now(),this._client||(this._worker=x.createWebWorker({moduleId:"vs/language/css/cssWorker",label:this._defaults.languageId,createData:{options:this._defaults.options,languageId:this._defaults.languageId}}),this._client=this._worker.getProxy()),this._client},n.prototype.getLanguageServiceWorker=function(){for(var t=this,a=[],r=0;r0&&(s.arguments=i),s}n.create=t;function a(r){var e=r;return u.defined(e)&&u.string(e.title)&&u.string(e.command)}n.is=a})(P||(P={}));var A;(function(n){function t(i,o){return{range:i,newText:o}}n.replace=t;function a(i,o){return{range:{start:i,end:i},newText:o}}n.insert=a;function r(i){return{range:i,newText:""}}n.del=r;function e(i){var o=i;return u.objectLiteral(o)&&u.string(o.newText)&&m.is(o.range)}n.is=e})(A||(A={}));var R;(function(n){function t(r,e,i){var o={label:r};return e!==void 0&&(o.needsConfirmation=e),i!==void 0&&(o.description=i),o}n.create=t;function a(r){var e=r;return e!==void 0&&u.objectLiteral(e)&&u.string(e.label)&&(u.boolean(e.needsConfirmation)||e.needsConfirmation===void 0)&&(u.string(e.description)||e.description===void 0)}n.is=a})(R||(R={}));var _;(function(n){function t(a){var r=a;return typeof r=="string"}n.is=t})(_||(_={}));var E;(function(n){function t(i,o,s){return{range:i,newText:o,annotationId:s}}n.replace=t;function a(i,o,s){return{range:{start:i,end:i},newText:o,annotationId:s}}n.insert=a;function r(i,o){return{range:i,newText:"",annotationId:o}}n.del=r;function e(i){var o=i;return A.is(o)&&(R.is(o.annotationId)||_.is(o.annotationId))}n.is=e})(E||(E={}));var V;(function(n){function t(r,e){return{textDocument:r,edits:e}}n.create=t;function a(r){var e=r;return u.defined(e)&&O.is(e.textDocument)&&Array.isArray(e.edits)}n.is=a})(V||(V={}));var L;(function(n){function t(r,e,i){var o={kind:"create",uri:r};return e!==void 0&&(e.overwrite!==void 0||e.ignoreIfExists!==void 0)&&(o.options=e),i!==void 0&&(o.annotationId=i),o}n.create=t;function a(r){var e=r;return e&&e.kind==="create"&&u.string(e.uri)&&(e.options===void 0||(e.options.overwrite===void 0||u.boolean(e.options.overwrite))&&(e.options.ignoreIfExists===void 0||u.boolean(e.options.ignoreIfExists)))&&(e.annotationId===void 0||_.is(e.annotationId))}n.is=a})(L||(L={}));var S;(function(n){function t(r,e,i,o){var s={kind:"rename",oldUri:r,newUri:e};return i!==void 0&&(i.overwrite!==void 0||i.ignoreIfExists!==void 0)&&(s.options=i),o!==void 0&&(s.annotationId=o),s}n.create=t;function a(r){var e=r;return e&&e.kind==="rename"&&u.string(e.oldUri)&&u.string(e.newUri)&&(e.options===void 0||(e.options.overwrite===void 0||u.boolean(e.options.overwrite))&&(e.options.ignoreIfExists===void 0||u.boolean(e.options.ignoreIfExists)))&&(e.annotationId===void 0||_.is(e.annotationId))}n.is=a})(S||(S={}));var F;(function(n){function t(r,e,i){var o={kind:"delete",uri:r};return e!==void 0&&(e.recursive!==void 0||e.ignoreIfNotExists!==void 0)&&(o.options=e),i!==void 0&&(o.annotationId=i),o}n.create=t;function a(r){var e=r;return e&&e.kind==="delete"&&u.string(e.uri)&&(e.options===void 0||(e.options.recursive===void 0||u.boolean(e.options.recursive))&&(e.options.ignoreIfNotExists===void 0||u.boolean(e.options.ignoreIfNotExists)))&&(e.annotationId===void 0||_.is(e.annotationId))}n.is=a})(F||(F={}));var q;(function(n){function t(a){var r=a;return r&&(r.changes!==void 0||r.documentChanges!==void 0)&&(r.documentChanges===void 0||r.documentChanges.every(function(e){return u.string(e.kind)?L.is(e)||S.is(e)||F.is(e):V.is(e)}))}n.is=t})(q||(q={}));var W=function(){function n(t,a){this.edits=t,this.changeAnnotations=a}return n.prototype.insert=function(t,a,r){var e,i;if(r===void 0?e=A.insert(t,a):_.is(r)?(i=r,e=E.insert(t,a,r)):(this.assertChangeAnnotations(this.changeAnnotations),i=this.changeAnnotations.manage(r),e=E.insert(t,a,i)),this.edits.push(e),i!==void 0)return i},n.prototype.replace=function(t,a,r){var e,i;if(r===void 0?e=A.replace(t,a):_.is(r)?(i=r,e=E.replace(t,a,r)):(this.assertChangeAnnotations(this.changeAnnotations),i=this.changeAnnotations.manage(r),e=E.replace(t,a,i)),this.edits.push(e),i!==void 0)return i},n.prototype.delete=function(t,a){var r,e;if(a===void 0?r=A.del(t):_.is(a)?(e=a,r=E.del(t,a)):(this.assertChangeAnnotations(this.changeAnnotations),e=this.changeAnnotations.manage(a),r=E.del(t,e)),this.edits.push(r),e!==void 0)return e},n.prototype.add=function(t){this.edits.push(t)},n.prototype.all=function(){return this.edits},n.prototype.clear=function(){this.edits.splice(0,this.edits.length)},n.prototype.assertChangeAnnotations=function(t){if(t===void 0)throw new Error("Text edit change is not configured to manage change annotations.")},n}(),ae=function(){function n(t){this._annotations=t===void 0?Object.create(null):t,this._counter=0,this._size=0}return n.prototype.all=function(){return this._annotations},Object.defineProperty(n.prototype,"size",{get:function(){return this._size},enumerable:!1,configurable:!0}),n.prototype.manage=function(t,a){var r;if(_.is(t)?r=t:(r=this.nextId(),a=t),this._annotations[r]!==void 0)throw new Error("Id "+r+" is already in use.");if(a===void 0)throw new Error("No annotation provided for id "+r);return this._annotations[r]=a,this._size++,r},n.prototype.nextId=function(){return this._counter++,this._counter.toString()},n}();(function(){function n(t){var a=this;this._textEditChanges=Object.create(null),t!==void 0?(this._workspaceEdit=t,t.documentChanges?(this._changeAnnotations=new ae(t.changeAnnotations),t.changeAnnotations=this._changeAnnotations.all(),t.documentChanges.forEach(function(r){if(V.is(r)){var e=new W(r.edits,a._changeAnnotations);a._textEditChanges[r.textDocument.uri]=e}})):t.changes&&Object.keys(t.changes).forEach(function(r){var e=new W(t.changes[r]);a._textEditChanges[r]=e})):this._workspaceEdit={}}return Object.defineProperty(n.prototype,"edit",{get:function(){return this.initDocumentChanges(),this._changeAnnotations!==void 0&&(this._changeAnnotations.size===0?this._workspaceEdit.changeAnnotations=void 0:this._workspaceEdit.changeAnnotations=this._changeAnnotations.all()),this._workspaceEdit},enumerable:!1,configurable:!0}),n.prototype.getTextEditChange=function(t){if(O.is(t)){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var a={uri:t.uri,version:t.version},r=this._textEditChanges[a.uri];if(!r){var e=[],i={textDocument:a,edits:e};this._workspaceEdit.documentChanges.push(i),r=new W(e,this._changeAnnotations),this._textEditChanges[a.uri]=r}return r}else{if(this.initChanges(),this._workspaceEdit.changes===void 0)throw new Error("Workspace edit is not configured for normal text edit changes.");var r=this._textEditChanges[t];if(!r){var e=[];this._workspaceEdit.changes[t]=e,r=new W(e),this._textEditChanges[t]=r}return r}},n.prototype.initDocumentChanges=function(){this._workspaceEdit.documentChanges===void 0&&this._workspaceEdit.changes===void 0&&(this._changeAnnotations=new ae,this._workspaceEdit.documentChanges=[],this._workspaceEdit.changeAnnotations=this._changeAnnotations.all())},n.prototype.initChanges=function(){this._workspaceEdit.documentChanges===void 0&&this._workspaceEdit.changes===void 0&&(this._workspaceEdit.changes=Object.create(null))},n.prototype.createFile=function(t,a,r){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var e;R.is(a)||_.is(a)?e=a:r=a;var i,o;if(e===void 0?i=L.create(t,r):(o=_.is(e)?e:this._changeAnnotations.manage(e),i=L.create(t,r,o)),this._workspaceEdit.documentChanges.push(i),o!==void 0)return o},n.prototype.renameFile=function(t,a,r,e){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var i;R.is(r)||_.is(r)?i=r:e=r;var o,s;if(i===void 0?o=S.create(t,a,e):(s=_.is(i)?i:this._changeAnnotations.manage(i),o=S.create(t,a,e,s)),this._workspaceEdit.documentChanges.push(o),s!==void 0)return s},n.prototype.deleteFile=function(t,a,r){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var e;R.is(a)||_.is(a)?e=a:r=a;var i,o;if(e===void 0?i=F.create(t,r):(o=_.is(e)?e:this._changeAnnotations.manage(e),i=F.create(t,r,o)),this._workspaceEdit.documentChanges.push(i),o!==void 0)return o},n})();var oe;(function(n){function t(r){return{uri:r}}n.create=t;function a(r){var e=r;return u.defined(e)&&u.string(e.uri)}n.is=a})(oe||(oe={}));var ue;(function(n){function t(r,e){return{uri:r,version:e}}n.create=t;function a(r){var e=r;return u.defined(e)&&u.string(e.uri)&&u.integer(e.version)}n.is=a})(ue||(ue={}));var O;(function(n){function t(r,e){return{uri:r,version:e}}n.create=t;function a(r){var e=r;return u.defined(e)&&u.string(e.uri)&&(e.version===null||u.integer(e.version))}n.is=a})(O||(O={}));var se;(function(n){function t(r,e,i,o){return{uri:r,languageId:e,version:i,text:o}}n.create=t;function a(r){var e=r;return u.defined(e)&&u.string(e.uri)&&u.string(e.languageId)&&u.integer(e.version)&&u.string(e.text)}n.is=a})(se||(se={}));var j;(function(n){n.PlainText="plaintext",n.Markdown="markdown"})(j||(j={}));(function(n){function t(a){var r=a;return r===n.PlainText||r===n.Markdown}n.is=t})(j||(j={}));var Q;(function(n){function t(a){var r=a;return u.objectLiteral(a)&&j.is(r.kind)&&u.string(r.value)}n.is=t})(Q||(Q={}));var l;(function(n){n.Text=1,n.Method=2,n.Function=3,n.Constructor=4,n.Field=5,n.Variable=6,n.Class=7,n.Interface=8,n.Module=9,n.Property=10,n.Unit=11,n.Value=12,n.Enum=13,n.Keyword=14,n.Snippet=15,n.Color=16,n.File=17,n.Reference=18,n.Folder=19,n.EnumMember=20,n.Constant=21,n.Struct=22,n.Event=23,n.Operator=24,n.TypeParameter=25})(l||(l={}));var G;(function(n){n.PlainText=1,n.Snippet=2})(G||(G={}));var ce;(function(n){n.Deprecated=1})(ce||(ce={}));var de;(function(n){function t(r,e,i){return{newText:r,insert:e,replace:i}}n.create=t;function a(r){var e=r;return e&&u.string(e.newText)&&m.is(e.insert)&&m.is(e.replace)}n.is=a})(de||(de={}));var fe;(function(n){n.asIs=1,n.adjustIndentation=2})(fe||(fe={}));var ge;(function(n){function t(a){return{label:a}}n.create=t})(ge||(ge={}));var le;(function(n){function t(a,r){return{items:a||[],isIncomplete:!!r}}n.create=t})(le||(le={}));var z;(function(n){function t(r){return r.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}n.fromPlainText=t;function a(r){var e=r;return u.string(e)||u.objectLiteral(e)&&u.string(e.language)&&u.string(e.value)}n.is=a})(z||(z={}));var he;(function(n){function t(a){var r=a;return!!r&&u.objectLiteral(r)&&(Q.is(r.contents)||z.is(r.contents)||u.typedArray(r.contents,z.is))&&(a.range===void 0||m.is(a.range))}n.is=t})(he||(he={}));var ve;(function(n){function t(a,r){return r?{label:a,documentation:r}:{label:a}}n.create=t})(ve||(ve={}));var pe;(function(n){function t(a,r){for(var e=[],i=2;i=0;f--){var p=c[f],b=i.offsetAt(p.range.start),d=i.offsetAt(p.range.end);if(d<=g)s=s.substring(0,b)+p.newText+s.substring(d,s.length);else throw new Error("Overlapping edit");g=b}return s}n.applyEdits=r;function e(i,o){if(i.length<=1)return i;var s=i.length/2|0,c=i.slice(0,s),g=i.slice(s);e(c,o),e(g,o);for(var f=0,p=0,b=0;fFe&&this._stopWorker()}},n.prototype._getClient=function(){return this._lastUsedTime=Date.now(),this._client||(this._worker=x.createWebWorker({moduleId:"vs/language/css/cssWorker",label:this._defaults.languageId,createData:{options:this._defaults.options,languageId:this._defaults.languageId}}),this._client=this._worker.getProxy()),this._client},n.prototype.getLanguageServiceWorker=function(){for(var t=this,a=[],r=0;r0&&(s.arguments=i),s}n.create=t;function a(r){var e=r;return u.defined(e)&&u.string(e.title)&&u.string(e.command)}n.is=a})(P||(P={}));var A;(function(n){function t(i,o){return{range:i,newText:o}}n.replace=t;function a(i,o){return{range:{start:i,end:i},newText:o}}n.insert=a;function r(i){return{range:i,newText:""}}n.del=r;function e(i){var o=i;return u.objectLiteral(o)&&u.string(o.newText)&&m.is(o.range)}n.is=e})(A||(A={}));var R;(function(n){function t(r,e,i){var o={label:r};return e!==void 0&&(o.needsConfirmation=e),i!==void 0&&(o.description=i),o}n.create=t;function a(r){var e=r;return e!==void 0&&u.objectLiteral(e)&&u.string(e.label)&&(u.boolean(e.needsConfirmation)||e.needsConfirmation===void 0)&&(u.string(e.description)||e.description===void 0)}n.is=a})(R||(R={}));var _;(function(n){function t(a){var r=a;return typeof r=="string"}n.is=t})(_||(_={}));var E;(function(n){function t(i,o,s){return{range:i,newText:o,annotationId:s}}n.replace=t;function a(i,o,s){return{range:{start:i,end:i},newText:o,annotationId:s}}n.insert=a;function r(i,o){return{range:i,newText:"",annotationId:o}}n.del=r;function e(i){var o=i;return A.is(o)&&(R.is(o.annotationId)||_.is(o.annotationId))}n.is=e})(E||(E={}));var V;(function(n){function t(r,e){return{textDocument:r,edits:e}}n.create=t;function a(r){var e=r;return u.defined(e)&&O.is(e.textDocument)&&Array.isArray(e.edits)}n.is=a})(V||(V={}));var L;(function(n){function t(r,e,i){var o={kind:"create",uri:r};return e!==void 0&&(e.overwrite!==void 0||e.ignoreIfExists!==void 0)&&(o.options=e),i!==void 0&&(o.annotationId=i),o}n.create=t;function a(r){var e=r;return e&&e.kind==="create"&&u.string(e.uri)&&(e.options===void 0||(e.options.overwrite===void 0||u.boolean(e.options.overwrite))&&(e.options.ignoreIfExists===void 0||u.boolean(e.options.ignoreIfExists)))&&(e.annotationId===void 0||_.is(e.annotationId))}n.is=a})(L||(L={}));var S;(function(n){function t(r,e,i,o){var s={kind:"rename",oldUri:r,newUri:e};return i!==void 0&&(i.overwrite!==void 0||i.ignoreIfExists!==void 0)&&(s.options=i),o!==void 0&&(s.annotationId=o),s}n.create=t;function a(r){var e=r;return e&&e.kind==="rename"&&u.string(e.oldUri)&&u.string(e.newUri)&&(e.options===void 0||(e.options.overwrite===void 0||u.boolean(e.options.overwrite))&&(e.options.ignoreIfExists===void 0||u.boolean(e.options.ignoreIfExists)))&&(e.annotationId===void 0||_.is(e.annotationId))}n.is=a})(S||(S={}));var F;(function(n){function t(r,e,i){var o={kind:"delete",uri:r};return e!==void 0&&(e.recursive!==void 0||e.ignoreIfNotExists!==void 0)&&(o.options=e),i!==void 0&&(o.annotationId=i),o}n.create=t;function a(r){var e=r;return e&&e.kind==="delete"&&u.string(e.uri)&&(e.options===void 0||(e.options.recursive===void 0||u.boolean(e.options.recursive))&&(e.options.ignoreIfNotExists===void 0||u.boolean(e.options.ignoreIfNotExists)))&&(e.annotationId===void 0||_.is(e.annotationId))}n.is=a})(F||(F={}));var q;(function(n){function t(a){var r=a;return r&&(r.changes!==void 0||r.documentChanges!==void 0)&&(r.documentChanges===void 0||r.documentChanges.every(function(e){return u.string(e.kind)?L.is(e)||S.is(e)||F.is(e):V.is(e)}))}n.is=t})(q||(q={}));var W=function(){function n(t,a){this.edits=t,this.changeAnnotations=a}return n.prototype.insert=function(t,a,r){var e,i;if(r===void 0?e=A.insert(t,a):_.is(r)?(i=r,e=E.insert(t,a,r)):(this.assertChangeAnnotations(this.changeAnnotations),i=this.changeAnnotations.manage(r),e=E.insert(t,a,i)),this.edits.push(e),i!==void 0)return i},n.prototype.replace=function(t,a,r){var e,i;if(r===void 0?e=A.replace(t,a):_.is(r)?(i=r,e=E.replace(t,a,r)):(this.assertChangeAnnotations(this.changeAnnotations),i=this.changeAnnotations.manage(r),e=E.replace(t,a,i)),this.edits.push(e),i!==void 0)return i},n.prototype.delete=function(t,a){var r,e;if(a===void 0?r=A.del(t):_.is(a)?(e=a,r=E.del(t,a)):(this.assertChangeAnnotations(this.changeAnnotations),e=this.changeAnnotations.manage(a),r=E.del(t,e)),this.edits.push(r),e!==void 0)return e},n.prototype.add=function(t){this.edits.push(t)},n.prototype.all=function(){return this.edits},n.prototype.clear=function(){this.edits.splice(0,this.edits.length)},n.prototype.assertChangeAnnotations=function(t){if(t===void 0)throw new Error("Text edit change is not configured to manage change annotations.")},n}(),ae=function(){function n(t){this._annotations=t===void 0?Object.create(null):t,this._counter=0,this._size=0}return n.prototype.all=function(){return this._annotations},Object.defineProperty(n.prototype,"size",{get:function(){return this._size},enumerable:!1,configurable:!0}),n.prototype.manage=function(t,a){var r;if(_.is(t)?r=t:(r=this.nextId(),a=t),this._annotations[r]!==void 0)throw new Error("Id "+r+" is already in use.");if(a===void 0)throw new Error("No annotation provided for id "+r);return this._annotations[r]=a,this._size++,r},n.prototype.nextId=function(){return this._counter++,this._counter.toString()},n}();(function(){function n(t){var a=this;this._textEditChanges=Object.create(null),t!==void 0?(this._workspaceEdit=t,t.documentChanges?(this._changeAnnotations=new ae(t.changeAnnotations),t.changeAnnotations=this._changeAnnotations.all(),t.documentChanges.forEach(function(r){if(V.is(r)){var e=new W(r.edits,a._changeAnnotations);a._textEditChanges[r.textDocument.uri]=e}})):t.changes&&Object.keys(t.changes).forEach(function(r){var e=new W(t.changes[r]);a._textEditChanges[r]=e})):this._workspaceEdit={}}return Object.defineProperty(n.prototype,"edit",{get:function(){return this.initDocumentChanges(),this._changeAnnotations!==void 0&&(this._changeAnnotations.size===0?this._workspaceEdit.changeAnnotations=void 0:this._workspaceEdit.changeAnnotations=this._changeAnnotations.all()),this._workspaceEdit},enumerable:!1,configurable:!0}),n.prototype.getTextEditChange=function(t){if(O.is(t)){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var a={uri:t.uri,version:t.version},r=this._textEditChanges[a.uri];if(!r){var e=[],i={textDocument:a,edits:e};this._workspaceEdit.documentChanges.push(i),r=new W(e,this._changeAnnotations),this._textEditChanges[a.uri]=r}return r}else{if(this.initChanges(),this._workspaceEdit.changes===void 0)throw new Error("Workspace edit is not configured for normal text edit changes.");var r=this._textEditChanges[t];if(!r){var e=[];this._workspaceEdit.changes[t]=e,r=new W(e),this._textEditChanges[t]=r}return r}},n.prototype.initDocumentChanges=function(){this._workspaceEdit.documentChanges===void 0&&this._workspaceEdit.changes===void 0&&(this._changeAnnotations=new ae,this._workspaceEdit.documentChanges=[],this._workspaceEdit.changeAnnotations=this._changeAnnotations.all())},n.prototype.initChanges=function(){this._workspaceEdit.documentChanges===void 0&&this._workspaceEdit.changes===void 0&&(this._workspaceEdit.changes=Object.create(null))},n.prototype.createFile=function(t,a,r){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var e;R.is(a)||_.is(a)?e=a:r=a;var i,o;if(e===void 0?i=L.create(t,r):(o=_.is(e)?e:this._changeAnnotations.manage(e),i=L.create(t,r,o)),this._workspaceEdit.documentChanges.push(i),o!==void 0)return o},n.prototype.renameFile=function(t,a,r,e){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var i;R.is(r)||_.is(r)?i=r:e=r;var o,s;if(i===void 0?o=S.create(t,a,e):(s=_.is(i)?i:this._changeAnnotations.manage(i),o=S.create(t,a,e,s)),this._workspaceEdit.documentChanges.push(o),s!==void 0)return s},n.prototype.deleteFile=function(t,a,r){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var e;R.is(a)||_.is(a)?e=a:r=a;var i,o;if(e===void 0?i=F.create(t,r):(o=_.is(e)?e:this._changeAnnotations.manage(e),i=F.create(t,r,o)),this._workspaceEdit.documentChanges.push(i),o!==void 0)return o},n})();var oe;(function(n){function t(r){return{uri:r}}n.create=t;function a(r){var e=r;return u.defined(e)&&u.string(e.uri)}n.is=a})(oe||(oe={}));var ue;(function(n){function t(r,e){return{uri:r,version:e}}n.create=t;function a(r){var e=r;return u.defined(e)&&u.string(e.uri)&&u.integer(e.version)}n.is=a})(ue||(ue={}));var O;(function(n){function t(r,e){return{uri:r,version:e}}n.create=t;function a(r){var e=r;return u.defined(e)&&u.string(e.uri)&&(e.version===null||u.integer(e.version))}n.is=a})(O||(O={}));var se;(function(n){function t(r,e,i,o){return{uri:r,languageId:e,version:i,text:o}}n.create=t;function a(r){var e=r;return u.defined(e)&&u.string(e.uri)&&u.string(e.languageId)&&u.integer(e.version)&&u.string(e.text)}n.is=a})(se||(se={}));var j;(function(n){n.PlainText="plaintext",n.Markdown="markdown"})(j||(j={}));(function(n){function t(a){var r=a;return r===n.PlainText||r===n.Markdown}n.is=t})(j||(j={}));var Q;(function(n){function t(a){var r=a;return u.objectLiteral(a)&&j.is(r.kind)&&u.string(r.value)}n.is=t})(Q||(Q={}));var l;(function(n){n.Text=1,n.Method=2,n.Function=3,n.Constructor=4,n.Field=5,n.Variable=6,n.Class=7,n.Interface=8,n.Module=9,n.Property=10,n.Unit=11,n.Value=12,n.Enum=13,n.Keyword=14,n.Snippet=15,n.Color=16,n.File=17,n.Reference=18,n.Folder=19,n.EnumMember=20,n.Constant=21,n.Struct=22,n.Event=23,n.Operator=24,n.TypeParameter=25})(l||(l={}));var G;(function(n){n.PlainText=1,n.Snippet=2})(G||(G={}));var ce;(function(n){n.Deprecated=1})(ce||(ce={}));var de;(function(n){function t(r,e,i){return{newText:r,insert:e,replace:i}}n.create=t;function a(r){var e=r;return e&&u.string(e.newText)&&m.is(e.insert)&&m.is(e.replace)}n.is=a})(de||(de={}));var fe;(function(n){n.asIs=1,n.adjustIndentation=2})(fe||(fe={}));var ge;(function(n){function t(a){return{label:a}}n.create=t})(ge||(ge={}));var le;(function(n){function t(a,r){return{items:a||[],isIncomplete:!!r}}n.create=t})(le||(le={}));var z;(function(n){function t(r){return r.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}n.fromPlainText=t;function a(r){var e=r;return u.string(e)||u.objectLiteral(e)&&u.string(e.language)&&u.string(e.value)}n.is=a})(z||(z={}));var he;(function(n){function t(a){var r=a;return!!r&&u.objectLiteral(r)&&(Q.is(r.contents)||z.is(r.contents)||u.typedArray(r.contents,z.is))&&(a.range===void 0||m.is(a.range))}n.is=t})(he||(he={}));var ve;(function(n){function t(a,r){return r?{label:a,documentation:r}:{label:a}}n.create=t})(ve||(ve={}));var pe;(function(n){function t(a,r){for(var e=[],i=2;i=0;f--){var p=c[f],b=i.offsetAt(p.range.start),d=i.offsetAt(p.range.end);if(d<=g)s=s.substring(0,b)+p.newText+s.substring(d,s.length);else throw new Error("Overlapping edit");g=b}return s}n.applyEdits=r;function e(i,o){if(i.length<=1)return i;var s=i.length/2|0,c=i.slice(0,s),g=i.slice(s);e(c,o),e(g,o);for(var f=0,p=0,b=0;f0&&t.push(a.length),this._lineOffsets=t}return this._lineOffsets},n.prototype.positionAt=function(t){t=Math.max(Math.min(t,this._content.length),0);var a=this.getLineOffsets(),r=0,e=a.length;if(e===0)return k.create(0,t);for(;rt?e=i:r=i+1}var o=r-1;return k.create(o,t-a[o])},n.prototype.offsetAt=function(t){var a=this.getLineOffsets();if(t.line>=a.length)return this._content.length;if(t.line<0)return 0;var r=a[t.line],e=t.line+1"u"}n.undefined=r;function e(d){return d===!0||d===!1}n.boolean=e;function i(d){return t.call(d)==="[object String]"}n.string=i;function o(d){return t.call(d)==="[object Number]"}n.number=o;function s(d,y,N){return t.call(d)==="[object Number]"&&y<=d&&d<=N}n.numberRange=s;function c(d){return t.call(d)==="[object Number]"&&-2147483648<=d&&d<=2147483647}n.integer=c;function g(d){return t.call(d)==="[object Number]"&&0<=d&&d<=2147483647}n.uinteger=g;function f(d){return t.call(d)==="[object Function]"}n.func=f;function p(d){return d!==null&&typeof d=="object"}n.objectLiteral=p;function b(d,y){return Array.isArray(d)&&d.every(y)}n.typedArray=b})(u||(u={}));var We=function(){function n(t,a,r){var e=this;this._languageId=t,this._worker=a,this._disposables=[],this._listener=Object.create(null);var i=function(s){var c=s.getLanguageId();if(c===e._languageId){var g;e._listener[s.uri.toString()]=s.onDidChangeContent(function(){window.clearTimeout(g),g=window.setTimeout(function(){return e._doValidate(s.uri,c)},500)}),e._doValidate(s.uri,c)}},o=function(s){x.setModelMarkers(s,e._languageId,[]);var c=s.uri.toString(),g=e._listener[c];g&&(g.dispose(),delete e._listener[c])};this._disposables.push(x.onDidCreateModel(i)),this._disposables.push(x.onWillDisposeModel(o)),this._disposables.push(x.onDidChangeModelLanguage(function(s){o(s.model),i(s.model)})),r.onDidChange(function(s){x.getModels().forEach(function(c){c.getLanguageId()===e._languageId&&(o(c),i(c))})}),this._disposables.push({dispose:function(){for(var s in e._listener)e._listener[s].dispose()}}),x.getModels().forEach(i)}return n.prototype.dispose=function(){this._disposables.forEach(function(t){return t&&t.dispose()}),this._disposables=[]},n.prototype._doValidate=function(t,a){this._worker(t).then(function(r){return r.doValidation(t.toString())}).then(function(r){var e=r.map(function(o){return He(t,o)}),i=x.getModel(t);i&&i.getLanguageId()===a&&x.setModelMarkers(i,a,e)}).then(void 0,function(r){console.error(r)})},n}();function Ue(n){switch(n){case I.Error:return T.Error;case I.Warning:return T.Warning;case I.Information:return T.Info;case I.Hint:return T.Hint;default:return T.Info}}function He(n,t){var a=typeof t.code=="number"?String(t.code):t.code;return{severity:Ue(t.severity),startLineNumber:t.range.start.line+1,startColumn:t.range.start.character+1,endLineNumber:t.range.end.line+1,endColumn:t.range.end.character+1,message:t.message,code:a,source:t.source}}function C(n){if(n)return{character:n.column-1,line:n.lineNumber-1}}function Ve(n){if(n)return{start:{line:n.startLineNumber-1,character:n.startColumn-1},end:{line:n.endLineNumber-1,character:n.endColumn-1}}}function w(n){if(n)return new Me(n.start.line+1,n.start.character+1,n.end.line+1,n.end.character+1)}function Oe(n){return typeof n.insert<"u"&&typeof n.replace<"u"}function ze(n){var t=v.CompletionItemKind;switch(n){case l.Text:return t.Text;case l.Method:return t.Method;case l.Function:return t.Function;case l.Constructor:return t.Constructor;case l.Field:return t.Field;case l.Variable:return t.Variable;case l.Class:return t.Class;case l.Interface:return t.Interface;case l.Module:return t.Module;case l.Property:return t.Property;case l.Unit:return t.Unit;case l.Value:return t.Value;case l.Enum:return t.Enum;case l.Keyword:return t.Keyword;case l.Snippet:return t.Snippet;case l.Color:return t.Color;case l.File:return t.File;case l.Reference:return t.Reference}return t.Property}function J(n){if(n)return{range:w(n.range),text:n.newText}}function Xe(n){return n&&n.command==="editor.action.triggerSuggest"?{id:n.command,title:n.title,arguments:n.arguments}:void 0}var $e=function(){function n(t){this._worker=t}return Object.defineProperty(n.prototype,"triggerCharacters",{get:function(){return["/","-",":"]},enumerable:!1,configurable:!0}),n.prototype.provideCompletionItems=function(t,a,r,e){var i=t.uri;return this._worker(i).then(function(o){return o.doComplete(i.toString(),C(a))}).then(function(o){if(o){var s=t.getWordUntilPosition(a),c=new Me(a.lineNumber,s.startColumn,a.lineNumber,s.endColumn),g=o.items.map(function(f){var p={label:f.label,insertText:f.insertText||f.label,sortText:f.sortText,filterText:f.filterText,documentation:f.documentation,detail:f.detail,command:Xe(f.command),range:c,kind:ze(f.kind)};return f.textEdit&&(Oe(f.textEdit)?p.range={insert:w(f.textEdit.insert),replace:w(f.textEdit.replace)}:p.range=w(f.textEdit.range),p.insertText=f.textEdit.newText),f.additionalTextEdits&&(p.additionalTextEdits=f.additionalTextEdits.map(J)),f.insertTextFormat===G.Snippet&&(p.insertTextRules=v.CompletionItemInsertTextRule.InsertAsSnippet),p});return{isIncomplete:o.isIncomplete,suggestions:g}}})},n}();function Be(n){return n&&typeof n=="object"&&typeof n.kind=="string"}function Te(n){return typeof n=="string"?{value:n}:Be(n)?n.kind==="plaintext"?{value:n.value.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}:{value:n.value}:{value:"```"+n.language+`
`+n.value+"\n```\n"}}function qe(n){if(n)return Array.isArray(n)?n.map(Te):[Te(n)]}var Qe=function(){function n(t){this._worker=t}return n.prototype.provideHover=function(t,a,r){var e=t.uri;return this._worker(e).then(function(i){return i.doHover(e.toString(),C(a))}).then(function(i){if(i)return{range:w(i.range),contents:qe(i.contents)}})},n}();function Ge(n){switch(n){case M.Read:return v.DocumentHighlightKind.Read;case M.Write:return v.DocumentHighlightKind.Write;case M.Text:return v.DocumentHighlightKind.Text}return v.DocumentHighlightKind.Text}var Je=function(){function n(t){this._worker=t}return n.prototype.provideDocumentHighlights=function(t,a,r){var e=t.uri;return this._worker(e).then(function(i){return i.findDocumentHighlights(e.toString(),C(a))}).then(function(i){if(i)return i.map(function(o){return{range:w(o.range),kind:Ge(o.kind)}})})},n}();function Le(n){return{uri:Pe.parse(n.uri),range:w(n.range)}}var Ye=function(){function n(t){this._worker=t}return n.prototype.provideDefinition=function(t,a,r){var e=t.uri;return this._worker(e).then(function(i){return i.findDefinition(e.toString(),C(a))}).then(function(i){if(i)return[Le(i)]})},n}(),Ze=function(){function n(t){this._worker=t}return n.prototype.provideReferences=function(t,a,r,e){var i=t.uri;return this._worker(i).then(function(o){return o.findReferences(i.toString(),C(a))}).then(function(o){if(o)return o.map(Le)})},n}();function Ke(n){if(!(!n||!n.changes)){var t=[];for(var a in n.changes)for(var r=Pe.parse(a),e=0,i=n.changes[a];eY[R]})}}}return Object.freeze(Object.defineProperty(J,Symbol.toStringTag,{value:"Module"}))}var Tt={exports:{}};const Yt=Rt(Bt);(function(J,rt){(function(Y,R){J.exports=R(Yt)})(self,function($){return(()=>{var Y={"./index.js":(L,K,mt)=>{mt.r(K);var O=mt("echarts/lib/echarts");O.extendSeriesModel({type:"series.wordCloud",visualStyleAccessPath:"textStyle",visualStyleMapper:function(f){return{fill:f.get("color")}},visualDrawType:"fill",optionUpdated:function(){var f=this.option;f.gridSize=Math.max(Math.floor(f.gridSize),4)},getInitialData:function(f,o){var a=O.helper.createDimensions(f.data,{coordDimensions:["value"]}),l=new O.List(a,this);return l.initData(f.data),l},defaultOption:{maskImage:null,shape:"circle",keepAspect:!1,left:"center",top:"center",width:"70%",height:"80%",sizeRange:[12,60],rotationRange:[-90,90],rotationStep:45,gridSize:8,drawOutOfBound:!1,shrinkToFit:!1,textStyle:{fontWeight:"normal"}}}),O.extendChartView({type:"wordCloud",render:function(f,o,a){var l=this.group;l.removeAll();var t=f.getData(),x=f.get("gridSize");f.layoutInstance.ondraw=function(d,r,T,P){var B=t.getItemModel(T),q=B.getModel("textStyle"),b=new O.graphic.Text({style:O.helper.createTextStyle(q),scaleX:1/P.info.mu,scaleY:1/P.info.mu,x:(P.gx+P.info.gw/2)*x,y:(P.gy+P.info.gh/2)*x,rotation:P.rot});b.setStyle({x:P.info.fillTextOffsetX,y:P.info.fillTextOffsetY+r*.5,text:d,verticalAlign:"middle",fill:t.getItemVisual(T,"style").fill,fontSize:r}),l.add(b),t.setItemGraphicEl(T,b),b.ensureState("emphasis").style=O.helper.createTextStyle(B.getModel(["emphasis","textStyle"]),{state:"emphasis"}),b.ensureState("blur").style=O.helper.createTextStyle(B.getModel(["blur","textStyle"]),{state:"blur"}),O.helper.enableHoverEmphasis(b,B.get(["emphasis","focus"]),B.get(["emphasis","blurScope"])),b.stateTransition={duration:f.get("animation")?f.get(["stateAnimation","duration"]):0,easing:f.get(["stateAnimation","easing"])},b.__highDownDispatcher=!0},this._model=f},remove:function(){this.group.removeAll(),this._model.layoutInstance.dispose()},dispose:function(){this._model.layoutInstance.dispose()}});/*!
+import{n as Rt,g as Lt}from"./index-c6e017e7.js";import{h as Bt}from"./index-f453d8c4.js";function Xt(J,rt){for(var $=0;$Y[R]})}}}return Object.freeze(Object.defineProperty(J,Symbol.toStringTag,{value:"Module"}))}var Tt={exports:{}};const Yt=Rt(Bt);(function(J,rt){(function(Y,R){J.exports=R(Yt)})(self,function($){return(()=>{var Y={"./index.js":(L,K,mt)=>{mt.r(K);var O=mt("echarts/lib/echarts");O.extendSeriesModel({type:"series.wordCloud",visualStyleAccessPath:"textStyle",visualStyleMapper:function(f){return{fill:f.get("color")}},visualDrawType:"fill",optionUpdated:function(){var f=this.option;f.gridSize=Math.max(Math.floor(f.gridSize),4)},getInitialData:function(f,o){var a=O.helper.createDimensions(f.data,{coordDimensions:["value"]}),l=new O.List(a,this);return l.initData(f.data),l},defaultOption:{maskImage:null,shape:"circle",keepAspect:!1,left:"center",top:"center",width:"70%",height:"80%",sizeRange:[12,60],rotationRange:[-90,90],rotationStep:45,gridSize:8,drawOutOfBound:!1,shrinkToFit:!1,textStyle:{fontWeight:"normal"}}}),O.extendChartView({type:"wordCloud",render:function(f,o,a){var l=this.group;l.removeAll();var t=f.getData(),x=f.get("gridSize");f.layoutInstance.ondraw=function(d,r,T,P){var B=t.getItemModel(T),q=B.getModel("textStyle"),b=new O.graphic.Text({style:O.helper.createTextStyle(q),scaleX:1/P.info.mu,scaleY:1/P.info.mu,x:(P.gx+P.info.gw/2)*x,y:(P.gy+P.info.gh/2)*x,rotation:P.rot});b.setStyle({x:P.info.fillTextOffsetX,y:P.info.fillTextOffsetY+r*.5,text:d,verticalAlign:"middle",fill:t.getItemVisual(T,"style").fill,fontSize:r}),l.add(b),t.setItemGraphicEl(T,b),b.ensureState("emphasis").style=O.helper.createTextStyle(B.getModel(["emphasis","textStyle"]),{state:"emphasis"}),b.ensureState("blur").style=O.helper.createTextStyle(B.getModel(["blur","textStyle"]),{state:"blur"}),O.helper.enableHoverEmphasis(b,B.get(["emphasis","focus"]),B.get(["emphasis","blurScope"])),b.stateTransition={duration:f.get("animation")?f.get(["stateAnimation","duration"]):0,easing:f.get(["stateAnimation","easing"])},b.__highDownDispatcher=!0},this._model=f},remove:function(){this.group.removeAll(),this._model.layoutInstance.dispose()},dispose:function(){this._model.layoutInstance.dispose()}});/*!
* wordcloud2.js
* http://timdream.org/wordcloud2.js/
*
diff --git a/public/admin/assets/echarts-wordcloud-cb413c04.js.gz b/public/admin/assets/echarts-wordcloud-cb413c04.js.gz
new file mode 100644
index 0000000..43d8775
Binary files /dev/null and b/public/admin/assets/echarts-wordcloud-cb413c04.js.gz differ
diff --git a/public/admin/assets/echarts-wordcloud-f9ac2508.js.gz b/public/admin/assets/echarts-wordcloud-f9ac2508.js.gz
deleted file mode 100644
index d078a75..0000000
Binary files a/public/admin/assets/echarts-wordcloud-f9ac2508.js.gz and /dev/null differ
diff --git a/public/admin/assets/editor.main-1a76a7f4.js.gz b/public/admin/assets/editor.main-1a76a7f4.js.gz
deleted file mode 100644
index 2d2cebb..0000000
Binary files a/public/admin/assets/editor.main-1a76a7f4.js.gz and /dev/null differ
diff --git a/resources/admin-views/dist/assets/editor.main-1a76a7f4.js b/public/admin/assets/editor.main-907ec6af.js
similarity index 99%
rename from resources/admin-views/dist/assets/editor.main-1a76a7f4.js
rename to public/admin/assets/editor.main-907ec6af.js
index 846f4d7..9e452f8 100644
--- a/resources/admin-views/dist/assets/editor.main-1a76a7f4.js
+++ b/public/admin/assets/editor.main-907ec6af.js
@@ -1,4 +1,4 @@
-import{_ as ce}from"./index-dfab27d5.js";function IB(s,e){let t;return e.length===0?t=s:t=s.replace(/\{(\d+)\}/g,function(i,n){const o=n[0];return typeof e[o]<"u"?e[o]:i}),t}function p(s,e,...t){return IB(e,t)}var Fw;const m_="en";let tb=!1,ib=!1,__=!1,wR=!1,SR=!1,WD=!1,gm,Bw=m_,EB,Na;const Et=typeof self=="object"?self:typeof global=="object"?global:{};let qi;typeof Et.vscode<"u"&&typeof Et.vscode.process<"u"?qi=Et.vscode.process:typeof process<"u"&&(qi=process);const NB=typeof((Fw=qi==null?void 0:qi.versions)===null||Fw===void 0?void 0:Fw.electron)=="string"&&qi.type==="renderer";if(typeof navigator=="object"&&!NB)Na=navigator.userAgent,tb=Na.indexOf("Windows")>=0,ib=Na.indexOf("Macintosh")>=0,WD=(Na.indexOf("Macintosh")>=0||Na.indexOf("iPad")>=0||Na.indexOf("iPhone")>=0)&&!!navigator.maxTouchPoints&&navigator.maxTouchPoints>0,__=Na.indexOf("Linux")>=0,SR=!0,gm=navigator.language,Bw=gm;else if(typeof qi=="object"){tb=qi.platform==="win32",ib=qi.platform==="darwin",__=qi.platform==="linux",__&&qi.env.SNAP&&qi.env.SNAP_REVISION,gm=m_,Bw=m_;const s=qi.env.VSCODE_NLS_CONFIG;if(s)try{const e=JSON.parse(s),t=e.availableLanguages["*"];gm=e.locale,Bw=t||m_,EB=e._translationsConfigFile}catch{}wR=!0}else console.error("Unable to resolve platform.");const Ai=tb,Me=ib,Cn=__,uo=wR,Tu=SR,lr=WD,TB=Na,qS=function(){if(Et.setImmediate)return Et.setImmediate.bind(Et);if(typeof Et.postMessage=="function"&&!Et.importScripts){let t=[];Et.addEventListener("message",n=>{if(n.data&&n.data.vscodeSetImmediateId)for(let o=0,r=t.length;o{const o=++i;t.push({id:o,callback:n}),Et.postMessage({vscodeSetImmediateId:o},"*")}}if(typeof(qi==null?void 0:qi.nextTick)=="function")return qi.nextTick.bind(qi);const e=Promise.resolve();return t=>e.then(t)}(),Ms=ib||WD?2:tb?1:3;let VI=!0,HI=!1;function yR(){if(!HI){HI=!0;const s=new Uint8Array(2);s[0]=1,s[1]=2,VI=new Uint16Array(s.buffer)[0]===512+1}return VI}const LR="`~!@#$%^&*()-=+[{]}\\|;:'\",.<>/?";function AB(s=""){let e="(-?\\d*\\.\\d\\w*)|([^";for(const t of LR)s.indexOf(t)>=0||(e+="\\"+t);return e+="\\s]+)",new RegExp(e,"g")}const DR=AB();function nb(s){let e=DR;if(s&&s instanceof RegExp)if(s.global)e=s;else{let t="g";s.ignoreCase&&(t+="i"),s.multiline&&(t+="m"),s.unicode&&(t+="u"),e=new RegExp(s.source,t)}return e.lastIndex=0,e}const RB={maxLen:1e3,windowSize:15,timeBudget:150};function sb(s,e,t,i,n=RB){if(t.length>n.maxLen){let d=s-n.maxLen/2;return d<0?d=0:i+=d,t=t.substring(d,s+n.maxLen/2),sb(s,e,t,i,n)}const o=Date.now(),r=s-1-i;let a=-1,l=null;for(let d=1;!(Date.now()-o>=n.timeBudget);d++){const h=r-n.windowSize*d;e.lastIndex=Math.max(0,h);const c=MB(e,t,r,a);if(!c&&l||(l=c,h<=0))break;a=h}if(l){let d={word:l[0],startColumn:i+1+l.index,endColumn:i+1+l.index+l[0].length};return e.lastIndex=0,d}return null}function MB(s,e,t,i){let n;for(;n=s.exec(e);){const o=n.index||0;if(o<=t&&s.lastIndex>=t)return n;if(i>0&&o>i)return null}return null}const Ta=8;class xR{constructor(e){this._values=e}hasChanged(e){return this._values[e]}}class OB{constructor(){this._values=[]}_read(e){return this._values[e]}get(e){return this._values[e]}_write(e,t){this._values[e]=t}}class kR{constructor(){this.stableMinimapLayoutInput=null,this.stableFitMaxMinimapScale=0,this.stableFitRemainingWidth=0}}class pi{constructor(e,t,i,n){this.id=e,this.name=t,this.defaultValue=i,this.schema=n}compute(e,t,i){return i}}class Au{constructor(e,t=null){this.schema=void 0,this.id=e,this.name="_never_",this.defaultValue=void 0,this.deps=t}validate(e){return this.defaultValue}}class _h{constructor(e,t,i,n){this.id=e,this.name=t,this.defaultValue=i,this.schema=n}validate(e){return typeof e>"u"?this.defaultValue:e}compute(e,t,i){return i}}function pe(s,e){return typeof s>"u"?e:s==="false"?!1:!!s}class ze extends _h{constructor(e,t,i,n=void 0){typeof n<"u"&&(n.type="boolean",n.default=i),super(e,t,i,n)}validate(e){return pe(e,this.defaultValue)}}function GS(s,e,t,i){if(typeof s>"u")return e;let n=parseInt(s,10);return isNaN(n)?e:(n=Math.max(t,n),n=Math.min(i,n),n|0)}class St extends _h{constructor(e,t,i,n,o,r=void 0){typeof r<"u"&&(r.type="integer",r.default=i,r.minimum=n,r.maximum=o),super(e,t,i,r),this.minimum=n,this.maximum=o}static clampedInt(e,t,i,n){return GS(e,t,i,n)}validate(e){return St.clampedInt(e,this.defaultValue,this.minimum,this.maximum)}}class er extends _h{constructor(e,t,i,n,o){typeof o<"u"&&(o.type="number",o.default=i),super(e,t,i,o),this.validationFn=n}static clamp(e,t,i){return ei?i:e}static float(e,t){if(typeof e=="number")return e;if(typeof e>"u")return t;const i=parseFloat(e);return isNaN(i)?t:i}validate(e){return this.validationFn(er.float(e,this.defaultValue))}}class kn extends _h{static string(e,t){return typeof e!="string"?t:e}constructor(e,t,i,n=void 0){typeof n<"u"&&(n.type="string",n.default=i),super(e,t,i,n)}validate(e){return kn.string(e,this.defaultValue)}}function mn(s,e,t){return typeof s!="string"||t.indexOf(s)===-1?e:s}class ti extends _h{constructor(e,t,i,n,o=void 0){typeof o<"u"&&(o.type="string",o.enum=n,o.default=i),super(e,t,i,o),this._allowedValues=n}validate(e){return mn(e,this.defaultValue,this._allowedValues)}}class sf extends pi{constructor(e,t,i,n,o,r,a=void 0){typeof a<"u"&&(a.type="string",a.enum=o,a.default=n),super(e,t,i,a),this._allowedValues=o,this._convert=r}validate(e){return typeof e!="string"?this.defaultValue:this._allowedValues.indexOf(e)===-1?this.defaultValue:this._convert(e)}}function PB(s){switch(s){case"none":return 0;case"keep":return 1;case"brackets":return 2;case"advanced":return 3;case"full":return 4}}class FB extends pi{constructor(){super(2,"accessibilitySupport",0,{type:"string",enum:["auto","on","off"],enumDescriptions:[p("accessibilitySupport.auto","The editor will use platform APIs to detect when a Screen Reader is attached."),p("accessibilitySupport.on","The editor will be permanently optimized for usage with a Screen Reader. Word wrapping will be disabled."),p("accessibilitySupport.off","The editor will never be optimized for usage with a Screen Reader.")],default:"auto",description:p("accessibilitySupport","Controls whether the editor should run in a mode where it is optimized for screen readers. Setting to on will disable word wrapping.")})}validate(e){switch(e){case"auto":return 0;case"off":return 1;case"on":return 2}return this.defaultValue}compute(e,t,i){return i===0?e.accessibilitySupport:i}}class BB extends pi{constructor(){const e={insertSpace:!0,ignoreEmptyLines:!0};super(19,"comments",e,{"editor.comments.insertSpace":{type:"boolean",default:e.insertSpace,description:p("comments.insertSpace","Controls whether a space character is inserted when commenting.")},"editor.comments.ignoreEmptyLines":{type:"boolean",default:e.ignoreEmptyLines,description:p("comments.ignoreEmptyLines","Controls if empty lines should be ignored with toggle, add or remove actions for line comments.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{insertSpace:pe(t.insertSpace,this.defaultValue.insertSpace),ignoreEmptyLines:pe(t.ignoreEmptyLines,this.defaultValue.ignoreEmptyLines)}}}function WB(s){switch(s){case"blink":return 1;case"smooth":return 2;case"phase":return 3;case"expand":return 4;case"solid":return 5}}var wi;(function(s){s[s.Line=1]="Line",s[s.Block=2]="Block",s[s.Underline=3]="Underline",s[s.LineThin=4]="LineThin",s[s.BlockOutline=5]="BlockOutline",s[s.UnderlineThin=6]="UnderlineThin"})(wi||(wi={}));function VB(s){switch(s){case"line":return wi.Line;case"block":return wi.Block;case"underline":return wi.Underline;case"line-thin":return wi.LineThin;case"block-outline":return wi.BlockOutline;case"underline-thin":return wi.UnderlineThin}}class HB extends Au{constructor(){super(126,[65,33])}compute(e,t,i){const n=["monaco-editor"];return t.get(33)&&n.push(t.get(33)),e.extraEditorClassName&&n.push(e.extraEditorClassName),t.get(65)==="default"?n.push("mouse-default"):t.get(65)==="copy"&&n.push("mouse-copy"),t.get(99)&&n.push("showUnused"),t.get(124)&&n.push("showDeprecated"),n.join(" ")}}class zB extends ze{constructor(){super(32,"emptySelectionClipboard",!0,{description:p("emptySelectionClipboard","Controls whether copying without a selection copies the current line.")})}compute(e,t,i){return i&&e.emptySelectionClipboard}}class UB extends pi{constructor(){const e={cursorMoveOnType:!0,seedSearchStringFromSelection:"always",autoFindInSelection:"never",globalFindClipboard:!1,addExtraSpaceOnTop:!0,loop:!0};super(35,"find",e,{"editor.find.cursorMoveOnType":{type:"boolean",default:e.cursorMoveOnType,description:p("find.cursorMoveOnType","Controls whether the cursor should jump to find matches while typing.")},"editor.find.seedSearchStringFromSelection":{type:"string",enum:["never","always","selection"],default:e.seedSearchStringFromSelection,enumDescriptions:[p("editor.find.seedSearchStringFromSelection.never","Never seed search string from the editor selection."),p("editor.find.seedSearchStringFromSelection.always","Always seed search string from the editor selection, including word at cursor position."),p("editor.find.seedSearchStringFromSelection.selection","Only seed search string from the editor selection.")],description:p("find.seedSearchStringFromSelection","Controls whether the search string in the Find Widget is seeded from the editor selection.")},"editor.find.autoFindInSelection":{type:"string",enum:["never","always","multiline"],default:e.autoFindInSelection,enumDescriptions:[p("editor.find.autoFindInSelection.never","Never turn on Find in Selection automatically (default)."),p("editor.find.autoFindInSelection.always","Always turn on Find in Selection automatically."),p("editor.find.autoFindInSelection.multiline","Turn on Find in Selection automatically when multiple lines of content are selected.")],description:p("find.autoFindInSelection","Controls the condition for turning on Find in Selection automatically.")},"editor.find.globalFindClipboard":{type:"boolean",default:e.globalFindClipboard,description:p("find.globalFindClipboard","Controls whether the Find Widget should read or modify the shared find clipboard on macOS."),included:Me},"editor.find.addExtraSpaceOnTop":{type:"boolean",default:e.addExtraSpaceOnTop,description:p("find.addExtraSpaceOnTop","Controls whether the Find Widget should add extra lines on top of the editor. When true, you can scroll beyond the first line when the Find Widget is visible.")},"editor.find.loop":{type:"boolean",default:e.loop,description:p("find.loop","Controls whether the search automatically restarts from the beginning (or the end) when no further matches can be found.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{cursorMoveOnType:pe(t.cursorMoveOnType,this.defaultValue.cursorMoveOnType),seedSearchStringFromSelection:typeof e.seedSearchStringFromSelection=="boolean"?e.seedSearchStringFromSelection?"always":"never":mn(t.seedSearchStringFromSelection,this.defaultValue.seedSearchStringFromSelection,["never","always","selection"]),autoFindInSelection:typeof e.autoFindInSelection=="boolean"?e.autoFindInSelection?"always":"never":mn(t.autoFindInSelection,this.defaultValue.autoFindInSelection,["never","always","multiline"]),globalFindClipboard:pe(t.globalFindClipboard,this.defaultValue.globalFindClipboard),addExtraSpaceOnTop:pe(t.addExtraSpaceOnTop,this.defaultValue.addExtraSpaceOnTop),loop:pe(t.loop,this.defaultValue.loop)}}}class zn extends pi{constructor(){super(44,"fontLigatures",zn.OFF,{anyOf:[{type:"boolean",description:p("fontLigatures","Enables/Disables font ligatures ('calt' and 'liga' font features). Change this to a string for fine-grained control of the 'font-feature-settings' CSS property.")},{type:"string",description:p("fontFeatureSettings","Explicit 'font-feature-settings' CSS property. A boolean can be passed instead if one only needs to turn on/off ligatures.")}],description:p("fontLigaturesGeneral","Configures font ligatures or font features. Can be either a boolean to enable/disable ligatures or a string for the value of the CSS 'font-feature-settings' property."),default:!1})}validate(e){return typeof e>"u"?this.defaultValue:typeof e=="string"?e==="false"?zn.OFF:e==="true"?zn.ON:e:e?zn.ON:zn.OFF}}zn.OFF='"liga" off, "calt" off';zn.ON='"liga" on, "calt" on';class $B extends Au{constructor(){super(43)}compute(e,t,i){return e.fontInfo}}class jB extends _h{constructor(){super(45,"fontSize",Hi.fontSize,{type:"number",minimum:6,maximum:100,default:Hi.fontSize,description:p("fontSize","Controls the font size in pixels.")})}validate(e){let t=er.float(e,this.defaultValue);return t===0?Hi.fontSize:er.clamp(t,6,100)}compute(e,t,i){return e.fontInfo.fontSize}}class Zo extends pi{constructor(){super(46,"fontWeight",Hi.fontWeight,{anyOf:[{type:"number",minimum:Zo.MINIMUM_VALUE,maximum:Zo.MAXIMUM_VALUE,errorMessage:p("fontWeightErrorMessage",'Only "normal" and "bold" keywords or numbers between 1 and 1000 are allowed.')},{type:"string",pattern:"^(normal|bold|1000|[1-9][0-9]{0,2})$"},{enum:Zo.SUGGESTION_VALUES}],default:Hi.fontWeight,description:p("fontWeight",'Controls the font weight. Accepts "normal" and "bold" keywords or numbers between 1 and 1000.')})}validate(e){return e==="normal"||e==="bold"?e:String(St.clampedInt(e,Hi.fontWeight,Zo.MINIMUM_VALUE,Zo.MAXIMUM_VALUE))}}Zo.SUGGESTION_VALUES=["normal","bold","100","200","300","400","500","600","700","800","900"];Zo.MINIMUM_VALUE=1;Zo.MAXIMUM_VALUE=1e3;class KB extends pi{constructor(){const e={multiple:"peek",multipleDefinitions:"peek",multipleTypeDefinitions:"peek",multipleDeclarations:"peek",multipleImplementations:"peek",multipleReferences:"peek",alternativeDefinitionCommand:"editor.action.goToReferences",alternativeTypeDefinitionCommand:"editor.action.goToReferences",alternativeDeclarationCommand:"editor.action.goToReferences",alternativeImplementationCommand:"",alternativeReferenceCommand:""},t={type:"string",enum:["peek","gotoAndPeek","goto"],default:e.multiple,enumDescriptions:[p("editor.gotoLocation.multiple.peek","Show peek view of the results (default)"),p("editor.gotoLocation.multiple.gotoAndPeek","Go to the primary result and show a peek view"),p("editor.gotoLocation.multiple.goto","Go to the primary result and enable peek-less navigation to others")]},i=["","editor.action.referenceSearch.trigger","editor.action.goToReferences","editor.action.peekImplementation","editor.action.goToImplementation","editor.action.peekTypeDefinition","editor.action.goToTypeDefinition","editor.action.peekDeclaration","editor.action.revealDeclaration","editor.action.peekDefinition","editor.action.revealDefinitionAside","editor.action.revealDefinition"];super(50,"gotoLocation",e,{"editor.gotoLocation.multiple":{deprecationMessage:p("editor.gotoLocation.multiple.deprecated","This setting is deprecated, please use separate settings like 'editor.editor.gotoLocation.multipleDefinitions' or 'editor.editor.gotoLocation.multipleImplementations' instead.")},"editor.gotoLocation.multipleDefinitions":Object.assign({description:p("editor.editor.gotoLocation.multipleDefinitions","Controls the behavior the 'Go to Definition'-command when multiple target locations exist.")},t),"editor.gotoLocation.multipleTypeDefinitions":Object.assign({description:p("editor.editor.gotoLocation.multipleTypeDefinitions","Controls the behavior the 'Go to Type Definition'-command when multiple target locations exist.")},t),"editor.gotoLocation.multipleDeclarations":Object.assign({description:p("editor.editor.gotoLocation.multipleDeclarations","Controls the behavior the 'Go to Declaration'-command when multiple target locations exist.")},t),"editor.gotoLocation.multipleImplementations":Object.assign({description:p("editor.editor.gotoLocation.multipleImplemenattions","Controls the behavior the 'Go to Implementations'-command when multiple target locations exist.")},t),"editor.gotoLocation.multipleReferences":Object.assign({description:p("editor.editor.gotoLocation.multipleReferences","Controls the behavior the 'Go to References'-command when multiple target locations exist.")},t),"editor.gotoLocation.alternativeDefinitionCommand":{type:"string",default:e.alternativeDefinitionCommand,enum:i,description:p("alternativeDefinitionCommand","Alternative command id that is being executed when the result of 'Go to Definition' is the current location.")},"editor.gotoLocation.alternativeTypeDefinitionCommand":{type:"string",default:e.alternativeTypeDefinitionCommand,enum:i,description:p("alternativeTypeDefinitionCommand","Alternative command id that is being executed when the result of 'Go to Type Definition' is the current location.")},"editor.gotoLocation.alternativeDeclarationCommand":{type:"string",default:e.alternativeDeclarationCommand,enum:i,description:p("alternativeDeclarationCommand","Alternative command id that is being executed when the result of 'Go to Declaration' is the current location.")},"editor.gotoLocation.alternativeImplementationCommand":{type:"string",default:e.alternativeImplementationCommand,enum:i,description:p("alternativeImplementationCommand","Alternative command id that is being executed when the result of 'Go to Implementation' is the current location.")},"editor.gotoLocation.alternativeReferenceCommand":{type:"string",default:e.alternativeReferenceCommand,enum:i,description:p("alternativeReferenceCommand","Alternative command id that is being executed when the result of 'Go to Reference' is the current location.")}})}validate(e){var t,i,n,o,r;if(!e||typeof e!="object")return this.defaultValue;const a=e;return{multiple:mn(a.multiple,this.defaultValue.multiple,["peek","gotoAndPeek","goto"]),multipleDefinitions:(t=a.multipleDefinitions)!==null&&t!==void 0?t:mn(a.multipleDefinitions,"peek",["peek","gotoAndPeek","goto"]),multipleTypeDefinitions:(i=a.multipleTypeDefinitions)!==null&&i!==void 0?i:mn(a.multipleTypeDefinitions,"peek",["peek","gotoAndPeek","goto"]),multipleDeclarations:(n=a.multipleDeclarations)!==null&&n!==void 0?n:mn(a.multipleDeclarations,"peek",["peek","gotoAndPeek","goto"]),multipleImplementations:(o=a.multipleImplementations)!==null&&o!==void 0?o:mn(a.multipleImplementations,"peek",["peek","gotoAndPeek","goto"]),multipleReferences:(r=a.multipleReferences)!==null&&r!==void 0?r:mn(a.multipleReferences,"peek",["peek","gotoAndPeek","goto"]),alternativeDefinitionCommand:kn.string(a.alternativeDefinitionCommand,this.defaultValue.alternativeDefinitionCommand),alternativeTypeDefinitionCommand:kn.string(a.alternativeTypeDefinitionCommand,this.defaultValue.alternativeTypeDefinitionCommand),alternativeDeclarationCommand:kn.string(a.alternativeDeclarationCommand,this.defaultValue.alternativeDeclarationCommand),alternativeImplementationCommand:kn.string(a.alternativeImplementationCommand,this.defaultValue.alternativeImplementationCommand),alternativeReferenceCommand:kn.string(a.alternativeReferenceCommand,this.defaultValue.alternativeReferenceCommand)}}}class qB extends pi{constructor(){const e={enabled:!0,delay:300,sticky:!0,above:!0};super(52,"hover",e,{"editor.hover.enabled":{type:"boolean",default:e.enabled,description:p("hover.enabled","Controls whether the hover is shown.")},"editor.hover.delay":{type:"number",default:e.delay,description:p("hover.delay","Controls the delay in milliseconds after which the hover is shown.")},"editor.hover.sticky":{type:"boolean",default:e.sticky,description:p("hover.sticky","Controls whether the hover should remain visible when mouse is moved over it.")},"editor.hover.above":{type:"boolean",default:e.above,description:p("hover.above","Prefer showing hovers above the line, if there's space.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{enabled:pe(t.enabled,this.defaultValue.enabled),delay:St.clampedInt(t.delay,this.defaultValue.delay,0,1e4),sticky:pe(t.sticky,this.defaultValue.sticky),above:pe(t.above,this.defaultValue.above)}}}class Nc extends Au{constructor(){super(129,[49,57,37,64,91,59,60,93,116,119,120,121,2])}compute(e,t,i){return Nc.computeLayout(t,{memory:e.memory,outerWidth:e.outerWidth,outerHeight:e.outerHeight,isDominatedByLongLines:e.isDominatedByLongLines,lineHeight:e.fontInfo.lineHeight,viewLineCount:e.viewLineCount,lineNumbersDigitCount:e.lineNumbersDigitCount,typicalHalfwidthCharacterWidth:e.fontInfo.typicalHalfwidthCharacterWidth,maxDigitWidth:e.fontInfo.maxDigitWidth,pixelRatio:e.pixelRatio})}static computeContainedMinimapLineCount(e){const t=e.height/e.lineHeight,i=e.scrollBeyondLastLine?t-1:0,n=(e.viewLineCount+i)/(e.pixelRatio*e.height),o=Math.floor(e.viewLineCount/n);return{typicalViewportLineCount:t,extraLinesBeyondLastLine:i,desiredRatio:n,minimapLineCount:o}}static _computeMinimapLayout(e,t){const i=e.outerWidth,n=e.outerHeight,o=e.pixelRatio;if(!e.minimap.enabled)return{renderMinimap:0,minimapLeft:0,minimapWidth:0,minimapHeightIsEditorHeight:!1,minimapIsSampling:!1,minimapScale:1,minimapLineHeight:1,minimapCanvasInnerWidth:0,minimapCanvasInnerHeight:Math.floor(o*n),minimapCanvasOuterWidth:0,minimapCanvasOuterHeight:n};const r=t.stableMinimapLayoutInput,a=r&&e.outerHeight===r.outerHeight&&e.lineHeight===r.lineHeight&&e.typicalHalfwidthCharacterWidth===r.typicalHalfwidthCharacterWidth&&e.pixelRatio===r.pixelRatio&&e.scrollBeyondLastLine===r.scrollBeyondLastLine&&e.minimap.enabled===r.minimap.enabled&&e.minimap.side===r.minimap.side&&e.minimap.size===r.minimap.size&&e.minimap.showSlider===r.minimap.showSlider&&e.minimap.renderCharacters===r.minimap.renderCharacters&&e.minimap.maxColumn===r.minimap.maxColumn&&e.minimap.scale===r.minimap.scale&&e.verticalScrollbarWidth===r.verticalScrollbarWidth&&e.isViewportWrapping===r.isViewportWrapping,l=e.lineHeight,d=e.typicalHalfwidthCharacterWidth,h=e.scrollBeyondLastLine,c=e.minimap.renderCharacters;let u=o>=2?Math.round(e.minimap.scale*2):e.minimap.scale;const f=e.minimap.maxColumn,g=e.minimap.size,m=e.minimap.side,_=e.verticalScrollbarWidth,C=e.viewLineCount,b=e.remainingWidth,v=e.isViewportWrapping,w=c?2:3;let y=Math.floor(o*n);const k=y/o;let L=!1,D=!1,N=w*u,B=u/o,O=1;if(g==="fill"||g==="fit"){const{typicalViewportLineCount:we,extraLinesBeyondLastLine:Se,desiredRatio:Tt,minimapLineCount:bt}=Nc.computeContainedMinimapLineCount({viewLineCount:C,scrollBeyondLastLine:h,height:n,lineHeight:l,pixelRatio:o});if(C/bt>1)L=!0,D=!0,u=1,N=1,B=u/o;else{let Pt=!1,ht=u+1;if(g==="fit"){const Sn=Math.ceil((C+Se)*N);v&&a&&b<=t.stableFitRemainingWidth?(Pt=!0,ht=t.stableFitMaxMinimapScale):Pt=Sn>y}if(g==="fill"||Pt){L=!0;const Sn=u;N=Math.min(l*o,Math.max(1,Math.floor(1/Tt))),v&&a&&b<=t.stableFitRemainingWidth&&(ht=t.stableFitMaxMinimapScale),u=Math.min(ht,Math.max(1,Math.floor(N/w))),u>Sn&&(O=Math.min(2,u/Sn)),B=u/o/O,y=Math.ceil(Math.max(we,C+Se)*N),v?(t.stableMinimapLayoutInput=e,t.stableFitRemainingWidth=b,t.stableFitMaxMinimapScale=u):(t.stableMinimapLayoutInput=null,t.stableFitRemainingWidth=0)}}}const $=Math.floor(f*B),K=Math.min($,Math.max(0,Math.floor((b-_-2)*B/(d+B)))+Ta);let le=Math.floor(o*K);const de=le/o;le=Math.floor(le*O);const _e=c?1:2,De=m==="left"?0:i-K-_;return{renderMinimap:_e,minimapLeft:De,minimapWidth:K,minimapHeightIsEditorHeight:L,minimapIsSampling:D,minimapScale:u,minimapLineHeight:N,minimapCanvasInnerWidth:le,minimapCanvasInnerHeight:y,minimapCanvasOuterWidth:de,minimapCanvasOuterHeight:k}}static computeLayout(e,t){const i=t.outerWidth|0,n=t.outerHeight|0,o=t.lineHeight|0,r=t.lineNumbersDigitCount|0,a=t.typicalHalfwidthCharacterWidth,l=t.maxDigitWidth,d=t.pixelRatio,h=t.viewLineCount,c=e.get(121),u=c==="inherit"?e.get(120):c,f=u==="inherit"?e.get(116):u,g=e.get(119),m=e.get(2),_=t.isDominatedByLongLines,C=e.get(49),b=e.get(59).renderType!==0,v=e.get(60),w=e.get(93),y=e.get(64),k=e.get(91),L=k.verticalScrollbarSize,D=k.verticalHasArrows,N=k.arrowSize,B=k.horizontalScrollbarSize,O=e.get(57),$=e.get(37);let K;if(typeof O=="string"&&/^\d+(\.\d+)?ch$/.test(O)){const Xs=parseFloat(O.substr(0,O.length-2));K=St.clampedInt(Xs*a,0,0,1e3)}else K=St.clampedInt(O,0,0,1e3);$&&(K+=16);let le=0;if(b){const Xs=Math.max(r,v);le=Math.round(Xs*l)}let de=0;C&&(de=o);let _e=0,De=_e+de,we=De+le,Se=we+K;const Tt=i-de-le-K;let bt=!1,xt=!1,Pt=-1;m!==2&&(u==="inherit"&&_?(bt=!0,xt=!0):f==="on"||f==="bounded"?xt=!0:f==="wordWrapColumn"&&(Pt=g));const ht=Nc._computeMinimapLayout({outerWidth:i,outerHeight:n,lineHeight:o,typicalHalfwidthCharacterWidth:a,pixelRatio:d,scrollBeyondLastLine:w,minimap:y,verticalScrollbarWidth:L,viewLineCount:h,remainingWidth:Tt,isViewportWrapping:xt},t.memory||new kR);ht.renderMinimap!==0&&ht.minimapLeft===0&&(_e+=ht.minimapWidth,De+=ht.minimapWidth,we+=ht.minimapWidth,Se+=ht.minimapWidth);const Sn=Tt-ht.minimapWidth,No=Math.max(1,Math.floor((Sn-L-2)/a)),xr=D?N:0;return xt&&(Pt=Math.max(1,No),f==="bounded"&&(Pt=Math.min(Pt,g))),{width:i,height:n,glyphMarginLeft:_e,glyphMarginWidth:de,lineNumbersLeft:De,lineNumbersWidth:le,decorationsLeft:we,decorationsWidth:K,contentLeft:Se,contentWidth:Sn,minimap:ht,viewportColumn:No,isWordWrapMinified:bt,isViewportWrapping:xt,wrappingColumn:Pt,verticalScrollbarWidth:L,horizontalScrollbarHeight:B,overviewRuler:{top:xr,width:L,height:n-2*xr,right:0}}}}class GB extends pi{constructor(){const e={enabled:!0};super(56,"lightbulb",e,{"editor.lightbulb.enabled":{type:"boolean",default:e.enabled,description:p("codeActions","Enables the code action lightbulb in the editor.")}})}validate(e){return!e||typeof e!="object"?this.defaultValue:{enabled:pe(e.enabled,this.defaultValue.enabled)}}}class ZB extends pi{constructor(){const e={enabled:!0,fontSize:0,fontFamily:""};super(125,"inlayHints",e,{"editor.inlayHints.enabled":{type:"boolean",default:e.enabled,description:p("inlayHints.enable","Enables the inlay hints in the editor.")},"editor.inlayHints.fontSize":{type:"number",default:e.fontSize,markdownDescription:p("inlayHints.fontSize","Controls font size of inlay hints in the editor. A default of 90% of `#editor.fontSize#` is used when the configured value is less than `5` or greater than the editor font size.")},"editor.inlayHints.fontFamily":{type:"string",default:e.fontFamily,markdownDescription:p("inlayHints.fontFamily","Controls font family of inlay hints in the editor. When set to empty, the `#editor.fontFamily#` is used.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{enabled:pe(t.enabled,this.defaultValue.enabled),fontSize:St.clampedInt(t.fontSize,this.defaultValue.fontSize,0,100),fontFamily:kn.string(t.fontFamily,this.defaultValue.fontFamily)}}}class YB extends er{constructor(){super(58,"lineHeight",Hi.lineHeight,e=>er.clamp(e,0,150),{markdownDescription:p("lineHeight",`Controls the line height.
+import{_ as ce}from"./index-c6e017e7.js";function IB(s,e){let t;return e.length===0?t=s:t=s.replace(/\{(\d+)\}/g,function(i,n){const o=n[0];return typeof e[o]<"u"?e[o]:i}),t}function p(s,e,...t){return IB(e,t)}var Fw;const m_="en";let tb=!1,ib=!1,__=!1,wR=!1,SR=!1,WD=!1,gm,Bw=m_,EB,Na;const Et=typeof self=="object"?self:typeof global=="object"?global:{};let qi;typeof Et.vscode<"u"&&typeof Et.vscode.process<"u"?qi=Et.vscode.process:typeof process<"u"&&(qi=process);const NB=typeof((Fw=qi==null?void 0:qi.versions)===null||Fw===void 0?void 0:Fw.electron)=="string"&&qi.type==="renderer";if(typeof navigator=="object"&&!NB)Na=navigator.userAgent,tb=Na.indexOf("Windows")>=0,ib=Na.indexOf("Macintosh")>=0,WD=(Na.indexOf("Macintosh")>=0||Na.indexOf("iPad")>=0||Na.indexOf("iPhone")>=0)&&!!navigator.maxTouchPoints&&navigator.maxTouchPoints>0,__=Na.indexOf("Linux")>=0,SR=!0,gm=navigator.language,Bw=gm;else if(typeof qi=="object"){tb=qi.platform==="win32",ib=qi.platform==="darwin",__=qi.platform==="linux",__&&qi.env.SNAP&&qi.env.SNAP_REVISION,gm=m_,Bw=m_;const s=qi.env.VSCODE_NLS_CONFIG;if(s)try{const e=JSON.parse(s),t=e.availableLanguages["*"];gm=e.locale,Bw=t||m_,EB=e._translationsConfigFile}catch{}wR=!0}else console.error("Unable to resolve platform.");const Ai=tb,Me=ib,Cn=__,uo=wR,Tu=SR,lr=WD,TB=Na,qS=function(){if(Et.setImmediate)return Et.setImmediate.bind(Et);if(typeof Et.postMessage=="function"&&!Et.importScripts){let t=[];Et.addEventListener("message",n=>{if(n.data&&n.data.vscodeSetImmediateId)for(let o=0,r=t.length;o{const o=++i;t.push({id:o,callback:n}),Et.postMessage({vscodeSetImmediateId:o},"*")}}if(typeof(qi==null?void 0:qi.nextTick)=="function")return qi.nextTick.bind(qi);const e=Promise.resolve();return t=>e.then(t)}(),Ms=ib||WD?2:tb?1:3;let VI=!0,HI=!1;function yR(){if(!HI){HI=!0;const s=new Uint8Array(2);s[0]=1,s[1]=2,VI=new Uint16Array(s.buffer)[0]===512+1}return VI}const LR="`~!@#$%^&*()-=+[{]}\\|;:'\",.<>/?";function AB(s=""){let e="(-?\\d*\\.\\d\\w*)|([^";for(const t of LR)s.indexOf(t)>=0||(e+="\\"+t);return e+="\\s]+)",new RegExp(e,"g")}const DR=AB();function nb(s){let e=DR;if(s&&s instanceof RegExp)if(s.global)e=s;else{let t="g";s.ignoreCase&&(t+="i"),s.multiline&&(t+="m"),s.unicode&&(t+="u"),e=new RegExp(s.source,t)}return e.lastIndex=0,e}const RB={maxLen:1e3,windowSize:15,timeBudget:150};function sb(s,e,t,i,n=RB){if(t.length>n.maxLen){let d=s-n.maxLen/2;return d<0?d=0:i+=d,t=t.substring(d,s+n.maxLen/2),sb(s,e,t,i,n)}const o=Date.now(),r=s-1-i;let a=-1,l=null;for(let d=1;!(Date.now()-o>=n.timeBudget);d++){const h=r-n.windowSize*d;e.lastIndex=Math.max(0,h);const c=MB(e,t,r,a);if(!c&&l||(l=c,h<=0))break;a=h}if(l){let d={word:l[0],startColumn:i+1+l.index,endColumn:i+1+l.index+l[0].length};return e.lastIndex=0,d}return null}function MB(s,e,t,i){let n;for(;n=s.exec(e);){const o=n.index||0;if(o<=t&&s.lastIndex>=t)return n;if(i>0&&o>i)return null}return null}const Ta=8;class xR{constructor(e){this._values=e}hasChanged(e){return this._values[e]}}class OB{constructor(){this._values=[]}_read(e){return this._values[e]}get(e){return this._values[e]}_write(e,t){this._values[e]=t}}class kR{constructor(){this.stableMinimapLayoutInput=null,this.stableFitMaxMinimapScale=0,this.stableFitRemainingWidth=0}}class pi{constructor(e,t,i,n){this.id=e,this.name=t,this.defaultValue=i,this.schema=n}compute(e,t,i){return i}}class Au{constructor(e,t=null){this.schema=void 0,this.id=e,this.name="_never_",this.defaultValue=void 0,this.deps=t}validate(e){return this.defaultValue}}class _h{constructor(e,t,i,n){this.id=e,this.name=t,this.defaultValue=i,this.schema=n}validate(e){return typeof e>"u"?this.defaultValue:e}compute(e,t,i){return i}}function pe(s,e){return typeof s>"u"?e:s==="false"?!1:!!s}class ze extends _h{constructor(e,t,i,n=void 0){typeof n<"u"&&(n.type="boolean",n.default=i),super(e,t,i,n)}validate(e){return pe(e,this.defaultValue)}}function GS(s,e,t,i){if(typeof s>"u")return e;let n=parseInt(s,10);return isNaN(n)?e:(n=Math.max(t,n),n=Math.min(i,n),n|0)}class St extends _h{constructor(e,t,i,n,o,r=void 0){typeof r<"u"&&(r.type="integer",r.default=i,r.minimum=n,r.maximum=o),super(e,t,i,r),this.minimum=n,this.maximum=o}static clampedInt(e,t,i,n){return GS(e,t,i,n)}validate(e){return St.clampedInt(e,this.defaultValue,this.minimum,this.maximum)}}class er extends _h{constructor(e,t,i,n,o){typeof o<"u"&&(o.type="number",o.default=i),super(e,t,i,o),this.validationFn=n}static clamp(e,t,i){return ei?i:e}static float(e,t){if(typeof e=="number")return e;if(typeof e>"u")return t;const i=parseFloat(e);return isNaN(i)?t:i}validate(e){return this.validationFn(er.float(e,this.defaultValue))}}class kn extends _h{static string(e,t){return typeof e!="string"?t:e}constructor(e,t,i,n=void 0){typeof n<"u"&&(n.type="string",n.default=i),super(e,t,i,n)}validate(e){return kn.string(e,this.defaultValue)}}function mn(s,e,t){return typeof s!="string"||t.indexOf(s)===-1?e:s}class ti extends _h{constructor(e,t,i,n,o=void 0){typeof o<"u"&&(o.type="string",o.enum=n,o.default=i),super(e,t,i,o),this._allowedValues=n}validate(e){return mn(e,this.defaultValue,this._allowedValues)}}class sf extends pi{constructor(e,t,i,n,o,r,a=void 0){typeof a<"u"&&(a.type="string",a.enum=o,a.default=n),super(e,t,i,a),this._allowedValues=o,this._convert=r}validate(e){return typeof e!="string"?this.defaultValue:this._allowedValues.indexOf(e)===-1?this.defaultValue:this._convert(e)}}function PB(s){switch(s){case"none":return 0;case"keep":return 1;case"brackets":return 2;case"advanced":return 3;case"full":return 4}}class FB extends pi{constructor(){super(2,"accessibilitySupport",0,{type:"string",enum:["auto","on","off"],enumDescriptions:[p("accessibilitySupport.auto","The editor will use platform APIs to detect when a Screen Reader is attached."),p("accessibilitySupport.on","The editor will be permanently optimized for usage with a Screen Reader. Word wrapping will be disabled."),p("accessibilitySupport.off","The editor will never be optimized for usage with a Screen Reader.")],default:"auto",description:p("accessibilitySupport","Controls whether the editor should run in a mode where it is optimized for screen readers. Setting to on will disable word wrapping.")})}validate(e){switch(e){case"auto":return 0;case"off":return 1;case"on":return 2}return this.defaultValue}compute(e,t,i){return i===0?e.accessibilitySupport:i}}class BB extends pi{constructor(){const e={insertSpace:!0,ignoreEmptyLines:!0};super(19,"comments",e,{"editor.comments.insertSpace":{type:"boolean",default:e.insertSpace,description:p("comments.insertSpace","Controls whether a space character is inserted when commenting.")},"editor.comments.ignoreEmptyLines":{type:"boolean",default:e.ignoreEmptyLines,description:p("comments.ignoreEmptyLines","Controls if empty lines should be ignored with toggle, add or remove actions for line comments.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{insertSpace:pe(t.insertSpace,this.defaultValue.insertSpace),ignoreEmptyLines:pe(t.ignoreEmptyLines,this.defaultValue.ignoreEmptyLines)}}}function WB(s){switch(s){case"blink":return 1;case"smooth":return 2;case"phase":return 3;case"expand":return 4;case"solid":return 5}}var wi;(function(s){s[s.Line=1]="Line",s[s.Block=2]="Block",s[s.Underline=3]="Underline",s[s.LineThin=4]="LineThin",s[s.BlockOutline=5]="BlockOutline",s[s.UnderlineThin=6]="UnderlineThin"})(wi||(wi={}));function VB(s){switch(s){case"line":return wi.Line;case"block":return wi.Block;case"underline":return wi.Underline;case"line-thin":return wi.LineThin;case"block-outline":return wi.BlockOutline;case"underline-thin":return wi.UnderlineThin}}class HB extends Au{constructor(){super(126,[65,33])}compute(e,t,i){const n=["monaco-editor"];return t.get(33)&&n.push(t.get(33)),e.extraEditorClassName&&n.push(e.extraEditorClassName),t.get(65)==="default"?n.push("mouse-default"):t.get(65)==="copy"&&n.push("mouse-copy"),t.get(99)&&n.push("showUnused"),t.get(124)&&n.push("showDeprecated"),n.join(" ")}}class zB extends ze{constructor(){super(32,"emptySelectionClipboard",!0,{description:p("emptySelectionClipboard","Controls whether copying without a selection copies the current line.")})}compute(e,t,i){return i&&e.emptySelectionClipboard}}class UB extends pi{constructor(){const e={cursorMoveOnType:!0,seedSearchStringFromSelection:"always",autoFindInSelection:"never",globalFindClipboard:!1,addExtraSpaceOnTop:!0,loop:!0};super(35,"find",e,{"editor.find.cursorMoveOnType":{type:"boolean",default:e.cursorMoveOnType,description:p("find.cursorMoveOnType","Controls whether the cursor should jump to find matches while typing.")},"editor.find.seedSearchStringFromSelection":{type:"string",enum:["never","always","selection"],default:e.seedSearchStringFromSelection,enumDescriptions:[p("editor.find.seedSearchStringFromSelection.never","Never seed search string from the editor selection."),p("editor.find.seedSearchStringFromSelection.always","Always seed search string from the editor selection, including word at cursor position."),p("editor.find.seedSearchStringFromSelection.selection","Only seed search string from the editor selection.")],description:p("find.seedSearchStringFromSelection","Controls whether the search string in the Find Widget is seeded from the editor selection.")},"editor.find.autoFindInSelection":{type:"string",enum:["never","always","multiline"],default:e.autoFindInSelection,enumDescriptions:[p("editor.find.autoFindInSelection.never","Never turn on Find in Selection automatically (default)."),p("editor.find.autoFindInSelection.always","Always turn on Find in Selection automatically."),p("editor.find.autoFindInSelection.multiline","Turn on Find in Selection automatically when multiple lines of content are selected.")],description:p("find.autoFindInSelection","Controls the condition for turning on Find in Selection automatically.")},"editor.find.globalFindClipboard":{type:"boolean",default:e.globalFindClipboard,description:p("find.globalFindClipboard","Controls whether the Find Widget should read or modify the shared find clipboard on macOS."),included:Me},"editor.find.addExtraSpaceOnTop":{type:"boolean",default:e.addExtraSpaceOnTop,description:p("find.addExtraSpaceOnTop","Controls whether the Find Widget should add extra lines on top of the editor. When true, you can scroll beyond the first line when the Find Widget is visible.")},"editor.find.loop":{type:"boolean",default:e.loop,description:p("find.loop","Controls whether the search automatically restarts from the beginning (or the end) when no further matches can be found.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{cursorMoveOnType:pe(t.cursorMoveOnType,this.defaultValue.cursorMoveOnType),seedSearchStringFromSelection:typeof e.seedSearchStringFromSelection=="boolean"?e.seedSearchStringFromSelection?"always":"never":mn(t.seedSearchStringFromSelection,this.defaultValue.seedSearchStringFromSelection,["never","always","selection"]),autoFindInSelection:typeof e.autoFindInSelection=="boolean"?e.autoFindInSelection?"always":"never":mn(t.autoFindInSelection,this.defaultValue.autoFindInSelection,["never","always","multiline"]),globalFindClipboard:pe(t.globalFindClipboard,this.defaultValue.globalFindClipboard),addExtraSpaceOnTop:pe(t.addExtraSpaceOnTop,this.defaultValue.addExtraSpaceOnTop),loop:pe(t.loop,this.defaultValue.loop)}}}class zn extends pi{constructor(){super(44,"fontLigatures",zn.OFF,{anyOf:[{type:"boolean",description:p("fontLigatures","Enables/Disables font ligatures ('calt' and 'liga' font features). Change this to a string for fine-grained control of the 'font-feature-settings' CSS property.")},{type:"string",description:p("fontFeatureSettings","Explicit 'font-feature-settings' CSS property. A boolean can be passed instead if one only needs to turn on/off ligatures.")}],description:p("fontLigaturesGeneral","Configures font ligatures or font features. Can be either a boolean to enable/disable ligatures or a string for the value of the CSS 'font-feature-settings' property."),default:!1})}validate(e){return typeof e>"u"?this.defaultValue:typeof e=="string"?e==="false"?zn.OFF:e==="true"?zn.ON:e:e?zn.ON:zn.OFF}}zn.OFF='"liga" off, "calt" off';zn.ON='"liga" on, "calt" on';class $B extends Au{constructor(){super(43)}compute(e,t,i){return e.fontInfo}}class jB extends _h{constructor(){super(45,"fontSize",Hi.fontSize,{type:"number",minimum:6,maximum:100,default:Hi.fontSize,description:p("fontSize","Controls the font size in pixels.")})}validate(e){let t=er.float(e,this.defaultValue);return t===0?Hi.fontSize:er.clamp(t,6,100)}compute(e,t,i){return e.fontInfo.fontSize}}class Zo extends pi{constructor(){super(46,"fontWeight",Hi.fontWeight,{anyOf:[{type:"number",minimum:Zo.MINIMUM_VALUE,maximum:Zo.MAXIMUM_VALUE,errorMessage:p("fontWeightErrorMessage",'Only "normal" and "bold" keywords or numbers between 1 and 1000 are allowed.')},{type:"string",pattern:"^(normal|bold|1000|[1-9][0-9]{0,2})$"},{enum:Zo.SUGGESTION_VALUES}],default:Hi.fontWeight,description:p("fontWeight",'Controls the font weight. Accepts "normal" and "bold" keywords or numbers between 1 and 1000.')})}validate(e){return e==="normal"||e==="bold"?e:String(St.clampedInt(e,Hi.fontWeight,Zo.MINIMUM_VALUE,Zo.MAXIMUM_VALUE))}}Zo.SUGGESTION_VALUES=["normal","bold","100","200","300","400","500","600","700","800","900"];Zo.MINIMUM_VALUE=1;Zo.MAXIMUM_VALUE=1e3;class KB extends pi{constructor(){const e={multiple:"peek",multipleDefinitions:"peek",multipleTypeDefinitions:"peek",multipleDeclarations:"peek",multipleImplementations:"peek",multipleReferences:"peek",alternativeDefinitionCommand:"editor.action.goToReferences",alternativeTypeDefinitionCommand:"editor.action.goToReferences",alternativeDeclarationCommand:"editor.action.goToReferences",alternativeImplementationCommand:"",alternativeReferenceCommand:""},t={type:"string",enum:["peek","gotoAndPeek","goto"],default:e.multiple,enumDescriptions:[p("editor.gotoLocation.multiple.peek","Show peek view of the results (default)"),p("editor.gotoLocation.multiple.gotoAndPeek","Go to the primary result and show a peek view"),p("editor.gotoLocation.multiple.goto","Go to the primary result and enable peek-less navigation to others")]},i=["","editor.action.referenceSearch.trigger","editor.action.goToReferences","editor.action.peekImplementation","editor.action.goToImplementation","editor.action.peekTypeDefinition","editor.action.goToTypeDefinition","editor.action.peekDeclaration","editor.action.revealDeclaration","editor.action.peekDefinition","editor.action.revealDefinitionAside","editor.action.revealDefinition"];super(50,"gotoLocation",e,{"editor.gotoLocation.multiple":{deprecationMessage:p("editor.gotoLocation.multiple.deprecated","This setting is deprecated, please use separate settings like 'editor.editor.gotoLocation.multipleDefinitions' or 'editor.editor.gotoLocation.multipleImplementations' instead.")},"editor.gotoLocation.multipleDefinitions":Object.assign({description:p("editor.editor.gotoLocation.multipleDefinitions","Controls the behavior the 'Go to Definition'-command when multiple target locations exist.")},t),"editor.gotoLocation.multipleTypeDefinitions":Object.assign({description:p("editor.editor.gotoLocation.multipleTypeDefinitions","Controls the behavior the 'Go to Type Definition'-command when multiple target locations exist.")},t),"editor.gotoLocation.multipleDeclarations":Object.assign({description:p("editor.editor.gotoLocation.multipleDeclarations","Controls the behavior the 'Go to Declaration'-command when multiple target locations exist.")},t),"editor.gotoLocation.multipleImplementations":Object.assign({description:p("editor.editor.gotoLocation.multipleImplemenattions","Controls the behavior the 'Go to Implementations'-command when multiple target locations exist.")},t),"editor.gotoLocation.multipleReferences":Object.assign({description:p("editor.editor.gotoLocation.multipleReferences","Controls the behavior the 'Go to References'-command when multiple target locations exist.")},t),"editor.gotoLocation.alternativeDefinitionCommand":{type:"string",default:e.alternativeDefinitionCommand,enum:i,description:p("alternativeDefinitionCommand","Alternative command id that is being executed when the result of 'Go to Definition' is the current location.")},"editor.gotoLocation.alternativeTypeDefinitionCommand":{type:"string",default:e.alternativeTypeDefinitionCommand,enum:i,description:p("alternativeTypeDefinitionCommand","Alternative command id that is being executed when the result of 'Go to Type Definition' is the current location.")},"editor.gotoLocation.alternativeDeclarationCommand":{type:"string",default:e.alternativeDeclarationCommand,enum:i,description:p("alternativeDeclarationCommand","Alternative command id that is being executed when the result of 'Go to Declaration' is the current location.")},"editor.gotoLocation.alternativeImplementationCommand":{type:"string",default:e.alternativeImplementationCommand,enum:i,description:p("alternativeImplementationCommand","Alternative command id that is being executed when the result of 'Go to Implementation' is the current location.")},"editor.gotoLocation.alternativeReferenceCommand":{type:"string",default:e.alternativeReferenceCommand,enum:i,description:p("alternativeReferenceCommand","Alternative command id that is being executed when the result of 'Go to Reference' is the current location.")}})}validate(e){var t,i,n,o,r;if(!e||typeof e!="object")return this.defaultValue;const a=e;return{multiple:mn(a.multiple,this.defaultValue.multiple,["peek","gotoAndPeek","goto"]),multipleDefinitions:(t=a.multipleDefinitions)!==null&&t!==void 0?t:mn(a.multipleDefinitions,"peek",["peek","gotoAndPeek","goto"]),multipleTypeDefinitions:(i=a.multipleTypeDefinitions)!==null&&i!==void 0?i:mn(a.multipleTypeDefinitions,"peek",["peek","gotoAndPeek","goto"]),multipleDeclarations:(n=a.multipleDeclarations)!==null&&n!==void 0?n:mn(a.multipleDeclarations,"peek",["peek","gotoAndPeek","goto"]),multipleImplementations:(o=a.multipleImplementations)!==null&&o!==void 0?o:mn(a.multipleImplementations,"peek",["peek","gotoAndPeek","goto"]),multipleReferences:(r=a.multipleReferences)!==null&&r!==void 0?r:mn(a.multipleReferences,"peek",["peek","gotoAndPeek","goto"]),alternativeDefinitionCommand:kn.string(a.alternativeDefinitionCommand,this.defaultValue.alternativeDefinitionCommand),alternativeTypeDefinitionCommand:kn.string(a.alternativeTypeDefinitionCommand,this.defaultValue.alternativeTypeDefinitionCommand),alternativeDeclarationCommand:kn.string(a.alternativeDeclarationCommand,this.defaultValue.alternativeDeclarationCommand),alternativeImplementationCommand:kn.string(a.alternativeImplementationCommand,this.defaultValue.alternativeImplementationCommand),alternativeReferenceCommand:kn.string(a.alternativeReferenceCommand,this.defaultValue.alternativeReferenceCommand)}}}class qB extends pi{constructor(){const e={enabled:!0,delay:300,sticky:!0,above:!0};super(52,"hover",e,{"editor.hover.enabled":{type:"boolean",default:e.enabled,description:p("hover.enabled","Controls whether the hover is shown.")},"editor.hover.delay":{type:"number",default:e.delay,description:p("hover.delay","Controls the delay in milliseconds after which the hover is shown.")},"editor.hover.sticky":{type:"boolean",default:e.sticky,description:p("hover.sticky","Controls whether the hover should remain visible when mouse is moved over it.")},"editor.hover.above":{type:"boolean",default:e.above,description:p("hover.above","Prefer showing hovers above the line, if there's space.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{enabled:pe(t.enabled,this.defaultValue.enabled),delay:St.clampedInt(t.delay,this.defaultValue.delay,0,1e4),sticky:pe(t.sticky,this.defaultValue.sticky),above:pe(t.above,this.defaultValue.above)}}}class Nc extends Au{constructor(){super(129,[49,57,37,64,91,59,60,93,116,119,120,121,2])}compute(e,t,i){return Nc.computeLayout(t,{memory:e.memory,outerWidth:e.outerWidth,outerHeight:e.outerHeight,isDominatedByLongLines:e.isDominatedByLongLines,lineHeight:e.fontInfo.lineHeight,viewLineCount:e.viewLineCount,lineNumbersDigitCount:e.lineNumbersDigitCount,typicalHalfwidthCharacterWidth:e.fontInfo.typicalHalfwidthCharacterWidth,maxDigitWidth:e.fontInfo.maxDigitWidth,pixelRatio:e.pixelRatio})}static computeContainedMinimapLineCount(e){const t=e.height/e.lineHeight,i=e.scrollBeyondLastLine?t-1:0,n=(e.viewLineCount+i)/(e.pixelRatio*e.height),o=Math.floor(e.viewLineCount/n);return{typicalViewportLineCount:t,extraLinesBeyondLastLine:i,desiredRatio:n,minimapLineCount:o}}static _computeMinimapLayout(e,t){const i=e.outerWidth,n=e.outerHeight,o=e.pixelRatio;if(!e.minimap.enabled)return{renderMinimap:0,minimapLeft:0,minimapWidth:0,minimapHeightIsEditorHeight:!1,minimapIsSampling:!1,minimapScale:1,minimapLineHeight:1,minimapCanvasInnerWidth:0,minimapCanvasInnerHeight:Math.floor(o*n),minimapCanvasOuterWidth:0,minimapCanvasOuterHeight:n};const r=t.stableMinimapLayoutInput,a=r&&e.outerHeight===r.outerHeight&&e.lineHeight===r.lineHeight&&e.typicalHalfwidthCharacterWidth===r.typicalHalfwidthCharacterWidth&&e.pixelRatio===r.pixelRatio&&e.scrollBeyondLastLine===r.scrollBeyondLastLine&&e.minimap.enabled===r.minimap.enabled&&e.minimap.side===r.minimap.side&&e.minimap.size===r.minimap.size&&e.minimap.showSlider===r.minimap.showSlider&&e.minimap.renderCharacters===r.minimap.renderCharacters&&e.minimap.maxColumn===r.minimap.maxColumn&&e.minimap.scale===r.minimap.scale&&e.verticalScrollbarWidth===r.verticalScrollbarWidth&&e.isViewportWrapping===r.isViewportWrapping,l=e.lineHeight,d=e.typicalHalfwidthCharacterWidth,h=e.scrollBeyondLastLine,c=e.minimap.renderCharacters;let u=o>=2?Math.round(e.minimap.scale*2):e.minimap.scale;const f=e.minimap.maxColumn,g=e.minimap.size,m=e.minimap.side,_=e.verticalScrollbarWidth,C=e.viewLineCount,b=e.remainingWidth,v=e.isViewportWrapping,w=c?2:3;let y=Math.floor(o*n);const k=y/o;let L=!1,D=!1,N=w*u,B=u/o,O=1;if(g==="fill"||g==="fit"){const{typicalViewportLineCount:we,extraLinesBeyondLastLine:Se,desiredRatio:Tt,minimapLineCount:bt}=Nc.computeContainedMinimapLineCount({viewLineCount:C,scrollBeyondLastLine:h,height:n,lineHeight:l,pixelRatio:o});if(C/bt>1)L=!0,D=!0,u=1,N=1,B=u/o;else{let Pt=!1,ht=u+1;if(g==="fit"){const Sn=Math.ceil((C+Se)*N);v&&a&&b<=t.stableFitRemainingWidth?(Pt=!0,ht=t.stableFitMaxMinimapScale):Pt=Sn>y}if(g==="fill"||Pt){L=!0;const Sn=u;N=Math.min(l*o,Math.max(1,Math.floor(1/Tt))),v&&a&&b<=t.stableFitRemainingWidth&&(ht=t.stableFitMaxMinimapScale),u=Math.min(ht,Math.max(1,Math.floor(N/w))),u>Sn&&(O=Math.min(2,u/Sn)),B=u/o/O,y=Math.ceil(Math.max(we,C+Se)*N),v?(t.stableMinimapLayoutInput=e,t.stableFitRemainingWidth=b,t.stableFitMaxMinimapScale=u):(t.stableMinimapLayoutInput=null,t.stableFitRemainingWidth=0)}}}const $=Math.floor(f*B),K=Math.min($,Math.max(0,Math.floor((b-_-2)*B/(d+B)))+Ta);let le=Math.floor(o*K);const de=le/o;le=Math.floor(le*O);const _e=c?1:2,De=m==="left"?0:i-K-_;return{renderMinimap:_e,minimapLeft:De,minimapWidth:K,minimapHeightIsEditorHeight:L,minimapIsSampling:D,minimapScale:u,minimapLineHeight:N,minimapCanvasInnerWidth:le,minimapCanvasInnerHeight:y,minimapCanvasOuterWidth:de,minimapCanvasOuterHeight:k}}static computeLayout(e,t){const i=t.outerWidth|0,n=t.outerHeight|0,o=t.lineHeight|0,r=t.lineNumbersDigitCount|0,a=t.typicalHalfwidthCharacterWidth,l=t.maxDigitWidth,d=t.pixelRatio,h=t.viewLineCount,c=e.get(121),u=c==="inherit"?e.get(120):c,f=u==="inherit"?e.get(116):u,g=e.get(119),m=e.get(2),_=t.isDominatedByLongLines,C=e.get(49),b=e.get(59).renderType!==0,v=e.get(60),w=e.get(93),y=e.get(64),k=e.get(91),L=k.verticalScrollbarSize,D=k.verticalHasArrows,N=k.arrowSize,B=k.horizontalScrollbarSize,O=e.get(57),$=e.get(37);let K;if(typeof O=="string"&&/^\d+(\.\d+)?ch$/.test(O)){const Xs=parseFloat(O.substr(0,O.length-2));K=St.clampedInt(Xs*a,0,0,1e3)}else K=St.clampedInt(O,0,0,1e3);$&&(K+=16);let le=0;if(b){const Xs=Math.max(r,v);le=Math.round(Xs*l)}let de=0;C&&(de=o);let _e=0,De=_e+de,we=De+le,Se=we+K;const Tt=i-de-le-K;let bt=!1,xt=!1,Pt=-1;m!==2&&(u==="inherit"&&_?(bt=!0,xt=!0):f==="on"||f==="bounded"?xt=!0:f==="wordWrapColumn"&&(Pt=g));const ht=Nc._computeMinimapLayout({outerWidth:i,outerHeight:n,lineHeight:o,typicalHalfwidthCharacterWidth:a,pixelRatio:d,scrollBeyondLastLine:w,minimap:y,verticalScrollbarWidth:L,viewLineCount:h,remainingWidth:Tt,isViewportWrapping:xt},t.memory||new kR);ht.renderMinimap!==0&&ht.minimapLeft===0&&(_e+=ht.minimapWidth,De+=ht.minimapWidth,we+=ht.minimapWidth,Se+=ht.minimapWidth);const Sn=Tt-ht.minimapWidth,No=Math.max(1,Math.floor((Sn-L-2)/a)),xr=D?N:0;return xt&&(Pt=Math.max(1,No),f==="bounded"&&(Pt=Math.min(Pt,g))),{width:i,height:n,glyphMarginLeft:_e,glyphMarginWidth:de,lineNumbersLeft:De,lineNumbersWidth:le,decorationsLeft:we,decorationsWidth:K,contentLeft:Se,contentWidth:Sn,minimap:ht,viewportColumn:No,isWordWrapMinified:bt,isViewportWrapping:xt,wrappingColumn:Pt,verticalScrollbarWidth:L,horizontalScrollbarHeight:B,overviewRuler:{top:xr,width:L,height:n-2*xr,right:0}}}}class GB extends pi{constructor(){const e={enabled:!0};super(56,"lightbulb",e,{"editor.lightbulb.enabled":{type:"boolean",default:e.enabled,description:p("codeActions","Enables the code action lightbulb in the editor.")}})}validate(e){return!e||typeof e!="object"?this.defaultValue:{enabled:pe(e.enabled,this.defaultValue.enabled)}}}class ZB extends pi{constructor(){const e={enabled:!0,fontSize:0,fontFamily:""};super(125,"inlayHints",e,{"editor.inlayHints.enabled":{type:"boolean",default:e.enabled,description:p("inlayHints.enable","Enables the inlay hints in the editor.")},"editor.inlayHints.fontSize":{type:"number",default:e.fontSize,markdownDescription:p("inlayHints.fontSize","Controls font size of inlay hints in the editor. A default of 90% of `#editor.fontSize#` is used when the configured value is less than `5` or greater than the editor font size.")},"editor.inlayHints.fontFamily":{type:"string",default:e.fontFamily,markdownDescription:p("inlayHints.fontFamily","Controls font family of inlay hints in the editor. When set to empty, the `#editor.fontFamily#` is used.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{enabled:pe(t.enabled,this.defaultValue.enabled),fontSize:St.clampedInt(t.fontSize,this.defaultValue.fontSize,0,100),fontFamily:kn.string(t.fontFamily,this.defaultValue.fontFamily)}}}class YB extends er{constructor(){super(58,"lineHeight",Hi.lineHeight,e=>er.clamp(e,0,150),{markdownDescription:p("lineHeight",`Controls the line height.
- Use 0 to automatically compute the line height from the font size.
- Values between 0 and 8 will be used as a multiplier with the font size.
- Values greater than or equal to 8 will be used as effective values.`)})}compute(e,t,i){return e.fontInfo.lineHeight}}class XB extends pi{constructor(){const e={enabled:!0,size:"proportional",side:"right",showSlider:"mouseover",renderCharacters:!0,maxColumn:120,scale:1};super(64,"minimap",e,{"editor.minimap.enabled":{type:"boolean",default:e.enabled,description:p("minimap.enabled","Controls whether the minimap is shown.")},"editor.minimap.size":{type:"string",enum:["proportional","fill","fit"],enumDescriptions:[p("minimap.size.proportional","The minimap has the same size as the editor contents (and might scroll)."),p("minimap.size.fill","The minimap will stretch or shrink as necessary to fill the height of the editor (no scrolling)."),p("minimap.size.fit","The minimap will shrink as necessary to never be larger than the editor (no scrolling).")],default:e.size,description:p("minimap.size","Controls the size of the minimap.")},"editor.minimap.side":{type:"string",enum:["left","right"],default:e.side,description:p("minimap.side","Controls the side where to render the minimap.")},"editor.minimap.showSlider":{type:"string",enum:["always","mouseover"],default:e.showSlider,description:p("minimap.showSlider","Controls when the minimap slider is shown.")},"editor.minimap.scale":{type:"number",default:e.scale,minimum:1,maximum:3,enum:[1,2,3],description:p("minimap.scale","Scale of content drawn in the minimap: 1, 2 or 3.")},"editor.minimap.renderCharacters":{type:"boolean",default:e.renderCharacters,description:p("minimap.renderCharacters","Render the actual characters on a line as opposed to color blocks.")},"editor.minimap.maxColumn":{type:"number",default:e.maxColumn,description:p("minimap.maxColumn","Limit the width of the minimap to render at most a certain number of columns.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{enabled:pe(t.enabled,this.defaultValue.enabled),size:mn(t.size,this.defaultValue.size,["proportional","fill","fit"]),side:mn(t.side,this.defaultValue.side,["right","left"]),showSlider:mn(t.showSlider,this.defaultValue.showSlider,["always","mouseover"]),renderCharacters:pe(t.renderCharacters,this.defaultValue.renderCharacters),scale:St.clampedInt(t.scale,1,1,3),maxColumn:St.clampedInt(t.maxColumn,this.defaultValue.maxColumn,1,1e4)}}}function QB(s){return s==="ctrlCmd"?Me?"metaKey":"ctrlKey":"altKey"}class JB extends pi{constructor(){super(74,"padding",{top:0,bottom:0},{"editor.padding.top":{type:"number",default:0,minimum:0,maximum:1e3,description:p("padding.top","Controls the amount of space between the top edge of the editor and the first line.")},"editor.padding.bottom":{type:"number",default:0,minimum:0,maximum:1e3,description:p("padding.bottom","Controls the amount of space between the bottom edge of the editor and the last line.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{top:St.clampedInt(t.top,0,0,1e3),bottom:St.clampedInt(t.bottom,0,0,1e3)}}}class e5 extends pi{constructor(){const e={enabled:!0,cycle:!1};super(75,"parameterHints",e,{"editor.parameterHints.enabled":{type:"boolean",default:e.enabled,description:p("parameterHints.enabled","Enables a pop-up that shows parameter documentation and type information as you type.")},"editor.parameterHints.cycle":{type:"boolean",default:e.cycle,description:p("parameterHints.cycle","Controls whether the parameter hints menu cycles or closes when reaching the end of the list.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{enabled:pe(t.enabled,this.defaultValue.enabled),cycle:pe(t.cycle,this.defaultValue.cycle)}}}class t5 extends Au{constructor(){super(127)}compute(e,t,i){return e.pixelRatio}}class i5 extends pi{constructor(){const e={other:!0,comments:!1,strings:!1};super(78,"quickSuggestions",e,{anyOf:[{type:"boolean"},{type:"object",properties:{strings:{type:"boolean",default:e.strings,description:p("quickSuggestions.strings","Enable quick suggestions inside strings.")},comments:{type:"boolean",default:e.comments,description:p("quickSuggestions.comments","Enable quick suggestions inside comments.")},other:{type:"boolean",default:e.other,description:p("quickSuggestions.other","Enable quick suggestions outside of strings and comments.")}}}],default:e,description:p("quickSuggestions","Controls whether suggestions should automatically show up while typing.")}),this.defaultValue=e}validate(e){if(typeof e=="boolean")return e;if(e&&typeof e=="object"){const t=e,i={other:pe(t.other,this.defaultValue.other),comments:pe(t.comments,this.defaultValue.comments),strings:pe(t.strings,this.defaultValue.strings)};return i.other&&i.comments&&i.strings?!0:!i.other&&!i.comments&&!i.strings?!1:i}return this.defaultValue}}class n5 extends pi{constructor(){super(59,"lineNumbers",{renderType:1,renderFn:null},{type:"string",enum:["off","on","relative","interval"],enumDescriptions:[p("lineNumbers.off","Line numbers are not rendered."),p("lineNumbers.on","Line numbers are rendered as absolute number."),p("lineNumbers.relative","Line numbers are rendered as distance in lines to cursor position."),p("lineNumbers.interval","Line numbers are rendered every 10 lines.")],default:"on",description:p("lineNumbers","Controls the display of line numbers.")})}validate(e){let t=this.defaultValue.renderType,i=this.defaultValue.renderFn;return typeof e<"u"&&(typeof e=="function"?(t=4,i=e):e==="interval"?t=3:e==="relative"?t=2:e==="on"?t=1:t=0),{renderType:t,renderFn:i}}}function VD(s){const e=s.get(86);return e==="editable"?s.get(80):e!=="on"}class s5 extends pi{constructor(){const e=[],t={type:"number",description:p("rulers.size","Number of monospace characters at which this editor ruler will render.")};super(90,"rulers",e,{type:"array",items:{anyOf:[t,{type:["object"],properties:{column:t,color:{type:"string",description:p("rulers.color","Color of this editor ruler."),format:"color-hex"}}}]},default:e,description:p("rulers","Render vertical rulers after a certain number of monospace characters. Use multiple values for multiple rulers. No rulers are drawn if array is empty.")})}validate(e){if(Array.isArray(e)){let t=[];for(let i of e)if(typeof i=="number")t.push({column:St.clampedInt(i,0,0,1e4),color:null});else if(i&&typeof i=="object"){const n=i;t.push({column:St.clampedInt(n.column,0,0,1e4),color:n.color})}return t.sort((i,n)=>i.column-n.column),t}return this.defaultValue}}function zI(s,e){if(typeof s!="string")return e;switch(s){case"hidden":return 2;case"visible":return 3;default:return 1}}let o5=class extends pi{constructor(){const e={vertical:1,horizontal:1,arrowSize:11,useShadows:!0,verticalHasArrows:!1,horizontalHasArrows:!1,horizontalScrollbarSize:12,horizontalSliderSize:12,verticalScrollbarSize:14,verticalSliderSize:14,handleMouseWheel:!0,alwaysConsumeMouseWheel:!0,scrollByPage:!1};super(91,"scrollbar",e,{"editor.scrollbar.vertical":{type:"string",enum:["auto","visible","hidden"],enumDescriptions:[p("scrollbar.vertical.auto","The vertical scrollbar will be visible only when necessary."),p("scrollbar.vertical.visible","The vertical scrollbar will always be visible."),p("scrollbar.vertical.fit","The vertical scrollbar will always be hidden.")],default:"auto",description:p("scrollbar.vertical","Controls the visibility of the vertical scrollbar.")},"editor.scrollbar.horizontal":{type:"string",enum:["auto","visible","hidden"],enumDescriptions:[p("scrollbar.horizontal.auto","The horizontal scrollbar will be visible only when necessary."),p("scrollbar.horizontal.visible","The horizontal scrollbar will always be visible."),p("scrollbar.horizontal.fit","The horizontal scrollbar will always be hidden.")],default:"auto",description:p("scrollbar.horizontal","Controls the visibility of the horizontal scrollbar.")},"editor.scrollbar.verticalScrollbarSize":{type:"number",default:e.verticalScrollbarSize,description:p("scrollbar.verticalScrollbarSize","The width of the vertical scrollbar.")},"editor.scrollbar.horizontalScrollbarSize":{type:"number",default:e.horizontalScrollbarSize,description:p("scrollbar.horizontalScrollbarSize","The height of the horizontal scrollbar.")},"editor.scrollbar.scrollByPage":{type:"boolean",default:e.scrollByPage,description:p("scrollbar.scrollByPage","Controls whether clicks scroll by page or jump to click position.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e,i=St.clampedInt(t.horizontalScrollbarSize,this.defaultValue.horizontalScrollbarSize,0,1e3),n=St.clampedInt(t.verticalScrollbarSize,this.defaultValue.verticalScrollbarSize,0,1e3);return{arrowSize:St.clampedInt(t.arrowSize,this.defaultValue.arrowSize,0,1e3),vertical:zI(t.vertical,this.defaultValue.vertical),horizontal:zI(t.horizontal,this.defaultValue.horizontal),useShadows:pe(t.useShadows,this.defaultValue.useShadows),verticalHasArrows:pe(t.verticalHasArrows,this.defaultValue.verticalHasArrows),horizontalHasArrows:pe(t.horizontalHasArrows,this.defaultValue.horizontalHasArrows),handleMouseWheel:pe(t.handleMouseWheel,this.defaultValue.handleMouseWheel),alwaysConsumeMouseWheel:pe(t.alwaysConsumeMouseWheel,this.defaultValue.alwaysConsumeMouseWheel),horizontalScrollbarSize:i,horizontalSliderSize:St.clampedInt(t.horizontalSliderSize,i,0,1e3),verticalScrollbarSize:n,verticalSliderSize:St.clampedInt(t.verticalSliderSize,n,0,1e3),scrollByPage:pe(t.scrollByPage,this.defaultValue.scrollByPage)}}};class r5 extends pi{constructor(){const e={enabled:!0,mode:"subwordSmart"};super(54,"inlineSuggest",e,{"editor.inlineSuggest.enabled":{type:"boolean",default:e.enabled,description:p("inlineSuggest.enabled","Controls whether to automatically show inline suggestions in the editor.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{enabled:pe(t.enabled,this.defaultValue.enabled),mode:mn(t.mode,this.defaultValue.mode,["prefix","subword","subwordSmart"])}}}class a5 extends pi{constructor(){const e={enabled:Gi.bracketPairColorizationOptions.enabled};super(12,"bracketPairColorization",e,{"editor.bracketPairColorization.enabled":{type:"boolean",default:e.enabled,description:p("bracketPairColorization.enabled","Controls whether bracket pair colorization is enabled or not. Use 'workbench.colorCustomizations' to override the bracket highlight colors.")}})}validate(e){return!e||typeof e!="object"?this.defaultValue:{enabled:pe(e.enabled,this.defaultValue.enabled)}}}class l5 extends pi{constructor(){const e={bracketPairs:!1,bracketPairsHorizontal:"active",highlightActiveBracketPair:!0,indentation:!0,highlightActiveIndentation:!0};super(13,"guides",e,{"editor.guides.bracketPairs":{type:["boolean","string"],enum:[!0,"active",!1],enumDescriptions:[p("editor.guides.bracketPairs.true","Enables bracket pair guides."),p("editor.guides.bracketPairs.active","Enables bracket pair guides only for the active bracket pair."),p("editor.guides.bracketPairs.false","Disables bracket pair guides.")],default:e.bracketPairs,description:p("editor.guides.bracketPairs","Controls whether bracket pair guides are enabled or not.")},"editor.guides.bracketPairsHorizontal":{type:["boolean","string"],enum:[!0,"active",!1],enumDescriptions:[p("editor.guides.bracketPairsHorizontal.true","Enables horizontal guides as addition to vertical bracket pair guides."),p("editor.guides.bracketPairsHorizontal.active","Enables horizontal guides only for the active bracket pair."),p("editor.guides.bracketPairsHorizontal.false","Disables horizontal bracket pair guides.")],default:e.bracketPairsHorizontal,description:p("editor.guides.bracketPairsHorizontal","Controls whether horizontal bracket pair guides are enabled or not.")},"editor.guides.highlightActiveBracketPair":{type:"boolean",default:e.highlightActiveBracketPair,description:p("editor.guides.highlightActiveBracketPair","Controls whether bracket pair guides are enabled or not.")},"editor.guides.indentation":{type:"boolean",default:e.indentation,description:p("editor.guides.indentation","Controls whether the editor should render indent guides.")},"editor.guides.highlightActiveIndentation":{type:"boolean",default:e.highlightActiveIndentation,description:p("editor.guides.highlightActiveIndentation","Controls whether the editor should highlight the active indent guide.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{bracketPairs:UI(t.bracketPairs,this.defaultValue.bracketPairs,[!0,!1,"active"]),bracketPairsHorizontal:UI(t.bracketPairsHorizontal,this.defaultValue.bracketPairsHorizontal,[!0,!1,"active"]),highlightActiveBracketPair:pe(t.highlightActiveBracketPair,this.defaultValue.highlightActiveBracketPair),indentation:pe(t.indentation,this.defaultValue.indentation),highlightActiveIndentation:pe(t.highlightActiveIndentation,this.defaultValue.highlightActiveIndentation)}}}function UI(s,e,t){const i=t.indexOf(s);return i===-1?e:t[i]}class d5 extends pi{constructor(){const e={insertMode:"insert",filterGraceful:!0,snippetsPreventQuickSuggestions:!0,localityBonus:!1,shareSuggestSelections:!1,showIcons:!0,showStatusBar:!1,preview:!1,previewMode:"subwordSmart",showInlineDetails:!0,showMethods:!0,showFunctions:!0,showConstructors:!0,showDeprecated:!0,showFields:!0,showVariables:!0,showClasses:!0,showStructs:!0,showInterfaces:!0,showModules:!0,showProperties:!0,showEvents:!0,showOperators:!0,showUnits:!0,showValues:!0,showConstants:!0,showEnums:!0,showEnumMembers:!0,showKeywords:!0,showWords:!0,showColors:!0,showFiles:!0,showReferences:!0,showFolders:!0,showTypeParameters:!0,showSnippets:!0,showUsers:!0,showIssues:!0};super(105,"suggest",e,{"editor.suggest.insertMode":{type:"string",enum:["insert","replace"],enumDescriptions:[p("suggest.insertMode.insert","Insert suggestion without overwriting text right of the cursor."),p("suggest.insertMode.replace","Insert suggestion and overwrite text right of the cursor.")],default:e.insertMode,description:p("suggest.insertMode","Controls whether words are overwritten when accepting completions. Note that this depends on extensions opting into this feature.")},"editor.suggest.filterGraceful":{type:"boolean",default:e.filterGraceful,description:p("suggest.filterGraceful","Controls whether filtering and sorting suggestions accounts for small typos.")},"editor.suggest.localityBonus":{type:"boolean",default:e.localityBonus,description:p("suggest.localityBonus","Controls whether sorting favors words that appear close to the cursor.")},"editor.suggest.shareSuggestSelections":{type:"boolean",default:e.shareSuggestSelections,markdownDescription:p("suggest.shareSuggestSelections","Controls whether remembered suggestion selections are shared between multiple workspaces and windows (needs `#editor.suggestSelection#`).")},"editor.suggest.snippetsPreventQuickSuggestions":{type:"boolean",default:e.snippetsPreventQuickSuggestions,description:p("suggest.snippetsPreventQuickSuggestions","Controls whether an active snippet prevents quick suggestions.")},"editor.suggest.showIcons":{type:"boolean",default:e.showIcons,description:p("suggest.showIcons","Controls whether to show or hide icons in suggestions.")},"editor.suggest.showStatusBar":{type:"boolean",default:e.showStatusBar,description:p("suggest.showStatusBar","Controls the visibility of the status bar at the bottom of the suggest widget.")},"editor.suggest.preview":{type:"boolean",default:e.preview,description:p("suggest.preview","Controls whether to preview the suggestion outcome in the editor.")},"editor.suggest.showInlineDetails":{type:"boolean",default:e.showInlineDetails,description:p("suggest.showInlineDetails","Controls whether suggest details show inline with the label or only in the details widget")},"editor.suggest.maxVisibleSuggestions":{type:"number",deprecationMessage:p("suggest.maxVisibleSuggestions.dep","This setting is deprecated. The suggest widget can now be resized.")},"editor.suggest.filteredTypes":{type:"object",deprecationMessage:p("deprecated","This setting is deprecated, please use separate settings like 'editor.suggest.showKeywords' or 'editor.suggest.showSnippets' instead.")},"editor.suggest.showMethods":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showMethods","When enabled IntelliSense shows `method`-suggestions.")},"editor.suggest.showFunctions":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showFunctions","When enabled IntelliSense shows `function`-suggestions.")},"editor.suggest.showConstructors":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showConstructors","When enabled IntelliSense shows `constructor`-suggestions.")},"editor.suggest.showDeprecated":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showDeprecated","When enabled IntelliSense shows `deprecated`-suggestions.")},"editor.suggest.showFields":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showFields","When enabled IntelliSense shows `field`-suggestions.")},"editor.suggest.showVariables":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showVariables","When enabled IntelliSense shows `variable`-suggestions.")},"editor.suggest.showClasses":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showClasss","When enabled IntelliSense shows `class`-suggestions.")},"editor.suggest.showStructs":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showStructs","When enabled IntelliSense shows `struct`-suggestions.")},"editor.suggest.showInterfaces":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showInterfaces","When enabled IntelliSense shows `interface`-suggestions.")},"editor.suggest.showModules":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showModules","When enabled IntelliSense shows `module`-suggestions.")},"editor.suggest.showProperties":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showPropertys","When enabled IntelliSense shows `property`-suggestions.")},"editor.suggest.showEvents":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showEvents","When enabled IntelliSense shows `event`-suggestions.")},"editor.suggest.showOperators":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showOperators","When enabled IntelliSense shows `operator`-suggestions.")},"editor.suggest.showUnits":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showUnits","When enabled IntelliSense shows `unit`-suggestions.")},"editor.suggest.showValues":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showValues","When enabled IntelliSense shows `value`-suggestions.")},"editor.suggest.showConstants":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showConstants","When enabled IntelliSense shows `constant`-suggestions.")},"editor.suggest.showEnums":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showEnums","When enabled IntelliSense shows `enum`-suggestions.")},"editor.suggest.showEnumMembers":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showEnumMembers","When enabled IntelliSense shows `enumMember`-suggestions.")},"editor.suggest.showKeywords":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showKeywords","When enabled IntelliSense shows `keyword`-suggestions.")},"editor.suggest.showWords":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showTexts","When enabled IntelliSense shows `text`-suggestions.")},"editor.suggest.showColors":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showColors","When enabled IntelliSense shows `color`-suggestions.")},"editor.suggest.showFiles":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showFiles","When enabled IntelliSense shows `file`-suggestions.")},"editor.suggest.showReferences":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showReferences","When enabled IntelliSense shows `reference`-suggestions.")},"editor.suggest.showCustomcolors":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showCustomcolors","When enabled IntelliSense shows `customcolor`-suggestions.")},"editor.suggest.showFolders":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showFolders","When enabled IntelliSense shows `folder`-suggestions.")},"editor.suggest.showTypeParameters":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showTypeParameters","When enabled IntelliSense shows `typeParameter`-suggestions.")},"editor.suggest.showSnippets":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showSnippets","When enabled IntelliSense shows `snippet`-suggestions.")},"editor.suggest.showUsers":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showUsers","When enabled IntelliSense shows `user`-suggestions.")},"editor.suggest.showIssues":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showIssues","When enabled IntelliSense shows `issues`-suggestions.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{insertMode:mn(t.insertMode,this.defaultValue.insertMode,["insert","replace"]),filterGraceful:pe(t.filterGraceful,this.defaultValue.filterGraceful),snippetsPreventQuickSuggestions:pe(t.snippetsPreventQuickSuggestions,this.defaultValue.filterGraceful),localityBonus:pe(t.localityBonus,this.defaultValue.localityBonus),shareSuggestSelections:pe(t.shareSuggestSelections,this.defaultValue.shareSuggestSelections),showIcons:pe(t.showIcons,this.defaultValue.showIcons),showStatusBar:pe(t.showStatusBar,this.defaultValue.showStatusBar),preview:pe(t.preview,this.defaultValue.preview),previewMode:mn(t.previewMode,this.defaultValue.previewMode,["prefix","subword","subwordSmart"]),showInlineDetails:pe(t.showInlineDetails,this.defaultValue.showInlineDetails),showMethods:pe(t.showMethods,this.defaultValue.showMethods),showFunctions:pe(t.showFunctions,this.defaultValue.showFunctions),showConstructors:pe(t.showConstructors,this.defaultValue.showConstructors),showDeprecated:pe(t.showDeprecated,this.defaultValue.showDeprecated),showFields:pe(t.showFields,this.defaultValue.showFields),showVariables:pe(t.showVariables,this.defaultValue.showVariables),showClasses:pe(t.showClasses,this.defaultValue.showClasses),showStructs:pe(t.showStructs,this.defaultValue.showStructs),showInterfaces:pe(t.showInterfaces,this.defaultValue.showInterfaces),showModules:pe(t.showModules,this.defaultValue.showModules),showProperties:pe(t.showProperties,this.defaultValue.showProperties),showEvents:pe(t.showEvents,this.defaultValue.showEvents),showOperators:pe(t.showOperators,this.defaultValue.showOperators),showUnits:pe(t.showUnits,this.defaultValue.showUnits),showValues:pe(t.showValues,this.defaultValue.showValues),showConstants:pe(t.showConstants,this.defaultValue.showConstants),showEnums:pe(t.showEnums,this.defaultValue.showEnums),showEnumMembers:pe(t.showEnumMembers,this.defaultValue.showEnumMembers),showKeywords:pe(t.showKeywords,this.defaultValue.showKeywords),showWords:pe(t.showWords,this.defaultValue.showWords),showColors:pe(t.showColors,this.defaultValue.showColors),showFiles:pe(t.showFiles,this.defaultValue.showFiles),showReferences:pe(t.showReferences,this.defaultValue.showReferences),showFolders:pe(t.showFolders,this.defaultValue.showFolders),showTypeParameters:pe(t.showTypeParameters,this.defaultValue.showTypeParameters),showSnippets:pe(t.showSnippets,this.defaultValue.showSnippets),showUsers:pe(t.showUsers,this.defaultValue.showUsers),showIssues:pe(t.showIssues,this.defaultValue.showIssues)}}}class h5 extends pi{constructor(){super(101,"smartSelect",{selectLeadingAndTrailingWhitespace:!0},{"editor.smartSelect.selectLeadingAndTrailingWhitespace":{description:p("selectLeadingAndTrailingWhitespace","Whether leading and trailing whitespace should always be selected."),default:!0,type:"boolean"}})}validate(e){return!e||typeof e!="object"?this.defaultValue:{selectLeadingAndTrailingWhitespace:pe(e.selectLeadingAndTrailingWhitespace,this.defaultValue.selectLeadingAndTrailingWhitespace)}}}class c5 extends Au{constructor(){super(128,[80])}compute(e,t,i){return t.get(80)?!0:e.tabFocusMode}}function u5(s){switch(s){case"none":return 0;case"same":return 1;case"indent":return 2;case"deepIndent":return 3}}class f5 extends Au{constructor(){super(130,[129])}compute(e,t,i){const n=t.get(129);return{isDominatedByLongLines:e.isDominatedByLongLines,isWordWrapMinified:n.isWordWrapMinified,isViewportWrapping:n.isViewportWrapping,wrappingColumn:n.wrappingColumn}}}const g5="Consolas, 'Courier New', monospace",p5="Menlo, Monaco, 'Courier New', monospace",m5="'Droid Sans Mono', 'monospace', monospace, 'Droid Sans Fallback'",Hi={fontFamily:Me?p5:Cn?m5:g5,fontWeight:"normal",fontSize:Me?12:14,lineHeight:0,letterSpacing:0},Gi={tabSize:4,indentSize:4,insertSpaces:!0,detectIndentation:!0,trimAutoWhitespace:!0,largeFileOptimizations:!0,bracketPairColorizationOptions:{enabled:!1}},mc=[];function Q(s){return mc[s.id]=s,s}const Do={acceptSuggestionOnCommitCharacter:Q(new ze(0,"acceptSuggestionOnCommitCharacter",!0,{markdownDescription:p("acceptSuggestionOnCommitCharacter","Controls whether suggestions should be accepted on commit characters. For example, in JavaScript, the semi-colon (`;`) can be a commit character that accepts a suggestion and types that character.")})),acceptSuggestionOnEnter:Q(new ti(1,"acceptSuggestionOnEnter","on",["on","smart","off"],{markdownEnumDescriptions:["",p("acceptSuggestionOnEnterSmart","Only accept a suggestion with `Enter` when it makes a textual change."),""],markdownDescription:p("acceptSuggestionOnEnter","Controls whether suggestions should be accepted on `Enter`, in addition to `Tab`. Helps to avoid ambiguity between inserting new lines or accepting suggestions.")})),accessibilitySupport:Q(new FB),accessibilityPageSize:Q(new St(3,"accessibilityPageSize",10,1,1073741824,{description:p("accessibilityPageSize","Controls the number of lines in the editor that can be read out by a screen reader at once. When we detect a screen reader we automatically set the default to be 500. Warning: this has a performance implication for numbers larger than the default.")})),ariaLabel:Q(new kn(4,"ariaLabel",p("editorViewAccessibleLabel","Editor content"))),autoClosingBrackets:Q(new ti(5,"autoClosingBrackets","languageDefined",["always","languageDefined","beforeWhitespace","never"],{enumDescriptions:["",p("editor.autoClosingBrackets.languageDefined","Use language configurations to determine when to autoclose brackets."),p("editor.autoClosingBrackets.beforeWhitespace","Autoclose brackets only when the cursor is to the left of whitespace."),""],description:p("autoClosingBrackets","Controls whether the editor should automatically close brackets after the user adds an opening bracket.")})),autoClosingDelete:Q(new ti(6,"autoClosingDelete","auto",["always","auto","never"],{enumDescriptions:["",p("editor.autoClosingDelete.auto","Remove adjacent closing quotes or brackets only if they were automatically inserted."),""],description:p("autoClosingDelete","Controls whether the editor should remove adjacent closing quotes or brackets when deleting.")})),autoClosingOvertype:Q(new ti(7,"autoClosingOvertype","auto",["always","auto","never"],{enumDescriptions:["",p("editor.autoClosingOvertype.auto","Type over closing quotes or brackets only if they were automatically inserted."),""],description:p("autoClosingOvertype","Controls whether the editor should type over closing quotes or brackets.")})),autoClosingQuotes:Q(new ti(8,"autoClosingQuotes","languageDefined",["always","languageDefined","beforeWhitespace","never"],{enumDescriptions:["",p("editor.autoClosingQuotes.languageDefined","Use language configurations to determine when to autoclose quotes."),p("editor.autoClosingQuotes.beforeWhitespace","Autoclose quotes only when the cursor is to the left of whitespace."),""],description:p("autoClosingQuotes","Controls whether the editor should automatically close quotes after the user adds an opening quote.")})),autoIndent:Q(new sf(9,"autoIndent",4,"full",["none","keep","brackets","advanced","full"],PB,{enumDescriptions:[p("editor.autoIndent.none","The editor will not insert indentation automatically."),p("editor.autoIndent.keep","The editor will keep the current line's indentation."),p("editor.autoIndent.brackets","The editor will keep the current line's indentation and honor language defined brackets."),p("editor.autoIndent.advanced","The editor will keep the current line's indentation, honor language defined brackets and invoke special onEnterRules defined by languages."),p("editor.autoIndent.full","The editor will keep the current line's indentation, honor language defined brackets, invoke special onEnterRules defined by languages, and honor indentationRules defined by languages.")],description:p("autoIndent","Controls whether the editor should automatically adjust the indentation when users type, paste, move or indent lines.")})),automaticLayout:Q(new ze(10,"automaticLayout",!1)),autoSurround:Q(new ti(11,"autoSurround","languageDefined",["languageDefined","quotes","brackets","never"],{enumDescriptions:[p("editor.autoSurround.languageDefined","Use language configurations to determine when to automatically surround selections."),p("editor.autoSurround.quotes","Surround with quotes but not brackets."),p("editor.autoSurround.brackets","Surround with brackets but not quotes."),""],description:p("autoSurround","Controls whether the editor should automatically surround selections when typing quotes or brackets.")})),bracketPairColorization:Q(new a5),bracketPairGuides:Q(new l5),stickyTabStops:Q(new ze(103,"stickyTabStops",!1,{description:p("stickyTabStops","Emulate selection behavior of tab characters when using spaces for indentation. Selection will stick to tab stops.")})),codeLens:Q(new ze(14,"codeLens",!0,{description:p("codeLens","Controls whether the editor shows CodeLens.")})),codeLensFontFamily:Q(new kn(15,"codeLensFontFamily","",{description:p("codeLensFontFamily","Controls the font family for CodeLens.")})),codeLensFontSize:Q(new St(16,"codeLensFontSize",0,0,100,{type:"number",default:0,minimum:0,maximum:100,markdownDescription:p("codeLensFontSize","Controls the font size in pixels for CodeLens. When set to `0`, the 90% of `#editor.fontSize#` is used.")})),colorDecorators:Q(new ze(17,"colorDecorators",!0,{description:p("colorDecorators","Controls whether the editor should render the inline color decorators and color picker.")})),columnSelection:Q(new ze(18,"columnSelection",!1,{description:p("columnSelection","Enable that the selection with the mouse and keys is doing column selection.")})),comments:Q(new BB),contextmenu:Q(new ze(20,"contextmenu",!0)),copyWithSyntaxHighlighting:Q(new ze(21,"copyWithSyntaxHighlighting",!0,{description:p("copyWithSyntaxHighlighting","Controls whether syntax highlighting should be copied into the clipboard.")})),cursorBlinking:Q(new sf(22,"cursorBlinking",1,"blink",["blink","smooth","phase","expand","solid"],WB,{description:p("cursorBlinking","Control the cursor animation style.")})),cursorSmoothCaretAnimation:Q(new ze(23,"cursorSmoothCaretAnimation",!1,{description:p("cursorSmoothCaretAnimation","Controls whether the smooth caret animation should be enabled.")})),cursorStyle:Q(new sf(24,"cursorStyle",wi.Line,"line",["line","block","underline","line-thin","block-outline","underline-thin"],VB,{description:p("cursorStyle","Controls the cursor style.")})),cursorSurroundingLines:Q(new St(25,"cursorSurroundingLines",0,0,1073741824,{description:p("cursorSurroundingLines","Controls the minimal number of visible leading and trailing lines surrounding the cursor. Known as 'scrollOff' or 'scrollOffset' in some other editors.")})),cursorSurroundingLinesStyle:Q(new ti(26,"cursorSurroundingLinesStyle","default",["default","all"],{enumDescriptions:[p("cursorSurroundingLinesStyle.default","`cursorSurroundingLines` is enforced only when triggered via the keyboard or API."),p("cursorSurroundingLinesStyle.all","`cursorSurroundingLines` is enforced always.")],description:p("cursorSurroundingLinesStyle","Controls when `cursorSurroundingLines` should be enforced.")})),cursorWidth:Q(new St(27,"cursorWidth",0,0,1073741824,{markdownDescription:p("cursorWidth","Controls the width of the cursor when `#editor.cursorStyle#` is set to `line`.")})),disableLayerHinting:Q(new ze(28,"disableLayerHinting",!1)),disableMonospaceOptimizations:Q(new ze(29,"disableMonospaceOptimizations",!1)),domReadOnly:Q(new ze(30,"domReadOnly",!1)),dragAndDrop:Q(new ze(31,"dragAndDrop",!0,{description:p("dragAndDrop","Controls whether the editor should allow moving selections via drag and drop.")})),emptySelectionClipboard:Q(new zB),extraEditorClassName:Q(new kn(33,"extraEditorClassName","")),fastScrollSensitivity:Q(new er(34,"fastScrollSensitivity",5,s=>s<=0?5:s,{markdownDescription:p("fastScrollSensitivity","Scrolling speed multiplier when pressing `Alt`.")})),find:Q(new UB),fixedOverflowWidgets:Q(new ze(36,"fixedOverflowWidgets",!1)),folding:Q(new ze(37,"folding",!0,{description:p("folding","Controls whether the editor has code folding enabled.")})),foldingStrategy:Q(new ti(38,"foldingStrategy","auto",["auto","indentation"],{enumDescriptions:[p("foldingStrategy.auto","Use a language-specific folding strategy if available, else the indentation-based one."),p("foldingStrategy.indentation","Use the indentation-based folding strategy.")],description:p("foldingStrategy","Controls the strategy for computing folding ranges.")})),foldingHighlight:Q(new ze(39,"foldingHighlight",!0,{description:p("foldingHighlight","Controls whether the editor should highlight folded ranges.")})),foldingImportsByDefault:Q(new ze(40,"foldingImportsByDefault",!1,{description:p("foldingImportsByDefault","Controls whether the editor automatically collapses import ranges.")})),unfoldOnClickAfterEndOfLine:Q(new ze(41,"unfoldOnClickAfterEndOfLine",!1,{description:p("unfoldOnClickAfterEndOfLine","Controls whether clicking on the empty content after a folded line will unfold the line.")})),fontFamily:Q(new kn(42,"fontFamily",Hi.fontFamily,{description:p("fontFamily","Controls the font family.")})),fontInfo:Q(new $B),fontLigatures2:Q(new zn),fontSize:Q(new jB),fontWeight:Q(new Zo),formatOnPaste:Q(new ze(47,"formatOnPaste",!1,{description:p("formatOnPaste","Controls whether the editor should automatically format the pasted content. A formatter must be available and the formatter should be able to format a range in a document.")})),formatOnType:Q(new ze(48,"formatOnType",!1,{description:p("formatOnType","Controls whether the editor should automatically format the line after typing.")})),glyphMargin:Q(new ze(49,"glyphMargin",!0,{description:p("glyphMargin","Controls whether the editor should render the vertical glyph margin. Glyph margin is mostly used for debugging.")})),gotoLocation:Q(new KB),hideCursorInOverviewRuler:Q(new ze(51,"hideCursorInOverviewRuler",!1,{description:p("hideCursorInOverviewRuler","Controls whether the cursor should be hidden in the overview ruler.")})),hover:Q(new qB),inDiffEditor:Q(new ze(53,"inDiffEditor",!1)),letterSpacing:Q(new er(55,"letterSpacing",Hi.letterSpacing,s=>er.clamp(s,-5,20),{description:p("letterSpacing","Controls the letter spacing in pixels.")})),lightbulb:Q(new GB),lineDecorationsWidth:Q(new _h(57,"lineDecorationsWidth",10)),lineHeight:Q(new YB),lineNumbers:Q(new n5),lineNumbersMinChars:Q(new St(60,"lineNumbersMinChars",5,1,300)),linkedEditing:Q(new ze(61,"linkedEditing",!1,{description:p("linkedEditing","Controls whether the editor has linked editing enabled. Depending on the language, related symbols, e.g. HTML tags, are updated while editing.")})),links:Q(new ze(62,"links",!0,{description:p("links","Controls whether the editor should detect links and make them clickable.")})),matchBrackets:Q(new ti(63,"matchBrackets","always",["always","near","never"],{description:p("matchBrackets","Highlight matching brackets.")})),minimap:Q(new XB),mouseStyle:Q(new ti(65,"mouseStyle","text",["text","default","copy"])),mouseWheelScrollSensitivity:Q(new er(66,"mouseWheelScrollSensitivity",1,s=>s===0?1:s,{markdownDescription:p("mouseWheelScrollSensitivity","A multiplier to be used on the `deltaX` and `deltaY` of mouse wheel scroll events.")})),mouseWheelZoom:Q(new ze(67,"mouseWheelZoom",!1,{markdownDescription:p("mouseWheelZoom","Zoom the font of the editor when using mouse wheel and holding `Ctrl`.")})),multiCursorMergeOverlapping:Q(new ze(68,"multiCursorMergeOverlapping",!0,{description:p("multiCursorMergeOverlapping","Merge multiple cursors when they are overlapping.")})),multiCursorModifier:Q(new sf(69,"multiCursorModifier","altKey","alt",["ctrlCmd","alt"],QB,{markdownEnumDescriptions:[p("multiCursorModifier.ctrlCmd","Maps to `Control` on Windows and Linux and to `Command` on macOS."),p("multiCursorModifier.alt","Maps to `Alt` on Windows and Linux and to `Option` on macOS.")],markdownDescription:p({key:"multiCursorModifier",comment:["- `ctrlCmd` refers to a value the setting can take and should not be localized.","- `Control` and `Command` refer to the modifier keys Ctrl or Cmd on the keyboard and can be localized."]},"The modifier to be used to add multiple cursors with the mouse. The Go to Definition and Open Link mouse gestures will adapt such that they do not conflict with the multicursor modifier. [Read more](https://code.visualstudio.com/docs/editor/codebasics#_multicursor-modifier).")})),multiCursorPaste:Q(new ti(70,"multiCursorPaste","spread",["spread","full"],{markdownEnumDescriptions:[p("multiCursorPaste.spread","Each cursor pastes a single line of the text."),p("multiCursorPaste.full","Each cursor pastes the full text.")],markdownDescription:p("multiCursorPaste","Controls pasting when the line count of the pasted text matches the cursor count.")})),occurrencesHighlight:Q(new ze(71,"occurrencesHighlight",!0,{description:p("occurrencesHighlight","Controls whether the editor should highlight semantic symbol occurrences.")})),overviewRulerBorder:Q(new ze(72,"overviewRulerBorder",!0,{description:p("overviewRulerBorder","Controls whether a border should be drawn around the overview ruler.")})),overviewRulerLanes:Q(new St(73,"overviewRulerLanes",3,0,3)),padding:Q(new JB),parameterHints:Q(new e5),peekWidgetDefaultFocus:Q(new ti(76,"peekWidgetDefaultFocus","tree",["tree","editor"],{enumDescriptions:[p("peekWidgetDefaultFocus.tree","Focus the tree when opening peek"),p("peekWidgetDefaultFocus.editor","Focus the editor when opening peek")],description:p("peekWidgetDefaultFocus","Controls whether to focus the inline editor or the tree in the peek widget.")})),definitionLinkOpensInPeek:Q(new ze(77,"definitionLinkOpensInPeek",!1,{description:p("definitionLinkOpensInPeek","Controls whether the Go to Definition mouse gesture always opens the peek widget.")})),quickSuggestions:Q(new i5),quickSuggestionsDelay:Q(new St(79,"quickSuggestionsDelay",10,0,1073741824,{description:p("quickSuggestionsDelay","Controls the delay in milliseconds after which quick suggestions will show up.")})),readOnly:Q(new ze(80,"readOnly",!1)),renameOnType:Q(new ze(81,"renameOnType",!1,{description:p("renameOnType","Controls whether the editor auto renames on type."),markdownDeprecationMessage:p("renameOnTypeDeprecate","Deprecated, use `editor.linkedEditing` instead.")})),renderControlCharacters:Q(new ze(82,"renderControlCharacters",!0,{description:p("renderControlCharacters","Controls whether the editor should render control characters."),restricted:!0})),renderFinalNewline:Q(new ze(83,"renderFinalNewline",!0,{description:p("renderFinalNewline","Render last line number when the file ends with a newline.")})),renderLineHighlight:Q(new ti(84,"renderLineHighlight","line",["none","gutter","line","all"],{enumDescriptions:["","","",p("renderLineHighlight.all","Highlights both the gutter and the current line.")],description:p("renderLineHighlight","Controls how the editor should render the current line highlight.")})),renderLineHighlightOnlyWhenFocus:Q(new ze(85,"renderLineHighlightOnlyWhenFocus",!1,{description:p("renderLineHighlightOnlyWhenFocus","Controls if the editor should render the current line highlight only when the editor is focused.")})),renderValidationDecorations:Q(new ti(86,"renderValidationDecorations","editable",["editable","on","off"])),renderWhitespace:Q(new ti(87,"renderWhitespace","selection",["none","boundary","selection","trailing","all"],{enumDescriptions:["",p("renderWhitespace.boundary","Render whitespace characters except for single spaces between words."),p("renderWhitespace.selection","Render whitespace characters only on selected text."),p("renderWhitespace.trailing","Render only trailing whitespace characters."),""],description:p("renderWhitespace","Controls how the editor should render whitespace characters.")})),revealHorizontalRightPadding:Q(new St(88,"revealHorizontalRightPadding",30,0,1e3)),roundedSelection:Q(new ze(89,"roundedSelection",!0,{description:p("roundedSelection","Controls whether selections should have rounded corners.")})),rulers:Q(new s5),scrollbar:Q(new o5),scrollBeyondLastColumn:Q(new St(92,"scrollBeyondLastColumn",5,0,1073741824,{description:p("scrollBeyondLastColumn","Controls the number of extra characters beyond which the editor will scroll horizontally.")})),scrollBeyondLastLine:Q(new ze(93,"scrollBeyondLastLine",!0,{description:p("scrollBeyondLastLine","Controls whether the editor will scroll beyond the last line.")})),scrollPredominantAxis:Q(new ze(94,"scrollPredominantAxis",!0,{description:p("scrollPredominantAxis","Scroll only along the predominant axis when scrolling both vertically and horizontally at the same time. Prevents horizontal drift when scrolling vertically on a trackpad.")})),selectionClipboard:Q(new ze(95,"selectionClipboard",!0,{description:p("selectionClipboard","Controls whether the Linux primary clipboard should be supported."),included:Cn})),selectionHighlight:Q(new ze(96,"selectionHighlight",!0,{description:p("selectionHighlight","Controls whether the editor should highlight matches similar to the selection.")})),selectOnLineNumbers:Q(new ze(97,"selectOnLineNumbers",!0)),showFoldingControls:Q(new ti(98,"showFoldingControls","mouseover",["always","mouseover"],{enumDescriptions:[p("showFoldingControls.always","Always show the folding controls."),p("showFoldingControls.mouseover","Only show the folding controls when the mouse is over the gutter.")],description:p("showFoldingControls","Controls when the folding controls on the gutter are shown.")})),showUnused:Q(new ze(99,"showUnused",!0,{description:p("showUnused","Controls fading out of unused code.")})),showDeprecated:Q(new ze(124,"showDeprecated",!0,{description:p("showDeprecated","Controls strikethrough deprecated variables.")})),inlayHints:Q(new ZB),snippetSuggestions:Q(new ti(100,"snippetSuggestions","inline",["top","bottom","inline","none"],{enumDescriptions:[p("snippetSuggestions.top","Show snippet suggestions on top of other suggestions."),p("snippetSuggestions.bottom","Show snippet suggestions below other suggestions."),p("snippetSuggestions.inline","Show snippets suggestions with other suggestions."),p("snippetSuggestions.none","Do not show snippet suggestions.")],description:p("snippetSuggestions","Controls whether snippets are shown with other suggestions and how they are sorted.")})),smartSelect:Q(new h5),smoothScrolling:Q(new ze(102,"smoothScrolling",!1,{description:p("smoothScrolling","Controls whether the editor will scroll using an animation.")})),stopRenderingLineAfter:Q(new St(104,"stopRenderingLineAfter",1e4,-1,1073741824)),suggest:Q(new d5),inlineSuggest:Q(new r5),suggestFontSize:Q(new St(106,"suggestFontSize",0,0,1e3,{markdownDescription:p("suggestFontSize","Font size for the suggest widget. When set to `0`, the value of `#editor.fontSize#` is used.")})),suggestLineHeight:Q(new St(107,"suggestLineHeight",0,0,1e3,{markdownDescription:p("suggestLineHeight","Line height for the suggest widget. When set to `0`, the value of `#editor.lineHeight#` is used. The minimum value is 8.")})),suggestOnTriggerCharacters:Q(new ze(108,"suggestOnTriggerCharacters",!0,{description:p("suggestOnTriggerCharacters","Controls whether suggestions should automatically show up when typing trigger characters.")})),suggestSelection:Q(new ti(109,"suggestSelection","recentlyUsed",["first","recentlyUsed","recentlyUsedByPrefix"],{markdownEnumDescriptions:[p("suggestSelection.first","Always select the first suggestion."),p("suggestSelection.recentlyUsed","Select recent suggestions unless further typing selects one, e.g. `console.| -> console.log` because `log` has been completed recently."),p("suggestSelection.recentlyUsedByPrefix","Select suggestions based on previous prefixes that have completed those suggestions, e.g. `co -> console` and `con -> const`.")],description:p("suggestSelection","Controls how suggestions are pre-selected when showing the suggest list.")})),tabCompletion:Q(new ti(110,"tabCompletion","off",["on","off","onlySnippets"],{enumDescriptions:[p("tabCompletion.on","Tab complete will insert the best matching suggestion when pressing tab."),p("tabCompletion.off","Disable tab completions."),p("tabCompletion.onlySnippets","Tab complete snippets when their prefix match. Works best when 'quickSuggestions' aren't enabled.")],description:p("tabCompletion","Enables tab completions.")})),tabIndex:Q(new St(111,"tabIndex",0,-1,1073741824)),unusualLineTerminators:Q(new ti(112,"unusualLineTerminators","prompt",["auto","off","prompt"],{enumDescriptions:[p("unusualLineTerminators.auto","Unusual line terminators are automatically removed."),p("unusualLineTerminators.off","Unusual line terminators are ignored."),p("unusualLineTerminators.prompt","Unusual line terminators prompt to be removed.")],description:p("unusualLineTerminators","Remove unusual line terminators that might cause problems.")})),useShadowDOM:Q(new ze(113,"useShadowDOM",!0)),useTabStops:Q(new ze(114,"useTabStops",!0,{description:p("useTabStops","Inserting and deleting whitespace follows tab stops.")})),wordSeparators:Q(new kn(115,"wordSeparators",LR,{description:p("wordSeparators","Characters that will be used as word separators when doing word related navigations or operations.")})),wordWrap:Q(new ti(116,"wordWrap","off",["off","on","wordWrapColumn","bounded"],{markdownEnumDescriptions:[p("wordWrap.off","Lines will never wrap."),p("wordWrap.on","Lines will wrap at the viewport width."),p({key:"wordWrap.wordWrapColumn",comment:["- `editor.wordWrapColumn` refers to a different setting and should not be localized."]},"Lines will wrap at `#editor.wordWrapColumn#`."),p({key:"wordWrap.bounded",comment:["- viewport means the edge of the visible window size.","- `editor.wordWrapColumn` refers to a different setting and should not be localized."]},"Lines will wrap at the minimum of viewport and `#editor.wordWrapColumn#`.")],description:p({key:"wordWrap",comment:["- 'off', 'on', 'wordWrapColumn' and 'bounded' refer to values the setting can take and should not be localized.","- `editor.wordWrapColumn` refers to a different setting and should not be localized."]},"Controls how lines should wrap.")})),wordWrapBreakAfterCharacters:Q(new kn(117,"wordWrapBreakAfterCharacters"," })]?|/&.,;¢°′″‰℃、。。、¢,.:;?!%・・ゝゞヽヾーァィゥェォッャュョヮヵヶぁぃぅぇぉっゃゅょゎゕゖㇰㇱㇲㇳㇴㇵㇶㇷㇸㇹㇺㇻㇼㇽㇾㇿ々〻ァィゥェォャュョッー”〉》」』】〕)]}」")),wordWrapBreakBeforeCharacters:Q(new kn(118,"wordWrapBreakBeforeCharacters","([{‘“〈《「『【〔([{「£¥$£¥++")),wordWrapColumn:Q(new St(119,"wordWrapColumn",80,1,1073741824,{markdownDescription:p({key:"wordWrapColumn",comment:["- `editor.wordWrap` refers to a different setting and should not be localized.","- 'wordWrapColumn' and 'bounded' refer to values the different setting can take and should not be localized."]},"Controls the wrapping column of the editor when `#editor.wordWrap#` is `wordWrapColumn` or `bounded`.")})),wordWrapOverride1:Q(new ti(120,"wordWrapOverride1","inherit",["off","on","inherit"])),wordWrapOverride2:Q(new ti(121,"wordWrapOverride2","inherit",["off","on","inherit"])),wrappingIndent:Q(new sf(122,"wrappingIndent",1,"same",["none","same","indent","deepIndent"],u5,{enumDescriptions:[p("wrappingIndent.none","No indentation. Wrapped lines begin at column 1."),p("wrappingIndent.same","Wrapped lines get the same indentation as the parent."),p("wrappingIndent.indent","Wrapped lines get +1 indentation toward the parent."),p("wrappingIndent.deepIndent","Wrapped lines get +2 indentation toward the parent.")],description:p("wrappingIndent","Controls the indentation of wrapped lines.")})),wrappingStrategy:Q(new ti(123,"wrappingStrategy","simple",["simple","advanced"],{enumDescriptions:[p("wrappingStrategy.simple","Assumes that all characters are of the same width. This is a fast algorithm that works correctly for monospace fonts and certain scripts (like Latin characters) where glyphs are of equal width."),p("wrappingStrategy.advanced","Delegates wrapping points computation to the browser. This is a slow algorithm, that might cause freezes for large files, but it works correctly in all cases.")],description:p("wrappingStrategy","Controls the algorithm that computes wrapping points.")})),editorClassName:Q(new HB),pixelRatio:Q(new t5),tabFocusMode:Q(new c5),layoutInfo:Q(new Nc),wrappingInfo:Q(new f5)};class _5{constructor(){this.listeners=[],this.unexpectedErrorHandler=function(e){setTimeout(()=>{throw e.stack?new Error(e.message+`
@@ -615,7 +615,7 @@ ${e.toString()}`}}class SC{constructor(e=new qg,t=!1,i){this._activeInstantiatio
`),this}appendMarkdown(e){return this.value+=e,this}appendCodeblock(e,t){return this.value+="\n```",this.value+=e,this.value+=`
`,this.value+=t,this.value+="\n```\n",this}}function hg(s){return L2(s)?!s.value:Array.isArray(s)?s.every(hg):!0}function L2(s){return s instanceof ma?!0:s&&typeof s=="object"?typeof s.value=="string"&&(typeof s.isTrusted=="boolean"||s.isTrusted===void 0)&&(typeof s.supportThemeIcons=="boolean"||s.supportThemeIcons===void 0):!1}function xG(s){return s.replace(/[\\`*_{}[\]()#+\-!]/g,"\\$&")}function rS(s){return s&&s.replace(/\\([\\`*_{}[\]()#+\-.!])/g,"$1")}function kG(s){const e=[],t=s.split("|").map(n=>n.trim());s=t[0];const i=t[1];if(i){const n=/height=(\d+)/.exec(i),o=/width=(\d+)/.exec(i),r=n?n[1]:"",a=o?o[1]:"",l=isFinite(parseInt(a)),d=isFinite(parseInt(r));l&&e.push(`width="${a}"`),d&&e.push(`height="${r}"`)}return{href:s,dimensions:e}}var vL=globalThis&&globalThis.__awaiter||function(s,e,t,i){function n(o){return o instanceof t?o:new t(function(r){r(o)})}return new(t||(t=Promise))(function(o,r){function a(h){try{d(i.next(h))}catch(c){r(c)}}function l(h){try{d(i.throw(h))}catch(c){r(c)}}function d(h){h.done?o(h.value):n(h.value).then(a,l)}d((i=i.apply(s,e||[])).next())})};function IG(s,e){Gs(e)?s.title=e:e!=null&&e.markdownNotSupportedFallback?s.title=e.markdownNotSupportedFallback:s.removeAttribute("title")}class EG{constructor(e,t,i){this.hoverDelegate=e,this.target=t,this.fadeInAnimation=i}update(e,t){var i;return vL(this,void 0,void 0,function*(){if(this._cancellationTokenSource&&(this._cancellationTokenSource.dispose(!0),this._cancellationTokenSource=void 0),this.isDisposed)return;let n;if(e===void 0||Gs(e)||e instanceof HTMLElement)n=e;else if(!Wf(e.markdown))n=(i=e.markdown)!==null&&i!==void 0?i:e.markdownNotSupportedFallback;else{this._hoverWidget||this.show(p("iconLabel.loading","Loading..."),t),this._cancellationTokenSource=new ln;const o=this._cancellationTokenSource.token;if(n=yield e.markdown(o),this.isDisposed||o.isCancellationRequested)return}this.show(n,t)})}show(e,t){const i=this._hoverWidget;if(this.hasContent(e)){const n={content:e,target:this.target,showPointer:this.hoverDelegate.placement==="element",hoverPosition:2,skipFadeInAnimation:!this.fadeInAnimation||!!i};this._hoverWidget=this.hoverDelegate.showHover(n,t)}i==null||i.dispose()}hasContent(e){return e?L2(e)?!!e.value:!0:!1}get isDisposed(){var e;return(e=this._hoverWidget)===null||e===void 0?void 0:e.isDisposed}dispose(){var e,t;(e=this._hoverWidget)===null||e===void 0||e.dispose(),(t=this._cancellationTokenSource)===null||t===void 0||t.dispose(!0),this._cancellationTokenSource=void 0}}function NG(s,e,t){let i,n;const o=(h,c)=>{var u;h&&(n==null||n.dispose(),n=void 0),c&&(i==null||i.dispose(),i=void 0),(u=s.onDidHideHover)===null||u===void 0||u.call(s)},r=(h,c,u)=>new hn(()=>vL(this,void 0,void 0,function*(){(!n||n.isDisposed)&&(n=new EG(s,u||e,h>0),yield n.update(t,c))}),h),a=()=>{if(i)return;const h=new X,c=g=>o(!1,g.fromElement===e);h.add(q(e,ue.MOUSE_LEAVE,c,!0));const u=()=>o(!0,!0);h.add(q(e,ue.MOUSE_DOWN,u,!0));const f={targetElements:[e],dispose:()=>{}};if(s.placement===void 0||s.placement==="mouse"){const g=m=>f.x=m.x+10;h.add(q(e,ue.MOUSE_MOVE,g,!0))}h.add(r(s.delay,!1,f)),i=h},l=q(e,ue.MOUSE_OVER,a,!0);return{show:h=>{o(!1,!0),r(0,h)},hide:()=>{o(!0,!0)},update:h=>vL(this,void 0,void 0,function*(){t=h,yield n==null?void 0:n.update(t)}),dispose:()=>{l.dispose(),o(!0,!0)}}}class aS{constructor(e){this._element=e}get element(){return this._element}set textContent(e){this.disposed||e===this._textContent||(this._textContent=e,this._element.textContent=e)}set className(e){this.disposed||e===this._className||(this._className=e,this._element.className=e)}set empty(e){this.disposed||e===this._empty||(this._empty=e,this._element.style.marginLeft=e?"0":"")}dispose(){this.disposed=!0}}class Xk extends H{constructor(e,t){super(),this.customHovers=new Map,this.domNode=this._register(new aS(U(e,Y(".monaco-icon-label")))),this.labelContainer=U(this.domNode.element,Y(".monaco-icon-label-container"));const i=U(this.labelContainer,Y("span.monaco-icon-name-container"));this.descriptionContainer=this._register(new aS(U(this.labelContainer,Y("span.monaco-icon-description-container")))),t!=null&&t.supportHighlights||t!=null&&t.supportIcons?this.nameNode=new RG(i,!!t.supportIcons):this.nameNode=new TG(i),t!=null&&t.supportDescriptionHighlights?this.descriptionNodeFactory=()=>new Cl(U(this.descriptionContainer.element,Y("span.label-description")),!!t.supportIcons):this.descriptionNodeFactory=()=>this._register(new aS(U(this.descriptionContainer.element,Y("span.label-description")))),this.hoverDelegate=t==null?void 0:t.hoverDelegate}get element(){return this.domNode.element}setLabel(e,t,i){const n=["monaco-icon-label"];i&&(i.extraClasses&&n.push(...i.extraClasses),i.italic&&n.push("italic"),i.strikethrough&&n.push("strikethrough")),this.domNode.className=n.join(" "),this.setupHover(i!=null&&i.descriptionTitle?this.labelContainer:this.element,i==null?void 0:i.title),this.nameNode.setLabel(e,i),(t||this.descriptionNode)&&(this.descriptionNode||(this.descriptionNode=this.descriptionNodeFactory()),this.descriptionNode instanceof Cl?(this.descriptionNode.set(t||"",i?i.descriptionMatches:void 0),this.setupHover(this.descriptionNode.element,i==null?void 0:i.descriptionTitle)):(this.descriptionNode.textContent=t||"",this.setupHover(this.descriptionNode.element,(i==null?void 0:i.descriptionTitle)||""),this.descriptionNode.empty=!t))}setupHover(e,t){const i=this.customHovers.get(e);if(i&&(i.dispose(),this.customHovers.delete(e)),!t){e.removeAttribute("title");return}if(!this.hoverDelegate)IG(e,t);else{const n=NG(this.hoverDelegate,e,t);n&&this.customHovers.set(e,n)}}dispose(){super.dispose();for(const e of this.customHovers.values())e.dispose();this.customHovers.clear()}}class TG{constructor(e){this.container=e,this.label=void 0,this.singleLabel=void 0}setLabel(e,t){if(!(this.label===e&&po(this.options,t)))if(this.label=e,this.options=t,typeof e=="string")this.singleLabel||(this.container.innerText="",this.container.classList.remove("multiple"),this.singleLabel=U(this.container,Y("a.label-name",{id:t==null?void 0:t.domId}))),this.singleLabel.textContent=e;else{this.container.innerText="",this.container.classList.add("multiple"),this.singleLabel=void 0;for(let i=0;i{const o={start:i,end:i+n.length},r=t.map(a=>Bi.intersect(o,a)).filter(a=>!Bi.isEmpty(a)).map(({start:a,end:l})=>({start:a-i,end:l-i}));return i=o.end+e.length,r})}class RG{constructor(e,t){this.container=e,this.supportIcons=t,this.label=void 0,this.singleLabel=void 0}setLabel(e,t){if(!(this.label===e&&po(this.options,t)))if(this.label=e,this.options=t,typeof e=="string")this.singleLabel||(this.container.innerText="",this.container.classList.remove("multiple"),this.singleLabel=new Cl(U(this.container,Y("a.label-name",{id:t==null?void 0:t.domId})),this.supportIcons)),this.singleLabel.set(e,t==null?void 0:t.matches,void 0,t==null?void 0:t.labelEscapeNewLines);else{this.container.innerText="",this.container.classList.add("multiple"),this.singleLabel=void 0;const i=(t==null?void 0:t.separator)||"/",n=AG(e,i,t==null?void 0:t.matches);for(let o=0;o{const s=new Intl.Collator(void 0,{numeric:!0,sensitivity:"base"});return{collator:s,collatorIsNumeric:s.resolvedOptions().numeric}});function MG(s,e,t=!1){const i=s||"",n=e||"",o=UT.value.collator.compare(i,n);return UT.value.collatorIsNumeric&&o===0&&i!==n?in.length)return 1}return 0}var D2=globalThis&&globalThis.__decorate||function(s,e,t,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(s,e,t,i);else for(var a=s.length-1;a>=0;a--)(r=s[a])&&(o=(n<3?r(o):n>3?r(e,t,o):r(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},FG=globalThis&&globalThis.__awaiter||function(s,e,t,i){function n(o){return o instanceof t?o:new t(function(r){r(o)})}return new(t||(t=Promise))(function(o,r){function a(h){try{d(i.next(h))}catch(c){r(c)}}function l(h){try{d(i.throw(h))}catch(c){r(c)}}function d(h){h.done?o(h.value):n(h.value).then(a,l)}d((i=i.apply(s,e||[])).next())})};const Ho=Y;class BG{constructor(e){this.hidden=!1,this._onChecked=new M,this.onChecked=this._onChecked.event,Object.assign(this,e)}get checked(){return!!this._checked}set checked(e){e!==this._checked&&(this._checked=e,this._onChecked.fire(e))}dispose(){this._onChecked.dispose()}}class Qp{get templateId(){return Qp.ID}renderTemplate(e){const t=Object.create(null);t.toDisposeElement=[],t.toDisposeTemplate=[],t.entry=U(e,Ho(".quick-input-list-entry"));const i=U(t.entry,Ho("label.quick-input-list-label"));t.toDisposeTemplate.push(ii(i,ue.CLICK,d=>{t.checkbox.offsetParent||d.preventDefault()})),t.checkbox=U(i,Ho("input.quick-input-list-checkbox")),t.checkbox.type="checkbox",t.toDisposeTemplate.push(ii(t.checkbox,ue.CHANGE,d=>{t.element.checked=t.checkbox.checked}));const n=U(i,Ho(".quick-input-list-rows")),o=U(n,Ho(".quick-input-list-row")),r=U(n,Ho(".quick-input-list-row"));t.label=new Xk(o,{supportHighlights:!0,supportDescriptionHighlights:!0,supportIcons:!0});const a=U(o,Ho(".quick-input-list-entry-keybinding"));t.keybinding=new Qk(a,Ms);const l=U(r,Ho(".quick-input-list-label-meta"));return t.detail=new Cl(l,!0),t.separator=U(t.entry,Ho(".quick-input-list-separator")),t.actionBar=new pa(t.entry),t.actionBar.domNode.classList.add("quick-input-list-entry-action-bar"),t.toDisposeTemplate.push(t.actionBar),t}renderElement(e,t,i){i.toDisposeElement=qe(i.toDisposeElement),i.element=e,i.checkbox.checked=e.checked,i.toDisposeElement.push(e.onChecked(d=>i.checkbox.checked=d));const{labelHighlights:n,descriptionHighlights:o,detailHighlights:r}=e,a=Object.create(null);a.matches=n||[],a.descriptionTitle=e.saneDescription,a.descriptionMatches=o||[],a.extraClasses=e.item.iconClasses,a.italic=e.item.italic,a.strikethrough=e.item.strikethrough,i.label.setLabel(e.saneLabel,e.saneDescription,a),i.keybinding.set(e.item.keybinding),i.detail.set(e.saneDetail,r),e.separator&&e.separator.label?(i.separator.textContent=e.separator.label,i.separator.style.display=""):i.separator.style.display="none",i.entry.classList.toggle("quick-input-list-separator-border",!!e.separator),i.actionBar.clear();const l=e.item.buttons;l&&l.length?(i.actionBar.push(l.map((d,h)=>{let c=d.iconClass||(d.iconPath?bL(d.iconPath):void 0);d.alwaysVisible&&(c=c?`${c} always-visible`:"always-visible");const u=new Us(`id-${h}`,"",c,!0,()=>FG(this,void 0,void 0,function*(){e.fireButtonTriggered({button:d,item:e.item})}));return u.tooltip=d.tooltip||"",u}),{icon:!0,label:!1}),i.entry.classList.add("has-actions")):i.entry.classList.remove("has-actions")}disposeElement(e,t,i){i.toDisposeElement=qe(i.toDisposeElement)}disposeTemplate(e){e.toDisposeElement=qe(e.toDisposeElement),e.toDisposeTemplate=qe(e.toDisposeTemplate)}}Qp.ID="listelement";class WG{getHeight(e){return e.saneDetail?44:22}getTemplateId(e){return Qp.ID}}var qt;(function(s){s[s.First=1]="First",s[s.Second=2]="Second",s[s.Last=3]="Last",s[s.Next=4]="Next",s[s.Previous=5]="Previous",s[s.NextPage=6]="NextPage",s[s.PreviousPage=7]="PreviousPage"})(qt||(qt={}));class Jk{constructor(e,t,i){this.parent=e,this.inputElements=[],this.elements=[],this.elementsToIndexes=new Map,this.matchOnDescription=!1,this.matchOnDetail=!1,this.matchOnLabel=!0,this.matchOnMeta=!0,this.sortByLabel=!0,this._onChangedAllVisibleChecked=new M,this.onChangedAllVisibleChecked=this._onChangedAllVisibleChecked.event,this._onChangedCheckedCount=new M,this.onChangedCheckedCount=this._onChangedCheckedCount.event,this._onChangedVisibleCount=new M,this.onChangedVisibleCount=this._onChangedVisibleCount.event,this._onChangedCheckedElements=new M,this.onChangedCheckedElements=this._onChangedCheckedElements.event,this._onButtonTriggered=new M,this.onButtonTriggered=this._onButtonTriggered.event,this._onKeyDown=new M,this.onKeyDown=this._onKeyDown.event,this._onLeave=new M,this.onLeave=this._onLeave.event,this._fireCheckedEvents=!0,this.elementDisposables=[],this.disposables=[],this.id=t,this.container=U(this.parent,Ho(".quick-input-list"));const n=new WG,o=new HG;this.list=i.createList("QuickInput",this.container,n,[new Qp],{identityProvider:{getId:r=>r.saneLabel},setRowLineHeight:!1,multipleSelectionSupport:!1,horizontalScrolling:!1,accessibilityProvider:o}),this.list.getHTMLElement().id=t,this.disposables.push(this.list),this.disposables.push(this.list.onKeyDown(r=>{const a=new Ot(r);switch(a.keyCode){case 10:this.toggleCheckbox();break;case 31:(Me?r.metaKey:r.ctrlKey)&&this.list.setFocus(tn(this.list.length));break;case 16:const l=this.list.getFocus();l.length===1&&l[0]===0&&this._onLeave.fire();break;case 18:const d=this.list.getFocus();d.length===1&&d[0]===this.list.length-1&&this._onLeave.fire();break}this._onKeyDown.fire(a)})),this.disposables.push(this.list.onMouseDown(r=>{r.browserEvent.button!==2&&r.browserEvent.preventDefault()})),this.disposables.push(q(this.container,ue.CLICK,r=>{(r.x||r.y)&&this._onLeave.fire()})),this.disposables.push(this.list.onMouseMiddleClick(r=>{this._onLeave.fire()})),this.disposables.push(this.list.onContextMenu(r=>{typeof r.index=="number"&&(r.browserEvent.preventDefault(),this.list.setSelection([r.index]))})),this.disposables.push(this._onChangedAllVisibleChecked,this._onChangedCheckedCount,this._onChangedVisibleCount,this._onChangedCheckedElements,this._onButtonTriggered,this._onLeave,this._onKeyDown)}get onDidChangeFocus(){return he.map(this.list.onDidChangeFocus,e=>e.elements.map(t=>t.item))}get onDidChangeSelection(){return he.map(this.list.onDidChangeSelection,e=>({items:e.elements.map(t=>t.item),event:e.browserEvent}))}get scrollTop(){return this.list.scrollTop}set scrollTop(e){this.list.scrollTop=e}getAllVisibleChecked(){return this.allVisibleChecked(this.elements,!1)}allVisibleChecked(e,t=!0){for(let i=0,n=e.length;i{t.hidden||(t.checked=e)})}finally{this._fireCheckedEvents=!0,this.fireCheckedEvents()}}setElements(e){this.elementDisposables=qe(this.elementDisposables);const t=i=>this.fireButtonTriggered(i);this.inputElements=e,this.elements=e.reduce((i,n,o)=>{var r,a,l;if(n.type!=="separator"){const d=o&&e[o-1],h=n.label&&n.label.replace(/\r?\n/g," "),c=n.meta&&n.meta.replace(/\r?\n/g," "),u=n.description&&n.description.replace(/\r?\n/g," "),f=n.detail&&n.detail.replace(/\r?\n/g," "),g=n.ariaLabel||[h,u,f].map(m=>HW(m)).filter(m=>!!m).join(", ");i.push(new BG({index:o,item:n,saneLabel:h,saneMeta:c,saneAriaLabel:g,saneDescription:u,saneDetail:f,labelHighlights:(r=n.highlights)===null||r===void 0?void 0:r.label,descriptionHighlights:(a=n.highlights)===null||a===void 0?void 0:a.description,detailHighlights:(l=n.highlights)===null||l===void 0?void 0:l.detail,checked:!1,separator:d&&d.type==="separator"?d:void 0,fireButtonTriggered:t}))}return i},[]),this.elementDisposables.push(...this.elements),this.elementDisposables.push(...this.elements.map(i=>i.onChecked(()=>this.fireCheckedEvents()))),this.elementsToIndexes=this.elements.reduce((i,n,o)=>(i.set(n.item,o),i),new Map),this.list.splice(0,this.list.length),this.list.splice(0,this.list.length,this.elements),this._onChangedVisibleCount.fire(this.elements.length)}getFocusedElements(){return this.list.getFocusedElements().map(e=>e.item)}setFocusedElements(e){if(this.list.setFocus(e.filter(t=>this.elementsToIndexes.has(t)).map(t=>this.elementsToIndexes.get(t))),e.length>0){const t=this.list.getFocus()[0];typeof t=="number"&&this.list.reveal(t)}}getActiveDescendant(){return this.list.getHTMLElement().getAttribute("aria-activedescendant")}setSelectedElements(e){this.list.setSelection(e.filter(t=>this.elementsToIndexes.has(t)).map(t=>this.elementsToIndexes.get(t)))}getCheckedElements(){return this.elements.filter(e=>e.checked).map(e=>e.item)}setCheckedElements(e){try{this._fireCheckedEvents=!1;const t=new Set;for(const i of e)t.add(i);for(const i of this.elements)i.checked=t.has(i.item)}finally{this._fireCheckedEvents=!0,this.fireCheckedEvents()}}set enabled(e){this.list.getHTMLElement().style.pointerEvents=e?"":"none"}focus(e){if(!this.list.length)return;switch(e===qt.Next&&this.list.getFocus()[0]===this.list.length-1&&(e=qt.First),e===qt.Previous&&this.list.getFocus()[0]===0&&(e=qt.Last),e===qt.Second&&this.list.length<2&&(e=qt.First),e){case qt.First:this.list.focusFirst();break;case qt.Second:this.list.focusNth(1);break;case qt.Last:this.list.focusLast();break;case qt.Next:this.list.focusNext();break;case qt.Previous:this.list.focusPrevious();break;case qt.NextPage:this.list.focusNextPage();break;case qt.PreviousPage:this.list.focusPreviousPage();break}const t=this.list.getFocus()[0];typeof t=="number"&&this.list.reveal(t)}clearFocus(){this.list.setFocus([])}domFocus(){this.list.domFocus()}layout(e){this.list.getHTMLElement().style.maxHeight=e?`calc(${Math.floor(e/44)*44}px)`:"",this.list.layout()}filter(e){if(!(this.sortByLabel||this.matchOnLabel||this.matchOnDescription||this.matchOnDetail))return this.list.layout(),!1;if(e=e.trim(),!e||!(this.matchOnLabel||this.matchOnDescription||this.matchOnDetail))this.elements.forEach(i=>{i.labelHighlights=void 0,i.descriptionHighlights=void 0,i.detailHighlights=void 0,i.hidden=!1;const n=i.index&&this.inputElements[i.index-1];i.separator=n&&n.type==="separator"?n:void 0});else{let i;this.elements.forEach(n=>{const o=this.matchOnLabel?qn(Um(e,zm(n.saneLabel))):void 0,r=this.matchOnDescription?qn(Um(e,zm(n.saneDescription||""))):void 0,a=this.matchOnDetail?qn(Um(e,zm(n.saneDetail||""))):void 0,l=this.matchOnMeta?qn(Um(e,zm(n.saneMeta||""))):void 0;if(o||r||a||l?(n.labelHighlights=o,n.descriptionHighlights=r,n.detailHighlights=a,n.hidden=!1):(n.labelHighlights=void 0,n.descriptionHighlights=void 0,n.detailHighlights=void 0,n.hidden=!n.item.alwaysShow),n.separator=void 0,!this.sortByLabel){const d=n.index&&this.inputElements[n.index-1];i=d&&d.type==="separator"?d:i,i&&!n.hidden&&(n.separator=i,i=void 0)}})}const t=this.elements.filter(i=>!i.hidden);if(this.sortByLabel&&e){const i=e.toLowerCase();t.sort((n,o)=>VG(n,o,i))}return this.elementsToIndexes=t.reduce((i,n,o)=>(i.set(n.item,o),i),new Map),this.list.splice(0,this.list.length,t),this.list.setFocus([]),this.list.layout(),this._onChangedAllVisibleChecked.fire(this.getAllVisibleChecked()),this._onChangedVisibleCount.fire(t.length),!0}toggleCheckbox(){try{this._fireCheckedEvents=!1;const e=this.list.getFocusedElements(),t=this.allVisibleChecked(e);for(const i of e)i.checked=!t}finally{this._fireCheckedEvents=!0,this.fireCheckedEvents()}}display(e){this.container.style.display=e?"":"none"}isDisplayed(){return this.container.style.display!=="none"}dispose(){this.elementDisposables=qe(this.elementDisposables),this.disposables=qe(this.disposables)}fireCheckedEvents(){this._fireCheckedEvents&&(this._onChangedAllVisibleChecked.fire(this.getAllVisibleChecked()),this._onChangedCheckedCount.fire(this.getCheckedCount()),this._onChangedCheckedElements.fire(this.getCheckedElements()))}fireButtonTriggered(e){this._onButtonTriggered.fire(e)}style(e){this.list.style(e)}}D2([si],Jk.prototype,"onDidChangeFocus",null);D2([si],Jk.prototype,"onDidChangeSelection",null);function VG(s,e,t){const i=s.labelHighlights||[],n=e.labelHighlights||[];return i.length&&!n.length?-1:!i.length&&n.length?1:i.length===0&&n.length===0?0:OG(s.saneLabel,e.saneLabel,t)}class HG{getWidgetAriaLabel(){return p("quickInput","Quick Input")}getAriaLabel(e){return e.saneAriaLabel}getWidgetRole(){return"listbox"}getRole(){return"option"}}var $T=globalThis&&globalThis.__awaiter||function(s,e,t,i){function n(o){return o instanceof t?o:new t(function(r){r(o)})}return new(t||(t=Promise))(function(o,r){function a(h){try{d(i.next(h))}catch(c){r(c)}}function l(h){try{d(i.throw(h))}catch(c){r(c)}}function d(h){h.done?o(h.value):n(h.value).then(a,l)}d((i=i.apply(s,e||[])).next())})};const Bn=Y,zG=Zs("quick-input-back",ie.arrowLeft),wL={iconClass:zG.classNames,tooltip:p("quickInput.back","Back"),handle:-1};class qv extends H{constructor(e){super(),this.ui=e,this.visible=!1,this._enabled=!0,this._busy=!1,this._ignoreFocusOut=!1,this._buttons=[],this.noValidationMessage=qv.noPromptMessage,this._severity=Wt.Ignore,this.buttonsUpdated=!1,this.onDidTriggerButtonEmitter=this._register(new M),this.onDidHideEmitter=this._register(new M),this.onDisposeEmitter=this._register(new M),this.visibleDisposables=this._register(new X),this.onDidHide=this.onDidHideEmitter.event}get title(){return this._title}set title(e){this._title=e,this.update()}get description(){return this._description}set description(e){this._description=e,this.update()}get step(){return this._steps}set step(e){this._steps=e,this.update()}get totalSteps(){return this._totalSteps}set totalSteps(e){this._totalSteps=e,this.update()}get enabled(){return this._enabled}set enabled(e){this._enabled=e,this.update()}get contextKey(){return this._contextKey}set contextKey(e){this._contextKey=e,this.update()}get busy(){return this._busy}set busy(e){this._busy=e,this.update()}get ignoreFocusOut(){return this._ignoreFocusOut}set ignoreFocusOut(e){const t=this._ignoreFocusOut!==e&&!lr;this._ignoreFocusOut=e&&!lr,t&&this.update()}get buttons(){return this._buttons}set buttons(e){this._buttons=e,this.buttonsUpdated=!0,this.update()}get validationMessage(){return this._validationMessage}set validationMessage(e){this._validationMessage=e,this.update()}get severity(){return this._severity}set severity(e){this._severity=e,this.update()}show(){this.visible||(this.visibleDisposables.add(this.ui.onDidTriggerButton(e=>{this.buttons.indexOf(e)!==-1&&this.onDidTriggerButtonEmitter.fire(e)})),this.ui.show(this),this.visible=!0,this._lastValidationMessage=void 0,this._lastSeverity=void 0,this.buttons.length&&(this.buttonsUpdated=!0),this.update())}hide(){this.visible&&this.ui.hide()}didHide(e=rp.Other){this.visible=!1,this.visibleDisposables.clear(),this.onDidHideEmitter.fire({reason:e})}update(){if(!this.visible)return;const e=this.getTitle();e&&this.ui.title.textContent!==e?this.ui.title.textContent=e:!e&&this.ui.title.innerHTML!==" "&&(this.ui.title.innerText=" ");const t=this.getDescription();if(this.ui.description1.textContent!==t&&(this.ui.description1.textContent=t),this.ui.description2.textContent!==t&&(this.ui.description2.textContent=t),this.busy&&!this.busyDelay&&(this.busyDelay=new hn,this.busyDelay.setIfNotSet(()=>{this.visible&&this.ui.progressBar.infinite()},800)),!this.busy&&this.busyDelay&&(this.ui.progressBar.stop(),this.busyDelay.cancel(),this.busyDelay=void 0),this.buttonsUpdated){this.buttonsUpdated=!1,this.ui.leftActionBar.clear();const n=this.buttons.filter(r=>r===wL);this.ui.leftActionBar.push(n.map((r,a)=>{const l=new Us(`id-${a}`,"",r.iconClass||bL(r.iconPath),!0,()=>$T(this,void 0,void 0,function*(){this.onDidTriggerButtonEmitter.fire(r)}));return l.tooltip=r.tooltip||"",l}),{icon:!0,label:!1}),this.ui.rightActionBar.clear();const o=this.buttons.filter(r=>r!==wL);this.ui.rightActionBar.push(o.map((r,a)=>{const l=new Us(`id-${a}`,"",r.iconClass||bL(r.iconPath),!0,()=>$T(this,void 0,void 0,function*(){this.onDidTriggerButtonEmitter.fire(r)}));return l.tooltip=r.tooltip||"",l}),{icon:!0,label:!1})}this.ui.ignoreFocusOut=this.ignoreFocusOut,this.ui.setEnabled(this.enabled),this.ui.setContextKey(this.contextKey);const i=this.validationMessage||this.noValidationMessage;this._lastValidationMessage!==i&&(this._lastValidationMessage=i,al(this.ui.message,...Od(i))),this._lastSeverity!==this.severity&&(this._lastSeverity=this.severity,this.showMessageDecoration(this.severity))}getTitle(){return this.title&&this.step?`${this.title} (${this.getSteps()})`:this.title?this.title:this.step?this.getSteps():""}getDescription(){return this.description||""}getSteps(){return this.step&&this.totalSteps?p("quickInput.steps","{0}/{1}",this.step,this.totalSteps):this.step?String(this.step):""}showMessageDecoration(e){if(this.ui.inputBox.showDecoration(e),e!==Wt.Ignore){const t=this.ui.inputBox.stylesForType(e);this.ui.message.style.color=t.foreground?`${t.foreground}`:"",this.ui.message.style.backgroundColor=t.background?`${t.background}`:"",this.ui.message.style.border=t.border?`1px solid ${t.border}`:"",this.ui.message.style.paddingBottom="4px"}else this.ui.message.style.color="",this.ui.message.style.backgroundColor="",this.ui.message.style.border="",this.ui.message.style.paddingBottom=""}dispose(){this.hide(),this.onDisposeEmitter.fire(),super.dispose()}}qv.noPromptMessage=p("inputModeEntry","Press 'Enter' to confirm your input or 'Escape' to cancel");class ap extends qv{constructor(){super(...arguments),this._value="",this.onDidChangeValueEmitter=this._register(new M),this.onWillAcceptEmitter=this._register(new M),this.onDidAcceptEmitter=this._register(new M),this.onDidCustomEmitter=this._register(new M),this._items=[],this.itemsUpdated=!1,this._canSelectMany=!1,this._canAcceptInBackground=!1,this._matchOnDescription=!1,this._matchOnDetail=!1,this._matchOnLabel=!0,this._sortByLabel=!0,this._autoFocusOnList=!0,this._keepScrollPosition=!1,this._itemActivation=this.ui.isScreenReaderOptimized()?eo.NONE:eo.FIRST,this._activeItems=[],this.activeItemsUpdated=!1,this.activeItemsToConfirm=[],this.onDidChangeActiveEmitter=this._register(new M),this._selectedItems=[],this.selectedItemsUpdated=!1,this.selectedItemsToConfirm=[],this.onDidChangeSelectionEmitter=this._register(new M),this.onDidTriggerItemButtonEmitter=this._register(new M),this.valueSelectionUpdated=!0,this._ok="default",this._customButton=!1,this.filterValue=e=>e,this.onDidChangeValue=this.onDidChangeValueEmitter.event,this.onWillAccept=this.onWillAcceptEmitter.event,this.onDidAccept=this.onDidAcceptEmitter.event,this.onDidChangeActive=this.onDidChangeActiveEmitter.event,this.onDidChangeSelection=this.onDidChangeSelectionEmitter.event,this.onDidTriggerItemButton=this.onDidTriggerItemButtonEmitter.event}get quickNavigate(){return this._quickNavigate}set quickNavigate(e){this._quickNavigate=e,this.update()}get value(){return this._value}set value(e){this._value!==e&&(this._value=e||"",this.update(),this.onDidChangeValueEmitter.fire(this._value))}set ariaLabel(e){this._ariaLabel=e,this.update()}get ariaLabel(){return this._ariaLabel}get placeholder(){return this._placeholder}set placeholder(e){this._placeholder=e,this.update()}get items(){return this._items}get scrollTop(){return this.ui.list.scrollTop}set scrollTop(e){this.ui.list.scrollTop=e}set items(e){this._items=e,this.itemsUpdated=!0,this.update()}get canSelectMany(){return this._canSelectMany}set canSelectMany(e){this._canSelectMany=e,this.update()}get canAcceptInBackground(){return this._canAcceptInBackground}set canAcceptInBackground(e){this._canAcceptInBackground=e}get matchOnDescription(){return this._matchOnDescription}set matchOnDescription(e){this._matchOnDescription=e,this.update()}get matchOnDetail(){return this._matchOnDetail}set matchOnDetail(e){this._matchOnDetail=e,this.update()}get matchOnLabel(){return this._matchOnLabel}set matchOnLabel(e){this._matchOnLabel=e,this.update()}get sortByLabel(){return this._sortByLabel}set sortByLabel(e){this._sortByLabel=e,this.update()}get autoFocusOnList(){return this._autoFocusOnList}set autoFocusOnList(e){this._autoFocusOnList=e,this.update()}get keepScrollPosition(){return this._keepScrollPosition}set keepScrollPosition(e){this._keepScrollPosition=e}get itemActivation(){return this._itemActivation}set itemActivation(e){this._itemActivation=e}get activeItems(){return this._activeItems}set activeItems(e){this._activeItems=e,this.activeItemsUpdated=!0,this.update()}get selectedItems(){return this._selectedItems}set selectedItems(e){this._selectedItems=e,this.selectedItemsUpdated=!0,this.update()}get keyMods(){return this._quickNavigate?mG:this.ui.keyMods}set valueSelection(e){this._valueSelection=e,this.valueSelectionUpdated=!0,this.update()}get customButton(){return this._customButton}set customButton(e){this._customButton=e,this.update()}get customLabel(){return this._customButtonLabel}set customLabel(e){this._customButtonLabel=e,this.update()}get customHover(){return this._customButtonHover}set customHover(e){this._customButtonHover=e,this.update()}get ok(){return this._ok}set ok(e){this._ok=e,this.update()}get hideInput(){return!!this._hideInput}set hideInput(e){this._hideInput=e,this.update()}trySelectFirst(){this.autoFocusOnList&&(this.canSelectMany||this.ui.list.focus(qt.First))}show(){this.visible||(this.visibleDisposables.add(this.ui.inputBox.onDidChange(e=>{if(e===this.value)return;this._value=e,this.ui.list.filter(this.filterValue(this.ui.inputBox.value))&&this.trySelectFirst(),this.onDidChangeValueEmitter.fire(e)})),this.visibleDisposables.add(this.ui.inputBox.onMouseDown(e=>{this.autoFocusOnList||this.ui.list.clearFocus()})),this.visibleDisposables.add((this._hideInput?this.ui.list:this.ui.inputBox).onKeyDown(e=>{switch(e.keyCode){case 18:this.ui.list.focus(qt.Next),this.canSelectMany&&this.ui.list.domFocus(),rt.stop(e,!0);break;case 16:this.ui.list.getFocusedElements().length?this.ui.list.focus(qt.Previous):this.ui.list.focus(qt.Last),this.canSelectMany&&this.ui.list.domFocus(),rt.stop(e,!0);break;case 12:this.ui.list.focus(qt.NextPage),this.canSelectMany&&this.ui.list.domFocus(),rt.stop(e,!0);break;case 11:this.ui.list.focus(qt.PreviousPage),this.canSelectMany&&this.ui.list.domFocus(),rt.stop(e,!0);break;case 17:if(!this._canAcceptInBackground||!this.ui.inputBox.isSelectionAtEnd())return;this.activeItems[0]&&(this._selectedItems=[this.activeItems[0]],this.onDidChangeSelectionEmitter.fire(this.selectedItems),this.handleAccept(!0));break;case 14:(e.ctrlKey||e.metaKey)&&!e.shiftKey&&!e.altKey&&(this.ui.list.focus(qt.First),rt.stop(e,!0));break;case 13:(e.ctrlKey||e.metaKey)&&!e.shiftKey&&!e.altKey&&(this.ui.list.focus(qt.Last),rt.stop(e,!0));break}})),this.visibleDisposables.add(this.ui.onDidAccept(()=>{this.canSelectMany?this.ui.list.getCheckedElements().length||(this._selectedItems=[],this.onDidChangeSelectionEmitter.fire(this.selectedItems)):this.activeItems[0]&&(this._selectedItems=[this.activeItems[0]],this.onDidChangeSelectionEmitter.fire(this.selectedItems)),this.handleAccept(!1)})),this.visibleDisposables.add(this.ui.onDidCustom(()=>{this.onDidCustomEmitter.fire()})),this.visibleDisposables.add(this.ui.list.onDidChangeFocus(e=>{this.activeItemsUpdated||this.activeItemsToConfirm!==this._activeItems&&zs(e,this._activeItems,(t,i)=>t===i)||(this._activeItems=e,this.onDidChangeActiveEmitter.fire(e))})),this.visibleDisposables.add(this.ui.list.onDidChangeSelection(({items:e,event:t})=>{if(this.canSelectMany){e.length&&this.ui.list.setSelectedElements([]);return}this.selectedItemsToConfirm!==this._selectedItems&&zs(e,this._selectedItems,(i,n)=>i===n)||(this._selectedItems=e,this.onDidChangeSelectionEmitter.fire(e),e.length&&this.handleAccept(t instanceof MouseEvent&&t.button===1))})),this.visibleDisposables.add(this.ui.list.onChangedCheckedElements(e=>{this.canSelectMany&&(this.selectedItemsToConfirm!==this._selectedItems&&zs(e,this._selectedItems,(t,i)=>t===i)||(this._selectedItems=e,this.onDidChangeSelectionEmitter.fire(e)))})),this.visibleDisposables.add(this.ui.list.onButtonTriggered(e=>this.onDidTriggerItemButtonEmitter.fire(e))),this.visibleDisposables.add(this.registerQuickNavigation()),this.valueSelectionUpdated=!0),super.show()}handleAccept(e){let t=!1;this.onWillAcceptEmitter.fire({veto:()=>t=!0}),t||this.onDidAcceptEmitter.fire({inBackground:e})}registerQuickNavigation(){return q(this.ui.container,ue.KEY_UP,e=>{if(this.canSelectMany||!this._quickNavigate)return;const t=new Ot(e),i=t.keyCode;this._quickNavigate.keybindings.some(r=>{const[a,l]=r.getParts();return l?!1:a.shiftKey&&i===4?!(t.ctrlKey||t.altKey||t.metaKey):!!(a.altKey&&i===6||a.ctrlKey&&i===5||a.metaKey&&i===57)})&&(this.activeItems[0]&&(this._selectedItems=[this.activeItems[0]],this.onDidChangeSelectionEmitter.fire(this.selectedItems),this.handleAccept(!1)),this._quickNavigate=void 0)})}update(){if(!this.visible)return;const e=this.keepScrollPosition?this.scrollTop:0,t=!!this._hideInput&&this._items.length>0;this.ui.container.classList.toggle("hidden-input",t&&!this.description);const i={title:!!this.title||!!this.step||!!this.buttons.length,description:!!this.description,checkAll:this.canSelectMany&&!this._hideCheckAll,checkBox:this.canSelectMany,inputBox:!t,progressBar:!t,visibleCount:!0,count:this.canSelectMany,ok:this.ok==="default"?this.canSelectMany:this.ok,list:!0,message:!!this.validationMessage,customButton:this.customButton};this.ui.setVisibilities(i),super.update(),this.ui.inputBox.value!==this.value&&(this.ui.inputBox.value=this.value),this.valueSelectionUpdated&&(this.valueSelectionUpdated=!1,this.ui.inputBox.select(this._valueSelection&&{start:this._valueSelection[0],end:this._valueSelection[1]})),this.ui.inputBox.placeholder!==(this.placeholder||"")&&(this.ui.inputBox.placeholder=this.placeholder||"");const n=this.ariaLabel||this.placeholder||ap.DEFAULT_ARIA_LABEL;if(this.ui.inputBox.ariaLabel!==n&&(this.ui.inputBox.ariaLabel=n),this.ui.list.matchOnDescription=this.matchOnDescription,this.ui.list.matchOnDetail=this.matchOnDetail,this.ui.list.matchOnLabel=this.matchOnLabel,this.ui.list.sortByLabel=this.sortByLabel,this.itemsUpdated)switch(this.itemsUpdated=!1,this.ui.list.setElements(this.items),this.ui.list.filter(this.filterValue(this.ui.inputBox.value)),this.ui.checkAll.checked=this.ui.list.getAllVisibleChecked(),this.ui.visibleCount.setCount(this.ui.list.getVisibleCount()),this.ui.count.setCount(this.ui.list.getCheckedCount()),this._itemActivation){case eo.NONE:this._itemActivation=eo.FIRST;break;case eo.SECOND:this.ui.list.focus(qt.Second),this._itemActivation=eo.FIRST;break;case eo.LAST:this.ui.list.focus(qt.Last),this._itemActivation=eo.FIRST;break;default:this.trySelectFirst();break}this.ui.container.classList.contains("show-checkboxes")!==!!this.canSelectMany&&(this.canSelectMany?this.ui.list.clearFocus():this.trySelectFirst()),this.activeItemsUpdated&&(this.activeItemsUpdated=!1,this.activeItemsToConfirm=this._activeItems,this.ui.list.setFocusedElements(this.activeItems),this.activeItemsToConfirm===this._activeItems&&(this.activeItemsToConfirm=null)),this.selectedItemsUpdated&&(this.selectedItemsUpdated=!1,this.selectedItemsToConfirm=this._selectedItems,this.canSelectMany?this.ui.list.setCheckedElements(this.selectedItems):this.ui.list.setSelectedElements(this.selectedItems),this.selectedItemsToConfirm===this._selectedItems&&(this.selectedItemsToConfirm=null)),this.ui.customButton.label=this.customLabel||"",this.ui.customButton.element.title=this.customHover||"",this.ui.setComboboxAccessibility(!0),i.inputBox||(this.ui.list.domFocus(),this.canSelectMany&&this.ui.list.focus(qt.First)),this.keepScrollPosition&&(this.scrollTop=e)}}ap.DEFAULT_ARIA_LABEL=p("quickInputBox.ariaLabel","Type to narrow down results.");class Gv extends H{constructor(e){super(),this.options=e,this.comboboxAccessibility=!1,this.enabled=!0,this.onDidAcceptEmitter=this._register(new M),this.onDidCustomEmitter=this._register(new M),this.onDidTriggerButtonEmitter=this._register(new M),this.keyMods={ctrlCmd:!1,alt:!1},this.controller=null,this.onShowEmitter=this._register(new M),this.onShow=this.onShowEmitter.event,this.onHideEmitter=this._register(new M),this.onHide=this.onHideEmitter.event,this.idPrefix=e.idPrefix,this.parentElement=e.container,this.styles=e.styles,this.registerKeyModsListeners()}registerKeyModsListeners(){const e=t=>{this.keyMods.ctrlCmd=t.ctrlKey||t.metaKey,this.keyMods.alt=t.altKey};this._register(q(window,ue.KEY_DOWN,e,!0)),this._register(q(window,ue.KEY_UP,e,!0)),this._register(q(window,ue.MOUSE_DOWN,e,!0))}getUI(){if(this.ui)return this.ui;const e=U(this.parentElement,Bn(".quick-input-widget.show-file-icons"));e.tabIndex=-1,e.style.display="none";const t=Xn(e),i=U(e,Bn(".quick-input-titlebar")),n=this._register(new pa(i));n.domNode.classList.add("quick-input-left-action-bar");const o=U(i,Bn(".quick-input-title")),r=this._register(new pa(i));r.domNode.classList.add("quick-input-right-action-bar");const a=U(e,Bn(".quick-input-description")),l=U(e,Bn(".quick-input-header")),d=U(l,Bn("input.quick-input-check-all"));d.type="checkbox",this._register(ii(d,ue.CHANGE,B=>{const O=d.checked;L.setAllVisibleChecked(O)})),this._register(q(d,ue.CLICK,B=>{(B.x||B.y)&&f.setFocus()}));const h=U(l,Bn(".quick-input-description")),c=U(l,Bn(".quick-input-and-message")),u=U(c,Bn(".quick-input-filter")),f=this._register(new DG(u));f.setAttribute("aria-describedby",`${this.idPrefix}message`);const g=U(u,Bn(".quick-input-visible-count"));g.setAttribute("aria-live","polite"),g.setAttribute("aria-atomic","true");const m=new _L(g,{countFormat:p({key:"quickInput.visibleCount",comment:["This tells the user how many items are shown in a list of items to select from. The items can be anything. Currently not visible, but read by screen readers."]},"{0} Results")}),_=U(u,Bn(".quick-input-count"));_.setAttribute("aria-live","polite");const C=new _L(_,{countFormat:p({key:"quickInput.countSelected",comment:["This tells the user how many items are selected in a list of items to select from. The items can be anything."]},"{0} Selected")}),b=U(l,Bn(".quick-input-action")),v=new WT(b);v.label=p("ok","OK"),this._register(v.onDidClick(B=>{this.onDidAcceptEmitter.fire()}));const w=U(l,Bn(".quick-input-action")),y=new WT(w);y.label=p("custom","Custom"),this._register(y.onDidClick(B=>{this.onDidCustomEmitter.fire()}));const k=U(c,Bn(`#${this.idPrefix}message.quick-input-message`)),L=this._register(new Jk(e,this.idPrefix+"list",this.options));this._register(L.onChangedAllVisibleChecked(B=>{d.checked=B})),this._register(L.onChangedVisibleCount(B=>{m.setCount(B)})),this._register(L.onChangedCheckedCount(B=>{C.setCount(B)})),this._register(L.onLeave(()=>{setTimeout(()=>{f.setFocus(),this.controller instanceof ap&&this.controller.canSelectMany&&L.clearFocus()},0)})),this._register(L.onDidChangeFocus(()=>{this.comboboxAccessibility&&this.getUI().inputBox.setAttribute("aria-activedescendant",this.getUI().list.getActiveDescendant()||"")}));const D=new gG(e);D.getContainer().classList.add("quick-input-progress");const N=Zc(e);return this._register(N),this._register(q(e,ue.FOCUS,B=>{this.previousFocusElement=B.relatedTarget instanceof HTMLElement?B.relatedTarget:void 0},!0)),this._register(N.onDidBlur(()=>{!this.getUI().ignoreFocusOut&&!this.options.ignoreFocusOut()&&this.hide(rp.Blur),this.previousFocusElement=void 0})),this._register(q(e,ue.FOCUS,B=>{f.setFocus()})),this._register(q(e,ue.KEY_DOWN,B=>{const O=new Ot(B);switch(O.keyCode){case 3:rt.stop(B,!0),this.onDidAcceptEmitter.fire();break;case 9:rt.stop(B,!0),this.hide(rp.Gesture);break;case 2:if(!O.altKey&&!O.ctrlKey&&!O.metaKey){const $=[".action-label.codicon"];e.classList.contains("show-checkboxes")?$.push("input"):$.push("input[type=text]"),this.getUI().list.isDisplayed()&&$.push(".monaco-list");const K=e.querySelectorAll($.join(", "));O.shiftKey&&O.target===K[0]?(rt.stop(B,!0),K[K.length-1].focus()):!O.shiftKey&&O.target===K[K.length-1]&&(rt.stop(B,!0),K[0].focus())}break}})),this.ui={container:e,styleSheet:t,leftActionBar:n,titleBar:i,title:o,description1:a,description2:h,rightActionBar:r,checkAll:d,filterContainer:u,inputBox:f,visibleCountContainer:g,visibleCount:m,countContainer:_,count:C,okContainer:b,ok:v,message:k,customButtonContainer:w,customButton:y,list:L,progressBar:D,onDidAccept:this.onDidAcceptEmitter.event,onDidCustom:this.onDidCustomEmitter.event,onDidTriggerButton:this.onDidTriggerButtonEmitter.event,ignoreFocusOut:!1,keyMods:this.keyMods,isScreenReaderOptimized:()=>this.options.isScreenReaderOptimized(),show:B=>this.show(B),hide:()=>this.hide(),setVisibilities:B=>this.setVisibilities(B),setComboboxAccessibility:B=>this.setComboboxAccessibility(B),setEnabled:B=>this.setEnabled(B),setContextKey:B=>this.options.setContextKey(B)},this.updateStyles(),this.ui}pick(e,t={},i=Oe.None){return new Promise((n,o)=>{let r=h=>{r=n,t.onKeyMods&&t.onKeyMods(a.keyMods),n(h)};if(i.isCancellationRequested){r(void 0);return}const a=this.createQuickPick();let l;const d=[a,a.onDidAccept(()=>{if(a.canSelectMany)r(a.selectedItems.slice()),a.hide();else{const h=a.activeItems[0];h&&(r(h),a.hide())}}),a.onDidChangeActive(h=>{const c=h[0];c&&t.onDidFocus&&t.onDidFocus(c)}),a.onDidChangeSelection(h=>{if(!a.canSelectMany){const c=h[0];c&&(r(c),a.hide())}}),a.onDidTriggerItemButton(h=>t.onDidTriggerItemButton&&t.onDidTriggerItemButton(Object.assign(Object.assign({},h),{removeItem:()=>{const c=a.items.indexOf(h.item);if(c!==-1){const u=a.items.slice(),f=u.splice(c,1),g=a.activeItems.filter(_=>_!==f[0]),m=a.keepScrollPosition;a.keepScrollPosition=!0,a.items=u,g&&(a.activeItems=g),a.keepScrollPosition=m}}}))),a.onDidChangeValue(h=>{l&&!h&&(a.activeItems.length!==1||a.activeItems[0]!==l)&&(a.activeItems=[l])}),i.onCancellationRequested(()=>{a.hide()}),a.onDidHide(()=>{qe(d),r(void 0)})];a.title=t.title,a.canSelectMany=!!t.canPickMany,a.placeholder=t.placeHolder,a.ignoreFocusOut=!!t.ignoreFocusLost,a.matchOnDescription=!!t.matchOnDescription,a.matchOnDetail=!!t.matchOnDetail,a.matchOnLabel=t.matchOnLabel===void 0||t.matchOnLabel,a.autoFocusOnList=t.autoFocusOnList===void 0||t.autoFocusOnList,a.quickNavigate=t.quickNavigate,a.contextKey=t.contextKey,a.busy=!0,Promise.all([e,t.activeItem]).then(([h,c])=>{l=c,a.busy=!1,a.items=h,a.canSelectMany&&(a.selectedItems=h.filter(u=>u.type!=="separator"&&u.picked)),l&&(a.activeItems=[l])}),a.show(),Promise.resolve(e).then(void 0,h=>{o(h),a.hide()})})}createQuickPick(){const e=this.getUI();return new ap(e)}show(e){const t=this.getUI();this.onShowEmitter.fire();const i=this.controller;this.controller=e,i&&i.didHide(),this.setEnabled(!0),t.leftActionBar.clear(),t.title.textContent="",t.description1.textContent="",t.description2.textContent="",t.rightActionBar.clear(),t.checkAll.checked=!1,t.inputBox.placeholder="",t.inputBox.password=!1,t.inputBox.showDecoration(Wt.Ignore),t.visibleCount.setCount(0),t.count.setCount(0),al(t.message),t.progressBar.stop(),t.list.setElements([]),t.list.matchOnDescription=!1,t.list.matchOnDetail=!1,t.list.matchOnLabel=!0,t.list.sortByLabel=!0,t.ignoreFocusOut=!1,this.setComboboxAccessibility(!1),t.inputBox.ariaLabel="";const n=this.options.backKeybindingLabel();wL.tooltip=n?p("quickInput.backWithKeybinding","Back ({0})",n):p("quickInput.back","Back"),t.container.style.display="",this.updateLayout(),t.inputBox.setFocus()}setVisibilities(e){const t=this.getUI();t.title.style.display=e.title?"":"none",t.description1.style.display=e.description&&(e.inputBox||e.checkAll)?"":"none",t.description2.style.display=e.description&&!(e.inputBox||e.checkAll)?"":"none",t.checkAll.style.display=e.checkAll?"":"none",t.filterContainer.style.display=e.inputBox?"":"none",t.visibleCountContainer.style.display=e.visibleCount?"":"none",t.countContainer.style.display=e.count?"":"none",t.okContainer.style.display=e.ok?"":"none",t.customButtonContainer.style.display=e.customButton?"":"none",t.message.style.display=e.message?"":"none",t.progressBar.getContainer().style.display=e.progressBar?"":"none",t.list.display(!!e.list),t.container.classList[e.checkBox?"add":"remove"]("show-checkboxes"),this.updateLayout()}setComboboxAccessibility(e){if(e!==this.comboboxAccessibility){const t=this.getUI();this.comboboxAccessibility=e,this.comboboxAccessibility?(t.inputBox.setAttribute("role","combobox"),t.inputBox.setAttribute("aria-haspopup","true"),t.inputBox.setAttribute("aria-autocomplete","list"),t.inputBox.setAttribute("aria-activedescendant",t.list.getActiveDescendant()||"")):(t.inputBox.removeAttribute("role"),t.inputBox.removeAttribute("aria-haspopup"),t.inputBox.removeAttribute("aria-autocomplete"),t.inputBox.removeAttribute("aria-activedescendant"))}}setEnabled(e){if(e!==this.enabled){this.enabled=e;for(const t of this.getUI().leftActionBar.viewItems)t.getAction().enabled=e;for(const t of this.getUI().rightActionBar.viewItems)t.getAction().enabled=e;this.getUI().checkAll.disabled=!e,this.getUI().ok.enabled=e,this.getUI().list.enabled=e}}hide(e){var t;const i=this.controller;if(i){const n=!(!((t=this.ui)===null||t===void 0)&&t.container.contains(document.activeElement));this.controller=null,this.onHideEmitter.fire(),this.getUI().container.style.display="none",n||(this.previousFocusElement&&this.previousFocusElement.offsetParent?(this.previousFocusElement.focus(),this.previousFocusElement=void 0):this.options.returnFocus()),i.didHide(e)}}layout(e,t){this.dimension=e,this.titleBarOffset=t,this.updateLayout()}updateLayout(){if(this.ui){this.ui.container.style.top=`${this.titleBarOffset}px`;const e=this.ui.container.style,t=Math.min(this.dimension.width*.62,Gv.MAX_WIDTH);e.width=t+"px",e.marginLeft="-"+t/2+"px",this.ui.inputBox.layout(),this.ui.list.layout(this.dimension&&this.dimension.height*.4)}}applyStyles(e){this.styles=e,this.updateStyles()}updateStyles(){if(this.ui){const{quickInputTitleBackground:e,quickInputBackground:t,quickInputForeground:i,contrastBorder:n,widgetShadow:o}=this.styles.widget;this.ui.titleBar.style.backgroundColor=e?e.toString():"",this.ui.container.style.backgroundColor=t?t.toString():"",this.ui.container.style.color=i?i.toString():"",this.ui.container.style.border=n?`1px solid ${n}`:"",this.ui.container.style.boxShadow=o?`0 0 8px 2px ${o}`:"",this.ui.inputBox.style(this.styles.inputBox),this.ui.count.style(this.styles.countBadge),this.ui.ok.style(this.styles.button),this.ui.customButton.style(this.styles.button),this.ui.progressBar.style(this.styles.progressBar),this.ui.list.style(this.styles.list);const r=[];this.styles.list.pickerGroupBorder&&r.push(`.quick-input-list .quick-input-list-entry { border-top-color: ${this.styles.list.pickerGroupBorder}; }`),this.styles.list.pickerGroupForeground&&r.push(`.quick-input-list .quick-input-list-separator { color: ${this.styles.list.pickerGroupForeground}; }`),(this.styles.keybindingLabel.keybindingLabelBackground||this.styles.keybindingLabel.keybindingLabelBorder||this.styles.keybindingLabel.keybindingLabelBottomBorder||this.styles.keybindingLabel.keybindingLabelShadow||this.styles.keybindingLabel.keybindingLabelForeground)&&(r.push(".quick-input-list .monaco-keybinding > .monaco-keybinding-key {"),this.styles.keybindingLabel.keybindingLabelBackground&&r.push(`background-color: ${this.styles.keybindingLabel.keybindingLabelBackground};`),this.styles.keybindingLabel.keybindingLabelBorder&&r.push(`border-color: ${this.styles.keybindingLabel.keybindingLabelBorder};`),this.styles.keybindingLabel.keybindingLabelBottomBorder&&r.push(`border-bottom-color: ${this.styles.keybindingLabel.keybindingLabelBottomBorder};`),this.styles.keybindingLabel.keybindingLabelShadow&&r.push(`box-shadow: inset 0 -1px 0 ${this.styles.keybindingLabel.keybindingLabelShadow};`),this.styles.keybindingLabel.keybindingLabelForeground&&r.push(`color: ${this.styles.keybindingLabel.keybindingLabelForeground};`),r.push("}"));const a=r.join(`
`);a!==this.ui.styleSheet.textContent&&(this.ui.styleSheet.textContent=a)}}}Gv.MAX_WIDTH=600;var SL;(function(s){s[s.PRESERVE=0]="PRESERVE",s[s.LAST=1]="LAST"})(SL||(SL={}));const Ah={Quickaccess:"workbench.contributions.quickaccess"};class UG{constructor(){this.providers=[],this.defaultProvider=void 0}registerQuickAccessProvider(e){return e.prefix.length===0?this.defaultProvider=e:this.providers.push(e),this.providers.sort((t,i)=>i.prefix.length-t.prefix.length),Ve(()=>{this.providers.splice(this.providers.indexOf(e),1),this.defaultProvider===e&&(this.defaultProvider=void 0)})}getQuickAccessProviders(){return wh([this.defaultProvider,...this.providers])}getQuickAccessProvider(e){return e&&this.providers.find(i=>e.startsWith(i.prefix))||void 0||this.defaultProvider}}Xt.add(Ah.Quickaccess,new UG);const Ml=Je("quickInputService");var $G=globalThis&&globalThis.__decorate||function(s,e,t,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(s,e,t,i);else for(var a=s.length-1;a>=0;a--)(r=s[a])&&(o=(n<3?r(o):n>3?r(e,t,o):r(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},jT=globalThis&&globalThis.__param||function(s,e){return function(t,i){e(t,i,s)}};let yL=class extends H{constructor(e,t){super(),this.quickInputService=e,this.instantiationService=t,this.registry=Xt.as(Ah.Quickaccess),this.mapProviderToDescriptor=new Map,this.lastAcceptedPickerValues=new Map,this.visibleQuickAccess=void 0}show(e="",t){this.doShowOrPick(e,!1,t)}doShowOrPick(e,t,i){var n;const[o,r]=this.getOrInstantiateProvider(e),a=this.visibleQuickAccess,l=a==null?void 0:a.descriptor;if(a&&r&&l===r){e!==r.prefix&&!(i!=null&&i.preserveValue)&&(a.picker.value=e),this.adjustValueSelection(a.picker,r,i);return}if(r&&!(i!=null&&i.preserveValue)){let g;if(a&&l&&l!==r){const m=a.value.substr(l.prefix.length);m&&(g=`${r.prefix}${m}`)}if(!g){const m=o==null?void 0:o.defaultFilterValue;m===SL.LAST?g=this.lastAcceptedPickerValues.get(r):typeof m=="string"&&(g=`${r.prefix}${m}`)}typeof g=="string"&&(e=g)}const d=new X,h=d.add(this.quickInputService.createQuickPick());h.value=e,this.adjustValueSelection(h,r,i),h.placeholder=r==null?void 0:r.placeholder,h.quickNavigate=i==null?void 0:i.quickNavigateConfiguration,h.hideInput=!!h.quickNavigate&&!a,(typeof(i==null?void 0:i.itemActivation)=="number"||i!=null&&i.quickNavigateConfiguration)&&(h.itemActivation=(n=i==null?void 0:i.itemActivation)!==null&&n!==void 0?n:eo.SECOND),h.contextKey=r==null?void 0:r.contextKey,h.filterValue=g=>g.substring(r?r.prefix.length:0),r!=null&&r.placeholder&&(h.ariaLabel=r==null?void 0:r.placeholder);let c,u;t&&(c=new Promise(g=>u=g),d.add(ha(h.onWillAccept)(g=>{g.veto(),h.hide()}))),d.add(this.registerPickerListeners(h,o,r,e));const f=d.add(new ln);if(o&&d.add(o.provide(h,f.token)),ha(h.onDidHide)(()=>{h.selectedItems.length===0&&f.cancel(),d.dispose(),u==null||u(h.selectedItems)}),h.show(),t)return c}adjustValueSelection(e,t,i){var n;let o;i!=null&&i.preserveValue?o=[e.value.length,e.value.length]:o=[(n=t==null?void 0:t.prefix.length)!==null&&n!==void 0?n:0,e.value.length],e.valueSelection=o}registerPickerListeners(e,t,i,n){const o=new X,r=this.visibleQuickAccess={picker:e,descriptor:i,value:n};return o.add(Ve(()=>{r===this.visibleQuickAccess&&(this.visibleQuickAccess=void 0)})),o.add(e.onDidChangeValue(a=>{const[l]=this.getOrInstantiateProvider(a);l!==t?this.show(a,{preserveValue:!0}):r.value=a})),i&&o.add(e.onDidAccept(()=>{this.lastAcceptedPickerValues.set(i,e.value)})),o}getOrInstantiateProvider(e){const t=this.registry.getQuickAccessProvider(e);if(!t)return[void 0,void 0];let i=this.mapProviderToDescriptor.get(t);return i||(i=this.instantiationService.createInstance(t.ctor),this.mapProviderToDescriptor.set(t,i)),[i,t]}};yL=$G([jT(0,Ml),jT(1,Ge)],yL);var jG=globalThis&&globalThis.__decorate||function(s,e,t,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(s,e,t,i);else for(var a=s.length-1;a>=0;a--)(r=s[a])&&(o=(n<3?r(o):n>3?r(e,t,o):r(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},_f=globalThis&&globalThis.__param||function(s,e){return function(t,i){e(t,i,s)}};let LL=class extends b8{constructor(e,t,i,n,o){super(i),this.instantiationService=e,this.contextKeyService=t,this.accessibilityService=n,this.layoutService=o,this.contexts=new Map}get controller(){return this._controller||(this._controller=this._register(this.createController())),this._controller}get quickAccess(){return this._quickAccess||(this._quickAccess=this._register(this.instantiationService.createInstance(yL))),this._quickAccess}createController(e=this.layoutService,t){var i,n;const o={idPrefix:"quickInput_",container:e.container,ignoreFocusOut:()=>!1,isScreenReaderOptimized:()=>this.accessibilityService.isScreenReaderOptimized(),backKeybindingLabel:()=>{},setContextKey:a=>this.setContextKey(a),returnFocus:()=>e.focus(),createList:(a,l,d,h,c)=>this.instantiationService.createInstance(cL,a,l,d,h,c),styles:this.computeStyles()},r=this._register(new Gv(Object.assign(Object.assign({},o),t)));return r.layout(e.dimension,(n=(i=e.offset)===null||i===void 0?void 0:i.top)!==null&&n!==void 0?n:0),this._register(e.onDidLayout(a=>{var l,d;return r.layout(a,(d=(l=e.offset)===null||l===void 0?void 0:l.top)!==null&&d!==void 0?d:0)})),this._register(r.onShow(()=>this.resetContextKeys())),this._register(r.onHide(()=>this.resetContextKeys())),r}setContextKey(e){let t;e&&(t=this.contexts.get(e),t||(t=new re(e,!1).bindTo(this.contextKeyService),this.contexts.set(e,t))),!(t&&t.get())&&(this.resetContextKeys(),t&&t.set(!0))}resetContextKeys(){this.contexts.forEach(e=>{e.get()&&e.reset()})}pick(e,t={},i=Oe.None){return this.controller.pick(e,t,i)}createQuickPick(){return this.controller.createQuickPick()}updateStyles(){this.controller.applyStyles(this.computeStyles())}computeStyles(){return{widget:Object.assign({},io(this.theme,{quickInputBackground:cN,quickInputForeground:u9,quickInputTitleBackground:f9,contrastBorder:Zt,widgetShadow:gl})),inputBox:io(this.theme,{inputForeground:Gx,inputBackground:qx,inputBorder:Zx,inputValidationInfoBackground:Yx,inputValidationInfoForeground:Xx,inputValidationInfoBorder:Qx,inputValidationWarningBackground:AO,inputValidationWarningForeground:RO,inputValidationWarningBorder:MO,inputValidationErrorBackground:OO,inputValidationErrorForeground:PO,inputValidationErrorBorder:FO}),countBadge:io(this.theme,{badgeBackground:Qf,badgeForeground:Jf,badgeBorder:Zt}),button:io(this.theme,{buttonForeground:n9,buttonBackground:ky,buttonHoverBackground:s9,buttonBorder:Zt}),progressBar:io(this.theme,{progressBarBackground:o9}),keybindingLabel:io(this.theme,{keybindingLabelBackground:m9,keybindingLabelForeground:_9,keybindingLabelBorder:b9,keybindingLabelBottomBorder:C9,keybindingLabelShadow:gl}),list:io(this.theme,{listBackground:cN,listInactiveFocusForeground:T_,listInactiveSelectionIconForeground:A_,listInactiveFocusBackground:R_,listFocusOutline:Xi,listInactiveFocusOutline:Xi,pickerGroupBorder:p9,pickerGroupForeground:g9})}}};LL=jG([_f(0,Ge),_f(1,ve),_f(2,Dt),_f(3,Pn),_f(4,Wv)],LL);var x2=globalThis&&globalThis.__decorate||function(s,e,t,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(s,e,t,i);else for(var a=s.length-1;a>=0;a--)(r=s[a])&&(o=(n<3?r(o):n>3?r(e,t,o):r(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},ad=globalThis&&globalThis.__param||function(s,e){return function(t,i){e(t,i,s)}};let DL=class extends LL{constructor(e,t,i,n,o,r){super(t,i,n,o,r),this.host=void 0;const a=fu.get(e);this.host={_serviceBrand:void 0,get container(){return a.widget.getDomNode()},get dimension(){return e.getLayoutInfo()},get onDidLayout(){return e.onDidLayoutChange},focus:()=>e.focus()}}createController(){return super.createController(this.host)}};DL=x2([ad(1,Ge),ad(2,ve),ad(3,Dt),ad(4,Pn),ad(5,Wv)],DL);let xL=class{constructor(e,t){this.instantiationService=e,this.codeEditorService=t,this.mapEditorToService=new Map}get activeService(){const e=this.codeEditorService.getFocusedCodeEditor();if(!e)throw new Error("Quick input service needs a focused editor to work.");let t=this.mapEditorToService.get(e);if(!t){const i=t=this.instantiationService.createInstance(DL,e);this.mapEditorToService.set(e,t),ha(e.onDidDispose)(()=>{i.dispose(),this.mapEditorToService.delete(e)})}return t}get quickAccess(){return this.activeService.quickAccess}pick(e,t={},i=Oe.None){return this.activeService.pick(e,t,i)}createQuickPick(){return this.activeService.createQuickPick()}};xL=x2([ad(0,Ge),ad(1,tt)],xL);class fu{constructor(e){this.editor=e,this.widget=new Zv(this.editor)}static get(e){return e.getContribution(fu.ID)}dispose(){this.widget.dispose()}}fu.ID="editor.controller.quickInput";class Zv{constructor(e){this.codeEditor=e,this.domNode=document.createElement("div"),this.codeEditor.addOverlayWidget(this)}getId(){return Zv.ID}getDomNode(){return this.domNode}getPosition(){return{preference:2}}dispose(){this.codeEditor.removeOverlayWidget(this)}}Zv.ID="editor.contrib.quickInputWidget";nt(fu.ID,fu);var it;(function(s){const e=new qg;class t{constructor(l,d){this._serviceId=l,this._factory=d,this._value=null}get id(){return this._serviceId}get(l){if(!this._value){if(l&&(this._value=l[this._serviceId.toString()]),this._value||(this._value=this._factory(l)),!this._value)throw new Error("Service "+this._serviceId+" is missing!");e.set(this._serviceId,this._value)}return this._value}}s.LazyStaticService=t;let i=[];function n(a,l){let d=new t(a,l);return i.push(d),d}function o(a){let l=new qg;for(const[h,c]of TV())l.set(h,c);for(let h in a)a.hasOwnProperty(h)&&l.set(Je(h),a[h]);i.forEach(h=>l.set(h.id,h.get(a)));let d=new SC(l,!0);return l.set(Ge,d),[l,d]}s.init=o,s.instantiationService=n(Ge,()=>new SC(e,!0));const r=new aO;s.configurationService=n(Ht,()=>r),s.resourceConfigurationService=n(_x,()=>new c8(r)),s.resourcePropertiesService=n(OM,()=>new by(r)),s.contextService=n(iO,()=>new Cv),s.labelService=n(qp,()=>new g8),s.telemetryService=n(Nl,()=>new u8),s.dialogService=n(Kp,()=>new d8),s.notificationService=n(ni,()=>new bv),s.markerService=n(Xp,()=>new rd),s.modeService=n(Qi,a=>new Jg),s.standaloneThemeService=n(Ih,()=>new sK),s.logService=n(Cr,()=>new iH(new tH)),s.undoRedoService=n(Wp,a=>new TC(s.dialogService.get(a),s.notificationService.get(a))),s.languageConfigurationService=n(Pp,a=>new Ib(s.configurationService.get(a),s.modeService.get(a))),s.modelService=n(ri,a=>new bC(s.configurationService.get(a),s.resourcePropertiesService.get(a),s.standaloneThemeService.get(a),s.logService.get(a),s.undoRedoService.get(a),s.modeService.get(a),s.languageConfigurationService.get(a))),s.markerDecorationsService=n(Tx,a=>new pL(s.modelService.get(a),s.markerService.get(a))),s.contextKeyService=n(ve,a=>new Zy(s.configurationService.get(a))),s.codeEditorService=n(tt,a=>new mC(null,s.contextKeyService.get(a),s.standaloneThemeService.get(a))),s.editorProgressService=n(Ca,()=>new _v),s.storageService=n(yr,()=>new iG),s.editorWorkerService=n(Ys,a=>new hy(s.modelService.get(a),s.resourceConfigurationService.get(a),s.logService.get(a)))})(it||(it={}));class KG extends H{constructor(e,t){super();const[i,n]=it.init(t);this._serviceCollection=i,this._instantiationService=n;const o=this.get(Ht),r=this.get(ni),a=this.get(Nl),l=this.get(Dt),d=this.get(Cr),h=this.get(ve);let c=(_,C)=>{let b=null;return t&&(b=t[_.toString()]),b||(b=C()),this._serviceCollection.set(_,b),b};c(Pn,()=>new mL(h,o)),c(Ss,()=>new dL(l));let u=c(Yt,()=>new h8(this._instantiationService)),f=c(Nt,()=>this._register(new rO(h,u,a,r,d,e))),g=c(Wv,()=>new p8(it.codeEditorService.get(tt),e));c(Ml,()=>new xL(n,it.codeEditorService.get(tt)));let m=c(Tl,()=>this._register(new nL(g)));c(Rl,()=>new rG),c(Al,()=>{const _=new iL(a,r,m,f,l);return _.configure({blockMouse:!1}),this._register(_)}),c(Lh,()=>new fL(u)),c(Dx,()=>new f8(it.modelService.get(ri)))}get(e){let t=this._serviceCollection.get(e);if(!t)throw new Error("Missing service "+e);return t}set(e,t){this._serviceCollection.set(e,t)}has(e){return this._serviceCollection.has(e)}}function k2(s,e,t){let i=new KG(s,e),n=null;i.has(Jn)||(n=new _y(it.modelService.get()),i.set(Jn,n)),i.has(Co)||i.set(Co,new Z1(i.get(tt),i.get(Yt)));let o=t(i);return n&&n.setEditor(o),o}function qG(s,e,t){return k2(s,t||{},i=>new $y(s,e,i,i.get(Ge),i.get(tt),i.get(Yt),i.get(ve),i.get(Nt),i.get(Tl),i.get(Ih),i.get(ni),i.get(Ht),i.get(Pn),i.get(ri),i.get(Qi)))}function GG(s){return it.codeEditorService.get().onCodeEditorAdd(e=>{s(e)})}function ZG(s,e,t){return k2(s,t||{},i=>new jy(s,e,i,i.get(Ge),i.get(ve),i.get(Nt),i.get(Tl),i.get(Ys),i.get(tt),i.get(Ih),i.get(ni),i.get(Ht),i.get(Al),i.get(Ca),i.get(Rl)))}function YG(s,e){return new uW(s,e)}function XG(s,e,t){return IP(it.modelService.get(),it.modeService.get(),s,e,t)}function QG(s,e){it.modelService.get().setMode(s,it.modeService.get().create(e))}function JG(s,e,t){s&&it.markerService.get().changeOne(e,s.uri,t)}function eZ(s){return it.markerService.get().read(s)}function tZ(s){return it.markerService.get().onMarkerChanged(s)}function iZ(s){return it.modelService.get().getModel(s)}function nZ(){return it.modelService.get().getModels()}function sZ(s){return it.modelService.get().onModelAdded(s)}function oZ(s){return it.modelService.get().onModelRemoved(s)}function rZ(s){return it.modelService.get().onModelModeChanged(e=>{s({model:e.model,oldLanguage:e.oldModeId})})}function aZ(s){return aH(it.modelService.get(),s)}function lZ(s,e){const t=it.standaloneThemeService.get();return t.registerEditorContainer(s),Lx.colorizeElement(t,it.modeService.get(),s,e)}function dZ(s,e,t){return it.standaloneThemeService.get().registerEditorContainer(document.body),Lx.colorize(it.modeService.get(),s,e,t)}function hZ(s,e,t=4){return it.standaloneThemeService.get().registerEditorContainer(document.body),Lx.colorizeModelLine(s,e,t)}function cZ(s){let e=Rt.get(s);return e||{getInitialState:()=>Op,tokenize:(t,i,n,o)=>CM(s,t,n,o)}}function uZ(s,e){it.modeService.get().triggerMode(e);let i=cZ(e),n=cr(s),o=[],r=i.getInitialState();for(let a=0,l=n.length;a=100){i=i-100;let n=t.split(".");if(n.unshift(t),i=0&&(i.tokenSubst=!0),typeof t.bracket=="string")if(t.bracket==="@open")i.bracket=1;else if(t.bracket==="@close")i.bracket=-1;else throw pt(s,"a 'bracket' attribute must be either '@open' or '@close', in rule: "+e);if(t.next){if(typeof t.next!="string")throw pt(s,"the next state must be a string value in rule: "+e);{let n=t.next;if(!/^(@pop|@push|@popall)$/.test(n)&&(n[0]==="@"&&(n=n.substr(1)),n.indexOf("$")<0&&!kH(s,Ba(s,n,"",[],""))))throw pt(s,"the next state '"+t.next+"' is not defined in rule: "+e);i.next=n}}return typeof t.goBack=="number"&&(i.goBack=t.goBack),typeof t.switchTo=="string"&&(i.switchTo=t.switchTo),typeof t.log=="string"&&(i.log=t.log),typeof t.nextEmbedded=="string"&&(i.nextEmbedded=t.nextEmbedded,s.usesEmbedded=!0),i}}else if(Array.isArray(t)){let i=[];for(let n=0,o=t.length;n0&&i[0]==="^",this.name=this.name+": "+i,this.regex=kL(e,"^(?:"+(this.matchOnlyAtLineStart?i.substr(1):i)+")")}setAction(e,t){this.action=IL(e,this.name,t)}}function yZ(s,e){if(!e||typeof e!="object")throw new Error("Monarch: expecting a language definition object");let t={};t.languageId=s,t.includeLF=Xm(e.includeLF,!1),t.noThrow=!1,t.maxStack=100,t.start=typeof e.start=="string"?e.start:null,t.ignoreCase=Xm(e.ignoreCase,!1),t.unicode=Xm(e.unicode,!1),t.tokenPostfix=KT(e.tokenPostfix,"."+t.languageId),t.defaultToken=KT(e.defaultToken,"source"),t.usesEmbedded=!1;let i=e;i.languageId=s,i.includeLF=t.includeLF,i.ignoreCase=t.ignoreCase,i.unicode=t.unicode,i.noThrow=t.noThrow,i.usesEmbedded=t.usesEmbedded,i.stateNames=e.tokenizer,i.defaultToken=t.defaultToken;function n(r,a,l){for(const d of l){let h=d.include;if(h){if(typeof h!="string")throw pt(t,"an 'include' attribute must be a string at: "+r);if(h[0]==="@"&&(h=h.substr(1)),!e.tokenizer[h])throw pt(t,"include target '"+h+"' is not defined at: "+r);n(r+"."+h,a,e.tokenizer[h])}else{const c=new SZ(r);if(Array.isArray(d)&&d.length>=1&&d.length<=3)if(c.setRegex(i,d[0]),d.length>=3)if(typeof d[1]=="string")c.setAction(i,{token:d[1],next:d[2]});else if(typeof d[1]=="object"){const u=d[1];u.next=d[2],c.setAction(i,u)}else throw pt(t,"a next state as the last element of a rule can only be given if the action is either an object or a string, at: "+r);else c.setAction(i,d[1]);else{if(!d.regex)throw pt(t,"a rule must either be an array, or an object with a 'regex' or 'include' field at: "+r);d.name&&typeof d.name=="string"&&(c.name=d.name),d.matchOnlyAtStart&&(c.matchOnlyAtLineStart=Xm(d.matchOnlyAtLineStart,!1)),c.setRegex(i,d.regex),c.setAction(i,d.action)}a.push(c)}}}if(!e.tokenizer||typeof e.tokenizer!="object")throw pt(t,"a language definition must define the 'tokenizer' attribute as an object");t.tokenizer=[];for(let r in e.tokenizer)if(e.tokenizer.hasOwnProperty(r)){t.start||(t.start=r);const a=e.tokenizer[r];t.tokenizer[r]=new Array,n("tokenizer."+r,t.tokenizer[r],a)}if(t.usesEmbedded=i.usesEmbedded,e.brackets){if(!Array.isArray(e.brackets))throw pt(t,"the 'brackets' attribute must be defined as an array")}else e.brackets=[{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"},{open:"<",close:">",token:"delimiter.angle"}];let o=[];for(let r of e.brackets){let a=r;if(a&&Array.isArray(a)&&a.length===3&&(a={token:a[2],open:a[0],close:a[1]}),a.open===a.close)throw pt(t,"open and close brackets in a 'brackets' attribute must be different: "+a.open+`
- hint: use the 'bracket' attribute if matching on equal brackets is required.`);if(typeof a.open=="string"&&typeof a.token=="string"&&typeof a.close=="string")o.push({token:a.token+t.tokenPostfix,open:Xa(t,a.open),close:Xa(t,a.close)});else throw pt(t,"every element in the 'brackets' array must be a '{open,close,token}' object or array")}return t.brackets=o,t.noThrow=!0,t}function LZ(s){Rd.registerLanguage(s)}function DZ(){let s=[];return s=s.concat(Rd.getLanguages()),s}function xZ(s){return it.modeService.get().languageIdCodec.encodeLanguageId(s)}function kZ(s,e){let t=it.modeService.get().onDidEncounterLanguage(i=>{i===s&&(t.dispose(),e())});return t}function IZ(s,e){const t=it.modeService.get().validateLanguageId(s);if(!t)throw new Error(`Cannot set configuration for unknown language ${s}`);return Qe.register(t,e,100)}class EZ{constructor(e,t){this._languageId=e,this._actual=t}getInitialState(){return this._actual.getInitialState()}tokenize(e,t,i,n){if(typeof this._actual.tokenize=="function")return lp.adaptTokenize(this._languageId,this._actual,e,i,n);throw new Error("Not supported!")}tokenize2(e,t,i){let n=this._actual.tokenizeEncoded(e,i);return new KC(n.tokens,n.endState)}}class lp{constructor(e,t,i,n){this._languageId=e,this._actual=t,this._modeService=i,this._standaloneThemeService=n}getInitialState(){return this._actual.getInitialState()}static _toClassicTokens(e,t,i){let n=[],o=0;for(let r=0,a=e.length;r0&&r[a-1]===f)continue;let g=u.startIndex;h===0?g=0:gNZ(n)?new EZ(t,n):new lp(t,n,it.modeService.get(),it.standaloneThemeService.get());return I2(e)?Rt.registerPromise(s,e.then(n=>i(n))):Rt.register(s,i(e))}function RZ(s,e){const t=i=>NH(it.modeService.get(),it.standaloneThemeService.get(),s,yZ(s,i));return I2(e)?Rt.registerPromise(s,e.then(i=>t(i))):Rt.register(s,t(e))}function MZ(s,e){return vb.register(s,e)}function OZ(s,e){return wb.register(s,e)}function PZ(s,e){return Ld.register(s,e)}function FZ(s,e){return Sg.register(s,{provideHover:(t,i,n)=>{let o=t.getWordAtPosition(i);return Promise.resolve(e.provideHover(t,i,n)).then(r=>{if(r)return!r.range&&o&&(r.range=new S(i.lineNumber,o.startColumn,i.lineNumber,o.endColumn)),r.range||(r.range=new S(i.lineNumber,i.column,i.lineNumber,i.column)),r})}})}function BZ(s,e){return Vs.register(s,e)}function WZ(s,e){return Qc.register(s,e)}function VZ(s,e){return Sb.register(s,e)}function HZ(s,e){return yg.register(s,e)}function zZ(s,e){return Lb.register(s,e)}function UZ(s,e){return Db.register(s,e)}function $Z(s,e){return Zr.register(s,e)}function jZ(s,e,t){return ar.register(s,{providedCodeActionKinds:t==null?void 0:t.providedCodeActionKinds,provideCodeActions:(i,n,o,r)=>{let a=it.markerService.get().read({resource:i.uri}).filter(l=>S.areIntersectingOrTouching(l,n));return e.provideCodeActions(i,n,{markers:a,only:o.only},r)},resolveCodeAction:e.resolveCodeAction})}function KZ(s,e){return Vf.register(s,e)}function qZ(s,e){return ao.register(s,e)}function GZ(s,e){return xb.register(s,e)}function ZZ(s,e){return Lg.register(s,e)}function YZ(s,e){return ro.register(s,e)}function XZ(s,e){return Jc.register(s,e)}function QZ(s,e){return ey.register(s,e)}function JZ(s,e){return yb.register(s,e)}function eY(s,e){return ev.register(s,e)}function tY(s,e){return eu.register(s,e)}function iY(s,e){return tv.register(s,e)}function nY(s,e){return ux.register(s,e)}function sY(s,e){return za.register(s,e)}function oY(){return{register:LZ,getLanguages:DZ,onLanguage:kZ,getEncodedLanguageId:xZ,setLanguageConfiguration:IZ,setColorMap:TZ,setTokensProvider:AZ,setMonarchTokensProvider:RZ,registerReferenceProvider:MZ,registerRenameProvider:OZ,registerCompletionItemProvider:YZ,registerSignatureHelpProvider:PZ,registerHoverProvider:FZ,registerDocumentSymbolProvider:BZ,registerDocumentHighlightProvider:WZ,registerLinkedEditingRangeProvider:VZ,registerDefinitionProvider:HZ,registerImplementationProvider:zZ,registerTypeDefinitionProvider:UZ,registerCodeLensProvider:$Z,registerCodeActionProvider:jZ,registerDocumentFormattingEditProvider:KZ,registerDocumentRangeFormattingEditProvider:qZ,registerOnTypeFormattingEditProvider:GZ,registerLinkProvider:ZZ,registerColorProvider:XZ,registerFoldingRangeProvider:QZ,registerDeclarationProvider:JZ,registerSelectionRangeProvider:eY,registerDocumentSemanticTokensProvider:tY,registerDocumentRangeSemanticTokensProvider:iY,registerInlineCompletionsProvider:nY,registerInlayHintsProvider:sY,DocumentHighlightKind:h1,CompletionItemKind:s1,CompletionItemTag:o1,CompletionItemInsertTextRule:n1,SymbolKind:T1,SymbolTag:A1,IndentAction:p1,CompletionTriggerKind:r1,SignatureHelpTriggerKind:N1,InlayHintKind:m1,InlineCompletionTriggerKind:_1,FoldingRangeKind:vo}}class gu{static _handleEolEdits(e,t){let i,n=[];for(let o of t)typeof o.eol=="number"&&(i=o.eol),o.range&&typeof o.text=="string"&&n.push(o);return typeof i=="number"&&e.hasModel()&&e.getModel().pushEOL(i),n}static _isFullModelReplaceEdit(e,t){if(!e.hasModel())return!1;const i=e.getModel(),n=i.validateRange(t.range);return i.getFullModelRange().equalsRange(n)}static execute(e,t,i){i&&e.pushUndoStop();const n=gu._handleEolEdits(e,t);n.length===1&&gu._isFullModelReplaceEdit(e,n[0])?e.executeEdits("formatEditsCommand",n.map(o=>Vt.replace(S.lift(o.range),o.text))):e.executeEdits("formatEditsCommand",n.map(o=>Vt.replaceMove(S.lift(o.range),o.text))),i&&e.pushUndoStop()}}class lS{constructor(e){this.value=e,this._lower=e.toLowerCase()}static toKey(e){return typeof e=="string"?e.toLowerCase():e._lower}}var yo=globalThis&&globalThis.__awaiter||function(s,e,t,i){function n(o){return o instanceof t?o:new t(function(r){r(o)})}return new(t||(t=Promise))(function(o,r){function a(h){try{d(i.next(h))}catch(c){r(c)}}function l(h){try{d(i.throw(h))}catch(c){r(c)}}function d(h){h.done?o(h.value):n(h.value).then(a,l)}d((i=i.apply(s,e||[])).next())})};function eI(s){if(s=s.filter(n=>n.range),!s.length)return;let{range:e}=s[0];for(let n=1;n0&&S.areIntersectingOrTouching(l[d-1],g)?l[d-1]=S.fromPositions(l[d-1].getStartPosition(),g.getEndPosition()):d=l.push(g);const h=g=>yo(this,void 0,void 0,function*(){return(yield e.provideDocumentRangeFormattingEdits(r,g,r.getFormattingOptions(),a.token))||[]}),c=(g,m)=>{if(!g.length||!m.length)return!1;const _=g.reduce((C,b)=>S.plusRange(C,b.range),g[0].range);if(!m.some(C=>S.intersectRanges(_,C.range)))return!1;for(let C of g)for(let b of m)if(S.intersectRanges(C.range,b.range))return!0;return!1},u=[],f=[];try{for(let g of l){if(a.token.isCancellationRequested)return!0;f.push(yield h(g))}for(let g=0;g({text:_.text,range:S.lift(_.range),forceMoveMarkers:!0})),_=>{for(const{range:C}of _)if(S.areIntersectingOrTouching(C,m))return[new ne(C.startLineNumber,C.startColumn,C.endLineNumber,C.endColumn)];return null})}return!0})}function aY(s,e,t,i,n){return yo(this,void 0,void 0,function*(){const o=s.get(Ge),r=ur(e)?e.getModel():e,a=E2(r),l=yield eh.select(a,r,t);l&&(i.report(l),yield o.invokeFunction(lY,l,e,t,n))})}function lY(s,e,t,i,n){return yo(this,void 0,void 0,function*(){const o=s.get(Ys);let r,a;ur(t)?(r=t.getModel(),a=new Zg(t,5,void 0,n)):(r=t,a=new Sk(t,n));let l;try{const d=yield e.provideDocumentFormattingEdits(r,r.getFormattingOptions(),a.token);if(l=yield o.computeMoreMinimalEdits(r.uri,d),a.token.isCancellationRequested)return!0}finally{a.dispose()}if(!l||l.length===0)return!1;if(ur(t))gu.execute(t,l,i!==2),i!==2&&(eI(l),t.revealPositionInCenterIfOutsideViewport(t.getPosition(),1));else{const[{range:d}]=l,h=new ne(d.startLineNumber,d.startColumn,d.endLineNumber,d.endColumn);r.pushEditOperations([h],l.map(c=>({text:c.text,range:S.lift(c.range),forceMoveMarkers:!0})),c=>{for(const{range:u}of c)if(S.areIntersectingOrTouching(u,h))return[new ne(u.startLineNumber,u.startColumn,u.endLineNumber,u.endColumn)];return null})}return!0})}function dY(s,e,t,i,n){return yo(this,void 0,void 0,function*(){const o=ao.ordered(e);for(const r of o){let a=yield Promise.resolve(r.provideDocumentRangeFormattingEdits(e,t,i,n)).catch(Di);if(Tn(a))return yield s.computeMoreMinimalEdits(e.uri,a)}})}function hY(s,e,t,i){return yo(this,void 0,void 0,function*(){const n=E2(e);for(const o of n){let r=yield Promise.resolve(o.provideDocumentFormattingEdits(e,t,i)).catch(Di);if(Tn(r))return yield s.computeMoreMinimalEdits(e.uri,r)}})}function T2(s,e,t,i,n){const o=xb.ordered(e);return o.length===0||o[0].autoFormatTriggerCharacters.indexOf(i)<0?Promise.resolve(void 0):Promise.resolve(o[0].provideOnTypeFormattingEdits(e,t,i,n,Oe.None)).catch(Di).then(r=>s.computeMoreMinimalEdits(e.uri,r))}$e.registerCommand("_executeFormatRangeProvider",function(s,...e){return yo(this,void 0,void 0,function*(){const[t,i,n]=e;ut(me.isUri(t)),ut(S.isIRange(i));const o=s.get(Jn),r=s.get(Ys),a=yield o.createModelReference(t);try{return dY(r,a.object.textEditorModel,S.lift(i),n,Oe.None)}finally{a.dispose()}})});$e.registerCommand("_executeFormatDocumentProvider",function(s,...e){return yo(this,void 0,void 0,function*(){const[t,i]=e;ut(me.isUri(t));const n=s.get(Jn),o=s.get(Ys),r=yield n.createModelReference(t);try{return hY(o,r.object.textEditorModel,i,Oe.None)}finally{r.dispose()}})});$e.registerCommand("_executeFormatOnTypeProvider",function(s,...e){return yo(this,void 0,void 0,function*(){const[t,i,n,o]=e;ut(me.isUri(t)),ut(F.isIPosition(i)),ut(typeof n=="string");const r=s.get(Jn),a=s.get(Ys),l=yield r.createModelReference(t);try{return T2(a,l.object.textEditorModel,F.lift(i),n,o)}finally{l.dispose()}})});var dS;Do.wrappingIndent.defaultValue=0;Do.glyphMargin.defaultValue=!1;Do.autoIndent.defaultValue=3;Do.overviewRulerLanes.defaultValue=2;eh.setFormatterSelector((s,e,t)=>Promise.resolve(s[0]));const un=FR();un.editor=_Z();un.languages=oY();const cY=un.CancellationTokenSource,pu=un.Emitter,uY=un.KeyCode,fY=un.KeyMod,gY=un.Position,pY=un.Range,mY=un.Selection,_Y=un.SelectionDirection,bY=un.MarkerSeverity,CY=un.MarkerTag,vY=un.Uri,wY=un.Token,SY=un.editor,on=un.languages;(!((dS=Et.MonacoEnvironment)===null||dS===void 0)&&dS.globalAPI||typeof define=="function"&&define.amd)&&(self.monaco=un);typeof self.require<"u"&&typeof self.require.config=="function"&&self.require.config({ignoreDuplicateModules:["vscode-languageserver-types","vscode-languageserver-types/main","vscode-languageserver-textdocument","vscode-languageserver-textdocument/main","vscode-nls","vscode-nls/vscode-nls","jsonc-parser","jsonc-parser/main","vscode-uri","vscode-uri/index","vs/basic-languages/typescript/typescript"]});var yY="4.4.4",EL;(function(s){s[s.None=0]="None",s[s.CommonJS=1]="CommonJS",s[s.AMD=2]="AMD",s[s.UMD=3]="UMD",s[s.System=4]="System",s[s.ES2015=5]="ES2015",s[s.ESNext=99]="ESNext"})(EL||(EL={}));var NL;(function(s){s[s.None=0]="None",s[s.Preserve=1]="Preserve",s[s.React=2]="React",s[s.ReactNative=3]="ReactNative",s[s.ReactJSX=4]="ReactJSX",s[s.ReactJSXDev=5]="ReactJSXDev"})(NL||(NL={}));var TL;(function(s){s[s.CarriageReturnLineFeed=0]="CarriageReturnLineFeed",s[s.LineFeed=1]="LineFeed"})(TL||(TL={}));var dp;(function(s){s[s.ES3=0]="ES3",s[s.ES5=1]="ES5",s[s.ES2015=2]="ES2015",s[s.ES2016=3]="ES2016",s[s.ES2017=4]="ES2017",s[s.ES2018=5]="ES2018",s[s.ES2019=6]="ES2019",s[s.ES2020=7]="ES2020",s[s.ESNext=99]="ESNext",s[s.JSON=100]="JSON",s[s.Latest=99]="Latest"})(dp||(dp={}));var AL;(function(s){s[s.Classic=1]="Classic",s[s.NodeJs=2]="NodeJs"})(AL||(AL={}));var A2=function(){function s(e,t,i,n){this._onDidChange=new pu,this._onDidExtraLibsChange=new pu,this._extraLibs=Object.create(null),this._removedExtraLibs=Object.create(null),this._eagerModelSync=!1,this.setCompilerOptions(e),this.setDiagnosticsOptions(t),this.setWorkerOptions(i),this.setInlayHintsOptions(n),this._onDidExtraLibsChangeTimeout=-1}return Object.defineProperty(s.prototype,"onDidChange",{get:function(){return this._onDidChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"onDidExtraLibsChange",{get:function(){return this._onDidExtraLibsChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"workerOptions",{get:function(){return this._workerOptions},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"inlayHintsOptions",{get:function(){return this._inlayHintsOptions},enumerable:!1,configurable:!0}),s.prototype.getExtraLibs=function(){return this._extraLibs},s.prototype.addExtraLib=function(e,t){var i=this,n;if(typeof t>"u"?n="ts:extralib-"+Math.random().toString(36).substring(2,15):n=t,this._extraLibs[n]&&this._extraLibs[n].content===e)return{dispose:function(){}};var o=1;return this._removedExtraLibs[n]&&(o=this._removedExtraLibs[n]+1),this._extraLibs[n]&&(o=this._extraLibs[n].version+1),this._extraLibs[n]={content:e,version:o},this._fireOnDidExtraLibsChangeSoon(),{dispose:function(){var r=i._extraLibs[n];r&&r.version===o&&(delete i._extraLibs[n],i._removedExtraLibs[n]=o,i._fireOnDidExtraLibsChangeSoon())}}},s.prototype.setExtraLibs=function(e){for(var t in this._extraLibs)this._removedExtraLibs[t]=this._extraLibs[t].version;if(this._extraLibs=Object.create(null),e&&e.length>0)for(var i=0,n=e;iimport("./tsMode-c6cf64e6.js"),["assets/tsMode-c6cf64e6.js","assets/index-dfab27d5.js","assets/index-44b28576.css"])}on.onLanguage("typescript",function(){return Yv().then(function(s){return s.setupTypeScript(R2)})});on.onLanguage("javascript",function(){return Yv().then(function(s){return s.setupJavaScript(M2)})});var tI=function(){function s(e,t,i){this._onDidChange=new pu,this._languageId=e,this.setOptions(t),this.setModeConfiguration(i)}return Object.defineProperty(s.prototype,"onDidChange",{get:function(){return this._onDidChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"languageId",{get:function(){return this._languageId},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"modeConfiguration",{get:function(){return this._modeConfiguration},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"diagnosticsOptions",{get:function(){return this.options},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"options",{get:function(){return this._options},enumerable:!1,configurable:!0}),s.prototype.setOptions=function(e){this._options=e||Object.create(null),this._onDidChange.fire(this)},s.prototype.setDiagnosticsOptions=function(e){this.setOptions(e)},s.prototype.setModeConfiguration=function(e){this._modeConfiguration=e||Object.create(null),this._onDidChange.fire(this)},s}(),iI={validate:!0,lint:{compatibleVendorPrefixes:"ignore",vendorPrefix:"warning",duplicateProperties:"warning",emptyRules:"warning",importStatement:"ignore",boxModel:"ignore",universalSelector:"ignore",zeroUnits:"ignore",fontFaceProperties:"warning",hexColorLength:"error",argumentsInColorFunction:"error",unknownProperties:"warning",ieHack:"ignore",unknownVendorSpecificProperties:"ignore",propertyIgnoredDueToDisplay:"warning",important:"ignore",float:"ignore",idSelector:"ignore"},data:{useDefaultDataProvider:!0}},nI={completionItems:!0,hovers:!0,documentSymbols:!0,definitions:!0,references:!0,documentHighlights:!0,rename:!0,colors:!0,foldingRanges:!0,diagnostics:!0,selectionRanges:!0},O2=new tI("css",iI,nI),P2=new tI("scss",iI,nI),F2=new tI("less",iI,nI);on.css={cssDefaults:O2,lessDefaults:F2,scssDefaults:P2};function sI(){return ce(()=>import("./cssMode-ac1dc3e8.js"),["assets/cssMode-ac1dc3e8.js","assets/index-dfab27d5.js","assets/index-44b28576.css"])}on.onLanguage("less",function(){sI().then(function(s){return s.setupMode(F2)})});on.onLanguage("scss",function(){sI().then(function(s){return s.setupMode(P2)})});on.onLanguage("css",function(){sI().then(function(s){return s.setupMode(O2)})});var kY=function(){function s(e,t,i){this._onDidChange=new pu,this._languageId=e,this.setDiagnosticsOptions(t),this.setModeConfiguration(i)}return Object.defineProperty(s.prototype,"onDidChange",{get:function(){return this._onDidChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"languageId",{get:function(){return this._languageId},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"modeConfiguration",{get:function(){return this._modeConfiguration},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"diagnosticsOptions",{get:function(){return this._diagnosticsOptions},enumerable:!1,configurable:!0}),s.prototype.setDiagnosticsOptions=function(e){this._diagnosticsOptions=e||Object.create(null),this._onDidChange.fire(this)},s.prototype.setModeConfiguration=function(e){this._modeConfiguration=e||Object.create(null),this._onDidChange.fire(this)},s}(),IY={validate:!0,allowComments:!0,schemas:[],enableSchemaRequest:!1,schemaRequest:"warning",schemaValidation:"warning",comments:"error",trailingCommas:"error"},EY={documentFormattingEdits:!0,documentRangeFormattingEdits:!0,completionItems:!0,hovers:!0,documentSymbols:!0,tokens:!0,colors:!0,foldingRanges:!0,diagnostics:!0,selectionRanges:!0},B2=new kY("json",IY,EY);on.json={jsonDefaults:B2};function NY(){return ce(()=>import("./jsonMode-7b6bd659.js"),["assets/jsonMode-7b6bd659.js","assets/index-dfab27d5.js","assets/index-44b28576.css"])}on.register({id:"json",extensions:[".json",".bowerrc",".jshintrc",".jscsrc",".eslintrc",".babelrc",".har"],aliases:["JSON","json"],mimetypes:["application/json"]});on.onLanguage("json",function(){NY().then(function(s){return s.setupMode(B2)})});var TY=globalThis&&globalThis.__awaiter||function(s,e,t,i){function n(o){return o instanceof t?o:new t(function(r){r(o)})}return new(t||(t=Promise))(function(o,r){function a(h){try{d(i.next(h))}catch(c){r(c)}}function l(h){try{d(i.throw(h))}catch(c){r(c)}}function d(h){h.done?o(h.value):n(h.value).then(a,l)}d((i=i.apply(s,e||[])).next())})},AY=globalThis&&globalThis.__generator||function(s,e){var t={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},i,n,o,r;return r={next:a(0),throw:a(1),return:a(2)},typeof Symbol=="function"&&(r[Symbol.iterator]=function(){return this}),r;function a(d){return function(h){return l([d,h])}}function l(d){if(i)throw new TypeError("Generator is already executing.");for(;t;)try{if(i=1,n&&(o=d[0]&2?n.return:d[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,d[1])).done)return o;switch(n=0,o&&(d=[d[0]&2,o.value]),d[0]){case 0:case 1:o=d;break;case 4:return t.label++,{value:d[1],done:!1};case 5:t.label++,n=d[1],d=[0];continue;case 7:d=t.ops.pop(),t.trys.pop();continue;default:if(o=t.trys,!(o=o.length>0&&o[o.length-1])&&(d[0]===6||d[0]===2)){t=0;continue}if(d[0]===3&&(!o||d[1]>o[0]&&d[1]import("./htmlMode-09c76814.js"),["assets/htmlMode-09c76814.js","assets/index-dfab27d5.js","assets/index-44b28576.css"])}function Jv(s,e,t){var i=this;e===void 0&&(e=Xv),t===void 0&&(t=Qv(s));var n=new RY(s,e,t),o,r=on.onLanguage(s,function(){return TY(i,void 0,void 0,function(){return AY(this,function(a){switch(a.label){case 0:return[4,BY()];case 1:return o=a.sent().setupMode(n),[2]}})})});return{defaults:n,dispose:function(){r.dispose(),o==null||o.dispose(),o=void 0}}}var z2={},hS={},WY=function(){function s(e){var t=this;this._languageId=e,this._loadingTriggered=!1,this._lazyLoadPromise=new Promise(function(i,n){t._lazyLoadPromiseResolve=i,t._lazyLoadPromiseReject=n})}return s.getOrCreate=function(e){return hS[e]||(hS[e]=new s(e)),hS[e]},s.prototype.whenLoaded=function(){return this._lazyLoadPromise},s.prototype.load=function(){var e=this;return this._loadingTriggered||(this._loadingTriggered=!0,z2[this._languageId].loader().then(function(t){return e._lazyLoadPromiseResolve(t)},function(t){return e._lazyLoadPromiseReject(t)})),this._lazyLoadPromise},s}();function fe(s){var e=s.id;z2[e]=s,on.register(s);var t=WY.getOrCreate(e);on.setMonarchTokensProvider(e,t.whenLoaded().then(function(i){return i.language})),on.onLanguage(e,function(){t.load().then(function(i){on.setLanguageConfiguration(e,i.conf)})})}fe({id:"abap",extensions:[".abap"],aliases:["abap","ABAP"],loader:function(){return ce(()=>import("./abap-ffbe9c82.js"),[])}});fe({id:"apex",extensions:[".cls"],aliases:["Apex","apex"],mimetypes:["text/x-apex-source","text/x-apex"],loader:function(){return ce(()=>import("./apex-9370f1bb.js"),[])}});fe({id:"azcli",extensions:[".azcli"],aliases:["Azure CLI","azcli"],loader:function(){return ce(()=>import("./azcli-714c239b.js"),[])}});fe({id:"bat",extensions:[".bat",".cmd"],aliases:["Batch","bat"],loader:function(){return ce(()=>import("./bat-7eb152e5.js"),[])}});fe({id:"bicep",extensions:[".bicep"],aliases:["Bicep"],loader:function(){return ce(()=>import("./bicep-0e2809f7.js"),[])}});fe({id:"cameligo",extensions:[".mligo"],aliases:["Cameligo"],loader:function(){return ce(()=>import("./cameligo-91a865e0.js"),[])}});fe({id:"clojure",extensions:[".clj",".cljs",".cljc",".edn"],aliases:["clojure","Clojure"],loader:function(){return ce(()=>import("./clojure-7e0f8eaa.js"),[])}});fe({id:"coffeescript",extensions:[".coffee"],aliases:["CoffeeScript","coffeescript","coffee"],mimetypes:["text/x-coffeescript","text/coffeescript"],loader:function(){return ce(()=>import("./coffee-af1c6ca9.js"),[])}});fe({id:"c",extensions:[".c",".h"],aliases:["C","c"],loader:function(){return ce(()=>import("./cpp-d3907575.js"),[])}});fe({id:"cpp",extensions:[".cpp",".cc",".cxx",".hpp",".hh",".hxx"],aliases:["C++","Cpp","cpp"],loader:function(){return ce(()=>import("./cpp-d3907575.js"),[])}});fe({id:"csharp",extensions:[".cs",".csx",".cake"],aliases:["C#","csharp"],loader:function(){return ce(()=>import("./csharp-d087d64c.js"),[])}});fe({id:"csp",extensions:[],aliases:["CSP","csp"],loader:function(){return ce(()=>import("./csp-13ea92a6.js"),[])}});fe({id:"css",extensions:[".css"],aliases:["CSS","css"],mimetypes:["text/css"],loader:function(){return ce(()=>import("./css-e979702d.js"),[])}});fe({id:"dart",extensions:[".dart"],aliases:["Dart","dart"],mimetypes:["text/x-dart-source","text/x-dart"],loader:function(){return ce(()=>import("./dart-0a096fe0.js"),[])}});fe({id:"dockerfile",extensions:[".dockerfile"],filenames:["Dockerfile"],aliases:["Dockerfile"],loader:function(){return ce(()=>import("./dockerfile-af4eb422.js"),[])}});fe({id:"ecl",extensions:[".ecl"],aliases:["ECL","Ecl","ecl"],loader:function(){return ce(()=>import("./ecl-8f5b983c.js"),[])}});fe({id:"elixir",extensions:[".ex",".exs"],aliases:["Elixir","elixir","ex"],loader:function(){return ce(()=>import("./elixir-82a0fd91.js"),[])}});fe({id:"flow9",extensions:[".flow"],aliases:["Flow9","Flow","flow9","flow"],loader:function(){return ce(()=>import("./flow9-47a350b0.js"),[])}});fe({id:"fsharp",extensions:[".fs",".fsi",".ml",".mli",".fsx",".fsscript"],aliases:["F#","FSharp","fsharp"],loader:function(){return ce(()=>import("./fsharp-de5183ae.js"),[])}});fe({id:"go",extensions:[".go"],aliases:["Go"],loader:function(){return ce(()=>import("./go-a9169306.js"),[])}});fe({id:"graphql",extensions:[".graphql",".gql"],aliases:["GraphQL","graphql","gql"],mimetypes:["application/graphql"],loader:function(){return ce(()=>import("./graphql-e84c0b6e.js"),[])}});fe({id:"handlebars",extensions:[".handlebars",".hbs"],aliases:["Handlebars","handlebars","hbs"],mimetypes:["text/x-handlebars-template"],loader:function(){return ce(()=>import("./handlebars-16c6fdc2.js"),["assets/handlebars-16c6fdc2.js","assets/index-dfab27d5.js","assets/index-44b28576.css"])}});fe({id:"hcl",extensions:[".tf",".tfvars",".hcl"],aliases:["Terraform","tf","HCL","hcl"],loader:function(){return ce(()=>import("./hcl-3a006f6b.js"),[])}});fe({id:"html",extensions:[".html",".htm",".shtml",".xhtml",".mdoc",".jsp",".asp",".aspx",".jshtm"],aliases:["HTML","htm","html","xhtml"],mimetypes:["text/html","text/x-jshtm","text/template","text/ng-template"],loader:function(){return ce(()=>import("./html-ef26fff5.js"),["assets/html-ef26fff5.js","assets/index-dfab27d5.js","assets/index-44b28576.css"])}});fe({id:"ini",extensions:[".ini",".properties",".gitconfig"],filenames:["config",".gitattributes",".gitconfig",".editorconfig"],aliases:["Ini","ini"],loader:function(){return ce(()=>import("./ini-53b87513.js"),[])}});fe({id:"java",extensions:[".java",".jav"],aliases:["Java","java"],mimetypes:["text/x-java-source","text/x-java"],loader:function(){return ce(()=>import("./java-58c1a618.js"),[])}});fe({id:"javascript",extensions:[".js",".es6",".jsx",".mjs"],firstLine:"^#!.*\\bnode",filenames:["jakefile"],aliases:["JavaScript","javascript","js"],mimetypes:["text/javascript"],loader:function(){return ce(()=>import("./javascript-7735aa82.js"),["assets/javascript-7735aa82.js","assets/typescript-bf199638.js","assets/index-dfab27d5.js","assets/index-44b28576.css"])}});fe({id:"julia",extensions:[".jl"],aliases:["julia","Julia"],loader:function(){return ce(()=>import("./julia-5f2fc018.js"),[])}});fe({id:"kotlin",extensions:[".kt"],aliases:["Kotlin","kotlin"],mimetypes:["text/x-kotlin-source","text/x-kotlin"],loader:function(){return ce(()=>import("./kotlin-2e32535a.js"),[])}});fe({id:"less",extensions:[".less"],aliases:["Less","less"],mimetypes:["text/x-less","text/less"],loader:function(){return ce(()=>import("./less-00089e91.js"),[])}});fe({id:"lexon",extensions:[".lex"],aliases:["Lexon"],loader:function(){return ce(()=>import("./lexon-22a22ba3.js"),[])}});fe({id:"lua",extensions:[".lua"],aliases:["Lua","lua"],loader:function(){return ce(()=>import("./lua-04a273a9.js"),[])}});fe({id:"liquid",extensions:[".liquid",".html.liquid"],aliases:["Liquid","liquid"],mimetypes:["application/liquid"],loader:function(){return ce(()=>import("./liquid-18ff81a7.js"),["assets/liquid-18ff81a7.js","assets/index-dfab27d5.js","assets/index-44b28576.css"])}});fe({id:"m3",extensions:[".m3",".i3",".mg",".ig"],aliases:["Modula-3","Modula3","modula3","m3"],loader:function(){return ce(()=>import("./m3-b6e0b0fd.js"),[])}});fe({id:"markdown",extensions:[".md",".markdown",".mdown",".mkdn",".mkd",".mdwn",".mdtxt",".mdtext"],aliases:["Markdown","markdown"],loader:function(){return ce(()=>import("./markdown-c2ea92f4.js"),[])}});fe({id:"mips",extensions:[".s"],aliases:["MIPS","MIPS-V"],mimetypes:["text/x-mips","text/mips","text/plaintext"],loader:function(){return ce(()=>import("./mips-daa25bd4.js"),[])}});fe({id:"msdax",extensions:[".dax",".msdax"],aliases:["DAX","MSDAX"],loader:function(){return ce(()=>import("./msdax-c6fa6f2f.js"),[])}});fe({id:"mysql",extensions:[],aliases:["MySQL","mysql"],loader:function(){return ce(()=>import("./mysql-788d9472.js"),[])}});fe({id:"objective-c",extensions:[".m"],aliases:["Objective-C"],loader:function(){return ce(()=>import("./objective-c-9e968999.js"),[])}});fe({id:"pascal",extensions:[".pas",".p",".pp"],aliases:["Pascal","pas"],mimetypes:["text/x-pascal-source","text/x-pascal"],loader:function(){return ce(()=>import("./pascal-e017ea4d.js"),[])}});fe({id:"pascaligo",extensions:[".ligo"],aliases:["Pascaligo","ligo"],loader:function(){return ce(()=>import("./pascaligo-bf7e3de8.js"),[])}});fe({id:"perl",extensions:[".pl"],aliases:["Perl","pl"],loader:function(){return ce(()=>import("./perl-2762c71f.js"),[])}});fe({id:"pgsql",extensions:[],aliases:["PostgreSQL","postgres","pg","postgre"],loader:function(){return ce(()=>import("./pgsql-cb741fab.js"),[])}});fe({id:"php",extensions:[".php",".php4",".php5",".phtml",".ctp"],aliases:["PHP","php"],mimetypes:["application/x-php"],loader:function(){return ce(()=>import("./php-df365951.js"),[])}});fe({id:"pla",extensions:[".pla"],loader:function(){return ce(()=>import("./pla-6c133053.js"),[])}});fe({id:"postiats",extensions:[".dats",".sats",".hats"],aliases:["ATS","ATS/Postiats"],loader:function(){return ce(()=>import("./postiats-b245e70f.js"),[])}});fe({id:"powerquery",extensions:[".pq",".pqm"],aliases:["PQ","M","Power Query","Power Query M"],loader:function(){return ce(()=>import("./powerquery-6b7a9cc4.js"),[])}});fe({id:"powershell",extensions:[".ps1",".psm1",".psd1"],aliases:["PowerShell","powershell","ps","ps1"],loader:function(){return ce(()=>import("./powershell-50bb8773.js"),[])}});fe({id:"proto",extensions:[".proto"],aliases:["protobuf","Protocol Buffers"],loader:function(){return ce(()=>import("./protobuf-0ee314a2.js"),[])}});fe({id:"pug",extensions:[".jade",".pug"],aliases:["Pug","Jade","jade"],loader:function(){return ce(()=>import("./pug-409e523c.js"),[])}});fe({id:"python",extensions:[".py",".rpy",".pyw",".cpy",".gyp",".gypi"],aliases:["Python","py"],firstLine:"^#!/.*\\bpython[0-9.-]*\\b",loader:function(){return ce(()=>import("./python-d09de22b.js"),["assets/python-d09de22b.js","assets/index-dfab27d5.js","assets/index-44b28576.css"])}});fe({id:"qsharp",extensions:[".qs"],aliases:["Q#","qsharp"],loader:function(){return ce(()=>import("./qsharp-9951b04a.js"),[])}});fe({id:"r",extensions:[".r",".rhistory",".rmd",".rprofile",".rt"],aliases:["R","r"],loader:function(){return ce(()=>import("./r-c34a576e.js"),[])}});fe({id:"razor",extensions:[".cshtml"],aliases:["Razor","razor"],mimetypes:["text/x-cshtml"],loader:function(){return ce(()=>import("./razor-38a6d1c7.js"),["assets/razor-38a6d1c7.js","assets/index-dfab27d5.js","assets/index-44b28576.css"])}});fe({id:"redis",extensions:[".redis"],aliases:["redis"],loader:function(){return ce(()=>import("./redis-1a5ba628.js"),[])}});fe({id:"redshift",extensions:[],aliases:["Redshift","redshift"],loader:function(){return ce(()=>import("./redshift-2c383c33.js"),[])}});fe({id:"restructuredtext",extensions:[".rst"],aliases:["reStructuredText","restructuredtext"],loader:function(){return ce(()=>import("./restructuredtext-4a10ef1d.js"),[])}});fe({id:"ruby",extensions:[".rb",".rbx",".rjs",".gemspec",".pp"],filenames:["rakefile","Gemfile"],aliases:["Ruby","rb"],loader:function(){return ce(()=>import("./ruby-944f56a1.js"),[])}});fe({id:"rust",extensions:[".rs",".rlib"],aliases:["Rust","rust"],loader:function(){return ce(()=>import("./rust-b0440aa9.js"),[])}});fe({id:"sb",extensions:[".sb"],aliases:["Small Basic","sb"],loader:function(){return ce(()=>import("./sb-f3b34295.js"),[])}});fe({id:"scala",extensions:[".scala",".sc",".sbt"],aliases:["Scala","scala","SBT","Sbt","sbt","Dotty","dotty"],mimetypes:["text/x-scala-source","text/x-scala","text/x-sbt","text/x-dotty"],loader:function(){return ce(()=>import("./scala-7c17b334.js"),[])}});fe({id:"scheme",extensions:[".scm",".ss",".sch",".rkt"],aliases:["scheme","Scheme"],loader:function(){return ce(()=>import("./scheme-f75b8a9a.js"),[])}});fe({id:"scss",extensions:[".scss"],aliases:["Sass","sass","scss"],mimetypes:["text/x-scss","text/scss"],loader:function(){return ce(()=>import("./scss-833c0e23.js"),[])}});fe({id:"shell",extensions:[".sh",".bash"],aliases:["Shell","sh"],loader:function(){return ce(()=>import("./shell-4657d8a1.js"),[])}});fe({id:"sol",extensions:[".sol"],aliases:["sol","solidity","Solidity"],loader:function(){return ce(()=>import("./solidity-62f35cba.js"),[])}});fe({id:"aes",extensions:[".aes"],aliases:["aes","sophia","Sophia"],loader:function(){return ce(()=>import("./sophia-94cd0024.js"),[])}});fe({id:"sparql",extensions:[".rq"],aliases:["sparql","SPARQL"],loader:function(){return ce(()=>import("./sparql-23f0115e.js"),[])}});fe({id:"sql",extensions:[".sql"],aliases:["SQL"],loader:function(){return ce(()=>import("./sql-9ac813b8.js"),[])}});fe({id:"st",extensions:[".st",".iecst",".iecplc",".lc3lib"],aliases:["StructuredText","scl","stl"],loader:function(){return ce(()=>import("./st-4d0d15a1.js"),[])}});fe({id:"swift",aliases:["Swift","swift"],extensions:[".swift"],mimetypes:["text/swift"],loader:function(){return ce(()=>import("./swift-11c0de91.js"),[])}});fe({id:"systemverilog",extensions:[".sv",".svh"],aliases:["SV","sv","SystemVerilog","systemverilog"],loader:function(){return ce(()=>import("./systemverilog-416dd7b8.js"),[])}});fe({id:"verilog",extensions:[".v",".vh"],aliases:["V","v","Verilog","verilog"],loader:function(){return ce(()=>import("./systemverilog-416dd7b8.js"),[])}});fe({id:"tcl",extensions:[".tcl"],aliases:["tcl","Tcl","tcltk","TclTk","tcl/tk","Tcl/Tk"],loader:function(){return ce(()=>import("./tcl-838585b9.js"),[])}});fe({id:"twig",extensions:[".twig"],aliases:["Twig","twig"],mimetypes:["text/x-twig"],loader:function(){return ce(()=>import("./twig-1b470482.js"),[])}});fe({id:"typescript",extensions:[".ts",".tsx"],aliases:["TypeScript","ts","typescript"],mimetypes:["text/typescript"],loader:function(){return ce(()=>import("./typescript-bf199638.js"),["assets/typescript-bf199638.js","assets/index-dfab27d5.js","assets/index-44b28576.css"])}});fe({id:"vb",extensions:[".vb"],aliases:["Visual Basic","vb"],loader:function(){return ce(()=>import("./vb-2f676a0c.js"),[])}});fe({id:"xml",extensions:[".xml",".dtd",".ascx",".csproj",".config",".wxi",".wxl",".wxs",".xaml",".svg",".svgz",".opf",".xsl"],firstLine:"(\\<\\?xml.*)|(\\