@uptime.link/statuspage 1.4.0 → 1.4.2
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.
- package/dist_bundle/bundle.js +99 -99
- package/dist_bundle/bundle.js.map +4 -4
- package/dist_ts_web/00_commitinfo_data.js +1 -1
- package/dist_watch/bundle.js +357 -172
- package/dist_watch/bundle.js.map +4 -4
- package/license.md +21 -0
- package/package.json +5 -5
- package/readme.hints.md +40 -284
- package/readme.md +1 -1
- package/ts_web/00_commitinfo_data.ts +1 -1
package/dist_bundle/bundle.js
CHANGED
|
@@ -1,95 +1,95 @@
|
|
|
1
|
-
var yb=Object.create;var Ri=Object.defineProperty;var bb=Object.getOwnPropertyDescriptor;var dA=Object.getOwnPropertyNames;var pA=Object.getPrototypeOf,fA=Object.prototype.hasOwnProperty;var vb=(e,t)=>(t=Symbol[e])?t:Symbol.for("Symbol."+e),Bi=e=>{throw TypeError(e)};var wb=(e,t,r)=>t in e?Ri(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var hb=(e,t)=>Ri(e,"name",{value:t,configurable:!0}),Hl=(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 ye=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),me=(e,t)=>{for(var r in t)Ri(e,r,{get:t[r],enumerable:!0})},mA=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of dA(t))!fA.call(e,o)&&o!==r&&Ri(e,o,{get:()=>t[o],enumerable:!(n=bb(t,o))||n.enumerable});return e};var Qt=(e,t,r)=>(r=e!=null?yb(pA(e)):{},mA(t||!e||!e.__esModule?Ri(r,"default",{value:e,enumerable:!0}):r,e));var xt=e=>[,,,yb(e?.[vb("metadata")]??null)],Sb=["class","method","getter","setter","accessor","field","value","get","set"],aa=e=>e!==void 0&&typeof e!="function"?Bi("Function expected"):e,hA=(e,t,r,n,o)=>({kind:Sb[e],name:t,metadata:n,addInitializer:i=>r._?Bi("Already initialized"):o.push(aa(i||null))}),gA=(e,t)=>wb(t,vb("metadata"),e[3]),E=(e,t,r,n)=>{for(var o=0,i=e[t>>1],s=i&&i.length;o<s;o++)t&1?i[o].call(r):n=i[o].call(r,n);return n},V=(e,t,r,n,o,i)=>{var s,a,l,c,u,d=t&7,p=!!(t&8),f=!!(t&16),m=d>3?e.length+1:d?p?1:2:0,g=Sb[d+5],x=d>3&&(e[m-1]=[]),y=e[m]||(e[m]=[]),T=d&&(!f&&!p&&(o=o.prototype),d<5&&(d>3||!f)&&bb(d<4?o:{get[r](){return gb(this,i)},set[r](H){return xb(this,i,H)}},r));d?f&&d<4&&hb(i,(d>2?"set ":d>1?"get ":"")+r):hb(o,r);for(var D=n.length-1;D>=0;D--)c=hA(d,r,l={},e[3],y),d&&(c.static=p,c.private=f,u=c.access={has:f?H=>xA(o,H):H=>r in H},d^3&&(u.get=f?H=>(d^1?gb:yA)(H,o,d^4?i:T.get):H=>H[r]),d>2&&(u.set=f?(H,j)=>xb(H,o,j,d^4?i:T.set):(H,j)=>H[r]=j)),a=(0,n[D])(d?d<4?f?i:T[g]:d>4?void 0:{get:T.get,set:T.set}:o,c),l._=1,d^4||a===void 0?aa(a)&&(d>4?x.unshift(a):d?f?i=a:T[g]=a:o=a):typeof a!="object"||a===null?Bi("Object expected"):(aa(s=a.get)&&(T.get=s),aa(s=a.set)&&(T.set=s),aa(s=a.init)&&x.unshift(s));return d||gA(e,o),T&&Ri(o,r,T),f?d^4?i:T:o},ze=(e,t,r)=>wb(e,typeof t!="symbol"?t+"":t,r),Tf=(e,t,r)=>t.has(e)||Bi("Cannot "+r),xA=(e,t)=>Object(t)!==t?Bi('Cannot use the "in" operator on this value'):e.has(t),gb=(e,t,r)=>(Tf(e,t,"read from private field"),r?r.call(e):t.get(e)),J=(e,t,r)=>t.has(e)?Bi("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),xb=(e,t,r,n)=>(Tf(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r),yA=(e,t,r)=>(Tf(e,t,"access private method"),r);var Kl=ye(Zl=>{"use strict";Object.defineProperty(Zl,"__esModule",{value:!0}),Zl.uni=void 0;var _A=(e="uni")=>`${e}_${"xxxxxxxxxxxxxxxxxxxxxxxx".replace(/[xy]/g,t=>{let r=Math.random()*16|0;return(t==="x"?r:r&3|8).toString(16)})}`;Zl.uni=_A});var hS=ye((hm,gm)=>{(function(e,t){typeof hm=="object"&&typeof gm<"u"?gm.exports=t():typeof define=="function"&&define.amd?define(t):(e=typeof globalThis<"u"?globalThis:e||self).dayjs=t()})(hm,(function(){"use strict";var e=1e3,t=6e4,r=36e5,n="millisecond",o="second",i="minute",s="hour",a="day",l="week",c="month",u="quarter",d="year",p="date",f="Invalid Date",m=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,g=/\[([^\]]+)]|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,x={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(Q){var L=["th","st","nd","rd"],F=Q%100;return"["+Q+(L[(F-20)%10]||L[F]||L[0])+"]"}},y=function(Q,L,F){var z=String(Q);return!z||z.length>=L?Q:""+Array(L+1-z.length).join(F)+Q},T={s:y,z:function(Q){var L=-Q.utcOffset(),F=Math.abs(L),z=Math.floor(F/60),Y=F%60;return(L<=0?"+":"-")+y(z,2,"0")+":"+y(Y,2,"0")},m:function Q(L,F){if(L.date()<F.date())return-Q(F,L);var z=12*(F.year()-L.year())+(F.month()-L.month()),Y=L.clone().add(z,c),re=F-Y<0,ie=L.clone().add(z+(re?-1:1),c);return+(-(z+(F-Y)/(re?Y-ie:ie-Y))||0)},a:function(Q){return Q<0?Math.ceil(Q)||0:Math.floor(Q)},p:function(Q){return{M:c,y:d,w:l,d:a,D:p,h:s,m:i,s:o,ms:n,Q:u}[Q]||String(Q||"").toLowerCase().replace(/s$/,"")},u:function(Q){return Q===void 0}},D="en",H={};H[D]=x;var j="$isDayjsObject",M=function(Q){return Q instanceof _||!(!Q||!Q[j])},U=function Q(L,F,z){var Y;if(!L)return D;if(typeof L=="string"){var re=L.toLowerCase();H[re]&&(Y=re),F&&(H[re]=F,Y=re);var ie=L.split("-");if(!Y&&ie.length>1)return Q(ie[0])}else{var we=L.name;H[we]=L,Y=we}return!z&&Y&&(D=Y),Y||!z&&D},le=function(Q,L){if(M(Q))return Q.clone();var F=typeof L=="object"?L:{};return F.date=Q,F.args=arguments,new _(F)},ee=T;ee.l=U,ee.i=M,ee.w=function(Q,L){return le(Q,{locale:L.$L,utc:L.$u,x:L.$x,$offset:L.$offset})};var _=(function(){function Q(F){this.$L=U(F.locale,null,!0),this.parse(F),this.$x=this.$x||F.x||{},this[j]=!0}var L=Q.prototype;return L.parse=function(F){this.$d=(function(z){var Y=z.date,re=z.utc;if(Y===null)return new Date(NaN);if(ee.u(Y))return new Date;if(Y instanceof Date)return new Date(Y);if(typeof Y=="string"&&!/Z$/i.test(Y)){var ie=Y.match(m);if(ie){var we=ie[2]-1||0,w=(ie[7]||"0").substring(0,3);return re?new Date(Date.UTC(ie[1],we,ie[3]||1,ie[4]||0,ie[5]||0,ie[6]||0,w)):new Date(ie[1],we,ie[3]||1,ie[4]||0,ie[5]||0,ie[6]||0,w)}}return new Date(Y)})(F),this.init()},L.init=function(){var F=this.$d;this.$y=F.getFullYear(),this.$M=F.getMonth(),this.$D=F.getDate(),this.$W=F.getDay(),this.$H=F.getHours(),this.$m=F.getMinutes(),this.$s=F.getSeconds(),this.$ms=F.getMilliseconds()},L.$utils=function(){return ee},L.isValid=function(){return this.$d.toString()!==f},L.isSame=function(F,z){var Y=le(F);return this.startOf(z)<=Y&&Y<=this.endOf(z)},L.isAfter=function(F,z){return le(F)<this.startOf(z)},L.isBefore=function(F,z){return this.endOf(z)<le(F)},L.$g=function(F,z,Y){return ee.u(F)?this[z]:this.set(Y,F)},L.unix=function(){return Math.floor(this.valueOf()/1e3)},L.valueOf=function(){return this.$d.getTime()},L.startOf=function(F,z){var Y=this,re=!!ee.u(z)||z,ie=ee.p(F),we=function(I,S){var $=ee.w(Y.$u?Date.UTC(Y.$y,S,I):new Date(Y.$y,S,I),Y);return re?$:$.endOf(a)},w=function(I,S){return ee.w(Y.toDate()[I].apply(Y.toDate("s"),(re?[0,0,0,0]:[23,59,59,999]).slice(S)),Y)},Ie=this.$W,Ne=this.$M,k=this.$D,Ke="set"+(this.$u?"UTC":"");switch(ie){case d:return re?we(1,0):we(31,11);case c:return re?we(1,Ne):we(0,Ne+1);case l:var gt=this.$locale().weekStart||0,ur=(Ie<gt?Ie+7:Ie)-gt;return we(re?k-ur:k+(6-ur),Ne);case a:case p:return w(Ke+"Hours",0);case s:return w(Ke+"Minutes",1);case i:return w(Ke+"Seconds",2);case o:return w(Ke+"Milliseconds",3);default:return this.clone()}},L.endOf=function(F){return this.startOf(F,!1)},L.$set=function(F,z){var Y,re=ee.p(F),ie="set"+(this.$u?"UTC":""),we=(Y={},Y[a]=ie+"Date",Y[p]=ie+"Date",Y[c]=ie+"Month",Y[d]=ie+"FullYear",Y[s]=ie+"Hours",Y[i]=ie+"Minutes",Y[o]=ie+"Seconds",Y[n]=ie+"Milliseconds",Y)[re],w=re===a?this.$D+(z-this.$W):z;if(re===c||re===d){var Ie=this.clone().set(p,1);Ie.$d[we](w),Ie.init(),this.$d=Ie.set(p,Math.min(this.$D,Ie.daysInMonth())).$d}else we&&this.$d[we](w);return this.init(),this},L.set=function(F,z){return this.clone().$set(F,z)},L.get=function(F){return this[ee.p(F)]()},L.add=function(F,z){var Y,re=this;F=Number(F);var ie=ee.p(z),we=function(Ne){var k=le(re);return ee.w(k.date(k.date()+Math.round(Ne*F)),re)};if(ie===c)return this.set(c,this.$M+F);if(ie===d)return this.set(d,this.$y+F);if(ie===a)return we(1);if(ie===l)return we(7);var w=(Y={},Y[i]=t,Y[s]=r,Y[o]=e,Y)[ie]||1,Ie=this.$d.getTime()+F*w;return ee.w(Ie,this)},L.subtract=function(F,z){return this.add(-1*F,z)},L.format=function(F){var z=this,Y=this.$locale();if(!this.isValid())return Y.invalidDate||f;var re=F||"YYYY-MM-DDTHH:mm:ssZ",ie=ee.z(this),we=this.$H,w=this.$m,Ie=this.$M,Ne=Y.weekdays,k=Y.months,Ke=Y.meridiem,gt=function(S,$,A,B){return S&&(S[$]||S(z,re))||A[$].slice(0,B)},ur=function(S){return ee.s(we%12||12,S,"0")},I=Ke||function(S,$,A){var B=S<12?"AM":"PM";return A?B.toLowerCase():B};return re.replace(g,(function(S,$){return $||(function(A){switch(A){case"YY":return String(z.$y).slice(-2);case"YYYY":return ee.s(z.$y,4,"0");case"M":return Ie+1;case"MM":return ee.s(Ie+1,2,"0");case"MMM":return gt(Y.monthsShort,Ie,k,3);case"MMMM":return gt(k,Ie);case"D":return z.$D;case"DD":return ee.s(z.$D,2,"0");case"d":return String(z.$W);case"dd":return gt(Y.weekdaysMin,z.$W,Ne,2);case"ddd":return gt(Y.weekdaysShort,z.$W,Ne,3);case"dddd":return Ne[z.$W];case"H":return String(we);case"HH":return ee.s(we,2,"0");case"h":return ur(1);case"hh":return ur(2);case"a":return I(we,w,!0);case"A":return I(we,w,!1);case"m":return String(w);case"mm":return ee.s(w,2,"0");case"s":return String(z.$s);case"ss":return ee.s(z.$s,2,"0");case"SSS":return ee.s(z.$ms,3,"0");case"Z":return ie}return null})(S)||ie.replace(":","")}))},L.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},L.diff=function(F,z,Y){var re,ie=this,we=ee.p(z),w=le(F),Ie=(w.utcOffset()-this.utcOffset())*t,Ne=this-w,k=function(){return ee.m(ie,w)};switch(we){case d:re=k()/12;break;case c:re=k();break;case u:re=k()/3;break;case l:re=(Ne-Ie)/6048e5;break;case a:re=(Ne-Ie)/864e5;break;case s:re=Ne/r;break;case i:re=Ne/t;break;case o:re=Ne/e;break;default:re=Ne}return Y?re:ee.a(re)},L.daysInMonth=function(){return this.endOf(c).$D},L.$locale=function(){return H[this.$L]},L.locale=function(F,z){if(!F)return this.$L;var Y=this.clone(),re=U(F,z,!0);return re&&(Y.$L=re),Y},L.clone=function(){return ee.w(this.$d,this)},L.toDate=function(){return new Date(this.valueOf())},L.toJSON=function(){return this.isValid()?this.toISOString():null},L.toISOString=function(){return this.$d.toISOString()},L.toString=function(){return this.$d.toUTCString()},Q})(),_e=_.prototype;return le.prototype=_e,[["$ms",n],["$s",o],["$m",i],["$H",s],["$W",a],["$M",c],["$y",d],["$D",p]].forEach((function(Q){_e[Q[1]]=function(L){return this.$g(L,Q[0],Q[1])}})),le.extend=function(Q,L){return Q.$i||(Q(L,_,le),Q.$i=!0),le},le.locale=U,le.isDayjs=M,le.unix=function(Q){return le(1e3*Q)},le.en=H[D],le.Ls=H,le.p={},le}))});var gS=ye((xm,ym)=>{(function(e,t){typeof xm=="object"&&typeof ym<"u"?ym.exports=t():typeof define=="function"&&define.amd?define(t):(e=typeof globalThis<"u"?globalThis:e||self).dayjs_plugin_isToday=t()})(xm,(function(){"use strict";return function(e,t,r){t.prototype.isToday=function(){var n="YYYY-MM-DD",o=r();return this.format(n)===o.format(n)}}}))});var wS=ye((HTe,vS)=>{"use strict";vS.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 kS=ye((UTe,SS)=>{"use strict";SS.exports=Object.freeze({DISCONNECTED:1,PRECEDING:2,FOLLOWING:4,CONTAINS:8,CONTAINED_BY:16})});var MS=ye((jTe,ES)=>{"use strict";var TS=Symbol(),DS=Symbol(),so=Symbol(),CS=Symbol(),Hr=class{constructor(t,r,n,o){this[TS]=t,this[DS]=r,this[so]=n,this[CS]=o}next(){let t=this[TS],r=this[CS],n=this[DS];if(!this[so])return{done:!0,value:n};let o=this[so];return r===1?this[so]=t._node(o).previousSibling:r===2?this[so]=t._node(o).nextSibling:r===3?this[so]=t._node(o).parent:r===4?this[so]=t.preceding(o,{root:n}):this[so]=t.following(o,{root:n}),{done:!1,value:o}}};Object.defineProperty(Hr.prototype,Symbol.iterator,{value:function(){return this},writable:!1}),Hr.PREV=1,Hr.NEXT=2,Hr.PARENT=3,Hr.PRECEDING=4,Hr.FOLLOWING=5,Object.freeze(Hr),Object.freeze(Hr.prototype),ES.exports=Hr});var Mm=ye((qTe,IS)=>{"use strict";var sP=wS(),ao=kS(),Mr=MS();function Em(){return!0}function Ss(e,t){return e[e.length-1-t]}var xd=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 sP)}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 o=this._node(t).previousSibling;return o?this.lastInclusiveDescendant(o):this._node(t).parent}following(t,r){let n=r&&r.root,i=!(r&&r.skipChildren)&&this._node(t).firstChild;if(i)return i;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||[],o=r&&r.filter||Em,i=r&&r.thisArg||void 0,s=this._node(t),a=s.firstChild,l=0;for(;a;){let c=this._node(a);c.setCachedIndex(s,l),o.call(i,a)&&n.push(a),a=c.nextSibling,++l}return n}ancestorsToArray(t,r){let n=r&&r.array||[],o=r&&r.filter||Em,i=r&&r.thisArg||void 0,s=t;for(;s;)o.call(i,s)&&n.push(s),s=this._node(s).parent;return n}treeToArray(t,r){let n=r&&r.array||[],o=r&&r.filter||Em,i=r&&r.thisArg||void 0,s=t;for(;s;)o.call(i,s)&&n.push(s),s=this.following(s,{root:t});return n}childrenIterator(t,r){let n=r&&r.reverse,o=this._node(t);return new Mr(this,t,n?o.lastChild:o.firstChild,n?Mr.PREV:Mr.NEXT)}previousSiblingsIterator(t){return new Mr(this,t,this._node(t).previousSibling,Mr.PREV)}nextSiblingsIterator(t){return new Mr(this,t,this._node(t).nextSibling,Mr.NEXT)}ancestorsIterator(t){return new Mr(this,t,t,Mr.PARENT)}treeIterator(t,r){let n=r&&r.reverse;return new Mr(this,t,n?this.lastInclusiveDescendant(t):t,n?Mr.PRECEDING:Mr.FOLLOWING)}index(t){let r=this._node(t),n=this._node(r.parent);if(!n)return-1;let o=r.getCachedIndex(n);if(o>=0)return o;o=0;let i=n.firstChild;if(n.childIndexCachedUpTo){let s=this._node(n.childIndexCachedUpTo);i=s.nextSibling,o=s.getCachedIndex(n)+1}for(;i;){let s=this._node(i);if(s.setCachedIndex(n,o),i===t)break;++o,i=s.nextSibling}return n.childIndexCachedUpTo=t,o}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 u=t;for(;u;){if(u===r)return ao.CONTAINS|ao.PRECEDING;n.push(u),u=this.parent(u)}}let o=[];{let u=r;for(;u;){if(u===t)return ao.CONTAINED_BY|ao.FOLLOWING;o.push(u),u=this.parent(u)}}let i=Ss(n,0);if(!i||i!==Ss(o,0))return ao.DISCONNECTED;let s=0,a=Math.min(n.length,o.length);for(let u=0;u<a;++u){let d=Ss(n,u),p=Ss(o,u);if(d!==p)break;s=u}let l=this.index(Ss(n,s+1));return this.index(Ss(o,s+1))<l?ao.PRECEDING:ao.FOLLOWING}remove(t){let r=this._node(t),n=this._node(r.parent),o=this._node(r.previousSibling),i=this._node(r.nextSibling);return n&&(n.firstChild===t&&(n.firstChild=r.nextSibling),n.lastChild===t&&(n.lastChild=r.previousSibling)),o&&(o.nextSibling=r.nextSibling),i&&(i.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),o=this._node(n.previousSibling),i=this._node(r),s=this._node(n.parent);if(i.isAttached)throw Error("Given object is already present in this SymbolTree, remove it first");return i.parent=n.parent,i.previousSibling=n.previousSibling,i.nextSibling=t,n.previousSibling=r,o&&(o.nextSibling=r),s&&s.firstChild===t&&(s.firstChild=r),s&&s.childrenChanged(),r}insertAfter(t,r){let n=this._node(t),o=this._node(n.nextSibling),i=this._node(r),s=this._node(n.parent);if(i.isAttached)throw Error("Given object is already present in this SymbolTree, remove it first");return i.parent=n.parent,i.previousSibling=t,i.nextSibling=n.nextSibling,n.nextSibling=r,o&&(o.previousSibling=r),s&&s.lastChild===t&&(s.lastChild=r),s&&s.childrenChanged(),r}prependChild(t,r){let n=this._node(t),o=this._node(r);if(o.isAttached)throw Error("Given object is already present in this SymbolTree, remove it first");return n.hasChildren?this.insertBefore(n.firstChild,r):(o.parent=t,n.firstChild=r,n.lastChild=r,n.childrenChanged()),r}appendChild(t,r){let n=this._node(t),o=this._node(r);if(o.isAttached)throw Error("Given object is already present in this SymbolTree, remove it first");return n.hasChildren?this.insertAfter(n.lastChild,r):(o.parent=t,n.firstChild=r,n.lastChild=r,n.childrenChanged()),r}};IS.exports=xd,xd.TreePosition=ao});var $k=ye((Ga,Ms)=>{var XP=200,jS="__lodash_hash_undefined__",qS=9007199254740991,jm="[object Arguments]",JP="[object Array]",YS="[object Boolean]",WS="[object Date]",ZP="[object Error]",qm="[object Function]",VS="[object GeneratorFunction]",Ed="[object Map]",GS="[object Number]",Ym="[object Object]",QS="[object Promise]",XS="[object RegExp]",Md="[object Set]",JS="[object String]",ZS="[object Symbol]",Wm="[object WeakMap]",KS="[object ArrayBuffer]",Id="[object DataView]",ek="[object Float32Array]",tk="[object Float64Array]",rk="[object Int8Array]",nk="[object Int16Array]",ok="[object Int32Array]",ik="[object Uint8Array]",sk="[object Uint8ClampedArray]",ak="[object Uint16Array]",lk="[object Uint32Array]",KP=/[\\^$.*+?()[\]{}|]/g,e5=/\w*$/,t5=/^\[object .+?Constructor\]$/,r5=/^(?:0|[1-9]\d*)$/,Je={};Je[jm]=Je[JP]=Je[KS]=Je[Id]=Je[YS]=Je[WS]=Je[ek]=Je[tk]=Je[rk]=Je[nk]=Je[ok]=Je[Ed]=Je[GS]=Je[Ym]=Je[XS]=Je[Md]=Je[JS]=Je[ZS]=Je[ik]=Je[sk]=Je[ak]=Je[lk]=!0,Je[ZP]=Je[qm]=Je[Wm]=!1;var n5=typeof global=="object"&&global&&global.Object===Object&&global,o5=typeof self=="object"&&self&&self.Object===Object&&self,On=n5||o5||Function("return this")(),ck=typeof Ga=="object"&&Ga&&!Ga.nodeType&&Ga,uk=ck&&typeof Ms=="object"&&Ms&&!Ms.nodeType&&Ms,i5=uk&&uk.exports===ck;function s5(e,t){return e.set(t[0],t[1]),e}function a5(e,t){return e.add(t),e}function l5(e,t){for(var r=-1,n=e?e.length:0;++r<n&&t(e[r],r,e)!==!1;);return e}function c5(e,t){for(var r=-1,n=t.length,o=e.length;++r<n;)e[o+r]=t[r];return e}function dk(e,t,r,n){var o=-1,i=e?e.length:0;for(n&&i&&(r=e[++o]);++o<i;)r=t(r,e[o],o,e);return r}function u5(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}function d5(e,t){return e?.[t]}function pk(e){var t=!1;if(e!=null&&typeof e.toString!="function")try{t=!!(e+"")}catch{}return t}function fk(e){var t=-1,r=Array(e.size);return e.forEach(function(n,o){r[++t]=[o,n]}),r}function Vm(e,t){return function(r){return e(t(r))}}function mk(e){var t=-1,r=Array(e.size);return e.forEach(function(n){r[++t]=n}),r}var p5=Array.prototype,f5=Function.prototype,$d=Object.prototype,Gm=On["__core-js_shared__"],hk=(function(){var e=/[^.]+$/.exec(Gm&&Gm.keys&&Gm.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""})(),gk=f5.toString,po=$d.hasOwnProperty,Ad=$d.toString,m5=RegExp("^"+gk.call(po).replace(KP,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),xk=i5?On.Buffer:void 0,yk=On.Symbol,bk=On.Uint8Array,h5=Vm(Object.getPrototypeOf,Object),g5=Object.create,x5=$d.propertyIsEnumerable,y5=p5.splice,vk=Object.getOwnPropertySymbols,b5=xk?xk.isBuffer:void 0,v5=Vm(Object.keys,Object),Qm=Es(On,"DataView"),Wa=Es(On,"Map"),Xm=Es(On,"Promise"),Jm=Es(On,"Set"),Zm=Es(On,"WeakMap"),Va=Es(Object,"create"),w5=oi(Qm),S5=oi(Wa),k5=oi(Xm),T5=oi(Jm),D5=oi(Zm),wk=yk?yk.prototype:void 0,Sk=wk?wk.valueOf:void 0;function ri(e){var t=-1,r=e?e.length:0;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function C5(){this.__data__=Va?Va(null):{}}function E5(e){return this.has(e)&&delete this.__data__[e]}function M5(e){var t=this.__data__;if(Va){var r=t[e];return r===jS?void 0:r}return po.call(t,e)?t[e]:void 0}function I5(e){var t=this.__data__;return Va?t[e]!==void 0:po.call(t,e)}function $5(e,t){var r=this.__data__;return r[e]=Va&&t===void 0?jS:t,this}ri.prototype.clear=C5,ri.prototype.delete=E5,ri.prototype.get=M5,ri.prototype.has=I5,ri.prototype.set=$5;function Ln(e){var t=-1,r=e?e.length:0;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function A5(){this.__data__=[]}function _5(e){var t=this.__data__,r=_d(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():y5.call(t,r,1),!0}function O5(e){var t=this.__data__,r=_d(t,e);return r<0?void 0:t[r][1]}function L5(e){return _d(this.__data__,e)>-1}function N5(e,t){var r=this.__data__,n=_d(r,e);return n<0?r.push([e,t]):r[n][1]=t,this}Ln.prototype.clear=A5,Ln.prototype.delete=_5,Ln.prototype.get=O5,Ln.prototype.has=L5,Ln.prototype.set=N5;function Ds(e){var t=-1,r=e?e.length:0;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function P5(){this.__data__={hash:new ri,map:new(Wa||Ln),string:new ri}}function F5(e){return Od(this,e).delete(e)}function R5(e){return Od(this,e).get(e)}function B5(e){return Od(this,e).has(e)}function z5(e,t){return Od(this,e).set(e,t),this}Ds.prototype.clear=P5,Ds.prototype.delete=F5,Ds.prototype.get=R5,Ds.prototype.has=B5,Ds.prototype.set=z5;function Cs(e){this.__data__=new Ln(e)}function H5(){this.__data__=new Ln}function U5(e){return this.__data__.delete(e)}function j5(e){return this.__data__.get(e)}function q5(e){return this.__data__.has(e)}function Y5(e,t){var r=this.__data__;if(r instanceof Ln){var n=r.__data__;if(!Wa||n.length<XP-1)return n.push([e,t]),this;r=this.__data__=new Ds(n)}return r.set(e,t),this}Cs.prototype.clear=H5,Cs.prototype.delete=U5,Cs.prototype.get=j5,Cs.prototype.has=q5,Cs.prototype.set=Y5;function W5(e,t){var r=th(e)||g3(e)?u5(e.length,String):[],n=r.length,o=!!n;for(var i in e)(t||po.call(e,i))&&!(o&&(i=="length"||p3(i,n)))&&r.push(i);return r}function kk(e,t,r){var n=e[t];(!(po.call(e,t)&&Ek(n,r))||r===void 0&&!(t in e))&&(e[t]=r)}function _d(e,t){for(var r=e.length;r--;)if(Ek(e[r][0],t))return r;return-1}function V5(e,t){return e&&Tk(t,rh(t),e)}function Km(e,t,r,n,o,i,s){var a;if(n&&(a=i?n(e,o,i,s):n(e)),a!==void 0)return a;if(!Ld(e))return e;var l=th(e);if(l){if(a=c3(e),!t)return s3(e,a)}else{var c=ni(e),u=c==qm||c==VS;if(y3(e))return K5(e,t);if(c==Ym||c==jm||u&&!i){if(pk(e))return i?e:{};if(a=u3(u?{}:e),!t)return a3(e,V5(a,e))}else{if(!Je[c])return i?e:{};a=d3(e,c,Km,t)}}s||(s=new Cs);var d=s.get(e);if(d)return d;if(s.set(e,a),!l)var p=r?l3(e):rh(e);return l5(p||e,function(f,m){p&&(m=f,f=e[m]),kk(a,m,Km(f,t,r,n,m,e,s))}),a}function G5(e){return Ld(e)?g5(e):{}}function Q5(e,t,r){var n=t(e);return th(e)?n:c5(n,r(e))}function X5(e){return Ad.call(e)}function J5(e){if(!Ld(e)||m3(e))return!1;var t=Ik(e)||pk(e)?m5:t5;return t.test(oi(e))}function Z5(e){if(!Ck(e))return v5(e);var t=[];for(var r in Object(e))po.call(e,r)&&r!="constructor"&&t.push(r);return t}function K5(e,t){if(t)return e.slice();var r=new e.constructor(e.length);return e.copy(r),r}function eh(e){var t=new e.constructor(e.byteLength);return new bk(t).set(new bk(e)),t}function e3(e,t){var r=t?eh(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}function t3(e,t,r){var n=t?r(fk(e),!0):fk(e);return dk(n,s5,new e.constructor)}function r3(e){var t=new e.constructor(e.source,e5.exec(e));return t.lastIndex=e.lastIndex,t}function n3(e,t,r){var n=t?r(mk(e),!0):mk(e);return dk(n,a5,new e.constructor)}function o3(e){return Sk?Object(Sk.call(e)):{}}function i3(e,t){var r=t?eh(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}function s3(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r<n;)t[r]=e[r];return t}function Tk(e,t,r,n){r||(r={});for(var o=-1,i=t.length;++o<i;){var s=t[o],a=n?n(r[s],e[s],s,r,e):void 0;kk(r,s,a===void 0?e[s]:a)}return r}function a3(e,t){return Tk(e,Dk(e),t)}function l3(e){return Q5(e,rh,Dk)}function Od(e,t){var r=e.__data__;return f3(t)?r[typeof t=="string"?"string":"hash"]:r.map}function Es(e,t){var r=d5(e,t);return J5(r)?r:void 0}var Dk=vk?Vm(vk,Object):w3,ni=X5;(Qm&&ni(new Qm(new ArrayBuffer(1)))!=Id||Wa&&ni(new Wa)!=Ed||Xm&&ni(Xm.resolve())!=QS||Jm&&ni(new Jm)!=Md||Zm&&ni(new Zm)!=Wm)&&(ni=function(e){var t=Ad.call(e),r=t==Ym?e.constructor:void 0,n=r?oi(r):void 0;if(n)switch(n){case w5:return Id;case S5:return Ed;case k5:return QS;case T5:return Md;case D5:return Wm}return t});function c3(e){var t=e.length,r=e.constructor(t);return t&&typeof e[0]=="string"&&po.call(e,"index")&&(r.index=e.index,r.input=e.input),r}function u3(e){return typeof e.constructor=="function"&&!Ck(e)?G5(h5(e)):{}}function d3(e,t,r,n){var o=e.constructor;switch(t){case KS:return eh(e);case YS:case WS:return new o(+e);case Id:return e3(e,n);case ek:case tk:case rk:case nk:case ok:case ik:case sk:case ak:case lk:return i3(e,n);case Ed:return t3(e,n,r);case GS:case JS:return new o(e);case XS:return r3(e);case Md:return n3(e,n,r);case ZS:return o3(e)}}function p3(e,t){return t=t??qS,!!t&&(typeof e=="number"||r5.test(e))&&e>-1&&e%1==0&&e<t}function f3(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function m3(e){return!!hk&&hk in e}function Ck(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||$d;return e===r}function oi(e){if(e!=null){try{return gk.call(e)}catch{}try{return e+""}catch{}}return""}function h3(e){return Km(e,!0,!0)}function Ek(e,t){return e===t||e!==e&&t!==t}function g3(e){return x3(e)&&po.call(e,"callee")&&(!x5.call(e,"callee")||Ad.call(e)==jm)}var th=Array.isArray;function Mk(e){return e!=null&&b3(e.length)&&!Ik(e)}function x3(e){return v3(e)&&Mk(e)}var y3=b5||S3;function Ik(e){var t=Ld(e)?Ad.call(e):"";return t==qm||t==VS}function b3(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=qS}function Ld(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function v3(e){return!!e&&typeof e=="object"}function rh(e){return Mk(e)?W5(e):Z5(e)}function w3(){return[]}function S3(){return!1}Ms.exports=h3});var _k=ye((K2e,Ak)=>{"use strict";Ak.exports=function(e,t){t||(t={}),typeof t=="function"&&(t={cmp:t});var r=typeof t.cycles=="boolean"?t.cycles:!1,n=t.cmp&&(function(i){return function(s){return function(a,l){var c={key:a,value:s[a]},u={key:l,value:s[l]};return i(c,u)}}})(t.cmp),o=[];return(function i(s){if(s&&s.toJSON&&typeof s.toJSON=="function"&&(s=s.toJSON()),s!==void 0){if(typeof s=="number")return isFinite(s)?""+s:"null";if(typeof s!="object")return JSON.stringify(s);var a,l;if(Array.isArray(s)){for(l="[",a=0;a<s.length;a++)a&&(l+=","),l+=i(s[a])||"null";return l+"]"}if(s===null)return"null";if(o.indexOf(s)!==-1){if(r)return JSON.stringify("__cycle__");throw new TypeError("Converting circular structure to JSON")}var c=o.push(s)-1,u=Object.keys(s).sort(n&&n(s));for(l="",a=0;a<u.length;a++){var d=u[a],p=i(s[d]);p&&(l&&(l+=","),l+=JSON.stringify(d)+":"+p)}return o.splice(c,1),"{"+l+"}"}})(e)}});var di=ye((vCe,ui)=>{"use strict";function gT(e){return typeof e>"u"||e===null}function qF(e){return typeof e=="object"&&e!==null}function YF(e){return Array.isArray(e)?e:gT(e)?[]:[e]}function WF(e,t){var r,n,o,i;if(t)for(i=Object.keys(t),r=0,n=i.length;r<n;r+=1)o=i[r],e[o]=t[o];return e}function VF(e,t){var r="",n;for(n=0;n<t;n+=1)r+=e;return r}function GF(e){return e===0&&Number.NEGATIVE_INFINITY===1/e}ui.exports.isNothing=gT,ui.exports.isObject=qF,ui.exports.toArray=YF,ui.exports.repeat=VF,ui.exports.isNegativeZero=GF,ui.exports.extend=WF});var $s=ye((wCe,xT)=>{"use strict";function rl(e,t){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=t,this.message=(this.reason||"(unknown reason)")+(this.mark?" "+this.mark.toString():""),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}rl.prototype=Object.create(Error.prototype),rl.prototype.constructor=rl,rl.prototype.toString=function(t){var r=this.name+": ";return r+=this.reason||"(unknown reason)",!t&&this.mark&&(r+=" "+this.mark.toString()),r},xT.exports=rl});var vT=ye((SCe,bT)=>{"use strict";var yT=di();function Ch(e,t,r,n,o){this.name=e,this.buffer=t,this.position=r,this.line=n,this.column=o}Ch.prototype.getSnippet=function(t,r){var n,o,i,s,a;if(!this.buffer)return null;for(t=t||4,r=r||75,n="",o=this.position;o>0&&`\0\r
|
|
1
|
+
var yb=Object.create;var Bi=Object.defineProperty;var bb=Object.getOwnPropertyDescriptor;var uA=Object.getOwnPropertyNames;var dA=Object.getPrototypeOf,pA=Object.prototype.hasOwnProperty;var vb=(e,t)=>(t=Symbol[e])?t:Symbol.for("Symbol."+e),zi=e=>{throw TypeError(e)};var wb=(e,t,r)=>t in e?Bi(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var hb=(e,t)=>Bi(e,"name",{value:t,configurable:!0}),Hl=(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 ye=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),he=(e,t)=>{for(var r in t)Bi(e,r,{get:t[r],enumerable:!0})},fA=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of uA(t))!pA.call(e,o)&&o!==r&&Bi(e,o,{get:()=>t[o],enumerable:!(n=bb(t,o))||n.enumerable});return e};var Qt=(e,t,r)=>(r=e!=null?yb(dA(e)):{},fA(t||!e||!e.__esModule?Bi(r,"default",{value:e,enumerable:!0}):r,e));var xt=e=>[,,,yb(e?.[vb("metadata")]??null)],Sb=["class","method","getter","setter","accessor","field","value","get","set"],aa=e=>e!==void 0&&typeof e!="function"?zi("Function expected"):e,mA=(e,t,r,n,o)=>({kind:Sb[e],name:t,metadata:n,addInitializer:i=>r._?zi("Already initialized"):o.push(aa(i||null))}),hA=(e,t)=>wb(t,vb("metadata"),e[3]),E=(e,t,r,n)=>{for(var o=0,i=e[t>>1],s=i&&i.length;o<s;o++)t&1?i[o].call(r):n=i[o].call(r,n);return n},V=(e,t,r,n,o,i)=>{var s,a,l,c,u,d=t&7,p=!!(t&8),f=!!(t&16),m=d>3?e.length+1:d?p?1:2:0,g=Sb[d+5],x=d>3&&(e[m-1]=[]),y=e[m]||(e[m]=[]),T=d&&(!f&&!p&&(o=o.prototype),d<5&&(d>3||!f)&&bb(d<4?o:{get[r](){return gb(this,i)},set[r](H){return xb(this,i,H)}},r));d?f&&d<4&&hb(i,(d>2?"set ":d>1?"get ":"")+r):hb(o,r);for(var D=n.length-1;D>=0;D--)c=mA(d,r,l={},e[3],y),d&&(c.static=p,c.private=f,u=c.access={has:f?H=>gA(o,H):H=>r in H},d^3&&(u.get=f?H=>(d^1?gb:xA)(H,o,d^4?i:T.get):H=>H[r]),d>2&&(u.set=f?(H,j)=>xb(H,o,j,d^4?i:T.set):(H,j)=>H[r]=j)),a=(0,n[D])(d?d<4?f?i:T[g]:d>4?void 0:{get:T.get,set:T.set}:o,c),l._=1,d^4||a===void 0?aa(a)&&(d>4?x.unshift(a):d?f?i=a:T[g]=a:o=a):typeof a!="object"||a===null?zi("Object expected"):(aa(s=a.get)&&(T.get=s),aa(s=a.set)&&(T.set=s),aa(s=a.init)&&x.unshift(s));return d||hA(e,o),T&&Bi(o,r,T),f?d^4?i:T:o},ze=(e,t,r)=>wb(e,typeof t!="symbol"?t+"":t,r),kf=(e,t,r)=>t.has(e)||zi("Cannot "+r),gA=(e,t)=>Object(t)!==t?zi('Cannot use the "in" operator on this value'):e.has(t),gb=(e,t,r)=>(kf(e,t,"read from private field"),r?r.call(e):t.get(e)),J=(e,t,r)=>t.has(e)?zi("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),xb=(e,t,r,n)=>(kf(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r),xA=(e,t,r)=>(kf(e,t,"access private method"),r);var Kl=ye(Zl=>{"use strict";Object.defineProperty(Zl,"__esModule",{value:!0}),Zl.uni=void 0;var AA=(e="uni")=>`${e}_${"xxxxxxxxxxxxxxxxxxxxxxxx".replace(/[xy]/g,t=>{let r=Math.random()*16|0;return(t==="x"?r:r&3|8).toString(16)})}`;Zl.uni=AA});var hS=ye((mm,hm)=>{(function(e,t){typeof mm=="object"&&typeof hm<"u"?hm.exports=t():typeof define=="function"&&define.amd?define(t):(e=typeof globalThis<"u"?globalThis:e||self).dayjs=t()})(mm,(function(){"use strict";var e=1e3,t=6e4,r=36e5,n="millisecond",o="second",i="minute",s="hour",a="day",l="week",c="month",u="quarter",d="year",p="date",f="Invalid Date",m=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,g=/\[([^\]]+)]|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,x={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(Q){var L=["th","st","nd","rd"],F=Q%100;return"["+Q+(L[(F-20)%10]||L[F]||L[0])+"]"}},y=function(Q,L,F){var z=String(Q);return!z||z.length>=L?Q:""+Array(L+1-z.length).join(F)+Q},T={s:y,z:function(Q){var L=-Q.utcOffset(),F=Math.abs(L),z=Math.floor(F/60),Y=F%60;return(L<=0?"+":"-")+y(z,2,"0")+":"+y(Y,2,"0")},m:function Q(L,F){if(L.date()<F.date())return-Q(F,L);var z=12*(F.year()-L.year())+(F.month()-L.month()),Y=L.clone().add(z,c),re=F-Y<0,ie=L.clone().add(z+(re?-1:1),c);return+(-(z+(F-Y)/(re?Y-ie:ie-Y))||0)},a:function(Q){return Q<0?Math.ceil(Q)||0:Math.floor(Q)},p:function(Q){return{M:c,y:d,w:l,d:a,D:p,h:s,m:i,s:o,ms:n,Q:u}[Q]||String(Q||"").toLowerCase().replace(/s$/,"")},u:function(Q){return Q===void 0}},D="en",H={};H[D]=x;var j="$isDayjsObject",M=function(Q){return Q instanceof _||!(!Q||!Q[j])},U=function Q(L,F,z){var Y;if(!L)return D;if(typeof L=="string"){var re=L.toLowerCase();H[re]&&(Y=re),F&&(H[re]=F,Y=re);var ie=L.split("-");if(!Y&&ie.length>1)return Q(ie[0])}else{var we=L.name;H[we]=L,Y=we}return!z&&Y&&(D=Y),Y||!z&&D},le=function(Q,L){if(M(Q))return Q.clone();var F=typeof L=="object"?L:{};return F.date=Q,F.args=arguments,new _(F)},ee=T;ee.l=U,ee.i=M,ee.w=function(Q,L){return le(Q,{locale:L.$L,utc:L.$u,x:L.$x,$offset:L.$offset})};var _=(function(){function Q(F){this.$L=U(F.locale,null,!0),this.parse(F),this.$x=this.$x||F.x||{},this[j]=!0}var L=Q.prototype;return L.parse=function(F){this.$d=(function(z){var Y=z.date,re=z.utc;if(Y===null)return new Date(NaN);if(ee.u(Y))return new Date;if(Y instanceof Date)return new Date(Y);if(typeof Y=="string"&&!/Z$/i.test(Y)){var ie=Y.match(m);if(ie){var we=ie[2]-1||0,w=(ie[7]||"0").substring(0,3);return re?new Date(Date.UTC(ie[1],we,ie[3]||1,ie[4]||0,ie[5]||0,ie[6]||0,w)):new Date(ie[1],we,ie[3]||1,ie[4]||0,ie[5]||0,ie[6]||0,w)}}return new Date(Y)})(F),this.init()},L.init=function(){var F=this.$d;this.$y=F.getFullYear(),this.$M=F.getMonth(),this.$D=F.getDate(),this.$W=F.getDay(),this.$H=F.getHours(),this.$m=F.getMinutes(),this.$s=F.getSeconds(),this.$ms=F.getMilliseconds()},L.$utils=function(){return ee},L.isValid=function(){return this.$d.toString()!==f},L.isSame=function(F,z){var Y=le(F);return this.startOf(z)<=Y&&Y<=this.endOf(z)},L.isAfter=function(F,z){return le(F)<this.startOf(z)},L.isBefore=function(F,z){return this.endOf(z)<le(F)},L.$g=function(F,z,Y){return ee.u(F)?this[z]:this.set(Y,F)},L.unix=function(){return Math.floor(this.valueOf()/1e3)},L.valueOf=function(){return this.$d.getTime()},L.startOf=function(F,z){var Y=this,re=!!ee.u(z)||z,ie=ee.p(F),we=function(I,S){var $=ee.w(Y.$u?Date.UTC(Y.$y,S,I):new Date(Y.$y,S,I),Y);return re?$:$.endOf(a)},w=function(I,S){return ee.w(Y.toDate()[I].apply(Y.toDate("s"),(re?[0,0,0,0]:[23,59,59,999]).slice(S)),Y)},Ie=this.$W,Ne=this.$M,k=this.$D,Ke="set"+(this.$u?"UTC":"");switch(ie){case d:return re?we(1,0):we(31,11);case c:return re?we(1,Ne):we(0,Ne+1);case l:var gt=this.$locale().weekStart||0,ur=(Ie<gt?Ie+7:Ie)-gt;return we(re?k-ur:k+(6-ur),Ne);case a:case p:return w(Ke+"Hours",0);case s:return w(Ke+"Minutes",1);case i:return w(Ke+"Seconds",2);case o:return w(Ke+"Milliseconds",3);default:return this.clone()}},L.endOf=function(F){return this.startOf(F,!1)},L.$set=function(F,z){var Y,re=ee.p(F),ie="set"+(this.$u?"UTC":""),we=(Y={},Y[a]=ie+"Date",Y[p]=ie+"Date",Y[c]=ie+"Month",Y[d]=ie+"FullYear",Y[s]=ie+"Hours",Y[i]=ie+"Minutes",Y[o]=ie+"Seconds",Y[n]=ie+"Milliseconds",Y)[re],w=re===a?this.$D+(z-this.$W):z;if(re===c||re===d){var Ie=this.clone().set(p,1);Ie.$d[we](w),Ie.init(),this.$d=Ie.set(p,Math.min(this.$D,Ie.daysInMonth())).$d}else we&&this.$d[we](w);return this.init(),this},L.set=function(F,z){return this.clone().$set(F,z)},L.get=function(F){return this[ee.p(F)]()},L.add=function(F,z){var Y,re=this;F=Number(F);var ie=ee.p(z),we=function(Ne){var k=le(re);return ee.w(k.date(k.date()+Math.round(Ne*F)),re)};if(ie===c)return this.set(c,this.$M+F);if(ie===d)return this.set(d,this.$y+F);if(ie===a)return we(1);if(ie===l)return we(7);var w=(Y={},Y[i]=t,Y[s]=r,Y[o]=e,Y)[ie]||1,Ie=this.$d.getTime()+F*w;return ee.w(Ie,this)},L.subtract=function(F,z){return this.add(-1*F,z)},L.format=function(F){var z=this,Y=this.$locale();if(!this.isValid())return Y.invalidDate||f;var re=F||"YYYY-MM-DDTHH:mm:ssZ",ie=ee.z(this),we=this.$H,w=this.$m,Ie=this.$M,Ne=Y.weekdays,k=Y.months,Ke=Y.meridiem,gt=function(S,$,A,B){return S&&(S[$]||S(z,re))||A[$].slice(0,B)},ur=function(S){return ee.s(we%12||12,S,"0")},I=Ke||function(S,$,A){var B=S<12?"AM":"PM";return A?B.toLowerCase():B};return re.replace(g,(function(S,$){return $||(function(A){switch(A){case"YY":return String(z.$y).slice(-2);case"YYYY":return ee.s(z.$y,4,"0");case"M":return Ie+1;case"MM":return ee.s(Ie+1,2,"0");case"MMM":return gt(Y.monthsShort,Ie,k,3);case"MMMM":return gt(k,Ie);case"D":return z.$D;case"DD":return ee.s(z.$D,2,"0");case"d":return String(z.$W);case"dd":return gt(Y.weekdaysMin,z.$W,Ne,2);case"ddd":return gt(Y.weekdaysShort,z.$W,Ne,3);case"dddd":return Ne[z.$W];case"H":return String(we);case"HH":return ee.s(we,2,"0");case"h":return ur(1);case"hh":return ur(2);case"a":return I(we,w,!0);case"A":return I(we,w,!1);case"m":return String(w);case"mm":return ee.s(w,2,"0");case"s":return String(z.$s);case"ss":return ee.s(z.$s,2,"0");case"SSS":return ee.s(z.$ms,3,"0");case"Z":return ie}return null})(S)||ie.replace(":","")}))},L.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},L.diff=function(F,z,Y){var re,ie=this,we=ee.p(z),w=le(F),Ie=(w.utcOffset()-this.utcOffset())*t,Ne=this-w,k=function(){return ee.m(ie,w)};switch(we){case d:re=k()/12;break;case c:re=k();break;case u:re=k()/3;break;case l:re=(Ne-Ie)/6048e5;break;case a:re=(Ne-Ie)/864e5;break;case s:re=Ne/r;break;case i:re=Ne/t;break;case o:re=Ne/e;break;default:re=Ne}return Y?re:ee.a(re)},L.daysInMonth=function(){return this.endOf(c).$D},L.$locale=function(){return H[this.$L]},L.locale=function(F,z){if(!F)return this.$L;var Y=this.clone(),re=U(F,z,!0);return re&&(Y.$L=re),Y},L.clone=function(){return ee.w(this.$d,this)},L.toDate=function(){return new Date(this.valueOf())},L.toJSON=function(){return this.isValid()?this.toISOString():null},L.toISOString=function(){return this.$d.toISOString()},L.toString=function(){return this.$d.toUTCString()},Q})(),_e=_.prototype;return le.prototype=_e,[["$ms",n],["$s",o],["$m",i],["$H",s],["$W",a],["$M",c],["$y",d],["$D",p]].forEach((function(Q){_e[Q[1]]=function(L){return this.$g(L,Q[0],Q[1])}})),le.extend=function(Q,L){return Q.$i||(Q(L,_,le),Q.$i=!0),le},le.locale=U,le.isDayjs=M,le.unix=function(Q){return le(1e3*Q)},le.en=H[D],le.Ls=H,le.p={},le}))});var gS=ye((gm,xm)=>{(function(e,t){typeof gm=="object"&&typeof xm<"u"?xm.exports=t():typeof define=="function"&&define.amd?define(t):(e=typeof globalThis<"u"?globalThis:e||self).dayjs_plugin_isToday=t()})(gm,(function(){"use strict";return function(e,t,r){t.prototype.isToday=function(){var n="YYYY-MM-DD",o=r();return this.format(n)===o.format(n)}}}))});var wS=ye((zTe,vS)=>{"use strict";vS.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 kS=ye((HTe,SS)=>{"use strict";SS.exports=Object.freeze({DISCONNECTED:1,PRECEDING:2,FOLLOWING:4,CONTAINS:8,CONTAINED_BY:16})});var MS=ye((UTe,ES)=>{"use strict";var TS=Symbol(),DS=Symbol(),ao=Symbol(),CS=Symbol(),Hr=class{constructor(t,r,n,o){this[TS]=t,this[DS]=r,this[ao]=n,this[CS]=o}next(){let t=this[TS],r=this[CS],n=this[DS];if(!this[ao])return{done:!0,value:n};let o=this[ao];return r===1?this[ao]=t._node(o).previousSibling:r===2?this[ao]=t._node(o).nextSibling:r===3?this[ao]=t._node(o).parent:r===4?this[ao]=t.preceding(o,{root:n}):this[ao]=t.following(o,{root:n}),{done:!1,value:o}}};Object.defineProperty(Hr.prototype,Symbol.iterator,{value:function(){return this},writable:!1}),Hr.PREV=1,Hr.NEXT=2,Hr.PARENT=3,Hr.PRECEDING=4,Hr.FOLLOWING=5,Object.freeze(Hr),Object.freeze(Hr.prototype),ES.exports=Hr});var Em=ye((jTe,IS)=>{"use strict";var iP=wS(),lo=kS(),Mr=MS();function Cm(){return!0}function Ss(e,t){return e[e.length-1-t]}var xd=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 iP)}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 o=this._node(t).previousSibling;return o?this.lastInclusiveDescendant(o):this._node(t).parent}following(t,r){let n=r&&r.root,i=!(r&&r.skipChildren)&&this._node(t).firstChild;if(i)return i;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||[],o=r&&r.filter||Cm,i=r&&r.thisArg||void 0,s=this._node(t),a=s.firstChild,l=0;for(;a;){let c=this._node(a);c.setCachedIndex(s,l),o.call(i,a)&&n.push(a),a=c.nextSibling,++l}return n}ancestorsToArray(t,r){let n=r&&r.array||[],o=r&&r.filter||Cm,i=r&&r.thisArg||void 0,s=t;for(;s;)o.call(i,s)&&n.push(s),s=this._node(s).parent;return n}treeToArray(t,r){let n=r&&r.array||[],o=r&&r.filter||Cm,i=r&&r.thisArg||void 0,s=t;for(;s;)o.call(i,s)&&n.push(s),s=this.following(s,{root:t});return n}childrenIterator(t,r){let n=r&&r.reverse,o=this._node(t);return new Mr(this,t,n?o.lastChild:o.firstChild,n?Mr.PREV:Mr.NEXT)}previousSiblingsIterator(t){return new Mr(this,t,this._node(t).previousSibling,Mr.PREV)}nextSiblingsIterator(t){return new Mr(this,t,this._node(t).nextSibling,Mr.NEXT)}ancestorsIterator(t){return new Mr(this,t,t,Mr.PARENT)}treeIterator(t,r){let n=r&&r.reverse;return new Mr(this,t,n?this.lastInclusiveDescendant(t):t,n?Mr.PRECEDING:Mr.FOLLOWING)}index(t){let r=this._node(t),n=this._node(r.parent);if(!n)return-1;let o=r.getCachedIndex(n);if(o>=0)return o;o=0;let i=n.firstChild;if(n.childIndexCachedUpTo){let s=this._node(n.childIndexCachedUpTo);i=s.nextSibling,o=s.getCachedIndex(n)+1}for(;i;){let s=this._node(i);if(s.setCachedIndex(n,o),i===t)break;++o,i=s.nextSibling}return n.childIndexCachedUpTo=t,o}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 u=t;for(;u;){if(u===r)return lo.CONTAINS|lo.PRECEDING;n.push(u),u=this.parent(u)}}let o=[];{let u=r;for(;u;){if(u===t)return lo.CONTAINED_BY|lo.FOLLOWING;o.push(u),u=this.parent(u)}}let i=Ss(n,0);if(!i||i!==Ss(o,0))return lo.DISCONNECTED;let s=0,a=Math.min(n.length,o.length);for(let u=0;u<a;++u){let d=Ss(n,u),p=Ss(o,u);if(d!==p)break;s=u}let l=this.index(Ss(n,s+1));return this.index(Ss(o,s+1))<l?lo.PRECEDING:lo.FOLLOWING}remove(t){let r=this._node(t),n=this._node(r.parent),o=this._node(r.previousSibling),i=this._node(r.nextSibling);return n&&(n.firstChild===t&&(n.firstChild=r.nextSibling),n.lastChild===t&&(n.lastChild=r.previousSibling)),o&&(o.nextSibling=r.nextSibling),i&&(i.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),o=this._node(n.previousSibling),i=this._node(r),s=this._node(n.parent);if(i.isAttached)throw Error("Given object is already present in this SymbolTree, remove it first");return i.parent=n.parent,i.previousSibling=n.previousSibling,i.nextSibling=t,n.previousSibling=r,o&&(o.nextSibling=r),s&&s.firstChild===t&&(s.firstChild=r),s&&s.childrenChanged(),r}insertAfter(t,r){let n=this._node(t),o=this._node(n.nextSibling),i=this._node(r),s=this._node(n.parent);if(i.isAttached)throw Error("Given object is already present in this SymbolTree, remove it first");return i.parent=n.parent,i.previousSibling=t,i.nextSibling=n.nextSibling,n.nextSibling=r,o&&(o.previousSibling=r),s&&s.lastChild===t&&(s.lastChild=r),s&&s.childrenChanged(),r}prependChild(t,r){let n=this._node(t),o=this._node(r);if(o.isAttached)throw Error("Given object is already present in this SymbolTree, remove it first");return n.hasChildren?this.insertBefore(n.firstChild,r):(o.parent=t,n.firstChild=r,n.lastChild=r,n.childrenChanged()),r}appendChild(t,r){let n=this._node(t),o=this._node(r);if(o.isAttached)throw Error("Given object is already present in this SymbolTree, remove it first");return n.hasChildren?this.insertAfter(n.lastChild,r):(o.parent=t,n.firstChild=r,n.lastChild=r,n.childrenChanged()),r}};IS.exports=xd,xd.TreePosition=lo});var $k=ye((Ga,Ms)=>{var QP=200,jS="__lodash_hash_undefined__",qS=9007199254740991,Um="[object Arguments]",XP="[object Array]",YS="[object Boolean]",WS="[object Date]",JP="[object Error]",jm="[object Function]",VS="[object GeneratorFunction]",Ed="[object Map]",GS="[object Number]",qm="[object Object]",QS="[object Promise]",XS="[object RegExp]",Md="[object Set]",JS="[object String]",ZS="[object Symbol]",Ym="[object WeakMap]",KS="[object ArrayBuffer]",Id="[object DataView]",ek="[object Float32Array]",tk="[object Float64Array]",rk="[object Int8Array]",nk="[object Int16Array]",ok="[object Int32Array]",ik="[object Uint8Array]",sk="[object Uint8ClampedArray]",ak="[object Uint16Array]",lk="[object Uint32Array]",ZP=/[\\^$.*+?()[\]{}|]/g,KP=/\w*$/,e5=/^\[object .+?Constructor\]$/,t5=/^(?:0|[1-9]\d*)$/,Je={};Je[Um]=Je[XP]=Je[KS]=Je[Id]=Je[YS]=Je[WS]=Je[ek]=Je[tk]=Je[rk]=Je[nk]=Je[ok]=Je[Ed]=Je[GS]=Je[qm]=Je[XS]=Je[Md]=Je[JS]=Je[ZS]=Je[ik]=Je[sk]=Je[ak]=Je[lk]=!0,Je[JP]=Je[jm]=Je[Ym]=!1;var r5=typeof global=="object"&&global&&global.Object===Object&&global,n5=typeof self=="object"&&self&&self.Object===Object&&self,On=r5||n5||Function("return this")(),ck=typeof Ga=="object"&&Ga&&!Ga.nodeType&&Ga,uk=ck&&typeof Ms=="object"&&Ms&&!Ms.nodeType&&Ms,o5=uk&&uk.exports===ck;function i5(e,t){return e.set(t[0],t[1]),e}function s5(e,t){return e.add(t),e}function a5(e,t){for(var r=-1,n=e?e.length:0;++r<n&&t(e[r],r,e)!==!1;);return e}function l5(e,t){for(var r=-1,n=t.length,o=e.length;++r<n;)e[o+r]=t[r];return e}function dk(e,t,r,n){var o=-1,i=e?e.length:0;for(n&&i&&(r=e[++o]);++o<i;)r=t(r,e[o],o,e);return r}function c5(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}function u5(e,t){return e?.[t]}function pk(e){var t=!1;if(e!=null&&typeof e.toString!="function")try{t=!!(e+"")}catch{}return t}function fk(e){var t=-1,r=Array(e.size);return e.forEach(function(n,o){r[++t]=[o,n]}),r}function Wm(e,t){return function(r){return e(t(r))}}function mk(e){var t=-1,r=Array(e.size);return e.forEach(function(n){r[++t]=n}),r}var d5=Array.prototype,p5=Function.prototype,$d=Object.prototype,Vm=On["__core-js_shared__"],hk=(function(){var e=/[^.]+$/.exec(Vm&&Vm.keys&&Vm.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""})(),gk=p5.toString,fo=$d.hasOwnProperty,Ad=$d.toString,f5=RegExp("^"+gk.call(fo).replace(ZP,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),xk=o5?On.Buffer:void 0,yk=On.Symbol,bk=On.Uint8Array,m5=Wm(Object.getPrototypeOf,Object),h5=Object.create,g5=$d.propertyIsEnumerable,x5=d5.splice,vk=Object.getOwnPropertySymbols,y5=xk?xk.isBuffer:void 0,b5=Wm(Object.keys,Object),Gm=Es(On,"DataView"),Wa=Es(On,"Map"),Qm=Es(On,"Promise"),Xm=Es(On,"Set"),Jm=Es(On,"WeakMap"),Va=Es(Object,"create"),v5=ii(Gm),w5=ii(Wa),S5=ii(Qm),k5=ii(Xm),T5=ii(Jm),wk=yk?yk.prototype:void 0,Sk=wk?wk.valueOf:void 0;function ni(e){var t=-1,r=e?e.length:0;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function D5(){this.__data__=Va?Va(null):{}}function C5(e){return this.has(e)&&delete this.__data__[e]}function E5(e){var t=this.__data__;if(Va){var r=t[e];return r===jS?void 0:r}return fo.call(t,e)?t[e]:void 0}function M5(e){var t=this.__data__;return Va?t[e]!==void 0:fo.call(t,e)}function I5(e,t){var r=this.__data__;return r[e]=Va&&t===void 0?jS:t,this}ni.prototype.clear=D5,ni.prototype.delete=C5,ni.prototype.get=E5,ni.prototype.has=M5,ni.prototype.set=I5;function Ln(e){var t=-1,r=e?e.length:0;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function $5(){this.__data__=[]}function A5(e){var t=this.__data__,r=_d(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():x5.call(t,r,1),!0}function _5(e){var t=this.__data__,r=_d(t,e);return r<0?void 0:t[r][1]}function O5(e){return _d(this.__data__,e)>-1}function L5(e,t){var r=this.__data__,n=_d(r,e);return n<0?r.push([e,t]):r[n][1]=t,this}Ln.prototype.clear=$5,Ln.prototype.delete=A5,Ln.prototype.get=_5,Ln.prototype.has=O5,Ln.prototype.set=L5;function Ds(e){var t=-1,r=e?e.length:0;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function N5(){this.__data__={hash:new ni,map:new(Wa||Ln),string:new ni}}function P5(e){return Od(this,e).delete(e)}function F5(e){return Od(this,e).get(e)}function R5(e){return Od(this,e).has(e)}function B5(e,t){return Od(this,e).set(e,t),this}Ds.prototype.clear=N5,Ds.prototype.delete=P5,Ds.prototype.get=F5,Ds.prototype.has=R5,Ds.prototype.set=B5;function Cs(e){this.__data__=new Ln(e)}function z5(){this.__data__=new Ln}function H5(e){return this.__data__.delete(e)}function U5(e){return this.__data__.get(e)}function j5(e){return this.__data__.has(e)}function q5(e,t){var r=this.__data__;if(r instanceof Ln){var n=r.__data__;if(!Wa||n.length<QP-1)return n.push([e,t]),this;r=this.__data__=new Ds(n)}return r.set(e,t),this}Cs.prototype.clear=z5,Cs.prototype.delete=H5,Cs.prototype.get=U5,Cs.prototype.has=j5,Cs.prototype.set=q5;function Y5(e,t){var r=eh(e)||h3(e)?c5(e.length,String):[],n=r.length,o=!!n;for(var i in e)(t||fo.call(e,i))&&!(o&&(i=="length"||d3(i,n)))&&r.push(i);return r}function kk(e,t,r){var n=e[t];(!(fo.call(e,t)&&Ek(n,r))||r===void 0&&!(t in e))&&(e[t]=r)}function _d(e,t){for(var r=e.length;r--;)if(Ek(e[r][0],t))return r;return-1}function W5(e,t){return e&&Tk(t,th(t),e)}function Zm(e,t,r,n,o,i,s){var a;if(n&&(a=i?n(e,o,i,s):n(e)),a!==void 0)return a;if(!Ld(e))return e;var l=eh(e);if(l){if(a=l3(e),!t)return i3(e,a)}else{var c=oi(e),u=c==jm||c==VS;if(x3(e))return Z5(e,t);if(c==qm||c==Um||u&&!i){if(pk(e))return i?e:{};if(a=c3(u?{}:e),!t)return s3(e,W5(a,e))}else{if(!Je[c])return i?e:{};a=u3(e,c,Zm,t)}}s||(s=new Cs);var d=s.get(e);if(d)return d;if(s.set(e,a),!l)var p=r?a3(e):th(e);return a5(p||e,function(f,m){p&&(m=f,f=e[m]),kk(a,m,Zm(f,t,r,n,m,e,s))}),a}function V5(e){return Ld(e)?h5(e):{}}function G5(e,t,r){var n=t(e);return eh(e)?n:l5(n,r(e))}function Q5(e){return Ad.call(e)}function X5(e){if(!Ld(e)||f3(e))return!1;var t=Ik(e)||pk(e)?f5:e5;return t.test(ii(e))}function J5(e){if(!Ck(e))return b5(e);var t=[];for(var r in Object(e))fo.call(e,r)&&r!="constructor"&&t.push(r);return t}function Z5(e,t){if(t)return e.slice();var r=new e.constructor(e.length);return e.copy(r),r}function Km(e){var t=new e.constructor(e.byteLength);return new bk(t).set(new bk(e)),t}function K5(e,t){var r=t?Km(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}function e3(e,t,r){var n=t?r(fk(e),!0):fk(e);return dk(n,i5,new e.constructor)}function t3(e){var t=new e.constructor(e.source,KP.exec(e));return t.lastIndex=e.lastIndex,t}function r3(e,t,r){var n=t?r(mk(e),!0):mk(e);return dk(n,s5,new e.constructor)}function n3(e){return Sk?Object(Sk.call(e)):{}}function o3(e,t){var r=t?Km(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}function i3(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r<n;)t[r]=e[r];return t}function Tk(e,t,r,n){r||(r={});for(var o=-1,i=t.length;++o<i;){var s=t[o],a=n?n(r[s],e[s],s,r,e):void 0;kk(r,s,a===void 0?e[s]:a)}return r}function s3(e,t){return Tk(e,Dk(e),t)}function a3(e){return G5(e,th,Dk)}function Od(e,t){var r=e.__data__;return p3(t)?r[typeof t=="string"?"string":"hash"]:r.map}function Es(e,t){var r=u5(e,t);return X5(r)?r:void 0}var Dk=vk?Wm(vk,Object):v3,oi=Q5;(Gm&&oi(new Gm(new ArrayBuffer(1)))!=Id||Wa&&oi(new Wa)!=Ed||Qm&&oi(Qm.resolve())!=QS||Xm&&oi(new Xm)!=Md||Jm&&oi(new Jm)!=Ym)&&(oi=function(e){var t=Ad.call(e),r=t==qm?e.constructor:void 0,n=r?ii(r):void 0;if(n)switch(n){case v5:return Id;case w5:return Ed;case S5:return QS;case k5:return Md;case T5:return Ym}return t});function l3(e){var t=e.length,r=e.constructor(t);return t&&typeof e[0]=="string"&&fo.call(e,"index")&&(r.index=e.index,r.input=e.input),r}function c3(e){return typeof e.constructor=="function"&&!Ck(e)?V5(m5(e)):{}}function u3(e,t,r,n){var o=e.constructor;switch(t){case KS:return Km(e);case YS:case WS:return new o(+e);case Id:return K5(e,n);case ek:case tk:case rk:case nk:case ok:case ik:case sk:case ak:case lk:return o3(e,n);case Ed:return e3(e,n,r);case GS:case JS:return new o(e);case XS:return t3(e);case Md:return r3(e,n,r);case ZS:return n3(e)}}function d3(e,t){return t=t??qS,!!t&&(typeof e=="number"||t5.test(e))&&e>-1&&e%1==0&&e<t}function p3(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function f3(e){return!!hk&&hk in e}function Ck(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||$d;return e===r}function ii(e){if(e!=null){try{return gk.call(e)}catch{}try{return e+""}catch{}}return""}function m3(e){return Zm(e,!0,!0)}function Ek(e,t){return e===t||e!==e&&t!==t}function h3(e){return g3(e)&&fo.call(e,"callee")&&(!g5.call(e,"callee")||Ad.call(e)==Um)}var eh=Array.isArray;function Mk(e){return e!=null&&y3(e.length)&&!Ik(e)}function g3(e){return b3(e)&&Mk(e)}var x3=y5||w3;function Ik(e){var t=Ld(e)?Ad.call(e):"";return t==jm||t==VS}function y3(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=qS}function Ld(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function b3(e){return!!e&&typeof e=="object"}function th(e){return Mk(e)?Y5(e):J5(e)}function v3(){return[]}function w3(){return!1}Ms.exports=m3});var _k=ye((Z2e,Ak)=>{"use strict";Ak.exports=function(e,t){t||(t={}),typeof t=="function"&&(t={cmp:t});var r=typeof t.cycles=="boolean"?t.cycles:!1,n=t.cmp&&(function(i){return function(s){return function(a,l){var c={key:a,value:s[a]},u={key:l,value:s[l]};return i(c,u)}}})(t.cmp),o=[];return(function i(s){if(s&&s.toJSON&&typeof s.toJSON=="function"&&(s=s.toJSON()),s!==void 0){if(typeof s=="number")return isFinite(s)?""+s:"null";if(typeof s!="object")return JSON.stringify(s);var a,l;if(Array.isArray(s)){for(l="[",a=0;a<s.length;a++)a&&(l+=","),l+=i(s[a])||"null";return l+"]"}if(s===null)return"null";if(o.indexOf(s)!==-1){if(r)return JSON.stringify("__cycle__");throw new TypeError("Converting circular structure to JSON")}var c=o.push(s)-1,u=Object.keys(s).sort(n&&n(s));for(l="",a=0;a<u.length;a++){var d=u[a],p=i(s[d]);p&&(l&&(l+=","),l+=JSON.stringify(d)+":"+p)}return o.splice(c,1),"{"+l+"}"}})(e)}});var pi=ye((bCe,di)=>{"use strict";function gT(e){return typeof e>"u"||e===null}function jF(e){return typeof e=="object"&&e!==null}function qF(e){return Array.isArray(e)?e:gT(e)?[]:[e]}function YF(e,t){var r,n,o,i;if(t)for(i=Object.keys(t),r=0,n=i.length;r<n;r+=1)o=i[r],e[o]=t[o];return e}function WF(e,t){var r="",n;for(n=0;n<t;n+=1)r+=e;return r}function VF(e){return e===0&&Number.NEGATIVE_INFINITY===1/e}di.exports.isNothing=gT,di.exports.isObject=jF,di.exports.toArray=qF,di.exports.repeat=WF,di.exports.isNegativeZero=VF,di.exports.extend=YF});var $s=ye((vCe,xT)=>{"use strict";function rl(e,t){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=t,this.message=(this.reason||"(unknown reason)")+(this.mark?" "+this.mark.toString():""),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}rl.prototype=Object.create(Error.prototype),rl.prototype.constructor=rl,rl.prototype.toString=function(t){var r=this.name+": ";return r+=this.reason||"(unknown reason)",!t&&this.mark&&(r+=" "+this.mark.toString()),r},xT.exports=rl});var vT=ye((wCe,bT)=>{"use strict";var yT=pi();function Dh(e,t,r,n,o){this.name=e,this.buffer=t,this.position=r,this.line=n,this.column=o}Dh.prototype.getSnippet=function(t,r){var n,o,i,s,a;if(!this.buffer)return null;for(t=t||4,r=r||75,n="",o=this.position;o>0&&`\0\r
|
|
2
2
|
\x85\u2028\u2029`.indexOf(this.buffer.charAt(o-1))===-1;)if(o-=1,this.position-o>r/2-1){n=" ... ",o+=5;break}for(i="",s=this.position;s<this.buffer.length&&`\0\r
|
|
3
3
|
\x85\u2028\u2029`.indexOf(this.buffer.charAt(s))===-1;)if(s+=1,s-this.position>r/2-1){i=" ... ",s-=5;break}return a=this.buffer.slice(o,s),yT.repeat(" ",t)+n+a+i+`
|
|
4
|
-
`+yT.repeat(" ",t+this.position-o+n.length)+"^"},
|
|
5
|
-
`+r)),n},bT.exports=
|
|
6
|
-
\r`;function
|
|
7
|
-
`:e===118?"\v":e===102?"\f":e===114?"\r":e===101?"\x1B":e===32?" ":e===34?'"':e===47?"/":e===92?"\\":e===78?"\x85":e===95?"\xA0":e===76?"\u2028":e===80?"\u2029":""}function
|
|
8
|
-
`,t-1))}function
|
|
9
|
-
`,i?1+l:l):o
|
|
10
|
-
`);break}for(n?
|
|
4
|
+
`+yT.repeat(" ",t+this.position-o+n.length)+"^"},Dh.prototype.toString=function(t){var r,n="";return this.name&&(n+='in "'+this.name+'" '),n+="at line "+(this.line+1)+", column "+(this.column+1),t||(r=this.getSnippet(),r&&(n+=`:
|
|
5
|
+
`+r)),n},bT.exports=Dh});var Tt=ye((SCe,ST)=>{"use strict";var wT=$s(),GF=["kind","resolve","construct","instanceOf","predicate","represent","defaultStyle","styleAliases"],QF=["scalar","sequence","mapping"];function XF(e){var t={};return e!==null&&Object.keys(e).forEach(function(r){e[r].forEach(function(n){t[String(n)]=r})}),t}function JF(e,t){if(t=t||{},Object.keys(t).forEach(function(r){if(GF.indexOf(r)===-1)throw new wT('Unknown option "'+r+'" is met in definition of "'+e+'" YAML type.')}),this.tag=e,this.kind=t.kind||null,this.resolve=t.resolve||function(){return!0},this.construct=t.construct||function(r){return r},this.instanceOf=t.instanceOf||null,this.predicate=t.predicate||null,this.represent=t.represent||null,this.defaultStyle=t.defaultStyle||null,this.styleAliases=XF(t.styleAliases||null),QF.indexOf(this.kind)===-1)throw new wT('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}ST.exports=JF});var fi=ye((kCe,TT)=>{"use strict";var kT=pi(),qd=$s(),ZF=Tt();function Ch(e,t,r){var n=[];return e.include.forEach(function(o){r=Ch(o,t,r)}),e[t].forEach(function(o){r.forEach(function(i,s){i.tag===o.tag&&i.kind===o.kind&&n.push(s)}),r.push(o)}),r.filter(function(o,i){return n.indexOf(i)===-1})}function KF(){var e={scalar:{},sequence:{},mapping:{},fallback:{}},t,r;function n(o){e[o.kind][o.tag]=e.fallback[o.tag]=o}for(t=0,r=arguments.length;t<r;t+=1)arguments[t].forEach(n);return e}function As(e){this.include=e.include||[],this.implicit=e.implicit||[],this.explicit=e.explicit||[],this.implicit.forEach(function(t){if(t.loadKind&&t.loadKind!=="scalar")throw new qd("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.")}),this.compiledImplicit=Ch(this,"implicit",[]),this.compiledExplicit=Ch(this,"explicit",[]),this.compiledTypeMap=KF(this.compiledImplicit,this.compiledExplicit)}As.DEFAULT=null,As.create=function(){var t,r;switch(arguments.length){case 1:t=As.DEFAULT,r=arguments[0];break;case 2:t=arguments[0],r=arguments[1];break;default:throw new qd("Wrong number of arguments for Schema.create function")}if(t=kT.toArray(t),r=kT.toArray(r),!t.every(function(n){return n instanceof As}))throw new qd("Specified list of super schemas (or a single Schema object) contains a non-Schema object.");if(!r.every(function(n){return n instanceof ZF}))throw new qd("Specified list of YAML types (or a single Type object) contains a non-Type object.");return new As({include:t,explicit:r})},TT.exports=As});var CT=ye((TCe,DT)=>{"use strict";var e4=Tt();DT.exports=new e4("tag:yaml.org,2002:str",{kind:"scalar",construct:function(e){return e!==null?e:""}})});var MT=ye((DCe,ET)=>{"use strict";var t4=Tt();ET.exports=new t4("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(e){return e!==null?e:[]}})});var $T=ye((CCe,IT)=>{"use strict";var r4=Tt();IT.exports=new r4("tag:yaml.org,2002:map",{kind:"mapping",construct:function(e){return e!==null?e:{}}})});var Yd=ye((ECe,AT)=>{"use strict";var n4=fi();AT.exports=new n4({explicit:[CT(),MT(),$T()]})});var OT=ye((MCe,_T)=>{"use strict";var o4=Tt();function i4(e){if(e===null)return!0;var t=e.length;return t===1&&e==="~"||t===4&&(e==="null"||e==="Null"||e==="NULL")}function s4(){return null}function a4(e){return e===null}_T.exports=new o4("tag:yaml.org,2002:null",{kind:"scalar",resolve:i4,construct:s4,predicate:a4,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"}},defaultStyle:"lowercase"})});var NT=ye((ICe,LT)=>{"use strict";var l4=Tt();function c4(e){if(e===null)return!1;var t=e.length;return t===4&&(e==="true"||e==="True"||e==="TRUE")||t===5&&(e==="false"||e==="False"||e==="FALSE")}function u4(e){return e==="true"||e==="True"||e==="TRUE"}function d4(e){return Object.prototype.toString.call(e)==="[object Boolean]"}LT.exports=new l4("tag:yaml.org,2002:bool",{kind:"scalar",resolve:c4,construct:u4,predicate:d4,represent:{lowercase:function(e){return e?"true":"false"},uppercase:function(e){return e?"TRUE":"FALSE"},camelcase:function(e){return e?"True":"False"}},defaultStyle:"lowercase"})});var FT=ye(($Ce,PT)=>{"use strict";var p4=pi(),f4=Tt();function m4(e){return 48<=e&&e<=57||65<=e&&e<=70||97<=e&&e<=102}function h4(e){return 48<=e&&e<=55}function g4(e){return 48<=e&&e<=57}function x4(e){if(e===null)return!1;var t=e.length,r=0,n=!1,o;if(!t)return!1;if(o=e[r],(o==="-"||o==="+")&&(o=e[++r]),o==="0"){if(r+1===t)return!0;if(o=e[++r],o==="b"){for(r++;r<t;r++)if(o=e[r],o!=="_"){if(o!=="0"&&o!=="1")return!1;n=!0}return n&&o!=="_"}if(o==="x"){for(r++;r<t;r++)if(o=e[r],o!=="_"){if(!m4(e.charCodeAt(r)))return!1;n=!0}return n&&o!=="_"}for(;r<t;r++)if(o=e[r],o!=="_"){if(!h4(e.charCodeAt(r)))return!1;n=!0}return n&&o!=="_"}if(o==="_")return!1;for(;r<t;r++)if(o=e[r],o!=="_"){if(o===":")break;if(!g4(e.charCodeAt(r)))return!1;n=!0}return!n||o==="_"?!1:o!==":"?!0:/^(:[0-5]?[0-9])+$/.test(e.slice(r))}function y4(e){var t=e,r=1,n,o,i=[];return t.indexOf("_")!==-1&&(t=t.replace(/_/g,"")),n=t[0],(n==="-"||n==="+")&&(n==="-"&&(r=-1),t=t.slice(1),n=t[0]),t==="0"?0:n==="0"?t[1]==="b"?r*parseInt(t.slice(2),2):t[1]==="x"?r*parseInt(t,16):r*parseInt(t,8):t.indexOf(":")!==-1?(t.split(":").forEach(function(s){i.unshift(parseInt(s,10))}),t=0,o=1,i.forEach(function(s){t+=s*o,o*=60}),r*t):r*parseInt(t,10)}function b4(e){return Object.prototype.toString.call(e)==="[object Number]"&&e%1===0&&!p4.isNegativeZero(e)}PT.exports=new f4("tag:yaml.org,2002:int",{kind:"scalar",resolve:x4,construct:y4,predicate:b4,represent:{binary:function(e){return e>=0?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},octal:function(e){return e>=0?"0"+e.toString(8):"-0"+e.toString(8).slice(1)},decimal:function(e){return e.toString(10)},hexadecimal:function(e){return e>=0?"0x"+e.toString(16).toUpperCase():"-0x"+e.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}})});var zT=ye((ACe,BT)=>{"use strict";var RT=pi(),v4=Tt(),w4=new RegExp("^(?:[-+]?(?:0|[1-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\\.[0-9_]*|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function S4(e){return!(e===null||!w4.test(e)||e[e.length-1]==="_")}function k4(e){var t,r,n,o;return t=e.replace(/_/g,"").toLowerCase(),r=t[0]==="-"?-1:1,o=[],"+-".indexOf(t[0])>=0&&(t=t.slice(1)),t===".inf"?r===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:t===".nan"?NaN:t.indexOf(":")>=0?(t.split(":").forEach(function(i){o.unshift(parseFloat(i,10))}),t=0,n=1,o.forEach(function(i){t+=i*n,n*=60}),r*t):r*parseFloat(t,10)}var T4=/^[-+]?[0-9]+e/;function D4(e,t){var r;if(isNaN(e))switch(t){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===e)switch(t){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===e)switch(t){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(RT.isNegativeZero(e))return"-0.0";return r=e.toString(10),T4.test(r)?r.replace("e",".e"):r}function C4(e){return Object.prototype.toString.call(e)==="[object Number]"&&(e%1!==0||RT.isNegativeZero(e))}BT.exports=new v4("tag:yaml.org,2002:float",{kind:"scalar",resolve:S4,construct:k4,predicate:C4,represent:D4,defaultStyle:"lowercase"})});var Eh=ye((_Ce,HT)=>{"use strict";var E4=fi();HT.exports=new E4({include:[Yd()],implicit:[OT(),NT(),FT(),zT()]})});var Mh=ye((OCe,UT)=>{"use strict";var M4=fi();UT.exports=new M4({include:[Eh()]})});var WT=ye((LCe,YT)=>{"use strict";var I4=Tt(),jT=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),qT=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");function $4(e){return e===null?!1:jT.exec(e)!==null||qT.exec(e)!==null}function A4(e){var t,r,n,o,i,s,a,l=0,c=null,u,d,p;if(t=jT.exec(e),t===null&&(t=qT.exec(e)),t===null)throw new Error("Date resolve error");if(r=+t[1],n=+t[2]-1,o=+t[3],!t[4])return new Date(Date.UTC(r,n,o));if(i=+t[4],s=+t[5],a=+t[6],t[7]){for(l=t[7].slice(0,3);l.length<3;)l+="0";l=+l}return t[9]&&(u=+t[10],d=+(t[11]||0),c=(u*60+d)*6e4,t[9]==="-"&&(c=-c)),p=new Date(Date.UTC(r,n,o,i,s,a,l)),c&&p.setTime(p.getTime()-c),p}function _4(e){return e.toISOString()}YT.exports=new I4("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:$4,construct:A4,instanceOf:Date,represent:_4})});var GT=ye((NCe,VT)=>{"use strict";var O4=Tt();function L4(e){return e==="<<"||e===null}VT.exports=new O4("tag:yaml.org,2002:merge",{kind:"scalar",resolve:L4})});var JT=ye((PCe,XT)=>{"use strict";var mi;try{QT=Hl,mi=QT("buffer").Buffer}catch{}var N4=Tt(),Ih=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
|
|
6
|
+
\r`;function P4(e){if(e===null)return!1;var t,r,n=0,o=e.length,i=Ih;for(r=0;r<o;r++)if(t=i.indexOf(e.charAt(r)),!(t>64)){if(t<0)return!1;n+=6}return n%8===0}function F4(e){var t,r,n=e.replace(/[\r\n=]/g,""),o=n.length,i=Ih,s=0,a=[];for(t=0;t<o;t++)t%4===0&&t&&(a.push(s>>16&255),a.push(s>>8&255),a.push(s&255)),s=s<<6|i.indexOf(n.charAt(t));return r=o%4*6,r===0?(a.push(s>>16&255),a.push(s>>8&255),a.push(s&255)):r===18?(a.push(s>>10&255),a.push(s>>2&255)):r===12&&a.push(s>>4&255),mi?mi.from?mi.from(a):new mi(a):a}function R4(e){var t="",r=0,n,o,i=e.length,s=Ih;for(n=0;n<i;n++)n%3===0&&n&&(t+=s[r>>18&63],t+=s[r>>12&63],t+=s[r>>6&63],t+=s[r&63]),r=(r<<8)+e[n];return o=i%3,o===0?(t+=s[r>>18&63],t+=s[r>>12&63],t+=s[r>>6&63],t+=s[r&63]):o===2?(t+=s[r>>10&63],t+=s[r>>4&63],t+=s[r<<2&63],t+=s[64]):o===1&&(t+=s[r>>2&63],t+=s[r<<4&63],t+=s[64],t+=s[64]),t}function B4(e){return mi&&mi.isBuffer(e)}XT.exports=new N4("tag:yaml.org,2002:binary",{kind:"scalar",resolve:P4,construct:F4,predicate:B4,represent:R4});var QT});var KT=ye((RCe,ZT)=>{"use strict";var z4=Tt(),H4=Object.prototype.hasOwnProperty,U4=Object.prototype.toString;function j4(e){if(e===null)return!0;var t=[],r,n,o,i,s,a=e;for(r=0,n=a.length;r<n;r+=1){if(o=a[r],s=!1,U4.call(o)!=="[object Object]")return!1;for(i in o)if(H4.call(o,i))if(!s)s=!0;else return!1;if(!s)return!1;if(t.indexOf(i)===-1)t.push(i);else return!1}return!0}function q4(e){return e!==null?e:[]}ZT.exports=new z4("tag:yaml.org,2002:omap",{kind:"sequence",resolve:j4,construct:q4})});var t2=ye((BCe,e2)=>{"use strict";var Y4=Tt(),W4=Object.prototype.toString;function V4(e){if(e===null)return!0;var t,r,n,o,i,s=e;for(i=new Array(s.length),t=0,r=s.length;t<r;t+=1){if(n=s[t],W4.call(n)!=="[object Object]"||(o=Object.keys(n),o.length!==1))return!1;i[t]=[o[0],n[o[0]]]}return!0}function G4(e){if(e===null)return[];var t,r,n,o,i,s=e;for(i=new Array(s.length),t=0,r=s.length;t<r;t+=1)n=s[t],o=Object.keys(n),i[t]=[o[0],n[o[0]]];return i}e2.exports=new Y4("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:V4,construct:G4})});var n2=ye((zCe,r2)=>{"use strict";var Q4=Tt(),X4=Object.prototype.hasOwnProperty;function J4(e){if(e===null)return!0;var t,r=e;for(t in r)if(X4.call(r,t)&&r[t]!==null)return!1;return!0}function Z4(e){return e!==null?e:{}}r2.exports=new Q4("tag:yaml.org,2002:set",{kind:"mapping",resolve:J4,construct:Z4})});var _s=ye((HCe,o2)=>{"use strict";var K4=fi();o2.exports=new K4({include:[Mh()],implicit:[WT(),GT()],explicit:[JT(),KT(),t2(),n2()]})});var s2=ye((UCe,i2)=>{"use strict";var e6=Tt();function t6(){return!0}function r6(){}function n6(){return""}function o6(e){return typeof e>"u"}i2.exports=new e6("tag:yaml.org,2002:js/undefined",{kind:"scalar",resolve:t6,construct:r6,predicate:o6,represent:n6})});var l2=ye((jCe,a2)=>{"use strict";var i6=Tt();function s6(e){if(e===null||e.length===0)return!1;var t=e,r=/\/([gim]*)$/.exec(e),n="";return!(t[0]==="/"&&(r&&(n=r[1]),n.length>3||t[t.length-n.length-1]!=="/"))}function a6(e){var t=e,r=/\/([gim]*)$/.exec(e),n="";return t[0]==="/"&&(r&&(n=r[1]),t=t.slice(1,t.length-n.length-1)),new RegExp(t,n)}function l6(e){var t="/"+e.source+"/";return e.global&&(t+="g"),e.multiline&&(t+="m"),e.ignoreCase&&(t+="i"),t}function c6(e){return Object.prototype.toString.call(e)==="[object RegExp]"}a2.exports=new i6("tag:yaml.org,2002:js/regexp",{kind:"scalar",resolve:s6,construct:a6,predicate:c6,represent:l6})});var d2=ye((qCe,u2)=>{"use strict";var Wd;try{c2=Hl,Wd=c2("esprima")}catch{typeof window<"u"&&(Wd=window.esprima)}var u6=Tt();function d6(e){if(e===null)return!1;try{var t="("+e+")",r=Wd.parse(t,{range:!0});return!(r.type!=="Program"||r.body.length!==1||r.body[0].type!=="ExpressionStatement"||r.body[0].expression.type!=="ArrowFunctionExpression"&&r.body[0].expression.type!=="FunctionExpression")}catch{return!1}}function p6(e){var t="("+e+")",r=Wd.parse(t,{range:!0}),n=[],o;if(r.type!=="Program"||r.body.length!==1||r.body[0].type!=="ExpressionStatement"||r.body[0].expression.type!=="ArrowFunctionExpression"&&r.body[0].expression.type!=="FunctionExpression")throw new Error("Failed to resolve function");return r.body[0].expression.params.forEach(function(i){n.push(i.name)}),o=r.body[0].expression.body.range,r.body[0].expression.body.type==="BlockStatement"?new Function(n,t.slice(o[0]+1,o[1]-1)):new Function(n,"return "+t.slice(o[0],o[1]))}function f6(e){return e.toString()}function m6(e){return Object.prototype.toString.call(e)==="[object Function]"}u2.exports=new u6("tag:yaml.org,2002:js/function",{kind:"scalar",resolve:d6,construct:p6,predicate:m6,represent:f6});var c2});var nl=ye((WCe,f2)=>{"use strict";var p2=fi();f2.exports=p2.DEFAULT=new p2({include:[_s()],explicit:[s2(),l2(),d2()]})});var O2=ye((VCe,ol)=>{"use strict";var Fn=pi(),m2=$s(),h6=vT(),h2=_s(),g6=nl(),ho=Object.prototype.hasOwnProperty,Vd=1,g2=2,x2=3,Gd=4,$h=1,x6=2,y2=3,y6=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,b6=/[\x85\u2028\u2029]/,v6=/[,\[\]\{\}]/,b2=/^(?:!|!!|![a-z\-]+!)$/i,v2=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function w2(e){return Object.prototype.toString.call(e)}function fn(e){return e===10||e===13}function hi(e){return e===9||e===32}function lr(e){return e===9||e===32||e===10||e===13}function Os(e){return e===44||e===91||e===93||e===123||e===125}function w6(e){var t;return 48<=e&&e<=57?e-48:(t=e|32,97<=t&&t<=102?t-97+10:-1)}function S6(e){return e===120?2:e===117?4:e===85?8:0}function k6(e){return 48<=e&&e<=57?e-48:-1}function S2(e){return e===48?"\0":e===97?"\x07":e===98?"\b":e===116||e===9?" ":e===110?`
|
|
7
|
+
`:e===118?"\v":e===102?"\f":e===114?"\r":e===101?"\x1B":e===32?" ":e===34?'"':e===47?"/":e===92?"\\":e===78?"\x85":e===95?"\xA0":e===76?"\u2028":e===80?"\u2029":""}function T6(e){return e<=65535?String.fromCharCode(e):String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}function k2(e,t,r){t==="__proto__"?Object.defineProperty(e,t,{configurable:!0,enumerable:!0,writable:!0,value:r}):e[t]=r}var T2=new Array(256),D2=new Array(256);for(gi=0;gi<256;gi++)T2[gi]=S2(gi)?1:0,D2[gi]=S2(gi);function D6(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||g6,this.onWarning=t.onWarning||null,this.legacy=t.legacy||!1,this.json=t.json||!1,this.listener=t.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=e.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.documents=[]}function C2(e,t){return new m2(t,new h6(e.filename,e.input,e.position,e.line,e.position-e.lineStart))}function ge(e,t){throw C2(e,t)}function Qd(e,t){e.onWarning&&e.onWarning.call(null,C2(e,t))}var E2={YAML:function(t,r,n){var o,i,s;t.version!==null&&ge(t,"duplication of %YAML directive"),n.length!==1&&ge(t,"YAML directive accepts exactly one argument"),o=/^([0-9]+)\.([0-9]+)$/.exec(n[0]),o===null&&ge(t,"ill-formed argument of the YAML directive"),i=parseInt(o[1],10),s=parseInt(o[2],10),i!==1&&ge(t,"unacceptable YAML version of the document"),t.version=n[0],t.checkLineBreaks=s<2,s!==1&&s!==2&&Qd(t,"unsupported YAML version of the document")},TAG:function(t,r,n){var o,i;n.length!==2&&ge(t,"TAG directive accepts exactly two arguments"),o=n[0],i=n[1],b2.test(o)||ge(t,"ill-formed tag handle (first argument) of the TAG directive"),ho.call(t.tagMap,o)&&ge(t,'there is a previously declared suffix for "'+o+'" tag handle'),v2.test(i)||ge(t,"ill-formed tag prefix (second argument) of the TAG directive"),t.tagMap[o]=i}};function go(e,t,r,n){var o,i,s,a;if(t<r){if(a=e.input.slice(t,r),n)for(o=0,i=a.length;o<i;o+=1)s=a.charCodeAt(o),s===9||32<=s&&s<=1114111||ge(e,"expected valid JSON character");else y6.test(a)&&ge(e,"the stream contains non-printable characters");e.result+=a}}function M2(e,t,r,n){var o,i,s,a;for(Fn.isObject(r)||ge(e,"cannot merge mappings; the provided source object is unacceptable"),o=Object.keys(r),s=0,a=o.length;s<a;s+=1)i=o[s],ho.call(t,i)||(k2(t,i,r[i]),n[i]=!0)}function Ls(e,t,r,n,o,i,s,a){var l,c;if(Array.isArray(o))for(o=Array.prototype.slice.call(o),l=0,c=o.length;l<c;l+=1)Array.isArray(o[l])&&ge(e,"nested arrays are not supported inside keys"),typeof o=="object"&&w2(o[l])==="[object Object]"&&(o[l]="[object Object]");if(typeof o=="object"&&w2(o)==="[object Object]"&&(o="[object Object]"),o=String(o),t===null&&(t={}),n==="tag:yaml.org,2002:merge")if(Array.isArray(i))for(l=0,c=i.length;l<c;l+=1)M2(e,t,i[l],r);else M2(e,t,i,r);else!e.json&&!ho.call(r,o)&&ho.call(t,o)&&(e.line=s||e.line,e.position=a||e.position,ge(e,"duplicated mapping key")),k2(t,o,i),delete r[o];return t}function Ah(e){var t;t=e.input.charCodeAt(e.position),t===10?e.position++:t===13?(e.position++,e.input.charCodeAt(e.position)===10&&e.position++):ge(e,"a line break is expected"),e.line+=1,e.lineStart=e.position}function vt(e,t,r){for(var n=0,o=e.input.charCodeAt(e.position);o!==0;){for(;hi(o);)o=e.input.charCodeAt(++e.position);if(t&&o===35)do o=e.input.charCodeAt(++e.position);while(o!==10&&o!==13&&o!==0);if(fn(o))for(Ah(e),o=e.input.charCodeAt(e.position),n++,e.lineIndent=0;o===32;)e.lineIndent++,o=e.input.charCodeAt(++e.position);else break}return r!==-1&&n!==0&&e.lineIndent<r&&Qd(e,"deficient indentation"),n}function Xd(e){var t=e.position,r;return r=e.input.charCodeAt(t),!!((r===45||r===46)&&r===e.input.charCodeAt(t+1)&&r===e.input.charCodeAt(t+2)&&(t+=3,r=e.input.charCodeAt(t),r===0||lr(r)))}function _h(e,t){t===1?e.result+=" ":t>1&&(e.result+=Fn.repeat(`
|
|
8
|
+
`,t-1))}function C6(e,t,r){var n,o,i,s,a,l,c,u,d=e.kind,p=e.result,f;if(f=e.input.charCodeAt(e.position),lr(f)||Os(f)||f===35||f===38||f===42||f===33||f===124||f===62||f===39||f===34||f===37||f===64||f===96||(f===63||f===45)&&(o=e.input.charCodeAt(e.position+1),lr(o)||r&&Os(o)))return!1;for(e.kind="scalar",e.result="",i=s=e.position,a=!1;f!==0;){if(f===58){if(o=e.input.charCodeAt(e.position+1),lr(o)||r&&Os(o))break}else if(f===35){if(n=e.input.charCodeAt(e.position-1),lr(n))break}else{if(e.position===e.lineStart&&Xd(e)||r&&Os(f))break;if(fn(f))if(l=e.line,c=e.lineStart,u=e.lineIndent,vt(e,!1,-1),e.lineIndent>=t){a=!0,f=e.input.charCodeAt(e.position);continue}else{e.position=s,e.line=l,e.lineStart=c,e.lineIndent=u;break}}a&&(go(e,i,s,!1),_h(e,e.line-l),i=s=e.position,a=!1),hi(f)||(s=e.position+1),f=e.input.charCodeAt(++e.position)}return go(e,i,s,!1),e.result?!0:(e.kind=d,e.result=p,!1)}function E6(e,t){var r,n,o;if(r=e.input.charCodeAt(e.position),r!==39)return!1;for(e.kind="scalar",e.result="",e.position++,n=o=e.position;(r=e.input.charCodeAt(e.position))!==0;)if(r===39)if(go(e,n,e.position,!0),r=e.input.charCodeAt(++e.position),r===39)n=e.position,e.position++,o=e.position;else return!0;else fn(r)?(go(e,n,o,!0),_h(e,vt(e,!1,t)),n=o=e.position):e.position===e.lineStart&&Xd(e)?ge(e,"unexpected end of the document within a single quoted scalar"):(e.position++,o=e.position);ge(e,"unexpected end of the stream within a single quoted scalar")}function M6(e,t){var r,n,o,i,s,a;if(a=e.input.charCodeAt(e.position),a!==34)return!1;for(e.kind="scalar",e.result="",e.position++,r=n=e.position;(a=e.input.charCodeAt(e.position))!==0;){if(a===34)return go(e,r,e.position,!0),e.position++,!0;if(a===92){if(go(e,r,e.position,!0),a=e.input.charCodeAt(++e.position),fn(a))vt(e,!1,t);else if(a<256&&T2[a])e.result+=D2[a],e.position++;else if((s=S6(a))>0){for(o=s,i=0;o>0;o--)a=e.input.charCodeAt(++e.position),(s=w6(a))>=0?i=(i<<4)+s:ge(e,"expected hexadecimal character");e.result+=T6(i),e.position++}else ge(e,"unknown escape sequence");r=n=e.position}else fn(a)?(go(e,r,n,!0),_h(e,vt(e,!1,t)),r=n=e.position):e.position===e.lineStart&&Xd(e)?ge(e,"unexpected end of the document within a double quoted scalar"):(e.position++,n=e.position)}ge(e,"unexpected end of the stream within a double quoted scalar")}function I6(e,t){var r=!0,n,o=e.tag,i,s=e.anchor,a,l,c,u,d,p={},f,m,g,x;if(x=e.input.charCodeAt(e.position),x===91)l=93,d=!1,i=[];else if(x===123)l=125,d=!0,i={};else return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=i),x=e.input.charCodeAt(++e.position);x!==0;){if(vt(e,!0,t),x=e.input.charCodeAt(e.position),x===l)return e.position++,e.tag=o,e.anchor=s,e.kind=d?"mapping":"sequence",e.result=i,!0;r||ge(e,"missed comma between flow collection entries"),m=f=g=null,c=u=!1,x===63&&(a=e.input.charCodeAt(e.position+1),lr(a)&&(c=u=!0,e.position++,vt(e,!0,t))),n=e.line,Ns(e,t,Vd,!1,!0),m=e.tag,f=e.result,vt(e,!0,t),x=e.input.charCodeAt(e.position),(u||e.line===n)&&x===58&&(c=!0,x=e.input.charCodeAt(++e.position),vt(e,!0,t),Ns(e,t,Vd,!1,!0),g=e.result),d?Ls(e,i,p,m,f,g):c?i.push(Ls(e,null,p,m,f,g)):i.push(f),vt(e,!0,t),x=e.input.charCodeAt(e.position),x===44?(r=!0,x=e.input.charCodeAt(++e.position)):r=!1}ge(e,"unexpected end of the stream within a flow collection")}function $6(e,t){var r,n,o=$h,i=!1,s=!1,a=t,l=0,c=!1,u,d;if(d=e.input.charCodeAt(e.position),d===124)n=!1;else if(d===62)n=!0;else return!1;for(e.kind="scalar",e.result="";d!==0;)if(d=e.input.charCodeAt(++e.position),d===43||d===45)$h===o?o=d===43?y2:x6:ge(e,"repeat of a chomping mode identifier");else if((u=k6(d))>=0)u===0?ge(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):s?ge(e,"repeat of an indentation width identifier"):(a=t+u-1,s=!0);else break;if(hi(d)){do d=e.input.charCodeAt(++e.position);while(hi(d));if(d===35)do d=e.input.charCodeAt(++e.position);while(!fn(d)&&d!==0)}for(;d!==0;){for(Ah(e),e.lineIndent=0,d=e.input.charCodeAt(e.position);(!s||e.lineIndent<a)&&d===32;)e.lineIndent++,d=e.input.charCodeAt(++e.position);if(!s&&e.lineIndent>a&&(a=e.lineIndent),fn(d)){l++;continue}if(e.lineIndent<a){o===y2?e.result+=Fn.repeat(`
|
|
9
|
+
`,i?1+l:l):o===$h&&i&&(e.result+=`
|
|
10
|
+
`);break}for(n?hi(d)?(c=!0,e.result+=Fn.repeat(`
|
|
11
11
|
`,i?1+l:l)):c?(c=!1,e.result+=Fn.repeat(`
|
|
12
12
|
`,l+1)):l===0?i&&(e.result+=" "):e.result+=Fn.repeat(`
|
|
13
13
|
`,l):e.result+=Fn.repeat(`
|
|
14
|
-
`,i?1+l:l),i=!0,s=!0,l=0,r=e.position;!fn(d)&&d!==0;)d=e.input.charCodeAt(++e.position);
|
|
15
|
-
`),e.charCodeAt(0)===65279&&(e=e.slice(1)));var r=new
|
|
14
|
+
`,i?1+l:l),i=!0,s=!0,l=0,r=e.position;!fn(d)&&d!==0;)d=e.input.charCodeAt(++e.position);go(e,r,e.position,!1)}return!0}function I2(e,t){var r,n=e.tag,o=e.anchor,i=[],s,a=!1,l;for(e.anchor!==null&&(e.anchorMap[e.anchor]=i),l=e.input.charCodeAt(e.position);l!==0&&!(l!==45||(s=e.input.charCodeAt(e.position+1),!lr(s)));){if(a=!0,e.position++,vt(e,!0,-1)&&e.lineIndent<=t){i.push(null),l=e.input.charCodeAt(e.position);continue}if(r=e.line,Ns(e,t,x2,!1,!0),i.push(e.result),vt(e,!0,-1),l=e.input.charCodeAt(e.position),(e.line===r||e.lineIndent>t)&&l!==0)ge(e,"bad indentation of a sequence entry");else if(e.lineIndent<t)break}return a?(e.tag=n,e.anchor=o,e.kind="sequence",e.result=i,!0):!1}function A6(e,t,r){var n,o,i,s,a=e.tag,l=e.anchor,c={},u={},d=null,p=null,f=null,m=!1,g=!1,x;for(e.anchor!==null&&(e.anchorMap[e.anchor]=c),x=e.input.charCodeAt(e.position);x!==0;){if(n=e.input.charCodeAt(e.position+1),i=e.line,s=e.position,(x===63||x===58)&&lr(n))x===63?(m&&(Ls(e,c,u,d,p,null),d=p=f=null),g=!0,m=!0,o=!0):m?(m=!1,o=!0):ge(e,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),e.position+=1,x=n;else if(Ns(e,r,g2,!1,!0))if(e.line===i){for(x=e.input.charCodeAt(e.position);hi(x);)x=e.input.charCodeAt(++e.position);if(x===58)x=e.input.charCodeAt(++e.position),lr(x)||ge(e,"a whitespace character is expected after the key-value separator within a block mapping"),m&&(Ls(e,c,u,d,p,null),d=p=f=null),g=!0,m=!1,o=!1,d=e.tag,p=e.result;else if(g)ge(e,"can not read an implicit mapping pair; a colon is missed");else return e.tag=a,e.anchor=l,!0}else if(g)ge(e,"can not read a block mapping entry; a multiline key may not be an implicit key");else return e.tag=a,e.anchor=l,!0;else break;if((e.line===i||e.lineIndent>t)&&(Ns(e,t,Gd,!0,o)&&(m?p=e.result:f=e.result),m||(Ls(e,c,u,d,p,f,i,s),d=p=f=null),vt(e,!0,-1),x=e.input.charCodeAt(e.position)),e.lineIndent>t&&x!==0)ge(e,"bad indentation of a mapping entry");else if(e.lineIndent<t)break}return m&&Ls(e,c,u,d,p,null),g&&(e.tag=a,e.anchor=l,e.kind="mapping",e.result=c),g}function _6(e){var t,r=!1,n=!1,o,i,s;if(s=e.input.charCodeAt(e.position),s!==33)return!1;if(e.tag!==null&&ge(e,"duplication of a tag property"),s=e.input.charCodeAt(++e.position),s===60?(r=!0,s=e.input.charCodeAt(++e.position)):s===33?(n=!0,o="!!",s=e.input.charCodeAt(++e.position)):o="!",t=e.position,r){do s=e.input.charCodeAt(++e.position);while(s!==0&&s!==62);e.position<e.length?(i=e.input.slice(t,e.position),s=e.input.charCodeAt(++e.position)):ge(e,"unexpected end of the stream within a verbatim tag")}else{for(;s!==0&&!lr(s);)s===33&&(n?ge(e,"tag suffix cannot contain exclamation marks"):(o=e.input.slice(t-1,e.position+1),b2.test(o)||ge(e,"named tag handle cannot contain such characters"),n=!0,t=e.position+1)),s=e.input.charCodeAt(++e.position);i=e.input.slice(t,e.position),v6.test(i)&&ge(e,"tag suffix cannot contain flow indicator characters")}return i&&!v2.test(i)&&ge(e,"tag name cannot contain such characters: "+i),r?e.tag=i:ho.call(e.tagMap,o)?e.tag=e.tagMap[o]+i:o==="!"?e.tag="!"+i:o==="!!"?e.tag="tag:yaml.org,2002:"+i:ge(e,'undeclared tag handle "'+o+'"'),!0}function O6(e){var t,r;if(r=e.input.charCodeAt(e.position),r!==38)return!1;for(e.anchor!==null&&ge(e,"duplication of an anchor property"),r=e.input.charCodeAt(++e.position),t=e.position;r!==0&&!lr(r)&&!Os(r);)r=e.input.charCodeAt(++e.position);return e.position===t&&ge(e,"name of an anchor node must contain at least one character"),e.anchor=e.input.slice(t,e.position),!0}function L6(e){var t,r,n;if(n=e.input.charCodeAt(e.position),n!==42)return!1;for(n=e.input.charCodeAt(++e.position),t=e.position;n!==0&&!lr(n)&&!Os(n);)n=e.input.charCodeAt(++e.position);return e.position===t&&ge(e,"name of an alias node must contain at least one character"),r=e.input.slice(t,e.position),ho.call(e.anchorMap,r)||ge(e,'unidentified alias "'+r+'"'),e.result=e.anchorMap[r],vt(e,!0,-1),!0}function Ns(e,t,r,n,o){var i,s,a,l=1,c=!1,u=!1,d,p,f,m,g;if(e.listener!==null&&e.listener("open",e),e.tag=null,e.anchor=null,e.kind=null,e.result=null,i=s=a=Gd===r||x2===r,n&&vt(e,!0,-1)&&(c=!0,e.lineIndent>t?l=1:e.lineIndent===t?l=0:e.lineIndent<t&&(l=-1)),l===1)for(;_6(e)||O6(e);)vt(e,!0,-1)?(c=!0,a=i,e.lineIndent>t?l=1:e.lineIndent===t?l=0:e.lineIndent<t&&(l=-1)):a=!1;if(a&&(a=c||o),(l===1||Gd===r)&&(Vd===r||g2===r?m=t:m=t+1,g=e.position-e.lineStart,l===1?a&&(I2(e,g)||A6(e,g,m))||I6(e,m)?u=!0:(s&&$6(e,m)||E6(e,m)||M6(e,m)?u=!0:L6(e)?(u=!0,(e.tag!==null||e.anchor!==null)&&ge(e,"alias node should not have any properties")):C6(e,m,Vd===r)&&(u=!0,e.tag===null&&(e.tag="?")),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):l===0&&(u=a&&I2(e,g))),e.tag!==null&&e.tag!=="!")if(e.tag==="?"){for(e.result!==null&&e.kind!=="scalar"&&ge(e,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+e.kind+'"'),d=0,p=e.implicitTypes.length;d<p;d+=1)if(f=e.implicitTypes[d],f.resolve(e.result)){e.result=f.construct(e.result),e.tag=f.tag,e.anchor!==null&&(e.anchorMap[e.anchor]=e.result);break}}else ho.call(e.typeMap[e.kind||"fallback"],e.tag)?(f=e.typeMap[e.kind||"fallback"][e.tag],e.result!==null&&f.kind!==e.kind&&ge(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+f.kind+'", not "'+e.kind+'"'),f.resolve(e.result)?(e.result=f.construct(e.result),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):ge(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")):ge(e,"unknown tag !<"+e.tag+">");return e.listener!==null&&e.listener("close",e),e.tag!==null||e.anchor!==null||u}function N6(e){var t=e.position,r,n,o,i=!1,s;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap={},e.anchorMap={};(s=e.input.charCodeAt(e.position))!==0&&(vt(e,!0,-1),s=e.input.charCodeAt(e.position),!(e.lineIndent>0||s!==37));){for(i=!0,s=e.input.charCodeAt(++e.position),r=e.position;s!==0&&!lr(s);)s=e.input.charCodeAt(++e.position);for(n=e.input.slice(r,e.position),o=[],n.length<1&&ge(e,"directive name must not be less than one character in length");s!==0;){for(;hi(s);)s=e.input.charCodeAt(++e.position);if(s===35){do s=e.input.charCodeAt(++e.position);while(s!==0&&!fn(s));break}if(fn(s))break;for(r=e.position;s!==0&&!lr(s);)s=e.input.charCodeAt(++e.position);o.push(e.input.slice(r,e.position))}s!==0&&Ah(e),ho.call(E2,n)?E2[n](e,n,o):Qd(e,'unknown document directive "'+n+'"')}if(vt(e,!0,-1),e.lineIndent===0&&e.input.charCodeAt(e.position)===45&&e.input.charCodeAt(e.position+1)===45&&e.input.charCodeAt(e.position+2)===45?(e.position+=3,vt(e,!0,-1)):i&&ge(e,"directives end mark is expected"),Ns(e,e.lineIndent-1,Gd,!1,!0),vt(e,!0,-1),e.checkLineBreaks&&b6.test(e.input.slice(t,e.position))&&Qd(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&Xd(e)){e.input.charCodeAt(e.position)===46&&(e.position+=3,vt(e,!0,-1));return}if(e.position<e.length-1)ge(e,"end of the stream or a document separator is expected");else return}function $2(e,t){e=String(e),t=t||{},e.length!==0&&(e.charCodeAt(e.length-1)!==10&&e.charCodeAt(e.length-1)!==13&&(e+=`
|
|
15
|
+
`),e.charCodeAt(0)===65279&&(e=e.slice(1)));var r=new D6(e,t),n=e.indexOf("\0");for(n!==-1&&(r.position=n,ge(r,"null byte is not allowed in input")),r.input+="\0";r.input.charCodeAt(r.position)===32;)r.lineIndent+=1,r.position+=1;for(;r.position<r.length-1;)N6(r);return r.documents}function A2(e,t,r){t!==null&&typeof t=="object"&&typeof r>"u"&&(r=t,t=null);var n=$2(e,r);if(typeof t!="function")return n;for(var o=0,i=n.length;o<i;o+=1)t(n[o])}function _2(e,t){var r=$2(e,t);if(r.length!==0){if(r.length===1)return r[0];throw new m2("expected a single document in the stream, but found more")}}function P6(e,t,r){return typeof t=="object"&&t!==null&&typeof r>"u"&&(r=t,t=null),A2(e,t,Fn.extend({schema:h2},r))}function F6(e,t){return _2(e,Fn.extend({schema:h2},t))}ol.exports.loadAll=A2,ol.exports.load=_2,ol.exports.safeLoadAll=P6,ol.exports.safeLoad=F6;var gi});var rD=ye((GCe,Ph)=>{"use strict";var il=pi(),sl=$s(),R6=nl(),B6=_s(),L2=Object.prototype.toString,N2=Object.prototype.hasOwnProperty,z6=9,al=10,H6=13,U6=32,j6=33,q6=34,P2=35,Y6=37,W6=38,V6=39,G6=42,F2=44,Q6=45,R2=58,X6=61,J6=62,Z6=63,K6=64,B2=91,z2=93,eR=96,H2=123,tR=124,U2=125,jt={};jt[0]="\\0",jt[7]="\\a",jt[8]="\\b",jt[9]="\\t",jt[10]="\\n",jt[11]="\\v",jt[12]="\\f",jt[13]="\\r",jt[27]="\\e",jt[34]='\\"',jt[92]="\\\\",jt[133]="\\N",jt[160]="\\_",jt[8232]="\\L",jt[8233]="\\P";var rR=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"];function nR(e,t){var r,n,o,i,s,a,l;if(t===null)return{};for(r={},n=Object.keys(t),o=0,i=n.length;o<i;o+=1)s=n[o],a=String(t[s]),s.slice(0,2)==="!!"&&(s="tag:yaml.org,2002:"+s.slice(2)),l=e.compiledTypeMap.fallback[s],l&&N2.call(l.styleAliases,a)&&(a=l.styleAliases[a]),r[s]=a;return r}function j2(e){var t,r,n;if(t=e.toString(16).toUpperCase(),e<=255)r="x",n=2;else if(e<=65535)r="u",n=4;else if(e<=4294967295)r="U",n=8;else throw new sl("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+r+il.repeat("0",n-t.length)+t}function oR(e){this.schema=e.schema||R6,this.indent=Math.max(1,e.indent||2),this.noArrayIndent=e.noArrayIndent||!1,this.skipInvalid=e.skipInvalid||!1,this.flowLevel=il.isNothing(e.flowLevel)?-1:e.flowLevel,this.styleMap=nR(this.schema,e.styles||null),this.sortKeys=e.sortKeys||!1,this.lineWidth=e.lineWidth||80,this.noRefs=e.noRefs||!1,this.noCompatMode=e.noCompatMode||!1,this.condenseFlow=e.condenseFlow||!1,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}function q2(e,t){for(var r=il.repeat(" ",t),n=0,o=-1,i="",s,a=e.length;n<a;)o=e.indexOf(`
|
|
16
16
|
`,n),o===-1?(s=e.slice(n),n=a):(s=e.slice(n,o+1),n=o+1),s.length&&s!==`
|
|
17
|
-
`&&(i+=r),i+=s;return i}function
|
|
18
|
-
`+il.repeat(" ",e.indent*t)}function
|
|
17
|
+
`&&(i+=r),i+=s;return i}function Oh(e,t){return`
|
|
18
|
+
`+il.repeat(" ",e.indent*t)}function iR(e,t){var r,n,o;for(r=0,n=e.implicitTypes.length;r<n;r+=1)if(o=e.implicitTypes[r],o.resolve(t))return!0;return!1}function Lh(e){return e===U6||e===z6}function Ps(e){return 32<=e&&e<=126||161<=e&&e<=55295&&e!==8232&&e!==8233||57344<=e&&e<=65533&&e!==65279||65536<=e&&e<=1114111}function sR(e){return Ps(e)&&!Lh(e)&&e!==65279&&e!==H6&&e!==al}function Y2(e,t){return Ps(e)&&e!==65279&&e!==F2&&e!==B2&&e!==z2&&e!==H2&&e!==U2&&e!==R2&&(e!==P2||t&&sR(t))}function aR(e){return Ps(e)&&e!==65279&&!Lh(e)&&e!==Q6&&e!==Z6&&e!==R2&&e!==F2&&e!==B2&&e!==z2&&e!==H2&&e!==U2&&e!==P2&&e!==W6&&e!==G6&&e!==j6&&e!==tR&&e!==X6&&e!==J6&&e!==V6&&e!==q6&&e!==Y6&&e!==K6&&e!==eR}function W2(e){var t=/^\n* /;return t.test(e)}var V2=1,G2=2,Q2=3,X2=4,Jd=5;function lR(e,t,r,n,o){var i,s,a,l=!1,c=!1,u=n!==-1,d=-1,p=aR(e.charCodeAt(0))&&!Lh(e.charCodeAt(e.length-1));if(t)for(i=0;i<e.length;i++){if(s=e.charCodeAt(i),!Ps(s))return Jd;a=i>0?e.charCodeAt(i-1):null,p=p&&Y2(s,a)}else{for(i=0;i<e.length;i++){if(s=e.charCodeAt(i),s===al)l=!0,u&&(c=c||i-d-1>n&&e[d+1]!==" ",d=i);else if(!Ps(s))return Jd;a=i>0?e.charCodeAt(i-1):null,p=p&&Y2(s,a)}c=c||u&&i-d-1>n&&e[d+1]!==" "}return!l&&!c?p&&!o(e)?V2:G2:r>9&&W2(e)?Jd:c?X2:Q2}function cR(e,t,r,n){e.dump=(function(){if(t.length===0)return"''";if(!e.noCompatMode&&rR.indexOf(t)!==-1)return"'"+t+"'";var o=e.indent*Math.max(1,r),i=e.lineWidth===-1?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-o),s=n||e.flowLevel>-1&&r>=e.flowLevel;function a(l){return iR(e,l)}switch(lR(t,s,e.indent,i,a)){case V2:return t;case G2:return"'"+t.replace(/'/g,"''")+"'";case Q2:return"|"+J2(t,e.indent)+Z2(q2(t,o));case X2:return">"+J2(t,e.indent)+Z2(q2(uR(t,i),o));case Jd:return'"'+dR(t,i)+'"';default:throw new sl("impossible error: invalid scalar style")}})()}function J2(e,t){var r=W2(e)?String(t):"",n=e[e.length-1]===`
|
|
19
19
|
`,o=n&&(e[e.length-2]===`
|
|
20
20
|
`||e===`
|
|
21
21
|
`),i=o?"+":n?"":"-";return r+i+`
|
|
22
22
|
`}function Z2(e){return e[e.length-1]===`
|
|
23
|
-
`?e.slice(0,-1):e}function
|
|
23
|
+
`?e.slice(0,-1):e}function uR(e,t){for(var r=/(\n+)([^\n]*)/g,n=(function(){var c=e.indexOf(`
|
|
24
24
|
`);return c=c!==-1?c:e.length,r.lastIndex=c,K2(e.slice(0,c),t)})(),o=e[0]===`
|
|
25
25
|
`||e[0]===" ",i,s;s=r.exec(e);){var a=s[1],l=s[2];i=l[0]===" ",n+=a+(!o&&!i&&l!==""?`
|
|
26
26
|
`:"")+K2(l,t),o=i}return n}function K2(e,t){if(e===""||e[0]===" ")return e;for(var r=/ [^ ]/g,n,o=0,i,s=0,a=0,l="";n=r.exec(e);)a=n.index,a-o>t&&(i=s>o?s:a,l+=`
|
|
27
27
|
`+e.slice(o,i),o=i+1),s=a;return l+=`
|
|
28
28
|
`,e.length-o>t&&s>o?l+=e.slice(o,s)+`
|
|
29
|
-
`+e.slice(s+1):l+=e.slice(o),l.slice(1)}function
|
|
30
|
-
`:""}function yR(e,t){return tD(e,il.extend({schema:z6},t))}Fh.exports.dump=tD,Fh.exports.safeDump=yR});var oD=ye((XCe,it)=>{"use strict";var Zd=O2(),nD=rD();function Kd(e){return function(){throw new Error("Function "+e+" is deprecated and cannot be used.")}}it.exports.Type=Tt(),it.exports.Schema=pi(),it.exports.FAILSAFE_SCHEMA=Yd(),it.exports.JSON_SCHEMA=Mh(),it.exports.CORE_SCHEMA=Ih(),it.exports.DEFAULT_SAFE_SCHEMA=_s(),it.exports.DEFAULT_FULL_SCHEMA=nl(),it.exports.load=Zd.load,it.exports.loadAll=Zd.loadAll,it.exports.safeLoad=Zd.safeLoad,it.exports.safeLoadAll=Zd.safeLoadAll,it.exports.dump=nD.dump,it.exports.safeDump=nD.safeDump,it.exports.YAMLException=$s(),it.exports.MINIMAL_SCHEMA=Yd(),it.exports.SAFE_SCHEMA=_s(),it.exports.DEFAULT_SCHEMA=nl(),it.exports.scan=Kd("scan"),it.exports.parse=Kd("parse"),it.exports.compose=Kd("compose"),it.exports.addConstructor=Kd("addConstructor")});var sD=ye((JCe,iD)=>{"use strict";var bR=oD();iD.exports=bR});var aD=ye(mn=>{"use strict";var vR=mn&&mn.__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]})),wR=mn&&mn.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}):function(e,t){e.default=t}),SR=mn&&mn.__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)&&vR(t,e,r);return wR(t,e),t};Object.defineProperty(mn,"__esModule",{value:!0}),mn.jsYaml=void 0;var kR=SR(sD());mn.jsYaml=kR});var cD=ye(Ir=>{"use strict";var TR=Ir&&Ir.__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]})),DR=Ir&&Ir.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}):function(e,t){e.default=t}),CR=Ir&&Ir.__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 DR(t,e),t};Object.defineProperty(Ir,"__esModule",{value:!0}),Ir.objectToYamlString=Ir.yamlStringToObject=void 0;var lD=CR(aD());Ir.yamlStringToObject=async(e,t={})=>lD.jsYaml.safeLoad(e),Ir.objectToYamlString=async(e,t={})=>lD.jsYaml.safeDump(e)});var yD=ye((tEe,xD)=>{"use strict";var ep=Object.prototype.hasOwnProperty,uD=Object.prototype.toString,dD=Object.defineProperty,pD=Object.getOwnPropertyDescriptor,fD=function(t){return typeof Array.isArray=="function"?Array.isArray(t):uD.call(t)==="[object Array]"},mD=function(t){if(!t||uD.call(t)!=="[object Object]")return!1;var r=ep.call(t,"constructor"),n=t.constructor&&t.constructor.prototype&&ep.call(t.constructor.prototype,"isPrototypeOf");if(t.constructor&&!r&&!n)return!1;var o;for(o in t);return typeof o>"u"||ep.call(t,o)},hD=function(t,r){dD&&r.name==="__proto__"?dD(t,r.name,{enumerable:!0,configurable:!0,value:r.newValue,writable:!0}):t[r.name]=r.newValue},gD=function(t,r){if(r==="__proto__")if(ep.call(t,r)){if(pD)return pD(t,r).value}else return;return t[r]};xD.exports=function e(){var t,r,n,o,i,s,a=arguments[0],l=1,c=arguments.length,u=!1;for(typeof a=="boolean"&&(u=a,a=arguments[1]||{},l=2),(a==null||typeof a!="object"&&typeof a!="function")&&(a={});l<c;++l)if(t=arguments[l],t!=null)for(r in t)n=gD(a,r),o=gD(t,r),a!==o&&(u&&o&&(mD(o)||(i=fD(o)))?(i?(i=!1,s=n&&fD(n)?n:[]):s=n&&mD(n)?n:{},hD(a,{name:r,newValue:e(u,s,o)})):typeof o<"u"&&hD(a,{name:r,newValue:o}));return a}});var tE=ye((YNe,ex)=>{(function(){var e;typeof ex<"u"?e=ex.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(o,i){return n.apply(null,[o].concat(i))}function n(o){for(var i=1,s=[].slice.call(arguments),a=0,l=o.length,c="",u,d=!1,p,f,m=!1,g,x=function(){return s[i++]},y=function(){for(var T="";/\d/.test(o[a]);)T+=o[a++],u=o[a];return T.length>0?parseInt(T):null};a<l;++a)if(u=o[a],d)switch(d=!1,u=="."?(m=!1,u=o[++a]):u=="0"&&o[a+1]=="."?(m=!0,a+=2,u=o[a]):m=!0,g=y(),u){case"b":c+=parseInt(x(),10).toString(2);break;case"c":p=x(),typeof p=="string"||p instanceof String?c+=p:c+=String.fromCharCode(parseInt(p,10));break;case"d":c+=parseInt(x(),10);break;case"f":f=String(parseFloat(x()).toFixed(g||6)),c+=m?f:f.replace(/^0/,"");break;case"j":c+=JSON.stringify(x());break;case"o":c+="0"+parseInt(x(),10).toString(8);break;case"s":c+=x();break;case"x":c+="0x"+parseInt(x(),10).toString(16);break;case"X":c+="0x"+parseInt(x(),10).toString(16).toUpperCase();break;default:c+=u;break}else u==="%"?d=!0:c+=u;return c}})()});var BM=ye(Vr=>{"use strict";Object.defineProperty(Vr,"__esModule",{value:!0}),Vr.PathError=Vr.TokenData=void 0,Vr.parse=Ux,Vr.compile=XH,Vr.match=ZH,Vr.pathToRegexp=PM,Vr.stringify=tU;var Bx="/",zx=e=>e,LM=/^[$_\p{ID_Start}]$/u,Hx=/^[$\u200c\u200d\p{ID_Continue}]$/u,GH={"{":"{","}":"}","(":"(",")":")","[":"[","]":"]","+":"+","?":"?","!":"!"};function QH(e){return e.replace(/[{}()\[\]+?!:*\\]/g,"\\$&")}function bn(e){return e.replace(/[.+*?^${}()[\]|/\\]/g,"\\$&")}var Jp=class{constructor(t,r){this.tokens=t,this.originalPath=r}};Vr.TokenData=Jp;var _i=class extends TypeError{constructor(t,r){let n=t;r&&(n+=`: ${r}`),n+="; visit https://git.new/pathToRegexpError for info",super(n),this.originalPath=r}};Vr.PathError=_i;function Ux(e,t={}){let{encodePath:r=zx}=t,n=[...e],o=[],i=0,s=0;function a(){let c="";if(LM.test(n[i]))do c+=n[i++];while(Hx.test(n[i]));else if(n[i]==='"'){let u=i;for(;i++<n.length;){if(n[i]==='"'){i++,u=0;break}n[i]==="\\"&&i++,c+=n[i]}if(u)throw new _i(`Unterminated quote at index ${u}`,e)}if(!c)throw new _i(`Missing parameter name at index ${i}`,e);return c}for(;i<n.length;){let c=n[i],u=GH[c];u?o.push({type:u,index:i++,value:c}):c==="\\"?o.push({type:"escape",index:i++,value:n[i++]}):c===":"?o.push({type:"param",index:i++,value:a()}):c==="*"?o.push({type:"wildcard",index:i++,value:a()}):o.push({type:"char",index:i++,value:c})}o.push({type:"end",index:i,value:""});function l(c){let u=[];for(;;){let d=o[s++];if(d.type===c)break;if(d.type==="char"||d.type==="escape"){let p=d.value,f=o[s];for(;f.type==="char"||f.type==="escape";)p+=f.value,f=o[++s];u.push({type:"text",value:r(p)});continue}if(d.type==="param"||d.type==="wildcard"){u.push({type:d.type,name:d.value});continue}if(d.type==="{"){u.push({type:"group",tokens:l("}")});continue}throw new _i(`Unexpected ${d.type} at index ${d.index}, expected ${c}`,e)}return u}return new Jp(l("end"),e)}function XH(e,t={}){let{encode:r=encodeURIComponent,delimiter:n=Bx}=t,o=typeof e=="object"?e:Ux(e,t),i=NM(o.tokens,n,r);return function(a={}){let[l,...c]=i(a);if(c.length)throw new TypeError(`Missing parameters: ${c.join(", ")}`);return l}}function NM(e,t,r){let n=e.map(o=>JH(o,t,r));return o=>{let i=[""];for(let s of n){let[a,...l]=s(o);i[0]+=a,i.push(...l)}return i}}function JH(e,t,r){if(e.type==="text")return()=>[e.value];if(e.type==="group"){let o=NM(e.tokens,t,r);return i=>{let[s,...a]=o(i);return a.length?[""]:[s]}}let n=r||zx;return e.type==="wildcard"&&r!==!1?o=>{let i=o[e.name];if(i==null)return["",e.name];if(!Array.isArray(i)||i.length===0)throw new TypeError(`Expected "${e.name}" to be a non-empty array`);return[i.map((s,a)=>{if(typeof s!="string")throw new TypeError(`Expected "${e.name}/${a}" to be a string`);return n(s)}).join(t)]}:o=>{let i=o[e.name];if(i==null)return["",e.name];if(typeof i!="string")throw new TypeError(`Expected "${e.name}" to be a string`);return[n(i)]}}function ZH(e,t={}){let{decode:r=decodeURIComponent,delimiter:n=Bx}=t,{regexp:o,keys:i}=PM(e,t),s=i.map(a=>r===!1?zx:a.type==="param"?r:l=>l.split(n).map(r));return function(l){let c=o.exec(l);if(!c)return!1;let u=c[0],d=Object.create(null);for(let p=1;p<c.length;p++){if(c[p]===void 0)continue;let f=i[p-1],m=s[p-1];d[f.name]=m(c[p])}return{path:u,params:d}}}function PM(e,t={}){let{delimiter:r=Bx,end:n=!0,sensitive:o=!1,trailing:i=!0}=t,s=[],a=o?"":"i",l=[];for(let d of FM(e,[])){let p=typeof d=="object"?d:Ux(d,t);for(let f of Zp(p.tokens,0,[]))l.push(KH(f,r,s,p.originalPath))}let c=`^(?:${l.join("|")})`;return i&&(c+=`(?:${bn(r)}$)?`),c+=n?"$":`(?=${bn(r)}|$)`,{regexp:new RegExp(c,a),keys:s}}function FM(e,t){if(Array.isArray(e))for(let r of e)FM(r,t);else t.push(e);return t}function*Zp(e,t,r){if(t===e.length)return yield r;let n=e[t];if(n.type==="group")for(let o of Zp(n.tokens,0,r.slice()))yield*Zp(e,t+1,o);else r.push(n);yield*Zp(e,t+1,r)}function KH(e,t,r,n){let o="",i="",s=!0;for(let a of e){if(a.type==="text"){o+=bn(a.value),i+=a.value,s||(s=a.value.includes(t));continue}if(a.type==="param"||a.type==="wildcard"){if(!s&&!i)throw new _i(`Missing text before "${a.name}" ${a.type}`,n);a.type==="param"?o+=`(${eU(t,s?"":i)}+)`:o+="([\\s\\S]+)",r.push(a),i="",s=!1;continue}}return o}function eU(e,t){return t.length<2?e.length<2?`[^${bn(e+t)}]`:`(?:(?!${bn(e)})[^${bn(t)}])`:e.length<2?`(?:(?!${bn(t)})[^${bn(e)}])`:`(?:(?!${bn(t)}|${bn(e)})[\\s\\S])`}function RM(e){let t="",r=0;function n(o){return rU(o)&&nU(e[r])?o:JSON.stringify(o)}for(;r<e.length;){let o=e[r++];if(o.type==="text"){t+=QH(o.value);continue}if(o.type==="group"){t+=`{${RM(o.tokens)}}`;continue}if(o.type==="param"){t+=`:${n(o.name)}`;continue}if(o.type==="wildcard"){t+=`*${n(o.name)}`;continue}throw new TypeError(`Unknown token type: ${o.type}`)}return t}function tU(e){return RM(e.tokens)}function rU(e){let[t,...r]=e;return LM.test(t)&&r.every(n=>Hx.test(n))}function nU(e){return e&&e.type==="text"?!Hx.test(e.value[0]):!0}});var d0=ye((c0,u0)=>{(function(e,t){typeof c0=="object"&&typeof u0<"u"?u0.exports=t():typeof define=="function"&&define.amd?define(t):(e=e||self,e.SweetScroll=t())})(c0,function(){"use strict";var e=function(){return e=Object.assign||function(S){for(var $,A=1,B=arguments.length;A<B;A++){$=arguments[A];for(var ue in $)Object.prototype.hasOwnProperty.call($,ue)&&(S[ue]=$[ue])}return S},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 I=!1;if(!t)return I;try{var S=window,$=Object.defineProperty({},"passive",{get:function(){I=!0}});S.addEventListener("test",null,$),S.removeEventListener("test",null,$)}catch{}return I})(),o=function(I){return typeof I=="string"},i=function(I){return typeof I=="function"},s=function(I){return Array.isArray(I)},a=function(I){return!s(I)&&I-parseFloat(I)+1>=0},l=function(I,S){return I&&I.hasOwnProperty(S)},c=t?window.requestAnimationFrame.bind(window):null,u=t?window.cancelAnimationFrame.bind(window):null,d=Math.cos,p=Math.sin,f=Math.pow,m=Math.sqrt,g=Math.PI,x={linear:function(I){return I},easeInQuad:function(I,S,$,A,B){return A*(S/=B)*S+$},easeOutQuad:function(I,S,$,A,B){return-A*(S/=B)*(S-2)+$},easeInOutQuad:function(I,S,$,A,B){return(S/=B/2)<1?A/2*S*S+$:-A/2*(--S*(S-2)-1)+$},easeInCubic:function(I,S,$,A,B){return A*(S/=B)*S*S+$},easeOutCubic:function(I,S,$,A,B){return A*((S=S/B-1)*S*S+1)+$},easeInOutCubic:function(I,S,$,A,B){return(S/=B/2)<1?A/2*S*S*S+$:A/2*((S-=2)*S*S+2)+$},easeInQuart:function(I,S,$,A,B){return A*(S/=B)*S*S*S+$},easeOutQuart:function(I,S,$,A,B){return-A*((S=S/B-1)*S*S*S-1)+$},easeInOutQuart:function(I,S,$,A,B){return(S/=B/2)<1?A/2*S*S*S*S+$:-A/2*((S-=2)*S*S*S-2)+$},easeInQuint:function(I,S,$,A,B){return A*(S/=B)*S*S*S*S+$},easeOutQuint:function(I,S,$,A,B){return A*((S=S/B-1)*S*S*S*S+1)+$},easeInOutQuint:function(I,S,$,A,B){return(S/=B/2)<1?A/2*S*S*S*S*S+$:A/2*((S-=2)*S*S*S*S+2)+$},easeInSine:function(I,S,$,A,B){return-A*d(S/B*(g/2))+A+$},easeOutSine:function(I,S,$,A,B){return A*p(S/B*(g/2))+$},easeInOutSine:function(I,S,$,A,B){return-A/2*(d(g*S/B)-1)+$},easeInExpo:function(I,S,$,A,B){return S===0?$:A*f(2,10*(S/B-1))+$},easeOutExpo:function(I,S,$,A,B){return S===B?$+A:A*(-f(2,-10*S/B)+1)+$},easeInOutExpo:function(I,S,$,A,B){return S===0?$:S===B?$+A:(S/=B/2)<1?A/2*f(2,10*(S-1))+$:A/2*(-f(2,-10*--S)+2)+$},easeInCirc:function(I,S,$,A,B){return-A*(m(1-(S/=B)*S)-1)+$},easeOutCirc:function(I,S,$,A,B){return A*m(1-(S=S/B-1)*S)+$},easeInOutCirc:function(I,S,$,A,B){return(S/=B/2)<1?-A/2*(m(1-S*S)-1)+$:A/2*(m(1-(S-=2)*S)+1)+$}},y=function(I){return Array.prototype.slice.call(I?document.querySelectorAll(I):[])},T=function(I){return y(I).shift()||null},D=function(I){return I instanceof Element},H=function(I){return I===window},j=function(I){return I===document.documentElement||I===document.body},M=function(I,S){if(D(S))return I===S;for(var $=y(S),A=$.length;--A>=0&&$[A]!==I;);return A>-1},U=function(I){return Math.max(I.scrollHeight,I.clientHeight,I.offsetHeight)},le=function(I){return Math.max(I.scrollWidth,I.clientWidth,I.offsetWidth)},ee=function(I){return{width:le(I),height:U(I)}},_=function(I){var S=H(I)||j(I);return{viewport:{width:S?Math.min(window.innerWidth,document.documentElement.clientWidth):I.clientWidth,height:S?window.innerHeight:I.clientHeight},size:S?{width:Math.max(le(document.body),le(document.documentElement)),height:Math.max(U(document.body),U(document.documentElement))}:ee(I)}},_e={y:"scrollTop",x:"scrollLeft"},Q={y:"pageYOffset",x:"pageXOffset"},L=function(I,S){return H(I)?I[Q[S]]:I[_e[S]]},F=function(I,S,$){if(H(I)){var A=$==="y";I.scrollTo(A?I.pageXOffset:S,A?S:I.pageYOffset)}else I[_e[$]]=S},z=function(I,S){var $=I.getBoundingClientRect();if($.width||$.height){var A={top:0,left:0},B=void 0;if(H(S)||j(S))B=document.documentElement,A.top=window[Q.y],A.left=window[Q.x];else{B=S;var ue=B.getBoundingClientRect();A.top=ue.top*-1+B[_e.y],A.left=ue.left*-1+B[_e.x]}return{top:$.top+A.top-B.clientTop,left:$.left+A.left-B.clientLeft}}return $},Y=(function(){return t?"onwheel"in document?"wheel":"mousewheel":"wheel"})(),re=function(I){return I==="wheel"?Y:I},ie=function(I,S,$,A,B){$.split(" ").forEach(function(ue){I[S](re(ue),A,n?{passive:B}:!1)})},we=function(I,S,$,A){return ie(I,"addEventListener",S,$,A)},w=function(I,S,$,A){return ie(I,"removeEventListener",S,$,A)},Ie=/^(\+|-)=(\d+(?:\.\d+)?)$/,Ne=function(I,S){var $={top:0,left:0,relative:!1};if(l(I,"top")||l(I,"left"))$=e({},$,I);else if(s(I))if(I.length>1)$.top=I[0],$.left=I[1];else if(I.length===1)$.top=S?I[0]:0,$.left=S?0:I[0];else return null;else if(a(I))S?$.top=I:$.left=I;else if(o(I)){var A=I.trim().match(Ie);if(!A)return null;var B=A[1],ue=parseInt(A[2],10);B==="+"?($.top=S?ue:0,$.left=S?0:ue):($.top=S?-ue:0,$.left=S?0:-ue),$.relative=!0}else return null;return $},k={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},Ke="click",gt="wheel touchstart touchmove",ur=(function(){function I(S,$){var A=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(ue){var Ge=A,qe=Ge.$el,Pe=Ge.ctx;if(Pe.start||(Pe.start=ue),!Pe.progress||!qe){A.stop();return}var nr=Pe.opts,Ct=Pe.pos,Vt=Pe.start,Fr=Pe.startPos,Gr=Pe.easing,dr=nr.duration,Sr={top:"y",left:"x"},or=ue-Vt,rt=Math.min(1,Math.max(or/dr,0));Object.keys(Ct).forEach(function(Qr){var P=Ct[Qr],W=Fr[Qr],he=P-W;if(he!==0){var Se=Gr(rt,dr*rt,0,1,dr);F(qe,Math.round(W+he*Se),Sr[Qr])}}),or<=dr?(A.hook(nr,"step",rt),Pe.id=I.raf(A.loop)):A.stop(!0)},this.handleClick=function(ue){for(var Ge=A.opts,qe=ue.target;qe&&qe!==document;qe=qe.parentNode)if(M(qe,Ge.trigger)){var Pe=JSON.parse(qe.getAttribute("data-scroll-options")||"{}"),nr=qe.getAttribute("data-scroll"),Ct=nr||qe.getAttribute("href"),Vt=e({},Ge,Pe),Fr=Vt.preventDefault,Gr=Vt.stopPropagation,dr=Vt.vertical,Sr=Vt.horizontal;Fr&&ue.preventDefault(),Gr&&ue.stopPropagation(),A.ctx.$trigger=qe,Sr&&dr?A.to(Ct,Vt):dr?A.toTop(Ct,Vt):Sr&&A.toLeft(Ct,Vt);break}},this.handleStop=function(ue){var Ge=A.ctx,qe=Ge.opts;qe&&qe.cancellable?(Ge.cancel=!0,A.stop()):ue.preventDefault()},this.opts=e({},k,S||{});var B=null;t&&(typeof $=="string"?B=T($):$!=null?B=$:B=window),this.$el=B,B&&this.bind(!0,!1)}return I.create=function(S,$){return new I(S,$)},I.prototype.to=function(S,$){if(t){var A=this,B=A.$el,ue=A.ctx,Ge=A.opts,qe=ue.$trigger,Pe=e({},Ge,$||{}),nr=Pe.offset,Ct=Pe.vertical,Vt=Pe.horizontal,Fr=D(Pe.header)?Pe.header:T(Pe.header),Gr=/^#/,dr=o(S)&&Gr.test(S)?S:null;if(ue.opts=Pe,ue.cancel=!1,ue.hash=dr,this.stop(),!!B){var Sr=Ne(nr,Ct),or=Ne(S,Ct),rt={top:0,left:0};if(or)if(or.relative){var Qr=L(B,Ct?"y":"x");rt.top=Ct?Qr+or.top:or.top,rt.left=Ct?or.left:Qr+or.left}else rt=or;else if(o(S)&&S!=="#"){var P=T(S);if(!P)return;rt=z(P,B)}Sr&&(rt.top+=Sr.top,rt.left+=Sr.left),Fr&&(rt.top=Math.max(0,rt.top-ee(Fr).height));var W=_(B),he=W.viewport,Se=W.size;if(rt.top=Ct?Math.max(0,Math.min(Se.height-he.height,rt.top)):L(B,"y"),rt.left=Vt?Math.max(0,Math.min(Se.width-he.width,rt.left)):L(B,"x"),this.hook(Pe,"before",rt,qe)===!1){ue.opts=null;return}ue.pos=rt,this.start(Pe),this.bind(!1,!0)}}},I.prototype.toTop=function(S,$){this.to(S,e({},$||{},{vertical:!0,horizontal:!1}))},I.prototype.toLeft=function(S,$){this.to(S,e({},$||{},{vertical:!1,horizontal:!0}))},I.prototype.toElement=function(S,$){var A=this.$el;!t||!A||this.to(z(S,A),$||{})},I.prototype.stop=function(S){S===void 0&&(S=!1);var $=this,A=$.$el,B=$.ctx,ue=B.pos;!A||!B.progress||(I.caf(B.id),B.progress=!1,B.start=0,B.id=0,S&&ue&&(F(A,ue.left,"x"),F(A,ue.top,"y")),this.complete())},I.prototype.update=function(S){if(this.$el){var $=e({},this.opts,S);this.stop(),this.unbind(!0,!0),this.opts=$,this.bind(!0,!1)}},I.prototype.destroy=function(){this.$el&&(this.stop(),this.unbind(!0,!0),this.$el=null)},I.prototype.onBefore=function(S,$){return!0},I.prototype.onStep=function(S){},I.prototype.onAfter=function(S,$){},I.prototype.onCancel=function(){},I.prototype.onComplete=function(S){},I.prototype.start=function(S){var $=this.ctx;$.opts=S,$.progress=!0,$.easing=i(S.easing)?S.easing:x[S.easing];var A=this.$el,B={top:L(A,"y"),left:L(A,"x")};$.startPos=B,$.id=I.raf(this.loop)},I.prototype.complete=function(){var S=this,$=S.$el,A=S.ctx,B=A.hash,ue=A.cancel,Ge=A.opts,qe=A.pos,Pe=A.$trigger;if(!(!$||!Ge)){if(B!=null&&B!==window.location.hash){var nr=Ge.updateURL;t&&r&&nr!==!1&&window.history[nr==="replace"?"replaceState":"pushState"](null,"",B)}this.unbind(!1,!0),A.opts=null,A.$trigger=null,ue?this.hook(Ge,"cancel"):this.hook(Ge,"after",qe,Pe),this.hook(Ge,"complete",ue)}},I.prototype.hook=function(S,$){for(var A=[],B=2;B<arguments.length;B++)A[B-2]=arguments[B];var ue,Ge=S[$],qe,Pe;return i(Ge)&&(qe=Ge.apply(this,A.concat([this]))),Pe=(ue=this)["on"+($[0].toUpperCase()+$.slice(1))].apply(ue,A),qe!==void 0?qe:Pe},I.prototype.bind=function(S,$){var A=this,B=A.$el,ue=A.ctx.opts;B&&(S&&we(B,Ke,this.handleClick,!1),$&&we(B,gt,this.handleStop,ue?ue.cancellable:!0))},I.prototype.unbind=function(S,$){var A=this,B=A.$el,ue=A.ctx.opts;B&&(S&&w(B,Ke,this.handleClick,!1),$&&w(B,gt,this.handleStop,ue?ue.cancellable:!0))},I.raf=c,I.caf=u,I})();return ur})});var Ul=globalThis,la=Ul.ShadowRoot&&(Ul.ShadyCSS===void 0||Ul.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Df=Symbol(),kb=new WeakMap,zi=class{constructor(t,r,n){if(this._$cssResult$=!0,n!==Df)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=r}get styleSheet(){let t=this.o,r=this.t;if(la&&t===void 0){let n=r!==void 0&&r.length===1;n&&(t=kb.get(r)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),n&&kb.set(r,t))}return t}toString(){return this.cssText}},h=e=>new zi(typeof e=="string"?e:e+"",void 0,Df),Oe=(e,...t)=>{let r=e.length===1?e[0]:t.reduce(((n,o,i)=>n+(s=>{if(s._$cssResult$===!0)return s.cssText;if(typeof s=="number")return s;throw Error("Value passed to 'css' function must be a 'css' function result: "+s+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(o)+e[i+1]),e[0]);return new zi(r,e,Df)},jl=(e,t)=>{if(la)e.adoptedStyleSheets=t.map((r=>r instanceof CSSStyleSheet?r:r.styleSheet));else for(let r of t){let n=document.createElement("style"),o=Ul.litNonce;o!==void 0&&n.setAttribute("nonce",o),n.textContent=r.cssText,e.appendChild(n)}},ca=la?e=>e:e=>e instanceof CSSStyleSheet?(t=>{let r="";for(let n of t.cssRules)r+=n.cssText;return h(r)})(e):e;var{is:bA,defineProperty:vA,getOwnPropertyDescriptor:wA,getOwnPropertyNames:SA,getOwnPropertySymbols:kA,getPrototypeOf:TA}=Object,ql=globalThis,Tb=ql.trustedTypes,DA=Tb?Tb.emptyScript:"",CA=ql.reactiveElementPolyfillSupport,ua=(e,t)=>e,Hi={toAttribute(e,t){switch(t){case Boolean:e=e?DA:null;break;case Object:case Array:e=e==null?e:JSON.stringify(e)}return e},fromAttribute(e,t){let r=e;switch(t){case Boolean:r=e!==null;break;case Number:r=e===null?null:Number(e);break;case Object:case Array:try{r=JSON.parse(e)}catch{r=null}}return r}},da=(e,t)=>!bA(e,t),Db={attribute:!0,type:String,converter:Hi,reflect:!1,useDefault:!1,hasChanged:da};Symbol.metadata??=Symbol("metadata"),ql.litPropertyMetadata??=new WeakMap;var Kr=class extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,r=Db){if(r.state&&(r.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(t)&&((r=Object.create(r)).wrapped=!0),this.elementProperties.set(t,r),!r.noAccessor){let n=Symbol(),o=this.getPropertyDescriptor(t,n,r);o!==void 0&&vA(this.prototype,t,o)}}static getPropertyDescriptor(t,r,n){let{get:o,set:i}=wA(this.prototype,t)??{get(){return this[r]},set(s){this[r]=s}};return{get:o,set(s){let a=o?.call(this);i?.call(this,s),this.requestUpdate(t,a,n)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??Db}static _$Ei(){if(this.hasOwnProperty(ua("elementProperties")))return;let t=TA(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(ua("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(ua("properties"))){let r=this.properties,n=[...SA(r),...kA(r)];for(let o of n)this.createProperty(o,r[o])}let t=this[Symbol.metadata];if(t!==null){let r=litPropertyMetadata.get(t);if(r!==void 0)for(let[n,o]of r)this.elementProperties.set(n,o)}this._$Eh=new Map;for(let[r,n]of this.elementProperties){let o=this._$Eu(r,n);o!==void 0&&this._$Eh.set(o,r)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){let r=[];if(Array.isArray(t)){let n=new Set(t.flat(1/0).reverse());for(let o of n)r.unshift(ca(o))}else t!==void 0&&r.push(ca(t));return r}static _$Eu(t,r){let n=r.attribute;return n===!1?void 0:typeof n=="string"?n:typeof t=="string"?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach((t=>t(this)))}addController(t){(this._$EO??=new Set).add(t),this.renderRoot!==void 0&&this.isConnected&&t.hostConnected?.()}removeController(t){this._$EO?.delete(t)}_$E_(){let t=new Map,r=this.constructor.elementProperties;for(let n of r.keys())this.hasOwnProperty(n)&&(t.set(n,this[n]),delete this[n]);t.size>0&&(this._$Ep=t)}createRenderRoot(){let t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return jl(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach((t=>t.hostConnected?.()))}enableUpdating(t){}disconnectedCallback(){this._$EO?.forEach((t=>t.hostDisconnected?.()))}attributeChangedCallback(t,r,n){this._$AK(t,n)}_$ET(t,r){let n=this.constructor.elementProperties.get(t),o=this.constructor._$Eu(t,n);if(o!==void 0&&n.reflect===!0){let i=(n.converter?.toAttribute!==void 0?n.converter:Hi).toAttribute(r,n.type);this._$Em=t,i==null?this.removeAttribute(o):this.setAttribute(o,i),this._$Em=null}}_$AK(t,r){let n=this.constructor,o=n._$Eh.get(t);if(o!==void 0&&this._$Em!==o){let i=n.getPropertyOptions(o),s=typeof i.converter=="function"?{fromAttribute:i.converter}:i.converter?.fromAttribute!==void 0?i.converter:Hi;this._$Em=o;let a=s.fromAttribute(r,i.type);this[o]=a??this._$Ej?.get(o)??a,this._$Em=null}}requestUpdate(t,r,n){if(t!==void 0){let o=this.constructor,i=this[t];if(n??=o.getPropertyOptions(t),!((n.hasChanged??da)(i,r)||n.useDefault&&n.reflect&&i===this._$Ej?.get(t)&&!this.hasAttribute(o._$Eu(t,n))))return;this.C(t,r,n)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(t,r,{useDefault:n,reflect:o,wrapped:i},s){n&&!(this._$Ej??=new Map).has(t)&&(this._$Ej.set(t,s??r??this[t]),i!==!0||s!==void 0)||(this._$AL.has(t)||(this.hasUpdated||n||(r=void 0),this._$AL.set(t,r)),o===!0&&this._$Em!==t&&(this._$Eq??=new Set).add(t))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(r){Promise.reject(r)}let t=this.scheduleUpdate();return t!=null&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(let[o,i]of this._$Ep)this[o]=i;this._$Ep=void 0}let n=this.constructor.elementProperties;if(n.size>0)for(let[o,i]of n){let{wrapped:s}=i,a=this[o];s!==!0||this._$AL.has(o)||a===void 0||this.C(o,void 0,i,a)}}let t=!1,r=this._$AL;try{t=this.shouldUpdate(r),t?(this.willUpdate(r),this._$EO?.forEach((n=>n.hostUpdate?.())),this.update(r)):this._$EM()}catch(n){throw t=!1,this._$EM(),n}t&&this._$AE(r)}willUpdate(t){}_$AE(t){this._$EO?.forEach((r=>r.hostUpdated?.())),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Eq&&=this._$Eq.forEach((r=>this._$ET(r,this[r]))),this._$EM()}updated(t){}firstUpdated(t){}};Kr.elementStyles=[],Kr.shadowRootOptions={mode:"open"},Kr[ua("elementProperties")]=new Map,Kr[ua("finalized")]=new Map,CA?.({ReactiveElement:Kr}),(ql.reactiveElementVersions??=[]).push("2.1.1");var Cf=globalThis,Yl=Cf.trustedTypes,Cb=Yl?Yl.createPolicy("lit-html",{createHTML:e=>e}):void 0,Ef="$lit$",En=`lit$${Math.random().toFixed(9).slice(2)}$`,Mf="?"+En,EA=`<${Mf}>`,Lo=document,pa=()=>Lo.createComment(""),fa=e=>e===null||typeof e!="object"&&typeof e!="function",If=Array.isArray,Eb=e=>If(e)||typeof e?.[Symbol.iterator]=="function",$f=`[
|
|
31
|
-
\f\r]`,ma=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Mb=/-->/g,Ib=/>/g,
|
|
32
|
-
\f\r"'\`<>=]|("|')|))|$)`,"g"),$b=/'/g,Ab=/"/g,_b=/^(?:script|style|textarea|title)$/i,Af=e=>(t,...r)=>({_$litType$:e,strings:t,values:r}),O=Af(1),_f=Af(2),Of=Af(3),tt=Symbol.for("lit-noChange"),nt=Symbol.for("lit-nothing"),Ob=new WeakMap,Po=Lo.createTreeWalker(Lo,129);function Lb(e,t){if(!If(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return Cb!==void 0?Cb.createHTML(t):t}var Nb=(e,t)=>{let r=e.length-1,n=[],o,i=t===2?"<svg>":t===3?"<math>":"",s=ma;for(let a=0;a<r;a++){let l=e[a],c,u,d=-1,p=0;for(;p<l.length&&(s.lastIndex=p,u=s.exec(l),u!==null);)p=s.lastIndex,s===ma?u[1]==="!--"?s=Mb:u[1]!==void 0?s=Ib:u[2]!==void 0?(_b.test(u[2])&&(o=RegExp("</"+u[2],"g")),s=No):u[3]!==void 0&&(s=No):s===No?u[0]===">"?(s=o??ma,d=-1):u[1]===void 0?d=-2:(d=s.lastIndex-u[2].length,c=u[1],s=u[3]===void 0?No:u[3]==='"'?Ab:$b):s===Ab||s===$b?s=No:s===Mb||s===Ib?s=ma:(s=No,o=void 0);let f=s===No&&e[a+1].startsWith("/>")?" ":"";i+=s===ma?l+EA:d>=0?(n.push(c),l.slice(0,d)+Ef+l.slice(d)+En+f):l+En+(d===-2?a:f)}return[Lb(e,i+(e[r]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),n]},ha=class e{constructor({strings:t,_$litType$:r},n){let o;this.parts=[];let i=0,s=0,a=t.length-1,l=this.parts,[c,u]=Nb(t,r);if(this.el=e.createElement(c,n),Po.currentNode=this.el.content,r===2||r===3){let d=this.el.content.firstChild;d.replaceWith(...d.childNodes)}for(;(o=Po.nextNode())!==null&&l.length<a;){if(o.nodeType===1){if(o.hasAttributes())for(let d of o.getAttributeNames())if(d.endsWith(Ef)){let p=u[s++],f=o.getAttribute(d).split(En),m=/([.?@])?(.*)/.exec(p);l.push({type:1,index:i,name:m[2],strings:f,ctor:m[1]==="."?Vl:m[1]==="?"?Gl:m[1]==="@"?Ql:Ro}),o.removeAttribute(d)}else d.startsWith(En)&&(l.push({type:6,index:i}),o.removeAttribute(d));if(_b.test(o.tagName)){let d=o.textContent.split(En),p=d.length-1;if(p>0){o.textContent=Yl?Yl.emptyScript:"";for(let f=0;f<p;f++)o.append(d[f],pa()),Po.nextNode(),l.push({type:2,index:++i});o.append(d[p],pa())}}}else if(o.nodeType===8)if(o.data===Mf)l.push({type:2,index:i});else{let d=-1;for(;(d=o.data.indexOf(En,d+1))!==-1;)l.push({type:7,index:i}),d+=En.length-1}i++}}static createElement(t,r){let n=Lo.createElement("template");return n.innerHTML=t,n}};function Fo(e,t,r=e,n){if(t===tt)return t;let o=n!==void 0?r._$Co?.[n]:r._$Cl,i=fa(t)?void 0:t._$litDirective$;return o?.constructor!==i&&(o?._$AO?.(!1),i===void 0?o=void 0:(o=new i(e),o._$AT(e,r,n)),n!==void 0?(r._$Co??=[])[n]=o:r._$Cl=o),o!==void 0&&(t=Fo(e,o._$AS(e,t.values),o,n)),t}var Wl=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,o=(t?.creationScope??Lo).importNode(r,!0);Po.currentNode=o;let i=Po.nextNode(),s=0,a=0,l=n[0];for(;l!==void 0;){if(s===l.index){let c;l.type===2?c=new Ui(i,i.nextSibling,this,t):l.type===1?c=new l.ctor(i,l.name,l.strings,this,t):l.type===6&&(c=new Xl(i,this,t)),this._$AV.push(c),l=n[++a]}s!==l?.index&&(i=Po.nextNode(),s++)}return Po.currentNode=Lo,o}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++}},Ui=class e{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,r,n,o){this.type=2,this._$AH=nt,this._$AN=void 0,this._$AA=t,this._$AB=r,this._$AM=n,this.options=o,this._$Cv=o?.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=Fo(this,t,r),fa(t)?t===nt||t==null||t===""?(this._$AH!==nt&&this._$AR(),this._$AH=nt):t!==this._$AH&&t!==tt&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):Eb(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!==nt&&fa(this._$AH)?this._$AA.nextSibling.data=t:this.T(Lo.createTextNode(t)),this._$AH=t}$(t){let{values:r,_$litType$:n}=t,o=typeof n=="number"?this._$AC(t):(n.el===void 0&&(n.el=ha.createElement(Lb(n.h,n.h[0]),this.options)),n);if(this._$AH?._$AD===o)this._$AH.p(r);else{let i=new Wl(o,this),s=i.u(this.options);i.p(r),this.T(s),this._$AH=i}}_$AC(t){let r=Ob.get(t.strings);return r===void 0&&Ob.set(t.strings,r=new ha(t)),r}k(t){If(this._$AH)||(this._$AH=[],this._$AR());let r=this._$AH,n,o=0;for(let i of t)o===r.length?r.push(n=new e(this.O(pa()),this.O(pa()),this,this.options)):n=r[o],n._$AI(i),o++;o<r.length&&(this._$AR(n&&n._$AB.nextSibling,o),r.length=o)}_$AR(t=this._$AA.nextSibling,r){for(this._$AP?.(!1,!0,r);t!==this._$AB;){let n=t.nextSibling;t.remove(),t=n}}setConnected(t){this._$AM===void 0&&(this._$Cv=t,this._$AP?.(t))}},Ro=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,r,n,o,i){this.type=1,this._$AH=nt,this._$AN=void 0,this.element=t,this.name=r,this._$AM=o,this.options=i,n.length>2||n[0]!==""||n[1]!==""?(this._$AH=Array(n.length-1).fill(new String),this.strings=n):this._$AH=nt}_$AI(t,r=this,n,o){let i=this.strings,s=!1;if(i===void 0)t=Fo(this,t,r,0),s=!fa(t)||t!==this._$AH&&t!==tt,s&&(this._$AH=t);else{let a=t,l,c;for(t=i[0],l=0;l<i.length-1;l++)c=Fo(this,a[n+l],r,l),c===tt&&(c=this._$AH[l]),s||=!fa(c)||c!==this._$AH[l],c===nt?t=nt:t!==nt&&(t+=(c??"")+i[l+1]),this._$AH[l]=c}s&&!o&&this.j(t)}j(t){t===nt?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},Vl=class extends Ro{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===nt?void 0:t}},Gl=class extends Ro{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==nt)}},Ql=class extends Ro{constructor(t,r,n,o,i){super(t,r,n,o,i),this.type=5}_$AI(t,r=this){if((t=Fo(this,t,r,0)??nt)===tt)return;let n=this._$AH,o=t===nt&&n!==nt||t.capture!==n.capture||t.once!==n.once||t.passive!==n.passive,i=t!==nt&&(n===nt||o);o&&this.element.removeEventListener(this.name,this,n),i&&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)}},Xl=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){Fo(this,t)}},Lf={M:Ef,P:En,A:Mf,C:1,L:Nb,R:Wl,D:Eb,V:Fo,I:Ui,H:Ro,N:Gl,U:Ql,B:Vl,F:Xl},MA=Cf.litHtmlPolyfillSupport;MA?.(ha,Ui),(Cf.litHtmlVersions??=[]).push("3.3.1");var Jl=(e,t,r)=>{let n=r?.renderBefore??t,o=n._$litPart$;if(o===void 0){let i=r?.renderBefore??null;n._$litPart$=o=new Ui(t.insertBefore(pa(),i),i,void 0,r??{})}return o._$AI(e),o};var Nf=globalThis,Mn=class extends Kr{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=Jl(r,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return tt}};Mn._$litElement$=!0,Mn.finalized=!0,Nf.litElementHydrateSupport?.({LitElement:Mn});var IA=Nf.litElementPolyfillSupport;IA?.({LitElement:Mn});var $A={_$AK:(e,t,r)=>{e._$AK(t,r)},_$AL:e=>e._$AL};(Nf.litElementVersions??=[]).push("4.2.1");var AA=!1;var Ee={};me(Ee,{ObservableIntake:()=>im,Observablemap:()=>om,fromStreamWithBackpressure:()=>gL,rxjs:()=>Qi});var fe={};me(fe,{CumulativeDeferred:()=>tc,Deferred:()=>ec,cumulativeDefer:()=>OA,defer:()=>ji,fromCallback:()=>BA,getFirstTrueOrFalse:()=>RA,map:()=>PA,rejectedPromise:()=>NA,resolvedPromise:()=>LA,timeoutAndContinue:()=>FA,timeoutWrap:()=>Pb});var ec=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"})}},ji=()=>new ec;var tc=class{constructor(){this.accumulatedPromises=[],this.deferred=ji(),this.promise=this.deferred.promise,setTimeout(async()=>{for(;this.accumulatedPromises.length>0;)await this.accumulatedPromises.shift();this.deferred.resolve()},0)}subDefer(){let t=ji();return this.addPromise(t.promise),t}addPromise(t){this.accumulatedPromises.push(t)}},OA=()=>new tc;var LA=e=>Promise.resolve(e),NA=e=>Promise.reject(e),PA=async(e,t)=>{let r=[],n=[];for(let o of e){let i=t(o);r.push(i),i.then(s=>{n.push(s)})}return await Promise.all(r),n},Pb=async(e,t,r=!0)=>new Promise((n,o)=>{setTimeout(()=>{r?o(new Error("timeout")):n(null)},t),e.then(n,o)}),FA=async(e,t=6e4)=>Pb(e,t,!1),RA=async e=>{let t=ji();for(let r of e)r.then(n=>{n===!0&&t.resolve(!0)});return Promise.all(e).then(()=>{t.resolve(!1)}),t.promise},BA=e=>new Promise((t,r)=>{e((n,o)=>{n?r(n):t(o)})});var Qi={};me(Qi,{Observable:()=>je,ReplaySubject:()=>sc,Subject:()=>tn,Subscription:()=>ir,from:()=>Uo,fromEvent:()=>qo,of:()=>rm,ops:()=>hL});var Pf=function(e,t){return Pf=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(r[o]=n[o])},Pf(e,t)};function Ot(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Pf(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var Ff=function(){return Ff=Object.assign||function(t){for(var r,n=1,o=arguments.length;n<o;n++){r=arguments[n];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(t[i]=r[i])}return t},Ff.apply(this,arguments)};function HA(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r}function UA(e,t,r,n){var o=arguments.length,i=o<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(i=(o<3?s(i):o>3?s(t,r,i):s(t,r))||i);return o>3&&i&&Object.defineProperty(t,r,i),i}function jA(e,t){return function(r,n){t(r,n,e)}}function qA(e,t,r,n,o,i){function s(y){if(y!==void 0&&typeof y!="function")throw new TypeError("Function expected");return y}for(var a=n.kind,l=a==="getter"?"get":a==="setter"?"set":"value",c=!t&&e?n.static?e:e.prototype:null,u=t||(c?Object.getOwnPropertyDescriptor(c,n.name):{}),d,p=!1,f=r.length-1;f>=0;f--){var m={};for(var g in n)m[g]=g==="access"?{}:n[g];for(var g in n.access)m.access[g]=n.access[g];m.addInitializer=function(y){if(p)throw new TypeError("Cannot add initializers after decoration has completed");i.push(s(y||null))};var x=(0,r[f])(a==="accessor"?{get:u.get,set:u.set}:u[l],m);if(a==="accessor"){if(x===void 0)continue;if(x===null||typeof x!="object")throw new TypeError("Object expected");(d=s(x.get))&&(u.get=d),(d=s(x.set))&&(u.set=d),(d=s(x.init))&&o.unshift(d)}else(d=s(x))&&(a==="field"?o.unshift(d):u[l]=d)}c&&Object.defineProperty(c,n.name,u),p=!0}function YA(e,t,r){for(var n=arguments.length>2,o=0;o<t.length;o++)r=n?t[o].call(e,r):t[o].call(e);return n?r:void 0}function WA(e){return typeof e=="symbol"?e:"".concat(e)}function VA(e,t,r){return typeof t=="symbol"&&(t=t.description?"[".concat(t.description,"]"):""),Object.defineProperty(e,"name",{configurable:!0,value:r?"".concat(r," ",t):t})}function GA(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}function zf(e,t,r,n){function o(i){return i instanceof r?i:new r(function(s){s(i)})}return new(r||(r=Promise))(function(i,s){function a(u){try{c(n.next(u))}catch(d){s(d)}}function l(u){try{c(n.throw(u))}catch(d){s(d)}}function c(u){u.done?i(u.value):o(u.value).then(a,l)}c((n=n.apply(e,t||[])).next())})}function ga(e,t){var r={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,o,i,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(c){return function(u){return l([c,u])}}function l(c){if(n)throw new TypeError("Generator is already executing.");for(;s&&(s=0,c[0]&&(r=0)),r;)try{if(n=1,o&&(i=c[0]&2?o.return:c[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,c[1])).done)return i;switch(o=0,i&&(c=[c[0]&2,i.value]),c[0]){case 0:case 1:i=c;break;case 4:return r.label++,{value:c[1],done:!1};case 5:r.label++,o=c[1],c=[0];continue;case 7:c=r.ops.pop(),r.trys.pop();continue;default:if(i=r.trys,!(i=i.length>0&&i[i.length-1])&&(c[0]===6||c[0]===2)){r=0;continue}if(c[0]===3&&(!i||c[1]>i[0]&&c[1]<i[3])){r.label=c[1];break}if(c[0]===6&&r.label<i[1]){r.label=i[1],i=c;break}if(i&&r.label<i[2]){r.label=i[2],r.ops.push(c);break}i[2]&&r.ops.pop(),r.trys.pop();continue}c=t.call(e,r)}catch(u){c=[6,u],o=0}finally{n=i=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}var Rf=Object.create?(function(e,t,r,n){n===void 0&&(n=r);var o=Object.getOwnPropertyDescriptor(t,r);(!o||("get"in o?!t.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,o)}):(function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]});function QA(e,t){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&Rf(t,e,r)}function Pt(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 Xt(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),o,i=[],s;try{for(;(t===void 0||t-- >0)&&!(o=n.next()).done;)i.push(o.value)}catch(a){s={error:a}}finally{try{o&&!o.done&&(r=n.return)&&r.call(n)}finally{if(s)throw s.error}}return i}function XA(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(Xt(arguments[t]));return e}function JA(){for(var e=0,t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;for(var n=Array(e),o=0,t=0;t<r;t++)for(var i=arguments[t],s=0,a=i.length;s<a;s++,o++)n[o]=i[s];return n}function Tr(e,t,r){if(r||arguments.length===2)for(var n=0,o=t.length,i;n<o;n++)(i||!(n in t))&&(i||(i=Array.prototype.slice.call(t,0,n)),i[n]=t[n]);return e.concat(i||Array.prototype.slice.call(t))}function In(e){return this instanceof In?(this.v=e,this):new In(e)}function Hf(e,t,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=r.apply(e,t||[]),o,i=[];return o=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),a("next"),a("throw"),a("return",s),o[Symbol.asyncIterator]=function(){return this},o;function s(f){return function(m){return Promise.resolve(m).then(f,d)}}function a(f,m){n[f]&&(o[f]=function(g){return new Promise(function(x,y){i.push([f,g,x,y])>1||l(f,g)})},m&&(o[f]=m(o[f])))}function l(f,m){try{c(n[f](m))}catch(g){p(i[0][3],g)}}function c(f){f.value instanceof In?Promise.resolve(f.value.v).then(u,d):p(i[0][2],f)}function u(f){l("next",f)}function d(f){l("throw",f)}function p(f,m){f(m),i.shift(),i.length&&l(i[0][0],i[0][1])}}function ZA(e){var t,r;return t={},n("next"),n("throw",function(o){throw o}),n("return"),t[Symbol.iterator]=function(){return this},t;function n(o,i){t[o]=e[o]?function(s){return(r=!r)?{value:In(e[o](s)),done:!1}:i?i(s):s}:i}}function Uf(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 Pt=="function"?Pt(e):e[Symbol.iterator](),r={},n("next"),n("throw"),n("return"),r[Symbol.asyncIterator]=function(){return this},r);function n(i){r[i]=e[i]&&function(s){return new Promise(function(a,l){s=e[i](s),o(a,l,s.done,s.value)})}}function o(i,s,a,l){Promise.resolve(l).then(function(c){i({value:c,done:a})},s)}}function KA(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}var e_=Object.create?(function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}):function(e,t){e.default=t},Bf=function(e){return Bf=Object.getOwnPropertyNames||function(t){var r=[];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(r[r.length]=n);return r},Bf(e)};function t_(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r=Bf(e),n=0;n<r.length;n++)r[n]!=="default"&&Rf(t,e,r[n]);return e_(t,e),t}function r_(e){return e&&e.__esModule?e:{default:e}}function n_(e,t,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(e):n?n.value:t.get(e)}function o_(e,t,r,n,o){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!o)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!o:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?o.call(e,r):o?o.value=r:t.set(e,r),r}function i_(e,t){if(t===null||typeof t!="object"&&typeof t!="function")throw new TypeError("Cannot use 'in' operator on non-object");return typeof e=="function"?t===e:e.has(t)}function s_(e,t,r){if(t!=null){if(typeof t!="object"&&typeof t!="function")throw new TypeError("Object expected.");var n,o;if(r){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");n=t[Symbol.asyncDispose]}if(n===void 0){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");n=t[Symbol.dispose],r&&(o=n)}if(typeof n!="function")throw new TypeError("Object not disposable.");o&&(n=function(){try{o.call(this)}catch(i){return Promise.reject(i)}}),e.stack.push({value:t,dispose:n,async:r})}else r&&e.stack.push({async:!0});return t}var a_=typeof SuppressedError=="function"?SuppressedError:function(e,t,r){var n=new Error(r);return n.name="SuppressedError",n.error=e,n.suppressed=t,n};function l_(e){function t(i){e.error=e.hasError?new a_(i,e.error,"An error was suppressed during disposal."):i,e.hasError=!0}var r,n=0;function o(){for(;r=e.stack.pop();)try{if(!r.async&&n===1)return n=0,e.stack.push(r),Promise.resolve().then(o);if(r.dispose){var i=r.dispose.call(r.value);if(r.async)return n|=2,Promise.resolve(i).then(o,function(s){return t(s),o()})}else n|=1}catch(s){t(s)}if(n===1)return e.hasError?Promise.reject(e.error):Promise.resolve();if(e.hasError)throw e.error}return o()}function c_(e,t){return typeof e=="string"&&/^\.\.?\//.test(e)?e.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+?)?)\.([cm]?)ts$/i,function(r,n,o,i,s){return n?t?".jsx":".js":o&&(!i||!s)?r:o+i+"."+s.toLowerCase()+"js"}):e}var F7={__extends:Ot,__assign:Ff,__rest:HA,__decorate:UA,__param:jA,__esDecorate:qA,__runInitializers:YA,__propKey:WA,__setFunctionName:VA,__metadata:GA,__awaiter:zf,__generator:ga,__createBinding:Rf,__exportStar:QA,__values:Pt,__read:Xt,__spread:XA,__spreadArrays:JA,__spreadArray:Tr,__await:In,__asyncGenerator:Hf,__asyncDelegator:ZA,__asyncValues:Uf,__makeTemplateObject:KA,__importStar:t_,__importDefault:r_,__classPrivateFieldGet:n_,__classPrivateFieldSet:o_,__classPrivateFieldIn:i_,__addDisposableResource:s_,__disposeResources:l_,__rewriteRelativeImportExtension:c_};function ke(e){return typeof e=="function"}function rc(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 xa=rc(function(e){return function(r){e(this),this.message=r?r.length+` errors occurred during unsubscription:
|
|
29
|
+
`+e.slice(s+1):l+=e.slice(o),l.slice(1)}function dR(e){for(var t="",r,n,o,i=0;i<e.length;i++){if(r=e.charCodeAt(i),r>=55296&&r<=56319&&(n=e.charCodeAt(i+1),n>=56320&&n<=57343)){t+=j2((r-55296)*1024+n-56320+65536),i++;continue}o=jt[r],t+=!o&&Ps(r)?e[i]:o||j2(r)}return t}function pR(e,t,r){var n="",o=e.tag,i,s;for(i=0,s=r.length;i<s;i+=1)xi(e,t,r[i],!1,!1)&&(i!==0&&(n+=","+(e.condenseFlow?"":" ")),n+=e.dump);e.tag=o,e.dump="["+n+"]"}function fR(e,t,r,n){var o="",i=e.tag,s,a;for(s=0,a=r.length;s<a;s+=1)xi(e,t+1,r[s],!0,!0)&&((!n||s!==0)&&(o+=Oh(e,t)),e.dump&&al===e.dump.charCodeAt(0)?o+="-":o+="- ",o+=e.dump);e.tag=i,e.dump=o||"[]"}function mR(e,t,r){var n="",o=e.tag,i=Object.keys(r),s,a,l,c,u;for(s=0,a=i.length;s<a;s+=1)u="",s!==0&&(u+=", "),e.condenseFlow&&(u+='"'),l=i[s],c=r[l],xi(e,t,l,!1,!1)&&(e.dump.length>1024&&(u+="? "),u+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),xi(e,t,c,!1,!1)&&(u+=e.dump,n+=u));e.tag=o,e.dump="{"+n+"}"}function hR(e,t,r,n){var o="",i=e.tag,s=Object.keys(r),a,l,c,u,d,p;if(e.sortKeys===!0)s.sort();else if(typeof e.sortKeys=="function")s.sort(e.sortKeys);else if(e.sortKeys)throw new sl("sortKeys must be a boolean or a function");for(a=0,l=s.length;a<l;a+=1)p="",(!n||a!==0)&&(p+=Oh(e,t)),c=s[a],u=r[c],xi(e,t+1,c,!0,!0,!0)&&(d=e.tag!==null&&e.tag!=="?"||e.dump&&e.dump.length>1024,d&&(e.dump&&al===e.dump.charCodeAt(0)?p+="?":p+="? "),p+=e.dump,d&&(p+=Oh(e,t)),xi(e,t+1,u,!0,d)&&(e.dump&&al===e.dump.charCodeAt(0)?p+=":":p+=": ",p+=e.dump,o+=p));e.tag=i,e.dump=o||"{}"}function eD(e,t,r){var n,o,i,s,a,l;for(o=r?e.explicitTypes:e.implicitTypes,i=0,s=o.length;i<s;i+=1)if(a=o[i],(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,L2.call(a.represent)==="[object Function]")n=a.represent(t,l);else if(N2.call(a.represent,l))n=a.represent[l](t,l);else throw new sl("!<"+a.tag+'> tag resolver accepts not "'+l+'" style');e.dump=n}return!0}return!1}function xi(e,t,r,n,o,i){e.tag=null,e.dump=r,eD(e,r,!1)||eD(e,r,!0);var s=L2.call(e.dump);n&&(n=e.flowLevel<0||e.flowLevel>t);var a=s==="[object Object]"||s==="[object Array]",l,c;if(a&&(l=e.duplicates.indexOf(r),c=l!==-1),(e.tag!==null&&e.tag!=="?"||c||e.indent!==2&&t>0)&&(o=!1),c&&e.usedDuplicates[l])e.dump="*ref_"+l;else{if(a&&c&&!e.usedDuplicates[l]&&(e.usedDuplicates[l]=!0),s==="[object Object]")n&&Object.keys(e.dump).length!==0?(hR(e,t,e.dump,o),c&&(e.dump="&ref_"+l+e.dump)):(mR(e,t,e.dump),c&&(e.dump="&ref_"+l+" "+e.dump));else if(s==="[object Array]"){var u=e.noArrayIndent&&t>0?t-1:t;n&&e.dump.length!==0?(fR(e,u,e.dump,o),c&&(e.dump="&ref_"+l+e.dump)):(pR(e,u,e.dump),c&&(e.dump="&ref_"+l+" "+e.dump))}else if(s==="[object String]")e.tag!=="?"&&cR(e,e.dump,t,i);else{if(e.skipInvalid)return!1;throw new sl("unacceptable kind of an object to dump "+s)}e.tag!==null&&e.tag!=="?"&&(e.dump="!<"+e.tag+"> "+e.dump)}return!0}function gR(e,t){var r=[],n=[],o,i;for(Nh(e,r,n),o=0,i=n.length;o<i;o+=1)t.duplicates.push(r[n[o]]);t.usedDuplicates=new Array(i)}function Nh(e,t,r){var n,o,i;if(e!==null&&typeof e=="object")if(o=t.indexOf(e),o!==-1)r.indexOf(o)===-1&&r.push(o);else if(t.push(e),Array.isArray(e))for(o=0,i=e.length;o<i;o+=1)Nh(e[o],t,r);else for(n=Object.keys(e),o=0,i=n.length;o<i;o+=1)Nh(e[n[o]],t,r)}function tD(e,t){t=t||{};var r=new oR(t);return r.noRefs||gR(e,r),xi(r,0,e,!0,!0)?r.dump+`
|
|
30
|
+
`:""}function xR(e,t){return tD(e,il.extend({schema:B6},t))}Ph.exports.dump=tD,Ph.exports.safeDump=xR});var oD=ye((QCe,it)=>{"use strict";var Zd=O2(),nD=rD();function Kd(e){return function(){throw new Error("Function "+e+" is deprecated and cannot be used.")}}it.exports.Type=Tt(),it.exports.Schema=fi(),it.exports.FAILSAFE_SCHEMA=Yd(),it.exports.JSON_SCHEMA=Eh(),it.exports.CORE_SCHEMA=Mh(),it.exports.DEFAULT_SAFE_SCHEMA=_s(),it.exports.DEFAULT_FULL_SCHEMA=nl(),it.exports.load=Zd.load,it.exports.loadAll=Zd.loadAll,it.exports.safeLoad=Zd.safeLoad,it.exports.safeLoadAll=Zd.safeLoadAll,it.exports.dump=nD.dump,it.exports.safeDump=nD.safeDump,it.exports.YAMLException=$s(),it.exports.MINIMAL_SCHEMA=Yd(),it.exports.SAFE_SCHEMA=_s(),it.exports.DEFAULT_SCHEMA=nl(),it.exports.scan=Kd("scan"),it.exports.parse=Kd("parse"),it.exports.compose=Kd("compose"),it.exports.addConstructor=Kd("addConstructor")});var sD=ye((XCe,iD)=>{"use strict";var yR=oD();iD.exports=yR});var aD=ye(mn=>{"use strict";var bR=mn&&mn.__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]})),vR=mn&&mn.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}):function(e,t){e.default=t}),wR=mn&&mn.__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)&&bR(t,e,r);return vR(t,e),t};Object.defineProperty(mn,"__esModule",{value:!0}),mn.jsYaml=void 0;var SR=wR(sD());mn.jsYaml=SR});var cD=ye(Ir=>{"use strict";var kR=Ir&&Ir.__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]})),TR=Ir&&Ir.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}):function(e,t){e.default=t}),DR=Ir&&Ir.__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)&&kR(t,e,r);return TR(t,e),t};Object.defineProperty(Ir,"__esModule",{value:!0}),Ir.objectToYamlString=Ir.yamlStringToObject=void 0;var lD=DR(aD());Ir.yamlStringToObject=async(e,t={})=>lD.jsYaml.safeLoad(e),Ir.objectToYamlString=async(e,t={})=>lD.jsYaml.safeDump(e)});var yD=ye((eEe,xD)=>{"use strict";var ep=Object.prototype.hasOwnProperty,uD=Object.prototype.toString,dD=Object.defineProperty,pD=Object.getOwnPropertyDescriptor,fD=function(t){return typeof Array.isArray=="function"?Array.isArray(t):uD.call(t)==="[object Array]"},mD=function(t){if(!t||uD.call(t)!=="[object Object]")return!1;var r=ep.call(t,"constructor"),n=t.constructor&&t.constructor.prototype&&ep.call(t.constructor.prototype,"isPrototypeOf");if(t.constructor&&!r&&!n)return!1;var o;for(o in t);return typeof o>"u"||ep.call(t,o)},hD=function(t,r){dD&&r.name==="__proto__"?dD(t,r.name,{enumerable:!0,configurable:!0,value:r.newValue,writable:!0}):t[r.name]=r.newValue},gD=function(t,r){if(r==="__proto__")if(ep.call(t,r)){if(pD)return pD(t,r).value}else return;return t[r]};xD.exports=function e(){var t,r,n,o,i,s,a=arguments[0],l=1,c=arguments.length,u=!1;for(typeof a=="boolean"&&(u=a,a=arguments[1]||{},l=2),(a==null||typeof a!="object"&&typeof a!="function")&&(a={});l<c;++l)if(t=arguments[l],t!=null)for(r in t)n=gD(a,r),o=gD(t,r),a!==o&&(u&&o&&(mD(o)||(i=fD(o)))?(i?(i=!1,s=n&&fD(n)?n:[]):s=n&&mD(n)?n:{},hD(a,{name:r,newValue:e(u,s,o)})):typeof o<"u"&&hD(a,{name:r,newValue:o}));return a}});var tE=ye((qNe,Kg)=>{(function(){var e;typeof Kg<"u"?e=Kg.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(o,i){return n.apply(null,[o].concat(i))}function n(o){for(var i=1,s=[].slice.call(arguments),a=0,l=o.length,c="",u,d=!1,p,f,m=!1,g,x=function(){return s[i++]},y=function(){for(var T="";/\d/.test(o[a]);)T+=o[a++],u=o[a];return T.length>0?parseInt(T):null};a<l;++a)if(u=o[a],d)switch(d=!1,u=="."?(m=!1,u=o[++a]):u=="0"&&o[a+1]=="."?(m=!0,a+=2,u=o[a]):m=!0,g=y(),u){case"b":c+=parseInt(x(),10).toString(2);break;case"c":p=x(),typeof p=="string"||p instanceof String?c+=p:c+=String.fromCharCode(parseInt(p,10));break;case"d":c+=parseInt(x(),10);break;case"f":f=String(parseFloat(x()).toFixed(g||6)),c+=m?f:f.replace(/^0/,"");break;case"j":c+=JSON.stringify(x());break;case"o":c+="0"+parseInt(x(),10).toString(8);break;case"s":c+=x();break;case"x":c+="0x"+parseInt(x(),10).toString(16);break;case"X":c+="0x"+parseInt(x(),10).toString(16).toUpperCase();break;default:c+=u;break}else u==="%"?d=!0:c+=u;return c}})()});var BM=ye(Vr=>{"use strict";Object.defineProperty(Vr,"__esModule",{value:!0}),Vr.PathError=Vr.TokenData=void 0,Vr.parse=Hx,Vr.compile=QH,Vr.match=JH,Vr.pathToRegexp=PM,Vr.stringify=eU;var Rx="/",Bx=e=>e,LM=/^[$_\p{ID_Start}]$/u,zx=/^[$\u200c\u200d\p{ID_Continue}]$/u,VH={"{":"{","}":"}","(":"(",")":")","[":"[","]":"]","+":"+","?":"?","!":"!"};function GH(e){return e.replace(/[{}()\[\]+?!:*\\]/g,"\\$&")}function bn(e){return e.replace(/[.+*?^${}()[\]|/\\]/g,"\\$&")}var Jp=class{constructor(t,r){this.tokens=t,this.originalPath=r}};Vr.TokenData=Jp;var Oi=class extends TypeError{constructor(t,r){let n=t;r&&(n+=`: ${r}`),n+="; visit https://git.new/pathToRegexpError for info",super(n),this.originalPath=r}};Vr.PathError=Oi;function Hx(e,t={}){let{encodePath:r=Bx}=t,n=[...e],o=[],i=0,s=0;function a(){let c="";if(LM.test(n[i]))do c+=n[i++];while(zx.test(n[i]));else if(n[i]==='"'){let u=i;for(;i++<n.length;){if(n[i]==='"'){i++,u=0;break}n[i]==="\\"&&i++,c+=n[i]}if(u)throw new Oi(`Unterminated quote at index ${u}`,e)}if(!c)throw new Oi(`Missing parameter name at index ${i}`,e);return c}for(;i<n.length;){let c=n[i],u=VH[c];u?o.push({type:u,index:i++,value:c}):c==="\\"?o.push({type:"escape",index:i++,value:n[i++]}):c===":"?o.push({type:"param",index:i++,value:a()}):c==="*"?o.push({type:"wildcard",index:i++,value:a()}):o.push({type:"char",index:i++,value:c})}o.push({type:"end",index:i,value:""});function l(c){let u=[];for(;;){let d=o[s++];if(d.type===c)break;if(d.type==="char"||d.type==="escape"){let p=d.value,f=o[s];for(;f.type==="char"||f.type==="escape";)p+=f.value,f=o[++s];u.push({type:"text",value:r(p)});continue}if(d.type==="param"||d.type==="wildcard"){u.push({type:d.type,name:d.value});continue}if(d.type==="{"){u.push({type:"group",tokens:l("}")});continue}throw new Oi(`Unexpected ${d.type} at index ${d.index}, expected ${c}`,e)}return u}return new Jp(l("end"),e)}function QH(e,t={}){let{encode:r=encodeURIComponent,delimiter:n=Rx}=t,o=typeof e=="object"?e:Hx(e,t),i=NM(o.tokens,n,r);return function(a={}){let[l,...c]=i(a);if(c.length)throw new TypeError(`Missing parameters: ${c.join(", ")}`);return l}}function NM(e,t,r){let n=e.map(o=>XH(o,t,r));return o=>{let i=[""];for(let s of n){let[a,...l]=s(o);i[0]+=a,i.push(...l)}return i}}function XH(e,t,r){if(e.type==="text")return()=>[e.value];if(e.type==="group"){let o=NM(e.tokens,t,r);return i=>{let[s,...a]=o(i);return a.length?[""]:[s]}}let n=r||Bx;return e.type==="wildcard"&&r!==!1?o=>{let i=o[e.name];if(i==null)return["",e.name];if(!Array.isArray(i)||i.length===0)throw new TypeError(`Expected "${e.name}" to be a non-empty array`);return[i.map((s,a)=>{if(typeof s!="string")throw new TypeError(`Expected "${e.name}/${a}" to be a string`);return n(s)}).join(t)]}:o=>{let i=o[e.name];if(i==null)return["",e.name];if(typeof i!="string")throw new TypeError(`Expected "${e.name}" to be a string`);return[n(i)]}}function JH(e,t={}){let{decode:r=decodeURIComponent,delimiter:n=Rx}=t,{regexp:o,keys:i}=PM(e,t),s=i.map(a=>r===!1?Bx:a.type==="param"?r:l=>l.split(n).map(r));return function(l){let c=o.exec(l);if(!c)return!1;let u=c[0],d=Object.create(null);for(let p=1;p<c.length;p++){if(c[p]===void 0)continue;let f=i[p-1],m=s[p-1];d[f.name]=m(c[p])}return{path:u,params:d}}}function PM(e,t={}){let{delimiter:r=Rx,end:n=!0,sensitive:o=!1,trailing:i=!0}=t,s=[],a=o?"":"i",l=[];for(let d of FM(e,[])){let p=typeof d=="object"?d:Hx(d,t);for(let f of Zp(p.tokens,0,[]))l.push(ZH(f,r,s,p.originalPath))}let c=`^(?:${l.join("|")})`;return i&&(c+=`(?:${bn(r)}$)?`),c+=n?"$":`(?=${bn(r)}|$)`,{regexp:new RegExp(c,a),keys:s}}function FM(e,t){if(Array.isArray(e))for(let r of e)FM(r,t);else t.push(e);return t}function*Zp(e,t,r){if(t===e.length)return yield r;let n=e[t];if(n.type==="group")for(let o of Zp(n.tokens,0,r.slice()))yield*Zp(e,t+1,o);else r.push(n);yield*Zp(e,t+1,r)}function ZH(e,t,r,n){let o="",i="",s=!0;for(let a of e){if(a.type==="text"){o+=bn(a.value),i+=a.value,s||(s=a.value.includes(t));continue}if(a.type==="param"||a.type==="wildcard"){if(!s&&!i)throw new Oi(`Missing text before "${a.name}" ${a.type}`,n);a.type==="param"?o+=`(${KH(t,s?"":i)}+)`:o+="([\\s\\S]+)",r.push(a),i="",s=!1;continue}}return o}function KH(e,t){return t.length<2?e.length<2?`[^${bn(e+t)}]`:`(?:(?!${bn(e)})[^${bn(t)}])`:e.length<2?`(?:(?!${bn(t)})[^${bn(e)}])`:`(?:(?!${bn(t)}|${bn(e)})[\\s\\S])`}function RM(e){let t="",r=0;function n(o){return tU(o)&&rU(e[r])?o:JSON.stringify(o)}for(;r<e.length;){let o=e[r++];if(o.type==="text"){t+=GH(o.value);continue}if(o.type==="group"){t+=`{${RM(o.tokens)}}`;continue}if(o.type==="param"){t+=`:${n(o.name)}`;continue}if(o.type==="wildcard"){t+=`*${n(o.name)}`;continue}throw new TypeError(`Unknown token type: ${o.type}`)}return t}function eU(e){return RM(e.tokens)}function tU(e){let[t,...r]=e;return LM.test(t)&&r.every(n=>zx.test(n))}function rU(e){return e&&e.type==="text"?!zx.test(e.value[0]):!0}});var u0=ye((l0,c0)=>{(function(e,t){typeof l0=="object"&&typeof c0<"u"?c0.exports=t():typeof define=="function"&&define.amd?define(t):(e=e||self,e.SweetScroll=t())})(l0,function(){"use strict";var e=function(){return e=Object.assign||function(S){for(var $,A=1,B=arguments.length;A<B;A++){$=arguments[A];for(var ue in $)Object.prototype.hasOwnProperty.call($,ue)&&(S[ue]=$[ue])}return S},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 I=!1;if(!t)return I;try{var S=window,$=Object.defineProperty({},"passive",{get:function(){I=!0}});S.addEventListener("test",null,$),S.removeEventListener("test",null,$)}catch{}return I})(),o=function(I){return typeof I=="string"},i=function(I){return typeof I=="function"},s=function(I){return Array.isArray(I)},a=function(I){return!s(I)&&I-parseFloat(I)+1>=0},l=function(I,S){return I&&I.hasOwnProperty(S)},c=t?window.requestAnimationFrame.bind(window):null,u=t?window.cancelAnimationFrame.bind(window):null,d=Math.cos,p=Math.sin,f=Math.pow,m=Math.sqrt,g=Math.PI,x={linear:function(I){return I},easeInQuad:function(I,S,$,A,B){return A*(S/=B)*S+$},easeOutQuad:function(I,S,$,A,B){return-A*(S/=B)*(S-2)+$},easeInOutQuad:function(I,S,$,A,B){return(S/=B/2)<1?A/2*S*S+$:-A/2*(--S*(S-2)-1)+$},easeInCubic:function(I,S,$,A,B){return A*(S/=B)*S*S+$},easeOutCubic:function(I,S,$,A,B){return A*((S=S/B-1)*S*S+1)+$},easeInOutCubic:function(I,S,$,A,B){return(S/=B/2)<1?A/2*S*S*S+$:A/2*((S-=2)*S*S+2)+$},easeInQuart:function(I,S,$,A,B){return A*(S/=B)*S*S*S+$},easeOutQuart:function(I,S,$,A,B){return-A*((S=S/B-1)*S*S*S-1)+$},easeInOutQuart:function(I,S,$,A,B){return(S/=B/2)<1?A/2*S*S*S*S+$:-A/2*((S-=2)*S*S*S-2)+$},easeInQuint:function(I,S,$,A,B){return A*(S/=B)*S*S*S*S+$},easeOutQuint:function(I,S,$,A,B){return A*((S=S/B-1)*S*S*S*S+1)+$},easeInOutQuint:function(I,S,$,A,B){return(S/=B/2)<1?A/2*S*S*S*S*S+$:A/2*((S-=2)*S*S*S*S+2)+$},easeInSine:function(I,S,$,A,B){return-A*d(S/B*(g/2))+A+$},easeOutSine:function(I,S,$,A,B){return A*p(S/B*(g/2))+$},easeInOutSine:function(I,S,$,A,B){return-A/2*(d(g*S/B)-1)+$},easeInExpo:function(I,S,$,A,B){return S===0?$:A*f(2,10*(S/B-1))+$},easeOutExpo:function(I,S,$,A,B){return S===B?$+A:A*(-f(2,-10*S/B)+1)+$},easeInOutExpo:function(I,S,$,A,B){return S===0?$:S===B?$+A:(S/=B/2)<1?A/2*f(2,10*(S-1))+$:A/2*(-f(2,-10*--S)+2)+$},easeInCirc:function(I,S,$,A,B){return-A*(m(1-(S/=B)*S)-1)+$},easeOutCirc:function(I,S,$,A,B){return A*m(1-(S=S/B-1)*S)+$},easeInOutCirc:function(I,S,$,A,B){return(S/=B/2)<1?-A/2*(m(1-S*S)-1)+$:A/2*(m(1-(S-=2)*S)+1)+$}},y=function(I){return Array.prototype.slice.call(I?document.querySelectorAll(I):[])},T=function(I){return y(I).shift()||null},D=function(I){return I instanceof Element},H=function(I){return I===window},j=function(I){return I===document.documentElement||I===document.body},M=function(I,S){if(D(S))return I===S;for(var $=y(S),A=$.length;--A>=0&&$[A]!==I;);return A>-1},U=function(I){return Math.max(I.scrollHeight,I.clientHeight,I.offsetHeight)},le=function(I){return Math.max(I.scrollWidth,I.clientWidth,I.offsetWidth)},ee=function(I){return{width:le(I),height:U(I)}},_=function(I){var S=H(I)||j(I);return{viewport:{width:S?Math.min(window.innerWidth,document.documentElement.clientWidth):I.clientWidth,height:S?window.innerHeight:I.clientHeight},size:S?{width:Math.max(le(document.body),le(document.documentElement)),height:Math.max(U(document.body),U(document.documentElement))}:ee(I)}},_e={y:"scrollTop",x:"scrollLeft"},Q={y:"pageYOffset",x:"pageXOffset"},L=function(I,S){return H(I)?I[Q[S]]:I[_e[S]]},F=function(I,S,$){if(H(I)){var A=$==="y";I.scrollTo(A?I.pageXOffset:S,A?S:I.pageYOffset)}else I[_e[$]]=S},z=function(I,S){var $=I.getBoundingClientRect();if($.width||$.height){var A={top:0,left:0},B=void 0;if(H(S)||j(S))B=document.documentElement,A.top=window[Q.y],A.left=window[Q.x];else{B=S;var ue=B.getBoundingClientRect();A.top=ue.top*-1+B[_e.y],A.left=ue.left*-1+B[_e.x]}return{top:$.top+A.top-B.clientTop,left:$.left+A.left-B.clientLeft}}return $},Y=(function(){return t?"onwheel"in document?"wheel":"mousewheel":"wheel"})(),re=function(I){return I==="wheel"?Y:I},ie=function(I,S,$,A,B){$.split(" ").forEach(function(ue){I[S](re(ue),A,n?{passive:B}:!1)})},we=function(I,S,$,A){return ie(I,"addEventListener",S,$,A)},w=function(I,S,$,A){return ie(I,"removeEventListener",S,$,A)},Ie=/^(\+|-)=(\d+(?:\.\d+)?)$/,Ne=function(I,S){var $={top:0,left:0,relative:!1};if(l(I,"top")||l(I,"left"))$=e({},$,I);else if(s(I))if(I.length>1)$.top=I[0],$.left=I[1];else if(I.length===1)$.top=S?I[0]:0,$.left=S?0:I[0];else return null;else if(a(I))S?$.top=I:$.left=I;else if(o(I)){var A=I.trim().match(Ie);if(!A)return null;var B=A[1],ue=parseInt(A[2],10);B==="+"?($.top=S?ue:0,$.left=S?0:ue):($.top=S?-ue:0,$.left=S?0:-ue),$.relative=!0}else return null;return $},k={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},Ke="click",gt="wheel touchstart touchmove",ur=(function(){function I(S,$){var A=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(ue){var Ge=A,qe=Ge.$el,Pe=Ge.ctx;if(Pe.start||(Pe.start=ue),!Pe.progress||!qe){A.stop();return}var nr=Pe.opts,Ct=Pe.pos,Vt=Pe.start,Fr=Pe.startPos,Gr=Pe.easing,dr=nr.duration,Sr={top:"y",left:"x"},or=ue-Vt,rt=Math.min(1,Math.max(or/dr,0));Object.keys(Ct).forEach(function(Qr){var P=Ct[Qr],W=Fr[Qr],me=P-W;if(me!==0){var Se=Gr(rt,dr*rt,0,1,dr);F(qe,Math.round(W+me*Se),Sr[Qr])}}),or<=dr?(A.hook(nr,"step",rt),Pe.id=I.raf(A.loop)):A.stop(!0)},this.handleClick=function(ue){for(var Ge=A.opts,qe=ue.target;qe&&qe!==document;qe=qe.parentNode)if(M(qe,Ge.trigger)){var Pe=JSON.parse(qe.getAttribute("data-scroll-options")||"{}"),nr=qe.getAttribute("data-scroll"),Ct=nr||qe.getAttribute("href"),Vt=e({},Ge,Pe),Fr=Vt.preventDefault,Gr=Vt.stopPropagation,dr=Vt.vertical,Sr=Vt.horizontal;Fr&&ue.preventDefault(),Gr&&ue.stopPropagation(),A.ctx.$trigger=qe,Sr&&dr?A.to(Ct,Vt):dr?A.toTop(Ct,Vt):Sr&&A.toLeft(Ct,Vt);break}},this.handleStop=function(ue){var Ge=A.ctx,qe=Ge.opts;qe&&qe.cancellable?(Ge.cancel=!0,A.stop()):ue.preventDefault()},this.opts=e({},k,S||{});var B=null;t&&(typeof $=="string"?B=T($):$!=null?B=$:B=window),this.$el=B,B&&this.bind(!0,!1)}return I.create=function(S,$){return new I(S,$)},I.prototype.to=function(S,$){if(t){var A=this,B=A.$el,ue=A.ctx,Ge=A.opts,qe=ue.$trigger,Pe=e({},Ge,$||{}),nr=Pe.offset,Ct=Pe.vertical,Vt=Pe.horizontal,Fr=D(Pe.header)?Pe.header:T(Pe.header),Gr=/^#/,dr=o(S)&&Gr.test(S)?S:null;if(ue.opts=Pe,ue.cancel=!1,ue.hash=dr,this.stop(),!!B){var Sr=Ne(nr,Ct),or=Ne(S,Ct),rt={top:0,left:0};if(or)if(or.relative){var Qr=L(B,Ct?"y":"x");rt.top=Ct?Qr+or.top:or.top,rt.left=Ct?or.left:Qr+or.left}else rt=or;else if(o(S)&&S!=="#"){var P=T(S);if(!P)return;rt=z(P,B)}Sr&&(rt.top+=Sr.top,rt.left+=Sr.left),Fr&&(rt.top=Math.max(0,rt.top-ee(Fr).height));var W=_(B),me=W.viewport,Se=W.size;if(rt.top=Ct?Math.max(0,Math.min(Se.height-me.height,rt.top)):L(B,"y"),rt.left=Vt?Math.max(0,Math.min(Se.width-me.width,rt.left)):L(B,"x"),this.hook(Pe,"before",rt,qe)===!1){ue.opts=null;return}ue.pos=rt,this.start(Pe),this.bind(!1,!0)}}},I.prototype.toTop=function(S,$){this.to(S,e({},$||{},{vertical:!0,horizontal:!1}))},I.prototype.toLeft=function(S,$){this.to(S,e({},$||{},{vertical:!1,horizontal:!0}))},I.prototype.toElement=function(S,$){var A=this.$el;!t||!A||this.to(z(S,A),$||{})},I.prototype.stop=function(S){S===void 0&&(S=!1);var $=this,A=$.$el,B=$.ctx,ue=B.pos;!A||!B.progress||(I.caf(B.id),B.progress=!1,B.start=0,B.id=0,S&&ue&&(F(A,ue.left,"x"),F(A,ue.top,"y")),this.complete())},I.prototype.update=function(S){if(this.$el){var $=e({},this.opts,S);this.stop(),this.unbind(!0,!0),this.opts=$,this.bind(!0,!1)}},I.prototype.destroy=function(){this.$el&&(this.stop(),this.unbind(!0,!0),this.$el=null)},I.prototype.onBefore=function(S,$){return!0},I.prototype.onStep=function(S){},I.prototype.onAfter=function(S,$){},I.prototype.onCancel=function(){},I.prototype.onComplete=function(S){},I.prototype.start=function(S){var $=this.ctx;$.opts=S,$.progress=!0,$.easing=i(S.easing)?S.easing:x[S.easing];var A=this.$el,B={top:L(A,"y"),left:L(A,"x")};$.startPos=B,$.id=I.raf(this.loop)},I.prototype.complete=function(){var S=this,$=S.$el,A=S.ctx,B=A.hash,ue=A.cancel,Ge=A.opts,qe=A.pos,Pe=A.$trigger;if(!(!$||!Ge)){if(B!=null&&B!==window.location.hash){var nr=Ge.updateURL;t&&r&&nr!==!1&&window.history[nr==="replace"?"replaceState":"pushState"](null,"",B)}this.unbind(!1,!0),A.opts=null,A.$trigger=null,ue?this.hook(Ge,"cancel"):this.hook(Ge,"after",qe,Pe),this.hook(Ge,"complete",ue)}},I.prototype.hook=function(S,$){for(var A=[],B=2;B<arguments.length;B++)A[B-2]=arguments[B];var ue,Ge=S[$],qe,Pe;return i(Ge)&&(qe=Ge.apply(this,A.concat([this]))),Pe=(ue=this)["on"+($[0].toUpperCase()+$.slice(1))].apply(ue,A),qe!==void 0?qe:Pe},I.prototype.bind=function(S,$){var A=this,B=A.$el,ue=A.ctx.opts;B&&(S&&we(B,Ke,this.handleClick,!1),$&&we(B,gt,this.handleStop,ue?ue.cancellable:!0))},I.prototype.unbind=function(S,$){var A=this,B=A.$el,ue=A.ctx.opts;B&&(S&&w(B,Ke,this.handleClick,!1),$&&w(B,gt,this.handleStop,ue?ue.cancellable:!0))},I.raf=c,I.caf=u,I})();return ur})});var Ul=globalThis,la=Ul.ShadowRoot&&(Ul.ShadyCSS===void 0||Ul.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Tf=Symbol(),kb=new WeakMap,Hi=class{constructor(t,r,n){if(this._$cssResult$=!0,n!==Tf)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=r}get styleSheet(){let t=this.o,r=this.t;if(la&&t===void 0){let n=r!==void 0&&r.length===1;n&&(t=kb.get(r)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),n&&kb.set(r,t))}return t}toString(){return this.cssText}},h=e=>new Hi(typeof e=="string"?e:e+"",void 0,Tf),Oe=(e,...t)=>{let r=e.length===1?e[0]:t.reduce(((n,o,i)=>n+(s=>{if(s._$cssResult$===!0)return s.cssText;if(typeof s=="number")return s;throw Error("Value passed to 'css' function must be a 'css' function result: "+s+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(o)+e[i+1]),e[0]);return new Hi(r,e,Tf)},jl=(e,t)=>{if(la)e.adoptedStyleSheets=t.map((r=>r instanceof CSSStyleSheet?r:r.styleSheet));else for(let r of t){let n=document.createElement("style"),o=Ul.litNonce;o!==void 0&&n.setAttribute("nonce",o),n.textContent=r.cssText,e.appendChild(n)}},ca=la?e=>e:e=>e instanceof CSSStyleSheet?(t=>{let r="";for(let n of t.cssRules)r+=n.cssText;return h(r)})(e):e;var{is:yA,defineProperty:bA,getOwnPropertyDescriptor:vA,getOwnPropertyNames:wA,getOwnPropertySymbols:SA,getPrototypeOf:kA}=Object,ql=globalThis,Tb=ql.trustedTypes,TA=Tb?Tb.emptyScript:"",DA=ql.reactiveElementPolyfillSupport,ua=(e,t)=>e,Ui={toAttribute(e,t){switch(t){case Boolean:e=e?TA:null;break;case Object:case Array:e=e==null?e:JSON.stringify(e)}return e},fromAttribute(e,t){let r=e;switch(t){case Boolean:r=e!==null;break;case Number:r=e===null?null:Number(e);break;case Object:case Array:try{r=JSON.parse(e)}catch{r=null}}return r}},da=(e,t)=>!yA(e,t),Db={attribute:!0,type:String,converter:Ui,reflect:!1,useDefault:!1,hasChanged:da};Symbol.metadata??=Symbol("metadata"),ql.litPropertyMetadata??=new WeakMap;var Kr=class extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,r=Db){if(r.state&&(r.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(t)&&((r=Object.create(r)).wrapped=!0),this.elementProperties.set(t,r),!r.noAccessor){let n=Symbol(),o=this.getPropertyDescriptor(t,n,r);o!==void 0&&bA(this.prototype,t,o)}}static getPropertyDescriptor(t,r,n){let{get:o,set:i}=vA(this.prototype,t)??{get(){return this[r]},set(s){this[r]=s}};return{get:o,set(s){let a=o?.call(this);i?.call(this,s),this.requestUpdate(t,a,n)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??Db}static _$Ei(){if(this.hasOwnProperty(ua("elementProperties")))return;let t=kA(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(ua("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(ua("properties"))){let r=this.properties,n=[...wA(r),...SA(r)];for(let o of n)this.createProperty(o,r[o])}let t=this[Symbol.metadata];if(t!==null){let r=litPropertyMetadata.get(t);if(r!==void 0)for(let[n,o]of r)this.elementProperties.set(n,o)}this._$Eh=new Map;for(let[r,n]of this.elementProperties){let o=this._$Eu(r,n);o!==void 0&&this._$Eh.set(o,r)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){let r=[];if(Array.isArray(t)){let n=new Set(t.flat(1/0).reverse());for(let o of n)r.unshift(ca(o))}else t!==void 0&&r.push(ca(t));return r}static _$Eu(t,r){let n=r.attribute;return n===!1?void 0:typeof n=="string"?n:typeof t=="string"?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach((t=>t(this)))}addController(t){(this._$EO??=new Set).add(t),this.renderRoot!==void 0&&this.isConnected&&t.hostConnected?.()}removeController(t){this._$EO?.delete(t)}_$E_(){let t=new Map,r=this.constructor.elementProperties;for(let n of r.keys())this.hasOwnProperty(n)&&(t.set(n,this[n]),delete this[n]);t.size>0&&(this._$Ep=t)}createRenderRoot(){let t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return jl(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach((t=>t.hostConnected?.()))}enableUpdating(t){}disconnectedCallback(){this._$EO?.forEach((t=>t.hostDisconnected?.()))}attributeChangedCallback(t,r,n){this._$AK(t,n)}_$ET(t,r){let n=this.constructor.elementProperties.get(t),o=this.constructor._$Eu(t,n);if(o!==void 0&&n.reflect===!0){let i=(n.converter?.toAttribute!==void 0?n.converter:Ui).toAttribute(r,n.type);this._$Em=t,i==null?this.removeAttribute(o):this.setAttribute(o,i),this._$Em=null}}_$AK(t,r){let n=this.constructor,o=n._$Eh.get(t);if(o!==void 0&&this._$Em!==o){let i=n.getPropertyOptions(o),s=typeof i.converter=="function"?{fromAttribute:i.converter}:i.converter?.fromAttribute!==void 0?i.converter:Ui;this._$Em=o;let a=s.fromAttribute(r,i.type);this[o]=a??this._$Ej?.get(o)??a,this._$Em=null}}requestUpdate(t,r,n){if(t!==void 0){let o=this.constructor,i=this[t];if(n??=o.getPropertyOptions(t),!((n.hasChanged??da)(i,r)||n.useDefault&&n.reflect&&i===this._$Ej?.get(t)&&!this.hasAttribute(o._$Eu(t,n))))return;this.C(t,r,n)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(t,r,{useDefault:n,reflect:o,wrapped:i},s){n&&!(this._$Ej??=new Map).has(t)&&(this._$Ej.set(t,s??r??this[t]),i!==!0||s!==void 0)||(this._$AL.has(t)||(this.hasUpdated||n||(r=void 0),this._$AL.set(t,r)),o===!0&&this._$Em!==t&&(this._$Eq??=new Set).add(t))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(r){Promise.reject(r)}let t=this.scheduleUpdate();return t!=null&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(let[o,i]of this._$Ep)this[o]=i;this._$Ep=void 0}let n=this.constructor.elementProperties;if(n.size>0)for(let[o,i]of n){let{wrapped:s}=i,a=this[o];s!==!0||this._$AL.has(o)||a===void 0||this.C(o,void 0,i,a)}}let t=!1,r=this._$AL;try{t=this.shouldUpdate(r),t?(this.willUpdate(r),this._$EO?.forEach((n=>n.hostUpdate?.())),this.update(r)):this._$EM()}catch(n){throw t=!1,this._$EM(),n}t&&this._$AE(r)}willUpdate(t){}_$AE(t){this._$EO?.forEach((r=>r.hostUpdated?.())),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Eq&&=this._$Eq.forEach((r=>this._$ET(r,this[r]))),this._$EM()}updated(t){}firstUpdated(t){}};Kr.elementStyles=[],Kr.shadowRootOptions={mode:"open"},Kr[ua("elementProperties")]=new Map,Kr[ua("finalized")]=new Map,DA?.({ReactiveElement:Kr}),(ql.reactiveElementVersions??=[]).push("2.1.1");var Df=globalThis,Yl=Df.trustedTypes,Cb=Yl?Yl.createPolicy("lit-html",{createHTML:e=>e}):void 0,Cf="$lit$",En=`lit$${Math.random().toFixed(9).slice(2)}$`,Ef="?"+En,CA=`<${Ef}>`,No=document,pa=()=>No.createComment(""),fa=e=>e===null||typeof e!="object"&&typeof e!="function",Mf=Array.isArray,Eb=e=>Mf(e)||typeof e?.[Symbol.iterator]=="function",If=`[
|
|
31
|
+
\f\r]`,ma=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Mb=/-->/g,Ib=/>/g,Po=RegExp(`>|${If}(?:([^\\s"'>=/]+)(${If}*=${If}*(?:[^
|
|
32
|
+
\f\r"'\`<>=]|("|')|))|$)`,"g"),$b=/'/g,Ab=/"/g,_b=/^(?:script|style|textarea|title)$/i,$f=e=>(t,...r)=>({_$litType$:e,strings:t,values:r}),O=$f(1),Af=$f(2),_f=$f(3),tt=Symbol.for("lit-noChange"),nt=Symbol.for("lit-nothing"),Ob=new WeakMap,Fo=No.createTreeWalker(No,129);function Lb(e,t){if(!Mf(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return Cb!==void 0?Cb.createHTML(t):t}var Nb=(e,t)=>{let r=e.length-1,n=[],o,i=t===2?"<svg>":t===3?"<math>":"",s=ma;for(let a=0;a<r;a++){let l=e[a],c,u,d=-1,p=0;for(;p<l.length&&(s.lastIndex=p,u=s.exec(l),u!==null);)p=s.lastIndex,s===ma?u[1]==="!--"?s=Mb:u[1]!==void 0?s=Ib:u[2]!==void 0?(_b.test(u[2])&&(o=RegExp("</"+u[2],"g")),s=Po):u[3]!==void 0&&(s=Po):s===Po?u[0]===">"?(s=o??ma,d=-1):u[1]===void 0?d=-2:(d=s.lastIndex-u[2].length,c=u[1],s=u[3]===void 0?Po:u[3]==='"'?Ab:$b):s===Ab||s===$b?s=Po:s===Mb||s===Ib?s=ma:(s=Po,o=void 0);let f=s===Po&&e[a+1].startsWith("/>")?" ":"";i+=s===ma?l+CA:d>=0?(n.push(c),l.slice(0,d)+Cf+l.slice(d)+En+f):l+En+(d===-2?a:f)}return[Lb(e,i+(e[r]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),n]},ha=class e{constructor({strings:t,_$litType$:r},n){let o;this.parts=[];let i=0,s=0,a=t.length-1,l=this.parts,[c,u]=Nb(t,r);if(this.el=e.createElement(c,n),Fo.currentNode=this.el.content,r===2||r===3){let d=this.el.content.firstChild;d.replaceWith(...d.childNodes)}for(;(o=Fo.nextNode())!==null&&l.length<a;){if(o.nodeType===1){if(o.hasAttributes())for(let d of o.getAttributeNames())if(d.endsWith(Cf)){let p=u[s++],f=o.getAttribute(d).split(En),m=/([.?@])?(.*)/.exec(p);l.push({type:1,index:i,name:m[2],strings:f,ctor:m[1]==="."?Vl:m[1]==="?"?Gl:m[1]==="@"?Ql:Bo}),o.removeAttribute(d)}else d.startsWith(En)&&(l.push({type:6,index:i}),o.removeAttribute(d));if(_b.test(o.tagName)){let d=o.textContent.split(En),p=d.length-1;if(p>0){o.textContent=Yl?Yl.emptyScript:"";for(let f=0;f<p;f++)o.append(d[f],pa()),Fo.nextNode(),l.push({type:2,index:++i});o.append(d[p],pa())}}}else if(o.nodeType===8)if(o.data===Ef)l.push({type:2,index:i});else{let d=-1;for(;(d=o.data.indexOf(En,d+1))!==-1;)l.push({type:7,index:i}),d+=En.length-1}i++}}static createElement(t,r){let n=No.createElement("template");return n.innerHTML=t,n}};function Ro(e,t,r=e,n){if(t===tt)return t;let o=n!==void 0?r._$Co?.[n]:r._$Cl,i=fa(t)?void 0:t._$litDirective$;return o?.constructor!==i&&(o?._$AO?.(!1),i===void 0?o=void 0:(o=new i(e),o._$AT(e,r,n)),n!==void 0?(r._$Co??=[])[n]=o:r._$Cl=o),o!==void 0&&(t=Ro(e,o._$AS(e,t.values),o,n)),t}var Wl=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,o=(t?.creationScope??No).importNode(r,!0);Fo.currentNode=o;let i=Fo.nextNode(),s=0,a=0,l=n[0];for(;l!==void 0;){if(s===l.index){let c;l.type===2?c=new ji(i,i.nextSibling,this,t):l.type===1?c=new l.ctor(i,l.name,l.strings,this,t):l.type===6&&(c=new Xl(i,this,t)),this._$AV.push(c),l=n[++a]}s!==l?.index&&(i=Fo.nextNode(),s++)}return Fo.currentNode=No,o}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++}},ji=class e{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,r,n,o){this.type=2,this._$AH=nt,this._$AN=void 0,this._$AA=t,this._$AB=r,this._$AM=n,this.options=o,this._$Cv=o?.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=Ro(this,t,r),fa(t)?t===nt||t==null||t===""?(this._$AH!==nt&&this._$AR(),this._$AH=nt):t!==this._$AH&&t!==tt&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):Eb(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!==nt&&fa(this._$AH)?this._$AA.nextSibling.data=t:this.T(No.createTextNode(t)),this._$AH=t}$(t){let{values:r,_$litType$:n}=t,o=typeof n=="number"?this._$AC(t):(n.el===void 0&&(n.el=ha.createElement(Lb(n.h,n.h[0]),this.options)),n);if(this._$AH?._$AD===o)this._$AH.p(r);else{let i=new Wl(o,this),s=i.u(this.options);i.p(r),this.T(s),this._$AH=i}}_$AC(t){let r=Ob.get(t.strings);return r===void 0&&Ob.set(t.strings,r=new ha(t)),r}k(t){Mf(this._$AH)||(this._$AH=[],this._$AR());let r=this._$AH,n,o=0;for(let i of t)o===r.length?r.push(n=new e(this.O(pa()),this.O(pa()),this,this.options)):n=r[o],n._$AI(i),o++;o<r.length&&(this._$AR(n&&n._$AB.nextSibling,o),r.length=o)}_$AR(t=this._$AA.nextSibling,r){for(this._$AP?.(!1,!0,r);t!==this._$AB;){let n=t.nextSibling;t.remove(),t=n}}setConnected(t){this._$AM===void 0&&(this._$Cv=t,this._$AP?.(t))}},Bo=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,r,n,o,i){this.type=1,this._$AH=nt,this._$AN=void 0,this.element=t,this.name=r,this._$AM=o,this.options=i,n.length>2||n[0]!==""||n[1]!==""?(this._$AH=Array(n.length-1).fill(new String),this.strings=n):this._$AH=nt}_$AI(t,r=this,n,o){let i=this.strings,s=!1;if(i===void 0)t=Ro(this,t,r,0),s=!fa(t)||t!==this._$AH&&t!==tt,s&&(this._$AH=t);else{let a=t,l,c;for(t=i[0],l=0;l<i.length-1;l++)c=Ro(this,a[n+l],r,l),c===tt&&(c=this._$AH[l]),s||=!fa(c)||c!==this._$AH[l],c===nt?t=nt:t!==nt&&(t+=(c??"")+i[l+1]),this._$AH[l]=c}s&&!o&&this.j(t)}j(t){t===nt?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},Vl=class extends Bo{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===nt?void 0:t}},Gl=class extends Bo{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==nt)}},Ql=class extends Bo{constructor(t,r,n,o,i){super(t,r,n,o,i),this.type=5}_$AI(t,r=this){if((t=Ro(this,t,r,0)??nt)===tt)return;let n=this._$AH,o=t===nt&&n!==nt||t.capture!==n.capture||t.once!==n.once||t.passive!==n.passive,i=t!==nt&&(n===nt||o);o&&this.element.removeEventListener(this.name,this,n),i&&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)}},Xl=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){Ro(this,t)}},Of={M:Cf,P:En,A:Ef,C:1,L:Nb,R:Wl,D:Eb,V:Ro,I:ji,H:Bo,N:Gl,U:Ql,B:Vl,F:Xl},EA=Df.litHtmlPolyfillSupport;EA?.(ha,ji),(Df.litHtmlVersions??=[]).push("3.3.1");var Jl=(e,t,r)=>{let n=r?.renderBefore??t,o=n._$litPart$;if(o===void 0){let i=r?.renderBefore??null;n._$litPart$=o=new ji(t.insertBefore(pa(),i),i,void 0,r??{})}return o._$AI(e),o};var Lf=globalThis,Mn=class extends Kr{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=Jl(r,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return tt}};Mn._$litElement$=!0,Mn.finalized=!0,Lf.litElementHydrateSupport?.({LitElement:Mn});var MA=Lf.litElementPolyfillSupport;MA?.({LitElement:Mn});var IA={_$AK:(e,t,r)=>{e._$AK(t,r)},_$AL:e=>e._$AL};(Lf.litElementVersions??=[]).push("4.2.1");var $A=!1;var Ee={};he(Ee,{ObservableIntake:()=>om,Observablemap:()=>nm,fromStreamWithBackpressure:()=>hL,rxjs:()=>Xi});var fe={};he(fe,{CumulativeDeferred:()=>tc,Deferred:()=>ec,cumulativeDefer:()=>_A,defer:()=>qi,fromCallback:()=>RA,getFirstTrueOrFalse:()=>FA,map:()=>NA,rejectedPromise:()=>LA,resolvedPromise:()=>OA,timeoutAndContinue:()=>PA,timeoutWrap:()=>Pb});var ec=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"})}},qi=()=>new ec;var tc=class{constructor(){this.accumulatedPromises=[],this.deferred=qi(),this.promise=this.deferred.promise,setTimeout(async()=>{for(;this.accumulatedPromises.length>0;)await this.accumulatedPromises.shift();this.deferred.resolve()},0)}subDefer(){let t=qi();return this.addPromise(t.promise),t}addPromise(t){this.accumulatedPromises.push(t)}},_A=()=>new tc;var OA=e=>Promise.resolve(e),LA=e=>Promise.reject(e),NA=async(e,t)=>{let r=[],n=[];for(let o of e){let i=t(o);r.push(i),i.then(s=>{n.push(s)})}return await Promise.all(r),n},Pb=async(e,t,r=!0)=>new Promise((n,o)=>{setTimeout(()=>{r?o(new Error("timeout")):n(null)},t),e.then(n,o)}),PA=async(e,t=6e4)=>Pb(e,t,!1),FA=async e=>{let t=qi();for(let r of e)r.then(n=>{n===!0&&t.resolve(!0)});return Promise.all(e).then(()=>{t.resolve(!1)}),t.promise},RA=e=>new Promise((t,r)=>{e((n,o)=>{n?r(n):t(o)})});var Xi={};he(Xi,{Observable:()=>je,ReplaySubject:()=>sc,Subject:()=>tn,Subscription:()=>ir,from:()=>jo,fromEvent:()=>Yo,of:()=>tm,ops:()=>mL});var Nf=function(e,t){return Nf=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(r[o]=n[o])},Nf(e,t)};function Ot(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Nf(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var Pf=function(){return Pf=Object.assign||function(t){for(var r,n=1,o=arguments.length;n<o;n++){r=arguments[n];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(t[i]=r[i])}return t},Pf.apply(this,arguments)};function zA(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r}function HA(e,t,r,n){var o=arguments.length,i=o<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(i=(o<3?s(i):o>3?s(t,r,i):s(t,r))||i);return o>3&&i&&Object.defineProperty(t,r,i),i}function UA(e,t){return function(r,n){t(r,n,e)}}function jA(e,t,r,n,o,i){function s(y){if(y!==void 0&&typeof y!="function")throw new TypeError("Function expected");return y}for(var a=n.kind,l=a==="getter"?"get":a==="setter"?"set":"value",c=!t&&e?n.static?e:e.prototype:null,u=t||(c?Object.getOwnPropertyDescriptor(c,n.name):{}),d,p=!1,f=r.length-1;f>=0;f--){var m={};for(var g in n)m[g]=g==="access"?{}:n[g];for(var g in n.access)m.access[g]=n.access[g];m.addInitializer=function(y){if(p)throw new TypeError("Cannot add initializers after decoration has completed");i.push(s(y||null))};var x=(0,r[f])(a==="accessor"?{get:u.get,set:u.set}:u[l],m);if(a==="accessor"){if(x===void 0)continue;if(x===null||typeof x!="object")throw new TypeError("Object expected");(d=s(x.get))&&(u.get=d),(d=s(x.set))&&(u.set=d),(d=s(x.init))&&o.unshift(d)}else(d=s(x))&&(a==="field"?o.unshift(d):u[l]=d)}c&&Object.defineProperty(c,n.name,u),p=!0}function qA(e,t,r){for(var n=arguments.length>2,o=0;o<t.length;o++)r=n?t[o].call(e,r):t[o].call(e);return n?r:void 0}function YA(e){return typeof e=="symbol"?e:"".concat(e)}function WA(e,t,r){return typeof t=="symbol"&&(t=t.description?"[".concat(t.description,"]"):""),Object.defineProperty(e,"name",{configurable:!0,value:r?"".concat(r," ",t):t})}function VA(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}function Bf(e,t,r,n){function o(i){return i instanceof r?i:new r(function(s){s(i)})}return new(r||(r=Promise))(function(i,s){function a(u){try{c(n.next(u))}catch(d){s(d)}}function l(u){try{c(n.throw(u))}catch(d){s(d)}}function c(u){u.done?i(u.value):o(u.value).then(a,l)}c((n=n.apply(e,t||[])).next())})}function ga(e,t){var r={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,o,i,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(c){return function(u){return l([c,u])}}function l(c){if(n)throw new TypeError("Generator is already executing.");for(;s&&(s=0,c[0]&&(r=0)),r;)try{if(n=1,o&&(i=c[0]&2?o.return:c[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,c[1])).done)return i;switch(o=0,i&&(c=[c[0]&2,i.value]),c[0]){case 0:case 1:i=c;break;case 4:return r.label++,{value:c[1],done:!1};case 5:r.label++,o=c[1],c=[0];continue;case 7:c=r.ops.pop(),r.trys.pop();continue;default:if(i=r.trys,!(i=i.length>0&&i[i.length-1])&&(c[0]===6||c[0]===2)){r=0;continue}if(c[0]===3&&(!i||c[1]>i[0]&&c[1]<i[3])){r.label=c[1];break}if(c[0]===6&&r.label<i[1]){r.label=i[1],i=c;break}if(i&&r.label<i[2]){r.label=i[2],r.ops.push(c);break}i[2]&&r.ops.pop(),r.trys.pop();continue}c=t.call(e,r)}catch(u){c=[6,u],o=0}finally{n=i=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}var Ff=Object.create?(function(e,t,r,n){n===void 0&&(n=r);var o=Object.getOwnPropertyDescriptor(t,r);(!o||("get"in o?!t.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,o)}):(function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]});function GA(e,t){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&Ff(t,e,r)}function Pt(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 Xt(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),o,i=[],s;try{for(;(t===void 0||t-- >0)&&!(o=n.next()).done;)i.push(o.value)}catch(a){s={error:a}}finally{try{o&&!o.done&&(r=n.return)&&r.call(n)}finally{if(s)throw s.error}}return i}function QA(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(Xt(arguments[t]));return e}function XA(){for(var e=0,t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;for(var n=Array(e),o=0,t=0;t<r;t++)for(var i=arguments[t],s=0,a=i.length;s<a;s++,o++)n[o]=i[s];return n}function Tr(e,t,r){if(r||arguments.length===2)for(var n=0,o=t.length,i;n<o;n++)(i||!(n in t))&&(i||(i=Array.prototype.slice.call(t,0,n)),i[n]=t[n]);return e.concat(i||Array.prototype.slice.call(t))}function In(e){return this instanceof In?(this.v=e,this):new In(e)}function zf(e,t,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=r.apply(e,t||[]),o,i=[];return o=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),a("next"),a("throw"),a("return",s),o[Symbol.asyncIterator]=function(){return this},o;function s(f){return function(m){return Promise.resolve(m).then(f,d)}}function a(f,m){n[f]&&(o[f]=function(g){return new Promise(function(x,y){i.push([f,g,x,y])>1||l(f,g)})},m&&(o[f]=m(o[f])))}function l(f,m){try{c(n[f](m))}catch(g){p(i[0][3],g)}}function c(f){f.value instanceof In?Promise.resolve(f.value.v).then(u,d):p(i[0][2],f)}function u(f){l("next",f)}function d(f){l("throw",f)}function p(f,m){f(m),i.shift(),i.length&&l(i[0][0],i[0][1])}}function JA(e){var t,r;return t={},n("next"),n("throw",function(o){throw o}),n("return"),t[Symbol.iterator]=function(){return this},t;function n(o,i){t[o]=e[o]?function(s){return(r=!r)?{value:In(e[o](s)),done:!1}:i?i(s):s}:i}}function Hf(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 Pt=="function"?Pt(e):e[Symbol.iterator](),r={},n("next"),n("throw"),n("return"),r[Symbol.asyncIterator]=function(){return this},r);function n(i){r[i]=e[i]&&function(s){return new Promise(function(a,l){s=e[i](s),o(a,l,s.done,s.value)})}}function o(i,s,a,l){Promise.resolve(l).then(function(c){i({value:c,done:a})},s)}}function ZA(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}var KA=Object.create?(function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}):function(e,t){e.default=t},Rf=function(e){return Rf=Object.getOwnPropertyNames||function(t){var r=[];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(r[r.length]=n);return r},Rf(e)};function e_(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r=Rf(e),n=0;n<r.length;n++)r[n]!=="default"&&Ff(t,e,r[n]);return KA(t,e),t}function t_(e){return e&&e.__esModule?e:{default:e}}function r_(e,t,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(e):n?n.value:t.get(e)}function n_(e,t,r,n,o){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!o)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!o:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?o.call(e,r):o?o.value=r:t.set(e,r),r}function o_(e,t){if(t===null||typeof t!="object"&&typeof t!="function")throw new TypeError("Cannot use 'in' operator on non-object");return typeof e=="function"?t===e:e.has(t)}function i_(e,t,r){if(t!=null){if(typeof t!="object"&&typeof t!="function")throw new TypeError("Object expected.");var n,o;if(r){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");n=t[Symbol.asyncDispose]}if(n===void 0){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");n=t[Symbol.dispose],r&&(o=n)}if(typeof n!="function")throw new TypeError("Object not disposable.");o&&(n=function(){try{o.call(this)}catch(i){return Promise.reject(i)}}),e.stack.push({value:t,dispose:n,async:r})}else r&&e.stack.push({async:!0});return t}var s_=typeof SuppressedError=="function"?SuppressedError:function(e,t,r){var n=new Error(r);return n.name="SuppressedError",n.error=e,n.suppressed=t,n};function a_(e){function t(i){e.error=e.hasError?new s_(i,e.error,"An error was suppressed during disposal."):i,e.hasError=!0}var r,n=0;function o(){for(;r=e.stack.pop();)try{if(!r.async&&n===1)return n=0,e.stack.push(r),Promise.resolve().then(o);if(r.dispose){var i=r.dispose.call(r.value);if(r.async)return n|=2,Promise.resolve(i).then(o,function(s){return t(s),o()})}else n|=1}catch(s){t(s)}if(n===1)return e.hasError?Promise.reject(e.error):Promise.resolve();if(e.hasError)throw e.error}return o()}function l_(e,t){return typeof e=="string"&&/^\.\.?\//.test(e)?e.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+?)?)\.([cm]?)ts$/i,function(r,n,o,i,s){return n?t?".jsx":".js":o&&(!i||!s)?r:o+i+"."+s.toLowerCase()+"js"}):e}var P7={__extends:Ot,__assign:Pf,__rest:zA,__decorate:HA,__param:UA,__esDecorate:jA,__runInitializers:qA,__propKey:YA,__setFunctionName:WA,__metadata:VA,__awaiter:Bf,__generator:ga,__createBinding:Ff,__exportStar:GA,__values:Pt,__read:Xt,__spread:QA,__spreadArrays:XA,__spreadArray:Tr,__await:In,__asyncGenerator:zf,__asyncDelegator:JA,__asyncValues:Hf,__makeTemplateObject:ZA,__importStar:e_,__importDefault:t_,__classPrivateFieldGet:r_,__classPrivateFieldSet:n_,__classPrivateFieldIn:o_,__addDisposableResource:i_,__disposeResources:a_,__rewriteRelativeImportExtension:l_};function ke(e){return typeof e=="function"}function rc(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 xa=rc(function(e){return function(r){e(this),this.message=r?r.length+` errors occurred during unsubscription:
|
|
33
33
|
`+r.map(function(n,o){return o+1+") "+n.toString()}).join(`
|
|
34
|
-
`):"",this.name="UnsubscriptionError",this.errors=r}});function zr(e,t){if(e){var r=e.indexOf(t);0<=r&&e.splice(r,1)}}var ir=(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,o,i;if(!this.closed){this.closed=!0;var s=this._parentage;if(s)if(this._parentage=null,Array.isArray(s))try{for(var a=Pt(s),l=a.next();!l.done;l=a.next()){var c=l.value;c.remove(this)}}catch(g){t={error:g}}finally{try{l&&!l.done&&(r=a.return)&&r.call(a)}finally{if(t)throw t.error}}else s.remove(this);var u=this.initialTeardown;if(ke(u))try{u()}catch(g){i=g instanceof xa?g.errors:[g]}var d=this._finalizers;if(d){this._finalizers=null;try{for(var p=Pt(d),f=p.next();!f.done;f=p.next()){var m=f.value;try{Fb(m)}catch(g){i=i??[],g instanceof xa?i=Tr(Tr([],Xt(i)),Xt(g.errors)):i.push(g)}}}catch(g){n={error:g}}finally{try{f&&!f.done&&(o=p.return)&&o.call(p)}finally{if(n)throw n.error}}}if(i)throw new xa(i)}},e.prototype.add=function(t){var r;if(t&&t!==this)if(this.closed)Fb(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)&&zr(r,t)},e.prototype.remove=function(t){var r=this._finalizers;r&&zr(r,t),t instanceof e&&t._removeParent(this)},e.EMPTY=(function(){var t=new e;return t.closed=!0,t})(),e})(),jf=ir.EMPTY;function nc(e){return e instanceof ir||e&&"closed"in e&&ke(e.remove)&&ke(e.add)&&ke(e.unsubscribe)}function Fb(e){ke(e)?e():e.unsubscribe()}var Dr={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};var qi={setTimeout:function(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var o=qi.delegate;return o?.setTimeout?o.setTimeout.apply(o,Tr([e,t],Xt(r))):setTimeout.apply(void 0,Tr([e,t],Xt(r)))},clearTimeout:function(e){var t=qi.delegate;return(t?.clearTimeout||clearTimeout)(e)},delegate:void 0};function oc(e){qi.setTimeout(function(){var t=Dr.onUnhandledError;if(t)t(e);else throw e})}function en(){}var Rb=(function(){return qf("C",void 0,void 0)})();function Bb(e){return qf("E",void 0,e)}function zb(e){return qf("N",e,void 0)}function qf(e,t,r){return{kind:e,value:t,error:r}}var Bo=null;function Yi(e){if(Dr.useDeprecatedSynchronousErrorHandling){var t=!Bo;if(t&&(Bo={errorThrown:!1,error:null}),e(),t){var r=Bo,n=r.errorThrown,o=r.error;if(Bo=null,n)throw o}}else e()}function Hb(e){Dr.useDeprecatedSynchronousErrorHandling&&Bo&&(Bo.errorThrown=!0,Bo.error=e)}var zo=(function(e){Ot(t,e);function t(r){var n=e.call(this)||this;return n.isStopped=!1,r?(n.destination=r,nc(r)&&r.add(n)):n.destination=f_,n}return t.create=function(r,n,o){return new ya(r,n,o)},t.prototype.next=function(r){this.isStopped?Wf(zb(r),this):this._next(r)},t.prototype.error=function(r){this.isStopped?Wf(Bb(r),this):(this.isStopped=!0,this._error(r))},t.prototype.complete=function(){this.isStopped?Wf(Rb,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})(ir),u_=Function.prototype.bind;function Yf(e,t){return u_.call(e,t)}var d_=(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){ic(n)}},e.prototype.error=function(t){var r=this.partialObserver;if(r.error)try{r.error(t)}catch(n){ic(n)}else ic(t)},e.prototype.complete=function(){var t=this.partialObserver;if(t.complete)try{t.complete()}catch(r){ic(r)}},e})(),ya=(function(e){Ot(t,e);function t(r,n,o){var i=e.call(this)||this,s;if(ke(r)||!r)s={next:r??void 0,error:n??void 0,complete:o??void 0};else{var a;i&&Dr.useDeprecatedNextContext?(a=Object.create(r),a.unsubscribe=function(){return i.unsubscribe()},s={next:r.next&&Yf(r.next,a),error:r.error&&Yf(r.error,a),complete:r.complete&&Yf(r.complete,a)}):s=r}return i.destination=new d_(s),i}return t})(zo);function ic(e){Dr.useDeprecatedSynchronousErrorHandling?Hb(e):oc(e)}function p_(e){throw e}function Wf(e,t){var r=Dr.onStoppedNotification;r&&qi.setTimeout(function(){return r(e,t)})}var f_={closed:!0,next:en,error:p_,complete:en};var Ho=(function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"})();function ba(e){return e}function m_(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return Vf(e)}function Vf(e){return e.length===0?ba:e.length===1?e[0]:function(r){return e.reduce(function(n,o){return o(n)},r)}}var je=(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 o=this,i=g_(t)?t:new ya(t,r,n);return Yi(function(){var s=o,a=s.operator,l=s.source;i.add(a?a.call(i,l):l?o._subscribe(i):o._trySubscribe(i))}),i},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=Ub(r),new r(function(o,i){var s=new ya({next:function(a){try{t(a)}catch(l){i(l),s.unsubscribe()}},error:i,complete:o});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[Ho]=function(){return this},e.prototype.pipe=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return Vf(t)(this)},e.prototype.toPromise=function(t){var r=this;return t=Ub(t),new t(function(n,o){var i;r.subscribe(function(s){return i=s},function(s){return o(s)},function(){return n(i)})})},e.create=function(t){return new e(t)},e})();function Ub(e){var t;return(t=e??Dr.Promise)!==null&&t!==void 0?t:Promise}function h_(e){return e&&ke(e.next)&&ke(e.error)&&ke(e.complete)}function g_(e){return e&&e instanceof zo||h_(e)&&nc(e)}function x_(e){return ke(e?.lift)}function Qe(e){return function(t){if(x_(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 Xe(e,t,r,n,o){return new jb(e,t,r,n,o)}var jb=(function(e){Ot(t,e);function t(r,n,o,i,s,a){var l=e.call(this,r)||this;return l.onFinalize=s,l.shouldUnsubscribe=a,l._next=n?function(c){try{n(c)}catch(u){r.error(u)}}:e.prototype._next,l._error=i?function(c){try{i(c)}catch(u){r.error(u)}finally{this.unsubscribe()}}:e.prototype._error,l._complete=o?function(){try{o()}catch(c){r.error(c)}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})(zo);var Gf=rc(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}});var tn=(function(e){Ot(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 Qf(this,this);return n.operator=r,n},t.prototype._throwIfClosed=function(){if(this.closed)throw new Gf},t.prototype.next=function(r){var n=this;Yi(function(){var o,i;if(n._throwIfClosed(),!n.isStopped){n.currentObservers||(n.currentObservers=Array.from(n.observers));try{for(var s=Pt(n.currentObservers),a=s.next();!a.done;a=s.next()){var l=a.value;l.next(r)}}catch(c){o={error:c}}finally{try{a&&!a.done&&(i=s.return)&&i.call(s)}finally{if(o)throw o.error}}}})},t.prototype.error=function(r){var n=this;Yi(function(){if(n._throwIfClosed(),!n.isStopped){n.hasError=n.isStopped=!0,n.thrownError=r;for(var o=n.observers;o.length;)o.shift().error(r)}})},t.prototype.complete=function(){var r=this;Yi(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,o=this,i=o.hasError,s=o.isStopped,a=o.observers;return i||s?jf:(this.currentObservers=null,a.push(r),new ir(function(){n.currentObservers=null,zr(a,r)}))},t.prototype._checkFinalizedStatuses=function(r){var n=this,o=n.hasError,i=n.thrownError,s=n.isStopped;o?r.error(i):s&&r.complete()},t.prototype.asObservable=function(){var r=new je;return r.source=this,r},t.create=function(r,n){return new Qf(r,n)},t})(je),Qf=(function(e){Ot(t,e);function t(r,n){var o=e.call(this)||this;return o.destination=r,o.source=n,o}return t.prototype.next=function(r){var n,o;(o=(n=this.destination)===null||n===void 0?void 0:n.next)===null||o===void 0||o.call(n,r)},t.prototype.error=function(r){var n,o;(o=(n=this.destination)===null||n===void 0?void 0:n.error)===null||o===void 0||o.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,o;return(o=(n=this.source)===null||n===void 0?void 0:n.subscribe(r))!==null&&o!==void 0?o:jf},t})(tn);var va={now:function(){return(va.delegate||Date).now()},delegate:void 0};var sc=(function(e){Ot(t,e);function t(r,n,o){r===void 0&&(r=1/0),n===void 0&&(n=1/0),o===void 0&&(o=va);var i=e.call(this)||this;return i._bufferSize=r,i._windowTime=n,i._timestampProvider=o,i._buffer=[],i._infiniteTimeWindow=!0,i._infiniteTimeWindow=n===1/0,i._bufferSize=Math.max(1,r),i._windowTime=Math.max(1,n),i}return t.prototype.next=function(r){var n=this,o=n.isStopped,i=n._buffer,s=n._infiniteTimeWindow,a=n._timestampProvider,l=n._windowTime;o||(i.push(r),!s&&i.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),o=this,i=o._infiniteTimeWindow,s=o._buffer,a=s.slice(),l=0;l<a.length&&!r.closed;l+=i?1:2)r.next(a[l]);return this._checkFinalizedStatuses(r),n},t.prototype._trimBuffer=function(){var r=this,n=r._bufferSize,o=r._timestampProvider,i=r._buffer,s=r._infiniteTimeWindow,a=(s?1:2)*n;if(n<1/0&&a<i.length&&i.splice(0,i.length-a),!s){for(var l=o.now(),c=0,u=1;u<i.length&&i[u]<=l;u+=2)c=u;c&&i.splice(0,c+1)}},t})(tn);var Xf=(function(e){Ot(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})(ir);var wa={setInterval:function(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var o=wa.delegate;return o?.setInterval?o.setInterval.apply(o,Tr([e,t],Xt(r))):setInterval.apply(void 0,Tr([e,t],Xt(r)))},clearInterval:function(e){var t=wa.delegate;return(t?.clearInterval||clearInterval)(e)},delegate:void 0};var Jf=(function(e){Ot(t,e);function t(r,n){var o=e.call(this,r,n)||this;return o.scheduler=r,o.work=n,o.pending=!1,o}return t.prototype.schedule=function(r,n){var o;if(n===void 0&&(n=0),this.closed)return this;this.state=r;var i=this.id,s=this.scheduler;return i!=null&&(this.id=this.recycleAsyncId(s,i,n)),this.pending=!0,this.delay=n,this.id=(o=this.id)!==null&&o!==void 0?o:this.requestAsyncId(s,this.id,n),this},t.prototype.requestAsyncId=function(r,n,o){return o===void 0&&(o=0),wa.setInterval(r.flush.bind(r,this),o)},t.prototype.recycleAsyncId=function(r,n,o){if(o===void 0&&(o=0),o!=null&&this.delay===o&&this.pending===!1)return n;n!=null&&wa.clearInterval(n)},t.prototype.execute=function(r,n){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var o=this._execute(r,n);if(o)return o;this.pending===!1&&this.id!=null&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},t.prototype._execute=function(r,n){var o=!1,i;try{this.work(r)}catch(s){o=!0,i=s||new Error("Scheduled action threw falsy error")}if(o)return this.unsubscribe(),i},t.prototype.unsubscribe=function(){if(!this.closed){var r=this,n=r.id,o=r.scheduler,i=o.actions;this.work=this.state=this.scheduler=null,this.pending=!1,zr(i,this),n!=null&&(this.id=this.recycleAsyncId(o,n,null)),this.delay=null,e.prototype.unsubscribe.call(this)}},t})(Xf);var Sa=(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=va.now,e})();var Zf=(function(e){Ot(t,e);function t(r,n){n===void 0&&(n=Sa.now);var o=e.call(this,r,n)||this;return o.actions=[],o._active=!1,o}return t.prototype.flush=function(r){var n=this.actions;if(this._active){n.push(r);return}var o;this._active=!0;do if(o=r.execute(r.state,r.delay))break;while(r=n.shift());if(this._active=!1,o){for(;r=n.shift();)r.unsubscribe();throw o}},t})(Sa);var qn=new Zf(Jf),Kf=qn;function ac(e){return e&&ke(e.schedule)}function em(e){return e[e.length-1]}function mq(e){return ke(em(e))?e.pop():void 0}function Yn(e){return ac(em(e))?e.pop():void 0}function hq(e,t){return typeof em(e)=="number"?e.pop():t}var Wi=(function(e){return e&&typeof e.length=="number"&&typeof e!="function"});function lc(e){return ke(e?.then)}function cc(e){return ke(e[Ho])}function uc(e){return Symbol.asyncIterator&&ke(e?.[Symbol.asyncIterator])}function dc(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 y_(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var pc=y_();function fc(e){return ke(e?.[pc])}function mc(e){return Hf(this,arguments,function(){var r,n,o,i;return ga(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,In(r.read())];case 3:return n=s.sent(),o=n.value,i=n.done,i?[4,In(void 0)]:[3,5];case 4:return[2,s.sent()];case 5:return[4,In(o)];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 hc(e){return ke(e?.getReader)}function yt(e){if(e instanceof je)return e;if(e!=null){if(cc(e))return b_(e);if(Wi(e))return v_(e);if(lc(e))return w_(e);if(uc(e))return qb(e);if(fc(e))return S_(e);if(hc(e))return k_(e)}throw dc(e)}function b_(e){return new je(function(t){var r=e[Ho]();if(ke(r.subscribe))return r.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function v_(e){return new je(function(t){for(var r=0;r<e.length&&!t.closed;r++)t.next(e[r]);t.complete()})}function w_(e){return new je(function(t){e.then(function(r){t.closed||(t.next(r),t.complete())},function(r){return t.error(r)}).then(null,oc)})}function S_(e){return new je(function(t){var r,n;try{for(var o=Pt(e),i=o.next();!i.done;i=o.next()){var s=i.value;if(t.next(s),t.closed)return}}catch(a){r={error:a}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}t.complete()})}function qb(e){return new je(function(t){T_(e,t).catch(function(r){return t.error(r)})})}function k_(e){return qb(mc(e))}function T_(e,t){var r,n,o,i;return zf(this,void 0,void 0,function(){var s,a;return ga(this,function(l){switch(l.label){case 0:l.trys.push([0,5,6,11]),r=Uf(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(),o={error:a},[3,11];case 6:return l.trys.push([6,,9,10]),n&&!n.done&&(i=r.return)?[4,i.call(r)]:[3,8];case 7:l.sent(),l.label=8;case 8:return[3,10];case 9:if(o)throw o.error;return[7];case 10:return[7];case 11:return t.complete(),[2]}})})}function Jt(e,t,r,n,o){n===void 0&&(n=0),o===void 0&&(o=!1);var i=t.schedule(function(){r(),o?e.add(this.schedule(null,n)):this.unsubscribe()},n);if(e.add(i),!o)return i}function Vi(e,t){return t===void 0&&(t=0),Qe(function(r,n){r.subscribe(Xe(n,function(o){return Jt(n,e,function(){return n.next(o)},t)},function(){return Jt(n,e,function(){return n.complete()},t)},function(o){return Jt(n,e,function(){return n.error(o)},t)}))})}function Gi(e,t){return t===void 0&&(t=0),Qe(function(r,n){n.add(e.schedule(function(){return r.subscribe(n)},t))})}function Yb(e,t){return yt(e).pipe(Gi(t),Vi(t))}function Wb(e,t){return yt(e).pipe(Gi(t),Vi(t))}function Vb(e,t){return new je(function(r){var n=0;return t.schedule(function(){n===e.length?r.complete():(r.next(e[n++]),r.closed||this.schedule())})})}function Gb(e,t){return new je(function(r){var n;return Jt(r,t,function(){n=e[pc](),Jt(r,t,function(){var o,i,s;try{o=n.next(),i=o.value,s=o.done}catch(a){r.error(a);return}s?r.complete():r.next(i)},0,!0)}),function(){return ke(n?.return)&&n.return()}})}function gc(e,t){if(!e)throw new Error("Iterable cannot be null");return new je(function(r){Jt(r,t,function(){var n=e[Symbol.asyncIterator]();Jt(r,t,function(){n.next().then(function(o){o.done?r.complete():r.next(o.value)})},0,!0)})})}function Qb(e,t){return gc(mc(e),t)}function tm(e,t){if(e!=null){if(cc(e))return Yb(e,t);if(Wi(e))return Vb(e,t);if(lc(e))return Wb(e,t);if(uc(e))return gc(e,t);if(fc(e))return Gb(e,t);if(hc(e))return Qb(e,t)}throw dc(e)}function Uo(e,t){return t?tm(e,t):yt(e)}function rm(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=Yn(e);return Uo(e,r)}function Xb(e){return e instanceof Date&&!isNaN(e)}function Wn(e,t){return Qe(function(r,n){var o=0;r.subscribe(Xe(n,function(i){n.next(e.call(t,i,o++))}))})}var D_=Array.isArray;function C_(e,t){return D_(t)?e.apply(void 0,Tr([],Xt(t))):e(t)}function Jb(e){return Wn(function(t){return C_(e,t)})}function Zb(e,t,r,n,o,i,s,a){var l=[],c=0,u=0,d=!1,p=function(){d&&!l.length&&!c&&t.complete()},f=function(g){return c<n?m(g):l.push(g)},m=function(g){i&&t.next(g),c++;var x=!1;yt(r(g,u++)).subscribe(Xe(t,function(y){o?.(y),i?f(y):t.next(y)},function(){x=!0},void 0,function(){if(x)try{c--;for(var y=function(){var T=l.shift();s?Jt(t,s,function(){return m(T)}):m(T)};l.length&&c<n;)y();p()}catch(T){t.error(T)}}))};return e.subscribe(Xe(t,f,function(){d=!0,p()})),function(){a?.()}}function jo(e,t,r){return r===void 0&&(r=1/0),ke(t)?jo(function(n,o){return Wn(function(i,s){return t(n,i,o,s)})(yt(e(n,o)))},r):(typeof t=="number"&&(r=t),Qe(function(n,o){return Zb(n,o,e,r)}))}function xc(e){return e===void 0&&(e=1/0),jo(ba,e)}function yc(){return xc(1)}function bc(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return yc()(Uo(e,Yn(e)))}var E_=["addListener","removeListener"],M_=["addEventListener","removeEventListener"],I_=["on","off"];function qo(e,t,r,n){if(ke(r)&&(n=r,r=void 0),n)return qo(e,t,r).pipe(Jb(n));var o=Xt(__(e)?M_.map(function(a){return function(l){return e[a](t,l,r)}}):$_(e)?E_.map(Kb(e,t)):A_(e)?I_.map(Kb(e,t)):[],2),i=o[0],s=o[1];if(!i&&Wi(e))return jo(function(a){return qo(a,t,r)})(yt(e));if(!i)throw new TypeError("Invalid event target");return new je(function(a){var l=function(){for(var c=[],u=0;u<arguments.length;u++)c[u]=arguments[u];return a.next(1<c.length?c:c[0])};return i(l),function(){return s(l)}})}function Kb(e,t){return function(r){return function(n){return e[r](t,n)}}}function $_(e){return ke(e.addListener)&&ke(e.removeListener)}function A_(e){return ke(e.on)&&ke(e.off)}function __(e){return ke(e.addEventListener)&&ke(e.removeEventListener)}function nm(e,t,r){e===void 0&&(e=0),r===void 0&&(r=Kf);var n=-1;return t!=null&&(ac(t)?r=t:n=t),new je(function(o){var i=Xb(e)?+e-r.now():e;i<0&&(i=0);var s=0;return r.schedule(function(){o.closed||(o.next(s++),0<=n?this.schedule(void 0,n):o.complete())},i)})}function vc(e,t){return Qe(function(r,n){var o=0;r.subscribe(Xe(n,function(i){return e.call(t,i,o++)&&n.next(i)}))})}function wc(e){return Qe(function(t,r){var n=[];return t.subscribe(Xe(r,function(o){return n.push(o)},function(){r.next(n),r.complete()})),yt(e).subscribe(Xe(r,function(){var o=n;n=[],r.next(o)},en)),function(){n=null}})}function Sc(e,t){return t===void 0&&(t=null),t=t??e,Qe(function(r,n){var o=[],i=0;r.subscribe(Xe(n,function(s){var a,l,c,u,d=null;i++%t===0&&o.push([]);try{for(var p=Pt(o),f=p.next();!f.done;f=p.next()){var m=f.value;m.push(s),e<=m.length&&(d=d??[],d.push(m))}}catch(y){a={error:y}}finally{try{f&&!f.done&&(l=p.return)&&l.call(p)}finally{if(a)throw a.error}}if(d)try{for(var g=Pt(d),x=g.next();!x.done;x=g.next()){var m=x.value;zr(o,m),n.next(m)}}catch(y){c={error:y}}finally{try{x&&!x.done&&(u=g.return)&&u.call(g)}finally{if(c)throw c.error}}},function(){var s,a;try{for(var l=Pt(o),c=l.next();!c.done;c=l.next()){var u=c.value;n.next(u)}}catch(d){s={error:d}}finally{try{c&&!c.done&&(a=l.return)&&a.call(l)}finally{if(s)throw s.error}}n.complete()},void 0,function(){o=null}))})}function kc(e){for(var t,r,n=[],o=1;o<arguments.length;o++)n[o-1]=arguments[o];var i=(t=Yn(n))!==null&&t!==void 0?t:qn,s=(r=n[0])!==null&&r!==void 0?r:null,a=n[1]||1/0;return Qe(function(l,c){var u=[],d=!1,p=function(g){var x=g.buffer,y=g.subs;y.unsubscribe(),zr(u,g),c.next(x),d&&f()},f=function(){if(u){var g=new ir;c.add(g);var x=[],y={buffer:x,subs:g};u.push(y),Jt(g,i,function(){return p(y)},e)}};s!==null&&s>=0?Jt(c,i,f,s,!0):d=!0,f();var m=Xe(c,function(g){var x,y,T=u.slice();try{for(var D=Pt(T),H=D.next();!H.done;H=D.next()){var j=H.value,M=j.buffer;M.push(g),a<=M.length&&p(j)}}catch(U){x={error:U}}finally{try{H&&!H.done&&(y=D.return)&&y.call(D)}finally{if(x)throw x.error}}},function(){for(;u?.length;)c.next(u.shift().buffer);m?.unsubscribe(),c.complete(),c.unsubscribe()},void 0,function(){return u=null});l.subscribe(m)})}function Tc(e){return Qe(function(t,r){var n=!1,o=null,i=null,s=function(){if(i?.unsubscribe(),i=null,n){n=!1;var a=o;o=null,r.next(a)}};t.subscribe(Xe(r,function(a){i?.unsubscribe(),n=!0,o=a,i=Xe(r,s,en),yt(e(a)).subscribe(i)},function(){s(),r.complete()},void 0,function(){o=i=null}))})}function Dc(e,t){return t===void 0&&(t=qn),Qe(function(r,n){var o=null,i=null,s=null,a=function(){if(o){o.unsubscribe(),o=null;var c=i;i=null,n.next(c)}};function l(){var c=s+e,u=t.now();if(u<c){o=this.schedule(void 0,c-u),n.add(o);return}a()}r.subscribe(Xe(n,function(c){i=c,s=t.now(),o||(o=t.schedule(l,e),n.add(o))},function(){a(),n.complete()},void 0,function(){i=o=null}))})}function Cc(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=Yn(e);return Qe(function(n,o){(r?bc(e,n,r):bc(e,n)).subscribe(o)})}function Ec(e){return Qe(function(t,r){yt(e).subscribe(Xe(r,function(){return r.complete()},en)),!r.closed&&t.subscribe(r)})}function Mc(e,t){return Qe(function(r,n){var o=t??{},i=o.leading,s=i===void 0?!0:i,a=o.trailing,l=a===void 0?!1:a,c=!1,u=null,d=null,p=!1,f=function(){d?.unsubscribe(),d=null,l&&(x(),p&&n.complete())},m=function(){d=null,p&&n.complete()},g=function(y){return d=yt(e(y)).subscribe(Xe(n,f,m))},x=function(){if(c){c=!1;var y=u;u=null,n.next(y),!p&&g(y)}};r.subscribe(Xe(n,function(y){c=!0,u=y,!(d&&!d.closed)&&(s?x():g(y))},function(){p=!0,!(l&&c&&d&&!d.closed)&&n.complete()}))})}function Ic(e,t,r){t===void 0&&(t=qn);var n=nm(e,t);return Mc(function(){return n},r)}var hL={buffer:wc,bufferCount:Sc,bufferTime:kc,debounce:Tc,debounceTime:Dc,filter:vc,map:Wn,startWith:Cc,takeUntil:Ec,throttleTime:Ic};var om=class{constructor(){this.observableEventEmitterBundleArray=new Array,this.observableEventTargetBundleArray=new Array}getSubjectForEmitterEvent(t,r){let n=this.observableEventEmitterBundleArray.find(o=>o.eventRef===t&&o.event===r);if(n)return n.subject;{let o=qo(t,r),i=new tn;o.subscribe(i);let s={subject:i,eventRef:t,event:r};return this.observableEventEmitterBundleArray.push(s),s.subject}}getSubjectForEventTarget(t,r){let n=this.observableEventTargetBundleArray.find(o=>o.eventRef===t&&o.event===r);if(n)return n.subject;{let i={subject:new tn,eventRef:t,event:r};return this.observableEventTargetBundleArray.push(i),i.subject}}};var im=class{constructor(){this.observableFunctions={next:t=>{},complete:t=>{}},this.generator=null,this.buffered=!1,this.payloadBuffer=[],this.observable=new je(t=>{this.observableFunctions.next=(...r)=>t.next(r),this.observableFunctions.complete=()=>(this.completedDeffered.resolve(),t.complete())}),this.completedDeffered=fe.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)}};function gL(e){return new je(t=>{let r=()=>e.pause(),n=()=>process.nextTick(()=>e.resume()),o=i=>{r(),t.next(i),n()};return e.on("data",o),e.on("error",i=>t.error(i)),e.on("end",()=>t.complete()),e.on("close",()=>t.complete()),()=>{e.removeListener("data",o),e.removeListener("error",t.error),e.removeListener("end",t.complete),e.removeListener("close",t.complete)}})}var xL={attribute:!0,type:String,converter:Hi,reflect:!1,hasChanged:da},ev=(e=xL,t,r)=>{let{kind:n,metadata:o}=r,i=globalThis.litPropertyMetadata.get(o);if(i===void 0&&globalThis.litPropertyMetadata.set(o,i=new Map),n==="setter"&&((e=Object.create(e)).wrapped=!0),i.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.C(s,void 0,e,a),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 G(e){return(t,r)=>typeof r=="object"?ev(e,t,r):((n,o,i)=>{let s=o.hasOwnProperty(i);return o.constructor.createProperty(i,n),s?Object.getOwnPropertyDescriptor(o,i):void 0})(e,t,r)}var ct={};me(ct,{DomTools:()=>Sn,TypedRequest:()=>Za,breakpoints:()=>wn,css:()=>hf,elementBasic:()=>At,plugins:()=>gf});var At={};me(At,{setup:()=>zU,staticStyles:()=>RU,styles:()=>BU});var tl={};me(tl,{DeesComms:()=>Dh});var be={};me(be,{Timeout:()=>_c,delayFor:()=>rv,delayForRandom:()=>TL});var Xi={};me(Xi,{CumulativeDeferred:()=>Ac,Deferred:()=>$c,cumulativeDefer:()=>yL,defer:()=>Yo,getFirstTrueOrFalse:()=>kL,map:()=>wL,rejectedPromise:()=>vL,resolvedPromise:()=>bL,timeoutAndContinue:()=>SL,timeoutWrap:()=>tv});var $c=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"})}},Yo=()=>new $c;var Ac=class{constructor(){this.accumulatedPromises=[],this.deferred=Yo(),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)}},yL=()=>new Ac;var bL=e=>Promise.resolve(e),vL=e=>Promise.reject(e),wL=async(e,t)=>{let r=[],n=[];for(let o of e){let i=t(o);r.push(i),i.then(s=>{n.push(s)})}return await Promise.all(r),n},tv=async(e,t,r=!0)=>new Promise((n,o)=>{setTimeout(()=>{r?o(new Error("timeout")):n(null)},t),e.then(n,o)}),SL=async(e,t=6e4)=>tv(e,t,!1),kL=async e=>{let t=Yo();for(let r of e)r.then(n=>{n===!0&&t.resolve(!0)});return Promise.all(e).then(()=>{t.resolve(!1)}),t.promise};var rv=async(e,t,r=!1)=>(await new _c(e,null,r).promise,t),TL=async(e,t,r,n=!1)=>(await rv(Math.random()*(t-e)+e,null,n),r),_c=class{constructor(t,r,n=!1){this._cancelled=!1,this.timeoutInMillis=t,this._deferred=Yo(),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 Ji={};var Kt={};me(Kt,{TypedHandler:()=>gh,TypedRequest:()=>Za,TypedResponseError:()=>Nn,TypedRouter:()=>ai,TypedTarget:()=>xh,VirtualStream:()=>dn});var kt={};me(kt,{AsyncExecutionStack:()=>Im,BackpressuredArray:()=>$m,FastMap:()=>Ba,Interest:()=>za,InterestMap:()=>Am,LimitedArray:()=>_m,LoopTracker:()=>Om,ObjectMap:()=>ti,Stringmap:()=>Lm,TimedAggregtor:()=>Nm,Tree:()=>Pm,uni:()=>$S});var $n={};me($n,{SmartMatch:()=>am});var ka={};me(ka,{isMatch:()=>EL,matcher:()=>CL});function Wo(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}var sm=new Map,nv=(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})},DL=(e,t)=>{t={caseSensitive:!1,...t};let r=e+JSON.stringify(t);if(sm.has(r))return sm.get(r);let n=e[0]==="!";n&&(e=e.slice(1)),e=Wo(e).replace(/\\\*/g,"[\\s\\S]*");let o=new RegExp(`^${e}$`,t.caseSensitive?"":"i");return o.negated=n,sm.set(r,o),o},ov=(e,t,r,n)=>{if(e=nv(e,"inputs"),t=nv(t,"patterns"),t.length===0)return[];t=t.map(s=>DL(s,r));let{allPatterns:o}=r||{},i=[];for(let s of e){let a,l=[...t].fill(!1);for(let[c,u]of t.entries())if(u.test(s)&&(l[c]=!0,a=!u.negated,!a))break;if(!(a===!1||a===void 0&&t.some(c=>!c.negated)||o&&l.some((c,u)=>!c&&!t[u].negated))&&(i.push(s),n))break}return i};function CL(e,t,r){return ov(e,t,r,!1)}function EL(e,t,r){return ov(e,t,r,!0).length>0}var am=class{constructor(t){this.wildcard=t}match(t){return ka.isMatch(t,this.wildcard)}};var _n={};me(_n,{CronJob:()=>Ra,CronManager:()=>Sm,ExtendedDate:()=>km,HrtMeasurement:()=>Tm,Interval:()=>Dm,TimeStamp:()=>ws,Timer:()=>Cm,getMilliSecondsAsHumanReadableAgoTime:()=>oP,getMilliSecondsAsHumanReadableString:()=>wm,getMilliSecondsFromUnits:()=>vm,units:()=>io});var Ca={};me(Ca,{Cron:()=>cv,CronDate:()=>sr,CronPattern:()=>Oc,scheduledJobs:()=>Zi});function Ft(e,t,r,n,o,i,s,a){return Ft.fromTZ(Ft.tp(e,t,r,n,o,i,s),a)}Ft.fromTZISO=(e,t,r)=>Ft.fromTZ(IL(e,t),r),Ft.fromTZ=function(e,t){let r=new Date(Date.UTC(e.y,e.m-1,e.d,e.h,e.i,e.s)),n=lm(e.tz,r),o=new Date(r.getTime()-n),i=lm(e.tz,o);if(i-n===0)return o;{let s=new Date(r.getTime()-i),a=lm(e.tz,s);if(a-i===0||!t&&a-i>0)return s;if(t)throw new Error("Invalid date passed to fromTZ()");return o}},Ft.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}},Ft.tp=(e,t,r,n,o,i,s)=>({y:e,m:t,d:r,h:n,i:o,s:i,tz:s});function lm(e,t=new Date){let r=t.toLocaleString("en-US",{timeZone:e,timeZoneName:"shortOffset"}).split(" ").slice(-1)[0],n=t.toLocaleString("en-US").replace(/[\u202f]/," ");return Date.parse(`${n} GMT`)-Date.parse(`${n} ${r}`)}function IL(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("+")?Ft.tp(r.getUTCFullYear(),r.getUTCMonth()+1,r.getUTCDate(),r.getUTCHours(),r.getUTCMinutes(),r.getUTCSeconds(),"Etc/UTC"):Ft.tp(r.getFullYear(),r.getMonth()+1,r.getDate(),r.getHours(),r.getMinutes(),r.getSeconds(),t)}Ft.minitz=Ft;var cm=32,Ta=31|cm,iv=[1,2,4,8,16],Oc=class{pattern;timezone;second;minute;hour;day;month;dayOfWeek;lastDayOfMonth;starDOM;starDOW;constructor(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()}parse(){if(!(typeof this.pattern=="string"||this.pattern instanceof 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+"'), exactly five or six space separated parts are 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 sr(new Date,this.timezone).getDate(!0);e[0]=e[0].replace("?",t.getSeconds().toString()),e[1]=e[1].replace("?",t.getMinutes().toString()),e[2]=e[2].replace("?",t.getHours().toString()),this.starDOM||(e[3]=e[3].replace("?",t.getDate().toString())),e[4]=e[4].replace("?",(t.getMonth()+1).toString()),this.starDOW||(e[5]=e[5].replace("?",t.getDay().toString()))}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,Ta),this.dayOfWeek[7]&&(this.dayOfWeek[0]=this.dayOfWeek[7])}partToArray(e,t,r,n){let o=this[e],i=e==="day"&&this.lastDayOfMonth;if(t===""&&!i)throw new TypeError("CronPattern: configuration entry "+e+" ("+t+") is empty, check for trailing spaces.");if(t==="*")return o.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)}throwAtIllegalCharacters(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.")}handleNumber(e,t,r,n){let o=this.extractNth(e,t),i=parseInt(o[0],10)+r;if(isNaN(i))throw new TypeError("CronPattern: "+t+" is not a number: '"+e+"'");this.setPart(t,i,o[1]||n)}setPart(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)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}handleRangeWithStepping(e,t,r,n){let o=this.extractNth(e,t),i=o[0].match(/^(\d+)-(\d+)\/(\d+)$/);if(i===null)throw new TypeError("CronPattern: Syntax error, illegal range with stepping: '"+e+"'");let[,s,a,l]=i,c=parseInt(s,10)+r,u=parseInt(a,10)+r,d=parseInt(l,10);if(isNaN(c))throw new TypeError("CronPattern: Syntax error, illegal lower range (NaN)");if(isNaN(u))throw new TypeError("CronPattern: Syntax error, illegal upper range (NaN)");if(isNaN(d))throw new TypeError("CronPattern: Syntax error, illegal stepping: (NaN)");if(d===0)throw new TypeError("CronPattern: Syntax error, illegal stepping: 0");if(d>this[t].length)throw new TypeError("CronPattern: Syntax error, steps cannot be greater than maximum value of part ("+this[t].length+")");if(c>u)throw new TypeError("CronPattern: From value is larger than to value: '"+e+"'");for(let p=c;p<=u;p+=d)this.setPart(t,p,o[1]||n)}extractNth(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]}handleRange(e,t,r,n){let o=this.extractNth(e,t),i=o[0].split("-");if(i.length!==2)throw new TypeError("CronPattern: Syntax error, illegal range: '"+e+"'");let s=parseInt(i[0],10)+r,a=parseInt(i[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,o[1]||n)}handleStepping(e,t,r,n){let o=this.extractNth(e,t),i=o[0].split("/");if(i.length!==2)throw new TypeError("CronPattern: Syntax error, illegal stepping: '"+e+"'");i[0]===""&&(i[0]="*");let s=0;i[0]!=="*"&&(s=parseInt(i[0],10)+r);let a=parseInt(i[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,o[1]||n)}replaceAlphaDays(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")}replaceAlphaMonths(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")}handleNicknames(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}setNthWeekdayOfMonth(e,t){if(typeof t!="number"&&t==="L")this.dayOfWeek[e]=this.dayOfWeek[e]|cm;else if(t===Ta)this.dayOfWeek[e]=Ta;else if(t<6&&t>0)this.dayOfWeek[e]=this.dayOfWeek[e]|iv[t-1];else throw new TypeError(`CronPattern: nth weekday out of range, should be 1-5 or L. Value: ${t}, Type: ${typeof t}`)}},sv=[31,28,31,30,31,30,31,31,30,31,30,31],An=[["month","year",0],["day","month",-1],["hour","day",0],["minute","hour",0],["second","minute",0]],sr=class lv{tz;ms;second;minute;hour;day;month;year;constructor(t,r){if(this.tz=r,t&&t instanceof Date)if(!isNaN(t))this.fromDate(t);else throw new TypeError("CronDate: Invalid date passed to CronDate constructor");else if(t===void 0)this.fromDate(new Date);else if(t&&typeof t=="string")this.fromString(t);else if(t instanceof lv)this.fromCronDate(t);else throw new TypeError("CronDate: Invalid type ("+typeof t+") passed to CronDate constructor")}isNthWeekdayOfMonth(t,r,n,o){let i=new Date(Date.UTC(t,r,n)).getUTCDay(),s=0;for(let a=1;a<=n;a++)new Date(Date.UTC(t,r,a)).getUTCDay()===i&&s++;if(o&Ta&&iv[s-1]&o)return!0;if(o&cm){let a=new Date(Date.UTC(t,r+1,0)).getUTCDate();for(let l=n+1;l<=a;l++)if(new Date(Date.UTC(t,r,l)).getUTCDay()===i)return!1;return!0}return!1}fromDate(t){if(this.tz!==void 0)if(typeof this.tz=="number")this.ms=t.getUTCMilliseconds(),this.second=t.getUTCSeconds(),this.minute=t.getUTCMinutes()+this.tz,this.hour=t.getUTCHours(),this.day=t.getUTCDate(),this.month=t.getUTCMonth(),this.year=t.getUTCFullYear(),this.apply();else{let r=Ft.toTZ(t,this.tz);this.ms=t.getMilliseconds(),this.second=r.s,this.minute=r.i,this.hour=r.h,this.day=r.d,this.month=r.m-1,this.year=r.y}else this.ms=t.getMilliseconds(),this.second=t.getSeconds(),this.minute=t.getMinutes(),this.hour=t.getHours(),this.day=t.getDate(),this.month=t.getMonth(),this.year=t.getFullYear()}fromCronDate(t){this.tz=t.tz,this.year=t.year,this.month=t.month,this.day=t.day,this.hour=t.hour,this.minute=t.minute,this.second=t.second,this.ms=t.ms}apply(){if(this.month>11||this.day>sv[this.month]||this.hour>59||this.minute>59||this.second>59||this.hour<0||this.minute<0||this.second<0){let t=new Date(Date.UTC(this.year,this.month,this.day,this.hour,this.minute,this.second,this.ms));return this.ms=t.getUTCMilliseconds(),this.second=t.getUTCSeconds(),this.minute=t.getUTCMinutes(),this.hour=t.getUTCHours(),this.day=t.getUTCDate(),this.month=t.getUTCMonth(),this.year=t.getUTCFullYear(),!0}else return!1}fromString(t){if(typeof this.tz=="number"){let r=Ft.fromTZISO(t);this.ms=r.getUTCMilliseconds(),this.second=r.getUTCSeconds(),this.minute=r.getUTCMinutes(),this.hour=r.getUTCHours(),this.day=r.getUTCDate(),this.month=r.getUTCMonth(),this.year=r.getUTCFullYear(),this.apply()}else return this.fromDate(Ft.fromTZISO(t,this.tz))}findNext(t,r,n,o){let i=this[r],s;n.lastDayOfMonth&&(this.month!==1?s=sv[this.month]:s=new Date(Date.UTC(this.year,this.month+1,0,0,0,0,0)).getUTCDate());let a=!n.starDOW&&r=="day"?new Date(Date.UTC(this.year,this.month,1,0,0,0,0)).getUTCDay():void 0;for(let l=this[r]+o;l<n[r].length;l++){let c=n[r][l];if(r==="day"&&n.lastDayOfMonth&&l-o==s&&(c=1),r==="day"&&!n.starDOW){let u=n.dayOfWeek[(a+(l-o-1))%7];if(u&&u&Ta)u=this.isNthWeekdayOfMonth(this.year,this.month,l-o,u)?1:0;else if(u)throw new Error(`CronDate: Invalid value for dayOfWeek encountered. ${u}`);t.legacyMode&&!n.starDOM?c=c||u:c=c&&u}if(c)return this[r]=l-o,i!==this[r]?2:1}return 3}recurse(t,r,n){let o=this.findNext(r,An[n][0],t,An[n][2]);if(o>1){let i=n+1;for(;i<An.length;)this[An[i][0]]=-An[i][2],i++;if(o===3)return this[An[n][1]]++,this[An[n][0]]=-An[n][2],this.apply(),this.recurse(t,r,0);if(this.apply())return this.recurse(t,r,n-1)}return n+=1,n>=An.length?this:this.year>=3e3?null:this.recurse(t,r,n)}increment(t,r,n){return this.second+=r.interval!==void 0&&r.interval>1&&n?r.interval:1,this.ms=0,this.apply(),this.recurse(t,r,0)}getDate(t){return t||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)):Ft.fromTZ(Ft.tp(this.year,this.month+1,this.day,this.hour,this.minute,this.second,this.tz),!1)}getTime(){return this.getDate(!1).getTime()}};function $L(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.toString(),10),e.utcOffset=e.utcOffset===void 0?void 0:parseInt(e.utcOffset.toString(),10),e.unref=e.unref===void 0?!1:e.unref,e.startAt&&(e.startAt=new sr(e.startAt,e.timezone)),e.stopAt&&(e.stopAt=new sr(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}function Da(e){return Object.prototype.toString.call(e)==="[object Function]"||typeof e=="function"||e instanceof Function}function AL(e){return Da(e)}function _L(e){typeof Deno<"u"&&typeof Deno.unrefTimer<"u"?Deno.unrefTimer(e):e&&typeof e.unref<"u"&&e.unref()}var av=30*1e3,Zi=[],cv=class{name;options;_states;fn;constructor(e,t,r){let n,o;if(Da(t))o=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(Da(r))o=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?.name,this.options=$L(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:new Oc("* * * * *")},e&&(e instanceof Date||typeof e=="string"&&e.indexOf(":")>0)?this._states.once=new sr(e,this.options.timezone||this.options.utcOffset):this._states.pattern=new Oc(e,this.options.timezone),this.name){if(Zi.find(i=>i.name===this.name))throw new Error("Cron: Tried to initialize new named job '"+this.name+"', but name already taken.");Zi.push(this)}return o!==void 0&&AL(o)&&(this.fn=o,this.schedule()),this}nextRun(e){let t=this._next(e);return t?t.getDate(!1):null}nextRuns(e,t){this._states.maxRuns!==void 0&&e>this._states.maxRuns&&(e=this._states.maxRuns);let r=[],n=t||this._states.currentRun||void 0;for(;e--&&(n=this.nextRun(n));)r.push(n);return r}getPattern(){return this._states.pattern?this._states.pattern.pattern:void 0}isRunning(){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}isStopped(){return this._states.kill}isBusy(){return this._states.blocking}currentRun(){return this._states.currentRun?this._states.currentRun.getDate():null}previousRun(){return this._states.previousRun?this._states.previousRun.getDate():null}msToNext(e){let t=this._next(e);return t?e instanceof sr||e instanceof Date?t.getTime()-e.getTime():t.getTime()-new sr(e).getTime():null}stop(){this._states.kill=!0,this._states.currentTimeout&&clearTimeout(this._states.currentTimeout);let e=Zi.indexOf(this);e>=0&&Zi.splice(e,1)}pause(){return this._states.paused=!0,!this._states.kill}resume(){return this._states.paused=!1,!this._states.kill}schedule(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||isNaN(t)||r===null?this:(t>av&&(t=av),this._states.currentTimeout=setTimeout(()=>this._checkTrigger(r),t),this._states.currentTimeout&&this.options.unref&&_L(this._states.currentTimeout),this)}async _trigger(e){if(this._states.blocking=!0,this._states.currentRun=new sr(void 0,this.options.timezone||this.options.utcOffset),this.options.catch)try{this.fn!==void 0&&await this.fn(this,this.options.context)}catch(t){Da(this.options.catch)&&this.options.catch(t,this)}else this.fn!==void 0&&await this.fn(this,this.options.context);this._states.previousRun=new sr(e,this.options.timezone||this.options.utcOffset),this._states.blocking=!1}async trigger(){await this._trigger()}runsLeft(){return this._states.maxRuns}_checkTrigger(e){let t=new Date,r=!this._states.paused&&t.getTime()>=e.getTime(),n=this._states.blocking&&this.options.protect;r&&!n?(this._states.maxRuns!==void 0&&this._states.maxRuns--,this._trigger()):r&&n&&Da(this.options.protect)&&setTimeout(()=>this.options.protect(this),0),this.schedule()}_next(e){let t=!!(e||this._states.currentRun),r=!1;!e&&this.options.startAt&&this.options.interval&&([e,t]=this._calculatePreviousRun(e,t),r=!e),e=new sr(e,this.options.timezone||this.options.utcOffset),this.options.startAt&&e&&e.getTime()<this.options.startAt.getTime()&&(e=this.options.startAt);let n=this._states.once||new sr(e,this.options.timezone||this.options.utcOffset);return!r&&n!==this._states.once&&(n=n.increment(this._states.pattern,this.options,t)),this._states.once&&this._states.once.getTime()<=e.getTime()||n===null||this._states.maxRuns!==void 0&&this._states.maxRuns<=0||this._states.kill||this.options.stopAt&&n.getTime()>=this.options.stopAt.getTime()?null:n}_calculatePreviousRun(e,t){let r=new sr(void 0,this.options.timezone||this.options.utcOffset),n=e;if(this.options.startAt.getTime()<=r.getTime()){n=this.options.startAt;let o=n.getTime()+this.options.interval*1e3;for(;o<=r.getTime();)n=new sr(n,this.options.timezone||this.options.utcOffset).increment(this._states.pattern,this.options,!0),o=n.getTime()+this.options.interval*1e3;t=!0}return n===null&&(n=void 0),[n,t]}};var Pa={};me(Pa,{add:()=>Gn,addBusinessDays:()=>jc,addDays:()=>St,addHours:()=>qc,addISOWeekYears:()=>Wc,addMilliseconds:()=>Qn,addMinutes:()=>rs,addMonths:()=>nn,addQuarters:()=>ns,addSeconds:()=>Vc,addWeeks:()=>Xn,addYears:()=>Gc,areIntervalsOverlapping:()=>mv,clamp:()=>hv,closestIndexTo:()=>Jc,closestTo:()=>gv,compareAsc:()=>Bt,compareDesc:()=>xv,constructFrom:()=>R,constructNow:()=>De,daysToWeeks:()=>yv,differenceInBusinessDays:()=>bv,differenceInCalendarDays:()=>Et,differenceInCalendarISOWeekYears:()=>Kc,differenceInCalendarISOWeeks:()=>vv,differenceInCalendarMonths:()=>Go,differenceInCalendarQuarters:()=>os,differenceInCalendarWeeks:()=>Qo,differenceInCalendarYears:()=>Jn,differenceInDays:()=>is,differenceInHours:()=>Xo,differenceInISOWeekYears:()=>Sv,differenceInMilliseconds:()=>ss,differenceInMinutes:()=>Jo,differenceInMonths:()=>Zn,differenceInQuarters:()=>kv,differenceInSeconds:()=>ln,differenceInWeeks:()=>Tv,differenceInYears:()=>ru,eachDayOfInterval:()=>nu,eachHourOfInterval:()=>Dv,eachMinuteOfInterval:()=>Cv,eachMonthOfInterval:()=>Ev,eachQuarterOfInterval:()=>Mv,eachWeekOfInterval:()=>Iv,eachWeekendOfInterval:()=>cs,eachWeekendOfMonth:()=>$v,eachWeekendOfYear:()=>Av,eachYearOfInterval:()=>_v,endOfDay:()=>as,endOfDecade:()=>Ov,endOfHour:()=>Lv,endOfISOWeek:()=>Nv,endOfISOWeekYear:()=>Pv,endOfMinute:()=>Fv,endOfMonth:()=>ls,endOfQuarter:()=>Rv,endOfSecond:()=>Bv,endOfToday:()=>zv,endOfTomorrow:()=>Hv,endOfWeek:()=>iu,endOfYear:()=>ou,endOfYesterday:()=>Uv,format:()=>Aa,formatDate:()=>Aa,formatDistance:()=>uu,formatDistanceStrict:()=>du,formatDistanceToNow:()=>Kv,formatDistanceToNowStrict:()=>ew,formatDuration:()=>tw,formatISO:()=>rw,formatISO9075:()=>nw,formatISODuration:()=>ow,formatRFC3339:()=>iw,formatRFC7231:()=>sw,formatRelative:()=>aw,formatters:()=>Ia,fromUnixTime:()=>lw,getDate:()=>pu,getDay:()=>ro,getDayOfYear:()=>au,getDaysInMonth:()=>fu,getDaysInYear:()=>cw,getDecade:()=>uw,getDefaultOptions:()=>hu,getHours:()=>dw,getISODay:()=>gu,getISOWeek:()=>fs,getISOWeekYear:()=>Zt,getISOWeeksInYear:()=>pw,getMilliseconds:()=>fw,getMinutes:()=>mw,getMonth:()=>hw,getOverlappingDaysInIntervals:()=>gw,getQuarter:()=>Ma,getSeconds:()=>xw,getTime:()=>yw,getUnixTime:()=>bw,getWeek:()=>ms,getWeekOfMonth:()=>vw,getWeekYear:()=>eo,getWeeksInMonth:()=>ww,getYear:()=>Sw,hoursToMilliseconds:()=>kw,hoursToMinutes:()=>Tw,hoursToSeconds:()=>Dw,interval:()=>Cw,intervalToDuration:()=>Ew,intlFormat:()=>Mw,intlFormatDistance:()=>Iw,isAfter:()=>$w,isBefore:()=>Aw,isDate:()=>Zc,isEqual:()=>_w,isExists:()=>Ow,isFirstDayOfMonth:()=>Lw,isFriday:()=>Nw,isFuture:()=>Pw,isLastDayOfMonth:()=>tu,isLeapYear:()=>mu,isMatch:()=>Fw,isMonday:()=>Rw,isPast:()=>Bw,isSameDay:()=>an,isSameHour:()=>ad,isSameISOWeek:()=>ld,isSameISOWeekYear:()=>zw,isSameMinute:()=>cd,isSameMonth:()=>ud,isSameQuarter:()=>dd,isSameSecond:()=>pd,isSameWeek:()=>ys,isSameYear:()=>fd,isSaturday:()=>Hc,isSunday:()=>Uc,isThisHour:()=>Hw,isThisISOWeek:()=>Uw,isThisMinute:()=>jw,isThisMonth:()=>qw,isThisQuarter:()=>Yw,isThisSecond:()=>Ww,isThisWeek:()=>Vw,isThisYear:()=>Gw,isThursday:()=>Qw,isToday:()=>Xw,isTomorrow:()=>Jw,isTuesday:()=>Zw,isValid:()=>Lt,isWednesday:()=>Kw,isWeekend:()=>on,isWithinInterval:()=>e1,isYesterday:()=>t1,lastDayOfDecade:()=>r1,lastDayOfISOWeek:()=>n1,lastDayOfISOWeekYear:()=>o1,lastDayOfMonth:()=>xu,lastDayOfQuarter:()=>i1,lastDayOfWeek:()=>md,lastDayOfYear:()=>s1,lightFormat:()=>a1,lightFormatters:()=>hr,longFormatters:()=>to,max:()=>Qc,milliseconds:()=>l1,millisecondsToHours:()=>c1,millisecondsToMinutes:()=>u1,millisecondsToSeconds:()=>d1,min:()=>Xc,minutesToHours:()=>p1,minutesToMilliseconds:()=>f1,minutesToSeconds:()=>m1,monthsToQuarters:()=>h1,monthsToYears:()=>g1,nextDay:()=>Ht,nextFriday:()=>x1,nextMonday:()=>y1,nextSaturday:()=>b1,nextSunday:()=>v1,nextThursday:()=>w1,nextTuesday:()=>S1,nextWednesday:()=>k1,parse:()=>sd,parseISO:()=>D1,parseJSON:()=>C1,parsers:()=>id,previousDay:()=>Ut,previousFriday:()=>E1,previousMonday:()=>M1,previousSaturday:()=>I1,previousSunday:()=>$1,previousThursday:()=>A1,previousTuesday:()=>_1,previousWednesday:()=>O1,quartersToMonths:()=>L1,quartersToYears:()=>N1,roundToNearestHours:()=>P1,roundToNearestMinutes:()=>F1,secondsToHours:()=>R1,secondsToMilliseconds:()=>B1,secondsToMinutes:()=>z1,set:()=>H1,setDate:()=>U1,setDay:()=>no,setDayOfYear:()=>j1,setDefaultOptions:()=>q1,setHours:()=>Y1,setISODay:()=>ju,setISOWeek:()=>Pu,setISOWeekYear:()=>Yc,setMilliseconds:()=>W1,setMinutes:()=>V1,setMonth:()=>bs,setQuarter:()=>G1,setSeconds:()=>Q1,setWeek:()=>Lu,setWeekYear:()=>X1,setYear:()=>J1,startOfDay:()=>sn,startOfDecade:()=>Z1,startOfHour:()=>_a,startOfISOWeek:()=>bt,startOfISOWeekYear:()=>mr,startOfMinute:()=>Oa,startOfMonth:()=>Kn,startOfQuarter:()=>cn,startOfSecond:()=>La,startOfToday:()=>K1,startOfTomorrow:()=>eS,startOfWeek:()=>Ye,startOfWeekYear:()=>Zo,startOfYear:()=>us,startOfYesterday:()=>tS,sub:()=>rS,subBusinessDays:()=>nS,subDays:()=>oo,subHours:()=>oS,subISOWeekYears:()=>eu,subMilliseconds:()=>iS,subMinutes:()=>sS,subMonths:()=>gd,subQuarters:()=>aS,subSeconds:()=>lS,subWeeks:()=>cS,subYears:()=>uS,toDate:()=>v,transpose:()=>yu,weeksToDays:()=>dS,yearsToDays:()=>pS,yearsToMonths:()=>fS,yearsToQuarters:()=>mS});var Nc=7,Ea=365.2425,OL=Math.pow(10,8)*24*60*60*1e3,ree=-OL,rn=6048e5,Pc=864e5,Rt=6e4,fr=36e5,Ki=1e3,um=525600,Vn=43200,es=1440,Fc=60,Rc=3,Bc=12,zc=4,Vo=3600,ts=60,Lc=Vo*24,uv=Lc*7,dm=Lc*365.2425,pm=dm/12,dv=pm*3,fm=Symbol.for("constructDateFrom");function R(e,t){return typeof e=="function"?e(t):e&&typeof e=="object"&&fm in e?e[fm](t):e instanceof Date?new e.constructor(t):new Date(t)}var iee=R;function v(e,t){return R(t||e,e)}var lee=v;function St(e,t,r){let n=v(e,r?.in);return isNaN(t)?R(r?.in||e,NaN):(t&&n.setDate(n.getDate()+t),n)}var pee=St;function nn(e,t,r){let n=v(e,r?.in);if(isNaN(t))return R(r?.in||e,NaN);if(!t)return n;let o=n.getDate(),i=R(r?.in||e,n.getTime());i.setMonth(n.getMonth()+t+1,0);let s=i.getDate();return o>=s?i:(n.setFullYear(i.getFullYear(),i.getMonth(),o),n)}var gee=nn;function Gn(e,t,r){let{years:n=0,months:o=0,weeks:i=0,days:s=0,hours:a=0,minutes:l=0,seconds:c=0}=t,u=v(e,r?.in),d=o||n?nn(u,o+n*12):u,p=s||i?St(d,s+i*7):d,f=l+a*60,g=(c+f*60)*1e3;return R(r?.in||e,+p+g)}var See=Gn;function Hc(e,t){return v(e,t?.in).getDay()===6}var Dee=Hc;function Uc(e,t){return v(e,t?.in).getDay()===0}var Mee=Uc;function on(e,t){let r=v(e,t?.in).getDay();return r===0||r===6}var Aee=on;function jc(e,t,r){let n=v(e,r?.in),o=on(n,r);if(isNaN(t))return R(r?.in,NaN);let i=n.getHours(),s=t<0?-1:1,a=Math.trunc(t/5);n.setDate(n.getDate()+a*7);let l=Math.abs(t%5);for(;l>0;)n.setDate(n.getDate()+s),on(n,r)||(l-=1);return o&&on(n,r)&&t!==0&&(Hc(n,r)&&n.setDate(n.getDate()+(s<0?2:-1)),Uc(n,r)&&n.setDate(n.getDate()+(s<0?1:-2))),n.setHours(i),n}var Ree=jc;function Qn(e,t,r){return R(r?.in||e,+v(e)+t)}var Uee=Qn;function qc(e,t,r){return Qn(e,t*fr,r)}var Wee=qc;var pv={};function Be(){return pv}function fv(e){pv=e}function Ye(e,t){let r=Be(),n=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,o=v(e,t?.in),i=o.getDay(),s=(i<n?7:0)+i-n;return o.setDate(o.getDate()-s),o.setHours(0,0,0,0),o}var Jee=Ye;function bt(e,t){return Ye(e,{...t,weekStartsOn:1})}var ete=bt;function Zt(e,t){let r=v(e,t?.in),n=r.getFullYear(),o=R(r,0);o.setFullYear(n+1,0,4),o.setHours(0,0,0,0);let i=bt(o),s=R(r,0);s.setFullYear(n,0,4),s.setHours(0,0,0,0);let a=bt(s);return r.getTime()>=i.getTime()?n+1:r.getTime()>=a.getTime()?n:n-1}var ite=Zt;function ot(e){let t=v(e),r=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return r.setUTCFullYear(t.getFullYear()),+e-+r}function ce(e,...t){let r=R.bind(null,e||t.find(n=>typeof n=="object"));return t.map(r)}function sn(e,t){let r=v(e,t?.in);return r.setHours(0,0,0,0),r}var pte=sn;function Et(e,t,r){let[n,o]=ce(r?.in,e,t),i=sn(n),s=sn(o),a=+i-ot(i),l=+s-ot(s);return Math.round((a-l)/Pc)}var yte=Et;function mr(e,t){let r=Zt(e,t),n=R(t?.in||e,0);return n.setFullYear(r,0,4),n.setHours(0,0,0,0),bt(n)}var kte=mr;function Yc(e,t,r){let n=v(e,r?.in),o=Et(n,mr(n,r)),i=R(r?.in||e,0);return i.setFullYear(t,0,4),i.setHours(0,0,0,0),n=mr(i),n.setDate(n.getDate()+o),n}var Ite=Yc;function Wc(e,t,r){return Yc(e,Zt(e,r)+t,r)}var Ote=Wc;function rs(e,t,r){let n=v(e,r?.in);return n.setTime(n.getTime()+t*Rt),n}var Fte=rs;function ns(e,t,r){return nn(e,t*3,r)}var zte=ns;function Vc(e,t,r){return Qn(e,t*1e3,r)}var jte=Vc;function Xn(e,t,r){return St(e,t*7,r)}var Wte=Xn;function Gc(e,t,r){return nn(e,t*12,r)}var Qte=Gc;function mv(e,t,r){let[n,o]=[+v(e.start,r?.in),+v(e.end,r?.in)].sort((a,l)=>a-l),[i,s]=[+v(t.start,r?.in),+v(t.end,r?.in)].sort((a,l)=>a-l);return r?.inclusive?n<=s&&i<=o:n<s&&i<o}var Zte=mv;function Qc(e,t){let r,n=t?.in;return e.forEach(o=>{!n&&typeof o=="object"&&(n=R.bind(null,o));let i=v(o,n);(!r||r<i||isNaN(+i))&&(r=i)}),R(n,r||NaN)}var rre=Qc;function Xc(e,t){let r,n=t?.in;return e.forEach(o=>{!n&&typeof o=="object"&&(n=R.bind(null,o));let i=v(o,n);(!r||r>i||isNaN(+i))&&(r=i)}),R(n,r||NaN)}var sre=Xc;function hv(e,t,r){let[n,o,i]=ce(r?.in,e,t.start,t.end);return Xc([Qc([n,o],r),i],r)}var dre=hv;function Jc(e,t){let r=+v(e);if(isNaN(r))return NaN;let n,o;return t.forEach((i,s)=>{let a=v(i);if(isNaN(+a)){n=NaN,o=NaN;return}let l=Math.abs(r-+a);(n==null||l<o)&&(n=s,o=l)}),n}var mre=Jc;function gv(e,t,r){let[n,...o]=ce(r?.in,e,...t),i=Jc(n,o);if(typeof i=="number"&&isNaN(i))return R(n,NaN);if(i!==void 0)return o[i]}var bre=gv;function Bt(e,t){let r=+v(e)-+v(t);return r<0?-1:r>0?1:r}var Sre=Bt;function xv(e,t){let r=+v(e)-+v(t);return r>0?-1:r<0?1:r}var Dre=xv;function De(e){return R(e,Date.now())}var Mre=De;function yv(e){let t=Math.trunc(e/7);return t===0?0:t}var Are=yv;function an(e,t,r){let[n,o]=ce(r?.in,e,t);return+sn(n)==+sn(o)}var Nre=an;function Zc(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}var Fre=Zc;function Lt(e){return!(!Zc(e)&&typeof e!="number"||isNaN(+v(e)))}var Hre=Lt;function bv(e,t,r){let[n,o]=ce(r?.in,e,t);if(!Lt(n)||!Lt(o))return NaN;let i=Et(n,o),s=i<0?-1:1,a=Math.trunc(i/7),l=a*5,c=St(o,a*7);for(;!an(n,c);)l+=on(c,r)?0:s,c=St(c,s);return l===0?0:l}var Qre=bv;function Kc(e,t,r){let[n,o]=ce(r?.in,e,t);return Zt(n,r)-Zt(o,r)}var Kre=Kc;function vv(e,t,r){let[n,o]=ce(r?.in,e,t),i=bt(n),s=bt(o),a=+i-ot(i),l=+s-ot(s);return Math.round((a-l)/rn)}var ine=vv;function Go(e,t,r){let[n,o]=ce(r?.in,e,t),i=n.getFullYear()-o.getFullYear(),s=n.getMonth()-o.getMonth();return i*12+s}var lne=Go;function Ma(e,t){let r=v(e,t?.in);return Math.trunc(r.getMonth()/3)+1}var dne=Ma;function os(e,t,r){let[n,o]=ce(r?.in,e,t),i=n.getFullYear()-o.getFullYear(),s=Ma(n)-Ma(o);return i*4+s}var hne=os;function Qo(e,t,r){let[n,o]=ce(r?.in,e,t),i=Ye(n,r),s=Ye(o,r),a=+i-ot(i),l=+s-ot(s);return Math.round((a-l)/rn)}var wne=Qo;function Jn(e,t,r){let[n,o]=ce(r?.in,e,t);return n.getFullYear()-o.getFullYear()}var Tne=Jn;function is(e,t,r){let[n,o]=ce(r?.in,e,t),i=wv(n,o),s=Math.abs(Et(n,o));n.setDate(n.getDate()-i*s);let a=+(wv(n,o)===-i),l=i*(s-a);return l===0?0:l}function wv(e,t){let r=e.getFullYear()-t.getFullYear()||e.getMonth()-t.getMonth()||e.getDate()-t.getDate()||e.getHours()-t.getHours()||e.getMinutes()-t.getMinutes()||e.getSeconds()-t.getSeconds()||e.getMilliseconds()-t.getMilliseconds();return r<0?-1:r>0?1:r}var Mne=is;function zt(e){return t=>{let n=(e?Math[e]:Math.trunc)(t);return n===0?0:n}}function Xo(e,t,r){let[n,o]=ce(r?.in,e,t),i=(+n-+o)/fr;return zt(r?.roundingMethod)(i)}var Lne=Xo;function eu(e,t,r){return Wc(e,-t,r)}var Fne=eu;function Sv(e,t,r){let[n,o]=ce(r?.in,e,t),i=Bt(n,o),s=Math.abs(Kc(n,o,r)),a=eu(n,i*s,r),l=+(Bt(a,o)===-i),c=i*(s-l);return c===0?0:c}var jne=Sv;function ss(e,t){return+v(e)-+v(t)}var Wne=ss;function Jo(e,t,r){let n=ss(e,t)/Rt;return zt(r?.roundingMethod)(n)}var Jne=Jo;function as(e,t){let r=v(e,t?.in);return r.setHours(23,59,59,999),r}var eoe=as;function ls(e,t){let r=v(e,t?.in),n=r.getMonth();return r.setFullYear(r.getFullYear(),n+1,0),r.setHours(23,59,59,999),r}var noe=ls;function tu(e,t){let r=v(e,t?.in);return+as(r,t)==+ls(r,t)}var loe=tu;function Zn(e,t,r){let[n,o,i]=ce(r?.in,e,e,t),s=Bt(o,i),a=Math.abs(Go(o,i));if(a<1)return 0;o.getMonth()===1&&o.getDate()>27&&o.setDate(30),o.setMonth(o.getMonth()-s*a);let l=Bt(o,i)===-s;tu(n)&&a===1&&Bt(n,i)===1&&(l=!1);let c=s*(a-+l);return c===0?0:c}var moe=Zn;function kv(e,t,r){let n=Zn(e,t,r)/3;return zt(r?.roundingMethod)(n)}var yoe=kv;function ln(e,t,r){let n=ss(e,t)/1e3;return zt(r?.roundingMethod)(n)}var Soe=ln;function Tv(e,t,r){let n=is(e,t,r)/7;return zt(r?.roundingMethod)(n)}var Coe=Tv;function ru(e,t,r){let[n,o]=ce(r?.in,e,t),i=Bt(n,o),s=Math.abs(Jn(n,o));n.setFullYear(1584),o.setFullYear(1584);let a=Bt(n,o)===-i,l=i*(s-+a);return l===0?0:l}var Aoe=ru;function Mt(e,t){let[r,n]=ce(e,t.start,t.end);return{start:r,end:n}}function nu(e,t){let{start:r,end:n}=Mt(t?.in,e),o=+r>+n,i=o?+r:+n,s=o?n:r;s.setHours(0,0,0,0);let a=t?.step??1;if(!a)return[];a<0&&(a=-a,o=!o);let l=[];for(;+s<=i;)l.push(R(r,s)),s.setDate(s.getDate()+a),s.setHours(0,0,0,0);return o?l.reverse():l}var Foe=nu;function Dv(e,t){let{start:r,end:n}=Mt(t?.in,e),o=+r>+n,i=o?+r:+n,s=o?n:r;s.setMinutes(0,0,0);let a=t?.step??1;if(!a)return[];a<0&&(a=-a,o=!o);let l=[];for(;+s<=i;)l.push(R(r,s)),s.setHours(s.getHours()+a);return o?l.reverse():l}var Hoe=Dv;function Cv(e,t){let{start:r,end:n}=Mt(t?.in,e);r.setSeconds(0,0);let o=+r>+n,i=o?+r:+n,s=o?n:r,a=t?.step??1;if(!a)return[];a<0&&(a=-a,o=!o);let l=[];for(;+s<=i;)l.push(R(r,s)),s=rs(s,a);return o?l.reverse():l}var Woe=Cv;function Ev(e,t){let{start:r,end:n}=Mt(t?.in,e),o=+r>+n,i=o?+r:+n,s=o?n:r;s.setHours(0,0,0,0),s.setDate(1);let a=t?.step??1;if(!a)return[];a<0&&(a=-a,o=!o);let l=[];for(;+s<=i;)l.push(R(r,s)),s.setMonth(s.getMonth()+a);return o?l.reverse():l}var Xoe=Ev;function cn(e,t){let r=v(e,t?.in),n=r.getMonth(),o=n-n%3;return r.setMonth(o,1),r.setHours(0,0,0,0),r}var Koe=cn;function Mv(e,t){let{start:r,end:n}=Mt(t?.in,e),o=+r>+n,i=o?+cn(r):+cn(n),s=o?cn(n):cn(r),a=t?.step??1;if(!a)return[];a<0&&(a=-a,o=!o);let l=[];for(;+s<=i;)l.push(R(r,s)),s=ns(s,a);return o?l.reverse():l}var iie=Mv;function Iv(e,t){let{start:r,end:n}=Mt(t?.in,e),o=+r>+n,i=o?Ye(n,t):Ye(r,t),s=o?Ye(r,t):Ye(n,t);i.setHours(15),s.setHours(15);let a=+s.getTime(),l=i,c=t?.step??1;if(!c)return[];c<0&&(c=-c,o=!o);let u=[];for(;+l<=a;)l.setHours(0),u.push(R(r,l)),l=Xn(l,c),l.setHours(15);return o?u.reverse():u}var die=Iv;function cs(e,t){let{start:r,end:n}=Mt(t?.in,e),o=nu({start:r,end:n},t),i=[],s=0;for(;s<o.length;){let a=o[s++];on(a)&&i.push(R(r,a))}return i}var xie=cs;function Kn(e,t){let r=v(e,t?.in);return r.setDate(1),r.setHours(0,0,0,0),r}var vie=Kn;function $v(e,t){let r=Kn(e,t),n=ls(e,t);return cs({start:r,end:n},t)}var Die=$v;function ou(e,t){let r=v(e,t?.in),n=r.getFullYear();return r.setFullYear(n+1,0,0),r.setHours(23,59,59,999),r}var Mie=ou;function us(e,t){let r=v(e,t?.in);return r.setFullYear(r.getFullYear(),0,1),r.setHours(0,0,0,0),r}var Aie=us;function Av(e,t){let r=us(e,t),n=ou(e,t);return cs({start:r,end:n},t)}var Pie=Av;function _v(e,t){let{start:r,end:n}=Mt(t?.in,e),o=+r>+n,i=o?+r:+n,s=o?n:r;s.setHours(0,0,0,0),s.setMonth(0,1);let a=t?.step??1;if(!a)return[];a<0&&(a=-a,o=!o);let l=[];for(;+s<=i;)l.push(R(r,s)),s.setFullYear(s.getFullYear()+a);return o?l.reverse():l}var zie=_v;function Ov(e,t){let r=v(e,t?.in),n=r.getFullYear(),o=9+Math.floor(n/10)*10;return r.setFullYear(o,11,31),r.setHours(23,59,59,999),r}var jie=Ov;function Lv(e,t){let r=v(e,t?.in);return r.setMinutes(59,59,999),r}var Wie=Lv;function iu(e,t){let r=Be(),n=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,o=v(e,t?.in),i=o.getDay(),s=(i<n?-7:0)+6-(i-n);return o.setDate(o.getDate()+s),o.setHours(23,59,59,999),o}var Xie=iu;function Nv(e,t){return iu(e,{...t,weekStartsOn:1})}var Kie=Nv;function Pv(e,t){let r=Zt(e,t),n=R(t?.in||e,0);n.setFullYear(r+1,0,4),n.setHours(0,0,0,0);let o=bt(n,t);return o.setMilliseconds(o.getMilliseconds()-1),o}var ose=Pv;function Fv(e,t){let r=v(e,t?.in);return r.setSeconds(59,999),r}var ase=Fv;function Rv(e,t){let r=v(e,t?.in),n=r.getMonth(),o=n-n%3+3;return r.setMonth(o,0),r.setHours(23,59,59,999),r}var use=Rv;function Bv(e,t){let r=v(e,t?.in);return r.setMilliseconds(999),r}var fse=Bv;function zv(e){return as(Date.now(),e)}var gse=zv;function Hv(e){let t=De(e?.in),r=t.getFullYear(),n=t.getMonth(),o=t.getDate(),i=De(e?.in);return i.setFullYear(r,n,o+1),i.setHours(23,59,59,999),e?.in?e.in(i):i}var bse=Hv;function Uv(e){let t=De(e?.in),r=R(e?.in,0);return r.setFullYear(t.getFullYear(),t.getMonth(),t.getDate()-1),r.setHours(23,59,59,999),r}var kse=Uv;var LL={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},jv=(e,t,r)=>{let n,o=LL[e];return typeof o=="string"?n=o:t===1?n=o.one:n=o.other.replace("{{count}}",t.toString()),r?.addSuffix?r.comparison&&r.comparison>0?"in "+n:n+" ago":n};function su(e){return(t={})=>{let r=t.width?String(t.width):e.defaultWidth;return e.formats[r]||e.formats[e.defaultWidth]}}var NL={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},PL={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},FL={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},qv={date:su({formats:NL,defaultWidth:"full"}),time:su({formats:PL,defaultWidth:"full"}),dateTime:su({formats:FL,defaultWidth:"full"})};var RL={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},Yv=(e,t,r,n)=>RL[e];function ds(e){return(t,r)=>{let n=r?.context?String(r.context):"standalone",o;if(n==="formatting"&&e.formattingValues){let s=e.defaultFormattingWidth||e.defaultWidth,a=r?.width?String(r.width):s;o=e.formattingValues[a]||e.formattingValues[s]}else{let s=e.defaultWidth,a=r?.width?String(r.width):e.defaultWidth;o=e.values[a]||e.values[s]}let i=e.argumentCallback?e.argumentCallback(t):t;return o[i]}}var BL={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},zL={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},HL={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},UL={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},jL={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},qL={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},YL=(e,t)=>{let r=Number(e),n=r%100;if(n>20||n<10)switch(n%10){case 1:return r+"st";case 2:return r+"nd";case 3:return r+"rd"}return r+"th"},Wv={ordinalNumber:YL,era:ds({values:BL,defaultWidth:"wide"}),quarter:ds({values:zL,defaultWidth:"wide",argumentCallback:e=>e-1}),month:ds({values:HL,defaultWidth:"wide"}),day:ds({values:UL,defaultWidth:"wide"}),dayPeriod:ds({values:jL,defaultWidth:"wide",formattingValues:qL,defaultFormattingWidth:"wide"})};function ps(e){return(t,r={})=>{let n=r.width,o=n&&e.matchPatterns[n]||e.matchPatterns[e.defaultMatchWidth],i=t.match(o);if(!i)return null;let s=i[0],a=n&&e.parsePatterns[n]||e.parsePatterns[e.defaultParseWidth],l=Array.isArray(a)?VL(a,d=>d.test(s)):WL(a,d=>d.test(s)),c;c=e.valueCallback?e.valueCallback(l):l,c=r.valueCallback?r.valueCallback(c):c;let u=t.slice(s.length);return{value:c,rest:u}}}function WL(e,t){for(let r in e)if(Object.prototype.hasOwnProperty.call(e,r)&&t(e[r]))return r}function VL(e,t){for(let r=0;r<e.length;r++)if(t(e[r]))return r}function Vv(e){return(t,r={})=>{let n=t.match(e.matchPattern);if(!n)return null;let o=n[0],i=t.match(e.parsePattern);if(!i)return null;let s=e.valueCallback?e.valueCallback(i[0]):i[0];s=r.valueCallback?r.valueCallback(s):s;let a=t.slice(o.length);return{value:s,rest:a}}}var GL=/^(\d+)(th|st|nd|rd)?/i,QL=/\d+/i,XL={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},JL={any:[/^b/i,/^(a|c)/i]},ZL={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},KL={any:[/1/i,/2/i,/3/i,/4/i]},eN={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},tN={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},rN={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},nN={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},oN={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},iN={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},Gv={ordinalNumber:Vv({matchPattern:GL,parsePattern:QL,valueCallback:e=>parseInt(e,10)}),era:ps({matchPatterns:XL,defaultMatchWidth:"wide",parsePatterns:JL,defaultParseWidth:"any"}),quarter:ps({matchPatterns:ZL,defaultMatchWidth:"wide",parsePatterns:KL,defaultParseWidth:"any",valueCallback:e=>e+1}),month:ps({matchPatterns:eN,defaultMatchWidth:"wide",parsePatterns:tN,defaultParseWidth:"any"}),day:ps({matchPatterns:rN,defaultMatchWidth:"wide",parsePatterns:nN,defaultParseWidth:"any"}),dayPeriod:ps({matchPatterns:oN,defaultMatchWidth:"any",parsePatterns:iN,defaultParseWidth:"any"})};var ar={code:"en-US",formatDistance:jv,formatLong:qv,formatRelative:Yv,localize:Wv,match:Gv,options:{weekStartsOn:0,firstWeekContainsDate:1}},jse=ar;function au(e,t){let r=v(e,t?.in);return Et(r,us(r))+1}var Xse=au;function fs(e,t){let r=v(e,t?.in),n=+bt(r)-+mr(r);return Math.round(n/rn)+1}var rae=fs;function eo(e,t){let r=v(e,t?.in),n=r.getFullYear(),o=Be(),i=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??o.firstWeekContainsDate??o.locale?.options?.firstWeekContainsDate??1,s=R(t?.in||e,0);s.setFullYear(n+1,0,i),s.setHours(0,0,0,0);let a=Ye(s,t),l=R(t?.in||e,0);l.setFullYear(n,0,i),l.setHours(0,0,0,0);let c=Ye(l,t);return+r>=+a?n+1:+r>=+c?n:n-1}var lae=eo;function Zo(e,t){let r=Be(),n=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??r.firstWeekContainsDate??r.locale?.options?.firstWeekContainsDate??1,o=eo(e,t),i=R(t?.in||e,0);return i.setFullYear(o,0,n),i.setHours(0,0,0,0),Ye(i,t)}var mae=Zo;function ms(e,t){let r=v(e,t?.in),n=+Ye(r,t)-+Zo(r,t);return Math.round(n/rn)+1}var vae=ms;function oe(e,t){let r=e<0?"-":"",n=Math.abs(e).toString().padStart(t,"0");return r+n}var hr={y(e,t){let r=e.getFullYear(),n=r>0?r:1-r;return oe(t==="yy"?n%100:n,t.length)},M(e,t){let r=e.getMonth();return t==="M"?String(r+1):oe(r+1,2)},d(e,t){return oe(e.getDate(),t.length)},a(e,t){let r=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.toUpperCase();case"aaa":return r;case"aaaaa":return r[0];default:return r==="am"?"a.m.":"p.m."}},h(e,t){return oe(e.getHours()%12||12,t.length)},H(e,t){return oe(e.getHours(),t.length)},m(e,t){return oe(e.getMinutes(),t.length)},s(e,t){return oe(e.getSeconds(),t.length)},S(e,t){let r=t.length,n=e.getMilliseconds(),o=Math.trunc(n*Math.pow(10,r-3));return oe(o,t.length)}};var hs={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},Ia={G:function(e,t,r){let n=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return r.era(n,{width:"abbreviated"});case"GGGGG":return r.era(n,{width:"narrow"});default:return r.era(n,{width:"wide"})}},y:function(e,t,r){if(t==="yo"){let n=e.getFullYear(),o=n>0?n:1-n;return r.ordinalNumber(o,{unit:"year"})}return hr.y(e,t)},Y:function(e,t,r,n){let o=eo(e,n),i=o>0?o:1-o;if(t==="YY"){let s=i%100;return oe(s,2)}return t==="Yo"?r.ordinalNumber(i,{unit:"year"}):oe(i,t.length)},R:function(e,t){let r=Zt(e);return oe(r,t.length)},u:function(e,t){let r=e.getFullYear();return oe(r,t.length)},Q:function(e,t,r){let n=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(n);case"QQ":return oe(n,2);case"Qo":return r.ordinalNumber(n,{unit:"quarter"});case"QQQ":return r.quarter(n,{width:"abbreviated",context:"formatting"});case"QQQQQ":return r.quarter(n,{width:"narrow",context:"formatting"});default:return r.quarter(n,{width:"wide",context:"formatting"})}},q:function(e,t,r){let n=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(n);case"qq":return oe(n,2);case"qo":return r.ordinalNumber(n,{unit:"quarter"});case"qqq":return r.quarter(n,{width:"abbreviated",context:"standalone"});case"qqqqq":return r.quarter(n,{width:"narrow",context:"standalone"});default:return r.quarter(n,{width:"wide",context:"standalone"})}},M:function(e,t,r){let n=e.getMonth();switch(t){case"M":case"MM":return hr.M(e,t);case"Mo":return r.ordinalNumber(n+1,{unit:"month"});case"MMM":return r.month(n,{width:"abbreviated",context:"formatting"});case"MMMMM":return r.month(n,{width:"narrow",context:"formatting"});default:return r.month(n,{width:"wide",context:"formatting"})}},L:function(e,t,r){let n=e.getMonth();switch(t){case"L":return String(n+1);case"LL":return oe(n+1,2);case"Lo":return r.ordinalNumber(n+1,{unit:"month"});case"LLL":return r.month(n,{width:"abbreviated",context:"standalone"});case"LLLLL":return r.month(n,{width:"narrow",context:"standalone"});default:return r.month(n,{width:"wide",context:"standalone"})}},w:function(e,t,r,n){let o=ms(e,n);return t==="wo"?r.ordinalNumber(o,{unit:"week"}):oe(o,t.length)},I:function(e,t,r){let n=fs(e);return t==="Io"?r.ordinalNumber(n,{unit:"week"}):oe(n,t.length)},d:function(e,t,r){return t==="do"?r.ordinalNumber(e.getDate(),{unit:"date"}):hr.d(e,t)},D:function(e,t,r){let n=au(e);return t==="Do"?r.ordinalNumber(n,{unit:"dayOfYear"}):oe(n,t.length)},E:function(e,t,r){let n=e.getDay();switch(t){case"E":case"EE":case"EEE":return r.day(n,{width:"abbreviated",context:"formatting"});case"EEEEE":return r.day(n,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(n,{width:"short",context:"formatting"});default:return r.day(n,{width:"wide",context:"formatting"})}},e:function(e,t,r,n){let o=e.getDay(),i=(o-n.weekStartsOn+8)%7||7;switch(t){case"e":return String(i);case"ee":return oe(i,2);case"eo":return r.ordinalNumber(i,{unit:"day"});case"eee":return r.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return r.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(o,{width:"short",context:"formatting"});default:return r.day(o,{width:"wide",context:"formatting"})}},c:function(e,t,r,n){let o=e.getDay(),i=(o-n.weekStartsOn+8)%7||7;switch(t){case"c":return String(i);case"cc":return oe(i,t.length);case"co":return r.ordinalNumber(i,{unit:"day"});case"ccc":return r.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return r.day(o,{width:"narrow",context:"standalone"});case"cccccc":return r.day(o,{width:"short",context:"standalone"});default:return r.day(o,{width:"wide",context:"standalone"})}},i:function(e,t,r){let n=e.getDay(),o=n===0?7:n;switch(t){case"i":return String(o);case"ii":return oe(o,t.length);case"io":return r.ordinalNumber(o,{unit:"day"});case"iii":return r.day(n,{width:"abbreviated",context:"formatting"});case"iiiii":return r.day(n,{width:"narrow",context:"formatting"});case"iiiiii":return r.day(n,{width:"short",context:"formatting"});default:return r.day(n,{width:"wide",context:"formatting"})}},a:function(e,t,r){let o=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"aaa":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return r.dayPeriod(o,{width:"narrow",context:"formatting"});default:return r.dayPeriod(o,{width:"wide",context:"formatting"})}},b:function(e,t,r){let n=e.getHours(),o;switch(n===12?o=hs.noon:n===0?o=hs.midnight:o=n/12>=1?"pm":"am",t){case"b":case"bb":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"bbb":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return r.dayPeriod(o,{width:"narrow",context:"formatting"});default:return r.dayPeriod(o,{width:"wide",context:"formatting"})}},B:function(e,t,r){let n=e.getHours(),o;switch(n>=17?o=hs.evening:n>=12?o=hs.afternoon:n>=4?o=hs.morning:o=hs.night,t){case"B":case"BB":case"BBB":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"BBBBB":return r.dayPeriod(o,{width:"narrow",context:"formatting"});default:return r.dayPeriod(o,{width:"wide",context:"formatting"})}},h:function(e,t,r){if(t==="ho"){let n=e.getHours()%12;return n===0&&(n=12),r.ordinalNumber(n,{unit:"hour"})}return hr.h(e,t)},H:function(e,t,r){return t==="Ho"?r.ordinalNumber(e.getHours(),{unit:"hour"}):hr.H(e,t)},K:function(e,t,r){let n=e.getHours()%12;return t==="Ko"?r.ordinalNumber(n,{unit:"hour"}):oe(n,t.length)},k:function(e,t,r){let n=e.getHours();return n===0&&(n=24),t==="ko"?r.ordinalNumber(n,{unit:"hour"}):oe(n,t.length)},m:function(e,t,r){return t==="mo"?r.ordinalNumber(e.getMinutes(),{unit:"minute"}):hr.m(e,t)},s:function(e,t,r){return t==="so"?r.ordinalNumber(e.getSeconds(),{unit:"second"}):hr.s(e,t)},S:function(e,t){return hr.S(e,t)},X:function(e,t,r){let n=e.getTimezoneOffset();if(n===0)return"Z";switch(t){case"X":return Xv(n);case"XXXX":case"XX":return Ko(n);default:return Ko(n,":")}},x:function(e,t,r){let n=e.getTimezoneOffset();switch(t){case"x":return Xv(n);case"xxxx":case"xx":return Ko(n);default:return Ko(n,":")}},O:function(e,t,r){let n=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+Qv(n,":");default:return"GMT"+Ko(n,":")}},z:function(e,t,r){let n=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+Qv(n,":");default:return"GMT"+Ko(n,":")}},t:function(e,t,r){let n=Math.trunc(+e/1e3);return oe(n,t.length)},T:function(e,t,r){return oe(+e,t.length)}};function Qv(e,t=""){let r=e>0?"-":"+",n=Math.abs(e),o=Math.trunc(n/60),i=n%60;return i===0?r+String(o):r+String(o)+t+oe(i,2)}function Xv(e,t){return e%60===0?(e>0?"-":"+")+oe(Math.abs(e)/60,2):Ko(e,t)}function Ko(e,t=""){let r=e>0?"-":"+",n=Math.abs(e),o=oe(Math.trunc(n/60),2),i=oe(n%60,2);return r+o+t+i}var Jv=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});default:return t.date({width:"full"})}},Zv=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});default:return t.time({width:"full"})}},sN=(e,t)=>{let r=e.match(/(P+)(p+)?/)||[],n=r[1],o=r[2];if(!o)return Jv(e,t);let i;switch(n){case"P":i=t.dateTime({width:"short"});break;case"PP":i=t.dateTime({width:"medium"});break;case"PPP":i=t.dateTime({width:"long"});break;default:i=t.dateTime({width:"full"});break}return i.replace("{{date}}",Jv(n,t)).replace("{{time}}",Zv(o,t))},to={p:Zv,P:sN};var aN=/^D+$/,lN=/^Y+$/,cN=["D","DD","YY","YYYY"];function lu(e){return aN.test(e)}function cu(e){return lN.test(e)}function $a(e,t,r){let n=uN(e,t,r);if(console.warn(n),cN.includes(e))throw new RangeError(n)}function uN(e,t,r){let n=e[0]==="Y"?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${n} to the input \`${r}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}var dN=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,pN=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,fN=/^'([^]*?)'?$/,mN=/''/g,hN=/[a-zA-Z]/;function Aa(e,t,r){let n=Be(),o=r?.locale??n.locale??ar,i=r?.firstWeekContainsDate??r?.locale?.options?.firstWeekContainsDate??n.firstWeekContainsDate??n.locale?.options?.firstWeekContainsDate??1,s=r?.weekStartsOn??r?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,a=v(e,r?.in);if(!Lt(a))throw new RangeError("Invalid time value");let l=t.match(pN).map(u=>{let d=u[0];if(d==="p"||d==="P"){let p=to[d];return p(u,o.formatLong)}return u}).join("").match(dN).map(u=>{if(u==="''")return{isToken:!1,value:"'"};let d=u[0];if(d==="'")return{isToken:!1,value:gN(u)};if(Ia[d])return{isToken:!0,value:u};if(d.match(hN))throw new RangeError("Format string contains an unescaped latin alphabet character `"+d+"`");return{isToken:!1,value:u}});o.localize.preprocessor&&(l=o.localize.preprocessor(a,l));let c={firstWeekContainsDate:i,weekStartsOn:s,locale:o};return l.map(u=>{if(!u.isToken)return u.value;let d=u.value;(!r?.useAdditionalWeekYearTokens&&cu(d)||!r?.useAdditionalDayOfYearTokens&&lu(d))&&$a(d,t,String(e));let p=Ia[d[0]];return p(a,d,o.localize,c)}).join("")}function gN(e){let t=e.match(fN);return t?t[1].replace(mN,"'"):e}var Uae=Aa;function uu(e,t,r){let n=Be(),o=r?.locale??n.locale??ar,i=2520,s=Bt(e,t);if(isNaN(s))throw new RangeError("Invalid time value");let a=Object.assign({},r,{addSuffix:r?.addSuffix,comparison:s}),[l,c]=ce(r?.in,...s>0?[t,e]:[e,t]),u=ln(c,l),d=(ot(c)-ot(l))/1e3,p=Math.round((u-d)/60),f;if(p<2)return r?.includeSeconds?u<5?o.formatDistance("lessThanXSeconds",5,a):u<10?o.formatDistance("lessThanXSeconds",10,a):u<20?o.formatDistance("lessThanXSeconds",20,a):u<40?o.formatDistance("halfAMinute",0,a):u<60?o.formatDistance("lessThanXMinutes",1,a):o.formatDistance("xMinutes",1,a):p===0?o.formatDistance("lessThanXMinutes",1,a):o.formatDistance("xMinutes",p,a);if(p<45)return o.formatDistance("xMinutes",p,a);if(p<90)return o.formatDistance("aboutXHours",1,a);if(p<es){let m=Math.round(p/60);return o.formatDistance("aboutXHours",m,a)}else{if(p<i)return o.formatDistance("xDays",1,a);if(p<Vn){let m=Math.round(p/es);return o.formatDistance("xDays",m,a)}else if(p<Vn*2)return f=Math.round(p/Vn),o.formatDistance("aboutXMonths",f,a)}if(f=Zn(c,l),f<12){let m=Math.round(p/Vn);return o.formatDistance("xMonths",m,a)}else{let m=f%12,g=Math.trunc(f/12);return m<3?o.formatDistance("aboutXYears",g,a):m<9?o.formatDistance("overXYears",g,a):o.formatDistance("almostXYears",g+1,a)}}var Zae=uu;function du(e,t,r){let n=Be(),o=r?.locale??n.locale??ar,i=Bt(e,t);if(isNaN(i))throw new RangeError("Invalid time value");let s=Object.assign({},r,{addSuffix:r?.addSuffix,comparison:i}),[a,l]=ce(r?.in,...i>0?[t,e]:[e,t]),c=zt(r?.roundingMethod??"round"),u=l.getTime()-a.getTime(),d=u/Rt,p=ot(l)-ot(a),f=(u-p)/Rt,m=r?.unit,g;if(m?g=m:d<1?g="second":d<60?g="minute":d<es?g="hour":f<Vn?g="day":f<um?g="month":g="year",g==="second"){let x=c(u/1e3);return o.formatDistance("xSeconds",x,s)}else if(g==="minute"){let x=c(d);return o.formatDistance("xMinutes",x,s)}else if(g==="hour"){let x=c(d/60);return o.formatDistance("xHours",x,s)}else if(g==="day"){let x=c(f/es);return o.formatDistance("xDays",x,s)}else if(g==="month"){let x=c(f/Vn);return x===12&&m!=="month"?o.formatDistance("xYears",1,s):o.formatDistance("xMonths",x,s)}else{let x=c(f/um);return o.formatDistance("xYears",x,s)}}var ale=du;function Kv(e,t){return uu(e,De(e),t)}var dle=Kv;function ew(e,t){return du(e,De(e),t)}var hle=ew;var xN=["years","months","weeks","days","hours","minutes","seconds"];function tw(e,t){let r=Be(),n=t?.locale??r.locale??ar,o=t?.format??xN,i=t?.zero??!1,s=t?.delimiter??" ";return n.formatDistance?o.reduce((l,c)=>{let u=`x${c.replace(/(^.)/,p=>p.toUpperCase())}`,d=e[c];return d!==void 0&&(i||e[c])?l.concat(n.formatDistance(u,d)):l},[]).join(s):""}var ble=tw;function rw(e,t){let r=v(e,t?.in);if(isNaN(+r))throw new RangeError("Invalid time value");let n=t?.format??"extended",o=t?.representation??"complete",i="",s="",a=n==="extended"?"-":"",l=n==="extended"?":":"";if(o!=="time"){let c=oe(r.getDate(),2),u=oe(r.getMonth()+1,2);i=`${oe(r.getFullYear(),4)}${a}${u}${a}${c}`}if(o!=="date"){let c=r.getTimezoneOffset();if(c!==0){let g=Math.abs(c),x=oe(Math.trunc(g/60),2),y=oe(g%60,2);s=`${c<0?"+":"-"}${x}:${y}`}else s="Z";let u=oe(r.getHours(),2),d=oe(r.getMinutes(),2),p=oe(r.getSeconds(),2),f=i===""?"":"T",m=[u,d,p].join(l);i=`${i}${f}${m}${s}`}return i}var kle=rw;function nw(e,t){let r=v(e,t?.in);if(!Lt(r))throw new RangeError("Invalid time value");let n=t?.format??"extended",o=t?.representation??"complete",i="",s=n==="extended"?"-":"",a=n==="extended"?":":"";if(o!=="time"){let l=oe(r.getDate(),2),c=oe(r.getMonth()+1,2);i=`${oe(r.getFullYear(),4)}${s}${c}${s}${l}`}if(o!=="date"){let l=oe(r.getHours(),2),c=oe(r.getMinutes(),2),u=oe(r.getSeconds(),2);i=`${i}${i===""?"":" "}${l}${a}${c}${a}${u}`}return i}var Mle=nw;function ow(e){let{years:t=0,months:r=0,days:n=0,hours:o=0,minutes:i=0,seconds:s=0}=e;return`P${t}Y${r}M${n}DT${o}H${i}M${s}S`}var $le=ow;function iw(e,t){let r=v(e,t?.in);if(!Lt(r))throw new RangeError("Invalid time value");let n=t?.fractionDigits??0,o=oe(r.getDate(),2),i=oe(r.getMonth()+1,2),s=r.getFullYear(),a=oe(r.getHours(),2),l=oe(r.getMinutes(),2),c=oe(r.getSeconds(),2),u="";if(n>0){let f=r.getMilliseconds(),m=Math.trunc(f*Math.pow(10,n-3));u="."+oe(m,n)}let d="",p=r.getTimezoneOffset();if(p!==0){let f=Math.abs(p),m=oe(Math.trunc(f/60),2),g=oe(f%60,2);d=`${p<0?"+":"-"}${m}:${g}`}else d="Z";return`${s}-${i}-${o}T${a}:${l}:${c}${u}${d}`}var Nle=iw;var yN=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],bN=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function sw(e){let t=v(e);if(!Lt(t))throw new RangeError("Invalid time value");let r=yN[t.getUTCDay()],n=oe(t.getUTCDate(),2),o=bN[t.getUTCMonth()],i=t.getUTCFullYear(),s=oe(t.getUTCHours(),2),a=oe(t.getUTCMinutes(),2),l=oe(t.getUTCSeconds(),2);return`${r}, ${n} ${o} ${i} ${s}:${a}:${l} GMT`}var zle=sw;function aw(e,t,r){let[n,o]=ce(r?.in,e,t),i=Be(),s=r?.locale??i.locale??ar,a=r?.weekStartsOn??r?.locale?.options?.weekStartsOn??i.weekStartsOn??i.locale?.options?.weekStartsOn??0,l=Et(n,o);if(isNaN(l))throw new RangeError("Invalid time value");let c;l<-6?c="other":l<-1?c="lastWeek":l<0?c="yesterday":l<1?c="today":l<2?c="tomorrow":l<7?c="nextWeek":c="other";let u=s.formatRelative(c,n,o,{locale:s,weekStartsOn:a});return Aa(n,u,{locale:s,weekStartsOn:a})}var Vle=aw;function lw(e,t){return v(e*1e3,t?.in)}var Xle=lw;function pu(e,t){return v(e,t?.in).getDate()}var Kle=pu;function ro(e,t){return v(e,t?.in).getDay()}var rce=ro;function fu(e,t){let r=v(e,t?.in),n=r.getFullYear(),o=r.getMonth(),i=R(r,0);return i.setFullYear(n,o+1,0),i.setHours(0,0,0,0),i.getDate()}var sce=fu;function mu(e,t){let n=v(e,t?.in).getFullYear();return n%400===0||n%4===0&&n%100!==0}var cce=mu;function cw(e,t){let r=v(e,t?.in);return Number.isNaN(+r)?NaN:mu(r)?366:365}var fce=cw;function uw(e,t){let n=v(e,t?.in).getFullYear();return Math.floor(n/10)*10}var gce=uw;function hu(){return Object.assign({},Be())}var bce=hu;function dw(e,t){return v(e,t?.in).getHours()}var Sce=dw;function gu(e,t){let r=v(e,t?.in).getDay();return r===0?7:r}var Dce=gu;function pw(e,t){let r=mr(e,t),o=+mr(Xn(r,60))-+r;return Math.round(o/rn)}var $ce=pw;function fw(e){return v(e).getMilliseconds()}var Oce=fw;function mw(e,t){return v(e,t?.in).getMinutes()}var Pce=mw;function hw(e,t){return v(e,t?.in).getMonth()}var Bce=hw;function gw(e,t){let[r,n]=[+v(e.start),+v(e.end)].sort((d,p)=>d-p),[o,i]=[+v(t.start),+v(t.end)].sort((d,p)=>d-p);if(!(r<i&&o<n))return 0;let a=o<r?r:o,l=a-ot(a),c=i>n?n:i,u=c-ot(c);return Math.ceil((u-l)/Pc)}var qce=gw;function xw(e){return v(e).getSeconds()}var Vce=xw;function yw(e){return+v(e)}var Xce=yw;function bw(e){return Math.trunc(+v(e)/1e3)}var Kce=bw;function vw(e,t){let r=Be(),n=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,o=pu(v(e,t?.in));if(isNaN(o))return NaN;let i=ro(Kn(e,t)),s=n-i;s<=0&&(s+=7);let a=o-s;return Math.ceil(a/7)+1}var sue=vw;function xu(e,t){let r=v(e,t?.in),n=r.getMonth();return r.setFullYear(r.getFullYear(),n+1,0),r.setHours(0,0,0,0),v(r,t?.in)}var cue=xu;function ww(e,t){let r=v(e,t?.in);return Qo(xu(r,t),Kn(r,t),t)+1}var hue=ww;function Sw(e,t){return v(e,t?.in).getFullYear()}var yue=Sw;function kw(e){return Math.trunc(e*fr)}var wue=kw;function Tw(e){return Math.trunc(e*Fc)}var Tue=Tw;function Dw(e){return Math.trunc(e*Vo)}var Eue=Dw;function Cw(e,t,r){let[n,o]=ce(r?.in,e,t);if(isNaN(+n))throw new TypeError("Start date is invalid");if(isNaN(+o))throw new TypeError("End date is invalid");if(r?.assertPositive&&+n>+o)throw new TypeError("End date must be after start date");return{start:n,end:o}}var $ue=Cw;function Ew(e,t){let{start:r,end:n}=Mt(t?.in,e),o={},i=ru(n,r);i&&(o.years=i);let s=Gn(r,{years:o.years}),a=Zn(n,s);a&&(o.months=a);let l=Gn(s,{months:o.months}),c=is(n,l);c&&(o.days=c);let u=Gn(l,{days:o.days}),d=Xo(n,u);d&&(o.hours=d);let p=Gn(u,{hours:o.hours}),f=Jo(n,p);f&&(o.minutes=f);let m=Gn(p,{minutes:o.minutes}),g=ln(n,m);return g&&(o.seconds=g),o}var zue=Ew;function Mw(e,t,r){let n;return vN(t)?n=t:r=t,new Intl.DateTimeFormat(r?.locale,n).format(v(e))}function vN(e){return e!==void 0&&!("locale"in e)}var jue=Mw;function Iw(e,t,r){let n=0,o,[i,s]=ce(r?.in,e,t);if(r?.unit)o=r?.unit,o==="second"?n=ln(i,s):o==="minute"?n=Jo(i,s):o==="hour"?n=Xo(i,s):o==="day"?n=Et(i,s):o==="week"?n=Qo(i,s):o==="month"?n=Go(i,s):o==="quarter"?n=os(i,s):o==="year"&&(n=Jn(i,s));else{let l=ln(i,s);Math.abs(l)<ts?(n=ln(i,s),o="second"):Math.abs(l)<Vo?(n=Jo(i,s),o="minute"):Math.abs(l)<Lc&&Math.abs(Et(i,s))<1?(n=Xo(i,s),o="hour"):Math.abs(l)<uv&&(n=Et(i,s))&&Math.abs(n)<7?o="day":Math.abs(l)<pm?(n=Qo(i,s),o="week"):Math.abs(l)<dv?(n=Go(i,s),o="month"):Math.abs(l)<dm?os(i,s)<4?(n=os(i,s),o="quarter"):(n=Jn(i,s),o="year"):(n=Jn(i,s),o="year")}return new Intl.RelativeTimeFormat(r?.locale,{numeric:"auto",...r}).format(n,o)}var tde=Iw;function $w(e,t){return+v(e)>+v(t)}var ode=$w;function Aw(e,t){return+v(e)<+v(t)}var ade=Aw;function _w(e,t){return+v(e)==+v(t)}var ude=_w;function Ow(e,t,r){let n=new Date(e,t,r);return n.getFullYear()===e&&n.getMonth()===t&&n.getDate()===r}var pde=Ow;function Lw(e,t){return v(e,t?.in).getDate()===1}var hde=Lw;function Nw(e,t){return v(e,t?.in).getDay()===5}var yde=Nw;function Pw(e){return+v(e)>Date.now()}var wde=Pw;function yu(e,t){let r=wN(t)?new t(0):R(t,0);return r.setFullYear(e.getFullYear(),e.getMonth(),e.getDate()),r.setHours(e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()),r}function wN(e){return typeof e=="function"&&e.prototype?.constructor===e}var Tde=yu;var SN=10,bu=class{subPriority=0;validate(t,r){return!0}},vu=class extends bu{constructor(t,r,n,o,i){super(),this.value=t,this.validateValue=r,this.setValue=n,this.priority=o,i&&(this.subPriority=i)}validate(t,r){return this.validateValue(t,this.value,r)}set(t,r,n){return this.setValue(t,r,this.value,n)}},wu=class extends bu{priority=SN;subPriority=-1;constructor(t,r){super(),this.context=t||(n=>R(r,n))}set(t,r){return r.timestampIsSet?t:R(t,yu(t,this.context))}};var ne=class{run(t,r,n,o){let i=this.parse(t,r,n,o);return i?{setter:new vu(i.value,this.validate,this.set,this.priority,this.subPriority),rest:i.rest}:null}validate(t,r,n){return!0}};var Su=class extends ne{priority=140;parse(t,r,n){switch(r){case"G":case"GG":case"GGG":return n.era(t,{width:"abbreviated"})||n.era(t,{width:"narrow"});case"GGGGG":return n.era(t,{width:"narrow"});default:return n.era(t,{width:"wide"})||n.era(t,{width:"abbreviated"})||n.era(t,{width:"narrow"})}}set(t,r,n){return r.era=n,t.setFullYear(n,0,1),t.setHours(0,0,0,0),t}incompatibleTokens=["R","u","t","T"]};var Ae={month:/^(1[0-2]|0?\d)/,date:/^(3[0-1]|[0-2]?\d)/,dayOfYear:/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,week:/^(5[0-3]|[0-4]?\d)/,hour23h:/^(2[0-3]|[0-1]?\d)/,hour24h:/^(2[0-4]|[0-1]?\d)/,hour11h:/^(1[0-1]|0?\d)/,hour12h:/^(1[0-2]|0?\d)/,minute:/^[0-5]?\d/,second:/^[0-5]?\d/,singleDigit:/^\d/,twoDigits:/^\d{1,2}/,threeDigits:/^\d{1,3}/,fourDigits:/^\d{1,4}/,anyDigitsSigned:/^-?\d+/,singleDigitSigned:/^-?\d/,twoDigitsSigned:/^-?\d{1,2}/,threeDigitsSigned:/^-?\d{1,3}/,fourDigitsSigned:/^-?\d{1,4}/},Cr={basicOptionalMinutes:/^([+-])(\d{2})(\d{2})?|Z/,basic:/^([+-])(\d{2})(\d{2})|Z/,basicOptionalSeconds:/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,extended:/^([+-])(\d{2}):(\d{2})|Z/,extendedOptionalSeconds:/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/};function He(e,t){return e&&{value:t(e.value),rest:e.rest}}function $e(e,t){let r=t.match(e);return r?{value:parseInt(r[0],10),rest:t.slice(r[0].length)}:null}function Er(e,t){let r=t.match(e);if(!r)return null;if(r[0]==="Z")return{value:0,rest:t.slice(1)};let n=r[1]==="+"?1:-1,o=r[2]?parseInt(r[2],10):0,i=r[3]?parseInt(r[3],10):0,s=r[5]?parseInt(r[5],10):0;return{value:n*(o*fr+i*Rt+s*Ki),rest:t.slice(r[0].length)}}function ku(e){return $e(Ae.anyDigitsSigned,e)}function Te(e,t){switch(e){case 1:return $e(Ae.singleDigit,t);case 2:return $e(Ae.twoDigits,t);case 3:return $e(Ae.threeDigits,t);case 4:return $e(Ae.fourDigits,t);default:return $e(new RegExp("^\\d{1,"+e+"}"),t)}}function gs(e,t){switch(e){case 1:return $e(Ae.singleDigitSigned,t);case 2:return $e(Ae.twoDigitsSigned,t);case 3:return $e(Ae.threeDigitsSigned,t);case 4:return $e(Ae.fourDigitsSigned,t);default:return $e(new RegExp("^-?\\d{1,"+e+"}"),t)}}function xs(e){switch(e){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;default:return 0}}function Tu(e,t){let r=t>0,n=r?t:1-t,o;if(n<=50)o=e||100;else{let i=n+50,s=Math.trunc(i/100)*100,a=e>=i%100;o=e+s-(a?100:0)}return r?o:1-o}function Du(e){return e%400===0||e%4===0&&e%100!==0}var Cu=class extends ne{priority=130;incompatibleTokens=["Y","R","u","w","I","i","e","c","t","T"];parse(t,r,n){let o=i=>({year:i,isTwoDigitYear:r==="yy"});switch(r){case"y":return He(Te(4,t),o);case"yo":return He(n.ordinalNumber(t,{unit:"year"}),o);default:return He(Te(r.length,t),o)}}validate(t,r){return r.isTwoDigitYear||r.year>0}set(t,r,n){let o=t.getFullYear();if(n.isTwoDigitYear){let s=Tu(n.year,o);return t.setFullYear(s,0,1),t.setHours(0,0,0,0),t}let i=!("era"in r)||r.era===1?n.year:1-n.year;return t.setFullYear(i,0,1),t.setHours(0,0,0,0),t}};var Eu=class extends ne{priority=130;parse(t,r,n){let o=i=>({year:i,isTwoDigitYear:r==="YY"});switch(r){case"Y":return He(Te(4,t),o);case"Yo":return He(n.ordinalNumber(t,{unit:"year"}),o);default:return He(Te(r.length,t),o)}}validate(t,r){return r.isTwoDigitYear||r.year>0}set(t,r,n,o){let i=eo(t,o);if(n.isTwoDigitYear){let a=Tu(n.year,i);return t.setFullYear(a,0,o.firstWeekContainsDate),t.setHours(0,0,0,0),Ye(t,o)}let s=!("era"in r)||r.era===1?n.year:1-n.year;return t.setFullYear(s,0,o.firstWeekContainsDate),t.setHours(0,0,0,0),Ye(t,o)}incompatibleTokens=["y","R","u","Q","q","M","L","I","d","D","i","t","T"]};var Mu=class extends ne{priority=130;parse(t,r){return r==="R"?gs(4,t):gs(r.length,t)}set(t,r,n){let o=R(t,0);return o.setFullYear(n,0,4),o.setHours(0,0,0,0),bt(o)}incompatibleTokens=["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"]};var Iu=class extends ne{priority=130;parse(t,r){return r==="u"?gs(4,t):gs(r.length,t)}set(t,r,n){return t.setFullYear(n,0,1),t.setHours(0,0,0,0),t}incompatibleTokens=["G","y","Y","R","w","I","i","e","c","t","T"]};var $u=class extends ne{priority=120;parse(t,r,n){switch(r){case"Q":case"QQ":return Te(r.length,t);case"Qo":return n.ordinalNumber(t,{unit:"quarter"});case"QQQ":return n.quarter(t,{width:"abbreviated",context:"formatting"})||n.quarter(t,{width:"narrow",context:"formatting"});case"QQQQQ":return n.quarter(t,{width:"narrow",context:"formatting"});default:return n.quarter(t,{width:"wide",context:"formatting"})||n.quarter(t,{width:"abbreviated",context:"formatting"})||n.quarter(t,{width:"narrow",context:"formatting"})}}validate(t,r){return r>=1&&r<=4}set(t,r,n){return t.setMonth((n-1)*3,1),t.setHours(0,0,0,0),t}incompatibleTokens=["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"]};var Au=class extends ne{priority=120;parse(t,r,n){switch(r){case"q":case"qq":return Te(r.length,t);case"qo":return n.ordinalNumber(t,{unit:"quarter"});case"qqq":return n.quarter(t,{width:"abbreviated",context:"standalone"})||n.quarter(t,{width:"narrow",context:"standalone"});case"qqqqq":return n.quarter(t,{width:"narrow",context:"standalone"});default:return n.quarter(t,{width:"wide",context:"standalone"})||n.quarter(t,{width:"abbreviated",context:"standalone"})||n.quarter(t,{width:"narrow",context:"standalone"})}}validate(t,r){return r>=1&&r<=4}set(t,r,n){return t.setMonth((n-1)*3,1),t.setHours(0,0,0,0),t}incompatibleTokens=["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"]};var _u=class extends ne{incompatibleTokens=["Y","R","q","Q","L","w","I","D","i","e","c","t","T"];priority=110;parse(t,r,n){let o=i=>i-1;switch(r){case"M":return He($e(Ae.month,t),o);case"MM":return He(Te(2,t),o);case"Mo":return He(n.ordinalNumber(t,{unit:"month"}),o);case"MMM":return n.month(t,{width:"abbreviated",context:"formatting"})||n.month(t,{width:"narrow",context:"formatting"});case"MMMMM":return n.month(t,{width:"narrow",context:"formatting"});default:return n.month(t,{width:"wide",context:"formatting"})||n.month(t,{width:"abbreviated",context:"formatting"})||n.month(t,{width:"narrow",context:"formatting"})}}validate(t,r){return r>=0&&r<=11}set(t,r,n){return t.setMonth(n,1),t.setHours(0,0,0,0),t}};var Ou=class extends ne{priority=110;parse(t,r,n){let o=i=>i-1;switch(r){case"L":return He($e(Ae.month,t),o);case"LL":return He(Te(2,t),o);case"Lo":return He(n.ordinalNumber(t,{unit:"month"}),o);case"LLL":return n.month(t,{width:"abbreviated",context:"standalone"})||n.month(t,{width:"narrow",context:"standalone"});case"LLLLL":return n.month(t,{width:"narrow",context:"standalone"});default:return n.month(t,{width:"wide",context:"standalone"})||n.month(t,{width:"abbreviated",context:"standalone"})||n.month(t,{width:"narrow",context:"standalone"})}}validate(t,r){return r>=0&&r<=11}set(t,r,n){return t.setMonth(n,1),t.setHours(0,0,0,0),t}incompatibleTokens=["Y","R","q","Q","M","w","I","D","i","e","c","t","T"]};function Lu(e,t,r){let n=v(e,r?.in),o=ms(n,r)-t;return n.setDate(n.getDate()-o*7),v(n,r?.in)}var hpe=Lu;var Nu=class extends ne{priority=100;parse(t,r,n){switch(r){case"w":return $e(Ae.week,t);case"wo":return n.ordinalNumber(t,{unit:"week"});default:return Te(r.length,t)}}validate(t,r){return r>=1&&r<=53}set(t,r,n,o){return Ye(Lu(t,n,o),o)}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","i","t","T"]};function Pu(e,t,r){let n=v(e,r?.in),o=fs(n,r)-t;return n.setDate(n.getDate()-o*7),n}var Dpe=Pu;var Fu=class extends ne{priority=100;parse(t,r,n){switch(r){case"I":return $e(Ae.week,t);case"Io":return n.ordinalNumber(t,{unit:"week"});default:return Te(r.length,t)}}validate(t,r){return r>=1&&r<=53}set(t,r,n){return bt(Pu(t,n))}incompatibleTokens=["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"]};var kN=[31,28,31,30,31,30,31,31,30,31,30,31],TN=[31,29,31,30,31,30,31,31,30,31,30,31],Ru=class extends ne{priority=90;subPriority=1;parse(t,r,n){switch(r){case"d":return $e(Ae.date,t);case"do":return n.ordinalNumber(t,{unit:"date"});default:return Te(r.length,t)}}validate(t,r){let n=t.getFullYear(),o=Du(n),i=t.getMonth();return o?r>=1&&r<=TN[i]:r>=1&&r<=kN[i]}set(t,r,n){return t.setDate(n),t.setHours(0,0,0,0),t}incompatibleTokens=["Y","R","q","Q","w","I","D","i","e","c","t","T"]};var Bu=class extends ne{priority=90;subpriority=1;parse(t,r,n){switch(r){case"D":case"DD":return $e(Ae.dayOfYear,t);case"Do":return n.ordinalNumber(t,{unit:"date"});default:return Te(r.length,t)}}validate(t,r){let n=t.getFullYear();return Du(n)?r>=1&&r<=366:r>=1&&r<=365}set(t,r,n){return t.setMonth(0,n),t.setHours(0,0,0,0),t}incompatibleTokens=["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"]};function no(e,t,r){let n=Be(),o=r?.weekStartsOn??r?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,i=v(e,r?.in),s=i.getDay(),l=(t%7+7)%7,c=7-o,u=t<0||t>6?t-(s+c)%7:(l+c)%7-(s+c)%7;return St(i,u,r)}var qpe=no;var zu=class extends ne{priority=90;parse(t,r,n){switch(r){case"E":case"EE":case"EEE":return n.day(t,{width:"abbreviated",context:"formatting"})||n.day(t,{width:"short",context:"formatting"})||n.day(t,{width:"narrow",context:"formatting"});case"EEEEE":return n.day(t,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(t,{width:"short",context:"formatting"})||n.day(t,{width:"narrow",context:"formatting"});default:return n.day(t,{width:"wide",context:"formatting"})||n.day(t,{width:"abbreviated",context:"formatting"})||n.day(t,{width:"short",context:"formatting"})||n.day(t,{width:"narrow",context:"formatting"})}}validate(t,r){return r>=0&&r<=6}set(t,r,n,o){return t=no(t,n,o),t.setHours(0,0,0,0),t}incompatibleTokens=["D","i","e","c","t","T"]};var Hu=class extends ne{priority=90;parse(t,r,n,o){let i=s=>{let a=Math.floor((s-1)/7)*7;return(s+o.weekStartsOn+6)%7+a};switch(r){case"e":case"ee":return He(Te(r.length,t),i);case"eo":return He(n.ordinalNumber(t,{unit:"day"}),i);case"eee":return n.day(t,{width:"abbreviated",context:"formatting"})||n.day(t,{width:"short",context:"formatting"})||n.day(t,{width:"narrow",context:"formatting"});case"eeeee":return n.day(t,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(t,{width:"short",context:"formatting"})||n.day(t,{width:"narrow",context:"formatting"});default:return n.day(t,{width:"wide",context:"formatting"})||n.day(t,{width:"abbreviated",context:"formatting"})||n.day(t,{width:"short",context:"formatting"})||n.day(t,{width:"narrow",context:"formatting"})}}validate(t,r){return r>=0&&r<=6}set(t,r,n,o){return t=no(t,n,o),t.setHours(0,0,0,0),t}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"]};var Uu=class extends ne{priority=90;parse(t,r,n,o){let i=s=>{let a=Math.floor((s-1)/7)*7;return(s+o.weekStartsOn+6)%7+a};switch(r){case"c":case"cc":return He(Te(r.length,t),i);case"co":return He(n.ordinalNumber(t,{unit:"day"}),i);case"ccc":return n.day(t,{width:"abbreviated",context:"standalone"})||n.day(t,{width:"short",context:"standalone"})||n.day(t,{width:"narrow",context:"standalone"});case"ccccc":return n.day(t,{width:"narrow",context:"standalone"});case"cccccc":return n.day(t,{width:"short",context:"standalone"})||n.day(t,{width:"narrow",context:"standalone"});default:return n.day(t,{width:"wide",context:"standalone"})||n.day(t,{width:"abbreviated",context:"standalone"})||n.day(t,{width:"short",context:"standalone"})||n.day(t,{width:"narrow",context:"standalone"})}}validate(t,r){return r>=0&&r<=6}set(t,r,n,o){return t=no(t,n,o),t.setHours(0,0,0,0),t}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"]};function ju(e,t,r){let n=v(e,r?.in),o=gu(n,r),i=t-o;return St(n,i,r)}var sfe=ju;var qu=class extends ne{priority=90;parse(t,r,n){let o=i=>i===0?7:i;switch(r){case"i":case"ii":return Te(r.length,t);case"io":return n.ordinalNumber(t,{unit:"day"});case"iii":return He(n.day(t,{width:"abbreviated",context:"formatting"})||n.day(t,{width:"short",context:"formatting"})||n.day(t,{width:"narrow",context:"formatting"}),o);case"iiiii":return He(n.day(t,{width:"narrow",context:"formatting"}),o);case"iiiiii":return He(n.day(t,{width:"short",context:"formatting"})||n.day(t,{width:"narrow",context:"formatting"}),o);default:return He(n.day(t,{width:"wide",context:"formatting"})||n.day(t,{width:"abbreviated",context:"formatting"})||n.day(t,{width:"short",context:"formatting"})||n.day(t,{width:"narrow",context:"formatting"}),o)}}validate(t,r){return r>=1&&r<=7}set(t,r,n){return t=ju(t,n),t.setHours(0,0,0,0),t}incompatibleTokens=["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"]};var Yu=class extends ne{priority=80;parse(t,r,n){switch(r){case"a":case"aa":case"aaa":return n.dayPeriod(t,{width:"abbreviated",context:"formatting"})||n.dayPeriod(t,{width:"narrow",context:"formatting"});case"aaaaa":return n.dayPeriod(t,{width:"narrow",context:"formatting"});default:return n.dayPeriod(t,{width:"wide",context:"formatting"})||n.dayPeriod(t,{width:"abbreviated",context:"formatting"})||n.dayPeriod(t,{width:"narrow",context:"formatting"})}}set(t,r,n){return t.setHours(xs(n),0,0,0),t}incompatibleTokens=["b","B","H","k","t","T"]};var Wu=class extends ne{priority=80;parse(t,r,n){switch(r){case"b":case"bb":case"bbb":return n.dayPeriod(t,{width:"abbreviated",context:"formatting"})||n.dayPeriod(t,{width:"narrow",context:"formatting"});case"bbbbb":return n.dayPeriod(t,{width:"narrow",context:"formatting"});default:return n.dayPeriod(t,{width:"wide",context:"formatting"})||n.dayPeriod(t,{width:"abbreviated",context:"formatting"})||n.dayPeriod(t,{width:"narrow",context:"formatting"})}}set(t,r,n){return t.setHours(xs(n),0,0,0),t}incompatibleTokens=["a","B","H","k","t","T"]};var Vu=class extends ne{priority=80;parse(t,r,n){switch(r){case"B":case"BB":case"BBB":return n.dayPeriod(t,{width:"abbreviated",context:"formatting"})||n.dayPeriod(t,{width:"narrow",context:"formatting"});case"BBBBB":return n.dayPeriod(t,{width:"narrow",context:"formatting"});default:return n.dayPeriod(t,{width:"wide",context:"formatting"})||n.dayPeriod(t,{width:"abbreviated",context:"formatting"})||n.dayPeriod(t,{width:"narrow",context:"formatting"})}}set(t,r,n){return t.setHours(xs(n),0,0,0),t}incompatibleTokens=["a","b","t","T"]};var Gu=class extends ne{priority=70;parse(t,r,n){switch(r){case"h":return $e(Ae.hour12h,t);case"ho":return n.ordinalNumber(t,{unit:"hour"});default:return Te(r.length,t)}}validate(t,r){return r>=1&&r<=12}set(t,r,n){let o=t.getHours()>=12;return o&&n<12?t.setHours(n+12,0,0,0):!o&&n===12?t.setHours(0,0,0,0):t.setHours(n,0,0,0),t}incompatibleTokens=["H","K","k","t","T"]};var Qu=class extends ne{priority=70;parse(t,r,n){switch(r){case"H":return $e(Ae.hour23h,t);case"Ho":return n.ordinalNumber(t,{unit:"hour"});default:return Te(r.length,t)}}validate(t,r){return r>=0&&r<=23}set(t,r,n){return t.setHours(n,0,0,0),t}incompatibleTokens=["a","b","h","K","k","t","T"]};var Xu=class extends ne{priority=70;parse(t,r,n){switch(r){case"K":return $e(Ae.hour11h,t);case"Ko":return n.ordinalNumber(t,{unit:"hour"});default:return Te(r.length,t)}}validate(t,r){return r>=0&&r<=11}set(t,r,n){return t.getHours()>=12&&n<12?t.setHours(n+12,0,0,0):t.setHours(n,0,0,0),t}incompatibleTokens=["h","H","k","t","T"]};var Ju=class extends ne{priority=70;parse(t,r,n){switch(r){case"k":return $e(Ae.hour24h,t);case"ko":return n.ordinalNumber(t,{unit:"hour"});default:return Te(r.length,t)}}validate(t,r){return r>=1&&r<=24}set(t,r,n){let o=n<=24?n%24:n;return t.setHours(o,0,0,0),t}incompatibleTokens=["a","b","h","H","K","t","T"]};var Zu=class extends ne{priority=60;parse(t,r,n){switch(r){case"m":return $e(Ae.minute,t);case"mo":return n.ordinalNumber(t,{unit:"minute"});default:return Te(r.length,t)}}validate(t,r){return r>=0&&r<=59}set(t,r,n){return t.setMinutes(n,0,0),t}incompatibleTokens=["t","T"]};var Ku=class extends ne{priority=50;parse(t,r,n){switch(r){case"s":return $e(Ae.second,t);case"so":return n.ordinalNumber(t,{unit:"second"});default:return Te(r.length,t)}}validate(t,r){return r>=0&&r<=59}set(t,r,n){return t.setSeconds(n,0),t}incompatibleTokens=["t","T"]};var ed=class extends ne{priority=30;parse(t,r){let n=o=>Math.trunc(o*Math.pow(10,-r.length+3));return He(Te(r.length,t),n)}set(t,r,n){return t.setMilliseconds(n),t}incompatibleTokens=["t","T"]};var td=class extends ne{priority=10;parse(t,r){switch(r){case"X":return Er(Cr.basicOptionalMinutes,t);case"XX":return Er(Cr.basic,t);case"XXXX":return Er(Cr.basicOptionalSeconds,t);case"XXXXX":return Er(Cr.extendedOptionalSeconds,t);default:return Er(Cr.extended,t)}}set(t,r,n){return r.timestampIsSet?t:R(t,t.getTime()-ot(t)-n)}incompatibleTokens=["t","T","x"]};var rd=class extends ne{priority=10;parse(t,r){switch(r){case"x":return Er(Cr.basicOptionalMinutes,t);case"xx":return Er(Cr.basic,t);case"xxxx":return Er(Cr.basicOptionalSeconds,t);case"xxxxx":return Er(Cr.extendedOptionalSeconds,t);default:return Er(Cr.extended,t)}}set(t,r,n){return r.timestampIsSet?t:R(t,t.getTime()-ot(t)-n)}incompatibleTokens=["t","T","X"]};var nd=class extends ne{priority=40;parse(t){return ku(t)}set(t,r,n){return[R(t,n*1e3),{timestampIsSet:!0}]}incompatibleTokens="*"};var od=class extends ne{priority=20;parse(t){return ku(t)}set(t,r,n){return[R(t,n),{timestampIsSet:!0}]}incompatibleTokens="*"};var id={G:new Su,y:new Cu,Y:new Eu,R:new Mu,u:new Iu,Q:new $u,q:new Au,M:new _u,L:new Ou,w:new Nu,I:new Fu,d:new Ru,D:new Bu,E:new zu,e:new Hu,c:new Uu,i:new qu,a:new Yu,b:new Wu,B:new Vu,h:new Gu,H:new Qu,K:new Xu,k:new Ju,m:new Zu,s:new Ku,S:new ed,X:new td,x:new rd,t:new nd,T:new od};var DN=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,CN=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,EN=/^'([^]*?)'?$/,MN=/''/g,IN=/\S/,$N=/[a-zA-Z]/;function sd(e,t,r,n){let o=()=>R(n?.in||r,NaN),i=hu(),s=n?.locale??i.locale??ar,a=n?.firstWeekContainsDate??n?.locale?.options?.firstWeekContainsDate??i.firstWeekContainsDate??i.locale?.options?.firstWeekContainsDate??1,l=n?.weekStartsOn??n?.locale?.options?.weekStartsOn??i.weekStartsOn??i.locale?.options?.weekStartsOn??0;if(!t)return e?o():v(r,n?.in);let c={firstWeekContainsDate:a,weekStartsOn:l,locale:s},u=[new wu(n?.in,r)],d=t.match(CN).map(x=>{let y=x[0];if(y in to){let T=to[y];return T(x,s.formatLong)}return x}).join("").match(DN),p=[];for(let x of d){!n?.useAdditionalWeekYearTokens&&cu(x)&&$a(x,t,e),!n?.useAdditionalDayOfYearTokens&&lu(x)&&$a(x,t,e);let y=x[0],T=id[y];if(T){let{incompatibleTokens:D}=T;if(Array.isArray(D)){let j=p.find(M=>D.includes(M.token)||M.token===y);if(j)throw new RangeError(`The format string mustn't contain \`${j.fullToken}\` and \`${x}\` at the same time`)}else if(T.incompatibleTokens==="*"&&p.length>0)throw new RangeError(`The format string mustn't contain \`${x}\` and any other token at the same time`);p.push({token:y,fullToken:x});let H=T.run(e,x,s.match,c);if(!H)return o();u.push(H.setter),e=H.rest}else{if(y.match($N))throw new RangeError("Format string contains an unescaped latin alphabet character `"+y+"`");if(x==="''"?x="'":y==="'"&&(x=AN(x)),e.indexOf(x)===0)e=e.slice(x.length);else return o()}}if(e.length>0&&IN.test(e))return o();let f=u.map(x=>x.priority).sort((x,y)=>y-x).filter((x,y,T)=>T.indexOf(x)===y).map(x=>u.filter(y=>y.priority===x).sort((y,T)=>T.subPriority-y.subPriority)).map(x=>x[0]),m=v(r,n?.in);if(isNaN(+m))return o();let g={};for(let x of f){if(!x.validate(m,c))return o();let y=x.set(m,g,c);Array.isArray(y)?(m=y[0],Object.assign(g,y[1])):m=y}return m}function AN(e){return e.match(EN)[1].replace(MN,"'")}var ehe=sd;function Fw(e,t,r){return Lt(sd(e,t,new Date,r))}var ohe=Fw;function Rw(e,t){return v(e,t?.in).getDay()===1}var ahe=Rw;function Bw(e){return+v(e)<Date.now()}var uhe=Bw;function _a(e,t){let r=v(e,t?.in);return r.setMinutes(0,0,0),r}var fhe=_a;function ad(e,t,r){let[n,o]=ce(r?.in,e,t);return+_a(n)==+_a(o)}var xhe=ad;function ys(e,t,r){let[n,o]=ce(r?.in,e,t);return+Ye(n,r)==+Ye(o,r)}var whe=ys;function ld(e,t,r){return ys(e,t,{...r,weekStartsOn:1})}var The=ld;function zw(e,t,r){let[n,o]=ce(r?.in,e,t);return+mr(n)==+mr(o)}var Mhe=zw;function Oa(e,t){let r=v(e,t?.in);return r.setSeconds(0,0),r}var Ahe=Oa;function cd(e,t){return+Oa(e)==+Oa(t)}var Lhe=cd;function ud(e,t,r){let[n,o]=ce(r?.in,e,t);return n.getFullYear()===o.getFullYear()&&n.getMonth()===o.getMonth()}var Fhe=ud;function dd(e,t,r){let[n,o]=ce(r?.in,e,t);return+cn(n)==+cn(o)}var Hhe=dd;function La(e,t){let r=v(e,t?.in);return r.setMilliseconds(0),r}var qhe=La;function pd(e,t){return+La(e)==+La(t)}var Vhe=pd;function fd(e,t,r){let[n,o]=ce(r?.in,e,t);return n.getFullYear()===o.getFullYear()}var Xhe=fd;function Hw(e,t){return ad(v(e,t?.in),De(t?.in||e))}var tge=Hw;function Uw(e,t){return ld(R(t?.in||e,e),De(t?.in||e))}var sge=Uw;function jw(e){return cd(e,De(e))}var uge=jw;function qw(e,t){return ud(R(t?.in||e,e),De(t?.in||e))}var hge=qw;function Yw(e,t){return dd(R(t?.in||e,e),De(t?.in||e))}var vge=Yw;function Ww(e){return pd(e,De(e))}var Tge=Ww;function Vw(e,t){return ys(R(t?.in||e,e),De(t?.in||e),t)}var Ige=Vw;function Gw(e,t){return fd(R(t?.in||e,e),De(t?.in||e))}var Lge=Gw;function Qw(e,t){return v(e,t?.in).getDay()===4}var Fge=Qw;function Xw(e,t){return an(R(t?.in||e,e),De(t?.in||e))}var Uge=Xw;function Jw(e,t){return an(e,St(De(t?.in||e),1),t)}var Vge=Jw;function Zw(e,t){return v(e,t?.in).getDay()===2}var Xge=Zw;function Kw(e,t){return v(e,t?.in).getDay()===3}var Kge=Kw;function e1(e,t,r){let n=+v(e,r?.in),[o,i]=[+v(t.start,r?.in),+v(t.end,r?.in)].sort((s,a)=>s-a);return n>=o&&n<=i}var rxe=e1;function oo(e,t,r){return St(e,-t,r)}var ixe=oo;function t1(e,t){return an(R(t?.in||e,e),oo(De(t?.in||e),1))}var dxe=t1;function r1(e,t){let r=v(e,t?.in),n=r.getFullYear(),o=9+Math.floor(n/10)*10;return r.setFullYear(o+1,0,0),r.setHours(0,0,0,0),v(r,t?.in)}var mxe=r1;function md(e,t){let r=Be(),n=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,o=v(e,t?.in),i=o.getDay(),s=(i<n?-7:0)+6-(i-n);return o.setHours(0,0,0,0),o.setDate(o.getDate()+s),o}var yxe=md;function n1(e,t){return md(e,{...t,weekStartsOn:1})}var wxe=n1;function o1(e,t){let r=Zt(e,t),n=R(t?.in||e,0);n.setFullYear(r+1,0,4),n.setHours(0,0,0,0);let o=bt(n,t);return o.setDate(o.getDate()-1),o}var Cxe=o1;function i1(e,t){let r=v(e,t?.in),n=r.getMonth(),o=n-n%3+3;return r.setMonth(o,0),r.setHours(0,0,0,0),r}var Ixe=i1;function s1(e,t){let r=v(e,t?.in),n=r.getFullYear();return r.setFullYear(n+1,0,0),r.setHours(0,0,0,0),r}var _xe=s1;var _N=/(\w)\1*|''|'(''|[^'])+('|$)|./g,ON=/^'([^]*?)'?$/,LN=/''/g,NN=/[a-zA-Z]/;function a1(e,t){let r=v(e);if(!Lt(r))throw new RangeError("Invalid time value");let n=t.match(_N);return n?n.map(i=>{if(i==="''")return"'";let s=i[0];if(s==="'")return PN(i);let a=hr[s];if(a)return a(r,i);if(s.match(NN))throw new RangeError("Format string contains an unescaped latin alphabet character `"+s+"`");return i}).join(""):""}function PN(e){let t=e.match(ON);return t?t[1].replace(LN,"'"):e}var Fxe=a1;function l1({years:e,months:t,weeks:r,days:n,hours:o,minutes:i,seconds:s}){let a=0;e&&(a+=e*365.2425),t&&(a+=t*(365.2425/12)),r&&(a+=r*7),n&&(a+=n);let l=a*24*60*60;return o&&(l+=o*60*60),i&&(l+=i*60),s&&(l+=s),Math.trunc(l*1e3)}var zxe=l1;function c1(e){let t=e/fr;return Math.trunc(t)}var jxe=c1;function u1(e){let t=e/Rt;return Math.trunc(t)}var Wxe=u1;function d1(e){let t=e/Ki;return Math.trunc(t)}var Qxe=d1;function p1(e){let t=e/Fc;return Math.trunc(t)}var Zxe=p1;function f1(e){return Math.trunc(e*Rt)}var t0e=f1;function m1(e){return Math.trunc(e*ts)}var o0e=m1;function h1(e){let t=e/Rc;return Math.trunc(t)}var a0e=h1;function g1(e){let t=e/Bc;return Math.trunc(t)}var u0e=g1;function Ht(e,t,r){let n=t-ro(e,r);return n<=0&&(n+=7),St(e,n,r)}var m0e=Ht;function x1(e,t){return Ht(e,5,t)}var x0e=x1;function y1(e,t){return Ht(e,1,t)}var v0e=y1;function b1(e,t){return Ht(e,6,t)}var k0e=b1;function v1(e,t){return Ht(e,0,t)}var C0e=v1;function w1(e,t){return Ht(e,4,t)}var I0e=w1;function S1(e,t){return Ht(e,2,t)}var _0e=S1;function k1(e,t){return Ht(e,3,t)}var N0e=k1;function D1(e,t){let r=()=>R(t?.in,NaN),n=t?.additionalDigits??2,o=zN(e),i;if(o.date){let c=HN(o.date,n);i=UN(c.restDateString,c.year)}if(!i||isNaN(+i))return r();let s=+i,a=0,l;if(o.time&&(a=jN(o.time),isNaN(a)))return r();if(o.timezone){if(l=qN(o.timezone),isNaN(l))return r()}else{let c=new Date(s+a),u=v(0,t?.in);return u.setFullYear(c.getUTCFullYear(),c.getUTCMonth(),c.getUTCDate()),u.setHours(c.getUTCHours(),c.getUTCMinutes(),c.getUTCSeconds(),c.getUTCMilliseconds()),u}return v(s+a+l,t?.in)}var hd={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},FN=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,RN=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,BN=/^([+-])(\d{2})(?::?(\d{2}))?$/;function zN(e){let t={},r=e.split(hd.dateTimeDelimiter),n;if(r.length>2)return t;if(/:/.test(r[0])?n=r[0]:(t.date=r[0],n=r[1],hd.timeZoneDelimiter.test(t.date)&&(t.date=e.split(hd.timeZoneDelimiter)[0],n=e.substr(t.date.length,e.length))),n){let o=hd.timezone.exec(n);o?(t.time=n.replace(o[1],""),t.timezone=o[1]):t.time=n}return t}function HN(e,t){let r=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+t)+"})|(\\d{2}|[+-]\\d{"+(2+t)+"})$)"),n=e.match(r);if(!n)return{year:NaN,restDateString:""};let o=n[1]?parseInt(n[1]):null,i=n[2]?parseInt(n[2]):null;return{year:i===null?o:i*100,restDateString:e.slice((n[1]||n[2]).length)}}function UN(e,t){if(t===null)return new Date(NaN);let r=e.match(FN);if(!r)return new Date(NaN);let n=!!r[4],o=Na(r[1]),i=Na(r[2])-1,s=Na(r[3]),a=Na(r[4]),l=Na(r[5])-1;if(n)return QN(t,a,l)?YN(t,a,l):new Date(NaN);{let c=new Date(0);return!VN(t,i,s)||!GN(t,o)?new Date(NaN):(c.setUTCFullYear(t,i,Math.max(o,s)),c)}}function Na(e){return e?parseInt(e):1}function jN(e){let t=e.match(RN);if(!t)return NaN;let r=mm(t[1]),n=mm(t[2]),o=mm(t[3]);return XN(r,n,o)?r*fr+n*Rt+o*1e3:NaN}function mm(e){return e&&parseFloat(e.replace(",","."))||0}function qN(e){if(e==="Z")return 0;let t=e.match(BN);if(!t)return 0;let r=t[1]==="+"?-1:1,n=parseInt(t[2]),o=t[3]&&parseInt(t[3])||0;return JN(n,o)?r*(n*fr+o*Rt):NaN}function YN(e,t,r){let n=new Date(0);n.setUTCFullYear(e,0,4);let o=n.getUTCDay()||7,i=(t-1)*7+r+1-o;return n.setUTCDate(n.getUTCDate()+i),n}var WN=[31,null,31,30,31,30,31,31,30,31,30,31];function T1(e){return e%400===0||e%4===0&&e%100!==0}function VN(e,t,r){return t>=0&&t<=11&&r>=1&&r<=(WN[t]||(T1(e)?29:28))}function GN(e,t){return t>=1&&t<=(T1(e)?366:365)}function QN(e,t,r){return t>=1&&t<=53&&r>=0&&r<=6}function XN(e,t,r){return e===24?t===0&&r===0:r>=0&&r<60&&t>=0&&t<60&&e>=0&&e<25}function JN(e,t){return t>=0&&t<=59}var z0e=D1;function C1(e,t){let r=e.match(/(\d{4})-(\d{2})-(\d{2})[T ](\d{2}):(\d{2}):(\d{2})(?:\.(\d{0,7}))?(?:Z|(.)(\d{2}):?(\d{2})?)?/);return r?v(Date.UTC(+r[1],+r[2]-1,+r[3],+r[4]-(+r[9]||0)*(r[8]=="-"?-1:1),+r[5]-(+r[10]||0)*(r[8]=="-"?-1:1),+r[6],+((r[7]||"0")+"00").substring(0,3)),t?.in):v(NaN,t?.in)}var j0e=C1;function Ut(e,t,r){let n=ro(e,r)-t;return n<=0&&(n+=7),oo(e,n,r)}var V0e=Ut;function E1(e,t){return Ut(e,5,t)}var X0e=E1;function M1(e,t){return Ut(e,1,t)}var K0e=M1;function I1(e,t){return Ut(e,6,t)}var rye=I1;function $1(e,t){return Ut(e,0,t)}var iye=$1;function A1(e,t){return Ut(e,4,t)}var lye=A1;function _1(e,t){return Ut(e,2,t)}var dye=_1;function O1(e,t){return Ut(e,3,t)}var mye=O1;function L1(e){return Math.trunc(e*Rc)}var xye=L1;function N1(e){let t=e/zc;return Math.trunc(t)}var vye=N1;function P1(e,t){let r=t?.nearestTo??1;if(r<1||r>12)return R(t?.in||e,NaN);let n=v(e,t?.in),o=n.getMinutes()/60,i=n.getSeconds()/60/60,s=n.getMilliseconds()/1e3/60/60,a=n.getHours()+o+i+s,l=t?.roundingMethod??"round",u=zt(l)(a/r)*r;return n.setHours(u,0,0,0),n}var Dye=P1;function F1(e,t){let r=t?.nearestTo??1;if(r<1||r>30)return R(e,NaN);let n=v(e,t?.in),o=n.getSeconds()/60,i=n.getMilliseconds()/1e3/60,s=n.getMinutes()+o+i,a=t?.roundingMethod??"round",c=zt(a)(s/r)*r;return n.setMinutes(c,0,0),n}var $ye=F1;function R1(e){let t=e/Vo;return Math.trunc(t)}var Oye=R1;function B1(e){return e*Ki}var Pye=B1;function z1(e){let t=e/ts;return Math.trunc(t)}var Bye=z1;function bs(e,t,r){let n=v(e,r?.in),o=n.getFullYear(),i=n.getDate(),s=R(r?.in||e,0);s.setFullYear(o,t,15),s.setHours(0,0,0,0);let a=fu(s);return n.setMonth(t,Math.min(i,a)),n}var qye=bs;function H1(e,t,r){let n=v(e,r?.in);return isNaN(+n)?R(r?.in||e,NaN):(t.year!=null&&n.setFullYear(t.year),t.month!=null&&(n=bs(n,t.month)),t.date!=null&&n.setDate(t.date),t.hours!=null&&n.setHours(t.hours),t.minutes!=null&&n.setMinutes(t.minutes),t.seconds!=null&&n.setSeconds(t.seconds),t.milliseconds!=null&&n.setMilliseconds(t.milliseconds),n)}var Qye=H1;function U1(e,t,r){let n=v(e,r?.in);return n.setDate(t),n}var Zye=U1;function j1(e,t,r){let n=v(e,r?.in);return n.setMonth(0),n.setDate(t),n}var tbe=j1;function q1(e){let t={},r=Be();for(let n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n]);for(let n in e)Object.prototype.hasOwnProperty.call(e,n)&&(e[n]===void 0?delete t[n]:t[n]=e[n]);fv(t)}var obe=q1;function Y1(e,t,r){let n=v(e,r?.in);return n.setHours(t),n}var abe=Y1;function W1(e,t,r){let n=v(e,r?.in);return n.setMilliseconds(t),n}var ube=W1;function V1(e,t,r){let n=v(e,r?.in);return n.setMinutes(t),n}var fbe=V1;function G1(e,t,r){let n=v(e,r?.in),o=Math.trunc(n.getMonth()/3)+1,i=t-o;return bs(n,n.getMonth()+i*3)}var xbe=G1;function Q1(e,t,r){let n=v(e,r?.in);return n.setSeconds(t),n}var vbe=Q1;function X1(e,t,r){let n=Be(),o=r?.firstWeekContainsDate??r?.locale?.options?.firstWeekContainsDate??n.firstWeekContainsDate??n.locale?.options?.firstWeekContainsDate??1,i=Et(v(e,r?.in),Zo(e,r),r),s=R(r?.in||e,0);s.setFullYear(t,0,o),s.setHours(0,0,0,0);let a=Zo(s,r);return a.setDate(a.getDate()+i),a}var Ebe=X1;function J1(e,t,r){let n=v(e,r?.in);return isNaN(+n)?R(r?.in||e,NaN):(n.setFullYear(t),n)}var Abe=J1;function Z1(e,t){let r=v(e,t?.in),n=r.getFullYear(),o=Math.floor(n/10)*10;return r.setFullYear(o,0,1),r.setHours(0,0,0,0),r}var Lbe=Z1;function K1(e){return sn(Date.now(),e)}var Fbe=K1;function eS(e){let t=De(e?.in),r=t.getFullYear(),n=t.getMonth(),o=t.getDate(),i=R(e?.in,0);return i.setFullYear(r,n,o+1),i.setHours(0,0,0,0),i}var Hbe=eS;function tS(e){let t=De(e?.in),r=t.getFullYear(),n=t.getMonth(),o=t.getDate(),i=De(e?.in);return i.setFullYear(r,n,o-1),i.setHours(0,0,0,0),i}var qbe=tS;function gd(e,t,r){return nn(e,-t,r)}var Vbe=gd;function rS(e,t,r){let{years:n=0,months:o=0,weeks:i=0,days:s=0,hours:a=0,minutes:l=0,seconds:c=0}=t,u=gd(e,o+n*12,r),d=oo(u,s+i*7,r),p=l+a*60,m=(c+p*60)*1e3;return R(r?.in||e,+d-m)}var Zbe=rS;function nS(e,t,r){return jc(e,-t,r)}var tve=nS;function oS(e,t,r){return qc(e,-t,r)}var ove=oS;function iS(e,t,r){return Qn(e,-t,r)}var ave=iS;function sS(e,t,r){return rs(e,-t,r)}var uve=sS;function aS(e,t,r){return ns(e,-t,r)}var fve=aS;function lS(e,t,r){return Vc(e,-t,r)}var gve=lS;function cS(e,t,r){return Xn(e,-t,r)}var bve=cS;function uS(e,t,r){return Gc(e,-t,r)}var Sve=uS;function dS(e){return Math.trunc(e*7)}var Dve=dS;function pS(e){return Math.trunc(e*365.2425)}var Mve=pS;function fS(e){return Math.trunc(e*Bc)}var Ave=fS;function mS(e){return Math.trunc(e*zc)}var Lve=mS;var xS=e=>Number.isFinite(e)?e:0;function ZN(e){return{days:Math.trunc(e/864e5),hours:Math.trunc(e/36e5%24),minutes:Math.trunc(e/6e4%60),seconds:Math.trunc(e/1e3%60),milliseconds:Math.trunc(e%1e3),microseconds:Math.trunc(xS(e*1e3)%1e3),nanoseconds:Math.trunc(xS(e*1e6)%1e3)}}function KN(e){return{days:e/86400000n,hours:e/3600000n%24n,minutes:e/60000n%60n,seconds:e/1000n%60n,milliseconds:e%1000n,microseconds:0n,nanoseconds:0n}}function bm(e){switch(typeof e){case"number":{if(Number.isFinite(e))return ZN(e);break}case"bigint":return KN(e)}throw new TypeError("Expected a finite number or bigint")}var eP=e=>e===0||e===0n,tP=(e,t)=>t===1||t===1n?e:`${e}s`,rP=1e-7,nP=24n*60n*60n*1000n;function Fa(e,t){let r=typeof e=="bigint";if(!r&&!Number.isFinite(e))throw new TypeError("Expected a finite number or bigint");t={...t};let n=e<0?"-":"";e=e<0?-e:e,t.colonNotation&&(t.compact=!1,t.formatSubMilliseconds=!1,t.separateMilliseconds=!1,t.verbose=!1),t.compact&&(t.unitCount=1,t.secondsDecimalDigits=0,t.millisecondsDecimalDigits=0);let o=[],i=(u,d)=>{let p=Math.floor(u*10**d+rP);return(Math.round(p)/10**d).toFixed(d)},s=(u,d,p,f)=>{if(!((o.length===0||!t.colonNotation)&&eP(u)&&!(t.colonNotation&&p==="m"))){if(f??=String(u),t.colonNotation){let m=f.includes(".")?f.split(".")[0].length:f.length,g=o.length>0?2:1;f="0".repeat(Math.max(0,g-m))+f}else f+=t.verbose?" "+tP(d,u):p;o.push(f)}},a=bm(e),l=BigInt(a.days);if(t.hideYearAndDays?s(BigInt(l)*24n+BigInt(a.hours),"hour","h"):(t.hideYear?s(l,"day","d"):(s(l/365n,"year","y"),s(l%365n,"day","d")),s(Number(a.hours),"hour","h")),s(Number(a.minutes),"minute","m"),!t.hideSeconds)if(t.separateMilliseconds||t.formatSubMilliseconds||!t.colonNotation&&e<1e3&&!t.subSecondsAsDecimals){let u=Number(a.seconds),d=Number(a.milliseconds),p=Number(a.microseconds),f=Number(a.nanoseconds);if(s(u,"second","s"),t.formatSubMilliseconds)s(d,"millisecond","ms"),s(p,"microsecond","\xB5s"),s(f,"nanosecond","ns");else{let m=d+p/1e3+f/1e6,g=typeof t.millisecondsDecimalDigits=="number"?t.millisecondsDecimalDigits:0,x=m>=1?Math.round(m):Math.ceil(m),y=g?m.toFixed(g):x;s(Number.parseFloat(y),"millisecond","ms",y)}}else{let u=(r?Number(e%nP):e)/1e3%60,d=typeof t.secondsDecimalDigits=="number"?t.secondsDecimalDigits:1,p=i(u,d),f=t.keepDecimalsOnWholeSeconds?p:p.replace(/\.0+$/,"");s(Number.parseFloat(f),"second","s",f)}if(o.length===0)return n+"0"+(t.verbose?" milliseconds":"ms");let c=t.colonNotation?":":" ";return typeof t.unitCount=="number"&&(o=o.slice(0,Math.max(t.unitCount,1))),n+o.join(c)}var ei=Qt(hS(),1),yS=Qt(gS(),1);ei.default.extend(yS.default);var bS=class{get cronArray(){return this.cronExpression.split(" ")}constructor(t){if(this.cronExpression=t,this.cronArray.length<6)throw new Error("CronParser needs second level accuracy")}getNextPartMatch(t,r,n){if(t==="*")return r;if(t.includes("/")){let o=parseInt(t.split("/")[1],10),i=s=>s%o===0?s:i(s+1);return i(r)}if(parseInt(t,10)||t==="0")return parseInt(t,10)}msToNext(){let t=this.cronArray,r=t[0],n=t[1],o=t[2],i=t[3],s=t[4],a=t[5],l=new Date,c=l.getSeconds()+1,u=l.getMinutes(),d=l.getHours(),p=l.getDate(),f=l.getMonth(),m=l.getFullYear(),g=this.getNextPartMatch(r,c,59);g<c&&(u=(u+1)%59);let x=this.getNextPartMatch(n,u,59);x<u&&(d=(d+1)%23);let y=this.getNextPartMatch(o,d,23);y<d&&(p=(p+1)%30);let T=p;T<p&&(f=(f+1)%11);let D=f;D<f&&(m=m+1);let H=m;return new Date(H,D,T,y,x,g).getTime()-Date.now()}};var Ra=class{constructor(t,r,n){this.status="initial",this.nextExecutionUnix=0,this.cronExpression=r,this.jobFunction=n,this.cronParser=new Ca.Cron(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 io={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},vm=e=>{let t=0,r=n=>{t=t+n};return e.years&&r(io.years(e.years)),e.months&&r(io.months(e.months)),e.weeks&&r(io.weeks(e.weeks)),e.days&&r(io.days(e.days)),e.hours&&r(io.hours(e.hours)),e.minutes&&r(io.minutes(e.minutes)),e.seconds&&r(io.seconds(e.seconds)),t},wm=e=>Fa(e),oP=e=>Pa.formatDistanceToNow(new Date(e));var Sm=class{constructor(){this.status="stopped",this.cronjobs=new kt.ObjectMap}addCronjob(t,r){let n=new Ra(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 be.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 be.Timeout(t.getTimeToNextExecution()),console.log(`Next CronJob scheduled in ${wm(this.executionTimeout.getTimeLeft())}`)):(this.executionTimeout=new be.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 km=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),o=new Date(parseFloat(r[3]),parseFloat(r[2])-1,parseFloat(r[1])).getTime();return new e(o)}static fromHyphedDate(t){let r=new Date(t).getTime();return new e(r)}static fromEuropeanDateAndTime(t,r="12:00:00",n="Europe/Berlin"){let o=/(.*)\.(.*)\.(.*)/.exec(t),i=c=>`0${c}`.slice(-2),s=`${o[3]}-${i(o[2])}-${i(o[1])}T${r}`,l=ei.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 ei.default(this.getTime()).format(t)}isToday(){return ei.default(this.getTime()).isToday()}lessTimePassedToNow(t){let r=vm(t);return Date.now()-this.getTime()<r}moreTimePassedToNow(t){return!this.lessTimePassedToNow(t)}};var Tm=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 Dm=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 be.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 ws=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,o=new e(n);return this.isYoungerThanOtherTimeStamp(o)}};var Cm=class{get timeLeft(){return this.timeInMilliseconds-this.pausedAt.change}constructor(t){this.state="initiated",this.completedDeferred=fe.defer(),this.timeInMilliseconds=t,this.completed=this.completedDeferred.promise}start(){if(!this.startedAt)this.currentTimeout=setTimeout(()=>{this.completedDeferred.resolve()},this.timeInMilliseconds),this.startedAt=new ws;else throw new Error("timer has been started before. Please use resume instead")}pause(){this.startedAt&&(clearTimeout(this.currentTimeout),this.currentTimeout=null,this.pausedAt=ws.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 yd=Qt(Mm(),1);var Im=class{constructor(){this.executionSlots=[],this.isProcessing=!1,this.nonExclusiveMaxConcurrency=1/0,this.nonExclusiveCurrentCount=0,this.nonExclusivePendingQueue=[]}async getExclusiveExecutionSlot(t,r){let n=fe.defer(),o={funcToExecute:t,executionDeferred:n,timeout:r,mode:"exclusive"};return this.executionSlots.push(o),this.processExecutionSlots(),n.promise}async getNonExclusiveExecutionSlot(t,r){let n=fe.defer(),o={funcToExecute:t,executionDeferred:n,timeout:r,mode:"nonexclusive"};return this.executionSlots.push(o),this.processExecutionSlots(),n.promise}setNonExclusiveMaxConcurrency(t){if(!Number.isFinite(t)||t<1)throw new Error("nonExclusiveMaxConcurrency must be a finite number >= 1");this.nonExclusiveMaxConcurrency=t}getNonExclusiveMaxConcurrency(){return this.nonExclusiveMaxConcurrency}getActiveNonExclusiveCount(){return this.nonExclusiveCurrentCount}getPendingNonExclusiveCount(){return this.nonExclusivePendingQueue.length}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(),be.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=>{await this.waitForNonExclusiveSlot();try{if(n.timeout){let o=await Promise.race([n.funcToExecute(),be.delayFor(n.timeout).then(()=>{throw new Error("Timeout reached")})]);n.executionDeferred.resolve(o)}else{let o=await n.funcToExecute();n.executionDeferred.resolve(o)}}catch(o){n.executionDeferred.reject(o)}finally{this.releaseNonExclusiveSlot()}});await Promise.all(r)}waitForNonExclusiveSlot(){return this.nonExclusiveCurrentCount<this.nonExclusiveMaxConcurrency?(this.nonExclusiveCurrentCount++,Promise.resolve()):new Promise(t=>{this.nonExclusivePendingQueue.push(()=>{this.nonExclusiveCurrentCount++,t()})})}releaseNonExclusiveSlot(){this.nonExclusiveCurrentCount--;let t=this.nonExclusivePendingQueue.shift();t&&t()}};var $m=class{constructor(t=16){this.hasSpace=new Ee.rxjs.Subject,this.itemsAvailable=new Ee.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 Ba=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 $S=(e="uni")=>`${e}xxxxxxxxxxx`.replace(/[xy]/g,t=>{let r=Math.random()*16|0;return(t==="x"?r:r&3|8).toString(16)}),ti=class e{constructor(){this.fastMap=new Ba,this.eventSubject=new Ee.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=$S("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 za=class{get comparisonString(){return this.comparisonFunc(this.originalInterest)}fullfillInterest(t){this.isFullfilled=!0,this.fullfillmentStore=[],this.interestDeferred.resolve(t)}constructor(t,r,n,o){this.destructionTimer=new _n.Timer(1e4),this.isFullfilled=!1,this.fullfillmentStore=[],this.interestDeferred=new fe.Deferred,this.interestFullfilled=this.interestDeferred.promise,this.interestMapRef=t,this.originalInterest=r,this.comparisonFunc=n,this.options=o,this.destructionTimer.completed.then(()=>{this.destroy()}),this.options?.markLostAfterDefault&&be.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 Am=class{constructor(t,r={}){this.interestObjectMap=new ti,this.interestObservable=new Ee.ObservableIntake,this.comparisonFunc=t,this.options=r}async addInterest(t,r){let n=this.comparisonFunc(t),o,i=new za(this,t,this.comparisonFunc,{markLostAfterDefault:this.options.markLostAfterDefault,defaultFullfillment:r}),s=!1;return await this.interestObjectMap.forEach(a=>{!s&&a.comparisonString===i.comparisonString&&(console.log("info",`interest already exists for ${i.comparisonString}`),s=!0,o=a,o.renew())}),o||(o=i,this.interestObjectMap.add(o)),this.interestObservable.push(o),o}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(o=>o.comparisonString===r)}};var _m=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 Om=class{constructor(){this.referenceObjectMap=new ti}checkAndTrack(t){return this.referenceObjectMap.checkForObject(t)?!1:(this.referenceObjectMap.add(t),!0)}};var Lm=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 $n.SmartMatch(t),n=!1;for(let o of this._stringArray)r.match(o)&&(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=fe.defer();return this._triggerUntilTrueFunctionArray.push(()=>{let o=t(this.getStringArray());return o===!0&&(r&&r(),n.resolve()),o}),this.notifyTrigger(),n.promise}notifyTrigger(){let t=this._triggerUntilTrueFunctionArray.filter(r=>!r());this._triggerUntilTrueFunctionArray=t}};var Nm=class{constructor(t){this.storageArray=[],this.options=t}checkAggregationStatus(){let t=()=>{this.aggregationTimer=new _n.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 Pm=class{constructor(){this.symbolTree=new yd.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 ks={};me(ks,{base64ToUint8Array:()=>IP,ensurePureUint8Array:()=>_P,isBufferLike:()=>AP,isUint8Array:()=>$P,uInt8ArrayExtras:()=>EP,uInt8ArrayToBase64:()=>MP});var uo={};me(uo,{areUint8ArraysEqual:()=>mP,assertUint8Array:()=>co,assertUint8ArrayOrArrayBuffer:()=>NS,base64ToString:()=>vP,base64ToUint8Array:()=>BS,compareUint8Arrays:()=>hP,concatUint8Arrays:()=>fP,getUintBE:()=>TP,hexToUint8Array:()=>kP,includes:()=>DP,indexOf:()=>zS,isUint8Array:()=>Fm,stringToBase64:()=>bP,stringToUint8Array:()=>FS,toUint8Array:()=>pP,uint8ArrayToBase64:()=>RS,uint8ArrayToHex:()=>SP,uint8ArrayToString:()=>PS});var aP=Object.prototype.toString,lP="[object Uint8Array]",cP="[object ArrayBuffer]";function AS(e,t,r){return e?e.constructor===t?!0:aP.call(e)===r:!1}function Fm(e){return AS(e,Uint8Array,lP)}function uP(e){return AS(e,ArrayBuffer,cP)}function dP(e){return Fm(e)||uP(e)}function co(e){if(!Fm(e))throw new TypeError(`Expected \`Uint8Array\`, got \`${typeof e}\``)}function NS(e){if(!dP(e))throw new TypeError(`Expected \`Uint8Array\` or \`ArrayBuffer\`, got \`${typeof e}\``)}function pP(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 fP(e,t){if(e.length===0)return new Uint8Array(0);t??=e.reduce((o,i)=>o+i.length,0);let r=new Uint8Array(t),n=0;for(let o of e)co(o),r.set(o,n),n+=o.length;return r}function mP(e,t){if(co(e),co(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 hP(e,t){co(e),co(t);let r=Math.min(e.length,t.length);for(let n=0;n<r;n++){let o=e[n]-t[n];if(o!==0)return Math.sign(o)}return Math.sign(e.length-t.length)}var _S={utf8:new globalThis.TextDecoder("utf8")};function PS(e,t="utf8"){return NS(e),_S[t]??=new globalThis.TextDecoder(t),_S[t].decode(e)}function Ha(e){if(typeof e!="string")throw new TypeError(`Expected \`string\`, got \`${typeof e}\``)}var gP=new globalThis.TextEncoder;function FS(e){return Ha(e),gP.encode(e)}function xP(e){return e.replaceAll("+","-").replaceAll("/","_").replace(/=+$/,"")}function yP(e){let t=e.replaceAll("-","+").replaceAll("_","/"),r=(4-t.length%4)%4;return t+"=".repeat(r)}var OS=65535;function RS(e,{urlSafe:t=!1}={}){co(e);let r="";for(let n=0;n<e.length;n+=OS){let o=e.subarray(n,n+OS);r+=globalThis.btoa(String.fromCodePoint.apply(void 0,o))}return t?xP(r):r}function BS(e){return Ha(e),Uint8Array.from(globalThis.atob(yP(e)),t=>t.codePointAt(0))}function bP(e,{urlSafe:t=!1}={}){return Ha(e),RS(FS(e),{urlSafe:t})}function vP(e){return Ha(e),PS(BS(e))}var wP=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));function SP(e){co(e);let t="";for(let r=0;r<e.length;r++)t+=wP[e[r]];return t}var LS={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 kP(e){if(Ha(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 o=LS[e[n*2]],i=LS[e[n*2+1]];if(o===void 0||i===void 0)throw new Error(`Invalid Hex character encountered at position ${n*2}`);r[n]=o<<4|i}return r}function TP(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 zS(e,t){let r=e.length,n=t.length;if(n===0||n>r)return-1;let o=r-n;for(let i=0;i<=o;i++){let s=!0;for(let a=0;a<n;a++)if(e[i+a]!==t[a]){s=!1;break}if(s)return i}return-1}function DP(e,t){return zS(e,t)!==-1}var EP=uo;function MP(e){return uo.uint8ArrayToBase64(e)}function IP(e){return uo.base64ToUint8Array(e)}var $P=e=>uo.isUint8Array(e);function AP(e){return e&&typeof e.byteLength=="number"?!0:typeof Buffer<"u"&&Buffer.isBuffer?Buffer.isBuffer(e):!1}function _P(e){let t=new Uint8Array(e.length);return t.set(e),t}var Ya={};me(Ya,{Guard:()=>Ua,GuardError:()=>ja,GuardSet:()=>qa,passGuardsOrReject:()=>OP});var Ua=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 ja=class extends Error{constructor(t){super(t),this.name="GuardError"}};var qa=class extends Ua{constructor(t=[]){super(async r=>this.allGuardsPass(r)),this.guards=t}async execAllWithData(t,r={mode:"parallel",stopOnFail:!1}){let n=[];for(let i of this.guards){let s=i.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(o=>o)}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 OP=async(e,t)=>{let r=new qa(t);if(!await r.allGuardsPass(e)){let o=await r.getFailedHint(e);throw new ja(`Guards failed:
|
|
34
|
+
`):"",this.name="UnsubscriptionError",this.errors=r}});function zr(e,t){if(e){var r=e.indexOf(t);0<=r&&e.splice(r,1)}}var ir=(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,o,i;if(!this.closed){this.closed=!0;var s=this._parentage;if(s)if(this._parentage=null,Array.isArray(s))try{for(var a=Pt(s),l=a.next();!l.done;l=a.next()){var c=l.value;c.remove(this)}}catch(g){t={error:g}}finally{try{l&&!l.done&&(r=a.return)&&r.call(a)}finally{if(t)throw t.error}}else s.remove(this);var u=this.initialTeardown;if(ke(u))try{u()}catch(g){i=g instanceof xa?g.errors:[g]}var d=this._finalizers;if(d){this._finalizers=null;try{for(var p=Pt(d),f=p.next();!f.done;f=p.next()){var m=f.value;try{Fb(m)}catch(g){i=i??[],g instanceof xa?i=Tr(Tr([],Xt(i)),Xt(g.errors)):i.push(g)}}}catch(g){n={error:g}}finally{try{f&&!f.done&&(o=p.return)&&o.call(p)}finally{if(n)throw n.error}}}if(i)throw new xa(i)}},e.prototype.add=function(t){var r;if(t&&t!==this)if(this.closed)Fb(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)&&zr(r,t)},e.prototype.remove=function(t){var r=this._finalizers;r&&zr(r,t),t instanceof e&&t._removeParent(this)},e.EMPTY=(function(){var t=new e;return t.closed=!0,t})(),e})(),Uf=ir.EMPTY;function nc(e){return e instanceof ir||e&&"closed"in e&&ke(e.remove)&&ke(e.add)&&ke(e.unsubscribe)}function Fb(e){ke(e)?e():e.unsubscribe()}var Dr={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};var Yi={setTimeout:function(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var o=Yi.delegate;return o?.setTimeout?o.setTimeout.apply(o,Tr([e,t],Xt(r))):setTimeout.apply(void 0,Tr([e,t],Xt(r)))},clearTimeout:function(e){var t=Yi.delegate;return(t?.clearTimeout||clearTimeout)(e)},delegate:void 0};function oc(e){Yi.setTimeout(function(){var t=Dr.onUnhandledError;if(t)t(e);else throw e})}function en(){}var Rb=(function(){return jf("C",void 0,void 0)})();function Bb(e){return jf("E",void 0,e)}function zb(e){return jf("N",e,void 0)}function jf(e,t,r){return{kind:e,value:t,error:r}}var zo=null;function Wi(e){if(Dr.useDeprecatedSynchronousErrorHandling){var t=!zo;if(t&&(zo={errorThrown:!1,error:null}),e(),t){var r=zo,n=r.errorThrown,o=r.error;if(zo=null,n)throw o}}else e()}function Hb(e){Dr.useDeprecatedSynchronousErrorHandling&&zo&&(zo.errorThrown=!0,zo.error=e)}var Ho=(function(e){Ot(t,e);function t(r){var n=e.call(this)||this;return n.isStopped=!1,r?(n.destination=r,nc(r)&&r.add(n)):n.destination=p_,n}return t.create=function(r,n,o){return new ya(r,n,o)},t.prototype.next=function(r){this.isStopped?Yf(zb(r),this):this._next(r)},t.prototype.error=function(r){this.isStopped?Yf(Bb(r),this):(this.isStopped=!0,this._error(r))},t.prototype.complete=function(){this.isStopped?Yf(Rb,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})(ir),c_=Function.prototype.bind;function qf(e,t){return c_.call(e,t)}var u_=(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){ic(n)}},e.prototype.error=function(t){var r=this.partialObserver;if(r.error)try{r.error(t)}catch(n){ic(n)}else ic(t)},e.prototype.complete=function(){var t=this.partialObserver;if(t.complete)try{t.complete()}catch(r){ic(r)}},e})(),ya=(function(e){Ot(t,e);function t(r,n,o){var i=e.call(this)||this,s;if(ke(r)||!r)s={next:r??void 0,error:n??void 0,complete:o??void 0};else{var a;i&&Dr.useDeprecatedNextContext?(a=Object.create(r),a.unsubscribe=function(){return i.unsubscribe()},s={next:r.next&&qf(r.next,a),error:r.error&&qf(r.error,a),complete:r.complete&&qf(r.complete,a)}):s=r}return i.destination=new u_(s),i}return t})(Ho);function ic(e){Dr.useDeprecatedSynchronousErrorHandling?Hb(e):oc(e)}function d_(e){throw e}function Yf(e,t){var r=Dr.onStoppedNotification;r&&Yi.setTimeout(function(){return r(e,t)})}var p_={closed:!0,next:en,error:d_,complete:en};var Uo=(function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"})();function ba(e){return e}function f_(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return Wf(e)}function Wf(e){return e.length===0?ba:e.length===1?e[0]:function(r){return e.reduce(function(n,o){return o(n)},r)}}var je=(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 o=this,i=h_(t)?t:new ya(t,r,n);return Wi(function(){var s=o,a=s.operator,l=s.source;i.add(a?a.call(i,l):l?o._subscribe(i):o._trySubscribe(i))}),i},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=Ub(r),new r(function(o,i){var s=new ya({next:function(a){try{t(a)}catch(l){i(l),s.unsubscribe()}},error:i,complete:o});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[Uo]=function(){return this},e.prototype.pipe=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return Wf(t)(this)},e.prototype.toPromise=function(t){var r=this;return t=Ub(t),new t(function(n,o){var i;r.subscribe(function(s){return i=s},function(s){return o(s)},function(){return n(i)})})},e.create=function(t){return new e(t)},e})();function Ub(e){var t;return(t=e??Dr.Promise)!==null&&t!==void 0?t:Promise}function m_(e){return e&&ke(e.next)&&ke(e.error)&&ke(e.complete)}function h_(e){return e&&e instanceof Ho||m_(e)&&nc(e)}function g_(e){return ke(e?.lift)}function Qe(e){return function(t){if(g_(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 Xe(e,t,r,n,o){return new jb(e,t,r,n,o)}var jb=(function(e){Ot(t,e);function t(r,n,o,i,s,a){var l=e.call(this,r)||this;return l.onFinalize=s,l.shouldUnsubscribe=a,l._next=n?function(c){try{n(c)}catch(u){r.error(u)}}:e.prototype._next,l._error=i?function(c){try{i(c)}catch(u){r.error(u)}finally{this.unsubscribe()}}:e.prototype._error,l._complete=o?function(){try{o()}catch(c){r.error(c)}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})(Ho);var Vf=rc(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}});var tn=(function(e){Ot(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 Gf(this,this);return n.operator=r,n},t.prototype._throwIfClosed=function(){if(this.closed)throw new Vf},t.prototype.next=function(r){var n=this;Wi(function(){var o,i;if(n._throwIfClosed(),!n.isStopped){n.currentObservers||(n.currentObservers=Array.from(n.observers));try{for(var s=Pt(n.currentObservers),a=s.next();!a.done;a=s.next()){var l=a.value;l.next(r)}}catch(c){o={error:c}}finally{try{a&&!a.done&&(i=s.return)&&i.call(s)}finally{if(o)throw o.error}}}})},t.prototype.error=function(r){var n=this;Wi(function(){if(n._throwIfClosed(),!n.isStopped){n.hasError=n.isStopped=!0,n.thrownError=r;for(var o=n.observers;o.length;)o.shift().error(r)}})},t.prototype.complete=function(){var r=this;Wi(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,o=this,i=o.hasError,s=o.isStopped,a=o.observers;return i||s?Uf:(this.currentObservers=null,a.push(r),new ir(function(){n.currentObservers=null,zr(a,r)}))},t.prototype._checkFinalizedStatuses=function(r){var n=this,o=n.hasError,i=n.thrownError,s=n.isStopped;o?r.error(i):s&&r.complete()},t.prototype.asObservable=function(){var r=new je;return r.source=this,r},t.create=function(r,n){return new Gf(r,n)},t})(je),Gf=(function(e){Ot(t,e);function t(r,n){var o=e.call(this)||this;return o.destination=r,o.source=n,o}return t.prototype.next=function(r){var n,o;(o=(n=this.destination)===null||n===void 0?void 0:n.next)===null||o===void 0||o.call(n,r)},t.prototype.error=function(r){var n,o;(o=(n=this.destination)===null||n===void 0?void 0:n.error)===null||o===void 0||o.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,o;return(o=(n=this.source)===null||n===void 0?void 0:n.subscribe(r))!==null&&o!==void 0?o:Uf},t})(tn);var va={now:function(){return(va.delegate||Date).now()},delegate:void 0};var sc=(function(e){Ot(t,e);function t(r,n,o){r===void 0&&(r=1/0),n===void 0&&(n=1/0),o===void 0&&(o=va);var i=e.call(this)||this;return i._bufferSize=r,i._windowTime=n,i._timestampProvider=o,i._buffer=[],i._infiniteTimeWindow=!0,i._infiniteTimeWindow=n===1/0,i._bufferSize=Math.max(1,r),i._windowTime=Math.max(1,n),i}return t.prototype.next=function(r){var n=this,o=n.isStopped,i=n._buffer,s=n._infiniteTimeWindow,a=n._timestampProvider,l=n._windowTime;o||(i.push(r),!s&&i.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),o=this,i=o._infiniteTimeWindow,s=o._buffer,a=s.slice(),l=0;l<a.length&&!r.closed;l+=i?1:2)r.next(a[l]);return this._checkFinalizedStatuses(r),n},t.prototype._trimBuffer=function(){var r=this,n=r._bufferSize,o=r._timestampProvider,i=r._buffer,s=r._infiniteTimeWindow,a=(s?1:2)*n;if(n<1/0&&a<i.length&&i.splice(0,i.length-a),!s){for(var l=o.now(),c=0,u=1;u<i.length&&i[u]<=l;u+=2)c=u;c&&i.splice(0,c+1)}},t})(tn);var Qf=(function(e){Ot(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})(ir);var wa={setInterval:function(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var o=wa.delegate;return o?.setInterval?o.setInterval.apply(o,Tr([e,t],Xt(r))):setInterval.apply(void 0,Tr([e,t],Xt(r)))},clearInterval:function(e){var t=wa.delegate;return(t?.clearInterval||clearInterval)(e)},delegate:void 0};var Xf=(function(e){Ot(t,e);function t(r,n){var o=e.call(this,r,n)||this;return o.scheduler=r,o.work=n,o.pending=!1,o}return t.prototype.schedule=function(r,n){var o;if(n===void 0&&(n=0),this.closed)return this;this.state=r;var i=this.id,s=this.scheduler;return i!=null&&(this.id=this.recycleAsyncId(s,i,n)),this.pending=!0,this.delay=n,this.id=(o=this.id)!==null&&o!==void 0?o:this.requestAsyncId(s,this.id,n),this},t.prototype.requestAsyncId=function(r,n,o){return o===void 0&&(o=0),wa.setInterval(r.flush.bind(r,this),o)},t.prototype.recycleAsyncId=function(r,n,o){if(o===void 0&&(o=0),o!=null&&this.delay===o&&this.pending===!1)return n;n!=null&&wa.clearInterval(n)},t.prototype.execute=function(r,n){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var o=this._execute(r,n);if(o)return o;this.pending===!1&&this.id!=null&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},t.prototype._execute=function(r,n){var o=!1,i;try{this.work(r)}catch(s){o=!0,i=s||new Error("Scheduled action threw falsy error")}if(o)return this.unsubscribe(),i},t.prototype.unsubscribe=function(){if(!this.closed){var r=this,n=r.id,o=r.scheduler,i=o.actions;this.work=this.state=this.scheduler=null,this.pending=!1,zr(i,this),n!=null&&(this.id=this.recycleAsyncId(o,n,null)),this.delay=null,e.prototype.unsubscribe.call(this)}},t})(Qf);var Sa=(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=va.now,e})();var Jf=(function(e){Ot(t,e);function t(r,n){n===void 0&&(n=Sa.now);var o=e.call(this,r,n)||this;return o.actions=[],o._active=!1,o}return t.prototype.flush=function(r){var n=this.actions;if(this._active){n.push(r);return}var o;this._active=!0;do if(o=r.execute(r.state,r.delay))break;while(r=n.shift());if(this._active=!1,o){for(;r=n.shift();)r.unsubscribe();throw o}},t})(Sa);var qn=new Jf(Xf),Zf=qn;function ac(e){return e&&ke(e.schedule)}function Kf(e){return e[e.length-1]}function fq(e){return ke(Kf(e))?e.pop():void 0}function Yn(e){return ac(Kf(e))?e.pop():void 0}function mq(e,t){return typeof Kf(e)=="number"?e.pop():t}var Vi=(function(e){return e&&typeof e.length=="number"&&typeof e!="function"});function lc(e){return ke(e?.then)}function cc(e){return ke(e[Uo])}function uc(e){return Symbol.asyncIterator&&ke(e?.[Symbol.asyncIterator])}function dc(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 x_(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var pc=x_();function fc(e){return ke(e?.[pc])}function mc(e){return zf(this,arguments,function(){var r,n,o,i;return ga(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,In(r.read())];case 3:return n=s.sent(),o=n.value,i=n.done,i?[4,In(void 0)]:[3,5];case 4:return[2,s.sent()];case 5:return[4,In(o)];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 hc(e){return ke(e?.getReader)}function yt(e){if(e instanceof je)return e;if(e!=null){if(cc(e))return y_(e);if(Vi(e))return b_(e);if(lc(e))return v_(e);if(uc(e))return qb(e);if(fc(e))return w_(e);if(hc(e))return S_(e)}throw dc(e)}function y_(e){return new je(function(t){var r=e[Uo]();if(ke(r.subscribe))return r.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function b_(e){return new je(function(t){for(var r=0;r<e.length&&!t.closed;r++)t.next(e[r]);t.complete()})}function v_(e){return new je(function(t){e.then(function(r){t.closed||(t.next(r),t.complete())},function(r){return t.error(r)}).then(null,oc)})}function w_(e){return new je(function(t){var r,n;try{for(var o=Pt(e),i=o.next();!i.done;i=o.next()){var s=i.value;if(t.next(s),t.closed)return}}catch(a){r={error:a}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}t.complete()})}function qb(e){return new je(function(t){k_(e,t).catch(function(r){return t.error(r)})})}function S_(e){return qb(mc(e))}function k_(e,t){var r,n,o,i;return Bf(this,void 0,void 0,function(){var s,a;return ga(this,function(l){switch(l.label){case 0:l.trys.push([0,5,6,11]),r=Hf(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(),o={error:a},[3,11];case 6:return l.trys.push([6,,9,10]),n&&!n.done&&(i=r.return)?[4,i.call(r)]:[3,8];case 7:l.sent(),l.label=8;case 8:return[3,10];case 9:if(o)throw o.error;return[7];case 10:return[7];case 11:return t.complete(),[2]}})})}function Jt(e,t,r,n,o){n===void 0&&(n=0),o===void 0&&(o=!1);var i=t.schedule(function(){r(),o?e.add(this.schedule(null,n)):this.unsubscribe()},n);if(e.add(i),!o)return i}function Gi(e,t){return t===void 0&&(t=0),Qe(function(r,n){r.subscribe(Xe(n,function(o){return Jt(n,e,function(){return n.next(o)},t)},function(){return Jt(n,e,function(){return n.complete()},t)},function(o){return Jt(n,e,function(){return n.error(o)},t)}))})}function Qi(e,t){return t===void 0&&(t=0),Qe(function(r,n){n.add(e.schedule(function(){return r.subscribe(n)},t))})}function Yb(e,t){return yt(e).pipe(Qi(t),Gi(t))}function Wb(e,t){return yt(e).pipe(Qi(t),Gi(t))}function Vb(e,t){return new je(function(r){var n=0;return t.schedule(function(){n===e.length?r.complete():(r.next(e[n++]),r.closed||this.schedule())})})}function Gb(e,t){return new je(function(r){var n;return Jt(r,t,function(){n=e[pc](),Jt(r,t,function(){var o,i,s;try{o=n.next(),i=o.value,s=o.done}catch(a){r.error(a);return}s?r.complete():r.next(i)},0,!0)}),function(){return ke(n?.return)&&n.return()}})}function gc(e,t){if(!e)throw new Error("Iterable cannot be null");return new je(function(r){Jt(r,t,function(){var n=e[Symbol.asyncIterator]();Jt(r,t,function(){n.next().then(function(o){o.done?r.complete():r.next(o.value)})},0,!0)})})}function Qb(e,t){return gc(mc(e),t)}function em(e,t){if(e!=null){if(cc(e))return Yb(e,t);if(Vi(e))return Vb(e,t);if(lc(e))return Wb(e,t);if(uc(e))return gc(e,t);if(fc(e))return Gb(e,t);if(hc(e))return Qb(e,t)}throw dc(e)}function jo(e,t){return t?em(e,t):yt(e)}function tm(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=Yn(e);return jo(e,r)}function Xb(e){return e instanceof Date&&!isNaN(e)}function Wn(e,t){return Qe(function(r,n){var o=0;r.subscribe(Xe(n,function(i){n.next(e.call(t,i,o++))}))})}var T_=Array.isArray;function D_(e,t){return T_(t)?e.apply(void 0,Tr([],Xt(t))):e(t)}function Jb(e){return Wn(function(t){return D_(e,t)})}function Zb(e,t,r,n,o,i,s,a){var l=[],c=0,u=0,d=!1,p=function(){d&&!l.length&&!c&&t.complete()},f=function(g){return c<n?m(g):l.push(g)},m=function(g){i&&t.next(g),c++;var x=!1;yt(r(g,u++)).subscribe(Xe(t,function(y){o?.(y),i?f(y):t.next(y)},function(){x=!0},void 0,function(){if(x)try{c--;for(var y=function(){var T=l.shift();s?Jt(t,s,function(){return m(T)}):m(T)};l.length&&c<n;)y();p()}catch(T){t.error(T)}}))};return e.subscribe(Xe(t,f,function(){d=!0,p()})),function(){a?.()}}function qo(e,t,r){return r===void 0&&(r=1/0),ke(t)?qo(function(n,o){return Wn(function(i,s){return t(n,i,o,s)})(yt(e(n,o)))},r):(typeof t=="number"&&(r=t),Qe(function(n,o){return Zb(n,o,e,r)}))}function xc(e){return e===void 0&&(e=1/0),qo(ba,e)}function yc(){return xc(1)}function bc(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return yc()(jo(e,Yn(e)))}var C_=["addListener","removeListener"],E_=["addEventListener","removeEventListener"],M_=["on","off"];function Yo(e,t,r,n){if(ke(r)&&(n=r,r=void 0),n)return Yo(e,t,r).pipe(Jb(n));var o=Xt(A_(e)?E_.map(function(a){return function(l){return e[a](t,l,r)}}):I_(e)?C_.map(Kb(e,t)):$_(e)?M_.map(Kb(e,t)):[],2),i=o[0],s=o[1];if(!i&&Vi(e))return qo(function(a){return Yo(a,t,r)})(yt(e));if(!i)throw new TypeError("Invalid event target");return new je(function(a){var l=function(){for(var c=[],u=0;u<arguments.length;u++)c[u]=arguments[u];return a.next(1<c.length?c:c[0])};return i(l),function(){return s(l)}})}function Kb(e,t){return function(r){return function(n){return e[r](t,n)}}}function I_(e){return ke(e.addListener)&&ke(e.removeListener)}function $_(e){return ke(e.on)&&ke(e.off)}function A_(e){return ke(e.addEventListener)&&ke(e.removeEventListener)}function rm(e,t,r){e===void 0&&(e=0),r===void 0&&(r=Zf);var n=-1;return t!=null&&(ac(t)?r=t:n=t),new je(function(o){var i=Xb(e)?+e-r.now():e;i<0&&(i=0);var s=0;return r.schedule(function(){o.closed||(o.next(s++),0<=n?this.schedule(void 0,n):o.complete())},i)})}function vc(e,t){return Qe(function(r,n){var o=0;r.subscribe(Xe(n,function(i){return e.call(t,i,o++)&&n.next(i)}))})}function wc(e){return Qe(function(t,r){var n=[];return t.subscribe(Xe(r,function(o){return n.push(o)},function(){r.next(n),r.complete()})),yt(e).subscribe(Xe(r,function(){var o=n;n=[],r.next(o)},en)),function(){n=null}})}function Sc(e,t){return t===void 0&&(t=null),t=t??e,Qe(function(r,n){var o=[],i=0;r.subscribe(Xe(n,function(s){var a,l,c,u,d=null;i++%t===0&&o.push([]);try{for(var p=Pt(o),f=p.next();!f.done;f=p.next()){var m=f.value;m.push(s),e<=m.length&&(d=d??[],d.push(m))}}catch(y){a={error:y}}finally{try{f&&!f.done&&(l=p.return)&&l.call(p)}finally{if(a)throw a.error}}if(d)try{for(var g=Pt(d),x=g.next();!x.done;x=g.next()){var m=x.value;zr(o,m),n.next(m)}}catch(y){c={error:y}}finally{try{x&&!x.done&&(u=g.return)&&u.call(g)}finally{if(c)throw c.error}}},function(){var s,a;try{for(var l=Pt(o),c=l.next();!c.done;c=l.next()){var u=c.value;n.next(u)}}catch(d){s={error:d}}finally{try{c&&!c.done&&(a=l.return)&&a.call(l)}finally{if(s)throw s.error}}n.complete()},void 0,function(){o=null}))})}function kc(e){for(var t,r,n=[],o=1;o<arguments.length;o++)n[o-1]=arguments[o];var i=(t=Yn(n))!==null&&t!==void 0?t:qn,s=(r=n[0])!==null&&r!==void 0?r:null,a=n[1]||1/0;return Qe(function(l,c){var u=[],d=!1,p=function(g){var x=g.buffer,y=g.subs;y.unsubscribe(),zr(u,g),c.next(x),d&&f()},f=function(){if(u){var g=new ir;c.add(g);var x=[],y={buffer:x,subs:g};u.push(y),Jt(g,i,function(){return p(y)},e)}};s!==null&&s>=0?Jt(c,i,f,s,!0):d=!0,f();var m=Xe(c,function(g){var x,y,T=u.slice();try{for(var D=Pt(T),H=D.next();!H.done;H=D.next()){var j=H.value,M=j.buffer;M.push(g),a<=M.length&&p(j)}}catch(U){x={error:U}}finally{try{H&&!H.done&&(y=D.return)&&y.call(D)}finally{if(x)throw x.error}}},function(){for(;u?.length;)c.next(u.shift().buffer);m?.unsubscribe(),c.complete(),c.unsubscribe()},void 0,function(){return u=null});l.subscribe(m)})}function Tc(e){return Qe(function(t,r){var n=!1,o=null,i=null,s=function(){if(i?.unsubscribe(),i=null,n){n=!1;var a=o;o=null,r.next(a)}};t.subscribe(Xe(r,function(a){i?.unsubscribe(),n=!0,o=a,i=Xe(r,s,en),yt(e(a)).subscribe(i)},function(){s(),r.complete()},void 0,function(){o=i=null}))})}function Dc(e,t){return t===void 0&&(t=qn),Qe(function(r,n){var o=null,i=null,s=null,a=function(){if(o){o.unsubscribe(),o=null;var c=i;i=null,n.next(c)}};function l(){var c=s+e,u=t.now();if(u<c){o=this.schedule(void 0,c-u),n.add(o);return}a()}r.subscribe(Xe(n,function(c){i=c,s=t.now(),o||(o=t.schedule(l,e),n.add(o))},function(){a(),n.complete()},void 0,function(){i=o=null}))})}function Cc(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=Yn(e);return Qe(function(n,o){(r?bc(e,n,r):bc(e,n)).subscribe(o)})}function Ec(e){return Qe(function(t,r){yt(e).subscribe(Xe(r,function(){return r.complete()},en)),!r.closed&&t.subscribe(r)})}function Mc(e,t){return Qe(function(r,n){var o=t??{},i=o.leading,s=i===void 0?!0:i,a=o.trailing,l=a===void 0?!1:a,c=!1,u=null,d=null,p=!1,f=function(){d?.unsubscribe(),d=null,l&&(x(),p&&n.complete())},m=function(){d=null,p&&n.complete()},g=function(y){return d=yt(e(y)).subscribe(Xe(n,f,m))},x=function(){if(c){c=!1;var y=u;u=null,n.next(y),!p&&g(y)}};r.subscribe(Xe(n,function(y){c=!0,u=y,!(d&&!d.closed)&&(s?x():g(y))},function(){p=!0,!(l&&c&&d&&!d.closed)&&n.complete()}))})}function Ic(e,t,r){t===void 0&&(t=qn);var n=rm(e,t);return Mc(function(){return n},r)}var mL={buffer:wc,bufferCount:Sc,bufferTime:kc,debounce:Tc,debounceTime:Dc,filter:vc,map:Wn,startWith:Cc,takeUntil:Ec,throttleTime:Ic};var nm=class{constructor(){this.observableEventEmitterBundleArray=new Array,this.observableEventTargetBundleArray=new Array}getSubjectForEmitterEvent(t,r){let n=this.observableEventEmitterBundleArray.find(o=>o.eventRef===t&&o.event===r);if(n)return n.subject;{let o=Yo(t,r),i=new tn;o.subscribe(i);let s={subject:i,eventRef:t,event:r};return this.observableEventEmitterBundleArray.push(s),s.subject}}getSubjectForEventTarget(t,r){let n=this.observableEventTargetBundleArray.find(o=>o.eventRef===t&&o.event===r);if(n)return n.subject;{let i={subject:new tn,eventRef:t,event:r};return this.observableEventTargetBundleArray.push(i),i.subject}}};var om=class{constructor(){this.observableFunctions={next:t=>{},complete:t=>{}},this.generator=null,this.buffered=!1,this.payloadBuffer=[],this.observable=new je(t=>{this.observableFunctions.next=(...r)=>t.next(r),this.observableFunctions.complete=()=>(this.completedDeffered.resolve(),t.complete())}),this.completedDeffered=fe.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)}};function hL(e){return new je(t=>{let r=()=>e.pause(),n=()=>process.nextTick(()=>e.resume()),o=i=>{r(),t.next(i),n()};return e.on("data",o),e.on("error",i=>t.error(i)),e.on("end",()=>t.complete()),e.on("close",()=>t.complete()),()=>{e.removeListener("data",o),e.removeListener("error",t.error),e.removeListener("end",t.complete),e.removeListener("close",t.complete)}})}var gL={attribute:!0,type:String,converter:Ui,reflect:!1,hasChanged:da},ev=(e=gL,t,r)=>{let{kind:n,metadata:o}=r,i=globalThis.litPropertyMetadata.get(o);if(i===void 0&&globalThis.litPropertyMetadata.set(o,i=new Map),n==="setter"&&((e=Object.create(e)).wrapped=!0),i.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.C(s,void 0,e,a),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 G(e){return(t,r)=>typeof r=="object"?ev(e,t,r):((n,o,i)=>{let s=o.hasOwnProperty(i);return o.constructor.createProperty(i,n),s?Object.getOwnPropertyDescriptor(o,i):void 0})(e,t,r)}var ct={};he(ct,{DomTools:()=>Sn,TypedRequest:()=>Za,breakpoints:()=>wn,css:()=>hf,elementBasic:()=>At,plugins:()=>gf});var At={};he(At,{setup:()=>BU,staticStyles:()=>FU,styles:()=>RU});var tl={};he(tl,{DeesComms:()=>Th});var be={};he(be,{Timeout:()=>_c,delayFor:()=>rv,delayForRandom:()=>kL});var Ji={};he(Ji,{CumulativeDeferred:()=>Ac,Deferred:()=>$c,cumulativeDefer:()=>xL,defer:()=>Wo,getFirstTrueOrFalse:()=>SL,map:()=>vL,rejectedPromise:()=>bL,resolvedPromise:()=>yL,timeoutAndContinue:()=>wL,timeoutWrap:()=>tv});var $c=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"})}},Wo=()=>new $c;var Ac=class{constructor(){this.accumulatedPromises=[],this.deferred=Wo(),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)}},xL=()=>new Ac;var yL=e=>Promise.resolve(e),bL=e=>Promise.reject(e),vL=async(e,t)=>{let r=[],n=[];for(let o of e){let i=t(o);r.push(i),i.then(s=>{n.push(s)})}return await Promise.all(r),n},tv=async(e,t,r=!0)=>new Promise((n,o)=>{setTimeout(()=>{r?o(new Error("timeout")):n(null)},t),e.then(n,o)}),wL=async(e,t=6e4)=>tv(e,t,!1),SL=async e=>{let t=Wo();for(let r of e)r.then(n=>{n===!0&&t.resolve(!0)});return Promise.all(e).then(()=>{t.resolve(!1)}),t.promise};var rv=async(e,t,r=!1)=>(await new _c(e,null,r).promise,t),kL=async(e,t,r,n=!1)=>(await rv(Math.random()*(t-e)+e,null,n),r),_c=class{constructor(t,r,n=!1){this._cancelled=!1,this.timeoutInMillis=t,this._deferred=Wo(),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 Vn={};var Kt={};he(Kt,{TypedHandler:()=>hh,TypedRequest:()=>Za,TypedResponseError:()=>Nn,TypedRouter:()=>li,TypedTarget:()=>gh,VirtualStream:()=>dn});var kt={};he(kt,{AsyncExecutionStack:()=>Mm,BackpressuredArray:()=>Im,FastMap:()=>Ba,Interest:()=>za,InterestMap:()=>$m,LimitedArray:()=>Am,LoopTracker:()=>_m,ObjectMap:()=>ri,Stringmap:()=>Om,TimedAggregtor:()=>Lm,Tree:()=>Nm,uni:()=>$S});var $n={};he($n,{SmartMatch:()=>sm});var ka={};he(ka,{isMatch:()=>CL,matcher:()=>DL});function Vo(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}var im=new Map,nv=(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})},TL=(e,t)=>{t={caseSensitive:!1,...t};let r=e+JSON.stringify(t);if(im.has(r))return im.get(r);let n=e[0]==="!";n&&(e=e.slice(1)),e=Vo(e).replace(/\\\*/g,"[\\s\\S]*");let o=new RegExp(`^${e}$`,t.caseSensitive?"":"i");return o.negated=n,im.set(r,o),o},ov=(e,t,r,n)=>{if(e=nv(e,"inputs"),t=nv(t,"patterns"),t.length===0)return[];t=t.map(s=>TL(s,r));let{allPatterns:o}=r||{},i=[];for(let s of e){let a,l=[...t].fill(!1);for(let[c,u]of t.entries())if(u.test(s)&&(l[c]=!0,a=!u.negated,!a))break;if(!(a===!1||a===void 0&&t.some(c=>!c.negated)||o&&l.some((c,u)=>!c&&!t[u].negated))&&(i.push(s),n))break}return i};function DL(e,t,r){return ov(e,t,r,!1)}function CL(e,t,r){return ov(e,t,r,!0).length>0}var sm=class{constructor(t){this.wildcard=t}match(t){return ka.isMatch(t,this.wildcard)}};var _n={};he(_n,{CronJob:()=>Ra,CronManager:()=>wm,ExtendedDate:()=>Sm,HrtMeasurement:()=>km,Interval:()=>Tm,TimeStamp:()=>ws,Timer:()=>Dm,getMilliSecondsAsHumanReadableAgoTime:()=>nP,getMilliSecondsAsHumanReadableString:()=>vm,getMilliSecondsFromUnits:()=>bm,units:()=>so});var Ca={};he(Ca,{Cron:()=>cv,CronDate:()=>sr,CronPattern:()=>Oc,scheduledJobs:()=>Zi});function Ft(e,t,r,n,o,i,s,a){return Ft.fromTZ(Ft.tp(e,t,r,n,o,i,s),a)}Ft.fromTZISO=(e,t,r)=>Ft.fromTZ(ML(e,t),r),Ft.fromTZ=function(e,t){let r=new Date(Date.UTC(e.y,e.m-1,e.d,e.h,e.i,e.s)),n=am(e.tz,r),o=new Date(r.getTime()-n),i=am(e.tz,o);if(i-n===0)return o;{let s=new Date(r.getTime()-i),a=am(e.tz,s);if(a-i===0||!t&&a-i>0)return s;if(t)throw new Error("Invalid date passed to fromTZ()");return o}},Ft.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}},Ft.tp=(e,t,r,n,o,i,s)=>({y:e,m:t,d:r,h:n,i:o,s:i,tz:s});function am(e,t=new Date){let r=t.toLocaleString("en-US",{timeZone:e,timeZoneName:"shortOffset"}).split(" ").slice(-1)[0],n=t.toLocaleString("en-US").replace(/[\u202f]/," ");return Date.parse(`${n} GMT`)-Date.parse(`${n} ${r}`)}function ML(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("+")?Ft.tp(r.getUTCFullYear(),r.getUTCMonth()+1,r.getUTCDate(),r.getUTCHours(),r.getUTCMinutes(),r.getUTCSeconds(),"Etc/UTC"):Ft.tp(r.getFullYear(),r.getMonth()+1,r.getDate(),r.getHours(),r.getMinutes(),r.getSeconds(),t)}Ft.minitz=Ft;var lm=32,Ta=31|lm,iv=[1,2,4,8,16],Oc=class{pattern;timezone;second;minute;hour;day;month;dayOfWeek;lastDayOfMonth;starDOM;starDOW;constructor(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()}parse(){if(!(typeof this.pattern=="string"||this.pattern instanceof 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+"'), exactly five or six space separated parts are 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 sr(new Date,this.timezone).getDate(!0);e[0]=e[0].replace("?",t.getSeconds().toString()),e[1]=e[1].replace("?",t.getMinutes().toString()),e[2]=e[2].replace("?",t.getHours().toString()),this.starDOM||(e[3]=e[3].replace("?",t.getDate().toString())),e[4]=e[4].replace("?",(t.getMonth()+1).toString()),this.starDOW||(e[5]=e[5].replace("?",t.getDay().toString()))}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,Ta),this.dayOfWeek[7]&&(this.dayOfWeek[0]=this.dayOfWeek[7])}partToArray(e,t,r,n){let o=this[e],i=e==="day"&&this.lastDayOfMonth;if(t===""&&!i)throw new TypeError("CronPattern: configuration entry "+e+" ("+t+") is empty, check for trailing spaces.");if(t==="*")return o.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)}throwAtIllegalCharacters(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.")}handleNumber(e,t,r,n){let o=this.extractNth(e,t),i=parseInt(o[0],10)+r;if(isNaN(i))throw new TypeError("CronPattern: "+t+" is not a number: '"+e+"'");this.setPart(t,i,o[1]||n)}setPart(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)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}handleRangeWithStepping(e,t,r,n){let o=this.extractNth(e,t),i=o[0].match(/^(\d+)-(\d+)\/(\d+)$/);if(i===null)throw new TypeError("CronPattern: Syntax error, illegal range with stepping: '"+e+"'");let[,s,a,l]=i,c=parseInt(s,10)+r,u=parseInt(a,10)+r,d=parseInt(l,10);if(isNaN(c))throw new TypeError("CronPattern: Syntax error, illegal lower range (NaN)");if(isNaN(u))throw new TypeError("CronPattern: Syntax error, illegal upper range (NaN)");if(isNaN(d))throw new TypeError("CronPattern: Syntax error, illegal stepping: (NaN)");if(d===0)throw new TypeError("CronPattern: Syntax error, illegal stepping: 0");if(d>this[t].length)throw new TypeError("CronPattern: Syntax error, steps cannot be greater than maximum value of part ("+this[t].length+")");if(c>u)throw new TypeError("CronPattern: From value is larger than to value: '"+e+"'");for(let p=c;p<=u;p+=d)this.setPart(t,p,o[1]||n)}extractNth(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]}handleRange(e,t,r,n){let o=this.extractNth(e,t),i=o[0].split("-");if(i.length!==2)throw new TypeError("CronPattern: Syntax error, illegal range: '"+e+"'");let s=parseInt(i[0],10)+r,a=parseInt(i[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,o[1]||n)}handleStepping(e,t,r,n){let o=this.extractNth(e,t),i=o[0].split("/");if(i.length!==2)throw new TypeError("CronPattern: Syntax error, illegal stepping: '"+e+"'");i[0]===""&&(i[0]="*");let s=0;i[0]!=="*"&&(s=parseInt(i[0],10)+r);let a=parseInt(i[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,o[1]||n)}replaceAlphaDays(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")}replaceAlphaMonths(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")}handleNicknames(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}setNthWeekdayOfMonth(e,t){if(typeof t!="number"&&t==="L")this.dayOfWeek[e]=this.dayOfWeek[e]|lm;else if(t===Ta)this.dayOfWeek[e]=Ta;else if(t<6&&t>0)this.dayOfWeek[e]=this.dayOfWeek[e]|iv[t-1];else throw new TypeError(`CronPattern: nth weekday out of range, should be 1-5 or L. Value: ${t}, Type: ${typeof t}`)}},sv=[31,28,31,30,31,30,31,31,30,31,30,31],An=[["month","year",0],["day","month",-1],["hour","day",0],["minute","hour",0],["second","minute",0]],sr=class lv{tz;ms;second;minute;hour;day;month;year;constructor(t,r){if(this.tz=r,t&&t instanceof Date)if(!isNaN(t))this.fromDate(t);else throw new TypeError("CronDate: Invalid date passed to CronDate constructor");else if(t===void 0)this.fromDate(new Date);else if(t&&typeof t=="string")this.fromString(t);else if(t instanceof lv)this.fromCronDate(t);else throw new TypeError("CronDate: Invalid type ("+typeof t+") passed to CronDate constructor")}isNthWeekdayOfMonth(t,r,n,o){let i=new Date(Date.UTC(t,r,n)).getUTCDay(),s=0;for(let a=1;a<=n;a++)new Date(Date.UTC(t,r,a)).getUTCDay()===i&&s++;if(o&Ta&&iv[s-1]&o)return!0;if(o&lm){let a=new Date(Date.UTC(t,r+1,0)).getUTCDate();for(let l=n+1;l<=a;l++)if(new Date(Date.UTC(t,r,l)).getUTCDay()===i)return!1;return!0}return!1}fromDate(t){if(this.tz!==void 0)if(typeof this.tz=="number")this.ms=t.getUTCMilliseconds(),this.second=t.getUTCSeconds(),this.minute=t.getUTCMinutes()+this.tz,this.hour=t.getUTCHours(),this.day=t.getUTCDate(),this.month=t.getUTCMonth(),this.year=t.getUTCFullYear(),this.apply();else{let r=Ft.toTZ(t,this.tz);this.ms=t.getMilliseconds(),this.second=r.s,this.minute=r.i,this.hour=r.h,this.day=r.d,this.month=r.m-1,this.year=r.y}else this.ms=t.getMilliseconds(),this.second=t.getSeconds(),this.minute=t.getMinutes(),this.hour=t.getHours(),this.day=t.getDate(),this.month=t.getMonth(),this.year=t.getFullYear()}fromCronDate(t){this.tz=t.tz,this.year=t.year,this.month=t.month,this.day=t.day,this.hour=t.hour,this.minute=t.minute,this.second=t.second,this.ms=t.ms}apply(){if(this.month>11||this.day>sv[this.month]||this.hour>59||this.minute>59||this.second>59||this.hour<0||this.minute<0||this.second<0){let t=new Date(Date.UTC(this.year,this.month,this.day,this.hour,this.minute,this.second,this.ms));return this.ms=t.getUTCMilliseconds(),this.second=t.getUTCSeconds(),this.minute=t.getUTCMinutes(),this.hour=t.getUTCHours(),this.day=t.getUTCDate(),this.month=t.getUTCMonth(),this.year=t.getUTCFullYear(),!0}else return!1}fromString(t){if(typeof this.tz=="number"){let r=Ft.fromTZISO(t);this.ms=r.getUTCMilliseconds(),this.second=r.getUTCSeconds(),this.minute=r.getUTCMinutes(),this.hour=r.getUTCHours(),this.day=r.getUTCDate(),this.month=r.getUTCMonth(),this.year=r.getUTCFullYear(),this.apply()}else return this.fromDate(Ft.fromTZISO(t,this.tz))}findNext(t,r,n,o){let i=this[r],s;n.lastDayOfMonth&&(this.month!==1?s=sv[this.month]:s=new Date(Date.UTC(this.year,this.month+1,0,0,0,0,0)).getUTCDate());let a=!n.starDOW&&r=="day"?new Date(Date.UTC(this.year,this.month,1,0,0,0,0)).getUTCDay():void 0;for(let l=this[r]+o;l<n[r].length;l++){let c=n[r][l];if(r==="day"&&n.lastDayOfMonth&&l-o==s&&(c=1),r==="day"&&!n.starDOW){let u=n.dayOfWeek[(a+(l-o-1))%7];if(u&&u&Ta)u=this.isNthWeekdayOfMonth(this.year,this.month,l-o,u)?1:0;else if(u)throw new Error(`CronDate: Invalid value for dayOfWeek encountered. ${u}`);t.legacyMode&&!n.starDOM?c=c||u:c=c&&u}if(c)return this[r]=l-o,i!==this[r]?2:1}return 3}recurse(t,r,n){let o=this.findNext(r,An[n][0],t,An[n][2]);if(o>1){let i=n+1;for(;i<An.length;)this[An[i][0]]=-An[i][2],i++;if(o===3)return this[An[n][1]]++,this[An[n][0]]=-An[n][2],this.apply(),this.recurse(t,r,0);if(this.apply())return this.recurse(t,r,n-1)}return n+=1,n>=An.length?this:this.year>=3e3?null:this.recurse(t,r,n)}increment(t,r,n){return this.second+=r.interval!==void 0&&r.interval>1&&n?r.interval:1,this.ms=0,this.apply(),this.recurse(t,r,0)}getDate(t){return t||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)):Ft.fromTZ(Ft.tp(this.year,this.month+1,this.day,this.hour,this.minute,this.second,this.tz),!1)}getTime(){return this.getDate(!1).getTime()}};function IL(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.toString(),10),e.utcOffset=e.utcOffset===void 0?void 0:parseInt(e.utcOffset.toString(),10),e.unref=e.unref===void 0?!1:e.unref,e.startAt&&(e.startAt=new sr(e.startAt,e.timezone)),e.stopAt&&(e.stopAt=new sr(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}function Da(e){return Object.prototype.toString.call(e)==="[object Function]"||typeof e=="function"||e instanceof Function}function $L(e){return Da(e)}function AL(e){typeof Deno<"u"&&typeof Deno.unrefTimer<"u"?Deno.unrefTimer(e):e&&typeof e.unref<"u"&&e.unref()}var av=30*1e3,Zi=[],cv=class{name;options;_states;fn;constructor(e,t,r){let n,o;if(Da(t))o=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(Da(r))o=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?.name,this.options=IL(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:new Oc("* * * * *")},e&&(e instanceof Date||typeof e=="string"&&e.indexOf(":")>0)?this._states.once=new sr(e,this.options.timezone||this.options.utcOffset):this._states.pattern=new Oc(e,this.options.timezone),this.name){if(Zi.find(i=>i.name===this.name))throw new Error("Cron: Tried to initialize new named job '"+this.name+"', but name already taken.");Zi.push(this)}return o!==void 0&&$L(o)&&(this.fn=o,this.schedule()),this}nextRun(e){let t=this._next(e);return t?t.getDate(!1):null}nextRuns(e,t){this._states.maxRuns!==void 0&&e>this._states.maxRuns&&(e=this._states.maxRuns);let r=[],n=t||this._states.currentRun||void 0;for(;e--&&(n=this.nextRun(n));)r.push(n);return r}getPattern(){return this._states.pattern?this._states.pattern.pattern:void 0}isRunning(){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}isStopped(){return this._states.kill}isBusy(){return this._states.blocking}currentRun(){return this._states.currentRun?this._states.currentRun.getDate():null}previousRun(){return this._states.previousRun?this._states.previousRun.getDate():null}msToNext(e){let t=this._next(e);return t?e instanceof sr||e instanceof Date?t.getTime()-e.getTime():t.getTime()-new sr(e).getTime():null}stop(){this._states.kill=!0,this._states.currentTimeout&&clearTimeout(this._states.currentTimeout);let e=Zi.indexOf(this);e>=0&&Zi.splice(e,1)}pause(){return this._states.paused=!0,!this._states.kill}resume(){return this._states.paused=!1,!this._states.kill}schedule(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||isNaN(t)||r===null?this:(t>av&&(t=av),this._states.currentTimeout=setTimeout(()=>this._checkTrigger(r),t),this._states.currentTimeout&&this.options.unref&&AL(this._states.currentTimeout),this)}async _trigger(e){if(this._states.blocking=!0,this._states.currentRun=new sr(void 0,this.options.timezone||this.options.utcOffset),this.options.catch)try{this.fn!==void 0&&await this.fn(this,this.options.context)}catch(t){Da(this.options.catch)&&this.options.catch(t,this)}else this.fn!==void 0&&await this.fn(this,this.options.context);this._states.previousRun=new sr(e,this.options.timezone||this.options.utcOffset),this._states.blocking=!1}async trigger(){await this._trigger()}runsLeft(){return this._states.maxRuns}_checkTrigger(e){let t=new Date,r=!this._states.paused&&t.getTime()>=e.getTime(),n=this._states.blocking&&this.options.protect;r&&!n?(this._states.maxRuns!==void 0&&this._states.maxRuns--,this._trigger()):r&&n&&Da(this.options.protect)&&setTimeout(()=>this.options.protect(this),0),this.schedule()}_next(e){let t=!!(e||this._states.currentRun),r=!1;!e&&this.options.startAt&&this.options.interval&&([e,t]=this._calculatePreviousRun(e,t),r=!e),e=new sr(e,this.options.timezone||this.options.utcOffset),this.options.startAt&&e&&e.getTime()<this.options.startAt.getTime()&&(e=this.options.startAt);let n=this._states.once||new sr(e,this.options.timezone||this.options.utcOffset);return!r&&n!==this._states.once&&(n=n.increment(this._states.pattern,this.options,t)),this._states.once&&this._states.once.getTime()<=e.getTime()||n===null||this._states.maxRuns!==void 0&&this._states.maxRuns<=0||this._states.kill||this.options.stopAt&&n.getTime()>=this.options.stopAt.getTime()?null:n}_calculatePreviousRun(e,t){let r=new sr(void 0,this.options.timezone||this.options.utcOffset),n=e;if(this.options.startAt.getTime()<=r.getTime()){n=this.options.startAt;let o=n.getTime()+this.options.interval*1e3;for(;o<=r.getTime();)n=new sr(n,this.options.timezone||this.options.utcOffset).increment(this._states.pattern,this.options,!0),o=n.getTime()+this.options.interval*1e3;t=!0}return n===null&&(n=void 0),[n,t]}};var Pa={};he(Pa,{add:()=>Qn,addBusinessDays:()=>jc,addDays:()=>St,addHours:()=>qc,addISOWeekYears:()=>Wc,addMilliseconds:()=>Xn,addMinutes:()=>rs,addMonths:()=>nn,addQuarters:()=>ns,addSeconds:()=>Vc,addWeeks:()=>Jn,addYears:()=>Gc,areIntervalsOverlapping:()=>mv,clamp:()=>hv,closestIndexTo:()=>Jc,closestTo:()=>gv,compareAsc:()=>Bt,compareDesc:()=>xv,constructFrom:()=>R,constructNow:()=>De,daysToWeeks:()=>yv,differenceInBusinessDays:()=>bv,differenceInCalendarDays:()=>Et,differenceInCalendarISOWeekYears:()=>Kc,differenceInCalendarISOWeeks:()=>vv,differenceInCalendarMonths:()=>Qo,differenceInCalendarQuarters:()=>os,differenceInCalendarWeeks:()=>Xo,differenceInCalendarYears:()=>Zn,differenceInDays:()=>is,differenceInHours:()=>Jo,differenceInISOWeekYears:()=>Sv,differenceInMilliseconds:()=>ss,differenceInMinutes:()=>Zo,differenceInMonths:()=>Kn,differenceInQuarters:()=>kv,differenceInSeconds:()=>ln,differenceInWeeks:()=>Tv,differenceInYears:()=>ru,eachDayOfInterval:()=>nu,eachHourOfInterval:()=>Dv,eachMinuteOfInterval:()=>Cv,eachMonthOfInterval:()=>Ev,eachQuarterOfInterval:()=>Mv,eachWeekOfInterval:()=>Iv,eachWeekendOfInterval:()=>cs,eachWeekendOfMonth:()=>$v,eachWeekendOfYear:()=>Av,eachYearOfInterval:()=>_v,endOfDay:()=>as,endOfDecade:()=>Ov,endOfHour:()=>Lv,endOfISOWeek:()=>Nv,endOfISOWeekYear:()=>Pv,endOfMinute:()=>Fv,endOfMonth:()=>ls,endOfQuarter:()=>Rv,endOfSecond:()=>Bv,endOfToday:()=>zv,endOfTomorrow:()=>Hv,endOfWeek:()=>iu,endOfYear:()=>ou,endOfYesterday:()=>Uv,format:()=>Aa,formatDate:()=>Aa,formatDistance:()=>uu,formatDistanceStrict:()=>du,formatDistanceToNow:()=>Kv,formatDistanceToNowStrict:()=>ew,formatDuration:()=>tw,formatISO:()=>rw,formatISO9075:()=>nw,formatISODuration:()=>ow,formatRFC3339:()=>iw,formatRFC7231:()=>sw,formatRelative:()=>aw,formatters:()=>Ia,fromUnixTime:()=>lw,getDate:()=>pu,getDay:()=>no,getDayOfYear:()=>au,getDaysInMonth:()=>fu,getDaysInYear:()=>cw,getDecade:()=>uw,getDefaultOptions:()=>hu,getHours:()=>dw,getISODay:()=>gu,getISOWeek:()=>fs,getISOWeekYear:()=>Zt,getISOWeeksInYear:()=>pw,getMilliseconds:()=>fw,getMinutes:()=>mw,getMonth:()=>hw,getOverlappingDaysInIntervals:()=>gw,getQuarter:()=>Ma,getSeconds:()=>xw,getTime:()=>yw,getUnixTime:()=>bw,getWeek:()=>ms,getWeekOfMonth:()=>vw,getWeekYear:()=>to,getWeeksInMonth:()=>ww,getYear:()=>Sw,hoursToMilliseconds:()=>kw,hoursToMinutes:()=>Tw,hoursToSeconds:()=>Dw,interval:()=>Cw,intervalToDuration:()=>Ew,intlFormat:()=>Mw,intlFormatDistance:()=>Iw,isAfter:()=>$w,isBefore:()=>Aw,isDate:()=>Zc,isEqual:()=>_w,isExists:()=>Ow,isFirstDayOfMonth:()=>Lw,isFriday:()=>Nw,isFuture:()=>Pw,isLastDayOfMonth:()=>tu,isLeapYear:()=>mu,isMatch:()=>Fw,isMonday:()=>Rw,isPast:()=>Bw,isSameDay:()=>an,isSameHour:()=>ad,isSameISOWeek:()=>ld,isSameISOWeekYear:()=>zw,isSameMinute:()=>cd,isSameMonth:()=>ud,isSameQuarter:()=>dd,isSameSecond:()=>pd,isSameWeek:()=>ys,isSameYear:()=>fd,isSaturday:()=>Hc,isSunday:()=>Uc,isThisHour:()=>Hw,isThisISOWeek:()=>Uw,isThisMinute:()=>jw,isThisMonth:()=>qw,isThisQuarter:()=>Yw,isThisSecond:()=>Ww,isThisWeek:()=>Vw,isThisYear:()=>Gw,isThursday:()=>Qw,isToday:()=>Xw,isTomorrow:()=>Jw,isTuesday:()=>Zw,isValid:()=>Lt,isWednesday:()=>Kw,isWeekend:()=>on,isWithinInterval:()=>e1,isYesterday:()=>t1,lastDayOfDecade:()=>r1,lastDayOfISOWeek:()=>n1,lastDayOfISOWeekYear:()=>o1,lastDayOfMonth:()=>xu,lastDayOfQuarter:()=>i1,lastDayOfWeek:()=>md,lastDayOfYear:()=>s1,lightFormat:()=>a1,lightFormatters:()=>hr,longFormatters:()=>ro,max:()=>Qc,milliseconds:()=>l1,millisecondsToHours:()=>c1,millisecondsToMinutes:()=>u1,millisecondsToSeconds:()=>d1,min:()=>Xc,minutesToHours:()=>p1,minutesToMilliseconds:()=>f1,minutesToSeconds:()=>m1,monthsToQuarters:()=>h1,monthsToYears:()=>g1,nextDay:()=>Ht,nextFriday:()=>x1,nextMonday:()=>y1,nextSaturday:()=>b1,nextSunday:()=>v1,nextThursday:()=>w1,nextTuesday:()=>S1,nextWednesday:()=>k1,parse:()=>sd,parseISO:()=>D1,parseJSON:()=>C1,parsers:()=>id,previousDay:()=>Ut,previousFriday:()=>E1,previousMonday:()=>M1,previousSaturday:()=>I1,previousSunday:()=>$1,previousThursday:()=>A1,previousTuesday:()=>_1,previousWednesday:()=>O1,quartersToMonths:()=>L1,quartersToYears:()=>N1,roundToNearestHours:()=>P1,roundToNearestMinutes:()=>F1,secondsToHours:()=>R1,secondsToMilliseconds:()=>B1,secondsToMinutes:()=>z1,set:()=>H1,setDate:()=>U1,setDay:()=>oo,setDayOfYear:()=>j1,setDefaultOptions:()=>q1,setHours:()=>Y1,setISODay:()=>ju,setISOWeek:()=>Pu,setISOWeekYear:()=>Yc,setMilliseconds:()=>W1,setMinutes:()=>V1,setMonth:()=>bs,setQuarter:()=>G1,setSeconds:()=>Q1,setWeek:()=>Lu,setWeekYear:()=>X1,setYear:()=>J1,startOfDay:()=>sn,startOfDecade:()=>Z1,startOfHour:()=>_a,startOfISOWeek:()=>bt,startOfISOWeekYear:()=>mr,startOfMinute:()=>Oa,startOfMonth:()=>eo,startOfQuarter:()=>cn,startOfSecond:()=>La,startOfToday:()=>K1,startOfTomorrow:()=>eS,startOfWeek:()=>Ye,startOfWeekYear:()=>Ko,startOfYear:()=>us,startOfYesterday:()=>tS,sub:()=>rS,subBusinessDays:()=>nS,subDays:()=>io,subHours:()=>oS,subISOWeekYears:()=>eu,subMilliseconds:()=>iS,subMinutes:()=>sS,subMonths:()=>gd,subQuarters:()=>aS,subSeconds:()=>lS,subWeeks:()=>cS,subYears:()=>uS,toDate:()=>v,transpose:()=>yu,weeksToDays:()=>dS,yearsToDays:()=>pS,yearsToMonths:()=>fS,yearsToQuarters:()=>mS});var Nc=7,Ea=365.2425,_L=Math.pow(10,8)*24*60*60*1e3,tee=-_L,rn=6048e5,Pc=864e5,Rt=6e4,fr=36e5,Ki=1e3,cm=525600,Gn=43200,es=1440,Fc=60,Rc=3,Bc=12,zc=4,Go=3600,ts=60,Lc=Go*24,uv=Lc*7,um=Lc*365.2425,dm=um/12,dv=dm*3,pm=Symbol.for("constructDateFrom");function R(e,t){return typeof e=="function"?e(t):e&&typeof e=="object"&&pm in e?e[pm](t):e instanceof Date?new e.constructor(t):new Date(t)}var oee=R;function v(e,t){return R(t||e,e)}var aee=v;function St(e,t,r){let n=v(e,r?.in);return isNaN(t)?R(r?.in||e,NaN):(t&&n.setDate(n.getDate()+t),n)}var dee=St;function nn(e,t,r){let n=v(e,r?.in);if(isNaN(t))return R(r?.in||e,NaN);if(!t)return n;let o=n.getDate(),i=R(r?.in||e,n.getTime());i.setMonth(n.getMonth()+t+1,0);let s=i.getDate();return o>=s?i:(n.setFullYear(i.getFullYear(),i.getMonth(),o),n)}var hee=nn;function Qn(e,t,r){let{years:n=0,months:o=0,weeks:i=0,days:s=0,hours:a=0,minutes:l=0,seconds:c=0}=t,u=v(e,r?.in),d=o||n?nn(u,o+n*12):u,p=s||i?St(d,s+i*7):d,f=l+a*60,g=(c+f*60)*1e3;return R(r?.in||e,+p+g)}var wee=Qn;function Hc(e,t){return v(e,t?.in).getDay()===6}var Tee=Hc;function Uc(e,t){return v(e,t?.in).getDay()===0}var Eee=Uc;function on(e,t){let r=v(e,t?.in).getDay();return r===0||r===6}var $ee=on;function jc(e,t,r){let n=v(e,r?.in),o=on(n,r);if(isNaN(t))return R(r?.in,NaN);let i=n.getHours(),s=t<0?-1:1,a=Math.trunc(t/5);n.setDate(n.getDate()+a*7);let l=Math.abs(t%5);for(;l>0;)n.setDate(n.getDate()+s),on(n,r)||(l-=1);return o&&on(n,r)&&t!==0&&(Hc(n,r)&&n.setDate(n.getDate()+(s<0?2:-1)),Uc(n,r)&&n.setDate(n.getDate()+(s<0?1:-2))),n.setHours(i),n}var Fee=jc;function Xn(e,t,r){return R(r?.in||e,+v(e)+t)}var Hee=Xn;function qc(e,t,r){return Xn(e,t*fr,r)}var Yee=qc;var pv={};function Be(){return pv}function fv(e){pv=e}function Ye(e,t){let r=Be(),n=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,o=v(e,t?.in),i=o.getDay(),s=(i<n?7:0)+i-n;return o.setDate(o.getDate()-s),o.setHours(0,0,0,0),o}var Xee=Ye;function bt(e,t){return Ye(e,{...t,weekStartsOn:1})}var Kee=bt;function Zt(e,t){let r=v(e,t?.in),n=r.getFullYear(),o=R(r,0);o.setFullYear(n+1,0,4),o.setHours(0,0,0,0);let i=bt(o),s=R(r,0);s.setFullYear(n,0,4),s.setHours(0,0,0,0);let a=bt(s);return r.getTime()>=i.getTime()?n+1:r.getTime()>=a.getTime()?n:n-1}var ote=Zt;function ot(e){let t=v(e),r=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return r.setUTCFullYear(t.getFullYear()),+e-+r}function ce(e,...t){let r=R.bind(null,e||t.find(n=>typeof n=="object"));return t.map(r)}function sn(e,t){let r=v(e,t?.in);return r.setHours(0,0,0,0),r}var dte=sn;function Et(e,t,r){let[n,o]=ce(r?.in,e,t),i=sn(n),s=sn(o),a=+i-ot(i),l=+s-ot(s);return Math.round((a-l)/Pc)}var xte=Et;function mr(e,t){let r=Zt(e,t),n=R(t?.in||e,0);return n.setFullYear(r,0,4),n.setHours(0,0,0,0),bt(n)}var Ste=mr;function Yc(e,t,r){let n=v(e,r?.in),o=Et(n,mr(n,r)),i=R(r?.in||e,0);return i.setFullYear(t,0,4),i.setHours(0,0,0,0),n=mr(i),n.setDate(n.getDate()+o),n}var Mte=Yc;function Wc(e,t,r){return Yc(e,Zt(e,r)+t,r)}var _te=Wc;function rs(e,t,r){let n=v(e,r?.in);return n.setTime(n.getTime()+t*Rt),n}var Pte=rs;function ns(e,t,r){return nn(e,t*3,r)}var Bte=ns;function Vc(e,t,r){return Xn(e,t*1e3,r)}var Ute=Vc;function Jn(e,t,r){return St(e,t*7,r)}var Yte=Jn;function Gc(e,t,r){return nn(e,t*12,r)}var Gte=Gc;function mv(e,t,r){let[n,o]=[+v(e.start,r?.in),+v(e.end,r?.in)].sort((a,l)=>a-l),[i,s]=[+v(t.start,r?.in),+v(t.end,r?.in)].sort((a,l)=>a-l);return r?.inclusive?n<=s&&i<=o:n<s&&i<o}var Jte=mv;function Qc(e,t){let r,n=t?.in;return e.forEach(o=>{!n&&typeof o=="object"&&(n=R.bind(null,o));let i=v(o,n);(!r||r<i||isNaN(+i))&&(r=i)}),R(n,r||NaN)}var tre=Qc;function Xc(e,t){let r,n=t?.in;return e.forEach(o=>{!n&&typeof o=="object"&&(n=R.bind(null,o));let i=v(o,n);(!r||r>i||isNaN(+i))&&(r=i)}),R(n,r||NaN)}var ire=Xc;function hv(e,t,r){let[n,o,i]=ce(r?.in,e,t.start,t.end);return Xc([Qc([n,o],r),i],r)}var ure=hv;function Jc(e,t){let r=+v(e);if(isNaN(r))return NaN;let n,o;return t.forEach((i,s)=>{let a=v(i);if(isNaN(+a)){n=NaN,o=NaN;return}let l=Math.abs(r-+a);(n==null||l<o)&&(n=s,o=l)}),n}var fre=Jc;function gv(e,t,r){let[n,...o]=ce(r?.in,e,...t),i=Jc(n,o);if(typeof i=="number"&&isNaN(i))return R(n,NaN);if(i!==void 0)return o[i]}var yre=gv;function Bt(e,t){let r=+v(e)-+v(t);return r<0?-1:r>0?1:r}var wre=Bt;function xv(e,t){let r=+v(e)-+v(t);return r>0?-1:r<0?1:r}var Tre=xv;function De(e){return R(e,Date.now())}var Ere=De;function yv(e){let t=Math.trunc(e/7);return t===0?0:t}var $re=yv;function an(e,t,r){let[n,o]=ce(r?.in,e,t);return+sn(n)==+sn(o)}var Lre=an;function Zc(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}var Pre=Zc;function Lt(e){return!(!Zc(e)&&typeof e!="number"||isNaN(+v(e)))}var zre=Lt;function bv(e,t,r){let[n,o]=ce(r?.in,e,t);if(!Lt(n)||!Lt(o))return NaN;let i=Et(n,o),s=i<0?-1:1,a=Math.trunc(i/7),l=a*5,c=St(o,a*7);for(;!an(n,c);)l+=on(c,r)?0:s,c=St(c,s);return l===0?0:l}var Gre=bv;function Kc(e,t,r){let[n,o]=ce(r?.in,e,t);return Zt(n,r)-Zt(o,r)}var Zre=Kc;function vv(e,t,r){let[n,o]=ce(r?.in,e,t),i=bt(n),s=bt(o),a=+i-ot(i),l=+s-ot(s);return Math.round((a-l)/rn)}var one=vv;function Qo(e,t,r){let[n,o]=ce(r?.in,e,t),i=n.getFullYear()-o.getFullYear(),s=n.getMonth()-o.getMonth();return i*12+s}var ane=Qo;function Ma(e,t){let r=v(e,t?.in);return Math.trunc(r.getMonth()/3)+1}var une=Ma;function os(e,t,r){let[n,o]=ce(r?.in,e,t),i=n.getFullYear()-o.getFullYear(),s=Ma(n)-Ma(o);return i*4+s}var mne=os;function Xo(e,t,r){let[n,o]=ce(r?.in,e,t),i=Ye(n,r),s=Ye(o,r),a=+i-ot(i),l=+s-ot(s);return Math.round((a-l)/rn)}var vne=Xo;function Zn(e,t,r){let[n,o]=ce(r?.in,e,t);return n.getFullYear()-o.getFullYear()}var kne=Zn;function is(e,t,r){let[n,o]=ce(r?.in,e,t),i=wv(n,o),s=Math.abs(Et(n,o));n.setDate(n.getDate()-i*s);let a=+(wv(n,o)===-i),l=i*(s-a);return l===0?0:l}function wv(e,t){let r=e.getFullYear()-t.getFullYear()||e.getMonth()-t.getMonth()||e.getDate()-t.getDate()||e.getHours()-t.getHours()||e.getMinutes()-t.getMinutes()||e.getSeconds()-t.getSeconds()||e.getMilliseconds()-t.getMilliseconds();return r<0?-1:r>0?1:r}var Ene=is;function zt(e){return t=>{let n=(e?Math[e]:Math.trunc)(t);return n===0?0:n}}function Jo(e,t,r){let[n,o]=ce(r?.in,e,t),i=(+n-+o)/fr;return zt(r?.roundingMethod)(i)}var One=Jo;function eu(e,t,r){return Wc(e,-t,r)}var Pne=eu;function Sv(e,t,r){let[n,o]=ce(r?.in,e,t),i=Bt(n,o),s=Math.abs(Kc(n,o,r)),a=eu(n,i*s,r),l=+(Bt(a,o)===-i),c=i*(s-l);return c===0?0:c}var Une=Sv;function ss(e,t){return+v(e)-+v(t)}var Yne=ss;function Zo(e,t,r){let n=ss(e,t)/Rt;return zt(r?.roundingMethod)(n)}var Xne=Zo;function as(e,t){let r=v(e,t?.in);return r.setHours(23,59,59,999),r}var Kne=as;function ls(e,t){let r=v(e,t?.in),n=r.getMonth();return r.setFullYear(r.getFullYear(),n+1,0),r.setHours(23,59,59,999),r}var roe=ls;function tu(e,t){let r=v(e,t?.in);return+as(r,t)==+ls(r,t)}var aoe=tu;function Kn(e,t,r){let[n,o,i]=ce(r?.in,e,e,t),s=Bt(o,i),a=Math.abs(Qo(o,i));if(a<1)return 0;o.getMonth()===1&&o.getDate()>27&&o.setDate(30),o.setMonth(o.getMonth()-s*a);let l=Bt(o,i)===-s;tu(n)&&a===1&&Bt(n,i)===1&&(l=!1);let c=s*(a-+l);return c===0?0:c}var foe=Kn;function kv(e,t,r){let n=Kn(e,t,r)/3;return zt(r?.roundingMethod)(n)}var xoe=kv;function ln(e,t,r){let n=ss(e,t)/1e3;return zt(r?.roundingMethod)(n)}var woe=ln;function Tv(e,t,r){let n=is(e,t,r)/7;return zt(r?.roundingMethod)(n)}var Doe=Tv;function ru(e,t,r){let[n,o]=ce(r?.in,e,t),i=Bt(n,o),s=Math.abs(Zn(n,o));n.setFullYear(1584),o.setFullYear(1584);let a=Bt(n,o)===-i,l=i*(s-+a);return l===0?0:l}var $oe=ru;function Mt(e,t){let[r,n]=ce(e,t.start,t.end);return{start:r,end:n}}function nu(e,t){let{start:r,end:n}=Mt(t?.in,e),o=+r>+n,i=o?+r:+n,s=o?n:r;s.setHours(0,0,0,0);let a=t?.step??1;if(!a)return[];a<0&&(a=-a,o=!o);let l=[];for(;+s<=i;)l.push(R(r,s)),s.setDate(s.getDate()+a),s.setHours(0,0,0,0);return o?l.reverse():l}var Poe=nu;function Dv(e,t){let{start:r,end:n}=Mt(t?.in,e),o=+r>+n,i=o?+r:+n,s=o?n:r;s.setMinutes(0,0,0);let a=t?.step??1;if(!a)return[];a<0&&(a=-a,o=!o);let l=[];for(;+s<=i;)l.push(R(r,s)),s.setHours(s.getHours()+a);return o?l.reverse():l}var zoe=Dv;function Cv(e,t){let{start:r,end:n}=Mt(t?.in,e);r.setSeconds(0,0);let o=+r>+n,i=o?+r:+n,s=o?n:r,a=t?.step??1;if(!a)return[];a<0&&(a=-a,o=!o);let l=[];for(;+s<=i;)l.push(R(r,s)),s=rs(s,a);return o?l.reverse():l}var Yoe=Cv;function Ev(e,t){let{start:r,end:n}=Mt(t?.in,e),o=+r>+n,i=o?+r:+n,s=o?n:r;s.setHours(0,0,0,0),s.setDate(1);let a=t?.step??1;if(!a)return[];a<0&&(a=-a,o=!o);let l=[];for(;+s<=i;)l.push(R(r,s)),s.setMonth(s.getMonth()+a);return o?l.reverse():l}var Qoe=Ev;function cn(e,t){let r=v(e,t?.in),n=r.getMonth(),o=n-n%3;return r.setMonth(o,1),r.setHours(0,0,0,0),r}var Zoe=cn;function Mv(e,t){let{start:r,end:n}=Mt(t?.in,e),o=+r>+n,i=o?+cn(r):+cn(n),s=o?cn(n):cn(r),a=t?.step??1;if(!a)return[];a<0&&(a=-a,o=!o);let l=[];for(;+s<=i;)l.push(R(r,s)),s=ns(s,a);return o?l.reverse():l}var oie=Mv;function Iv(e,t){let{start:r,end:n}=Mt(t?.in,e),o=+r>+n,i=o?Ye(n,t):Ye(r,t),s=o?Ye(r,t):Ye(n,t);i.setHours(15),s.setHours(15);let a=+s.getTime(),l=i,c=t?.step??1;if(!c)return[];c<0&&(c=-c,o=!o);let u=[];for(;+l<=a;)l.setHours(0),u.push(R(r,l)),l=Jn(l,c),l.setHours(15);return o?u.reverse():u}var uie=Iv;function cs(e,t){let{start:r,end:n}=Mt(t?.in,e),o=nu({start:r,end:n},t),i=[],s=0;for(;s<o.length;){let a=o[s++];on(a)&&i.push(R(r,a))}return i}var gie=cs;function eo(e,t){let r=v(e,t?.in);return r.setDate(1),r.setHours(0,0,0,0),r}var bie=eo;function $v(e,t){let r=eo(e,t),n=ls(e,t);return cs({start:r,end:n},t)}var Tie=$v;function ou(e,t){let r=v(e,t?.in),n=r.getFullYear();return r.setFullYear(n+1,0,0),r.setHours(23,59,59,999),r}var Eie=ou;function us(e,t){let r=v(e,t?.in);return r.setFullYear(r.getFullYear(),0,1),r.setHours(0,0,0,0),r}var $ie=us;function Av(e,t){let r=us(e,t),n=ou(e,t);return cs({start:r,end:n},t)}var Nie=Av;function _v(e,t){let{start:r,end:n}=Mt(t?.in,e),o=+r>+n,i=o?+r:+n,s=o?n:r;s.setHours(0,0,0,0),s.setMonth(0,1);let a=t?.step??1;if(!a)return[];a<0&&(a=-a,o=!o);let l=[];for(;+s<=i;)l.push(R(r,s)),s.setFullYear(s.getFullYear()+a);return o?l.reverse():l}var Bie=_v;function Ov(e,t){let r=v(e,t?.in),n=r.getFullYear(),o=9+Math.floor(n/10)*10;return r.setFullYear(o,11,31),r.setHours(23,59,59,999),r}var Uie=Ov;function Lv(e,t){let r=v(e,t?.in);return r.setMinutes(59,59,999),r}var Yie=Lv;function iu(e,t){let r=Be(),n=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,o=v(e,t?.in),i=o.getDay(),s=(i<n?-7:0)+6-(i-n);return o.setDate(o.getDate()+s),o.setHours(23,59,59,999),o}var Qie=iu;function Nv(e,t){return iu(e,{...t,weekStartsOn:1})}var Zie=Nv;function Pv(e,t){let r=Zt(e,t),n=R(t?.in||e,0);n.setFullYear(r+1,0,4),n.setHours(0,0,0,0);let o=bt(n,t);return o.setMilliseconds(o.getMilliseconds()-1),o}var nse=Pv;function Fv(e,t){let r=v(e,t?.in);return r.setSeconds(59,999),r}var sse=Fv;function Rv(e,t){let r=v(e,t?.in),n=r.getMonth(),o=n-n%3+3;return r.setMonth(o,0),r.setHours(23,59,59,999),r}var cse=Rv;function Bv(e,t){let r=v(e,t?.in);return r.setMilliseconds(999),r}var pse=Bv;function zv(e){return as(Date.now(),e)}var hse=zv;function Hv(e){let t=De(e?.in),r=t.getFullYear(),n=t.getMonth(),o=t.getDate(),i=De(e?.in);return i.setFullYear(r,n,o+1),i.setHours(23,59,59,999),e?.in?e.in(i):i}var yse=Hv;function Uv(e){let t=De(e?.in),r=R(e?.in,0);return r.setFullYear(t.getFullYear(),t.getMonth(),t.getDate()-1),r.setHours(23,59,59,999),r}var Sse=Uv;var OL={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},jv=(e,t,r)=>{let n,o=OL[e];return typeof o=="string"?n=o:t===1?n=o.one:n=o.other.replace("{{count}}",t.toString()),r?.addSuffix?r.comparison&&r.comparison>0?"in "+n:n+" ago":n};function su(e){return(t={})=>{let r=t.width?String(t.width):e.defaultWidth;return e.formats[r]||e.formats[e.defaultWidth]}}var LL={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},NL={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},PL={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},qv={date:su({formats:LL,defaultWidth:"full"}),time:su({formats:NL,defaultWidth:"full"}),dateTime:su({formats:PL,defaultWidth:"full"})};var FL={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},Yv=(e,t,r,n)=>FL[e];function ds(e){return(t,r)=>{let n=r?.context?String(r.context):"standalone",o;if(n==="formatting"&&e.formattingValues){let s=e.defaultFormattingWidth||e.defaultWidth,a=r?.width?String(r.width):s;o=e.formattingValues[a]||e.formattingValues[s]}else{let s=e.defaultWidth,a=r?.width?String(r.width):e.defaultWidth;o=e.values[a]||e.values[s]}let i=e.argumentCallback?e.argumentCallback(t):t;return o[i]}}var RL={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},BL={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},zL={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},HL={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},UL={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},jL={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},qL=(e,t)=>{let r=Number(e),n=r%100;if(n>20||n<10)switch(n%10){case 1:return r+"st";case 2:return r+"nd";case 3:return r+"rd"}return r+"th"},Wv={ordinalNumber:qL,era:ds({values:RL,defaultWidth:"wide"}),quarter:ds({values:BL,defaultWidth:"wide",argumentCallback:e=>e-1}),month:ds({values:zL,defaultWidth:"wide"}),day:ds({values:HL,defaultWidth:"wide"}),dayPeriod:ds({values:UL,defaultWidth:"wide",formattingValues:jL,defaultFormattingWidth:"wide"})};function ps(e){return(t,r={})=>{let n=r.width,o=n&&e.matchPatterns[n]||e.matchPatterns[e.defaultMatchWidth],i=t.match(o);if(!i)return null;let s=i[0],a=n&&e.parsePatterns[n]||e.parsePatterns[e.defaultParseWidth],l=Array.isArray(a)?WL(a,d=>d.test(s)):YL(a,d=>d.test(s)),c;c=e.valueCallback?e.valueCallback(l):l,c=r.valueCallback?r.valueCallback(c):c;let u=t.slice(s.length);return{value:c,rest:u}}}function YL(e,t){for(let r in e)if(Object.prototype.hasOwnProperty.call(e,r)&&t(e[r]))return r}function WL(e,t){for(let r=0;r<e.length;r++)if(t(e[r]))return r}function Vv(e){return(t,r={})=>{let n=t.match(e.matchPattern);if(!n)return null;let o=n[0],i=t.match(e.parsePattern);if(!i)return null;let s=e.valueCallback?e.valueCallback(i[0]):i[0];s=r.valueCallback?r.valueCallback(s):s;let a=t.slice(o.length);return{value:s,rest:a}}}var VL=/^(\d+)(th|st|nd|rd)?/i,GL=/\d+/i,QL={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},XL={any:[/^b/i,/^(a|c)/i]},JL={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},ZL={any:[/1/i,/2/i,/3/i,/4/i]},KL={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},eN={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},tN={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},rN={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},nN={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},oN={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},Gv={ordinalNumber:Vv({matchPattern:VL,parsePattern:GL,valueCallback:e=>parseInt(e,10)}),era:ps({matchPatterns:QL,defaultMatchWidth:"wide",parsePatterns:XL,defaultParseWidth:"any"}),quarter:ps({matchPatterns:JL,defaultMatchWidth:"wide",parsePatterns:ZL,defaultParseWidth:"any",valueCallback:e=>e+1}),month:ps({matchPatterns:KL,defaultMatchWidth:"wide",parsePatterns:eN,defaultParseWidth:"any"}),day:ps({matchPatterns:tN,defaultMatchWidth:"wide",parsePatterns:rN,defaultParseWidth:"any"}),dayPeriod:ps({matchPatterns:nN,defaultMatchWidth:"any",parsePatterns:oN,defaultParseWidth:"any"})};var ar={code:"en-US",formatDistance:jv,formatLong:qv,formatRelative:Yv,localize:Wv,match:Gv,options:{weekStartsOn:0,firstWeekContainsDate:1}},Use=ar;function au(e,t){let r=v(e,t?.in);return Et(r,us(r))+1}var Qse=au;function fs(e,t){let r=v(e,t?.in),n=+bt(r)-+mr(r);return Math.round(n/rn)+1}var tae=fs;function to(e,t){let r=v(e,t?.in),n=r.getFullYear(),o=Be(),i=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??o.firstWeekContainsDate??o.locale?.options?.firstWeekContainsDate??1,s=R(t?.in||e,0);s.setFullYear(n+1,0,i),s.setHours(0,0,0,0);let a=Ye(s,t),l=R(t?.in||e,0);l.setFullYear(n,0,i),l.setHours(0,0,0,0);let c=Ye(l,t);return+r>=+a?n+1:+r>=+c?n:n-1}var aae=to;function Ko(e,t){let r=Be(),n=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??r.firstWeekContainsDate??r.locale?.options?.firstWeekContainsDate??1,o=to(e,t),i=R(t?.in||e,0);return i.setFullYear(o,0,n),i.setHours(0,0,0,0),Ye(i,t)}var fae=Ko;function ms(e,t){let r=v(e,t?.in),n=+Ye(r,t)-+Ko(r,t);return Math.round(n/rn)+1}var bae=ms;function oe(e,t){let r=e<0?"-":"",n=Math.abs(e).toString().padStart(t,"0");return r+n}var hr={y(e,t){let r=e.getFullYear(),n=r>0?r:1-r;return oe(t==="yy"?n%100:n,t.length)},M(e,t){let r=e.getMonth();return t==="M"?String(r+1):oe(r+1,2)},d(e,t){return oe(e.getDate(),t.length)},a(e,t){let r=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.toUpperCase();case"aaa":return r;case"aaaaa":return r[0];default:return r==="am"?"a.m.":"p.m."}},h(e,t){return oe(e.getHours()%12||12,t.length)},H(e,t){return oe(e.getHours(),t.length)},m(e,t){return oe(e.getMinutes(),t.length)},s(e,t){return oe(e.getSeconds(),t.length)},S(e,t){let r=t.length,n=e.getMilliseconds(),o=Math.trunc(n*Math.pow(10,r-3));return oe(o,t.length)}};var hs={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},Ia={G:function(e,t,r){let n=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return r.era(n,{width:"abbreviated"});case"GGGGG":return r.era(n,{width:"narrow"});default:return r.era(n,{width:"wide"})}},y:function(e,t,r){if(t==="yo"){let n=e.getFullYear(),o=n>0?n:1-n;return r.ordinalNumber(o,{unit:"year"})}return hr.y(e,t)},Y:function(e,t,r,n){let o=to(e,n),i=o>0?o:1-o;if(t==="YY"){let s=i%100;return oe(s,2)}return t==="Yo"?r.ordinalNumber(i,{unit:"year"}):oe(i,t.length)},R:function(e,t){let r=Zt(e);return oe(r,t.length)},u:function(e,t){let r=e.getFullYear();return oe(r,t.length)},Q:function(e,t,r){let n=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(n);case"QQ":return oe(n,2);case"Qo":return r.ordinalNumber(n,{unit:"quarter"});case"QQQ":return r.quarter(n,{width:"abbreviated",context:"formatting"});case"QQQQQ":return r.quarter(n,{width:"narrow",context:"formatting"});default:return r.quarter(n,{width:"wide",context:"formatting"})}},q:function(e,t,r){let n=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(n);case"qq":return oe(n,2);case"qo":return r.ordinalNumber(n,{unit:"quarter"});case"qqq":return r.quarter(n,{width:"abbreviated",context:"standalone"});case"qqqqq":return r.quarter(n,{width:"narrow",context:"standalone"});default:return r.quarter(n,{width:"wide",context:"standalone"})}},M:function(e,t,r){let n=e.getMonth();switch(t){case"M":case"MM":return hr.M(e,t);case"Mo":return r.ordinalNumber(n+1,{unit:"month"});case"MMM":return r.month(n,{width:"abbreviated",context:"formatting"});case"MMMMM":return r.month(n,{width:"narrow",context:"formatting"});default:return r.month(n,{width:"wide",context:"formatting"})}},L:function(e,t,r){let n=e.getMonth();switch(t){case"L":return String(n+1);case"LL":return oe(n+1,2);case"Lo":return r.ordinalNumber(n+1,{unit:"month"});case"LLL":return r.month(n,{width:"abbreviated",context:"standalone"});case"LLLLL":return r.month(n,{width:"narrow",context:"standalone"});default:return r.month(n,{width:"wide",context:"standalone"})}},w:function(e,t,r,n){let o=ms(e,n);return t==="wo"?r.ordinalNumber(o,{unit:"week"}):oe(o,t.length)},I:function(e,t,r){let n=fs(e);return t==="Io"?r.ordinalNumber(n,{unit:"week"}):oe(n,t.length)},d:function(e,t,r){return t==="do"?r.ordinalNumber(e.getDate(),{unit:"date"}):hr.d(e,t)},D:function(e,t,r){let n=au(e);return t==="Do"?r.ordinalNumber(n,{unit:"dayOfYear"}):oe(n,t.length)},E:function(e,t,r){let n=e.getDay();switch(t){case"E":case"EE":case"EEE":return r.day(n,{width:"abbreviated",context:"formatting"});case"EEEEE":return r.day(n,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(n,{width:"short",context:"formatting"});default:return r.day(n,{width:"wide",context:"formatting"})}},e:function(e,t,r,n){let o=e.getDay(),i=(o-n.weekStartsOn+8)%7||7;switch(t){case"e":return String(i);case"ee":return oe(i,2);case"eo":return r.ordinalNumber(i,{unit:"day"});case"eee":return r.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return r.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(o,{width:"short",context:"formatting"});default:return r.day(o,{width:"wide",context:"formatting"})}},c:function(e,t,r,n){let o=e.getDay(),i=(o-n.weekStartsOn+8)%7||7;switch(t){case"c":return String(i);case"cc":return oe(i,t.length);case"co":return r.ordinalNumber(i,{unit:"day"});case"ccc":return r.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return r.day(o,{width:"narrow",context:"standalone"});case"cccccc":return r.day(o,{width:"short",context:"standalone"});default:return r.day(o,{width:"wide",context:"standalone"})}},i:function(e,t,r){let n=e.getDay(),o=n===0?7:n;switch(t){case"i":return String(o);case"ii":return oe(o,t.length);case"io":return r.ordinalNumber(o,{unit:"day"});case"iii":return r.day(n,{width:"abbreviated",context:"formatting"});case"iiiii":return r.day(n,{width:"narrow",context:"formatting"});case"iiiiii":return r.day(n,{width:"short",context:"formatting"});default:return r.day(n,{width:"wide",context:"formatting"})}},a:function(e,t,r){let o=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"aaa":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return r.dayPeriod(o,{width:"narrow",context:"formatting"});default:return r.dayPeriod(o,{width:"wide",context:"formatting"})}},b:function(e,t,r){let n=e.getHours(),o;switch(n===12?o=hs.noon:n===0?o=hs.midnight:o=n/12>=1?"pm":"am",t){case"b":case"bb":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"bbb":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return r.dayPeriod(o,{width:"narrow",context:"formatting"});default:return r.dayPeriod(o,{width:"wide",context:"formatting"})}},B:function(e,t,r){let n=e.getHours(),o;switch(n>=17?o=hs.evening:n>=12?o=hs.afternoon:n>=4?o=hs.morning:o=hs.night,t){case"B":case"BB":case"BBB":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"BBBBB":return r.dayPeriod(o,{width:"narrow",context:"formatting"});default:return r.dayPeriod(o,{width:"wide",context:"formatting"})}},h:function(e,t,r){if(t==="ho"){let n=e.getHours()%12;return n===0&&(n=12),r.ordinalNumber(n,{unit:"hour"})}return hr.h(e,t)},H:function(e,t,r){return t==="Ho"?r.ordinalNumber(e.getHours(),{unit:"hour"}):hr.H(e,t)},K:function(e,t,r){let n=e.getHours()%12;return t==="Ko"?r.ordinalNumber(n,{unit:"hour"}):oe(n,t.length)},k:function(e,t,r){let n=e.getHours();return n===0&&(n=24),t==="ko"?r.ordinalNumber(n,{unit:"hour"}):oe(n,t.length)},m:function(e,t,r){return t==="mo"?r.ordinalNumber(e.getMinutes(),{unit:"minute"}):hr.m(e,t)},s:function(e,t,r){return t==="so"?r.ordinalNumber(e.getSeconds(),{unit:"second"}):hr.s(e,t)},S:function(e,t){return hr.S(e,t)},X:function(e,t,r){let n=e.getTimezoneOffset();if(n===0)return"Z";switch(t){case"X":return Xv(n);case"XXXX":case"XX":return ei(n);default:return ei(n,":")}},x:function(e,t,r){let n=e.getTimezoneOffset();switch(t){case"x":return Xv(n);case"xxxx":case"xx":return ei(n);default:return ei(n,":")}},O:function(e,t,r){let n=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+Qv(n,":");default:return"GMT"+ei(n,":")}},z:function(e,t,r){let n=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+Qv(n,":");default:return"GMT"+ei(n,":")}},t:function(e,t,r){let n=Math.trunc(+e/1e3);return oe(n,t.length)},T:function(e,t,r){return oe(+e,t.length)}};function Qv(e,t=""){let r=e>0?"-":"+",n=Math.abs(e),o=Math.trunc(n/60),i=n%60;return i===0?r+String(o):r+String(o)+t+oe(i,2)}function Xv(e,t){return e%60===0?(e>0?"-":"+")+oe(Math.abs(e)/60,2):ei(e,t)}function ei(e,t=""){let r=e>0?"-":"+",n=Math.abs(e),o=oe(Math.trunc(n/60),2),i=oe(n%60,2);return r+o+t+i}var Jv=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});default:return t.date({width:"full"})}},Zv=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});default:return t.time({width:"full"})}},iN=(e,t)=>{let r=e.match(/(P+)(p+)?/)||[],n=r[1],o=r[2];if(!o)return Jv(e,t);let i;switch(n){case"P":i=t.dateTime({width:"short"});break;case"PP":i=t.dateTime({width:"medium"});break;case"PPP":i=t.dateTime({width:"long"});break;default:i=t.dateTime({width:"full"});break}return i.replace("{{date}}",Jv(n,t)).replace("{{time}}",Zv(o,t))},ro={p:Zv,P:iN};var sN=/^D+$/,aN=/^Y+$/,lN=["D","DD","YY","YYYY"];function lu(e){return sN.test(e)}function cu(e){return aN.test(e)}function $a(e,t,r){let n=cN(e,t,r);if(console.warn(n),lN.includes(e))throw new RangeError(n)}function cN(e,t,r){let n=e[0]==="Y"?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${n} to the input \`${r}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}var uN=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,dN=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,pN=/^'([^]*?)'?$/,fN=/''/g,mN=/[a-zA-Z]/;function Aa(e,t,r){let n=Be(),o=r?.locale??n.locale??ar,i=r?.firstWeekContainsDate??r?.locale?.options?.firstWeekContainsDate??n.firstWeekContainsDate??n.locale?.options?.firstWeekContainsDate??1,s=r?.weekStartsOn??r?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,a=v(e,r?.in);if(!Lt(a))throw new RangeError("Invalid time value");let l=t.match(dN).map(u=>{let d=u[0];if(d==="p"||d==="P"){let p=ro[d];return p(u,o.formatLong)}return u}).join("").match(uN).map(u=>{if(u==="''")return{isToken:!1,value:"'"};let d=u[0];if(d==="'")return{isToken:!1,value:hN(u)};if(Ia[d])return{isToken:!0,value:u};if(d.match(mN))throw new RangeError("Format string contains an unescaped latin alphabet character `"+d+"`");return{isToken:!1,value:u}});o.localize.preprocessor&&(l=o.localize.preprocessor(a,l));let c={firstWeekContainsDate:i,weekStartsOn:s,locale:o};return l.map(u=>{if(!u.isToken)return u.value;let d=u.value;(!r?.useAdditionalWeekYearTokens&&cu(d)||!r?.useAdditionalDayOfYearTokens&&lu(d))&&$a(d,t,String(e));let p=Ia[d[0]];return p(a,d,o.localize,c)}).join("")}function hN(e){let t=e.match(pN);return t?t[1].replace(fN,"'"):e}var Hae=Aa;function uu(e,t,r){let n=Be(),o=r?.locale??n.locale??ar,i=2520,s=Bt(e,t);if(isNaN(s))throw new RangeError("Invalid time value");let a=Object.assign({},r,{addSuffix:r?.addSuffix,comparison:s}),[l,c]=ce(r?.in,...s>0?[t,e]:[e,t]),u=ln(c,l),d=(ot(c)-ot(l))/1e3,p=Math.round((u-d)/60),f;if(p<2)return r?.includeSeconds?u<5?o.formatDistance("lessThanXSeconds",5,a):u<10?o.formatDistance("lessThanXSeconds",10,a):u<20?o.formatDistance("lessThanXSeconds",20,a):u<40?o.formatDistance("halfAMinute",0,a):u<60?o.formatDistance("lessThanXMinutes",1,a):o.formatDistance("xMinutes",1,a):p===0?o.formatDistance("lessThanXMinutes",1,a):o.formatDistance("xMinutes",p,a);if(p<45)return o.formatDistance("xMinutes",p,a);if(p<90)return o.formatDistance("aboutXHours",1,a);if(p<es){let m=Math.round(p/60);return o.formatDistance("aboutXHours",m,a)}else{if(p<i)return o.formatDistance("xDays",1,a);if(p<Gn){let m=Math.round(p/es);return o.formatDistance("xDays",m,a)}else if(p<Gn*2)return f=Math.round(p/Gn),o.formatDistance("aboutXMonths",f,a)}if(f=Kn(c,l),f<12){let m=Math.round(p/Gn);return o.formatDistance("xMonths",m,a)}else{let m=f%12,g=Math.trunc(f/12);return m<3?o.formatDistance("aboutXYears",g,a):m<9?o.formatDistance("overXYears",g,a):o.formatDistance("almostXYears",g+1,a)}}var Jae=uu;function du(e,t,r){let n=Be(),o=r?.locale??n.locale??ar,i=Bt(e,t);if(isNaN(i))throw new RangeError("Invalid time value");let s=Object.assign({},r,{addSuffix:r?.addSuffix,comparison:i}),[a,l]=ce(r?.in,...i>0?[t,e]:[e,t]),c=zt(r?.roundingMethod??"round"),u=l.getTime()-a.getTime(),d=u/Rt,p=ot(l)-ot(a),f=(u-p)/Rt,m=r?.unit,g;if(m?g=m:d<1?g="second":d<60?g="minute":d<es?g="hour":f<Gn?g="day":f<cm?g="month":g="year",g==="second"){let x=c(u/1e3);return o.formatDistance("xSeconds",x,s)}else if(g==="minute"){let x=c(d);return o.formatDistance("xMinutes",x,s)}else if(g==="hour"){let x=c(d/60);return o.formatDistance("xHours",x,s)}else if(g==="day"){let x=c(f/es);return o.formatDistance("xDays",x,s)}else if(g==="month"){let x=c(f/Gn);return x===12&&m!=="month"?o.formatDistance("xYears",1,s):o.formatDistance("xMonths",x,s)}else{let x=c(f/cm);return o.formatDistance("xYears",x,s)}}var sle=du;function Kv(e,t){return uu(e,De(e),t)}var ule=Kv;function ew(e,t){return du(e,De(e),t)}var mle=ew;var gN=["years","months","weeks","days","hours","minutes","seconds"];function tw(e,t){let r=Be(),n=t?.locale??r.locale??ar,o=t?.format??gN,i=t?.zero??!1,s=t?.delimiter??" ";return n.formatDistance?o.reduce((l,c)=>{let u=`x${c.replace(/(^.)/,p=>p.toUpperCase())}`,d=e[c];return d!==void 0&&(i||e[c])?l.concat(n.formatDistance(u,d)):l},[]).join(s):""}var yle=tw;function rw(e,t){let r=v(e,t?.in);if(isNaN(+r))throw new RangeError("Invalid time value");let n=t?.format??"extended",o=t?.representation??"complete",i="",s="",a=n==="extended"?"-":"",l=n==="extended"?":":"";if(o!=="time"){let c=oe(r.getDate(),2),u=oe(r.getMonth()+1,2);i=`${oe(r.getFullYear(),4)}${a}${u}${a}${c}`}if(o!=="date"){let c=r.getTimezoneOffset();if(c!==0){let g=Math.abs(c),x=oe(Math.trunc(g/60),2),y=oe(g%60,2);s=`${c<0?"+":"-"}${x}:${y}`}else s="Z";let u=oe(r.getHours(),2),d=oe(r.getMinutes(),2),p=oe(r.getSeconds(),2),f=i===""?"":"T",m=[u,d,p].join(l);i=`${i}${f}${m}${s}`}return i}var Sle=rw;function nw(e,t){let r=v(e,t?.in);if(!Lt(r))throw new RangeError("Invalid time value");let n=t?.format??"extended",o=t?.representation??"complete",i="",s=n==="extended"?"-":"",a=n==="extended"?":":"";if(o!=="time"){let l=oe(r.getDate(),2),c=oe(r.getMonth()+1,2);i=`${oe(r.getFullYear(),4)}${s}${c}${s}${l}`}if(o!=="date"){let l=oe(r.getHours(),2),c=oe(r.getMinutes(),2),u=oe(r.getSeconds(),2);i=`${i}${i===""?"":" "}${l}${a}${c}${a}${u}`}return i}var Ele=nw;function ow(e){let{years:t=0,months:r=0,days:n=0,hours:o=0,minutes:i=0,seconds:s=0}=e;return`P${t}Y${r}M${n}DT${o}H${i}M${s}S`}var Ile=ow;function iw(e,t){let r=v(e,t?.in);if(!Lt(r))throw new RangeError("Invalid time value");let n=t?.fractionDigits??0,o=oe(r.getDate(),2),i=oe(r.getMonth()+1,2),s=r.getFullYear(),a=oe(r.getHours(),2),l=oe(r.getMinutes(),2),c=oe(r.getSeconds(),2),u="";if(n>0){let f=r.getMilliseconds(),m=Math.trunc(f*Math.pow(10,n-3));u="."+oe(m,n)}let d="",p=r.getTimezoneOffset();if(p!==0){let f=Math.abs(p),m=oe(Math.trunc(f/60),2),g=oe(f%60,2);d=`${p<0?"+":"-"}${m}:${g}`}else d="Z";return`${s}-${i}-${o}T${a}:${l}:${c}${u}${d}`}var Lle=iw;var xN=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],yN=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function sw(e){let t=v(e);if(!Lt(t))throw new RangeError("Invalid time value");let r=xN[t.getUTCDay()],n=oe(t.getUTCDate(),2),o=yN[t.getUTCMonth()],i=t.getUTCFullYear(),s=oe(t.getUTCHours(),2),a=oe(t.getUTCMinutes(),2),l=oe(t.getUTCSeconds(),2);return`${r}, ${n} ${o} ${i} ${s}:${a}:${l} GMT`}var Ble=sw;function aw(e,t,r){let[n,o]=ce(r?.in,e,t),i=Be(),s=r?.locale??i.locale??ar,a=r?.weekStartsOn??r?.locale?.options?.weekStartsOn??i.weekStartsOn??i.locale?.options?.weekStartsOn??0,l=Et(n,o);if(isNaN(l))throw new RangeError("Invalid time value");let c;l<-6?c="other":l<-1?c="lastWeek":l<0?c="yesterday":l<1?c="today":l<2?c="tomorrow":l<7?c="nextWeek":c="other";let u=s.formatRelative(c,n,o,{locale:s,weekStartsOn:a});return Aa(n,u,{locale:s,weekStartsOn:a})}var Wle=aw;function lw(e,t){return v(e*1e3,t?.in)}var Qle=lw;function pu(e,t){return v(e,t?.in).getDate()}var Zle=pu;function no(e,t){return v(e,t?.in).getDay()}var tce=no;function fu(e,t){let r=v(e,t?.in),n=r.getFullYear(),o=r.getMonth(),i=R(r,0);return i.setFullYear(n,o+1,0),i.setHours(0,0,0,0),i.getDate()}var ice=fu;function mu(e,t){let n=v(e,t?.in).getFullYear();return n%400===0||n%4===0&&n%100!==0}var lce=mu;function cw(e,t){let r=v(e,t?.in);return Number.isNaN(+r)?NaN:mu(r)?366:365}var pce=cw;function uw(e,t){let n=v(e,t?.in).getFullYear();return Math.floor(n/10)*10}var hce=uw;function hu(){return Object.assign({},Be())}var yce=hu;function dw(e,t){return v(e,t?.in).getHours()}var wce=dw;function gu(e,t){let r=v(e,t?.in).getDay();return r===0?7:r}var Tce=gu;function pw(e,t){let r=mr(e,t),o=+mr(Jn(r,60))-+r;return Math.round(o/rn)}var Ice=pw;function fw(e){return v(e).getMilliseconds()}var _ce=fw;function mw(e,t){return v(e,t?.in).getMinutes()}var Nce=mw;function hw(e,t){return v(e,t?.in).getMonth()}var Rce=hw;function gw(e,t){let[r,n]=[+v(e.start),+v(e.end)].sort((d,p)=>d-p),[o,i]=[+v(t.start),+v(t.end)].sort((d,p)=>d-p);if(!(r<i&&o<n))return 0;let a=o<r?r:o,l=a-ot(a),c=i>n?n:i,u=c-ot(c);return Math.ceil((u-l)/Pc)}var jce=gw;function xw(e){return v(e).getSeconds()}var Wce=xw;function yw(e){return+v(e)}var Qce=yw;function bw(e){return Math.trunc(+v(e)/1e3)}var Zce=bw;function vw(e,t){let r=Be(),n=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,o=pu(v(e,t?.in));if(isNaN(o))return NaN;let i=no(eo(e,t)),s=n-i;s<=0&&(s+=7);let a=o-s;return Math.ceil(a/7)+1}var iue=vw;function xu(e,t){let r=v(e,t?.in),n=r.getMonth();return r.setFullYear(r.getFullYear(),n+1,0),r.setHours(0,0,0,0),v(r,t?.in)}var lue=xu;function ww(e,t){let r=v(e,t?.in);return Xo(xu(r,t),eo(r,t),t)+1}var mue=ww;function Sw(e,t){return v(e,t?.in).getFullYear()}var xue=Sw;function kw(e){return Math.trunc(e*fr)}var vue=kw;function Tw(e){return Math.trunc(e*Fc)}var kue=Tw;function Dw(e){return Math.trunc(e*Go)}var Cue=Dw;function Cw(e,t,r){let[n,o]=ce(r?.in,e,t);if(isNaN(+n))throw new TypeError("Start date is invalid");if(isNaN(+o))throw new TypeError("End date is invalid");if(r?.assertPositive&&+n>+o)throw new TypeError("End date must be after start date");return{start:n,end:o}}var Iue=Cw;function Ew(e,t){let{start:r,end:n}=Mt(t?.in,e),o={},i=ru(n,r);i&&(o.years=i);let s=Qn(r,{years:o.years}),a=Kn(n,s);a&&(o.months=a);let l=Qn(s,{months:o.months}),c=is(n,l);c&&(o.days=c);let u=Qn(l,{days:o.days}),d=Jo(n,u);d&&(o.hours=d);let p=Qn(u,{hours:o.hours}),f=Zo(n,p);f&&(o.minutes=f);let m=Qn(p,{minutes:o.minutes}),g=ln(n,m);return g&&(o.seconds=g),o}var Bue=Ew;function Mw(e,t,r){let n;return bN(t)?n=t:r=t,new Intl.DateTimeFormat(r?.locale,n).format(v(e))}function bN(e){return e!==void 0&&!("locale"in e)}var Uue=Mw;function Iw(e,t,r){let n=0,o,[i,s]=ce(r?.in,e,t);if(r?.unit)o=r?.unit,o==="second"?n=ln(i,s):o==="minute"?n=Zo(i,s):o==="hour"?n=Jo(i,s):o==="day"?n=Et(i,s):o==="week"?n=Xo(i,s):o==="month"?n=Qo(i,s):o==="quarter"?n=os(i,s):o==="year"&&(n=Zn(i,s));else{let l=ln(i,s);Math.abs(l)<ts?(n=ln(i,s),o="second"):Math.abs(l)<Go?(n=Zo(i,s),o="minute"):Math.abs(l)<Lc&&Math.abs(Et(i,s))<1?(n=Jo(i,s),o="hour"):Math.abs(l)<uv&&(n=Et(i,s))&&Math.abs(n)<7?o="day":Math.abs(l)<dm?(n=Xo(i,s),o="week"):Math.abs(l)<dv?(n=Qo(i,s),o="month"):Math.abs(l)<um?os(i,s)<4?(n=os(i,s),o="quarter"):(n=Zn(i,s),o="year"):(n=Zn(i,s),o="year")}return new Intl.RelativeTimeFormat(r?.locale,{numeric:"auto",...r}).format(n,o)}var ede=Iw;function $w(e,t){return+v(e)>+v(t)}var nde=$w;function Aw(e,t){return+v(e)<+v(t)}var sde=Aw;function _w(e,t){return+v(e)==+v(t)}var cde=_w;function Ow(e,t,r){let n=new Date(e,t,r);return n.getFullYear()===e&&n.getMonth()===t&&n.getDate()===r}var dde=Ow;function Lw(e,t){return v(e,t?.in).getDate()===1}var mde=Lw;function Nw(e,t){return v(e,t?.in).getDay()===5}var xde=Nw;function Pw(e){return+v(e)>Date.now()}var vde=Pw;function yu(e,t){let r=vN(t)?new t(0):R(t,0);return r.setFullYear(e.getFullYear(),e.getMonth(),e.getDate()),r.setHours(e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()),r}function vN(e){return typeof e=="function"&&e.prototype?.constructor===e}var kde=yu;var wN=10,bu=class{subPriority=0;validate(t,r){return!0}},vu=class extends bu{constructor(t,r,n,o,i){super(),this.value=t,this.validateValue=r,this.setValue=n,this.priority=o,i&&(this.subPriority=i)}validate(t,r){return this.validateValue(t,this.value,r)}set(t,r,n){return this.setValue(t,r,this.value,n)}},wu=class extends bu{priority=wN;subPriority=-1;constructor(t,r){super(),this.context=t||(n=>R(r,n))}set(t,r){return r.timestampIsSet?t:R(t,yu(t,this.context))}};var ne=class{run(t,r,n,o){let i=this.parse(t,r,n,o);return i?{setter:new vu(i.value,this.validate,this.set,this.priority,this.subPriority),rest:i.rest}:null}validate(t,r,n){return!0}};var Su=class extends ne{priority=140;parse(t,r,n){switch(r){case"G":case"GG":case"GGG":return n.era(t,{width:"abbreviated"})||n.era(t,{width:"narrow"});case"GGGGG":return n.era(t,{width:"narrow"});default:return n.era(t,{width:"wide"})||n.era(t,{width:"abbreviated"})||n.era(t,{width:"narrow"})}}set(t,r,n){return r.era=n,t.setFullYear(n,0,1),t.setHours(0,0,0,0),t}incompatibleTokens=["R","u","t","T"]};var Ae={month:/^(1[0-2]|0?\d)/,date:/^(3[0-1]|[0-2]?\d)/,dayOfYear:/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,week:/^(5[0-3]|[0-4]?\d)/,hour23h:/^(2[0-3]|[0-1]?\d)/,hour24h:/^(2[0-4]|[0-1]?\d)/,hour11h:/^(1[0-1]|0?\d)/,hour12h:/^(1[0-2]|0?\d)/,minute:/^[0-5]?\d/,second:/^[0-5]?\d/,singleDigit:/^\d/,twoDigits:/^\d{1,2}/,threeDigits:/^\d{1,3}/,fourDigits:/^\d{1,4}/,anyDigitsSigned:/^-?\d+/,singleDigitSigned:/^-?\d/,twoDigitsSigned:/^-?\d{1,2}/,threeDigitsSigned:/^-?\d{1,3}/,fourDigitsSigned:/^-?\d{1,4}/},Cr={basicOptionalMinutes:/^([+-])(\d{2})(\d{2})?|Z/,basic:/^([+-])(\d{2})(\d{2})|Z/,basicOptionalSeconds:/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,extended:/^([+-])(\d{2}):(\d{2})|Z/,extendedOptionalSeconds:/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/};function He(e,t){return e&&{value:t(e.value),rest:e.rest}}function $e(e,t){let r=t.match(e);return r?{value:parseInt(r[0],10),rest:t.slice(r[0].length)}:null}function Er(e,t){let r=t.match(e);if(!r)return null;if(r[0]==="Z")return{value:0,rest:t.slice(1)};let n=r[1]==="+"?1:-1,o=r[2]?parseInt(r[2],10):0,i=r[3]?parseInt(r[3],10):0,s=r[5]?parseInt(r[5],10):0;return{value:n*(o*fr+i*Rt+s*Ki),rest:t.slice(r[0].length)}}function ku(e){return $e(Ae.anyDigitsSigned,e)}function Te(e,t){switch(e){case 1:return $e(Ae.singleDigit,t);case 2:return $e(Ae.twoDigits,t);case 3:return $e(Ae.threeDigits,t);case 4:return $e(Ae.fourDigits,t);default:return $e(new RegExp("^\\d{1,"+e+"}"),t)}}function gs(e,t){switch(e){case 1:return $e(Ae.singleDigitSigned,t);case 2:return $e(Ae.twoDigitsSigned,t);case 3:return $e(Ae.threeDigitsSigned,t);case 4:return $e(Ae.fourDigitsSigned,t);default:return $e(new RegExp("^-?\\d{1,"+e+"}"),t)}}function xs(e){switch(e){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;default:return 0}}function Tu(e,t){let r=t>0,n=r?t:1-t,o;if(n<=50)o=e||100;else{let i=n+50,s=Math.trunc(i/100)*100,a=e>=i%100;o=e+s-(a?100:0)}return r?o:1-o}function Du(e){return e%400===0||e%4===0&&e%100!==0}var Cu=class extends ne{priority=130;incompatibleTokens=["Y","R","u","w","I","i","e","c","t","T"];parse(t,r,n){let o=i=>({year:i,isTwoDigitYear:r==="yy"});switch(r){case"y":return He(Te(4,t),o);case"yo":return He(n.ordinalNumber(t,{unit:"year"}),o);default:return He(Te(r.length,t),o)}}validate(t,r){return r.isTwoDigitYear||r.year>0}set(t,r,n){let o=t.getFullYear();if(n.isTwoDigitYear){let s=Tu(n.year,o);return t.setFullYear(s,0,1),t.setHours(0,0,0,0),t}let i=!("era"in r)||r.era===1?n.year:1-n.year;return t.setFullYear(i,0,1),t.setHours(0,0,0,0),t}};var Eu=class extends ne{priority=130;parse(t,r,n){let o=i=>({year:i,isTwoDigitYear:r==="YY"});switch(r){case"Y":return He(Te(4,t),o);case"Yo":return He(n.ordinalNumber(t,{unit:"year"}),o);default:return He(Te(r.length,t),o)}}validate(t,r){return r.isTwoDigitYear||r.year>0}set(t,r,n,o){let i=to(t,o);if(n.isTwoDigitYear){let a=Tu(n.year,i);return t.setFullYear(a,0,o.firstWeekContainsDate),t.setHours(0,0,0,0),Ye(t,o)}let s=!("era"in r)||r.era===1?n.year:1-n.year;return t.setFullYear(s,0,o.firstWeekContainsDate),t.setHours(0,0,0,0),Ye(t,o)}incompatibleTokens=["y","R","u","Q","q","M","L","I","d","D","i","t","T"]};var Mu=class extends ne{priority=130;parse(t,r){return r==="R"?gs(4,t):gs(r.length,t)}set(t,r,n){let o=R(t,0);return o.setFullYear(n,0,4),o.setHours(0,0,0,0),bt(o)}incompatibleTokens=["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"]};var Iu=class extends ne{priority=130;parse(t,r){return r==="u"?gs(4,t):gs(r.length,t)}set(t,r,n){return t.setFullYear(n,0,1),t.setHours(0,0,0,0),t}incompatibleTokens=["G","y","Y","R","w","I","i","e","c","t","T"]};var $u=class extends ne{priority=120;parse(t,r,n){switch(r){case"Q":case"QQ":return Te(r.length,t);case"Qo":return n.ordinalNumber(t,{unit:"quarter"});case"QQQ":return n.quarter(t,{width:"abbreviated",context:"formatting"})||n.quarter(t,{width:"narrow",context:"formatting"});case"QQQQQ":return n.quarter(t,{width:"narrow",context:"formatting"});default:return n.quarter(t,{width:"wide",context:"formatting"})||n.quarter(t,{width:"abbreviated",context:"formatting"})||n.quarter(t,{width:"narrow",context:"formatting"})}}validate(t,r){return r>=1&&r<=4}set(t,r,n){return t.setMonth((n-1)*3,1),t.setHours(0,0,0,0),t}incompatibleTokens=["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"]};var Au=class extends ne{priority=120;parse(t,r,n){switch(r){case"q":case"qq":return Te(r.length,t);case"qo":return n.ordinalNumber(t,{unit:"quarter"});case"qqq":return n.quarter(t,{width:"abbreviated",context:"standalone"})||n.quarter(t,{width:"narrow",context:"standalone"});case"qqqqq":return n.quarter(t,{width:"narrow",context:"standalone"});default:return n.quarter(t,{width:"wide",context:"standalone"})||n.quarter(t,{width:"abbreviated",context:"standalone"})||n.quarter(t,{width:"narrow",context:"standalone"})}}validate(t,r){return r>=1&&r<=4}set(t,r,n){return t.setMonth((n-1)*3,1),t.setHours(0,0,0,0),t}incompatibleTokens=["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"]};var _u=class extends ne{incompatibleTokens=["Y","R","q","Q","L","w","I","D","i","e","c","t","T"];priority=110;parse(t,r,n){let o=i=>i-1;switch(r){case"M":return He($e(Ae.month,t),o);case"MM":return He(Te(2,t),o);case"Mo":return He(n.ordinalNumber(t,{unit:"month"}),o);case"MMM":return n.month(t,{width:"abbreviated",context:"formatting"})||n.month(t,{width:"narrow",context:"formatting"});case"MMMMM":return n.month(t,{width:"narrow",context:"formatting"});default:return n.month(t,{width:"wide",context:"formatting"})||n.month(t,{width:"abbreviated",context:"formatting"})||n.month(t,{width:"narrow",context:"formatting"})}}validate(t,r){return r>=0&&r<=11}set(t,r,n){return t.setMonth(n,1),t.setHours(0,0,0,0),t}};var Ou=class extends ne{priority=110;parse(t,r,n){let o=i=>i-1;switch(r){case"L":return He($e(Ae.month,t),o);case"LL":return He(Te(2,t),o);case"Lo":return He(n.ordinalNumber(t,{unit:"month"}),o);case"LLL":return n.month(t,{width:"abbreviated",context:"standalone"})||n.month(t,{width:"narrow",context:"standalone"});case"LLLLL":return n.month(t,{width:"narrow",context:"standalone"});default:return n.month(t,{width:"wide",context:"standalone"})||n.month(t,{width:"abbreviated",context:"standalone"})||n.month(t,{width:"narrow",context:"standalone"})}}validate(t,r){return r>=0&&r<=11}set(t,r,n){return t.setMonth(n,1),t.setHours(0,0,0,0),t}incompatibleTokens=["Y","R","q","Q","M","w","I","D","i","e","c","t","T"]};function Lu(e,t,r){let n=v(e,r?.in),o=ms(n,r)-t;return n.setDate(n.getDate()-o*7),v(n,r?.in)}var mpe=Lu;var Nu=class extends ne{priority=100;parse(t,r,n){switch(r){case"w":return $e(Ae.week,t);case"wo":return n.ordinalNumber(t,{unit:"week"});default:return Te(r.length,t)}}validate(t,r){return r>=1&&r<=53}set(t,r,n,o){return Ye(Lu(t,n,o),o)}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","i","t","T"]};function Pu(e,t,r){let n=v(e,r?.in),o=fs(n,r)-t;return n.setDate(n.getDate()-o*7),n}var Tpe=Pu;var Fu=class extends ne{priority=100;parse(t,r,n){switch(r){case"I":return $e(Ae.week,t);case"Io":return n.ordinalNumber(t,{unit:"week"});default:return Te(r.length,t)}}validate(t,r){return r>=1&&r<=53}set(t,r,n){return bt(Pu(t,n))}incompatibleTokens=["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"]};var SN=[31,28,31,30,31,30,31,31,30,31,30,31],kN=[31,29,31,30,31,30,31,31,30,31,30,31],Ru=class extends ne{priority=90;subPriority=1;parse(t,r,n){switch(r){case"d":return $e(Ae.date,t);case"do":return n.ordinalNumber(t,{unit:"date"});default:return Te(r.length,t)}}validate(t,r){let n=t.getFullYear(),o=Du(n),i=t.getMonth();return o?r>=1&&r<=kN[i]:r>=1&&r<=SN[i]}set(t,r,n){return t.setDate(n),t.setHours(0,0,0,0),t}incompatibleTokens=["Y","R","q","Q","w","I","D","i","e","c","t","T"]};var Bu=class extends ne{priority=90;subpriority=1;parse(t,r,n){switch(r){case"D":case"DD":return $e(Ae.dayOfYear,t);case"Do":return n.ordinalNumber(t,{unit:"date"});default:return Te(r.length,t)}}validate(t,r){let n=t.getFullYear();return Du(n)?r>=1&&r<=366:r>=1&&r<=365}set(t,r,n){return t.setMonth(0,n),t.setHours(0,0,0,0),t}incompatibleTokens=["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"]};function oo(e,t,r){let n=Be(),o=r?.weekStartsOn??r?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,i=v(e,r?.in),s=i.getDay(),l=(t%7+7)%7,c=7-o,u=t<0||t>6?t-(s+c)%7:(l+c)%7-(s+c)%7;return St(i,u,r)}var jpe=oo;var zu=class extends ne{priority=90;parse(t,r,n){switch(r){case"E":case"EE":case"EEE":return n.day(t,{width:"abbreviated",context:"formatting"})||n.day(t,{width:"short",context:"formatting"})||n.day(t,{width:"narrow",context:"formatting"});case"EEEEE":return n.day(t,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(t,{width:"short",context:"formatting"})||n.day(t,{width:"narrow",context:"formatting"});default:return n.day(t,{width:"wide",context:"formatting"})||n.day(t,{width:"abbreviated",context:"formatting"})||n.day(t,{width:"short",context:"formatting"})||n.day(t,{width:"narrow",context:"formatting"})}}validate(t,r){return r>=0&&r<=6}set(t,r,n,o){return t=oo(t,n,o),t.setHours(0,0,0,0),t}incompatibleTokens=["D","i","e","c","t","T"]};var Hu=class extends ne{priority=90;parse(t,r,n,o){let i=s=>{let a=Math.floor((s-1)/7)*7;return(s+o.weekStartsOn+6)%7+a};switch(r){case"e":case"ee":return He(Te(r.length,t),i);case"eo":return He(n.ordinalNumber(t,{unit:"day"}),i);case"eee":return n.day(t,{width:"abbreviated",context:"formatting"})||n.day(t,{width:"short",context:"formatting"})||n.day(t,{width:"narrow",context:"formatting"});case"eeeee":return n.day(t,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(t,{width:"short",context:"formatting"})||n.day(t,{width:"narrow",context:"formatting"});default:return n.day(t,{width:"wide",context:"formatting"})||n.day(t,{width:"abbreviated",context:"formatting"})||n.day(t,{width:"short",context:"formatting"})||n.day(t,{width:"narrow",context:"formatting"})}}validate(t,r){return r>=0&&r<=6}set(t,r,n,o){return t=oo(t,n,o),t.setHours(0,0,0,0),t}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"]};var Uu=class extends ne{priority=90;parse(t,r,n,o){let i=s=>{let a=Math.floor((s-1)/7)*7;return(s+o.weekStartsOn+6)%7+a};switch(r){case"c":case"cc":return He(Te(r.length,t),i);case"co":return He(n.ordinalNumber(t,{unit:"day"}),i);case"ccc":return n.day(t,{width:"abbreviated",context:"standalone"})||n.day(t,{width:"short",context:"standalone"})||n.day(t,{width:"narrow",context:"standalone"});case"ccccc":return n.day(t,{width:"narrow",context:"standalone"});case"cccccc":return n.day(t,{width:"short",context:"standalone"})||n.day(t,{width:"narrow",context:"standalone"});default:return n.day(t,{width:"wide",context:"standalone"})||n.day(t,{width:"abbreviated",context:"standalone"})||n.day(t,{width:"short",context:"standalone"})||n.day(t,{width:"narrow",context:"standalone"})}}validate(t,r){return r>=0&&r<=6}set(t,r,n,o){return t=oo(t,n,o),t.setHours(0,0,0,0),t}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"]};function ju(e,t,r){let n=v(e,r?.in),o=gu(n,r),i=t-o;return St(n,i,r)}var ife=ju;var qu=class extends ne{priority=90;parse(t,r,n){let o=i=>i===0?7:i;switch(r){case"i":case"ii":return Te(r.length,t);case"io":return n.ordinalNumber(t,{unit:"day"});case"iii":return He(n.day(t,{width:"abbreviated",context:"formatting"})||n.day(t,{width:"short",context:"formatting"})||n.day(t,{width:"narrow",context:"formatting"}),o);case"iiiii":return He(n.day(t,{width:"narrow",context:"formatting"}),o);case"iiiiii":return He(n.day(t,{width:"short",context:"formatting"})||n.day(t,{width:"narrow",context:"formatting"}),o);default:return He(n.day(t,{width:"wide",context:"formatting"})||n.day(t,{width:"abbreviated",context:"formatting"})||n.day(t,{width:"short",context:"formatting"})||n.day(t,{width:"narrow",context:"formatting"}),o)}}validate(t,r){return r>=1&&r<=7}set(t,r,n){return t=ju(t,n),t.setHours(0,0,0,0),t}incompatibleTokens=["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"]};var Yu=class extends ne{priority=80;parse(t,r,n){switch(r){case"a":case"aa":case"aaa":return n.dayPeriod(t,{width:"abbreviated",context:"formatting"})||n.dayPeriod(t,{width:"narrow",context:"formatting"});case"aaaaa":return n.dayPeriod(t,{width:"narrow",context:"formatting"});default:return n.dayPeriod(t,{width:"wide",context:"formatting"})||n.dayPeriod(t,{width:"abbreviated",context:"formatting"})||n.dayPeriod(t,{width:"narrow",context:"formatting"})}}set(t,r,n){return t.setHours(xs(n),0,0,0),t}incompatibleTokens=["b","B","H","k","t","T"]};var Wu=class extends ne{priority=80;parse(t,r,n){switch(r){case"b":case"bb":case"bbb":return n.dayPeriod(t,{width:"abbreviated",context:"formatting"})||n.dayPeriod(t,{width:"narrow",context:"formatting"});case"bbbbb":return n.dayPeriod(t,{width:"narrow",context:"formatting"});default:return n.dayPeriod(t,{width:"wide",context:"formatting"})||n.dayPeriod(t,{width:"abbreviated",context:"formatting"})||n.dayPeriod(t,{width:"narrow",context:"formatting"})}}set(t,r,n){return t.setHours(xs(n),0,0,0),t}incompatibleTokens=["a","B","H","k","t","T"]};var Vu=class extends ne{priority=80;parse(t,r,n){switch(r){case"B":case"BB":case"BBB":return n.dayPeriod(t,{width:"abbreviated",context:"formatting"})||n.dayPeriod(t,{width:"narrow",context:"formatting"});case"BBBBB":return n.dayPeriod(t,{width:"narrow",context:"formatting"});default:return n.dayPeriod(t,{width:"wide",context:"formatting"})||n.dayPeriod(t,{width:"abbreviated",context:"formatting"})||n.dayPeriod(t,{width:"narrow",context:"formatting"})}}set(t,r,n){return t.setHours(xs(n),0,0,0),t}incompatibleTokens=["a","b","t","T"]};var Gu=class extends ne{priority=70;parse(t,r,n){switch(r){case"h":return $e(Ae.hour12h,t);case"ho":return n.ordinalNumber(t,{unit:"hour"});default:return Te(r.length,t)}}validate(t,r){return r>=1&&r<=12}set(t,r,n){let o=t.getHours()>=12;return o&&n<12?t.setHours(n+12,0,0,0):!o&&n===12?t.setHours(0,0,0,0):t.setHours(n,0,0,0),t}incompatibleTokens=["H","K","k","t","T"]};var Qu=class extends ne{priority=70;parse(t,r,n){switch(r){case"H":return $e(Ae.hour23h,t);case"Ho":return n.ordinalNumber(t,{unit:"hour"});default:return Te(r.length,t)}}validate(t,r){return r>=0&&r<=23}set(t,r,n){return t.setHours(n,0,0,0),t}incompatibleTokens=["a","b","h","K","k","t","T"]};var Xu=class extends ne{priority=70;parse(t,r,n){switch(r){case"K":return $e(Ae.hour11h,t);case"Ko":return n.ordinalNumber(t,{unit:"hour"});default:return Te(r.length,t)}}validate(t,r){return r>=0&&r<=11}set(t,r,n){return t.getHours()>=12&&n<12?t.setHours(n+12,0,0,0):t.setHours(n,0,0,0),t}incompatibleTokens=["h","H","k","t","T"]};var Ju=class extends ne{priority=70;parse(t,r,n){switch(r){case"k":return $e(Ae.hour24h,t);case"ko":return n.ordinalNumber(t,{unit:"hour"});default:return Te(r.length,t)}}validate(t,r){return r>=1&&r<=24}set(t,r,n){let o=n<=24?n%24:n;return t.setHours(o,0,0,0),t}incompatibleTokens=["a","b","h","H","K","t","T"]};var Zu=class extends ne{priority=60;parse(t,r,n){switch(r){case"m":return $e(Ae.minute,t);case"mo":return n.ordinalNumber(t,{unit:"minute"});default:return Te(r.length,t)}}validate(t,r){return r>=0&&r<=59}set(t,r,n){return t.setMinutes(n,0,0),t}incompatibleTokens=["t","T"]};var Ku=class extends ne{priority=50;parse(t,r,n){switch(r){case"s":return $e(Ae.second,t);case"so":return n.ordinalNumber(t,{unit:"second"});default:return Te(r.length,t)}}validate(t,r){return r>=0&&r<=59}set(t,r,n){return t.setSeconds(n,0),t}incompatibleTokens=["t","T"]};var ed=class extends ne{priority=30;parse(t,r){let n=o=>Math.trunc(o*Math.pow(10,-r.length+3));return He(Te(r.length,t),n)}set(t,r,n){return t.setMilliseconds(n),t}incompatibleTokens=["t","T"]};var td=class extends ne{priority=10;parse(t,r){switch(r){case"X":return Er(Cr.basicOptionalMinutes,t);case"XX":return Er(Cr.basic,t);case"XXXX":return Er(Cr.basicOptionalSeconds,t);case"XXXXX":return Er(Cr.extendedOptionalSeconds,t);default:return Er(Cr.extended,t)}}set(t,r,n){return r.timestampIsSet?t:R(t,t.getTime()-ot(t)-n)}incompatibleTokens=["t","T","x"]};var rd=class extends ne{priority=10;parse(t,r){switch(r){case"x":return Er(Cr.basicOptionalMinutes,t);case"xx":return Er(Cr.basic,t);case"xxxx":return Er(Cr.basicOptionalSeconds,t);case"xxxxx":return Er(Cr.extendedOptionalSeconds,t);default:return Er(Cr.extended,t)}}set(t,r,n){return r.timestampIsSet?t:R(t,t.getTime()-ot(t)-n)}incompatibleTokens=["t","T","X"]};var nd=class extends ne{priority=40;parse(t){return ku(t)}set(t,r,n){return[R(t,n*1e3),{timestampIsSet:!0}]}incompatibleTokens="*"};var od=class extends ne{priority=20;parse(t){return ku(t)}set(t,r,n){return[R(t,n),{timestampIsSet:!0}]}incompatibleTokens="*"};var id={G:new Su,y:new Cu,Y:new Eu,R:new Mu,u:new Iu,Q:new $u,q:new Au,M:new _u,L:new Ou,w:new Nu,I:new Fu,d:new Ru,D:new Bu,E:new zu,e:new Hu,c:new Uu,i:new qu,a:new Yu,b:new Wu,B:new Vu,h:new Gu,H:new Qu,K:new Xu,k:new Ju,m:new Zu,s:new Ku,S:new ed,X:new td,x:new rd,t:new nd,T:new od};var TN=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,DN=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,CN=/^'([^]*?)'?$/,EN=/''/g,MN=/\S/,IN=/[a-zA-Z]/;function sd(e,t,r,n){let o=()=>R(n?.in||r,NaN),i=hu(),s=n?.locale??i.locale??ar,a=n?.firstWeekContainsDate??n?.locale?.options?.firstWeekContainsDate??i.firstWeekContainsDate??i.locale?.options?.firstWeekContainsDate??1,l=n?.weekStartsOn??n?.locale?.options?.weekStartsOn??i.weekStartsOn??i.locale?.options?.weekStartsOn??0;if(!t)return e?o():v(r,n?.in);let c={firstWeekContainsDate:a,weekStartsOn:l,locale:s},u=[new wu(n?.in,r)],d=t.match(DN).map(x=>{let y=x[0];if(y in ro){let T=ro[y];return T(x,s.formatLong)}return x}).join("").match(TN),p=[];for(let x of d){!n?.useAdditionalWeekYearTokens&&cu(x)&&$a(x,t,e),!n?.useAdditionalDayOfYearTokens&&lu(x)&&$a(x,t,e);let y=x[0],T=id[y];if(T){let{incompatibleTokens:D}=T;if(Array.isArray(D)){let j=p.find(M=>D.includes(M.token)||M.token===y);if(j)throw new RangeError(`The format string mustn't contain \`${j.fullToken}\` and \`${x}\` at the same time`)}else if(T.incompatibleTokens==="*"&&p.length>0)throw new RangeError(`The format string mustn't contain \`${x}\` and any other token at the same time`);p.push({token:y,fullToken:x});let H=T.run(e,x,s.match,c);if(!H)return o();u.push(H.setter),e=H.rest}else{if(y.match(IN))throw new RangeError("Format string contains an unescaped latin alphabet character `"+y+"`");if(x==="''"?x="'":y==="'"&&(x=$N(x)),e.indexOf(x)===0)e=e.slice(x.length);else return o()}}if(e.length>0&&MN.test(e))return o();let f=u.map(x=>x.priority).sort((x,y)=>y-x).filter((x,y,T)=>T.indexOf(x)===y).map(x=>u.filter(y=>y.priority===x).sort((y,T)=>T.subPriority-y.subPriority)).map(x=>x[0]),m=v(r,n?.in);if(isNaN(+m))return o();let g={};for(let x of f){if(!x.validate(m,c))return o();let y=x.set(m,g,c);Array.isArray(y)?(m=y[0],Object.assign(g,y[1])):m=y}return m}function $N(e){return e.match(CN)[1].replace(EN,"'")}var Kme=sd;function Fw(e,t,r){return Lt(sd(e,t,new Date,r))}var nhe=Fw;function Rw(e,t){return v(e,t?.in).getDay()===1}var she=Rw;function Bw(e){return+v(e)<Date.now()}var che=Bw;function _a(e,t){let r=v(e,t?.in);return r.setMinutes(0,0,0),r}var phe=_a;function ad(e,t,r){let[n,o]=ce(r?.in,e,t);return+_a(n)==+_a(o)}var ghe=ad;function ys(e,t,r){let[n,o]=ce(r?.in,e,t);return+Ye(n,r)==+Ye(o,r)}var vhe=ys;function ld(e,t,r){return ys(e,t,{...r,weekStartsOn:1})}var khe=ld;function zw(e,t,r){let[n,o]=ce(r?.in,e,t);return+mr(n)==+mr(o)}var Ehe=zw;function Oa(e,t){let r=v(e,t?.in);return r.setSeconds(0,0),r}var $he=Oa;function cd(e,t){return+Oa(e)==+Oa(t)}var Ohe=cd;function ud(e,t,r){let[n,o]=ce(r?.in,e,t);return n.getFullYear()===o.getFullYear()&&n.getMonth()===o.getMonth()}var Phe=ud;function dd(e,t,r){let[n,o]=ce(r?.in,e,t);return+cn(n)==+cn(o)}var zhe=dd;function La(e,t){let r=v(e,t?.in);return r.setMilliseconds(0),r}var jhe=La;function pd(e,t){return+La(e)==+La(t)}var Whe=pd;function fd(e,t,r){let[n,o]=ce(r?.in,e,t);return n.getFullYear()===o.getFullYear()}var Qhe=fd;function Hw(e,t){return ad(v(e,t?.in),De(t?.in||e))}var ege=Hw;function Uw(e,t){return ld(R(t?.in||e,e),De(t?.in||e))}var ige=Uw;function jw(e){return cd(e,De(e))}var cge=jw;function qw(e,t){return ud(R(t?.in||e,e),De(t?.in||e))}var mge=qw;function Yw(e,t){return dd(R(t?.in||e,e),De(t?.in||e))}var bge=Yw;function Ww(e){return pd(e,De(e))}var kge=Ww;function Vw(e,t){return ys(R(t?.in||e,e),De(t?.in||e),t)}var Mge=Vw;function Gw(e,t){return fd(R(t?.in||e,e),De(t?.in||e))}var Oge=Gw;function Qw(e,t){return v(e,t?.in).getDay()===4}var Pge=Qw;function Xw(e,t){return an(R(t?.in||e,e),De(t?.in||e))}var Hge=Xw;function Jw(e,t){return an(e,St(De(t?.in||e),1),t)}var Wge=Jw;function Zw(e,t){return v(e,t?.in).getDay()===2}var Qge=Zw;function Kw(e,t){return v(e,t?.in).getDay()===3}var Zge=Kw;function e1(e,t,r){let n=+v(e,r?.in),[o,i]=[+v(t.start,r?.in),+v(t.end,r?.in)].sort((s,a)=>s-a);return n>=o&&n<=i}var txe=e1;function io(e,t,r){return St(e,-t,r)}var oxe=io;function t1(e,t){return an(R(t?.in||e,e),io(De(t?.in||e),1))}var uxe=t1;function r1(e,t){let r=v(e,t?.in),n=r.getFullYear(),o=9+Math.floor(n/10)*10;return r.setFullYear(o+1,0,0),r.setHours(0,0,0,0),v(r,t?.in)}var fxe=r1;function md(e,t){let r=Be(),n=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,o=v(e,t?.in),i=o.getDay(),s=(i<n?-7:0)+6-(i-n);return o.setHours(0,0,0,0),o.setDate(o.getDate()+s),o}var xxe=md;function n1(e,t){return md(e,{...t,weekStartsOn:1})}var vxe=n1;function o1(e,t){let r=Zt(e,t),n=R(t?.in||e,0);n.setFullYear(r+1,0,4),n.setHours(0,0,0,0);let o=bt(n,t);return o.setDate(o.getDate()-1),o}var Dxe=o1;function i1(e,t){let r=v(e,t?.in),n=r.getMonth(),o=n-n%3+3;return r.setMonth(o,0),r.setHours(0,0,0,0),r}var Mxe=i1;function s1(e,t){let r=v(e,t?.in),n=r.getFullYear();return r.setFullYear(n+1,0,0),r.setHours(0,0,0,0),r}var Axe=s1;var AN=/(\w)\1*|''|'(''|[^'])+('|$)|./g,_N=/^'([^]*?)'?$/,ON=/''/g,LN=/[a-zA-Z]/;function a1(e,t){let r=v(e);if(!Lt(r))throw new RangeError("Invalid time value");let n=t.match(AN);return n?n.map(i=>{if(i==="''")return"'";let s=i[0];if(s==="'")return NN(i);let a=hr[s];if(a)return a(r,i);if(s.match(LN))throw new RangeError("Format string contains an unescaped latin alphabet character `"+s+"`");return i}).join(""):""}function NN(e){let t=e.match(_N);return t?t[1].replace(ON,"'"):e}var Pxe=a1;function l1({years:e,months:t,weeks:r,days:n,hours:o,minutes:i,seconds:s}){let a=0;e&&(a+=e*365.2425),t&&(a+=t*(365.2425/12)),r&&(a+=r*7),n&&(a+=n);let l=a*24*60*60;return o&&(l+=o*60*60),i&&(l+=i*60),s&&(l+=s),Math.trunc(l*1e3)}var Bxe=l1;function c1(e){let t=e/fr;return Math.trunc(t)}var Uxe=c1;function u1(e){let t=e/Rt;return Math.trunc(t)}var Yxe=u1;function d1(e){let t=e/Ki;return Math.trunc(t)}var Gxe=d1;function p1(e){let t=e/Fc;return Math.trunc(t)}var Jxe=p1;function f1(e){return Math.trunc(e*Rt)}var e0e=f1;function m1(e){return Math.trunc(e*ts)}var n0e=m1;function h1(e){let t=e/Rc;return Math.trunc(t)}var s0e=h1;function g1(e){let t=e/Bc;return Math.trunc(t)}var c0e=g1;function Ht(e,t,r){let n=t-no(e,r);return n<=0&&(n+=7),St(e,n,r)}var f0e=Ht;function x1(e,t){return Ht(e,5,t)}var g0e=x1;function y1(e,t){return Ht(e,1,t)}var b0e=y1;function b1(e,t){return Ht(e,6,t)}var S0e=b1;function v1(e,t){return Ht(e,0,t)}var D0e=v1;function w1(e,t){return Ht(e,4,t)}var M0e=w1;function S1(e,t){return Ht(e,2,t)}var A0e=S1;function k1(e,t){return Ht(e,3,t)}var L0e=k1;function D1(e,t){let r=()=>R(t?.in,NaN),n=t?.additionalDigits??2,o=BN(e),i;if(o.date){let c=zN(o.date,n);i=HN(c.restDateString,c.year)}if(!i||isNaN(+i))return r();let s=+i,a=0,l;if(o.time&&(a=UN(o.time),isNaN(a)))return r();if(o.timezone){if(l=jN(o.timezone),isNaN(l))return r()}else{let c=new Date(s+a),u=v(0,t?.in);return u.setFullYear(c.getUTCFullYear(),c.getUTCMonth(),c.getUTCDate()),u.setHours(c.getUTCHours(),c.getUTCMinutes(),c.getUTCSeconds(),c.getUTCMilliseconds()),u}return v(s+a+l,t?.in)}var hd={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},PN=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,FN=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,RN=/^([+-])(\d{2})(?::?(\d{2}))?$/;function BN(e){let t={},r=e.split(hd.dateTimeDelimiter),n;if(r.length>2)return t;if(/:/.test(r[0])?n=r[0]:(t.date=r[0],n=r[1],hd.timeZoneDelimiter.test(t.date)&&(t.date=e.split(hd.timeZoneDelimiter)[0],n=e.substr(t.date.length,e.length))),n){let o=hd.timezone.exec(n);o?(t.time=n.replace(o[1],""),t.timezone=o[1]):t.time=n}return t}function zN(e,t){let r=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+t)+"})|(\\d{2}|[+-]\\d{"+(2+t)+"})$)"),n=e.match(r);if(!n)return{year:NaN,restDateString:""};let o=n[1]?parseInt(n[1]):null,i=n[2]?parseInt(n[2]):null;return{year:i===null?o:i*100,restDateString:e.slice((n[1]||n[2]).length)}}function HN(e,t){if(t===null)return new Date(NaN);let r=e.match(PN);if(!r)return new Date(NaN);let n=!!r[4],o=Na(r[1]),i=Na(r[2])-1,s=Na(r[3]),a=Na(r[4]),l=Na(r[5])-1;if(n)return GN(t,a,l)?qN(t,a,l):new Date(NaN);{let c=new Date(0);return!WN(t,i,s)||!VN(t,o)?new Date(NaN):(c.setUTCFullYear(t,i,Math.max(o,s)),c)}}function Na(e){return e?parseInt(e):1}function UN(e){let t=e.match(FN);if(!t)return NaN;let r=fm(t[1]),n=fm(t[2]),o=fm(t[3]);return QN(r,n,o)?r*fr+n*Rt+o*1e3:NaN}function fm(e){return e&&parseFloat(e.replace(",","."))||0}function jN(e){if(e==="Z")return 0;let t=e.match(RN);if(!t)return 0;let r=t[1]==="+"?-1:1,n=parseInt(t[2]),o=t[3]&&parseInt(t[3])||0;return XN(n,o)?r*(n*fr+o*Rt):NaN}function qN(e,t,r){let n=new Date(0);n.setUTCFullYear(e,0,4);let o=n.getUTCDay()||7,i=(t-1)*7+r+1-o;return n.setUTCDate(n.getUTCDate()+i),n}var YN=[31,null,31,30,31,30,31,31,30,31,30,31];function T1(e){return e%400===0||e%4===0&&e%100!==0}function WN(e,t,r){return t>=0&&t<=11&&r>=1&&r<=(YN[t]||(T1(e)?29:28))}function VN(e,t){return t>=1&&t<=(T1(e)?366:365)}function GN(e,t,r){return t>=1&&t<=53&&r>=0&&r<=6}function QN(e,t,r){return e===24?t===0&&r===0:r>=0&&r<60&&t>=0&&t<60&&e>=0&&e<25}function XN(e,t){return t>=0&&t<=59}var B0e=D1;function C1(e,t){let r=e.match(/(\d{4})-(\d{2})-(\d{2})[T ](\d{2}):(\d{2}):(\d{2})(?:\.(\d{0,7}))?(?:Z|(.)(\d{2}):?(\d{2})?)?/);return r?v(Date.UTC(+r[1],+r[2]-1,+r[3],+r[4]-(+r[9]||0)*(r[8]=="-"?-1:1),+r[5]-(+r[10]||0)*(r[8]=="-"?-1:1),+r[6],+((r[7]||"0")+"00").substring(0,3)),t?.in):v(NaN,t?.in)}var U0e=C1;function Ut(e,t,r){let n=no(e,r)-t;return n<=0&&(n+=7),io(e,n,r)}var W0e=Ut;function E1(e,t){return Ut(e,5,t)}var Q0e=E1;function M1(e,t){return Ut(e,1,t)}var Z0e=M1;function I1(e,t){return Ut(e,6,t)}var tye=I1;function $1(e,t){return Ut(e,0,t)}var oye=$1;function A1(e,t){return Ut(e,4,t)}var aye=A1;function _1(e,t){return Ut(e,2,t)}var uye=_1;function O1(e,t){return Ut(e,3,t)}var fye=O1;function L1(e){return Math.trunc(e*Rc)}var gye=L1;function N1(e){let t=e/zc;return Math.trunc(t)}var bye=N1;function P1(e,t){let r=t?.nearestTo??1;if(r<1||r>12)return R(t?.in||e,NaN);let n=v(e,t?.in),o=n.getMinutes()/60,i=n.getSeconds()/60/60,s=n.getMilliseconds()/1e3/60/60,a=n.getHours()+o+i+s,l=t?.roundingMethod??"round",u=zt(l)(a/r)*r;return n.setHours(u,0,0,0),n}var Tye=P1;function F1(e,t){let r=t?.nearestTo??1;if(r<1||r>30)return R(e,NaN);let n=v(e,t?.in),o=n.getSeconds()/60,i=n.getMilliseconds()/1e3/60,s=n.getMinutes()+o+i,a=t?.roundingMethod??"round",c=zt(a)(s/r)*r;return n.setMinutes(c,0,0),n}var Iye=F1;function R1(e){let t=e/Go;return Math.trunc(t)}var _ye=R1;function B1(e){return e*Ki}var Nye=B1;function z1(e){let t=e/ts;return Math.trunc(t)}var Rye=z1;function bs(e,t,r){let n=v(e,r?.in),o=n.getFullYear(),i=n.getDate(),s=R(r?.in||e,0);s.setFullYear(o,t,15),s.setHours(0,0,0,0);let a=fu(s);return n.setMonth(t,Math.min(i,a)),n}var jye=bs;function H1(e,t,r){let n=v(e,r?.in);return isNaN(+n)?R(r?.in||e,NaN):(t.year!=null&&n.setFullYear(t.year),t.month!=null&&(n=bs(n,t.month)),t.date!=null&&n.setDate(t.date),t.hours!=null&&n.setHours(t.hours),t.minutes!=null&&n.setMinutes(t.minutes),t.seconds!=null&&n.setSeconds(t.seconds),t.milliseconds!=null&&n.setMilliseconds(t.milliseconds),n)}var Gye=H1;function U1(e,t,r){let n=v(e,r?.in);return n.setDate(t),n}var Jye=U1;function j1(e,t,r){let n=v(e,r?.in);return n.setMonth(0),n.setDate(t),n}var ebe=j1;function q1(e){let t={},r=Be();for(let n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n]);for(let n in e)Object.prototype.hasOwnProperty.call(e,n)&&(e[n]===void 0?delete t[n]:t[n]=e[n]);fv(t)}var nbe=q1;function Y1(e,t,r){let n=v(e,r?.in);return n.setHours(t),n}var sbe=Y1;function W1(e,t,r){let n=v(e,r?.in);return n.setMilliseconds(t),n}var cbe=W1;function V1(e,t,r){let n=v(e,r?.in);return n.setMinutes(t),n}var pbe=V1;function G1(e,t,r){let n=v(e,r?.in),o=Math.trunc(n.getMonth()/3)+1,i=t-o;return bs(n,n.getMonth()+i*3)}var gbe=G1;function Q1(e,t,r){let n=v(e,r?.in);return n.setSeconds(t),n}var bbe=Q1;function X1(e,t,r){let n=Be(),o=r?.firstWeekContainsDate??r?.locale?.options?.firstWeekContainsDate??n.firstWeekContainsDate??n.locale?.options?.firstWeekContainsDate??1,i=Et(v(e,r?.in),Ko(e,r),r),s=R(r?.in||e,0);s.setFullYear(t,0,o),s.setHours(0,0,0,0);let a=Ko(s,r);return a.setDate(a.getDate()+i),a}var Cbe=X1;function J1(e,t,r){let n=v(e,r?.in);return isNaN(+n)?R(r?.in||e,NaN):(n.setFullYear(t),n)}var $be=J1;function Z1(e,t){let r=v(e,t?.in),n=r.getFullYear(),o=Math.floor(n/10)*10;return r.setFullYear(o,0,1),r.setHours(0,0,0,0),r}var Obe=Z1;function K1(e){return sn(Date.now(),e)}var Pbe=K1;function eS(e){let t=De(e?.in),r=t.getFullYear(),n=t.getMonth(),o=t.getDate(),i=R(e?.in,0);return i.setFullYear(r,n,o+1),i.setHours(0,0,0,0),i}var zbe=eS;function tS(e){let t=De(e?.in),r=t.getFullYear(),n=t.getMonth(),o=t.getDate(),i=De(e?.in);return i.setFullYear(r,n,o-1),i.setHours(0,0,0,0),i}var jbe=tS;function gd(e,t,r){return nn(e,-t,r)}var Wbe=gd;function rS(e,t,r){let{years:n=0,months:o=0,weeks:i=0,days:s=0,hours:a=0,minutes:l=0,seconds:c=0}=t,u=gd(e,o+n*12,r),d=io(u,s+i*7,r),p=l+a*60,m=(c+p*60)*1e3;return R(r?.in||e,+d-m)}var Jbe=rS;function nS(e,t,r){return jc(e,-t,r)}var eve=nS;function oS(e,t,r){return qc(e,-t,r)}var nve=oS;function iS(e,t,r){return Xn(e,-t,r)}var sve=iS;function sS(e,t,r){return rs(e,-t,r)}var cve=sS;function aS(e,t,r){return ns(e,-t,r)}var pve=aS;function lS(e,t,r){return Vc(e,-t,r)}var hve=lS;function cS(e,t,r){return Jn(e,-t,r)}var yve=cS;function uS(e,t,r){return Gc(e,-t,r)}var wve=uS;function dS(e){return Math.trunc(e*7)}var Tve=dS;function pS(e){return Math.trunc(e*365.2425)}var Eve=pS;function fS(e){return Math.trunc(e*Bc)}var $ve=fS;function mS(e){return Math.trunc(e*zc)}var Ove=mS;var xS=e=>Number.isFinite(e)?e:0;function JN(e){return{days:Math.trunc(e/864e5),hours:Math.trunc(e/36e5%24),minutes:Math.trunc(e/6e4%60),seconds:Math.trunc(e/1e3%60),milliseconds:Math.trunc(e%1e3),microseconds:Math.trunc(xS(e*1e3)%1e3),nanoseconds:Math.trunc(xS(e*1e6)%1e3)}}function ZN(e){return{days:e/86400000n,hours:e/3600000n%24n,minutes:e/60000n%60n,seconds:e/1000n%60n,milliseconds:e%1000n,microseconds:0n,nanoseconds:0n}}function ym(e){switch(typeof e){case"number":{if(Number.isFinite(e))return JN(e);break}case"bigint":return ZN(e)}throw new TypeError("Expected a finite number or bigint")}var KN=e=>e===0||e===0n,eP=(e,t)=>t===1||t===1n?e:`${e}s`,tP=1e-7,rP=24n*60n*60n*1000n;function Fa(e,t){let r=typeof e=="bigint";if(!r&&!Number.isFinite(e))throw new TypeError("Expected a finite number or bigint");t={...t};let n=e<0?"-":"";e=e<0?-e:e,t.colonNotation&&(t.compact=!1,t.formatSubMilliseconds=!1,t.separateMilliseconds=!1,t.verbose=!1),t.compact&&(t.unitCount=1,t.secondsDecimalDigits=0,t.millisecondsDecimalDigits=0);let o=[],i=(u,d)=>{let p=Math.floor(u*10**d+tP);return(Math.round(p)/10**d).toFixed(d)},s=(u,d,p,f)=>{if(!((o.length===0||!t.colonNotation)&&KN(u)&&!(t.colonNotation&&p==="m"))){if(f??=String(u),t.colonNotation){let m=f.includes(".")?f.split(".")[0].length:f.length,g=o.length>0?2:1;f="0".repeat(Math.max(0,g-m))+f}else f+=t.verbose?" "+eP(d,u):p;o.push(f)}},a=ym(e),l=BigInt(a.days);if(t.hideYearAndDays?s(BigInt(l)*24n+BigInt(a.hours),"hour","h"):(t.hideYear?s(l,"day","d"):(s(l/365n,"year","y"),s(l%365n,"day","d")),s(Number(a.hours),"hour","h")),s(Number(a.minutes),"minute","m"),!t.hideSeconds)if(t.separateMilliseconds||t.formatSubMilliseconds||!t.colonNotation&&e<1e3&&!t.subSecondsAsDecimals){let u=Number(a.seconds),d=Number(a.milliseconds),p=Number(a.microseconds),f=Number(a.nanoseconds);if(s(u,"second","s"),t.formatSubMilliseconds)s(d,"millisecond","ms"),s(p,"microsecond","\xB5s"),s(f,"nanosecond","ns");else{let m=d+p/1e3+f/1e6,g=typeof t.millisecondsDecimalDigits=="number"?t.millisecondsDecimalDigits:0,x=m>=1?Math.round(m):Math.ceil(m),y=g?m.toFixed(g):x;s(Number.parseFloat(y),"millisecond","ms",y)}}else{let u=(r?Number(e%rP):e)/1e3%60,d=typeof t.secondsDecimalDigits=="number"?t.secondsDecimalDigits:1,p=i(u,d),f=t.keepDecimalsOnWholeSeconds?p:p.replace(/\.0+$/,"");s(Number.parseFloat(f),"second","s",f)}if(o.length===0)return n+"0"+(t.verbose?" milliseconds":"ms");let c=t.colonNotation?":":" ";return typeof t.unitCount=="number"&&(o=o.slice(0,Math.max(t.unitCount,1))),n+o.join(c)}var ti=Qt(hS(),1),yS=Qt(gS(),1);ti.default.extend(yS.default);var bS=class{get cronArray(){return this.cronExpression.split(" ")}constructor(t){if(this.cronExpression=t,this.cronArray.length<6)throw new Error("CronParser needs second level accuracy")}getNextPartMatch(t,r,n){if(t==="*")return r;if(t.includes("/")){let o=parseInt(t.split("/")[1],10),i=s=>s%o===0?s:i(s+1);return i(r)}if(parseInt(t,10)||t==="0")return parseInt(t,10)}msToNext(){let t=this.cronArray,r=t[0],n=t[1],o=t[2],i=t[3],s=t[4],a=t[5],l=new Date,c=l.getSeconds()+1,u=l.getMinutes(),d=l.getHours(),p=l.getDate(),f=l.getMonth(),m=l.getFullYear(),g=this.getNextPartMatch(r,c,59);g<c&&(u=(u+1)%59);let x=this.getNextPartMatch(n,u,59);x<u&&(d=(d+1)%23);let y=this.getNextPartMatch(o,d,23);y<d&&(p=(p+1)%30);let T=p;T<p&&(f=(f+1)%11);let D=f;D<f&&(m=m+1);let H=m;return new Date(H,D,T,y,x,g).getTime()-Date.now()}};var Ra=class{constructor(t,r,n){this.status="initial",this.nextExecutionUnix=0,this.cronExpression=r,this.jobFunction=n,this.cronParser=new Ca.Cron(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 so={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},bm=e=>{let t=0,r=n=>{t=t+n};return e.years&&r(so.years(e.years)),e.months&&r(so.months(e.months)),e.weeks&&r(so.weeks(e.weeks)),e.days&&r(so.days(e.days)),e.hours&&r(so.hours(e.hours)),e.minutes&&r(so.minutes(e.minutes)),e.seconds&&r(so.seconds(e.seconds)),t},vm=e=>Fa(e),nP=e=>Pa.formatDistanceToNow(new Date(e));var wm=class{constructor(){this.status="stopped",this.cronjobs=new kt.ObjectMap}addCronjob(t,r){let n=new Ra(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 be.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 be.Timeout(t.getTimeToNextExecution()),console.log(`Next CronJob scheduled in ${vm(this.executionTimeout.getTimeLeft())}`)):(this.executionTimeout=new be.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 Sm=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),o=new Date(parseFloat(r[3]),parseFloat(r[2])-1,parseFloat(r[1])).getTime();return new e(o)}static fromHyphedDate(t){let r=new Date(t).getTime();return new e(r)}static fromEuropeanDateAndTime(t,r="12:00:00",n="Europe/Berlin"){let o=/(.*)\.(.*)\.(.*)/.exec(t),i=c=>`0${c}`.slice(-2),s=`${o[3]}-${i(o[2])}-${i(o[1])}T${r}`,l=ti.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 ti.default(this.getTime()).format(t)}isToday(){return ti.default(this.getTime()).isToday()}lessTimePassedToNow(t){let r=bm(t);return Date.now()-this.getTime()<r}moreTimePassedToNow(t){return!this.lessTimePassedToNow(t)}};var km=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 Tm=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 be.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 ws=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,o=new e(n);return this.isYoungerThanOtherTimeStamp(o)}};var Dm=class{get timeLeft(){return this.timeInMilliseconds-this.pausedAt.change}constructor(t){this.state="initiated",this.completedDeferred=fe.defer(),this.timeInMilliseconds=t,this.completed=this.completedDeferred.promise}start(){if(!this.startedAt)this.currentTimeout=setTimeout(()=>{this.completedDeferred.resolve()},this.timeInMilliseconds),this.startedAt=new ws;else throw new Error("timer has been started before. Please use resume instead")}pause(){this.startedAt&&(clearTimeout(this.currentTimeout),this.currentTimeout=null,this.pausedAt=ws.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 yd=Qt(Em(),1);var Mm=class{constructor(){this.executionSlots=[],this.isProcessing=!1,this.nonExclusiveMaxConcurrency=1/0,this.nonExclusiveCurrentCount=0,this.nonExclusivePendingQueue=[]}async getExclusiveExecutionSlot(t,r){let n=fe.defer(),o={funcToExecute:t,executionDeferred:n,timeout:r,mode:"exclusive"};return this.executionSlots.push(o),this.processExecutionSlots(),n.promise}async getNonExclusiveExecutionSlot(t,r){let n=fe.defer(),o={funcToExecute:t,executionDeferred:n,timeout:r,mode:"nonexclusive"};return this.executionSlots.push(o),this.processExecutionSlots(),n.promise}setNonExclusiveMaxConcurrency(t){if(!Number.isFinite(t)||t<1)throw new Error("nonExclusiveMaxConcurrency must be a finite number >= 1");this.nonExclusiveMaxConcurrency=t}getNonExclusiveMaxConcurrency(){return this.nonExclusiveMaxConcurrency}getActiveNonExclusiveCount(){return this.nonExclusiveCurrentCount}getPendingNonExclusiveCount(){return this.nonExclusivePendingQueue.length}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(),be.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=>{await this.waitForNonExclusiveSlot();try{if(n.timeout){let o=await Promise.race([n.funcToExecute(),be.delayFor(n.timeout).then(()=>{throw new Error("Timeout reached")})]);n.executionDeferred.resolve(o)}else{let o=await n.funcToExecute();n.executionDeferred.resolve(o)}}catch(o){n.executionDeferred.reject(o)}finally{this.releaseNonExclusiveSlot()}});await Promise.all(r)}waitForNonExclusiveSlot(){return this.nonExclusiveCurrentCount<this.nonExclusiveMaxConcurrency?(this.nonExclusiveCurrentCount++,Promise.resolve()):new Promise(t=>{this.nonExclusivePendingQueue.push(()=>{this.nonExclusiveCurrentCount++,t()})})}releaseNonExclusiveSlot(){this.nonExclusiveCurrentCount--;let t=this.nonExclusivePendingQueue.shift();t&&t()}};var Im=class{constructor(t=16){this.hasSpace=new Ee.rxjs.Subject,this.itemsAvailable=new Ee.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 Ba=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 $S=(e="uni")=>`${e}xxxxxxxxxxx`.replace(/[xy]/g,t=>{let r=Math.random()*16|0;return(t==="x"?r:r&3|8).toString(16)}),ri=class e{constructor(){this.fastMap=new Ba,this.eventSubject=new Ee.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=$S("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 za=class{get comparisonString(){return this.comparisonFunc(this.originalInterest)}fullfillInterest(t){this.isFullfilled=!0,this.fullfillmentStore=[],this.interestDeferred.resolve(t)}constructor(t,r,n,o){this.destructionTimer=new _n.Timer(1e4),this.isFullfilled=!1,this.fullfillmentStore=[],this.interestDeferred=new fe.Deferred,this.interestFullfilled=this.interestDeferred.promise,this.interestMapRef=t,this.originalInterest=r,this.comparisonFunc=n,this.options=o,this.destructionTimer.completed.then(()=>{this.destroy()}),this.options?.markLostAfterDefault&&be.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 $m=class{constructor(t,r={}){this.interestObjectMap=new ri,this.interestObservable=new Ee.ObservableIntake,this.comparisonFunc=t,this.options=r}async addInterest(t,r){let n=this.comparisonFunc(t),o,i=new za(this,t,this.comparisonFunc,{markLostAfterDefault:this.options.markLostAfterDefault,defaultFullfillment:r}),s=!1;return await this.interestObjectMap.forEach(a=>{!s&&a.comparisonString===i.comparisonString&&(console.log("info",`interest already exists for ${i.comparisonString}`),s=!0,o=a,o.renew())}),o||(o=i,this.interestObjectMap.add(o)),this.interestObservable.push(o),o}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(o=>o.comparisonString===r)}};var Am=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 _m=class{constructor(){this.referenceObjectMap=new ri}checkAndTrack(t){return this.referenceObjectMap.checkForObject(t)?!1:(this.referenceObjectMap.add(t),!0)}};var Om=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 $n.SmartMatch(t),n=!1;for(let o of this._stringArray)r.match(o)&&(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=fe.defer();return this._triggerUntilTrueFunctionArray.push(()=>{let o=t(this.getStringArray());return o===!0&&(r&&r(),n.resolve()),o}),this.notifyTrigger(),n.promise}notifyTrigger(){let t=this._triggerUntilTrueFunctionArray.filter(r=>!r());this._triggerUntilTrueFunctionArray=t}};var Lm=class{constructor(t){this.storageArray=[],this.options=t}checkAggregationStatus(){let t=()=>{this.aggregationTimer=new _n.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 Nm=class{constructor(){this.symbolTree=new yd.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 ks={};he(ks,{base64ToUint8Array:()=>MP,ensurePureUint8Array:()=>AP,isBufferLike:()=>$P,isUint8Array:()=>IP,uInt8ArrayExtras:()=>CP,uInt8ArrayToBase64:()=>EP});var po={};he(po,{areUint8ArraysEqual:()=>fP,assertUint8Array:()=>uo,assertUint8ArrayOrArrayBuffer:()=>NS,base64ToString:()=>bP,base64ToUint8Array:()=>BS,compareUint8Arrays:()=>mP,concatUint8Arrays:()=>pP,getUintBE:()=>kP,hexToUint8Array:()=>SP,includes:()=>TP,indexOf:()=>zS,isUint8Array:()=>Pm,stringToBase64:()=>yP,stringToUint8Array:()=>FS,toUint8Array:()=>dP,uint8ArrayToBase64:()=>RS,uint8ArrayToHex:()=>wP,uint8ArrayToString:()=>PS});var sP=Object.prototype.toString,aP="[object Uint8Array]",lP="[object ArrayBuffer]";function AS(e,t,r){return e?e.constructor===t?!0:sP.call(e)===r:!1}function Pm(e){return AS(e,Uint8Array,aP)}function cP(e){return AS(e,ArrayBuffer,lP)}function uP(e){return Pm(e)||cP(e)}function uo(e){if(!Pm(e))throw new TypeError(`Expected \`Uint8Array\`, got \`${typeof e}\``)}function NS(e){if(!uP(e))throw new TypeError(`Expected \`Uint8Array\` or \`ArrayBuffer\`, got \`${typeof e}\``)}function dP(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 pP(e,t){if(e.length===0)return new Uint8Array(0);t??=e.reduce((o,i)=>o+i.length,0);let r=new Uint8Array(t),n=0;for(let o of e)uo(o),r.set(o,n),n+=o.length;return r}function fP(e,t){if(uo(e),uo(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 mP(e,t){uo(e),uo(t);let r=Math.min(e.length,t.length);for(let n=0;n<r;n++){let o=e[n]-t[n];if(o!==0)return Math.sign(o)}return Math.sign(e.length-t.length)}var _S={utf8:new globalThis.TextDecoder("utf8")};function PS(e,t="utf8"){return NS(e),_S[t]??=new globalThis.TextDecoder(t),_S[t].decode(e)}function Ha(e){if(typeof e!="string")throw new TypeError(`Expected \`string\`, got \`${typeof e}\``)}var hP=new globalThis.TextEncoder;function FS(e){return Ha(e),hP.encode(e)}function gP(e){return e.replaceAll("+","-").replaceAll("/","_").replace(/=+$/,"")}function xP(e){let t=e.replaceAll("-","+").replaceAll("_","/"),r=(4-t.length%4)%4;return t+"=".repeat(r)}var OS=65535;function RS(e,{urlSafe:t=!1}={}){uo(e);let r="";for(let n=0;n<e.length;n+=OS){let o=e.subarray(n,n+OS);r+=globalThis.btoa(String.fromCodePoint.apply(void 0,o))}return t?gP(r):r}function BS(e){return Ha(e),Uint8Array.from(globalThis.atob(xP(e)),t=>t.codePointAt(0))}function yP(e,{urlSafe:t=!1}={}){return Ha(e),RS(FS(e),{urlSafe:t})}function bP(e){return Ha(e),PS(BS(e))}var vP=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));function wP(e){uo(e);let t="";for(let r=0;r<e.length;r++)t+=vP[e[r]];return t}var LS={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 SP(e){if(Ha(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 o=LS[e[n*2]],i=LS[e[n*2+1]];if(o===void 0||i===void 0)throw new Error(`Invalid Hex character encountered at position ${n*2}`);r[n]=o<<4|i}return r}function kP(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 zS(e,t){let r=e.length,n=t.length;if(n===0||n>r)return-1;let o=r-n;for(let i=0;i<=o;i++){let s=!0;for(let a=0;a<n;a++)if(e[i+a]!==t[a]){s=!1;break}if(s)return i}return-1}function TP(e,t){return zS(e,t)!==-1}var CP=po;function EP(e){return po.uint8ArrayToBase64(e)}function MP(e){return po.base64ToUint8Array(e)}var IP=e=>po.isUint8Array(e);function $P(e){return e&&typeof e.byteLength=="number"?!0:typeof Buffer<"u"&&Buffer.isBuffer?Buffer.isBuffer(e):!1}function AP(e){let t=new Uint8Array(e.length);return t.set(e),t}var Ya={};he(Ya,{Guard:()=>Ua,GuardError:()=>ja,GuardSet:()=>qa,passGuardsOrReject:()=>_P});var Ua=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 ja=class extends Error{constructor(t){super(t),this.name="GuardError"}};var qa=class extends Ua{constructor(t=[]){super(async r=>this.allGuardsPass(r)),this.guards=t}async execAllWithData(t,r={mode:"parallel",stopOnFail:!1}){let n=[];for(let i of this.guards){let s=i.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(o=>o)}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 _P=async(e,t)=>{let r=new qa(t);if(!await r.allGuardsPass(e)){let o=await r.getFailedHint(e);throw new ja(`Guards failed:
|
|
35
35
|
${o}
|
|
36
|
-
`)}};var
|
|
37
|
-
`);return
|
|
38
|
-
`;return t},
|
|
36
|
+
`)}};var ai={};he(ai,{WebRequest:()=>mh});var Ur={};he(Ur,{Smartenv:()=>Fm});var Fm=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}. This does not throw.`);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=Ji.defer();if(globalThis.importScripts)globalThis.importScripts(t),n.resolve();else{let o=document.createElement("script");o.onload=()=>{n.resolve()},o.src=t,document.head.appendChild(o)}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 Ze={};he(Ze,{Smartjson:()=>sh,deepEqualJsonLStrings:()=>L3,deepEqualObjects:()=>Fk,foldDec:()=>O3,parse:()=>Rd,parseBase64:()=>_3,parseJsonL:()=>ih,stableOneWayStringify:()=>I3,stringify:()=>si,stringifyBase64:()=>A3,stringifyJsonL:()=>M3,stringifyPretty:()=>$3});var jr={};he(jr,{Base64:()=>kd,Domain:()=>Dd,GitRepo:()=>Cd,base64:()=>Ts,create:()=>bd,docker:()=>vd,indent:()=>wd,normalize:()=>Sd,type:()=>Td});var bd={};he(bd,{createCryptoRandomString:()=>RP,createRandomString:()=>FP});var Rm=Qt(Kl(),1);var NP=(e,t)=>{if(typeof globalThis<"u"&&globalThis.crypto&&globalThis.crypto.getRandomValues){let r=t-e,n=new Uint32Array(1);return globalThis.crypto.getRandomValues(n),e+n[0]%r}else return Math.floor(Math.random()*(t-e))+e},PP=(e,t,r)=>{let n={A:"ABCDEFGHIJKLMNOPQRSTUVWXYZ",a:"abcdefghijklmnopqrstuvwxyz",0:"0123456789","!":"!@#$%^&*()_+-=[]{}|;:,.<>?","*":"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789!@#$%^&*()_+-=[]{}|;:,.<>?"},o=e;t&&t>e.length?o=e.repeat(Math.ceil(t/e.length)).slice(0,t):t&&(o=e.slice(0,t));let i="";for(let s of o)if(n[s]){let a=n[s],l=NP(0,a.length);i+=a[l]}else i+=s;return i},FP=(e,t,r)=>PP(e,t,r),RP=()=>Rm.uni();var vd={};he(vd,{makeEnvObject:()=>BP});var BP=function(e){let t={},r=/(.*)=(.*)/;if(typeof e<"u")for(let n in e){let o=r.exec(e[n]);t[o[1]]=o[2]}return t};var wd={};he(wd,{indent:()=>HP,indentWithPrefix:()=>UP,normalize:()=>jP});var Bm=e=>{let t=e.split(`
|
|
37
|
+
`);return zP(t)},zm=e=>{let t="";for(let r of e)t=t+r+`
|
|
38
|
+
`;return t},zP=e=>{let t=/^[\s]*$/;return t.test(e[0])&&e.shift(),t.test(e[e.length-1])&&e.pop(),e},HP=(e,t)=>{let r=Bm(e);for(let o of r)o=" ".repeat(t)+o;return zm(r)},UP=(e,t)=>{let r,n=Bm(e),o=[];for(let i of n)o.push(t+i);return r=zm(o),r},jP=e=>{let t,r=Bm(e),n,o=/^(\s*)/,i=/^(\s*)$/;for(let a of r){let l=o.exec(a)[1];(typeof n>"u"||l.length<n)&&!i.test(a)&&(n=l.length)}let s=[];for(let a of r)s.push(a.substr(n));return t=zm(s),t};var Sd={};he(Sd,{replaceAll:()=>HS,standard:()=>YP});var HS=(e,t,r)=>e.replace(new RegExp(t,"g"),r),qP=e=>{let t=e.split(`
|
|
39
39
|
`),r=1/0;for(let n of t)if(n.trim().length>0){let o=n.match(/^(\s*)/);o&&(r=Math.min(r,o[1].length))}return r===1/0||r===0?e:t.map(n=>n.length>=r?n.slice(r):n).join(`
|
|
40
|
-
`)},
|
|
41
|
-
`)),(!t||t.replaceTabs)&&(r=HS(r," /"," ")),(!t||t.stripLeadingTrailingEmptyLines)&&(r=r.replace(/^\s*[\r\n]/gm,"").replace(/\s*[\r\n]$/gm,"")),(!t||t.stripAllEmptyLines)&&(r=r.replace(/^\s*[\r\n]/gm,"")),r};var Td={};
|
|
42
|
-
`).reduce((n,o)=>{let i=o.trim();return i.length>0&&n.push(Rd(i)),n},[]),
|
|
43
|
-
`),$3=(e,t,r={})=>{let n=new WeakSet,o=a=>{if(a===null||typeof a!="object")return a;let l=Fd("",a);if(l&&l.type==="EncodedBuffer"&&typeof l.data=="string")return l;if(n.has(a))return"__cycle__";if(n.add(a),Array.isArray(a))return a.map(u=>o(u));let c={};for(let u of Object.keys(a))try{c[u]=o(a[u])}catch{c[u]="__unserializable__"}return c},i=o(e),s={...r,cycles:!0};if(t&&!s.cmp){let a=new Map;t.forEach((l,c)=>a.set(l,c)),s.cmp=(l,c)=>{let u=a.has(l.key)?a.get(l.key):Number.POSITIVE_INFINITY,d=a.has(c.key)?a.get(c.key):Number.POSITIVE_INFINITY;return u!==d?u-d:l.key<c.key?-1:l.key>c.key?1:0}}return Pd(i,s)},ii=(e,t,r={})=>{let n=oh(e);e=JSON.parse(n);let o={...r};if(t&&!o.cmp){let s=new Map;t.forEach((a,l)=>s.set(a,l)),o.cmp=(a,l)=>{let c=s.has(a.key)?s.get(a.key):Number.POSITIVE_INFINITY,u=s.has(l.key)?s.get(l.key):Number.POSITIVE_INFINITY;return c!==u?c-u:a.key<l.key?-1:a.key>l.key?1:0}}return Pd(e,o)},A3=e=>{let t=ii(e),r=JSON.parse(t);return JSON.stringify(r,null,2)},_3=(...e)=>{let t=ii(...e);return jr.base64.encodeUri(t)},O3=e=>{let t=jr.base64,n=(t.decodeUri||t.decode)(e);return Rd(n)},ah=class e{static enfoldFromObject(t){let r=new this,n=r.saveableProperties||[];for(let o in t)n.indexOf(o)!==-1&&(r[o]=t[o]);return r}static enfoldFromJson(t){let r=Rd(t);return this.enfoldFromObject(r)}foldToObject(){let t=new Set;return t.add(this),this.foldToObjectInternal(t)}foldToObjectInternal(t){let r={},n=i=>{if(i instanceof e){if(t.has(i))throw new Error("cycle detected");return t.add(i),i.foldToObjectInternal(t)}return Array.isArray(i)?i.map(s=>n(s)):Nd.default(i)},o=this.saveableProperties||[];for(let i of o){let s=this[i];r[i]=n(s)}return r}foldToJson(){let t=this.foldToObject();return ii(t)}},L3=()=>(e,t)=>{e.saveableProperties||(e.saveableProperties=[]),e.saveableProperties.push(t)},Fk=(e,t)=>{let r=ii(e),n=ii(t);return r===n},N3=(e,t)=>{let r=sh(e),n=sh(t);return Fk(r,n)};var qr={};me(qr,{TypedrequestCache:()=>mh,WebStore:()=>Ja});var Xa={};me(Xa,{deleteDB:()=>Wk,openDB:()=>Yk,unwrap:()=>Qa,wrap:()=>un});var lh=(e,t)=>t.some(r=>e instanceof r),Rk,Bk;function P3(){return Rk||(Rk=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])}function F3(){return Bk||(Bk=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])}var ch=new WeakMap,uh=new WeakMap,Bd=new WeakMap;function R3(e){let t=new Promise((r,n)=>{let o=()=>{e.removeEventListener("success",i),e.removeEventListener("error",s)},i=()=>{r(un(e.result)),o()},s=()=>{n(e.error),o()};e.addEventListener("success",i),e.addEventListener("error",s)});return Bd.set(t,e),t}function B3(e){if(ch.has(e))return;let t=new Promise((r,n)=>{let o=()=>{e.removeEventListener("complete",i),e.removeEventListener("error",s),e.removeEventListener("abort",s)},i=()=>{r(),o()},s=()=>{n(e.error||new DOMException("AbortError","AbortError")),o()};e.addEventListener("complete",i),e.addEventListener("error",s),e.addEventListener("abort",s)});ch.set(e,t)}var dh={get(e,t,r){if(e instanceof IDBTransaction){if(t==="done")return ch.get(e);if(t==="store")return r.objectStoreNames[1]?void 0:r.objectStore(r.objectStoreNames[0])}return un(e[t])},set(e,t,r){return e[t]=r,!0},has(e,t){return e instanceof IDBTransaction&&(t==="done"||t==="store")?!0:t in e}};function zk(e){dh=e(dh)}function z3(e){return F3().includes(e)?function(...t){return e.apply(Qa(this),t),un(this.request)}:function(...t){return un(e.apply(Qa(this),t))}}function H3(e){return typeof e=="function"?z3(e):(e instanceof IDBTransaction&&B3(e),lh(e,P3())?new Proxy(e,dh):e)}function un(e){if(e instanceof IDBRequest)return R3(e);if(uh.has(e))return uh.get(e);let t=H3(e);return t!==e&&(uh.set(e,t),Bd.set(t,e)),t}var Qa=e=>Bd.get(e);function Yk(e,t,{blocked:r,upgrade:n,blocking:o,terminated:i}={}){let s=indexedDB.open(e,t),a=un(s);return n&&s.addEventListener("upgradeneeded",l=>{n(un(s.result),l.oldVersion,l.newVersion,un(s.transaction),l)}),r&&s.addEventListener("blocked",l=>r(l.oldVersion,l.newVersion,l)),a.then(l=>{i&&l.addEventListener("close",()=>i()),o&&l.addEventListener("versionchange",c=>o(c.oldVersion,c.newVersion,c))}).catch(()=>{}),a}function Wk(e,{blocked:t}={}){let r=indexedDB.deleteDatabase(e);return t&&r.addEventListener("blocked",n=>t(n.oldVersion,n)),un(r).then(()=>{})}var U3=["get","getKey","getAll","getAllKeys","count"],j3=["put","add","delete","clear"],ph=new Map;function Hk(e,t){if(!(e instanceof IDBDatabase&&!(t in e)&&typeof t=="string"))return;if(ph.get(t))return ph.get(t);let r=t.replace(/FromIndex$/,""),n=t!==r,o=j3.includes(r);if(!(r in(n?IDBIndex:IDBObjectStore).prototype)||!(o||U3.includes(r)))return;let i=async function(s,...a){let l=this.transaction(s,o?"readwrite":"readonly"),c=l.store;return n&&(c=c.index(a.shift())),(await Promise.all([c[r](...a),o&&l.done]))[0]};return ph.set(t,i),i}zk(e=>({...e,get:(t,r,n)=>Hk(t,r)||e.get(t,r,n),has:(t,r)=>!!Hk(t,r)||e.has(t,r)}));var q3=["continue","continuePrimaryKey","advance"],Uk={},fh=new WeakMap,jk=new WeakMap,Y3={get(e,t){if(!q3.includes(t))return e[t];let r=Uk[t];return r||(r=Uk[t]=function(...n){fh.set(this,jk.get(this)[t](...n))}),r}};async function*W3(...e){let t=this;if(t instanceof IDBCursor||(t=await t.openCursor(...e)),!t)return;t=t;let r=new Proxy(t,Y3);for(jk.set(r,t),Bd.set(r,Qa(t));t;)yield r,t=await(fh.get(r)||t.continue()),fh.delete(r)}function qk(e,t){return t===Symbol.asyncIterator&&lh(e,[IDBIndex,IDBObjectStore,IDBCursor])||t==="iterate"&&lh(e,[IDBIndex,IDBObjectStore])}zk(e=>({...e,get(t,r,n){return qk(t,r)?W3:e.get(t,r,n)},has(t,r){return qk(t,r)||e.has(t,r)}}));var Ja=class{constructor(t){this.initCalled=!1,this.readyDeferred=fe.defer(),this.options=t}async init(){if(this.initCalled){await this.readyDeferred.promise;return}this.initCalled=!0;let t=new Ur.Smartenv;if(!t.isBrowser&&!globalThis.indexedDB&&(console.log("hey"),console.log(globalThis.indexedDB),await t.getSafeNodeModule("fake-indexeddb/auto"),!globalThis.indexedDB)){let r=await t.getSafeNodeModule("fake-indexeddb");globalThis.indexedDB=new r.IDBFactory}this.db=await Xa.openDB(this.options.dbName,1,{upgrade:r=>{r.createObjectStore(this.options.storeName)}}),this.readyDeferred.resolve()}async get(t){return await this.init(),this.db.get(this.options.storeName,t)}async check(t){return await this.init(),!!await this.get(t)}async set(t,r){return await this.init(),this.db.put(this.options.storeName,r,t)}async delete(t){return await this.init(),this.db.delete(this.options.storeName,t)}async clear(){return await this.init(),this.db.clear(this.options.storeName)}async keys(){return await this.init(),this.db.getAllKeys(this.options.storeName)}};var mh=class{constructor(t="default"){this.webstore=new Ja({dbName:"trStore",storeName:`trStore-${t}`})}buildKey(t){return Ze.stringify({method:t.method,request:t.request})}async setByRequest(t){if(!t.response)throw new Error("You cannot store requests without a response present");await this.webstore.set(this.buildKey(t),t)}async getByRequest(t){return await this.webstore.get(this.buildKey(t))}};var hh=class{constructor(t={}){this.optionsArg=t,this.cacheStore=new qr.WebStore({dbName:"webrequest",storeName:"webrequest"}),this.options={logging:!0,...t}}async getJson(t,r=!1){let o=await(await this.request(t,{method:"GET",useCache:r})).text();return Ze.parse(o)}async postJson(t,r,n=!1){let i=await(await this.request(t,{method:"POST",headers:{"Content-Type":"application/json"},body:Ze.stringify(r),useCache:n})).text();return Ze.parse(i)}async putJson(t,r,n=!1){let i=await(await this.request(t,{method:"PUT",headers:{"Content-Type":"application/json"},body:Ze.stringify(r)})).text();return Ze.parse(i)}async deleteJson(t,r=!1){let o=await(await this.request(t,{headers:{"Content-Type":"application/json"},method:"GET"})).text();return Ze.parse(o)}async request(t,r){r={timeoutMs:6e4,useCache:!1,...r};let n=new AbortController;be.delayFor(r.timeoutMs).then(()=>{n.abort()});let o=fe.defer(),i=!1;if(r.useCache&&await this.cacheStore.check(t)){let a=await this.cacheStore.get(t);o.resolve(new Response(a,{}))}else o.resolve(null);let s=await fetch(t,{signal:n.signal,method:r.method,headers:{...r.headers||{}},body:r.body}).catch(async a=>r.useCache&&await o.promise?(i=!0,o.promise):a);if(r.useCache&&await o.promise&&s.status===500&&(i=!0,s=await o.promise),!i&&r.useCache&&s.status<300){let a=await s.clone().arrayBuffer();await this.cacheStore.set(t,a)}return this.log(`${t} answers with status: ${s.status}`),s}async requestMultiEndpoint(t,r){let n,o=0;Array.isArray(t)?n=t:n=[t];let i=[],s=async c=>{i.push(c),c==="429"&&(console.log("got 429, so waiting a little bit."),await be.delayFor(Math.floor(Math.random()*1001)+1e3));let u=0;for(let d of i)d===c&&u++;u>2*n.length*o&&o++},a=async c=>{if(!c)throw new Error("request failed permanently");this.log(`Getting ${c} with method ${r.method}`);let u=await fetch(c,{method:r.method,headers:{"Content-Type":"application/json",...r.headers||{}},body:r.body});return this.log(`${c} answers with status: ${u.status}`),u.status>=200&&u.status<300?u:(await s(u.status.toString()),await a(n[o]))};return await a(n[o])}log(t){this.options.logging&&console.log(t)}};var fo=Qt(Kl(),1);var Nn=class{constructor(t,r){this.errorText=t,this.errorData=r}};var Hd=class{constructor(){this.localData={}}async passGuards(t,r){let n=new Ya.GuardSet(t);if(!await n.allGuardsPass(r)){let i=await n.getFailedHint(r);throw new Nn(`guard failed: ${i}`,{failedHint:i})}}};var gh=class{constructor(t,r){this.method=t,this.handlerFunction=r}async addResponse(t){if(t.method!==this.method)throw new Error("this handler has been given a wrong method to answer to. Please use a TypedRouter to filter requests");let r,n=new Hd;t.localData&&(n.localData=t.localData);let o=await this.handlerFunction(t.request,n).catch(i=>{i instanceof Nn?r=i:console.log(i)});return r&&(t.error={text:r.errorText,data:r.errorData}),o&&(t.response=o),t?.correlation?.phase&&(t.correlation.phase="response"),t}};var ai=class e{constructor(){this.hooks={},this.routerMap=new kt.ObjectMap,this.handlerMap=new kt.ObjectMap,this.registeredVirtualStreams=new kt.ObjectMap,this.fireEventInterestMap=new kt.InterestMap(t=>t)}static get globalHooks(){return globalThis.__typedRouterGlobalHooks||(globalThis.__typedRouterGlobalHooks={}),globalThis.__typedRouterGlobalHooks}static set globalHooks(t){globalThis.__typedRouterGlobalHooks=t}static setGlobalHooks(t){let r=e.globalHooks;e.globalHooks={...r,...t}}static clearGlobalHooks(){globalThis.__typedRouterGlobalHooks={}}setHooks(t){this.hooks={...this.hooks,...t}}callHook(t,r){try{e.globalHooks[t]?.(r),this.hooks[t]?.(r)}catch(n){console.error(`TypedRouter hook error (${t}):`,n)}}addTypedHandler(t){if(this.getTypedHandlerForMethod(t.method))throw new Error(`a TypedHandler for ${t.method} alredy exists! Can't add another one.`);this.handlerMap.add(t)}addTypedRouter(t){this.routerMap.findSync(n=>n===t)||(this.routerMap.add(t),t.addTypedRouter(this))}checkForTypedHandler(t){return!!this.getTypedHandlerForMethod(t)}getTypedHandlerForMethod(t,r=[]){r.push(this);let n;return n=this.handlerMap.findSync(o=>o.method===t),n||this.routerMap.getArray().forEach(o=>{!n&&!r.includes(o)&&(n=o.getTypedHandlerForMethod(t,r))}),n}static{this.defaultRouteOptions={localRequest:!1,skipHooks:!1}}async routeAndAddResponse(t,r={}){let n={...e.defaultRouteOptions,...r};if(t=dn.decodePayloadFromNetwork(t,{typedrouter:this}),t.localData=t.localData||{},t.localData.firstTypedrouter=this,t.method==="##VirtualStream##"){let o=await this.handleStreamTypedRequest(t);return o.localData=null,o}if(t?.correlation?.phase==="request"||n.localRequest){let o=Date.now();n.skipHooks||this.callHook("onIncomingRequest",{correlationId:t.correlation?.id||"unknown",method:t.method,direction:"incoming",phase:"request",timestamp:o,payload:t.request});let i=this.getTypedHandlerForMethod(t.method);return i?(t=await i.addResponse(t),t.localData=null,t=dn.encodePayloadForNetwork(t,{typedrouter:this}),n.skipHooks||this.callHook("onOutgoingResponse",{correlationId:t.correlation?.id||"unknown",method:t.method,direction:"outgoing",phase:"response",timestamp:Date.now(),durationMs:Date.now()-o,payload:t.response,error:t.error?.text}),t):(console.log(`Cannot find handler for methodname ${t.method}`),t.error={text:"There is no available method for this call on the server side",data:{}},t.correlation.phase="response",t.localData=null,t=dn.encodePayloadForNetwork(t,{typedrouter:this}),n.skipHooks||this.callHook("onOutgoingResponse",{correlationId:t.correlation?.id||"unknown",method:t.method,direction:"outgoing",phase:"response",timestamp:Date.now(),durationMs:Date.now()-o,payload:t.response,error:t.error?.text}),t)}else return t?.correlation?.phase==="response"?(n.skipHooks||this.callHook("onIncomingResponse",{correlationId:t.correlation?.id||"unknown",method:t.method,direction:"incoming",phase:"response",timestamp:Date.now(),payload:t.response,error:t.error?.text}),this.fireEventInterestMap.findInterest(t.correlation.id)?.fullfillInterest(t),null):(console.log("received weirdly shaped request"),console.log(t),null)}async handleStreamTypedRequest(t){let r=await this.registeredVirtualStreams.find(async o=>o.streamId===t.request.streamId);if(r)console.log(`success: found relevant virtual stream with id ${t.request.streamId}`);else return console.log(`no relevant virtual stream found for stream with id ${t.request.streamId}`),console.log(this.registeredVirtualStreams.getArray()),t;return await r.handleStreamTr(t)}};var Gk="#############CLOSING BIT#############",dn=class e{static encodePayloadForNetwork(t,r,n,o=[]){return!t||ks.isBufferLike(t)?t:t instanceof e?(!t.side&&r.sendMethod&&(t.side="requesting",t.sendMethod=r.sendMethod),!t.side&&r.typedrouter&&(t.side="responding",t.typedrouter=r.typedrouter,r.typedrouter.registeredVirtualStreams.add(t)),!n.response||o.includes("response")?(t.startKeepAliveLoop(),{_isVirtualStream:!0,streamId:t.streamId}):{_OBMITTED_VIRTUAL_STREAM:!0,reason:"path is under .request: obmitted for deduplication reasons in response cycle."}):Array.isArray(t)?t.map((i,s)=>e.encodePayloadForNetwork(i,r,n||t,o.concat(String(s)))):t!==null&&typeof t=="object"?Object.entries(t).reduce((i,[s,a])=>{let l=o.concat(s);return i[s]=e.encodePayloadForNetwork(a,r,n||t,l),i},{}):t}static decodePayloadFromNetwork(t,r){if(ks.isBufferLike(t)||t instanceof ai)return t;if(t!==null&&typeof t=="object"){if(t instanceof Set||t instanceof Map||t instanceof Date||t instanceof RegExp||t instanceof Error||t instanceof Promise||typeof t.then=="function")return t;if(t._isVirtualStream){let n=new e;return n.streamId=t.streamId,!n.side&&r.sendMethod&&(n.side="requesting",n.sendMethod=r.sendMethod),!n.side&&r.typedrouter&&(n.side="responding",n.typedrouter=r.typedrouter,r.typedrouter.registeredVirtualStreams.add(n)),n.startKeepAliveLoop(),n}else if(Array.isArray(t)){let n=[];for(let o of t)n.push(e.decodePayloadFromNetwork(o,r));return n}else return Object.keys(t).reduce((n,o)=>(n[o]=e.decodePayloadFromNetwork(t[o],r),n),{})}else return t}constructor(){this.streamId=fo.uni(),this.keepAlive=!0,this.sendBackpressuredArray=new kt.BackpressuredArray(16),this.receiveBackpressuredArray=new kt.BackpressuredArray(16)}async workOnQueue(){if(this.workingDeferred)return this.workingDeferred.promise;if(this.workingDeferred=fe.defer(),this.side==="requesting"){let t=!this.receiveBackpressuredArray.checkSpaceAvailable(),r=!1,n=!1,o=async()=>{let i=await this.sendMethod({method:"##VirtualStream##",request:{streamId:this.streamId,cycleId:fo.uni(),cycle:"request",mainPurpose:"feedback",next:this.sendBackpressuredArray.data.length>0,backpressure:!this.receiveBackpressuredArray.checkSpaceAvailable()},response:null}).catch(()=>{console.log("stream ended immaturely"),this.keepAlive=!1});i&&i.response&&(n=i.response.backpressure,r=i.response.next)};for(await o();this.sendBackpressuredArray.data.length>0||r;){if(n)for(;n;)console.log("waiting for feedback because of backpressure..."),await be.delayFor(50),await o();let i;this.sendBackpressuredArray.data.length>0&&(i=this.sendBackpressuredArray.shift());let s;s=await this.sendMethod({method:"##VirtualStream##",request:{streamId:this.streamId,cycleId:fo.uni(),cycle:"request",mainPurpose:i?"chunk":"read",backpressure:t,next:this.sendBackpressuredArray.data.length>0,...i?{chunkData:i}:{}},response:null}).catch(()=>(console.log("stream ended immaturely"),this.keepAlive=!1,null)),s&&s.response&&s.response.chunkData&&this.receiveBackpressuredArray.push(s.response.chunkData),n=s&&s.response&&s.response.backpressure,t=!this.receiveBackpressuredArray.checkSpaceAvailable(),r=s&&s.response&&s.response.next}}this.workingDeferred.resolve(),this.workingDeferred=null}async handleStreamTr(t){if(t.request.keepAlive===!0&&this.keepAlive===!0?this.lastKeepAliveEvent=Date.now():t.request.keepAlive===!1&&(this.keepAlive=!1),t.request.mainPurpose==="keepAlive"&&(t.response={streamId:this.streamId,cycleId:t.request.cycleId,cycle:"response",mainPurpose:"keepAlive",keepAlive:this.keepAlive,next:this.sendBackpressuredArray.data.length>0,backpressure:!this.receiveBackpressuredArray.checkSpaceAvailable()}),t.request.mainPurpose==="feedback"&&(t.response={streamId:this.streamId,cycleId:t.request.cycleId,cycle:"response",mainPurpose:"feedback",next:this.sendBackpressuredArray.data.length>0,backpressure:!this.receiveBackpressuredArray.checkSpaceAvailable()}),t.request.mainPurpose==="chunk"){if(this.receiveBackpressuredArray.push(t.request.chunkData),this.sendBackpressuredArray.data.length>0&&t.response.backpressure===!1){let r=this.sendBackpressuredArray.shift();t.response={streamId:this.streamId,cycleId:t.request.cycleId,cycle:"response",mainPurpose:"chunk",next:this.sendBackpressuredArray.data.length>1,backpressure:!this.receiveBackpressuredArray.checkSpaceAvailable(),chunkData:this.sendBackpressuredArray.shift()}}else t.response={streamId:this.streamId,cycleId:t.request.cycleId,cycle:"response",mainPurpose:"feedback",next:this.sendBackpressuredArray.data.length>0,backpressure:!this.receiveBackpressuredArray.checkSpaceAvailable()};t.request=null}return t}async cleanup(){this.typedrouter&&this.typedrouter.registeredVirtualStreams.remove(this)}async startKeepAliveLoop(){if(this.side==="responding")return;await be.delayFor(0),console.log(`starting keepalive loop on side ${this.side}`);let t=0;for(;this.keepAlive;)await this.triggerKeepAlive(),await be.delayFor(1e3);await be.delayFor(1e3),await this.cleanup(),console.log(`cleaned up for stream ${this.streamId}`)}async triggerKeepAlive(){if(this.side==="requesting"){console.log("keepalive sent.");let t=await this.sendMethod({method:"##VirtualStream##",request:{streamId:this.streamId,cycleId:fo.uni(),cycle:"request",mainPurpose:"keepAlive",keepAlive:this.keepAlive},response:null}).catch(()=>{this.keepAlive=!1});t&&t.response&&t.response.keepAlive===!1?this.keepAlive=!1:this.lastKeepAliveEvent=Date.now(),t&&t.response&&t.response.next&&this.workOnQueue()}Date.now()-this.lastKeepAliveEvent>1e4&&(console.log(`closing stream for ${this.streamId}`),this.keepAlive=!1)}async sendData(t){this.sendBackpressuredArray.push(t),this.workOnQueue(),await this.sendBackpressuredArray.waitForSpace()}async fetchData(){return this.receiveBackpressuredArray.hasSpace,await this.receiveBackpressuredArray.waitForItems(),this.receiveBackpressuredArray.shift()}async readFromWebstream(t,r=!0){let n=t.getReader(),o=!1;for(;!o;){let{value:i,done:s}=await n.read();i&&await this.sendData(i),o=s}r&&await this.close(!0)}async writeToWebstream(t){let r=t.getWriter();for(;this.keepAlive||this.receiveBackpressuredArray.checkHasItems();){let n=await this.fetchData();if(n===Gk){r.releaseLock(),await t.close();break}await r.write(n)}}async close(t=!1){t&&this.sendData(Gk),this.keepAlive=!1}};var xh=class{constructor(t){if(t.postMethodWithTypedRouter&&!t.typedRouterRef)throw new Error("you have to specify a typedrouter when using postmethod with typedrouter");this.options=t}async post(t){let r;this.options.typedRouterRef&&(r=await this.options.typedRouterRef.fireEventInterestMap.addInterest(t.correlation.id,t));let o=await(this.options.postMethod||this.options.postMethodWithTypedRouter)(t),i;return r?i=await r.interestFullfilled:o?i=o:i=t,i}};var G3=new si.WebRequest;function Qk(e,t){try{ai.globalHooks[e]?.(t)}catch(r){console.error(`TypedRequest hook error (${e}):`,r)}}var Za=class{constructor(t,r){this.skipHooks=!1,typeof t=="string"?this.urlEndPoint=t:this.typedTarget=t,this.method=r}async fire(t,r=!1){let n=Date.now(),o={method:this.method,request:t,response:null,correlation:{id:fo.uni(),phase:"request"}};o=dn.encodePayloadForNetwork(o,{sendMethod:s=>this.postTrObject(s)}),this.skipHooks||Qk("onOutgoingRequest",{correlationId:o.correlation.id,method:this.method,direction:"outgoing",phase:"request",timestamp:n,payload:t});let i;return i=await this.postTrObject(o,r),i=dn.decodePayloadFromNetwork(i,{sendMethod:s=>this.postTrObject(s)}),this.skipHooks||Qk("onIncomingResponse",{correlationId:o.correlation.id,method:this.method,direction:"incoming",phase:"response",timestamp:Date.now(),durationMs:Date.now()-n,payload:i?.response,error:i?.error?.text}),i.response}async postTrObject(t,r=!1){let n;if(this.urlEndPoint?n=await G3.postJson(this.urlEndPoint,t,r):n=await this.typedTarget.post(t),n.error){if(console.error(`method: >>${this.method}<< got an ERROR: "${n.error.text}" with data ${JSON.stringify(n.error.data,null,2)}`),!n.retry)throw new Nn(n.error.text,n.error.data);return null}return n.retry&&(console.log(`server requested retry for the following reason: ${n.retry.reason}`),await be.delayFor(n.retry.waitForMs),n=await this.postTrObject(t,r)),n}};function Xk(e){return e&&typeof e.then=="function"}var Jk=Promise.resolve(!1),RDe=Promise.resolve(!0),pn=Promise.resolve();function Ud(e,t){return e||(e=0),new Promise(function(r){return setTimeout(function(){return r(t)},e)})}function Zk(e,t){return Math.floor(Math.random()*(t-e+1)+e)}function Ka(){return Math.random().toString(36).substring(2)}var yh=0;function Pn(){var e=Date.now()*1e3;return e<=yh&&(e=yh+1),yh=e,e}function BDe(){return typeof navigator<"u"&&typeof navigator.locks<"u"&&typeof navigator.locks.request=="function"}var Q3=Pn,X3="native";function J3(e){var t={time:Pn(),messagesCallback:null,bc:new BroadcastChannel(e),subFns:[]};return t.bc.onmessage=function(r){t.messagesCallback&&t.messagesCallback(r.data)},t}function Z3(e){e.bc.close(),e.subFns=[]}function K3(e,t){try{return e.bc.postMessage(t,!1),pn}catch(r){return Promise.reject(r)}}function eF(e,t){e.messagesCallback=t}function tF(){if(typeof globalThis<"u"&&globalThis.Deno&&globalThis.Deno.args)return!0;if((typeof window<"u"||typeof self<"u")&&typeof BroadcastChannel=="function"){if(BroadcastChannel._pubkey)throw new Error("BroadcastChannel: Do not overwrite window.BroadcastChannel with this module, this is not a polyfill");return!0}else return!1}function rF(){return 150}var Kk={create:J3,close:Z3,onMessage:eF,postMessage:K3,canBeUsed:tF,type:X3,averageResponseTime:rF,microSeconds:Q3};var Is=class{ttl;map=new Map;_to=!1;constructor(t){this.ttl=t}has(t){let r=this.map.get(t);return typeof r>"u"?!1:r<bh()-this.ttl?(this.map.delete(t),!1):!0}add(t){this.map.delete(t),this.map.set(t,bh()),this._to||(this._to=!0,setTimeout(()=>{this._to=!1,nF(this)},0))}clear(){this.map.clear()}};function nF(e){let t=bh()-e.ttl,r=e.map[Symbol.iterator]();for(;;){let n=r.next().value;if(!n)break;let o=n[0];if(n[1]<t)e.map.delete(o);else break}}function bh(){return Date.now()}function li(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=JSON.parse(JSON.stringify(e));return typeof t.webWorkerSupport>"u"&&(t.webWorkerSupport=!0),t.idb||(t.idb={}),t.idb.ttl||(t.idb.ttl=1e3*45),t.idb.fallbackInterval||(t.idb.fallbackInterval=150),e.idb&&typeof e.idb.onclose=="function"&&(t.idb.onclose=e.idb.onclose),t.localstorage||(t.localstorage={}),t.localstorage.removeTimeout||(t.localstorage.removeTimeout=1e3*60),e.methods&&(t.methods=e.methods),t.node||(t.node={}),t.node.ttl||(t.node.ttl=1e3*60*2),t.node.maxParallelWrites||(t.node.maxParallelWrites=2048),typeof t.node.useFastPath>"u"&&(t.node.useFastPath=!0),t}var oF=Pn,iF="pubkey.broadcast-channel-0-",Yr="messages",el={durability:"relaxed"},sF="idb";function eT(){if(typeof indexedDB<"u")return indexedDB;if(typeof window<"u"){if(typeof window.mozIndexedDB<"u")return window.mozIndexedDB;if(typeof window.webkitIndexedDB<"u")return window.webkitIndexedDB;if(typeof window.msIndexedDB<"u")return window.msIndexedDB}return!1}function jd(e){e.commit&&e.commit()}function aF(e){var t=eT(),r=iF+e,n=t.open(r);return n.onupgradeneeded=function(o){var i=o.target.result;i.createObjectStore(Yr,{keyPath:"id",autoIncrement:!0})},new Promise(function(o,i){n.onerror=function(s){return i(s)},n.onsuccess=function(){o(n.result)}})}function lF(e,t,r){var n=Date.now(),o={uuid:t,time:n,data:r},i=e.transaction([Yr],"readwrite",el);return new Promise(function(s,a){i.oncomplete=function(){return s()},i.onerror=function(c){return a(c)};var l=i.objectStore(Yr);l.add(o),jd(i)})}function GDe(e){var t=e.transaction(Yr,"readonly",el),r=t.objectStore(Yr),n=[];return new Promise(function(o){r.openCursor().onsuccess=function(i){var s=i.target.result;s?(n.push(s.value),s.continue()):(jd(t),o(n))}})}function cF(e,t){var r=e.transaction(Yr,"readonly",el),n=r.objectStore(Yr),o=[],i=IDBKeyRange.bound(t+1,1/0);if(n.getAll){var s=n.getAll(i);return new Promise(function(l,c){s.onerror=function(u){return c(u)},s.onsuccess=function(u){l(u.target.result)}})}function a(){try{return i=IDBKeyRange.bound(t+1,1/0),n.openCursor(i)}catch{return n.openCursor()}}return new Promise(function(l,c){var u=a();u.onerror=function(d){return c(d)},u.onsuccess=function(d){var p=d.target.result;p?p.value.id<t+1?p.continue(t+1):(o.push(p.value),p.continue()):(jd(r),l(o))}})}function uF(e,t){if(e.closed)return Promise.resolve([]);var r=e.db.transaction(Yr,"readwrite",el),n=r.objectStore(Yr);return Promise.all(t.map(function(o){var i=n.delete(o);return new Promise(function(s){i.onsuccess=function(){return s()}})}))}function dF(e,t){var r=Date.now()-t,n=e.transaction(Yr,"readonly",el),o=n.objectStore(Yr),i=[];return new Promise(function(s){o.openCursor().onsuccess=function(a){var l=a.target.result;if(l){var c=l.value;c.time<r?(i.push(c),l.continue()):(jd(n),s(i))}else s(i)}})}function pF(e){return dF(e.db,e.options.idb.ttl).then(function(t){return uF(e,t.map(function(r){return r.id}))})}function fF(e,t){return t=li(t),aF(e).then(function(r){var n={closed:!1,lastCursorId:0,channelName:e,options:t,uuid:Ka(),eMIs:new Is(t.idb.ttl*2),writeBlockPromise:pn,messagesCallback:null,readQueuePromises:[],db:r};return r.onclose=function(){n.closed=!0,t.idb.onclose&&t.idb.onclose()},tT(n),n})}function tT(e){e.closed||rT(e).then(function(){return Ud(e.options.idb.fallbackInterval)}).then(function(){return tT(e)})}function mF(e,t){return!(e.uuid===t.uuid||t.eMIs.has(e.id)||e.data.time<t.messagesCallbackTime)}function rT(e){return e.closed?pn:e.messagesCallback?cF(e.db,e.lastCursorId).then(function(t){var r=t.filter(function(n){return!!n}).map(function(n){return n.id>e.lastCursorId&&(e.lastCursorId=n.id),n}).filter(function(n){return mF(n,e)}).sort(function(n,o){return n.time-o.time});return r.forEach(function(n){e.messagesCallback&&(e.eMIs.add(n.id),e.messagesCallback(n.data))}),pn}):pn}function hF(e){e.closed=!0,e.db.close()}function gF(e,t){return e.writeBlockPromise=e.writeBlockPromise.then(function(){return lF(e.db,e.uuid,t)}).then(function(){Zk(0,10)===0&&pF(e)}),e.writeBlockPromise}function xF(e,t,r){e.messagesCallbackTime=r,e.messagesCallback=t,rT(e)}function yF(){return!!eT()}function bF(e){return e.idb.fallbackInterval*2}var nT={create:fF,close:hF,onMessage:xF,postMessage:gF,canBeUsed:yF,type:sF,averageResponseTime:bF,microSeconds:oF};var vF=Pn,wF="pubkey.broadcastChannel-",SF="localstorage";function oT(){var e;if(typeof window>"u")return null;try{e=window.localStorage,e=window["ie8-eventlistener/storage"]||window.localStorage}catch{}return e}function iT(e){return wF+e}function kF(e,t){return new Promise(function(r){Ud().then(function(){var n=iT(e.channelName),o={token:Ka(),time:Date.now(),data:t,uuid:e.uuid},i=JSON.stringify(o);oT().setItem(n,i);var s=document.createEvent("Event");s.initEvent("storage",!0,!0),s.key=n,s.newValue=i,window.dispatchEvent(s),r()})})}function TF(e,t){var r=iT(e),n=function(i){i.key===r&&t(JSON.parse(i.newValue))};return window.addEventListener("storage",n),n}function DF(e){window.removeEventListener("storage",e)}function CF(e,t){if(t=li(t),!sT())throw new Error("BroadcastChannel: localstorage cannot be used");var r=Ka(),n=new Is(t.localstorage.removeTimeout),o={channelName:e,uuid:r,eMIs:n};return o.listener=TF(e,function(i){o.messagesCallback&&i.uuid!==r&&(!i.token||n.has(i.token)||i.data.time&&i.data.time<o.messagesCallbackTime||(n.add(i.token),o.messagesCallback(i.data)))}),o}function EF(e){DF(e.listener)}function MF(e,t,r){e.messagesCallbackTime=r,e.messagesCallback=t}function sT(){var e=oT();if(!e)return!1;try{var t="__broadcastchannel_check";e.setItem(t,"works"),e.removeItem(t)}catch{return!1}return!0}function IF(){var e=120,t=navigator.userAgent.toLowerCase();return t.includes("safari")&&!t.includes("chrome")?e*2:e}var aT={create:CF,close:EF,onMessage:MF,postMessage:kF,canBeUsed:sT,type:SF,averageResponseTime:IF,microSeconds:vF};var lT=Pn,$F="simulate",vh=new Set;function AF(e){var t={time:lT(),name:e,messagesCallback:null};return vh.add(t),t}function _F(e){vh.delete(e)}var cT=5;function OF(e,t){return new Promise(function(r){return setTimeout(function(){var n=Array.from(vh);n.forEach(function(o){o.name===e.name&&o!==e&&o.messagesCallback&&o.time<t.time&&o.messagesCallback(t)}),r()},cT)})}function LF(e,t){e.messagesCallback=t}function NF(){return!0}function PF(){return cT}var uT={create:AF,close:_F,onMessage:LF,postMessage:OF,canBeUsed:NF,type:$F,averageResponseTime:PF,microSeconds:lT};var dT=[Kk,nT,aT];function wh(e){var t=[].concat(e.methods,dT).filter(Boolean);if(e.type){if(e.type==="simulate")return uT;var r=t.find(function(o){return o.type===e.type});if(r)return r;throw new Error("method-type "+e.type+" not found")}e.webWorkerSupport||(t=t.filter(function(o){return o.type!=="idb"}));var n=t.find(function(o){return o.canBeUsed()});if(n)return n;throw new Error("No usable method found in "+JSON.stringify(dT.map(function(o){return o.type})))}var kh=new Set,FF=0,ci=function(t,r){this.id=FF++,kh.add(this),this.name=t,Sh&&(r=Sh),this.options=li(r),this.method=wh(this.options),this._iL=!1,this._onML=null,this._addEL={message:[],internal:[]},this._uMP=new Set,this._befC=[],this._prepP=null,zF(this)};ci._pubkey=!0;function RF(e){e=li(e);var t=wh(e);return t.type==="node"?t.clearNodeFolder().then(function(){return!0}):Jk}var Sh;function BF(e){Sh=e}ci.prototype={postMessage:function(t){if(this.closed)throw new Error("BroadcastChannel.postMessage(): Cannot post message after channel has closed "+JSON.stringify(t));return pT(this,"message",t)},postInternal:function(t){return pT(this,"internal",t)},set onmessage(e){var t=this.method.microSeconds(),r={time:t,fn:e};hT(this,"message",this._onML),e&&typeof e=="function"?(this._onML=r,mT(this,"message",r)):this._onML=null},addEventListener:function(t,r){var n=this.method.microSeconds(),o={time:n,fn:r};mT(this,t,o)},removeEventListener:function(t,r){var n=this._addEL[t].find(function(o){return o.fn===r});hT(this,t,n)},close:function(){var t=this;if(!this.closed){kh.delete(this),this.closed=!0;var r=this._prepP?this._prepP:pn;return this._onML=null,this._addEL.message=[],r.then(function(){return Promise.all(Array.from(t._uMP))}).then(function(){return Promise.all(t._befC.map(function(n){return n()}))}).then(function(){return t.method.close(t._state)})}},get type(){return this.method.type},get isClosed(){return this.closed}};function pT(e,t,r){var n=e.method.microSeconds(),o={time:n,type:t,data:r},i=e._prepP?e._prepP:pn;return i.then(function(){var s=e.method.postMessage(e._state,o);return e._uMP.add(s),s.catch().then(function(){return e._uMP.delete(s)}),s})}function zF(e){var t=e.method.create(e.name,e.options);Xk(t)?(e._prepP=t,t.then(function(r){e._state=r})):e._state=t}function fT(e){return e._addEL.message.length>0||e._addEL.internal.length>0}function mT(e,t,r){e._addEL[t].push(r),HF(e)}function hT(e,t,r){e._addEL[t]=e._addEL[t].filter(function(n){return n!==r}),UF(e)}function HF(e){if(!e._iL&&fT(e)){var t=function(o){e._addEL[o.type].forEach(function(i){o.time>=i.time&&i.fn(o.data)})},r=e.method.microSeconds();e._prepP?e._prepP.then(function(){e._iL=!0,e.method.onMessage(e._state,t,r)}):(e._iL=!0,e.method.onMessage(e._state,t,r))}}function UF(e){if(e._iL&&!fT(e)){e._iL=!1;var t=e.method.microSeconds();e.method.onMessage(e._state,null,t)}}var Th=globalThis.BroadcastChannel;Th||(Th=ci);var Dh=class{constructor(){this.broadcastChannel=new Th("dees-comms"),this.typedrouter=new Kt.TypedRouter,this.typedtarget=new Kt.TypedTarget({postMethodWithTypedRouter:async t=>{this.postMessage(t)},typedRouterRef:this.typedrouter}),this.broadcastChannel.onmessage=async t=>{let r=t.method?t:t.data;console.log(JSON.stringify(r));let n=await this.typedrouter.routeAndAddResponse(r,{skipHooks:!0});n&&!n.error&&this.postMessage(n)}}createTypedRequest(t){return new Kt.TypedRequest(this.typedtarget,t)}async postMessage(t){this.broadcastChannel.postMessage(t)}async createTypedHandler(t,r){this.typedrouter.addTypedHandler(new Kt.TypedHandler(t,r))}};var ta={};me(ta,{SmartMarkdown:()=>Rx});function Rh(e){if(e)throw e}function ll(e){if(typeof e!="object"||e===null)return!1;let t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function Bh(){let e=[],t={run:r,use:n};return t;function r(...o){let i=-1,s=o.pop();if(typeof s!="function")throw new TypeError("Expected function as last argument, not "+s);a(null,...o);function a(l,...c){let u=e[++i],d=-1;if(l){s(l);return}for(;++d<o.length;)(c[d]===null||c[d]===void 0)&&(c[d]=o[d]);o=c,u?bD(u,a)(...c):s(null,...c)}}function n(o){if(typeof o!="function")throw new TypeError("Expected `middelware` to be a function, not "+o);return e.push(o),t}}function bD(e,t){let r;return n;function n(...s){let a=e.length>s.length,l;a&&s.push(o);try{l=e.apply(this,s)}catch(c){let u=c;if(a&&r)throw u;return o(u)}a||(l&&l.then&&typeof l.then=="function"?l.then(i,o):l instanceof Error?o(l):i(l))}function o(s,...a){r||(r=!0,t(s,...a))}function i(s){o(null,s)}}function go(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?vD(e.position):"start"in e||"end"in e?vD(e):"line"in e||"column"in e?zh(e):""}function zh(e){return wD(e&&e.line)+":"+wD(e&&e.column)}function vD(e){return zh(e&&e.start)+"-"+zh(e&&e.end)}function wD(e){return e&&typeof e=="number"?e:1}var It=class extends Error{constructor(t,r,n){super(),typeof r=="string"&&(n=r,r=void 0);let o="",i={},s=!1;if(r&&("line"in r&&"column"in r?i={place:r}:"start"in r&&"end"in r?i={place:r}:"type"in r?i={ancestors:[r],place:r.position}:i={...r}),typeof t=="string"?o=t:!i.cause&&t&&(s=!0,o=t.message,i.cause=t),!i.ruleId&&!i.source&&typeof n=="string"){let l=n.indexOf(":");l===-1?i.ruleId=n:(i.source=n.slice(0,l),i.ruleId=n.slice(l+1))}if(!i.place&&i.ancestors&&i.ancestors){let l=i.ancestors[i.ancestors.length-1];l&&(i.place=l.position)}let a=i.place&&"start"in i.place?i.place.start:i.place;this.ancestors=i.ancestors||void 0,this.cause=i.cause||void 0,this.column=a?a.column:void 0,this.fatal=void 0,this.file="",this.message=o,this.line=a?a.line:void 0,this.name=go(i.place)||"1:1",this.place=i.place||void 0,this.reason=this.message,this.ruleId=i.ruleId||void 0,this.source=i.source||void 0,this.stack=s&&i.cause&&typeof i.cause.stack=="string"?i.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}};It.prototype.file="",It.prototype.name="",It.prototype.reason="",It.prototype.message="",It.prototype.stack="",It.prototype.column=void 0,It.prototype.line=void 0,It.prototype.ancestors=void 0,It.prototype.cause=void 0,It.prototype.fatal=void 0,It.prototype.place=void 0,It.prototype.ruleId=void 0,It.prototype.source=void 0;var Wr={basename:ER,dirname:MR,extname:IR,join:$R,sep:"/"};function ER(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');cl(e);let r=0,n=-1,o=e.length,i;if(t===void 0||t.length===0||t.length>e.length){for(;o--;)if(e.codePointAt(o)===47){if(i){r=o+1;break}}else n<0&&(i=!0,n=o+1);return n<0?"":e.slice(r,n)}if(t===e)return"";let s=-1,a=t.length-1;for(;o--;)if(e.codePointAt(o)===47){if(i){r=o+1;break}}else s<0&&(i=!0,s=o+1),a>-1&&(e.codePointAt(o)===t.codePointAt(a--)?a<0&&(n=o):(a=-1,n=s));return r===n?n=s:n<0&&(n=e.length),e.slice(r,n)}function MR(e){if(cl(e),e.length===0)return".";let t=-1,r=e.length,n;for(;--r;)if(e.codePointAt(r)===47){if(n){t=r;break}}else n||(n=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function IR(e){cl(e);let t=e.length,r=-1,n=0,o=-1,i=0,s;for(;t--;){let a=e.codePointAt(t);if(a===47){if(s){n=t+1;break}continue}r<0&&(s=!0,r=t+1),a===46?o<0?o=t:i!==1&&(i=1):o>-1&&(i=-1)}return o<0||r<0||i===0||i===1&&o===r-1&&o===n+1?"":e.slice(o,r)}function $R(...e){let t=-1,r;for(;++t<e.length;)cl(e[t]),e[t]&&(r=r===void 0?e[t]:r+"/"+e[t]);return r===void 0?".":AR(r)}function AR(e){cl(e);let t=e.codePointAt(0)===47,r=_R(e,!t);return r.length===0&&!t&&(r="."),r.length>0&&e.codePointAt(e.length-1)===47&&(r+="/"),t?"/"+r:r}function _R(e,t){let r="",n=0,o=-1,i=0,s=-1,a,l;for(;++s<=e.length;){if(s<e.length)a=e.codePointAt(s);else{if(a===47)break;a=47}if(a===47){if(!(o===s-1||i===1))if(o!==s-1&&i===2){if(r.length<2||n!==2||r.codePointAt(r.length-1)!==46||r.codePointAt(r.length-2)!==46){if(r.length>2){if(l=r.lastIndexOf("/"),l!==r.length-1){l<0?(r="",n=0):(r=r.slice(0,l),n=r.length-1-r.lastIndexOf("/")),o=s,i=0;continue}}else if(r.length>0){r="",n=0,o=s,i=0;continue}}t&&(r=r.length>0?r+"/..":"..",n=2)}else r.length>0?r+="/"+e.slice(o+1,s):r=e.slice(o+1,s),n=s-o-1;o=s,i=0}else a===46&&i>-1?i++:i=-1}return r}function cl(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}var SD={cwd:OR};function OR(){return"/"}function Fs(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function kD(e){if(typeof e=="string")e=new URL(e);else if(!Fs(e)){let t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if(e.protocol!=="file:"){let t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return LR(e)}function LR(e){if(e.hostname!==""){let n=new TypeError('File URL host must be "localhost" or empty on darwin');throw n.code="ERR_INVALID_FILE_URL_HOST",n}let t=e.pathname,r=-1;for(;++r<t.length;)if(t.codePointAt(r)===37&&t.codePointAt(r+1)===50){let n=t.codePointAt(r+2);if(n===70||n===102){let o=new TypeError("File URL path must not include encoded / characters");throw o.code="ERR_INVALID_FILE_URL_PATH",o}}return decodeURIComponent(t)}var Hh=["history","path","basename","stem","extname","dirname"],ul=class{constructor(t){let r;t?Fs(t)?r={path:t}:typeof t=="string"||NR(t)?r={value:t}:r=t:r={},this.cwd="cwd"in r?"":SD.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let n=-1;for(;++n<Hh.length;){let i=Hh[n];i in r&&r[i]!==void 0&&r[i]!==null&&(this[i]=i==="history"?[...r[i]]:r[i])}let o;for(o in r)Hh.includes(o)||(this[o]=r[o])}get basename(){return typeof this.path=="string"?Wr.basename(this.path):void 0}set basename(t){jh(t,"basename"),Uh(t,"basename"),this.path=Wr.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?Wr.dirname(this.path):void 0}set dirname(t){TD(this.basename,"dirname"),this.path=Wr.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?Wr.extname(this.path):void 0}set extname(t){if(Uh(t,"extname"),TD(this.dirname,"extname"),t){if(t.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(t.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=Wr.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){Fs(t)&&(t=kD(t)),jh(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?Wr.basename(this.path,this.extname):void 0}set stem(t){jh(t,"stem"),Uh(t,"stem"),this.path=Wr.join(this.dirname||"",t+(this.extname||""))}fail(t,r,n){let o=this.message(t,r,n);throw o.fatal=!0,o}info(t,r,n){let o=this.message(t,r,n);return o.fatal=void 0,o}message(t,r,n){let o=new It(t,r,n);return this.path&&(o.name=this.path+":"+o.name,o.file=this.path),o.fatal=!1,this.messages.push(o),o}toString(t){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(t||void 0).decode(this.value)}};function Uh(e,t){if(e&&e.includes(Wr.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+Wr.sep+"`")}function jh(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function TD(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function NR(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}var DD=(function(e){let n=this.constructor.prototype,o=n[e],i=function(){return o.apply(i,arguments)};return Object.setPrototypeOf(i,n),i});var rp=Qt(yD(),1),PR={}.hasOwnProperty,qh=class e extends DD{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=Bh()}copy(){let t=new e,r=-1;for(;++r<this.attachers.length;){let n=this.attachers[r];t.use(...n)}return t.data((0,rp.default)(!0,{},this.namespace)),t}data(t,r){return typeof t=="string"?arguments.length===2?(Vh("data",this.frozen),this.namespace[t]=r,this):PR.call(this.namespace,t)&&this.namespace[t]||void 0:t?(Vh("data",this.frozen),this.namespace=t,this):this.namespace}freeze(){if(this.frozen)return this;let t=this;for(;++this.freezeIndex<this.attachers.length;){let[r,...n]=this.attachers[this.freezeIndex];if(n[0]===!1)continue;n[0]===!0&&(n[0]=void 0);let o=r.call(t,...n);typeof o=="function"&&this.transformers.use(o)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(t){this.freeze();let r=tp(t),n=this.parser||this.Parser;return Yh("parse",n),n(String(r),r)}process(t,r){let n=this;return this.freeze(),Yh("process",this.parser||this.Parser),Wh("process",this.compiler||this.Compiler),r?o(void 0,r):new Promise(o);function o(i,s){let a=tp(t),l=n.parse(a);n.run(l,a,function(u,d,p){if(u||!d||!p)return c(u);let f=d,m=n.stringify(f,p);RR(m)?p.value=m:p.result=m,c(u,p)});function c(u,d){u||!d?s(u):i?i(d):r(void 0,d)}}}processSync(t){let r=!1,n;return this.freeze(),Yh("processSync",this.parser||this.Parser),Wh("processSync",this.compiler||this.Compiler),this.process(t,o),ED("processSync","process",r),n;function o(i,s){r=!0,Rh(i),n=s}}run(t,r,n){CD(t),this.freeze();let o=this.transformers;return!n&&typeof r=="function"&&(n=r,r=void 0),n?i(void 0,n):new Promise(i);function i(s,a){let l=tp(r);o.run(t,l,c);function c(u,d,p){let f=d||t;u?a(u):s?s(f):n(void 0,f,p)}}}runSync(t,r){let n=!1,o;return this.run(t,r,i),ED("runSync","run",n),o;function i(s,a){Rh(s),o=a,n=!0}}stringify(t,r){this.freeze();let n=tp(r),o=this.compiler||this.Compiler;return Wh("stringify",o),CD(t),o(t,n)}use(t,...r){let n=this.attachers,o=this.namespace;if(Vh("use",this.frozen),t!=null)if(typeof t=="function")l(t,r);else if(typeof t=="object")Array.isArray(t)?a(t):s(t);else throw new TypeError("Expected usable value, not `"+t+"`");return this;function i(c){if(typeof c=="function")l(c,[]);else if(typeof c=="object")if(Array.isArray(c)){let[u,...d]=c;l(u,d)}else s(c);else throw new TypeError("Expected usable value, not `"+c+"`")}function s(c){if(!("plugins"in c)&&!("settings"in c))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");a(c.plugins),c.settings&&(o.settings=(0,rp.default)(!0,o.settings,c.settings))}function a(c){let u=-1;if(c!=null)if(Array.isArray(c))for(;++u<c.length;){let d=c[u];i(d)}else throw new TypeError("Expected a list of plugins, not `"+c+"`")}function l(c,u){let d=-1,p=-1;for(;++d<n.length;)if(n[d][0]===c){p=d;break}if(p===-1)n.push([c,...u]);else if(u.length>0){let[f,...m]=u,g=n[p][1];ll(g)&&ll(f)&&(f=(0,rp.default)(!0,g,f)),n[p]=[c,f,...m]}}}},dl=new qh().freeze();function Yh(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function Wh(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function Vh(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function CD(e){if(!ll(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function ED(e,t,r){if(!r)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function tp(e){return FR(e)?e:new ul(e)}function FR(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function RR(e){return typeof e=="string"||BR(e)}function BR(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}function Bs(e,t){let r=String(e);if(typeof t!="string")throw new TypeError("Expected character");let n=0,o=r.indexOf(t);for(;o!==-1;)n++,o=r.indexOf(t,o+t.length);return n}var Dt=xo(/[A-Za-z]/),st=xo(/[\dA-Za-z]/),MD=xo(/[#-'*+\--9=?A-Z^-~]/);function xi(e){return e!==null&&(e<32||e===127)}var pl=xo(/\d/),ID=xo(/[\dA-Fa-f]/),$D=xo(/[!-/:-@[-`{-~]/);function Z(e){return e!==null&&e<-2}function Ce(e){return e!==null&&(e<0||e===32)}function ae(e){return e===-2||e===-1||e===32}var yi=xo(/\p{P}|\p{S}/u),hn=xo(/\s/);function xo(e){return t;function t(r){return r!==null&&r>-1&&e.test(String.fromCharCode(r))}}var _D=(function(e,t,r,n,o){let i=Rn(t);if(r!=null&&(typeof r!="number"||r<0||r===Number.POSITIVE_INFINITY))throw new Error("Expected positive finite index");if(n!=null&&(!_D(n)||!n.children))throw new Error("Expected parent node");if(n==null!=(r==null))throw new Error("Expected both parent and index");return AD(e)?i.call(o,e,r,n):!1}),Rn=(function(e){if(e==null)return jR;if(typeof e=="function")return np(e);if(typeof e=="object")return Array.isArray(e)?zR(e):HR(e);if(typeof e=="string")return UR(e);throw new Error("Expected function, string, or object as test")});function zR(e){let t=[],r=-1;for(;++r<e.length;)t[r]=Rn(e[r]);return np(n);function n(...o){let i=-1;for(;++i<t.length;)if(t[i].apply(this,o))return!0;return!1}}function HR(e){let t=e;return np(r);function r(n){let o=n,i;for(i in e)if(o[i]!==t[i])return!1;return!0}}function UR(e){return np(t);function t(r){return r&&r.type===e}}function np(e){return t;function t(r,n,o){return!!(AD(r)&&e.call(this,r,typeof n=="number"?n:void 0,o||void 0))}}function jR(){return!0}function AD(e){return e!==null&&typeof e=="object"&&"type"in e}var OD=[],op=!0,bi=!1,ip="skip";function fl(e,t,r,n){let o;typeof t=="function"&&typeof r!="function"?(n=r,r=t):o=t;let i=Rn(o),s=n?-1:1;a(e,void 0,[])();function a(l,c,u){let d=l&&typeof l=="object"?l:{};if(typeof d.type=="string"){let f=typeof d.tagName=="string"?d.tagName:typeof d.name=="string"?d.name:void 0;Object.defineProperty(p,"name",{value:"node ("+(l.type+(f?"<"+f+">":""))+")"})}return p;function p(){let f=OD,m,g,x;if((!t||i(l,c,u[u.length-1]||void 0))&&(f=qR(r(l,u)),f[0]===bi))return f;if("children"in l&&l.children){let y=l;if(y.children&&f[0]!==ip)for(g=(n?y.children.length:-1)+s,x=u.concat(y);g>-1&&g<y.children.length;){let T=y.children[g];if(m=a(T,g,x)(),m[0]===bi)return m;g=typeof m[1]=="number"?m[1]:g+s}}return f}}}function qR(e){return Array.isArray(e)?e:typeof e=="number"?[op,e]:e==null?OD:[e]}function Gh(e,t,r){let o=Rn((r||{}).ignore||[]),i=YR(t),s=-1;for(;++s<i.length;)fl(e,"text",a);function a(c,u){let d=-1,p;for(;++d<u.length;){let f=u[d],m=p?p.children:void 0;if(o(f,m?m.indexOf(f):void 0,p))return;p=f}if(p)return l(c,u)}function l(c,u){let d=u[u.length-1],p=i[s][0],f=i[s][1],m=0,x=d.children.indexOf(c),y=!1,T=[];p.lastIndex=0;let D=p.exec(c.value);for(;D;){let H=D.index,j={index:D.index,input:D.input,stack:[...u,c]},M=f(...D,j);if(typeof M=="string"&&(M=M.length>0?{type:"text",value:M}:void 0),M===!1?p.lastIndex=H+1:(m!==H&&T.push({type:"text",value:c.value.slice(m,H)}),Array.isArray(M)?T.push(...M):M&&T.push(M),m=H+D[0].length,y=!0),!p.global)break;D=p.exec(c.value)}return y?(m<c.value.length&&T.push({type:"text",value:c.value.slice(m)}),d.children.splice(x,1,...T)):T=[c],x+T.length}}function YR(e){let t=[];if(!Array.isArray(e))throw new TypeError("Expected find and replace tuple or list of tuples");let r=!e[0]||Array.isArray(e[0])?e:[e],n=-1;for(;++n<r.length;){let o=r[n];t.push([WR(o[0]),VR(o[1])])}return t}function WR(e){return typeof e=="string"?new RegExp(Wo(e),"g"):e}function VR(e){return typeof e=="function"?e:function(){return e}}var Qh="phrasing",Xh=["autolink","link","image","label"];function Zh(){return{transforms:[KR],enter:{literalAutolink:GR,literalAutolinkEmail:Jh,literalAutolinkHttp:Jh,literalAutolinkWww:Jh},exit:{literalAutolink:ZR,literalAutolinkEmail:JR,literalAutolinkHttp:QR,literalAutolinkWww:XR}}}function Kh(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:Qh,notInConstruct:Xh},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:Qh,notInConstruct:Xh},{character:":",before:"[ps]",after:"\\/",inConstruct:Qh,notInConstruct:Xh}]}}function GR(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function Jh(e){this.config.enter.autolinkProtocol.call(this,e)}function QR(e){this.config.exit.autolinkProtocol.call(this,e)}function XR(e){this.config.exit.data.call(this,e);let t=this.stack[this.stack.length-1];t.type,t.url="http://"+this.sliceSerialize(e)}function JR(e){this.config.exit.autolinkEmail.call(this,e)}function ZR(e){this.exit(e)}function KR(e){Gh(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,e9],[/(?<=^|\s|\p{P}|\p{S})([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/gu,t9]],{ignore:["link","linkReference"]})}function e9(e,t,r,n,o){let i="";if(!LD(o)||(/^w/i.test(t)&&(r=t+r,t="",i="http://"),!r9(r)))return!1;let s=n9(r+n);if(!s[0])return!1;let a={type:"link",title:null,url:i+t+s[0],children:[{type:"text",value:t+s[0]}]};return s[1]?[a,{type:"text",value:s[1]}]:a}function t9(e,t,r,n){return!LD(n,!0)||/[-\d_]$/.test(r)?!1:{type:"link",title:null,url:"mailto:"+t+"@"+r,children:[{type:"text",value:t+"@"+r}]}}function r9(e){let t=e.split(".");return!(t.length<2||t[t.length-1]&&(/_/.test(t[t.length-1])||!/[a-zA-Z\d]/.test(t[t.length-1]))||t[t.length-2]&&(/_/.test(t[t.length-2])||!/[a-zA-Z\d]/.test(t[t.length-2])))}function n9(e){let t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let r=t[0],n=r.indexOf(")"),o=Bs(e,"("),i=Bs(e,")");for(;n!==-1&&o>i;)e+=r.slice(0,n+1),r=r.slice(n+1),n=r.indexOf(")"),i++;return[e,r]}function LD(e,t){let r=e.input.charCodeAt(e.index-1);return(e.index===0||hn(r)||yi(r))&&(!t||r!==47)}function at(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}ND.peek=p9;function o9(){this.buffer()}function i9(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function s9(){this.buffer()}function a9(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function l9(e){let t=this.resume(),r=this.stack[this.stack.length-1];r.type,r.identifier=at(this.sliceSerialize(e)).toLowerCase(),r.label=t}function c9(e){this.exit(e)}function u9(e){let t=this.resume(),r=this.stack[this.stack.length-1];r.type,r.identifier=at(this.sliceSerialize(e)).toLowerCase(),r.label=t}function d9(e){this.exit(e)}function p9(){return"["}function ND(e,t,r,n){let o=r.createTracker(n),i=o.move("[^"),s=r.enter("footnoteReference"),a=r.enter("reference");return i+=o.move(r.safe(r.associationId(e),{after:"]",before:i})),a(),s(),i+=o.move("]"),i}function eg(){return{enter:{gfmFootnoteCallString:o9,gfmFootnoteCall:i9,gfmFootnoteDefinitionLabelString:s9,gfmFootnoteDefinition:a9},exit:{gfmFootnoteCallString:l9,gfmFootnoteCall:c9,gfmFootnoteDefinitionLabelString:u9,gfmFootnoteDefinition:d9}}}function tg(e){let t=!1;return e&&e.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:r,footnoteReference:ND},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function r(n,o,i,s){let a=i.createTracker(s),l=a.move("[^"),c=i.enter("footnoteDefinition"),u=i.enter("label");return l+=a.move(i.safe(i.associationId(n),{before:l,after:"]"})),u(),l+=a.move("]:"),n.children&&n.children.length>0&&(a.shift(4),l+=a.move((t?`
|
|
44
|
-
`:" ")+i.indentLines(i.containerFlow(n,a.current()),t?PD:
|
|
45
|
-
`)}function
|
|
40
|
+
`)},YP=(e,t)=>{let r=e;return(!t||t.stripIndent)&&(r=qP(r)),(!t||t.normalizeNewline)&&(r=r.replace(/\r\n/g,`
|
|
41
|
+
`)),(!t||t.replaceTabs)&&(r=HS(r," /"," ")),(!t||t.stripLeadingTrailingEmptyLines)&&(r=r.replace(/^\s*[\r\n]/gm,"").replace(/\s*[\r\n]$/gm,"")),(!t||t.stripAllEmptyLines)&&(r=r.replace(/^\s*[\r\n]/gm,"")),r};var Td={};he(Td,{isBase64:()=>VP,isUtf8:()=>WP});var Hm={encode:e=>{if(typeof Buffer<"u")return Buffer.from(e,"utf8").toString("base64");if(typeof btoa<"u"){let t=new TextEncoder().encode(e),r=Array.from(t,n=>String.fromCharCode(n)).join("");return btoa(r)}else{let t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",r=new TextEncoder().encode(e),n="",o=0;for(;o<r.length;){let i=r[o++],s=o<r.length?r[o++]:0,a=o<r.length?r[o++]:0,l=i<<16|s<<8|a;n+=t.charAt(l>>18&63),n+=t.charAt(l>>12&63),n+=o-2<r.length?t.charAt(l>>6&63):"=",n+=o-1<r.length?t.charAt(l&63):"="}return n}},decode:e=>{let t=e.replace(/-/g,"+").replace(/_/g,"/").padEnd(e.length+(4-e.length%4)%4,"=");if(typeof Buffer<"u")return Buffer.from(t,"base64").toString("utf8");if(typeof atob<"u"){let r=atob(t),n=new Uint8Array(r.length);for(let o=0;o<r.length;o++)n[o]=r.charCodeAt(o);return new TextDecoder().decode(n)}else{let r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",n=[],o=0;for(;o<t.length;){let i=r.indexOf(t.charAt(o++)),s=r.indexOf(t.charAt(o++)),a=r.indexOf(t.charAt(o++)),l=r.indexOf(t.charAt(o++)),c=i<<18|s<<12|a<<6|l;n.push(c>>16&255),a!==64&&n.push(c>>8&255),l!==64&&n.push(c&255)}return new TextDecoder().decode(new Uint8Array(n))}}},kd=class{constructor(t,r){switch(r){case"string":this.refString=t;break;case"base64":this.refString=Ts.decode(t);break;case"base64uri":this.refString=Ts.decode(t)}}get simpleString(){return this.refString}get base64String(){return Ts.encode(this.refString)}get base64UriString(){return Ts.encodeUri(this.refString)}},Ts={encode:e=>Hm.encode(e),encodeUri:e=>Hm.encode(e).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,""),decode:e=>Hm.decode(e),isBase64:e=>/^([A-Za-z0-9+/]{4})*([A-Za-z0-9+/]{3}=|[A-Za-z0-9+/]{2}==)?$/.test(e)};var WP=e=>{let r=new TextEncoder().encode(e),n=0;for(;n<r.length;){if(r[n]===9||r[n]===10||r[n]===13||32<=r[n]&&r[n]<=126){n+=1;continue}if(194<=r[n]&&r[n]<=223&&128<=r[n+1]&&r[n+1]<=191){n+=2;continue}if(r[n]===224&&160<=r[n+1]&&r[n+1]<=191&&128<=r[n+2]&&r[n+2]<=191||(225<=r[n]&&r[n]<=236||r[n]===238||r[n]===239)&&128<=r[n+1]&&r[n+1]<=191&&128<=r[n+2]&&r[n+2]<=191||r[n]===237&&128<=r[n+1]&&r[n+1]<=159&&128<=r[n+2]&&r[n+2]<=191){n+=3;continue}if(r[n]===240&&144<=r[n+1]&&r[n+1]<=191&&128<=r[n+2]&&r[n+2]<=191&&128<=r[n+3]&&r[n+3]<=191||241<=r[n]&&r[n]<=243&&128<=r[n+1]&&r[n+1]<=191&&128<=r[n+2]&&r[n+2]<=191&&128<=r[n+3]&&r[n+3]<=191||r[n]===244&&128<=r[n+1]&&r[n+1]<=143&&128<=r[n+2]&&r[n+2]<=191&&128<=r[n+3]&&r[n+3]<=191){n+=4;continue}return!1}return!0},VP=e=>{let t=/[^A-Z0-9+\/=]/i,r=e.length;if(!r||r%4!==0||t.test(e))return!1;let n=e.indexOf("=");return n===-1||n===r-1||n===r-2&&e[r-1]==="="};var Dd=class{constructor(t){this.protocol=this._protocolRegex(t),this.protocol||(t=`https://${t}`),this.nodeParsedUrl=new URL(t),this.port=this.nodeParsedUrl.port;let r=this._domainRegex(t.replace(this.nodeParsedUrl.pathname,""));this.fullName="";for(let n=1;n<=5;n++)if(r[n-1]){let o=r[n-1];this["level"+n.toString()]=o,this.fullName===""?this.fullName=o:this.fullName=o+"."+this.fullName}else this["level"+n.toString()]=void 0;this.zoneName=this.level2+"."+this.level1,this.topLevel=this.level1,this.domainName=this.level2,this.subDomain=this.level3}_domainRegex(t){let n=/([a-zA-Z0-9\-\_]*)\.{0,1}([a-zA-Z0-9\-\_]*)\.{0,1}([a-zA-Z0-9\-\_]*)\.{0,1}([a-zA-Z0-9\-\_]*)\.{0,1}([a-zA-Z0-9\-\_]*)\.{0,1}$/.exec(t);return n.reverse(),n.pop(),n.filter(function(i){return i!==""})}_protocolRegex(t){let n=/^([a-zA-Z0-9]*):\/\//.exec(t);if(n)return n[1]}_portRegex(t){let n=/^([a-zA-Z0-9]*):\/\//.exec(t);if(n)return n[1]}};var Cd=class{constructor(t,r){let n=GP(t);this.host=n[1],this.user=n[2],this.repo=n[3],this.accessToken=r,this.sshUrl=US(this.host,this.user,this.repo,this.accessToken,"ssh"),this.httpsUrl=US(this.host,this.user,this.repo,this.accessToken,"https")}},GP=function(e){return/([a-zA-Z0-9\-_\.]*)(?:\/|\:)([a-zA-Z0-9\-_\.]*)(?:\/)([a-zA-Z0-9\-_\.]*)(?:\.git)/.exec(e)},US=function(e,t,r,n="",o){let i;switch(n!==""&&(n=n+"@"),o){case"https":i="https://"+n+e+"/"+t+"/"+r+".git";break;case"ssh":i="git@"+e+":"+t+"/"+r+".git";break;default:console.error("Link Type "+o+" not known");break}return i};var Nd=Qt($k(),1),Ok=Qt(_k(),1),Pd=Ok.default;function k3(e){return typeof Buffer<"u"?Buffer.from(e).toString("base64"):btoa(String.fromCharCode(...e))}function T3(e){if(typeof Buffer<"u"){let t=Buffer.from(e,"base64");return new Uint8Array(t.buffer,t.byteOffset,t.byteLength)}return new Uint8Array(Array.from(atob(e)).map(t=>t.charCodeAt(0)))}function nh(e,t){return JSON.stringify(e,Fd,t)}function oh(e){return JSON.parse(e,Lk)}var Fd=(e,t)=>{if(C3(t)){let r;if("data"in t&&Nk(t.data))r=new Uint8Array(t.data);else if(t instanceof Uint8Array)r=t;else return t;return{type:"EncodedBuffer",data:"base64:"+k3(r)}}return t},Lk=(e,t)=>{if(D3(t)&&rh(t.data)&&t.data.startsWith("base64:")){let r=t.data.slice(7);return T3(r)}return t};function D3(e){return Pk(e)&&e.type==="EncodedBuffer"&&rh(e.data)}function C3(e){return Pk(e)&&e.type==="Buffer"&&(Nk(e.data)||rh(e.data))||e instanceof Uint8Array}function Nk(e){return Array.isArray(e)}function rh(e){return typeof e=="string"}function Pk(e){return typeof e=="object"&&e!==null}var Rd=oh,ih=e=>e.split(`
|
|
42
|
+
`).reduce((n,o)=>{let i=o.trim();return i.length>0&&n.push(Rd(i)),n},[]),M3=e=>e.map(t=>si(t)).join(`
|
|
43
|
+
`),I3=(e,t,r={})=>{let n=new WeakSet,o=a=>{if(a===null||typeof a!="object")return a;let l=Fd("",a);if(l&&l.type==="EncodedBuffer"&&typeof l.data=="string")return l;if(n.has(a))return"__cycle__";if(n.add(a),Array.isArray(a))return a.map(u=>o(u));let c={};for(let u of Object.keys(a))try{c[u]=o(a[u])}catch{c[u]="__unserializable__"}return c},i=o(e),s={...r,cycles:!0};if(t&&!s.cmp){let a=new Map;t.forEach((l,c)=>a.set(l,c)),s.cmp=(l,c)=>{let u=a.has(l.key)?a.get(l.key):Number.POSITIVE_INFINITY,d=a.has(c.key)?a.get(c.key):Number.POSITIVE_INFINITY;return u!==d?u-d:l.key<c.key?-1:l.key>c.key?1:0}}return Pd(i,s)},si=(e,t,r={})=>{let n=nh(e);e=JSON.parse(n);let o={...r};if(t&&!o.cmp){let s=new Map;t.forEach((a,l)=>s.set(a,l)),o.cmp=(a,l)=>{let c=s.has(a.key)?s.get(a.key):Number.POSITIVE_INFINITY,u=s.has(l.key)?s.get(l.key):Number.POSITIVE_INFINITY;return c!==u?c-u:a.key<l.key?-1:a.key>l.key?1:0}}return Pd(e,o)},$3=e=>{let t=si(e),r=JSON.parse(t);return JSON.stringify(r,null,2)},A3=(...e)=>{let t=si(...e);return jr.base64.encodeUri(t)},_3=e=>{let t=jr.base64,n=(t.decodeUri||t.decode)(e);return Rd(n)},sh=class e{static enfoldFromObject(t){let r=new this,n=r.saveableProperties||[];for(let o in t)n.indexOf(o)!==-1&&(r[o]=t[o]);return r}static enfoldFromJson(t){let r=Rd(t);return this.enfoldFromObject(r)}foldToObject(){let t=new Set;return t.add(this),this.foldToObjectInternal(t)}foldToObjectInternal(t){let r={},n=i=>{if(i instanceof e){if(t.has(i))throw new Error("cycle detected");return t.add(i),i.foldToObjectInternal(t)}return Array.isArray(i)?i.map(s=>n(s)):Nd.default(i)},o=this.saveableProperties||[];for(let i of o){let s=this[i];r[i]=n(s)}return r}foldToJson(){let t=this.foldToObject();return si(t)}},O3=()=>(e,t)=>{e.saveableProperties||(e.saveableProperties=[]),e.saveableProperties.push(t)},Fk=(e,t)=>{let r=si(e),n=si(t);return r===n},L3=(e,t)=>{let r=ih(e),n=ih(t);return Fk(r,n)};var qr={};he(qr,{TypedrequestCache:()=>fh,WebStore:()=>Ja});var Xa={};he(Xa,{deleteDB:()=>Wk,openDB:()=>Yk,unwrap:()=>Qa,wrap:()=>un});var ah=(e,t)=>t.some(r=>e instanceof r),Rk,Bk;function N3(){return Rk||(Rk=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])}function P3(){return Bk||(Bk=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])}var lh=new WeakMap,ch=new WeakMap,Bd=new WeakMap;function F3(e){let t=new Promise((r,n)=>{let o=()=>{e.removeEventListener("success",i),e.removeEventListener("error",s)},i=()=>{r(un(e.result)),o()},s=()=>{n(e.error),o()};e.addEventListener("success",i),e.addEventListener("error",s)});return Bd.set(t,e),t}function R3(e){if(lh.has(e))return;let t=new Promise((r,n)=>{let o=()=>{e.removeEventListener("complete",i),e.removeEventListener("error",s),e.removeEventListener("abort",s)},i=()=>{r(),o()},s=()=>{n(e.error||new DOMException("AbortError","AbortError")),o()};e.addEventListener("complete",i),e.addEventListener("error",s),e.addEventListener("abort",s)});lh.set(e,t)}var uh={get(e,t,r){if(e instanceof IDBTransaction){if(t==="done")return lh.get(e);if(t==="store")return r.objectStoreNames[1]?void 0:r.objectStore(r.objectStoreNames[0])}return un(e[t])},set(e,t,r){return e[t]=r,!0},has(e,t){return e instanceof IDBTransaction&&(t==="done"||t==="store")?!0:t in e}};function zk(e){uh=e(uh)}function B3(e){return P3().includes(e)?function(...t){return e.apply(Qa(this),t),un(this.request)}:function(...t){return un(e.apply(Qa(this),t))}}function z3(e){return typeof e=="function"?B3(e):(e instanceof IDBTransaction&&R3(e),ah(e,N3())?new Proxy(e,uh):e)}function un(e){if(e instanceof IDBRequest)return F3(e);if(ch.has(e))return ch.get(e);let t=z3(e);return t!==e&&(ch.set(e,t),Bd.set(t,e)),t}var Qa=e=>Bd.get(e);function Yk(e,t,{blocked:r,upgrade:n,blocking:o,terminated:i}={}){let s=indexedDB.open(e,t),a=un(s);return n&&s.addEventListener("upgradeneeded",l=>{n(un(s.result),l.oldVersion,l.newVersion,un(s.transaction),l)}),r&&s.addEventListener("blocked",l=>r(l.oldVersion,l.newVersion,l)),a.then(l=>{i&&l.addEventListener("close",()=>i()),o&&l.addEventListener("versionchange",c=>o(c.oldVersion,c.newVersion,c))}).catch(()=>{}),a}function Wk(e,{blocked:t}={}){let r=indexedDB.deleteDatabase(e);return t&&r.addEventListener("blocked",n=>t(n.oldVersion,n)),un(r).then(()=>{})}var H3=["get","getKey","getAll","getAllKeys","count"],U3=["put","add","delete","clear"],dh=new Map;function Hk(e,t){if(!(e instanceof IDBDatabase&&!(t in e)&&typeof t=="string"))return;if(dh.get(t))return dh.get(t);let r=t.replace(/FromIndex$/,""),n=t!==r,o=U3.includes(r);if(!(r in(n?IDBIndex:IDBObjectStore).prototype)||!(o||H3.includes(r)))return;let i=async function(s,...a){let l=this.transaction(s,o?"readwrite":"readonly"),c=l.store;return n&&(c=c.index(a.shift())),(await Promise.all([c[r](...a),o&&l.done]))[0]};return dh.set(t,i),i}zk(e=>({...e,get:(t,r,n)=>Hk(t,r)||e.get(t,r,n),has:(t,r)=>!!Hk(t,r)||e.has(t,r)}));var j3=["continue","continuePrimaryKey","advance"],Uk={},ph=new WeakMap,jk=new WeakMap,q3={get(e,t){if(!j3.includes(t))return e[t];let r=Uk[t];return r||(r=Uk[t]=function(...n){ph.set(this,jk.get(this)[t](...n))}),r}};async function*Y3(...e){let t=this;if(t instanceof IDBCursor||(t=await t.openCursor(...e)),!t)return;t=t;let r=new Proxy(t,q3);for(jk.set(r,t),Bd.set(r,Qa(t));t;)yield r,t=await(ph.get(r)||t.continue()),ph.delete(r)}function qk(e,t){return t===Symbol.asyncIterator&&ah(e,[IDBIndex,IDBObjectStore,IDBCursor])||t==="iterate"&&ah(e,[IDBIndex,IDBObjectStore])}zk(e=>({...e,get(t,r,n){return qk(t,r)?Y3:e.get(t,r,n)},has(t,r){return qk(t,r)||e.has(t,r)}}));var Ja=class{constructor(t){this.initCalled=!1,this.readyDeferred=fe.defer(),this.options=t}async init(){if(this.initCalled){await this.readyDeferred.promise;return}this.initCalled=!0;let t=new Ur.Smartenv;if(!t.isBrowser&&!globalThis.indexedDB&&(console.log("hey"),console.log(globalThis.indexedDB),await t.getSafeNodeModule("fake-indexeddb/auto"),!globalThis.indexedDB)){let r=await t.getSafeNodeModule("fake-indexeddb");globalThis.indexedDB=new r.IDBFactory}this.db=await Xa.openDB(this.options.dbName,1,{upgrade:r=>{r.createObjectStore(this.options.storeName)}}),this.readyDeferred.resolve()}async get(t){return await this.init(),this.db.get(this.options.storeName,t)}async check(t){return await this.init(),!!await this.get(t)}async set(t,r){return await this.init(),this.db.put(this.options.storeName,r,t)}async delete(t){return await this.init(),this.db.delete(this.options.storeName,t)}async clear(){return await this.init(),this.db.clear(this.options.storeName)}async keys(){return await this.init(),this.db.getAllKeys(this.options.storeName)}};var fh=class{constructor(t="default"){this.webstore=new Ja({dbName:"trStore",storeName:`trStore-${t}`})}buildKey(t){return Ze.stringify({method:t.method,request:t.request})}async setByRequest(t){if(!t.response)throw new Error("You cannot store requests without a response present");await this.webstore.set(this.buildKey(t),t)}async getByRequest(t){return await this.webstore.get(this.buildKey(t))}};var mh=class{constructor(t={}){this.optionsArg=t,this.cacheStore=new qr.WebStore({dbName:"webrequest",storeName:"webrequest"}),this.options={logging:!0,...t}}async getJson(t,r=!1){let o=await(await this.request(t,{method:"GET",useCache:r})).text();return Ze.parse(o)}async postJson(t,r,n=!1){let i=await(await this.request(t,{method:"POST",headers:{"Content-Type":"application/json"},body:Ze.stringify(r),useCache:n})).text();return Ze.parse(i)}async putJson(t,r,n=!1){let i=await(await this.request(t,{method:"PUT",headers:{"Content-Type":"application/json"},body:Ze.stringify(r)})).text();return Ze.parse(i)}async deleteJson(t,r=!1){let o=await(await this.request(t,{headers:{"Content-Type":"application/json"},method:"GET"})).text();return Ze.parse(o)}async request(t,r){r={timeoutMs:6e4,useCache:!1,...r};let n=new AbortController;be.delayFor(r.timeoutMs).then(()=>{n.abort()});let o=fe.defer(),i=!1;if(r.useCache&&await this.cacheStore.check(t)){let a=await this.cacheStore.get(t);o.resolve(new Response(a,{}))}else o.resolve(null);let s=await fetch(t,{signal:n.signal,method:r.method,headers:{...r.headers||{}},body:r.body}).catch(async a=>r.useCache&&await o.promise?(i=!0,o.promise):a);if(r.useCache&&await o.promise&&s.status===500&&(i=!0,s=await o.promise),!i&&r.useCache&&s.status<300){let a=await s.clone().arrayBuffer();await this.cacheStore.set(t,a)}return this.log(`${t} answers with status: ${s.status}`),s}async requestMultiEndpoint(t,r){let n,o=0;Array.isArray(t)?n=t:n=[t];let i=[],s=async c=>{i.push(c),c==="429"&&(console.log("got 429, so waiting a little bit."),await be.delayFor(Math.floor(Math.random()*1001)+1e3));let u=0;for(let d of i)d===c&&u++;u>2*n.length*o&&o++},a=async c=>{if(!c)throw new Error("request failed permanently");this.log(`Getting ${c} with method ${r.method}`);let u=await fetch(c,{method:r.method,headers:{"Content-Type":"application/json",...r.headers||{}},body:r.body});return this.log(`${c} answers with status: ${u.status}`),u.status>=200&&u.status<300?u:(await s(u.status.toString()),await a(n[o]))};return await a(n[o])}log(t){this.options.logging&&console.log(t)}};var mo=Qt(Kl(),1);var Nn=class{constructor(t,r){this.errorText=t,this.errorData=r}};var Hd=class{constructor(){this.localData={}}async passGuards(t,r){let n=new Ya.GuardSet(t);if(!await n.allGuardsPass(r)){let i=await n.getFailedHint(r);throw new Nn(`guard failed: ${i}`,{failedHint:i})}}};var hh=class{constructor(t,r){this.method=t,this.handlerFunction=r}async addResponse(t){if(t.method!==this.method)throw new Error("this handler has been given a wrong method to answer to. Please use a TypedRouter to filter requests");let r,n=new Hd;t.localData&&(n.localData=t.localData);let o=await this.handlerFunction(t.request,n).catch(i=>{i instanceof Nn?r=i:console.log(i)});return r&&(t.error={text:r.errorText,data:r.errorData}),o&&(t.response=o),t?.correlation?.phase&&(t.correlation.phase="response"),t}};var li=class e{constructor(){this.hooks={},this.routerMap=new kt.ObjectMap,this.handlerMap=new kt.ObjectMap,this.registeredVirtualStreams=new kt.ObjectMap,this.fireEventInterestMap=new kt.InterestMap(t=>t)}static get globalHooks(){return globalThis.__typedRouterGlobalHooks||(globalThis.__typedRouterGlobalHooks={}),globalThis.__typedRouterGlobalHooks}static set globalHooks(t){globalThis.__typedRouterGlobalHooks=t}static setGlobalHooks(t){let r=e.globalHooks;e.globalHooks={...r,...t}}static clearGlobalHooks(){globalThis.__typedRouterGlobalHooks={}}setHooks(t){this.hooks={...this.hooks,...t}}callHook(t,r){try{e.globalHooks[t]?.(r),this.hooks[t]?.(r)}catch(n){console.error(`TypedRouter hook error (${t}):`,n)}}addTypedHandler(t){if(this.getTypedHandlerForMethod(t.method))throw new Error(`a TypedHandler for ${t.method} alredy exists! Can't add another one.`);this.handlerMap.add(t)}addTypedRouter(t){this.routerMap.findSync(n=>n===t)||(this.routerMap.add(t),t.addTypedRouter(this))}checkForTypedHandler(t){return!!this.getTypedHandlerForMethod(t)}getTypedHandlerForMethod(t,r=[]){r.push(this);let n;return n=this.handlerMap.findSync(o=>o.method===t),n||this.routerMap.getArray().forEach(o=>{!n&&!r.includes(o)&&(n=o.getTypedHandlerForMethod(t,r))}),n}static{this.defaultRouteOptions={localRequest:!1,skipHooks:!1}}async routeAndAddResponse(t,r={}){let n={...e.defaultRouteOptions,...r};if(t=dn.decodePayloadFromNetwork(t,{typedrouter:this}),t.localData=t.localData||{},t.localData.firstTypedrouter=this,t.method==="##VirtualStream##"){let o=await this.handleStreamTypedRequest(t);return o.localData=null,o}if(t?.correlation?.phase==="request"||n.localRequest){let o=Date.now();n.skipHooks||this.callHook("onIncomingRequest",{correlationId:t.correlation?.id||"unknown",method:t.method,direction:"incoming",phase:"request",timestamp:o,payload:t.request});let i=this.getTypedHandlerForMethod(t.method);return i?(t=await i.addResponse(t),t.localData=null,t=dn.encodePayloadForNetwork(t,{typedrouter:this}),n.skipHooks||this.callHook("onOutgoingResponse",{correlationId:t.correlation?.id||"unknown",method:t.method,direction:"outgoing",phase:"response",timestamp:Date.now(),durationMs:Date.now()-o,payload:t.response,error:t.error?.text}),t):(console.log(`Cannot find handler for methodname ${t.method}`),t.error={text:"There is no available method for this call on the server side",data:{}},t.correlation.phase="response",t.localData=null,t=dn.encodePayloadForNetwork(t,{typedrouter:this}),n.skipHooks||this.callHook("onOutgoingResponse",{correlationId:t.correlation?.id||"unknown",method:t.method,direction:"outgoing",phase:"response",timestamp:Date.now(),durationMs:Date.now()-o,payload:t.response,error:t.error?.text}),t)}else return t?.correlation?.phase==="response"?(n.skipHooks||this.callHook("onIncomingResponse",{correlationId:t.correlation?.id||"unknown",method:t.method,direction:"incoming",phase:"response",timestamp:Date.now(),payload:t.response,error:t.error?.text}),this.fireEventInterestMap.findInterest(t.correlation.id)?.fullfillInterest(t),null):(console.log("received weirdly shaped request"),console.log(t),null)}async handleStreamTypedRequest(t){let r=await this.registeredVirtualStreams.find(async o=>o.streamId===t.request.streamId);if(r)console.log(`success: found relevant virtual stream with id ${t.request.streamId}`);else return console.log(`no relevant virtual stream found for stream with id ${t.request.streamId}`),console.log(this.registeredVirtualStreams.getArray()),t;return await r.handleStreamTr(t)}};var Gk="#############CLOSING BIT#############",dn=class e{static encodePayloadForNetwork(t,r,n,o=[]){return!t||ks.isBufferLike(t)?t:t instanceof e?(!t.side&&r.sendMethod&&(t.side="requesting",t.sendMethod=r.sendMethod),!t.side&&r.typedrouter&&(t.side="responding",t.typedrouter=r.typedrouter,r.typedrouter.registeredVirtualStreams.add(t)),!n.response||o.includes("response")?(t.startKeepAliveLoop(),{_isVirtualStream:!0,streamId:t.streamId}):{_OBMITTED_VIRTUAL_STREAM:!0,reason:"path is under .request: obmitted for deduplication reasons in response cycle."}):Array.isArray(t)?t.map((i,s)=>e.encodePayloadForNetwork(i,r,n||t,o.concat(String(s)))):t!==null&&typeof t=="object"?Object.entries(t).reduce((i,[s,a])=>{let l=o.concat(s);return i[s]=e.encodePayloadForNetwork(a,r,n||t,l),i},{}):t}static decodePayloadFromNetwork(t,r){if(ks.isBufferLike(t)||t instanceof li)return t;if(t!==null&&typeof t=="object"){if(t instanceof Set||t instanceof Map||t instanceof Date||t instanceof RegExp||t instanceof Error||t instanceof Promise||typeof t.then=="function")return t;if(t._isVirtualStream){let n=new e;return n.streamId=t.streamId,!n.side&&r.sendMethod&&(n.side="requesting",n.sendMethod=r.sendMethod),!n.side&&r.typedrouter&&(n.side="responding",n.typedrouter=r.typedrouter,r.typedrouter.registeredVirtualStreams.add(n)),n.startKeepAliveLoop(),n}else if(Array.isArray(t)){let n=[];for(let o of t)n.push(e.decodePayloadFromNetwork(o,r));return n}else return Object.keys(t).reduce((n,o)=>(n[o]=e.decodePayloadFromNetwork(t[o],r),n),{})}else return t}constructor(){this.streamId=mo.uni(),this.keepAlive=!0,this.sendBackpressuredArray=new kt.BackpressuredArray(16),this.receiveBackpressuredArray=new kt.BackpressuredArray(16)}async workOnQueue(){if(this.workingDeferred)return this.workingDeferred.promise;if(this.workingDeferred=fe.defer(),this.side==="requesting"){let t=!this.receiveBackpressuredArray.checkSpaceAvailable(),r=!1,n=!1,o=async()=>{let i=await this.sendMethod({method:"##VirtualStream##",request:{streamId:this.streamId,cycleId:mo.uni(),cycle:"request",mainPurpose:"feedback",next:this.sendBackpressuredArray.data.length>0,backpressure:!this.receiveBackpressuredArray.checkSpaceAvailable()},response:null}).catch(()=>{console.log("stream ended immaturely"),this.keepAlive=!1});i&&i.response&&(n=i.response.backpressure,r=i.response.next)};for(await o();this.sendBackpressuredArray.data.length>0||r;){if(n)for(;n;)console.log("waiting for feedback because of backpressure..."),await be.delayFor(50),await o();let i;this.sendBackpressuredArray.data.length>0&&(i=this.sendBackpressuredArray.shift());let s;s=await this.sendMethod({method:"##VirtualStream##",request:{streamId:this.streamId,cycleId:mo.uni(),cycle:"request",mainPurpose:i?"chunk":"read",backpressure:t,next:this.sendBackpressuredArray.data.length>0,...i?{chunkData:i}:{}},response:null}).catch(()=>(console.log("stream ended immaturely"),this.keepAlive=!1,null)),s&&s.response&&s.response.chunkData&&this.receiveBackpressuredArray.push(s.response.chunkData),n=s&&s.response&&s.response.backpressure,t=!this.receiveBackpressuredArray.checkSpaceAvailable(),r=s&&s.response&&s.response.next}}this.workingDeferred.resolve(),this.workingDeferred=null}async handleStreamTr(t){if(t.request.keepAlive===!0&&this.keepAlive===!0?this.lastKeepAliveEvent=Date.now():t.request.keepAlive===!1&&(this.keepAlive=!1),t.request.mainPurpose==="keepAlive"&&(t.response={streamId:this.streamId,cycleId:t.request.cycleId,cycle:"response",mainPurpose:"keepAlive",keepAlive:this.keepAlive,next:this.sendBackpressuredArray.data.length>0,backpressure:!this.receiveBackpressuredArray.checkSpaceAvailable()}),t.request.mainPurpose==="feedback"&&(t.response={streamId:this.streamId,cycleId:t.request.cycleId,cycle:"response",mainPurpose:"feedback",next:this.sendBackpressuredArray.data.length>0,backpressure:!this.receiveBackpressuredArray.checkSpaceAvailable()}),t.request.mainPurpose==="chunk"){if(this.receiveBackpressuredArray.push(t.request.chunkData),this.sendBackpressuredArray.data.length>0&&t.response.backpressure===!1){let r=this.sendBackpressuredArray.shift();t.response={streamId:this.streamId,cycleId:t.request.cycleId,cycle:"response",mainPurpose:"chunk",next:this.sendBackpressuredArray.data.length>1,backpressure:!this.receiveBackpressuredArray.checkSpaceAvailable(),chunkData:this.sendBackpressuredArray.shift()}}else t.response={streamId:this.streamId,cycleId:t.request.cycleId,cycle:"response",mainPurpose:"feedback",next:this.sendBackpressuredArray.data.length>0,backpressure:!this.receiveBackpressuredArray.checkSpaceAvailable()};t.request=null}return t}async cleanup(){this.typedrouter&&this.typedrouter.registeredVirtualStreams.remove(this)}async startKeepAliveLoop(){if(this.side==="responding")return;await be.delayFor(0),console.log(`starting keepalive loop on side ${this.side}`);let t=0;for(;this.keepAlive;)await this.triggerKeepAlive(),await be.delayFor(1e3);await be.delayFor(1e3),await this.cleanup(),console.log(`cleaned up for stream ${this.streamId}`)}async triggerKeepAlive(){if(this.side==="requesting"){console.log("keepalive sent.");let t=await this.sendMethod({method:"##VirtualStream##",request:{streamId:this.streamId,cycleId:mo.uni(),cycle:"request",mainPurpose:"keepAlive",keepAlive:this.keepAlive},response:null}).catch(()=>{this.keepAlive=!1});t&&t.response&&t.response.keepAlive===!1?this.keepAlive=!1:this.lastKeepAliveEvent=Date.now(),t&&t.response&&t.response.next&&this.workOnQueue()}Date.now()-this.lastKeepAliveEvent>1e4&&(console.log(`closing stream for ${this.streamId}`),this.keepAlive=!1)}async sendData(t){this.sendBackpressuredArray.push(t),this.workOnQueue(),await this.sendBackpressuredArray.waitForSpace()}async fetchData(){return this.receiveBackpressuredArray.hasSpace,await this.receiveBackpressuredArray.waitForItems(),this.receiveBackpressuredArray.shift()}async readFromWebstream(t,r=!0){let n=t.getReader(),o=!1;for(;!o;){let{value:i,done:s}=await n.read();i&&await this.sendData(i),o=s}r&&await this.close(!0)}async writeToWebstream(t){let r=t.getWriter();for(;this.keepAlive||this.receiveBackpressuredArray.checkHasItems();){let n=await this.fetchData();if(n===Gk){r.releaseLock(),await t.close();break}await r.write(n)}}async close(t=!1){t&&this.sendData(Gk),this.keepAlive=!1}};var gh=class{constructor(t){if(t.postMethodWithTypedRouter&&!t.typedRouterRef)throw new Error("you have to specify a typedrouter when using postmethod with typedrouter");this.options=t}async post(t){let r;this.options.typedRouterRef&&(r=await this.options.typedRouterRef.fireEventInterestMap.addInterest(t.correlation.id,t));let o=await(this.options.postMethod||this.options.postMethodWithTypedRouter)(t),i;return r?i=await r.interestFullfilled:o?i=o:i=t,i}};var V3=new ai.WebRequest;function Qk(e,t){try{li.globalHooks[e]?.(t)}catch(r){console.error(`TypedRequest hook error (${e}):`,r)}}var Za=class{constructor(t,r){this.skipHooks=!1,typeof t=="string"?this.urlEndPoint=t:this.typedTarget=t,this.method=r}async fire(t,r=!1){let n=Date.now(),o={method:this.method,request:t,response:null,correlation:{id:mo.uni(),phase:"request"}};o=dn.encodePayloadForNetwork(o,{sendMethod:s=>this.postTrObject(s)}),this.skipHooks||Qk("onOutgoingRequest",{correlationId:o.correlation.id,method:this.method,direction:"outgoing",phase:"request",timestamp:n,payload:t});let i;return i=await this.postTrObject(o,r),i=dn.decodePayloadFromNetwork(i,{sendMethod:s=>this.postTrObject(s)}),this.skipHooks||Qk("onIncomingResponse",{correlationId:o.correlation.id,method:this.method,direction:"incoming",phase:"response",timestamp:Date.now(),durationMs:Date.now()-n,payload:i?.response,error:i?.error?.text}),i.response}async postTrObject(t,r=!1){let n;if(this.urlEndPoint?n=await V3.postJson(this.urlEndPoint,t,r):n=await this.typedTarget.post(t),n.error){if(console.error(`method: >>${this.method}<< got an ERROR: "${n.error.text}" with data ${JSON.stringify(n.error.data,null,2)}`),!n.retry)throw new Nn(n.error.text,n.error.data);return null}return n.retry&&(console.log(`server requested retry for the following reason: ${n.retry.reason}`),await be.delayFor(n.retry.waitForMs),n=await this.postTrObject(t,r)),n}};function Xk(e){return e&&typeof e.then=="function"}var Jk=Promise.resolve(!1),FDe=Promise.resolve(!0),pn=Promise.resolve();function Ud(e,t){return e||(e=0),new Promise(function(r){return setTimeout(function(){return r(t)},e)})}function Zk(e,t){return Math.floor(Math.random()*(t-e+1)+e)}function Ka(){return Math.random().toString(36).substring(2)}var xh=0;function Pn(){var e=Date.now()*1e3;return e<=xh&&(e=xh+1),xh=e,e}function RDe(){return typeof navigator<"u"&&typeof navigator.locks<"u"&&typeof navigator.locks.request=="function"}var G3=Pn,Q3="native";function X3(e){var t={time:Pn(),messagesCallback:null,bc:new BroadcastChannel(e),subFns:[]};return t.bc.onmessage=function(r){t.messagesCallback&&t.messagesCallback(r.data)},t}function J3(e){e.bc.close(),e.subFns=[]}function Z3(e,t){try{return e.bc.postMessage(t,!1),pn}catch(r){return Promise.reject(r)}}function K3(e,t){e.messagesCallback=t}function eF(){if(typeof globalThis<"u"&&globalThis.Deno&&globalThis.Deno.args)return!0;if((typeof window<"u"||typeof self<"u")&&typeof BroadcastChannel=="function"){if(BroadcastChannel._pubkey)throw new Error("BroadcastChannel: Do not overwrite window.BroadcastChannel with this module, this is not a polyfill");return!0}else return!1}function tF(){return 150}var Kk={create:X3,close:J3,onMessage:K3,postMessage:Z3,canBeUsed:eF,type:Q3,averageResponseTime:tF,microSeconds:G3};var Is=class{ttl;map=new Map;_to=!1;constructor(t){this.ttl=t}has(t){let r=this.map.get(t);return typeof r>"u"?!1:r<yh()-this.ttl?(this.map.delete(t),!1):!0}add(t){this.map.delete(t),this.map.set(t,yh()),this._to||(this._to=!0,setTimeout(()=>{this._to=!1,rF(this)},0))}clear(){this.map.clear()}};function rF(e){let t=yh()-e.ttl,r=e.map[Symbol.iterator]();for(;;){let n=r.next().value;if(!n)break;let o=n[0];if(n[1]<t)e.map.delete(o);else break}}function yh(){return Date.now()}function ci(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=JSON.parse(JSON.stringify(e));return typeof t.webWorkerSupport>"u"&&(t.webWorkerSupport=!0),t.idb||(t.idb={}),t.idb.ttl||(t.idb.ttl=1e3*45),t.idb.fallbackInterval||(t.idb.fallbackInterval=150),e.idb&&typeof e.idb.onclose=="function"&&(t.idb.onclose=e.idb.onclose),t.localstorage||(t.localstorage={}),t.localstorage.removeTimeout||(t.localstorage.removeTimeout=1e3*60),e.methods&&(t.methods=e.methods),t.node||(t.node={}),t.node.ttl||(t.node.ttl=1e3*60*2),t.node.maxParallelWrites||(t.node.maxParallelWrites=2048),typeof t.node.useFastPath>"u"&&(t.node.useFastPath=!0),t}var nF=Pn,oF="pubkey.broadcast-channel-0-",Yr="messages",el={durability:"relaxed"},iF="idb";function eT(){if(typeof indexedDB<"u")return indexedDB;if(typeof window<"u"){if(typeof window.mozIndexedDB<"u")return window.mozIndexedDB;if(typeof window.webkitIndexedDB<"u")return window.webkitIndexedDB;if(typeof window.msIndexedDB<"u")return window.msIndexedDB}return!1}function jd(e){e.commit&&e.commit()}function sF(e){var t=eT(),r=oF+e,n=t.open(r);return n.onupgradeneeded=function(o){var i=o.target.result;i.createObjectStore(Yr,{keyPath:"id",autoIncrement:!0})},new Promise(function(o,i){n.onerror=function(s){return i(s)},n.onsuccess=function(){o(n.result)}})}function aF(e,t,r){var n=Date.now(),o={uuid:t,time:n,data:r},i=e.transaction([Yr],"readwrite",el);return new Promise(function(s,a){i.oncomplete=function(){return s()},i.onerror=function(c){return a(c)};var l=i.objectStore(Yr);l.add(o),jd(i)})}function VDe(e){var t=e.transaction(Yr,"readonly",el),r=t.objectStore(Yr),n=[];return new Promise(function(o){r.openCursor().onsuccess=function(i){var s=i.target.result;s?(n.push(s.value),s.continue()):(jd(t),o(n))}})}function lF(e,t){var r=e.transaction(Yr,"readonly",el),n=r.objectStore(Yr),o=[],i=IDBKeyRange.bound(t+1,1/0);if(n.getAll){var s=n.getAll(i);return new Promise(function(l,c){s.onerror=function(u){return c(u)},s.onsuccess=function(u){l(u.target.result)}})}function a(){try{return i=IDBKeyRange.bound(t+1,1/0),n.openCursor(i)}catch{return n.openCursor()}}return new Promise(function(l,c){var u=a();u.onerror=function(d){return c(d)},u.onsuccess=function(d){var p=d.target.result;p?p.value.id<t+1?p.continue(t+1):(o.push(p.value),p.continue()):(jd(r),l(o))}})}function cF(e,t){if(e.closed)return Promise.resolve([]);var r=e.db.transaction(Yr,"readwrite",el),n=r.objectStore(Yr);return Promise.all(t.map(function(o){var i=n.delete(o);return new Promise(function(s){i.onsuccess=function(){return s()}})}))}function uF(e,t){var r=Date.now()-t,n=e.transaction(Yr,"readonly",el),o=n.objectStore(Yr),i=[];return new Promise(function(s){o.openCursor().onsuccess=function(a){var l=a.target.result;if(l){var c=l.value;c.time<r?(i.push(c),l.continue()):(jd(n),s(i))}else s(i)}})}function dF(e){return uF(e.db,e.options.idb.ttl).then(function(t){return cF(e,t.map(function(r){return r.id}))})}function pF(e,t){return t=ci(t),sF(e).then(function(r){var n={closed:!1,lastCursorId:0,channelName:e,options:t,uuid:Ka(),eMIs:new Is(t.idb.ttl*2),writeBlockPromise:pn,messagesCallback:null,readQueuePromises:[],db:r};return r.onclose=function(){n.closed=!0,t.idb.onclose&&t.idb.onclose()},tT(n),n})}function tT(e){e.closed||rT(e).then(function(){return Ud(e.options.idb.fallbackInterval)}).then(function(){return tT(e)})}function fF(e,t){return!(e.uuid===t.uuid||t.eMIs.has(e.id)||e.data.time<t.messagesCallbackTime)}function rT(e){return e.closed?pn:e.messagesCallback?lF(e.db,e.lastCursorId).then(function(t){var r=t.filter(function(n){return!!n}).map(function(n){return n.id>e.lastCursorId&&(e.lastCursorId=n.id),n}).filter(function(n){return fF(n,e)}).sort(function(n,o){return n.time-o.time});return r.forEach(function(n){e.messagesCallback&&(e.eMIs.add(n.id),e.messagesCallback(n.data))}),pn}):pn}function mF(e){e.closed=!0,e.db.close()}function hF(e,t){return e.writeBlockPromise=e.writeBlockPromise.then(function(){return aF(e.db,e.uuid,t)}).then(function(){Zk(0,10)===0&&dF(e)}),e.writeBlockPromise}function gF(e,t,r){e.messagesCallbackTime=r,e.messagesCallback=t,rT(e)}function xF(){return!!eT()}function yF(e){return e.idb.fallbackInterval*2}var nT={create:pF,close:mF,onMessage:gF,postMessage:hF,canBeUsed:xF,type:iF,averageResponseTime:yF,microSeconds:nF};var bF=Pn,vF="pubkey.broadcastChannel-",wF="localstorage";function oT(){var e;if(typeof window>"u")return null;try{e=window.localStorage,e=window["ie8-eventlistener/storage"]||window.localStorage}catch{}return e}function iT(e){return vF+e}function SF(e,t){return new Promise(function(r){Ud().then(function(){var n=iT(e.channelName),o={token:Ka(),time:Date.now(),data:t,uuid:e.uuid},i=JSON.stringify(o);oT().setItem(n,i);var s=document.createEvent("Event");s.initEvent("storage",!0,!0),s.key=n,s.newValue=i,window.dispatchEvent(s),r()})})}function kF(e,t){var r=iT(e),n=function(i){i.key===r&&t(JSON.parse(i.newValue))};return window.addEventListener("storage",n),n}function TF(e){window.removeEventListener("storage",e)}function DF(e,t){if(t=ci(t),!sT())throw new Error("BroadcastChannel: localstorage cannot be used");var r=Ka(),n=new Is(t.localstorage.removeTimeout),o={channelName:e,uuid:r,eMIs:n};return o.listener=kF(e,function(i){o.messagesCallback&&i.uuid!==r&&(!i.token||n.has(i.token)||i.data.time&&i.data.time<o.messagesCallbackTime||(n.add(i.token),o.messagesCallback(i.data)))}),o}function CF(e){TF(e.listener)}function EF(e,t,r){e.messagesCallbackTime=r,e.messagesCallback=t}function sT(){var e=oT();if(!e)return!1;try{var t="__broadcastchannel_check";e.setItem(t,"works"),e.removeItem(t)}catch{return!1}return!0}function MF(){var e=120,t=navigator.userAgent.toLowerCase();return t.includes("safari")&&!t.includes("chrome")?e*2:e}var aT={create:DF,close:CF,onMessage:EF,postMessage:SF,canBeUsed:sT,type:wF,averageResponseTime:MF,microSeconds:bF};var lT=Pn,IF="simulate",bh=new Set;function $F(e){var t={time:lT(),name:e,messagesCallback:null};return bh.add(t),t}function AF(e){bh.delete(e)}var cT=5;function _F(e,t){return new Promise(function(r){return setTimeout(function(){var n=Array.from(bh);n.forEach(function(o){o.name===e.name&&o!==e&&o.messagesCallback&&o.time<t.time&&o.messagesCallback(t)}),r()},cT)})}function OF(e,t){e.messagesCallback=t}function LF(){return!0}function NF(){return cT}var uT={create:$F,close:AF,onMessage:OF,postMessage:_F,canBeUsed:LF,type:IF,averageResponseTime:NF,microSeconds:lT};var dT=[Kk,nT,aT];function vh(e){var t=[].concat(e.methods,dT).filter(Boolean);if(e.type){if(e.type==="simulate")return uT;var r=t.find(function(o){return o.type===e.type});if(r)return r;throw new Error("method-type "+e.type+" not found")}e.webWorkerSupport||(t=t.filter(function(o){return o.type!=="idb"}));var n=t.find(function(o){return o.canBeUsed()});if(n)return n;throw new Error("No usable method found in "+JSON.stringify(dT.map(function(o){return o.type})))}var Sh=new Set,PF=0,ui=function(t,r){this.id=PF++,Sh.add(this),this.name=t,wh&&(r=wh),this.options=ci(r),this.method=vh(this.options),this._iL=!1,this._onML=null,this._addEL={message:[],internal:[]},this._uMP=new Set,this._befC=[],this._prepP=null,BF(this)};ui._pubkey=!0;function FF(e){e=ci(e);var t=vh(e);return t.type==="node"?t.clearNodeFolder().then(function(){return!0}):Jk}var wh;function RF(e){wh=e}ui.prototype={postMessage:function(t){if(this.closed)throw new Error("BroadcastChannel.postMessage(): Cannot post message after channel has closed "+JSON.stringify(t));return pT(this,"message",t)},postInternal:function(t){return pT(this,"internal",t)},set onmessage(e){var t=this.method.microSeconds(),r={time:t,fn:e};hT(this,"message",this._onML),e&&typeof e=="function"?(this._onML=r,mT(this,"message",r)):this._onML=null},addEventListener:function(t,r){var n=this.method.microSeconds(),o={time:n,fn:r};mT(this,t,o)},removeEventListener:function(t,r){var n=this._addEL[t].find(function(o){return o.fn===r});hT(this,t,n)},close:function(){var t=this;if(!this.closed){Sh.delete(this),this.closed=!0;var r=this._prepP?this._prepP:pn;return this._onML=null,this._addEL.message=[],r.then(function(){return Promise.all(Array.from(t._uMP))}).then(function(){return Promise.all(t._befC.map(function(n){return n()}))}).then(function(){return t.method.close(t._state)})}},get type(){return this.method.type},get isClosed(){return this.closed}};function pT(e,t,r){var n=e.method.microSeconds(),o={time:n,type:t,data:r},i=e._prepP?e._prepP:pn;return i.then(function(){var s=e.method.postMessage(e._state,o);return e._uMP.add(s),s.catch().then(function(){return e._uMP.delete(s)}),s})}function BF(e){var t=e.method.create(e.name,e.options);Xk(t)?(e._prepP=t,t.then(function(r){e._state=r})):e._state=t}function fT(e){return e._addEL.message.length>0||e._addEL.internal.length>0}function mT(e,t,r){e._addEL[t].push(r),zF(e)}function hT(e,t,r){e._addEL[t]=e._addEL[t].filter(function(n){return n!==r}),HF(e)}function zF(e){if(!e._iL&&fT(e)){var t=function(o){e._addEL[o.type].forEach(function(i){o.time>=i.time&&i.fn(o.data)})},r=e.method.microSeconds();e._prepP?e._prepP.then(function(){e._iL=!0,e.method.onMessage(e._state,t,r)}):(e._iL=!0,e.method.onMessage(e._state,t,r))}}function HF(e){if(e._iL&&!fT(e)){e._iL=!1;var t=e.method.microSeconds();e.method.onMessage(e._state,null,t)}}var kh=globalThis.BroadcastChannel;kh||(kh=ui);var Th=class{constructor(){this.broadcastChannel=new kh("dees-comms"),this.typedrouter=new Kt.TypedRouter,this.typedtarget=new Kt.TypedTarget({postMethodWithTypedRouter:async t=>{this.postMessage(t)},typedRouterRef:this.typedrouter}),this.broadcastChannel.onmessage=async t=>{let r=t.method?t:t.data;console.log(JSON.stringify(r));let n=await this.typedrouter.routeAndAddResponse(r,{skipHooks:!0});n&&!n.error&&this.postMessage(n)}}createTypedRequest(t){return new Kt.TypedRequest(this.typedtarget,t)}async postMessage(t){this.broadcastChannel.postMessage(t)}async createTypedHandler(t,r){this.typedrouter.addTypedHandler(new Kt.TypedHandler(t,r))}};var ta={};he(ta,{SmartMarkdown:()=>Fx});function Fh(e){if(e)throw e}function ll(e){if(typeof e!="object"||e===null)return!1;let t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function Rh(){let e=[],t={run:r,use:n};return t;function r(...o){let i=-1,s=o.pop();if(typeof s!="function")throw new TypeError("Expected function as last argument, not "+s);a(null,...o);function a(l,...c){let u=e[++i],d=-1;if(l){s(l);return}for(;++d<o.length;)(c[d]===null||c[d]===void 0)&&(c[d]=o[d]);o=c,u?bD(u,a)(...c):s(null,...c)}}function n(o){if(typeof o!="function")throw new TypeError("Expected `middelware` to be a function, not "+o);return e.push(o),t}}function bD(e,t){let r;return n;function n(...s){let a=e.length>s.length,l;a&&s.push(o);try{l=e.apply(this,s)}catch(c){let u=c;if(a&&r)throw u;return o(u)}a||(l&&l.then&&typeof l.then=="function"?l.then(i,o):l instanceof Error?o(l):i(l))}function o(s,...a){r||(r=!0,t(s,...a))}function i(s){o(null,s)}}function xo(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?vD(e.position):"start"in e||"end"in e?vD(e):"line"in e||"column"in e?Bh(e):""}function Bh(e){return wD(e&&e.line)+":"+wD(e&&e.column)}function vD(e){return Bh(e&&e.start)+"-"+Bh(e&&e.end)}function wD(e){return e&&typeof e=="number"?e:1}var It=class extends Error{constructor(t,r,n){super(),typeof r=="string"&&(n=r,r=void 0);let o="",i={},s=!1;if(r&&("line"in r&&"column"in r?i={place:r}:"start"in r&&"end"in r?i={place:r}:"type"in r?i={ancestors:[r],place:r.position}:i={...r}),typeof t=="string"?o=t:!i.cause&&t&&(s=!0,o=t.message,i.cause=t),!i.ruleId&&!i.source&&typeof n=="string"){let l=n.indexOf(":");l===-1?i.ruleId=n:(i.source=n.slice(0,l),i.ruleId=n.slice(l+1))}if(!i.place&&i.ancestors&&i.ancestors){let l=i.ancestors[i.ancestors.length-1];l&&(i.place=l.position)}let a=i.place&&"start"in i.place?i.place.start:i.place;this.ancestors=i.ancestors||void 0,this.cause=i.cause||void 0,this.column=a?a.column:void 0,this.fatal=void 0,this.file="",this.message=o,this.line=a?a.line:void 0,this.name=xo(i.place)||"1:1",this.place=i.place||void 0,this.reason=this.message,this.ruleId=i.ruleId||void 0,this.source=i.source||void 0,this.stack=s&&i.cause&&typeof i.cause.stack=="string"?i.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}};It.prototype.file="",It.prototype.name="",It.prototype.reason="",It.prototype.message="",It.prototype.stack="",It.prototype.column=void 0,It.prototype.line=void 0,It.prototype.ancestors=void 0,It.prototype.cause=void 0,It.prototype.fatal=void 0,It.prototype.place=void 0,It.prototype.ruleId=void 0,It.prototype.source=void 0;var Wr={basename:CR,dirname:ER,extname:MR,join:IR,sep:"/"};function CR(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');cl(e);let r=0,n=-1,o=e.length,i;if(t===void 0||t.length===0||t.length>e.length){for(;o--;)if(e.codePointAt(o)===47){if(i){r=o+1;break}}else n<0&&(i=!0,n=o+1);return n<0?"":e.slice(r,n)}if(t===e)return"";let s=-1,a=t.length-1;for(;o--;)if(e.codePointAt(o)===47){if(i){r=o+1;break}}else s<0&&(i=!0,s=o+1),a>-1&&(e.codePointAt(o)===t.codePointAt(a--)?a<0&&(n=o):(a=-1,n=s));return r===n?n=s:n<0&&(n=e.length),e.slice(r,n)}function ER(e){if(cl(e),e.length===0)return".";let t=-1,r=e.length,n;for(;--r;)if(e.codePointAt(r)===47){if(n){t=r;break}}else n||(n=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function MR(e){cl(e);let t=e.length,r=-1,n=0,o=-1,i=0,s;for(;t--;){let a=e.codePointAt(t);if(a===47){if(s){n=t+1;break}continue}r<0&&(s=!0,r=t+1),a===46?o<0?o=t:i!==1&&(i=1):o>-1&&(i=-1)}return o<0||r<0||i===0||i===1&&o===r-1&&o===n+1?"":e.slice(o,r)}function IR(...e){let t=-1,r;for(;++t<e.length;)cl(e[t]),e[t]&&(r=r===void 0?e[t]:r+"/"+e[t]);return r===void 0?".":$R(r)}function $R(e){cl(e);let t=e.codePointAt(0)===47,r=AR(e,!t);return r.length===0&&!t&&(r="."),r.length>0&&e.codePointAt(e.length-1)===47&&(r+="/"),t?"/"+r:r}function AR(e,t){let r="",n=0,o=-1,i=0,s=-1,a,l;for(;++s<=e.length;){if(s<e.length)a=e.codePointAt(s);else{if(a===47)break;a=47}if(a===47){if(!(o===s-1||i===1))if(o!==s-1&&i===2){if(r.length<2||n!==2||r.codePointAt(r.length-1)!==46||r.codePointAt(r.length-2)!==46){if(r.length>2){if(l=r.lastIndexOf("/"),l!==r.length-1){l<0?(r="",n=0):(r=r.slice(0,l),n=r.length-1-r.lastIndexOf("/")),o=s,i=0;continue}}else if(r.length>0){r="",n=0,o=s,i=0;continue}}t&&(r=r.length>0?r+"/..":"..",n=2)}else r.length>0?r+="/"+e.slice(o+1,s):r=e.slice(o+1,s),n=s-o-1;o=s,i=0}else a===46&&i>-1?i++:i=-1}return r}function cl(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}var SD={cwd:_R};function _R(){return"/"}function Fs(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function kD(e){if(typeof e=="string")e=new URL(e);else if(!Fs(e)){let t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if(e.protocol!=="file:"){let t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return OR(e)}function OR(e){if(e.hostname!==""){let n=new TypeError('File URL host must be "localhost" or empty on darwin');throw n.code="ERR_INVALID_FILE_URL_HOST",n}let t=e.pathname,r=-1;for(;++r<t.length;)if(t.codePointAt(r)===37&&t.codePointAt(r+1)===50){let n=t.codePointAt(r+2);if(n===70||n===102){let o=new TypeError("File URL path must not include encoded / characters");throw o.code="ERR_INVALID_FILE_URL_PATH",o}}return decodeURIComponent(t)}var zh=["history","path","basename","stem","extname","dirname"],ul=class{constructor(t){let r;t?Fs(t)?r={path:t}:typeof t=="string"||LR(t)?r={value:t}:r=t:r={},this.cwd="cwd"in r?"":SD.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let n=-1;for(;++n<zh.length;){let i=zh[n];i in r&&r[i]!==void 0&&r[i]!==null&&(this[i]=i==="history"?[...r[i]]:r[i])}let o;for(o in r)zh.includes(o)||(this[o]=r[o])}get basename(){return typeof this.path=="string"?Wr.basename(this.path):void 0}set basename(t){Uh(t,"basename"),Hh(t,"basename"),this.path=Wr.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?Wr.dirname(this.path):void 0}set dirname(t){TD(this.basename,"dirname"),this.path=Wr.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?Wr.extname(this.path):void 0}set extname(t){if(Hh(t,"extname"),TD(this.dirname,"extname"),t){if(t.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(t.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=Wr.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){Fs(t)&&(t=kD(t)),Uh(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?Wr.basename(this.path,this.extname):void 0}set stem(t){Uh(t,"stem"),Hh(t,"stem"),this.path=Wr.join(this.dirname||"",t+(this.extname||""))}fail(t,r,n){let o=this.message(t,r,n);throw o.fatal=!0,o}info(t,r,n){let o=this.message(t,r,n);return o.fatal=void 0,o}message(t,r,n){let o=new It(t,r,n);return this.path&&(o.name=this.path+":"+o.name,o.file=this.path),o.fatal=!1,this.messages.push(o),o}toString(t){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(t||void 0).decode(this.value)}};function Hh(e,t){if(e&&e.includes(Wr.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+Wr.sep+"`")}function Uh(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function TD(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function LR(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}var DD=(function(e){let n=this.constructor.prototype,o=n[e],i=function(){return o.apply(i,arguments)};return Object.setPrototypeOf(i,n),i});var rp=Qt(yD(),1),NR={}.hasOwnProperty,jh=class e extends DD{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=Rh()}copy(){let t=new e,r=-1;for(;++r<this.attachers.length;){let n=this.attachers[r];t.use(...n)}return t.data((0,rp.default)(!0,{},this.namespace)),t}data(t,r){return typeof t=="string"?arguments.length===2?(Wh("data",this.frozen),this.namespace[t]=r,this):NR.call(this.namespace,t)&&this.namespace[t]||void 0:t?(Wh("data",this.frozen),this.namespace=t,this):this.namespace}freeze(){if(this.frozen)return this;let t=this;for(;++this.freezeIndex<this.attachers.length;){let[r,...n]=this.attachers[this.freezeIndex];if(n[0]===!1)continue;n[0]===!0&&(n[0]=void 0);let o=r.call(t,...n);typeof o=="function"&&this.transformers.use(o)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(t){this.freeze();let r=tp(t),n=this.parser||this.Parser;return qh("parse",n),n(String(r),r)}process(t,r){let n=this;return this.freeze(),qh("process",this.parser||this.Parser),Yh("process",this.compiler||this.Compiler),r?o(void 0,r):new Promise(o);function o(i,s){let a=tp(t),l=n.parse(a);n.run(l,a,function(u,d,p){if(u||!d||!p)return c(u);let f=d,m=n.stringify(f,p);FR(m)?p.value=m:p.result=m,c(u,p)});function c(u,d){u||!d?s(u):i?i(d):r(void 0,d)}}}processSync(t){let r=!1,n;return this.freeze(),qh("processSync",this.parser||this.Parser),Yh("processSync",this.compiler||this.Compiler),this.process(t,o),ED("processSync","process",r),n;function o(i,s){r=!0,Fh(i),n=s}}run(t,r,n){CD(t),this.freeze();let o=this.transformers;return!n&&typeof r=="function"&&(n=r,r=void 0),n?i(void 0,n):new Promise(i);function i(s,a){let l=tp(r);o.run(t,l,c);function c(u,d,p){let f=d||t;u?a(u):s?s(f):n(void 0,f,p)}}}runSync(t,r){let n=!1,o;return this.run(t,r,i),ED("runSync","run",n),o;function i(s,a){Fh(s),o=a,n=!0}}stringify(t,r){this.freeze();let n=tp(r),o=this.compiler||this.Compiler;return Yh("stringify",o),CD(t),o(t,n)}use(t,...r){let n=this.attachers,o=this.namespace;if(Wh("use",this.frozen),t!=null)if(typeof t=="function")l(t,r);else if(typeof t=="object")Array.isArray(t)?a(t):s(t);else throw new TypeError("Expected usable value, not `"+t+"`");return this;function i(c){if(typeof c=="function")l(c,[]);else if(typeof c=="object")if(Array.isArray(c)){let[u,...d]=c;l(u,d)}else s(c);else throw new TypeError("Expected usable value, not `"+c+"`")}function s(c){if(!("plugins"in c)&&!("settings"in c))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");a(c.plugins),c.settings&&(o.settings=(0,rp.default)(!0,o.settings,c.settings))}function a(c){let u=-1;if(c!=null)if(Array.isArray(c))for(;++u<c.length;){let d=c[u];i(d)}else throw new TypeError("Expected a list of plugins, not `"+c+"`")}function l(c,u){let d=-1,p=-1;for(;++d<n.length;)if(n[d][0]===c){p=d;break}if(p===-1)n.push([c,...u]);else if(u.length>0){let[f,...m]=u,g=n[p][1];ll(g)&&ll(f)&&(f=(0,rp.default)(!0,g,f)),n[p]=[c,f,...m]}}}},dl=new jh().freeze();function qh(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function Yh(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function Wh(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function CD(e){if(!ll(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function ED(e,t,r){if(!r)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function tp(e){return PR(e)?e:new ul(e)}function PR(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function FR(e){return typeof e=="string"||RR(e)}function RR(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}function Bs(e,t){let r=String(e);if(typeof t!="string")throw new TypeError("Expected character");let n=0,o=r.indexOf(t);for(;o!==-1;)n++,o=r.indexOf(t,o+t.length);return n}var Dt=yo(/[A-Za-z]/),st=yo(/[\dA-Za-z]/),MD=yo(/[#-'*+\--9=?A-Z^-~]/);function yi(e){return e!==null&&(e<32||e===127)}var pl=yo(/\d/),ID=yo(/[\dA-Fa-f]/),$D=yo(/[!-/:-@[-`{-~]/);function Z(e){return e!==null&&e<-2}function Ce(e){return e!==null&&(e<0||e===32)}function ae(e){return e===-2||e===-1||e===32}var bi=yo(/\p{P}|\p{S}/u),hn=yo(/\s/);function yo(e){return t;function t(r){return r!==null&&r>-1&&e.test(String.fromCharCode(r))}}var _D=(function(e,t,r,n,o){let i=Rn(t);if(r!=null&&(typeof r!="number"||r<0||r===Number.POSITIVE_INFINITY))throw new Error("Expected positive finite index");if(n!=null&&(!_D(n)||!n.children))throw new Error("Expected parent node");if(n==null!=(r==null))throw new Error("Expected both parent and index");return AD(e)?i.call(o,e,r,n):!1}),Rn=(function(e){if(e==null)return UR;if(typeof e=="function")return np(e);if(typeof e=="object")return Array.isArray(e)?BR(e):zR(e);if(typeof e=="string")return HR(e);throw new Error("Expected function, string, or object as test")});function BR(e){let t=[],r=-1;for(;++r<e.length;)t[r]=Rn(e[r]);return np(n);function n(...o){let i=-1;for(;++i<t.length;)if(t[i].apply(this,o))return!0;return!1}}function zR(e){let t=e;return np(r);function r(n){let o=n,i;for(i in e)if(o[i]!==t[i])return!1;return!0}}function HR(e){return np(t);function t(r){return r&&r.type===e}}function np(e){return t;function t(r,n,o){return!!(AD(r)&&e.call(this,r,typeof n=="number"?n:void 0,o||void 0))}}function UR(){return!0}function AD(e){return e!==null&&typeof e=="object"&&"type"in e}var OD=[],op=!0,vi=!1,ip="skip";function fl(e,t,r,n){let o;typeof t=="function"&&typeof r!="function"?(n=r,r=t):o=t;let i=Rn(o),s=n?-1:1;a(e,void 0,[])();function a(l,c,u){let d=l&&typeof l=="object"?l:{};if(typeof d.type=="string"){let f=typeof d.tagName=="string"?d.tagName:typeof d.name=="string"?d.name:void 0;Object.defineProperty(p,"name",{value:"node ("+(l.type+(f?"<"+f+">":""))+")"})}return p;function p(){let f=OD,m,g,x;if((!t||i(l,c,u[u.length-1]||void 0))&&(f=jR(r(l,u)),f[0]===vi))return f;if("children"in l&&l.children){let y=l;if(y.children&&f[0]!==ip)for(g=(n?y.children.length:-1)+s,x=u.concat(y);g>-1&&g<y.children.length;){let T=y.children[g];if(m=a(T,g,x)(),m[0]===vi)return m;g=typeof m[1]=="number"?m[1]:g+s}}return f}}}function jR(e){return Array.isArray(e)?e:typeof e=="number"?[op,e]:e==null?OD:[e]}function Vh(e,t,r){let o=Rn((r||{}).ignore||[]),i=qR(t),s=-1;for(;++s<i.length;)fl(e,"text",a);function a(c,u){let d=-1,p;for(;++d<u.length;){let f=u[d],m=p?p.children:void 0;if(o(f,m?m.indexOf(f):void 0,p))return;p=f}if(p)return l(c,u)}function l(c,u){let d=u[u.length-1],p=i[s][0],f=i[s][1],m=0,x=d.children.indexOf(c),y=!1,T=[];p.lastIndex=0;let D=p.exec(c.value);for(;D;){let H=D.index,j={index:D.index,input:D.input,stack:[...u,c]},M=f(...D,j);if(typeof M=="string"&&(M=M.length>0?{type:"text",value:M}:void 0),M===!1?p.lastIndex=H+1:(m!==H&&T.push({type:"text",value:c.value.slice(m,H)}),Array.isArray(M)?T.push(...M):M&&T.push(M),m=H+D[0].length,y=!0),!p.global)break;D=p.exec(c.value)}return y?(m<c.value.length&&T.push({type:"text",value:c.value.slice(m)}),d.children.splice(x,1,...T)):T=[c],x+T.length}}function qR(e){let t=[];if(!Array.isArray(e))throw new TypeError("Expected find and replace tuple or list of tuples");let r=!e[0]||Array.isArray(e[0])?e:[e],n=-1;for(;++n<r.length;){let o=r[n];t.push([YR(o[0]),WR(o[1])])}return t}function YR(e){return typeof e=="string"?new RegExp(Vo(e),"g"):e}function WR(e){return typeof e=="function"?e:function(){return e}}var Gh="phrasing",Qh=["autolink","link","image","label"];function Jh(){return{transforms:[ZR],enter:{literalAutolink:VR,literalAutolinkEmail:Xh,literalAutolinkHttp:Xh,literalAutolinkWww:Xh},exit:{literalAutolink:JR,literalAutolinkEmail:XR,literalAutolinkHttp:GR,literalAutolinkWww:QR}}}function Zh(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:Gh,notInConstruct:Qh},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:Gh,notInConstruct:Qh},{character:":",before:"[ps]",after:"\\/",inConstruct:Gh,notInConstruct:Qh}]}}function VR(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function Xh(e){this.config.enter.autolinkProtocol.call(this,e)}function GR(e){this.config.exit.autolinkProtocol.call(this,e)}function QR(e){this.config.exit.data.call(this,e);let t=this.stack[this.stack.length-1];t.type,t.url="http://"+this.sliceSerialize(e)}function XR(e){this.config.exit.autolinkEmail.call(this,e)}function JR(e){this.exit(e)}function ZR(e){Vh(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,KR],[/(?<=^|\s|\p{P}|\p{S})([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/gu,e9]],{ignore:["link","linkReference"]})}function KR(e,t,r,n,o){let i="";if(!LD(o)||(/^w/i.test(t)&&(r=t+r,t="",i="http://"),!t9(r)))return!1;let s=r9(r+n);if(!s[0])return!1;let a={type:"link",title:null,url:i+t+s[0],children:[{type:"text",value:t+s[0]}]};return s[1]?[a,{type:"text",value:s[1]}]:a}function e9(e,t,r,n){return!LD(n,!0)||/[-\d_]$/.test(r)?!1:{type:"link",title:null,url:"mailto:"+t+"@"+r,children:[{type:"text",value:t+"@"+r}]}}function t9(e){let t=e.split(".");return!(t.length<2||t[t.length-1]&&(/_/.test(t[t.length-1])||!/[a-zA-Z\d]/.test(t[t.length-1]))||t[t.length-2]&&(/_/.test(t[t.length-2])||!/[a-zA-Z\d]/.test(t[t.length-2])))}function r9(e){let t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let r=t[0],n=r.indexOf(")"),o=Bs(e,"("),i=Bs(e,")");for(;n!==-1&&o>i;)e+=r.slice(0,n+1),r=r.slice(n+1),n=r.indexOf(")"),i++;return[e,r]}function LD(e,t){let r=e.input.charCodeAt(e.index-1);return(e.index===0||hn(r)||bi(r))&&(!t||r!==47)}function at(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}ND.peek=d9;function n9(){this.buffer()}function o9(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function i9(){this.buffer()}function s9(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function a9(e){let t=this.resume(),r=this.stack[this.stack.length-1];r.type,r.identifier=at(this.sliceSerialize(e)).toLowerCase(),r.label=t}function l9(e){this.exit(e)}function c9(e){let t=this.resume(),r=this.stack[this.stack.length-1];r.type,r.identifier=at(this.sliceSerialize(e)).toLowerCase(),r.label=t}function u9(e){this.exit(e)}function d9(){return"["}function ND(e,t,r,n){let o=r.createTracker(n),i=o.move("[^"),s=r.enter("footnoteReference"),a=r.enter("reference");return i+=o.move(r.safe(r.associationId(e),{after:"]",before:i})),a(),s(),i+=o.move("]"),i}function Kh(){return{enter:{gfmFootnoteCallString:n9,gfmFootnoteCall:o9,gfmFootnoteDefinitionLabelString:i9,gfmFootnoteDefinition:s9},exit:{gfmFootnoteCallString:a9,gfmFootnoteCall:l9,gfmFootnoteDefinitionLabelString:c9,gfmFootnoteDefinition:u9}}}function eg(e){let t=!1;return e&&e.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:r,footnoteReference:ND},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function r(n,o,i,s){let a=i.createTracker(s),l=a.move("[^"),c=i.enter("footnoteDefinition"),u=i.enter("label");return l+=a.move(i.safe(i.associationId(n),{before:l,after:"]"})),u(),l+=a.move("]:"),n.children&&n.children.length>0&&(a.shift(4),l+=a.move((t?`
|
|
44
|
+
`:" ")+i.indentLines(i.containerFlow(n,a.current()),t?PD:p9))),c(),l}}function p9(e,t,r){return t===0?e:PD(e,t,r)}function PD(e,t,r){return(r?"":" ")+e}var f9=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];FD.peek=g9;function tg(){return{canContainEols:["delete"],enter:{strikethrough:m9},exit:{strikethrough:h9}}}function rg(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:f9}],handlers:{delete:FD}}}function m9(e){this.enter({type:"delete",children:[]},e)}function h9(e){this.exit(e)}function FD(e,t,r,n){let o=r.createTracker(n),i=r.enter("strikethrough"),s=o.move("~~");return s+=r.containerPhrasing(e,{...o.current(),before:s,after:"~"}),s+=o.move("~~"),i(),s}function g9(){return"~"}function x9(e){return e.length}function BD(e,t){let r=t||{},n=(r.align||[]).concat(),o=r.stringLength||x9,i=[],s=[],a=[],l=[],c=0,u=-1;for(;++u<e.length;){let g=[],x=[],y=-1;for(e[u].length>c&&(c=e[u].length);++y<e[u].length;){let T=y9(e[u][y]);if(r.alignDelimiters!==!1){let D=o(T);x[y]=D,(l[y]===void 0||D>l[y])&&(l[y]=D)}g.push(T)}s[u]=g,a[u]=x}let d=-1;if(typeof n=="object"&&"length"in n)for(;++d<c;)i[d]=RD(n[d]);else{let g=RD(n);for(;++d<c;)i[d]=g}d=-1;let p=[],f=[];for(;++d<c;){let g=i[d],x="",y="";g===99?(x=":",y=":"):g===108?x=":":g===114&&(y=":");let T=r.alignDelimiters===!1?1:Math.max(1,l[d]-x.length-y.length),D=x+"-".repeat(T)+y;r.alignDelimiters!==!1&&(T=x.length+T+y.length,T>l[d]&&(l[d]=T),f[d]=T),p[d]=D}s.splice(1,0,p),a.splice(1,0,f),u=-1;let m=[];for(;++u<s.length;){let g=s[u],x=a[u];d=-1;let y=[];for(;++d<c;){let T=g[d]||"",D="",H="";if(r.alignDelimiters!==!1){let j=l[d]-(x[d]||0),M=i[d];M===114?D=" ".repeat(j):M===99?j%2?(D=" ".repeat(j/2+.5),H=" ".repeat(j/2-.5)):(D=" ".repeat(j/2),H=D):H=" ".repeat(j)}r.delimiterStart!==!1&&!d&&y.push("|"),r.padding!==!1&&!(r.alignDelimiters===!1&&T==="")&&(r.delimiterStart!==!1||d)&&y.push(" "),r.alignDelimiters!==!1&&y.push(D),y.push(T),r.alignDelimiters!==!1&&y.push(H),r.padding!==!1&&y.push(" "),(r.delimiterEnd!==!1||d!==c-1)&&y.push("|")}m.push(r.delimiterEnd===!1?y.join("").replace(/ +$/,""):y.join(""))}return m.join(`
|
|
45
|
+
`)}function y9(e){return e==null?"":String(e)}function RD(e){let t=typeof e=="string"?e.codePointAt(0):0;return t===67||t===99?99:t===76||t===108?108:t===82||t===114?114:0}var zD={}.hasOwnProperty;function sp(e,t){let r=t||{};function n(o,...i){let s=n.invalid,a=n.handlers;if(o&&zD.call(o,e)){let l=String(o[e]);s=zD.call(a,l)?a[l]:n.unknown}if(s)return s.call(this,o,...i)}return n.handlers=r.handlers||{},n.invalid=r.invalid,n.unknown=r.unknown,n}var b9={}.hasOwnProperty;function ng(e,t){let r=-1,n;if(t.extensions)for(;++r<t.extensions.length;)ng(e,t.extensions[r]);for(n in t)if(b9.call(t,n))switch(n){case"extensions":break;case"unsafe":{HD(e[n],t[n]);break}case"join":{HD(e[n],t[n]);break}case"handlers":{v9(e[n],t[n]);break}default:e.options[n]=t[n]}return e}function HD(e,t){t&&e.push(...t)}function v9(e,t){t&&Object.assign(e,t)}function UD(e,t,r,n){let o=r.enter("blockquote"),i=r.createTracker(n);i.move("> "),i.shift(2);let s=r.indentLines(r.containerFlow(e,i.current()),w9);return o(),s}function w9(e,t,r){return">"+(r?"":" ")+e}function ap(e,t){return jD(e,t.inConstruct,!0)&&!jD(e,t.notInConstruct,!1)}function jD(e,t,r){if(typeof t=="string"&&(t=[t]),!t||t.length===0)return r;let n=-1;for(;++n<t.length;)if(e.includes(t[n]))return!0;return!1}function og(e,t,r,n){let o=-1;for(;++o<r.unsafe.length;)if(r.unsafe[o].character===`
|
|
46
46
|
`&&ap(r.stack,r.unsafe[o]))return/[ \t]/.test(n.before)?"":" ";return`\\
|
|
47
|
-
`}function qD(e,t){let r=String(e),n=r.indexOf(t),o=n,i=0,s=0;if(typeof t!="string")throw new TypeError("Expected substring");for(;n!==-1;)n===o?++i>s&&(s=i):i=1,o=n+t.length,n=r.indexOf(t,o);return s}function ml(e,t){return!!(t.options.fences===!1&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}function YD(e){let t=e.options.fence||"`";if(t!=="`"&&t!=="~")throw new Error("Cannot serialize code with `"+t+"` for `options.fence`, expected `` ` `` or `~`");return t}function WD(e,t,r,n){let o=YD(r),i=e.value||"",s=o==="`"?"GraveAccent":"Tilde";if(ml(e,r)){let d=r.enter("codeIndented"),p=r.indentLines(i,
|
|
47
|
+
`}function qD(e,t){let r=String(e),n=r.indexOf(t),o=n,i=0,s=0;if(typeof t!="string")throw new TypeError("Expected substring");for(;n!==-1;)n===o?++i>s&&(s=i):i=1,o=n+t.length,n=r.indexOf(t,o);return s}function ml(e,t){return!!(t.options.fences===!1&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}function YD(e){let t=e.options.fence||"`";if(t!=="`"&&t!=="~")throw new Error("Cannot serialize code with `"+t+"` for `options.fence`, expected `` ` `` or `~`");return t}function WD(e,t,r,n){let o=YD(r),i=e.value||"",s=o==="`"?"GraveAccent":"Tilde";if(ml(e,r)){let d=r.enter("codeIndented"),p=r.indentLines(i,S9);return d(),p}let a=r.createTracker(n),l=o.repeat(Math.max(qD(i,o)+1,3)),c=r.enter("codeFenced"),u=a.move(l);if(e.lang){let d=r.enter(`codeFencedLang${s}`);u+=a.move(r.safe(e.lang,{before:u,after:" ",encode:["`"],...a.current()})),d()}if(e.lang&&e.meta){let d=r.enter(`codeFencedMeta${s}`);u+=a.move(" "),u+=a.move(r.safe(e.meta,{before:u,after:`
|
|
48
48
|
`,encode:["`"],...a.current()})),d()}return u+=a.move(`
|
|
49
49
|
`),i&&(u+=a.move(i+`
|
|
50
|
-
`)),u+=a.move(l),c(),u}function
|
|
51
|
-
`,...l.current()}))),a(),e.title&&(a=r.enter(`title${i}`),c+=l.move(" "+o),c+=l.move(r.safe(e.title,{before:c,after:o,...l.current()})),c+=l.move(o),a()),s(),c}function GD(e){let t=e.options.emphasis||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize emphasis with `"+t+"` for `options.emphasis`, expected `*`, or `_`");return t}function gr(e){return"&#x"+e.toString(16).toUpperCase()+";"}function Bn(e){if(e===null||Ce(e)||hn(e))return 1;if(
|
|
50
|
+
`)),u+=a.move(l),c(),u}function S9(e,t,r){return(r?"":" ")+e}function zs(e){let t=e.options.quote||'"';if(t!=='"'&&t!=="'")throw new Error("Cannot serialize title with `"+t+"` for `options.quote`, expected `\"`, or `'`");return t}function VD(e,t,r,n){let o=zs(r),i=o==='"'?"Quote":"Apostrophe",s=r.enter("definition"),a=r.enter("label"),l=r.createTracker(n),c=l.move("[");return c+=l.move(r.safe(r.associationId(e),{before:c,after:"]",...l.current()})),c+=l.move("]: "),a(),!e.url||/[\0- \u007F]/.test(e.url)?(a=r.enter("destinationLiteral"),c+=l.move("<"),c+=l.move(r.safe(e.url,{before:c,after:">",...l.current()})),c+=l.move(">")):(a=r.enter("destinationRaw"),c+=l.move(r.safe(e.url,{before:c,after:e.title?" ":`
|
|
51
|
+
`,...l.current()}))),a(),e.title&&(a=r.enter(`title${i}`),c+=l.move(" "+o),c+=l.move(r.safe(e.title,{before:c,after:o,...l.current()})),c+=l.move(o),a()),s(),c}function GD(e){let t=e.options.emphasis||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize emphasis with `"+t+"` for `options.emphasis`, expected `*`, or `_`");return t}function gr(e){return"&#x"+e.toString(16).toUpperCase()+";"}function Bn(e){if(e===null||Ce(e)||hn(e))return 1;if(bi(e))return 2}function Hs(e,t,r){let n=Bn(e),o=Bn(t);return n===void 0?o===void 0?r==="_"?{inside:!0,outside:!0}:{inside:!1,outside:!1}:o===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:n===1?o===void 0?{inside:!1,outside:!1}:o===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:o===void 0?{inside:!1,outside:!1}:o===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}ig.peek=k9;function ig(e,t,r,n){let o=GD(r),i=r.enter("emphasis"),s=r.createTracker(n),a=s.move(o),l=s.move(r.containerPhrasing(e,{after:o,before:a,...s.current()})),c=l.charCodeAt(0),u=Hs(n.before.charCodeAt(n.before.length-1),c,o);u.inside&&(l=gr(c)+l.slice(1));let d=l.charCodeAt(l.length-1),p=Hs(n.after.charCodeAt(0),d,o);p.inside&&(l=l.slice(0,-1)+gr(d));let f=s.move(o);return i(),r.attentionEncodeSurroundingInfo={after:p.outside,before:u.outside},a+l+f}function k9(e,t,r){return r.options.emphasis||"*"}function hl(e,t,r,n){let o,i,s;typeof t=="function"&&typeof r!="function"?(i=void 0,s=t,o=r):(i=t,s=r,o=n),fl(e,i,a,o);function a(l,c){let u=c[c.length-1],d=u?u.children.indexOf(l):void 0;return s(l,d,u)}}var T9={};function wi(e,t){let r=t||T9,n=typeof r.includeImageAlt=="boolean"?r.includeImageAlt:!0,o=typeof r.includeHtml=="boolean"?r.includeHtml:!0;return QD(e,n,o)}function QD(e,t,r){if(D9(e)){if("value"in e)return e.type==="html"&&!r?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return XD(e.children,t,r)}return Array.isArray(e)?XD(e,t,r):""}function XD(e,t,r){let n=[],o=-1;for(;++o<e.length;)n[o]=QD(e[o],t,r);return n.join("")}function D9(e){return!!(e&&typeof e=="object")}function lp(e,t){let r=!1;return hl(e,function(n){if("value"in n&&/\r?\n|\r/.test(n.value)||n.type==="break")return r=!0,vi}),!!((!e.depth||e.depth<3)&&wi(e)&&(t.options.setext||r))}function JD(e,t,r,n){let o=Math.max(Math.min(6,e.depth||1),1),i=r.createTracker(n);if(lp(e,r)){let u=r.enter("headingSetext"),d=r.enter("phrasing"),p=r.containerPhrasing(e,{...i.current(),before:`
|
|
52
52
|
`,after:`
|
|
53
53
|
`});return d(),u(),p+`
|
|
54
54
|
`+(o===1?"=":"-").repeat(p.length-(Math.max(p.lastIndexOf("\r"),p.lastIndexOf(`
|
|
55
55
|
`))+1))}let s="#".repeat(o),a=r.enter("headingAtx"),l=r.enter("phrasing");i.move(s+" ");let c=r.containerPhrasing(e,{before:"# ",after:`
|
|
56
|
-
`,...i.current()});return/^[\t ]/.test(c)&&(c=gr(c.charCodeAt(0))+c.slice(1)),c=c?s+" "+c:s,r.options.closeAtx&&(c+=" "+s),l(),a(),c}
|
|
57
|
-
`,inConstruct:["codeFencedLangGraveAccent","codeFencedLangTilde","codeFencedMetaGraveAccent","codeFencedMetaTilde","destinationLiteral","headingAtx"]},{character:" ",after:"[\\r\\n]",inConstruct:"phrasing"},{character:" ",before:"[\\r\\n]",inConstruct:"phrasing"},{character:" ",inConstruct:["codeFencedLangGraveAccent","codeFencedLangTilde"]},{character:"!",after:"\\[",inConstruct:"phrasing",notInConstruct:
|
|
58
|
-
]|$)`},{character:"&",after:"[#A-Za-z]",inConstruct:"phrasing"},{character:"'",inConstruct:"titleApostrophe"},{character:"(",inConstruct:"destinationRaw"},{before:"\\]",character:"(",inConstruct:"phrasing",notInConstruct:
|
|
59
|
-
*])`},{character:"*",inConstruct:"phrasing",notInConstruct:
|
|
56
|
+
`,...i.current()});return/^[\t ]/.test(c)&&(c=gr(c.charCodeAt(0))+c.slice(1)),c=c?s+" "+c:s,r.options.closeAtx&&(c+=" "+s),l(),a(),c}sg.peek=C9;function sg(e){return e.value||""}function C9(){return"<"}ag.peek=E9;function ag(e,t,r,n){let o=zs(r),i=o==='"'?"Quote":"Apostrophe",s=r.enter("image"),a=r.enter("label"),l=r.createTracker(n),c=l.move("![");return c+=l.move(r.safe(e.alt,{before:c,after:"]",...l.current()})),c+=l.move("]("),a(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(a=r.enter("destinationLiteral"),c+=l.move("<"),c+=l.move(r.safe(e.url,{before:c,after:">",...l.current()})),c+=l.move(">")):(a=r.enter("destinationRaw"),c+=l.move(r.safe(e.url,{before:c,after:e.title?" ":")",...l.current()}))),a(),e.title&&(a=r.enter(`title${i}`),c+=l.move(" "+o),c+=l.move(r.safe(e.title,{before:c,after:o,...l.current()})),c+=l.move(o),a()),c+=l.move(")"),s(),c}function E9(){return"!"}lg.peek=M9;function lg(e,t,r,n){let o=e.referenceType,i=r.enter("imageReference"),s=r.enter("label"),a=r.createTracker(n),l=a.move("!["),c=r.safe(e.alt,{before:l,after:"]",...a.current()});l+=a.move(c+"]["),s();let u=r.stack;r.stack=[],s=r.enter("reference");let d=r.safe(r.associationId(e),{before:l,after:"]",...a.current()});return s(),r.stack=u,i(),o==="full"||!c||c!==d?l+=a.move(d+"]"):o==="shortcut"?l=l.slice(0,-1):l+=a.move("]"),l}function M9(){return"!"}cg.peek=I9;function cg(e,t,r){let n=e.value||"",o="`",i=-1;for(;new RegExp("(^|[^`])"+o+"([^`]|$)").test(n);)o+="`";for(/[^ \r\n]/.test(n)&&(/^[ \r\n]/.test(n)&&/[ \r\n]$/.test(n)||/^`|`$/.test(n))&&(n=" "+n+" ");++i<r.unsafe.length;){let s=r.unsafe[i],a=r.compilePattern(s),l;if(s.atBreak)for(;l=a.exec(n);){let c=l.index;n.charCodeAt(c)===10&&n.charCodeAt(c-1)===13&&c--,n=n.slice(0,c)+" "+n.slice(l.index+1)}}return o+n+o}function I9(){return"`"}function ug(e,t){let r=wi(e);return!!(!t.options.resourceLink&&e.url&&!e.title&&e.children&&e.children.length===1&&e.children[0].type==="text"&&(r===e.url||"mailto:"+r===e.url)&&/^[a-z][a-z+.-]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))}dg.peek=$9;function dg(e,t,r,n){let o=zs(r),i=o==='"'?"Quote":"Apostrophe",s=r.createTracker(n),a,l;if(ug(e,r)){let u=r.stack;r.stack=[],a=r.enter("autolink");let d=s.move("<");return d+=s.move(r.containerPhrasing(e,{before:d,after:">",...s.current()})),d+=s.move(">"),a(),r.stack=u,d}a=r.enter("link"),l=r.enter("label");let c=s.move("[");return c+=s.move(r.containerPhrasing(e,{before:c,after:"](",...s.current()})),c+=s.move("]("),l(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(l=r.enter("destinationLiteral"),c+=s.move("<"),c+=s.move(r.safe(e.url,{before:c,after:">",...s.current()})),c+=s.move(">")):(l=r.enter("destinationRaw"),c+=s.move(r.safe(e.url,{before:c,after:e.title?" ":")",...s.current()}))),l(),e.title&&(l=r.enter(`title${i}`),c+=s.move(" "+o),c+=s.move(r.safe(e.title,{before:c,after:o,...s.current()})),c+=s.move(o),l()),c+=s.move(")"),a(),c}function $9(e,t,r){return ug(e,r)?"<":"["}pg.peek=A9;function pg(e,t,r,n){let o=e.referenceType,i=r.enter("linkReference"),s=r.enter("label"),a=r.createTracker(n),l=a.move("["),c=r.containerPhrasing(e,{before:l,after:"]",...a.current()});l+=a.move(c+"]["),s();let u=r.stack;r.stack=[],s=r.enter("reference");let d=r.safe(r.associationId(e),{before:l,after:"]",...a.current()});return s(),r.stack=u,i(),o==="full"||!c||c!==d?l+=a.move(d+"]"):o==="shortcut"?l=l.slice(0,-1):l+=a.move("]"),l}function A9(){return"["}function Us(e){let t=e.options.bullet||"*";if(t!=="*"&&t!=="+"&&t!=="-")throw new Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}function ZD(e){let t=Us(e),r=e.options.bulletOther;if(!r)return t==="*"?"-":"*";if(r!=="*"&&r!=="+"&&r!=="-")throw new Error("Cannot serialize items with `"+r+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(r===t)throw new Error("Expected `bullet` (`"+t+"`) and `bulletOther` (`"+r+"`) to be different");return r}function KD(e){let t=e.options.bulletOrdered||".";if(t!=="."&&t!==")")throw new Error("Cannot serialize items with `"+t+"` for `options.bulletOrdered`, expected `.` or `)`");return t}function cp(e){let t=e.options.rule||"*";if(t!=="*"&&t!=="-"&&t!=="_")throw new Error("Cannot serialize rules with `"+t+"` for `options.rule`, expected `*`, `-`, or `_`");return t}function eC(e,t,r,n){let o=r.enter("list"),i=r.bulletCurrent,s=e.ordered?KD(r):Us(r),a=e.ordered?s==="."?")":".":ZD(r),l=t&&r.bulletLastUsed?s===r.bulletLastUsed:!1;if(!e.ordered){let u=e.children?e.children[0]:void 0;if((s==="*"||s==="-")&&u&&(!u.children||!u.children[0])&&r.stack[r.stack.length-1]==="list"&&r.stack[r.stack.length-2]==="listItem"&&r.stack[r.stack.length-3]==="list"&&r.stack[r.stack.length-4]==="listItem"&&r.indexStack[r.indexStack.length-1]===0&&r.indexStack[r.indexStack.length-2]===0&&r.indexStack[r.indexStack.length-3]===0&&(l=!0),cp(r)===s&&u){let d=-1;for(;++d<e.children.length;){let p=e.children[d];if(p&&p.type==="listItem"&&p.children&&p.children[0]&&p.children[0].type==="thematicBreak"){l=!0;break}}}}l&&(s=a),r.bulletCurrent=s;let c=r.containerFlow(e,n);return r.bulletLastUsed=s,r.bulletCurrent=i,o(),c}function tC(e){let t=e.options.listItemIndent||"one";if(t!=="tab"&&t!=="one"&&t!=="mixed")throw new Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}function rC(e,t,r,n){let o=tC(r),i=r.bulletCurrent||Us(r);t&&t.type==="list"&&t.ordered&&(i=(typeof t.start=="number"&&t.start>-1?t.start:1)+(r.options.incrementListMarker===!1?0:t.children.indexOf(e))+i);let s=i.length+1;(o==="tab"||o==="mixed"&&(t&&t.type==="list"&&t.spread||e.spread))&&(s=Math.ceil(s/4)*4);let a=r.createTracker(n);a.move(i+" ".repeat(s-i.length)),a.shift(s);let l=r.enter("listItem"),c=r.indentLines(r.containerFlow(e,a.current()),u);return l(),c;function u(d,p,f){return p?(f?"":" ".repeat(s))+d:(f?i:i+" ".repeat(s-i.length))+d}}function nC(e,t,r,n){let o=r.enter("paragraph"),i=r.enter("phrasing"),s=r.containerPhrasing(e,n);return i(),o(),s}var fg=Rn(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function oC(e,t,r,n){return(e.children.some(function(s){return fg(s)})?r.containerPhrasing:r.containerFlow).call(r,e,n)}function iC(e){let t=e.options.strong||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}mg.peek=_9;function mg(e,t,r,n){let o=iC(r),i=r.enter("strong"),s=r.createTracker(n),a=s.move(o+o),l=s.move(r.containerPhrasing(e,{after:o,before:a,...s.current()})),c=l.charCodeAt(0),u=Hs(n.before.charCodeAt(n.before.length-1),c,o);u.inside&&(l=gr(c)+l.slice(1));let d=l.charCodeAt(l.length-1),p=Hs(n.after.charCodeAt(0),d,o);p.inside&&(l=l.slice(0,-1)+gr(d));let f=s.move(o+o);return i(),r.attentionEncodeSurroundingInfo={after:p.outside,before:u.outside},a+l+f}function _9(e,t,r){return r.options.strong||"*"}function sC(e,t,r,n){return r.safe(e.value,n)}function aC(e){let t=e.options.ruleRepetition||3;if(t<3)throw new Error("Cannot serialize rules with repetition `"+t+"` for `options.ruleRepetition`, expected `3` or more");return t}function lC(e,t,r){let n=(cp(r)+(r.options.ruleSpaces?" ":"")).repeat(aC(r));return r.options.ruleSpaces?n.slice(0,-1):n}var Si={blockquote:UD,break:og,code:WD,definition:VD,emphasis:ig,hardBreak:og,heading:JD,html:sg,image:ag,imageReference:lg,inlineCode:cg,link:dg,linkReference:pg,list:eC,listItem:rC,paragraph:nC,root:oC,strong:mg,text:sC,thematicBreak:lC};var cC=[O9];function O9(e,t,r,n){if(t.type==="code"&&ml(t,n)&&(e.type==="list"||e.type===t.type&&ml(e,n)))return!1;if("spread"in r&&typeof r.spread=="boolean")return e.type==="paragraph"&&(e.type===t.type||t.type==="definition"||t.type==="heading"&&lp(t,n))?void 0:r.spread?1:0}var ki=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"],uC=[{character:" ",after:"[\\r\\n]",inConstruct:"phrasing"},{character:" ",before:"[\\r\\n]",inConstruct:"phrasing"},{character:" ",inConstruct:["codeFencedLangGraveAccent","codeFencedLangTilde"]},{character:"\r",inConstruct:["codeFencedLangGraveAccent","codeFencedLangTilde","codeFencedMetaGraveAccent","codeFencedMetaTilde","destinationLiteral","headingAtx"]},{character:`
|
|
57
|
+
`,inConstruct:["codeFencedLangGraveAccent","codeFencedLangTilde","codeFencedMetaGraveAccent","codeFencedMetaTilde","destinationLiteral","headingAtx"]},{character:" ",after:"[\\r\\n]",inConstruct:"phrasing"},{character:" ",before:"[\\r\\n]",inConstruct:"phrasing"},{character:" ",inConstruct:["codeFencedLangGraveAccent","codeFencedLangTilde"]},{character:"!",after:"\\[",inConstruct:"phrasing",notInConstruct:ki},{character:'"',inConstruct:"titleQuote"},{atBreak:!0,character:"#"},{character:"#",inConstruct:"headingAtx",after:`(?:[\r
|
|
58
|
+
]|$)`},{character:"&",after:"[#A-Za-z]",inConstruct:"phrasing"},{character:"'",inConstruct:"titleApostrophe"},{character:"(",inConstruct:"destinationRaw"},{before:"\\]",character:"(",inConstruct:"phrasing",notInConstruct:ki},{atBreak:!0,before:"\\d+",character:")"},{character:")",inConstruct:"destinationRaw"},{atBreak:!0,character:"*",after:`(?:[ \r
|
|
59
|
+
*])`},{character:"*",inConstruct:"phrasing",notInConstruct:ki},{atBreak:!0,character:"+",after:`(?:[ \r
|
|
60
60
|
])`},{atBreak:!0,character:"-",after:`(?:[ \r
|
|
61
61
|
-])`},{atBreak:!0,before:"\\d+",character:".",after:`(?:[ \r
|
|
62
|
-
]|$)`},{atBreak:!0,character:"<",after:"[!/?A-Za-z]"},{character:"<",after:"[!/?A-Za-z]",inConstruct:"phrasing",notInConstruct:
|
|
62
|
+
]|$)`},{atBreak:!0,character:"<",after:"[!/?A-Za-z]"},{character:"<",after:"[!/?A-Za-z]",inConstruct:"phrasing",notInConstruct:ki},{character:"<",inConstruct:"destinationLiteral"},{atBreak:!0,character:"="},{atBreak:!0,character:">"},{character:">",inConstruct:"destinationLiteral"},{atBreak:!0,character:"["},{character:"[",inConstruct:"phrasing",notInConstruct:ki},{character:"[",inConstruct:["label","reference"]},{character:"\\",after:"[\\r\\n]",inConstruct:"phrasing"},{character:"]",inConstruct:["label","reference"]},{atBreak:!0,character:"_"},{character:"_",inConstruct:"phrasing",notInConstruct:ki},{atBreak:!0,character:"`"},{character:"`",inConstruct:["codeFencedLangGraveAccent","codeFencedMetaGraveAccent"]},{character:"`",inConstruct:"phrasing",notInConstruct:ki},{atBreak:!0,character:"~"}];var dC=document.createElement("i");function bo(e){let t="&"+e+";";dC.innerHTML=t;let r=dC.textContent;return r.charCodeAt(r.length-1)===59&&e!=="semi"||r===t?!1:r}function js(e,t){let r=Number.parseInt(e,t);return r<9||r===11||r>13&&r<32||r>126&&r<160||r>55295&&r<57344||r>64975&&r<65008||(r&65535)===65535||(r&65535)===65534||r>1114111?"\uFFFD":String.fromCodePoint(r)}var L9=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function up(e){return e.replace(L9,N9)}function N9(e,t,r){if(t)return t;if(r.charCodeAt(0)===35){let o=r.charCodeAt(1),i=o===120||o===88;return js(r.slice(i?2:1),i?16:10)}return bo(r)||e}function pC(e){return e.label||!e.identifier?e.label||"":up(e.identifier)}function fC(e){if(!e._compiled){let t=(e.atBreak?"[\\r\\n][\\t ]*":"")+(e.before?"(?:"+e.before+")":"");e._compiled=new RegExp((t?"("+t+")":"")+(/[|\\{}()[\]^$+*?.-]/.test(e.character)?"\\":"")+e.character+(e.after?"(?:"+e.after+")":""),"g")}return e._compiled}function mC(e,t,r){let n=t.indexStack,o=e.children||[],i=[],s=-1,a=r.before,l;n.push(-1);let c=t.createTracker(r);for(;++s<o.length;){let u=o[s],d;if(n[n.length-1]=s,s+1<o.length){let m=t.handle.handlers[o[s+1].type];m&&m.peek&&(m=m.peek),d=m?m(o[s+1],e,t,{before:"",after:"",...c.current()}).charAt(0):""}else d=r.after;i.length>0&&(a==="\r"||a===`
|
|
63
63
|
`)&&u.type==="html"&&(i[i.length-1]=i[i.length-1].replace(/(\r?\n|\r)$/," "),a=" ",c=t.createTracker(r),c.move(i.join("")));let p=t.handle(u,e,t,{...c.current(),after:d,before:a});l&&l===p.slice(0,1)&&(p=gr(l.charCodeAt(0))+p.slice(1));let f=t.attentionEncodeSurroundingInfo;t.attentionEncodeSurroundingInfo=void 0,l=void 0,f&&(i.length>0&&f.before&&a===i[i.length-1].slice(-1)&&(i[i.length-1]=i[i.length-1].slice(0,-1)+gr(a.charCodeAt(0))),f.after&&(l=d)),c.move(p),i.push(p),a=p.slice(-1)}return n.pop(),i.join("")}function hC(e,t,r){let n=t.indexStack,o=e.children||[],i=t.createTracker(r),s=[],a=-1;for(n.push(-1);++a<o.length;){let l=o[a];n[n.length-1]=a,s.push(i.move(t.handle(l,e,t,{before:`
|
|
64
64
|
`,after:`
|
|
65
|
-
`,...i.current()}))),l.type!=="list"&&(t.bulletLastUsed=void 0),a<o.length-1&&s.push(i.move(
|
|
65
|
+
`,...i.current()}))),l.type!=="list"&&(t.bulletLastUsed=void 0),a<o.length-1&&s.push(i.move(P9(l,o[a+1],e,t)))}return n.pop(),s.join("")}function P9(e,t,r,n){let o=n.join.length;for(;o--;){let i=n.join[o](e,t,r,n);if(i===!0||i===1)break;if(typeof i=="number")return`
|
|
66
66
|
`.repeat(1+i);if(i===!1)return`
|
|
67
67
|
|
|
68
68
|
<!---->
|
|
69
69
|
|
|
70
70
|
`}return`
|
|
71
71
|
|
|
72
|
-
`}var
|
|
72
|
+
`}var F9=/\r?\n|\r/g;function gC(e,t){let r=[],n=0,o=0,i;for(;i=F9.exec(e);)s(e.slice(n,i.index)),r.push(i[0]),n=i.index+i[0].length,o++;return s(e.slice(n)),r.join("");function s(a){r.push(t(a,o,!a))}}function yC(e,t,r){let n=(r.before||"")+(t||"")+(r.after||""),o=[],i=[],s={},a=-1;for(;++a<e.unsafe.length;){let u=e.unsafe[a];if(!ap(e.stack,u))continue;let d=e.compilePattern(u),p;for(;p=d.exec(n);){let f="before"in u||!!u.atBreak,m="after"in u,g=p.index+(f?p[1].length:0);o.includes(g)?(s[g].before&&!f&&(s[g].before=!1),s[g].after&&!m&&(s[g].after=!1)):(o.push(g),s[g]={before:f,after:m})}}o.sort(R9);let l=r.before?r.before.length:0,c=n.length-(r.after?r.after.length:0);for(a=-1;++a<o.length;){let u=o[a];u<l||u>=c||u+1<c&&o[a+1]===u+1&&s[u].after&&!s[u+1].before&&!s[u+1].after||o[a-1]===u-1&&s[u].before&&!s[u-1].before&&!s[u-1].after||(l!==u&&i.push(xC(n.slice(l,u),"\\")),l=u,/[!-/:-@[-`{-~]/.test(n.charAt(u))&&(!r.encode||!r.encode.includes(n.charAt(u)))?i.push("\\"):(i.push(gr(n.charCodeAt(u))),l++))}return i.push(xC(n.slice(l,c),r.after)),i.join("")}function R9(e,t){return e-t}function xC(e,t){let r=/\\(?=[!-/:-@[-`{-~])/g,n=[],o=[],i=e+t,s=-1,a=0,l;for(;l=r.exec(i);)n.push(l.index);for(;++s<n.length;)a!==n[s]&&o.push(e.slice(a,n[s])),o.push("\\"),a=n[s];return o.push(e.slice(a)),o.join("")}function bC(e){let t=e||{},r=t.now||{},n=t.lineShift||0,o=r.line||1,i=r.column||1;return{move:l,current:s,shift:a};function s(){return{now:{line:o,column:i},lineShift:n}}function a(c){n+=c}function l(c){let u=c||"",d=u.split(/\r?\n|\r/g),p=d[d.length-1];return o+=d.length-1,i=d.length===1?i+p.length:1+p.length+n,u}}function hg(e,t){let r=t||{},n={associationId:pC,containerPhrasing:U9,containerFlow:j9,createTracker:bC,compilePattern:fC,enter:i,handlers:{...Si},handle:void 0,indentLines:gC,indexStack:[],join:[...cC],options:{},safe:q9,stack:[],unsafe:[...uC]};ng(n,r),n.options.tightDefinitions&&n.join.push(H9),n.handle=sp("type",{invalid:B9,unknown:z9,handlers:n.handlers});let o=n.handle(e,void 0,n,{before:`
|
|
73
73
|
`,after:`
|
|
74
74
|
`,now:{line:1,column:1},lineShift:0});return o&&o.charCodeAt(o.length-1)!==10&&o.charCodeAt(o.length-1)!==13&&(o+=`
|
|
75
|
-
`),o;function i(s){return n.stack.push(s),a;function a(){n.stack.pop()}}}function
|
|
75
|
+
`),o;function i(s){return n.stack.push(s),a;function a(){n.stack.pop()}}}function B9(e){throw new Error("Cannot handle value `"+e+"`, expected node")}function z9(e){let t=e;throw new Error("Cannot handle unknown node `"+t.type+"`")}function H9(e,t){if(e.type==="definition"&&e.type===t.type)return 0}function U9(e,t){return mC(e,this,t)}function j9(e,t){return hC(e,this,t)}function q9(e,t){return yC(this,e,t)}function xg(){return{enter:{table:Y9,tableData:vC,tableHeader:vC,tableRow:V9},exit:{codeText:G9,table:W9,tableData:gg,tableHeader:gg,tableRow:gg}}}function Y9(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 W9(e){this.exit(e),this.data.inTable=void 0}function V9(e){this.enter({type:"tableRow",children:[]},e)}function gg(e){this.exit(e)}function vC(e){this.enter({type:"tableCell",children:[]},e)}function G9(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,Q9));let r=this.stack[this.stack.length-1];r.type,r.value=t,this.exit(e)}function Q9(e,t){return t==="|"?t:e}function yg(e){let t=e||{},r=t.tableCellPadding,n=t.tablePipeAlign,o=t.stringLength,i=r?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
|
|
76
76
|
`,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(f,m,g,x){return c(u(f,g,x),f.align)}function a(f,m,g,x){let y=d(f,g,x),T=c([y]);return T.slice(0,T.indexOf(`
|
|
77
|
-
`))}function l(f,m,g,x){let y=g.enter("tableCell"),T=g.enter("phrasing"),D=g.containerPhrasing(f,{...x,before:i,after:i});return T(),y(),D}function c(f,m){return BD(f,{align:m,alignDelimiters:n,padding:r,stringLength:o})}function u(f,m,g){let x=f.children,y=-1,T=[],D=m.enter("table");for(;++y<x.length;)T[y]=d(x[y],m,g);return D(),T}function d(f,m,g){let x=f.children,y=-1,T=[],D=m.enter("tableRow");for(;++y<x.length;)T[y]=l(x[y],f,m,g);return D(),T}function p(f,m,g){let x=wi.inlineCode(f,m,g);return g.stack.includes("tableCell")&&(x=x.replace(/\|/g,"\\$&")),x}}function vg(){return{exit:{taskListCheckValueChecked:wC,taskListCheckValueUnchecked:wC,paragraph:J9}}}function wg(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:Z9}}}function wC(e){let t=this.stack[this.stack.length-2];t.type,t.checked=e.type==="taskListCheckValueChecked"}function J9(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 o=t.children,i=-1,s;for(;++i<o.length;){let a=o[i];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 Z9(e,t,r,n){let o=e.children[0],i=typeof e.checked=="boolean"&&o&&o.type==="paragraph",s="["+(e.checked?"x":" ")+"] ",a=r.createTracker(n);i&&a.move(s);let l=wi.listItem(e,t,r,{...n,...a.current()});return i&&(l=l.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,c)),l;function c(u){return u+s}}function Sg(){return[Zh(),eg(),rg(),yg(),vg()]}function kg(e){return{extensions:[Kh(),tg(e),ng(),bg(e),wg()]}}function dt(e,t,r,n){let o=e.length,i=0,s;if(t<0?t=-t>o?0:o+t:t=t>o?o: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);i<n.length;)s=n.slice(i,i+1e4),s.unshift(t,0),e.splice(...s),i+=1e4,t+=1e4}function wt(e,t){return e.length>0?(dt(e,e.length,0,t),e):t}var Tg={}.hasOwnProperty;function dp(e){let t={},r=-1;for(;++r<e.length;)K9(t,e[r]);return t}function K9(e,t){let r;for(r in t){let o=(Tg.call(e,r)?e[r]:void 0)||(e[r]={}),i=t[r],s;if(i)for(s in i){Tg.call(o,s)||(o[s]=[]);let a=i[s];eB(o[s],Array.isArray(a)?a:a?[a]:[])}}}function eB(e,t){let r=-1,n=[];for(;++r<t.length;)(t[r].add==="after"?e:n).push(t[r]);dt(e,0,0,n)}function pp(e){let t={},r=-1;for(;++r<e.length;)tB(t,e[r]);return t}function tB(e,t){let r;for(r in t){let o=(Tg.call(e,r)?e[r]:void 0)||(e[r]={}),i=t[r],s;if(i)for(s in i)o[s]=i[s]}}var rB={tokenize:aB,partial:!0},SC={tokenize:lB,partial:!0},kC={tokenize:cB,partial:!0},TC={tokenize:uB,partial:!0},nB={tokenize:dB,partial:!0},DC={name:"wwwAutolink",tokenize:iB,previous:EC},CC={name:"protocolAutolink",tokenize:sB,previous:MC},zn={name:"emailAutolink",tokenize:oB,previous:IC},gn={};function Eg(){return{text:gn}}for(var ki=48;ki<123;)gn[ki]=zn,ki++,ki===58?ki=65:ki===91&&(ki=97);gn[43]=zn,gn[45]=zn,gn[46]=zn,gn[95]=zn,gn[72]=[zn,CC],gn[104]=[zn,CC],gn[87]=[zn,DC],gn[119]=[zn,DC];function oB(e,t,r){let n=this,o,i;return s;function s(d){return!Dg(d)||!IC.call(n,n.previous)||Cg(n.events)?r(d):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),a(d))}function a(d){return Dg(d)?(e.consume(d),a):d===64?(e.consume(d),l):r(d)}function l(d){return d===46?e.check(nB,u,c)(d):d===45||d===95||st(d)?(i=!0,e.consume(d),l):u(d)}function c(d){return e.consume(d),o=!0,l}function u(d){return i&&o&&Dt(n.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(d)):r(d)}}function iB(e,t,r){let n=this;return o;function o(s){return s!==87&&s!==119||!EC.call(n,n.previous)||Cg(n.events)?r(s):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(rB,e.attempt(SC,e.attempt(kC,i),r),r)(s))}function i(s){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(s)}}function sB(e,t,r){let n=this,o="",i=!1;return s;function s(d){return(d===72||d===104)&&MC.call(n,n.previous)&&!Cg(n.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),o+=String.fromCodePoint(d),e.consume(d),a):r(d)}function a(d){if(Dt(d)&&o.length<5)return o+=String.fromCodePoint(d),e.consume(d),a;if(d===58){let p=o.toLowerCase();if(p==="http"||p==="https")return e.consume(d),l}return r(d)}function l(d){return d===47?(e.consume(d),i?c:(i=!0,l)):r(d)}function c(d){return d===null||xi(d)||Ce(d)||hn(d)||yi(d)?r(d):e.attempt(SC,e.attempt(kC,u),r)(d)}function u(d){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(d)}}function aB(e,t,r){let n=0;return o;function o(s){return(s===87||s===119)&&n<3?(n++,e.consume(s),o):s===46&&n===3?(e.consume(s),i):r(s)}function i(s){return s===null?r(s):t(s)}}function lB(e,t,r){let n,o,i;return s;function s(c){return c===46||c===95?e.check(TC,l,a)(c):c===null||Ce(c)||hn(c)||c!==45&&yi(c)?l(c):(i=!0,e.consume(c),s)}function a(c){return c===95?n=!0:(o=n,n=void 0),e.consume(c),s}function l(c){return o||n||!i?r(c):t(c)}}function cB(e,t){let r=0,n=0;return o;function o(s){return s===40?(r++,e.consume(s),o):s===41&&n<r?i(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(TC,t,i)(s):s===null||Ce(s)||hn(s)?t(s):(e.consume(s),o)}function i(s){return s===41&&n++,e.consume(s),o}}function uB(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),i):a===93?(e.consume(a),o):a===60||a===null||Ce(a)||hn(a)?t(a):r(a)}function o(a){return a===null||a===40||a===91||Ce(a)||hn(a)?t(a):n(a)}function i(a){return Dt(a)?s(a):r(a)}function s(a){return a===59?(e.consume(a),n):Dt(a)?(e.consume(a),s):r(a)}}function dB(e,t,r){return n;function n(i){return e.consume(i),o}function o(i){return st(i)?r(i):t(i)}}function EC(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||Ce(e)}function MC(e){return!Dt(e)}function IC(e){return!(e===47||Dg(e))}function Dg(e){return e===43||e===45||e===46||e===95||st(e)}function Cg(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}var pB={'"':"quot","&":"amp","<":"lt",">":"gt"};function fp(e){return e.replace(/["&<>]/g,t);function t(r){return"&"+pB[r]+";"}}function xn(e,t){let r=fp(xr(e||""));if(!t)return r;let n=r.indexOf(":"),o=r.indexOf("?"),i=r.indexOf("#"),s=r.indexOf("/");return n<0||s>-1&&n>s||o>-1&&n>o||i>-1&&n>i||t.test(r.slice(0,n))?r:""}function xr(e){let t=[],r=-1,n=0,o=0;for(;++r<e.length;){let i=e.charCodeAt(r),s="";if(i===37&&st(e.charCodeAt(r+1))&&st(e.charCodeAt(r+2)))o=2;else if(i<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(i))||(s=String.fromCharCode(i));else if(i>55295&&i<57344){let a=e.charCodeAt(r+1);i<56320&&a>56319&&a<57344?(s=String.fromCharCode(i,a),o=1):s="\uFFFD"}else s=String.fromCharCode(i);s&&(t.push(e.slice(n,r),encodeURIComponent(s)),n=r+o+1,s=""),o&&(r+=o,o=0)}return t.join("")+e.slice(n)}function Ig(){return{exit:{literalAutolinkEmail:mB,literalAutolinkHttp:hB,literalAutolinkWww:fB}}}function fB(e){Mg.call(this,e,"http://")}function mB(e){Mg.call(this,e,"mailto:")}function hB(e){Mg.call(this,e)}function Mg(e,t){let r=this.sliceSerialize(e);this.tag('<a href="'+xn((t||"")+r)+'">'),this.raw(this.encode(r)),this.tag("</a>")}function bo(e,t,r){let n=[],o=-1;for(;++o<e.length;){let i=e[o].resolveAll;i&&!n.includes(i)&&(t=i(t,r),n.push(i))}return t}var gl={name:"attention",resolveAll:gB,tokenize:xB};function gB(e,t){let r=-1,n,o,i,s,a,l,c,u;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 d={...e[n][1].end},p={...e[r][1].start};$C(d,-l),$C(p,l),s={type:l>1?"strongSequence":"emphasisSequence",start:d,end:{...e[n][1].end}},a={type:l>1?"strongSequence":"emphasisSequence",start:{...e[r][1].start},end:p},i={type:l>1?"strongText":"emphasisText",start:{...e[n][1].end},end:{...e[r][1].start}},o={type:l>1?"strong":"emphasis",start:{...s.start},end:{...a.end}},e[n][1].end={...s.start},e[r][1].start={...a.end},c=[],e[n][1].end.offset-e[n][1].start.offset&&(c=wt(c,[["enter",e[n][1],t],["exit",e[n][1],t]])),c=wt(c,[["enter",o,t],["enter",s,t],["exit",s,t],["enter",i,t]]),c=wt(c,bo(t.parser.constructs.insideSpan.null,e.slice(n+1,r),t)),c=wt(c,[["exit",i,t],["enter",a,t],["exit",a,t],["exit",o,t]]),e[r][1].end.offset-e[r][1].start.offset?(u=2,c=wt(c,[["enter",e[r][1],t],["exit",e[r][1],t]])):u=0,dt(e,n-1,r-n+3,c),r=n+c.length-u-2;break}}for(r=-1;++r<e.length;)e[r][1].type==="attentionSequence"&&(e[r][1].type="data");return e}function xB(e,t){let r=this.parser.constructs.attentionMarkers.null,n=this.previous,o=Bn(n),i;return s;function s(l){return i=l,e.enter("attentionSequence"),a(l)}function a(l){if(l===i)return e.consume(l),a;let c=e.exit("attentionSequence"),u=Bn(l),d=!u||u===2&&o||r.includes(l),p=!o||o===2&&u||r.includes(n);return c._open=!!(i===42?d:d&&(o||!p)),c._close=!!(i===42?p:p&&(u||!d)),t(l)}}function $C(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}var $g={name:"autolink",tokenize:yB};function yB(e,t,r){let n=0;return o;function o(f){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(f),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),i}function i(f){return Dt(f)?(e.consume(f),s):f===64?r(f):c(f)}function s(f){return f===43||f===45||f===46||st(f)?(n=1,a(f)):c(f)}function a(f){return f===58?(e.consume(f),n=0,l):(f===43||f===45||f===46||st(f))&&n++<32?(e.consume(f),a):(n=0,c(f))}function l(f){return f===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(f),e.exit("autolinkMarker"),e.exit("autolink"),t):f===null||f===32||f===60||xi(f)?r(f):(e.consume(f),l)}function c(f){return f===64?(e.consume(f),u):MD(f)?(e.consume(f),c):r(f)}function u(f){return st(f)?d(f):r(f)}function d(f){return f===46?(e.consume(f),n=0,u):f===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(f),e.exit("autolinkMarker"),e.exit("autolink"),t):p(f)}function p(f){if((f===45||st(f))&&n++<63){let m=f===45?p:d;return e.consume(f),m}return r(f)}}function pe(e,t,r,n){let o=n?n-1:Number.POSITIVE_INFINITY,i=0;return s;function s(l){return ae(l)?(e.enter(r),a(l)):t(l)}function a(l){return ae(l)&&i++<o?(e.consume(l),a):(e.exit(r),t(l))}}var yn={partial:!0,tokenize:bB};function bB(e,t,r){return n;function n(i){return ae(i)?pe(e,o,"linePrefix")(i):o(i)}function o(i){return i===null||Z(i)?t(i):r(i)}}var mp={continuation:{tokenize:wB},exit:SB,name:"blockQuote",tokenize:vB};function vB(e,t,r){let n=this;return o;function o(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"),i}return r(s)}function i(s){return ae(s)?(e.enter("blockQuotePrefixWhitespace"),e.consume(s),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(s))}}function wB(e,t,r){let n=this;return o;function o(s){return ae(s)?pe(e,i,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(s):i(s)}function i(s){return e.attempt(mp,t,r)(s)}}function SB(e){e.exit("blockQuote")}var hp={name:"characterEscape",tokenize:kB};function kB(e,t,r){return n;function n(i){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(i),e.exit("escapeMarker"),o}function o(i){return $D(i)?(e.enter("characterEscapeValue"),e.consume(i),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):r(i)}}var gp={name:"characterReference",tokenize:TB};function TB(e,t,r){let n=this,o=0,i,s;return a;function a(d){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(d),e.exit("characterReferenceMarker"),l}function l(d){return d===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(d),e.exit("characterReferenceMarkerNumeric"),c):(e.enter("characterReferenceValue"),i=31,s=st,u(d))}function c(d){return d===88||d===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(d),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),i=6,s=ID,u):(e.enter("characterReferenceValue"),i=7,s=pl,u(d))}function u(d){if(d===59&&o){let p=e.exit("characterReferenceValue");return s===st&&!yo(n.sliceSerialize(p))?r(d):(e.enter("characterReferenceMarker"),e.consume(d),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return s(d)&&o++<i?(e.consume(d),u):r(d)}}var AC={partial:!0,tokenize:CB},xp={concrete:!0,name:"codeFenced",tokenize:DB};function DB(e,t,r){let n=this,o={partial:!0,tokenize:j},i=0,s=0,a;return l;function l(M){return c(M)}function c(M){let U=n.events[n.events.length-1];return i=U&&U[1].type==="linePrefix"?U[2].sliceSerialize(U[1],!0).length:0,a=M,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),u(M)}function u(M){return M===a?(s++,e.consume(M),u):s<3?r(M):(e.exit("codeFencedFenceSequence"),ae(M)?pe(e,d,"whitespace")(M):d(M))}function d(M){return M===null||Z(M)?(e.exit("codeFencedFence"),n.interrupt?t(M):e.check(AC,g,H)(M)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),p(M))}function p(M){return M===null||Z(M)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),d(M)):ae(M)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),pe(e,f,"whitespace")(M)):M===96&&M===a?r(M):(e.consume(M),p)}function f(M){return M===null||Z(M)?d(M):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),m(M))}function m(M){return M===null||Z(M)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),d(M)):M===96&&M===a?r(M):(e.consume(M),m)}function g(M){return e.attempt(o,H,x)(M)}function x(M){return e.enter("lineEnding"),e.consume(M),e.exit("lineEnding"),y}function y(M){return i>0&&ae(M)?pe(e,T,"linePrefix",i+1)(M):T(M)}function T(M){return M===null||Z(M)?e.check(AC,g,H)(M):(e.enter("codeFlowValue"),D(M))}function D(M){return M===null||Z(M)?(e.exit("codeFlowValue"),T(M)):(e.consume(M),D)}function H(M){return e.exit("codeFenced"),t(M)}function j(M,U,le){let ee=0;return _;function _(z){return M.enter("lineEnding"),M.consume(z),M.exit("lineEnding"),_e}function _e(z){return M.enter("codeFencedFence"),ae(z)?pe(M,Q,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(z):Q(z)}function Q(z){return z===a?(M.enter("codeFencedFenceSequence"),L(z)):le(z)}function L(z){return z===a?(ee++,M.consume(z),L):ee>=s?(M.exit("codeFencedFenceSequence"),ae(z)?pe(M,F,"whitespace")(z):F(z)):le(z)}function F(z){return z===null||Z(z)?(M.exit("codeFencedFence"),U(z)):le(z)}}}function CB(e,t,r){let n=this;return o;function o(s){return s===null?r(s):(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),i)}function i(s){return n.parser.lazy[n.now().line]?r(s):t(s)}}var xl={name:"codeIndented",tokenize:MB},EB={partial:!0,tokenize:IB};function MB(e,t,r){let n=this;return o;function o(c){return e.enter("codeIndented"),pe(e,i,"linePrefix",5)(c)}function i(c){let u=n.events[n.events.length-1];return u&&u[1].type==="linePrefix"&&u[2].sliceSerialize(u[1],!0).length>=4?s(c):r(c)}function s(c){return c===null?l(c):Z(c)?e.attempt(EB,s,l)(c):(e.enter("codeFlowValue"),a(c))}function a(c){return c===null||Z(c)?(e.exit("codeFlowValue"),s(c)):(e.consume(c),a)}function l(c){return e.exit("codeIndented"),t(c)}}function IB(e,t,r){let n=this;return o;function o(s){return n.parser.lazy[n.now().line]?r(s):Z(s)?(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),o):pe(e,i,"linePrefix",5)(s)}function i(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):Z(s)?o(s):r(s)}}var Ag={name:"codeText",previous:AB,resolve:$B,tokenize:_B};function $B(e){let t=e.length-4,r=3,n,o;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;)o===void 0?n!==t&&e[n][1].type!=="lineEnding"&&(o=n):(n===t||e[n][1].type==="lineEnding")&&(e[o][1].type="codeTextData",n!==o+2&&(e[o][1].end=e[n-1][1].end,e.splice(o+2,n-o-2),t-=n-o-2,n=o+2),o=void 0);return e}function AB(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function _B(e,t,r){let n=this,o=0,i,s;return a;function a(p){return e.enter("codeText"),e.enter("codeTextSequence"),l(p)}function l(p){return p===96?(e.consume(p),o++,l):(e.exit("codeTextSequence"),c(p))}function c(p){return p===null?r(p):p===32?(e.enter("space"),e.consume(p),e.exit("space"),c):p===96?(s=e.enter("codeTextSequence"),i=0,d(p)):Z(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),c):(e.enter("codeTextData"),u(p))}function u(p){return p===null||p===32||p===96||Z(p)?(e.exit("codeTextData"),c(p)):(e.consume(p),u)}function d(p){return p===96?(e.consume(p),i++,d):i===o?(e.exit("codeTextSequence"),e.exit("codeText"),t(p)):(s.type="codeTextData",u(p))}}var bl=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 o=r||0;this.setCursor(Math.trunc(t));let i=this.right.splice(this.right.length-o,Number.POSITIVE_INFINITY);return n&&yl(this.left,n),i.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),yl(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),yl(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);yl(this.right,r.reverse())}else{let r=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);yl(this.left,r.reverse())}}};function yl(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 yp(e){let t={},r=-1,n,o,i,s,a,l,c,u=new bl(e);for(;++r<u.length;){for(;r in t;)r=t[r];if(n=u.get(r),r&&n[1].type==="chunkFlow"&&u.get(r-1)[1].type==="listItemPrefix"&&(l=n[1]._tokenizer.events,i=0,i<l.length&&l[i][1].type==="lineEndingBlank"&&(i+=2),i<l.length&&l[i][1].type==="content"))for(;++i<l.length&&l[i][1].type!=="content";)l[i][1].type==="chunkText"&&(l[i][1]._isInFirstContentOfListItem=!0,i++);if(n[0]==="enter")n[1].contentType&&(Object.assign(t,OB(u,r)),r=t[r],c=!0);else if(n[1]._container){for(i=r,o=void 0;i--;)if(s=u.get(i),s[1].type==="lineEnding"||s[1].type==="lineEndingBlank")s[0]==="enter"&&(o&&(u.get(o)[1].type="lineEndingBlank"),s[1].type="lineEnding",o=i);else if(!(s[1].type==="linePrefix"||s[1].type==="listItemIndent"))break;o&&(n[1].end={...u.get(o)[1].start},a=u.slice(o,r),a.unshift(n),u.splice(o,r-o+1,a))}}return dt(e,0,Number.POSITIVE_INFINITY,u.slice(0)),!c}function OB(e,t){let r=e.get(t)[1],n=e.get(t)[2],o=t-1,i=[],s=r._tokenizer;s||(s=n.parser[r.contentType](r.start),r._contentTypeTextTrailing&&(s._contentTypeTextTrailing=!0));let a=s.events,l=[],c={},u,d,p=-1,f=r,m=0,g=0,x=[g];for(;f;){for(;e.get(++o)[1]!==f;);i.push(o),f._tokenizer||(u=n.sliceStream(f),f.next||u.push(null),d&&s.defineSkip(f.start),f._isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=!0),s.write(u),f._isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=void 0)),d=f,f=f.next}for(f=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&&(g=p+1,x.push(g),f._tokenizer=void 0,f.previous=void 0,f=f.next);for(s.events=[],f?(f._tokenizer=void 0,f.previous=void 0):x.pop(),p=x.length;p--;){let y=a.slice(x[p],x[p+1]),T=i.pop();l.push([T,T+y.length-1]),e.splice(T,2,y)}for(l.reverse(),p=-1;++p<l.length;)c[m+l[p][0]]=m+l[p][1],m+=l[p][1]-l[p][0]-1;return c}var _g={resolve:NB,tokenize:PB},LB={partial:!0,tokenize:FB};function NB(e){return yp(e),e}function PB(e,t){let r;return n;function n(a){return e.enter("content"),r=e.enter("chunkContent",{contentType:"content"}),o(a)}function o(a){return a===null?i(a):Z(a)?e.check(LB,s,i)(a):(e.consume(a),o)}function i(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,o}}function FB(e,t,r){let n=this;return o;function o(s){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),pe(e,i,"linePrefix")}function i(s){if(s===null||Z(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 bp(e,t,r,n,o,i,s,a,l){let c=l||Number.POSITIVE_INFINITY,u=0;return d;function d(y){return y===60?(e.enter(n),e.enter(o),e.enter(i),e.consume(y),e.exit(i),p):y===null||y===32||y===41||xi(y)?r(y):(e.enter(n),e.enter(s),e.enter(a),e.enter("chunkString",{contentType:"string"}),g(y))}function p(y){return y===62?(e.enter(i),e.consume(y),e.exit(i),e.exit(o),e.exit(n),t):(e.enter(a),e.enter("chunkString",{contentType:"string"}),f(y))}function f(y){return y===62?(e.exit("chunkString"),e.exit(a),p(y)):y===null||y===60||Z(y)?r(y):(e.consume(y),y===92?m:f)}function m(y){return y===60||y===62||y===92?(e.consume(y),f):f(y)}function g(y){return!u&&(y===null||y===41||Ce(y))?(e.exit("chunkString"),e.exit(a),e.exit(s),e.exit(n),t(y)):u<c&&y===40?(e.consume(y),u++,g):y===41?(e.consume(y),u--,g):y===null||y===32||y===40||xi(y)?r(y):(e.consume(y),y===92?x:g)}function x(y){return y===40||y===41||y===92?(e.consume(y),g):g(y)}}function vp(e,t,r,n,o,i){let s=this,a=0,l;return c;function c(f){return e.enter(n),e.enter(o),e.consume(f),e.exit(o),e.enter(i),u}function u(f){return a>999||f===null||f===91||f===93&&!l||f===94&&!a&&"_hiddenFootnoteSupport"in s.parser.constructs?r(f):f===93?(e.exit(i),e.enter(o),e.consume(f),e.exit(o),e.exit(n),t):Z(f)?(e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),u):(e.enter("chunkString",{contentType:"string"}),d(f))}function d(f){return f===null||f===91||f===93||Z(f)||a++>999?(e.exit("chunkString"),u(f)):(e.consume(f),l||(l=!ae(f)),f===92?p:d)}function p(f){return f===91||f===92||f===93?(e.consume(f),a++,d):d(f)}}function wp(e,t,r,n,o,i){let s;return a;function a(p){return p===34||p===39||p===40?(e.enter(n),e.enter(o),e.consume(p),e.exit(o),s=p===40?41:p,l):r(p)}function l(p){return p===s?(e.enter(o),e.consume(p),e.exit(o),e.exit(n),t):(e.enter(i),c(p))}function c(p){return p===s?(e.exit(i),l(s)):p===null?r(p):Z(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),pe(e,c,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),u(p))}function u(p){return p===s||p===null||Z(p)?(e.exit("chunkString"),c(p)):(e.consume(p),p===92?d:u)}function d(p){return p===s||p===92?(e.consume(p),u):u(p)}}function Ti(e,t){let r;return n;function n(o){return Z(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),r=!0,n):ae(o)?pe(e,n,r?"linePrefix":"lineSuffix")(o):t(o)}}var Og={name:"definition",tokenize:BB},RB={partial:!0,tokenize:zB};function BB(e,t,r){let n=this,o;return i;function i(f){return e.enter("definition"),s(f)}function s(f){return vp.call(n,e,a,r,"definitionLabel","definitionLabelMarker","definitionLabelString")(f)}function a(f){return o=at(n.sliceSerialize(n.events[n.events.length-1][1]).slice(1,-1)),f===58?(e.enter("definitionMarker"),e.consume(f),e.exit("definitionMarker"),l):r(f)}function l(f){return Ce(f)?Ti(e,c)(f):c(f)}function c(f){return bp(e,u,r,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(f)}function u(f){return e.attempt(RB,d,d)(f)}function d(f){return ae(f)?pe(e,p,"whitespace")(f):p(f)}function p(f){return f===null||Z(f)?(e.exit("definition"),n.parser.defined.push(o),t(f)):r(f)}}function zB(e,t,r){return n;function n(a){return Ce(a)?Ti(e,o)(a):r(a)}function o(a){return wp(e,i,r,"definitionTitle","definitionTitleMarker","definitionTitleString")(a)}function i(a){return ae(a)?pe(e,s,"whitespace")(a):s(a)}function s(a){return a===null||Z(a)?t(a):r(a)}}var Lg={name:"hardBreakEscape",tokenize:HB};function HB(e,t,r){return n;function n(i){return e.enter("hardBreakEscape"),e.consume(i),o}function o(i){return Z(i)?(e.exit("hardBreakEscape"),t(i)):r(i)}}var Ng={name:"headingAtx",resolve:UB,tokenize:jB};function UB(e,t){let r=e.length-2,n=3,o,i;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&&(o={type:"atxHeadingText",start:e[n][1].start,end:e[r][1].end},i={type:"chunkText",start:e[n][1].start,end:e[r][1].end,contentType:"text"},dt(e,n,r-n+1,[["enter",o,t],["enter",i,t],["exit",i,t],["exit",o,t]])),e}function jB(e,t,r){let n=0;return o;function o(u){return e.enter("atxHeading"),i(u)}function i(u){return e.enter("atxHeadingSequence"),s(u)}function s(u){return u===35&&n++<6?(e.consume(u),s):u===null||Ce(u)?(e.exit("atxHeadingSequence"),a(u)):r(u)}function a(u){return u===35?(e.enter("atxHeadingSequence"),l(u)):u===null||Z(u)?(e.exit("atxHeading"),t(u)):ae(u)?pe(e,a,"whitespace")(u):(e.enter("atxHeadingText"),c(u))}function l(u){return u===35?(e.consume(u),l):(e.exit("atxHeadingSequence"),a(u))}function c(u){return u===null||u===35||Ce(u)?(e.exit("atxHeadingText"),a(u)):(e.consume(u),c)}}var _C=["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"],Pg=["pre","script","style","textarea"];var Fg={concrete:!0,name:"htmlFlow",resolveTo:WB,tokenize:VB},qB={partial:!0,tokenize:QB},YB={partial:!0,tokenize:GB};function WB(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 VB(e,t,r){let n=this,o,i,s,a,l;return c;function c(k){return u(k)}function u(k){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(k),d}function d(k){return k===33?(e.consume(k),p):k===47?(e.consume(k),i=!0,g):k===63?(e.consume(k),o=3,n.interrupt?t:w):Dt(k)?(e.consume(k),s=String.fromCharCode(k),x):r(k)}function p(k){return k===45?(e.consume(k),o=2,f):k===91?(e.consume(k),o=5,a=0,m):Dt(k)?(e.consume(k),o=4,n.interrupt?t:w):r(k)}function f(k){return k===45?(e.consume(k),n.interrupt?t:w):r(k)}function m(k){let Ke="CDATA[";return k===Ke.charCodeAt(a++)?(e.consume(k),a===Ke.length?n.interrupt?t:Q:m):r(k)}function g(k){return Dt(k)?(e.consume(k),s=String.fromCharCode(k),x):r(k)}function x(k){if(k===null||k===47||k===62||Ce(k)){let Ke=k===47,gt=s.toLowerCase();return!Ke&&!i&&Pg.includes(gt)?(o=1,n.interrupt?t(k):Q(k)):_C.includes(s.toLowerCase())?(o=6,Ke?(e.consume(k),y):n.interrupt?t(k):Q(k)):(o=7,n.interrupt&&!n.parser.lazy[n.now().line]?r(k):i?T(k):D(k))}return k===45||st(k)?(e.consume(k),s+=String.fromCharCode(k),x):r(k)}function y(k){return k===62?(e.consume(k),n.interrupt?t:Q):r(k)}function T(k){return ae(k)?(e.consume(k),T):_(k)}function D(k){return k===47?(e.consume(k),_):k===58||k===95||Dt(k)?(e.consume(k),H):ae(k)?(e.consume(k),D):_(k)}function H(k){return k===45||k===46||k===58||k===95||st(k)?(e.consume(k),H):j(k)}function j(k){return k===61?(e.consume(k),M):ae(k)?(e.consume(k),j):D(k)}function M(k){return k===null||k===60||k===61||k===62||k===96?r(k):k===34||k===39?(e.consume(k),l=k,U):ae(k)?(e.consume(k),M):le(k)}function U(k){return k===l?(e.consume(k),l=null,ee):k===null||Z(k)?r(k):(e.consume(k),U)}function le(k){return k===null||k===34||k===39||k===47||k===60||k===61||k===62||k===96||Ce(k)?j(k):(e.consume(k),le)}function ee(k){return k===47||k===62||ae(k)?D(k):r(k)}function _(k){return k===62?(e.consume(k),_e):r(k)}function _e(k){return k===null||Z(k)?Q(k):ae(k)?(e.consume(k),_e):r(k)}function Q(k){return k===45&&o===2?(e.consume(k),Y):k===60&&o===1?(e.consume(k),re):k===62&&o===4?(e.consume(k),Ie):k===63&&o===3?(e.consume(k),w):k===93&&o===5?(e.consume(k),we):Z(k)&&(o===6||o===7)?(e.exit("htmlFlowData"),e.check(qB,Ne,L)(k)):k===null||Z(k)?(e.exit("htmlFlowData"),L(k)):(e.consume(k),Q)}function L(k){return e.check(YB,F,Ne)(k)}function F(k){return e.enter("lineEnding"),e.consume(k),e.exit("lineEnding"),z}function z(k){return k===null||Z(k)?L(k):(e.enter("htmlFlowData"),Q(k))}function Y(k){return k===45?(e.consume(k),w):Q(k)}function re(k){return k===47?(e.consume(k),s="",ie):Q(k)}function ie(k){if(k===62){let Ke=s.toLowerCase();return Pg.includes(Ke)?(e.consume(k),Ie):Q(k)}return Dt(k)&&s.length<8?(e.consume(k),s+=String.fromCharCode(k),ie):Q(k)}function we(k){return k===93?(e.consume(k),w):Q(k)}function w(k){return k===62?(e.consume(k),Ie):k===45&&o===2?(e.consume(k),w):Q(k)}function Ie(k){return k===null||Z(k)?(e.exit("htmlFlowData"),Ne(k)):(e.consume(k),Ie)}function Ne(k){return e.exit("htmlFlow"),t(k)}}function GB(e,t,r){let n=this;return o;function o(s){return Z(s)?(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),i):r(s)}function i(s){return n.parser.lazy[n.now().line]?r(s):t(s)}}function QB(e,t,r){return n;function n(o){return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),e.attempt(yn,t,r)}}var Rg={name:"htmlText",tokenize:XB};function XB(e,t,r){let n=this,o,i,s;return a;function a(w){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(w),l}function l(w){return w===33?(e.consume(w),c):w===47?(e.consume(w),j):w===63?(e.consume(w),D):Dt(w)?(e.consume(w),le):r(w)}function c(w){return w===45?(e.consume(w),u):w===91?(e.consume(w),i=0,m):Dt(w)?(e.consume(w),T):r(w)}function u(w){return w===45?(e.consume(w),f):r(w)}function d(w){return w===null?r(w):w===45?(e.consume(w),p):Z(w)?(s=d,re(w)):(e.consume(w),d)}function p(w){return w===45?(e.consume(w),f):d(w)}function f(w){return w===62?Y(w):w===45?p(w):d(w)}function m(w){let Ie="CDATA[";return w===Ie.charCodeAt(i++)?(e.consume(w),i===Ie.length?g:m):r(w)}function g(w){return w===null?r(w):w===93?(e.consume(w),x):Z(w)?(s=g,re(w)):(e.consume(w),g)}function x(w){return w===93?(e.consume(w),y):g(w)}function y(w){return w===62?Y(w):w===93?(e.consume(w),y):g(w)}function T(w){return w===null||w===62?Y(w):Z(w)?(s=T,re(w)):(e.consume(w),T)}function D(w){return w===null?r(w):w===63?(e.consume(w),H):Z(w)?(s=D,re(w)):(e.consume(w),D)}function H(w){return w===62?Y(w):D(w)}function j(w){return Dt(w)?(e.consume(w),M):r(w)}function M(w){return w===45||st(w)?(e.consume(w),M):U(w)}function U(w){return Z(w)?(s=U,re(w)):ae(w)?(e.consume(w),U):Y(w)}function le(w){return w===45||st(w)?(e.consume(w),le):w===47||w===62||Ce(w)?ee(w):r(w)}function ee(w){return w===47?(e.consume(w),Y):w===58||w===95||Dt(w)?(e.consume(w),_):Z(w)?(s=ee,re(w)):ae(w)?(e.consume(w),ee):Y(w)}function _(w){return w===45||w===46||w===58||w===95||st(w)?(e.consume(w),_):_e(w)}function _e(w){return w===61?(e.consume(w),Q):Z(w)?(s=_e,re(w)):ae(w)?(e.consume(w),_e):ee(w)}function Q(w){return w===null||w===60||w===61||w===62||w===96?r(w):w===34||w===39?(e.consume(w),o=w,L):Z(w)?(s=Q,re(w)):ae(w)?(e.consume(w),Q):(e.consume(w),F)}function L(w){return w===o?(e.consume(w),o=void 0,z):w===null?r(w):Z(w)?(s=L,re(w)):(e.consume(w),L)}function F(w){return w===null||w===34||w===39||w===60||w===61||w===96?r(w):w===47||w===62||Ce(w)?ee(w):(e.consume(w),F)}function z(w){return w===47||w===62||Ce(w)?ee(w):r(w)}function Y(w){return w===62?(e.consume(w),e.exit("htmlTextData"),e.exit("htmlText"),t):r(w)}function re(w){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(w),e.exit("lineEnding"),ie}function ie(w){return ae(w)?pe(e,we,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(w):we(w)}function we(w){return e.enter("htmlTextData"),s(w)}}var Di={name:"labelEnd",resolveAll:e8,resolveTo:t8,tokenize:r8},JB={tokenize:n8},ZB={tokenize:o8},KB={tokenize:i8};function e8(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 o=n.type==="labelImage"?4:2;n.type="data",t+=o}}return e.length!==r.length&&dt(e,0,e.length,r),e}function t8(e,t){let r=e.length,n=0,o,i,s,a;for(;r--;)if(o=e[r][1],i){if(o.type==="link"||o.type==="labelLink"&&o._inactive)break;e[r][0]==="enter"&&o.type==="labelLink"&&(o._inactive=!0)}else if(s){if(e[r][0]==="enter"&&(o.type==="labelImage"||o.type==="labelLink")&&!o._balanced&&(i=r,o.type!=="labelLink")){n=2;break}}else o.type==="labelEnd"&&(s=r);let l={type:e[i][1].type==="labelLink"?"link":"image",start:{...e[i][1].start},end:{...e[e.length-1][1].end}},c={type:"label",start:{...e[i][1].start},end:{...e[s][1].end}},u={type:"labelText",start:{...e[i+n+2][1].end},end:{...e[s-2][1].start}};return a=[["enter",l,t],["enter",c,t]],a=wt(a,e.slice(i+1,i+n+3)),a=wt(a,[["enter",u,t]]),a=wt(a,bo(t.parser.constructs.insideSpan.null,e.slice(i+n+4,s-3),t)),a=wt(a,[["exit",u,t],e[s-2],e[s-1],["exit",c,t]]),a=wt(a,e.slice(s+1)),a=wt(a,[["exit",l,t]]),dt(e,i,e.length,a),e}function r8(e,t,r){let n=this,o=n.events.length,i,s;for(;o--;)if((n.events[o][1].type==="labelImage"||n.events[o][1].type==="labelLink")&&!n.events[o][1]._balanced){i=n.events[o][1];break}return a;function a(p){return i?i._inactive?d(p):(s=n.parser.defined.includes(at(n.sliceSerialize({start:i.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(JB,u,s?u:d)(p):p===91?e.attempt(ZB,u,s?c:d)(p):s?u(p):d(p)}function c(p){return e.attempt(KB,u,d)(p)}function u(p){return t(p)}function d(p){return i._balanced=!0,r(p)}}function n8(e,t,r){return n;function n(d){return e.enter("resource"),e.enter("resourceMarker"),e.consume(d),e.exit("resourceMarker"),o}function o(d){return Ce(d)?Ti(e,i)(d):i(d)}function i(d){return d===41?u(d):bp(e,s,a,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(d)}function s(d){return Ce(d)?Ti(e,l)(d):u(d)}function a(d){return r(d)}function l(d){return d===34||d===39||d===40?wp(e,c,r,"resourceTitle","resourceTitleMarker","resourceTitleString")(d):u(d)}function c(d){return Ce(d)?Ti(e,u)(d):u(d)}function u(d){return d===41?(e.enter("resourceMarker"),e.consume(d),e.exit("resourceMarker"),e.exit("resource"),t):r(d)}}function o8(e,t,r){let n=this;return o;function o(a){return vp.call(n,e,i,s,"reference","referenceMarker","referenceString")(a)}function i(a){return n.parser.defined.includes(at(n.sliceSerialize(n.events[n.events.length-1][1]).slice(1,-1)))?t(a):r(a)}function s(a){return r(a)}}function i8(e,t,r){return n;function n(i){return e.enter("reference"),e.enter("referenceMarker"),e.consume(i),e.exit("referenceMarker"),o}function o(i){return i===93?(e.enter("referenceMarker"),e.consume(i),e.exit("referenceMarker"),e.exit("reference"),t):r(i)}}var Bg={name:"labelStartImage",resolveAll:Di.resolveAll,tokenize:s8};function s8(e,t,r){let n=this;return o;function o(a){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(a),e.exit("labelImageMarker"),i}function i(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 zg={name:"labelStartLink",resolveAll:Di.resolveAll,tokenize:a8};function a8(e,t,r){let n=this;return o;function o(s){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(s),e.exit("labelMarker"),e.exit("labelLink"),i}function i(s){return s===94&&"_hiddenFootnoteSupport"in n.parser.constructs?r(s):t(s)}}var vl={name:"lineEnding",tokenize:l8};function l8(e,t){return r;function r(n){return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),pe(e,t,"linePrefix")}}var Ci={name:"thematicBreak",tokenize:c8};function c8(e,t,r){let n=0,o;return i;function i(c){return e.enter("thematicBreak"),s(c)}function s(c){return o=c,a(c)}function a(c){return c===o?(e.enter("thematicBreakSequence"),l(c)):n>=3&&(c===null||Z(c))?(e.exit("thematicBreak"),t(c)):r(c)}function l(c){return c===o?(e.consume(c),n++,l):(e.exit("thematicBreakSequence"),ae(c)?pe(e,a,"whitespace")(c):a(c))}}var qt={continuation:{tokenize:f8},exit:h8,name:"list",tokenize:p8},u8={partial:!0,tokenize:g8},d8={partial:!0,tokenize:m8};function p8(e,t,r){let n=this,o=n.events[n.events.length-1],i=o&&o[1].type==="linePrefix"?o[2].sliceSerialize(o[1],!0).length:0,s=0;return a;function a(f){let m=n.containerState.type||(f===42||f===43||f===45?"listUnordered":"listOrdered");if(m==="listUnordered"?!n.containerState.marker||f===n.containerState.marker:pl(f)){if(n.containerState.type||(n.containerState.type=m,e.enter(m,{_container:!0})),m==="listUnordered")return e.enter("listItemPrefix"),f===42||f===45?e.check(Ci,r,c)(f):c(f);if(!n.interrupt||f===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),l(f)}return r(f)}function l(f){return pl(f)&&++s<10?(e.consume(f),l):(!n.interrupt||s<2)&&(n.containerState.marker?f===n.containerState.marker:f===41||f===46)?(e.exit("listItemValue"),c(f)):r(f)}function c(f){return e.enter("listItemMarker"),e.consume(f),e.exit("listItemMarker"),n.containerState.marker=n.containerState.marker||f,e.check(yn,n.interrupt?r:u,e.attempt(u8,p,d))}function u(f){return n.containerState.initialBlankLine=!0,i++,p(f)}function d(f){return ae(f)?(e.enter("listItemPrefixWhitespace"),e.consume(f),e.exit("listItemPrefixWhitespace"),p):r(f)}function p(f){return n.containerState.size=i+n.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(f)}}function f8(e,t,r){let n=this;return n.containerState._closeFlow=void 0,e.check(yn,o,i);function o(a){return n.containerState.furtherBlankLines=n.containerState.furtherBlankLines||n.containerState.initialBlankLine,pe(e,t,"listItemIndent",n.containerState.size+1)(a)}function i(a){return n.containerState.furtherBlankLines||!ae(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(d8,t,s)(a))}function s(a){return n.containerState._closeFlow=!0,n.interrupt=void 0,pe(e,e.attempt(qt,t,r),"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(a)}}function m8(e,t,r){let n=this;return pe(e,o,"listItemIndent",n.containerState.size+1);function o(i){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(i):r(i)}}function h8(e){e.exit(this.containerState.type)}function g8(e,t,r){let n=this;return pe(e,o,"listItemPrefixWhitespace",n.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function o(i){let s=n.events[n.events.length-1];return!ae(i)&&s&&s[1].type==="listItemPrefixWhitespace"?t(i):r(i)}}var Sp={name:"setextUnderline",resolveTo:x8,tokenize:y8};function x8(e,t){let r=e.length,n,o,i;for(;r--;)if(e[r][0]==="enter"){if(e[r][1].type==="content"){n=r;break}e[r][1].type==="paragraph"&&(o=r)}else e[r][1].type==="content"&&e.splice(r,1),!i&&e[r][1].type==="definition"&&(i=r);let s={type:"setextHeading",start:{...e[n][1].start},end:{...e[e.length-1][1].end}};return e[o][1].type="setextHeadingText",i?(e.splice(o,0,["enter",s,t]),e.splice(i+1,0,["exit",e[n][1],t]),e[n][1].end={...e[i][1].end}):e[n][1]=s,e.push(["exit",s,t]),e}function y8(e,t,r){let n=this,o;return i;function i(c){let u=n.events.length,d;for(;u--;)if(n.events[u][1].type!=="lineEnding"&&n.events[u][1].type!=="linePrefix"&&n.events[u][1].type!=="content"){d=n.events[u][1].type==="paragraph";break}return!n.parser.lazy[n.now().line]&&(n.interrupt||d)?(e.enter("setextHeadingLine"),o=c,s(c)):r(c)}function s(c){return e.enter("setextHeadingLineSequence"),a(c)}function a(c){return c===o?(e.consume(c),a):(e.exit("setextHeadingLineSequence"),ae(c)?pe(e,l,"lineSuffix")(c):l(c))}function l(c){return c===null||Z(c)?(e.exit("setextHeadingLine"),t(c)):r(c)}}var b8={tokenize:C8,partial:!0};function Hg(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:k8,continuation:{tokenize:T8},exit:D8}},text:{91:{name:"gfmFootnoteCall",tokenize:S8},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:v8,resolveTo:w8}}}}function v8(e,t,r){let n=this,o=n.events.length,i=n.parser.gfmFootnotes||(n.parser.gfmFootnotes=[]),s;for(;o--;){let l=n.events[o][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 c=at(n.sliceSerialize({start:s.end,end:n.now()}));return c.codePointAt(0)!==94||!i.includes(c.slice(1))?r(l):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(l),e.exit("gfmFootnoteCallLabelMarker"),t(l))}}function w8(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 o={type:"gfmFootnoteCall",start:Object.assign({},e[r+3][1].start),end:Object.assign({},e[e.length-1][1].end)},i={type:"gfmFootnoteCallMarker",start:Object.assign({},e[r+3][1].end),end:Object.assign({},e[r+3][1].end)};i.end.column++,i.end.offset++,i.end._bufferIndex++;let s={type:"gfmFootnoteCallString",start:Object.assign({},i.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",o,t],e[r+3],e[r+4],["enter",i,t],["exit",i,t],["enter",s,t],["enter",a,t],["exit",a,t],["exit",s,t],e[e.length-2],e[e.length-1],["exit",o,t]];return e.splice(r,e.length-r+1,...l),e}function S8(e,t,r){let n=this,o=n.parser.gfmFootnotes||(n.parser.gfmFootnotes=[]),i=0,s;return a;function a(d){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(d),e.exit("gfmFootnoteCallLabelMarker"),l}function l(d){return d!==94?r(d):(e.enter("gfmFootnoteCallMarker"),e.consume(d),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",c)}function c(d){if(i>999||d===93&&!s||d===null||d===91||Ce(d))return r(d);if(d===93){e.exit("chunkString");let p=e.exit("gfmFootnoteCallString");return o.includes(at(n.sliceSerialize(p)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(d),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):r(d)}return Ce(d)||(s=!0),i++,e.consume(d),d===92?u:c}function u(d){return d===91||d===92||d===93?(e.consume(d),i++,c):c(d)}}function k8(e,t,r){let n=this,o=n.parser.gfmFootnotes||(n.parser.gfmFootnotes=[]),i,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"),c}function c(m){return m===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(m),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",u):r(m)}function u(m){if(s>999||m===93&&!a||m===null||m===91||Ce(m))return r(m);if(m===93){e.exit("chunkString");let g=e.exit("gfmFootnoteDefinitionLabelString");return i=at(n.sliceSerialize(g)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(m),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),p}return Ce(m)||(a=!0),s++,e.consume(m),m===92?d:u}function d(m){return m===91||m===92||m===93?(e.consume(m),s++,u):u(m)}function p(m){return m===58?(e.enter("definitionMarker"),e.consume(m),e.exit("definitionMarker"),o.includes(i)||o.push(i),pe(e,f,"gfmFootnoteDefinitionWhitespace")):r(m)}function f(m){return t(m)}}function T8(e,t,r){return e.check(yn,t,e.attempt(b8,t,r))}function D8(e){e.exit("gfmFootnoteDefinition")}function C8(e,t,r){let n=this;return pe(e,o,"gfmFootnoteDefinitionIndent",5);function o(i){let s=n.events[n.events.length-1];return s&&s[1].type==="gfmFootnoteDefinitionIndent"&&s[2].sliceSerialize(s[1],!0).length===4?t(i):r(i)}}var E8={}.hasOwnProperty,M8={};function OC(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function Ug(e){let t=e||M8,r=t.label||"Footnotes",n=t.labelTagName||"h2",o=t.labelAttributes===null||t.labelAttributes===void 0?'class="sr-only"':t.labelAttributes,i=t.backLabel||OC,s=t.clobberPrefix===null||t.clobberPrefix===void 0?"user-content-":t.clobberPrefix;return{enter:{gfmFootnoteDefinition(){this.getData("tightStack").push(!1)},gfmFootnoteDefinitionLabelString(){this.buffer()},gfmFootnoteCallString(){this.buffer()}},exit:{gfmFootnoteDefinition(){let a=this.getData("gfmFootnoteDefinitions"),l=this.getData("gfmFootnoteDefinitionStack"),c=this.getData("tightStack"),u=l.pop(),d=this.resume();a||this.setData("gfmFootnoteDefinitions",a={}),E8.call(a,u)||(a[u]=d),c.pop(),this.setData("slurpOneLineEnding",!0),this.setData("lastWasTag")},gfmFootnoteDefinitionLabelString(a){let l=this.getData("gfmFootnoteDefinitionStack");l||this.setData("gfmFootnoteDefinitionStack",l=[]),l.push(at(this.sliceSerialize(a))),this.resume(),this.buffer()},gfmFootnoteCallString(a){let l=this.getData("gfmFootnoteCallOrder"),c=this.getData("gfmFootnoteCallCounts"),u=at(this.sliceSerialize(a)),d;this.resume(),l||this.setData("gfmFootnoteCallOrder",l=[]),c||this.setData("gfmFootnoteCallCounts",c={});let p=l.indexOf(u),f=xn(u.toLowerCase());p===-1?(l.push(u),c[u]=1,d=l.length):(c[u]++,d=p+1);let m=c[u];this.tag('<sup><a href="#'+s+"fn-"+f+'" id="'+s+"fnref-"+f+(m>1?"-"+m:"")+'" data-footnote-ref="" aria-describedby="footnote-label">'+String(d)+"</a></sup>")},null(){let a=this.getData("gfmFootnoteCallOrder")||[],l=this.getData("gfmFootnoteCallCounts")||{},c=this.getData("gfmFootnoteDefinitions")||{},u=-1;for(a.length>0&&(this.lineEndingIfNeeded(),this.tag('<section data-footnotes="" class="footnotes"><'+n+' id="footnote-label"'+(o?" "+o:"")+">"),this.raw(this.encode(r)),this.tag("</"+n+">"),this.lineEndingIfNeeded(),this.tag("<ol>"));++u<a.length;){let d=a[u],p=xn(d.toLowerCase()),f=0,m=[];for(;++f<=l[d];)m.push('<a href="#'+s+"fnref-"+p+(f>1?"-"+f:"")+'" data-footnote-backref="" aria-label="'+this.encode(typeof i=="string"?i:i(u,f))+'" class="data-footnote-backref">\u21A9'+(f>1?"<sup>"+f+"</sup>":"")+"</a>");let g=m.join(" "),x=!1;this.lineEndingIfNeeded(),this.tag('<li id="'+s+"fn-"+p+'">'),this.lineEndingIfNeeded(),this.tag(c[d].replace(/<\/p>(?:\r?\n|\r)?$/,function(y){return x=!0," "+g+y})),x||(this.lineEndingIfNeeded(),this.tag(g)),this.lineEndingIfNeeded(),this.tag("</li>")}a.length>0&&(this.lineEndingIfNeeded(),this.tag("</ol>"),this.lineEndingIfNeeded(),this.tag("</section>"))}}}}function jg(){return{enter:{strikethrough(){this.tag("<del>")}},exit:{strikethrough(){this.tag("</del>")}}}}function qg(e){let r=(e||{}).singleTilde,n={name:"strikethrough",tokenize:i,resolveAll:o};return r==null&&(r=!0),{text:{126:n},insideSpan:{null:[n]},attentionMarkers:{null:[126]}};function o(s,a){let l=-1;for(;++l<s.length;)if(s[l][0]==="enter"&&s[l][1].type==="strikethroughSequenceTemporary"&&s[l][1]._close){let c=l;for(;c--;)if(s[c][0]==="exit"&&s[c][1].type==="strikethroughSequenceTemporary"&&s[c][1]._open&&s[l][1].end.offset-s[l][1].start.offset===s[c][1].end.offset-s[c][1].start.offset){s[l][1].type="strikethroughSequence",s[c][1].type="strikethroughSequence";let u={type:"strikethrough",start:Object.assign({},s[c][1].start),end:Object.assign({},s[l][1].end)},d={type:"strikethroughText",start:Object.assign({},s[c][1].end),end:Object.assign({},s[l][1].start)},p=[["enter",u,a],["enter",s[c][1],a],["exit",s[c][1],a],["enter",d,a]],f=a.parser.constructs.insideSpan.null;f&&dt(p,p.length,0,bo(f,s.slice(c+1,l),a)),dt(p,p.length,0,[["exit",d,a],["enter",s[l][1],a],["exit",s[l][1],a],["exit",u,a]]),dt(s,c-1,l-c+3,p),l=c+p.length-2;break}}for(l=-1;++l<s.length;)s[l][1].type==="strikethroughSequenceTemporary"&&(s[l][1].type="data");return s}function i(s,a,l){let c=this.previous,u=this.events,d=0;return p;function p(m){return c===126&&u[u.length-1][1].type!=="characterEscape"?l(m):(s.enter("strikethroughSequenceTemporary"),f(m))}function f(m){let g=Bn(c);if(m===126)return d>1?l(m):(s.consume(m),d++,f);if(d<2&&!r)return l(m);let x=s.exit("strikethroughSequenceTemporary"),y=Bn(m);return x._open=!y||y===2&&!!g,x._close=!g||g===2&&!!y,a(m)}}}var Yg={none:"",left:' align="left"',right:' align="right"',center:' align="center"'};function Wg(){return{enter:{table(e){let t=e._align;this.lineEndingIfNeeded(),this.tag("<table>"),this.setData("tableAlign",t)},tableBody(){this.tag("<tbody>")},tableData(){let e=this.getData("tableAlign"),t=this.getData("tableColumn"),r=Yg[e[t]];r===void 0?this.buffer():(this.lineEndingIfNeeded(),this.tag("<td"+r+">"))},tableHead(){this.lineEndingIfNeeded(),this.tag("<thead>")},tableHeader(){let e=this.getData("tableAlign"),t=this.getData("tableColumn"),r=Yg[e[t]];this.lineEndingIfNeeded(),this.tag("<th"+r+">")},tableRow(){this.setData("tableColumn",0),this.lineEndingIfNeeded(),this.tag("<tr>")}},exit:{codeTextData(e){let t=this.sliceSerialize(e);this.getData("tableAlign")&&(t=t.replace(/\\([\\|])/g,I8)),this.raw(this.encode(t))},table(){this.setData("tableAlign"),this.setData("slurpAllLineEndings"),this.lineEndingIfNeeded(),this.tag("</table>")},tableBody(){this.lineEndingIfNeeded(),this.tag("</tbody>")},tableData(){let e=this.getData("tableAlign"),t=this.getData("tableColumn");t in e?(this.tag("</td>"),this.setData("tableColumn",t+1)):this.resume()},tableHead(){this.lineEndingIfNeeded(),this.tag("</thead>")},tableHeader(){let e=this.getData("tableColumn");this.tag("</th>"),this.setData("tableColumn",e+1)},tableRow(){let e=this.getData("tableAlign"),t=this.getData("tableColumn");for(;t<e.length;)this.lineEndingIfNeeded(),this.tag("<td"+Yg[e[t]]+"></td>"),t++;this.setData("tableColumn",t),this.lineEndingIfNeeded(),this.tag("</tr>")}}}}function I8(e,t){return t==="|"?t:e}var kp=class{constructor(){this.map=[]}add(t,r,n){$8(this,t,r,n)}consume(t){if(this.map.sort(function(i,s){return i[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.slice()),t.length=0;let o=n.pop();for(;o;){for(let i of o)t.push(i);o=n.pop()}this.map.length=0}};function $8(e,t,r,n){let o=0;if(!(r===0&&n.length===0)){for(;o<e.map.length;){if(e.map[o][0]===t){e.map[o][1]+=r,e.map[o][2].push(...n);return}o+=1}e.map.push([t,r,n])}}function LC(e,t){let r=!1,n=[];for(;t<e.length;){let o=e[t];if(r){if(o[0]==="enter")o[1].type==="tableContent"&&n.push(e[t+1][1].type==="tableDelimiterMarker"?"left":"none");else if(o[1].type==="tableContent"){if(e[t-1][1].type==="tableDelimiterMarker"){let i=n.length-1;n[i]=n[i]==="left"?"center":"right"}}else if(o[1].type==="tableDelimiterRow")break}else o[0]==="enter"&&o[1].type==="tableDelimiterRow"&&(r=!0);t+=1}return n}function Vg(){return{flow:{null:{name:"table",tokenize:A8,resolveAll:_8}}}}function A8(e,t,r){let n=this,o=0,i=0,s;return a;function a(_){let _e=n.events.length-1;for(;_e>-1;){let F=n.events[_e][1].type;if(F==="lineEnding"||F==="linePrefix")_e--;else break}let Q=_e>-1?n.events[_e][1].type:null,L=Q==="tableHead"||Q==="tableRow"?M:l;return L===M&&n.parser.lazy[n.now().line]?r(_):L(_)}function l(_){return e.enter("tableHead"),e.enter("tableRow"),c(_)}function c(_){return _===124||(s=!0,i+=1),u(_)}function u(_){return _===null?r(_):Z(_)?i>1?(i=0,n.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(_),e.exit("lineEnding"),f):r(_):ae(_)?pe(e,u,"whitespace")(_):(i+=1,s&&(s=!1,o+=1),_===124?(e.enter("tableCellDivider"),e.consume(_),e.exit("tableCellDivider"),s=!0,u):(e.enter("data"),d(_)))}function d(_){return _===null||_===124||Ce(_)?(e.exit("data"),u(_)):(e.consume(_),_===92?p:d)}function p(_){return _===92||_===124?(e.consume(_),d):d(_)}function f(_){return n.interrupt=!1,n.parser.lazy[n.now().line]?r(_):(e.enter("tableDelimiterRow"),s=!1,ae(_)?pe(e,m,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(_):m(_))}function m(_){return _===45||_===58?x(_):_===124?(s=!0,e.enter("tableCellDivider"),e.consume(_),e.exit("tableCellDivider"),g):j(_)}function g(_){return ae(_)?pe(e,x,"whitespace")(_):x(_)}function x(_){return _===58?(i+=1,s=!0,e.enter("tableDelimiterMarker"),e.consume(_),e.exit("tableDelimiterMarker"),y):_===45?(i+=1,y(_)):_===null||Z(_)?H(_):j(_)}function y(_){return _===45?(e.enter("tableDelimiterFiller"),T(_)):j(_)}function T(_){return _===45?(e.consume(_),T):_===58?(s=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(_),e.exit("tableDelimiterMarker"),D):(e.exit("tableDelimiterFiller"),D(_))}function D(_){return ae(_)?pe(e,H,"whitespace")(_):H(_)}function H(_){return _===124?m(_):_===null||Z(_)?!s||o!==i?j(_):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(_)):j(_)}function j(_){return r(_)}function M(_){return e.enter("tableRow"),U(_)}function U(_){return _===124?(e.enter("tableCellDivider"),e.consume(_),e.exit("tableCellDivider"),U):_===null||Z(_)?(e.exit("tableRow"),t(_)):ae(_)?pe(e,U,"whitespace")(_):(e.enter("data"),le(_))}function le(_){return _===null||_===124||Ce(_)?(e.exit("data"),U(_)):(e.consume(_),_===92?ee:le)}function ee(_){return _===92||_===124?(e.consume(_),le):le(_)}}function _8(e,t){let r=-1,n=!0,o=0,i=[0,0,0,0],s=[0,0,0,0],a=!1,l=0,c,u,d,p=new kp;for(;++r<e.length;){let f=e[r],m=f[1];f[0]==="enter"?m.type==="tableHead"?(a=!1,l!==0&&(NC(p,t,l,c,u),u=void 0,l=0),c={type:"table",start:Object.assign({},m.start),end:Object.assign({},m.end)},p.add(r,0,[["enter",c,t]])):m.type==="tableRow"||m.type==="tableDelimiterRow"?(n=!0,d=void 0,i=[0,0,0,0],s=[0,r+1,0,0],a&&(a=!1,u={type:"tableBody",start:Object.assign({},m.start),end:Object.assign({},m.end)},p.add(r,0,[["enter",u,t]])),o=m.type==="tableDelimiterRow"?2:u?3:1):o&&(m.type==="data"||m.type==="tableDelimiterMarker"||m.type==="tableDelimiterFiller")?(n=!1,s[2]===0&&(i[1]!==0&&(s[0]=s[1],d=Tp(p,t,i,o,void 0,d),i=[0,0,0,0]),s[2]=r)):m.type==="tableCellDivider"&&(n?n=!1:(i[1]!==0&&(s[0]=s[1],d=Tp(p,t,i,o,void 0,d)),i=s,s=[i[1],r,0,0])):m.type==="tableHead"?(a=!0,l=r):m.type==="tableRow"||m.type==="tableDelimiterRow"?(l=r,i[1]!==0?(s[0]=s[1],d=Tp(p,t,i,o,r,d)):s[1]!==0&&(d=Tp(p,t,s,o,r,d)),o=0):o&&(m.type==="data"||m.type==="tableDelimiterMarker"||m.type==="tableDelimiterFiller")&&(s[3]=r)}for(l!==0&&NC(p,t,l,c,u),p.consume(t.events),r=-1;++r<t.events.length;){let f=t.events[r];f[0]==="enter"&&f[1].type==="table"&&(f[1]._align=LC(t.events,r))}return e}function Tp(e,t,r,n,o,i){let s=n===1?"tableHeader":n===2?"tableDelimiter":"tableData",a="tableContent";r[0]!==0&&(i.end=Object.assign({},qs(t.events,r[0])),e.add(r[0],0,[["exit",i,t]]));let l=qs(t.events,r[1]);if(i={type:s,start:Object.assign({},l),end:Object.assign({},l)},e.add(r[1],0,[["enter",i,t]]),r[2]!==0){let c=qs(t.events,r[2]),u=qs(t.events,r[3]),d={type:a,start:Object.assign({},c),end:Object.assign({},u)};if(e.add(r[2],0,[["enter",d,t]]),n!==2){let p=t.events[r[2]],f=t.events[r[3]];if(p[1].end=Object.assign({},f[1].end),p[1].type="chunkText",p[1].contentType="text",r[3]>r[2]+1){let m=r[2]+1,g=r[3]-r[2]-1;e.add(m,g,[])}}e.add(r[3]+1,0,[["exit",d,t]])}return o!==void 0&&(i.end=Object.assign({},qs(t.events,o)),e.add(o,0,[["exit",i,t]]),i=void 0),i}function NC(e,t,r,n,o){let i=[],s=qs(t.events,r);o&&(o.end=Object.assign({},s),i.push(["exit",o,t])),n.end=Object.assign({},s),i.push(["exit",n,t]),e.add(r+1,0,i)}function qs(e,t){let r=e[t],n=r[0]==="enter"?"start":"end";return r[1][n]}var PC=/<(\/?)(iframe|noembed|noframes|plaintext|script|style|title|textarea|xmp)(?=[\t\n\f\r />])/gi,O8=new RegExp("^"+PC.source,"i");function Gg(){return{exit:{htmlFlowData(e){FC.call(this,e,PC)},htmlTextData(e){FC.call(this,e,O8)}}}}function FC(e,t){let r=this.sliceSerialize(e);this.options.allowDangerousHtml&&(r=r.replace(t,"<$1$2")),this.raw(this.encode(r))}function Qg(){return{enter:{taskListCheck(){this.tag('<input type="checkbox" disabled="" ')}},exit:{taskListCheck(){this.tag("/>")},taskListCheckValueChecked(){this.tag('checked="" ')}}}}var L8={name:"tasklistCheck",tokenize:N8};function Xg(){return{text:{91:L8}}}function N8(e,t,r){let n=this;return o;function o(l){return n.previous!==null||!n._gfmTasklistFirstContentOfListItem?r(l):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(l),e.exit("taskListCheckMarker"),i)}function i(l){return Ce(l)?(e.enter("taskListCheckValueUnchecked"),e.consume(l),e.exit("taskListCheckValueUnchecked"),s):l===88||l===120?(e.enter("taskListCheckValueChecked"),e.consume(l),e.exit("taskListCheckValueChecked"),s):r(l)}function s(l){return l===93?(e.enter("taskListCheckMarker"),e.consume(l),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),a):r(l)}function a(l){return Z(l)?t(l):ae(l)?e.check({tokenize:P8},t,r)(l):r(l)}}function P8(e,t,r){return pe(e,n,"whitespace");function n(o){return o===null?r(o):t(o)}}function RC(e){return dp([Eg(),Hg(),qg(e),Vg(),Xg()])}function ALe(e){return pp([Ig(),Ug(e),jg(),Wg(),Gg(),Qg()])}var F8={};function Ys(e){let t=this,r=e||F8,n=t.data(),o=n.micromarkExtensions||(n.micromarkExtensions=[]),i=n.fromMarkdownExtensions||(n.fromMarkdownExtensions=[]),s=n.toMarkdownExtensions||(n.toMarkdownExtensions=[]);o.push(RC(r)),i.push(Sg()),s.push(kg(r))}var BC={}.hasOwnProperty,zC=/^(https?|ircs?|mailto|xmpp)$/i,R8=/^https?$/i;function Jg(e){let t=e||{},r=!0,n={},o=[[]],i=[],s=[],l=pp([{enter:{blockQuote:z,codeFenced:we,codeFencedFenceInfo:x,codeFencedFenceMeta:x,codeIndented:Ne,codeText:Gt,content:Gr,definition:qe,definitionDestinationString:nr,definitionLabelString:x,definitionTitleString:x,emphasis:_o,htmlFlow:pr,htmlText:kr,image:Ke,label:x,link:gt,listItemMarker:_e,listItemValue:_,listOrdered:le,listUnordered:ee,paragraph:re,reference:x,resource:$,resourceDestinationString:A,resourceTitleString:x,setextHeading:Sr,strong:Oo},exit:{atxHeading:rt,atxHeadingSequence:dr,autolinkEmail:uA,autolinkProtocol:cA,blockQuote:Y,characterEscapeValue:W,characterReferenceMarkerHexadecimal:db,characterReferenceMarkerNumeric:db,characterReferenceValue:lA,codeFenced:k,codeFencedFence:Ie,codeFencedFenceInfo:w,codeFencedFenceMeta:U,codeFlowValue:Se,codeIndented:k,codeText:jn,codeTextData:W,data:W,definition:Fr,definitionDestinationString:Ct,definitionLabelString:Pe,definitionTitleString:Vt,emphasis:Rr,hardBreakEscape:Re,hardBreakTrailing:Re,htmlFlow:Xr,htmlFlowData:W,htmlText:Xr,htmlTextData:W,image:Ge,label:I,labelText:ur,lineEnding:he,link:Ge,listOrdered:Q,listUnordered:L,paragraph:ie,reference:U,referenceString:S,resource:U,resourceDestinationString:B,resourceTitleString:ue,setextHeading:P,setextHeadingLineSequence:Qr,setextHeadingText:or,strong:sA,thematicBreak:aA}},...t.htmlExtensions||[]]),c={definitions:n,tightStack:s},u={buffer:x,encode:M,getData:g,lineEndingIfNeeded:j,options:t,raw:D,resume:y,setData:m,tag:T},d=t.defaultLineEnding;return p;function p(X){let de=-1,Nt=0,Br=[],Jr=[],Cn=[];for(;++de<X.length;)!d&&(X[de][1].type==="lineEnding"||X[de][1].type==="lineEndingBlank")&&(d=X[de][2].sliceSerialize(X[de][1])),(X[de][1].type==="listOrdered"||X[de][1].type==="listUnordered")&&(X[de][0]==="enter"?Br.push(de):f(X.slice(Br.pop(),de))),X[de][1].type==="definition"&&(X[de][0]==="enter"?(Cn=wt(Cn,X.slice(Nt,de)),Nt=de):(Jr=wt(Jr,X.slice(Nt,de+1)),Nt=de+1));Jr=wt(Jr,Cn),Jr=wt(Jr,X.slice(Nt)),de=-1;let Zr=Jr;for(l.enter.null&&l.enter.null.call(u);++de<X.length;){let pb=l[Zr[de][0]],fb=Zr[de][1].type,mb=pb[fb];BC.call(pb,fb)&&mb&&mb.call({sliceSerialize:Zr[de][2].sliceSerialize,...u},Zr[de][1])}return l.exit.null&&l.exit.null.call(u),o[0].join("")}function f(X){let de=X.length,Nt=0,Br=0,Jr=!1,Cn;for(;++Nt<de;){let Zr=X[Nt];if(Zr[1]._container)Cn=void 0,Zr[0]==="enter"?Br++:Br--;else switch(Zr[1].type){case"listItemPrefix":{Zr[0]==="exit"&&(Cn=!0);break}case"linePrefix":break;case"lineEndingBlank":{Zr[0]==="enter"&&!Br&&(Cn?Cn=void 0:Jr=!0);break}default:Cn=void 0}}X[0][1]._loose=Jr}function m(X,de){c[X]=de}function g(X){return c[X]}function x(){o.push([])}function y(){return o.pop().join("")}function T(X){r&&(m("lastWasTag",!0),o[o.length-1].push(X))}function D(X){m("lastWasTag"),o[o.length-1].push(X)}function H(){D(d||`
|
|
78
|
-
`)}function j(){let X=o[o.length-1],de=X[X.length-1],Nt=de?de.charCodeAt(de.length-1):null;Nt===10||Nt===13||Nt===null||H()}function M(X){return g("ignoreEncode")?X:fp(X)}function U(){y()}function le(X){s.push(!X._loose),j(),T("<ol"),m("expectFirstItem",!0)}function ee(X){s.push(!X._loose),j(),T("<ul"),m("expectFirstItem",!0)}function _(X){if(g("expectFirstItem")){let de=Number.parseInt(this.sliceSerialize(X),10);de!==1&&T(' start="'+M(String(de))+'"')}}function _e(){g("expectFirstItem")?T(">"):F(),j(),T("<li>"),m("expectFirstItem"),m("lastWasTag")}function Q(){F(),s.pop(),H(),T("</ol>")}function L(){F(),s.pop(),H(),T("</ul>")}function F(){g("lastWasTag")&&!g("slurpAllLineEndings")&&j(),T("</li>"),m("slurpAllLineEndings")}function z(){s.push(!1),j(),T("<blockquote>")}function Y(){s.pop(),j(),T("</blockquote>"),m("slurpAllLineEndings")}function re(){s[s.length-1]||(j(),T("<p>")),m("slurpAllLineEndings")}function ie(){s[s.length-1]?m("slurpAllLineEndings",!0):T("</p>")}function we(){j(),T("<pre><code"),m("fencesCount",0)}function w(){let X=y();T(' class="language-'+X+'"')}function Ie(){let X=g("fencesCount")||0;X||(T(">"),m("slurpOneLineEnding",!0)),m("fencesCount",X+1)}function Ne(){j(),T("<pre><code>")}function k(){let X=g("fencesCount");X!==void 0&&X<2&&c.tightStack.length>0&&!g("lastWasTag")&&H(),g("flowCodeSeenData")&&j(),T("</code></pre>"),X!==void 0&&X<2&&j(),m("flowCodeSeenData"),m("fencesCount"),m("slurpOneLineEnding")}function Ke(){i.push({image:!0}),r=void 0}function gt(){i.push({})}function ur(X){i[i.length-1].labelId=this.sliceSerialize(X)}function I(){i[i.length-1].label=y()}function S(X){i[i.length-1].referenceId=this.sliceSerialize(X)}function $(){x(),i[i.length-1].destination=""}function A(){x(),m("ignoreEncode",!0)}function B(){i[i.length-1].destination=y(),m("ignoreEncode")}function ue(){i[i.length-1].title=y()}function Ge(){let X=i.length-1,de=i[X],Nt=de.referenceId||de.labelId,Br=de.destination===void 0?n[at(Nt)]:de;for(r=!0;X--;)if(i[X].image){r=void 0;break}de.image?(T('<img src="'+xn(Br.destination,t.allowDangerousProtocol?void 0:R8)+'" alt="'),D(de.label),T('"')):T('<a href="'+xn(Br.destination,t.allowDangerousProtocol?void 0:zC)+'"'),T(Br.title?' title="'+Br.title+'"':""),de.image?T(" />"):(T(">"),D(de.label),T("</a>")),i.pop()}function qe(){x(),i.push({})}function Pe(X){y(),i[i.length-1].labelId=this.sliceSerialize(X)}function nr(){x(),m("ignoreEncode",!0)}function Ct(){i[i.length-1].destination=y(),m("ignoreEncode")}function Vt(){i[i.length-1].title=y()}function Fr(){let X=i[i.length-1],de=at(X.labelId);y(),BC.call(n,de)||(n[de]=i[i.length-1]),i.pop()}function Gr(){m("slurpAllLineEndings",!0)}function dr(X){g("headingRank")||(m("headingRank",this.sliceSerialize(X).length),j(),T("<h"+g("headingRank")+">"))}function Sr(){x(),m("slurpAllLineEndings")}function or(){m("slurpAllLineEndings",!0)}function rt(){T("</h"+g("headingRank")+">"),m("headingRank")}function Qr(X){m("headingRank",this.sliceSerialize(X).charCodeAt(0)===61?1:2)}function P(){let X=y();j(),T("<h"+g("headingRank")+">"),D(X),T("</h"+g("headingRank")+">"),m("slurpAllLineEndings"),m("headingRank")}function W(X){D(M(this.sliceSerialize(X)))}function he(X){if(!g("slurpAllLineEndings")){if(g("slurpOneLineEnding")){m("slurpOneLineEnding");return}if(g("inCodeText")){D(" ");return}D(M(this.sliceSerialize(X)))}}function Se(X){D(M(this.sliceSerialize(X))),m("flowCodeSeenData",!0)}function Re(){T("<br />")}function pr(){j(),kr()}function Xr(){m("ignoreEncode")}function kr(){t.allowDangerousHtml&&m("ignoreEncode",!0)}function _o(){T("<em>")}function Oo(){T("<strong>")}function Gt(){m("inCodeText",!0),T("<code>")}function jn(){m("inCodeText"),T("</code>")}function Rr(){T("</em>")}function sA(){T("</strong>")}function aA(){j(),T("<hr />")}function db(X){m("characterReferenceType",X.type)}function lA(X){let de=this.sliceSerialize(X),Nt=g("characterReferenceType")?js(de,g("characterReferenceType")==="characterReferenceMarkerNumeric"?10:16):yo(de);D(M(Nt)),m("characterReferenceType")}function cA(X){let de=this.sliceSerialize(X);T('<a href="'+xn(de,t.allowDangerousProtocol?void 0:zC)+'">'),D(M(de)),T("</a>")}function uA(X){let de=this.sliceSerialize(X);T('<a href="'+xn("mailto:"+de)+'">'),D(M(de)),T("</a>")}}var HC={tokenize:B8};function B8(e){let t=e.attempt(this.parser.constructs.contentInitial,n,o),r;return t;function n(a){if(a===null){e.consume(a);return}return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),pe(e,t,"linePrefix")}function o(a){return e.enter("paragraph"),i(a)}function i(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 Z(a)?(e.consume(a),e.exit("chunkText"),i):(e.consume(a),s)}}var jC={tokenize:z8},UC={tokenize:H8};function z8(e){let t=this,r=[],n=0,o,i,s;return a;function a(D){if(n<r.length){let H=r[n];return t.containerState=H[1],e.attempt(H[0].continuation,l,c)(D)}return c(D)}function l(D){if(n++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,o&&T();let H=t.events.length,j=H,M;for(;j--;)if(t.events[j][0]==="exit"&&t.events[j][1].type==="chunkFlow"){M=t.events[j][1].end;break}y(n);let U=H;for(;U<t.events.length;)t.events[U][1].end={...M},U++;return dt(t.events,j+1,0,t.events.slice(H)),t.events.length=U,c(D)}return a(D)}function c(D){if(n===r.length){if(!o)return p(D);if(o.currentConstruct&&o.currentConstruct.concrete)return m(D);t.interrupt=!!(o.currentConstruct&&!o._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(UC,u,d)(D)}function u(D){return o&&T(),y(n),p(D)}function d(D){return t.parser.lazy[t.now().line]=n!==r.length,s=t.now().offset,m(D)}function p(D){return t.containerState={},e.attempt(UC,f,m)(D)}function f(D){return n++,r.push([t.currentConstruct,t.containerState]),p(D)}function m(D){if(D===null){o&&T(),y(0),e.consume(D);return}return o=o||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:o,contentType:"flow",previous:i}),g(D)}function g(D){if(D===null){x(e.exit("chunkFlow"),!0),y(0),e.consume(D);return}return Z(D)?(e.consume(D),x(e.exit("chunkFlow")),n=0,t.interrupt=void 0,a):(e.consume(D),g)}function x(D,H){let j=t.sliceStream(D);if(H&&j.push(null),D.previous=i,i&&(i.next=D),i=D,o.defineSkip(D.start),o.write(j),t.parser.lazy[D.start.line]){let M=o.events.length;for(;M--;)if(o.events[M][1].start.offset<s&&(!o.events[M][1].end||o.events[M][1].end.offset>s))return;let U=t.events.length,le=U,ee,_;for(;le--;)if(t.events[le][0]==="exit"&&t.events[le][1].type==="chunkFlow"){if(ee){_=t.events[le][1].end;break}ee=!0}for(y(n),M=U;M<t.events.length;)t.events[M][1].end={..._},M++;dt(t.events,le+1,0,t.events.slice(U)),t.events.length=M}}function y(D){let H=r.length;for(;H-- >D;){let j=r[H];t.containerState=j[1],j[0].exit.call(t,e)}r.length=D}function T(){o.write([null]),i=void 0,o=void 0,t.containerState._closeFlow=void 0}}function H8(e,t,r){return pe(e,e.attempt(this.parser.constructs.document,t,r),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}var qC={tokenize:U8};function U8(e){let t=this,r=e.attempt(yn,n,e.attempt(this.parser.constructs.flowInitial,o,pe(e,e.attempt(this.parser.constructs.flow,o,e.attempt(_g,o)),"linePrefix")));return r;function n(i){if(i===null){e.consume(i);return}return e.enter("lineEndingBlank"),e.consume(i),e.exit("lineEndingBlank"),t.currentConstruct=void 0,r}function o(i){if(i===null){e.consume(i);return}return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),t.currentConstruct=void 0,r}}var VC={resolveAll:WC()},GC=YC("string"),QC=YC("text");function YC(e){return{resolveAll:WC(e==="text"?j8:void 0),tokenize:t};function t(r){let n=this,o=this.parser.constructs[e],i=r.attempt(o,s,a);return s;function s(u){return c(u)?i(u):a(u)}function a(u){if(u===null){r.consume(u);return}return r.enter("data"),r.consume(u),l}function l(u){return c(u)?(r.exit("data"),i(u)):(r.consume(u),l)}function c(u){if(u===null)return!0;let d=o[u],p=-1;if(d)for(;++p<d.length;){let f=d[p];if(!f.previous||f.previous.call(n,n.previous))return!0}return!1}}}function WC(e){return t;function t(r,n){let o=-1,i;for(;++o<=r.length;)i===void 0?r[o]&&r[o][1].type==="data"&&(i=o,o++):(!r[o]||r[o][1].type!=="data")&&(o!==i+2&&(r[i][1].end=r[o-1][1].end,r.splice(i+2,o-i-2),o=i+2),i=void 0);return e?e(r,n):r}}function j8(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],o=t.sliceStream(n),i=o.length,s=-1,a=0,l;for(;i--;){let c=o[i];if(typeof c=="string"){for(s=c.length;c.charCodeAt(s-1)===32;)a++,s--;if(s)break;s=-1}else if(c===-2)l=!0,a++;else if(c!==-1){i++;break}}if(t._contentTypeTextTrailing&&r===e.length&&(a=0),a){let c={type:r===e.length||l||a<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:i?s:n.start._bufferIndex+s,_index:n.start._index+i,line:n.end.line,column:n.end.column-a,offset:n.end.offset-a},end:{...n.end}};n.end={...c.start},n.start.offset===n.end.offset?Object.assign(n,c):(e.splice(r,0,["enter",c,t],["exit",c,t]),r+=2)}r++}return e}var Zg={};me(Zg,{attentionMarkers:()=>J8,contentInitial:()=>Y8,disable:()=>Z8,document:()=>q8,flow:()=>V8,flowInitial:()=>W8,insideSpan:()=>X8,string:()=>G8,text:()=>Q8});var q8={42:qt,43:qt,45:qt,48:qt,49:qt,50:qt,51:qt,52:qt,53:qt,54:qt,55:qt,56:qt,57:qt,62:mp},Y8={91:Og},W8={[-2]:xl,[-1]:xl,32:xl},V8={35:Ng,42:Ci,45:[Sp,Ci],60:Fg,61:Sp,95:Ci,96:xp,126:xp},G8={38:gp,92:hp},Q8={[-5]:vl,[-4]:vl,[-3]:vl,33:Bg,38:gp,42:gl,60:[$g,Rg],91:zg,92:[Lg,hp],93:Di,95:gl,96:Ag},X8={null:[gl,VC]},J8={null:[42,95]},Z8={null:[]};function XC(e,t,r){let n={_bufferIndex:-1,_index:0,line:r&&r.line||1,column:r&&r.column||1,offset:r&&r.offset||0},o={},i=[],s=[],a=[],l=!0,c={attempt:ee(U),check:ee(le),consume:H,enter:j,exit:M,interrupt:ee(le,{interrupt:!0})},u={code:null,containerState:{},defineSkip:y,events:[],now:x,parser:e,previous:null,sliceSerialize:m,sliceStream:g,write:f},d=t.tokenize.call(u,c),p;return t.resolveAll&&i.push(t),u;function f(L){return s=wt(s,L),T(),s[s.length-1]!==null?[]:(_(t,0),u.events=bo(i,u.events,u),u.events)}function m(L,F){return ez(g(L),F)}function g(L){return K8(s,L)}function x(){let{_bufferIndex:L,_index:F,line:z,column:Y,offset:re}=n;return{_bufferIndex:L,_index:F,line:z,column:Y,offset:re}}function y(L){o[L.line]=L.column,Q()}function T(){let L;for(;n._index<s.length;){let F=s[n._index];if(typeof F=="string")for(L=n._index,n._bufferIndex<0&&(n._bufferIndex=0);n._index===L&&n._bufferIndex<F.length;)D(F.charCodeAt(n._bufferIndex));else D(F)}}function D(L){l=void 0,p=L,d=d(L)}function H(L){Z(L)?(n.line++,n.column=1,n.offset+=L===-3?2:1,Q()):L!==-1&&(n.column++,n.offset++),n._bufferIndex<0?n._index++:(n._bufferIndex++,n._bufferIndex===s[n._index].length&&(n._bufferIndex=-1,n._index++)),u.previous=L,l=!0}function j(L,F){let z=F||{};return z.type=L,z.start=x(),u.events.push(["enter",z,u]),a.push(z),z}function M(L){let F=a.pop();return F.end=x(),u.events.push(["exit",F,u]),F}function U(L,F){_(L,F.from)}function le(L,F){F.restore()}function ee(L,F){return z;function z(Y,re,ie){let we,w,Ie,Ne;return Array.isArray(Y)?Ke(Y):"tokenize"in Y?Ke([Y]):k(Y);function k(S){return $;function $(A){let B=A!==null&&S[A],ue=A!==null&&S.null,Ge=[...Array.isArray(B)?B:B?[B]:[],...Array.isArray(ue)?ue:ue?[ue]:[]];return Ke(Ge)(A)}}function Ke(S){return we=S,w=0,S.length===0?ie:gt(S[w])}function gt(S){return $;function $(A){return Ne=_e(),Ie=S,S.partial||(u.currentConstruct=S),S.name&&u.parser.constructs.disable.null.includes(S.name)?I(A):S.tokenize.call(F?Object.assign(Object.create(u),F):u,c,ur,I)(A)}}function ur(S){return l=!0,L(Ie,Ne),re}function I(S){return l=!0,Ne.restore(),++w<we.length?gt(we[w]):ie}}}function _(L,F){L.resolveAll&&!i.includes(L)&&i.push(L),L.resolve&&dt(u.events,F,u.events.length-F,L.resolve(u.events.slice(F),u)),L.resolveTo&&(u.events=L.resolveTo(u.events,u))}function _e(){let L=x(),F=u.previous,z=u.currentConstruct,Y=u.events.length,re=Array.from(a);return{from:Y,restore:ie};function ie(){n=L,u.previous=F,u.currentConstruct=z,u.events.length=Y,a=re,Q()}}function Q(){n.line in o&&n.column<2&&(n.column=o[n.line],n.offset+=o[n.line]-1)}}function K8(e,t){let r=t.start._index,n=t.start._bufferIndex,o=t.end._index,i=t.end._bufferIndex,s;if(r===o)s=[e[r].slice(n,i)];else{if(s=e.slice(r,o),n>-1){let a=s[0];typeof a=="string"?s[0]=a.slice(n):s.shift()}i>0&&s.push(e[o].slice(0,i))}return s}function ez(e,t){let r=-1,n=[],o;for(;++r<e.length;){let i=e[r],s;if(typeof i=="string")s=i;else switch(i){case-5:{s="\r";break}case-4:{s=`
|
|
77
|
+
`))}function l(f,m,g,x){let y=g.enter("tableCell"),T=g.enter("phrasing"),D=g.containerPhrasing(f,{...x,before:i,after:i});return T(),y(),D}function c(f,m){return BD(f,{align:m,alignDelimiters:n,padding:r,stringLength:o})}function u(f,m,g){let x=f.children,y=-1,T=[],D=m.enter("table");for(;++y<x.length;)T[y]=d(x[y],m,g);return D(),T}function d(f,m,g){let x=f.children,y=-1,T=[],D=m.enter("tableRow");for(;++y<x.length;)T[y]=l(x[y],f,m,g);return D(),T}function p(f,m,g){let x=Si.inlineCode(f,m,g);return g.stack.includes("tableCell")&&(x=x.replace(/\|/g,"\\$&")),x}}function bg(){return{exit:{taskListCheckValueChecked:wC,taskListCheckValueUnchecked:wC,paragraph:X9}}}function vg(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:J9}}}function wC(e){let t=this.stack[this.stack.length-2];t.type,t.checked=e.type==="taskListCheckValueChecked"}function X9(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 o=t.children,i=-1,s;for(;++i<o.length;){let a=o[i];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 J9(e,t,r,n){let o=e.children[0],i=typeof e.checked=="boolean"&&o&&o.type==="paragraph",s="["+(e.checked?"x":" ")+"] ",a=r.createTracker(n);i&&a.move(s);let l=Si.listItem(e,t,r,{...n,...a.current()});return i&&(l=l.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,c)),l;function c(u){return u+s}}function wg(){return[Jh(),Kh(),tg(),xg(),bg()]}function Sg(e){return{extensions:[Zh(),eg(e),rg(),yg(e),vg()]}}function dt(e,t,r,n){let o=e.length,i=0,s;if(t<0?t=-t>o?0:o+t:t=t>o?o: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);i<n.length;)s=n.slice(i,i+1e4),s.unshift(t,0),e.splice(...s),i+=1e4,t+=1e4}function wt(e,t){return e.length>0?(dt(e,e.length,0,t),e):t}var kg={}.hasOwnProperty;function dp(e){let t={},r=-1;for(;++r<e.length;)Z9(t,e[r]);return t}function Z9(e,t){let r;for(r in t){let o=(kg.call(e,r)?e[r]:void 0)||(e[r]={}),i=t[r],s;if(i)for(s in i){kg.call(o,s)||(o[s]=[]);let a=i[s];K9(o[s],Array.isArray(a)?a:a?[a]:[])}}}function K9(e,t){let r=-1,n=[];for(;++r<t.length;)(t[r].add==="after"?e:n).push(t[r]);dt(e,0,0,n)}function pp(e){let t={},r=-1;for(;++r<e.length;)eB(t,e[r]);return t}function eB(e,t){let r;for(r in t){let o=(kg.call(e,r)?e[r]:void 0)||(e[r]={}),i=t[r],s;if(i)for(s in i)o[s]=i[s]}}var tB={tokenize:sB,partial:!0},SC={tokenize:aB,partial:!0},kC={tokenize:lB,partial:!0},TC={tokenize:cB,partial:!0},rB={tokenize:uB,partial:!0},DC={name:"wwwAutolink",tokenize:oB,previous:EC},CC={name:"protocolAutolink",tokenize:iB,previous:MC},zn={name:"emailAutolink",tokenize:nB,previous:IC},gn={};function Cg(){return{text:gn}}for(var Ti=48;Ti<123;)gn[Ti]=zn,Ti++,Ti===58?Ti=65:Ti===91&&(Ti=97);gn[43]=zn,gn[45]=zn,gn[46]=zn,gn[95]=zn,gn[72]=[zn,CC],gn[104]=[zn,CC],gn[87]=[zn,DC],gn[119]=[zn,DC];function nB(e,t,r){let n=this,o,i;return s;function s(d){return!Tg(d)||!IC.call(n,n.previous)||Dg(n.events)?r(d):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),a(d))}function a(d){return Tg(d)?(e.consume(d),a):d===64?(e.consume(d),l):r(d)}function l(d){return d===46?e.check(rB,u,c)(d):d===45||d===95||st(d)?(i=!0,e.consume(d),l):u(d)}function c(d){return e.consume(d),o=!0,l}function u(d){return i&&o&&Dt(n.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(d)):r(d)}}function oB(e,t,r){let n=this;return o;function o(s){return s!==87&&s!==119||!EC.call(n,n.previous)||Dg(n.events)?r(s):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(tB,e.attempt(SC,e.attempt(kC,i),r),r)(s))}function i(s){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(s)}}function iB(e,t,r){let n=this,o="",i=!1;return s;function s(d){return(d===72||d===104)&&MC.call(n,n.previous)&&!Dg(n.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),o+=String.fromCodePoint(d),e.consume(d),a):r(d)}function a(d){if(Dt(d)&&o.length<5)return o+=String.fromCodePoint(d),e.consume(d),a;if(d===58){let p=o.toLowerCase();if(p==="http"||p==="https")return e.consume(d),l}return r(d)}function l(d){return d===47?(e.consume(d),i?c:(i=!0,l)):r(d)}function c(d){return d===null||yi(d)||Ce(d)||hn(d)||bi(d)?r(d):e.attempt(SC,e.attempt(kC,u),r)(d)}function u(d){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(d)}}function sB(e,t,r){let n=0;return o;function o(s){return(s===87||s===119)&&n<3?(n++,e.consume(s),o):s===46&&n===3?(e.consume(s),i):r(s)}function i(s){return s===null?r(s):t(s)}}function aB(e,t,r){let n,o,i;return s;function s(c){return c===46||c===95?e.check(TC,l,a)(c):c===null||Ce(c)||hn(c)||c!==45&&bi(c)?l(c):(i=!0,e.consume(c),s)}function a(c){return c===95?n=!0:(o=n,n=void 0),e.consume(c),s}function l(c){return o||n||!i?r(c):t(c)}}function lB(e,t){let r=0,n=0;return o;function o(s){return s===40?(r++,e.consume(s),o):s===41&&n<r?i(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(TC,t,i)(s):s===null||Ce(s)||hn(s)?t(s):(e.consume(s),o)}function i(s){return s===41&&n++,e.consume(s),o}}function cB(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),i):a===93?(e.consume(a),o):a===60||a===null||Ce(a)||hn(a)?t(a):r(a)}function o(a){return a===null||a===40||a===91||Ce(a)||hn(a)?t(a):n(a)}function i(a){return Dt(a)?s(a):r(a)}function s(a){return a===59?(e.consume(a),n):Dt(a)?(e.consume(a),s):r(a)}}function uB(e,t,r){return n;function n(i){return e.consume(i),o}function o(i){return st(i)?r(i):t(i)}}function EC(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||Ce(e)}function MC(e){return!Dt(e)}function IC(e){return!(e===47||Tg(e))}function Tg(e){return e===43||e===45||e===46||e===95||st(e)}function Dg(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}var dB={'"':"quot","&":"amp","<":"lt",">":"gt"};function fp(e){return e.replace(/["&<>]/g,t);function t(r){return"&"+dB[r]+";"}}function xn(e,t){let r=fp(xr(e||""));if(!t)return r;let n=r.indexOf(":"),o=r.indexOf("?"),i=r.indexOf("#"),s=r.indexOf("/");return n<0||s>-1&&n>s||o>-1&&n>o||i>-1&&n>i||t.test(r.slice(0,n))?r:""}function xr(e){let t=[],r=-1,n=0,o=0;for(;++r<e.length;){let i=e.charCodeAt(r),s="";if(i===37&&st(e.charCodeAt(r+1))&&st(e.charCodeAt(r+2)))o=2;else if(i<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(i))||(s=String.fromCharCode(i));else if(i>55295&&i<57344){let a=e.charCodeAt(r+1);i<56320&&a>56319&&a<57344?(s=String.fromCharCode(i,a),o=1):s="\uFFFD"}else s=String.fromCharCode(i);s&&(t.push(e.slice(n,r),encodeURIComponent(s)),n=r+o+1,s=""),o&&(r+=o,o=0)}return t.join("")+e.slice(n)}function Mg(){return{exit:{literalAutolinkEmail:fB,literalAutolinkHttp:mB,literalAutolinkWww:pB}}}function pB(e){Eg.call(this,e,"http://")}function fB(e){Eg.call(this,e,"mailto:")}function mB(e){Eg.call(this,e)}function Eg(e,t){let r=this.sliceSerialize(e);this.tag('<a href="'+xn((t||"")+r)+'">'),this.raw(this.encode(r)),this.tag("</a>")}function vo(e,t,r){let n=[],o=-1;for(;++o<e.length;){let i=e[o].resolveAll;i&&!n.includes(i)&&(t=i(t,r),n.push(i))}return t}var gl={name:"attention",resolveAll:hB,tokenize:gB};function hB(e,t){let r=-1,n,o,i,s,a,l,c,u;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 d={...e[n][1].end},p={...e[r][1].start};$C(d,-l),$C(p,l),s={type:l>1?"strongSequence":"emphasisSequence",start:d,end:{...e[n][1].end}},a={type:l>1?"strongSequence":"emphasisSequence",start:{...e[r][1].start},end:p},i={type:l>1?"strongText":"emphasisText",start:{...e[n][1].end},end:{...e[r][1].start}},o={type:l>1?"strong":"emphasis",start:{...s.start},end:{...a.end}},e[n][1].end={...s.start},e[r][1].start={...a.end},c=[],e[n][1].end.offset-e[n][1].start.offset&&(c=wt(c,[["enter",e[n][1],t],["exit",e[n][1],t]])),c=wt(c,[["enter",o,t],["enter",s,t],["exit",s,t],["enter",i,t]]),c=wt(c,vo(t.parser.constructs.insideSpan.null,e.slice(n+1,r),t)),c=wt(c,[["exit",i,t],["enter",a,t],["exit",a,t],["exit",o,t]]),e[r][1].end.offset-e[r][1].start.offset?(u=2,c=wt(c,[["enter",e[r][1],t],["exit",e[r][1],t]])):u=0,dt(e,n-1,r-n+3,c),r=n+c.length-u-2;break}}for(r=-1;++r<e.length;)e[r][1].type==="attentionSequence"&&(e[r][1].type="data");return e}function gB(e,t){let r=this.parser.constructs.attentionMarkers.null,n=this.previous,o=Bn(n),i;return s;function s(l){return i=l,e.enter("attentionSequence"),a(l)}function a(l){if(l===i)return e.consume(l),a;let c=e.exit("attentionSequence"),u=Bn(l),d=!u||u===2&&o||r.includes(l),p=!o||o===2&&u||r.includes(n);return c._open=!!(i===42?d:d&&(o||!p)),c._close=!!(i===42?p:p&&(u||!d)),t(l)}}function $C(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}var Ig={name:"autolink",tokenize:xB};function xB(e,t,r){let n=0;return o;function o(f){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(f),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),i}function i(f){return Dt(f)?(e.consume(f),s):f===64?r(f):c(f)}function s(f){return f===43||f===45||f===46||st(f)?(n=1,a(f)):c(f)}function a(f){return f===58?(e.consume(f),n=0,l):(f===43||f===45||f===46||st(f))&&n++<32?(e.consume(f),a):(n=0,c(f))}function l(f){return f===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(f),e.exit("autolinkMarker"),e.exit("autolink"),t):f===null||f===32||f===60||yi(f)?r(f):(e.consume(f),l)}function c(f){return f===64?(e.consume(f),u):MD(f)?(e.consume(f),c):r(f)}function u(f){return st(f)?d(f):r(f)}function d(f){return f===46?(e.consume(f),n=0,u):f===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(f),e.exit("autolinkMarker"),e.exit("autolink"),t):p(f)}function p(f){if((f===45||st(f))&&n++<63){let m=f===45?p:d;return e.consume(f),m}return r(f)}}function pe(e,t,r,n){let o=n?n-1:Number.POSITIVE_INFINITY,i=0;return s;function s(l){return ae(l)?(e.enter(r),a(l)):t(l)}function a(l){return ae(l)&&i++<o?(e.consume(l),a):(e.exit(r),t(l))}}var yn={partial:!0,tokenize:yB};function yB(e,t,r){return n;function n(i){return ae(i)?pe(e,o,"linePrefix")(i):o(i)}function o(i){return i===null||Z(i)?t(i):r(i)}}var mp={continuation:{tokenize:vB},exit:wB,name:"blockQuote",tokenize:bB};function bB(e,t,r){let n=this;return o;function o(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"),i}return r(s)}function i(s){return ae(s)?(e.enter("blockQuotePrefixWhitespace"),e.consume(s),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(s))}}function vB(e,t,r){let n=this;return o;function o(s){return ae(s)?pe(e,i,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(s):i(s)}function i(s){return e.attempt(mp,t,r)(s)}}function wB(e){e.exit("blockQuote")}var hp={name:"characterEscape",tokenize:SB};function SB(e,t,r){return n;function n(i){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(i),e.exit("escapeMarker"),o}function o(i){return $D(i)?(e.enter("characterEscapeValue"),e.consume(i),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):r(i)}}var gp={name:"characterReference",tokenize:kB};function kB(e,t,r){let n=this,o=0,i,s;return a;function a(d){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(d),e.exit("characterReferenceMarker"),l}function l(d){return d===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(d),e.exit("characterReferenceMarkerNumeric"),c):(e.enter("characterReferenceValue"),i=31,s=st,u(d))}function c(d){return d===88||d===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(d),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),i=6,s=ID,u):(e.enter("characterReferenceValue"),i=7,s=pl,u(d))}function u(d){if(d===59&&o){let p=e.exit("characterReferenceValue");return s===st&&!bo(n.sliceSerialize(p))?r(d):(e.enter("characterReferenceMarker"),e.consume(d),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return s(d)&&o++<i?(e.consume(d),u):r(d)}}var AC={partial:!0,tokenize:DB},xp={concrete:!0,name:"codeFenced",tokenize:TB};function TB(e,t,r){let n=this,o={partial:!0,tokenize:j},i=0,s=0,a;return l;function l(M){return c(M)}function c(M){let U=n.events[n.events.length-1];return i=U&&U[1].type==="linePrefix"?U[2].sliceSerialize(U[1],!0).length:0,a=M,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),u(M)}function u(M){return M===a?(s++,e.consume(M),u):s<3?r(M):(e.exit("codeFencedFenceSequence"),ae(M)?pe(e,d,"whitespace")(M):d(M))}function d(M){return M===null||Z(M)?(e.exit("codeFencedFence"),n.interrupt?t(M):e.check(AC,g,H)(M)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),p(M))}function p(M){return M===null||Z(M)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),d(M)):ae(M)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),pe(e,f,"whitespace")(M)):M===96&&M===a?r(M):(e.consume(M),p)}function f(M){return M===null||Z(M)?d(M):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),m(M))}function m(M){return M===null||Z(M)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),d(M)):M===96&&M===a?r(M):(e.consume(M),m)}function g(M){return e.attempt(o,H,x)(M)}function x(M){return e.enter("lineEnding"),e.consume(M),e.exit("lineEnding"),y}function y(M){return i>0&&ae(M)?pe(e,T,"linePrefix",i+1)(M):T(M)}function T(M){return M===null||Z(M)?e.check(AC,g,H)(M):(e.enter("codeFlowValue"),D(M))}function D(M){return M===null||Z(M)?(e.exit("codeFlowValue"),T(M)):(e.consume(M),D)}function H(M){return e.exit("codeFenced"),t(M)}function j(M,U,le){let ee=0;return _;function _(z){return M.enter("lineEnding"),M.consume(z),M.exit("lineEnding"),_e}function _e(z){return M.enter("codeFencedFence"),ae(z)?pe(M,Q,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(z):Q(z)}function Q(z){return z===a?(M.enter("codeFencedFenceSequence"),L(z)):le(z)}function L(z){return z===a?(ee++,M.consume(z),L):ee>=s?(M.exit("codeFencedFenceSequence"),ae(z)?pe(M,F,"whitespace")(z):F(z)):le(z)}function F(z){return z===null||Z(z)?(M.exit("codeFencedFence"),U(z)):le(z)}}}function DB(e,t,r){let n=this;return o;function o(s){return s===null?r(s):(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),i)}function i(s){return n.parser.lazy[n.now().line]?r(s):t(s)}}var xl={name:"codeIndented",tokenize:EB},CB={partial:!0,tokenize:MB};function EB(e,t,r){let n=this;return o;function o(c){return e.enter("codeIndented"),pe(e,i,"linePrefix",5)(c)}function i(c){let u=n.events[n.events.length-1];return u&&u[1].type==="linePrefix"&&u[2].sliceSerialize(u[1],!0).length>=4?s(c):r(c)}function s(c){return c===null?l(c):Z(c)?e.attempt(CB,s,l)(c):(e.enter("codeFlowValue"),a(c))}function a(c){return c===null||Z(c)?(e.exit("codeFlowValue"),s(c)):(e.consume(c),a)}function l(c){return e.exit("codeIndented"),t(c)}}function MB(e,t,r){let n=this;return o;function o(s){return n.parser.lazy[n.now().line]?r(s):Z(s)?(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),o):pe(e,i,"linePrefix",5)(s)}function i(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):Z(s)?o(s):r(s)}}var $g={name:"codeText",previous:$B,resolve:IB,tokenize:AB};function IB(e){let t=e.length-4,r=3,n,o;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;)o===void 0?n!==t&&e[n][1].type!=="lineEnding"&&(o=n):(n===t||e[n][1].type==="lineEnding")&&(e[o][1].type="codeTextData",n!==o+2&&(e[o][1].end=e[n-1][1].end,e.splice(o+2,n-o-2),t-=n-o-2,n=o+2),o=void 0);return e}function $B(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function AB(e,t,r){let n=this,o=0,i,s;return a;function a(p){return e.enter("codeText"),e.enter("codeTextSequence"),l(p)}function l(p){return p===96?(e.consume(p),o++,l):(e.exit("codeTextSequence"),c(p))}function c(p){return p===null?r(p):p===32?(e.enter("space"),e.consume(p),e.exit("space"),c):p===96?(s=e.enter("codeTextSequence"),i=0,d(p)):Z(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),c):(e.enter("codeTextData"),u(p))}function u(p){return p===null||p===32||p===96||Z(p)?(e.exit("codeTextData"),c(p)):(e.consume(p),u)}function d(p){return p===96?(e.consume(p),i++,d):i===o?(e.exit("codeTextSequence"),e.exit("codeText"),t(p)):(s.type="codeTextData",u(p))}}var bl=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 o=r||0;this.setCursor(Math.trunc(t));let i=this.right.splice(this.right.length-o,Number.POSITIVE_INFINITY);return n&&yl(this.left,n),i.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),yl(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),yl(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);yl(this.right,r.reverse())}else{let r=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);yl(this.left,r.reverse())}}};function yl(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 yp(e){let t={},r=-1,n,o,i,s,a,l,c,u=new bl(e);for(;++r<u.length;){for(;r in t;)r=t[r];if(n=u.get(r),r&&n[1].type==="chunkFlow"&&u.get(r-1)[1].type==="listItemPrefix"&&(l=n[1]._tokenizer.events,i=0,i<l.length&&l[i][1].type==="lineEndingBlank"&&(i+=2),i<l.length&&l[i][1].type==="content"))for(;++i<l.length&&l[i][1].type!=="content";)l[i][1].type==="chunkText"&&(l[i][1]._isInFirstContentOfListItem=!0,i++);if(n[0]==="enter")n[1].contentType&&(Object.assign(t,_B(u,r)),r=t[r],c=!0);else if(n[1]._container){for(i=r,o=void 0;i--;)if(s=u.get(i),s[1].type==="lineEnding"||s[1].type==="lineEndingBlank")s[0]==="enter"&&(o&&(u.get(o)[1].type="lineEndingBlank"),s[1].type="lineEnding",o=i);else if(!(s[1].type==="linePrefix"||s[1].type==="listItemIndent"))break;o&&(n[1].end={...u.get(o)[1].start},a=u.slice(o,r),a.unshift(n),u.splice(o,r-o+1,a))}}return dt(e,0,Number.POSITIVE_INFINITY,u.slice(0)),!c}function _B(e,t){let r=e.get(t)[1],n=e.get(t)[2],o=t-1,i=[],s=r._tokenizer;s||(s=n.parser[r.contentType](r.start),r._contentTypeTextTrailing&&(s._contentTypeTextTrailing=!0));let a=s.events,l=[],c={},u,d,p=-1,f=r,m=0,g=0,x=[g];for(;f;){for(;e.get(++o)[1]!==f;);i.push(o),f._tokenizer||(u=n.sliceStream(f),f.next||u.push(null),d&&s.defineSkip(f.start),f._isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=!0),s.write(u),f._isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=void 0)),d=f,f=f.next}for(f=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&&(g=p+1,x.push(g),f._tokenizer=void 0,f.previous=void 0,f=f.next);for(s.events=[],f?(f._tokenizer=void 0,f.previous=void 0):x.pop(),p=x.length;p--;){let y=a.slice(x[p],x[p+1]),T=i.pop();l.push([T,T+y.length-1]),e.splice(T,2,y)}for(l.reverse(),p=-1;++p<l.length;)c[m+l[p][0]]=m+l[p][1],m+=l[p][1]-l[p][0]-1;return c}var Ag={resolve:LB,tokenize:NB},OB={partial:!0,tokenize:PB};function LB(e){return yp(e),e}function NB(e,t){let r;return n;function n(a){return e.enter("content"),r=e.enter("chunkContent",{contentType:"content"}),o(a)}function o(a){return a===null?i(a):Z(a)?e.check(OB,s,i)(a):(e.consume(a),o)}function i(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,o}}function PB(e,t,r){let n=this;return o;function o(s){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),pe(e,i,"linePrefix")}function i(s){if(s===null||Z(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 bp(e,t,r,n,o,i,s,a,l){let c=l||Number.POSITIVE_INFINITY,u=0;return d;function d(y){return y===60?(e.enter(n),e.enter(o),e.enter(i),e.consume(y),e.exit(i),p):y===null||y===32||y===41||yi(y)?r(y):(e.enter(n),e.enter(s),e.enter(a),e.enter("chunkString",{contentType:"string"}),g(y))}function p(y){return y===62?(e.enter(i),e.consume(y),e.exit(i),e.exit(o),e.exit(n),t):(e.enter(a),e.enter("chunkString",{contentType:"string"}),f(y))}function f(y){return y===62?(e.exit("chunkString"),e.exit(a),p(y)):y===null||y===60||Z(y)?r(y):(e.consume(y),y===92?m:f)}function m(y){return y===60||y===62||y===92?(e.consume(y),f):f(y)}function g(y){return!u&&(y===null||y===41||Ce(y))?(e.exit("chunkString"),e.exit(a),e.exit(s),e.exit(n),t(y)):u<c&&y===40?(e.consume(y),u++,g):y===41?(e.consume(y),u--,g):y===null||y===32||y===40||yi(y)?r(y):(e.consume(y),y===92?x:g)}function x(y){return y===40||y===41||y===92?(e.consume(y),g):g(y)}}function vp(e,t,r,n,o,i){let s=this,a=0,l;return c;function c(f){return e.enter(n),e.enter(o),e.consume(f),e.exit(o),e.enter(i),u}function u(f){return a>999||f===null||f===91||f===93&&!l||f===94&&!a&&"_hiddenFootnoteSupport"in s.parser.constructs?r(f):f===93?(e.exit(i),e.enter(o),e.consume(f),e.exit(o),e.exit(n),t):Z(f)?(e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),u):(e.enter("chunkString",{contentType:"string"}),d(f))}function d(f){return f===null||f===91||f===93||Z(f)||a++>999?(e.exit("chunkString"),u(f)):(e.consume(f),l||(l=!ae(f)),f===92?p:d)}function p(f){return f===91||f===92||f===93?(e.consume(f),a++,d):d(f)}}function wp(e,t,r,n,o,i){let s;return a;function a(p){return p===34||p===39||p===40?(e.enter(n),e.enter(o),e.consume(p),e.exit(o),s=p===40?41:p,l):r(p)}function l(p){return p===s?(e.enter(o),e.consume(p),e.exit(o),e.exit(n),t):(e.enter(i),c(p))}function c(p){return p===s?(e.exit(i),l(s)):p===null?r(p):Z(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),pe(e,c,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),u(p))}function u(p){return p===s||p===null||Z(p)?(e.exit("chunkString"),c(p)):(e.consume(p),p===92?d:u)}function d(p){return p===s||p===92?(e.consume(p),u):u(p)}}function Di(e,t){let r;return n;function n(o){return Z(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),r=!0,n):ae(o)?pe(e,n,r?"linePrefix":"lineSuffix")(o):t(o)}}var _g={name:"definition",tokenize:RB},FB={partial:!0,tokenize:BB};function RB(e,t,r){let n=this,o;return i;function i(f){return e.enter("definition"),s(f)}function s(f){return vp.call(n,e,a,r,"definitionLabel","definitionLabelMarker","definitionLabelString")(f)}function a(f){return o=at(n.sliceSerialize(n.events[n.events.length-1][1]).slice(1,-1)),f===58?(e.enter("definitionMarker"),e.consume(f),e.exit("definitionMarker"),l):r(f)}function l(f){return Ce(f)?Di(e,c)(f):c(f)}function c(f){return bp(e,u,r,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(f)}function u(f){return e.attempt(FB,d,d)(f)}function d(f){return ae(f)?pe(e,p,"whitespace")(f):p(f)}function p(f){return f===null||Z(f)?(e.exit("definition"),n.parser.defined.push(o),t(f)):r(f)}}function BB(e,t,r){return n;function n(a){return Ce(a)?Di(e,o)(a):r(a)}function o(a){return wp(e,i,r,"definitionTitle","definitionTitleMarker","definitionTitleString")(a)}function i(a){return ae(a)?pe(e,s,"whitespace")(a):s(a)}function s(a){return a===null||Z(a)?t(a):r(a)}}var Og={name:"hardBreakEscape",tokenize:zB};function zB(e,t,r){return n;function n(i){return e.enter("hardBreakEscape"),e.consume(i),o}function o(i){return Z(i)?(e.exit("hardBreakEscape"),t(i)):r(i)}}var Lg={name:"headingAtx",resolve:HB,tokenize:UB};function HB(e,t){let r=e.length-2,n=3,o,i;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&&(o={type:"atxHeadingText",start:e[n][1].start,end:e[r][1].end},i={type:"chunkText",start:e[n][1].start,end:e[r][1].end,contentType:"text"},dt(e,n,r-n+1,[["enter",o,t],["enter",i,t],["exit",i,t],["exit",o,t]])),e}function UB(e,t,r){let n=0;return o;function o(u){return e.enter("atxHeading"),i(u)}function i(u){return e.enter("atxHeadingSequence"),s(u)}function s(u){return u===35&&n++<6?(e.consume(u),s):u===null||Ce(u)?(e.exit("atxHeadingSequence"),a(u)):r(u)}function a(u){return u===35?(e.enter("atxHeadingSequence"),l(u)):u===null||Z(u)?(e.exit("atxHeading"),t(u)):ae(u)?pe(e,a,"whitespace")(u):(e.enter("atxHeadingText"),c(u))}function l(u){return u===35?(e.consume(u),l):(e.exit("atxHeadingSequence"),a(u))}function c(u){return u===null||u===35||Ce(u)?(e.exit("atxHeadingText"),a(u)):(e.consume(u),c)}}var _C=["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"],Ng=["pre","script","style","textarea"];var Pg={concrete:!0,name:"htmlFlow",resolveTo:YB,tokenize:WB},jB={partial:!0,tokenize:GB},qB={partial:!0,tokenize:VB};function YB(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 WB(e,t,r){let n=this,o,i,s,a,l;return c;function c(k){return u(k)}function u(k){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(k),d}function d(k){return k===33?(e.consume(k),p):k===47?(e.consume(k),i=!0,g):k===63?(e.consume(k),o=3,n.interrupt?t:w):Dt(k)?(e.consume(k),s=String.fromCharCode(k),x):r(k)}function p(k){return k===45?(e.consume(k),o=2,f):k===91?(e.consume(k),o=5,a=0,m):Dt(k)?(e.consume(k),o=4,n.interrupt?t:w):r(k)}function f(k){return k===45?(e.consume(k),n.interrupt?t:w):r(k)}function m(k){let Ke="CDATA[";return k===Ke.charCodeAt(a++)?(e.consume(k),a===Ke.length?n.interrupt?t:Q:m):r(k)}function g(k){return Dt(k)?(e.consume(k),s=String.fromCharCode(k),x):r(k)}function x(k){if(k===null||k===47||k===62||Ce(k)){let Ke=k===47,gt=s.toLowerCase();return!Ke&&!i&&Ng.includes(gt)?(o=1,n.interrupt?t(k):Q(k)):_C.includes(s.toLowerCase())?(o=6,Ke?(e.consume(k),y):n.interrupt?t(k):Q(k)):(o=7,n.interrupt&&!n.parser.lazy[n.now().line]?r(k):i?T(k):D(k))}return k===45||st(k)?(e.consume(k),s+=String.fromCharCode(k),x):r(k)}function y(k){return k===62?(e.consume(k),n.interrupt?t:Q):r(k)}function T(k){return ae(k)?(e.consume(k),T):_(k)}function D(k){return k===47?(e.consume(k),_):k===58||k===95||Dt(k)?(e.consume(k),H):ae(k)?(e.consume(k),D):_(k)}function H(k){return k===45||k===46||k===58||k===95||st(k)?(e.consume(k),H):j(k)}function j(k){return k===61?(e.consume(k),M):ae(k)?(e.consume(k),j):D(k)}function M(k){return k===null||k===60||k===61||k===62||k===96?r(k):k===34||k===39?(e.consume(k),l=k,U):ae(k)?(e.consume(k),M):le(k)}function U(k){return k===l?(e.consume(k),l=null,ee):k===null||Z(k)?r(k):(e.consume(k),U)}function le(k){return k===null||k===34||k===39||k===47||k===60||k===61||k===62||k===96||Ce(k)?j(k):(e.consume(k),le)}function ee(k){return k===47||k===62||ae(k)?D(k):r(k)}function _(k){return k===62?(e.consume(k),_e):r(k)}function _e(k){return k===null||Z(k)?Q(k):ae(k)?(e.consume(k),_e):r(k)}function Q(k){return k===45&&o===2?(e.consume(k),Y):k===60&&o===1?(e.consume(k),re):k===62&&o===4?(e.consume(k),Ie):k===63&&o===3?(e.consume(k),w):k===93&&o===5?(e.consume(k),we):Z(k)&&(o===6||o===7)?(e.exit("htmlFlowData"),e.check(jB,Ne,L)(k)):k===null||Z(k)?(e.exit("htmlFlowData"),L(k)):(e.consume(k),Q)}function L(k){return e.check(qB,F,Ne)(k)}function F(k){return e.enter("lineEnding"),e.consume(k),e.exit("lineEnding"),z}function z(k){return k===null||Z(k)?L(k):(e.enter("htmlFlowData"),Q(k))}function Y(k){return k===45?(e.consume(k),w):Q(k)}function re(k){return k===47?(e.consume(k),s="",ie):Q(k)}function ie(k){if(k===62){let Ke=s.toLowerCase();return Ng.includes(Ke)?(e.consume(k),Ie):Q(k)}return Dt(k)&&s.length<8?(e.consume(k),s+=String.fromCharCode(k),ie):Q(k)}function we(k){return k===93?(e.consume(k),w):Q(k)}function w(k){return k===62?(e.consume(k),Ie):k===45&&o===2?(e.consume(k),w):Q(k)}function Ie(k){return k===null||Z(k)?(e.exit("htmlFlowData"),Ne(k)):(e.consume(k),Ie)}function Ne(k){return e.exit("htmlFlow"),t(k)}}function VB(e,t,r){let n=this;return o;function o(s){return Z(s)?(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),i):r(s)}function i(s){return n.parser.lazy[n.now().line]?r(s):t(s)}}function GB(e,t,r){return n;function n(o){return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),e.attempt(yn,t,r)}}var Fg={name:"htmlText",tokenize:QB};function QB(e,t,r){let n=this,o,i,s;return a;function a(w){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(w),l}function l(w){return w===33?(e.consume(w),c):w===47?(e.consume(w),j):w===63?(e.consume(w),D):Dt(w)?(e.consume(w),le):r(w)}function c(w){return w===45?(e.consume(w),u):w===91?(e.consume(w),i=0,m):Dt(w)?(e.consume(w),T):r(w)}function u(w){return w===45?(e.consume(w),f):r(w)}function d(w){return w===null?r(w):w===45?(e.consume(w),p):Z(w)?(s=d,re(w)):(e.consume(w),d)}function p(w){return w===45?(e.consume(w),f):d(w)}function f(w){return w===62?Y(w):w===45?p(w):d(w)}function m(w){let Ie="CDATA[";return w===Ie.charCodeAt(i++)?(e.consume(w),i===Ie.length?g:m):r(w)}function g(w){return w===null?r(w):w===93?(e.consume(w),x):Z(w)?(s=g,re(w)):(e.consume(w),g)}function x(w){return w===93?(e.consume(w),y):g(w)}function y(w){return w===62?Y(w):w===93?(e.consume(w),y):g(w)}function T(w){return w===null||w===62?Y(w):Z(w)?(s=T,re(w)):(e.consume(w),T)}function D(w){return w===null?r(w):w===63?(e.consume(w),H):Z(w)?(s=D,re(w)):(e.consume(w),D)}function H(w){return w===62?Y(w):D(w)}function j(w){return Dt(w)?(e.consume(w),M):r(w)}function M(w){return w===45||st(w)?(e.consume(w),M):U(w)}function U(w){return Z(w)?(s=U,re(w)):ae(w)?(e.consume(w),U):Y(w)}function le(w){return w===45||st(w)?(e.consume(w),le):w===47||w===62||Ce(w)?ee(w):r(w)}function ee(w){return w===47?(e.consume(w),Y):w===58||w===95||Dt(w)?(e.consume(w),_):Z(w)?(s=ee,re(w)):ae(w)?(e.consume(w),ee):Y(w)}function _(w){return w===45||w===46||w===58||w===95||st(w)?(e.consume(w),_):_e(w)}function _e(w){return w===61?(e.consume(w),Q):Z(w)?(s=_e,re(w)):ae(w)?(e.consume(w),_e):ee(w)}function Q(w){return w===null||w===60||w===61||w===62||w===96?r(w):w===34||w===39?(e.consume(w),o=w,L):Z(w)?(s=Q,re(w)):ae(w)?(e.consume(w),Q):(e.consume(w),F)}function L(w){return w===o?(e.consume(w),o=void 0,z):w===null?r(w):Z(w)?(s=L,re(w)):(e.consume(w),L)}function F(w){return w===null||w===34||w===39||w===60||w===61||w===96?r(w):w===47||w===62||Ce(w)?ee(w):(e.consume(w),F)}function z(w){return w===47||w===62||Ce(w)?ee(w):r(w)}function Y(w){return w===62?(e.consume(w),e.exit("htmlTextData"),e.exit("htmlText"),t):r(w)}function re(w){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(w),e.exit("lineEnding"),ie}function ie(w){return ae(w)?pe(e,we,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(w):we(w)}function we(w){return e.enter("htmlTextData"),s(w)}}var Ci={name:"labelEnd",resolveAll:KB,resolveTo:e8,tokenize:t8},XB={tokenize:r8},JB={tokenize:n8},ZB={tokenize:o8};function KB(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 o=n.type==="labelImage"?4:2;n.type="data",t+=o}}return e.length!==r.length&&dt(e,0,e.length,r),e}function e8(e,t){let r=e.length,n=0,o,i,s,a;for(;r--;)if(o=e[r][1],i){if(o.type==="link"||o.type==="labelLink"&&o._inactive)break;e[r][0]==="enter"&&o.type==="labelLink"&&(o._inactive=!0)}else if(s){if(e[r][0]==="enter"&&(o.type==="labelImage"||o.type==="labelLink")&&!o._balanced&&(i=r,o.type!=="labelLink")){n=2;break}}else o.type==="labelEnd"&&(s=r);let l={type:e[i][1].type==="labelLink"?"link":"image",start:{...e[i][1].start},end:{...e[e.length-1][1].end}},c={type:"label",start:{...e[i][1].start},end:{...e[s][1].end}},u={type:"labelText",start:{...e[i+n+2][1].end},end:{...e[s-2][1].start}};return a=[["enter",l,t],["enter",c,t]],a=wt(a,e.slice(i+1,i+n+3)),a=wt(a,[["enter",u,t]]),a=wt(a,vo(t.parser.constructs.insideSpan.null,e.slice(i+n+4,s-3),t)),a=wt(a,[["exit",u,t],e[s-2],e[s-1],["exit",c,t]]),a=wt(a,e.slice(s+1)),a=wt(a,[["exit",l,t]]),dt(e,i,e.length,a),e}function t8(e,t,r){let n=this,o=n.events.length,i,s;for(;o--;)if((n.events[o][1].type==="labelImage"||n.events[o][1].type==="labelLink")&&!n.events[o][1]._balanced){i=n.events[o][1];break}return a;function a(p){return i?i._inactive?d(p):(s=n.parser.defined.includes(at(n.sliceSerialize({start:i.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(XB,u,s?u:d)(p):p===91?e.attempt(JB,u,s?c:d)(p):s?u(p):d(p)}function c(p){return e.attempt(ZB,u,d)(p)}function u(p){return t(p)}function d(p){return i._balanced=!0,r(p)}}function r8(e,t,r){return n;function n(d){return e.enter("resource"),e.enter("resourceMarker"),e.consume(d),e.exit("resourceMarker"),o}function o(d){return Ce(d)?Di(e,i)(d):i(d)}function i(d){return d===41?u(d):bp(e,s,a,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(d)}function s(d){return Ce(d)?Di(e,l)(d):u(d)}function a(d){return r(d)}function l(d){return d===34||d===39||d===40?wp(e,c,r,"resourceTitle","resourceTitleMarker","resourceTitleString")(d):u(d)}function c(d){return Ce(d)?Di(e,u)(d):u(d)}function u(d){return d===41?(e.enter("resourceMarker"),e.consume(d),e.exit("resourceMarker"),e.exit("resource"),t):r(d)}}function n8(e,t,r){let n=this;return o;function o(a){return vp.call(n,e,i,s,"reference","referenceMarker","referenceString")(a)}function i(a){return n.parser.defined.includes(at(n.sliceSerialize(n.events[n.events.length-1][1]).slice(1,-1)))?t(a):r(a)}function s(a){return r(a)}}function o8(e,t,r){return n;function n(i){return e.enter("reference"),e.enter("referenceMarker"),e.consume(i),e.exit("referenceMarker"),o}function o(i){return i===93?(e.enter("referenceMarker"),e.consume(i),e.exit("referenceMarker"),e.exit("reference"),t):r(i)}}var Rg={name:"labelStartImage",resolveAll:Ci.resolveAll,tokenize:i8};function i8(e,t,r){let n=this;return o;function o(a){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(a),e.exit("labelImageMarker"),i}function i(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 Bg={name:"labelStartLink",resolveAll:Ci.resolveAll,tokenize:s8};function s8(e,t,r){let n=this;return o;function o(s){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(s),e.exit("labelMarker"),e.exit("labelLink"),i}function i(s){return s===94&&"_hiddenFootnoteSupport"in n.parser.constructs?r(s):t(s)}}var vl={name:"lineEnding",tokenize:a8};function a8(e,t){return r;function r(n){return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),pe(e,t,"linePrefix")}}var Ei={name:"thematicBreak",tokenize:l8};function l8(e,t,r){let n=0,o;return i;function i(c){return e.enter("thematicBreak"),s(c)}function s(c){return o=c,a(c)}function a(c){return c===o?(e.enter("thematicBreakSequence"),l(c)):n>=3&&(c===null||Z(c))?(e.exit("thematicBreak"),t(c)):r(c)}function l(c){return c===o?(e.consume(c),n++,l):(e.exit("thematicBreakSequence"),ae(c)?pe(e,a,"whitespace")(c):a(c))}}var qt={continuation:{tokenize:p8},exit:m8,name:"list",tokenize:d8},c8={partial:!0,tokenize:h8},u8={partial:!0,tokenize:f8};function d8(e,t,r){let n=this,o=n.events[n.events.length-1],i=o&&o[1].type==="linePrefix"?o[2].sliceSerialize(o[1],!0).length:0,s=0;return a;function a(f){let m=n.containerState.type||(f===42||f===43||f===45?"listUnordered":"listOrdered");if(m==="listUnordered"?!n.containerState.marker||f===n.containerState.marker:pl(f)){if(n.containerState.type||(n.containerState.type=m,e.enter(m,{_container:!0})),m==="listUnordered")return e.enter("listItemPrefix"),f===42||f===45?e.check(Ei,r,c)(f):c(f);if(!n.interrupt||f===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),l(f)}return r(f)}function l(f){return pl(f)&&++s<10?(e.consume(f),l):(!n.interrupt||s<2)&&(n.containerState.marker?f===n.containerState.marker:f===41||f===46)?(e.exit("listItemValue"),c(f)):r(f)}function c(f){return e.enter("listItemMarker"),e.consume(f),e.exit("listItemMarker"),n.containerState.marker=n.containerState.marker||f,e.check(yn,n.interrupt?r:u,e.attempt(c8,p,d))}function u(f){return n.containerState.initialBlankLine=!0,i++,p(f)}function d(f){return ae(f)?(e.enter("listItemPrefixWhitespace"),e.consume(f),e.exit("listItemPrefixWhitespace"),p):r(f)}function p(f){return n.containerState.size=i+n.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(f)}}function p8(e,t,r){let n=this;return n.containerState._closeFlow=void 0,e.check(yn,o,i);function o(a){return n.containerState.furtherBlankLines=n.containerState.furtherBlankLines||n.containerState.initialBlankLine,pe(e,t,"listItemIndent",n.containerState.size+1)(a)}function i(a){return n.containerState.furtherBlankLines||!ae(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(u8,t,s)(a))}function s(a){return n.containerState._closeFlow=!0,n.interrupt=void 0,pe(e,e.attempt(qt,t,r),"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(a)}}function f8(e,t,r){let n=this;return pe(e,o,"listItemIndent",n.containerState.size+1);function o(i){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(i):r(i)}}function m8(e){e.exit(this.containerState.type)}function h8(e,t,r){let n=this;return pe(e,o,"listItemPrefixWhitespace",n.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function o(i){let s=n.events[n.events.length-1];return!ae(i)&&s&&s[1].type==="listItemPrefixWhitespace"?t(i):r(i)}}var Sp={name:"setextUnderline",resolveTo:g8,tokenize:x8};function g8(e,t){let r=e.length,n,o,i;for(;r--;)if(e[r][0]==="enter"){if(e[r][1].type==="content"){n=r;break}e[r][1].type==="paragraph"&&(o=r)}else e[r][1].type==="content"&&e.splice(r,1),!i&&e[r][1].type==="definition"&&(i=r);let s={type:"setextHeading",start:{...e[n][1].start},end:{...e[e.length-1][1].end}};return e[o][1].type="setextHeadingText",i?(e.splice(o,0,["enter",s,t]),e.splice(i+1,0,["exit",e[n][1],t]),e[n][1].end={...e[i][1].end}):e[n][1]=s,e.push(["exit",s,t]),e}function x8(e,t,r){let n=this,o;return i;function i(c){let u=n.events.length,d;for(;u--;)if(n.events[u][1].type!=="lineEnding"&&n.events[u][1].type!=="linePrefix"&&n.events[u][1].type!=="content"){d=n.events[u][1].type==="paragraph";break}return!n.parser.lazy[n.now().line]&&(n.interrupt||d)?(e.enter("setextHeadingLine"),o=c,s(c)):r(c)}function s(c){return e.enter("setextHeadingLineSequence"),a(c)}function a(c){return c===o?(e.consume(c),a):(e.exit("setextHeadingLineSequence"),ae(c)?pe(e,l,"lineSuffix")(c):l(c))}function l(c){return c===null||Z(c)?(e.exit("setextHeadingLine"),t(c)):r(c)}}var y8={tokenize:D8,partial:!0};function zg(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:S8,continuation:{tokenize:k8},exit:T8}},text:{91:{name:"gfmFootnoteCall",tokenize:w8},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:b8,resolveTo:v8}}}}function b8(e,t,r){let n=this,o=n.events.length,i=n.parser.gfmFootnotes||(n.parser.gfmFootnotes=[]),s;for(;o--;){let l=n.events[o][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 c=at(n.sliceSerialize({start:s.end,end:n.now()}));return c.codePointAt(0)!==94||!i.includes(c.slice(1))?r(l):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(l),e.exit("gfmFootnoteCallLabelMarker"),t(l))}}function v8(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 o={type:"gfmFootnoteCall",start:Object.assign({},e[r+3][1].start),end:Object.assign({},e[e.length-1][1].end)},i={type:"gfmFootnoteCallMarker",start:Object.assign({},e[r+3][1].end),end:Object.assign({},e[r+3][1].end)};i.end.column++,i.end.offset++,i.end._bufferIndex++;let s={type:"gfmFootnoteCallString",start:Object.assign({},i.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",o,t],e[r+3],e[r+4],["enter",i,t],["exit",i,t],["enter",s,t],["enter",a,t],["exit",a,t],["exit",s,t],e[e.length-2],e[e.length-1],["exit",o,t]];return e.splice(r,e.length-r+1,...l),e}function w8(e,t,r){let n=this,o=n.parser.gfmFootnotes||(n.parser.gfmFootnotes=[]),i=0,s;return a;function a(d){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(d),e.exit("gfmFootnoteCallLabelMarker"),l}function l(d){return d!==94?r(d):(e.enter("gfmFootnoteCallMarker"),e.consume(d),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",c)}function c(d){if(i>999||d===93&&!s||d===null||d===91||Ce(d))return r(d);if(d===93){e.exit("chunkString");let p=e.exit("gfmFootnoteCallString");return o.includes(at(n.sliceSerialize(p)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(d),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):r(d)}return Ce(d)||(s=!0),i++,e.consume(d),d===92?u:c}function u(d){return d===91||d===92||d===93?(e.consume(d),i++,c):c(d)}}function S8(e,t,r){let n=this,o=n.parser.gfmFootnotes||(n.parser.gfmFootnotes=[]),i,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"),c}function c(m){return m===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(m),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",u):r(m)}function u(m){if(s>999||m===93&&!a||m===null||m===91||Ce(m))return r(m);if(m===93){e.exit("chunkString");let g=e.exit("gfmFootnoteDefinitionLabelString");return i=at(n.sliceSerialize(g)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(m),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),p}return Ce(m)||(a=!0),s++,e.consume(m),m===92?d:u}function d(m){return m===91||m===92||m===93?(e.consume(m),s++,u):u(m)}function p(m){return m===58?(e.enter("definitionMarker"),e.consume(m),e.exit("definitionMarker"),o.includes(i)||o.push(i),pe(e,f,"gfmFootnoteDefinitionWhitespace")):r(m)}function f(m){return t(m)}}function k8(e,t,r){return e.check(yn,t,e.attempt(y8,t,r))}function T8(e){e.exit("gfmFootnoteDefinition")}function D8(e,t,r){let n=this;return pe(e,o,"gfmFootnoteDefinitionIndent",5);function o(i){let s=n.events[n.events.length-1];return s&&s[1].type==="gfmFootnoteDefinitionIndent"&&s[2].sliceSerialize(s[1],!0).length===4?t(i):r(i)}}var C8={}.hasOwnProperty,E8={};function OC(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function Hg(e){let t=e||E8,r=t.label||"Footnotes",n=t.labelTagName||"h2",o=t.labelAttributes===null||t.labelAttributes===void 0?'class="sr-only"':t.labelAttributes,i=t.backLabel||OC,s=t.clobberPrefix===null||t.clobberPrefix===void 0?"user-content-":t.clobberPrefix;return{enter:{gfmFootnoteDefinition(){this.getData("tightStack").push(!1)},gfmFootnoteDefinitionLabelString(){this.buffer()},gfmFootnoteCallString(){this.buffer()}},exit:{gfmFootnoteDefinition(){let a=this.getData("gfmFootnoteDefinitions"),l=this.getData("gfmFootnoteDefinitionStack"),c=this.getData("tightStack"),u=l.pop(),d=this.resume();a||this.setData("gfmFootnoteDefinitions",a={}),C8.call(a,u)||(a[u]=d),c.pop(),this.setData("slurpOneLineEnding",!0),this.setData("lastWasTag")},gfmFootnoteDefinitionLabelString(a){let l=this.getData("gfmFootnoteDefinitionStack");l||this.setData("gfmFootnoteDefinitionStack",l=[]),l.push(at(this.sliceSerialize(a))),this.resume(),this.buffer()},gfmFootnoteCallString(a){let l=this.getData("gfmFootnoteCallOrder"),c=this.getData("gfmFootnoteCallCounts"),u=at(this.sliceSerialize(a)),d;this.resume(),l||this.setData("gfmFootnoteCallOrder",l=[]),c||this.setData("gfmFootnoteCallCounts",c={});let p=l.indexOf(u),f=xn(u.toLowerCase());p===-1?(l.push(u),c[u]=1,d=l.length):(c[u]++,d=p+1);let m=c[u];this.tag('<sup><a href="#'+s+"fn-"+f+'" id="'+s+"fnref-"+f+(m>1?"-"+m:"")+'" data-footnote-ref="" aria-describedby="footnote-label">'+String(d)+"</a></sup>")},null(){let a=this.getData("gfmFootnoteCallOrder")||[],l=this.getData("gfmFootnoteCallCounts")||{},c=this.getData("gfmFootnoteDefinitions")||{},u=-1;for(a.length>0&&(this.lineEndingIfNeeded(),this.tag('<section data-footnotes="" class="footnotes"><'+n+' id="footnote-label"'+(o?" "+o:"")+">"),this.raw(this.encode(r)),this.tag("</"+n+">"),this.lineEndingIfNeeded(),this.tag("<ol>"));++u<a.length;){let d=a[u],p=xn(d.toLowerCase()),f=0,m=[];for(;++f<=l[d];)m.push('<a href="#'+s+"fnref-"+p+(f>1?"-"+f:"")+'" data-footnote-backref="" aria-label="'+this.encode(typeof i=="string"?i:i(u,f))+'" class="data-footnote-backref">\u21A9'+(f>1?"<sup>"+f+"</sup>":"")+"</a>");let g=m.join(" "),x=!1;this.lineEndingIfNeeded(),this.tag('<li id="'+s+"fn-"+p+'">'),this.lineEndingIfNeeded(),this.tag(c[d].replace(/<\/p>(?:\r?\n|\r)?$/,function(y){return x=!0," "+g+y})),x||(this.lineEndingIfNeeded(),this.tag(g)),this.lineEndingIfNeeded(),this.tag("</li>")}a.length>0&&(this.lineEndingIfNeeded(),this.tag("</ol>"),this.lineEndingIfNeeded(),this.tag("</section>"))}}}}function Ug(){return{enter:{strikethrough(){this.tag("<del>")}},exit:{strikethrough(){this.tag("</del>")}}}}function jg(e){let r=(e||{}).singleTilde,n={name:"strikethrough",tokenize:i,resolveAll:o};return r==null&&(r=!0),{text:{126:n},insideSpan:{null:[n]},attentionMarkers:{null:[126]}};function o(s,a){let l=-1;for(;++l<s.length;)if(s[l][0]==="enter"&&s[l][1].type==="strikethroughSequenceTemporary"&&s[l][1]._close){let c=l;for(;c--;)if(s[c][0]==="exit"&&s[c][1].type==="strikethroughSequenceTemporary"&&s[c][1]._open&&s[l][1].end.offset-s[l][1].start.offset===s[c][1].end.offset-s[c][1].start.offset){s[l][1].type="strikethroughSequence",s[c][1].type="strikethroughSequence";let u={type:"strikethrough",start:Object.assign({},s[c][1].start),end:Object.assign({},s[l][1].end)},d={type:"strikethroughText",start:Object.assign({},s[c][1].end),end:Object.assign({},s[l][1].start)},p=[["enter",u,a],["enter",s[c][1],a],["exit",s[c][1],a],["enter",d,a]],f=a.parser.constructs.insideSpan.null;f&&dt(p,p.length,0,vo(f,s.slice(c+1,l),a)),dt(p,p.length,0,[["exit",d,a],["enter",s[l][1],a],["exit",s[l][1],a],["exit",u,a]]),dt(s,c-1,l-c+3,p),l=c+p.length-2;break}}for(l=-1;++l<s.length;)s[l][1].type==="strikethroughSequenceTemporary"&&(s[l][1].type="data");return s}function i(s,a,l){let c=this.previous,u=this.events,d=0;return p;function p(m){return c===126&&u[u.length-1][1].type!=="characterEscape"?l(m):(s.enter("strikethroughSequenceTemporary"),f(m))}function f(m){let g=Bn(c);if(m===126)return d>1?l(m):(s.consume(m),d++,f);if(d<2&&!r)return l(m);let x=s.exit("strikethroughSequenceTemporary"),y=Bn(m);return x._open=!y||y===2&&!!g,x._close=!g||g===2&&!!y,a(m)}}}var qg={none:"",left:' align="left"',right:' align="right"',center:' align="center"'};function Yg(){return{enter:{table(e){let t=e._align;this.lineEndingIfNeeded(),this.tag("<table>"),this.setData("tableAlign",t)},tableBody(){this.tag("<tbody>")},tableData(){let e=this.getData("tableAlign"),t=this.getData("tableColumn"),r=qg[e[t]];r===void 0?this.buffer():(this.lineEndingIfNeeded(),this.tag("<td"+r+">"))},tableHead(){this.lineEndingIfNeeded(),this.tag("<thead>")},tableHeader(){let e=this.getData("tableAlign"),t=this.getData("tableColumn"),r=qg[e[t]];this.lineEndingIfNeeded(),this.tag("<th"+r+">")},tableRow(){this.setData("tableColumn",0),this.lineEndingIfNeeded(),this.tag("<tr>")}},exit:{codeTextData(e){let t=this.sliceSerialize(e);this.getData("tableAlign")&&(t=t.replace(/\\([\\|])/g,M8)),this.raw(this.encode(t))},table(){this.setData("tableAlign"),this.setData("slurpAllLineEndings"),this.lineEndingIfNeeded(),this.tag("</table>")},tableBody(){this.lineEndingIfNeeded(),this.tag("</tbody>")},tableData(){let e=this.getData("tableAlign"),t=this.getData("tableColumn");t in e?(this.tag("</td>"),this.setData("tableColumn",t+1)):this.resume()},tableHead(){this.lineEndingIfNeeded(),this.tag("</thead>")},tableHeader(){let e=this.getData("tableColumn");this.tag("</th>"),this.setData("tableColumn",e+1)},tableRow(){let e=this.getData("tableAlign"),t=this.getData("tableColumn");for(;t<e.length;)this.lineEndingIfNeeded(),this.tag("<td"+qg[e[t]]+"></td>"),t++;this.setData("tableColumn",t),this.lineEndingIfNeeded(),this.tag("</tr>")}}}}function M8(e,t){return t==="|"?t:e}var kp=class{constructor(){this.map=[]}add(t,r,n){I8(this,t,r,n)}consume(t){if(this.map.sort(function(i,s){return i[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.slice()),t.length=0;let o=n.pop();for(;o;){for(let i of o)t.push(i);o=n.pop()}this.map.length=0}};function I8(e,t,r,n){let o=0;if(!(r===0&&n.length===0)){for(;o<e.map.length;){if(e.map[o][0]===t){e.map[o][1]+=r,e.map[o][2].push(...n);return}o+=1}e.map.push([t,r,n])}}function LC(e,t){let r=!1,n=[];for(;t<e.length;){let o=e[t];if(r){if(o[0]==="enter")o[1].type==="tableContent"&&n.push(e[t+1][1].type==="tableDelimiterMarker"?"left":"none");else if(o[1].type==="tableContent"){if(e[t-1][1].type==="tableDelimiterMarker"){let i=n.length-1;n[i]=n[i]==="left"?"center":"right"}}else if(o[1].type==="tableDelimiterRow")break}else o[0]==="enter"&&o[1].type==="tableDelimiterRow"&&(r=!0);t+=1}return n}function Wg(){return{flow:{null:{name:"table",tokenize:$8,resolveAll:A8}}}}function $8(e,t,r){let n=this,o=0,i=0,s;return a;function a(_){let _e=n.events.length-1;for(;_e>-1;){let F=n.events[_e][1].type;if(F==="lineEnding"||F==="linePrefix")_e--;else break}let Q=_e>-1?n.events[_e][1].type:null,L=Q==="tableHead"||Q==="tableRow"?M:l;return L===M&&n.parser.lazy[n.now().line]?r(_):L(_)}function l(_){return e.enter("tableHead"),e.enter("tableRow"),c(_)}function c(_){return _===124||(s=!0,i+=1),u(_)}function u(_){return _===null?r(_):Z(_)?i>1?(i=0,n.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(_),e.exit("lineEnding"),f):r(_):ae(_)?pe(e,u,"whitespace")(_):(i+=1,s&&(s=!1,o+=1),_===124?(e.enter("tableCellDivider"),e.consume(_),e.exit("tableCellDivider"),s=!0,u):(e.enter("data"),d(_)))}function d(_){return _===null||_===124||Ce(_)?(e.exit("data"),u(_)):(e.consume(_),_===92?p:d)}function p(_){return _===92||_===124?(e.consume(_),d):d(_)}function f(_){return n.interrupt=!1,n.parser.lazy[n.now().line]?r(_):(e.enter("tableDelimiterRow"),s=!1,ae(_)?pe(e,m,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(_):m(_))}function m(_){return _===45||_===58?x(_):_===124?(s=!0,e.enter("tableCellDivider"),e.consume(_),e.exit("tableCellDivider"),g):j(_)}function g(_){return ae(_)?pe(e,x,"whitespace")(_):x(_)}function x(_){return _===58?(i+=1,s=!0,e.enter("tableDelimiterMarker"),e.consume(_),e.exit("tableDelimiterMarker"),y):_===45?(i+=1,y(_)):_===null||Z(_)?H(_):j(_)}function y(_){return _===45?(e.enter("tableDelimiterFiller"),T(_)):j(_)}function T(_){return _===45?(e.consume(_),T):_===58?(s=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(_),e.exit("tableDelimiterMarker"),D):(e.exit("tableDelimiterFiller"),D(_))}function D(_){return ae(_)?pe(e,H,"whitespace")(_):H(_)}function H(_){return _===124?m(_):_===null||Z(_)?!s||o!==i?j(_):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(_)):j(_)}function j(_){return r(_)}function M(_){return e.enter("tableRow"),U(_)}function U(_){return _===124?(e.enter("tableCellDivider"),e.consume(_),e.exit("tableCellDivider"),U):_===null||Z(_)?(e.exit("tableRow"),t(_)):ae(_)?pe(e,U,"whitespace")(_):(e.enter("data"),le(_))}function le(_){return _===null||_===124||Ce(_)?(e.exit("data"),U(_)):(e.consume(_),_===92?ee:le)}function ee(_){return _===92||_===124?(e.consume(_),le):le(_)}}function A8(e,t){let r=-1,n=!0,o=0,i=[0,0,0,0],s=[0,0,0,0],a=!1,l=0,c,u,d,p=new kp;for(;++r<e.length;){let f=e[r],m=f[1];f[0]==="enter"?m.type==="tableHead"?(a=!1,l!==0&&(NC(p,t,l,c,u),u=void 0,l=0),c={type:"table",start:Object.assign({},m.start),end:Object.assign({},m.end)},p.add(r,0,[["enter",c,t]])):m.type==="tableRow"||m.type==="tableDelimiterRow"?(n=!0,d=void 0,i=[0,0,0,0],s=[0,r+1,0,0],a&&(a=!1,u={type:"tableBody",start:Object.assign({},m.start),end:Object.assign({},m.end)},p.add(r,0,[["enter",u,t]])),o=m.type==="tableDelimiterRow"?2:u?3:1):o&&(m.type==="data"||m.type==="tableDelimiterMarker"||m.type==="tableDelimiterFiller")?(n=!1,s[2]===0&&(i[1]!==0&&(s[0]=s[1],d=Tp(p,t,i,o,void 0,d),i=[0,0,0,0]),s[2]=r)):m.type==="tableCellDivider"&&(n?n=!1:(i[1]!==0&&(s[0]=s[1],d=Tp(p,t,i,o,void 0,d)),i=s,s=[i[1],r,0,0])):m.type==="tableHead"?(a=!0,l=r):m.type==="tableRow"||m.type==="tableDelimiterRow"?(l=r,i[1]!==0?(s[0]=s[1],d=Tp(p,t,i,o,r,d)):s[1]!==0&&(d=Tp(p,t,s,o,r,d)),o=0):o&&(m.type==="data"||m.type==="tableDelimiterMarker"||m.type==="tableDelimiterFiller")&&(s[3]=r)}for(l!==0&&NC(p,t,l,c,u),p.consume(t.events),r=-1;++r<t.events.length;){let f=t.events[r];f[0]==="enter"&&f[1].type==="table"&&(f[1]._align=LC(t.events,r))}return e}function Tp(e,t,r,n,o,i){let s=n===1?"tableHeader":n===2?"tableDelimiter":"tableData",a="tableContent";r[0]!==0&&(i.end=Object.assign({},qs(t.events,r[0])),e.add(r[0],0,[["exit",i,t]]));let l=qs(t.events,r[1]);if(i={type:s,start:Object.assign({},l),end:Object.assign({},l)},e.add(r[1],0,[["enter",i,t]]),r[2]!==0){let c=qs(t.events,r[2]),u=qs(t.events,r[3]),d={type:a,start:Object.assign({},c),end:Object.assign({},u)};if(e.add(r[2],0,[["enter",d,t]]),n!==2){let p=t.events[r[2]],f=t.events[r[3]];if(p[1].end=Object.assign({},f[1].end),p[1].type="chunkText",p[1].contentType="text",r[3]>r[2]+1){let m=r[2]+1,g=r[3]-r[2]-1;e.add(m,g,[])}}e.add(r[3]+1,0,[["exit",d,t]])}return o!==void 0&&(i.end=Object.assign({},qs(t.events,o)),e.add(o,0,[["exit",i,t]]),i=void 0),i}function NC(e,t,r,n,o){let i=[],s=qs(t.events,r);o&&(o.end=Object.assign({},s),i.push(["exit",o,t])),n.end=Object.assign({},s),i.push(["exit",n,t]),e.add(r+1,0,i)}function qs(e,t){let r=e[t],n=r[0]==="enter"?"start":"end";return r[1][n]}var PC=/<(\/?)(iframe|noembed|noframes|plaintext|script|style|title|textarea|xmp)(?=[\t\n\f\r />])/gi,_8=new RegExp("^"+PC.source,"i");function Vg(){return{exit:{htmlFlowData(e){FC.call(this,e,PC)},htmlTextData(e){FC.call(this,e,_8)}}}}function FC(e,t){let r=this.sliceSerialize(e);this.options.allowDangerousHtml&&(r=r.replace(t,"<$1$2")),this.raw(this.encode(r))}function Gg(){return{enter:{taskListCheck(){this.tag('<input type="checkbox" disabled="" ')}},exit:{taskListCheck(){this.tag("/>")},taskListCheckValueChecked(){this.tag('checked="" ')}}}}var O8={name:"tasklistCheck",tokenize:L8};function Qg(){return{text:{91:O8}}}function L8(e,t,r){let n=this;return o;function o(l){return n.previous!==null||!n._gfmTasklistFirstContentOfListItem?r(l):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(l),e.exit("taskListCheckMarker"),i)}function i(l){return Ce(l)?(e.enter("taskListCheckValueUnchecked"),e.consume(l),e.exit("taskListCheckValueUnchecked"),s):l===88||l===120?(e.enter("taskListCheckValueChecked"),e.consume(l),e.exit("taskListCheckValueChecked"),s):r(l)}function s(l){return l===93?(e.enter("taskListCheckMarker"),e.consume(l),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),a):r(l)}function a(l){return Z(l)?t(l):ae(l)?e.check({tokenize:N8},t,r)(l):r(l)}}function N8(e,t,r){return pe(e,n,"whitespace");function n(o){return o===null?r(o):t(o)}}function RC(e){return dp([Cg(),zg(),jg(e),Wg(),Qg()])}function $Le(e){return pp([Mg(),Hg(e),Ug(),Yg(),Vg(),Gg()])}var P8={};function Ys(e){let t=this,r=e||P8,n=t.data(),o=n.micromarkExtensions||(n.micromarkExtensions=[]),i=n.fromMarkdownExtensions||(n.fromMarkdownExtensions=[]),s=n.toMarkdownExtensions||(n.toMarkdownExtensions=[]);o.push(RC(r)),i.push(wg()),s.push(Sg(r))}var BC={}.hasOwnProperty,zC=/^(https?|ircs?|mailto|xmpp)$/i,F8=/^https?$/i;function Xg(e){let t=e||{},r=!0,n={},o=[[]],i=[],s=[],l=pp([{enter:{blockQuote:z,codeFenced:we,codeFencedFenceInfo:x,codeFencedFenceMeta:x,codeIndented:Ne,codeText:Gt,content:Gr,definition:qe,definitionDestinationString:nr,definitionLabelString:x,definitionTitleString:x,emphasis:Oo,htmlFlow:pr,htmlText:kr,image:Ke,label:x,link:gt,listItemMarker:_e,listItemValue:_,listOrdered:le,listUnordered:ee,paragraph:re,reference:x,resource:$,resourceDestinationString:A,resourceTitleString:x,setextHeading:Sr,strong:Lo},exit:{atxHeading:rt,atxHeadingSequence:dr,autolinkEmail:cA,autolinkProtocol:lA,blockQuote:Y,characterEscapeValue:W,characterReferenceMarkerHexadecimal:db,characterReferenceMarkerNumeric:db,characterReferenceValue:aA,codeFenced:k,codeFencedFence:Ie,codeFencedFenceInfo:w,codeFencedFenceMeta:U,codeFlowValue:Se,codeIndented:k,codeText:jn,codeTextData:W,data:W,definition:Fr,definitionDestinationString:Ct,definitionLabelString:Pe,definitionTitleString:Vt,emphasis:Rr,hardBreakEscape:Re,hardBreakTrailing:Re,htmlFlow:Xr,htmlFlowData:W,htmlText:Xr,htmlTextData:W,image:Ge,label:I,labelText:ur,lineEnding:me,link:Ge,listOrdered:Q,listUnordered:L,paragraph:ie,reference:U,referenceString:S,resource:U,resourceDestinationString:B,resourceTitleString:ue,setextHeading:P,setextHeadingLineSequence:Qr,setextHeadingText:or,strong:iA,thematicBreak:sA}},...t.htmlExtensions||[]]),c={definitions:n,tightStack:s},u={buffer:x,encode:M,getData:g,lineEndingIfNeeded:j,options:t,raw:D,resume:y,setData:m,tag:T},d=t.defaultLineEnding;return p;function p(X){let de=-1,Nt=0,Br=[],Jr=[],Cn=[];for(;++de<X.length;)!d&&(X[de][1].type==="lineEnding"||X[de][1].type==="lineEndingBlank")&&(d=X[de][2].sliceSerialize(X[de][1])),(X[de][1].type==="listOrdered"||X[de][1].type==="listUnordered")&&(X[de][0]==="enter"?Br.push(de):f(X.slice(Br.pop(),de))),X[de][1].type==="definition"&&(X[de][0]==="enter"?(Cn=wt(Cn,X.slice(Nt,de)),Nt=de):(Jr=wt(Jr,X.slice(Nt,de+1)),Nt=de+1));Jr=wt(Jr,Cn),Jr=wt(Jr,X.slice(Nt)),de=-1;let Zr=Jr;for(l.enter.null&&l.enter.null.call(u);++de<X.length;){let pb=l[Zr[de][0]],fb=Zr[de][1].type,mb=pb[fb];BC.call(pb,fb)&&mb&&mb.call({sliceSerialize:Zr[de][2].sliceSerialize,...u},Zr[de][1])}return l.exit.null&&l.exit.null.call(u),o[0].join("")}function f(X){let de=X.length,Nt=0,Br=0,Jr=!1,Cn;for(;++Nt<de;){let Zr=X[Nt];if(Zr[1]._container)Cn=void 0,Zr[0]==="enter"?Br++:Br--;else switch(Zr[1].type){case"listItemPrefix":{Zr[0]==="exit"&&(Cn=!0);break}case"linePrefix":break;case"lineEndingBlank":{Zr[0]==="enter"&&!Br&&(Cn?Cn=void 0:Jr=!0);break}default:Cn=void 0}}X[0][1]._loose=Jr}function m(X,de){c[X]=de}function g(X){return c[X]}function x(){o.push([])}function y(){return o.pop().join("")}function T(X){r&&(m("lastWasTag",!0),o[o.length-1].push(X))}function D(X){m("lastWasTag"),o[o.length-1].push(X)}function H(){D(d||`
|
|
78
|
+
`)}function j(){let X=o[o.length-1],de=X[X.length-1],Nt=de?de.charCodeAt(de.length-1):null;Nt===10||Nt===13||Nt===null||H()}function M(X){return g("ignoreEncode")?X:fp(X)}function U(){y()}function le(X){s.push(!X._loose),j(),T("<ol"),m("expectFirstItem",!0)}function ee(X){s.push(!X._loose),j(),T("<ul"),m("expectFirstItem",!0)}function _(X){if(g("expectFirstItem")){let de=Number.parseInt(this.sliceSerialize(X),10);de!==1&&T(' start="'+M(String(de))+'"')}}function _e(){g("expectFirstItem")?T(">"):F(),j(),T("<li>"),m("expectFirstItem"),m("lastWasTag")}function Q(){F(),s.pop(),H(),T("</ol>")}function L(){F(),s.pop(),H(),T("</ul>")}function F(){g("lastWasTag")&&!g("slurpAllLineEndings")&&j(),T("</li>"),m("slurpAllLineEndings")}function z(){s.push(!1),j(),T("<blockquote>")}function Y(){s.pop(),j(),T("</blockquote>"),m("slurpAllLineEndings")}function re(){s[s.length-1]||(j(),T("<p>")),m("slurpAllLineEndings")}function ie(){s[s.length-1]?m("slurpAllLineEndings",!0):T("</p>")}function we(){j(),T("<pre><code"),m("fencesCount",0)}function w(){let X=y();T(' class="language-'+X+'"')}function Ie(){let X=g("fencesCount")||0;X||(T(">"),m("slurpOneLineEnding",!0)),m("fencesCount",X+1)}function Ne(){j(),T("<pre><code>")}function k(){let X=g("fencesCount");X!==void 0&&X<2&&c.tightStack.length>0&&!g("lastWasTag")&&H(),g("flowCodeSeenData")&&j(),T("</code></pre>"),X!==void 0&&X<2&&j(),m("flowCodeSeenData"),m("fencesCount"),m("slurpOneLineEnding")}function Ke(){i.push({image:!0}),r=void 0}function gt(){i.push({})}function ur(X){i[i.length-1].labelId=this.sliceSerialize(X)}function I(){i[i.length-1].label=y()}function S(X){i[i.length-1].referenceId=this.sliceSerialize(X)}function $(){x(),i[i.length-1].destination=""}function A(){x(),m("ignoreEncode",!0)}function B(){i[i.length-1].destination=y(),m("ignoreEncode")}function ue(){i[i.length-1].title=y()}function Ge(){let X=i.length-1,de=i[X],Nt=de.referenceId||de.labelId,Br=de.destination===void 0?n[at(Nt)]:de;for(r=!0;X--;)if(i[X].image){r=void 0;break}de.image?(T('<img src="'+xn(Br.destination,t.allowDangerousProtocol?void 0:F8)+'" alt="'),D(de.label),T('"')):T('<a href="'+xn(Br.destination,t.allowDangerousProtocol?void 0:zC)+'"'),T(Br.title?' title="'+Br.title+'"':""),de.image?T(" />"):(T(">"),D(de.label),T("</a>")),i.pop()}function qe(){x(),i.push({})}function Pe(X){y(),i[i.length-1].labelId=this.sliceSerialize(X)}function nr(){x(),m("ignoreEncode",!0)}function Ct(){i[i.length-1].destination=y(),m("ignoreEncode")}function Vt(){i[i.length-1].title=y()}function Fr(){let X=i[i.length-1],de=at(X.labelId);y(),BC.call(n,de)||(n[de]=i[i.length-1]),i.pop()}function Gr(){m("slurpAllLineEndings",!0)}function dr(X){g("headingRank")||(m("headingRank",this.sliceSerialize(X).length),j(),T("<h"+g("headingRank")+">"))}function Sr(){x(),m("slurpAllLineEndings")}function or(){m("slurpAllLineEndings",!0)}function rt(){T("</h"+g("headingRank")+">"),m("headingRank")}function Qr(X){m("headingRank",this.sliceSerialize(X).charCodeAt(0)===61?1:2)}function P(){let X=y();j(),T("<h"+g("headingRank")+">"),D(X),T("</h"+g("headingRank")+">"),m("slurpAllLineEndings"),m("headingRank")}function W(X){D(M(this.sliceSerialize(X)))}function me(X){if(!g("slurpAllLineEndings")){if(g("slurpOneLineEnding")){m("slurpOneLineEnding");return}if(g("inCodeText")){D(" ");return}D(M(this.sliceSerialize(X)))}}function Se(X){D(M(this.sliceSerialize(X))),m("flowCodeSeenData",!0)}function Re(){T("<br />")}function pr(){j(),kr()}function Xr(){m("ignoreEncode")}function kr(){t.allowDangerousHtml&&m("ignoreEncode",!0)}function Oo(){T("<em>")}function Lo(){T("<strong>")}function Gt(){m("inCodeText",!0),T("<code>")}function jn(){m("inCodeText"),T("</code>")}function Rr(){T("</em>")}function iA(){T("</strong>")}function sA(){j(),T("<hr />")}function db(X){m("characterReferenceType",X.type)}function aA(X){let de=this.sliceSerialize(X),Nt=g("characterReferenceType")?js(de,g("characterReferenceType")==="characterReferenceMarkerNumeric"?10:16):bo(de);D(M(Nt)),m("characterReferenceType")}function lA(X){let de=this.sliceSerialize(X);T('<a href="'+xn(de,t.allowDangerousProtocol?void 0:zC)+'">'),D(M(de)),T("</a>")}function cA(X){let de=this.sliceSerialize(X);T('<a href="'+xn("mailto:"+de)+'">'),D(M(de)),T("</a>")}}var HC={tokenize:R8};function R8(e){let t=e.attempt(this.parser.constructs.contentInitial,n,o),r;return t;function n(a){if(a===null){e.consume(a);return}return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),pe(e,t,"linePrefix")}function o(a){return e.enter("paragraph"),i(a)}function i(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 Z(a)?(e.consume(a),e.exit("chunkText"),i):(e.consume(a),s)}}var jC={tokenize:B8},UC={tokenize:z8};function B8(e){let t=this,r=[],n=0,o,i,s;return a;function a(D){if(n<r.length){let H=r[n];return t.containerState=H[1],e.attempt(H[0].continuation,l,c)(D)}return c(D)}function l(D){if(n++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,o&&T();let H=t.events.length,j=H,M;for(;j--;)if(t.events[j][0]==="exit"&&t.events[j][1].type==="chunkFlow"){M=t.events[j][1].end;break}y(n);let U=H;for(;U<t.events.length;)t.events[U][1].end={...M},U++;return dt(t.events,j+1,0,t.events.slice(H)),t.events.length=U,c(D)}return a(D)}function c(D){if(n===r.length){if(!o)return p(D);if(o.currentConstruct&&o.currentConstruct.concrete)return m(D);t.interrupt=!!(o.currentConstruct&&!o._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(UC,u,d)(D)}function u(D){return o&&T(),y(n),p(D)}function d(D){return t.parser.lazy[t.now().line]=n!==r.length,s=t.now().offset,m(D)}function p(D){return t.containerState={},e.attempt(UC,f,m)(D)}function f(D){return n++,r.push([t.currentConstruct,t.containerState]),p(D)}function m(D){if(D===null){o&&T(),y(0),e.consume(D);return}return o=o||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:o,contentType:"flow",previous:i}),g(D)}function g(D){if(D===null){x(e.exit("chunkFlow"),!0),y(0),e.consume(D);return}return Z(D)?(e.consume(D),x(e.exit("chunkFlow")),n=0,t.interrupt=void 0,a):(e.consume(D),g)}function x(D,H){let j=t.sliceStream(D);if(H&&j.push(null),D.previous=i,i&&(i.next=D),i=D,o.defineSkip(D.start),o.write(j),t.parser.lazy[D.start.line]){let M=o.events.length;for(;M--;)if(o.events[M][1].start.offset<s&&(!o.events[M][1].end||o.events[M][1].end.offset>s))return;let U=t.events.length,le=U,ee,_;for(;le--;)if(t.events[le][0]==="exit"&&t.events[le][1].type==="chunkFlow"){if(ee){_=t.events[le][1].end;break}ee=!0}for(y(n),M=U;M<t.events.length;)t.events[M][1].end={..._},M++;dt(t.events,le+1,0,t.events.slice(U)),t.events.length=M}}function y(D){let H=r.length;for(;H-- >D;){let j=r[H];t.containerState=j[1],j[0].exit.call(t,e)}r.length=D}function T(){o.write([null]),i=void 0,o=void 0,t.containerState._closeFlow=void 0}}function z8(e,t,r){return pe(e,e.attempt(this.parser.constructs.document,t,r),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}var qC={tokenize:H8};function H8(e){let t=this,r=e.attempt(yn,n,e.attempt(this.parser.constructs.flowInitial,o,pe(e,e.attempt(this.parser.constructs.flow,o,e.attempt(Ag,o)),"linePrefix")));return r;function n(i){if(i===null){e.consume(i);return}return e.enter("lineEndingBlank"),e.consume(i),e.exit("lineEndingBlank"),t.currentConstruct=void 0,r}function o(i){if(i===null){e.consume(i);return}return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),t.currentConstruct=void 0,r}}var VC={resolveAll:WC()},GC=YC("string"),QC=YC("text");function YC(e){return{resolveAll:WC(e==="text"?U8:void 0),tokenize:t};function t(r){let n=this,o=this.parser.constructs[e],i=r.attempt(o,s,a);return s;function s(u){return c(u)?i(u):a(u)}function a(u){if(u===null){r.consume(u);return}return r.enter("data"),r.consume(u),l}function l(u){return c(u)?(r.exit("data"),i(u)):(r.consume(u),l)}function c(u){if(u===null)return!0;let d=o[u],p=-1;if(d)for(;++p<d.length;){let f=d[p];if(!f.previous||f.previous.call(n,n.previous))return!0}return!1}}}function WC(e){return t;function t(r,n){let o=-1,i;for(;++o<=r.length;)i===void 0?r[o]&&r[o][1].type==="data"&&(i=o,o++):(!r[o]||r[o][1].type!=="data")&&(o!==i+2&&(r[i][1].end=r[o-1][1].end,r.splice(i+2,o-i-2),o=i+2),i=void 0);return e?e(r,n):r}}function U8(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],o=t.sliceStream(n),i=o.length,s=-1,a=0,l;for(;i--;){let c=o[i];if(typeof c=="string"){for(s=c.length;c.charCodeAt(s-1)===32;)a++,s--;if(s)break;s=-1}else if(c===-2)l=!0,a++;else if(c!==-1){i++;break}}if(t._contentTypeTextTrailing&&r===e.length&&(a=0),a){let c={type:r===e.length||l||a<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:i?s:n.start._bufferIndex+s,_index:n.start._index+i,line:n.end.line,column:n.end.column-a,offset:n.end.offset-a},end:{...n.end}};n.end={...c.start},n.start.offset===n.end.offset?Object.assign(n,c):(e.splice(r,0,["enter",c,t],["exit",c,t]),r+=2)}r++}return e}var Jg={};he(Jg,{attentionMarkers:()=>X8,contentInitial:()=>q8,disable:()=>J8,document:()=>j8,flow:()=>W8,flowInitial:()=>Y8,insideSpan:()=>Q8,string:()=>V8,text:()=>G8});var j8={42:qt,43:qt,45:qt,48:qt,49:qt,50:qt,51:qt,52:qt,53:qt,54:qt,55:qt,56:qt,57:qt,62:mp},q8={91:_g},Y8={[-2]:xl,[-1]:xl,32:xl},W8={35:Lg,42:Ei,45:[Sp,Ei],60:Pg,61:Sp,95:Ei,96:xp,126:xp},V8={38:gp,92:hp},G8={[-5]:vl,[-4]:vl,[-3]:vl,33:Rg,38:gp,42:gl,60:[Ig,Fg],91:Bg,92:[Og,hp],93:Ci,95:gl,96:$g},Q8={null:[gl,VC]},X8={null:[42,95]},J8={null:[]};function XC(e,t,r){let n={_bufferIndex:-1,_index:0,line:r&&r.line||1,column:r&&r.column||1,offset:r&&r.offset||0},o={},i=[],s=[],a=[],l=!0,c={attempt:ee(U),check:ee(le),consume:H,enter:j,exit:M,interrupt:ee(le,{interrupt:!0})},u={code:null,containerState:{},defineSkip:y,events:[],now:x,parser:e,previous:null,sliceSerialize:m,sliceStream:g,write:f},d=t.tokenize.call(u,c),p;return t.resolveAll&&i.push(t),u;function f(L){return s=wt(s,L),T(),s[s.length-1]!==null?[]:(_(t,0),u.events=vo(i,u.events,u),u.events)}function m(L,F){return K8(g(L),F)}function g(L){return Z8(s,L)}function x(){let{_bufferIndex:L,_index:F,line:z,column:Y,offset:re}=n;return{_bufferIndex:L,_index:F,line:z,column:Y,offset:re}}function y(L){o[L.line]=L.column,Q()}function T(){let L;for(;n._index<s.length;){let F=s[n._index];if(typeof F=="string")for(L=n._index,n._bufferIndex<0&&(n._bufferIndex=0);n._index===L&&n._bufferIndex<F.length;)D(F.charCodeAt(n._bufferIndex));else D(F)}}function D(L){l=void 0,p=L,d=d(L)}function H(L){Z(L)?(n.line++,n.column=1,n.offset+=L===-3?2:1,Q()):L!==-1&&(n.column++,n.offset++),n._bufferIndex<0?n._index++:(n._bufferIndex++,n._bufferIndex===s[n._index].length&&(n._bufferIndex=-1,n._index++)),u.previous=L,l=!0}function j(L,F){let z=F||{};return z.type=L,z.start=x(),u.events.push(["enter",z,u]),a.push(z),z}function M(L){let F=a.pop();return F.end=x(),u.events.push(["exit",F,u]),F}function U(L,F){_(L,F.from)}function le(L,F){F.restore()}function ee(L,F){return z;function z(Y,re,ie){let we,w,Ie,Ne;return Array.isArray(Y)?Ke(Y):"tokenize"in Y?Ke([Y]):k(Y);function k(S){return $;function $(A){let B=A!==null&&S[A],ue=A!==null&&S.null,Ge=[...Array.isArray(B)?B:B?[B]:[],...Array.isArray(ue)?ue:ue?[ue]:[]];return Ke(Ge)(A)}}function Ke(S){return we=S,w=0,S.length===0?ie:gt(S[w])}function gt(S){return $;function $(A){return Ne=_e(),Ie=S,S.partial||(u.currentConstruct=S),S.name&&u.parser.constructs.disable.null.includes(S.name)?I(A):S.tokenize.call(F?Object.assign(Object.create(u),F):u,c,ur,I)(A)}}function ur(S){return l=!0,L(Ie,Ne),re}function I(S){return l=!0,Ne.restore(),++w<we.length?gt(we[w]):ie}}}function _(L,F){L.resolveAll&&!i.includes(L)&&i.push(L),L.resolve&&dt(u.events,F,u.events.length-F,L.resolve(u.events.slice(F),u)),L.resolveTo&&(u.events=L.resolveTo(u.events,u))}function _e(){let L=x(),F=u.previous,z=u.currentConstruct,Y=u.events.length,re=Array.from(a);return{from:Y,restore:ie};function ie(){n=L,u.previous=F,u.currentConstruct=z,u.events.length=Y,a=re,Q()}}function Q(){n.line in o&&n.column<2&&(n.column=o[n.line],n.offset+=o[n.line]-1)}}function Z8(e,t){let r=t.start._index,n=t.start._bufferIndex,o=t.end._index,i=t.end._bufferIndex,s;if(r===o)s=[e[r].slice(n,i)];else{if(s=e.slice(r,o),n>-1){let a=s[0];typeof a=="string"?s[0]=a.slice(n):s.shift()}i>0&&s.push(e[o].slice(0,i))}return s}function K8(e,t){let r=-1,n=[],o;for(;++r<e.length;){let i=e[r],s;if(typeof i=="string")s=i;else switch(i){case-5:{s="\r";break}case-4:{s=`
|
|
79
79
|
`;break}case-3:{s=`\r
|
|
80
|
-
`;break}case-2:{s=t?" ":" ";break}case-1:{if(!t&&o)continue;s=" ";break}default:s=String.fromCharCode(i)}o=i===-2,n.push(s)}return n.join("")}function wl(e){let n={constructs:dp([Zg,...(e||{}).extensions||[]]),content:o(HC),defined:[],document:o(jC),flow:o(qC),lazy:{},string:o(GC),text:o(QC)};return n;function o(i){return s;function s(a){return XC(n,i,a)}}}function Sl(e){for(;!yp(e););return e}var JC=/[\0\t\n\r]/g;function kl(){let e=1,t="",r=!0,n;return o;function o(i,s,a){let l=[],c,u,d,p,f;for(i=t+(typeof i=="string"?i.toString():new TextDecoder(s||void 0).decode(i)),d=0,t="",r&&(i.charCodeAt(0)===65279&&d++,r=void 0);d<i.length;){if(JC.lastIndex=d,c=JC.exec(i),p=c&&c.index!==void 0?c.index:i.length,f=i.charCodeAt(p),!c){t=i.slice(d);break}if(f===10&&d===p&&n)l.push(-3),n=void 0;else switch(n&&(l.push(-5),n=void 0),d<p&&(l.push(i.slice(d,p)),e+=p-d),f){case 0:{l.push(65533),e++;break}case 9:{for(u=Math.ceil(e/4)*4,l.push(-2);e++<u;)l.push(-1);break}case 10:{l.push(-4),e=1;break}default:n=!0,e=1}d=p+1}return a&&(n&&l.push(-5),t&&l.push(t),l.push(null)),l}}function DNe(e,t,r){return typeof t!="string"&&(r=t,t=void 0),Jg(r)(Sl(wl(r).document().write(kl()(e,t,!0))))}var ZC={}.hasOwnProperty;function Kg(e,t,r){return typeof t!="string"&&(r=t,t=void 0),tz(r)(Sl(wl(r).document().write(kl()(e,t,!0))))}function tz(e){let t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:i(Fr),autolinkProtocol:ee,autolinkEmail:ee,atxHeading:i(Pe),blockQuote:i(A),characterEscape:ee,characterReference:ee,codeFenced:i(B),codeFencedFenceInfo:s,codeFencedFenceMeta:s,codeIndented:i(B,s),codeText:i(ue,s),codeTextData:ee,data:ee,codeFlowValue:ee,definition:i(Ge),definitionDestinationString:s,definitionLabelString:s,definitionTitleString:s,emphasis:i(qe),hardBreakEscape:i(nr),hardBreakTrailing:i(nr),htmlFlow:i(Ct,s),htmlFlowData:ee,htmlText:i(Ct,s),htmlTextData:ee,image:i(Vt),label:s,link:i(Fr),listItem:i(dr),listItemValue:p,listOrdered:i(Gr,d),listUnordered:i(Gr),paragraph:i(Sr),reference:k,referenceString:s,resourceDestinationString:s,resourceTitleString:s,setextHeading:i(Pe),strong:i(or),thematicBreak:i(Qr)},exit:{atxHeading:l(),atxHeadingSequence:j,autolink:l(),autolinkEmail:$,autolinkProtocol:S,blockQuote:l(),characterEscapeValue:_,characterReferenceMarkerHexadecimal:gt,characterReferenceMarkerNumeric:gt,characterReferenceValue:ur,characterReference:I,codeFenced:l(x),codeFencedFence:g,codeFencedFenceInfo:f,codeFencedFenceMeta:m,codeFlowValue:_,codeIndented:l(y),codeText:l(z),codeTextData:_,data:_,definition:l(),definitionDestinationString:H,definitionLabelString:T,definitionTitleString:D,emphasis:l(),hardBreakEscape:l(Q),hardBreakTrailing:l(Q),htmlFlow:l(L),htmlFlowData:_,htmlText:l(F),htmlTextData:_,image:l(re),label:we,labelText:ie,lineEnding:_e,link:l(Y),listItem:l(),listOrdered:l(),listUnordered:l(),paragraph:l(),referenceString:Ke,resourceDestinationString:w,resourceTitleString:Ie,resource:Ne,setextHeading:l(le),setextHeadingLineSequence:U,setextHeadingText:M,strong:l(),thematicBreak:l()}};KC(t,(e||{}).mdastExtensions||[]);let r={};return n;function n(P){let W={type:"root",children:[]},he={stack:[W],tokenStack:[],config:t,enter:a,exit:c,buffer:s,resume:u,data:r},Se=[],Re=-1;for(;++Re<P.length;)if(P[Re][1].type==="listOrdered"||P[Re][1].type==="listUnordered")if(P[Re][0]==="enter")Se.push(Re);else{let pr=Se.pop();Re=o(P,pr,Re)}for(Re=-1;++Re<P.length;){let pr=t[P[Re][0]];ZC.call(pr,P[Re][1].type)&&pr[P[Re][1].type].call(Object.assign({sliceSerialize:P[Re][2].sliceSerialize},he),P[Re][1])}if(he.tokenStack.length>0){let pr=he.tokenStack[he.tokenStack.length-1];(pr[1]||eE).call(he,void 0,pr[0])}for(W.position={start:vo(P.length>0?P[0][1].start:{line:1,column:1,offset:0}),end:vo(P.length>0?P[P.length-2][1].end:{line:1,column:1,offset:0})},Re=-1;++Re<t.transforms.length;)W=t.transforms[Re](W)||W;return W}function o(P,W,he){let Se=W-1,Re=-1,pr=!1,Xr,kr,_o,Oo;for(;++Se<=he;){let Gt=P[Se];switch(Gt[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{Gt[0]==="enter"?Re++:Re--,Oo=void 0;break}case"lineEndingBlank":{Gt[0]==="enter"&&(Xr&&!Oo&&!Re&&!_o&&(_o=Se),Oo=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:Oo=void 0}if(!Re&&Gt[0]==="enter"&&Gt[1].type==="listItemPrefix"||Re===-1&&Gt[0]==="exit"&&(Gt[1].type==="listUnordered"||Gt[1].type==="listOrdered")){if(Xr){let jn=Se;for(kr=void 0;jn--;){let Rr=P[jn];if(Rr[1].type==="lineEnding"||Rr[1].type==="lineEndingBlank"){if(Rr[0]==="exit")continue;kr&&(P[kr][1].type="lineEndingBlank",pr=!0),Rr[1].type="lineEnding",kr=jn}else if(!(Rr[1].type==="linePrefix"||Rr[1].type==="blockQuotePrefix"||Rr[1].type==="blockQuotePrefixWhitespace"||Rr[1].type==="blockQuoteMarker"||Rr[1].type==="listItemIndent"))break}_o&&(!kr||_o<kr)&&(Xr._spread=!0),Xr.end=Object.assign({},kr?P[kr][1].start:Gt[1].end),P.splice(kr||Se,0,["exit",Xr,Gt[2]]),Se++,he++}if(Gt[1].type==="listItemPrefix"){let jn={type:"listItem",_spread:!1,start:Object.assign({},Gt[1].start),end:void 0};Xr=jn,P.splice(Se,0,["enter",jn,Gt[2]]),Se++,he++,_o=void 0,Oo=!0}}}return P[W][1]._spread=pr,he}function i(P,W){return he;function he(Se){a.call(this,P(Se),Se),W&&W.call(this,Se)}}function s(){this.stack.push({type:"fragment",children:[]})}function a(P,W,he){this.stack[this.stack.length-1].children.push(P),this.stack.push(P),this.tokenStack.push([W,he||void 0]),P.position={start:vo(W.start),end:void 0}}function l(P){return W;function W(he){P&&P.call(this,he),c.call(this,he)}}function c(P,W){let he=this.stack.pop(),Se=this.tokenStack.pop();if(Se)Se[0].type!==P.type&&(W?W.call(this,P,Se[0]):(Se[1]||eE).call(this,P,Se[0]));else throw new Error("Cannot close `"+P.type+"` ("+go({start:P.start,end:P.end})+"): it\u2019s not open");he.position.end=vo(P.end)}function u(){return vi(this.stack.pop())}function d(){this.data.expectingFirstListItemValue=!0}function p(P){if(this.data.expectingFirstListItemValue){let W=this.stack[this.stack.length-2];W.start=Number.parseInt(this.sliceSerialize(P),10),this.data.expectingFirstListItemValue=void 0}}function f(){let P=this.resume(),W=this.stack[this.stack.length-1];W.lang=P}function m(){let P=this.resume(),W=this.stack[this.stack.length-1];W.meta=P}function g(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function x(){let P=this.resume(),W=this.stack[this.stack.length-1];W.value=P.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function y(){let P=this.resume(),W=this.stack[this.stack.length-1];W.value=P.replace(/(\r?\n|\r)$/g,"")}function T(P){let W=this.resume(),he=this.stack[this.stack.length-1];he.label=W,he.identifier=at(this.sliceSerialize(P)).toLowerCase()}function D(){let P=this.resume(),W=this.stack[this.stack.length-1];W.title=P}function H(){let P=this.resume(),W=this.stack[this.stack.length-1];W.url=P}function j(P){let W=this.stack[this.stack.length-1];if(!W.depth){let he=this.sliceSerialize(P).length;W.depth=he}}function M(){this.data.setextHeadingSlurpLineEnding=!0}function U(P){let W=this.stack[this.stack.length-1];W.depth=this.sliceSerialize(P).codePointAt(0)===61?1:2}function le(){this.data.setextHeadingSlurpLineEnding=void 0}function ee(P){let he=this.stack[this.stack.length-1].children,Se=he[he.length-1];(!Se||Se.type!=="text")&&(Se=rt(),Se.position={start:vo(P.start),end:void 0},he.push(Se)),this.stack.push(Se)}function _(P){let W=this.stack.pop();W.value+=this.sliceSerialize(P),W.position.end=vo(P.end)}function _e(P){let W=this.stack[this.stack.length-1];if(this.data.atHardBreak){let he=W.children[W.children.length-1];he.position.end=vo(P.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(W.type)&&(ee.call(this,P),_.call(this,P))}function Q(){this.data.atHardBreak=!0}function L(){let P=this.resume(),W=this.stack[this.stack.length-1];W.value=P}function F(){let P=this.resume(),W=this.stack[this.stack.length-1];W.value=P}function z(){let P=this.resume(),W=this.stack[this.stack.length-1];W.value=P}function Y(){let P=this.stack[this.stack.length-1];if(this.data.inReference){let W=this.data.referenceType||"shortcut";P.type+="Reference",P.referenceType=W,delete P.url,delete P.title}else delete P.identifier,delete P.label;this.data.referenceType=void 0}function re(){let P=this.stack[this.stack.length-1];if(this.data.inReference){let W=this.data.referenceType||"shortcut";P.type+="Reference",P.referenceType=W,delete P.url,delete P.title}else delete P.identifier,delete P.label;this.data.referenceType=void 0}function ie(P){let W=this.sliceSerialize(P),he=this.stack[this.stack.length-2];he.label=up(W),he.identifier=at(W).toLowerCase()}function we(){let P=this.stack[this.stack.length-1],W=this.resume(),he=this.stack[this.stack.length-1];if(this.data.inReference=!0,he.type==="link"){let Se=P.children;he.children=Se}else he.alt=W}function w(){let P=this.resume(),W=this.stack[this.stack.length-1];W.url=P}function Ie(){let P=this.resume(),W=this.stack[this.stack.length-1];W.title=P}function Ne(){this.data.inReference=void 0}function k(){this.data.referenceType="collapsed"}function Ke(P){let W=this.resume(),he=this.stack[this.stack.length-1];he.label=W,he.identifier=at(this.sliceSerialize(P)).toLowerCase(),this.data.referenceType="full"}function gt(P){this.data.characterReferenceType=P.type}function ur(P){let W=this.sliceSerialize(P),he=this.data.characterReferenceType,Se;he?(Se=js(W,he==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):Se=yo(W);let Re=this.stack[this.stack.length-1];Re.value+=Se}function I(P){let W=this.stack.pop();W.position.end=vo(P.end)}function S(P){_.call(this,P);let W=this.stack[this.stack.length-1];W.url=this.sliceSerialize(P)}function $(P){_.call(this,P);let W=this.stack[this.stack.length-1];W.url="mailto:"+this.sliceSerialize(P)}function A(){return{type:"blockquote",children:[]}}function B(){return{type:"code",lang:null,meta:null,value:""}}function ue(){return{type:"inlineCode",value:""}}function Ge(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function qe(){return{type:"emphasis",children:[]}}function Pe(){return{type:"heading",depth:0,children:[]}}function nr(){return{type:"break"}}function Ct(){return{type:"html",value:""}}function Vt(){return{type:"image",title:null,url:"",alt:null}}function Fr(){return{type:"link",title:null,url:"",children:[]}}function Gr(P){return{type:"list",ordered:P.type==="listOrdered",start:null,spread:P._spread,children:[]}}function dr(P){return{type:"listItem",spread:P._spread,checked:null,children:[]}}function Sr(){return{type:"paragraph",children:[]}}function or(){return{type:"strong",children:[]}}function rt(){return{type:"text",value:""}}function Qr(){return{type:"thematicBreak"}}}function vo(e){return{line:e.line,column:e.column,offset:e.offset}}function KC(e,t){let r=-1;for(;++r<t.length;){let n=t[r];Array.isArray(n)?KC(e,n):rz(e,n)}}function rz(e,t){let r;for(r in t)if(ZC.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 eE(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+go({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+go({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+go({start:t.start,end:t.end})+") is still open")}function Ws(e){let t=this;t.parser=r;function r(n){return Kg(n,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}var rE=Qt(tE(),1),Tl=Object.assign(Ei(Error),{eval:Ei(EvalError),range:Ei(RangeError),reference:Ei(ReferenceError),syntax:Ei(SyntaxError),type:Ei(TypeError),uri:Ei(URIError)});function Ei(e){return t.displayName=e.displayName||e.name,t;function t(r,...n){let o=r&&(0,rE.default)(r,...n);return new e(o)}}var Dp={}.hasOwnProperty,nE={yaml:"-",toml:"+"};function Vs(e){let t=[],r=-1,n=Array.isArray(e)?e:e?[e]:["yaml"];for(;++r<n.length;)t[r]=nz(n[r]);return t}function nz(e){let t=e;if(typeof t=="string"){if(!Dp.call(nE,t))throw Tl("Missing matter definition for `%s`",t);t={type:t,marker:nE[t]}}else if(typeof t!="object")throw Tl("Expected matter to be an object, not `%j`",t);if(!Dp.call(t,"type"))throw Tl("Missing `type` in matter `%j`",t);if(!Dp.call(t,"fence")&&!Dp.call(t,"marker"))throw Tl("Missing `marker` or `fence` in matter `%j`",t);return t}function rx(e){let t=Vs(e),r={},n=-1;for(;++n<t.length;){let o=t[n],i=tx(o,"open").charCodeAt(0),s=oz(o),a=r[i];Array.isArray(a)?a.push(s):r[i]=[s]}return{flow:r}}function oz(e){let t=e.anywhere,r=e.type,n=r+"Fence",o=n+"Sequence",i=r+"Value",s={tokenize:u,partial:!0},a,l=0;return{tokenize:c,concrete:!0};function c(d,p,f){let m=this;return g;function g(U){let le=m.now();return le.column===1&&(le.line===1||t)&&(a=tx(e,"open"),l=0,U===a.charCodeAt(l))?(d.enter(r),d.enter(n),d.enter(o),x(U)):f(U)}function x(U){return l===a.length?(d.exit(o),ae(U)?(d.enter("whitespace"),y(U)):T(U)):U===a.charCodeAt(l++)?(d.consume(U),x):f(U)}function y(U){return ae(U)?(d.consume(U),y):(d.exit("whitespace"),T(U))}function T(U){return Z(U)?(d.exit(n),d.enter("lineEnding"),d.consume(U),d.exit("lineEnding"),a=tx(e,"close"),l=0,d.attempt(s,M,D)):f(U)}function D(U){return U===null||Z(U)?j(U):(d.enter(i),H(U))}function H(U){return U===null||Z(U)?(d.exit(i),j(U)):(d.consume(U),H)}function j(U){return U===null?f(U):(d.enter("lineEnding"),d.consume(U),d.exit("lineEnding"),d.attempt(s,M,D))}function M(U){return d.exit(r),p(U)}}function u(d,p,f){let m=0;return g;function g(D){return D===a.charCodeAt(m)?(d.enter(n),d.enter(o),x(D)):f(D)}function x(D){return m===a.length?(d.exit(o),ae(D)?(d.enter("whitespace"),y(D)):T(D)):D===a.charCodeAt(m++)?(d.consume(D),x):f(D)}function y(D){return ae(D)?(d.consume(D),y):(d.exit("whitespace"),T(D))}function T(D){return D===null||Z(D)?(d.exit(n),p(D)):f(D)}}}function tx(e,t){return e.marker?oE(e.marker,t).repeat(3):oE(e.fence,t)}function oE(e,t){return typeof e=="string"?e:e[t]}function ox(e){let t=Vs(e),r={},n={},o=-1;for(;++o<t.length;){let i=t[o];r[i.type]=iz(i),n[i.type]=sz,n[i.type+"Value"]=az}return{enter:r,exit:n}}function iz(e){return t;function t(r){this.enter({type:e.type,value:""},r),this.buffer()}}function sz(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 az(e){this.config.enter.data.call(this,e),this.config.exit.data.call(this,e)}function ix(e){let t=[],r={},n=Vs(e),o=-1;for(;++o<n.length;){let i=n[o];r[i.type]=lz(i);let s=nx(i,"open");t.push({atBreak:!0,character:s.charAt(0),after:Wo(s.charAt(1))})}return{unsafe:t,handlers:r}}function lz(e){let t=nx(e,"open"),r=nx(e,"close");return n;function n(o){return t+(o.value?`
|
|
80
|
+
`;break}case-2:{s=t?" ":" ";break}case-1:{if(!t&&o)continue;s=" ";break}default:s=String.fromCharCode(i)}o=i===-2,n.push(s)}return n.join("")}function wl(e){let n={constructs:dp([Jg,...(e||{}).extensions||[]]),content:o(HC),defined:[],document:o(jC),flow:o(qC),lazy:{},string:o(GC),text:o(QC)};return n;function o(i){return s;function s(a){return XC(n,i,a)}}}function Sl(e){for(;!yp(e););return e}var JC=/[\0\t\n\r]/g;function kl(){let e=1,t="",r=!0,n;return o;function o(i,s,a){let l=[],c,u,d,p,f;for(i=t+(typeof i=="string"?i.toString():new TextDecoder(s||void 0).decode(i)),d=0,t="",r&&(i.charCodeAt(0)===65279&&d++,r=void 0);d<i.length;){if(JC.lastIndex=d,c=JC.exec(i),p=c&&c.index!==void 0?c.index:i.length,f=i.charCodeAt(p),!c){t=i.slice(d);break}if(f===10&&d===p&&n)l.push(-3),n=void 0;else switch(n&&(l.push(-5),n=void 0),d<p&&(l.push(i.slice(d,p)),e+=p-d),f){case 0:{l.push(65533),e++;break}case 9:{for(u=Math.ceil(e/4)*4,l.push(-2);e++<u;)l.push(-1);break}case 10:{l.push(-4),e=1;break}default:n=!0,e=1}d=p+1}return a&&(n&&l.push(-5),t&&l.push(t),l.push(null)),l}}function TNe(e,t,r){return typeof t!="string"&&(r=t,t=void 0),Xg(r)(Sl(wl(r).document().write(kl()(e,t,!0))))}var ZC={}.hasOwnProperty;function Zg(e,t,r){return typeof t!="string"&&(r=t,t=void 0),ez(r)(Sl(wl(r).document().write(kl()(e,t,!0))))}function ez(e){let t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:i(Fr),autolinkProtocol:ee,autolinkEmail:ee,atxHeading:i(Pe),blockQuote:i(A),characterEscape:ee,characterReference:ee,codeFenced:i(B),codeFencedFenceInfo:s,codeFencedFenceMeta:s,codeIndented:i(B,s),codeText:i(ue,s),codeTextData:ee,data:ee,codeFlowValue:ee,definition:i(Ge),definitionDestinationString:s,definitionLabelString:s,definitionTitleString:s,emphasis:i(qe),hardBreakEscape:i(nr),hardBreakTrailing:i(nr),htmlFlow:i(Ct,s),htmlFlowData:ee,htmlText:i(Ct,s),htmlTextData:ee,image:i(Vt),label:s,link:i(Fr),listItem:i(dr),listItemValue:p,listOrdered:i(Gr,d),listUnordered:i(Gr),paragraph:i(Sr),reference:k,referenceString:s,resourceDestinationString:s,resourceTitleString:s,setextHeading:i(Pe),strong:i(or),thematicBreak:i(Qr)},exit:{atxHeading:l(),atxHeadingSequence:j,autolink:l(),autolinkEmail:$,autolinkProtocol:S,blockQuote:l(),characterEscapeValue:_,characterReferenceMarkerHexadecimal:gt,characterReferenceMarkerNumeric:gt,characterReferenceValue:ur,characterReference:I,codeFenced:l(x),codeFencedFence:g,codeFencedFenceInfo:f,codeFencedFenceMeta:m,codeFlowValue:_,codeIndented:l(y),codeText:l(z),codeTextData:_,data:_,definition:l(),definitionDestinationString:H,definitionLabelString:T,definitionTitleString:D,emphasis:l(),hardBreakEscape:l(Q),hardBreakTrailing:l(Q),htmlFlow:l(L),htmlFlowData:_,htmlText:l(F),htmlTextData:_,image:l(re),label:we,labelText:ie,lineEnding:_e,link:l(Y),listItem:l(),listOrdered:l(),listUnordered:l(),paragraph:l(),referenceString:Ke,resourceDestinationString:w,resourceTitleString:Ie,resource:Ne,setextHeading:l(le),setextHeadingLineSequence:U,setextHeadingText:M,strong:l(),thematicBreak:l()}};KC(t,(e||{}).mdastExtensions||[]);let r={};return n;function n(P){let W={type:"root",children:[]},me={stack:[W],tokenStack:[],config:t,enter:a,exit:c,buffer:s,resume:u,data:r},Se=[],Re=-1;for(;++Re<P.length;)if(P[Re][1].type==="listOrdered"||P[Re][1].type==="listUnordered")if(P[Re][0]==="enter")Se.push(Re);else{let pr=Se.pop();Re=o(P,pr,Re)}for(Re=-1;++Re<P.length;){let pr=t[P[Re][0]];ZC.call(pr,P[Re][1].type)&&pr[P[Re][1].type].call(Object.assign({sliceSerialize:P[Re][2].sliceSerialize},me),P[Re][1])}if(me.tokenStack.length>0){let pr=me.tokenStack[me.tokenStack.length-1];(pr[1]||eE).call(me,void 0,pr[0])}for(W.position={start:wo(P.length>0?P[0][1].start:{line:1,column:1,offset:0}),end:wo(P.length>0?P[P.length-2][1].end:{line:1,column:1,offset:0})},Re=-1;++Re<t.transforms.length;)W=t.transforms[Re](W)||W;return W}function o(P,W,me){let Se=W-1,Re=-1,pr=!1,Xr,kr,Oo,Lo;for(;++Se<=me;){let Gt=P[Se];switch(Gt[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{Gt[0]==="enter"?Re++:Re--,Lo=void 0;break}case"lineEndingBlank":{Gt[0]==="enter"&&(Xr&&!Lo&&!Re&&!Oo&&(Oo=Se),Lo=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:Lo=void 0}if(!Re&&Gt[0]==="enter"&&Gt[1].type==="listItemPrefix"||Re===-1&&Gt[0]==="exit"&&(Gt[1].type==="listUnordered"||Gt[1].type==="listOrdered")){if(Xr){let jn=Se;for(kr=void 0;jn--;){let Rr=P[jn];if(Rr[1].type==="lineEnding"||Rr[1].type==="lineEndingBlank"){if(Rr[0]==="exit")continue;kr&&(P[kr][1].type="lineEndingBlank",pr=!0),Rr[1].type="lineEnding",kr=jn}else if(!(Rr[1].type==="linePrefix"||Rr[1].type==="blockQuotePrefix"||Rr[1].type==="blockQuotePrefixWhitespace"||Rr[1].type==="blockQuoteMarker"||Rr[1].type==="listItemIndent"))break}Oo&&(!kr||Oo<kr)&&(Xr._spread=!0),Xr.end=Object.assign({},kr?P[kr][1].start:Gt[1].end),P.splice(kr||Se,0,["exit",Xr,Gt[2]]),Se++,me++}if(Gt[1].type==="listItemPrefix"){let jn={type:"listItem",_spread:!1,start:Object.assign({},Gt[1].start),end:void 0};Xr=jn,P.splice(Se,0,["enter",jn,Gt[2]]),Se++,me++,Oo=void 0,Lo=!0}}}return P[W][1]._spread=pr,me}function i(P,W){return me;function me(Se){a.call(this,P(Se),Se),W&&W.call(this,Se)}}function s(){this.stack.push({type:"fragment",children:[]})}function a(P,W,me){this.stack[this.stack.length-1].children.push(P),this.stack.push(P),this.tokenStack.push([W,me||void 0]),P.position={start:wo(W.start),end:void 0}}function l(P){return W;function W(me){P&&P.call(this,me),c.call(this,me)}}function c(P,W){let me=this.stack.pop(),Se=this.tokenStack.pop();if(Se)Se[0].type!==P.type&&(W?W.call(this,P,Se[0]):(Se[1]||eE).call(this,P,Se[0]));else throw new Error("Cannot close `"+P.type+"` ("+xo({start:P.start,end:P.end})+"): it\u2019s not open");me.position.end=wo(P.end)}function u(){return wi(this.stack.pop())}function d(){this.data.expectingFirstListItemValue=!0}function p(P){if(this.data.expectingFirstListItemValue){let W=this.stack[this.stack.length-2];W.start=Number.parseInt(this.sliceSerialize(P),10),this.data.expectingFirstListItemValue=void 0}}function f(){let P=this.resume(),W=this.stack[this.stack.length-1];W.lang=P}function m(){let P=this.resume(),W=this.stack[this.stack.length-1];W.meta=P}function g(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function x(){let P=this.resume(),W=this.stack[this.stack.length-1];W.value=P.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function y(){let P=this.resume(),W=this.stack[this.stack.length-1];W.value=P.replace(/(\r?\n|\r)$/g,"")}function T(P){let W=this.resume(),me=this.stack[this.stack.length-1];me.label=W,me.identifier=at(this.sliceSerialize(P)).toLowerCase()}function D(){let P=this.resume(),W=this.stack[this.stack.length-1];W.title=P}function H(){let P=this.resume(),W=this.stack[this.stack.length-1];W.url=P}function j(P){let W=this.stack[this.stack.length-1];if(!W.depth){let me=this.sliceSerialize(P).length;W.depth=me}}function M(){this.data.setextHeadingSlurpLineEnding=!0}function U(P){let W=this.stack[this.stack.length-1];W.depth=this.sliceSerialize(P).codePointAt(0)===61?1:2}function le(){this.data.setextHeadingSlurpLineEnding=void 0}function ee(P){let me=this.stack[this.stack.length-1].children,Se=me[me.length-1];(!Se||Se.type!=="text")&&(Se=rt(),Se.position={start:wo(P.start),end:void 0},me.push(Se)),this.stack.push(Se)}function _(P){let W=this.stack.pop();W.value+=this.sliceSerialize(P),W.position.end=wo(P.end)}function _e(P){let W=this.stack[this.stack.length-1];if(this.data.atHardBreak){let me=W.children[W.children.length-1];me.position.end=wo(P.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(W.type)&&(ee.call(this,P),_.call(this,P))}function Q(){this.data.atHardBreak=!0}function L(){let P=this.resume(),W=this.stack[this.stack.length-1];W.value=P}function F(){let P=this.resume(),W=this.stack[this.stack.length-1];W.value=P}function z(){let P=this.resume(),W=this.stack[this.stack.length-1];W.value=P}function Y(){let P=this.stack[this.stack.length-1];if(this.data.inReference){let W=this.data.referenceType||"shortcut";P.type+="Reference",P.referenceType=W,delete P.url,delete P.title}else delete P.identifier,delete P.label;this.data.referenceType=void 0}function re(){let P=this.stack[this.stack.length-1];if(this.data.inReference){let W=this.data.referenceType||"shortcut";P.type+="Reference",P.referenceType=W,delete P.url,delete P.title}else delete P.identifier,delete P.label;this.data.referenceType=void 0}function ie(P){let W=this.sliceSerialize(P),me=this.stack[this.stack.length-2];me.label=up(W),me.identifier=at(W).toLowerCase()}function we(){let P=this.stack[this.stack.length-1],W=this.resume(),me=this.stack[this.stack.length-1];if(this.data.inReference=!0,me.type==="link"){let Se=P.children;me.children=Se}else me.alt=W}function w(){let P=this.resume(),W=this.stack[this.stack.length-1];W.url=P}function Ie(){let P=this.resume(),W=this.stack[this.stack.length-1];W.title=P}function Ne(){this.data.inReference=void 0}function k(){this.data.referenceType="collapsed"}function Ke(P){let W=this.resume(),me=this.stack[this.stack.length-1];me.label=W,me.identifier=at(this.sliceSerialize(P)).toLowerCase(),this.data.referenceType="full"}function gt(P){this.data.characterReferenceType=P.type}function ur(P){let W=this.sliceSerialize(P),me=this.data.characterReferenceType,Se;me?(Se=js(W,me==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):Se=bo(W);let Re=this.stack[this.stack.length-1];Re.value+=Se}function I(P){let W=this.stack.pop();W.position.end=wo(P.end)}function S(P){_.call(this,P);let W=this.stack[this.stack.length-1];W.url=this.sliceSerialize(P)}function $(P){_.call(this,P);let W=this.stack[this.stack.length-1];W.url="mailto:"+this.sliceSerialize(P)}function A(){return{type:"blockquote",children:[]}}function B(){return{type:"code",lang:null,meta:null,value:""}}function ue(){return{type:"inlineCode",value:""}}function Ge(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function qe(){return{type:"emphasis",children:[]}}function Pe(){return{type:"heading",depth:0,children:[]}}function nr(){return{type:"break"}}function Ct(){return{type:"html",value:""}}function Vt(){return{type:"image",title:null,url:"",alt:null}}function Fr(){return{type:"link",title:null,url:"",children:[]}}function Gr(P){return{type:"list",ordered:P.type==="listOrdered",start:null,spread:P._spread,children:[]}}function dr(P){return{type:"listItem",spread:P._spread,checked:null,children:[]}}function Sr(){return{type:"paragraph",children:[]}}function or(){return{type:"strong",children:[]}}function rt(){return{type:"text",value:""}}function Qr(){return{type:"thematicBreak"}}}function wo(e){return{line:e.line,column:e.column,offset:e.offset}}function KC(e,t){let r=-1;for(;++r<t.length;){let n=t[r];Array.isArray(n)?KC(e,n):tz(e,n)}}function tz(e,t){let r;for(r in t)if(ZC.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 eE(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+xo({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+xo({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+xo({start:t.start,end:t.end})+") is still open")}function Ws(e){let t=this;t.parser=r;function r(n){return Zg(n,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}var rE=Qt(tE(),1),Tl=Object.assign(Mi(Error),{eval:Mi(EvalError),range:Mi(RangeError),reference:Mi(ReferenceError),syntax:Mi(SyntaxError),type:Mi(TypeError),uri:Mi(URIError)});function Mi(e){return t.displayName=e.displayName||e.name,t;function t(r,...n){let o=r&&(0,rE.default)(r,...n);return new e(o)}}var Dp={}.hasOwnProperty,nE={yaml:"-",toml:"+"};function Vs(e){let t=[],r=-1,n=Array.isArray(e)?e:e?[e]:["yaml"];for(;++r<n.length;)t[r]=rz(n[r]);return t}function rz(e){let t=e;if(typeof t=="string"){if(!Dp.call(nE,t))throw Tl("Missing matter definition for `%s`",t);t={type:t,marker:nE[t]}}else if(typeof t!="object")throw Tl("Expected matter to be an object, not `%j`",t);if(!Dp.call(t,"type"))throw Tl("Missing `type` in matter `%j`",t);if(!Dp.call(t,"fence")&&!Dp.call(t,"marker"))throw Tl("Missing `marker` or `fence` in matter `%j`",t);return t}function tx(e){let t=Vs(e),r={},n=-1;for(;++n<t.length;){let o=t[n],i=ex(o,"open").charCodeAt(0),s=nz(o),a=r[i];Array.isArray(a)?a.push(s):r[i]=[s]}return{flow:r}}function nz(e){let t=e.anywhere,r=e.type,n=r+"Fence",o=n+"Sequence",i=r+"Value",s={tokenize:u,partial:!0},a,l=0;return{tokenize:c,concrete:!0};function c(d,p,f){let m=this;return g;function g(U){let le=m.now();return le.column===1&&(le.line===1||t)&&(a=ex(e,"open"),l=0,U===a.charCodeAt(l))?(d.enter(r),d.enter(n),d.enter(o),x(U)):f(U)}function x(U){return l===a.length?(d.exit(o),ae(U)?(d.enter("whitespace"),y(U)):T(U)):U===a.charCodeAt(l++)?(d.consume(U),x):f(U)}function y(U){return ae(U)?(d.consume(U),y):(d.exit("whitespace"),T(U))}function T(U){return Z(U)?(d.exit(n),d.enter("lineEnding"),d.consume(U),d.exit("lineEnding"),a=ex(e,"close"),l=0,d.attempt(s,M,D)):f(U)}function D(U){return U===null||Z(U)?j(U):(d.enter(i),H(U))}function H(U){return U===null||Z(U)?(d.exit(i),j(U)):(d.consume(U),H)}function j(U){return U===null?f(U):(d.enter("lineEnding"),d.consume(U),d.exit("lineEnding"),d.attempt(s,M,D))}function M(U){return d.exit(r),p(U)}}function u(d,p,f){let m=0;return g;function g(D){return D===a.charCodeAt(m)?(d.enter(n),d.enter(o),x(D)):f(D)}function x(D){return m===a.length?(d.exit(o),ae(D)?(d.enter("whitespace"),y(D)):T(D)):D===a.charCodeAt(m++)?(d.consume(D),x):f(D)}function y(D){return ae(D)?(d.consume(D),y):(d.exit("whitespace"),T(D))}function T(D){return D===null||Z(D)?(d.exit(n),p(D)):f(D)}}}function ex(e,t){return e.marker?oE(e.marker,t).repeat(3):oE(e.fence,t)}function oE(e,t){return typeof e=="string"?e:e[t]}function nx(e){let t=Vs(e),r={},n={},o=-1;for(;++o<t.length;){let i=t[o];r[i.type]=oz(i),n[i.type]=iz,n[i.type+"Value"]=sz}return{enter:r,exit:n}}function oz(e){return t;function t(r){this.enter({type:e.type,value:""},r),this.buffer()}}function iz(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 sz(e){this.config.enter.data.call(this,e),this.config.exit.data.call(this,e)}function ox(e){let t=[],r={},n=Vs(e),o=-1;for(;++o<n.length;){let i=n[o];r[i.type]=az(i);let s=rx(i,"open");t.push({atBreak:!0,character:s.charAt(0),after:Vo(s.charAt(1))})}return{unsafe:t,handlers:r}}function az(e){let t=rx(e,"open"),r=rx(e,"close");return n;function n(o){return t+(o.value?`
|
|
81
81
|
`+o.value:"")+`
|
|
82
|
-
`+r}}function
|
|
82
|
+
`+r}}function rx(e,t){return e.marker?iE(e.marker,t).repeat(3):iE(e.fence,t)}function iE(e,t){return typeof e=="string"?e:e[t]}var lz="yaml";function Gs(e){let t=this,r=e||lz,n=t.data(),o=n.micromarkExtensions||(n.micromarkExtensions=[]),i=n.fromMarkdownExtensions||(n.fromMarkdownExtensions=[]),s=n.toMarkdownExtensions||(n.toMarkdownExtensions=[]);o.push(tx(r)),i.push(nx(r)),s.push(ox(r))}var sE=typeof self=="object"?self:globalThis,cz=(e,t)=>{let r=(o,i)=>(e.set(i,o),o),n=o=>{if(e.has(o))return e.get(o);let[i,s]=t[o];switch(i){case 0:case-1:return r(s,o);case 1:{let a=r([],o);for(let l of s)a.push(n(l));return a}case 2:{let a=r({},o);for(let[l,c]of s)a[n(l)]=n(c);return a}case 3:return r(new Date(s),o);case 4:{let{source:a,flags:l}=s;return r(new RegExp(a,l),o)}case 5:{let a=r(new Map,o);for(let[l,c]of s)a.set(n(l),n(c));return a}case 6:{let a=r(new Set,o);for(let l of s)a.add(n(l));return a}case 7:{let{name:a,message:l}=s;return r(new sE[a](l),o)}case 8:return r(BigInt(s),o);case"BigInt":return r(Object(BigInt(s)),o);case"ArrayBuffer":return r(new Uint8Array(s).buffer,s);case"DataView":{let{buffer:a}=new Uint8Array(s);return r(new DataView(a),s)}}return r(new sE[i](s),o)};return n},$p=e=>cz(new Map,e)(0);var Xs="",{toString:uz}={},{keys:dz}=Object,El=e=>{let t=typeof e;if(t!=="object"||!e)return[0,t];let r=uz.call(e).slice(8,-1);switch(r){case"Array":return[1,Xs];case"Object":return[2,Xs];case"Date":return[3,Xs];case"RegExp":return[4,Xs];case"Map":return[5,Xs];case"Set":return[6,Xs];case"DataView":return[1,r]}return r.includes("Array")?[1,r]:r.includes("Error")?[7,r]:[2,r]},Ap=([e,t])=>e===0&&(t==="function"||t==="symbol"),pz=(e,t,r,n)=>{let o=(s,a)=>{let l=n.push(s)-1;return r.set(a,l),l},i=s=>{if(r.has(s))return r.get(s);let[a,l]=El(s);switch(a){case 0:{let u=s;switch(l){case"bigint":a=8,u=s.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+l);u=null;break;case"undefined":return o([-1],s)}return o([a,u],s)}case 1:{if(l){let p=s;return l==="DataView"?p=new Uint8Array(s.buffer):l==="ArrayBuffer"&&(p=new Uint8Array(s)),o([l,[...p]],s)}let u=[],d=o([a,u],s);for(let p of s)u.push(i(p));return d}case 2:{if(l)switch(l){case"BigInt":return o([l,s.toString()],s);case"Boolean":case"Number":case"String":return o([l,s.valueOf()],s)}if(t&&"toJSON"in s)return i(s.toJSON());let u=[],d=o([a,u],s);for(let p of dz(s))(e||!Ap(El(s[p])))&&u.push([i(p),i(s[p])]);return d}case 3:return o([a,s.toISOString()],s);case 4:{let{source:u,flags:d}=s;return o([a,{source:u,flags:d}],s)}case 5:{let u=[],d=o([a,u],s);for(let[p,f]of s)(e||!(Ap(El(p))||Ap(El(f))))&&u.push([i(p),i(f)]);return d}case 6:{let u=[],d=o([a,u],s);for(let p of s)(e||!Ap(El(p)))&&u.push(i(p));return d}}let{message:c}=s;return o([a,{name:l,message:c}],s)};return i},_p=(e,{json:t,lossy:r}={})=>{let n=[];return pz(!(t||r),!!t,new Map,n)(e),n};var So=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?$p(_p(e,t)):structuredClone(e):(e,t)=>$p(_p(e,t));var Op=aE("end"),Lp=aE("start");function aE(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 Ml(e){let t=Lp(e),r=Op(e);if(t&&r)return{start:t,end:r}}var Ii=["ariaDescribedBy","ariaLabel","ariaLabelledBy"],Np={ancestors:{tbody:["table"],td:["table"],th:["table"],thead:["table"],tfoot:["table"],tr:["table"]},attributes:{a:[...Ii,"dataFootnoteBackref","dataFootnoteRef",["className","data-footnote-backref"],"href"],blockquote:["cite"],code:[["className",/^language-./]],del:["cite"],div:["itemScope","itemType"],dl:[...Ii],h2:[["className","sr-only"]],img:[...Ii,"longDesc","src"],input:[["disabled",!0],["type","checkbox"]],ins:["cite"],li:[["className","task-list-item"]],ol:[...Ii,["className","contains-task-list"]],q:["cite"],section:["dataFootnotes",["className","footnotes"]],source:["srcSet"],summary:[...Ii],table:[...Ii],ul:[...Ii,["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 ko={}.hasOwnProperty;function lx(e,t){let r={type:"root",children:[]},n={schema:t?{...Np,...t}:Np,stack:[]},o=lE(n,e);return o&&(Array.isArray(o)?o.length===1?r=o[0]:r.children=o:r=o),r}function lE(e,t){if(t&&typeof t=="object"){let r=t;switch(typeof r.type=="string"?r.type:""){case"comment":return fz(e,r);case"doctype":return mz(e,r);case"element":return hz(e,r);case"root":return gz(e,r);case"text":return xz(e,r);default:}}}function fz(e,t){if(e.schema.allowComments){let r=typeof t.value=="string"?t.value:"",n=r.indexOf("-->"),i={type:"comment",value:n<0?r:r.slice(0,n)};return Il(i,t),i}}function mz(e,t){if(e.schema.allowDoctypes){let r={type:"doctype"};return Il(r,t),r}}function hz(e,t){let r=typeof t.tagName=="string"?t.tagName:"";e.stack.push(r);let n=cE(e,t.children),o=yz(e,t.properties);e.stack.pop();let i=!1;if(r&&r!=="*"&&(!e.schema.tagNames||e.schema.tagNames.includes(r))&&(i=!0,e.schema.ancestors&&ko.call(e.schema.ancestors,r))){let a=e.schema.ancestors[r],l=-1;for(i=!1;++l<a.length;)e.stack.includes(a[l])&&(i=!0)}if(!i)return e.schema.strip&&!e.schema.strip.includes(r)?n:void 0;let s={type:"element",tagName:r,properties:o,children:n};return Il(s,t),s}function gz(e,t){let n={type:"root",children:cE(e,t.children)};return Il(n,t),n}function xz(e,t){let n={type:"text",value:typeof t.value=="string"?t.value:""};return Il(n,t),n}function cE(e,t){let r=[];if(Array.isArray(t)){let n=t,o=-1;for(;++o<n.length;){let i=lE(e,n[o]);i&&(Array.isArray(i)?r.push(...i):r.push(i))}}return r}function yz(e,t){let r=e.stack[e.stack.length-1],n=e.schema.attributes,o=e.schema.required,i=n&&ko.call(n,r)?n[r]:void 0,s=n&&ko.call(n,"*")?n["*"]:void 0,a=t&&typeof t=="object"?t:{},l={},c;for(c in a)if(ko.call(a,c)){let u=a[c],d=uE(e,pE(i,c),c,u);d==null&&(d=uE(e,pE(s,c),c,u)),d!=null&&(l[c]=d)}if(o&&ko.call(o,r)){let u=o[r];for(c in u)ko.call(u,c)&&!ko.call(l,c)&&(l[c]=u[c])}return l}function uE(e,t,r,n){return t?Array.isArray(n)?bz(e,t,r,n):dE(e,t,r,n):void 0}function bz(e,t,r,n){let o=-1,i=[];for(;++o<n.length;){let s=dE(e,t,r,n[o]);(typeof s=="number"||typeof s=="string")&&i.push(s)}return i}function dE(e,t,r,n){if(!(typeof n!="boolean"&&typeof n!="number"&&typeof n!="string")&&vz(e,r,n)){if(typeof t=="object"&&t.length>1){let o=!1,i=0;for(;++i<t.length;){let s=t[i];if(s&&typeof s=="object"&&"flags"in s){if(s.test(String(n))){o=!0;break}}else if(s===n){o=!0;break}}if(!o)return}return e.schema.clobber&&e.schema.clobberPrefix&&e.schema.clobber.includes(r)?e.schema.clobberPrefix+n:n}}function vz(e,t,r){let n=e.schema.protocols&&ko.call(e.schema.protocols,t)?e.schema.protocols[t]:void 0;if(!n||n.length===0)return!0;let o=String(r),i=o.indexOf(":"),s=o.indexOf("?"),a=o.indexOf("#"),l=o.indexOf("/");if(i<0||l>-1&&i>l||s>-1&&i>s||a>-1&&i>a)return!0;let c=-1;for(;++c<n.length;){let u=n[c];if(i===u.length&&o.slice(0,u.length)===u)return!0}return!1}function Il(e,t){let r=Ml(t);t.data&&(e.data=So(t.data)),r&&(e.position=r)}function pE(e,t){let r,n=-1;if(e)for(;++n<e.length;){let o=e[n],i=typeof o=="string"?o:o[0];if(i===t)return o;i==="data*"&&(r=o)}if(t.length>4&&t.slice(0,4).toLowerCase()==="data")return r}function fE(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 mE(e,t){let r={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,r),[e.applyData(t,r),{type:"text",value:`
|
|
83
83
|
`}]}function hE(e,t){let r=t.value?t.value+`
|
|
84
|
-
`:"",n={},o=t.lang?t.lang.split(/\s+/):[];o.length>0&&(n.className=["language-"+o[0]]);let i={type:"element",tagName:"code",properties:n,children:[{type:"text",value:r}]};return t.meta&&(i.data={meta:t.meta}),e.patch(t,i),i=e.applyData(t,i),i={type:"element",tagName:"pre",properties:{},children:[i]},e.patch(t,i),i}function gE(e,t){let r={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function xE(e,t){let r={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function yE(e,t){let r=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",n=String(t.identifier).toUpperCase(),o=xr(n.toLowerCase()),i=e.footnoteOrder.indexOf(n),s,a=e.footnoteCounts.get(n);a===void 0?(a=0,e.footnoteOrder.push(n),s=e.footnoteOrder.length):s=i+1,a+=1,e.footnoteCounts.set(n,a);let l={type:"element",tagName:"a",properties:{href:"#"+r+"fn-"+o,id:r+"fnref-"+o+(a>1?"-"+a:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(s)}]};e.patch(t,l);let c={type:"element",tagName:"sup",properties:{},children:[l]};return e.patch(t,c),e.applyData(t,c)}function bE(e,t){let r={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function vE(e,t){if(e.options.allowDangerousHtml){let r={type:"raw",value:t.value};return e.patch(t,r),e.applyData(t,r)}}function Pp(e,t){let r=t.referenceType,n="]";if(r==="collapsed"?n+="[]":r==="full"&&(n+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return[{type:"text",value:"!["+t.alt+n}];let o=e.all(t),i=o[0];i&&i.type==="text"?i.value="["+i.value:o.unshift({type:"text",value:"["});let s=o[o.length-1];return s&&s.type==="text"?s.value+=n:o.push({type:"text",value:n}),o}function wE(e,t){let r=String(t.identifier).toUpperCase(),n=e.definitionById.get(r);if(!n)return Pp(e,t);let o={src:xr(n.url||""),alt:t.alt};n.title!==null&&n.title!==void 0&&(o.title=n.title);let i={type:"element",tagName:"img",properties:o,children:[]};return e.patch(t,i),e.applyData(t,i)}function SE(e,t){let r={src:xr(t.url)};t.alt!==null&&t.alt!==void 0&&(r.alt=t.alt),t.title!==null&&t.title!==void 0&&(r.title=t.title);let n={type:"element",tagName:"img",properties:r,children:[]};return e.patch(t,n),e.applyData(t,n)}function kE(e,t){let r={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,r);let n={type:"element",tagName:"code",properties:{},children:[r]};return e.patch(t,n),e.applyData(t,n)}function TE(e,t){let r=String(t.identifier).toUpperCase(),n=e.definitionById.get(r);if(!n)return Pp(e,t);let o={href:xr(n.url||"")};n.title!==null&&n.title!==void 0&&(o.title=n.title);let i={type:"element",tagName:"a",properties:o,children:e.all(t)};return e.patch(t,i),e.applyData(t,i)}function DE(e,t){let r={href:xr(t.url)};t.title!==null&&t.title!==void 0&&(r.title=t.title);let n={type:"element",tagName:"a",properties:r,children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function EE(e,t,r){let n=e.all(t),o=r?
|
|
84
|
+
`:"",n={},o=t.lang?t.lang.split(/\s+/):[];o.length>0&&(n.className=["language-"+o[0]]);let i={type:"element",tagName:"code",properties:n,children:[{type:"text",value:r}]};return t.meta&&(i.data={meta:t.meta}),e.patch(t,i),i=e.applyData(t,i),i={type:"element",tagName:"pre",properties:{},children:[i]},e.patch(t,i),i}function gE(e,t){let r={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function xE(e,t){let r={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function yE(e,t){let r=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",n=String(t.identifier).toUpperCase(),o=xr(n.toLowerCase()),i=e.footnoteOrder.indexOf(n),s,a=e.footnoteCounts.get(n);a===void 0?(a=0,e.footnoteOrder.push(n),s=e.footnoteOrder.length):s=i+1,a+=1,e.footnoteCounts.set(n,a);let l={type:"element",tagName:"a",properties:{href:"#"+r+"fn-"+o,id:r+"fnref-"+o+(a>1?"-"+a:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(s)}]};e.patch(t,l);let c={type:"element",tagName:"sup",properties:{},children:[l]};return e.patch(t,c),e.applyData(t,c)}function bE(e,t){let r={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function vE(e,t){if(e.options.allowDangerousHtml){let r={type:"raw",value:t.value};return e.patch(t,r),e.applyData(t,r)}}function Pp(e,t){let r=t.referenceType,n="]";if(r==="collapsed"?n+="[]":r==="full"&&(n+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return[{type:"text",value:"!["+t.alt+n}];let o=e.all(t),i=o[0];i&&i.type==="text"?i.value="["+i.value:o.unshift({type:"text",value:"["});let s=o[o.length-1];return s&&s.type==="text"?s.value+=n:o.push({type:"text",value:n}),o}function wE(e,t){let r=String(t.identifier).toUpperCase(),n=e.definitionById.get(r);if(!n)return Pp(e,t);let o={src:xr(n.url||""),alt:t.alt};n.title!==null&&n.title!==void 0&&(o.title=n.title);let i={type:"element",tagName:"img",properties:o,children:[]};return e.patch(t,i),e.applyData(t,i)}function SE(e,t){let r={src:xr(t.url)};t.alt!==null&&t.alt!==void 0&&(r.alt=t.alt),t.title!==null&&t.title!==void 0&&(r.title=t.title);let n={type:"element",tagName:"img",properties:r,children:[]};return e.patch(t,n),e.applyData(t,n)}function kE(e,t){let r={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,r);let n={type:"element",tagName:"code",properties:{},children:[r]};return e.patch(t,n),e.applyData(t,n)}function TE(e,t){let r=String(t.identifier).toUpperCase(),n=e.definitionById.get(r);if(!n)return Pp(e,t);let o={href:xr(n.url||"")};n.title!==null&&n.title!==void 0&&(o.title=n.title);let i={type:"element",tagName:"a",properties:o,children:e.all(t)};return e.patch(t,i),e.applyData(t,i)}function DE(e,t){let r={href:xr(t.url)};t.title!==null&&t.title!==void 0&&(r.title=t.title);let n={type:"element",tagName:"a",properties:r,children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function EE(e,t,r){let n=e.all(t),o=r?wz(r):CE(t),i={},s=[];if(typeof t.checked=="boolean"){let u=n[0],d;u&&u.type==="element"&&u.tagName==="p"?d=u:(d={type:"element",tagName:"p",properties:{},children:[]},n.unshift(d)),d.children.length>0&&d.children.unshift({type:"text",value:" "}),d.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),i.className=["task-list-item"]}let a=-1;for(;++a<n.length;){let u=n[a];(o||a!==0||u.type!=="element"||u.tagName!=="p")&&s.push({type:"text",value:`
|
|
85
85
|
`}),u.type==="element"&&u.tagName==="p"&&!o?s.push(...u.children):s.push(u)}let l=n[n.length-1];l&&(o||l.type!=="element"||l.tagName!=="p")&&s.push({type:"text",value:`
|
|
86
|
-
`});let c={type:"element",tagName:"li",properties:i,children:s};return e.patch(t,c),e.applyData(t,c)}function
|
|
86
|
+
`});let c={type:"element",tagName:"li",properties:i,children:s};return e.patch(t,c),e.applyData(t,c)}function wz(e){let t=!1;if(e.type==="list"){t=e.spread||!1;let r=e.children,n=-1;for(;!t&&++n<r.length;)t=CE(r[n])}return t}function CE(e){let t=e.spread;return t??e.children.length>1}function ME(e,t){let r={},n=e.all(t),o=-1;for(typeof t.start=="number"&&t.start!==1&&(r.start=t.start);++o<n.length;){let s=n[o];if(s.type==="element"&&s.tagName==="li"&&s.properties&&Array.isArray(s.properties.className)&&s.properties.className.includes("task-list-item")){r.className=["contains-task-list"];break}}let i={type:"element",tagName:t.ordered?"ol":"ul",properties:r,children:e.wrap(n,!0)};return e.patch(t,i),e.applyData(t,i)}function IE(e,t){let r={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function $E(e,t){let r={type:"root",children:e.wrap(e.all(t))};return e.patch(t,r),e.applyData(t,r)}function AE(e,t){let r={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function _E(e,t){let r=e.all(t),n=r.shift(),o=[];if(n){let s={type:"element",tagName:"thead",properties:{},children:e.wrap([n],!0)};e.patch(t.children[0],s),o.push(s)}if(r.length>0){let s={type:"element",tagName:"tbody",properties:{},children:e.wrap(r,!0)},a=Lp(t.children[1]),l=Op(t.children[t.children.length-1]);a&&l&&(s.position={start:a,end:l}),o.push(s)}let i={type:"element",tagName:"table",properties:{},children:e.wrap(o,!0)};return e.patch(t,i),e.applyData(t,i)}function OE(e,t,r){let n=r?r.children:void 0,i=(n?n.indexOf(t):1)===0?"th":"td",s=r&&r.type==="table"?r.align:void 0,a=s?s.length:t.children.length,l=-1,c=[];for(;++l<a;){let d=t.children[l],p={},f=s?s[l]:void 0;f&&(p.align=f);let m={type:"element",tagName:i,properties:p,children:[]};d&&(m.children=e.all(d),e.patch(d,m),m=e.applyData(d,m)),c.push(m)}let u={type:"element",tagName:"tr",properties:{},children:e.wrap(c,!0)};return e.patch(t,u),e.applyData(t,u)}function LE(e,t){let r={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}var a5e=9,l5e=32;function PE(e){let t=String(e),r=/\r?\n|\r/g,n=r.exec(t),o=0,i=[];for(;n;)i.push(NE(t.slice(o,n.index),o>0,!0),n[0]),o=n.index+n[0].length,n=r.exec(t);return i.push(NE(t.slice(o),o>0,!1)),i.join("")}function NE(e,t,r){let n=0,o=e.length;if(t){let i=e.codePointAt(n);for(;i===9||i===32;)n++,i=e.codePointAt(n)}if(r){let i=e.codePointAt(o-1);for(;i===9||i===32;)o--,i=e.codePointAt(o-1)}return o>n?e.slice(n,o):""}function FE(e,t){let r={type:"text",value:PE(String(t.value))};return e.patch(t,r),e.applyData(t,r)}function RE(e,t){let r={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,r),e.applyData(t,r)}var cx={blockquote:fE,break:mE,code:hE,delete:gE,emphasis:xE,footnoteReference:yE,heading:bE,html:vE,imageReference:wE,image:SE,inlineCode:kE,linkReference:TE,link:DE,listItem:EE,list:ME,paragraph:IE,root:$E,strong:AE,table:_E,tableCell:LE,tableRow:OE,text:FE,thematicBreak:RE,toml:Fp,yaml:Fp,definition:Fp,footnoteDefinition:Fp};function Fp(){}function BE(e,t){let r=[{type:"text",value:"\u21A9"}];return t>1&&r.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),r}function zE(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function HE(e){let t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",r=e.options.footnoteBackContent||BE,n=e.options.footnoteBackLabel||zE,o=e.options.footnoteLabel||"Footnotes",i=e.options.footnoteLabelTagName||"h2",s=e.options.footnoteLabelProperties||{className:["sr-only"]},a=[],l=-1;for(;++l<e.footnoteOrder.length;){let c=e.footnoteById.get(e.footnoteOrder[l]);if(!c)continue;let u=e.all(c),d=String(c.identifier).toUpperCase(),p=xr(d.toLowerCase()),f=0,m=[],g=e.footnoteCounts.get(d);for(;g!==void 0&&++f<=g;){m.length>0&&m.push({type:"text",value:" "});let T=typeof r=="string"?r:r(l,f);typeof T=="string"&&(T={type:"text",value:T}),m.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+p+(f>1?"-"+f:""),dataFootnoteBackref:"",ariaLabel:typeof n=="string"?n:n(l,f),className:["data-footnote-backref"]},children:Array.isArray(T)?T:[T]})}let x=u[u.length-1];if(x&&x.type==="element"&&x.tagName==="p"){let T=x.children[x.children.length-1];T&&T.type==="text"?T.value+=" ":x.children.push({type:"text",value:" "}),x.children.push(...m)}else u.push(...m);let y={type:"element",tagName:"li",properties:{id:t+"fn-"+p},children:e.wrap(u,!0)};e.patch(c,y),a.push(y)}if(a.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:i,properties:{...So(s),id:"footnote-label"},children:[{type:"text",value:o}]},{type:"text",value:`
|
|
87
87
|
`},{type:"element",tagName:"ol",properties:{},children:e.wrap(a,!0)},{type:"text",value:`
|
|
88
|
-
`}]}}var
|
|
88
|
+
`}]}}var ux={}.hasOwnProperty,Sz={};function jE(e,t){let r=t||Sz,n=new Map,o=new Map,i=new Map,s={...cx,...r.handlers},a={all:c,applyData:Tz,definitionById:n,footnoteById:o,footnoteCounts:i,footnoteOrder:[],handlers:s,one:l,options:r,patch:kz,wrap:Cz};return hl(e,function(u){if(u.type==="definition"||u.type==="footnoteDefinition"){let d=u.type==="definition"?n:o,p=String(u.identifier).toUpperCase();d.has(p)||d.set(p,u)}}),a;function l(u,d){let p=u.type,f=a.handlers[p];if(ux.call(a.handlers,p)&&f)return f(a,u,d);if(a.options.passThrough&&a.options.passThrough.includes(p)){if("children"in u){let{children:g,...x}=u,y=So(x);return y.children=a.all(u),y}return So(u)}return(a.options.unknownHandler||Dz)(a,u,d)}function c(u){let d=[];if("children"in u){let p=u.children,f=-1;for(;++f<p.length;){let m=a.one(p[f],u);if(m){if(f&&p[f-1].type==="break"&&(!Array.isArray(m)&&m.type==="text"&&(m.value=UE(m.value)),!Array.isArray(m)&&m.type==="element")){let g=m.children[0];g&&g.type==="text"&&(g.value=UE(g.value))}Array.isArray(m)?d.push(...m):d.push(m)}}}return d}}function kz(e,t){e.position&&(t.position=Ml(e))}function Tz(e,t){let r=t;if(e&&e.data){let n=e.data.hName,o=e.data.hChildren,i=e.data.hProperties;if(typeof n=="string")if(r.type==="element")r.tagName=n;else{let s="children"in r?r.children:[r];r={type:"element",tagName:n,properties:{},children:s}}r.type==="element"&&i&&Object.assign(r.properties,So(i)),"children"in r&&r.children&&o!==null&&o!==void 0&&(r.children=o)}return r}function Dz(e,t){let r=t.data||{},n="value"in t&&!(ux.call(r,"hProperties")||ux.call(r,"hChildren"))?{type:"text",value:t.value}:{type:"element",tagName:"div",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Cz(e,t){let r=[],n=-1;for(t&&r.push({type:"text",value:`
|
|
89
89
|
`});++n<e.length;)n&&r.push({type:"text",value:`
|
|
90
90
|
`}),r.push(e[n]);return t&&e.length>0&&r.push({type:"text",value:`
|
|
91
|
-
`}),r}function UE(e){let t=0,r=e.charCodeAt(t);for(;r===9||r===32;)t++,r=e.charCodeAt(t);return e.slice(t)}function
|
|
92
|
-
`},o)),i}var qE=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"];var Hn=class{constructor(t,r,n){this.normal=r,this.property=t,n&&(this.space=n)}};Hn.prototype.normal={},Hn.prototype.property={},Hn.prototype.space=void 0;function fx(e,t){let r={},n={};for(let o of e)Object.assign(r,o.property),Object.assign(n,o.normal);return new Hn(r,n,t)}function Js(e){return e.toLowerCase()}var $t=class{constructor(t,r){this.attribute=r,this.property=t}};$t.prototype.attribute="",$t.prototype.booleanish=!1,$t.prototype.boolean=!1,$t.prototype.commaOrSpaceSeparated=!1,$t.prototype.commaSeparated=!1,$t.prototype.defined=!1,$t.prototype.mustUseProperty=!1,$t.prototype.number=!1,$t.prototype.overloadedBoolean=!1,$t.prototype.property="",$t.prototype.spaceSeparated=!1,$t.prototype.space=void 0;var $l={};me($l,{boolean:()=>ve,booleanish:()=>lt,commaOrSpaceSeparated:()=>cr,commaSeparated:()=>ko,number:()=>q,overloadedBoolean:()=>Rp,spaceSeparated:()=>Ue});var Mz=0,ve=Ii(),lt=Ii(),Rp=Ii(),q=Ii(),Ue=Ii(),ko=Ii(),cr=Ii();function Ii(){return 2**++Mz}var mx=Object.keys($l),$i=class extends $t{constructor(t,r,n,o){let i=-1;if(super(t,r),YE(this,"space",o),typeof n=="number")for(;++i<mx.length;){let s=mx[i];YE(this,mx[i],(n&$l[s])===$l[s])}}};$i.prototype.defined=!0;function YE(e,t,r){r&&(e[t]=r)}function $r(e){let t={},r={};for(let[n,o]of Object.entries(e.properties)){let i=new $i(n,e.transform(e.attributes||{},n),o,e.space);e.mustUseProperty&&e.mustUseProperty.includes(n)&&(i.mustUseProperty=!0),t[n]=i,r[Js(n)]=n,r[Js(i.attribute)]=n}return new Hn(t,r,e.space)}var hx=$r({properties:{ariaActiveDescendant:null,ariaAtomic:lt,ariaAutoComplete:null,ariaBusy:lt,ariaChecked:lt,ariaColCount:q,ariaColIndex:q,ariaColSpan:q,ariaControls:Ue,ariaCurrent:null,ariaDescribedBy:Ue,ariaDetails:null,ariaDisabled:lt,ariaDropEffect:Ue,ariaErrorMessage:null,ariaExpanded:lt,ariaFlowTo:Ue,ariaGrabbed:lt,ariaHasPopup:null,ariaHidden:lt,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Ue,ariaLevel:q,ariaLive:null,ariaModal:lt,ariaMultiLine:lt,ariaMultiSelectable:lt,ariaOrientation:null,ariaOwns:Ue,ariaPlaceholder:null,ariaPosInSet:q,ariaPressed:lt,ariaReadOnly:lt,ariaRelevant:null,ariaRequired:lt,ariaRoleDescription:Ue,ariaRowCount:q,ariaRowIndex:q,ariaRowSpan:q,ariaSelected:lt,ariaSetSize:q,ariaSort:null,ariaValueMax:q,ariaValueMin:q,ariaValueNow:q,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function Bp(e,t){return t in e?e[t]:t}function zp(e,t){return Bp(e,t.toLowerCase())}var WE=$r({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:ko,acceptCharset:Ue,accessKey:Ue,action:null,allow:null,allowFullScreen:ve,allowPaymentRequest:ve,allowUserMedia:ve,alt:null,as:null,async:ve,autoCapitalize:null,autoComplete:Ue,autoFocus:ve,autoPlay:ve,blocking:Ue,capture:null,charSet:null,checked:ve,cite:null,className:Ue,cols:q,colSpan:null,content:null,contentEditable:lt,controls:ve,controlsList:Ue,coords:q|ko,crossOrigin:null,data:null,dateTime:null,decoding:null,default:ve,defer:ve,dir:null,dirName:null,disabled:ve,download:Rp,draggable:lt,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:ve,formTarget:null,headers:Ue,height:q,hidden:Rp,high:q,href:null,hrefLang:null,htmlFor:Ue,httpEquiv:Ue,id:null,imageSizes:null,imageSrcSet:null,inert:ve,inputMode:null,integrity:null,is:null,isMap:ve,itemId:null,itemProp:Ue,itemRef:Ue,itemScope:ve,itemType:Ue,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:ve,low:q,manifest:null,max:null,maxLength:q,media:null,method:null,min:null,minLength:q,multiple:ve,muted:ve,name:null,nonce:null,noModule:ve,noValidate:ve,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:ve,optimum:q,pattern:null,ping:Ue,placeholder:null,playsInline:ve,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:ve,referrerPolicy:null,rel:Ue,required:ve,reversed:ve,rows:q,rowSpan:q,sandbox:Ue,scope:null,scoped:ve,seamless:ve,selected:ve,shadowRootClonable:ve,shadowRootDelegatesFocus:ve,shadowRootMode:null,shape:null,size:q,sizes:null,slot:null,span:q,spellCheck:lt,src:null,srcDoc:null,srcLang:null,srcSet:null,start:q,step:null,style:null,tabIndex:q,target:null,title:null,translate:null,type:null,typeMustMatch:ve,useMap:null,value:lt,width:q,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Ue,axis:null,background:null,bgColor:null,border:q,borderColor:null,bottomMargin:q,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:ve,declare:ve,event:null,face:null,frame:null,frameBorder:null,hSpace:q,leftMargin:q,link:null,longDesc:null,lowSrc:null,marginHeight:q,marginWidth:q,noResize:ve,noHref:ve,noShade:ve,noWrap:ve,object:null,profile:null,prompt:null,rev:null,rightMargin:q,rules:null,scheme:null,scrolling:lt,standby:null,summary:null,text:null,topMargin:q,valueType:null,version:null,vAlign:null,vLink:null,vSpace:q,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:ve,disableRemotePlayback:ve,prefix:null,property:null,results:q,security:null,unselectable:null},space:"html",transform:zp});var VE=$r({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:cr,accentHeight:q,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:q,amplitude:q,arabicForm:null,ascent:q,attributeName:null,attributeType:null,azimuth:q,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:q,by:null,calcMode:null,capHeight:q,className:Ue,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:q,diffuseConstant:q,direction:null,display:null,dur:null,divisor:q,dominantBaseline:null,download:ve,dx:null,dy:null,edgeMode:null,editable:null,elevation:q,enableBackground:null,end:null,event:null,exponent:q,externalResourcesRequired:null,fill:null,fillOpacity:q,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:ko,g2:ko,glyphName:ko,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:q,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:q,horizOriginX:q,horizOriginY:q,id:null,ideographic:q,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:q,k:q,k1:q,k2:q,k3:q,k4:q,kernelMatrix:cr,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:q,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:q,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:q,overlineThickness:q,paintOrder:null,panose1:null,path:null,pathLength:q,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Ue,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:q,pointsAtY:q,pointsAtZ:q,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:cr,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:cr,rev:cr,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:cr,requiredFeatures:cr,requiredFonts:cr,requiredFormats:cr,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:q,specularExponent:q,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:q,strikethroughThickness:q,string:null,stroke:null,strokeDashArray:cr,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:q,strokeOpacity:q,strokeWidth:null,style:null,surfaceScale:q,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:cr,tabIndex:q,tableValues:null,target:null,targetX:q,targetY:q,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:cr,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:q,underlineThickness:q,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:q,values:null,vAlphabetic:q,vMathematical:q,vectorEffect:null,vHanging:q,vIdeographic:q,version:null,vertAdvY:q,vertOriginX:q,vertOriginY:q,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:q,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:Bp});var gx=$r({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()}});var xx=$r({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:zp});var yx=$r({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}});var Iz=/[A-Z]/g,GE=/-[a-z]/g,$z=/^data[-\w.:]+$/i;function bx(e,t){let r=Js(t),n=t,o=$t;if(r in e.normal)return e.property[e.normal[r]];if(r.length>4&&r.slice(0,4)==="data"&&$z.test(t)){if(t.charAt(4)==="-"){let i=t.slice(5).replace(GE,_z);n="data"+i.charAt(0).toUpperCase()+i.slice(1)}else{let i=t.slice(4);if(!GE.test(i)){let s=i.replace(Iz,Az);s.charAt(0)!=="-"&&(s="-"+s),t="data"+s}}o=$i}return new o(n,t)}function Az(e){return"-"+e.toLowerCase()}function _z(e){return e.charAt(1).toUpperCase()}var QE=fx([hx,WE,gx,xx,yx],"html"),Hp=fx([hx,VE,gx,xx,yx],"svg");var Oz=/["&'<>`]/g,Lz=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Nz=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,Pz=/[|\\{}()[\]^$+*?.]/g,XE=new WeakMap;function vx(e,t){if(e=e.replace(t.subset?Fz(t.subset):Oz,n),t.subset||t.escapeOnly)return e;return e.replace(Lz,r).replace(Nz,n);function r(o,i,s){return t.format((o.charCodeAt(0)-55296)*1024+o.charCodeAt(1)-56320+65536,s.charCodeAt(i+2),t)}function n(o,i,s){return t.format(o.charCodeAt(0),s.charCodeAt(i+1),t)}}function Fz(e){let t=XE.get(e);return t||(t=Rz(e),XE.set(e,t)),t}function Rz(e){let t=[],r=-1;for(;++r<e.length;)t.push(e[r].replace(Pz,"\\$&"));return new RegExp("(?:"+t.join("|")+")","g")}var Bz=/[\dA-Fa-f]/;function JE(e,t,r){let n="&#x"+e.toString(16).toUpperCase();return r&&t&&!Bz.test(String.fromCharCode(t))?n:n+";"}var zz=/\d/;function ZE(e,t,r){let n="&#"+String(e);return r&&t&&!zz.test(String.fromCharCode(t))?n:n+";"}var KE=["AElig","AMP","Aacute","Acirc","Agrave","Aring","Atilde","Auml","COPY","Ccedil","ETH","Eacute","Ecirc","Egrave","Euml","GT","Iacute","Icirc","Igrave","Iuml","LT","Ntilde","Oacute","Ocirc","Ograve","Oslash","Otilde","Ouml","QUOT","REG","THORN","Uacute","Ucirc","Ugrave","Uuml","Yacute","aacute","acirc","acute","aelig","agrave","amp","aring","atilde","auml","brvbar","ccedil","cedil","cent","copy","curren","deg","divide","eacute","ecirc","egrave","eth","euml","frac12","frac14","frac34","gt","iacute","icirc","iexcl","igrave","iquest","iuml","laquo","lt","macr","micro","middot","nbsp","not","ntilde","oacute","ocirc","ograve","ordf","ordm","oslash","otilde","ouml","para","plusmn","pound","quot","raquo","reg","sect","shy","sup1","sup2","sup3","szlig","thorn","times","uacute","ucirc","ugrave","uml","uuml","yacute","yen","yuml"];var Up={nbsp:"\xA0",iexcl:"\xA1",cent:"\xA2",pound:"\xA3",curren:"\xA4",yen:"\xA5",brvbar:"\xA6",sect:"\xA7",uml:"\xA8",copy:"\xA9",ordf:"\xAA",laquo:"\xAB",not:"\xAC",shy:"\xAD",reg:"\xAE",macr:"\xAF",deg:"\xB0",plusmn:"\xB1",sup2:"\xB2",sup3:"\xB3",acute:"\xB4",micro:"\xB5",para:"\xB6",middot:"\xB7",cedil:"\xB8",sup1:"\xB9",ordm:"\xBA",raquo:"\xBB",frac14:"\xBC",frac12:"\xBD",frac34:"\xBE",iquest:"\xBF",Agrave:"\xC0",Aacute:"\xC1",Acirc:"\xC2",Atilde:"\xC3",Auml:"\xC4",Aring:"\xC5",AElig:"\xC6",Ccedil:"\xC7",Egrave:"\xC8",Eacute:"\xC9",Ecirc:"\xCA",Euml:"\xCB",Igrave:"\xCC",Iacute:"\xCD",Icirc:"\xCE",Iuml:"\xCF",ETH:"\xD0",Ntilde:"\xD1",Ograve:"\xD2",Oacute:"\xD3",Ocirc:"\xD4",Otilde:"\xD5",Ouml:"\xD6",times:"\xD7",Oslash:"\xD8",Ugrave:"\xD9",Uacute:"\xDA",Ucirc:"\xDB",Uuml:"\xDC",Yacute:"\xDD",THORN:"\xDE",szlig:"\xDF",agrave:"\xE0",aacute:"\xE1",acirc:"\xE2",atilde:"\xE3",auml:"\xE4",aring:"\xE5",aelig:"\xE6",ccedil:"\xE7",egrave:"\xE8",eacute:"\xE9",ecirc:"\xEA",euml:"\xEB",igrave:"\xEC",iacute:"\xED",icirc:"\xEE",iuml:"\xEF",eth:"\xF0",ntilde:"\xF1",ograve:"\xF2",oacute:"\xF3",ocirc:"\xF4",otilde:"\xF5",ouml:"\xF6",divide:"\xF7",oslash:"\xF8",ugrave:"\xF9",uacute:"\xFA",ucirc:"\xFB",uuml:"\xFC",yacute:"\xFD",thorn:"\xFE",yuml:"\xFF",fnof:"\u0192",Alpha:"\u0391",Beta:"\u0392",Gamma:"\u0393",Delta:"\u0394",Epsilon:"\u0395",Zeta:"\u0396",Eta:"\u0397",Theta:"\u0398",Iota:"\u0399",Kappa:"\u039A",Lambda:"\u039B",Mu:"\u039C",Nu:"\u039D",Xi:"\u039E",Omicron:"\u039F",Pi:"\u03A0",Rho:"\u03A1",Sigma:"\u03A3",Tau:"\u03A4",Upsilon:"\u03A5",Phi:"\u03A6",Chi:"\u03A7",Psi:"\u03A8",Omega:"\u03A9",alpha:"\u03B1",beta:"\u03B2",gamma:"\u03B3",delta:"\u03B4",epsilon:"\u03B5",zeta:"\u03B6",eta:"\u03B7",theta:"\u03B8",iota:"\u03B9",kappa:"\u03BA",lambda:"\u03BB",mu:"\u03BC",nu:"\u03BD",xi:"\u03BE",omicron:"\u03BF",pi:"\u03C0",rho:"\u03C1",sigmaf:"\u03C2",sigma:"\u03C3",tau:"\u03C4",upsilon:"\u03C5",phi:"\u03C6",chi:"\u03C7",psi:"\u03C8",omega:"\u03C9",thetasym:"\u03D1",upsih:"\u03D2",piv:"\u03D6",bull:"\u2022",hellip:"\u2026",prime:"\u2032",Prime:"\u2033",oline:"\u203E",frasl:"\u2044",weierp:"\u2118",image:"\u2111",real:"\u211C",trade:"\u2122",alefsym:"\u2135",larr:"\u2190",uarr:"\u2191",rarr:"\u2192",darr:"\u2193",harr:"\u2194",crarr:"\u21B5",lArr:"\u21D0",uArr:"\u21D1",rArr:"\u21D2",dArr:"\u21D3",hArr:"\u21D4",forall:"\u2200",part:"\u2202",exist:"\u2203",empty:"\u2205",nabla:"\u2207",isin:"\u2208",notin:"\u2209",ni:"\u220B",prod:"\u220F",sum:"\u2211",minus:"\u2212",lowast:"\u2217",radic:"\u221A",prop:"\u221D",infin:"\u221E",ang:"\u2220",and:"\u2227",or:"\u2228",cap:"\u2229",cup:"\u222A",int:"\u222B",there4:"\u2234",sim:"\u223C",cong:"\u2245",asymp:"\u2248",ne:"\u2260",equiv:"\u2261",le:"\u2264",ge:"\u2265",sub:"\u2282",sup:"\u2283",nsub:"\u2284",sube:"\u2286",supe:"\u2287",oplus:"\u2295",otimes:"\u2297",perp:"\u22A5",sdot:"\u22C5",lceil:"\u2308",rceil:"\u2309",lfloor:"\u230A",rfloor:"\u230B",lang:"\u2329",rang:"\u232A",loz:"\u25CA",spades:"\u2660",clubs:"\u2663",hearts:"\u2665",diams:"\u2666",quot:'"',amp:"&",lt:"<",gt:">",OElig:"\u0152",oelig:"\u0153",Scaron:"\u0160",scaron:"\u0161",Yuml:"\u0178",circ:"\u02C6",tilde:"\u02DC",ensp:"\u2002",emsp:"\u2003",thinsp:"\u2009",zwnj:"\u200C",zwj:"\u200D",lrm:"\u200E",rlm:"\u200F",ndash:"\u2013",mdash:"\u2014",lsquo:"\u2018",rsquo:"\u2019",sbquo:"\u201A",ldquo:"\u201C",rdquo:"\u201D",bdquo:"\u201E",dagger:"\u2020",Dagger:"\u2021",permil:"\u2030",lsaquo:"\u2039",rsaquo:"\u203A",euro:"\u20AC"};var eM=["cent","copy","divide","gt","lt","not","para","times"];var tM={}.hasOwnProperty,wx={},jp;for(jp in Up)tM.call(Up,jp)&&(wx[Up[jp]]=jp);var Hz=/[^\dA-Za-z]/;function rM(e,t,r,n){let o=String.fromCharCode(e);if(tM.call(wx,o)){let i=wx[o],s="&"+i;return r&&KE.includes(i)&&!eM.includes(i)&&(!n||t&&t!==61&&Hz.test(String.fromCharCode(t)))?s:s+";"}return""}function nM(e,t,r){let n=JE(e,t,r.omitOptionalSemicolons),o;if((r.useNamedReferences||r.useShortestReferences)&&(o=rM(e,t,r.omitOptionalSemicolons,r.attribute)),(r.useShortestReferences||!o)&&r.useShortestReferences){let i=ZE(e,t,r.omitOptionalSemicolons);i.length<n.length&&(n=i)}return o&&(!r.useShortestReferences||o.length<n.length)?o:n}function oM(e){return"&#x"+e.toString(16).toUpperCase()+";"}function Un(e,t){return vx(e,Object.assign({format:nM},t))}function fFe(e,t){return vx(e,Object.assign({format:oM},t))}var Uz=/^>|^->|<!--|-->|--!>|<!-$/g,jz=[">"],qz=["<",">"];function iM(e,t,r,n){return n.settings.bogusComments?"<?"+Un(e.value,Object.assign({},n.settings.characterReferences,{subset:jz}))+">":"<!--"+e.value.replace(Uz,o)+"-->";function o(i){return Un(i,Object.assign({},n.settings.characterReferences,{subset:qz}))}}function sM(e,t,r,n){return"<!"+(n.settings.upperDoctype?"DOCTYPE":"doctype")+(n.settings.tightDoctype?"":" ")+"html>"}function yFe(e){let t=[],r=String(e||""),n=r.indexOf(","),o=0,i=!1;for(;!i;){n===-1&&(n=r.length,i=!0);let s=r.slice(o,n).trim();(s||!i)&&t.push(s),o=n+1,n=r.indexOf(",",o)}return t}function aM(e,t){let r=t||{};return(e[e.length-1]===""?[...e,""]:e).join((r.padRight?" ":"")+","+(r.padLeft===!1?"":" ")).trim()}function vFe(e){let t=String(e||"").trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function lM(e){return e.join(" ").trim()}var Yz=/[ \t\n\f\r]/g;function Ai(e){return typeof e=="object"?e.type==="text"?cM(e.value):!1:cM(e)}function cM(e){return e.replace(Yz,"")===""}var pt=uM(1),Sx=uM(-1),Wz=[];function uM(e){return t;function t(r,n,o){let i=r?r.children:Wz,s=(n||0)+e,a=i[s];if(!o)for(;a&&Ai(a);)s+=e,a=i[s];return a}}var Vz={}.hasOwnProperty;function qp(e){return t;function t(r,n,o){return Vz.call(e,r.tagName)&&e[r.tagName](r,n,o)}}var Al=qp({body:Qz,caption:kx,colgroup:kx,dd:Kz,dt:Zz,head:kx,html:Gz,li:Jz,optgroup:eH,option:tH,p:Xz,rp:dM,rt:dM,tbody:nH,td:pM,tfoot:oH,th:pM,thead:rH,tr:iH});function kx(e,t,r){let n=pt(r,t,!0);return!n||n.type!=="comment"&&!(n.type==="text"&&Ai(n.value.charAt(0)))}function Gz(e,t,r){let n=pt(r,t);return!n||n.type!=="comment"}function Qz(e,t,r){let n=pt(r,t);return!n||n.type!=="comment"}function Xz(e,t,r){let n=pt(r,t);return n?n.type==="element"&&(n.tagName==="address"||n.tagName==="article"||n.tagName==="aside"||n.tagName==="blockquote"||n.tagName==="details"||n.tagName==="div"||n.tagName==="dl"||n.tagName==="fieldset"||n.tagName==="figcaption"||n.tagName==="figure"||n.tagName==="footer"||n.tagName==="form"||n.tagName==="h1"||n.tagName==="h2"||n.tagName==="h3"||n.tagName==="h4"||n.tagName==="h5"||n.tagName==="h6"||n.tagName==="header"||n.tagName==="hgroup"||n.tagName==="hr"||n.tagName==="main"||n.tagName==="menu"||n.tagName==="nav"||n.tagName==="ol"||n.tagName==="p"||n.tagName==="pre"||n.tagName==="section"||n.tagName==="table"||n.tagName==="ul"):!r||!(r.type==="element"&&(r.tagName==="a"||r.tagName==="audio"||r.tagName==="del"||r.tagName==="ins"||r.tagName==="map"||r.tagName==="noscript"||r.tagName==="video"))}function Jz(e,t,r){let n=pt(r,t);return!n||n.type==="element"&&n.tagName==="li"}function Zz(e,t,r){let n=pt(r,t);return!!(n&&n.type==="element"&&(n.tagName==="dt"||n.tagName==="dd"))}function Kz(e,t,r){let n=pt(r,t);return!n||n.type==="element"&&(n.tagName==="dt"||n.tagName==="dd")}function dM(e,t,r){let n=pt(r,t);return!n||n.type==="element"&&(n.tagName==="rp"||n.tagName==="rt")}function eH(e,t,r){let n=pt(r,t);return!n||n.type==="element"&&n.tagName==="optgroup"}function tH(e,t,r){let n=pt(r,t);return!n||n.type==="element"&&(n.tagName==="option"||n.tagName==="optgroup")}function rH(e,t,r){let n=pt(r,t);return!!(n&&n.type==="element"&&(n.tagName==="tbody"||n.tagName==="tfoot"))}function nH(e,t,r){let n=pt(r,t);return!n||n.type==="element"&&(n.tagName==="tbody"||n.tagName==="tfoot")}function oH(e,t,r){return!pt(r,t)}function iH(e,t,r){let n=pt(r,t);return!n||n.type==="element"&&n.tagName==="tr"}function pM(e,t,r){let n=pt(r,t);return!n||n.type==="element"&&(n.tagName==="td"||n.tagName==="th")}var fM=qp({body:lH,colgroup:cH,head:aH,html:sH,tbody:uH});function sH(e){let t=pt(e,-1);return!t||t.type!=="comment"}function aH(e){let t=new Set;for(let n of e.children)if(n.type==="element"&&(n.tagName==="base"||n.tagName==="title")){if(t.has(n.tagName))return!1;t.add(n.tagName)}let r=e.children[0];return!r||r.type==="element"}function lH(e){let t=pt(e,-1,!0);return!t||t.type!=="comment"&&!(t.type==="text"&&Ai(t.value.charAt(0)))&&!(t.type==="element"&&(t.tagName==="meta"||t.tagName==="link"||t.tagName==="script"||t.tagName==="style"||t.tagName==="template"))}function cH(e,t,r){let n=Sx(r,t),o=pt(e,-1,!0);return r&&n&&n.type==="element"&&n.tagName==="colgroup"&&Al(n,r.children.indexOf(n),r)?!1:!!(o&&o.type==="element"&&o.tagName==="col")}function uH(e,t,r){let n=Sx(r,t),o=pt(e,-1);return r&&n&&n.type==="element"&&(n.tagName==="thead"||n.tagName==="tbody")&&Al(n,r.children.indexOf(n),r)?!1:!!(o&&o.type==="element"&&o.tagName==="tr")}var Yp={name:[[`
|
|
91
|
+
`}),r}function UE(e){let t=0,r=e.charCodeAt(t);for(;r===9||r===32;)t++,r=e.charCodeAt(t);return e.slice(t)}function dx(e,t){let r=jE(e,t),n=r.one(e,void 0),o=HE(r),i=Array.isArray(n)?{type:"root",children:n}:n||{type:"root",children:[]};return o&&("children"in i,i.children.push({type:"text",value:`
|
|
92
|
+
`},o)),i}var qE=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"];var Hn=class{constructor(t,r,n){this.normal=r,this.property=t,n&&(this.space=n)}};Hn.prototype.normal={},Hn.prototype.property={},Hn.prototype.space=void 0;function px(e,t){let r={},n={};for(let o of e)Object.assign(r,o.property),Object.assign(n,o.normal);return new Hn(r,n,t)}function Js(e){return e.toLowerCase()}var $t=class{constructor(t,r){this.attribute=r,this.property=t}};$t.prototype.attribute="",$t.prototype.booleanish=!1,$t.prototype.boolean=!1,$t.prototype.commaOrSpaceSeparated=!1,$t.prototype.commaSeparated=!1,$t.prototype.defined=!1,$t.prototype.mustUseProperty=!1,$t.prototype.number=!1,$t.prototype.overloadedBoolean=!1,$t.prototype.property="",$t.prototype.spaceSeparated=!1,$t.prototype.space=void 0;var $l={};he($l,{boolean:()=>ve,booleanish:()=>lt,commaOrSpaceSeparated:()=>cr,commaSeparated:()=>To,number:()=>q,overloadedBoolean:()=>Rp,spaceSeparated:()=>Ue});var Ez=0,ve=$i(),lt=$i(),Rp=$i(),q=$i(),Ue=$i(),To=$i(),cr=$i();function $i(){return 2**++Ez}var fx=Object.keys($l),Ai=class extends $t{constructor(t,r,n,o){let i=-1;if(super(t,r),YE(this,"space",o),typeof n=="number")for(;++i<fx.length;){let s=fx[i];YE(this,fx[i],(n&$l[s])===$l[s])}}};Ai.prototype.defined=!0;function YE(e,t,r){r&&(e[t]=r)}function $r(e){let t={},r={};for(let[n,o]of Object.entries(e.properties)){let i=new Ai(n,e.transform(e.attributes||{},n),o,e.space);e.mustUseProperty&&e.mustUseProperty.includes(n)&&(i.mustUseProperty=!0),t[n]=i,r[Js(n)]=n,r[Js(i.attribute)]=n}return new Hn(t,r,e.space)}var mx=$r({properties:{ariaActiveDescendant:null,ariaAtomic:lt,ariaAutoComplete:null,ariaBusy:lt,ariaChecked:lt,ariaColCount:q,ariaColIndex:q,ariaColSpan:q,ariaControls:Ue,ariaCurrent:null,ariaDescribedBy:Ue,ariaDetails:null,ariaDisabled:lt,ariaDropEffect:Ue,ariaErrorMessage:null,ariaExpanded:lt,ariaFlowTo:Ue,ariaGrabbed:lt,ariaHasPopup:null,ariaHidden:lt,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Ue,ariaLevel:q,ariaLive:null,ariaModal:lt,ariaMultiLine:lt,ariaMultiSelectable:lt,ariaOrientation:null,ariaOwns:Ue,ariaPlaceholder:null,ariaPosInSet:q,ariaPressed:lt,ariaReadOnly:lt,ariaRelevant:null,ariaRequired:lt,ariaRoleDescription:Ue,ariaRowCount:q,ariaRowIndex:q,ariaRowSpan:q,ariaSelected:lt,ariaSetSize:q,ariaSort:null,ariaValueMax:q,ariaValueMin:q,ariaValueNow:q,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function Bp(e,t){return t in e?e[t]:t}function zp(e,t){return Bp(e,t.toLowerCase())}var WE=$r({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:To,acceptCharset:Ue,accessKey:Ue,action:null,allow:null,allowFullScreen:ve,allowPaymentRequest:ve,allowUserMedia:ve,alt:null,as:null,async:ve,autoCapitalize:null,autoComplete:Ue,autoFocus:ve,autoPlay:ve,blocking:Ue,capture:null,charSet:null,checked:ve,cite:null,className:Ue,cols:q,colSpan:null,content:null,contentEditable:lt,controls:ve,controlsList:Ue,coords:q|To,crossOrigin:null,data:null,dateTime:null,decoding:null,default:ve,defer:ve,dir:null,dirName:null,disabled:ve,download:Rp,draggable:lt,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:ve,formTarget:null,headers:Ue,height:q,hidden:Rp,high:q,href:null,hrefLang:null,htmlFor:Ue,httpEquiv:Ue,id:null,imageSizes:null,imageSrcSet:null,inert:ve,inputMode:null,integrity:null,is:null,isMap:ve,itemId:null,itemProp:Ue,itemRef:Ue,itemScope:ve,itemType:Ue,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:ve,low:q,manifest:null,max:null,maxLength:q,media:null,method:null,min:null,minLength:q,multiple:ve,muted:ve,name:null,nonce:null,noModule:ve,noValidate:ve,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:ve,optimum:q,pattern:null,ping:Ue,placeholder:null,playsInline:ve,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:ve,referrerPolicy:null,rel:Ue,required:ve,reversed:ve,rows:q,rowSpan:q,sandbox:Ue,scope:null,scoped:ve,seamless:ve,selected:ve,shadowRootClonable:ve,shadowRootDelegatesFocus:ve,shadowRootMode:null,shape:null,size:q,sizes:null,slot:null,span:q,spellCheck:lt,src:null,srcDoc:null,srcLang:null,srcSet:null,start:q,step:null,style:null,tabIndex:q,target:null,title:null,translate:null,type:null,typeMustMatch:ve,useMap:null,value:lt,width:q,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Ue,axis:null,background:null,bgColor:null,border:q,borderColor:null,bottomMargin:q,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:ve,declare:ve,event:null,face:null,frame:null,frameBorder:null,hSpace:q,leftMargin:q,link:null,longDesc:null,lowSrc:null,marginHeight:q,marginWidth:q,noResize:ve,noHref:ve,noShade:ve,noWrap:ve,object:null,profile:null,prompt:null,rev:null,rightMargin:q,rules:null,scheme:null,scrolling:lt,standby:null,summary:null,text:null,topMargin:q,valueType:null,version:null,vAlign:null,vLink:null,vSpace:q,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:ve,disableRemotePlayback:ve,prefix:null,property:null,results:q,security:null,unselectable:null},space:"html",transform:zp});var VE=$r({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:cr,accentHeight:q,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:q,amplitude:q,arabicForm:null,ascent:q,attributeName:null,attributeType:null,azimuth:q,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:q,by:null,calcMode:null,capHeight:q,className:Ue,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:q,diffuseConstant:q,direction:null,display:null,dur:null,divisor:q,dominantBaseline:null,download:ve,dx:null,dy:null,edgeMode:null,editable:null,elevation:q,enableBackground:null,end:null,event:null,exponent:q,externalResourcesRequired:null,fill:null,fillOpacity:q,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:To,g2:To,glyphName:To,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:q,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:q,horizOriginX:q,horizOriginY:q,id:null,ideographic:q,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:q,k:q,k1:q,k2:q,k3:q,k4:q,kernelMatrix:cr,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:q,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:q,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:q,overlineThickness:q,paintOrder:null,panose1:null,path:null,pathLength:q,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Ue,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:q,pointsAtY:q,pointsAtZ:q,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:cr,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:cr,rev:cr,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:cr,requiredFeatures:cr,requiredFonts:cr,requiredFormats:cr,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:q,specularExponent:q,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:q,strikethroughThickness:q,string:null,stroke:null,strokeDashArray:cr,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:q,strokeOpacity:q,strokeWidth:null,style:null,surfaceScale:q,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:cr,tabIndex:q,tableValues:null,target:null,targetX:q,targetY:q,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:cr,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:q,underlineThickness:q,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:q,values:null,vAlphabetic:q,vMathematical:q,vectorEffect:null,vHanging:q,vIdeographic:q,version:null,vertAdvY:q,vertOriginX:q,vertOriginY:q,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:q,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:Bp});var hx=$r({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()}});var gx=$r({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:zp});var xx=$r({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}});var Mz=/[A-Z]/g,GE=/-[a-z]/g,Iz=/^data[-\w.:]+$/i;function yx(e,t){let r=Js(t),n=t,o=$t;if(r in e.normal)return e.property[e.normal[r]];if(r.length>4&&r.slice(0,4)==="data"&&Iz.test(t)){if(t.charAt(4)==="-"){let i=t.slice(5).replace(GE,Az);n="data"+i.charAt(0).toUpperCase()+i.slice(1)}else{let i=t.slice(4);if(!GE.test(i)){let s=i.replace(Mz,$z);s.charAt(0)!=="-"&&(s="-"+s),t="data"+s}}o=Ai}return new o(n,t)}function $z(e){return"-"+e.toLowerCase()}function Az(e){return e.charAt(1).toUpperCase()}var QE=px([mx,WE,hx,gx,xx],"html"),Hp=px([mx,VE,hx,gx,xx],"svg");var _z=/["&'<>`]/g,Oz=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Lz=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,Nz=/[|\\{}()[\]^$+*?.]/g,XE=new WeakMap;function bx(e,t){if(e=e.replace(t.subset?Pz(t.subset):_z,n),t.subset||t.escapeOnly)return e;return e.replace(Oz,r).replace(Lz,n);function r(o,i,s){return t.format((o.charCodeAt(0)-55296)*1024+o.charCodeAt(1)-56320+65536,s.charCodeAt(i+2),t)}function n(o,i,s){return t.format(o.charCodeAt(0),s.charCodeAt(i+1),t)}}function Pz(e){let t=XE.get(e);return t||(t=Fz(e),XE.set(e,t)),t}function Fz(e){let t=[],r=-1;for(;++r<e.length;)t.push(e[r].replace(Nz,"\\$&"));return new RegExp("(?:"+t.join("|")+")","g")}var Rz=/[\dA-Fa-f]/;function JE(e,t,r){let n="&#x"+e.toString(16).toUpperCase();return r&&t&&!Rz.test(String.fromCharCode(t))?n:n+";"}var Bz=/\d/;function ZE(e,t,r){let n="&#"+String(e);return r&&t&&!Bz.test(String.fromCharCode(t))?n:n+";"}var KE=["AElig","AMP","Aacute","Acirc","Agrave","Aring","Atilde","Auml","COPY","Ccedil","ETH","Eacute","Ecirc","Egrave","Euml","GT","Iacute","Icirc","Igrave","Iuml","LT","Ntilde","Oacute","Ocirc","Ograve","Oslash","Otilde","Ouml","QUOT","REG","THORN","Uacute","Ucirc","Ugrave","Uuml","Yacute","aacute","acirc","acute","aelig","agrave","amp","aring","atilde","auml","brvbar","ccedil","cedil","cent","copy","curren","deg","divide","eacute","ecirc","egrave","eth","euml","frac12","frac14","frac34","gt","iacute","icirc","iexcl","igrave","iquest","iuml","laquo","lt","macr","micro","middot","nbsp","not","ntilde","oacute","ocirc","ograve","ordf","ordm","oslash","otilde","ouml","para","plusmn","pound","quot","raquo","reg","sect","shy","sup1","sup2","sup3","szlig","thorn","times","uacute","ucirc","ugrave","uml","uuml","yacute","yen","yuml"];var Up={nbsp:"\xA0",iexcl:"\xA1",cent:"\xA2",pound:"\xA3",curren:"\xA4",yen:"\xA5",brvbar:"\xA6",sect:"\xA7",uml:"\xA8",copy:"\xA9",ordf:"\xAA",laquo:"\xAB",not:"\xAC",shy:"\xAD",reg:"\xAE",macr:"\xAF",deg:"\xB0",plusmn:"\xB1",sup2:"\xB2",sup3:"\xB3",acute:"\xB4",micro:"\xB5",para:"\xB6",middot:"\xB7",cedil:"\xB8",sup1:"\xB9",ordm:"\xBA",raquo:"\xBB",frac14:"\xBC",frac12:"\xBD",frac34:"\xBE",iquest:"\xBF",Agrave:"\xC0",Aacute:"\xC1",Acirc:"\xC2",Atilde:"\xC3",Auml:"\xC4",Aring:"\xC5",AElig:"\xC6",Ccedil:"\xC7",Egrave:"\xC8",Eacute:"\xC9",Ecirc:"\xCA",Euml:"\xCB",Igrave:"\xCC",Iacute:"\xCD",Icirc:"\xCE",Iuml:"\xCF",ETH:"\xD0",Ntilde:"\xD1",Ograve:"\xD2",Oacute:"\xD3",Ocirc:"\xD4",Otilde:"\xD5",Ouml:"\xD6",times:"\xD7",Oslash:"\xD8",Ugrave:"\xD9",Uacute:"\xDA",Ucirc:"\xDB",Uuml:"\xDC",Yacute:"\xDD",THORN:"\xDE",szlig:"\xDF",agrave:"\xE0",aacute:"\xE1",acirc:"\xE2",atilde:"\xE3",auml:"\xE4",aring:"\xE5",aelig:"\xE6",ccedil:"\xE7",egrave:"\xE8",eacute:"\xE9",ecirc:"\xEA",euml:"\xEB",igrave:"\xEC",iacute:"\xED",icirc:"\xEE",iuml:"\xEF",eth:"\xF0",ntilde:"\xF1",ograve:"\xF2",oacute:"\xF3",ocirc:"\xF4",otilde:"\xF5",ouml:"\xF6",divide:"\xF7",oslash:"\xF8",ugrave:"\xF9",uacute:"\xFA",ucirc:"\xFB",uuml:"\xFC",yacute:"\xFD",thorn:"\xFE",yuml:"\xFF",fnof:"\u0192",Alpha:"\u0391",Beta:"\u0392",Gamma:"\u0393",Delta:"\u0394",Epsilon:"\u0395",Zeta:"\u0396",Eta:"\u0397",Theta:"\u0398",Iota:"\u0399",Kappa:"\u039A",Lambda:"\u039B",Mu:"\u039C",Nu:"\u039D",Xi:"\u039E",Omicron:"\u039F",Pi:"\u03A0",Rho:"\u03A1",Sigma:"\u03A3",Tau:"\u03A4",Upsilon:"\u03A5",Phi:"\u03A6",Chi:"\u03A7",Psi:"\u03A8",Omega:"\u03A9",alpha:"\u03B1",beta:"\u03B2",gamma:"\u03B3",delta:"\u03B4",epsilon:"\u03B5",zeta:"\u03B6",eta:"\u03B7",theta:"\u03B8",iota:"\u03B9",kappa:"\u03BA",lambda:"\u03BB",mu:"\u03BC",nu:"\u03BD",xi:"\u03BE",omicron:"\u03BF",pi:"\u03C0",rho:"\u03C1",sigmaf:"\u03C2",sigma:"\u03C3",tau:"\u03C4",upsilon:"\u03C5",phi:"\u03C6",chi:"\u03C7",psi:"\u03C8",omega:"\u03C9",thetasym:"\u03D1",upsih:"\u03D2",piv:"\u03D6",bull:"\u2022",hellip:"\u2026",prime:"\u2032",Prime:"\u2033",oline:"\u203E",frasl:"\u2044",weierp:"\u2118",image:"\u2111",real:"\u211C",trade:"\u2122",alefsym:"\u2135",larr:"\u2190",uarr:"\u2191",rarr:"\u2192",darr:"\u2193",harr:"\u2194",crarr:"\u21B5",lArr:"\u21D0",uArr:"\u21D1",rArr:"\u21D2",dArr:"\u21D3",hArr:"\u21D4",forall:"\u2200",part:"\u2202",exist:"\u2203",empty:"\u2205",nabla:"\u2207",isin:"\u2208",notin:"\u2209",ni:"\u220B",prod:"\u220F",sum:"\u2211",minus:"\u2212",lowast:"\u2217",radic:"\u221A",prop:"\u221D",infin:"\u221E",ang:"\u2220",and:"\u2227",or:"\u2228",cap:"\u2229",cup:"\u222A",int:"\u222B",there4:"\u2234",sim:"\u223C",cong:"\u2245",asymp:"\u2248",ne:"\u2260",equiv:"\u2261",le:"\u2264",ge:"\u2265",sub:"\u2282",sup:"\u2283",nsub:"\u2284",sube:"\u2286",supe:"\u2287",oplus:"\u2295",otimes:"\u2297",perp:"\u22A5",sdot:"\u22C5",lceil:"\u2308",rceil:"\u2309",lfloor:"\u230A",rfloor:"\u230B",lang:"\u2329",rang:"\u232A",loz:"\u25CA",spades:"\u2660",clubs:"\u2663",hearts:"\u2665",diams:"\u2666",quot:'"',amp:"&",lt:"<",gt:">",OElig:"\u0152",oelig:"\u0153",Scaron:"\u0160",scaron:"\u0161",Yuml:"\u0178",circ:"\u02C6",tilde:"\u02DC",ensp:"\u2002",emsp:"\u2003",thinsp:"\u2009",zwnj:"\u200C",zwj:"\u200D",lrm:"\u200E",rlm:"\u200F",ndash:"\u2013",mdash:"\u2014",lsquo:"\u2018",rsquo:"\u2019",sbquo:"\u201A",ldquo:"\u201C",rdquo:"\u201D",bdquo:"\u201E",dagger:"\u2020",Dagger:"\u2021",permil:"\u2030",lsaquo:"\u2039",rsaquo:"\u203A",euro:"\u20AC"};var eM=["cent","copy","divide","gt","lt","not","para","times"];var tM={}.hasOwnProperty,vx={},jp;for(jp in Up)tM.call(Up,jp)&&(vx[Up[jp]]=jp);var zz=/[^\dA-Za-z]/;function rM(e,t,r,n){let o=String.fromCharCode(e);if(tM.call(vx,o)){let i=vx[o],s="&"+i;return r&&KE.includes(i)&&!eM.includes(i)&&(!n||t&&t!==61&&zz.test(String.fromCharCode(t)))?s:s+";"}return""}function nM(e,t,r){let n=JE(e,t,r.omitOptionalSemicolons),o;if((r.useNamedReferences||r.useShortestReferences)&&(o=rM(e,t,r.omitOptionalSemicolons,r.attribute)),(r.useShortestReferences||!o)&&r.useShortestReferences){let i=ZE(e,t,r.omitOptionalSemicolons);i.length<n.length&&(n=i)}return o&&(!r.useShortestReferences||o.length<n.length)?o:n}function oM(e){return"&#x"+e.toString(16).toUpperCase()+";"}function Un(e,t){return bx(e,Object.assign({format:nM},t))}function pFe(e,t){return bx(e,Object.assign({format:oM},t))}var Hz=/^>|^->|<!--|-->|--!>|<!-$/g,Uz=[">"],jz=["<",">"];function iM(e,t,r,n){return n.settings.bogusComments?"<?"+Un(e.value,Object.assign({},n.settings.characterReferences,{subset:Uz}))+">":"<!--"+e.value.replace(Hz,o)+"-->";function o(i){return Un(i,Object.assign({},n.settings.characterReferences,{subset:jz}))}}function sM(e,t,r,n){return"<!"+(n.settings.upperDoctype?"DOCTYPE":"doctype")+(n.settings.tightDoctype?"":" ")+"html>"}function xFe(e){let t=[],r=String(e||""),n=r.indexOf(","),o=0,i=!1;for(;!i;){n===-1&&(n=r.length,i=!0);let s=r.slice(o,n).trim();(s||!i)&&t.push(s),o=n+1,n=r.indexOf(",",o)}return t}function aM(e,t){let r=t||{};return(e[e.length-1]===""?[...e,""]:e).join((r.padRight?" ":"")+","+(r.padLeft===!1?"":" ")).trim()}function bFe(e){let t=String(e||"").trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function lM(e){return e.join(" ").trim()}var qz=/[ \t\n\f\r]/g;function _i(e){return typeof e=="object"?e.type==="text"?cM(e.value):!1:cM(e)}function cM(e){return e.replace(qz,"")===""}var pt=uM(1),wx=uM(-1),Yz=[];function uM(e){return t;function t(r,n,o){let i=r?r.children:Yz,s=(n||0)+e,a=i[s];if(!o)for(;a&&_i(a);)s+=e,a=i[s];return a}}var Wz={}.hasOwnProperty;function qp(e){return t;function t(r,n,o){return Wz.call(e,r.tagName)&&e[r.tagName](r,n,o)}}var Al=qp({body:Gz,caption:Sx,colgroup:Sx,dd:Zz,dt:Jz,head:Sx,html:Vz,li:Xz,optgroup:Kz,option:eH,p:Qz,rp:dM,rt:dM,tbody:rH,td:pM,tfoot:nH,th:pM,thead:tH,tr:oH});function Sx(e,t,r){let n=pt(r,t,!0);return!n||n.type!=="comment"&&!(n.type==="text"&&_i(n.value.charAt(0)))}function Vz(e,t,r){let n=pt(r,t);return!n||n.type!=="comment"}function Gz(e,t,r){let n=pt(r,t);return!n||n.type!=="comment"}function Qz(e,t,r){let n=pt(r,t);return n?n.type==="element"&&(n.tagName==="address"||n.tagName==="article"||n.tagName==="aside"||n.tagName==="blockquote"||n.tagName==="details"||n.tagName==="div"||n.tagName==="dl"||n.tagName==="fieldset"||n.tagName==="figcaption"||n.tagName==="figure"||n.tagName==="footer"||n.tagName==="form"||n.tagName==="h1"||n.tagName==="h2"||n.tagName==="h3"||n.tagName==="h4"||n.tagName==="h5"||n.tagName==="h6"||n.tagName==="header"||n.tagName==="hgroup"||n.tagName==="hr"||n.tagName==="main"||n.tagName==="menu"||n.tagName==="nav"||n.tagName==="ol"||n.tagName==="p"||n.tagName==="pre"||n.tagName==="section"||n.tagName==="table"||n.tagName==="ul"):!r||!(r.type==="element"&&(r.tagName==="a"||r.tagName==="audio"||r.tagName==="del"||r.tagName==="ins"||r.tagName==="map"||r.tagName==="noscript"||r.tagName==="video"))}function Xz(e,t,r){let n=pt(r,t);return!n||n.type==="element"&&n.tagName==="li"}function Jz(e,t,r){let n=pt(r,t);return!!(n&&n.type==="element"&&(n.tagName==="dt"||n.tagName==="dd"))}function Zz(e,t,r){let n=pt(r,t);return!n||n.type==="element"&&(n.tagName==="dt"||n.tagName==="dd")}function dM(e,t,r){let n=pt(r,t);return!n||n.type==="element"&&(n.tagName==="rp"||n.tagName==="rt")}function Kz(e,t,r){let n=pt(r,t);return!n||n.type==="element"&&n.tagName==="optgroup"}function eH(e,t,r){let n=pt(r,t);return!n||n.type==="element"&&(n.tagName==="option"||n.tagName==="optgroup")}function tH(e,t,r){let n=pt(r,t);return!!(n&&n.type==="element"&&(n.tagName==="tbody"||n.tagName==="tfoot"))}function rH(e,t,r){let n=pt(r,t);return!n||n.type==="element"&&(n.tagName==="tbody"||n.tagName==="tfoot")}function nH(e,t,r){return!pt(r,t)}function oH(e,t,r){let n=pt(r,t);return!n||n.type==="element"&&n.tagName==="tr"}function pM(e,t,r){let n=pt(r,t);return!n||n.type==="element"&&(n.tagName==="td"||n.tagName==="th")}var fM=qp({body:aH,colgroup:lH,head:sH,html:iH,tbody:cH});function iH(e){let t=pt(e,-1);return!t||t.type!=="comment"}function sH(e){let t=new Set;for(let n of e.children)if(n.type==="element"&&(n.tagName==="base"||n.tagName==="title")){if(t.has(n.tagName))return!1;t.add(n.tagName)}let r=e.children[0];return!r||r.type==="element"}function aH(e){let t=pt(e,-1,!0);return!t||t.type!=="comment"&&!(t.type==="text"&&_i(t.value.charAt(0)))&&!(t.type==="element"&&(t.tagName==="meta"||t.tagName==="link"||t.tagName==="script"||t.tagName==="style"||t.tagName==="template"))}function lH(e,t,r){let n=wx(r,t),o=pt(e,-1,!0);return r&&n&&n.type==="element"&&n.tagName==="colgroup"&&Al(n,r.children.indexOf(n),r)?!1:!!(o&&o.type==="element"&&o.tagName==="col")}function cH(e,t,r){let n=wx(r,t),o=pt(e,-1);return r&&n&&n.type==="element"&&(n.tagName==="thead"||n.tagName==="tbody")&&Al(n,r.children.indexOf(n),r)?!1:!!(o&&o.type==="element"&&o.tagName==="tr")}var Yp={name:[[`
|
|
93
93
|
\f\r &/=>`.split(""),`
|
|
94
94
|
\f\r "&'/=>\``.split("")],[`\0
|
|
95
95
|
\f\r "&'/<=>`.split(""),`\0
|
|
@@ -97,21 +97,21 @@ ${o}
|
|
|
97
97
|
\f\r &>`.split(""),`\0
|
|
98
98
|
\f\r "&'<=>\``.split("")],[`\0
|
|
99
99
|
\f\r "&'<=>\``.split(""),`\0
|
|
100
|
-
\f\r "&'<=>\``.split("")]],single:[["&'".split(""),"\"&'`".split("")],["\0&'".split(""),"\0\"&'`".split("")]],double:[['"&'.split(""),"\"&'`".split("")],['\0"&'.split(""),"\0\"&'`".split("")]]};function mM(e,t,r,n){let o=n.schema,i=o.space==="svg"?!1:n.settings.omitOptionalTags,s=o.space==="svg"?n.settings.closeEmptyElements:n.settings.voids.includes(e.tagName.toLowerCase()),a=[],l;o.space==="html"&&e.tagName==="svg"&&(n.schema=Hp);let c=
|
|
101
|
-
`:p}}function Ks(e){let t=this;t.compiler=r;function r(n){return
|
|
102
|
-
`;)t--;return e.substring(0,t)}function vM(e){return bM(yM(e))}var
|
|
100
|
+
\f\r "&'<=>\``.split("")]],single:[["&'".split(""),"\"&'`".split("")],["\0&'".split(""),"\0\"&'`".split("")]],double:[['"&'.split(""),"\"&'`".split("")],['\0"&'.split(""),"\0\"&'`".split("")]]};function mM(e,t,r,n){let o=n.schema,i=o.space==="svg"?!1:n.settings.omitOptionalTags,s=o.space==="svg"?n.settings.closeEmptyElements:n.settings.voids.includes(e.tagName.toLowerCase()),a=[],l;o.space==="html"&&e.tagName==="svg"&&(n.schema=Hp);let c=uH(n,e.properties),u=n.all(o.space==="html"&&e.tagName==="template"?e.content:e);return n.schema=o,u&&(s=!1),(c||!i||!fM(e,t,r))&&(a.push("<",e.tagName,c?" "+c:""),s&&(o.space==="svg"||n.settings.closeSelfClosing)&&(l=c.charAt(c.length-1),(!n.settings.tightSelfClosing||l==="/"||l&&l!=='"'&&l!=="'")&&a.push(" "),a.push("/")),a.push(">")),a.push(u),!s&&(!i||!Al(e,t,r))&&a.push("</"+e.tagName+">"),a.join("")}function uH(e,t){let r=[],n=-1,o;if(t){for(o in t)if(t[o]!==null&&t[o]!==void 0){let i=dH(e,o,t[o]);i&&r.push(i)}}for(;++n<r.length;){let i=e.settings.tightAttributes?r[n].charAt(r[n].length-1):void 0;n!==r.length-1&&i!=='"'&&i!=="'"&&(r[n]+=" ")}return r.join("")}function dH(e,t,r){let n=yx(e.schema,t),o=e.settings.allowParseErrors&&e.schema.space==="html"?0:1,i=e.settings.allowDangerousCharacters?0:1,s=e.quote,a;if(n.overloadedBoolean&&(r===n.attribute||r==="")?r=!0:(n.boolean||n.overloadedBoolean)&&(typeof r!="string"||r===n.attribute||r==="")&&(r=!!r),r==null||r===!1||typeof r=="number"&&Number.isNaN(r))return"";let l=Un(n.attribute,Object.assign({},e.settings.characterReferences,{subset:Yp.name[o][i]}));return r===!0||(r=Array.isArray(r)?(n.commaSeparated?aM:lM)(r,{padLeft:!e.settings.tightCommaSeparatedLists}):String(r),e.settings.collapseEmptyAttributes&&!r)?l:(e.settings.preferUnquoted&&(a=Un(r,Object.assign({},e.settings.characterReferences,{attribute:!0,subset:Yp.unquoted[o][i]}))),a!==r&&(e.settings.quoteSmart&&Bs(r,s)>Bs(r,e.alternative)&&(s=e.alternative),a=s+Un(r,Object.assign({},e.settings.characterReferences,{subset:(s==="'"?Yp.single:Yp.double)[o][i],attribute:!0}))+s),l+(a&&"="+a))}var pH=["<","&"];function Wp(e,t,r,n){return r&&r.type==="element"&&(r.tagName==="script"||r.tagName==="style")?e.value:Un(e.value,Object.assign({},n.settings.characterReferences,{subset:pH}))}function hM(e,t,r,n){return n.settings.allowDangerousHtml?e.value:Wp(e,t,r,n)}function gM(e,t,r,n){return n.all(e)}var xM=sp("type",{invalid:fH,unknown:mH,handlers:{comment:iM,doctype:sM,element:mM,raw:hM,root:gM,text:Wp}});function fH(e){throw new Error("Expected node, not `"+e+"`")}function mH(e){let t=e;throw new Error("Cannot compile unknown node `"+t.type+"`")}var hH={},gH={},xH=[];function kx(e,t){let r=t||hH,n=r.quote||'"',o=n==='"'?"'":'"';if(n!=='"'&&n!=="'")throw new Error("Invalid quote `"+n+"`, expected `'` or `\"`");return{one:yH,all:bH,settings:{omitOptionalTags:r.omitOptionalTags||!1,allowParseErrors:r.allowParseErrors||!1,allowDangerousCharacters:r.allowDangerousCharacters||!1,quoteSmart:r.quoteSmart||!1,preferUnquoted:r.preferUnquoted||!1,tightAttributes:r.tightAttributes||!1,upperDoctype:r.upperDoctype||!1,tightDoctype:r.tightDoctype||!1,bogusComments:r.bogusComments||!1,tightCommaSeparatedLists:r.tightCommaSeparatedLists||!1,tightSelfClosing:r.tightSelfClosing||!1,collapseEmptyAttributes:r.collapseEmptyAttributes||!1,allowDangerousHtml:r.allowDangerousHtml||!1,voids:r.voids||qE,characterReferences:r.characterReferences||gH,closeSelfClosing:r.closeSelfClosing||!1,closeEmptyElements:r.closeEmptyElements||!1},schema:r.space==="svg"?Hp:QE,quote:n,alternative:o}.one(Array.isArray(e)?{type:"root",children:e}:e,void 0,void 0)}function yH(e,t,r){return xM(e,t,r,this)}function bH(e){let t=[],r=e&&e.children||xH,n=-1;for(;++n<r.length;)t[n]=this.one(r[n],n,e);return t.join("")}var vH={};function Zs(e){let t=this,{handlers:r,sanitize:n,...o}=e||vH,i=!1,s;typeof n=="boolean"?i=!n:n&&(s=n),t.compiler=a;function a(l,c){let u=dx(l,{handlers:r,allowDangerousHtml:i}),d=i?u:lx(u,s),p=kx(d,{...o,allowDangerousHtml:i});return c.extname&&(c.extname=".html"),l&&l.type==="root"&&p&&/[^\r\n]/.test(p.charAt(p.length-1))?p+`
|
|
101
|
+
`:p}}function Ks(e){let t=this;t.compiler=r;function r(n){return hg(n,{...t.data("settings"),...e,extensions:t.data("toMarkdownExtensions")||[]})}}function wH(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)r.hasOwnProperty(n)&&(e[n]=r[n])}return e}function Tx(e,t){return Array(t+1).join(e)}function yM(e){return e.replace(/^\n*/,"")}function bM(e){for(var t=e.length;t>0&&e[t-1]===`
|
|
102
|
+
`;)t--;return e.substring(0,t)}function vM(e){return bM(yM(e))}var SH=["ADDRESS","ARTICLE","ASIDE","AUDIO","BLOCKQUOTE","BODY","CANVAS","CENTER","DD","DIR","DIV","DL","DT","FIELDSET","FIGCAPTION","FIGURE","FOOTER","FORM","FRAMESET","H1","H2","H3","H4","H5","H6","HEADER","HGROUP","HR","HTML","ISINDEX","LI","MAIN","MENU","NAV","NOFRAMES","NOSCRIPT","OL","OUTPUT","P","PRE","SECTION","TABLE","TBODY","TD","TFOOT","TH","THEAD","TR","UL"];function Dx(e){return Cx(e,SH)}var wM=["AREA","BASE","BR","COL","COMMAND","EMBED","HR","IMG","INPUT","KEYGEN","LINK","META","PARAM","SOURCE","TRACK","WBR"];function SM(e){return Cx(e,wM)}function kH(e){return TM(e,wM)}var kM=["A","TABLE","THEAD","TBODY","TFOOT","TH","TD","IFRAME","SCRIPT","AUDIO","VIDEO"];function TH(e){return Cx(e,kM)}function DH(e){return TM(e,kM)}function Cx(e,t){return t.indexOf(e.nodeName)>=0}function TM(e,t){return e.getElementsByTagName&&t.some(function(r){return e.getElementsByTagName(r).length})}var Yt={};Yt.paragraph={filter:"p",replacement:function(e){return`
|
|
103
103
|
|
|
104
104
|
`+e+`
|
|
105
105
|
|
|
106
106
|
`}},Yt.lineBreak={filter:"br",replacement:function(e,t,r){return r.br+`
|
|
107
|
-
`}},Yt.heading={filter:["h1","h2","h3","h4","h5","h6"],replacement:function(e,t,r){var n=Number(t.nodeName.charAt(1));if(r.headingStyle==="setext"&&n<3){var o=
|
|
107
|
+
`}},Yt.heading={filter:["h1","h2","h3","h4","h5","h6"],replacement:function(e,t,r){var n=Number(t.nodeName.charAt(1));if(r.headingStyle==="setext"&&n<3){var o=Tx(n===1?"=":"-",e.length);return`
|
|
108
108
|
|
|
109
109
|
`+e+`
|
|
110
110
|
`+o+`
|
|
111
111
|
|
|
112
112
|
`}else return`
|
|
113
113
|
|
|
114
|
-
`+
|
|
114
|
+
`+Tx("#",n)+" "+e+`
|
|
115
115
|
|
|
116
116
|
`}},Yt.blockquote={filter:"blockquote",replacement:function(e){return e=vM(e).replace(/^/gm,"> "),`
|
|
117
117
|
|
|
@@ -130,7 +130,7 @@ ${o}
|
|
|
130
130
|
`+t.firstChild.textContent.replace(/\n/g,`
|
|
131
131
|
`)+`
|
|
132
132
|
|
|
133
|
-
`}},Yt.fencedCodeBlock={filter:function(e,t){return t.codeBlockStyle==="fenced"&&e.nodeName==="PRE"&&e.firstChild&&e.firstChild.nodeName==="CODE"},replacement:function(e,t,r){for(var n=t.firstChild.getAttribute("class")||"",o=(n.match(/language-(\S+)/)||[null,""])[1],i=t.firstChild.textContent,s=r.fence.charAt(0),a=3,l=new RegExp("^"+s+"{3,}","gm"),c;c=l.exec(i);)c[0].length>=a&&(a=c[0].length+1);var u=
|
|
133
|
+
`}},Yt.fencedCodeBlock={filter:function(e,t){return t.codeBlockStyle==="fenced"&&e.nodeName==="PRE"&&e.firstChild&&e.firstChild.nodeName==="CODE"},replacement:function(e,t,r){for(var n=t.firstChild.getAttribute("class")||"",o=(n.match(/language-(\S+)/)||[null,""])[1],i=t.firstChild.textContent,s=r.fence.charAt(0),a=3,l=new RegExp("^"+s+"{3,}","gm"),c;c=l.exec(i);)c[0].length>=a&&(a=c[0].length+1);var u=Tx(s,a);return`
|
|
134
134
|
|
|
135
135
|
`+u+o+`
|
|
136
136
|
`+i.replace(/\n$/,"")+`
|
|
@@ -146,7 +146,7 @@ ${o}
|
|
|
146
146
|
`)+`
|
|
147
147
|
|
|
148
148
|
`,this.references=[]),t}},Yt.emphasis={filter:["em","i"],replacement:function(e,t,r){return e.trim()?r.emDelimiter+e+r.emDelimiter:""}},Yt.strong={filter:["strong","b"],replacement:function(e,t,r){return e.trim()?r.strongDelimiter+e+r.strongDelimiter:""}},Yt.code={filter:function(e){var t=e.previousSibling||e.nextSibling,r=e.parentNode.nodeName==="PRE"&&!t;return e.nodeName==="CODE"&&!r},replacement:function(e){if(!e)return"";e=e.replace(/\r?\n|\r/g," ");for(var t=/^`|^ .*?[^ ].* $|`$/.test(e)?" ":"",r="`",n=e.match(/`+/gm)||[];n.indexOf(r)!==-1;)r=r+"`";return r+t+e+t+r}},Yt.image={filter:"img",replacement:function(e,t){var r=Vp(t.getAttribute("alt")),n=t.getAttribute("src")||"",o=Vp(t.getAttribute("title")),i=o?' "'+o+'"':"";return n?"":""}};function Vp(e){return e?e.replace(/(\n+\s*)+/g,`
|
|
149
|
-
`):""}function DM(e){this.options=e,this._keep=[],this._remove=[],this.blankRule={replacement:e.blankReplacement},this.keepReplacement=e.keepReplacement,this.defaultRule={replacement:e.defaultReplacement},this.array=[];for(var t in e.rules)this.array.push(e.rules[t])}DM.prototype={add:function(e,t){this.array.unshift(t)},keep:function(e){this._keep.unshift({filter:e,replacement:this.keepReplacement})},remove:function(e){this._remove.unshift({filter:e,replacement:function(){return""}})},forNode:function(e){if(e.isBlank)return this.blankRule;var t;return(t=
|
|
149
|
+
`):""}function DM(e){this.options=e,this._keep=[],this._remove=[],this.blankRule={replacement:e.blankReplacement},this.keepReplacement=e.keepReplacement,this.defaultRule={replacement:e.defaultReplacement},this.array=[];for(var t in e.rules)this.array.push(e.rules[t])}DM.prototype={add:function(e,t){this.array.unshift(t)},keep:function(e){this._keep.unshift({filter:e,replacement:this.keepReplacement})},remove:function(e){this._remove.unshift({filter:e,replacement:function(){return""}})},forNode:function(e){if(e.isBlank)return this.blankRule;var t;return(t=Ex(this.array,e,this.options))||(t=Ex(this._keep,e,this.options))||(t=Ex(this._remove,e,this.options))?t:this.defaultRule},forEach:function(e){for(var t=0;t<this.array.length;t++)e(this.array[t],t)}};function Ex(e,t,r){for(var n=0;n<e.length;n++){var o=e[n];if(CH(o,t,r))return o}}function CH(e,t,r){var n=e.filter;if(typeof n=="string"){if(n===t.nodeName.toLowerCase())return!0}else if(Array.isArray(n)){if(n.indexOf(t.nodeName.toLowerCase())>-1)return!0}else if(typeof n=="function"){if(n.call(e,t,r))return!0}else throw new TypeError("`filter` needs to be a string, array, or function")}function EH(e){var t=e.element,r=e.isBlock,n=e.isVoid,o=e.isPre||function(d){return d.nodeName==="PRE"};if(!(!t.firstChild||o(t))){for(var i=null,s=!1,a=null,l=CM(a,t,o);l!==t;){if(l.nodeType===3||l.nodeType===4){var c=l.data.replace(/[ \r\n\t]+/g," ");if((!i||/ $/.test(i.data))&&!s&&c[0]===" "&&(c=c.substr(1)),!c){l=Mx(l);continue}l.data=c,i=l}else if(l.nodeType===1)r(l)||l.nodeName==="BR"?(i&&(i.data=i.data.replace(/ $/,"")),i=null,s=!1):n(l)||o(l)?(i=null,s=!0):i&&(s=!1);else{l=Mx(l);continue}var u=CM(a,l,o);a=l,l=u}i&&(i.data=i.data.replace(/ $/,""),i.data||Mx(i))}}function Mx(e){var t=e.nextSibling||e.parentNode;return e.parentNode.removeChild(e),t}function CM(e,t,r){return e&&e.parentNode===t||r(t)?t.nextSibling||t.parentNode:t.firstChild||t.nextSibling||t.parentNode}var Ix=typeof window<"u"?window:{};function MH(){var e=Ix.DOMParser,t=!1;try{new e().parseFromString("","text/html")&&(t=!0)}catch{}return t}function IH(){var e=function(){};return $H()?e.prototype.parseFromString=function(t){var r=new window.ActiveXObject("htmlfile");return r.designMode="on",r.open(),r.write(t),r.close(),r}:e.prototype.parseFromString=function(t){var r=document.implementation.createHTMLDocument("");return r.open(),r.write(t),r.close(),r},e}function $H(){var e=!1;try{document.implementation.createHTMLDocument("").open()}catch{Ix.ActiveXObject&&(e=!0)}return e}var AH=MH()?Ix.DOMParser:IH();function _H(e,t){var r;if(typeof e=="string"){var n=OH().parseFromString('<x-turndown id="turndown-root">'+e+"</x-turndown>","text/html");r=n.getElementById("turndown-root")}else r=e.cloneNode(!0);return EH({element:r,isBlock:Dx,isVoid:SM,isPre:t.preformattedCode?LH:null}),r}var $x;function OH(){return $x=$x||new AH,$x}function LH(e){return e.nodeName==="PRE"||e.nodeName==="CODE"}function NH(e,t){return e.isBlock=Dx(e),e.isCode=e.nodeName==="CODE"||e.parentNode.isCode,e.isBlank=PH(e),e.flankingWhitespace=FH(e,t),e}function PH(e){return!SM(e)&&!TH(e)&&/^\s*$/i.test(e.textContent)&&!kH(e)&&!DH(e)}function FH(e,t){if(e.isBlock||t.preformattedCode&&e.isCode)return{leading:"",trailing:""};var r=RH(e.textContent);return r.leadingAscii&&EM("left",e,t)&&(r.leading=r.leadingNonAscii),r.trailingAscii&&EM("right",e,t)&&(r.trailing=r.trailingNonAscii),{leading:r.leading,trailing:r.trailing}}function RH(e){var t=e.match(/^(([ \t\r\n]*)(\s*))(?:(?=\S)[\s\S]*\S)?((\s*?)([ \t\r\n]*))$/);return{leading:t[1],leadingAscii:t[2],leadingNonAscii:t[3],trailing:t[4],trailingNonAscii:t[5],trailingAscii:t[6]}}function EM(e,t,r){var n,o,i;return e==="left"?(n=t.previousSibling,o=/ $/):(n=t.nextSibling,o=/^ /),n&&(n.nodeType===3?i=o.test(n.nodeValue):r.preformattedCode&&n.nodeName==="CODE"?i=!1:n.nodeType===1&&!Dx(n)&&(i=o.test(n.textContent))),i}var BH=Array.prototype.reduce,zH=[[/\\/g,"\\\\"],[/\*/g,"\\*"],[/^-/g,"\\-"],[/^\+ /g,"\\+ "],[/^(=+)/g,"\\$1"],[/^(#{1,6}) /g,"\\$1 "],[/`/g,"\\`"],[/^~~~/g,"\\~~~"],[/\[/g,"\\["],[/\]/g,"\\]"],[/^>/g,"\\>"],[/_/g,"\\_"],[/^(\d+)\. /g,"$1\\. "]];function Gp(e){if(!(this instanceof Gp))return new Gp(e);var t={rules:Yt,headingStyle:"setext",hr:"* * *",bulletListMarker:"*",codeBlockStyle:"indented",fence:"```",emDelimiter:"_",strongDelimiter:"**",linkStyle:"inlined",linkReferenceStyle:"full",br:" ",preformattedCode:!1,blankReplacement:function(r,n){return n.isBlock?`
|
|
150
150
|
|
|
151
151
|
`:""},keepReplacement:function(r,n){return n.isBlock?`
|
|
152
152
|
|
|
@@ -156,28 +156,35 @@ ${o}
|
|
|
156
156
|
|
|
157
157
|
`+r+`
|
|
158
158
|
|
|
159
|
-
`:r}};this.options=
|
|
159
|
+
`:r}};this.options=wH({},t,e),this.rules=new DM(this.options)}Gp.prototype={turndown:function(e){if(!jH(e))throw new TypeError(e+" is not a string, or an element/document/fragment node.");if(e==="")return"";var t=MM.call(this,new _H(e,this.options));return HH.call(this,t)},use:function(e){if(Array.isArray(e))for(var t=0;t<e.length;t++)this.use(e[t]);else if(typeof e=="function")e(this);else throw new TypeError("plugin must be a Function or an Array of Functions");return this},addRule:function(e,t){return this.rules.add(e,t),this},keep:function(e){return this.rules.keep(e),this},remove:function(e){return this.rules.remove(e),this},escape:function(e){return zH.reduce(function(t,r){return t.replace(r[0],r[1])},e)}};function MM(e){var t=this;return BH.call(e.childNodes,function(r,n){n=new NH(n,t.options);var o="";return n.nodeType===3?o=n.isCode?n.nodeValue:t.escape(n.nodeValue):n.nodeType===1&&(o=UH.call(t,n)),IM(r,o)},"")}function HH(e){var t=this;return this.rules.forEach(function(r){typeof r.append=="function"&&(e=IM(e,r.append(t.options)))}),e.replace(/^[\t\r\n]+/,"").replace(/[\t\r\n\s]+$/,"")}function UH(e){var t=this.rules.forNode(e),r=MM.call(this,e),n=e.flankingWhitespace;return(n.leading||n.trailing)&&(r=r.trim()),n.leading+t.replacement(r,e,this.options)+n.trailing}function IM(e,t){var r=bM(e),n=yM(t),o=Math.max(e.length-r.length,t.length-n.length),i=`
|
|
160
160
|
|
|
161
|
-
`.substring(0,o);return r+i+n}function
|
|
161
|
+
`.substring(0,o);return r+i+n}function jH(e){return e!=null&&(typeof e=="string"||e.nodeType&&(e.nodeType===1||e.nodeType===9||e.nodeType===11))}var Qp=Gp;var _l={};he(_l,{gfm:()=>_M,highlightedCodeBlock:()=>_x,strikethrough:()=>Ox,tables:()=>Lx,taskListItems:()=>Nx});var $M=/highlight-(?:text|source)-([a-z0-9]+)/;function _x(e){e.addRule("highlightedCodeBlock",{filter:function(t){var r=t.firstChild;return t.nodeName==="DIV"&&$M.test(t.className)&&r&&r.nodeName==="PRE"},replacement:function(t,r,n){var o=r.className||"",i=(o.match($M)||[null,""])[1];return`
|
|
162
162
|
|
|
163
163
|
`+n.fence+i+`
|
|
164
164
|
`+r.firstChild.textContent+`
|
|
165
165
|
`+n.fence+`
|
|
166
166
|
|
|
167
|
-
`}})}function
|
|
167
|
+
`}})}function Ox(e){e.addRule("strikethrough",{filter:["del","s","strike"],replacement:function(t){return"~"+t+"~"}})}var qH=Array.prototype.indexOf,YH=Array.prototype.every,ea={};ea.tableCell={filter:["th","td"],replacement:function(e,t){return AM(e,t)}},ea.tableRow={filter:"tr",replacement:function(e,t){var r="",n={left:":--",right:"--:",center:":-:"};if(Ax(t))for(var o=0;o<t.childNodes.length;o++){var i="---",s=(t.childNodes[o].getAttribute("align")||"").toLowerCase();s&&(i=n[s]||i),r+=AM(i,t.childNodes[o])}return`
|
|
168
168
|
`+e+(r?`
|
|
169
|
-
`+r:"")}},ea.table={filter:function(e){return e.nodeName==="TABLE"&&
|
|
169
|
+
`+r:"")}},ea.table={filter:function(e){return e.nodeName==="TABLE"&&Ax(e.rows[0])},replacement:function(e){return e=e.replace(`
|
|
170
170
|
|
|
171
171
|
`,`
|
|
172
172
|
`),`
|
|
173
173
|
|
|
174
174
|
`+e+`
|
|
175
175
|
|
|
176
|
-
`}},ea.tableSection={filter:["thead","tbody","tfoot"],replacement:function(e){return e}};function _x(e){var t=e.parentNode;return t.nodeName==="THEAD"||t.firstChild===e&&(t.nodeName==="TABLE"||VH(t))&&WH.call(e.childNodes,function(r){return r.nodeName==="TH"})}function VH(e){var t=e.previousSibling;return e.nodeName==="TBODY"&&(!t||t.nodeName==="THEAD"&&/^\s*$/i.test(t.textContent))}function AM(e,t){var r=YH.call(t.parentNode.childNodes,t),n=" ";return r===0&&(n="| "),n+e+" |"}function Nx(e){e.keep(function(r){return r.nodeName==="TABLE"&&!_x(r.rows[0])});for(var t in ea)e.addRule(t,ea[t])}function Px(e){e.addRule("taskListItems",{filter:function(t){return t.type==="checkbox"&&t.parentNode.nodeName==="LI"},replacement:function(t,r){return(r.checked?"[x]":"[ ]")+" "}})}function _M(e){e.use([Ox,Lx,Nx,Px])}var Fx=Qt(cD(),1);var Xp=class e{static async createFromMarkdownString(t){let r=new e;return await r.updateFromMarkdownString(t),r}async updateFromMarkdownString(t){let r,n=await dl().use(Ws).use(Ys).use(Gs,["yaml","toml"]).use(Ks).use(Zs).use(()=>o=>{console.dir(o);let i=o.children.find(s=>s.type==="yaml");i&&(r=i.value)}).process(t);this.html=n.toString(),r?this.frontmatterData=await Fx.yamlStringToObject(r):this.frontmatterData={}}};var Rx=class e{static async easyMarkdownToHtml(t){return(await new e().getMdParsedResultFromMarkdown(t)).html}constructor(){}async getMdParsedResultFromMarkdown(t){return await Xp.createFromMarkdownString(t)}htmlToMarkdown(t){let r=new Qp({headingStyle:"atx",codeBlockStyle:"fenced"});return r.use(_l.gfm),r.turndown(t)}};var To={};me(To,{SmartRouter:()=>qx});var jx=Qt(BM(),1);var Kp=class{constructor(){}getAllAsObject(){let t=new URLSearchParams(window.location.search);return Object.fromEntries(t.entries())}setQueryParam(t,r,n="replace"){var o=new URLSearchParams(window.location.search);o.set(t,r),n==="push"?history.pushState(null,null,"?"+o.toString()):history.replaceState(null,null,"?"+o.toString())}deleteQueryParam(t,r="replace"){var n=new URLSearchParams(window.location.search);n.delete(t),r==="push"?history.pushState(null,null,"?"+n.toString()):history.replaceState(null,null,"?"+n.toString())}getQueryParam(t){return this.getAllAsObject()[t]}};var L4e=e=>{console.log(`%c[Router]%c ${e}`,"color: rgb(255, 105, 100);","color: inherit")},qx=class e{constructor(t,r=""){this.options={debug:!1},this.queryParams=new Kp,this.routes=[],this.options={...this.options,...t},this.basePath=r,this.popstateListener=n=>{n.preventDefault(),this._handleRouteState()},window.addEventListener("popstate",this.popstateListener)}createSubRouter(t,r){let n=`${this.basePath}${t}`;return new e({...this.options,...r},n)}async pushUrl(t="/",r={}){let n=`${this.basePath}${t}`;n!==window.location.pathname?window.history.pushState(r,window.document.title,n):window.history.replaceState(r,window.document.title,n),await this._handleRouteState()}on(t,r){let n=`${this.basePath}${t}`,o={matchFunction:jx.match(n),handler:r};return this.routes.push(o),()=>{this.routes.splice(this.routes.indexOf(o),1)}}async _handleRouteState(){let t=window.location.pathname,r=this.routes.filter(n=>!!n.matchFunction(t));for(let n of r){let o=n.matchFunction(t);n.handler({...o.valueOf(),queryParams:this.queryParams.getAllAsObject()})}}destroy(){window.removeEventListener("popstate",this.popstateListener),this.routes=[]}};var Do={};me(Do,{Smartstate:()=>Wx,StateAction:()=>Ll,StatePart:()=>Nl});var Ol={};me(Ol,{md5FromString:()=>mU,sha256FromBuffer:()=>uU,sha256FromFile:()=>fU,sha256FromStream:()=>pU,sha256FromString:()=>UM,sha256FromStringSync:()=>cU,sha265FromObject:()=>dU});var sU=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],aU=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225];function vn(e,t){return e>>>t|e<<32-t}function lU(e,t){let r=t[0],n=t[1],o=t[2],i=t[3],s=t[4],a=t[5],l=t[6],c=t[7];for(let u=0;u<64;u++){if(u>=16){let y=vn(e[u-15],7)^vn(e[u-15],18)^e[u-15]>>>3,T=vn(e[u-2],17)^vn(e[u-2],19)^e[u-2]>>>10;e[u]=e[u-16]+y+e[u-7]+T>>>0}let d=vn(s,6)^vn(s,11)^vn(s,25),p=s&a^~s&l,f=c+d+p+sU[u]+e[u]>>>0,m=vn(r,2)^vn(r,13)^vn(r,22),g=r&n^r&o^n&o,x=m+g>>>0;c=l,l=a,a=s,s=i+f>>>0,i=o,o=n,n=r,r=f+x>>>0}t[0]=t[0]+r>>>0,t[1]=t[1]+n>>>0,t[2]=t[2]+o>>>0,t[3]=t[3]+i>>>0,t[4]=t[4]+s>>>0,t[5]=t[5]+a>>>0,t[6]=t[6]+l>>>0,t[7]=t[7]+c>>>0}function Yx(e){let t=[...aU],r=e.length,n=r*8,o=r%64<56?56-r%64:120-r%64,i=new Uint8Array(r+o+8);i.set(e),i[r]=128;let s=new DataView(i.buffer);s.setUint32(i.length-8,0,!1),s.setUint32(i.length-4,n>>>0,!1);for(let l=0;l<i.length;l+=64){let c=new Array(64);for(let u=0;u<16;u++)c[u]=s.getUint32(l+u*4,!1);lU(c,t)}let a="";for(let l=0;l<8;l++)a+=t[l].toString(16).padStart(8,"0");return a}var zM=e=>{let t=[],r=new DataView(e);for(let n=0;n<r.byteLength;n+=4){let i=r.getUint32(n).toString(16),s="00000000",a=(s+i).slice(-s.length);t.push(a)}return t.join("")},HM=()=>typeof crypto<"u"&&crypto.subtle!==void 0,UM=async e=>{let t=new TextEncoder().encode(e);if(HM()){let r=await crypto.subtle.digest("SHA-256",t);return zM(r)}else return Yx(t)},cU=e=>{throw console.warn("sha256FromStringSync is not truly synchronous in browser environment"),new Error("sha256FromStringSync is not supported in browser environment. Use sha256FromString instead.")},uU=async e=>{if(HM()){let t;if(e instanceof Uint8Array){let o=e;t=o.buffer.slice(o.byteOffset,o.byteOffset+o.byteLength)}else t=e;let r=await crypto.subtle.digest("SHA-256",t);return zM(r)}else{let t=e instanceof Uint8Array?e:new Uint8Array(e);return Yx(t)}},dU=async e=>{let t=Ze.stringify(e);return await UM(t)},pU=e=>{throw new Error("sha256FromStream is not supported in browser environment")},fU=async e=>{throw new Error("sha256FromFile is not supported in browser environment")},mU=async e=>{throw new Error("md5FromString is not supported in browser environment. Web Crypto API does not support MD5.")};var Ll=class{constructor(t,r){this.statePartRef=t,this.actionDef=r}trigger(t){return this.statePartRef.dispatchAction(this,t)}};var Nl=class{constructor(t,r){this.state=new Ee.rxjs.Subject,this.cumulativeDeferred=fe.cumulativeDefer(),this.webStore=null,this.name=t,r&&(this.webStoreOptions=r)}async init(){if(this.webStoreOptions){this.webStore=new qr.WebStore(this.webStoreOptions),await this.webStore.init();let t=await this.webStore.get(String(this.name));t&&this.validateState(t)&&(this.stateStore=t,await this.notifyChange())}}getState(){return this.stateStore}async setState(t){if(!this.validateState(t))throw new Error(`Invalid state structure for state part '${this.name}'`);return this.stateStore=t,await this.notifyChange(),this.webStore&&await this.webStore.set(String(this.name),t),this.stateStore}validateState(t){return t!=null}async notifyChange(){if(!this.stateStore)return;let r=await(async n=>await Ol.sha256FromString(Ze.stableOneWayStringify(n)))(this.stateStore);this.lastStateNotificationPayloadHash&&r===this.lastStateNotificationPayloadHash||(this.lastStateNotificationPayloadHash=r,this.state.next(this.stateStore))}notifyChangeCumulative(){setTimeout(async()=>{this.stateStore&&await this.notifyChange()},0)}select(t){return t||(t=n=>n),this.state.pipe(Ee.rxjs.ops.startWith(this.getState()),Ee.rxjs.ops.filter(n=>n!==void 0),Ee.rxjs.ops.map(n=>{try{return t(n)}catch{}}))}createAction(t){return new Ll(this,t)}async dispatchAction(t,r){await this.cumulativeDeferred.promise;let n=await t.actionDef(this,r);return await this.setState(n),this.getState()}async waitUntilPresent(t){let r=fe.defer(),o=this.select(t).subscribe(async s=>{s&&r.resolve(s)}),i=await r.promise;return o.unsubscribe(),i}async stateSetup(t){let r=t(this);this.cumulativeDeferred.addPromise(r),this.setState(await r)}};var Wx=class{constructor(){this.statePartMap={}}async getStatePart(t,r,n="soft"){let o=this.statePartMap[t];if(o)switch(n){case"mandatory":throw new Error(`State part '${t}' already exists, but initMode is 'mandatory'`);case"force":return this.createStatePart(t,r,n);default:return o}else{if(!r)throw new Error(`State part '${t}' does not exist and no initial state provided`);return this.createStatePart(t,r,n)}}async createStatePart(t,r,n="soft"){let o=new Nl(t,n==="persistent"?{dbName:"smartstate",storeName:t}:null);await o.init();let i=o.getState();return await o.setState({...i,...r}),this.statePartMap[t]=o,o}};var Co={};me(Co,{Smarturl:()=>Vx});var Vx=class e{static createFromUrl(t,r){let n=new URL(t),o={},i=[];n.search&&n.search.replace("?","").split("&").map(c=>{i.push({key:c.split("=")[0],value:c.split("=")[1]})});for(let c of i)o[c.key]=c.value;if(r?.searchParams)for(let c of Object.keys(r.searchParams))o[c]=r.searchParams[c];let s=n.pathname||"";if(Object.keys(o).length>0){s+="?";let c=!0;for(let u of Object.keys(o))c?c=!1:s+="&",s+=`${u}=${o[u]}`}let a={...n,href:n.href,origin:n.origin,protocol:n.protocol,username:n.username,password:n.password,host:n.host,hostname:n.hostname,port:n.port,path:s,pathname:n.pathname,search:n.search,searchParams:o,hash:n.hash};!a.port&&a.protocol==="https:"&&(a.port="443"),!a.port&&a.protocol==="http:"&&(a.port="80");let l=new e;return Object.assign(l,a),l}static createFromParsedUrl(t){let r=new e;return Object.assign(r,t),r}constructor(){this.searchParams={}}clone(){let t=new e;return Object.assign(t,this),t.searchParams={...this.searchParams},t}set(t,r){return this[t]=r,this}toString(){let t="";return this.username&&!this.password&&(t=`${this.username}@`),this.username&&this.password&&(t=`${this.username}:${this.password}@`),`${this.protocol}//${t}${this.hostname}:${this.port}${this.path}`}};var l0={};me(l0,{JsonLdTag:()=>Ni,MetaTag:()=>Ar,OpengraphTag:()=>er,Title:()=>a0,WebSetup:()=>Pl});var Gx={};me(Gx,{Timeout:()=>rf,delayFor:()=>qM,delayForRandom:()=>SU});var Li={};me(Li,{CumulativeDeferred:()=>tf,Deferred:()=>ef,cumulativeDefer:()=>gU,defer:()=>Oi,getFirstTrueOrFalse:()=>wU,map:()=>bU,rejectedPromise:()=>yU,resolvedPromise:()=>xU,timeoutAndContinue:()=>vU,timeoutWrap:()=>jM});var ef=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"})}},Oi=()=>new ef;var tf=class{constructor(){this.accumulatedPromises=[],this.deferred=Oi(),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)}},gU=()=>new tf;var xU=e=>Promise.resolve(e),yU=e=>Promise.reject(e),bU=async(e,t)=>{let r=[],n=[];for(let o of e){let i=t(o);r.push(i),i.then(s=>{n.push(s)})}return await Promise.all(r),n},jM=async(e,t,r=!0)=>new Promise((n,o)=>{setTimeout(()=>{r?o(new Error("timeout")):n(null)},t),e.then(n,o)}),vU=async(e,t=6e4)=>jM(e,t,!1),wU=async e=>{let t=Oi();for(let r of e)r.then(n=>{n===!0&&t.resolve(!0)});return Promise.all(e).then(()=>{t.resolve(!1)}),t.promise};var qM=async(e,t,r=!1)=>(await new rf(e,null,r).promise,t),SU=async(e,t,r,n=!1)=>(await qM(Math.random()*(t-e)+e,null,n),r),rf=class{constructor(t,r,n=!1){this._cancelled=!1,this.timeoutInMillis=t,this._deferred=Oi(),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 s0={};me(s0,{business:()=>nf,code:()=>Zx,container:()=>Kx,content:()=>e0,database:()=>Jx,finance:()=>Qx,general:()=>t0,network:()=>of,saas:()=>n0,storage:()=>o0,website:()=>i0});var nf={};me(nf,{IJob:()=>Xx});var Qx={};var Xx=class{};var Jx={};var Zx={};var Kx={};var e0={};var t0={};var of={};me(of,{ICnameDescriptor:()=>r0});var r0=class{};var n0={};var o0={};var i0={};var Eo=class{appendToDom(){!this.elementRef.parentElement&&!this.elementRef.parentNode&&document.getElementsByTagName("head")[0].appendChild(this.elementRef)}removeFromDom(){this.elementRef.parentElement?this.elementRef.parentElement.removeChild(this.elementRef):this.elementRef.parentNode&&this.elementRef.parentNode.removeChild(this.elementRef)}};var Ni=class e extends Eo{static createCompanyJsonLd(t){let r={"@context":"https://schema.org","@type":"Corporation",name:t.name,alternateName:t.name.replace(" GmbH",""),url:t.contact.website,logo:t.contact.logoUrl,contactPoint:{"@type":"ContactPoint",telephone:t.contact.phone,contactType:"customer service",areaServed:"DE",availableLanguage:["en","German"]},sameAs:[]};return t.contact.facebookUrl&&r.sameAs.push(t.contact.facebookUrl),t.contact.twitterUrl&&r.sameAs.push(t.contact.twitterUrl),new e(r)}static createNewsArticleJsonLd(t){let r={"@context":"https://schema.org","@type":"NewsArticle",mainEntityOfPage:{"@type":"WebPage","@id":window.location.href},headline:"Article headline",image:[t.featuredImageUrl],datePublished:new Date(t.timestamp).toISOString(),dateModified:new Date(t.timestamp).toISOString(),author:{"@type":"Person",name:`${t.author.firstName} ${t.author.surName}`},publisher:{"@type":"Organization",name:t.author.surName,logo:{"@type":"ImageObject",url:t.author.surName}},description:t.author.firstName};return new e(r)}static createProductJsonLd(t,r){let n={"@context":"https://schema.org","@type":"SoftwareApplication",name:t.name,description:t.description,operatingSystem:t.os,applicationCategory:t.category,offers:{"@type":"Offer",name:"User-based Plan",priceSpecification:{"@type":"PropertyValueSpecification",valueName:"Number of Users",valueRequired:!0,price:"4.99",priceCurrency:"EUR"}},publisher:this.createCompanyJsonLd(r).elementRef.textContent,screenshot:"https://www.social.io/screenshot.png",url:"https://www.social.io/"};return new e(n)}constructor(t){super();let r=document.createElement("script");r.type="application/ld+json",r.text=JSON.stringify(t),this.elementRef=r}};var er=class e extends Eo{static createNewsArticleOgTags(t){let r=[];return r.push(new e("og:url",t.url)),r.push(new e("og:title",t.title)),r.push(new e("og:description",t.content)),r.push(new e("og:image",t.featuredImageUrl)),r}static createProductOgTags(t){let r=[];return r.push(new e("og:url",globalThis.location.href)),r.push(new e("og:title",`${t.name} - ${t.slogan}`)),r.push(new e("og:site_name",t.name)),r.push(new e("og:description",t.description)),r.push(new e("og:image",t.logoLink)),r}constructor(t,r){super();let n=document.createElement("meta");n.setAttribute("property",t),n.content=r,this.elementRef=n}};var ra=class{set title(t){this.titleStore=t,this.state==="enabled"&&(document.title=this.titleStore)}get title(){return this.titleStore}constructor(t,r){this.tags=[],this.state="disabled",this.tagManagerRef=t}addTag(t){if(t instanceof Array)for(let r of t)this.addTag(r);else this.tags.push(t),this.state==="enabled"&&t.appendToDom()}async addCompanyInfo(t){this.addTag(Ni.createCompanyJsonLd(t)),this.addTag(new er("og:type","business.business")),this.addTag(new er("og:title",t.name)),this.addTag(new er("og:url",t.contact.website)),this.addTag(new er("og:image",t.contact.logoUrl)),this.addTag(new er("business:contact_data:street_address",`${t.contact.address.streetName} ${t.contact.address.houseNumber}`)),this.addTag(new er("business:contact_data:locality",t.contact.address.postalCode)),this.addTag(new er("business:contact_data:region",t.contact.address.city)),this.addTag(new er("business:contact_data:postal_code",t.contact.address.postalCode)),this.addTag(new er("business:contact_data:country_name",t.contact.address.country))}addNewsArticleInfo(t){this.addTag(Ni.createNewsArticleJsonLd(t)),this.addTag(er.createNewsArticleOgTags(t))}addProductInfo(t,r){this.addTag(Ni.createProductJsonLd(t,r)),this.addTag(er.createProductOgTags(t))}async enable(){this.title&&(document.title=this.title);for(let t of this.tags)t.appendToDom();this.state="enabled"}async disable(){for(let t of this.tags)t.removeFromDom();this.state="disabled"}};var Ar=class extends Eo{constructor(t,r){super();let n=document.createElement("meta");n.name=t,n.content=r,this.elementRef=n}};var sf=class{constructor(){this.globalLevel=new ra(this,"global"),this.baseLevel=new ra(this,"base")}async setup(t){switch(this.globalLevel.addTag(new Ar("google","notranslate")),this.globalLevel.addTag(new Ar("revisit-after","1 days")),t.twitterHandle&&(this.globalLevel.addTag(new Ar("twitter:card","summary_large_image")),this.globalLevel.addTag(new Ar("twitter:site",t.twitterHandle)),this.globalLevel.addTag(new Ar("twitter:creator",t.twitterHandle))),this.baseLevel.title=t.title,t.description&&this.baseLevel.addTag(new Ar("description",t.description)),t.canonicalDomain&&this.baseLevel.addTag(new Ar("canonical",t.canonicalDomain)),!0){case(t.ldCompany&&!t.ldProduct):this.baseLevel.addCompanyInfo(t.ldCompany);break;case!!t.ldProduct:this.baseLevel.addProductInfo(t.ldProduct,t.ldCompany);break}await this.globalLevel.enable(),this.activeLevel=this.baseLevel,await this.activeLevel.enable()}async setSubPageLevel(t){let r=new ra(this,"subpage");return r.title=t.title,t.description&&r.addTag(new Ar("description",t.description)),await this.activeLevel.disable(),this.activeLevel=r,await this.activeLevel.enable(),r}async revertToBaseLevel(){this.activeLevel!==this.baseLevel&&(await this.activeLevel.disable(),this.activeLevel=this.baseLevel,await this.activeLevel.enable())}};var Pl=class{constructor(t){this.tagManager=new sf,this.readyDeferred=Li.defer(),this.readyForSmartssrDeferred=Li.defer(),this.readyPromise=this.readyDeferred.promise,this.readyForSmartssrPromise=this.readyForSmartssrDeferred.promise,this.options=t,this.setup().then(()=>{this.readyDeferred.resolve(),this.options.smartssrWaitForReadySignal||this.readyForSmartssrDeferred.resolve()})}async setup(t){t&&(this.options=t),await this.tagManager.setup(this.options.metaObject)}revertToBaseLevel(){this.tagManager.revertToBaseLevel()}async setSubLevel(t){return await this.tagManager.setSubPageLevel(t)}flashTitle(t){}informReadyForSmartssr(){this.options.smartssrWaitForReadySignal||console.error("You have not indicated that you inform smartssr by a dedicated signal! Please consider doing so!"),this.readyForSmartssrDeferred.resolve()}};var a0=class{};var YM=Qt(Mm(),1);var na=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 TU=(e="uni")=>`${e}xxxxxxxxxxx`.replace(/[xy]/g,t=>{let r=Math.random()*16|0;return(t==="x"?r:r&3|8).toString(16)}),af=class e{constructor(){this.fastMap=new na,this.eventSubject=new Ee.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=TU("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 lf=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 $n.SmartMatch(t),n=!1;for(let o of this._stringArray)r.match(o)&&(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=fe.defer();return this._triggerUntilTrueFunctionArray.push(()=>{let o=t(this.getStringArray());return o===!0&&(r&&r(),n.resolve()),o}),this.notifyTrigger(),n.promise}notifyTrigger(){let t=this._triggerUntilTrueFunctionArray.filter(r=>!r());this._triggerUntilTrueFunctionArray=t}};var DU="1.3.16";function VM(e,t,r){return Math.max(e,Math.min(t,r))}function CU(e,t,r){return(1-r)*e+r*t}function EU(e,t,r,n){return CU(e,t,1-Math.exp(-r*n))}function MU(e,t){return(e%t+t)%t}var IU=class{isRunning=!1;value=0;from=0;to=0;currentTime=0;lerp;duration;easing;onUpdate;advance(e){if(!this.isRunning)return;let t=!1;if(this.duration&&this.easing){this.currentTime+=e;let r=VM(0,this.currentTime/this.duration,1);t=r>=1;let n=t?1:this.easing(r);this.value=this.from+(this.to-this.from)*n}else this.lerp?(this.value=EU(this.value,this.to,this.lerp*60,e),Math.round(this.value)===this.to&&(this.value=this.to,t=!0)):(this.value=this.to,t=!0);t&&this.stop(),this.onUpdate?.(this.value,t)}stop(){this.isRunning=!1}fromTo(e,t,{lerp:r,duration:n,easing:o,onStart:i,onUpdate:s}){this.from=this.value=e,this.to=t,this.lerp=r,this.duration=n,this.easing=o,this.currentTime=0,this.isRunning=!0,i?.(),this.onUpdate=s}};function $U(e,t){let r;return function(...n){let o=this;clearTimeout(r),r=setTimeout(()=>{r=void 0,e.apply(o,n)},t)}}var AU=class{constructor(e,t,{autoResize:r=!0,debounce:n=250}={}){this.wrapper=e,this.content=t,r&&(this.debouncedResize=$U(this.resize,n),this.wrapper instanceof Window?window.addEventListener("resize",this.debouncedResize,!1):(this.wrapperResizeObserver=new ResizeObserver(this.debouncedResize),this.wrapperResizeObserver.observe(this.wrapper)),this.contentResizeObserver=new ResizeObserver(this.debouncedResize),this.contentResizeObserver.observe(this.content)),this.resize()}width=0;height=0;scrollHeight=0;scrollWidth=0;debouncedResize;wrapperResizeObserver;contentResizeObserver;destroy(){this.wrapperResizeObserver?.disconnect(),this.contentResizeObserver?.disconnect(),this.wrapper===window&&this.debouncedResize&&window.removeEventListener("resize",this.debouncedResize,!1)}resize=()=>{this.onWrapperResize(),this.onContentResize()};onWrapperResize=()=>{this.wrapper instanceof Window?(this.width=window.innerWidth,this.height=window.innerHeight):(this.width=this.wrapper.clientWidth,this.height=this.wrapper.clientHeight)};onContentResize=()=>{this.wrapper instanceof Window?(this.scrollHeight=this.content.scrollHeight,this.scrollWidth=this.content.scrollWidth):(this.scrollHeight=this.wrapper.scrollHeight,this.scrollWidth=this.wrapper.scrollWidth)};get limit(){return{x:this.scrollWidth-this.width,y:this.scrollHeight-this.height}}},GM=class{events={};emit(e,...t){let r=this.events[e]||[];for(let n=0,o=r.length;n<o;n++)r[n]?.(...t)}on(e,t){return this.events[e]?.push(t)||(this.events[e]=[t]),()=>{this.events[e]=this.events[e]?.filter(r=>t!==r)}}off(e,t){this.events[e]=this.events[e]?.filter(r=>t!==r)}destroy(){this.events={}}},QM=100/6,Mo={passive:!1},_U=class{constructor(e,t={wheelMultiplier:1,touchMultiplier:1}){this.element=e,this.options=t,window.addEventListener("resize",this.onWindowResize,!1),this.onWindowResize(),this.element.addEventListener("wheel",this.onWheel,Mo),this.element.addEventListener("touchstart",this.onTouchStart,Mo),this.element.addEventListener("touchmove",this.onTouchMove,Mo),this.element.addEventListener("touchend",this.onTouchEnd,Mo)}touchStart={x:0,y:0};lastDelta={x:0,y:0};window={width:0,height:0};emitter=new GM;on(e,t){return this.emitter.on(e,t)}destroy(){this.emitter.destroy(),window.removeEventListener("resize",this.onWindowResize,!1),this.element.removeEventListener("wheel",this.onWheel,Mo),this.element.removeEventListener("touchstart",this.onTouchStart,Mo),this.element.removeEventListener("touchmove",this.onTouchMove,Mo),this.element.removeEventListener("touchend",this.onTouchEnd,Mo)}onTouchStart=e=>{let{clientX:t,clientY:r}=e.targetTouches?e.targetTouches[0]:e;this.touchStart.x=t,this.touchStart.y=r,this.lastDelta={x:0,y:0},this.emitter.emit("scroll",{deltaX:0,deltaY:0,event:e})};onTouchMove=e=>{let{clientX:t,clientY:r}=e.targetTouches?e.targetTouches[0]:e,n=-(t-this.touchStart.x)*this.options.touchMultiplier,o=-(r-this.touchStart.y)*this.options.touchMultiplier;this.touchStart.x=t,this.touchStart.y=r,this.lastDelta={x:n,y:o},this.emitter.emit("scroll",{deltaX:n,deltaY:o,event:e})};onTouchEnd=e=>{this.emitter.emit("scroll",{deltaX:this.lastDelta.x,deltaY:this.lastDelta.y,event:e})};onWheel=e=>{let{deltaX:t,deltaY:r,deltaMode:n}=e,o=n===1?QM:n===2?this.window.width:1,i=n===1?QM:n===2?this.window.height:1;t*=o,r*=i,t*=this.options.wheelMultiplier,r*=this.options.wheelMultiplier,this.emitter.emit("scroll",{deltaX:t,deltaY:r,event:e})};onWindowResize=()=>{this.window={width:window.innerWidth,height:window.innerHeight}}},XM=e=>Math.min(1,1.001-Math.pow(2,-10*e)),Fl=class{_isScrolling=!1;_isStopped=!1;_isLocked=!1;_preventNextNativeScrollEvent=!1;_resetVelocityTimeout=null;__rafID=null;isTouching;time=0;userData={};lastVelocity=0;velocity=0;direction=0;options;targetScroll;animatedScroll;animate=new IU;emitter=new GM;dimensions;virtualScroll;constructor({wrapper:e=window,content:t=document.documentElement,eventsTarget:r=e,smoothWheel:n=!0,syncTouch:o=!1,syncTouchLerp:i=.075,touchInertiaExponent:s=1.7,duration:a,easing:l,lerp:c=.1,infinite:u=!1,orientation:d="vertical",gestureOrientation:p=d==="horizontal"?"both":"vertical",touchMultiplier:f=1,wheelMultiplier:m=1,autoResize:g=!0,prevent:x,virtualScroll:y,overscroll:T=!0,autoRaf:D=!1,anchors:H=!1,autoToggle:j=!1,allowNestedScroll:M=!1,__experimental__naiveDimensions:U=!1}={}){window.lenisVersion=DU,(!e||e===document.documentElement)&&(e=window),typeof a=="number"&&typeof l!="function"?l=XM:typeof l=="function"&&typeof a!="number"&&(a=1),this.options={wrapper:e,content:t,eventsTarget:r,smoothWheel:n,syncTouch:o,syncTouchLerp:i,touchInertiaExponent:s,duration:a,easing:l,lerp:c,infinite:u,gestureOrientation:p,orientation:d,touchMultiplier:f,wheelMultiplier:m,autoResize:g,prevent:x,virtualScroll:y,overscroll:T,autoRaf:D,anchors:H,autoToggle:j,allowNestedScroll:M,__experimental__naiveDimensions:U},this.dimensions=new AU(e,t,{autoResize:g}),this.updateClassName(),this.targetScroll=this.animatedScroll=this.actualScroll,this.options.wrapper.addEventListener("scroll",this.onNativeScroll,!1),this.options.wrapper.addEventListener("scrollend",this.onScrollEnd,{capture:!0}),this.options.anchors&&this.options.wrapper===window&&this.options.wrapper.addEventListener("click",this.onClick,!1),this.options.wrapper.addEventListener("pointerdown",this.onPointerDown,!1),this.virtualScroll=new _U(r,{touchMultiplier:f,wheelMultiplier:m}),this.virtualScroll.on("scroll",this.onVirtualScroll),this.options.autoToggle&&(this.checkOverflow(),this.rootElement.addEventListener("transitionend",this.onTransitionEnd,{passive:!0})),this.options.autoRaf&&(this.__rafID=requestAnimationFrame(this.raf))}destroy(){this.emitter.destroy(),this.options.wrapper.removeEventListener("scroll",this.onNativeScroll,!1),this.options.wrapper.removeEventListener("scrollend",this.onScrollEnd,{capture:!0}),this.options.wrapper.removeEventListener("pointerdown",this.onPointerDown,!1),this.options.anchors&&this.options.wrapper===window&&this.options.wrapper.removeEventListener("click",this.onClick,!1),this.virtualScroll.destroy(),this.dimensions.destroy(),this.cleanUpClassName(),this.__rafID&&cancelAnimationFrame(this.__rafID)}on(e,t){return this.emitter.on(e,t)}off(e,t){return this.emitter.off(e,t)}onScrollEnd=e=>{e instanceof CustomEvent||(this.isScrolling==="smooth"||this.isScrolling===!1)&&e.stopPropagation()};dispatchScrollendEvent=()=>{this.options.wrapper.dispatchEvent(new CustomEvent("scrollend",{bubbles:this.options.wrapper===window,detail:{lenisScrollEnd:!0}}))};get overflow(){let e=this.isHorizontal?"overflow-x":"overflow-y";return getComputedStyle(this.rootElement)[e]}checkOverflow(){["hidden","clip"].includes(this.overflow)?this.internalStop():this.internalStart()}onTransitionEnd=e=>{e.propertyName.includes("overflow")&&this.checkOverflow()};setScroll(e){this.isHorizontal?this.options.wrapper.scrollTo({left:e,behavior:"instant"}):this.options.wrapper.scrollTo({top:e,behavior:"instant"})}onClick=e=>{let r=e.composedPath().find(n=>n instanceof HTMLAnchorElement&&n.getAttribute("href")?.includes("#"));if(r){let n=r.getAttribute("href");if(n){let o=typeof this.options.anchors=="object"&&this.options.anchors?this.options.anchors:void 0,i=`#${n.split("#")[1]}`;this.scrollTo(i,o)}}};onPointerDown=e=>{e.button===1&&this.reset()};onVirtualScroll=e=>{if(typeof this.options.virtualScroll=="function"&&this.options.virtualScroll(e)===!1)return;let{deltaX:t,deltaY:r,event:n}=e;if(this.emitter.emit("virtual-scroll",{deltaX:t,deltaY:r,event:n}),n.ctrlKey||n.lenisStopPropagation)return;let o=n.type.includes("touch"),i=n.type.includes("wheel");this.isTouching=n.type==="touchstart"||n.type==="touchmove";let s=t===0&&r===0;if(this.options.syncTouch&&o&&n.type==="touchstart"&&s&&!this.isStopped&&!this.isLocked){this.reset();return}let l=this.options.gestureOrientation==="vertical"&&r===0||this.options.gestureOrientation==="horizontal"&&t===0;if(s||l)return;let c=n.composedPath();c=c.slice(0,c.indexOf(this.rootElement));let u=this.options.prevent;if(c.find(x=>x instanceof HTMLElement&&(typeof u=="function"&&u?.(x)||x.hasAttribute?.("data-lenis-prevent")||o&&x.hasAttribute?.("data-lenis-prevent-touch")||i&&x.hasAttribute?.("data-lenis-prevent-wheel")||this.options.allowNestedScroll&&this.checkNestedScroll(x,{deltaX:t,deltaY:r}))))return;if(this.isStopped||this.isLocked){n.cancelable&&n.preventDefault();return}if(!(this.options.syncTouch&&o||this.options.smoothWheel&&i)){this.isScrolling="native",this.animate.stop(),n.lenisStopPropagation=!0;return}let p=r;this.options.gestureOrientation==="both"?p=Math.abs(r)>Math.abs(t)?r:t:this.options.gestureOrientation==="horizontal"&&(p=t),(!this.options.overscroll||this.options.infinite||this.options.wrapper!==window&&this.limit>0&&(this.animatedScroll>0&&this.animatedScroll<this.limit||this.animatedScroll===0&&r>0||this.animatedScroll===this.limit&&r<0))&&(n.lenisStopPropagation=!0),n.cancelable&&n.preventDefault();let f=o&&this.options.syncTouch,g=o&&n.type==="touchend";g&&(p=Math.sign(this.velocity)*Math.pow(Math.abs(this.velocity),this.options.touchInertiaExponent)),this.scrollTo(this.targetScroll+p,{programmatic:!1,...f?{lerp:g?this.options.syncTouchLerp:1}:{lerp:this.options.lerp,duration:this.options.duration,easing:this.options.easing}})};resize(){this.dimensions.resize(),this.animatedScroll=this.targetScroll=this.actualScroll,this.emit()}emit(){this.emitter.emit("scroll",this)}onNativeScroll=()=>{if(this._resetVelocityTimeout!==null&&(clearTimeout(this._resetVelocityTimeout),this._resetVelocityTimeout=null),this._preventNextNativeScrollEvent){this._preventNextNativeScrollEvent=!1;return}if(this.isScrolling===!1||this.isScrolling==="native"){let e=this.animatedScroll;this.animatedScroll=this.targetScroll=this.actualScroll,this.lastVelocity=this.velocity,this.velocity=this.animatedScroll-e,this.direction=Math.sign(this.animatedScroll-e),this.isStopped||(this.isScrolling="native"),this.emit(),this.velocity!==0&&(this._resetVelocityTimeout=setTimeout(()=>{this.lastVelocity=this.velocity,this.velocity=0,this.isScrolling=!1,this.emit()},400))}};reset(){this.isLocked=!1,this.isScrolling=!1,this.animatedScroll=this.targetScroll=this.actualScroll,this.lastVelocity=this.velocity=0,this.animate.stop()}start(){if(this.isStopped){if(this.options.autoToggle){this.rootElement.style.removeProperty("overflow");return}this.internalStart()}}internalStart(){this.isStopped&&(this.reset(),this.isStopped=!1,this.emit())}stop(){if(!this.isStopped){if(this.options.autoToggle){this.rootElement.style.setProperty("overflow","clip");return}this.internalStop()}}internalStop(){this.isStopped||(this.reset(),this.isStopped=!0,this.emit())}raf=e=>{let t=e-(this.time||e);this.time=e,this.animate.advance(t*.001),this.options.autoRaf&&(this.__rafID=requestAnimationFrame(this.raf))};scrollTo(e,{offset:t=0,immediate:r=!1,lock:n=!1,duration:o=this.options.duration,easing:i=this.options.easing,lerp:s=this.options.lerp,onStart:a,onComplete:l,force:c=!1,programmatic:u=!0,userData:d}={}){if(!((this.isStopped||this.isLocked)&&!c)){if(typeof e=="string"&&["top","left","start","#"].includes(e))e=0;else if(typeof e=="string"&&["bottom","right","end"].includes(e))e=this.limit;else{let p;if(typeof e=="string"?(p=document.querySelector(e),p||(e==="#top"?e=0:console.warn("Lenis: Target not found",e))):e instanceof HTMLElement&&e?.nodeType&&(p=e),p){if(this.options.wrapper!==window){let m=this.rootElement.getBoundingClientRect();t-=this.isHorizontal?m.left:m.top}let f=p.getBoundingClientRect();e=(this.isHorizontal?f.left:f.top)+this.animatedScroll}}if(typeof e=="number"){if(e+=t,e=Math.round(e),this.options.infinite){if(u){this.targetScroll=this.animatedScroll=this.scroll;let p=e-this.animatedScroll;p>this.limit/2?e=e-this.limit:p<-this.limit/2&&(e=e+this.limit)}}else e=VM(0,e,this.limit);if(e===this.targetScroll){a?.(this),l?.(this);return}if(this.userData=d??{},r){this.animatedScroll=this.targetScroll=e,this.setScroll(this.scroll),this.reset(),this.preventNextNativeScrollEvent(),this.emit(),l?.(this),this.userData={},requestAnimationFrame(()=>{this.dispatchScrollendEvent()});return}u||(this.targetScroll=e),typeof o=="number"&&typeof i!="function"?i=XM:typeof i=="function"&&typeof o!="number"&&(o=1),this.animate.fromTo(this.animatedScroll,e,{duration:o,easing:i,lerp:s,onStart:()=>{n&&(this.isLocked=!0),this.isScrolling="smooth",a?.(this)},onUpdate:(p,f)=>{this.isScrolling="smooth",this.lastVelocity=this.velocity,this.velocity=p-this.animatedScroll,this.direction=Math.sign(this.velocity),this.animatedScroll=p,this.setScroll(this.scroll),u&&(this.targetScroll=p),f||this.emit(),f&&(this.reset(),this.emit(),l?.(this),this.userData={},requestAnimationFrame(()=>{this.dispatchScrollendEvent()}),this.preventNextNativeScrollEvent())}})}}}preventNextNativeScrollEvent(){this._preventNextNativeScrollEvent=!0,requestAnimationFrame(()=>{this._preventNextNativeScrollEvent=!1})}checkNestedScroll(e,{deltaX:t,deltaY:r}){let n=Date.now(),o=e._lenis??={},i,s,a,l,c,u,d,p,f=this.options.gestureOrientation;if(n-(o.time??0)>2e3){o.time=Date.now();let j=window.getComputedStyle(e);o.computedStyle=j;let M=j.overflowX,U=j.overflowY;if(i=["auto","overlay","scroll"].includes(M),s=["auto","overlay","scroll"].includes(U),o.hasOverflowX=i,o.hasOverflowY=s,!i&&!s||f==="vertical"&&!s||f==="horizontal"&&!i)return!1;c=e.scrollWidth,u=e.scrollHeight,d=e.clientWidth,p=e.clientHeight,a=c>d,l=u>p,o.isScrollableX=a,o.isScrollableY=l,o.scrollWidth=c,o.scrollHeight=u,o.clientWidth=d,o.clientHeight=p}else a=o.isScrollableX,l=o.isScrollableY,i=o.hasOverflowX,s=o.hasOverflowY,c=o.scrollWidth,u=o.scrollHeight,d=o.clientWidth,p=o.clientHeight;if(!i&&!s||!a&&!l||f==="vertical"&&(!s||!l)||f==="horizontal"&&(!i||!a))return!1;let m;if(f==="horizontal")m="x";else if(f==="vertical")m="y";else{let j=t!==0,M=r!==0;j&&i&&a&&(m="x"),M&&s&&l&&(m="y")}if(!m)return!1;let g,x,y,T,D;if(m==="x")g=e.scrollLeft,x=c-d,y=t,T=i,D=a;else if(m==="y")g=e.scrollTop,x=u-p,y=r,T=s,D=l;else return!1;return(y>0?g<x:g>0)&&T&&D}get rootElement(){return this.options.wrapper===window?document.documentElement:this.options.wrapper}get limit(){return this.options.__experimental__naiveDimensions?this.isHorizontal?this.rootElement.scrollWidth-this.rootElement.clientWidth:this.rootElement.scrollHeight-this.rootElement.clientHeight:this.dimensions.limit[this.isHorizontal?"x":"y"]}get isHorizontal(){return this.options.orientation==="horizontal"}get actualScroll(){let e=this.options.wrapper;return this.isHorizontal?e.scrollX??e.scrollLeft:e.scrollY??e.scrollTop}get scroll(){return this.options.infinite?MU(this.animatedScroll,this.limit):this.animatedScroll}get progress(){return this.limit===0?1:this.scroll/this.limit}get isScrolling(){return this._isScrolling}set isScrolling(e){this._isScrolling!==e&&(this._isScrolling=e,this.updateClassName())}get isStopped(){return this._isStopped}set isStopped(e){this._isStopped!==e&&(this._isStopped=e,this.updateClassName())}get isLocked(){return this._isLocked}set isLocked(e){this._isLocked!==e&&(this._isLocked=e,this.updateClassName())}get isSmooth(){return this.isScrolling==="smooth"}get className(){let e="lenis";return this.options.autoToggle&&(e+=" lenis-autoToggle"),this.isStopped&&(e+=" lenis-stopped"),this.isLocked&&(e+=" lenis-locked"),this.isScrolling&&(e+=" lenis-scrolling"),this.isScrolling==="smooth"&&(e+=" lenis-smooth"),e}updateClassName(){this.cleanUpClassName(),this.rootElement.className=`${this.rootElement.className} ${this.className}`.trim()}cleanUpClassName(){this.rootElement.className=this.rootElement.className.replace(/lenis(-\w+)?/g,"").trim()}};var cf=Qt(d0(),1),Rl={ObjectMap:af,Stringmap:lf,FastMap:na};var wn={};me(wn,{cssForDesktop:()=>OU,cssForNotebook:()=>LU,cssForPhablet:()=>PU,cssForPhone:()=>FU,cssForTablet:()=>NU,desktop:()=>p0,notebook:()=>f0,phablet:()=>h0,phone:()=>g0,tablet:()=>m0});var p0=1600,f0=1240,m0=1024,h0=600,g0=400,OU=e=>h(`
|
|
177
|
-
@container wccToolsViewport (min-width: ${
|
|
176
|
+
`}},ea.tableSection={filter:["thead","tbody","tfoot"],replacement:function(e){return e}};function Ax(e){var t=e.parentNode;return t.nodeName==="THEAD"||t.firstChild===e&&(t.nodeName==="TABLE"||WH(t))&&YH.call(e.childNodes,function(r){return r.nodeName==="TH"})}function WH(e){var t=e.previousSibling;return e.nodeName==="TBODY"&&(!t||t.nodeName==="THEAD"&&/^\s*$/i.test(t.textContent))}function AM(e,t){var r=qH.call(t.parentNode.childNodes,t),n=" ";return r===0&&(n="| "),n+e+" |"}function Lx(e){e.keep(function(r){return r.nodeName==="TABLE"&&!Ax(r.rows[0])});for(var t in ea)e.addRule(t,ea[t])}function Nx(e){e.addRule("taskListItems",{filter:function(t){return t.type==="checkbox"&&t.parentNode.nodeName==="LI"},replacement:function(t,r){return(r.checked?"[x]":"[ ]")+" "}})}function _M(e){e.use([_x,Ox,Lx,Nx])}var Px=Qt(cD(),1);var Xp=class e{static async createFromMarkdownString(t){let r=new e;return await r.updateFromMarkdownString(t),r}async updateFromMarkdownString(t){let r,n=await dl().use(Ws).use(Ys).use(Gs,["yaml","toml"]).use(Ks).use(Zs).use(()=>o=>{console.dir(o);let i=o.children.find(s=>s.type==="yaml");i&&(r=i.value)}).process(t);this.html=n.toString(),r?this.frontmatterData=await Px.yamlStringToObject(r):this.frontmatterData={}}};var Fx=class e{static async easyMarkdownToHtml(t){return(await new e().getMdParsedResultFromMarkdown(t)).html}constructor(){}async getMdParsedResultFromMarkdown(t){return await Xp.createFromMarkdownString(t)}htmlToMarkdown(t){let r=new Qp({headingStyle:"atx",codeBlockStyle:"fenced"});return r.use(_l.gfm),r.turndown(t)}};var Do={};he(Do,{SmartRouter:()=>jx});var Ux=Qt(BM(),1);var Kp=class{constructor(){}getAllAsObject(){let t=new URLSearchParams(window.location.search);return Object.fromEntries(t.entries())}setQueryParam(t,r,n="replace"){var o=new URLSearchParams(window.location.search);o.set(t,r),n==="push"?history.pushState(null,null,"?"+o.toString()):history.replaceState(null,null,"?"+o.toString())}deleteQueryParam(t,r="replace"){var n=new URLSearchParams(window.location.search);n.delete(t),r==="push"?history.pushState(null,null,"?"+n.toString()):history.replaceState(null,null,"?"+n.toString())}getQueryParam(t){return this.getAllAsObject()[t]}};var O4e=e=>{console.log(`%c[Router]%c ${e}`,"color: rgb(255, 105, 100);","color: inherit")},jx=class e{constructor(t,r=""){this.options={debug:!1},this.queryParams=new Kp,this.routes=[],this.options={...this.options,...t},this.basePath=r,this.popstateListener=n=>{n.preventDefault(),this._handleRouteState()},window.addEventListener("popstate",this.popstateListener)}createSubRouter(t,r){let n=`${this.basePath}${t}`;return new e({...this.options,...r},n)}async pushUrl(t="/",r={}){let n=`${this.basePath}${t}`;n!==window.location.pathname?window.history.pushState(r,window.document.title,n):window.history.replaceState(r,window.document.title,n),await this._handleRouteState()}on(t,r){let n=`${this.basePath}${t}`,o={matchFunction:Ux.match(n),handler:r};return this.routes.push(o),()=>{this.routes.splice(this.routes.indexOf(o),1)}}async _handleRouteState(){let t=window.location.pathname,r=this.routes.filter(n=>!!n.matchFunction(t));for(let n of r){let o=n.matchFunction(t);n.handler({...o.valueOf(),queryParams:this.queryParams.getAllAsObject()})}}destroy(){window.removeEventListener("popstate",this.popstateListener),this.routes=[]}};var Co={};he(Co,{Smartstate:()=>Yx,StateAction:()=>Ll,StatePart:()=>Nl});var Ol={};he(Ol,{md5FromString:()=>fU,sha256FromBuffer:()=>cU,sha256FromFile:()=>pU,sha256FromStream:()=>dU,sha256FromString:()=>UM,sha256FromStringSync:()=>lU,sha265FromObject:()=>uU});var iU=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],sU=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225];function vn(e,t){return e>>>t|e<<32-t}function aU(e,t){let r=t[0],n=t[1],o=t[2],i=t[3],s=t[4],a=t[5],l=t[6],c=t[7];for(let u=0;u<64;u++){if(u>=16){let y=vn(e[u-15],7)^vn(e[u-15],18)^e[u-15]>>>3,T=vn(e[u-2],17)^vn(e[u-2],19)^e[u-2]>>>10;e[u]=e[u-16]+y+e[u-7]+T>>>0}let d=vn(s,6)^vn(s,11)^vn(s,25),p=s&a^~s&l,f=c+d+p+iU[u]+e[u]>>>0,m=vn(r,2)^vn(r,13)^vn(r,22),g=r&n^r&o^n&o,x=m+g>>>0;c=l,l=a,a=s,s=i+f>>>0,i=o,o=n,n=r,r=f+x>>>0}t[0]=t[0]+r>>>0,t[1]=t[1]+n>>>0,t[2]=t[2]+o>>>0,t[3]=t[3]+i>>>0,t[4]=t[4]+s>>>0,t[5]=t[5]+a>>>0,t[6]=t[6]+l>>>0,t[7]=t[7]+c>>>0}function qx(e){let t=[...sU],r=e.length,n=r*8,o=r%64<56?56-r%64:120-r%64,i=new Uint8Array(r+o+8);i.set(e),i[r]=128;let s=new DataView(i.buffer);s.setUint32(i.length-8,0,!1),s.setUint32(i.length-4,n>>>0,!1);for(let l=0;l<i.length;l+=64){let c=new Array(64);for(let u=0;u<16;u++)c[u]=s.getUint32(l+u*4,!1);aU(c,t)}let a="";for(let l=0;l<8;l++)a+=t[l].toString(16).padStart(8,"0");return a}var zM=e=>{let t=[],r=new DataView(e);for(let n=0;n<r.byteLength;n+=4){let i=r.getUint32(n).toString(16),s="00000000",a=(s+i).slice(-s.length);t.push(a)}return t.join("")},HM=()=>typeof crypto<"u"&&crypto.subtle!==void 0,UM=async e=>{let t=new TextEncoder().encode(e);if(HM()){let r=await crypto.subtle.digest("SHA-256",t);return zM(r)}else return qx(t)},lU=e=>{throw console.warn("sha256FromStringSync is not truly synchronous in browser environment"),new Error("sha256FromStringSync is not supported in browser environment. Use sha256FromString instead.")},cU=async e=>{if(HM()){let t;if(e instanceof Uint8Array){let o=e;t=o.buffer.slice(o.byteOffset,o.byteOffset+o.byteLength)}else t=e;let r=await crypto.subtle.digest("SHA-256",t);return zM(r)}else{let t=e instanceof Uint8Array?e:new Uint8Array(e);return qx(t)}},uU=async e=>{let t=Ze.stringify(e);return await UM(t)},dU=e=>{throw new Error("sha256FromStream is not supported in browser environment")},pU=async e=>{throw new Error("sha256FromFile is not supported in browser environment")},fU=async e=>{throw new Error("md5FromString is not supported in browser environment. Web Crypto API does not support MD5.")};var Ll=class{constructor(t,r){this.statePartRef=t,this.actionDef=r}trigger(t){return this.statePartRef.dispatchAction(this,t)}};var Nl=class{constructor(t,r){this.state=new Ee.rxjs.Subject,this.cumulativeDeferred=fe.cumulativeDefer(),this.webStore=null,this.name=t,r&&(this.webStoreOptions=r)}async init(){if(this.webStoreOptions){this.webStore=new qr.WebStore(this.webStoreOptions),await this.webStore.init();let t=await this.webStore.get(String(this.name));t&&this.validateState(t)&&(this.stateStore=t,await this.notifyChange())}}getState(){return this.stateStore}async setState(t){if(!this.validateState(t))throw new Error(`Invalid state structure for state part '${this.name}'`);return this.stateStore=t,await this.notifyChange(),this.webStore&&await this.webStore.set(String(this.name),t),this.stateStore}validateState(t){return t!=null}async notifyChange(){if(!this.stateStore)return;let r=await(async n=>await Ol.sha256FromString(Ze.stableOneWayStringify(n)))(this.stateStore);this.lastStateNotificationPayloadHash&&r===this.lastStateNotificationPayloadHash||(this.lastStateNotificationPayloadHash=r,this.state.next(this.stateStore))}notifyChangeCumulative(){setTimeout(async()=>{this.stateStore&&await this.notifyChange()},0)}select(t){return t||(t=n=>n),this.state.pipe(Ee.rxjs.ops.startWith(this.getState()),Ee.rxjs.ops.filter(n=>n!==void 0),Ee.rxjs.ops.map(n=>{try{return t(n)}catch{}}))}createAction(t){return new Ll(this,t)}async dispatchAction(t,r){await this.cumulativeDeferred.promise;let n=await t.actionDef(this,r);return await this.setState(n),this.getState()}async waitUntilPresent(t){let r=fe.defer(),o=this.select(t).subscribe(async s=>{s&&r.resolve(s)}),i=await r.promise;return o.unsubscribe(),i}async stateSetup(t){let r=t(this);this.cumulativeDeferred.addPromise(r),this.setState(await r)}};var Yx=class{constructor(){this.statePartMap={}}async getStatePart(t,r,n="soft"){let o=this.statePartMap[t];if(o)switch(n){case"mandatory":throw new Error(`State part '${t}' already exists, but initMode is 'mandatory'`);case"force":return this.createStatePart(t,r,n);default:return o}else{if(!r)throw new Error(`State part '${t}' does not exist and no initial state provided`);return this.createStatePart(t,r,n)}}async createStatePart(t,r,n="soft"){let o=new Nl(t,n==="persistent"?{dbName:"smartstate",storeName:t}:null);await o.init();let i=o.getState();return await o.setState({...i,...r}),this.statePartMap[t]=o,o}};var Eo={};he(Eo,{Smarturl:()=>Wx});var Wx=class e{static createFromUrl(t,r){let n=new URL(t),o={},i=[];n.search&&n.search.replace("?","").split("&").map(c=>{i.push({key:c.split("=")[0],value:c.split("=")[1]})});for(let c of i)o[c.key]=c.value;if(r?.searchParams)for(let c of Object.keys(r.searchParams))o[c]=r.searchParams[c];let s=n.pathname||"";if(Object.keys(o).length>0){s+="?";let c=!0;for(let u of Object.keys(o))c?c=!1:s+="&",s+=`${u}=${o[u]}`}let a={...n,href:n.href,origin:n.origin,protocol:n.protocol,username:n.username,password:n.password,host:n.host,hostname:n.hostname,port:n.port,path:s,pathname:n.pathname,search:n.search,searchParams:o,hash:n.hash};!a.port&&a.protocol==="https:"&&(a.port="443"),!a.port&&a.protocol==="http:"&&(a.port="80");let l=new e;return Object.assign(l,a),l}static createFromParsedUrl(t){let r=new e;return Object.assign(r,t),r}constructor(){this.searchParams={}}clone(){let t=new e;return Object.assign(t,this),t.searchParams={...this.searchParams},t}set(t,r){return this[t]=r,this}toString(){let t="";return this.username&&!this.password&&(t=`${this.username}@`),this.username&&this.password&&(t=`${this.username}:${this.password}@`),`${this.protocol}//${t}${this.hostname}:${this.port}${this.path}`}};var a0={};he(a0,{JsonLdTag:()=>Pi,MetaTag:()=>Ar,OpengraphTag:()=>er,Title:()=>s0,WebSetup:()=>Pl});var Vx={};he(Vx,{Timeout:()=>rf,delayFor:()=>qM,delayForRandom:()=>wU});var Ni={};he(Ni,{CumulativeDeferred:()=>tf,Deferred:()=>ef,cumulativeDefer:()=>hU,defer:()=>Li,getFirstTrueOrFalse:()=>vU,map:()=>yU,rejectedPromise:()=>xU,resolvedPromise:()=>gU,timeoutAndContinue:()=>bU,timeoutWrap:()=>jM});var ef=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"})}},Li=()=>new ef;var tf=class{constructor(){this.accumulatedPromises=[],this.deferred=Li(),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)}},hU=()=>new tf;var gU=e=>Promise.resolve(e),xU=e=>Promise.reject(e),yU=async(e,t)=>{let r=[],n=[];for(let o of e){let i=t(o);r.push(i),i.then(s=>{n.push(s)})}return await Promise.all(r),n},jM=async(e,t,r=!0)=>new Promise((n,o)=>{setTimeout(()=>{r?o(new Error("timeout")):n(null)},t),e.then(n,o)}),bU=async(e,t=6e4)=>jM(e,t,!1),vU=async e=>{let t=Li();for(let r of e)r.then(n=>{n===!0&&t.resolve(!0)});return Promise.all(e).then(()=>{t.resolve(!1)}),t.promise};var qM=async(e,t,r=!1)=>(await new rf(e,null,r).promise,t),wU=async(e,t,r,n=!1)=>(await qM(Math.random()*(t-e)+e,null,n),r),rf=class{constructor(t,r,n=!1){this._cancelled=!1,this.timeoutInMillis=t,this._deferred=Li(),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 i0={};he(i0,{business:()=>nf,code:()=>Jx,container:()=>Zx,content:()=>Kx,database:()=>Xx,finance:()=>Gx,general:()=>e0,network:()=>of,saas:()=>r0,storage:()=>n0,website:()=>o0});var nf={};he(nf,{IJob:()=>Qx});var Gx={};var Qx=class{};var Xx={};var Jx={};var Zx={};var Kx={};var e0={};var of={};he(of,{ICnameDescriptor:()=>t0});var t0=class{};var r0={};var n0={};var o0={};var Mo=class{appendToDom(){!this.elementRef.parentElement&&!this.elementRef.parentNode&&document.getElementsByTagName("head")[0].appendChild(this.elementRef)}removeFromDom(){this.elementRef.parentElement?this.elementRef.parentElement.removeChild(this.elementRef):this.elementRef.parentNode&&this.elementRef.parentNode.removeChild(this.elementRef)}};var Pi=class e extends Mo{static createCompanyJsonLd(t){let r={"@context":"https://schema.org","@type":"Corporation",name:t.name,alternateName:t.name.replace(" GmbH",""),url:t.contact.website,logo:t.contact.logoUrl,contactPoint:{"@type":"ContactPoint",telephone:t.contact.phone,contactType:"customer service",areaServed:"DE",availableLanguage:["en","German"]},sameAs:[]};return t.contact.facebookUrl&&r.sameAs.push(t.contact.facebookUrl),t.contact.twitterUrl&&r.sameAs.push(t.contact.twitterUrl),new e(r)}static createNewsArticleJsonLd(t){let r={"@context":"https://schema.org","@type":"NewsArticle",mainEntityOfPage:{"@type":"WebPage","@id":window.location.href},headline:"Article headline",image:[t.featuredImageUrl],datePublished:new Date(t.timestamp).toISOString(),dateModified:new Date(t.timestamp).toISOString(),author:{"@type":"Person",name:`${t.author.firstName} ${t.author.surName}`},publisher:{"@type":"Organization",name:t.author.surName,logo:{"@type":"ImageObject",url:t.author.surName}},description:t.author.firstName};return new e(r)}static createProductJsonLd(t,r){let n={"@context":"https://schema.org","@type":"SoftwareApplication",name:t.name,description:t.description,operatingSystem:t.os,applicationCategory:t.category,offers:{"@type":"Offer",name:"User-based Plan",priceSpecification:{"@type":"PropertyValueSpecification",valueName:"Number of Users",valueRequired:!0,price:"4.99",priceCurrency:"EUR"}},publisher:this.createCompanyJsonLd(r).elementRef.textContent,screenshot:"https://www.social.io/screenshot.png",url:"https://www.social.io/"};return new e(n)}constructor(t){super();let r=document.createElement("script");r.type="application/ld+json",r.text=JSON.stringify(t),this.elementRef=r}};var er=class e extends Mo{static createNewsArticleOgTags(t){let r=[];return r.push(new e("og:url",t.url)),r.push(new e("og:title",t.title)),r.push(new e("og:description",t.content)),r.push(new e("og:image",t.featuredImageUrl)),r}static createProductOgTags(t){let r=[];return r.push(new e("og:url",globalThis.location.href)),r.push(new e("og:title",`${t.name} - ${t.slogan}`)),r.push(new e("og:site_name",t.name)),r.push(new e("og:description",t.description)),r.push(new e("og:image",t.logoLink)),r}constructor(t,r){super();let n=document.createElement("meta");n.setAttribute("property",t),n.content=r,this.elementRef=n}};var ra=class{set title(t){this.titleStore=t,this.state==="enabled"&&(document.title=this.titleStore)}get title(){return this.titleStore}constructor(t,r){this.tags=[],this.state="disabled",this.tagManagerRef=t}addTag(t){if(t instanceof Array)for(let r of t)this.addTag(r);else this.tags.push(t),this.state==="enabled"&&t.appendToDom()}async addCompanyInfo(t){this.addTag(Pi.createCompanyJsonLd(t)),this.addTag(new er("og:type","business.business")),this.addTag(new er("og:title",t.name)),this.addTag(new er("og:url",t.contact.website)),this.addTag(new er("og:image",t.contact.logoUrl)),this.addTag(new er("business:contact_data:street_address",`${t.contact.address.streetName} ${t.contact.address.houseNumber}`)),this.addTag(new er("business:contact_data:locality",t.contact.address.postalCode)),this.addTag(new er("business:contact_data:region",t.contact.address.city)),this.addTag(new er("business:contact_data:postal_code",t.contact.address.postalCode)),this.addTag(new er("business:contact_data:country_name",t.contact.address.country))}addNewsArticleInfo(t){this.addTag(Pi.createNewsArticleJsonLd(t)),this.addTag(er.createNewsArticleOgTags(t))}addProductInfo(t,r){this.addTag(Pi.createProductJsonLd(t,r)),this.addTag(er.createProductOgTags(t))}async enable(){this.title&&(document.title=this.title);for(let t of this.tags)t.appendToDom();this.state="enabled"}async disable(){for(let t of this.tags)t.removeFromDom();this.state="disabled"}};var Ar=class extends Mo{constructor(t,r){super();let n=document.createElement("meta");n.name=t,n.content=r,this.elementRef=n}};var sf=class{constructor(){this.globalLevel=new ra(this,"global"),this.baseLevel=new ra(this,"base")}async setup(t){switch(this.globalLevel.addTag(new Ar("google","notranslate")),this.globalLevel.addTag(new Ar("revisit-after","1 days")),t.twitterHandle&&(this.globalLevel.addTag(new Ar("twitter:card","summary_large_image")),this.globalLevel.addTag(new Ar("twitter:site",t.twitterHandle)),this.globalLevel.addTag(new Ar("twitter:creator",t.twitterHandle))),this.baseLevel.title=t.title,t.description&&this.baseLevel.addTag(new Ar("description",t.description)),t.canonicalDomain&&this.baseLevel.addTag(new Ar("canonical",t.canonicalDomain)),!0){case(t.ldCompany&&!t.ldProduct):this.baseLevel.addCompanyInfo(t.ldCompany);break;case!!t.ldProduct:this.baseLevel.addProductInfo(t.ldProduct,t.ldCompany);break}await this.globalLevel.enable(),this.activeLevel=this.baseLevel,await this.activeLevel.enable()}async setSubPageLevel(t){let r=new ra(this,"subpage");return r.title=t.title,t.description&&r.addTag(new Ar("description",t.description)),await this.activeLevel.disable(),this.activeLevel=r,await this.activeLevel.enable(),r}async revertToBaseLevel(){this.activeLevel!==this.baseLevel&&(await this.activeLevel.disable(),this.activeLevel=this.baseLevel,await this.activeLevel.enable())}};var Pl=class{constructor(t){this.tagManager=new sf,this.readyDeferred=Ni.defer(),this.readyForSmartssrDeferred=Ni.defer(),this.readyPromise=this.readyDeferred.promise,this.readyForSmartssrPromise=this.readyForSmartssrDeferred.promise,this.options=t,this.setup().then(()=>{this.readyDeferred.resolve(),this.options.smartssrWaitForReadySignal||this.readyForSmartssrDeferred.resolve()})}async setup(t){t&&(this.options=t),await this.tagManager.setup(this.options.metaObject)}revertToBaseLevel(){this.tagManager.revertToBaseLevel()}async setSubLevel(t){return await this.tagManager.setSubPageLevel(t)}flashTitle(t){}informReadyForSmartssr(){this.options.smartssrWaitForReadySignal||console.error("You have not indicated that you inform smartssr by a dedicated signal! Please consider doing so!"),this.readyForSmartssrDeferred.resolve()}};var s0=class{};var YM=Qt(Em(),1);var na=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 kU=(e="uni")=>`${e}xxxxxxxxxxx`.replace(/[xy]/g,t=>{let r=Math.random()*16|0;return(t==="x"?r:r&3|8).toString(16)}),af=class e{constructor(){this.fastMap=new na,this.eventSubject=new Ee.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=kU("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 lf=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 $n.SmartMatch(t),n=!1;for(let o of this._stringArray)r.match(o)&&(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=fe.defer();return this._triggerUntilTrueFunctionArray.push(()=>{let o=t(this.getStringArray());return o===!0&&(r&&r(),n.resolve()),o}),this.notifyTrigger(),n.promise}notifyTrigger(){let t=this._triggerUntilTrueFunctionArray.filter(r=>!r());this._triggerUntilTrueFunctionArray=t}};var TU="1.3.16";function VM(e,t,r){return Math.max(e,Math.min(t,r))}function DU(e,t,r){return(1-r)*e+r*t}function CU(e,t,r,n){return DU(e,t,1-Math.exp(-r*n))}function EU(e,t){return(e%t+t)%t}var MU=class{isRunning=!1;value=0;from=0;to=0;currentTime=0;lerp;duration;easing;onUpdate;advance(e){if(!this.isRunning)return;let t=!1;if(this.duration&&this.easing){this.currentTime+=e;let r=VM(0,this.currentTime/this.duration,1);t=r>=1;let n=t?1:this.easing(r);this.value=this.from+(this.to-this.from)*n}else this.lerp?(this.value=CU(this.value,this.to,this.lerp*60,e),Math.round(this.value)===this.to&&(this.value=this.to,t=!0)):(this.value=this.to,t=!0);t&&this.stop(),this.onUpdate?.(this.value,t)}stop(){this.isRunning=!1}fromTo(e,t,{lerp:r,duration:n,easing:o,onStart:i,onUpdate:s}){this.from=this.value=e,this.to=t,this.lerp=r,this.duration=n,this.easing=o,this.currentTime=0,this.isRunning=!0,i?.(),this.onUpdate=s}};function IU(e,t){let r;return function(...n){let o=this;clearTimeout(r),r=setTimeout(()=>{r=void 0,e.apply(o,n)},t)}}var $U=class{constructor(e,t,{autoResize:r=!0,debounce:n=250}={}){this.wrapper=e,this.content=t,r&&(this.debouncedResize=IU(this.resize,n),this.wrapper instanceof Window?window.addEventListener("resize",this.debouncedResize,!1):(this.wrapperResizeObserver=new ResizeObserver(this.debouncedResize),this.wrapperResizeObserver.observe(this.wrapper)),this.contentResizeObserver=new ResizeObserver(this.debouncedResize),this.contentResizeObserver.observe(this.content)),this.resize()}width=0;height=0;scrollHeight=0;scrollWidth=0;debouncedResize;wrapperResizeObserver;contentResizeObserver;destroy(){this.wrapperResizeObserver?.disconnect(),this.contentResizeObserver?.disconnect(),this.wrapper===window&&this.debouncedResize&&window.removeEventListener("resize",this.debouncedResize,!1)}resize=()=>{this.onWrapperResize(),this.onContentResize()};onWrapperResize=()=>{this.wrapper instanceof Window?(this.width=window.innerWidth,this.height=window.innerHeight):(this.width=this.wrapper.clientWidth,this.height=this.wrapper.clientHeight)};onContentResize=()=>{this.wrapper instanceof Window?(this.scrollHeight=this.content.scrollHeight,this.scrollWidth=this.content.scrollWidth):(this.scrollHeight=this.wrapper.scrollHeight,this.scrollWidth=this.wrapper.scrollWidth)};get limit(){return{x:this.scrollWidth-this.width,y:this.scrollHeight-this.height}}},GM=class{events={};emit(e,...t){let r=this.events[e]||[];for(let n=0,o=r.length;n<o;n++)r[n]?.(...t)}on(e,t){return this.events[e]?.push(t)||(this.events[e]=[t]),()=>{this.events[e]=this.events[e]?.filter(r=>t!==r)}}off(e,t){this.events[e]=this.events[e]?.filter(r=>t!==r)}destroy(){this.events={}}},QM=100/6,Io={passive:!1},AU=class{constructor(e,t={wheelMultiplier:1,touchMultiplier:1}){this.element=e,this.options=t,window.addEventListener("resize",this.onWindowResize,!1),this.onWindowResize(),this.element.addEventListener("wheel",this.onWheel,Io),this.element.addEventListener("touchstart",this.onTouchStart,Io),this.element.addEventListener("touchmove",this.onTouchMove,Io),this.element.addEventListener("touchend",this.onTouchEnd,Io)}touchStart={x:0,y:0};lastDelta={x:0,y:0};window={width:0,height:0};emitter=new GM;on(e,t){return this.emitter.on(e,t)}destroy(){this.emitter.destroy(),window.removeEventListener("resize",this.onWindowResize,!1),this.element.removeEventListener("wheel",this.onWheel,Io),this.element.removeEventListener("touchstart",this.onTouchStart,Io),this.element.removeEventListener("touchmove",this.onTouchMove,Io),this.element.removeEventListener("touchend",this.onTouchEnd,Io)}onTouchStart=e=>{let{clientX:t,clientY:r}=e.targetTouches?e.targetTouches[0]:e;this.touchStart.x=t,this.touchStart.y=r,this.lastDelta={x:0,y:0},this.emitter.emit("scroll",{deltaX:0,deltaY:0,event:e})};onTouchMove=e=>{let{clientX:t,clientY:r}=e.targetTouches?e.targetTouches[0]:e,n=-(t-this.touchStart.x)*this.options.touchMultiplier,o=-(r-this.touchStart.y)*this.options.touchMultiplier;this.touchStart.x=t,this.touchStart.y=r,this.lastDelta={x:n,y:o},this.emitter.emit("scroll",{deltaX:n,deltaY:o,event:e})};onTouchEnd=e=>{this.emitter.emit("scroll",{deltaX:this.lastDelta.x,deltaY:this.lastDelta.y,event:e})};onWheel=e=>{let{deltaX:t,deltaY:r,deltaMode:n}=e,o=n===1?QM:n===2?this.window.width:1,i=n===1?QM:n===2?this.window.height:1;t*=o,r*=i,t*=this.options.wheelMultiplier,r*=this.options.wheelMultiplier,this.emitter.emit("scroll",{deltaX:t,deltaY:r,event:e})};onWindowResize=()=>{this.window={width:window.innerWidth,height:window.innerHeight}}},XM=e=>Math.min(1,1.001-Math.pow(2,-10*e)),Fl=class{_isScrolling=!1;_isStopped=!1;_isLocked=!1;_preventNextNativeScrollEvent=!1;_resetVelocityTimeout=null;__rafID=null;isTouching;time=0;userData={};lastVelocity=0;velocity=0;direction=0;options;targetScroll;animatedScroll;animate=new MU;emitter=new GM;dimensions;virtualScroll;constructor({wrapper:e=window,content:t=document.documentElement,eventsTarget:r=e,smoothWheel:n=!0,syncTouch:o=!1,syncTouchLerp:i=.075,touchInertiaExponent:s=1.7,duration:a,easing:l,lerp:c=.1,infinite:u=!1,orientation:d="vertical",gestureOrientation:p=d==="horizontal"?"both":"vertical",touchMultiplier:f=1,wheelMultiplier:m=1,autoResize:g=!0,prevent:x,virtualScroll:y,overscroll:T=!0,autoRaf:D=!1,anchors:H=!1,autoToggle:j=!1,allowNestedScroll:M=!1,__experimental__naiveDimensions:U=!1}={}){window.lenisVersion=TU,(!e||e===document.documentElement)&&(e=window),typeof a=="number"&&typeof l!="function"?l=XM:typeof l=="function"&&typeof a!="number"&&(a=1),this.options={wrapper:e,content:t,eventsTarget:r,smoothWheel:n,syncTouch:o,syncTouchLerp:i,touchInertiaExponent:s,duration:a,easing:l,lerp:c,infinite:u,gestureOrientation:p,orientation:d,touchMultiplier:f,wheelMultiplier:m,autoResize:g,prevent:x,virtualScroll:y,overscroll:T,autoRaf:D,anchors:H,autoToggle:j,allowNestedScroll:M,__experimental__naiveDimensions:U},this.dimensions=new $U(e,t,{autoResize:g}),this.updateClassName(),this.targetScroll=this.animatedScroll=this.actualScroll,this.options.wrapper.addEventListener("scroll",this.onNativeScroll,!1),this.options.wrapper.addEventListener("scrollend",this.onScrollEnd,{capture:!0}),this.options.anchors&&this.options.wrapper===window&&this.options.wrapper.addEventListener("click",this.onClick,!1),this.options.wrapper.addEventListener("pointerdown",this.onPointerDown,!1),this.virtualScroll=new AU(r,{touchMultiplier:f,wheelMultiplier:m}),this.virtualScroll.on("scroll",this.onVirtualScroll),this.options.autoToggle&&(this.checkOverflow(),this.rootElement.addEventListener("transitionend",this.onTransitionEnd,{passive:!0})),this.options.autoRaf&&(this.__rafID=requestAnimationFrame(this.raf))}destroy(){this.emitter.destroy(),this.options.wrapper.removeEventListener("scroll",this.onNativeScroll,!1),this.options.wrapper.removeEventListener("scrollend",this.onScrollEnd,{capture:!0}),this.options.wrapper.removeEventListener("pointerdown",this.onPointerDown,!1),this.options.anchors&&this.options.wrapper===window&&this.options.wrapper.removeEventListener("click",this.onClick,!1),this.virtualScroll.destroy(),this.dimensions.destroy(),this.cleanUpClassName(),this.__rafID&&cancelAnimationFrame(this.__rafID)}on(e,t){return this.emitter.on(e,t)}off(e,t){return this.emitter.off(e,t)}onScrollEnd=e=>{e instanceof CustomEvent||(this.isScrolling==="smooth"||this.isScrolling===!1)&&e.stopPropagation()};dispatchScrollendEvent=()=>{this.options.wrapper.dispatchEvent(new CustomEvent("scrollend",{bubbles:this.options.wrapper===window,detail:{lenisScrollEnd:!0}}))};get overflow(){let e=this.isHorizontal?"overflow-x":"overflow-y";return getComputedStyle(this.rootElement)[e]}checkOverflow(){["hidden","clip"].includes(this.overflow)?this.internalStop():this.internalStart()}onTransitionEnd=e=>{e.propertyName.includes("overflow")&&this.checkOverflow()};setScroll(e){this.isHorizontal?this.options.wrapper.scrollTo({left:e,behavior:"instant"}):this.options.wrapper.scrollTo({top:e,behavior:"instant"})}onClick=e=>{let r=e.composedPath().find(n=>n instanceof HTMLAnchorElement&&n.getAttribute("href")?.includes("#"));if(r){let n=r.getAttribute("href");if(n){let o=typeof this.options.anchors=="object"&&this.options.anchors?this.options.anchors:void 0,i=`#${n.split("#")[1]}`;this.scrollTo(i,o)}}};onPointerDown=e=>{e.button===1&&this.reset()};onVirtualScroll=e=>{if(typeof this.options.virtualScroll=="function"&&this.options.virtualScroll(e)===!1)return;let{deltaX:t,deltaY:r,event:n}=e;if(this.emitter.emit("virtual-scroll",{deltaX:t,deltaY:r,event:n}),n.ctrlKey||n.lenisStopPropagation)return;let o=n.type.includes("touch"),i=n.type.includes("wheel");this.isTouching=n.type==="touchstart"||n.type==="touchmove";let s=t===0&&r===0;if(this.options.syncTouch&&o&&n.type==="touchstart"&&s&&!this.isStopped&&!this.isLocked){this.reset();return}let l=this.options.gestureOrientation==="vertical"&&r===0||this.options.gestureOrientation==="horizontal"&&t===0;if(s||l)return;let c=n.composedPath();c=c.slice(0,c.indexOf(this.rootElement));let u=this.options.prevent;if(c.find(x=>x instanceof HTMLElement&&(typeof u=="function"&&u?.(x)||x.hasAttribute?.("data-lenis-prevent")||o&&x.hasAttribute?.("data-lenis-prevent-touch")||i&&x.hasAttribute?.("data-lenis-prevent-wheel")||this.options.allowNestedScroll&&this.checkNestedScroll(x,{deltaX:t,deltaY:r}))))return;if(this.isStopped||this.isLocked){n.cancelable&&n.preventDefault();return}if(!(this.options.syncTouch&&o||this.options.smoothWheel&&i)){this.isScrolling="native",this.animate.stop(),n.lenisStopPropagation=!0;return}let p=r;this.options.gestureOrientation==="both"?p=Math.abs(r)>Math.abs(t)?r:t:this.options.gestureOrientation==="horizontal"&&(p=t),(!this.options.overscroll||this.options.infinite||this.options.wrapper!==window&&this.limit>0&&(this.animatedScroll>0&&this.animatedScroll<this.limit||this.animatedScroll===0&&r>0||this.animatedScroll===this.limit&&r<0))&&(n.lenisStopPropagation=!0),n.cancelable&&n.preventDefault();let f=o&&this.options.syncTouch,g=o&&n.type==="touchend";g&&(p=Math.sign(this.velocity)*Math.pow(Math.abs(this.velocity),this.options.touchInertiaExponent)),this.scrollTo(this.targetScroll+p,{programmatic:!1,...f?{lerp:g?this.options.syncTouchLerp:1}:{lerp:this.options.lerp,duration:this.options.duration,easing:this.options.easing}})};resize(){this.dimensions.resize(),this.animatedScroll=this.targetScroll=this.actualScroll,this.emit()}emit(){this.emitter.emit("scroll",this)}onNativeScroll=()=>{if(this._resetVelocityTimeout!==null&&(clearTimeout(this._resetVelocityTimeout),this._resetVelocityTimeout=null),this._preventNextNativeScrollEvent){this._preventNextNativeScrollEvent=!1;return}if(this.isScrolling===!1||this.isScrolling==="native"){let e=this.animatedScroll;this.animatedScroll=this.targetScroll=this.actualScroll,this.lastVelocity=this.velocity,this.velocity=this.animatedScroll-e,this.direction=Math.sign(this.animatedScroll-e),this.isStopped||(this.isScrolling="native"),this.emit(),this.velocity!==0&&(this._resetVelocityTimeout=setTimeout(()=>{this.lastVelocity=this.velocity,this.velocity=0,this.isScrolling=!1,this.emit()},400))}};reset(){this.isLocked=!1,this.isScrolling=!1,this.animatedScroll=this.targetScroll=this.actualScroll,this.lastVelocity=this.velocity=0,this.animate.stop()}start(){if(this.isStopped){if(this.options.autoToggle){this.rootElement.style.removeProperty("overflow");return}this.internalStart()}}internalStart(){this.isStopped&&(this.reset(),this.isStopped=!1,this.emit())}stop(){if(!this.isStopped){if(this.options.autoToggle){this.rootElement.style.setProperty("overflow","clip");return}this.internalStop()}}internalStop(){this.isStopped||(this.reset(),this.isStopped=!0,this.emit())}raf=e=>{let t=e-(this.time||e);this.time=e,this.animate.advance(t*.001),this.options.autoRaf&&(this.__rafID=requestAnimationFrame(this.raf))};scrollTo(e,{offset:t=0,immediate:r=!1,lock:n=!1,duration:o=this.options.duration,easing:i=this.options.easing,lerp:s=this.options.lerp,onStart:a,onComplete:l,force:c=!1,programmatic:u=!0,userData:d}={}){if(!((this.isStopped||this.isLocked)&&!c)){if(typeof e=="string"&&["top","left","start","#"].includes(e))e=0;else if(typeof e=="string"&&["bottom","right","end"].includes(e))e=this.limit;else{let p;if(typeof e=="string"?(p=document.querySelector(e),p||(e==="#top"?e=0:console.warn("Lenis: Target not found",e))):e instanceof HTMLElement&&e?.nodeType&&(p=e),p){if(this.options.wrapper!==window){let m=this.rootElement.getBoundingClientRect();t-=this.isHorizontal?m.left:m.top}let f=p.getBoundingClientRect();e=(this.isHorizontal?f.left:f.top)+this.animatedScroll}}if(typeof e=="number"){if(e+=t,e=Math.round(e),this.options.infinite){if(u){this.targetScroll=this.animatedScroll=this.scroll;let p=e-this.animatedScroll;p>this.limit/2?e=e-this.limit:p<-this.limit/2&&(e=e+this.limit)}}else e=VM(0,e,this.limit);if(e===this.targetScroll){a?.(this),l?.(this);return}if(this.userData=d??{},r){this.animatedScroll=this.targetScroll=e,this.setScroll(this.scroll),this.reset(),this.preventNextNativeScrollEvent(),this.emit(),l?.(this),this.userData={},requestAnimationFrame(()=>{this.dispatchScrollendEvent()});return}u||(this.targetScroll=e),typeof o=="number"&&typeof i!="function"?i=XM:typeof i=="function"&&typeof o!="number"&&(o=1),this.animate.fromTo(this.animatedScroll,e,{duration:o,easing:i,lerp:s,onStart:()=>{n&&(this.isLocked=!0),this.isScrolling="smooth",a?.(this)},onUpdate:(p,f)=>{this.isScrolling="smooth",this.lastVelocity=this.velocity,this.velocity=p-this.animatedScroll,this.direction=Math.sign(this.velocity),this.animatedScroll=p,this.setScroll(this.scroll),u&&(this.targetScroll=p),f||this.emit(),f&&(this.reset(),this.emit(),l?.(this),this.userData={},requestAnimationFrame(()=>{this.dispatchScrollendEvent()}),this.preventNextNativeScrollEvent())}})}}}preventNextNativeScrollEvent(){this._preventNextNativeScrollEvent=!0,requestAnimationFrame(()=>{this._preventNextNativeScrollEvent=!1})}checkNestedScroll(e,{deltaX:t,deltaY:r}){let n=Date.now(),o=e._lenis??={},i,s,a,l,c,u,d,p,f=this.options.gestureOrientation;if(n-(o.time??0)>2e3){o.time=Date.now();let j=window.getComputedStyle(e);o.computedStyle=j;let M=j.overflowX,U=j.overflowY;if(i=["auto","overlay","scroll"].includes(M),s=["auto","overlay","scroll"].includes(U),o.hasOverflowX=i,o.hasOverflowY=s,!i&&!s||f==="vertical"&&!s||f==="horizontal"&&!i)return!1;c=e.scrollWidth,u=e.scrollHeight,d=e.clientWidth,p=e.clientHeight,a=c>d,l=u>p,o.isScrollableX=a,o.isScrollableY=l,o.scrollWidth=c,o.scrollHeight=u,o.clientWidth=d,o.clientHeight=p}else a=o.isScrollableX,l=o.isScrollableY,i=o.hasOverflowX,s=o.hasOverflowY,c=o.scrollWidth,u=o.scrollHeight,d=o.clientWidth,p=o.clientHeight;if(!i&&!s||!a&&!l||f==="vertical"&&(!s||!l)||f==="horizontal"&&(!i||!a))return!1;let m;if(f==="horizontal")m="x";else if(f==="vertical")m="y";else{let j=t!==0,M=r!==0;j&&i&&a&&(m="x"),M&&s&&l&&(m="y")}if(!m)return!1;let g,x,y,T,D;if(m==="x")g=e.scrollLeft,x=c-d,y=t,T=i,D=a;else if(m==="y")g=e.scrollTop,x=u-p,y=r,T=s,D=l;else return!1;return(y>0?g<x:g>0)&&T&&D}get rootElement(){return this.options.wrapper===window?document.documentElement:this.options.wrapper}get limit(){return this.options.__experimental__naiveDimensions?this.isHorizontal?this.rootElement.scrollWidth-this.rootElement.clientWidth:this.rootElement.scrollHeight-this.rootElement.clientHeight:this.dimensions.limit[this.isHorizontal?"x":"y"]}get isHorizontal(){return this.options.orientation==="horizontal"}get actualScroll(){let e=this.options.wrapper;return this.isHorizontal?e.scrollX??e.scrollLeft:e.scrollY??e.scrollTop}get scroll(){return this.options.infinite?EU(this.animatedScroll,this.limit):this.animatedScroll}get progress(){return this.limit===0?1:this.scroll/this.limit}get isScrolling(){return this._isScrolling}set isScrolling(e){this._isScrolling!==e&&(this._isScrolling=e,this.updateClassName())}get isStopped(){return this._isStopped}set isStopped(e){this._isStopped!==e&&(this._isStopped=e,this.updateClassName())}get isLocked(){return this._isLocked}set isLocked(e){this._isLocked!==e&&(this._isLocked=e,this.updateClassName())}get isSmooth(){return this.isScrolling==="smooth"}get className(){let e="lenis";return this.options.autoToggle&&(e+=" lenis-autoToggle"),this.isStopped&&(e+=" lenis-stopped"),this.isLocked&&(e+=" lenis-locked"),this.isScrolling&&(e+=" lenis-scrolling"),this.isScrolling==="smooth"&&(e+=" lenis-smooth"),e}updateClassName(){this.cleanUpClassName(),this.rootElement.className=`${this.rootElement.className} ${this.className}`.trim()}cleanUpClassName(){this.rootElement.className=this.rootElement.className.replace(/lenis(-\w+)?/g,"").trim()}};var cf=Qt(u0(),1),Rl={ObjectMap:af,Stringmap:lf,FastMap:na};var wn={};he(wn,{cssForDesktop:()=>_U,cssForNotebook:()=>OU,cssForPhablet:()=>NU,cssForPhone:()=>PU,cssForTablet:()=>LU,desktop:()=>d0,notebook:()=>p0,phablet:()=>m0,phone:()=>h0,tablet:()=>f0});var d0=1600,p0=1240,f0=1024,m0=600,h0=400,_U=e=>h(`
|
|
177
|
+
@container wccToolsViewport (min-width: ${d0}px) {
|
|
178
178
|
${e.cssText}
|
|
179
179
|
}
|
|
180
|
-
@media (min-width: ${
|
|
180
|
+
@media (min-width: ${d0}px) {
|
|
181
|
+
${e.cssText}
|
|
182
|
+
}
|
|
183
|
+
`),OU=e=>h(`
|
|
184
|
+
@container wccToolsViewport (max-width: ${p0}px) {
|
|
185
|
+
${e.cssText}
|
|
186
|
+
}
|
|
187
|
+
@media (max-width: ${p0}px) {
|
|
181
188
|
${e.cssText}
|
|
182
189
|
}
|
|
183
190
|
`),LU=e=>h(`
|
|
@@ -201,14 +208,7 @@ ${o}
|
|
|
201
208
|
@media (max-width: ${h0}px) {
|
|
202
209
|
${e.cssText}
|
|
203
210
|
}
|
|
204
|
-
`),
|
|
205
|
-
@container wccToolsViewport (max-width: ${g0}px) {
|
|
206
|
-
${e.cssText}
|
|
207
|
-
}
|
|
208
|
-
@media (max-width: ${g0}px) {
|
|
209
|
-
${e.cssText}
|
|
210
|
-
}
|
|
211
|
-
`);var df=class{constructor(t){this.scrollCallbacks=[],this.lenisInstance=null,this.handleNativeScroll=r=>{this.executeScrollCallbacks()},this.handleLenisScroll=r=>{this.executeScrollCallbacks()},this.sweetScroller=new cf.default({}),this.domtoolsInstance=t,this.attachNativeScrollListener()}async toElement(t,r){this.sweetScroller.toElement(t,r),await be.delayFor(r.duration)}async detectNativeSmoothScroll(){let t=fe.defer(),r=100,n=3,o=.75,i=[];function s(l){i.push(l.deltaY),i.length>=r&&(window.removeEventListener("wheel",s),a())}function a(){let l=i.length-1,c=0;for(let d=0;d<l;d++)Math.abs(i[d+1]-i[d])<=n&&c++;c/l>=o?(console.log("Smooth scrolling detected."),t.resolve(!0)):(console.log("Smooth scrolling NOT detected."),t.resolve(!1))}return window.addEventListener("wheel",s),t.promise}async enableLenisScroll(t){let r=new Fl({autoRaf:!0});if(t?.disableOnNativeSmoothScroll&&await this.detectNativeSmoothScroll()){r.destroy();return}this.lenisInstance=r,this.detachNativeScrollListener(),this.attachLenisScrollListener();let n=r.destroy.bind(r);r.destroy=()=>{n(),this.detachLenisScrollListener(),this.attachNativeScrollListener(),this.lenisInstance=null}}onScroll(t){this.scrollCallbacks.push(t)}executeScrollCallbacks(){this.scrollCallbacks.forEach(t=>{try{t()}catch(r){console.error("Error in scroll callback:",r)}})}attachNativeScrollListener(){window.addEventListener("scroll",this.handleNativeScroll)}detachNativeScrollListener(){window.removeEventListener("scroll",this.handleNativeScroll)}attachLenisScrollListener(){this.lenisInstance&&this.lenisInstance.on("scroll",this.handleLenisScroll)}detachLenisScrollListener(){this.lenisInstance&&this.lenisInstance.off("scroll",this.handleLenisScroll)}};var pf=class{constructor(t){this.goBrightBoolean=!1,this.preferredColorSchemeMediaMatch=window.matchMedia("(prefers-color-scheme: light)"),this.themeObservable=new Ee.rxjs.ReplaySubject(1),this.domtoolsRef=t,this.goBrightBoolean=this.preferredColorSchemeMediaMatch.matches,this.preferredColorSchemeMediaMatch.addEventListener("change",r=>{this.goBrightBoolean=r.matches,this.updateAllConnectedElements()}),this.updateAllConnectedElements()}async enableAutomaticGlobalThemeChange(){document.body&&document.body.style&&this.themeObservable.subscribe({next:t=>{document.body.style.background=t?"#fff":"#000"}})}async updateAllConnectedElements(){this.themeObservable.next(this.goBrightBoolean)}goBright(){this.goBrightBoolean=!0,this.updateAllConnectedElements()}goDark(){this.goBrightBoolean=!1,this.updateAllConnectedElements()}toggleDarkBright(){this.goBrightBoolean=!this.goBrightBoolean,this.updateAllConnectedElements()}};var x0;(function(e){e[e.Backspace=8]="Backspace",e[e.Tab=9]="Tab",e[e.Enter=13]="Enter",e[e.Shift=16]="Shift",e[e.Ctrl=17]="Ctrl",e[e.Alt=18]="Alt",e[e.PauseBreak=19]="PauseBreak",e[e.CapsLock=20]="CapsLock",e[e.Escape=27]="Escape",e[e.Space=32]="Space",e[e.PageUp=33]="PageUp",e[e.PageDown=34]="PageDown",e[e.End=35]="End",e[e.Home=36]="Home",e[e.LeftArrow=37]="LeftArrow",e[e.UpArrow=38]="UpArrow",e[e.RightArrow=39]="RightArrow",e[e.DownArrow=40]="DownArrow",e[e.Insert=45]="Insert",e[e.Delete=46]="Delete",e[e.Zero=48]="Zero",e[e.ClosedParen=48]="ClosedParen",e[e.One=49]="One",e[e.ExclamationMark=49]="ExclamationMark",e[e.Two=50]="Two",e[e.AtSign=50]="AtSign",e[e.Three=51]="Three",e[e.PoundSign=51]="PoundSign",e[e.Hash=51]="Hash",e[e.Four=52]="Four",e[e.DollarSign=52]="DollarSign",e[e.Five=53]="Five",e[e.PercentSign=53]="PercentSign",e[e.Six=54]="Six",e[e.Caret=54]="Caret",e[e.Hat=54]="Hat",e[e.Seven=55]="Seven",e[e.Ampersand=55]="Ampersand",e[e.Eight=56]="Eight",e[e.Star=56]="Star",e[e.Asterik=56]="Asterik",e[e.Nine=57]="Nine",e[e.OpenParen=57]="OpenParen",e[e.A=65]="A",e[e.B=66]="B",e[e.C=67]="C",e[e.D=68]="D",e[e.E=69]="E",e[e.F=70]="F",e[e.G=71]="G",e[e.H=72]="H",e[e.I=73]="I",e[e.J=74]="J",e[e.K=75]="K",e[e.L=76]="L",e[e.M=77]="M",e[e.N=78]="N",e[e.O=79]="O",e[e.P=80]="P",e[e.Q=81]="Q",e[e.R=82]="R",e[e.S=83]="S",e[e.T=84]="T",e[e.U=85]="U",e[e.V=86]="V",e[e.W=87]="W",e[e.X=88]="X",e[e.Y=89]="Y",e[e.Z=90]="Z",e[e.LeftWindowKey=91]="LeftWindowKey",e[e.RightWindowKey=92]="RightWindowKey",e[e.SelectKey=93]="SelectKey",e[e.Numpad0=96]="Numpad0",e[e.Numpad1=97]="Numpad1",e[e.Numpad2=98]="Numpad2",e[e.Numpad3=99]="Numpad3",e[e.Numpad4=100]="Numpad4",e[e.Numpad5=101]="Numpad5",e[e.Numpad6=102]="Numpad6",e[e.Numpad7=103]="Numpad7",e[e.Numpad8=104]="Numpad8",e[e.Numpad9=105]="Numpad9",e[e.Multiply=106]="Multiply",e[e.Add=107]="Add",e[e.Subtract=109]="Subtract",e[e.DecimalPoint=110]="DecimalPoint",e[e.Divide=111]="Divide",e[e.F1=112]="F1",e[e.F2=113]="F2",e[e.F3=114]="F3",e[e.F4=115]="F4",e[e.F5=116]="F5",e[e.F6=117]="F6",e[e.F7=118]="F7",e[e.F8=119]="F8",e[e.F9=120]="F9",e[e.F10=121]="F10",e[e.F11=122]="F11",e[e.F12=123]="F12",e[e.NumLock=144]="NumLock",e[e.ScrollLock=145]="ScrollLock",e[e.SemiColon=186]="SemiColon",e[e.Equals=187]="Equals",e[e.Comma=188]="Comma",e[e.Dash=189]="Dash",e[e.Period=190]="Period",e[e.UnderScore=189]="UnderScore",e[e.PlusSign=187]="PlusSign",e[e.ForwardSlash=191]="ForwardSlash",e[e.Tilde=192]="Tilde",e[e.GraveAccent=192]="GraveAccent",e[e.OpenBracket=219]="OpenBracket",e[e.ClosedBracket=221]="ClosedBracket",e[e.Quote=222]="Quote"})(x0||(x0={}));var ff=class{constructor(t){this.domNode=t,this.mapCombosToHandlers=new Map,this.pressedKeys=new Set,this.keyEnum=x0,this.handleKeyDown=r=>{this.pressedKeys.add(r.keyCode),this.checkMatchingKeyboardSubjects(r)},this.handleKeyUp=r=>{this.pressedKeys.delete(r.keyCode)},this.startListening()}on(t){let r=new Ee.rxjs.Subject;return this.registerKeys(t,r),r}triggerKeyPress(t){for(let r of t)this.pressedKeys.add(r);this.checkMatchingKeyboardSubjects();for(let r of t)this.pressedKeys.delete(r)}startListening(){this.domNode.addEventListener("keydown",this.handleKeyDown),this.domNode.addEventListener("keyup",this.handleKeyUp)}stopListening(){this.domNode.removeEventListener("keydown",this.handleKeyDown),this.domNode.removeEventListener("keyup",this.handleKeyUp)}clear(){this.stopListening(),this.mapCombosToHandlers.clear(),this.pressedKeys.clear()}checkMatchingKeyboardSubjects(t){this.mapCombosToHandlers.forEach((r,n)=>{this.areAllKeysPressed(n)&&r.next(t)})}areAllKeysPressed(t){let r=!0;return t.forEach(n=>{this.pressedKeys.has(n)||(r=!1)}),r}registerKeys(t,r){if(!this.mapCombosToHandlers.has(t))this.mapCombosToHandlers.set(t,r);else return this.mapCombosToHandlers.get(t)}};var Sn=class e{static{this.initializationPromise=null}static async setupDomTools(t={}){return!t.ignoreGlobal&&e.initializationPromise?await e.initializationPromise:t.ignoreGlobal?new e(t):(e.initializationPromise=(async()=>{let r;if(globalThis.deesDomTools)r=globalThis.deesDomTools;else{globalThis.deesDomTools=new e(t),r=globalThis.deesDomTools;let n=()=>{(document.readyState==="interactive"||document.readyState==="complete")&&(r.elements.headElement=document.querySelector("head"),r.elements.bodyElement=document.querySelector("body"),r.keyboard=new ff(document.body),r.domReady.resolve())};document.readyState==="interactive"||document.readyState==="complete"?n():document.addEventListener("readystatechange",n),r.domToolsReady.resolve()}return await r.domToolsReady.promise,r})(),await e.initializationPromise)}static getGlobalDomToolsSync(){if(!globalThis.deesDomTools)throw new Error("You tried to access domtools synchronously too early");return globalThis.deesDomTools}constructor(t){this.elements={headElement:null,bodyElement:null},this.websetup=new Pl({metaObject:{title:"loading..."}}),this.smartstate=new Do.Smartstate,this.domToolsStatePart=this.smartstate.getStatePart("domtools",{virtualViewport:"native",jwt:null}),this.router=new To.SmartRouter({debug:!1}),this.convenience={typedrequest:Kt,smartdelay:be,smartjson:Ze,smarturl:Co},this.deesComms=new tl.DeesComms,this.scroller=new df(this),this.themeManager=new pf(this),this.keyboard=null,this.domToolsReady=fe.defer(),this.domReady=fe.defer(),this.globalStylesReady=fe.defer(),this.runOnceTrackerStringMap=new Rl.Stringmap,this.runOnceResultMap=new Rl.FastMap,this.runOnceErrorMap=new Rl.FastMap}async runOnce(t,r){let n=`${t}+runningCheck`;if(!this.runOnceTrackerStringMap.checkString(t)){this.runOnceTrackerStringMap.addString(t),this.runOnceTrackerStringMap.addString(n);try{let o=await r();this.runOnceResultMap.addToMap(t,o)}catch(o){this.runOnceErrorMap.addToMap(t,o)}finally{this.runOnceTrackerStringMap.removeString(n)}}return await this.runOnceTrackerStringMap.registerUntilTrue(o=>!o.includes(n),()=>{let o=this.runOnceErrorMap.getByKey(t);if(o)throw o;return this.runOnceResultMap.getByKey(t)})}async setGlobalStyles(t){await this.domReady.promise;let r=document.createElement("style");r.type="text/css",r.appendChild(document.createTextNode(t)),this.elements.headElement.appendChild(r)}async setExternalScript(t){await this.domReady.promise;let r=fe.defer(),n=document.createElement("script");n.src=t,n.addEventListener("load",function(){r.resolve()}),(document.head||document.body).append(n),await r.promise}async setExternalCss(t){let r=document.createElement("link");r.rel="stylesheet",r.crossOrigin="anonymous",r.href=t,document.head.append(r)}async setWebsiteInfo(t){await this.websetup.setup(t),await this.websetup.readyPromise}};var mf=(()=>{let e=navigator.userAgent.indexOf("Mac OS X")===-1?Oe``.cssText:"";return Oe`
|
|
211
|
+
`);var df=class{constructor(t){this.scrollCallbacks=[],this.lenisInstance=null,this.handleNativeScroll=r=>{this.executeScrollCallbacks()},this.handleLenisScroll=r=>{this.executeScrollCallbacks()},this.sweetScroller=new cf.default({}),this.domtoolsInstance=t,this.attachNativeScrollListener()}async toElement(t,r){this.sweetScroller.toElement(t,r),await be.delayFor(r.duration)}async detectNativeSmoothScroll(){let t=fe.defer(),r=100,n=3,o=.75,i=[];function s(l){i.push(l.deltaY),i.length>=r&&(window.removeEventListener("wheel",s),a())}function a(){let l=i.length-1,c=0;for(let d=0;d<l;d++)Math.abs(i[d+1]-i[d])<=n&&c++;c/l>=o?(console.log("Smooth scrolling detected."),t.resolve(!0)):(console.log("Smooth scrolling NOT detected."),t.resolve(!1))}return window.addEventListener("wheel",s),t.promise}async enableLenisScroll(t){let r=new Fl({autoRaf:!0});if(t?.disableOnNativeSmoothScroll&&await this.detectNativeSmoothScroll()){r.destroy();return}this.lenisInstance=r,this.detachNativeScrollListener(),this.attachLenisScrollListener();let n=r.destroy.bind(r);r.destroy=()=>{n(),this.detachLenisScrollListener(),this.attachNativeScrollListener(),this.lenisInstance=null}}onScroll(t){this.scrollCallbacks.push(t)}executeScrollCallbacks(){this.scrollCallbacks.forEach(t=>{try{t()}catch(r){console.error("Error in scroll callback:",r)}})}attachNativeScrollListener(){window.addEventListener("scroll",this.handleNativeScroll)}detachNativeScrollListener(){window.removeEventListener("scroll",this.handleNativeScroll)}attachLenisScrollListener(){this.lenisInstance&&this.lenisInstance.on("scroll",this.handleLenisScroll)}detachLenisScrollListener(){this.lenisInstance&&this.lenisInstance.off("scroll",this.handleLenisScroll)}};var pf=class{constructor(t){this.goBrightBoolean=!1,this.preferredColorSchemeMediaMatch=window.matchMedia("(prefers-color-scheme: light)"),this.themeObservable=new Ee.rxjs.ReplaySubject(1),this.domtoolsRef=t,this.goBrightBoolean=this.preferredColorSchemeMediaMatch.matches,this.preferredColorSchemeMediaMatch.addEventListener("change",r=>{this.goBrightBoolean=r.matches,this.updateAllConnectedElements()}),this.updateAllConnectedElements()}async enableAutomaticGlobalThemeChange(){document.body&&document.body.style&&this.themeObservable.subscribe({next:t=>{document.body.style.background=t?"#fff":"#000"}})}async updateAllConnectedElements(){this.themeObservable.next(this.goBrightBoolean)}goBright(){this.goBrightBoolean=!0,this.updateAllConnectedElements()}goDark(){this.goBrightBoolean=!1,this.updateAllConnectedElements()}toggleDarkBright(){this.goBrightBoolean=!this.goBrightBoolean,this.updateAllConnectedElements()}};var g0;(function(e){e[e.Backspace=8]="Backspace",e[e.Tab=9]="Tab",e[e.Enter=13]="Enter",e[e.Shift=16]="Shift",e[e.Ctrl=17]="Ctrl",e[e.Alt=18]="Alt",e[e.PauseBreak=19]="PauseBreak",e[e.CapsLock=20]="CapsLock",e[e.Escape=27]="Escape",e[e.Space=32]="Space",e[e.PageUp=33]="PageUp",e[e.PageDown=34]="PageDown",e[e.End=35]="End",e[e.Home=36]="Home",e[e.LeftArrow=37]="LeftArrow",e[e.UpArrow=38]="UpArrow",e[e.RightArrow=39]="RightArrow",e[e.DownArrow=40]="DownArrow",e[e.Insert=45]="Insert",e[e.Delete=46]="Delete",e[e.Zero=48]="Zero",e[e.ClosedParen=48]="ClosedParen",e[e.One=49]="One",e[e.ExclamationMark=49]="ExclamationMark",e[e.Two=50]="Two",e[e.AtSign=50]="AtSign",e[e.Three=51]="Three",e[e.PoundSign=51]="PoundSign",e[e.Hash=51]="Hash",e[e.Four=52]="Four",e[e.DollarSign=52]="DollarSign",e[e.Five=53]="Five",e[e.PercentSign=53]="PercentSign",e[e.Six=54]="Six",e[e.Caret=54]="Caret",e[e.Hat=54]="Hat",e[e.Seven=55]="Seven",e[e.Ampersand=55]="Ampersand",e[e.Eight=56]="Eight",e[e.Star=56]="Star",e[e.Asterik=56]="Asterik",e[e.Nine=57]="Nine",e[e.OpenParen=57]="OpenParen",e[e.A=65]="A",e[e.B=66]="B",e[e.C=67]="C",e[e.D=68]="D",e[e.E=69]="E",e[e.F=70]="F",e[e.G=71]="G",e[e.H=72]="H",e[e.I=73]="I",e[e.J=74]="J",e[e.K=75]="K",e[e.L=76]="L",e[e.M=77]="M",e[e.N=78]="N",e[e.O=79]="O",e[e.P=80]="P",e[e.Q=81]="Q",e[e.R=82]="R",e[e.S=83]="S",e[e.T=84]="T",e[e.U=85]="U",e[e.V=86]="V",e[e.W=87]="W",e[e.X=88]="X",e[e.Y=89]="Y",e[e.Z=90]="Z",e[e.LeftWindowKey=91]="LeftWindowKey",e[e.RightWindowKey=92]="RightWindowKey",e[e.SelectKey=93]="SelectKey",e[e.Numpad0=96]="Numpad0",e[e.Numpad1=97]="Numpad1",e[e.Numpad2=98]="Numpad2",e[e.Numpad3=99]="Numpad3",e[e.Numpad4=100]="Numpad4",e[e.Numpad5=101]="Numpad5",e[e.Numpad6=102]="Numpad6",e[e.Numpad7=103]="Numpad7",e[e.Numpad8=104]="Numpad8",e[e.Numpad9=105]="Numpad9",e[e.Multiply=106]="Multiply",e[e.Add=107]="Add",e[e.Subtract=109]="Subtract",e[e.DecimalPoint=110]="DecimalPoint",e[e.Divide=111]="Divide",e[e.F1=112]="F1",e[e.F2=113]="F2",e[e.F3=114]="F3",e[e.F4=115]="F4",e[e.F5=116]="F5",e[e.F6=117]="F6",e[e.F7=118]="F7",e[e.F8=119]="F8",e[e.F9=120]="F9",e[e.F10=121]="F10",e[e.F11=122]="F11",e[e.F12=123]="F12",e[e.NumLock=144]="NumLock",e[e.ScrollLock=145]="ScrollLock",e[e.SemiColon=186]="SemiColon",e[e.Equals=187]="Equals",e[e.Comma=188]="Comma",e[e.Dash=189]="Dash",e[e.Period=190]="Period",e[e.UnderScore=189]="UnderScore",e[e.PlusSign=187]="PlusSign",e[e.ForwardSlash=191]="ForwardSlash",e[e.Tilde=192]="Tilde",e[e.GraveAccent=192]="GraveAccent",e[e.OpenBracket=219]="OpenBracket",e[e.ClosedBracket=221]="ClosedBracket",e[e.Quote=222]="Quote"})(g0||(g0={}));var ff=class{constructor(t){this.domNode=t,this.mapCombosToHandlers=new Map,this.pressedKeys=new Set,this.keyEnum=g0,this.handleKeyDown=r=>{this.pressedKeys.add(r.keyCode),this.checkMatchingKeyboardSubjects(r)},this.handleKeyUp=r=>{this.pressedKeys.delete(r.keyCode)},this.startListening()}on(t){let r=new Ee.rxjs.Subject;return this.registerKeys(t,r),r}triggerKeyPress(t){for(let r of t)this.pressedKeys.add(r);this.checkMatchingKeyboardSubjects();for(let r of t)this.pressedKeys.delete(r)}startListening(){this.domNode.addEventListener("keydown",this.handleKeyDown),this.domNode.addEventListener("keyup",this.handleKeyUp)}stopListening(){this.domNode.removeEventListener("keydown",this.handleKeyDown),this.domNode.removeEventListener("keyup",this.handleKeyUp)}clear(){this.stopListening(),this.mapCombosToHandlers.clear(),this.pressedKeys.clear()}checkMatchingKeyboardSubjects(t){this.mapCombosToHandlers.forEach((r,n)=>{this.areAllKeysPressed(n)&&r.next(t)})}areAllKeysPressed(t){let r=!0;return t.forEach(n=>{this.pressedKeys.has(n)||(r=!1)}),r}registerKeys(t,r){if(!this.mapCombosToHandlers.has(t))this.mapCombosToHandlers.set(t,r);else return this.mapCombosToHandlers.get(t)}};var Sn=class e{static{this.initializationPromise=null}static async setupDomTools(t={}){return!t.ignoreGlobal&&e.initializationPromise?await e.initializationPromise:t.ignoreGlobal?new e(t):(e.initializationPromise=(async()=>{let r;if(globalThis.deesDomTools)r=globalThis.deesDomTools;else{globalThis.deesDomTools=new e(t),r=globalThis.deesDomTools;let n=()=>{(document.readyState==="interactive"||document.readyState==="complete")&&(r.elements.headElement=document.querySelector("head"),r.elements.bodyElement=document.querySelector("body"),r.keyboard=new ff(document.body),r.domReady.resolve())};document.readyState==="interactive"||document.readyState==="complete"?n():document.addEventListener("readystatechange",n),r.domToolsReady.resolve()}return await r.domToolsReady.promise,r})(),await e.initializationPromise)}static getGlobalDomToolsSync(){if(!globalThis.deesDomTools)throw new Error("You tried to access domtools synchronously too early");return globalThis.deesDomTools}constructor(t){this.elements={headElement:null,bodyElement:null},this.websetup=new Pl({metaObject:{title:"loading..."}}),this.smartstate=new Co.Smartstate,this.domToolsStatePart=this.smartstate.getStatePart("domtools",{virtualViewport:"native",jwt:null}),this.router=new Do.SmartRouter({debug:!1}),this.convenience={typedrequest:Kt,smartdelay:be,smartjson:Ze,smarturl:Eo},this.deesComms=new tl.DeesComms,this.scroller=new df(this),this.themeManager=new pf(this),this.keyboard=null,this.domToolsReady=fe.defer(),this.domReady=fe.defer(),this.globalStylesReady=fe.defer(),this.runOnceTrackerStringMap=new Rl.Stringmap,this.runOnceResultMap=new Rl.FastMap,this.runOnceErrorMap=new Rl.FastMap}async runOnce(t,r){let n=`${t}+runningCheck`;if(!this.runOnceTrackerStringMap.checkString(t)){this.runOnceTrackerStringMap.addString(t),this.runOnceTrackerStringMap.addString(n);try{let o=await r();this.runOnceResultMap.addToMap(t,o)}catch(o){this.runOnceErrorMap.addToMap(t,o)}finally{this.runOnceTrackerStringMap.removeString(n)}}return await this.runOnceTrackerStringMap.registerUntilTrue(o=>!o.includes(n),()=>{let o=this.runOnceErrorMap.getByKey(t);if(o)throw o;return this.runOnceResultMap.getByKey(t)})}async setGlobalStyles(t){await this.domReady.promise;let r=document.createElement("style");r.type="text/css",r.appendChild(document.createTextNode(t)),this.elements.headElement.appendChild(r)}async setExternalScript(t){await this.domReady.promise;let r=fe.defer(),n=document.createElement("script");n.src=t,n.addEventListener("load",function(){r.resolve()}),(document.head||document.body).append(n),await r.promise}async setExternalCss(t){let r=document.createElement("link");r.rel="stylesheet",r.crossOrigin="anonymous",r.href=t,document.head.append(r)}async setWebsiteInfo(t){await this.websetup.setup(t),await this.websetup.readyPromise}};var mf=(()=>{let e=navigator.userAgent.indexOf("Mac OS X")===-1?Oe``.cssText:"";return Oe`
|
|
212
212
|
/* width */
|
|
213
213
|
::-webkit-scrollbar {
|
|
214
214
|
width: 0px;
|
|
@@ -235,7 +235,7 @@ ${o}
|
|
|
235
235
|
|
|
236
236
|
/* scroll bar styles */
|
|
237
237
|
${h(mf)}
|
|
238
|
-
`.cssText;var
|
|
238
|
+
`.cssText;var FU=Oe`
|
|
239
239
|
* {
|
|
240
240
|
transition: background 0.1s, color 0.1s;
|
|
241
241
|
box-sizing: border-box;
|
|
@@ -247,7 +247,7 @@ ${o}
|
|
|
247
247
|
}
|
|
248
248
|
|
|
249
249
|
${h(mf)}
|
|
250
|
-
`,
|
|
250
|
+
`,RU=O`
|
|
251
251
|
<style>
|
|
252
252
|
* {
|
|
253
253
|
transition: background 0.1s, color 0.1s;
|
|
@@ -260,8 +260,8 @@ ${o}
|
|
|
260
260
|
|
|
261
261
|
${mf}
|
|
262
262
|
</style>
|
|
263
|
-
`,
|
|
264
|
-
take care to ensure page security.`)})(n)+e[o+1]),e[0]),r:v0}),KM=new Map,yf=e=>(t,...r)=>{let n=r.length,o,i,s=[],a=[],l,c=0,u=!1;for(;c<n;){for(l=t[c];c<n&&(i=r[c],(o=UU(i))!==void 0);)l+=o+t[++c],u=!0;c!==n&&a.push(i),s.push(l),c++}if(c===n&&s.push(t[n]),u){let d=s.join("$$lit$$");(t=KM.get(d))===void 0&&(s.raw=s,KM.set(d,t=s)),r=a}return e(t,...r)},tI=yf(O),qU=yf(_f),YU=yf(Of);var Ao={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},Wt=e=>(...t)=>({_$litDirective$:e,values:t}),$o=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 oa=class extends $o{constructor(t){if(super(t),this.it=nt,t.type!==Ao.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===nt||t==null)return this._t=void 0,this.it=t;if(t===tt)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:[]}}};oa.directiveName="unsafeHTML",oa.resultType=1;var rI=Wt(oa);var ut=e=>(t,r)=>{r!==void 0?r.addInitializer((()=>{customElements.define(e,t)})):customElements.define(e,t)};function nI(e){return G({...e,state:!0,attribute:!1})}function WU(e){return(t,r)=>{let n=typeof t=="function"?t:t[r];Object.assign(n,e)}}var _r=(e,t,r)=>(r.configurable=!0,r.enumerable=!0,Reflect.decorate&&typeof t!="object"&&Object.defineProperty(e,t,r),r);function oI(e,t){return(r,n,o)=>{let i=s=>s.renderRoot?.querySelector(e)??null;if(t){let{get:s,set:a}=typeof n=="object"?r:o??(()=>{let l=Symbol();return{get(){return this[l]},set(c){this[l]=c}}})();return _r(r,n,{get(){let l=s.call(this);return l===void 0&&(l=i(this),(l!==null||this.hasUpdated)&&a.call(this,l)),l}})}return _r(r,n,{get(){return i(this)}})}}var VU;function iI(e){return(t,r)=>_r(t,r,{get(){return(this.renderRoot??(VU??=document.createDocumentFragment())).querySelectorAll(e)}})}function sI(e){return(t,r)=>_r(t,r,{async get(){return await this.updateComplete,this.renderRoot?.querySelector(e)??null}})}function GU(e){return(t,r)=>{let{slot:n,selector:o}=e??{},i="slot"+(n?`[name=${n}]`:":not([name])");return _r(t,r,{get(){let s=this.renderRoot?.querySelector(i),a=s?.assignedElements(e)??[];return o===void 0?a:a.filter((l=>l.matches(o)))}})}}function QU(e){return(t,r)=>{let{slot:n}=e??{},o="slot"+(n?`[name=${n}]`:":not([name])");return _r(t,r,{get(){return this.renderRoot?.querySelector(o)?.assignedNodes(e)??[]}})}}var aI=function(e,t,r,n){var o=arguments.length,i=o<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(i=(o<3?s(i):o>3?s(t,r,i):s(t,r))||i);return o>3&&i&&Object.defineProperty(t,r,i),i},lI=function(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)},et=class extends Io.LitElement{constructor(t={}){super(),this.goBright=!1,this.rxSubscriptions=[],this.elementDomReadyDeferred=ct.plugins.smartpromise.defer(),this.elementDomReady=this.elementDomReadyDeferred.promise,this.startupFunctions=[],this.garbageFunctions=[],this.domtoolsPromise=ct.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.themeChanged&&this.themeChanged(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"))}};aI([Io.property({type:Boolean}),lI("design:type",Boolean)],et.prototype,"goBright",void 0),aI([Io.property(),lI("design:type",ct.DomTools)],et.prototype,"domtools",void 0);var _0={};me(_0,{asyncAppend:()=>A0,resolve:()=>dI,resolveExec:()=>c7,subscribe:()=>u7,subscribeWithTemplate:()=>pI,until:()=>$0});var{I:XU}=Lf,w0=e=>e===null||typeof e!="object"&&typeof e!="function",JU={HTML:1,SVG:2,MATHML:3},ZU=(e,t)=>t===void 0?e?._$litType$!==void 0:e?._$litType$===t,KU=e=>e?._$litType$?.h!=null,e7=e=>e?._$litDirective$!==void 0,t7=e=>e?._$litDirective$,S0=e=>e.strings===void 0,cI=()=>document.createComment(""),k0=(e,t,r)=>{let n=e._$AA.parentNode,o=t===void 0?e._$AB:t._$AA;if(r===void 0){let i=n.insertBefore(cI(),o),s=n.insertBefore(cI(),o);r=new XU(i,s,e,e.options)}else{let i=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(i!==o||a){let l=r._$AA;for(;l!==i;){let c=l.nextSibling;n.insertBefore(l,o),l=c}}}return r},T0=(e,t,r=e)=>(e._$AI(t,r),e),r7={},n7=(e,t=r7)=>e._$AH=t,o7=e=>e._$AH,i7=e=>{e._$AR(),e._$AA.remove()},D0=e=>{e._$AR()};var Bl=(e,t)=>{let r=e._$AN;if(r===void 0)return!1;for(let n of r)n._$AO?.(t,!1),Bl(n,t);return!0},bf=e=>{let t,r;do{if((t=e._$AM)===void 0)break;r=t._$AN,r.delete(e),e=t}while(r?.size===0)},uI=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),l7(t)}};function s7(e){this._$AN!==void 0?(bf(this),this._$AM=e,uI(this)):this._$AM=e}function a7(e,t=!1,r=0){let n=this._$AH,o=this._$AN;if(o!==void 0&&o.size!==0)if(t)if(Array.isArray(n))for(let i=r;i<n.length;i++)Bl(n[i],!1),bf(n[i]);else n!=null&&(Bl(n,!1),bf(n));else Bl(this,e)}var l7=e=>{e.type==Ao.CHILD&&(e._$AP??=a7,e._$AQ??=s7)},yr=class extends $o{constructor(){super(...arguments),this._$AN=void 0}_$AT(t,r,n){super._$AT(t,r,n),uI(this),this.isConnected=t._$AU}_$AO(t,r=!0){t!==this.isConnected&&(this.isConnected=t,t?this.reconnected?.():this.disconnected?.()),r&&(Bl(this,t),bf(this))}setValue(t){if(S0(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 C0=class extends yr{constructor(){super(...arguments),this.hasPromiseSettled=!1}render(t){return this.promise!==t&&(this.promise=t,this.isConnected&&this.handlePromise(t)),tt}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)}},dI=Wt(C0),c7=e=>dI(e());var E0=class extends yr{constructor(){super(...arguments),this.sub=null}render(t){return this.observable!==t&&(this.sub?.unsubscribe(),this.observable=t,this.isConnected&&this.subscribe(t)),tt}subscribe(t){this.sub=t.subscribe(r=>{this.setValue(r)})}disconnected(){this.sub?.unsubscribe()}reconnected(){this.subscribe(this.observable)}},u7=Wt(E0);var M0=class extends yr{constructor(){super(...arguments),this.sub=null}render(t,r){return(this.observable!==t||this.templateFn!==r)&&(this.sub?.unsubscribe(),this.observable=t,this.templateFn=r,this.isConnected&&this.startSubscription()),tt}startSubscription(){this.sub=this.observable.subscribe(t=>{let r=this.templateFn(t);this.setValue(r)})}disconnected(){this.sub?.unsubscribe()}reconnected(){this.startSubscription()}},pI=Wt(M0);var I0=async(e,t)=>{for await(let r of e)if(await t(r)===!1)return},Pi=class{constructor(t){this.G=t}disconnect(){this.G=void 0}reconnect(t){this.G=t}deref(){return this.G}},Fi=class{constructor(){this.Y=void 0,this.Z=void 0}get(){return this.Y}pause(){this.Y??=new Promise((t=>this.Z=t))}resume(){this.Z?.(),this.Y=this.Z=void 0}};var fI=e=>!w0(e)&&typeof e.then=="function",mI=1073741823,vf=class extends yr{constructor(){super(...arguments),this._$Cwt=mI,this._$Cbt=[],this._$CK=new Pi(this),this._$CX=new Fi}render(...t){return t.find((r=>!fI(r)))??tt}update(t,r){let n=this._$Cbt,o=n.length;this._$Cbt=r;let i=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(!fI(l))return this._$Cwt=a,l;a<o&&l===n[a]||(this._$Cwt=mI,o=0,Promise.resolve(l).then((async c=>{for(;s.get();)await s.get();let u=i.deref();if(u!==void 0){let d=u._$Cbt.indexOf(l);d>-1&&d<u._$Cwt&&(u._$Cwt=d,u.setValue(c))}})))}return tt}disconnected(){this._$CK.disconnect(),this._$CX.pause()}reconnected(){this._$CK.reconnect(this),this._$CX.resume()}},$0=Wt(vf);var ia=class extends yr{constructor(){super(...arguments),this._$CK=new Pi(this),this._$CX=new Fi}render(t,r){return tt}update(t,[r,n]){if(this.isConnected||this.disconnected(),r===this._$CJ)return tt;this._$CJ=r;let o=0,{_$CK:i,_$CX:s}=this;return I0(r,(async a=>{for(;s.get();)await s.get();let l=i.deref();if(l!==void 0){if(l._$CJ!==r)return!1;n!==void 0&&(a=n(a,o)),l.commitValue(a,o),o++}return!0})),tt}commitValue(t,r){this.setValue(t)}disconnected(){this._$CK.disconnect(),this._$CX.pause()}reconnected(){this._$CK.reconnect(this),this._$CX.resume()}},d7=Wt(ia);var A0=Wt(class extends ia{constructor(e){if(super(e),e.type!==Ao.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&&D0(this._$Ctt);let r=k0(this._$Ctt);T0(r,e)}});var N=xf.getSingleton();var Le={base:`'Geist Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif`,mono:`'Geist Mono', ui-monospace, SFMono-Regular, "SF Mono", Consolas, "Liberation Mono", Menlo, monospace`},b={background:{primary:N.bdTheme("#ffffff","#09090b"),secondary:N.bdTheme("#fafafa","#18181b"),muted:N.bdTheme("#f4f4f5","#27272a"),card:N.bdTheme("#ffffff","#0f0f12"),elevated:N.bdTheme("#ffffff","#1a1a1e")},border:{default:N.bdTheme("#e4e4e7","#27272a"),muted:N.bdTheme("#f4f4f5","#3f3f46"),subtle:N.bdTheme("#f0f0f2","#1f1f23")},text:{primary:N.bdTheme("#09090b","#fafafa"),secondary:N.bdTheme("#71717a","#a1a1aa"),muted:N.bdTheme("#a1a1aa","#71717a")},status:{operational:N.bdTheme("#16a34a","#22c55e"),degraded:N.bdTheme("#d97706","#fbbf24"),partial:N.bdTheme("#dc2626","#f87171"),major:N.bdTheme("#b91c1c","#ef4444"),maintenance:N.bdTheme("#2563eb","#60a5fa")},accent:{primary:N.bdTheme("#09090b","#fafafa"),hover:N.bdTheme("#18181b","#e4e4e7"),focus:N.bdTheme("#3b82f6","#60a5fa")}},Me={xs:"0 1px 2px 0 rgba(0, 0, 0, 0.03)",sm:"0 1px 3px 0 rgba(0, 0, 0, 0.06), 0 1px 2px -1px rgba(0, 0, 0, 0.06)",base:"0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05)",md:"0 6px 12px -2px rgba(0, 0, 0, 0.08), 0 3px 7px -3px rgba(0, 0, 0, 0.05)",lg:"0 12px 24px -4px rgba(0, 0, 0, 0.1), 0 6px 12px -6px rgba(0, 0, 0, 0.05)",xl:"0 24px 48px -12px rgba(0, 0, 0, 0.12), 0 12px 24px -12px rgba(0, 0, 0, 0.05)",inner:"inset 0 2px 4px 0 rgba(0, 0, 0, 0.04)",glow:"0 0 20px -5px rgba(34, 197, 94, 0.3)"},xe={xs:"3px",sm:"4px",base:"6px",md:"8px",lg:"12px",xl:"16px","2xl":"24px",full:"9999px"},C={xs:"4px",sm:"8px",md:"16px",lg:"24px",xl:"32px","2xl":"48px","3xl":"64px","4xl":"96px"},K={default:"cubic-bezier(0.4, 0, 0.2, 1)",smooth:"cubic-bezier(0.4, 0, 0.6, 1)",bounce:"cubic-bezier(0.68, -0.55, 0.265, 1.55)",snappy:"cubic-bezier(0.2, 0, 0, 1)",spring:"cubic-bezier(0.175, 0.885, 0.32, 1.275)"},se={instant:"50ms",fast:"100ms",normal:"200ms",slow:"300ms",slower:"500ms",slowest:"800ms"},sa={operational:N.bdTheme("linear-gradient(135deg, rgba(22, 163, 74, 0.08) 0%, rgba(22, 163, 74, 0.02) 100%)","linear-gradient(135deg, rgba(34, 197, 94, 0.12) 0%, rgba(34, 197, 94, 0.03) 100%)"),degraded:N.bdTheme("linear-gradient(135deg, rgba(217, 119, 6, 0.08) 0%, rgba(217, 119, 6, 0.02) 100%)","linear-gradient(135deg, rgba(251, 191, 36, 0.12) 0%, rgba(251, 191, 36, 0.03) 100%)"),partial:N.bdTheme("linear-gradient(135deg, rgba(220, 38, 38, 0.08) 0%, rgba(220, 38, 38, 0.02) 100%)","linear-gradient(135deg, rgba(248, 113, 113, 0.12) 0%, rgba(248, 113, 113, 0.03) 100%)"),major:N.bdTheme("linear-gradient(135deg, rgba(185, 28, 28, 0.10) 0%, rgba(185, 28, 28, 0.03) 100%)","linear-gradient(135deg, rgba(239, 68, 68, 0.15) 0%, rgba(239, 68, 68, 0.04) 100%)"),maintenance:N.bdTheme("linear-gradient(135deg, rgba(37, 99, 235, 0.08) 0%, rgba(37, 99, 235, 0.02) 100%)","linear-gradient(135deg, rgba(96, 165, 250, 0.12) 0%, rgba(96, 165, 250, 0.03) 100%)")},q8e={light:"background: rgba(255, 255, 255, 0.7); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);",dark:"background: rgba(9, 9, 11, 0.8); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);",subtle:N.bdTheme("background: rgba(255, 255, 255, 0.5); backdrop-filter: blur(8px);","background: rgba(9, 9, 11, 0.6); backdrop-filter: blur(8px);")},Y8e={operational:"0 0 20px -5px rgba(34, 197, 94, 0.4)",degraded:"0 0 20px -5px rgba(251, 191, 36, 0.4)",partial:"0 0 20px -5px rgba(248, 113, 113, 0.4)",major:"0 0 20px -5px rgba(239, 68, 68, 0.5)",maintenance:"0 0 20px -5px rgba(96, 165, 250, 0.4)"},Or=Oe`
|
|
263
|
+
`,BU=async(e,t={})=>{let r=await Sn.setupDomTools(t);return r.runOnce("elementBasicSetup",async()=>{r.setGlobalStyles(JM)}),r};var hf={};he(hf,{cssGridColumns:()=>zU});var zU=(e,t)=>{let r="";for(let n=0;n<e;n++)r+=` calc((100%/${e}) - (${t*(e-1)}px/${e}))`;return r};var gf={};he(gf,{SweetScroll:()=>x0.default,smartdelay:()=>be,smartmarkdown:()=>ta,smartpromise:()=>fe,smartrouter:()=>Do,smartrx:()=>Ee,smartstate:()=>Co,smartstring:()=>jr,smarturl:()=>Eo,typedrequest:()=>Kt});var x0=Qt(u0(),1);var y0=Qt(Kl(),1),$o={css:Oe,unsafeCSS:h,LitElement:Mn,property:G};var xf=class e{static{this.instance=null}static getSingleton(){return e.instance||(e.instance=new e),e.instance}constructor(){this.domtoolsPromise=Sn.setupDomTools(),this.goBright=!1,this.bdVarTripletStore=[],this.cssGridColumns=(t,r)=>{let n="";for(let o=0;o<t;o++)n+=` calc((100%/${t}) - (${r*(t-1)}px/${t}))`;return $o.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 At.staticStyles}cssForDesktop(t){return h(wn.cssForDesktop(t))}cssForNotebook(t){return h(wn.cssForNotebook(t))}cssForTablet(t){return h(wn.cssForTablet(t))}cssForPhablet(t){return h(wn.cssForPhablet(t))}cssForPhone(t){return h(wn.cssForPhone(t))}bdTheme(t,r){let n,o;Sn.getGlobalDomToolsSync()?o=Sn.getGlobalDomToolsSync().themeManager.goBrightBoolean?t:r:o=r;let i=this.bdVarTripletStore.find(s=>s.darkValue===r&&s.brightValue===t);if(i)n=i.cssVarName;else{let s={cssVarName:`--${y0.uni()}`,brightValue:t,darkValue:r};this.bdVarTripletStore.push(s),this.domtoolsPromise.then(async a=>{await a.domReady.promise,document.body.style.setProperty(s.cssVarName,o)}),n=s.cssVarName}return $o.unsafeCSS(`var(${n}, ${o})`)}};var b0=Symbol.for(""),HU=e=>{if(e?.r===b0)return e?._$litStatic$},eI=e=>({_$litStatic$:e,r:b0}),UU=(e,...t)=>({_$litStatic$:t.reduce(((r,n,o)=>r+(i=>{if(i._$litStatic$!==void 0)return i._$litStatic$;throw Error(`Value passed to 'literal' function must be a 'literal' result: ${i}. Use 'unsafeStatic' to pass non-literal values, but
|
|
264
|
+
take care to ensure page security.`)})(n)+e[o+1]),e[0]),r:b0}),KM=new Map,yf=e=>(t,...r)=>{let n=r.length,o,i,s=[],a=[],l,c=0,u=!1;for(;c<n;){for(l=t[c];c<n&&(i=r[c],(o=HU(i))!==void 0);)l+=o+t[++c],u=!0;c!==n&&a.push(i),s.push(l),c++}if(c===n&&s.push(t[n]),u){let d=s.join("$$lit$$");(t=KM.get(d))===void 0&&(s.raw=s,KM.set(d,t=s)),r=a}return e(t,...r)},tI=yf(O),jU=yf(Af),qU=yf(_f);var _o={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},Wt=e=>(...t)=>({_$litDirective$:e,values:t}),Ao=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 oa=class extends Ao{constructor(t){if(super(t),this.it=nt,t.type!==_o.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===nt||t==null)return this._t=void 0,this.it=t;if(t===tt)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:[]}}};oa.directiveName="unsafeHTML",oa.resultType=1;var rI=Wt(oa);var ut=e=>(t,r)=>{r!==void 0?r.addInitializer((()=>{customElements.define(e,t)})):customElements.define(e,t)};function nI(e){return G({...e,state:!0,attribute:!1})}function YU(e){return(t,r)=>{let n=typeof t=="function"?t:t[r];Object.assign(n,e)}}var _r=(e,t,r)=>(r.configurable=!0,r.enumerable=!0,Reflect.decorate&&typeof t!="object"&&Object.defineProperty(e,t,r),r);function oI(e,t){return(r,n,o)=>{let i=s=>s.renderRoot?.querySelector(e)??null;if(t){let{get:s,set:a}=typeof n=="object"?r:o??(()=>{let l=Symbol();return{get(){return this[l]},set(c){this[l]=c}}})();return _r(r,n,{get(){let l=s.call(this);return l===void 0&&(l=i(this),(l!==null||this.hasUpdated)&&a.call(this,l)),l}})}return _r(r,n,{get(){return i(this)}})}}var WU;function iI(e){return(t,r)=>_r(t,r,{get(){return(this.renderRoot??(WU??=document.createDocumentFragment())).querySelectorAll(e)}})}function sI(e){return(t,r)=>_r(t,r,{async get(){return await this.updateComplete,this.renderRoot?.querySelector(e)??null}})}function VU(e){return(t,r)=>{let{slot:n,selector:o}=e??{},i="slot"+(n?`[name=${n}]`:":not([name])");return _r(t,r,{get(){let s=this.renderRoot?.querySelector(i),a=s?.assignedElements(e)??[];return o===void 0?a:a.filter((l=>l.matches(o)))}})}}function GU(e){return(t,r)=>{let{slot:n}=e??{},o="slot"+(n?`[name=${n}]`:":not([name])");return _r(t,r,{get(){return this.renderRoot?.querySelector(o)?.assignedNodes(e)??[]}})}}var aI=function(e,t,r,n){var o=arguments.length,i=o<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(i=(o<3?s(i):o>3?s(t,r,i):s(t,r))||i);return o>3&&i&&Object.defineProperty(t,r,i),i},lI=function(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)},et=class extends $o.LitElement{constructor(t={}){super(),this.goBright=!1,this.rxSubscriptions=[],this.elementDomReadyDeferred=ct.plugins.smartpromise.defer(),this.elementDomReady=this.elementDomReadyDeferred.promise,this.startupFunctions=[],this.garbageFunctions=[],this.domtoolsPromise=ct.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.themeChanged&&this.themeChanged(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"))}};aI([$o.property({type:Boolean}),lI("design:type",Boolean)],et.prototype,"goBright",void 0),aI([$o.property(),lI("design:type",ct.DomTools)],et.prototype,"domtools",void 0);var A0={};he(A0,{asyncAppend:()=>$0,resolve:()=>dI,resolveExec:()=>l7,subscribe:()=>c7,subscribeWithTemplate:()=>pI,until:()=>I0});var{I:QU}=Of,v0=e=>e===null||typeof e!="object"&&typeof e!="function",XU={HTML:1,SVG:2,MATHML:3},JU=(e,t)=>t===void 0?e?._$litType$!==void 0:e?._$litType$===t,ZU=e=>e?._$litType$?.h!=null,KU=e=>e?._$litDirective$!==void 0,e7=e=>e?._$litDirective$,w0=e=>e.strings===void 0,cI=()=>document.createComment(""),S0=(e,t,r)=>{let n=e._$AA.parentNode,o=t===void 0?e._$AB:t._$AA;if(r===void 0){let i=n.insertBefore(cI(),o),s=n.insertBefore(cI(),o);r=new QU(i,s,e,e.options)}else{let i=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(i!==o||a){let l=r._$AA;for(;l!==i;){let c=l.nextSibling;n.insertBefore(l,o),l=c}}}return r},k0=(e,t,r=e)=>(e._$AI(t,r),e),t7={},r7=(e,t=t7)=>e._$AH=t,n7=e=>e._$AH,o7=e=>{e._$AR(),e._$AA.remove()},T0=e=>{e._$AR()};var Bl=(e,t)=>{let r=e._$AN;if(r===void 0)return!1;for(let n of r)n._$AO?.(t,!1),Bl(n,t);return!0},bf=e=>{let t,r;do{if((t=e._$AM)===void 0)break;r=t._$AN,r.delete(e),e=t}while(r?.size===0)},uI=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),a7(t)}};function i7(e){this._$AN!==void 0?(bf(this),this._$AM=e,uI(this)):this._$AM=e}function s7(e,t=!1,r=0){let n=this._$AH,o=this._$AN;if(o!==void 0&&o.size!==0)if(t)if(Array.isArray(n))for(let i=r;i<n.length;i++)Bl(n[i],!1),bf(n[i]);else n!=null&&(Bl(n,!1),bf(n));else Bl(this,e)}var a7=e=>{e.type==_o.CHILD&&(e._$AP??=s7,e._$AQ??=i7)},yr=class extends Ao{constructor(){super(...arguments),this._$AN=void 0}_$AT(t,r,n){super._$AT(t,r,n),uI(this),this.isConnected=t._$AU}_$AO(t,r=!0){t!==this.isConnected&&(this.isConnected=t,t?this.reconnected?.():this.disconnected?.()),r&&(Bl(this,t),bf(this))}setValue(t){if(w0(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 D0=class extends yr{constructor(){super(...arguments),this.hasPromiseSettled=!1}render(t){return this.promise!==t&&(this.promise=t,this.isConnected&&this.handlePromise(t)),tt}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)}},dI=Wt(D0),l7=e=>dI(e());var C0=class extends yr{constructor(){super(...arguments),this.sub=null}render(t){return this.observable!==t&&(this.sub?.unsubscribe(),this.observable=t,this.isConnected&&this.subscribe(t)),tt}subscribe(t){this.sub=t.subscribe(r=>{this.setValue(r)})}disconnected(){this.sub?.unsubscribe()}reconnected(){this.subscribe(this.observable)}},c7=Wt(C0);var E0=class extends yr{constructor(){super(...arguments),this.sub=null}render(t,r){return(this.observable!==t||this.templateFn!==r)&&(this.sub?.unsubscribe(),this.observable=t,this.templateFn=r,this.isConnected&&this.startSubscription()),tt}startSubscription(){this.sub=this.observable.subscribe(t=>{let r=this.templateFn(t);this.setValue(r)})}disconnected(){this.sub?.unsubscribe()}reconnected(){this.startSubscription()}},pI=Wt(E0);var M0=async(e,t)=>{for await(let r of e)if(await t(r)===!1)return},Fi=class{constructor(t){this.G=t}disconnect(){this.G=void 0}reconnect(t){this.G=t}deref(){return this.G}},Ri=class{constructor(){this.Y=void 0,this.Z=void 0}get(){return this.Y}pause(){this.Y??=new Promise((t=>this.Z=t))}resume(){this.Z?.(),this.Y=this.Z=void 0}};var fI=e=>!v0(e)&&typeof e.then=="function",mI=1073741823,vf=class extends yr{constructor(){super(...arguments),this._$Cwt=mI,this._$Cbt=[],this._$CK=new Fi(this),this._$CX=new Ri}render(...t){return t.find((r=>!fI(r)))??tt}update(t,r){let n=this._$Cbt,o=n.length;this._$Cbt=r;let i=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(!fI(l))return this._$Cwt=a,l;a<o&&l===n[a]||(this._$Cwt=mI,o=0,Promise.resolve(l).then((async c=>{for(;s.get();)await s.get();let u=i.deref();if(u!==void 0){let d=u._$Cbt.indexOf(l);d>-1&&d<u._$Cwt&&(u._$Cwt=d,u.setValue(c))}})))}return tt}disconnected(){this._$CK.disconnect(),this._$CX.pause()}reconnected(){this._$CK.reconnect(this),this._$CX.resume()}},I0=Wt(vf);var ia=class extends yr{constructor(){super(...arguments),this._$CK=new Fi(this),this._$CX=new Ri}render(t,r){return tt}update(t,[r,n]){if(this.isConnected||this.disconnected(),r===this._$CJ)return tt;this._$CJ=r;let o=0,{_$CK:i,_$CX:s}=this;return M0(r,(async a=>{for(;s.get();)await s.get();let l=i.deref();if(l!==void 0){if(l._$CJ!==r)return!1;n!==void 0&&(a=n(a,o)),l.commitValue(a,o),o++}return!0})),tt}commitValue(t,r){this.setValue(t)}disconnected(){this._$CK.disconnect(),this._$CX.pause()}reconnected(){this._$CK.reconnect(this),this._$CX.resume()}},u7=Wt(ia);var $0=Wt(class extends ia{constructor(e){if(super(e),e.type!==_o.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&&T0(this._$Ctt);let r=S0(this._$Ctt);k0(r,e)}});var N=xf.getSingleton();var Le={base:`'Geist Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif`,mono:`'Geist Mono', ui-monospace, SFMono-Regular, "SF Mono", Consolas, "Liberation Mono", Menlo, monospace`},b={background:{primary:N.bdTheme("#ffffff","#09090b"),secondary:N.bdTheme("#fafafa","#18181b"),muted:N.bdTheme("#f4f4f5","#27272a"),card:N.bdTheme("#ffffff","#0f0f12"),elevated:N.bdTheme("#ffffff","#1a1a1e")},border:{default:N.bdTheme("#e4e4e7","#27272a"),muted:N.bdTheme("#f4f4f5","#3f3f46"),subtle:N.bdTheme("#f0f0f2","#1f1f23")},text:{primary:N.bdTheme("#09090b","#fafafa"),secondary:N.bdTheme("#71717a","#a1a1aa"),muted:N.bdTheme("#a1a1aa","#71717a")},status:{operational:N.bdTheme("#16a34a","#22c55e"),degraded:N.bdTheme("#d97706","#fbbf24"),partial:N.bdTheme("#dc2626","#f87171"),major:N.bdTheme("#b91c1c","#ef4444"),maintenance:N.bdTheme("#2563eb","#60a5fa")},accent:{primary:N.bdTheme("#09090b","#fafafa"),hover:N.bdTheme("#18181b","#e4e4e7"),focus:N.bdTheme("#3b82f6","#60a5fa")}},Me={xs:"0 1px 2px 0 rgba(0, 0, 0, 0.03)",sm:"0 1px 3px 0 rgba(0, 0, 0, 0.06), 0 1px 2px -1px rgba(0, 0, 0, 0.06)",base:"0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05)",md:"0 6px 12px -2px rgba(0, 0, 0, 0.08), 0 3px 7px -3px rgba(0, 0, 0, 0.05)",lg:"0 12px 24px -4px rgba(0, 0, 0, 0.1), 0 6px 12px -6px rgba(0, 0, 0, 0.05)",xl:"0 24px 48px -12px rgba(0, 0, 0, 0.12), 0 12px 24px -12px rgba(0, 0, 0, 0.05)",inner:"inset 0 2px 4px 0 rgba(0, 0, 0, 0.04)",glow:"0 0 20px -5px rgba(34, 197, 94, 0.3)"},xe={xs:"3px",sm:"4px",base:"6px",md:"8px",lg:"12px",xl:"16px","2xl":"24px",full:"9999px"},C={xs:"4px",sm:"8px",md:"16px",lg:"24px",xl:"32px","2xl":"48px","3xl":"64px","4xl":"96px"},K={default:"cubic-bezier(0.4, 0, 0.2, 1)",smooth:"cubic-bezier(0.4, 0, 0.6, 1)",bounce:"cubic-bezier(0.68, -0.55, 0.265, 1.55)",snappy:"cubic-bezier(0.2, 0, 0, 1)",spring:"cubic-bezier(0.175, 0.885, 0.32, 1.275)"},se={instant:"50ms",fast:"100ms",normal:"200ms",slow:"300ms",slower:"500ms",slowest:"800ms"},sa={operational:N.bdTheme("linear-gradient(135deg, rgba(22, 163, 74, 0.08) 0%, rgba(22, 163, 74, 0.02) 100%)","linear-gradient(135deg, rgba(34, 197, 94, 0.12) 0%, rgba(34, 197, 94, 0.03) 100%)"),degraded:N.bdTheme("linear-gradient(135deg, rgba(217, 119, 6, 0.08) 0%, rgba(217, 119, 6, 0.02) 100%)","linear-gradient(135deg, rgba(251, 191, 36, 0.12) 0%, rgba(251, 191, 36, 0.03) 100%)"),partial:N.bdTheme("linear-gradient(135deg, rgba(220, 38, 38, 0.08) 0%, rgba(220, 38, 38, 0.02) 100%)","linear-gradient(135deg, rgba(248, 113, 113, 0.12) 0%, rgba(248, 113, 113, 0.03) 100%)"),major:N.bdTheme("linear-gradient(135deg, rgba(185, 28, 28, 0.10) 0%, rgba(185, 28, 28, 0.03) 100%)","linear-gradient(135deg, rgba(239, 68, 68, 0.15) 0%, rgba(239, 68, 68, 0.04) 100%)"),maintenance:N.bdTheme("linear-gradient(135deg, rgba(37, 99, 235, 0.08) 0%, rgba(37, 99, 235, 0.02) 100%)","linear-gradient(135deg, rgba(96, 165, 250, 0.12) 0%, rgba(96, 165, 250, 0.03) 100%)")},j8e={light:"background: rgba(255, 255, 255, 0.7); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);",dark:"background: rgba(9, 9, 11, 0.8); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);",subtle:N.bdTheme("background: rgba(255, 255, 255, 0.5); backdrop-filter: blur(8px);","background: rgba(9, 9, 11, 0.6); backdrop-filter: blur(8px);")},q8e={operational:"0 0 20px -5px rgba(34, 197, 94, 0.4)",degraded:"0 0 20px -5px rgba(251, 191, 36, 0.4)",partial:"0 0 20px -5px rgba(248, 113, 113, 0.4)",major:"0 0 20px -5px rgba(239, 68, 68, 0.5)",maintenance:"0 0 20px -5px rgba(96, 165, 250, 0.4)"},Or=Oe`
|
|
265
265
|
/* Button styles */
|
|
266
266
|
.button {
|
|
267
267
|
display: inline-flex;
|
|
@@ -611,7 +611,7 @@ ${o}
|
|
|
611
611
|
white-space: nowrap;
|
|
612
612
|
border: 0;
|
|
613
613
|
}
|
|
614
|
-
`,
|
|
614
|
+
`,Y8e=e=>{switch(e){case"operational":return b.status.operational;case"degraded":return b.status.degraded;case"partial_outage":return b.status.partial;case"major_outage":return b.status.major;case"maintenance":return b.status.maintenance;default:return b.text.secondary}},W8e=e=>{switch(e){case"operational":return"\u2713";case"degraded":return"!";case"partial_outage":return"\u26A0";case"major_outage":return"\u2715";case"maintenance":return"\u{1F527}";default:return"?"}};var hI,_0,d7;hI=[ut("uplinternal-miniheading")];var zl=class extends(d7=et){static styles=[At.staticStyles,Oe`
|
|
615
615
|
:host {
|
|
616
616
|
display: block;
|
|
617
617
|
font-family: ${h(Le.base)};
|
|
@@ -630,7 +630,7 @@ ${o}
|
|
|
630
630
|
}
|
|
631
631
|
`];render(){return O`
|
|
632
632
|
<h5>${this.textContent}</h5>
|
|
633
|
-
`}};
|
|
633
|
+
`}};_0=xt(d7),zl=V(_0,0,"UplinternalMiniheading",hI,zl),E(_0,1,zl);var gI=()=>O`
|
|
634
634
|
<style>
|
|
635
635
|
.demo-container {
|
|
636
636
|
display: flex;
|
|
@@ -753,7 +753,7 @@ ${o}
|
|
|
753
753
|
</dees-demowrapper>
|
|
754
754
|
</div>
|
|
755
755
|
</div>
|
|
756
|
-
`;var xI,yI,bI,vI,wI,SI,kI,TI,ft,L0,N0,P0,F0,R0
|
|
756
|
+
`;var xI,yI,bI,vI,wI,SI,kI,TI,ft,O0,L0,N0,P0,F0,R0;TI=[ut("upl-statuspage-assetsselector")];var br=class extends(kI=et,SI=[G({type:Array})],wI=[G({type:String})],vI=[G({type:String})],bI=[G({type:Boolean})],yI=[G({type:Boolean})],xI=[G({type:Boolean})],kI){constructor(){super();J(this,O0,E(ft,8,this,[])),E(ft,11,this);J(this,L0,E(ft,12,this,"")),E(ft,15,this);J(this,N0,E(ft,16,this,"all")),E(ft,19,this);J(this,P0,E(ft,20,this,!1)),E(ft,23,this);J(this,F0,E(ft,24,this,!1)),E(ft,27,this);J(this,R0,E(ft,28,this,!1)),E(ft,31,this)}render(){let r=this.services.filter(i=>i.selected),n=r.length,o=this.getUniqueCategories();return O`
|
|
757
757
|
<div class="container">
|
|
758
758
|
<uplinternal-miniheading>Monitored Assets</uplinternal-miniheading>
|
|
759
759
|
|
|
@@ -891,7 +891,7 @@ ${o}
|
|
|
891
891
|
<div class="status-text">${n.currentStatus.replace(/_/g," ")}</div>
|
|
892
892
|
</div>
|
|
893
893
|
</div>
|
|
894
|
-
`)}`}};ft=xt(kI),L0=new WeakMap,N0=new WeakMap,P0=new WeakMap,F0=new WeakMap,R0=new WeakMap,
|
|
894
|
+
`)}`}};ft=xt(kI),O0=new WeakMap,L0=new WeakMap,N0=new WeakMap,P0=new WeakMap,F0=new WeakMap,R0=new WeakMap,V(ft,4,"services",SI,br,O0),V(ft,4,"filterText",wI,br,L0),V(ft,4,"filterCategory",vI,br,N0),V(ft,4,"showOnlySelected",bI,br,P0),V(ft,4,"loading",yI,br,F0),V(ft,4,"expanded",xI,br,R0),br=V(ft,0,"UplStatuspageAssetsselector",TI,br),ze(br,"demo",gI),ze(br,"styles",[N.defaultStyles,Or,Oe`
|
|
895
895
|
:host {
|
|
896
896
|
display: block;
|
|
897
897
|
background: transparent;
|
|
@@ -1399,7 +1399,7 @@ We will investigate and update you at the provided email.`)}}),t.addEventListene
|
|
|
1399
1399
|
</dees-demowrapper>
|
|
1400
1400
|
</div>
|
|
1401
1401
|
</div>
|
|
1402
|
-
`;var CI,EI,MI,II,$I,AI,_I,OI,LI,NI,PI,FI,RI,BI,zI,HI,UI,jI,qI,YI,WI,VI,GI,QI,XI,JI,te,z0,H0,U0,j0,q0,Y0,W0,V0,G0,Q0,X0,J0,Z0,K0,ey,ty,ry,ny,oy,iy,sy,ay,ly
|
|
1402
|
+
`;var CI,EI,MI,II,$I,AI,_I,OI,LI,NI,PI,FI,RI,BI,zI,HI,UI,jI,qI,YI,WI,VI,GI,QI,XI,JI,te,B0,z0,H0,U0,j0,q0,Y0,W0,V0,G0,Q0,X0,J0,Z0,K0,ey,ty,ry,ny,oy,iy,sy,ay,ly;JI=[ut("upl-statuspage-footer")];var Fe=class extends(XI=et,QI=[G({type:String})],GI=[G({type:String})],VI=[G({type:String})],WI=[G({type:String})],YI=[G({type:Boolean})],qI=[G({type:Number})],jI=[G({type:Number})],UI=[G({type:Array})],HI=[G({type:Array})],zI=[G({type:String})],BI=[G({type:String})],RI=[G({type:Boolean})],FI=[G({type:String})],PI=[G({type:Boolean})],NI=[G({type:String})],LI=[G({type:Boolean})],OI=[G({type:Boolean})],_I=[G({type:Boolean})],AI=[G({type:Boolean})],$I=[G({type:Array})],II=[G({type:String})],MI=[G({type:String})],EI=[G({type:Number})],CI=[G({type:Object})],XI){constructor(){super();J(this,B0,E(te,8,this,"")),E(te,11,this);J(this,z0,E(te,12,this,"")),E(te,15,this);J(this,H0,E(te,16,this,"")),E(te,19,this);J(this,U0,E(te,20,this,"")),E(te,23,this);J(this,j0,E(te,24,this,!1)),E(te,27,this);J(this,q0,E(te,28,this,null)),E(te,31,this);J(this,Y0,E(te,32,this,new Date().getFullYear())),E(te,35,this);J(this,W0,E(te,36,this,[])),E(te,39,this);J(this,V0,E(te,40,this,[])),E(te,43,this);J(this,G0,E(te,44,this,"")),E(te,47,this);J(this,Q0,E(te,48,this,"")),E(te,51,this);J(this,X0,E(te,52,this,!1)),E(te,55,this);J(this,J0,E(te,56,this,null)),E(te,59,this);J(this,Z0,E(te,60,this,!1)),E(te,63,this);J(this,K0,E(te,64,this,"")),E(te,67,this);J(this,ey,E(te,68,this,!1)),E(te,71,this);J(this,ty,E(te,72,this,!1)),E(te,75,this);J(this,ry,E(te,76,this,!1)),E(te,79,this);J(this,ny,E(te,80,this,!1)),E(te,83,this);J(this,oy,E(te,84,this,[])),E(te,87,this);J(this,iy,E(te,88,this,"en")),E(te,91,this);J(this,sy,E(te,92,this,"light")),E(te,95,this);J(this,ay,E(te,96,this,0)),E(te,99,this);J(this,ly,E(te,100,this,null)),E(te,103,this)}render(){return this.loading?O`
|
|
1403
1403
|
<div class="container">
|
|
1404
1404
|
<div class="loading-skeleton"></div>
|
|
1405
1405
|
</div>
|
|
@@ -1539,7 +1539,7 @@ We will investigate and update you at the provided email.`)}}),t.addEventListene
|
|
|
1539
1539
|
</div>
|
|
1540
1540
|
</div>
|
|
1541
1541
|
</div>
|
|
1542
|
-
`}isValidUrl(r){if(!r)return!1;try{return new URL(r),!0}catch{return r.startsWith("#")||r.startsWith("/")}}isValidEmail(r){return r?r.includes("@"):!1}formatLastUpdated(){if(!this.lastUpdated)return"Never";let r=new Date(this.lastUpdated),o=Date.now()-this.lastUpdated;if(o<6e4)return"Just now";if(o<36e5){let i=Math.floor(o/6e4);return`${i} minute${i!==1?"s":""} ago`}else if(o<864e5){let i=Math.floor(o/36e5);return`${i} hour${i!==1?"s":""} ago`}else return r.toLocaleDateString()}getSocialIcon(r){let n={twitter:O`<svg viewBox="0 0 24 24"><path d="M23.953 4.57a10 10 0 01-2.825.775 4.958 4.958 0 002.163-2.723c-.951.555-2.005.959-3.127 1.184a4.92 4.92 0 00-8.384 4.482C7.69 8.095 4.067 6.13 1.64 3.162a4.822 4.822 0 00-.666 2.475c0 1.71.87 3.213 2.188 4.096a4.904 4.904 0 01-2.228-.616v.06a4.923 4.923 0 003.946 4.827 4.996 4.996 0 01-2.212.085 4.936 4.936 0 004.604 3.417 9.867 9.867 0 01-6.102 2.105c-.39 0-.779-.023-1.17-.067a13.995 13.995 0 007.557 2.209c9.053 0 13.998-7.496 13.998-13.985 0-.21 0-.42-.015-.63A9.935 9.935 0 0024 4.59z"/></svg>`,github:O`<svg viewBox="0 0 24 24"><path d="M12 .297c-6.63 0-12 5.373-12 12 0 5.303 3.438 9.8 8.205 11.385.6.113.82-.258.82-.577 0-.285-.01-1.04-.015-2.04-3.338.724-4.042-1.61-4.042-1.61C4.422 18.07 3.633 17.7 3.633 17.7c-1.087-.744.084-.729.084-.729 1.205.084 1.838 1.236 1.838 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3-5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523.105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873.12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92.42.36.81 1.096.81 2.22 0 1.606-.015 2.896-.015 3.286 0 .315.21.69.825.57C20.565 22.092 24 17.592 24 12.297c0-6.627-5.373-12-12-12"/></svg>`,linkedin:O`<svg viewBox="0 0 24 24"><path d="M20.447 20.452h-3.554v-5.569c0-1.328-.027-3.037-1.852-3.037-1.853 0-2.136 1.445-2.136 2.939v5.667H9.351V9h3.414v1.561h.046c.477-.9 1.637-1.85 3.37-1.85 3.601 0 4.267 2.37 4.267 5.455v6.286zM5.337 7.433c-1.144 0-2.063-.926-2.063-2.065 0-1.138.92-2.063 2.063-2.063 1.14 0 2.064.925 2.064 2.063 0 1.139-.925 2.065-2.064 2.065zm1.782 13.019H3.555V9h3.564v11.452zM22.225 0H1.771C.792 0 0 .774 0 1.729v20.542C0 23.227.792 24 1.771 24h20.451C23.2 24 24 23.227 24 22.271V1.729C24 .774 23.2 0 22.222 0h.003z"/></svg>`,facebook:O`<svg viewBox="0 0 24 24"><path d="M24 12.073c0-6.627-5.373-12-12-12s-12 5.373-12 12c0 5.99 4.388 10.954 10.125 11.854v-8.385H7.078v-3.47h3.047V9.43c0-3.007 1.792-4.669 4.533-4.669 1.312 0 2.686.235 2.686.235v2.953H15.83c-1.491 0-1.956.925-1.956 1.874v2.25h3.328l-.532 3.47h-2.796v8.385C19.612 23.027 24 18.062 24 12.073z"/></svg>`,youtube:O`<svg viewBox="0 0 24 24"><path d="M23.498 6.186a3.016 3.016 0 0 0-2.122-2.136C19.505 3.545 12 3.545 12 3.545s-7.505 0-9.377.505A3.017 3.017 0 0 0 .502 6.186C0 8.07 0 12 0 12s0 3.93.502 5.814a3.016 3.016 0 0 0 2.122 2.136c1.871.505 9.376.505 9.376.505s7.505 0 9.377-.505a3.015 3.015 0 0 0 2.122-2.136C24 15.93 24 12 24 12s0-3.93-.502-5.814zM9.545 15.568V8.432L15.818 12l-6.273 3.568z"/></svg>`,instagram:O`<svg viewBox="0 0 24 24"><path d="M12 2.163c3.204 0 3.584.012 4.85.07 3.252.148 4.771 1.691 4.919 4.919.058 1.265.069 1.645.069 4.849 0 3.205-.012 3.584-.069 4.849-.149 3.225-1.664 4.771-4.919 4.919-1.266.058-1.644.07-4.85.07-3.204 0-3.584-.012-4.849-.07-3.26-.149-4.771-1.699-4.919-4.92-.058-1.265-.07-1.644-.07-4.849 0-3.204.013-3.583.07-4.849.149-3.227 1.664-4.771 4.919-4.919 1.266-.057 1.645-.069 4.849-.069zm0-2.163c-3.259 0-3.667.014-4.947.072-4.358.2-6.78 2.618-6.98 6.98-.059 1.281-.073 1.689-.073 4.948 0 3.259.014 3.668.072 4.948.2 4.358 2.618 6.78 6.98 6.98 1.281.058 1.689.072 4.948.072 3.259 0 3.668-.014 4.948-.072 4.354-.2 6.782-2.618 6.979-6.98.059-1.28.073-1.689.073-4.948 0-3.259-.014-3.667-.072-4.947-.196-4.354-2.617-6.78-6.979-6.98-1.281-.059-1.69-.073-4.949-.073zM5.838 12a6.162 6.162 0 1 1 12.324 0 6.162 6.162 0 0 1-12.324 0zM12 16a4 4 0 1 1 0-8 4 4 0 0 1 0 8zm4.965-10.405a1.44 1.44 0 1 1 2.881.001 1.44 1.44 0 0 1-2.881-.001z"/></svg>`,slack:O`<svg viewBox="0 0 24 24"><path d="M5.042 15.165a2.528 2.528 0 0 1-2.52 2.523A2.528 2.528 0 0 1 0 15.165a2.527 2.527 0 0 1 2.522-2.52h2.52v2.52zM6.313 15.165a2.527 2.527 0 0 1 2.521-2.52 2.527 2.527 0 0 1 2.521 2.52v6.313A2.528 2.528 0 0 1 8.834 24a2.528 2.528 0 0 1-2.521-2.522v-6.313zM8.834 5.042a2.528 2.528 0 0 1-2.521-2.52A2.528 2.528 0 0 1 8.834 0a2.528 2.528 0 0 1 2.521 2.522v2.52H8.834zM8.834 6.313a2.528 2.528 0 0 1 2.521 2.521 2.528 2.528 0 0 1-2.521 2.521H2.522A2.528 2.528 0 0 1 0 8.834a2.528 2.528 0 0 1 2.522-2.521h6.312zM18.956 8.834a2.528 2.528 0 0 1 2.522-2.521A2.528 2.528 0 0 1 24 8.834a2.528 2.528 0 0 1-2.522 2.521h-2.522V8.834zM17.688 8.834a2.528 2.528 0 0 1-2.523 2.521 2.527 2.527 0 0 1-2.52-2.521V2.522A2.527 2.527 0 0 1 15.165 0a2.528 2.528 0 0 1 2.523 2.522v6.312zM15.165 18.956a2.528 2.528 0 0 1 2.523 2.522A2.528 2.528 0 0 1 15.165 24a2.527 2.527 0 0 1-2.52-2.522v-2.522h2.52zM15.165 17.688a2.527 2.527 0 0 1-2.52-2.523 2.526 2.526 0 0 1 2.52-2.52h6.313A2.527 2.527 0 0 1 24 15.165a2.528 2.528 0 0 1-2.522 2.523h-6.313z"/></svg>`,discord:O`<svg viewBox="0 0 24 24"><path d="M20.317 4.3698a19.7913 19.7913 0 00-4.8851-1.5152.0741.0741 0 00-.0785.0371c-.211.3753-.4447.8648-.6083 1.2495-1.8447-.2762-3.68-.2762-5.4868 0-.1636-.3933-.4058-.8742-.6177-1.2495a.077.077 0 00-.0785-.037 19.7363 19.7363 0 00-4.8852 1.515.0699.0699 0 00-.0321.0277C.5334 9.0458-.319 13.5799.0992 18.0578a.0824.0824 0 00.0312.0561c2.0528 1.5076 4.0413 2.4228 5.9929 3.0294a.0777.0777 0 00.0842-.0276c.4616-.6304.8731-1.2952 1.226-1.9942a.076.076 0 00-.0416-.1057c-.6528-.2476-1.2743-.5495-1.8722-.8923a.077.077 0 01-.0076-.1277c.1258-.0943.2517-.1923.3718-.2914a.0743.0743 0 01.0776-.0105c3.9278 1.7933 8.18 1.7933 12.0614 0a.0739.0739 0 01.0785.0095c.1202.099.246.1981.3728.2924a.077.077 0 01-.0066.1276 12.2986 12.2986 0 01-1.873.8914.0766.0766 0 00-.0407.1067c.3604.698.7719 1.3628 1.225 1.9932a.076.076 0 00.0842.0286c1.961-.6067 3.9495-1.5219 6.0023-3.0294a.077.077 0 00.0313-.0552c.5004-5.177-.8382-9.6739-3.5485-13.6604a.061.061 0 00-.0312-.0286zM8.02 15.3312c-1.1825 0-2.1569-1.0857-2.1569-2.419 0-1.3332.9555-2.4189 2.157-2.4189 1.2108 0 2.1757 1.0952 2.1568 2.419 0 1.3332-.9555 2.4189-2.1569 2.4189zm7.9748 0c-1.1825 0-2.1569-1.0857-2.1569-2.419 0-1.3332.9554-2.4189 2.1569-2.4189 1.2108 0 2.1757 1.0952 2.1568 2.419 0 1.3332-.946 2.4189-2.1568 2.4189Z"/></svg>`,generic:O`<svg viewBox="0 0 24 24"><path d="M13.46,12L19,17.54V19H17.54L12,13.46L6.46,19H5V17.54L10.54,12L5,6.46V5H6.46L12,10.54L17.54,5H19V6.46L13.46,12Z"/></svg>`};return n[r.toLowerCase()]||n.generic}handleLinkClick(r,n,o,i){this.dispatchEvent(new CustomEvent("footerLinkClick",{detail:{type:n,url:o,label:i},bubbles:!0,composed:!0}))}handleSubscribeClick(){this.dispatchEvent(new CustomEvent("subscribeClick",{bubbles:!0,composed:!0}))}handleReportIncidentClick(){this.dispatchEvent(new CustomEvent("reportIncidentClick",{bubbles:!0,composed:!0}))}handleLanguageChange(r){let o=r.target.value;this.currentLanguage=o,this.dispatchEvent(new CustomEvent("languageChange",{detail:{language:o},bubbles:!0,composed:!0}))}handleThemeToggle(){let r=this.currentTheme==="dark"?"light":"dark";this.currentTheme=r,this.dispatchEvent(new CustomEvent("themeToggle",{detail:{theme:r},bubbles:!0,composed:!0}))}dispatchReportNewIncident(){this.handleReportIncidentClick()}dispatchStatusSubscribe(){this.handleSubscribeClick()}};te=xt(XI),z0=new WeakMap,H0=new WeakMap,U0=new WeakMap,j0=new WeakMap,q0=new WeakMap,Y0=new WeakMap,W0=new WeakMap,V0=new WeakMap,G0=new WeakMap,Q0=new WeakMap,X0=new WeakMap,J0=new WeakMap,Z0=new WeakMap,K0=new WeakMap,ey=new WeakMap,ty=new WeakMap,ry=new WeakMap,ny=new WeakMap,oy=new WeakMap,iy=new WeakMap,sy=new WeakMap,ay=new WeakMap,ly=new WeakMap,
|
|
1542
|
+
`}isValidUrl(r){if(!r)return!1;try{return new URL(r),!0}catch{return r.startsWith("#")||r.startsWith("/")}}isValidEmail(r){return r?r.includes("@"):!1}formatLastUpdated(){if(!this.lastUpdated)return"Never";let r=new Date(this.lastUpdated),o=Date.now()-this.lastUpdated;if(o<6e4)return"Just now";if(o<36e5){let i=Math.floor(o/6e4);return`${i} minute${i!==1?"s":""} ago`}else if(o<864e5){let i=Math.floor(o/36e5);return`${i} hour${i!==1?"s":""} ago`}else return r.toLocaleDateString()}getSocialIcon(r){let n={twitter:O`<svg viewBox="0 0 24 24"><path d="M23.953 4.57a10 10 0 01-2.825.775 4.958 4.958 0 002.163-2.723c-.951.555-2.005.959-3.127 1.184a4.92 4.92 0 00-8.384 4.482C7.69 8.095 4.067 6.13 1.64 3.162a4.822 4.822 0 00-.666 2.475c0 1.71.87 3.213 2.188 4.096a4.904 4.904 0 01-2.228-.616v.06a4.923 4.923 0 003.946 4.827 4.996 4.996 0 01-2.212.085 4.936 4.936 0 004.604 3.417 9.867 9.867 0 01-6.102 2.105c-.39 0-.779-.023-1.17-.067a13.995 13.995 0 007.557 2.209c9.053 0 13.998-7.496 13.998-13.985 0-.21 0-.42-.015-.63A9.935 9.935 0 0024 4.59z"/></svg>`,github:O`<svg viewBox="0 0 24 24"><path d="M12 .297c-6.63 0-12 5.373-12 12 0 5.303 3.438 9.8 8.205 11.385.6.113.82-.258.82-.577 0-.285-.01-1.04-.015-2.04-3.338.724-4.042-1.61-4.042-1.61C4.422 18.07 3.633 17.7 3.633 17.7c-1.087-.744.084-.729.084-.729 1.205.084 1.838 1.236 1.838 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3-5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523.105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873.12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92.42.36.81 1.096.81 2.22 0 1.606-.015 2.896-.015 3.286 0 .315.21.69.825.57C20.565 22.092 24 17.592 24 12.297c0-6.627-5.373-12-12-12"/></svg>`,linkedin:O`<svg viewBox="0 0 24 24"><path d="M20.447 20.452h-3.554v-5.569c0-1.328-.027-3.037-1.852-3.037-1.853 0-2.136 1.445-2.136 2.939v5.667H9.351V9h3.414v1.561h.046c.477-.9 1.637-1.85 3.37-1.85 3.601 0 4.267 2.37 4.267 5.455v6.286zM5.337 7.433c-1.144 0-2.063-.926-2.063-2.065 0-1.138.92-2.063 2.063-2.063 1.14 0 2.064.925 2.064 2.063 0 1.139-.925 2.065-2.064 2.065zm1.782 13.019H3.555V9h3.564v11.452zM22.225 0H1.771C.792 0 0 .774 0 1.729v20.542C0 23.227.792 24 1.771 24h20.451C23.2 24 24 23.227 24 22.271V1.729C24 .774 23.2 0 22.222 0h.003z"/></svg>`,facebook:O`<svg viewBox="0 0 24 24"><path d="M24 12.073c0-6.627-5.373-12-12-12s-12 5.373-12 12c0 5.99 4.388 10.954 10.125 11.854v-8.385H7.078v-3.47h3.047V9.43c0-3.007 1.792-4.669 4.533-4.669 1.312 0 2.686.235 2.686.235v2.953H15.83c-1.491 0-1.956.925-1.956 1.874v2.25h3.328l-.532 3.47h-2.796v8.385C19.612 23.027 24 18.062 24 12.073z"/></svg>`,youtube:O`<svg viewBox="0 0 24 24"><path d="M23.498 6.186a3.016 3.016 0 0 0-2.122-2.136C19.505 3.545 12 3.545 12 3.545s-7.505 0-9.377.505A3.017 3.017 0 0 0 .502 6.186C0 8.07 0 12 0 12s0 3.93.502 5.814a3.016 3.016 0 0 0 2.122 2.136c1.871.505 9.376.505 9.376.505s7.505 0 9.377-.505a3.015 3.015 0 0 0 2.122-2.136C24 15.93 24 12 24 12s0-3.93-.502-5.814zM9.545 15.568V8.432L15.818 12l-6.273 3.568z"/></svg>`,instagram:O`<svg viewBox="0 0 24 24"><path d="M12 2.163c3.204 0 3.584.012 4.85.07 3.252.148 4.771 1.691 4.919 4.919.058 1.265.069 1.645.069 4.849 0 3.205-.012 3.584-.069 4.849-.149 3.225-1.664 4.771-4.919 4.919-1.266.058-1.644.07-4.85.07-3.204 0-3.584-.012-4.849-.07-3.26-.149-4.771-1.699-4.919-4.92-.058-1.265-.07-1.644-.07-4.849 0-3.204.013-3.583.07-4.849.149-3.227 1.664-4.771 4.919-4.919 1.266-.057 1.645-.069 4.849-.069zm0-2.163c-3.259 0-3.667.014-4.947.072-4.358.2-6.78 2.618-6.98 6.98-.059 1.281-.073 1.689-.073 4.948 0 3.259.014 3.668.072 4.948.2 4.358 2.618 6.78 6.98 6.98 1.281.058 1.689.072 4.948.072 3.259 0 3.668-.014 4.948-.072 4.354-.2 6.782-2.618 6.979-6.98.059-1.28.073-1.689.073-4.948 0-3.259-.014-3.667-.072-4.947-.196-4.354-2.617-6.78-6.979-6.98-1.281-.059-1.69-.073-4.949-.073zM5.838 12a6.162 6.162 0 1 1 12.324 0 6.162 6.162 0 0 1-12.324 0zM12 16a4 4 0 1 1 0-8 4 4 0 0 1 0 8zm4.965-10.405a1.44 1.44 0 1 1 2.881.001 1.44 1.44 0 0 1-2.881-.001z"/></svg>`,slack:O`<svg viewBox="0 0 24 24"><path d="M5.042 15.165a2.528 2.528 0 0 1-2.52 2.523A2.528 2.528 0 0 1 0 15.165a2.527 2.527 0 0 1 2.522-2.52h2.52v2.52zM6.313 15.165a2.527 2.527 0 0 1 2.521-2.52 2.527 2.527 0 0 1 2.521 2.52v6.313A2.528 2.528 0 0 1 8.834 24a2.528 2.528 0 0 1-2.521-2.522v-6.313zM8.834 5.042a2.528 2.528 0 0 1-2.521-2.52A2.528 2.528 0 0 1 8.834 0a2.528 2.528 0 0 1 2.521 2.522v2.52H8.834zM8.834 6.313a2.528 2.528 0 0 1 2.521 2.521 2.528 2.528 0 0 1-2.521 2.521H2.522A2.528 2.528 0 0 1 0 8.834a2.528 2.528 0 0 1 2.522-2.521h6.312zM18.956 8.834a2.528 2.528 0 0 1 2.522-2.521A2.528 2.528 0 0 1 24 8.834a2.528 2.528 0 0 1-2.522 2.521h-2.522V8.834zM17.688 8.834a2.528 2.528 0 0 1-2.523 2.521 2.527 2.527 0 0 1-2.52-2.521V2.522A2.527 2.527 0 0 1 15.165 0a2.528 2.528 0 0 1 2.523 2.522v6.312zM15.165 18.956a2.528 2.528 0 0 1 2.523 2.522A2.528 2.528 0 0 1 15.165 24a2.527 2.527 0 0 1-2.52-2.522v-2.522h2.52zM15.165 17.688a2.527 2.527 0 0 1-2.52-2.523 2.526 2.526 0 0 1 2.52-2.52h6.313A2.527 2.527 0 0 1 24 15.165a2.528 2.528 0 0 1-2.522 2.523h-6.313z"/></svg>`,discord:O`<svg viewBox="0 0 24 24"><path d="M20.317 4.3698a19.7913 19.7913 0 00-4.8851-1.5152.0741.0741 0 00-.0785.0371c-.211.3753-.4447.8648-.6083 1.2495-1.8447-.2762-3.68-.2762-5.4868 0-.1636-.3933-.4058-.8742-.6177-1.2495a.077.077 0 00-.0785-.037 19.7363 19.7363 0 00-4.8852 1.515.0699.0699 0 00-.0321.0277C.5334 9.0458-.319 13.5799.0992 18.0578a.0824.0824 0 00.0312.0561c2.0528 1.5076 4.0413 2.4228 5.9929 3.0294a.0777.0777 0 00.0842-.0276c.4616-.6304.8731-1.2952 1.226-1.9942a.076.076 0 00-.0416-.1057c-.6528-.2476-1.2743-.5495-1.8722-.8923a.077.077 0 01-.0076-.1277c.1258-.0943.2517-.1923.3718-.2914a.0743.0743 0 01.0776-.0105c3.9278 1.7933 8.18 1.7933 12.0614 0a.0739.0739 0 01.0785.0095c.1202.099.246.1981.3728.2924a.077.077 0 01-.0066.1276 12.2986 12.2986 0 01-1.873.8914.0766.0766 0 00-.0407.1067c.3604.698.7719 1.3628 1.225 1.9932a.076.076 0 00.0842.0286c1.961-.6067 3.9495-1.5219 6.0023-3.0294a.077.077 0 00.0313-.0552c.5004-5.177-.8382-9.6739-3.5485-13.6604a.061.061 0 00-.0312-.0286zM8.02 15.3312c-1.1825 0-2.1569-1.0857-2.1569-2.419 0-1.3332.9555-2.4189 2.157-2.4189 1.2108 0 2.1757 1.0952 2.1568 2.419 0 1.3332-.9555 2.4189-2.1569 2.4189zm7.9748 0c-1.1825 0-2.1569-1.0857-2.1569-2.419 0-1.3332.9554-2.4189 2.1569-2.4189 1.2108 0 2.1757 1.0952 2.1568 2.419 0 1.3332-.946 2.4189-2.1568 2.4189Z"/></svg>`,generic:O`<svg viewBox="0 0 24 24"><path d="M13.46,12L19,17.54V19H17.54L12,13.46L6.46,19H5V17.54L10.54,12L5,6.46V5H6.46L12,10.54L17.54,5H19V6.46L13.46,12Z"/></svg>`};return n[r.toLowerCase()]||n.generic}handleLinkClick(r,n,o,i){this.dispatchEvent(new CustomEvent("footerLinkClick",{detail:{type:n,url:o,label:i},bubbles:!0,composed:!0}))}handleSubscribeClick(){this.dispatchEvent(new CustomEvent("subscribeClick",{bubbles:!0,composed:!0}))}handleReportIncidentClick(){this.dispatchEvent(new CustomEvent("reportIncidentClick",{bubbles:!0,composed:!0}))}handleLanguageChange(r){let o=r.target.value;this.currentLanguage=o,this.dispatchEvent(new CustomEvent("languageChange",{detail:{language:o},bubbles:!0,composed:!0}))}handleThemeToggle(){let r=this.currentTheme==="dark"?"light":"dark";this.currentTheme=r,this.dispatchEvent(new CustomEvent("themeToggle",{detail:{theme:r},bubbles:!0,composed:!0}))}dispatchReportNewIncident(){this.handleReportIncidentClick()}dispatchStatusSubscribe(){this.handleSubscribeClick()}};te=xt(XI),B0=new WeakMap,z0=new WeakMap,H0=new WeakMap,U0=new WeakMap,j0=new WeakMap,q0=new WeakMap,Y0=new WeakMap,W0=new WeakMap,V0=new WeakMap,G0=new WeakMap,Q0=new WeakMap,X0=new WeakMap,J0=new WeakMap,Z0=new WeakMap,K0=new WeakMap,ey=new WeakMap,ty=new WeakMap,ry=new WeakMap,ny=new WeakMap,oy=new WeakMap,iy=new WeakMap,sy=new WeakMap,ay=new WeakMap,ly=new WeakMap,V(te,4,"companyName",QI,Fe,B0),V(te,4,"legalUrl",GI,Fe,z0),V(te,4,"supportEmail",VI,Fe,H0),V(te,4,"statusPageUrl",WI,Fe,U0),V(te,4,"whitelabel",YI,Fe,j0),V(te,4,"lastUpdated",qI,Fe,q0),V(te,4,"currentYear",jI,Fe,Y0),V(te,4,"socialLinks",UI,Fe,W0),V(te,4,"additionalLinks",HI,Fe,V0),V(te,4,"rssFeedUrl",zI,Fe,G0),V(te,4,"apiStatusUrl",BI,Fe,Q0),V(te,4,"loading",RI,Fe,X0),V(te,4,"errorMessage",FI,Fe,J0),V(te,4,"offline",PI,Fe,Z0),V(te,4,"latestStatusUpdate",NI,Fe,K0),V(te,4,"enableSubscribe",LI,Fe,ey),V(te,4,"enableReportIssue",OI,Fe,ty),V(te,4,"enableLanguageSelector",_I,Fe,ry),V(te,4,"enableThemeToggle",AI,Fe,ny),V(te,4,"languageOptions",$I,Fe,oy),V(te,4,"currentLanguage",II,Fe,iy),V(te,4,"currentTheme",MI,Fe,sy),V(te,4,"subscriberCount",EI,Fe,ay),V(te,4,"customBranding",CI,Fe,ly),Fe=V(te,0,"UplStatuspageFooter",JI,Fe),ze(Fe,"demo",DI),ze(Fe,"styles",[At.staticStyles,Or,Oe`
|
|
1543
1543
|
:host {
|
|
1544
1544
|
display: block;
|
|
1545
1545
|
background: ${b.background.primary};
|
|
@@ -1991,7 +1991,7 @@ We will investigate and update you at the provided email.`)}}),t.addEventListene
|
|
|
1991
1991
|
</dees-demowrapper>
|
|
1992
1992
|
</div>
|
|
1993
1993
|
</div>
|
|
1994
|
-
`;var KI,e$,t$,r$,n$,o$,i$,_t,uy,dy,py,fy
|
|
1994
|
+
`;var KI,e$,t$,r$,n$,o$,i$,_t,cy,uy,dy,py,fy;i$=[ut("upl-statuspage-header")];var Lr=class extends(o$=et,n$=[G({type:String})],r$=[G({type:Boolean})],t$=[G({type:Boolean})],e$=[G({type:String})],KI=[G({type:Boolean})],o$){constructor(){super();J(this,cy,E(_t,8,this,"Statuspage Title")),E(_t,11,this);J(this,uy,E(_t,12,this,!0)),E(_t,15,this);J(this,dy,E(_t,16,this,!0)),E(_t,19,this);J(this,py,E(_t,20,this,"")),E(_t,23,this);J(this,fy,E(_t,24,this,!1)),E(_t,27,this)}render(){return this.loading?O`
|
|
1995
1995
|
<div class="loading-skeleton"></div>
|
|
1996
1996
|
`:O`
|
|
1997
1997
|
<header>
|
|
@@ -2027,7 +2027,7 @@ We will investigate and update you at the provided email.`)}}),t.addEventListene
|
|
|
2027
2027
|
</nav>
|
|
2028
2028
|
</div>
|
|
2029
2029
|
</header>
|
|
2030
|
-
`}dispatchReportNewIncident(){this.dispatchEvent(new CustomEvent("reportNewIncident",{}))}dispatchStatusSubscribe(){this.dispatchEvent(new CustomEvent("statusSubscribe",{}))}};_t=xt(o$),
|
|
2030
|
+
`}dispatchReportNewIncident(){this.dispatchEvent(new CustomEvent("reportNewIncident",{}))}dispatchStatusSubscribe(){this.dispatchEvent(new CustomEvent("statusSubscribe",{}))}};_t=xt(o$),cy=new WeakMap,uy=new WeakMap,dy=new WeakMap,py=new WeakMap,fy=new WeakMap,V(_t,4,"pageTitle",n$,Lr,cy),V(_t,4,"showReportButton",r$,Lr,uy),V(_t,4,"showSubscribeButton",t$,Lr,dy),V(_t,4,"logoUrl",e$,Lr,py),V(_t,4,"loading",KI,Lr,fy),Lr=V(_t,0,"UplStatuspageHeader",i$,Lr),ze(Lr,"demo",ZI),ze(Lr,"styles",[At.staticStyles,Oe`
|
|
2031
2031
|
:host {
|
|
2032
2032
|
display: block;
|
|
2033
2033
|
background: ${N.bdTheme("rgba(255, 255, 255, 0.85)","rgba(9, 9, 11, 0.85)")};
|
|
@@ -2264,7 +2264,7 @@ We will investigate and update you at the provided email.`)}}),t.addEventListene
|
|
|
2264
2264
|
gap: 6px;
|
|
2265
2265
|
}
|
|
2266
2266
|
}
|
|
2267
|
-
`]),E(_t,1,Lr);var $y={};
|
|
2267
|
+
`]),E(_t,1,Lr);var $y={};he($y,{data:()=>Sf,requests:()=>Iy});var Iy={};var Cy={};he(Cy,{business:()=>gy,code:()=>xy,container:()=>yy,content:()=>vy,database:()=>my,descriptors:()=>by,finance:()=>hy,general:()=>wy,network:()=>wf,saas:()=>ky,storage:()=>Ty,website:()=>Dy});var gy={};var my={};var hy={};var xy={};var yy={};var by={};var vy={};var wy={};var wf={};he(wf,{ICnameDescriptor:()=>Sy});var Sy=class{};var ky={};var Ty={};var Dy={};var Sf={};he(Sf,{IUplinkProperty:()=>My,checks:()=>Ey});var Ey={};var My=class{wgOrgIdRef;wgPropertyIdRef;name;type;access;checkCollectionIdRefs};var a$=()=>O`
|
|
2268
2268
|
<style>
|
|
2269
2269
|
.demo-container {
|
|
2270
2270
|
display: flex;
|
|
@@ -2507,7 +2507,7 @@ Continuing remediation efforts.`,author:"Ops Team"}]}],past:[]}},n="none";t.curr
|
|
|
2507
2507
|
</dees-demowrapper>
|
|
2508
2508
|
</div>
|
|
2509
2509
|
</div>
|
|
2510
|
-
`;var c$,u$,d$,p$,f$,m$,h$,g$,x$,
|
|
2510
|
+
`;var l$,c$,u$,d$,p$,f$,m$,h$,g$,x$,We,Ay,_y,Oy,Ly,Ny,Py,Fy,Ry;x$=[ut("upl-statuspage-incidents")];var tr=class extends(g$=et,h$=[G({type:Array})],m$=[G({type:Array})],f$=[G({type:Boolean})],p$=[G({type:Boolean})],d$=[G({type:Number})],u$=[G({type:Array})],c$=[G({type:Object,state:!0})],l$=[G({type:Object,state:!0})],g$){constructor(){super();J(this,Ay,E(We,8,this,[])),E(We,11,this);J(this,_y,E(We,12,this,[])),E(We,15,this);J(this,Oy,E(We,16,this,!1)),E(We,19,this);J(this,Ly,E(We,20,this,!1)),E(We,23,this);J(this,Ny,E(We,24,this,90)),E(We,27,this);J(this,Py,E(We,28,this,[])),E(We,31,this);J(this,Fy,E(We,32,this,new Set)),E(We,35,this);J(this,Ry,E(We,36,this,new Set)),E(We,39,this);ze(this,"statusIcons",{investigating:"lucide:Search",identified:"lucide:Target",monitoring:"lucide:Eye",resolved:"lucide:CheckCircle",postmortem:"lucide:FileText"});ze(this,"statusLabels",{investigating:"Investigating",identified:"Identified",monitoring:"Monitoring",resolved:"Resolved",postmortem:"Postmortem"})}async connectedCallback(){await super.connectedCallback(),this.subscribedIncidentIds.length>0&&(this.subscribedIncidents=new Set(this.subscribedIncidentIds))}updated(r){super.updated(r),r.has("subscribedIncidentIds")&&(this.subscribedIncidents=new Set(this.subscribedIncidentIds))}render(){return O`
|
|
2511
2511
|
<div class="container">
|
|
2512
2512
|
<uplinternal-miniheading>Current Incidents</uplinternal-miniheading>
|
|
2513
2513
|
${this.loading?O`
|
|
@@ -2643,7 +2643,7 @@ Continuing remediation efforts.`,author:"Ops Team"}]}],past:[]}},n="none";t.curr
|
|
|
2643
2643
|
</div>
|
|
2644
2644
|
`:""}
|
|
2645
2645
|
</div>
|
|
2646
|
-
`}formatDate(r){let n=new Date(r),i=Date.now()-r;if(i<3600*1e3){let s=Math.floor(i/6e4);return`${s} minute${s!==1?"s":""} ago`}if(i<1440*60*1e3){let s=Math.floor(i/36e5);return`${s} hour${s!==1?"s":""} ago`}if(i<10080*60*1e3){let s=Math.floor(i/864e5);return`${s} day${s!==1?"s":""} ago`}return n.toLocaleDateString("en-US",{month:"short",day:"numeric",year:n.getFullYear()!==new Date().getFullYear()?"numeric":void 0})}formatDuration(r){let n=Math.floor(r/6e4),o=Math.floor(n/60),i=Math.floor(o/24);return i>0?`${i}d ${o%24}h`:o>0?`${o}h ${n%60}m`:`${n}m`}toggleIncident(r){let n=new Set(this.expandedIncidents);n.has(r)?n.delete(r):n.add(r),this.expandedIncidents=n}handleIncidentClick(r){this.dispatchEvent(new CustomEvent("incidentClick",{detail:{incident:r},bubbles:!0,composed:!0}))}handleShowMore(){console.log("Show more incidents")}isSubscribedToIncident(r){return this.subscribedIncidents.has(r)}handleIncidentSubscribe(r){let n=new Set(this.subscribedIncidents);n.has(r.id)?(n.delete(r.id),this.dispatchEvent(new CustomEvent("incidentUnsubscribe",{detail:{incident:r,incidentId:r.id},bubbles:!0,composed:!0}))):(n.add(r.id),this.dispatchEvent(new CustomEvent("incidentSubscribe",{detail:{incident:r,incidentId:r.id,incidentTitle:r.title,affectedServices:r.affectedServices},bubbles:!0,composed:!0}))),this.subscribedIncidents=n}dispatchReportNewIncident(){this.dispatchEvent(new CustomEvent("reportNewIncident",{bubbles:!0,composed:!0}))}dispatchStatusSubscribe(){this.dispatchEvent(new CustomEvent("statusSubscribe",{bubbles:!0,composed:!0}))}};We=xt(
|
|
2646
|
+
`}formatDate(r){let n=new Date(r),i=Date.now()-r;if(i<3600*1e3){let s=Math.floor(i/6e4);return`${s} minute${s!==1?"s":""} ago`}if(i<1440*60*1e3){let s=Math.floor(i/36e5);return`${s} hour${s!==1?"s":""} ago`}if(i<10080*60*1e3){let s=Math.floor(i/864e5);return`${s} day${s!==1?"s":""} ago`}return n.toLocaleDateString("en-US",{month:"short",day:"numeric",year:n.getFullYear()!==new Date().getFullYear()?"numeric":void 0})}formatDuration(r){let n=Math.floor(r/6e4),o=Math.floor(n/60),i=Math.floor(o/24);return i>0?`${i}d ${o%24}h`:o>0?`${o}h ${n%60}m`:`${n}m`}toggleIncident(r){let n=new Set(this.expandedIncidents);n.has(r)?n.delete(r):n.add(r),this.expandedIncidents=n}handleIncidentClick(r){this.dispatchEvent(new CustomEvent("incidentClick",{detail:{incident:r},bubbles:!0,composed:!0}))}handleShowMore(){console.log("Show more incidents")}isSubscribedToIncident(r){return this.subscribedIncidents.has(r)}handleIncidentSubscribe(r){let n=new Set(this.subscribedIncidents);n.has(r.id)?(n.delete(r.id),this.dispatchEvent(new CustomEvent("incidentUnsubscribe",{detail:{incident:r,incidentId:r.id},bubbles:!0,composed:!0}))):(n.add(r.id),this.dispatchEvent(new CustomEvent("incidentSubscribe",{detail:{incident:r,incidentId:r.id,incidentTitle:r.title,affectedServices:r.affectedServices},bubbles:!0,composed:!0}))),this.subscribedIncidents=n}dispatchReportNewIncident(){this.dispatchEvent(new CustomEvent("reportNewIncident",{bubbles:!0,composed:!0}))}dispatchStatusSubscribe(){this.dispatchEvent(new CustomEvent("statusSubscribe",{bubbles:!0,composed:!0}))}};We=xt(g$),Ay=new WeakMap,_y=new WeakMap,Oy=new WeakMap,Ly=new WeakMap,Ny=new WeakMap,Py=new WeakMap,Fy=new WeakMap,Ry=new WeakMap,V(We,4,"currentIncidents",h$,tr,Ay),V(We,4,"pastIncidents",m$,tr,_y),V(We,4,"whitelabel",f$,tr,Oy),V(We,4,"loading",p$,tr,Ly),V(We,4,"daysToShow",d$,tr,Ny),V(We,4,"subscribedIncidentIds",u$,tr,Py),V(We,4,"expandedIncidents",c$,tr,Fy),V(We,4,"subscribedIncidents",l$,tr,Ry),tr=V(We,0,"UplStatuspageIncidents",x$,tr),ze(tr,"demo",a$),ze(tr,"styles",[ct.elementBasic.staticStyles,Or,Oe`
|
|
2647
2647
|
:host {
|
|
2648
2648
|
display: block;
|
|
2649
2649
|
background: transparent;
|
|
@@ -3148,7 +3148,7 @@ Continuing remediation efforts.`,author:"Ops Team"}]}],past:[]}},n="none";t.curr
|
|
|
3148
3148
|
top: 16px;
|
|
3149
3149
|
}
|
|
3150
3150
|
}
|
|
3151
|
-
`]),E(We,1,tr);var
|
|
3151
|
+
`]),E(We,1,tr);var y$=()=>O`
|
|
3152
3152
|
<style>
|
|
3153
3153
|
.demo-container {
|
|
3154
3154
|
background: #fafafa;
|
|
@@ -3170,14 +3170,14 @@ Continuing remediation efforts.`,author:"Ops Team"}]}],past:[]}},n="none";t.curr
|
|
|
3170
3170
|
.centered=${!0}
|
|
3171
3171
|
></upl-statuspage-pagetitle>
|
|
3172
3172
|
</div>
|
|
3173
|
-
`;var v$,w$,S$,k$,
|
|
3173
|
+
`;var b$,v$,w$,S$,k$,Nr,By,zy,Hy;k$=[ut("upl-statuspage-pagetitle")];var Tn=class extends(S$=et,w$=[G({type:String})],v$=[G({type:String})],b$=[G({type:Boolean})],S$){constructor(){super();J(this,By,E(Nr,8,this,"System Status")),E(Nr,11,this);J(this,zy,E(Nr,12,this,"")),E(Nr,15,this);J(this,Hy,E(Nr,16,this,!1)),E(Nr,19,this)}render(){return O`
|
|
3174
3174
|
<div class="title-container ${this.centered?"centered":""}">
|
|
3175
3175
|
<h1>${this.pageTitle}</h1>
|
|
3176
3176
|
${this.pageSubtitle?O`
|
|
3177
3177
|
<p>${this.pageSubtitle}</p>
|
|
3178
3178
|
`:""}
|
|
3179
3179
|
</div>
|
|
3180
|
-
`}};Nr=xt(
|
|
3180
|
+
`}};Nr=xt(S$),By=new WeakMap,zy=new WeakMap,Hy=new WeakMap,V(Nr,4,"pageTitle",w$,Tn,By),V(Nr,4,"pageSubtitle",v$,Tn,zy),V(Nr,4,"centered",b$,Tn,Hy),Tn=V(Nr,0,"UplStatuspagePagetitle",k$,Tn),ze(Tn,"demo",y$),ze(Tn,"styles",[At.staticStyles,Oe`
|
|
3181
3181
|
:host {
|
|
3182
3182
|
display: block;
|
|
3183
3183
|
font-family: ${h(Le.base)};
|
|
@@ -3222,7 +3222,7 @@ Continuing remediation efforts.`,author:"Ops Team"}]}],past:[]}},n="none";t.curr
|
|
|
3222
3222
|
font-size: 16px;
|
|
3223
3223
|
}
|
|
3224
3224
|
}
|
|
3225
|
-
`]),E(Nr,1,Tn);var
|
|
3225
|
+
`]),E(Nr,1,Tn);var T$=()=>O`
|
|
3226
3226
|
<style>
|
|
3227
3227
|
.demo-container {
|
|
3228
3228
|
display: flex;
|
|
@@ -3336,7 +3336,7 @@ Affected Services: ${o.detail.status.affectedServices}`)})}}
|
|
|
3336
3336
|
</dees-demowrapper>
|
|
3337
3337
|
</div>
|
|
3338
3338
|
</div>
|
|
3339
|
-
`;var C$,E$,M$,I
|
|
3339
|
+
`;var D$,C$,E$,M$,I$,Pr,Uy,jy,qy;I$=[ut("upl-statuspage-statusbar")];var Dn=class extends(M$=et,E$=[G({type:Object})],C$=[G({type:Boolean})],D$=[G({type:Boolean})],M$){constructor(){super();J(this,Uy,E(Pr,8,this,{status:"operational",message:"All Systems Operational",lastUpdated:Date.now(),affectedServices:0,totalServices:0})),E(Pr,11,this);J(this,jy,E(Pr,12,this,!1)),E(Pr,15,this);J(this,qy,E(Pr,16,this,!0)),E(Pr,19,this)}render(){let r=()=>{let n=new Date(this.overallStatus.lastUpdated),i=new Date().getTime()-n.getTime(),s=Math.floor(i/6e4);if(s<1)return"Just now";if(s<60)return`${s}m ago`;let a=Math.floor(s/60);return a<24?`${a}h ago`:n.toLocaleDateString()};return O`
|
|
3340
3340
|
<div class="statusbar-container">
|
|
3341
3341
|
${this.loading?O`
|
|
3342
3342
|
<div class="loading-skeleton"></div>
|
|
@@ -3359,7 +3359,7 @@ Affected Services: ${o.detail.status.affectedServices}`)})}}
|
|
|
3359
3359
|
</div>
|
|
3360
3360
|
`}
|
|
3361
3361
|
</div>
|
|
3362
|
-
`}};Pr=xt(
|
|
3362
|
+
`}};Pr=xt(M$),Uy=new WeakMap,jy=new WeakMap,qy=new WeakMap,V(Pr,4,"overallStatus",E$,Dn,Uy),V(Pr,4,"loading",C$,Dn,jy),V(Pr,4,"expandable",D$,Dn,qy),Dn=V(Pr,0,"UplStatuspageStatusbar",I$,Dn),ze(Dn,"demo",T$),ze(Dn,"styles",[N.defaultStyles,Oe`
|
|
3363
3363
|
:host {
|
|
3364
3364
|
padding: 0;
|
|
3365
3365
|
display: block;
|
|
@@ -3639,7 +3639,7 @@ Affected Services: ${o.detail.status.affectedServices}`)})}}
|
|
|
3639
3639
|
font-size: 11px;
|
|
3640
3640
|
}
|
|
3641
3641
|
}
|
|
3642
|
-
`]),E(Pr,1,Dn);var
|
|
3642
|
+
`]),E(Pr,1,Dn);var $$=()=>O`
|
|
3643
3643
|
<style>
|
|
3644
3644
|
.demo-container {
|
|
3645
3645
|
display: flex;
|
|
@@ -3794,7 +3794,7 @@ Error Rate: ${(d*100).toFixed(2)}%`)})}}
|
|
|
3794
3794
|
</dees-demowrapper>
|
|
3795
3795
|
</div>
|
|
3796
3796
|
</div>
|
|
3797
|
-
`;var _$,O$,L$,N$,P$,F$,R$,
|
|
3797
|
+
`;var A$,_$,O$,L$,N$,P$,F$,R$,mt,Yy,Wy,Vy,Gy,Qy,Xy;R$=[ut("upl-statuspage-statusdetails")];var vr=class extends(F$=et,P$=[G({type:Array})],N$=[G({type:Array})],L$=[G({type:String})],O$=[G({type:String})],_$=[G({type:Boolean})],A$=[G({type:Number})],F$){constructor(){super();J(this,Yy,E(mt,8,this,[])),E(mt,11,this);J(this,Wy,E(mt,12,this,[])),E(mt,15,this);J(this,Vy,E(mt,16,this,"")),E(mt,19,this);J(this,Gy,E(mt,20,this,"Service")),E(mt,23,this);J(this,Qy,E(mt,24,this,!1)),E(mt,27,this);J(this,Xy,E(mt,28,this,48)),E(mt,31,this)}render(){return O`
|
|
3798
3798
|
<div class="container">
|
|
3799
3799
|
<uplinternal-miniheading>${this.serviceName} - Last ${this.hoursToShow} Hours</uplinternal-miniheading>
|
|
3800
3800
|
<div class="mainbox">
|
|
@@ -3834,7 +3834,7 @@ Error Rate: ${(d*100).toFixed(2)}%`)})}}
|
|
|
3834
3834
|
<div class="tooltip-time">${l}</div>
|
|
3835
3835
|
<div class="tooltip-stat">Status: ${c}</div>
|
|
3836
3836
|
${i>0?`<div class="tooltip-stat">Response Time: ${i.toFixed(0)}ms</div>`:""}
|
|
3837
|
-
`;let u=r.target.getBoundingClientRect(),d=this.getBoundingClientRect();s.style.left=`${u.left-d.left+u.width/2}px`,s.style.top=`${u.top-d.top-10}px`,s.style.transform="translate(-50%, -100%)",s.classList.add("visible")}hideTooltip(){let r=this.shadowRoot?.getElementById("tooltip");r&&r.classList.remove("visible")}handleBarClick(r,n,o){this.dispatchEvent(new CustomEvent("barClick",{detail:{timestamp:r,status:n,responseTime:o,serviceId:this.serviceId},bubbles:!0,composed:!0}))}};mt=xt(
|
|
3837
|
+
`;let u=r.target.getBoundingClientRect(),d=this.getBoundingClientRect();s.style.left=`${u.left-d.left+u.width/2}px`,s.style.top=`${u.top-d.top-10}px`,s.style.transform="translate(-50%, -100%)",s.classList.add("visible")}hideTooltip(){let r=this.shadowRoot?.getElementById("tooltip");r&&r.classList.remove("visible")}handleBarClick(r,n,o){this.dispatchEvent(new CustomEvent("barClick",{detail:{timestamp:r,status:n,responseTime:o,serviceId:this.serviceId},bubbles:!0,composed:!0}))}};mt=xt(F$),Yy=new WeakMap,Wy=new WeakMap,Vy=new WeakMap,Gy=new WeakMap,Qy=new WeakMap,Xy=new WeakMap,V(mt,4,"historyData",P$,vr,Yy),V(mt,4,"dataPoints",N$,vr,Wy),V(mt,4,"serviceId",L$,vr,Vy),V(mt,4,"serviceName",O$,vr,Gy),V(mt,4,"loading",_$,vr,Qy),V(mt,4,"hoursToShow",A$,vr,Xy),vr=V(mt,0,"UplStatuspageStatusdetails",R$,vr),ze(vr,"demo",$$),ze(vr,"styles",[ct.elementBasic.staticStyles,Or,Oe`
|
|
3838
3838
|
:host {
|
|
3839
3839
|
position: relative;
|
|
3840
3840
|
display: block;
|
|
@@ -4033,7 +4033,7 @@ Error Rate: ${(d*100).toFixed(2)}%`)})}}
|
|
|
4033
4033
|
align-items: flex-start;
|
|
4034
4034
|
}
|
|
4035
4035
|
}
|
|
4036
|
-
`]),E(mt,1,vr);var
|
|
4036
|
+
`]),E(mt,1,vr);var B$=()=>O`
|
|
4037
4037
|
<style>
|
|
4038
4038
|
.demo-container {
|
|
4039
4039
|
display: flex;
|
|
@@ -4185,7 +4185,7 @@ Downtime: ${p} minutes`)})}}
|
|
|
4185
4185
|
</dees-demowrapper>
|
|
4186
4186
|
</div>
|
|
4187
4187
|
</div>
|
|
4188
|
-
`;var H$,U$,j$,q$,Y$,W$,V$,
|
|
4188
|
+
`;var z$,H$,U$,j$,q$,Y$,W$,V$,ht,Jy,Zy,Ky,eb,tb,rb;V$=[ut("upl-statuspage-statusmonth")];var wr=class extends(W$=et,Y$=[G({type:Array})],q$=[G({type:String})],j$=[G({type:String})],U$=[G({type:Boolean})],H$=[G({type:Boolean})],z$=[G({type:Number})],W$){constructor(){super();J(this,Jy,E(ht,8,this,[])),E(ht,11,this);J(this,Zy,E(ht,12,this,"")),E(ht,15,this);J(this,Ky,E(ht,16,this,"Service")),E(ht,19,this);J(this,eb,E(ht,20,this,!1)),E(ht,23,this);J(this,tb,E(ht,24,this,!0)),E(ht,27,this);J(this,rb,E(ht,28,this,5)),E(ht,31,this)}render(){let r=this.monthlyData.reduce((n,o)=>n+o.days.length,0);return O`
|
|
4189
4189
|
<div class="container">
|
|
4190
4190
|
<uplinternal-miniheading>${this.serviceName} - Last ${r} Days</uplinternal-miniheading>
|
|
4191
4191
|
<div class="mainbox">
|
|
@@ -4264,7 +4264,7 @@ Downtime: ${p} minutes`)})}}
|
|
|
4264
4264
|
<div class="tooltip-uptime-bar">
|
|
4265
4265
|
<div class="tooltip-uptime-fill" style="width: ${n.uptime}%; background: ${l};"></div>
|
|
4266
4266
|
</div>
|
|
4267
|
-
`;let c=r.target.getBoundingClientRect(),u=this.getBoundingClientRect();o.style.left=`${c.left-u.left+c.width/2}px`,o.style.top=`${c.top-u.top-10}px`,o.style.transform="translateX(-50%) translateY(-100%)",o.classList.add("visible")}hideTooltip(){let r=this.shadowRoot?.getElementById("tooltip");r&&r.classList.remove("visible")}handleDayClick(r){this.dispatchEvent(new CustomEvent("dayClick",{detail:{date:r.date,uptime:r.uptime,incidents:r.incidents,status:r.status,serviceId:this.serviceId},bubbles:!0,composed:!0}))}};ht=xt(
|
|
4267
|
+
`;let c=r.target.getBoundingClientRect(),u=this.getBoundingClientRect();o.style.left=`${c.left-u.left+c.width/2}px`,o.style.top=`${c.top-u.top-10}px`,o.style.transform="translateX(-50%) translateY(-100%)",o.classList.add("visible")}hideTooltip(){let r=this.shadowRoot?.getElementById("tooltip");r&&r.classList.remove("visible")}handleDayClick(r){this.dispatchEvent(new CustomEvent("dayClick",{detail:{date:r.date,uptime:r.uptime,incidents:r.incidents,status:r.status,serviceId:this.serviceId},bubbles:!0,composed:!0}))}};ht=xt(W$),Jy=new WeakMap,Zy=new WeakMap,Ky=new WeakMap,eb=new WeakMap,tb=new WeakMap,rb=new WeakMap,V(ht,4,"monthlyData",Y$,wr,Jy),V(ht,4,"serviceId",q$,wr,Zy),V(ht,4,"serviceName",j$,wr,Ky),V(ht,4,"loading",U$,wr,eb),V(ht,4,"showTooltip",H$,wr,tb),V(ht,4,"monthsToShow",z$,wr,rb),wr=V(ht,0,"UplStatuspageStatusmonth",V$,wr),ze(wr,"demo",B$),ze(wr,"styles",[At.staticStyles,Or,Oe`
|
|
4268
4268
|
:host {
|
|
4269
4269
|
position: relative;
|
|
4270
4270
|
display: block;
|
|
@@ -4662,7 +4662,7 @@ Downtime: ${p} minutes`)})}}
|
|
|
4662
4662
|
padding: ${h(C.md)};
|
|
4663
4663
|
}
|
|
4664
4664
|
}
|
|
4665
|
-
`]),E(ht,1,wr);var
|
|
4665
|
+
`]),E(ht,1,wr);var G$=()=>O`
|
|
4666
4666
|
<style>
|
|
4667
4667
|
.demo-container {
|
|
4668
4668
|
display: flex;
|
|
@@ -4766,7 +4766,7 @@ Downtime: ${p} minutes`)})}}
|
|
|
4766
4766
|
</dees-demowrapper>
|
|
4767
4767
|
</div>
|
|
4768
4768
|
</div>
|
|
4769
|
-
`;var X$,J$,Z$,K$,eA,tA,rA,nA,oA,
|
|
4769
|
+
`;var Q$,X$,J$,Z$,K$,eA,tA,rA,nA,oA,Ve,nb,ob,ib,sb,ab,lb,cb,ub;oA=[ut("upl-statuspage-statsgrid")];var rr=class extends(nA=et,rA=[G({type:Number})],tA=[G({type:Number})],eA=[G({type:Number})],K$=[G({type:Number})],Z$=[G({type:Number})],J$=[G({type:String})],X$=[G({type:Boolean})],Q$=[G({type:String})],nA){constructor(){super();J(this,nb,E(Ve,8,this,99.99)),E(Ve,11,this);J(this,ob,E(Ve,12,this,125)),E(Ve,15,this);J(this,ib,E(Ve,16,this,0)),E(Ve,19,this);J(this,sb,E(Ve,20,this,0)),E(Ve,23,this);J(this,ab,E(Ve,24,this,0)),E(Ve,27,this);J(this,lb,E(Ve,28,this,"operational")),E(Ve,31,this);J(this,cb,E(Ve,32,this,!1)),E(Ve,35,this);J(this,ub,E(Ve,36,this,"90 days")),E(Ve,39,this)}render(){return O`
|
|
4770
4770
|
<div class="container">
|
|
4771
4771
|
${this.loading?O`
|
|
4772
4772
|
<div class="loading-skeleton">
|
|
@@ -4842,7 +4842,7 @@ Downtime: ${p} minutes`)})}}
|
|
|
4842
4842
|
<span>${r==="positive"?"\u2193":r==="negative"?"\u2191":"\u2192"}</span>
|
|
4843
4843
|
<span>${r==="positive"?"Fast":r==="negative"?"Slow":"Normal"}</span>
|
|
4844
4844
|
</div>
|
|
4845
|
-
`}getUptimeCardStatus(){return this.uptime>=99.9?"operational":this.uptime>=99?"degraded":"partial_outage"}getResponseCardStatus(){return this.avgResponseTime<200?"operational":this.avgResponseTime<500?"degraded":"partial_outage"}getIncidentCardStatus(){return this.affectedServices===0?"operational":this.currentStatus==="major_outage"?"major_outage":this.currentStatus==="partial_outage"?"partial_outage":"degraded"}};Ve=xt(
|
|
4845
|
+
`}getUptimeCardStatus(){return this.uptime>=99.9?"operational":this.uptime>=99?"degraded":"partial_outage"}getResponseCardStatus(){return this.avgResponseTime<200?"operational":this.avgResponseTime<500?"degraded":"partial_outage"}getIncidentCardStatus(){return this.affectedServices===0?"operational":this.currentStatus==="major_outage"?"major_outage":this.currentStatus==="partial_outage"?"partial_outage":"degraded"}};Ve=xt(nA),nb=new WeakMap,ob=new WeakMap,ib=new WeakMap,sb=new WeakMap,ab=new WeakMap,lb=new WeakMap,cb=new WeakMap,ub=new WeakMap,V(Ve,4,"uptime",rA,rr,nb),V(Ve,4,"avgResponseTime",tA,rr,ob),V(Ve,4,"totalIncidents",eA,rr,ib),V(Ve,4,"affectedServices",K$,rr,sb),V(Ve,4,"totalServices",Z$,rr,ab),V(Ve,4,"currentStatus",J$,rr,lb),V(Ve,4,"loading",X$,rr,cb),V(Ve,4,"timePeriod",Q$,rr,ub),rr=V(Ve,0,"UplStatuspageStatsgrid",oA,rr),ze(rr,"demo",G$),ze(rr,"styles",[At.staticStyles,Or,Oe`
|
|
4846
4846
|
:host {
|
|
4847
4847
|
display: block;
|
|
4848
4848
|
background: transparent;
|