code-server
Version:
Run VS Code on a remote server.
2 lines • 3.06 MB
JavaScript
var jEe=Object.create;var Ak=Object.defineProperty;var KEe=Object.getOwnPropertyDescriptor;var ZEe=Object.getOwnPropertyNames;var QEe=Object.getPrototypeOf,JEe=Object.prototype.hasOwnProperty;var z=(t,e)=>()=>(t&&(e=t(t=0)),e);var jt=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),dr=(t,e)=>{for(var r in e)Ak(t,r,{get:e[r],enumerable:!0})},Sk=(t,e,r,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of ZEe(e))!JEe.call(t,n)&&n!==r&&Ak(t,n,{get:()=>e[n],enumerable:!(i=KEe(e,n))||i.enumerable});return t},Gr=(t,e,r)=>(Sk(t,e,"default"),r&&Sk(r,e,"default")),Da=(t,e,r)=>(r=t!=null?jEe(QEe(t)):{},Sk(e||!t||!t.__esModule?Ak(r,"default",{value:t,enumerable:!0}):r,t)),I_=t=>Sk(Ak({},"__esModule",{value:!0}),t);var _k=jt((D_,M_)=>{(function(t,e){typeof D_=="object"&&typeof M_<"u"?M_.exports=e():typeof define=="function"&&define.amd?define(e):(t=typeof globalThis<"u"?globalThis:t||self).dayjs=e()})(D_,(function(){"use strict";var t=1e3,e=6e4,r=36e5,i="millisecond",n="second",a="minute",s="hour",o="day",l="week",u="month",h="quarter",d="year",f="date",p="Invalid Date",g=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,m=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,y={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(A){var L=["th","st","nd","rd"],_=A%100;return"["+A+(L[(_-20)%10]||L[_]||L[0])+"]"}},v=function(A,L,_){var I=String(A);return!I||I.length>=L?A:""+Array(L+1-I.length).join(_)+A},b={s:v,z:function(A){var L=-A.utcOffset(),_=Math.abs(L),I=Math.floor(_/60),D=_%60;return(L<=0?"+":"-")+v(I,2,"0")+":"+v(D,2,"0")},m:function A(L,_){if(L.date()<_.date())return-A(_,L);var I=12*(_.year()-L.year())+(_.month()-L.month()),D=L.clone().add(I,u),P=_-D<0,O=L.clone().add(I+(P?-1:1),u);return+(-(I+(_-D)/(P?D-O:O-D))||0)},a:function(A){return A<0?Math.ceil(A)||0:Math.floor(A)},p:function(A){return{M:u,y:d,w:l,d:o,D:f,h:s,m:a,s:n,ms:i,Q:h}[A]||String(A||"").toLowerCase().replace(/s$/,"")},u:function(A){return A===void 0}},T="en",C={};C[T]=y;var k="$isDayjsObject",w=function(A){return A instanceof M||!(!A||!A[k])},E=function A(L,_,I){var D;if(!L)return T;if(typeof L=="string"){var P=L.toLowerCase();C[P]&&(D=P),_&&(C[P]=_,D=P);var O=L.split("-");if(!D&&O.length>1)return A(O[0])}else{var F=L.name;C[F]=L,D=F}return!I&&D&&(T=D),D||!I&&T},S=function(A,L){if(w(A))return A.clone();var _=typeof L=="object"?L:{};return _.date=A,_.args=arguments,new M(_)},R=b;R.l=E,R.i=w,R.w=function(A,L){return S(A,{locale:L.$L,utc:L.$u,x:L.$x,$offset:L.$offset})};var M=(function(){function A(_){this.$L=E(_.locale,null,!0),this.parse(_),this.$x=this.$x||_.x||{},this[k]=!0}var L=A.prototype;return L.parse=function(_){this.$d=(function(I){var D=I.date,P=I.utc;if(D===null)return new Date(NaN);if(R.u(D))return new Date;if(D instanceof Date)return new Date(D);if(typeof D=="string"&&!/Z$/i.test(D)){var O=D.match(g);if(O){var F=O[2]-1||0,$=(O[7]||"0").substring(0,3);return P?new Date(Date.UTC(O[1],F,O[3]||1,O[4]||0,O[5]||0,O[6]||0,$)):new Date(O[1],F,O[3]||1,O[4]||0,O[5]||0,O[6]||0,$)}}return new Date(D)})(_),this.init()},L.init=function(){var _=this.$d;this.$y=_.getFullYear(),this.$M=_.getMonth(),this.$D=_.getDate(),this.$W=_.getDay(),this.$H=_.getHours(),this.$m=_.getMinutes(),this.$s=_.getSeconds(),this.$ms=_.getMilliseconds()},L.$utils=function(){return R},L.isValid=function(){return this.$d.toString()!==p},L.isSame=function(_,I){var D=S(_);return this.startOf(I)<=D&&D<=this.endOf(I)},L.isAfter=function(_,I){return S(_)<this.startOf(I)},L.isBefore=function(_,I){return this.endOf(I)<S(_)},L.$g=function(_,I,D){return R.u(_)?this[I]:this.set(D,_)},L.unix=function(){return Math.floor(this.valueOf()/1e3)},L.valueOf=function(){return this.$d.getTime()},L.startOf=function(_,I){var D=this,P=!!R.u(I)||I,O=R.p(_),F=function(Y,se){var J=R.w(D.$u?Date.UTC(D.$y,se,Y):new Date(D.$y,se,Y),D);return P?J:J.endOf(o)},$=function(Y,se){return R.w(D.toDate()[Y].apply(D.toDate("s"),(P?[0,0,0,0]:[23,59,59,999]).slice(se)),D)},B=this.$W,G=this.$M,H=this.$D,X="set"+(this.$u?"UTC":"");switch(O){case d:return P?F(1,0):F(31,11);case u:return P?F(1,G):F(0,G+1);case l:var U=this.$locale().weekStart||0,Z=(B<U?B+7:B)-U;return F(P?H-Z:H+(6-Z),G);case o:case f:return $(X+"Hours",0);case s:return $(X+"Minutes",1);case a:return $(X+"Seconds",2);case n:return $(X+"Milliseconds",3);default:return this.clone()}},L.endOf=function(_){return this.startOf(_,!1)},L.$set=function(_,I){var D,P=R.p(_),O="set"+(this.$u?"UTC":""),F=(D={},D[o]=O+"Date",D[f]=O+"Date",D[u]=O+"Month",D[d]=O+"FullYear",D[s]=O+"Hours",D[a]=O+"Minutes",D[n]=O+"Seconds",D[i]=O+"Milliseconds",D)[P],$=P===o?this.$D+(I-this.$W):I;if(P===u||P===d){var B=this.clone().set(f,1);B.$d[F]($),B.init(),this.$d=B.set(f,Math.min(this.$D,B.daysInMonth())).$d}else F&&this.$d[F]($);return this.init(),this},L.set=function(_,I){return this.clone().$set(_,I)},L.get=function(_){return this[R.p(_)]()},L.add=function(_,I){var D,P=this;_=Number(_);var O=R.p(I),F=function(G){var H=S(P);return R.w(H.date(H.date()+Math.round(G*_)),P)};if(O===u)return this.set(u,this.$M+_);if(O===d)return this.set(d,this.$y+_);if(O===o)return F(1);if(O===l)return F(7);var $=(D={},D[a]=e,D[s]=r,D[n]=t,D)[O]||1,B=this.$d.getTime()+_*$;return R.w(B,this)},L.subtract=function(_,I){return this.add(-1*_,I)},L.format=function(_){var I=this,D=this.$locale();if(!this.isValid())return D.invalidDate||p;var P=_||"YYYY-MM-DDTHH:mm:ssZ",O=R.z(this),F=this.$H,$=this.$m,B=this.$M,G=D.weekdays,H=D.months,X=D.meridiem,U=function(se,J,te,re){return se&&(se[J]||se(I,P))||te[J].slice(0,re)},Z=function(se){return R.s(F%12||12,se,"0")},Y=X||function(se,J,te){var re=se<12?"AM":"PM";return te?re.toLowerCase():re};return P.replace(m,(function(se,J){return J||(function(te){switch(te){case"YY":return String(I.$y).slice(-2);case"YYYY":return R.s(I.$y,4,"0");case"M":return B+1;case"MM":return R.s(B+1,2,"0");case"MMM":return U(D.monthsShort,B,H,3);case"MMMM":return U(H,B);case"D":return I.$D;case"DD":return R.s(I.$D,2,"0");case"d":return String(I.$W);case"dd":return U(D.weekdaysMin,I.$W,G,2);case"ddd":return U(D.weekdaysShort,I.$W,G,3);case"dddd":return G[I.$W];case"H":return String(F);case"HH":return R.s(F,2,"0");case"h":return Z(1);case"hh":return Z(2);case"a":return Y(F,$,!0);case"A":return Y(F,$,!1);case"m":return String($);case"mm":return R.s($,2,"0");case"s":return String(I.$s);case"ss":return R.s(I.$s,2,"0");case"SSS":return R.s(I.$ms,3,"0");case"Z":return O}return null})(se)||O.replace(":","")}))},L.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},L.diff=function(_,I,D){var P,O=this,F=R.p(I),$=S(_),B=($.utcOffset()-this.utcOffset())*e,G=this-$,H=function(){return R.m(O,$)};switch(F){case d:P=H()/12;break;case u:P=H();break;case h:P=H()/3;break;case l:P=(G-B)/6048e5;break;case o:P=(G-B)/864e5;break;case s:P=G/r;break;case a:P=G/e;break;case n:P=G/t;break;default:P=G}return D?P:R.a(P)},L.daysInMonth=function(){return this.endOf(u).$D},L.$locale=function(){return C[this.$L]},L.locale=function(_,I){if(!_)return this.$L;var D=this.clone(),P=E(_,I,!0);return P&&(D.$L=P),D},L.clone=function(){return R.w(this.$d,this)},L.toDate=function(){return new Date(this.valueOf())},L.toJSON=function(){return this.isValid()?this.toISOString():null},L.toISOString=function(){return this.$d.toISOString()},L.toString=function(){return this.$d.toUTCString()},A})(),N=M.prototype;return S.prototype=N,[["$ms",i],["$s",n],["$m",a],["$H",s],["$W",o],["$M",u],["$y",d],["$D",f]].forEach((function(A){N[A[1]]=function(L){return this.$g(L,A[0],A[1])}})),S.extend=function(A,L){return A.$i||(A(L,M,S),A.$i=!0),S},S.locale=E,S.isDayjs=w,S.unix=function(A){return S(1e3*A)},S.en=C[T],S.Ls=C,S.p={},S}))});var yW,mW,x,bd,nh,Q,Kv,al,ir=z(()=>{yW=Da(_k(),1),mW=Object.defineProperty,x=(t,e)=>mW(t,"name",{value:e,configurable:!0}),bd=(t,e)=>{for(var r in e)mW(t,r,{get:e[r],enumerable:!0})},nh={trace:0,debug:1,info:2,warn:3,error:4,fatal:5},Q={trace:x((...t)=>{},"trace"),debug:x((...t)=>{},"debug"),info:x((...t)=>{},"info"),warn:x((...t)=>{},"warn"),error:x((...t)=>{},"error"),fatal:x((...t)=>{},"fatal")},Kv=x(function(t="fatal"){let e=nh.fatal;typeof t=="string"?t.toLowerCase()in nh&&(e=nh[t]):typeof t=="number"&&(e=t),Q.trace=()=>{},Q.debug=()=>{},Q.info=()=>{},Q.warn=()=>{},Q.error=()=>{},Q.fatal=()=>{},e<=nh.fatal&&(Q.fatal=console.error?console.error.bind(console,al("FATAL"),"color: orange"):console.log.bind(console,"\x1B[35m",al("FATAL"))),e<=nh.error&&(Q.error=console.error?console.error.bind(console,al("ERROR"),"color: orange"):console.log.bind(console,"\x1B[31m",al("ERROR"))),e<=nh.warn&&(Q.warn=console.warn?console.warn.bind(console,al("WARN"),"color: orange"):console.log.bind(console,"\x1B[33m",al("WARN"))),e<=nh.info&&(Q.info=console.info?console.info.bind(console,al("INFO"),"color: lightblue"):console.log.bind(console,"\x1B[34m",al("INFO"))),e<=nh.debug&&(Q.debug=console.debug?console.debug.bind(console,al("DEBUG"),"color: lightgreen"):console.log.bind(console,"\x1B[32m",al("DEBUG"))),e<=nh.trace&&(Q.trace=console.debug?console.debug.bind(console,al("TRACE"),"color: lightgreen"):console.log.bind(console,"\x1B[32m",al("TRACE")))},"setLogLevel"),al=x(t=>`%c${(0,yW.default)().format("ss.SSS")} : ${t} : `,"format")});var Lk,vW,xW=z(()=>{Lk={min:{r:0,g:0,b:0,s:0,l:0,a:0},max:{r:255,g:255,b:255,h:360,s:100,l:100,a:1},clamp:{r:t=>t>=255?255:t<0?0:t,g:t=>t>=255?255:t<0?0:t,b:t=>t>=255?255:t<0?0:t,h:t=>t%360,s:t=>t>=100?100:t<0?0:t,l:t=>t>=100?100:t<0?0:t,a:t=>t>=1?1:t<0?0:t},toLinear:t=>{let e=t/255;return t>.03928?Math.pow((e+.055)/1.055,2.4):e/12.92},hue2rgb:(t,e,r)=>(r<0&&(r+=1),r>1&&(r-=1),r<.16666666666666666?t+(e-t)*6*r:r<.5?e:r<.6666666666666666?t+(e-t)*(.6666666666666666-r)*6:t),hsl2rgb:({h:t,s:e,l:r},i)=>{if(!e)return r*2.55;t/=360,e/=100,r/=100;let n=r<.5?r*(1+e):r+e-r*e,a=2*r-n;switch(i){case"r":return Lk.hue2rgb(a,n,t+.3333333333333333)*255;case"g":return Lk.hue2rgb(a,n,t)*255;case"b":return Lk.hue2rgb(a,n,t-.3333333333333333)*255}},rgb2hsl:({r:t,g:e,b:r},i)=>{t/=255,e/=255,r/=255;let n=Math.max(t,e,r),a=Math.min(t,e,r),s=(n+a)/2;if(i==="l")return s*100;if(n===a)return 0;let o=n-a,l=s>.5?o/(2-n-a):o/(n+a);if(i==="s")return l*100;switch(n){case t:return((e-r)/o+(e<r?6:0))*60;case e:return((r-t)/o+2)*60;case r:return((t-e)/o+4)*60;default:return-1}}},vW=Lk});var eSe,bW,TW=z(()=>{eSe={clamp:(t,e,r)=>e>r?Math.min(e,Math.max(r,t)):Math.min(r,Math.max(e,t)),round:t=>Math.round(t*1e10)/1e10},bW=eSe});var tSe,kW,wW=z(()=>{tSe={dec2hex:t=>{let e=Math.round(t).toString(16);return e.length>1?e:`0${e}`}},kW=tSe});var rSe,Kt,Bc=z(()=>{xW();TW();wW();rSe={channel:vW,lang:bW,unit:kW},Kt=rSe});var ah,Qn,Zv=z(()=>{Bc();ah={};for(let t=0;t<=255;t++)ah[t]=Kt.unit.dec2hex(t);Qn={ALL:0,RGB:1,HSL:2}});var N_,CW,EW=z(()=>{Zv();N_=class{constructor(){this.type=Qn.ALL}get(){return this.type}set(e){if(this.type&&this.type!==e)throw new Error("Cannot change both RGB and HSL channels at the same time");this.type=e}reset(){this.type=Qn.ALL}is(e){return this.type===e}},CW=N_});var O_,SW,AW=z(()=>{Bc();EW();Zv();O_=class{constructor(e,r){this.color=r,this.changed=!1,this.data=e,this.type=new CW}set(e,r){return this.color=r,this.changed=!1,this.data=e,this.type.type=Qn.ALL,this}_ensureHSL(){let e=this.data,{h:r,s:i,l:n}=e;r===void 0&&(e.h=Kt.channel.rgb2hsl(e,"h")),i===void 0&&(e.s=Kt.channel.rgb2hsl(e,"s")),n===void 0&&(e.l=Kt.channel.rgb2hsl(e,"l"))}_ensureRGB(){let e=this.data,{r,g:i,b:n}=e;r===void 0&&(e.r=Kt.channel.hsl2rgb(e,"r")),i===void 0&&(e.g=Kt.channel.hsl2rgb(e,"g")),n===void 0&&(e.b=Kt.channel.hsl2rgb(e,"b"))}get r(){let e=this.data,r=e.r;return!this.type.is(Qn.HSL)&&r!==void 0?r:(this._ensureHSL(),Kt.channel.hsl2rgb(e,"r"))}get g(){let e=this.data,r=e.g;return!this.type.is(Qn.HSL)&&r!==void 0?r:(this._ensureHSL(),Kt.channel.hsl2rgb(e,"g"))}get b(){let e=this.data,r=e.b;return!this.type.is(Qn.HSL)&&r!==void 0?r:(this._ensureHSL(),Kt.channel.hsl2rgb(e,"b"))}get h(){let e=this.data,r=e.h;return!this.type.is(Qn.RGB)&&r!==void 0?r:(this._ensureRGB(),Kt.channel.rgb2hsl(e,"h"))}get s(){let e=this.data,r=e.s;return!this.type.is(Qn.RGB)&&r!==void 0?r:(this._ensureRGB(),Kt.channel.rgb2hsl(e,"s"))}get l(){let e=this.data,r=e.l;return!this.type.is(Qn.RGB)&&r!==void 0?r:(this._ensureRGB(),Kt.channel.rgb2hsl(e,"l"))}get a(){return this.data.a}set r(e){this.type.set(Qn.RGB),this.changed=!0,this.data.r=e}set g(e){this.type.set(Qn.RGB),this.changed=!0,this.data.g=e}set b(e){this.type.set(Qn.RGB),this.changed=!0,this.data.b=e}set h(e){this.type.set(Qn.HSL),this.changed=!0,this.data.h=e}set s(e){this.type.set(Qn.HSL),this.changed=!0,this.data.s=e}set l(e){this.type.set(Qn.HSL),this.changed=!0,this.data.l=e}set a(e){this.changed=!0,this.data.a=e}},SW=O_});var iSe,Td,Qv=z(()=>{AW();iSe=new SW({r:0,g:0,b:0,a:0},"transparent"),Td=iSe});var _W,Sp,P_=z(()=>{Qv();Zv();_W={re:/^#((?:[a-f0-9]{2}){2,4}|[a-f0-9]{3})$/i,parse:t=>{if(t.charCodeAt(0)!==35)return;let e=t.match(_W.re);if(!e)return;let r=e[1],i=parseInt(r,16),n=r.length,a=n%4===0,s=n>4,o=s?1:17,l=s?8:4,u=a?0:-1,h=s?255:15;return Td.set({r:(i>>l*(u+3)&h)*o,g:(i>>l*(u+2)&h)*o,b:(i>>l*(u+1)&h)*o,a:a?(i&h)*o/255:1},t)},stringify:t=>{let{r:e,g:r,b:i,a:n}=t;return n<1?`#${ah[Math.round(e)]}${ah[Math.round(r)]}${ah[Math.round(i)]}${ah[Math.round(n*255)]}`:`#${ah[Math.round(e)]}${ah[Math.round(r)]}${ah[Math.round(i)]}`}},Sp=_W});var Rk,Jv,LW=z(()=>{Bc();Qv();Rk={re:/^hsla?\(\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?(?:deg|grad|rad|turn)?)\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?%)\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?%)(?:\s*?(?:,|\/)\s*?\+?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?(%)?))?\s*?\)$/i,hueRe:/^(.+?)(deg|grad|rad|turn)$/i,_hue2deg:t=>{let e=t.match(Rk.hueRe);if(e){let[,r,i]=e;switch(i){case"grad":return Kt.channel.clamp.h(parseFloat(r)*.9);case"rad":return Kt.channel.clamp.h(parseFloat(r)*180/Math.PI);case"turn":return Kt.channel.clamp.h(parseFloat(r)*360)}}return Kt.channel.clamp.h(parseFloat(t))},parse:t=>{let e=t.charCodeAt(0);if(e!==104&&e!==72)return;let r=t.match(Rk.re);if(!r)return;let[,i,n,a,s,o]=r;return Td.set({h:Rk._hue2deg(i),s:Kt.channel.clamp.s(parseFloat(n)),l:Kt.channel.clamp.l(parseFloat(a)),a:s?Kt.channel.clamp.a(o?parseFloat(s)/100:parseFloat(s)):1},t)},stringify:t=>{let{h:e,s:r,l:i,a:n}=t;return n<1?`hsla(${Kt.lang.round(e)}, ${Kt.lang.round(r)}%, ${Kt.lang.round(i)}%, ${n})`:`hsl(${Kt.lang.round(e)}, ${Kt.lang.round(r)}%, ${Kt.lang.round(i)}%)`}},Jv=Rk});var Ik,B_,RW=z(()=>{P_();Ik={colors:{aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyanaqua:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",transparent:"#00000000",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"},parse:t=>{t=t.toLowerCase();let e=Ik.colors[t];if(e)return Sp.parse(e)},stringify:t=>{let e=Sp.stringify(t);for(let r in Ik.colors)if(Ik.colors[r]===e)return r}},B_=Ik});var IW,e2,DW=z(()=>{Bc();Qv();IW={re:/^rgba?\(\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))(?:\s*?(?:,|\/)\s*?\+?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?)))?\s*?\)$/i,parse:t=>{let e=t.charCodeAt(0);if(e!==114&&e!==82)return;let r=t.match(IW.re);if(!r)return;let[,i,n,a,s,o,l,u,h]=r;return Td.set({r:Kt.channel.clamp.r(n?parseFloat(i)*2.55:parseFloat(i)),g:Kt.channel.clamp.g(s?parseFloat(a)*2.55:parseFloat(a)),b:Kt.channel.clamp.b(l?parseFloat(o)*2.55:parseFloat(o)),a:u?Kt.channel.clamp.a(h?parseFloat(u)/100:parseFloat(u)):1},t)},stringify:t=>{let{r:e,g:r,b:i,a:n}=t;return n<1?`rgba(${Kt.lang.round(e)}, ${Kt.lang.round(r)}, ${Kt.lang.round(i)}, ${Kt.lang.round(n)})`:`rgb(${Kt.lang.round(e)}, ${Kt.lang.round(r)}, ${Kt.lang.round(i)})`}},e2=IW});var nSe,Jn,sh=z(()=>{P_();LW();RW();DW();Zv();nSe={format:{keyword:B_,hex:Sp,rgb:e2,rgba:e2,hsl:Jv,hsla:Jv},parse:t=>{if(typeof t!="string")return t;let e=Sp.parse(t)||e2.parse(t)||Jv.parse(t)||B_.parse(t);if(e)return e;throw new Error(`Unsupported color format: "${t}"`)},stringify:t=>!t.changed&&t.color?t.color:t.type.is(Qn.HSL)||t.data.r===void 0?Jv.stringify(t):t.a<1||!Number.isInteger(t.r)||!Number.isInteger(t.g)||!Number.isInteger(t.b)?e2.stringify(t):Sp.stringify(t)},Jn=nSe});var aSe,Dk,F_=z(()=>{Bc();sh();aSe=(t,e)=>{let r=Jn.parse(t);for(let i in e)r[i]=Kt.channel.clamp[i](e[i]);return Jn.stringify(r)},Dk=aSe});var sSe,In,$_=z(()=>{Bc();Qv();sh();F_();sSe=(t,e,r=0,i=1)=>{if(typeof t!="number")return Dk(t,{a:e});let n=Td.set({r:Kt.channel.clamp.r(t),g:Kt.channel.clamp.g(e),b:Kt.channel.clamp.b(r),a:Kt.channel.clamp.a(i)});return Jn.stringify(n)},In=sSe});var oSe,Ap,MW=z(()=>{Bc();sh();oSe=(t,e)=>Kt.lang.round(Jn.parse(t)[e]),Ap=oSe});var lSe,NW,OW=z(()=>{Bc();sh();lSe=t=>{let{r:e,g:r,b:i}=Jn.parse(t),n=.2126*Kt.channel.toLinear(e)+.7152*Kt.channel.toLinear(r)+.0722*Kt.channel.toLinear(i);return Kt.lang.round(n)},NW=lSe});var cSe,PW,BW=z(()=>{OW();cSe=t=>NW(t)>=.5,PW=cSe});var uSe,ui,FW=z(()=>{BW();uSe=t=>!PW(t),ui=uSe});var hSe,em,Mk=z(()=>{Bc();sh();hSe=(t,e,r)=>{let i=Jn.parse(t),n=i[e],a=Kt.channel.clamp[e](n+r);return n!==a&&(i[e]=a),Jn.stringify(i)},em=hSe});var dSe,je,$W=z(()=>{Mk();dSe=(t,e)=>em(t,"l",e),je=dSe});var fSe,Ye,zW=z(()=>{Mk();fSe=(t,e)=>em(t,"l",-e),Ye=fSe});var pSe,Nk,qW=z(()=>{Mk();pSe=(t,e)=>em(t,"a",-e),Nk=pSe});var gSe,ie,GW=z(()=>{sh();F_();gSe=(t,e)=>{let r=Jn.parse(t),i={};for(let n in e)e[n]&&(i[n]=r[n]+e[n]);return Dk(t,i)},ie=gSe});var mSe,VW,WW=z(()=>{sh();$_();mSe=(t,e,r=50)=>{let{r:i,g:n,b:a,a:s}=Jn.parse(t),{r:o,g:l,b:u,a:h}=Jn.parse(e),d=r/100,f=d*2-1,p=s-h,m=((f*p===-1?f:(f+p)/(1+f*p))+1)/2,y=1-m,v=i*m+o*y,b=n*m+l*y,T=a*m+u*y,C=s*d+h*(1-d);return In(v,b,T,C)},VW=mSe});var ySe,qe,UW=z(()=>{sh();WW();ySe=(t,e=100)=>{let r=Jn.parse(t);return r.r=255-r.r,r.g=255-r.g,r.b=255-r.b,VW(r,t,e)},qe=ySe});var HW=z(()=>{$_();MW();FW();$W();zW();qW();GW();UW()});var zn=z(()=>{HW()});function ks(t){return function(e){e instanceof RegExp&&(e.lastIndex=0);for(var r=arguments.length,i=new Array(r>1?r-1:0),n=1;n<r;n++)i[n-1]=arguments[n];return Y_(t,e,i)}}function ESe(t){return function(){for(var e=arguments.length,r=new Array(e),i=0;i<e;i++)r[i]=arguments[i];return X_(t,r)}}function Vr(t,e){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Pk;YW&&YW(t,null);let i=e.length;for(;i--;){let n=e[i];if(typeof n=="string"){let a=r(n);a!==n&&(vSe(e)||(e[i]=a),n=a)}t[n]=!0}return t}function SSe(t){for(let e=0;e<t.length;e++)jl(t,e)||(t[e]=null);return t}function Fc(t){let e=s2(null);for(let[r,i]of tU(t))jl(t,r)&&(Array.isArray(i)?e[r]=SSe(i):i&&typeof i=="object"&&i.constructor===Object?e[r]=Fc(i):e[r]=i);return e}function n2(t,e){for(;t!==null;){let i=bSe(t,e);if(i){if(i.get)return ks(i.get);if(typeof i.value=="function")return ks(i.value)}t=xSe(t)}function r(){return null}return r}function nU(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:BSe(),e=dt=>nU(dt);if(e.version="3.4.0",e.removed=[],!t||!t.document||t.document.nodeType!==a2.document||!t.Element)return e.isSupported=!1,e;let{document:r}=t,i=r,n=i.currentScript,{DocumentFragment:a,HTMLTemplateElement:s,Node:o,Element:l,NodeFilter:u,NamedNodeMap:h=t.NamedNodeMap||t.MozNamedAttrMap,HTMLFormElement:d,DOMParser:f,trustedTypes:p}=t,g=l.prototype,m=n2(g,"cloneNode"),y=n2(g,"remove"),v=n2(g,"nextSibling"),b=n2(g,"childNodes"),T=n2(g,"parentNode");if(typeof s=="function"){let dt=r.createElement("template");dt.content&&dt.content.ownerDocument&&(r=dt.content.ownerDocument)}let C,k="",{implementation:w,createNodeIterator:E,createDocumentFragment:S,getElementsByTagName:R}=r,{importNode:M}=i,N=eU();e.isSupported=typeof tU=="function"&&typeof T=="function"&&w&&w.createHTMLDocument!==void 0;let{MUSTACHE_EXPR:A,ERB_EXPR:L,TMPLIT_EXPR:_,DATA_ATTR:I,ARIA_ATTR:D,IS_SCRIPT_OR_DATA:P,ATTR_WHITESPACE:O,CUSTOM_ELEMENT:F}=JW,{IS_ALLOWED_URI:$}=JW,B=null,G=Vr({},[...jW,...V_,...W_,...U_,...KW]),H=null,X=Vr({},[...ZW,...H_,...QW,...Ok]),U=Object.seal(s2(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),Z=null,Y=null,se=Object.seal(s2(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}})),J=!0,te=!0,re=!1,ee=!0,xe=!1,pe=!0,Se=!1,Ne=!1,Ce=!1,we=!1,Le=!1,$e=!1,fe=!0,Qe=!1,Te="user-content-",Fe=!0,Ue=!1,Ge={},Me=null,He=Vr({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),K=null,oe=Vr({},["audio","video","img","source","image","track"]),W=null,ue=Vr({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),q="http://www.w3.org/1998/Math/MathML",ae="http://www.w3.org/2000/svg",le="http://www.w3.org/1999/xhtml",ke=le,ge=!1,me=null,Ie=Vr({},[q,ae,le],q_),ye=Vr({},["mi","mo","mn","ms","mtext"]),Oe=Vr({},["annotation-xml"]),We=Vr({},["title","style","font","a","script"]),Be=null,Ke=["application/xhtml+xml","text/html"],ce="text/html",et=null,de=null,at=r.createElement("form"),Ct=function(De){return De instanceof RegExp||De instanceof Function},_t=function(){let De=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(de&&de===De)){if((!De||typeof De!="object")&&(De={}),De=Fc(De),Be=Ke.indexOf(De.PARSER_MEDIA_TYPE)===-1?ce:De.PARSER_MEDIA_TYPE,et=Be==="application/xhtml+xml"?q_:Pk,B=jl(De,"ALLOWED_TAGS")?Vr({},De.ALLOWED_TAGS,et):G,H=jl(De,"ALLOWED_ATTR")?Vr({},De.ALLOWED_ATTR,et):X,me=jl(De,"ALLOWED_NAMESPACES")?Vr({},De.ALLOWED_NAMESPACES,q_):Ie,W=jl(De,"ADD_URI_SAFE_ATTR")?Vr(Fc(ue),De.ADD_URI_SAFE_ATTR,et):ue,K=jl(De,"ADD_DATA_URI_TAGS")?Vr(Fc(oe),De.ADD_DATA_URI_TAGS,et):oe,Me=jl(De,"FORBID_CONTENTS")?Vr({},De.FORBID_CONTENTS,et):He,Z=jl(De,"FORBID_TAGS")?Vr({},De.FORBID_TAGS,et):Fc({}),Y=jl(De,"FORBID_ATTR")?Vr({},De.FORBID_ATTR,et):Fc({}),Ge=jl(De,"USE_PROFILES")?De.USE_PROFILES:!1,J=De.ALLOW_ARIA_ATTR!==!1,te=De.ALLOW_DATA_ATTR!==!1,re=De.ALLOW_UNKNOWN_PROTOCOLS||!1,ee=De.ALLOW_SELF_CLOSE_IN_ATTR!==!1,xe=De.SAFE_FOR_TEMPLATES||!1,pe=De.SAFE_FOR_XML!==!1,Se=De.WHOLE_DOCUMENT||!1,we=De.RETURN_DOM||!1,Le=De.RETURN_DOM_FRAGMENT||!1,$e=De.RETURN_TRUSTED_TYPE||!1,Ce=De.FORCE_BODY||!1,fe=De.SANITIZE_DOM!==!1,Qe=De.SANITIZE_NAMED_PROPS||!1,Fe=De.KEEP_CONTENT!==!1,Ue=De.IN_PLACE||!1,$=De.ALLOWED_URI_REGEXP||rU,ke=De.NAMESPACE||le,ye=De.MATHML_TEXT_INTEGRATION_POINTS||ye,Oe=De.HTML_INTEGRATION_POINTS||Oe,U=De.CUSTOM_ELEMENT_HANDLING||s2(null),De.CUSTOM_ELEMENT_HANDLING&&Ct(De.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(U.tagNameCheck=De.CUSTOM_ELEMENT_HANDLING.tagNameCheck),De.CUSTOM_ELEMENT_HANDLING&&Ct(De.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(U.attributeNameCheck=De.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),De.CUSTOM_ELEMENT_HANDLING&&typeof De.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(U.allowCustomizedBuiltInElements=De.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),xe&&(te=!1),Le&&(we=!0),Ge&&(B=Vr({},KW),H=s2(null),Ge.html===!0&&(Vr(B,jW),Vr(H,ZW)),Ge.svg===!0&&(Vr(B,V_),Vr(H,H_),Vr(H,Ok)),Ge.svgFilters===!0&&(Vr(B,W_),Vr(H,H_),Vr(H,Ok)),Ge.mathMl===!0&&(Vr(B,U_),Vr(H,QW),Vr(H,Ok))),se.tagCheck=null,se.attributeCheck=null,De.ADD_TAGS&&(typeof De.ADD_TAGS=="function"?se.tagCheck=De.ADD_TAGS:(B===G&&(B=Fc(B)),Vr(B,De.ADD_TAGS,et))),De.ADD_ATTR&&(typeof De.ADD_ATTR=="function"?se.attributeCheck=De.ADD_ATTR:(H===X&&(H=Fc(H)),Vr(H,De.ADD_ATTR,et))),De.ADD_URI_SAFE_ATTR&&Vr(W,De.ADD_URI_SAFE_ATTR,et),De.FORBID_CONTENTS&&(Me===He&&(Me=Fc(Me)),Vr(Me,De.FORBID_CONTENTS,et)),De.ADD_FORBID_CONTENTS&&(Me===He&&(Me=Fc(Me)),Vr(Me,De.ADD_FORBID_CONTENTS,et)),Fe&&(B["#text"]=!0),Se&&Vr(B,["html","head","body"]),B.table&&(Vr(B,["tbody"]),delete Z.tbody),De.TRUSTED_TYPES_POLICY){if(typeof De.TRUSTED_TYPES_POLICY.createHTML!="function")throw i2('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof De.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw i2('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');C=De.TRUSTED_TYPES_POLICY,k=C.createHTML("")}else C===void 0&&(C=FSe(p,n)),C!==null&&typeof k=="string"&&(k=C.createHTML(""));Ts&&Ts(De),de=De}},xt=Vr({},[...V_,...W_,...ASe]),Et=Vr({},[...U_,..._Se]),rt=function(De){let nt=T(De);(!nt||!nt.tagName)&&(nt={namespaceURI:ke,tagName:"template"});let bt=Pk(De.tagName),Mr=Pk(nt.tagName);return me[De.namespaceURI]?De.namespaceURI===ae?nt.namespaceURI===le?bt==="svg":nt.namespaceURI===q?bt==="svg"&&(Mr==="annotation-xml"||ye[Mr]):!!xt[bt]:De.namespaceURI===q?nt.namespaceURI===le?bt==="math":nt.namespaceURI===ae?bt==="math"&&Oe[Mr]:!!Et[bt]:De.namespaceURI===le?nt.namespaceURI===ae&&!Oe[Mr]||nt.namespaceURI===q&&!ye[Mr]?!1:!Et[bt]&&(We[bt]||!xt[bt]):!!(Be==="application/xhtml+xml"&&me[De.namespaceURI]):!1},it=function(De){r2(e.removed,{element:De});try{T(De).removeChild(De)}catch{y(De)}},wt=function(De,nt){try{r2(e.removed,{attribute:nt.getAttributeNode(De),from:nt})}catch{r2(e.removed,{attribute:null,from:nt})}if(nt.removeAttribute(De),De==="is")if(we||Le)try{it(nt)}catch{}else try{nt.setAttribute(De,"")}catch{}},gt=function(De){let nt=null,bt=null;if(Ce)De="<remove></remove>"+De;else{let ii=G_(De,/^[\r\n\t ]+/);bt=ii&&ii[0]}Be==="application/xhtml+xml"&&ke===le&&(De='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+De+"</body></html>");let Mr=C?C.createHTML(De):De;if(ke===le)try{nt=new f().parseFromString(Mr,Be)}catch{}if(!nt||!nt.documentElement){nt=w.createDocument(ke,"template",null);try{nt.documentElement.innerHTML=ge?k:Mr}catch{}}let jr=nt.body||nt.documentElement;return De&&bt&&jr.insertBefore(r.createTextNode(bt),jr.childNodes[0]||null),ke===le?R.call(nt,Se?"html":"body")[0]:Se?nt.documentElement:jr},ht=function(De){return E.call(De.ownerDocument||De,De,u.SHOW_ELEMENT|u.SHOW_COMMENT|u.SHOW_TEXT|u.SHOW_PROCESSING_INSTRUCTION|u.SHOW_CDATA_SECTION,null)},Gt=function(De){return De instanceof d&&(typeof De.nodeName!="string"||typeof De.textContent!="string"||typeof De.removeChild!="function"||!(De.attributes instanceof h)||typeof De.removeAttribute!="function"||typeof De.setAttribute!="function"||typeof De.namespaceURI!="string"||typeof De.insertBefore!="function"||typeof De.hasChildNodes!="function")},er=function(De){return typeof o=="function"&&De instanceof o};function Vt(dt,De,nt){t2(dt,bt=>{bt.call(e,De,nt,de)})}let yr=function(De){let nt=null;if(Vt(N.beforeSanitizeElements,De,null),Gt(De))return it(De),!0;let bt=et(De.nodeName);if(Vt(N.uponSanitizeElement,De,{tagName:bt,allowedTags:B}),pe&&De.hasChildNodes()&&!er(De.firstElementChild)&&bs(/<[/\w!]/g,De.innerHTML)&&bs(/<[/\w!]/g,De.textContent)||pe&&De.namespaceURI===le&&bt==="style"&&er(De.firstElementChild)||De.nodeType===a2.progressingInstruction||pe&&De.nodeType===a2.comment&&bs(/<[/\w]/g,De.data))return it(De),!0;if(Z[bt]||!(se.tagCheck instanceof Function&&se.tagCheck(bt))&&!B[bt]){if(!Z[bt]&&Ht(bt)&&(U.tagNameCheck instanceof RegExp&&bs(U.tagNameCheck,bt)||U.tagNameCheck instanceof Function&&U.tagNameCheck(bt)))return!1;if(Fe&&!Me[bt]){let Mr=T(De)||De.parentNode,jr=b(De)||De.childNodes;if(jr&&Mr){let ii=jr.length;for(let Sr=ii-1;Sr>=0;--Sr){let dn=m(jr[Sr],!0);dn.__removalCount=(De.__removalCount||0)+1,Mr.insertBefore(dn,v(De))}}}return it(De),!0}return De instanceof l&&!rt(De)||(bt==="noscript"||bt==="noembed"||bt==="noframes")&&bs(/<\/no(script|embed|frames)/i,De.innerHTML)?(it(De),!0):(xe&&De.nodeType===a2.text&&(nt=De.textContent,t2([A,L,_],Mr=>{nt=tm(nt,Mr," ")}),De.textContent!==nt&&(r2(e.removed,{element:De.cloneNode()}),De.textContent=nt)),Vt(N.afterSanitizeElements,De,null),!1)},tr=function(De,nt,bt){if(Y[nt]||fe&&(nt==="id"||nt==="name")&&(bt in r||bt in at))return!1;if(!(te&&!Y[nt]&&bs(I,nt))){if(!(J&&bs(D,nt))){if(!(se.attributeCheck instanceof Function&&se.attributeCheck(nt,De))){if(!H[nt]||Y[nt]){if(!(Ht(De)&&(U.tagNameCheck instanceof RegExp&&bs(U.tagNameCheck,De)||U.tagNameCheck instanceof Function&&U.tagNameCheck(De))&&(U.attributeNameCheck instanceof RegExp&&bs(U.attributeNameCheck,nt)||U.attributeNameCheck instanceof Function&&U.attributeNameCheck(nt,De))||nt==="is"&&U.allowCustomizedBuiltInElements&&(U.tagNameCheck instanceof RegExp&&bs(U.tagNameCheck,bt)||U.tagNameCheck instanceof Function&&U.tagNameCheck(bt))))return!1}else if(!W[nt]){if(!bs($,tm(bt,O,""))){if(!((nt==="src"||nt==="xlink:href"||nt==="href")&&De!=="script"&&wSe(bt,"data:")===0&&K[De])){if(!(re&&!bs(P,tm(bt,O,"")))){if(bt)return!1}}}}}}}return!0},Ht=function(De){return De!=="annotation-xml"&&G_(De,F)},rr=function(De){Vt(N.beforeSanitizeAttributes,De,null);let{attributes:nt}=De;if(!nt||Gt(De))return;let bt={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:H,forceKeepAttr:void 0},Mr=nt.length;for(;Mr--;){let jr=nt[Mr],{name:ii,namespaceURI:Sr,value:dn}=jr,Zn=et(ii),yi=dn,Lt=ii==="value"?yi:CSe(yi);if(bt.attrName=Zn,bt.attrValue=Lt,bt.keepAttr=!0,bt.forceKeepAttr=void 0,Vt(N.uponSanitizeAttribute,De,bt),Lt=bt.attrValue,Qe&&(Zn==="id"||Zn==="name")&&(wt(ii,De),Lt=Te+Lt),pe&&bs(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,Lt)){wt(ii,De);continue}if(Zn==="attributename"&&G_(Lt,"href")){wt(ii,De);continue}if(bt.forceKeepAttr)continue;if(!bt.keepAttr){wt(ii,De);continue}if(!ee&&bs(/\/>/i,Lt)){wt(ii,De);continue}xe&&t2([A,L,_],Bt=>{Lt=tm(Lt,Bt," ")});let mt=et(De.nodeName);if(!tr(mt,Zn,Lt)){wt(ii,De);continue}if(C&&typeof p=="object"&&typeof p.getAttributeType=="function"&&!Sr)switch(p.getAttributeType(mt,Zn)){case"TrustedHTML":{Lt=C.createHTML(Lt);break}case"TrustedScriptURL":{Lt=C.createScriptURL(Lt);break}}if(Lt!==yi)try{Sr?De.setAttributeNS(Sr,ii,Lt):De.setAttribute(ii,Lt),Gt(De)?it(De):XW(e.removed)}catch{wt(ii,De)}}Vt(N.afterSanitizeAttributes,De,null)},mi=function(De){let nt=null,bt=ht(De);for(Vt(N.beforeSanitizeShadowDOM,De,null);nt=bt.nextNode();)Vt(N.uponSanitizeShadowNode,nt,null),yr(nt),rr(nt),nt.content instanceof a&&mi(nt.content);Vt(N.afterSanitizeShadowDOM,De,null)};return e.sanitize=function(dt){let De=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},nt=null,bt=null,Mr=null,jr=null;if(ge=!dt,ge&&(dt="<!-->"),typeof dt!="string"&&!er(dt))if(typeof dt.toString=="function"){if(dt=dt.toString(),typeof dt!="string")throw i2("dirty is not a string, aborting")}else throw i2("toString is not a function");if(!e.isSupported)return dt;if(Ne||_t(De),e.removed=[],typeof dt=="string"&&(Ue=!1),Ue){if(dt.nodeName){let dn=et(dt.nodeName);if(!B[dn]||Z[dn])throw i2("root node is forbidden and cannot be sanitized in-place")}}else if(dt instanceof o)nt=gt("<!---->"),bt=nt.ownerDocument.importNode(dt,!0),bt.nodeType===a2.element&&bt.nodeName==="BODY"||bt.nodeName==="HTML"?nt=bt:nt.appendChild(bt);else{if(!we&&!xe&&!Se&&dt.indexOf("<")===-1)return C&&$e?C.createHTML(dt):dt;if(nt=gt(dt),!nt)return we?null:$e?k:""}nt&&Ce&&it(nt.firstChild);let ii=ht(Ue?dt:nt);for(;Mr=ii.nextNode();)yr(Mr),rr(Mr),Mr.content instanceof a&&mi(Mr.content);if(Ue)return dt;if(we){if(xe){nt.normalize();let dn=nt.innerHTML;t2([A,L,_],Zn=>{dn=tm(dn,Zn," ")}),nt.innerHTML=dn}if(Le)for(jr=S.call(nt.ownerDocument);nt.firstChild;)jr.appendChild(nt.firstChild);else jr=nt;return(H.shadowroot||H.shadowrootmode)&&(jr=M.call(i,jr,!0)),jr}let Sr=Se?nt.outerHTML:nt.innerHTML;return Se&&B["!doctype"]&&nt.ownerDocument&&nt.ownerDocument.doctype&&nt.ownerDocument.doctype.name&&bs(iU,nt.ownerDocument.doctype.name)&&(Sr="<!DOCTYPE "+nt.ownerDocument.doctype.name+`>
`+Sr),xe&&t2([A,L,_],dn=>{Sr=tm(Sr,dn," ")}),C&&$e?C.createHTML(Sr):Sr},e.setConfig=function(){let dt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};_t(dt),Ne=!0},e.clearConfig=function(){de=null,Ne=!1},e.isValidAttribute=function(dt,De,nt){de||_t({});let bt=et(dt),Mr=et(De);return tr(bt,Mr,nt)},e.addHook=function(dt,De){typeof De=="function"&&r2(N[dt],De)},e.removeHook=function(dt,De){if(De!==void 0){let nt=TSe(N[dt],De);return nt===-1?void 0:kSe(N[dt],nt,1)[0]}return XW(N[dt])},e.removeHooks=function(dt){N[dt]=[]},e.removeAllHooks=function(){N=eU()},e}var tU,YW,vSe,xSe,bSe,Ts,sl,s2,Y_,X_,t2,TSe,XW,r2,kSe,Pk,q_,G_,tm,wSe,CSe,jl,bs,i2,jW,V_,W_,ASe,U_,_Se,KW,ZW,H_,QW,Ok,LSe,RSe,ISe,DSe,MSe,rU,NSe,OSe,iU,PSe,JW,a2,BSe,FSe,eU,ol,o2=z(()=>{({entries:tU,setPrototypeOf:YW,isFrozen:vSe,getPrototypeOf:xSe,getOwnPropertyDescriptor:bSe}=Object),{freeze:Ts,seal:sl,create:s2}=Object,{apply:Y_,construct:X_}=typeof Reflect<"u"&&Reflect;Ts||(Ts=function(e){return e});sl||(sl=function(e){return e});Y_||(Y_=function(e,r){for(var i=arguments.length,n=new Array(i>2?i-2:0),a=2;a<i;a++)n[a-2]=arguments[a];return e.apply(r,n)});X_||(X_=function(e){for(var r=arguments.length,i=new Array(r>1?r-1:0),n=1;n<r;n++)i[n-1]=arguments[n];return new e(...i)});t2=ks(Array.prototype.forEach),TSe=ks(Array.prototype.lastIndexOf),XW=ks(Array.prototype.pop),r2=ks(Array.prototype.push),kSe=ks(Array.prototype.splice),Pk=ks(String.prototype.toLowerCase),q_=ks(String.prototype.toString),G_=ks(String.prototype.match),tm=ks(String.prototype.replace),wSe=ks(String.prototype.indexOf),CSe=ks(String.prototype.trim),jl=ks(Object.prototype.hasOwnProperty),bs=ks(RegExp.prototype.test),i2=ESe(TypeError);jW=Ts(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),V_=Ts(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),W_=Ts(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),ASe=Ts(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),U_=Ts(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),_Se=Ts(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),KW=Ts(["#text"]),ZW=Ts(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),H_=Ts(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),QW=Ts(["accent","accentunder","align","bevelled","close","columnalign","columnlines","columnspacing","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lquote","lspace","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),Ok=Ts(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),LSe=sl(/\{\{[\w\W]*|[\w\W]*\}\}/gm),RSe=sl(/<%[\w\W]*|[\w\W]*%>/gm),ISe=sl(/\$\{[\w\W]*/gm),DSe=sl(/^data-[\-\w.\u00B7-\uFFFF]+$/),MSe=sl(/^aria-[\-\w]+$/),rU=sl(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),NSe=sl(/^(?:\w+script|data):/i),OSe=sl(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),iU=sl(/^html$/i),PSe=sl(/^[a-z][.\w]*(-[.\w]+)+$/i),JW=Object.freeze({__proto__:null,ARIA_ATTR:MSe,ATTR_WHITESPACE:OSe,CUSTOM_ELEMENT:PSe,DATA_ATTR:DSe,DOCTYPE_NAME:iU,ERB_EXPR:RSe,IS_ALLOWED_URI:rU,IS_SCRIPT_OR_DATA:NSe,MUSTACHE_EXPR:LSe,TMPLIT_EXPR:ISe}),a2={element:1,text:3,progressingInstruction:7,comment:8,document:9},BSe=function(){return typeof window>"u"?null:window},FSe=function(e,r){if(typeof e!="object"||typeof e.createPolicy!="function")return null;let i=null,n="data-tt-policy-suffix";r&&r.hasAttribute(n)&&(i=r.getAttribute(n));let a="dompurify"+(i?"#"+i:"");try{return e.createPolicy(a,{createHTML(s){return s},createScriptURL(s){return s}})}catch{return console.warn("TrustedTypes policy "+a+" could not be created."),null}},eU=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};ol=nU()});var NH={};dr(NH,{ParseError:()=>yt,SETTINGS_SCHEMA:()=>Kk,__defineFunction:()=>Rt,__defineMacro:()=>he,__defineSymbol:()=>V,__domTree:()=>MH,__parse:()=>LH,__renderToDomTree:()=>yw,__renderToHTMLTree:()=>IH,__setFontMetrics:()=>$U,default:()=>vAe,render:()=>F8,renderToString:()=>_H,version:()=>DH});function WSe(t){if("default"in t)return t.default;var e=t.type,r=Array.isArray(e)?e[0]:e;if(typeof r!="string")return r.enum[0];switch(r){case"boolean":return!1;case"string":return"";case"number":return 0;case"object":return{}}}function ZSe(t){for(var e=0;e<c8.length;e++)for(var r=c8[e],i=0;i<r.blocks.length;i++){var n=r.blocks[i];if(t>=n[0]&&t<=n[1])return r.name}return null}function NU(t){for(var e=0;e<jk.length;e+=2)if(t>=jk[e]&&t<=jk[e+1])return!0;return!1}function h6e(t){if(t instanceof Es)return t;throw new Error("Expected symbolNode but got "+String(t)+".")}function d6e(t){if(t instanceof Sd)return t;throw new Error("Expected span<HtmlDomNode> but got "+String(t)+".")}function $U(t,e){qc[t]=e}function S8(t,e,r){if(!qc[e])throw new Error("Font metrics not found for font: "+e+".");var i=t.charCodeAt(0),n=qc[e][i];if(!n&&t[0]in sU&&(i=sU[t[0]].charCodeAt(0),n=qc[e][i]),!n&&r==="text"&&NU(i)&&(n=qc[e][77]),n)return{depth:n[0],height:n[1],italic:n[2],skew:n[3],width:n[4]}}function p6e(t){var e;if(t>=5?e=0:t>=3?e=1:e=2,!j_[e]){var r=j_[e]={cssEmPerMu:Bk.quad[e]/18};for(var i in Bk)Bk.hasOwnProperty(i)&&(r[i]=Bk[i][e])}return j_[e]}function V(t,e,r,i,n,a){Zi[t][n]={font:e,group:r,replace:i},a&&i&&(Zi[t][i]=Zi[t][n])}function Rt(t){for(var{type:e,names:r,props:i,handler:n,htmlBuilder:a,mathmlBuilder:s}=t,o={type:e,numArgs:i.numArgs,argTypes:i.argTypes,allowedInArgument:!!i.allowedInArgument,allowedInText:!!i.allowedInText,allowedInMath:i.allowedInMath===void 0?!0:i.allowedInMath,numOptionalArgs:i.numOptionalArgs||0,infix:!!i.infix,primitive:!!i.primitive,handler:n},l=0;l<r.length;++l)UU[r[l]]=o;e&&(a&&(Jk[e]=a),s&&(ew[e]=s))}function Lp(t){var{type:e,htmlBuilder:r,mathmlBuilder:i}=t;Rt({type:e,names:[],props:{numArgs:0},handler(){throw new Error("Should never be called.")},htmlBuilder:r,mathmlBuilder:i})}function Wk(t,e){var r=pt(["base"],t,e),i=pt(["strut"]);return i.style.height=kt(r.height+r.depth),r.depth&&(i.style.verticalAlign=kt(-r.depth)),r.children.unshift(i),r}function y8(t,e){var r=null;t.length===1&&t[0].type==="tag"&&(r=t[0].tag,t=t[0].body);var i=ea(t,e,"root"),n;i.length===2&&i[1].hasClass("tag")&&(n=i.pop());for(var a=[],s=[],o=0;o<i.length;o++)if(s.push(i[o]),i[o].hasClass("mbin")||i[o].hasClass("mrel")||i[o].hasClass("allowbreak")){for(var l=!1;o<i.length-1&&i[o+1].hasClass("mspace")&&!i[o+1].hasClass("newline");)o++,s.push(i[o]),i[o].hasClass("nobreak")&&(l=!0);l||(a.push(Wk(s,e)),s=[])}else i[o].hasClass("newline")&&(s.pop(),s.length>0&&(a.push(Wk(s,e)),s=[]),a.push(i[o]));s.length>0&&a.push(Wk(s,e));var u;r?(u=Wk(ea(r,e,!0),e),u.classes=["tag"],a.push(u)):n&&a.push(n);var h=pt(["katex-html"],a);if(h.setAttribute("aria-hidden","true"),u){var d=u.children[0];d.style.height=kt(h.height+h.depth),h.depth&&(d.style.verticalAlign=kt(-h.depth))}return h}function YU(t){return new Cd(t)}function Q_(t){if(!t)return!1;if(t.type==="mi"&&t.children.length===1){var e=t.children[0];return e instanceof kn&&e.text==="."}else if(t.type==="mo"&&t.children.length===1&&t.getAttribute("separator")==="true"&&t.getAttribute("lspace")==="0em"&&t.getAttribute("rspace")==="0em"){var r=t.children[0];return r instanceof kn&&r.text===","}else return!1}function uU(t,e,r,i,n){var a=Mo(t,r),s;a.length===1&&a[0]instanceof vt&&L6e.has(a[0].type)?s=a[0]:s=new vt("mrow",a);var o=new vt("annotation",[new kn(e)]);o.setAttribute("encoding","application/x-tex");var l=new vt("semantics",[s,o]),u=new vt("math",[l]);u.setAttribute("xmlns","http://www.w3.org/1998/Math/MathML"),i&&u.setAttribute("display","block");var h=n?"katex":"katex-mathml";return pt([h],[u])}function Nr(t,e){if(!t||t.type!==e)throw new Error("Expected node of type "+e+", but got "+(t?"node of type "+t.type:String(t)));return t}function uw(t){var e=hw(t);if(!e)throw new Error("Expected node of symbol group type, but got "+(t?"node of type "+t.type:String(t)));return e}function hw(t){return t&&(t.type==="atom"||m6e.hasOwnProperty(t.type))?t:null}function QU(t,e){var r=ea(t.body,e,!0);return pt([t.mclass],r,e)}function JU(t,e){var r,i=Mo(t.body,e);return t.mclass==="minner"?r=new vt("mpadded",i):t.mclass==="mord"?t.isCharacterBox?(r=i[0],r.type="mi"):r=new vt("mi",i):(t.isCharacterBox?(r=i[0],r.type="mo"):r=new vt("mo",i),t.mclass==="mbin"?(r.attributes.lspace="0.22em",r.attributes.rspace="0.22em"):t.mclass==="mpunct"?(r.attributes.lspace="0em",r.attributes.rspace="0.17em"):t.mclass==="mopen"||t.mclass==="mclose"?(r.attributes.lspace="0em",r.attributes.rspace="0em"):t.mclass==="minner"&&(r.attributes.lspace="0.0556em",r.attributes.width="+0.1111em")),r}function z6e(t,e,r){var i=F6e[t];switch(i){case"\\\\cdrightarrow":case"\\\\cdleftarrow":return r.callFunction(i,[e[0]],[e[1]]);case"\\uparrow":case"\\downarrow":{var n=r.callFunction("\\\\cdleft",[e[0]],[]),a={type:"atom",text:i,mode:"math",family:"rel"},s=r.callFunction("\\Big",[a],[]),o=r.callFunction("\\\\cdright",[e[1]],[]),l={type:"ordgroup",mode:"math",body:[n,s,o]};return r.callFunction("\\\\cdparent",[l],[])}case"\\\\cdlongequal":return r.callFunction("\\\\cdlongequal",[],[]);case"\\Vert":{var u={type:"textord",text:"\\Vert",mode:"math"};return r.callFunction("\\Big",[u],[])}default:return{type:"textord",text:" ",mode:"math"}}}function q6e(t){var e=[];for(t.gullet.beginGroup(),t.gullet.macros.set("\\cr","\\\\\\relax"),t.gullet.beginGroup();;){e.push(t.parseExpression(!1,"\\\\")),t.gullet.endGroup(),t.gullet.beginGroup();var r=t.fetch().text;if(r==="&"||r==="\