@design.estate/dees-document 1.3.1 → 1.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,103 +1,103 @@
1
- var iC=Object.create;var ha=Object.defineProperty;var Hd=Object.getOwnPropertyDescriptor;var oC=Object.getOwnPropertyNames;var sC=Object.getPrototypeOf,aC=Object.prototype.hasOwnProperty;var ma=(e=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(e,{get:(t,r)=>(typeof require<"u"?require:t)[r]}):e)(function(e){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')});var N=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),le=(e,t)=>{for(var r in t)ha(e,r,{get:t[r],enumerable:!0})},lC=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of oC(t))!aC.call(e,i)&&i!==r&&ha(e,i,{get:()=>t[i],enumerable:!(n=Hd(t,i))||n.enumerable});return e};var $e=(e,t,r)=>(r=e!=null?iC(sC(e)):{},lC(t||!e||!e.__esModule?ha(r,"default",{value:e,enumerable:!0}):r,e));var ee=(e,t,r,n)=>{for(var i=n>1?void 0:n?Hd(t,r):t,o=e.length-1,s;o>=0;o--)(s=e[o])&&(i=(n?s(t,r,i):s(i))||i);return n&&i&&ha(t,r,i),i};var Ea=N(Ca=>{"use strict";Object.defineProperty(Ca,"__esModule",{value:!0});Ca.uni=void 0;var wC=(e="uni")=>`${e}_${"xxxxxxxxxxxxxxxxxxxxxxxx".replace(/[xy]/g,t=>{let r=Math.random()*16|0;return(t==="x"?r:r&3|8).toString(16)})}`;Ca.uni=wC});var qg=N((Zc,Xc)=>{(function(e,t){typeof Zc=="object"&&typeof Xc<"u"?Xc.exports=t():typeof define=="function"&&define.amd?define(t):(e=typeof globalThis<"u"?globalThis:e||self).dayjs=t()})(Zc,function(){"use strict";var e=1e3,t=6e4,r=36e5,n="millisecond",i="second",o="minute",s="hour",a="day",l="week",u="month",c="quarter",f="year",p="date",h="Invalid Date",m=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,x=/\[([^\]]+)]|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,v={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(B){var _=["th","st","nd","rd"],I=B%100;return"["+B+(_[(I-20)%10]||_[I]||_[0])+"]"}},w=function(B,_,I){var M=String(B);return!M||M.length>=_?B:""+Array(_+1-M.length).join(I)+B},E={s:w,z:function(B){var _=-B.utcOffset(),I=Math.abs(_),M=Math.floor(I/60),F=I%60;return(_<=0?"+":"-")+w(M,2,"0")+":"+w(F,2,"0")},m:function B(_,I){if(_.date()<I.date())return-B(I,_);var M=12*(I.year()-_.year())+(I.month()-_.month()),F=_.clone().add(M,u),W=I-F<0,P=_.clone().add(M+(W?-1:1),u);return+(-(M+(I-F)/(W?F-P:P-F))||0)},a:function(B){return B<0?Math.ceil(B)||0:Math.floor(B)},p:function(B){return{M:u,y:f,w:l,d:a,D:p,h:s,m:o,s:i,ms:n,Q:c}[B]||String(B||"").toLowerCase().replace(/s$/,"")},u:function(B){return B===void 0}},b="en",z={};z[b]=v;var q="$isDayjsObject",A=function(B){return B instanceof T||!(!B||!B[q])},R=function B(_,I,M){var F;if(!_)return b;if(typeof _=="string"){var W=_.toLowerCase();z[W]&&(F=W),I&&(z[W]=I,F=W);var P=_.split("-");if(!F&&P.length>1)return B(P[0])}else{var U=_.name;z[U]=_,F=U}return!M&&F&&(b=F),F||!M&&b},V=function(B,_){if(A(B))return B.clone();var I=typeof _=="object"?_:{};return I.date=B,I.args=arguments,new T(I)},$=E;$.l=R,$.i=A,$.w=function(B,_){return V(B,{locale:_.$L,utc:_.$u,x:_.$x,$offset:_.$offset})};var T=function(){function B(I){this.$L=R(I.locale,null,!0),this.parse(I),this.$x=this.$x||I.x||{},this[q]=!0}var _=B.prototype;return _.parse=function(I){this.$d=function(M){var F=M.date,W=M.utc;if(F===null)return new Date(NaN);if($.u(F))return new Date;if(F instanceof Date)return new Date(F);if(typeof F=="string"&&!/Z$/i.test(F)){var P=F.match(m);if(P){var U=P[2]-1||0,d=(P[7]||"0").substring(0,3);return W?new Date(Date.UTC(P[1],U,P[3]||1,P[4]||0,P[5]||0,P[6]||0,d)):new Date(P[1],U,P[3]||1,P[4]||0,P[5]||0,P[6]||0,d)}}return new Date(F)}(I),this.init()},_.init=function(){var I=this.$d;this.$y=I.getFullYear(),this.$M=I.getMonth(),this.$D=I.getDate(),this.$W=I.getDay(),this.$H=I.getHours(),this.$m=I.getMinutes(),this.$s=I.getSeconds(),this.$ms=I.getMilliseconds()},_.$utils=function(){return $},_.isValid=function(){return this.$d.toString()!==h},_.isSame=function(I,M){var F=V(I);return this.startOf(M)<=F&&F<=this.endOf(M)},_.isAfter=function(I,M){return V(I)<this.startOf(M)},_.isBefore=function(I,M){return this.endOf(M)<V(I)},_.$g=function(I,M,F){return $.u(I)?this[M]:this.set(F,I)},_.unix=function(){return Math.floor(this.valueOf()/1e3)},_.valueOf=function(){return this.$d.getTime()},_.startOf=function(I,M){var F=this,W=!!$.u(M)||M,P=$.p(I),U=function(k,g){var S=$.w(F.$u?Date.UTC(F.$y,g,k):new Date(F.$y,g,k),F);return W?S:S.endOf(a)},d=function(k,g){return $.w(F.toDate()[k].apply(F.toDate("s"),(W?[0,0,0,0]:[23,59,59,999]).slice(g)),F)},G=this.$W,X=this.$M,y=this.$D,oe="set"+(this.$u?"UTC":"");switch(P){case f:return W?U(1,0):U(31,11);case u:return W?U(1,X):U(0,X+1);case l:var me=this.$locale().weekStart||0,_e=(G<me?G+7:G)-me;return U(W?y-_e:y+(6-_e),X);case a:case p:return d(oe+"Hours",0);case s:return d(oe+"Minutes",1);case o:return d(oe+"Seconds",2);case i:return d(oe+"Milliseconds",3);default:return this.clone()}},_.endOf=function(I){return this.startOf(I,!1)},_.$set=function(I,M){var F,W=$.p(I),P="set"+(this.$u?"UTC":""),U=(F={},F[a]=P+"Date",F[p]=P+"Date",F[u]=P+"Month",F[f]=P+"FullYear",F[s]=P+"Hours",F[o]=P+"Minutes",F[i]=P+"Seconds",F[n]=P+"Milliseconds",F)[W],d=W===a?this.$D+(M-this.$W):M;if(W===u||W===f){var G=this.clone().set(p,1);G.$d[U](d),G.init(),this.$d=G.set(p,Math.min(this.$D,G.daysInMonth())).$d}else U&&this.$d[U](d);return this.init(),this},_.set=function(I,M){return this.clone().$set(I,M)},_.get=function(I){return this[$.p(I)]()},_.add=function(I,M){var F,W=this;I=Number(I);var P=$.p(M),U=function(X){var y=V(W);return $.w(y.date(y.date()+Math.round(X*I)),W)};if(P===u)return this.set(u,this.$M+I);if(P===f)return this.set(f,this.$y+I);if(P===a)return U(1);if(P===l)return U(7);var d=(F={},F[o]=t,F[s]=r,F[i]=e,F)[P]||1,G=this.$d.getTime()+I*d;return $.w(G,this)},_.subtract=function(I,M){return this.add(-1*I,M)},_.format=function(I){var M=this,F=this.$locale();if(!this.isValid())return F.invalidDate||h;var W=I||"YYYY-MM-DDTHH:mm:ssZ",P=$.z(this),U=this.$H,d=this.$m,G=this.$M,X=F.weekdays,y=F.months,oe=F.meridiem,me=function(g,S,C,O){return g&&(g[S]||g(M,W))||C[S].slice(0,O)},_e=function(g){return $.s(U%12||12,g,"0")},k=oe||function(g,S,C){var O=g<12?"AM":"PM";return C?O.toLowerCase():O};return W.replace(x,function(g,S){return S||function(C){switch(C){case"YY":return String(M.$y).slice(-2);case"YYYY":return $.s(M.$y,4,"0");case"M":return G+1;case"MM":return $.s(G+1,2,"0");case"MMM":return me(F.monthsShort,G,y,3);case"MMMM":return me(y,G);case"D":return M.$D;case"DD":return $.s(M.$D,2,"0");case"d":return String(M.$W);case"dd":return me(F.weekdaysMin,M.$W,X,2);case"ddd":return me(F.weekdaysShort,M.$W,X,3);case"dddd":return X[M.$W];case"H":return String(U);case"HH":return $.s(U,2,"0");case"h":return _e(1);case"hh":return _e(2);case"a":return k(U,d,!0);case"A":return k(U,d,!1);case"m":return String(d);case"mm":return $.s(d,2,"0");case"s":return String(M.$s);case"ss":return $.s(M.$s,2,"0");case"SSS":return $.s(M.$ms,3,"0");case"Z":return P}return null}(g)||P.replace(":","")})},_.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},_.diff=function(I,M,F){var W,P=this,U=$.p(M),d=V(I),G=(d.utcOffset()-this.utcOffset())*t,X=this-d,y=function(){return $.m(P,d)};switch(U){case f:W=y()/12;break;case u:W=y();break;case c:W=y()/3;break;case l:W=(X-G)/6048e5;break;case a:W=(X-G)/864e5;break;case s:W=X/r;break;case o:W=X/t;break;case i:W=X/e;break;default:W=X}return F?W:$.a(W)},_.daysInMonth=function(){return this.endOf(u).$D},_.$locale=function(){return z[this.$L]},_.locale=function(I,M){if(!I)return this.$L;var F=this.clone(),W=R(I,M,!0);return W&&(F.$L=W),F},_.clone=function(){return $.w(this.$d,this)},_.toDate=function(){return new Date(this.valueOf())},_.toJSON=function(){return this.isValid()?this.toISOString():null},_.toISOString=function(){return this.$d.toISOString()},_.toString=function(){return this.$d.toUTCString()},B}(),fe=T.prototype;return V.prototype=fe,[["$ms",n],["$s",i],["$m",o],["$H",s],["$W",a],["$M",u],["$y",f],["$D",p]].forEach(function(B){fe[B[1]]=function(_){return this.$g(_,B[0],B[1])}}),V.extend=function(B,_){return B.$i||(B(_,T,V),B.$i=!0),V},V.locale=R,V.isDayjs=A,V.unix=function(B){return V(1e3*B)},V.en=z[b],V.Ls=z,V.p={},V})});var Hg=N((Kc,ef)=>{(function(e,t){typeof Kc=="object"&&typeof ef<"u"?ef.exports=t():typeof define=="function"&&define.amd?define(t):(e=typeof globalThis<"u"?globalThis:e||self).dayjs_plugin_isToday=t()})(Kc,function(){"use strict";return function(e,t,r){t.prototype.isToday=function(){var n="YYYY-MM-DD",i=r();return this.format(n)===i.format(n)}}})});var Yg=N((f5,Wg)=>{"use strict";Wg.exports=class{constructor(){this.parent=null,this.previousSibling=null,this.nextSibling=null,this.firstChild=null,this.lastChild=null,this.childrenVersion=0,this.childIndexCachedUpTo=null,this.cachedIndex=-1,this.cachedIndexVersion=NaN}get isAttached(){return!!(this.parent||this.previousSibling||this.nextSibling)}get hasChildren(){return!!this.firstChild}childrenChanged(){this.childrenVersion=this.childrenVersion+1&4294967295,this.childIndexCachedUpTo=null}getCachedIndex(t){return this.cachedIndexVersion!==t.childrenVersion?(this.cachedIndexVersion=NaN,-1):this.cachedIndex}setCachedIndex(t,r){this.cachedIndexVersion=t.childrenVersion,this.cachedIndex=r}}});var Jg=N((p5,Gg)=>{"use strict";Gg.exports=Object.freeze({DISCONNECTED:1,PRECEDING:2,FOLLOWING:4,CONTAINS:8,CONTAINED_BY:16})});var ey=N((h5,Kg)=>{"use strict";var Qg=Symbol(),Zg=Symbol(),$r=Symbol(),Xg=Symbol(),jt=class{constructor(t,r,n,i){this[Qg]=t,this[Zg]=r,this[$r]=n,this[Xg]=i}next(){let t=this[Qg],r=this[Xg],n=this[Zg];if(!this[$r])return{done:!0,value:n};let i=this[$r];return r===1?this[$r]=t._node(i).previousSibling:r===2?this[$r]=t._node(i).nextSibling:r===3?this[$r]=t._node(i).parent:r===4?this[$r]=t.preceding(i,{root:n}):this[$r]=t.following(i,{root:n}),{done:!1,value:i}}};Object.defineProperty(jt.prototype,Symbol.iterator,{value:function(){return this},writable:!1});jt.PREV=1;jt.NEXT=2;jt.PARENT=3;jt.PRECEDING=4;jt.FOLLOWING=5;Object.freeze(jt);Object.freeze(jt.prototype);Kg.exports=jt});var ff=N((m5,ty)=>{"use strict";var pE=Yg(),Ur=Jg(),Et=ey();function cf(){return!0}function vi(e,t){return e[e.length-1-t]}var el=class{constructor(t){this.symbol=Symbol(t||"SymbolTree data")}initialize(t){return this._node(t),t}_node(t){if(!t)return null;let r=t[this.symbol];return r||(t[this.symbol]=new pE)}hasChildren(t){return this._node(t).hasChildren}firstChild(t){return this._node(t).firstChild}lastChild(t){return this._node(t).lastChild}previousSibling(t){return this._node(t).previousSibling}nextSibling(t){return this._node(t).nextSibling}parent(t){return this._node(t).parent}lastInclusiveDescendant(t){let r,n=t;for(;r=this._node(n).lastChild;)n=r;return n}preceding(t,r){let n=r&&r.root;if(t===n)return null;let i=this._node(t).previousSibling;return i?this.lastInclusiveDescendant(i):this._node(t).parent}following(t,r){let n=r&&r.root,o=!(r&&r.skipChildren)&&this._node(t).firstChild;if(o)return o;let s=t;do{if(s===n)return null;let a=this._node(s).nextSibling;if(a)return a;s=this._node(s).parent}while(s);return null}childrenToArray(t,r){let n=r&&r.array||[],i=r&&r.filter||cf,o=r&&r.thisArg||void 0,s=this._node(t),a=s.firstChild,l=0;for(;a;){let u=this._node(a);u.setCachedIndex(s,l),i.call(o,a)&&n.push(a),a=u.nextSibling,++l}return n}ancestorsToArray(t,r){let n=r&&r.array||[],i=r&&r.filter||cf,o=r&&r.thisArg||void 0,s=t;for(;s;)i.call(o,s)&&n.push(s),s=this._node(s).parent;return n}treeToArray(t,r){let n=r&&r.array||[],i=r&&r.filter||cf,o=r&&r.thisArg||void 0,s=t;for(;s;)i.call(o,s)&&n.push(s),s=this.following(s,{root:t});return n}childrenIterator(t,r){let n=r&&r.reverse,i=this._node(t);return new Et(this,t,n?i.lastChild:i.firstChild,n?Et.PREV:Et.NEXT)}previousSiblingsIterator(t){return new Et(this,t,this._node(t).previousSibling,Et.PREV)}nextSiblingsIterator(t){return new Et(this,t,this._node(t).nextSibling,Et.NEXT)}ancestorsIterator(t){return new Et(this,t,t,Et.PARENT)}treeIterator(t,r){let n=r&&r.reverse;return new Et(this,t,n?this.lastInclusiveDescendant(t):t,n?Et.PRECEDING:Et.FOLLOWING)}index(t){let r=this._node(t),n=this._node(r.parent);if(!n)return-1;let i=r.getCachedIndex(n);if(i>=0)return i;i=0;let o=n.firstChild;if(n.childIndexCachedUpTo){let s=this._node(n.childIndexCachedUpTo);o=s.nextSibling,i=s.getCachedIndex(n)+1}for(;o;){let s=this._node(o);if(s.setCachedIndex(n,i),o===t)break;++i,o=s.nextSibling}return n.childIndexCachedUpTo=t,i}childrenCount(t){let r=this._node(t);return r.lastChild?this.index(r.lastChild)+1:0}compareTreePosition(t,r){if(t===r)return 0;let n=[];{let c=t;for(;c;){if(c===r)return Ur.CONTAINS|Ur.PRECEDING;n.push(c),c=this.parent(c)}}let i=[];{let c=r;for(;c;){if(c===t)return Ur.CONTAINED_BY|Ur.FOLLOWING;i.push(c),c=this.parent(c)}}let o=vi(n,0);if(!o||o!==vi(i,0))return Ur.DISCONNECTED;let s=0,a=Math.min(n.length,i.length);for(let c=0;c<a;++c){let f=vi(n,c),p=vi(i,c);if(f!==p)break;s=c}let l=this.index(vi(n,s+1));return this.index(vi(i,s+1))<l?Ur.PRECEDING:Ur.FOLLOWING}remove(t){let r=this._node(t),n=this._node(r.parent),i=this._node(r.previousSibling),o=this._node(r.nextSibling);return n&&(n.firstChild===t&&(n.firstChild=r.nextSibling),n.lastChild===t&&(n.lastChild=r.previousSibling)),i&&(i.nextSibling=r.nextSibling),o&&(o.previousSibling=r.previousSibling),r.parent=null,r.previousSibling=null,r.nextSibling=null,r.cachedIndex=-1,r.cachedIndexVersion=NaN,n&&n.childrenChanged(),t}insertBefore(t,r){let n=this._node(t),i=this._node(n.previousSibling),o=this._node(r),s=this._node(n.parent);if(o.isAttached)throw Error("Given object is already present in this SymbolTree, remove it first");return o.parent=n.parent,o.previousSibling=n.previousSibling,o.nextSibling=t,n.previousSibling=r,i&&(i.nextSibling=r),s&&s.firstChild===t&&(s.firstChild=r),s&&s.childrenChanged(),r}insertAfter(t,r){let n=this._node(t),i=this._node(n.nextSibling),o=this._node(r),s=this._node(n.parent);if(o.isAttached)throw Error("Given object is already present in this SymbolTree, remove it first");return o.parent=n.parent,o.previousSibling=t,o.nextSibling=n.nextSibling,n.nextSibling=r,i&&(i.previousSibling=r),s&&s.lastChild===t&&(s.lastChild=r),s&&s.childrenChanged(),r}prependChild(t,r){let n=this._node(t),i=this._node(r);if(i.isAttached)throw Error("Given object is already present in this SymbolTree, remove it first");return n.hasChildren?this.insertBefore(n.firstChild,r):(i.parent=t,n.firstChild=r,n.lastChild=r,n.childrenChanged()),r}appendChild(t,r){let n=this._node(t),i=this._node(r);if(i.isAttached)throw Error("Given object is already present in this SymbolTree, remove it first");return n.hasChildren?this.insertAfter(n.lastChild,r):(i.parent=t,n.firstChild=r,n.lastChild=r,n.childrenChanged()),r}};ty.exports=el;el.TreePosition=Ur});var py=N((Si,ki)=>{(function(e){var t=typeof Si=="object"&&Si&&!Si.nodeType&&Si,r=typeof ki=="object"&&ki&&!ki.nodeType&&ki,n=typeof global=="object"&&global;(n.global===n||n.window===n||n.self===n)&&(e=n);var i,o=2147483647,s=36,a=1,l=26,u=38,c=700,f=72,p=128,h="-",m=/^xn--/,x=/[^\x20-\x7E]/,v=/[\x2E\u3002\uFF0E\uFF61]/g,w={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},E=s-a,b=Math.floor,z=String.fromCharCode,q;function A(P){throw new RangeError(w[P])}function R(P,U){for(var d=P.length,G=[];d--;)G[d]=U(P[d]);return G}function V(P,U){var d=P.split("@"),G="";d.length>1&&(G=d[0]+"@",P=d[1]),P=P.replace(v,".");var X=P.split("."),y=R(X,U).join(".");return G+y}function $(P){for(var U=[],d=0,G=P.length,X,y;d<G;)X=P.charCodeAt(d++),X>=55296&&X<=56319&&d<G?(y=P.charCodeAt(d++),(y&64512)==56320?U.push(((X&1023)<<10)+(y&1023)+65536):(U.push(X),d--)):U.push(X);return U}function T(P){return R(P,function(U){var d="";return U>65535&&(U-=65536,d+=z(U>>>10&1023|55296),U=56320|U&1023),d+=z(U),d}).join("")}function fe(P){return P-48<10?P-22:P-65<26?P-65:P-97<26?P-97:s}function B(P,U){return P+22+75*(P<26)-((U!=0)<<5)}function _(P,U,d){var G=0;for(P=d?b(P/c):P>>1,P+=b(P/U);P>E*l>>1;G+=s)P=b(P/E);return b(G+(E+1)*P/(P+u))}function I(P){var U=[],d=P.length,G,X=0,y=p,oe=f,me,_e,k,g,S,C,O,Y,de;for(me=P.lastIndexOf(h),me<0&&(me=0),_e=0;_e<me;++_e)P.charCodeAt(_e)>=128&&A("not-basic"),U.push(P.charCodeAt(_e));for(k=me>0?me+1:0;k<d;){for(g=X,S=1,C=s;k>=d&&A("invalid-input"),O=fe(P.charCodeAt(k++)),(O>=s||O>b((o-X)/S))&&A("overflow"),X+=O*S,Y=C<=oe?a:C>=oe+l?l:C-oe,!(O<Y);C+=s)de=s-Y,S>b(o/de)&&A("overflow"),S*=de;G=U.length+1,oe=_(X-g,G,g==0),b(X/G)>o-y&&A("overflow"),y+=b(X/G),X%=G,U.splice(X++,0,y)}return T(U)}function M(P){var U,d,G,X,y,oe,me,_e,k,g,S,C=[],O,Y,de,ye;for(P=$(P),O=P.length,U=p,d=0,y=f,oe=0;oe<O;++oe)S=P[oe],S<128&&C.push(z(S));for(G=X=C.length,X&&C.push(h);G<O;){for(me=o,oe=0;oe<O;++oe)S=P[oe],S>=U&&S<me&&(me=S);for(Y=G+1,me-U>b((o-d)/Y)&&A("overflow"),d+=(me-U)*Y,U=me,oe=0;oe<O;++oe)if(S=P[oe],S<U&&++d>o&&A("overflow"),S==U){for(_e=d,k=s;g=k<=y?a:k>=y+l?l:k-y,!(_e<g);k+=s)ye=_e-g,de=s-g,C.push(z(B(g+ye%de,0))),_e=b(ye/de);C.push(z(B(_e,0))),y=_(d,Y,G==X),d=0,++G}++d,++U}return C.join("")}function F(P){return V(P,function(U){return m.test(U)?I(U.slice(4).toLowerCase()):U})}function W(P){return V(P,function(U){return x.test(U)?"xn--"+M(U):U})}if(i={version:"1.4.1",ucs2:{decode:$,encode:T},decode:I,encode:M,toASCII:W,toUnicode:F},typeof define=="function"&&typeof define.amd=="object"&&define.amd)define("punycode",function(){return i});else if(t&&r)if(ki.exports==t)r.exports=i;else for(q in i)i.hasOwnProperty(q)&&(t[q]=i[q]);else e.punycode=i})(Si)});var my=N((pH,hy)=>{"use strict";hy.exports=Error});var gy=N((hH,dy)=>{"use strict";dy.exports=EvalError});var xy=N((mH,yy)=>{"use strict";yy.exports=RangeError});var wy=N((dH,by)=>{"use strict";by.exports=ReferenceError});var Sf=N((gH,vy)=>{"use strict";vy.exports=SyntaxError});var Ai=N((yH,Sy)=>{"use strict";Sy.exports=TypeError});var Ay=N((xH,ky)=>{"use strict";ky.exports=URIError});var Cy=N((bH,Ty)=>{"use strict";Ty.exports=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var t={},r=Symbol("test"),n=Object(r);if(typeof r=="string"||Object.prototype.toString.call(r)!=="[object Symbol]"||Object.prototype.toString.call(n)!=="[object Symbol]")return!1;var i=42;t[r]=i;for(r in t)return!1;if(typeof Object.keys=="function"&&Object.keys(t).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(t).length!==0)return!1;var o=Object.getOwnPropertySymbols(t);if(o.length!==1||o[0]!==r||!Object.prototype.propertyIsEnumerable.call(t,r))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var s=Object.getOwnPropertyDescriptor(t,r);if(s.value!==i||s.enumerable!==!0)return!1}return!0}});var Iy=N((wH,_y)=>{"use strict";var Ey=typeof Symbol<"u"&&Symbol,zE=Cy();_y.exports=function(){return typeof Ey!="function"||typeof Symbol!="function"||typeof Ey("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:zE()}});var Oy=N((vH,Dy)=>{"use strict";var kf={__proto__:null,foo:{}},qE=Object;Dy.exports=function(){return{__proto__:kf}.foo===kf.foo&&!(kf instanceof qE)}});var Ny=N((SH,Py)=>{"use strict";var HE="Function.prototype.bind called on incompatible ",VE=Object.prototype.toString,WE=Math.max,YE="[object Function]",My=function(t,r){for(var n=[],i=0;i<t.length;i+=1)n[i]=t[i];for(var o=0;o<r.length;o+=1)n[o+t.length]=r[o];return n},GE=function(t,r){for(var n=[],i=r||0,o=0;i<t.length;i+=1,o+=1)n[o]=t[i];return n},JE=function(e,t){for(var r="",n=0;n<e.length;n+=1)r+=e[n],n+1<e.length&&(r+=t);return r};Py.exports=function(t){var r=this;if(typeof r!="function"||VE.apply(r)!==YE)throw new TypeError(HE+r);for(var n=GE(arguments,1),i,o=function(){if(this instanceof i){var c=r.apply(this,My(n,arguments));return Object(c)===c?c:this}return r.apply(t,My(n,arguments))},s=WE(0,r.length-n.length),a=[],l=0;l<s;l++)a[l]="$"+l;if(i=Function("binder","return function ("+JE(a,",")+"){ return binder.apply(this,arguments); }")(o),r.prototype){var u=function(){};u.prototype=r.prototype,i.prototype=new u,u.prototype=null}return i}});var rl=N((kH,Fy)=>{"use strict";var QE=Ny();Fy.exports=Function.prototype.bind||QE});var Ly=N((AH,Ry)=>{"use strict";var ZE=Function.prototype.call,XE=Object.prototype.hasOwnProperty,KE=rl();Ry.exports=KE.call(ZE,XE)});var Mn=N((TH,zy)=>{"use strict";var pe,e_=my(),t_=gy(),r_=xy(),n_=wy(),_i=Sf(),Ei=Ai(),i_=Ay(),jy=Function,Af=function(e){try{return jy('"use strict"; return ('+e+").constructor;")()}catch{}},Dn=Object.getOwnPropertyDescriptor;if(Dn)try{Dn({},"")}catch{Dn=null}var Tf=function(){throw new Ei},o_=Dn?function(){try{return arguments.callee,Tf}catch{try{return Dn(arguments,"callee").get}catch{return Tf}}}():Tf,Ti=Iy()(),s_=Oy()(),Xe=Object.getPrototypeOf||(s_?function(e){return e.__proto__}:null),Ci={},a_=typeof Uint8Array>"u"||!Xe?pe:Xe(Uint8Array),On={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?pe:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?pe:ArrayBuffer,"%ArrayIteratorPrototype%":Ti&&Xe?Xe([][Symbol.iterator]()):pe,"%AsyncFromSyncIteratorPrototype%":pe,"%AsyncFunction%":Ci,"%AsyncGenerator%":Ci,"%AsyncGeneratorFunction%":Ci,"%AsyncIteratorPrototype%":Ci,"%Atomics%":typeof Atomics>"u"?pe:Atomics,"%BigInt%":typeof BigInt>"u"?pe:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?pe:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?pe:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?pe:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":e_,"%eval%":eval,"%EvalError%":t_,"%Float32Array%":typeof Float32Array>"u"?pe:Float32Array,"%Float64Array%":typeof Float64Array>"u"?pe:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?pe:FinalizationRegistry,"%Function%":jy,"%GeneratorFunction%":Ci,"%Int8Array%":typeof Int8Array>"u"?pe:Int8Array,"%Int16Array%":typeof Int16Array>"u"?pe:Int16Array,"%Int32Array%":typeof Int32Array>"u"?pe:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":Ti&&Xe?Xe(Xe([][Symbol.iterator]())):pe,"%JSON%":typeof JSON=="object"?JSON:pe,"%Map%":typeof Map>"u"?pe:Map,"%MapIteratorPrototype%":typeof Map>"u"||!Ti||!Xe?pe:Xe(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?pe:Promise,"%Proxy%":typeof Proxy>"u"?pe:Proxy,"%RangeError%":r_,"%ReferenceError%":n_,"%Reflect%":typeof Reflect>"u"?pe:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?pe:Set,"%SetIteratorPrototype%":typeof Set>"u"||!Ti||!Xe?pe:Xe(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?pe:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":Ti&&Xe?Xe(""[Symbol.iterator]()):pe,"%Symbol%":Ti?Symbol:pe,"%SyntaxError%":_i,"%ThrowTypeError%":o_,"%TypedArray%":a_,"%TypeError%":Ei,"%Uint8Array%":typeof Uint8Array>"u"?pe:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?pe:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?pe:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?pe:Uint32Array,"%URIError%":i_,"%WeakMap%":typeof WeakMap>"u"?pe:WeakMap,"%WeakRef%":typeof WeakRef>"u"?pe:WeakRef,"%WeakSet%":typeof WeakSet>"u"?pe:WeakSet};if(Xe)try{null.error}catch(e){By=Xe(Xe(e)),On["%Error.prototype%"]=By}var By,l_=function e(t){var r;if(t==="%AsyncFunction%")r=Af("async function () {}");else if(t==="%GeneratorFunction%")r=Af("function* () {}");else if(t==="%AsyncGeneratorFunction%")r=Af("async function* () {}");else if(t==="%AsyncGenerator%"){var n=e("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if(t==="%AsyncIteratorPrototype%"){var i=e("%AsyncGenerator%");i&&Xe&&(r=Xe(i.prototype))}return On[t]=r,r},$y={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},is=rl(),nl=Ly(),u_=is.call(Function.call,Array.prototype.concat),c_=is.call(Function.apply,Array.prototype.splice),Uy=is.call(Function.call,String.prototype.replace),il=is.call(Function.call,String.prototype.slice),f_=is.call(Function.call,RegExp.prototype.exec),p_=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,h_=/\\(\\)?/g,m_=function(t){var r=il(t,0,1),n=il(t,-1);if(r==="%"&&n!=="%")throw new _i("invalid intrinsic syntax, expected closing `%`");if(n==="%"&&r!=="%")throw new _i("invalid intrinsic syntax, expected opening `%`");var i=[];return Uy(t,p_,function(o,s,a,l){i[i.length]=a?Uy(l,h_,"$1"):s||o}),i},d_=function(t,r){var n=t,i;if(nl($y,n)&&(i=$y[n],n="%"+i[0]+"%"),nl(On,n)){var o=On[n];if(o===Ci&&(o=l_(n)),typeof o>"u"&&!r)throw new Ei("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:i,name:n,value:o}}throw new _i("intrinsic "+t+" does not exist!")};zy.exports=function(t,r){if(typeof t!="string"||t.length===0)throw new Ei("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof r!="boolean")throw new Ei('"allowMissing" argument must be a boolean');if(f_(/^%?[^%]*%?$/,t)===null)throw new _i("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=m_(t),i=n.length>0?n[0]:"",o=d_("%"+i+"%",r),s=o.name,a=o.value,l=!1,u=o.alias;u&&(i=u[0],c_(n,u_([0,1],u)));for(var c=1,f=!0;c<n.length;c+=1){var p=n[c],h=il(p,0,1),m=il(p,-1);if((h==='"'||h==="'"||h==="`"||m==='"'||m==="'"||m==="`")&&h!==m)throw new _i("property names with quotes must have matching quotes");if((p==="constructor"||!f)&&(l=!0),i+="."+p,s="%"+i+"%",nl(On,s))a=On[s];else if(a!=null){if(!(p in a)){if(!r)throw new Ei("base intrinsic for "+t+" exists, but the property is not available.");return}if(Dn&&c+1>=n.length){var x=Dn(a,p);f=!!x,f&&"get"in x&&!("originalValue"in x.get)?a=x.get:a=a[p]}else f=nl(a,p),a=a[p];f&&!l&&(On[s]=a)}}return a}});var sl=N((CH,qy)=>{"use strict";var g_=Mn(),ol=g_("%Object.defineProperty%",!0)||!1;if(ol)try{ol({},"a",{value:1})}catch{ol=!1}qy.exports=ol});var Cf=N((EH,Hy)=>{"use strict";var y_=Mn(),al=y_("%Object.getOwnPropertyDescriptor%",!0);if(al)try{al([],"length")}catch{al=null}Hy.exports=al});var Gy=N((_H,Yy)=>{"use strict";var Vy=sl(),x_=Sf(),Ii=Ai(),Wy=Cf();Yy.exports=function(t,r,n){if(!t||typeof t!="object"&&typeof t!="function")throw new Ii("`obj` must be an object or a function`");if(typeof r!="string"&&typeof r!="symbol")throw new Ii("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new Ii("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new Ii("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new Ii("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new Ii("`loose`, if provided, must be a boolean");var i=arguments.length>3?arguments[3]:null,o=arguments.length>4?arguments[4]:null,s=arguments.length>5?arguments[5]:null,a=arguments.length>6?arguments[6]:!1,l=!!Wy&&Wy(t,r);if(Vy)Vy(t,r,{configurable:s===null&&l?l.configurable:!s,enumerable:i===null&&l?l.enumerable:!i,value:n,writable:o===null&&l?l.writable:!o});else if(a||!i&&!o&&!s)t[r]=n;else throw new x_("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")}});var Zy=N((IH,Qy)=>{"use strict";var Ef=sl(),Jy=function(){return!!Ef};Jy.hasArrayLengthDefineBug=function(){if(!Ef)return null;try{return Ef([],"length",{value:1}).length!==1}catch{return!0}};Qy.exports=Jy});var rx=N((DH,tx)=>{"use strict";var b_=Mn(),Xy=Gy(),w_=Zy()(),Ky=Cf(),ex=Ai(),v_=b_("%Math.floor%");tx.exports=function(t,r){if(typeof t!="function")throw new ex("`fn` is not a function");if(typeof r!="number"||r<0||r>4294967295||v_(r)!==r)throw new ex("`length` must be a positive 32-bit integer");var n=arguments.length>2&&!!arguments[2],i=!0,o=!0;if("length"in t&&Ky){var s=Ky(t,"length");s&&!s.configurable&&(i=!1),s&&!s.writable&&(o=!1)}return(i||o||!n)&&(w_?Xy(t,"length",r,!0,!0):Xy(t,"length",r)),t}});var lx=N((OH,ll)=>{"use strict";var _f=rl(),ul=Mn(),S_=rx(),k_=Ai(),ox=ul("%Function.prototype.apply%"),sx=ul("%Function.prototype.call%"),ax=ul("%Reflect.apply%",!0)||_f.call(sx,ox),nx=sl(),A_=ul("%Math.max%");ll.exports=function(t){if(typeof t!="function")throw new k_("a function is required");var r=ax(_f,sx,arguments);return S_(r,1+A_(0,t.length-(arguments.length-1)),!0)};var ix=function(){return ax(_f,ox,arguments)};nx?nx(ll.exports,"apply",{value:ix}):ll.exports.apply=ix});var px=N((MH,fx)=>{"use strict";var ux=Mn(),cx=lx(),T_=cx(ux("String.prototype.indexOf"));fx.exports=function(t,r){var n=ux(t,!!r);return typeof n=="function"&&T_(t,".prototype.")>-1?cx(n):n}});var hx=N(()=>{});var Nx=N((FH,Px)=>{var Bf=typeof Map=="function"&&Map.prototype,If=Object.getOwnPropertyDescriptor&&Bf?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,fl=Bf&&If&&typeof If.get=="function"?If.get:null,mx=Bf&&Map.prototype.forEach,$f=typeof Set=="function"&&Set.prototype,Df=Object.getOwnPropertyDescriptor&&$f?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,pl=$f&&Df&&typeof Df.get=="function"?Df.get:null,dx=$f&&Set.prototype.forEach,C_=typeof WeakMap=="function"&&WeakMap.prototype,ss=C_?WeakMap.prototype.has:null,E_=typeof WeakSet=="function"&&WeakSet.prototype,as=E_?WeakSet.prototype.has:null,__=typeof WeakRef=="function"&&WeakRef.prototype,gx=__?WeakRef.prototype.deref:null,I_=Boolean.prototype.valueOf,D_=Object.prototype.toString,O_=Function.prototype.toString,M_=String.prototype.match,Uf=String.prototype.slice,qr=String.prototype.replace,P_=String.prototype.toUpperCase,yx=String.prototype.toLowerCase,Cx=RegExp.prototype.test,xx=Array.prototype.concat,Yt=Array.prototype.join,N_=Array.prototype.slice,bx=Math.floor,Pf=typeof BigInt=="function"?BigInt.prototype.valueOf:null,Of=Object.getOwnPropertySymbols,Nf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,Di=typeof Symbol=="function"&&typeof Symbol.iterator=="object",nt=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===Di||!0)?Symbol.toStringTag:null,Ex=Object.prototype.propertyIsEnumerable,wx=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function vx(e,t){if(e===1/0||e===-1/0||e!==e||e&&e>-1e3&&e<1e3||Cx.call(/e/,t))return t;var r=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof e=="number"){var n=e<0?-bx(-e):bx(e);if(n!==e){var i=String(n),o=Uf.call(t,i.length+1);return qr.call(i,r,"$&_")+"."+qr.call(qr.call(o,/([0-9]{3})/g,"$&_"),/_$/,"")}}return qr.call(t,r,"$&_")}var Ff=hx(),Sx=Ff.custom,kx=Dx(Sx)?Sx:null,_x={__proto__:null,double:'"',single:"'"},F_={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};Px.exports=function e(t,r,n,i){var o=r||{};if(yr(o,"quoteStyle")&&!yr(_x,o.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if(yr(o,"maxStringLength")&&(typeof o.maxStringLength=="number"?o.maxStringLength<0&&o.maxStringLength!==1/0:o.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var s=yr(o,"customInspect")?o.customInspect:!0;if(typeof s!="boolean"&&s!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(yr(o,"indent")&&o.indent!==null&&o.indent!==" "&&!(parseInt(o.indent,10)===o.indent&&o.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(yr(o,"numericSeparator")&&typeof o.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var a=o.numericSeparator;if(typeof t>"u")return"undefined";if(t===null)return"null";if(typeof t=="boolean")return t?"true":"false";if(typeof t=="string")return Mx(t,o);if(typeof t=="number"){if(t===0)return 1/0/t>0?"0":"-0";var l=String(t);return a?vx(t,l):l}if(typeof t=="bigint"){var u=String(t)+"n";return a?vx(t,u):u}var c=typeof o.depth>"u"?5:o.depth;if(typeof n>"u"&&(n=0),n>=c&&c>0&&typeof t=="object")return Rf(t)?"[Array]":"[Object]";var f=K_(o,n);if(typeof i>"u")i=[];else if(Ox(i,t)>=0)return"[Circular]";function p(_,I,M){if(I&&(i=N_.call(i),i.push(I)),M){var F={depth:o.depth};return yr(o,"quoteStyle")&&(F.quoteStyle=o.quoteStyle),e(_,F,n+1,i)}return e(_,o,n+1,i)}if(typeof t=="function"&&!Ax(t)){var h=H_(t),m=cl(t,p);return"[Function"+(h?": "+h:" (anonymous)")+"]"+(m.length>0?" { "+Yt.call(m,", ")+" }":"")}if(Dx(t)){var x=Di?qr.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):Nf.call(t);return typeof t=="object"&&!Di?os(x):x}if(Q_(t)){for(var v="<"+yx.call(String(t.nodeName)),w=t.attributes||[],E=0;E<w.length;E++)v+=" "+w[E].name+"="+Ix(R_(w[E].value),"double",o);return v+=">",t.childNodes&&t.childNodes.length&&(v+="..."),v+="</"+yx.call(String(t.nodeName))+">",v}if(Rf(t)){if(t.length===0)return"[]";var b=cl(t,p);return f&&!X_(b)?"["+Lf(b,f)+"]":"[ "+Yt.call(b,", ")+" ]"}if(B_(t)){var z=cl(t,p);return!("cause"in Error.prototype)&&"cause"in t&&!Ex.call(t,"cause")?"{ ["+String(t)+"] "+Yt.call(xx.call("[cause]: "+p(t.cause),z),", ")+" }":z.length===0?"["+String(t)+"]":"{ ["+String(t)+"] "+Yt.call(z,", ")+" }"}if(typeof t=="object"&&s){if(kx&&typeof t[kx]=="function"&&Ff)return Ff(t,{depth:c-n});if(s!=="symbol"&&typeof t.inspect=="function")return t.inspect()}if(V_(t)){var q=[];return mx&&mx.call(t,function(_,I){q.push(p(I,t,!0)+" => "+p(_,t))}),Tx("Map",fl.call(t),q,f)}if(G_(t)){var A=[];return dx&&dx.call(t,function(_){A.push(p(_,t))}),Tx("Set",pl.call(t),A,f)}if(W_(t))return Mf("WeakMap");if(J_(t))return Mf("WeakSet");if(Y_(t))return Mf("WeakRef");if(U_(t))return os(p(Number(t)));if(z_(t))return os(p(Pf.call(t)));if(j_(t))return os(I_.call(t));if($_(t))return os(p(String(t)));if(typeof window<"u"&&t===window)return"{ [object Window] }";if(typeof globalThis<"u"&&t===globalThis||typeof global<"u"&&t===global)return"{ [object globalThis] }";if(!L_(t)&&!Ax(t)){var R=cl(t,p),V=wx?wx(t)===Object.prototype:t instanceof Object||t.constructor===Object,$=t instanceof Object?"":"null prototype",T=!V&&nt&&Object(t)===t&&nt in t?Uf.call(Hr(t),8,-1):$?"Object":"",fe=V||typeof t.constructor!="function"?"":t.constructor.name?t.constructor.name+" ":"",B=fe+(T||$?"["+Yt.call(xx.call([],T||[],$||[]),": ")+"] ":"");return R.length===0?B+"{}":f?B+"{"+Lf(R,f)+"}":B+"{ "+Yt.call(R,", ")+" }"}return String(t)};function Ix(e,t,r){var n=r.quoteStyle||t,i=_x[n];return i+e+i}function R_(e){return qr.call(String(e),/"/g,"&quot;")}function Rf(e){return Hr(e)==="[object Array]"&&(!nt||!(typeof e=="object"&&nt in e))}function L_(e){return Hr(e)==="[object Date]"&&(!nt||!(typeof e=="object"&&nt in e))}function Ax(e){return Hr(e)==="[object RegExp]"&&(!nt||!(typeof e=="object"&&nt in e))}function B_(e){return Hr(e)==="[object Error]"&&(!nt||!(typeof e=="object"&&nt in e))}function $_(e){return Hr(e)==="[object String]"&&(!nt||!(typeof e=="object"&&nt in e))}function U_(e){return Hr(e)==="[object Number]"&&(!nt||!(typeof e=="object"&&nt in e))}function j_(e){return Hr(e)==="[object Boolean]"&&(!nt||!(typeof e=="object"&&nt in e))}function Dx(e){if(Di)return e&&typeof e=="object"&&e instanceof Symbol;if(typeof e=="symbol")return!0;if(!e||typeof e!="object"||!Nf)return!1;try{return Nf.call(e),!0}catch{}return!1}function z_(e){if(!e||typeof e!="object"||!Pf)return!1;try{return Pf.call(e),!0}catch{}return!1}var q_=Object.prototype.hasOwnProperty||function(e){return e in this};function yr(e,t){return q_.call(e,t)}function Hr(e){return D_.call(e)}function H_(e){if(e.name)return e.name;var t=M_.call(O_.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}function Ox(e,t){if(e.indexOf)return e.indexOf(t);for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1}function V_(e){if(!fl||!e||typeof e!="object")return!1;try{fl.call(e);try{pl.call(e)}catch{return!0}return e instanceof Map}catch{}return!1}function W_(e){if(!ss||!e||typeof e!="object")return!1;try{ss.call(e,ss);try{as.call(e,as)}catch{return!0}return e instanceof WeakMap}catch{}return!1}function Y_(e){if(!gx||!e||typeof e!="object")return!1;try{return gx.call(e),!0}catch{}return!1}function G_(e){if(!pl||!e||typeof e!="object")return!1;try{pl.call(e);try{fl.call(e)}catch{return!0}return e instanceof Set}catch{}return!1}function J_(e){if(!as||!e||typeof e!="object")return!1;try{as.call(e,as);try{ss.call(e,ss)}catch{return!0}return e instanceof WeakSet}catch{}return!1}function Q_(e){return!e||typeof e!="object"?!1:typeof HTMLElement<"u"&&e instanceof HTMLElement?!0:typeof e.nodeName=="string"&&typeof e.getAttribute=="function"}function Mx(e,t){if(e.length>t.maxStringLength){var r=e.length-t.maxStringLength,n="... "+r+" more character"+(r>1?"s":"");return Mx(Uf.call(e,0,t.maxStringLength),t)+n}var i=F_[t.quoteStyle||"single"];i.lastIndex=0;var o=qr.call(qr.call(e,i,"\\$1"),/[\x00-\x1f]/g,Z_);return Ix(o,"single",t)}function Z_(e){var t=e.charCodeAt(0),r={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return r?"\\"+r:"\\x"+(t<16?"0":"")+P_.call(t.toString(16))}function os(e){return"Object("+e+")"}function Mf(e){return e+" { ? }"}function Tx(e,t,r,n){var i=n?Lf(r,n):Yt.call(r,", ");return e+" ("+t+") {"+i+"}"}function X_(e){for(var t=0;t<e.length;t++)if(Ox(e[t],`
2
- `)>=0)return!1;return!0}function K_(e,t){var r;if(e.indent===" ")r=" ";else if(typeof e.indent=="number"&&e.indent>0)r=Yt.call(Array(e.indent+1)," ");else return null;return{base:r,prev:Yt.call(Array(t+1),r)}}function Lf(e,t){if(e.length===0)return"";var r=`
1
+ var sC=Object.create;var ha=Object.defineProperty;var Hd=Object.getOwnPropertyDescriptor;var aC=Object.getOwnPropertyNames;var lC=Object.getPrototypeOf,uC=Object.prototype.hasOwnProperty;var ma=(e=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(e,{get:(t,r)=>(typeof require<"u"?require:t)[r]}):e)(function(e){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')});var N=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),le=(e,t)=>{for(var r in t)ha(e,r,{get:t[r],enumerable:!0})},cC=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of aC(t))!uC.call(e,i)&&i!==r&&ha(e,i,{get:()=>t[i],enumerable:!(n=Hd(t,i))||n.enumerable});return e};var $e=(e,t,r)=>(r=e!=null?sC(lC(e)):{},cC(t||!e||!e.__esModule?ha(r,"default",{value:e,enumerable:!0}):r,e));var ee=(e,t,r,n)=>{for(var i=n>1?void 0:n?Hd(t,r):t,o=e.length-1,s;o>=0;o--)(s=e[o])&&(i=(n?s(t,r,i):s(i))||i);return n&&i&&ha(t,r,i),i};var Ea=N(Ca=>{"use strict";Object.defineProperty(Ca,"__esModule",{value:!0});Ca.uni=void 0;var SC=(e="uni")=>`${e}_${"xxxxxxxxxxxxxxxxxxxxxxxx".replace(/[xy]/g,t=>{let r=Math.random()*16|0;return(t==="x"?r:r&3|8).toString(16)})}`;Ca.uni=SC});var qg=N((Zc,Xc)=>{(function(e,t){typeof Zc=="object"&&typeof Xc<"u"?Xc.exports=t():typeof define=="function"&&define.amd?define(t):(e=typeof globalThis<"u"?globalThis:e||self).dayjs=t()})(Zc,function(){"use strict";var e=1e3,t=6e4,r=36e5,n="millisecond",i="second",o="minute",s="hour",a="day",l="week",u="month",c="quarter",f="year",p="date",h="Invalid Date",m=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,x=/\[([^\]]+)]|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,v={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(B){var _=["th","st","nd","rd"],I=B%100;return"["+B+(_[(I-20)%10]||_[I]||_[0])+"]"}},w=function(B,_,I){var O=String(B);return!O||O.length>=_?B:""+Array(_+1-O.length).join(I)+B},E={s:w,z:function(B){var _=-B.utcOffset(),I=Math.abs(_),O=Math.floor(I/60),F=I%60;return(_<=0?"+":"-")+w(O,2,"0")+":"+w(F,2,"0")},m:function B(_,I){if(_.date()<I.date())return-B(I,_);var O=12*(I.year()-_.year())+(I.month()-_.month()),F=_.clone().add(O,u),W=I-F<0,M=_.clone().add(O+(W?-1:1),u);return+(-(O+(I-F)/(W?F-M:M-F))||0)},a:function(B){return B<0?Math.ceil(B)||0:Math.floor(B)},p:function(B){return{M:u,y:f,w:l,d:a,D:p,h:s,m:o,s:i,ms:n,Q:c}[B]||String(B||"").toLowerCase().replace(/s$/,"")},u:function(B){return B===void 0}},b="en",z={};z[b]=v;var q="$isDayjsObject",A=function(B){return B instanceof T||!(!B||!B[q])},R=function B(_,I,O){var F;if(!_)return b;if(typeof _=="string"){var W=_.toLowerCase();z[W]&&(F=W),I&&(z[W]=I,F=W);var M=_.split("-");if(!F&&M.length>1)return B(M[0])}else{var U=_.name;z[U]=_,F=U}return!O&&F&&(b=F),F||!O&&b},V=function(B,_){if(A(B))return B.clone();var I=typeof _=="object"?_:{};return I.date=B,I.args=arguments,new T(I)},$=E;$.l=R,$.i=A,$.w=function(B,_){return V(B,{locale:_.$L,utc:_.$u,x:_.$x,$offset:_.$offset})};var T=function(){function B(I){this.$L=R(I.locale,null,!0),this.parse(I),this.$x=this.$x||I.x||{},this[q]=!0}var _=B.prototype;return _.parse=function(I){this.$d=function(O){var F=O.date,W=O.utc;if(F===null)return new Date(NaN);if($.u(F))return new Date;if(F instanceof Date)return new Date(F);if(typeof F=="string"&&!/Z$/i.test(F)){var M=F.match(m);if(M){var U=M[2]-1||0,d=(M[7]||"0").substring(0,3);return W?new Date(Date.UTC(M[1],U,M[3]||1,M[4]||0,M[5]||0,M[6]||0,d)):new Date(M[1],U,M[3]||1,M[4]||0,M[5]||0,M[6]||0,d)}}return new Date(F)}(I),this.init()},_.init=function(){var I=this.$d;this.$y=I.getFullYear(),this.$M=I.getMonth(),this.$D=I.getDate(),this.$W=I.getDay(),this.$H=I.getHours(),this.$m=I.getMinutes(),this.$s=I.getSeconds(),this.$ms=I.getMilliseconds()},_.$utils=function(){return $},_.isValid=function(){return this.$d.toString()!==h},_.isSame=function(I,O){var F=V(I);return this.startOf(O)<=F&&F<=this.endOf(O)},_.isAfter=function(I,O){return V(I)<this.startOf(O)},_.isBefore=function(I,O){return this.endOf(O)<V(I)},_.$g=function(I,O,F){return $.u(I)?this[O]:this.set(F,I)},_.unix=function(){return Math.floor(this.valueOf()/1e3)},_.valueOf=function(){return this.$d.getTime()},_.startOf=function(I,O){var F=this,W=!!$.u(O)||O,M=$.p(I),U=function(k,g){var S=$.w(F.$u?Date.UTC(F.$y,g,k):new Date(F.$y,g,k),F);return W?S:S.endOf(a)},d=function(k,g){return $.w(F.toDate()[k].apply(F.toDate("s"),(W?[0,0,0,0]:[23,59,59,999]).slice(g)),F)},G=this.$W,X=this.$M,y=this.$D,oe="set"+(this.$u?"UTC":"");switch(M){case f:return W?U(1,0):U(31,11);case u:return W?U(1,X):U(0,X+1);case l:var me=this.$locale().weekStart||0,_e=(G<me?G+7:G)-me;return U(W?y-_e:y+(6-_e),X);case a:case p:return d(oe+"Hours",0);case s:return d(oe+"Minutes",1);case o:return d(oe+"Seconds",2);case i:return d(oe+"Milliseconds",3);default:return this.clone()}},_.endOf=function(I){return this.startOf(I,!1)},_.$set=function(I,O){var F,W=$.p(I),M="set"+(this.$u?"UTC":""),U=(F={},F[a]=M+"Date",F[p]=M+"Date",F[u]=M+"Month",F[f]=M+"FullYear",F[s]=M+"Hours",F[o]=M+"Minutes",F[i]=M+"Seconds",F[n]=M+"Milliseconds",F)[W],d=W===a?this.$D+(O-this.$W):O;if(W===u||W===f){var G=this.clone().set(p,1);G.$d[U](d),G.init(),this.$d=G.set(p,Math.min(this.$D,G.daysInMonth())).$d}else U&&this.$d[U](d);return this.init(),this},_.set=function(I,O){return this.clone().$set(I,O)},_.get=function(I){return this[$.p(I)]()},_.add=function(I,O){var F,W=this;I=Number(I);var M=$.p(O),U=function(X){var y=V(W);return $.w(y.date(y.date()+Math.round(X*I)),W)};if(M===u)return this.set(u,this.$M+I);if(M===f)return this.set(f,this.$y+I);if(M===a)return U(1);if(M===l)return U(7);var d=(F={},F[o]=t,F[s]=r,F[i]=e,F)[M]||1,G=this.$d.getTime()+I*d;return $.w(G,this)},_.subtract=function(I,O){return this.add(-1*I,O)},_.format=function(I){var O=this,F=this.$locale();if(!this.isValid())return F.invalidDate||h;var W=I||"YYYY-MM-DDTHH:mm:ssZ",M=$.z(this),U=this.$H,d=this.$m,G=this.$M,X=F.weekdays,y=F.months,oe=F.meridiem,me=function(g,S,C,D){return g&&(g[S]||g(O,W))||C[S].slice(0,D)},_e=function(g){return $.s(U%12||12,g,"0")},k=oe||function(g,S,C){var D=g<12?"AM":"PM";return C?D.toLowerCase():D};return W.replace(x,function(g,S){return S||function(C){switch(C){case"YY":return String(O.$y).slice(-2);case"YYYY":return $.s(O.$y,4,"0");case"M":return G+1;case"MM":return $.s(G+1,2,"0");case"MMM":return me(F.monthsShort,G,y,3);case"MMMM":return me(y,G);case"D":return O.$D;case"DD":return $.s(O.$D,2,"0");case"d":return String(O.$W);case"dd":return me(F.weekdaysMin,O.$W,X,2);case"ddd":return me(F.weekdaysShort,O.$W,X,3);case"dddd":return X[O.$W];case"H":return String(U);case"HH":return $.s(U,2,"0");case"h":return _e(1);case"hh":return _e(2);case"a":return k(U,d,!0);case"A":return k(U,d,!1);case"m":return String(d);case"mm":return $.s(d,2,"0");case"s":return String(O.$s);case"ss":return $.s(O.$s,2,"0");case"SSS":return $.s(O.$ms,3,"0");case"Z":return M}return null}(g)||M.replace(":","")})},_.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},_.diff=function(I,O,F){var W,M=this,U=$.p(O),d=V(I),G=(d.utcOffset()-this.utcOffset())*t,X=this-d,y=function(){return $.m(M,d)};switch(U){case f:W=y()/12;break;case u:W=y();break;case c:W=y()/3;break;case l:W=(X-G)/6048e5;break;case a:W=(X-G)/864e5;break;case s:W=X/r;break;case o:W=X/t;break;case i:W=X/e;break;default:W=X}return F?W:$.a(W)},_.daysInMonth=function(){return this.endOf(u).$D},_.$locale=function(){return z[this.$L]},_.locale=function(I,O){if(!I)return this.$L;var F=this.clone(),W=R(I,O,!0);return W&&(F.$L=W),F},_.clone=function(){return $.w(this.$d,this)},_.toDate=function(){return new Date(this.valueOf())},_.toJSON=function(){return this.isValid()?this.toISOString():null},_.toISOString=function(){return this.$d.toISOString()},_.toString=function(){return this.$d.toUTCString()},B}(),fe=T.prototype;return V.prototype=fe,[["$ms",n],["$s",i],["$m",o],["$H",s],["$W",a],["$M",u],["$y",f],["$D",p]].forEach(function(B){fe[B[1]]=function(_){return this.$g(_,B[0],B[1])}}),V.extend=function(B,_){return B.$i||(B(_,T,V),B.$i=!0),V},V.locale=R,V.isDayjs=A,V.unix=function(B){return V(1e3*B)},V.en=z[b],V.Ls=z,V.p={},V})});var Hg=N((Kc,ef)=>{(function(e,t){typeof Kc=="object"&&typeof ef<"u"?ef.exports=t():typeof define=="function"&&define.amd?define(t):(e=typeof globalThis<"u"?globalThis:e||self).dayjs_plugin_isToday=t()})(Kc,function(){"use strict";return function(e,t,r){t.prototype.isToday=function(){var n="YYYY-MM-DD",i=r();return this.format(n)===i.format(n)}}})});var Yg=N((h5,Wg)=>{"use strict";Wg.exports=class{constructor(){this.parent=null,this.previousSibling=null,this.nextSibling=null,this.firstChild=null,this.lastChild=null,this.childrenVersion=0,this.childIndexCachedUpTo=null,this.cachedIndex=-1,this.cachedIndexVersion=NaN}get isAttached(){return!!(this.parent||this.previousSibling||this.nextSibling)}get hasChildren(){return!!this.firstChild}childrenChanged(){this.childrenVersion=this.childrenVersion+1&4294967295,this.childIndexCachedUpTo=null}getCachedIndex(t){return this.cachedIndexVersion!==t.childrenVersion?(this.cachedIndexVersion=NaN,-1):this.cachedIndex}setCachedIndex(t,r){this.cachedIndexVersion=t.childrenVersion,this.cachedIndex=r}}});var Jg=N((m5,Gg)=>{"use strict";Gg.exports=Object.freeze({DISCONNECTED:1,PRECEDING:2,FOLLOWING:4,CONTAINS:8,CONTAINED_BY:16})});var ey=N((d5,Kg)=>{"use strict";var Qg=Symbol(),Zg=Symbol(),$r=Symbol(),Xg=Symbol(),jt=class{constructor(t,r,n,i){this[Qg]=t,this[Zg]=r,this[$r]=n,this[Xg]=i}next(){let t=this[Qg],r=this[Xg],n=this[Zg];if(!this[$r])return{done:!0,value:n};let i=this[$r];return r===1?this[$r]=t._node(i).previousSibling:r===2?this[$r]=t._node(i).nextSibling:r===3?this[$r]=t._node(i).parent:r===4?this[$r]=t.preceding(i,{root:n}):this[$r]=t.following(i,{root:n}),{done:!1,value:i}}};Object.defineProperty(jt.prototype,Symbol.iterator,{value:function(){return this},writable:!1});jt.PREV=1;jt.NEXT=2;jt.PARENT=3;jt.PRECEDING=4;jt.FOLLOWING=5;Object.freeze(jt);Object.freeze(jt.prototype);Kg.exports=jt});var ff=N((g5,ty)=>{"use strict";var mE=Yg(),Ur=Jg(),Et=ey();function cf(){return!0}function vi(e,t){return e[e.length-1-t]}var el=class{constructor(t){this.symbol=Symbol(t||"SymbolTree data")}initialize(t){return this._node(t),t}_node(t){if(!t)return null;let r=t[this.symbol];return r||(t[this.symbol]=new mE)}hasChildren(t){return this._node(t).hasChildren}firstChild(t){return this._node(t).firstChild}lastChild(t){return this._node(t).lastChild}previousSibling(t){return this._node(t).previousSibling}nextSibling(t){return this._node(t).nextSibling}parent(t){return this._node(t).parent}lastInclusiveDescendant(t){let r,n=t;for(;r=this._node(n).lastChild;)n=r;return n}preceding(t,r){let n=r&&r.root;if(t===n)return null;let i=this._node(t).previousSibling;return i?this.lastInclusiveDescendant(i):this._node(t).parent}following(t,r){let n=r&&r.root,o=!(r&&r.skipChildren)&&this._node(t).firstChild;if(o)return o;let s=t;do{if(s===n)return null;let a=this._node(s).nextSibling;if(a)return a;s=this._node(s).parent}while(s);return null}childrenToArray(t,r){let n=r&&r.array||[],i=r&&r.filter||cf,o=r&&r.thisArg||void 0,s=this._node(t),a=s.firstChild,l=0;for(;a;){let u=this._node(a);u.setCachedIndex(s,l),i.call(o,a)&&n.push(a),a=u.nextSibling,++l}return n}ancestorsToArray(t,r){let n=r&&r.array||[],i=r&&r.filter||cf,o=r&&r.thisArg||void 0,s=t;for(;s;)i.call(o,s)&&n.push(s),s=this._node(s).parent;return n}treeToArray(t,r){let n=r&&r.array||[],i=r&&r.filter||cf,o=r&&r.thisArg||void 0,s=t;for(;s;)i.call(o,s)&&n.push(s),s=this.following(s,{root:t});return n}childrenIterator(t,r){let n=r&&r.reverse,i=this._node(t);return new Et(this,t,n?i.lastChild:i.firstChild,n?Et.PREV:Et.NEXT)}previousSiblingsIterator(t){return new Et(this,t,this._node(t).previousSibling,Et.PREV)}nextSiblingsIterator(t){return new Et(this,t,this._node(t).nextSibling,Et.NEXT)}ancestorsIterator(t){return new Et(this,t,t,Et.PARENT)}treeIterator(t,r){let n=r&&r.reverse;return new Et(this,t,n?this.lastInclusiveDescendant(t):t,n?Et.PRECEDING:Et.FOLLOWING)}index(t){let r=this._node(t),n=this._node(r.parent);if(!n)return-1;let i=r.getCachedIndex(n);if(i>=0)return i;i=0;let o=n.firstChild;if(n.childIndexCachedUpTo){let s=this._node(n.childIndexCachedUpTo);o=s.nextSibling,i=s.getCachedIndex(n)+1}for(;o;){let s=this._node(o);if(s.setCachedIndex(n,i),o===t)break;++i,o=s.nextSibling}return n.childIndexCachedUpTo=t,i}childrenCount(t){let r=this._node(t);return r.lastChild?this.index(r.lastChild)+1:0}compareTreePosition(t,r){if(t===r)return 0;let n=[];{let c=t;for(;c;){if(c===r)return Ur.CONTAINS|Ur.PRECEDING;n.push(c),c=this.parent(c)}}let i=[];{let c=r;for(;c;){if(c===t)return Ur.CONTAINED_BY|Ur.FOLLOWING;i.push(c),c=this.parent(c)}}let o=vi(n,0);if(!o||o!==vi(i,0))return Ur.DISCONNECTED;let s=0,a=Math.min(n.length,i.length);for(let c=0;c<a;++c){let f=vi(n,c),p=vi(i,c);if(f!==p)break;s=c}let l=this.index(vi(n,s+1));return this.index(vi(i,s+1))<l?Ur.PRECEDING:Ur.FOLLOWING}remove(t){let r=this._node(t),n=this._node(r.parent),i=this._node(r.previousSibling),o=this._node(r.nextSibling);return n&&(n.firstChild===t&&(n.firstChild=r.nextSibling),n.lastChild===t&&(n.lastChild=r.previousSibling)),i&&(i.nextSibling=r.nextSibling),o&&(o.previousSibling=r.previousSibling),r.parent=null,r.previousSibling=null,r.nextSibling=null,r.cachedIndex=-1,r.cachedIndexVersion=NaN,n&&n.childrenChanged(),t}insertBefore(t,r){let n=this._node(t),i=this._node(n.previousSibling),o=this._node(r),s=this._node(n.parent);if(o.isAttached)throw Error("Given object is already present in this SymbolTree, remove it first");return o.parent=n.parent,o.previousSibling=n.previousSibling,o.nextSibling=t,n.previousSibling=r,i&&(i.nextSibling=r),s&&s.firstChild===t&&(s.firstChild=r),s&&s.childrenChanged(),r}insertAfter(t,r){let n=this._node(t),i=this._node(n.nextSibling),o=this._node(r),s=this._node(n.parent);if(o.isAttached)throw Error("Given object is already present in this SymbolTree, remove it first");return o.parent=n.parent,o.previousSibling=t,o.nextSibling=n.nextSibling,n.nextSibling=r,i&&(i.previousSibling=r),s&&s.lastChild===t&&(s.lastChild=r),s&&s.childrenChanged(),r}prependChild(t,r){let n=this._node(t),i=this._node(r);if(i.isAttached)throw Error("Given object is already present in this SymbolTree, remove it first");return n.hasChildren?this.insertBefore(n.firstChild,r):(i.parent=t,n.firstChild=r,n.lastChild=r,n.childrenChanged()),r}appendChild(t,r){let n=this._node(t),i=this._node(r);if(i.isAttached)throw Error("Given object is already present in this SymbolTree, remove it first");return n.hasChildren?this.insertAfter(n.lastChild,r):(i.parent=t,n.firstChild=r,n.lastChild=r,n.childrenChanged()),r}};ty.exports=el;el.TreePosition=Ur});var py=N((Si,ki)=>{(function(e){var t=typeof Si=="object"&&Si&&!Si.nodeType&&Si,r=typeof ki=="object"&&ki&&!ki.nodeType&&ki,n=typeof global=="object"&&global;(n.global===n||n.window===n||n.self===n)&&(e=n);var i,o=2147483647,s=36,a=1,l=26,u=38,c=700,f=72,p=128,h="-",m=/^xn--/,x=/[^\x20-\x7E]/,v=/[\x2E\u3002\uFF0E\uFF61]/g,w={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},E=s-a,b=Math.floor,z=String.fromCharCode,q;function A(M){throw new RangeError(w[M])}function R(M,U){for(var d=M.length,G=[];d--;)G[d]=U(M[d]);return G}function V(M,U){var d=M.split("@"),G="";d.length>1&&(G=d[0]+"@",M=d[1]),M=M.replace(v,".");var X=M.split("."),y=R(X,U).join(".");return G+y}function $(M){for(var U=[],d=0,G=M.length,X,y;d<G;)X=M.charCodeAt(d++),X>=55296&&X<=56319&&d<G?(y=M.charCodeAt(d++),(y&64512)==56320?U.push(((X&1023)<<10)+(y&1023)+65536):(U.push(X),d--)):U.push(X);return U}function T(M){return R(M,function(U){var d="";return U>65535&&(U-=65536,d+=z(U>>>10&1023|55296),U=56320|U&1023),d+=z(U),d}).join("")}function fe(M){return M-48<10?M-22:M-65<26?M-65:M-97<26?M-97:s}function B(M,U){return M+22+75*(M<26)-((U!=0)<<5)}function _(M,U,d){var G=0;for(M=d?b(M/c):M>>1,M+=b(M/U);M>E*l>>1;G+=s)M=b(M/E);return b(G+(E+1)*M/(M+u))}function I(M){var U=[],d=M.length,G,X=0,y=p,oe=f,me,_e,k,g,S,C,D,Y,de;for(me=M.lastIndexOf(h),me<0&&(me=0),_e=0;_e<me;++_e)M.charCodeAt(_e)>=128&&A("not-basic"),U.push(M.charCodeAt(_e));for(k=me>0?me+1:0;k<d;){for(g=X,S=1,C=s;k>=d&&A("invalid-input"),D=fe(M.charCodeAt(k++)),(D>=s||D>b((o-X)/S))&&A("overflow"),X+=D*S,Y=C<=oe?a:C>=oe+l?l:C-oe,!(D<Y);C+=s)de=s-Y,S>b(o/de)&&A("overflow"),S*=de;G=U.length+1,oe=_(X-g,G,g==0),b(X/G)>o-y&&A("overflow"),y+=b(X/G),X%=G,U.splice(X++,0,y)}return T(U)}function O(M){var U,d,G,X,y,oe,me,_e,k,g,S,C=[],D,Y,de,ye;for(M=$(M),D=M.length,U=p,d=0,y=f,oe=0;oe<D;++oe)S=M[oe],S<128&&C.push(z(S));for(G=X=C.length,X&&C.push(h);G<D;){for(me=o,oe=0;oe<D;++oe)S=M[oe],S>=U&&S<me&&(me=S);for(Y=G+1,me-U>b((o-d)/Y)&&A("overflow"),d+=(me-U)*Y,U=me,oe=0;oe<D;++oe)if(S=M[oe],S<U&&++d>o&&A("overflow"),S==U){for(_e=d,k=s;g=k<=y?a:k>=y+l?l:k-y,!(_e<g);k+=s)ye=_e-g,de=s-g,C.push(z(B(g+ye%de,0))),_e=b(ye/de);C.push(z(B(_e,0))),y=_(d,Y,G==X),d=0,++G}++d,++U}return C.join("")}function F(M){return V(M,function(U){return m.test(U)?I(U.slice(4).toLowerCase()):U})}function W(M){return V(M,function(U){return x.test(U)?"xn--"+O(U):U})}if(i={version:"1.4.1",ucs2:{decode:$,encode:T},decode:I,encode:O,toASCII:W,toUnicode:F},typeof define=="function"&&typeof define.amd=="object"&&define.amd)define("punycode",function(){return i});else if(t&&r)if(ki.exports==t)r.exports=i;else for(q in i)i.hasOwnProperty(q)&&(t[q]=i[q]);else e.punycode=i})(Si)});var my=N((mH,hy)=>{"use strict";hy.exports=Error});var gy=N((dH,dy)=>{"use strict";dy.exports=EvalError});var xy=N((gH,yy)=>{"use strict";yy.exports=RangeError});var wy=N((yH,by)=>{"use strict";by.exports=ReferenceError});var Sf=N((xH,vy)=>{"use strict";vy.exports=SyntaxError});var Ai=N((bH,Sy)=>{"use strict";Sy.exports=TypeError});var Ay=N((wH,ky)=>{"use strict";ky.exports=URIError});var Cy=N((vH,Ty)=>{"use strict";Ty.exports=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var t={},r=Symbol("test"),n=Object(r);if(typeof r=="string"||Object.prototype.toString.call(r)!=="[object Symbol]"||Object.prototype.toString.call(n)!=="[object Symbol]")return!1;var i=42;t[r]=i;for(r in t)return!1;if(typeof Object.keys=="function"&&Object.keys(t).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(t).length!==0)return!1;var o=Object.getOwnPropertySymbols(t);if(o.length!==1||o[0]!==r||!Object.prototype.propertyIsEnumerable.call(t,r))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var s=Object.getOwnPropertyDescriptor(t,r);if(s.value!==i||s.enumerable!==!0)return!1}return!0}});var Iy=N((SH,_y)=>{"use strict";var Ey=typeof Symbol<"u"&&Symbol,HE=Cy();_y.exports=function(){return typeof Ey!="function"||typeof Symbol!="function"||typeof Ey("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:HE()}});var Dy=N((kH,Py)=>{"use strict";var kf={__proto__:null,foo:{}},VE=Object;Py.exports=function(){return{__proto__:kf}.foo===kf.foo&&!(kf instanceof VE)}});var Ny=N((AH,My)=>{"use strict";var WE="Function.prototype.bind called on incompatible ",YE=Object.prototype.toString,GE=Math.max,JE="[object Function]",Oy=function(t,r){for(var n=[],i=0;i<t.length;i+=1)n[i]=t[i];for(var o=0;o<r.length;o+=1)n[o+t.length]=r[o];return n},QE=function(t,r){for(var n=[],i=r||0,o=0;i<t.length;i+=1,o+=1)n[o]=t[i];return n},ZE=function(e,t){for(var r="",n=0;n<e.length;n+=1)r+=e[n],n+1<e.length&&(r+=t);return r};My.exports=function(t){var r=this;if(typeof r!="function"||YE.apply(r)!==JE)throw new TypeError(WE+r);for(var n=QE(arguments,1),i,o=function(){if(this instanceof i){var c=r.apply(this,Oy(n,arguments));return Object(c)===c?c:this}return r.apply(t,Oy(n,arguments))},s=GE(0,r.length-n.length),a=[],l=0;l<s;l++)a[l]="$"+l;if(i=Function("binder","return function ("+ZE(a,",")+"){ return binder.apply(this,arguments); }")(o),r.prototype){var u=function(){};u.prototype=r.prototype,i.prototype=new u,u.prototype=null}return i}});var rl=N((TH,Fy)=>{"use strict";var XE=Ny();Fy.exports=Function.prototype.bind||XE});var Ly=N((CH,Ry)=>{"use strict";var KE=Function.prototype.call,e_=Object.prototype.hasOwnProperty,t_=rl();Ry.exports=t_.call(KE,e_)});var On=N((EH,zy)=>{"use strict";var pe,r_=my(),n_=gy(),i_=xy(),o_=wy(),_i=Sf(),Ei=Ai(),s_=Ay(),jy=Function,Af=function(e){try{return jy('"use strict"; return ('+e+").constructor;")()}catch{}},Pn=Object.getOwnPropertyDescriptor;if(Pn)try{Pn({},"")}catch{Pn=null}var Tf=function(){throw new Ei},a_=Pn?function(){try{return arguments.callee,Tf}catch{try{return Pn(arguments,"callee").get}catch{return Tf}}}():Tf,Ti=Iy()(),l_=Dy()(),Xe=Object.getPrototypeOf||(l_?function(e){return e.__proto__}:null),Ci={},u_=typeof Uint8Array>"u"||!Xe?pe:Xe(Uint8Array),Dn={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?pe:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?pe:ArrayBuffer,"%ArrayIteratorPrototype%":Ti&&Xe?Xe([][Symbol.iterator]()):pe,"%AsyncFromSyncIteratorPrototype%":pe,"%AsyncFunction%":Ci,"%AsyncGenerator%":Ci,"%AsyncGeneratorFunction%":Ci,"%AsyncIteratorPrototype%":Ci,"%Atomics%":typeof Atomics>"u"?pe:Atomics,"%BigInt%":typeof BigInt>"u"?pe:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?pe:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?pe:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?pe:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":r_,"%eval%":eval,"%EvalError%":n_,"%Float32Array%":typeof Float32Array>"u"?pe:Float32Array,"%Float64Array%":typeof Float64Array>"u"?pe:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?pe:FinalizationRegistry,"%Function%":jy,"%GeneratorFunction%":Ci,"%Int8Array%":typeof Int8Array>"u"?pe:Int8Array,"%Int16Array%":typeof Int16Array>"u"?pe:Int16Array,"%Int32Array%":typeof Int32Array>"u"?pe:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":Ti&&Xe?Xe(Xe([][Symbol.iterator]())):pe,"%JSON%":typeof JSON=="object"?JSON:pe,"%Map%":typeof Map>"u"?pe:Map,"%MapIteratorPrototype%":typeof Map>"u"||!Ti||!Xe?pe:Xe(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?pe:Promise,"%Proxy%":typeof Proxy>"u"?pe:Proxy,"%RangeError%":i_,"%ReferenceError%":o_,"%Reflect%":typeof Reflect>"u"?pe:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?pe:Set,"%SetIteratorPrototype%":typeof Set>"u"||!Ti||!Xe?pe:Xe(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?pe:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":Ti&&Xe?Xe(""[Symbol.iterator]()):pe,"%Symbol%":Ti?Symbol:pe,"%SyntaxError%":_i,"%ThrowTypeError%":a_,"%TypedArray%":u_,"%TypeError%":Ei,"%Uint8Array%":typeof Uint8Array>"u"?pe:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?pe:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?pe:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?pe:Uint32Array,"%URIError%":s_,"%WeakMap%":typeof WeakMap>"u"?pe:WeakMap,"%WeakRef%":typeof WeakRef>"u"?pe:WeakRef,"%WeakSet%":typeof WeakSet>"u"?pe:WeakSet};if(Xe)try{null.error}catch(e){By=Xe(Xe(e)),Dn["%Error.prototype%"]=By}var By,c_=function e(t){var r;if(t==="%AsyncFunction%")r=Af("async function () {}");else if(t==="%GeneratorFunction%")r=Af("function* () {}");else if(t==="%AsyncGeneratorFunction%")r=Af("async function* () {}");else if(t==="%AsyncGenerator%"){var n=e("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if(t==="%AsyncIteratorPrototype%"){var i=e("%AsyncGenerator%");i&&Xe&&(r=Xe(i.prototype))}return Dn[t]=r,r},$y={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},is=rl(),nl=Ly(),f_=is.call(Function.call,Array.prototype.concat),p_=is.call(Function.apply,Array.prototype.splice),Uy=is.call(Function.call,String.prototype.replace),il=is.call(Function.call,String.prototype.slice),h_=is.call(Function.call,RegExp.prototype.exec),m_=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,d_=/\\(\\)?/g,g_=function(t){var r=il(t,0,1),n=il(t,-1);if(r==="%"&&n!=="%")throw new _i("invalid intrinsic syntax, expected closing `%`");if(n==="%"&&r!=="%")throw new _i("invalid intrinsic syntax, expected opening `%`");var i=[];return Uy(t,m_,function(o,s,a,l){i[i.length]=a?Uy(l,d_,"$1"):s||o}),i},y_=function(t,r){var n=t,i;if(nl($y,n)&&(i=$y[n],n="%"+i[0]+"%"),nl(Dn,n)){var o=Dn[n];if(o===Ci&&(o=c_(n)),typeof o>"u"&&!r)throw new Ei("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:i,name:n,value:o}}throw new _i("intrinsic "+t+" does not exist!")};zy.exports=function(t,r){if(typeof t!="string"||t.length===0)throw new Ei("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof r!="boolean")throw new Ei('"allowMissing" argument must be a boolean');if(h_(/^%?[^%]*%?$/,t)===null)throw new _i("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=g_(t),i=n.length>0?n[0]:"",o=y_("%"+i+"%",r),s=o.name,a=o.value,l=!1,u=o.alias;u&&(i=u[0],p_(n,f_([0,1],u)));for(var c=1,f=!0;c<n.length;c+=1){var p=n[c],h=il(p,0,1),m=il(p,-1);if((h==='"'||h==="'"||h==="`"||m==='"'||m==="'"||m==="`")&&h!==m)throw new _i("property names with quotes must have matching quotes");if((p==="constructor"||!f)&&(l=!0),i+="."+p,s="%"+i+"%",nl(Dn,s))a=Dn[s];else if(a!=null){if(!(p in a)){if(!r)throw new Ei("base intrinsic for "+t+" exists, but the property is not available.");return}if(Pn&&c+1>=n.length){var x=Pn(a,p);f=!!x,f&&"get"in x&&!("originalValue"in x.get)?a=x.get:a=a[p]}else f=nl(a,p),a=a[p];f&&!l&&(Dn[s]=a)}}return a}});var sl=N((_H,qy)=>{"use strict";var x_=On(),ol=x_("%Object.defineProperty%",!0)||!1;if(ol)try{ol({},"a",{value:1})}catch{ol=!1}qy.exports=ol});var Cf=N((IH,Hy)=>{"use strict";var b_=On(),al=b_("%Object.getOwnPropertyDescriptor%",!0);if(al)try{al([],"length")}catch{al=null}Hy.exports=al});var Gy=N((PH,Yy)=>{"use strict";var Vy=sl(),w_=Sf(),Ii=Ai(),Wy=Cf();Yy.exports=function(t,r,n){if(!t||typeof t!="object"&&typeof t!="function")throw new Ii("`obj` must be an object or a function`");if(typeof r!="string"&&typeof r!="symbol")throw new Ii("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new Ii("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new Ii("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new Ii("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new Ii("`loose`, if provided, must be a boolean");var i=arguments.length>3?arguments[3]:null,o=arguments.length>4?arguments[4]:null,s=arguments.length>5?arguments[5]:null,a=arguments.length>6?arguments[6]:!1,l=!!Wy&&Wy(t,r);if(Vy)Vy(t,r,{configurable:s===null&&l?l.configurable:!s,enumerable:i===null&&l?l.enumerable:!i,value:n,writable:o===null&&l?l.writable:!o});else if(a||!i&&!o&&!s)t[r]=n;else throw new w_("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")}});var Zy=N((DH,Qy)=>{"use strict";var Ef=sl(),Jy=function(){return!!Ef};Jy.hasArrayLengthDefineBug=function(){if(!Ef)return null;try{return Ef([],"length",{value:1}).length!==1}catch{return!0}};Qy.exports=Jy});var rx=N((OH,tx)=>{"use strict";var v_=On(),Xy=Gy(),S_=Zy()(),Ky=Cf(),ex=Ai(),k_=v_("%Math.floor%");tx.exports=function(t,r){if(typeof t!="function")throw new ex("`fn` is not a function");if(typeof r!="number"||r<0||r>4294967295||k_(r)!==r)throw new ex("`length` must be a positive 32-bit integer");var n=arguments.length>2&&!!arguments[2],i=!0,o=!0;if("length"in t&&Ky){var s=Ky(t,"length");s&&!s.configurable&&(i=!1),s&&!s.writable&&(o=!1)}return(i||o||!n)&&(S_?Xy(t,"length",r,!0,!0):Xy(t,"length",r)),t}});var lx=N((MH,ll)=>{"use strict";var _f=rl(),ul=On(),A_=rx(),T_=Ai(),ox=ul("%Function.prototype.apply%"),sx=ul("%Function.prototype.call%"),ax=ul("%Reflect.apply%",!0)||_f.call(sx,ox),nx=sl(),C_=ul("%Math.max%");ll.exports=function(t){if(typeof t!="function")throw new T_("a function is required");var r=ax(_f,sx,arguments);return A_(r,1+C_(0,t.length-(arguments.length-1)),!0)};var ix=function(){return ax(_f,ox,arguments)};nx?nx(ll.exports,"apply",{value:ix}):ll.exports.apply=ix});var px=N((NH,fx)=>{"use strict";var ux=On(),cx=lx(),E_=cx(ux("String.prototype.indexOf"));fx.exports=function(t,r){var n=ux(t,!!r);return typeof n=="function"&&E_(t,".prototype.")>-1?cx(n):n}});var hx=N(()=>{});var Nx=N((LH,Mx)=>{var Bf=typeof Map=="function"&&Map.prototype,If=Object.getOwnPropertyDescriptor&&Bf?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,fl=Bf&&If&&typeof If.get=="function"?If.get:null,mx=Bf&&Map.prototype.forEach,$f=typeof Set=="function"&&Set.prototype,Pf=Object.getOwnPropertyDescriptor&&$f?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,pl=$f&&Pf&&typeof Pf.get=="function"?Pf.get:null,dx=$f&&Set.prototype.forEach,__=typeof WeakMap=="function"&&WeakMap.prototype,ss=__?WeakMap.prototype.has:null,I_=typeof WeakSet=="function"&&WeakSet.prototype,as=I_?WeakSet.prototype.has:null,P_=typeof WeakRef=="function"&&WeakRef.prototype,gx=P_?WeakRef.prototype.deref:null,D_=Boolean.prototype.valueOf,O_=Object.prototype.toString,M_=Function.prototype.toString,N_=String.prototype.match,Uf=String.prototype.slice,qr=String.prototype.replace,F_=String.prototype.toUpperCase,yx=String.prototype.toLowerCase,Cx=RegExp.prototype.test,xx=Array.prototype.concat,Yt=Array.prototype.join,R_=Array.prototype.slice,bx=Math.floor,Mf=typeof BigInt=="function"?BigInt.prototype.valueOf:null,Df=Object.getOwnPropertySymbols,Nf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,Pi=typeof Symbol=="function"&&typeof Symbol.iterator=="object",nt=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===Pi||!0)?Symbol.toStringTag:null,Ex=Object.prototype.propertyIsEnumerable,wx=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function vx(e,t){if(e===1/0||e===-1/0||e!==e||e&&e>-1e3&&e<1e3||Cx.call(/e/,t))return t;var r=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof e=="number"){var n=e<0?-bx(-e):bx(e);if(n!==e){var i=String(n),o=Uf.call(t,i.length+1);return qr.call(i,r,"$&_")+"."+qr.call(qr.call(o,/([0-9]{3})/g,"$&_"),/_$/,"")}}return qr.call(t,r,"$&_")}var Ff=hx(),Sx=Ff.custom,kx=Px(Sx)?Sx:null,_x={__proto__:null,double:'"',single:"'"},L_={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};Mx.exports=function e(t,r,n,i){var o=r||{};if(yr(o,"quoteStyle")&&!yr(_x,o.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if(yr(o,"maxStringLength")&&(typeof o.maxStringLength=="number"?o.maxStringLength<0&&o.maxStringLength!==1/0:o.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var s=yr(o,"customInspect")?o.customInspect:!0;if(typeof s!="boolean"&&s!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(yr(o,"indent")&&o.indent!==null&&o.indent!==" "&&!(parseInt(o.indent,10)===o.indent&&o.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(yr(o,"numericSeparator")&&typeof o.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var a=o.numericSeparator;if(typeof t>"u")return"undefined";if(t===null)return"null";if(typeof t=="boolean")return t?"true":"false";if(typeof t=="string")return Ox(t,o);if(typeof t=="number"){if(t===0)return 1/0/t>0?"0":"-0";var l=String(t);return a?vx(t,l):l}if(typeof t=="bigint"){var u=String(t)+"n";return a?vx(t,u):u}var c=typeof o.depth>"u"?5:o.depth;if(typeof n>"u"&&(n=0),n>=c&&c>0&&typeof t=="object")return Rf(t)?"[Array]":"[Object]";var f=tI(o,n);if(typeof i>"u")i=[];else if(Dx(i,t)>=0)return"[Circular]";function p(_,I,O){if(I&&(i=R_.call(i),i.push(I)),O){var F={depth:o.depth};return yr(o,"quoteStyle")&&(F.quoteStyle=o.quoteStyle),e(_,F,n+1,i)}return e(_,o,n+1,i)}if(typeof t=="function"&&!Ax(t)){var h=W_(t),m=cl(t,p);return"[Function"+(h?": "+h:" (anonymous)")+"]"+(m.length>0?" { "+Yt.call(m,", ")+" }":"")}if(Px(t)){var x=Pi?qr.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):Nf.call(t);return typeof t=="object"&&!Pi?os(x):x}if(X_(t)){for(var v="<"+yx.call(String(t.nodeName)),w=t.attributes||[],E=0;E<w.length;E++)v+=" "+w[E].name+"="+Ix(B_(w[E].value),"double",o);return v+=">",t.childNodes&&t.childNodes.length&&(v+="..."),v+="</"+yx.call(String(t.nodeName))+">",v}if(Rf(t)){if(t.length===0)return"[]";var b=cl(t,p);return f&&!eI(b)?"["+Lf(b,f)+"]":"[ "+Yt.call(b,", ")+" ]"}if(U_(t)){var z=cl(t,p);return!("cause"in Error.prototype)&&"cause"in t&&!Ex.call(t,"cause")?"{ ["+String(t)+"] "+Yt.call(xx.call("[cause]: "+p(t.cause),z),", ")+" }":z.length===0?"["+String(t)+"]":"{ ["+String(t)+"] "+Yt.call(z,", ")+" }"}if(typeof t=="object"&&s){if(kx&&typeof t[kx]=="function"&&Ff)return Ff(t,{depth:c-n});if(s!=="symbol"&&typeof t.inspect=="function")return t.inspect()}if(Y_(t)){var q=[];return mx&&mx.call(t,function(_,I){q.push(p(I,t,!0)+" => "+p(_,t))}),Tx("Map",fl.call(t),q,f)}if(Q_(t)){var A=[];return dx&&dx.call(t,function(_){A.push(p(_,t))}),Tx("Set",pl.call(t),A,f)}if(G_(t))return Of("WeakMap");if(Z_(t))return Of("WeakSet");if(J_(t))return Of("WeakRef");if(z_(t))return os(p(Number(t)));if(H_(t))return os(p(Mf.call(t)));if(q_(t))return os(D_.call(t));if(j_(t))return os(p(String(t)));if(typeof window<"u"&&t===window)return"{ [object Window] }";if(typeof globalThis<"u"&&t===globalThis||typeof global<"u"&&t===global)return"{ [object globalThis] }";if(!$_(t)&&!Ax(t)){var R=cl(t,p),V=wx?wx(t)===Object.prototype:t instanceof Object||t.constructor===Object,$=t instanceof Object?"":"null prototype",T=!V&&nt&&Object(t)===t&&nt in t?Uf.call(Hr(t),8,-1):$?"Object":"",fe=V||typeof t.constructor!="function"?"":t.constructor.name?t.constructor.name+" ":"",B=fe+(T||$?"["+Yt.call(xx.call([],T||[],$||[]),": ")+"] ":"");return R.length===0?B+"{}":f?B+"{"+Lf(R,f)+"}":B+"{ "+Yt.call(R,", ")+" }"}return String(t)};function Ix(e,t,r){var n=r.quoteStyle||t,i=_x[n];return i+e+i}function B_(e){return qr.call(String(e),/"/g,"&quot;")}function Rf(e){return Hr(e)==="[object Array]"&&(!nt||!(typeof e=="object"&&nt in e))}function $_(e){return Hr(e)==="[object Date]"&&(!nt||!(typeof e=="object"&&nt in e))}function Ax(e){return Hr(e)==="[object RegExp]"&&(!nt||!(typeof e=="object"&&nt in e))}function U_(e){return Hr(e)==="[object Error]"&&(!nt||!(typeof e=="object"&&nt in e))}function j_(e){return Hr(e)==="[object String]"&&(!nt||!(typeof e=="object"&&nt in e))}function z_(e){return Hr(e)==="[object Number]"&&(!nt||!(typeof e=="object"&&nt in e))}function q_(e){return Hr(e)==="[object Boolean]"&&(!nt||!(typeof e=="object"&&nt in e))}function Px(e){if(Pi)return e&&typeof e=="object"&&e instanceof Symbol;if(typeof e=="symbol")return!0;if(!e||typeof e!="object"||!Nf)return!1;try{return Nf.call(e),!0}catch{}return!1}function H_(e){if(!e||typeof e!="object"||!Mf)return!1;try{return Mf.call(e),!0}catch{}return!1}var V_=Object.prototype.hasOwnProperty||function(e){return e in this};function yr(e,t){return V_.call(e,t)}function Hr(e){return O_.call(e)}function W_(e){if(e.name)return e.name;var t=N_.call(M_.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}function Dx(e,t){if(e.indexOf)return e.indexOf(t);for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1}function Y_(e){if(!fl||!e||typeof e!="object")return!1;try{fl.call(e);try{pl.call(e)}catch{return!0}return e instanceof Map}catch{}return!1}function G_(e){if(!ss||!e||typeof e!="object")return!1;try{ss.call(e,ss);try{as.call(e,as)}catch{return!0}return e instanceof WeakMap}catch{}return!1}function J_(e){if(!gx||!e||typeof e!="object")return!1;try{return gx.call(e),!0}catch{}return!1}function Q_(e){if(!pl||!e||typeof e!="object")return!1;try{pl.call(e);try{fl.call(e)}catch{return!0}return e instanceof Set}catch{}return!1}function Z_(e){if(!as||!e||typeof e!="object")return!1;try{as.call(e,as);try{ss.call(e,ss)}catch{return!0}return e instanceof WeakSet}catch{}return!1}function X_(e){return!e||typeof e!="object"?!1:typeof HTMLElement<"u"&&e instanceof HTMLElement?!0:typeof e.nodeName=="string"&&typeof e.getAttribute=="function"}function Ox(e,t){if(e.length>t.maxStringLength){var r=e.length-t.maxStringLength,n="... "+r+" more character"+(r>1?"s":"");return Ox(Uf.call(e,0,t.maxStringLength),t)+n}var i=L_[t.quoteStyle||"single"];i.lastIndex=0;var o=qr.call(qr.call(e,i,"\\$1"),/[\x00-\x1f]/g,K_);return Ix(o,"single",t)}function K_(e){var t=e.charCodeAt(0),r={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return r?"\\"+r:"\\x"+(t<16?"0":"")+F_.call(t.toString(16))}function os(e){return"Object("+e+")"}function Of(e){return e+" { ? }"}function Tx(e,t,r,n){var i=n?Lf(r,n):Yt.call(r,", ");return e+" ("+t+") {"+i+"}"}function eI(e){for(var t=0;t<e.length;t++)if(Dx(e[t],`
2
+ `)>=0)return!1;return!0}function tI(e,t){var r;if(e.indent===" ")r=" ";else if(typeof e.indent=="number"&&e.indent>0)r=Yt.call(Array(e.indent+1)," ");else return null;return{base:r,prev:Yt.call(Array(t+1),r)}}function Lf(e,t){if(e.length===0)return"";var r=`
3
3
  `+t.prev+t.base;return r+Yt.call(e,","+r)+`
4
- `+t.prev}function cl(e,t){var r=Rf(e),n=[];if(r){n.length=e.length;for(var i=0;i<e.length;i++)n[i]=yr(e,i)?t(e[i],e):""}var o=typeof Of=="function"?Of(e):[],s;if(Di){s={};for(var a=0;a<o.length;a++)s["$"+o[a]]=o[a]}for(var l in e)yr(e,l)&&(r&&String(Number(l))===l&&l<e.length||Di&&s["$"+l]instanceof Symbol||(Cx.call(/[^\w$]/,l)?n.push(t(l,e)+": "+t(e[l],e)):n.push(l+": "+t(e[l],e))));if(typeof Of=="function")for(var u=0;u<o.length;u++)Ex.call(e,o[u])&&n.push("["+t(o[u])+"]: "+t(e[o[u]],e));return n}});var Lx=N((RH,Rx)=>{"use strict";var Fx=Mn(),Oi=px(),eI=Nx(),tI=Ai(),hl=Fx("%WeakMap%",!0),ml=Fx("%Map%",!0),rI=Oi("WeakMap.prototype.get",!0),nI=Oi("WeakMap.prototype.set",!0),iI=Oi("WeakMap.prototype.has",!0),oI=Oi("Map.prototype.get",!0),sI=Oi("Map.prototype.set",!0),aI=Oi("Map.prototype.has",!0),jf=function(e,t){for(var r=e,n;(n=r.next)!==null;r=n)if(n.key===t)return r.next=n.next,n.next=e.next,e.next=n,n},lI=function(e,t){var r=jf(e,t);return r&&r.value},uI=function(e,t,r){var n=jf(e,t);n?n.value=r:e.next={key:t,next:e.next,value:r}},cI=function(e,t){return!!jf(e,t)};Rx.exports=function(){var t,r,n,i={assert:function(o){if(!i.has(o))throw new tI("Side channel does not contain "+eI(o))},get:function(o){if(hl&&o&&(typeof o=="object"||typeof o=="function")){if(t)return rI(t,o)}else if(ml){if(r)return oI(r,o)}else if(n)return lI(n,o)},has:function(o){if(hl&&o&&(typeof o=="object"||typeof o=="function")){if(t)return iI(t,o)}else if(ml){if(r)return aI(r,o)}else if(n)return cI(n,o);return!1},set:function(o,s){hl&&o&&(typeof o=="object"||typeof o=="function")?(t||(t=new hl),nI(t,o,s)):ml?(r||(r=new ml),sI(r,o,s)):(n||(n={key:{},next:null}),uI(n,o,s))}};return i}});var dl=N((LH,Bx)=>{"use strict";var fI=String.prototype.replace,pI=/%20/g,zf={RFC1738:"RFC1738",RFC3986:"RFC3986"};Bx.exports={default:zf.RFC3986,formatters:{RFC1738:function(e){return fI.call(e,pI,"+")},RFC3986:function(e){return String(e)}},RFC1738:zf.RFC1738,RFC3986:zf.RFC3986}});var Vf=N((BH,Ux)=>{"use strict";var hI=dl(),qf=Object.prototype.hasOwnProperty,Pn=Array.isArray,Gt=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),mI=function(t){for(;t.length>1;){var r=t.pop(),n=r.obj[r.prop];if(Pn(n)){for(var i=[],o=0;o<n.length;++o)typeof n[o]<"u"&&i.push(n[o]);r.obj[r.prop]=i}}},$x=function(t,r){for(var n=r&&r.plainObjects?{__proto__:null}:{},i=0;i<t.length;++i)typeof t[i]<"u"&&(n[i]=t[i]);return n},dI=function e(t,r,n){if(!r)return t;if(typeof r!="object"&&typeof r!="function"){if(Pn(t))t.push(r);else if(t&&typeof t=="object")(n&&(n.plainObjects||n.allowPrototypes)||!qf.call(Object.prototype,r))&&(t[r]=!0);else return[t,r];return t}if(!t||typeof t!="object")return[t].concat(r);var i=t;return Pn(t)&&!Pn(r)&&(i=$x(t,n)),Pn(t)&&Pn(r)?(r.forEach(function(o,s){if(qf.call(t,s)){var a=t[s];a&&typeof a=="object"&&o&&typeof o=="object"?t[s]=e(a,o,n):t.push(o)}else t[s]=o}),t):Object.keys(r).reduce(function(o,s){var a=r[s];return qf.call(o,s)?o[s]=e(o[s],a,n):o[s]=a,o},i)},gI=function(t,r){return Object.keys(r).reduce(function(n,i){return n[i]=r[i],n},t)},yI=function(e,t,r){var n=e.replace(/\+/g," ");if(r==="iso-8859-1")return n.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(n)}catch{return n}},Hf=1024,xI=function(t,r,n,i,o){if(t.length===0)return t;var s=t;if(typeof t=="symbol"?s=Symbol.prototype.toString.call(t):typeof t!="string"&&(s=String(t)),n==="iso-8859-1")return escape(s).replace(/%u[0-9a-f]{4}/gi,function(h){return"%26%23"+parseInt(h.slice(2),16)+"%3B"});for(var a="",l=0;l<s.length;l+=Hf){for(var u=s.length>=Hf?s.slice(l,l+Hf):s,c=[],f=0;f<u.length;++f){var p=u.charCodeAt(f);if(p===45||p===46||p===95||p===126||p>=48&&p<=57||p>=65&&p<=90||p>=97&&p<=122||o===hI.RFC1738&&(p===40||p===41)){c[c.length]=u.charAt(f);continue}if(p<128){c[c.length]=Gt[p];continue}if(p<2048){c[c.length]=Gt[192|p>>6]+Gt[128|p&63];continue}if(p<55296||p>=57344){c[c.length]=Gt[224|p>>12]+Gt[128|p>>6&63]+Gt[128|p&63];continue}f+=1,p=65536+((p&1023)<<10|u.charCodeAt(f)&1023),c[c.length]=Gt[240|p>>18]+Gt[128|p>>12&63]+Gt[128|p>>6&63]+Gt[128|p&63]}a+=c.join("")}return a},bI=function(t){for(var r=[{obj:{o:t},prop:"o"}],n=[],i=0;i<r.length;++i)for(var o=r[i],s=o.obj[o.prop],a=Object.keys(s),l=0;l<a.length;++l){var u=a[l],c=s[u];typeof c=="object"&&c!==null&&n.indexOf(c)===-1&&(r.push({obj:s,prop:u}),n.push(c))}return mI(r),t},wI=function(t){return Object.prototype.toString.call(t)==="[object RegExp]"},vI=function(t){return!t||typeof t!="object"?!1:!!(t.constructor&&t.constructor.isBuffer&&t.constructor.isBuffer(t))},SI=function(t,r){return[].concat(t,r)},kI=function(t,r){if(Pn(t)){for(var n=[],i=0;i<t.length;i+=1)n.push(r(t[i]));return n}return r(t)};Ux.exports={arrayToObject:$x,assign:gI,combine:SI,compact:bI,decode:yI,encode:xI,isBuffer:vI,isRegExp:wI,maybeMap:kI,merge:dI}});var Wx=N(($H,Vx)=>{"use strict";var zx=Lx(),gl=Vf(),ls=dl(),AI=Object.prototype.hasOwnProperty,qx={brackets:function(t){return t+"[]"},comma:"comma",indices:function(t,r){return t+"["+r+"]"},repeat:function(t){return t}},Jt=Array.isArray,TI=Array.prototype.push,Hx=function(e,t){TI.apply(e,Jt(t)?t:[t])},CI=Date.prototype.toISOString,jx=ls.default,Ye={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,commaRoundTrip:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:gl.encode,encodeValuesOnly:!1,filter:void 0,format:jx,formatter:ls.formatters[jx],indices:!1,serializeDate:function(t){return CI.call(t)},skipNulls:!1,strictNullHandling:!1},EI=function(t){return typeof t=="string"||typeof t=="number"||typeof t=="boolean"||typeof t=="symbol"||typeof t=="bigint"},Wf={},_I=function e(t,r,n,i,o,s,a,l,u,c,f,p,h,m,x,v,w,E){for(var b=t,z=E,q=0,A=!1;(z=z.get(Wf))!==void 0&&!A;){var R=z.get(t);if(q+=1,typeof R<"u"){if(R===q)throw new RangeError("Cyclic object value");A=!0}typeof z.get(Wf)>"u"&&(q=0)}if(typeof c=="function"?b=c(r,b):b instanceof Date?b=h(b):n==="comma"&&Jt(b)&&(b=gl.maybeMap(b,function(d){return d instanceof Date?h(d):d})),b===null){if(s)return u&&!v?u(r,Ye.encoder,w,"key",m):r;b=""}if(EI(b)||gl.isBuffer(b)){if(u){var V=v?r:u(r,Ye.encoder,w,"key",m);return[x(V)+"="+x(u(b,Ye.encoder,w,"value",m))]}return[x(r)+"="+x(String(b))]}var $=[];if(typeof b>"u")return $;var T;if(n==="comma"&&Jt(b))v&&u&&(b=gl.maybeMap(b,u)),T=[{value:b.length>0?b.join(",")||null:void 0}];else if(Jt(c))T=c;else{var fe=Object.keys(b);T=f?fe.sort(f):fe}var B=l?String(r).replace(/\./g,"%2E"):String(r),_=i&&Jt(b)&&b.length===1?B+"[]":B;if(o&&Jt(b)&&b.length===0)return _+"[]";for(var I=0;I<T.length;++I){var M=T[I],F=typeof M=="object"&&M&&typeof M.value<"u"?M.value:b[M];if(!(a&&F===null)){var W=p&&l?String(M).replace(/\./g,"%2E"):String(M),P=Jt(b)?typeof n=="function"?n(_,W):_:_+(p?"."+W:"["+W+"]");E.set(t,q);var U=zx();U.set(Wf,E),Hx($,e(F,P,n,i,o,s,a,l,n==="comma"&&v&&Jt(b)?null:u,c,f,p,h,m,x,v,w,U))}}return $},II=function(t){if(!t)return Ye;if(typeof t.allowEmptyArrays<"u"&&typeof t.allowEmptyArrays!="boolean")throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(typeof t.encodeDotInKeys<"u"&&typeof t.encodeDotInKeys!="boolean")throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");if(t.encoder!==null&&typeof t.encoder<"u"&&typeof t.encoder!="function")throw new TypeError("Encoder has to be a function.");var r=t.charset||Ye.charset;if(typeof t.charset<"u"&&t.charset!=="utf-8"&&t.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var n=ls.default;if(typeof t.format<"u"){if(!AI.call(ls.formatters,t.format))throw new TypeError("Unknown format option provided.");n=t.format}var i=ls.formatters[n],o=Ye.filter;(typeof t.filter=="function"||Jt(t.filter))&&(o=t.filter);var s;if(t.arrayFormat in qx?s=t.arrayFormat:"indices"in t?s=t.indices?"indices":"repeat":s=Ye.arrayFormat,"commaRoundTrip"in t&&typeof t.commaRoundTrip!="boolean")throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var a=typeof t.allowDots>"u"?t.encodeDotInKeys===!0?!0:Ye.allowDots:!!t.allowDots;return{addQueryPrefix:typeof t.addQueryPrefix=="boolean"?t.addQueryPrefix:Ye.addQueryPrefix,allowDots:a,allowEmptyArrays:typeof t.allowEmptyArrays=="boolean"?!!t.allowEmptyArrays:Ye.allowEmptyArrays,arrayFormat:s,charset:r,charsetSentinel:typeof t.charsetSentinel=="boolean"?t.charsetSentinel:Ye.charsetSentinel,commaRoundTrip:!!t.commaRoundTrip,delimiter:typeof t.delimiter>"u"?Ye.delimiter:t.delimiter,encode:typeof t.encode=="boolean"?t.encode:Ye.encode,encodeDotInKeys:typeof t.encodeDotInKeys=="boolean"?t.encodeDotInKeys:Ye.encodeDotInKeys,encoder:typeof t.encoder=="function"?t.encoder:Ye.encoder,encodeValuesOnly:typeof t.encodeValuesOnly=="boolean"?t.encodeValuesOnly:Ye.encodeValuesOnly,filter:o,format:n,formatter:i,serializeDate:typeof t.serializeDate=="function"?t.serializeDate:Ye.serializeDate,skipNulls:typeof t.skipNulls=="boolean"?t.skipNulls:Ye.skipNulls,sort:typeof t.sort=="function"?t.sort:null,strictNullHandling:typeof t.strictNullHandling=="boolean"?t.strictNullHandling:Ye.strictNullHandling}};Vx.exports=function(e,t){var r=e,n=II(t),i,o;typeof n.filter=="function"?(o=n.filter,r=o("",r)):Jt(n.filter)&&(o=n.filter,i=o);var s=[];if(typeof r!="object"||r===null)return"";var a=qx[n.arrayFormat],l=a==="comma"&&n.commaRoundTrip;i||(i=Object.keys(r)),n.sort&&i.sort(n.sort);for(var u=zx(),c=0;c<i.length;++c){var f=i[c],p=r[f];n.skipNulls&&p===null||Hx(s,_I(p,f,a,l,n.allowEmptyArrays,n.strictNullHandling,n.skipNulls,n.encodeDotInKeys,n.encode?n.encoder:null,n.filter,n.sort,n.allowDots,n.serializeDate,n.format,n.formatter,n.encodeValuesOnly,n.charset,u))}var h=s.join(n.delimiter),m=n.addQueryPrefix===!0?"?":"";return n.charsetSentinel&&(n.charset==="iso-8859-1"?m+="utf8=%26%2310003%3B&":m+="utf8=%E2%9C%93&"),h.length>0?m+h:""}});var Jx=N((UH,Gx)=>{"use strict";var Mi=Vf(),Yf=Object.prototype.hasOwnProperty,DI=Array.isArray,Ie={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:Mi.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictNullHandling:!1},OI=function(e){return e.replace(/&#(\d+);/g,function(t,r){return String.fromCharCode(parseInt(r,10))})},Yx=function(e,t){return e&&typeof e=="string"&&t.comma&&e.indexOf(",")>-1?e.split(","):e},MI="utf8=%26%2310003%3B",PI="utf8=%E2%9C%93",NI=function(t,r){var n={__proto__:null},i=r.ignoreQueryPrefix?t.replace(/^\?/,""):t;i=i.replace(/%5B/gi,"[").replace(/%5D/gi,"]");var o=r.parameterLimit===1/0?void 0:r.parameterLimit,s=i.split(r.delimiter,o),a=-1,l,u=r.charset;if(r.charsetSentinel)for(l=0;l<s.length;++l)s[l].indexOf("utf8=")===0&&(s[l]===PI?u="utf-8":s[l]===MI&&(u="iso-8859-1"),a=l,l=s.length);for(l=0;l<s.length;++l)if(l!==a){var c=s[l],f=c.indexOf("]="),p=f===-1?c.indexOf("="):f+1,h,m;p===-1?(h=r.decoder(c,Ie.decoder,u,"key"),m=r.strictNullHandling?null:""):(h=r.decoder(c.slice(0,p),Ie.decoder,u,"key"),m=Mi.maybeMap(Yx(c.slice(p+1),r),function(v){return r.decoder(v,Ie.decoder,u,"value")})),m&&r.interpretNumericEntities&&u==="iso-8859-1"&&(m=OI(String(m))),c.indexOf("[]=")>-1&&(m=DI(m)?[m]:m);var x=Yf.call(n,h);x&&r.duplicates==="combine"?n[h]=Mi.combine(n[h],m):(!x||r.duplicates==="last")&&(n[h]=m)}return n},FI=function(e,t,r,n){for(var i=n?t:Yx(t,r),o=e.length-1;o>=0;--o){var s,a=e[o];if(a==="[]"&&r.parseArrays)s=r.allowEmptyArrays&&(i===""||r.strictNullHandling&&i===null)?[]:[].concat(i);else{s=r.plainObjects?{__proto__:null}:{};var l=a.charAt(0)==="["&&a.charAt(a.length-1)==="]"?a.slice(1,-1):a,u=r.decodeDotInKeys?l.replace(/%2E/g,"."):l,c=parseInt(u,10);!r.parseArrays&&u===""?s={0:i}:!isNaN(c)&&a!==u&&String(c)===u&&c>=0&&r.parseArrays&&c<=r.arrayLimit?(s=[],s[c]=i):u!=="__proto__"&&(s[u]=i)}i=s}return i},RI=function(t,r,n,i){if(t){var o=n.allowDots?t.replace(/\.([^.[]+)/g,"[$1]"):t,s=/(\[[^[\]]*])/,a=/(\[[^[\]]*])/g,l=n.depth>0&&s.exec(o),u=l?o.slice(0,l.index):o,c=[];if(u){if(!n.plainObjects&&Yf.call(Object.prototype,u)&&!n.allowPrototypes)return;c.push(u)}for(var f=0;n.depth>0&&(l=a.exec(o))!==null&&f<n.depth;){if(f+=1,!n.plainObjects&&Yf.call(Object.prototype,l[1].slice(1,-1))&&!n.allowPrototypes)return;c.push(l[1])}if(l){if(n.strictDepth===!0)throw new RangeError("Input depth exceeded depth option of "+n.depth+" and strictDepth is true");c.push("["+o.slice(l.index)+"]")}return FI(c,r,n,i)}},LI=function(t){if(!t)return Ie;if(typeof t.allowEmptyArrays<"u"&&typeof t.allowEmptyArrays!="boolean")throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(typeof t.decodeDotInKeys<"u"&&typeof t.decodeDotInKeys!="boolean")throw new TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");if(t.decoder!==null&&typeof t.decoder<"u"&&typeof t.decoder!="function")throw new TypeError("Decoder has to be a function.");if(typeof t.charset<"u"&&t.charset!=="utf-8"&&t.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var r=typeof t.charset>"u"?Ie.charset:t.charset,n=typeof t.duplicates>"u"?Ie.duplicates:t.duplicates;if(n!=="combine"&&n!=="first"&&n!=="last")throw new TypeError("The duplicates option must be either combine, first, or last");var i=typeof t.allowDots>"u"?t.decodeDotInKeys===!0?!0:Ie.allowDots:!!t.allowDots;return{allowDots:i,allowEmptyArrays:typeof t.allowEmptyArrays=="boolean"?!!t.allowEmptyArrays:Ie.allowEmptyArrays,allowPrototypes:typeof t.allowPrototypes=="boolean"?t.allowPrototypes:Ie.allowPrototypes,allowSparse:typeof t.allowSparse=="boolean"?t.allowSparse:Ie.allowSparse,arrayLimit:typeof t.arrayLimit=="number"?t.arrayLimit:Ie.arrayLimit,charset:r,charsetSentinel:typeof t.charsetSentinel=="boolean"?t.charsetSentinel:Ie.charsetSentinel,comma:typeof t.comma=="boolean"?t.comma:Ie.comma,decodeDotInKeys:typeof t.decodeDotInKeys=="boolean"?t.decodeDotInKeys:Ie.decodeDotInKeys,decoder:typeof t.decoder=="function"?t.decoder:Ie.decoder,delimiter:typeof t.delimiter=="string"||Mi.isRegExp(t.delimiter)?t.delimiter:Ie.delimiter,depth:typeof t.depth=="number"||t.depth===!1?+t.depth:Ie.depth,duplicates:n,ignoreQueryPrefix:t.ignoreQueryPrefix===!0,interpretNumericEntities:typeof t.interpretNumericEntities=="boolean"?t.interpretNumericEntities:Ie.interpretNumericEntities,parameterLimit:typeof t.parameterLimit=="number"?t.parameterLimit:Ie.parameterLimit,parseArrays:t.parseArrays!==!1,plainObjects:typeof t.plainObjects=="boolean"?t.plainObjects:Ie.plainObjects,strictDepth:typeof t.strictDepth=="boolean"?!!t.strictDepth:Ie.strictDepth,strictNullHandling:typeof t.strictNullHandling=="boolean"?t.strictNullHandling:Ie.strictNullHandling}};Gx.exports=function(e,t){var r=LI(t);if(e===""||e===null||typeof e>"u")return r.plainObjects?{__proto__:null}:{};for(var n=typeof e=="string"?NI(e,r):e,i=r.plainObjects?{__proto__:null}:{},o=Object.keys(n),s=0;s<o.length;++s){var a=o[s],l=RI(a,n[a],r,typeof e=="string");i=Mi.merge(i,l,r)}return r.allowSparse===!0?i:Mi.compact(i)}});var Zx=N((jH,Qx)=>{"use strict";var BI=Wx(),$I=Jx(),UI=dl();Qx.exports={formats:UI,parse:$I,stringify:BI}});var tb=N(Ni=>{"use strict";var jI=py();function _t(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}var zI=/^([a-z0-9.+-]+:)/i,qI=/:[0-9]*$/,HI=/^(\/\/?(?!\/)[^?\s]*)(\?[^\s]*)?$/,VI=["<",">",'"',"`"," ","\r",`
5
- `," "],WI=["{","}","|","\\","^","`"].concat(VI),Gf=["'"].concat(WI),Xx=["%","/","?",";","#"].concat(Gf),Kx=["/","?","#"],YI=255,eb=/^[+a-z0-9A-Z_-]{0,63}$/,GI=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,JI={javascript:!0,"javascript:":!0},Jf={javascript:!0,"javascript:":!0},Pi={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},Qf=Zx();function us(e,t,r){if(e&&typeof e=="object"&&e instanceof _t)return e;var n=new _t;return n.parse(e,t,r),n}_t.prototype.parse=function(e,t,r){if(typeof e!="string")throw new TypeError("Parameter 'url' must be a string, not "+typeof e);var n=e.indexOf("?"),i=n!==-1&&n<e.indexOf("#")?"?":"#",o=e.split(i),s=/\\/g;o[0]=o[0].replace(s,"/"),e=o.join(i);var a=e;if(a=a.trim(),!r&&e.split("#").length===1){var l=HI.exec(a);if(l)return this.path=a,this.href=a,this.pathname=l[1],l[2]?(this.search=l[2],t?this.query=Qf.parse(this.search.substr(1)):this.query=this.search.substr(1)):t&&(this.search="",this.query={}),this}var u=zI.exec(a);if(u){u=u[0];var c=u.toLowerCase();this.protocol=c,a=a.substr(u.length)}if(r||u||a.match(/^\/\/[^@/]+@[^@/]+/)){var f=a.substr(0,2)==="//";f&&!(u&&Jf[u])&&(a=a.substr(2),this.slashes=!0)}if(!Jf[u]&&(f||u&&!Pi[u])){for(var p=-1,h=0;h<Kx.length;h++){var m=a.indexOf(Kx[h]);m!==-1&&(p===-1||m<p)&&(p=m)}var x,v;p===-1?v=a.lastIndexOf("@"):v=a.lastIndexOf("@",p),v!==-1&&(x=a.slice(0,v),a=a.slice(v+1),this.auth=decodeURIComponent(x)),p=-1;for(var h=0;h<Xx.length;h++){var m=a.indexOf(Xx[h]);m!==-1&&(p===-1||m<p)&&(p=m)}p===-1&&(p=a.length),this.host=a.slice(0,p),a=a.slice(p),this.parseHost(),this.hostname=this.hostname||"";var w=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!w)for(var E=this.hostname.split(/\./),h=0,b=E.length;h<b;h++){var z=E[h];if(z&&!z.match(eb)){for(var q="",A=0,R=z.length;A<R;A++)z.charCodeAt(A)>127?q+="x":q+=z[A];if(!q.match(eb)){var V=E.slice(0,h),$=E.slice(h+1),T=z.match(GI);T&&(V.push(T[1]),$.unshift(T[2])),$.length&&(a="/"+$.join(".")+a),this.hostname=V.join(".");break}}}this.hostname.length>YI?this.hostname="":this.hostname=this.hostname.toLowerCase(),w||(this.hostname=jI.toASCII(this.hostname));var fe=this.port?":"+this.port:"",B=this.hostname||"";this.host=B+fe,this.href+=this.host,w&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),a[0]!=="/"&&(a="/"+a))}if(!JI[c])for(var h=0,b=Gf.length;h<b;h++){var _=Gf[h];if(a.indexOf(_)!==-1){var I=encodeURIComponent(_);I===_&&(I=escape(_)),a=a.split(_).join(I)}}var M=a.indexOf("#");M!==-1&&(this.hash=a.substr(M),a=a.slice(0,M));var F=a.indexOf("?");if(F!==-1?(this.search=a.substr(F),this.query=a.substr(F+1),t&&(this.query=Qf.parse(this.query)),a=a.slice(0,F)):t&&(this.search="",this.query={}),a&&(this.pathname=a),Pi[c]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){var fe=this.pathname||"",W=this.search||"";this.path=fe+W}return this.href=this.format(),this};function QI(e){return typeof e=="string"&&(e=us(e)),e instanceof _t?e.format():_t.prototype.format.call(e)}_t.prototype.format=function(){var e=this.auth||"";e&&(e=encodeURIComponent(e),e=e.replace(/%3A/i,":"),e+="@");var t=this.protocol||"",r=this.pathname||"",n=this.hash||"",i=!1,o="";this.host?i=e+this.host:this.hostname&&(i=e+(this.hostname.indexOf(":")===-1?this.hostname:"["+this.hostname+"]"),this.port&&(i+=":"+this.port)),this.query&&typeof this.query=="object"&&Object.keys(this.query).length&&(o=Qf.stringify(this.query,{arrayFormat:"repeat",addQueryPrefix:!1}));var s=this.search||o&&"?"+o||"";return t&&t.substr(-1)!==":"&&(t+=":"),this.slashes||(!t||Pi[t])&&i!==!1?(i="//"+(i||""),r&&r.charAt(0)!=="/"&&(r="/"+r)):i||(i=""),n&&n.charAt(0)!=="#"&&(n="#"+n),s&&s.charAt(0)!=="?"&&(s="?"+s),r=r.replace(/[?#]/g,function(a){return encodeURIComponent(a)}),s=s.replace("#","%23"),t+i+r+s+n};function ZI(e,t){return us(e,!1,!0).resolve(t)}_t.prototype.resolve=function(e){return this.resolveObject(us(e,!1,!0)).format()};function XI(e,t){return e?us(e,!1,!0).resolveObject(t):t}_t.prototype.resolveObject=function(e){if(typeof e=="string"){var t=new _t;t.parse(e,!1,!0),e=t}for(var r=new _t,n=Object.keys(this),i=0;i<n.length;i++){var o=n[i];r[o]=this[o]}if(r.hash=e.hash,e.href==="")return r.href=r.format(),r;if(e.slashes&&!e.protocol){for(var s=Object.keys(e),a=0;a<s.length;a++){var l=s[a];l!=="protocol"&&(r[l]=e[l])}return Pi[r.protocol]&&r.hostname&&!r.pathname&&(r.pathname="/",r.path=r.pathname),r.href=r.format(),r}if(e.protocol&&e.protocol!==r.protocol){if(!Pi[e.protocol]){for(var u=Object.keys(e),c=0;c<u.length;c++){var f=u[c];r[f]=e[f]}return r.href=r.format(),r}if(r.protocol=e.protocol,!e.host&&!Jf[e.protocol]){for(var b=(e.pathname||"").split("/");b.length&&!(e.host=b.shift()););e.host||(e.host=""),e.hostname||(e.hostname=""),b[0]!==""&&b.unshift(""),b.length<2&&b.unshift(""),r.pathname=b.join("/")}else r.pathname=e.pathname;if(r.search=e.search,r.query=e.query,r.host=e.host||"",r.auth=e.auth,r.hostname=e.hostname||e.host,r.port=e.port,r.pathname||r.search){var p=r.pathname||"",h=r.search||"";r.path=p+h}return r.slashes=r.slashes||e.slashes,r.href=r.format(),r}var m=r.pathname&&r.pathname.charAt(0)==="/",x=e.host||e.pathname&&e.pathname.charAt(0)==="/",v=x||m||r.host&&e.pathname,w=v,E=r.pathname&&r.pathname.split("/")||[],b=e.pathname&&e.pathname.split("/")||[],z=r.protocol&&!Pi[r.protocol];if(z&&(r.hostname="",r.port=null,r.host&&(E[0]===""?E[0]=r.host:E.unshift(r.host)),r.host="",e.protocol&&(e.hostname=null,e.port=null,e.host&&(b[0]===""?b[0]=e.host:b.unshift(e.host)),e.host=null),v=v&&(b[0]===""||E[0]==="")),x)r.host=e.host||e.host===""?e.host:r.host,r.hostname=e.hostname||e.hostname===""?e.hostname:r.hostname,r.search=e.search,r.query=e.query,E=b;else if(b.length)E||(E=[]),E.pop(),E=E.concat(b),r.search=e.search,r.query=e.query;else if(e.search!=null){if(z){r.host=E.shift(),r.hostname=r.host;var q=r.host&&r.host.indexOf("@")>0?r.host.split("@"):!1;q&&(r.auth=q.shift(),r.hostname=q.shift(),r.host=r.hostname)}return r.search=e.search,r.query=e.query,(r.pathname!==null||r.search!==null)&&(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.href=r.format(),r}if(!E.length)return r.pathname=null,r.search?r.path="/"+r.search:r.path=null,r.href=r.format(),r;for(var A=E.slice(-1)[0],R=(r.host||e.host||E.length>1)&&(A==="."||A==="..")||A==="",V=0,$=E.length;$>=0;$--)A=E[$],A==="."?E.splice($,1):A===".."?(E.splice($,1),V++):V&&(E.splice($,1),V--);if(!v&&!w)for(;V--;V)E.unshift("..");v&&E[0]!==""&&(!E[0]||E[0].charAt(0)!=="/")&&E.unshift(""),R&&E.join("/").substr(-1)!=="/"&&E.push("");var T=E[0]===""||E[0]&&E[0].charAt(0)==="/";if(z){r.hostname=T?"":E.length?E.shift():"",r.host=r.hostname;var q=r.host&&r.host.indexOf("@")>0?r.host.split("@"):!1;q&&(r.auth=q.shift(),r.hostname=q.shift(),r.host=r.hostname)}return v=v||r.host&&E.length,v&&!T&&E.unshift(""),E.length>0?r.pathname=E.join("/"):(r.pathname=null,r.path=null),(r.pathname!==null||r.search!==null)&&(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.auth=e.auth||r.auth,r.slashes=r.slashes||e.slashes,r.href=r.format(),r};_t.prototype.parseHost=function(){var e=this.host,t=qI.exec(e);t&&(t=t[0],t!==":"&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)};Ni.parse=us;Ni.resolve=ZI;Ni.resolveObject=XI;Ni.format=QI;Ni.Url=_t});var vb=N((HH,wb)=>{"use strict";wb.exports=e=>{let t=e.match(/^[ \t]*(?=\S)/gm);return t?t.reduce((r,n)=>Math.min(r,n.length),1/0):0}});var Ab=N((WH,kb)=>{"use strict";kb.exports=function(t){var r=typeof t;if(r==="string"||t instanceof String){if(!t.trim())return!1}else if(r!=="number"&&!(t instanceof Number))return!1;return t-t+1>=0}});var Eb=N((YH,Cb)=>{var uD=Object.prototype.toString;Cb.exports=function(t){if(t===void 0)return"undefined";if(t===null)return"null";var r=typeof t;if(r==="boolean")return"boolean";if(r==="string")return"string";if(r==="number")return"number";if(r==="symbol")return"symbol";if(r==="function")return mD(t)?"generatorfunction":"function";if(cD(t))return"array";if(yD(t))return"buffer";if(gD(t))return"arguments";if(pD(t))return"date";if(fD(t))return"error";if(hD(t))return"regexp";switch(Tb(t)){case"Symbol":return"symbol";case"Promise":return"promise";case"WeakMap":return"weakmap";case"WeakSet":return"weakset";case"Map":return"map";case"Set":return"set";case"Int8Array":return"int8array";case"Uint8Array":return"uint8array";case"Uint8ClampedArray":return"uint8clampedarray";case"Int16Array":return"int16array";case"Uint16Array":return"uint16array";case"Int32Array":return"int32array";case"Uint32Array":return"uint32array";case"Float32Array":return"float32array";case"Float64Array":return"float64array"}if(dD(t))return"generator";switch(r=uD.call(t),r){case"[object Object]":return"object";case"[object Map Iterator]":return"mapiterator";case"[object Set Iterator]":return"setiterator";case"[object String Iterator]":return"stringiterator";case"[object Array Iterator]":return"arrayiterator"}return r.slice(8,-1).toLowerCase().replace(/\s/g,"")};function Tb(e){return typeof e.constructor=="function"?e.constructor.name:null}function cD(e){return Array.isArray?Array.isArray(e):e instanceof Array}function fD(e){return e instanceof Error||typeof e.message=="string"&&e.constructor&&typeof e.constructor.stackTraceLimit=="number"}function pD(e){return e instanceof Date?!0:typeof e.toDateString=="function"&&typeof e.getDate=="function"&&typeof e.setDate=="function"}function hD(e){return e instanceof RegExp?!0:typeof e.flags=="string"&&typeof e.ignoreCase=="boolean"&&typeof e.multiline=="boolean"&&typeof e.global=="boolean"}function mD(e,t){return Tb(e)==="GeneratorFunction"}function dD(e){return typeof e.throw=="function"&&typeof e.return=="function"&&typeof e.next=="function"}function gD(e){try{if(typeof e.length=="number"&&typeof e.callee=="function")return!0}catch(t){if(t.message.indexOf("callee")!==-1)return!0}return!1}function yD(e){return e.constructor&&typeof e.constructor.isBuffer=="function"?e.constructor.isBuffer(e):!1}});var Ib=N((GH,_b)=>{_b.exports=function(e){var t="Uint32Array"in e,r=e.crypto||e.msCrypto,n=r&&typeof r.getRandomValues=="function",i=t&&n;if(!i)return Math.random;var o=new Uint32Array(1),s=Math.pow(2,32);function a(){return r.getRandomValues(o),o[0]/s}return a.cryptographic=!0,a}(typeof self<"u"?self:window)});var Mb=N((JH,tp)=>{"use strict";var xD=Ab(),Db=Eb(),Ob=Ib();tp.exports=bD;tp.exports.isCrypto=!!Ob.cryptographic;var Qt={lower:"abcdefghijklmnopqrstuvwxyz",upper:"ABCDEFGHIJKLMNOPQRSTUVWXYZ",number:"0123456789",special:"~!@#$%^&()_+-={}[];',."};Qt.all=Qt.lower+Qt.upper+Qt.number+Qt.special;function bD(e,t,r){if(typeof e>"u")throw new Error("randomatic expects a string or number.");var n=!1;arguments.length===1&&(typeof e=="string"?t=e.length:xD(e)&&(r={},t=e,e="*")),Db(t)==="object"&&t.hasOwnProperty("chars")&&(r=t,e=r.chars,t=e.length,n=!0);var i=r||{},o="",s="";if(e.indexOf("?")!==-1&&(o+=i.chars),e.indexOf("a")!==-1&&(o+=Qt.lower),e.indexOf("A")!==-1&&(o+=Qt.upper),e.indexOf("0")!==-1&&(o+=Qt.number),e.indexOf("!")!==-1&&(o+=Qt.special),e.indexOf("*")!==-1&&(o+=Qt.all),n&&(o+=e),i.exclude){var a=Db(i.exclude)==="string"?i.exclude:i.exclude.join("");a=a.replace(new RegExp("[\\]]+","g"),""),o=o.replace(new RegExp("["+a+"]+","g"),""),i.exclude.indexOf("]")!==-1&&(o=o.replace(new RegExp("[\\]]+","g"),""))}for(;t--;)s+=o.charAt(parseInt(Ob()*o.length,10));return s}});var A0=N((ps,Bi)=>{var OD=200,Gb="__lodash_hash_undefined__",Jb=9007199254740991,yp="[object Arguments]",MD="[object Array]",Qb="[object Boolean]",Zb="[object Date]",PD="[object Error]",xp="[object Function]",Xb="[object GeneratorFunction]",Al="[object Map]",Kb="[object Number]",bp="[object Object]",Lb="[object Promise]",e0="[object RegExp]",Tl="[object Set]",t0="[object String]",r0="[object Symbol]",fp="[object WeakMap]",n0="[object ArrayBuffer]",Cl="[object DataView]",i0="[object Float32Array]",o0="[object Float64Array]",s0="[object Int8Array]",a0="[object Int16Array]",l0="[object Int32Array]",u0="[object Uint8Array]",c0="[object Uint8ClampedArray]",f0="[object Uint16Array]",p0="[object Uint32Array]",ND=/[\\^$.*+?()[\]{}|]/g,FD=/\w*$/,RD=/^\[object .+?Constructor\]$/,LD=/^(?:0|[1-9]\d*)$/,ke={};ke[yp]=ke[MD]=ke[n0]=ke[Cl]=ke[Qb]=ke[Zb]=ke[i0]=ke[o0]=ke[s0]=ke[a0]=ke[l0]=ke[Al]=ke[Kb]=ke[bp]=ke[e0]=ke[Tl]=ke[t0]=ke[r0]=ke[u0]=ke[c0]=ke[f0]=ke[p0]=!0;ke[PD]=ke[xp]=ke[fp]=!1;var BD=typeof global=="object"&&global&&global.Object===Object&&global,$D=typeof self=="object"&&self&&self.Object===Object&&self,xr=BD||$D||Function("return this")(),h0=typeof ps=="object"&&ps&&!ps.nodeType&&ps,Bb=h0&&typeof Bi=="object"&&Bi&&!Bi.nodeType&&Bi,UD=Bb&&Bb.exports===h0;function jD(e,t){return e.set(t[0],t[1]),e}function zD(e,t){return e.add(t),e}function qD(e,t){for(var r=-1,n=e?e.length:0;++r<n&&t(e[r],r,e)!==!1;);return e}function HD(e,t){for(var r=-1,n=t.length,i=e.length;++r<n;)e[i+r]=t[r];return e}function m0(e,t,r,n){var i=-1,o=e?e.length:0;for(n&&o&&(r=e[++i]);++i<o;)r=t(r,e[i],i,e);return r}function VD(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}function WD(e,t){return e?.[t]}function d0(e){var t=!1;if(e!=null&&typeof e.toString!="function")try{t=!!(e+"")}catch{}return t}function $b(e){var t=-1,r=Array(e.size);return e.forEach(function(n,i){r[++t]=[i,n]}),r}function wp(e,t){return function(r){return e(t(r))}}function Ub(e){var t=-1,r=Array(e.size);return e.forEach(function(n){r[++t]=n}),r}var YD=Array.prototype,GD=Function.prototype,El=Object.prototype,cp=xr["__core-js_shared__"],jb=function(){var e=/[^.]+$/.exec(cp&&cp.keys&&cp.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),g0=GD.toString,Wr=El.hasOwnProperty,_l=El.toString,JD=RegExp("^"+g0.call(Wr).replace(ND,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),zb=UD?xr.Buffer:void 0,qb=xr.Symbol,Hb=xr.Uint8Array,QD=wp(Object.getPrototypeOf,Object),ZD=Object.create,XD=El.propertyIsEnumerable,KD=YD.splice,Vb=Object.getOwnPropertySymbols,eO=zb?zb.isBuffer:void 0,tO=wp(Object.keys,Object),pp=ji(xr,"DataView"),hs=ji(xr,"Map"),hp=ji(xr,"Promise"),mp=ji(xr,"Set"),dp=ji(xr,"WeakMap"),ms=ji(Object,"create"),rO=Rn(pp),nO=Rn(hs),iO=Rn(hp),oO=Rn(mp),sO=Rn(dp),Wb=qb?qb.prototype:void 0,Yb=Wb?Wb.valueOf:void 0;function Fn(e){var t=-1,r=e?e.length:0;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function aO(){this.__data__=ms?ms(null):{}}function lO(e){return this.has(e)&&delete this.__data__[e]}function uO(e){var t=this.__data__;if(ms){var r=t[e];return r===Gb?void 0:r}return Wr.call(t,e)?t[e]:void 0}function cO(e){var t=this.__data__;return ms?t[e]!==void 0:Wr.call(t,e)}function fO(e,t){var r=this.__data__;return r[e]=ms&&t===void 0?Gb:t,this}Fn.prototype.clear=aO;Fn.prototype.delete=lO;Fn.prototype.get=uO;Fn.prototype.has=cO;Fn.prototype.set=fO;function br(e){var t=-1,r=e?e.length:0;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function pO(){this.__data__=[]}function hO(e){var t=this.__data__,r=Il(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():KD.call(t,r,1),!0}function mO(e){var t=this.__data__,r=Il(t,e);return r<0?void 0:t[r][1]}function dO(e){return Il(this.__data__,e)>-1}function gO(e,t){var r=this.__data__,n=Il(r,e);return n<0?r.push([e,t]):r[n][1]=t,this}br.prototype.clear=pO;br.prototype.delete=hO;br.prototype.get=mO;br.prototype.has=dO;br.prototype.set=gO;function $i(e){var t=-1,r=e?e.length:0;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function yO(){this.__data__={hash:new Fn,map:new(hs||br),string:new Fn}}function xO(e){return Dl(this,e).delete(e)}function bO(e){return Dl(this,e).get(e)}function wO(e){return Dl(this,e).has(e)}function vO(e,t){return Dl(this,e).set(e,t),this}$i.prototype.clear=yO;$i.prototype.delete=xO;$i.prototype.get=bO;$i.prototype.has=wO;$i.prototype.set=vO;function Ui(e){this.__data__=new br(e)}function SO(){this.__data__=new br}function kO(e){return this.__data__.delete(e)}function AO(e){return this.__data__.get(e)}function TO(e){return this.__data__.has(e)}function CO(e,t){var r=this.__data__;if(r instanceof br){var n=r.__data__;if(!hs||n.length<OD-1)return n.push([e,t]),this;r=this.__data__=new $i(n)}return r.set(e,t),this}Ui.prototype.clear=SO;Ui.prototype.delete=kO;Ui.prototype.get=AO;Ui.prototype.has=TO;Ui.prototype.set=CO;function EO(e,t){var r=Sp(e)||ZO(e)?VD(e.length,String):[],n=r.length,i=!!n;for(var o in e)(t||Wr.call(e,o))&&!(i&&(o=="length"||YO(o,n)))&&r.push(o);return r}function y0(e,t,r){var n=e[t];(!(Wr.call(e,t)&&v0(n,r))||r===void 0&&!(t in e))&&(e[t]=r)}function Il(e,t){for(var r=e.length;r--;)if(v0(e[r][0],t))return r;return-1}function _O(e,t){return e&&x0(t,kp(t),e)}function gp(e,t,r,n,i,o,s){var a;if(n&&(a=o?n(e,i,o,s):n(e)),a!==void 0)return a;if(!Ol(e))return e;var l=Sp(e);if(l){if(a=HO(e),!t)return jO(e,a)}else{var u=Nn(e),c=u==xp||u==Xb;if(KO(e))return NO(e,t);if(u==bp||u==yp||c&&!o){if(d0(e))return o?e:{};if(a=VO(c?{}:e),!t)return zO(e,_O(a,e))}else{if(!ke[u])return o?e:{};a=WO(e,u,gp,t)}}s||(s=new Ui);var f=s.get(e);if(f)return f;if(s.set(e,a),!l)var p=r?qO(e):kp(e);return qD(p||e,function(h,m){p&&(m=h,h=e[m]),y0(a,m,gp(h,t,r,n,m,e,s))}),a}function IO(e){return Ol(e)?ZD(e):{}}function DO(e,t,r){var n=t(e);return Sp(e)?n:HD(n,r(e))}function OO(e){return _l.call(e)}function MO(e){if(!Ol(e)||JO(e))return!1;var t=k0(e)||d0(e)?JD:RD;return t.test(Rn(e))}function PO(e){if(!w0(e))return tO(e);var t=[];for(var r in Object(e))Wr.call(e,r)&&r!="constructor"&&t.push(r);return t}function NO(e,t){if(t)return e.slice();var r=new e.constructor(e.length);return e.copy(r),r}function vp(e){var t=new e.constructor(e.byteLength);return new Hb(t).set(new Hb(e)),t}function FO(e,t){var r=t?vp(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}function RO(e,t,r){var n=t?r($b(e),!0):$b(e);return m0(n,jD,new e.constructor)}function LO(e){var t=new e.constructor(e.source,FD.exec(e));return t.lastIndex=e.lastIndex,t}function BO(e,t,r){var n=t?r(Ub(e),!0):Ub(e);return m0(n,zD,new e.constructor)}function $O(e){return Yb?Object(Yb.call(e)):{}}function UO(e,t){var r=t?vp(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}function jO(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r<n;)t[r]=e[r];return t}function x0(e,t,r,n){r||(r={});for(var i=-1,o=t.length;++i<o;){var s=t[i],a=n?n(r[s],e[s],s,r,e):void 0;y0(r,s,a===void 0?e[s]:a)}return r}function zO(e,t){return x0(e,b0(e),t)}function qO(e){return DO(e,kp,b0)}function Dl(e,t){var r=e.__data__;return GO(t)?r[typeof t=="string"?"string":"hash"]:r.map}function ji(e,t){var r=WD(e,t);return MO(r)?r:void 0}var b0=Vb?wp(Vb,Object):rM,Nn=OO;(pp&&Nn(new pp(new ArrayBuffer(1)))!=Cl||hs&&Nn(new hs)!=Al||hp&&Nn(hp.resolve())!=Lb||mp&&Nn(new mp)!=Tl||dp&&Nn(new dp)!=fp)&&(Nn=function(e){var t=_l.call(e),r=t==bp?e.constructor:void 0,n=r?Rn(r):void 0;if(n)switch(n){case rO:return Cl;case nO:return Al;case iO:return Lb;case oO:return Tl;case sO:return fp}return t});function HO(e){var t=e.length,r=e.constructor(t);return t&&typeof e[0]=="string"&&Wr.call(e,"index")&&(r.index=e.index,r.input=e.input),r}function VO(e){return typeof e.constructor=="function"&&!w0(e)?IO(QD(e)):{}}function WO(e,t,r,n){var i=e.constructor;switch(t){case n0:return vp(e);case Qb:case Zb:return new i(+e);case Cl:return FO(e,n);case i0:case o0:case s0:case a0:case l0:case u0:case c0:case f0:case p0:return UO(e,n);case Al:return RO(e,n,r);case Kb:case t0:return new i(e);case e0:return LO(e);case Tl:return BO(e,n,r);case r0:return $O(e)}}function YO(e,t){return t=t??Jb,!!t&&(typeof e=="number"||LD.test(e))&&e>-1&&e%1==0&&e<t}function GO(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function JO(e){return!!jb&&jb in e}function w0(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||El;return e===r}function Rn(e){if(e!=null){try{return g0.call(e)}catch{}try{return e+""}catch{}}return""}function QO(e){return gp(e,!0,!0)}function v0(e,t){return e===t||e!==e&&t!==t}function ZO(e){return XO(e)&&Wr.call(e,"callee")&&(!XD.call(e,"callee")||_l.call(e)==yp)}var Sp=Array.isArray;function S0(e){return e!=null&&eM(e.length)&&!k0(e)}function XO(e){return tM(e)&&S0(e)}var KO=eO||nM;function k0(e){var t=Ol(e)?_l.call(e):"";return t==xp||t==Xb}function eM(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=Jb}function Ol(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function tM(e){return!!e&&typeof e=="object"}function kp(e){return S0(e)?EO(e):PO(e)}function rM(){return[]}function nM(){return!1}Bi.exports=QO});var C0=N((c9,T0)=>{"use strict";T0.exports=function(e,t){t||(t={}),typeof t=="function"&&(t={cmp:t});var r=typeof t.cycles=="boolean"?t.cycles:!1,n=t.cmp&&function(o){return function(s){return function(a,l){var u={key:a,value:s[a]},c={key:l,value:s[l]};return o(u,c)}}}(t.cmp),i=[];return function o(s){if(s&&s.toJSON&&typeof s.toJSON=="function"&&(s=s.toJSON()),s!==void 0){if(typeof s=="number")return isFinite(s)?""+s:"null";if(typeof s!="object")return JSON.stringify(s);var a,l;if(Array.isArray(s)){for(l="[",a=0;a<s.length;a++)a&&(l+=","),l+=o(s[a])||"null";return l+"]"}if(s===null)return"null";if(i.indexOf(s)!==-1){if(r)return JSON.stringify("__cycle__");throw new TypeError("Converting circular structure to JSON")}var u=i.push(s)-1,c=Object.keys(s).sort(n&&n(s));for(l="",a=0;a<c.length;a++){var f=c[a],p=o(s[f]);p&&(l&&(l+=","),l+=JSON.stringify(f)+":"+p)}return i.splice(u,1),"{"+l+"}"}}(e)}});var $n=N((_V,Bn)=>{"use strict";function pw(e){return typeof e>"u"||e===null}function EP(e){return typeof e=="object"&&e!==null}function _P(e){return Array.isArray(e)?e:pw(e)?[]:[e]}function IP(e,t){var r,n,i,o;if(t)for(o=Object.keys(t),r=0,n=o.length;r<n;r+=1)i=o[r],e[i]=t[i];return e}function DP(e,t){var r="",n;for(n=0;n<t;n+=1)r+=e;return r}function OP(e){return e===0&&Number.NEGATIVE_INFINITY===1/e}Bn.exports.isNothing=pw;Bn.exports.isObject=EP;Bn.exports.toArray=_P;Bn.exports.repeat=DP;Bn.exports.isNegativeZero=OP;Bn.exports.extend=IP});var Wi=N((IV,hw)=>{"use strict";function vs(e,t){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=t,this.message=(this.reason||"(unknown reason)")+(this.mark?" "+this.mark.toString():""),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}vs.prototype=Object.create(Error.prototype);vs.prototype.constructor=vs;vs.prototype.toString=function(t){var r=this.name+": ";return r+=this.reason||"(unknown reason)",!t&&this.mark&&(r+=" "+this.mark.toString()),r};hw.exports=vs});var gw=N((DV,dw)=>{"use strict";var mw=$n();function qp(e,t,r,n,i){this.name=e,this.buffer=t,this.position=r,this.line=n,this.column=i}qp.prototype.getSnippet=function(t,r){var n,i,o,s,a;if(!this.buffer)return null;for(t=t||4,r=r||75,n="",i=this.position;i>0&&`\0\r
4
+ `+t.prev}function cl(e,t){var r=Rf(e),n=[];if(r){n.length=e.length;for(var i=0;i<e.length;i++)n[i]=yr(e,i)?t(e[i],e):""}var o=typeof Df=="function"?Df(e):[],s;if(Pi){s={};for(var a=0;a<o.length;a++)s["$"+o[a]]=o[a]}for(var l in e)yr(e,l)&&(r&&String(Number(l))===l&&l<e.length||Pi&&s["$"+l]instanceof Symbol||(Cx.call(/[^\w$]/,l)?n.push(t(l,e)+": "+t(e[l],e)):n.push(l+": "+t(e[l],e))));if(typeof Df=="function")for(var u=0;u<o.length;u++)Ex.call(e,o[u])&&n.push("["+t(o[u])+"]: "+t(e[o[u]],e));return n}});var Lx=N((BH,Rx)=>{"use strict";var Fx=On(),Di=px(),rI=Nx(),nI=Ai(),hl=Fx("%WeakMap%",!0),ml=Fx("%Map%",!0),iI=Di("WeakMap.prototype.get",!0),oI=Di("WeakMap.prototype.set",!0),sI=Di("WeakMap.prototype.has",!0),aI=Di("Map.prototype.get",!0),lI=Di("Map.prototype.set",!0),uI=Di("Map.prototype.has",!0),jf=function(e,t){for(var r=e,n;(n=r.next)!==null;r=n)if(n.key===t)return r.next=n.next,n.next=e.next,e.next=n,n},cI=function(e,t){var r=jf(e,t);return r&&r.value},fI=function(e,t,r){var n=jf(e,t);n?n.value=r:e.next={key:t,next:e.next,value:r}},pI=function(e,t){return!!jf(e,t)};Rx.exports=function(){var t,r,n,i={assert:function(o){if(!i.has(o))throw new nI("Side channel does not contain "+rI(o))},get:function(o){if(hl&&o&&(typeof o=="object"||typeof o=="function")){if(t)return iI(t,o)}else if(ml){if(r)return aI(r,o)}else if(n)return cI(n,o)},has:function(o){if(hl&&o&&(typeof o=="object"||typeof o=="function")){if(t)return sI(t,o)}else if(ml){if(r)return uI(r,o)}else if(n)return pI(n,o);return!1},set:function(o,s){hl&&o&&(typeof o=="object"||typeof o=="function")?(t||(t=new hl),oI(t,o,s)):ml?(r||(r=new ml),lI(r,o,s)):(n||(n={key:{},next:null}),fI(n,o,s))}};return i}});var dl=N(($H,Bx)=>{"use strict";var hI=String.prototype.replace,mI=/%20/g,zf={RFC1738:"RFC1738",RFC3986:"RFC3986"};Bx.exports={default:zf.RFC3986,formatters:{RFC1738:function(e){return hI.call(e,mI,"+")},RFC3986:function(e){return String(e)}},RFC1738:zf.RFC1738,RFC3986:zf.RFC3986}});var Vf=N((UH,Ux)=>{"use strict";var dI=dl(),qf=Object.prototype.hasOwnProperty,Mn=Array.isArray,Gt=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),gI=function(t){for(;t.length>1;){var r=t.pop(),n=r.obj[r.prop];if(Mn(n)){for(var i=[],o=0;o<n.length;++o)typeof n[o]<"u"&&i.push(n[o]);r.obj[r.prop]=i}}},$x=function(t,r){for(var n=r&&r.plainObjects?{__proto__:null}:{},i=0;i<t.length;++i)typeof t[i]<"u"&&(n[i]=t[i]);return n},yI=function e(t,r,n){if(!r)return t;if(typeof r!="object"&&typeof r!="function"){if(Mn(t))t.push(r);else if(t&&typeof t=="object")(n&&(n.plainObjects||n.allowPrototypes)||!qf.call(Object.prototype,r))&&(t[r]=!0);else return[t,r];return t}if(!t||typeof t!="object")return[t].concat(r);var i=t;return Mn(t)&&!Mn(r)&&(i=$x(t,n)),Mn(t)&&Mn(r)?(r.forEach(function(o,s){if(qf.call(t,s)){var a=t[s];a&&typeof a=="object"&&o&&typeof o=="object"?t[s]=e(a,o,n):t.push(o)}else t[s]=o}),t):Object.keys(r).reduce(function(o,s){var a=r[s];return qf.call(o,s)?o[s]=e(o[s],a,n):o[s]=a,o},i)},xI=function(t,r){return Object.keys(r).reduce(function(n,i){return n[i]=r[i],n},t)},bI=function(e,t,r){var n=e.replace(/\+/g," ");if(r==="iso-8859-1")return n.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(n)}catch{return n}},Hf=1024,wI=function(t,r,n,i,o){if(t.length===0)return t;var s=t;if(typeof t=="symbol"?s=Symbol.prototype.toString.call(t):typeof t!="string"&&(s=String(t)),n==="iso-8859-1")return escape(s).replace(/%u[0-9a-f]{4}/gi,function(h){return"%26%23"+parseInt(h.slice(2),16)+"%3B"});for(var a="",l=0;l<s.length;l+=Hf){for(var u=s.length>=Hf?s.slice(l,l+Hf):s,c=[],f=0;f<u.length;++f){var p=u.charCodeAt(f);if(p===45||p===46||p===95||p===126||p>=48&&p<=57||p>=65&&p<=90||p>=97&&p<=122||o===dI.RFC1738&&(p===40||p===41)){c[c.length]=u.charAt(f);continue}if(p<128){c[c.length]=Gt[p];continue}if(p<2048){c[c.length]=Gt[192|p>>6]+Gt[128|p&63];continue}if(p<55296||p>=57344){c[c.length]=Gt[224|p>>12]+Gt[128|p>>6&63]+Gt[128|p&63];continue}f+=1,p=65536+((p&1023)<<10|u.charCodeAt(f)&1023),c[c.length]=Gt[240|p>>18]+Gt[128|p>>12&63]+Gt[128|p>>6&63]+Gt[128|p&63]}a+=c.join("")}return a},vI=function(t){for(var r=[{obj:{o:t},prop:"o"}],n=[],i=0;i<r.length;++i)for(var o=r[i],s=o.obj[o.prop],a=Object.keys(s),l=0;l<a.length;++l){var u=a[l],c=s[u];typeof c=="object"&&c!==null&&n.indexOf(c)===-1&&(r.push({obj:s,prop:u}),n.push(c))}return gI(r),t},SI=function(t){return Object.prototype.toString.call(t)==="[object RegExp]"},kI=function(t){return!t||typeof t!="object"?!1:!!(t.constructor&&t.constructor.isBuffer&&t.constructor.isBuffer(t))},AI=function(t,r){return[].concat(t,r)},TI=function(t,r){if(Mn(t)){for(var n=[],i=0;i<t.length;i+=1)n.push(r(t[i]));return n}return r(t)};Ux.exports={arrayToObject:$x,assign:xI,combine:AI,compact:vI,decode:bI,encode:wI,isBuffer:kI,isRegExp:SI,maybeMap:TI,merge:yI}});var Wx=N((jH,Vx)=>{"use strict";var zx=Lx(),gl=Vf(),ls=dl(),CI=Object.prototype.hasOwnProperty,qx={brackets:function(t){return t+"[]"},comma:"comma",indices:function(t,r){return t+"["+r+"]"},repeat:function(t){return t}},Jt=Array.isArray,EI=Array.prototype.push,Hx=function(e,t){EI.apply(e,Jt(t)?t:[t])},_I=Date.prototype.toISOString,jx=ls.default,Ye={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,commaRoundTrip:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:gl.encode,encodeValuesOnly:!1,filter:void 0,format:jx,formatter:ls.formatters[jx],indices:!1,serializeDate:function(t){return _I.call(t)},skipNulls:!1,strictNullHandling:!1},II=function(t){return typeof t=="string"||typeof t=="number"||typeof t=="boolean"||typeof t=="symbol"||typeof t=="bigint"},Wf={},PI=function e(t,r,n,i,o,s,a,l,u,c,f,p,h,m,x,v,w,E){for(var b=t,z=E,q=0,A=!1;(z=z.get(Wf))!==void 0&&!A;){var R=z.get(t);if(q+=1,typeof R<"u"){if(R===q)throw new RangeError("Cyclic object value");A=!0}typeof z.get(Wf)>"u"&&(q=0)}if(typeof c=="function"?b=c(r,b):b instanceof Date?b=h(b):n==="comma"&&Jt(b)&&(b=gl.maybeMap(b,function(d){return d instanceof Date?h(d):d})),b===null){if(s)return u&&!v?u(r,Ye.encoder,w,"key",m):r;b=""}if(II(b)||gl.isBuffer(b)){if(u){var V=v?r:u(r,Ye.encoder,w,"key",m);return[x(V)+"="+x(u(b,Ye.encoder,w,"value",m))]}return[x(r)+"="+x(String(b))]}var $=[];if(typeof b>"u")return $;var T;if(n==="comma"&&Jt(b))v&&u&&(b=gl.maybeMap(b,u)),T=[{value:b.length>0?b.join(",")||null:void 0}];else if(Jt(c))T=c;else{var fe=Object.keys(b);T=f?fe.sort(f):fe}var B=l?String(r).replace(/\./g,"%2E"):String(r),_=i&&Jt(b)&&b.length===1?B+"[]":B;if(o&&Jt(b)&&b.length===0)return _+"[]";for(var I=0;I<T.length;++I){var O=T[I],F=typeof O=="object"&&O&&typeof O.value<"u"?O.value:b[O];if(!(a&&F===null)){var W=p&&l?String(O).replace(/\./g,"%2E"):String(O),M=Jt(b)?typeof n=="function"?n(_,W):_:_+(p?"."+W:"["+W+"]");E.set(t,q);var U=zx();U.set(Wf,E),Hx($,e(F,M,n,i,o,s,a,l,n==="comma"&&v&&Jt(b)?null:u,c,f,p,h,m,x,v,w,U))}}return $},DI=function(t){if(!t)return Ye;if(typeof t.allowEmptyArrays<"u"&&typeof t.allowEmptyArrays!="boolean")throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(typeof t.encodeDotInKeys<"u"&&typeof t.encodeDotInKeys!="boolean")throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");if(t.encoder!==null&&typeof t.encoder<"u"&&typeof t.encoder!="function")throw new TypeError("Encoder has to be a function.");var r=t.charset||Ye.charset;if(typeof t.charset<"u"&&t.charset!=="utf-8"&&t.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var n=ls.default;if(typeof t.format<"u"){if(!CI.call(ls.formatters,t.format))throw new TypeError("Unknown format option provided.");n=t.format}var i=ls.formatters[n],o=Ye.filter;(typeof t.filter=="function"||Jt(t.filter))&&(o=t.filter);var s;if(t.arrayFormat in qx?s=t.arrayFormat:"indices"in t?s=t.indices?"indices":"repeat":s=Ye.arrayFormat,"commaRoundTrip"in t&&typeof t.commaRoundTrip!="boolean")throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var a=typeof t.allowDots>"u"?t.encodeDotInKeys===!0?!0:Ye.allowDots:!!t.allowDots;return{addQueryPrefix:typeof t.addQueryPrefix=="boolean"?t.addQueryPrefix:Ye.addQueryPrefix,allowDots:a,allowEmptyArrays:typeof t.allowEmptyArrays=="boolean"?!!t.allowEmptyArrays:Ye.allowEmptyArrays,arrayFormat:s,charset:r,charsetSentinel:typeof t.charsetSentinel=="boolean"?t.charsetSentinel:Ye.charsetSentinel,commaRoundTrip:!!t.commaRoundTrip,delimiter:typeof t.delimiter>"u"?Ye.delimiter:t.delimiter,encode:typeof t.encode=="boolean"?t.encode:Ye.encode,encodeDotInKeys:typeof t.encodeDotInKeys=="boolean"?t.encodeDotInKeys:Ye.encodeDotInKeys,encoder:typeof t.encoder=="function"?t.encoder:Ye.encoder,encodeValuesOnly:typeof t.encodeValuesOnly=="boolean"?t.encodeValuesOnly:Ye.encodeValuesOnly,filter:o,format:n,formatter:i,serializeDate:typeof t.serializeDate=="function"?t.serializeDate:Ye.serializeDate,skipNulls:typeof t.skipNulls=="boolean"?t.skipNulls:Ye.skipNulls,sort:typeof t.sort=="function"?t.sort:null,strictNullHandling:typeof t.strictNullHandling=="boolean"?t.strictNullHandling:Ye.strictNullHandling}};Vx.exports=function(e,t){var r=e,n=DI(t),i,o;typeof n.filter=="function"?(o=n.filter,r=o("",r)):Jt(n.filter)&&(o=n.filter,i=o);var s=[];if(typeof r!="object"||r===null)return"";var a=qx[n.arrayFormat],l=a==="comma"&&n.commaRoundTrip;i||(i=Object.keys(r)),n.sort&&i.sort(n.sort);for(var u=zx(),c=0;c<i.length;++c){var f=i[c],p=r[f];n.skipNulls&&p===null||Hx(s,PI(p,f,a,l,n.allowEmptyArrays,n.strictNullHandling,n.skipNulls,n.encodeDotInKeys,n.encode?n.encoder:null,n.filter,n.sort,n.allowDots,n.serializeDate,n.format,n.formatter,n.encodeValuesOnly,n.charset,u))}var h=s.join(n.delimiter),m=n.addQueryPrefix===!0?"?":"";return n.charsetSentinel&&(n.charset==="iso-8859-1"?m+="utf8=%26%2310003%3B&":m+="utf8=%E2%9C%93&"),h.length>0?m+h:""}});var Jx=N((zH,Gx)=>{"use strict";var Oi=Vf(),Yf=Object.prototype.hasOwnProperty,OI=Array.isArray,Ie={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:Oi.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictNullHandling:!1},MI=function(e){return e.replace(/&#(\d+);/g,function(t,r){return String.fromCharCode(parseInt(r,10))})},Yx=function(e,t){return e&&typeof e=="string"&&t.comma&&e.indexOf(",")>-1?e.split(","):e},NI="utf8=%26%2310003%3B",FI="utf8=%E2%9C%93",RI=function(t,r){var n={__proto__:null},i=r.ignoreQueryPrefix?t.replace(/^\?/,""):t;i=i.replace(/%5B/gi,"[").replace(/%5D/gi,"]");var o=r.parameterLimit===1/0?void 0:r.parameterLimit,s=i.split(r.delimiter,o),a=-1,l,u=r.charset;if(r.charsetSentinel)for(l=0;l<s.length;++l)s[l].indexOf("utf8=")===0&&(s[l]===FI?u="utf-8":s[l]===NI&&(u="iso-8859-1"),a=l,l=s.length);for(l=0;l<s.length;++l)if(l!==a){var c=s[l],f=c.indexOf("]="),p=f===-1?c.indexOf("="):f+1,h,m;p===-1?(h=r.decoder(c,Ie.decoder,u,"key"),m=r.strictNullHandling?null:""):(h=r.decoder(c.slice(0,p),Ie.decoder,u,"key"),m=Oi.maybeMap(Yx(c.slice(p+1),r),function(v){return r.decoder(v,Ie.decoder,u,"value")})),m&&r.interpretNumericEntities&&u==="iso-8859-1"&&(m=MI(String(m))),c.indexOf("[]=")>-1&&(m=OI(m)?[m]:m);var x=Yf.call(n,h);x&&r.duplicates==="combine"?n[h]=Oi.combine(n[h],m):(!x||r.duplicates==="last")&&(n[h]=m)}return n},LI=function(e,t,r,n){for(var i=n?t:Yx(t,r),o=e.length-1;o>=0;--o){var s,a=e[o];if(a==="[]"&&r.parseArrays)s=r.allowEmptyArrays&&(i===""||r.strictNullHandling&&i===null)?[]:[].concat(i);else{s=r.plainObjects?{__proto__:null}:{};var l=a.charAt(0)==="["&&a.charAt(a.length-1)==="]"?a.slice(1,-1):a,u=r.decodeDotInKeys?l.replace(/%2E/g,"."):l,c=parseInt(u,10);!r.parseArrays&&u===""?s={0:i}:!isNaN(c)&&a!==u&&String(c)===u&&c>=0&&r.parseArrays&&c<=r.arrayLimit?(s=[],s[c]=i):u!=="__proto__"&&(s[u]=i)}i=s}return i},BI=function(t,r,n,i){if(t){var o=n.allowDots?t.replace(/\.([^.[]+)/g,"[$1]"):t,s=/(\[[^[\]]*])/,a=/(\[[^[\]]*])/g,l=n.depth>0&&s.exec(o),u=l?o.slice(0,l.index):o,c=[];if(u){if(!n.plainObjects&&Yf.call(Object.prototype,u)&&!n.allowPrototypes)return;c.push(u)}for(var f=0;n.depth>0&&(l=a.exec(o))!==null&&f<n.depth;){if(f+=1,!n.plainObjects&&Yf.call(Object.prototype,l[1].slice(1,-1))&&!n.allowPrototypes)return;c.push(l[1])}if(l){if(n.strictDepth===!0)throw new RangeError("Input depth exceeded depth option of "+n.depth+" and strictDepth is true");c.push("["+o.slice(l.index)+"]")}return LI(c,r,n,i)}},$I=function(t){if(!t)return Ie;if(typeof t.allowEmptyArrays<"u"&&typeof t.allowEmptyArrays!="boolean")throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(typeof t.decodeDotInKeys<"u"&&typeof t.decodeDotInKeys!="boolean")throw new TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");if(t.decoder!==null&&typeof t.decoder<"u"&&typeof t.decoder!="function")throw new TypeError("Decoder has to be a function.");if(typeof t.charset<"u"&&t.charset!=="utf-8"&&t.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var r=typeof t.charset>"u"?Ie.charset:t.charset,n=typeof t.duplicates>"u"?Ie.duplicates:t.duplicates;if(n!=="combine"&&n!=="first"&&n!=="last")throw new TypeError("The duplicates option must be either combine, first, or last");var i=typeof t.allowDots>"u"?t.decodeDotInKeys===!0?!0:Ie.allowDots:!!t.allowDots;return{allowDots:i,allowEmptyArrays:typeof t.allowEmptyArrays=="boolean"?!!t.allowEmptyArrays:Ie.allowEmptyArrays,allowPrototypes:typeof t.allowPrototypes=="boolean"?t.allowPrototypes:Ie.allowPrototypes,allowSparse:typeof t.allowSparse=="boolean"?t.allowSparse:Ie.allowSparse,arrayLimit:typeof t.arrayLimit=="number"?t.arrayLimit:Ie.arrayLimit,charset:r,charsetSentinel:typeof t.charsetSentinel=="boolean"?t.charsetSentinel:Ie.charsetSentinel,comma:typeof t.comma=="boolean"?t.comma:Ie.comma,decodeDotInKeys:typeof t.decodeDotInKeys=="boolean"?t.decodeDotInKeys:Ie.decodeDotInKeys,decoder:typeof t.decoder=="function"?t.decoder:Ie.decoder,delimiter:typeof t.delimiter=="string"||Oi.isRegExp(t.delimiter)?t.delimiter:Ie.delimiter,depth:typeof t.depth=="number"||t.depth===!1?+t.depth:Ie.depth,duplicates:n,ignoreQueryPrefix:t.ignoreQueryPrefix===!0,interpretNumericEntities:typeof t.interpretNumericEntities=="boolean"?t.interpretNumericEntities:Ie.interpretNumericEntities,parameterLimit:typeof t.parameterLimit=="number"?t.parameterLimit:Ie.parameterLimit,parseArrays:t.parseArrays!==!1,plainObjects:typeof t.plainObjects=="boolean"?t.plainObjects:Ie.plainObjects,strictDepth:typeof t.strictDepth=="boolean"?!!t.strictDepth:Ie.strictDepth,strictNullHandling:typeof t.strictNullHandling=="boolean"?t.strictNullHandling:Ie.strictNullHandling}};Gx.exports=function(e,t){var r=$I(t);if(e===""||e===null||typeof e>"u")return r.plainObjects?{__proto__:null}:{};for(var n=typeof e=="string"?RI(e,r):e,i=r.plainObjects?{__proto__:null}:{},o=Object.keys(n),s=0;s<o.length;++s){var a=o[s],l=BI(a,n[a],r,typeof e=="string");i=Oi.merge(i,l,r)}return r.allowSparse===!0?i:Oi.compact(i)}});var Zx=N((qH,Qx)=>{"use strict";var UI=Wx(),jI=Jx(),zI=dl();Qx.exports={formats:zI,parse:jI,stringify:UI}});var tb=N(Ni=>{"use strict";var qI=py();function _t(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}var HI=/^([a-z0-9.+-]+:)/i,VI=/:[0-9]*$/,WI=/^(\/\/?(?!\/)[^?\s]*)(\?[^\s]*)?$/,YI=["<",">",'"',"`"," ","\r",`
5
+ `," "],GI=["{","}","|","\\","^","`"].concat(YI),Gf=["'"].concat(GI),Xx=["%","/","?",";","#"].concat(Gf),Kx=["/","?","#"],JI=255,eb=/^[+a-z0-9A-Z_-]{0,63}$/,QI=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,ZI={javascript:!0,"javascript:":!0},Jf={javascript:!0,"javascript:":!0},Mi={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},Qf=Zx();function us(e,t,r){if(e&&typeof e=="object"&&e instanceof _t)return e;var n=new _t;return n.parse(e,t,r),n}_t.prototype.parse=function(e,t,r){if(typeof e!="string")throw new TypeError("Parameter 'url' must be a string, not "+typeof e);var n=e.indexOf("?"),i=n!==-1&&n<e.indexOf("#")?"?":"#",o=e.split(i),s=/\\/g;o[0]=o[0].replace(s,"/"),e=o.join(i);var a=e;if(a=a.trim(),!r&&e.split("#").length===1){var l=WI.exec(a);if(l)return this.path=a,this.href=a,this.pathname=l[1],l[2]?(this.search=l[2],t?this.query=Qf.parse(this.search.substr(1)):this.query=this.search.substr(1)):t&&(this.search="",this.query={}),this}var u=HI.exec(a);if(u){u=u[0];var c=u.toLowerCase();this.protocol=c,a=a.substr(u.length)}if(r||u||a.match(/^\/\/[^@/]+@[^@/]+/)){var f=a.substr(0,2)==="//";f&&!(u&&Jf[u])&&(a=a.substr(2),this.slashes=!0)}if(!Jf[u]&&(f||u&&!Mi[u])){for(var p=-1,h=0;h<Kx.length;h++){var m=a.indexOf(Kx[h]);m!==-1&&(p===-1||m<p)&&(p=m)}var x,v;p===-1?v=a.lastIndexOf("@"):v=a.lastIndexOf("@",p),v!==-1&&(x=a.slice(0,v),a=a.slice(v+1),this.auth=decodeURIComponent(x)),p=-1;for(var h=0;h<Xx.length;h++){var m=a.indexOf(Xx[h]);m!==-1&&(p===-1||m<p)&&(p=m)}p===-1&&(p=a.length),this.host=a.slice(0,p),a=a.slice(p),this.parseHost(),this.hostname=this.hostname||"";var w=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!w)for(var E=this.hostname.split(/\./),h=0,b=E.length;h<b;h++){var z=E[h];if(z&&!z.match(eb)){for(var q="",A=0,R=z.length;A<R;A++)z.charCodeAt(A)>127?q+="x":q+=z[A];if(!q.match(eb)){var V=E.slice(0,h),$=E.slice(h+1),T=z.match(QI);T&&(V.push(T[1]),$.unshift(T[2])),$.length&&(a="/"+$.join(".")+a),this.hostname=V.join(".");break}}}this.hostname.length>JI?this.hostname="":this.hostname=this.hostname.toLowerCase(),w||(this.hostname=qI.toASCII(this.hostname));var fe=this.port?":"+this.port:"",B=this.hostname||"";this.host=B+fe,this.href+=this.host,w&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),a[0]!=="/"&&(a="/"+a))}if(!ZI[c])for(var h=0,b=Gf.length;h<b;h++){var _=Gf[h];if(a.indexOf(_)!==-1){var I=encodeURIComponent(_);I===_&&(I=escape(_)),a=a.split(_).join(I)}}var O=a.indexOf("#");O!==-1&&(this.hash=a.substr(O),a=a.slice(0,O));var F=a.indexOf("?");if(F!==-1?(this.search=a.substr(F),this.query=a.substr(F+1),t&&(this.query=Qf.parse(this.query)),a=a.slice(0,F)):t&&(this.search="",this.query={}),a&&(this.pathname=a),Mi[c]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){var fe=this.pathname||"",W=this.search||"";this.path=fe+W}return this.href=this.format(),this};function XI(e){return typeof e=="string"&&(e=us(e)),e instanceof _t?e.format():_t.prototype.format.call(e)}_t.prototype.format=function(){var e=this.auth||"";e&&(e=encodeURIComponent(e),e=e.replace(/%3A/i,":"),e+="@");var t=this.protocol||"",r=this.pathname||"",n=this.hash||"",i=!1,o="";this.host?i=e+this.host:this.hostname&&(i=e+(this.hostname.indexOf(":")===-1?this.hostname:"["+this.hostname+"]"),this.port&&(i+=":"+this.port)),this.query&&typeof this.query=="object"&&Object.keys(this.query).length&&(o=Qf.stringify(this.query,{arrayFormat:"repeat",addQueryPrefix:!1}));var s=this.search||o&&"?"+o||"";return t&&t.substr(-1)!==":"&&(t+=":"),this.slashes||(!t||Mi[t])&&i!==!1?(i="//"+(i||""),r&&r.charAt(0)!=="/"&&(r="/"+r)):i||(i=""),n&&n.charAt(0)!=="#"&&(n="#"+n),s&&s.charAt(0)!=="?"&&(s="?"+s),r=r.replace(/[?#]/g,function(a){return encodeURIComponent(a)}),s=s.replace("#","%23"),t+i+r+s+n};function KI(e,t){return us(e,!1,!0).resolve(t)}_t.prototype.resolve=function(e){return this.resolveObject(us(e,!1,!0)).format()};function eP(e,t){return e?us(e,!1,!0).resolveObject(t):t}_t.prototype.resolveObject=function(e){if(typeof e=="string"){var t=new _t;t.parse(e,!1,!0),e=t}for(var r=new _t,n=Object.keys(this),i=0;i<n.length;i++){var o=n[i];r[o]=this[o]}if(r.hash=e.hash,e.href==="")return r.href=r.format(),r;if(e.slashes&&!e.protocol){for(var s=Object.keys(e),a=0;a<s.length;a++){var l=s[a];l!=="protocol"&&(r[l]=e[l])}return Mi[r.protocol]&&r.hostname&&!r.pathname&&(r.pathname="/",r.path=r.pathname),r.href=r.format(),r}if(e.protocol&&e.protocol!==r.protocol){if(!Mi[e.protocol]){for(var u=Object.keys(e),c=0;c<u.length;c++){var f=u[c];r[f]=e[f]}return r.href=r.format(),r}if(r.protocol=e.protocol,!e.host&&!Jf[e.protocol]){for(var b=(e.pathname||"").split("/");b.length&&!(e.host=b.shift()););e.host||(e.host=""),e.hostname||(e.hostname=""),b[0]!==""&&b.unshift(""),b.length<2&&b.unshift(""),r.pathname=b.join("/")}else r.pathname=e.pathname;if(r.search=e.search,r.query=e.query,r.host=e.host||"",r.auth=e.auth,r.hostname=e.hostname||e.host,r.port=e.port,r.pathname||r.search){var p=r.pathname||"",h=r.search||"";r.path=p+h}return r.slashes=r.slashes||e.slashes,r.href=r.format(),r}var m=r.pathname&&r.pathname.charAt(0)==="/",x=e.host||e.pathname&&e.pathname.charAt(0)==="/",v=x||m||r.host&&e.pathname,w=v,E=r.pathname&&r.pathname.split("/")||[],b=e.pathname&&e.pathname.split("/")||[],z=r.protocol&&!Mi[r.protocol];if(z&&(r.hostname="",r.port=null,r.host&&(E[0]===""?E[0]=r.host:E.unshift(r.host)),r.host="",e.protocol&&(e.hostname=null,e.port=null,e.host&&(b[0]===""?b[0]=e.host:b.unshift(e.host)),e.host=null),v=v&&(b[0]===""||E[0]==="")),x)r.host=e.host||e.host===""?e.host:r.host,r.hostname=e.hostname||e.hostname===""?e.hostname:r.hostname,r.search=e.search,r.query=e.query,E=b;else if(b.length)E||(E=[]),E.pop(),E=E.concat(b),r.search=e.search,r.query=e.query;else if(e.search!=null){if(z){r.host=E.shift(),r.hostname=r.host;var q=r.host&&r.host.indexOf("@")>0?r.host.split("@"):!1;q&&(r.auth=q.shift(),r.hostname=q.shift(),r.host=r.hostname)}return r.search=e.search,r.query=e.query,(r.pathname!==null||r.search!==null)&&(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.href=r.format(),r}if(!E.length)return r.pathname=null,r.search?r.path="/"+r.search:r.path=null,r.href=r.format(),r;for(var A=E.slice(-1)[0],R=(r.host||e.host||E.length>1)&&(A==="."||A==="..")||A==="",V=0,$=E.length;$>=0;$--)A=E[$],A==="."?E.splice($,1):A===".."?(E.splice($,1),V++):V&&(E.splice($,1),V--);if(!v&&!w)for(;V--;V)E.unshift("..");v&&E[0]!==""&&(!E[0]||E[0].charAt(0)!=="/")&&E.unshift(""),R&&E.join("/").substr(-1)!=="/"&&E.push("");var T=E[0]===""||E[0]&&E[0].charAt(0)==="/";if(z){r.hostname=T?"":E.length?E.shift():"",r.host=r.hostname;var q=r.host&&r.host.indexOf("@")>0?r.host.split("@"):!1;q&&(r.auth=q.shift(),r.hostname=q.shift(),r.host=r.hostname)}return v=v||r.host&&E.length,v&&!T&&E.unshift(""),E.length>0?r.pathname=E.join("/"):(r.pathname=null,r.path=null),(r.pathname!==null||r.search!==null)&&(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.auth=e.auth||r.auth,r.slashes=r.slashes||e.slashes,r.href=r.format(),r};_t.prototype.parseHost=function(){var e=this.host,t=VI.exec(e);t&&(t=t[0],t!==":"&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)};Ni.parse=us;Ni.resolve=KI;Ni.resolveObject=eP;Ni.format=XI;Ni.Url=_t});var vb=N((WH,wb)=>{"use strict";wb.exports=e=>{let t=e.match(/^[ \t]*(?=\S)/gm);return t?t.reduce((r,n)=>Math.min(r,n.length),1/0):0}});var Ab=N((GH,kb)=>{"use strict";kb.exports=function(t){var r=typeof t;if(r==="string"||t instanceof String){if(!t.trim())return!1}else if(r!=="number"&&!(t instanceof Number))return!1;return t-t+1>=0}});var Eb=N((JH,Cb)=>{var fP=Object.prototype.toString;Cb.exports=function(t){if(t===void 0)return"undefined";if(t===null)return"null";var r=typeof t;if(r==="boolean")return"boolean";if(r==="string")return"string";if(r==="number")return"number";if(r==="symbol")return"symbol";if(r==="function")return gP(t)?"generatorfunction":"function";if(pP(t))return"array";if(bP(t))return"buffer";if(xP(t))return"arguments";if(mP(t))return"date";if(hP(t))return"error";if(dP(t))return"regexp";switch(Tb(t)){case"Symbol":return"symbol";case"Promise":return"promise";case"WeakMap":return"weakmap";case"WeakSet":return"weakset";case"Map":return"map";case"Set":return"set";case"Int8Array":return"int8array";case"Uint8Array":return"uint8array";case"Uint8ClampedArray":return"uint8clampedarray";case"Int16Array":return"int16array";case"Uint16Array":return"uint16array";case"Int32Array":return"int32array";case"Uint32Array":return"uint32array";case"Float32Array":return"float32array";case"Float64Array":return"float64array"}if(yP(t))return"generator";switch(r=fP.call(t),r){case"[object Object]":return"object";case"[object Map Iterator]":return"mapiterator";case"[object Set Iterator]":return"setiterator";case"[object String Iterator]":return"stringiterator";case"[object Array Iterator]":return"arrayiterator"}return r.slice(8,-1).toLowerCase().replace(/\s/g,"")};function Tb(e){return typeof e.constructor=="function"?e.constructor.name:null}function pP(e){return Array.isArray?Array.isArray(e):e instanceof Array}function hP(e){return e instanceof Error||typeof e.message=="string"&&e.constructor&&typeof e.constructor.stackTraceLimit=="number"}function mP(e){return e instanceof Date?!0:typeof e.toDateString=="function"&&typeof e.getDate=="function"&&typeof e.setDate=="function"}function dP(e){return e instanceof RegExp?!0:typeof e.flags=="string"&&typeof e.ignoreCase=="boolean"&&typeof e.multiline=="boolean"&&typeof e.global=="boolean"}function gP(e,t){return Tb(e)==="GeneratorFunction"}function yP(e){return typeof e.throw=="function"&&typeof e.return=="function"&&typeof e.next=="function"}function xP(e){try{if(typeof e.length=="number"&&typeof e.callee=="function")return!0}catch(t){if(t.message.indexOf("callee")!==-1)return!0}return!1}function bP(e){return e.constructor&&typeof e.constructor.isBuffer=="function"?e.constructor.isBuffer(e):!1}});var Ib=N((QH,_b)=>{_b.exports=function(e){var t="Uint32Array"in e,r=e.crypto||e.msCrypto,n=r&&typeof r.getRandomValues=="function",i=t&&n;if(!i)return Math.random;var o=new Uint32Array(1),s=Math.pow(2,32);function a(){return r.getRandomValues(o),o[0]/s}return a.cryptographic=!0,a}(typeof self<"u"?self:window)});var Ob=N((ZH,tp)=>{"use strict";var wP=Ab(),Pb=Eb(),Db=Ib();tp.exports=vP;tp.exports.isCrypto=!!Db.cryptographic;var Qt={lower:"abcdefghijklmnopqrstuvwxyz",upper:"ABCDEFGHIJKLMNOPQRSTUVWXYZ",number:"0123456789",special:"~!@#$%^&()_+-={}[];',."};Qt.all=Qt.lower+Qt.upper+Qt.number+Qt.special;function vP(e,t,r){if(typeof e>"u")throw new Error("randomatic expects a string or number.");var n=!1;arguments.length===1&&(typeof e=="string"?t=e.length:wP(e)&&(r={},t=e,e="*")),Pb(t)==="object"&&t.hasOwnProperty("chars")&&(r=t,e=r.chars,t=e.length,n=!0);var i=r||{},o="",s="";if(e.indexOf("?")!==-1&&(o+=i.chars),e.indexOf("a")!==-1&&(o+=Qt.lower),e.indexOf("A")!==-1&&(o+=Qt.upper),e.indexOf("0")!==-1&&(o+=Qt.number),e.indexOf("!")!==-1&&(o+=Qt.special),e.indexOf("*")!==-1&&(o+=Qt.all),n&&(o+=e),i.exclude){var a=Pb(i.exclude)==="string"?i.exclude:i.exclude.join("");a=a.replace(new RegExp("[\\]]+","g"),""),o=o.replace(new RegExp("["+a+"]+","g"),""),i.exclude.indexOf("]")!==-1&&(o=o.replace(new RegExp("[\\]]+","g"),""))}for(;t--;)s+=o.charAt(parseInt(Db()*o.length,10));return s}});var A0=N((ps,Bi)=>{var MP=200,Gb="__lodash_hash_undefined__",Jb=9007199254740991,yp="[object Arguments]",NP="[object Array]",Qb="[object Boolean]",Zb="[object Date]",FP="[object Error]",xp="[object Function]",Xb="[object GeneratorFunction]",Al="[object Map]",Kb="[object Number]",bp="[object Object]",Lb="[object Promise]",e0="[object RegExp]",Tl="[object Set]",t0="[object String]",r0="[object Symbol]",fp="[object WeakMap]",n0="[object ArrayBuffer]",Cl="[object DataView]",i0="[object Float32Array]",o0="[object Float64Array]",s0="[object Int8Array]",a0="[object Int16Array]",l0="[object Int32Array]",u0="[object Uint8Array]",c0="[object Uint8ClampedArray]",f0="[object Uint16Array]",p0="[object Uint32Array]",RP=/[\\^$.*+?()[\]{}|]/g,LP=/\w*$/,BP=/^\[object .+?Constructor\]$/,$P=/^(?:0|[1-9]\d*)$/,ke={};ke[yp]=ke[NP]=ke[n0]=ke[Cl]=ke[Qb]=ke[Zb]=ke[i0]=ke[o0]=ke[s0]=ke[a0]=ke[l0]=ke[Al]=ke[Kb]=ke[bp]=ke[e0]=ke[Tl]=ke[t0]=ke[r0]=ke[u0]=ke[c0]=ke[f0]=ke[p0]=!0;ke[FP]=ke[xp]=ke[fp]=!1;var UP=typeof global=="object"&&global&&global.Object===Object&&global,jP=typeof self=="object"&&self&&self.Object===Object&&self,xr=UP||jP||Function("return this")(),h0=typeof ps=="object"&&ps&&!ps.nodeType&&ps,Bb=h0&&typeof Bi=="object"&&Bi&&!Bi.nodeType&&Bi,zP=Bb&&Bb.exports===h0;function qP(e,t){return e.set(t[0],t[1]),e}function HP(e,t){return e.add(t),e}function VP(e,t){for(var r=-1,n=e?e.length:0;++r<n&&t(e[r],r,e)!==!1;);return e}function WP(e,t){for(var r=-1,n=t.length,i=e.length;++r<n;)e[i+r]=t[r];return e}function m0(e,t,r,n){var i=-1,o=e?e.length:0;for(n&&o&&(r=e[++i]);++i<o;)r=t(r,e[i],i,e);return r}function YP(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}function GP(e,t){return e?.[t]}function d0(e){var t=!1;if(e!=null&&typeof e.toString!="function")try{t=!!(e+"")}catch{}return t}function $b(e){var t=-1,r=Array(e.size);return e.forEach(function(n,i){r[++t]=[i,n]}),r}function wp(e,t){return function(r){return e(t(r))}}function Ub(e){var t=-1,r=Array(e.size);return e.forEach(function(n){r[++t]=n}),r}var JP=Array.prototype,QP=Function.prototype,El=Object.prototype,cp=xr["__core-js_shared__"],jb=function(){var e=/[^.]+$/.exec(cp&&cp.keys&&cp.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),g0=QP.toString,Wr=El.hasOwnProperty,_l=El.toString,ZP=RegExp("^"+g0.call(Wr).replace(RP,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),zb=zP?xr.Buffer:void 0,qb=xr.Symbol,Hb=xr.Uint8Array,XP=wp(Object.getPrototypeOf,Object),KP=Object.create,eD=El.propertyIsEnumerable,tD=JP.splice,Vb=Object.getOwnPropertySymbols,rD=zb?zb.isBuffer:void 0,nD=wp(Object.keys,Object),pp=ji(xr,"DataView"),hs=ji(xr,"Map"),hp=ji(xr,"Promise"),mp=ji(xr,"Set"),dp=ji(xr,"WeakMap"),ms=ji(Object,"create"),iD=Rn(pp),oD=Rn(hs),sD=Rn(hp),aD=Rn(mp),lD=Rn(dp),Wb=qb?qb.prototype:void 0,Yb=Wb?Wb.valueOf:void 0;function Fn(e){var t=-1,r=e?e.length:0;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function uD(){this.__data__=ms?ms(null):{}}function cD(e){return this.has(e)&&delete this.__data__[e]}function fD(e){var t=this.__data__;if(ms){var r=t[e];return r===Gb?void 0:r}return Wr.call(t,e)?t[e]:void 0}function pD(e){var t=this.__data__;return ms?t[e]!==void 0:Wr.call(t,e)}function hD(e,t){var r=this.__data__;return r[e]=ms&&t===void 0?Gb:t,this}Fn.prototype.clear=uD;Fn.prototype.delete=cD;Fn.prototype.get=fD;Fn.prototype.has=pD;Fn.prototype.set=hD;function br(e){var t=-1,r=e?e.length:0;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function mD(){this.__data__=[]}function dD(e){var t=this.__data__,r=Il(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():tD.call(t,r,1),!0}function gD(e){var t=this.__data__,r=Il(t,e);return r<0?void 0:t[r][1]}function yD(e){return Il(this.__data__,e)>-1}function xD(e,t){var r=this.__data__,n=Il(r,e);return n<0?r.push([e,t]):r[n][1]=t,this}br.prototype.clear=mD;br.prototype.delete=dD;br.prototype.get=gD;br.prototype.has=yD;br.prototype.set=xD;function $i(e){var t=-1,r=e?e.length:0;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function bD(){this.__data__={hash:new Fn,map:new(hs||br),string:new Fn}}function wD(e){return Pl(this,e).delete(e)}function vD(e){return Pl(this,e).get(e)}function SD(e){return Pl(this,e).has(e)}function kD(e,t){return Pl(this,e).set(e,t),this}$i.prototype.clear=bD;$i.prototype.delete=wD;$i.prototype.get=vD;$i.prototype.has=SD;$i.prototype.set=kD;function Ui(e){this.__data__=new br(e)}function AD(){this.__data__=new br}function TD(e){return this.__data__.delete(e)}function CD(e){return this.__data__.get(e)}function ED(e){return this.__data__.has(e)}function _D(e,t){var r=this.__data__;if(r instanceof br){var n=r.__data__;if(!hs||n.length<MP-1)return n.push([e,t]),this;r=this.__data__=new $i(n)}return r.set(e,t),this}Ui.prototype.clear=AD;Ui.prototype.delete=TD;Ui.prototype.get=CD;Ui.prototype.has=ED;Ui.prototype.set=_D;function ID(e,t){var r=Sp(e)||KD(e)?YP(e.length,String):[],n=r.length,i=!!n;for(var o in e)(t||Wr.call(e,o))&&!(i&&(o=="length"||JD(o,n)))&&r.push(o);return r}function y0(e,t,r){var n=e[t];(!(Wr.call(e,t)&&v0(n,r))||r===void 0&&!(t in e))&&(e[t]=r)}function Il(e,t){for(var r=e.length;r--;)if(v0(e[r][0],t))return r;return-1}function PD(e,t){return e&&x0(t,kp(t),e)}function gp(e,t,r,n,i,o,s){var a;if(n&&(a=o?n(e,i,o,s):n(e)),a!==void 0)return a;if(!Dl(e))return e;var l=Sp(e);if(l){if(a=WD(e),!t)return qD(e,a)}else{var u=Nn(e),c=u==xp||u==Xb;if(tO(e))return RD(e,t);if(u==bp||u==yp||c&&!o){if(d0(e))return o?e:{};if(a=YD(c?{}:e),!t)return HD(e,PD(a,e))}else{if(!ke[u])return o?e:{};a=GD(e,u,gp,t)}}s||(s=new Ui);var f=s.get(e);if(f)return f;if(s.set(e,a),!l)var p=r?VD(e):kp(e);return VP(p||e,function(h,m){p&&(m=h,h=e[m]),y0(a,m,gp(h,t,r,n,m,e,s))}),a}function DD(e){return Dl(e)?KP(e):{}}function OD(e,t,r){var n=t(e);return Sp(e)?n:WP(n,r(e))}function MD(e){return _l.call(e)}function ND(e){if(!Dl(e)||ZD(e))return!1;var t=k0(e)||d0(e)?ZP:BP;return t.test(Rn(e))}function FD(e){if(!w0(e))return nD(e);var t=[];for(var r in Object(e))Wr.call(e,r)&&r!="constructor"&&t.push(r);return t}function RD(e,t){if(t)return e.slice();var r=new e.constructor(e.length);return e.copy(r),r}function vp(e){var t=new e.constructor(e.byteLength);return new Hb(t).set(new Hb(e)),t}function LD(e,t){var r=t?vp(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}function BD(e,t,r){var n=t?r($b(e),!0):$b(e);return m0(n,qP,new e.constructor)}function $D(e){var t=new e.constructor(e.source,LP.exec(e));return t.lastIndex=e.lastIndex,t}function UD(e,t,r){var n=t?r(Ub(e),!0):Ub(e);return m0(n,HP,new e.constructor)}function jD(e){return Yb?Object(Yb.call(e)):{}}function zD(e,t){var r=t?vp(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}function qD(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r<n;)t[r]=e[r];return t}function x0(e,t,r,n){r||(r={});for(var i=-1,o=t.length;++i<o;){var s=t[i],a=n?n(r[s],e[s],s,r,e):void 0;y0(r,s,a===void 0?e[s]:a)}return r}function HD(e,t){return x0(e,b0(e),t)}function VD(e){return OD(e,kp,b0)}function Pl(e,t){var r=e.__data__;return QD(t)?r[typeof t=="string"?"string":"hash"]:r.map}function ji(e,t){var r=GP(e,t);return ND(r)?r:void 0}var b0=Vb?wp(Vb,Object):iO,Nn=MD;(pp&&Nn(new pp(new ArrayBuffer(1)))!=Cl||hs&&Nn(new hs)!=Al||hp&&Nn(hp.resolve())!=Lb||mp&&Nn(new mp)!=Tl||dp&&Nn(new dp)!=fp)&&(Nn=function(e){var t=_l.call(e),r=t==bp?e.constructor:void 0,n=r?Rn(r):void 0;if(n)switch(n){case iD:return Cl;case oD:return Al;case sD:return Lb;case aD:return Tl;case lD:return fp}return t});function WD(e){var t=e.length,r=e.constructor(t);return t&&typeof e[0]=="string"&&Wr.call(e,"index")&&(r.index=e.index,r.input=e.input),r}function YD(e){return typeof e.constructor=="function"&&!w0(e)?DD(XP(e)):{}}function GD(e,t,r,n){var i=e.constructor;switch(t){case n0:return vp(e);case Qb:case Zb:return new i(+e);case Cl:return LD(e,n);case i0:case o0:case s0:case a0:case l0:case u0:case c0:case f0:case p0:return zD(e,n);case Al:return BD(e,n,r);case Kb:case t0:return new i(e);case e0:return $D(e);case Tl:return UD(e,n,r);case r0:return jD(e)}}function JD(e,t){return t=t??Jb,!!t&&(typeof e=="number"||$P.test(e))&&e>-1&&e%1==0&&e<t}function QD(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function ZD(e){return!!jb&&jb in e}function w0(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||El;return e===r}function Rn(e){if(e!=null){try{return g0.call(e)}catch{}try{return e+""}catch{}}return""}function XD(e){return gp(e,!0,!0)}function v0(e,t){return e===t||e!==e&&t!==t}function KD(e){return eO(e)&&Wr.call(e,"callee")&&(!eD.call(e,"callee")||_l.call(e)==yp)}var Sp=Array.isArray;function S0(e){return e!=null&&rO(e.length)&&!k0(e)}function eO(e){return nO(e)&&S0(e)}var tO=rD||oO;function k0(e){var t=Dl(e)?_l.call(e):"";return t==xp||t==Xb}function rO(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=Jb}function Dl(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function nO(e){return!!e&&typeof e=="object"}function kp(e){return S0(e)?ID(e):FD(e)}function iO(){return[]}function oO(){return!1}Bi.exports=XD});var C0=N((p9,T0)=>{"use strict";T0.exports=function(e,t){t||(t={}),typeof t=="function"&&(t={cmp:t});var r=typeof t.cycles=="boolean"?t.cycles:!1,n=t.cmp&&function(o){return function(s){return function(a,l){var u={key:a,value:s[a]},c={key:l,value:s[l]};return o(u,c)}}}(t.cmp),i=[];return function o(s){if(s&&s.toJSON&&typeof s.toJSON=="function"&&(s=s.toJSON()),s!==void 0){if(typeof s=="number")return isFinite(s)?""+s:"null";if(typeof s!="object")return JSON.stringify(s);var a,l;if(Array.isArray(s)){for(l="[",a=0;a<s.length;a++)a&&(l+=","),l+=o(s[a])||"null";return l+"]"}if(s===null)return"null";if(i.indexOf(s)!==-1){if(r)return JSON.stringify("__cycle__");throw new TypeError("Converting circular structure to JSON")}var u=i.push(s)-1,c=Object.keys(s).sort(n&&n(s));for(l="",a=0;a<c.length;a++){var f=c[a],p=o(s[f]);p&&(l&&(l+=","),l+=JSON.stringify(f)+":"+p)}return i.splice(u,1),"{"+l+"}"}}(e)}});var $n=N((PV,Bn)=>{"use strict";function pw(e){return typeof e>"u"||e===null}function IM(e){return typeof e=="object"&&e!==null}function PM(e){return Array.isArray(e)?e:pw(e)?[]:[e]}function DM(e,t){var r,n,i,o;if(t)for(o=Object.keys(t),r=0,n=o.length;r<n;r+=1)i=o[r],e[i]=t[i];return e}function OM(e,t){var r="",n;for(n=0;n<t;n+=1)r+=e;return r}function MM(e){return e===0&&Number.NEGATIVE_INFINITY===1/e}Bn.exports.isNothing=pw;Bn.exports.isObject=IM;Bn.exports.toArray=PM;Bn.exports.repeat=OM;Bn.exports.isNegativeZero=MM;Bn.exports.extend=DM});var Wi=N((DV,hw)=>{"use strict";function vs(e,t){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=t,this.message=(this.reason||"(unknown reason)")+(this.mark?" "+this.mark.toString():""),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}vs.prototype=Object.create(Error.prototype);vs.prototype.constructor=vs;vs.prototype.toString=function(t){var r=this.name+": ";return r+=this.reason||"(unknown reason)",!t&&this.mark&&(r+=" "+this.mark.toString()),r};hw.exports=vs});var gw=N((OV,dw)=>{"use strict";var mw=$n();function qp(e,t,r,n,i){this.name=e,this.buffer=t,this.position=r,this.line=n,this.column=i}qp.prototype.getSnippet=function(t,r){var n,i,o,s,a;if(!this.buffer)return null;for(t=t||4,r=r||75,n="",i=this.position;i>0&&`\0\r
6
6
  \x85\u2028\u2029`.indexOf(this.buffer.charAt(i-1))===-1;)if(i-=1,this.position-i>r/2-1){n=" ... ",i+=5;break}for(o="",s=this.position;s<this.buffer.length&&`\0\r
7
7
  \x85\u2028\u2029`.indexOf(this.buffer.charAt(s))===-1;)if(s+=1,s-this.position>r/2-1){o=" ... ",s-=5;break}return a=this.buffer.slice(i,s),mw.repeat(" ",t)+n+a+o+`
8
8
  `+mw.repeat(" ",t+this.position-i+n.length)+"^"};qp.prototype.toString=function(t){var r,n="";return this.name&&(n+='in "'+this.name+'" '),n+="at line "+(this.line+1)+", column "+(this.column+1),t||(r=this.getSnippet(),r&&(n+=`:
9
- `+r)),n};dw.exports=qp});var Ge=N((OV,xw)=>{"use strict";var yw=Wi(),MP=["kind","resolve","construct","instanceOf","predicate","represent","defaultStyle","styleAliases"],PP=["scalar","sequence","mapping"];function NP(e){var t={};return e!==null&&Object.keys(e).forEach(function(r){e[r].forEach(function(n){t[String(n)]=r})}),t}function FP(e,t){if(t=t||{},Object.keys(t).forEach(function(r){if(MP.indexOf(r)===-1)throw new yw('Unknown option "'+r+'" is met in definition of "'+e+'" YAML type.')}),this.tag=e,this.kind=t.kind||null,this.resolve=t.resolve||function(){return!0},this.construct=t.construct||function(r){return r},this.instanceOf=t.instanceOf||null,this.predicate=t.predicate||null,this.represent=t.represent||null,this.defaultStyle=t.defaultStyle||null,this.styleAliases=NP(t.styleAliases||null),PP.indexOf(this.kind)===-1)throw new yw('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}xw.exports=FP});var Un=N((MV,ww)=>{"use strict";var bw=$n(),Ul=Wi(),RP=Ge();function Hp(e,t,r){var n=[];return e.include.forEach(function(i){r=Hp(i,t,r)}),e[t].forEach(function(i){r.forEach(function(o,s){o.tag===i.tag&&o.kind===i.kind&&n.push(s)}),r.push(i)}),r.filter(function(i,o){return n.indexOf(o)===-1})}function LP(){var e={scalar:{},sequence:{},mapping:{},fallback:{}},t,r;function n(i){e[i.kind][i.tag]=e.fallback[i.tag]=i}for(t=0,r=arguments.length;t<r;t+=1)arguments[t].forEach(n);return e}function Yi(e){this.include=e.include||[],this.implicit=e.implicit||[],this.explicit=e.explicit||[],this.implicit.forEach(function(t){if(t.loadKind&&t.loadKind!=="scalar")throw new Ul("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.")}),this.compiledImplicit=Hp(this,"implicit",[]),this.compiledExplicit=Hp(this,"explicit",[]),this.compiledTypeMap=LP(this.compiledImplicit,this.compiledExplicit)}Yi.DEFAULT=null;Yi.create=function(){var t,r;switch(arguments.length){case 1:t=Yi.DEFAULT,r=arguments[0];break;case 2:t=arguments[0],r=arguments[1];break;default:throw new Ul("Wrong number of arguments for Schema.create function")}if(t=bw.toArray(t),r=bw.toArray(r),!t.every(function(n){return n instanceof Yi}))throw new Ul("Specified list of super schemas (or a single Schema object) contains a non-Schema object.");if(!r.every(function(n){return n instanceof RP}))throw new Ul("Specified list of YAML types (or a single Type object) contains a non-Type object.");return new Yi({include:t,explicit:r})};ww.exports=Yi});var Sw=N((PV,vw)=>{"use strict";var BP=Ge();vw.exports=new BP("tag:yaml.org,2002:str",{kind:"scalar",construct:function(e){return e!==null?e:""}})});var Aw=N((NV,kw)=>{"use strict";var $P=Ge();kw.exports=new $P("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(e){return e!==null?e:[]}})});var Cw=N((FV,Tw)=>{"use strict";var UP=Ge();Tw.exports=new UP("tag:yaml.org,2002:map",{kind:"mapping",construct:function(e){return e!==null?e:{}}})});var jl=N((RV,Ew)=>{"use strict";var jP=Un();Ew.exports=new jP({explicit:[Sw(),Aw(),Cw()]})});var Iw=N((LV,_w)=>{"use strict";var zP=Ge();function qP(e){if(e===null)return!0;var t=e.length;return t===1&&e==="~"||t===4&&(e==="null"||e==="Null"||e==="NULL")}function HP(){return null}function VP(e){return e===null}_w.exports=new zP("tag:yaml.org,2002:null",{kind:"scalar",resolve:qP,construct:HP,predicate:VP,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"}},defaultStyle:"lowercase"})});var Ow=N((BV,Dw)=>{"use strict";var WP=Ge();function YP(e){if(e===null)return!1;var t=e.length;return t===4&&(e==="true"||e==="True"||e==="TRUE")||t===5&&(e==="false"||e==="False"||e==="FALSE")}function GP(e){return e==="true"||e==="True"||e==="TRUE"}function JP(e){return Object.prototype.toString.call(e)==="[object Boolean]"}Dw.exports=new WP("tag:yaml.org,2002:bool",{kind:"scalar",resolve:YP,construct:GP,predicate:JP,represent:{lowercase:function(e){return e?"true":"false"},uppercase:function(e){return e?"TRUE":"FALSE"},camelcase:function(e){return e?"True":"False"}},defaultStyle:"lowercase"})});var Pw=N(($V,Mw)=>{"use strict";var QP=$n(),ZP=Ge();function XP(e){return 48<=e&&e<=57||65<=e&&e<=70||97<=e&&e<=102}function KP(e){return 48<=e&&e<=55}function eN(e){return 48<=e&&e<=57}function tN(e){if(e===null)return!1;var t=e.length,r=0,n=!1,i;if(!t)return!1;if(i=e[r],(i==="-"||i==="+")&&(i=e[++r]),i==="0"){if(r+1===t)return!0;if(i=e[++r],i==="b"){for(r++;r<t;r++)if(i=e[r],i!=="_"){if(i!=="0"&&i!=="1")return!1;n=!0}return n&&i!=="_"}if(i==="x"){for(r++;r<t;r++)if(i=e[r],i!=="_"){if(!XP(e.charCodeAt(r)))return!1;n=!0}return n&&i!=="_"}for(;r<t;r++)if(i=e[r],i!=="_"){if(!KP(e.charCodeAt(r)))return!1;n=!0}return n&&i!=="_"}if(i==="_")return!1;for(;r<t;r++)if(i=e[r],i!=="_"){if(i===":")break;if(!eN(e.charCodeAt(r)))return!1;n=!0}return!n||i==="_"?!1:i!==":"?!0:/^(:[0-5]?[0-9])+$/.test(e.slice(r))}function rN(e){var t=e,r=1,n,i,o=[];return t.indexOf("_")!==-1&&(t=t.replace(/_/g,"")),n=t[0],(n==="-"||n==="+")&&(n==="-"&&(r=-1),t=t.slice(1),n=t[0]),t==="0"?0:n==="0"?t[1]==="b"?r*parseInt(t.slice(2),2):t[1]==="x"?r*parseInt(t,16):r*parseInt(t,8):t.indexOf(":")!==-1?(t.split(":").forEach(function(s){o.unshift(parseInt(s,10))}),t=0,i=1,o.forEach(function(s){t+=s*i,i*=60}),r*t):r*parseInt(t,10)}function nN(e){return Object.prototype.toString.call(e)==="[object Number]"&&e%1===0&&!QP.isNegativeZero(e)}Mw.exports=new ZP("tag:yaml.org,2002:int",{kind:"scalar",resolve:tN,construct:rN,predicate:nN,represent:{binary:function(e){return e>=0?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},octal:function(e){return e>=0?"0"+e.toString(8):"-0"+e.toString(8).slice(1)},decimal:function(e){return e.toString(10)},hexadecimal:function(e){return e>=0?"0x"+e.toString(16).toUpperCase():"-0x"+e.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}})});var Rw=N((UV,Fw)=>{"use strict";var Nw=$n(),iN=Ge(),oN=new RegExp("^(?:[-+]?(?:0|[1-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\\.[0-9_]*|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function sN(e){return!(e===null||!oN.test(e)||e[e.length-1]==="_")}function aN(e){var t,r,n,i;return t=e.replace(/_/g,"").toLowerCase(),r=t[0]==="-"?-1:1,i=[],"+-".indexOf(t[0])>=0&&(t=t.slice(1)),t===".inf"?r===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:t===".nan"?NaN:t.indexOf(":")>=0?(t.split(":").forEach(function(o){i.unshift(parseFloat(o,10))}),t=0,n=1,i.forEach(function(o){t+=o*n,n*=60}),r*t):r*parseFloat(t,10)}var lN=/^[-+]?[0-9]+e/;function uN(e,t){var r;if(isNaN(e))switch(t){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===e)switch(t){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===e)switch(t){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(Nw.isNegativeZero(e))return"-0.0";return r=e.toString(10),lN.test(r)?r.replace("e",".e"):r}function cN(e){return Object.prototype.toString.call(e)==="[object Number]"&&(e%1!==0||Nw.isNegativeZero(e))}Fw.exports=new iN("tag:yaml.org,2002:float",{kind:"scalar",resolve:sN,construct:aN,predicate:cN,represent:uN,defaultStyle:"lowercase"})});var Vp=N((jV,Lw)=>{"use strict";var fN=Un();Lw.exports=new fN({include:[jl()],implicit:[Iw(),Ow(),Pw(),Rw()]})});var Wp=N((zV,Bw)=>{"use strict";var pN=Un();Bw.exports=new pN({include:[Vp()]})});var zw=N((qV,jw)=>{"use strict";var hN=Ge(),$w=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),Uw=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");function mN(e){return e===null?!1:$w.exec(e)!==null||Uw.exec(e)!==null}function dN(e){var t,r,n,i,o,s,a,l=0,u=null,c,f,p;if(t=$w.exec(e),t===null&&(t=Uw.exec(e)),t===null)throw new Error("Date resolve error");if(r=+t[1],n=+t[2]-1,i=+t[3],!t[4])return new Date(Date.UTC(r,n,i));if(o=+t[4],s=+t[5],a=+t[6],t[7]){for(l=t[7].slice(0,3);l.length<3;)l+="0";l=+l}return t[9]&&(c=+t[10],f=+(t[11]||0),u=(c*60+f)*6e4,t[9]==="-"&&(u=-u)),p=new Date(Date.UTC(r,n,i,o,s,a,l)),u&&p.setTime(p.getTime()-u),p}function gN(e){return e.toISOString()}jw.exports=new hN("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:mN,construct:dN,instanceOf:Date,represent:gN})});var Hw=N((HV,qw)=>{"use strict";var yN=Ge();function xN(e){return e==="<<"||e===null}qw.exports=new yN("tag:yaml.org,2002:merge",{kind:"scalar",resolve:xN})});var Yw=N((VV,Ww)=>{"use strict";var jn;try{Vw=ma,jn=Vw("buffer").Buffer}catch{}var Vw,bN=Ge(),Yp=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
10
- \r`;function wN(e){if(e===null)return!1;var t,r,n=0,i=e.length,o=Yp;for(r=0;r<i;r++)if(t=o.indexOf(e.charAt(r)),!(t>64)){if(t<0)return!1;n+=6}return n%8===0}function vN(e){var t,r,n=e.replace(/[\r\n=]/g,""),i=n.length,o=Yp,s=0,a=[];for(t=0;t<i;t++)t%4===0&&t&&(a.push(s>>16&255),a.push(s>>8&255),a.push(s&255)),s=s<<6|o.indexOf(n.charAt(t));return r=i%4*6,r===0?(a.push(s>>16&255),a.push(s>>8&255),a.push(s&255)):r===18?(a.push(s>>10&255),a.push(s>>2&255)):r===12&&a.push(s>>4&255),jn?jn.from?jn.from(a):new jn(a):a}function SN(e){var t="",r=0,n,i,o=e.length,s=Yp;for(n=0;n<o;n++)n%3===0&&n&&(t+=s[r>>18&63],t+=s[r>>12&63],t+=s[r>>6&63],t+=s[r&63]),r=(r<<8)+e[n];return i=o%3,i===0?(t+=s[r>>18&63],t+=s[r>>12&63],t+=s[r>>6&63],t+=s[r&63]):i===2?(t+=s[r>>10&63],t+=s[r>>4&63],t+=s[r<<2&63],t+=s[64]):i===1&&(t+=s[r>>2&63],t+=s[r<<4&63],t+=s[64],t+=s[64]),t}function kN(e){return jn&&jn.isBuffer(e)}Ww.exports=new bN("tag:yaml.org,2002:binary",{kind:"scalar",resolve:wN,construct:vN,predicate:kN,represent:SN})});var Jw=N((YV,Gw)=>{"use strict";var AN=Ge(),TN=Object.prototype.hasOwnProperty,CN=Object.prototype.toString;function EN(e){if(e===null)return!0;var t=[],r,n,i,o,s,a=e;for(r=0,n=a.length;r<n;r+=1){if(i=a[r],s=!1,CN.call(i)!=="[object Object]")return!1;for(o in i)if(TN.call(i,o))if(!s)s=!0;else return!1;if(!s)return!1;if(t.indexOf(o)===-1)t.push(o);else return!1}return!0}function _N(e){return e!==null?e:[]}Gw.exports=new AN("tag:yaml.org,2002:omap",{kind:"sequence",resolve:EN,construct:_N})});var Zw=N((GV,Qw)=>{"use strict";var IN=Ge(),DN=Object.prototype.toString;function ON(e){if(e===null)return!0;var t,r,n,i,o,s=e;for(o=new Array(s.length),t=0,r=s.length;t<r;t+=1){if(n=s[t],DN.call(n)!=="[object Object]"||(i=Object.keys(n),i.length!==1))return!1;o[t]=[i[0],n[i[0]]]}return!0}function MN(e){if(e===null)return[];var t,r,n,i,o,s=e;for(o=new Array(s.length),t=0,r=s.length;t<r;t+=1)n=s[t],i=Object.keys(n),o[t]=[i[0],n[i[0]]];return o}Qw.exports=new IN("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:ON,construct:MN})});var Kw=N((JV,Xw)=>{"use strict";var PN=Ge(),NN=Object.prototype.hasOwnProperty;function FN(e){if(e===null)return!0;var t,r=e;for(t in r)if(NN.call(r,t)&&r[t]!==null)return!1;return!0}function RN(e){return e!==null?e:{}}Xw.exports=new PN("tag:yaml.org,2002:set",{kind:"mapping",resolve:FN,construct:RN})});var Gi=N((QV,ev)=>{"use strict";var LN=Un();ev.exports=new LN({include:[Wp()],implicit:[zw(),Hw()],explicit:[Yw(),Jw(),Zw(),Kw()]})});var rv=N((ZV,tv)=>{"use strict";var BN=Ge();function $N(){return!0}function UN(){}function jN(){return""}function zN(e){return typeof e>"u"}tv.exports=new BN("tag:yaml.org,2002:js/undefined",{kind:"scalar",resolve:$N,construct:UN,predicate:zN,represent:jN})});var iv=N((XV,nv)=>{"use strict";var qN=Ge();function HN(e){if(e===null||e.length===0)return!1;var t=e,r=/\/([gim]*)$/.exec(e),n="";return!(t[0]==="/"&&(r&&(n=r[1]),n.length>3||t[t.length-n.length-1]!=="/"))}function VN(e){var t=e,r=/\/([gim]*)$/.exec(e),n="";return t[0]==="/"&&(r&&(n=r[1]),t=t.slice(1,t.length-n.length-1)),new RegExp(t,n)}function WN(e){var t="/"+e.source+"/";return e.global&&(t+="g"),e.multiline&&(t+="m"),e.ignoreCase&&(t+="i"),t}function YN(e){return Object.prototype.toString.call(e)==="[object RegExp]"}nv.exports=new qN("tag:yaml.org,2002:js/regexp",{kind:"scalar",resolve:HN,construct:VN,predicate:YN,represent:WN})});var av=N((KV,sv)=>{"use strict";var zl;try{ov=ma,zl=ov("esprima")}catch{typeof window<"u"&&(zl=window.esprima)}var ov,GN=Ge();function JN(e){if(e===null)return!1;try{var t="("+e+")",r=zl.parse(t,{range:!0});return!(r.type!=="Program"||r.body.length!==1||r.body[0].type!=="ExpressionStatement"||r.body[0].expression.type!=="ArrowFunctionExpression"&&r.body[0].expression.type!=="FunctionExpression")}catch{return!1}}function QN(e){var t="("+e+")",r=zl.parse(t,{range:!0}),n=[],i;if(r.type!=="Program"||r.body.length!==1||r.body[0].type!=="ExpressionStatement"||r.body[0].expression.type!=="ArrowFunctionExpression"&&r.body[0].expression.type!=="FunctionExpression")throw new Error("Failed to resolve function");return r.body[0].expression.params.forEach(function(o){n.push(o.name)}),i=r.body[0].expression.body.range,r.body[0].expression.body.type==="BlockStatement"?new Function(n,t.slice(i[0]+1,i[1]-1)):new Function(n,"return "+t.slice(i[0],i[1]))}function ZN(e){return e.toString()}function XN(e){return Object.prototype.toString.call(e)==="[object Function]"}sv.exports=new GN("tag:yaml.org,2002:js/function",{kind:"scalar",resolve:JN,construct:QN,predicate:XN,represent:ZN})});var Ss=N((tW,uv)=>{"use strict";var lv=Un();uv.exports=lv.DEFAULT=new lv({include:[Gi()],explicit:[rv(),iv(),av()]})});var _v=N((rW,ks)=>{"use strict";var Ar=$n(),gv=Wi(),KN=gw(),yv=Gi(),eF=Ss(),Jr=Object.prototype.hasOwnProperty,ql=1,xv=2,bv=3,Hl=4,Gp=1,tF=2,cv=3,rF=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,nF=/[\x85\u2028\u2029]/,iF=/[,\[\]\{\}]/,wv=/^(?:!|!!|![a-z\-]+!)$/i,vv=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function fv(e){return Object.prototype.toString.call(e)}function Kt(e){return e===10||e===13}function qn(e){return e===9||e===32}function gt(e){return e===9||e===32||e===10||e===13}function Ji(e){return e===44||e===91||e===93||e===123||e===125}function oF(e){var t;return 48<=e&&e<=57?e-48:(t=e|32,97<=t&&t<=102?t-97+10:-1)}function sF(e){return e===120?2:e===117?4:e===85?8:0}function aF(e){return 48<=e&&e<=57?e-48:-1}function pv(e){return e===48?"\0":e===97?"\x07":e===98?"\b":e===116||e===9?" ":e===110?`
11
- `:e===118?"\v":e===102?"\f":e===114?"\r":e===101?"\x1B":e===32?" ":e===34?'"':e===47?"/":e===92?"\\":e===78?"\x85":e===95?"\xA0":e===76?"\u2028":e===80?"\u2029":""}function lF(e){return e<=65535?String.fromCharCode(e):String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}var Sv=new Array(256),kv=new Array(256);for(zn=0;zn<256;zn++)Sv[zn]=pv(zn)?1:0,kv[zn]=pv(zn);var zn;function uF(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||eF,this.onWarning=t.onWarning||null,this.legacy=t.legacy||!1,this.json=t.json||!1,this.listener=t.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=e.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.documents=[]}function Av(e,t){return new gv(t,new KN(e.filename,e.input,e.position,e.line,e.position-e.lineStart))}function K(e,t){throw Av(e,t)}function Vl(e,t){e.onWarning&&e.onWarning.call(null,Av(e,t))}var hv={YAML:function(t,r,n){var i,o,s;t.version!==null&&K(t,"duplication of %YAML directive"),n.length!==1&&K(t,"YAML directive accepts exactly one argument"),i=/^([0-9]+)\.([0-9]+)$/.exec(n[0]),i===null&&K(t,"ill-formed argument of the YAML directive"),o=parseInt(i[1],10),s=parseInt(i[2],10),o!==1&&K(t,"unacceptable YAML version of the document"),t.version=n[0],t.checkLineBreaks=s<2,s!==1&&s!==2&&Vl(t,"unsupported YAML version of the document")},TAG:function(t,r,n){var i,o;n.length!==2&&K(t,"TAG directive accepts exactly two arguments"),i=n[0],o=n[1],wv.test(i)||K(t,"ill-formed tag handle (first argument) of the TAG directive"),Jr.call(t.tagMap,i)&&K(t,'there is a previously declared suffix for "'+i+'" tag handle'),vv.test(o)||K(t,"ill-formed tag prefix (second argument) of the TAG directive"),t.tagMap[i]=o}};function Gr(e,t,r,n){var i,o,s,a;if(t<r){if(a=e.input.slice(t,r),n)for(i=0,o=a.length;i<o;i+=1)s=a.charCodeAt(i),s===9||32<=s&&s<=1114111||K(e,"expected valid JSON character");else rF.test(a)&&K(e,"the stream contains non-printable characters");e.result+=a}}function mv(e,t,r,n){var i,o,s,a;for(Ar.isObject(r)||K(e,"cannot merge mappings; the provided source object is unacceptable"),i=Object.keys(r),s=0,a=i.length;s<a;s+=1)o=i[s],Jr.call(t,o)||(t[o]=r[o],n[o]=!0)}function Qi(e,t,r,n,i,o,s,a){var l,u;if(Array.isArray(i))for(i=Array.prototype.slice.call(i),l=0,u=i.length;l<u;l+=1)Array.isArray(i[l])&&K(e,"nested arrays are not supported inside keys"),typeof i=="object"&&fv(i[l])==="[object Object]"&&(i[l]="[object Object]");if(typeof i=="object"&&fv(i)==="[object Object]"&&(i="[object Object]"),i=String(i),t===null&&(t={}),n==="tag:yaml.org,2002:merge")if(Array.isArray(o))for(l=0,u=o.length;l<u;l+=1)mv(e,t,o[l],r);else mv(e,t,o,r);else!e.json&&!Jr.call(r,i)&&Jr.call(t,i)&&(e.line=s||e.line,e.position=a||e.position,K(e,"duplicated mapping key")),t[i]=o,delete r[i];return t}function Jp(e){var t;t=e.input.charCodeAt(e.position),t===10?e.position++:t===13?(e.position++,e.input.charCodeAt(e.position)===10&&e.position++):K(e,"a line break is expected"),e.line+=1,e.lineStart=e.position}function ze(e,t,r){for(var n=0,i=e.input.charCodeAt(e.position);i!==0;){for(;qn(i);)i=e.input.charCodeAt(++e.position);if(t&&i===35)do i=e.input.charCodeAt(++e.position);while(i!==10&&i!==13&&i!==0);if(Kt(i))for(Jp(e),i=e.input.charCodeAt(e.position),n++,e.lineIndent=0;i===32;)e.lineIndent++,i=e.input.charCodeAt(++e.position);else break}return r!==-1&&n!==0&&e.lineIndent<r&&Vl(e,"deficient indentation"),n}function Wl(e){var t=e.position,r;return r=e.input.charCodeAt(t),!!((r===45||r===46)&&r===e.input.charCodeAt(t+1)&&r===e.input.charCodeAt(t+2)&&(t+=3,r=e.input.charCodeAt(t),r===0||gt(r)))}function Qp(e,t){t===1?e.result+=" ":t>1&&(e.result+=Ar.repeat(`
12
- `,t-1))}function cF(e,t,r){var n,i,o,s,a,l,u,c,f=e.kind,p=e.result,h;if(h=e.input.charCodeAt(e.position),gt(h)||Ji(h)||h===35||h===38||h===42||h===33||h===124||h===62||h===39||h===34||h===37||h===64||h===96||(h===63||h===45)&&(i=e.input.charCodeAt(e.position+1),gt(i)||r&&Ji(i)))return!1;for(e.kind="scalar",e.result="",o=s=e.position,a=!1;h!==0;){if(h===58){if(i=e.input.charCodeAt(e.position+1),gt(i)||r&&Ji(i))break}else if(h===35){if(n=e.input.charCodeAt(e.position-1),gt(n))break}else{if(e.position===e.lineStart&&Wl(e)||r&&Ji(h))break;if(Kt(h))if(l=e.line,u=e.lineStart,c=e.lineIndent,ze(e,!1,-1),e.lineIndent>=t){a=!0,h=e.input.charCodeAt(e.position);continue}else{e.position=s,e.line=l,e.lineStart=u,e.lineIndent=c;break}}a&&(Gr(e,o,s,!1),Qp(e,e.line-l),o=s=e.position,a=!1),qn(h)||(s=e.position+1),h=e.input.charCodeAt(++e.position)}return Gr(e,o,s,!1),e.result?!0:(e.kind=f,e.result=p,!1)}function fF(e,t){var r,n,i;if(r=e.input.charCodeAt(e.position),r!==39)return!1;for(e.kind="scalar",e.result="",e.position++,n=i=e.position;(r=e.input.charCodeAt(e.position))!==0;)if(r===39)if(Gr(e,n,e.position,!0),r=e.input.charCodeAt(++e.position),r===39)n=e.position,e.position++,i=e.position;else return!0;else Kt(r)?(Gr(e,n,i,!0),Qp(e,ze(e,!1,t)),n=i=e.position):e.position===e.lineStart&&Wl(e)?K(e,"unexpected end of the document within a single quoted scalar"):(e.position++,i=e.position);K(e,"unexpected end of the stream within a single quoted scalar")}function pF(e,t){var r,n,i,o,s,a;if(a=e.input.charCodeAt(e.position),a!==34)return!1;for(e.kind="scalar",e.result="",e.position++,r=n=e.position;(a=e.input.charCodeAt(e.position))!==0;){if(a===34)return Gr(e,r,e.position,!0),e.position++,!0;if(a===92){if(Gr(e,r,e.position,!0),a=e.input.charCodeAt(++e.position),Kt(a))ze(e,!1,t);else if(a<256&&Sv[a])e.result+=kv[a],e.position++;else if((s=sF(a))>0){for(i=s,o=0;i>0;i--)a=e.input.charCodeAt(++e.position),(s=oF(a))>=0?o=(o<<4)+s:K(e,"expected hexadecimal character");e.result+=lF(o),e.position++}else K(e,"unknown escape sequence");r=n=e.position}else Kt(a)?(Gr(e,r,n,!0),Qp(e,ze(e,!1,t)),r=n=e.position):e.position===e.lineStart&&Wl(e)?K(e,"unexpected end of the document within a double quoted scalar"):(e.position++,n=e.position)}K(e,"unexpected end of the stream within a double quoted scalar")}function hF(e,t){var r=!0,n,i=e.tag,o,s=e.anchor,a,l,u,c,f,p={},h,m,x,v;if(v=e.input.charCodeAt(e.position),v===91)l=93,f=!1,o=[];else if(v===123)l=125,f=!0,o={};else return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=o),v=e.input.charCodeAt(++e.position);v!==0;){if(ze(e,!0,t),v=e.input.charCodeAt(e.position),v===l)return e.position++,e.tag=i,e.anchor=s,e.kind=f?"mapping":"sequence",e.result=o,!0;r||K(e,"missed comma between flow collection entries"),m=h=x=null,u=c=!1,v===63&&(a=e.input.charCodeAt(e.position+1),gt(a)&&(u=c=!0,e.position++,ze(e,!0,t))),n=e.line,Zi(e,t,ql,!1,!0),m=e.tag,h=e.result,ze(e,!0,t),v=e.input.charCodeAt(e.position),(c||e.line===n)&&v===58&&(u=!0,v=e.input.charCodeAt(++e.position),ze(e,!0,t),Zi(e,t,ql,!1,!0),x=e.result),f?Qi(e,o,p,m,h,x):u?o.push(Qi(e,null,p,m,h,x)):o.push(h),ze(e,!0,t),v=e.input.charCodeAt(e.position),v===44?(r=!0,v=e.input.charCodeAt(++e.position)):r=!1}K(e,"unexpected end of the stream within a flow collection")}function mF(e,t){var r,n,i=Gp,o=!1,s=!1,a=t,l=0,u=!1,c,f;if(f=e.input.charCodeAt(e.position),f===124)n=!1;else if(f===62)n=!0;else return!1;for(e.kind="scalar",e.result="";f!==0;)if(f=e.input.charCodeAt(++e.position),f===43||f===45)Gp===i?i=f===43?cv:tF:K(e,"repeat of a chomping mode identifier");else if((c=aF(f))>=0)c===0?K(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):s?K(e,"repeat of an indentation width identifier"):(a=t+c-1,s=!0);else break;if(qn(f)){do f=e.input.charCodeAt(++e.position);while(qn(f));if(f===35)do f=e.input.charCodeAt(++e.position);while(!Kt(f)&&f!==0)}for(;f!==0;){for(Jp(e),e.lineIndent=0,f=e.input.charCodeAt(e.position);(!s||e.lineIndent<a)&&f===32;)e.lineIndent++,f=e.input.charCodeAt(++e.position);if(!s&&e.lineIndent>a&&(a=e.lineIndent),Kt(f)){l++;continue}if(e.lineIndent<a){i===cv?e.result+=Ar.repeat(`
9
+ `+r)),n};dw.exports=qp});var Ge=N((MV,xw)=>{"use strict";var yw=Wi(),NM=["kind","resolve","construct","instanceOf","predicate","represent","defaultStyle","styleAliases"],FM=["scalar","sequence","mapping"];function RM(e){var t={};return e!==null&&Object.keys(e).forEach(function(r){e[r].forEach(function(n){t[String(n)]=r})}),t}function LM(e,t){if(t=t||{},Object.keys(t).forEach(function(r){if(NM.indexOf(r)===-1)throw new yw('Unknown option "'+r+'" is met in definition of "'+e+'" YAML type.')}),this.tag=e,this.kind=t.kind||null,this.resolve=t.resolve||function(){return!0},this.construct=t.construct||function(r){return r},this.instanceOf=t.instanceOf||null,this.predicate=t.predicate||null,this.represent=t.represent||null,this.defaultStyle=t.defaultStyle||null,this.styleAliases=RM(t.styleAliases||null),FM.indexOf(this.kind)===-1)throw new yw('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}xw.exports=LM});var Un=N((NV,ww)=>{"use strict";var bw=$n(),Ul=Wi(),BM=Ge();function Hp(e,t,r){var n=[];return e.include.forEach(function(i){r=Hp(i,t,r)}),e[t].forEach(function(i){r.forEach(function(o,s){o.tag===i.tag&&o.kind===i.kind&&n.push(s)}),r.push(i)}),r.filter(function(i,o){return n.indexOf(o)===-1})}function $M(){var e={scalar:{},sequence:{},mapping:{},fallback:{}},t,r;function n(i){e[i.kind][i.tag]=e.fallback[i.tag]=i}for(t=0,r=arguments.length;t<r;t+=1)arguments[t].forEach(n);return e}function Yi(e){this.include=e.include||[],this.implicit=e.implicit||[],this.explicit=e.explicit||[],this.implicit.forEach(function(t){if(t.loadKind&&t.loadKind!=="scalar")throw new Ul("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.")}),this.compiledImplicit=Hp(this,"implicit",[]),this.compiledExplicit=Hp(this,"explicit",[]),this.compiledTypeMap=$M(this.compiledImplicit,this.compiledExplicit)}Yi.DEFAULT=null;Yi.create=function(){var t,r;switch(arguments.length){case 1:t=Yi.DEFAULT,r=arguments[0];break;case 2:t=arguments[0],r=arguments[1];break;default:throw new Ul("Wrong number of arguments for Schema.create function")}if(t=bw.toArray(t),r=bw.toArray(r),!t.every(function(n){return n instanceof Yi}))throw new Ul("Specified list of super schemas (or a single Schema object) contains a non-Schema object.");if(!r.every(function(n){return n instanceof BM}))throw new Ul("Specified list of YAML types (or a single Type object) contains a non-Type object.");return new Yi({include:t,explicit:r})};ww.exports=Yi});var Sw=N((FV,vw)=>{"use strict";var UM=Ge();vw.exports=new UM("tag:yaml.org,2002:str",{kind:"scalar",construct:function(e){return e!==null?e:""}})});var Aw=N((RV,kw)=>{"use strict";var jM=Ge();kw.exports=new jM("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(e){return e!==null?e:[]}})});var Cw=N((LV,Tw)=>{"use strict";var zM=Ge();Tw.exports=new zM("tag:yaml.org,2002:map",{kind:"mapping",construct:function(e){return e!==null?e:{}}})});var jl=N((BV,Ew)=>{"use strict";var qM=Un();Ew.exports=new qM({explicit:[Sw(),Aw(),Cw()]})});var Iw=N(($V,_w)=>{"use strict";var HM=Ge();function VM(e){if(e===null)return!0;var t=e.length;return t===1&&e==="~"||t===4&&(e==="null"||e==="Null"||e==="NULL")}function WM(){return null}function YM(e){return e===null}_w.exports=new HM("tag:yaml.org,2002:null",{kind:"scalar",resolve:VM,construct:WM,predicate:YM,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"}},defaultStyle:"lowercase"})});var Dw=N((UV,Pw)=>{"use strict";var GM=Ge();function JM(e){if(e===null)return!1;var t=e.length;return t===4&&(e==="true"||e==="True"||e==="TRUE")||t===5&&(e==="false"||e==="False"||e==="FALSE")}function QM(e){return e==="true"||e==="True"||e==="TRUE"}function ZM(e){return Object.prototype.toString.call(e)==="[object Boolean]"}Pw.exports=new GM("tag:yaml.org,2002:bool",{kind:"scalar",resolve:JM,construct:QM,predicate:ZM,represent:{lowercase:function(e){return e?"true":"false"},uppercase:function(e){return e?"TRUE":"FALSE"},camelcase:function(e){return e?"True":"False"}},defaultStyle:"lowercase"})});var Mw=N((jV,Ow)=>{"use strict";var XM=$n(),KM=Ge();function eN(e){return 48<=e&&e<=57||65<=e&&e<=70||97<=e&&e<=102}function tN(e){return 48<=e&&e<=55}function rN(e){return 48<=e&&e<=57}function nN(e){if(e===null)return!1;var t=e.length,r=0,n=!1,i;if(!t)return!1;if(i=e[r],(i==="-"||i==="+")&&(i=e[++r]),i==="0"){if(r+1===t)return!0;if(i=e[++r],i==="b"){for(r++;r<t;r++)if(i=e[r],i!=="_"){if(i!=="0"&&i!=="1")return!1;n=!0}return n&&i!=="_"}if(i==="x"){for(r++;r<t;r++)if(i=e[r],i!=="_"){if(!eN(e.charCodeAt(r)))return!1;n=!0}return n&&i!=="_"}for(;r<t;r++)if(i=e[r],i!=="_"){if(!tN(e.charCodeAt(r)))return!1;n=!0}return n&&i!=="_"}if(i==="_")return!1;for(;r<t;r++)if(i=e[r],i!=="_"){if(i===":")break;if(!rN(e.charCodeAt(r)))return!1;n=!0}return!n||i==="_"?!1:i!==":"?!0:/^(:[0-5]?[0-9])+$/.test(e.slice(r))}function iN(e){var t=e,r=1,n,i,o=[];return t.indexOf("_")!==-1&&(t=t.replace(/_/g,"")),n=t[0],(n==="-"||n==="+")&&(n==="-"&&(r=-1),t=t.slice(1),n=t[0]),t==="0"?0:n==="0"?t[1]==="b"?r*parseInt(t.slice(2),2):t[1]==="x"?r*parseInt(t,16):r*parseInt(t,8):t.indexOf(":")!==-1?(t.split(":").forEach(function(s){o.unshift(parseInt(s,10))}),t=0,i=1,o.forEach(function(s){t+=s*i,i*=60}),r*t):r*parseInt(t,10)}function oN(e){return Object.prototype.toString.call(e)==="[object Number]"&&e%1===0&&!XM.isNegativeZero(e)}Ow.exports=new KM("tag:yaml.org,2002:int",{kind:"scalar",resolve:nN,construct:iN,predicate:oN,represent:{binary:function(e){return e>=0?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},octal:function(e){return e>=0?"0"+e.toString(8):"-0"+e.toString(8).slice(1)},decimal:function(e){return e.toString(10)},hexadecimal:function(e){return e>=0?"0x"+e.toString(16).toUpperCase():"-0x"+e.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}})});var Rw=N((zV,Fw)=>{"use strict";var Nw=$n(),sN=Ge(),aN=new RegExp("^(?:[-+]?(?:0|[1-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\\.[0-9_]*|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function lN(e){return!(e===null||!aN.test(e)||e[e.length-1]==="_")}function uN(e){var t,r,n,i;return t=e.replace(/_/g,"").toLowerCase(),r=t[0]==="-"?-1:1,i=[],"+-".indexOf(t[0])>=0&&(t=t.slice(1)),t===".inf"?r===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:t===".nan"?NaN:t.indexOf(":")>=0?(t.split(":").forEach(function(o){i.unshift(parseFloat(o,10))}),t=0,n=1,i.forEach(function(o){t+=o*n,n*=60}),r*t):r*parseFloat(t,10)}var cN=/^[-+]?[0-9]+e/;function fN(e,t){var r;if(isNaN(e))switch(t){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===e)switch(t){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===e)switch(t){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(Nw.isNegativeZero(e))return"-0.0";return r=e.toString(10),cN.test(r)?r.replace("e",".e"):r}function pN(e){return Object.prototype.toString.call(e)==="[object Number]"&&(e%1!==0||Nw.isNegativeZero(e))}Fw.exports=new sN("tag:yaml.org,2002:float",{kind:"scalar",resolve:lN,construct:uN,predicate:pN,represent:fN,defaultStyle:"lowercase"})});var Vp=N((qV,Lw)=>{"use strict";var hN=Un();Lw.exports=new hN({include:[jl()],implicit:[Iw(),Dw(),Mw(),Rw()]})});var Wp=N((HV,Bw)=>{"use strict";var mN=Un();Bw.exports=new mN({include:[Vp()]})});var zw=N((VV,jw)=>{"use strict";var dN=Ge(),$w=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),Uw=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");function gN(e){return e===null?!1:$w.exec(e)!==null||Uw.exec(e)!==null}function yN(e){var t,r,n,i,o,s,a,l=0,u=null,c,f,p;if(t=$w.exec(e),t===null&&(t=Uw.exec(e)),t===null)throw new Error("Date resolve error");if(r=+t[1],n=+t[2]-1,i=+t[3],!t[4])return new Date(Date.UTC(r,n,i));if(o=+t[4],s=+t[5],a=+t[6],t[7]){for(l=t[7].slice(0,3);l.length<3;)l+="0";l=+l}return t[9]&&(c=+t[10],f=+(t[11]||0),u=(c*60+f)*6e4,t[9]==="-"&&(u=-u)),p=new Date(Date.UTC(r,n,i,o,s,a,l)),u&&p.setTime(p.getTime()-u),p}function xN(e){return e.toISOString()}jw.exports=new dN("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:gN,construct:yN,instanceOf:Date,represent:xN})});var Hw=N((WV,qw)=>{"use strict";var bN=Ge();function wN(e){return e==="<<"||e===null}qw.exports=new bN("tag:yaml.org,2002:merge",{kind:"scalar",resolve:wN})});var Yw=N((YV,Ww)=>{"use strict";var jn;try{Vw=ma,jn=Vw("buffer").Buffer}catch{}var Vw,vN=Ge(),Yp=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
10
+ \r`;function SN(e){if(e===null)return!1;var t,r,n=0,i=e.length,o=Yp;for(r=0;r<i;r++)if(t=o.indexOf(e.charAt(r)),!(t>64)){if(t<0)return!1;n+=6}return n%8===0}function kN(e){var t,r,n=e.replace(/[\r\n=]/g,""),i=n.length,o=Yp,s=0,a=[];for(t=0;t<i;t++)t%4===0&&t&&(a.push(s>>16&255),a.push(s>>8&255),a.push(s&255)),s=s<<6|o.indexOf(n.charAt(t));return r=i%4*6,r===0?(a.push(s>>16&255),a.push(s>>8&255),a.push(s&255)):r===18?(a.push(s>>10&255),a.push(s>>2&255)):r===12&&a.push(s>>4&255),jn?jn.from?jn.from(a):new jn(a):a}function AN(e){var t="",r=0,n,i,o=e.length,s=Yp;for(n=0;n<o;n++)n%3===0&&n&&(t+=s[r>>18&63],t+=s[r>>12&63],t+=s[r>>6&63],t+=s[r&63]),r=(r<<8)+e[n];return i=o%3,i===0?(t+=s[r>>18&63],t+=s[r>>12&63],t+=s[r>>6&63],t+=s[r&63]):i===2?(t+=s[r>>10&63],t+=s[r>>4&63],t+=s[r<<2&63],t+=s[64]):i===1&&(t+=s[r>>2&63],t+=s[r<<4&63],t+=s[64],t+=s[64]),t}function TN(e){return jn&&jn.isBuffer(e)}Ww.exports=new vN("tag:yaml.org,2002:binary",{kind:"scalar",resolve:SN,construct:kN,predicate:TN,represent:AN})});var Jw=N((JV,Gw)=>{"use strict";var CN=Ge(),EN=Object.prototype.hasOwnProperty,_N=Object.prototype.toString;function IN(e){if(e===null)return!0;var t=[],r,n,i,o,s,a=e;for(r=0,n=a.length;r<n;r+=1){if(i=a[r],s=!1,_N.call(i)!=="[object Object]")return!1;for(o in i)if(EN.call(i,o))if(!s)s=!0;else return!1;if(!s)return!1;if(t.indexOf(o)===-1)t.push(o);else return!1}return!0}function PN(e){return e!==null?e:[]}Gw.exports=new CN("tag:yaml.org,2002:omap",{kind:"sequence",resolve:IN,construct:PN})});var Zw=N((QV,Qw)=>{"use strict";var DN=Ge(),ON=Object.prototype.toString;function MN(e){if(e===null)return!0;var t,r,n,i,o,s=e;for(o=new Array(s.length),t=0,r=s.length;t<r;t+=1){if(n=s[t],ON.call(n)!=="[object Object]"||(i=Object.keys(n),i.length!==1))return!1;o[t]=[i[0],n[i[0]]]}return!0}function NN(e){if(e===null)return[];var t,r,n,i,o,s=e;for(o=new Array(s.length),t=0,r=s.length;t<r;t+=1)n=s[t],i=Object.keys(n),o[t]=[i[0],n[i[0]]];return o}Qw.exports=new DN("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:MN,construct:NN})});var Kw=N((ZV,Xw)=>{"use strict";var FN=Ge(),RN=Object.prototype.hasOwnProperty;function LN(e){if(e===null)return!0;var t,r=e;for(t in r)if(RN.call(r,t)&&r[t]!==null)return!1;return!0}function BN(e){return e!==null?e:{}}Xw.exports=new FN("tag:yaml.org,2002:set",{kind:"mapping",resolve:LN,construct:BN})});var Gi=N((XV,ev)=>{"use strict";var $N=Un();ev.exports=new $N({include:[Wp()],implicit:[zw(),Hw()],explicit:[Yw(),Jw(),Zw(),Kw()]})});var rv=N((KV,tv)=>{"use strict";var UN=Ge();function jN(){return!0}function zN(){}function qN(){return""}function HN(e){return typeof e>"u"}tv.exports=new UN("tag:yaml.org,2002:js/undefined",{kind:"scalar",resolve:jN,construct:zN,predicate:HN,represent:qN})});var iv=N((eW,nv)=>{"use strict";var VN=Ge();function WN(e){if(e===null||e.length===0)return!1;var t=e,r=/\/([gim]*)$/.exec(e),n="";return!(t[0]==="/"&&(r&&(n=r[1]),n.length>3||t[t.length-n.length-1]!=="/"))}function YN(e){var t=e,r=/\/([gim]*)$/.exec(e),n="";return t[0]==="/"&&(r&&(n=r[1]),t=t.slice(1,t.length-n.length-1)),new RegExp(t,n)}function GN(e){var t="/"+e.source+"/";return e.global&&(t+="g"),e.multiline&&(t+="m"),e.ignoreCase&&(t+="i"),t}function JN(e){return Object.prototype.toString.call(e)==="[object RegExp]"}nv.exports=new VN("tag:yaml.org,2002:js/regexp",{kind:"scalar",resolve:WN,construct:YN,predicate:JN,represent:GN})});var av=N((tW,sv)=>{"use strict";var zl;try{ov=ma,zl=ov("esprima")}catch{typeof window<"u"&&(zl=window.esprima)}var ov,QN=Ge();function ZN(e){if(e===null)return!1;try{var t="("+e+")",r=zl.parse(t,{range:!0});return!(r.type!=="Program"||r.body.length!==1||r.body[0].type!=="ExpressionStatement"||r.body[0].expression.type!=="ArrowFunctionExpression"&&r.body[0].expression.type!=="FunctionExpression")}catch{return!1}}function XN(e){var t="("+e+")",r=zl.parse(t,{range:!0}),n=[],i;if(r.type!=="Program"||r.body.length!==1||r.body[0].type!=="ExpressionStatement"||r.body[0].expression.type!=="ArrowFunctionExpression"&&r.body[0].expression.type!=="FunctionExpression")throw new Error("Failed to resolve function");return r.body[0].expression.params.forEach(function(o){n.push(o.name)}),i=r.body[0].expression.body.range,r.body[0].expression.body.type==="BlockStatement"?new Function(n,t.slice(i[0]+1,i[1]-1)):new Function(n,"return "+t.slice(i[0],i[1]))}function KN(e){return e.toString()}function eF(e){return Object.prototype.toString.call(e)==="[object Function]"}sv.exports=new QN("tag:yaml.org,2002:js/function",{kind:"scalar",resolve:ZN,construct:XN,predicate:eF,represent:KN})});var Ss=N((nW,uv)=>{"use strict";var lv=Un();uv.exports=lv.DEFAULT=new lv({include:[Gi()],explicit:[rv(),iv(),av()]})});var _v=N((iW,ks)=>{"use strict";var Ar=$n(),gv=Wi(),tF=gw(),yv=Gi(),rF=Ss(),Jr=Object.prototype.hasOwnProperty,ql=1,xv=2,bv=3,Hl=4,Gp=1,nF=2,cv=3,iF=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,oF=/[\x85\u2028\u2029]/,sF=/[,\[\]\{\}]/,wv=/^(?:!|!!|![a-z\-]+!)$/i,vv=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function fv(e){return Object.prototype.toString.call(e)}function Kt(e){return e===10||e===13}function qn(e){return e===9||e===32}function gt(e){return e===9||e===32||e===10||e===13}function Ji(e){return e===44||e===91||e===93||e===123||e===125}function aF(e){var t;return 48<=e&&e<=57?e-48:(t=e|32,97<=t&&t<=102?t-97+10:-1)}function lF(e){return e===120?2:e===117?4:e===85?8:0}function uF(e){return 48<=e&&e<=57?e-48:-1}function pv(e){return e===48?"\0":e===97?"\x07":e===98?"\b":e===116||e===9?" ":e===110?`
11
+ `:e===118?"\v":e===102?"\f":e===114?"\r":e===101?"\x1B":e===32?" ":e===34?'"':e===47?"/":e===92?"\\":e===78?"\x85":e===95?"\xA0":e===76?"\u2028":e===80?"\u2029":""}function cF(e){return e<=65535?String.fromCharCode(e):String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}var Sv=new Array(256),kv=new Array(256);for(zn=0;zn<256;zn++)Sv[zn]=pv(zn)?1:0,kv[zn]=pv(zn);var zn;function fF(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||rF,this.onWarning=t.onWarning||null,this.legacy=t.legacy||!1,this.json=t.json||!1,this.listener=t.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=e.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.documents=[]}function Av(e,t){return new gv(t,new tF(e.filename,e.input,e.position,e.line,e.position-e.lineStart))}function K(e,t){throw Av(e,t)}function Vl(e,t){e.onWarning&&e.onWarning.call(null,Av(e,t))}var hv={YAML:function(t,r,n){var i,o,s;t.version!==null&&K(t,"duplication of %YAML directive"),n.length!==1&&K(t,"YAML directive accepts exactly one argument"),i=/^([0-9]+)\.([0-9]+)$/.exec(n[0]),i===null&&K(t,"ill-formed argument of the YAML directive"),o=parseInt(i[1],10),s=parseInt(i[2],10),o!==1&&K(t,"unacceptable YAML version of the document"),t.version=n[0],t.checkLineBreaks=s<2,s!==1&&s!==2&&Vl(t,"unsupported YAML version of the document")},TAG:function(t,r,n){var i,o;n.length!==2&&K(t,"TAG directive accepts exactly two arguments"),i=n[0],o=n[1],wv.test(i)||K(t,"ill-formed tag handle (first argument) of the TAG directive"),Jr.call(t.tagMap,i)&&K(t,'there is a previously declared suffix for "'+i+'" tag handle'),vv.test(o)||K(t,"ill-formed tag prefix (second argument) of the TAG directive"),t.tagMap[i]=o}};function Gr(e,t,r,n){var i,o,s,a;if(t<r){if(a=e.input.slice(t,r),n)for(i=0,o=a.length;i<o;i+=1)s=a.charCodeAt(i),s===9||32<=s&&s<=1114111||K(e,"expected valid JSON character");else iF.test(a)&&K(e,"the stream contains non-printable characters");e.result+=a}}function mv(e,t,r,n){var i,o,s,a;for(Ar.isObject(r)||K(e,"cannot merge mappings; the provided source object is unacceptable"),i=Object.keys(r),s=0,a=i.length;s<a;s+=1)o=i[s],Jr.call(t,o)||(t[o]=r[o],n[o]=!0)}function Qi(e,t,r,n,i,o,s,a){var l,u;if(Array.isArray(i))for(i=Array.prototype.slice.call(i),l=0,u=i.length;l<u;l+=1)Array.isArray(i[l])&&K(e,"nested arrays are not supported inside keys"),typeof i=="object"&&fv(i[l])==="[object Object]"&&(i[l]="[object Object]");if(typeof i=="object"&&fv(i)==="[object Object]"&&(i="[object Object]"),i=String(i),t===null&&(t={}),n==="tag:yaml.org,2002:merge")if(Array.isArray(o))for(l=0,u=o.length;l<u;l+=1)mv(e,t,o[l],r);else mv(e,t,o,r);else!e.json&&!Jr.call(r,i)&&Jr.call(t,i)&&(e.line=s||e.line,e.position=a||e.position,K(e,"duplicated mapping key")),t[i]=o,delete r[i];return t}function Jp(e){var t;t=e.input.charCodeAt(e.position),t===10?e.position++:t===13?(e.position++,e.input.charCodeAt(e.position)===10&&e.position++):K(e,"a line break is expected"),e.line+=1,e.lineStart=e.position}function ze(e,t,r){for(var n=0,i=e.input.charCodeAt(e.position);i!==0;){for(;qn(i);)i=e.input.charCodeAt(++e.position);if(t&&i===35)do i=e.input.charCodeAt(++e.position);while(i!==10&&i!==13&&i!==0);if(Kt(i))for(Jp(e),i=e.input.charCodeAt(e.position),n++,e.lineIndent=0;i===32;)e.lineIndent++,i=e.input.charCodeAt(++e.position);else break}return r!==-1&&n!==0&&e.lineIndent<r&&Vl(e,"deficient indentation"),n}function Wl(e){var t=e.position,r;return r=e.input.charCodeAt(t),!!((r===45||r===46)&&r===e.input.charCodeAt(t+1)&&r===e.input.charCodeAt(t+2)&&(t+=3,r=e.input.charCodeAt(t),r===0||gt(r)))}function Qp(e,t){t===1?e.result+=" ":t>1&&(e.result+=Ar.repeat(`
12
+ `,t-1))}function pF(e,t,r){var n,i,o,s,a,l,u,c,f=e.kind,p=e.result,h;if(h=e.input.charCodeAt(e.position),gt(h)||Ji(h)||h===35||h===38||h===42||h===33||h===124||h===62||h===39||h===34||h===37||h===64||h===96||(h===63||h===45)&&(i=e.input.charCodeAt(e.position+1),gt(i)||r&&Ji(i)))return!1;for(e.kind="scalar",e.result="",o=s=e.position,a=!1;h!==0;){if(h===58){if(i=e.input.charCodeAt(e.position+1),gt(i)||r&&Ji(i))break}else if(h===35){if(n=e.input.charCodeAt(e.position-1),gt(n))break}else{if(e.position===e.lineStart&&Wl(e)||r&&Ji(h))break;if(Kt(h))if(l=e.line,u=e.lineStart,c=e.lineIndent,ze(e,!1,-1),e.lineIndent>=t){a=!0,h=e.input.charCodeAt(e.position);continue}else{e.position=s,e.line=l,e.lineStart=u,e.lineIndent=c;break}}a&&(Gr(e,o,s,!1),Qp(e,e.line-l),o=s=e.position,a=!1),qn(h)||(s=e.position+1),h=e.input.charCodeAt(++e.position)}return Gr(e,o,s,!1),e.result?!0:(e.kind=f,e.result=p,!1)}function hF(e,t){var r,n,i;if(r=e.input.charCodeAt(e.position),r!==39)return!1;for(e.kind="scalar",e.result="",e.position++,n=i=e.position;(r=e.input.charCodeAt(e.position))!==0;)if(r===39)if(Gr(e,n,e.position,!0),r=e.input.charCodeAt(++e.position),r===39)n=e.position,e.position++,i=e.position;else return!0;else Kt(r)?(Gr(e,n,i,!0),Qp(e,ze(e,!1,t)),n=i=e.position):e.position===e.lineStart&&Wl(e)?K(e,"unexpected end of the document within a single quoted scalar"):(e.position++,i=e.position);K(e,"unexpected end of the stream within a single quoted scalar")}function mF(e,t){var r,n,i,o,s,a;if(a=e.input.charCodeAt(e.position),a!==34)return!1;for(e.kind="scalar",e.result="",e.position++,r=n=e.position;(a=e.input.charCodeAt(e.position))!==0;){if(a===34)return Gr(e,r,e.position,!0),e.position++,!0;if(a===92){if(Gr(e,r,e.position,!0),a=e.input.charCodeAt(++e.position),Kt(a))ze(e,!1,t);else if(a<256&&Sv[a])e.result+=kv[a],e.position++;else if((s=lF(a))>0){for(i=s,o=0;i>0;i--)a=e.input.charCodeAt(++e.position),(s=aF(a))>=0?o=(o<<4)+s:K(e,"expected hexadecimal character");e.result+=cF(o),e.position++}else K(e,"unknown escape sequence");r=n=e.position}else Kt(a)?(Gr(e,r,n,!0),Qp(e,ze(e,!1,t)),r=n=e.position):e.position===e.lineStart&&Wl(e)?K(e,"unexpected end of the document within a double quoted scalar"):(e.position++,n=e.position)}K(e,"unexpected end of the stream within a double quoted scalar")}function dF(e,t){var r=!0,n,i=e.tag,o,s=e.anchor,a,l,u,c,f,p={},h,m,x,v;if(v=e.input.charCodeAt(e.position),v===91)l=93,f=!1,o=[];else if(v===123)l=125,f=!0,o={};else return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=o),v=e.input.charCodeAt(++e.position);v!==0;){if(ze(e,!0,t),v=e.input.charCodeAt(e.position),v===l)return e.position++,e.tag=i,e.anchor=s,e.kind=f?"mapping":"sequence",e.result=o,!0;r||K(e,"missed comma between flow collection entries"),m=h=x=null,u=c=!1,v===63&&(a=e.input.charCodeAt(e.position+1),gt(a)&&(u=c=!0,e.position++,ze(e,!0,t))),n=e.line,Zi(e,t,ql,!1,!0),m=e.tag,h=e.result,ze(e,!0,t),v=e.input.charCodeAt(e.position),(c||e.line===n)&&v===58&&(u=!0,v=e.input.charCodeAt(++e.position),ze(e,!0,t),Zi(e,t,ql,!1,!0),x=e.result),f?Qi(e,o,p,m,h,x):u?o.push(Qi(e,null,p,m,h,x)):o.push(h),ze(e,!0,t),v=e.input.charCodeAt(e.position),v===44?(r=!0,v=e.input.charCodeAt(++e.position)):r=!1}K(e,"unexpected end of the stream within a flow collection")}function gF(e,t){var r,n,i=Gp,o=!1,s=!1,a=t,l=0,u=!1,c,f;if(f=e.input.charCodeAt(e.position),f===124)n=!1;else if(f===62)n=!0;else return!1;for(e.kind="scalar",e.result="";f!==0;)if(f=e.input.charCodeAt(++e.position),f===43||f===45)Gp===i?i=f===43?cv:nF:K(e,"repeat of a chomping mode identifier");else if((c=uF(f))>=0)c===0?K(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):s?K(e,"repeat of an indentation width identifier"):(a=t+c-1,s=!0);else break;if(qn(f)){do f=e.input.charCodeAt(++e.position);while(qn(f));if(f===35)do f=e.input.charCodeAt(++e.position);while(!Kt(f)&&f!==0)}for(;f!==0;){for(Jp(e),e.lineIndent=0,f=e.input.charCodeAt(e.position);(!s||e.lineIndent<a)&&f===32;)e.lineIndent++,f=e.input.charCodeAt(++e.position);if(!s&&e.lineIndent>a&&(a=e.lineIndent),Kt(f)){l++;continue}if(e.lineIndent<a){i===cv?e.result+=Ar.repeat(`
13
13
  `,o?1+l:l):i===Gp&&o&&(e.result+=`
14
14
  `);break}for(n?qn(f)?(u=!0,e.result+=Ar.repeat(`
15
15
  `,o?1+l:l)):u?(u=!1,e.result+=Ar.repeat(`
16
16
  `,l+1)):l===0?o&&(e.result+=" "):e.result+=Ar.repeat(`
17
17
  `,l):e.result+=Ar.repeat(`
18
- `,o?1+l:l),o=!0,s=!0,l=0,r=e.position;!Kt(f)&&f!==0;)f=e.input.charCodeAt(++e.position);Gr(e,r,e.position,!1)}return!0}function dv(e,t){var r,n=e.tag,i=e.anchor,o=[],s,a=!1,l;for(e.anchor!==null&&(e.anchorMap[e.anchor]=o),l=e.input.charCodeAt(e.position);l!==0&&!(l!==45||(s=e.input.charCodeAt(e.position+1),!gt(s)));){if(a=!0,e.position++,ze(e,!0,-1)&&e.lineIndent<=t){o.push(null),l=e.input.charCodeAt(e.position);continue}if(r=e.line,Zi(e,t,bv,!1,!0),o.push(e.result),ze(e,!0,-1),l=e.input.charCodeAt(e.position),(e.line===r||e.lineIndent>t)&&l!==0)K(e,"bad indentation of a sequence entry");else if(e.lineIndent<t)break}return a?(e.tag=n,e.anchor=i,e.kind="sequence",e.result=o,!0):!1}function dF(e,t,r){var n,i,o,s,a=e.tag,l=e.anchor,u={},c={},f=null,p=null,h=null,m=!1,x=!1,v;for(e.anchor!==null&&(e.anchorMap[e.anchor]=u),v=e.input.charCodeAt(e.position);v!==0;){if(n=e.input.charCodeAt(e.position+1),o=e.line,s=e.position,(v===63||v===58)&&gt(n))v===63?(m&&(Qi(e,u,c,f,p,null),f=p=h=null),x=!0,m=!0,i=!0):m?(m=!1,i=!0):K(e,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),e.position+=1,v=n;else if(Zi(e,r,xv,!1,!0))if(e.line===o){for(v=e.input.charCodeAt(e.position);qn(v);)v=e.input.charCodeAt(++e.position);if(v===58)v=e.input.charCodeAt(++e.position),gt(v)||K(e,"a whitespace character is expected after the key-value separator within a block mapping"),m&&(Qi(e,u,c,f,p,null),f=p=h=null),x=!0,m=!1,i=!1,f=e.tag,p=e.result;else if(x)K(e,"can not read an implicit mapping pair; a colon is missed");else return e.tag=a,e.anchor=l,!0}else if(x)K(e,"can not read a block mapping entry; a multiline key may not be an implicit key");else return e.tag=a,e.anchor=l,!0;else break;if((e.line===o||e.lineIndent>t)&&(Zi(e,t,Hl,!0,i)&&(m?p=e.result:h=e.result),m||(Qi(e,u,c,f,p,h,o,s),f=p=h=null),ze(e,!0,-1),v=e.input.charCodeAt(e.position)),e.lineIndent>t&&v!==0)K(e,"bad indentation of a mapping entry");else if(e.lineIndent<t)break}return m&&Qi(e,u,c,f,p,null),x&&(e.tag=a,e.anchor=l,e.kind="mapping",e.result=u),x}function gF(e){var t,r=!1,n=!1,i,o,s;if(s=e.input.charCodeAt(e.position),s!==33)return!1;if(e.tag!==null&&K(e,"duplication of a tag property"),s=e.input.charCodeAt(++e.position),s===60?(r=!0,s=e.input.charCodeAt(++e.position)):s===33?(n=!0,i="!!",s=e.input.charCodeAt(++e.position)):i="!",t=e.position,r){do s=e.input.charCodeAt(++e.position);while(s!==0&&s!==62);e.position<e.length?(o=e.input.slice(t,e.position),s=e.input.charCodeAt(++e.position)):K(e,"unexpected end of the stream within a verbatim tag")}else{for(;s!==0&&!gt(s);)s===33&&(n?K(e,"tag suffix cannot contain exclamation marks"):(i=e.input.slice(t-1,e.position+1),wv.test(i)||K(e,"named tag handle cannot contain such characters"),n=!0,t=e.position+1)),s=e.input.charCodeAt(++e.position);o=e.input.slice(t,e.position),iF.test(o)&&K(e,"tag suffix cannot contain flow indicator characters")}return o&&!vv.test(o)&&K(e,"tag name cannot contain such characters: "+o),r?e.tag=o:Jr.call(e.tagMap,i)?e.tag=e.tagMap[i]+o:i==="!"?e.tag="!"+o:i==="!!"?e.tag="tag:yaml.org,2002:"+o:K(e,'undeclared tag handle "'+i+'"'),!0}function yF(e){var t,r;if(r=e.input.charCodeAt(e.position),r!==38)return!1;for(e.anchor!==null&&K(e,"duplication of an anchor property"),r=e.input.charCodeAt(++e.position),t=e.position;r!==0&&!gt(r)&&!Ji(r);)r=e.input.charCodeAt(++e.position);return e.position===t&&K(e,"name of an anchor node must contain at least one character"),e.anchor=e.input.slice(t,e.position),!0}function xF(e){var t,r,n;if(n=e.input.charCodeAt(e.position),n!==42)return!1;for(n=e.input.charCodeAt(++e.position),t=e.position;n!==0&&!gt(n)&&!Ji(n);)n=e.input.charCodeAt(++e.position);return e.position===t&&K(e,"name of an alias node must contain at least one character"),r=e.input.slice(t,e.position),Jr.call(e.anchorMap,r)||K(e,'unidentified alias "'+r+'"'),e.result=e.anchorMap[r],ze(e,!0,-1),!0}function Zi(e,t,r,n,i){var o,s,a,l=1,u=!1,c=!1,f,p,h,m,x;if(e.listener!==null&&e.listener("open",e),e.tag=null,e.anchor=null,e.kind=null,e.result=null,o=s=a=Hl===r||bv===r,n&&ze(e,!0,-1)&&(u=!0,e.lineIndent>t?l=1:e.lineIndent===t?l=0:e.lineIndent<t&&(l=-1)),l===1)for(;gF(e)||yF(e);)ze(e,!0,-1)?(u=!0,a=o,e.lineIndent>t?l=1:e.lineIndent===t?l=0:e.lineIndent<t&&(l=-1)):a=!1;if(a&&(a=u||i),(l===1||Hl===r)&&(ql===r||xv===r?m=t:m=t+1,x=e.position-e.lineStart,l===1?a&&(dv(e,x)||dF(e,x,m))||hF(e,m)?c=!0:(s&&mF(e,m)||fF(e,m)||pF(e,m)?c=!0:xF(e)?(c=!0,(e.tag!==null||e.anchor!==null)&&K(e,"alias node should not have any properties")):cF(e,m,ql===r)&&(c=!0,e.tag===null&&(e.tag="?")),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):l===0&&(c=a&&dv(e,x))),e.tag!==null&&e.tag!=="!")if(e.tag==="?"){for(e.result!==null&&e.kind!=="scalar"&&K(e,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+e.kind+'"'),f=0,p=e.implicitTypes.length;f<p;f+=1)if(h=e.implicitTypes[f],h.resolve(e.result)){e.result=h.construct(e.result),e.tag=h.tag,e.anchor!==null&&(e.anchorMap[e.anchor]=e.result);break}}else Jr.call(e.typeMap[e.kind||"fallback"],e.tag)?(h=e.typeMap[e.kind||"fallback"][e.tag],e.result!==null&&h.kind!==e.kind&&K(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+h.kind+'", not "'+e.kind+'"'),h.resolve(e.result)?(e.result=h.construct(e.result),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):K(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")):K(e,"unknown tag !<"+e.tag+">");return e.listener!==null&&e.listener("close",e),e.tag!==null||e.anchor!==null||c}function bF(e){var t=e.position,r,n,i,o=!1,s;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap={},e.anchorMap={};(s=e.input.charCodeAt(e.position))!==0&&(ze(e,!0,-1),s=e.input.charCodeAt(e.position),!(e.lineIndent>0||s!==37));){for(o=!0,s=e.input.charCodeAt(++e.position),r=e.position;s!==0&&!gt(s);)s=e.input.charCodeAt(++e.position);for(n=e.input.slice(r,e.position),i=[],n.length<1&&K(e,"directive name must not be less than one character in length");s!==0;){for(;qn(s);)s=e.input.charCodeAt(++e.position);if(s===35){do s=e.input.charCodeAt(++e.position);while(s!==0&&!Kt(s));break}if(Kt(s))break;for(r=e.position;s!==0&&!gt(s);)s=e.input.charCodeAt(++e.position);i.push(e.input.slice(r,e.position))}s!==0&&Jp(e),Jr.call(hv,n)?hv[n](e,n,i):Vl(e,'unknown document directive "'+n+'"')}if(ze(e,!0,-1),e.lineIndent===0&&e.input.charCodeAt(e.position)===45&&e.input.charCodeAt(e.position+1)===45&&e.input.charCodeAt(e.position+2)===45?(e.position+=3,ze(e,!0,-1)):o&&K(e,"directives end mark is expected"),Zi(e,e.lineIndent-1,Hl,!1,!0),ze(e,!0,-1),e.checkLineBreaks&&nF.test(e.input.slice(t,e.position))&&Vl(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&Wl(e)){e.input.charCodeAt(e.position)===46&&(e.position+=3,ze(e,!0,-1));return}if(e.position<e.length-1)K(e,"end of the stream or a document separator is expected");else return}function Tv(e,t){e=String(e),t=t||{},e.length!==0&&(e.charCodeAt(e.length-1)!==10&&e.charCodeAt(e.length-1)!==13&&(e+=`
19
- `),e.charCodeAt(0)===65279&&(e=e.slice(1)));var r=new uF(e,t),n=e.indexOf("\0");for(n!==-1&&(r.position=n,K(r,"null byte is not allowed in input")),r.input+="\0";r.input.charCodeAt(r.position)===32;)r.lineIndent+=1,r.position+=1;for(;r.position<r.length-1;)bF(r);return r.documents}function Cv(e,t,r){t!==null&&typeof t=="object"&&typeof r>"u"&&(r=t,t=null);var n=Tv(e,r);if(typeof t!="function")return n;for(var i=0,o=n.length;i<o;i+=1)t(n[i])}function Ev(e,t){var r=Tv(e,t);if(r.length!==0){if(r.length===1)return r[0];throw new gv("expected a single document in the stream, but found more")}}function wF(e,t,r){return typeof t=="object"&&t!==null&&typeof r>"u"&&(r=t,t=null),Cv(e,t,Ar.extend({schema:yv},r))}function vF(e,t){return Ev(e,Ar.extend({schema:yv},t))}ks.exports.loadAll=Cv;ks.exports.load=Ev;ks.exports.safeLoadAll=wF;ks.exports.safeLoad=vF});var Zv=N((nW,eh)=>{"use strict";var Ts=$n(),Cs=Wi(),SF=Ss(),kF=Gi(),Rv=Object.prototype.toString,Lv=Object.prototype.hasOwnProperty,AF=9,As=10,TF=13,CF=32,EF=33,_F=34,Bv=35,IF=37,DF=38,OF=39,MF=42,$v=44,PF=45,Uv=58,NF=61,FF=62,RF=63,LF=64,jv=91,zv=93,BF=96,qv=123,$F=124,Hv=125,it={};it[0]="\\0";it[7]="\\a";it[8]="\\b";it[9]="\\t";it[10]="\\n";it[11]="\\v";it[12]="\\f";it[13]="\\r";it[27]="\\e";it[34]='\\"';it[92]="\\\\";it[133]="\\N";it[160]="\\_";it[8232]="\\L";it[8233]="\\P";var UF=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"];function jF(e,t){var r,n,i,o,s,a,l;if(t===null)return{};for(r={},n=Object.keys(t),i=0,o=n.length;i<o;i+=1)s=n[i],a=String(t[s]),s.slice(0,2)==="!!"&&(s="tag:yaml.org,2002:"+s.slice(2)),l=e.compiledTypeMap.fallback[s],l&&Lv.call(l.styleAliases,a)&&(a=l.styleAliases[a]),r[s]=a;return r}function Iv(e){var t,r,n;if(t=e.toString(16).toUpperCase(),e<=255)r="x",n=2;else if(e<=65535)r="u",n=4;else if(e<=4294967295)r="U",n=8;else throw new Cs("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+r+Ts.repeat("0",n-t.length)+t}function zF(e){this.schema=e.schema||SF,this.indent=Math.max(1,e.indent||2),this.noArrayIndent=e.noArrayIndent||!1,this.skipInvalid=e.skipInvalid||!1,this.flowLevel=Ts.isNothing(e.flowLevel)?-1:e.flowLevel,this.styleMap=jF(this.schema,e.styles||null),this.sortKeys=e.sortKeys||!1,this.lineWidth=e.lineWidth||80,this.noRefs=e.noRefs||!1,this.noCompatMode=e.noCompatMode||!1,this.condenseFlow=e.condenseFlow||!1,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}function Dv(e,t){for(var r=Ts.repeat(" ",t),n=0,i=-1,o="",s,a=e.length;n<a;)i=e.indexOf(`
18
+ `,o?1+l:l),o=!0,s=!0,l=0,r=e.position;!Kt(f)&&f!==0;)f=e.input.charCodeAt(++e.position);Gr(e,r,e.position,!1)}return!0}function dv(e,t){var r,n=e.tag,i=e.anchor,o=[],s,a=!1,l;for(e.anchor!==null&&(e.anchorMap[e.anchor]=o),l=e.input.charCodeAt(e.position);l!==0&&!(l!==45||(s=e.input.charCodeAt(e.position+1),!gt(s)));){if(a=!0,e.position++,ze(e,!0,-1)&&e.lineIndent<=t){o.push(null),l=e.input.charCodeAt(e.position);continue}if(r=e.line,Zi(e,t,bv,!1,!0),o.push(e.result),ze(e,!0,-1),l=e.input.charCodeAt(e.position),(e.line===r||e.lineIndent>t)&&l!==0)K(e,"bad indentation of a sequence entry");else if(e.lineIndent<t)break}return a?(e.tag=n,e.anchor=i,e.kind="sequence",e.result=o,!0):!1}function yF(e,t,r){var n,i,o,s,a=e.tag,l=e.anchor,u={},c={},f=null,p=null,h=null,m=!1,x=!1,v;for(e.anchor!==null&&(e.anchorMap[e.anchor]=u),v=e.input.charCodeAt(e.position);v!==0;){if(n=e.input.charCodeAt(e.position+1),o=e.line,s=e.position,(v===63||v===58)&&gt(n))v===63?(m&&(Qi(e,u,c,f,p,null),f=p=h=null),x=!0,m=!0,i=!0):m?(m=!1,i=!0):K(e,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),e.position+=1,v=n;else if(Zi(e,r,xv,!1,!0))if(e.line===o){for(v=e.input.charCodeAt(e.position);qn(v);)v=e.input.charCodeAt(++e.position);if(v===58)v=e.input.charCodeAt(++e.position),gt(v)||K(e,"a whitespace character is expected after the key-value separator within a block mapping"),m&&(Qi(e,u,c,f,p,null),f=p=h=null),x=!0,m=!1,i=!1,f=e.tag,p=e.result;else if(x)K(e,"can not read an implicit mapping pair; a colon is missed");else return e.tag=a,e.anchor=l,!0}else if(x)K(e,"can not read a block mapping entry; a multiline key may not be an implicit key");else return e.tag=a,e.anchor=l,!0;else break;if((e.line===o||e.lineIndent>t)&&(Zi(e,t,Hl,!0,i)&&(m?p=e.result:h=e.result),m||(Qi(e,u,c,f,p,h,o,s),f=p=h=null),ze(e,!0,-1),v=e.input.charCodeAt(e.position)),e.lineIndent>t&&v!==0)K(e,"bad indentation of a mapping entry");else if(e.lineIndent<t)break}return m&&Qi(e,u,c,f,p,null),x&&(e.tag=a,e.anchor=l,e.kind="mapping",e.result=u),x}function xF(e){var t,r=!1,n=!1,i,o,s;if(s=e.input.charCodeAt(e.position),s!==33)return!1;if(e.tag!==null&&K(e,"duplication of a tag property"),s=e.input.charCodeAt(++e.position),s===60?(r=!0,s=e.input.charCodeAt(++e.position)):s===33?(n=!0,i="!!",s=e.input.charCodeAt(++e.position)):i="!",t=e.position,r){do s=e.input.charCodeAt(++e.position);while(s!==0&&s!==62);e.position<e.length?(o=e.input.slice(t,e.position),s=e.input.charCodeAt(++e.position)):K(e,"unexpected end of the stream within a verbatim tag")}else{for(;s!==0&&!gt(s);)s===33&&(n?K(e,"tag suffix cannot contain exclamation marks"):(i=e.input.slice(t-1,e.position+1),wv.test(i)||K(e,"named tag handle cannot contain such characters"),n=!0,t=e.position+1)),s=e.input.charCodeAt(++e.position);o=e.input.slice(t,e.position),sF.test(o)&&K(e,"tag suffix cannot contain flow indicator characters")}return o&&!vv.test(o)&&K(e,"tag name cannot contain such characters: "+o),r?e.tag=o:Jr.call(e.tagMap,i)?e.tag=e.tagMap[i]+o:i==="!"?e.tag="!"+o:i==="!!"?e.tag="tag:yaml.org,2002:"+o:K(e,'undeclared tag handle "'+i+'"'),!0}function bF(e){var t,r;if(r=e.input.charCodeAt(e.position),r!==38)return!1;for(e.anchor!==null&&K(e,"duplication of an anchor property"),r=e.input.charCodeAt(++e.position),t=e.position;r!==0&&!gt(r)&&!Ji(r);)r=e.input.charCodeAt(++e.position);return e.position===t&&K(e,"name of an anchor node must contain at least one character"),e.anchor=e.input.slice(t,e.position),!0}function wF(e){var t,r,n;if(n=e.input.charCodeAt(e.position),n!==42)return!1;for(n=e.input.charCodeAt(++e.position),t=e.position;n!==0&&!gt(n)&&!Ji(n);)n=e.input.charCodeAt(++e.position);return e.position===t&&K(e,"name of an alias node must contain at least one character"),r=e.input.slice(t,e.position),Jr.call(e.anchorMap,r)||K(e,'unidentified alias "'+r+'"'),e.result=e.anchorMap[r],ze(e,!0,-1),!0}function Zi(e,t,r,n,i){var o,s,a,l=1,u=!1,c=!1,f,p,h,m,x;if(e.listener!==null&&e.listener("open",e),e.tag=null,e.anchor=null,e.kind=null,e.result=null,o=s=a=Hl===r||bv===r,n&&ze(e,!0,-1)&&(u=!0,e.lineIndent>t?l=1:e.lineIndent===t?l=0:e.lineIndent<t&&(l=-1)),l===1)for(;xF(e)||bF(e);)ze(e,!0,-1)?(u=!0,a=o,e.lineIndent>t?l=1:e.lineIndent===t?l=0:e.lineIndent<t&&(l=-1)):a=!1;if(a&&(a=u||i),(l===1||Hl===r)&&(ql===r||xv===r?m=t:m=t+1,x=e.position-e.lineStart,l===1?a&&(dv(e,x)||yF(e,x,m))||dF(e,m)?c=!0:(s&&gF(e,m)||hF(e,m)||mF(e,m)?c=!0:wF(e)?(c=!0,(e.tag!==null||e.anchor!==null)&&K(e,"alias node should not have any properties")):pF(e,m,ql===r)&&(c=!0,e.tag===null&&(e.tag="?")),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):l===0&&(c=a&&dv(e,x))),e.tag!==null&&e.tag!=="!")if(e.tag==="?"){for(e.result!==null&&e.kind!=="scalar"&&K(e,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+e.kind+'"'),f=0,p=e.implicitTypes.length;f<p;f+=1)if(h=e.implicitTypes[f],h.resolve(e.result)){e.result=h.construct(e.result),e.tag=h.tag,e.anchor!==null&&(e.anchorMap[e.anchor]=e.result);break}}else Jr.call(e.typeMap[e.kind||"fallback"],e.tag)?(h=e.typeMap[e.kind||"fallback"][e.tag],e.result!==null&&h.kind!==e.kind&&K(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+h.kind+'", not "'+e.kind+'"'),h.resolve(e.result)?(e.result=h.construct(e.result),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):K(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")):K(e,"unknown tag !<"+e.tag+">");return e.listener!==null&&e.listener("close",e),e.tag!==null||e.anchor!==null||c}function vF(e){var t=e.position,r,n,i,o=!1,s;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap={},e.anchorMap={};(s=e.input.charCodeAt(e.position))!==0&&(ze(e,!0,-1),s=e.input.charCodeAt(e.position),!(e.lineIndent>0||s!==37));){for(o=!0,s=e.input.charCodeAt(++e.position),r=e.position;s!==0&&!gt(s);)s=e.input.charCodeAt(++e.position);for(n=e.input.slice(r,e.position),i=[],n.length<1&&K(e,"directive name must not be less than one character in length");s!==0;){for(;qn(s);)s=e.input.charCodeAt(++e.position);if(s===35){do s=e.input.charCodeAt(++e.position);while(s!==0&&!Kt(s));break}if(Kt(s))break;for(r=e.position;s!==0&&!gt(s);)s=e.input.charCodeAt(++e.position);i.push(e.input.slice(r,e.position))}s!==0&&Jp(e),Jr.call(hv,n)?hv[n](e,n,i):Vl(e,'unknown document directive "'+n+'"')}if(ze(e,!0,-1),e.lineIndent===0&&e.input.charCodeAt(e.position)===45&&e.input.charCodeAt(e.position+1)===45&&e.input.charCodeAt(e.position+2)===45?(e.position+=3,ze(e,!0,-1)):o&&K(e,"directives end mark is expected"),Zi(e,e.lineIndent-1,Hl,!1,!0),ze(e,!0,-1),e.checkLineBreaks&&oF.test(e.input.slice(t,e.position))&&Vl(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&Wl(e)){e.input.charCodeAt(e.position)===46&&(e.position+=3,ze(e,!0,-1));return}if(e.position<e.length-1)K(e,"end of the stream or a document separator is expected");else return}function Tv(e,t){e=String(e),t=t||{},e.length!==0&&(e.charCodeAt(e.length-1)!==10&&e.charCodeAt(e.length-1)!==13&&(e+=`
19
+ `),e.charCodeAt(0)===65279&&(e=e.slice(1)));var r=new fF(e,t),n=e.indexOf("\0");for(n!==-1&&(r.position=n,K(r,"null byte is not allowed in input")),r.input+="\0";r.input.charCodeAt(r.position)===32;)r.lineIndent+=1,r.position+=1;for(;r.position<r.length-1;)vF(r);return r.documents}function Cv(e,t,r){t!==null&&typeof t=="object"&&typeof r>"u"&&(r=t,t=null);var n=Tv(e,r);if(typeof t!="function")return n;for(var i=0,o=n.length;i<o;i+=1)t(n[i])}function Ev(e,t){var r=Tv(e,t);if(r.length!==0){if(r.length===1)return r[0];throw new gv("expected a single document in the stream, but found more")}}function SF(e,t,r){return typeof t=="object"&&t!==null&&typeof r>"u"&&(r=t,t=null),Cv(e,t,Ar.extend({schema:yv},r))}function kF(e,t){return Ev(e,Ar.extend({schema:yv},t))}ks.exports.loadAll=Cv;ks.exports.load=Ev;ks.exports.safeLoadAll=SF;ks.exports.safeLoad=kF});var Zv=N((oW,eh)=>{"use strict";var Ts=$n(),Cs=Wi(),AF=Ss(),TF=Gi(),Rv=Object.prototype.toString,Lv=Object.prototype.hasOwnProperty,CF=9,As=10,EF=13,_F=32,IF=33,PF=34,Bv=35,DF=37,OF=38,MF=39,NF=42,$v=44,FF=45,Uv=58,RF=61,LF=62,BF=63,$F=64,jv=91,zv=93,UF=96,qv=123,jF=124,Hv=125,it={};it[0]="\\0";it[7]="\\a";it[8]="\\b";it[9]="\\t";it[10]="\\n";it[11]="\\v";it[12]="\\f";it[13]="\\r";it[27]="\\e";it[34]='\\"';it[92]="\\\\";it[133]="\\N";it[160]="\\_";it[8232]="\\L";it[8233]="\\P";var zF=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"];function qF(e,t){var r,n,i,o,s,a,l;if(t===null)return{};for(r={},n=Object.keys(t),i=0,o=n.length;i<o;i+=1)s=n[i],a=String(t[s]),s.slice(0,2)==="!!"&&(s="tag:yaml.org,2002:"+s.slice(2)),l=e.compiledTypeMap.fallback[s],l&&Lv.call(l.styleAliases,a)&&(a=l.styleAliases[a]),r[s]=a;return r}function Iv(e){var t,r,n;if(t=e.toString(16).toUpperCase(),e<=255)r="x",n=2;else if(e<=65535)r="u",n=4;else if(e<=4294967295)r="U",n=8;else throw new Cs("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+r+Ts.repeat("0",n-t.length)+t}function HF(e){this.schema=e.schema||AF,this.indent=Math.max(1,e.indent||2),this.noArrayIndent=e.noArrayIndent||!1,this.skipInvalid=e.skipInvalid||!1,this.flowLevel=Ts.isNothing(e.flowLevel)?-1:e.flowLevel,this.styleMap=qF(this.schema,e.styles||null),this.sortKeys=e.sortKeys||!1,this.lineWidth=e.lineWidth||80,this.noRefs=e.noRefs||!1,this.noCompatMode=e.noCompatMode||!1,this.condenseFlow=e.condenseFlow||!1,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}function Pv(e,t){for(var r=Ts.repeat(" ",t),n=0,i=-1,o="",s,a=e.length;n<a;)i=e.indexOf(`
20
20
  `,n),i===-1?(s=e.slice(n),n=a):(s=e.slice(n,i+1),n=i+1),s.length&&s!==`
21
21
  `&&(o+=r),o+=s;return o}function Zp(e,t){return`
22
- `+Ts.repeat(" ",e.indent*t)}function qF(e,t){var r,n,i;for(r=0,n=e.implicitTypes.length;r<n;r+=1)if(i=e.implicitTypes[r],i.resolve(t))return!0;return!1}function Kp(e){return e===CF||e===AF}function Xi(e){return 32<=e&&e<=126||161<=e&&e<=55295&&e!==8232&&e!==8233||57344<=e&&e<=65533&&e!==65279||65536<=e&&e<=1114111}function HF(e){return Xi(e)&&!Kp(e)&&e!==65279&&e!==TF&&e!==As}function Ov(e,t){return Xi(e)&&e!==65279&&e!==$v&&e!==jv&&e!==zv&&e!==qv&&e!==Hv&&e!==Uv&&(e!==Bv||t&&HF(t))}function VF(e){return Xi(e)&&e!==65279&&!Kp(e)&&e!==PF&&e!==RF&&e!==Uv&&e!==$v&&e!==jv&&e!==zv&&e!==qv&&e!==Hv&&e!==Bv&&e!==DF&&e!==MF&&e!==EF&&e!==$F&&e!==NF&&e!==FF&&e!==OF&&e!==_F&&e!==IF&&e!==LF&&e!==BF}function Vv(e){var t=/^\n* /;return t.test(e)}var Wv=1,Yv=2,Gv=3,Jv=4,Yl=5;function WF(e,t,r,n,i){var o,s,a,l=!1,u=!1,c=n!==-1,f=-1,p=VF(e.charCodeAt(0))&&!Kp(e.charCodeAt(e.length-1));if(t)for(o=0;o<e.length;o++){if(s=e.charCodeAt(o),!Xi(s))return Yl;a=o>0?e.charCodeAt(o-1):null,p=p&&Ov(s,a)}else{for(o=0;o<e.length;o++){if(s=e.charCodeAt(o),s===As)l=!0,c&&(u=u||o-f-1>n&&e[f+1]!==" ",f=o);else if(!Xi(s))return Yl;a=o>0?e.charCodeAt(o-1):null,p=p&&Ov(s,a)}u=u||c&&o-f-1>n&&e[f+1]!==" "}return!l&&!u?p&&!i(e)?Wv:Yv:r>9&&Vv(e)?Yl:u?Jv:Gv}function YF(e,t,r,n){e.dump=function(){if(t.length===0)return"''";if(!e.noCompatMode&&UF.indexOf(t)!==-1)return"'"+t+"'";var i=e.indent*Math.max(1,r),o=e.lineWidth===-1?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-i),s=n||e.flowLevel>-1&&r>=e.flowLevel;function a(l){return qF(e,l)}switch(WF(t,s,e.indent,o,a)){case Wv:return t;case Yv:return"'"+t.replace(/'/g,"''")+"'";case Gv:return"|"+Mv(t,e.indent)+Pv(Dv(t,i));case Jv:return">"+Mv(t,e.indent)+Pv(Dv(GF(t,o),i));case Yl:return'"'+JF(t,o)+'"';default:throw new Cs("impossible error: invalid scalar style")}}()}function Mv(e,t){var r=Vv(e)?String(t):"",n=e[e.length-1]===`
22
+ `+Ts.repeat(" ",e.indent*t)}function VF(e,t){var r,n,i;for(r=0,n=e.implicitTypes.length;r<n;r+=1)if(i=e.implicitTypes[r],i.resolve(t))return!0;return!1}function Kp(e){return e===_F||e===CF}function Xi(e){return 32<=e&&e<=126||161<=e&&e<=55295&&e!==8232&&e!==8233||57344<=e&&e<=65533&&e!==65279||65536<=e&&e<=1114111}function WF(e){return Xi(e)&&!Kp(e)&&e!==65279&&e!==EF&&e!==As}function Dv(e,t){return Xi(e)&&e!==65279&&e!==$v&&e!==jv&&e!==zv&&e!==qv&&e!==Hv&&e!==Uv&&(e!==Bv||t&&WF(t))}function YF(e){return Xi(e)&&e!==65279&&!Kp(e)&&e!==FF&&e!==BF&&e!==Uv&&e!==$v&&e!==jv&&e!==zv&&e!==qv&&e!==Hv&&e!==Bv&&e!==OF&&e!==NF&&e!==IF&&e!==jF&&e!==RF&&e!==LF&&e!==MF&&e!==PF&&e!==DF&&e!==$F&&e!==UF}function Vv(e){var t=/^\n* /;return t.test(e)}var Wv=1,Yv=2,Gv=3,Jv=4,Yl=5;function GF(e,t,r,n,i){var o,s,a,l=!1,u=!1,c=n!==-1,f=-1,p=YF(e.charCodeAt(0))&&!Kp(e.charCodeAt(e.length-1));if(t)for(o=0;o<e.length;o++){if(s=e.charCodeAt(o),!Xi(s))return Yl;a=o>0?e.charCodeAt(o-1):null,p=p&&Dv(s,a)}else{for(o=0;o<e.length;o++){if(s=e.charCodeAt(o),s===As)l=!0,c&&(u=u||o-f-1>n&&e[f+1]!==" ",f=o);else if(!Xi(s))return Yl;a=o>0?e.charCodeAt(o-1):null,p=p&&Dv(s,a)}u=u||c&&o-f-1>n&&e[f+1]!==" "}return!l&&!u?p&&!i(e)?Wv:Yv:r>9&&Vv(e)?Yl:u?Jv:Gv}function JF(e,t,r,n){e.dump=function(){if(t.length===0)return"''";if(!e.noCompatMode&&zF.indexOf(t)!==-1)return"'"+t+"'";var i=e.indent*Math.max(1,r),o=e.lineWidth===-1?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-i),s=n||e.flowLevel>-1&&r>=e.flowLevel;function a(l){return VF(e,l)}switch(GF(t,s,e.indent,o,a)){case Wv:return t;case Yv:return"'"+t.replace(/'/g,"''")+"'";case Gv:return"|"+Ov(t,e.indent)+Mv(Pv(t,i));case Jv:return">"+Ov(t,e.indent)+Mv(Pv(QF(t,o),i));case Yl:return'"'+ZF(t,o)+'"';default:throw new Cs("impossible error: invalid scalar style")}}()}function Ov(e,t){var r=Vv(e)?String(t):"",n=e[e.length-1]===`
23
23
  `,i=n&&(e[e.length-2]===`
24
24
  `||e===`
25
25
  `),o=i?"+":n?"":"-";return r+o+`
26
- `}function Pv(e){return e[e.length-1]===`
27
- `?e.slice(0,-1):e}function GF(e,t){for(var r=/(\n+)([^\n]*)/g,n=function(){var u=e.indexOf(`
26
+ `}function Mv(e){return e[e.length-1]===`
27
+ `?e.slice(0,-1):e}function QF(e,t){for(var r=/(\n+)([^\n]*)/g,n=function(){var u=e.indexOf(`
28
28
  `);return u=u!==-1?u:e.length,r.lastIndex=u,Nv(e.slice(0,u),t)}(),i=e[0]===`
29
29
  `||e[0]===" ",o,s;s=r.exec(e);){var a=s[1],l=s[2];o=l[0]===" ",n+=a+(!i&&!o&&l!==""?`
30
30
  `:"")+Nv(l,t),i=o}return n}function Nv(e,t){if(e===""||e[0]===" ")return e;for(var r=/ [^ ]/g,n,i=0,o,s=0,a=0,l="";n=r.exec(e);)a=n.index,a-i>t&&(o=s>i?s:a,l+=`
31
31
  `+e.slice(i,o),i=o+1),s=a;return l+=`
32
32
  `,e.length-i>t&&s>i?l+=e.slice(i,s)+`
33
- `+e.slice(s+1):l+=e.slice(i),l.slice(1)}function JF(e){for(var t="",r,n,i,o=0;o<e.length;o++){if(r=e.charCodeAt(o),r>=55296&&r<=56319&&(n=e.charCodeAt(o+1),n>=56320&&n<=57343)){t+=Iv((r-55296)*1024+n-56320+65536),o++;continue}i=it[r],t+=!i&&Xi(r)?e[o]:i||Iv(r)}return t}function QF(e,t,r){var n="",i=e.tag,o,s;for(o=0,s=r.length;o<s;o+=1)Hn(e,t,r[o],!1,!1)&&(o!==0&&(n+=","+(e.condenseFlow?"":" ")),n+=e.dump);e.tag=i,e.dump="["+n+"]"}function ZF(e,t,r,n){var i="",o=e.tag,s,a;for(s=0,a=r.length;s<a;s+=1)Hn(e,t+1,r[s],!0,!0)&&((!n||s!==0)&&(i+=Zp(e,t)),e.dump&&As===e.dump.charCodeAt(0)?i+="-":i+="- ",i+=e.dump);e.tag=o,e.dump=i||"[]"}function XF(e,t,r){var n="",i=e.tag,o=Object.keys(r),s,a,l,u,c;for(s=0,a=o.length;s<a;s+=1)c="",s!==0&&(c+=", "),e.condenseFlow&&(c+='"'),l=o[s],u=r[l],Hn(e,t,l,!1,!1)&&(e.dump.length>1024&&(c+="? "),c+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),Hn(e,t,u,!1,!1)&&(c+=e.dump,n+=c));e.tag=i,e.dump="{"+n+"}"}function KF(e,t,r,n){var i="",o=e.tag,s=Object.keys(r),a,l,u,c,f,p;if(e.sortKeys===!0)s.sort();else if(typeof e.sortKeys=="function")s.sort(e.sortKeys);else if(e.sortKeys)throw new Cs("sortKeys must be a boolean or a function");for(a=0,l=s.length;a<l;a+=1)p="",(!n||a!==0)&&(p+=Zp(e,t)),u=s[a],c=r[u],Hn(e,t+1,u,!0,!0,!0)&&(f=e.tag!==null&&e.tag!=="?"||e.dump&&e.dump.length>1024,f&&(e.dump&&As===e.dump.charCodeAt(0)?p+="?":p+="? "),p+=e.dump,f&&(p+=Zp(e,t)),Hn(e,t+1,c,!0,f)&&(e.dump&&As===e.dump.charCodeAt(0)?p+=":":p+=": ",p+=e.dump,i+=p));e.tag=o,e.dump=i||"{}"}function Fv(e,t,r){var n,i,o,s,a,l;for(i=r?e.explicitTypes:e.implicitTypes,o=0,s=i.length;o<s;o+=1)if(a=i[o],(a.instanceOf||a.predicate)&&(!a.instanceOf||typeof t=="object"&&t instanceof a.instanceOf)&&(!a.predicate||a.predicate(t))){if(e.tag=r?a.tag:"?",a.represent){if(l=e.styleMap[a.tag]||a.defaultStyle,Rv.call(a.represent)==="[object Function]")n=a.represent(t,l);else if(Lv.call(a.represent,l))n=a.represent[l](t,l);else throw new Cs("!<"+a.tag+'> tag resolver accepts not "'+l+'" style');e.dump=n}return!0}return!1}function Hn(e,t,r,n,i,o){e.tag=null,e.dump=r,Fv(e,r,!1)||Fv(e,r,!0);var s=Rv.call(e.dump);n&&(n=e.flowLevel<0||e.flowLevel>t);var a=s==="[object Object]"||s==="[object Array]",l,u;if(a&&(l=e.duplicates.indexOf(r),u=l!==-1),(e.tag!==null&&e.tag!=="?"||u||e.indent!==2&&t>0)&&(i=!1),u&&e.usedDuplicates[l])e.dump="*ref_"+l;else{if(a&&u&&!e.usedDuplicates[l]&&(e.usedDuplicates[l]=!0),s==="[object Object]")n&&Object.keys(e.dump).length!==0?(KF(e,t,e.dump,i),u&&(e.dump="&ref_"+l+e.dump)):(XF(e,t,e.dump),u&&(e.dump="&ref_"+l+" "+e.dump));else if(s==="[object Array]"){var c=e.noArrayIndent&&t>0?t-1:t;n&&e.dump.length!==0?(ZF(e,c,e.dump,i),u&&(e.dump="&ref_"+l+e.dump)):(QF(e,c,e.dump),u&&(e.dump="&ref_"+l+" "+e.dump))}else if(s==="[object String]")e.tag!=="?"&&YF(e,e.dump,t,o);else{if(e.skipInvalid)return!1;throw new Cs("unacceptable kind of an object to dump "+s)}e.tag!==null&&e.tag!=="?"&&(e.dump="!<"+e.tag+"> "+e.dump)}return!0}function eR(e,t){var r=[],n=[],i,o;for(Xp(e,r,n),i=0,o=n.length;i<o;i+=1)t.duplicates.push(r[n[i]]);t.usedDuplicates=new Array(o)}function Xp(e,t,r){var n,i,o;if(e!==null&&typeof e=="object")if(i=t.indexOf(e),i!==-1)r.indexOf(i)===-1&&r.push(i);else if(t.push(e),Array.isArray(e))for(i=0,o=e.length;i<o;i+=1)Xp(e[i],t,r);else for(n=Object.keys(e),i=0,o=n.length;i<o;i+=1)Xp(e[n[i]],t,r)}function Qv(e,t){t=t||{};var r=new zF(t);return r.noRefs||eR(e,r),Hn(r,0,e,!0,!0)?r.dump+`
34
- `:""}function tR(e,t){return Qv(e,Ts.extend({schema:kF},t))}eh.exports.dump=Qv;eh.exports.safeDump=tR});var Kv=N((iW,Oe)=>{"use strict";var Gl=_v(),Xv=Zv();function Jl(e){return function(){throw new Error("Function "+e+" is deprecated and cannot be used.")}}Oe.exports.Type=Ge();Oe.exports.Schema=Un();Oe.exports.FAILSAFE_SCHEMA=jl();Oe.exports.JSON_SCHEMA=Vp();Oe.exports.CORE_SCHEMA=Wp();Oe.exports.DEFAULT_SAFE_SCHEMA=Gi();Oe.exports.DEFAULT_FULL_SCHEMA=Ss();Oe.exports.load=Gl.load;Oe.exports.loadAll=Gl.loadAll;Oe.exports.safeLoad=Gl.safeLoad;Oe.exports.safeLoadAll=Gl.safeLoadAll;Oe.exports.dump=Xv.dump;Oe.exports.safeDump=Xv.safeDump;Oe.exports.YAMLException=Wi();Oe.exports.MINIMAL_SCHEMA=jl();Oe.exports.SAFE_SCHEMA=Gi();Oe.exports.DEFAULT_SCHEMA=Ss();Oe.exports.scan=Jl("scan");Oe.exports.parse=Jl("parse");Oe.exports.compose=Jl("compose");Oe.exports.addConstructor=Jl("addConstructor")});var tS=N((oW,eS)=>{"use strict";var rR=Kv();eS.exports=rR});var rS=N(er=>{"use strict";var nR=er&&er.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]}),iR=er&&er.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),oR=er&&er.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)r!=="default"&&Object.hasOwnProperty.call(e,r)&&nR(t,e,r);return iR(t,e),t};Object.defineProperty(er,"__esModule",{value:!0});er.jsYaml=void 0;var sR=oR(tS());er.jsYaml=sR});var iS=N(Dt=>{"use strict";var aR=Dt&&Dt.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]}),lR=Dt&&Dt.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),uR=Dt&&Dt.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)r!=="default"&&Object.hasOwnProperty.call(e,r)&&aR(t,e,r);return lR(t,e),t};Object.defineProperty(Dt,"__esModule",{value:!0});Dt.objectToYamlString=Dt.yamlStringToObject=void 0;var nS=uR(rS());Dt.yamlStringToObject=async(e,t={})=>nS.jsYaml.safeLoad(e);Dt.objectToYamlString=async(e,t={})=>nS.jsYaml.safeDump(e)});var hS=N((uW,pS)=>{"use strict";var Ql=Object.prototype.hasOwnProperty,fS=Object.prototype.toString,oS=Object.defineProperty,sS=Object.getOwnPropertyDescriptor,aS=function(t){return typeof Array.isArray=="function"?Array.isArray(t):fS.call(t)==="[object Array]"},lS=function(t){if(!t||fS.call(t)!=="[object Object]")return!1;var r=Ql.call(t,"constructor"),n=t.constructor&&t.constructor.prototype&&Ql.call(t.constructor.prototype,"isPrototypeOf");if(t.constructor&&!r&&!n)return!1;var i;for(i in t);return typeof i>"u"||Ql.call(t,i)},uS=function(t,r){oS&&r.name==="__proto__"?oS(t,r.name,{enumerable:!0,configurable:!0,value:r.newValue,writable:!0}):t[r.name]=r.newValue},cS=function(t,r){if(r==="__proto__")if(Ql.call(t,r)){if(sS)return sS(t,r).value}else return;return t[r]};pS.exports=function e(){var t,r,n,i,o,s,a=arguments[0],l=1,u=arguments.length,c=!1;for(typeof a=="boolean"&&(c=a,a=arguments[1]||{},l=2),(a==null||typeof a!="object"&&typeof a!="function")&&(a={});l<u;++l)if(t=arguments[l],t!=null)for(r in t)n=cS(a,r),i=cS(t,r),a!==i&&(c&&i&&(lS(i)||(o=aS(i)))?(o?(o=!1,s=n&&aS(n)?n:[]):s=n&&lS(n)?n:{},uS(a,{name:r,newValue:e(c,s,i)})):typeof i<"u"&&uS(a,{name:r,newValue:i}));return a}});var q1=N((mK,cm)=>{(function(){var e;typeof cm<"u"?e=cm.exports=n:e=function(){return this||(0,eval)("this")}(),e.format=n,e.vsprintf=r,typeof console<"u"&&typeof console.log=="function"&&(e.printf=t);function t(){console.log(n.apply(null,arguments))}function r(i,o){return n.apply(null,[i].concat(o))}function n(i){for(var o=1,s=[].slice.call(arguments),a=0,l=i.length,u="",c,f=!1,p,h,m=!1,x,v=function(){return s[o++]},w=function(){for(var E="";/\d/.test(i[a]);)E+=i[a++],c=i[a];return E.length>0?parseInt(E):null};a<l;++a)if(c=i[a],f)switch(f=!1,c=="."?(m=!1,c=i[++a]):c=="0"&&i[a+1]=="."?(m=!0,a+=2,c=i[a]):m=!0,x=w(),c){case"b":u+=parseInt(v(),10).toString(2);break;case"c":p=v(),typeof p=="string"||p instanceof String?u+=p:u+=String.fromCharCode(parseInt(p,10));break;case"d":u+=parseInt(v(),10);break;case"f":h=String(parseFloat(v()).toFixed(x||6)),u+=m?h:h.replace(/^0/,"");break;case"j":u+=JSON.stringify(v());break;case"o":u+="0"+parseInt(v(),10).toString(8);break;case"s":u+=v();break;case"x":u+="0x"+parseInt(v(),10).toString(16);break;case"X":u+="0x"+parseInt(v(),10).toString(16).toUpperCase();break;default:u+=c;break}else c==="%"?f=!0:u+=c;return u}})()});var TA=N(Ir=>{"use strict";Object.defineProperty(Ir,"__esModule",{value:!0});Ir.TokenData=void 0;Ir.parse=Zm;Ir.compile=M3;Ir.match=N3;Ir.pathToRegexp=AA;Ir.stringify=L3;var Gm="/",Jm=e=>e,SA=/^[$_\p{ID_Start}]$/u,Qm=/^[$\u200c\u200d\p{ID_Continue}]$/u,Wu="https://git.new/pathToRegexpError",I3={"{":"{","}":"}","(":"(",")":")","[":"[","]":"]","+":"+","?":"?","!":"!"};function D3(e){return e.replace(/[{}()\[\]+?!:*]/g,"\\$&")}function ir(e){return e.replace(/[.+*?^${}()[\]|/\\]/g,"\\$&")}function*O3(e){let t=[...e],r=0;function n(){let i="";if(SA.test(t[++r]))for(i+=t[r];Qm.test(t[++r]);)i+=t[r];else if(t[r]==='"'){let o=r;for(;r<t.length;){if(t[++r]==='"'){r++,o=0;break}t[r]==="\\"?i+=t[++r]:i+=t[r]}if(o)throw new TypeError(`Unterminated quote at ${o}: ${Wu}`)}if(!i)throw new TypeError(`Missing parameter name at ${r}: ${Wu}`);return i}for(;r<t.length;){let i=t[r],o=I3[i];if(o)yield{type:o,index:r++,value:i};else if(i==="\\")yield{type:"ESCAPED",index:r++,value:t[r++]};else if(i===":"){let s=n();yield{type:"PARAM",index:r,value:s}}else if(i==="*"){let s=n();yield{type:"WILDCARD",index:r,value:s}}else yield{type:"CHAR",index:r,value:t[r++]}}return{type:"END",index:r,value:""}}var Ym=class{constructor(t){this.tokens=t}peek(){if(!this._peek){let t=this.tokens.next();this._peek=t.value}return this._peek}tryConsume(t){let r=this.peek();if(r.type===t)return this._peek=void 0,r.value}consume(t){let r=this.tryConsume(t);if(r!==void 0)return r;let{type:n,index:i}=this.peek();throw new TypeError(`Unexpected ${n} at ${i}, expected ${t}: ${Wu}`)}text(){let t="",r;for(;r=this.tryConsume("CHAR")||this.tryConsume("ESCAPED");)t+=r;return t}},uo=class{constructor(t){this.tokens=t}};Ir.TokenData=uo;function Zm(e,t={}){let{encodePath:r=Jm}=t,n=new Ym(O3(e));function i(s){let a=[];for(;;){let l=n.text();l&&a.push({type:"text",value:r(l)});let u=n.tryConsume("PARAM");if(u){a.push({type:"param",name:u});continue}let c=n.tryConsume("WILDCARD");if(c){a.push({type:"wildcard",name:c});continue}if(n.tryConsume("{")){a.push({type:"group",tokens:i("}")});continue}return n.consume(s),a}}let o=i("END");return new uo(o)}function M3(e,t={}){let{encode:r=encodeURIComponent,delimiter:n=Gm}=t,i=e instanceof uo?e:Zm(e,t),o=kA(i.tokens,n,r);return function(a={}){let[l,...u]=o(a);if(u.length)throw new TypeError(`Missing parameters: ${u.join(", ")}`);return l}}function kA(e,t,r){let n=e.map(i=>P3(i,t,r));return i=>{let o=[""];for(let s of n){let[a,...l]=s(i);o[0]+=a,o.push(...l)}return o}}function P3(e,t,r){if(e.type==="text")return()=>[e.value];if(e.type==="group"){let i=kA(e.tokens,t,r);return o=>{let[s,...a]=i(o);return a.length?[""]:[s]}}let n=r||Jm;return e.type==="wildcard"&&r!==!1?i=>{let o=i[e.name];if(o==null)return["",e.name];if(!Array.isArray(o)||o.length===0)throw new TypeError(`Expected "${e.name}" to be a non-empty array`);return[o.map((s,a)=>{if(typeof s!="string")throw new TypeError(`Expected "${e.name}/${a}" to be a string`);return n(s)}).join(t)]}:i=>{let o=i[e.name];if(o==null)return["",e.name];if(typeof o!="string")throw new TypeError(`Expected "${e.name}" to be a string`);return[n(o)]}}function N3(e,t={}){let{decode:r=decodeURIComponent,delimiter:n=Gm}=t,{regexp:i,keys:o}=AA(e,t),s=o.map(a=>r===!1?Jm:a.type==="param"?r:l=>l.split(n).map(r));return function(l){let u=i.exec(l);if(!u)return!1;let c=u[0],f=Object.create(null);for(let p=1;p<u.length;p++){if(u[p]===void 0)continue;let h=o[p-1],m=s[p-1];f[h.name]=m(u[p])}return{path:c,params:f}}}function AA(e,t={}){let{delimiter:r=Gm,end:n=!0,sensitive:i=!1,trailing:o=!0}=t,s=[],a=[],l=i?"":"i",c=(Array.isArray(e)?e:[e]).map(h=>h instanceof uo?h:Zm(h,t));for(let{tokens:h}of c)for(let m of Vu(h,0,[])){let x=F3(m,r,s);a.push(x)}let f=`^(?:${a.join("|")})`;return o&&(f+=`(?:${ir(r)}$)?`),f+=n?"$":`(?=${ir(r)}|$)`,{regexp:new RegExp(f,l),keys:s}}function*Vu(e,t,r){if(t===e.length)return yield r;let n=e[t];if(n.type==="group"){let i=r.slice();for(let o of Vu(n.tokens,0,i))yield*Vu(e,t+1,o)}else r.push(n);yield*Vu(e,t+1,r)}function F3(e,t,r){let n="",i="",o=!0;for(let s=0;s<e.length;s++){let a=e[s];if(a.type==="text"){n+=ir(a.value),i+=a.value,o||(o=a.value.includes(t));continue}if(a.type==="param"||a.type==="wildcard"){if(!o&&!i)throw new TypeError(`Missing text after "${a.name}": ${Wu}`);a.type==="param"?n+=`(${R3(t,o?"":i)}+)`:n+="([\\s\\S]+)",r.push(a),i="",o=!1;continue}}return n}function R3(e,t){return t.length<2?e.length<2?`[^${ir(e+t)}]`:`(?:(?!${ir(e)})[^${ir(t)}])`:e.length<2?`(?:(?!${ir(t)})[^${ir(e)}])`:`(?:(?!${ir(t)}|${ir(e)})[\\s\\S])`}function L3(e){return e.tokens.map(function t(r,n,i){if(r.type==="text")return D3(r.value);if(r.type==="group")return`{${r.tokens.map(t).join("")}}`;let s=B3(r.name)&&$3(i[n+1])?r.name:JSON.stringify(r.name);if(r.type==="param")return`:${s}`;if(r.type==="wildcard")return`*${s}`;throw new TypeError(`Unexpected token: ${r}`)}).join("")}function B3(e){let[t,...r]=e;return SA.test(t)?r.every(n=>Qm.test(n)):!1}function $3(e){return e?.type!=="text"?!0:!Qm.test(e.value[0])}});var EA=N(qe=>{"use strict";Object.defineProperty(qe,"__esModule",{value:!0});qe.getFirstTrueOrFalse=qe.timeoutAndContinue=qe.timeoutWrap=qe.map=qe.rejectedPromise=qe.resolvedPromise=qe.defer=qe.Deferred=void 0;var Gu=class{constructor(){this.promise=new Promise((t,r)=>{this.resolve=n=>{this.status="fulfilled",this.stoppedAt=Date.now(),t(n)},this.reject=n=>{this.status="rejected",this.stoppedAt=Date.now(),r(n)},this.startedAt=Date.now(),this.status="pending"})}get duration(){return this.stoppedAt?this.stoppedAt-this.startedAt:Date.now()-this.startedAt}};qe.Deferred=Gu;qe.defer=()=>new Gu;qe.resolvedPromise=e=>Promise.resolve(e);qe.rejectedPromise=e=>Promise.reject(e);qe.map=async(e,t)=>{let r=[],n=[];for(let i of e){let o=t(i);r.push(o),o.then(s=>{n.push(s)})}return await Promise.all(r),n};qe.timeoutWrap=async(e,t,r=!0)=>new Promise((n,i)=>{setTimeout(()=>{r?i(new Error("timeout")):n(null)},t),e.then(n,i)});qe.timeoutAndContinue=async(e,t=6e4)=>qe.timeoutWrap(e,t,!1);qe.getFirstTrueOrFalse=async e=>{let t=qe.defer();for(let r of e)r.then(n=>{n===!0&&t.resolve(!0)});return Promise.all(e).then(()=>{t.resolve(!1)}),t.promise}});var id=N((rd,nd)=>{(function(e,t){typeof rd=="object"&&typeof nd<"u"?nd.exports=t():typeof define=="function"&&define.amd?define(t):(e=e||self,e.SweetScroll=t())})(rd,function(){"use strict";var e=function(){return e=Object.assign||function(g){for(var S,C=1,O=arguments.length;C<O;C++){S=arguments[C];for(var Y in S)Object.prototype.hasOwnProperty.call(S,Y)&&(g[Y]=S[Y])}return g},e.apply(this,arguments)},t=!!(typeof window<"u"&&window.document&&window.document.createElement),r=t?window.history&&"pushState"in window.history&&window.location.protocol!=="file:":!1,n=function(){var k=!1;if(!t)return k;try{var g=window,S=Object.defineProperty({},"passive",{get:function(){k=!0}});g.addEventListener("test",null,S),g.removeEventListener("test",null,S)}catch{}return k}(),i=function(k){return typeof k=="string"},o=function(k){return typeof k=="function"},s=function(k){return Array.isArray(k)},a=function(k){return!s(k)&&k-parseFloat(k)+1>=0},l=function(k,g){return k&&k.hasOwnProperty(g)},u=t?window.requestAnimationFrame.bind(window):null,c=t?window.cancelAnimationFrame.bind(window):null,f=Math.cos,p=Math.sin,h=Math.pow,m=Math.sqrt,x=Math.PI,v={linear:function(k){return k},easeInQuad:function(k,g,S,C,O){return C*(g/=O)*g+S},easeOutQuad:function(k,g,S,C,O){return-C*(g/=O)*(g-2)+S},easeInOutQuad:function(k,g,S,C,O){return(g/=O/2)<1?C/2*g*g+S:-C/2*(--g*(g-2)-1)+S},easeInCubic:function(k,g,S,C,O){return C*(g/=O)*g*g+S},easeOutCubic:function(k,g,S,C,O){return C*((g=g/O-1)*g*g+1)+S},easeInOutCubic:function(k,g,S,C,O){return(g/=O/2)<1?C/2*g*g*g+S:C/2*((g-=2)*g*g+2)+S},easeInQuart:function(k,g,S,C,O){return C*(g/=O)*g*g*g+S},easeOutQuart:function(k,g,S,C,O){return-C*((g=g/O-1)*g*g*g-1)+S},easeInOutQuart:function(k,g,S,C,O){return(g/=O/2)<1?C/2*g*g*g*g+S:-C/2*((g-=2)*g*g*g-2)+S},easeInQuint:function(k,g,S,C,O){return C*(g/=O)*g*g*g*g+S},easeOutQuint:function(k,g,S,C,O){return C*((g=g/O-1)*g*g*g*g+1)+S},easeInOutQuint:function(k,g,S,C,O){return(g/=O/2)<1?C/2*g*g*g*g*g+S:C/2*((g-=2)*g*g*g*g+2)+S},easeInSine:function(k,g,S,C,O){return-C*f(g/O*(x/2))+C+S},easeOutSine:function(k,g,S,C,O){return C*p(g/O*(x/2))+S},easeInOutSine:function(k,g,S,C,O){return-C/2*(f(x*g/O)-1)+S},easeInExpo:function(k,g,S,C,O){return g===0?S:C*h(2,10*(g/O-1))+S},easeOutExpo:function(k,g,S,C,O){return g===O?S+C:C*(-h(2,-10*g/O)+1)+S},easeInOutExpo:function(k,g,S,C,O){return g===0?S:g===O?S+C:(g/=O/2)<1?C/2*h(2,10*(g-1))+S:C/2*(-h(2,-10*--g)+2)+S},easeInCirc:function(k,g,S,C,O){return-C*(m(1-(g/=O)*g)-1)+S},easeOutCirc:function(k,g,S,C,O){return C*m(1-(g=g/O-1)*g)+S},easeInOutCirc:function(k,g,S,C,O){return(g/=O/2)<1?-C/2*(m(1-g*g)-1)+S:C/2*(m(1-(g-=2)*g)+1)+S}},w=function(k){return Array.prototype.slice.call(k?document.querySelectorAll(k):[])},E=function(k){return w(k).shift()||null},b=function(k){return k instanceof Element},z=function(k){return k===window},q=function(k){return k===document.documentElement||k===document.body},A=function(k,g){if(b(g))return k===g;for(var S=w(g),C=S.length;--C>=0&&S[C]!==k;);return C>-1},R=function(k){return Math.max(k.scrollHeight,k.clientHeight,k.offsetHeight)},V=function(k){return Math.max(k.scrollWidth,k.clientWidth,k.offsetWidth)},$=function(k){return{width:V(k),height:R(k)}},T=function(k){var g=z(k)||q(k);return{viewport:{width:g?Math.min(window.innerWidth,document.documentElement.clientWidth):k.clientWidth,height:g?window.innerHeight:k.clientHeight},size:g?{width:Math.max(V(document.body),V(document.documentElement)),height:Math.max(R(document.body),R(document.documentElement))}:$(k)}},fe={y:"scrollTop",x:"scrollLeft"},B={y:"pageYOffset",x:"pageXOffset"},_=function(k,g){return z(k)?k[B[g]]:k[fe[g]]},I=function(k,g,S){if(z(k)){var C=S==="y";k.scrollTo(C?k.pageXOffset:g,C?g:k.pageYOffset)}else k[fe[S]]=g},M=function(k,g){var S=k.getBoundingClientRect();if(S.width||S.height){var C={top:0,left:0},O=void 0;if(z(g)||q(g))O=document.documentElement,C.top=window[B.y],C.left=window[B.x];else{O=g;var Y=O.getBoundingClientRect();C.top=Y.top*-1+O[fe.y],C.left=Y.left*-1+O[fe.x]}return{top:S.top+C.top-O.clientTop,left:S.left+C.left-O.clientLeft}}return S},F=function(){return t?"onwheel"in document?"wheel":"mousewheel":"wheel"}(),W=function(k){return k==="wheel"?F:k},P=function(k,g,S,C,O){S.split(" ").forEach(function(Y){k[g](W(Y),C,n?{passive:O}:!1)})},U=function(k,g,S,C){return P(k,"addEventListener",g,S,C)},d=function(k,g,S,C){return P(k,"removeEventListener",g,S,C)},G=/^(\+|-)=(\d+(?:\.\d+)?)$/,X=function(k,g){var S={top:0,left:0,relative:!1};if(l(k,"top")||l(k,"left"))S=e({},S,k);else if(s(k))if(k.length>1)S.top=k[0],S.left=k[1];else if(k.length===1)S.top=g?k[0]:0,S.left=g?0:k[0];else return null;else if(a(k))g?S.top=k:S.left=k;else if(i(k)){var C=k.trim().match(G);if(!C)return null;var O=C[1],Y=parseInt(C[2],10);O==="+"?(S.top=g?Y:0,S.left=g?0:Y):(S.top=g?-Y:0,S.left=g?0:-Y),S.relative=!0}else return null;return S},y={trigger:"[data-scroll]",header:"[data-scroll-header]",duration:1e3,easing:"easeOutQuint",offset:0,vertical:!0,horizontal:!1,cancellable:!0,updateURL:!1,preventDefault:!0,stopPropagation:!0,before:null,after:null,cancel:null,complete:null,step:null},oe="click",me="wheel touchstart touchmove",_e=function(){function k(g,S){var C=this;this.$el=null,this.ctx={$trigger:null,opts:null,progress:!1,pos:null,startPos:null,easing:null,start:0,id:0,cancel:!1,hash:null},this.loop=function(Y){var de=C,ye=de.$el,xe=de.ctx;if(xe.start||(xe.start=Y),!xe.progress||!ye){C.stop();return}var At=xe.opts,tt=xe.pos,bt=xe.start,ur=xe.startPos,Fr=xe.easing,Rt=At.duration,Vt={top:"y",left:"x"},Tt=Y-bt,Be=Math.min(1,Math.max(Tt/Rt,0));Object.keys(tt).forEach(function(Rr){var D=tt[Rr],j=ur[Rr],te=D-j;if(te!==0){var ae=Fr(Be,Rt*Be,0,1,Rt);I(ye,Math.round(j+te*ae),Vt[Rr])}}),Tt<=Rt?(C.hook(At,"step",Be),xe.id=k.raf(C.loop)):C.stop(!0)},this.handleClick=function(Y){for(var de=C.opts,ye=Y.target;ye&&ye!==document;ye=ye.parentNode)if(A(ye,de.trigger)){var xe=JSON.parse(ye.getAttribute("data-scroll-options")||"{}"),At=ye.getAttribute("data-scroll"),tt=At||ye.getAttribute("href"),bt=e({},de,xe),ur=bt.preventDefault,Fr=bt.stopPropagation,Rt=bt.vertical,Vt=bt.horizontal;ur&&Y.preventDefault(),Fr&&Y.stopPropagation(),C.ctx.$trigger=ye,Vt&&Rt?C.to(tt,bt):Rt?C.toTop(tt,bt):Vt&&C.toLeft(tt,bt);break}},this.handleStop=function(Y){var de=C.ctx,ye=de.opts;ye&&ye.cancellable?(de.cancel=!0,C.stop()):Y.preventDefault()},this.opts=e({},y,g||{});var O=null;t&&(typeof S=="string"?O=E(S):S!=null?O=S:O=window),this.$el=O,O&&this.bind(!0,!1)}return k.create=function(g,S){return new k(g,S)},k.prototype.to=function(g,S){if(t){var C=this,O=C.$el,Y=C.ctx,de=C.opts,ye=Y.$trigger,xe=e({},de,S||{}),At=xe.offset,tt=xe.vertical,bt=xe.horizontal,ur=b(xe.header)?xe.header:E(xe.header),Fr=/^#/,Rt=i(g)&&Fr.test(g)?g:null;if(Y.opts=xe,Y.cancel=!1,Y.hash=Rt,this.stop(),!!O){var Vt=X(At,tt),Tt=X(g,tt),Be={top:0,left:0};if(Tt)if(Tt.relative){var Rr=_(O,tt?"y":"x");Be.top=tt?Rr+Tt.top:Tt.top,Be.left=tt?Tt.left:Rr+Tt.left}else Be=Tt;else if(i(g)&&g!=="#"){var D=E(g);if(!D)return;Be=M(D,O)}Vt&&(Be.top+=Vt.top,Be.left+=Vt.left),ur&&(Be.top=Math.max(0,Be.top-$(ur).height));var j=T(O),te=j.viewport,ae=j.size;if(Be.top=tt?Math.max(0,Math.min(ae.height-te.height,Be.top)):_(O,"y"),Be.left=bt?Math.max(0,Math.min(ae.width-te.width,Be.left)):_(O,"x"),this.hook(xe,"before",Be,ye)===!1){Y.opts=null;return}Y.pos=Be,this.start(xe),this.bind(!1,!0)}}},k.prototype.toTop=function(g,S){this.to(g,e({},S||{},{vertical:!0,horizontal:!1}))},k.prototype.toLeft=function(g,S){this.to(g,e({},S||{},{vertical:!1,horizontal:!0}))},k.prototype.toElement=function(g,S){var C=this.$el;!t||!C||this.to(M(g,C),S||{})},k.prototype.stop=function(g){g===void 0&&(g=!1);var S=this,C=S.$el,O=S.ctx,Y=O.pos;!C||!O.progress||(k.caf(O.id),O.progress=!1,O.start=0,O.id=0,g&&Y&&(I(C,Y.left,"x"),I(C,Y.top,"y")),this.complete())},k.prototype.update=function(g){if(this.$el){var S=e({},this.opts,g);this.stop(),this.unbind(!0,!0),this.opts=S,this.bind(!0,!1)}},k.prototype.destroy=function(){this.$el&&(this.stop(),this.unbind(!0,!0),this.$el=null)},k.prototype.onBefore=function(g,S){return!0},k.prototype.onStep=function(g){},k.prototype.onAfter=function(g,S){},k.prototype.onCancel=function(){},k.prototype.onComplete=function(g){},k.prototype.start=function(g){var S=this.ctx;S.opts=g,S.progress=!0,S.easing=o(g.easing)?g.easing:v[g.easing];var C=this.$el,O={top:_(C,"y"),left:_(C,"x")};S.startPos=O,S.id=k.raf(this.loop)},k.prototype.complete=function(){var g=this,S=g.$el,C=g.ctx,O=C.hash,Y=C.cancel,de=C.opts,ye=C.pos,xe=C.$trigger;if(!(!S||!de)){if(O!=null&&O!==window.location.hash){var At=de.updateURL;t&&r&&At!==!1&&window.history[At==="replace"?"replaceState":"pushState"](null,"",O)}this.unbind(!1,!0),C.opts=null,C.$trigger=null,Y?this.hook(de,"cancel"):this.hook(de,"after",ye,xe),this.hook(de,"complete",Y)}},k.prototype.hook=function(g,S){for(var C=[],O=2;O<arguments.length;O++)C[O-2]=arguments[O];var Y,de=g[S],ye,xe;return o(de)&&(ye=de.apply(this,C.concat([this]))),xe=(Y=this)["on"+(S[0].toUpperCase()+S.slice(1))].apply(Y,C),ye!==void 0?ye:xe},k.prototype.bind=function(g,S){var C=this,O=C.$el,Y=C.ctx.opts;O&&(g&&U(O,oe,this.handleClick,!1),S&&U(O,me,this.handleStop,Y?Y.cancellable:!0))},k.prototype.unbind=function(g,S){var C=this,O=C.$el,Y=C.ctx.opts;O&&(g&&d(O,oe,this.handleClick,!1),S&&d(O,me,this.handleStop,Y?Y.cancellable:!0))},k.raf=u,k.caf=c,k}();return _e})});var JA=N((Qle,GA)=>{GA.exports=function(){return typeof Promise=="function"&&Promise.prototype&&Promise.prototype.then}});var sn=N(ai=>{var bd,kU=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];ai.getSymbolSize=function(t){if(!t)throw new Error('"version" cannot be null or undefined');if(t<1||t>40)throw new Error('"version" should be in range from 1 to 40');return t*4+17};ai.getSymbolTotalCodewords=function(t){return kU[t]};ai.getBCHDigit=function(e){let t=0;for(;e!==0;)t++,e>>>=1;return t};ai.setToSJISFunction=function(t){if(typeof t!="function")throw new Error('"toSJISFunc" is not a valid function.');bd=t};ai.isKanjiModeEnabled=function(){return typeof bd<"u"};ai.toSJIS=function(t){return bd(t)}});var cc=N(Pt=>{Pt.L={bit:1};Pt.M={bit:0};Pt.Q={bit:3};Pt.H={bit:2};function AU(e){if(typeof e!="string")throw new Error("Param is not a string");switch(e.toLowerCase()){case"l":case"low":return Pt.L;case"m":case"medium":return Pt.M;case"q":case"quartile":return Pt.Q;case"h":case"high":return Pt.H;default:throw new Error("Unknown EC Level: "+e)}}Pt.isValid=function(t){return t&&typeof t.bit<"u"&&t.bit>=0&&t.bit<4};Pt.from=function(t,r){if(Pt.isValid(t))return t;try{return AU(t)}catch{return r}}});var XA=N((Kle,ZA)=>{function QA(){this.buffer=[],this.length=0}QA.prototype={get:function(e){let t=Math.floor(e/8);return(this.buffer[t]>>>7-e%8&1)===1},put:function(e,t){for(let r=0;r<t;r++)this.putBit((e>>>t-r-1&1)===1)},getLengthInBits:function(){return this.length},putBit:function(e){let t=Math.floor(this.length/8);this.buffer.length<=t&&this.buffer.push(0),e&&(this.buffer[t]|=128>>>this.length%8),this.length++}};ZA.exports=QA});var eT=N((eue,KA)=>{function ia(e){if(!e||e<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=e,this.data=new Uint8Array(e*e),this.reservedBit=new Uint8Array(e*e)}ia.prototype.set=function(e,t,r,n){let i=e*this.size+t;this.data[i]=r,n&&(this.reservedBit[i]=!0)};ia.prototype.get=function(e,t){return this.data[e*this.size+t]};ia.prototype.xor=function(e,t,r){this.data[e*this.size+t]^=r};ia.prototype.isReserved=function(e,t){return this.reservedBit[e*this.size+t]};KA.exports=ia});var tT=N(fc=>{var TU=sn().getSymbolSize;fc.getRowColCoords=function(t){if(t===1)return[];let r=Math.floor(t/7)+2,n=TU(t),i=n===145?26:Math.ceil((n-13)/(2*r-2))*2,o=[n-7];for(let s=1;s<r-1;s++)o[s]=o[s-1]-i;return o.push(6),o.reverse()};fc.getPositions=function(t){let r=[],n=fc.getRowColCoords(t),i=n.length;for(let o=0;o<i;o++)for(let s=0;s<i;s++)o===0&&s===0||o===0&&s===i-1||o===i-1&&s===0||r.push([n[o],n[s]]);return r}});var iT=N(nT=>{var CU=sn().getSymbolSize,rT=7;nT.getPositions=function(t){let r=CU(t);return[[0,0],[r-rT,0],[0,r-rT]]}});var oT=N(Te=>{Te.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};var li={N1:3,N2:3,N3:40,N4:10};Te.isValid=function(t){return t!=null&&t!==""&&!isNaN(t)&&t>=0&&t<=7};Te.from=function(t){return Te.isValid(t)?parseInt(t,10):void 0};Te.getPenaltyN1=function(t){let r=t.size,n=0,i=0,o=0,s=null,a=null;for(let l=0;l<r;l++){i=o=0,s=a=null;for(let u=0;u<r;u++){let c=t.get(l,u);c===s?i++:(i>=5&&(n+=li.N1+(i-5)),s=c,i=1),c=t.get(u,l),c===a?o++:(o>=5&&(n+=li.N1+(o-5)),a=c,o=1)}i>=5&&(n+=li.N1+(i-5)),o>=5&&(n+=li.N1+(o-5))}return n};Te.getPenaltyN2=function(t){let r=t.size,n=0;for(let i=0;i<r-1;i++)for(let o=0;o<r-1;o++){let s=t.get(i,o)+t.get(i,o+1)+t.get(i+1,o)+t.get(i+1,o+1);(s===4||s===0)&&n++}return n*li.N2};Te.getPenaltyN3=function(t){let r=t.size,n=0,i=0,o=0;for(let s=0;s<r;s++){i=o=0;for(let a=0;a<r;a++)i=i<<1&2047|t.get(s,a),a>=10&&(i===1488||i===93)&&n++,o=o<<1&2047|t.get(a,s),a>=10&&(o===1488||o===93)&&n++}return n*li.N3};Te.getPenaltyN4=function(t){let r=0,n=t.data.length;for(let o=0;o<n;o++)r+=t.data[o];return Math.abs(Math.ceil(r*100/n/5)-10)*li.N4};function EU(e,t,r){switch(e){case Te.Patterns.PATTERN000:return(t+r)%2===0;case Te.Patterns.PATTERN001:return t%2===0;case Te.Patterns.PATTERN010:return r%3===0;case Te.Patterns.PATTERN011:return(t+r)%3===0;case Te.Patterns.PATTERN100:return(Math.floor(t/2)+Math.floor(r/3))%2===0;case Te.Patterns.PATTERN101:return t*r%2+t*r%3===0;case Te.Patterns.PATTERN110:return(t*r%2+t*r%3)%2===0;case Te.Patterns.PATTERN111:return(t*r%3+(t+r)%2)%2===0;default:throw new Error("bad maskPattern:"+e)}}Te.applyMask=function(t,r){let n=r.size;for(let i=0;i<n;i++)for(let o=0;o<n;o++)r.isReserved(o,i)||r.xor(o,i,EU(t,o,i))};Te.getBestMask=function(t,r){let n=Object.keys(Te.Patterns).length,i=0,o=1/0;for(let s=0;s<n;s++){r(s),Te.applyMask(s,t);let a=Te.getPenaltyN1(t)+Te.getPenaltyN2(t)+Te.getPenaltyN3(t)+Te.getPenaltyN4(t);Te.applyMask(s,t),a<o&&(o=a,i=s)}return i}});var vd=N(wd=>{var an=cc(),pc=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],hc=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];wd.getBlocksCount=function(t,r){switch(r){case an.L:return pc[(t-1)*4+0];case an.M:return pc[(t-1)*4+1];case an.Q:return pc[(t-1)*4+2];case an.H:return pc[(t-1)*4+3];default:return}};wd.getTotalCodewordsCount=function(t,r){switch(r){case an.L:return hc[(t-1)*4+0];case an.M:return hc[(t-1)*4+1];case an.Q:return hc[(t-1)*4+2];case an.H:return hc[(t-1)*4+3];default:return}}});var sT=N(dc=>{var oa=new Uint8Array(512),mc=new Uint8Array(256);(function(){let t=1;for(let r=0;r<255;r++)oa[r]=t,mc[t]=r,t<<=1,t&256&&(t^=285);for(let r=255;r<512;r++)oa[r]=oa[r-255]})();dc.log=function(t){if(t<1)throw new Error("log("+t+")");return mc[t]};dc.exp=function(t){return oa[t]};dc.mul=function(t,r){return t===0||r===0?0:oa[mc[t]+mc[r]]}});var aT=N(sa=>{var Sd=sT();sa.mul=function(t,r){let n=new Uint8Array(t.length+r.length-1);for(let i=0;i<t.length;i++)for(let o=0;o<r.length;o++)n[i+o]^=Sd.mul(t[i],r[o]);return n};sa.mod=function(t,r){let n=new Uint8Array(t);for(;n.length-r.length>=0;){let i=n[0];for(let s=0;s<r.length;s++)n[s]^=Sd.mul(r[s],i);let o=0;for(;o<n.length&&n[o]===0;)o++;n=n.slice(o)}return n};sa.generateECPolynomial=function(t){let r=new Uint8Array([1]);for(let n=0;n<t;n++)r=sa.mul(r,new Uint8Array([1,Sd.exp(n)]));return r}});var cT=N((aue,uT)=>{var lT=aT();function kd(e){this.genPoly=void 0,this.degree=e,this.degree&&this.initialize(this.degree)}kd.prototype.initialize=function(t){this.degree=t,this.genPoly=lT.generateECPolynomial(this.degree)};kd.prototype.encode=function(t){if(!this.genPoly)throw new Error("Encoder not initialized");let r=new Uint8Array(t.length+this.degree);r.set(t);let n=lT.mod(r,this.genPoly),i=this.degree-n.length;if(i>0){let o=new Uint8Array(this.degree);return o.set(n,i),o}return n};uT.exports=kd});var Ad=N(fT=>{fT.isValid=function(t){return!isNaN(t)&&t>=1&&t<=40}});var Td=N(Or=>{var pT="[0-9]+",_U="[A-Z $%*+\\-./:]+",aa="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";aa=aa.replace(/u/g,"\\u");var IU="(?:(?![A-Z0-9 $%*+\\-./:]|"+aa+`)(?:.|[\r
35
- ]))+`;Or.KANJI=new RegExp(aa,"g");Or.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g");Or.BYTE=new RegExp(IU,"g");Or.NUMERIC=new RegExp(pT,"g");Or.ALPHANUMERIC=new RegExp(_U,"g");var DU=new RegExp("^"+aa+"$"),OU=new RegExp("^"+pT+"$"),MU=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");Or.testKanji=function(t){return DU.test(t)};Or.testNumeric=function(t){return OU.test(t)};Or.testAlphanumeric=function(t){return MU.test(t)}});var ln=N(He=>{var PU=Ad(),Cd=Td();He.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]};He.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]};He.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]};He.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]};He.MIXED={bit:-1};He.getCharCountIndicator=function(t,r){if(!t.ccBits)throw new Error("Invalid mode: "+t);if(!PU.isValid(r))throw new Error("Invalid version: "+r);return r>=1&&r<10?t.ccBits[0]:r<27?t.ccBits[1]:t.ccBits[2]};He.getBestModeForData=function(t){return Cd.testNumeric(t)?He.NUMERIC:Cd.testAlphanumeric(t)?He.ALPHANUMERIC:Cd.testKanji(t)?He.KANJI:He.BYTE};He.toString=function(t){if(t&&t.id)return t.id;throw new Error("Invalid mode")};He.isValid=function(t){return t&&t.bit&&t.ccBits};function NU(e){if(typeof e!="string")throw new Error("Param is not a string");switch(e.toLowerCase()){case"numeric":return He.NUMERIC;case"alphanumeric":return He.ALPHANUMERIC;case"kanji":return He.KANJI;case"byte":return He.BYTE;default:throw new Error("Unknown mode: "+e)}}He.from=function(t,r){if(He.isValid(t))return t;try{return NU(t)}catch{return r}}});var yT=N(ui=>{var gc=sn(),FU=vd(),hT=cc(),un=ln(),Ed=Ad(),dT=7973,mT=gc.getBCHDigit(dT);function RU(e,t,r){for(let n=1;n<=40;n++)if(t<=ui.getCapacity(n,r,e))return n}function gT(e,t){return un.getCharCountIndicator(e,t)+4}function LU(e,t){let r=0;return e.forEach(function(n){let i=gT(n.mode,t);r+=i+n.getBitsLength()}),r}function BU(e,t){for(let r=1;r<=40;r++)if(LU(e,r)<=ui.getCapacity(r,t,un.MIXED))return r}ui.from=function(t,r){return Ed.isValid(t)?parseInt(t,10):r};ui.getCapacity=function(t,r,n){if(!Ed.isValid(t))throw new Error("Invalid QR Code version");typeof n>"u"&&(n=un.BYTE);let i=gc.getSymbolTotalCodewords(t),o=FU.getTotalCodewordsCount(t,r),s=(i-o)*8;if(n===un.MIXED)return s;let a=s-gT(n,t);switch(n){case un.NUMERIC:return Math.floor(a/10*3);case un.ALPHANUMERIC:return Math.floor(a/11*2);case un.KANJI:return Math.floor(a/13);case un.BYTE:default:return Math.floor(a/8)}};ui.getBestVersionForData=function(t,r){let n,i=hT.from(r,hT.M);if(Array.isArray(t)){if(t.length>1)return BU(t,i);if(t.length===0)return 1;n=t[0]}else n=t;return RU(n.mode,n.getLength(),i)};ui.getEncodedBits=function(t){if(!Ed.isValid(t)||t<7)throw new Error("Invalid QR Code version");let r=t<<12;for(;gc.getBCHDigit(r)-mT>=0;)r^=dT<<gc.getBCHDigit(r)-mT;return t<<12|r}});var vT=N(wT=>{var _d=sn(),bT=1335,$U=21522,xT=_d.getBCHDigit(bT);wT.getEncodedBits=function(t,r){let n=t.bit<<3|r,i=n<<10;for(;_d.getBCHDigit(i)-xT>=0;)i^=bT<<_d.getBCHDigit(i)-xT;return(n<<10|i)^$U}});var kT=N((hue,ST)=>{var UU=ln();function ko(e){this.mode=UU.NUMERIC,this.data=e.toString()}ko.getBitsLength=function(t){return 10*Math.floor(t/3)+(t%3?t%3*3+1:0)};ko.prototype.getLength=function(){return this.data.length};ko.prototype.getBitsLength=function(){return ko.getBitsLength(this.data.length)};ko.prototype.write=function(t){let r,n,i;for(r=0;r+3<=this.data.length;r+=3)n=this.data.substr(r,3),i=parseInt(n,10),t.put(i,10);let o=this.data.length-r;o>0&&(n=this.data.substr(r),i=parseInt(n,10),t.put(i,o*3+1))};ST.exports=ko});var TT=N((mue,AT)=>{var jU=ln(),Id=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," ","$","%","*","+","-",".","/",":"];function Ao(e){this.mode=jU.ALPHANUMERIC,this.data=e}Ao.getBitsLength=function(t){return 11*Math.floor(t/2)+6*(t%2)};Ao.prototype.getLength=function(){return this.data.length};Ao.prototype.getBitsLength=function(){return Ao.getBitsLength(this.data.length)};Ao.prototype.write=function(t){let r;for(r=0;r+2<=this.data.length;r+=2){let n=Id.indexOf(this.data[r])*45;n+=Id.indexOf(this.data[r+1]),t.put(n,11)}this.data.length%2&&t.put(Id.indexOf(this.data[r]),6)};AT.exports=Ao});var ET=N((due,CT)=>{var zU=ln();function To(e){this.mode=zU.BYTE,typeof e=="string"?this.data=new TextEncoder().encode(e):this.data=new Uint8Array(e)}To.getBitsLength=function(t){return t*8};To.prototype.getLength=function(){return this.data.length};To.prototype.getBitsLength=function(){return To.getBitsLength(this.data.length)};To.prototype.write=function(e){for(let t=0,r=this.data.length;t<r;t++)e.put(this.data[t],8)};CT.exports=To});var IT=N((gue,_T)=>{var qU=ln(),HU=sn();function Co(e){this.mode=qU.KANJI,this.data=e}Co.getBitsLength=function(t){return t*13};Co.prototype.getLength=function(){return this.data.length};Co.prototype.getBitsLength=function(){return Co.getBitsLength(this.data.length)};Co.prototype.write=function(e){let t;for(t=0;t<this.data.length;t++){let r=HU.toSJIS(this.data[t]);if(r>=33088&&r<=40956)r-=33088;else if(r>=57408&&r<=60351)r-=49472;else throw new Error("Invalid SJIS character: "+this.data[t]+`
36
- Make sure your charset is UTF-8`);r=(r>>>8&255)*192+(r&255),e.put(r,13)}};_T.exports=Co});var DT=N((yue,Dd)=>{"use strict";var la={single_source_shortest_paths:function(e,t,r){var n={},i={};i[t]=0;var o=la.PriorityQueue.make();o.push(t,0);for(var s,a,l,u,c,f,p,h,m;!o.empty();){s=o.pop(),a=s.value,u=s.cost,c=e[a]||{};for(l in c)c.hasOwnProperty(l)&&(f=c[l],p=u+f,h=i[l],m=typeof i[l]>"u",(m||h>p)&&(i[l]=p,o.push(l,p),n[l]=a))}if(typeof r<"u"&&typeof i[r]>"u"){var x=["Could not find a path from ",t," to ",r,"."].join("");throw new Error(x)}return n},extract_shortest_path_from_predecessor_list:function(e,t){for(var r=[],n=t,i;n;)r.push(n),i=e[n],n=e[n];return r.reverse(),r},find_path:function(e,t,r){var n=la.single_source_shortest_paths(e,t,r);return la.extract_shortest_path_from_predecessor_list(n,r)},PriorityQueue:{make:function(e){var t=la.PriorityQueue,r={},n;e=e||{};for(n in t)t.hasOwnProperty(n)&&(r[n]=t[n]);return r.queue=[],r.sorter=e.sorter||t.default_sorter,r},default_sorter:function(e,t){return e.cost-t.cost},push:function(e,t){var r={value:e,cost:t};this.queue.push(r),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return this.queue.length===0}}};typeof Dd<"u"&&(Dd.exports=la)});var BT=N(Eo=>{var ge=ln(),PT=kT(),NT=TT(),FT=ET(),RT=IT(),ua=Td(),yc=sn(),VU=DT();function OT(e){return unescape(encodeURIComponent(e)).length}function ca(e,t,r){let n=[],i;for(;(i=e.exec(r))!==null;)n.push({data:i[0],index:i.index,mode:t,length:i[0].length});return n}function LT(e){let t=ca(ua.NUMERIC,ge.NUMERIC,e),r=ca(ua.ALPHANUMERIC,ge.ALPHANUMERIC,e),n,i;return yc.isKanjiModeEnabled()?(n=ca(ua.BYTE,ge.BYTE,e),i=ca(ua.KANJI,ge.KANJI,e)):(n=ca(ua.BYTE_KANJI,ge.BYTE,e),i=[]),t.concat(r,n,i).sort(function(s,a){return s.index-a.index}).map(function(s){return{data:s.data,mode:s.mode,length:s.length}})}function Od(e,t){switch(t){case ge.NUMERIC:return PT.getBitsLength(e);case ge.ALPHANUMERIC:return NT.getBitsLength(e);case ge.KANJI:return RT.getBitsLength(e);case ge.BYTE:return FT.getBitsLength(e)}}function WU(e){return e.reduce(function(t,r){let n=t.length-1>=0?t[t.length-1]:null;return n&&n.mode===r.mode?(t[t.length-1].data+=r.data,t):(t.push(r),t)},[])}function YU(e){let t=[];for(let r=0;r<e.length;r++){let n=e[r];switch(n.mode){case ge.NUMERIC:t.push([n,{data:n.data,mode:ge.ALPHANUMERIC,length:n.length},{data:n.data,mode:ge.BYTE,length:n.length}]);break;case ge.ALPHANUMERIC:t.push([n,{data:n.data,mode:ge.BYTE,length:n.length}]);break;case ge.KANJI:t.push([n,{data:n.data,mode:ge.BYTE,length:OT(n.data)}]);break;case ge.BYTE:t.push([{data:n.data,mode:ge.BYTE,length:OT(n.data)}])}}return t}function GU(e,t){let r={},n={start:{}},i=["start"];for(let o=0;o<e.length;o++){let s=e[o],a=[];for(let l=0;l<s.length;l++){let u=s[l],c=""+o+l;a.push(c),r[c]={node:u,lastCount:0},n[c]={};for(let f=0;f<i.length;f++){let p=i[f];r[p]&&r[p].node.mode===u.mode?(n[p][c]=Od(r[p].lastCount+u.length,u.mode)-Od(r[p].lastCount,u.mode),r[p].lastCount+=u.length):(r[p]&&(r[p].lastCount=u.length),n[p][c]=Od(u.length,u.mode)+4+ge.getCharCountIndicator(u.mode,t))}}i=a}for(let o=0;o<i.length;o++)n[i[o]].end=0;return{map:n,table:r}}function MT(e,t){let r,n=ge.getBestModeForData(e);if(r=ge.from(t,n),r!==ge.BYTE&&r.bit<n.bit)throw new Error('"'+e+'" cannot be encoded with mode '+ge.toString(r)+`.
37
- Suggested mode is: `+ge.toString(n));switch(r===ge.KANJI&&!yc.isKanjiModeEnabled()&&(r=ge.BYTE),r){case ge.NUMERIC:return new PT(e);case ge.ALPHANUMERIC:return new NT(e);case ge.KANJI:return new RT(e);case ge.BYTE:return new FT(e)}}Eo.fromArray=function(t){return t.reduce(function(r,n){return typeof n=="string"?r.push(MT(n,null)):n.data&&r.push(MT(n.data,n.mode)),r},[])};Eo.fromString=function(t,r){let n=LT(t,yc.isKanjiModeEnabled()),i=YU(n),o=GU(i,r),s=VU.find_path(o.map,"start","end"),a=[];for(let l=1;l<s.length-1;l++)a.push(o.table[s[l]].node);return Eo.fromArray(WU(a))};Eo.rawSplit=function(t){return Eo.fromArray(LT(t,yc.isKanjiModeEnabled()))}});var UT=N($T=>{var bc=sn(),Md=cc(),JU=XA(),QU=eT(),ZU=tT(),XU=iT(),Fd=oT(),Rd=vd(),KU=cT(),xc=yT(),e4=vT(),t4=ln(),Pd=BT();function r4(e,t){let r=e.size,n=XU.getPositions(t);for(let i=0;i<n.length;i++){let o=n[i][0],s=n[i][1];for(let a=-1;a<=7;a++)if(!(o+a<=-1||r<=o+a))for(let l=-1;l<=7;l++)s+l<=-1||r<=s+l||(a>=0&&a<=6&&(l===0||l===6)||l>=0&&l<=6&&(a===0||a===6)||a>=2&&a<=4&&l>=2&&l<=4?e.set(o+a,s+l,!0,!0):e.set(o+a,s+l,!1,!0))}}function n4(e){let t=e.size;for(let r=8;r<t-8;r++){let n=r%2===0;e.set(r,6,n,!0),e.set(6,r,n,!0)}}function i4(e,t){let r=ZU.getPositions(t);for(let n=0;n<r.length;n++){let i=r[n][0],o=r[n][1];for(let s=-2;s<=2;s++)for(let a=-2;a<=2;a++)s===-2||s===2||a===-2||a===2||s===0&&a===0?e.set(i+s,o+a,!0,!0):e.set(i+s,o+a,!1,!0)}}function o4(e,t){let r=e.size,n=xc.getEncodedBits(t),i,o,s;for(let a=0;a<18;a++)i=Math.floor(a/3),o=a%3+r-8-3,s=(n>>a&1)===1,e.set(i,o,s,!0),e.set(o,i,s,!0)}function Nd(e,t,r){let n=e.size,i=e4.getEncodedBits(t,r),o,s;for(o=0;o<15;o++)s=(i>>o&1)===1,o<6?e.set(o,8,s,!0):o<8?e.set(o+1,8,s,!0):e.set(n-15+o,8,s,!0),o<8?e.set(8,n-o-1,s,!0):o<9?e.set(8,15-o-1+1,s,!0):e.set(8,15-o-1,s,!0);e.set(n-8,8,1,!0)}function s4(e,t){let r=e.size,n=-1,i=r-1,o=7,s=0;for(let a=r-1;a>0;a-=2)for(a===6&&a--;;){for(let l=0;l<2;l++)if(!e.isReserved(i,a-l)){let u=!1;s<t.length&&(u=(t[s]>>>o&1)===1),e.set(i,a-l,u),o--,o===-1&&(s++,o=7)}if(i+=n,i<0||r<=i){i-=n,n=-n;break}}}function a4(e,t,r){let n=new JU;r.forEach(function(l){n.put(l.mode.bit,4),n.put(l.getLength(),t4.getCharCountIndicator(l.mode,e)),l.write(n)});let i=bc.getSymbolTotalCodewords(e),o=Rd.getTotalCodewordsCount(e,t),s=(i-o)*8;for(n.getLengthInBits()+4<=s&&n.put(0,4);n.getLengthInBits()%8!==0;)n.putBit(0);let a=(s-n.getLengthInBits())/8;for(let l=0;l<a;l++)n.put(l%2?17:236,8);return l4(n,e,t)}function l4(e,t,r){let n=bc.getSymbolTotalCodewords(t),i=Rd.getTotalCodewordsCount(t,r),o=n-i,s=Rd.getBlocksCount(t,r),a=n%s,l=s-a,u=Math.floor(n/s),c=Math.floor(o/s),f=c+1,p=u-c,h=new KU(p),m=0,x=new Array(s),v=new Array(s),w=0,E=new Uint8Array(e.buffer);for(let R=0;R<s;R++){let V=R<l?c:f;x[R]=E.slice(m,m+V),v[R]=h.encode(x[R]),m+=V,w=Math.max(w,V)}let b=new Uint8Array(n),z=0,q,A;for(q=0;q<w;q++)for(A=0;A<s;A++)q<x[A].length&&(b[z++]=x[A][q]);for(q=0;q<p;q++)for(A=0;A<s;A++)b[z++]=v[A][q];return b}function u4(e,t,r,n){let i;if(Array.isArray(e))i=Pd.fromArray(e);else if(typeof e=="string"){let u=t;if(!u){let c=Pd.rawSplit(e);u=xc.getBestVersionForData(c,r)}i=Pd.fromString(e,u||40)}else throw new Error("Invalid data");let o=xc.getBestVersionForData(i,r);if(!o)throw new Error("The amount of data is too big to be stored in a QR Code");if(!t)t=o;else if(t<o)throw new Error(`
33
+ `+e.slice(s+1):l+=e.slice(i),l.slice(1)}function ZF(e){for(var t="",r,n,i,o=0;o<e.length;o++){if(r=e.charCodeAt(o),r>=55296&&r<=56319&&(n=e.charCodeAt(o+1),n>=56320&&n<=57343)){t+=Iv((r-55296)*1024+n-56320+65536),o++;continue}i=it[r],t+=!i&&Xi(r)?e[o]:i||Iv(r)}return t}function XF(e,t,r){var n="",i=e.tag,o,s;for(o=0,s=r.length;o<s;o+=1)Hn(e,t,r[o],!1,!1)&&(o!==0&&(n+=","+(e.condenseFlow?"":" ")),n+=e.dump);e.tag=i,e.dump="["+n+"]"}function KF(e,t,r,n){var i="",o=e.tag,s,a;for(s=0,a=r.length;s<a;s+=1)Hn(e,t+1,r[s],!0,!0)&&((!n||s!==0)&&(i+=Zp(e,t)),e.dump&&As===e.dump.charCodeAt(0)?i+="-":i+="- ",i+=e.dump);e.tag=o,e.dump=i||"[]"}function eR(e,t,r){var n="",i=e.tag,o=Object.keys(r),s,a,l,u,c;for(s=0,a=o.length;s<a;s+=1)c="",s!==0&&(c+=", "),e.condenseFlow&&(c+='"'),l=o[s],u=r[l],Hn(e,t,l,!1,!1)&&(e.dump.length>1024&&(c+="? "),c+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),Hn(e,t,u,!1,!1)&&(c+=e.dump,n+=c));e.tag=i,e.dump="{"+n+"}"}function tR(e,t,r,n){var i="",o=e.tag,s=Object.keys(r),a,l,u,c,f,p;if(e.sortKeys===!0)s.sort();else if(typeof e.sortKeys=="function")s.sort(e.sortKeys);else if(e.sortKeys)throw new Cs("sortKeys must be a boolean or a function");for(a=0,l=s.length;a<l;a+=1)p="",(!n||a!==0)&&(p+=Zp(e,t)),u=s[a],c=r[u],Hn(e,t+1,u,!0,!0,!0)&&(f=e.tag!==null&&e.tag!=="?"||e.dump&&e.dump.length>1024,f&&(e.dump&&As===e.dump.charCodeAt(0)?p+="?":p+="? "),p+=e.dump,f&&(p+=Zp(e,t)),Hn(e,t+1,c,!0,f)&&(e.dump&&As===e.dump.charCodeAt(0)?p+=":":p+=": ",p+=e.dump,i+=p));e.tag=o,e.dump=i||"{}"}function Fv(e,t,r){var n,i,o,s,a,l;for(i=r?e.explicitTypes:e.implicitTypes,o=0,s=i.length;o<s;o+=1)if(a=i[o],(a.instanceOf||a.predicate)&&(!a.instanceOf||typeof t=="object"&&t instanceof a.instanceOf)&&(!a.predicate||a.predicate(t))){if(e.tag=r?a.tag:"?",a.represent){if(l=e.styleMap[a.tag]||a.defaultStyle,Rv.call(a.represent)==="[object Function]")n=a.represent(t,l);else if(Lv.call(a.represent,l))n=a.represent[l](t,l);else throw new Cs("!<"+a.tag+'> tag resolver accepts not "'+l+'" style');e.dump=n}return!0}return!1}function Hn(e,t,r,n,i,o){e.tag=null,e.dump=r,Fv(e,r,!1)||Fv(e,r,!0);var s=Rv.call(e.dump);n&&(n=e.flowLevel<0||e.flowLevel>t);var a=s==="[object Object]"||s==="[object Array]",l,u;if(a&&(l=e.duplicates.indexOf(r),u=l!==-1),(e.tag!==null&&e.tag!=="?"||u||e.indent!==2&&t>0)&&(i=!1),u&&e.usedDuplicates[l])e.dump="*ref_"+l;else{if(a&&u&&!e.usedDuplicates[l]&&(e.usedDuplicates[l]=!0),s==="[object Object]")n&&Object.keys(e.dump).length!==0?(tR(e,t,e.dump,i),u&&(e.dump="&ref_"+l+e.dump)):(eR(e,t,e.dump),u&&(e.dump="&ref_"+l+" "+e.dump));else if(s==="[object Array]"){var c=e.noArrayIndent&&t>0?t-1:t;n&&e.dump.length!==0?(KF(e,c,e.dump,i),u&&(e.dump="&ref_"+l+e.dump)):(XF(e,c,e.dump),u&&(e.dump="&ref_"+l+" "+e.dump))}else if(s==="[object String]")e.tag!=="?"&&JF(e,e.dump,t,o);else{if(e.skipInvalid)return!1;throw new Cs("unacceptable kind of an object to dump "+s)}e.tag!==null&&e.tag!=="?"&&(e.dump="!<"+e.tag+"> "+e.dump)}return!0}function rR(e,t){var r=[],n=[],i,o;for(Xp(e,r,n),i=0,o=n.length;i<o;i+=1)t.duplicates.push(r[n[i]]);t.usedDuplicates=new Array(o)}function Xp(e,t,r){var n,i,o;if(e!==null&&typeof e=="object")if(i=t.indexOf(e),i!==-1)r.indexOf(i)===-1&&r.push(i);else if(t.push(e),Array.isArray(e))for(i=0,o=e.length;i<o;i+=1)Xp(e[i],t,r);else for(n=Object.keys(e),i=0,o=n.length;i<o;i+=1)Xp(e[n[i]],t,r)}function Qv(e,t){t=t||{};var r=new HF(t);return r.noRefs||rR(e,r),Hn(r,0,e,!0,!0)?r.dump+`
34
+ `:""}function nR(e,t){return Qv(e,Ts.extend({schema:TF},t))}eh.exports.dump=Qv;eh.exports.safeDump=nR});var Kv=N((sW,De)=>{"use strict";var Gl=_v(),Xv=Zv();function Jl(e){return function(){throw new Error("Function "+e+" is deprecated and cannot be used.")}}De.exports.Type=Ge();De.exports.Schema=Un();De.exports.FAILSAFE_SCHEMA=jl();De.exports.JSON_SCHEMA=Vp();De.exports.CORE_SCHEMA=Wp();De.exports.DEFAULT_SAFE_SCHEMA=Gi();De.exports.DEFAULT_FULL_SCHEMA=Ss();De.exports.load=Gl.load;De.exports.loadAll=Gl.loadAll;De.exports.safeLoad=Gl.safeLoad;De.exports.safeLoadAll=Gl.safeLoadAll;De.exports.dump=Xv.dump;De.exports.safeDump=Xv.safeDump;De.exports.YAMLException=Wi();De.exports.MINIMAL_SCHEMA=jl();De.exports.SAFE_SCHEMA=Gi();De.exports.DEFAULT_SCHEMA=Ss();De.exports.scan=Jl("scan");De.exports.parse=Jl("parse");De.exports.compose=Jl("compose");De.exports.addConstructor=Jl("addConstructor")});var tS=N((aW,eS)=>{"use strict";var iR=Kv();eS.exports=iR});var rS=N(er=>{"use strict";var oR=er&&er.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]}),sR=er&&er.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),aR=er&&er.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)r!=="default"&&Object.hasOwnProperty.call(e,r)&&oR(t,e,r);return sR(t,e),t};Object.defineProperty(er,"__esModule",{value:!0});er.jsYaml=void 0;var lR=aR(tS());er.jsYaml=lR});var iS=N(Pt=>{"use strict";var uR=Pt&&Pt.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]}),cR=Pt&&Pt.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),fR=Pt&&Pt.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)r!=="default"&&Object.hasOwnProperty.call(e,r)&&uR(t,e,r);return cR(t,e),t};Object.defineProperty(Pt,"__esModule",{value:!0});Pt.objectToYamlString=Pt.yamlStringToObject=void 0;var nS=fR(rS());Pt.yamlStringToObject=async(e,t={})=>nS.jsYaml.safeLoad(e);Pt.objectToYamlString=async(e,t={})=>nS.jsYaml.safeDump(e)});var hS=N((fW,pS)=>{"use strict";var Ql=Object.prototype.hasOwnProperty,fS=Object.prototype.toString,oS=Object.defineProperty,sS=Object.getOwnPropertyDescriptor,aS=function(t){return typeof Array.isArray=="function"?Array.isArray(t):fS.call(t)==="[object Array]"},lS=function(t){if(!t||fS.call(t)!=="[object Object]")return!1;var r=Ql.call(t,"constructor"),n=t.constructor&&t.constructor.prototype&&Ql.call(t.constructor.prototype,"isPrototypeOf");if(t.constructor&&!r&&!n)return!1;var i;for(i in t);return typeof i>"u"||Ql.call(t,i)},uS=function(t,r){oS&&r.name==="__proto__"?oS(t,r.name,{enumerable:!0,configurable:!0,value:r.newValue,writable:!0}):t[r.name]=r.newValue},cS=function(t,r){if(r==="__proto__")if(Ql.call(t,r)){if(sS)return sS(t,r).value}else return;return t[r]};pS.exports=function e(){var t,r,n,i,o,s,a=arguments[0],l=1,u=arguments.length,c=!1;for(typeof a=="boolean"&&(c=a,a=arguments[1]||{},l=2),(a==null||typeof a!="object"&&typeof a!="function")&&(a={});l<u;++l)if(t=arguments[l],t!=null)for(r in t)n=cS(a,r),i=cS(t,r),a!==i&&(c&&i&&(lS(i)||(o=aS(i)))?(o?(o=!1,s=n&&aS(n)?n:[]):s=n&&lS(n)?n:{},uS(a,{name:r,newValue:e(c,s,i)})):typeof i<"u"&&uS(a,{name:r,newValue:i}));return a}});var q1=N((gK,cm)=>{(function(){var e;typeof cm<"u"?e=cm.exports=n:e=function(){return this||(0,eval)("this")}(),e.format=n,e.vsprintf=r,typeof console<"u"&&typeof console.log=="function"&&(e.printf=t);function t(){console.log(n.apply(null,arguments))}function r(i,o){return n.apply(null,[i].concat(o))}function n(i){for(var o=1,s=[].slice.call(arguments),a=0,l=i.length,u="",c,f=!1,p,h,m=!1,x,v=function(){return s[o++]},w=function(){for(var E="";/\d/.test(i[a]);)E+=i[a++],c=i[a];return E.length>0?parseInt(E):null};a<l;++a)if(c=i[a],f)switch(f=!1,c=="."?(m=!1,c=i[++a]):c=="0"&&i[a+1]=="."?(m=!0,a+=2,c=i[a]):m=!0,x=w(),c){case"b":u+=parseInt(v(),10).toString(2);break;case"c":p=v(),typeof p=="string"||p instanceof String?u+=p:u+=String.fromCharCode(parseInt(p,10));break;case"d":u+=parseInt(v(),10);break;case"f":h=String(parseFloat(v()).toFixed(x||6)),u+=m?h:h.replace(/^0/,"");break;case"j":u+=JSON.stringify(v());break;case"o":u+="0"+parseInt(v(),10).toString(8);break;case"s":u+=v();break;case"x":u+="0x"+parseInt(v(),10).toString(16);break;case"X":u+="0x"+parseInt(v(),10).toString(16).toUpperCase();break;default:u+=c;break}else c==="%"?f=!0:u+=c;return u}})()});var TA=N(Ir=>{"use strict";Object.defineProperty(Ir,"__esModule",{value:!0});Ir.TokenData=void 0;Ir.parse=Zm;Ir.compile=N3;Ir.match=R3;Ir.pathToRegexp=AA;Ir.stringify=$3;var Gm="/",Jm=e=>e,SA=/^[$_\p{ID_Start}]$/u,Qm=/^[$\u200c\u200d\p{ID_Continue}]$/u,Wu="https://git.new/pathToRegexpError",D3={"{":"{","}":"}","(":"(",")":")","[":"[","]":"]","+":"+","?":"?","!":"!"};function O3(e){return e.replace(/[{}()\[\]+?!:*]/g,"\\$&")}function ir(e){return e.replace(/[.+*?^${}()[\]|/\\]/g,"\\$&")}function*M3(e){let t=[...e],r=0;function n(){let i="";if(SA.test(t[++r]))for(i+=t[r];Qm.test(t[++r]);)i+=t[r];else if(t[r]==='"'){let o=r;for(;r<t.length;){if(t[++r]==='"'){r++,o=0;break}t[r]==="\\"?i+=t[++r]:i+=t[r]}if(o)throw new TypeError(`Unterminated quote at ${o}: ${Wu}`)}if(!i)throw new TypeError(`Missing parameter name at ${r}: ${Wu}`);return i}for(;r<t.length;){let i=t[r],o=D3[i];if(o)yield{type:o,index:r++,value:i};else if(i==="\\")yield{type:"ESCAPED",index:r++,value:t[r++]};else if(i===":"){let s=n();yield{type:"PARAM",index:r,value:s}}else if(i==="*"){let s=n();yield{type:"WILDCARD",index:r,value:s}}else yield{type:"CHAR",index:r,value:t[r++]}}return{type:"END",index:r,value:""}}var Ym=class{constructor(t){this.tokens=t}peek(){if(!this._peek){let t=this.tokens.next();this._peek=t.value}return this._peek}tryConsume(t){let r=this.peek();if(r.type===t)return this._peek=void 0,r.value}consume(t){let r=this.tryConsume(t);if(r!==void 0)return r;let{type:n,index:i}=this.peek();throw new TypeError(`Unexpected ${n} at ${i}, expected ${t}: ${Wu}`)}text(){let t="",r;for(;r=this.tryConsume("CHAR")||this.tryConsume("ESCAPED");)t+=r;return t}},uo=class{constructor(t){this.tokens=t}};Ir.TokenData=uo;function Zm(e,t={}){let{encodePath:r=Jm}=t,n=new Ym(M3(e));function i(s){let a=[];for(;;){let l=n.text();l&&a.push({type:"text",value:r(l)});let u=n.tryConsume("PARAM");if(u){a.push({type:"param",name:u});continue}let c=n.tryConsume("WILDCARD");if(c){a.push({type:"wildcard",name:c});continue}if(n.tryConsume("{")){a.push({type:"group",tokens:i("}")});continue}return n.consume(s),a}}let o=i("END");return new uo(o)}function N3(e,t={}){let{encode:r=encodeURIComponent,delimiter:n=Gm}=t,i=e instanceof uo?e:Zm(e,t),o=kA(i.tokens,n,r);return function(a={}){let[l,...u]=o(a);if(u.length)throw new TypeError(`Missing parameters: ${u.join(", ")}`);return l}}function kA(e,t,r){let n=e.map(i=>F3(i,t,r));return i=>{let o=[""];for(let s of n){let[a,...l]=s(i);o[0]+=a,o.push(...l)}return o}}function F3(e,t,r){if(e.type==="text")return()=>[e.value];if(e.type==="group"){let i=kA(e.tokens,t,r);return o=>{let[s,...a]=i(o);return a.length?[""]:[s]}}let n=r||Jm;return e.type==="wildcard"&&r!==!1?i=>{let o=i[e.name];if(o==null)return["",e.name];if(!Array.isArray(o)||o.length===0)throw new TypeError(`Expected "${e.name}" to be a non-empty array`);return[o.map((s,a)=>{if(typeof s!="string")throw new TypeError(`Expected "${e.name}/${a}" to be a string`);return n(s)}).join(t)]}:i=>{let o=i[e.name];if(o==null)return["",e.name];if(typeof o!="string")throw new TypeError(`Expected "${e.name}" to be a string`);return[n(o)]}}function R3(e,t={}){let{decode:r=decodeURIComponent,delimiter:n=Gm}=t,{regexp:i,keys:o}=AA(e,t),s=o.map(a=>r===!1?Jm:a.type==="param"?r:l=>l.split(n).map(r));return function(l){let u=i.exec(l);if(!u)return!1;let c=u[0],f=Object.create(null);for(let p=1;p<u.length;p++){if(u[p]===void 0)continue;let h=o[p-1],m=s[p-1];f[h.name]=m(u[p])}return{path:c,params:f}}}function AA(e,t={}){let{delimiter:r=Gm,end:n=!0,sensitive:i=!1,trailing:o=!0}=t,s=[],a=[],l=i?"":"i",c=(Array.isArray(e)?e:[e]).map(h=>h instanceof uo?h:Zm(h,t));for(let{tokens:h}of c)for(let m of Vu(h,0,[])){let x=L3(m,r,s);a.push(x)}let f=`^(?:${a.join("|")})`;return o&&(f+=`(?:${ir(r)}$)?`),f+=n?"$":`(?=${ir(r)}|$)`,{regexp:new RegExp(f,l),keys:s}}function*Vu(e,t,r){if(t===e.length)return yield r;let n=e[t];if(n.type==="group"){let i=r.slice();for(let o of Vu(n.tokens,0,i))yield*Vu(e,t+1,o)}else r.push(n);yield*Vu(e,t+1,r)}function L3(e,t,r){let n="",i="",o=!0;for(let s=0;s<e.length;s++){let a=e[s];if(a.type==="text"){n+=ir(a.value),i+=a.value,o||(o=a.value.includes(t));continue}if(a.type==="param"||a.type==="wildcard"){if(!o&&!i)throw new TypeError(`Missing text after "${a.name}": ${Wu}`);a.type==="param"?n+=`(${B3(t,o?"":i)}+)`:n+="([\\s\\S]+)",r.push(a),i="",o=!1;continue}}return n}function B3(e,t){return t.length<2?e.length<2?`[^${ir(e+t)}]`:`(?:(?!${ir(e)})[^${ir(t)}])`:e.length<2?`(?:(?!${ir(t)})[^${ir(e)}])`:`(?:(?!${ir(t)}|${ir(e)})[\\s\\S])`}function $3(e){return e.tokens.map(function t(r,n,i){if(r.type==="text")return O3(r.value);if(r.type==="group")return`{${r.tokens.map(t).join("")}}`;let s=U3(r.name)&&j3(i[n+1])?r.name:JSON.stringify(r.name);if(r.type==="param")return`:${s}`;if(r.type==="wildcard")return`*${s}`;throw new TypeError(`Unexpected token: ${r}`)}).join("")}function U3(e){let[t,...r]=e;return SA.test(t)?r.every(n=>Qm.test(n)):!1}function j3(e){return e?.type!=="text"?!0:!Qm.test(e.value[0])}});var EA=N(qe=>{"use strict";Object.defineProperty(qe,"__esModule",{value:!0});qe.getFirstTrueOrFalse=qe.timeoutAndContinue=qe.timeoutWrap=qe.map=qe.rejectedPromise=qe.resolvedPromise=qe.defer=qe.Deferred=void 0;var Gu=class{constructor(){this.promise=new Promise((t,r)=>{this.resolve=n=>{this.status="fulfilled",this.stoppedAt=Date.now(),t(n)},this.reject=n=>{this.status="rejected",this.stoppedAt=Date.now(),r(n)},this.startedAt=Date.now(),this.status="pending"})}get duration(){return this.stoppedAt?this.stoppedAt-this.startedAt:Date.now()-this.startedAt}};qe.Deferred=Gu;qe.defer=()=>new Gu;qe.resolvedPromise=e=>Promise.resolve(e);qe.rejectedPromise=e=>Promise.reject(e);qe.map=async(e,t)=>{let r=[],n=[];for(let i of e){let o=t(i);r.push(o),o.then(s=>{n.push(s)})}return await Promise.all(r),n};qe.timeoutWrap=async(e,t,r=!0)=>new Promise((n,i)=>{setTimeout(()=>{r?i(new Error("timeout")):n(null)},t),e.then(n,i)});qe.timeoutAndContinue=async(e,t=6e4)=>qe.timeoutWrap(e,t,!1);qe.getFirstTrueOrFalse=async e=>{let t=qe.defer();for(let r of e)r.then(n=>{n===!0&&t.resolve(!0)});return Promise.all(e).then(()=>{t.resolve(!1)}),t.promise}});var id=N((rd,nd)=>{(function(e,t){typeof rd=="object"&&typeof nd<"u"?nd.exports=t():typeof define=="function"&&define.amd?define(t):(e=e||self,e.SweetScroll=t())})(rd,function(){"use strict";var e=function(){return e=Object.assign||function(g){for(var S,C=1,D=arguments.length;C<D;C++){S=arguments[C];for(var Y in S)Object.prototype.hasOwnProperty.call(S,Y)&&(g[Y]=S[Y])}return g},e.apply(this,arguments)},t=!!(typeof window<"u"&&window.document&&window.document.createElement),r=t?window.history&&"pushState"in window.history&&window.location.protocol!=="file:":!1,n=function(){var k=!1;if(!t)return k;try{var g=window,S=Object.defineProperty({},"passive",{get:function(){k=!0}});g.addEventListener("test",null,S),g.removeEventListener("test",null,S)}catch{}return k}(),i=function(k){return typeof k=="string"},o=function(k){return typeof k=="function"},s=function(k){return Array.isArray(k)},a=function(k){return!s(k)&&k-parseFloat(k)+1>=0},l=function(k,g){return k&&k.hasOwnProperty(g)},u=t?window.requestAnimationFrame.bind(window):null,c=t?window.cancelAnimationFrame.bind(window):null,f=Math.cos,p=Math.sin,h=Math.pow,m=Math.sqrt,x=Math.PI,v={linear:function(k){return k},easeInQuad:function(k,g,S,C,D){return C*(g/=D)*g+S},easeOutQuad:function(k,g,S,C,D){return-C*(g/=D)*(g-2)+S},easeInOutQuad:function(k,g,S,C,D){return(g/=D/2)<1?C/2*g*g+S:-C/2*(--g*(g-2)-1)+S},easeInCubic:function(k,g,S,C,D){return C*(g/=D)*g*g+S},easeOutCubic:function(k,g,S,C,D){return C*((g=g/D-1)*g*g+1)+S},easeInOutCubic:function(k,g,S,C,D){return(g/=D/2)<1?C/2*g*g*g+S:C/2*((g-=2)*g*g+2)+S},easeInQuart:function(k,g,S,C,D){return C*(g/=D)*g*g*g+S},easeOutQuart:function(k,g,S,C,D){return-C*((g=g/D-1)*g*g*g-1)+S},easeInOutQuart:function(k,g,S,C,D){return(g/=D/2)<1?C/2*g*g*g*g+S:-C/2*((g-=2)*g*g*g-2)+S},easeInQuint:function(k,g,S,C,D){return C*(g/=D)*g*g*g*g+S},easeOutQuint:function(k,g,S,C,D){return C*((g=g/D-1)*g*g*g*g+1)+S},easeInOutQuint:function(k,g,S,C,D){return(g/=D/2)<1?C/2*g*g*g*g*g+S:C/2*((g-=2)*g*g*g*g+2)+S},easeInSine:function(k,g,S,C,D){return-C*f(g/D*(x/2))+C+S},easeOutSine:function(k,g,S,C,D){return C*p(g/D*(x/2))+S},easeInOutSine:function(k,g,S,C,D){return-C/2*(f(x*g/D)-1)+S},easeInExpo:function(k,g,S,C,D){return g===0?S:C*h(2,10*(g/D-1))+S},easeOutExpo:function(k,g,S,C,D){return g===D?S+C:C*(-h(2,-10*g/D)+1)+S},easeInOutExpo:function(k,g,S,C,D){return g===0?S:g===D?S+C:(g/=D/2)<1?C/2*h(2,10*(g-1))+S:C/2*(-h(2,-10*--g)+2)+S},easeInCirc:function(k,g,S,C,D){return-C*(m(1-(g/=D)*g)-1)+S},easeOutCirc:function(k,g,S,C,D){return C*m(1-(g=g/D-1)*g)+S},easeInOutCirc:function(k,g,S,C,D){return(g/=D/2)<1?-C/2*(m(1-g*g)-1)+S:C/2*(m(1-(g-=2)*g)+1)+S}},w=function(k){return Array.prototype.slice.call(k?document.querySelectorAll(k):[])},E=function(k){return w(k).shift()||null},b=function(k){return k instanceof Element},z=function(k){return k===window},q=function(k){return k===document.documentElement||k===document.body},A=function(k,g){if(b(g))return k===g;for(var S=w(g),C=S.length;--C>=0&&S[C]!==k;);return C>-1},R=function(k){return Math.max(k.scrollHeight,k.clientHeight,k.offsetHeight)},V=function(k){return Math.max(k.scrollWidth,k.clientWidth,k.offsetWidth)},$=function(k){return{width:V(k),height:R(k)}},T=function(k){var g=z(k)||q(k);return{viewport:{width:g?Math.min(window.innerWidth,document.documentElement.clientWidth):k.clientWidth,height:g?window.innerHeight:k.clientHeight},size:g?{width:Math.max(V(document.body),V(document.documentElement)),height:Math.max(R(document.body),R(document.documentElement))}:$(k)}},fe={y:"scrollTop",x:"scrollLeft"},B={y:"pageYOffset",x:"pageXOffset"},_=function(k,g){return z(k)?k[B[g]]:k[fe[g]]},I=function(k,g,S){if(z(k)){var C=S==="y";k.scrollTo(C?k.pageXOffset:g,C?g:k.pageYOffset)}else k[fe[S]]=g},O=function(k,g){var S=k.getBoundingClientRect();if(S.width||S.height){var C={top:0,left:0},D=void 0;if(z(g)||q(g))D=document.documentElement,C.top=window[B.y],C.left=window[B.x];else{D=g;var Y=D.getBoundingClientRect();C.top=Y.top*-1+D[fe.y],C.left=Y.left*-1+D[fe.x]}return{top:S.top+C.top-D.clientTop,left:S.left+C.left-D.clientLeft}}return S},F=function(){return t?"onwheel"in document?"wheel":"mousewheel":"wheel"}(),W=function(k){return k==="wheel"?F:k},M=function(k,g,S,C,D){S.split(" ").forEach(function(Y){k[g](W(Y),C,n?{passive:D}:!1)})},U=function(k,g,S,C){return M(k,"addEventListener",g,S,C)},d=function(k,g,S,C){return M(k,"removeEventListener",g,S,C)},G=/^(\+|-)=(\d+(?:\.\d+)?)$/,X=function(k,g){var S={top:0,left:0,relative:!1};if(l(k,"top")||l(k,"left"))S=e({},S,k);else if(s(k))if(k.length>1)S.top=k[0],S.left=k[1];else if(k.length===1)S.top=g?k[0]:0,S.left=g?0:k[0];else return null;else if(a(k))g?S.top=k:S.left=k;else if(i(k)){var C=k.trim().match(G);if(!C)return null;var D=C[1],Y=parseInt(C[2],10);D==="+"?(S.top=g?Y:0,S.left=g?0:Y):(S.top=g?-Y:0,S.left=g?0:-Y),S.relative=!0}else return null;return S},y={trigger:"[data-scroll]",header:"[data-scroll-header]",duration:1e3,easing:"easeOutQuint",offset:0,vertical:!0,horizontal:!1,cancellable:!0,updateURL:!1,preventDefault:!0,stopPropagation:!0,before:null,after:null,cancel:null,complete:null,step:null},oe="click",me="wheel touchstart touchmove",_e=function(){function k(g,S){var C=this;this.$el=null,this.ctx={$trigger:null,opts:null,progress:!1,pos:null,startPos:null,easing:null,start:0,id:0,cancel:!1,hash:null},this.loop=function(Y){var de=C,ye=de.$el,xe=de.ctx;if(xe.start||(xe.start=Y),!xe.progress||!ye){C.stop();return}var At=xe.opts,tt=xe.pos,bt=xe.start,ur=xe.startPos,Fr=xe.easing,Rt=At.duration,Vt={top:"y",left:"x"},Tt=Y-bt,Be=Math.min(1,Math.max(Tt/Rt,0));Object.keys(tt).forEach(function(Rr){var P=tt[Rr],j=ur[Rr],te=P-j;if(te!==0){var ae=Fr(Be,Rt*Be,0,1,Rt);I(ye,Math.round(j+te*ae),Vt[Rr])}}),Tt<=Rt?(C.hook(At,"step",Be),xe.id=k.raf(C.loop)):C.stop(!0)},this.handleClick=function(Y){for(var de=C.opts,ye=Y.target;ye&&ye!==document;ye=ye.parentNode)if(A(ye,de.trigger)){var xe=JSON.parse(ye.getAttribute("data-scroll-options")||"{}"),At=ye.getAttribute("data-scroll"),tt=At||ye.getAttribute("href"),bt=e({},de,xe),ur=bt.preventDefault,Fr=bt.stopPropagation,Rt=bt.vertical,Vt=bt.horizontal;ur&&Y.preventDefault(),Fr&&Y.stopPropagation(),C.ctx.$trigger=ye,Vt&&Rt?C.to(tt,bt):Rt?C.toTop(tt,bt):Vt&&C.toLeft(tt,bt);break}},this.handleStop=function(Y){var de=C.ctx,ye=de.opts;ye&&ye.cancellable?(de.cancel=!0,C.stop()):Y.preventDefault()},this.opts=e({},y,g||{});var D=null;t&&(typeof S=="string"?D=E(S):S!=null?D=S:D=window),this.$el=D,D&&this.bind(!0,!1)}return k.create=function(g,S){return new k(g,S)},k.prototype.to=function(g,S){if(t){var C=this,D=C.$el,Y=C.ctx,de=C.opts,ye=Y.$trigger,xe=e({},de,S||{}),At=xe.offset,tt=xe.vertical,bt=xe.horizontal,ur=b(xe.header)?xe.header:E(xe.header),Fr=/^#/,Rt=i(g)&&Fr.test(g)?g:null;if(Y.opts=xe,Y.cancel=!1,Y.hash=Rt,this.stop(),!!D){var Vt=X(At,tt),Tt=X(g,tt),Be={top:0,left:0};if(Tt)if(Tt.relative){var Rr=_(D,tt?"y":"x");Be.top=tt?Rr+Tt.top:Tt.top,Be.left=tt?Tt.left:Rr+Tt.left}else Be=Tt;else if(i(g)&&g!=="#"){var P=E(g);if(!P)return;Be=O(P,D)}Vt&&(Be.top+=Vt.top,Be.left+=Vt.left),ur&&(Be.top=Math.max(0,Be.top-$(ur).height));var j=T(D),te=j.viewport,ae=j.size;if(Be.top=tt?Math.max(0,Math.min(ae.height-te.height,Be.top)):_(D,"y"),Be.left=bt?Math.max(0,Math.min(ae.width-te.width,Be.left)):_(D,"x"),this.hook(xe,"before",Be,ye)===!1){Y.opts=null;return}Y.pos=Be,this.start(xe),this.bind(!1,!0)}}},k.prototype.toTop=function(g,S){this.to(g,e({},S||{},{vertical:!0,horizontal:!1}))},k.prototype.toLeft=function(g,S){this.to(g,e({},S||{},{vertical:!1,horizontal:!0}))},k.prototype.toElement=function(g,S){var C=this.$el;!t||!C||this.to(O(g,C),S||{})},k.prototype.stop=function(g){g===void 0&&(g=!1);var S=this,C=S.$el,D=S.ctx,Y=D.pos;!C||!D.progress||(k.caf(D.id),D.progress=!1,D.start=0,D.id=0,g&&Y&&(I(C,Y.left,"x"),I(C,Y.top,"y")),this.complete())},k.prototype.update=function(g){if(this.$el){var S=e({},this.opts,g);this.stop(),this.unbind(!0,!0),this.opts=S,this.bind(!0,!1)}},k.prototype.destroy=function(){this.$el&&(this.stop(),this.unbind(!0,!0),this.$el=null)},k.prototype.onBefore=function(g,S){return!0},k.prototype.onStep=function(g){},k.prototype.onAfter=function(g,S){},k.prototype.onCancel=function(){},k.prototype.onComplete=function(g){},k.prototype.start=function(g){var S=this.ctx;S.opts=g,S.progress=!0,S.easing=o(g.easing)?g.easing:v[g.easing];var C=this.$el,D={top:_(C,"y"),left:_(C,"x")};S.startPos=D,S.id=k.raf(this.loop)},k.prototype.complete=function(){var g=this,S=g.$el,C=g.ctx,D=C.hash,Y=C.cancel,de=C.opts,ye=C.pos,xe=C.$trigger;if(!(!S||!de)){if(D!=null&&D!==window.location.hash){var At=de.updateURL;t&&r&&At!==!1&&window.history[At==="replace"?"replaceState":"pushState"](null,"",D)}this.unbind(!1,!0),C.opts=null,C.$trigger=null,Y?this.hook(de,"cancel"):this.hook(de,"after",ye,xe),this.hook(de,"complete",Y)}},k.prototype.hook=function(g,S){for(var C=[],D=2;D<arguments.length;D++)C[D-2]=arguments[D];var Y,de=g[S],ye,xe;return o(de)&&(ye=de.apply(this,C.concat([this]))),xe=(Y=this)["on"+(S[0].toUpperCase()+S.slice(1))].apply(Y,C),ye!==void 0?ye:xe},k.prototype.bind=function(g,S){var C=this,D=C.$el,Y=C.ctx.opts;D&&(g&&U(D,oe,this.handleClick,!1),S&&U(D,me,this.handleStop,Y?Y.cancellable:!0))},k.prototype.unbind=function(g,S){var C=this,D=C.$el,Y=C.ctx.opts;D&&(g&&d(D,oe,this.handleClick,!1),S&&d(D,me,this.handleStop,Y?Y.cancellable:!0))},k.raf=u,k.caf=c,k}();return _e})});var JA=N((Xle,GA)=>{GA.exports=function(){return typeof Promise=="function"&&Promise.prototype&&Promise.prototype.then}});var sn=N(ai=>{var bd,TU=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];ai.getSymbolSize=function(t){if(!t)throw new Error('"version" cannot be null or undefined');if(t<1||t>40)throw new Error('"version" should be in range from 1 to 40');return t*4+17};ai.getSymbolTotalCodewords=function(t){return TU[t]};ai.getBCHDigit=function(e){let t=0;for(;e!==0;)t++,e>>>=1;return t};ai.setToSJISFunction=function(t){if(typeof t!="function")throw new Error('"toSJISFunc" is not a valid function.');bd=t};ai.isKanjiModeEnabled=function(){return typeof bd<"u"};ai.toSJIS=function(t){return bd(t)}});var cc=N(Mt=>{Mt.L={bit:1};Mt.M={bit:0};Mt.Q={bit:3};Mt.H={bit:2};function CU(e){if(typeof e!="string")throw new Error("Param is not a string");switch(e.toLowerCase()){case"l":case"low":return Mt.L;case"m":case"medium":return Mt.M;case"q":case"quartile":return Mt.Q;case"h":case"high":return Mt.H;default:throw new Error("Unknown EC Level: "+e)}}Mt.isValid=function(t){return t&&typeof t.bit<"u"&&t.bit>=0&&t.bit<4};Mt.from=function(t,r){if(Mt.isValid(t))return t;try{return CU(t)}catch{return r}}});var XA=N((tue,ZA)=>{function QA(){this.buffer=[],this.length=0}QA.prototype={get:function(e){let t=Math.floor(e/8);return(this.buffer[t]>>>7-e%8&1)===1},put:function(e,t){for(let r=0;r<t;r++)this.putBit((e>>>t-r-1&1)===1)},getLengthInBits:function(){return this.length},putBit:function(e){let t=Math.floor(this.length/8);this.buffer.length<=t&&this.buffer.push(0),e&&(this.buffer[t]|=128>>>this.length%8),this.length++}};ZA.exports=QA});var eT=N((rue,KA)=>{function ia(e){if(!e||e<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=e,this.data=new Uint8Array(e*e),this.reservedBit=new Uint8Array(e*e)}ia.prototype.set=function(e,t,r,n){let i=e*this.size+t;this.data[i]=r,n&&(this.reservedBit[i]=!0)};ia.prototype.get=function(e,t){return this.data[e*this.size+t]};ia.prototype.xor=function(e,t,r){this.data[e*this.size+t]^=r};ia.prototype.isReserved=function(e,t){return this.reservedBit[e*this.size+t]};KA.exports=ia});var tT=N(fc=>{var EU=sn().getSymbolSize;fc.getRowColCoords=function(t){if(t===1)return[];let r=Math.floor(t/7)+2,n=EU(t),i=n===145?26:Math.ceil((n-13)/(2*r-2))*2,o=[n-7];for(let s=1;s<r-1;s++)o[s]=o[s-1]-i;return o.push(6),o.reverse()};fc.getPositions=function(t){let r=[],n=fc.getRowColCoords(t),i=n.length;for(let o=0;o<i;o++)for(let s=0;s<i;s++)o===0&&s===0||o===0&&s===i-1||o===i-1&&s===0||r.push([n[o],n[s]]);return r}});var iT=N(nT=>{var _U=sn().getSymbolSize,rT=7;nT.getPositions=function(t){let r=_U(t);return[[0,0],[r-rT,0],[0,r-rT]]}});var oT=N(Te=>{Te.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};var li={N1:3,N2:3,N3:40,N4:10};Te.isValid=function(t){return t!=null&&t!==""&&!isNaN(t)&&t>=0&&t<=7};Te.from=function(t){return Te.isValid(t)?parseInt(t,10):void 0};Te.getPenaltyN1=function(t){let r=t.size,n=0,i=0,o=0,s=null,a=null;for(let l=0;l<r;l++){i=o=0,s=a=null;for(let u=0;u<r;u++){let c=t.get(l,u);c===s?i++:(i>=5&&(n+=li.N1+(i-5)),s=c,i=1),c=t.get(u,l),c===a?o++:(o>=5&&(n+=li.N1+(o-5)),a=c,o=1)}i>=5&&(n+=li.N1+(i-5)),o>=5&&(n+=li.N1+(o-5))}return n};Te.getPenaltyN2=function(t){let r=t.size,n=0;for(let i=0;i<r-1;i++)for(let o=0;o<r-1;o++){let s=t.get(i,o)+t.get(i,o+1)+t.get(i+1,o)+t.get(i+1,o+1);(s===4||s===0)&&n++}return n*li.N2};Te.getPenaltyN3=function(t){let r=t.size,n=0,i=0,o=0;for(let s=0;s<r;s++){i=o=0;for(let a=0;a<r;a++)i=i<<1&2047|t.get(s,a),a>=10&&(i===1488||i===93)&&n++,o=o<<1&2047|t.get(a,s),a>=10&&(o===1488||o===93)&&n++}return n*li.N3};Te.getPenaltyN4=function(t){let r=0,n=t.data.length;for(let o=0;o<n;o++)r+=t.data[o];return Math.abs(Math.ceil(r*100/n/5)-10)*li.N4};function IU(e,t,r){switch(e){case Te.Patterns.PATTERN000:return(t+r)%2===0;case Te.Patterns.PATTERN001:return t%2===0;case Te.Patterns.PATTERN010:return r%3===0;case Te.Patterns.PATTERN011:return(t+r)%3===0;case Te.Patterns.PATTERN100:return(Math.floor(t/2)+Math.floor(r/3))%2===0;case Te.Patterns.PATTERN101:return t*r%2+t*r%3===0;case Te.Patterns.PATTERN110:return(t*r%2+t*r%3)%2===0;case Te.Patterns.PATTERN111:return(t*r%3+(t+r)%2)%2===0;default:throw new Error("bad maskPattern:"+e)}}Te.applyMask=function(t,r){let n=r.size;for(let i=0;i<n;i++)for(let o=0;o<n;o++)r.isReserved(o,i)||r.xor(o,i,IU(t,o,i))};Te.getBestMask=function(t,r){let n=Object.keys(Te.Patterns).length,i=0,o=1/0;for(let s=0;s<n;s++){r(s),Te.applyMask(s,t);let a=Te.getPenaltyN1(t)+Te.getPenaltyN2(t)+Te.getPenaltyN3(t)+Te.getPenaltyN4(t);Te.applyMask(s,t),a<o&&(o=a,i=s)}return i}});var vd=N(wd=>{var an=cc(),pc=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],hc=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];wd.getBlocksCount=function(t,r){switch(r){case an.L:return pc[(t-1)*4+0];case an.M:return pc[(t-1)*4+1];case an.Q:return pc[(t-1)*4+2];case an.H:return pc[(t-1)*4+3];default:return}};wd.getTotalCodewordsCount=function(t,r){switch(r){case an.L:return hc[(t-1)*4+0];case an.M:return hc[(t-1)*4+1];case an.Q:return hc[(t-1)*4+2];case an.H:return hc[(t-1)*4+3];default:return}}});var sT=N(dc=>{var oa=new Uint8Array(512),mc=new Uint8Array(256);(function(){let t=1;for(let r=0;r<255;r++)oa[r]=t,mc[t]=r,t<<=1,t&256&&(t^=285);for(let r=255;r<512;r++)oa[r]=oa[r-255]})();dc.log=function(t){if(t<1)throw new Error("log("+t+")");return mc[t]};dc.exp=function(t){return oa[t]};dc.mul=function(t,r){return t===0||r===0?0:oa[mc[t]+mc[r]]}});var aT=N(sa=>{var Sd=sT();sa.mul=function(t,r){let n=new Uint8Array(t.length+r.length-1);for(let i=0;i<t.length;i++)for(let o=0;o<r.length;o++)n[i+o]^=Sd.mul(t[i],r[o]);return n};sa.mod=function(t,r){let n=new Uint8Array(t);for(;n.length-r.length>=0;){let i=n[0];for(let s=0;s<r.length;s++)n[s]^=Sd.mul(r[s],i);let o=0;for(;o<n.length&&n[o]===0;)o++;n=n.slice(o)}return n};sa.generateECPolynomial=function(t){let r=new Uint8Array([1]);for(let n=0;n<t;n++)r=sa.mul(r,new Uint8Array([1,Sd.exp(n)]));return r}});var cT=N((uue,uT)=>{var lT=aT();function kd(e){this.genPoly=void 0,this.degree=e,this.degree&&this.initialize(this.degree)}kd.prototype.initialize=function(t){this.degree=t,this.genPoly=lT.generateECPolynomial(this.degree)};kd.prototype.encode=function(t){if(!this.genPoly)throw new Error("Encoder not initialized");let r=new Uint8Array(t.length+this.degree);r.set(t);let n=lT.mod(r,this.genPoly),i=this.degree-n.length;if(i>0){let o=new Uint8Array(this.degree);return o.set(n,i),o}return n};uT.exports=kd});var Ad=N(fT=>{fT.isValid=function(t){return!isNaN(t)&&t>=1&&t<=40}});var Td=N(Dr=>{var pT="[0-9]+",PU="[A-Z $%*+\\-./:]+",aa="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";aa=aa.replace(/u/g,"\\u");var DU="(?:(?![A-Z0-9 $%*+\\-./:]|"+aa+`)(?:.|[\r
35
+ ]))+`;Dr.KANJI=new RegExp(aa,"g");Dr.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g");Dr.BYTE=new RegExp(DU,"g");Dr.NUMERIC=new RegExp(pT,"g");Dr.ALPHANUMERIC=new RegExp(PU,"g");var OU=new RegExp("^"+aa+"$"),MU=new RegExp("^"+pT+"$"),NU=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");Dr.testKanji=function(t){return OU.test(t)};Dr.testNumeric=function(t){return MU.test(t)};Dr.testAlphanumeric=function(t){return NU.test(t)}});var ln=N(He=>{var FU=Ad(),Cd=Td();He.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]};He.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]};He.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]};He.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]};He.MIXED={bit:-1};He.getCharCountIndicator=function(t,r){if(!t.ccBits)throw new Error("Invalid mode: "+t);if(!FU.isValid(r))throw new Error("Invalid version: "+r);return r>=1&&r<10?t.ccBits[0]:r<27?t.ccBits[1]:t.ccBits[2]};He.getBestModeForData=function(t){return Cd.testNumeric(t)?He.NUMERIC:Cd.testAlphanumeric(t)?He.ALPHANUMERIC:Cd.testKanji(t)?He.KANJI:He.BYTE};He.toString=function(t){if(t&&t.id)return t.id;throw new Error("Invalid mode")};He.isValid=function(t){return t&&t.bit&&t.ccBits};function RU(e){if(typeof e!="string")throw new Error("Param is not a string");switch(e.toLowerCase()){case"numeric":return He.NUMERIC;case"alphanumeric":return He.ALPHANUMERIC;case"kanji":return He.KANJI;case"byte":return He.BYTE;default:throw new Error("Unknown mode: "+e)}}He.from=function(t,r){if(He.isValid(t))return t;try{return RU(t)}catch{return r}}});var yT=N(ui=>{var gc=sn(),LU=vd(),hT=cc(),un=ln(),Ed=Ad(),dT=7973,mT=gc.getBCHDigit(dT);function BU(e,t,r){for(let n=1;n<=40;n++)if(t<=ui.getCapacity(n,r,e))return n}function gT(e,t){return un.getCharCountIndicator(e,t)+4}function $U(e,t){let r=0;return e.forEach(function(n){let i=gT(n.mode,t);r+=i+n.getBitsLength()}),r}function UU(e,t){for(let r=1;r<=40;r++)if($U(e,r)<=ui.getCapacity(r,t,un.MIXED))return r}ui.from=function(t,r){return Ed.isValid(t)?parseInt(t,10):r};ui.getCapacity=function(t,r,n){if(!Ed.isValid(t))throw new Error("Invalid QR Code version");typeof n>"u"&&(n=un.BYTE);let i=gc.getSymbolTotalCodewords(t),o=LU.getTotalCodewordsCount(t,r),s=(i-o)*8;if(n===un.MIXED)return s;let a=s-gT(n,t);switch(n){case un.NUMERIC:return Math.floor(a/10*3);case un.ALPHANUMERIC:return Math.floor(a/11*2);case un.KANJI:return Math.floor(a/13);case un.BYTE:default:return Math.floor(a/8)}};ui.getBestVersionForData=function(t,r){let n,i=hT.from(r,hT.M);if(Array.isArray(t)){if(t.length>1)return UU(t,i);if(t.length===0)return 1;n=t[0]}else n=t;return BU(n.mode,n.getLength(),i)};ui.getEncodedBits=function(t){if(!Ed.isValid(t)||t<7)throw new Error("Invalid QR Code version");let r=t<<12;for(;gc.getBCHDigit(r)-mT>=0;)r^=dT<<gc.getBCHDigit(r)-mT;return t<<12|r}});var vT=N(wT=>{var _d=sn(),bT=1335,jU=21522,xT=_d.getBCHDigit(bT);wT.getEncodedBits=function(t,r){let n=t.bit<<3|r,i=n<<10;for(;_d.getBCHDigit(i)-xT>=0;)i^=bT<<_d.getBCHDigit(i)-xT;return(n<<10|i)^jU}});var kT=N((due,ST)=>{var zU=ln();function ko(e){this.mode=zU.NUMERIC,this.data=e.toString()}ko.getBitsLength=function(t){return 10*Math.floor(t/3)+(t%3?t%3*3+1:0)};ko.prototype.getLength=function(){return this.data.length};ko.prototype.getBitsLength=function(){return ko.getBitsLength(this.data.length)};ko.prototype.write=function(t){let r,n,i;for(r=0;r+3<=this.data.length;r+=3)n=this.data.substr(r,3),i=parseInt(n,10),t.put(i,10);let o=this.data.length-r;o>0&&(n=this.data.substr(r),i=parseInt(n,10),t.put(i,o*3+1))};ST.exports=ko});var TT=N((gue,AT)=>{var qU=ln(),Id=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," ","$","%","*","+","-",".","/",":"];function Ao(e){this.mode=qU.ALPHANUMERIC,this.data=e}Ao.getBitsLength=function(t){return 11*Math.floor(t/2)+6*(t%2)};Ao.prototype.getLength=function(){return this.data.length};Ao.prototype.getBitsLength=function(){return Ao.getBitsLength(this.data.length)};Ao.prototype.write=function(t){let r;for(r=0;r+2<=this.data.length;r+=2){let n=Id.indexOf(this.data[r])*45;n+=Id.indexOf(this.data[r+1]),t.put(n,11)}this.data.length%2&&t.put(Id.indexOf(this.data[r]),6)};AT.exports=Ao});var ET=N((yue,CT)=>{var HU=ln();function To(e){this.mode=HU.BYTE,typeof e=="string"?this.data=new TextEncoder().encode(e):this.data=new Uint8Array(e)}To.getBitsLength=function(t){return t*8};To.prototype.getLength=function(){return this.data.length};To.prototype.getBitsLength=function(){return To.getBitsLength(this.data.length)};To.prototype.write=function(e){for(let t=0,r=this.data.length;t<r;t++)e.put(this.data[t],8)};CT.exports=To});var IT=N((xue,_T)=>{var VU=ln(),WU=sn();function Co(e){this.mode=VU.KANJI,this.data=e}Co.getBitsLength=function(t){return t*13};Co.prototype.getLength=function(){return this.data.length};Co.prototype.getBitsLength=function(){return Co.getBitsLength(this.data.length)};Co.prototype.write=function(e){let t;for(t=0;t<this.data.length;t++){let r=WU.toSJIS(this.data[t]);if(r>=33088&&r<=40956)r-=33088;else if(r>=57408&&r<=60351)r-=49472;else throw new Error("Invalid SJIS character: "+this.data[t]+`
36
+ Make sure your charset is UTF-8`);r=(r>>>8&255)*192+(r&255),e.put(r,13)}};_T.exports=Co});var PT=N((bue,Pd)=>{"use strict";var la={single_source_shortest_paths:function(e,t,r){var n={},i={};i[t]=0;var o=la.PriorityQueue.make();o.push(t,0);for(var s,a,l,u,c,f,p,h,m;!o.empty();){s=o.pop(),a=s.value,u=s.cost,c=e[a]||{};for(l in c)c.hasOwnProperty(l)&&(f=c[l],p=u+f,h=i[l],m=typeof i[l]>"u",(m||h>p)&&(i[l]=p,o.push(l,p),n[l]=a))}if(typeof r<"u"&&typeof i[r]>"u"){var x=["Could not find a path from ",t," to ",r,"."].join("");throw new Error(x)}return n},extract_shortest_path_from_predecessor_list:function(e,t){for(var r=[],n=t,i;n;)r.push(n),i=e[n],n=e[n];return r.reverse(),r},find_path:function(e,t,r){var n=la.single_source_shortest_paths(e,t,r);return la.extract_shortest_path_from_predecessor_list(n,r)},PriorityQueue:{make:function(e){var t=la.PriorityQueue,r={},n;e=e||{};for(n in t)t.hasOwnProperty(n)&&(r[n]=t[n]);return r.queue=[],r.sorter=e.sorter||t.default_sorter,r},default_sorter:function(e,t){return e.cost-t.cost},push:function(e,t){var r={value:e,cost:t};this.queue.push(r),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return this.queue.length===0}}};typeof Pd<"u"&&(Pd.exports=la)});var BT=N(Eo=>{var ge=ln(),MT=kT(),NT=TT(),FT=ET(),RT=IT(),ua=Td(),yc=sn(),YU=PT();function DT(e){return unescape(encodeURIComponent(e)).length}function ca(e,t,r){let n=[],i;for(;(i=e.exec(r))!==null;)n.push({data:i[0],index:i.index,mode:t,length:i[0].length});return n}function LT(e){let t=ca(ua.NUMERIC,ge.NUMERIC,e),r=ca(ua.ALPHANUMERIC,ge.ALPHANUMERIC,e),n,i;return yc.isKanjiModeEnabled()?(n=ca(ua.BYTE,ge.BYTE,e),i=ca(ua.KANJI,ge.KANJI,e)):(n=ca(ua.BYTE_KANJI,ge.BYTE,e),i=[]),t.concat(r,n,i).sort(function(s,a){return s.index-a.index}).map(function(s){return{data:s.data,mode:s.mode,length:s.length}})}function Dd(e,t){switch(t){case ge.NUMERIC:return MT.getBitsLength(e);case ge.ALPHANUMERIC:return NT.getBitsLength(e);case ge.KANJI:return RT.getBitsLength(e);case ge.BYTE:return FT.getBitsLength(e)}}function GU(e){return e.reduce(function(t,r){let n=t.length-1>=0?t[t.length-1]:null;return n&&n.mode===r.mode?(t[t.length-1].data+=r.data,t):(t.push(r),t)},[])}function JU(e){let t=[];for(let r=0;r<e.length;r++){let n=e[r];switch(n.mode){case ge.NUMERIC:t.push([n,{data:n.data,mode:ge.ALPHANUMERIC,length:n.length},{data:n.data,mode:ge.BYTE,length:n.length}]);break;case ge.ALPHANUMERIC:t.push([n,{data:n.data,mode:ge.BYTE,length:n.length}]);break;case ge.KANJI:t.push([n,{data:n.data,mode:ge.BYTE,length:DT(n.data)}]);break;case ge.BYTE:t.push([{data:n.data,mode:ge.BYTE,length:DT(n.data)}])}}return t}function QU(e,t){let r={},n={start:{}},i=["start"];for(let o=0;o<e.length;o++){let s=e[o],a=[];for(let l=0;l<s.length;l++){let u=s[l],c=""+o+l;a.push(c),r[c]={node:u,lastCount:0},n[c]={};for(let f=0;f<i.length;f++){let p=i[f];r[p]&&r[p].node.mode===u.mode?(n[p][c]=Dd(r[p].lastCount+u.length,u.mode)-Dd(r[p].lastCount,u.mode),r[p].lastCount+=u.length):(r[p]&&(r[p].lastCount=u.length),n[p][c]=Dd(u.length,u.mode)+4+ge.getCharCountIndicator(u.mode,t))}}i=a}for(let o=0;o<i.length;o++)n[i[o]].end=0;return{map:n,table:r}}function OT(e,t){let r,n=ge.getBestModeForData(e);if(r=ge.from(t,n),r!==ge.BYTE&&r.bit<n.bit)throw new Error('"'+e+'" cannot be encoded with mode '+ge.toString(r)+`.
37
+ Suggested mode is: `+ge.toString(n));switch(r===ge.KANJI&&!yc.isKanjiModeEnabled()&&(r=ge.BYTE),r){case ge.NUMERIC:return new MT(e);case ge.ALPHANUMERIC:return new NT(e);case ge.KANJI:return new RT(e);case ge.BYTE:return new FT(e)}}Eo.fromArray=function(t){return t.reduce(function(r,n){return typeof n=="string"?r.push(OT(n,null)):n.data&&r.push(OT(n.data,n.mode)),r},[])};Eo.fromString=function(t,r){let n=LT(t,yc.isKanjiModeEnabled()),i=JU(n),o=QU(i,r),s=YU.find_path(o.map,"start","end"),a=[];for(let l=1;l<s.length-1;l++)a.push(o.table[s[l]].node);return Eo.fromArray(GU(a))};Eo.rawSplit=function(t){return Eo.fromArray(LT(t,yc.isKanjiModeEnabled()))}});var UT=N($T=>{var bc=sn(),Od=cc(),ZU=XA(),XU=eT(),KU=tT(),e4=iT(),Fd=oT(),Rd=vd(),t4=cT(),xc=yT(),r4=vT(),n4=ln(),Md=BT();function i4(e,t){let r=e.size,n=e4.getPositions(t);for(let i=0;i<n.length;i++){let o=n[i][0],s=n[i][1];for(let a=-1;a<=7;a++)if(!(o+a<=-1||r<=o+a))for(let l=-1;l<=7;l++)s+l<=-1||r<=s+l||(a>=0&&a<=6&&(l===0||l===6)||l>=0&&l<=6&&(a===0||a===6)||a>=2&&a<=4&&l>=2&&l<=4?e.set(o+a,s+l,!0,!0):e.set(o+a,s+l,!1,!0))}}function o4(e){let t=e.size;for(let r=8;r<t-8;r++){let n=r%2===0;e.set(r,6,n,!0),e.set(6,r,n,!0)}}function s4(e,t){let r=KU.getPositions(t);for(let n=0;n<r.length;n++){let i=r[n][0],o=r[n][1];for(let s=-2;s<=2;s++)for(let a=-2;a<=2;a++)s===-2||s===2||a===-2||a===2||s===0&&a===0?e.set(i+s,o+a,!0,!0):e.set(i+s,o+a,!1,!0)}}function a4(e,t){let r=e.size,n=xc.getEncodedBits(t),i,o,s;for(let a=0;a<18;a++)i=Math.floor(a/3),o=a%3+r-8-3,s=(n>>a&1)===1,e.set(i,o,s,!0),e.set(o,i,s,!0)}function Nd(e,t,r){let n=e.size,i=r4.getEncodedBits(t,r),o,s;for(o=0;o<15;o++)s=(i>>o&1)===1,o<6?e.set(o,8,s,!0):o<8?e.set(o+1,8,s,!0):e.set(n-15+o,8,s,!0),o<8?e.set(8,n-o-1,s,!0):o<9?e.set(8,15-o-1+1,s,!0):e.set(8,15-o-1,s,!0);e.set(n-8,8,1,!0)}function l4(e,t){let r=e.size,n=-1,i=r-1,o=7,s=0;for(let a=r-1;a>0;a-=2)for(a===6&&a--;;){for(let l=0;l<2;l++)if(!e.isReserved(i,a-l)){let u=!1;s<t.length&&(u=(t[s]>>>o&1)===1),e.set(i,a-l,u),o--,o===-1&&(s++,o=7)}if(i+=n,i<0||r<=i){i-=n,n=-n;break}}}function u4(e,t,r){let n=new ZU;r.forEach(function(l){n.put(l.mode.bit,4),n.put(l.getLength(),n4.getCharCountIndicator(l.mode,e)),l.write(n)});let i=bc.getSymbolTotalCodewords(e),o=Rd.getTotalCodewordsCount(e,t),s=(i-o)*8;for(n.getLengthInBits()+4<=s&&n.put(0,4);n.getLengthInBits()%8!==0;)n.putBit(0);let a=(s-n.getLengthInBits())/8;for(let l=0;l<a;l++)n.put(l%2?17:236,8);return c4(n,e,t)}function c4(e,t,r){let n=bc.getSymbolTotalCodewords(t),i=Rd.getTotalCodewordsCount(t,r),o=n-i,s=Rd.getBlocksCount(t,r),a=n%s,l=s-a,u=Math.floor(n/s),c=Math.floor(o/s),f=c+1,p=u-c,h=new t4(p),m=0,x=new Array(s),v=new Array(s),w=0,E=new Uint8Array(e.buffer);for(let R=0;R<s;R++){let V=R<l?c:f;x[R]=E.slice(m,m+V),v[R]=h.encode(x[R]),m+=V,w=Math.max(w,V)}let b=new Uint8Array(n),z=0,q,A;for(q=0;q<w;q++)for(A=0;A<s;A++)q<x[A].length&&(b[z++]=x[A][q]);for(q=0;q<p;q++)for(A=0;A<s;A++)b[z++]=v[A][q];return b}function f4(e,t,r,n){let i;if(Array.isArray(e))i=Md.fromArray(e);else if(typeof e=="string"){let u=t;if(!u){let c=Md.rawSplit(e);u=xc.getBestVersionForData(c,r)}i=Md.fromString(e,u||40)}else throw new Error("Invalid data");let o=xc.getBestVersionForData(i,r);if(!o)throw new Error("The amount of data is too big to be stored in a QR Code");if(!t)t=o;else if(t<o)throw new Error(`
38
38
  The chosen QR Code version cannot contain this amount of data.
39
39
  Minimum version required to store current data is: `+o+`.
40
- `);let s=a4(t,r,i),a=bc.getSymbolSize(t),l=new QU(a);return r4(l,t),n4(l),i4(l,t),Nd(l,r,0),t>=7&&o4(l,t),s4(l,s),isNaN(n)&&(n=Fd.getBestMask(l,Nd.bind(null,l,r))),Fd.applyMask(n,l),Nd(l,r,n),{modules:l,version:t,errorCorrectionLevel:r,maskPattern:n,segments:i}}$T.create=function(t,r){if(typeof t>"u"||t==="")throw new Error("No input text");let n=Md.M,i,o;return typeof r<"u"&&(n=Md.from(r.errorCorrectionLevel,Md.M),i=xc.from(r.version),o=Fd.from(r.maskPattern),r.toSJISFunc&&bc.setToSJISFunction(r.toSJISFunc)),u4(t,i,n,o)}});var Ld=N(ci=>{function jT(e){if(typeof e=="number"&&(e=e.toString()),typeof e!="string")throw new Error("Color should be defined as hex string");let t=e.slice().replace("#","").split("");if(t.length<3||t.length===5||t.length>8)throw new Error("Invalid hex color: "+e);(t.length===3||t.length===4)&&(t=Array.prototype.concat.apply([],t.map(function(n){return[n,n]}))),t.length===6&&t.push("F","F");let r=parseInt(t.join(""),16);return{r:r>>24&255,g:r>>16&255,b:r>>8&255,a:r&255,hex:"#"+t.slice(0,6).join("")}}ci.getOptions=function(t){t||(t={}),t.color||(t.color={});let r=typeof t.margin>"u"||t.margin===null||t.margin<0?4:t.margin,n=t.width&&t.width>=21?t.width:void 0,i=t.scale||4;return{width:n,scale:n?4:i,margin:r,color:{dark:jT(t.color.dark||"#000000ff"),light:jT(t.color.light||"#ffffffff")},type:t.type,rendererOpts:t.rendererOpts||{}}};ci.getScale=function(t,r){return r.width&&r.width>=t+r.margin*2?r.width/(t+r.margin*2):r.scale};ci.getImageWidth=function(t,r){let n=ci.getScale(t,r);return Math.floor((t+r.margin*2)*n)};ci.qrToImageData=function(t,r,n){let i=r.modules.size,o=r.modules.data,s=ci.getScale(i,n),a=Math.floor((i+n.margin*2)*s),l=n.margin*s,u=[n.color.light,n.color.dark];for(let c=0;c<a;c++)for(let f=0;f<a;f++){let p=(c*a+f)*4,h=n.color.light;if(c>=l&&f>=l&&c<a-l&&f<a-l){let m=Math.floor((c-l)/s),x=Math.floor((f-l)/s);h=u[o[m*i+x]?1:0]}t[p++]=h.r,t[p++]=h.g,t[p++]=h.b,t[p]=h.a}}});var zT=N(wc=>{var Bd=Ld();function c4(e,t,r){e.clearRect(0,0,t.width,t.height),t.style||(t.style={}),t.height=r,t.width=r,t.style.height=r+"px",t.style.width=r+"px"}function f4(){try{return document.createElement("canvas")}catch{throw new Error("You need to specify a canvas element")}}wc.render=function(t,r,n){let i=n,o=r;typeof i>"u"&&(!r||!r.getContext)&&(i=r,r=void 0),r||(o=f4()),i=Bd.getOptions(i);let s=Bd.getImageWidth(t.modules.size,i),a=o.getContext("2d"),l=a.createImageData(s,s);return Bd.qrToImageData(l.data,t,i),c4(a,o,s),a.putImageData(l,0,0),o};wc.renderToDataURL=function(t,r,n){let i=n;typeof i>"u"&&(!r||!r.getContext)&&(i=r,r=void 0),i||(i={});let o=wc.render(t,r,i),s=i.type||"image/png",a=i.rendererOpts||{};return o.toDataURL(s,a.quality)}});var VT=N(HT=>{var p4=Ld();function qT(e,t){let r=e.a/255,n=t+'="'+e.hex+'"';return r<1?n+" "+t+'-opacity="'+r.toFixed(2).slice(1)+'"':n}function $d(e,t,r){let n=e+t;return typeof r<"u"&&(n+=" "+r),n}function h4(e,t,r){let n="",i=0,o=!1,s=0;for(let a=0;a<e.length;a++){let l=Math.floor(a%t),u=Math.floor(a/t);!l&&!o&&(o=!0),e[a]?(s++,a>0&&l>0&&e[a-1]||(n+=o?$d("M",l+r,.5+u+r):$d("m",i,0),i=0,o=!1),l+1<t&&e[a+1]||(n+=$d("h",s),s=0)):i++}return n}HT.render=function(t,r,n){let i=p4.getOptions(r),o=t.modules.size,s=t.modules.data,a=o+i.margin*2,l=i.color.light.a?"<path "+qT(i.color.light,"fill")+' d="M0 0h'+a+"v"+a+'H0z"/>':"",u="<path "+qT(i.color.dark,"stroke")+' d="'+h4(s,o,i.margin)+'"/>',c='viewBox="0 0 '+a+" "+a+'"',p='<svg xmlns="http://www.w3.org/2000/svg" '+(i.width?'width="'+i.width+'" height="'+i.width+'" ':"")+c+' shape-rendering="crispEdges">'+l+u+`</svg>
41
- `;return typeof n=="function"&&n(null,p),p}});var YT=N(fa=>{var m4=JA(),Ud=UT(),WT=zT(),d4=VT();function jd(e,t,r,n,i){let o=[].slice.call(arguments,1),s=o.length,a=typeof o[s-1]=="function";if(!a&&!m4())throw new Error("Callback required as last argument");if(a){if(s<2)throw new Error("Too few arguments provided");s===2?(i=r,r=t,t=n=void 0):s===3&&(t.getContext&&typeof i>"u"?(i=n,n=void 0):(i=n,n=r,r=t,t=void 0))}else{if(s<1)throw new Error("Too few arguments provided");return s===1?(r=t,t=n=void 0):s===2&&!t.getContext&&(n=r,r=t,t=void 0),new Promise(function(l,u){try{let c=Ud.create(r,n);l(e(c,t,n))}catch(c){u(c)}})}try{let l=Ud.create(r,n);i(null,e(l,t,n))}catch(l){i(l)}}fa.create=Ud.create;fa.toCanvas=jd.bind(null,WT.render);fa.toDataURL=jd.bind(null,WT.renderToDataURL);fa.toString=jd.bind(null,function(e,t,r){return d4.render(e,r)})});var da=globalThis,ga=da.ShadowRoot&&(da.ShadyCSS===void 0||da.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Sc=Symbol(),Vd=new WeakMap,Po=class{constructor(t,r,n){if(this._$cssResult$=!0,n!==Sc)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=r}get styleSheet(){let t=this.o,r=this.t;if(ga&&t===void 0){let n=r!==void 0&&r.length===1;n&&(t=Vd.get(r)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),n&&Vd.set(r,t))}return t}toString(){return this.cssText}},se=e=>new Po(typeof e=="string"?e:e+"",void 0,Sc),we=(e,...t)=>{let r=e.length===1?e[0]:t.reduce((n,i,o)=>n+(s=>{if(s._$cssResult$===!0)return s.cssText;if(typeof s=="number")return s;throw Error("Value passed to 'css' function must be a 'css' function result: "+s+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(i)+e[o+1],e[0]);return new Po(r,e,Sc)},kc=(e,t)=>{if(ga)e.adoptedStyleSheets=t.map(r=>r instanceof CSSStyleSheet?r:r.styleSheet);else for(let r of t){let n=document.createElement("style"),i=da.litNonce;i!==void 0&&n.setAttribute("nonce",i),n.textContent=r.cssText,e.appendChild(n)}},ya=ga?e=>e:e=>e instanceof CSSStyleSheet?(t=>{let r="";for(let n of t.cssRules)r+=n.cssText;return se(r)})(e):e;var{is:uC,defineProperty:cC,getOwnPropertyDescriptor:fC,getOwnPropertyNames:pC,getOwnPropertySymbols:hC,getPrototypeOf:mC}=Object,xa=globalThis,Wd=xa.trustedTypes,dC=Wd?Wd.emptyScript:"",gC=xa.reactiveElementPolyfillSupport,No=(e,t)=>e,Fo={toAttribute(e,t){switch(t){case Boolean:e=e?dC:null;break;case Object:case Array:e=e==null?e:JSON.stringify(e)}return e},fromAttribute(e,t){let r=e;switch(t){case Boolean:r=e!==null;break;case Number:r=e===null?null:Number(e);break;case Object:case Array:try{r=JSON.parse(e)}catch{r=null}}return r}},ba=(e,t)=>!uC(e,t),Yd={attribute:!0,type:String,converter:Fo,reflect:!1,hasChanged:ba};Symbol.metadata??=Symbol("metadata"),xa.litPropertyMetadata??=new WeakMap;var pr=class extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,r=Yd){if(r.state&&(r.attribute=!1),this._$Ei(),this.elementProperties.set(t,r),!r.noAccessor){let n=Symbol(),i=this.getPropertyDescriptor(t,n,r);i!==void 0&&cC(this.prototype,t,i)}}static getPropertyDescriptor(t,r,n){let{get:i,set:o}=fC(this.prototype,t)??{get(){return this[r]},set(s){this[r]=s}};return{get(){return i?.call(this)},set(s){let a=i?.call(this);o.call(this,s),this.requestUpdate(t,a,n)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??Yd}static _$Ei(){if(this.hasOwnProperty(No("elementProperties")))return;let t=mC(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(No("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(No("properties"))){let r=this.properties,n=[...pC(r),...hC(r)];for(let i of n)this.createProperty(i,r[i])}let t=this[Symbol.metadata];if(t!==null){let r=litPropertyMetadata.get(t);if(r!==void 0)for(let[n,i]of r)this.elementProperties.set(n,i)}this._$Eh=new Map;for(let[r,n]of this.elementProperties){let i=this._$Eu(r,n);i!==void 0&&this._$Eh.set(i,r)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){let r=[];if(Array.isArray(t)){let n=new Set(t.flat(1/0).reverse());for(let i of n)r.unshift(ya(i))}else t!==void 0&&r.push(ya(t));return r}static _$Eu(t,r){let n=r.attribute;return n===!1?void 0:typeof n=="string"?n:typeof t=="string"?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise(t=>this.enableUpdating=t),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach(t=>t(this))}addController(t){(this._$EO??=new Set).add(t),this.renderRoot!==void 0&&this.isConnected&&t.hostConnected?.()}removeController(t){this._$EO?.delete(t)}_$E_(){let t=new Map,r=this.constructor.elementProperties;for(let n of r.keys())this.hasOwnProperty(n)&&(t.set(n,this[n]),delete this[n]);t.size>0&&(this._$Ep=t)}createRenderRoot(){let t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return kc(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach(t=>t.hostConnected?.())}enableUpdating(t){}disconnectedCallback(){this._$EO?.forEach(t=>t.hostDisconnected?.())}attributeChangedCallback(t,r,n){this._$AK(t,n)}_$EC(t,r){let n=this.constructor.elementProperties.get(t),i=this.constructor._$Eu(t,n);if(i!==void 0&&n.reflect===!0){let o=(n.converter?.toAttribute!==void 0?n.converter:Fo).toAttribute(r,n.type);this._$Em=t,o==null?this.removeAttribute(i):this.setAttribute(i,o),this._$Em=null}}_$AK(t,r){let n=this.constructor,i=n._$Eh.get(t);if(i!==void 0&&this._$Em!==i){let o=n.getPropertyOptions(i),s=typeof o.converter=="function"?{fromAttribute:o.converter}:o.converter?.fromAttribute!==void 0?o.converter:Fo;this._$Em=i,this[i]=s.fromAttribute(r,o.type),this._$Em=null}}requestUpdate(t,r,n){if(t!==void 0){if(n??=this.constructor.getPropertyOptions(t),!(n.hasChanged??ba)(this[t],r))return;this.P(t,r,n)}this.isUpdatePending===!1&&(this._$ES=this._$ET())}P(t,r,n){this._$AL.has(t)||this._$AL.set(t,r),n.reflect===!0&&this._$Em!==t&&(this._$Ej??=new Set).add(t)}async _$ET(){this.isUpdatePending=!0;try{await this._$ES}catch(r){Promise.reject(r)}let t=this.scheduleUpdate();return t!=null&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(let[i,o]of this._$Ep)this[i]=o;this._$Ep=void 0}let n=this.constructor.elementProperties;if(n.size>0)for(let[i,o]of n)o.wrapped!==!0||this._$AL.has(i)||this[i]===void 0||this.P(i,this[i],o)}let t=!1,r=this._$AL;try{t=this.shouldUpdate(r),t?(this.willUpdate(r),this._$EO?.forEach(n=>n.hostUpdate?.()),this.update(r)):this._$EU()}catch(n){throw t=!1,this._$EU(),n}t&&this._$AE(r)}willUpdate(t){}_$AE(t){this._$EO?.forEach(r=>r.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Ej&&=this._$Ej.forEach(r=>this._$EC(r,this[r])),this._$EU()}updated(t){}firstUpdated(t){}};pr.elementStyles=[],pr.shadowRootOptions={mode:"open"},pr[No("elementProperties")]=new Map,pr[No("finalized")]=new Map,gC?.({ReactiveElement:pr}),(xa.reactiveElementVersions??=[]).push("2.0.4");var Tc=globalThis,wa=Tc.trustedTypes,Gd=wa?wa.createPolicy("lit-html",{createHTML:e=>e}):void 0,Cc="$lit$",hr=`lit$${Math.random().toFixed(9).slice(2)}$`,Ec="?"+hr,yC=`<${Ec}>`,mn=document,Lo=()=>mn.createComment(""),Bo=e=>e===null||typeof e!="object"&&typeof e!="function",_c=Array.isArray,eg=e=>_c(e)||typeof e?.[Symbol.iterator]=="function",Ac=`[
40
+ `);let s=u4(t,r,i),a=bc.getSymbolSize(t),l=new XU(a);return i4(l,t),o4(l),s4(l,t),Nd(l,r,0),t>=7&&a4(l,t),l4(l,s),isNaN(n)&&(n=Fd.getBestMask(l,Nd.bind(null,l,r))),Fd.applyMask(n,l),Nd(l,r,n),{modules:l,version:t,errorCorrectionLevel:r,maskPattern:n,segments:i}}$T.create=function(t,r){if(typeof t>"u"||t==="")throw new Error("No input text");let n=Od.M,i,o;return typeof r<"u"&&(n=Od.from(r.errorCorrectionLevel,Od.M),i=xc.from(r.version),o=Fd.from(r.maskPattern),r.toSJISFunc&&bc.setToSJISFunction(r.toSJISFunc)),f4(t,i,n,o)}});var Ld=N(ci=>{function jT(e){if(typeof e=="number"&&(e=e.toString()),typeof e!="string")throw new Error("Color should be defined as hex string");let t=e.slice().replace("#","").split("");if(t.length<3||t.length===5||t.length>8)throw new Error("Invalid hex color: "+e);(t.length===3||t.length===4)&&(t=Array.prototype.concat.apply([],t.map(function(n){return[n,n]}))),t.length===6&&t.push("F","F");let r=parseInt(t.join(""),16);return{r:r>>24&255,g:r>>16&255,b:r>>8&255,a:r&255,hex:"#"+t.slice(0,6).join("")}}ci.getOptions=function(t){t||(t={}),t.color||(t.color={});let r=typeof t.margin>"u"||t.margin===null||t.margin<0?4:t.margin,n=t.width&&t.width>=21?t.width:void 0,i=t.scale||4;return{width:n,scale:n?4:i,margin:r,color:{dark:jT(t.color.dark||"#000000ff"),light:jT(t.color.light||"#ffffffff")},type:t.type,rendererOpts:t.rendererOpts||{}}};ci.getScale=function(t,r){return r.width&&r.width>=t+r.margin*2?r.width/(t+r.margin*2):r.scale};ci.getImageWidth=function(t,r){let n=ci.getScale(t,r);return Math.floor((t+r.margin*2)*n)};ci.qrToImageData=function(t,r,n){let i=r.modules.size,o=r.modules.data,s=ci.getScale(i,n),a=Math.floor((i+n.margin*2)*s),l=n.margin*s,u=[n.color.light,n.color.dark];for(let c=0;c<a;c++)for(let f=0;f<a;f++){let p=(c*a+f)*4,h=n.color.light;if(c>=l&&f>=l&&c<a-l&&f<a-l){let m=Math.floor((c-l)/s),x=Math.floor((f-l)/s);h=u[o[m*i+x]?1:0]}t[p++]=h.r,t[p++]=h.g,t[p++]=h.b,t[p]=h.a}}});var zT=N(wc=>{var Bd=Ld();function p4(e,t,r){e.clearRect(0,0,t.width,t.height),t.style||(t.style={}),t.height=r,t.width=r,t.style.height=r+"px",t.style.width=r+"px"}function h4(){try{return document.createElement("canvas")}catch{throw new Error("You need to specify a canvas element")}}wc.render=function(t,r,n){let i=n,o=r;typeof i>"u"&&(!r||!r.getContext)&&(i=r,r=void 0),r||(o=h4()),i=Bd.getOptions(i);let s=Bd.getImageWidth(t.modules.size,i),a=o.getContext("2d"),l=a.createImageData(s,s);return Bd.qrToImageData(l.data,t,i),p4(a,o,s),a.putImageData(l,0,0),o};wc.renderToDataURL=function(t,r,n){let i=n;typeof i>"u"&&(!r||!r.getContext)&&(i=r,r=void 0),i||(i={});let o=wc.render(t,r,i),s=i.type||"image/png",a=i.rendererOpts||{};return o.toDataURL(s,a.quality)}});var VT=N(HT=>{var m4=Ld();function qT(e,t){let r=e.a/255,n=t+'="'+e.hex+'"';return r<1?n+" "+t+'-opacity="'+r.toFixed(2).slice(1)+'"':n}function $d(e,t,r){let n=e+t;return typeof r<"u"&&(n+=" "+r),n}function d4(e,t,r){let n="",i=0,o=!1,s=0;for(let a=0;a<e.length;a++){let l=Math.floor(a%t),u=Math.floor(a/t);!l&&!o&&(o=!0),e[a]?(s++,a>0&&l>0&&e[a-1]||(n+=o?$d("M",l+r,.5+u+r):$d("m",i,0),i=0,o=!1),l+1<t&&e[a+1]||(n+=$d("h",s),s=0)):i++}return n}HT.render=function(t,r,n){let i=m4.getOptions(r),o=t.modules.size,s=t.modules.data,a=o+i.margin*2,l=i.color.light.a?"<path "+qT(i.color.light,"fill")+' d="M0 0h'+a+"v"+a+'H0z"/>':"",u="<path "+qT(i.color.dark,"stroke")+' d="'+d4(s,o,i.margin)+'"/>',c='viewBox="0 0 '+a+" "+a+'"',p='<svg xmlns="http://www.w3.org/2000/svg" '+(i.width?'width="'+i.width+'" height="'+i.width+'" ':"")+c+' shape-rendering="crispEdges">'+l+u+`</svg>
41
+ `;return typeof n=="function"&&n(null,p),p}});var YT=N(fa=>{var g4=JA(),Ud=UT(),WT=zT(),y4=VT();function jd(e,t,r,n,i){let o=[].slice.call(arguments,1),s=o.length,a=typeof o[s-1]=="function";if(!a&&!g4())throw new Error("Callback required as last argument");if(a){if(s<2)throw new Error("Too few arguments provided");s===2?(i=r,r=t,t=n=void 0):s===3&&(t.getContext&&typeof i>"u"?(i=n,n=void 0):(i=n,n=r,r=t,t=void 0))}else{if(s<1)throw new Error("Too few arguments provided");return s===1?(r=t,t=n=void 0):s===2&&!t.getContext&&(n=r,r=t,t=void 0),new Promise(function(l,u){try{let c=Ud.create(r,n);l(e(c,t,n))}catch(c){u(c)}})}try{let l=Ud.create(r,n);i(null,e(l,t,n))}catch(l){i(l)}}fa.create=Ud.create;fa.toCanvas=jd.bind(null,WT.render);fa.toDataURL=jd.bind(null,WT.renderToDataURL);fa.toString=jd.bind(null,function(e,t,r){return y4.render(e,r)})});var da=globalThis,ga=da.ShadowRoot&&(da.ShadyCSS===void 0||da.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Sc=Symbol(),Vd=new WeakMap,Mo=class{constructor(t,r,n){if(this._$cssResult$=!0,n!==Sc)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=r}get styleSheet(){let t=this.o,r=this.t;if(ga&&t===void 0){let n=r!==void 0&&r.length===1;n&&(t=Vd.get(r)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),n&&Vd.set(r,t))}return t}toString(){return this.cssText}},se=e=>new Mo(typeof e=="string"?e:e+"",void 0,Sc),we=(e,...t)=>{let r=e.length===1?e[0]:t.reduce((n,i,o)=>n+(s=>{if(s._$cssResult$===!0)return s.cssText;if(typeof s=="number")return s;throw Error("Value passed to 'css' function must be a 'css' function result: "+s+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(i)+e[o+1],e[0]);return new Mo(r,e,Sc)},kc=(e,t)=>{if(ga)e.adoptedStyleSheets=t.map(r=>r instanceof CSSStyleSheet?r:r.styleSheet);else for(let r of t){let n=document.createElement("style"),i=da.litNonce;i!==void 0&&n.setAttribute("nonce",i),n.textContent=r.cssText,e.appendChild(n)}},ya=ga?e=>e:e=>e instanceof CSSStyleSheet?(t=>{let r="";for(let n of t.cssRules)r+=n.cssText;return se(r)})(e):e;var{is:fC,defineProperty:pC,getOwnPropertyDescriptor:hC,getOwnPropertyNames:mC,getOwnPropertySymbols:dC,getPrototypeOf:gC}=Object,xa=globalThis,Wd=xa.trustedTypes,yC=Wd?Wd.emptyScript:"",xC=xa.reactiveElementPolyfillSupport,No=(e,t)=>e,Fo={toAttribute(e,t){switch(t){case Boolean:e=e?yC:null;break;case Object:case Array:e=e==null?e:JSON.stringify(e)}return e},fromAttribute(e,t){let r=e;switch(t){case Boolean:r=e!==null;break;case Number:r=e===null?null:Number(e);break;case Object:case Array:try{r=JSON.parse(e)}catch{r=null}}return r}},ba=(e,t)=>!fC(e,t),Yd={attribute:!0,type:String,converter:Fo,reflect:!1,hasChanged:ba};Symbol.metadata??=Symbol("metadata"),xa.litPropertyMetadata??=new WeakMap;var pr=class extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,r=Yd){if(r.state&&(r.attribute=!1),this._$Ei(),this.elementProperties.set(t,r),!r.noAccessor){let n=Symbol(),i=this.getPropertyDescriptor(t,n,r);i!==void 0&&pC(this.prototype,t,i)}}static getPropertyDescriptor(t,r,n){let{get:i,set:o}=hC(this.prototype,t)??{get(){return this[r]},set(s){this[r]=s}};return{get(){return i?.call(this)},set(s){let a=i?.call(this);o.call(this,s),this.requestUpdate(t,a,n)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??Yd}static _$Ei(){if(this.hasOwnProperty(No("elementProperties")))return;let t=gC(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(No("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(No("properties"))){let r=this.properties,n=[...mC(r),...dC(r)];for(let i of n)this.createProperty(i,r[i])}let t=this[Symbol.metadata];if(t!==null){let r=litPropertyMetadata.get(t);if(r!==void 0)for(let[n,i]of r)this.elementProperties.set(n,i)}this._$Eh=new Map;for(let[r,n]of this.elementProperties){let i=this._$Eu(r,n);i!==void 0&&this._$Eh.set(i,r)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){let r=[];if(Array.isArray(t)){let n=new Set(t.flat(1/0).reverse());for(let i of n)r.unshift(ya(i))}else t!==void 0&&r.push(ya(t));return r}static _$Eu(t,r){let n=r.attribute;return n===!1?void 0:typeof n=="string"?n:typeof t=="string"?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise(t=>this.enableUpdating=t),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach(t=>t(this))}addController(t){(this._$EO??=new Set).add(t),this.renderRoot!==void 0&&this.isConnected&&t.hostConnected?.()}removeController(t){this._$EO?.delete(t)}_$E_(){let t=new Map,r=this.constructor.elementProperties;for(let n of r.keys())this.hasOwnProperty(n)&&(t.set(n,this[n]),delete this[n]);t.size>0&&(this._$Ep=t)}createRenderRoot(){let t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return kc(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach(t=>t.hostConnected?.())}enableUpdating(t){}disconnectedCallback(){this._$EO?.forEach(t=>t.hostDisconnected?.())}attributeChangedCallback(t,r,n){this._$AK(t,n)}_$EC(t,r){let n=this.constructor.elementProperties.get(t),i=this.constructor._$Eu(t,n);if(i!==void 0&&n.reflect===!0){let o=(n.converter?.toAttribute!==void 0?n.converter:Fo).toAttribute(r,n.type);this._$Em=t,o==null?this.removeAttribute(i):this.setAttribute(i,o),this._$Em=null}}_$AK(t,r){let n=this.constructor,i=n._$Eh.get(t);if(i!==void 0&&this._$Em!==i){let o=n.getPropertyOptions(i),s=typeof o.converter=="function"?{fromAttribute:o.converter}:o.converter?.fromAttribute!==void 0?o.converter:Fo;this._$Em=i,this[i]=s.fromAttribute(r,o.type),this._$Em=null}}requestUpdate(t,r,n){if(t!==void 0){if(n??=this.constructor.getPropertyOptions(t),!(n.hasChanged??ba)(this[t],r))return;this.P(t,r,n)}this.isUpdatePending===!1&&(this._$ES=this._$ET())}P(t,r,n){this._$AL.has(t)||this._$AL.set(t,r),n.reflect===!0&&this._$Em!==t&&(this._$Ej??=new Set).add(t)}async _$ET(){this.isUpdatePending=!0;try{await this._$ES}catch(r){Promise.reject(r)}let t=this.scheduleUpdate();return t!=null&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(let[i,o]of this._$Ep)this[i]=o;this._$Ep=void 0}let n=this.constructor.elementProperties;if(n.size>0)for(let[i,o]of n)o.wrapped!==!0||this._$AL.has(i)||this[i]===void 0||this.P(i,this[i],o)}let t=!1,r=this._$AL;try{t=this.shouldUpdate(r),t?(this.willUpdate(r),this._$EO?.forEach(n=>n.hostUpdate?.()),this.update(r)):this._$EU()}catch(n){throw t=!1,this._$EU(),n}t&&this._$AE(r)}willUpdate(t){}_$AE(t){this._$EO?.forEach(r=>r.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Ej&&=this._$Ej.forEach(r=>this._$EC(r,this[r])),this._$EU()}updated(t){}firstUpdated(t){}};pr.elementStyles=[],pr.shadowRootOptions={mode:"open"},pr[No("elementProperties")]=new Map,pr[No("finalized")]=new Map,xC?.({ReactiveElement:pr}),(xa.reactiveElementVersions??=[]).push("2.0.4");var Tc=globalThis,wa=Tc.trustedTypes,Gd=wa?wa.createPolicy("lit-html",{createHTML:e=>e}):void 0,Cc="$lit$",hr=`lit$${Math.random().toFixed(9).slice(2)}$`,Ec="?"+hr,bC=`<${Ec}>`,mn=document,Lo=()=>mn.createComment(""),Bo=e=>e===null||typeof e!="object"&&typeof e!="function",_c=Array.isArray,eg=e=>_c(e)||typeof e?.[Symbol.iterator]=="function",Ac=`[
42
42
  \f\r]`,Ro=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Jd=/-->/g,Qd=/>/g,pn=RegExp(`>|${Ac}(?:([^\\s"'>=/]+)(${Ac}*=${Ac}*(?:[^
43
- \f\r"'\`<>=]|("|')|))|$)`,"g"),Zd=/'/g,Xd=/"/g,tg=/^(?:script|style|textarea|title)$/i,Ic=e=>(t,...r)=>({_$litType$:e,strings:t,values:r}),Q=Ic(1),S4=Ic(2),k4=Ic(3),Ue=Symbol.for("lit-noChange"),Fe=Symbol.for("lit-nothing"),Kd=new WeakMap,hn=mn.createTreeWalker(mn,129);function rg(e,t){if(!_c(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return Gd!==void 0?Gd.createHTML(t):t}var ng=(e,t)=>{let r=e.length-1,n=[],i,o=t===2?"<svg>":t===3?"<math>":"",s=Ro;for(let a=0;a<r;a++){let l=e[a],u,c,f=-1,p=0;for(;p<l.length&&(s.lastIndex=p,c=s.exec(l),c!==null);)p=s.lastIndex,s===Ro?c[1]==="!--"?s=Jd:c[1]!==void 0?s=Qd:c[2]!==void 0?(tg.test(c[2])&&(i=RegExp("</"+c[2],"g")),s=pn):c[3]!==void 0&&(s=pn):s===pn?c[0]===">"?(s=i??Ro,f=-1):c[1]===void 0?f=-2:(f=s.lastIndex-c[2].length,u=c[1],s=c[3]===void 0?pn:c[3]==='"'?Xd:Zd):s===Xd||s===Zd?s=pn:s===Jd||s===Qd?s=Ro:(s=pn,i=void 0);let h=s===pn&&e[a+1].startsWith("/>")?" ":"";o+=s===Ro?l+yC:f>=0?(n.push(u),l.slice(0,f)+Cc+l.slice(f)+hr+h):l+hr+(f===-2?a:h)}return[rg(e,o+(e[r]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),n]},$o=class e{constructor({strings:t,_$litType$:r},n){let i;this.parts=[];let o=0,s=0,a=t.length-1,l=this.parts,[u,c]=ng(t,r);if(this.el=e.createElement(u,n),hn.currentNode=this.el.content,r===2||r===3){let f=this.el.content.firstChild;f.replaceWith(...f.childNodes)}for(;(i=hn.nextNode())!==null&&l.length<a;){if(i.nodeType===1){if(i.hasAttributes())for(let f of i.getAttributeNames())if(f.endsWith(Cc)){let p=c[s++],h=i.getAttribute(f).split(hr),m=/([.?@])?(.*)/.exec(p);l.push({type:1,index:o,name:m[2],strings:h,ctor:m[1]==="."?Sa:m[1]==="?"?ka:m[1]==="@"?Aa:gn}),i.removeAttribute(f)}else f.startsWith(hr)&&(l.push({type:6,index:o}),i.removeAttribute(f));if(tg.test(i.tagName)){let f=i.textContent.split(hr),p=f.length-1;if(p>0){i.textContent=wa?wa.emptyScript:"";for(let h=0;h<p;h++)i.append(f[h],Lo()),hn.nextNode(),l.push({type:2,index:++o});i.append(f[p],Lo())}}}else if(i.nodeType===8)if(i.data===Ec)l.push({type:2,index:o});else{let f=-1;for(;(f=i.data.indexOf(hr,f+1))!==-1;)l.push({type:7,index:o}),f+=hr.length-1}o++}}static createElement(t,r){let n=mn.createElement("template");return n.innerHTML=t,n}};function dn(e,t,r=e,n){if(t===Ue)return t;let i=n!==void 0?r._$Co?.[n]:r._$Cl,o=Bo(t)?void 0:t._$litDirective$;return i?.constructor!==o&&(i?._$AO?.(!1),o===void 0?i=void 0:(i=new o(e),i._$AT(e,r,n)),n!==void 0?(r._$Co??=[])[n]=i:r._$Cl=i),i!==void 0&&(t=dn(e,i._$AS(e,t.values),i,n)),t}var va=class{constructor(t,r){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=r}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){let{el:{content:r},parts:n}=this._$AD,i=(t?.creationScope??mn).importNode(r,!0);hn.currentNode=i;let o=hn.nextNode(),s=0,a=0,l=n[0];for(;l!==void 0;){if(s===l.index){let u;l.type===2?u=new pi(o,o.nextSibling,this,t):l.type===1?u=new l.ctor(o,l.name,l.strings,this,t):l.type===6&&(u=new Ta(o,this,t)),this._$AV.push(u),l=n[++a]}s!==l?.index&&(o=hn.nextNode(),s++)}return hn.currentNode=mn,i}p(t){let r=0;for(let n of this._$AV)n!==void 0&&(n.strings!==void 0?(n._$AI(t,n,r),r+=n.strings.length-2):n._$AI(t[r])),r++}},pi=class e{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,r,n,i){this.type=2,this._$AH=Fe,this._$AN=void 0,this._$AA=t,this._$AB=r,this._$AM=n,this.options=i,this._$Cv=i?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode,r=this._$AM;return r!==void 0&&t?.nodeType===11&&(t=r.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,r=this){t=dn(this,t,r),Bo(t)?t===Fe||t==null||t===""?(this._$AH!==Fe&&this._$AR(),this._$AH=Fe):t!==this._$AH&&t!==Ue&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):eg(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==Fe&&Bo(this._$AH)?this._$AA.nextSibling.data=t:this.T(mn.createTextNode(t)),this._$AH=t}$(t){let{values:r,_$litType$:n}=t,i=typeof n=="number"?this._$AC(t):(n.el===void 0&&(n.el=$o.createElement(rg(n.h,n.h[0]),this.options)),n);if(this._$AH?._$AD===i)this._$AH.p(r);else{let o=new va(i,this),s=o.u(this.options);o.p(r),this.T(s),this._$AH=o}}_$AC(t){let r=Kd.get(t.strings);return r===void 0&&Kd.set(t.strings,r=new $o(t)),r}k(t){_c(this._$AH)||(this._$AH=[],this._$AR());let r=this._$AH,n,i=0;for(let o of t)i===r.length?r.push(n=new e(this.O(Lo()),this.O(Lo()),this,this.options)):n=r[i],n._$AI(o),i++;i<r.length&&(this._$AR(n&&n._$AB.nextSibling,i),r.length=i)}_$AR(t=this._$AA.nextSibling,r){for(this._$AP?.(!1,!0,r);t&&t!==this._$AB;){let n=t.nextSibling;t.remove(),t=n}}setConnected(t){this._$AM===void 0&&(this._$Cv=t,this._$AP?.(t))}},gn=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,r,n,i,o){this.type=1,this._$AH=Fe,this._$AN=void 0,this.element=t,this.name=r,this._$AM=i,this.options=o,n.length>2||n[0]!==""||n[1]!==""?(this._$AH=Array(n.length-1).fill(new String),this.strings=n):this._$AH=Fe}_$AI(t,r=this,n,i){let o=this.strings,s=!1;if(o===void 0)t=dn(this,t,r,0),s=!Bo(t)||t!==this._$AH&&t!==Ue,s&&(this._$AH=t);else{let a=t,l,u;for(t=o[0],l=0;l<o.length-1;l++)u=dn(this,a[n+l],r,l),u===Ue&&(u=this._$AH[l]),s||=!Bo(u)||u!==this._$AH[l],u===Fe?t=Fe:t!==Fe&&(t+=(u??"")+o[l+1]),this._$AH[l]=u}s&&!i&&this.j(t)}j(t){t===Fe?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},Sa=class extends gn{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===Fe?void 0:t}},ka=class extends gn{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==Fe)}},Aa=class extends gn{constructor(t,r,n,i,o){super(t,r,n,i,o),this.type=5}_$AI(t,r=this){if((t=dn(this,t,r,0)??Fe)===Ue)return;let n=this._$AH,i=t===Fe&&n!==Fe||t.capture!==n.capture||t.once!==n.once||t.passive!==n.passive,o=t!==Fe&&(n===Fe||i);i&&this.element.removeEventListener(this.name,this,n),o&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}},Ta=class{constructor(t,r,n){this.element=t,this.type=6,this._$AN=void 0,this._$AM=r,this.options=n}get _$AU(){return this._$AM._$AU}_$AI(t){dn(this,t)}},ig={M:Cc,P:hr,A:Ec,C:1,L:ng,R:va,D:eg,V:dn,I:pi,H:gn,N:ka,U:Aa,B:Sa,F:Ta},xC=Tc.litHtmlPolyfillSupport;xC?.($o,pi),(Tc.litHtmlVersions??=[]).push("3.2.1");var Uo=(e,t,r)=>{let n=r?.renderBefore??t,i=n._$litPart$;if(i===void 0){let o=r?.renderBefore??null;n._$litPart$=i=new pi(t.insertBefore(Lo(),o),o,void 0,r??{})}return i._$AI(e),i};var Lr=class extends pr{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){let t=super.createRenderRoot();return this.renderOptions.renderBefore??=t.firstChild,t}update(t){let r=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=Uo(r,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return Ue}};Lr._$litElement$=!0,Lr.finalized=!0,globalThis.litElementHydrateSupport?.({LitElement:Lr});var bC=globalThis.litElementPolyfillSupport;bC?.({LitElement:Lr});(globalThis.litElementVersions??=[]).push("4.1.1");var NA=$e(Ea(),1);var Se={};le(Se,{ObservableIntake:()=>Wc,Observablemap:()=>Vc,rxjs:()=>Wo});var re={};le(re,{CumulativeDeferred:()=>Ia,Deferred:()=>_a,cumulativeDefer:()=>vC,defer:()=>yn,getFirstTrueOrFalse:()=>CC,map:()=>AC,rejectedPromise:()=>kC,resolvedPromise:()=>SC,timeoutAndContinue:()=>TC,timeoutWrap:()=>og});var _a=class{claim(){if(this.claimed)throw new Error("Deferred already claimed");this.claimed=!0}get duration(){return this.stoppedAt?this.stoppedAt-this.startedAt:Date.now()-this.startedAt}constructor(){this.claimed=!1,this.promise=new Promise((t,r)=>{this.resolve=n=>{this.status="fulfilled",this.stoppedAt=Date.now(),t(n)},this.reject=n=>{this.status="rejected",this.stoppedAt=Date.now(),r(n)},this.startedAt=Date.now(),this.status="pending"})}},yn=()=>new _a;var Ia=class{constructor(){this.accumulatedPromises=[],this.deferred=yn(),this.promise=this.deferred.promise,setTimeout(async()=>{for(;this.accumulatedPromises.length>0;)await this.accumulatedPromises.shift();this.deferred.resolve()},0)}addPromise(t){this.accumulatedPromises.push(t)}},vC=()=>new Ia;var SC=e=>Promise.resolve(e),kC=e=>Promise.reject(e),AC=async(e,t)=>{let r=[],n=[];for(let i of e){let o=t(i);r.push(o),o.then(s=>{n.push(s)})}return await Promise.all(r),n},og=async(e,t,r=!0)=>new Promise((n,i)=>{setTimeout(()=>{r?i(new Error("timeout")):n(null)},t),e.then(n,i)}),TC=async(e,t=6e4)=>og(e,t,!1),CC=async e=>{let t=yn();for(let r of e)r.then(n=>{n===!0&&t.resolve(!0)});return Promise.all(e).then(()=>{t.resolve(!1)}),t.promise};var Wo={};le(Wo,{Observable:()=>Ce,ReplaySubject:()=>Fc,Subject:()=>dr,Subscription:()=>$t,from:()=>Sn,fromEvent:()=>An,of:()=>Lc,ops:()=>XC});var Dc=function(e,t){return Dc=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i])},Dc(e,t)};function rt(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Dc(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}function sg(e,t,r,n){function i(o){return o instanceof r?o:new r(function(s){s(o)})}return new(r||(r=Promise))(function(o,s){function a(c){try{u(n.next(c))}catch(f){s(f)}}function l(c){try{u(n.throw(c))}catch(f){s(f)}}function u(c){c.done?o(c.value):i(c.value).then(a,l)}u((n=n.apply(e,t||[])).next())})}function Da(e,t){var r={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},n,i,o,s=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return s.next=a(0),s.throw=a(1),s.return=a(2),typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function a(u){return function(c){return l([u,c])}}function l(u){if(n)throw new TypeError("Generator is already executing.");for(;s&&(s=0,u[0]&&(r=0)),r;)try{if(n=1,i&&(o=u[0]&2?i.return:u[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,u[1])).done)return o;switch(i=0,o&&(u=[u[0]&2,o.value]),u[0]){case 0:case 1:o=u;break;case 4:return r.label++,{value:u[1],done:!1};case 5:r.label++,i=u[1],u=[0];continue;case 7:u=r.ops.pop(),r.trys.pop();continue;default:if(o=r.trys,!(o=o.length>0&&o[o.length-1])&&(u[0]===6||u[0]===2)){r=0;continue}if(u[0]===3&&(!o||u[1]>o[0]&&u[1]<o[3])){r.label=u[1];break}if(u[0]===6&&r.label<o[1]){r.label=o[1],o=u;break}if(o&&r.label<o[2]){r.label=o[2],r.ops.push(u);break}o[2]&&r.ops.pop(),r.trys.pop();continue}u=t.call(e,r)}catch(c){u=[6,c],i=0}finally{n=o=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}function mr(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function vt(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),i,o=[],s;try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)o.push(i.value)}catch(a){s={error:a}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(s)throw s.error}}return o}function Bt(e,t,r){if(r||arguments.length===2)for(var n=0,i=t.length,o;n<i;n++)(o||!(n in t))&&(o||(o=Array.prototype.slice.call(t,0,n)),o[n]=t[n]);return e.concat(o||Array.prototype.slice.call(t))}function xn(e){return this instanceof xn?(this.v=e,this):new xn(e)}function ag(e,t,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=r.apply(e,t||[]),i,o=[];return i=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),a("next"),a("throw"),a("return",s),i[Symbol.asyncIterator]=function(){return this},i;function s(h){return function(m){return Promise.resolve(m).then(h,f)}}function a(h,m){n[h]&&(i[h]=function(x){return new Promise(function(v,w){o.push([h,x,v,w])>1||l(h,x)})},m&&(i[h]=m(i[h])))}function l(h,m){try{u(n[h](m))}catch(x){p(o[0][3],x)}}function u(h){h.value instanceof xn?Promise.resolve(h.value.v).then(c,f):p(o[0][2],h)}function c(h){l("next",h)}function f(h){l("throw",h)}function p(h,m){h(m),o.shift(),o.length&&l(o[0][0],o[0][1])}}function lg(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],r;return t?t.call(e):(e=typeof mr=="function"?mr(e):e[Symbol.iterator](),r={},n("next"),n("throw"),n("return"),r[Symbol.asyncIterator]=function(){return this},r);function n(o){r[o]=e[o]&&function(s){return new Promise(function(a,l){s=e[o](s),i(a,l,s.done,s.value)})}}function i(o,s,a,l){Promise.resolve(l).then(function(u){o({value:u,done:a})},s)}}function ue(e){return typeof e=="function"}function Oa(e){var t=function(n){Error.call(n),n.stack=new Error().stack},r=e(t);return r.prototype=Object.create(Error.prototype),r.prototype.constructor=r,r}var Ma=Oa(function(e){return function(r){e(this),this.message=r?r.length+` errors occurred during unsubscription:
43
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),Zd=/'/g,Xd=/"/g,tg=/^(?:script|style|textarea|title)$/i,Ic=e=>(t,...r)=>({_$litType$:e,strings:t,values:r}),Q=Ic(1),A4=Ic(2),T4=Ic(3),Ue=Symbol.for("lit-noChange"),Fe=Symbol.for("lit-nothing"),Kd=new WeakMap,hn=mn.createTreeWalker(mn,129);function rg(e,t){if(!_c(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return Gd!==void 0?Gd.createHTML(t):t}var ng=(e,t)=>{let r=e.length-1,n=[],i,o=t===2?"<svg>":t===3?"<math>":"",s=Ro;for(let a=0;a<r;a++){let l=e[a],u,c,f=-1,p=0;for(;p<l.length&&(s.lastIndex=p,c=s.exec(l),c!==null);)p=s.lastIndex,s===Ro?c[1]==="!--"?s=Jd:c[1]!==void 0?s=Qd:c[2]!==void 0?(tg.test(c[2])&&(i=RegExp("</"+c[2],"g")),s=pn):c[3]!==void 0&&(s=pn):s===pn?c[0]===">"?(s=i??Ro,f=-1):c[1]===void 0?f=-2:(f=s.lastIndex-c[2].length,u=c[1],s=c[3]===void 0?pn:c[3]==='"'?Xd:Zd):s===Xd||s===Zd?s=pn:s===Jd||s===Qd?s=Ro:(s=pn,i=void 0);let h=s===pn&&e[a+1].startsWith("/>")?" ":"";o+=s===Ro?l+bC:f>=0?(n.push(u),l.slice(0,f)+Cc+l.slice(f)+hr+h):l+hr+(f===-2?a:h)}return[rg(e,o+(e[r]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),n]},$o=class e{constructor({strings:t,_$litType$:r},n){let i;this.parts=[];let o=0,s=0,a=t.length-1,l=this.parts,[u,c]=ng(t,r);if(this.el=e.createElement(u,n),hn.currentNode=this.el.content,r===2||r===3){let f=this.el.content.firstChild;f.replaceWith(...f.childNodes)}for(;(i=hn.nextNode())!==null&&l.length<a;){if(i.nodeType===1){if(i.hasAttributes())for(let f of i.getAttributeNames())if(f.endsWith(Cc)){let p=c[s++],h=i.getAttribute(f).split(hr),m=/([.?@])?(.*)/.exec(p);l.push({type:1,index:o,name:m[2],strings:h,ctor:m[1]==="."?Sa:m[1]==="?"?ka:m[1]==="@"?Aa:gn}),i.removeAttribute(f)}else f.startsWith(hr)&&(l.push({type:6,index:o}),i.removeAttribute(f));if(tg.test(i.tagName)){let f=i.textContent.split(hr),p=f.length-1;if(p>0){i.textContent=wa?wa.emptyScript:"";for(let h=0;h<p;h++)i.append(f[h],Lo()),hn.nextNode(),l.push({type:2,index:++o});i.append(f[p],Lo())}}}else if(i.nodeType===8)if(i.data===Ec)l.push({type:2,index:o});else{let f=-1;for(;(f=i.data.indexOf(hr,f+1))!==-1;)l.push({type:7,index:o}),f+=hr.length-1}o++}}static createElement(t,r){let n=mn.createElement("template");return n.innerHTML=t,n}};function dn(e,t,r=e,n){if(t===Ue)return t;let i=n!==void 0?r._$Co?.[n]:r._$Cl,o=Bo(t)?void 0:t._$litDirective$;return i?.constructor!==o&&(i?._$AO?.(!1),o===void 0?i=void 0:(i=new o(e),i._$AT(e,r,n)),n!==void 0?(r._$Co??=[])[n]=i:r._$Cl=i),i!==void 0&&(t=dn(e,i._$AS(e,t.values),i,n)),t}var va=class{constructor(t,r){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=r}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){let{el:{content:r},parts:n}=this._$AD,i=(t?.creationScope??mn).importNode(r,!0);hn.currentNode=i;let o=hn.nextNode(),s=0,a=0,l=n[0];for(;l!==void 0;){if(s===l.index){let u;l.type===2?u=new pi(o,o.nextSibling,this,t):l.type===1?u=new l.ctor(o,l.name,l.strings,this,t):l.type===6&&(u=new Ta(o,this,t)),this._$AV.push(u),l=n[++a]}s!==l?.index&&(o=hn.nextNode(),s++)}return hn.currentNode=mn,i}p(t){let r=0;for(let n of this._$AV)n!==void 0&&(n.strings!==void 0?(n._$AI(t,n,r),r+=n.strings.length-2):n._$AI(t[r])),r++}},pi=class e{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,r,n,i){this.type=2,this._$AH=Fe,this._$AN=void 0,this._$AA=t,this._$AB=r,this._$AM=n,this.options=i,this._$Cv=i?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode,r=this._$AM;return r!==void 0&&t?.nodeType===11&&(t=r.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,r=this){t=dn(this,t,r),Bo(t)?t===Fe||t==null||t===""?(this._$AH!==Fe&&this._$AR(),this._$AH=Fe):t!==this._$AH&&t!==Ue&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):eg(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==Fe&&Bo(this._$AH)?this._$AA.nextSibling.data=t:this.T(mn.createTextNode(t)),this._$AH=t}$(t){let{values:r,_$litType$:n}=t,i=typeof n=="number"?this._$AC(t):(n.el===void 0&&(n.el=$o.createElement(rg(n.h,n.h[0]),this.options)),n);if(this._$AH?._$AD===i)this._$AH.p(r);else{let o=new va(i,this),s=o.u(this.options);o.p(r),this.T(s),this._$AH=o}}_$AC(t){let r=Kd.get(t.strings);return r===void 0&&Kd.set(t.strings,r=new $o(t)),r}k(t){_c(this._$AH)||(this._$AH=[],this._$AR());let r=this._$AH,n,i=0;for(let o of t)i===r.length?r.push(n=new e(this.O(Lo()),this.O(Lo()),this,this.options)):n=r[i],n._$AI(o),i++;i<r.length&&(this._$AR(n&&n._$AB.nextSibling,i),r.length=i)}_$AR(t=this._$AA.nextSibling,r){for(this._$AP?.(!1,!0,r);t&&t!==this._$AB;){let n=t.nextSibling;t.remove(),t=n}}setConnected(t){this._$AM===void 0&&(this._$Cv=t,this._$AP?.(t))}},gn=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,r,n,i,o){this.type=1,this._$AH=Fe,this._$AN=void 0,this.element=t,this.name=r,this._$AM=i,this.options=o,n.length>2||n[0]!==""||n[1]!==""?(this._$AH=Array(n.length-1).fill(new String),this.strings=n):this._$AH=Fe}_$AI(t,r=this,n,i){let o=this.strings,s=!1;if(o===void 0)t=dn(this,t,r,0),s=!Bo(t)||t!==this._$AH&&t!==Ue,s&&(this._$AH=t);else{let a=t,l,u;for(t=o[0],l=0;l<o.length-1;l++)u=dn(this,a[n+l],r,l),u===Ue&&(u=this._$AH[l]),s||=!Bo(u)||u!==this._$AH[l],u===Fe?t=Fe:t!==Fe&&(t+=(u??"")+o[l+1]),this._$AH[l]=u}s&&!i&&this.j(t)}j(t){t===Fe?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},Sa=class extends gn{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===Fe?void 0:t}},ka=class extends gn{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==Fe)}},Aa=class extends gn{constructor(t,r,n,i,o){super(t,r,n,i,o),this.type=5}_$AI(t,r=this){if((t=dn(this,t,r,0)??Fe)===Ue)return;let n=this._$AH,i=t===Fe&&n!==Fe||t.capture!==n.capture||t.once!==n.once||t.passive!==n.passive,o=t!==Fe&&(n===Fe||i);i&&this.element.removeEventListener(this.name,this,n),o&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}},Ta=class{constructor(t,r,n){this.element=t,this.type=6,this._$AN=void 0,this._$AM=r,this.options=n}get _$AU(){return this._$AM._$AU}_$AI(t){dn(this,t)}},ig={M:Cc,P:hr,A:Ec,C:1,L:ng,R:va,D:eg,V:dn,I:pi,H:gn,N:ka,U:Aa,B:Sa,F:Ta},wC=Tc.litHtmlPolyfillSupport;wC?.($o,pi),(Tc.litHtmlVersions??=[]).push("3.2.1");var Uo=(e,t,r)=>{let n=r?.renderBefore??t,i=n._$litPart$;if(i===void 0){let o=r?.renderBefore??null;n._$litPart$=i=new pi(t.insertBefore(Lo(),o),o,void 0,r??{})}return i._$AI(e),i};var Lr=class extends pr{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){let t=super.createRenderRoot();return this.renderOptions.renderBefore??=t.firstChild,t}update(t){let r=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=Uo(r,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return Ue}};Lr._$litElement$=!0,Lr.finalized=!0,globalThis.litElementHydrateSupport?.({LitElement:Lr});var vC=globalThis.litElementPolyfillSupport;vC?.({LitElement:Lr});(globalThis.litElementVersions??=[]).push("4.1.1");var NA=$e(Ea(),1);var Se={};le(Se,{ObservableIntake:()=>Wc,Observablemap:()=>Vc,rxjs:()=>Wo});var re={};le(re,{CumulativeDeferred:()=>Ia,Deferred:()=>_a,cumulativeDefer:()=>kC,defer:()=>yn,getFirstTrueOrFalse:()=>_C,map:()=>CC,rejectedPromise:()=>TC,resolvedPromise:()=>AC,timeoutAndContinue:()=>EC,timeoutWrap:()=>og});var _a=class{claim(){if(this.claimed)throw new Error("Deferred already claimed");this.claimed=!0}get duration(){return this.stoppedAt?this.stoppedAt-this.startedAt:Date.now()-this.startedAt}constructor(){this.claimed=!1,this.promise=new Promise((t,r)=>{this.resolve=n=>{this.status="fulfilled",this.stoppedAt=Date.now(),t(n)},this.reject=n=>{this.status="rejected",this.stoppedAt=Date.now(),r(n)},this.startedAt=Date.now(),this.status="pending"})}},yn=()=>new _a;var Ia=class{constructor(){this.accumulatedPromises=[],this.deferred=yn(),this.promise=this.deferred.promise,setTimeout(async()=>{for(;this.accumulatedPromises.length>0;)await this.accumulatedPromises.shift();this.deferred.resolve()},0)}addPromise(t){this.accumulatedPromises.push(t)}},kC=()=>new Ia;var AC=e=>Promise.resolve(e),TC=e=>Promise.reject(e),CC=async(e,t)=>{let r=[],n=[];for(let i of e){let o=t(i);r.push(o),o.then(s=>{n.push(s)})}return await Promise.all(r),n},og=async(e,t,r=!0)=>new Promise((n,i)=>{setTimeout(()=>{r?i(new Error("timeout")):n(null)},t),e.then(n,i)}),EC=async(e,t=6e4)=>og(e,t,!1),_C=async e=>{let t=yn();for(let r of e)r.then(n=>{n===!0&&t.resolve(!0)});return Promise.all(e).then(()=>{t.resolve(!1)}),t.promise};var Wo={};le(Wo,{Observable:()=>Ce,ReplaySubject:()=>Fc,Subject:()=>dr,Subscription:()=>$t,from:()=>Sn,fromEvent:()=>An,of:()=>Lc,ops:()=>eE});var Pc=function(e,t){return Pc=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i])},Pc(e,t)};function rt(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Pc(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}function sg(e,t,r,n){function i(o){return o instanceof r?o:new r(function(s){s(o)})}return new(r||(r=Promise))(function(o,s){function a(c){try{u(n.next(c))}catch(f){s(f)}}function l(c){try{u(n.throw(c))}catch(f){s(f)}}function u(c){c.done?o(c.value):i(c.value).then(a,l)}u((n=n.apply(e,t||[])).next())})}function Pa(e,t){var r={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},n,i,o,s=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return s.next=a(0),s.throw=a(1),s.return=a(2),typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function a(u){return function(c){return l([u,c])}}function l(u){if(n)throw new TypeError("Generator is already executing.");for(;s&&(s=0,u[0]&&(r=0)),r;)try{if(n=1,i&&(o=u[0]&2?i.return:u[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,u[1])).done)return o;switch(i=0,o&&(u=[u[0]&2,o.value]),u[0]){case 0:case 1:o=u;break;case 4:return r.label++,{value:u[1],done:!1};case 5:r.label++,i=u[1],u=[0];continue;case 7:u=r.ops.pop(),r.trys.pop();continue;default:if(o=r.trys,!(o=o.length>0&&o[o.length-1])&&(u[0]===6||u[0]===2)){r=0;continue}if(u[0]===3&&(!o||u[1]>o[0]&&u[1]<o[3])){r.label=u[1];break}if(u[0]===6&&r.label<o[1]){r.label=o[1],o=u;break}if(o&&r.label<o[2]){r.label=o[2],r.ops.push(u);break}o[2]&&r.ops.pop(),r.trys.pop();continue}u=t.call(e,r)}catch(c){u=[6,c],i=0}finally{n=o=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}function mr(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function vt(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),i,o=[],s;try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)o.push(i.value)}catch(a){s={error:a}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(s)throw s.error}}return o}function Bt(e,t,r){if(r||arguments.length===2)for(var n=0,i=t.length,o;n<i;n++)(o||!(n in t))&&(o||(o=Array.prototype.slice.call(t,0,n)),o[n]=t[n]);return e.concat(o||Array.prototype.slice.call(t))}function xn(e){return this instanceof xn?(this.v=e,this):new xn(e)}function ag(e,t,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=r.apply(e,t||[]),i,o=[];return i=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),a("next"),a("throw"),a("return",s),i[Symbol.asyncIterator]=function(){return this},i;function s(h){return function(m){return Promise.resolve(m).then(h,f)}}function a(h,m){n[h]&&(i[h]=function(x){return new Promise(function(v,w){o.push([h,x,v,w])>1||l(h,x)})},m&&(i[h]=m(i[h])))}function l(h,m){try{u(n[h](m))}catch(x){p(o[0][3],x)}}function u(h){h.value instanceof xn?Promise.resolve(h.value.v).then(c,f):p(o[0][2],h)}function c(h){l("next",h)}function f(h){l("throw",h)}function p(h,m){h(m),o.shift(),o.length&&l(o[0][0],o[0][1])}}function lg(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],r;return t?t.call(e):(e=typeof mr=="function"?mr(e):e[Symbol.iterator](),r={},n("next"),n("throw"),n("return"),r[Symbol.asyncIterator]=function(){return this},r);function n(o){r[o]=e[o]&&function(s){return new Promise(function(a,l){s=e[o](s),i(a,l,s.done,s.value)})}}function i(o,s,a,l){Promise.resolve(l).then(function(u){o({value:u,done:a})},s)}}function ue(e){return typeof e=="function"}function Da(e){var t=function(n){Error.call(n),n.stack=new Error().stack},r=e(t);return r.prototype=Object.create(Error.prototype),r.prototype.constructor=r,r}var Oa=Da(function(e){return function(r){e(this),this.message=r?r.length+` errors occurred during unsubscription:
44
44
  `+r.map(function(n,i){return i+1+") "+n.toString()}).join(`
45
- `):"",this.name="UnsubscriptionError",this.errors=r}});function bn(e,t){if(e){var r=e.indexOf(t);0<=r&&e.splice(r,1)}}var $t=function(){function e(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}return e.prototype.unsubscribe=function(){var t,r,n,i,o;if(!this.closed){this.closed=!0;var s=this._parentage;if(s)if(this._parentage=null,Array.isArray(s))try{for(var a=mr(s),l=a.next();!l.done;l=a.next()){var u=l.value;u.remove(this)}}catch(x){t={error:x}}finally{try{l&&!l.done&&(r=a.return)&&r.call(a)}finally{if(t)throw t.error}}else s.remove(this);var c=this.initialTeardown;if(ue(c))try{c()}catch(x){o=x instanceof Ma?x.errors:[x]}var f=this._finalizers;if(f){this._finalizers=null;try{for(var p=mr(f),h=p.next();!h.done;h=p.next()){var m=h.value;try{ug(m)}catch(x){o=o??[],x instanceof Ma?o=Bt(Bt([],vt(o)),vt(x.errors)):o.push(x)}}}catch(x){n={error:x}}finally{try{h&&!h.done&&(i=p.return)&&i.call(p)}finally{if(n)throw n.error}}}if(o)throw new Ma(o)}},e.prototype.add=function(t){var r;if(t&&t!==this)if(this.closed)ug(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=(r=this._finalizers)!==null&&r!==void 0?r:[]).push(t)}},e.prototype._hasParent=function(t){var r=this._parentage;return r===t||Array.isArray(r)&&r.includes(t)},e.prototype._addParent=function(t){var r=this._parentage;this._parentage=Array.isArray(r)?(r.push(t),r):r?[r,t]:t},e.prototype._removeParent=function(t){var r=this._parentage;r===t?this._parentage=null:Array.isArray(r)&&bn(r,t)},e.prototype.remove=function(t){var r=this._finalizers;r&&bn(r,t),t instanceof e&&t._removeParent(this)},e.EMPTY=function(){var t=new e;return t.closed=!0,t}(),e}();var Oc=$t.EMPTY;function Pa(e){return e instanceof $t||e&&"closed"in e&&ue(e.remove)&&ue(e.add)&&ue(e.unsubscribe)}function ug(e){ue(e)?e():e.unsubscribe()}var Ut={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};var hi={setTimeout:function(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var i=hi.delegate;return i?.setTimeout?i.setTimeout.apply(i,Bt([e,t],vt(r))):setTimeout.apply(void 0,Bt([e,t],vt(r)))},clearTimeout:function(e){var t=hi.delegate;return(t?.clearTimeout||clearTimeout)(e)},delegate:void 0};function Na(e){hi.setTimeout(function(){var t=Ut.onUnhandledError;if(t)t(e);else throw e})}function wn(){}var cg=function(){return Mc("C",void 0,void 0)}();function fg(e){return Mc("E",void 0,e)}function pg(e){return Mc("N",e,void 0)}function Mc(e,t,r){return{kind:e,value:t,error:r}}var vn=null;function mi(e){if(Ut.useDeprecatedSynchronousErrorHandling){var t=!vn;if(t&&(vn={errorThrown:!1,error:null}),e(),t){var r=vn,n=r.errorThrown,i=r.error;if(vn=null,n)throw i}}else e()}function hg(e){Ut.useDeprecatedSynchronousErrorHandling&&vn&&(vn.errorThrown=!0,vn.error=e)}var jo=function(e){rt(t,e);function t(r){var n=e.call(this)||this;return n.isStopped=!1,r?(n.destination=r,Pa(r)&&r.add(n)):n.destination=OC,n}return t.create=function(r,n,i){return new Ra(r,n,i)},t.prototype.next=function(r){this.isStopped?Nc(pg(r),this):this._next(r)},t.prototype.error=function(r){this.isStopped?Nc(fg(r),this):(this.isStopped=!0,this._error(r))},t.prototype.complete=function(){this.isStopped?Nc(cg,this):(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this),this.destination=null)},t.prototype._next=function(r){this.destination.next(r)},t.prototype._error=function(r){try{this.destination.error(r)}finally{this.unsubscribe()}},t.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},t}($t);var _C=Function.prototype.bind;function Pc(e,t){return _C.call(e,t)}var IC=function(){function e(t){this.partialObserver=t}return e.prototype.next=function(t){var r=this.partialObserver;if(r.next)try{r.next(t)}catch(n){Fa(n)}},e.prototype.error=function(t){var r=this.partialObserver;if(r.error)try{r.error(t)}catch(n){Fa(n)}else Fa(t)},e.prototype.complete=function(){var t=this.partialObserver;if(t.complete)try{t.complete()}catch(r){Fa(r)}},e}(),Ra=function(e){rt(t,e);function t(r,n,i){var o=e.call(this)||this,s;if(ue(r)||!r)s={next:r??void 0,error:n??void 0,complete:i??void 0};else{var a;o&&Ut.useDeprecatedNextContext?(a=Object.create(r),a.unsubscribe=function(){return o.unsubscribe()},s={next:r.next&&Pc(r.next,a),error:r.error&&Pc(r.error,a),complete:r.complete&&Pc(r.complete,a)}):s=r}return o.destination=new IC(s),o}return t}(jo);function Fa(e){Ut.useDeprecatedSynchronousErrorHandling?hg(e):Na(e)}function DC(e){throw e}function Nc(e,t){var r=Ut.onStoppedNotification;r&&hi.setTimeout(function(){return r(e,t)})}var OC={closed:!0,next:wn,error:DC,complete:wn};var di=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function La(e){return e}function mg(e){return e.length===0?La:e.length===1?e[0]:function(r){return e.reduce(function(n,i){return i(n)},r)}}var Ce=function(){function e(t){t&&(this._subscribe=t)}return e.prototype.lift=function(t){var r=new e;return r.source=this,r.operator=t,r},e.prototype.subscribe=function(t,r,n){var i=this,o=PC(t)?t:new Ra(t,r,n);return mi(function(){var s=i,a=s.operator,l=s.source;o.add(a?a.call(o,l):l?i._subscribe(o):i._trySubscribe(o))}),o},e.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(r){t.error(r)}},e.prototype.forEach=function(t,r){var n=this;return r=dg(r),new r(function(i,o){var s=new Ra({next:function(a){try{t(a)}catch(l){o(l),s.unsubscribe()}},error:o,complete:i});n.subscribe(s)})},e.prototype._subscribe=function(t){var r;return(r=this.source)===null||r===void 0?void 0:r.subscribe(t)},e.prototype[di]=function(){return this},e.prototype.pipe=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return mg(t)(this)},e.prototype.toPromise=function(t){var r=this;return t=dg(t),new t(function(n,i){var o;r.subscribe(function(s){return o=s},function(s){return i(s)},function(){return n(o)})})},e.create=function(t){return new e(t)},e}();function dg(e){var t;return(t=e??Ut.Promise)!==null&&t!==void 0?t:Promise}function MC(e){return e&&ue(e.next)&&ue(e.error)&&ue(e.complete)}function PC(e){return e&&e instanceof jo||MC(e)&&Pa(e)}function NC(e){return ue(e?.lift)}function je(e){return function(t){if(NC(t))return t.lift(function(r){try{return e(r,this)}catch(n){this.error(n)}});throw new TypeError("Unable to lift unknown Observable type")}}function Ve(e,t,r,n,i){return new FC(e,t,r,n,i)}var FC=function(e){rt(t,e);function t(r,n,i,o,s,a){var l=e.call(this,r)||this;return l.onFinalize=s,l.shouldUnsubscribe=a,l._next=n?function(u){try{n(u)}catch(c){r.error(c)}}:e.prototype._next,l._error=o?function(u){try{o(u)}catch(c){r.error(c)}finally{this.unsubscribe()}}:e.prototype._error,l._complete=i?function(){try{i()}catch(u){r.error(u)}finally{this.unsubscribe()}}:e.prototype._complete,l}return t.prototype.unsubscribe=function(){var r;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){var n=this.closed;e.prototype.unsubscribe.call(this),!n&&((r=this.onFinalize)===null||r===void 0||r.call(this))}},t}(jo);var gg=Oa(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}});var dr=function(e){rt(t,e);function t(){var r=e.call(this)||this;return r.closed=!1,r.currentObservers=null,r.observers=[],r.isStopped=!1,r.hasError=!1,r.thrownError=null,r}return t.prototype.lift=function(r){var n=new yg(this,this);return n.operator=r,n},t.prototype._throwIfClosed=function(){if(this.closed)throw new gg},t.prototype.next=function(r){var n=this;mi(function(){var i,o;if(n._throwIfClosed(),!n.isStopped){n.currentObservers||(n.currentObservers=Array.from(n.observers));try{for(var s=mr(n.currentObservers),a=s.next();!a.done;a=s.next()){var l=a.value;l.next(r)}}catch(u){i={error:u}}finally{try{a&&!a.done&&(o=s.return)&&o.call(s)}finally{if(i)throw i.error}}}})},t.prototype.error=function(r){var n=this;mi(function(){if(n._throwIfClosed(),!n.isStopped){n.hasError=n.isStopped=!0,n.thrownError=r;for(var i=n.observers;i.length;)i.shift().error(r)}})},t.prototype.complete=function(){var r=this;mi(function(){if(r._throwIfClosed(),!r.isStopped){r.isStopped=!0;for(var n=r.observers;n.length;)n.shift().complete()}})},t.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(t.prototype,"observed",{get:function(){var r;return((r=this.observers)===null||r===void 0?void 0:r.length)>0},enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(r){return this._throwIfClosed(),e.prototype._trySubscribe.call(this,r)},t.prototype._subscribe=function(r){return this._throwIfClosed(),this._checkFinalizedStatuses(r),this._innerSubscribe(r)},t.prototype._innerSubscribe=function(r){var n=this,i=this,o=i.hasError,s=i.isStopped,a=i.observers;return o||s?Oc:(this.currentObservers=null,a.push(r),new $t(function(){n.currentObservers=null,bn(a,r)}))},t.prototype._checkFinalizedStatuses=function(r){var n=this,i=n.hasError,o=n.thrownError,s=n.isStopped;i?r.error(o):s&&r.complete()},t.prototype.asObservable=function(){var r=new Ce;return r.source=this,r},t.create=function(r,n){return new yg(r,n)},t}(Ce);var yg=function(e){rt(t,e);function t(r,n){var i=e.call(this)||this;return i.destination=r,i.source=n,i}return t.prototype.next=function(r){var n,i;(i=(n=this.destination)===null||n===void 0?void 0:n.next)===null||i===void 0||i.call(n,r)},t.prototype.error=function(r){var n,i;(i=(n=this.destination)===null||n===void 0?void 0:n.error)===null||i===void 0||i.call(n,r)},t.prototype.complete=function(){var r,n;(n=(r=this.destination)===null||r===void 0?void 0:r.complete)===null||n===void 0||n.call(r)},t.prototype._subscribe=function(r){var n,i;return(i=(n=this.source)===null||n===void 0?void 0:n.subscribe(r))!==null&&i!==void 0?i:Oc},t}(dr);var zo={now:function(){return(zo.delegate||Date).now()},delegate:void 0};var Fc=function(e){rt(t,e);function t(r,n,i){r===void 0&&(r=1/0),n===void 0&&(n=1/0),i===void 0&&(i=zo);var o=e.call(this)||this;return o._bufferSize=r,o._windowTime=n,o._timestampProvider=i,o._buffer=[],o._infiniteTimeWindow=!0,o._infiniteTimeWindow=n===1/0,o._bufferSize=Math.max(1,r),o._windowTime=Math.max(1,n),o}return t.prototype.next=function(r){var n=this,i=n.isStopped,o=n._buffer,s=n._infiniteTimeWindow,a=n._timestampProvider,l=n._windowTime;i||(o.push(r),!s&&o.push(a.now()+l)),this._trimBuffer(),e.prototype.next.call(this,r)},t.prototype._subscribe=function(r){this._throwIfClosed(),this._trimBuffer();for(var n=this._innerSubscribe(r),i=this,o=i._infiniteTimeWindow,s=i._buffer,a=s.slice(),l=0;l<a.length&&!r.closed;l+=o?1:2)r.next(a[l]);return this._checkFinalizedStatuses(r),n},t.prototype._trimBuffer=function(){var r=this,n=r._bufferSize,i=r._timestampProvider,o=r._buffer,s=r._infiniteTimeWindow,a=(s?1:2)*n;if(n<1/0&&a<o.length&&o.splice(0,o.length-a),!s){for(var l=i.now(),u=0,c=1;c<o.length&&o[c]<=l;c+=2)u=c;u&&o.splice(0,u+1)}},t}(dr);var xg=function(e){rt(t,e);function t(r,n){return e.call(this)||this}return t.prototype.schedule=function(r,n){return n===void 0&&(n=0),this},t}($t);var qo={setInterval:function(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var i=qo.delegate;return i?.setInterval?i.setInterval.apply(i,Bt([e,t],vt(r))):setInterval.apply(void 0,Bt([e,t],vt(r)))},clearInterval:function(e){var t=qo.delegate;return(t?.clearInterval||clearInterval)(e)},delegate:void 0};var bg=function(e){rt(t,e);function t(r,n){var i=e.call(this,r,n)||this;return i.scheduler=r,i.work=n,i.pending=!1,i}return t.prototype.schedule=function(r,n){var i;if(n===void 0&&(n=0),this.closed)return this;this.state=r;var o=this.id,s=this.scheduler;return o!=null&&(this.id=this.recycleAsyncId(s,o,n)),this.pending=!0,this.delay=n,this.id=(i=this.id)!==null&&i!==void 0?i:this.requestAsyncId(s,this.id,n),this},t.prototype.requestAsyncId=function(r,n,i){return i===void 0&&(i=0),qo.setInterval(r.flush.bind(r,this),i)},t.prototype.recycleAsyncId=function(r,n,i){if(i===void 0&&(i=0),i!=null&&this.delay===i&&this.pending===!1)return n;n!=null&&qo.clearInterval(n)},t.prototype.execute=function(r,n){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var i=this._execute(r,n);if(i)return i;this.pending===!1&&this.id!=null&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},t.prototype._execute=function(r,n){var i=!1,o;try{this.work(r)}catch(s){i=!0,o=s||new Error("Scheduled action threw falsy error")}if(i)return this.unsubscribe(),o},t.prototype.unsubscribe=function(){if(!this.closed){var r=this,n=r.id,i=r.scheduler,o=i.actions;this.work=this.state=this.scheduler=null,this.pending=!1,bn(o,this),n!=null&&(this.id=this.recycleAsyncId(i,n,null)),this.delay=null,e.prototype.unsubscribe.call(this)}},t}(xg);var Rc=function(){function e(t,r){r===void 0&&(r=e.now),this.schedulerActionCtor=t,this.now=r}return e.prototype.schedule=function(t,r,n){return r===void 0&&(r=0),new this.schedulerActionCtor(this,t).schedule(n,r)},e.now=zo.now,e}();var wg=function(e){rt(t,e);function t(r,n){n===void 0&&(n=Rc.now);var i=e.call(this,r,n)||this;return i.actions=[],i._active=!1,i}return t.prototype.flush=function(r){var n=this.actions;if(this._active){n.push(r);return}var i;this._active=!0;do if(i=r.execute(r.state,r.delay))break;while(r=n.shift());if(this._active=!1,i){for(;r=n.shift();)r.unsubscribe();throw i}},t}(Rc);var Ho=new wg(bg),vg=Ho;function Ba(e){return e&&ue(e.schedule)}function RC(e){return e[e.length-1]}function gi(e){return Ba(RC(e))?e.pop():void 0}var yi=function(e){return e&&typeof e.length=="number"&&typeof e!="function"};function $a(e){return ue(e?.then)}function Ua(e){return ue(e[di])}function ja(e){return Symbol.asyncIterator&&ue(e?.[Symbol.asyncIterator])}function za(e){return new TypeError("You provided "+(e!==null&&typeof e=="object"?"an invalid object":"'"+e+"'")+" where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.")}function LC(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var qa=LC();function Ha(e){return ue(e?.[qa])}function Va(e){return ag(this,arguments,function(){var r,n,i,o;return Da(this,function(s){switch(s.label){case 0:r=e.getReader(),s.label=1;case 1:s.trys.push([1,,9,10]),s.label=2;case 2:return[4,xn(r.read())];case 3:return n=s.sent(),i=n.value,o=n.done,o?[4,xn(void 0)]:[3,5];case 4:return[2,s.sent()];case 5:return[4,xn(i)];case 6:return[4,s.sent()];case 7:return s.sent(),[3,2];case 8:return[3,10];case 9:return r.releaseLock(),[7];case 10:return[2]}})})}function Wa(e){return ue(e?.getReader)}function Ze(e){if(e instanceof Ce)return e;if(e!=null){if(Ua(e))return BC(e);if(yi(e))return $C(e);if($a(e))return UC(e);if(ja(e))return Sg(e);if(Ha(e))return jC(e);if(Wa(e))return zC(e)}throw za(e)}function BC(e){return new Ce(function(t){var r=e[di]();if(ue(r.subscribe))return r.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function $C(e){return new Ce(function(t){for(var r=0;r<e.length&&!t.closed;r++)t.next(e[r]);t.complete()})}function UC(e){return new Ce(function(t){e.then(function(r){t.closed||(t.next(r),t.complete())},function(r){return t.error(r)}).then(null,Na)})}function jC(e){return new Ce(function(t){var r,n;try{for(var i=mr(e),o=i.next();!o.done;o=i.next()){var s=o.value;if(t.next(s),t.closed)return}}catch(a){r={error:a}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}t.complete()})}function Sg(e){return new Ce(function(t){qC(e,t).catch(function(r){return t.error(r)})})}function zC(e){return Sg(Va(e))}function qC(e,t){var r,n,i,o;return sg(this,void 0,void 0,function(){var s,a;return Da(this,function(l){switch(l.label){case 0:l.trys.push([0,5,6,11]),r=lg(e),l.label=1;case 1:return[4,r.next()];case 2:if(n=l.sent(),!!n.done)return[3,4];if(s=n.value,t.next(s),t.closed)return[2];l.label=3;case 3:return[3,1];case 4:return[3,11];case 5:return a=l.sent(),i={error:a},[3,11];case 6:return l.trys.push([6,,9,10]),n&&!n.done&&(o=r.return)?[4,o.call(r)]:[3,8];case 7:l.sent(),l.label=8;case 8:return[3,10];case 9:if(i)throw i.error;return[7];case 10:return[7];case 11:return t.complete(),[2]}})})}function Ct(e,t,r,n,i){n===void 0&&(n=0),i===void 0&&(i=!1);var o=t.schedule(function(){r(),i?e.add(this.schedule(null,n)):this.unsubscribe()},n);if(e.add(o),!i)return o}function Ya(e,t){return t===void 0&&(t=0),je(function(r,n){r.subscribe(Ve(n,function(i){return Ct(n,e,function(){return n.next(i)},t)},function(){return Ct(n,e,function(){return n.complete()},t)},function(i){return Ct(n,e,function(){return n.error(i)},t)}))})}function Ga(e,t){return t===void 0&&(t=0),je(function(r,n){n.add(e.schedule(function(){return r.subscribe(n)},t))})}function kg(e,t){return Ze(e).pipe(Ga(t),Ya(t))}function Ag(e,t){return Ze(e).pipe(Ga(t),Ya(t))}function Tg(e,t){return new Ce(function(r){var n=0;return t.schedule(function(){n===e.length?r.complete():(r.next(e[n++]),r.closed||this.schedule())})})}function Cg(e,t){return new Ce(function(r){var n;return Ct(r,t,function(){n=e[qa](),Ct(r,t,function(){var i,o,s;try{i=n.next(),o=i.value,s=i.done}catch(a){r.error(a);return}s?r.complete():r.next(o)},0,!0)}),function(){return ue(n?.return)&&n.return()}})}function Ja(e,t){if(!e)throw new Error("Iterable cannot be null");return new Ce(function(r){Ct(r,t,function(){var n=e[Symbol.asyncIterator]();Ct(r,t,function(){n.next().then(function(i){i.done?r.complete():r.next(i.value)})},0,!0)})})}function Eg(e,t){return Ja(Va(e),t)}function _g(e,t){if(e!=null){if(Ua(e))return kg(e,t);if(yi(e))return Tg(e,t);if($a(e))return Ag(e,t);if(ja(e))return Ja(e,t);if(Ha(e))return Cg(e,t);if(Wa(e))return Eg(e,t)}throw za(e)}function Sn(e,t){return t?_g(e,t):Ze(e)}function Lc(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=gi(e);return Sn(e,r)}function Ig(e){return e instanceof Date&&!isNaN(e)}function kn(e,t){return je(function(r,n){var i=0;r.subscribe(Ve(n,function(o){n.next(e.call(t,o,i++))}))})}var HC=Array.isArray;function VC(e,t){return HC(t)?e.apply(void 0,Bt([],vt(t))):e(t)}function Dg(e){return kn(function(t){return VC(e,t)})}function Og(e,t,r,n,i,o,s,a){var l=[],u=0,c=0,f=!1,p=function(){f&&!l.length&&!u&&t.complete()},h=function(x){return u<n?m(x):l.push(x)},m=function(x){o&&t.next(x),u++;var v=!1;Ze(r(x,c++)).subscribe(Ve(t,function(w){i?.(w),o?h(w):t.next(w)},function(){v=!0},void 0,function(){if(v)try{u--;for(var w=function(){var E=l.shift();s?Ct(t,s,function(){return m(E)}):m(E)};l.length&&u<n;)w();p()}catch(E){t.error(E)}}))};return e.subscribe(Ve(t,h,function(){f=!0,p()})),function(){a?.()}}function Vo(e,t,r){return r===void 0&&(r=1/0),ue(t)?Vo(function(n,i){return kn(function(o,s){return t(n,o,i,s)})(Ze(e(n,i)))},r):(typeof t=="number"&&(r=t),je(function(n,i){return Og(n,i,e,r)}))}function Mg(e){return e===void 0&&(e=1/0),Vo(La,e)}function Pg(){return Mg(1)}function Bc(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return Pg()(Sn(e,gi(e)))}var WC=["addListener","removeListener"],YC=["addEventListener","removeEventListener"],GC=["on","off"];function An(e,t,r,n){if(ue(r)&&(n=r,r=void 0),n)return An(e,t,r).pipe(Dg(n));var i=vt(ZC(e)?YC.map(function(a){return function(l){return e[a](t,l,r)}}):JC(e)?WC.map(Ng(e,t)):QC(e)?GC.map(Ng(e,t)):[],2),o=i[0],s=i[1];if(!o&&yi(e))return Vo(function(a){return An(a,t,r)})(Ze(e));if(!o)throw new TypeError("Invalid event target");return new Ce(function(a){var l=function(){for(var u=[],c=0;c<arguments.length;c++)u[c]=arguments[c];return a.next(1<u.length?u:u[0])};return o(l),function(){return s(l)}})}function Ng(e,t){return function(r){return function(n){return e[r](t,n)}}}function JC(e){return ue(e.addListener)&&ue(e.removeListener)}function QC(e){return ue(e.on)&&ue(e.off)}function ZC(e){return ue(e.addEventListener)&&ue(e.removeEventListener)}function Fg(e,t,r){e===void 0&&(e=0),r===void 0&&(r=vg);var n=-1;return t!=null&&(Ba(t)?r=t:n=t),new Ce(function(i){var o=Ig(e)?+e-r.now():e;o<0&&(o=0);var s=0;return r.schedule(function(){i.closed||(i.next(s++),0<=n?this.schedule(void 0,n):i.complete())},o)})}function $c(e,t){return je(function(r,n){var i=0;r.subscribe(Ve(n,function(o){return e.call(t,o,i++)&&n.next(o)}))})}function Uc(e){return je(function(t,r){var n=!1,i=null,o=null,s=function(){if(o?.unsubscribe(),o=null,n){n=!1;var a=i;i=null,r.next(a)}};t.subscribe(Ve(r,function(a){o?.unsubscribe(),n=!0,i=a,o=Ve(r,s,wn),Ze(e(a)).subscribe(o)},function(){s(),r.complete()},void 0,function(){i=o=null}))})}function jc(e,t){return t===void 0&&(t=Ho),je(function(r,n){var i=null,o=null,s=null,a=function(){if(i){i.unsubscribe(),i=null;var u=o;o=null,n.next(u)}};function l(){var u=s+e,c=t.now();if(c<u){i=this.schedule(void 0,u-c),n.add(i);return}a()}r.subscribe(Ve(n,function(u){o=u,s=t.now(),i||(i=t.schedule(l,e),n.add(i))},function(){a(),n.complete()},void 0,function(){o=i=null}))})}function zc(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=gi(e);return je(function(n,i){(r?Bc(e,n,r):Bc(e,n)).subscribe(i)})}function qc(e){return je(function(t,r){Ze(e).subscribe(Ve(r,function(){return r.complete()},wn)),!r.closed&&t.subscribe(r)})}function Rg(e,t){return je(function(r,n){var i=t??{},o=i.leading,s=o===void 0?!0:o,a=i.trailing,l=a===void 0?!1:a,u=!1,c=null,f=null,p=!1,h=function(){f?.unsubscribe(),f=null,l&&(v(),p&&n.complete())},m=function(){f=null,p&&n.complete()},x=function(w){return f=Ze(e(w)).subscribe(Ve(n,h,m))},v=function(){if(u){u=!1;var w=c;c=null,n.next(w),!p&&x(w)}};r.subscribe(Ve(n,function(w){u=!0,c=w,!(f&&!f.closed)&&(s?v():x(w))},function(){p=!0,!(l&&u&&f&&!f.closed)&&n.complete()}))})}function Hc(e,t,r){t===void 0&&(t=Ho);var n=Fg(e,t);return Rg(function(){return n},r)}var XC={debounce:Uc,debounceTime:jc,map:kn,startWith:zc,takeUntil:qc,throttleTime:Hc,filter:$c};var Vc=class{constructor(){this.observableEventEmitterBundleArray=new Array,this.observableEventTargetBundleArray=new Array}getSubjectForEmitterEvent(t,r){let n=this.observableEventEmitterBundleArray.find(i=>i.eventRef===t&&i.event===r);if(n)return n.subject;{let i=An(t,r),o=new dr;i.subscribe(o);let s={subject:o,eventRef:t,event:r};return this.observableEventEmitterBundleArray.push(s),s.subject}}getSubjectForEventTarget(t,r){let n=this.observableEventTargetBundleArray.find(i=>i.eventRef===t&&i.event===r);if(n)return n.subject;{let o={subject:new dr,eventRef:t,event:r};return this.observableEventTargetBundleArray.push(o),o.subject}}};var Wc=class{constructor(){this.observableFunctions={next:t=>{},complete:t=>{}},this.generator=null,this.buffered=!1,this.payloadBuffer=[],this.observable=new Ce(t=>{this.observableFunctions.next=(...r)=>t.next(r),this.observableFunctions.complete=()=>(this.completedDeffered.resolve(),t.complete())}),this.completedDeffered=re.defer(),this.completed=this.completedDeffered.promise}setObservable(t){this.observable=t}push(t){this.buffered?this.payloadBuffer.push(t):this.internalPush(t)}pushMany(t){for(let r of t)this.push(r)}setGenerator(t){this.generator=t}makeBuffered(){this.buffered=!0}subscribe(...t){return this.observable.subscribe(...t)}request(t){if(t!==0)for(let r=0;r!==t;r++)if(this.payloadBuffer.length>0)this.internalPush(this.payloadBuffer.shift());else{let n=this.generator.next();this.internalPush(n.value)}}signalComplete(){this.observableFunctions.complete()}internalPush(t){this.observableFunctions.next(t)}};var KC={attribute:!0,type:String,converter:Fo,reflect:!1,hasChanged:ba},eE=(e=KC,t,r)=>{let{kind:n,metadata:i}=r,o=globalThis.litPropertyMetadata.get(i);if(o===void 0&&globalThis.litPropertyMetadata.set(i,o=new Map),o.set(r.name,e),n==="accessor"){let{name:s}=r;return{set(a){let l=t.get.call(this);t.set.call(this,a),this.requestUpdate(s,l,e)},init(a){return a!==void 0&&this.P(s,void 0,e),a}}}if(n==="setter"){let{name:s}=r;return function(a){let l=this[s];t.call(this,a),this.requestUpdate(s,l,e)}}throw Error("Unsupported decorator location: "+n)};function ne(e){return(t,r)=>typeof r=="object"?eE(e,t,r):((n,i,o)=>{let s=i.hasOwnProperty(o);return i.constructor.createProperty(o,s?{...n,wrapped:!0}:n),s?Object.getOwnPropertyDescriptor(i,o):void 0})(e,t,r)}var Ae={};le(Ae,{DomTools:()=>ut,TypedRequest:()=>bs,breakpoints:()=>Dr,css:()=>md,elementBasic:()=>Ht,plugins:()=>dd});var Ht={};le(Ht,{setup:()=>pU,staticStyles:()=>cU,styles:()=>fU});var $l={};le($l,{DeesComms:()=>zp});var he={};le(he,{Timeout:()=>Qa,delayFor:()=>Lg,delayForRandom:()=>tE});var Lg=async(e,t,r=!1)=>(await new Qa(e,null,r).promise,t),tE=async(e,t,r,n=!1)=>(await Lg(Math.random()*(t-e)+e,null,n),r),Qa=class{constructor(t,r,n=!1){this._cancelled=!1,this.timeoutInMillis=t,this._deferred=yn(),this.promise=this._deferred.promise,this._timeout=setTimeout(()=>{this._cancelled||this._deferred.resolve(r)},t),this.started=Date.now(),n&&this.makeUnrefed()}makeUnrefed(){this._timeout.unref()}cancel(){this._cancelled=!0,clearTimeout(this._timeout)}getTimeLeft(){let t=this.started+this.timeoutInMillis-Date.now();return t>0?t:0}};var It={};le(It,{TypedHandler:()=>Fp,TypedRequest:()=>bs,TypedResponseError:()=>vr,TypedRouter:()=>xs,TypedTarget:()=>Rp,VirtualStream:()=>Zt});var Ln=$e(Ea(),1);var ft={};le(ft,{AsyncExecutionStack:()=>hf,BackpressuredArray:()=>mf,FastMap:()=>Qo,Interest:()=>Zo,InterestMap:()=>df,LimitedArray:()=>gf,LoopTracker:()=>yf,ObjectMap:()=>En,Stringmap:()=>xf,TimedAggregtor:()=>bf,Tree:()=>wf,uni:()=>ry});var Cn={};le(Cn,{SmartMatch:()=>Gc});var Za={};le(Za,{isMatch:()=>iE,matcher:()=>nE});function Tn(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}var Yc=new Map,Bg=(e,t)=>{if(!Array.isArray(e))switch(typeof e){case"string":e=[e];break;case"undefined":e=[];break;default:throw new TypeError(`Expected '${t}' to be a string or an array, but got a type of '${typeof e}'`)}return e.filter(r=>{if(typeof r!="string"){if(typeof r>"u")return!1;throw new TypeError(`Expected '${t}' to be an array of strings, but found a type of '${typeof r}' in the array`)}return!0})},rE=(e,t)=>{t={caseSensitive:!1,...t};let r=e+JSON.stringify(t);if(Yc.has(r))return Yc.get(r);let n=e[0]==="!";n&&(e=e.slice(1)),e=Tn(e).replace(/\\\*/g,"[\\s\\S]*");let i=new RegExp(`^${e}$`,t.caseSensitive?"":"i");return i.negated=n,Yc.set(r,i),i},$g=(e,t,r,n)=>{if(e=Bg(e,"inputs"),t=Bg(t,"patterns"),t.length===0)return[];t=t.map(s=>rE(s,r));let{allPatterns:i}=r||{},o=[];for(let s of e){let a,l=[...t].fill(!1);for(let[u,c]of t.entries())if(c.test(s)&&(l[u]=!0,a=!c.negated,!a))break;if(!(a===!1||a===void 0&&t.some(u=>!u.negated)||i&&l.some((u,c)=>!u&&!t[c].negated))&&(o.push(s),n))break}return o};function nE(e,t,r){return $g(e,t,r,!1)}function iE(e,t,r){return $g(e,t,r,!0).length>0}var Gc=class{constructor(t){this.wildcard=t}match(t){return Za.isMatch(t,this.wildcard)}};var Wt={};le(Wt,{CronJob:()=>Jo,CronManager:()=>of,ExtendedDate:()=>sf,HrtMeasurement:()=>af,Interval:()=>lf,TimeStamp:()=>wi,Timer:()=>uf,getMilliSecondsAsHumanReadableString:()=>nf,getMilliSecondsFromUnits:()=>rf,units:()=>Br});function mt(e,t,r,n,i,o,s,a){return mt.fromTZ(mt.tp(e,t,r,n,i,o,s),a)}mt.fromTZISO=(e,t,r)=>mt.fromTZ(sE(e,t),r);mt.fromTZ=function(e,t){let r=new Date(Date.UTC(e.y,e.m-1,e.d,e.h,e.i,e.s)),n=Jc(e.tz,r),i=new Date(r.getTime()-n),o=Jc(e.tz,i);if(o-n===0)return i;{let s=new Date(r.getTime()-o),a=Jc(e.tz,s);if(a-o===0)return s;if(!t&&a-o>0)return s;if(t)throw new Error("Invalid date passed to fromTZ()");return i}};mt.toTZ=function(e,t){let r=e.toLocaleString("en-US",{timeZone:t}).replace(/[\u202f]/," "),n=new Date(r);return{y:n.getFullYear(),m:n.getMonth()+1,d:n.getDate(),h:n.getHours(),i:n.getMinutes(),s:n.getSeconds(),tz:t}};mt.tp=(e,t,r,n,i,o,s)=>({y:e,m:t,d:r,h:n,i,s:o,tz:s});function Jc(e,t=new Date){let r=t.toLocaleString("en-US",{timeZone:e,timeZoneName:"short"}).split(" ").slice(-1)[0];r=r.replace(/\bAKST\b/g,"-0900").replace(/\bAKDT\b/g,"-0800").replace(/\bAST\b/g,"-0400");let n=t.toLocaleString("en-US").replace(/[\u202f]/," ");return Date.parse(`${n} GMT`)-Date.parse(`${n} ${r}`)}function sE(e,t){let r=new Date(Date.parse(e));if(isNaN(r))throw new Error("minitz: Invalid ISO8601 passed to parser.");let n=e.substring(9);return e.includes("Z")||n.includes("-")||n.includes("+")?mt.tp(r.getUTCFullYear(),r.getUTCMonth()+1,r.getUTCDate(),r.getUTCHours(),r.getUTCMinutes(),r.getUTCSeconds(),"Etc/UTC"):mt.tp(r.getFullYear(),r.getMonth()+1,r.getDate(),r.getHours(),r.getMinutes(),r.getSeconds(),t)}mt.minitz=mt;function aE(e){if(e===void 0&&(e={}),delete e.name,e.legacyMode=e.legacyMode===void 0?!0:e.legacyMode,e.paused=e.paused===void 0?!1:e.paused,e.maxRuns=e.maxRuns===void 0?1/0:e.maxRuns,e.catch=e.catch===void 0?!1:e.catch,e.interval=e.interval===void 0?0:parseInt(e.interval,10),e.utcOffset=e.utcOffset===void 0?void 0:parseInt(e.utcOffset,10),e.unref=e.unref===void 0?!1:e.unref,e.startAt&&(e.startAt=new We(e.startAt,e.timezone)),e.stopAt&&(e.stopAt=new We(e.stopAt,e.timezone)),e.interval!==null){if(isNaN(e.interval))throw new Error("CronOptions: Supplied value for interval is not a number");if(e.interval<0)throw new Error("CronOptions: Supplied value for interval can not be negative")}if(e.utcOffset!==void 0){if(isNaN(e.utcOffset))throw new Error("CronOptions: Invalid value passed for utcOffset, should be number representing minutes offset from UTC.");if(e.utcOffset<-870||e.utcOffset>870)throw new Error("CronOptions: utcOffset out of bounds.");if(e.utcOffset!==void 0&&e.timezone)throw new Error("CronOptions: Combining 'utcOffset' with 'timezone' is not allowed.")}if(e.unref!==!0&&e.unref!==!1)throw new Error("CronOptions: Unref should be either true, false or undefined(false).");return e}var Qc=32,Yo=31|Qc,jg=[1,2,4,8,16];function dt(e,t){this.pattern=e,this.timezone=t,this.second=Array(60).fill(0),this.minute=Array(60).fill(0),this.hour=Array(24).fill(0),this.day=Array(31).fill(0),this.month=Array(12).fill(0),this.dayOfWeek=Array(7).fill(0),this.lastDayOfMonth=!1,this.starDOM=!1,this.starDOW=!1,this.parse()}dt.prototype.parse=function(){if(!(typeof this.pattern=="string"||this.pattern.constructor===String))throw new TypeError("CronPattern: Pattern has to be of type string.");this.pattern.indexOf("@")>=0&&(this.pattern=this.handleNicknames(this.pattern).trim());let e=this.pattern.replace(/\s+/g," ").split(" ");if(e.length<5||e.length>6)throw new TypeError("CronPattern: invalid configuration format ('"+this.pattern+"'), exacly five or six space separated parts required.");if(e.length===5&&e.unshift("0"),e[3].indexOf("L")>=0&&(e[3]=e[3].replace("L",""),this.lastDayOfMonth=!0),e[3]=="*"&&(this.starDOM=!0),e[4].length>=3&&(e[4]=this.replaceAlphaMonths(e[4])),e[5].length>=3&&(e[5]=this.replaceAlphaDays(e[5])),e[5]=="*"&&(this.starDOW=!0),this.pattern.indexOf("?")>=0){let t=new We(new Date,this.timezone).getDate(!0);e[0]=e[0].replace("?",t.getSeconds()),e[1]=e[1].replace("?",t.getMinutes()),e[2]=e[2].replace("?",t.getHours()),this.starDOM||(e[3]=e[3].replace("?",t.getDate())),e[4]=e[4].replace("?",t.getMonth()+1),this.starDOW||(e[5]=e[5].replace("?",t.getDay()))}this.throwAtIllegalCharacters(e),this.partToArray("second",e[0],0,1),this.partToArray("minute",e[1],0,1),this.partToArray("hour",e[2],0,1),this.partToArray("day",e[3],-1,1),this.partToArray("month",e[4],-1,1),this.partToArray("dayOfWeek",e[5],0,Yo),this.dayOfWeek[7]&&(this.dayOfWeek[0]=this.dayOfWeek[7])};dt.prototype.partToArray=function(e,t,r,n){let i=this[e],o=e==="day"&&this.lastDayOfMonth;if(t===""&&!o)throw new TypeError("CronPattern: configuration entry "+e+" ("+t+") is empty, check for trailing spaces.");if(t==="*")return i.fill(n);let s=t.split(",");if(s.length>1)for(let a=0;a<s.length;a++)this.partToArray(e,s[a],r,n);else t.indexOf("-")!==-1&&t.indexOf("/")!==-1?this.handleRangeWithStepping(t,e,r,n):t.indexOf("-")!==-1?this.handleRange(t,e,r,n):t.indexOf("/")!==-1?this.handleStepping(t,e,r,n):t!==""&&this.handleNumber(t,e,r,n)};dt.prototype.throwAtIllegalCharacters=function(e){for(let t=0;t<e.length;t++)if((t===5?/[^/*0-9,\-#L]+/:/[^/*0-9,-]+/).test(e[t]))throw new TypeError("CronPattern: configuration entry "+t+" ("+e[t]+") contains illegal characters.")};dt.prototype.handleNumber=function(e,t,r,n){let i=this.extractNth(e,t),o=parseInt(i[0],10)+r;if(isNaN(o))throw new TypeError("CronPattern: "+t+" is not a number: '"+e+"'");this.setPart(t,o,i[1]||n)};dt.prototype.setPart=function(e,t,r){if(!Object.prototype.hasOwnProperty.call(this,e))throw new TypeError("CronPattern: Invalid part specified: "+e);if(e==="dayOfWeek"){if(t===7&&(t=0),(t<0||t>6)&&t!=="L")throw new RangeError("CronPattern: Invalid value for dayOfWeek: "+t);this.setNthWeekdayOfMonth(t,r);return}if(e==="second"||e==="minute"){if(t<0||t>=60)throw new RangeError("CronPattern: Invalid value for "+e+": "+t)}else if(e==="hour"){if(t<0||t>=24)throw new RangeError("CronPattern: Invalid value for "+e+": "+t)}else if(e==="day"){if(t<0||t>=31)throw new RangeError("CronPattern: Invalid value for "+e+": "+t)}else if(e==="month"&&(t<0||t>=12))throw new RangeError("CronPattern: Invalid value for "+e+": "+t);this[e][t]=r};dt.prototype.handleRangeWithStepping=function(e,t,r,n){let i=this.extractNth(e,t),o=i[0].match(/^(\d+)-(\d+)\/(\d+)$/);if(o===null)throw new TypeError("CronPattern: Syntax error, illegal range with stepping: '"+e+"'");let[,s,a,l]=o;if(s=parseInt(s,10)+r,a=parseInt(a,10)+r,l=parseInt(l,10),isNaN(s))throw new TypeError("CronPattern: Syntax error, illegal lower range (NaN)");if(isNaN(a))throw new TypeError("CronPattern: Syntax error, illegal upper range (NaN)");if(isNaN(l))throw new TypeError("CronPattern: Syntax error, illegal stepping: (NaN)");if(l===0)throw new TypeError("CronPattern: Syntax error, illegal stepping: 0");if(l>this[t].length)throw new TypeError("CronPattern: Syntax error, steps cannot be greater than maximum value of part ("+this[t].length+")");if(s>a)throw new TypeError("CronPattern: From value is larger than to value: '"+e+"'");for(let u=s;u<=a;u+=l)this.setPart(t,u,i[1]||n)};dt.prototype.extractNth=function(e,t){let r=e,n;if(r.includes("#")){if(t!=="dayOfWeek")throw new Error("CronPattern: nth (#) only allowed in day-of-week field");n=r.split("#")[1],r=r.split("#")[0]}return[r,n]};dt.prototype.handleRange=function(e,t,r,n){let i=this.extractNth(e,t),o=i[0].split("-");if(o.length!==2)throw new TypeError("CronPattern: Syntax error, illegal range: '"+e+"'");let s=parseInt(o[0],10)+r,a=parseInt(o[1],10)+r;if(isNaN(s))throw new TypeError("CronPattern: Syntax error, illegal lower range (NaN)");if(isNaN(a))throw new TypeError("CronPattern: Syntax error, illegal upper range (NaN)");if(s>a)throw new TypeError("CronPattern: From value is larger than to value: '"+e+"'");for(let l=s;l<=a;l++)this.setPart(t,l,i[1]||n)};dt.prototype.handleStepping=function(e,t,r,n){let i=this.extractNth(e,t),o=i[0].split("/");if(o.length!==2)throw new TypeError("CronPattern: Syntax error, illegal stepping: '"+e+"'");let s=0;o[0]!=="*"&&(s=parseInt(o[0],10)+r);let a=parseInt(o[1],10);if(isNaN(a))throw new TypeError("CronPattern: Syntax error, illegal stepping: (NaN)");if(a===0)throw new TypeError("CronPattern: Syntax error, illegal stepping: 0");if(a>this[t].length)throw new TypeError("CronPattern: Syntax error, max steps for part is ("+this[t].length+")");for(let l=s;l<this[t].length;l+=a)this.setPart(t,l,i[1]||n)};dt.prototype.replaceAlphaDays=function(e){return e.replace(/-sun/gi,"-7").replace(/sun/gi,"0").replace(/mon/gi,"1").replace(/tue/gi,"2").replace(/wed/gi,"3").replace(/thu/gi,"4").replace(/fri/gi,"5").replace(/sat/gi,"6")};dt.prototype.replaceAlphaMonths=function(e){return e.replace(/jan/gi,"1").replace(/feb/gi,"2").replace(/mar/gi,"3").replace(/apr/gi,"4").replace(/may/gi,"5").replace(/jun/gi,"6").replace(/jul/gi,"7").replace(/aug/gi,"8").replace(/sep/gi,"9").replace(/oct/gi,"10").replace(/nov/gi,"11").replace(/dec/gi,"12")};dt.prototype.handleNicknames=function(e){let t=e.trim().toLowerCase();return t==="@yearly"||t==="@annually"?"0 0 1 1 *":t==="@monthly"?"0 0 1 * *":t==="@weekly"?"0 0 * * 0":t==="@daily"?"0 0 * * *":t==="@hourly"?"0 * * * *":e};dt.prototype.setNthWeekdayOfMonth=function(e,t){if(t==="L")this.dayOfWeek[e]=this.dayOfWeek[e]|Qc;else if(t<6&&t>0)this.dayOfWeek[e]=this.dayOfWeek[e]|jg[t-1];else if(t===Yo)this.dayOfWeek[e]=Yo;else throw new TypeError(`CronPattern: nth weekday of of range, should be 1-5 or L. Value: ${t}`)};var zg=[31,28,31,30,31,30,31,31,30,31,30,31],gr=[["month","year",0],["day","month",-1],["hour","day",0],["minute","hour",0],["second","minute",0]];function We(e,t){if(this.tz=t,e&&e instanceof Date)if(!isNaN(e))this.fromDate(e);else throw new TypeError("CronDate: Invalid date passed to CronDate constructor");else if(e===void 0)this.fromDate(new Date);else if(e&&typeof e=="string")this.fromString(e);else if(e instanceof We)this.fromCronDate(e);else throw new TypeError("CronDate: Invalid type ("+typeof e+") passed to CronDate constructor")}We.prototype.isNthWeekdayOfMonth=function(e,t,r,n){let o=new Date(Date.UTC(e,t,r)).getUTCDay(),s=0;for(let a=1;a<=r;a++)new Date(Date.UTC(e,t,a)).getUTCDay()===o&&s++;if(n&Yo&&jg[s-1]&n)return!0;if(n&Qc){let a=new Date(Date.UTC(e,t+1,0)).getUTCDate();for(let l=r+1;l<=a;l++)if(new Date(Date.UTC(e,t,l)).getUTCDay()===o)return!1;return!0}return!1};We.prototype.fromDate=function(e){if(this.tz!==void 0)if(typeof this.tz=="number")this.ms=e.getUTCMilliseconds(),this.second=e.getUTCSeconds(),this.minute=e.getUTCMinutes()+this.tz,this.hour=e.getUTCHours(),this.day=e.getUTCDate(),this.month=e.getUTCMonth(),this.year=e.getUTCFullYear(),this.apply();else{let t=mt.toTZ(e,this.tz);this.ms=e.getMilliseconds(),this.second=t.s,this.minute=t.i,this.hour=t.h,this.day=t.d,this.month=t.m-1,this.year=t.y}else this.ms=e.getMilliseconds(),this.second=e.getSeconds(),this.minute=e.getMinutes(),this.hour=e.getHours(),this.day=e.getDate(),this.month=e.getMonth(),this.year=e.getFullYear()};We.prototype.fromCronDate=function(e){this.tz=e.tz,this.year=e.year,this.month=e.month,this.day=e.day,this.hour=e.hour,this.minute=e.minute,this.second=e.second,this.ms=e.ms};We.prototype.apply=function(){if(this.month>11||this.day>zg[this.month]||this.hour>59||this.minute>59||this.second>59||this.hour<0||this.minute<0||this.second<0){let e=new Date(Date.UTC(this.year,this.month,this.day,this.hour,this.minute,this.second,this.ms));return this.ms=e.getUTCMilliseconds(),this.second=e.getUTCSeconds(),this.minute=e.getUTCMinutes(),this.hour=e.getUTCHours(),this.day=e.getUTCDate(),this.month=e.getUTCMonth(),this.year=e.getUTCFullYear(),!0}else return!1};We.prototype.fromString=function(e){return this.fromDate(mt.fromTZISO(e,this.tz))};We.prototype.findNext=function(e,t,r,n){let i=this[t],o;r.lastDayOfMonth&&(this.month!==1?o=zg[this.month]:o=new Date(Date.UTC(this.year,this.month+1,0,0,0,0,0)).getUTCDate());let s=!r.starDOW&&t=="day"?new Date(Date.UTC(this.year,this.month,1,0,0,0,0)).getUTCDay():void 0;for(let a=this[t]+n;a<r[t].length;a++){let l=r[t][a];if(t==="day"&&r.lastDayOfMonth&&a-n==o&&(l=!0),t==="day"&&!r.starDOW){let u=r.dayOfWeek[(s+(a-n-1))%7];if(u&&u&Yo)u=this.isNthWeekdayOfMonth(this.year,this.month,a-n,u);else if(u)throw new Error(`CronDate: Invalid value for dayOfWeek encountered. ${u}`);e.legacyMode&&!r.starDOM?l=l||u:l=l&&u}if(l)return this[t]=a-n,i!==this[t]?2:1}return 3};We.prototype.recurse=function(e,t,r){let n=this.findNext(t,gr[r][0],e,gr[r][2]);if(n>1){let i=r+1;for(;i<gr.length;)this[gr[i][0]]=-gr[i][2],i++;if(n===3)return this[gr[r][1]]++,this[gr[r][0]]=-gr[r][2],this.apply(),this.recurse(e,t,0);if(this.apply())return this.recurse(e,t,r-1)}return r+=1,r>=gr.length?this:this.year>=3e3?null:this.recurse(e,t,r)};We.prototype.increment=function(e,t,r){return this.second+=t.interval>1&&r?t.interval:1,this.ms=0,this.apply(),this.recurse(e,t,0)};We.prototype.getDate=function(e){return e||this.tz===void 0?new Date(this.year,this.month,this.day,this.hour,this.minute,this.second,this.ms):typeof this.tz=="number"?new Date(Date.UTC(this.year,this.month,this.day,this.hour,this.minute-this.tz,this.second,this.ms)):mt(this.year,this.month+1,this.day,this.hour,this.minute,this.second,this.tz)};We.prototype.getTime=function(){return this.getDate().getTime()};function Xa(e){return Object.prototype.toString.call(e)==="[object Function]"||typeof e=="function"||e instanceof Function}function lE(e){typeof Deno<"u"&&typeof Deno.unrefTimer<"u"?Deno.unrefTimer(e):e&&typeof e.unref<"u"&&e.unref()}var Ug=30*1e3,Go=[];function Ee(e,t,r){if(!(this instanceof Ee))return new Ee(e,t,r);let n,i;if(Xa(t))i=t;else if(typeof t=="object")n=t;else if(t!==void 0)throw new Error("Cron: Invalid argument passed for optionsIn. Should be one of function, or object (options).");if(Xa(r))i=r;else if(typeof r=="object")n=r;else if(r!==void 0)throw new Error("Cron: Invalid argument passed for funcIn. Should be one of function, or object (options).");if(this.name=n?n.name:void 0,this.options=aE(n),this._states={kill:!1,blocking:!1,previousRun:void 0,currentRun:void 0,once:void 0,currentTimeout:void 0,maxRuns:n?n.maxRuns:void 0,paused:n?n.paused:!1,pattern:void 0},e&&(e instanceof Date||typeof e=="string"&&e.indexOf(":")>0)?this._states.once=new We(e,this.options.timezone||this.options.utcOffset):this._states.pattern=new dt(e,this.options.timezone),this.name){if(Go.find(s=>s.name===this.name))throw new Error("Cron: Tried to initialize new named job '"+this.name+"', but name already taken.");Go.push(this)}return i!==void 0&&(this.fn=i,this.schedule()),this}Ee.prototype.nextRun=function(e){let t=this._next(e);return t?t.getDate():null};Ee.prototype.nextRuns=function(e,t){e>this._states.maxRuns&&(e=this._states.maxRuns);let r=[],n=t||this._states.currentRun;for(;e--&&(n=this.nextRun(n));)r.push(n);return r};Ee.prototype.getPattern=function(){return this._states.pattern?this._states.pattern.pattern:void 0};Ee.prototype.isRunning=function(){let e=this.nextRun(this._states.currentRun),t=!this._states.paused,r=this.fn!==void 0,n=!this._states.kill;return t&&r&&n&&e!==null};Ee.prototype.isStopped=function(){return this._states.kill};Ee.prototype.isBusy=function(){return this._states.blocking};Ee.prototype.currentRun=function(){return this._states.currentRun?this._states.currentRun.getDate():null};Ee.prototype.previousRun=function(){return this._states.previousRun?this._states.previousRun.getDate():null};Ee.prototype.msToNext=function(e){e=e||new Date;let t=this._next(e);return t?t.getTime()-e.getTime():null};Ee.prototype.stop=function(){this._states.kill=!0,this._states.currentTimeout&&clearTimeout(this._states.currentTimeout);let e=Go.indexOf(this);e>=0&&Go.splice(e,1)};Ee.prototype.pause=function(){return this._states.paused=!0,!this._states.kill};Ee.prototype.resume=function(){return this._states.paused=!1,!this._states.kill};Ee.prototype.schedule=function(e){if(e&&this.fn)throw new Error("Cron: It is not allowed to schedule two functions using the same Croner instance.");e&&(this.fn=e);let t=this.msToNext(),r=this.nextRun(this._states.currentRun);return t===null||r===null?this:(t>Ug&&(t=Ug),this._states.currentTimeout=setTimeout(()=>this._checkTrigger(r),t),this._states.currentTimeout&&this.options.unref&&lE(this._states.currentTimeout),this)};Ee.prototype._trigger=async function(e){if(this._states.blocking=!0,this._states.currentRun=new We(void 0,this.options.timezone||this.options.utcOffset),this.options.catch)try{await this.fn(this,this.options.context)}catch(t){Xa(this.options.catch)&&this.options.catch(t,this)}else await this.fn(this,this.options.context);this._states.previousRun=new We(e,this.options.timezone||this.options.utcOffset),this._states.blocking=!1};Ee.prototype.trigger=async function(){await this._trigger()};Ee.prototype._checkTrigger=function(e){let t=new Date,r=!this._states.paused&&t.getTime()>=e,n=this._states.blocking&&this.options.protect;r&&!n?(this._states.maxRuns--,this._trigger()):r&&n&&Xa(this.options.protect)&&setTimeout(()=>this.options.protect(this),0),this.schedule()};Ee.prototype._next=function(e){let t=!!(e||this._states.currentRun);e=new We(e,this.options.timezone||this.options.utcOffset),this.options.startAt&&e&&e.getTime()<this.options.startAt.getTime()&&(e=this.options.startAt);let r=this._states.once||new We(e,this.options.timezone||this.options.utcOffset).increment(this._states.pattern,this.options,t);return this._states.once&&this._states.once.getTime()<=e.getTime()||r===null||this._states.maxRuns<=0||this._states.kill||this.options.stopAt&&r.getTime()>=this.options.stopAt.getTime()?null:r};Ee.Cron=Ee;Ee.scheduledJobs=Go;var xi=$e(qg(),1),Vg=$e(Hg(),1);function tf(e){if(typeof e!="number")throw new TypeError("Expected a number");let t=e>0?Math.floor:Math.ceil;return{days:t(e/864e5),hours:t(e/36e5)%24,minutes:t(e/6e4)%60,seconds:t(e/1e3)%60,milliseconds:t(e)%1e3,microseconds:t(e*1e3)%1e3,nanoseconds:t(e*1e6)%1e3}}var uE=(e,t)=>t===1?e:`${e}s`,cE=1e-7;function Ka(e,t={}){if(!Number.isFinite(e))throw new TypeError("Expected a finite number");t.colonNotation&&(t.compact=!1,t.formatSubMilliseconds=!1,t.separateMilliseconds=!1,t.verbose=!1),t.compact&&(t.secondsDecimalDigits=0,t.millisecondsDecimalDigits=0);let r=[],n=(s,a)=>{let l=Math.floor(s*10**a+cE);return(Math.round(l)/10**a).toFixed(a)},i=(s,a,l,u)=>{if((r.length===0||!t.colonNotation)&&s===0&&!(t.colonNotation&&l==="m"))return;u=(u||s||"0").toString();let c,f;if(t.colonNotation){c=r.length>0?":":"",f="";let p=u.includes(".")?u.split(".")[0].length:u.length,h=r.length>0?2:1;u="0".repeat(Math.max(0,h-p))+u}else c="",f=t.verbose?" "+uE(a,s):l;r.push(c+u+f)},o=tf(e);if(i(Math.trunc(o.days/365),"year","y"),i(o.days%365,"day","d"),i(o.hours,"hour","h"),i(o.minutes,"minute","m"),t.separateMilliseconds||t.formatSubMilliseconds||!t.colonNotation&&e<1e3)if(i(o.seconds,"second","s"),t.formatSubMilliseconds)i(o.milliseconds,"millisecond","ms"),i(o.microseconds,"microsecond","\xB5s"),i(o.nanoseconds,"nanosecond","ns");else{let s=o.milliseconds+o.microseconds/1e3+o.nanoseconds/1e6,a=typeof t.millisecondsDecimalDigits=="number"?t.millisecondsDecimalDigits:0,l=s>=1?Math.round(s):Math.ceil(s),u=a?s.toFixed(a):l;i(Number.parseFloat(u),"millisecond","ms",u)}else{let s=e/1e3%60,a=typeof t.secondsDecimalDigits=="number"?t.secondsDecimalDigits:1,l=n(s,a),u=t.keepDecimalsOnWholeSeconds?l:l.replace(/\.0+$/,"");i(Number.parseFloat(u),"second","s",u)}if(r.length===0)return"0"+(t.verbose?" milliseconds":"ms");if(t.compact)return r[0];if(typeof t.unitCount=="number"){let s=t.colonNotation?"":" ";return r.slice(0,Math.max(t.unitCount,1)).join(s)}return t.colonNotation?r.join(""):r.join(" ")}xi.default.extend(Vg.default);var Jo=class{constructor(t,r,n){this.status="initial",this.nextExecutionUnix=0,this.cronExpression=r,this.jobFunction=n,this.cronParser=Ee(r)}checkExecution(){if(this.nextExecutionUnix===0&&this.getNextExecutionTime(),Date.now()>this.nextExecutionUnix){let t=this.jobFunction(this.nextExecutionUnix);t instanceof Promise&&t.catch(r=>console.log(r)),this.nextExecutionUnix=this.getNextExecutionTime()}return this.nextExecutionUnix}getNextExecutionTime(){return this.nextExecutionUnix=Date.now()+this.getTimeToNextExecution()}getTimeToNextExecution(){return this.cronParser.msToNext()}start(){this.status="started"}stop(){this.status="stopped"}};var Br={years:(e=1)=>e*3154e7,months:(e=1)=>e*2628e6,weeks:(e=1)=>e*6048e5,days:(e=1)=>e*864e5,hours:(e=1)=>e*36e5,minutes:(e=1)=>e*6e4,seconds:(e=1)=>e*1e3},rf=e=>{let t=0,r=n=>{t=t+n};return e.years&&r(Br.years(e.years)),e.months&&r(Br.months(e.months)),e.weeks&&r(Br.weeks(e.weeks)),e.days&&r(Br.days(e.days)),e.hours&&r(Br.hours(e.hours)),e.minutes&&r(Br.minutes(e.minutes)),e.seconds&&r(Br.seconds(e.seconds)),t},nf=e=>Ka(e);var of=class{constructor(){this.status="stopped",this.cronjobs=new ft.ObjectMap}addCronjob(t,r){let n=new Jo(this,t,r);return this.cronjobs.add(n),this.status==="started"&&n.start(),n}removeCronjob(t){t.stop(),this.cronjobs.remove(t)}start(){if(this.status!=="started"){this.status="started";for(let t of this.cronjobs.getArray())t.start();this.runCronCycle()}}async runCronCycle(){this.executionTimeout=new he.Timeout(0);do{let t;for(let r of this.cronjobs.getArray())r.checkExecution(),(!t||r.getTimeToNextExecution()<t.getTimeToNextExecution())&&(t=r);t?(this.executionTimeout=new he.Timeout(t.getTimeToNextExecution()),console.log(`Next CronJob scheduled in ${nf(this.executionTimeout.getTimeLeft())}`)):(this.executionTimeout=new he.Timeout(1e3),console.log("no cronjobs specified! Checking again in 1 second")),await this.executionTimeout.promise}while(this.status==="started")}stop(){this.status==="started"?(this.status="stopped",this.executionTimeout.cancel()):console.log("You tried to stop a CronManager that was not actually started.");for(let t of this.cronjobs.getArray())t.stop()}};var sf=class e extends Date{static fromMillis(t){return new e(t)}static fromDate(t){return new e(t.getTime())}static fromEuropeanDate(t){let r=/(.*)\.(.*)\.(.*)/.exec(t),i=new Date(parseFloat(r[3]),parseFloat(r[2])-1,parseFloat(r[1])).getTime();return new e(i)}static fromHyphedDate(t){let r=new Date(t).getTime();return new e(r)}static fromEuropeanDateAndTime(t,r="12:00:00",n="Europe/Berlin"){let i=/(.*)\.(.*)\.(.*)/.exec(t),o=u=>`0${u}`.slice(-2),s=`${i[3]}-${o(i[2])}-${o(i[1])}T${r}`,l=xi.default(s).toDate().getTime();return new e(l)}constructor(t=Date.now()){super(t)}exportToEuropeanDate(){let t=this.exportToUnits();return`${t.dayString}.${t.monthString}.${t.yearString}`}exportToHyphedSortableDate(){let t=this.exportToUnits();return`${t.yearString}-${t.monthString}-${t.dayString}`}exportToUnits(){let t=["January","February","March","April","May","June","July","August","September","October","November","December"],r=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"];return{year:this.getFullYear(),yearString:`${this.getFullYear()}`,month:this.getMonth()+1,monthString:("0"+(this.getMonth()+1)).slice(-2),monthName:t[this.getMonth()],day:this.getDate(),dayString:("0"+this.getDate()).slice(-2),dayOfTheWeek:this.getDay(),dayOfTheWeekName:r[this.getDay()]}}format(t){return xi.default(this.getTime()).format(t)}isToday(){return xi.default(this.getTime()).isToday()}lessTimePassedToNow(t){let r=rf(t);return Date.now()-this.getTime()<r}moreTimePassedToNow(t){return!this.lessTimePassedToNow(t)}};var af=class{constructor(){this.nanoSeconds=null,this.milliSeconds=null,this._milliStart=null,this._milliDiff=null,this._started=!1}start(){this._started=!0,this._milliStart=Date.now()}stop(){if(this._started===!1){console.log("Hasn't started yet");return}return this._milliDiff=Date.now()-this._milliStart,this.nanoSeconds=this._milliDiff*1e3,this.milliSeconds=this._milliDiff,this}reset(){this.nanoSeconds=null,this.milliSeconds=null,this._milliStart=null,this._milliDiff=null,this._started=!1}};var lf=class{constructor(t){this.status="initial",this.statusAuthorization=null,this.intervalJobs=[],this.intervalMilliseconds=t}start(){this.status="started";let t=new Date;this.statusAuthorization=t,(async()=>{for(;this.status==="started"&&this.statusAuthorization===t;)await he.delayFor(this.intervalMilliseconds),this.executeIntervalJobs()})()}stop(){this.status="stopped",this.statusAuthorization=null}addIntervalJob(t){this.intervalJobs.push(t)}executeIntervalJobs(){for(let t of this.intervalJobs)t()}};var wi=class e{static fromMilliSeconds(t){return new e(t)}static fromTimeStamp(t){let r=new e;return r.change=r.milliSeconds-t.milliSeconds,r}constructor(t){this.change=null,t?typeof t=="number"&&(this.date=new Date(t)):this.date=new Date,this.milliSeconds=this.date.getTime(),this.epochtime=Math.floor(this.milliSeconds/1e3)}isOlderThanOtherTimeStamp(t,r=0){return this.milliSeconds<t.milliSeconds-r}isOlderThan(t,r=0){return this.milliSeconds+r<t.milliSeconds}isYoungerThanOtherTimeStamp(t,r=0){return this.milliSeconds>t.milliSeconds+r}isYoungerThanMilliSeconds(t){let n=new e().epochtime-t,i=new e(n);return this.isYoungerThanOtherTimeStamp(i)}};var uf=class{get timeLeft(){return this.timeInMilliseconds-this.pausedAt.change}constructor(t){this.state="initiated",this.completedDeferred=re.defer(),this.timeInMilliseconds=t,this.completed=this.completedDeferred.promise}start(){if(!this.startedAt)this.currentTimeout=setTimeout(()=>{this.completedDeferred.resolve()},this.timeInMilliseconds),this.startedAt=new wi;else throw new Error("timer has been started before. Please use resume instead")}pause(){this.startedAt&&(clearTimeout(this.currentTimeout),this.currentTimeout=null,this.pausedAt=wi.fromTimeStamp(this.startedAt))}resume(){if(this.startedAt)this.currentTimeout=setTimeout(()=>{this.completedDeferred.resolve()},this.timeLeft);else throw new Error("timer has NOT been started before. Please use .start() instead")}reset(){this.pause(),this.startedAt=null,this.pausedAt=null}};var pf=$e(ff(),1);var hf=class{constructor(){this.executionSlots=[],this.isProcessing=!1}async getExclusiveExecutionSlot(t,r){let n=re.defer(),i={funcToExecute:t,executionDeferred:n,timeout:r,mode:"exclusive"};return this.executionSlots.push(i),this.processExecutionSlots(),n.promise}async getNonExclusiveExecutionSlot(t,r){let n=re.defer(),i={funcToExecute:t,executionDeferred:n,timeout:r,mode:"nonexclusive"};return this.executionSlots.push(i),this.processExecutionSlots(),n.promise}async processExecutionSlots(){if(!this.isProcessing){for(this.isProcessing=!0;this.executionSlots.length>0;){let t=this.executionSlots[0];if(t.mode==="exclusive")await this.executeExclusiveSlot(t),this.executionSlots.shift();else{let r=[];for(;this.executionSlots.length>0&&this.executionSlots[0].mode==="nonexclusive";)r.push(this.executionSlots.shift());await this.executeNonExclusiveSlots(r)}}this.isProcessing=!1}}async executeExclusiveSlot(t){try{if(t.timeout){let r=await Promise.race([t.funcToExecute(),he.delayFor(t.timeout).then(()=>{throw new Error("Timeout reached")})]);t.executionDeferred.resolve(r)}else{let r=await t.funcToExecute();t.executionDeferred.resolve(r)}}catch(r){t.executionDeferred.reject(r)}}async executeNonExclusiveSlots(t){let r=t.map(async n=>{try{if(n.timeout){let i=await Promise.race([n.funcToExecute(),he.delayFor(n.timeout).then(()=>{throw new Error("Timeout reached")})]);n.executionDeferred.resolve(i)}else{let i=await n.funcToExecute();n.executionDeferred.resolve(i)}}catch(i){n.executionDeferred.reject(i)}});await Promise.all(r)}};var mf=class{constructor(t=16){this.hasSpace=new Se.rxjs.Subject,this.itemsAvailable=new Se.rxjs.Subject,this.data=[],this.highWaterMark=t}push(t){this.data.push(t),this.itemsAvailable.next("itemsAvailable");let r=this.checkSpaceAvailable();return r&&this.hasSpace.next("hasSpace"),r}shift(){let t=this.data.shift();return this.checkSpaceAvailable()&&this.hasSpace.next("hasSpace"),t}checkSpaceAvailable(){return this.data.length<this.highWaterMark}checkHasItems(){return this.data.length>0}waitForSpace(){return new Promise(t=>{if(this.checkSpaceAvailable())t();else{let r=this.hasSpace.subscribe(()=>{r.unsubscribe(),t()})}})}waitForItems(){return new Promise(t=>{if(this.data.length>0)t();else{let r=this.itemsAvailable.subscribe(()=>{r.unsubscribe(),t()})}})}};var Qo=class e{constructor(){this.mapObject={}}isUniqueKey(t){return!this.mapObject[t]}addToMap(t,r,n){return this.isUniqueKey(t)||n&&n.force?(this.mapObject[t]=r,!0):!1}getByKey(t){return this.mapObject[t]}removeFromMap(t){let r=this.getByKey(t);return delete this.mapObject[t],r}getKeys(){let t=[];for(let r in this.mapObject)this.mapObject[r]&&t.push(r);return t}clean(){this.mapObject={}}concat(t){let r=new e;for(let n of this.getKeys())r.addToMap(n,this.getByKey(n));for(let n of t.getKeys())r.addToMap(n,t.getByKey(n),{force:!0});return r}addAllFromOther(t){for(let r of t.getKeys())this.addToMap(r,t.getByKey(r),{force:!0})}async find(t){for(let r of this.getKeys()){let n=this.getByKey(r);if(await t(n))return n}}};var ry=(e="uni")=>`${e}xxxxxxxxxxx`.replace(/[xy]/g,t=>{let r=Math.random()*16|0;return(t==="x"?r:r&3|8).toString(16)}),En=class e{constructor(){this.fastMap=new Qo,this.eventSubject=new Se.rxjs.Subject}addMappedUnique(t,r){this.fastMap.addToMap(t,r)}getMappedUnique(t){return this.fastMap.getByKey(t)}removeMappedUnique(t){let r=this.getMappedUnique(t)}add(t){for(let n of this.fastMap.getKeys())if(this.fastMap.getByKey(n)===t)return n;let r=ry("key");return this.addMappedUnique(r,t),this.eventSubject.next({operation:"add",payload:t}),r}addArray(t){for(let r of t)this.add(r)}checkForObject(t){return!!this.getKeyForObject(t)}getKeyForObject(t){let r=null;for(let n of this.fastMap.getKeys())if(!r&&this.fastMap.getByKey(n)===t)r=n;else continue;return r}async find(t){return this.fastMap.find(t)}findSync(t){for(let r of this.fastMap.getKeys())if(t(this.fastMap.getByKey(r)))return this.getMappedUnique(r)}async findOneAndRemove(t){let r=await this.find(t);return r&&this.remove(r),r}findOneAndRemoveSync(t){let r=this.findSync(t);return r&&this.remove(r),r}async forEach(t){for(let r of this.fastMap.getKeys())await t(this.fastMap.getByKey(r))}getOneAndRemove(){let t=this.fastMap.getKeys();if(t.length===0)return null;{let r=t[0],n=this.fastMap.removeFromMap(r);return this.eventSubject.next({operation:"remove",payload:n}),n}}getArray(){let t=[];for(let r of this.fastMap.getKeys())t.push(this.fastMap.getByKey(r));return t}isEmpty(){return this.fastMap.getKeys().length===0}remove(t){if(this.checkForObject(t)){let r=this.getKeyForObject(t),n=this.fastMap.removeFromMap(r);return this.eventSubject.next({operation:"remove",payload:n}),n}return null}wipe(){for(let t of this.fastMap.getKeys())this.fastMap.removeFromMap(t)}concat(t){let r=new e;return r.fastMap.addAllFromOther(this.fastMap),r.fastMap.addAllFromOther(t.fastMap),r}addAllFromOther(t){this.fastMap.addAllFromOther(t.fastMap)}};var Zo=class{get comparisonString(){return this.comparisonFunc(this.originalInterest)}fullfillInterest(t){this.isFullfilled=!0,this.fullfillmentStore=[],this.interestDeferred.resolve(t)}constructor(t,r,n,i){this.destructionTimer=new Wt.Timer(1e4),this.isFullfilled=!1,this.fullfillmentStore=[],this.interestDeferred=new re.Deferred,this.interestFullfilled=this.interestDeferred.promise,this.interestMapRef=t,this.originalInterest=r,this.comparisonFunc=n,this.options=i,this.destructionTimer.completed.then(()=>{this.destroy()}),this.options?.markLostAfterDefault&&he.delayFor(this.options.markLostAfterDefault).then(this.markLost)}destroy(){this.interestMapRef.removeInterest(this),!this.isFullfilled&&this.options.defaultFullfillment&&this.fullfillInterest(this.options.defaultFullfillment)}markLost(){this.destructionTimer.start()}renew(){this.destructionTimer.reset()}};var df=class{constructor(t,r={}){this.interestObjectMap=new En,this.interestObservable=new Se.ObservableIntake,this.comparisonFunc=t,this.options=r}async addInterest(t,r){let n=this.comparisonFunc(t),i,o=new Zo(this,t,this.comparisonFunc,{markLostAfterDefault:this.options.markLostAfterDefault,defaultFullfillment:r}),s=!1;return await this.interestObjectMap.forEach(a=>{!s&&a.comparisonString===o.comparisonString&&(console.log("info",`interest already exists for ${o.comparisonString}`),s=!0,i=a,i.renew())}),i||(i=o,this.interestObjectMap.add(i)),this.interestObservable.push(i),i}removeInterest(t){let r=this.interestObjectMap.findOneAndRemoveSync(n=>t.comparisonString===n.comparisonString)}checkInterest(t){let r=this.comparisonFunc(t);return this.checkInterestByString(r)}checkInterestByString(t){return!!this.interestObjectMap.findSync(n=>n.comparisonString===t)}informLostInterest(t){let r=this.findInterest(t);r&&r.markLost()}findInterest(t){let r=this.comparisonFunc(t);return this.interestObjectMap.findSync(i=>i.comparisonString===r)}};var gf=class{constructor(t){this.array=[],this.arrayLimit=t}addOne(t){this.array.unshift(t),this.array.length>this.arrayLimit&&(this.array.length=this.arrayLimit)}addMany(t){for(let r of t)this.addOne(r)}setLimit(t){this.arrayLimit=t,this.array.length>this.arrayLimit&&(this.array.length=this.arrayLimit)}getAverage(){if(typeof this.array[0]=="number"){let t=0;for(let r of this.array)t=t+r;return t/this.array.length}else return null}};var yf=class{constructor(){this.referenceObjectMap=new En}checkAndTrack(t){return this.referenceObjectMap.checkForObject(t)?!1:(this.referenceObjectMap.add(t),!0)}};var xf=class{constructor(){this._stringArray=[],this._triggerUntilTrueFunctionArray=[]}addString(t){this._stringArray.push(t),this.notifyTrigger()}addStringArray(t){for(let r of t)this.addString(r)}removeString(t){for(let r in this._stringArray)this._stringArray[r]===t&&this._stringArray.splice(parseInt(r),1);this.notifyTrigger()}wipe(){this._stringArray=[],this.notifyTrigger()}checkString(t){return this._stringArray.indexOf(t)!==-1}checkMinimatch(t){let r=new Cn.SmartMatch(t),n=!1;for(let i of this._stringArray)r.match(i)&&(n=!0);return n}checkIsEmpty(){return this._stringArray.length===0}getStringArray(){let t=[];for(let r of this._stringArray)t.push(r);return t}registerUntilTrue(t,r){let n=re.defer();return this._triggerUntilTrueFunctionArray.push(()=>{let i=t(this.getStringArray());return i===!0&&(r&&r(),n.resolve()),i}),this.notifyTrigger(),n.promise}notifyTrigger(){let t=this._triggerUntilTrueFunctionArray.filter(r=>!r());this._triggerUntilTrueFunctionArray=t}};var bf=class{constructor(t){this.storageArray=[],this.options=t}checkAggregationStatus(){let t=()=>{this.aggregationTimer=new Wt.Timer(this.options.aggregationIntervalInMillis),this.aggregationTimer.completed.then(()=>{let r=this.storageArray;if(r.length===0){this.aggregationTimer=null;return}this.storageArray=[],t(),this.options.functionForAggregation(r)}),this.aggregationTimer.start()};this.aggregationTimer||t()}add(t){this.storageArray.push(t),this.checkAggregationStatus()}};var wf=class{constructor(){this.symbolTree=new pf.default}initialize(t){return this.symbolTree.initialize(t)}hasChildren(t){return this.symbolTree.hasChildren(t)}firstChild(t){return this.symbolTree.firstChild(t)}lastChild(t){return this.symbolTree.lastChild(t)}previousSibling(t){return this.symbolTree.previousSibling(t)}nextSibling(t){return this.symbolTree.nextSibling(t)}parent(t){return this.symbolTree.parent(t)}lastInclusiveDescendant(t){return this.symbolTree.lastInclusiveDescendant(t)}preceding(t,r){return this.symbolTree.preceding(t,r)}following(t,r){return this.symbolTree.following(t,r)}childrenToArray(t,r){return this.symbolTree.childrenToArray(t,r)}ancestorsToArray(t,r){return this.symbolTree.ancestorsToArray(t,r)}treeToArray(t,r){return this.symbolTree.treeToArray(t,r)}childrenIterator(t,r){return this.symbolTree.childrenIterator(t,r)}previousSiblingsIterator(t){return this.symbolTree.previousSiblingsIterator(t)}nextSiblingsIterator(t){return this.symbolTree.nextSiblingsIterator()}ancestorsIterator(t){this.symbolTree.ancestorsIterator()}treeIterator(t,r){return this.symbolTree.treeIterator(t)}index(t){return this.symbolTree.index(t)}childrenCount(t){return this.symbolTree.childrenCount(t)}compareTreePosition(t,r){return this.compareTreePosition(t,r)}remove(t){return this.symbolTree.remove(t)}insertBefore(t,r){return this.symbolTree.insertBefore(t,r)}insertAfter(t,r){return this.symbolTree.insertAfter(t,r)}prependChild(t,r){return this.symbolTree.prependChild(t,r)}appendChild(t,r){return this.symbolTree.appendChild(t,r)}toJsonWithHierachy(t){let r=this.treeIterator(t,{});for(let n of r)console.log(n)}fromJsonWithHierachy(t){}};var Ko={};le(Ko,{base64ToUint8Array:()=>RE,ensurePureUint8Array:()=>$E,isBufferLike:()=>BE,isUint8Array:()=>LE,uInt8ArrayExtras:()=>NE,uInt8ArrayToBase64:()=>FE});var _n={};le(_n,{areUint8ArraysEqual:()=>wE,assertUint8Array:()=>zr,assertUint8ArrayOrArrayBuffer:()=>sy,base64ToString:()=>EE,base64ToUint8Array:()=>cy,compareUint8Arrays:()=>vE,concatUint8Arrays:()=>bE,getUintBE:()=>OE,hexToUint8Array:()=>DE,includes:()=>ME,indexOf:()=>fy,isUint8Array:()=>vf,stringToBase64:()=>CE,stringToUint8Array:()=>ly,toUint8Array:()=>xE,uint8ArrayToBase64:()=>uy,uint8ArrayToHex:()=>IE,uint8ArrayToString:()=>ay});var hE=Object.prototype.toString,mE="[object Uint8Array]",dE="[object ArrayBuffer]";function oy(e,t,r){return e?e.constructor===t?!0:hE.call(e)===r:!1}function vf(e){return oy(e,Uint8Array,mE)}function gE(e){return oy(e,ArrayBuffer,dE)}function yE(e){return vf(e)||gE(e)}function zr(e){if(!vf(e))throw new TypeError(`Expected \`Uint8Array\`, got \`${typeof e}\``)}function sy(e){if(!yE(e))throw new TypeError(`Expected \`Uint8Array\` or \`ArrayBuffer\`, got \`${typeof e}\``)}function xE(e){if(e instanceof ArrayBuffer)return new Uint8Array(e);if(ArrayBuffer.isView(e))return new Uint8Array(e.buffer,e.byteOffset,e.byteLength);throw new TypeError(`Unsupported value, got \`${typeof e}\`.`)}function bE(e,t){if(e.length===0)return new Uint8Array(0);t??=e.reduce((i,o)=>i+o.length,0);let r=new Uint8Array(t),n=0;for(let i of e)zr(i),r.set(i,n),n+=i.length;return r}function wE(e,t){if(zr(e),zr(t),e===t)return!0;if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}function vE(e,t){zr(e),zr(t);let r=Math.min(e.length,t.length);for(let n=0;n<r;n++){let i=e[n]-t[n];if(i!==0)return Math.sign(i)}return Math.sign(e.length-t.length)}var ny={utf8:new globalThis.TextDecoder("utf8")};function ay(e,t="utf8"){return sy(e),ny[t]??=new globalThis.TextDecoder(t),ny[t].decode(e)}function Xo(e){if(typeof e!="string")throw new TypeError(`Expected \`string\`, got \`${typeof e}\``)}var SE=new globalThis.TextEncoder;function ly(e){return Xo(e),SE.encode(e)}function kE(e){return e.replaceAll("+","-").replaceAll("/","_").replace(/=+$/,"")}function AE(e){return e.replaceAll("-","+").replaceAll("_","/")}var TE=65535;function uy(e,{urlSafe:t=!1}={}){zr(e);let r;if(e.length<TE)r=globalThis.btoa(String.fromCodePoint.apply(this,e));else{r="";for(let n of e)r+=String.fromCodePoint(n);r=globalThis.btoa(r)}return t?kE(r):r}function cy(e){return Xo(e),Uint8Array.from(globalThis.atob(AE(e)),t=>t.codePointAt(0))}function CE(e,{urlSafe:t=!1}={}){return Xo(e),uy(ly(e),{urlSafe:t})}function EE(e){return Xo(e),ay(cy(e))}var _E=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));function IE(e){zr(e);let t="";for(let r=0;r<e.length;r++)t+=_E[e[r]];return t}var iy={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,a:10,b:11,c:12,d:13,e:14,f:15,A:10,B:11,C:12,D:13,E:14,F:15};function DE(e){if(Xo(e),e.length%2!==0)throw new Error("Invalid Hex string length.");let t=e.length/2,r=new Uint8Array(t);for(let n=0;n<t;n++){let i=iy[e[n*2]],o=iy[e[n*2+1]];if(i===void 0||o===void 0)throw new Error(`Invalid Hex character encountered at position ${n*2}`);r[n]=i<<4|o}return r}function OE(e){let{byteLength:t}=e;if(t===6)return e.getUint16(0)*2**32+e.getUint32(2);if(t===5)return e.getUint8(0)*2**32+e.getUint32(1);if(t===4)return e.getUint32(0);if(t===3)return e.getUint8(0)*2**16+e.getUint16(1);if(t===2)return e.getUint16(0);if(t===1)return e.getUint8(0)}function fy(e,t){let r=e.length,n=t.length;if(n===0||n>r)return-1;let i=r-n;for(let o=0;o<=i;o++){let s=!0;for(let a=0;a<n;a++)if(e[o+a]!==t[a]){s=!1;break}if(s)return o}return-1}function ME(e,t){return fy(e,t)!==-1}var NE=_n;function FE(e){return _n.uint8ArrayToBase64(e)}function RE(e){return _n.base64ToUint8Array(e)}var LE=e=>_n.isUint8Array(e);function BE(e){return e&&typeof e.byteLength=="number"?!0:typeof Buffer<"u"&&Buffer.isBuffer?Buffer.isBuffer(e):!1}function $E(e){let t=new Uint8Array(e.length);return t.set(e),t}var tl={};le(tl,{Guard:()=>es,GuardError:()=>ts,GuardSet:()=>rs,passGuardsOrReject:()=>UE});var es=class{constructor(t,r){this.guardFunction=t,this.options=r}async exec(t){return await this.guardFunction(t)}async getFailedHint(t){return await this.exec(t)?null:this.options.failedHint}};var ts=class extends Error{constructor(t){super(t),this.name="GuardError"}};var rs=class extends es{constructor(t=[]){super(async r=>this.allGuardsPass(r)),this.guards=t}async execAllWithData(t,r={mode:"parallel",stopOnFail:!1}){let n=[];for(let o of this.guards){let s=o.exec(t);if(r.mode==="serial"&&await s,n.push(s),r.stopOnFail&&!await s)return await Promise.all(n)}return await Promise.all(n)}async allGuardsPass(t,r={mode:"parallel",stopOnFail:!1}){return(await this.execAllWithData(t,r)).every(i=>i)}async anyGuardsPass(t){return(await this.execAllWithData(t,{mode:"parallel",stopOnFail:!1})).some(n=>n)}getFailedHint(t){for(let r of this.guards){let n=r.getFailedHint(t);if(n)return n}}};var UE=async(e,t)=>{let r=new rs(t);if(!await r.allGuardsPass(e)){let i=await r.getFailedHint(e);throw new ts(`Guards failed:
45
+ `):"",this.name="UnsubscriptionError",this.errors=r}});function bn(e,t){if(e){var r=e.indexOf(t);0<=r&&e.splice(r,1)}}var $t=function(){function e(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}return e.prototype.unsubscribe=function(){var t,r,n,i,o;if(!this.closed){this.closed=!0;var s=this._parentage;if(s)if(this._parentage=null,Array.isArray(s))try{for(var a=mr(s),l=a.next();!l.done;l=a.next()){var u=l.value;u.remove(this)}}catch(x){t={error:x}}finally{try{l&&!l.done&&(r=a.return)&&r.call(a)}finally{if(t)throw t.error}}else s.remove(this);var c=this.initialTeardown;if(ue(c))try{c()}catch(x){o=x instanceof Oa?x.errors:[x]}var f=this._finalizers;if(f){this._finalizers=null;try{for(var p=mr(f),h=p.next();!h.done;h=p.next()){var m=h.value;try{ug(m)}catch(x){o=o??[],x instanceof Oa?o=Bt(Bt([],vt(o)),vt(x.errors)):o.push(x)}}}catch(x){n={error:x}}finally{try{h&&!h.done&&(i=p.return)&&i.call(p)}finally{if(n)throw n.error}}}if(o)throw new Oa(o)}},e.prototype.add=function(t){var r;if(t&&t!==this)if(this.closed)ug(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=(r=this._finalizers)!==null&&r!==void 0?r:[]).push(t)}},e.prototype._hasParent=function(t){var r=this._parentage;return r===t||Array.isArray(r)&&r.includes(t)},e.prototype._addParent=function(t){var r=this._parentage;this._parentage=Array.isArray(r)?(r.push(t),r):r?[r,t]:t},e.prototype._removeParent=function(t){var r=this._parentage;r===t?this._parentage=null:Array.isArray(r)&&bn(r,t)},e.prototype.remove=function(t){var r=this._finalizers;r&&bn(r,t),t instanceof e&&t._removeParent(this)},e.EMPTY=function(){var t=new e;return t.closed=!0,t}(),e}();var Dc=$t.EMPTY;function Ma(e){return e instanceof $t||e&&"closed"in e&&ue(e.remove)&&ue(e.add)&&ue(e.unsubscribe)}function ug(e){ue(e)?e():e.unsubscribe()}var Ut={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};var hi={setTimeout:function(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var i=hi.delegate;return i?.setTimeout?i.setTimeout.apply(i,Bt([e,t],vt(r))):setTimeout.apply(void 0,Bt([e,t],vt(r)))},clearTimeout:function(e){var t=hi.delegate;return(t?.clearTimeout||clearTimeout)(e)},delegate:void 0};function Na(e){hi.setTimeout(function(){var t=Ut.onUnhandledError;if(t)t(e);else throw e})}function wn(){}var cg=function(){return Oc("C",void 0,void 0)}();function fg(e){return Oc("E",void 0,e)}function pg(e){return Oc("N",e,void 0)}function Oc(e,t,r){return{kind:e,value:t,error:r}}var vn=null;function mi(e){if(Ut.useDeprecatedSynchronousErrorHandling){var t=!vn;if(t&&(vn={errorThrown:!1,error:null}),e(),t){var r=vn,n=r.errorThrown,i=r.error;if(vn=null,n)throw i}}else e()}function hg(e){Ut.useDeprecatedSynchronousErrorHandling&&vn&&(vn.errorThrown=!0,vn.error=e)}var jo=function(e){rt(t,e);function t(r){var n=e.call(this)||this;return n.isStopped=!1,r?(n.destination=r,Ma(r)&&r.add(n)):n.destination=MC,n}return t.create=function(r,n,i){return new Ra(r,n,i)},t.prototype.next=function(r){this.isStopped?Nc(pg(r),this):this._next(r)},t.prototype.error=function(r){this.isStopped?Nc(fg(r),this):(this.isStopped=!0,this._error(r))},t.prototype.complete=function(){this.isStopped?Nc(cg,this):(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this),this.destination=null)},t.prototype._next=function(r){this.destination.next(r)},t.prototype._error=function(r){try{this.destination.error(r)}finally{this.unsubscribe()}},t.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},t}($t);var PC=Function.prototype.bind;function Mc(e,t){return PC.call(e,t)}var DC=function(){function e(t){this.partialObserver=t}return e.prototype.next=function(t){var r=this.partialObserver;if(r.next)try{r.next(t)}catch(n){Fa(n)}},e.prototype.error=function(t){var r=this.partialObserver;if(r.error)try{r.error(t)}catch(n){Fa(n)}else Fa(t)},e.prototype.complete=function(){var t=this.partialObserver;if(t.complete)try{t.complete()}catch(r){Fa(r)}},e}(),Ra=function(e){rt(t,e);function t(r,n,i){var o=e.call(this)||this,s;if(ue(r)||!r)s={next:r??void 0,error:n??void 0,complete:i??void 0};else{var a;o&&Ut.useDeprecatedNextContext?(a=Object.create(r),a.unsubscribe=function(){return o.unsubscribe()},s={next:r.next&&Mc(r.next,a),error:r.error&&Mc(r.error,a),complete:r.complete&&Mc(r.complete,a)}):s=r}return o.destination=new DC(s),o}return t}(jo);function Fa(e){Ut.useDeprecatedSynchronousErrorHandling?hg(e):Na(e)}function OC(e){throw e}function Nc(e,t){var r=Ut.onStoppedNotification;r&&hi.setTimeout(function(){return r(e,t)})}var MC={closed:!0,next:wn,error:OC,complete:wn};var di=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function La(e){return e}function mg(e){return e.length===0?La:e.length===1?e[0]:function(r){return e.reduce(function(n,i){return i(n)},r)}}var Ce=function(){function e(t){t&&(this._subscribe=t)}return e.prototype.lift=function(t){var r=new e;return r.source=this,r.operator=t,r},e.prototype.subscribe=function(t,r,n){var i=this,o=FC(t)?t:new Ra(t,r,n);return mi(function(){var s=i,a=s.operator,l=s.source;o.add(a?a.call(o,l):l?i._subscribe(o):i._trySubscribe(o))}),o},e.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(r){t.error(r)}},e.prototype.forEach=function(t,r){var n=this;return r=dg(r),new r(function(i,o){var s=new Ra({next:function(a){try{t(a)}catch(l){o(l),s.unsubscribe()}},error:o,complete:i});n.subscribe(s)})},e.prototype._subscribe=function(t){var r;return(r=this.source)===null||r===void 0?void 0:r.subscribe(t)},e.prototype[di]=function(){return this},e.prototype.pipe=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return mg(t)(this)},e.prototype.toPromise=function(t){var r=this;return t=dg(t),new t(function(n,i){var o;r.subscribe(function(s){return o=s},function(s){return i(s)},function(){return n(o)})})},e.create=function(t){return new e(t)},e}();function dg(e){var t;return(t=e??Ut.Promise)!==null&&t!==void 0?t:Promise}function NC(e){return e&&ue(e.next)&&ue(e.error)&&ue(e.complete)}function FC(e){return e&&e instanceof jo||NC(e)&&Ma(e)}function RC(e){return ue(e?.lift)}function je(e){return function(t){if(RC(t))return t.lift(function(r){try{return e(r,this)}catch(n){this.error(n)}});throw new TypeError("Unable to lift unknown Observable type")}}function Ve(e,t,r,n,i){return new LC(e,t,r,n,i)}var LC=function(e){rt(t,e);function t(r,n,i,o,s,a){var l=e.call(this,r)||this;return l.onFinalize=s,l.shouldUnsubscribe=a,l._next=n?function(u){try{n(u)}catch(c){r.error(c)}}:e.prototype._next,l._error=o?function(u){try{o(u)}catch(c){r.error(c)}finally{this.unsubscribe()}}:e.prototype._error,l._complete=i?function(){try{i()}catch(u){r.error(u)}finally{this.unsubscribe()}}:e.prototype._complete,l}return t.prototype.unsubscribe=function(){var r;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){var n=this.closed;e.prototype.unsubscribe.call(this),!n&&((r=this.onFinalize)===null||r===void 0||r.call(this))}},t}(jo);var gg=Da(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}});var dr=function(e){rt(t,e);function t(){var r=e.call(this)||this;return r.closed=!1,r.currentObservers=null,r.observers=[],r.isStopped=!1,r.hasError=!1,r.thrownError=null,r}return t.prototype.lift=function(r){var n=new yg(this,this);return n.operator=r,n},t.prototype._throwIfClosed=function(){if(this.closed)throw new gg},t.prototype.next=function(r){var n=this;mi(function(){var i,o;if(n._throwIfClosed(),!n.isStopped){n.currentObservers||(n.currentObservers=Array.from(n.observers));try{for(var s=mr(n.currentObservers),a=s.next();!a.done;a=s.next()){var l=a.value;l.next(r)}}catch(u){i={error:u}}finally{try{a&&!a.done&&(o=s.return)&&o.call(s)}finally{if(i)throw i.error}}}})},t.prototype.error=function(r){var n=this;mi(function(){if(n._throwIfClosed(),!n.isStopped){n.hasError=n.isStopped=!0,n.thrownError=r;for(var i=n.observers;i.length;)i.shift().error(r)}})},t.prototype.complete=function(){var r=this;mi(function(){if(r._throwIfClosed(),!r.isStopped){r.isStopped=!0;for(var n=r.observers;n.length;)n.shift().complete()}})},t.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(t.prototype,"observed",{get:function(){var r;return((r=this.observers)===null||r===void 0?void 0:r.length)>0},enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(r){return this._throwIfClosed(),e.prototype._trySubscribe.call(this,r)},t.prototype._subscribe=function(r){return this._throwIfClosed(),this._checkFinalizedStatuses(r),this._innerSubscribe(r)},t.prototype._innerSubscribe=function(r){var n=this,i=this,o=i.hasError,s=i.isStopped,a=i.observers;return o||s?Dc:(this.currentObservers=null,a.push(r),new $t(function(){n.currentObservers=null,bn(a,r)}))},t.prototype._checkFinalizedStatuses=function(r){var n=this,i=n.hasError,o=n.thrownError,s=n.isStopped;i?r.error(o):s&&r.complete()},t.prototype.asObservable=function(){var r=new Ce;return r.source=this,r},t.create=function(r,n){return new yg(r,n)},t}(Ce);var yg=function(e){rt(t,e);function t(r,n){var i=e.call(this)||this;return i.destination=r,i.source=n,i}return t.prototype.next=function(r){var n,i;(i=(n=this.destination)===null||n===void 0?void 0:n.next)===null||i===void 0||i.call(n,r)},t.prototype.error=function(r){var n,i;(i=(n=this.destination)===null||n===void 0?void 0:n.error)===null||i===void 0||i.call(n,r)},t.prototype.complete=function(){var r,n;(n=(r=this.destination)===null||r===void 0?void 0:r.complete)===null||n===void 0||n.call(r)},t.prototype._subscribe=function(r){var n,i;return(i=(n=this.source)===null||n===void 0?void 0:n.subscribe(r))!==null&&i!==void 0?i:Dc},t}(dr);var zo={now:function(){return(zo.delegate||Date).now()},delegate:void 0};var Fc=function(e){rt(t,e);function t(r,n,i){r===void 0&&(r=1/0),n===void 0&&(n=1/0),i===void 0&&(i=zo);var o=e.call(this)||this;return o._bufferSize=r,o._windowTime=n,o._timestampProvider=i,o._buffer=[],o._infiniteTimeWindow=!0,o._infiniteTimeWindow=n===1/0,o._bufferSize=Math.max(1,r),o._windowTime=Math.max(1,n),o}return t.prototype.next=function(r){var n=this,i=n.isStopped,o=n._buffer,s=n._infiniteTimeWindow,a=n._timestampProvider,l=n._windowTime;i||(o.push(r),!s&&o.push(a.now()+l)),this._trimBuffer(),e.prototype.next.call(this,r)},t.prototype._subscribe=function(r){this._throwIfClosed(),this._trimBuffer();for(var n=this._innerSubscribe(r),i=this,o=i._infiniteTimeWindow,s=i._buffer,a=s.slice(),l=0;l<a.length&&!r.closed;l+=o?1:2)r.next(a[l]);return this._checkFinalizedStatuses(r),n},t.prototype._trimBuffer=function(){var r=this,n=r._bufferSize,i=r._timestampProvider,o=r._buffer,s=r._infiniteTimeWindow,a=(s?1:2)*n;if(n<1/0&&a<o.length&&o.splice(0,o.length-a),!s){for(var l=i.now(),u=0,c=1;c<o.length&&o[c]<=l;c+=2)u=c;u&&o.splice(0,u+1)}},t}(dr);var xg=function(e){rt(t,e);function t(r,n){return e.call(this)||this}return t.prototype.schedule=function(r,n){return n===void 0&&(n=0),this},t}($t);var qo={setInterval:function(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var i=qo.delegate;return i?.setInterval?i.setInterval.apply(i,Bt([e,t],vt(r))):setInterval.apply(void 0,Bt([e,t],vt(r)))},clearInterval:function(e){var t=qo.delegate;return(t?.clearInterval||clearInterval)(e)},delegate:void 0};var bg=function(e){rt(t,e);function t(r,n){var i=e.call(this,r,n)||this;return i.scheduler=r,i.work=n,i.pending=!1,i}return t.prototype.schedule=function(r,n){var i;if(n===void 0&&(n=0),this.closed)return this;this.state=r;var o=this.id,s=this.scheduler;return o!=null&&(this.id=this.recycleAsyncId(s,o,n)),this.pending=!0,this.delay=n,this.id=(i=this.id)!==null&&i!==void 0?i:this.requestAsyncId(s,this.id,n),this},t.prototype.requestAsyncId=function(r,n,i){return i===void 0&&(i=0),qo.setInterval(r.flush.bind(r,this),i)},t.prototype.recycleAsyncId=function(r,n,i){if(i===void 0&&(i=0),i!=null&&this.delay===i&&this.pending===!1)return n;n!=null&&qo.clearInterval(n)},t.prototype.execute=function(r,n){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var i=this._execute(r,n);if(i)return i;this.pending===!1&&this.id!=null&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},t.prototype._execute=function(r,n){var i=!1,o;try{this.work(r)}catch(s){i=!0,o=s||new Error("Scheduled action threw falsy error")}if(i)return this.unsubscribe(),o},t.prototype.unsubscribe=function(){if(!this.closed){var r=this,n=r.id,i=r.scheduler,o=i.actions;this.work=this.state=this.scheduler=null,this.pending=!1,bn(o,this),n!=null&&(this.id=this.recycleAsyncId(i,n,null)),this.delay=null,e.prototype.unsubscribe.call(this)}},t}(xg);var Rc=function(){function e(t,r){r===void 0&&(r=e.now),this.schedulerActionCtor=t,this.now=r}return e.prototype.schedule=function(t,r,n){return r===void 0&&(r=0),new this.schedulerActionCtor(this,t).schedule(n,r)},e.now=zo.now,e}();var wg=function(e){rt(t,e);function t(r,n){n===void 0&&(n=Rc.now);var i=e.call(this,r,n)||this;return i.actions=[],i._active=!1,i}return t.prototype.flush=function(r){var n=this.actions;if(this._active){n.push(r);return}var i;this._active=!0;do if(i=r.execute(r.state,r.delay))break;while(r=n.shift());if(this._active=!1,i){for(;r=n.shift();)r.unsubscribe();throw i}},t}(Rc);var Ho=new wg(bg),vg=Ho;function Ba(e){return e&&ue(e.schedule)}function BC(e){return e[e.length-1]}function gi(e){return Ba(BC(e))?e.pop():void 0}var yi=function(e){return e&&typeof e.length=="number"&&typeof e!="function"};function $a(e){return ue(e?.then)}function Ua(e){return ue(e[di])}function ja(e){return Symbol.asyncIterator&&ue(e?.[Symbol.asyncIterator])}function za(e){return new TypeError("You provided "+(e!==null&&typeof e=="object"?"an invalid object":"'"+e+"'")+" where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.")}function $C(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var qa=$C();function Ha(e){return ue(e?.[qa])}function Va(e){return ag(this,arguments,function(){var r,n,i,o;return Pa(this,function(s){switch(s.label){case 0:r=e.getReader(),s.label=1;case 1:s.trys.push([1,,9,10]),s.label=2;case 2:return[4,xn(r.read())];case 3:return n=s.sent(),i=n.value,o=n.done,o?[4,xn(void 0)]:[3,5];case 4:return[2,s.sent()];case 5:return[4,xn(i)];case 6:return[4,s.sent()];case 7:return s.sent(),[3,2];case 8:return[3,10];case 9:return r.releaseLock(),[7];case 10:return[2]}})})}function Wa(e){return ue(e?.getReader)}function Ze(e){if(e instanceof Ce)return e;if(e!=null){if(Ua(e))return UC(e);if(yi(e))return jC(e);if($a(e))return zC(e);if(ja(e))return Sg(e);if(Ha(e))return qC(e);if(Wa(e))return HC(e)}throw za(e)}function UC(e){return new Ce(function(t){var r=e[di]();if(ue(r.subscribe))return r.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function jC(e){return new Ce(function(t){for(var r=0;r<e.length&&!t.closed;r++)t.next(e[r]);t.complete()})}function zC(e){return new Ce(function(t){e.then(function(r){t.closed||(t.next(r),t.complete())},function(r){return t.error(r)}).then(null,Na)})}function qC(e){return new Ce(function(t){var r,n;try{for(var i=mr(e),o=i.next();!o.done;o=i.next()){var s=o.value;if(t.next(s),t.closed)return}}catch(a){r={error:a}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}t.complete()})}function Sg(e){return new Ce(function(t){VC(e,t).catch(function(r){return t.error(r)})})}function HC(e){return Sg(Va(e))}function VC(e,t){var r,n,i,o;return sg(this,void 0,void 0,function(){var s,a;return Pa(this,function(l){switch(l.label){case 0:l.trys.push([0,5,6,11]),r=lg(e),l.label=1;case 1:return[4,r.next()];case 2:if(n=l.sent(),!!n.done)return[3,4];if(s=n.value,t.next(s),t.closed)return[2];l.label=3;case 3:return[3,1];case 4:return[3,11];case 5:return a=l.sent(),i={error:a},[3,11];case 6:return l.trys.push([6,,9,10]),n&&!n.done&&(o=r.return)?[4,o.call(r)]:[3,8];case 7:l.sent(),l.label=8;case 8:return[3,10];case 9:if(i)throw i.error;return[7];case 10:return[7];case 11:return t.complete(),[2]}})})}function Ct(e,t,r,n,i){n===void 0&&(n=0),i===void 0&&(i=!1);var o=t.schedule(function(){r(),i?e.add(this.schedule(null,n)):this.unsubscribe()},n);if(e.add(o),!i)return o}function Ya(e,t){return t===void 0&&(t=0),je(function(r,n){r.subscribe(Ve(n,function(i){return Ct(n,e,function(){return n.next(i)},t)},function(){return Ct(n,e,function(){return n.complete()},t)},function(i){return Ct(n,e,function(){return n.error(i)},t)}))})}function Ga(e,t){return t===void 0&&(t=0),je(function(r,n){n.add(e.schedule(function(){return r.subscribe(n)},t))})}function kg(e,t){return Ze(e).pipe(Ga(t),Ya(t))}function Ag(e,t){return Ze(e).pipe(Ga(t),Ya(t))}function Tg(e,t){return new Ce(function(r){var n=0;return t.schedule(function(){n===e.length?r.complete():(r.next(e[n++]),r.closed||this.schedule())})})}function Cg(e,t){return new Ce(function(r){var n;return Ct(r,t,function(){n=e[qa](),Ct(r,t,function(){var i,o,s;try{i=n.next(),o=i.value,s=i.done}catch(a){r.error(a);return}s?r.complete():r.next(o)},0,!0)}),function(){return ue(n?.return)&&n.return()}})}function Ja(e,t){if(!e)throw new Error("Iterable cannot be null");return new Ce(function(r){Ct(r,t,function(){var n=e[Symbol.asyncIterator]();Ct(r,t,function(){n.next().then(function(i){i.done?r.complete():r.next(i.value)})},0,!0)})})}function Eg(e,t){return Ja(Va(e),t)}function _g(e,t){if(e!=null){if(Ua(e))return kg(e,t);if(yi(e))return Tg(e,t);if($a(e))return Ag(e,t);if(ja(e))return Ja(e,t);if(Ha(e))return Cg(e,t);if(Wa(e))return Eg(e,t)}throw za(e)}function Sn(e,t){return t?_g(e,t):Ze(e)}function Lc(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=gi(e);return Sn(e,r)}function Ig(e){return e instanceof Date&&!isNaN(e)}function kn(e,t){return je(function(r,n){var i=0;r.subscribe(Ve(n,function(o){n.next(e.call(t,o,i++))}))})}var WC=Array.isArray;function YC(e,t){return WC(t)?e.apply(void 0,Bt([],vt(t))):e(t)}function Pg(e){return kn(function(t){return YC(e,t)})}function Dg(e,t,r,n,i,o,s,a){var l=[],u=0,c=0,f=!1,p=function(){f&&!l.length&&!u&&t.complete()},h=function(x){return u<n?m(x):l.push(x)},m=function(x){o&&t.next(x),u++;var v=!1;Ze(r(x,c++)).subscribe(Ve(t,function(w){i?.(w),o?h(w):t.next(w)},function(){v=!0},void 0,function(){if(v)try{u--;for(var w=function(){var E=l.shift();s?Ct(t,s,function(){return m(E)}):m(E)};l.length&&u<n;)w();p()}catch(E){t.error(E)}}))};return e.subscribe(Ve(t,h,function(){f=!0,p()})),function(){a?.()}}function Vo(e,t,r){return r===void 0&&(r=1/0),ue(t)?Vo(function(n,i){return kn(function(o,s){return t(n,o,i,s)})(Ze(e(n,i)))},r):(typeof t=="number"&&(r=t),je(function(n,i){return Dg(n,i,e,r)}))}function Og(e){return e===void 0&&(e=1/0),Vo(La,e)}function Mg(){return Og(1)}function Bc(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return Mg()(Sn(e,gi(e)))}var GC=["addListener","removeListener"],JC=["addEventListener","removeEventListener"],QC=["on","off"];function An(e,t,r,n){if(ue(r)&&(n=r,r=void 0),n)return An(e,t,r).pipe(Pg(n));var i=vt(KC(e)?JC.map(function(a){return function(l){return e[a](t,l,r)}}):ZC(e)?GC.map(Ng(e,t)):XC(e)?QC.map(Ng(e,t)):[],2),o=i[0],s=i[1];if(!o&&yi(e))return Vo(function(a){return An(a,t,r)})(Ze(e));if(!o)throw new TypeError("Invalid event target");return new Ce(function(a){var l=function(){for(var u=[],c=0;c<arguments.length;c++)u[c]=arguments[c];return a.next(1<u.length?u:u[0])};return o(l),function(){return s(l)}})}function Ng(e,t){return function(r){return function(n){return e[r](t,n)}}}function ZC(e){return ue(e.addListener)&&ue(e.removeListener)}function XC(e){return ue(e.on)&&ue(e.off)}function KC(e){return ue(e.addEventListener)&&ue(e.removeEventListener)}function Fg(e,t,r){e===void 0&&(e=0),r===void 0&&(r=vg);var n=-1;return t!=null&&(Ba(t)?r=t:n=t),new Ce(function(i){var o=Ig(e)?+e-r.now():e;o<0&&(o=0);var s=0;return r.schedule(function(){i.closed||(i.next(s++),0<=n?this.schedule(void 0,n):i.complete())},o)})}function $c(e,t){return je(function(r,n){var i=0;r.subscribe(Ve(n,function(o){return e.call(t,o,i++)&&n.next(o)}))})}function Uc(e){return je(function(t,r){var n=!1,i=null,o=null,s=function(){if(o?.unsubscribe(),o=null,n){n=!1;var a=i;i=null,r.next(a)}};t.subscribe(Ve(r,function(a){o?.unsubscribe(),n=!0,i=a,o=Ve(r,s,wn),Ze(e(a)).subscribe(o)},function(){s(),r.complete()},void 0,function(){i=o=null}))})}function jc(e,t){return t===void 0&&(t=Ho),je(function(r,n){var i=null,o=null,s=null,a=function(){if(i){i.unsubscribe(),i=null;var u=o;o=null,n.next(u)}};function l(){var u=s+e,c=t.now();if(c<u){i=this.schedule(void 0,u-c),n.add(i);return}a()}r.subscribe(Ve(n,function(u){o=u,s=t.now(),i||(i=t.schedule(l,e),n.add(i))},function(){a(),n.complete()},void 0,function(){o=i=null}))})}function zc(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=gi(e);return je(function(n,i){(r?Bc(e,n,r):Bc(e,n)).subscribe(i)})}function qc(e){return je(function(t,r){Ze(e).subscribe(Ve(r,function(){return r.complete()},wn)),!r.closed&&t.subscribe(r)})}function Rg(e,t){return je(function(r,n){var i=t??{},o=i.leading,s=o===void 0?!0:o,a=i.trailing,l=a===void 0?!1:a,u=!1,c=null,f=null,p=!1,h=function(){f?.unsubscribe(),f=null,l&&(v(),p&&n.complete())},m=function(){f=null,p&&n.complete()},x=function(w){return f=Ze(e(w)).subscribe(Ve(n,h,m))},v=function(){if(u){u=!1;var w=c;c=null,n.next(w),!p&&x(w)}};r.subscribe(Ve(n,function(w){u=!0,c=w,!(f&&!f.closed)&&(s?v():x(w))},function(){p=!0,!(l&&u&&f&&!f.closed)&&n.complete()}))})}function Hc(e,t,r){t===void 0&&(t=Ho);var n=Fg(e,t);return Rg(function(){return n},r)}var eE={debounce:Uc,debounceTime:jc,map:kn,startWith:zc,takeUntil:qc,throttleTime:Hc,filter:$c};var Vc=class{constructor(){this.observableEventEmitterBundleArray=new Array,this.observableEventTargetBundleArray=new Array}getSubjectForEmitterEvent(t,r){let n=this.observableEventEmitterBundleArray.find(i=>i.eventRef===t&&i.event===r);if(n)return n.subject;{let i=An(t,r),o=new dr;i.subscribe(o);let s={subject:o,eventRef:t,event:r};return this.observableEventEmitterBundleArray.push(s),s.subject}}getSubjectForEventTarget(t,r){let n=this.observableEventTargetBundleArray.find(i=>i.eventRef===t&&i.event===r);if(n)return n.subject;{let o={subject:new dr,eventRef:t,event:r};return this.observableEventTargetBundleArray.push(o),o.subject}}};var Wc=class{constructor(){this.observableFunctions={next:t=>{},complete:t=>{}},this.generator=null,this.buffered=!1,this.payloadBuffer=[],this.observable=new Ce(t=>{this.observableFunctions.next=(...r)=>t.next(r),this.observableFunctions.complete=()=>(this.completedDeffered.resolve(),t.complete())}),this.completedDeffered=re.defer(),this.completed=this.completedDeffered.promise}setObservable(t){this.observable=t}push(t){this.buffered?this.payloadBuffer.push(t):this.internalPush(t)}pushMany(t){for(let r of t)this.push(r)}setGenerator(t){this.generator=t}makeBuffered(){this.buffered=!0}subscribe(...t){return this.observable.subscribe(...t)}request(t){if(t!==0)for(let r=0;r!==t;r++)if(this.payloadBuffer.length>0)this.internalPush(this.payloadBuffer.shift());else{let n=this.generator.next();this.internalPush(n.value)}}signalComplete(){this.observableFunctions.complete()}internalPush(t){this.observableFunctions.next(t)}};var tE={attribute:!0,type:String,converter:Fo,reflect:!1,hasChanged:ba},rE=(e=tE,t,r)=>{let{kind:n,metadata:i}=r,o=globalThis.litPropertyMetadata.get(i);if(o===void 0&&globalThis.litPropertyMetadata.set(i,o=new Map),o.set(r.name,e),n==="accessor"){let{name:s}=r;return{set(a){let l=t.get.call(this);t.set.call(this,a),this.requestUpdate(s,l,e)},init(a){return a!==void 0&&this.P(s,void 0,e),a}}}if(n==="setter"){let{name:s}=r;return function(a){let l=this[s];t.call(this,a),this.requestUpdate(s,l,e)}}throw Error("Unsupported decorator location: "+n)};function ne(e){return(t,r)=>typeof r=="object"?rE(e,t,r):((n,i,o)=>{let s=i.hasOwnProperty(o);return i.constructor.createProperty(o,s?{...n,wrapped:!0}:n),s?Object.getOwnPropertyDescriptor(i,o):void 0})(e,t,r)}var Ae={};le(Ae,{DomTools:()=>ut,TypedRequest:()=>bs,breakpoints:()=>Pr,css:()=>md,elementBasic:()=>Ht,plugins:()=>dd});var Ht={};le(Ht,{setup:()=>mU,staticStyles:()=>pU,styles:()=>hU});var $l={};le($l,{DeesComms:()=>zp});var he={};le(he,{Timeout:()=>Qa,delayFor:()=>Lg,delayForRandom:()=>nE});var Lg=async(e,t,r=!1)=>(await new Qa(e,null,r).promise,t),nE=async(e,t,r,n=!1)=>(await Lg(Math.random()*(t-e)+e,null,n),r),Qa=class{constructor(t,r,n=!1){this._cancelled=!1,this.timeoutInMillis=t,this._deferred=yn(),this.promise=this._deferred.promise,this._timeout=setTimeout(()=>{this._cancelled||this._deferred.resolve(r)},t),this.started=Date.now(),n&&this.makeUnrefed()}makeUnrefed(){this._timeout.unref()}cancel(){this._cancelled=!0,clearTimeout(this._timeout)}getTimeLeft(){let t=this.started+this.timeoutInMillis-Date.now();return t>0?t:0}};var It={};le(It,{TypedHandler:()=>Fp,TypedRequest:()=>bs,TypedResponseError:()=>vr,TypedRouter:()=>xs,TypedTarget:()=>Rp,VirtualStream:()=>Zt});var Ln=$e(Ea(),1);var ft={};le(ft,{AsyncExecutionStack:()=>hf,BackpressuredArray:()=>mf,FastMap:()=>Qo,Interest:()=>Zo,InterestMap:()=>df,LimitedArray:()=>gf,LoopTracker:()=>yf,ObjectMap:()=>En,Stringmap:()=>xf,TimedAggregtor:()=>bf,Tree:()=>wf,uni:()=>ry});var Cn={};le(Cn,{SmartMatch:()=>Gc});var Za={};le(Za,{isMatch:()=>sE,matcher:()=>oE});function Tn(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}var Yc=new Map,Bg=(e,t)=>{if(!Array.isArray(e))switch(typeof e){case"string":e=[e];break;case"undefined":e=[];break;default:throw new TypeError(`Expected '${t}' to be a string or an array, but got a type of '${typeof e}'`)}return e.filter(r=>{if(typeof r!="string"){if(typeof r>"u")return!1;throw new TypeError(`Expected '${t}' to be an array of strings, but found a type of '${typeof r}' in the array`)}return!0})},iE=(e,t)=>{t={caseSensitive:!1,...t};let r=e+JSON.stringify(t);if(Yc.has(r))return Yc.get(r);let n=e[0]==="!";n&&(e=e.slice(1)),e=Tn(e).replace(/\\\*/g,"[\\s\\S]*");let i=new RegExp(`^${e}$`,t.caseSensitive?"":"i");return i.negated=n,Yc.set(r,i),i},$g=(e,t,r,n)=>{if(e=Bg(e,"inputs"),t=Bg(t,"patterns"),t.length===0)return[];t=t.map(s=>iE(s,r));let{allPatterns:i}=r||{},o=[];for(let s of e){let a,l=[...t].fill(!1);for(let[u,c]of t.entries())if(c.test(s)&&(l[u]=!0,a=!c.negated,!a))break;if(!(a===!1||a===void 0&&t.some(u=>!u.negated)||i&&l.some((u,c)=>!u&&!t[c].negated))&&(o.push(s),n))break}return o};function oE(e,t,r){return $g(e,t,r,!1)}function sE(e,t,r){return $g(e,t,r,!0).length>0}var Gc=class{constructor(t){this.wildcard=t}match(t){return Za.isMatch(t,this.wildcard)}};var Wt={};le(Wt,{CronJob:()=>Jo,CronManager:()=>of,ExtendedDate:()=>sf,HrtMeasurement:()=>af,Interval:()=>lf,TimeStamp:()=>wi,Timer:()=>uf,getMilliSecondsAsHumanReadableString:()=>nf,getMilliSecondsFromUnits:()=>rf,units:()=>Br});function mt(e,t,r,n,i,o,s,a){return mt.fromTZ(mt.tp(e,t,r,n,i,o,s),a)}mt.fromTZISO=(e,t,r)=>mt.fromTZ(lE(e,t),r);mt.fromTZ=function(e,t){let r=new Date(Date.UTC(e.y,e.m-1,e.d,e.h,e.i,e.s)),n=Jc(e.tz,r),i=new Date(r.getTime()-n),o=Jc(e.tz,i);if(o-n===0)return i;{let s=new Date(r.getTime()-o),a=Jc(e.tz,s);if(a-o===0)return s;if(!t&&a-o>0)return s;if(t)throw new Error("Invalid date passed to fromTZ()");return i}};mt.toTZ=function(e,t){let r=e.toLocaleString("en-US",{timeZone:t}).replace(/[\u202f]/," "),n=new Date(r);return{y:n.getFullYear(),m:n.getMonth()+1,d:n.getDate(),h:n.getHours(),i:n.getMinutes(),s:n.getSeconds(),tz:t}};mt.tp=(e,t,r,n,i,o,s)=>({y:e,m:t,d:r,h:n,i,s:o,tz:s});function Jc(e,t=new Date){let r=t.toLocaleString("en-US",{timeZone:e,timeZoneName:"short"}).split(" ").slice(-1)[0];r=r.replace(/\bAKST\b/g,"-0900").replace(/\bAKDT\b/g,"-0800").replace(/\bAST\b/g,"-0400");let n=t.toLocaleString("en-US").replace(/[\u202f]/," ");return Date.parse(`${n} GMT`)-Date.parse(`${n} ${r}`)}function lE(e,t){let r=new Date(Date.parse(e));if(isNaN(r))throw new Error("minitz: Invalid ISO8601 passed to parser.");let n=e.substring(9);return e.includes("Z")||n.includes("-")||n.includes("+")?mt.tp(r.getUTCFullYear(),r.getUTCMonth()+1,r.getUTCDate(),r.getUTCHours(),r.getUTCMinutes(),r.getUTCSeconds(),"Etc/UTC"):mt.tp(r.getFullYear(),r.getMonth()+1,r.getDate(),r.getHours(),r.getMinutes(),r.getSeconds(),t)}mt.minitz=mt;function uE(e){if(e===void 0&&(e={}),delete e.name,e.legacyMode=e.legacyMode===void 0?!0:e.legacyMode,e.paused=e.paused===void 0?!1:e.paused,e.maxRuns=e.maxRuns===void 0?1/0:e.maxRuns,e.catch=e.catch===void 0?!1:e.catch,e.interval=e.interval===void 0?0:parseInt(e.interval,10),e.utcOffset=e.utcOffset===void 0?void 0:parseInt(e.utcOffset,10),e.unref=e.unref===void 0?!1:e.unref,e.startAt&&(e.startAt=new We(e.startAt,e.timezone)),e.stopAt&&(e.stopAt=new We(e.stopAt,e.timezone)),e.interval!==null){if(isNaN(e.interval))throw new Error("CronOptions: Supplied value for interval is not a number");if(e.interval<0)throw new Error("CronOptions: Supplied value for interval can not be negative")}if(e.utcOffset!==void 0){if(isNaN(e.utcOffset))throw new Error("CronOptions: Invalid value passed for utcOffset, should be number representing minutes offset from UTC.");if(e.utcOffset<-870||e.utcOffset>870)throw new Error("CronOptions: utcOffset out of bounds.");if(e.utcOffset!==void 0&&e.timezone)throw new Error("CronOptions: Combining 'utcOffset' with 'timezone' is not allowed.")}if(e.unref!==!0&&e.unref!==!1)throw new Error("CronOptions: Unref should be either true, false or undefined(false).");return e}var Qc=32,Yo=31|Qc,jg=[1,2,4,8,16];function dt(e,t){this.pattern=e,this.timezone=t,this.second=Array(60).fill(0),this.minute=Array(60).fill(0),this.hour=Array(24).fill(0),this.day=Array(31).fill(0),this.month=Array(12).fill(0),this.dayOfWeek=Array(7).fill(0),this.lastDayOfMonth=!1,this.starDOM=!1,this.starDOW=!1,this.parse()}dt.prototype.parse=function(){if(!(typeof this.pattern=="string"||this.pattern.constructor===String))throw new TypeError("CronPattern: Pattern has to be of type string.");this.pattern.indexOf("@")>=0&&(this.pattern=this.handleNicknames(this.pattern).trim());let e=this.pattern.replace(/\s+/g," ").split(" ");if(e.length<5||e.length>6)throw new TypeError("CronPattern: invalid configuration format ('"+this.pattern+"'), exacly five or six space separated parts required.");if(e.length===5&&e.unshift("0"),e[3].indexOf("L")>=0&&(e[3]=e[3].replace("L",""),this.lastDayOfMonth=!0),e[3]=="*"&&(this.starDOM=!0),e[4].length>=3&&(e[4]=this.replaceAlphaMonths(e[4])),e[5].length>=3&&(e[5]=this.replaceAlphaDays(e[5])),e[5]=="*"&&(this.starDOW=!0),this.pattern.indexOf("?")>=0){let t=new We(new Date,this.timezone).getDate(!0);e[0]=e[0].replace("?",t.getSeconds()),e[1]=e[1].replace("?",t.getMinutes()),e[2]=e[2].replace("?",t.getHours()),this.starDOM||(e[3]=e[3].replace("?",t.getDate())),e[4]=e[4].replace("?",t.getMonth()+1),this.starDOW||(e[5]=e[5].replace("?",t.getDay()))}this.throwAtIllegalCharacters(e),this.partToArray("second",e[0],0,1),this.partToArray("minute",e[1],0,1),this.partToArray("hour",e[2],0,1),this.partToArray("day",e[3],-1,1),this.partToArray("month",e[4],-1,1),this.partToArray("dayOfWeek",e[5],0,Yo),this.dayOfWeek[7]&&(this.dayOfWeek[0]=this.dayOfWeek[7])};dt.prototype.partToArray=function(e,t,r,n){let i=this[e],o=e==="day"&&this.lastDayOfMonth;if(t===""&&!o)throw new TypeError("CronPattern: configuration entry "+e+" ("+t+") is empty, check for trailing spaces.");if(t==="*")return i.fill(n);let s=t.split(",");if(s.length>1)for(let a=0;a<s.length;a++)this.partToArray(e,s[a],r,n);else t.indexOf("-")!==-1&&t.indexOf("/")!==-1?this.handleRangeWithStepping(t,e,r,n):t.indexOf("-")!==-1?this.handleRange(t,e,r,n):t.indexOf("/")!==-1?this.handleStepping(t,e,r,n):t!==""&&this.handleNumber(t,e,r,n)};dt.prototype.throwAtIllegalCharacters=function(e){for(let t=0;t<e.length;t++)if((t===5?/[^/*0-9,\-#L]+/:/[^/*0-9,-]+/).test(e[t]))throw new TypeError("CronPattern: configuration entry "+t+" ("+e[t]+") contains illegal characters.")};dt.prototype.handleNumber=function(e,t,r,n){let i=this.extractNth(e,t),o=parseInt(i[0],10)+r;if(isNaN(o))throw new TypeError("CronPattern: "+t+" is not a number: '"+e+"'");this.setPart(t,o,i[1]||n)};dt.prototype.setPart=function(e,t,r){if(!Object.prototype.hasOwnProperty.call(this,e))throw new TypeError("CronPattern: Invalid part specified: "+e);if(e==="dayOfWeek"){if(t===7&&(t=0),(t<0||t>6)&&t!=="L")throw new RangeError("CronPattern: Invalid value for dayOfWeek: "+t);this.setNthWeekdayOfMonth(t,r);return}if(e==="second"||e==="minute"){if(t<0||t>=60)throw new RangeError("CronPattern: Invalid value for "+e+": "+t)}else if(e==="hour"){if(t<0||t>=24)throw new RangeError("CronPattern: Invalid value for "+e+": "+t)}else if(e==="day"){if(t<0||t>=31)throw new RangeError("CronPattern: Invalid value for "+e+": "+t)}else if(e==="month"&&(t<0||t>=12))throw new RangeError("CronPattern: Invalid value for "+e+": "+t);this[e][t]=r};dt.prototype.handleRangeWithStepping=function(e,t,r,n){let i=this.extractNth(e,t),o=i[0].match(/^(\d+)-(\d+)\/(\d+)$/);if(o===null)throw new TypeError("CronPattern: Syntax error, illegal range with stepping: '"+e+"'");let[,s,a,l]=o;if(s=parseInt(s,10)+r,a=parseInt(a,10)+r,l=parseInt(l,10),isNaN(s))throw new TypeError("CronPattern: Syntax error, illegal lower range (NaN)");if(isNaN(a))throw new TypeError("CronPattern: Syntax error, illegal upper range (NaN)");if(isNaN(l))throw new TypeError("CronPattern: Syntax error, illegal stepping: (NaN)");if(l===0)throw new TypeError("CronPattern: Syntax error, illegal stepping: 0");if(l>this[t].length)throw new TypeError("CronPattern: Syntax error, steps cannot be greater than maximum value of part ("+this[t].length+")");if(s>a)throw new TypeError("CronPattern: From value is larger than to value: '"+e+"'");for(let u=s;u<=a;u+=l)this.setPart(t,u,i[1]||n)};dt.prototype.extractNth=function(e,t){let r=e,n;if(r.includes("#")){if(t!=="dayOfWeek")throw new Error("CronPattern: nth (#) only allowed in day-of-week field");n=r.split("#")[1],r=r.split("#")[0]}return[r,n]};dt.prototype.handleRange=function(e,t,r,n){let i=this.extractNth(e,t),o=i[0].split("-");if(o.length!==2)throw new TypeError("CronPattern: Syntax error, illegal range: '"+e+"'");let s=parseInt(o[0],10)+r,a=parseInt(o[1],10)+r;if(isNaN(s))throw new TypeError("CronPattern: Syntax error, illegal lower range (NaN)");if(isNaN(a))throw new TypeError("CronPattern: Syntax error, illegal upper range (NaN)");if(s>a)throw new TypeError("CronPattern: From value is larger than to value: '"+e+"'");for(let l=s;l<=a;l++)this.setPart(t,l,i[1]||n)};dt.prototype.handleStepping=function(e,t,r,n){let i=this.extractNth(e,t),o=i[0].split("/");if(o.length!==2)throw new TypeError("CronPattern: Syntax error, illegal stepping: '"+e+"'");let s=0;o[0]!=="*"&&(s=parseInt(o[0],10)+r);let a=parseInt(o[1],10);if(isNaN(a))throw new TypeError("CronPattern: Syntax error, illegal stepping: (NaN)");if(a===0)throw new TypeError("CronPattern: Syntax error, illegal stepping: 0");if(a>this[t].length)throw new TypeError("CronPattern: Syntax error, max steps for part is ("+this[t].length+")");for(let l=s;l<this[t].length;l+=a)this.setPart(t,l,i[1]||n)};dt.prototype.replaceAlphaDays=function(e){return e.replace(/-sun/gi,"-7").replace(/sun/gi,"0").replace(/mon/gi,"1").replace(/tue/gi,"2").replace(/wed/gi,"3").replace(/thu/gi,"4").replace(/fri/gi,"5").replace(/sat/gi,"6")};dt.prototype.replaceAlphaMonths=function(e){return e.replace(/jan/gi,"1").replace(/feb/gi,"2").replace(/mar/gi,"3").replace(/apr/gi,"4").replace(/may/gi,"5").replace(/jun/gi,"6").replace(/jul/gi,"7").replace(/aug/gi,"8").replace(/sep/gi,"9").replace(/oct/gi,"10").replace(/nov/gi,"11").replace(/dec/gi,"12")};dt.prototype.handleNicknames=function(e){let t=e.trim().toLowerCase();return t==="@yearly"||t==="@annually"?"0 0 1 1 *":t==="@monthly"?"0 0 1 * *":t==="@weekly"?"0 0 * * 0":t==="@daily"?"0 0 * * *":t==="@hourly"?"0 * * * *":e};dt.prototype.setNthWeekdayOfMonth=function(e,t){if(t==="L")this.dayOfWeek[e]=this.dayOfWeek[e]|Qc;else if(t<6&&t>0)this.dayOfWeek[e]=this.dayOfWeek[e]|jg[t-1];else if(t===Yo)this.dayOfWeek[e]=Yo;else throw new TypeError(`CronPattern: nth weekday of of range, should be 1-5 or L. Value: ${t}`)};var zg=[31,28,31,30,31,30,31,31,30,31,30,31],gr=[["month","year",0],["day","month",-1],["hour","day",0],["minute","hour",0],["second","minute",0]];function We(e,t){if(this.tz=t,e&&e instanceof Date)if(!isNaN(e))this.fromDate(e);else throw new TypeError("CronDate: Invalid date passed to CronDate constructor");else if(e===void 0)this.fromDate(new Date);else if(e&&typeof e=="string")this.fromString(e);else if(e instanceof We)this.fromCronDate(e);else throw new TypeError("CronDate: Invalid type ("+typeof e+") passed to CronDate constructor")}We.prototype.isNthWeekdayOfMonth=function(e,t,r,n){let o=new Date(Date.UTC(e,t,r)).getUTCDay(),s=0;for(let a=1;a<=r;a++)new Date(Date.UTC(e,t,a)).getUTCDay()===o&&s++;if(n&Yo&&jg[s-1]&n)return!0;if(n&Qc){let a=new Date(Date.UTC(e,t+1,0)).getUTCDate();for(let l=r+1;l<=a;l++)if(new Date(Date.UTC(e,t,l)).getUTCDay()===o)return!1;return!0}return!1};We.prototype.fromDate=function(e){if(this.tz!==void 0)if(typeof this.tz=="number")this.ms=e.getUTCMilliseconds(),this.second=e.getUTCSeconds(),this.minute=e.getUTCMinutes()+this.tz,this.hour=e.getUTCHours(),this.day=e.getUTCDate(),this.month=e.getUTCMonth(),this.year=e.getUTCFullYear(),this.apply();else{let t=mt.toTZ(e,this.tz);this.ms=e.getMilliseconds(),this.second=t.s,this.minute=t.i,this.hour=t.h,this.day=t.d,this.month=t.m-1,this.year=t.y}else this.ms=e.getMilliseconds(),this.second=e.getSeconds(),this.minute=e.getMinutes(),this.hour=e.getHours(),this.day=e.getDate(),this.month=e.getMonth(),this.year=e.getFullYear()};We.prototype.fromCronDate=function(e){this.tz=e.tz,this.year=e.year,this.month=e.month,this.day=e.day,this.hour=e.hour,this.minute=e.minute,this.second=e.second,this.ms=e.ms};We.prototype.apply=function(){if(this.month>11||this.day>zg[this.month]||this.hour>59||this.minute>59||this.second>59||this.hour<0||this.minute<0||this.second<0){let e=new Date(Date.UTC(this.year,this.month,this.day,this.hour,this.minute,this.second,this.ms));return this.ms=e.getUTCMilliseconds(),this.second=e.getUTCSeconds(),this.minute=e.getUTCMinutes(),this.hour=e.getUTCHours(),this.day=e.getUTCDate(),this.month=e.getUTCMonth(),this.year=e.getUTCFullYear(),!0}else return!1};We.prototype.fromString=function(e){return this.fromDate(mt.fromTZISO(e,this.tz))};We.prototype.findNext=function(e,t,r,n){let i=this[t],o;r.lastDayOfMonth&&(this.month!==1?o=zg[this.month]:o=new Date(Date.UTC(this.year,this.month+1,0,0,0,0,0)).getUTCDate());let s=!r.starDOW&&t=="day"?new Date(Date.UTC(this.year,this.month,1,0,0,0,0)).getUTCDay():void 0;for(let a=this[t]+n;a<r[t].length;a++){let l=r[t][a];if(t==="day"&&r.lastDayOfMonth&&a-n==o&&(l=!0),t==="day"&&!r.starDOW){let u=r.dayOfWeek[(s+(a-n-1))%7];if(u&&u&Yo)u=this.isNthWeekdayOfMonth(this.year,this.month,a-n,u);else if(u)throw new Error(`CronDate: Invalid value for dayOfWeek encountered. ${u}`);e.legacyMode&&!r.starDOM?l=l||u:l=l&&u}if(l)return this[t]=a-n,i!==this[t]?2:1}return 3};We.prototype.recurse=function(e,t,r){let n=this.findNext(t,gr[r][0],e,gr[r][2]);if(n>1){let i=r+1;for(;i<gr.length;)this[gr[i][0]]=-gr[i][2],i++;if(n===3)return this[gr[r][1]]++,this[gr[r][0]]=-gr[r][2],this.apply(),this.recurse(e,t,0);if(this.apply())return this.recurse(e,t,r-1)}return r+=1,r>=gr.length?this:this.year>=3e3?null:this.recurse(e,t,r)};We.prototype.increment=function(e,t,r){return this.second+=t.interval>1&&r?t.interval:1,this.ms=0,this.apply(),this.recurse(e,t,0)};We.prototype.getDate=function(e){return e||this.tz===void 0?new Date(this.year,this.month,this.day,this.hour,this.minute,this.second,this.ms):typeof this.tz=="number"?new Date(Date.UTC(this.year,this.month,this.day,this.hour,this.minute-this.tz,this.second,this.ms)):mt(this.year,this.month+1,this.day,this.hour,this.minute,this.second,this.tz)};We.prototype.getTime=function(){return this.getDate().getTime()};function Xa(e){return Object.prototype.toString.call(e)==="[object Function]"||typeof e=="function"||e instanceof Function}function cE(e){typeof Deno<"u"&&typeof Deno.unrefTimer<"u"?Deno.unrefTimer(e):e&&typeof e.unref<"u"&&e.unref()}var Ug=30*1e3,Go=[];function Ee(e,t,r){if(!(this instanceof Ee))return new Ee(e,t,r);let n,i;if(Xa(t))i=t;else if(typeof t=="object")n=t;else if(t!==void 0)throw new Error("Cron: Invalid argument passed for optionsIn. Should be one of function, or object (options).");if(Xa(r))i=r;else if(typeof r=="object")n=r;else if(r!==void 0)throw new Error("Cron: Invalid argument passed for funcIn. Should be one of function, or object (options).");if(this.name=n?n.name:void 0,this.options=uE(n),this._states={kill:!1,blocking:!1,previousRun:void 0,currentRun:void 0,once:void 0,currentTimeout:void 0,maxRuns:n?n.maxRuns:void 0,paused:n?n.paused:!1,pattern:void 0},e&&(e instanceof Date||typeof e=="string"&&e.indexOf(":")>0)?this._states.once=new We(e,this.options.timezone||this.options.utcOffset):this._states.pattern=new dt(e,this.options.timezone),this.name){if(Go.find(s=>s.name===this.name))throw new Error("Cron: Tried to initialize new named job '"+this.name+"', but name already taken.");Go.push(this)}return i!==void 0&&(this.fn=i,this.schedule()),this}Ee.prototype.nextRun=function(e){let t=this._next(e);return t?t.getDate():null};Ee.prototype.nextRuns=function(e,t){e>this._states.maxRuns&&(e=this._states.maxRuns);let r=[],n=t||this._states.currentRun;for(;e--&&(n=this.nextRun(n));)r.push(n);return r};Ee.prototype.getPattern=function(){return this._states.pattern?this._states.pattern.pattern:void 0};Ee.prototype.isRunning=function(){let e=this.nextRun(this._states.currentRun),t=!this._states.paused,r=this.fn!==void 0,n=!this._states.kill;return t&&r&&n&&e!==null};Ee.prototype.isStopped=function(){return this._states.kill};Ee.prototype.isBusy=function(){return this._states.blocking};Ee.prototype.currentRun=function(){return this._states.currentRun?this._states.currentRun.getDate():null};Ee.prototype.previousRun=function(){return this._states.previousRun?this._states.previousRun.getDate():null};Ee.prototype.msToNext=function(e){e=e||new Date;let t=this._next(e);return t?t.getTime()-e.getTime():null};Ee.prototype.stop=function(){this._states.kill=!0,this._states.currentTimeout&&clearTimeout(this._states.currentTimeout);let e=Go.indexOf(this);e>=0&&Go.splice(e,1)};Ee.prototype.pause=function(){return this._states.paused=!0,!this._states.kill};Ee.prototype.resume=function(){return this._states.paused=!1,!this._states.kill};Ee.prototype.schedule=function(e){if(e&&this.fn)throw new Error("Cron: It is not allowed to schedule two functions using the same Croner instance.");e&&(this.fn=e);let t=this.msToNext(),r=this.nextRun(this._states.currentRun);return t===null||r===null?this:(t>Ug&&(t=Ug),this._states.currentTimeout=setTimeout(()=>this._checkTrigger(r),t),this._states.currentTimeout&&this.options.unref&&cE(this._states.currentTimeout),this)};Ee.prototype._trigger=async function(e){if(this._states.blocking=!0,this._states.currentRun=new We(void 0,this.options.timezone||this.options.utcOffset),this.options.catch)try{await this.fn(this,this.options.context)}catch(t){Xa(this.options.catch)&&this.options.catch(t,this)}else await this.fn(this,this.options.context);this._states.previousRun=new We(e,this.options.timezone||this.options.utcOffset),this._states.blocking=!1};Ee.prototype.trigger=async function(){await this._trigger()};Ee.prototype._checkTrigger=function(e){let t=new Date,r=!this._states.paused&&t.getTime()>=e,n=this._states.blocking&&this.options.protect;r&&!n?(this._states.maxRuns--,this._trigger()):r&&n&&Xa(this.options.protect)&&setTimeout(()=>this.options.protect(this),0),this.schedule()};Ee.prototype._next=function(e){let t=!!(e||this._states.currentRun);e=new We(e,this.options.timezone||this.options.utcOffset),this.options.startAt&&e&&e.getTime()<this.options.startAt.getTime()&&(e=this.options.startAt);let r=this._states.once||new We(e,this.options.timezone||this.options.utcOffset).increment(this._states.pattern,this.options,t);return this._states.once&&this._states.once.getTime()<=e.getTime()||r===null||this._states.maxRuns<=0||this._states.kill||this.options.stopAt&&r.getTime()>=this.options.stopAt.getTime()?null:r};Ee.Cron=Ee;Ee.scheduledJobs=Go;var xi=$e(qg(),1),Vg=$e(Hg(),1);function tf(e){if(typeof e!="number")throw new TypeError("Expected a number");let t=e>0?Math.floor:Math.ceil;return{days:t(e/864e5),hours:t(e/36e5)%24,minutes:t(e/6e4)%60,seconds:t(e/1e3)%60,milliseconds:t(e)%1e3,microseconds:t(e*1e3)%1e3,nanoseconds:t(e*1e6)%1e3}}var fE=(e,t)=>t===1?e:`${e}s`,pE=1e-7;function Ka(e,t={}){if(!Number.isFinite(e))throw new TypeError("Expected a finite number");t.colonNotation&&(t.compact=!1,t.formatSubMilliseconds=!1,t.separateMilliseconds=!1,t.verbose=!1),t.compact&&(t.secondsDecimalDigits=0,t.millisecondsDecimalDigits=0);let r=[],n=(s,a)=>{let l=Math.floor(s*10**a+pE);return(Math.round(l)/10**a).toFixed(a)},i=(s,a,l,u)=>{if((r.length===0||!t.colonNotation)&&s===0&&!(t.colonNotation&&l==="m"))return;u=(u||s||"0").toString();let c,f;if(t.colonNotation){c=r.length>0?":":"",f="";let p=u.includes(".")?u.split(".")[0].length:u.length,h=r.length>0?2:1;u="0".repeat(Math.max(0,h-p))+u}else c="",f=t.verbose?" "+fE(a,s):l;r.push(c+u+f)},o=tf(e);if(i(Math.trunc(o.days/365),"year","y"),i(o.days%365,"day","d"),i(o.hours,"hour","h"),i(o.minutes,"minute","m"),t.separateMilliseconds||t.formatSubMilliseconds||!t.colonNotation&&e<1e3)if(i(o.seconds,"second","s"),t.formatSubMilliseconds)i(o.milliseconds,"millisecond","ms"),i(o.microseconds,"microsecond","\xB5s"),i(o.nanoseconds,"nanosecond","ns");else{let s=o.milliseconds+o.microseconds/1e3+o.nanoseconds/1e6,a=typeof t.millisecondsDecimalDigits=="number"?t.millisecondsDecimalDigits:0,l=s>=1?Math.round(s):Math.ceil(s),u=a?s.toFixed(a):l;i(Number.parseFloat(u),"millisecond","ms",u)}else{let s=e/1e3%60,a=typeof t.secondsDecimalDigits=="number"?t.secondsDecimalDigits:1,l=n(s,a),u=t.keepDecimalsOnWholeSeconds?l:l.replace(/\.0+$/,"");i(Number.parseFloat(u),"second","s",u)}if(r.length===0)return"0"+(t.verbose?" milliseconds":"ms");if(t.compact)return r[0];if(typeof t.unitCount=="number"){let s=t.colonNotation?"":" ";return r.slice(0,Math.max(t.unitCount,1)).join(s)}return t.colonNotation?r.join(""):r.join(" ")}xi.default.extend(Vg.default);var Jo=class{constructor(t,r,n){this.status="initial",this.nextExecutionUnix=0,this.cronExpression=r,this.jobFunction=n,this.cronParser=Ee(r)}checkExecution(){if(this.nextExecutionUnix===0&&this.getNextExecutionTime(),Date.now()>this.nextExecutionUnix){let t=this.jobFunction(this.nextExecutionUnix);t instanceof Promise&&t.catch(r=>console.log(r)),this.nextExecutionUnix=this.getNextExecutionTime()}return this.nextExecutionUnix}getNextExecutionTime(){return this.nextExecutionUnix=Date.now()+this.getTimeToNextExecution()}getTimeToNextExecution(){return this.cronParser.msToNext()}start(){this.status="started"}stop(){this.status="stopped"}};var Br={years:(e=1)=>e*3154e7,months:(e=1)=>e*2628e6,weeks:(e=1)=>e*6048e5,days:(e=1)=>e*864e5,hours:(e=1)=>e*36e5,minutes:(e=1)=>e*6e4,seconds:(e=1)=>e*1e3},rf=e=>{let t=0,r=n=>{t=t+n};return e.years&&r(Br.years(e.years)),e.months&&r(Br.months(e.months)),e.weeks&&r(Br.weeks(e.weeks)),e.days&&r(Br.days(e.days)),e.hours&&r(Br.hours(e.hours)),e.minutes&&r(Br.minutes(e.minutes)),e.seconds&&r(Br.seconds(e.seconds)),t},nf=e=>Ka(e);var of=class{constructor(){this.status="stopped",this.cronjobs=new ft.ObjectMap}addCronjob(t,r){let n=new Jo(this,t,r);return this.cronjobs.add(n),this.status==="started"&&n.start(),n}removeCronjob(t){t.stop(),this.cronjobs.remove(t)}start(){if(this.status!=="started"){this.status="started";for(let t of this.cronjobs.getArray())t.start();this.runCronCycle()}}async runCronCycle(){this.executionTimeout=new he.Timeout(0);do{let t;for(let r of this.cronjobs.getArray())r.checkExecution(),(!t||r.getTimeToNextExecution()<t.getTimeToNextExecution())&&(t=r);t?(this.executionTimeout=new he.Timeout(t.getTimeToNextExecution()),console.log(`Next CronJob scheduled in ${nf(this.executionTimeout.getTimeLeft())}`)):(this.executionTimeout=new he.Timeout(1e3),console.log("no cronjobs specified! Checking again in 1 second")),await this.executionTimeout.promise}while(this.status==="started")}stop(){this.status==="started"?(this.status="stopped",this.executionTimeout.cancel()):console.log("You tried to stop a CronManager that was not actually started.");for(let t of this.cronjobs.getArray())t.stop()}};var sf=class e extends Date{static fromMillis(t){return new e(t)}static fromDate(t){return new e(t.getTime())}static fromEuropeanDate(t){let r=/(.*)\.(.*)\.(.*)/.exec(t),i=new Date(parseFloat(r[3]),parseFloat(r[2])-1,parseFloat(r[1])).getTime();return new e(i)}static fromHyphedDate(t){let r=new Date(t).getTime();return new e(r)}static fromEuropeanDateAndTime(t,r="12:00:00",n="Europe/Berlin"){let i=/(.*)\.(.*)\.(.*)/.exec(t),o=u=>`0${u}`.slice(-2),s=`${i[3]}-${o(i[2])}-${o(i[1])}T${r}`,l=xi.default(s).toDate().getTime();return new e(l)}constructor(t=Date.now()){super(t)}exportToEuropeanDate(){let t=this.exportToUnits();return`${t.dayString}.${t.monthString}.${t.yearString}`}exportToHyphedSortableDate(){let t=this.exportToUnits();return`${t.yearString}-${t.monthString}-${t.dayString}`}exportToUnits(){let t=["January","February","March","April","May","June","July","August","September","October","November","December"],r=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"];return{year:this.getFullYear(),yearString:`${this.getFullYear()}`,month:this.getMonth()+1,monthString:("0"+(this.getMonth()+1)).slice(-2),monthName:t[this.getMonth()],day:this.getDate(),dayString:("0"+this.getDate()).slice(-2),dayOfTheWeek:this.getDay(),dayOfTheWeekName:r[this.getDay()]}}format(t){return xi.default(this.getTime()).format(t)}isToday(){return xi.default(this.getTime()).isToday()}lessTimePassedToNow(t){let r=rf(t);return Date.now()-this.getTime()<r}moreTimePassedToNow(t){return!this.lessTimePassedToNow(t)}};var af=class{constructor(){this.nanoSeconds=null,this.milliSeconds=null,this._milliStart=null,this._milliDiff=null,this._started=!1}start(){this._started=!0,this._milliStart=Date.now()}stop(){if(this._started===!1){console.log("Hasn't started yet");return}return this._milliDiff=Date.now()-this._milliStart,this.nanoSeconds=this._milliDiff*1e3,this.milliSeconds=this._milliDiff,this}reset(){this.nanoSeconds=null,this.milliSeconds=null,this._milliStart=null,this._milliDiff=null,this._started=!1}};var lf=class{constructor(t){this.status="initial",this.statusAuthorization=null,this.intervalJobs=[],this.intervalMilliseconds=t}start(){this.status="started";let t=new Date;this.statusAuthorization=t,(async()=>{for(;this.status==="started"&&this.statusAuthorization===t;)await he.delayFor(this.intervalMilliseconds),this.executeIntervalJobs()})()}stop(){this.status="stopped",this.statusAuthorization=null}addIntervalJob(t){this.intervalJobs.push(t)}executeIntervalJobs(){for(let t of this.intervalJobs)t()}};var wi=class e{static fromMilliSeconds(t){return new e(t)}static fromTimeStamp(t){let r=new e;return r.change=r.milliSeconds-t.milliSeconds,r}constructor(t){this.change=null,t?typeof t=="number"&&(this.date=new Date(t)):this.date=new Date,this.milliSeconds=this.date.getTime(),this.epochtime=Math.floor(this.milliSeconds/1e3)}isOlderThanOtherTimeStamp(t,r=0){return this.milliSeconds<t.milliSeconds-r}isOlderThan(t,r=0){return this.milliSeconds+r<t.milliSeconds}isYoungerThanOtherTimeStamp(t,r=0){return this.milliSeconds>t.milliSeconds+r}isYoungerThanMilliSeconds(t){let n=new e().epochtime-t,i=new e(n);return this.isYoungerThanOtherTimeStamp(i)}};var uf=class{get timeLeft(){return this.timeInMilliseconds-this.pausedAt.change}constructor(t){this.state="initiated",this.completedDeferred=re.defer(),this.timeInMilliseconds=t,this.completed=this.completedDeferred.promise}start(){if(!this.startedAt)this.currentTimeout=setTimeout(()=>{this.completedDeferred.resolve()},this.timeInMilliseconds),this.startedAt=new wi;else throw new Error("timer has been started before. Please use resume instead")}pause(){this.startedAt&&(clearTimeout(this.currentTimeout),this.currentTimeout=null,this.pausedAt=wi.fromTimeStamp(this.startedAt))}resume(){if(this.startedAt)this.currentTimeout=setTimeout(()=>{this.completedDeferred.resolve()},this.timeLeft);else throw new Error("timer has NOT been started before. Please use .start() instead")}reset(){this.pause(),this.startedAt=null,this.pausedAt=null}};var pf=$e(ff(),1);var hf=class{constructor(){this.executionSlots=[],this.isProcessing=!1}async getExclusiveExecutionSlot(t,r){let n=re.defer(),i={funcToExecute:t,executionDeferred:n,timeout:r,mode:"exclusive"};return this.executionSlots.push(i),this.processExecutionSlots(),n.promise}async getNonExclusiveExecutionSlot(t,r){let n=re.defer(),i={funcToExecute:t,executionDeferred:n,timeout:r,mode:"nonexclusive"};return this.executionSlots.push(i),this.processExecutionSlots(),n.promise}async processExecutionSlots(){if(!this.isProcessing){for(this.isProcessing=!0;this.executionSlots.length>0;){let t=this.executionSlots[0];if(t.mode==="exclusive")await this.executeExclusiveSlot(t),this.executionSlots.shift();else{let r=[];for(;this.executionSlots.length>0&&this.executionSlots[0].mode==="nonexclusive";)r.push(this.executionSlots.shift());await this.executeNonExclusiveSlots(r)}}this.isProcessing=!1}}async executeExclusiveSlot(t){try{if(t.timeout){let r=await Promise.race([t.funcToExecute(),he.delayFor(t.timeout).then(()=>{throw new Error("Timeout reached")})]);t.executionDeferred.resolve(r)}else{let r=await t.funcToExecute();t.executionDeferred.resolve(r)}}catch(r){t.executionDeferred.reject(r)}}async executeNonExclusiveSlots(t){let r=t.map(async n=>{try{if(n.timeout){let i=await Promise.race([n.funcToExecute(),he.delayFor(n.timeout).then(()=>{throw new Error("Timeout reached")})]);n.executionDeferred.resolve(i)}else{let i=await n.funcToExecute();n.executionDeferred.resolve(i)}}catch(i){n.executionDeferred.reject(i)}});await Promise.all(r)}};var mf=class{constructor(t=16){this.hasSpace=new Se.rxjs.Subject,this.itemsAvailable=new Se.rxjs.Subject,this.data=[],this.highWaterMark=t}push(t){this.data.push(t),this.itemsAvailable.next("itemsAvailable");let r=this.checkSpaceAvailable();return r&&this.hasSpace.next("hasSpace"),r}shift(){let t=this.data.shift();return this.checkSpaceAvailable()&&this.hasSpace.next("hasSpace"),t}checkSpaceAvailable(){return this.data.length<this.highWaterMark}checkHasItems(){return this.data.length>0}waitForSpace(){return new Promise(t=>{if(this.checkSpaceAvailable())t();else{let r=this.hasSpace.subscribe(()=>{r.unsubscribe(),t()})}})}waitForItems(){return new Promise(t=>{if(this.data.length>0)t();else{let r=this.itemsAvailable.subscribe(()=>{r.unsubscribe(),t()})}})}};var Qo=class e{constructor(){this.mapObject={}}isUniqueKey(t){return!this.mapObject[t]}addToMap(t,r,n){return this.isUniqueKey(t)||n&&n.force?(this.mapObject[t]=r,!0):!1}getByKey(t){return this.mapObject[t]}removeFromMap(t){let r=this.getByKey(t);return delete this.mapObject[t],r}getKeys(){let t=[];for(let r in this.mapObject)this.mapObject[r]&&t.push(r);return t}clean(){this.mapObject={}}concat(t){let r=new e;for(let n of this.getKeys())r.addToMap(n,this.getByKey(n));for(let n of t.getKeys())r.addToMap(n,t.getByKey(n),{force:!0});return r}addAllFromOther(t){for(let r of t.getKeys())this.addToMap(r,t.getByKey(r),{force:!0})}async find(t){for(let r of this.getKeys()){let n=this.getByKey(r);if(await t(n))return n}}};var ry=(e="uni")=>`${e}xxxxxxxxxxx`.replace(/[xy]/g,t=>{let r=Math.random()*16|0;return(t==="x"?r:r&3|8).toString(16)}),En=class e{constructor(){this.fastMap=new Qo,this.eventSubject=new Se.rxjs.Subject}addMappedUnique(t,r){this.fastMap.addToMap(t,r)}getMappedUnique(t){return this.fastMap.getByKey(t)}removeMappedUnique(t){let r=this.getMappedUnique(t)}add(t){for(let n of this.fastMap.getKeys())if(this.fastMap.getByKey(n)===t)return n;let r=ry("key");return this.addMappedUnique(r,t),this.eventSubject.next({operation:"add",payload:t}),r}addArray(t){for(let r of t)this.add(r)}checkForObject(t){return!!this.getKeyForObject(t)}getKeyForObject(t){let r=null;for(let n of this.fastMap.getKeys())if(!r&&this.fastMap.getByKey(n)===t)r=n;else continue;return r}async find(t){return this.fastMap.find(t)}findSync(t){for(let r of this.fastMap.getKeys())if(t(this.fastMap.getByKey(r)))return this.getMappedUnique(r)}async findOneAndRemove(t){let r=await this.find(t);return r&&this.remove(r),r}findOneAndRemoveSync(t){let r=this.findSync(t);return r&&this.remove(r),r}async forEach(t){for(let r of this.fastMap.getKeys())await t(this.fastMap.getByKey(r))}getOneAndRemove(){let t=this.fastMap.getKeys();if(t.length===0)return null;{let r=t[0],n=this.fastMap.removeFromMap(r);return this.eventSubject.next({operation:"remove",payload:n}),n}}getArray(){let t=[];for(let r of this.fastMap.getKeys())t.push(this.fastMap.getByKey(r));return t}isEmpty(){return this.fastMap.getKeys().length===0}remove(t){if(this.checkForObject(t)){let r=this.getKeyForObject(t),n=this.fastMap.removeFromMap(r);return this.eventSubject.next({operation:"remove",payload:n}),n}return null}wipe(){for(let t of this.fastMap.getKeys())this.fastMap.removeFromMap(t)}concat(t){let r=new e;return r.fastMap.addAllFromOther(this.fastMap),r.fastMap.addAllFromOther(t.fastMap),r}addAllFromOther(t){this.fastMap.addAllFromOther(t.fastMap)}};var Zo=class{get comparisonString(){return this.comparisonFunc(this.originalInterest)}fullfillInterest(t){this.isFullfilled=!0,this.fullfillmentStore=[],this.interestDeferred.resolve(t)}constructor(t,r,n,i){this.destructionTimer=new Wt.Timer(1e4),this.isFullfilled=!1,this.fullfillmentStore=[],this.interestDeferred=new re.Deferred,this.interestFullfilled=this.interestDeferred.promise,this.interestMapRef=t,this.originalInterest=r,this.comparisonFunc=n,this.options=i,this.destructionTimer.completed.then(()=>{this.destroy()}),this.options?.markLostAfterDefault&&he.delayFor(this.options.markLostAfterDefault).then(this.markLost)}destroy(){this.interestMapRef.removeInterest(this),!this.isFullfilled&&this.options.defaultFullfillment&&this.fullfillInterest(this.options.defaultFullfillment)}markLost(){this.destructionTimer.start()}renew(){this.destructionTimer.reset()}};var df=class{constructor(t,r={}){this.interestObjectMap=new En,this.interestObservable=new Se.ObservableIntake,this.comparisonFunc=t,this.options=r}async addInterest(t,r){let n=this.comparisonFunc(t),i,o=new Zo(this,t,this.comparisonFunc,{markLostAfterDefault:this.options.markLostAfterDefault,defaultFullfillment:r}),s=!1;return await this.interestObjectMap.forEach(a=>{!s&&a.comparisonString===o.comparisonString&&(console.log("info",`interest already exists for ${o.comparisonString}`),s=!0,i=a,i.renew())}),i||(i=o,this.interestObjectMap.add(i)),this.interestObservable.push(i),i}removeInterest(t){let r=this.interestObjectMap.findOneAndRemoveSync(n=>t.comparisonString===n.comparisonString)}checkInterest(t){let r=this.comparisonFunc(t);return this.checkInterestByString(r)}checkInterestByString(t){return!!this.interestObjectMap.findSync(n=>n.comparisonString===t)}informLostInterest(t){let r=this.findInterest(t);r&&r.markLost()}findInterest(t){let r=this.comparisonFunc(t);return this.interestObjectMap.findSync(i=>i.comparisonString===r)}};var gf=class{constructor(t){this.array=[],this.arrayLimit=t}addOne(t){this.array.unshift(t),this.array.length>this.arrayLimit&&(this.array.length=this.arrayLimit)}addMany(t){for(let r of t)this.addOne(r)}setLimit(t){this.arrayLimit=t,this.array.length>this.arrayLimit&&(this.array.length=this.arrayLimit)}getAverage(){if(typeof this.array[0]=="number"){let t=0;for(let r of this.array)t=t+r;return t/this.array.length}else return null}};var yf=class{constructor(){this.referenceObjectMap=new En}checkAndTrack(t){return this.referenceObjectMap.checkForObject(t)?!1:(this.referenceObjectMap.add(t),!0)}};var xf=class{constructor(){this._stringArray=[],this._triggerUntilTrueFunctionArray=[]}addString(t){this._stringArray.push(t),this.notifyTrigger()}addStringArray(t){for(let r of t)this.addString(r)}removeString(t){for(let r in this._stringArray)this._stringArray[r]===t&&this._stringArray.splice(parseInt(r),1);this.notifyTrigger()}wipe(){this._stringArray=[],this.notifyTrigger()}checkString(t){return this._stringArray.indexOf(t)!==-1}checkMinimatch(t){let r=new Cn.SmartMatch(t),n=!1;for(let i of this._stringArray)r.match(i)&&(n=!0);return n}checkIsEmpty(){return this._stringArray.length===0}getStringArray(){let t=[];for(let r of this._stringArray)t.push(r);return t}registerUntilTrue(t,r){let n=re.defer();return this._triggerUntilTrueFunctionArray.push(()=>{let i=t(this.getStringArray());return i===!0&&(r&&r(),n.resolve()),i}),this.notifyTrigger(),n.promise}notifyTrigger(){let t=this._triggerUntilTrueFunctionArray.filter(r=>!r());this._triggerUntilTrueFunctionArray=t}};var bf=class{constructor(t){this.storageArray=[],this.options=t}checkAggregationStatus(){let t=()=>{this.aggregationTimer=new Wt.Timer(this.options.aggregationIntervalInMillis),this.aggregationTimer.completed.then(()=>{let r=this.storageArray;if(r.length===0){this.aggregationTimer=null;return}this.storageArray=[],t(),this.options.functionForAggregation(r)}),this.aggregationTimer.start()};this.aggregationTimer||t()}add(t){this.storageArray.push(t),this.checkAggregationStatus()}};var wf=class{constructor(){this.symbolTree=new pf.default}initialize(t){return this.symbolTree.initialize(t)}hasChildren(t){return this.symbolTree.hasChildren(t)}firstChild(t){return this.symbolTree.firstChild(t)}lastChild(t){return this.symbolTree.lastChild(t)}previousSibling(t){return this.symbolTree.previousSibling(t)}nextSibling(t){return this.symbolTree.nextSibling(t)}parent(t){return this.symbolTree.parent(t)}lastInclusiveDescendant(t){return this.symbolTree.lastInclusiveDescendant(t)}preceding(t,r){return this.symbolTree.preceding(t,r)}following(t,r){return this.symbolTree.following(t,r)}childrenToArray(t,r){return this.symbolTree.childrenToArray(t,r)}ancestorsToArray(t,r){return this.symbolTree.ancestorsToArray(t,r)}treeToArray(t,r){return this.symbolTree.treeToArray(t,r)}childrenIterator(t,r){return this.symbolTree.childrenIterator(t,r)}previousSiblingsIterator(t){return this.symbolTree.previousSiblingsIterator(t)}nextSiblingsIterator(t){return this.symbolTree.nextSiblingsIterator()}ancestorsIterator(t){this.symbolTree.ancestorsIterator()}treeIterator(t,r){return this.symbolTree.treeIterator(t)}index(t){return this.symbolTree.index(t)}childrenCount(t){return this.symbolTree.childrenCount(t)}compareTreePosition(t,r){return this.compareTreePosition(t,r)}remove(t){return this.symbolTree.remove(t)}insertBefore(t,r){return this.symbolTree.insertBefore(t,r)}insertAfter(t,r){return this.symbolTree.insertAfter(t,r)}prependChild(t,r){return this.symbolTree.prependChild(t,r)}appendChild(t,r){return this.symbolTree.appendChild(t,r)}toJsonWithHierachy(t){let r=this.treeIterator(t,{});for(let n of r)console.log(n)}fromJsonWithHierachy(t){}};var Ko={};le(Ko,{base64ToUint8Array:()=>BE,ensurePureUint8Array:()=>jE,isBufferLike:()=>UE,isUint8Array:()=>$E,uInt8ArrayExtras:()=>RE,uInt8ArrayToBase64:()=>LE});var _n={};le(_n,{areUint8ArraysEqual:()=>SE,assertUint8Array:()=>zr,assertUint8ArrayOrArrayBuffer:()=>sy,base64ToString:()=>IE,base64ToUint8Array:()=>cy,compareUint8Arrays:()=>kE,concatUint8Arrays:()=>vE,getUintBE:()=>ME,hexToUint8Array:()=>OE,includes:()=>NE,indexOf:()=>fy,isUint8Array:()=>vf,stringToBase64:()=>_E,stringToUint8Array:()=>ly,toUint8Array:()=>wE,uint8ArrayToBase64:()=>uy,uint8ArrayToHex:()=>DE,uint8ArrayToString:()=>ay});var dE=Object.prototype.toString,gE="[object Uint8Array]",yE="[object ArrayBuffer]";function oy(e,t,r){return e?e.constructor===t?!0:dE.call(e)===r:!1}function vf(e){return oy(e,Uint8Array,gE)}function xE(e){return oy(e,ArrayBuffer,yE)}function bE(e){return vf(e)||xE(e)}function zr(e){if(!vf(e))throw new TypeError(`Expected \`Uint8Array\`, got \`${typeof e}\``)}function sy(e){if(!bE(e))throw new TypeError(`Expected \`Uint8Array\` or \`ArrayBuffer\`, got \`${typeof e}\``)}function wE(e){if(e instanceof ArrayBuffer)return new Uint8Array(e);if(ArrayBuffer.isView(e))return new Uint8Array(e.buffer,e.byteOffset,e.byteLength);throw new TypeError(`Unsupported value, got \`${typeof e}\`.`)}function vE(e,t){if(e.length===0)return new Uint8Array(0);t??=e.reduce((i,o)=>i+o.length,0);let r=new Uint8Array(t),n=0;for(let i of e)zr(i),r.set(i,n),n+=i.length;return r}function SE(e,t){if(zr(e),zr(t),e===t)return!0;if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}function kE(e,t){zr(e),zr(t);let r=Math.min(e.length,t.length);for(let n=0;n<r;n++){let i=e[n]-t[n];if(i!==0)return Math.sign(i)}return Math.sign(e.length-t.length)}var ny={utf8:new globalThis.TextDecoder("utf8")};function ay(e,t="utf8"){return sy(e),ny[t]??=new globalThis.TextDecoder(t),ny[t].decode(e)}function Xo(e){if(typeof e!="string")throw new TypeError(`Expected \`string\`, got \`${typeof e}\``)}var AE=new globalThis.TextEncoder;function ly(e){return Xo(e),AE.encode(e)}function TE(e){return e.replaceAll("+","-").replaceAll("/","_").replace(/=+$/,"")}function CE(e){return e.replaceAll("-","+").replaceAll("_","/")}var EE=65535;function uy(e,{urlSafe:t=!1}={}){zr(e);let r;if(e.length<EE)r=globalThis.btoa(String.fromCodePoint.apply(this,e));else{r="";for(let n of e)r+=String.fromCodePoint(n);r=globalThis.btoa(r)}return t?TE(r):r}function cy(e){return Xo(e),Uint8Array.from(globalThis.atob(CE(e)),t=>t.codePointAt(0))}function _E(e,{urlSafe:t=!1}={}){return Xo(e),uy(ly(e),{urlSafe:t})}function IE(e){return Xo(e),ay(cy(e))}var PE=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));function DE(e){zr(e);let t="";for(let r=0;r<e.length;r++)t+=PE[e[r]];return t}var iy={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,a:10,b:11,c:12,d:13,e:14,f:15,A:10,B:11,C:12,D:13,E:14,F:15};function OE(e){if(Xo(e),e.length%2!==0)throw new Error("Invalid Hex string length.");let t=e.length/2,r=new Uint8Array(t);for(let n=0;n<t;n++){let i=iy[e[n*2]],o=iy[e[n*2+1]];if(i===void 0||o===void 0)throw new Error(`Invalid Hex character encountered at position ${n*2}`);r[n]=i<<4|o}return r}function ME(e){let{byteLength:t}=e;if(t===6)return e.getUint16(0)*2**32+e.getUint32(2);if(t===5)return e.getUint8(0)*2**32+e.getUint32(1);if(t===4)return e.getUint32(0);if(t===3)return e.getUint8(0)*2**16+e.getUint16(1);if(t===2)return e.getUint16(0);if(t===1)return e.getUint8(0)}function fy(e,t){let r=e.length,n=t.length;if(n===0||n>r)return-1;let i=r-n;for(let o=0;o<=i;o++){let s=!0;for(let a=0;a<n;a++)if(e[o+a]!==t[a]){s=!1;break}if(s)return o}return-1}function NE(e,t){return fy(e,t)!==-1}var RE=_n;function LE(e){return _n.uint8ArrayToBase64(e)}function BE(e){return _n.base64ToUint8Array(e)}var $E=e=>_n.isUint8Array(e);function UE(e){return e&&typeof e.byteLength=="number"?!0:typeof Buffer<"u"&&Buffer.isBuffer?Buffer.isBuffer(e):!1}function jE(e){let t=new Uint8Array(e.length);return t.set(e),t}var tl={};le(tl,{Guard:()=>es,GuardError:()=>ts,GuardSet:()=>rs,passGuardsOrReject:()=>zE});var es=class{constructor(t,r){this.guardFunction=t,this.options=r}async exec(t){return await this.guardFunction(t)}async getFailedHint(t){return await this.exec(t)?null:this.options.failedHint}};var ts=class extends Error{constructor(t){super(t),this.name="GuardError"}};var rs=class extends es{constructor(t=[]){super(async r=>this.allGuardsPass(r)),this.guards=t}async execAllWithData(t,r={mode:"parallel",stopOnFail:!1}){let n=[];for(let o of this.guards){let s=o.exec(t);if(r.mode==="serial"&&await s,n.push(s),r.stopOnFail&&!await s)return await Promise.all(n)}return await Promise.all(n)}async allGuardsPass(t,r={mode:"parallel",stopOnFail:!1}){return(await this.execAllWithData(t,r)).every(i=>i)}async anyGuardsPass(t){return(await this.execAllWithData(t,{mode:"parallel",stopOnFail:!1})).some(n=>n)}getFailedHint(t){for(let r of this.guards){let n=r.getFailedHint(t);if(n)return n}}};var zE=async(e,t)=>{let r=new rs(t);if(!await r.allGuardsPass(e)){let i=await r.getFailedHint(e);throw new ts(`Guards failed:
46
46
  ${i}
47
- `)}};var ys={};le(ys,{WebRequest:()=>Np});var In={};le(In,{Smartenv:()=>ns});var ns=class{constructor(){this.loadedScripts=[]}async getEnvAwareModule(t){if(this.isNode)return await this.getSafeNodeModule(t.nodeModuleName);if(this.isBrowser)return await this.getSafeWebModule(t.webUrlArg,t.getFunction);console.error("platform for loading not supported by smartenv")}async getSafeNodeModule(t,r){if(!this.isNode){console.error(`You tried to load a node module in a wrong context: ${t}`);return}let n=await new Function(`return import('${t}')`)();return r&&await r(n),n}async getSafeWebModule(t,r){if(!this.isBrowser){console.error("You tried to load a web module in a wrong context");return}if(this.loadedScripts.includes(t))return r();this.loadedScripts.push(t);let n=re.defer();if(globalThis.importScripts)globalThis.importScripts(t),n.resolve();else{let i=document.createElement("script");i.onload=()=>{n.resolve()},i.src=t,document.head.appendChild(i)}return await n.promise,r()}get runtimeEnv(){return typeof process<"u"?"node":"browser"}get isBrowser(){return!this.isNode}get userAgent(){return this.isBrowser?navigator.userAgent:"undefined"}get isNode(){return this.runtimeEnv==="node"}get nodeVersion(){return process.version}get isCI(){return this.isNode?!!process.env.CI:!1}async isMacAsync(){return this.isNode?(await this.getSafeNodeModule("os")).platform()==="darwin":!1}async isWindowsAsync(){return this.isNode?(await this.getSafeNodeModule("os")).platform()==="win32":!1}async isLinuxAsync(){return this.isNode?(await this.getSafeNodeModule("os")).platform()==="linux":!1}async printEnv(){this.isNode?(console.log("running on NODE"),console.log("node version is "+this.nodeVersion)):(console.log("running on BROWSER"),console.log("browser is "+this.userAgent))}};var De={};le(De,{Smartjson:()=>Cp,deepEqualJsonLStrings:()=>yM,deepEqualObjects:()=>P0,foldDec:()=>gM,parse:()=>ds,parseBase64:()=>dM,parseJsonL:()=>pM,stringify:()=>zi,stringifyBase64:()=>mM,stringifyPretty:()=>hM});var Vr={};le(Vr,{Base64:()=>vl,Domain:()=>Sl,GitRepo:()=>kl,base64:()=>Li,create:()=>np,docker:()=>ip,indent:()=>ap,normalize:()=>lp,type:()=>up});var np={};le(np,{createCryptoRandomString:()=>vD,createRandomString:()=>wD});var Pb=$e(Ea(),1),Nb=$e(tb(),1);var ab="3.7.7",KI=ab,Ri=typeof Buffer=="function",rb=typeof TextDecoder=="function"?new TextDecoder:void 0,nb=typeof TextEncoder=="function"?new TextEncoder:void 0,eD="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",cs=Array.prototype.slice.call(eD),yl=(e=>{let t={};return e.forEach((r,n)=>t[r]=n),t})(cs),tD=/^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/,et=String.fromCharCode.bind(String),ib=typeof Uint8Array.from=="function"?Uint8Array.from.bind(Uint8Array):e=>new Uint8Array(Array.prototype.slice.call(e,0)),lb=e=>e.replace(/=/g,"").replace(/[+\/]/g,t=>t=="+"?"-":"_"),ub=e=>e.replace(/[^A-Za-z0-9\+\/]/g,""),cb=e=>{let t,r,n,i,o="",s=e.length%3;for(let a=0;a<e.length;){if((r=e.charCodeAt(a++))>255||(n=e.charCodeAt(a++))>255||(i=e.charCodeAt(a++))>255)throw new TypeError("invalid character found");t=r<<16|n<<8|i,o+=cs[t>>18&63]+cs[t>>12&63]+cs[t>>6&63]+cs[t&63]}return s?o.slice(0,s-3)+"===".substring(s):o},Kf=typeof btoa=="function"?e=>btoa(e):Ri?e=>Buffer.from(e,"binary").toString("base64"):cb,Zf=Ri?e=>Buffer.from(e).toString("base64"):e=>{let r=[];for(let n=0,i=e.length;n<i;n+=4096)r.push(et.apply(null,e.subarray(n,n+4096)));return Kf(r.join(""))},xl=(e,t=!1)=>t?lb(Zf(e)):Zf(e),rD=e=>{if(e.length<2){var t=e.charCodeAt(0);return t<128?e:t<2048?et(192|t>>>6)+et(128|t&63):et(224|t>>>12&15)+et(128|t>>>6&63)+et(128|t&63)}else{var t=65536+(e.charCodeAt(0)-55296)*1024+(e.charCodeAt(1)-56320);return et(240|t>>>18&7)+et(128|t>>>12&63)+et(128|t>>>6&63)+et(128|t&63)}},nD=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,fb=e=>e.replace(nD,rD),ob=Ri?e=>Buffer.from(e,"utf8").toString("base64"):nb?e=>Zf(nb.encode(e)):e=>Kf(fb(e)),Fi=(e,t=!1)=>t?lb(ob(e)):ob(e),sb=e=>Fi(e,!0),iD=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,oD=e=>{switch(e.length){case 4:var t=(7&e.charCodeAt(0))<<18|(63&e.charCodeAt(1))<<12|(63&e.charCodeAt(2))<<6|63&e.charCodeAt(3),r=t-65536;return et((r>>>10)+55296)+et((r&1023)+56320);case 3:return et((15&e.charCodeAt(0))<<12|(63&e.charCodeAt(1))<<6|63&e.charCodeAt(2));default:return et((31&e.charCodeAt(0))<<6|63&e.charCodeAt(1))}},pb=e=>e.replace(iD,oD),hb=e=>{if(e=e.replace(/\s+/g,""),!tD.test(e))throw new TypeError("malformed base64.");e+="==".slice(2-(e.length&3));let t,r="",n,i;for(let o=0;o<e.length;)t=yl[e.charAt(o++)]<<18|yl[e.charAt(o++)]<<12|(n=yl[e.charAt(o++)])<<6|(i=yl[e.charAt(o++)]),r+=n===64?et(t>>16&255):i===64?et(t>>16&255,t>>8&255):et(t>>16&255,t>>8&255,t&255);return r},ep=typeof atob=="function"?e=>atob(ub(e)):Ri?e=>Buffer.from(e,"base64").toString("binary"):hb,mb=Ri?e=>ib(Buffer.from(e,"base64")):e=>ib(ep(e).split("").map(t=>t.charCodeAt(0))),db=e=>mb(gb(e)),sD=Ri?e=>Buffer.from(e,"base64").toString("utf8"):rb?e=>rb.decode(mb(e)):e=>pb(ep(e)),gb=e=>ub(e.replace(/[-_]/g,t=>t=="-"?"+":"/")),Xf=e=>sD(gb(e)),aD=e=>{if(typeof e!="string")return!1;let t=e.replace(/\s+/g,"").replace(/={0,2}$/,"");return!/[^\s0-9a-zA-Z\+/]/.test(t)||!/[^\s0-9a-zA-Z\-_]/.test(t)},yb=e=>({value:e,enumerable:!1,writable:!0,configurable:!0}),xb=function(){let e=(t,r)=>Object.defineProperty(String.prototype,t,yb(r));e("fromBase64",function(){return Xf(this)}),e("toBase64",function(t){return Fi(this,t)}),e("toBase64URI",function(){return Fi(this,!0)}),e("toBase64URL",function(){return Fi(this,!0)}),e("toUint8Array",function(){return db(this)})},bb=function(){let e=(t,r)=>Object.defineProperty(Uint8Array.prototype,t,yb(r));e("toBase64",function(t){return xl(this,t)}),e("toBase64URI",function(){return xl(this,!0)}),e("toBase64URL",function(){return xl(this,!0)})},lD=()=>{xb(),bb()},fs={version:ab,VERSION:KI,atob:ep,atobPolyfill:hb,btoa:Kf,btoaPolyfill:cb,fromBase64:Xf,toBase64:Fi,encode:Fi,encodeURI:sb,encodeURL:sb,utob:fb,btou:pb,decode:Xf,isValid:aD,fromUint8Array:xl,toUint8Array:db,extendString:xb,extendUint8Array:bb,extendBuiltins:lD};var Sb=$e(vb(),1);function bl(e){let t=(0,Sb.default)(e);if(t===0)return e;let r=new RegExp(`^[ \\t]{${t}}`,"gm");return e.replace(r,"")}var rp=$e(Mb(),1),QH=new ns;var wD=(e,t,r)=>rp.default(e,t,r),vD=()=>Pb.uni();var ip={};le(ip,{makeEnvObject:()=>SD});var SD=function(e){let t={},r=/(.*)=(.*)/;if(typeof e<"u")for(let n in e){let i=r.exec(e[n]);t[i[1]]=i[2]}return t};var ap={};le(ap,{indent:()=>AD,indentWithPrefix:()=>TD,normalize:()=>CD});var op=e=>{let t=e.split(`
48
- `);return kD(t)},sp=e=>{let t="";for(let r of e)t=t+r+`
49
- `;return t},kD=e=>{let t=/^[\s]*$/;return t.test(e[0])&&e.shift(),t.test(e[e.length-1])&&e.pop(),e},AD=(e,t)=>{let r=op(e);for(let i of r)i=" ".repeat(t)+i;return sp(r)},TD=(e,t)=>{let r,n=op(e),i=[];for(let o of n)i.push(t+o);return r=sp(i),r},CD=e=>{let t,r=op(e),n,i=/^(\s*)/,o=/^(\s*)$/;for(let a of r){let l=i.exec(a)[1];(typeof n>"u"||l.length<n)&&!o.test(a)&&(n=l.length)}let s=[];for(let a of r)s.push(a.substr(n));return t=sp(s),t};var lp={};le(lp,{replaceAll:()=>Fb,standard:()=>ED});var Fb=(e,t,r)=>e.replace(new RegExp(t,"g"),r),ED=(e,t)=>{let r=e;return(!t||t.stripIndent)&&(r=bl(r)),(!t||t.normalizeNewline)&&(r=r.replace(/\r\n/g,`
50
- `)),(!t||t.replaceTabs)&&(r=Fb(r," /"," ")),(!t||t.stripLeadingTrailingEmptyLines)&&(r=r.replace(/^\s*[\r\n]/gm,"").replace(/\s*[\r\n]$/gm,"")),(!t||t.stripAllEmptyLines)&&(r=r.replace(/^\s*[\r\n]/gm,"")),r};var up={};le(up,{isBase64:()=>ID,isUtf8:()=>_D});var vl=class{constructor(t,r){switch(r){case"string":this.refString=t;break;case"base64":this.refString=Li.decode(t);break;case"base64uri":this.refString=Li.decode(t)}}get simpleString(){return this.refString}get base64String(){return Li.encode(this.refString)}get base64UriString(){return Li.encodeUri(this.refString)}},Li={encode:e=>fs.encode(e),encodeUri:e=>fs.encodeURI(e),decode:e=>fs.decode(e),isBase64:e=>/^([A-Za-z0-9+/]{4})*([A-Za-z0-9+/]{3}=|[A-Za-z0-9+/]{2}==)?$/.test(e)};var _D=e=>{let r=new TextEncoder().encode(e),n=0;for(;n<r.length;){if(r[n]===9||r[n]===10||r[n]===13||32<=r[n]&&r[n]<=126){n+=1;continue}if(194<=r[n]&&r[n]<=223&&128<=r[n+1]&&r[n+1]<=191){n+=2;continue}if(r[n]===224&&160<=r[n+1]&&r[n+1]<=191&&128<=r[n+2]&&r[n+2]<=191||(225<=r[n]&&r[n]<=236||r[n]===238||r[n]===239)&&128<=r[n+1]&&r[n+1]<=191&&128<=r[n+2]&&r[n+2]<=191||r[n]===237&&128<=r[n+1]&&r[n+1]<=159&&128<=r[n+2]&&r[n+2]<=191){n+=3;continue}if(r[n]===240&&144<=r[n+1]&&r[n+1]<=191&&128<=r[n+2]&&r[n+2]<=191&&128<=r[n+3]&&r[n+3]<=191||241<=r[n]&&r[n]<=243&&128<=r[n+1]&&r[n+1]<=191&&128<=r[n+2]&&r[n+2]<=191&&128<=r[n+3]&&r[n+3]<=191||r[n]===244&&128<=r[n+1]&&r[n+1]<=143&&128<=r[n+2]&&r[n+2]<=191&&128<=r[n+3]&&r[n+3]<=191){n+=4;continue}return!1}return!0},ID=e=>{let t=/[^A-Z0-9+\/=]/i,r=e.length;if(!r||r%4!==0||t.test(e))return!1;let n=e.indexOf("=");return n===-1||n===r-1||n===r-2&&e[r-1]==="="};var Sl=class{constructor(t){this.protocol=this._protocolRegex(t),this.protocol||(t=`https://${t}`),this.nodeParsedUrl=Nb.parse(t),this.port=this.nodeParsedUrl.port;let r=this._domainRegex(t.replace(this.nodeParsedUrl.pathname,""));this.fullName="";for(let n=1;n<=5;n++)if(r[n-1]){let i=r[n-1];this["level"+n.toString()]=i,this.fullName===""?this.fullName=i:this.fullName=i+"."+this.fullName}else this["level"+n.toString()]=void 0;this.zoneName=this.level2+"."+this.level1,this.topLevel=this.level1,this.domainName=this.level2,this.subDomain=this.level3}_domainRegex(t){let n=/([a-zA-Z0-9\-\_]*)\.{0,1}([a-zA-Z0-9\-\_]*)\.{0,1}([a-zA-Z0-9\-\_]*)\.{0,1}([a-zA-Z0-9\-\_]*)\.{0,1}([a-zA-Z0-9\-\_]*)\.{0,1}$/.exec(t);return n.reverse(),n.pop(),n.filter(function(o){return o!==""})}_protocolRegex(t){let n=/^([a-zA-Z0-9]*):\/\//.exec(t);if(n)return n[1]}_portRegex(t){let n=/^([a-zA-Z0-9]*):\/\//.exec(t);if(n)return n[1]}};var kl=class{constructor(t,r){let n=DD(t);this.host=n[1],this.user=n[2],this.repo=n[3],this.accessToken=r,this.sshUrl=Rb(this.host,this.user,this.repo,this.accessToken,"ssh"),this.httpsUrl=Rb(this.host,this.user,this.repo,this.accessToken,"https")}},DD=function(e){return/([a-zA-Z0-9\-_\.]*)(?:\/|\:)([a-zA-Z0-9\-_\.]*)(?:\/)([a-zA-Z0-9\-_\.]*)(?:\.git)/.exec(e)},Rb=function(e,t,r,n="",i){let o;switch(n!==""&&(n=n+"@"),i){case"https":o="https://"+n+e+"/"+t+"/"+r+".git";break;case"ssh":o="git@"+e+":"+t+"/"+r+".git";break;default:console.error("Link Type "+i+" not known");break}return o};var Ap=$e(A0(),1),E0=$e(C0(),1);var _0=E0.default;function oM(e){return btoa(String.fromCharCode(...e))}function sM(e){return new Uint8Array(Array.from(atob(e)).map(t=>t.charCodeAt(0)))}function I0(e,t){return JSON.stringify(e,aM,t)}function D0(e){return JSON.parse(e,lM)}var aM=(e,t)=>{if(cM(t)){let r;if("data"in t&&O0(t.data))if(t.data.length>0)r=new Uint8Array(t.data);else return"";else if(t instanceof Uint8Array)r=t;else return t;return{type:"EncodedBuffer",data:"base64:"+oM(r)}}return t},lM=(e,t)=>{if(uM(t)&&Tp(t.data)&&t.data.startsWith("base64:")){let r=t.data.slice(7);return sM(r)}return t};function uM(e){return M0(e)&&e.type==="EncodedBuffer"&&Tp(e.data)}function cM(e){return M0(e)&&e.type==="Buffer"&&(O0(e.data)||Tp(e.data))||e instanceof Uint8Array}function O0(e){return Array.isArray(e)}function Tp(e){return typeof e=="string"}function M0(e){return typeof e=="object"&&e!==null}var ds=D0,pM=e=>e.trim().split(`
51
- `).reduce((n,i)=>(i.trim().length>0&&n.push(JSON.parse(i)),n),[]),zi=(e,t,r={})=>{let n=I0(e);return e=JSON.parse(n),_0(e,r)},hM=e=>{let t=zi(e),r=JSON.parse(t);return JSON.stringify(r,null,2)},mM=(...e)=>{let t=zi(...e);return Vr.base64.encodeUri(t)},dM=e=>{let t=Vr.base64.decode(e);return ds(t)},Cp=class e{static enfoldFromObject(t){let r=new this;for(let n in t)r.saveableProperties.indexOf(n)!==-1&&(r[n]=t[n]);return r}static enfoldFromJson(t){let r=ds(t);return this.enfoldFromObject(r)}foldToObject(){let t={},r=[];for(let n of this.saveableProperties){let i=this[n];if(i instanceof e){if(r.includes(i))throw new Error("cycle detected");r.push(i),i=i.foldToObject()}t[n]=Ap.default(i)}return t}foldToJson(){let t=this.foldToObject();return zi(t)}},gM=()=>(e,t)=>{e.saveableProperties||(e.saveableProperties=[]),e.saveableProperties.push(t)},P0=(e,t)=>{let r=zi(e),n=zi(t);return r===n},yM=(e,t)=>{let r=[];e.split(`
47
+ `)}};var ys={};le(ys,{WebRequest:()=>Np});var In={};le(In,{Smartenv:()=>ns});var ns=class{constructor(){this.loadedScripts=[]}async getEnvAwareModule(t){if(this.isNode)return await this.getSafeNodeModule(t.nodeModuleName);if(this.isBrowser)return await this.getSafeWebModule(t.webUrlArg,t.getFunction);console.error("platform for loading not supported by smartenv")}async getSafeNodeModule(t,r){if(!this.isNode){console.error(`You tried to load a node module in a wrong context: ${t}`);return}let n=await new Function(`return import('${t}')`)();return r&&await r(n),n}async getSafeWebModule(t,r){if(!this.isBrowser){console.error("You tried to load a web module in a wrong context");return}if(this.loadedScripts.includes(t))return r();this.loadedScripts.push(t);let n=re.defer();if(globalThis.importScripts)globalThis.importScripts(t),n.resolve();else{let i=document.createElement("script");i.onload=()=>{n.resolve()},i.src=t,document.head.appendChild(i)}return await n.promise,r()}get runtimeEnv(){return typeof process<"u"?"node":"browser"}get isBrowser(){return!this.isNode}get userAgent(){return this.isBrowser?navigator.userAgent:"undefined"}get isNode(){return this.runtimeEnv==="node"}get nodeVersion(){return process.version}get isCI(){return this.isNode?!!process.env.CI:!1}async isMacAsync(){return this.isNode?(await this.getSafeNodeModule("os")).platform()==="darwin":!1}async isWindowsAsync(){return this.isNode?(await this.getSafeNodeModule("os")).platform()==="win32":!1}async isLinuxAsync(){return this.isNode?(await this.getSafeNodeModule("os")).platform()==="linux":!1}async printEnv(){this.isNode?(console.log("running on NODE"),console.log("node version is "+this.nodeVersion)):(console.log("running on BROWSER"),console.log("browser is "+this.userAgent))}};var Pe={};le(Pe,{Smartjson:()=>Cp,deepEqualJsonLStrings:()=>bO,deepEqualObjects:()=>M0,foldDec:()=>xO,parse:()=>ds,parseBase64:()=>yO,parseJsonL:()=>mO,stringify:()=>zi,stringifyBase64:()=>gO,stringifyPretty:()=>dO});var Vr={};le(Vr,{Base64:()=>vl,Domain:()=>Sl,GitRepo:()=>kl,base64:()=>Li,create:()=>np,docker:()=>ip,indent:()=>ap,normalize:()=>lp,type:()=>up});var np={};le(np,{createCryptoRandomString:()=>kP,createRandomString:()=>SP});var Mb=$e(Ea(),1),Nb=$e(tb(),1);var ab="3.7.7",tP=ab,Ri=typeof Buffer=="function",rb=typeof TextDecoder=="function"?new TextDecoder:void 0,nb=typeof TextEncoder=="function"?new TextEncoder:void 0,rP="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",cs=Array.prototype.slice.call(rP),yl=(e=>{let t={};return e.forEach((r,n)=>t[r]=n),t})(cs),nP=/^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/,et=String.fromCharCode.bind(String),ib=typeof Uint8Array.from=="function"?Uint8Array.from.bind(Uint8Array):e=>new Uint8Array(Array.prototype.slice.call(e,0)),lb=e=>e.replace(/=/g,"").replace(/[+\/]/g,t=>t=="+"?"-":"_"),ub=e=>e.replace(/[^A-Za-z0-9\+\/]/g,""),cb=e=>{let t,r,n,i,o="",s=e.length%3;for(let a=0;a<e.length;){if((r=e.charCodeAt(a++))>255||(n=e.charCodeAt(a++))>255||(i=e.charCodeAt(a++))>255)throw new TypeError("invalid character found");t=r<<16|n<<8|i,o+=cs[t>>18&63]+cs[t>>12&63]+cs[t>>6&63]+cs[t&63]}return s?o.slice(0,s-3)+"===".substring(s):o},Kf=typeof btoa=="function"?e=>btoa(e):Ri?e=>Buffer.from(e,"binary").toString("base64"):cb,Zf=Ri?e=>Buffer.from(e).toString("base64"):e=>{let r=[];for(let n=0,i=e.length;n<i;n+=4096)r.push(et.apply(null,e.subarray(n,n+4096)));return Kf(r.join(""))},xl=(e,t=!1)=>t?lb(Zf(e)):Zf(e),iP=e=>{if(e.length<2){var t=e.charCodeAt(0);return t<128?e:t<2048?et(192|t>>>6)+et(128|t&63):et(224|t>>>12&15)+et(128|t>>>6&63)+et(128|t&63)}else{var t=65536+(e.charCodeAt(0)-55296)*1024+(e.charCodeAt(1)-56320);return et(240|t>>>18&7)+et(128|t>>>12&63)+et(128|t>>>6&63)+et(128|t&63)}},oP=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,fb=e=>e.replace(oP,iP),ob=Ri?e=>Buffer.from(e,"utf8").toString("base64"):nb?e=>Zf(nb.encode(e)):e=>Kf(fb(e)),Fi=(e,t=!1)=>t?lb(ob(e)):ob(e),sb=e=>Fi(e,!0),sP=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,aP=e=>{switch(e.length){case 4:var t=(7&e.charCodeAt(0))<<18|(63&e.charCodeAt(1))<<12|(63&e.charCodeAt(2))<<6|63&e.charCodeAt(3),r=t-65536;return et((r>>>10)+55296)+et((r&1023)+56320);case 3:return et((15&e.charCodeAt(0))<<12|(63&e.charCodeAt(1))<<6|63&e.charCodeAt(2));default:return et((31&e.charCodeAt(0))<<6|63&e.charCodeAt(1))}},pb=e=>e.replace(sP,aP),hb=e=>{if(e=e.replace(/\s+/g,""),!nP.test(e))throw new TypeError("malformed base64.");e+="==".slice(2-(e.length&3));let t,r="",n,i;for(let o=0;o<e.length;)t=yl[e.charAt(o++)]<<18|yl[e.charAt(o++)]<<12|(n=yl[e.charAt(o++)])<<6|(i=yl[e.charAt(o++)]),r+=n===64?et(t>>16&255):i===64?et(t>>16&255,t>>8&255):et(t>>16&255,t>>8&255,t&255);return r},ep=typeof atob=="function"?e=>atob(ub(e)):Ri?e=>Buffer.from(e,"base64").toString("binary"):hb,mb=Ri?e=>ib(Buffer.from(e,"base64")):e=>ib(ep(e).split("").map(t=>t.charCodeAt(0))),db=e=>mb(gb(e)),lP=Ri?e=>Buffer.from(e,"base64").toString("utf8"):rb?e=>rb.decode(mb(e)):e=>pb(ep(e)),gb=e=>ub(e.replace(/[-_]/g,t=>t=="-"?"+":"/")),Xf=e=>lP(gb(e)),uP=e=>{if(typeof e!="string")return!1;let t=e.replace(/\s+/g,"").replace(/={0,2}$/,"");return!/[^\s0-9a-zA-Z\+/]/.test(t)||!/[^\s0-9a-zA-Z\-_]/.test(t)},yb=e=>({value:e,enumerable:!1,writable:!0,configurable:!0}),xb=function(){let e=(t,r)=>Object.defineProperty(String.prototype,t,yb(r));e("fromBase64",function(){return Xf(this)}),e("toBase64",function(t){return Fi(this,t)}),e("toBase64URI",function(){return Fi(this,!0)}),e("toBase64URL",function(){return Fi(this,!0)}),e("toUint8Array",function(){return db(this)})},bb=function(){let e=(t,r)=>Object.defineProperty(Uint8Array.prototype,t,yb(r));e("toBase64",function(t){return xl(this,t)}),e("toBase64URI",function(){return xl(this,!0)}),e("toBase64URL",function(){return xl(this,!0)})},cP=()=>{xb(),bb()},fs={version:ab,VERSION:tP,atob:ep,atobPolyfill:hb,btoa:Kf,btoaPolyfill:cb,fromBase64:Xf,toBase64:Fi,encode:Fi,encodeURI:sb,encodeURL:sb,utob:fb,btou:pb,decode:Xf,isValid:uP,fromUint8Array:xl,toUint8Array:db,extendString:xb,extendUint8Array:bb,extendBuiltins:cP};var Sb=$e(vb(),1);function bl(e){let t=(0,Sb.default)(e);if(t===0)return e;let r=new RegExp(`^[ \\t]{${t}}`,"gm");return e.replace(r,"")}var rp=$e(Ob(),1),XH=new ns;var SP=(e,t,r)=>rp.default(e,t,r),kP=()=>Mb.uni();var ip={};le(ip,{makeEnvObject:()=>AP});var AP=function(e){let t={},r=/(.*)=(.*)/;if(typeof e<"u")for(let n in e){let i=r.exec(e[n]);t[i[1]]=i[2]}return t};var ap={};le(ap,{indent:()=>CP,indentWithPrefix:()=>EP,normalize:()=>_P});var op=e=>{let t=e.split(`
48
+ `);return TP(t)},sp=e=>{let t="";for(let r of e)t=t+r+`
49
+ `;return t},TP=e=>{let t=/^[\s]*$/;return t.test(e[0])&&e.shift(),t.test(e[e.length-1])&&e.pop(),e},CP=(e,t)=>{let r=op(e);for(let i of r)i=" ".repeat(t)+i;return sp(r)},EP=(e,t)=>{let r,n=op(e),i=[];for(let o of n)i.push(t+o);return r=sp(i),r},_P=e=>{let t,r=op(e),n,i=/^(\s*)/,o=/^(\s*)$/;for(let a of r){let l=i.exec(a)[1];(typeof n>"u"||l.length<n)&&!o.test(a)&&(n=l.length)}let s=[];for(let a of r)s.push(a.substr(n));return t=sp(s),t};var lp={};le(lp,{replaceAll:()=>Fb,standard:()=>IP});var Fb=(e,t,r)=>e.replace(new RegExp(t,"g"),r),IP=(e,t)=>{let r=e;return(!t||t.stripIndent)&&(r=bl(r)),(!t||t.normalizeNewline)&&(r=r.replace(/\r\n/g,`
50
+ `)),(!t||t.replaceTabs)&&(r=Fb(r," /"," ")),(!t||t.stripLeadingTrailingEmptyLines)&&(r=r.replace(/^\s*[\r\n]/gm,"").replace(/\s*[\r\n]$/gm,"")),(!t||t.stripAllEmptyLines)&&(r=r.replace(/^\s*[\r\n]/gm,"")),r};var up={};le(up,{isBase64:()=>DP,isUtf8:()=>PP});var vl=class{constructor(t,r){switch(r){case"string":this.refString=t;break;case"base64":this.refString=Li.decode(t);break;case"base64uri":this.refString=Li.decode(t)}}get simpleString(){return this.refString}get base64String(){return Li.encode(this.refString)}get base64UriString(){return Li.encodeUri(this.refString)}},Li={encode:e=>fs.encode(e),encodeUri:e=>fs.encodeURI(e),decode:e=>fs.decode(e),isBase64:e=>/^([A-Za-z0-9+/]{4})*([A-Za-z0-9+/]{3}=|[A-Za-z0-9+/]{2}==)?$/.test(e)};var PP=e=>{let r=new TextEncoder().encode(e),n=0;for(;n<r.length;){if(r[n]===9||r[n]===10||r[n]===13||32<=r[n]&&r[n]<=126){n+=1;continue}if(194<=r[n]&&r[n]<=223&&128<=r[n+1]&&r[n+1]<=191){n+=2;continue}if(r[n]===224&&160<=r[n+1]&&r[n+1]<=191&&128<=r[n+2]&&r[n+2]<=191||(225<=r[n]&&r[n]<=236||r[n]===238||r[n]===239)&&128<=r[n+1]&&r[n+1]<=191&&128<=r[n+2]&&r[n+2]<=191||r[n]===237&&128<=r[n+1]&&r[n+1]<=159&&128<=r[n+2]&&r[n+2]<=191){n+=3;continue}if(r[n]===240&&144<=r[n+1]&&r[n+1]<=191&&128<=r[n+2]&&r[n+2]<=191&&128<=r[n+3]&&r[n+3]<=191||241<=r[n]&&r[n]<=243&&128<=r[n+1]&&r[n+1]<=191&&128<=r[n+2]&&r[n+2]<=191&&128<=r[n+3]&&r[n+3]<=191||r[n]===244&&128<=r[n+1]&&r[n+1]<=143&&128<=r[n+2]&&r[n+2]<=191&&128<=r[n+3]&&r[n+3]<=191){n+=4;continue}return!1}return!0},DP=e=>{let t=/[^A-Z0-9+\/=]/i,r=e.length;if(!r||r%4!==0||t.test(e))return!1;let n=e.indexOf("=");return n===-1||n===r-1||n===r-2&&e[r-1]==="="};var Sl=class{constructor(t){this.protocol=this._protocolRegex(t),this.protocol||(t=`https://${t}`),this.nodeParsedUrl=Nb.parse(t),this.port=this.nodeParsedUrl.port;let r=this._domainRegex(t.replace(this.nodeParsedUrl.pathname,""));this.fullName="";for(let n=1;n<=5;n++)if(r[n-1]){let i=r[n-1];this["level"+n.toString()]=i,this.fullName===""?this.fullName=i:this.fullName=i+"."+this.fullName}else this["level"+n.toString()]=void 0;this.zoneName=this.level2+"."+this.level1,this.topLevel=this.level1,this.domainName=this.level2,this.subDomain=this.level3}_domainRegex(t){let n=/([a-zA-Z0-9\-\_]*)\.{0,1}([a-zA-Z0-9\-\_]*)\.{0,1}([a-zA-Z0-9\-\_]*)\.{0,1}([a-zA-Z0-9\-\_]*)\.{0,1}([a-zA-Z0-9\-\_]*)\.{0,1}$/.exec(t);return n.reverse(),n.pop(),n.filter(function(o){return o!==""})}_protocolRegex(t){let n=/^([a-zA-Z0-9]*):\/\//.exec(t);if(n)return n[1]}_portRegex(t){let n=/^([a-zA-Z0-9]*):\/\//.exec(t);if(n)return n[1]}};var kl=class{constructor(t,r){let n=OP(t);this.host=n[1],this.user=n[2],this.repo=n[3],this.accessToken=r,this.sshUrl=Rb(this.host,this.user,this.repo,this.accessToken,"ssh"),this.httpsUrl=Rb(this.host,this.user,this.repo,this.accessToken,"https")}},OP=function(e){return/([a-zA-Z0-9\-_\.]*)(?:\/|\:)([a-zA-Z0-9\-_\.]*)(?:\/)([a-zA-Z0-9\-_\.]*)(?:\.git)/.exec(e)},Rb=function(e,t,r,n="",i){let o;switch(n!==""&&(n=n+"@"),i){case"https":o="https://"+n+e+"/"+t+"/"+r+".git";break;case"ssh":o="git@"+e+":"+t+"/"+r+".git";break;default:console.error("Link Type "+i+" not known");break}return o};var Ap=$e(A0(),1),E0=$e(C0(),1);var _0=E0.default;function aO(e){return btoa(String.fromCharCode(...e))}function lO(e){return new Uint8Array(Array.from(atob(e)).map(t=>t.charCodeAt(0)))}function I0(e,t){return JSON.stringify(e,uO,t)}function P0(e){return JSON.parse(e,cO)}var uO=(e,t)=>{if(pO(t)){let r;if("data"in t&&D0(t.data))if(t.data.length>0)r=new Uint8Array(t.data);else return"";else if(t instanceof Uint8Array)r=t;else return t;return{type:"EncodedBuffer",data:"base64:"+aO(r)}}return t},cO=(e,t)=>{if(fO(t)&&Tp(t.data)&&t.data.startsWith("base64:")){let r=t.data.slice(7);return lO(r)}return t};function fO(e){return O0(e)&&e.type==="EncodedBuffer"&&Tp(e.data)}function pO(e){return O0(e)&&e.type==="Buffer"&&(D0(e.data)||Tp(e.data))||e instanceof Uint8Array}function D0(e){return Array.isArray(e)}function Tp(e){return typeof e=="string"}function O0(e){return typeof e=="object"&&e!==null}var ds=P0,mO=e=>e.trim().split(`
51
+ `).reduce((n,i)=>(i.trim().length>0&&n.push(JSON.parse(i)),n),[]),zi=(e,t,r={})=>{let n=I0(e);return e=JSON.parse(n),_0(e,r)},dO=e=>{let t=zi(e),r=JSON.parse(t);return JSON.stringify(r,null,2)},gO=(...e)=>{let t=zi(...e);return Vr.base64.encodeUri(t)},yO=e=>{let t=Vr.base64.decode(e);return ds(t)},Cp=class e{static enfoldFromObject(t){let r=new this;for(let n in t)r.saveableProperties.indexOf(n)!==-1&&(r[n]=t[n]);return r}static enfoldFromJson(t){let r=ds(t);return this.enfoldFromObject(r)}foldToObject(){let t={},r=[];for(let n of this.saveableProperties){let i=this[n];if(i instanceof e){if(r.includes(i))throw new Error("cycle detected");r.push(i),i=i.foldToObject()}t[n]=Ap.default(i)}return t}foldToJson(){let t=this.foldToObject();return zi(t)}},xO=()=>(e,t)=>{e.saveableProperties||(e.saveableProperties=[]),e.saveableProperties.push(t)},M0=(e,t)=>{let r=zi(e),n=zi(t);return r===n},bO=(e,t)=>{let r=[];e.split(`
52
52
  `).forEach(i=>{i&&r.push(ds(i))});let n=[];return t.split(`
53
- `).forEach(i=>{i&&n.push(ds(i))}),P0(r,n)};var Yr={};le(Yr,{TypedrequestCache:()=>Pp,WebStore:()=>gs});var Nl={};le(Nl,{deleteDB:()=>TM,openDB:()=>AM,unwrap:()=>Ml,wrap:()=>wr});var Ip=(e,t)=>t.some(r=>e instanceof r),N0,F0;function xM(){return N0||(N0=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])}function bM(){return F0||(F0=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])}var Dp=new WeakMap,Ep=new WeakMap,Pl=new WeakMap;function wM(e){let t=new Promise((r,n)=>{let i=()=>{e.removeEventListener("success",o),e.removeEventListener("error",s)},o=()=>{r(wr(e.result)),i()},s=()=>{n(e.error),i()};e.addEventListener("success",o),e.addEventListener("error",s)});return Pl.set(t,e),t}function vM(e){if(Dp.has(e))return;let t=new Promise((r,n)=>{let i=()=>{e.removeEventListener("complete",o),e.removeEventListener("error",s),e.removeEventListener("abort",s)},o=()=>{r(),i()},s=()=>{n(e.error||new DOMException("AbortError","AbortError")),i()};e.addEventListener("complete",o),e.addEventListener("error",s),e.addEventListener("abort",s)});Dp.set(e,t)}var Op={get(e,t,r){if(e instanceof IDBTransaction){if(t==="done")return Dp.get(e);if(t==="store")return r.objectStoreNames[1]?void 0:r.objectStore(r.objectStoreNames[0])}return wr(e[t])},set(e,t,r){return e[t]=r,!0},has(e,t){return e instanceof IDBTransaction&&(t==="done"||t==="store")?!0:t in e}};function $0(e){Op=e(Op)}function SM(e){return bM().includes(e)?function(...t){return e.apply(Ml(this),t),wr(this.request)}:function(...t){return wr(e.apply(Ml(this),t))}}function kM(e){return typeof e=="function"?SM(e):(e instanceof IDBTransaction&&vM(e),Ip(e,xM())?new Proxy(e,Op):e)}function wr(e){if(e instanceof IDBRequest)return wM(e);if(Ep.has(e))return Ep.get(e);let t=kM(e);return t!==e&&(Ep.set(e,t),Pl.set(t,e)),t}var Ml=e=>Pl.get(e);function AM(e,t,{blocked:r,upgrade:n,blocking:i,terminated:o}={}){let s=indexedDB.open(e,t),a=wr(s);return n&&s.addEventListener("upgradeneeded",l=>{n(wr(s.result),l.oldVersion,l.newVersion,wr(s.transaction),l)}),r&&s.addEventListener("blocked",l=>r(l.oldVersion,l.newVersion,l)),a.then(l=>{o&&l.addEventListener("close",()=>o()),i&&l.addEventListener("versionchange",u=>i(u.oldVersion,u.newVersion,u))}).catch(()=>{}),a}function TM(e,{blocked:t}={}){let r=indexedDB.deleteDatabase(e);return t&&r.addEventListener("blocked",n=>t(n.oldVersion,n)),wr(r).then(()=>{})}var CM=["get","getKey","getAll","getAllKeys","count"],EM=["put","add","delete","clear"],_p=new Map;function R0(e,t){if(!(e instanceof IDBDatabase&&!(t in e)&&typeof t=="string"))return;if(_p.get(t))return _p.get(t);let r=t.replace(/FromIndex$/,""),n=t!==r,i=EM.includes(r);if(!(r in(n?IDBIndex:IDBObjectStore).prototype)||!(i||CM.includes(r)))return;let o=async function(s,...a){let l=this.transaction(s,i?"readwrite":"readonly"),u=l.store;return n&&(u=u.index(a.shift())),(await Promise.all([u[r](...a),i&&l.done]))[0]};return _p.set(t,o),o}$0(e=>({...e,get:(t,r,n)=>R0(t,r)||e.get(t,r,n),has:(t,r)=>!!R0(t,r)||e.has(t,r)}));var _M=["continue","continuePrimaryKey","advance"],L0={},Mp=new WeakMap,U0=new WeakMap,IM={get(e,t){if(!_M.includes(t))return e[t];let r=L0[t];return r||(r=L0[t]=function(...n){Mp.set(this,U0.get(this)[t](...n))}),r}};async function*DM(...e){let t=this;if(t instanceof IDBCursor||(t=await t.openCursor(...e)),!t)return;t=t;let r=new Proxy(t,IM);for(U0.set(r,t),Pl.set(r,Ml(t));t;)yield r,t=await(Mp.get(r)||t.continue()),Mp.delete(r)}function B0(e,t){return t===Symbol.asyncIterator&&Ip(e,[IDBIndex,IDBObjectStore,IDBCursor])||t==="iterate"&&Ip(e,[IDBIndex,IDBObjectStore])}$0(e=>({...e,get(t,r,n){return B0(t,r)?DM:e.get(t,r,n)},has(t,r){return B0(t,r)||e.has(t,r)}}));var gs=class{constructor(t){this.initCalled=!1,this.readyDeferred=re.defer(),this.options=t}async init(){if(this.initCalled){await this.readyDeferred.promise;return}this.initCalled=!0;let t=new In.Smartenv;if(!t.isBrowser&&!globalThis.indexedDB&&(console.log("hey"),console.log(globalThis.indexedDB),await t.getSafeNodeModule("fake-indexeddb/auto"),!globalThis.indexedDB)){let r=await t.getSafeNodeModule("fake-indexeddb");globalThis.indexedDB=new r.IDBFactory}this.db=await Nl.openDB(this.options.dbName,1,{upgrade:r=>{r.createObjectStore(this.options.storeName)}}),this.readyDeferred.resolve()}async get(t){return await this.init(),this.db.get(this.options.storeName,t)}async check(t){return await this.init(),!!await this.get(t)}async set(t,r){return await this.init(),this.db.put(this.options.storeName,r,t)}async delete(t){return await this.init(),this.db.delete(this.options.storeName,t)}async clear(){return await this.init(),this.db.clear(this.options.storeName)}async keys(){return await this.init(),this.db.getAllKeys(this.options.storeName)}};var Pp=class{constructor(t="default"){this.webstore=new gs({dbName:"trStore",storeName:`trStore-${t}`})}buildKey(t){return De.stringify({method:t.method,request:t.request})}async setByRequest(t){if(!t.response)throw new Error("You cannot store requests without a response present");await this.webstore.set(this.buildKey(t),t)}async getByRequest(t){return await this.webstore.get(this.buildKey(t))}};var Np=class{constructor(t={}){this.optionsArg=t,this.cacheStore=new Yr.WebStore({dbName:"webrequest",storeName:"webrequest"}),this.options={logging:!0,...t}}async getJson(t,r=!1){let i=await(await this.request(t,{method:"GET",useCache:r})).text();return De.parse(i)}async postJson(t,r,n=!1){let o=await(await this.request(t,{method:"POST",headers:{"Content-Type":"application/json"},body:De.stringify(r),useCache:n})).text();return De.parse(o)}async putJson(t,r,n=!1){let o=await(await this.request(t,{method:"PUT",headers:{"Content-Type":"application/json"},body:De.stringify(r)})).text();return De.parse(o)}async deleteJson(t,r=!1){let i=await(await this.request(t,{headers:{"Content-Type":"application/json"},method:"GET"})).text();return De.parse(i)}async request(t,r){r={timeoutMs:6e4,useCache:!1,...r};let n=new AbortController;he.delayFor(r.timeoutMs).then(()=>{n.abort()});let i=re.defer(),o=!1;if(r.useCache&&await this.cacheStore.check(t)){let a=await this.cacheStore.get(t);i.resolve(new Response(a,{}))}else i.resolve(null);let s=await fetch(t,{signal:n.signal,method:r.method,headers:{...r.headers||{}},body:r.body}).catch(async a=>r.useCache&&await i.promise?(o=!0,i.promise):a);if(r.useCache&&await i.promise&&s.status===500&&(o=!0,s=await i.promise),!o&&r.useCache&&s.status<300){let a=await s.clone().arrayBuffer();await this.cacheStore.set(t,a)}return this.log(`${t} answers with status: ${s.status}`),s}async requestMultiEndpoint(t,r){let n,i=0;Array.isArray(t)?n=t:n=[t];let o=[],s=async u=>{o.push(u),u==="429"&&(console.log("got 429, so waiting a little bit."),await he.delayFor(Math.floor(Math.random()*1001)+1e3));let c=0;for(let f of o)f===u&&c++;c>2*n.length*i&&i++},a=async u=>{if(!u)throw new Error("request failed permanently");this.log(`Getting ${u} with method ${r.method}`);let c=await fetch(u,{method:r.method,headers:{"Content-Type":"application/json",...r.headers||{}},body:r.body});return this.log(`${u} answers with status: ${c.status}`),c.status>=200&&c.status<300?c:(await s(c.status.toString()),await a(n[i]))};return await a(n[i])}log(t){this.options.logging&&console.log(t)}};var vr=class{constructor(t,r){this.errorText=t,this.errorData=r}};var Rl=class{async passGuards(t,r){let n=new tl.GuardSet(t);if(!await n.allGuardsPass(r)){let o=await n.getFailedHint(r);throw new vr(`guard failed: ${o}`,{failedHint:o})}}};var Fp=class{constructor(t,r){this.method=t,this.handlerFunction=r}async addResponse(t){if(t.method!==this.method)throw new Error("this handler has been given a wrong method to answer to. Please use a TypedRouter to filter requests");let r,n=new Rl,i=await this.handlerFunction(t.request,n).catch(o=>{o instanceof vr?r=o:console.log(o)});return r&&(t.error={text:r.errorText,data:r.errorData}),i&&(t.response=i),t?.correlation?.phase&&(t.correlation.phase="response"),t}};var xs=class{constructor(){this.routerMap=new ft.ObjectMap,this.handlerMap=new ft.ObjectMap,this.registeredVirtualStreams=new ft.ObjectMap,this.fireEventInterestMap=new ft.InterestMap(t=>t)}addTypedHandler(t){if(this.getTypedHandlerForMethod(t.method))throw new Error(`a TypedHandler for ${t.method} alredy exists! Can't add another one.`);this.handlerMap.add(t)}addTypedRouter(t){this.routerMap.findSync(n=>n===t)||(this.routerMap.add(t),t.addTypedRouter(this))}checkForTypedHandler(t){return!!this.getTypedHandlerForMethod(t)}getTypedHandlerForMethod(t,r=[]){r.push(this);let n;return n=this.handlerMap.findSync(i=>i.method===t),n||this.routerMap.getArray().forEach(i=>{!n&&!r.includes(i)&&(n=i.getTypedHandlerForMethod(t,r))}),n}async routeAndAddResponse(t,r=!1){if(t=Zt.decodePayloadFromNetwork(t,{typedrouter:this}),t.localData=t.localData||{},t.localData.firstTypedrouter=this,t.method==="##VirtualStream##"){let n=await this.handleStreamTypedRequest(t);return n.localData=null,n}if(t?.correlation?.phase==="request"||r){let n=this.getTypedHandlerForMethod(t.method);return n?(t=await n.addResponse(t),t.localData=null,t=Zt.encodePayloadForNetwork(t,{typedrouter:this}),t):(console.log(`Cannot find handler for methodname ${t.method}`),t.error={text:"There is no available method for this call on the server side",data:{}},t.correlation.phase="response",t.localData=null,t=Zt.encodePayloadForNetwork(t,{typedrouter:this}),t)}else return t?.correlation?.phase==="response"?(this.fireEventInterestMap.findInterest(t.correlation.id)?.fullfillInterest(t),null):(console.log("received weirdly shaped request"),console.log(t),null)}async handleStreamTypedRequest(t){let r=await this.registeredVirtualStreams.find(async i=>i.streamId===t.request.streamId);if(r)console.log(`success: found relevant virtual stream with id ${t.request.streamId}`);else return console.log(`no relevant virtual stream found for stream with id ${t.request.streamId}`),console.log(this.registeredVirtualStreams.getArray()),t;return await r.handleStreamTr(t)}};var q0="#############CLOSING BIT#############",Zt=class e{static encodePayloadForNetwork(t,r,n,i=[]){return!t||Ko.isBufferLike(t)?t:t instanceof e?(!t.side&&r.sendMethod&&(t.side="requesting",t.sendMethod=r.sendMethod),!t.side&&r.typedrouter&&(t.side="responding",t.typedrouter=r.typedrouter,r.typedrouter.registeredVirtualStreams.add(t)),!n.response||i.includes("response")?(t.startKeepAliveLoop(),{_isVirtualStream:!0,streamId:t.streamId}):{_OBMITTED_VIRTUAL_STREAM:!0,reason:"path is under .request: obmitted for deduplication reasons in response cycle."}):Array.isArray(t)?t.map((o,s)=>e.encodePayloadForNetwork(o,r,n||t,i.concat(String(s)))):t!==null&&typeof t=="object"?Object.entries(t).reduce((o,[s,a])=>{let l=i.concat(s);return o[s]=e.encodePayloadForNetwork(a,r,n||t,l),o},{}):t}static decodePayloadFromNetwork(t,r){if(Ko.isBufferLike(t)||t instanceof xs)return t;if(t!==null&&typeof t=="object")if(t._isVirtualStream){let n=new e;return n.streamId=t.streamId,!n.side&&r.sendMethod&&(n.side="requesting",n.sendMethod=r.sendMethod),!n.side&&r.typedrouter&&(n.side="responding",n.typedrouter=r.typedrouter,r.typedrouter.registeredVirtualStreams.add(n)),n.startKeepAliveLoop(),n}else if(Array.isArray(t)){let n=[];for(let i of t)n.push(e.decodePayloadFromNetwork(i,r));return n}else return Object.keys(t).reduce((n,i)=>(n[i]=e.decodePayloadFromNetwork(t[i],r),n),{});else return t}constructor(){this.streamId=Ln.uni(),this.keepAlive=!0,this.sendBackpressuredArray=new ft.BackpressuredArray(16),this.receiveBackpressuredArray=new ft.BackpressuredArray(16)}async workOnQueue(){if(this.workingDeferred)return this.workingDeferred.promise;if(this.workingDeferred=re.defer(),this.side==="requesting"){let t=!this.receiveBackpressuredArray.checkSpaceAvailable(),r=!1,n=!1,i=async()=>{let o=await this.sendMethod({method:"##VirtualStream##",request:{streamId:this.streamId,cycleId:Ln.uni(),cycle:"request",mainPurpose:"feedback",next:this.sendBackpressuredArray.data.length>0,backpressure:!this.receiveBackpressuredArray.checkSpaceAvailable()},response:null}).catch(()=>{console.log("stream ended immaturely"),this.keepAlive=!1});o&&o.response&&(n=o.response.backpressure,r=o.response.next)};for(await i();this.sendBackpressuredArray.data.length>0||r;){if(n)for(;n;)console.log("waiting for feedback because of backpressure..."),await he.delayFor(50),await i();let o;this.sendBackpressuredArray.data.length>0&&(o=this.sendBackpressuredArray.shift());let s;s=await this.sendMethod({method:"##VirtualStream##",request:{streamId:this.streamId,cycleId:Ln.uni(),cycle:"request",mainPurpose:o?"chunk":"read",backpressure:t,next:this.sendBackpressuredArray.data.length>0,...o?{chunkData:o}:{}},response:null}).catch(()=>(console.log("stream ended immaturely"),this.keepAlive=!1,null)),s&&s.response&&s.response.chunkData&&this.receiveBackpressuredArray.push(s.response.chunkData),n=s&&s.response&&s.response.backpressure,t=!this.receiveBackpressuredArray.checkSpaceAvailable(),r=s&&s.response&&s.response.next}}this.workingDeferred.resolve(),this.workingDeferred=null}async handleStreamTr(t){if(t.request.keepAlive===!0&&this.keepAlive===!0?this.lastKeepAliveEvent=Date.now():t.request.keepAlive===!1&&(this.keepAlive=!1),t.request.mainPurpose==="keepAlive"&&(t.response={streamId:this.streamId,cycleId:t.request.cycleId,cycle:"response",mainPurpose:"keepAlive",keepAlive:this.keepAlive,next:this.sendBackpressuredArray.data.length>0,backpressure:!this.receiveBackpressuredArray.checkSpaceAvailable()}),t.request.mainPurpose==="feedback"&&(t.response={streamId:this.streamId,cycleId:t.request.cycleId,cycle:"response",mainPurpose:"feedback",next:this.sendBackpressuredArray.data.length>0,backpressure:!this.receiveBackpressuredArray.checkSpaceAvailable()}),t.request.mainPurpose==="chunk"){if(this.receiveBackpressuredArray.push(t.request.chunkData),this.sendBackpressuredArray.data.length>0&&t.response.backpressure===!1){let r=this.sendBackpressuredArray.shift();t.response={streamId:this.streamId,cycleId:t.request.cycleId,cycle:"response",mainPurpose:"chunk",next:this.sendBackpressuredArray.data.length>1,backpressure:!this.receiveBackpressuredArray.checkSpaceAvailable(),chunkData:this.sendBackpressuredArray.shift()}}else t.response={streamId:this.streamId,cycleId:t.request.cycleId,cycle:"response",mainPurpose:"feedback",next:this.sendBackpressuredArray.data.length>0,backpressure:!this.receiveBackpressuredArray.checkSpaceAvailable()};t.request=null}return t}async cleanup(){this.typedrouter&&this.typedrouter.registeredVirtualStreams.remove(this)}async startKeepAliveLoop(){if(this.side==="responding")return;await he.delayFor(0),console.log(`starting keepalive loop on side ${this.side}`);let t=0;for(;this.keepAlive;)await this.triggerKeepAlive(),await he.delayFor(1e3);await he.delayFor(1e3),await this.cleanup(),console.log(`cleaned up for stream ${this.streamId}`)}async triggerKeepAlive(){if(this.side==="requesting"){console.log("keepalive sent.");let t=await this.sendMethod({method:"##VirtualStream##",request:{streamId:this.streamId,cycleId:Ln.uni(),cycle:"request",mainPurpose:"keepAlive",keepAlive:this.keepAlive},response:null}).catch(()=>{this.keepAlive=!1});t&&t.response&&t.response.keepAlive===!1?this.keepAlive=!1:this.lastKeepAliveEvent=Date.now(),t&&t.response&&t.response.next&&this.workOnQueue()}Date.now()-this.lastKeepAliveEvent>1e4&&(console.log(`closing stream for ${this.streamId}`),this.keepAlive=!1)}async sendData(t){this.sendBackpressuredArray.push(t),this.workOnQueue(),await this.sendBackpressuredArray.waitForSpace()}async fetchData(){return this.receiveBackpressuredArray.hasSpace,await this.receiveBackpressuredArray.waitForItems(),this.receiveBackpressuredArray.shift()}async readFromWebstream(t,r=!0){let n=t.getReader(),i=!1;for(;!i;){let{value:o,done:s}=await n.read();o&&await this.sendData(o),i=s}r&&await this.close(!0)}async writeToWebstream(t){let r=t.getWriter();for(;this.keepAlive||this.receiveBackpressuredArray.checkHasItems();){let n=await this.fetchData();if(n===q0){r.releaseLock(),await t.close();break}await r.write(n)}}async close(t=!1){t&&this.sendData(q0),this.keepAlive=!1}};var Rp=class{constructor(t){if(t.postMethodWithTypedRouter&&!t.typedRouterRef)throw new Error("you have to specify a typedrouter when using postmethod with typedrouter");this.options=t}async post(t){let r;this.options.typedRouterRef&&(r=await this.options.typedRouterRef.fireEventInterestMap.addInterest(t.correlation.id,t));let i=await(this.options.postMethod||this.options.postMethodWithTypedRouter)(t),o;return r?o=await r.interestFullfilled:i?o=i:o=t,o}};var MM=new ys.WebRequest,bs=class{constructor(t,r){typeof t=="string"?this.urlEndPoint=t:this.typedTarget=t,this.method=r}async fire(t,r=!1){let n={method:this.method,request:t,response:null,correlation:{id:Ln.uni(),phase:"request"}};n=Zt.encodePayloadForNetwork(n,{sendMethod:o=>this.postTrObject(o)});let i;return i=await this.postTrObject(n,r),i=Zt.decodePayloadFromNetwork(i,{sendMethod:o=>this.postTrObject(o)}),i.response}async postTrObject(t,r=!1){let n;if(this.urlEndPoint?n=await MM.postJson(this.urlEndPoint,t,r):n=await this.typedTarget.post(t),n.error){if(console.error(`method: >>${this.method}<< got an ERROR: "${n.error.text}" with data ${JSON.stringify(n.error.data,null,2)}`),!n.retry)throw new vr(n.error.text,n.error.data);return null}return n.retry&&(console.log(`server requested retry for the following reason: ${n.retry.reason}`),await he.delayFor(n.retry.waitForMs),n=await this.postTrObject(t,r)),n}};function H0(e){return e&&typeof e.then=="function"}var PM=Promise.resolve(!1),Q9=Promise.resolve(!0),Xt=Promise.resolve();function Ll(e,t){return e||(e=0),new Promise(function(r){return setTimeout(function(){return r(t)},e)})}function V0(e,t){return Math.floor(Math.random()*(t-e+1)+e)}function ws(){return Math.random().toString(36).substring(2)}var Lp=0;function Sr(){var e=Date.now()*1e3;return e<=Lp&&(e=Lp+1),Lp=e,e}var NM=Sr,FM="native";function RM(e){var t={time:Sr(),messagesCallback:null,bc:new BroadcastChannel(e),subFns:[]};return t.bc.onmessage=function(r){t.messagesCallback&&t.messagesCallback(r.data)},t}function LM(e){e.bc.close(),e.subFns=[]}function BM(e,t){try{return e.bc.postMessage(t,!1),Xt}catch(r){return Promise.reject(r)}}function $M(e,t){e.messagesCallback=t}function UM(){if(typeof globalThis<"u"&&globalThis.Deno&&globalThis.Deno.args)return!0;if((typeof window<"u"||typeof self<"u")&&typeof BroadcastChannel=="function"){if(BroadcastChannel._pubkey)throw new Error("BroadcastChannel: Do not overwrite window.BroadcastChannel with this module, this is not a polyfill");return!0}else return!1}function jM(){return 150}var W0={create:RM,close:LM,onMessage:$M,postMessage:BM,canBeUsed:UM,type:FM,averageResponseTime:jM,microSeconds:NM};var qi=class{ttl;map=new Map;_to=!1;constructor(t){this.ttl=t}has(t){return this.map.has(t)}add(t){this.map.set(t,Y0()),this._to||(this._to=!0,setTimeout(()=>{this._to=!1,zM(this)},0))}clear(){this.map.clear()}};function zM(e){let t=Y0()-e.ttl,r=e.map[Symbol.iterator]();for(;;){let n=r.next().value;if(!n)return;let i=n[0];if(n[1]<t)e.map.delete(i);else return}}function Y0(){return Date.now()}function Hi(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=JSON.parse(JSON.stringify(e));return typeof t.webWorkerSupport>"u"&&(t.webWorkerSupport=!0),t.idb||(t.idb={}),t.idb.ttl||(t.idb.ttl=1e3*45),t.idb.fallbackInterval||(t.idb.fallbackInterval=150),e.idb&&typeof e.idb.onclose=="function"&&(t.idb.onclose=e.idb.onclose),t.localstorage||(t.localstorage={}),t.localstorage.removeTimeout||(t.localstorage.removeTimeout=1e3*60),e.methods&&(t.methods=e.methods),t.node||(t.node={}),t.node.ttl||(t.node.ttl=1e3*60*2),t.node.maxParallelWrites||(t.node.maxParallelWrites=2048),typeof t.node.useFastPath>"u"&&(t.node.useFastPath=!0),t}var qM=Sr,HM="pubkey.broadcast-channel-0-",kr="messages",Bl={durability:"relaxed"},VM="idb";function G0(){if(typeof indexedDB<"u")return indexedDB;if(typeof window<"u"){if(typeof window.mozIndexedDB<"u")return window.mozIndexedDB;if(typeof window.webkitIndexedDB<"u")return window.webkitIndexedDB;if(typeof window.msIndexedDB<"u")return window.msIndexedDB}return!1}function Bp(e){e.commit&&e.commit()}function WM(e){var t=G0(),r=HM+e,n=t.open(r);return n.onupgradeneeded=function(i){var o=i.target.result;o.createObjectStore(kr,{keyPath:"id",autoIncrement:!0})},new Promise(function(i,o){n.onerror=function(s){return o(s)},n.onsuccess=function(){i(n.result)}})}function YM(e,t,r){var n=Date.now(),i={uuid:t,time:n,data:r},o=e.transaction([kr],"readwrite",Bl);return new Promise(function(s,a){o.oncomplete=function(){return s()},o.onerror=function(u){return a(u)};var l=o.objectStore(kr);l.add(i),Bp(o)})}function GM(e,t){var r=e.transaction(kr,"readonly",Bl),n=r.objectStore(kr),i=[],o=IDBKeyRange.bound(t+1,1/0);if(n.getAll){var s=n.getAll(o);return new Promise(function(l,u){s.onerror=function(c){return u(c)},s.onsuccess=function(c){l(c.target.result)}})}function a(){try{return o=IDBKeyRange.bound(t+1,1/0),n.openCursor(o)}catch{return n.openCursor()}}return new Promise(function(l,u){var c=a();c.onerror=function(f){return u(f)},c.onsuccess=function(f){var p=f.target.result;p?p.value.id<t+1?p.continue(t+1):(i.push(p.value),p.continue()):(Bp(r),l(i))}})}function JM(e,t){if(e.closed)return Promise.resolve([]);var r=e.db.transaction(kr,"readwrite",Bl),n=r.objectStore(kr);return Promise.all(t.map(function(i){var o=n.delete(i);return new Promise(function(s){o.onsuccess=function(){return s()}})}))}function QM(e,t){var r=Date.now()-t,n=e.transaction(kr,"readonly",Bl),i=n.objectStore(kr),o=[];return new Promise(function(s){i.openCursor().onsuccess=function(a){var l=a.target.result;if(l){var u=l.value;u.time<r?(o.push(u),l.continue()):(Bp(n),s(o))}else s(o)}})}function ZM(e){return QM(e.db,e.options.idb.ttl).then(function(t){return JM(e,t.map(function(r){return r.id}))})}function XM(e,t){return t=Hi(t),WM(e).then(function(r){var n={closed:!1,lastCursorId:0,channelName:e,options:t,uuid:ws(),eMIs:new qi(t.idb.ttl*2),writeBlockPromise:Xt,messagesCallback:null,readQueuePromises:[],db:r};return r.onclose=function(){n.closed=!0,t.idb.onclose&&t.idb.onclose()},J0(n),n})}function J0(e){e.closed||Q0(e).then(function(){return Ll(e.options.idb.fallbackInterval)}).then(function(){return J0(e)})}function KM(e,t){return!(e.uuid===t.uuid||t.eMIs.has(e.id)||e.data.time<t.messagesCallbackTime)}function Q0(e){return e.closed?Xt:e.messagesCallback?GM(e.db,e.lastCursorId).then(function(t){var r=t.filter(function(n){return!!n}).map(function(n){return n.id>e.lastCursorId&&(e.lastCursorId=n.id),n}).filter(function(n){return KM(n,e)}).sort(function(n,i){return n.time-i.time});return r.forEach(function(n){e.messagesCallback&&(e.eMIs.add(n.id),e.messagesCallback(n.data))}),Xt}):Xt}function eP(e){e.closed=!0,e.db.close()}function tP(e,t){return e.writeBlockPromise=e.writeBlockPromise.then(function(){return YM(e.db,e.uuid,t)}).then(function(){V0(0,10)===0&&ZM(e)}),e.writeBlockPromise}function rP(e,t,r){e.messagesCallbackTime=r,e.messagesCallback=t,Q0(e)}function nP(){return!!G0()}function iP(e){return e.idb.fallbackInterval*2}var Z0={create:XM,close:eP,onMessage:rP,postMessage:tP,canBeUsed:nP,type:VM,averageResponseTime:iP,microSeconds:qM};var oP=Sr,sP="pubkey.broadcastChannel-",aP="localstorage";function X0(){var e;if(typeof window>"u")return null;try{e=window.localStorage,e=window["ie8-eventlistener/storage"]||window.localStorage}catch{}return e}function K0(e){return sP+e}function lP(e,t){return new Promise(function(r){Ll().then(function(){var n=K0(e.channelName),i={token:ws(),time:Date.now(),data:t,uuid:e.uuid},o=JSON.stringify(i);X0().setItem(n,o);var s=document.createEvent("Event");s.initEvent("storage",!0,!0),s.key=n,s.newValue=o,window.dispatchEvent(s),r()})})}function uP(e,t){var r=K0(e),n=function(o){o.key===r&&t(JSON.parse(o.newValue))};return window.addEventListener("storage",n),n}function cP(e){window.removeEventListener("storage",e)}function fP(e,t){if(t=Hi(t),!ew())throw new Error("BroadcastChannel: localstorage cannot be used");var r=ws(),n=new qi(t.localstorage.removeTimeout),i={channelName:e,uuid:r,eMIs:n};return i.listener=uP(e,function(o){i.messagesCallback&&o.uuid!==r&&(!o.token||n.has(o.token)||o.data.time&&o.data.time<i.messagesCallbackTime||(n.add(o.token),i.messagesCallback(o.data)))}),i}function pP(e){cP(e.listener)}function hP(e,t,r){e.messagesCallbackTime=r,e.messagesCallback=t}function ew(){var e=X0();if(!e)return!1;try{var t="__broadcastchannel_check";e.setItem(t,"works"),e.removeItem(t)}catch{return!1}return!0}function mP(){var e=120,t=navigator.userAgent.toLowerCase();return t.includes("safari")&&!t.includes("chrome")?e*2:e}var tw={create:fP,close:pP,onMessage:hP,postMessage:lP,canBeUsed:ew,type:aP,averageResponseTime:mP,microSeconds:oP};var rw=Sr,dP="simulate",$p=new Set;function gP(e){var t={time:rw(),name:e,messagesCallback:null};return $p.add(t),t}function yP(e){$p.delete(e)}var nw=5;function xP(e,t){return new Promise(function(r){return setTimeout(function(){var n=Array.from($p);n.forEach(function(i){i.name===e.name&&i!==e&&i.messagesCallback&&i.time<t.time&&i.messagesCallback(t)}),r()},nw)})}function bP(e,t){e.messagesCallback=t}function wP(){return!0}function vP(){return nw}var iw={create:gP,close:yP,onMessage:bP,postMessage:xP,canBeUsed:wP,type:dP,averageResponseTime:vP,microSeconds:rw};var ow=[W0,Z0,tw];function sw(e){var t=[].concat(e.methods,ow).filter(Boolean);if(e.type){if(e.type==="simulate")return iw;var r=t.find(function(i){return i.type===e.type});if(r)return r;throw new Error("method-type "+e.type+" not found")}e.webWorkerSupport||(t=t.filter(function(i){return i.type!=="idb"}));var n=t.find(function(i){return i.canBeUsed()});if(n)return n;throw new Error("No usable method found in "+JSON.stringify(ow.map(function(i){return i.type})))}var Up=new Set,SP=0,Vi=function(t,r){this.id=SP++,Up.add(this),this.name=t,aw&&(r=aw),this.options=Hi(r),this.method=sw(this.options),this._iL=!1,this._onML=null,this._addEL={message:[],internal:[]},this._uMP=new Set,this._befC=[],this._prepP=null,kP(this)};Vi._pubkey=!0;var aw;Vi.prototype={postMessage:function(t){if(this.closed)throw new Error("BroadcastChannel.postMessage(): Cannot post message after channel has closed "+JSON.stringify(t));return lw(this,"message",t)},postInternal:function(t){return lw(this,"internal",t)},set onmessage(e){var t=this.method.microSeconds(),r={time:t,fn:e};cw(this,"message",this._onML),e&&typeof e=="function"?(this._onML=r,uw(this,"message",r)):this._onML=null},addEventListener:function(t,r){var n=this.method.microSeconds(),i={time:n,fn:r};uw(this,t,i)},removeEventListener:function(t,r){var n=this._addEL[t].find(function(i){return i.fn===r});cw(this,t,n)},close:function(){var t=this;if(!this.closed){Up.delete(this),this.closed=!0;var r=this._prepP?this._prepP:Xt;return this._onML=null,this._addEL.message=[],r.then(function(){return Promise.all(Array.from(t._uMP))}).then(function(){return Promise.all(t._befC.map(function(n){return n()}))}).then(function(){return t.method.close(t._state)})}},get type(){return this.method.type},get isClosed(){return this.closed}};function lw(e,t,r){var n=e.method.microSeconds(),i={time:n,type:t,data:r},o=e._prepP?e._prepP:Xt;return o.then(function(){var s=e.method.postMessage(e._state,i);return e._uMP.add(s),s.catch().then(function(){return e._uMP.delete(s)}),s})}function kP(e){var t=e.method.create(e.name,e.options);H0(t)?(e._prepP=t,t.then(function(r){e._state=r})):e._state=t}function fw(e){return e._addEL.message.length>0||e._addEL.internal.length>0}function uw(e,t,r){e._addEL[t].push(r),AP(e)}function cw(e,t,r){e._addEL[t]=e._addEL[t].filter(function(n){return n!==r}),TP(e)}function AP(e){if(!e._iL&&fw(e)){var t=function(i){e._addEL[i.type].forEach(function(o){i.time>=o.time&&o.fn(i.data)})},r=e.method.microSeconds();e._prepP?e._prepP.then(function(){e._iL=!0,e.method.onMessage(e._state,t,r)}):(e._iL=!0,e.method.onMessage(e._state,t,r))}}function TP(e){if(e._iL&&!fw(e)){e._iL=!1;var t=e.method.microSeconds();e.method.onMessage(e._state,null,t)}}var jp=globalThis.BroadcastChannel;jp||(jp=Vi);var zp=class{constructor(){this.broadcastChannel=new jp("dees-comms"),this.typedrouter=new It.TypedRouter,this.typedtarget=new It.TypedTarget({postMethodWithTypedRouter:async t=>{this.postMessage(t)},typedRouterRef:this.typedrouter}),this.broadcastChannel.onmessage=async t=>{let r=t.method?t:t.data;console.log(JSON.stringify(r));let n=await this.typedrouter.routeAndAddResponse(r);n&&!n.error&&this.postMessage(n)}}createTypedRequest(t){return new It.TypedRequest(this.typedtarget,t)}async postMessage(t){this.broadcastChannel.postMessage(t)}async createTypedHandler(t,r){this.typedrouter.addTypedHandler(new It.TypedHandler(t,r))}};var Hu={};le(Hu,{SmartMarkdown:()=>Wm});var wA=$e(iS(),1);function th(e){if(e)throw e}var Xl=$e(hS(),1);function Es(e){if(typeof e!="object"||e===null)return!1;let t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function rh(){let e=[],t={run:r,use:n};return t;function r(...i){let o=-1,s=i.pop();if(typeof s!="function")throw new TypeError("Expected function as last argument, not "+s);a(null,...i);function a(l,...u){let c=e[++o],f=-1;if(l){s(l);return}for(;++f<i.length;)(u[f]===null||u[f]===void 0)&&(u[f]=i[f]);i=u,c?mS(c,a)(...u):s(null,...u)}}function n(i){if(typeof i!="function")throw new TypeError("Expected `middelware` to be a function, not "+i);return e.push(i),t}}function mS(e,t){let r;return n;function n(...s){let a=e.length>s.length,l;a&&s.push(i);try{l=e.apply(this,s)}catch(u){let c=u;if(a&&r)throw c;return i(c)}a||(l&&l.then&&typeof l.then=="function"?l.then(o,i):l instanceof Error?i(l):o(l))}function i(s,...a){r||(r=!0,t(s,...a))}function o(s){i(null,s)}}function Qr(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?dS(e.position):"start"in e||"end"in e?dS(e):"line"in e||"column"in e?nh(e):""}function nh(e){return gS(e&&e.line)+":"+gS(e&&e.column)}function dS(e){return nh(e&&e.start)+"-"+nh(e&&e.end)}function gS(e){return e&&typeof e=="number"?e:1}var Ke=class extends Error{constructor(t,r,n){super(),typeof r=="string"&&(n=r,r=void 0);let i="",o={},s=!1;if(r&&("line"in r&&"column"in r?o={place:r}:"start"in r&&"end"in r?o={place:r}:"type"in r?o={ancestors:[r],place:r.position}:o={...r}),typeof t=="string"?i=t:!o.cause&&t&&(s=!0,i=t.message,o.cause=t),!o.ruleId&&!o.source&&typeof n=="string"){let l=n.indexOf(":");l===-1?o.ruleId=n:(o.source=n.slice(0,l),o.ruleId=n.slice(l+1))}if(!o.place&&o.ancestors&&o.ancestors){let l=o.ancestors[o.ancestors.length-1];l&&(o.place=l.position)}let a=o.place&&"start"in o.place?o.place.start:o.place;this.ancestors=o.ancestors||void 0,this.cause=o.cause||void 0,this.column=a?a.column:void 0,this.fatal=void 0,this.file,this.message=i,this.line=a?a.line:void 0,this.name=Qr(o.place)||"1:1",this.place=o.place||void 0,this.reason=this.message,this.ruleId=o.ruleId||void 0,this.source=o.source||void 0,this.stack=s&&o.cause&&typeof o.cause.stack=="string"?o.cause.stack:"",this.actual,this.expected,this.note,this.url}};Ke.prototype.file="";Ke.prototype.name="";Ke.prototype.reason="";Ke.prototype.message="";Ke.prototype.stack="";Ke.prototype.column=void 0;Ke.prototype.line=void 0;Ke.prototype.ancestors=void 0;Ke.prototype.cause=void 0;Ke.prototype.fatal=void 0;Ke.prototype.place=void 0;Ke.prototype.ruleId=void 0;Ke.prototype.source=void 0;var zt={basename:cR,dirname:fR,extname:pR,join:hR,sep:"/"};function cR(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');_s(e);let r=0,n=-1,i=e.length,o;if(t===void 0||t.length===0||t.length>e.length){for(;i--;)if(e.codePointAt(i)===47){if(o){r=i+1;break}}else n<0&&(o=!0,n=i+1);return n<0?"":e.slice(r,n)}if(t===e)return"";let s=-1,a=t.length-1;for(;i--;)if(e.codePointAt(i)===47){if(o){r=i+1;break}}else s<0&&(o=!0,s=i+1),a>-1&&(e.codePointAt(i)===t.codePointAt(a--)?a<0&&(n=i):(a=-1,n=s));return r===n?n=s:n<0&&(n=e.length),e.slice(r,n)}function fR(e){if(_s(e),e.length===0)return".";let t=-1,r=e.length,n;for(;--r;)if(e.codePointAt(r)===47){if(n){t=r;break}}else n||(n=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function pR(e){_s(e);let t=e.length,r=-1,n=0,i=-1,o=0,s;for(;t--;){let a=e.codePointAt(t);if(a===47){if(s){n=t+1;break}continue}r<0&&(s=!0,r=t+1),a===46?i<0?i=t:o!==1&&(o=1):i>-1&&(o=-1)}return i<0||r<0||o===0||o===1&&i===r-1&&i===n+1?"":e.slice(i,r)}function hR(...e){let t=-1,r;for(;++t<e.length;)_s(e[t]),e[t]&&(r=r===void 0?e[t]:r+"/"+e[t]);return r===void 0?".":mR(r)}function mR(e){_s(e);let t=e.codePointAt(0)===47,r=dR(e,!t);return r.length===0&&!t&&(r="."),r.length>0&&e.codePointAt(e.length-1)===47&&(r+="/"),t?"/"+r:r}function dR(e,t){let r="",n=0,i=-1,o=0,s=-1,a,l;for(;++s<=e.length;){if(s<e.length)a=e.codePointAt(s);else{if(a===47)break;a=47}if(a===47){if(!(i===s-1||o===1))if(i!==s-1&&o===2){if(r.length<2||n!==2||r.codePointAt(r.length-1)!==46||r.codePointAt(r.length-2)!==46){if(r.length>2){if(l=r.lastIndexOf("/"),l!==r.length-1){l<0?(r="",n=0):(r=r.slice(0,l),n=r.length-1-r.lastIndexOf("/")),i=s,o=0;continue}}else if(r.length>0){r="",n=0,i=s,o=0;continue}}t&&(r=r.length>0?r+"/..":"..",n=2)}else r.length>0?r+="/"+e.slice(i+1,s):r=e.slice(i+1,s),n=s-i-1;i=s,o=0}else a===46&&o>-1?o++:o=-1}return r}function _s(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}var yS={cwd:gR};function gR(){return"/"}function Ki(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function xS(e){if(typeof e=="string")e=new URL(e);else if(!Ki(e)){let t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if(e.protocol!=="file:"){let t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return yR(e)}function yR(e){if(e.hostname!==""){let n=new TypeError('File URL host must be "localhost" or empty on darwin');throw n.code="ERR_INVALID_FILE_URL_HOST",n}let t=e.pathname,r=-1;for(;++r<t.length;)if(t.codePointAt(r)===37&&t.codePointAt(r+1)===50){let n=t.codePointAt(r+2);if(n===70||n===102){let i=new TypeError("File URL path must not include encoded / characters");throw i.code="ERR_INVALID_FILE_URL_PATH",i}}return decodeURIComponent(t)}var ih=["history","path","basename","stem","extname","dirname"],Is=class{constructor(t){let r;t?Ki(t)?r={path:t}:typeof t=="string"||xR(t)?r={value:t}:r=t:r={},this.cwd="cwd"in r?"":yS.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let n=-1;for(;++n<ih.length;){let o=ih[n];o in r&&r[o]!==void 0&&r[o]!==null&&(this[o]=o==="history"?[...r[o]]:r[o])}let i;for(i in r)ih.includes(i)||(this[i]=r[i])}get basename(){return typeof this.path=="string"?zt.basename(this.path):void 0}set basename(t){sh(t,"basename"),oh(t,"basename"),this.path=zt.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?zt.dirname(this.path):void 0}set dirname(t){bS(this.basename,"dirname"),this.path=zt.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?zt.extname(this.path):void 0}set extname(t){if(oh(t,"extname"),bS(this.dirname,"extname"),t){if(t.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(t.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=zt.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){Ki(t)&&(t=xS(t)),sh(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?zt.basename(this.path,this.extname):void 0}set stem(t){sh(t,"stem"),oh(t,"stem"),this.path=zt.join(this.dirname||"",t+(this.extname||""))}fail(t,r,n){let i=this.message(t,r,n);throw i.fatal=!0,i}info(t,r,n){let i=this.message(t,r,n);return i.fatal=void 0,i}message(t,r,n){let i=new Ke(t,r,n);return this.path&&(i.name=this.path+":"+i.name,i.file=this.path),i.fatal=!1,this.messages.push(i),i}toString(t){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(t||void 0).decode(this.value)}};function oh(e,t){if(e&&e.includes(zt.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+zt.sep+"`")}function sh(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function bS(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function xR(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}var wS=function(e){let n=this.constructor.prototype,i=n[e],o=function(){return i.apply(o,arguments)};return Object.setPrototypeOf(o,n),o};var bR={}.hasOwnProperty,ch=class e extends wS{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=rh()}copy(){let t=new e,r=-1;for(;++r<this.attachers.length;){let n=this.attachers[r];t.use(...n)}return t.data((0,Xl.default)(!0,{},this.namespace)),t}data(t,r){return typeof t=="string"?arguments.length===2?(uh("data",this.frozen),this.namespace[t]=r,this):bR.call(this.namespace,t)&&this.namespace[t]||void 0:t?(uh("data",this.frozen),this.namespace=t,this):this.namespace}freeze(){if(this.frozen)return this;let t=this;for(;++this.freezeIndex<this.attachers.length;){let[r,...n]=this.attachers[this.freezeIndex];if(n[0]===!1)continue;n[0]===!0&&(n[0]=void 0);let i=r.call(t,...n);typeof i=="function"&&this.transformers.use(i)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(t){this.freeze();let r=Zl(t),n=this.parser||this.Parser;return ah("parse",n),n(String(r),r)}process(t,r){let n=this;return this.freeze(),ah("process",this.parser||this.Parser),lh("process",this.compiler||this.Compiler),r?i(void 0,r):new Promise(i);function i(o,s){let a=Zl(t),l=n.parse(a);n.run(l,a,function(c,f,p){if(c||!f||!p)return u(c);let h=f,m=n.stringify(h,p);vR(m)?p.value=m:p.result=m,u(c,p)});function u(c,f){c||!f?s(c):o?o(f):r(void 0,f)}}}processSync(t){let r=!1,n;return this.freeze(),ah("processSync",this.parser||this.Parser),lh("processSync",this.compiler||this.Compiler),this.process(t,i),SS("processSync","process",r),n;function i(o,s){r=!0,th(o),n=s}}run(t,r,n){vS(t),this.freeze();let i=this.transformers;return!n&&typeof r=="function"&&(n=r,r=void 0),n?o(void 0,n):new Promise(o);function o(s,a){let l=Zl(r);i.run(t,l,u);function u(c,f,p){let h=f||t;c?a(c):s?s(h):n(void 0,h,p)}}}runSync(t,r){let n=!1,i;return this.run(t,r,o),SS("runSync","run",n),i;function o(s,a){th(s),i=a,n=!0}}stringify(t,r){this.freeze();let n=Zl(r),i=this.compiler||this.Compiler;return lh("stringify",i),vS(t),i(t,n)}use(t,...r){let n=this.attachers,i=this.namespace;if(uh("use",this.frozen),t!=null)if(typeof t=="function")l(t,r);else if(typeof t=="object")Array.isArray(t)?a(t):s(t);else throw new TypeError("Expected usable value, not `"+t+"`");return this;function o(u){if(typeof u=="function")l(u,[]);else if(typeof u=="object")if(Array.isArray(u)){let[c,...f]=u;l(c,f)}else s(u);else throw new TypeError("Expected usable value, not `"+u+"`")}function s(u){if(!("plugins"in u)&&!("settings"in u))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");a(u.plugins),u.settings&&(i.settings=(0,Xl.default)(!0,i.settings,u.settings))}function a(u){let c=-1;if(u!=null)if(Array.isArray(u))for(;++c<u.length;){let f=u[c];o(f)}else throw new TypeError("Expected a list of plugins, not `"+u+"`")}function l(u,c){let f=-1,p=-1;for(;++f<n.length;)if(n[f][0]===u){p=f;break}if(p===-1)n.push([u,...c]);else if(c.length>0){let[h,...m]=c,x=n[p][1];Es(x)&&Es(h)&&(h=(0,Xl.default)(!0,x,h)),n[p]=[u,h,...m]}}}},Kl=new ch().freeze();function ah(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function lh(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function uh(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function vS(e){if(!Es(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function SS(e,t,r){if(!r)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function Zl(e){return wR(e)?e:new Is(e)}function wR(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function vR(e){return typeof e=="string"||SR(e)}function SR(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}function eo(e,t){let r=String(e);if(typeof t!="string")throw new TypeError("Expected character");let n=0,i=r.indexOf(t);for(;i!==-1;)n++,i=r.indexOf(t,i+t.length);return n}var Je=Zr(/[A-Za-z]/),Me=Zr(/[\dA-Za-z]/),kS=Zr(/[#-'*+\--9=?A-Z^-~]/);function Vn(e){return e!==null&&(e<32||e===127)}var Ds=Zr(/\d/),AS=Zr(/[\dA-Fa-f]/),TS=Zr(/[!-/:-@[-`{-~]/);function H(e){return e!==null&&e<-2}function ce(e){return e!==null&&(e<0||e===32)}function J(e){return e===-2||e===-1||e===32}var Wn=Zr(/\p{P}|\p{S}/u),tr=Zr(/\s/);function Zr(e){return t;function t(r){return r!==null&&r>-1&&e.test(String.fromCharCode(r))}}var Xr=function(e){if(e==null)return CR;if(typeof e=="function")return eu(e);if(typeof e=="object")return Array.isArray(e)?kR(e):AR(e);if(typeof e=="string")return TR(e);throw new Error("Expected function, string, or object as test")};function kR(e){let t=[],r=-1;for(;++r<e.length;)t[r]=Xr(e[r]);return eu(n);function n(...i){let o=-1;for(;++o<t.length;)if(t[o].apply(this,i))return!0;return!1}}function AR(e){let t=e;return eu(r);function r(n){let i=n,o;for(o in e)if(i[o]!==t[o])return!1;return!0}}function TR(e){return eu(t);function t(r){return r&&r.type===e}}function eu(e){return t;function t(r,n,i){return!!(ER(r)&&e.call(this,r,typeof n=="number"?n:void 0,i||void 0))}}function CR(){return!0}function ER(e){return e!==null&&typeof e=="object"&&"type"in e}var CS=[],tu=!0,Yn=!1,ru="skip";function Os(e,t,r,n){let i;typeof t=="function"&&typeof r!="function"?(n=r,r=t):i=t;let o=Xr(i),s=n?-1:1;a(e,void 0,[])();function a(l,u,c){let f=l&&typeof l=="object"?l:{};if(typeof f.type=="string"){let h=typeof f.tagName=="string"?f.tagName:typeof f.name=="string"?f.name:void 0;Object.defineProperty(p,"name",{value:"node ("+(l.type+(h?"<"+h+">":""))+")"})}return p;function p(){let h=CS,m,x,v;if((!t||o(l,u,c[c.length-1]||void 0))&&(h=_R(r(l,c)),h[0]===Yn))return h;if("children"in l&&l.children){let w=l;if(w.children&&h[0]!==ru)for(x=(n?w.children.length:-1)+s,v=c.concat(w);x>-1&&x<w.children.length;){let E=w.children[x];if(m=a(E,x,v)(),m[0]===Yn)return m;x=typeof m[1]=="number"?m[1]:x+s}}return h}}}function _R(e){return Array.isArray(e)?e:typeof e=="number"?[tu,e]:e==null?CS:[e]}function fh(e,t,r){let i=Xr((r||{}).ignore||[]),o=IR(t),s=-1;for(;++s<o.length;)Os(e,"text",a);function a(u,c){let f=-1,p;for(;++f<c.length;){let h=c[f],m=p?p.children:void 0;if(i(h,m?m.indexOf(h):void 0,p))return;p=h}if(p)return l(u,c)}function l(u,c){let f=c[c.length-1],p=o[s][0],h=o[s][1],m=0,v=f.children.indexOf(u),w=!1,E=[];p.lastIndex=0;let b=p.exec(u.value);for(;b;){let z=b.index,q={index:b.index,input:b.input,stack:[...c,u]},A=h(...b,q);if(typeof A=="string"&&(A=A.length>0?{type:"text",value:A}:void 0),A===!1?p.lastIndex=z+1:(m!==z&&E.push({type:"text",value:u.value.slice(m,z)}),Array.isArray(A)?E.push(...A):A&&E.push(A),m=z+b[0].length,w=!0),!p.global)break;b=p.exec(u.value)}return w?(m<u.value.length&&E.push({type:"text",value:u.value.slice(m)}),f.children.splice(v,1,...E)):E=[u],v+E.length}}function IR(e){let t=[];if(!Array.isArray(e))throw new TypeError("Expected find and replace tuple or list of tuples");let r=!e[0]||Array.isArray(e[0])?e:[e],n=-1;for(;++n<r.length;){let i=r[n];t.push([DR(i[0]),OR(i[1])])}return t}function DR(e){return typeof e=="string"?new RegExp(Tn(e),"g"):e}function OR(e){return typeof e=="function"?e:function(){return e}}var ph="phrasing",hh=["autolink","link","image","label"];function dh(){return{transforms:[LR],enter:{literalAutolink:MR,literalAutolinkEmail:mh,literalAutolinkHttp:mh,literalAutolinkWww:mh},exit:{literalAutolink:RR,literalAutolinkEmail:FR,literalAutolinkHttp:PR,literalAutolinkWww:NR}}}function gh(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:ph,notInConstruct:hh},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:ph,notInConstruct:hh},{character:":",before:"[ps]",after:"\\/",inConstruct:ph,notInConstruct:hh}]}}function MR(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function mh(e){this.config.enter.autolinkProtocol.call(this,e)}function PR(e){this.config.exit.autolinkProtocol.call(this,e)}function NR(e){this.config.exit.data.call(this,e);let t=this.stack[this.stack.length-1];t.type,t.url="http://"+this.sliceSerialize(e)}function FR(e){this.config.exit.autolinkEmail.call(this,e)}function RR(e){this.exit(e)}function LR(e){fh(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,BR],[/(?<=^|\s|\p{P}|\p{S})([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/gu,$R]],{ignore:["link","linkReference"]})}function BR(e,t,r,n,i){let o="";if(!ES(i)||(/^w/i.test(t)&&(r=t+r,t="",o="http://"),!UR(r)))return!1;let s=jR(r+n);if(!s[0])return!1;let a={type:"link",title:null,url:o+t+s[0],children:[{type:"text",value:t+s[0]}]};return s[1]?[a,{type:"text",value:s[1]}]:a}function $R(e,t,r,n){return!ES(n,!0)||/[-\d_]$/.test(r)?!1:{type:"link",title:null,url:"mailto:"+t+"@"+r,children:[{type:"text",value:t+"@"+r}]}}function UR(e){let t=e.split(".");return!(t.length<2||t[t.length-1]&&(/_/.test(t[t.length-1])||!/[a-zA-Z\d]/.test(t[t.length-1]))||t[t.length-2]&&(/_/.test(t[t.length-2])||!/[a-zA-Z\d]/.test(t[t.length-2])))}function jR(e){let t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let r=t[0],n=r.indexOf(")"),i=eo(e,"("),o=eo(e,")");for(;n!==-1&&i>o;)e+=r.slice(0,n+1),r=r.slice(n+1),n=r.indexOf(")"),o++;return[e,r]}function ES(e,t){let r=e.input.charCodeAt(e.index-1);return(e.index===0||tr(r)||Wn(r))&&(!t||r!==47)}function ot(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}_S.peek=QR;function yh(){return{enter:{gfmFootnoteDefinition:zR,gfmFootnoteDefinitionLabelString:qR,gfmFootnoteCall:WR,gfmFootnoteCallString:YR},exit:{gfmFootnoteDefinition:VR,gfmFootnoteDefinitionLabelString:HR,gfmFootnoteCall:JR,gfmFootnoteCallString:GR}}}function xh(){return{unsafe:[{character:"[",inConstruct:["phrasing","label","reference"]}],handlers:{footnoteDefinition:ZR,footnoteReference:_S}}}function zR(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function qR(){this.buffer()}function HR(e){let t=this.resume(),r=this.stack[this.stack.length-1];r.type,r.label=t,r.identifier=ot(this.sliceSerialize(e)).toLowerCase()}function VR(e){this.exit(e)}function WR(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function YR(){this.buffer()}function GR(e){let t=this.resume(),r=this.stack[this.stack.length-1];r.type,r.label=t,r.identifier=ot(this.sliceSerialize(e)).toLowerCase()}function JR(e){this.exit(e)}function _S(e,t,r,n){let i=r.createTracker(n),o=i.move("[^"),s=r.enter("footnoteReference"),a=r.enter("reference");return o+=i.move(r.safe(r.associationId(e),{...i.current(),before:o,after:"]"})),a(),s(),o+=i.move("]"),o}function QR(){return"["}function ZR(e,t,r,n){let i=r.createTracker(n),o=i.move("[^"),s=r.enter("footnoteDefinition"),a=r.enter("label");return o+=i.move(r.safe(r.associationId(e),{...i.current(),before:o,after:"]"})),a(),o+=i.move("]:"+(e.children&&e.children.length>0?" ":"")),i.shift(4),o+=i.move(r.indentLines(r.containerFlow(e,i.current()),XR)),s(),o}function XR(e,t,r){return t===0?e:(r?"":" ")+e}var KR=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];IS.peek=r2;function bh(){return{canContainEols:["delete"],enter:{strikethrough:e2},exit:{strikethrough:t2}}}function wh(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:KR}],handlers:{delete:IS}}}function e2(e){this.enter({type:"delete",children:[]},e)}function t2(e){this.exit(e)}function IS(e,t,r,n){let i=r.createTracker(n),o=r.enter("strikethrough"),s=i.move("~~");return s+=r.containerPhrasing(e,{...i.current(),before:s,after:"~"}),s+=i.move("~~"),o(),s}function r2(){return"~"}function n2(e){return e.length}function OS(e,t){let r=t||{},n=(r.align||[]).concat(),i=r.stringLength||n2,o=[],s=[],a=[],l=[],u=0,c=-1;for(;++c<e.length;){let x=[],v=[],w=-1;for(e[c].length>u&&(u=e[c].length);++w<e[c].length;){let E=i2(e[c][w]);if(r.alignDelimiters!==!1){let b=i(E);v[w]=b,(l[w]===void 0||b>l[w])&&(l[w]=b)}x.push(E)}s[c]=x,a[c]=v}let f=-1;if(typeof n=="object"&&"length"in n)for(;++f<u;)o[f]=DS(n[f]);else{let x=DS(n);for(;++f<u;)o[f]=x}f=-1;let p=[],h=[];for(;++f<u;){let x=o[f],v="",w="";x===99?(v=":",w=":"):x===108?v=":":x===114&&(w=":");let E=r.alignDelimiters===!1?1:Math.max(1,l[f]-v.length-w.length),b=v+"-".repeat(E)+w;r.alignDelimiters!==!1&&(E=v.length+E+w.length,E>l[f]&&(l[f]=E),h[f]=E),p[f]=b}s.splice(1,0,p),a.splice(1,0,h),c=-1;let m=[];for(;++c<s.length;){let x=s[c],v=a[c];f=-1;let w=[];for(;++f<u;){let E=x[f]||"",b="",z="";if(r.alignDelimiters!==!1){let q=l[f]-(v[f]||0),A=o[f];A===114?b=" ".repeat(q):A===99?q%2?(b=" ".repeat(q/2+.5),z=" ".repeat(q/2-.5)):(b=" ".repeat(q/2),z=b):z=" ".repeat(q)}r.delimiterStart!==!1&&!f&&w.push("|"),r.padding!==!1&&!(r.alignDelimiters===!1&&E==="")&&(r.delimiterStart!==!1||f)&&w.push(" "),r.alignDelimiters!==!1&&w.push(b),w.push(E),r.alignDelimiters!==!1&&w.push(z),r.padding!==!1&&w.push(" "),(r.delimiterEnd!==!1||f!==u-1)&&w.push("|")}m.push(r.delimiterEnd===!1?w.join("").replace(/ +$/,""):w.join(""))}return m.join(`
54
- `)}function i2(e){return e==null?"":String(e)}function DS(e){let t=typeof e=="string"?e.codePointAt(0):0;return t===67||t===99?99:t===76||t===108?108:t===82||t===114?114:0}var MS={}.hasOwnProperty;function nu(e,t){let r=t||{};function n(i,...o){let s=n.invalid,a=n.handlers;if(i&&MS.call(i,e)){let l=String(i[e]);s=MS.call(a,l)?a[l]:n.unknown}if(s)return s.call(this,i,...o)}return n.handlers=r.handlers||{},n.invalid=r.invalid,n.unknown=r.unknown,n}var o2={}.hasOwnProperty;function vh(e,t){let r=-1,n;if(t.extensions)for(;++r<t.extensions.length;)vh(e,t.extensions[r]);for(n in t)if(o2.call(t,n))switch(n){case"extensions":break;case"unsafe":{PS(e[n],t[n]);break}case"join":{PS(e[n],t[n]);break}case"handlers":{s2(e[n],t[n]);break}default:e.options[n]=t[n]}return e}function PS(e,t){t&&e.push(...t)}function s2(e,t){t&&Object.assign(e,t)}function NS(e,t,r,n){let i=r.enter("blockquote"),o=r.createTracker(n);o.move("> "),o.shift(2);let s=r.indentLines(r.containerFlow(e,o.current()),a2);return i(),s}function a2(e,t,r){return">"+(r?"":" ")+e}function iu(e,t){return FS(e,t.inConstruct,!0)&&!FS(e,t.notInConstruct,!1)}function FS(e,t,r){if(typeof t=="string"&&(t=[t]),!t||t.length===0)return r;let n=-1;for(;++n<t.length;)if(e.includes(t[n]))return!0;return!1}function Sh(e,t,r,n){let i=-1;for(;++i<r.unsafe.length;)if(r.unsafe[i].character===`
53
+ `).forEach(i=>{i&&n.push(ds(i))}),M0(r,n)};var Yr={};le(Yr,{TypedrequestCache:()=>Mp,WebStore:()=>gs});var Nl={};le(Nl,{deleteDB:()=>EO,openDB:()=>CO,unwrap:()=>Ol,wrap:()=>wr});var Ip=(e,t)=>t.some(r=>e instanceof r),N0,F0;function wO(){return N0||(N0=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])}function vO(){return F0||(F0=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])}var Pp=new WeakMap,Ep=new WeakMap,Ml=new WeakMap;function SO(e){let t=new Promise((r,n)=>{let i=()=>{e.removeEventListener("success",o),e.removeEventListener("error",s)},o=()=>{r(wr(e.result)),i()},s=()=>{n(e.error),i()};e.addEventListener("success",o),e.addEventListener("error",s)});return Ml.set(t,e),t}function kO(e){if(Pp.has(e))return;let t=new Promise((r,n)=>{let i=()=>{e.removeEventListener("complete",o),e.removeEventListener("error",s),e.removeEventListener("abort",s)},o=()=>{r(),i()},s=()=>{n(e.error||new DOMException("AbortError","AbortError")),i()};e.addEventListener("complete",o),e.addEventListener("error",s),e.addEventListener("abort",s)});Pp.set(e,t)}var Dp={get(e,t,r){if(e instanceof IDBTransaction){if(t==="done")return Pp.get(e);if(t==="store")return r.objectStoreNames[1]?void 0:r.objectStore(r.objectStoreNames[0])}return wr(e[t])},set(e,t,r){return e[t]=r,!0},has(e,t){return e instanceof IDBTransaction&&(t==="done"||t==="store")?!0:t in e}};function $0(e){Dp=e(Dp)}function AO(e){return vO().includes(e)?function(...t){return e.apply(Ol(this),t),wr(this.request)}:function(...t){return wr(e.apply(Ol(this),t))}}function TO(e){return typeof e=="function"?AO(e):(e instanceof IDBTransaction&&kO(e),Ip(e,wO())?new Proxy(e,Dp):e)}function wr(e){if(e instanceof IDBRequest)return SO(e);if(Ep.has(e))return Ep.get(e);let t=TO(e);return t!==e&&(Ep.set(e,t),Ml.set(t,e)),t}var Ol=e=>Ml.get(e);function CO(e,t,{blocked:r,upgrade:n,blocking:i,terminated:o}={}){let s=indexedDB.open(e,t),a=wr(s);return n&&s.addEventListener("upgradeneeded",l=>{n(wr(s.result),l.oldVersion,l.newVersion,wr(s.transaction),l)}),r&&s.addEventListener("blocked",l=>r(l.oldVersion,l.newVersion,l)),a.then(l=>{o&&l.addEventListener("close",()=>o()),i&&l.addEventListener("versionchange",u=>i(u.oldVersion,u.newVersion,u))}).catch(()=>{}),a}function EO(e,{blocked:t}={}){let r=indexedDB.deleteDatabase(e);return t&&r.addEventListener("blocked",n=>t(n.oldVersion,n)),wr(r).then(()=>{})}var _O=["get","getKey","getAll","getAllKeys","count"],IO=["put","add","delete","clear"],_p=new Map;function R0(e,t){if(!(e instanceof IDBDatabase&&!(t in e)&&typeof t=="string"))return;if(_p.get(t))return _p.get(t);let r=t.replace(/FromIndex$/,""),n=t!==r,i=IO.includes(r);if(!(r in(n?IDBIndex:IDBObjectStore).prototype)||!(i||_O.includes(r)))return;let o=async function(s,...a){let l=this.transaction(s,i?"readwrite":"readonly"),u=l.store;return n&&(u=u.index(a.shift())),(await Promise.all([u[r](...a),i&&l.done]))[0]};return _p.set(t,o),o}$0(e=>({...e,get:(t,r,n)=>R0(t,r)||e.get(t,r,n),has:(t,r)=>!!R0(t,r)||e.has(t,r)}));var PO=["continue","continuePrimaryKey","advance"],L0={},Op=new WeakMap,U0=new WeakMap,DO={get(e,t){if(!PO.includes(t))return e[t];let r=L0[t];return r||(r=L0[t]=function(...n){Op.set(this,U0.get(this)[t](...n))}),r}};async function*OO(...e){let t=this;if(t instanceof IDBCursor||(t=await t.openCursor(...e)),!t)return;t=t;let r=new Proxy(t,DO);for(U0.set(r,t),Ml.set(r,Ol(t));t;)yield r,t=await(Op.get(r)||t.continue()),Op.delete(r)}function B0(e,t){return t===Symbol.asyncIterator&&Ip(e,[IDBIndex,IDBObjectStore,IDBCursor])||t==="iterate"&&Ip(e,[IDBIndex,IDBObjectStore])}$0(e=>({...e,get(t,r,n){return B0(t,r)?OO:e.get(t,r,n)},has(t,r){return B0(t,r)||e.has(t,r)}}));var gs=class{constructor(t){this.initCalled=!1,this.readyDeferred=re.defer(),this.options=t}async init(){if(this.initCalled){await this.readyDeferred.promise;return}this.initCalled=!0;let t=new In.Smartenv;if(!t.isBrowser&&!globalThis.indexedDB&&(console.log("hey"),console.log(globalThis.indexedDB),await t.getSafeNodeModule("fake-indexeddb/auto"),!globalThis.indexedDB)){let r=await t.getSafeNodeModule("fake-indexeddb");globalThis.indexedDB=new r.IDBFactory}this.db=await Nl.openDB(this.options.dbName,1,{upgrade:r=>{r.createObjectStore(this.options.storeName)}}),this.readyDeferred.resolve()}async get(t){return await this.init(),this.db.get(this.options.storeName,t)}async check(t){return await this.init(),!!await this.get(t)}async set(t,r){return await this.init(),this.db.put(this.options.storeName,r,t)}async delete(t){return await this.init(),this.db.delete(this.options.storeName,t)}async clear(){return await this.init(),this.db.clear(this.options.storeName)}async keys(){return await this.init(),this.db.getAllKeys(this.options.storeName)}};var Mp=class{constructor(t="default"){this.webstore=new gs({dbName:"trStore",storeName:`trStore-${t}`})}buildKey(t){return Pe.stringify({method:t.method,request:t.request})}async setByRequest(t){if(!t.response)throw new Error("You cannot store requests without a response present");await this.webstore.set(this.buildKey(t),t)}async getByRequest(t){return await this.webstore.get(this.buildKey(t))}};var Np=class{constructor(t={}){this.optionsArg=t,this.cacheStore=new Yr.WebStore({dbName:"webrequest",storeName:"webrequest"}),this.options={logging:!0,...t}}async getJson(t,r=!1){let i=await(await this.request(t,{method:"GET",useCache:r})).text();return Pe.parse(i)}async postJson(t,r,n=!1){let o=await(await this.request(t,{method:"POST",headers:{"Content-Type":"application/json"},body:Pe.stringify(r),useCache:n})).text();return Pe.parse(o)}async putJson(t,r,n=!1){let o=await(await this.request(t,{method:"PUT",headers:{"Content-Type":"application/json"},body:Pe.stringify(r)})).text();return Pe.parse(o)}async deleteJson(t,r=!1){let i=await(await this.request(t,{headers:{"Content-Type":"application/json"},method:"GET"})).text();return Pe.parse(i)}async request(t,r){r={timeoutMs:6e4,useCache:!1,...r};let n=new AbortController;he.delayFor(r.timeoutMs).then(()=>{n.abort()});let i=re.defer(),o=!1;if(r.useCache&&await this.cacheStore.check(t)){let a=await this.cacheStore.get(t);i.resolve(new Response(a,{}))}else i.resolve(null);let s=await fetch(t,{signal:n.signal,method:r.method,headers:{...r.headers||{}},body:r.body}).catch(async a=>r.useCache&&await i.promise?(o=!0,i.promise):a);if(r.useCache&&await i.promise&&s.status===500&&(o=!0,s=await i.promise),!o&&r.useCache&&s.status<300){let a=await s.clone().arrayBuffer();await this.cacheStore.set(t,a)}return this.log(`${t} answers with status: ${s.status}`),s}async requestMultiEndpoint(t,r){let n,i=0;Array.isArray(t)?n=t:n=[t];let o=[],s=async u=>{o.push(u),u==="429"&&(console.log("got 429, so waiting a little bit."),await he.delayFor(Math.floor(Math.random()*1001)+1e3));let c=0;for(let f of o)f===u&&c++;c>2*n.length*i&&i++},a=async u=>{if(!u)throw new Error("request failed permanently");this.log(`Getting ${u} with method ${r.method}`);let c=await fetch(u,{method:r.method,headers:{"Content-Type":"application/json",...r.headers||{}},body:r.body});return this.log(`${u} answers with status: ${c.status}`),c.status>=200&&c.status<300?c:(await s(c.status.toString()),await a(n[i]))};return await a(n[i])}log(t){this.options.logging&&console.log(t)}};var vr=class{constructor(t,r){this.errorText=t,this.errorData=r}};var Rl=class{async passGuards(t,r){let n=new tl.GuardSet(t);if(!await n.allGuardsPass(r)){let o=await n.getFailedHint(r);throw new vr(`guard failed: ${o}`,{failedHint:o})}}};var Fp=class{constructor(t,r){this.method=t,this.handlerFunction=r}async addResponse(t){if(t.method!==this.method)throw new Error("this handler has been given a wrong method to answer to. Please use a TypedRouter to filter requests");let r,n=new Rl,i=await this.handlerFunction(t.request,n).catch(o=>{o instanceof vr?r=o:console.log(o)});return r&&(t.error={text:r.errorText,data:r.errorData}),i&&(t.response=i),t?.correlation?.phase&&(t.correlation.phase="response"),t}};var xs=class{constructor(){this.routerMap=new ft.ObjectMap,this.handlerMap=new ft.ObjectMap,this.registeredVirtualStreams=new ft.ObjectMap,this.fireEventInterestMap=new ft.InterestMap(t=>t)}addTypedHandler(t){if(this.getTypedHandlerForMethod(t.method))throw new Error(`a TypedHandler for ${t.method} alredy exists! Can't add another one.`);this.handlerMap.add(t)}addTypedRouter(t){this.routerMap.findSync(n=>n===t)||(this.routerMap.add(t),t.addTypedRouter(this))}checkForTypedHandler(t){return!!this.getTypedHandlerForMethod(t)}getTypedHandlerForMethod(t,r=[]){r.push(this);let n;return n=this.handlerMap.findSync(i=>i.method===t),n||this.routerMap.getArray().forEach(i=>{!n&&!r.includes(i)&&(n=i.getTypedHandlerForMethod(t,r))}),n}async routeAndAddResponse(t,r=!1){if(t=Zt.decodePayloadFromNetwork(t,{typedrouter:this}),t.localData=t.localData||{},t.localData.firstTypedrouter=this,t.method==="##VirtualStream##"){let n=await this.handleStreamTypedRequest(t);return n.localData=null,n}if(t?.correlation?.phase==="request"||r){let n=this.getTypedHandlerForMethod(t.method);return n?(t=await n.addResponse(t),t.localData=null,t=Zt.encodePayloadForNetwork(t,{typedrouter:this}),t):(console.log(`Cannot find handler for methodname ${t.method}`),t.error={text:"There is no available method for this call on the server side",data:{}},t.correlation.phase="response",t.localData=null,t=Zt.encodePayloadForNetwork(t,{typedrouter:this}),t)}else return t?.correlation?.phase==="response"?(this.fireEventInterestMap.findInterest(t.correlation.id)?.fullfillInterest(t),null):(console.log("received weirdly shaped request"),console.log(t),null)}async handleStreamTypedRequest(t){let r=await this.registeredVirtualStreams.find(async i=>i.streamId===t.request.streamId);if(r)console.log(`success: found relevant virtual stream with id ${t.request.streamId}`);else return console.log(`no relevant virtual stream found for stream with id ${t.request.streamId}`),console.log(this.registeredVirtualStreams.getArray()),t;return await r.handleStreamTr(t)}};var q0="#############CLOSING BIT#############",Zt=class e{static encodePayloadForNetwork(t,r,n,i=[]){return!t||Ko.isBufferLike(t)?t:t instanceof e?(!t.side&&r.sendMethod&&(t.side="requesting",t.sendMethod=r.sendMethod),!t.side&&r.typedrouter&&(t.side="responding",t.typedrouter=r.typedrouter,r.typedrouter.registeredVirtualStreams.add(t)),!n.response||i.includes("response")?(t.startKeepAliveLoop(),{_isVirtualStream:!0,streamId:t.streamId}):{_OBMITTED_VIRTUAL_STREAM:!0,reason:"path is under .request: obmitted for deduplication reasons in response cycle."}):Array.isArray(t)?t.map((o,s)=>e.encodePayloadForNetwork(o,r,n||t,i.concat(String(s)))):t!==null&&typeof t=="object"?Object.entries(t).reduce((o,[s,a])=>{let l=i.concat(s);return o[s]=e.encodePayloadForNetwork(a,r,n||t,l),o},{}):t}static decodePayloadFromNetwork(t,r){if(Ko.isBufferLike(t)||t instanceof xs)return t;if(t!==null&&typeof t=="object")if(t._isVirtualStream){let n=new e;return n.streamId=t.streamId,!n.side&&r.sendMethod&&(n.side="requesting",n.sendMethod=r.sendMethod),!n.side&&r.typedrouter&&(n.side="responding",n.typedrouter=r.typedrouter,r.typedrouter.registeredVirtualStreams.add(n)),n.startKeepAliveLoop(),n}else if(Array.isArray(t)){let n=[];for(let i of t)n.push(e.decodePayloadFromNetwork(i,r));return n}else return Object.keys(t).reduce((n,i)=>(n[i]=e.decodePayloadFromNetwork(t[i],r),n),{});else return t}constructor(){this.streamId=Ln.uni(),this.keepAlive=!0,this.sendBackpressuredArray=new ft.BackpressuredArray(16),this.receiveBackpressuredArray=new ft.BackpressuredArray(16)}async workOnQueue(){if(this.workingDeferred)return this.workingDeferred.promise;if(this.workingDeferred=re.defer(),this.side==="requesting"){let t=!this.receiveBackpressuredArray.checkSpaceAvailable(),r=!1,n=!1,i=async()=>{let o=await this.sendMethod({method:"##VirtualStream##",request:{streamId:this.streamId,cycleId:Ln.uni(),cycle:"request",mainPurpose:"feedback",next:this.sendBackpressuredArray.data.length>0,backpressure:!this.receiveBackpressuredArray.checkSpaceAvailable()},response:null}).catch(()=>{console.log("stream ended immaturely"),this.keepAlive=!1});o&&o.response&&(n=o.response.backpressure,r=o.response.next)};for(await i();this.sendBackpressuredArray.data.length>0||r;){if(n)for(;n;)console.log("waiting for feedback because of backpressure..."),await he.delayFor(50),await i();let o;this.sendBackpressuredArray.data.length>0&&(o=this.sendBackpressuredArray.shift());let s;s=await this.sendMethod({method:"##VirtualStream##",request:{streamId:this.streamId,cycleId:Ln.uni(),cycle:"request",mainPurpose:o?"chunk":"read",backpressure:t,next:this.sendBackpressuredArray.data.length>0,...o?{chunkData:o}:{}},response:null}).catch(()=>(console.log("stream ended immaturely"),this.keepAlive=!1,null)),s&&s.response&&s.response.chunkData&&this.receiveBackpressuredArray.push(s.response.chunkData),n=s&&s.response&&s.response.backpressure,t=!this.receiveBackpressuredArray.checkSpaceAvailable(),r=s&&s.response&&s.response.next}}this.workingDeferred.resolve(),this.workingDeferred=null}async handleStreamTr(t){if(t.request.keepAlive===!0&&this.keepAlive===!0?this.lastKeepAliveEvent=Date.now():t.request.keepAlive===!1&&(this.keepAlive=!1),t.request.mainPurpose==="keepAlive"&&(t.response={streamId:this.streamId,cycleId:t.request.cycleId,cycle:"response",mainPurpose:"keepAlive",keepAlive:this.keepAlive,next:this.sendBackpressuredArray.data.length>0,backpressure:!this.receiveBackpressuredArray.checkSpaceAvailable()}),t.request.mainPurpose==="feedback"&&(t.response={streamId:this.streamId,cycleId:t.request.cycleId,cycle:"response",mainPurpose:"feedback",next:this.sendBackpressuredArray.data.length>0,backpressure:!this.receiveBackpressuredArray.checkSpaceAvailable()}),t.request.mainPurpose==="chunk"){if(this.receiveBackpressuredArray.push(t.request.chunkData),this.sendBackpressuredArray.data.length>0&&t.response.backpressure===!1){let r=this.sendBackpressuredArray.shift();t.response={streamId:this.streamId,cycleId:t.request.cycleId,cycle:"response",mainPurpose:"chunk",next:this.sendBackpressuredArray.data.length>1,backpressure:!this.receiveBackpressuredArray.checkSpaceAvailable(),chunkData:this.sendBackpressuredArray.shift()}}else t.response={streamId:this.streamId,cycleId:t.request.cycleId,cycle:"response",mainPurpose:"feedback",next:this.sendBackpressuredArray.data.length>0,backpressure:!this.receiveBackpressuredArray.checkSpaceAvailable()};t.request=null}return t}async cleanup(){this.typedrouter&&this.typedrouter.registeredVirtualStreams.remove(this)}async startKeepAliveLoop(){if(this.side==="responding")return;await he.delayFor(0),console.log(`starting keepalive loop on side ${this.side}`);let t=0;for(;this.keepAlive;)await this.triggerKeepAlive(),await he.delayFor(1e3);await he.delayFor(1e3),await this.cleanup(),console.log(`cleaned up for stream ${this.streamId}`)}async triggerKeepAlive(){if(this.side==="requesting"){console.log("keepalive sent.");let t=await this.sendMethod({method:"##VirtualStream##",request:{streamId:this.streamId,cycleId:Ln.uni(),cycle:"request",mainPurpose:"keepAlive",keepAlive:this.keepAlive},response:null}).catch(()=>{this.keepAlive=!1});t&&t.response&&t.response.keepAlive===!1?this.keepAlive=!1:this.lastKeepAliveEvent=Date.now(),t&&t.response&&t.response.next&&this.workOnQueue()}Date.now()-this.lastKeepAliveEvent>1e4&&(console.log(`closing stream for ${this.streamId}`),this.keepAlive=!1)}async sendData(t){this.sendBackpressuredArray.push(t),this.workOnQueue(),await this.sendBackpressuredArray.waitForSpace()}async fetchData(){return this.receiveBackpressuredArray.hasSpace,await this.receiveBackpressuredArray.waitForItems(),this.receiveBackpressuredArray.shift()}async readFromWebstream(t,r=!0){let n=t.getReader(),i=!1;for(;!i;){let{value:o,done:s}=await n.read();o&&await this.sendData(o),i=s}r&&await this.close(!0)}async writeToWebstream(t){let r=t.getWriter();for(;this.keepAlive||this.receiveBackpressuredArray.checkHasItems();){let n=await this.fetchData();if(n===q0){r.releaseLock(),await t.close();break}await r.write(n)}}async close(t=!1){t&&this.sendData(q0),this.keepAlive=!1}};var Rp=class{constructor(t){if(t.postMethodWithTypedRouter&&!t.typedRouterRef)throw new Error("you have to specify a typedrouter when using postmethod with typedrouter");this.options=t}async post(t){let r;this.options.typedRouterRef&&(r=await this.options.typedRouterRef.fireEventInterestMap.addInterest(t.correlation.id,t));let i=await(this.options.postMethod||this.options.postMethodWithTypedRouter)(t),o;return r?o=await r.interestFullfilled:i?o=i:o=t,o}};var NO=new ys.WebRequest,bs=class{constructor(t,r){typeof t=="string"?this.urlEndPoint=t:this.typedTarget=t,this.method=r}async fire(t,r=!1){let n={method:this.method,request:t,response:null,correlation:{id:Ln.uni(),phase:"request"}};n=Zt.encodePayloadForNetwork(n,{sendMethod:o=>this.postTrObject(o)});let i;return i=await this.postTrObject(n,r),i=Zt.decodePayloadFromNetwork(i,{sendMethod:o=>this.postTrObject(o)}),i.response}async postTrObject(t,r=!1){let n;if(this.urlEndPoint?n=await NO.postJson(this.urlEndPoint,t,r):n=await this.typedTarget.post(t),n.error){if(console.error(`method: >>${this.method}<< got an ERROR: "${n.error.text}" with data ${JSON.stringify(n.error.data,null,2)}`),!n.retry)throw new vr(n.error.text,n.error.data);return null}return n.retry&&(console.log(`server requested retry for the following reason: ${n.retry.reason}`),await he.delayFor(n.retry.waitForMs),n=await this.postTrObject(t,r)),n}};function H0(e){return e&&typeof e.then=="function"}var FO=Promise.resolve(!1),X9=Promise.resolve(!0),Xt=Promise.resolve();function Ll(e,t){return e||(e=0),new Promise(function(r){return setTimeout(function(){return r(t)},e)})}function V0(e,t){return Math.floor(Math.random()*(t-e+1)+e)}function ws(){return Math.random().toString(36).substring(2)}var Lp=0;function Sr(){var e=Date.now()*1e3;return e<=Lp&&(e=Lp+1),Lp=e,e}var RO=Sr,LO="native";function BO(e){var t={time:Sr(),messagesCallback:null,bc:new BroadcastChannel(e),subFns:[]};return t.bc.onmessage=function(r){t.messagesCallback&&t.messagesCallback(r.data)},t}function $O(e){e.bc.close(),e.subFns=[]}function UO(e,t){try{return e.bc.postMessage(t,!1),Xt}catch(r){return Promise.reject(r)}}function jO(e,t){e.messagesCallback=t}function zO(){if(typeof globalThis<"u"&&globalThis.Deno&&globalThis.Deno.args)return!0;if((typeof window<"u"||typeof self<"u")&&typeof BroadcastChannel=="function"){if(BroadcastChannel._pubkey)throw new Error("BroadcastChannel: Do not overwrite window.BroadcastChannel with this module, this is not a polyfill");return!0}else return!1}function qO(){return 150}var W0={create:BO,close:$O,onMessage:jO,postMessage:UO,canBeUsed:zO,type:LO,averageResponseTime:qO,microSeconds:RO};var qi=class{ttl;map=new Map;_to=!1;constructor(t){this.ttl=t}has(t){return this.map.has(t)}add(t){this.map.set(t,Y0()),this._to||(this._to=!0,setTimeout(()=>{this._to=!1,HO(this)},0))}clear(){this.map.clear()}};function HO(e){let t=Y0()-e.ttl,r=e.map[Symbol.iterator]();for(;;){let n=r.next().value;if(!n)return;let i=n[0];if(n[1]<t)e.map.delete(i);else return}}function Y0(){return Date.now()}function Hi(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=JSON.parse(JSON.stringify(e));return typeof t.webWorkerSupport>"u"&&(t.webWorkerSupport=!0),t.idb||(t.idb={}),t.idb.ttl||(t.idb.ttl=1e3*45),t.idb.fallbackInterval||(t.idb.fallbackInterval=150),e.idb&&typeof e.idb.onclose=="function"&&(t.idb.onclose=e.idb.onclose),t.localstorage||(t.localstorage={}),t.localstorage.removeTimeout||(t.localstorage.removeTimeout=1e3*60),e.methods&&(t.methods=e.methods),t.node||(t.node={}),t.node.ttl||(t.node.ttl=1e3*60*2),t.node.maxParallelWrites||(t.node.maxParallelWrites=2048),typeof t.node.useFastPath>"u"&&(t.node.useFastPath=!0),t}var VO=Sr,WO="pubkey.broadcast-channel-0-",kr="messages",Bl={durability:"relaxed"},YO="idb";function G0(){if(typeof indexedDB<"u")return indexedDB;if(typeof window<"u"){if(typeof window.mozIndexedDB<"u")return window.mozIndexedDB;if(typeof window.webkitIndexedDB<"u")return window.webkitIndexedDB;if(typeof window.msIndexedDB<"u")return window.msIndexedDB}return!1}function Bp(e){e.commit&&e.commit()}function GO(e){var t=G0(),r=WO+e,n=t.open(r);return n.onupgradeneeded=function(i){var o=i.target.result;o.createObjectStore(kr,{keyPath:"id",autoIncrement:!0})},new Promise(function(i,o){n.onerror=function(s){return o(s)},n.onsuccess=function(){i(n.result)}})}function JO(e,t,r){var n=Date.now(),i={uuid:t,time:n,data:r},o=e.transaction([kr],"readwrite",Bl);return new Promise(function(s,a){o.oncomplete=function(){return s()},o.onerror=function(u){return a(u)};var l=o.objectStore(kr);l.add(i),Bp(o)})}function QO(e,t){var r=e.transaction(kr,"readonly",Bl),n=r.objectStore(kr),i=[],o=IDBKeyRange.bound(t+1,1/0);if(n.getAll){var s=n.getAll(o);return new Promise(function(l,u){s.onerror=function(c){return u(c)},s.onsuccess=function(c){l(c.target.result)}})}function a(){try{return o=IDBKeyRange.bound(t+1,1/0),n.openCursor(o)}catch{return n.openCursor()}}return new Promise(function(l,u){var c=a();c.onerror=function(f){return u(f)},c.onsuccess=function(f){var p=f.target.result;p?p.value.id<t+1?p.continue(t+1):(i.push(p.value),p.continue()):(Bp(r),l(i))}})}function ZO(e,t){if(e.closed)return Promise.resolve([]);var r=e.db.transaction(kr,"readwrite",Bl),n=r.objectStore(kr);return Promise.all(t.map(function(i){var o=n.delete(i);return new Promise(function(s){o.onsuccess=function(){return s()}})}))}function XO(e,t){var r=Date.now()-t,n=e.transaction(kr,"readonly",Bl),i=n.objectStore(kr),o=[];return new Promise(function(s){i.openCursor().onsuccess=function(a){var l=a.target.result;if(l){var u=l.value;u.time<r?(o.push(u),l.continue()):(Bp(n),s(o))}else s(o)}})}function KO(e){return XO(e.db,e.options.idb.ttl).then(function(t){return ZO(e,t.map(function(r){return r.id}))})}function eM(e,t){return t=Hi(t),GO(e).then(function(r){var n={closed:!1,lastCursorId:0,channelName:e,options:t,uuid:ws(),eMIs:new qi(t.idb.ttl*2),writeBlockPromise:Xt,messagesCallback:null,readQueuePromises:[],db:r};return r.onclose=function(){n.closed=!0,t.idb.onclose&&t.idb.onclose()},J0(n),n})}function J0(e){e.closed||Q0(e).then(function(){return Ll(e.options.idb.fallbackInterval)}).then(function(){return J0(e)})}function tM(e,t){return!(e.uuid===t.uuid||t.eMIs.has(e.id)||e.data.time<t.messagesCallbackTime)}function Q0(e){return e.closed?Xt:e.messagesCallback?QO(e.db,e.lastCursorId).then(function(t){var r=t.filter(function(n){return!!n}).map(function(n){return n.id>e.lastCursorId&&(e.lastCursorId=n.id),n}).filter(function(n){return tM(n,e)}).sort(function(n,i){return n.time-i.time});return r.forEach(function(n){e.messagesCallback&&(e.eMIs.add(n.id),e.messagesCallback(n.data))}),Xt}):Xt}function rM(e){e.closed=!0,e.db.close()}function nM(e,t){return e.writeBlockPromise=e.writeBlockPromise.then(function(){return JO(e.db,e.uuid,t)}).then(function(){V0(0,10)===0&&KO(e)}),e.writeBlockPromise}function iM(e,t,r){e.messagesCallbackTime=r,e.messagesCallback=t,Q0(e)}function oM(){return!!G0()}function sM(e){return e.idb.fallbackInterval*2}var Z0={create:eM,close:rM,onMessage:iM,postMessage:nM,canBeUsed:oM,type:YO,averageResponseTime:sM,microSeconds:VO};var aM=Sr,lM="pubkey.broadcastChannel-",uM="localstorage";function X0(){var e;if(typeof window>"u")return null;try{e=window.localStorage,e=window["ie8-eventlistener/storage"]||window.localStorage}catch{}return e}function K0(e){return lM+e}function cM(e,t){return new Promise(function(r){Ll().then(function(){var n=K0(e.channelName),i={token:ws(),time:Date.now(),data:t,uuid:e.uuid},o=JSON.stringify(i);X0().setItem(n,o);var s=document.createEvent("Event");s.initEvent("storage",!0,!0),s.key=n,s.newValue=o,window.dispatchEvent(s),r()})})}function fM(e,t){var r=K0(e),n=function(o){o.key===r&&t(JSON.parse(o.newValue))};return window.addEventListener("storage",n),n}function pM(e){window.removeEventListener("storage",e)}function hM(e,t){if(t=Hi(t),!ew())throw new Error("BroadcastChannel: localstorage cannot be used");var r=ws(),n=new qi(t.localstorage.removeTimeout),i={channelName:e,uuid:r,eMIs:n};return i.listener=fM(e,function(o){i.messagesCallback&&o.uuid!==r&&(!o.token||n.has(o.token)||o.data.time&&o.data.time<i.messagesCallbackTime||(n.add(o.token),i.messagesCallback(o.data)))}),i}function mM(e){pM(e.listener)}function dM(e,t,r){e.messagesCallbackTime=r,e.messagesCallback=t}function ew(){var e=X0();if(!e)return!1;try{var t="__broadcastchannel_check";e.setItem(t,"works"),e.removeItem(t)}catch{return!1}return!0}function gM(){var e=120,t=navigator.userAgent.toLowerCase();return t.includes("safari")&&!t.includes("chrome")?e*2:e}var tw={create:hM,close:mM,onMessage:dM,postMessage:cM,canBeUsed:ew,type:uM,averageResponseTime:gM,microSeconds:aM};var rw=Sr,yM="simulate",$p=new Set;function xM(e){var t={time:rw(),name:e,messagesCallback:null};return $p.add(t),t}function bM(e){$p.delete(e)}var nw=5;function wM(e,t){return new Promise(function(r){return setTimeout(function(){var n=Array.from($p);n.forEach(function(i){i.name===e.name&&i!==e&&i.messagesCallback&&i.time<t.time&&i.messagesCallback(t)}),r()},nw)})}function vM(e,t){e.messagesCallback=t}function SM(){return!0}function kM(){return nw}var iw={create:xM,close:bM,onMessage:vM,postMessage:wM,canBeUsed:SM,type:yM,averageResponseTime:kM,microSeconds:rw};var ow=[W0,Z0,tw];function sw(e){var t=[].concat(e.methods,ow).filter(Boolean);if(e.type){if(e.type==="simulate")return iw;var r=t.find(function(i){return i.type===e.type});if(r)return r;throw new Error("method-type "+e.type+" not found")}e.webWorkerSupport||(t=t.filter(function(i){return i.type!=="idb"}));var n=t.find(function(i){return i.canBeUsed()});if(n)return n;throw new Error("No usable method found in "+JSON.stringify(ow.map(function(i){return i.type})))}var Up=new Set,AM=0,Vi=function(t,r){this.id=AM++,Up.add(this),this.name=t,aw&&(r=aw),this.options=Hi(r),this.method=sw(this.options),this._iL=!1,this._onML=null,this._addEL={message:[],internal:[]},this._uMP=new Set,this._befC=[],this._prepP=null,TM(this)};Vi._pubkey=!0;var aw;Vi.prototype={postMessage:function(t){if(this.closed)throw new Error("BroadcastChannel.postMessage(): Cannot post message after channel has closed "+JSON.stringify(t));return lw(this,"message",t)},postInternal:function(t){return lw(this,"internal",t)},set onmessage(e){var t=this.method.microSeconds(),r={time:t,fn:e};cw(this,"message",this._onML),e&&typeof e=="function"?(this._onML=r,uw(this,"message",r)):this._onML=null},addEventListener:function(t,r){var n=this.method.microSeconds(),i={time:n,fn:r};uw(this,t,i)},removeEventListener:function(t,r){var n=this._addEL[t].find(function(i){return i.fn===r});cw(this,t,n)},close:function(){var t=this;if(!this.closed){Up.delete(this),this.closed=!0;var r=this._prepP?this._prepP:Xt;return this._onML=null,this._addEL.message=[],r.then(function(){return Promise.all(Array.from(t._uMP))}).then(function(){return Promise.all(t._befC.map(function(n){return n()}))}).then(function(){return t.method.close(t._state)})}},get type(){return this.method.type},get isClosed(){return this.closed}};function lw(e,t,r){var n=e.method.microSeconds(),i={time:n,type:t,data:r},o=e._prepP?e._prepP:Xt;return o.then(function(){var s=e.method.postMessage(e._state,i);return e._uMP.add(s),s.catch().then(function(){return e._uMP.delete(s)}),s})}function TM(e){var t=e.method.create(e.name,e.options);H0(t)?(e._prepP=t,t.then(function(r){e._state=r})):e._state=t}function fw(e){return e._addEL.message.length>0||e._addEL.internal.length>0}function uw(e,t,r){e._addEL[t].push(r),CM(e)}function cw(e,t,r){e._addEL[t]=e._addEL[t].filter(function(n){return n!==r}),EM(e)}function CM(e){if(!e._iL&&fw(e)){var t=function(i){e._addEL[i.type].forEach(function(o){i.time>=o.time&&o.fn(i.data)})},r=e.method.microSeconds();e._prepP?e._prepP.then(function(){e._iL=!0,e.method.onMessage(e._state,t,r)}):(e._iL=!0,e.method.onMessage(e._state,t,r))}}function EM(e){if(e._iL&&!fw(e)){e._iL=!1;var t=e.method.microSeconds();e.method.onMessage(e._state,null,t)}}var jp=globalThis.BroadcastChannel;jp||(jp=Vi);var zp=class{constructor(){this.broadcastChannel=new jp("dees-comms"),this.typedrouter=new It.TypedRouter,this.typedtarget=new It.TypedTarget({postMethodWithTypedRouter:async t=>{this.postMessage(t)},typedRouterRef:this.typedrouter}),this.broadcastChannel.onmessage=async t=>{let r=t.method?t:t.data;console.log(JSON.stringify(r));let n=await this.typedrouter.routeAndAddResponse(r);n&&!n.error&&this.postMessage(n)}}createTypedRequest(t){return new It.TypedRequest(this.typedtarget,t)}async postMessage(t){this.broadcastChannel.postMessage(t)}async createTypedHandler(t,r){this.typedrouter.addTypedHandler(new It.TypedHandler(t,r))}};var Hu={};le(Hu,{SmartMarkdown:()=>Wm});var wA=$e(iS(),1);function th(e){if(e)throw e}var Xl=$e(hS(),1);function Es(e){if(typeof e!="object"||e===null)return!1;let t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function rh(){let e=[],t={run:r,use:n};return t;function r(...i){let o=-1,s=i.pop();if(typeof s!="function")throw new TypeError("Expected function as last argument, not "+s);a(null,...i);function a(l,...u){let c=e[++o],f=-1;if(l){s(l);return}for(;++f<i.length;)(u[f]===null||u[f]===void 0)&&(u[f]=i[f]);i=u,c?mS(c,a)(...u):s(null,...u)}}function n(i){if(typeof i!="function")throw new TypeError("Expected `middelware` to be a function, not "+i);return e.push(i),t}}function mS(e,t){let r;return n;function n(...s){let a=e.length>s.length,l;a&&s.push(i);try{l=e.apply(this,s)}catch(u){let c=u;if(a&&r)throw c;return i(c)}a||(l&&l.then&&typeof l.then=="function"?l.then(o,i):l instanceof Error?i(l):o(l))}function i(s,...a){r||(r=!0,t(s,...a))}function o(s){i(null,s)}}function Qr(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?dS(e.position):"start"in e||"end"in e?dS(e):"line"in e||"column"in e?nh(e):""}function nh(e){return gS(e&&e.line)+":"+gS(e&&e.column)}function dS(e){return nh(e&&e.start)+"-"+nh(e&&e.end)}function gS(e){return e&&typeof e=="number"?e:1}var Ke=class extends Error{constructor(t,r,n){super(),typeof r=="string"&&(n=r,r=void 0);let i="",o={},s=!1;if(r&&("line"in r&&"column"in r?o={place:r}:"start"in r&&"end"in r?o={place:r}:"type"in r?o={ancestors:[r],place:r.position}:o={...r}),typeof t=="string"?i=t:!o.cause&&t&&(s=!0,i=t.message,o.cause=t),!o.ruleId&&!o.source&&typeof n=="string"){let l=n.indexOf(":");l===-1?o.ruleId=n:(o.source=n.slice(0,l),o.ruleId=n.slice(l+1))}if(!o.place&&o.ancestors&&o.ancestors){let l=o.ancestors[o.ancestors.length-1];l&&(o.place=l.position)}let a=o.place&&"start"in o.place?o.place.start:o.place;this.ancestors=o.ancestors||void 0,this.cause=o.cause||void 0,this.column=a?a.column:void 0,this.fatal=void 0,this.file,this.message=i,this.line=a?a.line:void 0,this.name=Qr(o.place)||"1:1",this.place=o.place||void 0,this.reason=this.message,this.ruleId=o.ruleId||void 0,this.source=o.source||void 0,this.stack=s&&o.cause&&typeof o.cause.stack=="string"?o.cause.stack:"",this.actual,this.expected,this.note,this.url}};Ke.prototype.file="";Ke.prototype.name="";Ke.prototype.reason="";Ke.prototype.message="";Ke.prototype.stack="";Ke.prototype.column=void 0;Ke.prototype.line=void 0;Ke.prototype.ancestors=void 0;Ke.prototype.cause=void 0;Ke.prototype.fatal=void 0;Ke.prototype.place=void 0;Ke.prototype.ruleId=void 0;Ke.prototype.source=void 0;var zt={basename:pR,dirname:hR,extname:mR,join:dR,sep:"/"};function pR(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');_s(e);let r=0,n=-1,i=e.length,o;if(t===void 0||t.length===0||t.length>e.length){for(;i--;)if(e.codePointAt(i)===47){if(o){r=i+1;break}}else n<0&&(o=!0,n=i+1);return n<0?"":e.slice(r,n)}if(t===e)return"";let s=-1,a=t.length-1;for(;i--;)if(e.codePointAt(i)===47){if(o){r=i+1;break}}else s<0&&(o=!0,s=i+1),a>-1&&(e.codePointAt(i)===t.codePointAt(a--)?a<0&&(n=i):(a=-1,n=s));return r===n?n=s:n<0&&(n=e.length),e.slice(r,n)}function hR(e){if(_s(e),e.length===0)return".";let t=-1,r=e.length,n;for(;--r;)if(e.codePointAt(r)===47){if(n){t=r;break}}else n||(n=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function mR(e){_s(e);let t=e.length,r=-1,n=0,i=-1,o=0,s;for(;t--;){let a=e.codePointAt(t);if(a===47){if(s){n=t+1;break}continue}r<0&&(s=!0,r=t+1),a===46?i<0?i=t:o!==1&&(o=1):i>-1&&(o=-1)}return i<0||r<0||o===0||o===1&&i===r-1&&i===n+1?"":e.slice(i,r)}function dR(...e){let t=-1,r;for(;++t<e.length;)_s(e[t]),e[t]&&(r=r===void 0?e[t]:r+"/"+e[t]);return r===void 0?".":gR(r)}function gR(e){_s(e);let t=e.codePointAt(0)===47,r=yR(e,!t);return r.length===0&&!t&&(r="."),r.length>0&&e.codePointAt(e.length-1)===47&&(r+="/"),t?"/"+r:r}function yR(e,t){let r="",n=0,i=-1,o=0,s=-1,a,l;for(;++s<=e.length;){if(s<e.length)a=e.codePointAt(s);else{if(a===47)break;a=47}if(a===47){if(!(i===s-1||o===1))if(i!==s-1&&o===2){if(r.length<2||n!==2||r.codePointAt(r.length-1)!==46||r.codePointAt(r.length-2)!==46){if(r.length>2){if(l=r.lastIndexOf("/"),l!==r.length-1){l<0?(r="",n=0):(r=r.slice(0,l),n=r.length-1-r.lastIndexOf("/")),i=s,o=0;continue}}else if(r.length>0){r="",n=0,i=s,o=0;continue}}t&&(r=r.length>0?r+"/..":"..",n=2)}else r.length>0?r+="/"+e.slice(i+1,s):r=e.slice(i+1,s),n=s-i-1;i=s,o=0}else a===46&&o>-1?o++:o=-1}return r}function _s(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}var yS={cwd:xR};function xR(){return"/"}function Ki(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function xS(e){if(typeof e=="string")e=new URL(e);else if(!Ki(e)){let t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if(e.protocol!=="file:"){let t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return bR(e)}function bR(e){if(e.hostname!==""){let n=new TypeError('File URL host must be "localhost" or empty on darwin');throw n.code="ERR_INVALID_FILE_URL_HOST",n}let t=e.pathname,r=-1;for(;++r<t.length;)if(t.codePointAt(r)===37&&t.codePointAt(r+1)===50){let n=t.codePointAt(r+2);if(n===70||n===102){let i=new TypeError("File URL path must not include encoded / characters");throw i.code="ERR_INVALID_FILE_URL_PATH",i}}return decodeURIComponent(t)}var ih=["history","path","basename","stem","extname","dirname"],Is=class{constructor(t){let r;t?Ki(t)?r={path:t}:typeof t=="string"||wR(t)?r={value:t}:r=t:r={},this.cwd="cwd"in r?"":yS.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let n=-1;for(;++n<ih.length;){let o=ih[n];o in r&&r[o]!==void 0&&r[o]!==null&&(this[o]=o==="history"?[...r[o]]:r[o])}let i;for(i in r)ih.includes(i)||(this[i]=r[i])}get basename(){return typeof this.path=="string"?zt.basename(this.path):void 0}set basename(t){sh(t,"basename"),oh(t,"basename"),this.path=zt.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?zt.dirname(this.path):void 0}set dirname(t){bS(this.basename,"dirname"),this.path=zt.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?zt.extname(this.path):void 0}set extname(t){if(oh(t,"extname"),bS(this.dirname,"extname"),t){if(t.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(t.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=zt.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){Ki(t)&&(t=xS(t)),sh(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?zt.basename(this.path,this.extname):void 0}set stem(t){sh(t,"stem"),oh(t,"stem"),this.path=zt.join(this.dirname||"",t+(this.extname||""))}fail(t,r,n){let i=this.message(t,r,n);throw i.fatal=!0,i}info(t,r,n){let i=this.message(t,r,n);return i.fatal=void 0,i}message(t,r,n){let i=new Ke(t,r,n);return this.path&&(i.name=this.path+":"+i.name,i.file=this.path),i.fatal=!1,this.messages.push(i),i}toString(t){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(t||void 0).decode(this.value)}};function oh(e,t){if(e&&e.includes(zt.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+zt.sep+"`")}function sh(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function bS(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function wR(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}var wS=function(e){let n=this.constructor.prototype,i=n[e],o=function(){return i.apply(o,arguments)};return Object.setPrototypeOf(o,n),o};var vR={}.hasOwnProperty,ch=class e extends wS{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=rh()}copy(){let t=new e,r=-1;for(;++r<this.attachers.length;){let n=this.attachers[r];t.use(...n)}return t.data((0,Xl.default)(!0,{},this.namespace)),t}data(t,r){return typeof t=="string"?arguments.length===2?(uh("data",this.frozen),this.namespace[t]=r,this):vR.call(this.namespace,t)&&this.namespace[t]||void 0:t?(uh("data",this.frozen),this.namespace=t,this):this.namespace}freeze(){if(this.frozen)return this;let t=this;for(;++this.freezeIndex<this.attachers.length;){let[r,...n]=this.attachers[this.freezeIndex];if(n[0]===!1)continue;n[0]===!0&&(n[0]=void 0);let i=r.call(t,...n);typeof i=="function"&&this.transformers.use(i)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(t){this.freeze();let r=Zl(t),n=this.parser||this.Parser;return ah("parse",n),n(String(r),r)}process(t,r){let n=this;return this.freeze(),ah("process",this.parser||this.Parser),lh("process",this.compiler||this.Compiler),r?i(void 0,r):new Promise(i);function i(o,s){let a=Zl(t),l=n.parse(a);n.run(l,a,function(c,f,p){if(c||!f||!p)return u(c);let h=f,m=n.stringify(h,p);kR(m)?p.value=m:p.result=m,u(c,p)});function u(c,f){c||!f?s(c):o?o(f):r(void 0,f)}}}processSync(t){let r=!1,n;return this.freeze(),ah("processSync",this.parser||this.Parser),lh("processSync",this.compiler||this.Compiler),this.process(t,i),SS("processSync","process",r),n;function i(o,s){r=!0,th(o),n=s}}run(t,r,n){vS(t),this.freeze();let i=this.transformers;return!n&&typeof r=="function"&&(n=r,r=void 0),n?o(void 0,n):new Promise(o);function o(s,a){let l=Zl(r);i.run(t,l,u);function u(c,f,p){let h=f||t;c?a(c):s?s(h):n(void 0,h,p)}}}runSync(t,r){let n=!1,i;return this.run(t,r,o),SS("runSync","run",n),i;function o(s,a){th(s),i=a,n=!0}}stringify(t,r){this.freeze();let n=Zl(r),i=this.compiler||this.Compiler;return lh("stringify",i),vS(t),i(t,n)}use(t,...r){let n=this.attachers,i=this.namespace;if(uh("use",this.frozen),t!=null)if(typeof t=="function")l(t,r);else if(typeof t=="object")Array.isArray(t)?a(t):s(t);else throw new TypeError("Expected usable value, not `"+t+"`");return this;function o(u){if(typeof u=="function")l(u,[]);else if(typeof u=="object")if(Array.isArray(u)){let[c,...f]=u;l(c,f)}else s(u);else throw new TypeError("Expected usable value, not `"+u+"`")}function s(u){if(!("plugins"in u)&&!("settings"in u))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");a(u.plugins),u.settings&&(i.settings=(0,Xl.default)(!0,i.settings,u.settings))}function a(u){let c=-1;if(u!=null)if(Array.isArray(u))for(;++c<u.length;){let f=u[c];o(f)}else throw new TypeError("Expected a list of plugins, not `"+u+"`")}function l(u,c){let f=-1,p=-1;for(;++f<n.length;)if(n[f][0]===u){p=f;break}if(p===-1)n.push([u,...c]);else if(c.length>0){let[h,...m]=c,x=n[p][1];Es(x)&&Es(h)&&(h=(0,Xl.default)(!0,x,h)),n[p]=[u,h,...m]}}}},Kl=new ch().freeze();function ah(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function lh(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function uh(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function vS(e){if(!Es(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function SS(e,t,r){if(!r)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function Zl(e){return SR(e)?e:new Is(e)}function SR(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function kR(e){return typeof e=="string"||AR(e)}function AR(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}function eo(e,t){let r=String(e);if(typeof t!="string")throw new TypeError("Expected character");let n=0,i=r.indexOf(t);for(;i!==-1;)n++,i=r.indexOf(t,i+t.length);return n}var Je=Zr(/[A-Za-z]/),Oe=Zr(/[\dA-Za-z]/),kS=Zr(/[#-'*+\--9=?A-Z^-~]/);function Vn(e){return e!==null&&(e<32||e===127)}var Ps=Zr(/\d/),AS=Zr(/[\dA-Fa-f]/),TS=Zr(/[!-/:-@[-`{-~]/);function H(e){return e!==null&&e<-2}function ce(e){return e!==null&&(e<0||e===32)}function J(e){return e===-2||e===-1||e===32}var Wn=Zr(/\p{P}|\p{S}/u),tr=Zr(/\s/);function Zr(e){return t;function t(r){return r!==null&&r>-1&&e.test(String.fromCharCode(r))}}var Xr=function(e){if(e==null)return _R;if(typeof e=="function")return eu(e);if(typeof e=="object")return Array.isArray(e)?TR(e):CR(e);if(typeof e=="string")return ER(e);throw new Error("Expected function, string, or object as test")};function TR(e){let t=[],r=-1;for(;++r<e.length;)t[r]=Xr(e[r]);return eu(n);function n(...i){let o=-1;for(;++o<t.length;)if(t[o].apply(this,i))return!0;return!1}}function CR(e){let t=e;return eu(r);function r(n){let i=n,o;for(o in e)if(i[o]!==t[o])return!1;return!0}}function ER(e){return eu(t);function t(r){return r&&r.type===e}}function eu(e){return t;function t(r,n,i){return!!(IR(r)&&e.call(this,r,typeof n=="number"?n:void 0,i||void 0))}}function _R(){return!0}function IR(e){return e!==null&&typeof e=="object"&&"type"in e}var CS=[],tu=!0,Yn=!1,ru="skip";function Ds(e,t,r,n){let i;typeof t=="function"&&typeof r!="function"?(n=r,r=t):i=t;let o=Xr(i),s=n?-1:1;a(e,void 0,[])();function a(l,u,c){let f=l&&typeof l=="object"?l:{};if(typeof f.type=="string"){let h=typeof f.tagName=="string"?f.tagName:typeof f.name=="string"?f.name:void 0;Object.defineProperty(p,"name",{value:"node ("+(l.type+(h?"<"+h+">":""))+")"})}return p;function p(){let h=CS,m,x,v;if((!t||o(l,u,c[c.length-1]||void 0))&&(h=PR(r(l,c)),h[0]===Yn))return h;if("children"in l&&l.children){let w=l;if(w.children&&h[0]!==ru)for(x=(n?w.children.length:-1)+s,v=c.concat(w);x>-1&&x<w.children.length;){let E=w.children[x];if(m=a(E,x,v)(),m[0]===Yn)return m;x=typeof m[1]=="number"?m[1]:x+s}}return h}}}function PR(e){return Array.isArray(e)?e:typeof e=="number"?[tu,e]:e==null?CS:[e]}function fh(e,t,r){let i=Xr((r||{}).ignore||[]),o=DR(t),s=-1;for(;++s<o.length;)Ds(e,"text",a);function a(u,c){let f=-1,p;for(;++f<c.length;){let h=c[f],m=p?p.children:void 0;if(i(h,m?m.indexOf(h):void 0,p))return;p=h}if(p)return l(u,c)}function l(u,c){let f=c[c.length-1],p=o[s][0],h=o[s][1],m=0,v=f.children.indexOf(u),w=!1,E=[];p.lastIndex=0;let b=p.exec(u.value);for(;b;){let z=b.index,q={index:b.index,input:b.input,stack:[...c,u]},A=h(...b,q);if(typeof A=="string"&&(A=A.length>0?{type:"text",value:A}:void 0),A===!1?p.lastIndex=z+1:(m!==z&&E.push({type:"text",value:u.value.slice(m,z)}),Array.isArray(A)?E.push(...A):A&&E.push(A),m=z+b[0].length,w=!0),!p.global)break;b=p.exec(u.value)}return w?(m<u.value.length&&E.push({type:"text",value:u.value.slice(m)}),f.children.splice(v,1,...E)):E=[u],v+E.length}}function DR(e){let t=[];if(!Array.isArray(e))throw new TypeError("Expected find and replace tuple or list of tuples");let r=!e[0]||Array.isArray(e[0])?e:[e],n=-1;for(;++n<r.length;){let i=r[n];t.push([OR(i[0]),MR(i[1])])}return t}function OR(e){return typeof e=="string"?new RegExp(Tn(e),"g"):e}function MR(e){return typeof e=="function"?e:function(){return e}}var ph="phrasing",hh=["autolink","link","image","label"];function dh(){return{transforms:[$R],enter:{literalAutolink:NR,literalAutolinkEmail:mh,literalAutolinkHttp:mh,literalAutolinkWww:mh},exit:{literalAutolink:BR,literalAutolinkEmail:LR,literalAutolinkHttp:FR,literalAutolinkWww:RR}}}function gh(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:ph,notInConstruct:hh},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:ph,notInConstruct:hh},{character:":",before:"[ps]",after:"\\/",inConstruct:ph,notInConstruct:hh}]}}function NR(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function mh(e){this.config.enter.autolinkProtocol.call(this,e)}function FR(e){this.config.exit.autolinkProtocol.call(this,e)}function RR(e){this.config.exit.data.call(this,e);let t=this.stack[this.stack.length-1];t.type,t.url="http://"+this.sliceSerialize(e)}function LR(e){this.config.exit.autolinkEmail.call(this,e)}function BR(e){this.exit(e)}function $R(e){fh(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,UR],[/(?<=^|\s|\p{P}|\p{S})([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/gu,jR]],{ignore:["link","linkReference"]})}function UR(e,t,r,n,i){let o="";if(!ES(i)||(/^w/i.test(t)&&(r=t+r,t="",o="http://"),!zR(r)))return!1;let s=qR(r+n);if(!s[0])return!1;let a={type:"link",title:null,url:o+t+s[0],children:[{type:"text",value:t+s[0]}]};return s[1]?[a,{type:"text",value:s[1]}]:a}function jR(e,t,r,n){return!ES(n,!0)||/[-\d_]$/.test(r)?!1:{type:"link",title:null,url:"mailto:"+t+"@"+r,children:[{type:"text",value:t+"@"+r}]}}function zR(e){let t=e.split(".");return!(t.length<2||t[t.length-1]&&(/_/.test(t[t.length-1])||!/[a-zA-Z\d]/.test(t[t.length-1]))||t[t.length-2]&&(/_/.test(t[t.length-2])||!/[a-zA-Z\d]/.test(t[t.length-2])))}function qR(e){let t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let r=t[0],n=r.indexOf(")"),i=eo(e,"("),o=eo(e,")");for(;n!==-1&&i>o;)e+=r.slice(0,n+1),r=r.slice(n+1),n=r.indexOf(")"),o++;return[e,r]}function ES(e,t){let r=e.input.charCodeAt(e.index-1);return(e.index===0||tr(r)||Wn(r))&&(!t||r!==47)}function ot(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}_S.peek=XR;function yh(){return{enter:{gfmFootnoteDefinition:HR,gfmFootnoteDefinitionLabelString:VR,gfmFootnoteCall:GR,gfmFootnoteCallString:JR},exit:{gfmFootnoteDefinition:YR,gfmFootnoteDefinitionLabelString:WR,gfmFootnoteCall:ZR,gfmFootnoteCallString:QR}}}function xh(){return{unsafe:[{character:"[",inConstruct:["phrasing","label","reference"]}],handlers:{footnoteDefinition:KR,footnoteReference:_S}}}function HR(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function VR(){this.buffer()}function WR(e){let t=this.resume(),r=this.stack[this.stack.length-1];r.type,r.label=t,r.identifier=ot(this.sliceSerialize(e)).toLowerCase()}function YR(e){this.exit(e)}function GR(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function JR(){this.buffer()}function QR(e){let t=this.resume(),r=this.stack[this.stack.length-1];r.type,r.label=t,r.identifier=ot(this.sliceSerialize(e)).toLowerCase()}function ZR(e){this.exit(e)}function _S(e,t,r,n){let i=r.createTracker(n),o=i.move("[^"),s=r.enter("footnoteReference"),a=r.enter("reference");return o+=i.move(r.safe(r.associationId(e),{...i.current(),before:o,after:"]"})),a(),s(),o+=i.move("]"),o}function XR(){return"["}function KR(e,t,r,n){let i=r.createTracker(n),o=i.move("[^"),s=r.enter("footnoteDefinition"),a=r.enter("label");return o+=i.move(r.safe(r.associationId(e),{...i.current(),before:o,after:"]"})),a(),o+=i.move("]:"+(e.children&&e.children.length>0?" ":"")),i.shift(4),o+=i.move(r.indentLines(r.containerFlow(e,i.current()),e2)),s(),o}function e2(e,t,r){return t===0?e:(r?"":" ")+e}var t2=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];IS.peek=i2;function bh(){return{canContainEols:["delete"],enter:{strikethrough:r2},exit:{strikethrough:n2}}}function wh(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:t2}],handlers:{delete:IS}}}function r2(e){this.enter({type:"delete",children:[]},e)}function n2(e){this.exit(e)}function IS(e,t,r,n){let i=r.createTracker(n),o=r.enter("strikethrough"),s=i.move("~~");return s+=r.containerPhrasing(e,{...i.current(),before:s,after:"~"}),s+=i.move("~~"),o(),s}function i2(){return"~"}function o2(e){return e.length}function DS(e,t){let r=t||{},n=(r.align||[]).concat(),i=r.stringLength||o2,o=[],s=[],a=[],l=[],u=0,c=-1;for(;++c<e.length;){let x=[],v=[],w=-1;for(e[c].length>u&&(u=e[c].length);++w<e[c].length;){let E=s2(e[c][w]);if(r.alignDelimiters!==!1){let b=i(E);v[w]=b,(l[w]===void 0||b>l[w])&&(l[w]=b)}x.push(E)}s[c]=x,a[c]=v}let f=-1;if(typeof n=="object"&&"length"in n)for(;++f<u;)o[f]=PS(n[f]);else{let x=PS(n);for(;++f<u;)o[f]=x}f=-1;let p=[],h=[];for(;++f<u;){let x=o[f],v="",w="";x===99?(v=":",w=":"):x===108?v=":":x===114&&(w=":");let E=r.alignDelimiters===!1?1:Math.max(1,l[f]-v.length-w.length),b=v+"-".repeat(E)+w;r.alignDelimiters!==!1&&(E=v.length+E+w.length,E>l[f]&&(l[f]=E),h[f]=E),p[f]=b}s.splice(1,0,p),a.splice(1,0,h),c=-1;let m=[];for(;++c<s.length;){let x=s[c],v=a[c];f=-1;let w=[];for(;++f<u;){let E=x[f]||"",b="",z="";if(r.alignDelimiters!==!1){let q=l[f]-(v[f]||0),A=o[f];A===114?b=" ".repeat(q):A===99?q%2?(b=" ".repeat(q/2+.5),z=" ".repeat(q/2-.5)):(b=" ".repeat(q/2),z=b):z=" ".repeat(q)}r.delimiterStart!==!1&&!f&&w.push("|"),r.padding!==!1&&!(r.alignDelimiters===!1&&E==="")&&(r.delimiterStart!==!1||f)&&w.push(" "),r.alignDelimiters!==!1&&w.push(b),w.push(E),r.alignDelimiters!==!1&&w.push(z),r.padding!==!1&&w.push(" "),(r.delimiterEnd!==!1||f!==u-1)&&w.push("|")}m.push(r.delimiterEnd===!1?w.join("").replace(/ +$/,""):w.join(""))}return m.join(`
54
+ `)}function s2(e){return e==null?"":String(e)}function PS(e){let t=typeof e=="string"?e.codePointAt(0):0;return t===67||t===99?99:t===76||t===108?108:t===82||t===114?114:0}var OS={}.hasOwnProperty;function nu(e,t){let r=t||{};function n(i,...o){let s=n.invalid,a=n.handlers;if(i&&OS.call(i,e)){let l=String(i[e]);s=OS.call(a,l)?a[l]:n.unknown}if(s)return s.call(this,i,...o)}return n.handlers=r.handlers||{},n.invalid=r.invalid,n.unknown=r.unknown,n}var a2={}.hasOwnProperty;function vh(e,t){let r=-1,n;if(t.extensions)for(;++r<t.extensions.length;)vh(e,t.extensions[r]);for(n in t)if(a2.call(t,n))switch(n){case"extensions":break;case"unsafe":{MS(e[n],t[n]);break}case"join":{MS(e[n],t[n]);break}case"handlers":{l2(e[n],t[n]);break}default:e.options[n]=t[n]}return e}function MS(e,t){t&&e.push(...t)}function l2(e,t){t&&Object.assign(e,t)}function NS(e,t,r,n){let i=r.enter("blockquote"),o=r.createTracker(n);o.move("> "),o.shift(2);let s=r.indentLines(r.containerFlow(e,o.current()),u2);return i(),s}function u2(e,t,r){return">"+(r?"":" ")+e}function iu(e,t){return FS(e,t.inConstruct,!0)&&!FS(e,t.notInConstruct,!1)}function FS(e,t,r){if(typeof t=="string"&&(t=[t]),!t||t.length===0)return r;let n=-1;for(;++n<t.length;)if(e.includes(t[n]))return!0;return!1}function Sh(e,t,r,n){let i=-1;for(;++i<r.unsafe.length;)if(r.unsafe[i].character===`
55
55
  `&&iu(r.stack,r.unsafe[i]))return/[ \t]/.test(n.before)?"":" ";return`\\
56
- `}function RS(e,t){let r=String(e),n=r.indexOf(t),i=n,o=0,s=0;if(typeof t!="string")throw new TypeError("Expected substring");for(;n!==-1;)n===i?++o>s&&(s=o):o=1,i=n+t.length,n=r.indexOf(t,i);return s}function Ms(e,t){return!!(t.options.fences===!1&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}function LS(e){let t=e.options.fence||"`";if(t!=="`"&&t!=="~")throw new Error("Cannot serialize code with `"+t+"` for `options.fence`, expected `` ` `` or `~`");return t}function BS(e,t,r,n){let i=LS(r),o=e.value||"",s=i==="`"?"GraveAccent":"Tilde";if(Ms(e,r)){let f=r.enter("codeIndented"),p=r.indentLines(o,l2);return f(),p}let a=r.createTracker(n),l=i.repeat(Math.max(RS(o,i)+1,3)),u=r.enter("codeFenced"),c=a.move(l);if(e.lang){let f=r.enter(`codeFencedLang${s}`);c+=a.move(r.safe(e.lang,{before:c,after:" ",encode:["`"],...a.current()})),f()}if(e.lang&&e.meta){let f=r.enter(`codeFencedMeta${s}`);c+=a.move(" "),c+=a.move(r.safe(e.meta,{before:c,after:`
56
+ `}function RS(e,t){let r=String(e),n=r.indexOf(t),i=n,o=0,s=0;if(typeof t!="string")throw new TypeError("Expected substring");for(;n!==-1;)n===i?++o>s&&(s=o):o=1,i=n+t.length,n=r.indexOf(t,i);return s}function Os(e,t){return!!(t.options.fences===!1&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}function LS(e){let t=e.options.fence||"`";if(t!=="`"&&t!=="~")throw new Error("Cannot serialize code with `"+t+"` for `options.fence`, expected `` ` `` or `~`");return t}function BS(e,t,r,n){let i=LS(r),o=e.value||"",s=i==="`"?"GraveAccent":"Tilde";if(Os(e,r)){let f=r.enter("codeIndented"),p=r.indentLines(o,c2);return f(),p}let a=r.createTracker(n),l=i.repeat(Math.max(RS(o,i)+1,3)),u=r.enter("codeFenced"),c=a.move(l);if(e.lang){let f=r.enter(`codeFencedLang${s}`);c+=a.move(r.safe(e.lang,{before:c,after:" ",encode:["`"],...a.current()})),f()}if(e.lang&&e.meta){let f=r.enter(`codeFencedMeta${s}`);c+=a.move(" "),c+=a.move(r.safe(e.meta,{before:c,after:`
57
57
  `,encode:["`"],...a.current()})),f()}return c+=a.move(`
58
58
  `),o&&(c+=a.move(o+`
59
- `)),c+=a.move(l),u(),c}function l2(e,t,r){return(r?"":" ")+e}function to(e){let t=e.options.quote||'"';if(t!=='"'&&t!=="'")throw new Error("Cannot serialize title with `"+t+"` for `options.quote`, expected `\"`, or `'`");return t}function $S(e,t,r,n){let i=to(r),o=i==='"'?"Quote":"Apostrophe",s=r.enter("definition"),a=r.enter("label"),l=r.createTracker(n),u=l.move("[");return u+=l.move(r.safe(r.associationId(e),{before:u,after:"]",...l.current()})),u+=l.move("]: "),a(),!e.url||/[\0- \u007F]/.test(e.url)?(a=r.enter("destinationLiteral"),u+=l.move("<"),u+=l.move(r.safe(e.url,{before:u,after:">",...l.current()})),u+=l.move(">")):(a=r.enter("destinationRaw"),u+=l.move(r.safe(e.url,{before:u,after:e.title?" ":`
60
- `,...l.current()}))),a(),e.title&&(a=r.enter(`title${o}`),u+=l.move(" "+i),u+=l.move(r.safe(e.title,{before:u,after:i,...l.current()})),u+=l.move(i),a()),s(),u}function US(e){let t=e.options.emphasis||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize emphasis with `"+t+"` for `options.emphasis`, expected `*`, or `_`");return t}function St(e){return"&#x"+e.toString(16).toUpperCase()+";"}function Tr(e){if(e===null||ce(e)||tr(e))return 1;if(Wn(e))return 2}function ro(e,t,r){let n=Tr(e),i=Tr(t);return n===void 0?i===void 0?r==="_"?{inside:!0,outside:!0}:{inside:!1,outside:!1}:i===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:n===1?i===void 0?{inside:!1,outside:!1}:i===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:i===void 0?{inside:!1,outside:!1}:i===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}kh.peek=u2;function kh(e,t,r,n){let i=US(r),o=r.enter("emphasis"),s=r.createTracker(n),a=s.move(i),l=s.move(r.containerPhrasing(e,{after:i,before:a,...s.current()})),u=l.charCodeAt(0),c=ro(n.before.charCodeAt(n.before.length-1),u,i);c.inside&&(l=St(u)+l.slice(1));let f=l.charCodeAt(l.length-1),p=ro(n.after.charCodeAt(0),f,i);p.inside&&(l=l.slice(0,-1)+St(f));let h=s.move(i);return o(),r.attentionEncodeSurroundingInfo={after:p.outside,before:c.outside},a+l+h}function u2(e,t,r){return r.options.emphasis||"*"}function Ps(e,t,r,n){let i,o,s;typeof t=="function"&&typeof r!="function"?(o=void 0,s=t,i=r):(o=t,s=r,i=n),Os(e,o,a,i);function a(l,u){let c=u[u.length-1],f=c?c.children.indexOf(l):void 0;return s(l,f,c)}}var c2={};function Gn(e,t){let r=t||c2,n=typeof r.includeImageAlt=="boolean"?r.includeImageAlt:!0,i=typeof r.includeHtml=="boolean"?r.includeHtml:!0;return zS(e,n,i)}function zS(e,t,r){if(f2(e)){if("value"in e)return e.type==="html"&&!r?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return jS(e.children,t,r)}return Array.isArray(e)?jS(e,t,r):""}function jS(e,t,r){let n=[],i=-1;for(;++i<e.length;)n[i]=zS(e[i],t,r);return n.join("")}function f2(e){return!!(e&&typeof e=="object")}function ou(e,t){let r=!1;return Ps(e,function(n){if("value"in n&&/\r?\n|\r/.test(n.value)||n.type==="break")return r=!0,Yn}),!!((!e.depth||e.depth<3)&&Gn(e)&&(t.options.setext||r))}function qS(e,t,r,n){let i=Math.max(Math.min(6,e.depth||1),1),o=r.createTracker(n);if(ou(e,r)){let c=r.enter("headingSetext"),f=r.enter("phrasing"),p=r.containerPhrasing(e,{...o.current(),before:`
59
+ `)),c+=a.move(l),u(),c}function c2(e,t,r){return(r?"":" ")+e}function to(e){let t=e.options.quote||'"';if(t!=='"'&&t!=="'")throw new Error("Cannot serialize title with `"+t+"` for `options.quote`, expected `\"`, or `'`");return t}function $S(e,t,r,n){let i=to(r),o=i==='"'?"Quote":"Apostrophe",s=r.enter("definition"),a=r.enter("label"),l=r.createTracker(n),u=l.move("[");return u+=l.move(r.safe(r.associationId(e),{before:u,after:"]",...l.current()})),u+=l.move("]: "),a(),!e.url||/[\0- \u007F]/.test(e.url)?(a=r.enter("destinationLiteral"),u+=l.move("<"),u+=l.move(r.safe(e.url,{before:u,after:">",...l.current()})),u+=l.move(">")):(a=r.enter("destinationRaw"),u+=l.move(r.safe(e.url,{before:u,after:e.title?" ":`
60
+ `,...l.current()}))),a(),e.title&&(a=r.enter(`title${o}`),u+=l.move(" "+i),u+=l.move(r.safe(e.title,{before:u,after:i,...l.current()})),u+=l.move(i),a()),s(),u}function US(e){let t=e.options.emphasis||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize emphasis with `"+t+"` for `options.emphasis`, expected `*`, or `_`");return t}function St(e){return"&#x"+e.toString(16).toUpperCase()+";"}function Tr(e){if(e===null||ce(e)||tr(e))return 1;if(Wn(e))return 2}function ro(e,t,r){let n=Tr(e),i=Tr(t);return n===void 0?i===void 0?r==="_"?{inside:!0,outside:!0}:{inside:!1,outside:!1}:i===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:n===1?i===void 0?{inside:!1,outside:!1}:i===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:i===void 0?{inside:!1,outside:!1}:i===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}kh.peek=f2;function kh(e,t,r,n){let i=US(r),o=r.enter("emphasis"),s=r.createTracker(n),a=s.move(i),l=s.move(r.containerPhrasing(e,{after:i,before:a,...s.current()})),u=l.charCodeAt(0),c=ro(n.before.charCodeAt(n.before.length-1),u,i);c.inside&&(l=St(u)+l.slice(1));let f=l.charCodeAt(l.length-1),p=ro(n.after.charCodeAt(0),f,i);p.inside&&(l=l.slice(0,-1)+St(f));let h=s.move(i);return o(),r.attentionEncodeSurroundingInfo={after:p.outside,before:c.outside},a+l+h}function f2(e,t,r){return r.options.emphasis||"*"}function Ms(e,t,r,n){let i,o,s;typeof t=="function"&&typeof r!="function"?(o=void 0,s=t,i=r):(o=t,s=r,i=n),Ds(e,o,a,i);function a(l,u){let c=u[u.length-1],f=c?c.children.indexOf(l):void 0;return s(l,f,c)}}var p2={};function Gn(e,t){let r=t||p2,n=typeof r.includeImageAlt=="boolean"?r.includeImageAlt:!0,i=typeof r.includeHtml=="boolean"?r.includeHtml:!0;return zS(e,n,i)}function zS(e,t,r){if(h2(e)){if("value"in e)return e.type==="html"&&!r?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return jS(e.children,t,r)}return Array.isArray(e)?jS(e,t,r):""}function jS(e,t,r){let n=[],i=-1;for(;++i<e.length;)n[i]=zS(e[i],t,r);return n.join("")}function h2(e){return!!(e&&typeof e=="object")}function ou(e,t){let r=!1;return Ms(e,function(n){if("value"in n&&/\r?\n|\r/.test(n.value)||n.type==="break")return r=!0,Yn}),!!((!e.depth||e.depth<3)&&Gn(e)&&(t.options.setext||r))}function qS(e,t,r,n){let i=Math.max(Math.min(6,e.depth||1),1),o=r.createTracker(n);if(ou(e,r)){let c=r.enter("headingSetext"),f=r.enter("phrasing"),p=r.containerPhrasing(e,{...o.current(),before:`
61
61
  `,after:`
62
62
  `});return f(),c(),p+`
63
63
  `+(i===1?"=":"-").repeat(p.length-(Math.max(p.lastIndexOf("\r"),p.lastIndexOf(`
64
64
  `))+1))}let s="#".repeat(i),a=r.enter("headingAtx"),l=r.enter("phrasing");o.move(s+" ");let u=r.containerPhrasing(e,{before:"# ",after:`
65
- `,...o.current()});return/^[\t ]/.test(u)&&(u=St(u.charCodeAt(0))+u.slice(1)),u=u?s+" "+u:s,r.options.closeAtx&&(u+=" "+s),l(),a(),u}Ah.peek=p2;function Ah(e){return e.value||""}function p2(){return"<"}Th.peek=h2;function Th(e,t,r,n){let i=to(r),o=i==='"'?"Quote":"Apostrophe",s=r.enter("image"),a=r.enter("label"),l=r.createTracker(n),u=l.move("![");return u+=l.move(r.safe(e.alt,{before:u,after:"]",...l.current()})),u+=l.move("]("),a(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(a=r.enter("destinationLiteral"),u+=l.move("<"),u+=l.move(r.safe(e.url,{before:u,after:">",...l.current()})),u+=l.move(">")):(a=r.enter("destinationRaw"),u+=l.move(r.safe(e.url,{before:u,after:e.title?" ":")",...l.current()}))),a(),e.title&&(a=r.enter(`title${o}`),u+=l.move(" "+i),u+=l.move(r.safe(e.title,{before:u,after:i,...l.current()})),u+=l.move(i),a()),u+=l.move(")"),s(),u}function h2(){return"!"}Ch.peek=m2;function Ch(e,t,r,n){let i=e.referenceType,o=r.enter("imageReference"),s=r.enter("label"),a=r.createTracker(n),l=a.move("!["),u=r.safe(e.alt,{before:l,after:"]",...a.current()});l+=a.move(u+"]["),s();let c=r.stack;r.stack=[],s=r.enter("reference");let f=r.safe(r.associationId(e),{before:l,after:"]",...a.current()});return s(),r.stack=c,o(),i==="full"||!u||u!==f?l+=a.move(f+"]"):i==="shortcut"?l=l.slice(0,-1):l+=a.move("]"),l}function m2(){return"!"}Eh.peek=d2;function Eh(e,t,r){let n=e.value||"",i="`",o=-1;for(;new RegExp("(^|[^`])"+i+"([^`]|$)").test(n);)i+="`";for(/[^ \r\n]/.test(n)&&(/^[ \r\n]/.test(n)&&/[ \r\n]$/.test(n)||/^`|`$/.test(n))&&(n=" "+n+" ");++o<r.unsafe.length;){let s=r.unsafe[o],a=r.compilePattern(s),l;if(s.atBreak)for(;l=a.exec(n);){let u=l.index;n.charCodeAt(u)===10&&n.charCodeAt(u-1)===13&&u--,n=n.slice(0,u)+" "+n.slice(l.index+1)}}return i+n+i}function d2(){return"`"}function _h(e,t){let r=Gn(e);return!!(!t.options.resourceLink&&e.url&&!e.title&&e.children&&e.children.length===1&&e.children[0].type==="text"&&(r===e.url||"mailto:"+r===e.url)&&/^[a-z][a-z+.-]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))}Ih.peek=g2;function Ih(e,t,r,n){let i=to(r),o=i==='"'?"Quote":"Apostrophe",s=r.createTracker(n),a,l;if(_h(e,r)){let c=r.stack;r.stack=[],a=r.enter("autolink");let f=s.move("<");return f+=s.move(r.containerPhrasing(e,{before:f,after:">",...s.current()})),f+=s.move(">"),a(),r.stack=c,f}a=r.enter("link"),l=r.enter("label");let u=s.move("[");return u+=s.move(r.containerPhrasing(e,{before:u,after:"](",...s.current()})),u+=s.move("]("),l(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(l=r.enter("destinationLiteral"),u+=s.move("<"),u+=s.move(r.safe(e.url,{before:u,after:">",...s.current()})),u+=s.move(">")):(l=r.enter("destinationRaw"),u+=s.move(r.safe(e.url,{before:u,after:e.title?" ":")",...s.current()}))),l(),e.title&&(l=r.enter(`title${o}`),u+=s.move(" "+i),u+=s.move(r.safe(e.title,{before:u,after:i,...s.current()})),u+=s.move(i),l()),u+=s.move(")"),a(),u}function g2(e,t,r){return _h(e,r)?"<":"["}Dh.peek=y2;function Dh(e,t,r,n){let i=e.referenceType,o=r.enter("linkReference"),s=r.enter("label"),a=r.createTracker(n),l=a.move("["),u=r.containerPhrasing(e,{before:l,after:"]",...a.current()});l+=a.move(u+"]["),s();let c=r.stack;r.stack=[],s=r.enter("reference");let f=r.safe(r.associationId(e),{before:l,after:"]",...a.current()});return s(),r.stack=c,o(),i==="full"||!u||u!==f?l+=a.move(f+"]"):i==="shortcut"?l=l.slice(0,-1):l+=a.move("]"),l}function y2(){return"["}function no(e){let t=e.options.bullet||"*";if(t!=="*"&&t!=="+"&&t!=="-")throw new Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}function HS(e){let t=no(e),r=e.options.bulletOther;if(!r)return t==="*"?"-":"*";if(r!=="*"&&r!=="+"&&r!=="-")throw new Error("Cannot serialize items with `"+r+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(r===t)throw new Error("Expected `bullet` (`"+t+"`) and `bulletOther` (`"+r+"`) to be different");return r}function VS(e){let t=e.options.bulletOrdered||".";if(t!=="."&&t!==")")throw new Error("Cannot serialize items with `"+t+"` for `options.bulletOrdered`, expected `.` or `)`");return t}function su(e){let t=e.options.rule||"*";if(t!=="*"&&t!=="-"&&t!=="_")throw new Error("Cannot serialize rules with `"+t+"` for `options.rule`, expected `*`, `-`, or `_`");return t}function WS(e,t,r,n){let i=r.enter("list"),o=r.bulletCurrent,s=e.ordered?VS(r):no(r),a=e.ordered?s==="."?")":".":HS(r),l=t&&r.bulletLastUsed?s===r.bulletLastUsed:!1;if(!e.ordered){let c=e.children?e.children[0]:void 0;if((s==="*"||s==="-")&&c&&(!c.children||!c.children[0])&&r.stack[r.stack.length-1]==="list"&&r.stack[r.stack.length-2]==="listItem"&&r.stack[r.stack.length-3]==="list"&&r.stack[r.stack.length-4]==="listItem"&&r.indexStack[r.indexStack.length-1]===0&&r.indexStack[r.indexStack.length-2]===0&&r.indexStack[r.indexStack.length-3]===0&&(l=!0),su(r)===s&&c){let f=-1;for(;++f<e.children.length;){let p=e.children[f];if(p&&p.type==="listItem"&&p.children&&p.children[0]&&p.children[0].type==="thematicBreak"){l=!0;break}}}}l&&(s=a),r.bulletCurrent=s;let u=r.containerFlow(e,n);return r.bulletLastUsed=s,r.bulletCurrent=o,i(),u}function YS(e){let t=e.options.listItemIndent||"one";if(t!=="tab"&&t!=="one"&&t!=="mixed")throw new Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}function GS(e,t,r,n){let i=YS(r),o=r.bulletCurrent||no(r);t&&t.type==="list"&&t.ordered&&(o=(typeof t.start=="number"&&t.start>-1?t.start:1)+(r.options.incrementListMarker===!1?0:t.children.indexOf(e))+o);let s=o.length+1;(i==="tab"||i==="mixed"&&(t&&t.type==="list"&&t.spread||e.spread))&&(s=Math.ceil(s/4)*4);let a=r.createTracker(n);a.move(o+" ".repeat(s-o.length)),a.shift(s);let l=r.enter("listItem"),u=r.indentLines(r.containerFlow(e,a.current()),c);return l(),u;function c(f,p,h){return p?(h?"":" ".repeat(s))+f:(h?o:o+" ".repeat(s-o.length))+f}}function JS(e,t,r,n){let i=r.enter("paragraph"),o=r.enter("phrasing"),s=r.containerPhrasing(e,n);return o(),i(),s}var Oh=Xr(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function QS(e,t,r,n){return(e.children.some(function(s){return Oh(s)})?r.containerPhrasing:r.containerFlow).call(r,e,n)}function ZS(e){let t=e.options.strong||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}Mh.peek=x2;function Mh(e,t,r,n){let i=ZS(r),o=r.enter("strong"),s=r.createTracker(n),a=s.move(i+i),l=s.move(r.containerPhrasing(e,{after:i,before:a,...s.current()})),u=l.charCodeAt(0),c=ro(n.before.charCodeAt(n.before.length-1),u,i);c.inside&&(l=St(u)+l.slice(1));let f=l.charCodeAt(l.length-1),p=ro(n.after.charCodeAt(0),f,i);p.inside&&(l=l.slice(0,-1)+St(f));let h=s.move(i+i);return o(),r.attentionEncodeSurroundingInfo={after:p.outside,before:c.outside},a+l+h}function x2(e,t,r){return r.options.strong||"*"}function XS(e,t,r,n){return r.safe(e.value,n)}function KS(e){let t=e.options.ruleRepetition||3;if(t<3)throw new Error("Cannot serialize rules with repetition `"+t+"` for `options.ruleRepetition`, expected `3` or more");return t}function e1(e,t,r){let n=(su(r)+(r.options.ruleSpaces?" ":"")).repeat(KS(r));return r.options.ruleSpaces?n.slice(0,-1):n}var Jn={blockquote:NS,break:Sh,code:BS,definition:$S,emphasis:kh,hardBreak:Sh,heading:qS,html:Ah,image:Th,imageReference:Ch,inlineCode:Eh,link:Ih,linkReference:Dh,list:WS,listItem:GS,paragraph:JS,root:QS,strong:Mh,text:XS,thematicBreak:e1};var t1=[b2];function b2(e,t,r,n){if(t.type==="code"&&Ms(t,n)&&(e.type==="list"||e.type===t.type&&Ms(e,n)))return!1;if("spread"in r&&typeof r.spread=="boolean")return e.type==="paragraph"&&(e.type===t.type||t.type==="definition"||t.type==="heading"&&ou(t,n))?void 0:r.spread?1:0}var Qn=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"],r1=[{character:" ",after:"[\\r\\n]",inConstruct:"phrasing"},{character:" ",before:"[\\r\\n]",inConstruct:"phrasing"},{character:" ",inConstruct:["codeFencedLangGraveAccent","codeFencedLangTilde"]},{character:"\r",inConstruct:["codeFencedLangGraveAccent","codeFencedLangTilde","codeFencedMetaGraveAccent","codeFencedMetaTilde","destinationLiteral","headingAtx"]},{character:`
65
+ `,...o.current()});return/^[\t ]/.test(u)&&(u=St(u.charCodeAt(0))+u.slice(1)),u=u?s+" "+u:s,r.options.closeAtx&&(u+=" "+s),l(),a(),u}Ah.peek=m2;function Ah(e){return e.value||""}function m2(){return"<"}Th.peek=d2;function Th(e,t,r,n){let i=to(r),o=i==='"'?"Quote":"Apostrophe",s=r.enter("image"),a=r.enter("label"),l=r.createTracker(n),u=l.move("![");return u+=l.move(r.safe(e.alt,{before:u,after:"]",...l.current()})),u+=l.move("]("),a(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(a=r.enter("destinationLiteral"),u+=l.move("<"),u+=l.move(r.safe(e.url,{before:u,after:">",...l.current()})),u+=l.move(">")):(a=r.enter("destinationRaw"),u+=l.move(r.safe(e.url,{before:u,after:e.title?" ":")",...l.current()}))),a(),e.title&&(a=r.enter(`title${o}`),u+=l.move(" "+i),u+=l.move(r.safe(e.title,{before:u,after:i,...l.current()})),u+=l.move(i),a()),u+=l.move(")"),s(),u}function d2(){return"!"}Ch.peek=g2;function Ch(e,t,r,n){let i=e.referenceType,o=r.enter("imageReference"),s=r.enter("label"),a=r.createTracker(n),l=a.move("!["),u=r.safe(e.alt,{before:l,after:"]",...a.current()});l+=a.move(u+"]["),s();let c=r.stack;r.stack=[],s=r.enter("reference");let f=r.safe(r.associationId(e),{before:l,after:"]",...a.current()});return s(),r.stack=c,o(),i==="full"||!u||u!==f?l+=a.move(f+"]"):i==="shortcut"?l=l.slice(0,-1):l+=a.move("]"),l}function g2(){return"!"}Eh.peek=y2;function Eh(e,t,r){let n=e.value||"",i="`",o=-1;for(;new RegExp("(^|[^`])"+i+"([^`]|$)").test(n);)i+="`";for(/[^ \r\n]/.test(n)&&(/^[ \r\n]/.test(n)&&/[ \r\n]$/.test(n)||/^`|`$/.test(n))&&(n=" "+n+" ");++o<r.unsafe.length;){let s=r.unsafe[o],a=r.compilePattern(s),l;if(s.atBreak)for(;l=a.exec(n);){let u=l.index;n.charCodeAt(u)===10&&n.charCodeAt(u-1)===13&&u--,n=n.slice(0,u)+" "+n.slice(l.index+1)}}return i+n+i}function y2(){return"`"}function _h(e,t){let r=Gn(e);return!!(!t.options.resourceLink&&e.url&&!e.title&&e.children&&e.children.length===1&&e.children[0].type==="text"&&(r===e.url||"mailto:"+r===e.url)&&/^[a-z][a-z+.-]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))}Ih.peek=x2;function Ih(e,t,r,n){let i=to(r),o=i==='"'?"Quote":"Apostrophe",s=r.createTracker(n),a,l;if(_h(e,r)){let c=r.stack;r.stack=[],a=r.enter("autolink");let f=s.move("<");return f+=s.move(r.containerPhrasing(e,{before:f,after:">",...s.current()})),f+=s.move(">"),a(),r.stack=c,f}a=r.enter("link"),l=r.enter("label");let u=s.move("[");return u+=s.move(r.containerPhrasing(e,{before:u,after:"](",...s.current()})),u+=s.move("]("),l(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(l=r.enter("destinationLiteral"),u+=s.move("<"),u+=s.move(r.safe(e.url,{before:u,after:">",...s.current()})),u+=s.move(">")):(l=r.enter("destinationRaw"),u+=s.move(r.safe(e.url,{before:u,after:e.title?" ":")",...s.current()}))),l(),e.title&&(l=r.enter(`title${o}`),u+=s.move(" "+i),u+=s.move(r.safe(e.title,{before:u,after:i,...s.current()})),u+=s.move(i),l()),u+=s.move(")"),a(),u}function x2(e,t,r){return _h(e,r)?"<":"["}Ph.peek=b2;function Ph(e,t,r,n){let i=e.referenceType,o=r.enter("linkReference"),s=r.enter("label"),a=r.createTracker(n),l=a.move("["),u=r.containerPhrasing(e,{before:l,after:"]",...a.current()});l+=a.move(u+"]["),s();let c=r.stack;r.stack=[],s=r.enter("reference");let f=r.safe(r.associationId(e),{before:l,after:"]",...a.current()});return s(),r.stack=c,o(),i==="full"||!u||u!==f?l+=a.move(f+"]"):i==="shortcut"?l=l.slice(0,-1):l+=a.move("]"),l}function b2(){return"["}function no(e){let t=e.options.bullet||"*";if(t!=="*"&&t!=="+"&&t!=="-")throw new Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}function HS(e){let t=no(e),r=e.options.bulletOther;if(!r)return t==="*"?"-":"*";if(r!=="*"&&r!=="+"&&r!=="-")throw new Error("Cannot serialize items with `"+r+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(r===t)throw new Error("Expected `bullet` (`"+t+"`) and `bulletOther` (`"+r+"`) to be different");return r}function VS(e){let t=e.options.bulletOrdered||".";if(t!=="."&&t!==")")throw new Error("Cannot serialize items with `"+t+"` for `options.bulletOrdered`, expected `.` or `)`");return t}function su(e){let t=e.options.rule||"*";if(t!=="*"&&t!=="-"&&t!=="_")throw new Error("Cannot serialize rules with `"+t+"` for `options.rule`, expected `*`, `-`, or `_`");return t}function WS(e,t,r,n){let i=r.enter("list"),o=r.bulletCurrent,s=e.ordered?VS(r):no(r),a=e.ordered?s==="."?")":".":HS(r),l=t&&r.bulletLastUsed?s===r.bulletLastUsed:!1;if(!e.ordered){let c=e.children?e.children[0]:void 0;if((s==="*"||s==="-")&&c&&(!c.children||!c.children[0])&&r.stack[r.stack.length-1]==="list"&&r.stack[r.stack.length-2]==="listItem"&&r.stack[r.stack.length-3]==="list"&&r.stack[r.stack.length-4]==="listItem"&&r.indexStack[r.indexStack.length-1]===0&&r.indexStack[r.indexStack.length-2]===0&&r.indexStack[r.indexStack.length-3]===0&&(l=!0),su(r)===s&&c){let f=-1;for(;++f<e.children.length;){let p=e.children[f];if(p&&p.type==="listItem"&&p.children&&p.children[0]&&p.children[0].type==="thematicBreak"){l=!0;break}}}}l&&(s=a),r.bulletCurrent=s;let u=r.containerFlow(e,n);return r.bulletLastUsed=s,r.bulletCurrent=o,i(),u}function YS(e){let t=e.options.listItemIndent||"one";if(t!=="tab"&&t!=="one"&&t!=="mixed")throw new Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}function GS(e,t,r,n){let i=YS(r),o=r.bulletCurrent||no(r);t&&t.type==="list"&&t.ordered&&(o=(typeof t.start=="number"&&t.start>-1?t.start:1)+(r.options.incrementListMarker===!1?0:t.children.indexOf(e))+o);let s=o.length+1;(i==="tab"||i==="mixed"&&(t&&t.type==="list"&&t.spread||e.spread))&&(s=Math.ceil(s/4)*4);let a=r.createTracker(n);a.move(o+" ".repeat(s-o.length)),a.shift(s);let l=r.enter("listItem"),u=r.indentLines(r.containerFlow(e,a.current()),c);return l(),u;function c(f,p,h){return p?(h?"":" ".repeat(s))+f:(h?o:o+" ".repeat(s-o.length))+f}}function JS(e,t,r,n){let i=r.enter("paragraph"),o=r.enter("phrasing"),s=r.containerPhrasing(e,n);return o(),i(),s}var Dh=Xr(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function QS(e,t,r,n){return(e.children.some(function(s){return Dh(s)})?r.containerPhrasing:r.containerFlow).call(r,e,n)}function ZS(e){let t=e.options.strong||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}Oh.peek=w2;function Oh(e,t,r,n){let i=ZS(r),o=r.enter("strong"),s=r.createTracker(n),a=s.move(i+i),l=s.move(r.containerPhrasing(e,{after:i,before:a,...s.current()})),u=l.charCodeAt(0),c=ro(n.before.charCodeAt(n.before.length-1),u,i);c.inside&&(l=St(u)+l.slice(1));let f=l.charCodeAt(l.length-1),p=ro(n.after.charCodeAt(0),f,i);p.inside&&(l=l.slice(0,-1)+St(f));let h=s.move(i+i);return o(),r.attentionEncodeSurroundingInfo={after:p.outside,before:c.outside},a+l+h}function w2(e,t,r){return r.options.strong||"*"}function XS(e,t,r,n){return r.safe(e.value,n)}function KS(e){let t=e.options.ruleRepetition||3;if(t<3)throw new Error("Cannot serialize rules with repetition `"+t+"` for `options.ruleRepetition`, expected `3` or more");return t}function e1(e,t,r){let n=(su(r)+(r.options.ruleSpaces?" ":"")).repeat(KS(r));return r.options.ruleSpaces?n.slice(0,-1):n}var Jn={blockquote:NS,break:Sh,code:BS,definition:$S,emphasis:kh,hardBreak:Sh,heading:qS,html:Ah,image:Th,imageReference:Ch,inlineCode:Eh,link:Ih,linkReference:Ph,list:WS,listItem:GS,paragraph:JS,root:QS,strong:Oh,text:XS,thematicBreak:e1};var t1=[v2];function v2(e,t,r,n){if(t.type==="code"&&Os(t,n)&&(e.type==="list"||e.type===t.type&&Os(e,n)))return!1;if("spread"in r&&typeof r.spread=="boolean")return e.type==="paragraph"&&(e.type===t.type||t.type==="definition"||t.type==="heading"&&ou(t,n))?void 0:r.spread?1:0}var Qn=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"],r1=[{character:" ",after:"[\\r\\n]",inConstruct:"phrasing"},{character:" ",before:"[\\r\\n]",inConstruct:"phrasing"},{character:" ",inConstruct:["codeFencedLangGraveAccent","codeFencedLangTilde"]},{character:"\r",inConstruct:["codeFencedLangGraveAccent","codeFencedLangTilde","codeFencedMetaGraveAccent","codeFencedMetaTilde","destinationLiteral","headingAtx"]},{character:`
66
66
  `,inConstruct:["codeFencedLangGraveAccent","codeFencedLangTilde","codeFencedMetaGraveAccent","codeFencedMetaTilde","destinationLiteral","headingAtx"]},{character:" ",after:"[\\r\\n]",inConstruct:"phrasing"},{character:" ",before:"[\\r\\n]",inConstruct:"phrasing"},{character:" ",inConstruct:["codeFencedLangGraveAccent","codeFencedLangTilde"]},{character:"!",after:"\\[",inConstruct:"phrasing",notInConstruct:Qn},{character:'"',inConstruct:"titleQuote"},{atBreak:!0,character:"#"},{character:"#",inConstruct:"headingAtx",after:`(?:[\r
67
67
  ]|$)`},{character:"&",after:"[#A-Za-z]",inConstruct:"phrasing"},{character:"'",inConstruct:"titleApostrophe"},{character:"(",inConstruct:"destinationRaw"},{before:"\\]",character:"(",inConstruct:"phrasing",notInConstruct:Qn},{atBreak:!0,before:"\\d+",character:")"},{character:")",inConstruct:"destinationRaw"},{atBreak:!0,character:"*",after:`(?:[ \r
68
68
  *])`},{character:"*",inConstruct:"phrasing",notInConstruct:Qn},{atBreak:!0,character:"+",after:`(?:[ \r
69
69
  ])`},{atBreak:!0,character:"-",after:`(?:[ \r
70
70
  -])`},{atBreak:!0,before:"\\d+",character:".",after:`(?:[ \r
71
- ]|$)`},{atBreak:!0,character:"<",after:"[!/?A-Za-z]"},{character:"<",after:"[!/?A-Za-z]",inConstruct:"phrasing",notInConstruct:Qn},{character:"<",inConstruct:"destinationLiteral"},{atBreak:!0,character:"="},{atBreak:!0,character:">"},{character:">",inConstruct:"destinationLiteral"},{atBreak:!0,character:"["},{character:"[",inConstruct:"phrasing",notInConstruct:Qn},{character:"[",inConstruct:["label","reference"]},{character:"\\",after:"[\\r\\n]",inConstruct:"phrasing"},{character:"]",inConstruct:["label","reference"]},{atBreak:!0,character:"_"},{character:"_",inConstruct:"phrasing",notInConstruct:Qn},{atBreak:!0,character:"`"},{character:"`",inConstruct:["codeFencedLangGraveAccent","codeFencedMetaGraveAccent"]},{character:"`",inConstruct:"phrasing",notInConstruct:Qn},{atBreak:!0,character:"~"}];var n1=document.createElement("i");function io(e){let t="&"+e+";";n1.innerHTML=t;let r=n1.textContent;return r.charCodeAt(r.length-1)===59&&e!=="semi"||r===t?!1:r}function au(e,t){let r=Number.parseInt(e,t);return r<9||r===11||r>13&&r<32||r>126&&r<160||r>55295&&r<57344||r>64975&&r<65008||(r&65535)===65535||(r&65535)===65534||r>1114111?"\uFFFD":String.fromCodePoint(r)}var w2=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function lu(e){return e.replace(w2,v2)}function v2(e,t,r){if(t)return t;if(r.charCodeAt(0)===35){let i=r.charCodeAt(1),o=i===120||i===88;return au(r.slice(o?2:1),o?16:10)}return io(r)||e}function i1(e){return e.label||!e.identifier?e.label||"":lu(e.identifier)}function o1(e){if(!e._compiled){let t=(e.atBreak?"[\\r\\n][\\t ]*":"")+(e.before?"(?:"+e.before+")":"");e._compiled=new RegExp((t?"("+t+")":"")+(/[|\\{}()[\]^$+*?.-]/.test(e.character)?"\\":"")+e.character+(e.after?"(?:"+e.after+")":""),"g")}return e._compiled}function s1(e,t,r){let n=t.indexStack,i=e.children||[],o=[],s=-1,a=r.before,l;n.push(-1);let u=t.createTracker(r);for(;++s<i.length;){let c=i[s],f;if(n[n.length-1]=s,s+1<i.length){let m=t.handle.handlers[i[s+1].type];m&&m.peek&&(m=m.peek),f=m?m(i[s+1],e,t,{before:"",after:"",...u.current()}).charAt(0):""}else f=r.after;o.length>0&&(a==="\r"||a===`
71
+ ]|$)`},{atBreak:!0,character:"<",after:"[!/?A-Za-z]"},{character:"<",after:"[!/?A-Za-z]",inConstruct:"phrasing",notInConstruct:Qn},{character:"<",inConstruct:"destinationLiteral"},{atBreak:!0,character:"="},{atBreak:!0,character:">"},{character:">",inConstruct:"destinationLiteral"},{atBreak:!0,character:"["},{character:"[",inConstruct:"phrasing",notInConstruct:Qn},{character:"[",inConstruct:["label","reference"]},{character:"\\",after:"[\\r\\n]",inConstruct:"phrasing"},{character:"]",inConstruct:["label","reference"]},{atBreak:!0,character:"_"},{character:"_",inConstruct:"phrasing",notInConstruct:Qn},{atBreak:!0,character:"`"},{character:"`",inConstruct:["codeFencedLangGraveAccent","codeFencedMetaGraveAccent"]},{character:"`",inConstruct:"phrasing",notInConstruct:Qn},{atBreak:!0,character:"~"}];var n1=document.createElement("i");function io(e){let t="&"+e+";";n1.innerHTML=t;let r=n1.textContent;return r.charCodeAt(r.length-1)===59&&e!=="semi"||r===t?!1:r}function au(e,t){let r=Number.parseInt(e,t);return r<9||r===11||r>13&&r<32||r>126&&r<160||r>55295&&r<57344||r>64975&&r<65008||(r&65535)===65535||(r&65535)===65534||r>1114111?"\uFFFD":String.fromCodePoint(r)}var S2=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function lu(e){return e.replace(S2,k2)}function k2(e,t,r){if(t)return t;if(r.charCodeAt(0)===35){let i=r.charCodeAt(1),o=i===120||i===88;return au(r.slice(o?2:1),o?16:10)}return io(r)||e}function i1(e){return e.label||!e.identifier?e.label||"":lu(e.identifier)}function o1(e){if(!e._compiled){let t=(e.atBreak?"[\\r\\n][\\t ]*":"")+(e.before?"(?:"+e.before+")":"");e._compiled=new RegExp((t?"("+t+")":"")+(/[|\\{}()[\]^$+*?.-]/.test(e.character)?"\\":"")+e.character+(e.after?"(?:"+e.after+")":""),"g")}return e._compiled}function s1(e,t,r){let n=t.indexStack,i=e.children||[],o=[],s=-1,a=r.before,l;n.push(-1);let u=t.createTracker(r);for(;++s<i.length;){let c=i[s],f;if(n[n.length-1]=s,s+1<i.length){let m=t.handle.handlers[i[s+1].type];m&&m.peek&&(m=m.peek),f=m?m(i[s+1],e,t,{before:"",after:"",...u.current()}).charAt(0):""}else f=r.after;o.length>0&&(a==="\r"||a===`
72
72
  `)&&c.type==="html"&&(o[o.length-1]=o[o.length-1].replace(/(\r?\n|\r)$/," "),a=" ",u=t.createTracker(r),u.move(o.join("")));let p=t.handle(c,e,t,{...u.current(),after:f,before:a});l&&l===p.slice(0,1)&&(p=St(l.charCodeAt(0))+p.slice(1));let h=t.attentionEncodeSurroundingInfo;t.attentionEncodeSurroundingInfo=void 0,l=void 0,h&&(o.length>0&&h.before&&a===o[o.length-1].slice(-1)&&(o[o.length-1]=o[o.length-1].slice(0,-1)+St(a.charCodeAt(0))),h.after&&(l=f)),u.move(p),o.push(p),a=p.slice(-1)}return n.pop(),o.join("")}function a1(e,t,r){let n=t.indexStack,i=e.children||[],o=t.createTracker(r),s=[],a=-1;for(n.push(-1);++a<i.length;){let l=i[a];n[n.length-1]=a,s.push(o.move(t.handle(l,e,t,{before:`
73
73
  `,after:`
74
- `,...o.current()}))),l.type!=="list"&&(t.bulletLastUsed=void 0),a<i.length-1&&s.push(o.move(S2(l,i[a+1],e,t)))}return n.pop(),s.join("")}function S2(e,t,r,n){let i=n.join.length;for(;i--;){let o=n.join[i](e,t,r,n);if(o===!0||o===1)break;if(typeof o=="number")return`
74
+ `,...o.current()}))),l.type!=="list"&&(t.bulletLastUsed=void 0),a<i.length-1&&s.push(o.move(A2(l,i[a+1],e,t)))}return n.pop(),s.join("")}function A2(e,t,r,n){let i=n.join.length;for(;i--;){let o=n.join[i](e,t,r,n);if(o===!0||o===1)break;if(typeof o=="number")return`
75
75
  `.repeat(1+o);if(o===!1)return`
76
76
 
77
77
  <!---->
78
78
 
79
79
  `}return`
80
80
 
81
- `}var k2=/\r?\n|\r/g;function l1(e,t){let r=[],n=0,i=0,o;for(;o=k2.exec(e);)s(e.slice(n,o.index)),r.push(o[0]),n=o.index+o[0].length,i++;return s(e.slice(n)),r.join("");function s(a){r.push(t(a,i,!a))}}function c1(e,t,r){let n=(r.before||"")+(t||"")+(r.after||""),i=[],o=[],s={},a=-1;for(;++a<e.unsafe.length;){let c=e.unsafe[a];if(!iu(e.stack,c))continue;let f=e.compilePattern(c),p;for(;p=f.exec(n);){let h="before"in c||!!c.atBreak,m="after"in c,x=p.index+(h?p[1].length:0);i.includes(x)?(s[x].before&&!h&&(s[x].before=!1),s[x].after&&!m&&(s[x].after=!1)):(i.push(x),s[x]={before:h,after:m})}}i.sort(A2);let l=r.before?r.before.length:0,u=n.length-(r.after?r.after.length:0);for(a=-1;++a<i.length;){let c=i[a];c<l||c>=u||c+1<u&&i[a+1]===c+1&&s[c].after&&!s[c+1].before&&!s[c+1].after||i[a-1]===c-1&&s[c].before&&!s[c-1].before&&!s[c-1].after||(l!==c&&o.push(u1(n.slice(l,c),"\\")),l=c,/[!-/:-@[-`{-~]/.test(n.charAt(c))&&(!r.encode||!r.encode.includes(n.charAt(c)))?o.push("\\"):(o.push(St(n.charCodeAt(c))),l++))}return o.push(u1(n.slice(l,u),r.after)),o.join("")}function A2(e,t){return e-t}function u1(e,t){let r=/\\(?=[!-/:-@[-`{-~])/g,n=[],i=[],o=e+t,s=-1,a=0,l;for(;l=r.exec(o);)n.push(l.index);for(;++s<n.length;)a!==n[s]&&i.push(e.slice(a,n[s])),i.push("\\"),a=n[s];return i.push(e.slice(a)),i.join("")}function f1(e){let t=e||{},r=t.now||{},n=t.lineShift||0,i=r.line||1,o=r.column||1;return{move:l,current:s,shift:a};function s(){return{now:{line:i,column:o},lineShift:n}}function a(u){n+=u}function l(u){let c=u||"",f=c.split(/\r?\n|\r/g),p=f[f.length-1];return i+=f.length-1,o=f.length===1?o+p.length:1+p.length+n,c}}function Ph(e,t){let r=t||{},n={associationId:i1,containerPhrasing:_2,containerFlow:I2,createTracker:f1,compilePattern:o1,enter:o,handlers:{...Jn},handle:void 0,indentLines:l1,indexStack:[],join:[...t1],options:{},safe:D2,stack:[],unsafe:[...r1]};vh(n,r),n.options.tightDefinitions&&n.join.push(E2),n.handle=nu("type",{invalid:T2,unknown:C2,handlers:n.handlers});let i=n.handle(e,void 0,n,{before:`
81
+ `}var T2=/\r?\n|\r/g;function l1(e,t){let r=[],n=0,i=0,o;for(;o=T2.exec(e);)s(e.slice(n,o.index)),r.push(o[0]),n=o.index+o[0].length,i++;return s(e.slice(n)),r.join("");function s(a){r.push(t(a,i,!a))}}function c1(e,t,r){let n=(r.before||"")+(t||"")+(r.after||""),i=[],o=[],s={},a=-1;for(;++a<e.unsafe.length;){let c=e.unsafe[a];if(!iu(e.stack,c))continue;let f=e.compilePattern(c),p;for(;p=f.exec(n);){let h="before"in c||!!c.atBreak,m="after"in c,x=p.index+(h?p[1].length:0);i.includes(x)?(s[x].before&&!h&&(s[x].before=!1),s[x].after&&!m&&(s[x].after=!1)):(i.push(x),s[x]={before:h,after:m})}}i.sort(C2);let l=r.before?r.before.length:0,u=n.length-(r.after?r.after.length:0);for(a=-1;++a<i.length;){let c=i[a];c<l||c>=u||c+1<u&&i[a+1]===c+1&&s[c].after&&!s[c+1].before&&!s[c+1].after||i[a-1]===c-1&&s[c].before&&!s[c-1].before&&!s[c-1].after||(l!==c&&o.push(u1(n.slice(l,c),"\\")),l=c,/[!-/:-@[-`{-~]/.test(n.charAt(c))&&(!r.encode||!r.encode.includes(n.charAt(c)))?o.push("\\"):(o.push(St(n.charCodeAt(c))),l++))}return o.push(u1(n.slice(l,u),r.after)),o.join("")}function C2(e,t){return e-t}function u1(e,t){let r=/\\(?=[!-/:-@[-`{-~])/g,n=[],i=[],o=e+t,s=-1,a=0,l;for(;l=r.exec(o);)n.push(l.index);for(;++s<n.length;)a!==n[s]&&i.push(e.slice(a,n[s])),i.push("\\"),a=n[s];return i.push(e.slice(a)),i.join("")}function f1(e){let t=e||{},r=t.now||{},n=t.lineShift||0,i=r.line||1,o=r.column||1;return{move:l,current:s,shift:a};function s(){return{now:{line:i,column:o},lineShift:n}}function a(u){n+=u}function l(u){let c=u||"",f=c.split(/\r?\n|\r/g),p=f[f.length-1];return i+=f.length-1,o=f.length===1?o+p.length:1+p.length+n,c}}function Mh(e,t){let r=t||{},n={associationId:i1,containerPhrasing:P2,containerFlow:D2,createTracker:f1,compilePattern:o1,enter:o,handlers:{...Jn},handle:void 0,indentLines:l1,indexStack:[],join:[...t1],options:{},safe:O2,stack:[],unsafe:[...r1]};vh(n,r),n.options.tightDefinitions&&n.join.push(I2),n.handle=nu("type",{invalid:E2,unknown:_2,handlers:n.handlers});let i=n.handle(e,void 0,n,{before:`
82
82
  `,after:`
83
83
  `,now:{line:1,column:1},lineShift:0});return i&&i.charCodeAt(i.length-1)!==10&&i.charCodeAt(i.length-1)!==13&&(i+=`
84
- `),i;function o(s){return n.stack.push(s),a;function a(){n.stack.pop()}}}function T2(e){throw new Error("Cannot handle value `"+e+"`, expected node")}function C2(e){let t=e;throw new Error("Cannot handle unknown node `"+t.type+"`")}function E2(e,t){if(e.type==="definition"&&e.type===t.type)return 0}function _2(e,t){return s1(e,this,t)}function I2(e,t){return a1(e,this,t)}function D2(e,t){return c1(this,e,t)}function Fh(){return{enter:{table:O2,tableData:p1,tableHeader:p1,tableRow:P2},exit:{codeText:N2,table:M2,tableData:Nh,tableHeader:Nh,tableRow:Nh}}}function O2(e){let t=e._align;this.enter({type:"table",align:t.map(function(r){return r==="none"?null:r}),children:[]},e),this.data.inTable=!0}function M2(e){this.exit(e),this.data.inTable=void 0}function P2(e){this.enter({type:"tableRow",children:[]},e)}function Nh(e){this.exit(e)}function p1(e){this.enter({type:"tableCell",children:[]},e)}function N2(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,F2));let r=this.stack[this.stack.length-1];r.type,r.value=t,this.exit(e)}function F2(e,t){return t==="|"?t:e}function Rh(e){let t=e||{},r=t.tableCellPadding,n=t.tablePipeAlign,i=t.stringLength,o=r?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
84
+ `),i;function o(s){return n.stack.push(s),a;function a(){n.stack.pop()}}}function E2(e){throw new Error("Cannot handle value `"+e+"`, expected node")}function _2(e){let t=e;throw new Error("Cannot handle unknown node `"+t.type+"`")}function I2(e,t){if(e.type==="definition"&&e.type===t.type)return 0}function P2(e,t){return s1(e,this,t)}function D2(e,t){return a1(e,this,t)}function O2(e,t){return c1(this,e,t)}function Fh(){return{enter:{table:M2,tableData:p1,tableHeader:p1,tableRow:F2},exit:{codeText:R2,table:N2,tableData:Nh,tableHeader:Nh,tableRow:Nh}}}function M2(e){let t=e._align;this.enter({type:"table",align:t.map(function(r){return r==="none"?null:r}),children:[]},e),this.data.inTable=!0}function N2(e){this.exit(e),this.data.inTable=void 0}function F2(e){this.enter({type:"tableRow",children:[]},e)}function Nh(e){this.exit(e)}function p1(e){this.enter({type:"tableCell",children:[]},e)}function R2(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,L2));let r=this.stack[this.stack.length-1];r.type,r.value=t,this.exit(e)}function L2(e,t){return t==="|"?t:e}function Rh(e){let t=e||{},r=t.tableCellPadding,n=t.tablePipeAlign,i=t.stringLength,o=r?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
85
85
  `,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:p,table:s,tableCell:l,tableRow:a}};function s(h,m,x,v){return u(c(h,x,v),h.align)}function a(h,m,x,v){let w=f(h,x,v),E=u([w]);return E.slice(0,E.indexOf(`
86
- `))}function l(h,m,x,v){let w=x.enter("tableCell"),E=x.enter("phrasing"),b=x.containerPhrasing(h,{...v,before:o,after:o});return E(),w(),b}function u(h,m){return OS(h,{align:m,alignDelimiters:n,padding:r,stringLength:i})}function c(h,m,x){let v=h.children,w=-1,E=[],b=m.enter("table");for(;++w<v.length;)E[w]=f(v[w],m,x);return b(),E}function f(h,m,x){let v=h.children,w=-1,E=[],b=m.enter("tableRow");for(;++w<v.length;)E[w]=l(v[w],h,m,x);return b(),E}function p(h,m,x){let v=Jn.inlineCode(h,m,x);return x.stack.includes("tableCell")&&(v=v.replace(/\|/g,"\\$&")),v}}function Lh(){return{exit:{taskListCheckValueChecked:h1,taskListCheckValueUnchecked:h1,paragraph:R2}}}function Bh(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:L2}}}function h1(e){let t=this.stack[this.stack.length-2];t.type,t.checked=e.type==="taskListCheckValueChecked"}function R2(e){let t=this.stack[this.stack.length-2];if(t&&t.type==="listItem"&&typeof t.checked=="boolean"){let r=this.stack[this.stack.length-1];r.type;let n=r.children[0];if(n&&n.type==="text"){let i=t.children,o=-1,s;for(;++o<i.length;){let a=i[o];if(a.type==="paragraph"){s=a;break}}s===r&&(n.value=n.value.slice(1),n.value.length===0?r.children.shift():r.position&&n.position&&typeof n.position.start.offset=="number"&&(n.position.start.column++,n.position.start.offset++,r.position.start=Object.assign({},n.position.start)))}}this.exit(e)}function L2(e,t,r,n){let i=e.children[0],o=typeof e.checked=="boolean"&&i&&i.type==="paragraph",s="["+(e.checked?"x":" ")+"] ",a=r.createTracker(n);o&&a.move(s);let l=Jn.listItem(e,t,r,{...n,...a.current()});return o&&(l=l.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,u)),l;function u(c){return c+s}}function $h(){return[dh(),yh(),bh(),Fh(),Lh()]}function Uh(e){return{extensions:[gh(),xh(),wh(),Rh(e),Bh()]}}function Re(e,t,r,n){let i=e.length,o=0,s;if(t<0?t=-t>i?0:i+t:t=t>i?i:t,r=r>0?r:0,n.length<1e4)s=Array.from(n),s.unshift(t,r),e.splice(...s);else for(r&&e.splice(t,r);o<n.length;)s=n.slice(o,o+1e4),s.unshift(t,0),e.splice(...s),o+=1e4,t+=1e4}function pt(e,t){return e.length>0?(Re(e,e.length,0,t),e):t}var m1={}.hasOwnProperty;function uu(e){let t={},r=-1;for(;++r<e.length;)B2(t,e[r]);return t}function B2(e,t){let r;for(r in t){let i=(m1.call(e,r)?e[r]:void 0)||(e[r]={}),o=t[r],s;if(o)for(s in o){m1.call(i,s)||(i[s]=[]);let a=o[s];$2(i[s],Array.isArray(a)?a:a?[a]:[])}}}function $2(e,t){let r=-1,n=[];for(;++r<t.length;)(t[r].add==="after"?e:n).push(t[r]);Re(e,0,0,n)}var U2={tokenize:V2,partial:!0},d1={tokenize:W2,partial:!0},g1={tokenize:Y2,partial:!0},y1={tokenize:G2,partial:!0},j2={tokenize:J2,partial:!0},x1={name:"wwwAutolink",tokenize:q2,previous:w1},b1={name:"protocolAutolink",tokenize:H2,previous:v1},Cr={name:"emailAutolink",tokenize:z2,previous:S1},rr={};function zh(){return{text:rr}}var Zn=48;for(;Zn<123;)rr[Zn]=Cr,Zn++,Zn===58?Zn=65:Zn===91&&(Zn=97);rr[43]=Cr;rr[45]=Cr;rr[46]=Cr;rr[95]=Cr;rr[72]=[Cr,b1];rr[104]=[Cr,b1];rr[87]=[Cr,x1];rr[119]=[Cr,x1];function z2(e,t,r){let n=this,i,o;return s;function s(f){return!jh(f)||!S1.call(n,n.previous)||qh(n.events)?r(f):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),a(f))}function a(f){return jh(f)?(e.consume(f),a):f===64?(e.consume(f),l):r(f)}function l(f){return f===46?e.check(j2,c,u)(f):f===45||f===95||Me(f)?(o=!0,e.consume(f),l):c(f)}function u(f){return e.consume(f),i=!0,l}function c(f){return o&&i&&Je(n.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(f)):r(f)}}function q2(e,t,r){let n=this;return i;function i(s){return s!==87&&s!==119||!w1.call(n,n.previous)||qh(n.events)?r(s):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(U2,e.attempt(d1,e.attempt(g1,o),r),r)(s))}function o(s){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(s)}}function H2(e,t,r){let n=this,i="",o=!1;return s;function s(f){return(f===72||f===104)&&v1.call(n,n.previous)&&!qh(n.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),i+=String.fromCodePoint(f),e.consume(f),a):r(f)}function a(f){if(Je(f)&&i.length<5)return i+=String.fromCodePoint(f),e.consume(f),a;if(f===58){let p=i.toLowerCase();if(p==="http"||p==="https")return e.consume(f),l}return r(f)}function l(f){return f===47?(e.consume(f),o?u:(o=!0,l)):r(f)}function u(f){return f===null||Vn(f)||ce(f)||tr(f)||Wn(f)?r(f):e.attempt(d1,e.attempt(g1,c),r)(f)}function c(f){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(f)}}function V2(e,t,r){let n=0;return i;function i(s){return(s===87||s===119)&&n<3?(n++,e.consume(s),i):s===46&&n===3?(e.consume(s),o):r(s)}function o(s){return s===null?r(s):t(s)}}function W2(e,t,r){let n,i,o;return s;function s(u){return u===46||u===95?e.check(y1,l,a)(u):u===null||ce(u)||tr(u)||u!==45&&Wn(u)?l(u):(o=!0,e.consume(u),s)}function a(u){return u===95?n=!0:(i=n,n=void 0),e.consume(u),s}function l(u){return i||n||!o?r(u):t(u)}}function Y2(e,t){let r=0,n=0;return i;function i(s){return s===40?(r++,e.consume(s),i):s===41&&n<r?o(s):s===33||s===34||s===38||s===39||s===41||s===42||s===44||s===46||s===58||s===59||s===60||s===63||s===93||s===95||s===126?e.check(y1,t,o)(s):s===null||ce(s)||tr(s)?t(s):(e.consume(s),i)}function o(s){return s===41&&n++,e.consume(s),i}}function G2(e,t,r){return n;function n(a){return a===33||a===34||a===39||a===41||a===42||a===44||a===46||a===58||a===59||a===63||a===95||a===126?(e.consume(a),n):a===38?(e.consume(a),o):a===93?(e.consume(a),i):a===60||a===null||ce(a)||tr(a)?t(a):r(a)}function i(a){return a===null||a===40||a===91||ce(a)||tr(a)?t(a):n(a)}function o(a){return Je(a)?s(a):r(a)}function s(a){return a===59?(e.consume(a),n):Je(a)?(e.consume(a),s):r(a)}}function J2(e,t,r){return n;function n(o){return e.consume(o),i}function i(o){return Me(o)?r(o):t(o)}}function w1(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||ce(e)}function v1(e){return!Je(e)}function S1(e){return!(e===47||jh(e))}function jh(e){return e===43||e===45||e===46||e===95||Me(e)}function qh(e){let t=e.length,r=!1;for(;t--;){let n=e[t][1];if((n.type==="labelLink"||n.type==="labelImage")&&!n._balanced){r=!0;break}if(n._gfmAutolinkLiteralWalkedInto){r=!1;break}}return e.length>0&&!r&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),r}function Ot(e){let t=[],r=-1,n=0,i=0;for(;++r<e.length;){let o=e.charCodeAt(r),s="";if(o===37&&Me(e.charCodeAt(r+1))&&Me(e.charCodeAt(r+2)))i=2;else if(o<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(o))||(s=String.fromCharCode(o));else if(o>55295&&o<57344){let a=e.charCodeAt(r+1);o<56320&&a>56319&&a<57344?(s=String.fromCharCode(o,a),i=1):s="\uFFFD"}else s=String.fromCharCode(o);s&&(t.push(e.slice(n,r),encodeURIComponent(s)),n=r+i+1,s=""),i&&(r+=i,i=0)}return t.join("")+e.slice(n)}function Kr(e,t,r){let n=[],i=-1;for(;++i<e.length;){let o=e[i].resolveAll;o&&!n.includes(o)&&(t=o(t,r),n.push(o))}return t}var Ns={name:"attention",resolveAll:Q2,tokenize:Z2};function Q2(e,t){let r=-1,n,i,o,s,a,l,u,c;for(;++r<e.length;)if(e[r][0]==="enter"&&e[r][1].type==="attentionSequence"&&e[r][1]._close){for(n=r;n--;)if(e[n][0]==="exit"&&e[n][1].type==="attentionSequence"&&e[n][1]._open&&t.sliceSerialize(e[n][1]).charCodeAt(0)===t.sliceSerialize(e[r][1]).charCodeAt(0)){if((e[n][1]._close||e[r][1]._open)&&(e[r][1].end.offset-e[r][1].start.offset)%3&&!((e[n][1].end.offset-e[n][1].start.offset+e[r][1].end.offset-e[r][1].start.offset)%3))continue;l=e[n][1].end.offset-e[n][1].start.offset>1&&e[r][1].end.offset-e[r][1].start.offset>1?2:1;let f={...e[n][1].end},p={...e[r][1].start};k1(f,-l),k1(p,l),s={type:l>1?"strongSequence":"emphasisSequence",start:f,end:{...e[n][1].end}},a={type:l>1?"strongSequence":"emphasisSequence",start:{...e[r][1].start},end:p},o={type:l>1?"strongText":"emphasisText",start:{...e[n][1].end},end:{...e[r][1].start}},i={type:l>1?"strong":"emphasis",start:{...s.start},end:{...a.end}},e[n][1].end={...s.start},e[r][1].start={...a.end},u=[],e[n][1].end.offset-e[n][1].start.offset&&(u=pt(u,[["enter",e[n][1],t],["exit",e[n][1],t]])),u=pt(u,[["enter",i,t],["enter",s,t],["exit",s,t],["enter",o,t]]),u=pt(u,Kr(t.parser.constructs.insideSpan.null,e.slice(n+1,r),t)),u=pt(u,[["exit",o,t],["enter",a,t],["exit",a,t],["exit",i,t]]),e[r][1].end.offset-e[r][1].start.offset?(c=2,u=pt(u,[["enter",e[r][1],t],["exit",e[r][1],t]])):c=0,Re(e,n-1,r-n+3,u),r=n+u.length-c-2;break}}for(r=-1;++r<e.length;)e[r][1].type==="attentionSequence"&&(e[r][1].type="data");return e}function Z2(e,t){let r=this.parser.constructs.attentionMarkers.null,n=this.previous,i=Tr(n),o;return s;function s(l){return o=l,e.enter("attentionSequence"),a(l)}function a(l){if(l===o)return e.consume(l),a;let u=e.exit("attentionSequence"),c=Tr(l),f=!c||c===2&&i||r.includes(l),p=!i||i===2&&c||r.includes(n);return u._open=!!(o===42?f:f&&(i||!p)),u._close=!!(o===42?p:p&&(c||!f)),t(l)}}function k1(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}var Hh={name:"autolink",tokenize:X2};function X2(e,t,r){let n=0;return i;function i(h){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(h),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),o}function o(h){return Je(h)?(e.consume(h),s):h===64?r(h):u(h)}function s(h){return h===43||h===45||h===46||Me(h)?(n=1,a(h)):u(h)}function a(h){return h===58?(e.consume(h),n=0,l):(h===43||h===45||h===46||Me(h))&&n++<32?(e.consume(h),a):(n=0,u(h))}function l(h){return h===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(h),e.exit("autolinkMarker"),e.exit("autolink"),t):h===null||h===32||h===60||Vn(h)?r(h):(e.consume(h),l)}function u(h){return h===64?(e.consume(h),c):kS(h)?(e.consume(h),u):r(h)}function c(h){return Me(h)?f(h):r(h)}function f(h){return h===46?(e.consume(h),n=0,c):h===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(h),e.exit("autolinkMarker"),e.exit("autolink"),t):p(h)}function p(h){if((h===45||Me(h))&&n++<63){let m=h===45?p:f;return e.consume(h),m}return r(h)}}function Z(e,t,r,n){let i=n?n-1:Number.POSITIVE_INFINITY,o=0;return s;function s(l){return J(l)?(e.enter(r),a(l)):t(l)}function a(l){return J(l)&&o++<i?(e.consume(l),a):(e.exit(r),t(l))}}var nr={partial:!0,tokenize:K2};function K2(e,t,r){return n;function n(o){return J(o)?Z(e,i,"linePrefix")(o):i(o)}function i(o){return o===null||H(o)?t(o):r(o)}}var cu={continuation:{tokenize:tL},exit:rL,name:"blockQuote",tokenize:eL};function eL(e,t,r){let n=this;return i;function i(s){if(s===62){let a=n.containerState;return a.open||(e.enter("blockQuote",{_container:!0}),a.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(s),e.exit("blockQuoteMarker"),o}return r(s)}function o(s){return J(s)?(e.enter("blockQuotePrefixWhitespace"),e.consume(s),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(s))}}function tL(e,t,r){let n=this;return i;function i(s){return J(s)?Z(e,o,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(s):o(s)}function o(s){return e.attempt(cu,t,r)(s)}}function rL(e){e.exit("blockQuote")}var fu={name:"characterEscape",tokenize:nL};function nL(e,t,r){return n;function n(o){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(o),e.exit("escapeMarker"),i}function i(o){return TS(o)?(e.enter("characterEscapeValue"),e.consume(o),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):r(o)}}var pu={name:"characterReference",tokenize:iL};function iL(e,t,r){let n=this,i=0,o,s;return a;function a(f){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(f),e.exit("characterReferenceMarker"),l}function l(f){return f===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(f),e.exit("characterReferenceMarkerNumeric"),u):(e.enter("characterReferenceValue"),o=31,s=Me,c(f))}function u(f){return f===88||f===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(f),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),o=6,s=AS,c):(e.enter("characterReferenceValue"),o=7,s=Ds,c(f))}function c(f){if(f===59&&i){let p=e.exit("characterReferenceValue");return s===Me&&!io(n.sliceSerialize(p))?r(f):(e.enter("characterReferenceMarker"),e.consume(f),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return s(f)&&i++<o?(e.consume(f),c):r(f)}}var A1={partial:!0,tokenize:sL},hu={concrete:!0,name:"codeFenced",tokenize:oL};function oL(e,t,r){let n=this,i={partial:!0,tokenize:q},o=0,s=0,a;return l;function l(A){return u(A)}function u(A){let R=n.events[n.events.length-1];return o=R&&R[1].type==="linePrefix"?R[2].sliceSerialize(R[1],!0).length:0,a=A,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),c(A)}function c(A){return A===a?(s++,e.consume(A),c):s<3?r(A):(e.exit("codeFencedFenceSequence"),J(A)?Z(e,f,"whitespace")(A):f(A))}function f(A){return A===null||H(A)?(e.exit("codeFencedFence"),n.interrupt?t(A):e.check(A1,x,z)(A)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),p(A))}function p(A){return A===null||H(A)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),f(A)):J(A)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),Z(e,h,"whitespace")(A)):A===96&&A===a?r(A):(e.consume(A),p)}function h(A){return A===null||H(A)?f(A):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),m(A))}function m(A){return A===null||H(A)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),f(A)):A===96&&A===a?r(A):(e.consume(A),m)}function x(A){return e.attempt(i,z,v)(A)}function v(A){return e.enter("lineEnding"),e.consume(A),e.exit("lineEnding"),w}function w(A){return o>0&&J(A)?Z(e,E,"linePrefix",o+1)(A):E(A)}function E(A){return A===null||H(A)?e.check(A1,x,z)(A):(e.enter("codeFlowValue"),b(A))}function b(A){return A===null||H(A)?(e.exit("codeFlowValue"),E(A)):(e.consume(A),b)}function z(A){return e.exit("codeFenced"),t(A)}function q(A,R,V){let $=0;return T;function T(M){return A.enter("lineEnding"),A.consume(M),A.exit("lineEnding"),fe}function fe(M){return A.enter("codeFencedFence"),J(M)?Z(A,B,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(M):B(M)}function B(M){return M===a?(A.enter("codeFencedFenceSequence"),_(M)):V(M)}function _(M){return M===a?($++,A.consume(M),_):$>=s?(A.exit("codeFencedFenceSequence"),J(M)?Z(A,I,"whitespace")(M):I(M)):V(M)}function I(M){return M===null||H(M)?(A.exit("codeFencedFence"),R(M)):V(M)}}}function sL(e,t,r){let n=this;return i;function i(s){return s===null?r(s):(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),o)}function o(s){return n.parser.lazy[n.now().line]?r(s):t(s)}}var Fs={name:"codeIndented",tokenize:lL},aL={partial:!0,tokenize:uL};function lL(e,t,r){let n=this;return i;function i(u){return e.enter("codeIndented"),Z(e,o,"linePrefix",5)(u)}function o(u){let c=n.events[n.events.length-1];return c&&c[1].type==="linePrefix"&&c[2].sliceSerialize(c[1],!0).length>=4?s(u):r(u)}function s(u){return u===null?l(u):H(u)?e.attempt(aL,s,l)(u):(e.enter("codeFlowValue"),a(u))}function a(u){return u===null||H(u)?(e.exit("codeFlowValue"),s(u)):(e.consume(u),a)}function l(u){return e.exit("codeIndented"),t(u)}}function uL(e,t,r){let n=this;return i;function i(s){return n.parser.lazy[n.now().line]?r(s):H(s)?(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),i):Z(e,o,"linePrefix",5)(s)}function o(s){let a=n.events[n.events.length-1];return a&&a[1].type==="linePrefix"&&a[2].sliceSerialize(a[1],!0).length>=4?t(s):H(s)?i(s):r(s)}}var Vh={name:"codeText",previous:fL,resolve:cL,tokenize:pL};function cL(e){let t=e.length-4,r=3,n,i;if((e[r][1].type==="lineEnding"||e[r][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(n=r;++n<t;)if(e[n][1].type==="codeTextData"){e[r][1].type="codeTextPadding",e[t][1].type="codeTextPadding",r+=2,t-=2;break}}for(n=r-1,t++;++n<=t;)i===void 0?n!==t&&e[n][1].type!=="lineEnding"&&(i=n):(n===t||e[n][1].type==="lineEnding")&&(e[i][1].type="codeTextData",n!==i+2&&(e[i][1].end=e[n-1][1].end,e.splice(i+2,n-i-2),t-=n-i-2,n=i+2),i=void 0);return e}function fL(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function pL(e,t,r){let n=this,i=0,o,s;return a;function a(p){return e.enter("codeText"),e.enter("codeTextSequence"),l(p)}function l(p){return p===96?(e.consume(p),i++,l):(e.exit("codeTextSequence"),u(p))}function u(p){return p===null?r(p):p===32?(e.enter("space"),e.consume(p),e.exit("space"),u):p===96?(s=e.enter("codeTextSequence"),o=0,f(p)):H(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),u):(e.enter("codeTextData"),c(p))}function c(p){return p===null||p===32||p===96||H(p)?(e.exit("codeTextData"),u(p)):(e.consume(p),c)}function f(p){return p===96?(e.consume(p),o++,f):o===i?(e.exit("codeTextSequence"),e.exit("codeText"),t(p)):(s.type="codeTextData",c(p))}}var mu=class{constructor(t){this.left=t?[...t]:[],this.right=[]}get(t){if(t<0||t>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+t+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return t<this.left.length?this.left[t]:this.right[this.right.length-t+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(t,r){let n=r??Number.POSITIVE_INFINITY;return n<this.left.length?this.left.slice(t,n):t>this.left.length?this.right.slice(this.right.length-n+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-n+this.left.length).reverse())}splice(t,r,n){let i=r||0;this.setCursor(Math.trunc(t));let o=this.right.splice(this.right.length-i,Number.POSITIVE_INFINITY);return n&&Rs(this.left,n),o.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(t){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(t)}pushMany(t){this.setCursor(Number.POSITIVE_INFINITY),Rs(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),Rs(this.right,t.reverse())}setCursor(t){if(!(t===this.left.length||t>this.left.length&&this.right.length===0||t<0&&this.left.length===0))if(t<this.left.length){let r=this.left.splice(t,Number.POSITIVE_INFINITY);Rs(this.right,r.reverse())}else{let r=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);Rs(this.left,r.reverse())}}};function Rs(e,t){let r=0;if(t.length<1e4)e.push(...t);else for(;r<t.length;)e.push(...t.slice(r,r+1e4)),r+=1e4}function du(e){let t={},r=-1,n,i,o,s,a,l,u,c=new mu(e);for(;++r<c.length;){for(;r in t;)r=t[r];if(n=c.get(r),r&&n[1].type==="chunkFlow"&&c.get(r-1)[1].type==="listItemPrefix"&&(l=n[1]._tokenizer.events,o=0,o<l.length&&l[o][1].type==="lineEndingBlank"&&(o+=2),o<l.length&&l[o][1].type==="content"))for(;++o<l.length&&l[o][1].type!=="content";)l[o][1].type==="chunkText"&&(l[o][1]._isInFirstContentOfListItem=!0,o++);if(n[0]==="enter")n[1].contentType&&(Object.assign(t,hL(c,r)),r=t[r],u=!0);else if(n[1]._container){for(o=r,i=void 0;o--&&(s=c.get(o),s[1].type==="lineEnding"||s[1].type==="lineEndingBlank");)s[0]==="enter"&&(i&&(c.get(i)[1].type="lineEndingBlank"),s[1].type="lineEnding",i=o);i&&(n[1].end={...c.get(i)[1].start},a=c.slice(i,r),a.unshift(n),c.splice(i,r-i+1,a))}}return Re(e,0,Number.POSITIVE_INFINITY,c.slice(0)),!u}function hL(e,t){let r=e.get(t)[1],n=e.get(t)[2],i=t-1,o=[],s=r._tokenizer||n.parser[r.contentType](r.start),a=s.events,l=[],u={},c,f,p=-1,h=r,m=0,x=0,v=[x];for(;h;){for(;e.get(++i)[1]!==h;);o.push(i),h._tokenizer||(c=n.sliceStream(h),h.next||c.push(null),f&&s.defineSkip(h.start),h._isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=!0),s.write(c),h._isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=void 0)),f=h,h=h.next}for(h=r;++p<a.length;)a[p][0]==="exit"&&a[p-1][0]==="enter"&&a[p][1].type===a[p-1][1].type&&a[p][1].start.line!==a[p][1].end.line&&(x=p+1,v.push(x),h._tokenizer=void 0,h.previous=void 0,h=h.next);for(s.events=[],h?(h._tokenizer=void 0,h.previous=void 0):v.pop(),p=v.length;p--;){let w=a.slice(v[p],v[p+1]),E=o.pop();l.push([E,E+w.length-1]),e.splice(E,2,w)}for(l.reverse(),p=-1;++p<l.length;)u[m+l[p][0]]=m+l[p][1],m+=l[p][1]-l[p][0]-1;return u}var Wh={resolve:dL,tokenize:gL},mL={partial:!0,tokenize:yL};function dL(e){return du(e),e}function gL(e,t){let r;return n;function n(a){return e.enter("content"),r=e.enter("chunkContent",{contentType:"content"}),i(a)}function i(a){return a===null?o(a):H(a)?e.check(mL,s,o)(a):(e.consume(a),i)}function o(a){return e.exit("chunkContent"),e.exit("content"),t(a)}function s(a){return e.consume(a),e.exit("chunkContent"),r.next=e.enter("chunkContent",{contentType:"content",previous:r}),r=r.next,i}}function yL(e,t,r){let n=this;return i;function i(s){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),Z(e,o,"linePrefix")}function o(s){if(s===null||H(s))return r(s);let a=n.events[n.events.length-1];return!n.parser.constructs.disable.null.includes("codeIndented")&&a&&a[1].type==="linePrefix"&&a[2].sliceSerialize(a[1],!0).length>=4?t(s):e.interrupt(n.parser.constructs.flow,r,t)(s)}}function gu(e,t,r,n,i,o,s,a,l){let u=l||Number.POSITIVE_INFINITY,c=0;return f;function f(w){return w===60?(e.enter(n),e.enter(i),e.enter(o),e.consume(w),e.exit(o),p):w===null||w===32||w===41||Vn(w)?r(w):(e.enter(n),e.enter(s),e.enter(a),e.enter("chunkString",{contentType:"string"}),x(w))}function p(w){return w===62?(e.enter(o),e.consume(w),e.exit(o),e.exit(i),e.exit(n),t):(e.enter(a),e.enter("chunkString",{contentType:"string"}),h(w))}function h(w){return w===62?(e.exit("chunkString"),e.exit(a),p(w)):w===null||w===60||H(w)?r(w):(e.consume(w),w===92?m:h)}function m(w){return w===60||w===62||w===92?(e.consume(w),h):h(w)}function x(w){return!c&&(w===null||w===41||ce(w))?(e.exit("chunkString"),e.exit(a),e.exit(s),e.exit(n),t(w)):c<u&&w===40?(e.consume(w),c++,x):w===41?(e.consume(w),c--,x):w===null||w===32||w===40||Vn(w)?r(w):(e.consume(w),w===92?v:x)}function v(w){return w===40||w===41||w===92?(e.consume(w),x):x(w)}}function yu(e,t,r,n,i,o){let s=this,a=0,l;return u;function u(h){return e.enter(n),e.enter(i),e.consume(h),e.exit(i),e.enter(o),c}function c(h){return a>999||h===null||h===91||h===93&&!l||h===94&&!a&&"_hiddenFootnoteSupport"in s.parser.constructs?r(h):h===93?(e.exit(o),e.enter(i),e.consume(h),e.exit(i),e.exit(n),t):H(h)?(e.enter("lineEnding"),e.consume(h),e.exit("lineEnding"),c):(e.enter("chunkString",{contentType:"string"}),f(h))}function f(h){return h===null||h===91||h===93||H(h)||a++>999?(e.exit("chunkString"),c(h)):(e.consume(h),l||(l=!J(h)),h===92?p:f)}function p(h){return h===91||h===92||h===93?(e.consume(h),a++,f):f(h)}}function xu(e,t,r,n,i,o){let s;return a;function a(p){return p===34||p===39||p===40?(e.enter(n),e.enter(i),e.consume(p),e.exit(i),s=p===40?41:p,l):r(p)}function l(p){return p===s?(e.enter(i),e.consume(p),e.exit(i),e.exit(n),t):(e.enter(o),u(p))}function u(p){return p===s?(e.exit(o),l(s)):p===null?r(p):H(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),Z(e,u,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),c(p))}function c(p){return p===s||p===null||H(p)?(e.exit("chunkString"),u(p)):(e.consume(p),p===92?f:c)}function f(p){return p===s||p===92?(e.consume(p),c):c(p)}}function Xn(e,t){let r;return n;function n(i){return H(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),r=!0,n):J(i)?Z(e,n,r?"linePrefix":"lineSuffix")(i):t(i)}}var Yh={name:"definition",tokenize:bL},xL={partial:!0,tokenize:wL};function bL(e,t,r){let n=this,i;return o;function o(h){return e.enter("definition"),s(h)}function s(h){return yu.call(n,e,a,r,"definitionLabel","definitionLabelMarker","definitionLabelString")(h)}function a(h){return i=ot(n.sliceSerialize(n.events[n.events.length-1][1]).slice(1,-1)),h===58?(e.enter("definitionMarker"),e.consume(h),e.exit("definitionMarker"),l):r(h)}function l(h){return ce(h)?Xn(e,u)(h):u(h)}function u(h){return gu(e,c,r,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(h)}function c(h){return e.attempt(xL,f,f)(h)}function f(h){return J(h)?Z(e,p,"whitespace")(h):p(h)}function p(h){return h===null||H(h)?(e.exit("definition"),n.parser.defined.push(i),t(h)):r(h)}}function wL(e,t,r){return n;function n(a){return ce(a)?Xn(e,i)(a):r(a)}function i(a){return xu(e,o,r,"definitionTitle","definitionTitleMarker","definitionTitleString")(a)}function o(a){return J(a)?Z(e,s,"whitespace")(a):s(a)}function s(a){return a===null||H(a)?t(a):r(a)}}var Gh={name:"hardBreakEscape",tokenize:vL};function vL(e,t,r){return n;function n(o){return e.enter("hardBreakEscape"),e.consume(o),i}function i(o){return H(o)?(e.exit("hardBreakEscape"),t(o)):r(o)}}var Jh={name:"headingAtx",resolve:SL,tokenize:kL};function SL(e,t){let r=e.length-2,n=3,i,o;return e[n][1].type==="whitespace"&&(n+=2),r-2>n&&e[r][1].type==="whitespace"&&(r-=2),e[r][1].type==="atxHeadingSequence"&&(n===r-1||r-4>n&&e[r-2][1].type==="whitespace")&&(r-=n+1===r?2:4),r>n&&(i={type:"atxHeadingText",start:e[n][1].start,end:e[r][1].end},o={type:"chunkText",start:e[n][1].start,end:e[r][1].end,contentType:"text"},Re(e,n,r-n+1,[["enter",i,t],["enter",o,t],["exit",o,t],["exit",i,t]])),e}function kL(e,t,r){let n=0;return i;function i(c){return e.enter("atxHeading"),o(c)}function o(c){return e.enter("atxHeadingSequence"),s(c)}function s(c){return c===35&&n++<6?(e.consume(c),s):c===null||ce(c)?(e.exit("atxHeadingSequence"),a(c)):r(c)}function a(c){return c===35?(e.enter("atxHeadingSequence"),l(c)):c===null||H(c)?(e.exit("atxHeading"),t(c)):J(c)?Z(e,a,"whitespace")(c):(e.enter("atxHeadingText"),u(c))}function l(c){return c===35?(e.consume(c),l):(e.exit("atxHeadingSequence"),a(c))}function u(c){return c===null||c===35||ce(c)?(e.exit("atxHeadingText"),a(c)):(e.consume(c),u)}}var T1=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],Qh=["pre","script","style","textarea"];var Zh={concrete:!0,name:"htmlFlow",resolveTo:CL,tokenize:EL},AL={partial:!0,tokenize:IL},TL={partial:!0,tokenize:_L};function CL(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function EL(e,t,r){let n=this,i,o,s,a,l;return u;function u(y){return c(y)}function c(y){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(y),f}function f(y){return y===33?(e.consume(y),p):y===47?(e.consume(y),o=!0,x):y===63?(e.consume(y),i=3,n.interrupt?t:d):Je(y)?(e.consume(y),s=String.fromCharCode(y),v):r(y)}function p(y){return y===45?(e.consume(y),i=2,h):y===91?(e.consume(y),i=5,a=0,m):Je(y)?(e.consume(y),i=4,n.interrupt?t:d):r(y)}function h(y){return y===45?(e.consume(y),n.interrupt?t:d):r(y)}function m(y){let oe="CDATA[";return y===oe.charCodeAt(a++)?(e.consume(y),a===oe.length?n.interrupt?t:B:m):r(y)}function x(y){return Je(y)?(e.consume(y),s=String.fromCharCode(y),v):r(y)}function v(y){if(y===null||y===47||y===62||ce(y)){let oe=y===47,me=s.toLowerCase();return!oe&&!o&&Qh.includes(me)?(i=1,n.interrupt?t(y):B(y)):T1.includes(s.toLowerCase())?(i=6,oe?(e.consume(y),w):n.interrupt?t(y):B(y)):(i=7,n.interrupt&&!n.parser.lazy[n.now().line]?r(y):o?E(y):b(y))}return y===45||Me(y)?(e.consume(y),s+=String.fromCharCode(y),v):r(y)}function w(y){return y===62?(e.consume(y),n.interrupt?t:B):r(y)}function E(y){return J(y)?(e.consume(y),E):T(y)}function b(y){return y===47?(e.consume(y),T):y===58||y===95||Je(y)?(e.consume(y),z):J(y)?(e.consume(y),b):T(y)}function z(y){return y===45||y===46||y===58||y===95||Me(y)?(e.consume(y),z):q(y)}function q(y){return y===61?(e.consume(y),A):J(y)?(e.consume(y),q):b(y)}function A(y){return y===null||y===60||y===61||y===62||y===96?r(y):y===34||y===39?(e.consume(y),l=y,R):J(y)?(e.consume(y),A):V(y)}function R(y){return y===l?(e.consume(y),l=null,$):y===null||H(y)?r(y):(e.consume(y),R)}function V(y){return y===null||y===34||y===39||y===47||y===60||y===61||y===62||y===96||ce(y)?q(y):(e.consume(y),V)}function $(y){return y===47||y===62||J(y)?b(y):r(y)}function T(y){return y===62?(e.consume(y),fe):r(y)}function fe(y){return y===null||H(y)?B(y):J(y)?(e.consume(y),fe):r(y)}function B(y){return y===45&&i===2?(e.consume(y),F):y===60&&i===1?(e.consume(y),W):y===62&&i===4?(e.consume(y),G):y===63&&i===3?(e.consume(y),d):y===93&&i===5?(e.consume(y),U):H(y)&&(i===6||i===7)?(e.exit("htmlFlowData"),e.check(AL,X,_)(y)):y===null||H(y)?(e.exit("htmlFlowData"),_(y)):(e.consume(y),B)}function _(y){return e.check(TL,I,X)(y)}function I(y){return e.enter("lineEnding"),e.consume(y),e.exit("lineEnding"),M}function M(y){return y===null||H(y)?_(y):(e.enter("htmlFlowData"),B(y))}function F(y){return y===45?(e.consume(y),d):B(y)}function W(y){return y===47?(e.consume(y),s="",P):B(y)}function P(y){if(y===62){let oe=s.toLowerCase();return Qh.includes(oe)?(e.consume(y),G):B(y)}return Je(y)&&s.length<8?(e.consume(y),s+=String.fromCharCode(y),P):B(y)}function U(y){return y===93?(e.consume(y),d):B(y)}function d(y){return y===62?(e.consume(y),G):y===45&&i===2?(e.consume(y),d):B(y)}function G(y){return y===null||H(y)?(e.exit("htmlFlowData"),X(y)):(e.consume(y),G)}function X(y){return e.exit("htmlFlow"),t(y)}}function _L(e,t,r){let n=this;return i;function i(s){return H(s)?(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),o):r(s)}function o(s){return n.parser.lazy[n.now().line]?r(s):t(s)}}function IL(e,t,r){return n;function n(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),e.attempt(nr,t,r)}}var Xh={name:"htmlText",tokenize:DL};function DL(e,t,r){let n=this,i,o,s;return a;function a(d){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(d),l}function l(d){return d===33?(e.consume(d),u):d===47?(e.consume(d),q):d===63?(e.consume(d),b):Je(d)?(e.consume(d),V):r(d)}function u(d){return d===45?(e.consume(d),c):d===91?(e.consume(d),o=0,m):Je(d)?(e.consume(d),E):r(d)}function c(d){return d===45?(e.consume(d),h):r(d)}function f(d){return d===null?r(d):d===45?(e.consume(d),p):H(d)?(s=f,W(d)):(e.consume(d),f)}function p(d){return d===45?(e.consume(d),h):f(d)}function h(d){return d===62?F(d):d===45?p(d):f(d)}function m(d){let G="CDATA[";return d===G.charCodeAt(o++)?(e.consume(d),o===G.length?x:m):r(d)}function x(d){return d===null?r(d):d===93?(e.consume(d),v):H(d)?(s=x,W(d)):(e.consume(d),x)}function v(d){return d===93?(e.consume(d),w):x(d)}function w(d){return d===62?F(d):d===93?(e.consume(d),w):x(d)}function E(d){return d===null||d===62?F(d):H(d)?(s=E,W(d)):(e.consume(d),E)}function b(d){return d===null?r(d):d===63?(e.consume(d),z):H(d)?(s=b,W(d)):(e.consume(d),b)}function z(d){return d===62?F(d):b(d)}function q(d){return Je(d)?(e.consume(d),A):r(d)}function A(d){return d===45||Me(d)?(e.consume(d),A):R(d)}function R(d){return H(d)?(s=R,W(d)):J(d)?(e.consume(d),R):F(d)}function V(d){return d===45||Me(d)?(e.consume(d),V):d===47||d===62||ce(d)?$(d):r(d)}function $(d){return d===47?(e.consume(d),F):d===58||d===95||Je(d)?(e.consume(d),T):H(d)?(s=$,W(d)):J(d)?(e.consume(d),$):F(d)}function T(d){return d===45||d===46||d===58||d===95||Me(d)?(e.consume(d),T):fe(d)}function fe(d){return d===61?(e.consume(d),B):H(d)?(s=fe,W(d)):J(d)?(e.consume(d),fe):$(d)}function B(d){return d===null||d===60||d===61||d===62||d===96?r(d):d===34||d===39?(e.consume(d),i=d,_):H(d)?(s=B,W(d)):J(d)?(e.consume(d),B):(e.consume(d),I)}function _(d){return d===i?(e.consume(d),i=void 0,M):d===null?r(d):H(d)?(s=_,W(d)):(e.consume(d),_)}function I(d){return d===null||d===34||d===39||d===60||d===61||d===96?r(d):d===47||d===62||ce(d)?$(d):(e.consume(d),I)}function M(d){return d===47||d===62||ce(d)?$(d):r(d)}function F(d){return d===62?(e.consume(d),e.exit("htmlTextData"),e.exit("htmlText"),t):r(d)}function W(d){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),P}function P(d){return J(d)?Z(e,U,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(d):U(d)}function U(d){return e.enter("htmlTextData"),s(d)}}var Kn={name:"labelEnd",resolveAll:NL,resolveTo:FL,tokenize:RL},OL={tokenize:LL},ML={tokenize:BL},PL={tokenize:$L};function NL(e){let t=-1,r=[];for(;++t<e.length;){let n=e[t][1];if(r.push(e[t]),n.type==="labelImage"||n.type==="labelLink"||n.type==="labelEnd"){let i=n.type==="labelImage"?4:2;n.type="data",t+=i}}return e.length!==r.length&&Re(e,0,e.length,r),e}function FL(e,t){let r=e.length,n=0,i,o,s,a;for(;r--;)if(i=e[r][1],o){if(i.type==="link"||i.type==="labelLink"&&i._inactive)break;e[r][0]==="enter"&&i.type==="labelLink"&&(i._inactive=!0)}else if(s){if(e[r][0]==="enter"&&(i.type==="labelImage"||i.type==="labelLink")&&!i._balanced&&(o=r,i.type!=="labelLink")){n=2;break}}else i.type==="labelEnd"&&(s=r);let l={type:e[o][1].type==="labelLink"?"link":"image",start:{...e[o][1].start},end:{...e[e.length-1][1].end}},u={type:"label",start:{...e[o][1].start},end:{...e[s][1].end}},c={type:"labelText",start:{...e[o+n+2][1].end},end:{...e[s-2][1].start}};return a=[["enter",l,t],["enter",u,t]],a=pt(a,e.slice(o+1,o+n+3)),a=pt(a,[["enter",c,t]]),a=pt(a,Kr(t.parser.constructs.insideSpan.null,e.slice(o+n+4,s-3),t)),a=pt(a,[["exit",c,t],e[s-2],e[s-1],["exit",u,t]]),a=pt(a,e.slice(s+1)),a=pt(a,[["exit",l,t]]),Re(e,o,e.length,a),e}function RL(e,t,r){let n=this,i=n.events.length,o,s;for(;i--;)if((n.events[i][1].type==="labelImage"||n.events[i][1].type==="labelLink")&&!n.events[i][1]._balanced){o=n.events[i][1];break}return a;function a(p){return o?o._inactive?f(p):(s=n.parser.defined.includes(ot(n.sliceSerialize({start:o.end,end:n.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(p),e.exit("labelMarker"),e.exit("labelEnd"),l):r(p)}function l(p){return p===40?e.attempt(OL,c,s?c:f)(p):p===91?e.attempt(ML,c,s?u:f)(p):s?c(p):f(p)}function u(p){return e.attempt(PL,c,f)(p)}function c(p){return t(p)}function f(p){return o._balanced=!0,r(p)}}function LL(e,t,r){return n;function n(f){return e.enter("resource"),e.enter("resourceMarker"),e.consume(f),e.exit("resourceMarker"),i}function i(f){return ce(f)?Xn(e,o)(f):o(f)}function o(f){return f===41?c(f):gu(e,s,a,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(f)}function s(f){return ce(f)?Xn(e,l)(f):c(f)}function a(f){return r(f)}function l(f){return f===34||f===39||f===40?xu(e,u,r,"resourceTitle","resourceTitleMarker","resourceTitleString")(f):c(f)}function u(f){return ce(f)?Xn(e,c)(f):c(f)}function c(f){return f===41?(e.enter("resourceMarker"),e.consume(f),e.exit("resourceMarker"),e.exit("resource"),t):r(f)}}function BL(e,t,r){let n=this;return i;function i(a){return yu.call(n,e,o,s,"reference","referenceMarker","referenceString")(a)}function o(a){return n.parser.defined.includes(ot(n.sliceSerialize(n.events[n.events.length-1][1]).slice(1,-1)))?t(a):r(a)}function s(a){return r(a)}}function $L(e,t,r){return n;function n(o){return e.enter("reference"),e.enter("referenceMarker"),e.consume(o),e.exit("referenceMarker"),i}function i(o){return o===93?(e.enter("referenceMarker"),e.consume(o),e.exit("referenceMarker"),e.exit("reference"),t):r(o)}}var Kh={name:"labelStartImage",resolveAll:Kn.resolveAll,tokenize:UL};function UL(e,t,r){let n=this;return i;function i(a){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(a),e.exit("labelImageMarker"),o}function o(a){return a===91?(e.enter("labelMarker"),e.consume(a),e.exit("labelMarker"),e.exit("labelImage"),s):r(a)}function s(a){return a===94&&"_hiddenFootnoteSupport"in n.parser.constructs?r(a):t(a)}}var em={name:"labelStartLink",resolveAll:Kn.resolveAll,tokenize:jL};function jL(e,t,r){let n=this;return i;function i(s){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(s),e.exit("labelMarker"),e.exit("labelLink"),o}function o(s){return s===94&&"_hiddenFootnoteSupport"in n.parser.constructs?r(s):t(s)}}var Ls={name:"lineEnding",tokenize:zL};function zL(e,t){return r;function r(n){return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),Z(e,t,"linePrefix")}}var ei={name:"thematicBreak",tokenize:qL};function qL(e,t,r){let n=0,i;return o;function o(u){return e.enter("thematicBreak"),s(u)}function s(u){return i=u,a(u)}function a(u){return u===i?(e.enter("thematicBreakSequence"),l(u)):n>=3&&(u===null||H(u))?(e.exit("thematicBreak"),t(u)):r(u)}function l(u){return u===i?(e.consume(u),n++,l):(e.exit("thematicBreakSequence"),J(u)?Z(e,a,"whitespace")(u):a(u))}}var st={continuation:{tokenize:YL},exit:JL,name:"list",tokenize:WL},HL={partial:!0,tokenize:QL},VL={partial:!0,tokenize:GL};function WL(e,t,r){let n=this,i=n.events[n.events.length-1],o=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0,s=0;return a;function a(h){let m=n.containerState.type||(h===42||h===43||h===45?"listUnordered":"listOrdered");if(m==="listUnordered"?!n.containerState.marker||h===n.containerState.marker:Ds(h)){if(n.containerState.type||(n.containerState.type=m,e.enter(m,{_container:!0})),m==="listUnordered")return e.enter("listItemPrefix"),h===42||h===45?e.check(ei,r,u)(h):u(h);if(!n.interrupt||h===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),l(h)}return r(h)}function l(h){return Ds(h)&&++s<10?(e.consume(h),l):(!n.interrupt||s<2)&&(n.containerState.marker?h===n.containerState.marker:h===41||h===46)?(e.exit("listItemValue"),u(h)):r(h)}function u(h){return e.enter("listItemMarker"),e.consume(h),e.exit("listItemMarker"),n.containerState.marker=n.containerState.marker||h,e.check(nr,n.interrupt?r:c,e.attempt(HL,p,f))}function c(h){return n.containerState.initialBlankLine=!0,o++,p(h)}function f(h){return J(h)?(e.enter("listItemPrefixWhitespace"),e.consume(h),e.exit("listItemPrefixWhitespace"),p):r(h)}function p(h){return n.containerState.size=o+n.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(h)}}function YL(e,t,r){let n=this;return n.containerState._closeFlow=void 0,e.check(nr,i,o);function i(a){return n.containerState.furtherBlankLines=n.containerState.furtherBlankLines||n.containerState.initialBlankLine,Z(e,t,"listItemIndent",n.containerState.size+1)(a)}function o(a){return n.containerState.furtherBlankLines||!J(a)?(n.containerState.furtherBlankLines=void 0,n.containerState.initialBlankLine=void 0,s(a)):(n.containerState.furtherBlankLines=void 0,n.containerState.initialBlankLine=void 0,e.attempt(VL,t,s)(a))}function s(a){return n.containerState._closeFlow=!0,n.interrupt=void 0,Z(e,e.attempt(st,t,r),"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(a)}}function GL(e,t,r){let n=this;return Z(e,i,"listItemIndent",n.containerState.size+1);function i(o){let s=n.events[n.events.length-1];return s&&s[1].type==="listItemIndent"&&s[2].sliceSerialize(s[1],!0).length===n.containerState.size?t(o):r(o)}}function JL(e){e.exit(this.containerState.type)}function QL(e,t,r){let n=this;return Z(e,i,"listItemPrefixWhitespace",n.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function i(o){let s=n.events[n.events.length-1];return!J(o)&&s&&s[1].type==="listItemPrefixWhitespace"?t(o):r(o)}}var bu={name:"setextUnderline",resolveTo:ZL,tokenize:XL};function ZL(e,t){let r=e.length,n,i,o;for(;r--;)if(e[r][0]==="enter"){if(e[r][1].type==="content"){n=r;break}e[r][1].type==="paragraph"&&(i=r)}else e[r][1].type==="content"&&e.splice(r,1),!o&&e[r][1].type==="definition"&&(o=r);let s={type:"setextHeading",start:{...e[i][1].start},end:{...e[e.length-1][1].end}};return e[i][1].type="setextHeadingText",o?(e.splice(i,0,["enter",s,t]),e.splice(o+1,0,["exit",e[n][1],t]),e[n][1].end={...e[o][1].end}):e[n][1]=s,e.push(["exit",s,t]),e}function XL(e,t,r){let n=this,i;return o;function o(u){let c=n.events.length,f;for(;c--;)if(n.events[c][1].type!=="lineEnding"&&n.events[c][1].type!=="linePrefix"&&n.events[c][1].type!=="content"){f=n.events[c][1].type==="paragraph";break}return!n.parser.lazy[n.now().line]&&(n.interrupt||f)?(e.enter("setextHeadingLine"),i=u,s(u)):r(u)}function s(u){return e.enter("setextHeadingLineSequence"),a(u)}function a(u){return u===i?(e.consume(u),a):(e.exit("setextHeadingLineSequence"),J(u)?Z(e,l,"lineSuffix")(u):l(u))}function l(u){return u===null||H(u)?(e.exit("setextHeadingLine"),t(u)):r(u)}}var KL={tokenize:sB,partial:!0};function tm(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:nB,continuation:{tokenize:iB},exit:oB}},text:{91:{name:"gfmFootnoteCall",tokenize:rB},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:eB,resolveTo:tB}}}}function eB(e,t,r){let n=this,i=n.events.length,o=n.parser.gfmFootnotes||(n.parser.gfmFootnotes=[]),s;for(;i--;){let l=n.events[i][1];if(l.type==="labelImage"){s=l;break}if(l.type==="gfmFootnoteCall"||l.type==="labelLink"||l.type==="label"||l.type==="image"||l.type==="link")break}return a;function a(l){if(!s||!s._balanced)return r(l);let u=ot(n.sliceSerialize({start:s.end,end:n.now()}));return u.codePointAt(0)!==94||!o.includes(u.slice(1))?r(l):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(l),e.exit("gfmFootnoteCallLabelMarker"),t(l))}}function tB(e,t){let r=e.length,n;for(;r--;)if(e[r][1].type==="labelImage"&&e[r][0]==="enter"){n=e[r][1];break}e[r+1][1].type="data",e[r+3][1].type="gfmFootnoteCallLabelMarker";let i={type:"gfmFootnoteCall",start:Object.assign({},e[r+3][1].start),end:Object.assign({},e[e.length-1][1].end)},o={type:"gfmFootnoteCallMarker",start:Object.assign({},e[r+3][1].end),end:Object.assign({},e[r+3][1].end)};o.end.column++,o.end.offset++,o.end._bufferIndex++;let s={type:"gfmFootnoteCallString",start:Object.assign({},o.end),end:Object.assign({},e[e.length-1][1].start)},a={type:"chunkString",contentType:"string",start:Object.assign({},s.start),end:Object.assign({},s.end)},l=[e[r+1],e[r+2],["enter",i,t],e[r+3],e[r+4],["enter",o,t],["exit",o,t],["enter",s,t],["enter",a,t],["exit",a,t],["exit",s,t],e[e.length-2],e[e.length-1],["exit",i,t]];return e.splice(r,e.length-r+1,...l),e}function rB(e,t,r){let n=this,i=n.parser.gfmFootnotes||(n.parser.gfmFootnotes=[]),o=0,s;return a;function a(f){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(f),e.exit("gfmFootnoteCallLabelMarker"),l}function l(f){return f!==94?r(f):(e.enter("gfmFootnoteCallMarker"),e.consume(f),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",u)}function u(f){if(o>999||f===93&&!s||f===null||f===91||ce(f))return r(f);if(f===93){e.exit("chunkString");let p=e.exit("gfmFootnoteCallString");return i.includes(ot(n.sliceSerialize(p)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(f),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):r(f)}return ce(f)||(s=!0),o++,e.consume(f),f===92?c:u}function c(f){return f===91||f===92||f===93?(e.consume(f),o++,u):u(f)}}function nB(e,t,r){let n=this,i=n.parser.gfmFootnotes||(n.parser.gfmFootnotes=[]),o,s=0,a;return l;function l(m){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(m),e.exit("gfmFootnoteDefinitionLabelMarker"),u}function u(m){return m===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(m),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",c):r(m)}function c(m){if(s>999||m===93&&!a||m===null||m===91||ce(m))return r(m);if(m===93){e.exit("chunkString");let x=e.exit("gfmFootnoteDefinitionLabelString");return o=ot(n.sliceSerialize(x)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(m),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),p}return ce(m)||(a=!0),s++,e.consume(m),m===92?f:c}function f(m){return m===91||m===92||m===93?(e.consume(m),s++,c):c(m)}function p(m){return m===58?(e.enter("definitionMarker"),e.consume(m),e.exit("definitionMarker"),i.includes(o)||i.push(o),Z(e,h,"gfmFootnoteDefinitionWhitespace")):r(m)}function h(m){return t(m)}}function iB(e,t,r){return e.check(nr,t,e.attempt(KL,t,r))}function oB(e){e.exit("gfmFootnoteDefinition")}function sB(e,t,r){let n=this;return Z(e,i,"gfmFootnoteDefinitionIndent",5);function i(o){let s=n.events[n.events.length-1];return s&&s[1].type==="gfmFootnoteDefinitionIndent"&&s[2].sliceSerialize(s[1],!0).length===4?t(o):r(o)}}function rm(e){let r=(e||{}).singleTilde,n={name:"strikethrough",tokenize:o,resolveAll:i};return r==null&&(r=!0),{text:{126:n},insideSpan:{null:[n]},attentionMarkers:{null:[126]}};function i(s,a){let l=-1;for(;++l<s.length;)if(s[l][0]==="enter"&&s[l][1].type==="strikethroughSequenceTemporary"&&s[l][1]._close){let u=l;for(;u--;)if(s[u][0]==="exit"&&s[u][1].type==="strikethroughSequenceTemporary"&&s[u][1]._open&&s[l][1].end.offset-s[l][1].start.offset===s[u][1].end.offset-s[u][1].start.offset){s[l][1].type="strikethroughSequence",s[u][1].type="strikethroughSequence";let c={type:"strikethrough",start:Object.assign({},s[u][1].start),end:Object.assign({},s[l][1].end)},f={type:"strikethroughText",start:Object.assign({},s[u][1].end),end:Object.assign({},s[l][1].start)},p=[["enter",c,a],["enter",s[u][1],a],["exit",s[u][1],a],["enter",f,a]],h=a.parser.constructs.insideSpan.null;h&&Re(p,p.length,0,Kr(h,s.slice(u+1,l),a)),Re(p,p.length,0,[["exit",f,a],["enter",s[l][1],a],["exit",s[l][1],a],["exit",c,a]]),Re(s,u-1,l-u+3,p),l=u+p.length-2;break}}for(l=-1;++l<s.length;)s[l][1].type==="strikethroughSequenceTemporary"&&(s[l][1].type="data");return s}function o(s,a,l){let u=this.previous,c=this.events,f=0;return p;function p(m){return u===126&&c[c.length-1][1].type!=="characterEscape"?l(m):(s.enter("strikethroughSequenceTemporary"),h(m))}function h(m){let x=Tr(u);if(m===126)return f>1?l(m):(s.consume(m),f++,h);if(f<2&&!r)return l(m);let v=s.exit("strikethroughSequenceTemporary"),w=Tr(m);return v._open=!w||w===2&&!!x,v._close=!x||x===2&&!!w,a(m)}}}var wu=class{constructor(){this.map=[]}add(t,r,n){aB(this,t,r,n)}consume(t){if(this.map.sort(function(o,s){return o[0]-s[0]}),this.map.length===0)return;let r=this.map.length,n=[];for(;r>0;)r-=1,n.push(t.slice(this.map[r][0]+this.map[r][1]),this.map[r][2]),t.length=this.map[r][0];n.push([...t]),t.length=0;let i=n.pop();for(;i;)t.push(...i),i=n.pop();this.map.length=0}};function aB(e,t,r,n){let i=0;if(!(r===0&&n.length===0)){for(;i<e.map.length;){if(e.map[i][0]===t){e.map[i][1]+=r,e.map[i][2].push(...n);return}i+=1}e.map.push([t,r,n])}}function C1(e,t){let r=!1,n=[];for(;t<e.length;){let i=e[t];if(r){if(i[0]==="enter")i[1].type==="tableContent"&&n.push(e[t+1][1].type==="tableDelimiterMarker"?"left":"none");else if(i[1].type==="tableContent"){if(e[t-1][1].type==="tableDelimiterMarker"){let o=n.length-1;n[o]=n[o]==="left"?"center":"right"}}else if(i[1].type==="tableDelimiterRow")break}else i[0]==="enter"&&i[1].type==="tableDelimiterRow"&&(r=!0);t+=1}return n}function nm(){return{flow:{null:{name:"table",tokenize:lB,resolveAll:uB}}}}function lB(e,t,r){let n=this,i=0,o=0,s;return a;function a(T){let fe=n.events.length-1;for(;fe>-1;){let I=n.events[fe][1].type;if(I==="lineEnding"||I==="linePrefix")fe--;else break}let B=fe>-1?n.events[fe][1].type:null,_=B==="tableHead"||B==="tableRow"?A:l;return _===A&&n.parser.lazy[n.now().line]?r(T):_(T)}function l(T){return e.enter("tableHead"),e.enter("tableRow"),u(T)}function u(T){return T===124||(s=!0,o+=1),c(T)}function c(T){return T===null?r(T):H(T)?o>1?(o=0,n.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(T),e.exit("lineEnding"),h):r(T):J(T)?Z(e,c,"whitespace")(T):(o+=1,s&&(s=!1,i+=1),T===124?(e.enter("tableCellDivider"),e.consume(T),e.exit("tableCellDivider"),s=!0,c):(e.enter("data"),f(T)))}function f(T){return T===null||T===124||ce(T)?(e.exit("data"),c(T)):(e.consume(T),T===92?p:f)}function p(T){return T===92||T===124?(e.consume(T),f):f(T)}function h(T){return n.interrupt=!1,n.parser.lazy[n.now().line]?r(T):(e.enter("tableDelimiterRow"),s=!1,J(T)?Z(e,m,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(T):m(T))}function m(T){return T===45||T===58?v(T):T===124?(s=!0,e.enter("tableCellDivider"),e.consume(T),e.exit("tableCellDivider"),x):q(T)}function x(T){return J(T)?Z(e,v,"whitespace")(T):v(T)}function v(T){return T===58?(o+=1,s=!0,e.enter("tableDelimiterMarker"),e.consume(T),e.exit("tableDelimiterMarker"),w):T===45?(o+=1,w(T)):T===null||H(T)?z(T):q(T)}function w(T){return T===45?(e.enter("tableDelimiterFiller"),E(T)):q(T)}function E(T){return T===45?(e.consume(T),E):T===58?(s=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(T),e.exit("tableDelimiterMarker"),b):(e.exit("tableDelimiterFiller"),b(T))}function b(T){return J(T)?Z(e,z,"whitespace")(T):z(T)}function z(T){return T===124?m(T):T===null||H(T)?!s||i!==o?q(T):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(T)):q(T)}function q(T){return r(T)}function A(T){return e.enter("tableRow"),R(T)}function R(T){return T===124?(e.enter("tableCellDivider"),e.consume(T),e.exit("tableCellDivider"),R):T===null||H(T)?(e.exit("tableRow"),t(T)):J(T)?Z(e,R,"whitespace")(T):(e.enter("data"),V(T))}function V(T){return T===null||T===124||ce(T)?(e.exit("data"),R(T)):(e.consume(T),T===92?$:V)}function $(T){return T===92||T===124?(e.consume(T),V):V(T)}}function uB(e,t){let r=-1,n=!0,i=0,o=[0,0,0,0],s=[0,0,0,0],a=!1,l=0,u,c,f,p=new wu;for(;++r<e.length;){let h=e[r],m=h[1];h[0]==="enter"?m.type==="tableHead"?(a=!1,l!==0&&(E1(p,t,l,u,c),c=void 0,l=0),u={type:"table",start:Object.assign({},m.start),end:Object.assign({},m.end)},p.add(r,0,[["enter",u,t]])):m.type==="tableRow"||m.type==="tableDelimiterRow"?(n=!0,f=void 0,o=[0,0,0,0],s=[0,r+1,0,0],a&&(a=!1,c={type:"tableBody",start:Object.assign({},m.start),end:Object.assign({},m.end)},p.add(r,0,[["enter",c,t]])),i=m.type==="tableDelimiterRow"?2:c?3:1):i&&(m.type==="data"||m.type==="tableDelimiterMarker"||m.type==="tableDelimiterFiller")?(n=!1,s[2]===0&&(o[1]!==0&&(s[0]=s[1],f=vu(p,t,o,i,void 0,f),o=[0,0,0,0]),s[2]=r)):m.type==="tableCellDivider"&&(n?n=!1:(o[1]!==0&&(s[0]=s[1],f=vu(p,t,o,i,void 0,f)),o=s,s=[o[1],r,0,0])):m.type==="tableHead"?(a=!0,l=r):m.type==="tableRow"||m.type==="tableDelimiterRow"?(l=r,o[1]!==0?(s[0]=s[1],f=vu(p,t,o,i,r,f)):s[1]!==0&&(f=vu(p,t,s,i,r,f)),i=0):i&&(m.type==="data"||m.type==="tableDelimiterMarker"||m.type==="tableDelimiterFiller")&&(s[3]=r)}for(l!==0&&E1(p,t,l,u,c),p.consume(t.events),r=-1;++r<t.events.length;){let h=t.events[r];h[0]==="enter"&&h[1].type==="table"&&(h[1]._align=C1(t.events,r))}return e}function vu(e,t,r,n,i,o){let s=n===1?"tableHeader":n===2?"tableDelimiter":"tableData",a="tableContent";r[0]!==0&&(o.end=Object.assign({},oo(t.events,r[0])),e.add(r[0],0,[["exit",o,t]]));let l=oo(t.events,r[1]);if(o={type:s,start:Object.assign({},l),end:Object.assign({},l)},e.add(r[1],0,[["enter",o,t]]),r[2]!==0){let u=oo(t.events,r[2]),c=oo(t.events,r[3]),f={type:a,start:Object.assign({},u),end:Object.assign({},c)};if(e.add(r[2],0,[["enter",f,t]]),n!==2){let p=t.events[r[2]],h=t.events[r[3]];if(p[1].end=Object.assign({},h[1].end),p[1].type="chunkText",p[1].contentType="text",r[3]>r[2]+1){let m=r[2]+1,x=r[3]-r[2]-1;e.add(m,x,[])}}e.add(r[3]+1,0,[["exit",f,t]])}return i!==void 0&&(o.end=Object.assign({},oo(t.events,i)),e.add(i,0,[["exit",o,t]]),o=void 0),o}function E1(e,t,r,n,i){let o=[],s=oo(t.events,r);i&&(i.end=Object.assign({},s),o.push(["exit",i,t])),n.end=Object.assign({},s),o.push(["exit",n,t]),e.add(r+1,0,o)}function oo(e,t){let r=e[t],n=r[0]==="enter"?"start":"end";return r[1][n]}var cB={name:"tasklistCheck",tokenize:fB};function im(){return{text:{91:cB}}}function fB(e,t,r){let n=this;return i;function i(l){return n.previous!==null||!n._gfmTasklistFirstContentOfListItem?r(l):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(l),e.exit("taskListCheckMarker"),o)}function o(l){return ce(l)?(e.enter("taskListCheckValueUnchecked"),e.consume(l),e.exit("taskListCheckValueUnchecked"),s):l===88||l===120?(e.enter("taskListCheckValueChecked"),e.consume(l),e.exit("taskListCheckValueChecked"),s):r(l)}function s(l){return l===93?(e.enter("taskListCheckMarker"),e.consume(l),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),a):r(l)}function a(l){return H(l)?t(l):J(l)?e.check({tokenize:pB},t,r)(l):r(l)}}function pB(e,t,r){return Z(e,n,"whitespace");function n(i){return i===null?r(i):t(i)}}function _1(e){return uu([zh(),tm(),rm(e),nm(),im()])}var hB={};function Bs(e){let t=this,r=e||hB,n=t.data(),i=n.micromarkExtensions||(n.micromarkExtensions=[]),o=n.fromMarkdownExtensions||(n.fromMarkdownExtensions=[]),s=n.toMarkdownExtensions||(n.toMarkdownExtensions=[]);i.push(_1(r)),o.push($h()),s.push(Uh(r))}var I1={tokenize:mB};function mB(e){let t=e.attempt(this.parser.constructs.contentInitial,n,i),r;return t;function n(a){if(a===null){e.consume(a);return}return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),Z(e,t,"linePrefix")}function i(a){return e.enter("paragraph"),o(a)}function o(a){let l=e.enter("chunkText",{contentType:"text",previous:r});return r&&(r.next=l),r=l,s(a)}function s(a){if(a===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(a);return}return H(a)?(e.consume(a),e.exit("chunkText"),o):(e.consume(a),s)}}var O1={tokenize:dB},D1={tokenize:gB};function dB(e){let t=this,r=[],n=0,i,o,s;return a;function a(b){if(n<r.length){let z=r[n];return t.containerState=z[1],e.attempt(z[0].continuation,l,u)(b)}return u(b)}function l(b){if(n++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,i&&E();let z=t.events.length,q=z,A;for(;q--;)if(t.events[q][0]==="exit"&&t.events[q][1].type==="chunkFlow"){A=t.events[q][1].end;break}w(n);let R=z;for(;R<t.events.length;)t.events[R][1].end={...A},R++;return Re(t.events,q+1,0,t.events.slice(z)),t.events.length=R,u(b)}return a(b)}function u(b){if(n===r.length){if(!i)return p(b);if(i.currentConstruct&&i.currentConstruct.concrete)return m(b);t.interrupt=!!(i.currentConstruct&&!i._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(D1,c,f)(b)}function c(b){return i&&E(),w(n),p(b)}function f(b){return t.parser.lazy[t.now().line]=n!==r.length,s=t.now().offset,m(b)}function p(b){return t.containerState={},e.attempt(D1,h,m)(b)}function h(b){return n++,r.push([t.currentConstruct,t.containerState]),p(b)}function m(b){if(b===null){i&&E(),w(0),e.consume(b);return}return i=i||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:i,contentType:"flow",previous:o}),x(b)}function x(b){if(b===null){v(e.exit("chunkFlow"),!0),w(0),e.consume(b);return}return H(b)?(e.consume(b),v(e.exit("chunkFlow")),n=0,t.interrupt=void 0,a):(e.consume(b),x)}function v(b,z){let q=t.sliceStream(b);if(z&&q.push(null),b.previous=o,o&&(o.next=b),o=b,i.defineSkip(b.start),i.write(q),t.parser.lazy[b.start.line]){let A=i.events.length;for(;A--;)if(i.events[A][1].start.offset<s&&(!i.events[A][1].end||i.events[A][1].end.offset>s))return;let R=t.events.length,V=R,$,T;for(;V--;)if(t.events[V][0]==="exit"&&t.events[V][1].type==="chunkFlow"){if($){T=t.events[V][1].end;break}$=!0}for(w(n),A=R;A<t.events.length;)t.events[A][1].end={...T},A++;Re(t.events,V+1,0,t.events.slice(R)),t.events.length=A}}function w(b){let z=r.length;for(;z-- >b;){let q=r[z];t.containerState=q[1],q[0].exit.call(t,e)}r.length=b}function E(){i.write([null]),o=void 0,i=void 0,t.containerState._closeFlow=void 0}}function gB(e,t,r){return Z(e,e.attempt(this.parser.constructs.document,t,r),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}var M1={tokenize:yB};function yB(e){let t=this,r=e.attempt(nr,n,e.attempt(this.parser.constructs.flowInitial,i,Z(e,e.attempt(this.parser.constructs.flow,i,e.attempt(Wh,i)),"linePrefix")));return r;function n(o){if(o===null){e.consume(o);return}return e.enter("lineEndingBlank"),e.consume(o),e.exit("lineEndingBlank"),t.currentConstruct=void 0,r}function i(o){if(o===null){e.consume(o);return}return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),t.currentConstruct=void 0,r}}var P1={resolveAll:L1()},N1=R1("string"),F1=R1("text");function R1(e){return{resolveAll:L1(e==="text"?xB:void 0),tokenize:t};function t(r){let n=this,i=this.parser.constructs[e],o=r.attempt(i,s,a);return s;function s(c){return u(c)?o(c):a(c)}function a(c){if(c===null){r.consume(c);return}return r.enter("data"),r.consume(c),l}function l(c){return u(c)?(r.exit("data"),o(c)):(r.consume(c),l)}function u(c){if(c===null)return!0;let f=i[c],p=-1;if(f)for(;++p<f.length;){let h=f[p];if(!h.previous||h.previous.call(n,n.previous))return!0}return!1}}}function L1(e){return t;function t(r,n){let i=-1,o;for(;++i<=r.length;)o===void 0?r[i]&&r[i][1].type==="data"&&(o=i,i++):(!r[i]||r[i][1].type!=="data")&&(i!==o+2&&(r[o][1].end=r[i-1][1].end,r.splice(o+2,i-o-2),i=o+2),o=void 0);return e?e(r,n):r}}function xB(e,t){let r=0;for(;++r<=e.length;)if((r===e.length||e[r][1].type==="lineEnding")&&e[r-1][1].type==="data"){let n=e[r-1][1],i=t.sliceStream(n),o=i.length,s=-1,a=0,l;for(;o--;){let u=i[o];if(typeof u=="string"){for(s=u.length;u.charCodeAt(s-1)===32;)a++,s--;if(s)break;s=-1}else if(u===-2)l=!0,a++;else if(u!==-1){o++;break}}if(a){let u={type:r===e.length||l||a<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:o?s:n.start._bufferIndex+s,_index:n.start._index+o,line:n.end.line,column:n.end.column-a,offset:n.end.offset-a},end:{...n.end}};n.end={...u.start},n.start.offset===n.end.offset?Object.assign(n,u):(e.splice(r,0,["enter",u,t],["exit",u,t]),r+=2)}r++}return e}var om={};le(om,{attentionMarkers:()=>CB,contentInitial:()=>wB,disable:()=>EB,document:()=>bB,flow:()=>SB,flowInitial:()=>vB,insideSpan:()=>TB,string:()=>kB,text:()=>AB});var bB={42:st,43:st,45:st,48:st,49:st,50:st,51:st,52:st,53:st,54:st,55:st,56:st,57:st,62:cu},wB={91:Yh},vB={[-2]:Fs,[-1]:Fs,32:Fs},SB={35:Jh,42:ei,45:[bu,ei],60:Zh,61:bu,95:ei,96:hu,126:hu},kB={38:pu,92:fu},AB={[-5]:Ls,[-4]:Ls,[-3]:Ls,33:Kh,38:pu,42:Ns,60:[Hh,Xh],91:em,92:[Gh,fu],93:Kn,95:Ns,96:Vh},TB={null:[Ns,P1]},CB={null:[42,95]},EB={null:[]};function B1(e,t,r){let n={_bufferIndex:-1,_index:0,line:r&&r.line||1,column:r&&r.column||1,offset:r&&r.offset||0},i={},o=[],s=[],a=[],l=!0,u={attempt:$(R),check:$(V),consume:z,enter:q,exit:A,interrupt:$(V,{interrupt:!0})},c={code:null,containerState:{},defineSkip:w,events:[],now:v,parser:e,previous:null,sliceSerialize:m,sliceStream:x,write:h},f=t.tokenize.call(c,u),p;return t.resolveAll&&o.push(t),c;function h(_){return s=pt(s,_),E(),s[s.length-1]!==null?[]:(T(t,0),c.events=Kr(o,c.events,c),c.events)}function m(_,I){return IB(x(_),I)}function x(_){return _B(s,_)}function v(){let{_bufferIndex:_,_index:I,line:M,column:F,offset:W}=n;return{_bufferIndex:_,_index:I,line:M,column:F,offset:W}}function w(_){i[_.line]=_.column,B()}function E(){let _;for(;n._index<s.length;){let I=s[n._index];if(typeof I=="string")for(_=n._index,n._bufferIndex<0&&(n._bufferIndex=0);n._index===_&&n._bufferIndex<I.length;)b(I.charCodeAt(n._bufferIndex));else b(I)}}function b(_){l=void 0,p=_,f=f(_)}function z(_){H(_)?(n.line++,n.column=1,n.offset+=_===-3?2:1,B()):_!==-1&&(n.column++,n.offset++),n._bufferIndex<0?n._index++:(n._bufferIndex++,n._bufferIndex===s[n._index].length&&(n._bufferIndex=-1,n._index++)),c.previous=_,l=!0}function q(_,I){let M=I||{};return M.type=_,M.start=v(),c.events.push(["enter",M,c]),a.push(M),M}function A(_){let I=a.pop();return I.end=v(),c.events.push(["exit",I,c]),I}function R(_,I){T(_,I.from)}function V(_,I){I.restore()}function $(_,I){return M;function M(F,W,P){let U,d,G,X;return Array.isArray(F)?oe(F):"tokenize"in F?oe([F]):y(F);function y(g){return S;function S(C){let O=C!==null&&g[C],Y=C!==null&&g.null,de=[...Array.isArray(O)?O:O?[O]:[],...Array.isArray(Y)?Y:Y?[Y]:[]];return oe(de)(C)}}function oe(g){return U=g,d=0,g.length===0?P:me(g[d])}function me(g){return S;function S(C){return X=fe(),G=g,g.partial||(c.currentConstruct=g),g.name&&c.parser.constructs.disable.null.includes(g.name)?k(C):g.tokenize.call(I?Object.assign(Object.create(c),I):c,u,_e,k)(C)}}function _e(g){return l=!0,_(G,X),W}function k(g){return l=!0,X.restore(),++d<U.length?me(U[d]):P}}}function T(_,I){_.resolveAll&&!o.includes(_)&&o.push(_),_.resolve&&Re(c.events,I,c.events.length-I,_.resolve(c.events.slice(I),c)),_.resolveTo&&(c.events=_.resolveTo(c.events,c))}function fe(){let _=v(),I=c.previous,M=c.currentConstruct,F=c.events.length,W=Array.from(a);return{from:F,restore:P};function P(){n=_,c.previous=I,c.currentConstruct=M,c.events.length=F,a=W,B()}}function B(){n.line in i&&n.column<2&&(n.column=i[n.line],n.offset+=i[n.line]-1)}}function _B(e,t){let r=t.start._index,n=t.start._bufferIndex,i=t.end._index,o=t.end._bufferIndex,s;if(r===i)s=[e[r].slice(n,o)];else{if(s=e.slice(r,i),n>-1){let a=s[0];typeof a=="string"?s[0]=a.slice(n):s.shift()}o>0&&s.push(e[i].slice(0,o))}return s}function IB(e,t){let r=-1,n=[],i;for(;++r<e.length;){let o=e[r],s;if(typeof o=="string")s=o;else switch(o){case-5:{s="\r";break}case-4:{s=`
86
+ `))}function l(h,m,x,v){let w=x.enter("tableCell"),E=x.enter("phrasing"),b=x.containerPhrasing(h,{...v,before:o,after:o});return E(),w(),b}function u(h,m){return DS(h,{align:m,alignDelimiters:n,padding:r,stringLength:i})}function c(h,m,x){let v=h.children,w=-1,E=[],b=m.enter("table");for(;++w<v.length;)E[w]=f(v[w],m,x);return b(),E}function f(h,m,x){let v=h.children,w=-1,E=[],b=m.enter("tableRow");for(;++w<v.length;)E[w]=l(v[w],h,m,x);return b(),E}function p(h,m,x){let v=Jn.inlineCode(h,m,x);return x.stack.includes("tableCell")&&(v=v.replace(/\|/g,"\\$&")),v}}function Lh(){return{exit:{taskListCheckValueChecked:h1,taskListCheckValueUnchecked:h1,paragraph:B2}}}function Bh(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:$2}}}function h1(e){let t=this.stack[this.stack.length-2];t.type,t.checked=e.type==="taskListCheckValueChecked"}function B2(e){let t=this.stack[this.stack.length-2];if(t&&t.type==="listItem"&&typeof t.checked=="boolean"){let r=this.stack[this.stack.length-1];r.type;let n=r.children[0];if(n&&n.type==="text"){let i=t.children,o=-1,s;for(;++o<i.length;){let a=i[o];if(a.type==="paragraph"){s=a;break}}s===r&&(n.value=n.value.slice(1),n.value.length===0?r.children.shift():r.position&&n.position&&typeof n.position.start.offset=="number"&&(n.position.start.column++,n.position.start.offset++,r.position.start=Object.assign({},n.position.start)))}}this.exit(e)}function $2(e,t,r,n){let i=e.children[0],o=typeof e.checked=="boolean"&&i&&i.type==="paragraph",s="["+(e.checked?"x":" ")+"] ",a=r.createTracker(n);o&&a.move(s);let l=Jn.listItem(e,t,r,{...n,...a.current()});return o&&(l=l.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,u)),l;function u(c){return c+s}}function $h(){return[dh(),yh(),bh(),Fh(),Lh()]}function Uh(e){return{extensions:[gh(),xh(),wh(),Rh(e),Bh()]}}function Re(e,t,r,n){let i=e.length,o=0,s;if(t<0?t=-t>i?0:i+t:t=t>i?i:t,r=r>0?r:0,n.length<1e4)s=Array.from(n),s.unshift(t,r),e.splice(...s);else for(r&&e.splice(t,r);o<n.length;)s=n.slice(o,o+1e4),s.unshift(t,0),e.splice(...s),o+=1e4,t+=1e4}function pt(e,t){return e.length>0?(Re(e,e.length,0,t),e):t}var m1={}.hasOwnProperty;function uu(e){let t={},r=-1;for(;++r<e.length;)U2(t,e[r]);return t}function U2(e,t){let r;for(r in t){let i=(m1.call(e,r)?e[r]:void 0)||(e[r]={}),o=t[r],s;if(o)for(s in o){m1.call(i,s)||(i[s]=[]);let a=o[s];j2(i[s],Array.isArray(a)?a:a?[a]:[])}}}function j2(e,t){let r=-1,n=[];for(;++r<t.length;)(t[r].add==="after"?e:n).push(t[r]);Re(e,0,0,n)}var z2={tokenize:Y2,partial:!0},d1={tokenize:G2,partial:!0},g1={tokenize:J2,partial:!0},y1={tokenize:Q2,partial:!0},q2={tokenize:Z2,partial:!0},x1={name:"wwwAutolink",tokenize:V2,previous:w1},b1={name:"protocolAutolink",tokenize:W2,previous:v1},Cr={name:"emailAutolink",tokenize:H2,previous:S1},rr={};function zh(){return{text:rr}}var Zn=48;for(;Zn<123;)rr[Zn]=Cr,Zn++,Zn===58?Zn=65:Zn===91&&(Zn=97);rr[43]=Cr;rr[45]=Cr;rr[46]=Cr;rr[95]=Cr;rr[72]=[Cr,b1];rr[104]=[Cr,b1];rr[87]=[Cr,x1];rr[119]=[Cr,x1];function H2(e,t,r){let n=this,i,o;return s;function s(f){return!jh(f)||!S1.call(n,n.previous)||qh(n.events)?r(f):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),a(f))}function a(f){return jh(f)?(e.consume(f),a):f===64?(e.consume(f),l):r(f)}function l(f){return f===46?e.check(q2,c,u)(f):f===45||f===95||Oe(f)?(o=!0,e.consume(f),l):c(f)}function u(f){return e.consume(f),i=!0,l}function c(f){return o&&i&&Je(n.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(f)):r(f)}}function V2(e,t,r){let n=this;return i;function i(s){return s!==87&&s!==119||!w1.call(n,n.previous)||qh(n.events)?r(s):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(z2,e.attempt(d1,e.attempt(g1,o),r),r)(s))}function o(s){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(s)}}function W2(e,t,r){let n=this,i="",o=!1;return s;function s(f){return(f===72||f===104)&&v1.call(n,n.previous)&&!qh(n.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),i+=String.fromCodePoint(f),e.consume(f),a):r(f)}function a(f){if(Je(f)&&i.length<5)return i+=String.fromCodePoint(f),e.consume(f),a;if(f===58){let p=i.toLowerCase();if(p==="http"||p==="https")return e.consume(f),l}return r(f)}function l(f){return f===47?(e.consume(f),o?u:(o=!0,l)):r(f)}function u(f){return f===null||Vn(f)||ce(f)||tr(f)||Wn(f)?r(f):e.attempt(d1,e.attempt(g1,c),r)(f)}function c(f){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(f)}}function Y2(e,t,r){let n=0;return i;function i(s){return(s===87||s===119)&&n<3?(n++,e.consume(s),i):s===46&&n===3?(e.consume(s),o):r(s)}function o(s){return s===null?r(s):t(s)}}function G2(e,t,r){let n,i,o;return s;function s(u){return u===46||u===95?e.check(y1,l,a)(u):u===null||ce(u)||tr(u)||u!==45&&Wn(u)?l(u):(o=!0,e.consume(u),s)}function a(u){return u===95?n=!0:(i=n,n=void 0),e.consume(u),s}function l(u){return i||n||!o?r(u):t(u)}}function J2(e,t){let r=0,n=0;return i;function i(s){return s===40?(r++,e.consume(s),i):s===41&&n<r?o(s):s===33||s===34||s===38||s===39||s===41||s===42||s===44||s===46||s===58||s===59||s===60||s===63||s===93||s===95||s===126?e.check(y1,t,o)(s):s===null||ce(s)||tr(s)?t(s):(e.consume(s),i)}function o(s){return s===41&&n++,e.consume(s),i}}function Q2(e,t,r){return n;function n(a){return a===33||a===34||a===39||a===41||a===42||a===44||a===46||a===58||a===59||a===63||a===95||a===126?(e.consume(a),n):a===38?(e.consume(a),o):a===93?(e.consume(a),i):a===60||a===null||ce(a)||tr(a)?t(a):r(a)}function i(a){return a===null||a===40||a===91||ce(a)||tr(a)?t(a):n(a)}function o(a){return Je(a)?s(a):r(a)}function s(a){return a===59?(e.consume(a),n):Je(a)?(e.consume(a),s):r(a)}}function Z2(e,t,r){return n;function n(o){return e.consume(o),i}function i(o){return Oe(o)?r(o):t(o)}}function w1(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||ce(e)}function v1(e){return!Je(e)}function S1(e){return!(e===47||jh(e))}function jh(e){return e===43||e===45||e===46||e===95||Oe(e)}function qh(e){let t=e.length,r=!1;for(;t--;){let n=e[t][1];if((n.type==="labelLink"||n.type==="labelImage")&&!n._balanced){r=!0;break}if(n._gfmAutolinkLiteralWalkedInto){r=!1;break}}return e.length>0&&!r&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),r}function Dt(e){let t=[],r=-1,n=0,i=0;for(;++r<e.length;){let o=e.charCodeAt(r),s="";if(o===37&&Oe(e.charCodeAt(r+1))&&Oe(e.charCodeAt(r+2)))i=2;else if(o<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(o))||(s=String.fromCharCode(o));else if(o>55295&&o<57344){let a=e.charCodeAt(r+1);o<56320&&a>56319&&a<57344?(s=String.fromCharCode(o,a),i=1):s="\uFFFD"}else s=String.fromCharCode(o);s&&(t.push(e.slice(n,r),encodeURIComponent(s)),n=r+i+1,s=""),i&&(r+=i,i=0)}return t.join("")+e.slice(n)}function Kr(e,t,r){let n=[],i=-1;for(;++i<e.length;){let o=e[i].resolveAll;o&&!n.includes(o)&&(t=o(t,r),n.push(o))}return t}var Ns={name:"attention",resolveAll:X2,tokenize:K2};function X2(e,t){let r=-1,n,i,o,s,a,l,u,c;for(;++r<e.length;)if(e[r][0]==="enter"&&e[r][1].type==="attentionSequence"&&e[r][1]._close){for(n=r;n--;)if(e[n][0]==="exit"&&e[n][1].type==="attentionSequence"&&e[n][1]._open&&t.sliceSerialize(e[n][1]).charCodeAt(0)===t.sliceSerialize(e[r][1]).charCodeAt(0)){if((e[n][1]._close||e[r][1]._open)&&(e[r][1].end.offset-e[r][1].start.offset)%3&&!((e[n][1].end.offset-e[n][1].start.offset+e[r][1].end.offset-e[r][1].start.offset)%3))continue;l=e[n][1].end.offset-e[n][1].start.offset>1&&e[r][1].end.offset-e[r][1].start.offset>1?2:1;let f={...e[n][1].end},p={...e[r][1].start};k1(f,-l),k1(p,l),s={type:l>1?"strongSequence":"emphasisSequence",start:f,end:{...e[n][1].end}},a={type:l>1?"strongSequence":"emphasisSequence",start:{...e[r][1].start},end:p},o={type:l>1?"strongText":"emphasisText",start:{...e[n][1].end},end:{...e[r][1].start}},i={type:l>1?"strong":"emphasis",start:{...s.start},end:{...a.end}},e[n][1].end={...s.start},e[r][1].start={...a.end},u=[],e[n][1].end.offset-e[n][1].start.offset&&(u=pt(u,[["enter",e[n][1],t],["exit",e[n][1],t]])),u=pt(u,[["enter",i,t],["enter",s,t],["exit",s,t],["enter",o,t]]),u=pt(u,Kr(t.parser.constructs.insideSpan.null,e.slice(n+1,r),t)),u=pt(u,[["exit",o,t],["enter",a,t],["exit",a,t],["exit",i,t]]),e[r][1].end.offset-e[r][1].start.offset?(c=2,u=pt(u,[["enter",e[r][1],t],["exit",e[r][1],t]])):c=0,Re(e,n-1,r-n+3,u),r=n+u.length-c-2;break}}for(r=-1;++r<e.length;)e[r][1].type==="attentionSequence"&&(e[r][1].type="data");return e}function K2(e,t){let r=this.parser.constructs.attentionMarkers.null,n=this.previous,i=Tr(n),o;return s;function s(l){return o=l,e.enter("attentionSequence"),a(l)}function a(l){if(l===o)return e.consume(l),a;let u=e.exit("attentionSequence"),c=Tr(l),f=!c||c===2&&i||r.includes(l),p=!i||i===2&&c||r.includes(n);return u._open=!!(o===42?f:f&&(i||!p)),u._close=!!(o===42?p:p&&(c||!f)),t(l)}}function k1(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}var Hh={name:"autolink",tokenize:eL};function eL(e,t,r){let n=0;return i;function i(h){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(h),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),o}function o(h){return Je(h)?(e.consume(h),s):h===64?r(h):u(h)}function s(h){return h===43||h===45||h===46||Oe(h)?(n=1,a(h)):u(h)}function a(h){return h===58?(e.consume(h),n=0,l):(h===43||h===45||h===46||Oe(h))&&n++<32?(e.consume(h),a):(n=0,u(h))}function l(h){return h===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(h),e.exit("autolinkMarker"),e.exit("autolink"),t):h===null||h===32||h===60||Vn(h)?r(h):(e.consume(h),l)}function u(h){return h===64?(e.consume(h),c):kS(h)?(e.consume(h),u):r(h)}function c(h){return Oe(h)?f(h):r(h)}function f(h){return h===46?(e.consume(h),n=0,c):h===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(h),e.exit("autolinkMarker"),e.exit("autolink"),t):p(h)}function p(h){if((h===45||Oe(h))&&n++<63){let m=h===45?p:f;return e.consume(h),m}return r(h)}}function Z(e,t,r,n){let i=n?n-1:Number.POSITIVE_INFINITY,o=0;return s;function s(l){return J(l)?(e.enter(r),a(l)):t(l)}function a(l){return J(l)&&o++<i?(e.consume(l),a):(e.exit(r),t(l))}}var nr={partial:!0,tokenize:tL};function tL(e,t,r){return n;function n(o){return J(o)?Z(e,i,"linePrefix")(o):i(o)}function i(o){return o===null||H(o)?t(o):r(o)}}var cu={continuation:{tokenize:nL},exit:iL,name:"blockQuote",tokenize:rL};function rL(e,t,r){let n=this;return i;function i(s){if(s===62){let a=n.containerState;return a.open||(e.enter("blockQuote",{_container:!0}),a.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(s),e.exit("blockQuoteMarker"),o}return r(s)}function o(s){return J(s)?(e.enter("blockQuotePrefixWhitespace"),e.consume(s),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(s))}}function nL(e,t,r){let n=this;return i;function i(s){return J(s)?Z(e,o,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(s):o(s)}function o(s){return e.attempt(cu,t,r)(s)}}function iL(e){e.exit("blockQuote")}var fu={name:"characterEscape",tokenize:oL};function oL(e,t,r){return n;function n(o){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(o),e.exit("escapeMarker"),i}function i(o){return TS(o)?(e.enter("characterEscapeValue"),e.consume(o),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):r(o)}}var pu={name:"characterReference",tokenize:sL};function sL(e,t,r){let n=this,i=0,o,s;return a;function a(f){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(f),e.exit("characterReferenceMarker"),l}function l(f){return f===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(f),e.exit("characterReferenceMarkerNumeric"),u):(e.enter("characterReferenceValue"),o=31,s=Oe,c(f))}function u(f){return f===88||f===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(f),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),o=6,s=AS,c):(e.enter("characterReferenceValue"),o=7,s=Ps,c(f))}function c(f){if(f===59&&i){let p=e.exit("characterReferenceValue");return s===Oe&&!io(n.sliceSerialize(p))?r(f):(e.enter("characterReferenceMarker"),e.consume(f),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return s(f)&&i++<o?(e.consume(f),c):r(f)}}var A1={partial:!0,tokenize:lL},hu={concrete:!0,name:"codeFenced",tokenize:aL};function aL(e,t,r){let n=this,i={partial:!0,tokenize:q},o=0,s=0,a;return l;function l(A){return u(A)}function u(A){let R=n.events[n.events.length-1];return o=R&&R[1].type==="linePrefix"?R[2].sliceSerialize(R[1],!0).length:0,a=A,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),c(A)}function c(A){return A===a?(s++,e.consume(A),c):s<3?r(A):(e.exit("codeFencedFenceSequence"),J(A)?Z(e,f,"whitespace")(A):f(A))}function f(A){return A===null||H(A)?(e.exit("codeFencedFence"),n.interrupt?t(A):e.check(A1,x,z)(A)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),p(A))}function p(A){return A===null||H(A)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),f(A)):J(A)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),Z(e,h,"whitespace")(A)):A===96&&A===a?r(A):(e.consume(A),p)}function h(A){return A===null||H(A)?f(A):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),m(A))}function m(A){return A===null||H(A)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),f(A)):A===96&&A===a?r(A):(e.consume(A),m)}function x(A){return e.attempt(i,z,v)(A)}function v(A){return e.enter("lineEnding"),e.consume(A),e.exit("lineEnding"),w}function w(A){return o>0&&J(A)?Z(e,E,"linePrefix",o+1)(A):E(A)}function E(A){return A===null||H(A)?e.check(A1,x,z)(A):(e.enter("codeFlowValue"),b(A))}function b(A){return A===null||H(A)?(e.exit("codeFlowValue"),E(A)):(e.consume(A),b)}function z(A){return e.exit("codeFenced"),t(A)}function q(A,R,V){let $=0;return T;function T(O){return A.enter("lineEnding"),A.consume(O),A.exit("lineEnding"),fe}function fe(O){return A.enter("codeFencedFence"),J(O)?Z(A,B,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(O):B(O)}function B(O){return O===a?(A.enter("codeFencedFenceSequence"),_(O)):V(O)}function _(O){return O===a?($++,A.consume(O),_):$>=s?(A.exit("codeFencedFenceSequence"),J(O)?Z(A,I,"whitespace")(O):I(O)):V(O)}function I(O){return O===null||H(O)?(A.exit("codeFencedFence"),R(O)):V(O)}}}function lL(e,t,r){let n=this;return i;function i(s){return s===null?r(s):(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),o)}function o(s){return n.parser.lazy[n.now().line]?r(s):t(s)}}var Fs={name:"codeIndented",tokenize:cL},uL={partial:!0,tokenize:fL};function cL(e,t,r){let n=this;return i;function i(u){return e.enter("codeIndented"),Z(e,o,"linePrefix",5)(u)}function o(u){let c=n.events[n.events.length-1];return c&&c[1].type==="linePrefix"&&c[2].sliceSerialize(c[1],!0).length>=4?s(u):r(u)}function s(u){return u===null?l(u):H(u)?e.attempt(uL,s,l)(u):(e.enter("codeFlowValue"),a(u))}function a(u){return u===null||H(u)?(e.exit("codeFlowValue"),s(u)):(e.consume(u),a)}function l(u){return e.exit("codeIndented"),t(u)}}function fL(e,t,r){let n=this;return i;function i(s){return n.parser.lazy[n.now().line]?r(s):H(s)?(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),i):Z(e,o,"linePrefix",5)(s)}function o(s){let a=n.events[n.events.length-1];return a&&a[1].type==="linePrefix"&&a[2].sliceSerialize(a[1],!0).length>=4?t(s):H(s)?i(s):r(s)}}var Vh={name:"codeText",previous:hL,resolve:pL,tokenize:mL};function pL(e){let t=e.length-4,r=3,n,i;if((e[r][1].type==="lineEnding"||e[r][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(n=r;++n<t;)if(e[n][1].type==="codeTextData"){e[r][1].type="codeTextPadding",e[t][1].type="codeTextPadding",r+=2,t-=2;break}}for(n=r-1,t++;++n<=t;)i===void 0?n!==t&&e[n][1].type!=="lineEnding"&&(i=n):(n===t||e[n][1].type==="lineEnding")&&(e[i][1].type="codeTextData",n!==i+2&&(e[i][1].end=e[n-1][1].end,e.splice(i+2,n-i-2),t-=n-i-2,n=i+2),i=void 0);return e}function hL(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function mL(e,t,r){let n=this,i=0,o,s;return a;function a(p){return e.enter("codeText"),e.enter("codeTextSequence"),l(p)}function l(p){return p===96?(e.consume(p),i++,l):(e.exit("codeTextSequence"),u(p))}function u(p){return p===null?r(p):p===32?(e.enter("space"),e.consume(p),e.exit("space"),u):p===96?(s=e.enter("codeTextSequence"),o=0,f(p)):H(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),u):(e.enter("codeTextData"),c(p))}function c(p){return p===null||p===32||p===96||H(p)?(e.exit("codeTextData"),u(p)):(e.consume(p),c)}function f(p){return p===96?(e.consume(p),o++,f):o===i?(e.exit("codeTextSequence"),e.exit("codeText"),t(p)):(s.type="codeTextData",c(p))}}var mu=class{constructor(t){this.left=t?[...t]:[],this.right=[]}get(t){if(t<0||t>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+t+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return t<this.left.length?this.left[t]:this.right[this.right.length-t+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(t,r){let n=r??Number.POSITIVE_INFINITY;return n<this.left.length?this.left.slice(t,n):t>this.left.length?this.right.slice(this.right.length-n+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-n+this.left.length).reverse())}splice(t,r,n){let i=r||0;this.setCursor(Math.trunc(t));let o=this.right.splice(this.right.length-i,Number.POSITIVE_INFINITY);return n&&Rs(this.left,n),o.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(t){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(t)}pushMany(t){this.setCursor(Number.POSITIVE_INFINITY),Rs(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),Rs(this.right,t.reverse())}setCursor(t){if(!(t===this.left.length||t>this.left.length&&this.right.length===0||t<0&&this.left.length===0))if(t<this.left.length){let r=this.left.splice(t,Number.POSITIVE_INFINITY);Rs(this.right,r.reverse())}else{let r=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);Rs(this.left,r.reverse())}}};function Rs(e,t){let r=0;if(t.length<1e4)e.push(...t);else for(;r<t.length;)e.push(...t.slice(r,r+1e4)),r+=1e4}function du(e){let t={},r=-1,n,i,o,s,a,l,u,c=new mu(e);for(;++r<c.length;){for(;r in t;)r=t[r];if(n=c.get(r),r&&n[1].type==="chunkFlow"&&c.get(r-1)[1].type==="listItemPrefix"&&(l=n[1]._tokenizer.events,o=0,o<l.length&&l[o][1].type==="lineEndingBlank"&&(o+=2),o<l.length&&l[o][1].type==="content"))for(;++o<l.length&&l[o][1].type!=="content";)l[o][1].type==="chunkText"&&(l[o][1]._isInFirstContentOfListItem=!0,o++);if(n[0]==="enter")n[1].contentType&&(Object.assign(t,dL(c,r)),r=t[r],u=!0);else if(n[1]._container){for(o=r,i=void 0;o--&&(s=c.get(o),s[1].type==="lineEnding"||s[1].type==="lineEndingBlank");)s[0]==="enter"&&(i&&(c.get(i)[1].type="lineEndingBlank"),s[1].type="lineEnding",i=o);i&&(n[1].end={...c.get(i)[1].start},a=c.slice(i,r),a.unshift(n),c.splice(i,r-i+1,a))}}return Re(e,0,Number.POSITIVE_INFINITY,c.slice(0)),!u}function dL(e,t){let r=e.get(t)[1],n=e.get(t)[2],i=t-1,o=[],s=r._tokenizer||n.parser[r.contentType](r.start),a=s.events,l=[],u={},c,f,p=-1,h=r,m=0,x=0,v=[x];for(;h;){for(;e.get(++i)[1]!==h;);o.push(i),h._tokenizer||(c=n.sliceStream(h),h.next||c.push(null),f&&s.defineSkip(h.start),h._isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=!0),s.write(c),h._isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=void 0)),f=h,h=h.next}for(h=r;++p<a.length;)a[p][0]==="exit"&&a[p-1][0]==="enter"&&a[p][1].type===a[p-1][1].type&&a[p][1].start.line!==a[p][1].end.line&&(x=p+1,v.push(x),h._tokenizer=void 0,h.previous=void 0,h=h.next);for(s.events=[],h?(h._tokenizer=void 0,h.previous=void 0):v.pop(),p=v.length;p--;){let w=a.slice(v[p],v[p+1]),E=o.pop();l.push([E,E+w.length-1]),e.splice(E,2,w)}for(l.reverse(),p=-1;++p<l.length;)u[m+l[p][0]]=m+l[p][1],m+=l[p][1]-l[p][0]-1;return u}var Wh={resolve:yL,tokenize:xL},gL={partial:!0,tokenize:bL};function yL(e){return du(e),e}function xL(e,t){let r;return n;function n(a){return e.enter("content"),r=e.enter("chunkContent",{contentType:"content"}),i(a)}function i(a){return a===null?o(a):H(a)?e.check(gL,s,o)(a):(e.consume(a),i)}function o(a){return e.exit("chunkContent"),e.exit("content"),t(a)}function s(a){return e.consume(a),e.exit("chunkContent"),r.next=e.enter("chunkContent",{contentType:"content",previous:r}),r=r.next,i}}function bL(e,t,r){let n=this;return i;function i(s){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),Z(e,o,"linePrefix")}function o(s){if(s===null||H(s))return r(s);let a=n.events[n.events.length-1];return!n.parser.constructs.disable.null.includes("codeIndented")&&a&&a[1].type==="linePrefix"&&a[2].sliceSerialize(a[1],!0).length>=4?t(s):e.interrupt(n.parser.constructs.flow,r,t)(s)}}function gu(e,t,r,n,i,o,s,a,l){let u=l||Number.POSITIVE_INFINITY,c=0;return f;function f(w){return w===60?(e.enter(n),e.enter(i),e.enter(o),e.consume(w),e.exit(o),p):w===null||w===32||w===41||Vn(w)?r(w):(e.enter(n),e.enter(s),e.enter(a),e.enter("chunkString",{contentType:"string"}),x(w))}function p(w){return w===62?(e.enter(o),e.consume(w),e.exit(o),e.exit(i),e.exit(n),t):(e.enter(a),e.enter("chunkString",{contentType:"string"}),h(w))}function h(w){return w===62?(e.exit("chunkString"),e.exit(a),p(w)):w===null||w===60||H(w)?r(w):(e.consume(w),w===92?m:h)}function m(w){return w===60||w===62||w===92?(e.consume(w),h):h(w)}function x(w){return!c&&(w===null||w===41||ce(w))?(e.exit("chunkString"),e.exit(a),e.exit(s),e.exit(n),t(w)):c<u&&w===40?(e.consume(w),c++,x):w===41?(e.consume(w),c--,x):w===null||w===32||w===40||Vn(w)?r(w):(e.consume(w),w===92?v:x)}function v(w){return w===40||w===41||w===92?(e.consume(w),x):x(w)}}function yu(e,t,r,n,i,o){let s=this,a=0,l;return u;function u(h){return e.enter(n),e.enter(i),e.consume(h),e.exit(i),e.enter(o),c}function c(h){return a>999||h===null||h===91||h===93&&!l||h===94&&!a&&"_hiddenFootnoteSupport"in s.parser.constructs?r(h):h===93?(e.exit(o),e.enter(i),e.consume(h),e.exit(i),e.exit(n),t):H(h)?(e.enter("lineEnding"),e.consume(h),e.exit("lineEnding"),c):(e.enter("chunkString",{contentType:"string"}),f(h))}function f(h){return h===null||h===91||h===93||H(h)||a++>999?(e.exit("chunkString"),c(h)):(e.consume(h),l||(l=!J(h)),h===92?p:f)}function p(h){return h===91||h===92||h===93?(e.consume(h),a++,f):f(h)}}function xu(e,t,r,n,i,o){let s;return a;function a(p){return p===34||p===39||p===40?(e.enter(n),e.enter(i),e.consume(p),e.exit(i),s=p===40?41:p,l):r(p)}function l(p){return p===s?(e.enter(i),e.consume(p),e.exit(i),e.exit(n),t):(e.enter(o),u(p))}function u(p){return p===s?(e.exit(o),l(s)):p===null?r(p):H(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),Z(e,u,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),c(p))}function c(p){return p===s||p===null||H(p)?(e.exit("chunkString"),u(p)):(e.consume(p),p===92?f:c)}function f(p){return p===s||p===92?(e.consume(p),c):c(p)}}function Xn(e,t){let r;return n;function n(i){return H(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),r=!0,n):J(i)?Z(e,n,r?"linePrefix":"lineSuffix")(i):t(i)}}var Yh={name:"definition",tokenize:vL},wL={partial:!0,tokenize:SL};function vL(e,t,r){let n=this,i;return o;function o(h){return e.enter("definition"),s(h)}function s(h){return yu.call(n,e,a,r,"definitionLabel","definitionLabelMarker","definitionLabelString")(h)}function a(h){return i=ot(n.sliceSerialize(n.events[n.events.length-1][1]).slice(1,-1)),h===58?(e.enter("definitionMarker"),e.consume(h),e.exit("definitionMarker"),l):r(h)}function l(h){return ce(h)?Xn(e,u)(h):u(h)}function u(h){return gu(e,c,r,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(h)}function c(h){return e.attempt(wL,f,f)(h)}function f(h){return J(h)?Z(e,p,"whitespace")(h):p(h)}function p(h){return h===null||H(h)?(e.exit("definition"),n.parser.defined.push(i),t(h)):r(h)}}function SL(e,t,r){return n;function n(a){return ce(a)?Xn(e,i)(a):r(a)}function i(a){return xu(e,o,r,"definitionTitle","definitionTitleMarker","definitionTitleString")(a)}function o(a){return J(a)?Z(e,s,"whitespace")(a):s(a)}function s(a){return a===null||H(a)?t(a):r(a)}}var Gh={name:"hardBreakEscape",tokenize:kL};function kL(e,t,r){return n;function n(o){return e.enter("hardBreakEscape"),e.consume(o),i}function i(o){return H(o)?(e.exit("hardBreakEscape"),t(o)):r(o)}}var Jh={name:"headingAtx",resolve:AL,tokenize:TL};function AL(e,t){let r=e.length-2,n=3,i,o;return e[n][1].type==="whitespace"&&(n+=2),r-2>n&&e[r][1].type==="whitespace"&&(r-=2),e[r][1].type==="atxHeadingSequence"&&(n===r-1||r-4>n&&e[r-2][1].type==="whitespace")&&(r-=n+1===r?2:4),r>n&&(i={type:"atxHeadingText",start:e[n][1].start,end:e[r][1].end},o={type:"chunkText",start:e[n][1].start,end:e[r][1].end,contentType:"text"},Re(e,n,r-n+1,[["enter",i,t],["enter",o,t],["exit",o,t],["exit",i,t]])),e}function TL(e,t,r){let n=0;return i;function i(c){return e.enter("atxHeading"),o(c)}function o(c){return e.enter("atxHeadingSequence"),s(c)}function s(c){return c===35&&n++<6?(e.consume(c),s):c===null||ce(c)?(e.exit("atxHeadingSequence"),a(c)):r(c)}function a(c){return c===35?(e.enter("atxHeadingSequence"),l(c)):c===null||H(c)?(e.exit("atxHeading"),t(c)):J(c)?Z(e,a,"whitespace")(c):(e.enter("atxHeadingText"),u(c))}function l(c){return c===35?(e.consume(c),l):(e.exit("atxHeadingSequence"),a(c))}function u(c){return c===null||c===35||ce(c)?(e.exit("atxHeadingText"),a(c)):(e.consume(c),u)}}var T1=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],Qh=["pre","script","style","textarea"];var Zh={concrete:!0,name:"htmlFlow",resolveTo:_L,tokenize:IL},CL={partial:!0,tokenize:DL},EL={partial:!0,tokenize:PL};function _L(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function IL(e,t,r){let n=this,i,o,s,a,l;return u;function u(y){return c(y)}function c(y){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(y),f}function f(y){return y===33?(e.consume(y),p):y===47?(e.consume(y),o=!0,x):y===63?(e.consume(y),i=3,n.interrupt?t:d):Je(y)?(e.consume(y),s=String.fromCharCode(y),v):r(y)}function p(y){return y===45?(e.consume(y),i=2,h):y===91?(e.consume(y),i=5,a=0,m):Je(y)?(e.consume(y),i=4,n.interrupt?t:d):r(y)}function h(y){return y===45?(e.consume(y),n.interrupt?t:d):r(y)}function m(y){let oe="CDATA[";return y===oe.charCodeAt(a++)?(e.consume(y),a===oe.length?n.interrupt?t:B:m):r(y)}function x(y){return Je(y)?(e.consume(y),s=String.fromCharCode(y),v):r(y)}function v(y){if(y===null||y===47||y===62||ce(y)){let oe=y===47,me=s.toLowerCase();return!oe&&!o&&Qh.includes(me)?(i=1,n.interrupt?t(y):B(y)):T1.includes(s.toLowerCase())?(i=6,oe?(e.consume(y),w):n.interrupt?t(y):B(y)):(i=7,n.interrupt&&!n.parser.lazy[n.now().line]?r(y):o?E(y):b(y))}return y===45||Oe(y)?(e.consume(y),s+=String.fromCharCode(y),v):r(y)}function w(y){return y===62?(e.consume(y),n.interrupt?t:B):r(y)}function E(y){return J(y)?(e.consume(y),E):T(y)}function b(y){return y===47?(e.consume(y),T):y===58||y===95||Je(y)?(e.consume(y),z):J(y)?(e.consume(y),b):T(y)}function z(y){return y===45||y===46||y===58||y===95||Oe(y)?(e.consume(y),z):q(y)}function q(y){return y===61?(e.consume(y),A):J(y)?(e.consume(y),q):b(y)}function A(y){return y===null||y===60||y===61||y===62||y===96?r(y):y===34||y===39?(e.consume(y),l=y,R):J(y)?(e.consume(y),A):V(y)}function R(y){return y===l?(e.consume(y),l=null,$):y===null||H(y)?r(y):(e.consume(y),R)}function V(y){return y===null||y===34||y===39||y===47||y===60||y===61||y===62||y===96||ce(y)?q(y):(e.consume(y),V)}function $(y){return y===47||y===62||J(y)?b(y):r(y)}function T(y){return y===62?(e.consume(y),fe):r(y)}function fe(y){return y===null||H(y)?B(y):J(y)?(e.consume(y),fe):r(y)}function B(y){return y===45&&i===2?(e.consume(y),F):y===60&&i===1?(e.consume(y),W):y===62&&i===4?(e.consume(y),G):y===63&&i===3?(e.consume(y),d):y===93&&i===5?(e.consume(y),U):H(y)&&(i===6||i===7)?(e.exit("htmlFlowData"),e.check(CL,X,_)(y)):y===null||H(y)?(e.exit("htmlFlowData"),_(y)):(e.consume(y),B)}function _(y){return e.check(EL,I,X)(y)}function I(y){return e.enter("lineEnding"),e.consume(y),e.exit("lineEnding"),O}function O(y){return y===null||H(y)?_(y):(e.enter("htmlFlowData"),B(y))}function F(y){return y===45?(e.consume(y),d):B(y)}function W(y){return y===47?(e.consume(y),s="",M):B(y)}function M(y){if(y===62){let oe=s.toLowerCase();return Qh.includes(oe)?(e.consume(y),G):B(y)}return Je(y)&&s.length<8?(e.consume(y),s+=String.fromCharCode(y),M):B(y)}function U(y){return y===93?(e.consume(y),d):B(y)}function d(y){return y===62?(e.consume(y),G):y===45&&i===2?(e.consume(y),d):B(y)}function G(y){return y===null||H(y)?(e.exit("htmlFlowData"),X(y)):(e.consume(y),G)}function X(y){return e.exit("htmlFlow"),t(y)}}function PL(e,t,r){let n=this;return i;function i(s){return H(s)?(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),o):r(s)}function o(s){return n.parser.lazy[n.now().line]?r(s):t(s)}}function DL(e,t,r){return n;function n(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),e.attempt(nr,t,r)}}var Xh={name:"htmlText",tokenize:OL};function OL(e,t,r){let n=this,i,o,s;return a;function a(d){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(d),l}function l(d){return d===33?(e.consume(d),u):d===47?(e.consume(d),q):d===63?(e.consume(d),b):Je(d)?(e.consume(d),V):r(d)}function u(d){return d===45?(e.consume(d),c):d===91?(e.consume(d),o=0,m):Je(d)?(e.consume(d),E):r(d)}function c(d){return d===45?(e.consume(d),h):r(d)}function f(d){return d===null?r(d):d===45?(e.consume(d),p):H(d)?(s=f,W(d)):(e.consume(d),f)}function p(d){return d===45?(e.consume(d),h):f(d)}function h(d){return d===62?F(d):d===45?p(d):f(d)}function m(d){let G="CDATA[";return d===G.charCodeAt(o++)?(e.consume(d),o===G.length?x:m):r(d)}function x(d){return d===null?r(d):d===93?(e.consume(d),v):H(d)?(s=x,W(d)):(e.consume(d),x)}function v(d){return d===93?(e.consume(d),w):x(d)}function w(d){return d===62?F(d):d===93?(e.consume(d),w):x(d)}function E(d){return d===null||d===62?F(d):H(d)?(s=E,W(d)):(e.consume(d),E)}function b(d){return d===null?r(d):d===63?(e.consume(d),z):H(d)?(s=b,W(d)):(e.consume(d),b)}function z(d){return d===62?F(d):b(d)}function q(d){return Je(d)?(e.consume(d),A):r(d)}function A(d){return d===45||Oe(d)?(e.consume(d),A):R(d)}function R(d){return H(d)?(s=R,W(d)):J(d)?(e.consume(d),R):F(d)}function V(d){return d===45||Oe(d)?(e.consume(d),V):d===47||d===62||ce(d)?$(d):r(d)}function $(d){return d===47?(e.consume(d),F):d===58||d===95||Je(d)?(e.consume(d),T):H(d)?(s=$,W(d)):J(d)?(e.consume(d),$):F(d)}function T(d){return d===45||d===46||d===58||d===95||Oe(d)?(e.consume(d),T):fe(d)}function fe(d){return d===61?(e.consume(d),B):H(d)?(s=fe,W(d)):J(d)?(e.consume(d),fe):$(d)}function B(d){return d===null||d===60||d===61||d===62||d===96?r(d):d===34||d===39?(e.consume(d),i=d,_):H(d)?(s=B,W(d)):J(d)?(e.consume(d),B):(e.consume(d),I)}function _(d){return d===i?(e.consume(d),i=void 0,O):d===null?r(d):H(d)?(s=_,W(d)):(e.consume(d),_)}function I(d){return d===null||d===34||d===39||d===60||d===61||d===96?r(d):d===47||d===62||ce(d)?$(d):(e.consume(d),I)}function O(d){return d===47||d===62||ce(d)?$(d):r(d)}function F(d){return d===62?(e.consume(d),e.exit("htmlTextData"),e.exit("htmlText"),t):r(d)}function W(d){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),M}function M(d){return J(d)?Z(e,U,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(d):U(d)}function U(d){return e.enter("htmlTextData"),s(d)}}var Kn={name:"labelEnd",resolveAll:RL,resolveTo:LL,tokenize:BL},ML={tokenize:$L},NL={tokenize:UL},FL={tokenize:jL};function RL(e){let t=-1,r=[];for(;++t<e.length;){let n=e[t][1];if(r.push(e[t]),n.type==="labelImage"||n.type==="labelLink"||n.type==="labelEnd"){let i=n.type==="labelImage"?4:2;n.type="data",t+=i}}return e.length!==r.length&&Re(e,0,e.length,r),e}function LL(e,t){let r=e.length,n=0,i,o,s,a;for(;r--;)if(i=e[r][1],o){if(i.type==="link"||i.type==="labelLink"&&i._inactive)break;e[r][0]==="enter"&&i.type==="labelLink"&&(i._inactive=!0)}else if(s){if(e[r][0]==="enter"&&(i.type==="labelImage"||i.type==="labelLink")&&!i._balanced&&(o=r,i.type!=="labelLink")){n=2;break}}else i.type==="labelEnd"&&(s=r);let l={type:e[o][1].type==="labelLink"?"link":"image",start:{...e[o][1].start},end:{...e[e.length-1][1].end}},u={type:"label",start:{...e[o][1].start},end:{...e[s][1].end}},c={type:"labelText",start:{...e[o+n+2][1].end},end:{...e[s-2][1].start}};return a=[["enter",l,t],["enter",u,t]],a=pt(a,e.slice(o+1,o+n+3)),a=pt(a,[["enter",c,t]]),a=pt(a,Kr(t.parser.constructs.insideSpan.null,e.slice(o+n+4,s-3),t)),a=pt(a,[["exit",c,t],e[s-2],e[s-1],["exit",u,t]]),a=pt(a,e.slice(s+1)),a=pt(a,[["exit",l,t]]),Re(e,o,e.length,a),e}function BL(e,t,r){let n=this,i=n.events.length,o,s;for(;i--;)if((n.events[i][1].type==="labelImage"||n.events[i][1].type==="labelLink")&&!n.events[i][1]._balanced){o=n.events[i][1];break}return a;function a(p){return o?o._inactive?f(p):(s=n.parser.defined.includes(ot(n.sliceSerialize({start:o.end,end:n.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(p),e.exit("labelMarker"),e.exit("labelEnd"),l):r(p)}function l(p){return p===40?e.attempt(ML,c,s?c:f)(p):p===91?e.attempt(NL,c,s?u:f)(p):s?c(p):f(p)}function u(p){return e.attempt(FL,c,f)(p)}function c(p){return t(p)}function f(p){return o._balanced=!0,r(p)}}function $L(e,t,r){return n;function n(f){return e.enter("resource"),e.enter("resourceMarker"),e.consume(f),e.exit("resourceMarker"),i}function i(f){return ce(f)?Xn(e,o)(f):o(f)}function o(f){return f===41?c(f):gu(e,s,a,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(f)}function s(f){return ce(f)?Xn(e,l)(f):c(f)}function a(f){return r(f)}function l(f){return f===34||f===39||f===40?xu(e,u,r,"resourceTitle","resourceTitleMarker","resourceTitleString")(f):c(f)}function u(f){return ce(f)?Xn(e,c)(f):c(f)}function c(f){return f===41?(e.enter("resourceMarker"),e.consume(f),e.exit("resourceMarker"),e.exit("resource"),t):r(f)}}function UL(e,t,r){let n=this;return i;function i(a){return yu.call(n,e,o,s,"reference","referenceMarker","referenceString")(a)}function o(a){return n.parser.defined.includes(ot(n.sliceSerialize(n.events[n.events.length-1][1]).slice(1,-1)))?t(a):r(a)}function s(a){return r(a)}}function jL(e,t,r){return n;function n(o){return e.enter("reference"),e.enter("referenceMarker"),e.consume(o),e.exit("referenceMarker"),i}function i(o){return o===93?(e.enter("referenceMarker"),e.consume(o),e.exit("referenceMarker"),e.exit("reference"),t):r(o)}}var Kh={name:"labelStartImage",resolveAll:Kn.resolveAll,tokenize:zL};function zL(e,t,r){let n=this;return i;function i(a){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(a),e.exit("labelImageMarker"),o}function o(a){return a===91?(e.enter("labelMarker"),e.consume(a),e.exit("labelMarker"),e.exit("labelImage"),s):r(a)}function s(a){return a===94&&"_hiddenFootnoteSupport"in n.parser.constructs?r(a):t(a)}}var em={name:"labelStartLink",resolveAll:Kn.resolveAll,tokenize:qL};function qL(e,t,r){let n=this;return i;function i(s){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(s),e.exit("labelMarker"),e.exit("labelLink"),o}function o(s){return s===94&&"_hiddenFootnoteSupport"in n.parser.constructs?r(s):t(s)}}var Ls={name:"lineEnding",tokenize:HL};function HL(e,t){return r;function r(n){return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),Z(e,t,"linePrefix")}}var ei={name:"thematicBreak",tokenize:VL};function VL(e,t,r){let n=0,i;return o;function o(u){return e.enter("thematicBreak"),s(u)}function s(u){return i=u,a(u)}function a(u){return u===i?(e.enter("thematicBreakSequence"),l(u)):n>=3&&(u===null||H(u))?(e.exit("thematicBreak"),t(u)):r(u)}function l(u){return u===i?(e.consume(u),n++,l):(e.exit("thematicBreakSequence"),J(u)?Z(e,a,"whitespace")(u):a(u))}}var st={continuation:{tokenize:JL},exit:ZL,name:"list",tokenize:GL},WL={partial:!0,tokenize:XL},YL={partial:!0,tokenize:QL};function GL(e,t,r){let n=this,i=n.events[n.events.length-1],o=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0,s=0;return a;function a(h){let m=n.containerState.type||(h===42||h===43||h===45?"listUnordered":"listOrdered");if(m==="listUnordered"?!n.containerState.marker||h===n.containerState.marker:Ps(h)){if(n.containerState.type||(n.containerState.type=m,e.enter(m,{_container:!0})),m==="listUnordered")return e.enter("listItemPrefix"),h===42||h===45?e.check(ei,r,u)(h):u(h);if(!n.interrupt||h===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),l(h)}return r(h)}function l(h){return Ps(h)&&++s<10?(e.consume(h),l):(!n.interrupt||s<2)&&(n.containerState.marker?h===n.containerState.marker:h===41||h===46)?(e.exit("listItemValue"),u(h)):r(h)}function u(h){return e.enter("listItemMarker"),e.consume(h),e.exit("listItemMarker"),n.containerState.marker=n.containerState.marker||h,e.check(nr,n.interrupt?r:c,e.attempt(WL,p,f))}function c(h){return n.containerState.initialBlankLine=!0,o++,p(h)}function f(h){return J(h)?(e.enter("listItemPrefixWhitespace"),e.consume(h),e.exit("listItemPrefixWhitespace"),p):r(h)}function p(h){return n.containerState.size=o+n.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(h)}}function JL(e,t,r){let n=this;return n.containerState._closeFlow=void 0,e.check(nr,i,o);function i(a){return n.containerState.furtherBlankLines=n.containerState.furtherBlankLines||n.containerState.initialBlankLine,Z(e,t,"listItemIndent",n.containerState.size+1)(a)}function o(a){return n.containerState.furtherBlankLines||!J(a)?(n.containerState.furtherBlankLines=void 0,n.containerState.initialBlankLine=void 0,s(a)):(n.containerState.furtherBlankLines=void 0,n.containerState.initialBlankLine=void 0,e.attempt(YL,t,s)(a))}function s(a){return n.containerState._closeFlow=!0,n.interrupt=void 0,Z(e,e.attempt(st,t,r),"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(a)}}function QL(e,t,r){let n=this;return Z(e,i,"listItemIndent",n.containerState.size+1);function i(o){let s=n.events[n.events.length-1];return s&&s[1].type==="listItemIndent"&&s[2].sliceSerialize(s[1],!0).length===n.containerState.size?t(o):r(o)}}function ZL(e){e.exit(this.containerState.type)}function XL(e,t,r){let n=this;return Z(e,i,"listItemPrefixWhitespace",n.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function i(o){let s=n.events[n.events.length-1];return!J(o)&&s&&s[1].type==="listItemPrefixWhitespace"?t(o):r(o)}}var bu={name:"setextUnderline",resolveTo:KL,tokenize:eB};function KL(e,t){let r=e.length,n,i,o;for(;r--;)if(e[r][0]==="enter"){if(e[r][1].type==="content"){n=r;break}e[r][1].type==="paragraph"&&(i=r)}else e[r][1].type==="content"&&e.splice(r,1),!o&&e[r][1].type==="definition"&&(o=r);let s={type:"setextHeading",start:{...e[i][1].start},end:{...e[e.length-1][1].end}};return e[i][1].type="setextHeadingText",o?(e.splice(i,0,["enter",s,t]),e.splice(o+1,0,["exit",e[n][1],t]),e[n][1].end={...e[o][1].end}):e[n][1]=s,e.push(["exit",s,t]),e}function eB(e,t,r){let n=this,i;return o;function o(u){let c=n.events.length,f;for(;c--;)if(n.events[c][1].type!=="lineEnding"&&n.events[c][1].type!=="linePrefix"&&n.events[c][1].type!=="content"){f=n.events[c][1].type==="paragraph";break}return!n.parser.lazy[n.now().line]&&(n.interrupt||f)?(e.enter("setextHeadingLine"),i=u,s(u)):r(u)}function s(u){return e.enter("setextHeadingLineSequence"),a(u)}function a(u){return u===i?(e.consume(u),a):(e.exit("setextHeadingLineSequence"),J(u)?Z(e,l,"lineSuffix")(u):l(u))}function l(u){return u===null||H(u)?(e.exit("setextHeadingLine"),t(u)):r(u)}}var tB={tokenize:lB,partial:!0};function tm(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:oB,continuation:{tokenize:sB},exit:aB}},text:{91:{name:"gfmFootnoteCall",tokenize:iB},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:rB,resolveTo:nB}}}}function rB(e,t,r){let n=this,i=n.events.length,o=n.parser.gfmFootnotes||(n.parser.gfmFootnotes=[]),s;for(;i--;){let l=n.events[i][1];if(l.type==="labelImage"){s=l;break}if(l.type==="gfmFootnoteCall"||l.type==="labelLink"||l.type==="label"||l.type==="image"||l.type==="link")break}return a;function a(l){if(!s||!s._balanced)return r(l);let u=ot(n.sliceSerialize({start:s.end,end:n.now()}));return u.codePointAt(0)!==94||!o.includes(u.slice(1))?r(l):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(l),e.exit("gfmFootnoteCallLabelMarker"),t(l))}}function nB(e,t){let r=e.length,n;for(;r--;)if(e[r][1].type==="labelImage"&&e[r][0]==="enter"){n=e[r][1];break}e[r+1][1].type="data",e[r+3][1].type="gfmFootnoteCallLabelMarker";let i={type:"gfmFootnoteCall",start:Object.assign({},e[r+3][1].start),end:Object.assign({},e[e.length-1][1].end)},o={type:"gfmFootnoteCallMarker",start:Object.assign({},e[r+3][1].end),end:Object.assign({},e[r+3][1].end)};o.end.column++,o.end.offset++,o.end._bufferIndex++;let s={type:"gfmFootnoteCallString",start:Object.assign({},o.end),end:Object.assign({},e[e.length-1][1].start)},a={type:"chunkString",contentType:"string",start:Object.assign({},s.start),end:Object.assign({},s.end)},l=[e[r+1],e[r+2],["enter",i,t],e[r+3],e[r+4],["enter",o,t],["exit",o,t],["enter",s,t],["enter",a,t],["exit",a,t],["exit",s,t],e[e.length-2],e[e.length-1],["exit",i,t]];return e.splice(r,e.length-r+1,...l),e}function iB(e,t,r){let n=this,i=n.parser.gfmFootnotes||(n.parser.gfmFootnotes=[]),o=0,s;return a;function a(f){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(f),e.exit("gfmFootnoteCallLabelMarker"),l}function l(f){return f!==94?r(f):(e.enter("gfmFootnoteCallMarker"),e.consume(f),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",u)}function u(f){if(o>999||f===93&&!s||f===null||f===91||ce(f))return r(f);if(f===93){e.exit("chunkString");let p=e.exit("gfmFootnoteCallString");return i.includes(ot(n.sliceSerialize(p)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(f),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):r(f)}return ce(f)||(s=!0),o++,e.consume(f),f===92?c:u}function c(f){return f===91||f===92||f===93?(e.consume(f),o++,u):u(f)}}function oB(e,t,r){let n=this,i=n.parser.gfmFootnotes||(n.parser.gfmFootnotes=[]),o,s=0,a;return l;function l(m){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(m),e.exit("gfmFootnoteDefinitionLabelMarker"),u}function u(m){return m===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(m),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",c):r(m)}function c(m){if(s>999||m===93&&!a||m===null||m===91||ce(m))return r(m);if(m===93){e.exit("chunkString");let x=e.exit("gfmFootnoteDefinitionLabelString");return o=ot(n.sliceSerialize(x)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(m),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),p}return ce(m)||(a=!0),s++,e.consume(m),m===92?f:c}function f(m){return m===91||m===92||m===93?(e.consume(m),s++,c):c(m)}function p(m){return m===58?(e.enter("definitionMarker"),e.consume(m),e.exit("definitionMarker"),i.includes(o)||i.push(o),Z(e,h,"gfmFootnoteDefinitionWhitespace")):r(m)}function h(m){return t(m)}}function sB(e,t,r){return e.check(nr,t,e.attempt(tB,t,r))}function aB(e){e.exit("gfmFootnoteDefinition")}function lB(e,t,r){let n=this;return Z(e,i,"gfmFootnoteDefinitionIndent",5);function i(o){let s=n.events[n.events.length-1];return s&&s[1].type==="gfmFootnoteDefinitionIndent"&&s[2].sliceSerialize(s[1],!0).length===4?t(o):r(o)}}function rm(e){let r=(e||{}).singleTilde,n={name:"strikethrough",tokenize:o,resolveAll:i};return r==null&&(r=!0),{text:{126:n},insideSpan:{null:[n]},attentionMarkers:{null:[126]}};function i(s,a){let l=-1;for(;++l<s.length;)if(s[l][0]==="enter"&&s[l][1].type==="strikethroughSequenceTemporary"&&s[l][1]._close){let u=l;for(;u--;)if(s[u][0]==="exit"&&s[u][1].type==="strikethroughSequenceTemporary"&&s[u][1]._open&&s[l][1].end.offset-s[l][1].start.offset===s[u][1].end.offset-s[u][1].start.offset){s[l][1].type="strikethroughSequence",s[u][1].type="strikethroughSequence";let c={type:"strikethrough",start:Object.assign({},s[u][1].start),end:Object.assign({},s[l][1].end)},f={type:"strikethroughText",start:Object.assign({},s[u][1].end),end:Object.assign({},s[l][1].start)},p=[["enter",c,a],["enter",s[u][1],a],["exit",s[u][1],a],["enter",f,a]],h=a.parser.constructs.insideSpan.null;h&&Re(p,p.length,0,Kr(h,s.slice(u+1,l),a)),Re(p,p.length,0,[["exit",f,a],["enter",s[l][1],a],["exit",s[l][1],a],["exit",c,a]]),Re(s,u-1,l-u+3,p),l=u+p.length-2;break}}for(l=-1;++l<s.length;)s[l][1].type==="strikethroughSequenceTemporary"&&(s[l][1].type="data");return s}function o(s,a,l){let u=this.previous,c=this.events,f=0;return p;function p(m){return u===126&&c[c.length-1][1].type!=="characterEscape"?l(m):(s.enter("strikethroughSequenceTemporary"),h(m))}function h(m){let x=Tr(u);if(m===126)return f>1?l(m):(s.consume(m),f++,h);if(f<2&&!r)return l(m);let v=s.exit("strikethroughSequenceTemporary"),w=Tr(m);return v._open=!w||w===2&&!!x,v._close=!x||x===2&&!!w,a(m)}}}var wu=class{constructor(){this.map=[]}add(t,r,n){uB(this,t,r,n)}consume(t){if(this.map.sort(function(o,s){return o[0]-s[0]}),this.map.length===0)return;let r=this.map.length,n=[];for(;r>0;)r-=1,n.push(t.slice(this.map[r][0]+this.map[r][1]),this.map[r][2]),t.length=this.map[r][0];n.push([...t]),t.length=0;let i=n.pop();for(;i;)t.push(...i),i=n.pop();this.map.length=0}};function uB(e,t,r,n){let i=0;if(!(r===0&&n.length===0)){for(;i<e.map.length;){if(e.map[i][0]===t){e.map[i][1]+=r,e.map[i][2].push(...n);return}i+=1}e.map.push([t,r,n])}}function C1(e,t){let r=!1,n=[];for(;t<e.length;){let i=e[t];if(r){if(i[0]==="enter")i[1].type==="tableContent"&&n.push(e[t+1][1].type==="tableDelimiterMarker"?"left":"none");else if(i[1].type==="tableContent"){if(e[t-1][1].type==="tableDelimiterMarker"){let o=n.length-1;n[o]=n[o]==="left"?"center":"right"}}else if(i[1].type==="tableDelimiterRow")break}else i[0]==="enter"&&i[1].type==="tableDelimiterRow"&&(r=!0);t+=1}return n}function nm(){return{flow:{null:{name:"table",tokenize:cB,resolveAll:fB}}}}function cB(e,t,r){let n=this,i=0,o=0,s;return a;function a(T){let fe=n.events.length-1;for(;fe>-1;){let I=n.events[fe][1].type;if(I==="lineEnding"||I==="linePrefix")fe--;else break}let B=fe>-1?n.events[fe][1].type:null,_=B==="tableHead"||B==="tableRow"?A:l;return _===A&&n.parser.lazy[n.now().line]?r(T):_(T)}function l(T){return e.enter("tableHead"),e.enter("tableRow"),u(T)}function u(T){return T===124||(s=!0,o+=1),c(T)}function c(T){return T===null?r(T):H(T)?o>1?(o=0,n.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(T),e.exit("lineEnding"),h):r(T):J(T)?Z(e,c,"whitespace")(T):(o+=1,s&&(s=!1,i+=1),T===124?(e.enter("tableCellDivider"),e.consume(T),e.exit("tableCellDivider"),s=!0,c):(e.enter("data"),f(T)))}function f(T){return T===null||T===124||ce(T)?(e.exit("data"),c(T)):(e.consume(T),T===92?p:f)}function p(T){return T===92||T===124?(e.consume(T),f):f(T)}function h(T){return n.interrupt=!1,n.parser.lazy[n.now().line]?r(T):(e.enter("tableDelimiterRow"),s=!1,J(T)?Z(e,m,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(T):m(T))}function m(T){return T===45||T===58?v(T):T===124?(s=!0,e.enter("tableCellDivider"),e.consume(T),e.exit("tableCellDivider"),x):q(T)}function x(T){return J(T)?Z(e,v,"whitespace")(T):v(T)}function v(T){return T===58?(o+=1,s=!0,e.enter("tableDelimiterMarker"),e.consume(T),e.exit("tableDelimiterMarker"),w):T===45?(o+=1,w(T)):T===null||H(T)?z(T):q(T)}function w(T){return T===45?(e.enter("tableDelimiterFiller"),E(T)):q(T)}function E(T){return T===45?(e.consume(T),E):T===58?(s=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(T),e.exit("tableDelimiterMarker"),b):(e.exit("tableDelimiterFiller"),b(T))}function b(T){return J(T)?Z(e,z,"whitespace")(T):z(T)}function z(T){return T===124?m(T):T===null||H(T)?!s||i!==o?q(T):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(T)):q(T)}function q(T){return r(T)}function A(T){return e.enter("tableRow"),R(T)}function R(T){return T===124?(e.enter("tableCellDivider"),e.consume(T),e.exit("tableCellDivider"),R):T===null||H(T)?(e.exit("tableRow"),t(T)):J(T)?Z(e,R,"whitespace")(T):(e.enter("data"),V(T))}function V(T){return T===null||T===124||ce(T)?(e.exit("data"),R(T)):(e.consume(T),T===92?$:V)}function $(T){return T===92||T===124?(e.consume(T),V):V(T)}}function fB(e,t){let r=-1,n=!0,i=0,o=[0,0,0,0],s=[0,0,0,0],a=!1,l=0,u,c,f,p=new wu;for(;++r<e.length;){let h=e[r],m=h[1];h[0]==="enter"?m.type==="tableHead"?(a=!1,l!==0&&(E1(p,t,l,u,c),c=void 0,l=0),u={type:"table",start:Object.assign({},m.start),end:Object.assign({},m.end)},p.add(r,0,[["enter",u,t]])):m.type==="tableRow"||m.type==="tableDelimiterRow"?(n=!0,f=void 0,o=[0,0,0,0],s=[0,r+1,0,0],a&&(a=!1,c={type:"tableBody",start:Object.assign({},m.start),end:Object.assign({},m.end)},p.add(r,0,[["enter",c,t]])),i=m.type==="tableDelimiterRow"?2:c?3:1):i&&(m.type==="data"||m.type==="tableDelimiterMarker"||m.type==="tableDelimiterFiller")?(n=!1,s[2]===0&&(o[1]!==0&&(s[0]=s[1],f=vu(p,t,o,i,void 0,f),o=[0,0,0,0]),s[2]=r)):m.type==="tableCellDivider"&&(n?n=!1:(o[1]!==0&&(s[0]=s[1],f=vu(p,t,o,i,void 0,f)),o=s,s=[o[1],r,0,0])):m.type==="tableHead"?(a=!0,l=r):m.type==="tableRow"||m.type==="tableDelimiterRow"?(l=r,o[1]!==0?(s[0]=s[1],f=vu(p,t,o,i,r,f)):s[1]!==0&&(f=vu(p,t,s,i,r,f)),i=0):i&&(m.type==="data"||m.type==="tableDelimiterMarker"||m.type==="tableDelimiterFiller")&&(s[3]=r)}for(l!==0&&E1(p,t,l,u,c),p.consume(t.events),r=-1;++r<t.events.length;){let h=t.events[r];h[0]==="enter"&&h[1].type==="table"&&(h[1]._align=C1(t.events,r))}return e}function vu(e,t,r,n,i,o){let s=n===1?"tableHeader":n===2?"tableDelimiter":"tableData",a="tableContent";r[0]!==0&&(o.end=Object.assign({},oo(t.events,r[0])),e.add(r[0],0,[["exit",o,t]]));let l=oo(t.events,r[1]);if(o={type:s,start:Object.assign({},l),end:Object.assign({},l)},e.add(r[1],0,[["enter",o,t]]),r[2]!==0){let u=oo(t.events,r[2]),c=oo(t.events,r[3]),f={type:a,start:Object.assign({},u),end:Object.assign({},c)};if(e.add(r[2],0,[["enter",f,t]]),n!==2){let p=t.events[r[2]],h=t.events[r[3]];if(p[1].end=Object.assign({},h[1].end),p[1].type="chunkText",p[1].contentType="text",r[3]>r[2]+1){let m=r[2]+1,x=r[3]-r[2]-1;e.add(m,x,[])}}e.add(r[3]+1,0,[["exit",f,t]])}return i!==void 0&&(o.end=Object.assign({},oo(t.events,i)),e.add(i,0,[["exit",o,t]]),o=void 0),o}function E1(e,t,r,n,i){let o=[],s=oo(t.events,r);i&&(i.end=Object.assign({},s),o.push(["exit",i,t])),n.end=Object.assign({},s),o.push(["exit",n,t]),e.add(r+1,0,o)}function oo(e,t){let r=e[t],n=r[0]==="enter"?"start":"end";return r[1][n]}var pB={name:"tasklistCheck",tokenize:hB};function im(){return{text:{91:pB}}}function hB(e,t,r){let n=this;return i;function i(l){return n.previous!==null||!n._gfmTasklistFirstContentOfListItem?r(l):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(l),e.exit("taskListCheckMarker"),o)}function o(l){return ce(l)?(e.enter("taskListCheckValueUnchecked"),e.consume(l),e.exit("taskListCheckValueUnchecked"),s):l===88||l===120?(e.enter("taskListCheckValueChecked"),e.consume(l),e.exit("taskListCheckValueChecked"),s):r(l)}function s(l){return l===93?(e.enter("taskListCheckMarker"),e.consume(l),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),a):r(l)}function a(l){return H(l)?t(l):J(l)?e.check({tokenize:mB},t,r)(l):r(l)}}function mB(e,t,r){return Z(e,n,"whitespace");function n(i){return i===null?r(i):t(i)}}function _1(e){return uu([zh(),tm(),rm(e),nm(),im()])}var dB={};function Bs(e){let t=this,r=e||dB,n=t.data(),i=n.micromarkExtensions||(n.micromarkExtensions=[]),o=n.fromMarkdownExtensions||(n.fromMarkdownExtensions=[]),s=n.toMarkdownExtensions||(n.toMarkdownExtensions=[]);i.push(_1(r)),o.push($h()),s.push(Uh(r))}var I1={tokenize:gB};function gB(e){let t=e.attempt(this.parser.constructs.contentInitial,n,i),r;return t;function n(a){if(a===null){e.consume(a);return}return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),Z(e,t,"linePrefix")}function i(a){return e.enter("paragraph"),o(a)}function o(a){let l=e.enter("chunkText",{contentType:"text",previous:r});return r&&(r.next=l),r=l,s(a)}function s(a){if(a===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(a);return}return H(a)?(e.consume(a),e.exit("chunkText"),o):(e.consume(a),s)}}var D1={tokenize:yB},P1={tokenize:xB};function yB(e){let t=this,r=[],n=0,i,o,s;return a;function a(b){if(n<r.length){let z=r[n];return t.containerState=z[1],e.attempt(z[0].continuation,l,u)(b)}return u(b)}function l(b){if(n++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,i&&E();let z=t.events.length,q=z,A;for(;q--;)if(t.events[q][0]==="exit"&&t.events[q][1].type==="chunkFlow"){A=t.events[q][1].end;break}w(n);let R=z;for(;R<t.events.length;)t.events[R][1].end={...A},R++;return Re(t.events,q+1,0,t.events.slice(z)),t.events.length=R,u(b)}return a(b)}function u(b){if(n===r.length){if(!i)return p(b);if(i.currentConstruct&&i.currentConstruct.concrete)return m(b);t.interrupt=!!(i.currentConstruct&&!i._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(P1,c,f)(b)}function c(b){return i&&E(),w(n),p(b)}function f(b){return t.parser.lazy[t.now().line]=n!==r.length,s=t.now().offset,m(b)}function p(b){return t.containerState={},e.attempt(P1,h,m)(b)}function h(b){return n++,r.push([t.currentConstruct,t.containerState]),p(b)}function m(b){if(b===null){i&&E(),w(0),e.consume(b);return}return i=i||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:i,contentType:"flow",previous:o}),x(b)}function x(b){if(b===null){v(e.exit("chunkFlow"),!0),w(0),e.consume(b);return}return H(b)?(e.consume(b),v(e.exit("chunkFlow")),n=0,t.interrupt=void 0,a):(e.consume(b),x)}function v(b,z){let q=t.sliceStream(b);if(z&&q.push(null),b.previous=o,o&&(o.next=b),o=b,i.defineSkip(b.start),i.write(q),t.parser.lazy[b.start.line]){let A=i.events.length;for(;A--;)if(i.events[A][1].start.offset<s&&(!i.events[A][1].end||i.events[A][1].end.offset>s))return;let R=t.events.length,V=R,$,T;for(;V--;)if(t.events[V][0]==="exit"&&t.events[V][1].type==="chunkFlow"){if($){T=t.events[V][1].end;break}$=!0}for(w(n),A=R;A<t.events.length;)t.events[A][1].end={...T},A++;Re(t.events,V+1,0,t.events.slice(R)),t.events.length=A}}function w(b){let z=r.length;for(;z-- >b;){let q=r[z];t.containerState=q[1],q[0].exit.call(t,e)}r.length=b}function E(){i.write([null]),o=void 0,i=void 0,t.containerState._closeFlow=void 0}}function xB(e,t,r){return Z(e,e.attempt(this.parser.constructs.document,t,r),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}var O1={tokenize:bB};function bB(e){let t=this,r=e.attempt(nr,n,e.attempt(this.parser.constructs.flowInitial,i,Z(e,e.attempt(this.parser.constructs.flow,i,e.attempt(Wh,i)),"linePrefix")));return r;function n(o){if(o===null){e.consume(o);return}return e.enter("lineEndingBlank"),e.consume(o),e.exit("lineEndingBlank"),t.currentConstruct=void 0,r}function i(o){if(o===null){e.consume(o);return}return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),t.currentConstruct=void 0,r}}var M1={resolveAll:L1()},N1=R1("string"),F1=R1("text");function R1(e){return{resolveAll:L1(e==="text"?wB:void 0),tokenize:t};function t(r){let n=this,i=this.parser.constructs[e],o=r.attempt(i,s,a);return s;function s(c){return u(c)?o(c):a(c)}function a(c){if(c===null){r.consume(c);return}return r.enter("data"),r.consume(c),l}function l(c){return u(c)?(r.exit("data"),o(c)):(r.consume(c),l)}function u(c){if(c===null)return!0;let f=i[c],p=-1;if(f)for(;++p<f.length;){let h=f[p];if(!h.previous||h.previous.call(n,n.previous))return!0}return!1}}}function L1(e){return t;function t(r,n){let i=-1,o;for(;++i<=r.length;)o===void 0?r[i]&&r[i][1].type==="data"&&(o=i,i++):(!r[i]||r[i][1].type!=="data")&&(i!==o+2&&(r[o][1].end=r[i-1][1].end,r.splice(o+2,i-o-2),i=o+2),o=void 0);return e?e(r,n):r}}function wB(e,t){let r=0;for(;++r<=e.length;)if((r===e.length||e[r][1].type==="lineEnding")&&e[r-1][1].type==="data"){let n=e[r-1][1],i=t.sliceStream(n),o=i.length,s=-1,a=0,l;for(;o--;){let u=i[o];if(typeof u=="string"){for(s=u.length;u.charCodeAt(s-1)===32;)a++,s--;if(s)break;s=-1}else if(u===-2)l=!0,a++;else if(u!==-1){o++;break}}if(a){let u={type:r===e.length||l||a<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:o?s:n.start._bufferIndex+s,_index:n.start._index+o,line:n.end.line,column:n.end.column-a,offset:n.end.offset-a},end:{...n.end}};n.end={...u.start},n.start.offset===n.end.offset?Object.assign(n,u):(e.splice(r,0,["enter",u,t],["exit",u,t]),r+=2)}r++}return e}var om={};le(om,{attentionMarkers:()=>_B,contentInitial:()=>SB,disable:()=>IB,document:()=>vB,flow:()=>AB,flowInitial:()=>kB,insideSpan:()=>EB,string:()=>TB,text:()=>CB});var vB={42:st,43:st,45:st,48:st,49:st,50:st,51:st,52:st,53:st,54:st,55:st,56:st,57:st,62:cu},SB={91:Yh},kB={[-2]:Fs,[-1]:Fs,32:Fs},AB={35:Jh,42:ei,45:[bu,ei],60:Zh,61:bu,95:ei,96:hu,126:hu},TB={38:pu,92:fu},CB={[-5]:Ls,[-4]:Ls,[-3]:Ls,33:Kh,38:pu,42:Ns,60:[Hh,Xh],91:em,92:[Gh,fu],93:Kn,95:Ns,96:Vh},EB={null:[Ns,M1]},_B={null:[42,95]},IB={null:[]};function B1(e,t,r){let n={_bufferIndex:-1,_index:0,line:r&&r.line||1,column:r&&r.column||1,offset:r&&r.offset||0},i={},o=[],s=[],a=[],l=!0,u={attempt:$(R),check:$(V),consume:z,enter:q,exit:A,interrupt:$(V,{interrupt:!0})},c={code:null,containerState:{},defineSkip:w,events:[],now:v,parser:e,previous:null,sliceSerialize:m,sliceStream:x,write:h},f=t.tokenize.call(c,u),p;return t.resolveAll&&o.push(t),c;function h(_){return s=pt(s,_),E(),s[s.length-1]!==null?[]:(T(t,0),c.events=Kr(o,c.events,c),c.events)}function m(_,I){return DB(x(_),I)}function x(_){return PB(s,_)}function v(){let{_bufferIndex:_,_index:I,line:O,column:F,offset:W}=n;return{_bufferIndex:_,_index:I,line:O,column:F,offset:W}}function w(_){i[_.line]=_.column,B()}function E(){let _;for(;n._index<s.length;){let I=s[n._index];if(typeof I=="string")for(_=n._index,n._bufferIndex<0&&(n._bufferIndex=0);n._index===_&&n._bufferIndex<I.length;)b(I.charCodeAt(n._bufferIndex));else b(I)}}function b(_){l=void 0,p=_,f=f(_)}function z(_){H(_)?(n.line++,n.column=1,n.offset+=_===-3?2:1,B()):_!==-1&&(n.column++,n.offset++),n._bufferIndex<0?n._index++:(n._bufferIndex++,n._bufferIndex===s[n._index].length&&(n._bufferIndex=-1,n._index++)),c.previous=_,l=!0}function q(_,I){let O=I||{};return O.type=_,O.start=v(),c.events.push(["enter",O,c]),a.push(O),O}function A(_){let I=a.pop();return I.end=v(),c.events.push(["exit",I,c]),I}function R(_,I){T(_,I.from)}function V(_,I){I.restore()}function $(_,I){return O;function O(F,W,M){let U,d,G,X;return Array.isArray(F)?oe(F):"tokenize"in F?oe([F]):y(F);function y(g){return S;function S(C){let D=C!==null&&g[C],Y=C!==null&&g.null,de=[...Array.isArray(D)?D:D?[D]:[],...Array.isArray(Y)?Y:Y?[Y]:[]];return oe(de)(C)}}function oe(g){return U=g,d=0,g.length===0?M:me(g[d])}function me(g){return S;function S(C){return X=fe(),G=g,g.partial||(c.currentConstruct=g),g.name&&c.parser.constructs.disable.null.includes(g.name)?k(C):g.tokenize.call(I?Object.assign(Object.create(c),I):c,u,_e,k)(C)}}function _e(g){return l=!0,_(G,X),W}function k(g){return l=!0,X.restore(),++d<U.length?me(U[d]):M}}}function T(_,I){_.resolveAll&&!o.includes(_)&&o.push(_),_.resolve&&Re(c.events,I,c.events.length-I,_.resolve(c.events.slice(I),c)),_.resolveTo&&(c.events=_.resolveTo(c.events,c))}function fe(){let _=v(),I=c.previous,O=c.currentConstruct,F=c.events.length,W=Array.from(a);return{from:F,restore:M};function M(){n=_,c.previous=I,c.currentConstruct=O,c.events.length=F,a=W,B()}}function B(){n.line in i&&n.column<2&&(n.column=i[n.line],n.offset+=i[n.line]-1)}}function PB(e,t){let r=t.start._index,n=t.start._bufferIndex,i=t.end._index,o=t.end._bufferIndex,s;if(r===i)s=[e[r].slice(n,o)];else{if(s=e.slice(r,i),n>-1){let a=s[0];typeof a=="string"?s[0]=a.slice(n):s.shift()}o>0&&s.push(e[i].slice(0,o))}return s}function DB(e,t){let r=-1,n=[],i;for(;++r<e.length;){let o=e[r],s;if(typeof o=="string")s=o;else switch(o){case-5:{s="\r";break}case-4:{s=`
87
87
  `;break}case-3:{s=`\r
88
- `;break}case-2:{s=t?" ":" ";break}case-1:{if(!t&&i)continue;s=" ";break}default:s=String.fromCharCode(o)}i=o===-2,n.push(s)}return n.join("")}function sm(e){let n={constructs:uu([om,...(e||{}).extensions||[]]),content:i(I1),defined:[],document:i(O1),flow:i(M1),lazy:{},string:i(N1),text:i(F1)};return n;function i(o){return s;function s(a){return B1(n,o,a)}}}function am(e){for(;!du(e););return e}var $1=/[\0\t\n\r]/g;function lm(){let e=1,t="",r=!0,n;return i;function i(o,s,a){let l=[],u,c,f,p,h;for(o=t+(typeof o=="string"?o.toString():new TextDecoder(s||void 0).decode(o)),f=0,t="",r&&(o.charCodeAt(0)===65279&&f++,r=void 0);f<o.length;){if($1.lastIndex=f,u=$1.exec(o),p=u&&u.index!==void 0?u.index:o.length,h=o.charCodeAt(p),!u){t=o.slice(f);break}if(h===10&&f===p&&n)l.push(-3),n=void 0;else switch(n&&(l.push(-5),n=void 0),f<p&&(l.push(o.slice(f,p)),e+=p-f),h){case 0:{l.push(65533),e++;break}case 9:{for(c=Math.ceil(e/4)*4,l.push(-2);e++<c;)l.push(-1);break}case 10:{l.push(-4),e=1;break}default:n=!0,e=1}f=p+1}return a&&(n&&l.push(-5),t&&l.push(t),l.push(null)),l}}var j1={}.hasOwnProperty;function um(e,t,r){return typeof t!="string"&&(r=t,t=void 0),DB(r)(am(sm(r).document().write(lm()(e,t,!0))))}function DB(e){let t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:o(ur),autolinkProtocol:$,autolinkEmail:$,atxHeading:o(xe),blockQuote:o(C),characterEscape:$,characterReference:$,codeFenced:o(O),codeFencedFenceInfo:s,codeFencedFenceMeta:s,codeIndented:o(O,s),codeText:o(Y,s),codeTextData:$,data:$,codeFlowValue:$,definition:o(de),definitionDestinationString:s,definitionLabelString:s,definitionTitleString:s,emphasis:o(ye),hardBreakEscape:o(At),hardBreakTrailing:o(At),htmlFlow:o(tt,s),htmlFlowData:$,htmlText:o(tt,s),htmlTextData:$,image:o(bt),label:s,link:o(ur),listItem:o(Rt),listItemValue:p,listOrdered:o(Fr,f),listUnordered:o(Fr),paragraph:o(Vt),reference:y,referenceString:s,resourceDestinationString:s,resourceTitleString:s,setextHeading:o(xe),strong:o(Tt),thematicBreak:o(Rr)},exit:{atxHeading:l(),atxHeadingSequence:q,autolink:l(),autolinkEmail:S,autolinkProtocol:g,blockQuote:l(),characterEscapeValue:T,characterReferenceMarkerHexadecimal:me,characterReferenceMarkerNumeric:me,characterReferenceValue:_e,characterReference:k,codeFenced:l(v),codeFencedFence:x,codeFencedFenceInfo:h,codeFencedFenceMeta:m,codeFlowValue:T,codeIndented:l(w),codeText:l(M),codeTextData:T,data:T,definition:l(),definitionDestinationString:z,definitionLabelString:E,definitionTitleString:b,emphasis:l(),hardBreakEscape:l(B),hardBreakTrailing:l(B),htmlFlow:l(_),htmlFlowData:T,htmlText:l(I),htmlTextData:T,image:l(W),label:U,labelText:P,lineEnding:fe,link:l(F),listItem:l(),listOrdered:l(),listUnordered:l(),paragraph:l(),referenceString:oe,resourceDestinationString:d,resourceTitleString:G,resource:X,setextHeading:l(V),setextHeadingLineSequence:R,setextHeadingText:A,strong:l(),thematicBreak:l()}};z1(t,(e||{}).mdastExtensions||[]);let r={};return n;function n(D){let j={type:"root",children:[]},te={stack:[j],tokenStack:[],config:t,enter:a,exit:u,buffer:s,resume:c,data:r},ae=[],ve=-1;for(;++ve<D.length;)if(D[ve][1].type==="listOrdered"||D[ve][1].type==="listUnordered")if(D[ve][0]==="enter")ae.push(ve);else{let Lt=ae.pop();ve=i(D,Lt,ve)}for(ve=-1;++ve<D.length;){let Lt=t[D[ve][0]];j1.call(Lt,D[ve][1].type)&&Lt[D[ve][1].type].call(Object.assign({sliceSerialize:D[ve][2].sliceSerialize},te),D[ve][1])}if(te.tokenStack.length>0){let Lt=te.tokenStack[te.tokenStack.length-1];(Lt[1]||U1).call(te,void 0,Lt[0])}for(j.position={start:en(D.length>0?D[0][1].start:{line:1,column:1,offset:0}),end:en(D.length>0?D[D.length-2][1].end:{line:1,column:1,offset:0})},ve=-1;++ve<t.transforms.length;)j=t.transforms[ve](j)||j;return j}function i(D,j,te){let ae=j-1,ve=-1,Lt=!1,fn,cr,Oo,Mo;for(;++ae<=te;){let wt=D[ae];switch(wt[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{wt[0]==="enter"?ve++:ve--,Mo=void 0;break}case"lineEndingBlank":{wt[0]==="enter"&&(fn&&!Mo&&!ve&&!Oo&&(Oo=ae),Mo=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:Mo=void 0}if(!ve&&wt[0]==="enter"&&wt[1].type==="listItemPrefix"||ve===-1&&wt[0]==="exit"&&(wt[1].type==="listUnordered"||wt[1].type==="listOrdered")){if(fn){let fi=ae;for(cr=void 0;fi--;){let fr=D[fi];if(fr[1].type==="lineEnding"||fr[1].type==="lineEndingBlank"){if(fr[0]==="exit")continue;cr&&(D[cr][1].type="lineEndingBlank",Lt=!0),fr[1].type="lineEnding",cr=fi}else if(!(fr[1].type==="linePrefix"||fr[1].type==="blockQuotePrefix"||fr[1].type==="blockQuotePrefixWhitespace"||fr[1].type==="blockQuoteMarker"||fr[1].type==="listItemIndent"))break}Oo&&(!cr||Oo<cr)&&(fn._spread=!0),fn.end=Object.assign({},cr?D[cr][1].start:wt[1].end),D.splice(cr||ae,0,["exit",fn,wt[2]]),ae++,te++}if(wt[1].type==="listItemPrefix"){let fi={type:"listItem",_spread:!1,start:Object.assign({},wt[1].start),end:void 0};fn=fi,D.splice(ae,0,["enter",fi,wt[2]]),ae++,te++,Oo=void 0,Mo=!0}}}return D[j][1]._spread=Lt,te}function o(D,j){return te;function te(ae){a.call(this,D(ae),ae),j&&j.call(this,ae)}}function s(){this.stack.push({type:"fragment",children:[]})}function a(D,j,te){this.stack[this.stack.length-1].children.push(D),this.stack.push(D),this.tokenStack.push([j,te||void 0]),D.position={start:en(j.start),end:void 0}}function l(D){return j;function j(te){D&&D.call(this,te),u.call(this,te)}}function u(D,j){let te=this.stack.pop(),ae=this.tokenStack.pop();if(ae)ae[0].type!==D.type&&(j?j.call(this,D,ae[0]):(ae[1]||U1).call(this,D,ae[0]));else throw new Error("Cannot close `"+D.type+"` ("+Qr({start:D.start,end:D.end})+"): it\u2019s not open");te.position.end=en(D.end)}function c(){return Gn(this.stack.pop())}function f(){this.data.expectingFirstListItemValue=!0}function p(D){if(this.data.expectingFirstListItemValue){let j=this.stack[this.stack.length-2];j.start=Number.parseInt(this.sliceSerialize(D),10),this.data.expectingFirstListItemValue=void 0}}function h(){let D=this.resume(),j=this.stack[this.stack.length-1];j.lang=D}function m(){let D=this.resume(),j=this.stack[this.stack.length-1];j.meta=D}function x(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function v(){let D=this.resume(),j=this.stack[this.stack.length-1];j.value=D.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function w(){let D=this.resume(),j=this.stack[this.stack.length-1];j.value=D.replace(/(\r?\n|\r)$/g,"")}function E(D){let j=this.resume(),te=this.stack[this.stack.length-1];te.label=j,te.identifier=ot(this.sliceSerialize(D)).toLowerCase()}function b(){let D=this.resume(),j=this.stack[this.stack.length-1];j.title=D}function z(){let D=this.resume(),j=this.stack[this.stack.length-1];j.url=D}function q(D){let j=this.stack[this.stack.length-1];if(!j.depth){let te=this.sliceSerialize(D).length;j.depth=te}}function A(){this.data.setextHeadingSlurpLineEnding=!0}function R(D){let j=this.stack[this.stack.length-1];j.depth=this.sliceSerialize(D).codePointAt(0)===61?1:2}function V(){this.data.setextHeadingSlurpLineEnding=void 0}function $(D){let te=this.stack[this.stack.length-1].children,ae=te[te.length-1];(!ae||ae.type!=="text")&&(ae=Be(),ae.position={start:en(D.start),end:void 0},te.push(ae)),this.stack.push(ae)}function T(D){let j=this.stack.pop();j.value+=this.sliceSerialize(D),j.position.end=en(D.end)}function fe(D){let j=this.stack[this.stack.length-1];if(this.data.atHardBreak){let te=j.children[j.children.length-1];te.position.end=en(D.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(j.type)&&($.call(this,D),T.call(this,D))}function B(){this.data.atHardBreak=!0}function _(){let D=this.resume(),j=this.stack[this.stack.length-1];j.value=D}function I(){let D=this.resume(),j=this.stack[this.stack.length-1];j.value=D}function M(){let D=this.resume(),j=this.stack[this.stack.length-1];j.value=D}function F(){let D=this.stack[this.stack.length-1];if(this.data.inReference){let j=this.data.referenceType||"shortcut";D.type+="Reference",D.referenceType=j,delete D.url,delete D.title}else delete D.identifier,delete D.label;this.data.referenceType=void 0}function W(){let D=this.stack[this.stack.length-1];if(this.data.inReference){let j=this.data.referenceType||"shortcut";D.type+="Reference",D.referenceType=j,delete D.url,delete D.title}else delete D.identifier,delete D.label;this.data.referenceType=void 0}function P(D){let j=this.sliceSerialize(D),te=this.stack[this.stack.length-2];te.label=lu(j),te.identifier=ot(j).toLowerCase()}function U(){let D=this.stack[this.stack.length-1],j=this.resume(),te=this.stack[this.stack.length-1];if(this.data.inReference=!0,te.type==="link"){let ae=D.children;te.children=ae}else te.alt=j}function d(){let D=this.resume(),j=this.stack[this.stack.length-1];j.url=D}function G(){let D=this.resume(),j=this.stack[this.stack.length-1];j.title=D}function X(){this.data.inReference=void 0}function y(){this.data.referenceType="collapsed"}function oe(D){let j=this.resume(),te=this.stack[this.stack.length-1];te.label=j,te.identifier=ot(this.sliceSerialize(D)).toLowerCase(),this.data.referenceType="full"}function me(D){this.data.characterReferenceType=D.type}function _e(D){let j=this.sliceSerialize(D),te=this.data.characterReferenceType,ae;te?(ae=au(j,te==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):ae=io(j);let ve=this.stack[this.stack.length-1];ve.value+=ae}function k(D){let j=this.stack.pop();j.position.end=en(D.end)}function g(D){T.call(this,D);let j=this.stack[this.stack.length-1];j.url=this.sliceSerialize(D)}function S(D){T.call(this,D);let j=this.stack[this.stack.length-1];j.url="mailto:"+this.sliceSerialize(D)}function C(){return{type:"blockquote",children:[]}}function O(){return{type:"code",lang:null,meta:null,value:""}}function Y(){return{type:"inlineCode",value:""}}function de(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function ye(){return{type:"emphasis",children:[]}}function xe(){return{type:"heading",depth:0,children:[]}}function At(){return{type:"break"}}function tt(){return{type:"html",value:""}}function bt(){return{type:"image",title:null,url:"",alt:null}}function ur(){return{type:"link",title:null,url:"",children:[]}}function Fr(D){return{type:"list",ordered:D.type==="listOrdered",start:null,spread:D._spread,children:[]}}function Rt(D){return{type:"listItem",spread:D._spread,checked:null,children:[]}}function Vt(){return{type:"paragraph",children:[]}}function Tt(){return{type:"strong",children:[]}}function Be(){return{type:"text",value:""}}function Rr(){return{type:"thematicBreak"}}}function en(e){return{line:e.line,column:e.column,offset:e.offset}}function z1(e,t){let r=-1;for(;++r<t.length;){let n=t[r];Array.isArray(n)?z1(e,n):OB(e,n)}}function OB(e,t){let r;for(r in t)if(j1.call(t,r))switch(r){case"canContainEols":{let n=t[r];n&&e[r].push(...n);break}case"transforms":{let n=t[r];n&&e[r].push(...n);break}case"enter":case"exit":{let n=t[r];n&&Object.assign(e[r],n);break}}}function U1(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+Qr({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+Qr({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+Qr({start:t.start,end:t.end})+") is still open")}function $s(e){let t=this;t.parser=r;function r(n){return um(n,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}var H1=$e(q1(),1),Us=Object.assign(ti(Error),{eval:ti(EvalError),range:ti(RangeError),reference:ti(ReferenceError),syntax:ti(SyntaxError),type:ti(TypeError),uri:ti(URIError)});function ti(e){return t.displayName=e.displayName||e.name,t;function t(r,...n){let i=r&&(0,H1.default)(r,...n);return new e(i)}}var Su={}.hasOwnProperty,V1={yaml:"-",toml:"+"};function so(e){let t=[],r=-1,n=Array.isArray(e)?e:e?[e]:["yaml"];for(;++r<n.length;)t[r]=MB(n[r]);return t}function MB(e){let t=e;if(typeof t=="string"){if(!Su.call(V1,t))throw Us("Missing matter definition for `%s`",t);t={type:t,marker:V1[t]}}else if(typeof t!="object")throw Us("Expected matter to be an object, not `%j`",t);if(!Su.call(t,"type"))throw Us("Missing `type` in matter `%j`",t);if(!Su.call(t,"fence")&&!Su.call(t,"marker"))throw Us("Missing `marker` or `fence` in matter `%j`",t);return t}function pm(e){let t=so(e),r={},n=-1;for(;++n<t.length;){let i=t[n],o=fm(i,"open").charCodeAt(0),s=PB(i),a=r[o];Array.isArray(a)?a.push(s):r[o]=[s]}return{flow:r}}function PB(e){let t=e.anywhere,r=e.type,n=r+"Fence",i=n+"Sequence",o=r+"Value",s={tokenize:c,partial:!0},a,l=0;return{tokenize:u,concrete:!0};function u(f,p,h){let m=this;return x;function x(R){let V=m.now();return V.column===1&&(V.line===1||t)&&(a=fm(e,"open"),l=0,R===a.charCodeAt(l))?(f.enter(r),f.enter(n),f.enter(i),v(R)):h(R)}function v(R){return l===a.length?(f.exit(i),J(R)?(f.enter("whitespace"),w(R)):E(R)):R===a.charCodeAt(l++)?(f.consume(R),v):h(R)}function w(R){return J(R)?(f.consume(R),w):(f.exit("whitespace"),E(R))}function E(R){return H(R)?(f.exit(n),f.enter("lineEnding"),f.consume(R),f.exit("lineEnding"),a=fm(e,"close"),l=0,f.attempt(s,A,b)):h(R)}function b(R){return R===null||H(R)?q(R):(f.enter(o),z(R))}function z(R){return R===null||H(R)?(f.exit(o),q(R)):(f.consume(R),z)}function q(R){return R===null?h(R):(f.enter("lineEnding"),f.consume(R),f.exit("lineEnding"),f.attempt(s,A,b))}function A(R){return f.exit(r),p(R)}}function c(f,p,h){let m=0;return x;function x(b){return b===a.charCodeAt(m)?(f.enter(n),f.enter(i),v(b)):h(b)}function v(b){return m===a.length?(f.exit(i),J(b)?(f.enter("whitespace"),w(b)):E(b)):b===a.charCodeAt(m++)?(f.consume(b),v):h(b)}function w(b){return J(b)?(f.consume(b),w):(f.exit("whitespace"),E(b))}function E(b){return b===null||H(b)?(f.exit(n),p(b)):h(b)}}}function fm(e,t){return e.marker?W1(e.marker,t).repeat(3):W1(e.fence,t)}function W1(e,t){return typeof e=="string"?e:e[t]}function mm(e){let t=so(e),r={},n={},i=-1;for(;++i<t.length;){let o=t[i];r[o.type]=NB(o),n[o.type]=FB,n[o.type+"Value"]=RB}return{enter:r,exit:n}}function NB(e){return t;function t(r){this.enter({type:e.type,value:""},r),this.buffer()}}function FB(e){let t=this.resume(),r=this.stack[this.stack.length-1];"value"in r,this.exit(e),r.value=t.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,"")}function RB(e){this.config.enter.data.call(this,e),this.config.exit.data.call(this,e)}function dm(e){let t=[],r={},n=so(e),i=-1;for(;++i<n.length;){let o=n[i];r[o.type]=LB(o);let s=hm(o,"open");t.push({atBreak:!0,character:s.charAt(0),after:Tn(s.charAt(1))})}return{unsafe:t,handlers:r}}function LB(e){let t=hm(e,"open"),r=hm(e,"close");return n;function n(i){return t+(i.value?`
88
+ `;break}case-2:{s=t?" ":" ";break}case-1:{if(!t&&i)continue;s=" ";break}default:s=String.fromCharCode(o)}i=o===-2,n.push(s)}return n.join("")}function sm(e){let n={constructs:uu([om,...(e||{}).extensions||[]]),content:i(I1),defined:[],document:i(D1),flow:i(O1),lazy:{},string:i(N1),text:i(F1)};return n;function i(o){return s;function s(a){return B1(n,o,a)}}}function am(e){for(;!du(e););return e}var $1=/[\0\t\n\r]/g;function lm(){let e=1,t="",r=!0,n;return i;function i(o,s,a){let l=[],u,c,f,p,h;for(o=t+(typeof o=="string"?o.toString():new TextDecoder(s||void 0).decode(o)),f=0,t="",r&&(o.charCodeAt(0)===65279&&f++,r=void 0);f<o.length;){if($1.lastIndex=f,u=$1.exec(o),p=u&&u.index!==void 0?u.index:o.length,h=o.charCodeAt(p),!u){t=o.slice(f);break}if(h===10&&f===p&&n)l.push(-3),n=void 0;else switch(n&&(l.push(-5),n=void 0),f<p&&(l.push(o.slice(f,p)),e+=p-f),h){case 0:{l.push(65533),e++;break}case 9:{for(c=Math.ceil(e/4)*4,l.push(-2);e++<c;)l.push(-1);break}case 10:{l.push(-4),e=1;break}default:n=!0,e=1}f=p+1}return a&&(n&&l.push(-5),t&&l.push(t),l.push(null)),l}}var j1={}.hasOwnProperty;function um(e,t,r){return typeof t!="string"&&(r=t,t=void 0),OB(r)(am(sm(r).document().write(lm()(e,t,!0))))}function OB(e){let t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:o(ur),autolinkProtocol:$,autolinkEmail:$,atxHeading:o(xe),blockQuote:o(C),characterEscape:$,characterReference:$,codeFenced:o(D),codeFencedFenceInfo:s,codeFencedFenceMeta:s,codeIndented:o(D,s),codeText:o(Y,s),codeTextData:$,data:$,codeFlowValue:$,definition:o(de),definitionDestinationString:s,definitionLabelString:s,definitionTitleString:s,emphasis:o(ye),hardBreakEscape:o(At),hardBreakTrailing:o(At),htmlFlow:o(tt,s),htmlFlowData:$,htmlText:o(tt,s),htmlTextData:$,image:o(bt),label:s,link:o(ur),listItem:o(Rt),listItemValue:p,listOrdered:o(Fr,f),listUnordered:o(Fr),paragraph:o(Vt),reference:y,referenceString:s,resourceDestinationString:s,resourceTitleString:s,setextHeading:o(xe),strong:o(Tt),thematicBreak:o(Rr)},exit:{atxHeading:l(),atxHeadingSequence:q,autolink:l(),autolinkEmail:S,autolinkProtocol:g,blockQuote:l(),characterEscapeValue:T,characterReferenceMarkerHexadecimal:me,characterReferenceMarkerNumeric:me,characterReferenceValue:_e,characterReference:k,codeFenced:l(v),codeFencedFence:x,codeFencedFenceInfo:h,codeFencedFenceMeta:m,codeFlowValue:T,codeIndented:l(w),codeText:l(O),codeTextData:T,data:T,definition:l(),definitionDestinationString:z,definitionLabelString:E,definitionTitleString:b,emphasis:l(),hardBreakEscape:l(B),hardBreakTrailing:l(B),htmlFlow:l(_),htmlFlowData:T,htmlText:l(I),htmlTextData:T,image:l(W),label:U,labelText:M,lineEnding:fe,link:l(F),listItem:l(),listOrdered:l(),listUnordered:l(),paragraph:l(),referenceString:oe,resourceDestinationString:d,resourceTitleString:G,resource:X,setextHeading:l(V),setextHeadingLineSequence:R,setextHeadingText:A,strong:l(),thematicBreak:l()}};z1(t,(e||{}).mdastExtensions||[]);let r={};return n;function n(P){let j={type:"root",children:[]},te={stack:[j],tokenStack:[],config:t,enter:a,exit:u,buffer:s,resume:c,data:r},ae=[],ve=-1;for(;++ve<P.length;)if(P[ve][1].type==="listOrdered"||P[ve][1].type==="listUnordered")if(P[ve][0]==="enter")ae.push(ve);else{let Lt=ae.pop();ve=i(P,Lt,ve)}for(ve=-1;++ve<P.length;){let Lt=t[P[ve][0]];j1.call(Lt,P[ve][1].type)&&Lt[P[ve][1].type].call(Object.assign({sliceSerialize:P[ve][2].sliceSerialize},te),P[ve][1])}if(te.tokenStack.length>0){let Lt=te.tokenStack[te.tokenStack.length-1];(Lt[1]||U1).call(te,void 0,Lt[0])}for(j.position={start:en(P.length>0?P[0][1].start:{line:1,column:1,offset:0}),end:en(P.length>0?P[P.length-2][1].end:{line:1,column:1,offset:0})},ve=-1;++ve<t.transforms.length;)j=t.transforms[ve](j)||j;return j}function i(P,j,te){let ae=j-1,ve=-1,Lt=!1,fn,cr,Do,Oo;for(;++ae<=te;){let wt=P[ae];switch(wt[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{wt[0]==="enter"?ve++:ve--,Oo=void 0;break}case"lineEndingBlank":{wt[0]==="enter"&&(fn&&!Oo&&!ve&&!Do&&(Do=ae),Oo=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:Oo=void 0}if(!ve&&wt[0]==="enter"&&wt[1].type==="listItemPrefix"||ve===-1&&wt[0]==="exit"&&(wt[1].type==="listUnordered"||wt[1].type==="listOrdered")){if(fn){let fi=ae;for(cr=void 0;fi--;){let fr=P[fi];if(fr[1].type==="lineEnding"||fr[1].type==="lineEndingBlank"){if(fr[0]==="exit")continue;cr&&(P[cr][1].type="lineEndingBlank",Lt=!0),fr[1].type="lineEnding",cr=fi}else if(!(fr[1].type==="linePrefix"||fr[1].type==="blockQuotePrefix"||fr[1].type==="blockQuotePrefixWhitespace"||fr[1].type==="blockQuoteMarker"||fr[1].type==="listItemIndent"))break}Do&&(!cr||Do<cr)&&(fn._spread=!0),fn.end=Object.assign({},cr?P[cr][1].start:wt[1].end),P.splice(cr||ae,0,["exit",fn,wt[2]]),ae++,te++}if(wt[1].type==="listItemPrefix"){let fi={type:"listItem",_spread:!1,start:Object.assign({},wt[1].start),end:void 0};fn=fi,P.splice(ae,0,["enter",fi,wt[2]]),ae++,te++,Do=void 0,Oo=!0}}}return P[j][1]._spread=Lt,te}function o(P,j){return te;function te(ae){a.call(this,P(ae),ae),j&&j.call(this,ae)}}function s(){this.stack.push({type:"fragment",children:[]})}function a(P,j,te){this.stack[this.stack.length-1].children.push(P),this.stack.push(P),this.tokenStack.push([j,te||void 0]),P.position={start:en(j.start),end:void 0}}function l(P){return j;function j(te){P&&P.call(this,te),u.call(this,te)}}function u(P,j){let te=this.stack.pop(),ae=this.tokenStack.pop();if(ae)ae[0].type!==P.type&&(j?j.call(this,P,ae[0]):(ae[1]||U1).call(this,P,ae[0]));else throw new Error("Cannot close `"+P.type+"` ("+Qr({start:P.start,end:P.end})+"): it\u2019s not open");te.position.end=en(P.end)}function c(){return Gn(this.stack.pop())}function f(){this.data.expectingFirstListItemValue=!0}function p(P){if(this.data.expectingFirstListItemValue){let j=this.stack[this.stack.length-2];j.start=Number.parseInt(this.sliceSerialize(P),10),this.data.expectingFirstListItemValue=void 0}}function h(){let P=this.resume(),j=this.stack[this.stack.length-1];j.lang=P}function m(){let P=this.resume(),j=this.stack[this.stack.length-1];j.meta=P}function x(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function v(){let P=this.resume(),j=this.stack[this.stack.length-1];j.value=P.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function w(){let P=this.resume(),j=this.stack[this.stack.length-1];j.value=P.replace(/(\r?\n|\r)$/g,"")}function E(P){let j=this.resume(),te=this.stack[this.stack.length-1];te.label=j,te.identifier=ot(this.sliceSerialize(P)).toLowerCase()}function b(){let P=this.resume(),j=this.stack[this.stack.length-1];j.title=P}function z(){let P=this.resume(),j=this.stack[this.stack.length-1];j.url=P}function q(P){let j=this.stack[this.stack.length-1];if(!j.depth){let te=this.sliceSerialize(P).length;j.depth=te}}function A(){this.data.setextHeadingSlurpLineEnding=!0}function R(P){let j=this.stack[this.stack.length-1];j.depth=this.sliceSerialize(P).codePointAt(0)===61?1:2}function V(){this.data.setextHeadingSlurpLineEnding=void 0}function $(P){let te=this.stack[this.stack.length-1].children,ae=te[te.length-1];(!ae||ae.type!=="text")&&(ae=Be(),ae.position={start:en(P.start),end:void 0},te.push(ae)),this.stack.push(ae)}function T(P){let j=this.stack.pop();j.value+=this.sliceSerialize(P),j.position.end=en(P.end)}function fe(P){let j=this.stack[this.stack.length-1];if(this.data.atHardBreak){let te=j.children[j.children.length-1];te.position.end=en(P.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(j.type)&&($.call(this,P),T.call(this,P))}function B(){this.data.atHardBreak=!0}function _(){let P=this.resume(),j=this.stack[this.stack.length-1];j.value=P}function I(){let P=this.resume(),j=this.stack[this.stack.length-1];j.value=P}function O(){let P=this.resume(),j=this.stack[this.stack.length-1];j.value=P}function F(){let P=this.stack[this.stack.length-1];if(this.data.inReference){let j=this.data.referenceType||"shortcut";P.type+="Reference",P.referenceType=j,delete P.url,delete P.title}else delete P.identifier,delete P.label;this.data.referenceType=void 0}function W(){let P=this.stack[this.stack.length-1];if(this.data.inReference){let j=this.data.referenceType||"shortcut";P.type+="Reference",P.referenceType=j,delete P.url,delete P.title}else delete P.identifier,delete P.label;this.data.referenceType=void 0}function M(P){let j=this.sliceSerialize(P),te=this.stack[this.stack.length-2];te.label=lu(j),te.identifier=ot(j).toLowerCase()}function U(){let P=this.stack[this.stack.length-1],j=this.resume(),te=this.stack[this.stack.length-1];if(this.data.inReference=!0,te.type==="link"){let ae=P.children;te.children=ae}else te.alt=j}function d(){let P=this.resume(),j=this.stack[this.stack.length-1];j.url=P}function G(){let P=this.resume(),j=this.stack[this.stack.length-1];j.title=P}function X(){this.data.inReference=void 0}function y(){this.data.referenceType="collapsed"}function oe(P){let j=this.resume(),te=this.stack[this.stack.length-1];te.label=j,te.identifier=ot(this.sliceSerialize(P)).toLowerCase(),this.data.referenceType="full"}function me(P){this.data.characterReferenceType=P.type}function _e(P){let j=this.sliceSerialize(P),te=this.data.characterReferenceType,ae;te?(ae=au(j,te==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):ae=io(j);let ve=this.stack[this.stack.length-1];ve.value+=ae}function k(P){let j=this.stack.pop();j.position.end=en(P.end)}function g(P){T.call(this,P);let j=this.stack[this.stack.length-1];j.url=this.sliceSerialize(P)}function S(P){T.call(this,P);let j=this.stack[this.stack.length-1];j.url="mailto:"+this.sliceSerialize(P)}function C(){return{type:"blockquote",children:[]}}function D(){return{type:"code",lang:null,meta:null,value:""}}function Y(){return{type:"inlineCode",value:""}}function de(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function ye(){return{type:"emphasis",children:[]}}function xe(){return{type:"heading",depth:0,children:[]}}function At(){return{type:"break"}}function tt(){return{type:"html",value:""}}function bt(){return{type:"image",title:null,url:"",alt:null}}function ur(){return{type:"link",title:null,url:"",children:[]}}function Fr(P){return{type:"list",ordered:P.type==="listOrdered",start:null,spread:P._spread,children:[]}}function Rt(P){return{type:"listItem",spread:P._spread,checked:null,children:[]}}function Vt(){return{type:"paragraph",children:[]}}function Tt(){return{type:"strong",children:[]}}function Be(){return{type:"text",value:""}}function Rr(){return{type:"thematicBreak"}}}function en(e){return{line:e.line,column:e.column,offset:e.offset}}function z1(e,t){let r=-1;for(;++r<t.length;){let n=t[r];Array.isArray(n)?z1(e,n):MB(e,n)}}function MB(e,t){let r;for(r in t)if(j1.call(t,r))switch(r){case"canContainEols":{let n=t[r];n&&e[r].push(...n);break}case"transforms":{let n=t[r];n&&e[r].push(...n);break}case"enter":case"exit":{let n=t[r];n&&Object.assign(e[r],n);break}}}function U1(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+Qr({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+Qr({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+Qr({start:t.start,end:t.end})+") is still open")}function $s(e){let t=this;t.parser=r;function r(n){return um(n,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}var H1=$e(q1(),1),Us=Object.assign(ti(Error),{eval:ti(EvalError),range:ti(RangeError),reference:ti(ReferenceError),syntax:ti(SyntaxError),type:ti(TypeError),uri:ti(URIError)});function ti(e){return t.displayName=e.displayName||e.name,t;function t(r,...n){let i=r&&(0,H1.default)(r,...n);return new e(i)}}var Su={}.hasOwnProperty,V1={yaml:"-",toml:"+"};function so(e){let t=[],r=-1,n=Array.isArray(e)?e:e?[e]:["yaml"];for(;++r<n.length;)t[r]=NB(n[r]);return t}function NB(e){let t=e;if(typeof t=="string"){if(!Su.call(V1,t))throw Us("Missing matter definition for `%s`",t);t={type:t,marker:V1[t]}}else if(typeof t!="object")throw Us("Expected matter to be an object, not `%j`",t);if(!Su.call(t,"type"))throw Us("Missing `type` in matter `%j`",t);if(!Su.call(t,"fence")&&!Su.call(t,"marker"))throw Us("Missing `marker` or `fence` in matter `%j`",t);return t}function pm(e){let t=so(e),r={},n=-1;for(;++n<t.length;){let i=t[n],o=fm(i,"open").charCodeAt(0),s=FB(i),a=r[o];Array.isArray(a)?a.push(s):r[o]=[s]}return{flow:r}}function FB(e){let t=e.anywhere,r=e.type,n=r+"Fence",i=n+"Sequence",o=r+"Value",s={tokenize:c,partial:!0},a,l=0;return{tokenize:u,concrete:!0};function u(f,p,h){let m=this;return x;function x(R){let V=m.now();return V.column===1&&(V.line===1||t)&&(a=fm(e,"open"),l=0,R===a.charCodeAt(l))?(f.enter(r),f.enter(n),f.enter(i),v(R)):h(R)}function v(R){return l===a.length?(f.exit(i),J(R)?(f.enter("whitespace"),w(R)):E(R)):R===a.charCodeAt(l++)?(f.consume(R),v):h(R)}function w(R){return J(R)?(f.consume(R),w):(f.exit("whitespace"),E(R))}function E(R){return H(R)?(f.exit(n),f.enter("lineEnding"),f.consume(R),f.exit("lineEnding"),a=fm(e,"close"),l=0,f.attempt(s,A,b)):h(R)}function b(R){return R===null||H(R)?q(R):(f.enter(o),z(R))}function z(R){return R===null||H(R)?(f.exit(o),q(R)):(f.consume(R),z)}function q(R){return R===null?h(R):(f.enter("lineEnding"),f.consume(R),f.exit("lineEnding"),f.attempt(s,A,b))}function A(R){return f.exit(r),p(R)}}function c(f,p,h){let m=0;return x;function x(b){return b===a.charCodeAt(m)?(f.enter(n),f.enter(i),v(b)):h(b)}function v(b){return m===a.length?(f.exit(i),J(b)?(f.enter("whitespace"),w(b)):E(b)):b===a.charCodeAt(m++)?(f.consume(b),v):h(b)}function w(b){return J(b)?(f.consume(b),w):(f.exit("whitespace"),E(b))}function E(b){return b===null||H(b)?(f.exit(n),p(b)):h(b)}}}function fm(e,t){return e.marker?W1(e.marker,t).repeat(3):W1(e.fence,t)}function W1(e,t){return typeof e=="string"?e:e[t]}function mm(e){let t=so(e),r={},n={},i=-1;for(;++i<t.length;){let o=t[i];r[o.type]=RB(o),n[o.type]=LB,n[o.type+"Value"]=BB}return{enter:r,exit:n}}function RB(e){return t;function t(r){this.enter({type:e.type,value:""},r),this.buffer()}}function LB(e){let t=this.resume(),r=this.stack[this.stack.length-1];"value"in r,this.exit(e),r.value=t.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,"")}function BB(e){this.config.enter.data.call(this,e),this.config.exit.data.call(this,e)}function dm(e){let t=[],r={},n=so(e),i=-1;for(;++i<n.length;){let o=n[i];r[o.type]=$B(o);let s=hm(o,"open");t.push({atBreak:!0,character:s.charAt(0),after:Tn(s.charAt(1))})}return{unsafe:t,handlers:r}}function $B(e){let t=hm(e,"open"),r=hm(e,"close");return n;function n(i){return t+(i.value?`
89
89
  `+i.value:"")+`
90
- `+r}}function hm(e,t){return e.marker?Y1(e.marker,t).repeat(3):Y1(e.fence,t)}function Y1(e,t){return typeof e=="string"?e:e[t]}var BB="yaml";function js(e){let t=this,r=e||BB,n=t.data(),i=n.micromarkExtensions||(n.micromarkExtensions=[]),o=n.fromMarkdownExtensions||(n.fromMarkdownExtensions=[]),s=n.toMarkdownExtensions||(n.toMarkdownExtensions=[]);i.push(pm(r)),o.push(mm(r)),s.push(dm(r))}var G1=typeof self=="object"?self:globalThis,$B=(e,t)=>{let r=(i,o)=>(e.set(o,i),i),n=i=>{if(e.has(i))return e.get(i);let[o,s]=t[i];switch(o){case 0:case-1:return r(s,i);case 1:{let a=r([],i);for(let l of s)a.push(n(l));return a}case 2:{let a=r({},i);for(let[l,u]of s)a[n(l)]=n(u);return a}case 3:return r(new Date(s),i);case 4:{let{source:a,flags:l}=s;return r(new RegExp(a,l),i)}case 5:{let a=r(new Map,i);for(let[l,u]of s)a.set(n(l),n(u));return a}case 6:{let a=r(new Set,i);for(let l of s)a.add(n(l));return a}case 7:{let{name:a,message:l}=s;return r(new G1[a](l),i)}case 8:return r(BigInt(s),i);case"BigInt":return r(Object(BigInt(s)),i)}return r(new G1[o](s),i)};return n},bm=e=>$B(new Map,e)(0);var ao="",{toString:UB}={},{keys:jB}=Object,Vs=e=>{let t=typeof e;if(t!=="object"||!e)return[0,t];let r=UB.call(e).slice(8,-1);switch(r){case"Array":return[1,ao];case"Object":return[2,ao];case"Date":return[3,ao];case"RegExp":return[4,ao];case"Map":return[5,ao];case"Set":return[6,ao]}return r.includes("Array")?[1,r]:r.includes("Error")?[7,r]:[2,r]},Eu=([e,t])=>e===0&&(t==="function"||t==="symbol"),zB=(e,t,r,n)=>{let i=(s,a)=>{let l=n.push(s)-1;return r.set(a,l),l},o=s=>{if(r.has(s))return r.get(s);let[a,l]=Vs(s);switch(a){case 0:{let c=s;switch(l){case"bigint":a=8,c=s.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+l);c=null;break;case"undefined":return i([-1],s)}return i([a,c],s)}case 1:{if(l)return i([l,[...s]],s);let c=[],f=i([a,c],s);for(let p of s)c.push(o(p));return f}case 2:{if(l)switch(l){case"BigInt":return i([l,s.toString()],s);case"Boolean":case"Number":case"String":return i([l,s.valueOf()],s)}if(t&&"toJSON"in s)return o(s.toJSON());let c=[],f=i([a,c],s);for(let p of jB(s))(e||!Eu(Vs(s[p])))&&c.push([o(p),o(s[p])]);return f}case 3:return i([a,s.toISOString()],s);case 4:{let{source:c,flags:f}=s;return i([a,{source:c,flags:f}],s)}case 5:{let c=[],f=i([a,c],s);for(let[p,h]of s)(e||!(Eu(Vs(p))||Eu(Vs(h))))&&c.push([o(p),o(h)]);return f}case 6:{let c=[],f=i([a,c],s);for(let p of s)(e||!Eu(Vs(p)))&&c.push(o(p));return f}}let{message:u}=s;return i([a,{name:l,message:u}],s)};return o},wm=(e,{json:t,lossy:r}={})=>{let n=[];return zB(!(t||r),!!t,new Map,n)(e),n};var tn=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?bm(wm(e,t)):structuredClone(e):(e,t)=>bm(wm(e,t));var _u=J1("end"),Iu=J1("start");function J1(e){return t;function t(r){let n=r&&r.position&&r.position[e]||{};if(typeof n.line=="number"&&n.line>0&&typeof n.column=="number"&&n.column>0)return{line:n.line,column:n.column,offset:typeof n.offset=="number"&&n.offset>-1?n.offset:void 0}}}function Ws(e){let t=Iu(e),r=_u(e);if(t&&r)return{start:t,end:r}}var ri=["ariaDescribedBy","ariaLabel","ariaLabelledBy"],vm={ancestors:{tbody:["table"],td:["table"],th:["table"],thead:["table"],tfoot:["table"],tr:["table"]},attributes:{a:[...ri,"dataFootnoteBackref","dataFootnoteRef",["className","data-footnote-backref"],"href"],blockquote:["cite"],code:[["className",/^language-./]],del:["cite"],div:["itemScope","itemType"],dl:[...ri],h2:[["className","sr-only"]],img:[...ri,"longDesc","src"],input:[["disabled",!0],["type","checkbox"]],ins:["cite"],li:[["className","task-list-item"]],ol:[...ri,["className","contains-task-list"]],q:["cite"],section:["dataFootnotes",["className","footnotes"]],source:["srcSet"],summary:[...ri],table:[...ri],ul:[...ri,["className","contains-task-list"]],"*":["abbr","accept","acceptCharset","accessKey","action","align","alt","axis","border","cellPadding","cellSpacing","char","charOff","charSet","checked","clear","colSpan","color","cols","compact","coords","dateTime","dir","encType","frame","hSpace","headers","height","hrefLang","htmlFor","id","isMap","itemProp","label","lang","maxLength","media","method","multiple","name","noHref","noShade","noWrap","open","prompt","readOnly","rev","rowSpan","rows","rules","scope","selected","shape","size","span","start","summary","tabIndex","title","useMap","vAlign","value","width"]},clobber:["ariaDescribedBy","ariaLabelledBy","id","name"],clobberPrefix:"user-content-",protocols:{cite:["http","https"],href:["http","https","irc","ircs","mailto","xmpp"],longDesc:["http","https"],src:["http","https"]},required:{input:{disabled:!0,type:"checkbox"}},strip:["script"],tagNames:["a","b","blockquote","br","code","dd","del","details","div","dl","dt","em","h1","h2","h3","h4","h5","h6","hr","i","img","input","ins","kbd","li","ol","p","picture","pre","q","rp","rt","ruby","s","samp","section","source","span","strike","strong","sub","summary","sup","table","tbody","td","tfoot","th","thead","tr","tt","ul","var"]};var rn={}.hasOwnProperty;function Sm(e,t){let r={type:"root",children:[]},n={schema:t?{...vm,...t}:vm,stack:[]},i=X1(n,e);return i&&(Array.isArray(i)?i.length===1?r=i[0]:r.children=i:r=i),r}function X1(e,t){if(t&&typeof t=="object"){let r=t;switch(typeof r.type=="string"?r.type:""){case"comment":return qB(e,r);case"doctype":return HB(e,r);case"element":return VB(e,r);case"root":return WB(e,r);case"text":return YB(e,r);default:}}}function qB(e,t){if(e.schema.allowComments){let r=typeof t.value=="string"?t.value:"",n=r.indexOf("-->"),o={type:"comment",value:n<0?r:r.slice(0,n)};return Ys(o,t),o}}function HB(e,t){if(e.schema.allowDoctypes){let r={type:"doctype"};return Ys(r,t),r}}function VB(e,t){let r=typeof t.tagName=="string"?t.tagName:"";e.stack.push(r);let n=K1(e,t.children),i=GB(e,t.properties);e.stack.pop();let o=!1;if(r&&r!=="*"&&(!e.schema.tagNames||e.schema.tagNames.includes(r))&&(o=!0,e.schema.ancestors&&rn.call(e.schema.ancestors,r))){let a=e.schema.ancestors[r],l=-1;for(o=!1;++l<a.length;)e.stack.includes(a[l])&&(o=!0)}if(!o)return e.schema.strip&&!e.schema.strip.includes(r)?n:void 0;let s={type:"element",tagName:r,properties:i,children:n};return Ys(s,t),s}function WB(e,t){let n={type:"root",children:K1(e,t.children)};return Ys(n,t),n}function YB(e,t){let n={type:"text",value:typeof t.value=="string"?t.value:""};return Ys(n,t),n}function K1(e,t){let r=[];if(Array.isArray(t)){let n=t,i=-1;for(;++i<n.length;){let o=X1(e,n[i]);o&&(Array.isArray(o)?r.push(...o):r.push(o))}}return r}function GB(e,t){let r=e.stack[e.stack.length-1],n=e.schema.attributes,i=e.schema.required,o=n&&rn.call(n,r)?n[r]:void 0,s=n&&rn.call(n,"*")?n["*"]:void 0,a=t&&typeof t=="object"?t:{},l={},u;for(u in a)if(rn.call(a,u)){let c=a[u],f=Q1(e,Z1(o,u),u,c);f==null&&(f=Q1(e,Z1(s,u),u,c)),f!=null&&(l[u]=f)}if(i&&rn.call(i,r)){let c=i[r];for(u in c)rn.call(c,u)&&!rn.call(l,u)&&(l[u]=c[u])}return l}function Q1(e,t,r,n){return t?Array.isArray(n)?JB(e,t,r,n):ek(e,t,r,n):void 0}function JB(e,t,r,n){let i=-1,o=[];for(;++i<n.length;){let s=ek(e,t,r,n[i]);(typeof s=="number"||typeof s=="string")&&o.push(s)}return o}function ek(e,t,r,n){if(!(typeof n!="boolean"&&typeof n!="number"&&typeof n!="string")&&QB(e,r,n)){if(typeof t=="object"&&t.length>1){let i=!1,o=0;for(;++o<t.length;){let s=t[o];if(s&&typeof s=="object"&&"flags"in s){if(s.test(String(n))){i=!0;break}}else if(s===n){i=!0;break}}if(!i)return}return e.schema.clobber&&e.schema.clobberPrefix&&e.schema.clobber.includes(r)?e.schema.clobberPrefix+n:n}}function QB(e,t,r){let n=e.schema.protocols&&rn.call(e.schema.protocols,t)?e.schema.protocols[t]:void 0;if(!n||n.length===0)return!0;let i=String(r),o=i.indexOf(":"),s=i.indexOf("?"),a=i.indexOf("#"),l=i.indexOf("/");if(o<0||l>-1&&o>l||s>-1&&o>s||a>-1&&o>a)return!0;let u=-1;for(;++u<n.length;){let c=n[u];if(o===c.length&&i.slice(0,c.length)===c)return!0}return!1}function Ys(e,t){let r=Ws(t);t.data&&(e.data=tn(t.data)),r&&(e.position=r)}function Z1(e,t){let r,n=-1;if(e)for(;++n<e.length;){let i=e[n],o=typeof i=="string"?i:i[0];if(o===t)return i;o==="data*"&&(r=i)}if(t.length>4&&t.slice(0,4).toLowerCase()==="data")return r}function tk(e,t){let r={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,r),e.applyData(t,r)}function rk(e,t){let r={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,r),[e.applyData(t,r),{type:"text",value:`
90
+ `+r}}function hm(e,t){return e.marker?Y1(e.marker,t).repeat(3):Y1(e.fence,t)}function Y1(e,t){return typeof e=="string"?e:e[t]}var UB="yaml";function js(e){let t=this,r=e||UB,n=t.data(),i=n.micromarkExtensions||(n.micromarkExtensions=[]),o=n.fromMarkdownExtensions||(n.fromMarkdownExtensions=[]),s=n.toMarkdownExtensions||(n.toMarkdownExtensions=[]);i.push(pm(r)),o.push(mm(r)),s.push(dm(r))}var G1=typeof self=="object"?self:globalThis,jB=(e,t)=>{let r=(i,o)=>(e.set(o,i),i),n=i=>{if(e.has(i))return e.get(i);let[o,s]=t[i];switch(o){case 0:case-1:return r(s,i);case 1:{let a=r([],i);for(let l of s)a.push(n(l));return a}case 2:{let a=r({},i);for(let[l,u]of s)a[n(l)]=n(u);return a}case 3:return r(new Date(s),i);case 4:{let{source:a,flags:l}=s;return r(new RegExp(a,l),i)}case 5:{let a=r(new Map,i);for(let[l,u]of s)a.set(n(l),n(u));return a}case 6:{let a=r(new Set,i);for(let l of s)a.add(n(l));return a}case 7:{let{name:a,message:l}=s;return r(new G1[a](l),i)}case 8:return r(BigInt(s),i);case"BigInt":return r(Object(BigInt(s)),i)}return r(new G1[o](s),i)};return n},bm=e=>jB(new Map,e)(0);var ao="",{toString:zB}={},{keys:qB}=Object,Vs=e=>{let t=typeof e;if(t!=="object"||!e)return[0,t];let r=zB.call(e).slice(8,-1);switch(r){case"Array":return[1,ao];case"Object":return[2,ao];case"Date":return[3,ao];case"RegExp":return[4,ao];case"Map":return[5,ao];case"Set":return[6,ao]}return r.includes("Array")?[1,r]:r.includes("Error")?[7,r]:[2,r]},Eu=([e,t])=>e===0&&(t==="function"||t==="symbol"),HB=(e,t,r,n)=>{let i=(s,a)=>{let l=n.push(s)-1;return r.set(a,l),l},o=s=>{if(r.has(s))return r.get(s);let[a,l]=Vs(s);switch(a){case 0:{let c=s;switch(l){case"bigint":a=8,c=s.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+l);c=null;break;case"undefined":return i([-1],s)}return i([a,c],s)}case 1:{if(l)return i([l,[...s]],s);let c=[],f=i([a,c],s);for(let p of s)c.push(o(p));return f}case 2:{if(l)switch(l){case"BigInt":return i([l,s.toString()],s);case"Boolean":case"Number":case"String":return i([l,s.valueOf()],s)}if(t&&"toJSON"in s)return o(s.toJSON());let c=[],f=i([a,c],s);for(let p of qB(s))(e||!Eu(Vs(s[p])))&&c.push([o(p),o(s[p])]);return f}case 3:return i([a,s.toISOString()],s);case 4:{let{source:c,flags:f}=s;return i([a,{source:c,flags:f}],s)}case 5:{let c=[],f=i([a,c],s);for(let[p,h]of s)(e||!(Eu(Vs(p))||Eu(Vs(h))))&&c.push([o(p),o(h)]);return f}case 6:{let c=[],f=i([a,c],s);for(let p of s)(e||!Eu(Vs(p)))&&c.push(o(p));return f}}let{message:u}=s;return i([a,{name:l,message:u}],s)};return o},wm=(e,{json:t,lossy:r}={})=>{let n=[];return HB(!(t||r),!!t,new Map,n)(e),n};var tn=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?bm(wm(e,t)):structuredClone(e):(e,t)=>bm(wm(e,t));var _u=J1("end"),Iu=J1("start");function J1(e){return t;function t(r){let n=r&&r.position&&r.position[e]||{};if(typeof n.line=="number"&&n.line>0&&typeof n.column=="number"&&n.column>0)return{line:n.line,column:n.column,offset:typeof n.offset=="number"&&n.offset>-1?n.offset:void 0}}}function Ws(e){let t=Iu(e),r=_u(e);if(t&&r)return{start:t,end:r}}var ri=["ariaDescribedBy","ariaLabel","ariaLabelledBy"],vm={ancestors:{tbody:["table"],td:["table"],th:["table"],thead:["table"],tfoot:["table"],tr:["table"]},attributes:{a:[...ri,"dataFootnoteBackref","dataFootnoteRef",["className","data-footnote-backref"],"href"],blockquote:["cite"],code:[["className",/^language-./]],del:["cite"],div:["itemScope","itemType"],dl:[...ri],h2:[["className","sr-only"]],img:[...ri,"longDesc","src"],input:[["disabled",!0],["type","checkbox"]],ins:["cite"],li:[["className","task-list-item"]],ol:[...ri,["className","contains-task-list"]],q:["cite"],section:["dataFootnotes",["className","footnotes"]],source:["srcSet"],summary:[...ri],table:[...ri],ul:[...ri,["className","contains-task-list"]],"*":["abbr","accept","acceptCharset","accessKey","action","align","alt","axis","border","cellPadding","cellSpacing","char","charOff","charSet","checked","clear","colSpan","color","cols","compact","coords","dateTime","dir","encType","frame","hSpace","headers","height","hrefLang","htmlFor","id","isMap","itemProp","label","lang","maxLength","media","method","multiple","name","noHref","noShade","noWrap","open","prompt","readOnly","rev","rowSpan","rows","rules","scope","selected","shape","size","span","start","summary","tabIndex","title","useMap","vAlign","value","width"]},clobber:["ariaDescribedBy","ariaLabelledBy","id","name"],clobberPrefix:"user-content-",protocols:{cite:["http","https"],href:["http","https","irc","ircs","mailto","xmpp"],longDesc:["http","https"],src:["http","https"]},required:{input:{disabled:!0,type:"checkbox"}},strip:["script"],tagNames:["a","b","blockquote","br","code","dd","del","details","div","dl","dt","em","h1","h2","h3","h4","h5","h6","hr","i","img","input","ins","kbd","li","ol","p","picture","pre","q","rp","rt","ruby","s","samp","section","source","span","strike","strong","sub","summary","sup","table","tbody","td","tfoot","th","thead","tr","tt","ul","var"]};var rn={}.hasOwnProperty;function Sm(e,t){let r={type:"root",children:[]},n={schema:t?{...vm,...t}:vm,stack:[]},i=X1(n,e);return i&&(Array.isArray(i)?i.length===1?r=i[0]:r.children=i:r=i),r}function X1(e,t){if(t&&typeof t=="object"){let r=t;switch(typeof r.type=="string"?r.type:""){case"comment":return VB(e,r);case"doctype":return WB(e,r);case"element":return YB(e,r);case"root":return GB(e,r);case"text":return JB(e,r);default:}}}function VB(e,t){if(e.schema.allowComments){let r=typeof t.value=="string"?t.value:"",n=r.indexOf("-->"),o={type:"comment",value:n<0?r:r.slice(0,n)};return Ys(o,t),o}}function WB(e,t){if(e.schema.allowDoctypes){let r={type:"doctype"};return Ys(r,t),r}}function YB(e,t){let r=typeof t.tagName=="string"?t.tagName:"";e.stack.push(r);let n=K1(e,t.children),i=QB(e,t.properties);e.stack.pop();let o=!1;if(r&&r!=="*"&&(!e.schema.tagNames||e.schema.tagNames.includes(r))&&(o=!0,e.schema.ancestors&&rn.call(e.schema.ancestors,r))){let a=e.schema.ancestors[r],l=-1;for(o=!1;++l<a.length;)e.stack.includes(a[l])&&(o=!0)}if(!o)return e.schema.strip&&!e.schema.strip.includes(r)?n:void 0;let s={type:"element",tagName:r,properties:i,children:n};return Ys(s,t),s}function GB(e,t){let n={type:"root",children:K1(e,t.children)};return Ys(n,t),n}function JB(e,t){let n={type:"text",value:typeof t.value=="string"?t.value:""};return Ys(n,t),n}function K1(e,t){let r=[];if(Array.isArray(t)){let n=t,i=-1;for(;++i<n.length;){let o=X1(e,n[i]);o&&(Array.isArray(o)?r.push(...o):r.push(o))}}return r}function QB(e,t){let r=e.stack[e.stack.length-1],n=e.schema.attributes,i=e.schema.required,o=n&&rn.call(n,r)?n[r]:void 0,s=n&&rn.call(n,"*")?n["*"]:void 0,a=t&&typeof t=="object"?t:{},l={},u;for(u in a)if(rn.call(a,u)){let c=a[u],f=Q1(e,Z1(o,u),u,c);f==null&&(f=Q1(e,Z1(s,u),u,c)),f!=null&&(l[u]=f)}if(i&&rn.call(i,r)){let c=i[r];for(u in c)rn.call(c,u)&&!rn.call(l,u)&&(l[u]=c[u])}return l}function Q1(e,t,r,n){return t?Array.isArray(n)?ZB(e,t,r,n):ek(e,t,r,n):void 0}function ZB(e,t,r,n){let i=-1,o=[];for(;++i<n.length;){let s=ek(e,t,r,n[i]);(typeof s=="number"||typeof s=="string")&&o.push(s)}return o}function ek(e,t,r,n){if(!(typeof n!="boolean"&&typeof n!="number"&&typeof n!="string")&&XB(e,r,n)){if(typeof t=="object"&&t.length>1){let i=!1,o=0;for(;++o<t.length;){let s=t[o];if(s&&typeof s=="object"&&"flags"in s){if(s.test(String(n))){i=!0;break}}else if(s===n){i=!0;break}}if(!i)return}return e.schema.clobber&&e.schema.clobberPrefix&&e.schema.clobber.includes(r)?e.schema.clobberPrefix+n:n}}function XB(e,t,r){let n=e.schema.protocols&&rn.call(e.schema.protocols,t)?e.schema.protocols[t]:void 0;if(!n||n.length===0)return!0;let i=String(r),o=i.indexOf(":"),s=i.indexOf("?"),a=i.indexOf("#"),l=i.indexOf("/");if(o<0||l>-1&&o>l||s>-1&&o>s||a>-1&&o>a)return!0;let u=-1;for(;++u<n.length;){let c=n[u];if(o===c.length&&i.slice(0,c.length)===c)return!0}return!1}function Ys(e,t){let r=Ws(t);t.data&&(e.data=tn(t.data)),r&&(e.position=r)}function Z1(e,t){let r,n=-1;if(e)for(;++n<e.length;){let i=e[n],o=typeof i=="string"?i:i[0];if(o===t)return i;o==="data*"&&(r=i)}if(t.length>4&&t.slice(0,4).toLowerCase()==="data")return r}function tk(e,t){let r={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,r),e.applyData(t,r)}function rk(e,t){let r={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,r),[e.applyData(t,r),{type:"text",value:`
91
91
  `}]}function nk(e,t){let r=t.value?t.value+`
92
- `:"",n={};t.lang&&(n.className=["language-"+t.lang]);let i={type:"element",tagName:"code",properties:n,children:[{type:"text",value:r}]};return t.meta&&(i.data={meta:t.meta}),e.patch(t,i),i=e.applyData(t,i),i={type:"element",tagName:"pre",properties:{},children:[i]},e.patch(t,i),i}function ik(e,t){let r={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function ok(e,t){let r={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function sk(e,t){let r=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",n=String(t.identifier).toUpperCase(),i=Ot(n.toLowerCase()),o=e.footnoteOrder.indexOf(n),s,a=e.footnoteCounts.get(n);a===void 0?(a=0,e.footnoteOrder.push(n),s=e.footnoteOrder.length):s=o+1,a+=1,e.footnoteCounts.set(n,a);let l={type:"element",tagName:"a",properties:{href:"#"+r+"fn-"+i,id:r+"fnref-"+i+(a>1?"-"+a:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(s)}]};e.patch(t,l);let u={type:"element",tagName:"sup",properties:{},children:[l]};return e.patch(t,u),e.applyData(t,u)}function ak(e,t){let r={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function lk(e,t){if(e.options.allowDangerousHtml){let r={type:"raw",value:t.value};return e.patch(t,r),e.applyData(t,r)}}function Du(e,t){let r=t.referenceType,n="]";if(r==="collapsed"?n+="[]":r==="full"&&(n+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return[{type:"text",value:"!["+t.alt+n}];let i=e.all(t),o=i[0];o&&o.type==="text"?o.value="["+o.value:i.unshift({type:"text",value:"["});let s=i[i.length-1];return s&&s.type==="text"?s.value+=n:i.push({type:"text",value:n}),i}function uk(e,t){let r=String(t.identifier).toUpperCase(),n=e.definitionById.get(r);if(!n)return Du(e,t);let i={src:Ot(n.url||""),alt:t.alt};n.title!==null&&n.title!==void 0&&(i.title=n.title);let o={type:"element",tagName:"img",properties:i,children:[]};return e.patch(t,o),e.applyData(t,o)}function ck(e,t){let r={src:Ot(t.url)};t.alt!==null&&t.alt!==void 0&&(r.alt=t.alt),t.title!==null&&t.title!==void 0&&(r.title=t.title);let n={type:"element",tagName:"img",properties:r,children:[]};return e.patch(t,n),e.applyData(t,n)}function fk(e,t){let r={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,r);let n={type:"element",tagName:"code",properties:{},children:[r]};return e.patch(t,n),e.applyData(t,n)}function pk(e,t){let r=String(t.identifier).toUpperCase(),n=e.definitionById.get(r);if(!n)return Du(e,t);let i={href:Ot(n.url||"")};n.title!==null&&n.title!==void 0&&(i.title=n.title);let o={type:"element",tagName:"a",properties:i,children:e.all(t)};return e.patch(t,o),e.applyData(t,o)}function hk(e,t){let r={href:Ot(t.url)};t.title!==null&&t.title!==void 0&&(r.title=t.title);let n={type:"element",tagName:"a",properties:r,children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function mk(e,t,r){let n=e.all(t),i=r?ZB(r):dk(t),o={},s=[];if(typeof t.checked=="boolean"){let c=n[0],f;c&&c.type==="element"&&c.tagName==="p"?f=c:(f={type:"element",tagName:"p",properties:{},children:[]},n.unshift(f)),f.children.length>0&&f.children.unshift({type:"text",value:" "}),f.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),o.className=["task-list-item"]}let a=-1;for(;++a<n.length;){let c=n[a];(i||a!==0||c.type!=="element"||c.tagName!=="p")&&s.push({type:"text",value:`
92
+ `:"",n={};t.lang&&(n.className=["language-"+t.lang]);let i={type:"element",tagName:"code",properties:n,children:[{type:"text",value:r}]};return t.meta&&(i.data={meta:t.meta}),e.patch(t,i),i=e.applyData(t,i),i={type:"element",tagName:"pre",properties:{},children:[i]},e.patch(t,i),i}function ik(e,t){let r={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function ok(e,t){let r={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function sk(e,t){let r=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",n=String(t.identifier).toUpperCase(),i=Dt(n.toLowerCase()),o=e.footnoteOrder.indexOf(n),s,a=e.footnoteCounts.get(n);a===void 0?(a=0,e.footnoteOrder.push(n),s=e.footnoteOrder.length):s=o+1,a+=1,e.footnoteCounts.set(n,a);let l={type:"element",tagName:"a",properties:{href:"#"+r+"fn-"+i,id:r+"fnref-"+i+(a>1?"-"+a:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(s)}]};e.patch(t,l);let u={type:"element",tagName:"sup",properties:{},children:[l]};return e.patch(t,u),e.applyData(t,u)}function ak(e,t){let r={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function lk(e,t){if(e.options.allowDangerousHtml){let r={type:"raw",value:t.value};return e.patch(t,r),e.applyData(t,r)}}function Pu(e,t){let r=t.referenceType,n="]";if(r==="collapsed"?n+="[]":r==="full"&&(n+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return[{type:"text",value:"!["+t.alt+n}];let i=e.all(t),o=i[0];o&&o.type==="text"?o.value="["+o.value:i.unshift({type:"text",value:"["});let s=i[i.length-1];return s&&s.type==="text"?s.value+=n:i.push({type:"text",value:n}),i}function uk(e,t){let r=String(t.identifier).toUpperCase(),n=e.definitionById.get(r);if(!n)return Pu(e,t);let i={src:Dt(n.url||""),alt:t.alt};n.title!==null&&n.title!==void 0&&(i.title=n.title);let o={type:"element",tagName:"img",properties:i,children:[]};return e.patch(t,o),e.applyData(t,o)}function ck(e,t){let r={src:Dt(t.url)};t.alt!==null&&t.alt!==void 0&&(r.alt=t.alt),t.title!==null&&t.title!==void 0&&(r.title=t.title);let n={type:"element",tagName:"img",properties:r,children:[]};return e.patch(t,n),e.applyData(t,n)}function fk(e,t){let r={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,r);let n={type:"element",tagName:"code",properties:{},children:[r]};return e.patch(t,n),e.applyData(t,n)}function pk(e,t){let r=String(t.identifier).toUpperCase(),n=e.definitionById.get(r);if(!n)return Pu(e,t);let i={href:Dt(n.url||"")};n.title!==null&&n.title!==void 0&&(i.title=n.title);let o={type:"element",tagName:"a",properties:i,children:e.all(t)};return e.patch(t,o),e.applyData(t,o)}function hk(e,t){let r={href:Dt(t.url)};t.title!==null&&t.title!==void 0&&(r.title=t.title);let n={type:"element",tagName:"a",properties:r,children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function mk(e,t,r){let n=e.all(t),i=r?KB(r):dk(t),o={},s=[];if(typeof t.checked=="boolean"){let c=n[0],f;c&&c.type==="element"&&c.tagName==="p"?f=c:(f={type:"element",tagName:"p",properties:{},children:[]},n.unshift(f)),f.children.length>0&&f.children.unshift({type:"text",value:" "}),f.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),o.className=["task-list-item"]}let a=-1;for(;++a<n.length;){let c=n[a];(i||a!==0||c.type!=="element"||c.tagName!=="p")&&s.push({type:"text",value:`
93
93
  `}),c.type==="element"&&c.tagName==="p"&&!i?s.push(...c.children):s.push(c)}let l=n[n.length-1];l&&(i||l.type!=="element"||l.tagName!=="p")&&s.push({type:"text",value:`
94
- `});let u={type:"element",tagName:"li",properties:o,children:s};return e.patch(t,u),e.applyData(t,u)}function ZB(e){let t=!1;if(e.type==="list"){t=e.spread||!1;let r=e.children,n=-1;for(;!t&&++n<r.length;)t=dk(r[n])}return t}function dk(e){let t=e.spread;return t??e.children.length>1}function gk(e,t){let r={},n=e.all(t),i=-1;for(typeof t.start=="number"&&t.start!==1&&(r.start=t.start);++i<n.length;){let s=n[i];if(s.type==="element"&&s.tagName==="li"&&s.properties&&Array.isArray(s.properties.className)&&s.properties.className.includes("task-list-item")){r.className=["contains-task-list"];break}}let o={type:"element",tagName:t.ordered?"ol":"ul",properties:r,children:e.wrap(n,!0)};return e.patch(t,o),e.applyData(t,o)}function yk(e,t){let r={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function xk(e,t){let r={type:"root",children:e.wrap(e.all(t))};return e.patch(t,r),e.applyData(t,r)}function bk(e,t){let r={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function wk(e,t){let r=e.all(t),n=r.shift(),i=[];if(n){let s={type:"element",tagName:"thead",properties:{},children:e.wrap([n],!0)};e.patch(t.children[0],s),i.push(s)}if(r.length>0){let s={type:"element",tagName:"tbody",properties:{},children:e.wrap(r,!0)},a=Iu(t.children[1]),l=_u(t.children[t.children.length-1]);a&&l&&(s.position={start:a,end:l}),i.push(s)}let o={type:"element",tagName:"table",properties:{},children:e.wrap(i,!0)};return e.patch(t,o),e.applyData(t,o)}function vk(e,t,r){let n=r?r.children:void 0,o=(n?n.indexOf(t):1)===0?"th":"td",s=r&&r.type==="table"?r.align:void 0,a=s?s.length:t.children.length,l=-1,u=[];for(;++l<a;){let f=t.children[l],p={},h=s?s[l]:void 0;h&&(p.align=h);let m={type:"element",tagName:o,properties:p,children:[]};f&&(m.children=e.all(f),e.patch(f,m),m=e.applyData(f,m)),u.push(m)}let c={type:"element",tagName:"tr",properties:{},children:e.wrap(u,!0)};return e.patch(t,c),e.applyData(t,c)}function Sk(e,t){let r={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function Ak(e){let t=String(e),r=/\r?\n|\r/g,n=r.exec(t),i=0,o=[];for(;n;)o.push(kk(t.slice(i,n.index),i>0,!0),n[0]),i=n.index+n[0].length,n=r.exec(t);return o.push(kk(t.slice(i),i>0,!1)),o.join("")}function kk(e,t,r){let n=0,i=e.length;if(t){let o=e.codePointAt(n);for(;o===9||o===32;)n++,o=e.codePointAt(n)}if(r){let o=e.codePointAt(i-1);for(;o===9||o===32;)i--,o=e.codePointAt(i-1)}return i>n?e.slice(n,i):""}function Tk(e,t){let r={type:"text",value:Ak(String(t.value))};return e.patch(t,r),e.applyData(t,r)}function Ck(e,t){let r={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,r),e.applyData(t,r)}var Ek={blockquote:tk,break:rk,code:nk,delete:ik,emphasis:ok,footnoteReference:sk,heading:ak,html:lk,imageReference:uk,image:ck,inlineCode:fk,linkReference:pk,link:hk,listItem:mk,list:gk,paragraph:yk,root:xk,strong:bk,table:wk,tableCell:Sk,tableRow:vk,text:Tk,thematicBreak:Ck,toml:Ou,yaml:Ou,definition:Ou,footnoteDefinition:Ou};function Ou(){}function XB(e,t){let r=[{type:"text",value:"\u21A9"}];return t>1&&r.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),r}function KB(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function _k(e){let t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",r=e.options.footnoteBackContent||XB,n=e.options.footnoteBackLabel||KB,i=e.options.footnoteLabel||"Footnotes",o=e.options.footnoteLabelTagName||"h2",s=e.options.footnoteLabelProperties||{className:["sr-only"]},a=[],l=-1;for(;++l<e.footnoteOrder.length;){let u=e.footnoteById.get(e.footnoteOrder[l]);if(!u)continue;let c=e.all(u),f=String(u.identifier).toUpperCase(),p=Ot(f.toLowerCase()),h=0,m=[],x=e.footnoteCounts.get(f);for(;x!==void 0&&++h<=x;){m.length>0&&m.push({type:"text",value:" "});let E=typeof r=="string"?r:r(l,h);typeof E=="string"&&(E={type:"text",value:E}),m.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+p+(h>1?"-"+h:""),dataFootnoteBackref:"",ariaLabel:typeof n=="string"?n:n(l,h),className:["data-footnote-backref"]},children:Array.isArray(E)?E:[E]})}let v=c[c.length-1];if(v&&v.type==="element"&&v.tagName==="p"){let E=v.children[v.children.length-1];E&&E.type==="text"?E.value+=" ":v.children.push({type:"text",value:" "}),v.children.push(...m)}else c.push(...m);let w={type:"element",tagName:"li",properties:{id:t+"fn-"+p},children:e.wrap(c,!0)};e.patch(u,w),a.push(w)}if(a.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:o,properties:{...tn(s),id:"footnote-label"},children:[{type:"text",value:i}]},{type:"text",value:`
94
+ `});let u={type:"element",tagName:"li",properties:o,children:s};return e.patch(t,u),e.applyData(t,u)}function KB(e){let t=!1;if(e.type==="list"){t=e.spread||!1;let r=e.children,n=-1;for(;!t&&++n<r.length;)t=dk(r[n])}return t}function dk(e){let t=e.spread;return t??e.children.length>1}function gk(e,t){let r={},n=e.all(t),i=-1;for(typeof t.start=="number"&&t.start!==1&&(r.start=t.start);++i<n.length;){let s=n[i];if(s.type==="element"&&s.tagName==="li"&&s.properties&&Array.isArray(s.properties.className)&&s.properties.className.includes("task-list-item")){r.className=["contains-task-list"];break}}let o={type:"element",tagName:t.ordered?"ol":"ul",properties:r,children:e.wrap(n,!0)};return e.patch(t,o),e.applyData(t,o)}function yk(e,t){let r={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function xk(e,t){let r={type:"root",children:e.wrap(e.all(t))};return e.patch(t,r),e.applyData(t,r)}function bk(e,t){let r={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function wk(e,t){let r=e.all(t),n=r.shift(),i=[];if(n){let s={type:"element",tagName:"thead",properties:{},children:e.wrap([n],!0)};e.patch(t.children[0],s),i.push(s)}if(r.length>0){let s={type:"element",tagName:"tbody",properties:{},children:e.wrap(r,!0)},a=Iu(t.children[1]),l=_u(t.children[t.children.length-1]);a&&l&&(s.position={start:a,end:l}),i.push(s)}let o={type:"element",tagName:"table",properties:{},children:e.wrap(i,!0)};return e.patch(t,o),e.applyData(t,o)}function vk(e,t,r){let n=r?r.children:void 0,o=(n?n.indexOf(t):1)===0?"th":"td",s=r&&r.type==="table"?r.align:void 0,a=s?s.length:t.children.length,l=-1,u=[];for(;++l<a;){let f=t.children[l],p={},h=s?s[l]:void 0;h&&(p.align=h);let m={type:"element",tagName:o,properties:p,children:[]};f&&(m.children=e.all(f),e.patch(f,m),m=e.applyData(f,m)),u.push(m)}let c={type:"element",tagName:"tr",properties:{},children:e.wrap(u,!0)};return e.patch(t,c),e.applyData(t,c)}function Sk(e,t){let r={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function Ak(e){let t=String(e),r=/\r?\n|\r/g,n=r.exec(t),i=0,o=[];for(;n;)o.push(kk(t.slice(i,n.index),i>0,!0),n[0]),i=n.index+n[0].length,n=r.exec(t);return o.push(kk(t.slice(i),i>0,!1)),o.join("")}function kk(e,t,r){let n=0,i=e.length;if(t){let o=e.codePointAt(n);for(;o===9||o===32;)n++,o=e.codePointAt(n)}if(r){let o=e.codePointAt(i-1);for(;o===9||o===32;)i--,o=e.codePointAt(i-1)}return i>n?e.slice(n,i):""}function Tk(e,t){let r={type:"text",value:Ak(String(t.value))};return e.patch(t,r),e.applyData(t,r)}function Ck(e,t){let r={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,r),e.applyData(t,r)}var Ek={blockquote:tk,break:rk,code:nk,delete:ik,emphasis:ok,footnoteReference:sk,heading:ak,html:lk,imageReference:uk,image:ck,inlineCode:fk,linkReference:pk,link:hk,listItem:mk,list:gk,paragraph:yk,root:xk,strong:bk,table:wk,tableCell:Sk,tableRow:vk,text:Tk,thematicBreak:Ck,toml:Du,yaml:Du,definition:Du,footnoteDefinition:Du};function Du(){}function e$(e,t){let r=[{type:"text",value:"\u21A9"}];return t>1&&r.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),r}function t$(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function _k(e){let t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",r=e.options.footnoteBackContent||e$,n=e.options.footnoteBackLabel||t$,i=e.options.footnoteLabel||"Footnotes",o=e.options.footnoteLabelTagName||"h2",s=e.options.footnoteLabelProperties||{className:["sr-only"]},a=[],l=-1;for(;++l<e.footnoteOrder.length;){let u=e.footnoteById.get(e.footnoteOrder[l]);if(!u)continue;let c=e.all(u),f=String(u.identifier).toUpperCase(),p=Dt(f.toLowerCase()),h=0,m=[],x=e.footnoteCounts.get(f);for(;x!==void 0&&++h<=x;){m.length>0&&m.push({type:"text",value:" "});let E=typeof r=="string"?r:r(l,h);typeof E=="string"&&(E={type:"text",value:E}),m.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+p+(h>1?"-"+h:""),dataFootnoteBackref:"",ariaLabel:typeof n=="string"?n:n(l,h),className:["data-footnote-backref"]},children:Array.isArray(E)?E:[E]})}let v=c[c.length-1];if(v&&v.type==="element"&&v.tagName==="p"){let E=v.children[v.children.length-1];E&&E.type==="text"?E.value+=" ":v.children.push({type:"text",value:" "}),v.children.push(...m)}else c.push(...m);let w={type:"element",tagName:"li",properties:{id:t+"fn-"+p},children:e.wrap(c,!0)};e.patch(u,w),a.push(w)}if(a.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:o,properties:{...tn(s),id:"footnote-label"},children:[{type:"text",value:i}]},{type:"text",value:`
95
95
  `},{type:"element",tagName:"ol",properties:{},children:e.wrap(a,!0)},{type:"text",value:`
96
- `}]}}var km={}.hasOwnProperty,e$={};function Dk(e,t){let r=t||e$,n=new Map,i=new Map,o=new Map,s={...Ek,...r.handlers},a={all:u,applyData:r$,definitionById:n,footnoteById:i,footnoteCounts:o,footnoteOrder:[],handlers:s,one:l,options:r,patch:t$,wrap:i$};return Ps(e,function(c){if(c.type==="definition"||c.type==="footnoteDefinition"){let f=c.type==="definition"?n:i,p=String(c.identifier).toUpperCase();f.has(p)||f.set(p,c)}}),a;function l(c,f){let p=c.type,h=a.handlers[p];if(km.call(a.handlers,p)&&h)return h(a,c,f);if(a.options.passThrough&&a.options.passThrough.includes(p)){if("children"in c){let{children:x,...v}=c,w=tn(v);return w.children=a.all(c),w}return tn(c)}return(a.options.unknownHandler||n$)(a,c,f)}function u(c){let f=[];if("children"in c){let p=c.children,h=-1;for(;++h<p.length;){let m=a.one(p[h],c);if(m){if(h&&p[h-1].type==="break"&&(!Array.isArray(m)&&m.type==="text"&&(m.value=Ik(m.value)),!Array.isArray(m)&&m.type==="element")){let x=m.children[0];x&&x.type==="text"&&(x.value=Ik(x.value))}Array.isArray(m)?f.push(...m):f.push(m)}}}return f}}function t$(e,t){e.position&&(t.position=Ws(e))}function r$(e,t){let r=t;if(e&&e.data){let n=e.data.hName,i=e.data.hChildren,o=e.data.hProperties;if(typeof n=="string")if(r.type==="element")r.tagName=n;else{let s="children"in r?r.children:[r];r={type:"element",tagName:n,properties:{},children:s}}r.type==="element"&&o&&Object.assign(r.properties,tn(o)),"children"in r&&r.children&&i!==null&&i!==void 0&&(r.children=i)}return r}function n$(e,t){let r=t.data||{},n="value"in t&&!(km.call(r,"hProperties")||km.call(r,"hChildren"))?{type:"text",value:t.value}:{type:"element",tagName:"div",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function i$(e,t){let r=[],n=-1;for(t&&r.push({type:"text",value:`
96
+ `}]}}var km={}.hasOwnProperty,r$={};function Pk(e,t){let r=t||r$,n=new Map,i=new Map,o=new Map,s={...Ek,...r.handlers},a={all:u,applyData:i$,definitionById:n,footnoteById:i,footnoteCounts:o,footnoteOrder:[],handlers:s,one:l,options:r,patch:n$,wrap:s$};return Ms(e,function(c){if(c.type==="definition"||c.type==="footnoteDefinition"){let f=c.type==="definition"?n:i,p=String(c.identifier).toUpperCase();f.has(p)||f.set(p,c)}}),a;function l(c,f){let p=c.type,h=a.handlers[p];if(km.call(a.handlers,p)&&h)return h(a,c,f);if(a.options.passThrough&&a.options.passThrough.includes(p)){if("children"in c){let{children:x,...v}=c,w=tn(v);return w.children=a.all(c),w}return tn(c)}return(a.options.unknownHandler||o$)(a,c,f)}function u(c){let f=[];if("children"in c){let p=c.children,h=-1;for(;++h<p.length;){let m=a.one(p[h],c);if(m){if(h&&p[h-1].type==="break"&&(!Array.isArray(m)&&m.type==="text"&&(m.value=Ik(m.value)),!Array.isArray(m)&&m.type==="element")){let x=m.children[0];x&&x.type==="text"&&(x.value=Ik(x.value))}Array.isArray(m)?f.push(...m):f.push(m)}}}return f}}function n$(e,t){e.position&&(t.position=Ws(e))}function i$(e,t){let r=t;if(e&&e.data){let n=e.data.hName,i=e.data.hChildren,o=e.data.hProperties;if(typeof n=="string")if(r.type==="element")r.tagName=n;else{let s="children"in r?r.children:[r];r={type:"element",tagName:n,properties:{},children:s}}r.type==="element"&&o&&Object.assign(r.properties,tn(o)),"children"in r&&r.children&&i!==null&&i!==void 0&&(r.children=i)}return r}function o$(e,t){let r=t.data||{},n="value"in t&&!(km.call(r,"hProperties")||km.call(r,"hChildren"))?{type:"text",value:t.value}:{type:"element",tagName:"div",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function s$(e,t){let r=[],n=-1;for(t&&r.push({type:"text",value:`
97
97
  `});++n<e.length;)n&&r.push({type:"text",value:`
98
98
  `}),r.push(e[n]);return t&&e.length>0&&r.push({type:"text",value:`
99
- `}),r}function Ik(e){let t=0,r=e.charCodeAt(t);for(;r===9||r===32;)t++,r=e.charCodeAt(t);return e.slice(t)}function Am(e,t){let r=Dk(e,t),n=r.one(e,void 0),i=_k(r),o=Array.isArray(n)?{type:"root",children:n}:n||{type:"root",children:[]};return i&&("children"in o,o.children.push({type:"text",value:`
100
- `},i)),o}var Ok=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"];var Er=class{constructor(t,r,n){this.property=t,this.normal=r,n&&(this.space=n)}};Er.prototype.property={};Er.prototype.normal={};Er.prototype.space=null;function Tm(e,t){let r={},n={},i=-1;for(;++i<e.length;)Object.assign(r,e[i].property),Object.assign(n,e[i].normal);return new Er(r,n,t)}function Gs(e){return e.toLowerCase()}var at=class{constructor(t,r){this.property=t,this.attribute=r}};at.prototype.space=null;at.prototype.boolean=!1;at.prototype.booleanish=!1;at.prototype.overloadedBoolean=!1;at.prototype.number=!1;at.prototype.commaSeparated=!1;at.prototype.spaceSeparated=!1;at.prototype.commaOrSpaceSeparated=!1;at.prototype.mustUseProperty=!1;at.prototype.defined=!1;var Js={};le(Js,{boolean:()=>ie,booleanish:()=>Pe,commaOrSpaceSeparated:()=>yt,commaSeparated:()=>nn,number:()=>L,overloadedBoolean:()=>Cm,spaceSeparated:()=>be});var o$=0,ie=ni(),Pe=ni(),Cm=ni(),L=ni(),be=ni(),nn=ni(),yt=ni();function ni(){return 2**++o$}var Em=Object.keys(Js),ii=class extends at{constructor(t,r,n,i){let o=-1;if(super(t,r),Mk(this,"space",i),typeof n=="number")for(;++o<Em.length;){let s=Em[o];Mk(this,Em[o],(n&Js[s])===Js[s])}}};ii.prototype.defined=!0;function Mk(e,t,r){r&&(e[t]=r)}var s$={}.hasOwnProperty;function Mt(e){let t={},r={},n;for(n in e.properties)if(s$.call(e.properties,n)){let i=e.properties[n],o=new ii(n,e.transform(e.attributes||{},n),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(n)&&(o.mustUseProperty=!0),t[n]=o,r[Gs(n)]=n,r[Gs(o.attribute)]=n}return new Er(t,r,e.space)}var _m=Mt({space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()},properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}});var Im=Mt({space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()},properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function Mu(e,t){return t in e?e[t]:t}function Pu(e,t){return Mu(e,t.toLowerCase())}var Dm=Mt({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:Pu,properties:{xmlns:null,xmlnsXLink:null}});var Om=Mt({transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()},properties:{ariaActiveDescendant:null,ariaAtomic:Pe,ariaAutoComplete:null,ariaBusy:Pe,ariaChecked:Pe,ariaColCount:L,ariaColIndex:L,ariaColSpan:L,ariaControls:be,ariaCurrent:null,ariaDescribedBy:be,ariaDetails:null,ariaDisabled:Pe,ariaDropEffect:be,ariaErrorMessage:null,ariaExpanded:Pe,ariaFlowTo:be,ariaGrabbed:Pe,ariaHasPopup:null,ariaHidden:Pe,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:be,ariaLevel:L,ariaLive:null,ariaModal:Pe,ariaMultiLine:Pe,ariaMultiSelectable:Pe,ariaOrientation:null,ariaOwns:be,ariaPlaceholder:null,ariaPosInSet:L,ariaPressed:Pe,ariaReadOnly:Pe,ariaRelevant:null,ariaRequired:Pe,ariaRoleDescription:be,ariaRowCount:L,ariaRowIndex:L,ariaRowSpan:L,ariaSelected:Pe,ariaSetSize:L,ariaSort:null,ariaValueMax:L,ariaValueMin:L,ariaValueNow:L,ariaValueText:null,role:null}});var Pk=Mt({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:Pu,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:nn,acceptCharset:be,accessKey:be,action:null,allow:null,allowFullScreen:ie,allowPaymentRequest:ie,allowUserMedia:ie,alt:null,as:null,async:ie,autoCapitalize:null,autoComplete:be,autoFocus:ie,autoPlay:ie,blocking:be,capture:null,charSet:null,checked:ie,cite:null,className:be,cols:L,colSpan:null,content:null,contentEditable:Pe,controls:ie,controlsList:be,coords:L|nn,crossOrigin:null,data:null,dateTime:null,decoding:null,default:ie,defer:ie,dir:null,dirName:null,disabled:ie,download:Cm,draggable:Pe,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:ie,formTarget:null,headers:be,height:L,hidden:ie,high:L,href:null,hrefLang:null,htmlFor:be,httpEquiv:be,id:null,imageSizes:null,imageSrcSet:null,inert:ie,inputMode:null,integrity:null,is:null,isMap:ie,itemId:null,itemProp:be,itemRef:be,itemScope:ie,itemType:be,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:ie,low:L,manifest:null,max:null,maxLength:L,media:null,method:null,min:null,minLength:L,multiple:ie,muted:ie,name:null,nonce:null,noModule:ie,noValidate:ie,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:ie,optimum:L,pattern:null,ping:be,placeholder:null,playsInline:ie,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:ie,referrerPolicy:null,rel:be,required:ie,reversed:ie,rows:L,rowSpan:L,sandbox:be,scope:null,scoped:ie,seamless:ie,selected:ie,shadowRootClonable:ie,shadowRootDelegatesFocus:ie,shadowRootMode:null,shape:null,size:L,sizes:null,slot:null,span:L,spellCheck:Pe,src:null,srcDoc:null,srcLang:null,srcSet:null,start:L,step:null,style:null,tabIndex:L,target:null,title:null,translate:null,type:null,typeMustMatch:ie,useMap:null,value:Pe,width:L,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:be,axis:null,background:null,bgColor:null,border:L,borderColor:null,bottomMargin:L,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:ie,declare:ie,event:null,face:null,frame:null,frameBorder:null,hSpace:L,leftMargin:L,link:null,longDesc:null,lowSrc:null,marginHeight:L,marginWidth:L,noResize:ie,noHref:ie,noShade:ie,noWrap:ie,object:null,profile:null,prompt:null,rev:null,rightMargin:L,rules:null,scheme:null,scrolling:Pe,standby:null,summary:null,text:null,topMargin:L,valueType:null,version:null,vAlign:null,vLink:null,vSpace:L,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:ie,disableRemotePlayback:ie,prefix:null,property:null,results:L,security:null,unselectable:null}});var Nk=Mt({space:"svg",attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},transform:Mu,properties:{about:yt,accentHeight:L,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:L,amplitude:L,arabicForm:null,ascent:L,attributeName:null,attributeType:null,azimuth:L,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:L,by:null,calcMode:null,capHeight:L,className:be,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:L,diffuseConstant:L,direction:null,display:null,dur:null,divisor:L,dominantBaseline:null,download:ie,dx:null,dy:null,edgeMode:null,editable:null,elevation:L,enableBackground:null,end:null,event:null,exponent:L,externalResourcesRequired:null,fill:null,fillOpacity:L,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:nn,g2:nn,glyphName:nn,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:L,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:L,horizOriginX:L,horizOriginY:L,id:null,ideographic:L,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:L,k:L,k1:L,k2:L,k3:L,k4:L,kernelMatrix:yt,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:L,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:L,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:L,overlineThickness:L,paintOrder:null,panose1:null,path:null,pathLength:L,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:be,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:L,pointsAtY:L,pointsAtZ:L,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:yt,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:yt,rev:yt,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:yt,requiredFeatures:yt,requiredFonts:yt,requiredFormats:yt,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:L,specularExponent:L,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:L,strikethroughThickness:L,string:null,stroke:null,strokeDashArray:yt,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:L,strokeOpacity:L,strokeWidth:null,style:null,surfaceScale:L,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:yt,tabIndex:L,tableValues:null,target:null,targetX:L,targetY:L,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:yt,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:L,underlineThickness:L,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:L,values:null,vAlphabetic:L,vMathematical:L,vectorEffect:null,vHanging:L,vIdeographic:L,version:null,vertAdvY:L,vertOriginX:L,vertOriginY:L,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:L,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}});var a$=/^data[-\w.:]+$/i,Fk=/-[a-z]/g,l$=/[A-Z]/g;function Mm(e,t){let r=Gs(t),n=t,i=at;if(r in e.normal)return e.property[e.normal[r]];if(r.length>4&&r.slice(0,4)==="data"&&a$.test(t)){if(t.charAt(4)==="-"){let o=t.slice(5).replace(Fk,c$);n="data"+o.charAt(0).toUpperCase()+o.slice(1)}else{let o=t.slice(4);if(!Fk.test(o)){let s=o.replace(l$,u$);s.charAt(0)!=="-"&&(s="-"+s),t="data"+s}}i=ii}return new i(n,t)}function u$(e){return"-"+e.toLowerCase()}function c$(e){return e.charAt(1).toUpperCase()}var Rk=Tm([Im,_m,Dm,Om,Pk],"html"),Nu=Tm([Im,_m,Dm,Om,Nk],"svg");var f$=/["&'<>`]/g,p$=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,h$=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,m$=/[|\\{}()[\]^$+*?.]/g,Lk=new WeakMap;function Bk(e,t){if(e=e.replace(t.subset?d$(t.subset):f$,n),t.subset||t.escapeOnly)return e;return e.replace(p$,r).replace(h$,n);function r(i,o,s){return t.format((i.charCodeAt(0)-55296)*1024+i.charCodeAt(1)-56320+65536,s.charCodeAt(o+2),t)}function n(i,o,s){return t.format(i.charCodeAt(0),s.charCodeAt(o+1),t)}}function d$(e){let t=Lk.get(e);return t||(t=g$(e),Lk.set(e,t)),t}function g$(e){let t=[],r=-1;for(;++r<e.length;)t.push(e[r].replace(m$,"\\$&"));return new RegExp("(?:"+t.join("|")+")","g")}var y$=/[\dA-Fa-f]/;function $k(e,t,r){let n="&#x"+e.toString(16).toUpperCase();return r&&t&&!y$.test(String.fromCharCode(t))?n:n+";"}var x$=/\d/;function Uk(e,t,r){let n="&#"+String(e);return r&&t&&!x$.test(String.fromCharCode(t))?n:n+";"}var jk=["AElig","AMP","Aacute","Acirc","Agrave","Aring","Atilde","Auml","COPY","Ccedil","ETH","Eacute","Ecirc","Egrave","Euml","GT","Iacute","Icirc","Igrave","Iuml","LT","Ntilde","Oacute","Ocirc","Ograve","Oslash","Otilde","Ouml","QUOT","REG","THORN","Uacute","Ucirc","Ugrave","Uuml","Yacute","aacute","acirc","acute","aelig","agrave","amp","aring","atilde","auml","brvbar","ccedil","cedil","cent","copy","curren","deg","divide","eacute","ecirc","egrave","eth","euml","frac12","frac14","frac34","gt","iacute","icirc","iexcl","igrave","iquest","iuml","laquo","lt","macr","micro","middot","nbsp","not","ntilde","oacute","ocirc","ograve","ordf","ordm","oslash","otilde","ouml","para","plusmn","pound","quot","raquo","reg","sect","shy","sup1","sup2","sup3","szlig","thorn","times","uacute","ucirc","ugrave","uml","uuml","yacute","yen","yuml"];var Fu={nbsp:"\xA0",iexcl:"\xA1",cent:"\xA2",pound:"\xA3",curren:"\xA4",yen:"\xA5",brvbar:"\xA6",sect:"\xA7",uml:"\xA8",copy:"\xA9",ordf:"\xAA",laquo:"\xAB",not:"\xAC",shy:"\xAD",reg:"\xAE",macr:"\xAF",deg:"\xB0",plusmn:"\xB1",sup2:"\xB2",sup3:"\xB3",acute:"\xB4",micro:"\xB5",para:"\xB6",middot:"\xB7",cedil:"\xB8",sup1:"\xB9",ordm:"\xBA",raquo:"\xBB",frac14:"\xBC",frac12:"\xBD",frac34:"\xBE",iquest:"\xBF",Agrave:"\xC0",Aacute:"\xC1",Acirc:"\xC2",Atilde:"\xC3",Auml:"\xC4",Aring:"\xC5",AElig:"\xC6",Ccedil:"\xC7",Egrave:"\xC8",Eacute:"\xC9",Ecirc:"\xCA",Euml:"\xCB",Igrave:"\xCC",Iacute:"\xCD",Icirc:"\xCE",Iuml:"\xCF",ETH:"\xD0",Ntilde:"\xD1",Ograve:"\xD2",Oacute:"\xD3",Ocirc:"\xD4",Otilde:"\xD5",Ouml:"\xD6",times:"\xD7",Oslash:"\xD8",Ugrave:"\xD9",Uacute:"\xDA",Ucirc:"\xDB",Uuml:"\xDC",Yacute:"\xDD",THORN:"\xDE",szlig:"\xDF",agrave:"\xE0",aacute:"\xE1",acirc:"\xE2",atilde:"\xE3",auml:"\xE4",aring:"\xE5",aelig:"\xE6",ccedil:"\xE7",egrave:"\xE8",eacute:"\xE9",ecirc:"\xEA",euml:"\xEB",igrave:"\xEC",iacute:"\xED",icirc:"\xEE",iuml:"\xEF",eth:"\xF0",ntilde:"\xF1",ograve:"\xF2",oacute:"\xF3",ocirc:"\xF4",otilde:"\xF5",ouml:"\xF6",divide:"\xF7",oslash:"\xF8",ugrave:"\xF9",uacute:"\xFA",ucirc:"\xFB",uuml:"\xFC",yacute:"\xFD",thorn:"\xFE",yuml:"\xFF",fnof:"\u0192",Alpha:"\u0391",Beta:"\u0392",Gamma:"\u0393",Delta:"\u0394",Epsilon:"\u0395",Zeta:"\u0396",Eta:"\u0397",Theta:"\u0398",Iota:"\u0399",Kappa:"\u039A",Lambda:"\u039B",Mu:"\u039C",Nu:"\u039D",Xi:"\u039E",Omicron:"\u039F",Pi:"\u03A0",Rho:"\u03A1",Sigma:"\u03A3",Tau:"\u03A4",Upsilon:"\u03A5",Phi:"\u03A6",Chi:"\u03A7",Psi:"\u03A8",Omega:"\u03A9",alpha:"\u03B1",beta:"\u03B2",gamma:"\u03B3",delta:"\u03B4",epsilon:"\u03B5",zeta:"\u03B6",eta:"\u03B7",theta:"\u03B8",iota:"\u03B9",kappa:"\u03BA",lambda:"\u03BB",mu:"\u03BC",nu:"\u03BD",xi:"\u03BE",omicron:"\u03BF",pi:"\u03C0",rho:"\u03C1",sigmaf:"\u03C2",sigma:"\u03C3",tau:"\u03C4",upsilon:"\u03C5",phi:"\u03C6",chi:"\u03C7",psi:"\u03C8",omega:"\u03C9",thetasym:"\u03D1",upsih:"\u03D2",piv:"\u03D6",bull:"\u2022",hellip:"\u2026",prime:"\u2032",Prime:"\u2033",oline:"\u203E",frasl:"\u2044",weierp:"\u2118",image:"\u2111",real:"\u211C",trade:"\u2122",alefsym:"\u2135",larr:"\u2190",uarr:"\u2191",rarr:"\u2192",darr:"\u2193",harr:"\u2194",crarr:"\u21B5",lArr:"\u21D0",uArr:"\u21D1",rArr:"\u21D2",dArr:"\u21D3",hArr:"\u21D4",forall:"\u2200",part:"\u2202",exist:"\u2203",empty:"\u2205",nabla:"\u2207",isin:"\u2208",notin:"\u2209",ni:"\u220B",prod:"\u220F",sum:"\u2211",minus:"\u2212",lowast:"\u2217",radic:"\u221A",prop:"\u221D",infin:"\u221E",ang:"\u2220",and:"\u2227",or:"\u2228",cap:"\u2229",cup:"\u222A",int:"\u222B",there4:"\u2234",sim:"\u223C",cong:"\u2245",asymp:"\u2248",ne:"\u2260",equiv:"\u2261",le:"\u2264",ge:"\u2265",sub:"\u2282",sup:"\u2283",nsub:"\u2284",sube:"\u2286",supe:"\u2287",oplus:"\u2295",otimes:"\u2297",perp:"\u22A5",sdot:"\u22C5",lceil:"\u2308",rceil:"\u2309",lfloor:"\u230A",rfloor:"\u230B",lang:"\u2329",rang:"\u232A",loz:"\u25CA",spades:"\u2660",clubs:"\u2663",hearts:"\u2665",diams:"\u2666",quot:'"',amp:"&",lt:"<",gt:">",OElig:"\u0152",oelig:"\u0153",Scaron:"\u0160",scaron:"\u0161",Yuml:"\u0178",circ:"\u02C6",tilde:"\u02DC",ensp:"\u2002",emsp:"\u2003",thinsp:"\u2009",zwnj:"\u200C",zwj:"\u200D",lrm:"\u200E",rlm:"\u200F",ndash:"\u2013",mdash:"\u2014",lsquo:"\u2018",rsquo:"\u2019",sbquo:"\u201A",ldquo:"\u201C",rdquo:"\u201D",bdquo:"\u201E",dagger:"\u2020",Dagger:"\u2021",permil:"\u2030",lsaquo:"\u2039",rsaquo:"\u203A",euro:"\u20AC"};var zk=["cent","copy","divide","gt","lt","not","para","times"];var qk={}.hasOwnProperty,Pm={},Ru;for(Ru in Fu)qk.call(Fu,Ru)&&(Pm[Fu[Ru]]=Ru);var b$=/[^\dA-Za-z]/;function Hk(e,t,r,n){let i=String.fromCharCode(e);if(qk.call(Pm,i)){let o=Pm[i],s="&"+o;return r&&jk.includes(o)&&!zk.includes(o)&&(!n||t&&t!==61&&b$.test(String.fromCharCode(t)))?s:s+";"}return""}function Vk(e,t,r){let n=$k(e,t,r.omitOptionalSemicolons),i;if((r.useNamedReferences||r.useShortestReferences)&&(i=Hk(e,t,r.omitOptionalSemicolons,r.attribute)),(r.useShortestReferences||!i)&&r.useShortestReferences){let o=Uk(e,t,r.omitOptionalSemicolons);o.length<n.length&&(n=o)}return i&&(!r.useShortestReferences||i.length<n.length)?i:n}function _r(e,t){return Bk(e,Object.assign({format:Vk},t))}var w$=/^>|^->|<!--|-->|--!>|<!-$/g,v$=[">"],S$=["<",">"];function Wk(e,t,r,n){return n.settings.bogusComments?"<?"+_r(e.value,Object.assign({},n.settings.characterReferences,{subset:v$}))+">":"<!--"+e.value.replace(w$,i)+"-->";function i(o){return _r(o,Object.assign({},n.settings.characterReferences,{subset:S$}))}}function Yk(e,t,r,n){return"<!"+(n.settings.upperDoctype?"DOCTYPE":"doctype")+(n.settings.tightDoctype?"":" ")+"html>"}function Gk(e,t){let r=t||{};return(e[e.length-1]===""?[...e,""]:e).join((r.padRight?" ":"")+","+(r.padLeft===!1?"":" ")).trim()}function Jk(e){return e.join(" ").trim()}var k$=/[ \t\n\f\r]/g;function oi(e){return typeof e=="object"?e.type==="text"?Qk(e.value):!1:Qk(e)}function Qk(e){return e.replace(k$,"")===""}var Le=Zk(1),Nm=Zk(-1),A$=[];function Zk(e){return t;function t(r,n,i){let o=r?r.children:A$,s=(n||0)+e,a=o[s];if(!i)for(;a&&oi(a);)s+=e,a=o[s];return a}}var T$={}.hasOwnProperty;function Lu(e){return t;function t(r,n,i){return T$.call(e,r.tagName)&&e[r.tagName](r,n,i)}}var Qs=Lu({body:E$,caption:Fm,colgroup:Fm,dd:O$,dt:D$,head:Fm,html:C$,li:I$,optgroup:M$,option:P$,p:_$,rp:Xk,rt:Xk,tbody:F$,td:Kk,tfoot:R$,th:Kk,thead:N$,tr:L$});function Fm(e,t,r){let n=Le(r,t,!0);return!n||n.type!=="comment"&&!(n.type==="text"&&oi(n.value.charAt(0)))}function C$(e,t,r){let n=Le(r,t);return!n||n.type!=="comment"}function E$(e,t,r){let n=Le(r,t);return!n||n.type!=="comment"}function _$(e,t,r){let n=Le(r,t);return n?n.type==="element"&&(n.tagName==="address"||n.tagName==="article"||n.tagName==="aside"||n.tagName==="blockquote"||n.tagName==="details"||n.tagName==="div"||n.tagName==="dl"||n.tagName==="fieldset"||n.tagName==="figcaption"||n.tagName==="figure"||n.tagName==="footer"||n.tagName==="form"||n.tagName==="h1"||n.tagName==="h2"||n.tagName==="h3"||n.tagName==="h4"||n.tagName==="h5"||n.tagName==="h6"||n.tagName==="header"||n.tagName==="hgroup"||n.tagName==="hr"||n.tagName==="main"||n.tagName==="menu"||n.tagName==="nav"||n.tagName==="ol"||n.tagName==="p"||n.tagName==="pre"||n.tagName==="section"||n.tagName==="table"||n.tagName==="ul"):!r||!(r.type==="element"&&(r.tagName==="a"||r.tagName==="audio"||r.tagName==="del"||r.tagName==="ins"||r.tagName==="map"||r.tagName==="noscript"||r.tagName==="video"))}function I$(e,t,r){let n=Le(r,t);return!n||n.type==="element"&&n.tagName==="li"}function D$(e,t,r){let n=Le(r,t);return!!(n&&n.type==="element"&&(n.tagName==="dt"||n.tagName==="dd"))}function O$(e,t,r){let n=Le(r,t);return!n||n.type==="element"&&(n.tagName==="dt"||n.tagName==="dd")}function Xk(e,t,r){let n=Le(r,t);return!n||n.type==="element"&&(n.tagName==="rp"||n.tagName==="rt")}function M$(e,t,r){let n=Le(r,t);return!n||n.type==="element"&&n.tagName==="optgroup"}function P$(e,t,r){let n=Le(r,t);return!n||n.type==="element"&&(n.tagName==="option"||n.tagName==="optgroup")}function N$(e,t,r){let n=Le(r,t);return!!(n&&n.type==="element"&&(n.tagName==="tbody"||n.tagName==="tfoot"))}function F$(e,t,r){let n=Le(r,t);return!n||n.type==="element"&&(n.tagName==="tbody"||n.tagName==="tfoot")}function R$(e,t,r){return!Le(r,t)}function L$(e,t,r){let n=Le(r,t);return!n||n.type==="element"&&n.tagName==="tr"}function Kk(e,t,r){let n=Le(r,t);return!n||n.type==="element"&&(n.tagName==="td"||n.tagName==="th")}var eA=Lu({body:U$,colgroup:j$,head:$$,html:B$,tbody:z$});function B$(e){let t=Le(e,-1);return!t||t.type!=="comment"}function $$(e){let t=new Set;for(let n of e.children)if(n.type==="element"&&(n.tagName==="base"||n.tagName==="title")){if(t.has(n.tagName))return!1;t.add(n.tagName)}let r=e.children[0];return!r||r.type==="element"}function U$(e){let t=Le(e,-1,!0);return!t||t.type!=="comment"&&!(t.type==="text"&&oi(t.value.charAt(0)))&&!(t.type==="element"&&(t.tagName==="meta"||t.tagName==="link"||t.tagName==="script"||t.tagName==="style"||t.tagName==="template"))}function j$(e,t,r){let n=Nm(r,t),i=Le(e,-1,!0);return r&&n&&n.type==="element"&&n.tagName==="colgroup"&&Qs(n,r.children.indexOf(n),r)?!1:!!(i&&i.type==="element"&&i.tagName==="col")}function z$(e,t,r){let n=Nm(r,t),i=Le(e,-1);return r&&n&&n.type==="element"&&(n.tagName==="thead"||n.tagName==="tbody")&&Qs(n,r.children.indexOf(n),r)?!1:!!(i&&i.type==="element"&&i.tagName==="tr")}var Bu={name:[[`
99
+ `}),r}function Ik(e){let t=0,r=e.charCodeAt(t);for(;r===9||r===32;)t++,r=e.charCodeAt(t);return e.slice(t)}function Am(e,t){let r=Pk(e,t),n=r.one(e,void 0),i=_k(r),o=Array.isArray(n)?{type:"root",children:n}:n||{type:"root",children:[]};return i&&("children"in o,o.children.push({type:"text",value:`
100
+ `},i)),o}var Dk=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"];var Er=class{constructor(t,r,n){this.property=t,this.normal=r,n&&(this.space=n)}};Er.prototype.property={};Er.prototype.normal={};Er.prototype.space=null;function Tm(e,t){let r={},n={},i=-1;for(;++i<e.length;)Object.assign(r,e[i].property),Object.assign(n,e[i].normal);return new Er(r,n,t)}function Gs(e){return e.toLowerCase()}var at=class{constructor(t,r){this.property=t,this.attribute=r}};at.prototype.space=null;at.prototype.boolean=!1;at.prototype.booleanish=!1;at.prototype.overloadedBoolean=!1;at.prototype.number=!1;at.prototype.commaSeparated=!1;at.prototype.spaceSeparated=!1;at.prototype.commaOrSpaceSeparated=!1;at.prototype.mustUseProperty=!1;at.prototype.defined=!1;var Js={};le(Js,{boolean:()=>ie,booleanish:()=>Me,commaOrSpaceSeparated:()=>yt,commaSeparated:()=>nn,number:()=>L,overloadedBoolean:()=>Cm,spaceSeparated:()=>be});var a$=0,ie=ni(),Me=ni(),Cm=ni(),L=ni(),be=ni(),nn=ni(),yt=ni();function ni(){return 2**++a$}var Em=Object.keys(Js),ii=class extends at{constructor(t,r,n,i){let o=-1;if(super(t,r),Ok(this,"space",i),typeof n=="number")for(;++o<Em.length;){let s=Em[o];Ok(this,Em[o],(n&Js[s])===Js[s])}}};ii.prototype.defined=!0;function Ok(e,t,r){r&&(e[t]=r)}var l$={}.hasOwnProperty;function Ot(e){let t={},r={},n;for(n in e.properties)if(l$.call(e.properties,n)){let i=e.properties[n],o=new ii(n,e.transform(e.attributes||{},n),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(n)&&(o.mustUseProperty=!0),t[n]=o,r[Gs(n)]=n,r[Gs(o.attribute)]=n}return new Er(t,r,e.space)}var _m=Ot({space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()},properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}});var Im=Ot({space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()},properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function Ou(e,t){return t in e?e[t]:t}function Mu(e,t){return Ou(e,t.toLowerCase())}var Pm=Ot({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:Mu,properties:{xmlns:null,xmlnsXLink:null}});var Dm=Ot({transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()},properties:{ariaActiveDescendant:null,ariaAtomic:Me,ariaAutoComplete:null,ariaBusy:Me,ariaChecked:Me,ariaColCount:L,ariaColIndex:L,ariaColSpan:L,ariaControls:be,ariaCurrent:null,ariaDescribedBy:be,ariaDetails:null,ariaDisabled:Me,ariaDropEffect:be,ariaErrorMessage:null,ariaExpanded:Me,ariaFlowTo:be,ariaGrabbed:Me,ariaHasPopup:null,ariaHidden:Me,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:be,ariaLevel:L,ariaLive:null,ariaModal:Me,ariaMultiLine:Me,ariaMultiSelectable:Me,ariaOrientation:null,ariaOwns:be,ariaPlaceholder:null,ariaPosInSet:L,ariaPressed:Me,ariaReadOnly:Me,ariaRelevant:null,ariaRequired:Me,ariaRoleDescription:be,ariaRowCount:L,ariaRowIndex:L,ariaRowSpan:L,ariaSelected:Me,ariaSetSize:L,ariaSort:null,ariaValueMax:L,ariaValueMin:L,ariaValueNow:L,ariaValueText:null,role:null}});var Mk=Ot({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:Mu,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:nn,acceptCharset:be,accessKey:be,action:null,allow:null,allowFullScreen:ie,allowPaymentRequest:ie,allowUserMedia:ie,alt:null,as:null,async:ie,autoCapitalize:null,autoComplete:be,autoFocus:ie,autoPlay:ie,blocking:be,capture:null,charSet:null,checked:ie,cite:null,className:be,cols:L,colSpan:null,content:null,contentEditable:Me,controls:ie,controlsList:be,coords:L|nn,crossOrigin:null,data:null,dateTime:null,decoding:null,default:ie,defer:ie,dir:null,dirName:null,disabled:ie,download:Cm,draggable:Me,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:ie,formTarget:null,headers:be,height:L,hidden:ie,high:L,href:null,hrefLang:null,htmlFor:be,httpEquiv:be,id:null,imageSizes:null,imageSrcSet:null,inert:ie,inputMode:null,integrity:null,is:null,isMap:ie,itemId:null,itemProp:be,itemRef:be,itemScope:ie,itemType:be,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:ie,low:L,manifest:null,max:null,maxLength:L,media:null,method:null,min:null,minLength:L,multiple:ie,muted:ie,name:null,nonce:null,noModule:ie,noValidate:ie,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:ie,optimum:L,pattern:null,ping:be,placeholder:null,playsInline:ie,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:ie,referrerPolicy:null,rel:be,required:ie,reversed:ie,rows:L,rowSpan:L,sandbox:be,scope:null,scoped:ie,seamless:ie,selected:ie,shadowRootClonable:ie,shadowRootDelegatesFocus:ie,shadowRootMode:null,shape:null,size:L,sizes:null,slot:null,span:L,spellCheck:Me,src:null,srcDoc:null,srcLang:null,srcSet:null,start:L,step:null,style:null,tabIndex:L,target:null,title:null,translate:null,type:null,typeMustMatch:ie,useMap:null,value:Me,width:L,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:be,axis:null,background:null,bgColor:null,border:L,borderColor:null,bottomMargin:L,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:ie,declare:ie,event:null,face:null,frame:null,frameBorder:null,hSpace:L,leftMargin:L,link:null,longDesc:null,lowSrc:null,marginHeight:L,marginWidth:L,noResize:ie,noHref:ie,noShade:ie,noWrap:ie,object:null,profile:null,prompt:null,rev:null,rightMargin:L,rules:null,scheme:null,scrolling:Me,standby:null,summary:null,text:null,topMargin:L,valueType:null,version:null,vAlign:null,vLink:null,vSpace:L,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:ie,disableRemotePlayback:ie,prefix:null,property:null,results:L,security:null,unselectable:null}});var Nk=Ot({space:"svg",attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},transform:Ou,properties:{about:yt,accentHeight:L,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:L,amplitude:L,arabicForm:null,ascent:L,attributeName:null,attributeType:null,azimuth:L,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:L,by:null,calcMode:null,capHeight:L,className:be,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:L,diffuseConstant:L,direction:null,display:null,dur:null,divisor:L,dominantBaseline:null,download:ie,dx:null,dy:null,edgeMode:null,editable:null,elevation:L,enableBackground:null,end:null,event:null,exponent:L,externalResourcesRequired:null,fill:null,fillOpacity:L,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:nn,g2:nn,glyphName:nn,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:L,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:L,horizOriginX:L,horizOriginY:L,id:null,ideographic:L,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:L,k:L,k1:L,k2:L,k3:L,k4:L,kernelMatrix:yt,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:L,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:L,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:L,overlineThickness:L,paintOrder:null,panose1:null,path:null,pathLength:L,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:be,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:L,pointsAtY:L,pointsAtZ:L,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:yt,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:yt,rev:yt,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:yt,requiredFeatures:yt,requiredFonts:yt,requiredFormats:yt,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:L,specularExponent:L,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:L,strikethroughThickness:L,string:null,stroke:null,strokeDashArray:yt,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:L,strokeOpacity:L,strokeWidth:null,style:null,surfaceScale:L,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:yt,tabIndex:L,tableValues:null,target:null,targetX:L,targetY:L,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:yt,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:L,underlineThickness:L,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:L,values:null,vAlphabetic:L,vMathematical:L,vectorEffect:null,vHanging:L,vIdeographic:L,version:null,vertAdvY:L,vertOriginX:L,vertOriginY:L,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:L,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}});var u$=/^data[-\w.:]+$/i,Fk=/-[a-z]/g,c$=/[A-Z]/g;function Om(e,t){let r=Gs(t),n=t,i=at;if(r in e.normal)return e.property[e.normal[r]];if(r.length>4&&r.slice(0,4)==="data"&&u$.test(t)){if(t.charAt(4)==="-"){let o=t.slice(5).replace(Fk,p$);n="data"+o.charAt(0).toUpperCase()+o.slice(1)}else{let o=t.slice(4);if(!Fk.test(o)){let s=o.replace(c$,f$);s.charAt(0)!=="-"&&(s="-"+s),t="data"+s}}i=ii}return new i(n,t)}function f$(e){return"-"+e.toLowerCase()}function p$(e){return e.charAt(1).toUpperCase()}var Rk=Tm([Im,_m,Pm,Dm,Mk],"html"),Nu=Tm([Im,_m,Pm,Dm,Nk],"svg");var h$=/["&'<>`]/g,m$=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,d$=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,g$=/[|\\{}()[\]^$+*?.]/g,Lk=new WeakMap;function Bk(e,t){if(e=e.replace(t.subset?y$(t.subset):h$,n),t.subset||t.escapeOnly)return e;return e.replace(m$,r).replace(d$,n);function r(i,o,s){return t.format((i.charCodeAt(0)-55296)*1024+i.charCodeAt(1)-56320+65536,s.charCodeAt(o+2),t)}function n(i,o,s){return t.format(i.charCodeAt(0),s.charCodeAt(o+1),t)}}function y$(e){let t=Lk.get(e);return t||(t=x$(e),Lk.set(e,t)),t}function x$(e){let t=[],r=-1;for(;++r<e.length;)t.push(e[r].replace(g$,"\\$&"));return new RegExp("(?:"+t.join("|")+")","g")}var b$=/[\dA-Fa-f]/;function $k(e,t,r){let n="&#x"+e.toString(16).toUpperCase();return r&&t&&!b$.test(String.fromCharCode(t))?n:n+";"}var w$=/\d/;function Uk(e,t,r){let n="&#"+String(e);return r&&t&&!w$.test(String.fromCharCode(t))?n:n+";"}var jk=["AElig","AMP","Aacute","Acirc","Agrave","Aring","Atilde","Auml","COPY","Ccedil","ETH","Eacute","Ecirc","Egrave","Euml","GT","Iacute","Icirc","Igrave","Iuml","LT","Ntilde","Oacute","Ocirc","Ograve","Oslash","Otilde","Ouml","QUOT","REG","THORN","Uacute","Ucirc","Ugrave","Uuml","Yacute","aacute","acirc","acute","aelig","agrave","amp","aring","atilde","auml","brvbar","ccedil","cedil","cent","copy","curren","deg","divide","eacute","ecirc","egrave","eth","euml","frac12","frac14","frac34","gt","iacute","icirc","iexcl","igrave","iquest","iuml","laquo","lt","macr","micro","middot","nbsp","not","ntilde","oacute","ocirc","ograve","ordf","ordm","oslash","otilde","ouml","para","plusmn","pound","quot","raquo","reg","sect","shy","sup1","sup2","sup3","szlig","thorn","times","uacute","ucirc","ugrave","uml","uuml","yacute","yen","yuml"];var Fu={nbsp:"\xA0",iexcl:"\xA1",cent:"\xA2",pound:"\xA3",curren:"\xA4",yen:"\xA5",brvbar:"\xA6",sect:"\xA7",uml:"\xA8",copy:"\xA9",ordf:"\xAA",laquo:"\xAB",not:"\xAC",shy:"\xAD",reg:"\xAE",macr:"\xAF",deg:"\xB0",plusmn:"\xB1",sup2:"\xB2",sup3:"\xB3",acute:"\xB4",micro:"\xB5",para:"\xB6",middot:"\xB7",cedil:"\xB8",sup1:"\xB9",ordm:"\xBA",raquo:"\xBB",frac14:"\xBC",frac12:"\xBD",frac34:"\xBE",iquest:"\xBF",Agrave:"\xC0",Aacute:"\xC1",Acirc:"\xC2",Atilde:"\xC3",Auml:"\xC4",Aring:"\xC5",AElig:"\xC6",Ccedil:"\xC7",Egrave:"\xC8",Eacute:"\xC9",Ecirc:"\xCA",Euml:"\xCB",Igrave:"\xCC",Iacute:"\xCD",Icirc:"\xCE",Iuml:"\xCF",ETH:"\xD0",Ntilde:"\xD1",Ograve:"\xD2",Oacute:"\xD3",Ocirc:"\xD4",Otilde:"\xD5",Ouml:"\xD6",times:"\xD7",Oslash:"\xD8",Ugrave:"\xD9",Uacute:"\xDA",Ucirc:"\xDB",Uuml:"\xDC",Yacute:"\xDD",THORN:"\xDE",szlig:"\xDF",agrave:"\xE0",aacute:"\xE1",acirc:"\xE2",atilde:"\xE3",auml:"\xE4",aring:"\xE5",aelig:"\xE6",ccedil:"\xE7",egrave:"\xE8",eacute:"\xE9",ecirc:"\xEA",euml:"\xEB",igrave:"\xEC",iacute:"\xED",icirc:"\xEE",iuml:"\xEF",eth:"\xF0",ntilde:"\xF1",ograve:"\xF2",oacute:"\xF3",ocirc:"\xF4",otilde:"\xF5",ouml:"\xF6",divide:"\xF7",oslash:"\xF8",ugrave:"\xF9",uacute:"\xFA",ucirc:"\xFB",uuml:"\xFC",yacute:"\xFD",thorn:"\xFE",yuml:"\xFF",fnof:"\u0192",Alpha:"\u0391",Beta:"\u0392",Gamma:"\u0393",Delta:"\u0394",Epsilon:"\u0395",Zeta:"\u0396",Eta:"\u0397",Theta:"\u0398",Iota:"\u0399",Kappa:"\u039A",Lambda:"\u039B",Mu:"\u039C",Nu:"\u039D",Xi:"\u039E",Omicron:"\u039F",Pi:"\u03A0",Rho:"\u03A1",Sigma:"\u03A3",Tau:"\u03A4",Upsilon:"\u03A5",Phi:"\u03A6",Chi:"\u03A7",Psi:"\u03A8",Omega:"\u03A9",alpha:"\u03B1",beta:"\u03B2",gamma:"\u03B3",delta:"\u03B4",epsilon:"\u03B5",zeta:"\u03B6",eta:"\u03B7",theta:"\u03B8",iota:"\u03B9",kappa:"\u03BA",lambda:"\u03BB",mu:"\u03BC",nu:"\u03BD",xi:"\u03BE",omicron:"\u03BF",pi:"\u03C0",rho:"\u03C1",sigmaf:"\u03C2",sigma:"\u03C3",tau:"\u03C4",upsilon:"\u03C5",phi:"\u03C6",chi:"\u03C7",psi:"\u03C8",omega:"\u03C9",thetasym:"\u03D1",upsih:"\u03D2",piv:"\u03D6",bull:"\u2022",hellip:"\u2026",prime:"\u2032",Prime:"\u2033",oline:"\u203E",frasl:"\u2044",weierp:"\u2118",image:"\u2111",real:"\u211C",trade:"\u2122",alefsym:"\u2135",larr:"\u2190",uarr:"\u2191",rarr:"\u2192",darr:"\u2193",harr:"\u2194",crarr:"\u21B5",lArr:"\u21D0",uArr:"\u21D1",rArr:"\u21D2",dArr:"\u21D3",hArr:"\u21D4",forall:"\u2200",part:"\u2202",exist:"\u2203",empty:"\u2205",nabla:"\u2207",isin:"\u2208",notin:"\u2209",ni:"\u220B",prod:"\u220F",sum:"\u2211",minus:"\u2212",lowast:"\u2217",radic:"\u221A",prop:"\u221D",infin:"\u221E",ang:"\u2220",and:"\u2227",or:"\u2228",cap:"\u2229",cup:"\u222A",int:"\u222B",there4:"\u2234",sim:"\u223C",cong:"\u2245",asymp:"\u2248",ne:"\u2260",equiv:"\u2261",le:"\u2264",ge:"\u2265",sub:"\u2282",sup:"\u2283",nsub:"\u2284",sube:"\u2286",supe:"\u2287",oplus:"\u2295",otimes:"\u2297",perp:"\u22A5",sdot:"\u22C5",lceil:"\u2308",rceil:"\u2309",lfloor:"\u230A",rfloor:"\u230B",lang:"\u2329",rang:"\u232A",loz:"\u25CA",spades:"\u2660",clubs:"\u2663",hearts:"\u2665",diams:"\u2666",quot:'"',amp:"&",lt:"<",gt:">",OElig:"\u0152",oelig:"\u0153",Scaron:"\u0160",scaron:"\u0161",Yuml:"\u0178",circ:"\u02C6",tilde:"\u02DC",ensp:"\u2002",emsp:"\u2003",thinsp:"\u2009",zwnj:"\u200C",zwj:"\u200D",lrm:"\u200E",rlm:"\u200F",ndash:"\u2013",mdash:"\u2014",lsquo:"\u2018",rsquo:"\u2019",sbquo:"\u201A",ldquo:"\u201C",rdquo:"\u201D",bdquo:"\u201E",dagger:"\u2020",Dagger:"\u2021",permil:"\u2030",lsaquo:"\u2039",rsaquo:"\u203A",euro:"\u20AC"};var zk=["cent","copy","divide","gt","lt","not","para","times"];var qk={}.hasOwnProperty,Mm={},Ru;for(Ru in Fu)qk.call(Fu,Ru)&&(Mm[Fu[Ru]]=Ru);var v$=/[^\dA-Za-z]/;function Hk(e,t,r,n){let i=String.fromCharCode(e);if(qk.call(Mm,i)){let o=Mm[i],s="&"+o;return r&&jk.includes(o)&&!zk.includes(o)&&(!n||t&&t!==61&&v$.test(String.fromCharCode(t)))?s:s+";"}return""}function Vk(e,t,r){let n=$k(e,t,r.omitOptionalSemicolons),i;if((r.useNamedReferences||r.useShortestReferences)&&(i=Hk(e,t,r.omitOptionalSemicolons,r.attribute)),(r.useShortestReferences||!i)&&r.useShortestReferences){let o=Uk(e,t,r.omitOptionalSemicolons);o.length<n.length&&(n=o)}return i&&(!r.useShortestReferences||i.length<n.length)?i:n}function _r(e,t){return Bk(e,Object.assign({format:Vk},t))}var S$=/^>|^->|<!--|-->|--!>|<!-$/g,k$=[">"],A$=["<",">"];function Wk(e,t,r,n){return n.settings.bogusComments?"<?"+_r(e.value,Object.assign({},n.settings.characterReferences,{subset:k$}))+">":"<!--"+e.value.replace(S$,i)+"-->";function i(o){return _r(o,Object.assign({},n.settings.characterReferences,{subset:A$}))}}function Yk(e,t,r,n){return"<!"+(n.settings.upperDoctype?"DOCTYPE":"doctype")+(n.settings.tightDoctype?"":" ")+"html>"}function Gk(e,t){let r=t||{};return(e[e.length-1]===""?[...e,""]:e).join((r.padRight?" ":"")+","+(r.padLeft===!1?"":" ")).trim()}function Jk(e){return e.join(" ").trim()}var T$=/[ \t\n\f\r]/g;function oi(e){return typeof e=="object"?e.type==="text"?Qk(e.value):!1:Qk(e)}function Qk(e){return e.replace(T$,"")===""}var Le=Zk(1),Nm=Zk(-1),C$=[];function Zk(e){return t;function t(r,n,i){let o=r?r.children:C$,s=(n||0)+e,a=o[s];if(!i)for(;a&&oi(a);)s+=e,a=o[s];return a}}var E$={}.hasOwnProperty;function Lu(e){return t;function t(r,n,i){return E$.call(e,r.tagName)&&e[r.tagName](r,n,i)}}var Qs=Lu({body:I$,caption:Fm,colgroup:Fm,dd:M$,dt:O$,head:Fm,html:_$,li:D$,optgroup:N$,option:F$,p:P$,rp:Xk,rt:Xk,tbody:L$,td:Kk,tfoot:B$,th:Kk,thead:R$,tr:$$});function Fm(e,t,r){let n=Le(r,t,!0);return!n||n.type!=="comment"&&!(n.type==="text"&&oi(n.value.charAt(0)))}function _$(e,t,r){let n=Le(r,t);return!n||n.type!=="comment"}function I$(e,t,r){let n=Le(r,t);return!n||n.type!=="comment"}function P$(e,t,r){let n=Le(r,t);return n?n.type==="element"&&(n.tagName==="address"||n.tagName==="article"||n.tagName==="aside"||n.tagName==="blockquote"||n.tagName==="details"||n.tagName==="div"||n.tagName==="dl"||n.tagName==="fieldset"||n.tagName==="figcaption"||n.tagName==="figure"||n.tagName==="footer"||n.tagName==="form"||n.tagName==="h1"||n.tagName==="h2"||n.tagName==="h3"||n.tagName==="h4"||n.tagName==="h5"||n.tagName==="h6"||n.tagName==="header"||n.tagName==="hgroup"||n.tagName==="hr"||n.tagName==="main"||n.tagName==="menu"||n.tagName==="nav"||n.tagName==="ol"||n.tagName==="p"||n.tagName==="pre"||n.tagName==="section"||n.tagName==="table"||n.tagName==="ul"):!r||!(r.type==="element"&&(r.tagName==="a"||r.tagName==="audio"||r.tagName==="del"||r.tagName==="ins"||r.tagName==="map"||r.tagName==="noscript"||r.tagName==="video"))}function D$(e,t,r){let n=Le(r,t);return!n||n.type==="element"&&n.tagName==="li"}function O$(e,t,r){let n=Le(r,t);return!!(n&&n.type==="element"&&(n.tagName==="dt"||n.tagName==="dd"))}function M$(e,t,r){let n=Le(r,t);return!n||n.type==="element"&&(n.tagName==="dt"||n.tagName==="dd")}function Xk(e,t,r){let n=Le(r,t);return!n||n.type==="element"&&(n.tagName==="rp"||n.tagName==="rt")}function N$(e,t,r){let n=Le(r,t);return!n||n.type==="element"&&n.tagName==="optgroup"}function F$(e,t,r){let n=Le(r,t);return!n||n.type==="element"&&(n.tagName==="option"||n.tagName==="optgroup")}function R$(e,t,r){let n=Le(r,t);return!!(n&&n.type==="element"&&(n.tagName==="tbody"||n.tagName==="tfoot"))}function L$(e,t,r){let n=Le(r,t);return!n||n.type==="element"&&(n.tagName==="tbody"||n.tagName==="tfoot")}function B$(e,t,r){return!Le(r,t)}function $$(e,t,r){let n=Le(r,t);return!n||n.type==="element"&&n.tagName==="tr"}function Kk(e,t,r){let n=Le(r,t);return!n||n.type==="element"&&(n.tagName==="td"||n.tagName==="th")}var eA=Lu({body:z$,colgroup:q$,head:j$,html:U$,tbody:H$});function U$(e){let t=Le(e,-1);return!t||t.type!=="comment"}function j$(e){let t=new Set;for(let n of e.children)if(n.type==="element"&&(n.tagName==="base"||n.tagName==="title")){if(t.has(n.tagName))return!1;t.add(n.tagName)}let r=e.children[0];return!r||r.type==="element"}function z$(e){let t=Le(e,-1,!0);return!t||t.type!=="comment"&&!(t.type==="text"&&oi(t.value.charAt(0)))&&!(t.type==="element"&&(t.tagName==="meta"||t.tagName==="link"||t.tagName==="script"||t.tagName==="style"||t.tagName==="template"))}function q$(e,t,r){let n=Nm(r,t),i=Le(e,-1,!0);return r&&n&&n.type==="element"&&n.tagName==="colgroup"&&Qs(n,r.children.indexOf(n),r)?!1:!!(i&&i.type==="element"&&i.tagName==="col")}function H$(e,t,r){let n=Nm(r,t),i=Le(e,-1);return r&&n&&n.type==="element"&&(n.tagName==="thead"||n.tagName==="tbody")&&Qs(n,r.children.indexOf(n),r)?!1:!!(i&&i.type==="element"&&i.tagName==="tr")}var Bu={name:[[`
101
101
  \f\r &/=>`.split(""),`
102
102
  \f\r "&'/=>\``.split("")],[`\0
103
103
  \f\r "&'/<=>`.split(""),`\0
@@ -105,9 +105,9 @@ ${i}
105
105
  \f\r &>`.split(""),`\0
106
106
  \f\r "&'<=>\``.split("")],[`\0
107
107
  \f\r "&'<=>\``.split(""),`\0
108
- \f\r "&'<=>\``.split("")]],single:[["&'".split(""),"\"&'`".split("")],["\0&'".split(""),"\0\"&'`".split("")]],double:[['"&'.split(""),"\"&'`".split("")],['\0"&'.split(""),"\0\"&'`".split("")]]};function tA(e,t,r,n){let i=n.schema,o=i.space==="svg"?!1:n.settings.omitOptionalTags,s=i.space==="svg"?n.settings.closeEmptyElements:n.settings.voids.includes(e.tagName.toLowerCase()),a=[],l;i.space==="html"&&e.tagName==="svg"&&(n.schema=Nu);let u=q$(n,e.properties),c=n.all(i.space==="html"&&e.tagName==="template"?e.content:e);return n.schema=i,c&&(s=!1),(u||!o||!eA(e,t,r))&&(a.push("<",e.tagName,u?" "+u:""),s&&(i.space==="svg"||n.settings.closeSelfClosing)&&(l=u.charAt(u.length-1),(!n.settings.tightSelfClosing||l==="/"||l&&l!=='"'&&l!=="'")&&a.push(" "),a.push("/")),a.push(">")),a.push(c),!s&&(!o||!Qs(e,t,r))&&a.push("</"+e.tagName+">"),a.join("")}function q$(e,t){let r=[],n=-1,i;if(t){for(i in t)if(t[i]!==null&&t[i]!==void 0){let o=H$(e,i,t[i]);o&&r.push(o)}}for(;++n<r.length;){let o=e.settings.tightAttributes?r[n].charAt(r[n].length-1):void 0;n!==r.length-1&&o!=='"'&&o!=="'"&&(r[n]+=" ")}return r.join("")}function H$(e,t,r){let n=Mm(e.schema,t),i=e.settings.allowParseErrors&&e.schema.space==="html"?0:1,o=e.settings.allowDangerousCharacters?0:1,s=e.quote,a;if(n.overloadedBoolean&&(r===n.attribute||r==="")?r=!0:(n.boolean||n.overloadedBoolean&&typeof r!="string")&&(r=!!r),r==null||r===!1||typeof r=="number"&&Number.isNaN(r))return"";let l=_r(n.attribute,Object.assign({},e.settings.characterReferences,{subset:Bu.name[i][o]}));return r===!0||(r=Array.isArray(r)?(n.commaSeparated?Gk:Jk)(r,{padLeft:!e.settings.tightCommaSeparatedLists}):String(r),e.settings.collapseEmptyAttributes&&!r)?l:(e.settings.preferUnquoted&&(a=_r(r,Object.assign({},e.settings.characterReferences,{attribute:!0,subset:Bu.unquoted[i][o]}))),a!==r&&(e.settings.quoteSmart&&eo(r,s)>eo(r,e.alternative)&&(s=e.alternative),a=s+_r(r,Object.assign({},e.settings.characterReferences,{subset:(s==="'"?Bu.single:Bu.double)[i][o],attribute:!0}))+s),l+(a&&"="+a))}var V$=["<","&"];function $u(e,t,r,n){return r&&r.type==="element"&&(r.tagName==="script"||r.tagName==="style")?e.value:_r(e.value,Object.assign({},n.settings.characterReferences,{subset:V$}))}function rA(e,t,r,n){return n.settings.allowDangerousHtml?e.value:$u(e,t,r,n)}function nA(e,t,r,n){return n.all(e)}var iA=nu("type",{invalid:W$,unknown:Y$,handlers:{comment:Wk,doctype:Yk,element:tA,raw:rA,root:nA,text:$u}});function W$(e){throw new Error("Expected node, not `"+e+"`")}function Y$(e){let t=e;throw new Error("Cannot compile unknown node `"+t.type+"`")}var G$={},J$={},Q$=[];function Rm(e,t){let r=t||G$,n=r.quote||'"',i=n==='"'?"'":'"';if(n!=='"'&&n!=="'")throw new Error("Invalid quote `"+n+"`, expected `'` or `\"`");return{one:Z$,all:X$,settings:{omitOptionalTags:r.omitOptionalTags||!1,allowParseErrors:r.allowParseErrors||!1,allowDangerousCharacters:r.allowDangerousCharacters||!1,quoteSmart:r.quoteSmart||!1,preferUnquoted:r.preferUnquoted||!1,tightAttributes:r.tightAttributes||!1,upperDoctype:r.upperDoctype||!1,tightDoctype:r.tightDoctype||!1,bogusComments:r.bogusComments||!1,tightCommaSeparatedLists:r.tightCommaSeparatedLists||!1,tightSelfClosing:r.tightSelfClosing||!1,collapseEmptyAttributes:r.collapseEmptyAttributes||!1,allowDangerousHtml:r.allowDangerousHtml||!1,voids:r.voids||Ok,characterReferences:r.characterReferences||J$,closeSelfClosing:r.closeSelfClosing||!1,closeEmptyElements:r.closeEmptyElements||!1},schema:r.space==="svg"?Nu:Rk,quote:n,alternative:i}.one(Array.isArray(e)?{type:"root",children:e}:e,void 0,void 0)}function Z$(e,t,r){return iA(e,t,r,this)}function X$(e){let t=[],r=e&&e.children||Q$,n=-1;for(;++n<r.length;)t[n]=this.one(r[n],n,e);return t.join("")}var K$={};function Zs(e){let t=this,{handlers:r,sanitize:n,...i}=e||K$,o=!1,s;typeof n=="boolean"?o=!n:n&&(s=n),t.compiler=a;function a(l,u){let c=Am(l,{handlers:r,allowDangerousHtml:o}),f=o?c:Sm(c,s),p=Rm(f,{...i,allowDangerousHtml:o});return u.extname&&(u.extname=".html"),l&&l.type==="root"&&p&&/[^\r\n]/.test(p.charAt(p.length-1))?p+`
109
- `:p}}function Xs(e){let t=this;t.compiler=r;function r(n){return Ph(n,{...t.data("settings"),...e,extensions:t.data("toMarkdownExtensions")||[]})}}function e3(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)r.hasOwnProperty(n)&&(e[n]=r[n])}return e}function Um(e,t){return Array(t+1).join(e)}function t3(e){return e.replace(/^\n*/,"")}function r3(e){for(var t=e.length;t>0&&e[t-1]===`
110
- `;)t--;return e.substring(0,t)}var n3=["ADDRESS","ARTICLE","ASIDE","AUDIO","BLOCKQUOTE","BODY","CANVAS","CENTER","DD","DIR","DIV","DL","DT","FIELDSET","FIGCAPTION","FIGURE","FOOTER","FORM","FRAMESET","H1","H2","H3","H4","H5","H6","HEADER","HGROUP","HR","HTML","ISINDEX","LI","MAIN","MENU","NAV","NOFRAMES","NOSCRIPT","OL","OUTPUT","P","PRE","SECTION","TABLE","TBODY","TD","TFOOT","TH","THEAD","TR","UL"];function jm(e){return zm(e,n3)}var aA=["AREA","BASE","BR","COL","COMMAND","EMBED","HR","IMG","INPUT","KEYGEN","LINK","META","PARAM","SOURCE","TRACK","WBR"];function lA(e){return zm(e,aA)}function i3(e){return cA(e,aA)}var uA=["A","TABLE","THEAD","TBODY","TFOOT","TH","TD","IFRAME","SCRIPT","AUDIO","VIDEO"];function o3(e){return zm(e,uA)}function s3(e){return cA(e,uA)}function zm(e,t){return t.indexOf(e.nodeName)>=0}function cA(e,t){return e.getElementsByTagName&&t.some(function(r){return e.getElementsByTagName(r).length})}var lt={};lt.paragraph={filter:"p",replacement:function(e){return`
108
+ \f\r "&'<=>\``.split("")]],single:[["&'".split(""),"\"&'`".split("")],["\0&'".split(""),"\0\"&'`".split("")]],double:[['"&'.split(""),"\"&'`".split("")],['\0"&'.split(""),"\0\"&'`".split("")]]};function tA(e,t,r,n){let i=n.schema,o=i.space==="svg"?!1:n.settings.omitOptionalTags,s=i.space==="svg"?n.settings.closeEmptyElements:n.settings.voids.includes(e.tagName.toLowerCase()),a=[],l;i.space==="html"&&e.tagName==="svg"&&(n.schema=Nu);let u=V$(n,e.properties),c=n.all(i.space==="html"&&e.tagName==="template"?e.content:e);return n.schema=i,c&&(s=!1),(u||!o||!eA(e,t,r))&&(a.push("<",e.tagName,u?" "+u:""),s&&(i.space==="svg"||n.settings.closeSelfClosing)&&(l=u.charAt(u.length-1),(!n.settings.tightSelfClosing||l==="/"||l&&l!=='"'&&l!=="'")&&a.push(" "),a.push("/")),a.push(">")),a.push(c),!s&&(!o||!Qs(e,t,r))&&a.push("</"+e.tagName+">"),a.join("")}function V$(e,t){let r=[],n=-1,i;if(t){for(i in t)if(t[i]!==null&&t[i]!==void 0){let o=W$(e,i,t[i]);o&&r.push(o)}}for(;++n<r.length;){let o=e.settings.tightAttributes?r[n].charAt(r[n].length-1):void 0;n!==r.length-1&&o!=='"'&&o!=="'"&&(r[n]+=" ")}return r.join("")}function W$(e,t,r){let n=Om(e.schema,t),i=e.settings.allowParseErrors&&e.schema.space==="html"?0:1,o=e.settings.allowDangerousCharacters?0:1,s=e.quote,a;if(n.overloadedBoolean&&(r===n.attribute||r==="")?r=!0:(n.boolean||n.overloadedBoolean&&typeof r!="string")&&(r=!!r),r==null||r===!1||typeof r=="number"&&Number.isNaN(r))return"";let l=_r(n.attribute,Object.assign({},e.settings.characterReferences,{subset:Bu.name[i][o]}));return r===!0||(r=Array.isArray(r)?(n.commaSeparated?Gk:Jk)(r,{padLeft:!e.settings.tightCommaSeparatedLists}):String(r),e.settings.collapseEmptyAttributes&&!r)?l:(e.settings.preferUnquoted&&(a=_r(r,Object.assign({},e.settings.characterReferences,{attribute:!0,subset:Bu.unquoted[i][o]}))),a!==r&&(e.settings.quoteSmart&&eo(r,s)>eo(r,e.alternative)&&(s=e.alternative),a=s+_r(r,Object.assign({},e.settings.characterReferences,{subset:(s==="'"?Bu.single:Bu.double)[i][o],attribute:!0}))+s),l+(a&&"="+a))}var Y$=["<","&"];function $u(e,t,r,n){return r&&r.type==="element"&&(r.tagName==="script"||r.tagName==="style")?e.value:_r(e.value,Object.assign({},n.settings.characterReferences,{subset:Y$}))}function rA(e,t,r,n){return n.settings.allowDangerousHtml?e.value:$u(e,t,r,n)}function nA(e,t,r,n){return n.all(e)}var iA=nu("type",{invalid:G$,unknown:J$,handlers:{comment:Wk,doctype:Yk,element:tA,raw:rA,root:nA,text:$u}});function G$(e){throw new Error("Expected node, not `"+e+"`")}function J$(e){let t=e;throw new Error("Cannot compile unknown node `"+t.type+"`")}var Q$={},Z$={},X$=[];function Rm(e,t){let r=t||Q$,n=r.quote||'"',i=n==='"'?"'":'"';if(n!=='"'&&n!=="'")throw new Error("Invalid quote `"+n+"`, expected `'` or `\"`");return{one:K$,all:e3,settings:{omitOptionalTags:r.omitOptionalTags||!1,allowParseErrors:r.allowParseErrors||!1,allowDangerousCharacters:r.allowDangerousCharacters||!1,quoteSmart:r.quoteSmart||!1,preferUnquoted:r.preferUnquoted||!1,tightAttributes:r.tightAttributes||!1,upperDoctype:r.upperDoctype||!1,tightDoctype:r.tightDoctype||!1,bogusComments:r.bogusComments||!1,tightCommaSeparatedLists:r.tightCommaSeparatedLists||!1,tightSelfClosing:r.tightSelfClosing||!1,collapseEmptyAttributes:r.collapseEmptyAttributes||!1,allowDangerousHtml:r.allowDangerousHtml||!1,voids:r.voids||Dk,characterReferences:r.characterReferences||Z$,closeSelfClosing:r.closeSelfClosing||!1,closeEmptyElements:r.closeEmptyElements||!1},schema:r.space==="svg"?Nu:Rk,quote:n,alternative:i}.one(Array.isArray(e)?{type:"root",children:e}:e,void 0,void 0)}function K$(e,t,r){return iA(e,t,r,this)}function e3(e){let t=[],r=e&&e.children||X$,n=-1;for(;++n<r.length;)t[n]=this.one(r[n],n,e);return t.join("")}var t3={};function Zs(e){let t=this,{handlers:r,sanitize:n,...i}=e||t3,o=!1,s;typeof n=="boolean"?o=!n:n&&(s=n),t.compiler=a;function a(l,u){let c=Am(l,{handlers:r,allowDangerousHtml:o}),f=o?c:Sm(c,s),p=Rm(f,{...i,allowDangerousHtml:o});return u.extname&&(u.extname=".html"),l&&l.type==="root"&&p&&/[^\r\n]/.test(p.charAt(p.length-1))?p+`
109
+ `:p}}function Xs(e){let t=this;t.compiler=r;function r(n){return Mh(n,{...t.data("settings"),...e,extensions:t.data("toMarkdownExtensions")||[]})}}function r3(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)r.hasOwnProperty(n)&&(e[n]=r[n])}return e}function Um(e,t){return Array(t+1).join(e)}function n3(e){return e.replace(/^\n*/,"")}function i3(e){for(var t=e.length;t>0&&e[t-1]===`
110
+ `;)t--;return e.substring(0,t)}var o3=["ADDRESS","ARTICLE","ASIDE","AUDIO","BLOCKQUOTE","BODY","CANVAS","CENTER","DD","DIR","DIV","DL","DT","FIELDSET","FIGCAPTION","FIGURE","FOOTER","FORM","FRAMESET","H1","H2","H3","H4","H5","H6","HEADER","HGROUP","HR","HTML","ISINDEX","LI","MAIN","MENU","NAV","NOFRAMES","NOSCRIPT","OL","OUTPUT","P","PRE","SECTION","TABLE","TBODY","TD","TFOOT","TH","THEAD","TR","UL"];function jm(e){return zm(e,o3)}var aA=["AREA","BASE","BR","COL","COMMAND","EMBED","HR","IMG","INPUT","KEYGEN","LINK","META","PARAM","SOURCE","TRACK","WBR"];function lA(e){return zm(e,aA)}function s3(e){return cA(e,aA)}var uA=["A","TABLE","THEAD","TBODY","TFOOT","TH","TD","IFRAME","SCRIPT","AUDIO","VIDEO"];function a3(e){return zm(e,uA)}function l3(e){return cA(e,uA)}function zm(e,t){return t.indexOf(e.nodeName)>=0}function cA(e,t){return e.getElementsByTagName&&t.some(function(r){return e.getElementsByTagName(r).length})}var lt={};lt.paragraph={filter:"p",replacement:function(e){return`
111
111
 
112
112
  `+e+`
113
113
 
@@ -154,7 +154,7 @@ ${i}
154
154
  `)+`
155
155
 
156
156
  `,this.references=[]),t}};lt.emphasis={filter:["em","i"],replacement:function(e,t,r){return e.trim()?r.emDelimiter+e+r.emDelimiter:""}};lt.strong={filter:["strong","b"],replacement:function(e,t,r){return e.trim()?r.strongDelimiter+e+r.strongDelimiter:""}};lt.code={filter:function(e){var t=e.previousSibling||e.nextSibling,r=e.parentNode.nodeName==="PRE"&&!t;return e.nodeName==="CODE"&&!r},replacement:function(e){if(!e)return"";e=e.replace(/\r?\n|\r/g," ");for(var t=/^`|^ .*?[^ ].* $|`$/.test(e)?" ":"",r="`",n=e.match(/`+/gm)||[];n.indexOf(r)!==-1;)r=r+"`";return r+t+e+t+r}};lt.image={filter:"img",replacement:function(e,t){var r=Uu(t.getAttribute("alt")),n=t.getAttribute("src")||"",i=Uu(t.getAttribute("title")),o=i?' "'+i+'"':"";return n?"!["+r+"]("+n+o+")":""}};function Uu(e){return e?e.replace(/(\n+\s*)+/g,`
157
- `):""}function fA(e){this.options=e,this._keep=[],this._remove=[],this.blankRule={replacement:e.blankReplacement},this.keepReplacement=e.keepReplacement,this.defaultRule={replacement:e.defaultReplacement},this.array=[];for(var t in e.rules)this.array.push(e.rules[t])}fA.prototype={add:function(e,t){this.array.unshift(t)},keep:function(e){this._keep.unshift({filter:e,replacement:this.keepReplacement})},remove:function(e){this._remove.unshift({filter:e,replacement:function(){return""}})},forNode:function(e){if(e.isBlank)return this.blankRule;var t;return(t=Lm(this.array,e,this.options))||(t=Lm(this._keep,e,this.options))||(t=Lm(this._remove,e,this.options))?t:this.defaultRule},forEach:function(e){for(var t=0;t<this.array.length;t++)e(this.array[t],t)}};function Lm(e,t,r){for(var n=0;n<e.length;n++){var i=e[n];if(a3(i,t,r))return i}}function a3(e,t,r){var n=e.filter;if(typeof n=="string"){if(n===t.nodeName.toLowerCase())return!0}else if(Array.isArray(n)){if(n.indexOf(t.nodeName.toLowerCase())>-1)return!0}else if(typeof n=="function"){if(n.call(e,t,r))return!0}else throw new TypeError("`filter` needs to be a string, array, or function")}function l3(e){var t=e.element,r=e.isBlock,n=e.isVoid,i=e.isPre||function(f){return f.nodeName==="PRE"};if(!(!t.firstChild||i(t))){for(var o=null,s=!1,a=null,l=oA(a,t,i);l!==t;){if(l.nodeType===3||l.nodeType===4){var u=l.data.replace(/[ \r\n\t]+/g," ");if((!o||/ $/.test(o.data))&&!s&&u[0]===" "&&(u=u.substr(1)),!u){l=Bm(l);continue}l.data=u,o=l}else if(l.nodeType===1)r(l)||l.nodeName==="BR"?(o&&(o.data=o.data.replace(/ $/,"")),o=null,s=!1):n(l)||i(l)?(o=null,s=!0):o&&(s=!1);else{l=Bm(l);continue}var c=oA(a,l,i);a=l,l=c}o&&(o.data=o.data.replace(/ $/,""),o.data||Bm(o))}}function Bm(e){var t=e.nextSibling||e.parentNode;return e.parentNode.removeChild(e),t}function oA(e,t,r){return e&&e.parentNode===t||r(t)?t.nextSibling||t.parentNode:t.firstChild||t.nextSibling||t.parentNode}var qm=typeof window<"u"?window:{};function u3(){var e=qm.DOMParser,t=!1;try{new e().parseFromString("","text/html")&&(t=!0)}catch{}return t}function c3(){var e=function(){};return f3()?e.prototype.parseFromString=function(t){var r=new window.ActiveXObject("htmlfile");return r.designMode="on",r.open(),r.write(t),r.close(),r}:e.prototype.parseFromString=function(t){var r=document.implementation.createHTMLDocument("");return r.open(),r.write(t),r.close(),r},e}function f3(){var e=!1;try{document.implementation.createHTMLDocument("").open()}catch{qm.ActiveXObject&&(e=!0)}return e}var p3=u3()?qm.DOMParser:c3();function h3(e,t){var r;if(typeof e=="string"){var n=m3().parseFromString('<x-turndown id="turndown-root">'+e+"</x-turndown>","text/html");r=n.getElementById("turndown-root")}else r=e.cloneNode(!0);return l3({element:r,isBlock:jm,isVoid:lA,isPre:t.preformattedCode?d3:null}),r}var $m;function m3(){return $m=$m||new p3,$m}function d3(e){return e.nodeName==="PRE"||e.nodeName==="CODE"}function g3(e,t){return e.isBlock=jm(e),e.isCode=e.nodeName==="CODE"||e.parentNode.isCode,e.isBlank=y3(e),e.flankingWhitespace=x3(e,t),e}function y3(e){return!lA(e)&&!o3(e)&&/^\s*$/i.test(e.textContent)&&!i3(e)&&!s3(e)}function x3(e,t){if(e.isBlock||t.preformattedCode&&e.isCode)return{leading:"",trailing:""};var r=b3(e.textContent);return r.leadingAscii&&sA("left",e,t)&&(r.leading=r.leadingNonAscii),r.trailingAscii&&sA("right",e,t)&&(r.trailing=r.trailingNonAscii),{leading:r.leading,trailing:r.trailing}}function b3(e){var t=e.match(/^(([ \t\r\n]*)(\s*))(?:(?=\S)[\s\S]*\S)?((\s*?)([ \t\r\n]*))$/);return{leading:t[1],leadingAscii:t[2],leadingNonAscii:t[3],trailing:t[4],trailingNonAscii:t[5],trailingAscii:t[6]}}function sA(e,t,r){var n,i,o;return e==="left"?(n=t.previousSibling,i=/ $/):(n=t.nextSibling,i=/^ /),n&&(n.nodeType===3?o=i.test(n.nodeValue):r.preformattedCode&&n.nodeName==="CODE"?o=!1:n.nodeType===1&&!jm(n)&&(o=i.test(n.textContent))),o}var w3=Array.prototype.reduce,v3=[[/\\/g,"\\\\"],[/\*/g,"\\*"],[/^-/g,"\\-"],[/^\+ /g,"\\+ "],[/^(=+)/g,"\\$1"],[/^(#{1,6}) /g,"\\$1 "],[/`/g,"\\`"],[/^~~~/g,"\\~~~"],[/\[/g,"\\["],[/\]/g,"\\]"],[/^>/g,"\\>"],[/_/g,"\\_"],[/^(\d+)\. /g,"$1\\. "]];function ju(e){if(!(this instanceof ju))return new ju(e);var t={rules:lt,headingStyle:"setext",hr:"* * *",bulletListMarker:"*",codeBlockStyle:"indented",fence:"```",emDelimiter:"_",strongDelimiter:"**",linkStyle:"inlined",linkReferenceStyle:"full",br:" ",preformattedCode:!1,blankReplacement:function(r,n){return n.isBlock?`
157
+ `):""}function fA(e){this.options=e,this._keep=[],this._remove=[],this.blankRule={replacement:e.blankReplacement},this.keepReplacement=e.keepReplacement,this.defaultRule={replacement:e.defaultReplacement},this.array=[];for(var t in e.rules)this.array.push(e.rules[t])}fA.prototype={add:function(e,t){this.array.unshift(t)},keep:function(e){this._keep.unshift({filter:e,replacement:this.keepReplacement})},remove:function(e){this._remove.unshift({filter:e,replacement:function(){return""}})},forNode:function(e){if(e.isBlank)return this.blankRule;var t;return(t=Lm(this.array,e,this.options))||(t=Lm(this._keep,e,this.options))||(t=Lm(this._remove,e,this.options))?t:this.defaultRule},forEach:function(e){for(var t=0;t<this.array.length;t++)e(this.array[t],t)}};function Lm(e,t,r){for(var n=0;n<e.length;n++){var i=e[n];if(u3(i,t,r))return i}}function u3(e,t,r){var n=e.filter;if(typeof n=="string"){if(n===t.nodeName.toLowerCase())return!0}else if(Array.isArray(n)){if(n.indexOf(t.nodeName.toLowerCase())>-1)return!0}else if(typeof n=="function"){if(n.call(e,t,r))return!0}else throw new TypeError("`filter` needs to be a string, array, or function")}function c3(e){var t=e.element,r=e.isBlock,n=e.isVoid,i=e.isPre||function(f){return f.nodeName==="PRE"};if(!(!t.firstChild||i(t))){for(var o=null,s=!1,a=null,l=oA(a,t,i);l!==t;){if(l.nodeType===3||l.nodeType===4){var u=l.data.replace(/[ \r\n\t]+/g," ");if((!o||/ $/.test(o.data))&&!s&&u[0]===" "&&(u=u.substr(1)),!u){l=Bm(l);continue}l.data=u,o=l}else if(l.nodeType===1)r(l)||l.nodeName==="BR"?(o&&(o.data=o.data.replace(/ $/,"")),o=null,s=!1):n(l)||i(l)?(o=null,s=!0):o&&(s=!1);else{l=Bm(l);continue}var c=oA(a,l,i);a=l,l=c}o&&(o.data=o.data.replace(/ $/,""),o.data||Bm(o))}}function Bm(e){var t=e.nextSibling||e.parentNode;return e.parentNode.removeChild(e),t}function oA(e,t,r){return e&&e.parentNode===t||r(t)?t.nextSibling||t.parentNode:t.firstChild||t.nextSibling||t.parentNode}var qm=typeof window<"u"?window:{};function f3(){var e=qm.DOMParser,t=!1;try{new e().parseFromString("","text/html")&&(t=!0)}catch{}return t}function p3(){var e=function(){};return h3()?e.prototype.parseFromString=function(t){var r=new window.ActiveXObject("htmlfile");return r.designMode="on",r.open(),r.write(t),r.close(),r}:e.prototype.parseFromString=function(t){var r=document.implementation.createHTMLDocument("");return r.open(),r.write(t),r.close(),r},e}function h3(){var e=!1;try{document.implementation.createHTMLDocument("").open()}catch{qm.ActiveXObject&&(e=!0)}return e}var m3=f3()?qm.DOMParser:p3();function d3(e,t){var r;if(typeof e=="string"){var n=g3().parseFromString('<x-turndown id="turndown-root">'+e+"</x-turndown>","text/html");r=n.getElementById("turndown-root")}else r=e.cloneNode(!0);return c3({element:r,isBlock:jm,isVoid:lA,isPre:t.preformattedCode?y3:null}),r}var $m;function g3(){return $m=$m||new m3,$m}function y3(e){return e.nodeName==="PRE"||e.nodeName==="CODE"}function x3(e,t){return e.isBlock=jm(e),e.isCode=e.nodeName==="CODE"||e.parentNode.isCode,e.isBlank=b3(e),e.flankingWhitespace=w3(e,t),e}function b3(e){return!lA(e)&&!a3(e)&&/^\s*$/i.test(e.textContent)&&!s3(e)&&!l3(e)}function w3(e,t){if(e.isBlock||t.preformattedCode&&e.isCode)return{leading:"",trailing:""};var r=v3(e.textContent);return r.leadingAscii&&sA("left",e,t)&&(r.leading=r.leadingNonAscii),r.trailingAscii&&sA("right",e,t)&&(r.trailing=r.trailingNonAscii),{leading:r.leading,trailing:r.trailing}}function v3(e){var t=e.match(/^(([ \t\r\n]*)(\s*))(?:(?=\S)[\s\S]*\S)?((\s*?)([ \t\r\n]*))$/);return{leading:t[1],leadingAscii:t[2],leadingNonAscii:t[3],trailing:t[4],trailingNonAscii:t[5],trailingAscii:t[6]}}function sA(e,t,r){var n,i,o;return e==="left"?(n=t.previousSibling,i=/ $/):(n=t.nextSibling,i=/^ /),n&&(n.nodeType===3?o=i.test(n.nodeValue):r.preformattedCode&&n.nodeName==="CODE"?o=!1:n.nodeType===1&&!jm(n)&&(o=i.test(n.textContent))),o}var S3=Array.prototype.reduce,k3=[[/\\/g,"\\\\"],[/\*/g,"\\*"],[/^-/g,"\\-"],[/^\+ /g,"\\+ "],[/^(=+)/g,"\\$1"],[/^(#{1,6}) /g,"\\$1 "],[/`/g,"\\`"],[/^~~~/g,"\\~~~"],[/\[/g,"\\["],[/\]/g,"\\]"],[/^>/g,"\\>"],[/_/g,"\\_"],[/^(\d+)\. /g,"$1\\. "]];function ju(e){if(!(this instanceof ju))return new ju(e);var t={rules:lt,headingStyle:"setext",hr:"* * *",bulletListMarker:"*",codeBlockStyle:"indented",fence:"```",emDelimiter:"_",strongDelimiter:"**",linkStyle:"inlined",linkReferenceStyle:"full",br:" ",preformattedCode:!1,blankReplacement:function(r,n){return n.isBlock?`
158
158
 
159
159
  `:""},keepReplacement:function(r,n){return n.isBlock?`
160
160
 
@@ -164,15 +164,15 @@ ${i}
164
164
 
165
165
  `+r+`
166
166
 
167
- `:r}};this.options=e3({},t,e),this.rules=new fA(this.options)}ju.prototype={turndown:function(e){if(!A3(e))throw new TypeError(e+" is not a string, or an element/document/fragment node.");if(e==="")return"";var t=pA.call(this,new h3(e,this.options));return S3.call(this,t)},use:function(e){if(Array.isArray(e))for(var t=0;t<e.length;t++)this.use(e[t]);else if(typeof e=="function")e(this);else throw new TypeError("plugin must be a Function or an Array of Functions");return this},addRule:function(e,t){return this.rules.add(e,t),this},keep:function(e){return this.rules.keep(e),this},remove:function(e){return this.rules.remove(e),this},escape:function(e){return v3.reduce(function(t,r){return t.replace(r[0],r[1])},e)}};function pA(e){var t=this;return w3.call(e.childNodes,function(r,n){n=new g3(n,t.options);var i="";return n.nodeType===3?i=n.isCode?n.nodeValue:t.escape(n.nodeValue):n.nodeType===1&&(i=k3.call(t,n)),hA(r,i)},"")}function S3(e){var t=this;return this.rules.forEach(function(r){typeof r.append=="function"&&(e=hA(e,r.append(t.options)))}),e.replace(/^[\t\r\n]+/,"").replace(/[\t\r\n\s]+$/,"")}function k3(e){var t=this.rules.forNode(e),r=pA.call(this,e),n=e.flankingWhitespace;return(n.leading||n.trailing)&&(r=r.trim()),n.leading+t.replacement(r,e,this.options)+n.trailing}function hA(e,t){var r=r3(e),n=t3(t),i=Math.max(e.length-r.length,t.length-n.length),o=`
167
+ `:r}};this.options=r3({},t,e),this.rules=new fA(this.options)}ju.prototype={turndown:function(e){if(!C3(e))throw new TypeError(e+" is not a string, or an element/document/fragment node.");if(e==="")return"";var t=pA.call(this,new d3(e,this.options));return A3.call(this,t)},use:function(e){if(Array.isArray(e))for(var t=0;t<e.length;t++)this.use(e[t]);else if(typeof e=="function")e(this);else throw new TypeError("plugin must be a Function or an Array of Functions");return this},addRule:function(e,t){return this.rules.add(e,t),this},keep:function(e){return this.rules.keep(e),this},remove:function(e){return this.rules.remove(e),this},escape:function(e){return k3.reduce(function(t,r){return t.replace(r[0],r[1])},e)}};function pA(e){var t=this;return S3.call(e.childNodes,function(r,n){n=new x3(n,t.options);var i="";return n.nodeType===3?i=n.isCode?n.nodeValue:t.escape(n.nodeValue):n.nodeType===1&&(i=T3.call(t,n)),hA(r,i)},"")}function A3(e){var t=this;return this.rules.forEach(function(r){typeof r.append=="function"&&(e=hA(e,r.append(t.options)))}),e.replace(/^[\t\r\n]+/,"").replace(/[\t\r\n\s]+$/,"")}function T3(e){var t=this.rules.forNode(e),r=pA.call(this,e),n=e.flankingWhitespace;return(n.leading||n.trailing)&&(r=r.trim()),n.leading+t.replacement(r,e,this.options)+n.trailing}function hA(e,t){var r=i3(e),n=n3(t),i=Math.max(e.length-r.length,t.length-n.length),o=`
168
168
 
169
- `.substring(0,i);return r+o+n}function A3(e){return e!=null&&(typeof e=="string"||e.nodeType&&(e.nodeType===1||e.nodeType===9||e.nodeType===11))}var Hm=ju;var zu={};le(zu,{gfm:()=>_3,highlightedCodeBlock:()=>dA,strikethrough:()=>gA,tables:()=>xA,taskListItems:()=>bA});var mA=/highlight-(?:text|source)-([a-z0-9]+)/;function dA(e){e.addRule("highlightedCodeBlock",{filter:function(t){var r=t.firstChild;return t.nodeName==="DIV"&&mA.test(t.className)&&r&&r.nodeName==="PRE"},replacement:function(t,r,n){var i=r.className||"",o=(i.match(mA)||[null,""])[1];return`
169
+ `.substring(0,i);return r+o+n}function C3(e){return e!=null&&(typeof e=="string"||e.nodeType&&(e.nodeType===1||e.nodeType===9||e.nodeType===11))}var Hm=ju;var zu={};le(zu,{gfm:()=>P3,highlightedCodeBlock:()=>dA,strikethrough:()=>gA,tables:()=>xA,taskListItems:()=>bA});var mA=/highlight-(?:text|source)-([a-z0-9]+)/;function dA(e){e.addRule("highlightedCodeBlock",{filter:function(t){var r=t.firstChild;return t.nodeName==="DIV"&&mA.test(t.className)&&r&&r.nodeName==="PRE"},replacement:function(t,r,n){var i=r.className||"",o=(i.match(mA)||[null,""])[1];return`
170
170
 
171
171
  `+n.fence+o+`
172
172
  `+r.firstChild.textContent+`
173
173
  `+n.fence+`
174
174
 
175
- `}})}function gA(e){e.addRule("strikethrough",{filter:["del","s","strike"],replacement:function(t){return"~"+t+"~"}})}var T3=Array.prototype.indexOf,C3=Array.prototype.every,lo={};lo.tableCell={filter:["th","td"],replacement:function(e,t){return yA(e,t)}};lo.tableRow={filter:"tr",replacement:function(e,t){var r="",n={left:":--",right:"--:",center:":-:"};if(Vm(t))for(var i=0;i<t.childNodes.length;i++){var o="---",s=(t.childNodes[i].getAttribute("align")||"").toLowerCase();s&&(o=n[s]||o),r+=yA(o,t.childNodes[i])}return`
175
+ `}})}function gA(e){e.addRule("strikethrough",{filter:["del","s","strike"],replacement:function(t){return"~"+t+"~"}})}var E3=Array.prototype.indexOf,_3=Array.prototype.every,lo={};lo.tableCell={filter:["th","td"],replacement:function(e,t){return yA(e,t)}};lo.tableRow={filter:"tr",replacement:function(e,t){var r="",n={left:":--",right:"--:",center:":-:"};if(Vm(t))for(var i=0;i<t.childNodes.length;i++){var o="---",s=(t.childNodes[i].getAttribute("align")||"").toLowerCase();s&&(o=n[s]||o),r+=yA(o,t.childNodes[i])}return`
176
176
  `+e+(r?`
177
177
  `+r:"")}};lo.table={filter:function(e){return e.nodeName==="TABLE"&&Vm(e.rows[0])},replacement:function(e){return e=e.replace(`
178
178
 
@@ -181,42 +181,42 @@ ${i}
181
181
 
182
182
  `+e+`
183
183
 
184
- `}};lo.tableSection={filter:["thead","tbody","tfoot"],replacement:function(e){return e}};function Vm(e){var t=e.parentNode;return t.nodeName==="THEAD"||t.firstChild===e&&(t.nodeName==="TABLE"||E3(t))&&C3.call(e.childNodes,function(r){return r.nodeName==="TH"})}function E3(e){var t=e.previousSibling;return e.nodeName==="TBODY"&&(!t||t.nodeName==="THEAD"&&/^\s*$/i.test(t.textContent))}function yA(e,t){var r=T3.call(t.parentNode.childNodes,t),n=" ";return r===0&&(n="| "),n+e+" |"}function xA(e){e.keep(function(r){return r.nodeName==="TABLE"&&!Vm(r.rows[0])});for(var t in lo)e.addRule(t,lo[t])}function bA(e){e.addRule("taskListItems",{filter:function(t){return t.type==="checkbox"&&t.parentNode.nodeName==="LI"},replacement:function(t,r){return(r.checked?"[x]":"[ ]")+" "}})}function _3(e){e.use([dA,gA,xA,bA])}var qu=class e{static async createFromMarkdownString(t){let r=new e;return await r.updateFromMarkdownString(t),r}async updateFromMarkdownString(t){let r,n=await Kl().use($s).use(Bs).use(js,["yaml","toml"]).use(Xs).use(Zs).use(()=>i=>{console.dir(i);let o=i.children.find(s=>s.type==="yaml");o&&(r=o.value)}).process(t);this.html=n.toString(),r?this.frontmatterData=await wA.yamlStringToObject(r):this.frontmatterData={}}};var Wm=class e{static async easyMarkdownToHtml(t){return(await new e().getMdParsedResultFromMarkdown(t)).html}constructor(){}async getMdParsedResultFromMarkdown(t){return await qu.createFromMarkdownString(t)}htmlToMarkdown(t){let r=new Hm({headingStyle:"atx",codeBlockStyle:"fenced"});return r.use(zu.gfm),r.turndown(t)}};var co={};le(co,{SmartRouter:()=>Xm});var CA=$e(TA(),1);var Yu=class{constructor(){}getAllAsObject(){let t=new URLSearchParams(window.location.search);return Object.fromEntries(t.entries())}setQueryParam(t,r,n="replace"){var i=new URLSearchParams(window.location.search);i.set(t,r),n==="push"?history.pushState(null,null,"?"+i.toString()):history.replaceState(null,null,"?"+i.toString())}deleteQueryParam(t,r="replace"){var n=new URLSearchParams(window.location.search);n.delete(t),r==="push"?history.pushState(null,null,"?"+n.toString()):history.replaceState(null,null,"?"+n.toString())}getQueryParam(t){return this.getAllAsObject()[t]}};var Xm=class e{constructor(t,r=""){this.options={debug:!1},this.queryParams=new Yu,this.routes=[],this.options={...this.options,...t},this.basePath=r,this.popstateListener=n=>{n.preventDefault(),this._handleRouteState()},window.addEventListener("popstate",this.popstateListener)}createSubRouter(t,r){let n=`${this.basePath}${t}`;return new e({...this.options,...r},n)}async pushUrl(t="/",r={}){let n=`${this.basePath}${t}`;n!==window.location.pathname?window.history.pushState(r,window.document.title,n):window.history.replaceState(r,window.document.title,n),await this._handleRouteState()}on(t,r){let n=`${this.basePath}${t}`,i={matchFunction:CA.match(n),handler:r};return this.routes.push(i),()=>{this.routes.splice(this.routes.indexOf(i),1)}}async _handleRouteState(){let t=window.location.pathname,r=this.routes.filter(n=>!!n.matchFunction(t));for(let n of r){let i=n.matchFunction(t);n.handler({...i.valueOf(),queryParams:this.queryParams.getAllAsObject()})}}destroy(){window.removeEventListener("popstate",this.popstateListener),this.routes=[]}};var fo={};le(fo,{Smartstate:()=>ed,StateAction:()=>Ks,StatePart:()=>ea});var Qu={};le(Qu,{sha256FromString:()=>H3});var Ju={};le(Ju,{Smartenv:()=>Km});var _A=$e(EA(),1);var Km=class{constructor(){this.loadedScripts=[]}async getEnvAwareModule(t){if(this.isNode)return await this.getSafeNodeModule(t.nodeModuleName);if(this.isBrowser)return await this.getSafeWebModule(t.webUrlArg,t.getFunction);console.error("platform for loading not supported by smartenv")}async getSafeNodeModule(t){if(!this.isNode){console.error(`You tried to load a node module in a wrong context: ${t}`);return}return new Function(`return import('${t}')`)()}async getSafeWebModule(t,r){if(!this.isBrowser){console.error("You tried to load a web module in a wrong context");return}if(this.loadedScripts.includes(t))return r();this.loadedScripts.push(t);let n=_A.defer();if(globalThis.importScripts)globalThis.importScripts(t),n.resolve();else{let i=document.createElement("script");i.onload=()=>{n.resolve()},i.src=t,document.head.appendChild(i)}return await n.promise,r()}get runtimeEnv(){return typeof process<"u"?"node":"browser"}get isBrowser(){return!this.isNode}get userAgent(){return this.isBrowser?navigator.userAgent:"undefined"}get isNode(){return this.runtimeEnv==="node"}get nodeVersion(){return process.version}get isCI(){return this.isNode?!!process.env.CI:!1}async isMacAsync(){return this.isNode?(await this.getSafeNodeModule("os")).platform()==="darwin":!1}async isWindowsAsync(){return this.isNode?(await this.getSafeNodeModule("os")).platform()==="win32":!1}async isLinuxAsync(){return this.isNode?(await this.getSafeNodeModule("os")).platform()==="linux":!1}async printEnv(){this.isNode?(console.log("running on NODE"),console.log("node version is "+this.nodeVersion)):(console.log("running on BROWSER"),console.log("browser is "+this.userAgent))}};var q3=e=>{let t=[],r=new DataView(e);for(let n=0;n<r.byteLength;n+=4){let o=r.getUint32(n).toString(16),s="00000000",a=(s+o).slice(-s.length);t.push(a)}return t.join("")},H3=async e=>{let t=new Ju.Smartenv;if(t.isBrowser){let r=new TextEncoder().encode(e),n=await crypto.subtle.digest("SHA-256",r);return q3(n)}else if(t.isNode)return await(await t.getSafeNodeModule("@pushrocks/smarthash")).sha256FromString(e)};var Ks=class{constructor(t,r){this.statePartRef=t,this.actionDef=r}trigger(t){this.statePartRef.dispatchAction(this,t)}};var ea=class{constructor(t,r){this.state=new Se.rxjs.Subject,this.cumulativeDeferred=re.cumulativeDefer(),this.webStore=null,this.name=t,r&&(this.webStoreOptions=r)}async init(){if(this.webStoreOptions){this.webStore=new Yr.WebStore(this.webStoreOptions),await this.webStore.init();let t=await this.webStore.get(String(this.name));t&&(this.stateStore=t,this.notifyChange())}}getState(){return this.stateStore}async setState(t){return this.stateStore=t,this.notifyChange(),this.webStore&&await this.webStore.set(String(this.name),t),this.stateStore}notifyChange(){let t=r=>Qu.sha256FromString(De.stringify(r));this.stateStore&&this.lastStateNotificationPayloadHash&&t(this.stateStore)===this.lastStateNotificationPayloadHash||(this.lastStateNotificationPayloadHash=this.stateStore,this.state.next(this.stateStore))}notifyChangeCumulative(){setTimeout(()=>this.state.next(this.stateStore),0)}select(t){return t||(t=n=>n),this.state.pipe(Se.rxjs.ops.startWith(this.getState()),Se.rxjs.ops.map(n=>{try{return t(n)}catch{}}))}createAction(t){return new Ks(this,t)}async dispatchAction(t,r){await this.cumulativeDeferred.promise;let n=await t.actionDef(this,r);return await this.setState(n),this.getState()}async waitUntilPresent(t){let r=re.defer(),i=this.select(t).subscribe(async s=>{s&&r.resolve(s)}),o=await r.promise;return i.unsubscribe(),o}async stateSetup(t){let r=t(this);this.cumulativeDeferred.addPromise(r),this.setState(await r)}};var ed=class{constructor(){this.statePartMap={}}async getStatePart(t,r,n){if(this.statePartMap[t]){if(r&&(!n||n!=="soft"))throw new Error(`${t} already exists, yet you try to set an initial state again`);return this.statePartMap[t]}else{if(!r)throw new Error(`${t} does not yet exist, yet you don't provide an initial state`);return this.createStatePart(t,r,n)}}async createStatePart(t,r,n){let i=new ea(t,n==="persistent"?{dbName:"smartstate",storeName:t}:null);await i.init();let o=i.getState();return await i.setState({...r,...o}),this.statePartMap[t]=i,i}};var po={};le(po,{Smarturl:()=>td});var td=class e{static createFromUrl(t,r){let n=new URL(t),i={},o=[];n.search&&n.search.replace("?","").split("&").map(u=>{o.push({key:u.split("=")[0],value:u.split("=")[1]})});for(let u of o)i[u.key]=u.value;if(r?.searchParams)for(let u of Object.keys(r.searchParams))i[u]=r.searchParams[u];let s=n.pathname||"";if(Object.keys(i).length>0){s+="?";let u=!0;for(let c of Object.keys(i))u?u=!1:s+="&",s+=`${c}=${i[c]}`}let a={...n,href:n.href,origin:n.origin,protocol:n.protocol,username:n.username,password:n.password,host:n.host,hostname:n.hostname,port:n.port,path:s,pathname:n.pathname,search:n.search,searchParams:i,hash:n.hash};!a.port&&a.protocol==="https:"&&(a.port="443"),!a.port&&a.protocol==="http:"&&(a.port="80");let l=new e;return Object.assign(l,a),l}static createFromParsedUrl(t){let r=new e;return Object.assign(r,t),r}constructor(){this.searchParams={}}clone(){let t=new e;return Object.assign(t,this),t.searchParams={...this.searchParams},t}set(t,r){return this[t]=r,this}toString(){let t="";return this.username&&!this.password&&(t=`${this.username}@`),this.username&&this.password&&(t=`${this.username}:${this.password}@`),`${this.protocol}//${t}${this.hostname}:${this.port}${this.path}`}};var mo={};le(mo,{CumulativeDeferred:()=>Xu,Deferred:()=>Zu,cumulativeDefer:()=>W3,defer:()=>ho,getFirstTrueOrFalse:()=>Z3,map:()=>J3,rejectedPromise:()=>G3,resolvedPromise:()=>Y3,timeoutAndContinue:()=>Q3,timeoutWrap:()=>IA});var Zu=class{claim(){if(this.claimed)throw new Error("Deferred already claimed");this.claimed=!0}get duration(){return this.stoppedAt?this.stoppedAt-this.startedAt:Date.now()-this.startedAt}constructor(){this.claimed=!1,this.promise=new Promise((t,r)=>{this.resolve=n=>{this.status="fulfilled",this.stoppedAt=Date.now(),t(n)},this.reject=n=>{this.status="rejected",this.stoppedAt=Date.now(),r(n)},this.startedAt=Date.now(),this.status="pending"})}},ho=()=>new Zu;var Xu=class{constructor(){this.accumulatedPromises=[],this.deferred=ho(),this.promise=this.deferred.promise,setTimeout(async()=>{for(;this.accumulatedPromises.length>0;)await this.accumulatedPromises.shift();this.deferred.resolve()},0)}addPromise(t){this.accumulatedPromises.push(t)}},W3=()=>new Xu;var Y3=e=>Promise.resolve(e),G3=e=>Promise.reject(e),J3=async(e,t)=>{let r=[],n=[];for(let i of e){let o=t(i);r.push(o),o.then(s=>{n.push(s)})}return await Promise.all(r),n},IA=async(e,t,r=!0)=>new Promise((n,i)=>{setTimeout(()=>{r?i(new Error("timeout")):n(null)},t),e.then(n,i)}),Q3=async(e,t=6e4)=>IA(e,t,!1),Z3=async e=>{let t=ho();for(let r of e)r.then(n=>{n===!0&&t.resolve(!0)});return Promise.all(e).then(()=>{t.resolve(!1)}),t.promise};var on=class{appendToDom(){!this.elementRef.parentElement&&!this.elementRef.parentNode&&document.getElementsByTagName("head")[0].appendChild(this.elementRef)}removeFromDom(){this.elementRef.parentElement?this.elementRef.parentElement.removeChild(this.elementRef):this.elementRef.parentNode&&this.elementRef.parentNode.removeChild(this.elementRef)}};var go=class e extends on{static createCompanyJsonLd(t){let r={"@context":"https://schema.org","@type":"Corporation",name:t.name,alternateName:t.name.replace(" GmbH",""),url:t.contact.website,logo:t.contact.logoUrl,contactPoint:{"@type":"ContactPoint",telephone:t.contact.phone,contactType:"customer service",areaServed:"DE",availableLanguage:["en","German"]},sameAs:[]};return t.contact.facebookUrl&&r.sameAs.push(t.contact.facebookUrl),t.contact.twitterUrl&&r.sameAs.push(t.contact.twitterUrl),new e(r)}static createNewsArticleJsonLd(t){let r={"@context":"https://schema.org","@type":"NewsArticle",mainEntityOfPage:{"@type":"WebPage","@id":window.location.href},headline:"Article headline",image:[t.featuredImageUrl],datePublished:new Date(t.timestamp).toISOString(),dateModified:new Date(t.timestamp).toISOString(),author:{"@type":"Person",name:`${t.author.firstName} ${t.author.surName}`},publisher:{"@type":"Organization",name:t.author.surName,logo:{"@type":"ImageObject",url:t.author.surName}},description:t.author.firstName};return new e(r)}static createProductJsonLd(t,r){let n={"@context":"https://schema.org","@type":"SoftwareApplication",name:t.name,description:t.description,operatingSystem:t.os,applicationCategory:t.category,offers:{"@type":"Offer",name:"User-based Plan",priceSpecification:{"@type":"PropertyValueSpecification",valueName:"Number of Users",valueRequired:!0,price:"4.99",priceCurrency:"EUR"}},publisher:this.createCompanyJsonLd(r).elementRef.textContent,screenshot:"https://www.social.io/screenshot.png",url:"https://www.social.io/"};return new e(n)}constructor(t){super();let r=document.createElement("script");r.type="application/ld+json",r.text=JSON.stringify(t),this.elementRef=r}};var xt=class e extends on{static createNewsArticleOgTags(t){let r=[];return r.push(new e("og:url",t.url)),r.push(new e("og:title",t.title)),r.push(new e("og:description",t.content)),r.push(new e("og:image",t.featuredImageUrl)),r}static createProductOgTags(t){let r=[];return r.push(new e("og:url",globalThis.location.href)),r.push(new e("og:title",`${t.name} - ${t.slogan}`)),r.push(new e("og:site_name",t.name)),r.push(new e("og:description",t.description)),r.push(new e("og:image",t.logoLink)),r}constructor(t,r){super();let n=document.createElement("meta");n.setAttribute("property",t),n.content=r,this.elementRef=n}};var yo=class{set title(t){this.titleStore=t,this.state==="enabled"&&(document.title=this.titleStore)}get title(){return this.titleStore}constructor(t,r){this.tags=[],this.state="disabled",this.tagManagerRef=t}addTag(t){if(t instanceof Array)for(let r of t)this.addTag(r);else this.tags.push(t),this.state==="enabled"&&t.appendToDom()}async addCompanyInfo(t){this.addTag(go.createCompanyJsonLd(t)),this.addTag(new xt("og:type","business.business")),this.addTag(new xt("og:title",t.name)),this.addTag(new xt("og:url",t.contact.website)),this.addTag(new xt("og:image",t.contact.logoUrl)),this.addTag(new xt("business:contact_data:street_address",`${t.contact.address.streetName} ${t.contact.address.houseNumber}`)),this.addTag(new xt("business:contact_data:locality",t.contact.address.postalCode)),this.addTag(new xt("business:contact_data:region",t.contact.address.city)),this.addTag(new xt("business:contact_data:postal_code",t.contact.address.postalCode)),this.addTag(new xt("business:contact_data:country_name",t.contact.address.country))}addNewsArticleInfo(t){this.addTag(go.createNewsArticleJsonLd(t)),this.addTag(xt.createNewsArticleOgTags(t))}addProductInfo(t,r){this.addTag(go.createProductJsonLd(t,r)),this.addTag(xt.createProductOgTags(t))}async enable(){this.title&&(document.title=this.title);for(let t of this.tags)t.appendToDom();this.state="enabled"}async disable(){for(let t of this.tags)t.removeFromDom();this.state="disabled"}};var qt=class extends on{constructor(t,r){super();let n=document.createElement("meta");n.name=t,n.content=r,this.elementRef=n}};var Ku=class{constructor(){this.globalLevel=new yo(this,"global"),this.baseLevel=new yo(this,"base")}async setup(t){switch(this.globalLevel.addTag(new qt("google","notranslate")),this.globalLevel.addTag(new qt("revisit-after","1 days")),t.twitterHandle&&(this.globalLevel.addTag(new qt("twitter:card","summary_large_image")),this.globalLevel.addTag(new qt("twitter:site",t.twitterHandle)),this.globalLevel.addTag(new qt("twitter:creator",t.twitterHandle))),this.baseLevel.title=t.title,t.description&&this.baseLevel.addTag(new qt("description",t.description)),t.canonicalDomain&&this.baseLevel.addTag(new qt("canonical",t.canonicalDomain)),!0){case(t.ldCompany&&!t.ldProduct):this.baseLevel.addCompanyInfo(t.ldCompany);break;case!!t.ldProduct:this.baseLevel.addProductInfo(t.ldProduct,t.ldCompany);break}await this.globalLevel.enable(),this.activeLevel=this.baseLevel,await this.activeLevel.enable()}async setSubPageLevel(t){let r=new yo(this,"subpage");return r.title=t.title,t.description&&r.addTag(new qt("description",t.description)),await this.activeLevel.disable(),this.activeLevel=r,await this.activeLevel.enable(),r}async revertToBaseLevel(){this.activeLevel!==this.baseLevel&&(await this.activeLevel.disable(),this.activeLevel=this.baseLevel,await this.activeLevel.enable())}};var ec=class{constructor(t){this.tagManager=new Ku,this.readyDeferred=mo.defer(),this.readyForSmartssrDeferred=mo.defer(),this.readyPromise=this.readyDeferred.promise,this.readyForSmartssrPromise=this.readyForSmartssrDeferred.promise,this.options=t,this.setup().then(()=>{this.readyDeferred.resolve(),this.options.smartssrWaitForReadySignal||this.readyForSmartssrDeferred.resolve()})}async setup(t){t&&(this.options=t),await this.tagManager.setup(this.options.metaObject)}revertToBaseLevel(){this.tagManager.revertToBaseLevel()}async setSubLevel(t){return await this.tagManager.setSubPageLevel(t)}flashTitle(t){}informReadyForSmartssr(){this.options.smartssrWaitForReadySignal||console.error("You have not indicated that you inform smartssr by a dedicated signal! Please consider doing so!"),this.readyForSmartssrDeferred.resolve()}};var nU=$e(ff(),1);var xo=class e{constructor(){this.mapObject={}}isUniqueKey(t){return!this.mapObject[t]}addToMap(t,r,n){return this.isUniqueKey(t)||n&&n.force?(this.mapObject[t]=r,!0):!1}getByKey(t){return this.mapObject[t]}removeFromMap(t){let r=this.getByKey(t);return delete this.mapObject[t],r}getKeys(){let t=[];for(let r in this.mapObject)this.mapObject[r]&&t.push(r);return t}clean(){this.mapObject={}}concat(t){let r=new e;for(let n of this.getKeys())r.addToMap(n,this.getByKey(n));for(let n of t.getKeys())r.addToMap(n,t.getByKey(n),{force:!0});return r}addAllFromOther(t){for(let r of t.getKeys())this.addToMap(r,t.getByKey(r),{force:!0})}async find(t){for(let r of this.getKeys()){let n=this.getByKey(r);if(await t(n))return n}}};var iU=(e="uni")=>`${e}xxxxxxxxxxx`.replace(/[xy]/g,t=>{let r=Math.random()*16|0;return(t==="x"?r:r&3|8).toString(16)}),tc=class e{constructor(){this.fastMap=new xo,this.eventSubject=new Se.rxjs.Subject}addMappedUnique(t,r){this.fastMap.addToMap(t,r)}getMappedUnique(t){return this.fastMap.getByKey(t)}removeMappedUnique(t){let r=this.getMappedUnique(t)}add(t){for(let n of this.fastMap.getKeys())if(this.fastMap.getByKey(n)===t)return n;let r=iU("key");return this.addMappedUnique(r,t),this.eventSubject.next({operation:"add",payload:t}),r}addArray(t){for(let r of t)this.add(r)}checkForObject(t){return!!this.getKeyForObject(t)}getKeyForObject(t){let r=null;for(let n of this.fastMap.getKeys())if(!r&&this.fastMap.getByKey(n)===t)r=n;else continue;return r}async find(t){return this.fastMap.find(t)}findSync(t){for(let r of this.fastMap.getKeys())if(t(this.fastMap.getByKey(r)))return this.getMappedUnique(r)}async findOneAndRemove(t){let r=await this.find(t);return r&&this.remove(r),r}findOneAndRemoveSync(t){let r=this.findSync(t);return r&&this.remove(r),r}async forEach(t){for(let r of this.fastMap.getKeys())await t(this.fastMap.getByKey(r))}getOneAndRemove(){let t=this.fastMap.getKeys();if(t.length===0)return null;{let r=t[0],n=this.fastMap.removeFromMap(r);return this.eventSubject.next({operation:"remove",payload:n}),n}}getArray(){let t=[];for(let r of this.fastMap.getKeys())t.push(this.fastMap.getByKey(r));return t}isEmpty(){return this.fastMap.getKeys().length===0}remove(t){if(this.checkForObject(t)){let r=this.getKeyForObject(t),n=this.fastMap.removeFromMap(r);return this.eventSubject.next({operation:"remove",payload:n}),n}return null}wipe(){for(let t of this.fastMap.getKeys())this.fastMap.removeFromMap(t)}concat(t){let r=new e;return r.fastMap.addAllFromOther(this.fastMap),r.fastMap.addAllFromOther(t.fastMap),r}addAllFromOther(t){this.fastMap.addAllFromOther(t.fastMap)}};var rc=class{constructor(){this._stringArray=[],this._triggerUntilTrueFunctionArray=[]}addString(t){this._stringArray.push(t),this.notifyTrigger()}addStringArray(t){for(let r of t)this.addString(r)}removeString(t){for(let r in this._stringArray)this._stringArray[r]===t&&this._stringArray.splice(parseInt(r),1);this.notifyTrigger()}wipe(){this._stringArray=[],this.notifyTrigger()}checkString(t){return this._stringArray.indexOf(t)!==-1}checkMinimatch(t){let r=new Cn.SmartMatch(t),n=!1;for(let i of this._stringArray)r.match(i)&&(n=!0);return n}checkIsEmpty(){return this._stringArray.length===0}getStringArray(){let t=[];for(let r of this._stringArray)t.push(r);return t}registerUntilTrue(t,r){let n=re.defer();return this._triggerUntilTrueFunctionArray.push(()=>{let i=t(this.getStringArray());return i===!0&&(r&&r(),n.resolve()),i}),this.notifyTrigger(),n.promise}notifyTrigger(){let t=this._triggerUntilTrueFunctionArray.filter(r=>!r());this._triggerUntilTrueFunctionArray=t}};var sd=$e(id(),1);var od={ObjectMap:tc,Stringmap:rc,FastMap:xo};var Dr={};le(Dr,{cssForDesktop:()=>oU,cssForNotebook:()=>sU,cssForPhablet:()=>lU,cssForPhone:()=>uU,cssForTablet:()=>aU,desktop:()=>ld,notebook:()=>ud,phablet:()=>fd,phone:()=>pd,tablet:()=>cd});var ld=1600,ud=1240,cd=1024,fd=600,pd=400,oU=e=>se(`
184
+ `}};lo.tableSection={filter:["thead","tbody","tfoot"],replacement:function(e){return e}};function Vm(e){var t=e.parentNode;return t.nodeName==="THEAD"||t.firstChild===e&&(t.nodeName==="TABLE"||I3(t))&&_3.call(e.childNodes,function(r){return r.nodeName==="TH"})}function I3(e){var t=e.previousSibling;return e.nodeName==="TBODY"&&(!t||t.nodeName==="THEAD"&&/^\s*$/i.test(t.textContent))}function yA(e,t){var r=E3.call(t.parentNode.childNodes,t),n=" ";return r===0&&(n="| "),n+e+" |"}function xA(e){e.keep(function(r){return r.nodeName==="TABLE"&&!Vm(r.rows[0])});for(var t in lo)e.addRule(t,lo[t])}function bA(e){e.addRule("taskListItems",{filter:function(t){return t.type==="checkbox"&&t.parentNode.nodeName==="LI"},replacement:function(t,r){return(r.checked?"[x]":"[ ]")+" "}})}function P3(e){e.use([dA,gA,xA,bA])}var qu=class e{static async createFromMarkdownString(t){let r=new e;return await r.updateFromMarkdownString(t),r}async updateFromMarkdownString(t){let r,n=await Kl().use($s).use(Bs).use(js,["yaml","toml"]).use(Xs).use(Zs).use(()=>i=>{console.dir(i);let o=i.children.find(s=>s.type==="yaml");o&&(r=o.value)}).process(t);this.html=n.toString(),r?this.frontmatterData=await wA.yamlStringToObject(r):this.frontmatterData={}}};var Wm=class e{static async easyMarkdownToHtml(t){return(await new e().getMdParsedResultFromMarkdown(t)).html}constructor(){}async getMdParsedResultFromMarkdown(t){return await qu.createFromMarkdownString(t)}htmlToMarkdown(t){let r=new Hm({headingStyle:"atx",codeBlockStyle:"fenced"});return r.use(zu.gfm),r.turndown(t)}};var co={};le(co,{SmartRouter:()=>Xm});var CA=$e(TA(),1);var Yu=class{constructor(){}getAllAsObject(){let t=new URLSearchParams(window.location.search);return Object.fromEntries(t.entries())}setQueryParam(t,r,n="replace"){var i=new URLSearchParams(window.location.search);i.set(t,r),n==="push"?history.pushState(null,null,"?"+i.toString()):history.replaceState(null,null,"?"+i.toString())}deleteQueryParam(t,r="replace"){var n=new URLSearchParams(window.location.search);n.delete(t),r==="push"?history.pushState(null,null,"?"+n.toString()):history.replaceState(null,null,"?"+n.toString())}getQueryParam(t){return this.getAllAsObject()[t]}};var Xm=class e{constructor(t,r=""){this.options={debug:!1},this.queryParams=new Yu,this.routes=[],this.options={...this.options,...t},this.basePath=r,this.popstateListener=n=>{n.preventDefault(),this._handleRouteState()},window.addEventListener("popstate",this.popstateListener)}createSubRouter(t,r){let n=`${this.basePath}${t}`;return new e({...this.options,...r},n)}async pushUrl(t="/",r={}){let n=`${this.basePath}${t}`;n!==window.location.pathname?window.history.pushState(r,window.document.title,n):window.history.replaceState(r,window.document.title,n),await this._handleRouteState()}on(t,r){let n=`${this.basePath}${t}`,i={matchFunction:CA.match(n),handler:r};return this.routes.push(i),()=>{this.routes.splice(this.routes.indexOf(i),1)}}async _handleRouteState(){let t=window.location.pathname,r=this.routes.filter(n=>!!n.matchFunction(t));for(let n of r){let i=n.matchFunction(t);n.handler({...i.valueOf(),queryParams:this.queryParams.getAllAsObject()})}}destroy(){window.removeEventListener("popstate",this.popstateListener),this.routes=[]}};var fo={};le(fo,{Smartstate:()=>ed,StateAction:()=>Ks,StatePart:()=>ea});var Qu={};le(Qu,{sha256FromString:()=>W3});var Ju={};le(Ju,{Smartenv:()=>Km});var _A=$e(EA(),1);var Km=class{constructor(){this.loadedScripts=[]}async getEnvAwareModule(t){if(this.isNode)return await this.getSafeNodeModule(t.nodeModuleName);if(this.isBrowser)return await this.getSafeWebModule(t.webUrlArg,t.getFunction);console.error("platform for loading not supported by smartenv")}async getSafeNodeModule(t){if(!this.isNode){console.error(`You tried to load a node module in a wrong context: ${t}`);return}return new Function(`return import('${t}')`)()}async getSafeWebModule(t,r){if(!this.isBrowser){console.error("You tried to load a web module in a wrong context");return}if(this.loadedScripts.includes(t))return r();this.loadedScripts.push(t);let n=_A.defer();if(globalThis.importScripts)globalThis.importScripts(t),n.resolve();else{let i=document.createElement("script");i.onload=()=>{n.resolve()},i.src=t,document.head.appendChild(i)}return await n.promise,r()}get runtimeEnv(){return typeof process<"u"?"node":"browser"}get isBrowser(){return!this.isNode}get userAgent(){return this.isBrowser?navigator.userAgent:"undefined"}get isNode(){return this.runtimeEnv==="node"}get nodeVersion(){return process.version}get isCI(){return this.isNode?!!process.env.CI:!1}async isMacAsync(){return this.isNode?(await this.getSafeNodeModule("os")).platform()==="darwin":!1}async isWindowsAsync(){return this.isNode?(await this.getSafeNodeModule("os")).platform()==="win32":!1}async isLinuxAsync(){return this.isNode?(await this.getSafeNodeModule("os")).platform()==="linux":!1}async printEnv(){this.isNode?(console.log("running on NODE"),console.log("node version is "+this.nodeVersion)):(console.log("running on BROWSER"),console.log("browser is "+this.userAgent))}};var V3=e=>{let t=[],r=new DataView(e);for(let n=0;n<r.byteLength;n+=4){let o=r.getUint32(n).toString(16),s="00000000",a=(s+o).slice(-s.length);t.push(a)}return t.join("")},W3=async e=>{let t=new Ju.Smartenv;if(t.isBrowser){let r=new TextEncoder().encode(e),n=await crypto.subtle.digest("SHA-256",r);return V3(n)}else if(t.isNode)return await(await t.getSafeNodeModule("@pushrocks/smarthash")).sha256FromString(e)};var Ks=class{constructor(t,r){this.statePartRef=t,this.actionDef=r}trigger(t){this.statePartRef.dispatchAction(this,t)}};var ea=class{constructor(t,r){this.state=new Se.rxjs.Subject,this.cumulativeDeferred=re.cumulativeDefer(),this.webStore=null,this.name=t,r&&(this.webStoreOptions=r)}async init(){if(this.webStoreOptions){this.webStore=new Yr.WebStore(this.webStoreOptions),await this.webStore.init();let t=await this.webStore.get(String(this.name));t&&(this.stateStore=t,this.notifyChange())}}getState(){return this.stateStore}async setState(t){return this.stateStore=t,this.notifyChange(),this.webStore&&await this.webStore.set(String(this.name),t),this.stateStore}notifyChange(){let t=r=>Qu.sha256FromString(Pe.stringify(r));this.stateStore&&this.lastStateNotificationPayloadHash&&t(this.stateStore)===this.lastStateNotificationPayloadHash||(this.lastStateNotificationPayloadHash=this.stateStore,this.state.next(this.stateStore))}notifyChangeCumulative(){setTimeout(()=>this.state.next(this.stateStore),0)}select(t){return t||(t=n=>n),this.state.pipe(Se.rxjs.ops.startWith(this.getState()),Se.rxjs.ops.map(n=>{try{return t(n)}catch{}}))}createAction(t){return new Ks(this,t)}async dispatchAction(t,r){await this.cumulativeDeferred.promise;let n=await t.actionDef(this,r);return await this.setState(n),this.getState()}async waitUntilPresent(t){let r=re.defer(),i=this.select(t).subscribe(async s=>{s&&r.resolve(s)}),o=await r.promise;return i.unsubscribe(),o}async stateSetup(t){let r=t(this);this.cumulativeDeferred.addPromise(r),this.setState(await r)}};var ed=class{constructor(){this.statePartMap={}}async getStatePart(t,r,n){if(this.statePartMap[t]){if(r&&(!n||n!=="soft"))throw new Error(`${t} already exists, yet you try to set an initial state again`);return this.statePartMap[t]}else{if(!r)throw new Error(`${t} does not yet exist, yet you don't provide an initial state`);return this.createStatePart(t,r,n)}}async createStatePart(t,r,n){let i=new ea(t,n==="persistent"?{dbName:"smartstate",storeName:t}:null);await i.init();let o=i.getState();return await i.setState({...r,...o}),this.statePartMap[t]=i,i}};var po={};le(po,{Smarturl:()=>td});var td=class e{static createFromUrl(t,r){let n=new URL(t),i={},o=[];n.search&&n.search.replace("?","").split("&").map(u=>{o.push({key:u.split("=")[0],value:u.split("=")[1]})});for(let u of o)i[u.key]=u.value;if(r?.searchParams)for(let u of Object.keys(r.searchParams))i[u]=r.searchParams[u];let s=n.pathname||"";if(Object.keys(i).length>0){s+="?";let u=!0;for(let c of Object.keys(i))u?u=!1:s+="&",s+=`${c}=${i[c]}`}let a={...n,href:n.href,origin:n.origin,protocol:n.protocol,username:n.username,password:n.password,host:n.host,hostname:n.hostname,port:n.port,path:s,pathname:n.pathname,search:n.search,searchParams:i,hash:n.hash};!a.port&&a.protocol==="https:"&&(a.port="443"),!a.port&&a.protocol==="http:"&&(a.port="80");let l=new e;return Object.assign(l,a),l}static createFromParsedUrl(t){let r=new e;return Object.assign(r,t),r}constructor(){this.searchParams={}}clone(){let t=new e;return Object.assign(t,this),t.searchParams={...this.searchParams},t}set(t,r){return this[t]=r,this}toString(){let t="";return this.username&&!this.password&&(t=`${this.username}@`),this.username&&this.password&&(t=`${this.username}:${this.password}@`),`${this.protocol}//${t}${this.hostname}:${this.port}${this.path}`}};var mo={};le(mo,{CumulativeDeferred:()=>Xu,Deferred:()=>Zu,cumulativeDefer:()=>G3,defer:()=>ho,getFirstTrueOrFalse:()=>K3,map:()=>Z3,rejectedPromise:()=>Q3,resolvedPromise:()=>J3,timeoutAndContinue:()=>X3,timeoutWrap:()=>IA});var Zu=class{claim(){if(this.claimed)throw new Error("Deferred already claimed");this.claimed=!0}get duration(){return this.stoppedAt?this.stoppedAt-this.startedAt:Date.now()-this.startedAt}constructor(){this.claimed=!1,this.promise=new Promise((t,r)=>{this.resolve=n=>{this.status="fulfilled",this.stoppedAt=Date.now(),t(n)},this.reject=n=>{this.status="rejected",this.stoppedAt=Date.now(),r(n)},this.startedAt=Date.now(),this.status="pending"})}},ho=()=>new Zu;var Xu=class{constructor(){this.accumulatedPromises=[],this.deferred=ho(),this.promise=this.deferred.promise,setTimeout(async()=>{for(;this.accumulatedPromises.length>0;)await this.accumulatedPromises.shift();this.deferred.resolve()},0)}addPromise(t){this.accumulatedPromises.push(t)}},G3=()=>new Xu;var J3=e=>Promise.resolve(e),Q3=e=>Promise.reject(e),Z3=async(e,t)=>{let r=[],n=[];for(let i of e){let o=t(i);r.push(o),o.then(s=>{n.push(s)})}return await Promise.all(r),n},IA=async(e,t,r=!0)=>new Promise((n,i)=>{setTimeout(()=>{r?i(new Error("timeout")):n(null)},t),e.then(n,i)}),X3=async(e,t=6e4)=>IA(e,t,!1),K3=async e=>{let t=ho();for(let r of e)r.then(n=>{n===!0&&t.resolve(!0)});return Promise.all(e).then(()=>{t.resolve(!1)}),t.promise};var on=class{appendToDom(){!this.elementRef.parentElement&&!this.elementRef.parentNode&&document.getElementsByTagName("head")[0].appendChild(this.elementRef)}removeFromDom(){this.elementRef.parentElement?this.elementRef.parentElement.removeChild(this.elementRef):this.elementRef.parentNode&&this.elementRef.parentNode.removeChild(this.elementRef)}};var go=class e extends on{static createCompanyJsonLd(t){let r={"@context":"https://schema.org","@type":"Corporation",name:t.name,alternateName:t.name.replace(" GmbH",""),url:t.contact.website,logo:t.contact.logoUrl,contactPoint:{"@type":"ContactPoint",telephone:t.contact.phone,contactType:"customer service",areaServed:"DE",availableLanguage:["en","German"]},sameAs:[]};return t.contact.facebookUrl&&r.sameAs.push(t.contact.facebookUrl),t.contact.twitterUrl&&r.sameAs.push(t.contact.twitterUrl),new e(r)}static createNewsArticleJsonLd(t){let r={"@context":"https://schema.org","@type":"NewsArticle",mainEntityOfPage:{"@type":"WebPage","@id":window.location.href},headline:"Article headline",image:[t.featuredImageUrl],datePublished:new Date(t.timestamp).toISOString(),dateModified:new Date(t.timestamp).toISOString(),author:{"@type":"Person",name:`${t.author.firstName} ${t.author.surName}`},publisher:{"@type":"Organization",name:t.author.surName,logo:{"@type":"ImageObject",url:t.author.surName}},description:t.author.firstName};return new e(r)}static createProductJsonLd(t,r){let n={"@context":"https://schema.org","@type":"SoftwareApplication",name:t.name,description:t.description,operatingSystem:t.os,applicationCategory:t.category,offers:{"@type":"Offer",name:"User-based Plan",priceSpecification:{"@type":"PropertyValueSpecification",valueName:"Number of Users",valueRequired:!0,price:"4.99",priceCurrency:"EUR"}},publisher:this.createCompanyJsonLd(r).elementRef.textContent,screenshot:"https://www.social.io/screenshot.png",url:"https://www.social.io/"};return new e(n)}constructor(t){super();let r=document.createElement("script");r.type="application/ld+json",r.text=JSON.stringify(t),this.elementRef=r}};var xt=class e extends on{static createNewsArticleOgTags(t){let r=[];return r.push(new e("og:url",t.url)),r.push(new e("og:title",t.title)),r.push(new e("og:description",t.content)),r.push(new e("og:image",t.featuredImageUrl)),r}static createProductOgTags(t){let r=[];return r.push(new e("og:url",globalThis.location.href)),r.push(new e("og:title",`${t.name} - ${t.slogan}`)),r.push(new e("og:site_name",t.name)),r.push(new e("og:description",t.description)),r.push(new e("og:image",t.logoLink)),r}constructor(t,r){super();let n=document.createElement("meta");n.setAttribute("property",t),n.content=r,this.elementRef=n}};var yo=class{set title(t){this.titleStore=t,this.state==="enabled"&&(document.title=this.titleStore)}get title(){return this.titleStore}constructor(t,r){this.tags=[],this.state="disabled",this.tagManagerRef=t}addTag(t){if(t instanceof Array)for(let r of t)this.addTag(r);else this.tags.push(t),this.state==="enabled"&&t.appendToDom()}async addCompanyInfo(t){this.addTag(go.createCompanyJsonLd(t)),this.addTag(new xt("og:type","business.business")),this.addTag(new xt("og:title",t.name)),this.addTag(new xt("og:url",t.contact.website)),this.addTag(new xt("og:image",t.contact.logoUrl)),this.addTag(new xt("business:contact_data:street_address",`${t.contact.address.streetName} ${t.contact.address.houseNumber}`)),this.addTag(new xt("business:contact_data:locality",t.contact.address.postalCode)),this.addTag(new xt("business:contact_data:region",t.contact.address.city)),this.addTag(new xt("business:contact_data:postal_code",t.contact.address.postalCode)),this.addTag(new xt("business:contact_data:country_name",t.contact.address.country))}addNewsArticleInfo(t){this.addTag(go.createNewsArticleJsonLd(t)),this.addTag(xt.createNewsArticleOgTags(t))}addProductInfo(t,r){this.addTag(go.createProductJsonLd(t,r)),this.addTag(xt.createProductOgTags(t))}async enable(){this.title&&(document.title=this.title);for(let t of this.tags)t.appendToDom();this.state="enabled"}async disable(){for(let t of this.tags)t.removeFromDom();this.state="disabled"}};var qt=class extends on{constructor(t,r){super();let n=document.createElement("meta");n.name=t,n.content=r,this.elementRef=n}};var Ku=class{constructor(){this.globalLevel=new yo(this,"global"),this.baseLevel=new yo(this,"base")}async setup(t){switch(this.globalLevel.addTag(new qt("google","notranslate")),this.globalLevel.addTag(new qt("revisit-after","1 days")),t.twitterHandle&&(this.globalLevel.addTag(new qt("twitter:card","summary_large_image")),this.globalLevel.addTag(new qt("twitter:site",t.twitterHandle)),this.globalLevel.addTag(new qt("twitter:creator",t.twitterHandle))),this.baseLevel.title=t.title,t.description&&this.baseLevel.addTag(new qt("description",t.description)),t.canonicalDomain&&this.baseLevel.addTag(new qt("canonical",t.canonicalDomain)),!0){case(t.ldCompany&&!t.ldProduct):this.baseLevel.addCompanyInfo(t.ldCompany);break;case!!t.ldProduct:this.baseLevel.addProductInfo(t.ldProduct,t.ldCompany);break}await this.globalLevel.enable(),this.activeLevel=this.baseLevel,await this.activeLevel.enable()}async setSubPageLevel(t){let r=new yo(this,"subpage");return r.title=t.title,t.description&&r.addTag(new qt("description",t.description)),await this.activeLevel.disable(),this.activeLevel=r,await this.activeLevel.enable(),r}async revertToBaseLevel(){this.activeLevel!==this.baseLevel&&(await this.activeLevel.disable(),this.activeLevel=this.baseLevel,await this.activeLevel.enable())}};var ec=class{constructor(t){this.tagManager=new Ku,this.readyDeferred=mo.defer(),this.readyForSmartssrDeferred=mo.defer(),this.readyPromise=this.readyDeferred.promise,this.readyForSmartssrPromise=this.readyForSmartssrDeferred.promise,this.options=t,this.setup().then(()=>{this.readyDeferred.resolve(),this.options.smartssrWaitForReadySignal||this.readyForSmartssrDeferred.resolve()})}async setup(t){t&&(this.options=t),await this.tagManager.setup(this.options.metaObject)}revertToBaseLevel(){this.tagManager.revertToBaseLevel()}async setSubLevel(t){return await this.tagManager.setSubPageLevel(t)}flashTitle(t){}informReadyForSmartssr(){this.options.smartssrWaitForReadySignal||console.error("You have not indicated that you inform smartssr by a dedicated signal! Please consider doing so!"),this.readyForSmartssrDeferred.resolve()}};var oU=$e(ff(),1);var xo=class e{constructor(){this.mapObject={}}isUniqueKey(t){return!this.mapObject[t]}addToMap(t,r,n){return this.isUniqueKey(t)||n&&n.force?(this.mapObject[t]=r,!0):!1}getByKey(t){return this.mapObject[t]}removeFromMap(t){let r=this.getByKey(t);return delete this.mapObject[t],r}getKeys(){let t=[];for(let r in this.mapObject)this.mapObject[r]&&t.push(r);return t}clean(){this.mapObject={}}concat(t){let r=new e;for(let n of this.getKeys())r.addToMap(n,this.getByKey(n));for(let n of t.getKeys())r.addToMap(n,t.getByKey(n),{force:!0});return r}addAllFromOther(t){for(let r of t.getKeys())this.addToMap(r,t.getByKey(r),{force:!0})}async find(t){for(let r of this.getKeys()){let n=this.getByKey(r);if(await t(n))return n}}};var sU=(e="uni")=>`${e}xxxxxxxxxxx`.replace(/[xy]/g,t=>{let r=Math.random()*16|0;return(t==="x"?r:r&3|8).toString(16)}),tc=class e{constructor(){this.fastMap=new xo,this.eventSubject=new Se.rxjs.Subject}addMappedUnique(t,r){this.fastMap.addToMap(t,r)}getMappedUnique(t){return this.fastMap.getByKey(t)}removeMappedUnique(t){let r=this.getMappedUnique(t)}add(t){for(let n of this.fastMap.getKeys())if(this.fastMap.getByKey(n)===t)return n;let r=sU("key");return this.addMappedUnique(r,t),this.eventSubject.next({operation:"add",payload:t}),r}addArray(t){for(let r of t)this.add(r)}checkForObject(t){return!!this.getKeyForObject(t)}getKeyForObject(t){let r=null;for(let n of this.fastMap.getKeys())if(!r&&this.fastMap.getByKey(n)===t)r=n;else continue;return r}async find(t){return this.fastMap.find(t)}findSync(t){for(let r of this.fastMap.getKeys())if(t(this.fastMap.getByKey(r)))return this.getMappedUnique(r)}async findOneAndRemove(t){let r=await this.find(t);return r&&this.remove(r),r}findOneAndRemoveSync(t){let r=this.findSync(t);return r&&this.remove(r),r}async forEach(t){for(let r of this.fastMap.getKeys())await t(this.fastMap.getByKey(r))}getOneAndRemove(){let t=this.fastMap.getKeys();if(t.length===0)return null;{let r=t[0],n=this.fastMap.removeFromMap(r);return this.eventSubject.next({operation:"remove",payload:n}),n}}getArray(){let t=[];for(let r of this.fastMap.getKeys())t.push(this.fastMap.getByKey(r));return t}isEmpty(){return this.fastMap.getKeys().length===0}remove(t){if(this.checkForObject(t)){let r=this.getKeyForObject(t),n=this.fastMap.removeFromMap(r);return this.eventSubject.next({operation:"remove",payload:n}),n}return null}wipe(){for(let t of this.fastMap.getKeys())this.fastMap.removeFromMap(t)}concat(t){let r=new e;return r.fastMap.addAllFromOther(this.fastMap),r.fastMap.addAllFromOther(t.fastMap),r}addAllFromOther(t){this.fastMap.addAllFromOther(t.fastMap)}};var rc=class{constructor(){this._stringArray=[],this._triggerUntilTrueFunctionArray=[]}addString(t){this._stringArray.push(t),this.notifyTrigger()}addStringArray(t){for(let r of t)this.addString(r)}removeString(t){for(let r in this._stringArray)this._stringArray[r]===t&&this._stringArray.splice(parseInt(r),1);this.notifyTrigger()}wipe(){this._stringArray=[],this.notifyTrigger()}checkString(t){return this._stringArray.indexOf(t)!==-1}checkMinimatch(t){let r=new Cn.SmartMatch(t),n=!1;for(let i of this._stringArray)r.match(i)&&(n=!0);return n}checkIsEmpty(){return this._stringArray.length===0}getStringArray(){let t=[];for(let r of this._stringArray)t.push(r);return t}registerUntilTrue(t,r){let n=re.defer();return this._triggerUntilTrueFunctionArray.push(()=>{let i=t(this.getStringArray());return i===!0&&(r&&r(),n.resolve()),i}),this.notifyTrigger(),n.promise}notifyTrigger(){let t=this._triggerUntilTrueFunctionArray.filter(r=>!r());this._triggerUntilTrueFunctionArray=t}};var sd=$e(id(),1);var od={ObjectMap:tc,Stringmap:rc,FastMap:xo};var Pr={};le(Pr,{cssForDesktop:()=>aU,cssForNotebook:()=>lU,cssForPhablet:()=>cU,cssForPhone:()=>fU,cssForTablet:()=>uU,desktop:()=>ld,notebook:()=>ud,phablet:()=>fd,phone:()=>pd,tablet:()=>cd});var ld=1600,ud=1240,cd=1024,fd=600,pd=400,aU=e=>se(`
185
185
  @container wccToolsViewport (min-width: ${ld}px) {
186
186
  ${e.cssText}
187
187
  }
188
188
  @media (min-width: ${ld}px) {
189
189
  ${e.cssText}
190
190
  }
191
- `),sU=e=>se(`
191
+ `),lU=e=>se(`
192
192
  @container wccToolsViewport (max-width: ${ud}px) {
193
193
  ${e.cssText}
194
194
  }
195
195
  @media (max-width: ${ud}px) {
196
196
  ${e.cssText}
197
197
  }
198
- `),aU=e=>se(`
198
+ `),uU=e=>se(`
199
199
  @container wccToolsViewport (max-width: ${cd}px) {
200
200
  ${e.cssText}
201
201
  }
202
202
  @media (max-width: ${cd}px) {
203
203
  ${e.cssText}
204
204
  }
205
- `),lU=e=>se(`
205
+ `),cU=e=>se(`
206
206
  @container wccToolsViewport (max-width: ${fd}px) {
207
207
  ${e.cssText}
208
208
  }
209
209
  @media (max-width: ${fd}px) {
210
210
  ${e.cssText}
211
211
  }
212
- `),uU=e=>se(`
212
+ `),fU=e=>se(`
213
213
  @container wccToolsViewport (max-width: ${pd}px) {
214
214
  ${e.cssText}
215
215
  }
216
216
  @media (max-width: ${pd}px) {
217
217
  ${e.cssText}
218
218
  }
219
- `);var nc=class{constructor(t){this.goBrightBoolean=!1,this.preferredColorSchemeMediaMatch=window.matchMedia("(prefers-color-scheme: light)"),this.themeObservable=new Se.rxjs.ReplaySubject(1),this.domtoolsRef=t,this.goBrightBoolean=this.preferredColorSchemeMediaMatch.matches,this.preferredColorSchemeMediaMatch.addEventListener("change",r=>{this.goBrightBoolean=r.matches,this.updateAllConnectedElements()}),this.updateAllConnectedElements()}async setGlobalStylesOnPurpose(){document.body&&document.body.style&&(document.body.style.background=this.goBrightBoolean?"#fff":"#000")}async updateAllConnectedElements(){this.themeObservable.next(this.goBrightBoolean)}goBright(){this.goBrightBoolean=!0,this.updateAllConnectedElements()}goDark(){this.goBrightBoolean=!1,this.updateAllConnectedElements()}toggleDarkBright(){this.goBrightBoolean=!this.goBrightBoolean,this.updateAllConnectedElements()}};var hd;(function(e){e[e.Backspace=8]="Backspace",e[e.Tab=9]="Tab",e[e.Enter=13]="Enter",e[e.Shift=16]="Shift",e[e.Ctrl=17]="Ctrl",e[e.Alt=18]="Alt",e[e.PauseBreak=19]="PauseBreak",e[e.CapsLock=20]="CapsLock",e[e.Escape=27]="Escape",e[e.Space=32]="Space",e[e.PageUp=33]="PageUp",e[e.PageDown=34]="PageDown",e[e.End=35]="End",e[e.Home=36]="Home",e[e.LeftArrow=37]="LeftArrow",e[e.UpArrow=38]="UpArrow",e[e.RightArrow=39]="RightArrow",e[e.DownArrow=40]="DownArrow",e[e.Insert=45]="Insert",e[e.Delete=46]="Delete",e[e.Zero=48]="Zero",e[e.ClosedParen=48]="ClosedParen",e[e.One=49]="One",e[e.ExclamationMark=49]="ExclamationMark",e[e.Two=50]="Two",e[e.AtSign=50]="AtSign",e[e.Three=51]="Three",e[e.PoundSign=51]="PoundSign",e[e.Hash=51]="Hash",e[e.Four=52]="Four",e[e.DollarSign=52]="DollarSign",e[e.Five=53]="Five",e[e.PercentSign=53]="PercentSign",e[e.Six=54]="Six",e[e.Caret=54]="Caret",e[e.Hat=54]="Hat",e[e.Seven=55]="Seven",e[e.Ampersand=55]="Ampersand",e[e.Eight=56]="Eight",e[e.Star=56]="Star",e[e.Asterik=56]="Asterik",e[e.Nine=57]="Nine",e[e.OpenParen=57]="OpenParen",e[e.A=65]="A",e[e.B=66]="B",e[e.C=67]="C",e[e.D=68]="D",e[e.E=69]="E",e[e.F=70]="F",e[e.G=71]="G",e[e.H=72]="H",e[e.I=73]="I",e[e.J=74]="J",e[e.K=75]="K",e[e.L=76]="L",e[e.M=77]="M",e[e.N=78]="N",e[e.O=79]="O",e[e.P=80]="P",e[e.Q=81]="Q",e[e.R=82]="R",e[e.S=83]="S",e[e.T=84]="T",e[e.U=85]="U",e[e.V=86]="V",e[e.W=87]="W",e[e.X=88]="X",e[e.Y=89]="Y",e[e.Z=90]="Z",e[e.LeftWindowKey=91]="LeftWindowKey",e[e.RightWindowKey=92]="RightWindowKey",e[e.SelectKey=93]="SelectKey",e[e.Numpad0=96]="Numpad0",e[e.Numpad1=97]="Numpad1",e[e.Numpad2=98]="Numpad2",e[e.Numpad3=99]="Numpad3",e[e.Numpad4=100]="Numpad4",e[e.Numpad5=101]="Numpad5",e[e.Numpad6=102]="Numpad6",e[e.Numpad7=103]="Numpad7",e[e.Numpad8=104]="Numpad8",e[e.Numpad9=105]="Numpad9",e[e.Multiply=106]="Multiply",e[e.Add=107]="Add",e[e.Subtract=109]="Subtract",e[e.DecimalPoint=110]="DecimalPoint",e[e.Divide=111]="Divide",e[e.F1=112]="F1",e[e.F2=113]="F2",e[e.F3=114]="F3",e[e.F4=115]="F4",e[e.F5=116]="F5",e[e.F6=117]="F6",e[e.F7=118]="F7",e[e.F8=119]="F8",e[e.F9=120]="F9",e[e.F10=121]="F10",e[e.F11=122]="F11",e[e.F12=123]="F12",e[e.NumLock=144]="NumLock",e[e.ScrollLock=145]="ScrollLock",e[e.SemiColon=186]="SemiColon",e[e.Equals=187]="Equals",e[e.Comma=188]="Comma",e[e.Dash=189]="Dash",e[e.Period=190]="Period",e[e.UnderScore=189]="UnderScore",e[e.PlusSign=187]="PlusSign",e[e.ForwardSlash=191]="ForwardSlash",e[e.Tilde=192]="Tilde",e[e.GraveAccent=192]="GraveAccent",e[e.OpenBracket=219]="OpenBracket",e[e.ClosedBracket=221]="ClosedBracket",e[e.Quote=222]="Quote"})(hd||(hd={}));var ic=class{constructor(t){this.domNode=t,this.mapCombosToHandlers=new Map,this.pressedKeys=new Set,this.keyEnum=hd,this.handleKeyDown=r=>{this.pressedKeys.add(r.keyCode),this.checkMatchingKeyboardSubjects(r)},this.handleKeyUp=r=>{this.pressedKeys.delete(r.keyCode)},this.startListening()}on(t){let r=new Se.rxjs.Subject;return this.registerKeys(t,r),r}triggerKeyPress(t){for(let r of t)this.pressedKeys.add(r);this.checkMatchingKeyboardSubjects();for(let r of t)this.pressedKeys.delete(r)}startListening(){this.domNode.addEventListener("keydown",this.handleKeyDown),this.domNode.addEventListener("keyup",this.handleKeyUp)}stopListening(){this.domNode.removeEventListener("keydown",this.handleKeyDown),this.domNode.removeEventListener("keyup",this.handleKeyUp)}clear(){this.stopListening(),this.mapCombosToHandlers.clear(),this.pressedKeys.clear()}checkMatchingKeyboardSubjects(t){this.mapCombosToHandlers.forEach((r,n)=>{this.areAllKeysPressed(n)&&r.next(t)})}areAllKeysPressed(t){let r=!0;return t.forEach(n=>{this.pressedKeys.has(n)||(r=!1)}),r}registerKeys(t,r){if(!this.mapCombosToHandlers.has(t))this.mapCombosToHandlers.set(t,r);else return this.mapCombosToHandlers.get(t)}};var ut=class e{static async setupDomTools(t={}){let r;if(!globalThis.deesDomTools&&!t.ignoreGlobal){globalThis.deesDomTools=new e(t),r=globalThis.deesDomTools;let n=()=>{(document.readyState==="interactive"||document.readyState==="complete")&&(r.elements.headElement=document.querySelector("head"),r.elements.bodyElement=document.querySelector("body"),r.domReady.resolve())};document.addEventListener("readystatechange",n),r.domToolsReady.resolve()}else t.ignoreGlobal?r=new e(t):r=globalThis.deesDomTools;return await r.domToolsReady.promise,r}static getGlobalDomToolsSync(){if(!globalThis.deesDomTools)throw new Error("You tried to access domtools synchronously too early");return globalThis.deesDomTools}constructor(t){this.elements={headElement:null,bodyElement:null},this.websetup=new ec({metaObject:{title:"loading..."}}),this.smartstate=new fo.Smartstate,this.domToolsStatePart=this.smartstate.getStatePart("domtools",{virtualViewport:"native",jwt:null}),this.router=new co.SmartRouter({debug:!1}),this.convenience={typedrequest:It,smartdelay:he,smartjson:De,smarturl:po},this.deesComms=new $l.DeesComms,this.scroller=new sd.default({}),this.themeManager=new nc(this),this.keyboard=new ic(document.body),this.domToolsReady=re.defer(),this.domReady=re.defer(),this.globalStylesReady=re.defer(),this.runOnceTrackerStringMap=new od.Stringmap,this.runOnceResultMap=new od.FastMap}async runOnce(t,r){let n=`${t}+runningCheck`;if(!this.runOnceTrackerStringMap.checkString(t)){this.runOnceTrackerStringMap.addString(t),this.runOnceTrackerStringMap.addString(n);let i=await r();this.runOnceResultMap.addToMap(t,i),this.runOnceTrackerStringMap.removeString(n)}return await this.runOnceTrackerStringMap.registerUntilTrue(i=>!i.includes(n),()=>this.runOnceResultMap.getByKey(t))}async setGlobalStyles(t){await this.domReady.promise;let r=document.createElement("style");r.type="text/css",r.appendChild(document.createTextNode(t)),this.elements.headElement.appendChild(r)}async setExternalScript(t){await this.domReady.promise;let r=re.defer(),n=document.createElement("script");n.src=t,n.addEventListener("load",function(){r.resolve()}),(document.head||document.body).append(n),await r.promise}async setExternalCss(t){let r=document.createElement("link");r.rel="stylesheet",r.crossOrigin="anonymous",r.href=t,document.head.append(r)}async setWebsiteInfo(t){await this.websetup.setup(t),await this.websetup.readyPromise}};var oc=(()=>{let e=navigator.userAgent.indexOf("Mac OS X")===-1?we``.cssText:"";return we`
219
+ `);var nc=class{constructor(t){this.goBrightBoolean=!1,this.preferredColorSchemeMediaMatch=window.matchMedia("(prefers-color-scheme: light)"),this.themeObservable=new Se.rxjs.ReplaySubject(1),this.domtoolsRef=t,this.goBrightBoolean=this.preferredColorSchemeMediaMatch.matches,this.preferredColorSchemeMediaMatch.addEventListener("change",r=>{this.goBrightBoolean=r.matches,this.updateAllConnectedElements()}),this.updateAllConnectedElements()}async setGlobalStylesOnPurpose(){document.body&&document.body.style&&(document.body.style.background=this.goBrightBoolean?"#fff":"#000")}async updateAllConnectedElements(){this.themeObservable.next(this.goBrightBoolean)}goBright(){this.goBrightBoolean=!0,this.updateAllConnectedElements()}goDark(){this.goBrightBoolean=!1,this.updateAllConnectedElements()}toggleDarkBright(){this.goBrightBoolean=!this.goBrightBoolean,this.updateAllConnectedElements()}};var hd;(function(e){e[e.Backspace=8]="Backspace",e[e.Tab=9]="Tab",e[e.Enter=13]="Enter",e[e.Shift=16]="Shift",e[e.Ctrl=17]="Ctrl",e[e.Alt=18]="Alt",e[e.PauseBreak=19]="PauseBreak",e[e.CapsLock=20]="CapsLock",e[e.Escape=27]="Escape",e[e.Space=32]="Space",e[e.PageUp=33]="PageUp",e[e.PageDown=34]="PageDown",e[e.End=35]="End",e[e.Home=36]="Home",e[e.LeftArrow=37]="LeftArrow",e[e.UpArrow=38]="UpArrow",e[e.RightArrow=39]="RightArrow",e[e.DownArrow=40]="DownArrow",e[e.Insert=45]="Insert",e[e.Delete=46]="Delete",e[e.Zero=48]="Zero",e[e.ClosedParen=48]="ClosedParen",e[e.One=49]="One",e[e.ExclamationMark=49]="ExclamationMark",e[e.Two=50]="Two",e[e.AtSign=50]="AtSign",e[e.Three=51]="Three",e[e.PoundSign=51]="PoundSign",e[e.Hash=51]="Hash",e[e.Four=52]="Four",e[e.DollarSign=52]="DollarSign",e[e.Five=53]="Five",e[e.PercentSign=53]="PercentSign",e[e.Six=54]="Six",e[e.Caret=54]="Caret",e[e.Hat=54]="Hat",e[e.Seven=55]="Seven",e[e.Ampersand=55]="Ampersand",e[e.Eight=56]="Eight",e[e.Star=56]="Star",e[e.Asterik=56]="Asterik",e[e.Nine=57]="Nine",e[e.OpenParen=57]="OpenParen",e[e.A=65]="A",e[e.B=66]="B",e[e.C=67]="C",e[e.D=68]="D",e[e.E=69]="E",e[e.F=70]="F",e[e.G=71]="G",e[e.H=72]="H",e[e.I=73]="I",e[e.J=74]="J",e[e.K=75]="K",e[e.L=76]="L",e[e.M=77]="M",e[e.N=78]="N",e[e.O=79]="O",e[e.P=80]="P",e[e.Q=81]="Q",e[e.R=82]="R",e[e.S=83]="S",e[e.T=84]="T",e[e.U=85]="U",e[e.V=86]="V",e[e.W=87]="W",e[e.X=88]="X",e[e.Y=89]="Y",e[e.Z=90]="Z",e[e.LeftWindowKey=91]="LeftWindowKey",e[e.RightWindowKey=92]="RightWindowKey",e[e.SelectKey=93]="SelectKey",e[e.Numpad0=96]="Numpad0",e[e.Numpad1=97]="Numpad1",e[e.Numpad2=98]="Numpad2",e[e.Numpad3=99]="Numpad3",e[e.Numpad4=100]="Numpad4",e[e.Numpad5=101]="Numpad5",e[e.Numpad6=102]="Numpad6",e[e.Numpad7=103]="Numpad7",e[e.Numpad8=104]="Numpad8",e[e.Numpad9=105]="Numpad9",e[e.Multiply=106]="Multiply",e[e.Add=107]="Add",e[e.Subtract=109]="Subtract",e[e.DecimalPoint=110]="DecimalPoint",e[e.Divide=111]="Divide",e[e.F1=112]="F1",e[e.F2=113]="F2",e[e.F3=114]="F3",e[e.F4=115]="F4",e[e.F5=116]="F5",e[e.F6=117]="F6",e[e.F7=118]="F7",e[e.F8=119]="F8",e[e.F9=120]="F9",e[e.F10=121]="F10",e[e.F11=122]="F11",e[e.F12=123]="F12",e[e.NumLock=144]="NumLock",e[e.ScrollLock=145]="ScrollLock",e[e.SemiColon=186]="SemiColon",e[e.Equals=187]="Equals",e[e.Comma=188]="Comma",e[e.Dash=189]="Dash",e[e.Period=190]="Period",e[e.UnderScore=189]="UnderScore",e[e.PlusSign=187]="PlusSign",e[e.ForwardSlash=191]="ForwardSlash",e[e.Tilde=192]="Tilde",e[e.GraveAccent=192]="GraveAccent",e[e.OpenBracket=219]="OpenBracket",e[e.ClosedBracket=221]="ClosedBracket",e[e.Quote=222]="Quote"})(hd||(hd={}));var ic=class{constructor(t){this.domNode=t,this.mapCombosToHandlers=new Map,this.pressedKeys=new Set,this.keyEnum=hd,this.handleKeyDown=r=>{this.pressedKeys.add(r.keyCode),this.checkMatchingKeyboardSubjects(r)},this.handleKeyUp=r=>{this.pressedKeys.delete(r.keyCode)},this.startListening()}on(t){let r=new Se.rxjs.Subject;return this.registerKeys(t,r),r}triggerKeyPress(t){for(let r of t)this.pressedKeys.add(r);this.checkMatchingKeyboardSubjects();for(let r of t)this.pressedKeys.delete(r)}startListening(){this.domNode.addEventListener("keydown",this.handleKeyDown),this.domNode.addEventListener("keyup",this.handleKeyUp)}stopListening(){this.domNode.removeEventListener("keydown",this.handleKeyDown),this.domNode.removeEventListener("keyup",this.handleKeyUp)}clear(){this.stopListening(),this.mapCombosToHandlers.clear(),this.pressedKeys.clear()}checkMatchingKeyboardSubjects(t){this.mapCombosToHandlers.forEach((r,n)=>{this.areAllKeysPressed(n)&&r.next(t)})}areAllKeysPressed(t){let r=!0;return t.forEach(n=>{this.pressedKeys.has(n)||(r=!1)}),r}registerKeys(t,r){if(!this.mapCombosToHandlers.has(t))this.mapCombosToHandlers.set(t,r);else return this.mapCombosToHandlers.get(t)}};var ut=class e{static async setupDomTools(t={}){let r;if(!globalThis.deesDomTools&&!t.ignoreGlobal){globalThis.deesDomTools=new e(t),r=globalThis.deesDomTools;let n=()=>{(document.readyState==="interactive"||document.readyState==="complete")&&(r.elements.headElement=document.querySelector("head"),r.elements.bodyElement=document.querySelector("body"),r.domReady.resolve())};document.addEventListener("readystatechange",n),r.domToolsReady.resolve()}else t.ignoreGlobal?r=new e(t):r=globalThis.deesDomTools;return await r.domToolsReady.promise,r}static getGlobalDomToolsSync(){if(!globalThis.deesDomTools)throw new Error("You tried to access domtools synchronously too early");return globalThis.deesDomTools}constructor(t){this.elements={headElement:null,bodyElement:null},this.websetup=new ec({metaObject:{title:"loading..."}}),this.smartstate=new fo.Smartstate,this.domToolsStatePart=this.smartstate.getStatePart("domtools",{virtualViewport:"native",jwt:null}),this.router=new co.SmartRouter({debug:!1}),this.convenience={typedrequest:It,smartdelay:he,smartjson:Pe,smarturl:po},this.deesComms=new $l.DeesComms,this.scroller=new sd.default({}),this.themeManager=new nc(this),this.keyboard=new ic(document.body),this.domToolsReady=re.defer(),this.domReady=re.defer(),this.globalStylesReady=re.defer(),this.runOnceTrackerStringMap=new od.Stringmap,this.runOnceResultMap=new od.FastMap}async runOnce(t,r){let n=`${t}+runningCheck`;if(!this.runOnceTrackerStringMap.checkString(t)){this.runOnceTrackerStringMap.addString(t),this.runOnceTrackerStringMap.addString(n);let i=await r();this.runOnceResultMap.addToMap(t,i),this.runOnceTrackerStringMap.removeString(n)}return await this.runOnceTrackerStringMap.registerUntilTrue(i=>!i.includes(n),()=>this.runOnceResultMap.getByKey(t))}async setGlobalStyles(t){await this.domReady.promise;let r=document.createElement("style");r.type="text/css",r.appendChild(document.createTextNode(t)),this.elements.headElement.appendChild(r)}async setExternalScript(t){await this.domReady.promise;let r=re.defer(),n=document.createElement("script");n.src=t,n.addEventListener("load",function(){r.resolve()}),(document.head||document.body).append(n),await r.promise}async setExternalCss(t){let r=document.createElement("link");r.rel="stylesheet",r.crossOrigin="anonymous",r.href=t,document.head.append(r)}async setWebsiteInfo(t){await this.websetup.setup(t),await this.websetup.readyPromise}};var oc=(()=>{let e=navigator.userAgent.indexOf("Mac OS X")===-1?we``.cssText:"";return we`
220
220
  /* width */
221
221
  ::-webkit-scrollbar {
222
222
  width: 0px;
@@ -224,7 +224,7 @@ ${i}
224
224
  body {
225
225
  scrollbar-width: none;
226
226
  }
227
- `.cssText})(),MA=we`
227
+ `.cssText})(),OA=we`
228
228
  /*
229
229
  @font-face {
230
230
  font-family: 'Material Icons';
@@ -243,7 +243,7 @@ ${i}
243
243
 
244
244
  /* scroll bar styles */
245
245
  ${se(oc)}
246
- `.cssText;var cU=we`
246
+ `.cssText;var pU=we`
247
247
  * {
248
248
  transition: background 0.1s, color 0.1s;
249
249
  box-sizing: border-box;
@@ -255,7 +255,7 @@ ${i}
255
255
  }
256
256
 
257
257
  ${se(oc)}
258
- `,fU=Q`
258
+ `,hU=Q`
259
259
  <style>
260
260
  * {
261
261
  transition: background 0.1s, color 0.1s;
@@ -268,7 +268,7 @@ ${i}
268
268
 
269
269
  ${oc}
270
270
  </style>
271
- `,pU=async(e,t={})=>{let r=await ut.setupDomTools(t);return r.runOnce("elementBasicSetup",async()=>{r.setGlobalStyles(MA)}),r};var md={};le(md,{cssGridColumns:()=>hU});var hU=(e,t)=>{let r="";for(let n=0;n<e;n++)r+=` calc((100%/${e}) - (${t*(e-1)}px/${e}))`;return r};var dd={};le(dd,{SweetScroll:()=>PA.default,smartdelay:()=>he,smartmarkdown:()=>Hu,smartpromise:()=>re,smartrouter:()=>co,smartrx:()=>Se,smartstate:()=>fo,smartstring:()=>Vr,smarturl:()=>po,typedrequest:()=>It});var PA=$e(id(),1);var si={css:we,unsafeCSS:se,LitElement:Lr,property:ne};var sc=class{constructor(){this.domtoolsPromise=ut.setupDomTools(),this.goBright=!1,this.bdVarTripletStore=[],this.cssGridColumns=(t,r)=>{let n="";for(let i=0;i<t;i++)n+=` calc((100%/${t}) - (${r*(t-1)}px/${t}))`;return si.unsafeCSS(n)},this.domtoolsPromise.then(async t=>{t.themeManager.themeObservable.subscribe(async r=>{this.goBright=r,await t.domReady.promise;for(let n of this.bdVarTripletStore)document.body.style.setProperty(n.cssVarName,this.goBright?n.brightValue:n.darkValue)})})}get defaultStyles(){return Ht.staticStyles}cssForDesktop(t){return se(Dr.cssForDesktop(t))}cssForNotebook(t){return se(Dr.cssForNotebook(t))}cssForTablet(t){return se(Dr.cssForTablet(t))}cssForPhablet(t){return se(Dr.cssForPhablet(t))}cssForPhone(t){return se(Dr.cssForPhone(t))}bdTheme(t,r){let n,i;ut.getGlobalDomToolsSync()?i=ut.getGlobalDomToolsSync().themeManager.goBrightBoolean?t:r:i=r;let o=this.bdVarTripletStore.find(s=>s.darkValue===r&&s.brightValue===t);if(o)n=o.cssVarName;else{let s={cssVarName:`--${NA.uni()}`,brightValue:t,darkValue:r};this.bdVarTripletStore.push(s),this.domtoolsPromise.then(async a=>{await a.domReady.promise,document.body.style.setProperty(s.cssVarName,i)}),n=s.cssVarName}return si.unsafeCSS(`var(${n}, ${i})`)}};var wo={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},kt=e=>(...t)=>({_$litDirective$:e,values:t}),bo=class{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,r,n){this._$Ct=t,this._$AM=r,this._$Ci=n}_$AS(t,r){return this.update(t,r)}update(t,r){return this.render(...r)}};var ta=class extends bo{constructor(t){if(super(t),this.it=Fe,t.type!==wo.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===Fe||t==null)return this._t=void 0,this.it=t;if(t===Ue)return t;if(typeof t!="string")throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.it)return this._t;this.it=t;let r=[t];return r.raw=r,this._t={_$litType$:this.constructor.resultType,strings:r,values:[]}}};ta.directiveName="unsafeHTML",ta.resultType=1;var mU=kt(ta);var Qe=e=>(t,r)=>{r!==void 0?r.addInitializer(()=>{customElements.define(e,t)}):customElements.define(e,t)};var{I:dU}=ig,LA=e=>e===null||typeof e!="object"&&typeof e!="function";var BA=e=>e.strings===void 0,RA=()=>document.createComment(""),$A=(e,t,r)=>{let n=e._$AA.parentNode,i=t===void 0?e._$AB:t._$AA;if(r===void 0){let o=n.insertBefore(RA(),i),s=n.insertBefore(RA(),i);r=new dU(o,s,e,e.options)}else{let o=r._$AB.nextSibling,s=r._$AM,a=s!==e;if(a){let l;r._$AQ?.(e),r._$AM=e,r._$AP!==void 0&&(l=e._$AU)!==s._$AU&&r._$AP(l)}if(o!==i||a){let l=r._$AA;for(;l!==o;){let u=l.nextSibling;n.insertBefore(l,i),l=u}}}return r},UA=(e,t,r=e)=>(e._$AI(t,r),e);var jA=e=>{e._$AR()};var ra=(e,t)=>{let r=e._$AN;if(r===void 0)return!1;for(let n of r)n._$AO?.(t,!1),ra(n,t);return!0},lc=e=>{let t,r;do{if((t=e._$AM)===void 0)break;r=t._$AN,r.delete(e),e=t}while(r?.size===0)},zA=e=>{for(let t;t=e._$AM;e=t){let r=t._$AN;if(r===void 0)t._$AN=r=new Set;else if(r.has(e))break;r.add(e),xU(t)}};function gU(e){this._$AN!==void 0?(lc(this),this._$AM=e,zA(this)):this._$AM=e}function yU(e,t=!1,r=0){let n=this._$AH,i=this._$AN;if(i!==void 0&&i.size!==0)if(t)if(Array.isArray(n))for(let o=r;o<n.length;o++)ra(n[o],!1),lc(n[o]);else n!=null&&(ra(n,!1),lc(n));else ra(this,e)}var xU=e=>{e.type==wo.CHILD&&(e._$AP??=yU,e._$AQ??=gU)},or=class extends bo{constructor(){super(...arguments),this._$AN=void 0}_$AT(t,r,n){super._$AT(t,r,n),zA(this),this.isConnected=t._$AU}_$AO(t,r=!0){t!==this.isConnected&&(this.isConnected=t,t?this.reconnected?.():this.disconnected?.()),r&&(ra(this,t),lc(this))}setValue(t){if(BA(this._$Ct))this._$Ct._$AI(t,this);else{let r=[...this._$Ct._$AH];r[this._$Ci]=t,this._$Ct._$AI(r,this,0)}}disconnected(){}reconnected(){}};var qA=async(e,t)=>{for await(let r of e)if(await t(r)===!1)return},vo=class{constructor(t){this.Y=t}disconnect(){this.Y=void 0}reconnect(t){this.Y=t}deref(){return this.Y}},So=class{constructor(){this.Z=void 0,this.q=void 0}get(){return this.Z}pause(){this.Z??=new Promise(t=>this.q=t)}resume(){this.q?.(),this.Z=this.q=void 0}};var HA=e=>!LA(e)&&typeof e.then=="function",VA=1073741823,gd=class extends or{constructor(){super(...arguments),this._$Cwt=VA,this._$Cbt=[],this._$CK=new vo(this),this._$CX=new So}render(...t){return t.find(r=>!HA(r))??Ue}update(t,r){let n=this._$Cbt,i=n.length;this._$Cbt=r;let o=this._$CK,s=this._$CX;this.isConnected||this.disconnected();for(let a=0;a<r.length&&!(a>this._$Cwt);a++){let l=r[a];if(!HA(l))return this._$Cwt=a,l;a<i&&l===n[a]||(this._$Cwt=VA,i=0,Promise.resolve(l).then(async u=>{for(;s.get();)await s.get();let c=o.deref();if(c!==void 0){let f=c._$Cbt.indexOf(l);f>-1&&f<c._$Cwt&&(c._$Cwt=f,c.setValue(u))}}))}return Ue}disconnected(){this._$CK.disconnect(),this._$CX.pause()}reconnected(){this._$CK.reconnect(this),this._$CX.resume()}},bU=kt(gd);var na=class extends or{constructor(){super(...arguments),this._$CK=new vo(this),this._$CX=new So}render(t,r){return Ue}update(t,[r,n]){if(this.isConnected||this.disconnected(),r===this._$CJ)return Ue;this._$CJ=r;let i=0,{_$CK:o,_$CX:s}=this;return qA(r,async a=>{for(;s.get();)await s.get();let l=o.deref();if(l!==void 0){if(l._$CJ!==r)return!1;n!==void 0&&(a=n(a,i)),l.commitValue(a,i),i++}return!0}),Ue}commitValue(t,r){this.setValue(t)}disconnected(){this._$CK.disconnect(),this._$CX.pause()}reconnected(){this._$CK.reconnect(this),this._$CX.resume()}},hle=kt(na);var wU=kt(class extends na{constructor(e){if(super(e),e.type!==wo.CHILD)throw Error("asyncAppend can only be used in child expressions")}update(e,t){return this._$Ctt=e,super.update(e,t)}commitValue(e,t){t===0&&jA(this._$Ctt);let r=$A(this._$Ctt);UA(r,e)}});var WA=function(e,t,r,n){var i=arguments.length,o=i<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(o=(i<3?s(o):i>3?s(t,r,o):s(t,r))||o);return i>3&&o&&Object.defineProperty(t,r,o),o},YA=function(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)},Ne=class extends si.LitElement{constructor(t={}){super(),this.goBright=!1,this.rxSubscriptions=[],this.elementDomReadyDeferred=Ae.plugins.smartpromise.defer(),this.elementDomReady=this.elementDomReadyDeferred.promise,this.startupFunctions=[],this.garbageFunctions=[],this.domtoolsPromise=Ae.elementBasic.setup(this,t),this.domtoolsPromise.then(r=>{this.domtools=r})}async connectedCallback(){super.connectedCallback();let t=await this.domtoolsPromise;this.themeSubscription=t.themeManager.themeObservable.subscribe(r=>{this.goBright=r}),this.rxSubscriptions.push(this.themeSubscription);for(let r of this.startupFunctions)await r();this.dispatchEvent(new CustomEvent("deesElementConnected"))}firstUpdated(t){super.firstUpdated(t),this.elementDomReadyDeferred.resolve()}registerStartupFunction(t){this.startupFunctions.push(t)}registerGarbageFunction(t){this.garbageFunctions.push(t)}async disconnectedCallback(){await this.domtoolsPromise,super.disconnectedCallback();for(let t of this.rxSubscriptions)t.unsubscribe();for(let t of this.garbageFunctions)await t();this.dispatchEvent(new CustomEvent("deesElementDisconnected"))}};WA([si.property({type:Boolean}),YA("design:type",Boolean)],Ne.prototype,"goBright",void 0);WA([si.property(),YA("design:type",Ae.DomTools)],Ne.prototype,"domtools",void 0);var yd=class extends or{constructor(){super(...arguments),this.sub=null}render(t){return this.observable!==t&&(this.sub?.unsubscribe(),this.observable=t,this.isConnected&&this.subscribe(t)),Ue}subscribe(t){this.sub=t.subscribe(r=>{this.setValue(r)})}disconnected(){this.sub?.unsubscribe()}reconnected(){this.subscribe(this.observable)}},vU=kt(yd);var xd=class extends or{constructor(){super(...arguments),this.hasPromiseSettled=!1}render(t){return this.promise!==t&&(this.promise=t,this.isConnected&&this.handlePromise(t)),Ue}handlePromise(t){this.hasPromiseSettled=!1,t.then(r=>{this.promise===t&&!this.hasPromiseSettled&&(this.setValue(r),this.hasPromiseSettled=!0)}).catch(r=>{this.promise===t&&!this.hasPromiseSettled&&(this.setValue(r),this.hasPromiseSettled=!0)})}disconnected(){this.hasPromiseSettled=!0}reconnected(){this.hasPromiseSettled||this.handlePromise(this.promise)}},SU=kt(xd);var uc=new sc;var GT=$e(YT(),1);var ht={};le(ht,{DE_translations:()=>QT,EN_translations:()=>zd,ES_translations:()=>ZT,languageCodeMap:()=>XT,translate:()=>g4});var zd={address:"Address",bankConnection:"Bank Connection",contactInfo:"Contact Info",description:"Description",invoice:"Invoice",itemPos:"Item Pos.",quantity:"Quantity",registrationInfo:"Registration Info",reverseVatNote:"VAT arises on a reverse charge basis and is payable by the customer.",totalNetPrice:"Total Net Price",unitNetPrice:"Unit Net Price",unitType:"Unit Type",yourCustomerId:"Your Customer ID:",yourVatId:"Your vat id on file:",continuesOnPage:"Continues on page",finalPageStatement:"This is the final page of this document.",page:"Page"},QT={address:"Adresse",bankConnection:"Bankverbindung",contactInfo:"Kontaktinformationen",description:"Beschreibung",invoice:"Rechnung",itemPos:"Pos.",quantity:"Anzahl",registrationInfo:"HRA/HRB Info",reverseVatNote:"Umkehr der Umsatzsteuerpflicht: Der Rechnungsempf\xE4nger ist f\xFCr die korrekte Abrechnung der Umsatzsteuer zust\xE4ndig.",totalNetPrice:"Nettopreis Summe",unitNetPrice:"Nettopreis",unitType:"Einheit",yourCustomerId:"Ihre Kundennummer:",yourVatId:"Ihre Umsatzsteuer-ID:",continuesOnPage:"Fortsetzung auf Seite",finalPageStatement:"Diese ist die letzte Seite einer Dokumente.",page:"Seite"},ZT={address:"Direcci\xF3n",bankConnection:"Conexi\xF3n bancaria",contactInfo:"Informaci\xF3n de contacto",description:"Descripci\xF3n",invoice:"Factura",itemPos:"Pos.",quantity:"Cantidad",registrationInfo:"Informaci\xF3n de registro",reverseVatNote:"La declaraci\xF3n de IVA se aplica en base a la factura de venta, y se paga por el cliente.",totalNetPrice:"Precio total neto",unitNetPrice:"Precio unitario neto",unitType:"Tipo de unidad",yourCustomerId:"Su n\xFAmero de cliente:",yourVatId:"Su ID de IVA:",continuesOnPage:"Continues on page",finalPageStatement:"This is the final page of this document.",page:"Page"},XT={DE:QT,EN:zd,ES:ZT},g4=(e,t,r)=>{let n=XT[e]||zd;return n&&n[t]?n[t]:r};var KT={name:"Awesome From Company",type:"company",description:"a company that does stuff",address:{streetName:"Awesome Street",houseNumber:"5",city:"Bremen",country:"Germany",postalCode:"28359"},vatId:"DE12345678",sepaConnection:{bic:"BPOTBEB1",iban:"BE01234567891616"},email:"hello@awesome.company",phone:"+49 421 1234567",fax:"+49 421 1234568"},eC={name:"Awesome To GmbH",type:"company",customerNumber:"LL-CLIENT-123",description:"a company that does stuff",address:{streetName:"Awesome Street",houseNumber:"5",city:"Bremen",country:"Germany",postalCode:"28359"},vatId:"BE12345678"},_o={versionInfo:{type:"draft",version:"1.0.0"},accentColor:null,content:{textData:null,timesheetData:null,contractData:{contractDate:Date.now(),id:"someid"},invoiceData:{id:"LL-INV-48765",reverseCharge:!0,dueInDays:30,billedBy:KT,billedTo:eC,status:null,deliveryDate:new Date().getTime(),periodOfPerformance:null,printResult:null,currency:"EUR",notes:[],type:"debitnote",items:[{name:"Item with 19% VAT",unitQuantity:2,unitNetPrice:100,unitType:"hours",vatPercentage:19,position:0},{name:"Item with 7% VAT",unitQuantity:4,unitNetPrice:100,unitType:"hours",vatPercentage:7,position:1},{name:"Item with 7% VAT",unitQuantity:3,unitNetPrice:230,unitType:"hours",vatPercentage:7,position:2},{name:"Item with 21% VAT",unitQuantity:1,unitNetPrice:230,unitType:"hours",vatPercentage:21,position:3},{name:"Item with 0% VAT",unitQuantity:6,unitNetPrice:230,unitType:"hours",vatPercentage:0,position:4},{name:"Item with 19% VAT",unitQuantity:8,unitNetPrice:100,unitType:"hours",vatPercentage:19,position:5},{name:"Item with 7% VAT",unitQuantity:9,unitNetPrice:100,unitType:"hours",vatPercentage:7,position:6},{name:"Item with 7% VAT",unitQuantity:4,unitNetPrice:230,unitType:"hours",vatPercentage:7,position:8},{name:"Item with 21% VAT",unitQuantity:3,unitNetPrice:230,unitType:"hours",vatPercentage:21,position:9},{name:"Item with 0% VAT",unitQuantity:1,unitNetPrice:230,unitType:"hours",vatPercentage:0,position:10},{name:"Item with 0% VAT",unitQuantity:1,unitNetPrice:230,unitType:"hours",vatPercentage:0,position:10},{name:"Item with 0% VAT",unitQuantity:1,unitNetPrice:230,unitType:"hours",vatPercentage:0,position:10},{name:"Item with 0% VAT",unitQuantity:1,unitNetPrice:230,unitType:"hours",vatPercentage:0,position:10},{name:"Item with 0% VAT",unitQuantity:1,unitNetPrice:230,unitType:"hours",vatPercentage:0,position:10},{name:"Item with 0% VAT",unitQuantity:1,unitNetPrice:230,unitType:"hours",vatPercentage:0,position:10},{name:"Item with 0% VAT",unitQuantity:1,unitNetPrice:230,unitType:"hours",vatPercentage:0,position:10}]}},date:Date.now(),type:"invoice",needsCoverSheet:!1,objectActions:[],pdf:null,from:KT,to:eC,incidenceId:null,language:null,legalContact:null,logoUrl:null,pdfAttachments:null,subject:"Invoice: LL-INV-48765"},tC={enableTopDraftText:!0,enableDefaultHeader:!0,enableDefaultFooter:!0,languageCode:"DE"};var pa=1122,vc=794,Nt=70,Io=90;var sr=class extends Ne{constructor(){super();this.getTotalNet=()=>{let r=0;if(!this.letterData)return r;for(let n of this.letterData.content.invoiceData.items)r+=n.unitNetPrice*n.unitQuantity;return r};this.getTotalGross=()=>{let r=0;if(!this.letterData)return r;for(let n of this.getVatGroups())r+=n.vatAmountSum;return this.getTotalNet()+r};this.getVatGroups=()=>{let r=[];if(!this.letterData)return r;let n=[];for(let i of this.letterData.content.invoiceData.items)n.includes(i.vatPercentage)||n.push(i.vatPercentage);for(let i of n){let o=this.letterData.content.invoiceData.items.filter(a=>a.vatPercentage===i),s=0;for(let a of o)s+=a.unitNetPrice*a.unitQuantity*(i/100);r.push({items:o,vatPercentage:i,vatAmountSum:Math.round(s*100)/100})}return r};Ae.DomTools.setupDomTools()}render(){return Q`
271
+ `,mU=async(e,t={})=>{let r=await ut.setupDomTools(t);return r.runOnce("elementBasicSetup",async()=>{r.setGlobalStyles(OA)}),r};var md={};le(md,{cssGridColumns:()=>dU});var dU=(e,t)=>{let r="";for(let n=0;n<e;n++)r+=` calc((100%/${e}) - (${t*(e-1)}px/${e}))`;return r};var dd={};le(dd,{SweetScroll:()=>MA.default,smartdelay:()=>he,smartmarkdown:()=>Hu,smartpromise:()=>re,smartrouter:()=>co,smartrx:()=>Se,smartstate:()=>fo,smartstring:()=>Vr,smarturl:()=>po,typedrequest:()=>It});var MA=$e(id(),1);var si={css:we,unsafeCSS:se,LitElement:Lr,property:ne};var sc=class{constructor(){this.domtoolsPromise=ut.setupDomTools(),this.goBright=!1,this.bdVarTripletStore=[],this.cssGridColumns=(t,r)=>{let n="";for(let i=0;i<t;i++)n+=` calc((100%/${t}) - (${r*(t-1)}px/${t}))`;return si.unsafeCSS(n)},this.domtoolsPromise.then(async t=>{t.themeManager.themeObservable.subscribe(async r=>{this.goBright=r,await t.domReady.promise;for(let n of this.bdVarTripletStore)document.body.style.setProperty(n.cssVarName,this.goBright?n.brightValue:n.darkValue)})})}get defaultStyles(){return Ht.staticStyles}cssForDesktop(t){return se(Pr.cssForDesktop(t))}cssForNotebook(t){return se(Pr.cssForNotebook(t))}cssForTablet(t){return se(Pr.cssForTablet(t))}cssForPhablet(t){return se(Pr.cssForPhablet(t))}cssForPhone(t){return se(Pr.cssForPhone(t))}bdTheme(t,r){let n,i;ut.getGlobalDomToolsSync()?i=ut.getGlobalDomToolsSync().themeManager.goBrightBoolean?t:r:i=r;let o=this.bdVarTripletStore.find(s=>s.darkValue===r&&s.brightValue===t);if(o)n=o.cssVarName;else{let s={cssVarName:`--${NA.uni()}`,brightValue:t,darkValue:r};this.bdVarTripletStore.push(s),this.domtoolsPromise.then(async a=>{await a.domReady.promise,document.body.style.setProperty(s.cssVarName,i)}),n=s.cssVarName}return si.unsafeCSS(`var(${n}, ${i})`)}};var wo={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},kt=e=>(...t)=>({_$litDirective$:e,values:t}),bo=class{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,r,n){this._$Ct=t,this._$AM=r,this._$Ci=n}_$AS(t,r){return this.update(t,r)}update(t,r){return this.render(...r)}};var ta=class extends bo{constructor(t){if(super(t),this.it=Fe,t.type!==wo.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===Fe||t==null)return this._t=void 0,this.it=t;if(t===Ue)return t;if(typeof t!="string")throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.it)return this._t;this.it=t;let r=[t];return r.raw=r,this._t={_$litType$:this.constructor.resultType,strings:r,values:[]}}};ta.directiveName="unsafeHTML",ta.resultType=1;var gU=kt(ta);var Qe=e=>(t,r)=>{r!==void 0?r.addInitializer(()=>{customElements.define(e,t)}):customElements.define(e,t)};var{I:yU}=ig,LA=e=>e===null||typeof e!="object"&&typeof e!="function";var BA=e=>e.strings===void 0,RA=()=>document.createComment(""),$A=(e,t,r)=>{let n=e._$AA.parentNode,i=t===void 0?e._$AB:t._$AA;if(r===void 0){let o=n.insertBefore(RA(),i),s=n.insertBefore(RA(),i);r=new yU(o,s,e,e.options)}else{let o=r._$AB.nextSibling,s=r._$AM,a=s!==e;if(a){let l;r._$AQ?.(e),r._$AM=e,r._$AP!==void 0&&(l=e._$AU)!==s._$AU&&r._$AP(l)}if(o!==i||a){let l=r._$AA;for(;l!==o;){let u=l.nextSibling;n.insertBefore(l,i),l=u}}}return r},UA=(e,t,r=e)=>(e._$AI(t,r),e);var jA=e=>{e._$AR()};var ra=(e,t)=>{let r=e._$AN;if(r===void 0)return!1;for(let n of r)n._$AO?.(t,!1),ra(n,t);return!0},lc=e=>{let t,r;do{if((t=e._$AM)===void 0)break;r=t._$AN,r.delete(e),e=t}while(r?.size===0)},zA=e=>{for(let t;t=e._$AM;e=t){let r=t._$AN;if(r===void 0)t._$AN=r=new Set;else if(r.has(e))break;r.add(e),wU(t)}};function xU(e){this._$AN!==void 0?(lc(this),this._$AM=e,zA(this)):this._$AM=e}function bU(e,t=!1,r=0){let n=this._$AH,i=this._$AN;if(i!==void 0&&i.size!==0)if(t)if(Array.isArray(n))for(let o=r;o<n.length;o++)ra(n[o],!1),lc(n[o]);else n!=null&&(ra(n,!1),lc(n));else ra(this,e)}var wU=e=>{e.type==wo.CHILD&&(e._$AP??=bU,e._$AQ??=xU)},or=class extends bo{constructor(){super(...arguments),this._$AN=void 0}_$AT(t,r,n){super._$AT(t,r,n),zA(this),this.isConnected=t._$AU}_$AO(t,r=!0){t!==this.isConnected&&(this.isConnected=t,t?this.reconnected?.():this.disconnected?.()),r&&(ra(this,t),lc(this))}setValue(t){if(BA(this._$Ct))this._$Ct._$AI(t,this);else{let r=[...this._$Ct._$AH];r[this._$Ci]=t,this._$Ct._$AI(r,this,0)}}disconnected(){}reconnected(){}};var qA=async(e,t)=>{for await(let r of e)if(await t(r)===!1)return},vo=class{constructor(t){this.Y=t}disconnect(){this.Y=void 0}reconnect(t){this.Y=t}deref(){return this.Y}},So=class{constructor(){this.Z=void 0,this.q=void 0}get(){return this.Z}pause(){this.Z??=new Promise(t=>this.q=t)}resume(){this.q?.(),this.Z=this.q=void 0}};var HA=e=>!LA(e)&&typeof e.then=="function",VA=1073741823,gd=class extends or{constructor(){super(...arguments),this._$Cwt=VA,this._$Cbt=[],this._$CK=new vo(this),this._$CX=new So}render(...t){return t.find(r=>!HA(r))??Ue}update(t,r){let n=this._$Cbt,i=n.length;this._$Cbt=r;let o=this._$CK,s=this._$CX;this.isConnected||this.disconnected();for(let a=0;a<r.length&&!(a>this._$Cwt);a++){let l=r[a];if(!HA(l))return this._$Cwt=a,l;a<i&&l===n[a]||(this._$Cwt=VA,i=0,Promise.resolve(l).then(async u=>{for(;s.get();)await s.get();let c=o.deref();if(c!==void 0){let f=c._$Cbt.indexOf(l);f>-1&&f<c._$Cwt&&(c._$Cwt=f,c.setValue(u))}}))}return Ue}disconnected(){this._$CK.disconnect(),this._$CX.pause()}reconnected(){this._$CK.reconnect(this),this._$CX.resume()}},vU=kt(gd);var na=class extends or{constructor(){super(...arguments),this._$CK=new vo(this),this._$CX=new So}render(t,r){return Ue}update(t,[r,n]){if(this.isConnected||this.disconnected(),r===this._$CJ)return Ue;this._$CJ=r;let i=0,{_$CK:o,_$CX:s}=this;return qA(r,async a=>{for(;s.get();)await s.get();let l=o.deref();if(l!==void 0){if(l._$CJ!==r)return!1;n!==void 0&&(a=n(a,i)),l.commitValue(a,i),i++}return!0}),Ue}commitValue(t,r){this.setValue(t)}disconnected(){this._$CK.disconnect(),this._$CX.pause()}reconnected(){this._$CK.reconnect(this),this._$CX.resume()}},dle=kt(na);var SU=kt(class extends na{constructor(e){if(super(e),e.type!==wo.CHILD)throw Error("asyncAppend can only be used in child expressions")}update(e,t){return this._$Ctt=e,super.update(e,t)}commitValue(e,t){t===0&&jA(this._$Ctt);let r=$A(this._$Ctt);UA(r,e)}});var WA=function(e,t,r,n){var i=arguments.length,o=i<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(o=(i<3?s(o):i>3?s(t,r,o):s(t,r))||o);return i>3&&o&&Object.defineProperty(t,r,o),o},YA=function(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)},Ne=class extends si.LitElement{constructor(t={}){super(),this.goBright=!1,this.rxSubscriptions=[],this.elementDomReadyDeferred=Ae.plugins.smartpromise.defer(),this.elementDomReady=this.elementDomReadyDeferred.promise,this.startupFunctions=[],this.garbageFunctions=[],this.domtoolsPromise=Ae.elementBasic.setup(this,t),this.domtoolsPromise.then(r=>{this.domtools=r})}async connectedCallback(){super.connectedCallback();let t=await this.domtoolsPromise;this.themeSubscription=t.themeManager.themeObservable.subscribe(r=>{this.goBright=r}),this.rxSubscriptions.push(this.themeSubscription);for(let r of this.startupFunctions)await r();this.dispatchEvent(new CustomEvent("deesElementConnected"))}firstUpdated(t){super.firstUpdated(t),this.elementDomReadyDeferred.resolve()}registerStartupFunction(t){this.startupFunctions.push(t)}registerGarbageFunction(t){this.garbageFunctions.push(t)}async disconnectedCallback(){await this.domtoolsPromise,super.disconnectedCallback();for(let t of this.rxSubscriptions)t.unsubscribe();for(let t of this.garbageFunctions)await t();this.dispatchEvent(new CustomEvent("deesElementDisconnected"))}};WA([si.property({type:Boolean}),YA("design:type",Boolean)],Ne.prototype,"goBright",void 0);WA([si.property(),YA("design:type",Ae.DomTools)],Ne.prototype,"domtools",void 0);var yd=class extends or{constructor(){super(...arguments),this.sub=null}render(t){return this.observable!==t&&(this.sub?.unsubscribe(),this.observable=t,this.isConnected&&this.subscribe(t)),Ue}subscribe(t){this.sub=t.subscribe(r=>{this.setValue(r)})}disconnected(){this.sub?.unsubscribe()}reconnected(){this.subscribe(this.observable)}},kU=kt(yd);var xd=class extends or{constructor(){super(...arguments),this.hasPromiseSettled=!1}render(t){return this.promise!==t&&(this.promise=t,this.isConnected&&this.handlePromise(t)),Ue}handlePromise(t){this.hasPromiseSettled=!1,t.then(r=>{this.promise===t&&!this.hasPromiseSettled&&(this.setValue(r),this.hasPromiseSettled=!0)}).catch(r=>{this.promise===t&&!this.hasPromiseSettled&&(this.setValue(r),this.hasPromiseSettled=!0)})}disconnected(){this.hasPromiseSettled=!0}reconnected(){this.hasPromiseSettled||this.handlePromise(this.promise)}},AU=kt(xd);var uc=new sc;var GT=$e(YT(),1);var ht={};le(ht,{DE_translations:()=>QT,EN_translations:()=>zd,ES_translations:()=>ZT,FR_translations:()=>XT,IT_translations:()=>KT,languageCodeMap:()=>eC,translate:()=>x4});var zd={address:"Address",bankConnection:"Bank Connection",contactInfo:"Contact Info",description:"Description",invoice:"Invoice",itemPos:"Item Pos.",quantity:"Quantity",registrationInfo:"Registration Info",reverseVatNote:"VAT arises on a reverse charge basis and is payable by the customer.",totalNetPrice:"Total Net Price",unitNetPrice:"Unit Net Price",unitType:"Unit Type",yourCustomerId:"Your Customer ID:",yourVatId:"Your vat id on file:",continuesOnPage:"Continues on page",finalPageStatement:"This is the final page of this document.",page:"Page"},QT={address:"Adresse",bankConnection:"Bankverbindung",contactInfo:"Kontaktinformationen",description:"Beschreibung",invoice:"Rechnung",itemPos:"Pos.",quantity:"Anzahl",registrationInfo:"HRA/HRB Info",reverseVatNote:"Umkehr der Umsatzsteuerpflicht: Der Rechnungsempf\xE4nger ist f\xFCr die korrekte Abrechnung der Umsatzsteuer zust\xE4ndig.",totalNetPrice:"Nettopreis Summe",unitNetPrice:"Nettopreis",unitType:"Einheit",yourCustomerId:"Ihre Kundennummer:",yourVatId:"Ihre Umsatzsteuer-ID:",continuesOnPage:"Fortsetzung auf Seite",finalPageStatement:"Dies ist die letzte Seite dieses Dokuments.",page:"Seite"},ZT={address:"Direcci\xF3n",bankConnection:"Conexi\xF3n bancaria",contactInfo:"Informaci\xF3n de contacto",description:"Descripci\xF3n",invoice:"Factura",itemPos:"Pos.",quantity:"Cantidad",registrationInfo:"Informaci\xF3n de registro",reverseVatNote:"El IVA se aplica por inversi\xF3n del sujeto pasivo y debe ser pagado por el cliente.",totalNetPrice:"Precio total neto",unitNetPrice:"Precio unitario neto",unitType:"Tipo de unidad",yourCustomerId:"Su n\xFAmero de cliente:",yourVatId:"Su ID de IVA:",continuesOnPage:"Contin\xFAa en la p\xE1gina",finalPageStatement:"Esta es la \xFAltima p\xE1gina de este documento.",page:"P\xE1gina"},XT={address:"Adresse",bankConnection:"Coordonn\xE9es bancaires",contactInfo:"Informations de contact",description:"Description",invoice:"Facture",itemPos:"Position",quantity:"Quantit\xE9",registrationInfo:"Informations d'enregistrement",reverseVatNote:"La TVA s'applique selon le m\xE9canisme d'autoliquidation et est \xE0 payer par le client.",totalNetPrice:"Prix net total",unitNetPrice:"Prix unitaire net",unitType:"Type d'unit\xE9",yourCustomerId:"Votre num\xE9ro de client :",yourVatId:"Votre num\xE9ro de TVA :",continuesOnPage:"Continue sur la page",finalPageStatement:"Ceci est la derni\xE8re page de ce document.",page:"Page"},KT={address:"Indirizzo",bankConnection:"Coordinate bancarie",contactInfo:"Informazioni di contatto",description:"Descrizione",invoice:"Fattura",itemPos:"Pos.",quantity:"Quantit\xE0",registrationInfo:"Informazioni di registrazione",reverseVatNote:"L'IVA \xE8 applicata con inversione contabile ed \xE8 a carico del cliente.",totalNetPrice:"Prezzo netto totale",unitNetPrice:"Prezzo netto unitario",unitType:"Tipo di unit\xE0",yourCustomerId:"Il tuo numero cliente:",yourVatId:"Il tuo numero di partita IVA:",continuesOnPage:"Continua alla pagina",finalPageStatement:"Questa \xE8 l'ultima pagina di questo documento.",page:"Pagina"},eC={DE:QT,EN:zd,ES:ZT,FR:XT,IT:KT},x4=(e,t,r)=>{let n=eC[e]||zd;return n&&n[t]?n[t]:r};var tC={name:"Awesome From Company",type:"company",description:"a company that does stuff",address:{streetName:"Awesome Street",houseNumber:"5",city:"Bremen",country:"Germany",postalCode:"28359"},vatId:"DE12345678",sepaConnection:{bic:"BPOTBEB1",iban:"BE01234567891616"},email:"hello@awesome.company",phone:"+49 421 1234567",fax:"+49 421 1234568"},rC={name:"Awesome To GmbH",type:"company",customerNumber:"LL-CLIENT-123",description:"a company that does stuff",address:{streetName:"Awesome Street",houseNumber:"5",city:"Bremen",country:"Germany",postalCode:"28359"},vatId:"BE12345678"},_o={versionInfo:{type:"draft",version:"1.0.0"},accentColor:null,content:{textData:null,timesheetData:null,contractData:{contractDate:Date.now(),id:"someid"},invoiceData:{id:"LL-INV-48765",reverseCharge:!0,dueInDays:30,billedBy:tC,billedTo:rC,status:null,deliveryDate:new Date().getTime(),periodOfPerformance:null,printResult:null,currency:"EUR",notes:[],type:"debitnote",items:[{name:"Item with 19% VAT",unitQuantity:2,unitNetPrice:100,unitType:"hours",vatPercentage:19,position:0},{name:"Item with 7% VAT",unitQuantity:4,unitNetPrice:100,unitType:"hours",vatPercentage:7,position:1},{name:"Item with 7% VAT",unitQuantity:3,unitNetPrice:230,unitType:"hours",vatPercentage:7,position:2},{name:"Item with 21% VAT",unitQuantity:1,unitNetPrice:230,unitType:"hours",vatPercentage:21,position:3},{name:"Item with 0% VAT",unitQuantity:6,unitNetPrice:230,unitType:"hours",vatPercentage:0,position:4},{name:"Item with 19% VAT",unitQuantity:8,unitNetPrice:100,unitType:"hours",vatPercentage:19,position:5},{name:"Item with 7% VAT",unitQuantity:9,unitNetPrice:100,unitType:"hours",vatPercentage:7,position:6},{name:"Item with 7% VAT",unitQuantity:4,unitNetPrice:230,unitType:"hours",vatPercentage:7,position:8},{name:"Item with 21% VAT",unitQuantity:3,unitNetPrice:230,unitType:"hours",vatPercentage:21,position:9},{name:"Item with 0% VAT",unitQuantity:1,unitNetPrice:230,unitType:"hours",vatPercentage:0,position:10},{name:"Item with 0% VAT",unitQuantity:1,unitNetPrice:230,unitType:"hours",vatPercentage:0,position:10},{name:"Item with 0% VAT",unitQuantity:1,unitNetPrice:230,unitType:"hours",vatPercentage:0,position:10},{name:"Item with 0% VAT",unitQuantity:1,unitNetPrice:230,unitType:"hours",vatPercentage:0,position:10},{name:"Item with 0% VAT",unitQuantity:1,unitNetPrice:230,unitType:"hours",vatPercentage:0,position:10},{name:"Item with 0% VAT",unitQuantity:1,unitNetPrice:230,unitType:"hours",vatPercentage:0,position:10},{name:"Item with 0% VAT",unitQuantity:1,unitNetPrice:230,unitType:"hours",vatPercentage:0,position:10}]}},date:Date.now(),type:"invoice",needsCoverSheet:!1,objectActions:[],pdf:null,from:tC,to:rC,incidenceId:null,language:null,legalContact:null,logoUrl:null,pdfAttachments:null,subject:"Invoice: LL-INV-48765"},nC={enableTopDraftText:!0,enableDefaultHeader:!0,enableDefaultFooter:!0,languageCode:"DE"};var pa=1122,vc=794,Nt=70,Io=90;var sr=class extends Ne{constructor(){super();this.getTotalNet=()=>{let r=0;if(!this.letterData)return r;for(let n of this.letterData.content.invoiceData.items)r+=n.unitNetPrice*n.unitQuantity;return r};this.getTotalGross=()=>{let r=0;if(!this.letterData)return r;for(let n of this.getVatGroups())r+=n.vatAmountSum;return this.getTotalNet()+r};this.getVatGroups=()=>{let r=[];if(!this.letterData)return r;let n=[];for(let i of this.letterData.content.invoiceData.items)n.includes(i.vatPercentage)||n.push(i.vatPercentage);for(let i of n){let o=this.letterData.content.invoiceData.items.filter(a=>a.vatPercentage===i),s=0;for(let a of o)s+=a.unitNetPrice*a.unitQuantity*(i/100);r.push({items:o,vatPercentage:i,vatAmountSum:Math.round(s*100)/100})}return r};Ae.DomTools.setupDomTools()}render(){return Q`
272
272
  <div class="trimmedContent"></div>
273
273
  <div class="repeatedContent"></div>
274
274
  <div class="currentContent"></div>
@@ -536,11 +536,11 @@ EPC QR Code`,i=>{i&&console.error(i),console.log("success!")}),r.currentContent.
536
536
  font-size: 200px;
537
537
  opacity: 0.05;
538
538
  }
539
- `],ee([ne({type:Number})],ct.prototype,"viewWidth",2),ee([ne({type:Number})],ct.prototype,"viewHeight",2),ee([ne({type:String})],ct.prototype,"format",2),ee([ne({type:Number})],ct.prototype,"pageNumber",2),ee([ne({type:Number})],ct.prototype,"pageTotalNumber",2),ee([ne({type:Object})],ct.prototype,"letterData",2),ee([ne({type:Boolean,reflect:!0})],ct.prototype,"printMode",2),ee([ne({type:Object,reflect:!0})],ct.prototype,"documentSettings",2),ct=ee([Qe("dedocument-page")],ct);var rC=()=>Q`
539
+ `],ee([ne({type:Number})],ct.prototype,"viewWidth",2),ee([ne({type:Number})],ct.prototype,"viewHeight",2),ee([ne({type:String})],ct.prototype,"format",2),ee([ne({type:Number})],ct.prototype,"pageNumber",2),ee([ne({type:Number})],ct.prototype,"pageTotalNumber",2),ee([ne({type:Object})],ct.prototype,"letterData",2),ee([ne({type:Boolean,reflect:!0})],ct.prototype,"printMode",2),ee([ne({type:Object,reflect:!0})],ct.prototype,"documentSettings",2),ct=ee([Qe("dedocument-page")],ct);var iC=()=>Q`
540
540
  <dedocument-dedocument .format="${"a4"}" .letterData=${_o}></dedocument-dedocument>
541
541
  `;var qd={enableTopDraftText:!0,enableDefaultHeader:!0,enableDefaultFooter:!0},Ft=class extends Ne{constructor(){super();this.format="a4";this.viewWidth=null;this.viewHeight=null;this.printMode=!1;this.documentSettings=qd;this.latestRenderedLetterData=null;Ae.DomTools.setupDomTools()}render(){return Q`
542
542
  <div class="documentContainer"></div>
543
- `}async firstUpdated(r){let n=new ResizeObserver(i=>{for(let o of i){let s=o.contentRect.width,a=o.contentRect.height;this.adjustDePageScaling()}});n.observe(this),this.registerGarbageFunction(()=>{n.disconnect()})}async renderDocument(){let r=await this.domtoolsPromise,n=document.createElement("div");document.body.appendChild(n);let i=[],o=0,s=!1,a=new sr;a.letterData=this.letterData,a.documentSettings=this.documentSettings,document.body.appendChild(a),await r.convenience.smartdelay.delayFor(0);let l=0,u,c;for(;!s;){o++;let p=a.cloneNode(!0),h=new ct;h.printMode=this.printMode,h.letterData=this.letterData,h.documentSettings=this.documentSettings,i.push(h),h.pageNumber=o,h.append(p),h.pageTotalNumber=o,n.append(h),await p.elementDomReady,await p.trimStartToOffset(l);let m=await h.checkOverflow();for(c=0;m;)await p.trimEndByOne(),c++,m=await h.checkOverflow();u=await p.getContentLength(),l=l+u,c===0&&(s=!0),console.log(u)}document.body.removeChild(a),document.body.removeChild(n);let f=this.shadowRoot.querySelector(".documentContainer");f&&Array.from(f.children).forEach(h=>f.removeChild(h));for(let p of i)if(p.pageTotalNumber=o,f.append(p),!this.printMode){let h=document.createElement("div");h.classList.add("betweenPagesSpacer"),f.appendChild(h)}this.adjustDePageScaling(),this.latestRenderedLetterData=this.letterData}async updated(r){super.updated(r),(await this.domtoolsPromise).convenience.smartjson.deepEqualObjects(this.letterData,this.latestRenderedLetterData)||this.renderDocument(),(r.has("viewHeight")||r.has("viewWidth"))&&this.adjustDePageScaling()}adjustDePageScaling(){if(this.printMode)return;this.viewWidth=this.clientWidth,this.shadowRoot.querySelectorAll("dedocument-page").forEach(n=>{this.viewHeight&&(n.viewHeight=this.viewHeight),this.viewWidth&&(n.viewWidth=this.viewWidth,console.log("setting viewWidth: ",this.viewWidth))})}};Ft.demo=rC,Ft.styles=[Ae.elementBasic.staticStyles,we`
543
+ `}async firstUpdated(r){let n=new ResizeObserver(i=>{for(let o of i){let s=o.contentRect.width,a=o.contentRect.height;this.adjustDePageScaling()}});n.observe(this),this.registerGarbageFunction(()=>{n.disconnect()})}async renderDocument(){let r=await this.domtoolsPromise,n=document.createElement("div");document.body.appendChild(n);let i=[],o=0,s=!1,a=new sr;a.letterData=this.letterData,a.documentSettings=this.documentSettings,document.body.appendChild(a),await r.convenience.smartdelay.delayFor(0);let l=0,u,c;for(;!s;){o++;let p=a.cloneNode(!0),h=new ct;h.printMode=this.printMode,h.letterData=this.letterData,h.documentSettings=this.documentSettings,i.push(h),h.pageNumber=o,h.append(p),h.pageTotalNumber=o,n.append(h),await p.elementDomReady,await p.trimStartToOffset(l);let m=await h.checkOverflow();for(c=0;m;)await p.trimEndByOne(),c++,m=await h.checkOverflow();u=await p.getContentLength(),l=l+u,c===0&&(s=!0),console.log(u)}document.body.removeChild(a),document.body.removeChild(n);let f=this.shadowRoot.querySelector(".documentContainer");f&&Array.from(f.children).forEach(h=>f.removeChild(h));for(let p of i)if(p.pageTotalNumber=o,f.append(p),!this.printMode){let h=document.createElement("div");h.classList.add("betweenPagesSpacer"),f.appendChild(h)}this.adjustDePageScaling(),this.latestRenderedLetterData=this.letterData}async updated(r){super.updated(r),(await this.domtoolsPromise).convenience.smartjson.deepEqualObjects(this.letterData,this.latestRenderedLetterData)||this.renderDocument(),(r.has("viewHeight")||r.has("viewWidth"))&&this.adjustDePageScaling()}adjustDePageScaling(){if(this.printMode)return;this.viewWidth=this.clientWidth,this.shadowRoot.querySelectorAll("dedocument-page").forEach(n=>{this.viewHeight&&(n.viewHeight=this.viewHeight),this.viewWidth&&(n.viewWidth=this.viewWidth,console.log("setting viewWidth: ",this.viewWidth))})}};Ft.demo=iC,Ft.styles=[Ae.elementBasic.staticStyles,we`
544
544
  :host {
545
545
  display: block;
546
546
  color: #333;
@@ -551,7 +551,7 @@ EPC QR Code`,i=>{i&&console.error(i),console.log("success!")}),r.currentContent.
551
551
  .betweenPagesSpacer {
552
552
  height: 16px;
553
553
  }
554
- `],ee([ne({type:String,reflect:!0})],Ft.prototype,"format",2),ee([ne({type:Number,reflect:!0})],Ft.prototype,"viewWidth",2),ee([ne({type:Number,reflect:!0})],Ft.prototype,"viewHeight",2),ee([ne({type:Boolean,reflect:!0})],Ft.prototype,"printMode",2),ee([ne({type:Object,reflect:!0,converter:r=>typeof r=="string"?De.parseBase64(r):r})],Ft.prototype,"letterData",2),ee([ne({type:Object,reflect:!0,converter:r=>typeof r=="string"?De.parseBase64(r):r})],Ft.prototype,"documentSettings",2),Ft=ee([Qe("dedocument-dedocument")],Ft);var Pr=class extends Ne{constructor(){super();this.pageNumber=1;this.pageTotalNumber=1;ut.setupDomTools()}render(){return Q`
554
+ `],ee([ne({type:String,reflect:!0})],Ft.prototype,"format",2),ee([ne({type:Number,reflect:!0})],Ft.prototype,"viewWidth",2),ee([ne({type:Number,reflect:!0})],Ft.prototype,"viewHeight",2),ee([ne({type:Boolean,reflect:!0})],Ft.prototype,"printMode",2),ee([ne({type:Object,reflect:!0,converter:r=>typeof r=="string"?Pe.parseBase64(r):r})],Ft.prototype,"letterData",2),ee([ne({type:Object,reflect:!0,converter:r=>typeof r=="string"?Pe.parseBase64(r):r})],Ft.prototype,"documentSettings",2),Ft=ee([Qe("dedocument-dedocument")],Ft);var Mr=class extends Ne{constructor(){super();this.pageNumber=1;this.pageTotalNumber=1;ut.setupDomTools()}render(){return Q`
555
555
  <div class="date">
556
556
  ${new Date(this.letterData.date).getDate()}. ${new Date(this.letterData.date).toLocaleString("default",{month:"long"})}
557
557
  ${new Date(this.letterData.date).getFullYear()}
@@ -576,9 +576,9 @@ EPC QR Code`,i=>{i&&console.error(i),console.log("success!")}),r.currentContent.
576
576
  <div class="label">your vat id on file:</div>
577
577
  ${this.letterData.to.vatId||"not provided"}
578
578
  </div>
579
- `}};Pr.demo=()=>Q`
579
+ `}};Mr.demo=()=>Q`
580
580
  <dedocument-letterheader .format="${"a4"}" .letterData=${_o}></dedocument-letterheader>
581
- `,Pr.styles=[Ht.staticStyles,we`
581
+ `,Mr.styles=[Ht.staticStyles,we`
582
582
  :host {
583
583
  color: #333;
584
584
  }
@@ -619,7 +619,7 @@ EPC QR Code`,i=>{i&&console.error(i),console.log("success!")}),r.currentContent.
619
619
  .address .to {
620
620
  margin-top: 10px;
621
621
  }
622
- `],ee([ne({type:Object,reflect:!0})],Pr.prototype,"letterData",2),ee([ne({type:Number,reflect:!0})],Pr.prototype,"pageNumber",2),ee([ne({type:Number,reflect:!0})],Pr.prototype,"pageTotalNumber",2),Pr=ee([Qe("dedocument-letterheader")],Pr);var cn=class extends Ne{constructor(){super();this.format="a4";this.printMode=!1;ut.setupDomTools()}render(){return Q`
622
+ `],ee([ne({type:Object,reflect:!0})],Mr.prototype,"letterData",2),ee([ne({type:Number,reflect:!0})],Mr.prototype,"pageNumber",2),ee([ne({type:Number,reflect:!0})],Mr.prototype,"pageTotalNumber",2),Mr=ee([Qe("dedocument-letterheader")],Mr);var cn=class extends Ne{constructor(){super();this.format="a4";this.printMode=!1;ut.setupDomTools()}render(){return Q`
623
623
  <style>
624
624
  :host {
625
625
  box-shadow: ${this.printMode?"none":"0px 0px 10px rgba(0,0,0,0.3)"};
@@ -835,16 +835,16 @@ EPC QR Code`,i=>{i&&console.error(i),console.log("success!")}),r.currentContent.
835
835
  position: relative;
836
836
  height: 25px;
837
837
  }
838
- `],ee([ne({type:Object})],lr.prototype,"letterData",2),ee([ne({type:Object,reflect:!0})],lr.prototype,"documentSettings",2),ee([ne({type:Number})],lr.prototype,"pageNumber",2),ee([ne({type:Number})],lr.prototype,"pageTotalNumber",2),lr=ee([Qe("dedocument-pageheader")],lr);var nC=()=>Q`
839
- <dedocument-viewer .letterData=${_o} .documentSettings=${tC}></dedocument-viewer>
840
- `;var Do=class extends Ne{constructor(){super(...arguments);this.letterData=null;this.render=()=>Q`
838
+ `],ee([ne({type:Object})],lr.prototype,"letterData",2),ee([ne({type:Object,reflect:!0})],lr.prototype,"documentSettings",2),ee([ne({type:Number})],lr.prototype,"pageNumber",2),ee([ne({type:Number})],lr.prototype,"pageTotalNumber",2),lr=ee([Qe("dedocument-pageheader")],lr);var oC=()=>Q`
839
+ <dedocument-viewer .letterData=${_o} .documentSettings=${nC}></dedocument-viewer>
840
+ `;var Po=class extends Ne{constructor(){super(...arguments);this.letterData=null;this.render=()=>Q`
841
841
  <div class="maincontainer">
842
842
  <div class="viewport">
843
843
  ${this.letterData?Q` <dedocument-dedocument .letterData=${this.letterData} .documentSettings=${this.documentSettings}></dedocument-dedocument> `:Q``}
844
844
  </div>
845
845
  <div class="controls"></div>
846
846
  </div>
847
- `;this.updated=r=>{super.updated(r),r.has("letterData")}}};Do.demo=nC,Do.styles=[uc.defaultStyles,we`
847
+ `;this.updated=r=>{super.updated(r),r.has("letterData")}}};Po.demo=oC,Po.styles=[uc.defaultStyles,we`
848
848
  .maincontainer {
849
849
  position: relative;
850
850
  height: 100%;
@@ -884,7 +884,7 @@ EPC QR Code`,i=>{i&&console.error(i),console.log("success!")}),r.currentContent.
884
884
  overflow-y: scroll;
885
885
  overscroll-behavior: contain;
886
886
  }
887
- `],Do=ee([Qe("dedocument-viewer")],Do);export{sr as DeContentInvoice,Ft as DeDocument,Do as DeDocumentViewer,Pr as DeLetterHeader,ct as DePage,cn as DePageContainer,Nr as DePageContent,ar as DePageFooter,lr as DePageHeader,pa as a4Height,vc as a4Width,qd as defaultDocumentSettings,tC as demoDocumentSettings,_o as demoLetter,Io as leftMargin,Nt as rightMargin,ht as translation};
887
+ `],Po=ee([Qe("dedocument-viewer")],Po);export{sr as DeContentInvoice,Ft as DeDocument,Po as DeDocumentViewer,Mr as DeLetterHeader,ct as DePage,cn as DePageContainer,Nr as DePageContent,ar as DePageFooter,lr as DePageHeader,pa as a4Height,vc as a4Width,qd as defaultDocumentSettings,nC as demoDocumentSettings,_o as demoLetter,Io as leftMargin,Nt as rightMargin,ht as translation};
888
888
  /*! Bundled license information:
889
889
 
890
890
  punycode/punycode.js: