@design.estate/dees-document 1.6.6 → 1.6.8

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,4 +1,4 @@
1
- var rT=Object.create;var ca=Object.defineProperty;var zd=Object.getOwnPropertyDescriptor;var nT=Object.getOwnPropertyNames;var iT=Object.getPrototypeOf,oT=Object.prototype.hasOwnProperty;var fa=(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),ae=(e,t)=>{for(var r in t)ca(e,r,{get:t[r],enumerable:!0})},sT=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of nT(t))!oT.call(e,i)&&i!==r&&ca(e,i,{get:()=>t[i],enumerable:!(n=zd(t,i))||n.enumerable});return e};var Ue=(e,t,r)=>(r=e!=null?rT(iT(e)):{},sT(t||!e||!e.__esModule?ca(r,"default",{value:e,enumerable:!0}):r,e));var X=(e,t,r,n)=>{for(var i=n>1?void 0:n?zd(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&&ca(t,r,i),i};var Aa=N(ka=>{"use strict";Object.defineProperty(ka,"__esModule",{value:!0});ka.uni=void 0;var xT=(e="uni")=>`${e}_${"xxxxxxxxxxxxxxxxxxxxxxxx".replace(/[xy]/g,t=>{let r=Math.random()*16|0;return(t==="x"?r:r&3|8).toString(16)})}`;ka.uni=xT});var jg=N((Gc,Jc)=>{(function(e,t){typeof Gc=="object"&&typeof Jc<"u"?Jc.exports=t():typeof define=="function"&&define.amd?define(t):(e=typeof globalThis<"u"?globalThis:e||self).dayjs=t()})(Gc,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 D=String(B);return!D||D.length>=_?B:""+Array(_+1-D.length).join(I)+B},E={s:w,z:function(B){var _=-B.utcOffset(),I=Math.abs(_),D=Math.floor(I/60),F=I%60;return(_<=0?"+":"-")+w(D,2,"0")+":"+w(F,2,"0")},m:function B(_,I){if(_.date()<I.date())return-B(I,_);var D=12*(I.year()-_.year())+(I.month()-_.month()),F=_.clone().add(D,u),W=I-F<0,M=_.clone().add(D+(W?-1:1),u);return+(-(D+(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 C||!(!B||!B[q])},R=function B(_,I,D){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!D&&F&&(b=F),F||!D&&b},V=function(B,_){if(A(B))return B.clone();var I=typeof _=="object"?_:{};return I.date=B,I.args=arguments,new C(I)},$=E;$.l=R,$.i=A,$.w=function(B,_){return V(B,{locale:_.$L,utc:_.$u,x:_.$x,$offset:_.$offset})};var C=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(D){var F=D.date,W=D.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,D){var F=V(I);return this.startOf(D)<=F&&F<=this.endOf(D)},_.isAfter=function(I,D){return V(I)<this.startOf(D)},_.isBefore=function(I,D){return this.endOf(D)<V(I)},_.$g=function(I,D,F){return $.u(I)?this[D]:this.set(F,I)},_.unix=function(){return Math.floor(this.valueOf()/1e3)},_.valueOf=function(){return this.$d.getTime()},_.startOf=function(I,D){var F=this,W=!!$.u(D)||D,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,K=this.$M,y=this.$D,se="set"+(this.$u?"UTC":"");switch(M){case f:return W?U(1,0):U(31,11);case u:return W?U(1,K):U(0,K+1);case l:var de=this.$locale().weekStart||0,Ie=(G<de?G+7:G)-de;return U(W?y-Ie:y+(6-Ie),K);case a:case p:return d(se+"Hours",0);case s:return d(se+"Minutes",1);case o:return d(se+"Seconds",2);case i:return d(se+"Milliseconds",3);default:return this.clone()}},_.endOf=function(I){return this.startOf(I,!1)},_.$set=function(I,D){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+(D-this.$W):D;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,D){return this.clone().$set(I,D)},_.get=function(I){return this[$.p(I)]()},_.add=function(I,D){var F,W=this;I=Number(I);var M=$.p(D),U=function(K){var y=V(W);return $.w(y.date(y.date()+Math.round(K*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,D){return this.add(-1*I,D)},_.format=function(I){var D=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,K=F.weekdays,y=F.months,se=F.meridiem,de=function(g,S,T,O){return g&&(g[S]||g(D,W))||T[S].slice(0,O)},Ie=function(g){return $.s(U%12||12,g,"0")},k=se||function(g,S,T){var O=g<12?"AM":"PM";return T?O.toLowerCase():O};return W.replace(x,function(g,S){return S||function(T){switch(T){case"YY":return String(D.$y).slice(-2);case"YYYY":return $.s(D.$y,4,"0");case"M":return G+1;case"MM":return $.s(G+1,2,"0");case"MMM":return de(F.monthsShort,G,y,3);case"MMMM":return de(y,G);case"D":return D.$D;case"DD":return $.s(D.$D,2,"0");case"d":return String(D.$W);case"dd":return de(F.weekdaysMin,D.$W,K,2);case"ddd":return de(F.weekdaysShort,D.$W,K,3);case"dddd":return K[D.$W];case"H":return String(U);case"HH":return $.s(U,2,"0");case"h":return Ie(1);case"hh":return Ie(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(D.$s);case"ss":return $.s(D.$s,2,"0");case"SSS":return $.s(D.$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,D,F){var W,M=this,U=$.p(D),d=V(I),G=(d.utcOffset()-this.utcOffset())*t,K=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=(K-G)/6048e5;break;case a:W=(K-G)/864e5;break;case s:W=K/r;break;case o:W=K/t;break;case i:W=K/e;break;default:W=K}return F?W:$.a(W)},_.daysInMonth=function(){return this.endOf(u).$D},_.$locale=function(){return z[this.$L]},_.locale=function(I,D){if(!I)return this.$L;var F=this.clone(),W=R(I,D,!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}(),pe=C.prototype;return V.prototype=pe,[["$ms",n],["$s",i],["$m",o],["$H",s],["$W",a],["$M",u],["$y",f],["$D",p]].forEach(function(B){pe[B[1]]=function(_){return this.$g(_,B[0],B[1])}}),V.extend=function(B,_){return B.$i||(B(_,C,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 zg=N((Qc,Zc)=>{(function(e,t){typeof Qc=="object"&&typeof Zc<"u"?Zc.exports=t():typeof define=="function"&&define.amd?define(t):(e=typeof globalThis<"u"?globalThis:e||self).dayjs_plugin_isToday=t()})(Qc,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 Vg=N((d5,Hg)=>{"use strict";Hg.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 Yg=N((g5,Wg)=>{"use strict";Wg.exports=Object.freeze({DISCONNECTED:1,PRECEDING:2,FOLLOWING:4,CONTAINS:8,CONTAINED_BY:16})});var Xg=N((y5,Zg)=>{"use strict";var Gg=Symbol(),Jg=Symbol(),Br=Symbol(),Qg=Symbol(),Ut=class{constructor(t,r,n,i){this[Gg]=t,this[Jg]=r,this[Br]=n,this[Qg]=i}next(){let t=this[Gg],r=this[Qg],n=this[Jg];if(!this[Br])return{done:!0,value:n};let i=this[Br];return r===1?this[Br]=t._node(i).previousSibling:r===2?this[Br]=t._node(i).nextSibling:r===3?this[Br]=t._node(i).parent:r===4?this[Br]=t.preceding(i,{root:n}):this[Br]=t.following(i,{root:n}),{done:!1,value:i}}};Object.defineProperty(Ut.prototype,Symbol.iterator,{value:function(){return this},writable:!1});Ut.PREV=1;Ut.NEXT=2;Ut.PARENT=3;Ut.PRECEDING=4;Ut.FOLLOWING=5;Object.freeze(Ut);Object.freeze(Ut.prototype);Zg.exports=Ut});var lf=N((x5,Kg)=>{"use strict";var cE=Vg(),$r=Yg(),Tt=Xg();function af(){return!0}function Si(e,t){return e[e.length-1-t]}var Za=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 cE)}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||af,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||af,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||af,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 Tt(this,t,n?i.lastChild:i.firstChild,n?Tt.PREV:Tt.NEXT)}previousSiblingsIterator(t){return new Tt(this,t,this._node(t).previousSibling,Tt.PREV)}nextSiblingsIterator(t){return new Tt(this,t,this._node(t).nextSibling,Tt.NEXT)}ancestorsIterator(t){return new Tt(this,t,t,Tt.PARENT)}treeIterator(t,r){let n=r&&r.reverse;return new Tt(this,t,n?this.lastInclusiveDescendant(t):t,n?Tt.PRECEDING:Tt.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 $r.CONTAINS|$r.PRECEDING;n.push(c),c=this.parent(c)}}let i=[];{let c=r;for(;c;){if(c===t)return $r.CONTAINED_BY|$r.FOLLOWING;i.push(c),c=this.parent(c)}}let o=Si(n,0);if(!o||o!==Si(i,0))return $r.DISCONNECTED;let s=0,a=Math.min(n.length,i.length);for(let c=0;c<a;++c){let f=Si(n,c),p=Si(i,c);if(f!==p)break;s=c}let l=this.index(Si(n,s+1));return this.index(Si(i,s+1))<l?$r.PRECEDING:$r.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}};Kg.exports=Za;Za.TreePosition=$r});var cy=N((ki,Ai)=>{(function(e){var t=typeof ki=="object"&&ki&&!ki.nodeType&&ki,r=typeof Ai=="object"&&Ai&&!Ai.nodeType&&Ai,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 K=M.split("."),y=R(K,U).join(".");return G+y}function $(M){for(var U=[],d=0,G=M.length,K,y;d<G;)K=M.charCodeAt(d++),K>=55296&&K<=56319&&d<G?(y=M.charCodeAt(d++),(y&64512)==56320?U.push(((K&1023)<<10)+(y&1023)+65536):(U.push(K),d--)):U.push(K);return U}function C(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 pe(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,K=0,y=p,se=f,de,Ie,k,g,S,T,O,Y,ge;for(de=M.lastIndexOf(h),de<0&&(de=0),Ie=0;Ie<de;++Ie)M.charCodeAt(Ie)>=128&&A("not-basic"),U.push(M.charCodeAt(Ie));for(k=de>0?de+1:0;k<d;){for(g=K,S=1,T=s;k>=d&&A("invalid-input"),O=pe(M.charCodeAt(k++)),(O>=s||O>b((o-K)/S))&&A("overflow"),K+=O*S,Y=T<=se?a:T>=se+l?l:T-se,!(O<Y);T+=s)ge=s-Y,S>b(o/ge)&&A("overflow"),S*=ge;G=U.length+1,se=_(K-g,G,g==0),b(K/G)>o-y&&A("overflow"),y+=b(K/G),K%=G,U.splice(K++,0,y)}return C(U)}function D(M){var U,d,G,K,y,se,de,Ie,k,g,S,T=[],O,Y,ge,we;for(M=$(M),O=M.length,U=p,d=0,y=f,se=0;se<O;++se)S=M[se],S<128&&T.push(z(S));for(G=K=T.length,K&&T.push(h);G<O;){for(de=o,se=0;se<O;++se)S=M[se],S>=U&&S<de&&(de=S);for(Y=G+1,de-U>b((o-d)/Y)&&A("overflow"),d+=(de-U)*Y,U=de,se=0;se<O;++se)if(S=M[se],S<U&&++d>o&&A("overflow"),S==U){for(Ie=d,k=s;g=k<=y?a:k>=y+l?l:k-y,!(Ie<g);k+=s)we=Ie-g,ge=s-g,T.push(z(B(g+we%ge,0))),Ie=b(we/ge);T.push(z(B(Ie,0))),y=_(d,Y,G==K),d=0,++G}++d,++U}return T.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--"+D(U):U})}if(i={version:"1.4.1",ucs2:{decode:$,encode:C},decode:I,encode:D,toASCII:W,toUnicode:F},typeof define=="function"&&typeof define.amd=="object"&&define.amd)define("punycode",function(){return i});else if(t&&r)if(Ai.exports==t)r.exports=i;else for(q in i)i.hasOwnProperty(q)&&(t[q]=i[q]);else e.punycode=i})(ki)});var py=N((gH,fy)=>{"use strict";fy.exports=Error});var my=N((yH,hy)=>{"use strict";hy.exports=EvalError});var gy=N((xH,dy)=>{"use strict";dy.exports=RangeError});var xy=N((bH,yy)=>{"use strict";yy.exports=ReferenceError});var bf=N((wH,by)=>{"use strict";by.exports=SyntaxError});var Ci=N((vH,wy)=>{"use strict";wy.exports=TypeError});var Sy=N((SH,vy)=>{"use strict";vy.exports=URIError});var Ay=N((kH,ky)=>{"use strict";ky.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 Ey=N((AH,Ty)=>{"use strict";var Cy=typeof Symbol<"u"&&Symbol,UE=Ay();Ty.exports=function(){return typeof Cy!="function"||typeof Symbol!="function"||typeof Cy("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:UE()}});var Iy=N((CH,_y)=>{"use strict";var wf={__proto__:null,foo:{}},jE=Object;_y.exports=function(){return{__proto__:wf}.foo===wf.foo&&!(wf instanceof jE)}});var Dy=N((TH,Oy)=>{"use strict";var zE="Function.prototype.bind called on incompatible ",qE=Object.prototype.toString,HE=Math.max,VE="[object Function]",Py=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},WE=function(t,r){for(var n=[],i=r||0,o=0;i<t.length;i+=1,o+=1)n[o]=t[i];return n},YE=function(e,t){for(var r="",n=0;n<e.length;n+=1)r+=e[n],n+1<e.length&&(r+=t);return r};Oy.exports=function(t){var r=this;if(typeof r!="function"||qE.apply(r)!==VE)throw new TypeError(zE+r);for(var n=WE(arguments,1),i,o=function(){if(this instanceof i){var c=r.apply(this,Py(n,arguments));return Object(c)===c?c:this}return r.apply(t,Py(n,arguments))},s=HE(0,r.length-n.length),a=[],l=0;l<s;l++)a[l]="$"+l;if(i=Function("binder","return function ("+YE(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 Ka=N((EH,My)=>{"use strict";var GE=Dy();My.exports=Function.prototype.bind||GE});var Fy=N((_H,Ny)=>{"use strict";var JE=Function.prototype.call,QE=Object.prototype.hasOwnProperty,ZE=Ka();Ny.exports=ZE.call(JE,QE)});var Dn=N((IH,Uy)=>{"use strict";var he,XE=py(),KE=my(),e_=gy(),t_=xy(),Ii=bf(),_i=Ci(),r_=Sy(),$y=Function,vf=function(e){try{return $y('"use strict"; return ('+e+").constructor;")()}catch{}},Pn=Object.getOwnPropertyDescriptor;if(Pn)try{Pn({},"")}catch{Pn=null}var Sf=function(){throw new _i},n_=Pn?function(){try{return arguments.callee,Sf}catch{try{return Pn(arguments,"callee").get}catch{return Sf}}}():Sf,Ti=Ey()(),i_=Iy()(),Ke=Object.getPrototypeOf||(i_?function(e){return e.__proto__}:null),Ei={},o_=typeof Uint8Array>"u"||!Ke?he:Ke(Uint8Array),On={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?he:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?he:ArrayBuffer,"%ArrayIteratorPrototype%":Ti&&Ke?Ke([][Symbol.iterator]()):he,"%AsyncFromSyncIteratorPrototype%":he,"%AsyncFunction%":Ei,"%AsyncGenerator%":Ei,"%AsyncGeneratorFunction%":Ei,"%AsyncIteratorPrototype%":Ei,"%Atomics%":typeof Atomics>"u"?he:Atomics,"%BigInt%":typeof BigInt>"u"?he:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?he:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?he:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?he:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":XE,"%eval%":eval,"%EvalError%":KE,"%Float32Array%":typeof Float32Array>"u"?he:Float32Array,"%Float64Array%":typeof Float64Array>"u"?he:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?he:FinalizationRegistry,"%Function%":$y,"%GeneratorFunction%":Ei,"%Int8Array%":typeof Int8Array>"u"?he:Int8Array,"%Int16Array%":typeof Int16Array>"u"?he:Int16Array,"%Int32Array%":typeof Int32Array>"u"?he:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":Ti&&Ke?Ke(Ke([][Symbol.iterator]())):he,"%JSON%":typeof JSON=="object"?JSON:he,"%Map%":typeof Map>"u"?he:Map,"%MapIteratorPrototype%":typeof Map>"u"||!Ti||!Ke?he:Ke(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?he:Promise,"%Proxy%":typeof Proxy>"u"?he:Proxy,"%RangeError%":e_,"%ReferenceError%":t_,"%Reflect%":typeof Reflect>"u"?he:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?he:Set,"%SetIteratorPrototype%":typeof Set>"u"||!Ti||!Ke?he:Ke(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?he:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":Ti&&Ke?Ke(""[Symbol.iterator]()):he,"%Symbol%":Ti?Symbol:he,"%SyntaxError%":Ii,"%ThrowTypeError%":n_,"%TypedArray%":o_,"%TypeError%":_i,"%Uint8Array%":typeof Uint8Array>"u"?he:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?he:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?he:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?he:Uint32Array,"%URIError%":r_,"%WeakMap%":typeof WeakMap>"u"?he:WeakMap,"%WeakRef%":typeof WeakRef>"u"?he:WeakRef,"%WeakSet%":typeof WeakSet>"u"?he:WeakSet};if(Ke)try{null.error}catch(e){Ry=Ke(Ke(e)),On["%Error.prototype%"]=Ry}var Ry,s_=function e(t){var r;if(t==="%AsyncFunction%")r=vf("async function () {}");else if(t==="%GeneratorFunction%")r=vf("function* () {}");else if(t==="%AsyncGeneratorFunction%")r=vf("async function* () {}");else if(t==="%AsyncGenerator%"){var n=e("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if(t==="%AsyncIteratorPrototype%"){var i=e("%AsyncGenerator%");i&&Ke&&(r=Ke(i.prototype))}return On[t]=r,r},Ly={__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"]},rs=Ka(),el=Fy(),a_=rs.call(Function.call,Array.prototype.concat),l_=rs.call(Function.apply,Array.prototype.splice),By=rs.call(Function.call,String.prototype.replace),tl=rs.call(Function.call,String.prototype.slice),u_=rs.call(Function.call,RegExp.prototype.exec),c_=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,f_=/\\(\\)?/g,p_=function(t){var r=tl(t,0,1),n=tl(t,-1);if(r==="%"&&n!=="%")throw new Ii("invalid intrinsic syntax, expected closing `%`");if(n==="%"&&r!=="%")throw new Ii("invalid intrinsic syntax, expected opening `%`");var i=[];return By(t,c_,function(o,s,a,l){i[i.length]=a?By(l,f_,"$1"):s||o}),i},h_=function(t,r){var n=t,i;if(el(Ly,n)&&(i=Ly[n],n="%"+i[0]+"%"),el(On,n)){var o=On[n];if(o===Ei&&(o=s_(n)),typeof o>"u"&&!r)throw new _i("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:i,name:n,value:o}}throw new Ii("intrinsic "+t+" does not exist!")};Uy.exports=function(t,r){if(typeof t!="string"||t.length===0)throw new _i("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof r!="boolean")throw new _i('"allowMissing" argument must be a boolean');if(u_(/^%?[^%]*%?$/,t)===null)throw new Ii("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=p_(t),i=n.length>0?n[0]:"",o=h_("%"+i+"%",r),s=o.name,a=o.value,l=!1,u=o.alias;u&&(i=u[0],l_(n,a_([0,1],u)));for(var c=1,f=!0;c<n.length;c+=1){var p=n[c],h=tl(p,0,1),m=tl(p,-1);if((h==='"'||h==="'"||h==="`"||m==='"'||m==="'"||m==="`")&&h!==m)throw new Ii("property names with quotes must have matching quotes");if((p==="constructor"||!f)&&(l=!0),i+="."+p,s="%"+i+"%",el(On,s))a=On[s];else if(a!=null){if(!(p in a)){if(!r)throw new _i("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=el(a,p),a=a[p];f&&!l&&(On[s]=a)}}return a}});var nl=N((PH,jy)=>{"use strict";var m_=Dn(),rl=m_("%Object.defineProperty%",!0)||!1;if(rl)try{rl({},"a",{value:1})}catch{rl=!1}jy.exports=rl});var kf=N((OH,zy)=>{"use strict";var d_=Dn(),il=d_("%Object.getOwnPropertyDescriptor%",!0);if(il)try{il([],"length")}catch{il=null}zy.exports=il});var Wy=N((DH,Vy)=>{"use strict";var qy=nl(),g_=bf(),Pi=Ci(),Hy=kf();Vy.exports=function(t,r,n){if(!t||typeof t!="object"&&typeof t!="function")throw new Pi("`obj` must be an object or a function`");if(typeof r!="string"&&typeof r!="symbol")throw new Pi("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new Pi("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new Pi("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new Pi("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new Pi("`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=!!Hy&&Hy(t,r);if(qy)qy(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 g_("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")}});var Jy=N((MH,Gy)=>{"use strict";var Af=nl(),Yy=function(){return!!Af};Yy.hasArrayLengthDefineBug=function(){if(!Af)return null;try{return Af([],"length",{value:1}).length!==1}catch{return!0}};Gy.exports=Yy});var ex=N((NH,Ky)=>{"use strict";var y_=Dn(),Qy=Wy(),x_=Jy()(),Zy=kf(),Xy=Ci(),b_=y_("%Math.floor%");Ky.exports=function(t,r){if(typeof t!="function")throw new Xy("`fn` is not a function");if(typeof r!="number"||r<0||r>4294967295||b_(r)!==r)throw new Xy("`length` must be a positive 32-bit integer");var n=arguments.length>2&&!!arguments[2],i=!0,o=!0;if("length"in t&&Zy){var s=Zy(t,"length");s&&!s.configurable&&(i=!1),s&&!s.writable&&(o=!1)}return(i||o||!n)&&(x_?Qy(t,"length",r,!0,!0):Qy(t,"length",r)),t}});var sx=N((FH,ol)=>{"use strict";var Cf=Ka(),sl=Dn(),w_=ex(),v_=Ci(),nx=sl("%Function.prototype.apply%"),ix=sl("%Function.prototype.call%"),ox=sl("%Reflect.apply%",!0)||Cf.call(ix,nx),tx=nl(),S_=sl("%Math.max%");ol.exports=function(t){if(typeof t!="function")throw new v_("a function is required");var r=ox(Cf,ix,arguments);return w_(r,1+S_(0,t.length-(arguments.length-1)),!0)};var rx=function(){return ox(Cf,nx,arguments)};tx?tx(ol.exports,"apply",{value:rx}):ol.exports.apply=rx});var cx=N((RH,ux)=>{"use strict";var ax=Dn(),lx=sx(),k_=lx(ax("String.prototype.indexOf"));ux.exports=function(t,r){var n=ax(t,!!r);return typeof n=="function"&&k_(t,".prototype.")>-1?lx(n):n}});var fx=N(()=>{});var Dx=N(($H,Ox)=>{var Ff=typeof Map=="function"&&Map.prototype,Tf=Object.getOwnPropertyDescriptor&&Ff?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,ll=Ff&&Tf&&typeof Tf.get=="function"?Tf.get:null,px=Ff&&Map.prototype.forEach,Rf=typeof Set=="function"&&Set.prototype,Ef=Object.getOwnPropertyDescriptor&&Rf?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,ul=Rf&&Ef&&typeof Ef.get=="function"?Ef.get:null,hx=Rf&&Set.prototype.forEach,A_=typeof WeakMap=="function"&&WeakMap.prototype,is=A_?WeakMap.prototype.has:null,C_=typeof WeakSet=="function"&&WeakSet.prototype,os=C_?WeakSet.prototype.has:null,T_=typeof WeakRef=="function"&&WeakRef.prototype,mx=T_?WeakRef.prototype.deref:null,E_=Boolean.prototype.valueOf,__=Object.prototype.toString,I_=Function.prototype.toString,P_=String.prototype.match,Lf=String.prototype.slice,zr=String.prototype.replace,O_=String.prototype.toUpperCase,dx=String.prototype.toLowerCase,Ax=RegExp.prototype.test,gx=Array.prototype.concat,Vt=Array.prototype.join,D_=Array.prototype.slice,yx=Math.floor,Pf=typeof BigInt=="function"?BigInt.prototype.valueOf:null,_f=Object.getOwnPropertySymbols,Of=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,Oi=typeof Symbol=="function"&&typeof Symbol.iterator=="object",it=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===Oi||!0)?Symbol.toStringTag:null,Cx=Object.prototype.propertyIsEnumerable,xx=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function bx(e,t){if(e===1/0||e===-1/0||e!==e||e&&e>-1e3&&e<1e3||Ax.call(/e/,t))return t;var r=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof e=="number"){var n=e<0?-yx(-e):yx(e);if(n!==e){var i=String(n),o=Lf.call(t,i.length+1);return zr.call(i,r,"$&_")+"."+zr.call(zr.call(o,/([0-9]{3})/g,"$&_"),/_$/,"")}}return zr.call(t,r,"$&_")}var Df=fx(),wx=Df.custom,vx=_x(wx)?wx:null,Tx={__proto__:null,double:'"',single:"'"},M_={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};Ox.exports=function e(t,r,n,i){var o=r||{};if(yr(o,"quoteStyle")&&!yr(Tx,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 Px(t,o);if(typeof t=="number"){if(t===0)return 1/0/t>0?"0":"-0";var l=String(t);return a?bx(t,l):l}if(typeof t=="bigint"){var u=String(t)+"n";return a?bx(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 Mf(t)?"[Array]":"[Object]";var f=Z_(o,n);if(typeof i>"u")i=[];else if(Ix(i,t)>=0)return"[Circular]";function p(_,I,D){if(I&&(i=D_.call(i),i.push(I)),D){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"&&!Sx(t)){var h=z_(t),m=al(t,p);return"[Function"+(h?": "+h:" (anonymous)")+"]"+(m.length>0?" { "+Vt.call(m,", ")+" }":"")}if(_x(t)){var x=Oi?zr.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):Of.call(t);return typeof t=="object"&&!Oi?ns(x):x}if(G_(t)){for(var v="<"+dx.call(String(t.nodeName)),w=t.attributes||[],E=0;E<w.length;E++)v+=" "+w[E].name+"="+Ex(N_(w[E].value),"double",o);return v+=">",t.childNodes&&t.childNodes.length&&(v+="..."),v+="</"+dx.call(String(t.nodeName))+">",v}if(Mf(t)){if(t.length===0)return"[]";var b=al(t,p);return f&&!Q_(b)?"["+Nf(b,f)+"]":"[ "+Vt.call(b,", ")+" ]"}if(R_(t)){var z=al(t,p);return!("cause"in Error.prototype)&&"cause"in t&&!Cx.call(t,"cause")?"{ ["+String(t)+"] "+Vt.call(gx.call("[cause]: "+p(t.cause),z),", ")+" }":z.length===0?"["+String(t)+"]":"{ ["+String(t)+"] "+Vt.call(z,", ")+" }"}if(typeof t=="object"&&s){if(vx&&typeof t[vx]=="function"&&Df)return Df(t,{depth:c-n});if(s!=="symbol"&&typeof t.inspect=="function")return t.inspect()}if(q_(t)){var q=[];return px&&px.call(t,function(_,I){q.push(p(I,t,!0)+" => "+p(_,t))}),kx("Map",ll.call(t),q,f)}if(W_(t)){var A=[];return hx&&hx.call(t,function(_){A.push(p(_,t))}),kx("Set",ul.call(t),A,f)}if(H_(t))return If("WeakMap");if(Y_(t))return If("WeakSet");if(V_(t))return If("WeakRef");if(B_(t))return ns(p(Number(t)));if(U_(t))return ns(p(Pf.call(t)));if($_(t))return ns(E_.call(t));if(L_(t))return ns(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(!F_(t)&&!Sx(t)){var R=al(t,p),V=xx?xx(t)===Object.prototype:t instanceof Object||t.constructor===Object,$=t instanceof Object?"":"null prototype",C=!V&&it&&Object(t)===t&&it in t?Lf.call(qr(t),8,-1):$?"Object":"",pe=V||typeof t.constructor!="function"?"":t.constructor.name?t.constructor.name+" ":"",B=pe+(C||$?"["+Vt.call(gx.call([],C||[],$||[]),": ")+"] ":"");return R.length===0?B+"{}":f?B+"{"+Nf(R,f)+"}":B+"{ "+Vt.call(R,", ")+" }"}return String(t)};function Ex(e,t,r){var n=r.quoteStyle||t,i=Tx[n];return i+e+i}function N_(e){return zr.call(String(e),/"/g,"&quot;")}function Mf(e){return qr(e)==="[object Array]"&&(!it||!(typeof e=="object"&&it in e))}function F_(e){return qr(e)==="[object Date]"&&(!it||!(typeof e=="object"&&it in e))}function Sx(e){return qr(e)==="[object RegExp]"&&(!it||!(typeof e=="object"&&it in e))}function R_(e){return qr(e)==="[object Error]"&&(!it||!(typeof e=="object"&&it in e))}function L_(e){return qr(e)==="[object String]"&&(!it||!(typeof e=="object"&&it in e))}function B_(e){return qr(e)==="[object Number]"&&(!it||!(typeof e=="object"&&it in e))}function $_(e){return qr(e)==="[object Boolean]"&&(!it||!(typeof e=="object"&&it in e))}function _x(e){if(Oi)return e&&typeof e=="object"&&e instanceof Symbol;if(typeof e=="symbol")return!0;if(!e||typeof e!="object"||!Of)return!1;try{return Of.call(e),!0}catch{}return!1}function U_(e){if(!e||typeof e!="object"||!Pf)return!1;try{return Pf.call(e),!0}catch{}return!1}var j_=Object.prototype.hasOwnProperty||function(e){return e in this};function yr(e,t){return j_.call(e,t)}function qr(e){return __.call(e)}function z_(e){if(e.name)return e.name;var t=P_.call(I_.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}function Ix(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 q_(e){if(!ll||!e||typeof e!="object")return!1;try{ll.call(e);try{ul.call(e)}catch{return!0}return e instanceof Map}catch{}return!1}function H_(e){if(!is||!e||typeof e!="object")return!1;try{is.call(e,is);try{os.call(e,os)}catch{return!0}return e instanceof WeakMap}catch{}return!1}function V_(e){if(!mx||!e||typeof e!="object")return!1;try{return mx.call(e),!0}catch{}return!1}function W_(e){if(!ul||!e||typeof e!="object")return!1;try{ul.call(e);try{ll.call(e)}catch{return!0}return e instanceof Set}catch{}return!1}function Y_(e){if(!os||!e||typeof e!="object")return!1;try{os.call(e,os);try{is.call(e,is)}catch{return!0}return e instanceof WeakSet}catch{}return!1}function G_(e){return!e||typeof e!="object"?!1:typeof HTMLElement<"u"&&e instanceof HTMLElement?!0:typeof e.nodeName=="string"&&typeof e.getAttribute=="function"}function Px(e,t){if(e.length>t.maxStringLength){var r=e.length-t.maxStringLength,n="... "+r+" more character"+(r>1?"s":"");return Px(Lf.call(e,0,t.maxStringLength),t)+n}var i=M_[t.quoteStyle||"single"];i.lastIndex=0;var o=zr.call(zr.call(e,i,"\\$1"),/[\x00-\x1f]/g,J_);return Ex(o,"single",t)}function J_(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":"")+O_.call(t.toString(16))}function ns(e){return"Object("+e+")"}function If(e){return e+" { ? }"}function kx(e,t,r,n){var i=n?Nf(r,n):Vt.call(r,", ");return e+" ("+t+") {"+i+"}"}function Q_(e){for(var t=0;t<e.length;t++)if(Ix(e[t],`
1
+ var rT=Object.create;var ca=Object.defineProperty;var zd=Object.getOwnPropertyDescriptor;var nT=Object.getOwnPropertyNames;var iT=Object.getPrototypeOf,oT=Object.prototype.hasOwnProperty;var fa=(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),ae=(e,t)=>{for(var r in t)ca(e,r,{get:t[r],enumerable:!0})},sT=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of nT(t))!oT.call(e,i)&&i!==r&&ca(e,i,{get:()=>t[i],enumerable:!(n=zd(t,i))||n.enumerable});return e};var Ue=(e,t,r)=>(r=e!=null?rT(iT(e)):{},sT(t||!e||!e.__esModule?ca(r,"default",{value:e,enumerable:!0}):r,e));var X=(e,t,r,n)=>{for(var i=n>1?void 0:n?zd(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&&ca(t,r,i),i};var Aa=N(ka=>{"use strict";Object.defineProperty(ka,"__esModule",{value:!0});ka.uni=void 0;var xT=(e="uni")=>`${e}_${"xxxxxxxxxxxxxxxxxxxxxxxx".replace(/[xy]/g,t=>{let r=Math.random()*16|0;return(t==="x"?r:r&3|8).toString(16)})}`;ka.uni=xT});var jg=N((Gc,Jc)=>{(function(e,t){typeof Gc=="object"&&typeof Jc<"u"?Jc.exports=t():typeof define=="function"&&define.amd?define(t):(e=typeof globalThis<"u"?globalThis:e||self).dayjs=t()})(Gc,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 D=String(B);return!D||D.length>=_?B:""+Array(_+1-D.length).join(I)+B},E={s:w,z:function(B){var _=-B.utcOffset(),I=Math.abs(_),D=Math.floor(I/60),F=I%60;return(_<=0?"+":"-")+w(D,2,"0")+":"+w(F,2,"0")},m:function B(_,I){if(_.date()<I.date())return-B(I,_);var D=12*(I.year()-_.year())+(I.month()-_.month()),F=_.clone().add(D,u),W=I-F<0,M=_.clone().add(D+(W?-1:1),u);return+(-(D+(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 C||!(!B||!B[q])},R=function B(_,I,D){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!D&&F&&(b=F),F||!D&&b},V=function(B,_){if(A(B))return B.clone();var I=typeof _=="object"?_:{};return I.date=B,I.args=arguments,new C(I)},$=E;$.l=R,$.i=A,$.w=function(B,_){return V(B,{locale:_.$L,utc:_.$u,x:_.$x,$offset:_.$offset})};var C=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(D){var F=D.date,W=D.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,D){var F=V(I);return this.startOf(D)<=F&&F<=this.endOf(D)},_.isAfter=function(I,D){return V(I)<this.startOf(D)},_.isBefore=function(I,D){return this.endOf(D)<V(I)},_.$g=function(I,D,F){return $.u(I)?this[D]:this.set(F,I)},_.unix=function(){return Math.floor(this.valueOf()/1e3)},_.valueOf=function(){return this.$d.getTime()},_.startOf=function(I,D){var F=this,W=!!$.u(D)||D,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,K=this.$M,y=this.$D,se="set"+(this.$u?"UTC":"");switch(M){case f:return W?U(1,0):U(31,11);case u:return W?U(1,K):U(0,K+1);case l:var de=this.$locale().weekStart||0,Ie=(G<de?G+7:G)-de;return U(W?y-Ie:y+(6-Ie),K);case a:case p:return d(se+"Hours",0);case s:return d(se+"Minutes",1);case o:return d(se+"Seconds",2);case i:return d(se+"Milliseconds",3);default:return this.clone()}},_.endOf=function(I){return this.startOf(I,!1)},_.$set=function(I,D){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+(D-this.$W):D;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,D){return this.clone().$set(I,D)},_.get=function(I){return this[$.p(I)]()},_.add=function(I,D){var F,W=this;I=Number(I);var M=$.p(D),U=function(K){var y=V(W);return $.w(y.date(y.date()+Math.round(K*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,D){return this.add(-1*I,D)},_.format=function(I){var D=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,K=F.weekdays,y=F.months,se=F.meridiem,de=function(g,S,T,O){return g&&(g[S]||g(D,W))||T[S].slice(0,O)},Ie=function(g){return $.s(U%12||12,g,"0")},k=se||function(g,S,T){var O=g<12?"AM":"PM";return T?O.toLowerCase():O};return W.replace(x,function(g,S){return S||function(T){switch(T){case"YY":return String(D.$y).slice(-2);case"YYYY":return $.s(D.$y,4,"0");case"M":return G+1;case"MM":return $.s(G+1,2,"0");case"MMM":return de(F.monthsShort,G,y,3);case"MMMM":return de(y,G);case"D":return D.$D;case"DD":return $.s(D.$D,2,"0");case"d":return String(D.$W);case"dd":return de(F.weekdaysMin,D.$W,K,2);case"ddd":return de(F.weekdaysShort,D.$W,K,3);case"dddd":return K[D.$W];case"H":return String(U);case"HH":return $.s(U,2,"0");case"h":return Ie(1);case"hh":return Ie(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(D.$s);case"ss":return $.s(D.$s,2,"0");case"SSS":return $.s(D.$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,D,F){var W,M=this,U=$.p(D),d=V(I),G=(d.utcOffset()-this.utcOffset())*t,K=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=(K-G)/6048e5;break;case a:W=(K-G)/864e5;break;case s:W=K/r;break;case o:W=K/t;break;case i:W=K/e;break;default:W=K}return F?W:$.a(W)},_.daysInMonth=function(){return this.endOf(u).$D},_.$locale=function(){return z[this.$L]},_.locale=function(I,D){if(!I)return this.$L;var F=this.clone(),W=R(I,D,!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}(),pe=C.prototype;return V.prototype=pe,[["$ms",n],["$s",i],["$m",o],["$H",s],["$W",a],["$M",u],["$y",f],["$D",p]].forEach(function(B){pe[B[1]]=function(_){return this.$g(_,B[0],B[1])}}),V.extend=function(B,_){return B.$i||(B(_,C,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 zg=N((Qc,Zc)=>{(function(e,t){typeof Qc=="object"&&typeof Zc<"u"?Zc.exports=t():typeof define=="function"&&define.amd?define(t):(e=typeof globalThis<"u"?globalThis:e||self).dayjs_plugin_isToday=t()})(Qc,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 Vg=N((d5,Hg)=>{"use strict";Hg.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 Yg=N((g5,Wg)=>{"use strict";Wg.exports=Object.freeze({DISCONNECTED:1,PRECEDING:2,FOLLOWING:4,CONTAINS:8,CONTAINED_BY:16})});var Xg=N((y5,Zg)=>{"use strict";var Gg=Symbol(),Jg=Symbol(),Br=Symbol(),Qg=Symbol(),Ut=class{constructor(t,r,n,i){this[Gg]=t,this[Jg]=r,this[Br]=n,this[Qg]=i}next(){let t=this[Gg],r=this[Qg],n=this[Jg];if(!this[Br])return{done:!0,value:n};let i=this[Br];return r===1?this[Br]=t._node(i).previousSibling:r===2?this[Br]=t._node(i).nextSibling:r===3?this[Br]=t._node(i).parent:r===4?this[Br]=t.preceding(i,{root:n}):this[Br]=t.following(i,{root:n}),{done:!1,value:i}}};Object.defineProperty(Ut.prototype,Symbol.iterator,{value:function(){return this},writable:!1});Ut.PREV=1;Ut.NEXT=2;Ut.PARENT=3;Ut.PRECEDING=4;Ut.FOLLOWING=5;Object.freeze(Ut);Object.freeze(Ut.prototype);Zg.exports=Ut});var lf=N((x5,Kg)=>{"use strict";var cE=Vg(),$r=Yg(),Tt=Xg();function af(){return!0}function Si(e,t){return e[e.length-1-t]}var Za=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 cE)}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||af,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||af,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||af,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 Tt(this,t,n?i.lastChild:i.firstChild,n?Tt.PREV:Tt.NEXT)}previousSiblingsIterator(t){return new Tt(this,t,this._node(t).previousSibling,Tt.PREV)}nextSiblingsIterator(t){return new Tt(this,t,this._node(t).nextSibling,Tt.NEXT)}ancestorsIterator(t){return new Tt(this,t,t,Tt.PARENT)}treeIterator(t,r){let n=r&&r.reverse;return new Tt(this,t,n?this.lastInclusiveDescendant(t):t,n?Tt.PRECEDING:Tt.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 $r.CONTAINS|$r.PRECEDING;n.push(c),c=this.parent(c)}}let i=[];{let c=r;for(;c;){if(c===t)return $r.CONTAINED_BY|$r.FOLLOWING;i.push(c),c=this.parent(c)}}let o=Si(n,0);if(!o||o!==Si(i,0))return $r.DISCONNECTED;let s=0,a=Math.min(n.length,i.length);for(let c=0;c<a;++c){let f=Si(n,c),p=Si(i,c);if(f!==p)break;s=c}let l=this.index(Si(n,s+1));return this.index(Si(i,s+1))<l?$r.PRECEDING:$r.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}};Kg.exports=Za;Za.TreePosition=$r});var cy=N((ki,Ai)=>{(function(e){var t=typeof ki=="object"&&ki&&!ki.nodeType&&ki,r=typeof Ai=="object"&&Ai&&!Ai.nodeType&&Ai,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 K=M.split("."),y=R(K,U).join(".");return G+y}function $(M){for(var U=[],d=0,G=M.length,K,y;d<G;)K=M.charCodeAt(d++),K>=55296&&K<=56319&&d<G?(y=M.charCodeAt(d++),(y&64512)==56320?U.push(((K&1023)<<10)+(y&1023)+65536):(U.push(K),d--)):U.push(K);return U}function C(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 pe(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,K=0,y=p,se=f,de,Ie,k,g,S,T,O,Y,ye;for(de=M.lastIndexOf(h),de<0&&(de=0),Ie=0;Ie<de;++Ie)M.charCodeAt(Ie)>=128&&A("not-basic"),U.push(M.charCodeAt(Ie));for(k=de>0?de+1:0;k<d;){for(g=K,S=1,T=s;k>=d&&A("invalid-input"),O=pe(M.charCodeAt(k++)),(O>=s||O>b((o-K)/S))&&A("overflow"),K+=O*S,Y=T<=se?a:T>=se+l?l:T-se,!(O<Y);T+=s)ye=s-Y,S>b(o/ye)&&A("overflow"),S*=ye;G=U.length+1,se=_(K-g,G,g==0),b(K/G)>o-y&&A("overflow"),y+=b(K/G),K%=G,U.splice(K++,0,y)}return C(U)}function D(M){var U,d,G,K,y,se,de,Ie,k,g,S,T=[],O,Y,ye,we;for(M=$(M),O=M.length,U=p,d=0,y=f,se=0;se<O;++se)S=M[se],S<128&&T.push(z(S));for(G=K=T.length,K&&T.push(h);G<O;){for(de=o,se=0;se<O;++se)S=M[se],S>=U&&S<de&&(de=S);for(Y=G+1,de-U>b((o-d)/Y)&&A("overflow"),d+=(de-U)*Y,U=de,se=0;se<O;++se)if(S=M[se],S<U&&++d>o&&A("overflow"),S==U){for(Ie=d,k=s;g=k<=y?a:k>=y+l?l:k-y,!(Ie<g);k+=s)we=Ie-g,ye=s-g,T.push(z(B(g+we%ye,0))),Ie=b(we/ye);T.push(z(B(Ie,0))),y=_(d,Y,G==K),d=0,++G}++d,++U}return T.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--"+D(U):U})}if(i={version:"1.4.1",ucs2:{decode:$,encode:C},decode:I,encode:D,toASCII:W,toUnicode:F},typeof define=="function"&&typeof define.amd=="object"&&define.amd)define("punycode",function(){return i});else if(t&&r)if(Ai.exports==t)r.exports=i;else for(q in i)i.hasOwnProperty(q)&&(t[q]=i[q]);else e.punycode=i})(ki)});var py=N((gH,fy)=>{"use strict";fy.exports=Error});var my=N((yH,hy)=>{"use strict";hy.exports=EvalError});var gy=N((xH,dy)=>{"use strict";dy.exports=RangeError});var xy=N((bH,yy)=>{"use strict";yy.exports=ReferenceError});var bf=N((wH,by)=>{"use strict";by.exports=SyntaxError});var Ci=N((vH,wy)=>{"use strict";wy.exports=TypeError});var Sy=N((SH,vy)=>{"use strict";vy.exports=URIError});var Ay=N((kH,ky)=>{"use strict";ky.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 Ey=N((AH,Ty)=>{"use strict";var Cy=typeof Symbol<"u"&&Symbol,UE=Ay();Ty.exports=function(){return typeof Cy!="function"||typeof Symbol!="function"||typeof Cy("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:UE()}});var Iy=N((CH,_y)=>{"use strict";var wf={__proto__:null,foo:{}},jE=Object;_y.exports=function(){return{__proto__:wf}.foo===wf.foo&&!(wf instanceof jE)}});var Dy=N((TH,Oy)=>{"use strict";var zE="Function.prototype.bind called on incompatible ",qE=Object.prototype.toString,HE=Math.max,VE="[object Function]",Py=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},WE=function(t,r){for(var n=[],i=r||0,o=0;i<t.length;i+=1,o+=1)n[o]=t[i];return n},YE=function(e,t){for(var r="",n=0;n<e.length;n+=1)r+=e[n],n+1<e.length&&(r+=t);return r};Oy.exports=function(t){var r=this;if(typeof r!="function"||qE.apply(r)!==VE)throw new TypeError(zE+r);for(var n=WE(arguments,1),i,o=function(){if(this instanceof i){var c=r.apply(this,Py(n,arguments));return Object(c)===c?c:this}return r.apply(t,Py(n,arguments))},s=HE(0,r.length-n.length),a=[],l=0;l<s;l++)a[l]="$"+l;if(i=Function("binder","return function ("+YE(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 Ka=N((EH,My)=>{"use strict";var GE=Dy();My.exports=Function.prototype.bind||GE});var Fy=N((_H,Ny)=>{"use strict";var JE=Function.prototype.call,QE=Object.prototype.hasOwnProperty,ZE=Ka();Ny.exports=ZE.call(JE,QE)});var Dn=N((IH,Uy)=>{"use strict";var he,XE=py(),KE=my(),e_=gy(),t_=xy(),Ii=bf(),_i=Ci(),r_=Sy(),$y=Function,vf=function(e){try{return $y('"use strict"; return ('+e+").constructor;")()}catch{}},Pn=Object.getOwnPropertyDescriptor;if(Pn)try{Pn({},"")}catch{Pn=null}var Sf=function(){throw new _i},n_=Pn?function(){try{return arguments.callee,Sf}catch{try{return Pn(arguments,"callee").get}catch{return Sf}}}():Sf,Ti=Ey()(),i_=Iy()(),Ke=Object.getPrototypeOf||(i_?function(e){return e.__proto__}:null),Ei={},o_=typeof Uint8Array>"u"||!Ke?he:Ke(Uint8Array),On={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?he:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?he:ArrayBuffer,"%ArrayIteratorPrototype%":Ti&&Ke?Ke([][Symbol.iterator]()):he,"%AsyncFromSyncIteratorPrototype%":he,"%AsyncFunction%":Ei,"%AsyncGenerator%":Ei,"%AsyncGeneratorFunction%":Ei,"%AsyncIteratorPrototype%":Ei,"%Atomics%":typeof Atomics>"u"?he:Atomics,"%BigInt%":typeof BigInt>"u"?he:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?he:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?he:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?he:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":XE,"%eval%":eval,"%EvalError%":KE,"%Float32Array%":typeof Float32Array>"u"?he:Float32Array,"%Float64Array%":typeof Float64Array>"u"?he:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?he:FinalizationRegistry,"%Function%":$y,"%GeneratorFunction%":Ei,"%Int8Array%":typeof Int8Array>"u"?he:Int8Array,"%Int16Array%":typeof Int16Array>"u"?he:Int16Array,"%Int32Array%":typeof Int32Array>"u"?he:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":Ti&&Ke?Ke(Ke([][Symbol.iterator]())):he,"%JSON%":typeof JSON=="object"?JSON:he,"%Map%":typeof Map>"u"?he:Map,"%MapIteratorPrototype%":typeof Map>"u"||!Ti||!Ke?he:Ke(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?he:Promise,"%Proxy%":typeof Proxy>"u"?he:Proxy,"%RangeError%":e_,"%ReferenceError%":t_,"%Reflect%":typeof Reflect>"u"?he:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?he:Set,"%SetIteratorPrototype%":typeof Set>"u"||!Ti||!Ke?he:Ke(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?he:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":Ti&&Ke?Ke(""[Symbol.iterator]()):he,"%Symbol%":Ti?Symbol:he,"%SyntaxError%":Ii,"%ThrowTypeError%":n_,"%TypedArray%":o_,"%TypeError%":_i,"%Uint8Array%":typeof Uint8Array>"u"?he:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?he:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?he:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?he:Uint32Array,"%URIError%":r_,"%WeakMap%":typeof WeakMap>"u"?he:WeakMap,"%WeakRef%":typeof WeakRef>"u"?he:WeakRef,"%WeakSet%":typeof WeakSet>"u"?he:WeakSet};if(Ke)try{null.error}catch(e){Ry=Ke(Ke(e)),On["%Error.prototype%"]=Ry}var Ry,s_=function e(t){var r;if(t==="%AsyncFunction%")r=vf("async function () {}");else if(t==="%GeneratorFunction%")r=vf("function* () {}");else if(t==="%AsyncGeneratorFunction%")r=vf("async function* () {}");else if(t==="%AsyncGenerator%"){var n=e("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if(t==="%AsyncIteratorPrototype%"){var i=e("%AsyncGenerator%");i&&Ke&&(r=Ke(i.prototype))}return On[t]=r,r},Ly={__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"]},rs=Ka(),el=Fy(),a_=rs.call(Function.call,Array.prototype.concat),l_=rs.call(Function.apply,Array.prototype.splice),By=rs.call(Function.call,String.prototype.replace),tl=rs.call(Function.call,String.prototype.slice),u_=rs.call(Function.call,RegExp.prototype.exec),c_=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,f_=/\\(\\)?/g,p_=function(t){var r=tl(t,0,1),n=tl(t,-1);if(r==="%"&&n!=="%")throw new Ii("invalid intrinsic syntax, expected closing `%`");if(n==="%"&&r!=="%")throw new Ii("invalid intrinsic syntax, expected opening `%`");var i=[];return By(t,c_,function(o,s,a,l){i[i.length]=a?By(l,f_,"$1"):s||o}),i},h_=function(t,r){var n=t,i;if(el(Ly,n)&&(i=Ly[n],n="%"+i[0]+"%"),el(On,n)){var o=On[n];if(o===Ei&&(o=s_(n)),typeof o>"u"&&!r)throw new _i("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:i,name:n,value:o}}throw new Ii("intrinsic "+t+" does not exist!")};Uy.exports=function(t,r){if(typeof t!="string"||t.length===0)throw new _i("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof r!="boolean")throw new _i('"allowMissing" argument must be a boolean');if(u_(/^%?[^%]*%?$/,t)===null)throw new Ii("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=p_(t),i=n.length>0?n[0]:"",o=h_("%"+i+"%",r),s=o.name,a=o.value,l=!1,u=o.alias;u&&(i=u[0],l_(n,a_([0,1],u)));for(var c=1,f=!0;c<n.length;c+=1){var p=n[c],h=tl(p,0,1),m=tl(p,-1);if((h==='"'||h==="'"||h==="`"||m==='"'||m==="'"||m==="`")&&h!==m)throw new Ii("property names with quotes must have matching quotes");if((p==="constructor"||!f)&&(l=!0),i+="."+p,s="%"+i+"%",el(On,s))a=On[s];else if(a!=null){if(!(p in a)){if(!r)throw new _i("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=el(a,p),a=a[p];f&&!l&&(On[s]=a)}}return a}});var nl=N((PH,jy)=>{"use strict";var m_=Dn(),rl=m_("%Object.defineProperty%",!0)||!1;if(rl)try{rl({},"a",{value:1})}catch{rl=!1}jy.exports=rl});var kf=N((OH,zy)=>{"use strict";var d_=Dn(),il=d_("%Object.getOwnPropertyDescriptor%",!0);if(il)try{il([],"length")}catch{il=null}zy.exports=il});var Wy=N((DH,Vy)=>{"use strict";var qy=nl(),g_=bf(),Pi=Ci(),Hy=kf();Vy.exports=function(t,r,n){if(!t||typeof t!="object"&&typeof t!="function")throw new Pi("`obj` must be an object or a function`");if(typeof r!="string"&&typeof r!="symbol")throw new Pi("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new Pi("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new Pi("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new Pi("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new Pi("`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=!!Hy&&Hy(t,r);if(qy)qy(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 g_("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")}});var Jy=N((MH,Gy)=>{"use strict";var Af=nl(),Yy=function(){return!!Af};Yy.hasArrayLengthDefineBug=function(){if(!Af)return null;try{return Af([],"length",{value:1}).length!==1}catch{return!0}};Gy.exports=Yy});var ex=N((NH,Ky)=>{"use strict";var y_=Dn(),Qy=Wy(),x_=Jy()(),Zy=kf(),Xy=Ci(),b_=y_("%Math.floor%");Ky.exports=function(t,r){if(typeof t!="function")throw new Xy("`fn` is not a function");if(typeof r!="number"||r<0||r>4294967295||b_(r)!==r)throw new Xy("`length` must be a positive 32-bit integer");var n=arguments.length>2&&!!arguments[2],i=!0,o=!0;if("length"in t&&Zy){var s=Zy(t,"length");s&&!s.configurable&&(i=!1),s&&!s.writable&&(o=!1)}return(i||o||!n)&&(x_?Qy(t,"length",r,!0,!0):Qy(t,"length",r)),t}});var sx=N((FH,ol)=>{"use strict";var Cf=Ka(),sl=Dn(),w_=ex(),v_=Ci(),nx=sl("%Function.prototype.apply%"),ix=sl("%Function.prototype.call%"),ox=sl("%Reflect.apply%",!0)||Cf.call(ix,nx),tx=nl(),S_=sl("%Math.max%");ol.exports=function(t){if(typeof t!="function")throw new v_("a function is required");var r=ox(Cf,ix,arguments);return w_(r,1+S_(0,t.length-(arguments.length-1)),!0)};var rx=function(){return ox(Cf,nx,arguments)};tx?tx(ol.exports,"apply",{value:rx}):ol.exports.apply=rx});var cx=N((RH,ux)=>{"use strict";var ax=Dn(),lx=sx(),k_=lx(ax("String.prototype.indexOf"));ux.exports=function(t,r){var n=ax(t,!!r);return typeof n=="function"&&k_(t,".prototype.")>-1?lx(n):n}});var fx=N(()=>{});var Dx=N(($H,Ox)=>{var Ff=typeof Map=="function"&&Map.prototype,Tf=Object.getOwnPropertyDescriptor&&Ff?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,ll=Ff&&Tf&&typeof Tf.get=="function"?Tf.get:null,px=Ff&&Map.prototype.forEach,Rf=typeof Set=="function"&&Set.prototype,Ef=Object.getOwnPropertyDescriptor&&Rf?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,ul=Rf&&Ef&&typeof Ef.get=="function"?Ef.get:null,hx=Rf&&Set.prototype.forEach,A_=typeof WeakMap=="function"&&WeakMap.prototype,is=A_?WeakMap.prototype.has:null,C_=typeof WeakSet=="function"&&WeakSet.prototype,os=C_?WeakSet.prototype.has:null,T_=typeof WeakRef=="function"&&WeakRef.prototype,mx=T_?WeakRef.prototype.deref:null,E_=Boolean.prototype.valueOf,__=Object.prototype.toString,I_=Function.prototype.toString,P_=String.prototype.match,Lf=String.prototype.slice,zr=String.prototype.replace,O_=String.prototype.toUpperCase,dx=String.prototype.toLowerCase,Ax=RegExp.prototype.test,gx=Array.prototype.concat,Vt=Array.prototype.join,D_=Array.prototype.slice,yx=Math.floor,Pf=typeof BigInt=="function"?BigInt.prototype.valueOf:null,_f=Object.getOwnPropertySymbols,Of=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,Oi=typeof Symbol=="function"&&typeof Symbol.iterator=="object",it=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===Oi||!0)?Symbol.toStringTag:null,Cx=Object.prototype.propertyIsEnumerable,xx=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function bx(e,t){if(e===1/0||e===-1/0||e!==e||e&&e>-1e3&&e<1e3||Ax.call(/e/,t))return t;var r=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof e=="number"){var n=e<0?-yx(-e):yx(e);if(n!==e){var i=String(n),o=Lf.call(t,i.length+1);return zr.call(i,r,"$&_")+"."+zr.call(zr.call(o,/([0-9]{3})/g,"$&_"),/_$/,"")}}return zr.call(t,r,"$&_")}var Df=fx(),wx=Df.custom,vx=_x(wx)?wx:null,Tx={__proto__:null,double:'"',single:"'"},M_={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};Ox.exports=function e(t,r,n,i){var o=r||{};if(yr(o,"quoteStyle")&&!yr(Tx,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 Px(t,o);if(typeof t=="number"){if(t===0)return 1/0/t>0?"0":"-0";var l=String(t);return a?bx(t,l):l}if(typeof t=="bigint"){var u=String(t)+"n";return a?bx(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 Mf(t)?"[Array]":"[Object]";var f=Z_(o,n);if(typeof i>"u")i=[];else if(Ix(i,t)>=0)return"[Circular]";function p(_,I,D){if(I&&(i=D_.call(i),i.push(I)),D){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"&&!Sx(t)){var h=z_(t),m=al(t,p);return"[Function"+(h?": "+h:" (anonymous)")+"]"+(m.length>0?" { "+Vt.call(m,", ")+" }":"")}if(_x(t)){var x=Oi?zr.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):Of.call(t);return typeof t=="object"&&!Oi?ns(x):x}if(G_(t)){for(var v="<"+dx.call(String(t.nodeName)),w=t.attributes||[],E=0;E<w.length;E++)v+=" "+w[E].name+"="+Ex(N_(w[E].value),"double",o);return v+=">",t.childNodes&&t.childNodes.length&&(v+="..."),v+="</"+dx.call(String(t.nodeName))+">",v}if(Mf(t)){if(t.length===0)return"[]";var b=al(t,p);return f&&!Q_(b)?"["+Nf(b,f)+"]":"[ "+Vt.call(b,", ")+" ]"}if(R_(t)){var z=al(t,p);return!("cause"in Error.prototype)&&"cause"in t&&!Cx.call(t,"cause")?"{ ["+String(t)+"] "+Vt.call(gx.call("[cause]: "+p(t.cause),z),", ")+" }":z.length===0?"["+String(t)+"]":"{ ["+String(t)+"] "+Vt.call(z,", ")+" }"}if(typeof t=="object"&&s){if(vx&&typeof t[vx]=="function"&&Df)return Df(t,{depth:c-n});if(s!=="symbol"&&typeof t.inspect=="function")return t.inspect()}if(q_(t)){var q=[];return px&&px.call(t,function(_,I){q.push(p(I,t,!0)+" => "+p(_,t))}),kx("Map",ll.call(t),q,f)}if(W_(t)){var A=[];return hx&&hx.call(t,function(_){A.push(p(_,t))}),kx("Set",ul.call(t),A,f)}if(H_(t))return If("WeakMap");if(Y_(t))return If("WeakSet");if(V_(t))return If("WeakRef");if(B_(t))return ns(p(Number(t)));if(U_(t))return ns(p(Pf.call(t)));if($_(t))return ns(E_.call(t));if(L_(t))return ns(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(!F_(t)&&!Sx(t)){var R=al(t,p),V=xx?xx(t)===Object.prototype:t instanceof Object||t.constructor===Object,$=t instanceof Object?"":"null prototype",C=!V&&it&&Object(t)===t&&it in t?Lf.call(qr(t),8,-1):$?"Object":"",pe=V||typeof t.constructor!="function"?"":t.constructor.name?t.constructor.name+" ":"",B=pe+(C||$?"["+Vt.call(gx.call([],C||[],$||[]),": ")+"] ":"");return R.length===0?B+"{}":f?B+"{"+Nf(R,f)+"}":B+"{ "+Vt.call(R,", ")+" }"}return String(t)};function Ex(e,t,r){var n=r.quoteStyle||t,i=Tx[n];return i+e+i}function N_(e){return zr.call(String(e),/"/g,"&quot;")}function Mf(e){return qr(e)==="[object Array]"&&(!it||!(typeof e=="object"&&it in e))}function F_(e){return qr(e)==="[object Date]"&&(!it||!(typeof e=="object"&&it in e))}function Sx(e){return qr(e)==="[object RegExp]"&&(!it||!(typeof e=="object"&&it in e))}function R_(e){return qr(e)==="[object Error]"&&(!it||!(typeof e=="object"&&it in e))}function L_(e){return qr(e)==="[object String]"&&(!it||!(typeof e=="object"&&it in e))}function B_(e){return qr(e)==="[object Number]"&&(!it||!(typeof e=="object"&&it in e))}function $_(e){return qr(e)==="[object Boolean]"&&(!it||!(typeof e=="object"&&it in e))}function _x(e){if(Oi)return e&&typeof e=="object"&&e instanceof Symbol;if(typeof e=="symbol")return!0;if(!e||typeof e!="object"||!Of)return!1;try{return Of.call(e),!0}catch{}return!1}function U_(e){if(!e||typeof e!="object"||!Pf)return!1;try{return Pf.call(e),!0}catch{}return!1}var j_=Object.prototype.hasOwnProperty||function(e){return e in this};function yr(e,t){return j_.call(e,t)}function qr(e){return __.call(e)}function z_(e){if(e.name)return e.name;var t=P_.call(I_.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}function Ix(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 q_(e){if(!ll||!e||typeof e!="object")return!1;try{ll.call(e);try{ul.call(e)}catch{return!0}return e instanceof Map}catch{}return!1}function H_(e){if(!is||!e||typeof e!="object")return!1;try{is.call(e,is);try{os.call(e,os)}catch{return!0}return e instanceof WeakMap}catch{}return!1}function V_(e){if(!mx||!e||typeof e!="object")return!1;try{return mx.call(e),!0}catch{}return!1}function W_(e){if(!ul||!e||typeof e!="object")return!1;try{ul.call(e);try{ll.call(e)}catch{return!0}return e instanceof Set}catch{}return!1}function Y_(e){if(!os||!e||typeof e!="object")return!1;try{os.call(e,os);try{is.call(e,is)}catch{return!0}return e instanceof WeakSet}catch{}return!1}function G_(e){return!e||typeof e!="object"?!1:typeof HTMLElement<"u"&&e instanceof HTMLElement?!0:typeof e.nodeName=="string"&&typeof e.getAttribute=="function"}function Px(e,t){if(e.length>t.maxStringLength){var r=e.length-t.maxStringLength,n="... "+r+" more character"+(r>1?"s":"");return Px(Lf.call(e,0,t.maxStringLength),t)+n}var i=M_[t.quoteStyle||"single"];i.lastIndex=0;var o=zr.call(zr.call(e,i,"\\$1"),/[\x00-\x1f]/g,J_);return Ex(o,"single",t)}function J_(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":"")+O_.call(t.toString(16))}function ns(e){return"Object("+e+")"}function If(e){return e+" { ? }"}function kx(e,t,r,n){var i=n?Nf(r,n):Vt.call(r,", ");return e+" ("+t+") {"+i+"}"}function Q_(e){for(var t=0;t<e.length;t++)if(Ix(e[t],`
2
2
  `)>=0)return!1;return!0}function Z_(e,t){var r;if(e.indent===" ")r=" ";else if(typeof e.indent=="number"&&e.indent>0)r=Vt.call(Array(e.indent+1)," ");else return null;return{base:r,prev:Vt.call(Array(t+1),r)}}function Nf(e,t){if(e.length===0)return"";var r=`
3
3
  `+t.prev+t.base;return r+Vt.call(e,","+r)+`
4
4
  `+t.prev}function al(e,t){var r=Mf(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 _f=="function"?_f(e):[],s;if(Oi){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||Oi&&s["$"+l]instanceof Symbol||(Ax.call(/[^\w$]/,l)?n.push(t(l,e)+": "+t(e[l],e)):n.push(l+": "+t(e[l],e))));if(typeof _f=="function")for(var u=0;u<o.length;u++)Cx.call(e,o[u])&&n.push("["+t(o[u])+"]: "+t(e[o[u]],e));return n}});var Fx=N((UH,Nx)=>{"use strict";var Mx=Dn(),Di=cx(),X_=Dx(),K_=Ci(),cl=Mx("%WeakMap%",!0),fl=Mx("%Map%",!0),eI=Di("WeakMap.prototype.get",!0),tI=Di("WeakMap.prototype.set",!0),rI=Di("WeakMap.prototype.has",!0),nI=Di("Map.prototype.get",!0),iI=Di("Map.prototype.set",!0),oI=Di("Map.prototype.has",!0),Bf=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},sI=function(e,t){var r=Bf(e,t);return r&&r.value},aI=function(e,t,r){var n=Bf(e,t);n?n.value=r:e.next={key:t,next:e.next,value:r}},lI=function(e,t){return!!Bf(e,t)};Nx.exports=function(){var t,r,n,i={assert:function(o){if(!i.has(o))throw new K_("Side channel does not contain "+X_(o))},get:function(o){if(cl&&o&&(typeof o=="object"||typeof o=="function")){if(t)return eI(t,o)}else if(fl){if(r)return nI(r,o)}else if(n)return sI(n,o)},has:function(o){if(cl&&o&&(typeof o=="object"||typeof o=="function")){if(t)return rI(t,o)}else if(fl){if(r)return oI(r,o)}else if(n)return lI(n,o);return!1},set:function(o,s){cl&&o&&(typeof o=="object"||typeof o=="function")?(t||(t=new cl),tI(t,o,s)):fl?(r||(r=new fl),iI(r,o,s)):(n||(n={key:{},next:null}),aI(n,o,s))}};return i}});var pl=N((jH,Rx)=>{"use strict";var uI=String.prototype.replace,cI=/%20/g,$f={RFC1738:"RFC1738",RFC3986:"RFC3986"};Rx.exports={default:$f.RFC3986,formatters:{RFC1738:function(e){return uI.call(e,cI,"+")},RFC3986:function(e){return String(e)}},RFC1738:$f.RFC1738,RFC3986:$f.RFC3986}});var zf=N((zH,Bx)=>{"use strict";var fI=pl(),Uf=Object.prototype.hasOwnProperty,Mn=Array.isArray,Wt=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),pI=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}}},Lx=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},hI=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)||!Uf.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=Lx(t,n)),Mn(t)&&Mn(r)?(r.forEach(function(o,s){if(Uf.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 Uf.call(o,s)?o[s]=e(o[s],a,n):o[s]=a,o},i)},mI=function(t,r){return Object.keys(r).reduce(function(n,i){return n[i]=r[i],n},t)},dI=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}},jf=1024,gI=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+=jf){for(var u=s.length>=jf?s.slice(l,l+jf):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===fI.RFC1738&&(p===40||p===41)){c[c.length]=u.charAt(f);continue}if(p<128){c[c.length]=Wt[p];continue}if(p<2048){c[c.length]=Wt[192|p>>6]+Wt[128|p&63];continue}if(p<55296||p>=57344){c[c.length]=Wt[224|p>>12]+Wt[128|p>>6&63]+Wt[128|p&63];continue}f+=1,p=65536+((p&1023)<<10|u.charCodeAt(f)&1023),c[c.length]=Wt[240|p>>18]+Wt[128|p>>12&63]+Wt[128|p>>6&63]+Wt[128|p&63]}a+=c.join("")}return a},yI=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 pI(r),t},xI=function(t){return Object.prototype.toString.call(t)==="[object RegExp]"},bI=function(t){return!t||typeof t!="object"?!1:!!(t.constructor&&t.constructor.isBuffer&&t.constructor.isBuffer(t))},wI=function(t,r){return[].concat(t,r)},vI=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)};Bx.exports={arrayToObject:Lx,assign:mI,combine:wI,compact:yI,decode:dI,encode:gI,isBuffer:bI,isRegExp:xI,maybeMap:vI,merge:hI}});var Hx=N((qH,qx)=>{"use strict";var Ux=Fx(),hl=zf(),ss=pl(),SI=Object.prototype.hasOwnProperty,jx={brackets:function(t){return t+"[]"},comma:"comma",indices:function(t,r){return t+"["+r+"]"},repeat:function(t){return t}},Yt=Array.isArray,kI=Array.prototype.push,zx=function(e,t){kI.apply(e,Yt(t)?t:[t])},AI=Date.prototype.toISOString,$x=ss.default,Ge={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,commaRoundTrip:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:hl.encode,encodeValuesOnly:!1,filter:void 0,format:$x,formatter:ss.formatters[$x],indices:!1,serializeDate:function(t){return AI.call(t)},skipNulls:!1,strictNullHandling:!1},CI=function(t){return typeof t=="string"||typeof t=="number"||typeof t=="boolean"||typeof t=="symbol"||typeof t=="bigint"},qf={},TI=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(qf))!==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(qf)>"u"&&(q=0)}if(typeof c=="function"?b=c(r,b):b instanceof Date?b=h(b):n==="comma"&&Yt(b)&&(b=hl.maybeMap(b,function(d){return d instanceof Date?h(d):d})),b===null){if(s)return u&&!v?u(r,Ge.encoder,w,"key",m):r;b=""}if(CI(b)||hl.isBuffer(b)){if(u){var V=v?r:u(r,Ge.encoder,w,"key",m);return[x(V)+"="+x(u(b,Ge.encoder,w,"value",m))]}return[x(r)+"="+x(String(b))]}var $=[];if(typeof b>"u")return $;var C;if(n==="comma"&&Yt(b))v&&u&&(b=hl.maybeMap(b,u)),C=[{value:b.length>0?b.join(",")||null:void 0}];else if(Yt(c))C=c;else{var pe=Object.keys(b);C=f?pe.sort(f):pe}var B=l?String(r).replace(/\./g,"%2E"):String(r),_=i&&Yt(b)&&b.length===1?B+"[]":B;if(o&&Yt(b)&&b.length===0)return _+"[]";for(var I=0;I<C.length;++I){var D=C[I],F=typeof D=="object"&&D&&typeof D.value<"u"?D.value:b[D];if(!(a&&F===null)){var W=p&&l?String(D).replace(/\./g,"%2E"):String(D),M=Yt(b)?typeof n=="function"?n(_,W):_:_+(p?"."+W:"["+W+"]");E.set(t,q);var U=Ux();U.set(qf,E),zx($,e(F,M,n,i,o,s,a,l,n==="comma"&&v&&Yt(b)?null:u,c,f,p,h,m,x,v,w,U))}}return $},EI=function(t){if(!t)return Ge;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||Ge.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=ss.default;if(typeof t.format<"u"){if(!SI.call(ss.formatters,t.format))throw new TypeError("Unknown format option provided.");n=t.format}var i=ss.formatters[n],o=Ge.filter;(typeof t.filter=="function"||Yt(t.filter))&&(o=t.filter);var s;if(t.arrayFormat in jx?s=t.arrayFormat:"indices"in t?s=t.indices?"indices":"repeat":s=Ge.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:Ge.allowDots:!!t.allowDots;return{addQueryPrefix:typeof t.addQueryPrefix=="boolean"?t.addQueryPrefix:Ge.addQueryPrefix,allowDots:a,allowEmptyArrays:typeof t.allowEmptyArrays=="boolean"?!!t.allowEmptyArrays:Ge.allowEmptyArrays,arrayFormat:s,charset:r,charsetSentinel:typeof t.charsetSentinel=="boolean"?t.charsetSentinel:Ge.charsetSentinel,commaRoundTrip:!!t.commaRoundTrip,delimiter:typeof t.delimiter>"u"?Ge.delimiter:t.delimiter,encode:typeof t.encode=="boolean"?t.encode:Ge.encode,encodeDotInKeys:typeof t.encodeDotInKeys=="boolean"?t.encodeDotInKeys:Ge.encodeDotInKeys,encoder:typeof t.encoder=="function"?t.encoder:Ge.encoder,encodeValuesOnly:typeof t.encodeValuesOnly=="boolean"?t.encodeValuesOnly:Ge.encodeValuesOnly,filter:o,format:n,formatter:i,serializeDate:typeof t.serializeDate=="function"?t.serializeDate:Ge.serializeDate,skipNulls:typeof t.skipNulls=="boolean"?t.skipNulls:Ge.skipNulls,sort:typeof t.sort=="function"?t.sort:null,strictNullHandling:typeof t.strictNullHandling=="boolean"?t.strictNullHandling:Ge.strictNullHandling}};qx.exports=function(e,t){var r=e,n=EI(t),i,o;typeof n.filter=="function"?(o=n.filter,r=o("",r)):Yt(n.filter)&&(o=n.filter,i=o);var s=[];if(typeof r!="object"||r===null)return"";var a=jx[n.arrayFormat],l=a==="comma"&&n.commaRoundTrip;i||(i=Object.keys(r)),n.sort&&i.sort(n.sort);for(var u=Ux(),c=0;c<i.length;++c){var f=i[c],p=r[f];n.skipNulls&&p===null||zx(s,TI(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 Yx=N((HH,Wx)=>{"use strict";var Mi=zf(),Hf=Object.prototype.hasOwnProperty,_I=Array.isArray,Pe={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},II=function(e){return e.replace(/&#(\d+);/g,function(t,r){return String.fromCharCode(parseInt(r,10))})},Vx=function(e,t){return e&&typeof e=="string"&&t.comma&&e.indexOf(",")>-1?e.split(","):e},PI="utf8=%26%2310003%3B",OI="utf8=%E2%9C%93",DI=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]===OI?u="utf-8":s[l]===PI&&(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,Pe.decoder,u,"key"),m=r.strictNullHandling?null:""):(h=r.decoder(c.slice(0,p),Pe.decoder,u,"key"),m=Mi.maybeMap(Vx(c.slice(p+1),r),function(v){return r.decoder(v,Pe.decoder,u,"value")})),m&&r.interpretNumericEntities&&u==="iso-8859-1"&&(m=II(String(m))),c.indexOf("[]=")>-1&&(m=_I(m)?[m]:m);var x=Hf.call(n,h);x&&r.duplicates==="combine"?n[h]=Mi.combine(n[h],m):(!x||r.duplicates==="last")&&(n[h]=m)}return n},MI=function(e,t,r,n){for(var i=n?t:Vx(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},NI=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&&Hf.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&&Hf.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 MI(c,r,n,i)}},FI=function(t){if(!t)return Pe;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"?Pe.charset:t.charset,n=typeof t.duplicates>"u"?Pe.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:Pe.allowDots:!!t.allowDots;return{allowDots:i,allowEmptyArrays:typeof t.allowEmptyArrays=="boolean"?!!t.allowEmptyArrays:Pe.allowEmptyArrays,allowPrototypes:typeof t.allowPrototypes=="boolean"?t.allowPrototypes:Pe.allowPrototypes,allowSparse:typeof t.allowSparse=="boolean"?t.allowSparse:Pe.allowSparse,arrayLimit:typeof t.arrayLimit=="number"?t.arrayLimit:Pe.arrayLimit,charset:r,charsetSentinel:typeof t.charsetSentinel=="boolean"?t.charsetSentinel:Pe.charsetSentinel,comma:typeof t.comma=="boolean"?t.comma:Pe.comma,decodeDotInKeys:typeof t.decodeDotInKeys=="boolean"?t.decodeDotInKeys:Pe.decodeDotInKeys,decoder:typeof t.decoder=="function"?t.decoder:Pe.decoder,delimiter:typeof t.delimiter=="string"||Mi.isRegExp(t.delimiter)?t.delimiter:Pe.delimiter,depth:typeof t.depth=="number"||t.depth===!1?+t.depth:Pe.depth,duplicates:n,ignoreQueryPrefix:t.ignoreQueryPrefix===!0,interpretNumericEntities:typeof t.interpretNumericEntities=="boolean"?t.interpretNumericEntities:Pe.interpretNumericEntities,parameterLimit:typeof t.parameterLimit=="number"?t.parameterLimit:Pe.parameterLimit,parseArrays:t.parseArrays!==!1,plainObjects:typeof t.plainObjects=="boolean"?t.plainObjects:Pe.plainObjects,strictDepth:typeof t.strictDepth=="boolean"?!!t.strictDepth:Pe.strictDepth,strictNullHandling:typeof t.strictNullHandling=="boolean"?t.strictNullHandling:Pe.strictNullHandling}};Wx.exports=function(e,t){var r=FI(t);if(e===""||e===null||typeof e>"u")return r.plainObjects?{__proto__:null}:{};for(var n=typeof e=="string"?DI(e,r):e,i=r.plainObjects?{__proto__:null}:{},o=Object.keys(n),s=0;s<o.length;++s){var a=o[s],l=NI(a,n[a],r,typeof e=="string");i=Mi.merge(i,l,r)}return r.allowSparse===!0?i:Mi.compact(i)}});var Jx=N((VH,Gx)=>{"use strict";var RI=Hx(),LI=Yx(),BI=pl();Gx.exports={formats:BI,parse:LI,stringify:RI}});var Kx=N(Fi=>{"use strict";var $I=cy();function Et(){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 UI=/^([a-z0-9.+-]+:)/i,jI=/:[0-9]*$/,zI=/^(\/\/?(?!\/)[^?\s]*)(\?[^\s]*)?$/,qI=["<",">",'"',"`"," ","\r",`
@@ -31,7 +31,7 @@ var rT=Object.create;var ca=Object.defineProperty;var zd=Object.getOwnPropertyDe
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
33
  `+e.slice(s+1):l+=e.slice(i),l.slice(1)}function YF(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+=Ev((r-55296)*1024+n-56320+65536),o++;continue}i=ot[r],t+=!i&&Ki(r)?e[o]:i||Ev(r)}return t}function GF(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 JF(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+=Gp(e,t)),e.dump&&Ss===e.dump.charCodeAt(0)?i+="-":i+="- ",i+=e.dump);e.tag=o,e.dump=i||"[]"}function QF(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 ZF(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 As("sortKeys must be a boolean or a function");for(a=0,l=s.length;a<l;a+=1)p="",(!n||a!==0)&&(p+=Gp(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&&Ss===e.dump.charCodeAt(0)?p+="?":p+="? "),p+=e.dump,f&&(p+=Gp(e,t)),Hn(e,t+1,c,!0,f)&&(e.dump&&Ss===e.dump.charCodeAt(0)?p+=":":p+=": ",p+=e.dump,i+=p));e.tag=o,e.dump=i||"{}"}function Mv(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,Nv.call(a.represent)==="[object Function]")n=a.represent(t,l);else if(Fv.call(a.represent,l))n=a.represent[l](t,l);else throw new As("!<"+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,Mv(e,r,!1)||Mv(e,r,!0);var s=Nv.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?(ZF(e,t,e.dump,i),u&&(e.dump="&ref_"+l+e.dump)):(QF(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?(JF(e,c,e.dump,i),u&&(e.dump="&ref_"+l+e.dump)):(GF(e,c,e.dump),u&&(e.dump="&ref_"+l+" "+e.dump))}else if(s==="[object String]")e.tag!=="?"&&VF(e,e.dump,t,o);else{if(e.skipInvalid)return!1;throw new As("unacceptable kind of an object to dump "+s)}e.tag!==null&&e.tag!=="?"&&(e.dump="!<"+e.tag+"> "+e.dump)}return!0}function XF(e,t){var r=[],n=[],i,o;for(Jp(e,r,n),i=0,o=n.length;i<o;i+=1)t.duplicates.push(r[n[i]]);t.usedDuplicates=new Array(o)}function Jp(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)Jp(e[i],t,r);else for(n=Object.keys(e),i=0,o=n.length;i<o;i+=1)Jp(e[n[i]],t,r)}function Gv(e,t){t=t||{};var r=new UF(t);return r.noRefs||XF(e,r),Hn(r,0,e,!0,!0)?r.dump+`
34
- `:""}function KF(e,t){return Gv(e,ks.extend({schema:vF},t))}Zp.exports.dump=Gv;Zp.exports.safeDump=KF});var Zv=N((lW,De)=>{"use strict";var Vl=Tv(),Qv=Jv();function Wl(e){return function(){throw new Error("Function "+e+" is deprecated and cannot be used.")}}De.exports.Type=Je();De.exports.Schema=Un();De.exports.FAILSAFE_SCHEMA=Bl();De.exports.JSON_SCHEMA=zp();De.exports.CORE_SCHEMA=qp();De.exports.DEFAULT_SAFE_SCHEMA=Ji();De.exports.DEFAULT_FULL_SCHEMA=ws();De.exports.load=Vl.load;De.exports.loadAll=Vl.loadAll;De.exports.safeLoad=Vl.safeLoad;De.exports.safeLoadAll=Vl.safeLoadAll;De.exports.dump=Qv.dump;De.exports.safeDump=Qv.safeDump;De.exports.YAMLException=Yi();De.exports.MINIMAL_SCHEMA=Bl();De.exports.SAFE_SCHEMA=Ji();De.exports.DEFAULT_SCHEMA=ws();De.exports.scan=Wl("scan");De.exports.parse=Wl("parse");De.exports.compose=Wl("compose");De.exports.addConstructor=Wl("addConstructor")});var Kv=N((uW,Xv)=>{"use strict";var eR=Zv();Xv.exports=eR});var eS=N(Xt=>{"use strict";var tR=Xt&&Xt.__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]}),rR=Xt&&Xt.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),nR=Xt&&Xt.__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)&&tR(t,e,r);return rR(t,e),t};Object.defineProperty(Xt,"__esModule",{value:!0});Xt.jsYaml=void 0;var iR=nR(Kv());Xt.jsYaml=iR});var rS=N(It=>{"use strict";var oR=It&&It.__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=It&&It.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),aR=It&&It.__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(It,"__esModule",{value:!0});It.objectToYamlString=It.yamlStringToObject=void 0;var tS=aR(eS());It.yamlStringToObject=async(e,t={})=>tS.jsYaml.safeLoad(e);It.objectToYamlString=async(e,t={})=>tS.jsYaml.safeDump(e)});var fS=N((hW,cS)=>{"use strict";var Yl=Object.prototype.hasOwnProperty,uS=Object.prototype.toString,nS=Object.defineProperty,iS=Object.getOwnPropertyDescriptor,oS=function(t){return typeof Array.isArray=="function"?Array.isArray(t):uS.call(t)==="[object Array]"},sS=function(t){if(!t||uS.call(t)!=="[object Object]")return!1;var r=Yl.call(t,"constructor"),n=t.constructor&&t.constructor.prototype&&Yl.call(t.constructor.prototype,"isPrototypeOf");if(t.constructor&&!r&&!n)return!1;var i;for(i in t);return typeof i>"u"||Yl.call(t,i)},aS=function(t,r){nS&&r.name==="__proto__"?nS(t,r.name,{enumerable:!0,configurable:!0,value:r.newValue,writable:!0}):t[r.name]=r.newValue},lS=function(t,r){if(r==="__proto__")if(Yl.call(t,r)){if(iS)return iS(t,r).value}else return;return t[r]};cS.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=lS(a,r),i=lS(t,r),a!==i&&(c&&i&&(sS(i)||(o=oS(i)))?(o?(o=!1,s=n&&oS(n)?n:[]):s=n&&sS(n)?n:{},aS(a,{name:r,newValue:e(c,s,i)})):typeof i<"u"&&aS(a,{name:r,newValue:i}));return a}});var j1=N((xK,am)=>{(function(){var e;typeof am<"u"?e=am.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 kA=N(Ir=>{"use strict";Object.defineProperty(Ir,"__esModule",{value:!0});Ir.TokenData=void 0;Ir.parse=Gm;Ir.compile=P3;Ir.match=D3;Ir.pathToRegexp=SA;Ir.stringify=F3;var Vm="/",Wm=e=>e,wA=/^[$_\p{ID_Start}]$/u,Ym=/^[$\u200c\u200d\p{ID_Continue}]$/u,qu="https://git.new/pathToRegexpError",E3={"{":"{","}":"}","(":"(",")":")","[":"[","]":"]","+":"+","?":"?","!":"!"};function _3(e){return e.replace(/[{}()\[\]+?!:*]/g,"\\$&")}function rr(e){return e.replace(/[.+*?^${}()[\]|/\\]/g,"\\$&")}function*I3(e){let t=[...e],r=0;function n(){let i="";if(wA.test(t[++r]))for(i+=t[r];Ym.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}: ${qu}`)}if(!i)throw new TypeError(`Missing parameter name at ${r}: ${qu}`);return i}for(;r<t.length;){let i=t[r],o=E3[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 Hm=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}: ${qu}`)}text(){let t="",r;for(;r=this.tryConsume("CHAR")||this.tryConsume("ESCAPED");)t+=r;return t}},co=class{constructor(t){this.tokens=t}};Ir.TokenData=co;function Gm(e,t={}){let{encodePath:r=Wm}=t,n=new Hm(I3(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 co(o)}function P3(e,t={}){let{encode:r=encodeURIComponent,delimiter:n=Vm}=t,i=e instanceof co?e:Gm(e,t),o=vA(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 vA(e,t,r){let n=e.map(i=>O3(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 O3(e,t,r){if(e.type==="text")return()=>[e.value];if(e.type==="group"){let i=vA(e.tokens,t,r);return o=>{let[s,...a]=i(o);return a.length?[""]:[s]}}let n=r||Wm;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 D3(e,t={}){let{decode:r=decodeURIComponent,delimiter:n=Vm}=t,{regexp:i,keys:o}=SA(e,t),s=o.map(a=>r===!1?Wm: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 SA(e,t={}){let{delimiter:r=Vm,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 co?h:Gm(h,t));for(let{tokens:h}of c)for(let m of zu(h,0,[])){let x=M3(m,r,s);a.push(x)}let f=`^(?:${a.join("|")})`;return o&&(f+=`(?:${rr(r)}$)?`),f+=n?"$":`(?=${rr(r)}|$)`,{regexp:new RegExp(f,l),keys:s}}function*zu(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 zu(n.tokens,0,i))yield*zu(e,t+1,o)}else r.push(n);yield*zu(e,t+1,r)}function M3(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+=rr(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}": ${qu}`);a.type==="param"?n+=`(${N3(t,o?"":i)}+)`:n+="([\\s\\S]+)",r.push(a),i="",o=!1;continue}}return n}function N3(e,t){return t.length<2?e.length<2?`[^${rr(e+t)}]`:`(?:(?!${rr(e)})[^${rr(t)}])`:e.length<2?`(?:(?!${rr(t)})[^${rr(e)}])`:`(?:(?!${rr(t)}|${rr(e)})[\\s\\S])`}function F3(e){return e.tokens.map(function t(r,n,i){if(r.type==="text")return _3(r.value);if(r.type==="group")return`{${r.tokens.map(t).join("")}}`;let s=R3(r.name)&&L3(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 R3(e){let[t,...r]=e;return wA.test(t)?r.every(n=>Ym.test(n)):!1}function L3(e){return e?.type!=="text"?!0:!Ym.test(e.value[0])}});var CA=N(He=>{"use strict";Object.defineProperty(He,"__esModule",{value:!0});He.getFirstTrueOrFalse=He.timeoutAndContinue=He.timeoutWrap=He.map=He.rejectedPromise=He.resolvedPromise=He.defer=He.Deferred=void 0;var Vu=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}};He.Deferred=Vu;He.defer=()=>new Vu;He.resolvedPromise=e=>Promise.resolve(e);He.rejectedPromise=e=>Promise.reject(e);He.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};He.timeoutWrap=async(e,t,r=!0)=>new Promise((n,i)=>{setTimeout(()=>{r?i(new Error("timeout")):n(null)},t),e.then(n,i)});He.timeoutAndContinue=async(e,t=6e4)=>He.timeoutWrap(e,t,!1);He.getFirstTrueOrFalse=async e=>{let t=He.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 rd=N((ed,td)=>{(function(e,t){typeof ed=="object"&&typeof td<"u"?td.exports=t():typeof define=="function"&&define.amd?define(t):(e=e||self,e.SweetScroll=t())})(ed,function(){"use strict";var e=function(){return e=Object.assign||function(g){for(var S,T=1,O=arguments.length;T<O;T++){S=arguments[T];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,T,O){return T*(g/=O)*g+S},easeOutQuad:function(k,g,S,T,O){return-T*(g/=O)*(g-2)+S},easeInOutQuad:function(k,g,S,T,O){return(g/=O/2)<1?T/2*g*g+S:-T/2*(--g*(g-2)-1)+S},easeInCubic:function(k,g,S,T,O){return T*(g/=O)*g*g+S},easeOutCubic:function(k,g,S,T,O){return T*((g=g/O-1)*g*g+1)+S},easeInOutCubic:function(k,g,S,T,O){return(g/=O/2)<1?T/2*g*g*g+S:T/2*((g-=2)*g*g+2)+S},easeInQuart:function(k,g,S,T,O){return T*(g/=O)*g*g*g+S},easeOutQuart:function(k,g,S,T,O){return-T*((g=g/O-1)*g*g*g-1)+S},easeInOutQuart:function(k,g,S,T,O){return(g/=O/2)<1?T/2*g*g*g*g+S:-T/2*((g-=2)*g*g*g-2)+S},easeInQuint:function(k,g,S,T,O){return T*(g/=O)*g*g*g*g+S},easeOutQuint:function(k,g,S,T,O){return T*((g=g/O-1)*g*g*g*g+1)+S},easeInOutQuint:function(k,g,S,T,O){return(g/=O/2)<1?T/2*g*g*g*g*g+S:T/2*((g-=2)*g*g*g*g+2)+S},easeInSine:function(k,g,S,T,O){return-T*f(g/O*(x/2))+T+S},easeOutSine:function(k,g,S,T,O){return T*p(g/O*(x/2))+S},easeInOutSine:function(k,g,S,T,O){return-T/2*(f(x*g/O)-1)+S},easeInExpo:function(k,g,S,T,O){return g===0?S:T*h(2,10*(g/O-1))+S},easeOutExpo:function(k,g,S,T,O){return g===O?S+T:T*(-h(2,-10*g/O)+1)+S},easeInOutExpo:function(k,g,S,T,O){return g===0?S:g===O?S+T:(g/=O/2)<1?T/2*h(2,10*(g-1))+S:T/2*(-h(2,-10*--g)+2)+S},easeInCirc:function(k,g,S,T,O){return-T*(m(1-(g/=O)*g)-1)+S},easeOutCirc:function(k,g,S,T,O){return T*m(1-(g=g/O-1)*g)+S},easeInOutCirc:function(k,g,S,T,O){return(g/=O/2)<1?-T/2*(m(1-g*g)-1)+S:T/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),T=S.length;--T>=0&&S[T]!==k;);return T>-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)}},C=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)}},pe={y:"scrollTop",x:"scrollLeft"},B={y:"pageYOffset",x:"pageXOffset"},_=function(k,g){return z(k)?k[B[g]]:k[pe[g]]},I=function(k,g,S){if(z(k)){var T=S==="y";k.scrollTo(T?k.pageXOffset:g,T?g:k.pageYOffset)}else k[pe[S]]=g},D=function(k,g){var S=k.getBoundingClientRect();if(S.width||S.height){var T={top:0,left:0},O=void 0;if(z(g)||q(g))O=document.documentElement,T.top=window[B.y],T.left=window[B.x];else{O=g;var Y=O.getBoundingClientRect();T.top=Y.top*-1+O[pe.y],T.left=Y.left*-1+O[pe.x]}return{top:S.top+T.top-O.clientTop,left:S.left+T.left-O.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,T,O){S.split(" ").forEach(function(Y){k[g](W(Y),T,n?{passive:O}:!1)})},U=function(k,g,S,T){return M(k,"addEventListener",g,S,T)},d=function(k,g,S,T){return M(k,"removeEventListener",g,S,T)},G=/^(\+|-)=(\d+(?:\.\d+)?)$/,K=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 T=k.trim().match(G);if(!T)return null;var O=T[1],Y=parseInt(T[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},se="click",de="wheel touchstart touchmove",Ie=function(){function k(g,S){var T=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 ge=T,we=ge.$el,ve=ge.ctx;if(ve.start||(ve.start=Y),!ve.progress||!we){T.stop();return}var kt=ve.opts,rt=ve.pos,xt=ve.start,ur=ve.startPos,Nr=ve.easing,Ft=kt.duration,qt={top:"y",left:"x"},At=Y-xt,$e=Math.min(1,Math.max(At/Ft,0));Object.keys(rt).forEach(function(Fr){var P=rt[Fr],j=ur[Fr],te=P-j;if(te!==0){var ue=Nr($e,Ft*$e,0,1,Ft);I(we,Math.round(j+te*ue),qt[Fr])}}),At<=Ft?(T.hook(kt,"step",$e),ve.id=k.raf(T.loop)):T.stop(!0)},this.handleClick=function(Y){for(var ge=T.opts,we=Y.target;we&&we!==document;we=we.parentNode)if(A(we,ge.trigger)){var ve=JSON.parse(we.getAttribute("data-scroll-options")||"{}"),kt=we.getAttribute("data-scroll"),rt=kt||we.getAttribute("href"),xt=e({},ge,ve),ur=xt.preventDefault,Nr=xt.stopPropagation,Ft=xt.vertical,qt=xt.horizontal;ur&&Y.preventDefault(),Nr&&Y.stopPropagation(),T.ctx.$trigger=we,qt&&Ft?T.to(rt,xt):Ft?T.toTop(rt,xt):qt&&T.toLeft(rt,xt);break}},this.handleStop=function(Y){var ge=T.ctx,we=ge.opts;we&&we.cancellable?(ge.cancel=!0,T.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 T=this,O=T.$el,Y=T.ctx,ge=T.opts,we=Y.$trigger,ve=e({},ge,S||{}),kt=ve.offset,rt=ve.vertical,xt=ve.horizontal,ur=b(ve.header)?ve.header:E(ve.header),Nr=/^#/,Ft=i(g)&&Nr.test(g)?g:null;if(Y.opts=ve,Y.cancel=!1,Y.hash=Ft,this.stop(),!!O){var qt=K(kt,rt),At=K(g,rt),$e={top:0,left:0};if(At)if(At.relative){var Fr=_(O,rt?"y":"x");$e.top=rt?Fr+At.top:At.top,$e.left=rt?At.left:Fr+At.left}else $e=At;else if(i(g)&&g!=="#"){var P=E(g);if(!P)return;$e=D(P,O)}qt&&($e.top+=qt.top,$e.left+=qt.left),ur&&($e.top=Math.max(0,$e.top-$(ur).height));var j=C(O),te=j.viewport,ue=j.size;if($e.top=rt?Math.max(0,Math.min(ue.height-te.height,$e.top)):_(O,"y"),$e.left=xt?Math.max(0,Math.min(ue.width-te.width,$e.left)):_(O,"x"),this.hook(ve,"before",$e,we)===!1){Y.opts=null;return}Y.pos=$e,this.start(ve),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 T=this.$el;!t||!T||this.to(D(g,T),S||{})},k.prototype.stop=function(g){g===void 0&&(g=!1);var S=this,T=S.$el,O=S.ctx,Y=O.pos;!T||!O.progress||(k.caf(O.id),O.progress=!1,O.start=0,O.id=0,g&&Y&&(I(T,Y.left,"x"),I(T,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 T=this.$el,O={top:_(T,"y"),left:_(T,"x")};S.startPos=O,S.id=k.raf(this.loop)},k.prototype.complete=function(){var g=this,S=g.$el,T=g.ctx,O=T.hash,Y=T.cancel,ge=T.opts,we=T.pos,ve=T.$trigger;if(!(!S||!ge)){if(O!=null&&O!==window.location.hash){var kt=ge.updateURL;t&&r&&kt!==!1&&window.history[kt==="replace"?"replaceState":"pushState"](null,"",O)}this.unbind(!1,!0),T.opts=null,T.$trigger=null,Y?this.hook(ge,"cancel"):this.hook(ge,"after",we,ve),this.hook(ge,"complete",Y)}},k.prototype.hook=function(g,S){for(var T=[],O=2;O<arguments.length;O++)T[O-2]=arguments[O];var Y,ge=g[S],we,ve;return o(ge)&&(we=ge.apply(this,T.concat([this]))),ve=(Y=this)["on"+(S[0].toUpperCase()+S.slice(1))].apply(Y,T),we!==void 0?we:ve},k.prototype.bind=function(g,S){var T=this,O=T.$el,Y=T.ctx.opts;O&&(g&&U(O,se,this.handleClick,!1),S&&U(O,de,this.handleStop,Y?Y.cancellable:!0))},k.prototype.unbind=function(g,S){var T=this,O=T.$el,Y=T.ctx.opts;O&&(g&&d(O,se,this.handleClick,!1),S&&d(O,de,this.handleStop,Y?Y.cancellable:!0))},k.raf=u,k.caf=c,k}();return Ie})});var eC=N((lue,KA)=>{KA.exports=function(){return typeof Promise=="function"&&Promise.prototype&&Promise.prototype.then}});var on=N(li=>{var bd,_U=[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];li.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};li.getSymbolTotalCodewords=function(t){return _U[t]};li.getBCHDigit=function(e){let t=0;for(;e!==0;)t++,e>>>=1;return t};li.setToSJISFunction=function(t){if(typeof t!="function")throw new Error('"toSJISFunc" is not a valid function.');bd=t};li.isKanjiModeEnabled=function(){return typeof bd<"u"};li.toSJIS=function(t){return bd(t)}});var ac=N(Mt=>{Mt.L={bit:1};Mt.M={bit:0};Mt.Q={bit:3};Mt.H={bit:2};function IU(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 IU(t)}catch{return r}}});var nC=N((fue,rC)=>{function tC(){this.buffer=[],this.length=0}tC.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++}};rC.exports=tC});var oC=N((pue,iC)=>{function ra(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)}ra.prototype.set=function(e,t,r,n){let i=e*this.size+t;this.data[i]=r,n&&(this.reservedBit[i]=!0)};ra.prototype.get=function(e,t){return this.data[e*this.size+t]};ra.prototype.xor=function(e,t,r){this.data[e*this.size+t]^=r};ra.prototype.isReserved=function(e,t){return this.reservedBit[e*this.size+t]};iC.exports=ra});var sC=N(lc=>{var PU=on().getSymbolSize;lc.getRowColCoords=function(t){if(t===1)return[];let r=Math.floor(t/7)+2,n=PU(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()};lc.getPositions=function(t){let r=[],n=lc.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 uC=N(lC=>{var OU=on().getSymbolSize,aC=7;lC.getPositions=function(t){let r=OU(t);return[[0,0],[r-aC,0],[0,r-aC]]}});var cC=N(Te=>{Te.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};var ui={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+=ui.N1+(i-5)),s=c,i=1),c=t.get(u,l),c===a?o++:(o>=5&&(n+=ui.N1+(o-5)),a=c,o=1)}i>=5&&(n+=ui.N1+(i-5)),o>=5&&(n+=ui.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*ui.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*ui.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)*ui.N4};function DU(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,DU(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 sn=ac(),uc=[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],cc=[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 sn.L:return uc[(t-1)*4+0];case sn.M:return uc[(t-1)*4+1];case sn.Q:return uc[(t-1)*4+2];case sn.H:return uc[(t-1)*4+3];default:return}};wd.getTotalCodewordsCount=function(t,r){switch(r){case sn.L:return cc[(t-1)*4+0];case sn.M:return cc[(t-1)*4+1];case sn.Q:return cc[(t-1)*4+2];case sn.H:return cc[(t-1)*4+3];default:return}}});var fC=N(pc=>{var na=new Uint8Array(512),fc=new Uint8Array(256);(function(){let t=1;for(let r=0;r<255;r++)na[r]=t,fc[t]=r,t<<=1,t&256&&(t^=285);for(let r=255;r<512;r++)na[r]=na[r-255]})();pc.log=function(t){if(t<1)throw new Error("log("+t+")");return fc[t]};pc.exp=function(t){return na[t]};pc.mul=function(t,r){return t===0||r===0?0:na[fc[t]+fc[r]]}});var pC=N(ia=>{var Sd=fC();ia.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};ia.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};ia.generateECPolynomial=function(t){let r=new Uint8Array([1]);for(let n=0;n<t;n++)r=ia.mul(r,new Uint8Array([1,Sd.exp(n)]));return r}});var dC=N((bue,mC)=>{var hC=pC();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=hC.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=hC.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};mC.exports=kd});var Ad=N(gC=>{gC.isValid=function(t){return!isNaN(t)&&t>=1&&t<=40}});var Cd=N(Or=>{var yC="[0-9]+",MU="[A-Z $%*+\\-./:]+",oa="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";oa=oa.replace(/u/g,"\\u");var NU="(?:(?![A-Z0-9 $%*+\\-./:]|"+oa+`)(?:.|[\r
34
+ `:""}function KF(e,t){return Gv(e,ks.extend({schema:vF},t))}Zp.exports.dump=Gv;Zp.exports.safeDump=KF});var Zv=N((lW,De)=>{"use strict";var Vl=Tv(),Qv=Jv();function Wl(e){return function(){throw new Error("Function "+e+" is deprecated and cannot be used.")}}De.exports.Type=Je();De.exports.Schema=Un();De.exports.FAILSAFE_SCHEMA=Bl();De.exports.JSON_SCHEMA=zp();De.exports.CORE_SCHEMA=qp();De.exports.DEFAULT_SAFE_SCHEMA=Ji();De.exports.DEFAULT_FULL_SCHEMA=ws();De.exports.load=Vl.load;De.exports.loadAll=Vl.loadAll;De.exports.safeLoad=Vl.safeLoad;De.exports.safeLoadAll=Vl.safeLoadAll;De.exports.dump=Qv.dump;De.exports.safeDump=Qv.safeDump;De.exports.YAMLException=Yi();De.exports.MINIMAL_SCHEMA=Bl();De.exports.SAFE_SCHEMA=Ji();De.exports.DEFAULT_SCHEMA=ws();De.exports.scan=Wl("scan");De.exports.parse=Wl("parse");De.exports.compose=Wl("compose");De.exports.addConstructor=Wl("addConstructor")});var Kv=N((uW,Xv)=>{"use strict";var eR=Zv();Xv.exports=eR});var eS=N(Xt=>{"use strict";var tR=Xt&&Xt.__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]}),rR=Xt&&Xt.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),nR=Xt&&Xt.__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)&&tR(t,e,r);return rR(t,e),t};Object.defineProperty(Xt,"__esModule",{value:!0});Xt.jsYaml=void 0;var iR=nR(Kv());Xt.jsYaml=iR});var rS=N(It=>{"use strict";var oR=It&&It.__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=It&&It.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),aR=It&&It.__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(It,"__esModule",{value:!0});It.objectToYamlString=It.yamlStringToObject=void 0;var tS=aR(eS());It.yamlStringToObject=async(e,t={})=>tS.jsYaml.safeLoad(e);It.objectToYamlString=async(e,t={})=>tS.jsYaml.safeDump(e)});var fS=N((hW,cS)=>{"use strict";var Yl=Object.prototype.hasOwnProperty,uS=Object.prototype.toString,nS=Object.defineProperty,iS=Object.getOwnPropertyDescriptor,oS=function(t){return typeof Array.isArray=="function"?Array.isArray(t):uS.call(t)==="[object Array]"},sS=function(t){if(!t||uS.call(t)!=="[object Object]")return!1;var r=Yl.call(t,"constructor"),n=t.constructor&&t.constructor.prototype&&Yl.call(t.constructor.prototype,"isPrototypeOf");if(t.constructor&&!r&&!n)return!1;var i;for(i in t);return typeof i>"u"||Yl.call(t,i)},aS=function(t,r){nS&&r.name==="__proto__"?nS(t,r.name,{enumerable:!0,configurable:!0,value:r.newValue,writable:!0}):t[r.name]=r.newValue},lS=function(t,r){if(r==="__proto__")if(Yl.call(t,r)){if(iS)return iS(t,r).value}else return;return t[r]};cS.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=lS(a,r),i=lS(t,r),a!==i&&(c&&i&&(sS(i)||(o=oS(i)))?(o?(o=!1,s=n&&oS(n)?n:[]):s=n&&sS(n)?n:{},aS(a,{name:r,newValue:e(c,s,i)})):typeof i<"u"&&aS(a,{name:r,newValue:i}));return a}});var j1=N((xK,am)=>{(function(){var e;typeof am<"u"?e=am.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 kA=N(Ir=>{"use strict";Object.defineProperty(Ir,"__esModule",{value:!0});Ir.TokenData=void 0;Ir.parse=Gm;Ir.compile=P3;Ir.match=D3;Ir.pathToRegexp=SA;Ir.stringify=F3;var Vm="/",Wm=e=>e,wA=/^[$_\p{ID_Start}]$/u,Ym=/^[$\u200c\u200d\p{ID_Continue}]$/u,qu="https://git.new/pathToRegexpError",E3={"{":"{","}":"}","(":"(",")":")","[":"[","]":"]","+":"+","?":"?","!":"!"};function _3(e){return e.replace(/[{}()\[\]+?!:*]/g,"\\$&")}function rr(e){return e.replace(/[.+*?^${}()[\]|/\\]/g,"\\$&")}function*I3(e){let t=[...e],r=0;function n(){let i="";if(wA.test(t[++r]))for(i+=t[r];Ym.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}: ${qu}`)}if(!i)throw new TypeError(`Missing parameter name at ${r}: ${qu}`);return i}for(;r<t.length;){let i=t[r],o=E3[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 Hm=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}: ${qu}`)}text(){let t="",r;for(;r=this.tryConsume("CHAR")||this.tryConsume("ESCAPED");)t+=r;return t}},co=class{constructor(t){this.tokens=t}};Ir.TokenData=co;function Gm(e,t={}){let{encodePath:r=Wm}=t,n=new Hm(I3(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 co(o)}function P3(e,t={}){let{encode:r=encodeURIComponent,delimiter:n=Vm}=t,i=e instanceof co?e:Gm(e,t),o=vA(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 vA(e,t,r){let n=e.map(i=>O3(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 O3(e,t,r){if(e.type==="text")return()=>[e.value];if(e.type==="group"){let i=vA(e.tokens,t,r);return o=>{let[s,...a]=i(o);return a.length?[""]:[s]}}let n=r||Wm;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 D3(e,t={}){let{decode:r=decodeURIComponent,delimiter:n=Vm}=t,{regexp:i,keys:o}=SA(e,t),s=o.map(a=>r===!1?Wm: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 SA(e,t={}){let{delimiter:r=Vm,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 co?h:Gm(h,t));for(let{tokens:h}of c)for(let m of zu(h,0,[])){let x=M3(m,r,s);a.push(x)}let f=`^(?:${a.join("|")})`;return o&&(f+=`(?:${rr(r)}$)?`),f+=n?"$":`(?=${rr(r)}|$)`,{regexp:new RegExp(f,l),keys:s}}function*zu(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 zu(n.tokens,0,i))yield*zu(e,t+1,o)}else r.push(n);yield*zu(e,t+1,r)}function M3(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+=rr(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}": ${qu}`);a.type==="param"?n+=`(${N3(t,o?"":i)}+)`:n+="([\\s\\S]+)",r.push(a),i="",o=!1;continue}}return n}function N3(e,t){return t.length<2?e.length<2?`[^${rr(e+t)}]`:`(?:(?!${rr(e)})[^${rr(t)}])`:e.length<2?`(?:(?!${rr(t)})[^${rr(e)}])`:`(?:(?!${rr(t)}|${rr(e)})[\\s\\S])`}function F3(e){return e.tokens.map(function t(r,n,i){if(r.type==="text")return _3(r.value);if(r.type==="group")return`{${r.tokens.map(t).join("")}}`;let s=R3(r.name)&&L3(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 R3(e){let[t,...r]=e;return wA.test(t)?r.every(n=>Ym.test(n)):!1}function L3(e){return e?.type!=="text"?!0:!Ym.test(e.value[0])}});var CA=N(He=>{"use strict";Object.defineProperty(He,"__esModule",{value:!0});He.getFirstTrueOrFalse=He.timeoutAndContinue=He.timeoutWrap=He.map=He.rejectedPromise=He.resolvedPromise=He.defer=He.Deferred=void 0;var Vu=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}};He.Deferred=Vu;He.defer=()=>new Vu;He.resolvedPromise=e=>Promise.resolve(e);He.rejectedPromise=e=>Promise.reject(e);He.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};He.timeoutWrap=async(e,t,r=!0)=>new Promise((n,i)=>{setTimeout(()=>{r?i(new Error("timeout")):n(null)},t),e.then(n,i)});He.timeoutAndContinue=async(e,t=6e4)=>He.timeoutWrap(e,t,!1);He.getFirstTrueOrFalse=async e=>{let t=He.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 rd=N((ed,td)=>{(function(e,t){typeof ed=="object"&&typeof td<"u"?td.exports=t():typeof define=="function"&&define.amd?define(t):(e=e||self,e.SweetScroll=t())})(ed,function(){"use strict";var e=function(){return e=Object.assign||function(g){for(var S,T=1,O=arguments.length;T<O;T++){S=arguments[T];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,T,O){return T*(g/=O)*g+S},easeOutQuad:function(k,g,S,T,O){return-T*(g/=O)*(g-2)+S},easeInOutQuad:function(k,g,S,T,O){return(g/=O/2)<1?T/2*g*g+S:-T/2*(--g*(g-2)-1)+S},easeInCubic:function(k,g,S,T,O){return T*(g/=O)*g*g+S},easeOutCubic:function(k,g,S,T,O){return T*((g=g/O-1)*g*g+1)+S},easeInOutCubic:function(k,g,S,T,O){return(g/=O/2)<1?T/2*g*g*g+S:T/2*((g-=2)*g*g+2)+S},easeInQuart:function(k,g,S,T,O){return T*(g/=O)*g*g*g+S},easeOutQuart:function(k,g,S,T,O){return-T*((g=g/O-1)*g*g*g-1)+S},easeInOutQuart:function(k,g,S,T,O){return(g/=O/2)<1?T/2*g*g*g*g+S:-T/2*((g-=2)*g*g*g-2)+S},easeInQuint:function(k,g,S,T,O){return T*(g/=O)*g*g*g*g+S},easeOutQuint:function(k,g,S,T,O){return T*((g=g/O-1)*g*g*g*g+1)+S},easeInOutQuint:function(k,g,S,T,O){return(g/=O/2)<1?T/2*g*g*g*g*g+S:T/2*((g-=2)*g*g*g*g+2)+S},easeInSine:function(k,g,S,T,O){return-T*f(g/O*(x/2))+T+S},easeOutSine:function(k,g,S,T,O){return T*p(g/O*(x/2))+S},easeInOutSine:function(k,g,S,T,O){return-T/2*(f(x*g/O)-1)+S},easeInExpo:function(k,g,S,T,O){return g===0?S:T*h(2,10*(g/O-1))+S},easeOutExpo:function(k,g,S,T,O){return g===O?S+T:T*(-h(2,-10*g/O)+1)+S},easeInOutExpo:function(k,g,S,T,O){return g===0?S:g===O?S+T:(g/=O/2)<1?T/2*h(2,10*(g-1))+S:T/2*(-h(2,-10*--g)+2)+S},easeInCirc:function(k,g,S,T,O){return-T*(m(1-(g/=O)*g)-1)+S},easeOutCirc:function(k,g,S,T,O){return T*m(1-(g=g/O-1)*g)+S},easeInOutCirc:function(k,g,S,T,O){return(g/=O/2)<1?-T/2*(m(1-g*g)-1)+S:T/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),T=S.length;--T>=0&&S[T]!==k;);return T>-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)}},C=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)}},pe={y:"scrollTop",x:"scrollLeft"},B={y:"pageYOffset",x:"pageXOffset"},_=function(k,g){return z(k)?k[B[g]]:k[pe[g]]},I=function(k,g,S){if(z(k)){var T=S==="y";k.scrollTo(T?k.pageXOffset:g,T?g:k.pageYOffset)}else k[pe[S]]=g},D=function(k,g){var S=k.getBoundingClientRect();if(S.width||S.height){var T={top:0,left:0},O=void 0;if(z(g)||q(g))O=document.documentElement,T.top=window[B.y],T.left=window[B.x];else{O=g;var Y=O.getBoundingClientRect();T.top=Y.top*-1+O[pe.y],T.left=Y.left*-1+O[pe.x]}return{top:S.top+T.top-O.clientTop,left:S.left+T.left-O.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,T,O){S.split(" ").forEach(function(Y){k[g](W(Y),T,n?{passive:O}:!1)})},U=function(k,g,S,T){return M(k,"addEventListener",g,S,T)},d=function(k,g,S,T){return M(k,"removeEventListener",g,S,T)},G=/^(\+|-)=(\d+(?:\.\d+)?)$/,K=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 T=k.trim().match(G);if(!T)return null;var O=T[1],Y=parseInt(T[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},se="click",de="wheel touchstart touchmove",Ie=function(){function k(g,S){var T=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 ye=T,we=ye.$el,ve=ye.ctx;if(ve.start||(ve.start=Y),!ve.progress||!we){T.stop();return}var kt=ve.opts,rt=ve.pos,xt=ve.start,ur=ve.startPos,Nr=ve.easing,Ft=kt.duration,qt={top:"y",left:"x"},At=Y-xt,$e=Math.min(1,Math.max(At/Ft,0));Object.keys(rt).forEach(function(Fr){var P=rt[Fr],j=ur[Fr],te=P-j;if(te!==0){var ue=Nr($e,Ft*$e,0,1,Ft);I(we,Math.round(j+te*ue),qt[Fr])}}),At<=Ft?(T.hook(kt,"step",$e),ve.id=k.raf(T.loop)):T.stop(!0)},this.handleClick=function(Y){for(var ye=T.opts,we=Y.target;we&&we!==document;we=we.parentNode)if(A(we,ye.trigger)){var ve=JSON.parse(we.getAttribute("data-scroll-options")||"{}"),kt=we.getAttribute("data-scroll"),rt=kt||we.getAttribute("href"),xt=e({},ye,ve),ur=xt.preventDefault,Nr=xt.stopPropagation,Ft=xt.vertical,qt=xt.horizontal;ur&&Y.preventDefault(),Nr&&Y.stopPropagation(),T.ctx.$trigger=we,qt&&Ft?T.to(rt,xt):Ft?T.toTop(rt,xt):qt&&T.toLeft(rt,xt);break}},this.handleStop=function(Y){var ye=T.ctx,we=ye.opts;we&&we.cancellable?(ye.cancel=!0,T.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 T=this,O=T.$el,Y=T.ctx,ye=T.opts,we=Y.$trigger,ve=e({},ye,S||{}),kt=ve.offset,rt=ve.vertical,xt=ve.horizontal,ur=b(ve.header)?ve.header:E(ve.header),Nr=/^#/,Ft=i(g)&&Nr.test(g)?g:null;if(Y.opts=ve,Y.cancel=!1,Y.hash=Ft,this.stop(),!!O){var qt=K(kt,rt),At=K(g,rt),$e={top:0,left:0};if(At)if(At.relative){var Fr=_(O,rt?"y":"x");$e.top=rt?Fr+At.top:At.top,$e.left=rt?At.left:Fr+At.left}else $e=At;else if(i(g)&&g!=="#"){var P=E(g);if(!P)return;$e=D(P,O)}qt&&($e.top+=qt.top,$e.left+=qt.left),ur&&($e.top=Math.max(0,$e.top-$(ur).height));var j=C(O),te=j.viewport,ue=j.size;if($e.top=rt?Math.max(0,Math.min(ue.height-te.height,$e.top)):_(O,"y"),$e.left=xt?Math.max(0,Math.min(ue.width-te.width,$e.left)):_(O,"x"),this.hook(ve,"before",$e,we)===!1){Y.opts=null;return}Y.pos=$e,this.start(ve),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 T=this.$el;!t||!T||this.to(D(g,T),S||{})},k.prototype.stop=function(g){g===void 0&&(g=!1);var S=this,T=S.$el,O=S.ctx,Y=O.pos;!T||!O.progress||(k.caf(O.id),O.progress=!1,O.start=0,O.id=0,g&&Y&&(I(T,Y.left,"x"),I(T,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 T=this.$el,O={top:_(T,"y"),left:_(T,"x")};S.startPos=O,S.id=k.raf(this.loop)},k.prototype.complete=function(){var g=this,S=g.$el,T=g.ctx,O=T.hash,Y=T.cancel,ye=T.opts,we=T.pos,ve=T.$trigger;if(!(!S||!ye)){if(O!=null&&O!==window.location.hash){var kt=ye.updateURL;t&&r&&kt!==!1&&window.history[kt==="replace"?"replaceState":"pushState"](null,"",O)}this.unbind(!1,!0),T.opts=null,T.$trigger=null,Y?this.hook(ye,"cancel"):this.hook(ye,"after",we,ve),this.hook(ye,"complete",Y)}},k.prototype.hook=function(g,S){for(var T=[],O=2;O<arguments.length;O++)T[O-2]=arguments[O];var Y,ye=g[S],we,ve;return o(ye)&&(we=ye.apply(this,T.concat([this]))),ve=(Y=this)["on"+(S[0].toUpperCase()+S.slice(1))].apply(Y,T),we!==void 0?we:ve},k.prototype.bind=function(g,S){var T=this,O=T.$el,Y=T.ctx.opts;O&&(g&&U(O,se,this.handleClick,!1),S&&U(O,de,this.handleStop,Y?Y.cancellable:!0))},k.prototype.unbind=function(g,S){var T=this,O=T.$el,Y=T.ctx.opts;O&&(g&&d(O,se,this.handleClick,!1),S&&d(O,de,this.handleStop,Y?Y.cancellable:!0))},k.raf=u,k.caf=c,k}();return Ie})});var eC=N((lue,KA)=>{KA.exports=function(){return typeof Promise=="function"&&Promise.prototype&&Promise.prototype.then}});var on=N(li=>{var bd,_U=[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];li.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};li.getSymbolTotalCodewords=function(t){return _U[t]};li.getBCHDigit=function(e){let t=0;for(;e!==0;)t++,e>>>=1;return t};li.setToSJISFunction=function(t){if(typeof t!="function")throw new Error('"toSJISFunc" is not a valid function.');bd=t};li.isKanjiModeEnabled=function(){return typeof bd<"u"};li.toSJIS=function(t){return bd(t)}});var ac=N(Mt=>{Mt.L={bit:1};Mt.M={bit:0};Mt.Q={bit:3};Mt.H={bit:2};function IU(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 IU(t)}catch{return r}}});var nC=N((fue,rC)=>{function tC(){this.buffer=[],this.length=0}tC.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++}};rC.exports=tC});var oC=N((pue,iC)=>{function ra(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)}ra.prototype.set=function(e,t,r,n){let i=e*this.size+t;this.data[i]=r,n&&(this.reservedBit[i]=!0)};ra.prototype.get=function(e,t){return this.data[e*this.size+t]};ra.prototype.xor=function(e,t,r){this.data[e*this.size+t]^=r};ra.prototype.isReserved=function(e,t){return this.reservedBit[e*this.size+t]};iC.exports=ra});var sC=N(lc=>{var PU=on().getSymbolSize;lc.getRowColCoords=function(t){if(t===1)return[];let r=Math.floor(t/7)+2,n=PU(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()};lc.getPositions=function(t){let r=[],n=lc.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 uC=N(lC=>{var OU=on().getSymbolSize,aC=7;lC.getPositions=function(t){let r=OU(t);return[[0,0],[r-aC,0],[0,r-aC]]}});var cC=N(Te=>{Te.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};var ui={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+=ui.N1+(i-5)),s=c,i=1),c=t.get(u,l),c===a?o++:(o>=5&&(n+=ui.N1+(o-5)),a=c,o=1)}i>=5&&(n+=ui.N1+(i-5)),o>=5&&(n+=ui.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*ui.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*ui.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)*ui.N4};function DU(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,DU(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 sn=ac(),uc=[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],cc=[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 sn.L:return uc[(t-1)*4+0];case sn.M:return uc[(t-1)*4+1];case sn.Q:return uc[(t-1)*4+2];case sn.H:return uc[(t-1)*4+3];default:return}};wd.getTotalCodewordsCount=function(t,r){switch(r){case sn.L:return cc[(t-1)*4+0];case sn.M:return cc[(t-1)*4+1];case sn.Q:return cc[(t-1)*4+2];case sn.H:return cc[(t-1)*4+3];default:return}}});var fC=N(pc=>{var na=new Uint8Array(512),fc=new Uint8Array(256);(function(){let t=1;for(let r=0;r<255;r++)na[r]=t,fc[t]=r,t<<=1,t&256&&(t^=285);for(let r=255;r<512;r++)na[r]=na[r-255]})();pc.log=function(t){if(t<1)throw new Error("log("+t+")");return fc[t]};pc.exp=function(t){return na[t]};pc.mul=function(t,r){return t===0||r===0?0:na[fc[t]+fc[r]]}});var pC=N(ia=>{var Sd=fC();ia.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};ia.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};ia.generateECPolynomial=function(t){let r=new Uint8Array([1]);for(let n=0;n<t;n++)r=ia.mul(r,new Uint8Array([1,Sd.exp(n)]));return r}});var dC=N((bue,mC)=>{var hC=pC();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=hC.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=hC.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};mC.exports=kd});var Ad=N(gC=>{gC.isValid=function(t){return!isNaN(t)&&t>=1&&t<=40}});var Cd=N(Or=>{var yC="[0-9]+",MU="[A-Z $%*+\\-./:]+",oa="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";oa=oa.replace(/u/g,"\\u");var NU="(?:(?![A-Z0-9 $%*+\\-./:]|"+oa+`)(?:.|[\r
35
35
  ]))+`;Or.KANJI=new RegExp(oa,"g");Or.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g");Or.BYTE=new RegExp(NU,"g");Or.NUMERIC=new RegExp(yC,"g");Or.ALPHANUMERIC=new RegExp(MU,"g");var FU=new RegExp("^"+oa+"$"),RU=new RegExp("^"+yC+"$"),LU=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");Or.testKanji=function(t){return FU.test(t)};Or.testNumeric=function(t){return RU.test(t)};Or.testAlphanumeric=function(t){return LU.test(t)}});var an=N(Ve=>{var BU=Ad(),Td=Cd();Ve.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]};Ve.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]};Ve.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]};Ve.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]};Ve.MIXED={bit:-1};Ve.getCharCountIndicator=function(t,r){if(!t.ccBits)throw new Error("Invalid mode: "+t);if(!BU.isValid(r))throw new Error("Invalid version: "+r);return r>=1&&r<10?t.ccBits[0]:r<27?t.ccBits[1]:t.ccBits[2]};Ve.getBestModeForData=function(t){return Td.testNumeric(t)?Ve.NUMERIC:Td.testAlphanumeric(t)?Ve.ALPHANUMERIC:Td.testKanji(t)?Ve.KANJI:Ve.BYTE};Ve.toString=function(t){if(t&&t.id)return t.id;throw new Error("Invalid mode")};Ve.isValid=function(t){return t&&t.bit&&t.ccBits};function $U(e){if(typeof e!="string")throw new Error("Param is not a string");switch(e.toLowerCase()){case"numeric":return Ve.NUMERIC;case"alphanumeric":return Ve.ALPHANUMERIC;case"kanji":return Ve.KANJI;case"byte":return Ve.BYTE;default:throw new Error("Unknown mode: "+e)}}Ve.from=function(t,r){if(Ve.isValid(t))return t;try{return $U(t)}catch{return r}}});var SC=N(ci=>{var hc=on(),UU=vd(),xC=ac(),ln=an(),Ed=Ad(),wC=7973,bC=hc.getBCHDigit(wC);function jU(e,t,r){for(let n=1;n<=40;n++)if(t<=ci.getCapacity(n,r,e))return n}function vC(e,t){return ln.getCharCountIndicator(e,t)+4}function zU(e,t){let r=0;return e.forEach(function(n){let i=vC(n.mode,t);r+=i+n.getBitsLength()}),r}function qU(e,t){for(let r=1;r<=40;r++)if(zU(e,r)<=ci.getCapacity(r,t,ln.MIXED))return r}ci.from=function(t,r){return Ed.isValid(t)?parseInt(t,10):r};ci.getCapacity=function(t,r,n){if(!Ed.isValid(t))throw new Error("Invalid QR Code version");typeof n>"u"&&(n=ln.BYTE);let i=hc.getSymbolTotalCodewords(t),o=UU.getTotalCodewordsCount(t,r),s=(i-o)*8;if(n===ln.MIXED)return s;let a=s-vC(n,t);switch(n){case ln.NUMERIC:return Math.floor(a/10*3);case ln.ALPHANUMERIC:return Math.floor(a/11*2);case ln.KANJI:return Math.floor(a/13);case ln.BYTE:default:return Math.floor(a/8)}};ci.getBestVersionForData=function(t,r){let n,i=xC.from(r,xC.M);if(Array.isArray(t)){if(t.length>1)return qU(t,i);if(t.length===0)return 1;n=t[0]}else n=t;return jU(n.mode,n.getLength(),i)};ci.getEncodedBits=function(t){if(!Ed.isValid(t)||t<7)throw new Error("Invalid QR Code version");let r=t<<12;for(;hc.getBCHDigit(r)-bC>=0;)r^=wC<<hc.getBCHDigit(r)-bC;return t<<12|r}});var TC=N(CC=>{var _d=on(),AC=1335,HU=21522,kC=_d.getBCHDigit(AC);CC.getEncodedBits=function(t,r){let n=t.bit<<3|r,i=n<<10;for(;_d.getBCHDigit(i)-kC>=0;)i^=AC<<_d.getBCHDigit(i)-kC;return(n<<10|i)^HU}});var _C=N((Cue,EC)=>{var VU=an();function Ao(e){this.mode=VU.NUMERIC,this.data=e.toString()}Ao.getBitsLength=function(t){return 10*Math.floor(t/3)+(t%3?t%3*3+1:0)};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,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))};EC.exports=Ao});var PC=N((Tue,IC)=>{var WU=an(),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 Co(e){this.mode=WU.ALPHANUMERIC,this.data=e}Co.getBitsLength=function(t){return 11*Math.floor(t/2)+6*(t%2)};Co.prototype.getLength=function(){return this.data.length};Co.prototype.getBitsLength=function(){return Co.getBitsLength(this.data.length)};Co.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)};IC.exports=Co});var DC=N((Eue,OC)=>{var YU=an();function To(e){this.mode=YU.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)};OC.exports=To});var NC=N((_ue,MC)=>{var GU=an(),JU=on();function Eo(e){this.mode=GU.KANJI,this.data=e}Eo.getBitsLength=function(t){return t*13};Eo.prototype.getLength=function(){return this.data.length};Eo.prototype.getBitsLength=function(){return Eo.getBitsLength(this.data.length)};Eo.prototype.write=function(e){let t;for(t=0;t<this.data.length;t++){let r=JU.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
36
  Make sure your charset is UTF-8`);r=(r>>>8&255)*192+(r&255),e.put(r,13)}};MC.exports=Eo});var FC=N((Iue,Pd)=>{"use strict";var sa={single_source_shortest_paths:function(e,t,r){var n={},i={};i[t]=0;var o=sa.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=sa.single_source_shortest_paths(e,t,r);return sa.extract_shortest_path_from_predecessor_list(n,r)},PriorityQueue:{make:function(e){var t=sa.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=sa)});var qC=N(_o=>{var be=an(),BC=_C(),$C=PC(),UC=DC(),jC=NC(),aa=Cd(),mc=on(),QU=FC();function RC(e){return unescape(encodeURIComponent(e)).length}function la(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 zC(e){let t=la(aa.NUMERIC,be.NUMERIC,e),r=la(aa.ALPHANUMERIC,be.ALPHANUMERIC,e),n,i;return mc.isKanjiModeEnabled()?(n=la(aa.BYTE,be.BYTE,e),i=la(aa.KANJI,be.KANJI,e)):(n=la(aa.BYTE_KANJI,be.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 be.NUMERIC:return BC.getBitsLength(e);case be.ALPHANUMERIC:return $C.getBitsLength(e);case be.KANJI:return jC.getBitsLength(e);case be.BYTE:return UC.getBitsLength(e)}}function ZU(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 XU(e){let t=[];for(let r=0;r<e.length;r++){let n=e[r];switch(n.mode){case be.NUMERIC:t.push([n,{data:n.data,mode:be.ALPHANUMERIC,length:n.length},{data:n.data,mode:be.BYTE,length:n.length}]);break;case be.ALPHANUMERIC:t.push([n,{data:n.data,mode:be.BYTE,length:n.length}]);break;case be.KANJI:t.push([n,{data:n.data,mode:be.BYTE,length:RC(n.data)}]);break;case be.BYTE:t.push([{data:n.data,mode:be.BYTE,length:RC(n.data)}])}}return t}function KU(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+be.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 LC(e,t){let r,n=be.getBestModeForData(e);if(r=be.from(t,n),r!==be.BYTE&&r.bit<n.bit)throw new Error('"'+e+'" cannot be encoded with mode '+be.toString(r)+`.
37
37
  Suggested mode is: `+be.toString(n));switch(r===be.KANJI&&!mc.isKanjiModeEnabled()&&(r=be.BYTE),r){case be.NUMERIC:return new BC(e);case be.ALPHANUMERIC:return new $C(e);case be.KANJI:return new jC(e);case be.BYTE:return new UC(e)}}_o.fromArray=function(t){return t.reduce(function(r,n){return typeof n=="string"?r.push(LC(n,null)):n.data&&r.push(LC(n.data,n.mode)),r},[])};_o.fromString=function(t,r){let n=zC(t,mc.isKanjiModeEnabled()),i=XU(n),o=KU(i,r),s=QU.find_path(o.map,"start","end"),a=[];for(let l=1;l<s.length-1;l++)a.push(o.table[s[l]].node);return _o.fromArray(ZU(a))};_o.rawSplit=function(t){return _o.fromArray(zC(t,mc.isKanjiModeEnabled()))}});var VC=N(HC=>{var gc=on(),Dd=ac(),e4=nC(),t4=oC(),r4=sC(),n4=uC(),Fd=cC(),Rd=vd(),i4=dC(),dc=SC(),o4=TC(),s4=an(),Md=qC();function a4(e,t){let r=e.size,n=n4.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 l4(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 u4(e,t){let r=r4.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 c4(e,t){let r=e.size,n=dc.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=o4.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 f4(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 p4(e,t,r){let n=new e4;r.forEach(function(l){n.put(l.mode.bit,4),n.put(l.getLength(),s4.getCharCountIndicator(l.mode,e)),l.write(n)});let i=gc.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 h4(n,e,t)}function h4(e,t,r){let n=gc.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 i4(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 m4(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=dc.getBestVersionForData(c,r)}i=Md.fromString(e,u||40)}else throw new Error("Invalid data");let o=dc.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(`
@@ -42,7 +42,7 @@ Minimum version required to store current data is: `+o+`.
42
42
  \f\r]`,No=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Yd=/-->/g,Gd=/>/g,pn=RegExp(`>|${vc}(?:([^\\s"'>=/]+)(${vc}*=${vc}*(?:[^
43
43
  \f\r"'\`<>=]|("|')|))|$)`,"g"),Jd=/'/g,Qd=/"/g,Kd=/^(?:script|style|textarea|title)$/i,Tc=e=>(t,...r)=>({_$litType$:e,strings:t,values:r}),J=Tc(1),T4=Tc(2),E4=Tc(3),je=Symbol.for("lit-noChange"),Re=Symbol.for("lit-nothing"),Zd=new WeakMap,hn=mn.createTreeWalker(mn,129);function eg(e,t){if(!Cc(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return Wd!==void 0?Wd.createHTML(t):t}var tg=(e,t)=>{let r=e.length-1,n=[],i,o=t===2?"<svg>":t===3?"<math>":"",s=No;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===No?c[1]==="!--"?s=Yd:c[1]!==void 0?s=Gd:c[2]!==void 0?(Kd.test(c[2])&&(i=RegExp("</"+c[2],"g")),s=pn):c[3]!==void 0&&(s=pn):s===pn?c[0]===">"?(s=i??No,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]==='"'?Qd:Jd):s===Qd||s===Jd?s=pn:s===Yd||s===Gd?s=No:(s=pn,i=void 0);let h=s===pn&&e[a+1].startsWith("/>")?" ":"";o+=s===No?l+dT:f>=0?(n.push(u),l.slice(0,f)+kc+l.slice(f)+hr+h):l+hr+(f===-2?a:h)}return[eg(e,o+(e[r]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),n]},Lo=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]=tg(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(kc)){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]==="."?ba:m[1]==="?"?wa:m[1]==="@"?va:gn}),i.removeAttribute(f)}else f.startsWith(hr)&&(l.push({type:6,index:o}),i.removeAttribute(f));if(Kd.test(i.tagName)){let f=i.textContent.split(hr),p=f.length-1;if(p>0){i.textContent=ya?ya.emptyScript:"";for(let h=0;h<p;h++)i.append(f[h],Fo()),hn.nextNode(),l.push({type:2,index:++o});i.append(f[p],Fo())}}}else if(i.nodeType===8)if(i.data===Ac)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===je)return t;let i=n!==void 0?r._$Co?.[n]:r._$Cl,o=Ro(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 xa=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 hi(o,o.nextSibling,this,t):l.type===1?u=new l.ctor(o,l.name,l.strings,this,t):l.type===6&&(u=new Sa(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++}},hi=class e{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,r,n,i){this.type=2,this._$AH=Re,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),Ro(t)?t===Re||t==null||t===""?(this._$AH!==Re&&this._$AR(),this._$AH=Re):t!==this._$AH&&t!==je&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):Xd(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!==Re&&Ro(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=Lo.createElement(eg(n.h,n.h[0]),this.options)),n);if(this._$AH?._$AD===i)this._$AH.p(r);else{let o=new xa(i,this),s=o.u(this.options);o.p(r),this.T(s),this._$AH=o}}_$AC(t){let r=Zd.get(t.strings);return r===void 0&&Zd.set(t.strings,r=new Lo(t)),r}k(t){Cc(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(Fo()),this.O(Fo()),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=Re,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=Re}_$AI(t,r=this,n,i){let o=this.strings,s=!1;if(o===void 0)t=dn(this,t,r,0),s=!Ro(t)||t!==this._$AH&&t!==je,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===je&&(u=this._$AH[l]),s||=!Ro(u)||u!==this._$AH[l],u===Re?t=Re:t!==Re&&(t+=(u??"")+o[l+1]),this._$AH[l]=u}s&&!i&&this.j(t)}j(t){t===Re?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},ba=class extends gn{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===Re?void 0:t}},wa=class extends gn{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==Re)}},va=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)??Re)===je)return;let n=this._$AH,i=t===Re&&n!==Re||t.capture!==n.capture||t.once!==n.once||t.passive!==n.passive,o=t!==Re&&(n===Re||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)}},Sa=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)}},rg={M:kc,P:hr,A:Ac,C:1,L:tg,R:xa,D:Xd,V:dn,I:hi,H:gn,N:wa,U:va,B:ba,F:Sa},gT=Sc.litHtmlPolyfillSupport;gT?.(Lo,hi),(Sc.litHtmlVersions??=[]).push("3.2.1");var Bo=(e,t,r)=>{let n=r?.renderBefore??t,i=n._$litPart$;if(i===void 0){let o=r?.renderBefore??null;n._$litPart$=i=new hi(t.insertBefore(Fo(),o),o,void 0,r??{})}return i._$AI(e),i};var Rr=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=Bo(r,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return je}};Rr._$litElement$=!0,Rr.finalized=!0,globalThis.litElementHydrateSupport?.({LitElement:Rr});var yT=globalThis.litElementPolyfillSupport;yT?.({LitElement:Rr});(globalThis.litElementVersions??=[]).push("4.1.1");var OA=Ue(Aa(),1);var Ae={};ae(Ae,{ObservableIntake:()=>qc,Observablemap:()=>zc,rxjs:()=>Ho});var ne={};ae(ne,{CumulativeDeferred:()=>Ta,Deferred:()=>Ca,cumulativeDefer:()=>bT,defer:()=>yn,getFirstTrueOrFalse:()=>AT,map:()=>ST,rejectedPromise:()=>vT,resolvedPromise:()=>wT,timeoutAndContinue:()=>kT,timeoutWrap:()=>ng});var Ca=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 Ca;var Ta=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)}},bT=()=>new Ta;var wT=e=>Promise.resolve(e),vT=e=>Promise.reject(e),ST=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},ng=async(e,t,r=!0)=>new Promise((n,i)=>{setTimeout(()=>{r?i(new Error("timeout")):n(null)},t),e.then(n,i)}),kT=async(e,t=6e4)=>ng(e,t,!1),AT=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 Ho={};ae(Ho,{Observable:()=>Ee,ReplaySubject:()=>Dc,Subject:()=>dr,Subscription:()=>Bt,from:()=>Sn,fromEvent:()=>An,of:()=>Nc,ops:()=>QT});var Ec=function(e,t){return Ec=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])},Ec(e,t)};function nt(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Ec(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}function ig(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 Ea(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 wt(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 Lt(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 og(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 sg(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 ce(e){return typeof e=="function"}function _a(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 Ia=_a(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 Bt=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(ce(c))try{c()}catch(x){o=x instanceof Ia?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{ag(m)}catch(x){o=o??[],x instanceof Ia?o=Lt(Lt([],wt(o)),wt(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 Ia(o)}},e.prototype.add=function(t){var r;if(t&&t!==this)if(this.closed)ag(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 _c=Bt.EMPTY;function Pa(e){return e instanceof Bt||e&&"closed"in e&&ce(e.remove)&&ce(e.add)&&ce(e.unsubscribe)}function ag(e){ce(e)?e():e.unsubscribe()}var $t={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};var mi={setTimeout:function(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var i=mi.delegate;return i?.setTimeout?i.setTimeout.apply(i,Lt([e,t],wt(r))):setTimeout.apply(void 0,Lt([e,t],wt(r)))},clearTimeout:function(e){var t=mi.delegate;return(t?.clearTimeout||clearTimeout)(e)},delegate:void 0};function Oa(e){mi.setTimeout(function(){var t=$t.onUnhandledError;if(t)t(e);else throw e})}function wn(){}var lg=function(){return Ic("C",void 0,void 0)}();function ug(e){return Ic("E",void 0,e)}function cg(e){return Ic("N",e,void 0)}function Ic(e,t,r){return{kind:e,value:t,error:r}}var vn=null;function di(e){if($t.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 fg(e){$t.useDeprecatedSynchronousErrorHandling&&vn&&(vn.errorThrown=!0,vn.error=e)}var $o=function(e){nt(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=IT,n}return t.create=function(r,n,i){return new Ma(r,n,i)},t.prototype.next=function(r){this.isStopped?Oc(cg(r),this):this._next(r)},t.prototype.error=function(r){this.isStopped?Oc(ug(r),this):(this.isStopped=!0,this._error(r))},t.prototype.complete=function(){this.isStopped?Oc(lg,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}(Bt);var TT=Function.prototype.bind;function Pc(e,t){return TT.call(e,t)}var ET=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){Da(n)}},e.prototype.error=function(t){var r=this.partialObserver;if(r.error)try{r.error(t)}catch(n){Da(n)}else Da(t)},e.prototype.complete=function(){var t=this.partialObserver;if(t.complete)try{t.complete()}catch(r){Da(r)}},e}(),Ma=function(e){nt(t,e);function t(r,n,i){var o=e.call(this)||this,s;if(ce(r)||!r)s={next:r??void 0,error:n??void 0,complete:i??void 0};else{var a;o&&$t.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 ET(s),o}return t}($o);function Da(e){$t.useDeprecatedSynchronousErrorHandling?fg(e):Oa(e)}function _T(e){throw e}function Oc(e,t){var r=$t.onStoppedNotification;r&&mi.setTimeout(function(){return r(e,t)})}var IT={closed:!0,next:wn,error:_T,complete:wn};var gi=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function Na(e){return e}function pg(e){return e.length===0?Na:e.length===1?e[0]:function(r){return e.reduce(function(n,i){return i(n)},r)}}var Ee=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=OT(t)?t:new Ma(t,r,n);return di(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=hg(r),new r(function(i,o){var s=new Ma({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[gi]=function(){return this},e.prototype.pipe=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return pg(t)(this)},e.prototype.toPromise=function(t){var r=this;return t=hg(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 hg(e){var t;return(t=e??$t.Promise)!==null&&t!==void 0?t:Promise}function PT(e){return e&&ce(e.next)&&ce(e.error)&&ce(e.complete)}function OT(e){return e&&e instanceof $o||PT(e)&&Pa(e)}function DT(e){return ce(e?.lift)}function ze(e){return function(t){if(DT(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 We(e,t,r,n,i){return new MT(e,t,r,n,i)}var MT=function(e){nt(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}($o);var mg=_a(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}});var dr=function(e){nt(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 dg(this,this);return n.operator=r,n},t.prototype._throwIfClosed=function(){if(this.closed)throw new mg},t.prototype.next=function(r){var n=this;di(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;di(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;di(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?_c:(this.currentObservers=null,a.push(r),new Bt(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 Ee;return r.source=this,r},t.create=function(r,n){return new dg(r,n)},t}(Ee);var dg=function(e){nt(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:_c},t}(dr);var Uo={now:function(){return(Uo.delegate||Date).now()},delegate:void 0};var Dc=function(e){nt(t,e);function t(r,n,i){r===void 0&&(r=1/0),n===void 0&&(n=1/0),i===void 0&&(i=Uo);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 gg=function(e){nt(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}(Bt);var jo={setInterval:function(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var i=jo.delegate;return i?.setInterval?i.setInterval.apply(i,Lt([e,t],wt(r))):setInterval.apply(void 0,Lt([e,t],wt(r)))},clearInterval:function(e){var t=jo.delegate;return(t?.clearInterval||clearInterval)(e)},delegate:void 0};var yg=function(e){nt(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),jo.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&&jo.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}(gg);var Mc=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=Uo.now,e}();var xg=function(e){nt(t,e);function t(r,n){n===void 0&&(n=Mc.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}(Mc);var zo=new xg(yg),bg=zo;function Fa(e){return e&&ce(e.schedule)}function NT(e){return e[e.length-1]}function yi(e){return Fa(NT(e))?e.pop():void 0}var xi=function(e){return e&&typeof e.length=="number"&&typeof e!="function"};function Ra(e){return ce(e?.then)}function La(e){return ce(e[gi])}function Ba(e){return Symbol.asyncIterator&&ce(e?.[Symbol.asyncIterator])}function $a(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 FT(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var Ua=FT();function ja(e){return ce(e?.[Ua])}function za(e){return og(this,arguments,function(){var r,n,i,o;return Ea(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 qa(e){return ce(e?.getReader)}function Xe(e){if(e instanceof Ee)return e;if(e!=null){if(La(e))return RT(e);if(xi(e))return LT(e);if(Ra(e))return BT(e);if(Ba(e))return wg(e);if(ja(e))return $T(e);if(qa(e))return UT(e)}throw $a(e)}function RT(e){return new Ee(function(t){var r=e[gi]();if(ce(r.subscribe))return r.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function LT(e){return new Ee(function(t){for(var r=0;r<e.length&&!t.closed;r++)t.next(e[r]);t.complete()})}function BT(e){return new Ee(function(t){e.then(function(r){t.closed||(t.next(r),t.complete())},function(r){return t.error(r)}).then(null,Oa)})}function $T(e){return new Ee(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 wg(e){return new Ee(function(t){jT(e,t).catch(function(r){return t.error(r)})})}function UT(e){return wg(za(e))}function jT(e,t){var r,n,i,o;return ig(this,void 0,void 0,function(){var s,a;return Ea(this,function(l){switch(l.label){case 0:l.trys.push([0,5,6,11]),r=sg(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 Ha(e,t){return t===void 0&&(t=0),ze(function(r,n){r.subscribe(We(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 Va(e,t){return t===void 0&&(t=0),ze(function(r,n){n.add(e.schedule(function(){return r.subscribe(n)},t))})}function vg(e,t){return Xe(e).pipe(Va(t),Ha(t))}function Sg(e,t){return Xe(e).pipe(Va(t),Ha(t))}function kg(e,t){return new Ee(function(r){var n=0;return t.schedule(function(){n===e.length?r.complete():(r.next(e[n++]),r.closed||this.schedule())})})}function Ag(e,t){return new Ee(function(r){var n;return Ct(r,t,function(){n=e[Ua](),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 ce(n?.return)&&n.return()}})}function Wa(e,t){if(!e)throw new Error("Iterable cannot be null");return new Ee(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 Cg(e,t){return Wa(za(e),t)}function Tg(e,t){if(e!=null){if(La(e))return vg(e,t);if(xi(e))return kg(e,t);if(Ra(e))return Sg(e,t);if(Ba(e))return Wa(e,t);if(ja(e))return Ag(e,t);if(qa(e))return Cg(e,t)}throw $a(e)}function Sn(e,t){return t?Tg(e,t):Xe(e)}function Nc(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=yi(e);return Sn(e,r)}function Eg(e){return e instanceof Date&&!isNaN(e)}function kn(e,t){return ze(function(r,n){var i=0;r.subscribe(We(n,function(o){n.next(e.call(t,o,i++))}))})}var zT=Array.isArray;function qT(e,t){return zT(t)?e.apply(void 0,Lt([],wt(t))):e(t)}function _g(e){return kn(function(t){return qT(e,t)})}function Ig(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;Xe(r(x,c++)).subscribe(We(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(We(t,h,function(){f=!0,p()})),function(){a?.()}}function qo(e,t,r){return r===void 0&&(r=1/0),ce(t)?qo(function(n,i){return kn(function(o,s){return t(n,o,i,s)})(Xe(e(n,i)))},r):(typeof t=="number"&&(r=t),ze(function(n,i){return Ig(n,i,e,r)}))}function Pg(e){return e===void 0&&(e=1/0),qo(Na,e)}function Og(){return Pg(1)}function Fc(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return Og()(Sn(e,yi(e)))}var HT=["addListener","removeListener"],VT=["addEventListener","removeEventListener"],WT=["on","off"];function An(e,t,r,n){if(ce(r)&&(n=r,r=void 0),n)return An(e,t,r).pipe(_g(n));var i=wt(JT(e)?VT.map(function(a){return function(l){return e[a](t,l,r)}}):YT(e)?HT.map(Dg(e,t)):GT(e)?WT.map(Dg(e,t)):[],2),o=i[0],s=i[1];if(!o&&xi(e))return qo(function(a){return An(a,t,r)})(Xe(e));if(!o)throw new TypeError("Invalid event target");return new Ee(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 Dg(e,t){return function(r){return function(n){return e[r](t,n)}}}function YT(e){return ce(e.addListener)&&ce(e.removeListener)}function GT(e){return ce(e.on)&&ce(e.off)}function JT(e){return ce(e.addEventListener)&&ce(e.removeEventListener)}function Mg(e,t,r){e===void 0&&(e=0),r===void 0&&(r=bg);var n=-1;return t!=null&&(Fa(t)?r=t:n=t),new Ee(function(i){var o=Eg(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 Rc(e,t){return ze(function(r,n){var i=0;r.subscribe(We(n,function(o){return e.call(t,o,i++)&&n.next(o)}))})}function Lc(e){return ze(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(We(r,function(a){o?.unsubscribe(),n=!0,i=a,o=We(r,s,wn),Xe(e(a)).subscribe(o)},function(){s(),r.complete()},void 0,function(){i=o=null}))})}function Bc(e,t){return t===void 0&&(t=zo),ze(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(We(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 $c(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=yi(e);return ze(function(n,i){(r?Fc(e,n,r):Fc(e,n)).subscribe(i)})}function Uc(e){return ze(function(t,r){Xe(e).subscribe(We(r,function(){return r.complete()},wn)),!r.closed&&t.subscribe(r)})}function Ng(e,t){return ze(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=Xe(e(w)).subscribe(We(n,h,m))},v=function(){if(u){u=!1;var w=c;c=null,n.next(w),!p&&x(w)}};r.subscribe(We(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 jc(e,t,r){t===void 0&&(t=zo);var n=Mg(e,t);return Ng(function(){return n},r)}var QT={debounce:Lc,debounceTime:Bc,map:kn,startWith:$c,takeUntil:Uc,throttleTime:jc,filter:Rc};var zc=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 qc=class{constructor(){this.observableFunctions={next:t=>{},complete:t=>{}},this.generator=null,this.buffered=!1,this.payloadBuffer=[],this.observable=new Ee(t=>{this.observableFunctions.next=(...r)=>t.next(r),this.observableFunctions.complete=()=>(this.completedDeffered.resolve(),t.complete())}),this.completedDeffered=ne.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 ZT={attribute:!0,type:String,converter:Mo,reflect:!1,hasChanged:ga},XT=(e=ZT,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 re(e){return(t,r)=>typeof r=="object"?XT(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 ye={};ae(ye,{DomTools:()=>Dt,TypedRequest:()=>ys,breakpoints:()=>Pr,css:()=>pd,elementBasic:()=>si,plugins:()=>hd});var si={};ae(si,{setup:()=>cU,staticStyles:()=>lU,styles:()=>uU});var Rl={};ae(Rl,{DeesComms:()=>$p});var me={};ae(me,{Timeout:()=>Ya,delayFor:()=>Fg,delayForRandom:()=>KT});var Fg=async(e,t,r=!1)=>(await new Ya(e,null,r).promise,t),KT=async(e,t,r,n=!1)=>(await Fg(Math.random()*(t-e)+e,null,n),r),Ya=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 _t={};ae(_t,{TypedHandler:()=>Dp,TypedRequest:()=>ys,TypedResponseError:()=>vr,TypedRouter:()=>gs,TypedTarget:()=>Mp,VirtualStream:()=>Jt});var Ln=Ue(Aa(),1);var ft={};ae(ft,{AsyncExecutionStack:()=>cf,BackpressuredArray:()=>ff,FastMap:()=>Go,Interest:()=>Jo,InterestMap:()=>pf,LimitedArray:()=>hf,LoopTracker:()=>mf,ObjectMap:()=>En,Stringmap:()=>df,TimedAggregtor:()=>gf,Tree:()=>yf,uni:()=>ey});var Tn={};ae(Tn,{SmartMatch:()=>Vc});var Ga={};ae(Ga,{isMatch:()=>rE,matcher:()=>tE});function Cn(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}var Hc=new Map,Rg=(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})},eE=(e,t)=>{t={caseSensitive:!1,...t};let r=e+JSON.stringify(t);if(Hc.has(r))return Hc.get(r);let n=e[0]==="!";n&&(e=e.slice(1)),e=Cn(e).replace(/\\\*/g,"[\\s\\S]*");let i=new RegExp(`^${e}$`,t.caseSensitive?"":"i");return i.negated=n,Hc.set(r,i),i},Lg=(e,t,r,n)=>{if(e=Rg(e,"inputs"),t=Rg(t,"patterns"),t.length===0)return[];t=t.map(s=>eE(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 tE(e,t,r){return Lg(e,t,r,!1)}function rE(e,t,r){return Lg(e,t,r,!0).length>0}var Vc=class{constructor(t){this.wildcard=t}match(t){return Ga.isMatch(t,this.wildcard)}};var Ht={};ae(Ht,{CronJob:()=>Yo,CronManager:()=>tf,ExtendedDate:()=>rf,HrtMeasurement:()=>nf,Interval:()=>of,TimeStamp:()=>vi,Timer:()=>sf,getMilliSecondsAsHumanReadableString:()=>ef,getMilliSecondsFromUnits:()=>Kc,units:()=>Lr});function ht(e,t,r,n,i,o,s,a){return ht.fromTZ(ht.tp(e,t,r,n,i,o,s),a)}ht.fromTZISO=(e,t,r)=>ht.fromTZ(iE(e,t),r);ht.fromTZ=function(e,t){let r=new Date(Date.UTC(e.y,e.m-1,e.d,e.h,e.i,e.s)),n=Wc(e.tz,r),i=new Date(r.getTime()-n),o=Wc(e.tz,i);if(o-n===0)return i;{let s=new Date(r.getTime()-o),a=Wc(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}};ht.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}};ht.tp=(e,t,r,n,i,o,s)=>({y:e,m:t,d:r,h:n,i,s:o,tz:s});function Wc(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 iE(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("+")?ht.tp(r.getUTCFullYear(),r.getUTCMonth()+1,r.getUTCDate(),r.getUTCHours(),r.getUTCMinutes(),r.getUTCSeconds(),"Etc/UTC"):ht.tp(r.getFullYear(),r.getMonth()+1,r.getDate(),r.getHours(),r.getMinutes(),r.getSeconds(),t)}ht.minitz=ht;function oE(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 Ye(e.startAt,e.timezone)),e.stopAt&&(e.stopAt=new Ye(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 Yc=32,Vo=31|Yc,$g=[1,2,4,8,16];function mt(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()}mt.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 Ye(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,Vo),this.dayOfWeek[7]&&(this.dayOfWeek[0]=this.dayOfWeek[7])};mt.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)};mt.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.")};mt.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)};mt.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};mt.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)};mt.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]};mt.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)};mt.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)};mt.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")};mt.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")};mt.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};mt.prototype.setNthWeekdayOfMonth=function(e,t){if(t==="L")this.dayOfWeek[e]=this.dayOfWeek[e]|Yc;else if(t<6&&t>0)this.dayOfWeek[e]=this.dayOfWeek[e]|$g[t-1];else if(t===Vo)this.dayOfWeek[e]=Vo;else throw new TypeError(`CronPattern: nth weekday of of range, should be 1-5 or L. Value: ${t}`)};var Ug=[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 Ye(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 Ye)this.fromCronDate(e);else throw new TypeError("CronDate: Invalid type ("+typeof e+") passed to CronDate constructor")}Ye.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&Vo&&$g[s-1]&n)return!0;if(n&Yc){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};Ye.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=ht.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()};Ye.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};Ye.prototype.apply=function(){if(this.month>11||this.day>Ug[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};Ye.prototype.fromString=function(e){return this.fromDate(ht.fromTZISO(e,this.tz))};Ye.prototype.findNext=function(e,t,r,n){let i=this[t],o;r.lastDayOfMonth&&(this.month!==1?o=Ug[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&Vo)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};Ye.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)};Ye.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)};Ye.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)):ht(this.year,this.month+1,this.day,this.hour,this.minute,this.second,this.tz)};Ye.prototype.getTime=function(){return this.getDate().getTime()};function Ja(e){return Object.prototype.toString.call(e)==="[object Function]"||typeof e=="function"||e instanceof Function}function sE(e){typeof Deno<"u"&&typeof Deno.unrefTimer<"u"?Deno.unrefTimer(e):e&&typeof e.unref<"u"&&e.unref()}var Bg=30*1e3,Wo=[];function _e(e,t,r){if(!(this instanceof _e))return new _e(e,t,r);let n,i;if(Ja(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(Ja(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=oE(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 Ye(e,this.options.timezone||this.options.utcOffset):this._states.pattern=new mt(e,this.options.timezone),this.name){if(Wo.find(s=>s.name===this.name))throw new Error("Cron: Tried to initialize new named job '"+this.name+"', but name already taken.");Wo.push(this)}return i!==void 0&&(this.fn=i,this.schedule()),this}_e.prototype.nextRun=function(e){let t=this._next(e);return t?t.getDate():null};_e.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};_e.prototype.getPattern=function(){return this._states.pattern?this._states.pattern.pattern:void 0};_e.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};_e.prototype.isStopped=function(){return this._states.kill};_e.prototype.isBusy=function(){return this._states.blocking};_e.prototype.currentRun=function(){return this._states.currentRun?this._states.currentRun.getDate():null};_e.prototype.previousRun=function(){return this._states.previousRun?this._states.previousRun.getDate():null};_e.prototype.msToNext=function(e){e=e||new Date;let t=this._next(e);return t?t.getTime()-e.getTime():null};_e.prototype.stop=function(){this._states.kill=!0,this._states.currentTimeout&&clearTimeout(this._states.currentTimeout);let e=Wo.indexOf(this);e>=0&&Wo.splice(e,1)};_e.prototype.pause=function(){return this._states.paused=!0,!this._states.kill};_e.prototype.resume=function(){return this._states.paused=!1,!this._states.kill};_e.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>Bg&&(t=Bg),this._states.currentTimeout=setTimeout(()=>this._checkTrigger(r),t),this._states.currentTimeout&&this.options.unref&&sE(this._states.currentTimeout),this)};_e.prototype._trigger=async function(e){if(this._states.blocking=!0,this._states.currentRun=new Ye(void 0,this.options.timezone||this.options.utcOffset),this.options.catch)try{await this.fn(this,this.options.context)}catch(t){Ja(this.options.catch)&&this.options.catch(t,this)}else await this.fn(this,this.options.context);this._states.previousRun=new Ye(e,this.options.timezone||this.options.utcOffset),this._states.blocking=!1};_e.prototype.trigger=async function(){await this._trigger()};_e.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&&Ja(this.options.protect)&&setTimeout(()=>this.options.protect(this),0),this.schedule()};_e.prototype._next=function(e){let t=!!(e||this._states.currentRun);e=new Ye(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 Ye(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};_e.Cron=_e;_e.scheduledJobs=Wo;var bi=Ue(jg(),1),qg=Ue(zg(),1);function Xc(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 aE=(e,t)=>t===1?e:`${e}s`,lE=1e-7;function Qa(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+lE);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?" "+aE(a,s):l;r.push(c+u+f)},o=Xc(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(" ")}bi.default.extend(qg.default);var Yo=class{constructor(t,r,n){this.status="initial",this.nextExecutionUnix=0,this.cronExpression=r,this.jobFunction=n,this.cronParser=_e(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 Lr={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},Kc=e=>{let t=0,r=n=>{t=t+n};return e.years&&r(Lr.years(e.years)),e.months&&r(Lr.months(e.months)),e.weeks&&r(Lr.weeks(e.weeks)),e.days&&r(Lr.days(e.days)),e.hours&&r(Lr.hours(e.hours)),e.minutes&&r(Lr.minutes(e.minutes)),e.seconds&&r(Lr.seconds(e.seconds)),t},ef=e=>Qa(e);var tf=class{constructor(){this.status="stopped",this.cronjobs=new ft.ObjectMap}addCronjob(t,r){let n=new Yo(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 me.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 me.Timeout(t.getTimeToNextExecution()),console.log(`Next CronJob scheduled in ${ef(this.executionTimeout.getTimeLeft())}`)):(this.executionTimeout=new me.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 rf=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=bi.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 bi.default(this.getTime()).format(t)}isToday(){return bi.default(this.getTime()).isToday()}lessTimePassedToNow(t){let r=Kc(t);return Date.now()-this.getTime()<r}moreTimePassedToNow(t){return!this.lessTimePassedToNow(t)}};var nf=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 of=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 me.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 vi=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 sf=class{get timeLeft(){return this.timeInMilliseconds-this.pausedAt.change}constructor(t){this.state="initiated",this.completedDeferred=ne.defer(),this.timeInMilliseconds=t,this.completed=this.completedDeferred.promise}start(){if(!this.startedAt)this.currentTimeout=setTimeout(()=>{this.completedDeferred.resolve()},this.timeInMilliseconds),this.startedAt=new vi;else throw new Error("timer has been started before. Please use resume instead")}pause(){this.startedAt&&(clearTimeout(this.currentTimeout),this.currentTimeout=null,this.pausedAt=vi.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 uf=Ue(lf(),1);var cf=class{constructor(){this.executionSlots=[],this.isProcessing=!1}async getExclusiveExecutionSlot(t,r){let n=ne.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=ne.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(),me.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(),me.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 ff=class{constructor(t=16){this.hasSpace=new Ae.rxjs.Subject,this.itemsAvailable=new Ae.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 Go=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 ey=(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 Go,this.eventSubject=new Ae.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=ey("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 Jo=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 Ht.Timer(1e4),this.isFullfilled=!1,this.fullfillmentStore=[],this.interestDeferred=new ne.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&&me.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 pf=class{constructor(t,r={}){this.interestObjectMap=new En,this.interestObservable=new Ae.ObservableIntake,this.comparisonFunc=t,this.options=r}async addInterest(t,r){let n=this.comparisonFunc(t),i,o=new Jo(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 hf=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 mf=class{constructor(){this.referenceObjectMap=new En}checkAndTrack(t){return this.referenceObjectMap.checkForObject(t)?!1:(this.referenceObjectMap.add(t),!0)}};var df=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 Tn.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=ne.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 gf=class{constructor(t){this.storageArray=[],this.options=t}checkAggregationStatus(){let t=()=>{this.aggregationTimer=new Ht.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 yf=class{constructor(){this.symbolTree=new uf.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 Zo={};ae(Zo,{base64ToUint8Array:()=>NE,ensurePureUint8Array:()=>LE,isBufferLike:()=>RE,isUint8Array:()=>FE,uInt8ArrayExtras:()=>DE,uInt8ArrayToBase64:()=>ME});var _n={};ae(_n,{areUint8ArraysEqual:()=>xE,assertUint8Array:()=>jr,assertUint8ArrayOrArrayBuffer:()=>iy,base64ToString:()=>CE,base64ToUint8Array:()=>ly,compareUint8Arrays:()=>bE,concatUint8Arrays:()=>yE,getUintBE:()=>IE,hexToUint8Array:()=>_E,includes:()=>PE,indexOf:()=>uy,isUint8Array:()=>xf,stringToBase64:()=>AE,stringToUint8Array:()=>sy,toUint8Array:()=>gE,uint8ArrayToBase64:()=>ay,uint8ArrayToHex:()=>EE,uint8ArrayToString:()=>oy});var fE=Object.prototype.toString,pE="[object Uint8Array]",hE="[object ArrayBuffer]";function ny(e,t,r){return e?e.constructor===t?!0:fE.call(e)===r:!1}function xf(e){return ny(e,Uint8Array,pE)}function mE(e){return ny(e,ArrayBuffer,hE)}function dE(e){return xf(e)||mE(e)}function jr(e){if(!xf(e))throw new TypeError(`Expected \`Uint8Array\`, got \`${typeof e}\``)}function iy(e){if(!dE(e))throw new TypeError(`Expected \`Uint8Array\` or \`ArrayBuffer\`, got \`${typeof e}\``)}function gE(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 yE(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)jr(i),r.set(i,n),n+=i.length;return r}function xE(e,t){if(jr(e),jr(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 bE(e,t){jr(e),jr(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 ty={utf8:new globalThis.TextDecoder("utf8")};function oy(e,t="utf8"){return iy(e),ty[t]??=new globalThis.TextDecoder(t),ty[t].decode(e)}function Qo(e){if(typeof e!="string")throw new TypeError(`Expected \`string\`, got \`${typeof e}\``)}var wE=new globalThis.TextEncoder;function sy(e){return Qo(e),wE.encode(e)}function vE(e){return e.replaceAll("+","-").replaceAll("/","_").replace(/=+$/,"")}function SE(e){return e.replaceAll("-","+").replaceAll("_","/")}var kE=65535;function ay(e,{urlSafe:t=!1}={}){jr(e);let r;if(e.length<kE)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?vE(r):r}function ly(e){return Qo(e),Uint8Array.from(globalThis.atob(SE(e)),t=>t.codePointAt(0))}function AE(e,{urlSafe:t=!1}={}){return Qo(e),ay(sy(e),{urlSafe:t})}function CE(e){return Qo(e),oy(ly(e))}var TE=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));function EE(e){jr(e);let t="";for(let r=0;r<e.length;r++)t+=TE[e[r]];return t}var ry={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 _E(e){if(Qo(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=ry[e[n*2]],o=ry[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 IE(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 uy(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 PE(e,t){return uy(e,t)!==-1}var DE=_n;function ME(e){return _n.uint8ArrayToBase64(e)}function NE(e){return _n.base64ToUint8Array(e)}var FE=e=>_n.isUint8Array(e);function RE(e){return e&&typeof e.byteLength=="number"?!0:typeof Buffer<"u"&&Buffer.isBuffer?Buffer.isBuffer(e):!1}function LE(e){let t=new Uint8Array(e.length);return t.set(e),t}var Xa={};ae(Xa,{Guard:()=>Xo,GuardError:()=>Ko,GuardSet:()=>es,passGuardsOrReject:()=>BE});var Xo=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 Ko=class extends Error{constructor(t){super(t),this.name="GuardError"}};var es=class extends Xo{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 BE=async(e,t)=>{let r=new es(t);if(!await r.allGuardsPass(e)){let i=await r.getFailedHint(e);throw new Ko(`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 Bt=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(ce(c))try{c()}catch(x){o=x instanceof Ia?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{ag(m)}catch(x){o=o??[],x instanceof Ia?o=Lt(Lt([],wt(o)),wt(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 Ia(o)}},e.prototype.add=function(t){var r;if(t&&t!==this)if(this.closed)ag(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 _c=Bt.EMPTY;function Pa(e){return e instanceof Bt||e&&"closed"in e&&ce(e.remove)&&ce(e.add)&&ce(e.unsubscribe)}function ag(e){ce(e)?e():e.unsubscribe()}var $t={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};var mi={setTimeout:function(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var i=mi.delegate;return i?.setTimeout?i.setTimeout.apply(i,Lt([e,t],wt(r))):setTimeout.apply(void 0,Lt([e,t],wt(r)))},clearTimeout:function(e){var t=mi.delegate;return(t?.clearTimeout||clearTimeout)(e)},delegate:void 0};function Oa(e){mi.setTimeout(function(){var t=$t.onUnhandledError;if(t)t(e);else throw e})}function wn(){}var lg=function(){return Ic("C",void 0,void 0)}();function ug(e){return Ic("E",void 0,e)}function cg(e){return Ic("N",e,void 0)}function Ic(e,t,r){return{kind:e,value:t,error:r}}var vn=null;function di(e){if($t.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 fg(e){$t.useDeprecatedSynchronousErrorHandling&&vn&&(vn.errorThrown=!0,vn.error=e)}var $o=function(e){nt(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=IT,n}return t.create=function(r,n,i){return new Ma(r,n,i)},t.prototype.next=function(r){this.isStopped?Oc(cg(r),this):this._next(r)},t.prototype.error=function(r){this.isStopped?Oc(ug(r),this):(this.isStopped=!0,this._error(r))},t.prototype.complete=function(){this.isStopped?Oc(lg,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}(Bt);var TT=Function.prototype.bind;function Pc(e,t){return TT.call(e,t)}var ET=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){Da(n)}},e.prototype.error=function(t){var r=this.partialObserver;if(r.error)try{r.error(t)}catch(n){Da(n)}else Da(t)},e.prototype.complete=function(){var t=this.partialObserver;if(t.complete)try{t.complete()}catch(r){Da(r)}},e}(),Ma=function(e){nt(t,e);function t(r,n,i){var o=e.call(this)||this,s;if(ce(r)||!r)s={next:r??void 0,error:n??void 0,complete:i??void 0};else{var a;o&&$t.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 ET(s),o}return t}($o);function Da(e){$t.useDeprecatedSynchronousErrorHandling?fg(e):Oa(e)}function _T(e){throw e}function Oc(e,t){var r=$t.onStoppedNotification;r&&mi.setTimeout(function(){return r(e,t)})}var IT={closed:!0,next:wn,error:_T,complete:wn};var gi=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function Na(e){return e}function pg(e){return e.length===0?Na:e.length===1?e[0]:function(r){return e.reduce(function(n,i){return i(n)},r)}}var Ee=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=OT(t)?t:new Ma(t,r,n);return di(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=hg(r),new r(function(i,o){var s=new Ma({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[gi]=function(){return this},e.prototype.pipe=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return pg(t)(this)},e.prototype.toPromise=function(t){var r=this;return t=hg(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 hg(e){var t;return(t=e??$t.Promise)!==null&&t!==void 0?t:Promise}function PT(e){return e&&ce(e.next)&&ce(e.error)&&ce(e.complete)}function OT(e){return e&&e instanceof $o||PT(e)&&Pa(e)}function DT(e){return ce(e?.lift)}function ze(e){return function(t){if(DT(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 We(e,t,r,n,i){return new MT(e,t,r,n,i)}var MT=function(e){nt(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}($o);var mg=_a(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}});var dr=function(e){nt(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 dg(this,this);return n.operator=r,n},t.prototype._throwIfClosed=function(){if(this.closed)throw new mg},t.prototype.next=function(r){var n=this;di(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;di(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;di(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?_c:(this.currentObservers=null,a.push(r),new Bt(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 Ee;return r.source=this,r},t.create=function(r,n){return new dg(r,n)},t}(Ee);var dg=function(e){nt(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:_c},t}(dr);var Uo={now:function(){return(Uo.delegate||Date).now()},delegate:void 0};var Dc=function(e){nt(t,e);function t(r,n,i){r===void 0&&(r=1/0),n===void 0&&(n=1/0),i===void 0&&(i=Uo);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 gg=function(e){nt(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}(Bt);var jo={setInterval:function(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var i=jo.delegate;return i?.setInterval?i.setInterval.apply(i,Lt([e,t],wt(r))):setInterval.apply(void 0,Lt([e,t],wt(r)))},clearInterval:function(e){var t=jo.delegate;return(t?.clearInterval||clearInterval)(e)},delegate:void 0};var yg=function(e){nt(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),jo.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&&jo.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}(gg);var Mc=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=Uo.now,e}();var xg=function(e){nt(t,e);function t(r,n){n===void 0&&(n=Mc.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}(Mc);var zo=new xg(yg),bg=zo;function Fa(e){return e&&ce(e.schedule)}function NT(e){return e[e.length-1]}function yi(e){return Fa(NT(e))?e.pop():void 0}var xi=function(e){return e&&typeof e.length=="number"&&typeof e!="function"};function Ra(e){return ce(e?.then)}function La(e){return ce(e[gi])}function Ba(e){return Symbol.asyncIterator&&ce(e?.[Symbol.asyncIterator])}function $a(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 FT(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var Ua=FT();function ja(e){return ce(e?.[Ua])}function za(e){return og(this,arguments,function(){var r,n,i,o;return Ea(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 qa(e){return ce(e?.getReader)}function Xe(e){if(e instanceof Ee)return e;if(e!=null){if(La(e))return RT(e);if(xi(e))return LT(e);if(Ra(e))return BT(e);if(Ba(e))return wg(e);if(ja(e))return $T(e);if(qa(e))return UT(e)}throw $a(e)}function RT(e){return new Ee(function(t){var r=e[gi]();if(ce(r.subscribe))return r.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function LT(e){return new Ee(function(t){for(var r=0;r<e.length&&!t.closed;r++)t.next(e[r]);t.complete()})}function BT(e){return new Ee(function(t){e.then(function(r){t.closed||(t.next(r),t.complete())},function(r){return t.error(r)}).then(null,Oa)})}function $T(e){return new Ee(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 wg(e){return new Ee(function(t){jT(e,t).catch(function(r){return t.error(r)})})}function UT(e){return wg(za(e))}function jT(e,t){var r,n,i,o;return ig(this,void 0,void 0,function(){var s,a;return Ea(this,function(l){switch(l.label){case 0:l.trys.push([0,5,6,11]),r=sg(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 Ha(e,t){return t===void 0&&(t=0),ze(function(r,n){r.subscribe(We(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 Va(e,t){return t===void 0&&(t=0),ze(function(r,n){n.add(e.schedule(function(){return r.subscribe(n)},t))})}function vg(e,t){return Xe(e).pipe(Va(t),Ha(t))}function Sg(e,t){return Xe(e).pipe(Va(t),Ha(t))}function kg(e,t){return new Ee(function(r){var n=0;return t.schedule(function(){n===e.length?r.complete():(r.next(e[n++]),r.closed||this.schedule())})})}function Ag(e,t){return new Ee(function(r){var n;return Ct(r,t,function(){n=e[Ua](),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 ce(n?.return)&&n.return()}})}function Wa(e,t){if(!e)throw new Error("Iterable cannot be null");return new Ee(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 Cg(e,t){return Wa(za(e),t)}function Tg(e,t){if(e!=null){if(La(e))return vg(e,t);if(xi(e))return kg(e,t);if(Ra(e))return Sg(e,t);if(Ba(e))return Wa(e,t);if(ja(e))return Ag(e,t);if(qa(e))return Cg(e,t)}throw $a(e)}function Sn(e,t){return t?Tg(e,t):Xe(e)}function Nc(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=yi(e);return Sn(e,r)}function Eg(e){return e instanceof Date&&!isNaN(e)}function kn(e,t){return ze(function(r,n){var i=0;r.subscribe(We(n,function(o){n.next(e.call(t,o,i++))}))})}var zT=Array.isArray;function qT(e,t){return zT(t)?e.apply(void 0,Lt([],wt(t))):e(t)}function _g(e){return kn(function(t){return qT(e,t)})}function Ig(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;Xe(r(x,c++)).subscribe(We(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(We(t,h,function(){f=!0,p()})),function(){a?.()}}function qo(e,t,r){return r===void 0&&(r=1/0),ce(t)?qo(function(n,i){return kn(function(o,s){return t(n,o,i,s)})(Xe(e(n,i)))},r):(typeof t=="number"&&(r=t),ze(function(n,i){return Ig(n,i,e,r)}))}function Pg(e){return e===void 0&&(e=1/0),qo(Na,e)}function Og(){return Pg(1)}function Fc(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return Og()(Sn(e,yi(e)))}var HT=["addListener","removeListener"],VT=["addEventListener","removeEventListener"],WT=["on","off"];function An(e,t,r,n){if(ce(r)&&(n=r,r=void 0),n)return An(e,t,r).pipe(_g(n));var i=wt(JT(e)?VT.map(function(a){return function(l){return e[a](t,l,r)}}):YT(e)?HT.map(Dg(e,t)):GT(e)?WT.map(Dg(e,t)):[],2),o=i[0],s=i[1];if(!o&&xi(e))return qo(function(a){return An(a,t,r)})(Xe(e));if(!o)throw new TypeError("Invalid event target");return new Ee(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 Dg(e,t){return function(r){return function(n){return e[r](t,n)}}}function YT(e){return ce(e.addListener)&&ce(e.removeListener)}function GT(e){return ce(e.on)&&ce(e.off)}function JT(e){return ce(e.addEventListener)&&ce(e.removeEventListener)}function Mg(e,t,r){e===void 0&&(e=0),r===void 0&&(r=bg);var n=-1;return t!=null&&(Fa(t)?r=t:n=t),new Ee(function(i){var o=Eg(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 Rc(e,t){return ze(function(r,n){var i=0;r.subscribe(We(n,function(o){return e.call(t,o,i++)&&n.next(o)}))})}function Lc(e){return ze(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(We(r,function(a){o?.unsubscribe(),n=!0,i=a,o=We(r,s,wn),Xe(e(a)).subscribe(o)},function(){s(),r.complete()},void 0,function(){i=o=null}))})}function Bc(e,t){return t===void 0&&(t=zo),ze(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(We(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 $c(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=yi(e);return ze(function(n,i){(r?Fc(e,n,r):Fc(e,n)).subscribe(i)})}function Uc(e){return ze(function(t,r){Xe(e).subscribe(We(r,function(){return r.complete()},wn)),!r.closed&&t.subscribe(r)})}function Ng(e,t){return ze(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=Xe(e(w)).subscribe(We(n,h,m))},v=function(){if(u){u=!1;var w=c;c=null,n.next(w),!p&&x(w)}};r.subscribe(We(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 jc(e,t,r){t===void 0&&(t=zo);var n=Mg(e,t);return Ng(function(){return n},r)}var QT={debounce:Lc,debounceTime:Bc,map:kn,startWith:$c,takeUntil:Uc,throttleTime:jc,filter:Rc};var zc=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 qc=class{constructor(){this.observableFunctions={next:t=>{},complete:t=>{}},this.generator=null,this.buffered=!1,this.payloadBuffer=[],this.observable=new Ee(t=>{this.observableFunctions.next=(...r)=>t.next(r),this.observableFunctions.complete=()=>(this.completedDeffered.resolve(),t.complete())}),this.completedDeffered=ne.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 ZT={attribute:!0,type:String,converter:Mo,reflect:!1,hasChanged:ga},XT=(e=ZT,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 re(e){return(t,r)=>typeof r=="object"?XT(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 ge={};ae(ge,{DomTools:()=>Dt,TypedRequest:()=>ys,breakpoints:()=>Pr,css:()=>pd,elementBasic:()=>si,plugins:()=>hd});var si={};ae(si,{setup:()=>cU,staticStyles:()=>lU,styles:()=>uU});var Rl={};ae(Rl,{DeesComms:()=>$p});var me={};ae(me,{Timeout:()=>Ya,delayFor:()=>Fg,delayForRandom:()=>KT});var Fg=async(e,t,r=!1)=>(await new Ya(e,null,r).promise,t),KT=async(e,t,r,n=!1)=>(await Fg(Math.random()*(t-e)+e,null,n),r),Ya=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 _t={};ae(_t,{TypedHandler:()=>Dp,TypedRequest:()=>ys,TypedResponseError:()=>vr,TypedRouter:()=>gs,TypedTarget:()=>Mp,VirtualStream:()=>Jt});var Ln=Ue(Aa(),1);var ft={};ae(ft,{AsyncExecutionStack:()=>cf,BackpressuredArray:()=>ff,FastMap:()=>Go,Interest:()=>Jo,InterestMap:()=>pf,LimitedArray:()=>hf,LoopTracker:()=>mf,ObjectMap:()=>En,Stringmap:()=>df,TimedAggregtor:()=>gf,Tree:()=>yf,uni:()=>ey});var Tn={};ae(Tn,{SmartMatch:()=>Vc});var Ga={};ae(Ga,{isMatch:()=>rE,matcher:()=>tE});function Cn(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}var Hc=new Map,Rg=(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})},eE=(e,t)=>{t={caseSensitive:!1,...t};let r=e+JSON.stringify(t);if(Hc.has(r))return Hc.get(r);let n=e[0]==="!";n&&(e=e.slice(1)),e=Cn(e).replace(/\\\*/g,"[\\s\\S]*");let i=new RegExp(`^${e}$`,t.caseSensitive?"":"i");return i.negated=n,Hc.set(r,i),i},Lg=(e,t,r,n)=>{if(e=Rg(e,"inputs"),t=Rg(t,"patterns"),t.length===0)return[];t=t.map(s=>eE(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 tE(e,t,r){return Lg(e,t,r,!1)}function rE(e,t,r){return Lg(e,t,r,!0).length>0}var Vc=class{constructor(t){this.wildcard=t}match(t){return Ga.isMatch(t,this.wildcard)}};var Ht={};ae(Ht,{CronJob:()=>Yo,CronManager:()=>tf,ExtendedDate:()=>rf,HrtMeasurement:()=>nf,Interval:()=>of,TimeStamp:()=>vi,Timer:()=>sf,getMilliSecondsAsHumanReadableString:()=>ef,getMilliSecondsFromUnits:()=>Kc,units:()=>Lr});function ht(e,t,r,n,i,o,s,a){return ht.fromTZ(ht.tp(e,t,r,n,i,o,s),a)}ht.fromTZISO=(e,t,r)=>ht.fromTZ(iE(e,t),r);ht.fromTZ=function(e,t){let r=new Date(Date.UTC(e.y,e.m-1,e.d,e.h,e.i,e.s)),n=Wc(e.tz,r),i=new Date(r.getTime()-n),o=Wc(e.tz,i);if(o-n===0)return i;{let s=new Date(r.getTime()-o),a=Wc(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}};ht.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}};ht.tp=(e,t,r,n,i,o,s)=>({y:e,m:t,d:r,h:n,i,s:o,tz:s});function Wc(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 iE(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("+")?ht.tp(r.getUTCFullYear(),r.getUTCMonth()+1,r.getUTCDate(),r.getUTCHours(),r.getUTCMinutes(),r.getUTCSeconds(),"Etc/UTC"):ht.tp(r.getFullYear(),r.getMonth()+1,r.getDate(),r.getHours(),r.getMinutes(),r.getSeconds(),t)}ht.minitz=ht;function oE(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 Ye(e.startAt,e.timezone)),e.stopAt&&(e.stopAt=new Ye(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 Yc=32,Vo=31|Yc,$g=[1,2,4,8,16];function mt(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()}mt.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 Ye(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,Vo),this.dayOfWeek[7]&&(this.dayOfWeek[0]=this.dayOfWeek[7])};mt.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)};mt.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.")};mt.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)};mt.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};mt.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)};mt.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]};mt.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)};mt.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)};mt.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")};mt.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")};mt.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};mt.prototype.setNthWeekdayOfMonth=function(e,t){if(t==="L")this.dayOfWeek[e]=this.dayOfWeek[e]|Yc;else if(t<6&&t>0)this.dayOfWeek[e]=this.dayOfWeek[e]|$g[t-1];else if(t===Vo)this.dayOfWeek[e]=Vo;else throw new TypeError(`CronPattern: nth weekday of of range, should be 1-5 or L. Value: ${t}`)};var Ug=[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 Ye(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 Ye)this.fromCronDate(e);else throw new TypeError("CronDate: Invalid type ("+typeof e+") passed to CronDate constructor")}Ye.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&Vo&&$g[s-1]&n)return!0;if(n&Yc){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};Ye.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=ht.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()};Ye.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};Ye.prototype.apply=function(){if(this.month>11||this.day>Ug[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};Ye.prototype.fromString=function(e){return this.fromDate(ht.fromTZISO(e,this.tz))};Ye.prototype.findNext=function(e,t,r,n){let i=this[t],o;r.lastDayOfMonth&&(this.month!==1?o=Ug[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&Vo)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};Ye.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)};Ye.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)};Ye.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)):ht(this.year,this.month+1,this.day,this.hour,this.minute,this.second,this.tz)};Ye.prototype.getTime=function(){return this.getDate().getTime()};function Ja(e){return Object.prototype.toString.call(e)==="[object Function]"||typeof e=="function"||e instanceof Function}function sE(e){typeof Deno<"u"&&typeof Deno.unrefTimer<"u"?Deno.unrefTimer(e):e&&typeof e.unref<"u"&&e.unref()}var Bg=30*1e3,Wo=[];function _e(e,t,r){if(!(this instanceof _e))return new _e(e,t,r);let n,i;if(Ja(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(Ja(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=oE(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 Ye(e,this.options.timezone||this.options.utcOffset):this._states.pattern=new mt(e,this.options.timezone),this.name){if(Wo.find(s=>s.name===this.name))throw new Error("Cron: Tried to initialize new named job '"+this.name+"', but name already taken.");Wo.push(this)}return i!==void 0&&(this.fn=i,this.schedule()),this}_e.prototype.nextRun=function(e){let t=this._next(e);return t?t.getDate():null};_e.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};_e.prototype.getPattern=function(){return this._states.pattern?this._states.pattern.pattern:void 0};_e.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};_e.prototype.isStopped=function(){return this._states.kill};_e.prototype.isBusy=function(){return this._states.blocking};_e.prototype.currentRun=function(){return this._states.currentRun?this._states.currentRun.getDate():null};_e.prototype.previousRun=function(){return this._states.previousRun?this._states.previousRun.getDate():null};_e.prototype.msToNext=function(e){e=e||new Date;let t=this._next(e);return t?t.getTime()-e.getTime():null};_e.prototype.stop=function(){this._states.kill=!0,this._states.currentTimeout&&clearTimeout(this._states.currentTimeout);let e=Wo.indexOf(this);e>=0&&Wo.splice(e,1)};_e.prototype.pause=function(){return this._states.paused=!0,!this._states.kill};_e.prototype.resume=function(){return this._states.paused=!1,!this._states.kill};_e.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>Bg&&(t=Bg),this._states.currentTimeout=setTimeout(()=>this._checkTrigger(r),t),this._states.currentTimeout&&this.options.unref&&sE(this._states.currentTimeout),this)};_e.prototype._trigger=async function(e){if(this._states.blocking=!0,this._states.currentRun=new Ye(void 0,this.options.timezone||this.options.utcOffset),this.options.catch)try{await this.fn(this,this.options.context)}catch(t){Ja(this.options.catch)&&this.options.catch(t,this)}else await this.fn(this,this.options.context);this._states.previousRun=new Ye(e,this.options.timezone||this.options.utcOffset),this._states.blocking=!1};_e.prototype.trigger=async function(){await this._trigger()};_e.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&&Ja(this.options.protect)&&setTimeout(()=>this.options.protect(this),0),this.schedule()};_e.prototype._next=function(e){let t=!!(e||this._states.currentRun);e=new Ye(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 Ye(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};_e.Cron=_e;_e.scheduledJobs=Wo;var bi=Ue(jg(),1),qg=Ue(zg(),1);function Xc(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 aE=(e,t)=>t===1?e:`${e}s`,lE=1e-7;function Qa(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+lE);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?" "+aE(a,s):l;r.push(c+u+f)},o=Xc(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(" ")}bi.default.extend(qg.default);var Yo=class{constructor(t,r,n){this.status="initial",this.nextExecutionUnix=0,this.cronExpression=r,this.jobFunction=n,this.cronParser=_e(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 Lr={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},Kc=e=>{let t=0,r=n=>{t=t+n};return e.years&&r(Lr.years(e.years)),e.months&&r(Lr.months(e.months)),e.weeks&&r(Lr.weeks(e.weeks)),e.days&&r(Lr.days(e.days)),e.hours&&r(Lr.hours(e.hours)),e.minutes&&r(Lr.minutes(e.minutes)),e.seconds&&r(Lr.seconds(e.seconds)),t},ef=e=>Qa(e);var tf=class{constructor(){this.status="stopped",this.cronjobs=new ft.ObjectMap}addCronjob(t,r){let n=new Yo(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 me.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 me.Timeout(t.getTimeToNextExecution()),console.log(`Next CronJob scheduled in ${ef(this.executionTimeout.getTimeLeft())}`)):(this.executionTimeout=new me.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 rf=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=bi.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 bi.default(this.getTime()).format(t)}isToday(){return bi.default(this.getTime()).isToday()}lessTimePassedToNow(t){let r=Kc(t);return Date.now()-this.getTime()<r}moreTimePassedToNow(t){return!this.lessTimePassedToNow(t)}};var nf=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 of=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 me.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 vi=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 sf=class{get timeLeft(){return this.timeInMilliseconds-this.pausedAt.change}constructor(t){this.state="initiated",this.completedDeferred=ne.defer(),this.timeInMilliseconds=t,this.completed=this.completedDeferred.promise}start(){if(!this.startedAt)this.currentTimeout=setTimeout(()=>{this.completedDeferred.resolve()},this.timeInMilliseconds),this.startedAt=new vi;else throw new Error("timer has been started before. Please use resume instead")}pause(){this.startedAt&&(clearTimeout(this.currentTimeout),this.currentTimeout=null,this.pausedAt=vi.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 uf=Ue(lf(),1);var cf=class{constructor(){this.executionSlots=[],this.isProcessing=!1}async getExclusiveExecutionSlot(t,r){let n=ne.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=ne.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(),me.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(),me.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 ff=class{constructor(t=16){this.hasSpace=new Ae.rxjs.Subject,this.itemsAvailable=new Ae.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 Go=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 ey=(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 Go,this.eventSubject=new Ae.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=ey("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 Jo=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 Ht.Timer(1e4),this.isFullfilled=!1,this.fullfillmentStore=[],this.interestDeferred=new ne.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&&me.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 pf=class{constructor(t,r={}){this.interestObjectMap=new En,this.interestObservable=new Ae.ObservableIntake,this.comparisonFunc=t,this.options=r}async addInterest(t,r){let n=this.comparisonFunc(t),i,o=new Jo(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 hf=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 mf=class{constructor(){this.referenceObjectMap=new En}checkAndTrack(t){return this.referenceObjectMap.checkForObject(t)?!1:(this.referenceObjectMap.add(t),!0)}};var df=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 Tn.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=ne.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 gf=class{constructor(t){this.storageArray=[],this.options=t}checkAggregationStatus(){let t=()=>{this.aggregationTimer=new Ht.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 yf=class{constructor(){this.symbolTree=new uf.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 Zo={};ae(Zo,{base64ToUint8Array:()=>NE,ensurePureUint8Array:()=>LE,isBufferLike:()=>RE,isUint8Array:()=>FE,uInt8ArrayExtras:()=>DE,uInt8ArrayToBase64:()=>ME});var _n={};ae(_n,{areUint8ArraysEqual:()=>xE,assertUint8Array:()=>jr,assertUint8ArrayOrArrayBuffer:()=>iy,base64ToString:()=>CE,base64ToUint8Array:()=>ly,compareUint8Arrays:()=>bE,concatUint8Arrays:()=>yE,getUintBE:()=>IE,hexToUint8Array:()=>_E,includes:()=>PE,indexOf:()=>uy,isUint8Array:()=>xf,stringToBase64:()=>AE,stringToUint8Array:()=>sy,toUint8Array:()=>gE,uint8ArrayToBase64:()=>ay,uint8ArrayToHex:()=>EE,uint8ArrayToString:()=>oy});var fE=Object.prototype.toString,pE="[object Uint8Array]",hE="[object ArrayBuffer]";function ny(e,t,r){return e?e.constructor===t?!0:fE.call(e)===r:!1}function xf(e){return ny(e,Uint8Array,pE)}function mE(e){return ny(e,ArrayBuffer,hE)}function dE(e){return xf(e)||mE(e)}function jr(e){if(!xf(e))throw new TypeError(`Expected \`Uint8Array\`, got \`${typeof e}\``)}function iy(e){if(!dE(e))throw new TypeError(`Expected \`Uint8Array\` or \`ArrayBuffer\`, got \`${typeof e}\``)}function gE(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 yE(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)jr(i),r.set(i,n),n+=i.length;return r}function xE(e,t){if(jr(e),jr(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 bE(e,t){jr(e),jr(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 ty={utf8:new globalThis.TextDecoder("utf8")};function oy(e,t="utf8"){return iy(e),ty[t]??=new globalThis.TextDecoder(t),ty[t].decode(e)}function Qo(e){if(typeof e!="string")throw new TypeError(`Expected \`string\`, got \`${typeof e}\``)}var wE=new globalThis.TextEncoder;function sy(e){return Qo(e),wE.encode(e)}function vE(e){return e.replaceAll("+","-").replaceAll("/","_").replace(/=+$/,"")}function SE(e){return e.replaceAll("-","+").replaceAll("_","/")}var kE=65535;function ay(e,{urlSafe:t=!1}={}){jr(e);let r;if(e.length<kE)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?vE(r):r}function ly(e){return Qo(e),Uint8Array.from(globalThis.atob(SE(e)),t=>t.codePointAt(0))}function AE(e,{urlSafe:t=!1}={}){return Qo(e),ay(sy(e),{urlSafe:t})}function CE(e){return Qo(e),oy(ly(e))}var TE=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));function EE(e){jr(e);let t="";for(let r=0;r<e.length;r++)t+=TE[e[r]];return t}var ry={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 _E(e){if(Qo(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=ry[e[n*2]],o=ry[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 IE(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 uy(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 PE(e,t){return uy(e,t)!==-1}var DE=_n;function ME(e){return _n.uint8ArrayToBase64(e)}function NE(e){return _n.base64ToUint8Array(e)}var FE=e=>_n.isUint8Array(e);function RE(e){return e&&typeof e.byteLength=="number"?!0:typeof Buffer<"u"&&Buffer.isBuffer?Buffer.isBuffer(e):!1}function LE(e){let t=new Uint8Array(e.length);return t.set(e),t}var Xa={};ae(Xa,{Guard:()=>Xo,GuardError:()=>Ko,GuardSet:()=>es,passGuardsOrReject:()=>BE});var Xo=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 Ko=class extends Error{constructor(t){super(t),this.name="GuardError"}};var es=class extends Xo{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 BE=async(e,t)=>{let r=new es(t);if(!await r.allGuardsPass(e)){let i=await r.getFailedHint(e);throw new Ko(`Guards failed:
46
46
  ${i}
47
47
  `)}};var ds={};ae(ds,{WebRequest:()=>Op});var In={};ae(In,{Smartenv:()=>ts});var ts=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=ne.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 Oe={};ae(Oe,{Smartjson:()=>kp,deepEqualJsonLStrings:()=>dD,deepEqualObjects:()=>O0,foldDec:()=>mD,parse:()=>hs,parseBase64:()=>hD,parseJsonL:()=>cD,stringify:()=>qi,stringifyBase64:()=>pD,stringifyPretty:()=>fD});var Hr={};ae(Hr,{Base64:()=>xl,Domain:()=>bl,GitRepo:()=>wl,base64:()=>Bi,create:()=>ep,docker:()=>tp,indent:()=>ip,normalize:()=>op,type:()=>sp});var ep={};ae(ep,{createCryptoRandomString:()=>bP,createRandomString:()=>xP});var Ob=Ue(Aa(),1),Db=Ue(Kx(),1);var ob="3.7.7",ZI=ob,Li=typeof Buffer=="function",eb=typeof TextDecoder=="function"?new TextDecoder:void 0,tb=typeof TextEncoder=="function"?new TextEncoder:void 0,XI="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",ls=Array.prototype.slice.call(XI),ml=(e=>{let t={};return e.forEach((r,n)=>t[r]=n),t})(ls),KI=/^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/,tt=String.fromCharCode.bind(String),rb=typeof Uint8Array.from=="function"?Uint8Array.from.bind(Uint8Array):e=>new Uint8Array(Array.prototype.slice.call(e,0)),sb=e=>e.replace(/=/g,"").replace(/[+\/]/g,t=>t=="+"?"-":"_"),ab=e=>e.replace(/[^A-Za-z0-9\+\/]/g,""),lb=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+=ls[t>>18&63]+ls[t>>12&63]+ls[t>>6&63]+ls[t&63]}return s?o.slice(0,s-3)+"===".substring(s):o},Qf=typeof btoa=="function"?e=>btoa(e):Li?e=>Buffer.from(e,"binary").toString("base64"):lb,Gf=Li?e=>Buffer.from(e).toString("base64"):e=>{let r=[];for(let n=0,i=e.length;n<i;n+=4096)r.push(tt.apply(null,e.subarray(n,n+4096)));return Qf(r.join(""))},dl=(e,t=!1)=>t?sb(Gf(e)):Gf(e),eP=e=>{if(e.length<2){var t=e.charCodeAt(0);return t<128?e:t<2048?tt(192|t>>>6)+tt(128|t&63):tt(224|t>>>12&15)+tt(128|t>>>6&63)+tt(128|t&63)}else{var t=65536+(e.charCodeAt(0)-55296)*1024+(e.charCodeAt(1)-56320);return tt(240|t>>>18&7)+tt(128|t>>>12&63)+tt(128|t>>>6&63)+tt(128|t&63)}},tP=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,ub=e=>e.replace(tP,eP),nb=Li?e=>Buffer.from(e,"utf8").toString("base64"):tb?e=>Gf(tb.encode(e)):e=>Qf(ub(e)),Ri=(e,t=!1)=>t?sb(nb(e)):nb(e),ib=e=>Ri(e,!0),rP=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,nP=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 tt((r>>>10)+55296)+tt((r&1023)+56320);case 3:return tt((15&e.charCodeAt(0))<<12|(63&e.charCodeAt(1))<<6|63&e.charCodeAt(2));default:return tt((31&e.charCodeAt(0))<<6|63&e.charCodeAt(1))}},cb=e=>e.replace(rP,nP),fb=e=>{if(e=e.replace(/\s+/g,""),!KI.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=ml[e.charAt(o++)]<<18|ml[e.charAt(o++)]<<12|(n=ml[e.charAt(o++)])<<6|(i=ml[e.charAt(o++)]),r+=n===64?tt(t>>16&255):i===64?tt(t>>16&255,t>>8&255):tt(t>>16&255,t>>8&255,t&255);return r},Zf=typeof atob=="function"?e=>atob(ab(e)):Li?e=>Buffer.from(e,"base64").toString("binary"):fb,pb=Li?e=>rb(Buffer.from(e,"base64")):e=>rb(Zf(e).split("").map(t=>t.charCodeAt(0))),hb=e=>pb(mb(e)),iP=Li?e=>Buffer.from(e,"base64").toString("utf8"):eb?e=>eb.decode(pb(e)):e=>cb(Zf(e)),mb=e=>ab(e.replace(/[-_]/g,t=>t=="-"?"+":"/")),Jf=e=>iP(mb(e)),oP=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)},db=e=>({value:e,enumerable:!1,writable:!0,configurable:!0}),gb=function(){let e=(t,r)=>Object.defineProperty(String.prototype,t,db(r));e("fromBase64",function(){return Jf(this)}),e("toBase64",function(t){return Ri(this,t)}),e("toBase64URI",function(){return Ri(this,!0)}),e("toBase64URL",function(){return Ri(this,!0)}),e("toUint8Array",function(){return hb(this)})},yb=function(){let e=(t,r)=>Object.defineProperty(Uint8Array.prototype,t,db(r));e("toBase64",function(t){return dl(this,t)}),e("toBase64URI",function(){return dl(this,!0)}),e("toBase64URL",function(){return dl(this,!0)})},sP=()=>{gb(),yb()},us={version:ob,VERSION:ZI,atob:Zf,atobPolyfill:fb,btoa:Qf,btoaPolyfill:lb,fromBase64:Jf,toBase64:Ri,encode:Ri,encodeURI:ib,encodeURL:ib,utob:ub,btou:cb,decode:Jf,isValid:oP,fromUint8Array:dl,toUint8Array:hb,extendString:gb,extendUint8Array:yb,extendBuiltins:sP};var wb=Ue(bb(),1);function gl(e){let t=(0,wb.default)(e);if(t===0)return e;let r=new RegExp(`^[ \\t]{${t}}`,"gm");return e.replace(r,"")}var Kf=Ue(Pb(),1),e9=new ts;var xP=(e,t,r)=>Kf.default(e,t,r),bP=()=>Ob.uni();var tp={};ae(tp,{makeEnvObject:()=>wP});var wP=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 ip={};ae(ip,{indent:()=>SP,indentWithPrefix:()=>kP,normalize:()=>AP});var rp=e=>{let t=e.split(`
48
48
  `);return vP(t)},np=e=>{let t="";for(let r of e)t=t+r+`
@@ -83,9 +83,9 @@ ${i}
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
84
  `),i;function o(s){return n.stack.push(s),a;function a(){n.stack.pop()}}}function k2(e){throw new Error("Cannot handle value `"+e+"`, expected node")}function A2(e){let t=e;throw new Error("Cannot handle unknown node `"+t.type+"`")}function C2(e,t){if(e.type==="definition"&&e.type===t.type)return 0}function T2(e,t){return i1(e,this,t)}function E2(e,t){return o1(e,this,t)}function _2(e,t){return l1(this,e,t)}function Dh(){return{enter:{table:I2,tableData:c1,tableHeader:c1,tableRow:O2},exit:{codeText:D2,table:P2,tableData:Oh,tableHeader:Oh,tableRow:Oh}}}function I2(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 P2(e){this.exit(e),this.data.inTable=void 0}function O2(e){this.enter({type:"tableRow",children:[]},e)}function Oh(e){this.exit(e)}function c1(e){this.enter({type:"tableCell",children:[]},e)}function D2(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,M2));let r=this.stack[this.stack.length-1];r.type,r.value=t,this.exit(e)}function M2(e,t){return t==="|"?t:e}function Mh(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 IS(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 Nh(){return{exit:{taskListCheckValueChecked:f1,taskListCheckValueUnchecked:f1,paragraph:N2}}}function Fh(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:F2}}}function f1(e){let t=this.stack[this.stack.length-2];t.type,t.checked=e.type==="taskListCheckValueChecked"}function N2(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 F2(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 Rh(){return[ph(),mh(),gh(),Dh(),Nh()]}function Lh(e){return{extensions:[hh(),dh(),yh(),Mh(e),Fh()]}}function Le(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?(Le(e,e.length,0,t),e):t}var p1={}.hasOwnProperty;function su(e){let t={},r=-1;for(;++r<e.length;)R2(t,e[r]);return t}function R2(e,t){let r;for(r in t){let i=(p1.call(e,r)?e[r]:void 0)||(e[r]={}),o=t[r],s;if(o)for(s in o){p1.call(i,s)||(i[s]=[]);let a=o[s];L2(i[s],Array.isArray(a)?a:a?[a]:[])}}}function L2(e,t){let r=-1,n=[];for(;++r<t.length;)(t[r].add==="after"?e:n).push(t[r]);Le(e,0,0,n)}var B2={tokenize:q2,partial:!0},h1={tokenize:H2,partial:!0},m1={tokenize:V2,partial:!0},d1={tokenize:W2,partial:!0},$2={tokenize:Y2,partial:!0},g1={name:"wwwAutolink",tokenize:j2,previous:x1},y1={name:"protocolAutolink",tokenize:z2,previous:b1},Tr={name:"emailAutolink",tokenize:U2,previous:w1},er={};function $h(){return{text:er}}var Zn=48;for(;Zn<123;)er[Zn]=Tr,Zn++,Zn===58?Zn=65:Zn===91&&(Zn=97);er[43]=Tr;er[45]=Tr;er[46]=Tr;er[95]=Tr;er[72]=[Tr,y1];er[104]=[Tr,y1];er[87]=[Tr,g1];er[119]=[Tr,g1];function U2(e,t,r){let n=this,i,o;return s;function s(f){return!Bh(f)||!w1.call(n,n.previous)||Uh(n.events)?r(f):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),a(f))}function a(f){return Bh(f)?(e.consume(f),a):f===64?(e.consume(f),l):r(f)}function l(f){return f===46?e.check($2,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&&Qe(n.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(f)):r(f)}}function j2(e,t,r){let n=this;return i;function i(s){return s!==87&&s!==119||!x1.call(n,n.previous)||Uh(n.events)?r(s):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(B2,e.attempt(h1,e.attempt(m1,o),r),r)(s))}function o(s){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(s)}}function z2(e,t,r){let n=this,i="",o=!1;return s;function s(f){return(f===72||f===104)&&b1.call(n,n.previous)&&!Uh(n.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),i+=String.fromCodePoint(f),e.consume(f),a):r(f)}function a(f){if(Qe(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)||fe(f)||Kt(f)||Wn(f)?r(f):e.attempt(h1,e.attempt(m1,c),r)(f)}function c(f){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(f)}}function q2(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 H2(e,t,r){let n,i,o;return s;function s(u){return u===46||u===95?e.check(d1,l,a)(u):u===null||fe(u)||Kt(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 V2(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(d1,t,o)(s):s===null||fe(s)||Kt(s)?t(s):(e.consume(s),i)}function o(s){return s===41&&n++,e.consume(s),i}}function W2(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||fe(a)||Kt(a)?t(a):r(a)}function i(a){return a===null||a===40||a===91||fe(a)||Kt(a)?t(a):n(a)}function o(a){return Qe(a)?s(a):r(a)}function s(a){return a===59?(e.consume(a),n):Qe(a)?(e.consume(a),s):r(a)}}function Y2(e,t,r){return n;function n(o){return e.consume(o),i}function i(o){return Me(o)?r(o):t(o)}}function x1(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||fe(e)}function b1(e){return!Qe(e)}function w1(e){return!(e===47||Bh(e))}function Bh(e){return e===43||e===45||e===46||e===95||Me(e)}function Uh(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 Pt(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 Xr(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 Ds={name:"attention",resolveAll:G2,tokenize:J2};function G2(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};v1(f,-l),v1(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,Xr(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,Le(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 J2(e,t){let r=this.parser.constructs.attentionMarkers.null,n=this.previous,i=Cr(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=Cr(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 v1(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}var jh={name:"autolink",tokenize:Q2};function Q2(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 Qe(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):vS(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 Q(l)?(e.enter(r),a(l)):t(l)}function a(l){return Q(l)&&o++<i?(e.consume(l),a):(e.exit(r),t(l))}}var tr={partial:!0,tokenize:Z2};function Z2(e,t,r){return n;function n(o){return Q(o)?Z(e,i,"linePrefix")(o):i(o)}function i(o){return o===null||H(o)?t(o):r(o)}}var au={continuation:{tokenize:K2},exit:eL,name:"blockQuote",tokenize:X2};function X2(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 Q(s)?(e.enter("blockQuotePrefixWhitespace"),e.consume(s),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(s))}}function K2(e,t,r){let n=this;return i;function i(s){return Q(s)?Z(e,o,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(s):o(s)}function o(s){return e.attempt(au,t,r)(s)}}function eL(e){e.exit("blockQuote")}var lu={name:"characterEscape",tokenize:tL};function tL(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 kS(o)?(e.enter("characterEscapeValue"),e.consume(o),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):r(o)}}var uu={name:"characterReference",tokenize:rL};function rL(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=SS,c):(e.enter("characterReferenceValue"),o=7,s=_s,c(f))}function c(f){if(f===59&&i){let p=e.exit("characterReferenceValue");return s===Me&&!oo(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 S1={partial:!0,tokenize:iL},cu={concrete:!0,name:"codeFenced",tokenize:nL};function nL(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"),Q(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(S1,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)):Q(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&&Q(A)?Z(e,E,"linePrefix",o+1)(A):E(A)}function E(A){return A===null||H(A)?e.check(S1,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 C;function C(D){return A.enter("lineEnding"),A.consume(D),A.exit("lineEnding"),pe}function pe(D){return A.enter("codeFencedFence"),Q(D)?Z(A,B,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(D):B(D)}function B(D){return D===a?(A.enter("codeFencedFenceSequence"),_(D)):V(D)}function _(D){return D===a?($++,A.consume(D),_):$>=s?(A.exit("codeFencedFenceSequence"),Q(D)?Z(A,I,"whitespace")(D):I(D)):V(D)}function I(D){return D===null||H(D)?(A.exit("codeFencedFence"),R(D)):V(D)}}}function iL(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 Ms={name:"codeIndented",tokenize:sL},oL={partial:!0,tokenize:aL};function sL(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(oL,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 aL(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 zh={name:"codeText",previous:uL,resolve:lL,tokenize:cL};function lL(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 uL(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function cL(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 fu=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&&Ns(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),Ns(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),Ns(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);Ns(this.right,r.reverse())}else{let r=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);Ns(this.left,r.reverse())}}};function Ns(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 pu(e){let t={},r=-1,n,i,o,s,a,l,u,c=new fu(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,fL(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 Le(e,0,Number.POSITIVE_INFINITY,c.slice(0)),!u}function fL(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 qh={resolve:hL,tokenize:mL},pL={partial:!0,tokenize:dL};function hL(e){return pu(e),e}function mL(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(pL,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 dL(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 hu(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||fe(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 mu(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=!Q(h)),h===92?p:f)}function p(h){return h===91||h===92||h===93?(e.consume(h),a++,f):f(h)}}function du(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):Q(i)?Z(e,n,r?"linePrefix":"lineSuffix")(i):t(i)}}var Hh={name:"definition",tokenize:yL},gL={partial:!0,tokenize:xL};function yL(e,t,r){let n=this,i;return o;function o(h){return e.enter("definition"),s(h)}function s(h){return mu.call(n,e,a,r,"definitionLabel","definitionLabelMarker","definitionLabelString")(h)}function a(h){return i=st(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 fe(h)?Xn(e,u)(h):u(h)}function u(h){return hu(e,c,r,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(h)}function c(h){return e.attempt(gL,f,f)(h)}function f(h){return Q(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 xL(e,t,r){return n;function n(a){return fe(a)?Xn(e,i)(a):r(a)}function i(a){return du(e,o,r,"definitionTitle","definitionTitleMarker","definitionTitleString")(a)}function o(a){return Q(a)?Z(e,s,"whitespace")(a):s(a)}function s(a){return a===null||H(a)?t(a):r(a)}}var Vh={name:"hardBreakEscape",tokenize:bL};function bL(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 Wh={name:"headingAtx",resolve:wL,tokenize:vL};function wL(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"},Le(e,n,r-n+1,[["enter",i,t],["enter",o,t],["exit",o,t],["exit",i,t]])),e}function vL(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||fe(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)):Q(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||fe(c)?(e.exit("atxHeadingText"),a(c)):(e.consume(c),u)}}var k1=["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"],Yh=["pre","script","style","textarea"];var Gh={concrete:!0,name:"htmlFlow",resolveTo:AL,tokenize:CL},SL={partial:!0,tokenize:EL},kL={partial:!0,tokenize:TL};function AL(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 CL(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):Qe(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):Qe(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 se="CDATA[";return y===se.charCodeAt(a++)?(e.consume(y),a===se.length?n.interrupt?t:B:m):r(y)}function x(y){return Qe(y)?(e.consume(y),s=String.fromCharCode(y),v):r(y)}function v(y){if(y===null||y===47||y===62||fe(y)){let se=y===47,de=s.toLowerCase();return!se&&!o&&Yh.includes(de)?(i=1,n.interrupt?t(y):B(y)):k1.includes(s.toLowerCase())?(i=6,se?(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 Q(y)?(e.consume(y),E):C(y)}function b(y){return y===47?(e.consume(y),C):y===58||y===95||Qe(y)?(e.consume(y),z):Q(y)?(e.consume(y),b):C(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):Q(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):Q(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||fe(y)?q(y):(e.consume(y),V)}function $(y){return y===47||y===62||Q(y)?b(y):r(y)}function C(y){return y===62?(e.consume(y),pe):r(y)}function pe(y){return y===null||H(y)?B(y):Q(y)?(e.consume(y),pe):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(SL,K,_)(y)):y===null||H(y)?(e.exit("htmlFlowData"),_(y)):(e.consume(y),B)}function _(y){return e.check(kL,I,K)(y)}function I(y){return e.enter("lineEnding"),e.consume(y),e.exit("lineEnding"),D}function D(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 se=s.toLowerCase();return Yh.includes(se)?(e.consume(y),G):B(y)}return Qe(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"),K(y)):(e.consume(y),G)}function K(y){return e.exit("htmlFlow"),t(y)}}function TL(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 EL(e,t,r){return n;function n(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),e.attempt(tr,t,r)}}var Jh={name:"htmlText",tokenize:_L};function _L(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):Qe(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):Qe(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 Qe(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)):Q(d)?(e.consume(d),R):F(d)}function V(d){return d===45||Me(d)?(e.consume(d),V):d===47||d===62||fe(d)?$(d):r(d)}function $(d){return d===47?(e.consume(d),F):d===58||d===95||Qe(d)?(e.consume(d),C):H(d)?(s=$,W(d)):Q(d)?(e.consume(d),$):F(d)}function C(d){return d===45||d===46||d===58||d===95||Me(d)?(e.consume(d),C):pe(d)}function pe(d){return d===61?(e.consume(d),B):H(d)?(s=pe,W(d)):Q(d)?(e.consume(d),pe):$(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)):Q(d)?(e.consume(d),B):(e.consume(d),I)}function _(d){return d===i?(e.consume(d),i=void 0,D):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||fe(d)?$(d):(e.consume(d),I)}function D(d){return d===47||d===62||fe(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 Q(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:DL,resolveTo:ML,tokenize:NL},IL={tokenize:FL},PL={tokenize:RL},OL={tokenize:LL};function DL(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&&Le(e,0,e.length,r),e}function ML(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,Xr(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]]),Le(e,o,e.length,a),e}function NL(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(st(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(IL,c,s?c:f)(p):p===91?e.attempt(PL,c,s?u:f)(p):s?c(p):f(p)}function u(p){return e.attempt(OL,c,f)(p)}function c(p){return t(p)}function f(p){return o._balanced=!0,r(p)}}function FL(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 fe(f)?Xn(e,o)(f):o(f)}function o(f){return f===41?c(f):hu(e,s,a,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(f)}function s(f){return fe(f)?Xn(e,l)(f):c(f)}function a(f){return r(f)}function l(f){return f===34||f===39||f===40?du(e,u,r,"resourceTitle","resourceTitleMarker","resourceTitleString")(f):c(f)}function u(f){return fe(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 RL(e,t,r){let n=this;return i;function i(a){return mu.call(n,e,o,s,"reference","referenceMarker","referenceString")(a)}function o(a){return n.parser.defined.includes(st(n.sliceSerialize(n.events[n.events.length-1][1]).slice(1,-1)))?t(a):r(a)}function s(a){return r(a)}}function LL(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 Qh={name:"labelStartImage",resolveAll:Kn.resolveAll,tokenize:BL};function BL(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 Zh={name:"labelStartLink",resolveAll:Kn.resolveAll,tokenize:$L};function $L(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 Fs={name:"lineEnding",tokenize:UL};function UL(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:jL};function jL(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"),Q(u)?Z(e,a,"whitespace")(u):a(u))}}var at={continuation:{tokenize:VL},exit:YL,name:"list",tokenize:HL},zL={partial:!0,tokenize:GL},qL={partial:!0,tokenize:WL};function HL(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:_s(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 _s(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(tr,n.interrupt?r:c,e.attempt(zL,p,f))}function c(h){return n.containerState.initialBlankLine=!0,o++,p(h)}function f(h){return Q(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 VL(e,t,r){let n=this;return n.containerState._closeFlow=void 0,e.check(tr,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||!Q(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(qL,t,s)(a))}function s(a){return n.containerState._closeFlow=!0,n.interrupt=void 0,Z(e,e.attempt(at,t,r),"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(a)}}function WL(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 YL(e){e.exit(this.containerState.type)}function GL(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!Q(o)&&s&&s[1].type==="listItemPrefixWhitespace"?t(o):r(o)}}var gu={name:"setextUnderline",resolveTo:JL,tokenize:QL};function JL(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 QL(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"),Q(u)?Z(e,l,"lineSuffix")(u):l(u))}function l(u){return u===null||H(u)?(e.exit("setextHeadingLine"),t(u)):r(u)}}var ZL={tokenize:iB,partial:!0};function Xh(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:tB,continuation:{tokenize:rB},exit:nB}},text:{91:{name:"gfmFootnoteCall",tokenize:eB},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:XL,resolveTo:KL}}}}function XL(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=st(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 KL(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 eB(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||fe(f))return r(f);if(f===93){e.exit("chunkString");let p=e.exit("gfmFootnoteCallString");return i.includes(st(n.sliceSerialize(p)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(f),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):r(f)}return fe(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 tB(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||fe(m))return r(m);if(m===93){e.exit("chunkString");let x=e.exit("gfmFootnoteDefinitionLabelString");return o=st(n.sliceSerialize(x)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(m),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),p}return fe(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 rB(e,t,r){return e.check(tr,t,e.attempt(ZL,t,r))}function nB(e){e.exit("gfmFootnoteDefinition")}function iB(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 Kh(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&&Le(p,p.length,0,Xr(h,s.slice(u+1,l),a)),Le(p,p.length,0,[["exit",f,a],["enter",s[l][1],a],["exit",s[l][1],a],["exit",c,a]]),Le(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=Cr(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=Cr(m);return v._open=!w||w===2&&!!x,v._close=!x||x===2&&!!w,a(m)}}}var yu=class{constructor(){this.map=[]}add(t,r,n){oB(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 oB(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 A1(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 em(){return{flow:{null:{name:"table",tokenize:sB,resolveAll:aB}}}}function sB(e,t,r){let n=this,i=0,o=0,s;return a;function a(C){let pe=n.events.length-1;for(;pe>-1;){let I=n.events[pe][1].type;if(I==="lineEnding"||I==="linePrefix")pe--;else break}let B=pe>-1?n.events[pe][1].type:null,_=B==="tableHead"||B==="tableRow"?A:l;return _===A&&n.parser.lazy[n.now().line]?r(C):_(C)}function l(C){return e.enter("tableHead"),e.enter("tableRow"),u(C)}function u(C){return C===124||(s=!0,o+=1),c(C)}function c(C){return C===null?r(C):H(C)?o>1?(o=0,n.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(C),e.exit("lineEnding"),h):r(C):Q(C)?Z(e,c,"whitespace")(C):(o+=1,s&&(s=!1,i+=1),C===124?(e.enter("tableCellDivider"),e.consume(C),e.exit("tableCellDivider"),s=!0,c):(e.enter("data"),f(C)))}function f(C){return C===null||C===124||fe(C)?(e.exit("data"),c(C)):(e.consume(C),C===92?p:f)}function p(C){return C===92||C===124?(e.consume(C),f):f(C)}function h(C){return n.interrupt=!1,n.parser.lazy[n.now().line]?r(C):(e.enter("tableDelimiterRow"),s=!1,Q(C)?Z(e,m,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(C):m(C))}function m(C){return C===45||C===58?v(C):C===124?(s=!0,e.enter("tableCellDivider"),e.consume(C),e.exit("tableCellDivider"),x):q(C)}function x(C){return Q(C)?Z(e,v,"whitespace")(C):v(C)}function v(C){return C===58?(o+=1,s=!0,e.enter("tableDelimiterMarker"),e.consume(C),e.exit("tableDelimiterMarker"),w):C===45?(o+=1,w(C)):C===null||H(C)?z(C):q(C)}function w(C){return C===45?(e.enter("tableDelimiterFiller"),E(C)):q(C)}function E(C){return C===45?(e.consume(C),E):C===58?(s=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(C),e.exit("tableDelimiterMarker"),b):(e.exit("tableDelimiterFiller"),b(C))}function b(C){return Q(C)?Z(e,z,"whitespace")(C):z(C)}function z(C){return C===124?m(C):C===null||H(C)?!s||i!==o?q(C):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(C)):q(C)}function q(C){return r(C)}function A(C){return e.enter("tableRow"),R(C)}function R(C){return C===124?(e.enter("tableCellDivider"),e.consume(C),e.exit("tableCellDivider"),R):C===null||H(C)?(e.exit("tableRow"),t(C)):Q(C)?Z(e,R,"whitespace")(C):(e.enter("data"),V(C))}function V(C){return C===null||C===124||fe(C)?(e.exit("data"),R(C)):(e.consume(C),C===92?$:V)}function $(C){return C===92||C===124?(e.consume(C),V):V(C)}}function aB(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 yu;for(;++r<e.length;){let h=e[r],m=h[1];h[0]==="enter"?m.type==="tableHead"?(a=!1,l!==0&&(C1(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=xu(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=xu(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=xu(p,t,o,i,r,f)):s[1]!==0&&(f=xu(p,t,s,i,r,f)),i=0):i&&(m.type==="data"||m.type==="tableDelimiterMarker"||m.type==="tableDelimiterFiller")&&(s[3]=r)}for(l!==0&&C1(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=A1(t.events,r))}return e}function xu(e,t,r,n,i,o){let s=n===1?"tableHeader":n===2?"tableDelimiter":"tableData",a="tableContent";r[0]!==0&&(o.end=Object.assign({},so(t.events,r[0])),e.add(r[0],0,[["exit",o,t]]));let l=so(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=so(t.events,r[2]),c=so(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({},so(t.events,i)),e.add(i,0,[["exit",o,t]]),o=void 0),o}function C1(e,t,r,n,i){let o=[],s=so(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 so(e,t){let r=e[t],n=r[0]==="enter"?"start":"end";return r[1][n]}var lB={name:"tasklistCheck",tokenize:uB};function tm(){return{text:{91:lB}}}function uB(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 fe(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):Q(l)?e.check({tokenize:cB},t,r)(l):r(l)}}function cB(e,t,r){return Z(e,n,"whitespace");function n(i){return i===null?r(i):t(i)}}function T1(e){return su([$h(),Xh(),Kh(e),em(),tm()])}var fB={};function Rs(e){let t=this,r=e||fB,n=t.data(),i=n.micromarkExtensions||(n.micromarkExtensions=[]),o=n.fromMarkdownExtensions||(n.fromMarkdownExtensions=[]),s=n.toMarkdownExtensions||(n.toMarkdownExtensions=[]);i.push(T1(r)),o.push(Rh()),s.push(Lh(r))}var E1={tokenize:pB};function pB(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 I1={tokenize:hB},_1={tokenize:mB};function hB(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 Le(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(_1,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(_1,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,$,C;for(;V--;)if(t.events[V][0]==="exit"&&t.events[V][1].type==="chunkFlow"){if($){C=t.events[V][1].end;break}$=!0}for(w(n),A=R;A<t.events.length;)t.events[A][1].end={...C},A++;Le(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 mB(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 P1={tokenize:dB};function dB(e){let t=this,r=e.attempt(tr,n,e.attempt(this.parser.constructs.flowInitial,i,Z(e,e.attempt(this.parser.constructs.flow,i,e.attempt(qh,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 O1={resolveAll:F1()},D1=N1("string"),M1=N1("text");function N1(e){return{resolveAll:F1(e==="text"?gB: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 F1(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 gB(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 rm={};ae(rm,{attentionMarkers:()=>AB,contentInitial:()=>xB,disable:()=>CB,document:()=>yB,flow:()=>wB,flowInitial:()=>bB,insideSpan:()=>kB,string:()=>vB,text:()=>SB});var yB={42:at,43:at,45:at,48:at,49:at,50:at,51:at,52:at,53:at,54:at,55:at,56:at,57:at,62:au},xB={91:Hh},bB={[-2]:Ms,[-1]:Ms,32:Ms},wB={35:Wh,42:ei,45:[gu,ei],60:Gh,61:gu,95:ei,96:cu,126:cu},vB={38:uu,92:lu},SB={[-5]:Fs,[-4]:Fs,[-3]:Fs,33:Qh,38:uu,42:Ds,60:[jh,Jh],91:Zh,92:[Vh,lu],93:Kn,95:Ds,96:zh},kB={null:[Ds,O1]},AB={null:[42,95]},CB={null:[]};function R1(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?[]:(C(t,0),c.events=Xr(o,c.events,c),c.events)}function m(_,I){return EB(x(_),I)}function x(_){return TB(s,_)}function v(){let{_bufferIndex:_,_index:I,line:D,column:F,offset:W}=n;return{_bufferIndex:_,_index:I,line:D,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 D=I||{};return D.type=_,D.start=v(),c.events.push(["enter",D,c]),a.push(D),D}function A(_){let I=a.pop();return I.end=v(),c.events.push(["exit",I,c]),I}function R(_,I){C(_,I.from)}function V(_,I){I.restore()}function $(_,I){return D;function D(F,W,M){let U,d,G,K;return Array.isArray(F)?se(F):"tokenize"in F?se([F]):y(F);function y(g){return S;function S(T){let O=T!==null&&g[T],Y=T!==null&&g.null,ge=[...Array.isArray(O)?O:O?[O]:[],...Array.isArray(Y)?Y:Y?[Y]:[]];return se(ge)(T)}}function se(g){return U=g,d=0,g.length===0?M:de(g[d])}function de(g){return S;function S(T){return K=pe(),G=g,g.partial||(c.currentConstruct=g),g.name&&c.parser.constructs.disable.null.includes(g.name)?k(T):g.tokenize.call(I?Object.assign(Object.create(c),I):c,u,Ie,k)(T)}}function Ie(g){return l=!0,_(G,K),W}function k(g){return l=!0,K.restore(),++d<U.length?de(U[d]):M}}}function C(_,I){_.resolveAll&&!o.includes(_)&&o.push(_),_.resolve&&Le(c.events,I,c.events.length-I,_.resolve(c.events.slice(I),c)),_.resolveTo&&(c.events=_.resolveTo(c.events,c))}function pe(){let _=v(),I=c.previous,D=c.currentConstruct,F=c.events.length,W=Array.from(a);return{from:F,restore:M};function M(){n=_,c.previous=I,c.currentConstruct=D,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 TB(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 EB(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 IS(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 Nh(){return{exit:{taskListCheckValueChecked:f1,taskListCheckValueUnchecked:f1,paragraph:N2}}}function Fh(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:F2}}}function f1(e){let t=this.stack[this.stack.length-2];t.type,t.checked=e.type==="taskListCheckValueChecked"}function N2(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 F2(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 Rh(){return[ph(),mh(),gh(),Dh(),Nh()]}function Lh(e){return{extensions:[hh(),dh(),yh(),Mh(e),Fh()]}}function Le(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?(Le(e,e.length,0,t),e):t}var p1={}.hasOwnProperty;function su(e){let t={},r=-1;for(;++r<e.length;)R2(t,e[r]);return t}function R2(e,t){let r;for(r in t){let i=(p1.call(e,r)?e[r]:void 0)||(e[r]={}),o=t[r],s;if(o)for(s in o){p1.call(i,s)||(i[s]=[]);let a=o[s];L2(i[s],Array.isArray(a)?a:a?[a]:[])}}}function L2(e,t){let r=-1,n=[];for(;++r<t.length;)(t[r].add==="after"?e:n).push(t[r]);Le(e,0,0,n)}var B2={tokenize:q2,partial:!0},h1={tokenize:H2,partial:!0},m1={tokenize:V2,partial:!0},d1={tokenize:W2,partial:!0},$2={tokenize:Y2,partial:!0},g1={name:"wwwAutolink",tokenize:j2,previous:x1},y1={name:"protocolAutolink",tokenize:z2,previous:b1},Tr={name:"emailAutolink",tokenize:U2,previous:w1},er={};function $h(){return{text:er}}var Zn=48;for(;Zn<123;)er[Zn]=Tr,Zn++,Zn===58?Zn=65:Zn===91&&(Zn=97);er[43]=Tr;er[45]=Tr;er[46]=Tr;er[95]=Tr;er[72]=[Tr,y1];er[104]=[Tr,y1];er[87]=[Tr,g1];er[119]=[Tr,g1];function U2(e,t,r){let n=this,i,o;return s;function s(f){return!Bh(f)||!w1.call(n,n.previous)||Uh(n.events)?r(f):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),a(f))}function a(f){return Bh(f)?(e.consume(f),a):f===64?(e.consume(f),l):r(f)}function l(f){return f===46?e.check($2,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&&Qe(n.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(f)):r(f)}}function j2(e,t,r){let n=this;return i;function i(s){return s!==87&&s!==119||!x1.call(n,n.previous)||Uh(n.events)?r(s):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(B2,e.attempt(h1,e.attempt(m1,o),r),r)(s))}function o(s){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(s)}}function z2(e,t,r){let n=this,i="",o=!1;return s;function s(f){return(f===72||f===104)&&b1.call(n,n.previous)&&!Uh(n.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),i+=String.fromCodePoint(f),e.consume(f),a):r(f)}function a(f){if(Qe(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)||fe(f)||Kt(f)||Wn(f)?r(f):e.attempt(h1,e.attempt(m1,c),r)(f)}function c(f){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(f)}}function q2(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 H2(e,t,r){let n,i,o;return s;function s(u){return u===46||u===95?e.check(d1,l,a)(u):u===null||fe(u)||Kt(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 V2(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(d1,t,o)(s):s===null||fe(s)||Kt(s)?t(s):(e.consume(s),i)}function o(s){return s===41&&n++,e.consume(s),i}}function W2(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||fe(a)||Kt(a)?t(a):r(a)}function i(a){return a===null||a===40||a===91||fe(a)||Kt(a)?t(a):n(a)}function o(a){return Qe(a)?s(a):r(a)}function s(a){return a===59?(e.consume(a),n):Qe(a)?(e.consume(a),s):r(a)}}function Y2(e,t,r){return n;function n(o){return e.consume(o),i}function i(o){return Me(o)?r(o):t(o)}}function x1(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||fe(e)}function b1(e){return!Qe(e)}function w1(e){return!(e===47||Bh(e))}function Bh(e){return e===43||e===45||e===46||e===95||Me(e)}function Uh(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 Pt(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 Xr(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 Ds={name:"attention",resolveAll:G2,tokenize:J2};function G2(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};v1(f,-l),v1(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,Xr(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,Le(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 J2(e,t){let r=this.parser.constructs.attentionMarkers.null,n=this.previous,i=Cr(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=Cr(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 v1(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}var jh={name:"autolink",tokenize:Q2};function Q2(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 Qe(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):vS(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 Q(l)?(e.enter(r),a(l)):t(l)}function a(l){return Q(l)&&o++<i?(e.consume(l),a):(e.exit(r),t(l))}}var tr={partial:!0,tokenize:Z2};function Z2(e,t,r){return n;function n(o){return Q(o)?Z(e,i,"linePrefix")(o):i(o)}function i(o){return o===null||H(o)?t(o):r(o)}}var au={continuation:{tokenize:K2},exit:eL,name:"blockQuote",tokenize:X2};function X2(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 Q(s)?(e.enter("blockQuotePrefixWhitespace"),e.consume(s),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(s))}}function K2(e,t,r){let n=this;return i;function i(s){return Q(s)?Z(e,o,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(s):o(s)}function o(s){return e.attempt(au,t,r)(s)}}function eL(e){e.exit("blockQuote")}var lu={name:"characterEscape",tokenize:tL};function tL(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 kS(o)?(e.enter("characterEscapeValue"),e.consume(o),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):r(o)}}var uu={name:"characterReference",tokenize:rL};function rL(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=SS,c):(e.enter("characterReferenceValue"),o=7,s=_s,c(f))}function c(f){if(f===59&&i){let p=e.exit("characterReferenceValue");return s===Me&&!oo(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 S1={partial:!0,tokenize:iL},cu={concrete:!0,name:"codeFenced",tokenize:nL};function nL(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"),Q(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(S1,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)):Q(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&&Q(A)?Z(e,E,"linePrefix",o+1)(A):E(A)}function E(A){return A===null||H(A)?e.check(S1,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 C;function C(D){return A.enter("lineEnding"),A.consume(D),A.exit("lineEnding"),pe}function pe(D){return A.enter("codeFencedFence"),Q(D)?Z(A,B,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(D):B(D)}function B(D){return D===a?(A.enter("codeFencedFenceSequence"),_(D)):V(D)}function _(D){return D===a?($++,A.consume(D),_):$>=s?(A.exit("codeFencedFenceSequence"),Q(D)?Z(A,I,"whitespace")(D):I(D)):V(D)}function I(D){return D===null||H(D)?(A.exit("codeFencedFence"),R(D)):V(D)}}}function iL(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 Ms={name:"codeIndented",tokenize:sL},oL={partial:!0,tokenize:aL};function sL(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(oL,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 aL(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 zh={name:"codeText",previous:uL,resolve:lL,tokenize:cL};function lL(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 uL(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function cL(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 fu=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&&Ns(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),Ns(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),Ns(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);Ns(this.right,r.reverse())}else{let r=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);Ns(this.left,r.reverse())}}};function Ns(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 pu(e){let t={},r=-1,n,i,o,s,a,l,u,c=new fu(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,fL(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 Le(e,0,Number.POSITIVE_INFINITY,c.slice(0)),!u}function fL(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 qh={resolve:hL,tokenize:mL},pL={partial:!0,tokenize:dL};function hL(e){return pu(e),e}function mL(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(pL,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 dL(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 hu(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||fe(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 mu(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=!Q(h)),h===92?p:f)}function p(h){return h===91||h===92||h===93?(e.consume(h),a++,f):f(h)}}function du(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):Q(i)?Z(e,n,r?"linePrefix":"lineSuffix")(i):t(i)}}var Hh={name:"definition",tokenize:yL},gL={partial:!0,tokenize:xL};function yL(e,t,r){let n=this,i;return o;function o(h){return e.enter("definition"),s(h)}function s(h){return mu.call(n,e,a,r,"definitionLabel","definitionLabelMarker","definitionLabelString")(h)}function a(h){return i=st(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 fe(h)?Xn(e,u)(h):u(h)}function u(h){return hu(e,c,r,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(h)}function c(h){return e.attempt(gL,f,f)(h)}function f(h){return Q(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 xL(e,t,r){return n;function n(a){return fe(a)?Xn(e,i)(a):r(a)}function i(a){return du(e,o,r,"definitionTitle","definitionTitleMarker","definitionTitleString")(a)}function o(a){return Q(a)?Z(e,s,"whitespace")(a):s(a)}function s(a){return a===null||H(a)?t(a):r(a)}}var Vh={name:"hardBreakEscape",tokenize:bL};function bL(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 Wh={name:"headingAtx",resolve:wL,tokenize:vL};function wL(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"},Le(e,n,r-n+1,[["enter",i,t],["enter",o,t],["exit",o,t],["exit",i,t]])),e}function vL(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||fe(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)):Q(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||fe(c)?(e.exit("atxHeadingText"),a(c)):(e.consume(c),u)}}var k1=["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"],Yh=["pre","script","style","textarea"];var Gh={concrete:!0,name:"htmlFlow",resolveTo:AL,tokenize:CL},SL={partial:!0,tokenize:EL},kL={partial:!0,tokenize:TL};function AL(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 CL(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):Qe(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):Qe(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 se="CDATA[";return y===se.charCodeAt(a++)?(e.consume(y),a===se.length?n.interrupt?t:B:m):r(y)}function x(y){return Qe(y)?(e.consume(y),s=String.fromCharCode(y),v):r(y)}function v(y){if(y===null||y===47||y===62||fe(y)){let se=y===47,de=s.toLowerCase();return!se&&!o&&Yh.includes(de)?(i=1,n.interrupt?t(y):B(y)):k1.includes(s.toLowerCase())?(i=6,se?(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 Q(y)?(e.consume(y),E):C(y)}function b(y){return y===47?(e.consume(y),C):y===58||y===95||Qe(y)?(e.consume(y),z):Q(y)?(e.consume(y),b):C(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):Q(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):Q(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||fe(y)?q(y):(e.consume(y),V)}function $(y){return y===47||y===62||Q(y)?b(y):r(y)}function C(y){return y===62?(e.consume(y),pe):r(y)}function pe(y){return y===null||H(y)?B(y):Q(y)?(e.consume(y),pe):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(SL,K,_)(y)):y===null||H(y)?(e.exit("htmlFlowData"),_(y)):(e.consume(y),B)}function _(y){return e.check(kL,I,K)(y)}function I(y){return e.enter("lineEnding"),e.consume(y),e.exit("lineEnding"),D}function D(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 se=s.toLowerCase();return Yh.includes(se)?(e.consume(y),G):B(y)}return Qe(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"),K(y)):(e.consume(y),G)}function K(y){return e.exit("htmlFlow"),t(y)}}function TL(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 EL(e,t,r){return n;function n(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),e.attempt(tr,t,r)}}var Jh={name:"htmlText",tokenize:_L};function _L(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):Qe(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):Qe(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 Qe(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)):Q(d)?(e.consume(d),R):F(d)}function V(d){return d===45||Me(d)?(e.consume(d),V):d===47||d===62||fe(d)?$(d):r(d)}function $(d){return d===47?(e.consume(d),F):d===58||d===95||Qe(d)?(e.consume(d),C):H(d)?(s=$,W(d)):Q(d)?(e.consume(d),$):F(d)}function C(d){return d===45||d===46||d===58||d===95||Me(d)?(e.consume(d),C):pe(d)}function pe(d){return d===61?(e.consume(d),B):H(d)?(s=pe,W(d)):Q(d)?(e.consume(d),pe):$(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)):Q(d)?(e.consume(d),B):(e.consume(d),I)}function _(d){return d===i?(e.consume(d),i=void 0,D):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||fe(d)?$(d):(e.consume(d),I)}function D(d){return d===47||d===62||fe(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 Q(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:DL,resolveTo:ML,tokenize:NL},IL={tokenize:FL},PL={tokenize:RL},OL={tokenize:LL};function DL(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&&Le(e,0,e.length,r),e}function ML(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,Xr(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]]),Le(e,o,e.length,a),e}function NL(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(st(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(IL,c,s?c:f)(p):p===91?e.attempt(PL,c,s?u:f)(p):s?c(p):f(p)}function u(p){return e.attempt(OL,c,f)(p)}function c(p){return t(p)}function f(p){return o._balanced=!0,r(p)}}function FL(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 fe(f)?Xn(e,o)(f):o(f)}function o(f){return f===41?c(f):hu(e,s,a,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(f)}function s(f){return fe(f)?Xn(e,l)(f):c(f)}function a(f){return r(f)}function l(f){return f===34||f===39||f===40?du(e,u,r,"resourceTitle","resourceTitleMarker","resourceTitleString")(f):c(f)}function u(f){return fe(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 RL(e,t,r){let n=this;return i;function i(a){return mu.call(n,e,o,s,"reference","referenceMarker","referenceString")(a)}function o(a){return n.parser.defined.includes(st(n.sliceSerialize(n.events[n.events.length-1][1]).slice(1,-1)))?t(a):r(a)}function s(a){return r(a)}}function LL(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 Qh={name:"labelStartImage",resolveAll:Kn.resolveAll,tokenize:BL};function BL(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 Zh={name:"labelStartLink",resolveAll:Kn.resolveAll,tokenize:$L};function $L(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 Fs={name:"lineEnding",tokenize:UL};function UL(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:jL};function jL(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"),Q(u)?Z(e,a,"whitespace")(u):a(u))}}var at={continuation:{tokenize:VL},exit:YL,name:"list",tokenize:HL},zL={partial:!0,tokenize:GL},qL={partial:!0,tokenize:WL};function HL(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:_s(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 _s(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(tr,n.interrupt?r:c,e.attempt(zL,p,f))}function c(h){return n.containerState.initialBlankLine=!0,o++,p(h)}function f(h){return Q(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 VL(e,t,r){let n=this;return n.containerState._closeFlow=void 0,e.check(tr,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||!Q(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(qL,t,s)(a))}function s(a){return n.containerState._closeFlow=!0,n.interrupt=void 0,Z(e,e.attempt(at,t,r),"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(a)}}function WL(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 YL(e){e.exit(this.containerState.type)}function GL(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!Q(o)&&s&&s[1].type==="listItemPrefixWhitespace"?t(o):r(o)}}var gu={name:"setextUnderline",resolveTo:JL,tokenize:QL};function JL(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 QL(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"),Q(u)?Z(e,l,"lineSuffix")(u):l(u))}function l(u){return u===null||H(u)?(e.exit("setextHeadingLine"),t(u)):r(u)}}var ZL={tokenize:iB,partial:!0};function Xh(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:tB,continuation:{tokenize:rB},exit:nB}},text:{91:{name:"gfmFootnoteCall",tokenize:eB},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:XL,resolveTo:KL}}}}function XL(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=st(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 KL(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 eB(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||fe(f))return r(f);if(f===93){e.exit("chunkString");let p=e.exit("gfmFootnoteCallString");return i.includes(st(n.sliceSerialize(p)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(f),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):r(f)}return fe(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 tB(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||fe(m))return r(m);if(m===93){e.exit("chunkString");let x=e.exit("gfmFootnoteDefinitionLabelString");return o=st(n.sliceSerialize(x)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(m),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),p}return fe(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 rB(e,t,r){return e.check(tr,t,e.attempt(ZL,t,r))}function nB(e){e.exit("gfmFootnoteDefinition")}function iB(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 Kh(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&&Le(p,p.length,0,Xr(h,s.slice(u+1,l),a)),Le(p,p.length,0,[["exit",f,a],["enter",s[l][1],a],["exit",s[l][1],a],["exit",c,a]]),Le(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=Cr(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=Cr(m);return v._open=!w||w===2&&!!x,v._close=!x||x===2&&!!w,a(m)}}}var yu=class{constructor(){this.map=[]}add(t,r,n){oB(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 oB(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 A1(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 em(){return{flow:{null:{name:"table",tokenize:sB,resolveAll:aB}}}}function sB(e,t,r){let n=this,i=0,o=0,s;return a;function a(C){let pe=n.events.length-1;for(;pe>-1;){let I=n.events[pe][1].type;if(I==="lineEnding"||I==="linePrefix")pe--;else break}let B=pe>-1?n.events[pe][1].type:null,_=B==="tableHead"||B==="tableRow"?A:l;return _===A&&n.parser.lazy[n.now().line]?r(C):_(C)}function l(C){return e.enter("tableHead"),e.enter("tableRow"),u(C)}function u(C){return C===124||(s=!0,o+=1),c(C)}function c(C){return C===null?r(C):H(C)?o>1?(o=0,n.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(C),e.exit("lineEnding"),h):r(C):Q(C)?Z(e,c,"whitespace")(C):(o+=1,s&&(s=!1,i+=1),C===124?(e.enter("tableCellDivider"),e.consume(C),e.exit("tableCellDivider"),s=!0,c):(e.enter("data"),f(C)))}function f(C){return C===null||C===124||fe(C)?(e.exit("data"),c(C)):(e.consume(C),C===92?p:f)}function p(C){return C===92||C===124?(e.consume(C),f):f(C)}function h(C){return n.interrupt=!1,n.parser.lazy[n.now().line]?r(C):(e.enter("tableDelimiterRow"),s=!1,Q(C)?Z(e,m,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(C):m(C))}function m(C){return C===45||C===58?v(C):C===124?(s=!0,e.enter("tableCellDivider"),e.consume(C),e.exit("tableCellDivider"),x):q(C)}function x(C){return Q(C)?Z(e,v,"whitespace")(C):v(C)}function v(C){return C===58?(o+=1,s=!0,e.enter("tableDelimiterMarker"),e.consume(C),e.exit("tableDelimiterMarker"),w):C===45?(o+=1,w(C)):C===null||H(C)?z(C):q(C)}function w(C){return C===45?(e.enter("tableDelimiterFiller"),E(C)):q(C)}function E(C){return C===45?(e.consume(C),E):C===58?(s=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(C),e.exit("tableDelimiterMarker"),b):(e.exit("tableDelimiterFiller"),b(C))}function b(C){return Q(C)?Z(e,z,"whitespace")(C):z(C)}function z(C){return C===124?m(C):C===null||H(C)?!s||i!==o?q(C):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(C)):q(C)}function q(C){return r(C)}function A(C){return e.enter("tableRow"),R(C)}function R(C){return C===124?(e.enter("tableCellDivider"),e.consume(C),e.exit("tableCellDivider"),R):C===null||H(C)?(e.exit("tableRow"),t(C)):Q(C)?Z(e,R,"whitespace")(C):(e.enter("data"),V(C))}function V(C){return C===null||C===124||fe(C)?(e.exit("data"),R(C)):(e.consume(C),C===92?$:V)}function $(C){return C===92||C===124?(e.consume(C),V):V(C)}}function aB(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 yu;for(;++r<e.length;){let h=e[r],m=h[1];h[0]==="enter"?m.type==="tableHead"?(a=!1,l!==0&&(C1(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=xu(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=xu(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=xu(p,t,o,i,r,f)):s[1]!==0&&(f=xu(p,t,s,i,r,f)),i=0):i&&(m.type==="data"||m.type==="tableDelimiterMarker"||m.type==="tableDelimiterFiller")&&(s[3]=r)}for(l!==0&&C1(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=A1(t.events,r))}return e}function xu(e,t,r,n,i,o){let s=n===1?"tableHeader":n===2?"tableDelimiter":"tableData",a="tableContent";r[0]!==0&&(o.end=Object.assign({},so(t.events,r[0])),e.add(r[0],0,[["exit",o,t]]));let l=so(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=so(t.events,r[2]),c=so(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({},so(t.events,i)),e.add(i,0,[["exit",o,t]]),o=void 0),o}function C1(e,t,r,n,i){let o=[],s=so(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 so(e,t){let r=e[t],n=r[0]==="enter"?"start":"end";return r[1][n]}var lB={name:"tasklistCheck",tokenize:uB};function tm(){return{text:{91:lB}}}function uB(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 fe(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):Q(l)?e.check({tokenize:cB},t,r)(l):r(l)}}function cB(e,t,r){return Z(e,n,"whitespace");function n(i){return i===null?r(i):t(i)}}function T1(e){return su([$h(),Xh(),Kh(e),em(),tm()])}var fB={};function Rs(e){let t=this,r=e||fB,n=t.data(),i=n.micromarkExtensions||(n.micromarkExtensions=[]),o=n.fromMarkdownExtensions||(n.fromMarkdownExtensions=[]),s=n.toMarkdownExtensions||(n.toMarkdownExtensions=[]);i.push(T1(r)),o.push(Rh()),s.push(Lh(r))}var E1={tokenize:pB};function pB(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 I1={tokenize:hB},_1={tokenize:mB};function hB(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 Le(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(_1,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(_1,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,$,C;for(;V--;)if(t.events[V][0]==="exit"&&t.events[V][1].type==="chunkFlow"){if($){C=t.events[V][1].end;break}$=!0}for(w(n),A=R;A<t.events.length;)t.events[A][1].end={...C},A++;Le(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 mB(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 P1={tokenize:dB};function dB(e){let t=this,r=e.attempt(tr,n,e.attempt(this.parser.constructs.flowInitial,i,Z(e,e.attempt(this.parser.constructs.flow,i,e.attempt(qh,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 O1={resolveAll:F1()},D1=N1("string"),M1=N1("text");function N1(e){return{resolveAll:F1(e==="text"?gB: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 F1(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 gB(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 rm={};ae(rm,{attentionMarkers:()=>AB,contentInitial:()=>xB,disable:()=>CB,document:()=>yB,flow:()=>wB,flowInitial:()=>bB,insideSpan:()=>kB,string:()=>vB,text:()=>SB});var yB={42:at,43:at,45:at,48:at,49:at,50:at,51:at,52:at,53:at,54:at,55:at,56:at,57:at,62:au},xB={91:Hh},bB={[-2]:Ms,[-1]:Ms,32:Ms},wB={35:Wh,42:ei,45:[gu,ei],60:Gh,61:gu,95:ei,96:cu,126:cu},vB={38:uu,92:lu},SB={[-5]:Fs,[-4]:Fs,[-3]:Fs,33:Qh,38:uu,42:Ds,60:[jh,Jh],91:Zh,92:[Vh,lu],93:Kn,95:Ds,96:zh},kB={null:[Ds,O1]},AB={null:[42,95]},CB={null:[]};function R1(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?[]:(C(t,0),c.events=Xr(o,c.events,c),c.events)}function m(_,I){return EB(x(_),I)}function x(_){return TB(s,_)}function v(){let{_bufferIndex:_,_index:I,line:D,column:F,offset:W}=n;return{_bufferIndex:_,_index:I,line:D,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 D=I||{};return D.type=_,D.start=v(),c.events.push(["enter",D,c]),a.push(D),D}function A(_){let I=a.pop();return I.end=v(),c.events.push(["exit",I,c]),I}function R(_,I){C(_,I.from)}function V(_,I){I.restore()}function $(_,I){return D;function D(F,W,M){let U,d,G,K;return Array.isArray(F)?se(F):"tokenize"in F?se([F]):y(F);function y(g){return S;function S(T){let O=T!==null&&g[T],Y=T!==null&&g.null,ye=[...Array.isArray(O)?O:O?[O]:[],...Array.isArray(Y)?Y:Y?[Y]:[]];return se(ye)(T)}}function se(g){return U=g,d=0,g.length===0?M:de(g[d])}function de(g){return S;function S(T){return K=pe(),G=g,g.partial||(c.currentConstruct=g),g.name&&c.parser.constructs.disable.null.includes(g.name)?k(T):g.tokenize.call(I?Object.assign(Object.create(c),I):c,u,Ie,k)(T)}}function Ie(g){return l=!0,_(G,K),W}function k(g){return l=!0,K.restore(),++d<U.length?de(U[d]):M}}}function C(_,I){_.resolveAll&&!o.includes(_)&&o.push(_),_.resolve&&Le(c.events,I,c.events.length-I,_.resolve(c.events.slice(I),c)),_.resolveTo&&(c.events=_.resolveTo(c.events,c))}function pe(){let _=v(),I=c.previous,D=c.currentConstruct,F=c.events.length,W=Array.from(a);return{from:F,restore:M};function M(){n=_,c.previous=I,c.currentConstruct=D,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 TB(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 EB(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 nm(e){let n={constructs:su([rm,...(e||{}).extensions||[]]),content:i(E1),defined:[],document:i(I1),flow:i(P1),lazy:{},string:i(D1),text:i(M1)};return n;function i(o){return s;function s(a){return R1(n,o,a)}}}function im(e){for(;!pu(e););return e}var L1=/[\0\t\n\r]/g;function om(){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(L1.lastIndex=f,u=L1.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 $1={}.hasOwnProperty;function sm(e,t,r){return typeof t!="string"&&(r=t,t=void 0),_B(r)(im(nm(r).document().write(om()(e,t,!0))))}function _B(e){let t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:o(ur),autolinkProtocol:$,autolinkEmail:$,atxHeading:o(ve),blockQuote:o(T),characterEscape:$,characterReference:$,codeFenced:o(O),codeFencedFenceInfo:s,codeFencedFenceMeta:s,codeIndented:o(O,s),codeText:o(Y,s),codeTextData:$,data:$,codeFlowValue:$,definition:o(ge),definitionDestinationString:s,definitionLabelString:s,definitionTitleString:s,emphasis:o(we),hardBreakEscape:o(kt),hardBreakTrailing:o(kt),htmlFlow:o(rt,s),htmlFlowData:$,htmlText:o(rt,s),htmlTextData:$,image:o(xt),label:s,link:o(ur),listItem:o(Ft),listItemValue:p,listOrdered:o(Nr,f),listUnordered:o(Nr),paragraph:o(qt),reference:y,referenceString:s,resourceDestinationString:s,resourceTitleString:s,setextHeading:o(ve),strong:o(At),thematicBreak:o(Fr)},exit:{atxHeading:l(),atxHeadingSequence:q,autolink:l(),autolinkEmail:S,autolinkProtocol:g,blockQuote:l(),characterEscapeValue:C,characterReferenceMarkerHexadecimal:de,characterReferenceMarkerNumeric:de,characterReferenceValue:Ie,characterReference:k,codeFenced:l(v),codeFencedFence:x,codeFencedFenceInfo:h,codeFencedFenceMeta:m,codeFlowValue:C,codeIndented:l(w),codeText:l(D),codeTextData:C,data:C,definition:l(),definitionDestinationString:z,definitionLabelString:E,definitionTitleString:b,emphasis:l(),hardBreakEscape:l(B),hardBreakTrailing:l(B),htmlFlow:l(_),htmlFlowData:C,htmlText:l(I),htmlTextData:C,image:l(W),label:U,labelText:M,lineEnding:pe,link:l(F),listItem:l(),listOrdered:l(),listUnordered:l(),paragraph:l(),referenceString:se,resourceDestinationString:d,resourceTitleString:G,resource:K,setextHeading:l(V),setextHeadingLineSequence:R,setextHeadingText:A,strong:l(),thematicBreak:l()}};U1(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},ue=[],ke=-1;for(;++ke<P.length;)if(P[ke][1].type==="listOrdered"||P[ke][1].type==="listUnordered")if(P[ke][0]==="enter")ue.push(ke);else{let Rt=ue.pop();ke=i(P,Rt,ke)}for(ke=-1;++ke<P.length;){let Rt=t[P[ke][0]];$1.call(Rt,P[ke][1].type)&&Rt[P[ke][1].type].call(Object.assign({sliceSerialize:P[ke][2].sliceSerialize},te),P[ke][1])}if(te.tokenStack.length>0){let Rt=te.tokenStack[te.tokenStack.length-1];(Rt[1]||B1).call(te,void 0,Rt[0])}for(j.position={start:Kr(P.length>0?P[0][1].start:{line:1,column:1,offset:0}),end:Kr(P.length>0?P[P.length-2][1].end:{line:1,column:1,offset:0})},ke=-1;++ke<t.transforms.length;)j=t.transforms[ke](j)||j;return j}function i(P,j,te){let ue=j-1,ke=-1,Rt=!1,fn,cr,Io,Po;for(;++ue<=te;){let bt=P[ue];switch(bt[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{bt[0]==="enter"?ke++:ke--,Po=void 0;break}case"lineEndingBlank":{bt[0]==="enter"&&(fn&&!Po&&!ke&&!Io&&(Io=ue),Po=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:Po=void 0}if(!ke&&bt[0]==="enter"&&bt[1].type==="listItemPrefix"||ke===-1&&bt[0]==="exit"&&(bt[1].type==="listUnordered"||bt[1].type==="listOrdered")){if(fn){let pi=ue;for(cr=void 0;pi--;){let fr=P[pi];if(fr[1].type==="lineEnding"||fr[1].type==="lineEndingBlank"){if(fr[0]==="exit")continue;cr&&(P[cr][1].type="lineEndingBlank",Rt=!0),fr[1].type="lineEnding",cr=pi}else if(!(fr[1].type==="linePrefix"||fr[1].type==="blockQuotePrefix"||fr[1].type==="blockQuotePrefixWhitespace"||fr[1].type==="blockQuoteMarker"||fr[1].type==="listItemIndent"))break}Io&&(!cr||Io<cr)&&(fn._spread=!0),fn.end=Object.assign({},cr?P[cr][1].start:bt[1].end),P.splice(cr||ue,0,["exit",fn,bt[2]]),ue++,te++}if(bt[1].type==="listItemPrefix"){let pi={type:"listItem",_spread:!1,start:Object.assign({},bt[1].start),end:void 0};fn=pi,P.splice(ue,0,["enter",pi,bt[2]]),ue++,te++,Io=void 0,Po=!0}}}return P[j][1]._spread=Rt,te}function o(P,j){return te;function te(ue){a.call(this,P(ue),ue),j&&j.call(this,ue)}}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:Kr(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(),ue=this.tokenStack.pop();if(ue)ue[0].type!==P.type&&(j?j.call(this,P,ue[0]):(ue[1]||B1).call(this,P,ue[0]));else throw new Error("Cannot close `"+P.type+"` ("+Jr({start:P.start,end:P.end})+"): it\u2019s not open");te.position.end=Kr(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=st(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,ue=te[te.length-1];(!ue||ue.type!=="text")&&(ue=$e(),ue.position={start:Kr(P.start),end:void 0},te.push(ue)),this.stack.push(ue)}function C(P){let j=this.stack.pop();j.value+=this.sliceSerialize(P),j.position.end=Kr(P.end)}function pe(P){let j=this.stack[this.stack.length-1];if(this.data.atHardBreak){let te=j.children[j.children.length-1];te.position.end=Kr(P.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(j.type)&&($.call(this,P),C.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 D(){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=ou(j),te.identifier=st(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 ue=P.children;te.children=ue}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 K(){this.data.inReference=void 0}function y(){this.data.referenceType="collapsed"}function se(P){let j=this.resume(),te=this.stack[this.stack.length-1];te.label=j,te.identifier=st(this.sliceSerialize(P)).toLowerCase(),this.data.referenceType="full"}function de(P){this.data.characterReferenceType=P.type}function Ie(P){let j=this.sliceSerialize(P),te=this.data.characterReferenceType,ue;te?(ue=iu(j,te==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):ue=oo(j);let ke=this.stack[this.stack.length-1];ke.value+=ue}function k(P){let j=this.stack.pop();j.position.end=Kr(P.end)}function g(P){C.call(this,P);let j=this.stack[this.stack.length-1];j.url=this.sliceSerialize(P)}function S(P){C.call(this,P);let j=this.stack[this.stack.length-1];j.url="mailto:"+this.sliceSerialize(P)}function T(){return{type:"blockquote",children:[]}}function O(){return{type:"code",lang:null,meta:null,value:""}}function Y(){return{type:"inlineCode",value:""}}function ge(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function we(){return{type:"emphasis",children:[]}}function ve(){return{type:"heading",depth:0,children:[]}}function kt(){return{type:"break"}}function rt(){return{type:"html",value:""}}function xt(){return{type:"image",title:null,url:"",alt:null}}function ur(){return{type:"link",title:null,url:"",children:[]}}function Nr(P){return{type:"list",ordered:P.type==="listOrdered",start:null,spread:P._spread,children:[]}}function Ft(P){return{type:"listItem",spread:P._spread,checked:null,children:[]}}function qt(){return{type:"paragraph",children:[]}}function At(){return{type:"strong",children:[]}}function $e(){return{type:"text",value:""}}function Fr(){return{type:"thematicBreak"}}}function Kr(e){return{line:e.line,column:e.column,offset:e.offset}}function U1(e,t){let r=-1;for(;++r<t.length;){let n=t[r];Array.isArray(n)?U1(e,n):IB(e,n)}}function IB(e,t){let r;for(r in t)if($1.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 B1(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+Jr({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+Jr({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+Jr({start:t.start,end:t.end})+") is still open")}function Ls(e){let t=this;t.parser=r;function r(n){return sm(n,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}var z1=Ue(j1(),1),Bs=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,z1.default)(r,...n);return new e(i)}}var bu={}.hasOwnProperty,q1={yaml:"-",toml:"+"};function ao(e){let t=[],r=-1,n=Array.isArray(e)?e:e?[e]:["yaml"];for(;++r<n.length;)t[r]=PB(n[r]);return t}function PB(e){let t=e;if(typeof t=="string"){if(!bu.call(q1,t))throw Bs("Missing matter definition for `%s`",t);t={type:t,marker:q1[t]}}else if(typeof t!="object")throw Bs("Expected matter to be an object, not `%j`",t);if(!bu.call(t,"type"))throw Bs("Missing `type` in matter `%j`",t);if(!bu.call(t,"fence")&&!bu.call(t,"marker"))throw Bs("Missing `marker` or `fence` in matter `%j`",t);return t}function um(e){let t=ao(e),r={},n=-1;for(;++n<t.length;){let i=t[n],o=lm(i,"open").charCodeAt(0),s=OB(i),a=r[o];Array.isArray(a)?a.push(s):r[o]=[s]}return{flow:r}}function OB(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=lm(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),Q(R)?(f.enter("whitespace"),w(R)):E(R)):R===a.charCodeAt(l++)?(f.consume(R),v):h(R)}function w(R){return Q(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=lm(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),Q(b)?(f.enter("whitespace"),w(b)):E(b)):b===a.charCodeAt(m++)?(f.consume(b),v):h(b)}function w(b){return Q(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 lm(e,t){return e.marker?H1(e.marker,t).repeat(3):H1(e.fence,t)}function H1(e,t){return typeof e=="string"?e:e[t]}function fm(e){let t=ao(e),r={},n={},i=-1;for(;++i<t.length;){let o=t[i];r[o.type]=DB(o),n[o.type]=MB,n[o.type+"Value"]=NB}return{enter:r,exit:n}}function DB(e){return t;function t(r){this.enter({type:e.type,value:""},r),this.buffer()}}function MB(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 NB(e){this.config.enter.data.call(this,e),this.config.exit.data.call(this,e)}function pm(e){let t=[],r={},n=ao(e),i=-1;for(;++i<n.length;){let o=n[i];r[o.type]=FB(o);let s=cm(o,"open");t.push({atBreak:!0,character:s.charAt(0),after:Cn(s.charAt(1))})}return{unsafe:t,handlers:r}}function FB(e){let t=cm(e,"open"),r=cm(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 nm(e){let n={constructs:su([rm,...(e||{}).extensions||[]]),content:i(E1),defined:[],document:i(I1),flow:i(P1),lazy:{},string:i(D1),text:i(M1)};return n;function i(o){return s;function s(a){return R1(n,o,a)}}}function im(e){for(;!pu(e););return e}var L1=/[\0\t\n\r]/g;function om(){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(L1.lastIndex=f,u=L1.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 $1={}.hasOwnProperty;function sm(e,t,r){return typeof t!="string"&&(r=t,t=void 0),_B(r)(im(nm(r).document().write(om()(e,t,!0))))}function _B(e){let t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:o(ur),autolinkProtocol:$,autolinkEmail:$,atxHeading:o(ve),blockQuote:o(T),characterEscape:$,characterReference:$,codeFenced:o(O),codeFencedFenceInfo:s,codeFencedFenceMeta:s,codeIndented:o(O,s),codeText:o(Y,s),codeTextData:$,data:$,codeFlowValue:$,definition:o(ye),definitionDestinationString:s,definitionLabelString:s,definitionTitleString:s,emphasis:o(we),hardBreakEscape:o(kt),hardBreakTrailing:o(kt),htmlFlow:o(rt,s),htmlFlowData:$,htmlText:o(rt,s),htmlTextData:$,image:o(xt),label:s,link:o(ur),listItem:o(Ft),listItemValue:p,listOrdered:o(Nr,f),listUnordered:o(Nr),paragraph:o(qt),reference:y,referenceString:s,resourceDestinationString:s,resourceTitleString:s,setextHeading:o(ve),strong:o(At),thematicBreak:o(Fr)},exit:{atxHeading:l(),atxHeadingSequence:q,autolink:l(),autolinkEmail:S,autolinkProtocol:g,blockQuote:l(),characterEscapeValue:C,characterReferenceMarkerHexadecimal:de,characterReferenceMarkerNumeric:de,characterReferenceValue:Ie,characterReference:k,codeFenced:l(v),codeFencedFence:x,codeFencedFenceInfo:h,codeFencedFenceMeta:m,codeFlowValue:C,codeIndented:l(w),codeText:l(D),codeTextData:C,data:C,definition:l(),definitionDestinationString:z,definitionLabelString:E,definitionTitleString:b,emphasis:l(),hardBreakEscape:l(B),hardBreakTrailing:l(B),htmlFlow:l(_),htmlFlowData:C,htmlText:l(I),htmlTextData:C,image:l(W),label:U,labelText:M,lineEnding:pe,link:l(F),listItem:l(),listOrdered:l(),listUnordered:l(),paragraph:l(),referenceString:se,resourceDestinationString:d,resourceTitleString:G,resource:K,setextHeading:l(V),setextHeadingLineSequence:R,setextHeadingText:A,strong:l(),thematicBreak:l()}};U1(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},ue=[],ke=-1;for(;++ke<P.length;)if(P[ke][1].type==="listOrdered"||P[ke][1].type==="listUnordered")if(P[ke][0]==="enter")ue.push(ke);else{let Rt=ue.pop();ke=i(P,Rt,ke)}for(ke=-1;++ke<P.length;){let Rt=t[P[ke][0]];$1.call(Rt,P[ke][1].type)&&Rt[P[ke][1].type].call(Object.assign({sliceSerialize:P[ke][2].sliceSerialize},te),P[ke][1])}if(te.tokenStack.length>0){let Rt=te.tokenStack[te.tokenStack.length-1];(Rt[1]||B1).call(te,void 0,Rt[0])}for(j.position={start:Kr(P.length>0?P[0][1].start:{line:1,column:1,offset:0}),end:Kr(P.length>0?P[P.length-2][1].end:{line:1,column:1,offset:0})},ke=-1;++ke<t.transforms.length;)j=t.transforms[ke](j)||j;return j}function i(P,j,te){let ue=j-1,ke=-1,Rt=!1,fn,cr,Io,Po;for(;++ue<=te;){let bt=P[ue];switch(bt[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{bt[0]==="enter"?ke++:ke--,Po=void 0;break}case"lineEndingBlank":{bt[0]==="enter"&&(fn&&!Po&&!ke&&!Io&&(Io=ue),Po=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:Po=void 0}if(!ke&&bt[0]==="enter"&&bt[1].type==="listItemPrefix"||ke===-1&&bt[0]==="exit"&&(bt[1].type==="listUnordered"||bt[1].type==="listOrdered")){if(fn){let pi=ue;for(cr=void 0;pi--;){let fr=P[pi];if(fr[1].type==="lineEnding"||fr[1].type==="lineEndingBlank"){if(fr[0]==="exit")continue;cr&&(P[cr][1].type="lineEndingBlank",Rt=!0),fr[1].type="lineEnding",cr=pi}else if(!(fr[1].type==="linePrefix"||fr[1].type==="blockQuotePrefix"||fr[1].type==="blockQuotePrefixWhitespace"||fr[1].type==="blockQuoteMarker"||fr[1].type==="listItemIndent"))break}Io&&(!cr||Io<cr)&&(fn._spread=!0),fn.end=Object.assign({},cr?P[cr][1].start:bt[1].end),P.splice(cr||ue,0,["exit",fn,bt[2]]),ue++,te++}if(bt[1].type==="listItemPrefix"){let pi={type:"listItem",_spread:!1,start:Object.assign({},bt[1].start),end:void 0};fn=pi,P.splice(ue,0,["enter",pi,bt[2]]),ue++,te++,Io=void 0,Po=!0}}}return P[j][1]._spread=Rt,te}function o(P,j){return te;function te(ue){a.call(this,P(ue),ue),j&&j.call(this,ue)}}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:Kr(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(),ue=this.tokenStack.pop();if(ue)ue[0].type!==P.type&&(j?j.call(this,P,ue[0]):(ue[1]||B1).call(this,P,ue[0]));else throw new Error("Cannot close `"+P.type+"` ("+Jr({start:P.start,end:P.end})+"): it\u2019s not open");te.position.end=Kr(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=st(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,ue=te[te.length-1];(!ue||ue.type!=="text")&&(ue=$e(),ue.position={start:Kr(P.start),end:void 0},te.push(ue)),this.stack.push(ue)}function C(P){let j=this.stack.pop();j.value+=this.sliceSerialize(P),j.position.end=Kr(P.end)}function pe(P){let j=this.stack[this.stack.length-1];if(this.data.atHardBreak){let te=j.children[j.children.length-1];te.position.end=Kr(P.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(j.type)&&($.call(this,P),C.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 D(){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=ou(j),te.identifier=st(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 ue=P.children;te.children=ue}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 K(){this.data.inReference=void 0}function y(){this.data.referenceType="collapsed"}function se(P){let j=this.resume(),te=this.stack[this.stack.length-1];te.label=j,te.identifier=st(this.sliceSerialize(P)).toLowerCase(),this.data.referenceType="full"}function de(P){this.data.characterReferenceType=P.type}function Ie(P){let j=this.sliceSerialize(P),te=this.data.characterReferenceType,ue;te?(ue=iu(j,te==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):ue=oo(j);let ke=this.stack[this.stack.length-1];ke.value+=ue}function k(P){let j=this.stack.pop();j.position.end=Kr(P.end)}function g(P){C.call(this,P);let j=this.stack[this.stack.length-1];j.url=this.sliceSerialize(P)}function S(P){C.call(this,P);let j=this.stack[this.stack.length-1];j.url="mailto:"+this.sliceSerialize(P)}function T(){return{type:"blockquote",children:[]}}function O(){return{type:"code",lang:null,meta:null,value:""}}function Y(){return{type:"inlineCode",value:""}}function ye(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function we(){return{type:"emphasis",children:[]}}function ve(){return{type:"heading",depth:0,children:[]}}function kt(){return{type:"break"}}function rt(){return{type:"html",value:""}}function xt(){return{type:"image",title:null,url:"",alt:null}}function ur(){return{type:"link",title:null,url:"",children:[]}}function Nr(P){return{type:"list",ordered:P.type==="listOrdered",start:null,spread:P._spread,children:[]}}function Ft(P){return{type:"listItem",spread:P._spread,checked:null,children:[]}}function qt(){return{type:"paragraph",children:[]}}function At(){return{type:"strong",children:[]}}function $e(){return{type:"text",value:""}}function Fr(){return{type:"thematicBreak"}}}function Kr(e){return{line:e.line,column:e.column,offset:e.offset}}function U1(e,t){let r=-1;for(;++r<t.length;){let n=t[r];Array.isArray(n)?U1(e,n):IB(e,n)}}function IB(e,t){let r;for(r in t)if($1.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 B1(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+Jr({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+Jr({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+Jr({start:t.start,end:t.end})+") is still open")}function Ls(e){let t=this;t.parser=r;function r(n){return sm(n,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}var z1=Ue(j1(),1),Bs=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,z1.default)(r,...n);return new e(i)}}var bu={}.hasOwnProperty,q1={yaml:"-",toml:"+"};function ao(e){let t=[],r=-1,n=Array.isArray(e)?e:e?[e]:["yaml"];for(;++r<n.length;)t[r]=PB(n[r]);return t}function PB(e){let t=e;if(typeof t=="string"){if(!bu.call(q1,t))throw Bs("Missing matter definition for `%s`",t);t={type:t,marker:q1[t]}}else if(typeof t!="object")throw Bs("Expected matter to be an object, not `%j`",t);if(!bu.call(t,"type"))throw Bs("Missing `type` in matter `%j`",t);if(!bu.call(t,"fence")&&!bu.call(t,"marker"))throw Bs("Missing `marker` or `fence` in matter `%j`",t);return t}function um(e){let t=ao(e),r={},n=-1;for(;++n<t.length;){let i=t[n],o=lm(i,"open").charCodeAt(0),s=OB(i),a=r[o];Array.isArray(a)?a.push(s):r[o]=[s]}return{flow:r}}function OB(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=lm(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),Q(R)?(f.enter("whitespace"),w(R)):E(R)):R===a.charCodeAt(l++)?(f.consume(R),v):h(R)}function w(R){return Q(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=lm(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),Q(b)?(f.enter("whitespace"),w(b)):E(b)):b===a.charCodeAt(m++)?(f.consume(b),v):h(b)}function w(b){return Q(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 lm(e,t){return e.marker?H1(e.marker,t).repeat(3):H1(e.fence,t)}function H1(e,t){return typeof e=="string"?e:e[t]}function fm(e){let t=ao(e),r={},n={},i=-1;for(;++i<t.length;){let o=t[i];r[o.type]=DB(o),n[o.type]=MB,n[o.type+"Value"]=NB}return{enter:r,exit:n}}function DB(e){return t;function t(r){this.enter({type:e.type,value:""},r),this.buffer()}}function MB(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 NB(e){this.config.enter.data.call(this,e),this.config.exit.data.call(this,e)}function pm(e){let t=[],r={},n=ao(e),i=-1;for(;++i<n.length;){let o=n[i];r[o.type]=FB(o);let s=cm(o,"open");t.push({atBreak:!0,character:s.charAt(0),after:Cn(s.charAt(1))})}return{unsafe:t,handlers:r}}function FB(e){let t=cm(e,"open"),r=cm(e,"close");return n;function n(i){return t+(i.value?`
89
89
  `+i.value:"")+`
90
90
  `+r}}function cm(e,t){return e.marker?V1(e.marker,t).repeat(3):V1(e.fence,t)}function V1(e,t){return typeof e=="string"?e:e[t]}var RB="yaml";function $s(e){let t=this,r=e||RB,n=t.data(),i=n.micromarkExtensions||(n.micromarkExtensions=[]),o=n.fromMarkdownExtensions||(n.fromMarkdownExtensions=[]),s=n.toMarkdownExtensions||(n.toMarkdownExtensions=[]);i.push(um(r)),o.push(fm(r)),s.push(pm(r))}var W1=typeof self=="object"?self:globalThis,LB=(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 W1[a](l),i)}case 8:return r(BigInt(s),i);case"BigInt":return r(Object(BigInt(s)),i)}return r(new W1[o](s),i)};return n},gm=e=>LB(new Map,e)(0);var lo="",{toString:BB}={},{keys:$B}=Object,qs=e=>{let t=typeof e;if(t!=="object"||!e)return[0,t];let r=BB.call(e).slice(8,-1);switch(r){case"Array":return[1,lo];case"Object":return[2,lo];case"Date":return[3,lo];case"RegExp":return[4,lo];case"Map":return[5,lo];case"Set":return[6,lo]}return r.includes("Array")?[1,r]:r.includes("Error")?[7,r]:[2,r]},Au=([e,t])=>e===0&&(t==="function"||t==="symbol"),UB=(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]=qs(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 $B(s))(e||!Au(qs(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||!(Au(qs(p))||Au(qs(h))))&&c.push([o(p),o(h)]);return f}case 6:{let c=[],f=i([a,c],s);for(let p of s)(e||!Au(qs(p)))&&c.push(o(p));return f}}let{message:u}=s;return i([a,{name:l,message:u}],s)};return o},ym=(e,{json:t,lossy:r}={})=>{let n=[];return UB(!(t||r),!!t,new Map,n)(e),n};var en=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?gm(ym(e,t)):structuredClone(e):(e,t)=>gm(ym(e,t));var Cu=Y1("end"),Tu=Y1("start");function Y1(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 Hs(e){let t=Tu(e),r=Cu(e);if(t&&r)return{start:t,end:r}}var ri=["ariaDescribedBy","ariaLabel","ariaLabelledBy"],xm={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 tn={}.hasOwnProperty;function bm(e,t){let r={type:"root",children:[]},n={schema:t?{...xm,...t}:xm,stack:[]},i=Q1(n,e);return i&&(Array.isArray(i)?i.length===1?r=i[0]:r.children=i:r=i),r}function Q1(e,t){if(t&&typeof t=="object"){let r=t;switch(typeof r.type=="string"?r.type:""){case"comment":return jB(e,r);case"doctype":return zB(e,r);case"element":return qB(e,r);case"root":return HB(e,r);case"text":return VB(e,r);default:}}}function jB(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 Vs(o,t),o}}function zB(e,t){if(e.schema.allowDoctypes){let r={type:"doctype"};return Vs(r,t),r}}function qB(e,t){let r=typeof t.tagName=="string"?t.tagName:"";e.stack.push(r);let n=Z1(e,t.children),i=WB(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&&tn.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 Vs(s,t),s}function HB(e,t){let n={type:"root",children:Z1(e,t.children)};return Vs(n,t),n}function VB(e,t){let n={type:"text",value:typeof t.value=="string"?t.value:""};return Vs(n,t),n}function Z1(e,t){let r=[];if(Array.isArray(t)){let n=t,i=-1;for(;++i<n.length;){let o=Q1(e,n[i]);o&&(Array.isArray(o)?r.push(...o):r.push(o))}}return r}function WB(e,t){let r=e.stack[e.stack.length-1],n=e.schema.attributes,i=e.schema.required,o=n&&tn.call(n,r)?n[r]:void 0,s=n&&tn.call(n,"*")?n["*"]:void 0,a=t&&typeof t=="object"?t:{},l={},u;for(u in a)if(tn.call(a,u)){let c=a[u],f=G1(e,J1(o,u),u,c);f==null&&(f=G1(e,J1(s,u),u,c)),f!=null&&(l[u]=f)}if(i&&tn.call(i,r)){let c=i[r];for(u in c)tn.call(c,u)&&!tn.call(l,u)&&(l[u]=c[u])}return l}function G1(e,t,r,n){return t?Array.isArray(n)?YB(e,t,r,n):X1(e,t,r,n):void 0}function YB(e,t,r,n){let i=-1,o=[];for(;++i<n.length;){let s=X1(e,t,r,n[i]);(typeof s=="number"||typeof s=="string")&&o.push(s)}return o}function X1(e,t,r,n){if(!(typeof n!="boolean"&&typeof n!="number"&&typeof n!="string")&&GB(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 GB(e,t,r){let n=e.schema.protocols&&tn.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 Vs(e,t){let r=Hs(t);t.data&&(e.data=en(t.data)),r&&(e.position=r)}function J1(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 K1(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 ek(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 tk(e,t){let r=t.value?t.value+`
@@ -268,15 +268,15 @@ ${i}
268
268
 
269
269
  ${rc}
270
270
  </style>
271
- `,cU=async(e,t={})=>{let r=await Dt.setupDomTools(t);return r.runOnce("elementBasicSetup",async()=>{r.setGlobalStyles(IA)}),r};var pd={};ae(pd,{cssGridColumns:()=>fU});var fU=(e,t)=>{let r="";for(let n=0;n<e;n++)r+=` calc((100%/${e}) - (${t*(e-1)}px/${e}))`;return r};var hd={};ae(hd,{SweetScroll:()=>PA.default,smartdelay:()=>me,smartmarkdown:()=>ju,smartpromise:()=>ne,smartrouter:()=>fo,smartrx:()=>Ae,smartstate:()=>po,smartstring:()=>Hr,smarturl:()=>ho,typedrequest:()=>_t});var PA=Ue(rd(),1);var ai={css:xe,unsafeCSS:le,LitElement:Rr,property:re};var nc=class{constructor(){this.domtoolsPromise=Dt.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 ai.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 si.staticStyles}cssForDesktop(t){return le(Pr.cssForDesktop(t))}cssForNotebook(t){return le(Pr.cssForNotebook(t))}cssForTablet(t){return le(Pr.cssForTablet(t))}cssForPhablet(t){return le(Pr.cssForPhablet(t))}cssForPhone(t){return le(Pr.cssForPhone(t))}bdTheme(t,r){let n,i;Dt.getGlobalDomToolsSync()?i=Dt.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:`--${OA.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 ai.unsafeCSS(`var(${n}, ${i})`)}};var vo={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},St=e=>(...t)=>({_$litDirective$:e,values:t}),wo=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 Ks=class extends wo{constructor(t){if(super(t),this.it=Re,t.type!==vo.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===Re||t==null)return this._t=void 0,this.it=t;if(t===je)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:[]}}};Ks.directiveName="unsafeHTML",Ks.resultType=1;var pU=St(Ks);var Ze=e=>(t,r)=>{r!==void 0?r.addInitializer(()=>{customElements.define(e,t)}):customElements.define(e,t)};var{I:hU}=rg,NA=e=>e===null||typeof e!="object"&&typeof e!="function";var FA=e=>e.strings===void 0,MA=()=>document.createComment(""),RA=(e,t,r)=>{let n=e._$AA.parentNode,i=t===void 0?e._$AB:t._$AA;if(r===void 0){let o=n.insertBefore(MA(),i),s=n.insertBefore(MA(),i);r=new hU(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},LA=(e,t,r=e)=>(e._$AI(t,r),e);var BA=e=>{e._$AR()};var ea=(e,t)=>{let r=e._$AN;if(r===void 0)return!1;for(let n of r)n._$AO?.(t,!1),ea(n,t);return!0},oc=e=>{let t,r;do{if((t=e._$AM)===void 0)break;r=t._$AN,r.delete(e),e=t}while(r?.size===0)},$A=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),gU(t)}};function mU(e){this._$AN!==void 0?(oc(this),this._$AM=e,$A(this)):this._$AM=e}function dU(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++)ea(n[o],!1),oc(n[o]);else n!=null&&(ea(n,!1),oc(n));else ea(this,e)}var gU=e=>{e.type==vo.CHILD&&(e._$AP??=dU,e._$AQ??=mU)},nr=class extends wo{constructor(){super(...arguments),this._$AN=void 0}_$AT(t,r,n){super._$AT(t,r,n),$A(this),this.isConnected=t._$AU}_$AO(t,r=!0){t!==this.isConnected&&(this.isConnected=t,t?this.reconnected?.():this.disconnected?.()),r&&(ea(this,t),oc(this))}setValue(t){if(FA(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 UA=async(e,t)=>{for await(let r of e)if(await t(r)===!1)return},So=class{constructor(t){this.Y=t}disconnect(){this.Y=void 0}reconnect(t){this.Y=t}deref(){return this.Y}},ko=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 jA=e=>!NA(e)&&typeof e.then=="function",zA=1073741823,md=class extends nr{constructor(){super(...arguments),this._$Cwt=zA,this._$Cbt=[],this._$CK=new So(this),this._$CX=new ko}render(...t){return t.find(r=>!jA(r))??je}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(!jA(l))return this._$Cwt=a,l;a<i&&l===n[a]||(this._$Cwt=zA,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 je}disconnected(){this._$CK.disconnect(),this._$CX.pause()}reconnected(){this._$CK.reconnect(this),this._$CX.resume()}},yU=St(md);var ta=class extends nr{constructor(){super(...arguments),this._$CK=new So(this),this._$CX=new ko}render(t,r){return je}update(t,[r,n]){if(this.isConnected||this.disconnected(),r===this._$CJ)return je;this._$CJ=r;let i=0,{_$CK:o,_$CX:s}=this;return UA(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}),je}commitValue(t,r){this.setValue(t)}disconnected(){this._$CK.disconnect(),this._$CX.pause()}reconnected(){this._$CK.reconnect(this),this._$CX.resume()}},yle=St(ta);var xU=St(class extends ta{constructor(e){if(super(e),e.type!==vo.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&&BA(this._$Ctt);let r=RA(this._$Ctt);LA(r,e)}});var qA=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},HA=function(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)},Fe=class extends ai.LitElement{constructor(t={}){super(),this.goBright=!1,this.rxSubscriptions=[],this.elementDomReadyDeferred=ye.plugins.smartpromise.defer(),this.elementDomReady=this.elementDomReadyDeferred.promise,this.startupFunctions=[],this.garbageFunctions=[],this.domtoolsPromise=ye.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"))}};qA([ai.property({type:Boolean}),HA("design:type",Boolean)],Fe.prototype,"goBright",void 0);qA([ai.property(),HA("design:type",ye.DomTools)],Fe.prototype,"domtools",void 0);var dd=class extends nr{constructor(){super(...arguments),this.sub=null}render(t){return this.observable!==t&&(this.sub?.unsubscribe(),this.observable=t,this.isConnected&&this.subscribe(t)),je}subscribe(t){this.sub=t.subscribe(r=>{this.setValue(r)})}disconnected(){this.sub?.unsubscribe()}reconnected(){this.subscribe(this.observable)}},bU=St(dd);var gd=class extends nr{constructor(){super(...arguments),this.hasPromiseSettled=!1}render(t){return this.promise!==t&&(this.promise=t,this.isConnected&&this.handlePromise(t)),je}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)}},wU=St(gd);var sc=new nc;var oe={};ae(oe,{a4Height:()=>AU,a4Width:()=>CU,demoDocumentSettings:()=>kU,demoLetter:()=>SU,interfaces:()=>QA,leftMargin:()=>EU,rightMargin:()=>TU,translation:()=>xd});var QA={};var xd={};ae(xd,{DE_translations:()=>VA,EN_translations:()=>yd,ES_translations:()=>WA,FR_translations:()=>YA,IT_translations:()=>GA,languageCodeMap:()=>JA,translate:()=>vU});var yd={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",vatShort:"VAT"},VA={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:"Summe netto",unitNetPrice:"Einheit netto",unitType:"Einheit",yourCustomerId:"Ihre Kundennummer:",yourVatId:"Ihre Umsatzsteuer-ID:",continuesOnPage:"Fortsetzung auf Seite",finalPageStatement:"Dies ist die letzte Seite dieses Dokuments.",page:"Seite",vatShort:"USt"},WA={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",vatShort:"IVA"},YA={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",vatShort:"TVA"},GA={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",vatShort:"IVA"},JA={EN:yd,DE:VA,ES:WA,FR:YA,IT:GA},vU=(e,t,r)=>(JA[e]||yd)[t]||r;var ZA={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"},XA={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"},SU={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:ZA,billedTo:XA,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:ZA,to:XA,incidenceId:null,language:null,legalContact:null,logoUrl:null,pdfAttachments:null,subject:"Invoice: LL-INV-48765"},kU={enableTopDraftText:!0,enableDefaultHeader:!0,enableDefaultFooter:!0,languageCode:"DE"};var AU=1122,CU=794,TU=70,EU=90;var KC=Ue(XC(),1);var or=xe`
271
+ `,cU=async(e,t={})=>{let r=await Dt.setupDomTools(t);return r.runOnce("elementBasicSetup",async()=>{r.setGlobalStyles(IA)}),r};var pd={};ae(pd,{cssGridColumns:()=>fU});var fU=(e,t)=>{let r="";for(let n=0;n<e;n++)r+=` calc((100%/${e}) - (${t*(e-1)}px/${e}))`;return r};var hd={};ae(hd,{SweetScroll:()=>PA.default,smartdelay:()=>me,smartmarkdown:()=>ju,smartpromise:()=>ne,smartrouter:()=>fo,smartrx:()=>Ae,smartstate:()=>po,smartstring:()=>Hr,smarturl:()=>ho,typedrequest:()=>_t});var PA=Ue(rd(),1);var ai={css:xe,unsafeCSS:le,LitElement:Rr,property:re};var nc=class{constructor(){this.domtoolsPromise=Dt.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 ai.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 si.staticStyles}cssForDesktop(t){return le(Pr.cssForDesktop(t))}cssForNotebook(t){return le(Pr.cssForNotebook(t))}cssForTablet(t){return le(Pr.cssForTablet(t))}cssForPhablet(t){return le(Pr.cssForPhablet(t))}cssForPhone(t){return le(Pr.cssForPhone(t))}bdTheme(t,r){let n,i;Dt.getGlobalDomToolsSync()?i=Dt.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:`--${OA.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 ai.unsafeCSS(`var(${n}, ${i})`)}};var vo={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},St=e=>(...t)=>({_$litDirective$:e,values:t}),wo=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 Ks=class extends wo{constructor(t){if(super(t),this.it=Re,t.type!==vo.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===Re||t==null)return this._t=void 0,this.it=t;if(t===je)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:[]}}};Ks.directiveName="unsafeHTML",Ks.resultType=1;var pU=St(Ks);var Ze=e=>(t,r)=>{r!==void 0?r.addInitializer(()=>{customElements.define(e,t)}):customElements.define(e,t)};var{I:hU}=rg,NA=e=>e===null||typeof e!="object"&&typeof e!="function";var FA=e=>e.strings===void 0,MA=()=>document.createComment(""),RA=(e,t,r)=>{let n=e._$AA.parentNode,i=t===void 0?e._$AB:t._$AA;if(r===void 0){let o=n.insertBefore(MA(),i),s=n.insertBefore(MA(),i);r=new hU(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},LA=(e,t,r=e)=>(e._$AI(t,r),e);var BA=e=>{e._$AR()};var ea=(e,t)=>{let r=e._$AN;if(r===void 0)return!1;for(let n of r)n._$AO?.(t,!1),ea(n,t);return!0},oc=e=>{let t,r;do{if((t=e._$AM)===void 0)break;r=t._$AN,r.delete(e),e=t}while(r?.size===0)},$A=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),gU(t)}};function mU(e){this._$AN!==void 0?(oc(this),this._$AM=e,$A(this)):this._$AM=e}function dU(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++)ea(n[o],!1),oc(n[o]);else n!=null&&(ea(n,!1),oc(n));else ea(this,e)}var gU=e=>{e.type==vo.CHILD&&(e._$AP??=dU,e._$AQ??=mU)},nr=class extends wo{constructor(){super(...arguments),this._$AN=void 0}_$AT(t,r,n){super._$AT(t,r,n),$A(this),this.isConnected=t._$AU}_$AO(t,r=!0){t!==this.isConnected&&(this.isConnected=t,t?this.reconnected?.():this.disconnected?.()),r&&(ea(this,t),oc(this))}setValue(t){if(FA(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 UA=async(e,t)=>{for await(let r of e)if(await t(r)===!1)return},So=class{constructor(t){this.Y=t}disconnect(){this.Y=void 0}reconnect(t){this.Y=t}deref(){return this.Y}},ko=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 jA=e=>!NA(e)&&typeof e.then=="function",zA=1073741823,md=class extends nr{constructor(){super(...arguments),this._$Cwt=zA,this._$Cbt=[],this._$CK=new So(this),this._$CX=new ko}render(...t){return t.find(r=>!jA(r))??je}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(!jA(l))return this._$Cwt=a,l;a<i&&l===n[a]||(this._$Cwt=zA,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 je}disconnected(){this._$CK.disconnect(),this._$CX.pause()}reconnected(){this._$CK.reconnect(this),this._$CX.resume()}},yU=St(md);var ta=class extends nr{constructor(){super(...arguments),this._$CK=new So(this),this._$CX=new ko}render(t,r){return je}update(t,[r,n]){if(this.isConnected||this.disconnected(),r===this._$CJ)return je;this._$CJ=r;let i=0,{_$CK:o,_$CX:s}=this;return UA(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}),je}commitValue(t,r){this.setValue(t)}disconnected(){this._$CK.disconnect(),this._$CX.pause()}reconnected(){this._$CK.reconnect(this),this._$CX.resume()}},yle=St(ta);var xU=St(class extends ta{constructor(e){if(super(e),e.type!==vo.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&&BA(this._$Ctt);let r=RA(this._$Ctt);LA(r,e)}});var qA=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},HA=function(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)},Fe=class extends ai.LitElement{constructor(t={}){super(),this.goBright=!1,this.rxSubscriptions=[],this.elementDomReadyDeferred=ge.plugins.smartpromise.defer(),this.elementDomReady=this.elementDomReadyDeferred.promise,this.startupFunctions=[],this.garbageFunctions=[],this.domtoolsPromise=ge.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"))}};qA([ai.property({type:Boolean}),HA("design:type",Boolean)],Fe.prototype,"goBright",void 0);qA([ai.property(),HA("design:type",ge.DomTools)],Fe.prototype,"domtools",void 0);var dd=class extends nr{constructor(){super(...arguments),this.sub=null}render(t){return this.observable!==t&&(this.sub?.unsubscribe(),this.observable=t,this.isConnected&&this.subscribe(t)),je}subscribe(t){this.sub=t.subscribe(r=>{this.setValue(r)})}disconnected(){this.sub?.unsubscribe()}reconnected(){this.subscribe(this.observable)}},bU=St(dd);var gd=class extends nr{constructor(){super(...arguments),this.hasPromiseSettled=!1}render(t){return this.promise!==t&&(this.promise=t,this.isConnected&&this.handlePromise(t)),je}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)}},wU=St(gd);var sc=new nc;var oe={};ae(oe,{a4Height:()=>AU,a4Width:()=>CU,demoDocumentSettings:()=>kU,demoLetter:()=>SU,interfaces:()=>QA,leftMargin:()=>EU,rightMargin:()=>TU,translation:()=>xd});var QA={};var xd={};ae(xd,{DE_translations:()=>VA,EN_translations:()=>yd,ES_translations:()=>WA,FR_translations:()=>YA,IT_translations:()=>GA,languageCodeMap:()=>JA,translate:()=>vU});var yd={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",vatShort:"VAT"},VA={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:"Summe netto",unitNetPrice:"Einheit netto",unitType:"Einheit",yourCustomerId:"Ihre Kundennummer:",yourVatId:"Ihre Umsatzsteuer-ID:",continuesOnPage:"Fortsetzung auf Seite",finalPageStatement:"Dies ist die letzte Seite dieses Dokuments.",page:"Seite",vatShort:"USt"},WA={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",vatShort:"IVA"},YA={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",vatShort:"TVA"},GA={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",vatShort:"IVA"},JA={EN:yd,DE:VA,ES:WA,FR:YA,IT:GA},vU=(e,t,r)=>(JA[e]||yd)[t]||r;var ZA={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"},XA={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"},SU={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:ZA,billedTo:XA,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:ZA,to:XA,incidenceId:null,language:null,legalContact:null,logoUrl:null,pdfAttachments:null,subject:"Invoice: LL-INV-48765"},kU={enableTopDraftText:!0,enableDefaultHeader:!0,enableDefaultFooter:!0,languageCode:"DE"};var AU=1122,CU=794,TU=70,EU=90;var KC=Ue(XC(),1);var or=xe`
272
272
  :host {
273
273
  font-family: 'Exo 2';
274
274
  }
275
- `;var sr=class extends Fe{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};ye.DomTools.setupDomTools()}render(){return J`
275
+ `;var sr=class extends Fe{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};ge.DomTools.setupDomTools()}render(){return J`
276
276
  <div class="trimmedContent"></div>
277
277
  <div class="repeatedContent"></div>
278
278
  <div class="currentContent"></div>
279
- `}async getContentNodes(){return await this.elementDomReady,{currentContent:this.shadowRoot.querySelector(".currentContent"),trimmedContent:this.shadowRoot.querySelector(".trimmedContent"),repeatedContent:this.shadowRoot.querySelector(".repeatedContent")}}async getContentLength(){return await this.elementDomReady,(await this.getContentNodes()).currentContent.children.length}async trimEndByOne(){await this.elementDomReady,this.shadowRoot.querySelector(".trimmedContent").append((await this.getContentNodes()).currentContent.children.item((await this.getContentNodes()).currentContent.children.length-1))}async trimStartToOffset(r){await this.elementDomReady;let n=(await this.getContentNodes()).currentContent.children.length;for(;(await this.getContentNodes()).currentContent.children.length!==n-r;)(await this.getContentNodes()).trimmedContent.append((await this.getContentNodes()).currentContent.children.item(0)),console.log("hey"+this.shadowRoot.children.length);if((await this.getContentNodes()).currentContent.children.item(0).classList.contains("needsDataHeader")){let i=(await this.getContentNodes()).trimmedContent,o=i.children.length;for(;o>0;){let s=i.children.item(o-1);if(s.classList.contains("dataHeader")){(await this.getContentNodes()).repeatedContent.append(s);break}o--}}}async firstUpdated(r){super.firstUpdated(r),this.attachInvoiceDom()}async attachInvoiceDom(){let r=await this.getContentNodes();Bo(J`
279
+ `}async getContentNodes(){return await this.elementDomReady,{currentContent:this.shadowRoot.querySelector(".currentContent"),trimmedContent:this.shadowRoot.querySelector(".trimmedContent"),repeatedContent:this.shadowRoot.querySelector(".repeatedContent")}}async getContentLength(){return await this.elementDomReady,(await this.getContentNodes()).currentContent.children.length}async trimEndByOne(){await this.elementDomReady,this.shadowRoot.querySelector(".trimmedContent").append((await this.getContentNodes()).currentContent.children.item((await this.getContentNodes()).currentContent.children.length-1))}async trimStartToOffset(r){await this.elementDomReady;let n=(await this.getContentNodes()).currentContent.children.length;for(;(await this.getContentNodes()).currentContent.children.length!==n-r;)(await this.getContentNodes()).trimmedContent.append((await this.getContentNodes()).currentContent.children.item(0));if((await this.getContentNodes()).currentContent.children.item(0).classList.contains("needsDataHeader")){let i=(await this.getContentNodes()).trimmedContent,o=i.children.length;for(;o>0;){let s=i.children.item(o-1);if(s.classList.contains("dataHeader")){(await this.getContentNodes()).repeatedContent.append(s);break}o--}}}async firstUpdated(r){super.firstUpdated(r),this.attachInvoiceDom()}async attachInvoiceDom(){let r=await this.getContentNodes();Bo(J`
280
280
  <style>
281
281
  .grid {
282
282
  display: grid;
@@ -442,7 +442,7 @@ EUR${this.getTotalGross()}
442
442
  CHAR
443
443
  ${this.letterData.content.invoiceData.id}
444
444
  ${this.letterData.content.invoiceData.id}
445
- EPC QR Code`,i=>{i&&console.error(i),console.log("success!")}),r.currentContent.querySelector(".paymentCode").append(n)}};sr.demo=()=>J`
445
+ EPC QR Code`,i=>{i&&console.error(i)}),r.currentContent.querySelector(".paymentCode").append(n)}};sr.demo=()=>J`
446
446
  <style>
447
447
  .demoContainer {
448
448
  background: white;
@@ -452,7 +452,7 @@ EPC QR Code`,i=>{i&&console.error(i),console.log("success!")}),r.currentContent.
452
452
  <div class="demoContainer">
453
453
  <dedocument-contentinvoice></dedocument-contentinvoice>
454
454
  </div>
455
- `,sr.styles=[ye.elementBasic.staticStyles,or,xe`
455
+ `,sr.styles=[ge.elementBasic.staticStyles,or,xe`
456
456
  :host {
457
457
  color: #333;
458
458
  }
@@ -463,7 +463,7 @@ EPC QR Code`,i=>{i&&console.error(i),console.log("success!")}),r.currentContent.
463
463
 
464
464
  .repeatedContent {
465
465
  }
466
- `],X([re({type:Object,reflect:!0})],sr.prototype,"letterData",2),X([re({type:Object,reflect:!0})],sr.prototype,"documentSettings",2),sr=X([Ze("dedocument-contentinvoice")],sr);var ct=class extends Fe{constructor(){super();this.viewWidth=null;this.viewHeight=null;this.format="a4";this.pageNumber=1;this.pageTotalNumber=1;this.letterData=null;this.printMode=!1;this.documentSettings=xc;ye.DomTools.setupDomTools()}render(){return J`
466
+ `],X([re({type:Object,reflect:!0})],sr.prototype,"letterData",2),X([re({type:Object,reflect:!0})],sr.prototype,"documentSettings",2),sr=X([Ze("dedocument-contentinvoice")],sr);var ct=class extends Fe{constructor(){super();this.viewWidth=null;this.viewHeight=null;this.format="a4";this.pageNumber=1;this.pageTotalNumber=1;this.letterData=null;this.printMode=!1;this.documentSettings=xc;ge.DomTools.setupDomTools()}render(){return J`
467
467
  <div id="scaleWrapper">
468
468
  <dedocument-pagecontainer .printMode=${this.printMode}>
469
469
  ${this.letterData?J`
@@ -513,9 +513,10 @@ EPC QR Code`,i=>{i&&console.error(i),console.log("success!")}),r.currentContent.
513
513
  `:J` <slot></slot> `}
514
514
  </dedocument-pagecontainer>
515
515
  </div>
516
- `}async checkOverflow(){return await this.elementDomReady,this.shadowRoot.querySelector("dedocument-pagecontent").checkOverflow()}updated(r){super.updated(r),(r.has("viewHeight")||r.has("viewWidth"))&&this.adjustScaling()}adjustScaling(){console.log("page scale adjustment triggered.");let r=this.shadowRoot.querySelector("#scaleWrapper");if(!r)return;let n=1;this.viewHeight?n=this.viewHeight/oe.a4Height:this.viewWidth&&(n=this.viewWidth/oe.a4Width),console.log(`new scale is ${n}`),r.style.transform=`scale(${n})`,this.style.overflow="hidden",this.style.width=`${oe.a4Width*n}px`,this.style.height=`${oe.a4Height*n}px`}};ct.demo=()=>J` <dedocument-page .format="${"a4"}"></dedocument-page> `,ct.styles=[ye.elementBasic.staticStyles,xe`
516
+ `}async checkOverflow(){return await this.elementDomReady,this.shadowRoot.querySelector("dedocument-pagecontent").checkOverflow()}updated(r){super.updated(r),(r.has("viewHeight")||r.has("viewWidth"))&&this.adjustScaling()}adjustScaling(){let r=this.shadowRoot.querySelector("#scaleWrapper");if(!r)return;let n=1;this.viewHeight?n=this.viewHeight/oe.a4Height:this.viewWidth&&(n=this.viewWidth/oe.a4Width),r.style.transform=`scale(${n})`,this.style.width=`${oe.a4Width*n}px`,this.style.height=`${oe.a4Height*n}px`}};ct.demo=()=>J` <dedocument-page .format="${"a4"}"></dedocument-page> `,ct.styles=[ge.elementBasic.staticStyles,xe`
517
517
  :host {
518
518
  display: block;
519
+ overflow: hidden;
519
520
  }
520
521
 
521
522
  #scaleWrapper {
@@ -553,9 +554,9 @@ EPC QR Code`,i=>{i&&console.error(i),console.log("success!")}),r.currentContent.
553
554
  }
554
555
  `],X([re({type:Number})],ct.prototype,"viewWidth",2),X([re({type:Number})],ct.prototype,"viewHeight",2),X([re({type:String})],ct.prototype,"format",2),X([re({type:Number})],ct.prototype,"pageNumber",2),X([re({type:Number})],ct.prototype,"pageTotalNumber",2),X([re({type:Object})],ct.prototype,"letterData",2),X([re({type:Boolean,reflect:!0})],ct.prototype,"printMode",2),X([re({type:Object,reflect:!0})],ct.prototype,"documentSettings",2),ct=X([Ze("dedocument-page")],ct);var eT=()=>J`
555
556
  <dedocument-dedocument .format="${"a4"}" .letterData=${oe.demoLetter}></dedocument-dedocument>
556
- `;var xc={enableTopDraftText:!0,enableDefaultHeader:!0,enableDefaultFooter:!0,languageCode:"EN",vatGroupPositions:!0},Nt=class extends Fe{constructor(){super();this.format="a4";this.viewWidth=null;this.viewHeight=null;this.printMode=!1;this.documentSettings=xc;this.latestDocumentSettings=null;this.latestRenderedLetterData=null;ye.DomTools.setupDomTools()}render(){return J`
557
+ `;var xc={enableTopDraftText:!0,enableDefaultHeader:!0,enableDefaultFooter:!0,languageCode:"EN",vatGroupPositions:!0},Nt=class extends Fe{constructor(){super();this.format="a4";this.viewWidth=null;this.viewHeight=null;this.printMode=!1;this.documentSettings=xc;this.latestDocumentSettings=null;this.latestRenderedLetterData=null;this.cleanupStore=[];ge.DomTools.setupDomTools()}render(){return J`
557
558
  <div class="documentContainer"></div>
558
- `}async firstUpdated(r){ye.plugins.smartdelay.delayFor(0).then(()=>{this.documentSettings={...xc,...this.documentSettings}});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(){this.latestDocumentSettings=this.documentSettings,this.latestRenderedLetterData=this.letterData,console.log("rendering with settings:"),console.log(this.latestDocumentSettings);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()}async updated(r){super.updated(r);let n=await this.domtoolsPromise;n.convenience.smartjson.deepEqualObjects(this.letterData,this.latestRenderedLetterData)&&n.convenience.smartjson.deepEqualObjects(this.documentSettings,this.latestDocumentSettings)||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))})}};Nt.demo=eT,Nt.styles=[ye.elementBasic.staticStyles,xe`
559
+ `}async firstUpdated(r){ge.plugins.smartdelay.delayFor(0).then(async()=>{for(this.documentSettings={...xc,...this.documentSettings};!1;)await ge.plugins.smartdelay.delayFor(1e3),this.letterData={...this.letterData,content:{...this.letterData.content,invoiceData:{...this.letterData.content.invoiceData,items:[...this.letterData.content.invoiceData.items,{name:"Test Item",unitQuantity:1,unitNetPrice:100,unitType:"hours",vatPercentage:19,position:1}]}}}});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(){this.latestDocumentSettings=this.documentSettings,this.latestRenderedLetterData=this.letterData;let r=[],n=[],i=await this.domtoolsPromise,o=document.createElement("div");r.push(o),document.body.appendChild(o);let s=[],a=0,l=!1,u=new sr;r.push(u),u.letterData=this.letterData,u.documentSettings=this.documentSettings,document.body.appendChild(u),await i.convenience.smartdelay.delayFor(0);let c=0,f,p;for(;!l;){a++;let m=u.cloneNode(!0);n.push(m);let x=new ct;x.printMode=this.printMode,x.letterData=this.letterData,x.documentSettings=this.documentSettings,s.push(x),x.pageNumber=a,x.append(m),x.pageTotalNumber=a,n.push(x),o.append(x),await m.elementDomReady,await m.trimStartToOffset(c);let v=await x.checkOverflow();for(p=0;v;)await m.trimEndByOne(),p++,v=await x.checkOverflow();f=await m.getContentLength(),c=c+f,p===0&&(l=!0)}for(let m of this.cleanupStore)m.remove();this.cleanupStore=n,r.forEach(m=>{m.remove()});let h=this.shadowRoot.querySelector(".documentContainer");h&&Array.from(h.children).forEach(x=>{h.removeChild(x),x.remove()});for(let m of s)if(m.pageTotalNumber=a,h.append(m),!this.printMode){let x=document.createElement("div");x.classList.add("betweenPagesSpacer"),h.appendChild(x)}this.adjustDePageScaling()}async updated(r){super.updated(r);let n=await this.domtoolsPromise;n.convenience.smartjson.deepEqualObjects(this.letterData,this.latestRenderedLetterData)&&n.convenience.smartjson.deepEqualObjects(this.documentSettings,this.latestDocumentSettings)||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)})}};Nt.demo=eT,Nt.styles=[ge.elementBasic.staticStyles,xe`
559
560
  :host {
560
561
  display: block;
561
562
  color: #333;
@@ -567,7 +568,7 @@ EPC QR Code`,i=>{i&&console.error(i),console.log("success!")}),r.currentContent.
567
568
  .betweenPagesSpacer {
568
569
  height: 16px;
569
570
  }
570
- `],X([re({type:String,reflect:!0})],Nt.prototype,"format",2),X([re({type:Number,reflect:!0})],Nt.prototype,"viewWidth",2),X([re({type:Number,reflect:!0})],Nt.prototype,"viewHeight",2),X([re({type:Boolean,reflect:!0})],Nt.prototype,"printMode",2),X([re({type:Object,reflect:!0,converter:r=>typeof r=="string"?Oe.parseBase64(r):r})],Nt.prototype,"letterData",2),X([re({type:Object,reflect:!0,converter:r=>typeof r=="string"?Oe.parseBase64(r):r})],Nt.prototype,"documentSettings",2),Nt=X([Ze("dedocument-dedocument")],Nt);var Dr=class extends Fe{constructor(){super();this.pageNumber=1;this.pageTotalNumber=1;ye.DomTools.setupDomTools()}render(){return J`
571
+ `],X([re({type:String,reflect:!0})],Nt.prototype,"format",2),X([re({type:Number,reflect:!0})],Nt.prototype,"viewWidth",2),X([re({type:Number,reflect:!0})],Nt.prototype,"viewHeight",2),X([re({type:Boolean,reflect:!0})],Nt.prototype,"printMode",2),X([re({type:Object,reflect:!0,converter:r=>typeof r=="string"?Oe.parseBase64(r):r})],Nt.prototype,"letterData",2),X([re({type:Object,reflect:!0,converter:r=>typeof r=="string"?Oe.parseBase64(r):r})],Nt.prototype,"documentSettings",2),Nt=X([Ze("dedocument-dedocument")],Nt);var Dr=class extends Fe{constructor(){super();this.pageNumber=1;this.pageTotalNumber=1;ge.DomTools.setupDomTools()}render(){return J`
571
572
  <div class="date">
572
573
  ${new Date(this.letterData.date).getDate()}. ${new Date(this.letterData.date).toLocaleString("default",{month:"long"})}
573
574
  ${new Date(this.letterData.date).getFullYear()}
@@ -594,7 +595,7 @@ EPC QR Code`,i=>{i&&console.error(i),console.log("success!")}),r.currentContent.
594
595
  </div>
595
596
  `}};Dr.demo=()=>J`
596
597
  <dedocument-letterheader .format="${"a4"}" .letterData=${oe.demoLetter}></dedocument-letterheader>
597
- `,Dr.styles=[ye.elementBasic.staticStyles,or,xe`
598
+ `,Dr.styles=[ge.elementBasic.staticStyles,or,xe`
598
599
  :host {
599
600
  color: #333;
600
601
  }
@@ -656,7 +657,7 @@ EPC QR Code`,i=>{i&&console.error(i),console.log("success!")}),r.currentContent.
656
657
  border-radius: 3px;
657
658
  overflow: hidden;
658
659
  }
659
- `],X([re({type:String})],un.prototype,"format",2),X([re({type:Boolean})],un.prototype,"printMode",2),un=X([Ze("dedocument-pagecontainer")],un);var Mr=class extends Fe{constructor(){super();this.pageNumber=1;this.pageTotalNumber=1;ye.DomTools.setupDomTools()}render(){return J`
660
+ `],X([re({type:String})],un.prototype,"format",2),X([re({type:Boolean})],un.prototype,"printMode",2),un=X([Ze("dedocument-pagecontainer")],un);var Mr=class extends Fe{constructor(){super();this.pageNumber=1;this.pageTotalNumber=1;ge.DomTools.setupDomTools()}render(){return J`
660
661
  <style>
661
662
  .content {
662
663
  top: ${this.pageNumber===1?le("450px"):le("200px")};
@@ -671,9 +672,9 @@ EPC QR Code`,i=>{i&&console.error(i),console.log("success!")}),r.currentContent.
671
672
  <slot></slot>
672
673
  ${this.pageTotalNumber!==this.pageNumber?J`<div class="continuesOnNextPage">Continues on page ${this.pageNumber+1}</div>`:J`<div class="finalPage">This is the final page of this document.</div>`}
673
674
  </div>
674
- `}firstUpdated(r){super.firstUpdated(r),this.checkOverflow()}async checkOverflow(){await this.elementDomReady;let r=this.shadowRoot.querySelector(".content");return r.scrollHeight>r.clientHeight?(console.log("overflows"),!0):(console.log("does not overflow!"),!1)}};Mr.demo=()=>J`
675
+ `}firstUpdated(r){super.firstUpdated(r),this.checkOverflow()}async checkOverflow(){await this.elementDomReady;let r=this.shadowRoot.querySelector(".content");return r.scrollHeight>r.clientHeight}};Mr.demo=()=>J`
675
676
  <dedocument-pagecontent .format="${"a4"}"></dedocument-pagecontent>
676
- `,Mr.styles=[ye.elementBasic.staticStyles,or,xe`
677
+ `,Mr.styles=[ge.elementBasic.staticStyles,or,xe`
677
678
  :host {
678
679
  color: #333;
679
680
  }
@@ -728,7 +729,7 @@ EPC QR Code`,i=>{i&&console.error(i),console.log("success!")}),r.currentContent.
728
729
  margin-top: 8px;
729
730
  font-size: 10px;
730
731
  }
731
- `],X([re({type:Number})],Mr.prototype,"letterData",2),X([re({type:Number})],Mr.prototype,"pageNumber",2),X([re({type:Number})],Mr.prototype,"pageTotalNumber",2),Mr=X([Ze("dedocument-pagecontent")],Mr);var ar=class extends Fe{constructor(){super();this.pageNumber=1;this.pageTotalNumber=1;ye.DomTools.setupDomTools()}render(){return J`
732
+ `],X([re({type:Number})],Mr.prototype,"letterData",2),X([re({type:Number})],Mr.prototype,"pageNumber",2),X([re({type:Number})],Mr.prototype,"pageTotalNumber",2),Mr=X([Ze("dedocument-pagecontent")],Mr);var ar=class extends Fe{constructor(){super();this.pageNumber=1;this.pageTotalNumber=1;ge.DomTools.setupDomTools()}render(){return J`
732
733
  <div class="bottomstripe">
733
734
  <div>
734
735
  <strong>${oe.translation.translate(this.documentSettings.languageCode,"address","Address")}:</strong><br />
@@ -761,7 +762,7 @@ EPC QR Code`,i=>{i&&console.error(i),console.log("success!")}),r.currentContent.
761
762
  </div>
762
763
  `}};ar.demo=()=>J`
763
764
  <dedocument-pagefooter .format="${"a4"}"></dedocument-pagefooter>
764
- `,ar.styles=[ye.elementBasic.staticStyles,or,xe`
765
+ `,ar.styles=[ge.elementBasic.staticStyles,or,xe`
765
766
  :host {
766
767
  color: #333;
767
768
  }
@@ -803,7 +804,7 @@ EPC QR Code`,i=>{i&&console.error(i),console.log("success!")}),r.currentContent.
803
804
  border-top-left-radius: 3px;
804
805
  border-top-right-radius: 3px;
805
806
  }
806
- `],X([re({type:Object})],ar.prototype,"letterData",2),X([re({type:Object,reflect:!0})],ar.prototype,"documentSettings",2),X([re({type:Number})],ar.prototype,"pageNumber",2),X([re({type:Number})],ar.prototype,"pageTotalNumber",2),ar=X([Ze("dedocument-pagefooter")],ar);var lr=class extends Fe{constructor(){super();this.letterData=null;this.pageNumber=1;this.pageTotalNumber=1;ye.DomTools.setupDomTools()}render(){return J`
807
+ `],X([re({type:Object})],ar.prototype,"letterData",2),X([re({type:Object,reflect:!0})],ar.prototype,"documentSettings",2),X([re({type:Number})],ar.prototype,"pageNumber",2),X([re({type:Number})],ar.prototype,"pageTotalNumber",2),ar=X([Ze("dedocument-pagefooter")],ar);var lr=class extends Fe{constructor(){super();this.letterData=null;this.pageNumber=1;this.pageTotalNumber=1;ge.DomTools.setupDomTools()}render(){return J`
807
808
  <div class="topstripe">
808
809
  <div class="logo">
809
810
  No logo set!
@@ -812,7 +813,7 @@ EPC QR Code`,i=>{i&&console.error(i),console.log("success!")}),r.currentContent.
812
813
  <div class="topstripe2">${this.letterData?.from?.description||"[no letterData.from.description set]"}</div>
813
814
  `}};lr.demo=()=>J`
814
815
  <dedocument-pageheader .format="${"a4"}"></dedocument-pageheader>
815
- `,lr.styles=[ye.elementBasic.staticStyles,or,xe`
816
+ `,lr.styles=[ge.elementBasic.staticStyles,or,xe`
816
817
  :host {
817
818
  color: #333;
818
819
  }