@design.estate/dees-document 1.0.98 → 1.0.101
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 +289 -139
- package/dist_bundle/bundle.js.map +4 -4
- package/dist_ts/00_commitinfo_data.d.ts +1 -1
- package/dist_ts/00_commitinfo_data.js +4 -4
- package/dist_ts/classes.pdfservice.d.ts +1 -0
- package/dist_ts/classes.pdfservice.js +7 -1
- package/dist_ts/plugins.d.ts +0 -1
- package/dist_ts_web/00_commitinfo_data.js +1 -1
- package/dist_watch/bundle.js +32102 -14199
- package/dist_watch/bundle.js.map +4 -4
- package/npmextra.json +24 -3
- package/package.json +36 -18
- package/readme.hints.md +1 -0
- package/readme.md +140 -3
- package/ts/00_commitinfo_data.ts +3 -3
- package/ts/classes.pdfservice.ts +7 -0
- package/ts_web/00_commitinfo_data.ts +3 -3
- package/ts_web/elements/document.ts +12 -2
- package/ts_web/elements/page.ts +0 -2
- package/ts_web/elements/shared/demoletter.ts +44 -5
package/dist_bundle/bundle.js
CHANGED
|
@@ -1,59 +1,222 @@
|
|
|
1
|
-
var fy=Object.create;var Go=Object.defineProperty;var cl=Object.getOwnPropertyDescriptor;var py=Object.getOwnPropertyNames;var hy=Object.getPrototypeOf,dy=Object.prototype.hasOwnProperty;var C=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),X=(t,e)=>{for(var r in e)Go(t,r,{get:e[r],enumerable:!0})},my=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of py(e))!dy.call(t,o)&&o!==r&&Go(t,o,{get:()=>e[o],enumerable:!(n=cl(e,o))||n.enumerable});return t};var De=(t,e,r)=>(r=t!=null?fy(hy(t)):{},my(e||!t||!t.__esModule?Go(r,"default",{value:t,enumerable:!0}):r,t));var W=(t,e,r,n)=>{for(var o=n>1?void 0:n?cl(e,r):e,i=t.length-1,s;i>=0;i--)(s=t[i])&&(o=(n?s(e,r,o):s(o))||o);return n&&o&&Go(e,r,o),o};var si=C(ii=>{"use strict";Object.defineProperty(ii,"__esModule",{value:!0});ii.uni=void 0;var Ay=(t="uni")=>`${t}_${"xxxxxxxxxxxxxxxxxxxxxxxx".replace(/[xy]/g,e=>{let r=Math.random()*16|0;return(e==="x"?r:r&3|8).toString(16)})}`;ii.uni=Ay});var ff=C((va,wa)=>{(function(t,e){typeof va=="object"&&typeof wa<"u"?wa.exports=e():typeof define=="function"&&define.amd?define(e):(t=typeof globalThis<"u"?globalThis:t||self).dayjs=e()})(va,function(){"use strict";var t=1e3,e=6e4,r=36e5,n="millisecond",o="second",i="minute",s="hour",a="day",u="week",c="month",l="quarter",f="year",h="date",y="Invalid Date",w=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,A=/\[([^\]]+)]|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,O={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($){var S=["th","st","nd","rd"],E=$%100;return"["+$+(S[(E-20)%10]||S[E]||S[0])+"]"}},_=function($,S,E){var P=String($);return!P||P.length>=S?$:""+Array(S+1-P.length).join(E)+$},I={s:_,z:function($){var S=-$.utcOffset(),E=Math.abs(S),P=Math.floor(E/60),T=E%60;return(S<=0?"+":"-")+_(P,2,"0")+":"+_(T,2,"0")},m:function $(S,E){if(S.date()<E.date())return-$(E,S);var P=12*(E.year()-S.year())+(E.month()-S.month()),T=S.clone().add(P,c),j=E-T<0,v=S.clone().add(P+(j?-1:1),c);return+(-(P+(E-T)/(j?T-v:v-T))||0)},a:function($){return $<0?Math.ceil($)||0:Math.floor($)},p:function($){return{M:c,y:f,w:u,d:a,D:h,h:s,m:i,s:o,ms:n,Q:l}[$]||String($||"").toLowerCase().replace(/s$/,"")},u:function($){return $===void 0}},D="en",N={};N[D]=O;var q="$isDayjsObject",U=function($){return $ instanceof re||!(!$||!$[q])},Y=function $(S,E,P){var T;if(!S)return D;if(typeof S=="string"){var j=S.toLowerCase();N[j]&&(T=j),E&&(N[j]=E,T=j);var v=S.split("-");if(!T&&v.length>1)return $(v[0])}else{var M=S.name;N[M]=S,T=M}return!P&&T&&(D=T),T||!P&&D},F=function($,S){if(U($))return $.clone();var E=typeof S=="object"?S:{};return E.date=$,E.args=arguments,new re(E)},B=I;B.l=Y,B.i=U,B.w=function($,S){return F($,{locale:S.$L,utc:S.$u,x:S.$x,$offset:S.$offset})};var re=function(){function $(E){this.$L=Y(E.locale,null,!0),this.parse(E),this.$x=this.$x||E.x||{},this[q]=!0}var S=$.prototype;return S.parse=function(E){this.$d=function(P){var T=P.date,j=P.utc;if(T===null)return new Date(NaN);if(B.u(T))return new Date;if(T instanceof Date)return new Date(T);if(typeof T=="string"&&!/Z$/i.test(T)){var v=T.match(w);if(v){var M=v[2]-1||0,R=(v[7]||"0").substring(0,3);return j?new Date(Date.UTC(v[1],M,v[3]||1,v[4]||0,v[5]||0,v[6]||0,R)):new Date(v[1],M,v[3]||1,v[4]||0,v[5]||0,v[6]||0,R)}}return new Date(T)}(E),this.init()},S.init=function(){var E=this.$d;this.$y=E.getFullYear(),this.$M=E.getMonth(),this.$D=E.getDate(),this.$W=E.getDay(),this.$H=E.getHours(),this.$m=E.getMinutes(),this.$s=E.getSeconds(),this.$ms=E.getMilliseconds()},S.$utils=function(){return B},S.isValid=function(){return this.$d.toString()!==y},S.isSame=function(E,P){var T=F(E);return this.startOf(P)<=T&&T<=this.endOf(P)},S.isAfter=function(E,P){return F(E)<this.startOf(P)},S.isBefore=function(E,P){return this.endOf(P)<F(E)},S.$g=function(E,P,T){return B.u(E)?this[P]:this.set(T,E)},S.unix=function(){return Math.floor(this.valueOf()/1e3)},S.valueOf=function(){return this.$d.getTime()},S.startOf=function(E,P){var T=this,j=!!B.u(P)||P,v=B.p(E),M=function(m,p){var d=B.w(T.$u?Date.UTC(T.$y,p,m):new Date(T.$y,p,m),T);return j?d:d.endOf(a)},R=function(m,p){return B.w(T.toDate()[m].apply(T.toDate("s"),(j?[0,0,0,0]:[23,59,59,999]).slice(p)),T)},H=this.$W,z=this.$M,K=this.$D,ne="set"+(this.$u?"UTC":"");switch(v){case f:return j?M(1,0):M(31,11);case c:return j?M(1,z):M(0,z+1);case u:var pe=this.$locale().weekStart||0,Ee=(H<pe?H+7:H)-pe;return M(j?K-Ee:K+(6-Ee),z);case a:case h:return R(ne+"Hours",0);case s:return R(ne+"Minutes",1);case i:return R(ne+"Seconds",2);case o:return R(ne+"Milliseconds",3);default:return this.clone()}},S.endOf=function(E){return this.startOf(E,!1)},S.$set=function(E,P){var T,j=B.p(E),v="set"+(this.$u?"UTC":""),M=(T={},T[a]=v+"Date",T[h]=v+"Date",T[c]=v+"Month",T[f]=v+"FullYear",T[s]=v+"Hours",T[i]=v+"Minutes",T[o]=v+"Seconds",T[n]=v+"Milliseconds",T)[j],R=j===a?this.$D+(P-this.$W):P;if(j===c||j===f){var H=this.clone().set(h,1);H.$d[M](R),H.init(),this.$d=H.set(h,Math.min(this.$D,H.daysInMonth())).$d}else M&&this.$d[M](R);return this.init(),this},S.set=function(E,P){return this.clone().$set(E,P)},S.get=function(E){return this[B.p(E)]()},S.add=function(E,P){var T,j=this;E=Number(E);var v=B.p(P),M=function(z){var K=F(j);return B.w(K.date(K.date()+Math.round(z*E)),j)};if(v===c)return this.set(c,this.$M+E);if(v===f)return this.set(f,this.$y+E);if(v===a)return M(1);if(v===u)return M(7);var R=(T={},T[i]=e,T[s]=r,T[o]=t,T)[v]||1,H=this.$d.getTime()+E*R;return B.w(H,this)},S.subtract=function(E,P){return this.add(-1*E,P)},S.format=function(E){var P=this,T=this.$locale();if(!this.isValid())return T.invalidDate||y;var j=E||"YYYY-MM-DDTHH:mm:ssZ",v=B.z(this),M=this.$H,R=this.$m,H=this.$M,z=T.weekdays,K=T.months,ne=T.meridiem,pe=function(p,d,g,b){return p&&(p[d]||p(P,j))||g[d].slice(0,b)},Ee=function(p){return B.s(M%12||12,p,"0")},m=ne||function(p,d,g){var b=p<12?"AM":"PM";return g?b.toLowerCase():b};return j.replace(A,function(p,d){return d||function(g){switch(g){case"YY":return String(P.$y).slice(-2);case"YYYY":return B.s(P.$y,4,"0");case"M":return H+1;case"MM":return B.s(H+1,2,"0");case"MMM":return pe(T.monthsShort,H,K,3);case"MMMM":return pe(K,H);case"D":return P.$D;case"DD":return B.s(P.$D,2,"0");case"d":return String(P.$W);case"dd":return pe(T.weekdaysMin,P.$W,z,2);case"ddd":return pe(T.weekdaysShort,P.$W,z,3);case"dddd":return z[P.$W];case"H":return String(M);case"HH":return B.s(M,2,"0");case"h":return Ee(1);case"hh":return Ee(2);case"a":return m(M,R,!0);case"A":return m(M,R,!1);case"m":return String(R);case"mm":return B.s(R,2,"0");case"s":return String(P.$s);case"ss":return B.s(P.$s,2,"0");case"SSS":return B.s(P.$ms,3,"0");case"Z":return v}return null}(p)||v.replace(":","")})},S.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},S.diff=function(E,P,T){var j,v=this,M=B.p(P),R=F(E),H=(R.utcOffset()-this.utcOffset())*e,z=this-R,K=function(){return B.m(v,R)};switch(M){case f:j=K()/12;break;case c:j=K();break;case l:j=K()/3;break;case u:j=(z-H)/6048e5;break;case a:j=(z-H)/864e5;break;case s:j=z/r;break;case i:j=z/e;break;case o:j=z/t;break;default:j=z}return T?j:B.a(j)},S.daysInMonth=function(){return this.endOf(c).$D},S.$locale=function(){return N[this.$L]},S.locale=function(E,P){if(!E)return this.$L;var T=this.clone(),j=Y(E,P,!0);return j&&(T.$L=j),T},S.clone=function(){return B.w(this.$d,this)},S.toDate=function(){return new Date(this.valueOf())},S.toJSON=function(){return this.isValid()?this.toISOString():null},S.toISOString=function(){return this.$d.toISOString()},S.toString=function(){return this.$d.toUTCString()},$}(),Se=re.prototype;return F.prototype=Se,[["$ms",n],["$s",o],["$m",i],["$H",s],["$W",a],["$M",c],["$y",f],["$D",h]].forEach(function($){Se[$[1]]=function(S){return this.$g(S,$[0],$[1])}}),F.extend=function($,S){return $.$i||($(S,re,F),$.$i=!0),F},F.locale=Y,F.isDayjs=U,F.unix=function($){return F(1e3*$)},F.en=N[D],F.Ls=N,F.p={},F})});var pf=C((Sa,Ea)=>{(function(t,e){typeof Sa=="object"&&typeof Ea<"u"?Ea.exports=e():typeof define=="function"&&define.amd?define(e):(t=typeof globalThis<"u"?globalThis:t||self).dayjs_plugin_isToday=e()})(Sa,function(){"use strict";return function(t,e,r){e.prototype.isToday=function(){var n="YYYY-MM-DD",o=r();return this.format(n)===o.format(n)}}})});var mf=C((nM,df)=>{"use strict";df.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(e){return this.cachedIndexVersion!==e.childrenVersion?(this.cachedIndexVersion=NaN,-1):this.cachedIndex}setCachedIndex(e,r){this.cachedIndexVersion=e.childrenVersion,this.cachedIndex=r}}});var yf=C((oM,gf)=>{"use strict";gf.exports=Object.freeze({DISCONNECTED:1,PRECEDING:2,FOLLOWING:4,CONTAINS:8,CONTAINED_BY:16})});var Sf=C((iM,wf)=>{"use strict";var xf=Symbol(),bf=Symbol(),kt=Symbol(),vf=Symbol(),st=class{constructor(e,r,n,o){this[xf]=e,this[bf]=r,this[kt]=n,this[vf]=o}next(){let e=this[xf],r=this[vf],n=this[bf];if(!this[kt])return{done:!0,value:n};let o=this[kt];return r===1?this[kt]=e._node(o).previousSibling:r===2?this[kt]=e._node(o).nextSibling:r===3?this[kt]=e._node(o).parent:r===4?this[kt]=e.preceding(o,{root:n}):this[kt]=e.following(o,{root:n}),{done:!1,value:o}}};Object.defineProperty(st.prototype,Symbol.iterator,{value:function(){return this},writable:!1});st.PREV=1;st.NEXT=2;st.PARENT=3;st.PRECEDING=4;st.FOLLOWING=5;Object.freeze(st);Object.freeze(st.prototype);wf.exports=st});var Tf=C((sM,Ef)=>{"use strict";var b0=mf(),jt=yf(),Je=Sf();function Na(){return!0}function Vr(t,e){return t[t.length-1-e]}var Di=class{constructor(e){this.symbol=Symbol(e||"SymbolTree data")}initialize(e){return this._node(e),e}_node(e){if(!e)return null;let r=e[this.symbol];return r||(e[this.symbol]=new b0)}hasChildren(e){return this._node(e).hasChildren}firstChild(e){return this._node(e).firstChild}lastChild(e){return this._node(e).lastChild}previousSibling(e){return this._node(e).previousSibling}nextSibling(e){return this._node(e).nextSibling}parent(e){return this._node(e).parent}lastInclusiveDescendant(e){let r,n=e;for(;r=this._node(n).lastChild;)n=r;return n}preceding(e,r){let n=r&&r.root;if(e===n)return null;let o=this._node(e).previousSibling;return o?this.lastInclusiveDescendant(o):this._node(e).parent}following(e,r){let n=r&&r.root,i=!(r&&r.skipChildren)&&this._node(e).firstChild;if(i)return i;let s=e;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(e,r){let n=r&&r.array||[],o=r&&r.filter||Na,i=r&&r.thisArg||void 0,s=this._node(e),a=s.firstChild,u=0;for(;a;){let c=this._node(a);c.setCachedIndex(s,u),o.call(i,a)&&n.push(a),a=c.nextSibling,++u}return n}ancestorsToArray(e,r){let n=r&&r.array||[],o=r&&r.filter||Na,i=r&&r.thisArg||void 0,s=e;for(;s;)o.call(i,s)&&n.push(s),s=this._node(s).parent;return n}treeToArray(e,r){let n=r&&r.array||[],o=r&&r.filter||Na,i=r&&r.thisArg||void 0,s=e;for(;s;)o.call(i,s)&&n.push(s),s=this.following(s,{root:e});return n}childrenIterator(e,r){let n=r&&r.reverse,o=this._node(e);return new Je(this,e,n?o.lastChild:o.firstChild,n?Je.PREV:Je.NEXT)}previousSiblingsIterator(e){return new Je(this,e,this._node(e).previousSibling,Je.PREV)}nextSiblingsIterator(e){return new Je(this,e,this._node(e).nextSibling,Je.NEXT)}ancestorsIterator(e){return new Je(this,e,e,Je.PARENT)}treeIterator(e,r){let n=r&&r.reverse;return new Je(this,e,n?this.lastInclusiveDescendant(e):e,n?Je.PRECEDING:Je.FOLLOWING)}index(e){let r=this._node(e),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===e)break;++o,i=s.nextSibling}return n.childIndexCachedUpTo=e,o}childrenCount(e){let r=this._node(e);return r.lastChild?this.index(r.lastChild)+1:0}compareTreePosition(e,r){if(e===r)return 0;let n=[];{let l=e;for(;l;){if(l===r)return jt.CONTAINS|jt.PRECEDING;n.push(l),l=this.parent(l)}}let o=[];{let l=r;for(;l;){if(l===e)return jt.CONTAINED_BY|jt.FOLLOWING;o.push(l),l=this.parent(l)}}let i=Vr(n,0);if(!i||i!==Vr(o,0))return jt.DISCONNECTED;let s=0,a=Math.min(n.length,o.length);for(let l=0;l<a;++l){let f=Vr(n,l),h=Vr(o,l);if(f!==h)break;s=l}let u=this.index(Vr(n,s+1));return this.index(Vr(o,s+1))<u?jt.PRECEDING:jt.FOLLOWING}remove(e){let r=this._node(e),n=this._node(r.parent),o=this._node(r.previousSibling),i=this._node(r.nextSibling);return n&&(n.firstChild===e&&(n.firstChild=r.nextSibling),n.lastChild===e&&(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(),e}insertBefore(e,r){let n=this._node(e),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=e,n.previousSibling=r,o&&(o.nextSibling=r),s&&s.firstChild===e&&(s.firstChild=r),s&&s.childrenChanged(),r}insertAfter(e,r){let n=this._node(e),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=e,i.nextSibling=n.nextSibling,n.nextSibling=r,o&&(o.previousSibling=r),s&&s.lastChild===e&&(s.lastChild=r),s&&s.childrenChanged(),r}prependChild(e,r){let n=this._node(e),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=e,n.firstChild=r,n.lastChild=r,n.childrenChanged()),r}appendChild(e,r){let n=this._node(e),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=e,n.firstChild=r,n.lastChild=r,n.childrenChanged()),r}};Ef.exports=Di;Di.TreePosition=jt});var If=C(Bi=>{"use strict";Bi.byteLength=S0;Bi.toByteArray=T0;Bi.fromByteArray=A0;var lt=[],Ye=[],w0=typeof Uint8Array<"u"?Uint8Array:Array,ja="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(xr=0,Cf=ja.length;xr<Cf;++xr)lt[xr]=ja[xr],Ye[ja.charCodeAt(xr)]=xr;var xr,Cf;Ye[45]=62;Ye[95]=63;function Af(t){var e=t.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=t.indexOf("=");r===-1&&(r=e);var n=r===e?0:4-r%4;return[r,n]}function S0(t){var e=Af(t),r=e[0],n=e[1];return(r+n)*3/4-n}function E0(t,e,r){return(e+r)*3/4-r}function T0(t){var e,r=Af(t),n=r[0],o=r[1],i=new w0(E0(t,n,o)),s=0,a=o>0?n-4:n,u;for(u=0;u<a;u+=4)e=Ye[t.charCodeAt(u)]<<18|Ye[t.charCodeAt(u+1)]<<12|Ye[t.charCodeAt(u+2)]<<6|Ye[t.charCodeAt(u+3)],i[s++]=e>>16&255,i[s++]=e>>8&255,i[s++]=e&255;return o===2&&(e=Ye[t.charCodeAt(u)]<<2|Ye[t.charCodeAt(u+1)]>>4,i[s++]=e&255),o===1&&(e=Ye[t.charCodeAt(u)]<<10|Ye[t.charCodeAt(u+1)]<<4|Ye[t.charCodeAt(u+2)]>>2,i[s++]=e>>8&255,i[s++]=e&255),i}function _0(t){return lt[t>>18&63]+lt[t>>12&63]+lt[t>>6&63]+lt[t&63]}function C0(t,e,r){for(var n,o=[],i=e;i<r;i+=3)n=(t[i]<<16&16711680)+(t[i+1]<<8&65280)+(t[i+2]&255),o.push(_0(n));return o.join("")}function A0(t){for(var e,r=t.length,n=r%3,o=[],i=16383,s=0,a=r-n;s<a;s+=i)o.push(C0(t,s,s+i>a?a:s+i));return n===1?(e=t[r-1],o.push(lt[e>>2]+lt[e<<4&63]+"==")):n===2&&(e=(t[r-2]<<8)+t[r-1],o.push(lt[e>>10]+lt[e>>4&63]+lt[e<<2&63]+"=")),o.join("")}});var Mf=C(qa=>{qa.read=function(t,e,r,n,o){var i,s,a=o*8-n-1,u=(1<<a)-1,c=u>>1,l=-7,f=r?o-1:0,h=r?-1:1,y=t[e+f];for(f+=h,i=y&(1<<-l)-1,y>>=-l,l+=a;l>0;i=i*256+t[e+f],f+=h,l-=8);for(s=i&(1<<-l)-1,i>>=-l,l+=n;l>0;s=s*256+t[e+f],f+=h,l-=8);if(i===0)i=1-c;else{if(i===u)return s?NaN:(y?-1:1)*(1/0);s=s+Math.pow(2,n),i=i-c}return(y?-1:1)*s*Math.pow(2,i-n)};qa.write=function(t,e,r,n,o,i){var s,a,u,c=i*8-o-1,l=(1<<c)-1,f=l>>1,h=o===23?Math.pow(2,-24)-Math.pow(2,-77):0,y=n?0:i-1,w=n?1:-1,A=e<0||e===0&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(a=isNaN(e)?1:0,s=l):(s=Math.floor(Math.log(e)/Math.LN2),e*(u=Math.pow(2,-s))<1&&(s--,u*=2),s+f>=1?e+=h/u:e+=h*Math.pow(2,1-f),e*u>=2&&(s++,u/=2),s+f>=l?(a=0,s=l):s+f>=1?(a=(e*u-1)*Math.pow(2,o),s=s+f):(a=e*Math.pow(2,f-1)*Math.pow(2,o),s=0));o>=8;t[r+y]=a&255,y+=w,a/=256,o-=8);for(s=s<<o|a,c+=o;c>0;t[r+y]=s&255,y+=w,s/=256,c-=8);t[r+y-w]|=A*128}});var Vf=C(Zr=>{"use strict";var Wa=If(),Yr=Mf(),Pf=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;Zr.Buffer=x;Zr.SlowBuffer=O0;Zr.INSPECT_MAX_BYTES=50;var Ri=2147483647;Zr.kMaxLength=Ri;x.TYPED_ARRAY_SUPPORT=I0();!x.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function I0(){try{let t=new Uint8Array(1),e={foo:function(){return 42}};return Object.setPrototypeOf(e,Uint8Array.prototype),Object.setPrototypeOf(t,e),t.foo()===42}catch{return!1}}Object.defineProperty(x.prototype,"parent",{enumerable:!0,get:function(){if(x.isBuffer(this))return this.buffer}});Object.defineProperty(x.prototype,"offset",{enumerable:!0,get:function(){if(x.isBuffer(this))return this.byteOffset}});function _t(t){if(t>Ri)throw new RangeError('The value "'+t+'" is invalid for option "size"');let e=new Uint8Array(t);return Object.setPrototypeOf(e,x.prototype),e}function x(t,e,r){if(typeof t=="number"){if(typeof e=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return Ga(t)}return Df(t,e,r)}x.poolSize=8192;function Df(t,e,r){if(typeof t=="string")return P0(t,e);if(ArrayBuffer.isView(t))return $0(t);if(t==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t);if(ft(t,ArrayBuffer)||t&&ft(t.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(ft(t,SharedArrayBuffer)||t&&ft(t.buffer,SharedArrayBuffer)))return za(t,e,r);if(typeof t=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');let n=t.valueOf&&t.valueOf();if(n!=null&&n!==t)return x.from(n,e,r);let o=N0(t);if(o)return o;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof t[Symbol.toPrimitive]=="function")return x.from(t[Symbol.toPrimitive]("string"),e,r);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t)}x.from=function(t,e,r){return Df(t,e,r)};Object.setPrototypeOf(x.prototype,Uint8Array.prototype);Object.setPrototypeOf(x,Uint8Array);function Bf(t){if(typeof t!="number")throw new TypeError('"size" argument must be of type number');if(t<0)throw new RangeError('The value "'+t+'" is invalid for option "size"')}function M0(t,e,r){return Bf(t),t<=0?_t(t):e!==void 0?typeof r=="string"?_t(t).fill(e,r):_t(t).fill(e):_t(t)}x.alloc=function(t,e,r){return M0(t,e,r)};function Ga(t){return Bf(t),_t(t<0?0:Ja(t)|0)}x.allocUnsafe=function(t){return Ga(t)};x.allocUnsafeSlow=function(t){return Ga(t)};function P0(t,e){if((typeof e!="string"||e==="")&&(e="utf8"),!x.isEncoding(e))throw new TypeError("Unknown encoding: "+e);let r=Rf(t,e)|0,n=_t(r),o=n.write(t,e);return o!==r&&(n=n.slice(0,o)),n}function Ha(t){let e=t.length<0?0:Ja(t.length)|0,r=_t(e);for(let n=0;n<e;n+=1)r[n]=t[n]&255;return r}function $0(t){if(ft(t,Uint8Array)){let e=new Uint8Array(t);return za(e.buffer,e.byteOffset,e.byteLength)}return Ha(t)}function za(t,e,r){if(e<0||t.byteLength<e)throw new RangeError('"offset" is outside of buffer bounds');if(t.byteLength<e+(r||0))throw new RangeError('"length" is outside of buffer bounds');let n;return e===void 0&&r===void 0?n=new Uint8Array(t):r===void 0?n=new Uint8Array(t,e):n=new Uint8Array(t,e,r),Object.setPrototypeOf(n,x.prototype),n}function N0(t){if(x.isBuffer(t)){let e=Ja(t.length)|0,r=_t(e);return r.length===0||t.copy(r,0,0,e),r}if(t.length!==void 0)return typeof t.length!="number"||Qa(t.length)?_t(0):Ha(t);if(t.type==="Buffer"&&Array.isArray(t.data))return Ha(t.data)}function Ja(t){if(t>=Ri)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+Ri.toString(16)+" bytes");return t|0}function O0(t){return+t!=t&&(t=0),x.alloc(+t)}x.isBuffer=function(e){return e!=null&&e._isBuffer===!0&&e!==x.prototype};x.compare=function(e,r){if(ft(e,Uint8Array)&&(e=x.from(e,e.offset,e.byteLength)),ft(r,Uint8Array)&&(r=x.from(r,r.offset,r.byteLength)),!x.isBuffer(e)||!x.isBuffer(r))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===r)return 0;let n=e.length,o=r.length;for(let i=0,s=Math.min(n,o);i<s;++i)if(e[i]!==r[i]){n=e[i],o=r[i];break}return n<o?-1:o<n?1:0};x.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}};x.concat=function(e,r){if(!Array.isArray(e))throw new TypeError('"list" argument must be an Array of Buffers');if(e.length===0)return x.alloc(0);let n;if(r===void 0)for(r=0,n=0;n<e.length;++n)r+=e[n].length;let o=x.allocUnsafe(r),i=0;for(n=0;n<e.length;++n){let s=e[n];if(ft(s,Uint8Array))i+s.length>o.length?(x.isBuffer(s)||(s=x.from(s)),s.copy(o,i)):Uint8Array.prototype.set.call(o,s,i);else if(x.isBuffer(s))s.copy(o,i);else throw new TypeError('"list" argument must be an Array of Buffers');i+=s.length}return o};function Rf(t,e){if(x.isBuffer(t))return t.length;if(ArrayBuffer.isView(t)||ft(t,ArrayBuffer))return t.byteLength;if(typeof t!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof t);let r=t.length,n=arguments.length>2&&arguments[2]===!0;if(!n&&r===0)return 0;let o=!1;for(;;)switch(e){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return Va(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return r*2;case"hex":return r>>>1;case"base64":return zf(t).length;default:if(o)return n?-1:Va(t).length;e=(""+e).toLowerCase(),o=!0}}x.byteLength=Rf;function D0(t,e,r){let n=!1;if((e===void 0||e<0)&&(e=0),e>this.length||((r===void 0||r>this.length)&&(r=this.length),r<=0)||(r>>>=0,e>>>=0,r<=e))return"";for(t||(t="utf8");;)switch(t){case"hex":return H0(this,e,r);case"utf8":case"utf-8":return Uf(this,e,r);case"ascii":return q0(this,e,r);case"latin1":case"binary":return W0(this,e,r);case"base64":return k0(this,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return z0(this,e,r);default:if(n)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),n=!0}}x.prototype._isBuffer=!0;function br(t,e,r){let n=t[e];t[e]=t[r],t[r]=n}x.prototype.swap16=function(){let e=this.length;if(e%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let r=0;r<e;r+=2)br(this,r,r+1);return this};x.prototype.swap32=function(){let e=this.length;if(e%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let r=0;r<e;r+=4)br(this,r,r+3),br(this,r+1,r+2);return this};x.prototype.swap64=function(){let e=this.length;if(e%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let r=0;r<e;r+=8)br(this,r,r+7),br(this,r+1,r+6),br(this,r+2,r+5),br(this,r+3,r+4);return this};x.prototype.toString=function(){let e=this.length;return e===0?"":arguments.length===0?Uf(this,0,e):D0.apply(this,arguments)};x.prototype.toLocaleString=x.prototype.toString;x.prototype.equals=function(e){if(!x.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e?!0:x.compare(this,e)===0};x.prototype.inspect=function(){let e="",r=Zr.INSPECT_MAX_BYTES;return e=this.toString("hex",0,r).replace(/(.{2})/g,"$1 ").trim(),this.length>r&&(e+=" ... "),"<Buffer "+e+">"};Pf&&(x.prototype[Pf]=x.prototype.inspect);x.prototype.compare=function(e,r,n,o,i){if(ft(e,Uint8Array)&&(e=x.from(e,e.offset,e.byteLength)),!x.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(r===void 0&&(r=0),n===void 0&&(n=e?e.length:0),o===void 0&&(o=0),i===void 0&&(i=this.length),r<0||n>e.length||o<0||i>this.length)throw new RangeError("out of range index");if(o>=i&&r>=n)return 0;if(o>=i)return-1;if(r>=n)return 1;if(r>>>=0,n>>>=0,o>>>=0,i>>>=0,this===e)return 0;let s=i-o,a=n-r,u=Math.min(s,a),c=this.slice(o,i),l=e.slice(r,n);for(let f=0;f<u;++f)if(c[f]!==l[f]){s=c[f],a=l[f];break}return s<a?-1:a<s?1:0};function Ff(t,e,r,n,o){if(t.length===0)return-1;if(typeof r=="string"?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,Qa(r)&&(r=o?0:t.length-1),r<0&&(r=t.length+r),r>=t.length){if(o)return-1;r=t.length-1}else if(r<0)if(o)r=0;else return-1;if(typeof e=="string"&&(e=x.from(e,n)),x.isBuffer(e))return e.length===0?-1:$f(t,e,r,n,o);if(typeof e=="number")return e=e&255,typeof Uint8Array.prototype.indexOf=="function"?o?Uint8Array.prototype.indexOf.call(t,e,r):Uint8Array.prototype.lastIndexOf.call(t,e,r):$f(t,[e],r,n,o);throw new TypeError("val must be string, number or Buffer")}function $f(t,e,r,n,o){let i=1,s=t.length,a=e.length;if(n!==void 0&&(n=String(n).toLowerCase(),n==="ucs2"||n==="ucs-2"||n==="utf16le"||n==="utf-16le")){if(t.length<2||e.length<2)return-1;i=2,s/=2,a/=2,r/=2}function u(l,f){return i===1?l[f]:l.readUInt16BE(f*i)}let c;if(o){let l=-1;for(c=r;c<s;c++)if(u(t,c)===u(e,l===-1?0:c-l)){if(l===-1&&(l=c),c-l+1===a)return l*i}else l!==-1&&(c-=c-l),l=-1}else for(r+a>s&&(r=s-a),c=r;c>=0;c--){let l=!0;for(let f=0;f<a;f++)if(u(t,c+f)!==u(e,f)){l=!1;break}if(l)return c}return-1}x.prototype.includes=function(e,r,n){return this.indexOf(e,r,n)!==-1};x.prototype.indexOf=function(e,r,n){return Ff(this,e,r,n,!0)};x.prototype.lastIndexOf=function(e,r,n){return Ff(this,e,r,n,!1)};function B0(t,e,r,n){r=Number(r)||0;let o=t.length-r;n?(n=Number(n),n>o&&(n=o)):n=o;let i=e.length;n>i/2&&(n=i/2);let s;for(s=0;s<n;++s){let a=parseInt(e.substr(s*2,2),16);if(Qa(a))return s;t[r+s]=a}return s}function R0(t,e,r,n){return Fi(Va(e,t.length-r),t,r,n)}function F0(t,e,r,n){return Fi(Y0(e),t,r,n)}function U0(t,e,r,n){return Fi(zf(e),t,r,n)}function L0(t,e,r,n){return Fi(Q0(e,t.length-r),t,r,n)}x.prototype.write=function(e,r,n,o){if(r===void 0)o="utf8",n=this.length,r=0;else if(n===void 0&&typeof r=="string")o=r,n=this.length,r=0;else if(isFinite(r))r=r>>>0,isFinite(n)?(n=n>>>0,o===void 0&&(o="utf8")):(o=n,n=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");let i=this.length-r;if((n===void 0||n>i)&&(n=i),e.length>0&&(n<0||r<0)||r>this.length)throw new RangeError("Attempt to write outside buffer bounds");o||(o="utf8");let s=!1;for(;;)switch(o){case"hex":return B0(this,e,r,n);case"utf8":case"utf-8":return R0(this,e,r,n);case"ascii":case"latin1":case"binary":return F0(this,e,r,n);case"base64":return U0(this,e,r,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return L0(this,e,r,n);default:if(s)throw new TypeError("Unknown encoding: "+o);o=(""+o).toLowerCase(),s=!0}};x.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function k0(t,e,r){return e===0&&r===t.length?Wa.fromByteArray(t):Wa.fromByteArray(t.slice(e,r))}function Uf(t,e,r){r=Math.min(t.length,r);let n=[],o=e;for(;o<r;){let i=t[o],s=null,a=i>239?4:i>223?3:i>191?2:1;if(o+a<=r){let u,c,l,f;switch(a){case 1:i<128&&(s=i);break;case 2:u=t[o+1],(u&192)===128&&(f=(i&31)<<6|u&63,f>127&&(s=f));break;case 3:u=t[o+1],c=t[o+2],(u&192)===128&&(c&192)===128&&(f=(i&15)<<12|(u&63)<<6|c&63,f>2047&&(f<55296||f>57343)&&(s=f));break;case 4:u=t[o+1],c=t[o+2],l=t[o+3],(u&192)===128&&(c&192)===128&&(l&192)===128&&(f=(i&15)<<18|(u&63)<<12|(c&63)<<6|l&63,f>65535&&f<1114112&&(s=f))}}s===null?(s=65533,a=1):s>65535&&(s-=65536,n.push(s>>>10&1023|55296),s=56320|s&1023),n.push(s),o+=a}return j0(n)}var Nf=4096;function j0(t){let e=t.length;if(e<=Nf)return String.fromCharCode.apply(String,t);let r="",n=0;for(;n<e;)r+=String.fromCharCode.apply(String,t.slice(n,n+=Nf));return r}function q0(t,e,r){let n="";r=Math.min(t.length,r);for(let o=e;o<r;++o)n+=String.fromCharCode(t[o]&127);return n}function W0(t,e,r){let n="";r=Math.min(t.length,r);for(let o=e;o<r;++o)n+=String.fromCharCode(t[o]);return n}function H0(t,e,r){let n=t.length;(!e||e<0)&&(e=0),(!r||r<0||r>n)&&(r=n);let o="";for(let i=e;i<r;++i)o+=Z0[t[i]];return o}function z0(t,e,r){let n=t.slice(e,r),o="";for(let i=0;i<n.length-1;i+=2)o+=String.fromCharCode(n[i]+n[i+1]*256);return o}x.prototype.slice=function(e,r){let n=this.length;e=~~e,r=r===void 0?n:~~r,e<0?(e+=n,e<0&&(e=0)):e>n&&(e=n),r<0?(r+=n,r<0&&(r=0)):r>n&&(r=n),r<e&&(r=e);let o=this.subarray(e,r);return Object.setPrototypeOf(o,x.prototype),o};function Pe(t,e,r){if(t%1!==0||t<0)throw new RangeError("offset is not uint");if(t+e>r)throw new RangeError("Trying to access beyond buffer length")}x.prototype.readUintLE=x.prototype.readUIntLE=function(e,r,n){e=e>>>0,r=r>>>0,n||Pe(e,r,this.length);let o=this[e],i=1,s=0;for(;++s<r&&(i*=256);)o+=this[e+s]*i;return o};x.prototype.readUintBE=x.prototype.readUIntBE=function(e,r,n){e=e>>>0,r=r>>>0,n||Pe(e,r,this.length);let o=this[e+--r],i=1;for(;r>0&&(i*=256);)o+=this[e+--r]*i;return o};x.prototype.readUint8=x.prototype.readUInt8=function(e,r){return e=e>>>0,r||Pe(e,1,this.length),this[e]};x.prototype.readUint16LE=x.prototype.readUInt16LE=function(e,r){return e=e>>>0,r||Pe(e,2,this.length),this[e]|this[e+1]<<8};x.prototype.readUint16BE=x.prototype.readUInt16BE=function(e,r){return e=e>>>0,r||Pe(e,2,this.length),this[e]<<8|this[e+1]};x.prototype.readUint32LE=x.prototype.readUInt32LE=function(e,r){return e=e>>>0,r||Pe(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+this[e+3]*16777216};x.prototype.readUint32BE=x.prototype.readUInt32BE=function(e,r){return e=e>>>0,r||Pe(e,4,this.length),this[e]*16777216+(this[e+1]<<16|this[e+2]<<8|this[e+3])};x.prototype.readBigUInt64LE=Wt(function(e){e=e>>>0,Qr(e,"offset");let r=this[e],n=this[e+7];(r===void 0||n===void 0)&&co(e,this.length-8);let o=r+this[++e]*2**8+this[++e]*2**16+this[++e]*2**24,i=this[++e]+this[++e]*2**8+this[++e]*2**16+n*2**24;return BigInt(o)+(BigInt(i)<<BigInt(32))});x.prototype.readBigUInt64BE=Wt(function(e){e=e>>>0,Qr(e,"offset");let r=this[e],n=this[e+7];(r===void 0||n===void 0)&&co(e,this.length-8);let o=r*2**24+this[++e]*2**16+this[++e]*2**8+this[++e],i=this[++e]*2**24+this[++e]*2**16+this[++e]*2**8+n;return(BigInt(o)<<BigInt(32))+BigInt(i)});x.prototype.readIntLE=function(e,r,n){e=e>>>0,r=r>>>0,n||Pe(e,r,this.length);let o=this[e],i=1,s=0;for(;++s<r&&(i*=256);)o+=this[e+s]*i;return i*=128,o>=i&&(o-=Math.pow(2,8*r)),o};x.prototype.readIntBE=function(e,r,n){e=e>>>0,r=r>>>0,n||Pe(e,r,this.length);let o=r,i=1,s=this[e+--o];for(;o>0&&(i*=256);)s+=this[e+--o]*i;return i*=128,s>=i&&(s-=Math.pow(2,8*r)),s};x.prototype.readInt8=function(e,r){return e=e>>>0,r||Pe(e,1,this.length),this[e]&128?(255-this[e]+1)*-1:this[e]};x.prototype.readInt16LE=function(e,r){e=e>>>0,r||Pe(e,2,this.length);let n=this[e]|this[e+1]<<8;return n&32768?n|4294901760:n};x.prototype.readInt16BE=function(e,r){e=e>>>0,r||Pe(e,2,this.length);let n=this[e+1]|this[e]<<8;return n&32768?n|4294901760:n};x.prototype.readInt32LE=function(e,r){return e=e>>>0,r||Pe(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24};x.prototype.readInt32BE=function(e,r){return e=e>>>0,r||Pe(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]};x.prototype.readBigInt64LE=Wt(function(e){e=e>>>0,Qr(e,"offset");let r=this[e],n=this[e+7];(r===void 0||n===void 0)&&co(e,this.length-8);let o=this[e+4]+this[e+5]*2**8+this[e+6]*2**16+(n<<24);return(BigInt(o)<<BigInt(32))+BigInt(r+this[++e]*2**8+this[++e]*2**16+this[++e]*2**24)});x.prototype.readBigInt64BE=Wt(function(e){e=e>>>0,Qr(e,"offset");let r=this[e],n=this[e+7];(r===void 0||n===void 0)&&co(e,this.length-8);let o=(r<<24)+this[++e]*2**16+this[++e]*2**8+this[++e];return(BigInt(o)<<BigInt(32))+BigInt(this[++e]*2**24+this[++e]*2**16+this[++e]*2**8+n)});x.prototype.readFloatLE=function(e,r){return e=e>>>0,r||Pe(e,4,this.length),Yr.read(this,e,!0,23,4)};x.prototype.readFloatBE=function(e,r){return e=e>>>0,r||Pe(e,4,this.length),Yr.read(this,e,!1,23,4)};x.prototype.readDoubleLE=function(e,r){return e=e>>>0,r||Pe(e,8,this.length),Yr.read(this,e,!0,52,8)};x.prototype.readDoubleBE=function(e,r){return e=e>>>0,r||Pe(e,8,this.length),Yr.read(this,e,!1,52,8)};function qe(t,e,r,n,o,i){if(!x.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>o||e<i)throw new RangeError('"value" argument is out of bounds');if(r+n>t.length)throw new RangeError("Index out of range")}x.prototype.writeUintLE=x.prototype.writeUIntLE=function(e,r,n,o){if(e=+e,r=r>>>0,n=n>>>0,!o){let a=Math.pow(2,8*n)-1;qe(this,e,r,n,a,0)}let i=1,s=0;for(this[r]=e&255;++s<n&&(i*=256);)this[r+s]=e/i&255;return r+n};x.prototype.writeUintBE=x.prototype.writeUIntBE=function(e,r,n,o){if(e=+e,r=r>>>0,n=n>>>0,!o){let a=Math.pow(2,8*n)-1;qe(this,e,r,n,a,0)}let i=n-1,s=1;for(this[r+i]=e&255;--i>=0&&(s*=256);)this[r+i]=e/s&255;return r+n};x.prototype.writeUint8=x.prototype.writeUInt8=function(e,r,n){return e=+e,r=r>>>0,n||qe(this,e,r,1,255,0),this[r]=e&255,r+1};x.prototype.writeUint16LE=x.prototype.writeUInt16LE=function(e,r,n){return e=+e,r=r>>>0,n||qe(this,e,r,2,65535,0),this[r]=e&255,this[r+1]=e>>>8,r+2};x.prototype.writeUint16BE=x.prototype.writeUInt16BE=function(e,r,n){return e=+e,r=r>>>0,n||qe(this,e,r,2,65535,0),this[r]=e>>>8,this[r+1]=e&255,r+2};x.prototype.writeUint32LE=x.prototype.writeUInt32LE=function(e,r,n){return e=+e,r=r>>>0,n||qe(this,e,r,4,4294967295,0),this[r+3]=e>>>24,this[r+2]=e>>>16,this[r+1]=e>>>8,this[r]=e&255,r+4};x.prototype.writeUint32BE=x.prototype.writeUInt32BE=function(e,r,n){return e=+e,r=r>>>0,n||qe(this,e,r,4,4294967295,0),this[r]=e>>>24,this[r+1]=e>>>16,this[r+2]=e>>>8,this[r+3]=e&255,r+4};function Lf(t,e,r,n,o){Hf(e,n,o,t,r,7);let i=Number(e&BigInt(4294967295));t[r++]=i,i=i>>8,t[r++]=i,i=i>>8,t[r++]=i,i=i>>8,t[r++]=i;let s=Number(e>>BigInt(32)&BigInt(4294967295));return t[r++]=s,s=s>>8,t[r++]=s,s=s>>8,t[r++]=s,s=s>>8,t[r++]=s,r}function kf(t,e,r,n,o){Hf(e,n,o,t,r,7);let i=Number(e&BigInt(4294967295));t[r+7]=i,i=i>>8,t[r+6]=i,i=i>>8,t[r+5]=i,i=i>>8,t[r+4]=i;let s=Number(e>>BigInt(32)&BigInt(4294967295));return t[r+3]=s,s=s>>8,t[r+2]=s,s=s>>8,t[r+1]=s,s=s>>8,t[r]=s,r+8}x.prototype.writeBigUInt64LE=Wt(function(e,r=0){return Lf(this,e,r,BigInt(0),BigInt("0xffffffffffffffff"))});x.prototype.writeBigUInt64BE=Wt(function(e,r=0){return kf(this,e,r,BigInt(0),BigInt("0xffffffffffffffff"))});x.prototype.writeIntLE=function(e,r,n,o){if(e=+e,r=r>>>0,!o){let u=Math.pow(2,8*n-1);qe(this,e,r,n,u-1,-u)}let i=0,s=1,a=0;for(this[r]=e&255;++i<n&&(s*=256);)e<0&&a===0&&this[r+i-1]!==0&&(a=1),this[r+i]=(e/s>>0)-a&255;return r+n};x.prototype.writeIntBE=function(e,r,n,o){if(e=+e,r=r>>>0,!o){let u=Math.pow(2,8*n-1);qe(this,e,r,n,u-1,-u)}let i=n-1,s=1,a=0;for(this[r+i]=e&255;--i>=0&&(s*=256);)e<0&&a===0&&this[r+i+1]!==0&&(a=1),this[r+i]=(e/s>>0)-a&255;return r+n};x.prototype.writeInt8=function(e,r,n){return e=+e,r=r>>>0,n||qe(this,e,r,1,127,-128),e<0&&(e=255+e+1),this[r]=e&255,r+1};x.prototype.writeInt16LE=function(e,r,n){return e=+e,r=r>>>0,n||qe(this,e,r,2,32767,-32768),this[r]=e&255,this[r+1]=e>>>8,r+2};x.prototype.writeInt16BE=function(e,r,n){return e=+e,r=r>>>0,n||qe(this,e,r,2,32767,-32768),this[r]=e>>>8,this[r+1]=e&255,r+2};x.prototype.writeInt32LE=function(e,r,n){return e=+e,r=r>>>0,n||qe(this,e,r,4,2147483647,-2147483648),this[r]=e&255,this[r+1]=e>>>8,this[r+2]=e>>>16,this[r+3]=e>>>24,r+4};x.prototype.writeInt32BE=function(e,r,n){return e=+e,r=r>>>0,n||qe(this,e,r,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[r]=e>>>24,this[r+1]=e>>>16,this[r+2]=e>>>8,this[r+3]=e&255,r+4};x.prototype.writeBigInt64LE=Wt(function(e,r=0){return Lf(this,e,r,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});x.prototype.writeBigInt64BE=Wt(function(e,r=0){return kf(this,e,r,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function jf(t,e,r,n,o,i){if(r+n>t.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function qf(t,e,r,n,o){return e=+e,r=r>>>0,o||jf(t,e,r,4,34028234663852886e22,-34028234663852886e22),Yr.write(t,e,r,n,23,4),r+4}x.prototype.writeFloatLE=function(e,r,n){return qf(this,e,r,!0,n)};x.prototype.writeFloatBE=function(e,r,n){return qf(this,e,r,!1,n)};function Wf(t,e,r,n,o){return e=+e,r=r>>>0,o||jf(t,e,r,8,17976931348623157e292,-17976931348623157e292),Yr.write(t,e,r,n,52,8),r+8}x.prototype.writeDoubleLE=function(e,r,n){return Wf(this,e,r,!0,n)};x.prototype.writeDoubleBE=function(e,r,n){return Wf(this,e,r,!1,n)};x.prototype.copy=function(e,r,n,o){if(!x.isBuffer(e))throw new TypeError("argument should be a Buffer");if(n||(n=0),!o&&o!==0&&(o=this.length),r>=e.length&&(r=e.length),r||(r=0),o>0&&o<n&&(o=n),o===n||e.length===0||this.length===0)return 0;if(r<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("Index out of range");if(o<0)throw new RangeError("sourceEnd out of bounds");o>this.length&&(o=this.length),e.length-r<o-n&&(o=e.length-r+n);let i=o-n;return this===e&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(r,n,o):Uint8Array.prototype.set.call(e,this.subarray(n,o),r),i};x.prototype.fill=function(e,r,n,o){if(typeof e=="string"){if(typeof r=="string"?(o=r,r=0,n=this.length):typeof n=="string"&&(o=n,n=this.length),o!==void 0&&typeof o!="string")throw new TypeError("encoding must be a string");if(typeof o=="string"&&!x.isEncoding(o))throw new TypeError("Unknown encoding: "+o);if(e.length===1){let s=e.charCodeAt(0);(o==="utf8"&&s<128||o==="latin1")&&(e=s)}}else typeof e=="number"?e=e&255:typeof e=="boolean"&&(e=Number(e));if(r<0||this.length<r||this.length<n)throw new RangeError("Out of range index");if(n<=r)return this;r=r>>>0,n=n===void 0?this.length:n>>>0,e||(e=0);let i;if(typeof e=="number")for(i=r;i<n;++i)this[i]=e;else{let s=x.isBuffer(e)?e:x.from(e,o),a=s.length;if(a===0)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(i=0;i<n-r;++i)this[i+r]=s[i%a]}return this};var Jr={};function Ya(t,e,r){Jr[t]=class extends r{constructor(){super(),Object.defineProperty(this,"message",{value:e.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${t}]`,this.stack,delete this.name}get code(){return t}set code(o){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:o,writable:!0})}toString(){return`${this.name} [${t}]: ${this.message}`}}}Ya("ERR_BUFFER_OUT_OF_BOUNDS",function(t){return t?`${t} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError);Ya("ERR_INVALID_ARG_TYPE",function(t,e){return`The "${t}" argument must be of type number. Received type ${typeof e}`},TypeError);Ya("ERR_OUT_OF_RANGE",function(t,e,r){let n=`The value of "${t}" is out of range.`,o=r;return Number.isInteger(r)&&Math.abs(r)>2**32?o=Of(String(r)):typeof r=="bigint"&&(o=String(r),(r>BigInt(2)**BigInt(32)||r<-(BigInt(2)**BigInt(32)))&&(o=Of(o)),o+="n"),n+=` It must be ${e}. Received ${o}`,n},RangeError);function Of(t){let e="",r=t.length,n=t[0]==="-"?1:0;for(;r>=n+4;r-=3)e=`_${t.slice(r-3,r)}${e}`;return`${t.slice(0,r)}${e}`}function V0(t,e,r){Qr(e,"offset"),(t[e]===void 0||t[e+r]===void 0)&&co(e,t.length-(r+1))}function Hf(t,e,r,n,o,i){if(t>r||t<e){let s=typeof e=="bigint"?"n":"",a;throw i>3?e===0||e===BigInt(0)?a=`>= 0${s} and < 2${s} ** ${(i+1)*8}${s}`:a=`>= -(2${s} ** ${(i+1)*8-1}${s}) and < 2 ** ${(i+1)*8-1}${s}`:a=`>= ${e}${s} and <= ${r}${s}`,new Jr.ERR_OUT_OF_RANGE("value",a,t)}V0(n,o,i)}function Qr(t,e){if(typeof t!="number")throw new Jr.ERR_INVALID_ARG_TYPE(e,"number",t)}function co(t,e,r){throw Math.floor(t)!==t?(Qr(t,r),new Jr.ERR_OUT_OF_RANGE(r||"offset","an integer",t)):e<0?new Jr.ERR_BUFFER_OUT_OF_BOUNDS:new Jr.ERR_OUT_OF_RANGE(r||"offset",`>= ${r?1:0} and <= ${e}`,t)}var G0=/[^+/0-9A-Za-z-_]/g;function J0(t){if(t=t.split("=")[0],t=t.trim().replace(G0,""),t.length<2)return"";for(;t.length%4!==0;)t=t+"=";return t}function Va(t,e){e=e||1/0;let r,n=t.length,o=null,i=[];for(let s=0;s<n;++s){if(r=t.charCodeAt(s),r>55295&&r<57344){if(!o){if(r>56319){(e-=3)>-1&&i.push(239,191,189);continue}else if(s+1===n){(e-=3)>-1&&i.push(239,191,189);continue}o=r;continue}if(r<56320){(e-=3)>-1&&i.push(239,191,189),o=r;continue}r=(o-55296<<10|r-56320)+65536}else o&&(e-=3)>-1&&i.push(239,191,189);if(o=null,r<128){if((e-=1)<0)break;i.push(r)}else if(r<2048){if((e-=2)<0)break;i.push(r>>6|192,r&63|128)}else if(r<65536){if((e-=3)<0)break;i.push(r>>12|224,r>>6&63|128,r&63|128)}else if(r<1114112){if((e-=4)<0)break;i.push(r>>18|240,r>>12&63|128,r>>6&63|128,r&63|128)}else throw new Error("Invalid code point")}return i}function Y0(t){let e=[];for(let r=0;r<t.length;++r)e.push(t.charCodeAt(r)&255);return e}function Q0(t,e){let r,n,o,i=[];for(let s=0;s<t.length&&!((e-=2)<0);++s)r=t.charCodeAt(s),n=r>>8,o=r%256,i.push(o),i.push(n);return i}function zf(t){return Wa.toByteArray(J0(t))}function Fi(t,e,r,n){let o;for(o=0;o<n&&!(o+r>=e.length||o>=t.length);++o)e[o+r]=t[o];return o}function ft(t,e){return t instanceof e||t!=null&&t.constructor!=null&&t.constructor.name!=null&&t.constructor.name===e.name}function Qa(t){return t!==t}var Z0=function(){let t="0123456789abcdef",e=new Array(256);for(let r=0;r<16;++r){let n=r*16;for(let o=0;o<16;++o)e[n+o]=t[r]+t[o]}return e}();function Wt(t){return typeof BigInt>"u"?X0:t}function X0(){throw new Error("BigInt not supported")}});var Gf=C((Xr,Kr)=>{(function(t){var e=typeof Xr=="object"&&Xr&&!Xr.nodeType&&Xr,r=typeof Kr=="object"&&Kr&&!Kr.nodeType&&Kr,n=typeof global=="object"&&global;(n.global===n||n.window===n||n.self===n)&&(t=n);var o,i=2147483647,s=36,a=1,u=26,c=38,l=700,f=72,h=128,y="-",w=/^xn--/,A=/[^\x20-\x7E]/,O=/[\x2E\u3002\uFF0E\uFF61]/g,_={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},I=s-a,D=Math.floor,N=String.fromCharCode,q;function U(v){throw new RangeError(_[v])}function Y(v,M){for(var R=v.length,H=[];R--;)H[R]=M(v[R]);return H}function F(v,M){var R=v.split("@"),H="";R.length>1&&(H=R[0]+"@",v=R[1]),v=v.replace(O,".");var z=v.split("."),K=Y(z,M).join(".");return H+K}function B(v){for(var M=[],R=0,H=v.length,z,K;R<H;)z=v.charCodeAt(R++),z>=55296&&z<=56319&&R<H?(K=v.charCodeAt(R++),(K&64512)==56320?M.push(((z&1023)<<10)+(K&1023)+65536):(M.push(z),R--)):M.push(z);return M}function re(v){return Y(v,function(M){var R="";return M>65535&&(M-=65536,R+=N(M>>>10&1023|55296),M=56320|M&1023),R+=N(M),R}).join("")}function Se(v){return v-48<10?v-22:v-65<26?v-65:v-97<26?v-97:s}function $(v,M){return v+22+75*(v<26)-((M!=0)<<5)}function S(v,M,R){var H=0;for(v=R?D(v/l):v>>1,v+=D(v/M);v>I*u>>1;H+=s)v=D(v/I);return D(H+(I+1)*v/(v+c))}function E(v){var M=[],R=v.length,H,z=0,K=h,ne=f,pe,Ee,m,p,d,g,b,L,oe;for(pe=v.lastIndexOf(y),pe<0&&(pe=0),Ee=0;Ee<pe;++Ee)v.charCodeAt(Ee)>=128&&U("not-basic"),M.push(v.charCodeAt(Ee));for(m=pe>0?pe+1:0;m<R;){for(p=z,d=1,g=s;m>=R&&U("invalid-input"),b=Se(v.charCodeAt(m++)),(b>=s||b>D((i-z)/d))&&U("overflow"),z+=b*d,L=g<=ne?a:g>=ne+u?u:g-ne,!(b<L);g+=s)oe=s-L,d>D(i/oe)&&U("overflow"),d*=oe;H=M.length+1,ne=S(z-p,H,p==0),D(z/H)>i-K&&U("overflow"),K+=D(z/H),z%=H,M.splice(z++,0,K)}return re(M)}function P(v){var M,R,H,z,K,ne,pe,Ee,m,p,d,g=[],b,L,oe,ie;for(v=B(v),b=v.length,M=h,R=0,K=f,ne=0;ne<b;++ne)d=v[ne],d<128&&g.push(N(d));for(H=z=g.length,z&&g.push(y);H<b;){for(pe=i,ne=0;ne<b;++ne)d=v[ne],d>=M&&d<pe&&(pe=d);for(L=H+1,pe-M>D((i-R)/L)&&U("overflow"),R+=(pe-M)*L,M=pe,ne=0;ne<b;++ne)if(d=v[ne],d<M&&++R>i&&U("overflow"),d==M){for(Ee=R,m=s;p=m<=K?a:m>=K+u?u:m-K,!(Ee<p);m+=s)ie=Ee-p,oe=s-p,g.push(N($(p+ie%oe,0))),Ee=D(ie/oe);g.push(N($(Ee,0))),K=S(R,L,H==z),R=0,++H}++R,++M}return g.join("")}function T(v){return F(v,function(M){return w.test(M)?E(M.slice(4).toLowerCase()):M})}function j(v){return F(v,function(M){return A.test(M)?"xn--"+P(M):M})}if(o={version:"1.4.1",ucs2:{decode:B,encode:re},decode:E,encode:P,toASCII:j,toUnicode:T},typeof define=="function"&&typeof define.amd=="object"&&define.amd)define("punycode",function(){return o});else if(e&&r)if(Kr.exports==e)r.exports=o;else for(q in o)o.hasOwnProperty(q)&&(e[q]=o[q]);else t.punycode=o})(Xr)});var Yf=C((VM,Jf)=>{"use strict";Jf.exports=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var e={},r=Symbol("test"),n=Object(r);if(typeof r=="string"||Object.prototype.toString.call(r)!=="[object Symbol]"||Object.prototype.toString.call(n)!=="[object Symbol]")return!1;var o=42;e[r]=o;for(r in e)return!1;if(typeof Object.keys=="function"&&Object.keys(e).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(e).length!==0)return!1;var i=Object.getOwnPropertySymbols(e);if(i.length!==1||i[0]!==r||!Object.prototype.propertyIsEnumerable.call(e,r))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var s=Object.getOwnPropertyDescriptor(e,r);if(s.value!==o||s.enumerable!==!0)return!1}return!0}});var Xf=C((GM,Zf)=>{"use strict";var Qf=typeof Symbol<"u"&&Symbol,K0=Yf();Zf.exports=function(){return typeof Qf!="function"||typeof Symbol!="function"||typeof Qf("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:K0()}});var tp=C((JM,ep)=>{"use strict";var Kf={foo:{}},ex=Object;ep.exports=function(){return{__proto__:Kf}.foo===Kf.foo&&!({__proto__:null}instanceof ex)}});var op=C((YM,np)=>{"use strict";var tx="Function.prototype.bind called on incompatible ",rx=Object.prototype.toString,nx=Math.max,ox="[object Function]",rp=function(e,r){for(var n=[],o=0;o<e.length;o+=1)n[o]=e[o];for(var i=0;i<r.length;i+=1)n[i+e.length]=r[i];return n},ix=function(e,r){for(var n=[],o=r||0,i=0;o<e.length;o+=1,i+=1)n[i]=e[o];return n},sx=function(t,e){for(var r="",n=0;n<t.length;n+=1)r+=t[n],n+1<t.length&&(r+=e);return r};np.exports=function(e){var r=this;if(typeof r!="function"||rx.apply(r)!==ox)throw new TypeError(tx+r);for(var n=ix(arguments,1),o,i=function(){if(this instanceof o){var l=r.apply(this,rp(n,arguments));return Object(l)===l?l:this}return r.apply(e,rp(n,arguments))},s=nx(0,r.length-n.length),a=[],u=0;u<s;u++)a[u]="$"+u;if(o=Function("binder","return function ("+sx(a,",")+"){ return binder.apply(this,arguments); }")(i),r.prototype){var c=function(){};c.prototype=r.prototype,o.prototype=new c,c.prototype=null}return o}});var Ui=C((QM,ip)=>{"use strict";var ax=op();ip.exports=Function.prototype.bind||ax});var ap=C((ZM,sp)=>{"use strict";var ux=Function.prototype.call,cx=Object.prototype.hasOwnProperty,lx=Ui();sp.exports=lx.call(ux,cx)});var Ht=C((XM,pp)=>{"use strict";var Z,nn=SyntaxError,fp=Function,rn=TypeError,Za=function(t){try{return fp('"use strict"; return ('+t+").constructor;")()}catch{}},vr=Object.getOwnPropertyDescriptor;if(vr)try{vr({},"")}catch{vr=null}var Xa=function(){throw new rn},fx=vr?function(){try{return arguments.callee,Xa}catch{try{return vr(arguments,"callee").get}catch{return Xa}}}():Xa,en=Xf()(),px=tp()(),$e=Object.getPrototypeOf||(px?function(t){return t.__proto__}:null),tn={},hx=typeof Uint8Array>"u"||!$e?Z:$e(Uint8Array),wr={"%AggregateError%":typeof AggregateError>"u"?Z:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?Z:ArrayBuffer,"%ArrayIteratorPrototype%":en&&$e?$e([][Symbol.iterator]()):Z,"%AsyncFromSyncIteratorPrototype%":Z,"%AsyncFunction%":tn,"%AsyncGenerator%":tn,"%AsyncGeneratorFunction%":tn,"%AsyncIteratorPrototype%":tn,"%Atomics%":typeof Atomics>"u"?Z:Atomics,"%BigInt%":typeof BigInt>"u"?Z:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?Z:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?Z:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?Z:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array>"u"?Z:Float32Array,"%Float64Array%":typeof Float64Array>"u"?Z:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?Z:FinalizationRegistry,"%Function%":fp,"%GeneratorFunction%":tn,"%Int8Array%":typeof Int8Array>"u"?Z:Int8Array,"%Int16Array%":typeof Int16Array>"u"?Z:Int16Array,"%Int32Array%":typeof Int32Array>"u"?Z:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":en&&$e?$e($e([][Symbol.iterator]())):Z,"%JSON%":typeof JSON=="object"?JSON:Z,"%Map%":typeof Map>"u"?Z:Map,"%MapIteratorPrototype%":typeof Map>"u"||!en||!$e?Z:$e(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?Z:Promise,"%Proxy%":typeof Proxy>"u"?Z:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect>"u"?Z:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?Z:Set,"%SetIteratorPrototype%":typeof Set>"u"||!en||!$e?Z:$e(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?Z:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":en&&$e?$e(""[Symbol.iterator]()):Z,"%Symbol%":en?Symbol:Z,"%SyntaxError%":nn,"%ThrowTypeError%":fx,"%TypedArray%":hx,"%TypeError%":rn,"%Uint8Array%":typeof Uint8Array>"u"?Z:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?Z:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?Z:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?Z:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap>"u"?Z:WeakMap,"%WeakRef%":typeof WeakRef>"u"?Z:WeakRef,"%WeakSet%":typeof WeakSet>"u"?Z:WeakSet};if($e)try{null.error}catch(t){up=$e($e(t)),wr["%Error.prototype%"]=up}var up,dx=function t(e){var r;if(e==="%AsyncFunction%")r=Za("async function () {}");else if(e==="%GeneratorFunction%")r=Za("function* () {}");else if(e==="%AsyncGeneratorFunction%")r=Za("async function* () {}");else if(e==="%AsyncGenerator%"){var n=t("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if(e==="%AsyncIteratorPrototype%"){var o=t("%AsyncGenerator%");o&&$e&&(r=$e(o.prototype))}return wr[e]=r,r},cp={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},lo=Ui(),Li=ap(),mx=lo.call(Function.call,Array.prototype.concat),gx=lo.call(Function.apply,Array.prototype.splice),lp=lo.call(Function.call,String.prototype.replace),ki=lo.call(Function.call,String.prototype.slice),yx=lo.call(Function.call,RegExp.prototype.exec),xx=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,bx=/\\(\\)?/g,vx=function(e){var r=ki(e,0,1),n=ki(e,-1);if(r==="%"&&n!=="%")throw new nn("invalid intrinsic syntax, expected closing `%`");if(n==="%"&&r!=="%")throw new nn("invalid intrinsic syntax, expected opening `%`");var o=[];return lp(e,xx,function(i,s,a,u){o[o.length]=a?lp(u,bx,"$1"):s||i}),o},wx=function(e,r){var n=e,o;if(Li(cp,n)&&(o=cp[n],n="%"+o[0]+"%"),Li(wr,n)){var i=wr[n];if(i===tn&&(i=dx(n)),typeof i>"u"&&!r)throw new rn("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:o,name:n,value:i}}throw new nn("intrinsic "+e+" does not exist!")};pp.exports=function(e,r){if(typeof e!="string"||e.length===0)throw new rn("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof r!="boolean")throw new rn('"allowMissing" argument must be a boolean');if(yx(/^%?[^%]*%?$/,e)===null)throw new nn("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=vx(e),o=n.length>0?n[0]:"",i=wx("%"+o+"%",r),s=i.name,a=i.value,u=!1,c=i.alias;c&&(o=c[0],gx(n,mx([0,1],c)));for(var l=1,f=!0;l<n.length;l+=1){var h=n[l],y=ki(h,0,1),w=ki(h,-1);if((y==='"'||y==="'"||y==="`"||w==='"'||w==="'"||w==="`")&&y!==w)throw new nn("property names with quotes must have matching quotes");if((h==="constructor"||!f)&&(u=!0),o+="."+h,s="%"+o+"%",Li(wr,s))a=wr[s];else if(a!=null){if(!(h in a)){if(!r)throw new rn("base intrinsic for "+e+" exists, but the property is not available.");return}if(vr&&l+1>=n.length){var A=vr(a,h);f=!!A,f&&"get"in A&&!("originalValue"in A.get)?a=A.get:a=a[h]}else f=Li(a,h),a=a[h];f&&!u&&(wr[s]=a)}}return a}});var tu=C((KM,hp)=>{"use strict";var Sx=Ht(),Ka=Sx("%Object.defineProperty%",!0),eu=function(){if(Ka)try{return Ka({},"a",{value:1}),!0}catch{return!1}return!1};eu.hasArrayLengthDefineBug=function(){if(!eu())return null;try{return Ka([],"length",{value:1}).length!==1}catch{return!0}};hp.exports=eu});var ru=C((eP,dp)=>{"use strict";var Ex=Ht(),ji=Ex("%Object.getOwnPropertyDescriptor%",!0);if(ji)try{ji([],"length")}catch{ji=null}dp.exports=ji});var yp=C((tP,gp)=>{"use strict";var Tx=tu()(),nu=Ht(),fo=Tx&&nu("%Object.defineProperty%",!0);if(fo)try{fo({},"a",{value:1})}catch{fo=!1}var _x=nu("%SyntaxError%"),on=nu("%TypeError%"),mp=ru();gp.exports=function(e,r,n){if(!e||typeof e!="object"&&typeof e!="function")throw new on("`obj` must be an object or a function`");if(typeof r!="string"&&typeof r!="symbol")throw new on("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new on("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new on("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new on("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new on("`loose`, if provided, must be a boolean");var o=arguments.length>3?arguments[3]:null,i=arguments.length>4?arguments[4]:null,s=arguments.length>5?arguments[5]:null,a=arguments.length>6?arguments[6]:!1,u=!!mp&&mp(e,r);if(fo)fo(e,r,{configurable:s===null&&u?u.configurable:!s,enumerable:o===null&&u?u.enumerable:!o,value:n,writable:i===null&&u?u.writable:!i});else if(a||!o&&!i&&!s)e[r]=n;else throw new _x("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")}});var Ep=C((rP,Sp)=>{"use strict";var wp=Ht(),xp=yp(),Cx=tu()(),bp=ru(),vp=wp("%TypeError%"),Ax=wp("%Math.floor%");Sp.exports=function(e,r){if(typeof e!="function")throw new vp("`fn` is not a function");if(typeof r!="number"||r<0||r>4294967295||Ax(r)!==r)throw new vp("`length` must be a positive 32-bit integer");var n=arguments.length>2&&!!arguments[2],o=!0,i=!0;if("length"in e&&bp){var s=bp(e,"length");s&&!s.configurable&&(o=!1),s&&!s.writable&&(i=!1)}return(o||i||!n)&&(Cx?xp(e,"length",r,!0,!0):xp(e,"length",r)),e}});var Ip=C((nP,qi)=>{"use strict";var ou=Ui(),sn=Ht(),Ix=Ep(),Mx=sn("%TypeError%"),_p=sn("%Function.prototype.apply%"),Cp=sn("%Function.prototype.call%"),Ap=sn("%Reflect.apply%",!0)||ou.call(Cp,_p),po=sn("%Object.defineProperty%",!0),Px=sn("%Math.max%");if(po)try{po({},"a",{value:1})}catch{po=null}qi.exports=function(e){if(typeof e!="function")throw new Mx("a function is required");var r=Ap(ou,Cp,arguments);return Ix(r,1+Px(0,e.length-(arguments.length-1)),!0)};var Tp=function(){return Ap(ou,_p,arguments)};po?po(qi.exports,"apply",{value:Tp}):qi.exports.apply=Tp});var Np=C((oP,$p)=>{"use strict";var Mp=Ht(),Pp=Ip(),$x=Pp(Mp("String.prototype.indexOf"));$p.exports=function(e,r){var n=Mp(e,!!r);return typeof n=="function"&&$x(e,".prototype.")>-1?Pp(n):n}});var Op=C(()=>{});var Kp=C((aP,Xp)=>{var du=typeof Map=="function"&&Map.prototype,iu=Object.getOwnPropertyDescriptor&&du?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,Hi=du&&iu&&typeof iu.get=="function"?iu.get:null,Dp=du&&Map.prototype.forEach,mu=typeof Set=="function"&&Set.prototype,su=Object.getOwnPropertyDescriptor&&mu?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,zi=mu&&su&&typeof su.get=="function"?su.get:null,Bp=mu&&Set.prototype.forEach,Nx=typeof WeakMap=="function"&&WeakMap.prototype,mo=Nx?WeakMap.prototype.has:null,Ox=typeof WeakSet=="function"&&WeakSet.prototype,go=Ox?WeakSet.prototype.has:null,Dx=typeof WeakRef=="function"&&WeakRef.prototype,Rp=Dx?WeakRef.prototype.deref:null,Bx=Boolean.prototype.valueOf,Rx=Object.prototype.toString,Fx=Function.prototype.toString,Ux=String.prototype.match,gu=String.prototype.slice,Vt=String.prototype.replace,Lx=String.prototype.toUpperCase,Fp=String.prototype.toLowerCase,Vp=RegExp.prototype.test,Up=Array.prototype.concat,pt=Array.prototype.join,kx=Array.prototype.slice,Lp=Math.floor,cu=typeof BigInt=="function"?BigInt.prototype.valueOf:null,au=Object.getOwnPropertySymbols,lu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,an=typeof Symbol=="function"&&typeof Symbol.iterator=="object",Fe=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===an||!0)?Symbol.toStringTag:null,Gp=Object.prototype.propertyIsEnumerable,kp=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(t){return t.__proto__}:null);function jp(t,e){if(t===1/0||t===-1/0||t!==t||t&&t>-1e3&&t<1e3||Vp.call(/e/,e))return e;var r=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof t=="number"){var n=t<0?-Lp(-t):Lp(t);if(n!==t){var o=String(n),i=gu.call(e,o.length+1);return Vt.call(o,r,"$&_")+"."+Vt.call(Vt.call(i,/([0-9]{3})/g,"$&_"),/_$/,"")}}return Vt.call(e,r,"$&_")}var fu=Op(),qp=fu.custom,Wp=Yp(qp)?qp:null;Xp.exports=function t(e,r,n,o){var i=r||{};if(zt(i,"quoteStyle")&&i.quoteStyle!=="single"&&i.quoteStyle!=="double")throw new TypeError('option "quoteStyle" must be "single" or "double"');if(zt(i,"maxStringLength")&&(typeof i.maxStringLength=="number"?i.maxStringLength<0&&i.maxStringLength!==1/0:i.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var s=zt(i,"customInspect")?i.customInspect:!0;if(typeof s!="boolean"&&s!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(zt(i,"indent")&&i.indent!==null&&i.indent!==" "&&!(parseInt(i.indent,10)===i.indent&&i.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(zt(i,"numericSeparator")&&typeof i.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var a=i.numericSeparator;if(typeof e>"u")return"undefined";if(e===null)return"null";if(typeof e=="boolean")return e?"true":"false";if(typeof e=="string")return Zp(e,i);if(typeof e=="number"){if(e===0)return 1/0/e>0?"0":"-0";var u=String(e);return a?jp(e,u):u}if(typeof e=="bigint"){var c=String(e)+"n";return a?jp(e,c):c}var l=typeof i.depth>"u"?5:i.depth;if(typeof n>"u"&&(n=0),n>=l&&l>0&&typeof e=="object")return pu(e)?"[Array]":"[Object]";var f=ob(i,n);if(typeof o>"u")o=[];else if(Qp(o,e)>=0)return"[Circular]";function h(S,E,P){if(E&&(o=kx.call(o),o.push(E)),P){var T={depth:i.depth};return zt(i,"quoteStyle")&&(T.quoteStyle=i.quoteStyle),t(S,T,n+1,o)}return t(S,i,n+1,o)}if(typeof e=="function"&&!Hp(e)){var y=Yx(e),w=Wi(e,h);return"[Function"+(y?": "+y:" (anonymous)")+"]"+(w.length>0?" { "+pt.call(w,", ")+" }":"")}if(Yp(e)){var A=an?Vt.call(String(e),/^(Symbol\(.*\))_[^)]*$/,"$1"):lu.call(e);return typeof e=="object"&&!an?ho(A):A}if(tb(e)){for(var O="<"+Fp.call(String(e.nodeName)),_=e.attributes||[],I=0;I<_.length;I++)O+=" "+_[I].name+"="+Jp(jx(_[I].value),"double",i);return O+=">",e.childNodes&&e.childNodes.length&&(O+="..."),O+="</"+Fp.call(String(e.nodeName))+">",O}if(pu(e)){if(e.length===0)return"[]";var D=Wi(e,h);return f&&!nb(D)?"["+hu(D,f)+"]":"[ "+pt.call(D,", ")+" ]"}if(Wx(e)){var N=Wi(e,h);return!("cause"in Error.prototype)&&"cause"in e&&!Gp.call(e,"cause")?"{ ["+String(e)+"] "+pt.call(Up.call("[cause]: "+h(e.cause),N),", ")+" }":N.length===0?"["+String(e)+"]":"{ ["+String(e)+"] "+pt.call(N,", ")+" }"}if(typeof e=="object"&&s){if(Wp&&typeof e[Wp]=="function"&&fu)return fu(e,{depth:l-n});if(s!=="symbol"&&typeof e.inspect=="function")return e.inspect()}if(Qx(e)){var q=[];return Dp&&Dp.call(e,function(S,E){q.push(h(E,e,!0)+" => "+h(S,e))}),zp("Map",Hi.call(e),q,f)}if(Kx(e)){var U=[];return Bp&&Bp.call(e,function(S){U.push(h(S,e))}),zp("Set",zi.call(e),U,f)}if(Zx(e))return uu("WeakMap");if(eb(e))return uu("WeakSet");if(Xx(e))return uu("WeakRef");if(zx(e))return ho(h(Number(e)));if(Gx(e))return ho(h(cu.call(e)));if(Vx(e))return ho(Bx.call(e));if(Hx(e))return ho(h(String(e)));if(typeof window<"u"&&e===window)return"{ [object Window] }";if(e===global)return"{ [object globalThis] }";if(!qx(e)&&!Hp(e)){var Y=Wi(e,h),F=kp?kp(e)===Object.prototype:e instanceof Object||e.constructor===Object,B=e instanceof Object?"":"null prototype",re=!F&&Fe&&Object(e)===e&&Fe in e?gu.call(Gt(e),8,-1):B?"Object":"",Se=F||typeof e.constructor!="function"?"":e.constructor.name?e.constructor.name+" ":"",$=Se+(re||B?"["+pt.call(Up.call([],re||[],B||[]),": ")+"] ":"");return Y.length===0?$+"{}":f?$+"{"+hu(Y,f)+"}":$+"{ "+pt.call(Y,", ")+" }"}return String(e)};function Jp(t,e,r){var n=(r.quoteStyle||e)==="double"?'"':"'";return n+t+n}function jx(t){return Vt.call(String(t),/"/g,""")}function pu(t){return Gt(t)==="[object Array]"&&(!Fe||!(typeof t=="object"&&Fe in t))}function qx(t){return Gt(t)==="[object Date]"&&(!Fe||!(typeof t=="object"&&Fe in t))}function Hp(t){return Gt(t)==="[object RegExp]"&&(!Fe||!(typeof t=="object"&&Fe in t))}function Wx(t){return Gt(t)==="[object Error]"&&(!Fe||!(typeof t=="object"&&Fe in t))}function Hx(t){return Gt(t)==="[object String]"&&(!Fe||!(typeof t=="object"&&Fe in t))}function zx(t){return Gt(t)==="[object Number]"&&(!Fe||!(typeof t=="object"&&Fe in t))}function Vx(t){return Gt(t)==="[object Boolean]"&&(!Fe||!(typeof t=="object"&&Fe in t))}function Yp(t){if(an)return t&&typeof t=="object"&&t instanceof Symbol;if(typeof t=="symbol")return!0;if(!t||typeof t!="object"||!lu)return!1;try{return lu.call(t),!0}catch{}return!1}function Gx(t){if(!t||typeof t!="object"||!cu)return!1;try{return cu.call(t),!0}catch{}return!1}var Jx=Object.prototype.hasOwnProperty||function(t){return t in this};function zt(t,e){return Jx.call(t,e)}function Gt(t){return Rx.call(t)}function Yx(t){if(t.name)return t.name;var e=Ux.call(Fx.call(t),/^function\s*([\w$]+)/);return e?e[1]:null}function Qp(t,e){if(t.indexOf)return t.indexOf(e);for(var r=0,n=t.length;r<n;r++)if(t[r]===e)return r;return-1}function Qx(t){if(!Hi||!t||typeof t!="object")return!1;try{Hi.call(t);try{zi.call(t)}catch{return!0}return t instanceof Map}catch{}return!1}function Zx(t){if(!mo||!t||typeof t!="object")return!1;try{mo.call(t,mo);try{go.call(t,go)}catch{return!0}return t instanceof WeakMap}catch{}return!1}function Xx(t){if(!Rp||!t||typeof t!="object")return!1;try{return Rp.call(t),!0}catch{}return!1}function Kx(t){if(!zi||!t||typeof t!="object")return!1;try{zi.call(t);try{Hi.call(t)}catch{return!0}return t instanceof Set}catch{}return!1}function eb(t){if(!go||!t||typeof t!="object")return!1;try{go.call(t,go);try{mo.call(t,mo)}catch{return!0}return t instanceof WeakSet}catch{}return!1}function tb(t){return!t||typeof t!="object"?!1:typeof HTMLElement<"u"&&t instanceof HTMLElement?!0:typeof t.nodeName=="string"&&typeof t.getAttribute=="function"}function Zp(t,e){if(t.length>e.maxStringLength){var r=t.length-e.maxStringLength,n="... "+r+" more character"+(r>1?"s":"");return Zp(gu.call(t,0,e.maxStringLength),e)+n}var o=Vt.call(Vt.call(t,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,rb);return Jp(o,"single",e)}function rb(t){var e=t.charCodeAt(0),r={8:"b",9:"t",10:"n",12:"f",13:"r"}[e];return r?"\\"+r:"\\x"+(e<16?"0":"")+Lx.call(e.toString(16))}function ho(t){return"Object("+t+")"}function uu(t){return t+" { ? }"}function zp(t,e,r,n){var o=n?hu(r,n):pt.call(r,", ");return t+" ("+e+") {"+o+"}"}function nb(t){for(var e=0;e<t.length;e++)if(Qp(t[e],`
|
|
2
|
-
`)>=0)return!1;return!0}function
|
|
3
|
-
`+
|
|
4
|
-
`+e.prev}function Wi(t,e){var r=pu(t),n=[];if(r){n.length=t.length;for(var o=0;o<t.length;o++)n[o]=zt(t,o)?e(t[o],t):""}var i=typeof au=="function"?au(t):[],s;if(an){s={};for(var a=0;a<i.length;a++)s["$"+i[a]]=i[a]}for(var u in t)zt(t,u)&&(r&&String(Number(u))===u&&u<t.length||an&&s["$"+u]instanceof Symbol||(Vp.call(/[^\w$]/,u)?n.push(e(u,t)+": "+e(t[u],t)):n.push(u+": "+e(t[u],t))));if(typeof au=="function")for(var c=0;c<i.length;c++)Gp.call(t,i[c])&&n.push("["+e(i[c])+"]: "+e(t[i[c]],t));return n}});var th=C((uP,eh)=>{"use strict";var yu=Ht(),un=Np(),ib=Kp(),sb=yu("%TypeError%"),Vi=yu("%WeakMap%",!0),Gi=yu("%Map%",!0),ab=un("WeakMap.prototype.get",!0),ub=un("WeakMap.prototype.set",!0),cb=un("WeakMap.prototype.has",!0),lb=un("Map.prototype.get",!0),fb=un("Map.prototype.set",!0),pb=un("Map.prototype.has",!0),xu=function(t,e){for(var r=t,n;(n=r.next)!==null;r=n)if(n.key===e)return r.next=n.next,n.next=t.next,t.next=n,n},hb=function(t,e){var r=xu(t,e);return r&&r.value},db=function(t,e,r){var n=xu(t,e);n?n.value=r:t.next={key:e,next:t.next,value:r}},mb=function(t,e){return!!xu(t,e)};eh.exports=function(){var e,r,n,o={assert:function(i){if(!o.has(i))throw new sb("Side channel does not contain "+ib(i))},get:function(i){if(Vi&&i&&(typeof i=="object"||typeof i=="function")){if(e)return ab(e,i)}else if(Gi){if(r)return lb(r,i)}else if(n)return hb(n,i)},has:function(i){if(Vi&&i&&(typeof i=="object"||typeof i=="function")){if(e)return cb(e,i)}else if(Gi){if(r)return pb(r,i)}else if(n)return mb(n,i);return!1},set:function(i,s){Vi&&i&&(typeof i=="object"||typeof i=="function")?(e||(e=new Vi),ub(e,i,s)):Gi?(r||(r=new Gi),fb(r,i,s)):(n||(n={key:{},next:null}),db(n,i,s))}};return o}});var Ji=C((cP,rh)=>{"use strict";var gb=String.prototype.replace,yb=/%20/g,bu={RFC1738:"RFC1738",RFC3986:"RFC3986"};rh.exports={default:bu.RFC3986,formatters:{RFC1738:function(t){return gb.call(t,yb,"+")},RFC3986:function(t){return String(t)}},RFC1738:bu.RFC1738,RFC3986:bu.RFC3986}});var wu=C((lP,oh)=>{"use strict";var xb=Ji(),vu=Object.prototype.hasOwnProperty,Sr=Array.isArray,ht=function(){for(var t=[],e=0;e<256;++e)t.push("%"+((e<16?"0":"")+e.toString(16)).toUpperCase());return t}(),bb=function(e){for(;e.length>1;){var r=e.pop(),n=r.obj[r.prop];if(Sr(n)){for(var o=[],i=0;i<n.length;++i)typeof n[i]<"u"&&o.push(n[i]);r.obj[r.prop]=o}}},nh=function(e,r){for(var n=r&&r.plainObjects?Object.create(null):{},o=0;o<e.length;++o)typeof e[o]<"u"&&(n[o]=e[o]);return n},vb=function t(e,r,n){if(!r)return e;if(typeof r!="object"){if(Sr(e))e.push(r);else if(e&&typeof e=="object")(n&&(n.plainObjects||n.allowPrototypes)||!vu.call(Object.prototype,r))&&(e[r]=!0);else return[e,r];return e}if(!e||typeof e!="object")return[e].concat(r);var o=e;return Sr(e)&&!Sr(r)&&(o=nh(e,n)),Sr(e)&&Sr(r)?(r.forEach(function(i,s){if(vu.call(e,s)){var a=e[s];a&&typeof a=="object"&&i&&typeof i=="object"?e[s]=t(a,i,n):e.push(i)}else e[s]=i}),e):Object.keys(r).reduce(function(i,s){var a=r[s];return vu.call(i,s)?i[s]=t(i[s],a,n):i[s]=a,i},o)},wb=function(e,r){return Object.keys(r).reduce(function(n,o){return n[o]=r[o],n},e)},Sb=function(t,e,r){var n=t.replace(/\+/g," ");if(r==="iso-8859-1")return n.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(n)}catch{return n}},Eb=function(e,r,n,o,i){if(e.length===0)return e;var s=e;if(typeof e=="symbol"?s=Symbol.prototype.toString.call(e):typeof e!="string"&&(s=String(e)),n==="iso-8859-1")return escape(s).replace(/%u[0-9a-f]{4}/gi,function(l){return"%26%23"+parseInt(l.slice(2),16)+"%3B"});for(var a="",u=0;u<s.length;++u){var c=s.charCodeAt(u);if(c===45||c===46||c===95||c===126||c>=48&&c<=57||c>=65&&c<=90||c>=97&&c<=122||i===xb.RFC1738&&(c===40||c===41)){a+=s.charAt(u);continue}if(c<128){a=a+ht[c];continue}if(c<2048){a=a+(ht[192|c>>6]+ht[128|c&63]);continue}if(c<55296||c>=57344){a=a+(ht[224|c>>12]+ht[128|c>>6&63]+ht[128|c&63]);continue}u+=1,c=65536+((c&1023)<<10|s.charCodeAt(u)&1023),a+=ht[240|c>>18]+ht[128|c>>12&63]+ht[128|c>>6&63]+ht[128|c&63]}return a},Tb=function(e){for(var r=[{obj:{o:e},prop:"o"}],n=[],o=0;o<r.length;++o)for(var i=r[o],s=i.obj[i.prop],a=Object.keys(s),u=0;u<a.length;++u){var c=a[u],l=s[c];typeof l=="object"&&l!==null&&n.indexOf(l)===-1&&(r.push({obj:s,prop:c}),n.push(l))}return bb(r),e},_b=function(e){return Object.prototype.toString.call(e)==="[object RegExp]"},Cb=function(e){return!e||typeof e!="object"?!1:!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},Ab=function(e,r){return[].concat(e,r)},Ib=function(e,r){if(Sr(e)){for(var n=[],o=0;o<e.length;o+=1)n.push(r(e[o]));return n}return r(e)};oh.exports={arrayToObject:nh,assign:wb,combine:Ab,compact:Tb,decode:Sb,encode:Eb,isBuffer:Cb,isRegExp:_b,maybeMap:Ib,merge:vb}});var lh=C((fP,ch)=>{"use strict";var ah=th(),Yi=wu(),yo=Ji(),Mb=Object.prototype.hasOwnProperty,ih={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,r){return e+"["+r+"]"},repeat:function(e){return e}},Ct=Array.isArray,Pb=Array.prototype.push,uh=function(t,e){Pb.apply(t,Ct(e)?e:[e])},$b=Date.prototype.toISOString,sh=yo.default,Ue={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:Yi.encode,encodeValuesOnly:!1,format:sh,formatter:yo.formatters[sh],indices:!1,serializeDate:function(e){return $b.call(e)},skipNulls:!1,strictNullHandling:!1},Nb=function(e){return typeof e=="string"||typeof e=="number"||typeof e=="boolean"||typeof e=="symbol"||typeof e=="bigint"},Su={},Ob=function t(e,r,n,o,i,s,a,u,c,l,f,h,y,w,A,O){for(var _=e,I=O,D=0,N=!1;(I=I.get(Su))!==void 0&&!N;){var q=I.get(e);if(D+=1,typeof q<"u"){if(q===D)throw new RangeError("Cyclic object value");N=!0}typeof I.get(Su)>"u"&&(D=0)}if(typeof u=="function"?_=u(r,_):_ instanceof Date?_=f(_):n==="comma"&&Ct(_)&&(_=Yi.maybeMap(_,function(T){return T instanceof Date?f(T):T})),_===null){if(i)return a&&!w?a(r,Ue.encoder,A,"key",h):r;_=""}if(Nb(_)||Yi.isBuffer(_)){if(a){var U=w?r:a(r,Ue.encoder,A,"key",h);return[y(U)+"="+y(a(_,Ue.encoder,A,"value",h))]}return[y(r)+"="+y(String(_))]}var Y=[];if(typeof _>"u")return Y;var F;if(n==="comma"&&Ct(_))w&&a&&(_=Yi.maybeMap(_,a)),F=[{value:_.length>0?_.join(",")||null:void 0}];else if(Ct(u))F=u;else{var B=Object.keys(_);F=c?B.sort(c):B}for(var re=o&&Ct(_)&&_.length===1?r+"[]":r,Se=0;Se<F.length;++Se){var $=F[Se],S=typeof $=="object"&&typeof $.value<"u"?$.value:_[$];if(!(s&&S===null)){var E=Ct(_)?typeof n=="function"?n(re,$):re:re+(l?"."+$:"["+$+"]");O.set(e,D);var P=ah();P.set(Su,O),uh(Y,t(S,E,n,o,i,s,n==="comma"&&w&&Ct(_)?null:a,u,c,l,f,h,y,w,A,P))}}return Y},Db=function(e){if(!e)return Ue;if(e.encoder!==null&&typeof e.encoder<"u"&&typeof e.encoder!="function")throw new TypeError("Encoder has to be a function.");var r=e.charset||Ue.charset;if(typeof e.charset<"u"&&e.charset!=="utf-8"&&e.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var n=yo.default;if(typeof e.format<"u"){if(!Mb.call(yo.formatters,e.format))throw new TypeError("Unknown format option provided.");n=e.format}var o=yo.formatters[n],i=Ue.filter;return(typeof e.filter=="function"||Ct(e.filter))&&(i=e.filter),{addQueryPrefix:typeof e.addQueryPrefix=="boolean"?e.addQueryPrefix:Ue.addQueryPrefix,allowDots:typeof e.allowDots>"u"?Ue.allowDots:!!e.allowDots,charset:r,charsetSentinel:typeof e.charsetSentinel=="boolean"?e.charsetSentinel:Ue.charsetSentinel,delimiter:typeof e.delimiter>"u"?Ue.delimiter:e.delimiter,encode:typeof e.encode=="boolean"?e.encode:Ue.encode,encoder:typeof e.encoder=="function"?e.encoder:Ue.encoder,encodeValuesOnly:typeof e.encodeValuesOnly=="boolean"?e.encodeValuesOnly:Ue.encodeValuesOnly,filter:i,format:n,formatter:o,serializeDate:typeof e.serializeDate=="function"?e.serializeDate:Ue.serializeDate,skipNulls:typeof e.skipNulls=="boolean"?e.skipNulls:Ue.skipNulls,sort:typeof e.sort=="function"?e.sort:null,strictNullHandling:typeof e.strictNullHandling=="boolean"?e.strictNullHandling:Ue.strictNullHandling}};ch.exports=function(t,e){var r=t,n=Db(e),o,i;typeof n.filter=="function"?(i=n.filter,r=i("",r)):Ct(n.filter)&&(i=n.filter,o=i);var s=[];if(typeof r!="object"||r===null)return"";var a;e&&e.arrayFormat in ih?a=e.arrayFormat:e&&"indices"in e?a=e.indices?"indices":"repeat":a="indices";var u=ih[a];if(e&&"commaRoundTrip"in e&&typeof e.commaRoundTrip!="boolean")throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var c=u==="comma"&&e&&e.commaRoundTrip;o||(o=Object.keys(r)),n.sort&&o.sort(n.sort);for(var l=ah(),f=0;f<o.length;++f){var h=o[f];n.skipNulls&&r[h]===null||uh(s,Ob(r[h],h,u,c,n.strictNullHandling,n.skipNulls,n.encode?n.encoder:null,n.filter,n.sort,n.allowDots,n.serializeDate,n.format,n.formatter,n.encodeValuesOnly,n.charset,l))}var y=s.join(n.delimiter),w=n.addQueryPrefix===!0?"?":"";return n.charsetSentinel&&(n.charset==="iso-8859-1"?w+="utf8=%26%2310003%3B&":w+="utf8=%E2%9C%93&"),y.length>0?w+y:""}});var hh=C((pP,ph)=>{"use strict";var cn=wu(),Eu=Object.prototype.hasOwnProperty,Bb=Array.isArray,Ne={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:cn.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},Rb=function(t){return t.replace(/&#(\d+);/g,function(e,r){return String.fromCharCode(parseInt(r,10))})},fh=function(t,e){return t&&typeof t=="string"&&e.comma&&t.indexOf(",")>-1?t.split(","):t},Fb="utf8=%26%2310003%3B",Ub="utf8=%E2%9C%93",Lb=function(e,r){var n={__proto__:null},o=r.ignoreQueryPrefix?e.replace(/^\?/,""):e,i=r.parameterLimit===1/0?void 0:r.parameterLimit,s=o.split(r.delimiter,i),a=-1,u,c=r.charset;if(r.charsetSentinel)for(u=0;u<s.length;++u)s[u].indexOf("utf8=")===0&&(s[u]===Ub?c="utf-8":s[u]===Fb&&(c="iso-8859-1"),a=u,u=s.length);for(u=0;u<s.length;++u)if(u!==a){var l=s[u],f=l.indexOf("]="),h=f===-1?l.indexOf("="):f+1,y,w;h===-1?(y=r.decoder(l,Ne.decoder,c,"key"),w=r.strictNullHandling?null:""):(y=r.decoder(l.slice(0,h),Ne.decoder,c,"key"),w=cn.maybeMap(fh(l.slice(h+1),r),function(A){return r.decoder(A,Ne.decoder,c,"value")})),w&&r.interpretNumericEntities&&c==="iso-8859-1"&&(w=Rb(w)),l.indexOf("[]=")>-1&&(w=Bb(w)?[w]:w),Eu.call(n,y)?n[y]=cn.combine(n[y],w):n[y]=w}return n},kb=function(t,e,r,n){for(var o=n?e:fh(e,r),i=t.length-1;i>=0;--i){var s,a=t[i];if(a==="[]"&&r.parseArrays)s=[].concat(o);else{s=r.plainObjects?Object.create(null):{};var u=a.charAt(0)==="["&&a.charAt(a.length-1)==="]"?a.slice(1,-1):a,c=parseInt(u,10);!r.parseArrays&&u===""?s={0:o}:!isNaN(c)&&a!==u&&String(c)===u&&c>=0&&r.parseArrays&&c<=r.arrayLimit?(s=[],s[c]=o):u!=="__proto__"&&(s[u]=o)}o=s}return o},jb=function(e,r,n,o){if(e){var i=n.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,s=/(\[[^[\]]*])/,a=/(\[[^[\]]*])/g,u=n.depth>0&&s.exec(i),c=u?i.slice(0,u.index):i,l=[];if(c){if(!n.plainObjects&&Eu.call(Object.prototype,c)&&!n.allowPrototypes)return;l.push(c)}for(var f=0;n.depth>0&&(u=a.exec(i))!==null&&f<n.depth;){if(f+=1,!n.plainObjects&&Eu.call(Object.prototype,u[1].slice(1,-1))&&!n.allowPrototypes)return;l.push(u[1])}return u&&l.push("["+i.slice(u.index)+"]"),kb(l,r,n,o)}},qb=function(e){if(!e)return Ne;if(e.decoder!==null&&e.decoder!==void 0&&typeof e.decoder!="function")throw new TypeError("Decoder has to be a function.");if(typeof e.charset<"u"&&e.charset!=="utf-8"&&e.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var r=typeof e.charset>"u"?Ne.charset:e.charset;return{allowDots:typeof e.allowDots>"u"?Ne.allowDots:!!e.allowDots,allowPrototypes:typeof e.allowPrototypes=="boolean"?e.allowPrototypes:Ne.allowPrototypes,allowSparse:typeof e.allowSparse=="boolean"?e.allowSparse:Ne.allowSparse,arrayLimit:typeof e.arrayLimit=="number"?e.arrayLimit:Ne.arrayLimit,charset:r,charsetSentinel:typeof e.charsetSentinel=="boolean"?e.charsetSentinel:Ne.charsetSentinel,comma:typeof e.comma=="boolean"?e.comma:Ne.comma,decoder:typeof e.decoder=="function"?e.decoder:Ne.decoder,delimiter:typeof e.delimiter=="string"||cn.isRegExp(e.delimiter)?e.delimiter:Ne.delimiter,depth:typeof e.depth=="number"||e.depth===!1?+e.depth:Ne.depth,ignoreQueryPrefix:e.ignoreQueryPrefix===!0,interpretNumericEntities:typeof e.interpretNumericEntities=="boolean"?e.interpretNumericEntities:Ne.interpretNumericEntities,parameterLimit:typeof e.parameterLimit=="number"?e.parameterLimit:Ne.parameterLimit,parseArrays:e.parseArrays!==!1,plainObjects:typeof e.plainObjects=="boolean"?e.plainObjects:Ne.plainObjects,strictNullHandling:typeof e.strictNullHandling=="boolean"?e.strictNullHandling:Ne.strictNullHandling}};ph.exports=function(t,e){var r=qb(e);if(t===""||t===null||typeof t>"u")return r.plainObjects?Object.create(null):{};for(var n=typeof t=="string"?Lb(t,r):t,o=r.plainObjects?Object.create(null):{},i=Object.keys(n),s=0;s<i.length;++s){var a=i[s],u=jb(a,n[a],r,typeof t=="string");o=cn.merge(o,u,r)}return r.allowSparse===!0?o:cn.compact(o)}});var mh=C((hP,dh)=>{"use strict";var Wb=lh(),Hb=hh(),zb=Ji();dh.exports={formats:zb,parse:Hb,stringify:Wb}});var bh=C(fn=>{"use strict";var Vb=Gf();function Qe(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}var Gb=/^([a-z0-9.+-]+:)/i,Jb=/:[0-9]*$/,Yb=/^(\/\/?(?!\/)[^?\s]*)(\?[^\s]*)?$/,Qb=["<",">",'"',"`"," ","\r",`
|
|
5
|
-
`," "],Zb=["{","}","|","\\","^","`"].concat(Qb),Tu=["'"].concat(Zb),gh=["%","/","?",";","#"].concat(Tu),yh=["/","?","#"],Xb=255,xh=/^[+a-z0-9A-Z_-]{0,63}$/,Kb=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,ev={javascript:!0,"javascript:":!0},_u={javascript:!0,"javascript:":!0},ln={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},Cu=mh();function xo(t,e,r){if(t&&typeof t=="object"&&t instanceof Qe)return t;var n=new Qe;return n.parse(t,e,r),n}Qe.prototype.parse=function(t,e,r){if(typeof t!="string")throw new TypeError("Parameter 'url' must be a string, not "+typeof t);var n=t.indexOf("?"),o=n!==-1&&n<t.indexOf("#")?"?":"#",i=t.split(o),s=/\\/g;i[0]=i[0].replace(s,"/"),t=i.join(o);var a=t;if(a=a.trim(),!r&&t.split("#").length===1){var u=Yb.exec(a);if(u)return this.path=a,this.href=a,this.pathname=u[1],u[2]?(this.search=u[2],e?this.query=Cu.parse(this.search.substr(1)):this.query=this.search.substr(1)):e&&(this.search="",this.query={}),this}var c=Gb.exec(a);if(c){c=c[0];var l=c.toLowerCase();this.protocol=l,a=a.substr(c.length)}if(r||c||a.match(/^\/\/[^@/]+@[^@/]+/)){var f=a.substr(0,2)==="//";f&&!(c&&_u[c])&&(a=a.substr(2),this.slashes=!0)}if(!_u[c]&&(f||c&&!ln[c])){for(var h=-1,y=0;y<yh.length;y++){var w=a.indexOf(yh[y]);w!==-1&&(h===-1||w<h)&&(h=w)}var A,O;h===-1?O=a.lastIndexOf("@"):O=a.lastIndexOf("@",h),O!==-1&&(A=a.slice(0,O),a=a.slice(O+1),this.auth=decodeURIComponent(A)),h=-1;for(var y=0;y<gh.length;y++){var w=a.indexOf(gh[y]);w!==-1&&(h===-1||w<h)&&(h=w)}h===-1&&(h=a.length),this.host=a.slice(0,h),a=a.slice(h),this.parseHost(),this.hostname=this.hostname||"";var _=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!_)for(var I=this.hostname.split(/\./),y=0,D=I.length;y<D;y++){var N=I[y];if(N&&!N.match(xh)){for(var q="",U=0,Y=N.length;U<Y;U++)N.charCodeAt(U)>127?q+="x":q+=N[U];if(!q.match(xh)){var F=I.slice(0,y),B=I.slice(y+1),re=N.match(Kb);re&&(F.push(re[1]),B.unshift(re[2])),B.length&&(a="/"+B.join(".")+a),this.hostname=F.join(".");break}}}this.hostname.length>Xb?this.hostname="":this.hostname=this.hostname.toLowerCase(),_||(this.hostname=Vb.toASCII(this.hostname));var Se=this.port?":"+this.port:"",$=this.hostname||"";this.host=$+Se,this.href+=this.host,_&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),a[0]!=="/"&&(a="/"+a))}if(!ev[l])for(var y=0,D=Tu.length;y<D;y++){var S=Tu[y];if(a.indexOf(S)!==-1){var E=encodeURIComponent(S);E===S&&(E=escape(S)),a=a.split(S).join(E)}}var P=a.indexOf("#");P!==-1&&(this.hash=a.substr(P),a=a.slice(0,P));var T=a.indexOf("?");if(T!==-1?(this.search=a.substr(T),this.query=a.substr(T+1),e&&(this.query=Cu.parse(this.query)),a=a.slice(0,T)):e&&(this.search="",this.query={}),a&&(this.pathname=a),ln[l]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){var Se=this.pathname||"",j=this.search||"";this.path=Se+j}return this.href=this.format(),this};function tv(t){return typeof t=="string"&&(t=xo(t)),t instanceof Qe?t.format():Qe.prototype.format.call(t)}Qe.prototype.format=function(){var t=this.auth||"";t&&(t=encodeURIComponent(t),t=t.replace(/%3A/i,":"),t+="@");var e=this.protocol||"",r=this.pathname||"",n=this.hash||"",o=!1,i="";this.host?o=t+this.host:this.hostname&&(o=t+(this.hostname.indexOf(":")===-1?this.hostname:"["+this.hostname+"]"),this.port&&(o+=":"+this.port)),this.query&&typeof this.query=="object"&&Object.keys(this.query).length&&(i=Cu.stringify(this.query,{arrayFormat:"repeat",addQueryPrefix:!1}));var s=this.search||i&&"?"+i||"";return e&&e.substr(-1)!==":"&&(e+=":"),this.slashes||(!e||ln[e])&&o!==!1?(o="//"+(o||""),r&&r.charAt(0)!=="/"&&(r="/"+r)):o||(o=""),n&&n.charAt(0)!=="#"&&(n="#"+n),s&&s.charAt(0)!=="?"&&(s="?"+s),r=r.replace(/[?#]/g,function(a){return encodeURIComponent(a)}),s=s.replace("#","%23"),e+o+r+s+n};function rv(t,e){return xo(t,!1,!0).resolve(e)}Qe.prototype.resolve=function(t){return this.resolveObject(xo(t,!1,!0)).format()};function nv(t,e){return t?xo(t,!1,!0).resolveObject(e):e}Qe.prototype.resolveObject=function(t){if(typeof t=="string"){var e=new Qe;e.parse(t,!1,!0),t=e}for(var r=new Qe,n=Object.keys(this),o=0;o<n.length;o++){var i=n[o];r[i]=this[i]}if(r.hash=t.hash,t.href==="")return r.href=r.format(),r;if(t.slashes&&!t.protocol){for(var s=Object.keys(t),a=0;a<s.length;a++){var u=s[a];u!=="protocol"&&(r[u]=t[u])}return ln[r.protocol]&&r.hostname&&!r.pathname&&(r.pathname="/",r.path=r.pathname),r.href=r.format(),r}if(t.protocol&&t.protocol!==r.protocol){if(!ln[t.protocol]){for(var c=Object.keys(t),l=0;l<c.length;l++){var f=c[l];r[f]=t[f]}return r.href=r.format(),r}if(r.protocol=t.protocol,!t.host&&!_u[t.protocol]){for(var D=(t.pathname||"").split("/");D.length&&!(t.host=D.shift()););t.host||(t.host=""),t.hostname||(t.hostname=""),D[0]!==""&&D.unshift(""),D.length<2&&D.unshift(""),r.pathname=D.join("/")}else r.pathname=t.pathname;if(r.search=t.search,r.query=t.query,r.host=t.host||"",r.auth=t.auth,r.hostname=t.hostname||t.host,r.port=t.port,r.pathname||r.search){var h=r.pathname||"",y=r.search||"";r.path=h+y}return r.slashes=r.slashes||t.slashes,r.href=r.format(),r}var w=r.pathname&&r.pathname.charAt(0)==="/",A=t.host||t.pathname&&t.pathname.charAt(0)==="/",O=A||w||r.host&&t.pathname,_=O,I=r.pathname&&r.pathname.split("/")||[],D=t.pathname&&t.pathname.split("/")||[],N=r.protocol&&!ln[r.protocol];if(N&&(r.hostname="",r.port=null,r.host&&(I[0]===""?I[0]=r.host:I.unshift(r.host)),r.host="",t.protocol&&(t.hostname=null,t.port=null,t.host&&(D[0]===""?D[0]=t.host:D.unshift(t.host)),t.host=null),O=O&&(D[0]===""||I[0]==="")),A)r.host=t.host||t.host===""?t.host:r.host,r.hostname=t.hostname||t.hostname===""?t.hostname:r.hostname,r.search=t.search,r.query=t.query,I=D;else if(D.length)I||(I=[]),I.pop(),I=I.concat(D),r.search=t.search,r.query=t.query;else if(t.search!=null){if(N){r.host=I.shift(),r.hostname=r.host;var q=r.host&&r.host.indexOf("@")>0?r.host.split("@"):!1;q&&(r.auth=q.shift(),r.hostname=q.shift(),r.host=r.hostname)}return r.search=t.search,r.query=t.query,(r.pathname!==null||r.search!==null)&&(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.href=r.format(),r}if(!I.length)return r.pathname=null,r.search?r.path="/"+r.search:r.path=null,r.href=r.format(),r;for(var U=I.slice(-1)[0],Y=(r.host||t.host||I.length>1)&&(U==="."||U==="..")||U==="",F=0,B=I.length;B>=0;B--)U=I[B],U==="."?I.splice(B,1):U===".."?(I.splice(B,1),F++):F&&(I.splice(B,1),F--);if(!O&&!_)for(;F--;F)I.unshift("..");O&&I[0]!==""&&(!I[0]||I[0].charAt(0)!=="/")&&I.unshift(""),Y&&I.join("/").substr(-1)!=="/"&&I.push("");var re=I[0]===""||I[0]&&I[0].charAt(0)==="/";if(N){r.hostname=re?"":I.length?I.shift():"",r.host=r.hostname;var q=r.host&&r.host.indexOf("@")>0?r.host.split("@"):!1;q&&(r.auth=q.shift(),r.hostname=q.shift(),r.host=r.hostname)}return O=O||r.host&&I.length,O&&!re&&I.unshift(""),I.length>0?r.pathname=I.join("/"):(r.pathname=null,r.path=null),(r.pathname!==null||r.search!==null)&&(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.auth=t.auth||r.auth,r.slashes=r.slashes||t.slashes,r.href=r.format(),r};Qe.prototype.parseHost=function(){var t=this.host,e=Jb.exec(t);e&&(e=e[0],e!==":"&&(this.port=e.substr(1)),t=t.substr(0,t.length-e.length)),t&&(this.hostname=t)};fn.parse=xo;fn.resolve=rv;fn.resolveObject=nv;fn.format=tv;fn.Url=Qe});var Lh=C((gP,Uh)=>{"use strict";Uh.exports=t=>{let e=t.match(/^[ \t]*(?=\S)/gm);return e?e.reduce((r,n)=>Math.min(r,n.length),1/0):0}});var qh=C((xP,jh)=>{"use strict";jh.exports=(t,e,r,n)=>{if(!Buffer.isBuffer(t))throw new TypeError(`Expected a \`Buffer\`, got \`${typeof t}\``);if(!(typeof e=="string"&&e.length>0)||!(typeof r=="string"||typeof r=="function"))return t;n=Object.assign({fromIndex:0},n);let o=0,i=s=>{let a=o===0?n.fromIndex:0,u=s.indexOf(e,a);if(u===-1)return s;o++;let c=Buffer.from(typeof r=="string"?r:r(e,o,t)),l=Buffer.from(e),f=s.slice(0,u),h=i(s.slice(u+l.length)),y=u+c.length+h.length;return Buffer.concat([f,c,h],y)};return i(t)}});var Vh=C((vP,zh)=>{"use strict";zh.exports=function(e){var r=typeof e;if(r==="string"||e instanceof String){if(!e.trim())return!1}else if(r!=="number"&&!(e instanceof Number))return!1;return e-e+1>=0}});var Yh=C((wP,Jh)=>{var gv=Object.prototype.toString;Jh.exports=function(e){if(e===void 0)return"undefined";if(e===null)return"null";var r=typeof e;if(r==="boolean")return"boolean";if(r==="string")return"string";if(r==="number")return"number";if(r==="symbol")return"symbol";if(r==="function")return wv(e)?"generatorfunction":"function";if(yv(e))return"array";if(Tv(e))return"buffer";if(Ev(e))return"arguments";if(bv(e))return"date";if(xv(e))return"error";if(vv(e))return"regexp";switch(Gh(e)){case"Symbol":return"symbol";case"Promise":return"promise";case"WeakMap":return"weakmap";case"WeakSet":return"weakset";case"Map":return"map";case"Set":return"set";case"Int8Array":return"int8array";case"Uint8Array":return"uint8array";case"Uint8ClampedArray":return"uint8clampedarray";case"Int16Array":return"int16array";case"Uint16Array":return"uint16array";case"Int32Array":return"int32array";case"Uint32Array":return"uint32array";case"Float32Array":return"float32array";case"Float64Array":return"float64array"}if(Sv(e))return"generator";switch(r=gv.call(e),r){case"[object Object]":return"object";case"[object Map Iterator]":return"mapiterator";case"[object Set Iterator]":return"setiterator";case"[object String Iterator]":return"stringiterator";case"[object Array Iterator]":return"arrayiterator"}return r.slice(8,-1).toLowerCase().replace(/\s/g,"")};function Gh(t){return typeof t.constructor=="function"?t.constructor.name:null}function yv(t){return Array.isArray?Array.isArray(t):t instanceof Array}function xv(t){return t instanceof Error||typeof t.message=="string"&&t.constructor&&typeof t.constructor.stackTraceLimit=="number"}function bv(t){return t instanceof Date?!0:typeof t.toDateString=="function"&&typeof t.getDate=="function"&&typeof t.setDate=="function"}function vv(t){return t instanceof RegExp?!0:typeof t.flags=="string"&&typeof t.ignoreCase=="boolean"&&typeof t.multiline=="boolean"&&typeof t.global=="boolean"}function wv(t,e){return Gh(t)==="GeneratorFunction"}function Sv(t){return typeof t.throw=="function"&&typeof t.return=="function"&&typeof t.next=="function"}function Ev(t){try{if(typeof t.length=="number"&&typeof t.callee=="function")return!0}catch(e){if(e.message.indexOf("callee")!==-1)return!0}return!1}function Tv(t){return t.constructor&&typeof t.constructor.isBuffer=="function"?t.constructor.isBuffer(t):!1}});var Zh=C((SP,Qh)=>{Qh.exports=function(t){var e="Uint32Array"in t,r=t.crypto||t.msCrypto,n=r&&typeof r.getRandomValues=="function",o=e&&n;if(!o)return Math.random;var i=new Uint32Array(1),s=Math.pow(2,32);function a(){return r.getRandomValues(i),i[0]/s}return a.cryptographic=!0,a}(typeof self<"u"?self:window)});var ed=C((EP,$u)=>{"use strict";var _v=Vh(),Xh=Yh(),Kh=Zh();$u.exports=Cv;$u.exports.isCrypto=!!Kh.cryptographic;var dt={lower:"abcdefghijklmnopqrstuvwxyz",upper:"ABCDEFGHIJKLMNOPQRSTUVWXYZ",number:"0123456789",special:"~!@#$%^&()_+-={}[];',."};dt.all=dt.lower+dt.upper+dt.number+dt.special;function Cv(t,e,r){if(typeof t>"u")throw new Error("randomatic expects a string or number.");var n=!1;arguments.length===1&&(typeof t=="string"?e=t.length:_v(t)&&(r={},e=t,t="*")),Xh(e)==="object"&&e.hasOwnProperty("chars")&&(r=e,t=r.chars,e=t.length,n=!0);var o=r||{},i="",s="";if(t.indexOf("?")!==-1&&(i+=o.chars),t.indexOf("a")!==-1&&(i+=dt.lower),t.indexOf("A")!==-1&&(i+=dt.upper),t.indexOf("0")!==-1&&(i+=dt.number),t.indexOf("!")!==-1&&(i+=dt.special),t.indexOf("*")!==-1&&(i+=dt.all),n&&(i+=t),o.exclude){var a=Xh(o.exclude)==="string"?o.exclude:o.exclude.join("");a=a.replace(new RegExp("[\\]]+","g"),""),i=i.replace(new RegExp("["+a+"]+","g"),""),o.exclude.indexOf("]")!==-1&&(i=i.replace(new RegExp("[\\]]+","g"),""))}for(;e--;)s+=i.charAt(parseInt(Kh()*i.length,10));return s}});var Gd=C((So,mn)=>{var Lv=200,yd="__lodash_hash_undefined__",xd=9007199254740991,Gu="[object Arguments]",kv="[object Array]",bd="[object Boolean]",vd="[object Date]",jv="[object Error]",Ju="[object Function]",wd="[object GeneratorFunction]",os="[object Map]",Sd="[object Number]",Yu="[object Object]",sd="[object Promise]",Ed="[object RegExp]",is="[object Set]",Td="[object String]",_d="[object Symbol]",ju="[object WeakMap]",Cd="[object ArrayBuffer]",ss="[object DataView]",Ad="[object Float32Array]",Id="[object Float64Array]",Md="[object Int8Array]",Pd="[object Int16Array]",$d="[object Int32Array]",Nd="[object Uint8Array]",Od="[object Uint8ClampedArray]",Dd="[object Uint16Array]",Bd="[object Uint32Array]",qv=/[\\^$.*+?()[\]{}|]/g,Wv=/\w*$/,Hv=/^\[object .+?Constructor\]$/,zv=/^(?:0|[1-9]\d*)$/,ue={};ue[Gu]=ue[kv]=ue[Cd]=ue[ss]=ue[bd]=ue[vd]=ue[Ad]=ue[Id]=ue[Md]=ue[Pd]=ue[$d]=ue[os]=ue[Sd]=ue[Yu]=ue[Ed]=ue[is]=ue[Td]=ue[_d]=ue[Nd]=ue[Od]=ue[Dd]=ue[Bd]=!0;ue[jv]=ue[Ju]=ue[ju]=!1;var Vv=typeof global=="object"&&global&&global.Object===Object&&global,Gv=typeof self=="object"&&self&&self.Object===Object&&self,At=Vv||Gv||Function("return this")(),Rd=typeof So=="object"&&So&&!So.nodeType&&So,ad=Rd&&typeof mn=="object"&&mn&&!mn.nodeType&&mn,Jv=ad&&ad.exports===Rd;function Yv(t,e){return t.set(e[0],e[1]),t}function Qv(t,e){return t.add(e),t}function Zv(t,e){for(var r=-1,n=t?t.length:0;++r<n&&e(t[r],r,t)!==!1;);return t}function Xv(t,e){for(var r=-1,n=e.length,o=t.length;++r<n;)t[o+r]=e[r];return t}function Fd(t,e,r,n){var o=-1,i=t?t.length:0;for(n&&i&&(r=t[++o]);++o<i;)r=e(r,t[o],o,t);return r}function Kv(t,e){for(var r=-1,n=Array(t);++r<t;)n[r]=e(r);return n}function ew(t,e){return t?.[e]}function Ud(t){var e=!1;if(t!=null&&typeof t.toString!="function")try{e=!!(t+"")}catch{}return e}function ud(t){var e=-1,r=Array(t.size);return t.forEach(function(n,o){r[++e]=[o,n]}),r}function Qu(t,e){return function(r){return t(e(r))}}function cd(t){var e=-1,r=Array(t.size);return t.forEach(function(n){r[++e]=n}),r}var tw=Array.prototype,rw=Function.prototype,as=Object.prototype,ku=At["__core-js_shared__"],ld=function(){var t=/[^.]+$/.exec(ku&&ku.keys&&ku.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}(),Ld=rw.toString,Jt=as.hasOwnProperty,us=as.toString,nw=RegExp("^"+Ld.call(Jt).replace(qv,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),fd=Jv?At.Buffer:void 0,pd=At.Symbol,hd=At.Uint8Array,ow=Qu(Object.getPrototypeOf,Object),iw=Object.create,sw=as.propertyIsEnumerable,aw=tw.splice,dd=Object.getOwnPropertySymbols,uw=fd?fd.isBuffer:void 0,cw=Qu(Object.keys,Object),qu=xn(At,"DataView"),Eo=xn(At,"Map"),Wu=xn(At,"Promise"),Hu=xn(At,"Set"),zu=xn(At,"WeakMap"),To=xn(Object,"create"),lw=_r(qu),fw=_r(Eo),pw=_r(Wu),hw=_r(Hu),dw=_r(zu),md=pd?pd.prototype:void 0,gd=md?md.valueOf:void 0;function Tr(t){var e=-1,r=t?t.length:0;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function mw(){this.__data__=To?To(null):{}}function gw(t){return this.has(t)&&delete this.__data__[t]}function yw(t){var e=this.__data__;if(To){var r=e[t];return r===yd?void 0:r}return Jt.call(e,t)?e[t]:void 0}function xw(t){var e=this.__data__;return To?e[t]!==void 0:Jt.call(e,t)}function bw(t,e){var r=this.__data__;return r[t]=To&&e===void 0?yd:e,this}Tr.prototype.clear=mw;Tr.prototype.delete=gw;Tr.prototype.get=yw;Tr.prototype.has=xw;Tr.prototype.set=bw;function It(t){var e=-1,r=t?t.length:0;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function vw(){this.__data__=[]}function ww(t){var e=this.__data__,r=cs(e,t);if(r<0)return!1;var n=e.length-1;return r==n?e.pop():aw.call(e,r,1),!0}function Sw(t){var e=this.__data__,r=cs(e,t);return r<0?void 0:e[r][1]}function Ew(t){return cs(this.__data__,t)>-1}function Tw(t,e){var r=this.__data__,n=cs(r,t);return n<0?r.push([t,e]):r[n][1]=e,this}It.prototype.clear=vw;It.prototype.delete=ww;It.prototype.get=Sw;It.prototype.has=Ew;It.prototype.set=Tw;function gn(t){var e=-1,r=t?t.length:0;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function _w(){this.__data__={hash:new Tr,map:new(Eo||It),string:new Tr}}function Cw(t){return ls(this,t).delete(t)}function Aw(t){return ls(this,t).get(t)}function Iw(t){return ls(this,t).has(t)}function Mw(t,e){return ls(this,t).set(t,e),this}gn.prototype.clear=_w;gn.prototype.delete=Cw;gn.prototype.get=Aw;gn.prototype.has=Iw;gn.prototype.set=Mw;function yn(t){this.__data__=new It(t)}function Pw(){this.__data__=new It}function $w(t){return this.__data__.delete(t)}function Nw(t){return this.__data__.get(t)}function Ow(t){return this.__data__.has(t)}function Dw(t,e){var r=this.__data__;if(r instanceof It){var n=r.__data__;if(!Eo||n.length<Lv-1)return n.push([t,e]),this;r=this.__data__=new gn(n)}return r.set(t,e),this}yn.prototype.clear=Pw;yn.prototype.delete=$w;yn.prototype.get=Nw;yn.prototype.has=Ow;yn.prototype.set=Dw;function Bw(t,e){var r=Xu(t)||i1(t)?Kv(t.length,String):[],n=r.length,o=!!n;for(var i in t)(e||Jt.call(t,i))&&!(o&&(i=="length"||t1(i,n)))&&r.push(i);return r}function kd(t,e,r){var n=t[e];(!(Jt.call(t,e)&&Hd(n,r))||r===void 0&&!(e in t))&&(t[e]=r)}function cs(t,e){for(var r=t.length;r--;)if(Hd(t[r][0],e))return r;return-1}function Rw(t,e){return t&&jd(e,Ku(e),t)}function Vu(t,e,r,n,o,i,s){var a;if(n&&(a=i?n(t,o,i,s):n(t)),a!==void 0)return a;if(!fs(t))return t;var u=Xu(t);if(u){if(a=Xw(t),!e)return Yw(t,a)}else{var c=Er(t),l=c==Ju||c==wd;if(a1(t))return qw(t,e);if(c==Yu||c==Gu||l&&!i){if(Ud(t))return i?t:{};if(a=Kw(l?{}:t),!e)return Qw(t,Rw(a,t))}else{if(!ue[c])return i?t:{};a=e1(t,c,Vu,e)}}s||(s=new yn);var f=s.get(t);if(f)return f;if(s.set(t,a),!u)var h=r?Zw(t):Ku(t);return Zv(h||t,function(y,w){h&&(w=y,y=t[w]),kd(a,w,Vu(y,e,r,n,w,t,s))}),a}function Fw(t){return fs(t)?iw(t):{}}function Uw(t,e,r){var n=e(t);return Xu(t)?n:Xv(n,r(t))}function Lw(t){return us.call(t)}function kw(t){if(!fs(t)||n1(t))return!1;var e=Vd(t)||Ud(t)?nw:Hv;return e.test(_r(t))}function jw(t){if(!Wd(t))return cw(t);var e=[];for(var r in Object(t))Jt.call(t,r)&&r!="constructor"&&e.push(r);return e}function qw(t,e){if(e)return t.slice();var r=new t.constructor(t.length);return t.copy(r),r}function Zu(t){var e=new t.constructor(t.byteLength);return new hd(e).set(new hd(t)),e}function Ww(t,e){var r=e?Zu(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.byteLength)}function Hw(t,e,r){var n=e?r(ud(t),!0):ud(t);return Fd(n,Yv,new t.constructor)}function zw(t){var e=new t.constructor(t.source,Wv.exec(t));return e.lastIndex=t.lastIndex,e}function Vw(t,e,r){var n=e?r(cd(t),!0):cd(t);return Fd(n,Qv,new t.constructor)}function Gw(t){return gd?Object(gd.call(t)):{}}function Jw(t,e){var r=e?Zu(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.length)}function Yw(t,e){var r=-1,n=t.length;for(e||(e=Array(n));++r<n;)e[r]=t[r];return e}function jd(t,e,r,n){r||(r={});for(var o=-1,i=e.length;++o<i;){var s=e[o],a=n?n(r[s],t[s],s,r,t):void 0;kd(r,s,a===void 0?t[s]:a)}return r}function Qw(t,e){return jd(t,qd(t),e)}function Zw(t){return Uw(t,Ku,qd)}function ls(t,e){var r=t.__data__;return r1(e)?r[typeof e=="string"?"string":"hash"]:r.map}function xn(t,e){var r=ew(t,e);return kw(r)?r:void 0}var qd=dd?Qu(dd,Object):l1,Er=Lw;(qu&&Er(new qu(new ArrayBuffer(1)))!=ss||Eo&&Er(new Eo)!=os||Wu&&Er(Wu.resolve())!=sd||Hu&&Er(new Hu)!=is||zu&&Er(new zu)!=ju)&&(Er=function(t){var e=us.call(t),r=e==Yu?t.constructor:void 0,n=r?_r(r):void 0;if(n)switch(n){case lw:return ss;case fw:return os;case pw:return sd;case hw:return is;case dw:return ju}return e});function Xw(t){var e=t.length,r=t.constructor(e);return e&&typeof t[0]=="string"&&Jt.call(t,"index")&&(r.index=t.index,r.input=t.input),r}function Kw(t){return typeof t.constructor=="function"&&!Wd(t)?Fw(ow(t)):{}}function e1(t,e,r,n){var o=t.constructor;switch(e){case Cd:return Zu(t);case bd:case vd:return new o(+t);case ss:return Ww(t,n);case Ad:case Id:case Md:case Pd:case $d:case Nd:case Od:case Dd:case Bd:return Jw(t,n);case os:return Hw(t,n,r);case Sd:case Td:return new o(t);case Ed:return zw(t);case is:return Vw(t,n,r);case _d:return Gw(t)}}function t1(t,e){return e=e??xd,!!e&&(typeof t=="number"||zv.test(t))&&t>-1&&t%1==0&&t<e}function r1(t){var e=typeof t;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?t!=="__proto__":t===null}function n1(t){return!!ld&&ld in t}function Wd(t){var e=t&&t.constructor,r=typeof e=="function"&&e.prototype||as;return t===r}function _r(t){if(t!=null){try{return Ld.call(t)}catch{}try{return t+""}catch{}}return""}function o1(t){return Vu(t,!0,!0)}function Hd(t,e){return t===e||t!==t&&e!==e}function i1(t){return s1(t)&&Jt.call(t,"callee")&&(!sw.call(t,"callee")||us.call(t)==Gu)}var Xu=Array.isArray;function zd(t){return t!=null&&u1(t.length)&&!Vd(t)}function s1(t){return c1(t)&&zd(t)}var a1=uw||f1;function Vd(t){var e=fs(t)?us.call(t):"";return e==Ju||e==wd}function u1(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=xd}function fs(t){var e=typeof t;return!!t&&(e=="object"||e=="function")}function c1(t){return!!t&&typeof t=="object"}function Ku(t){return zd(t)?Bw(t):jw(t)}function l1(){return[]}function f1(){return!1}mn.exports=o1});var Yd=C((UP,Jd)=>{"use strict";Jd.exports=function(t,e){e||(e={}),typeof e=="function"&&(e={cmp:e});var r=typeof e.cycles=="boolean"?e.cycles:!1,n=e.cmp&&function(i){return function(s){return function(a,u){var c={key:a,value:s[a]},l={key:u,value:s[u]};return i(c,l)}}}(e.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,u;if(Array.isArray(s)){for(u="[",a=0;a<s.length;a++)a&&(u+=","),u+=i(s[a])||"null";return u+"]"}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,l=Object.keys(s).sort(n&&n(s));for(u="",a=0;a<l.length;a++){var f=l[a],h=i(s[f]);h&&(u&&(u+=","),u+=JSON.stringify(f)+":"+h)}return o.splice(c,1),"{"+u+"}"}}(t)}});var tm=C((LP,em)=>{function p1(t,e){return JSON.stringify(t,Qd,e)}function h1(t){return JSON.parse(t,Zd)}function Qd(t,e){return Xd(e)&&ec(e.data)&&(e.data.length>0?e.data="base64:"+Buffer.from(e.data).toString("base64"):e.data=""),e}function Zd(t,e){if(Xd(e)){if(ec(e.data))return Buffer.from(e.data);if(Kd(e.data))return e.data.startsWith("base64:")?Buffer.from(e.data.slice(7),"base64"):Buffer.from(e.data)}return e}function Xd(t){return d1(t)&&t.type==="Buffer"&&(ec(t.data)||Kd(t.data))}function ec(t){return Array.isArray(t)}function Kd(t){return typeof t=="string"}function d1(t){return typeof t=="object"&&t!==null}em.exports={stringify:p1,parse:h1,replacer:Qd,reviver:Zd}});var Am=C(()=>{});var Fm=C(ve=>{"use strict";Object.defineProperty(ve,"__esModule",{value:!0});ve.getFirstTrueOrFalse=ve.timeoutAndContinue=ve.timeoutWrap=ve.map=ve.rejectedPromise=ve.resolvedPromise=ve.defer=ve.Deferred=void 0;var vs=class{constructor(){this.promise=new Promise((e,r)=>{this.resolve=n=>{this.status="fulfilled",this.stoppedAt=Date.now(),e(n)},this.reject=n=>{this.status="rejected",this.stoppedAt=Date.now(),r(n)},this.startedAt=Date.now(),this.status="pending"})}get duration(){return this.stoppedAt?this.stoppedAt-this.startedAt:Date.now()-this.startedAt}};ve.Deferred=vs;ve.defer=()=>new vs;ve.resolvedPromise=t=>Promise.resolve(t);ve.rejectedPromise=t=>Promise.reject(t);ve.map=async(t,e)=>{let r=[],n=[];for(let o of t){let i=e(o);r.push(i),i.then(s=>{n.push(s)})}return await Promise.all(r),n};ve.timeoutWrap=async(t,e,r=!0)=>new Promise((n,o)=>{setTimeout(()=>{r?o(new Error("timeout")):n(null)},e),t.then(n,o)});ve.timeoutAndContinue=async(t,e=6e4)=>ve.timeoutWrap(t,e,!1);ve.getFirstTrueOrFalse=async t=>{let e=ve.defer();for(let r of t)r.then(n=>{n===!0&&e.resolve(!0)});return Promise.all(t).then(()=>{e.resolve(!1)}),e.promise}});var jm=C((Ac,Ic)=>{(function(t,e){typeof Ac=="object"&&typeof Ic<"u"?Ic.exports=e():typeof define=="function"&&define.amd?define(e):(t=t||self,t.SweetScroll=e())})(Ac,function(){"use strict";var t=function(){return t=Object.assign||function(p){for(var d,g=1,b=arguments.length;g<b;g++){d=arguments[g];for(var L in d)Object.prototype.hasOwnProperty.call(d,L)&&(p[L]=d[L])}return p},t.apply(this,arguments)},e=!!(typeof window<"u"&&window.document&&window.document.createElement),r=e?window.history&&"pushState"in window.history&&window.location.protocol!=="file:":!1,n=function(){var m=!1;if(!e)return m;try{var p=window,d=Object.defineProperty({},"passive",{get:function(){m=!0}});p.addEventListener("test",null,d),p.removeEventListener("test",null,d)}catch{}return m}(),o=function(m){return typeof m=="string"},i=function(m){return typeof m=="function"},s=function(m){return Array.isArray(m)},a=function(m){return!s(m)&&m-parseFloat(m)+1>=0},u=function(m,p){return m&&m.hasOwnProperty(p)},c=e?window.requestAnimationFrame.bind(window):null,l=e?window.cancelAnimationFrame.bind(window):null,f=Math.cos,h=Math.sin,y=Math.pow,w=Math.sqrt,A=Math.PI,O={linear:function(m){return m},easeInQuad:function(m,p,d,g,b){return g*(p/=b)*p+d},easeOutQuad:function(m,p,d,g,b){return-g*(p/=b)*(p-2)+d},easeInOutQuad:function(m,p,d,g,b){return(p/=b/2)<1?g/2*p*p+d:-g/2*(--p*(p-2)-1)+d},easeInCubic:function(m,p,d,g,b){return g*(p/=b)*p*p+d},easeOutCubic:function(m,p,d,g,b){return g*((p=p/b-1)*p*p+1)+d},easeInOutCubic:function(m,p,d,g,b){return(p/=b/2)<1?g/2*p*p*p+d:g/2*((p-=2)*p*p+2)+d},easeInQuart:function(m,p,d,g,b){return g*(p/=b)*p*p*p+d},easeOutQuart:function(m,p,d,g,b){return-g*((p=p/b-1)*p*p*p-1)+d},easeInOutQuart:function(m,p,d,g,b){return(p/=b/2)<1?g/2*p*p*p*p+d:-g/2*((p-=2)*p*p*p-2)+d},easeInQuint:function(m,p,d,g,b){return g*(p/=b)*p*p*p*p+d},easeOutQuint:function(m,p,d,g,b){return g*((p=p/b-1)*p*p*p*p+1)+d},easeInOutQuint:function(m,p,d,g,b){return(p/=b/2)<1?g/2*p*p*p*p*p+d:g/2*((p-=2)*p*p*p*p+2)+d},easeInSine:function(m,p,d,g,b){return-g*f(p/b*(A/2))+g+d},easeOutSine:function(m,p,d,g,b){return g*h(p/b*(A/2))+d},easeInOutSine:function(m,p,d,g,b){return-g/2*(f(A*p/b)-1)+d},easeInExpo:function(m,p,d,g,b){return p===0?d:g*y(2,10*(p/b-1))+d},easeOutExpo:function(m,p,d,g,b){return p===b?d+g:g*(-y(2,-10*p/b)+1)+d},easeInOutExpo:function(m,p,d,g,b){return p===0?d:p===b?d+g:(p/=b/2)<1?g/2*y(2,10*(p-1))+d:g/2*(-y(2,-10*--p)+2)+d},easeInCirc:function(m,p,d,g,b){return-g*(w(1-(p/=b)*p)-1)+d},easeOutCirc:function(m,p,d,g,b){return g*w(1-(p=p/b-1)*p)+d},easeInOutCirc:function(m,p,d,g,b){return(p/=b/2)<1?-g/2*(w(1-p*p)-1)+d:g/2*(w(1-(p-=2)*p)+1)+d}},_=function(m){return Array.prototype.slice.call(m?document.querySelectorAll(m):[])},I=function(m){return _(m).shift()||null},D=function(m){return m instanceof Element},N=function(m){return m===window},q=function(m){return m===document.documentElement||m===document.body},U=function(m,p){if(D(p))return m===p;for(var d=_(p),g=d.length;--g>=0&&d[g]!==m;);return g>-1},Y=function(m){return Math.max(m.scrollHeight,m.clientHeight,m.offsetHeight)},F=function(m){return Math.max(m.scrollWidth,m.clientWidth,m.offsetWidth)},B=function(m){return{width:F(m),height:Y(m)}},re=function(m){var p=N(m)||q(m);return{viewport:{width:p?Math.min(window.innerWidth,document.documentElement.clientWidth):m.clientWidth,height:p?window.innerHeight:m.clientHeight},size:p?{width:Math.max(F(document.body),F(document.documentElement)),height:Math.max(Y(document.body),Y(document.documentElement))}:B(m)}},Se={y:"scrollTop",x:"scrollLeft"},$={y:"pageYOffset",x:"pageXOffset"},S=function(m,p){return N(m)?m[$[p]]:m[Se[p]]},E=function(m,p,d){if(N(m)){var g=d==="y";m.scrollTo(g?m.pageXOffset:p,g?p:m.pageYOffset)}else m[Se[d]]=p},P=function(m,p){var d=m.getBoundingClientRect();if(d.width||d.height){var g={top:0,left:0},b=void 0;if(N(p)||q(p))b=document.documentElement,g.top=window[$.y],g.left=window[$.x];else{b=p;var L=b.getBoundingClientRect();g.top=L.top*-1+b[Se.y],g.left=L.left*-1+b[Se.x]}return{top:d.top+g.top-b.clientTop,left:d.left+g.left-b.clientLeft}}return d},T=function(){return e?"onwheel"in document?"wheel":"mousewheel":"wheel"}(),j=function(m){return m==="wheel"?T:m},v=function(m,p,d,g,b){d.split(" ").forEach(function(L){m[p](j(L),g,n?{passive:b}:!1)})},M=function(m,p,d,g){return v(m,"addEventListener",p,d,g)},R=function(m,p,d,g){return v(m,"removeEventListener",p,d,g)},H=/^(\+|-)=(\d+(?:\.\d+)?)$/,z=function(m,p){var d={top:0,left:0,relative:!1};if(u(m,"top")||u(m,"left"))d=t({},d,m);else if(s(m))if(m.length>1)d.top=m[0],d.left=m[1];else if(m.length===1)d.top=p?m[0]:0,d.left=p?0:m[0];else return null;else if(a(m))p?d.top=m:d.left=m;else if(o(m)){var g=m.trim().match(H);if(!g)return null;var b=g[1],L=parseInt(g[2],10);b==="+"?(d.top=p?L:0,d.left=p?0:L):(d.top=p?-L:0,d.left=p?0:-L),d.relative=!0}else return null;return d},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},ne="click",pe="wheel touchstart touchmove",Ee=function(){function m(p,d){var g=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(L){var oe=g,ie=oe.$el,ae=oe.ctx;if(ae.start||(ae.start=L),!ae.progress||!ie){g.stop();return}var gt=ae.opts,He=ae.pos,rt=ae.start,Br=ae.startPos,kn=ae.easing,yt=gt.duration,Ft={top:"y",left:"x"},ut=L-rt,Ie=Math.min(1,Math.max(ut/yt,0));Object.keys(He).forEach(function(Rr){var zo=He[Rr],jn=Br[Rr],qn=zo-jn;if(qn!==0){var Vo=kn(Ie,yt*Ie,0,1,yt);E(ie,Math.round(jn+qn*Vo),Ft[Rr])}}),ut<=yt?(g.hook(gt,"step",Ie),ae.id=m.raf(g.loop)):g.stop(!0)},this.handleClick=function(L){for(var oe=g.opts,ie=L.target;ie&&ie!==document;ie=ie.parentNode)if(U(ie,oe.trigger)){var ae=JSON.parse(ie.getAttribute("data-scroll-options")||"{}"),gt=ie.getAttribute("data-scroll"),He=gt||ie.getAttribute("href"),rt=t({},oe,ae),Br=rt.preventDefault,kn=rt.stopPropagation,yt=rt.vertical,Ft=rt.horizontal;Br&&L.preventDefault(),kn&&L.stopPropagation(),g.ctx.$trigger=ie,Ft&&yt?g.to(He,rt):yt?g.toTop(He,rt):Ft&&g.toLeft(He,rt);break}},this.handleStop=function(L){var oe=g.ctx,ie=oe.opts;ie&&ie.cancellable?(oe.cancel=!0,g.stop()):L.preventDefault()},this.opts=t({},K,p||{});var b=null;e&&(typeof d=="string"?b=I(d):d!=null?b=d:b=window),this.$el=b,b&&this.bind(!0,!1)}return m.create=function(p,d){return new m(p,d)},m.prototype.to=function(p,d){if(e){var g=this,b=g.$el,L=g.ctx,oe=g.opts,ie=L.$trigger,ae=t({},oe,d||{}),gt=ae.offset,He=ae.vertical,rt=ae.horizontal,Br=D(ae.header)?ae.header:I(ae.header),kn=/^#/,yt=o(p)&&kn.test(p)?p:null;if(L.opts=ae,L.cancel=!1,L.hash=yt,this.stop(),!!b){var Ft=z(gt,He),ut=z(p,He),Ie={top:0,left:0};if(ut)if(ut.relative){var Rr=S(b,He?"y":"x");Ie.top=He?Rr+ut.top:ut.top,Ie.left=He?ut.left:Rr+ut.left}else Ie=ut;else if(o(p)&&p!=="#"){var zo=I(p);if(!zo)return;Ie=P(zo,b)}Ft&&(Ie.top+=Ft.top,Ie.left+=Ft.left),Br&&(Ie.top=Math.max(0,Ie.top-B(Br).height));var jn=re(b),qn=jn.viewport,Vo=jn.size;if(Ie.top=He?Math.max(0,Math.min(Vo.height-qn.height,Ie.top)):S(b,"y"),Ie.left=rt?Math.max(0,Math.min(Vo.width-qn.width,Ie.left)):S(b,"x"),this.hook(ae,"before",Ie,ie)===!1){L.opts=null;return}L.pos=Ie,this.start(ae),this.bind(!1,!0)}}},m.prototype.toTop=function(p,d){this.to(p,t({},d||{},{vertical:!0,horizontal:!1}))},m.prototype.toLeft=function(p,d){this.to(p,t({},d||{},{vertical:!1,horizontal:!0}))},m.prototype.toElement=function(p,d){var g=this.$el;!e||!g||this.to(P(p,g),d||{})},m.prototype.stop=function(p){p===void 0&&(p=!1);var d=this,g=d.$el,b=d.ctx,L=b.pos;!g||!b.progress||(m.caf(b.id),b.progress=!1,b.start=0,b.id=0,p&&L&&(E(g,L.left,"x"),E(g,L.top,"y")),this.complete())},m.prototype.update=function(p){if(this.$el){var d=t({},this.opts,p);this.stop(),this.unbind(!0,!0),this.opts=d,this.bind(!0,!1)}},m.prototype.destroy=function(){this.$el&&(this.stop(),this.unbind(!0,!0),this.$el=null)},m.prototype.onBefore=function(p,d){return!0},m.prototype.onStep=function(p){},m.prototype.onAfter=function(p,d){},m.prototype.onCancel=function(){},m.prototype.onComplete=function(p){},m.prototype.start=function(p){var d=this.ctx;d.opts=p,d.progress=!0,d.easing=i(p.easing)?p.easing:O[p.easing];var g=this.$el,b={top:S(g,"y"),left:S(g,"x")};d.startPos=b,d.id=m.raf(this.loop)},m.prototype.complete=function(){var p=this,d=p.$el,g=p.ctx,b=g.hash,L=g.cancel,oe=g.opts,ie=g.pos,ae=g.$trigger;if(!(!d||!oe)){if(b!=null&&b!==window.location.hash){var gt=oe.updateURL;e&&r&>!==!1&&window.history[gt==="replace"?"replaceState":"pushState"](null,"",b)}this.unbind(!1,!0),g.opts=null,g.$trigger=null,L?this.hook(oe,"cancel"):this.hook(oe,"after",ie,ae),this.hook(oe,"complete",L)}},m.prototype.hook=function(p,d){for(var g=[],b=2;b<arguments.length;b++)g[b-2]=arguments[b];var L,oe=p[d],ie,ae;return i(oe)&&(ie=oe.apply(this,g.concat([this]))),ae=(L=this)["on"+(d[0].toUpperCase()+d.slice(1))].apply(L,g),ie!==void 0?ie:ae},m.prototype.bind=function(p,d){var g=this,b=g.$el,L=g.ctx.opts;b&&(p&&M(b,ne,this.handleClick,!1),d&&M(b,pe,this.handleStop,L?L.cancellable:!0))},m.prototype.unbind=function(p,d){var g=this,b=g.$el,L=g.ctx.opts;b&&(p&&R(b,ne,this.handleClick,!1),d&&R(b,pe,this.handleStop,L?L.cancellable:!0))},m.raf=c,m.caf=l,m}();return Ee})});var og=C((oF,ng)=>{ng.exports=function(){return typeof Promise=="function"&&Promise.prototype&&Promise.prototype.then}});var Xt=C(Pr=>{var kc,gE=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];Pr.getSymbolSize=function(e){if(!e)throw new Error('"version" cannot be null or undefined');if(e<1||e>40)throw new Error('"version" should be in range from 1 to 40');return e*4+17};Pr.getSymbolTotalCodewords=function(e){return gE[e]};Pr.getBCHDigit=function(t){let e=0;for(;t!==0;)e++,t>>>=1;return e};Pr.setToSJISFunction=function(e){if(typeof e!="function")throw new Error('"toSJISFunc" is not a valid function.');kc=e};Pr.isKanjiModeEnabled=function(){return typeof kc<"u"};Pr.toSJIS=function(e){return kc(e)}});var Bs=C(Ke=>{Ke.L={bit:1};Ke.M={bit:0};Ke.Q={bit:3};Ke.H={bit:2};function yE(t){if(typeof t!="string")throw new Error("Param is not a string");switch(t.toLowerCase()){case"l":case"low":return Ke.L;case"m":case"medium":return Ke.M;case"q":case"quartile":return Ke.Q;case"h":case"high":return Ke.H;default:throw new Error("Unknown EC Level: "+t)}}Ke.isValid=function(e){return e&&typeof e.bit<"u"&&e.bit>=0&&e.bit<4};Ke.from=function(e,r){if(Ke.isValid(e))return e;try{return yE(e)}catch{return r}}});var ag=C((aF,sg)=>{function ig(){this.buffer=[],this.length=0}ig.prototype={get:function(t){let e=Math.floor(t/8);return(this.buffer[e]>>>7-t%8&1)===1},put:function(t,e){for(let r=0;r<e;r++)this.putBit((t>>>e-r-1&1)===1)},getLengthInBits:function(){return this.length},putBit:function(t){let e=Math.floor(this.length/8);this.buffer.length<=e&&this.buffer.push(0),t&&(this.buffer[e]|=128>>>this.length%8),this.length++}};sg.exports=ig});var cg=C((uF,ug)=>{function Ro(t){if(!t||t<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=t,this.data=new Uint8Array(t*t),this.reservedBit=new Uint8Array(t*t)}Ro.prototype.set=function(t,e,r,n){let o=t*this.size+e;this.data[o]=r,n&&(this.reservedBit[o]=!0)};Ro.prototype.get=function(t,e){return this.data[t*this.size+e]};Ro.prototype.xor=function(t,e,r){this.data[t*this.size+e]^=r};Ro.prototype.isReserved=function(t,e){return this.reservedBit[t*this.size+e]};ug.exports=Ro});var lg=C(Rs=>{var xE=Xt().getSymbolSize;Rs.getRowColCoords=function(e){if(e===1)return[];let r=Math.floor(e/7)+2,n=xE(e),o=n===145?26:Math.ceil((n-13)/(2*r-2))*2,i=[n-7];for(let s=1;s<r-1;s++)i[s]=i[s-1]-o;return i.push(6),i.reverse()};Rs.getPositions=function(e){let r=[],n=Rs.getRowColCoords(e),o=n.length;for(let i=0;i<o;i++)for(let s=0;s<o;s++)i===0&&s===0||i===0&&s===o-1||i===o-1&&s===0||r.push([n[i],n[s]]);return r}});var hg=C(pg=>{var bE=Xt().getSymbolSize,fg=7;pg.getPositions=function(e){let r=bE(e);return[[0,0],[r-fg,0],[0,r-fg]]}});var dg=C(ce=>{ce.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};var $r={N1:3,N2:3,N3:40,N4:10};ce.isValid=function(e){return e!=null&&e!==""&&!isNaN(e)&&e>=0&&e<=7};ce.from=function(e){return ce.isValid(e)?parseInt(e,10):void 0};ce.getPenaltyN1=function(e){let r=e.size,n=0,o=0,i=0,s=null,a=null;for(let u=0;u<r;u++){o=i=0,s=a=null;for(let c=0;c<r;c++){let l=e.get(u,c);l===s?o++:(o>=5&&(n+=$r.N1+(o-5)),s=l,o=1),l=e.get(c,u),l===a?i++:(i>=5&&(n+=$r.N1+(i-5)),a=l,i=1)}o>=5&&(n+=$r.N1+(o-5)),i>=5&&(n+=$r.N1+(i-5))}return n};ce.getPenaltyN2=function(e){let r=e.size,n=0;for(let o=0;o<r-1;o++)for(let i=0;i<r-1;i++){let s=e.get(o,i)+e.get(o,i+1)+e.get(o+1,i)+e.get(o+1,i+1);(s===4||s===0)&&n++}return n*$r.N2};ce.getPenaltyN3=function(e){let r=e.size,n=0,o=0,i=0;for(let s=0;s<r;s++){o=i=0;for(let a=0;a<r;a++)o=o<<1&2047|e.get(s,a),a>=10&&(o===1488||o===93)&&n++,i=i<<1&2047|e.get(a,s),a>=10&&(i===1488||i===93)&&n++}return n*$r.N3};ce.getPenaltyN4=function(e){let r=0,n=e.data.length;for(let i=0;i<n;i++)r+=e.data[i];return Math.abs(Math.ceil(r*100/n/5)-10)*$r.N4};function vE(t,e,r){switch(t){case ce.Patterns.PATTERN000:return(e+r)%2===0;case ce.Patterns.PATTERN001:return e%2===0;case ce.Patterns.PATTERN010:return r%3===0;case ce.Patterns.PATTERN011:return(e+r)%3===0;case ce.Patterns.PATTERN100:return(Math.floor(e/2)+Math.floor(r/3))%2===0;case ce.Patterns.PATTERN101:return e*r%2+e*r%3===0;case ce.Patterns.PATTERN110:return(e*r%2+e*r%3)%2===0;case ce.Patterns.PATTERN111:return(e*r%3+(e+r)%2)%2===0;default:throw new Error("bad maskPattern:"+t)}}ce.applyMask=function(e,r){let n=r.size;for(let o=0;o<n;o++)for(let i=0;i<n;i++)r.isReserved(i,o)||r.xor(i,o,vE(e,i,o))};ce.getBestMask=function(e,r){let n=Object.keys(ce.Patterns).length,o=0,i=1/0;for(let s=0;s<n;s++){r(s),ce.applyMask(s,e);let a=ce.getPenaltyN1(e)+ce.getPenaltyN2(e)+ce.getPenaltyN3(e)+ce.getPenaltyN4(e);ce.applyMask(s,e),a<i&&(i=a,o=s)}return o}});var qc=C(jc=>{var Kt=Bs(),Fs=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],Us=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];jc.getBlocksCount=function(e,r){switch(r){case Kt.L:return Fs[(e-1)*4+0];case Kt.M:return Fs[(e-1)*4+1];case Kt.Q:return Fs[(e-1)*4+2];case Kt.H:return Fs[(e-1)*4+3];default:return}};jc.getTotalCodewordsCount=function(e,r){switch(r){case Kt.L:return Us[(e-1)*4+0];case Kt.M:return Us[(e-1)*4+1];case Kt.Q:return Us[(e-1)*4+2];case Kt.H:return Us[(e-1)*4+3];default:return}}});var mg=C(ks=>{var Fo=new Uint8Array(512),Ls=new Uint8Array(256);(function(){let e=1;for(let r=0;r<255;r++)Fo[r]=e,Ls[e]=r,e<<=1,e&256&&(e^=285);for(let r=255;r<512;r++)Fo[r]=Fo[r-255]})();ks.log=function(e){if(e<1)throw new Error("log("+e+")");return Ls[e]};ks.exp=function(e){return Fo[e]};ks.mul=function(e,r){return e===0||r===0?0:Fo[Ls[e]+Ls[r]]}});var gg=C(Uo=>{var Wc=mg();Uo.mul=function(e,r){let n=new Uint8Array(e.length+r.length-1);for(let o=0;o<e.length;o++)for(let i=0;i<r.length;i++)n[o+i]^=Wc.mul(e[o],r[i]);return n};Uo.mod=function(e,r){let n=new Uint8Array(e);for(;n.length-r.length>=0;){let o=n[0];for(let s=0;s<r.length;s++)n[s]^=Wc.mul(r[s],o);let i=0;for(;i<n.length&&n[i]===0;)i++;n=n.slice(i)}return n};Uo.generateECPolynomial=function(e){let r=new Uint8Array([1]);for(let n=0;n<e;n++)r=Uo.mul(r,new Uint8Array([1,Wc.exp(n)]));return r}});var bg=C((mF,xg)=>{var yg=gg();function Hc(t){this.genPoly=void 0,this.degree=t,this.degree&&this.initialize(this.degree)}Hc.prototype.initialize=function(e){this.degree=e,this.genPoly=yg.generateECPolynomial(this.degree)};Hc.prototype.encode=function(e){if(!this.genPoly)throw new Error("Encoder not initialized");let r=new Uint8Array(e.length+this.degree);r.set(e);let n=yg.mod(r,this.genPoly),o=this.degree-n.length;if(o>0){let i=new Uint8Array(this.degree);return i.set(n,o),i}return n};xg.exports=Hc});var zc=C(vg=>{vg.isValid=function(e){return!isNaN(e)&&e>=1&&e<=40}});var Vc=C(Nt=>{var wg="[0-9]+",wE="[A-Z $%*+\\-./:]+",Lo="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";Lo=Lo.replace(/u/g,"\\u");var SE="(?:(?![A-Z0-9 $%*+\\-./:]|"+Lo+`)(?:.|[\r
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
1
|
+
var ZE=Object.create;var pa=Object.defineProperty;var jd=Object.getOwnPropertyDescriptor;var XE=Object.getOwnPropertyNames;var KE=Object.getPrototypeOf,eC=Object.prototype.hasOwnProperty;var ha=(e=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(e,{get:(t,r)=>(typeof require<"u"?require:t)[r]}):e)(function(e){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')});var N=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),ue=(e,t)=>{for(var r in t)pa(e,r,{get:t[r],enumerable:!0})},tC=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of XE(t))!eC.call(e,i)&&i!==r&&pa(e,i,{get:()=>t[i],enumerable:!(n=jd(t,i))||n.enumerable});return e};var $e=(e,t,r)=>(r=e!=null?ZE(KE(e)):{},tC(t||!e||!e.__esModule?pa(r,"default",{value:e,enumerable:!0}):r,e));var te=(e,t,r,n)=>{for(var i=n>1?void 0:n?jd(t,r):t,o=e.length-1,s;o>=0;o--)(s=e[o])&&(i=(n?s(t,r,i):s(i))||i);return n&&i&&pa(t,r,i),i};var Ca=N(Ea=>{"use strict";Object.defineProperty(Ea,"__esModule",{value:!0});Ea.uni=void 0;var hC=(e="uni")=>`${e}_${"xxxxxxxxxxxxxxxxxxxxxxxx".replace(/[xy]/g,t=>{let r=Math.random()*16|0;return(t==="x"?r:r&3|8).toString(16)})}`;Ea.uni=hC});var Ug=N((Qc,Zc)=>{(function(e,t){typeof Qc=="object"&&typeof Zc<"u"?Zc.exports=t():typeof define=="function"&&define.amd?define(t):(e=typeof globalThis<"u"?globalThis:e||self).dayjs=t()})(Qc,function(){"use strict";var e=1e3,t=6e4,r=36e5,n="millisecond",i="second",o="minute",s="hour",a="day",l="week",u="month",c="quarter",f="year",p="date",h="Invalid Date",m=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,x=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,v={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(B){var _=["th","st","nd","rd"],I=B%100;return"["+B+(_[(I-20)%10]||_[I]||_[0])+"]"}},w=function(B,_,I){var D=String(B);return!D||D.length>=_?B:""+Array(_+1-D.length).join(I)+B},T={s:w,z:function(B){var _=-B.utcOffset(),I=Math.abs(_),D=Math.floor(I/60),F=I%60;return(_<=0?"+":"-")+w(D,2,"0")+":"+w(F,2,"0")},m:function B(_,I){if(_.date()<I.date())return-B(I,_);var D=12*(I.year()-_.year())+(I.month()-_.month()),F=_.clone().add(D,u),V=I-F<0,P=_.clone().add(D+(V?-1:1),u);return+(-(D+(I-F)/(V?F-P:P-F))||0)},a:function(B){return B<0?Math.ceil(B)||0:Math.floor(B)},p:function(B){return{M:u,y:f,w:l,d:a,D:p,h:s,m:o,s:i,ms:n,Q:c}[B]||String(B||"").toLowerCase().replace(/s$/,"")},u:function(B){return B===void 0}},b="en",z={};z[b]=v;var q="$isDayjsObject",A=function(B){return B instanceof E||!(!B||!B[q])},R=function B(_,I,D){var F;if(!_)return b;if(typeof _=="string"){var V=_.toLowerCase();z[V]&&(F=V),I&&(z[V]=I,F=V);var P=_.split("-");if(!F&&P.length>1)return B(P[0])}else{var U=_.name;z[U]=_,F=U}return!D&&F&&(b=F),F||!D&&b},W=function(B,_){if(A(B))return B.clone();var I=typeof _=="object"?_:{};return I.date=B,I.args=arguments,new E(I)},$=T;$.l=R,$.i=A,$.w=function(B,_){return W(B,{locale:_.$L,utc:_.$u,x:_.$x,$offset:_.$offset})};var E=function(){function B(I){this.$L=R(I.locale,null,!0),this.parse(I),this.$x=this.$x||I.x||{},this[q]=!0}var _=B.prototype;return _.parse=function(I){this.$d=function(D){var F=D.date,V=D.utc;if(F===null)return new Date(NaN);if($.u(F))return new Date;if(F instanceof Date)return new Date(F);if(typeof F=="string"&&!/Z$/i.test(F)){var P=F.match(m);if(P){var U=P[2]-1||0,d=(P[7]||"0").substring(0,3);return V?new Date(Date.UTC(P[1],U,P[3]||1,P[4]||0,P[5]||0,P[6]||0,d)):new Date(P[1],U,P[3]||1,P[4]||0,P[5]||0,P[6]||0,d)}}return new Date(F)}(I),this.init()},_.init=function(){var I=this.$d;this.$y=I.getFullYear(),this.$M=I.getMonth(),this.$D=I.getDate(),this.$W=I.getDay(),this.$H=I.getHours(),this.$m=I.getMinutes(),this.$s=I.getSeconds(),this.$ms=I.getMilliseconds()},_.$utils=function(){return $},_.isValid=function(){return this.$d.toString()!==h},_.isSame=function(I,D){var F=W(I);return this.startOf(D)<=F&&F<=this.endOf(D)},_.isAfter=function(I,D){return W(I)<this.startOf(D)},_.isBefore=function(I,D){return this.endOf(D)<W(I)},_.$g=function(I,D,F){return $.u(I)?this[D]:this.set(F,I)},_.unix=function(){return Math.floor(this.valueOf()/1e3)},_.valueOf=function(){return this.$d.getTime()},_.startOf=function(I,D){var F=this,V=!!$.u(D)||D,P=$.p(I),U=function(k,g){var S=$.w(F.$u?Date.UTC(F.$y,g,k):new Date(F.$y,g,k),F);return V?S:S.endOf(a)},d=function(k,g){return $.w(F.toDate()[k].apply(F.toDate("s"),(V?[0,0,0,0]:[23,59,59,999]).slice(g)),F)},G=this.$W,X=this.$M,y=this.$D,ie="set"+(this.$u?"UTC":"");switch(P){case f:return V?U(1,0):U(31,11);case u:return V?U(1,X):U(0,X+1);case l:var me=this.$locale().weekStart||0,_e=(G<me?G+7:G)-me;return U(V?y-_e:y+(6-_e),X);case a:case p:return d(ie+"Hours",0);case s:return d(ie+"Minutes",1);case o:return d(ie+"Seconds",2);case i:return d(ie+"Milliseconds",3);default:return this.clone()}},_.endOf=function(I){return this.startOf(I,!1)},_.$set=function(I,D){var F,V=$.p(I),P="set"+(this.$u?"UTC":""),U=(F={},F[a]=P+"Date",F[p]=P+"Date",F[u]=P+"Month",F[f]=P+"FullYear",F[s]=P+"Hours",F[o]=P+"Minutes",F[i]=P+"Seconds",F[n]=P+"Milliseconds",F)[V],d=V===a?this.$D+(D-this.$W):D;if(V===u||V===f){var G=this.clone().set(p,1);G.$d[U](d),G.init(),this.$d=G.set(p,Math.min(this.$D,G.daysInMonth())).$d}else U&&this.$d[U](d);return this.init(),this},_.set=function(I,D){return this.clone().$set(I,D)},_.get=function(I){return this[$.p(I)]()},_.add=function(I,D){var F,V=this;I=Number(I);var P=$.p(D),U=function(X){var y=W(V);return $.w(y.date(y.date()+Math.round(X*I)),V)};if(P===u)return this.set(u,this.$M+I);if(P===f)return this.set(f,this.$y+I);if(P===a)return U(1);if(P===l)return U(7);var d=(F={},F[o]=t,F[s]=r,F[i]=e,F)[P]||1,G=this.$d.getTime()+I*d;return $.w(G,this)},_.subtract=function(I,D){return this.add(-1*I,D)},_.format=function(I){var D=this,F=this.$locale();if(!this.isValid())return F.invalidDate||h;var V=I||"YYYY-MM-DDTHH:mm:ssZ",P=$.z(this),U=this.$H,d=this.$m,G=this.$M,X=F.weekdays,y=F.months,ie=F.meridiem,me=function(g,S,C,M){return g&&(g[S]||g(D,V))||C[S].slice(0,M)},_e=function(g){return $.s(U%12||12,g,"0")},k=ie||function(g,S,C){var M=g<12?"AM":"PM";return C?M.toLowerCase():M};return V.replace(x,function(g,S){return S||function(C){switch(C){case"YY":return String(D.$y).slice(-2);case"YYYY":return $.s(D.$y,4,"0");case"M":return G+1;case"MM":return $.s(G+1,2,"0");case"MMM":return me(F.monthsShort,G,y,3);case"MMMM":return me(y,G);case"D":return D.$D;case"DD":return $.s(D.$D,2,"0");case"d":return String(D.$W);case"dd":return me(F.weekdaysMin,D.$W,X,2);case"ddd":return me(F.weekdaysShort,D.$W,X,3);case"dddd":return X[D.$W];case"H":return String(U);case"HH":return $.s(U,2,"0");case"h":return _e(1);case"hh":return _e(2);case"a":return k(U,d,!0);case"A":return k(U,d,!1);case"m":return String(d);case"mm":return $.s(d,2,"0");case"s":return String(D.$s);case"ss":return $.s(D.$s,2,"0");case"SSS":return $.s(D.$ms,3,"0");case"Z":return P}return null}(g)||P.replace(":","")})},_.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},_.diff=function(I,D,F){var V,P=this,U=$.p(D),d=W(I),G=(d.utcOffset()-this.utcOffset())*t,X=this-d,y=function(){return $.m(P,d)};switch(U){case f:V=y()/12;break;case u:V=y();break;case c:V=y()/3;break;case l:V=(X-G)/6048e5;break;case a:V=(X-G)/864e5;break;case s:V=X/r;break;case o:V=X/t;break;case i:V=X/e;break;default:V=X}return F?V:$.a(V)},_.daysInMonth=function(){return this.endOf(u).$D},_.$locale=function(){return z[this.$L]},_.locale=function(I,D){if(!I)return this.$L;var F=this.clone(),V=R(I,D,!0);return V&&(F.$L=V),F},_.clone=function(){return $.w(this.$d,this)},_.toDate=function(){return new Date(this.valueOf())},_.toJSON=function(){return this.isValid()?this.toISOString():null},_.toISOString=function(){return this.$d.toISOString()},_.toString=function(){return this.$d.toUTCString()},B}(),fe=E.prototype;return W.prototype=fe,[["$ms",n],["$s",i],["$m",o],["$H",s],["$W",a],["$M",u],["$y",f],["$D",p]].forEach(function(B){fe[B[1]]=function(_){return this.$g(_,B[0],B[1])}}),W.extend=function(B,_){return B.$i||(B(_,E,W),B.$i=!0),W},W.locale=R,W.isDayjs=A,W.unix=function(B){return W(1e3*B)},W.en=z[b],W.Ls=z,W.p={},W})});var jg=N((Xc,Kc)=>{(function(e,t){typeof Xc=="object"&&typeof Kc<"u"?Kc.exports=t():typeof define=="function"&&define.amd?define(t):(e=typeof globalThis<"u"?globalThis:e||self).dayjs_plugin_isToday=t()})(Xc,function(){"use strict";return function(e,t,r){t.prototype.isToday=function(){var n="YYYY-MM-DD",i=r();return this.format(n)===i.format(n)}}})});var Hg=N((n5,qg)=>{"use strict";qg.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 Vg=N((i5,Wg)=>{"use strict";Wg.exports=Object.freeze({DISCONNECTED:1,PRECEDING:2,FOLLOWING:4,CONTAINS:8,CONTAINED_BY:16})});var Zg=N((o5,Qg)=>{"use strict";var Yg=Symbol(),Gg=Symbol(),Rr=Symbol(),Jg=Symbol(),jt=class{constructor(t,r,n,i){this[Yg]=t,this[Gg]=r,this[Rr]=n,this[Jg]=i}next(){let t=this[Yg],r=this[Jg],n=this[Gg];if(!this[Rr])return{done:!0,value:n};let i=this[Rr];return r===1?this[Rr]=t._node(i).previousSibling:r===2?this[Rr]=t._node(i).nextSibling:r===3?this[Rr]=t._node(i).parent:r===4?this[Rr]=t.preceding(i,{root:n}):this[Rr]=t.following(i,{root:n}),{done:!1,value:i}}};Object.defineProperty(jt.prototype,Symbol.iterator,{value:function(){return this},writable:!1});jt.PREV=1;jt.NEXT=2;jt.PARENT=3;jt.PRECEDING=4;jt.FOLLOWING=5;Object.freeze(jt);Object.freeze(jt.prototype);Qg.exports=jt});var cf=N((s5,Xg)=>{"use strict";var oT=Hg(),Lr=Vg(),Tt=Zg();function uf(){return!0}function wi(e,t){return e[e.length-1-t]}var Ka=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 oT)}hasChildren(t){return this._node(t).hasChildren}firstChild(t){return this._node(t).firstChild}lastChild(t){return this._node(t).lastChild}previousSibling(t){return this._node(t).previousSibling}nextSibling(t){return this._node(t).nextSibling}parent(t){return this._node(t).parent}lastInclusiveDescendant(t){let r,n=t;for(;r=this._node(n).lastChild;)n=r;return n}preceding(t,r){let n=r&&r.root;if(t===n)return null;let i=this._node(t).previousSibling;return i?this.lastInclusiveDescendant(i):this._node(t).parent}following(t,r){let n=r&&r.root,o=!(r&&r.skipChildren)&&this._node(t).firstChild;if(o)return o;let s=t;do{if(s===n)return null;let a=this._node(s).nextSibling;if(a)return a;s=this._node(s).parent}while(s);return null}childrenToArray(t,r){let n=r&&r.array||[],i=r&&r.filter||uf,o=r&&r.thisArg||void 0,s=this._node(t),a=s.firstChild,l=0;for(;a;){let u=this._node(a);u.setCachedIndex(s,l),i.call(o,a)&&n.push(a),a=u.nextSibling,++l}return n}ancestorsToArray(t,r){let n=r&&r.array||[],i=r&&r.filter||uf,o=r&&r.thisArg||void 0,s=t;for(;s;)i.call(o,s)&&n.push(s),s=this._node(s).parent;return n}treeToArray(t,r){let n=r&&r.array||[],i=r&&r.filter||uf,o=r&&r.thisArg||void 0,s=t;for(;s;)i.call(o,s)&&n.push(s),s=this.following(s,{root:t});return n}childrenIterator(t,r){let n=r&&r.reverse,i=this._node(t);return new Tt(this,t,n?i.lastChild:i.firstChild,n?Tt.PREV:Tt.NEXT)}previousSiblingsIterator(t){return new Tt(this,t,this._node(t).previousSibling,Tt.PREV)}nextSiblingsIterator(t){return new Tt(this,t,this._node(t).nextSibling,Tt.NEXT)}ancestorsIterator(t){return new Tt(this,t,t,Tt.PARENT)}treeIterator(t,r){let n=r&&r.reverse;return new Tt(this,t,n?this.lastInclusiveDescendant(t):t,n?Tt.PRECEDING:Tt.FOLLOWING)}index(t){let r=this._node(t),n=this._node(r.parent);if(!n)return-1;let i=r.getCachedIndex(n);if(i>=0)return i;i=0;let o=n.firstChild;if(n.childIndexCachedUpTo){let s=this._node(n.childIndexCachedUpTo);o=s.nextSibling,i=s.getCachedIndex(n)+1}for(;o;){let s=this._node(o);if(s.setCachedIndex(n,i),o===t)break;++i,o=s.nextSibling}return n.childIndexCachedUpTo=t,i}childrenCount(t){let r=this._node(t);return r.lastChild?this.index(r.lastChild)+1:0}compareTreePosition(t,r){if(t===r)return 0;let n=[];{let c=t;for(;c;){if(c===r)return Lr.CONTAINS|Lr.PRECEDING;n.push(c),c=this.parent(c)}}let i=[];{let c=r;for(;c;){if(c===t)return Lr.CONTAINED_BY|Lr.FOLLOWING;i.push(c),c=this.parent(c)}}let o=wi(n,0);if(!o||o!==wi(i,0))return Lr.DISCONNECTED;let s=0,a=Math.min(n.length,i.length);for(let c=0;c<a;++c){let f=wi(n,c),p=wi(i,c);if(f!==p)break;s=c}let l=this.index(wi(n,s+1));return this.index(wi(i,s+1))<l?Lr.PRECEDING:Lr.FOLLOWING}remove(t){let r=this._node(t),n=this._node(r.parent),i=this._node(r.previousSibling),o=this._node(r.nextSibling);return n&&(n.firstChild===t&&(n.firstChild=r.nextSibling),n.lastChild===t&&(n.lastChild=r.previousSibling)),i&&(i.nextSibling=r.nextSibling),o&&(o.previousSibling=r.previousSibling),r.parent=null,r.previousSibling=null,r.nextSibling=null,r.cachedIndex=-1,r.cachedIndexVersion=NaN,n&&n.childrenChanged(),t}insertBefore(t,r){let n=this._node(t),i=this._node(n.previousSibling),o=this._node(r),s=this._node(n.parent);if(o.isAttached)throw Error("Given object is already present in this SymbolTree, remove it first");return o.parent=n.parent,o.previousSibling=n.previousSibling,o.nextSibling=t,n.previousSibling=r,i&&(i.nextSibling=r),s&&s.firstChild===t&&(s.firstChild=r),s&&s.childrenChanged(),r}insertAfter(t,r){let n=this._node(t),i=this._node(n.nextSibling),o=this._node(r),s=this._node(n.parent);if(o.isAttached)throw Error("Given object is already present in this SymbolTree, remove it first");return o.parent=n.parent,o.previousSibling=t,o.nextSibling=n.nextSibling,n.nextSibling=r,i&&(i.previousSibling=r),s&&s.lastChild===t&&(s.lastChild=r),s&&s.childrenChanged(),r}prependChild(t,r){let n=this._node(t),i=this._node(r);if(i.isAttached)throw Error("Given object is already present in this SymbolTree, remove it first");return n.hasChildren?this.insertBefore(n.firstChild,r):(i.parent=t,n.firstChild=r,n.lastChild=r,n.childrenChanged()),r}appendChild(t,r){let n=this._node(t),i=this._node(r);if(i.isAttached)throw Error("Given object is already present in this SymbolTree, remove it first");return n.hasChildren?this.insertAfter(n.lastChild,r):(i.parent=t,n.firstChild=r,n.lastChild=r,n.childrenChanged()),r}};Xg.exports=Ka;Ka.TreePosition=Lr});var uy=N((vi,Si)=>{(function(e){var t=typeof vi=="object"&&vi&&!vi.nodeType&&vi,r=typeof Si=="object"&&Si&&!Si.nodeType&&Si,n=typeof global=="object"&&global;(n.global===n||n.window===n||n.self===n)&&(e=n);var i,o=2147483647,s=36,a=1,l=26,u=38,c=700,f=72,p=128,h="-",m=/^xn--/,x=/[^\x20-\x7E]/,v=/[\x2E\u3002\uFF0E\uFF61]/g,w={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},T=s-a,b=Math.floor,z=String.fromCharCode,q;function A(P){throw new RangeError(w[P])}function R(P,U){for(var d=P.length,G=[];d--;)G[d]=U(P[d]);return G}function W(P,U){var d=P.split("@"),G="";d.length>1&&(G=d[0]+"@",P=d[1]),P=P.replace(v,".");var X=P.split("."),y=R(X,U).join(".");return G+y}function $(P){for(var U=[],d=0,G=P.length,X,y;d<G;)X=P.charCodeAt(d++),X>=55296&&X<=56319&&d<G?(y=P.charCodeAt(d++),(y&64512)==56320?U.push(((X&1023)<<10)+(y&1023)+65536):(U.push(X),d--)):U.push(X);return U}function E(P){return R(P,function(U){var d="";return U>65535&&(U-=65536,d+=z(U>>>10&1023|55296),U=56320|U&1023),d+=z(U),d}).join("")}function fe(P){return P-48<10?P-22:P-65<26?P-65:P-97<26?P-97:s}function B(P,U){return P+22+75*(P<26)-((U!=0)<<5)}function _(P,U,d){var G=0;for(P=d?b(P/c):P>>1,P+=b(P/U);P>T*l>>1;G+=s)P=b(P/T);return b(G+(T+1)*P/(P+u))}function I(P){var U=[],d=P.length,G,X=0,y=p,ie=f,me,_e,k,g,S,C,M,Y,de;for(me=P.lastIndexOf(h),me<0&&(me=0),_e=0;_e<me;++_e)P.charCodeAt(_e)>=128&&A("not-basic"),U.push(P.charCodeAt(_e));for(k=me>0?me+1:0;k<d;){for(g=X,S=1,C=s;k>=d&&A("invalid-input"),M=fe(P.charCodeAt(k++)),(M>=s||M>b((o-X)/S))&&A("overflow"),X+=M*S,Y=C<=ie?a:C>=ie+l?l:C-ie,!(M<Y);C+=s)de=s-Y,S>b(o/de)&&A("overflow"),S*=de;G=U.length+1,ie=_(X-g,G,g==0),b(X/G)>o-y&&A("overflow"),y+=b(X/G),X%=G,U.splice(X++,0,y)}return E(U)}function D(P){var U,d,G,X,y,ie,me,_e,k,g,S,C=[],M,Y,de,ye;for(P=$(P),M=P.length,U=p,d=0,y=f,ie=0;ie<M;++ie)S=P[ie],S<128&&C.push(z(S));for(G=X=C.length,X&&C.push(h);G<M;){for(me=o,ie=0;ie<M;++ie)S=P[ie],S>=U&&S<me&&(me=S);for(Y=G+1,me-U>b((o-d)/Y)&&A("overflow"),d+=(me-U)*Y,U=me,ie=0;ie<M;++ie)if(S=P[ie],S<U&&++d>o&&A("overflow"),S==U){for(_e=d,k=s;g=k<=y?a:k>=y+l?l:k-y,!(_e<g);k+=s)ye=_e-g,de=s-g,C.push(z(B(g+ye%de,0))),_e=b(ye/de);C.push(z(B(_e,0))),y=_(d,Y,G==X),d=0,++G}++d,++U}return C.join("")}function F(P){return W(P,function(U){return m.test(U)?I(U.slice(4).toLowerCase()):U})}function V(P){return W(P,function(U){return x.test(U)?"xn--"+D(U):U})}if(i={version:"1.4.1",ucs2:{decode:$,encode:E},decode:I,encode:D,toASCII:V,toUnicode:F},typeof define=="function"&&typeof define.amd=="object"&&define.amd)define("punycode",function(){return i});else if(t&&r)if(Si.exports==t)r.exports=i;else for(q in i)i.hasOwnProperty(q)&&(t[q]=i[q]);else e.punycode=i})(vi)});var fy=N((iH,cy)=>{"use strict";cy.exports=Error});var hy=N((oH,py)=>{"use strict";py.exports=EvalError});var dy=N((sH,my)=>{"use strict";my.exports=RangeError});var yy=N((aH,gy)=>{"use strict";gy.exports=ReferenceError});var vf=N((lH,xy)=>{"use strict";xy.exports=SyntaxError});var ki=N((uH,by)=>{"use strict";by.exports=TypeError});var vy=N((cH,wy)=>{"use strict";wy.exports=URIError});var ky=N((fH,Sy)=>{"use strict";Sy.exports=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var t={},r=Symbol("test"),n=Object(r);if(typeof r=="string"||Object.prototype.toString.call(r)!=="[object Symbol]"||Object.prototype.toString.call(n)!=="[object Symbol]")return!1;var i=42;t[r]=i;for(r in t)return!1;if(typeof Object.keys=="function"&&Object.keys(t).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(t).length!==0)return!1;var o=Object.getOwnPropertySymbols(t);if(o.length!==1||o[0]!==r||!Object.prototype.propertyIsEnumerable.call(t,r))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var s=Object.getOwnPropertyDescriptor(t,r);if(s.value!==i||s.enumerable!==!0)return!1}return!0}});var Cy=N((pH,Ey)=>{"use strict";var Ay=typeof Symbol<"u"&&Symbol,FT=ky();Ey.exports=function(){return typeof Ay!="function"||typeof Symbol!="function"||typeof Ay("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:FT()}});var _y=N((hH,Ty)=>{"use strict";var Sf={__proto__:null,foo:{}},RT=Object;Ty.exports=function(){return{__proto__:Sf}.foo===Sf.foo&&!(Sf instanceof RT)}});var My=N((mH,Oy)=>{"use strict";var LT="Function.prototype.bind called on incompatible ",BT=Object.prototype.toString,$T=Math.max,UT="[object Function]",Iy=function(t,r){for(var n=[],i=0;i<t.length;i+=1)n[i]=t[i];for(var o=0;o<r.length;o+=1)n[o+t.length]=r[o];return n},jT=function(t,r){for(var n=[],i=r||0,o=0;i<t.length;i+=1,o+=1)n[o]=t[i];return n},zT=function(e,t){for(var r="",n=0;n<e.length;n+=1)r+=e[n],n+1<e.length&&(r+=t);return r};Oy.exports=function(t){var r=this;if(typeof r!="function"||BT.apply(r)!==UT)throw new TypeError(LT+r);for(var n=jT(arguments,1),i,o=function(){if(this instanceof i){var c=r.apply(this,Iy(n,arguments));return Object(c)===c?c:this}return r.apply(t,Iy(n,arguments))},s=$T(0,r.length-n.length),a=[],l=0;l<s;l++)a[l]="$"+l;if(i=Function("binder","return function ("+zT(a,",")+"){ return binder.apply(this,arguments); }")(o),r.prototype){var u=function(){};u.prototype=r.prototype,i.prototype=new u,u.prototype=null}return i}});var tl=N((dH,Dy)=>{"use strict";var qT=My();Dy.exports=Function.prototype.bind||qT});var Ny=N((gH,Py)=>{"use strict";var HT=Function.prototype.call,WT=Object.prototype.hasOwnProperty,VT=tl();Py.exports=VT.call(HT,WT)});var On=N((yH,$y)=>{"use strict";var pe,YT=fy(),GT=hy(),JT=dy(),QT=yy(),Ti=vf(),Ci=ki(),ZT=vy(),By=Function,kf=function(e){try{return By('"use strict"; return ('+e+").constructor;")()}catch{}},_n=Object.getOwnPropertyDescriptor;if(_n)try{_n({},"")}catch{_n=null}var Af=function(){throw new Ci},XT=_n?function(){try{return arguments.callee,Af}catch{try{return _n(arguments,"callee").get}catch{return Af}}}():Af,Ai=Cy()(),KT=_y()(),Ke=Object.getPrototypeOf||(KT?function(e){return e.__proto__}:null),Ei={},e_=typeof Uint8Array>"u"||!Ke?pe:Ke(Uint8Array),In={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?pe:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?pe:ArrayBuffer,"%ArrayIteratorPrototype%":Ai&&Ke?Ke([][Symbol.iterator]()):pe,"%AsyncFromSyncIteratorPrototype%":pe,"%AsyncFunction%":Ei,"%AsyncGenerator%":Ei,"%AsyncGeneratorFunction%":Ei,"%AsyncIteratorPrototype%":Ei,"%Atomics%":typeof Atomics>"u"?pe:Atomics,"%BigInt%":typeof BigInt>"u"?pe:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?pe:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?pe:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?pe:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":YT,"%eval%":eval,"%EvalError%":GT,"%Float32Array%":typeof Float32Array>"u"?pe:Float32Array,"%Float64Array%":typeof Float64Array>"u"?pe:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?pe:FinalizationRegistry,"%Function%":By,"%GeneratorFunction%":Ei,"%Int8Array%":typeof Int8Array>"u"?pe:Int8Array,"%Int16Array%":typeof Int16Array>"u"?pe:Int16Array,"%Int32Array%":typeof Int32Array>"u"?pe:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":Ai&&Ke?Ke(Ke([][Symbol.iterator]())):pe,"%JSON%":typeof JSON=="object"?JSON:pe,"%Map%":typeof Map>"u"?pe:Map,"%MapIteratorPrototype%":typeof Map>"u"||!Ai||!Ke?pe:Ke(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?pe:Promise,"%Proxy%":typeof Proxy>"u"?pe:Proxy,"%RangeError%":JT,"%ReferenceError%":QT,"%Reflect%":typeof Reflect>"u"?pe:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?pe:Set,"%SetIteratorPrototype%":typeof Set>"u"||!Ai||!Ke?pe:Ke(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?pe:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":Ai&&Ke?Ke(""[Symbol.iterator]()):pe,"%Symbol%":Ai?Symbol:pe,"%SyntaxError%":Ti,"%ThrowTypeError%":XT,"%TypedArray%":e_,"%TypeError%":Ci,"%Uint8Array%":typeof Uint8Array>"u"?pe:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?pe:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?pe:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?pe:Uint32Array,"%URIError%":ZT,"%WeakMap%":typeof WeakMap>"u"?pe:WeakMap,"%WeakRef%":typeof WeakRef>"u"?pe:WeakRef,"%WeakSet%":typeof WeakSet>"u"?pe:WeakSet};if(Ke)try{null.error}catch(e){Fy=Ke(Ke(e)),In["%Error.prototype%"]=Fy}var Fy,t_=function e(t){var r;if(t==="%AsyncFunction%")r=kf("async function () {}");else if(t==="%GeneratorFunction%")r=kf("function* () {}");else if(t==="%AsyncGeneratorFunction%")r=kf("async function* () {}");else if(t==="%AsyncGenerator%"){var n=e("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if(t==="%AsyncIteratorPrototype%"){var i=e("%AsyncGenerator%");i&&Ke&&(r=Ke(i.prototype))}return In[t]=r,r},Ry={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},ns=tl(),rl=Ny(),r_=ns.call(Function.call,Array.prototype.concat),n_=ns.call(Function.apply,Array.prototype.splice),Ly=ns.call(Function.call,String.prototype.replace),nl=ns.call(Function.call,String.prototype.slice),i_=ns.call(Function.call,RegExp.prototype.exec),o_=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,s_=/\\(\\)?/g,a_=function(t){var r=nl(t,0,1),n=nl(t,-1);if(r==="%"&&n!=="%")throw new Ti("invalid intrinsic syntax, expected closing `%`");if(n==="%"&&r!=="%")throw new Ti("invalid intrinsic syntax, expected opening `%`");var i=[];return Ly(t,o_,function(o,s,a,l){i[i.length]=a?Ly(l,s_,"$1"):s||o}),i},l_=function(t,r){var n=t,i;if(rl(Ry,n)&&(i=Ry[n],n="%"+i[0]+"%"),rl(In,n)){var o=In[n];if(o===Ei&&(o=t_(n)),typeof o>"u"&&!r)throw new Ci("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:i,name:n,value:o}}throw new Ti("intrinsic "+t+" does not exist!")};$y.exports=function(t,r){if(typeof t!="string"||t.length===0)throw new Ci("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof r!="boolean")throw new Ci('"allowMissing" argument must be a boolean');if(i_(/^%?[^%]*%?$/,t)===null)throw new Ti("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=a_(t),i=n.length>0?n[0]:"",o=l_("%"+i+"%",r),s=o.name,a=o.value,l=!1,u=o.alias;u&&(i=u[0],n_(n,r_([0,1],u)));for(var c=1,f=!0;c<n.length;c+=1){var p=n[c],h=nl(p,0,1),m=nl(p,-1);if((h==='"'||h==="'"||h==="`"||m==='"'||m==="'"||m==="`")&&h!==m)throw new Ti("property names with quotes must have matching quotes");if((p==="constructor"||!f)&&(l=!0),i+="."+p,s="%"+i+"%",rl(In,s))a=In[s];else if(a!=null){if(!(p in a)){if(!r)throw new Ci("base intrinsic for "+t+" exists, but the property is not available.");return}if(_n&&c+1>=n.length){var x=_n(a,p);f=!!x,f&&"get"in x&&!("originalValue"in x.get)?a=x.get:a=a[p]}else f=rl(a,p),a=a[p];f&&!l&&(In[s]=a)}}return a}});var ol=N((xH,Uy)=>{"use strict";var u_=On(),il=u_("%Object.defineProperty%",!0)||!1;if(il)try{il({},"a",{value:1})}catch{il=!1}Uy.exports=il});var Ef=N((bH,jy)=>{"use strict";var c_=On(),sl=c_("%Object.getOwnPropertyDescriptor%",!0);if(sl)try{sl([],"length")}catch{sl=null}jy.exports=sl});var Wy=N((wH,Hy)=>{"use strict";var zy=ol(),f_=vf(),_i=ki(),qy=Ef();Hy.exports=function(t,r,n){if(!t||typeof t!="object"&&typeof t!="function")throw new _i("`obj` must be an object or a function`");if(typeof r!="string"&&typeof r!="symbol")throw new _i("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new _i("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new _i("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new _i("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new _i("`loose`, if provided, must be a boolean");var i=arguments.length>3?arguments[3]:null,o=arguments.length>4?arguments[4]:null,s=arguments.length>5?arguments[5]:null,a=arguments.length>6?arguments[6]:!1,l=!!qy&&qy(t,r);if(zy)zy(t,r,{configurable:s===null&&l?l.configurable:!s,enumerable:i===null&&l?l.enumerable:!i,value:n,writable:o===null&&l?l.writable:!o});else if(a||!i&&!o&&!s)t[r]=n;else throw new f_("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")}});var Gy=N((vH,Yy)=>{"use strict";var Cf=ol(),Vy=function(){return!!Cf};Vy.hasArrayLengthDefineBug=function(){if(!Cf)return null;try{return Cf([],"length",{value:1}).length!==1}catch{return!0}};Yy.exports=Vy});var Ky=N((SH,Xy)=>{"use strict";var p_=On(),Jy=Wy(),h_=Gy()(),Qy=Ef(),Zy=ki(),m_=p_("%Math.floor%");Xy.exports=function(t,r){if(typeof t!="function")throw new Zy("`fn` is not a function");if(typeof r!="number"||r<0||r>4294967295||m_(r)!==r)throw new Zy("`length` must be a positive 32-bit integer");var n=arguments.length>2&&!!arguments[2],i=!0,o=!0;if("length"in t&&Qy){var s=Qy(t,"length");s&&!s.configurable&&(i=!1),s&&!s.writable&&(o=!1)}return(i||o||!n)&&(h_?Jy(t,"length",r,!0,!0):Jy(t,"length",r)),t}});var ox=N((kH,al)=>{"use strict";var Tf=tl(),ll=On(),d_=Ky(),g_=ki(),rx=ll("%Function.prototype.apply%"),nx=ll("%Function.prototype.call%"),ix=ll("%Reflect.apply%",!0)||Tf.call(nx,rx),ex=ol(),y_=ll("%Math.max%");al.exports=function(t){if(typeof t!="function")throw new g_("a function is required");var r=ix(Tf,nx,arguments);return d_(r,1+y_(0,t.length-(arguments.length-1)),!0)};var tx=function(){return ix(Tf,rx,arguments)};ex?ex(al.exports,"apply",{value:tx}):al.exports.apply=tx});var ux=N((AH,lx)=>{"use strict";var sx=On(),ax=ox(),x_=ax(sx("String.prototype.indexOf"));lx.exports=function(t,r){var n=sx(t,!!r);return typeof n=="function"&&x_(t,".prototype.")>-1?ax(n):n}});var cx=N(()=>{});var Mx=N((TH,Ox)=>{var Lf=typeof Map=="function"&&Map.prototype,_f=Object.getOwnPropertyDescriptor&&Lf?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,cl=Lf&&_f&&typeof _f.get=="function"?_f.get:null,fx=Lf&&Map.prototype.forEach,Bf=typeof Set=="function"&&Set.prototype,If=Object.getOwnPropertyDescriptor&&Bf?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,fl=Bf&&If&&typeof If.get=="function"?If.get:null,px=Bf&&Set.prototype.forEach,b_=typeof WeakMap=="function"&&WeakMap.prototype,os=b_?WeakMap.prototype.has:null,w_=typeof WeakSet=="function"&&WeakSet.prototype,ss=w_?WeakSet.prototype.has:null,v_=typeof WeakRef=="function"&&WeakRef.prototype,hx=v_?WeakRef.prototype.deref:null,S_=Boolean.prototype.valueOf,k_=Object.prototype.toString,A_=Function.prototype.toString,E_=String.prototype.match,$f=String.prototype.slice,Ur=String.prototype.replace,C_=String.prototype.toUpperCase,mx=String.prototype.toLowerCase,kx=RegExp.prototype.test,dx=Array.prototype.concat,Vt=Array.prototype.join,T_=Array.prototype.slice,gx=Math.floor,Df=typeof BigInt=="function"?BigInt.prototype.valueOf:null,Of=Object.getOwnPropertySymbols,Pf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,Ii=typeof Symbol=="function"&&typeof Symbol.iterator=="object",ot=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===Ii||!0)?Symbol.toStringTag:null,Ax=Object.prototype.propertyIsEnumerable,yx=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function xx(e,t){if(e===1/0||e===-1/0||e!==e||e&&e>-1e3&&e<1e3||kx.call(/e/,t))return t;var r=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof e=="number"){var n=e<0?-gx(-e):gx(e);if(n!==e){var i=String(n),o=$f.call(t,i.length+1);return Ur.call(i,r,"$&_")+"."+Ur.call(Ur.call(o,/([0-9]{3})/g,"$&_"),/_$/,"")}}return Ur.call(t,r,"$&_")}var Nf=cx(),bx=Nf.custom,wx=Tx(bx)?bx:null,Ex={__proto__:null,double:'"',single:"'"},__={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};Ox.exports=function e(t,r,n,i){var o=r||{};if(hr(o,"quoteStyle")&&!hr(Ex,o.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if(hr(o,"maxStringLength")&&(typeof o.maxStringLength=="number"?o.maxStringLength<0&&o.maxStringLength!==1/0:o.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var s=hr(o,"customInspect")?o.customInspect:!0;if(typeof s!="boolean"&&s!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(hr(o,"indent")&&o.indent!==null&&o.indent!==" "&&!(parseInt(o.indent,10)===o.indent&&o.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(hr(o,"numericSeparator")&&typeof o.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var a=o.numericSeparator;if(typeof t>"u")return"undefined";if(t===null)return"null";if(typeof t=="boolean")return t?"true":"false";if(typeof t=="string")return Ix(t,o);if(typeof t=="number"){if(t===0)return 1/0/t>0?"0":"-0";var l=String(t);return a?xx(t,l):l}if(typeof t=="bigint"){var u=String(t)+"n";return a?xx(t,u):u}var c=typeof o.depth>"u"?5:o.depth;if(typeof n>"u"&&(n=0),n>=c&&c>0&&typeof t=="object")return Ff(t)?"[Array]":"[Object]";var f=V_(o,n);if(typeof i>"u")i=[];else if(_x(i,t)>=0)return"[Circular]";function p(_,I,D){if(I&&(i=T_.call(i),i.push(I)),D){var F={depth:o.depth};return hr(o,"quoteStyle")&&(F.quoteStyle=o.quoteStyle),e(_,F,n+1,i)}return e(_,o,n+1,i)}if(typeof t=="function"&&!vx(t)){var h=L_(t),m=ul(t,p);return"[Function"+(h?": "+h:" (anonymous)")+"]"+(m.length>0?" { "+Vt.call(m,", ")+" }":"")}if(Tx(t)){var x=Ii?Ur.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):Pf.call(t);return typeof t=="object"&&!Ii?is(x):x}if(q_(t)){for(var v="<"+mx.call(String(t.nodeName)),w=t.attributes||[],T=0;T<w.length;T++)v+=" "+w[T].name+"="+Cx(I_(w[T].value),"double",o);return v+=">",t.childNodes&&t.childNodes.length&&(v+="..."),v+="</"+mx.call(String(t.nodeName))+">",v}if(Ff(t)){if(t.length===0)return"[]";var b=ul(t,p);return f&&!W_(b)?"["+Rf(b,f)+"]":"[ "+Vt.call(b,", ")+" ]"}if(M_(t)){var z=ul(t,p);return!("cause"in Error.prototype)&&"cause"in t&&!Ax.call(t,"cause")?"{ ["+String(t)+"] "+Vt.call(dx.call("[cause]: "+p(t.cause),z),", ")+" }":z.length===0?"["+String(t)+"]":"{ ["+String(t)+"] "+Vt.call(z,", ")+" }"}if(typeof t=="object"&&s){if(wx&&typeof t[wx]=="function"&&Nf)return Nf(t,{depth:c-n});if(s!=="symbol"&&typeof t.inspect=="function")return t.inspect()}if(B_(t)){var q=[];return fx&&fx.call(t,function(_,I){q.push(p(I,t,!0)+" => "+p(_,t))}),Sx("Map",cl.call(t),q,f)}if(j_(t)){var A=[];return px&&px.call(t,function(_){A.push(p(_,t))}),Sx("Set",fl.call(t),A,f)}if($_(t))return Mf("WeakMap");if(z_(t))return Mf("WeakSet");if(U_(t))return Mf("WeakRef");if(P_(t))return is(p(Number(t)));if(F_(t))return is(p(Df.call(t)));if(N_(t))return is(S_.call(t));if(D_(t))return is(p(String(t)));if(typeof window<"u"&&t===window)return"{ [object Window] }";if(typeof globalThis<"u"&&t===globalThis||typeof global<"u"&&t===global)return"{ [object globalThis] }";if(!O_(t)&&!vx(t)){var R=ul(t,p),W=yx?yx(t)===Object.prototype:t instanceof Object||t.constructor===Object,$=t instanceof Object?"":"null prototype",E=!W&&ot&&Object(t)===t&&ot in t?$f.call(jr(t),8,-1):$?"Object":"",fe=W||typeof t.constructor!="function"?"":t.constructor.name?t.constructor.name+" ":"",B=fe+(E||$?"["+Vt.call(dx.call([],E||[],$||[]),": ")+"] ":"");return R.length===0?B+"{}":f?B+"{"+Rf(R,f)+"}":B+"{ "+Vt.call(R,", ")+" }"}return String(t)};function Cx(e,t,r){var n=r.quoteStyle||t,i=Ex[n];return i+e+i}function I_(e){return Ur.call(String(e),/"/g,""")}function Ff(e){return jr(e)==="[object Array]"&&(!ot||!(typeof e=="object"&&ot in e))}function O_(e){return jr(e)==="[object Date]"&&(!ot||!(typeof e=="object"&&ot in e))}function vx(e){return jr(e)==="[object RegExp]"&&(!ot||!(typeof e=="object"&&ot in e))}function M_(e){return jr(e)==="[object Error]"&&(!ot||!(typeof e=="object"&&ot in e))}function D_(e){return jr(e)==="[object String]"&&(!ot||!(typeof e=="object"&&ot in e))}function P_(e){return jr(e)==="[object Number]"&&(!ot||!(typeof e=="object"&&ot in e))}function N_(e){return jr(e)==="[object Boolean]"&&(!ot||!(typeof e=="object"&&ot in e))}function Tx(e){if(Ii)return e&&typeof e=="object"&&e instanceof Symbol;if(typeof e=="symbol")return!0;if(!e||typeof e!="object"||!Pf)return!1;try{return Pf.call(e),!0}catch{}return!1}function F_(e){if(!e||typeof e!="object"||!Df)return!1;try{return Df.call(e),!0}catch{}return!1}var R_=Object.prototype.hasOwnProperty||function(e){return e in this};function hr(e,t){return R_.call(e,t)}function jr(e){return k_.call(e)}function L_(e){if(e.name)return e.name;var t=E_.call(A_.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}function _x(e,t){if(e.indexOf)return e.indexOf(t);for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1}function B_(e){if(!cl||!e||typeof e!="object")return!1;try{cl.call(e);try{fl.call(e)}catch{return!0}return e instanceof Map}catch{}return!1}function $_(e){if(!os||!e||typeof e!="object")return!1;try{os.call(e,os);try{ss.call(e,ss)}catch{return!0}return e instanceof WeakMap}catch{}return!1}function U_(e){if(!hx||!e||typeof e!="object")return!1;try{return hx.call(e),!0}catch{}return!1}function j_(e){if(!fl||!e||typeof e!="object")return!1;try{fl.call(e);try{cl.call(e)}catch{return!0}return e instanceof Set}catch{}return!1}function z_(e){if(!ss||!e||typeof e!="object")return!1;try{ss.call(e,ss);try{os.call(e,os)}catch{return!0}return e instanceof WeakSet}catch{}return!1}function q_(e){return!e||typeof e!="object"?!1:typeof HTMLElement<"u"&&e instanceof HTMLElement?!0:typeof e.nodeName=="string"&&typeof e.getAttribute=="function"}function Ix(e,t){if(e.length>t.maxStringLength){var r=e.length-t.maxStringLength,n="... "+r+" more character"+(r>1?"s":"");return Ix($f.call(e,0,t.maxStringLength),t)+n}var i=__[t.quoteStyle||"single"];i.lastIndex=0;var o=Ur.call(Ur.call(e,i,"\\$1"),/[\x00-\x1f]/g,H_);return Cx(o,"single",t)}function H_(e){var t=e.charCodeAt(0),r={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return r?"\\"+r:"\\x"+(t<16?"0":"")+C_.call(t.toString(16))}function is(e){return"Object("+e+")"}function Mf(e){return e+" { ? }"}function Sx(e,t,r,n){var i=n?Rf(r,n):Vt.call(r,", ");return e+" ("+t+") {"+i+"}"}function W_(e){for(var t=0;t<e.length;t++)if(_x(e[t],`
|
|
2
|
+
`)>=0)return!1;return!0}function V_(e,t){var r;if(e.indent===" ")r=" ";else if(typeof e.indent=="number"&&e.indent>0)r=Vt.call(Array(e.indent+1)," ");else return null;return{base:r,prev:Vt.call(Array(t+1),r)}}function Rf(e,t){if(e.length===0)return"";var r=`
|
|
3
|
+
`+t.prev+t.base;return r+Vt.call(e,","+r)+`
|
|
4
|
+
`+t.prev}function ul(e,t){var r=Ff(e),n=[];if(r){n.length=e.length;for(var i=0;i<e.length;i++)n[i]=hr(e,i)?t(e[i],e):""}var o=typeof Of=="function"?Of(e):[],s;if(Ii){s={};for(var a=0;a<o.length;a++)s["$"+o[a]]=o[a]}for(var l in e)hr(e,l)&&(r&&String(Number(l))===l&&l<e.length||Ii&&s["$"+l]instanceof Symbol||(kx.call(/[^\w$]/,l)?n.push(t(l,e)+": "+t(e[l],e)):n.push(l+": "+t(e[l],e))));if(typeof Of=="function")for(var u=0;u<o.length;u++)Ax.call(e,o[u])&&n.push("["+t(o[u])+"]: "+t(e[o[u]],e));return n}});var Nx=N((_H,Px)=>{"use strict";var Dx=On(),Oi=ux(),Y_=Mx(),G_=ki(),pl=Dx("%WeakMap%",!0),hl=Dx("%Map%",!0),J_=Oi("WeakMap.prototype.get",!0),Q_=Oi("WeakMap.prototype.set",!0),Z_=Oi("WeakMap.prototype.has",!0),X_=Oi("Map.prototype.get",!0),K_=Oi("Map.prototype.set",!0),eI=Oi("Map.prototype.has",!0),Uf=function(e,t){for(var r=e,n;(n=r.next)!==null;r=n)if(n.key===t)return r.next=n.next,n.next=e.next,e.next=n,n},tI=function(e,t){var r=Uf(e,t);return r&&r.value},rI=function(e,t,r){var n=Uf(e,t);n?n.value=r:e.next={key:t,next:e.next,value:r}},nI=function(e,t){return!!Uf(e,t)};Px.exports=function(){var t,r,n,i={assert:function(o){if(!i.has(o))throw new G_("Side channel does not contain "+Y_(o))},get:function(o){if(pl&&o&&(typeof o=="object"||typeof o=="function")){if(t)return J_(t,o)}else if(hl){if(r)return X_(r,o)}else if(n)return tI(n,o)},has:function(o){if(pl&&o&&(typeof o=="object"||typeof o=="function")){if(t)return Z_(t,o)}else if(hl){if(r)return eI(r,o)}else if(n)return nI(n,o);return!1},set:function(o,s){pl&&o&&(typeof o=="object"||typeof o=="function")?(t||(t=new pl),Q_(t,o,s)):hl?(r||(r=new hl),K_(r,o,s)):(n||(n={key:{},next:null}),rI(n,o,s))}};return i}});var ml=N((IH,Fx)=>{"use strict";var iI=String.prototype.replace,oI=/%20/g,jf={RFC1738:"RFC1738",RFC3986:"RFC3986"};Fx.exports={default:jf.RFC3986,formatters:{RFC1738:function(e){return iI.call(e,oI,"+")},RFC3986:function(e){return String(e)}},RFC1738:jf.RFC1738,RFC3986:jf.RFC3986}});var Hf=N((OH,Lx)=>{"use strict";var sI=ml(),zf=Object.prototype.hasOwnProperty,Mn=Array.isArray,Yt=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),aI=function(t){for(;t.length>1;){var r=t.pop(),n=r.obj[r.prop];if(Mn(n)){for(var i=[],o=0;o<n.length;++o)typeof n[o]<"u"&&i.push(n[o]);r.obj[r.prop]=i}}},Rx=function(t,r){for(var n=r&&r.plainObjects?{__proto__:null}:{},i=0;i<t.length;++i)typeof t[i]<"u"&&(n[i]=t[i]);return n},lI=function e(t,r,n){if(!r)return t;if(typeof r!="object"&&typeof r!="function"){if(Mn(t))t.push(r);else if(t&&typeof t=="object")(n&&(n.plainObjects||n.allowPrototypes)||!zf.call(Object.prototype,r))&&(t[r]=!0);else return[t,r];return t}if(!t||typeof t!="object")return[t].concat(r);var i=t;return Mn(t)&&!Mn(r)&&(i=Rx(t,n)),Mn(t)&&Mn(r)?(r.forEach(function(o,s){if(zf.call(t,s)){var a=t[s];a&&typeof a=="object"&&o&&typeof o=="object"?t[s]=e(a,o,n):t.push(o)}else t[s]=o}),t):Object.keys(r).reduce(function(o,s){var a=r[s];return zf.call(o,s)?o[s]=e(o[s],a,n):o[s]=a,o},i)},uI=function(t,r){return Object.keys(r).reduce(function(n,i){return n[i]=r[i],n},t)},cI=function(e,t,r){var n=e.replace(/\+/g," ");if(r==="iso-8859-1")return n.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(n)}catch{return n}},qf=1024,fI=function(t,r,n,i,o){if(t.length===0)return t;var s=t;if(typeof t=="symbol"?s=Symbol.prototype.toString.call(t):typeof t!="string"&&(s=String(t)),n==="iso-8859-1")return escape(s).replace(/%u[0-9a-f]{4}/gi,function(h){return"%26%23"+parseInt(h.slice(2),16)+"%3B"});for(var a="",l=0;l<s.length;l+=qf){for(var u=s.length>=qf?s.slice(l,l+qf):s,c=[],f=0;f<u.length;++f){var p=u.charCodeAt(f);if(p===45||p===46||p===95||p===126||p>=48&&p<=57||p>=65&&p<=90||p>=97&&p<=122||o===sI.RFC1738&&(p===40||p===41)){c[c.length]=u.charAt(f);continue}if(p<128){c[c.length]=Yt[p];continue}if(p<2048){c[c.length]=Yt[192|p>>6]+Yt[128|p&63];continue}if(p<55296||p>=57344){c[c.length]=Yt[224|p>>12]+Yt[128|p>>6&63]+Yt[128|p&63];continue}f+=1,p=65536+((p&1023)<<10|u.charCodeAt(f)&1023),c[c.length]=Yt[240|p>>18]+Yt[128|p>>12&63]+Yt[128|p>>6&63]+Yt[128|p&63]}a+=c.join("")}return a},pI=function(t){for(var r=[{obj:{o:t},prop:"o"}],n=[],i=0;i<r.length;++i)for(var o=r[i],s=o.obj[o.prop],a=Object.keys(s),l=0;l<a.length;++l){var u=a[l],c=s[u];typeof c=="object"&&c!==null&&n.indexOf(c)===-1&&(r.push({obj:s,prop:u}),n.push(c))}return aI(r),t},hI=function(t){return Object.prototype.toString.call(t)==="[object RegExp]"},mI=function(t){return!t||typeof t!="object"?!1:!!(t.constructor&&t.constructor.isBuffer&&t.constructor.isBuffer(t))},dI=function(t,r){return[].concat(t,r)},gI=function(t,r){if(Mn(t)){for(var n=[],i=0;i<t.length;i+=1)n.push(r(t[i]));return n}return r(t)};Lx.exports={arrayToObject:Rx,assign:uI,combine:dI,compact:pI,decode:cI,encode:fI,isBuffer:mI,isRegExp:hI,maybeMap:gI,merge:lI}});var qx=N((MH,zx)=>{"use strict";var $x=Nx(),dl=Hf(),as=ml(),yI=Object.prototype.hasOwnProperty,Ux={brackets:function(t){return t+"[]"},comma:"comma",indices:function(t,r){return t+"["+r+"]"},repeat:function(t){return t}},Gt=Array.isArray,xI=Array.prototype.push,jx=function(e,t){xI.apply(e,Gt(t)?t:[t])},bI=Date.prototype.toISOString,Bx=as.default,Ye={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,commaRoundTrip:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:dl.encode,encodeValuesOnly:!1,filter:void 0,format:Bx,formatter:as.formatters[Bx],indices:!1,serializeDate:function(t){return bI.call(t)},skipNulls:!1,strictNullHandling:!1},wI=function(t){return typeof t=="string"||typeof t=="number"||typeof t=="boolean"||typeof t=="symbol"||typeof t=="bigint"},Wf={},vI=function e(t,r,n,i,o,s,a,l,u,c,f,p,h,m,x,v,w,T){for(var b=t,z=T,q=0,A=!1;(z=z.get(Wf))!==void 0&&!A;){var R=z.get(t);if(q+=1,typeof R<"u"){if(R===q)throw new RangeError("Cyclic object value");A=!0}typeof z.get(Wf)>"u"&&(q=0)}if(typeof c=="function"?b=c(r,b):b instanceof Date?b=h(b):n==="comma"&&Gt(b)&&(b=dl.maybeMap(b,function(d){return d instanceof Date?h(d):d})),b===null){if(s)return u&&!v?u(r,Ye.encoder,w,"key",m):r;b=""}if(wI(b)||dl.isBuffer(b)){if(u){var W=v?r:u(r,Ye.encoder,w,"key",m);return[x(W)+"="+x(u(b,Ye.encoder,w,"value",m))]}return[x(r)+"="+x(String(b))]}var $=[];if(typeof b>"u")return $;var E;if(n==="comma"&&Gt(b))v&&u&&(b=dl.maybeMap(b,u)),E=[{value:b.length>0?b.join(",")||null:void 0}];else if(Gt(c))E=c;else{var fe=Object.keys(b);E=f?fe.sort(f):fe}var B=l?String(r).replace(/\./g,"%2E"):String(r),_=i&&Gt(b)&&b.length===1?B+"[]":B;if(o&&Gt(b)&&b.length===0)return _+"[]";for(var I=0;I<E.length;++I){var D=E[I],F=typeof D=="object"&&D&&typeof D.value<"u"?D.value:b[D];if(!(a&&F===null)){var V=p&&l?String(D).replace(/\./g,"%2E"):String(D),P=Gt(b)?typeof n=="function"?n(_,V):_:_+(p?"."+V:"["+V+"]");T.set(t,q);var U=$x();U.set(Wf,T),jx($,e(F,P,n,i,o,s,a,l,n==="comma"&&v&&Gt(b)?null:u,c,f,p,h,m,x,v,w,U))}}return $},SI=function(t){if(!t)return Ye;if(typeof t.allowEmptyArrays<"u"&&typeof t.allowEmptyArrays!="boolean")throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(typeof t.encodeDotInKeys<"u"&&typeof t.encodeDotInKeys!="boolean")throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");if(t.encoder!==null&&typeof t.encoder<"u"&&typeof t.encoder!="function")throw new TypeError("Encoder has to be a function.");var r=t.charset||Ye.charset;if(typeof t.charset<"u"&&t.charset!=="utf-8"&&t.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var n=as.default;if(typeof t.format<"u"){if(!yI.call(as.formatters,t.format))throw new TypeError("Unknown format option provided.");n=t.format}var i=as.formatters[n],o=Ye.filter;(typeof t.filter=="function"||Gt(t.filter))&&(o=t.filter);var s;if(t.arrayFormat in Ux?s=t.arrayFormat:"indices"in t?s=t.indices?"indices":"repeat":s=Ye.arrayFormat,"commaRoundTrip"in t&&typeof t.commaRoundTrip!="boolean")throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var a=typeof t.allowDots>"u"?t.encodeDotInKeys===!0?!0:Ye.allowDots:!!t.allowDots;return{addQueryPrefix:typeof t.addQueryPrefix=="boolean"?t.addQueryPrefix:Ye.addQueryPrefix,allowDots:a,allowEmptyArrays:typeof t.allowEmptyArrays=="boolean"?!!t.allowEmptyArrays:Ye.allowEmptyArrays,arrayFormat:s,charset:r,charsetSentinel:typeof t.charsetSentinel=="boolean"?t.charsetSentinel:Ye.charsetSentinel,commaRoundTrip:!!t.commaRoundTrip,delimiter:typeof t.delimiter>"u"?Ye.delimiter:t.delimiter,encode:typeof t.encode=="boolean"?t.encode:Ye.encode,encodeDotInKeys:typeof t.encodeDotInKeys=="boolean"?t.encodeDotInKeys:Ye.encodeDotInKeys,encoder:typeof t.encoder=="function"?t.encoder:Ye.encoder,encodeValuesOnly:typeof t.encodeValuesOnly=="boolean"?t.encodeValuesOnly:Ye.encodeValuesOnly,filter:o,format:n,formatter:i,serializeDate:typeof t.serializeDate=="function"?t.serializeDate:Ye.serializeDate,skipNulls:typeof t.skipNulls=="boolean"?t.skipNulls:Ye.skipNulls,sort:typeof t.sort=="function"?t.sort:null,strictNullHandling:typeof t.strictNullHandling=="boolean"?t.strictNullHandling:Ye.strictNullHandling}};zx.exports=function(e,t){var r=e,n=SI(t),i,o;typeof n.filter=="function"?(o=n.filter,r=o("",r)):Gt(n.filter)&&(o=n.filter,i=o);var s=[];if(typeof r!="object"||r===null)return"";var a=Ux[n.arrayFormat],l=a==="comma"&&n.commaRoundTrip;i||(i=Object.keys(r)),n.sort&&i.sort(n.sort);for(var u=$x(),c=0;c<i.length;++c){var f=i[c],p=r[f];n.skipNulls&&p===null||jx(s,vI(p,f,a,l,n.allowEmptyArrays,n.strictNullHandling,n.skipNulls,n.encodeDotInKeys,n.encode?n.encoder:null,n.filter,n.sort,n.allowDots,n.serializeDate,n.format,n.formatter,n.encodeValuesOnly,n.charset,u))}var h=s.join(n.delimiter),m=n.addQueryPrefix===!0?"?":"";return n.charsetSentinel&&(n.charset==="iso-8859-1"?m+="utf8=%26%2310003%3B&":m+="utf8=%E2%9C%93&"),h.length>0?m+h:""}});var Vx=N((DH,Wx)=>{"use strict";var Mi=Hf(),Vf=Object.prototype.hasOwnProperty,kI=Array.isArray,Ie={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:Mi.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictNullHandling:!1},AI=function(e){return e.replace(/&#(\d+);/g,function(t,r){return String.fromCharCode(parseInt(r,10))})},Hx=function(e,t){return e&&typeof e=="string"&&t.comma&&e.indexOf(",")>-1?e.split(","):e},EI="utf8=%26%2310003%3B",CI="utf8=%E2%9C%93",TI=function(t,r){var n={__proto__:null},i=r.ignoreQueryPrefix?t.replace(/^\?/,""):t;i=i.replace(/%5B/gi,"[").replace(/%5D/gi,"]");var o=r.parameterLimit===1/0?void 0:r.parameterLimit,s=i.split(r.delimiter,o),a=-1,l,u=r.charset;if(r.charsetSentinel)for(l=0;l<s.length;++l)s[l].indexOf("utf8=")===0&&(s[l]===CI?u="utf-8":s[l]===EI&&(u="iso-8859-1"),a=l,l=s.length);for(l=0;l<s.length;++l)if(l!==a){var c=s[l],f=c.indexOf("]="),p=f===-1?c.indexOf("="):f+1,h,m;p===-1?(h=r.decoder(c,Ie.decoder,u,"key"),m=r.strictNullHandling?null:""):(h=r.decoder(c.slice(0,p),Ie.decoder,u,"key"),m=Mi.maybeMap(Hx(c.slice(p+1),r),function(v){return r.decoder(v,Ie.decoder,u,"value")})),m&&r.interpretNumericEntities&&u==="iso-8859-1"&&(m=AI(String(m))),c.indexOf("[]=")>-1&&(m=kI(m)?[m]:m);var x=Vf.call(n,h);x&&r.duplicates==="combine"?n[h]=Mi.combine(n[h],m):(!x||r.duplicates==="last")&&(n[h]=m)}return n},_I=function(e,t,r,n){for(var i=n?t:Hx(t,r),o=e.length-1;o>=0;--o){var s,a=e[o];if(a==="[]"&&r.parseArrays)s=r.allowEmptyArrays&&(i===""||r.strictNullHandling&&i===null)?[]:[].concat(i);else{s=r.plainObjects?{__proto__:null}:{};var l=a.charAt(0)==="["&&a.charAt(a.length-1)==="]"?a.slice(1,-1):a,u=r.decodeDotInKeys?l.replace(/%2E/g,"."):l,c=parseInt(u,10);!r.parseArrays&&u===""?s={0:i}:!isNaN(c)&&a!==u&&String(c)===u&&c>=0&&r.parseArrays&&c<=r.arrayLimit?(s=[],s[c]=i):u!=="__proto__"&&(s[u]=i)}i=s}return i},II=function(t,r,n,i){if(t){var o=n.allowDots?t.replace(/\.([^.[]+)/g,"[$1]"):t,s=/(\[[^[\]]*])/,a=/(\[[^[\]]*])/g,l=n.depth>0&&s.exec(o),u=l?o.slice(0,l.index):o,c=[];if(u){if(!n.plainObjects&&Vf.call(Object.prototype,u)&&!n.allowPrototypes)return;c.push(u)}for(var f=0;n.depth>0&&(l=a.exec(o))!==null&&f<n.depth;){if(f+=1,!n.plainObjects&&Vf.call(Object.prototype,l[1].slice(1,-1))&&!n.allowPrototypes)return;c.push(l[1])}if(l){if(n.strictDepth===!0)throw new RangeError("Input depth exceeded depth option of "+n.depth+" and strictDepth is true");c.push("["+o.slice(l.index)+"]")}return _I(c,r,n,i)}},OI=function(t){if(!t)return Ie;if(typeof t.allowEmptyArrays<"u"&&typeof t.allowEmptyArrays!="boolean")throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(typeof t.decodeDotInKeys<"u"&&typeof t.decodeDotInKeys!="boolean")throw new TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");if(t.decoder!==null&&typeof t.decoder<"u"&&typeof t.decoder!="function")throw new TypeError("Decoder has to be a function.");if(typeof t.charset<"u"&&t.charset!=="utf-8"&&t.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var r=typeof t.charset>"u"?Ie.charset:t.charset,n=typeof t.duplicates>"u"?Ie.duplicates:t.duplicates;if(n!=="combine"&&n!=="first"&&n!=="last")throw new TypeError("The duplicates option must be either combine, first, or last");var i=typeof t.allowDots>"u"?t.decodeDotInKeys===!0?!0:Ie.allowDots:!!t.allowDots;return{allowDots:i,allowEmptyArrays:typeof t.allowEmptyArrays=="boolean"?!!t.allowEmptyArrays:Ie.allowEmptyArrays,allowPrototypes:typeof t.allowPrototypes=="boolean"?t.allowPrototypes:Ie.allowPrototypes,allowSparse:typeof t.allowSparse=="boolean"?t.allowSparse:Ie.allowSparse,arrayLimit:typeof t.arrayLimit=="number"?t.arrayLimit:Ie.arrayLimit,charset:r,charsetSentinel:typeof t.charsetSentinel=="boolean"?t.charsetSentinel:Ie.charsetSentinel,comma:typeof t.comma=="boolean"?t.comma:Ie.comma,decodeDotInKeys:typeof t.decodeDotInKeys=="boolean"?t.decodeDotInKeys:Ie.decodeDotInKeys,decoder:typeof t.decoder=="function"?t.decoder:Ie.decoder,delimiter:typeof t.delimiter=="string"||Mi.isRegExp(t.delimiter)?t.delimiter:Ie.delimiter,depth:typeof t.depth=="number"||t.depth===!1?+t.depth:Ie.depth,duplicates:n,ignoreQueryPrefix:t.ignoreQueryPrefix===!0,interpretNumericEntities:typeof t.interpretNumericEntities=="boolean"?t.interpretNumericEntities:Ie.interpretNumericEntities,parameterLimit:typeof t.parameterLimit=="number"?t.parameterLimit:Ie.parameterLimit,parseArrays:t.parseArrays!==!1,plainObjects:typeof t.plainObjects=="boolean"?t.plainObjects:Ie.plainObjects,strictDepth:typeof t.strictDepth=="boolean"?!!t.strictDepth:Ie.strictDepth,strictNullHandling:typeof t.strictNullHandling=="boolean"?t.strictNullHandling:Ie.strictNullHandling}};Wx.exports=function(e,t){var r=OI(t);if(e===""||e===null||typeof e>"u")return r.plainObjects?{__proto__:null}:{};for(var n=typeof e=="string"?TI(e,r):e,i=r.plainObjects?{__proto__:null}:{},o=Object.keys(n),s=0;s<o.length;++s){var a=o[s],l=II(a,n[a],r,typeof e=="string");i=Mi.merge(i,l,r)}return r.allowSparse===!0?i:Mi.compact(i)}});var Gx=N((PH,Yx)=>{"use strict";var MI=qx(),DI=Vx(),PI=ml();Yx.exports={formats:PI,parse:DI,stringify:MI}});var Xx=N(Pi=>{"use strict";var NI=uy();function _t(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}var FI=/^([a-z0-9.+-]+:)/i,RI=/:[0-9]*$/,LI=/^(\/\/?(?!\/)[^?\s]*)(\?[^\s]*)?$/,BI=["<",">",'"',"`"," ","\r",`
|
|
5
|
+
`," "],$I=["{","}","|","\\","^","`"].concat(BI),Yf=["'"].concat($I),Jx=["%","/","?",";","#"].concat(Yf),Qx=["/","?","#"],UI=255,Zx=/^[+a-z0-9A-Z_-]{0,63}$/,jI=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,zI={javascript:!0,"javascript:":!0},Gf={javascript:!0,"javascript:":!0},Di={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},Jf=Gx();function ls(e,t,r){if(e&&typeof e=="object"&&e instanceof _t)return e;var n=new _t;return n.parse(e,t,r),n}_t.prototype.parse=function(e,t,r){if(typeof e!="string")throw new TypeError("Parameter 'url' must be a string, not "+typeof e);var n=e.indexOf("?"),i=n!==-1&&n<e.indexOf("#")?"?":"#",o=e.split(i),s=/\\/g;o[0]=o[0].replace(s,"/"),e=o.join(i);var a=e;if(a=a.trim(),!r&&e.split("#").length===1){var l=LI.exec(a);if(l)return this.path=a,this.href=a,this.pathname=l[1],l[2]?(this.search=l[2],t?this.query=Jf.parse(this.search.substr(1)):this.query=this.search.substr(1)):t&&(this.search="",this.query={}),this}var u=FI.exec(a);if(u){u=u[0];var c=u.toLowerCase();this.protocol=c,a=a.substr(u.length)}if(r||u||a.match(/^\/\/[^@/]+@[^@/]+/)){var f=a.substr(0,2)==="//";f&&!(u&&Gf[u])&&(a=a.substr(2),this.slashes=!0)}if(!Gf[u]&&(f||u&&!Di[u])){for(var p=-1,h=0;h<Qx.length;h++){var m=a.indexOf(Qx[h]);m!==-1&&(p===-1||m<p)&&(p=m)}var x,v;p===-1?v=a.lastIndexOf("@"):v=a.lastIndexOf("@",p),v!==-1&&(x=a.slice(0,v),a=a.slice(v+1),this.auth=decodeURIComponent(x)),p=-1;for(var h=0;h<Jx.length;h++){var m=a.indexOf(Jx[h]);m!==-1&&(p===-1||m<p)&&(p=m)}p===-1&&(p=a.length),this.host=a.slice(0,p),a=a.slice(p),this.parseHost(),this.hostname=this.hostname||"";var w=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!w)for(var T=this.hostname.split(/\./),h=0,b=T.length;h<b;h++){var z=T[h];if(z&&!z.match(Zx)){for(var q="",A=0,R=z.length;A<R;A++)z.charCodeAt(A)>127?q+="x":q+=z[A];if(!q.match(Zx)){var W=T.slice(0,h),$=T.slice(h+1),E=z.match(jI);E&&(W.push(E[1]),$.unshift(E[2])),$.length&&(a="/"+$.join(".")+a),this.hostname=W.join(".");break}}}this.hostname.length>UI?this.hostname="":this.hostname=this.hostname.toLowerCase(),w||(this.hostname=NI.toASCII(this.hostname));var fe=this.port?":"+this.port:"",B=this.hostname||"";this.host=B+fe,this.href+=this.host,w&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),a[0]!=="/"&&(a="/"+a))}if(!zI[c])for(var h=0,b=Yf.length;h<b;h++){var _=Yf[h];if(a.indexOf(_)!==-1){var I=encodeURIComponent(_);I===_&&(I=escape(_)),a=a.split(_).join(I)}}var D=a.indexOf("#");D!==-1&&(this.hash=a.substr(D),a=a.slice(0,D));var F=a.indexOf("?");if(F!==-1?(this.search=a.substr(F),this.query=a.substr(F+1),t&&(this.query=Jf.parse(this.query)),a=a.slice(0,F)):t&&(this.search="",this.query={}),a&&(this.pathname=a),Di[c]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){var fe=this.pathname||"",V=this.search||"";this.path=fe+V}return this.href=this.format(),this};function qI(e){return typeof e=="string"&&(e=ls(e)),e instanceof _t?e.format():_t.prototype.format.call(e)}_t.prototype.format=function(){var e=this.auth||"";e&&(e=encodeURIComponent(e),e=e.replace(/%3A/i,":"),e+="@");var t=this.protocol||"",r=this.pathname||"",n=this.hash||"",i=!1,o="";this.host?i=e+this.host:this.hostname&&(i=e+(this.hostname.indexOf(":")===-1?this.hostname:"["+this.hostname+"]"),this.port&&(i+=":"+this.port)),this.query&&typeof this.query=="object"&&Object.keys(this.query).length&&(o=Jf.stringify(this.query,{arrayFormat:"repeat",addQueryPrefix:!1}));var s=this.search||o&&"?"+o||"";return t&&t.substr(-1)!==":"&&(t+=":"),this.slashes||(!t||Di[t])&&i!==!1?(i="//"+(i||""),r&&r.charAt(0)!=="/"&&(r="/"+r)):i||(i=""),n&&n.charAt(0)!=="#"&&(n="#"+n),s&&s.charAt(0)!=="?"&&(s="?"+s),r=r.replace(/[?#]/g,function(a){return encodeURIComponent(a)}),s=s.replace("#","%23"),t+i+r+s+n};function HI(e,t){return ls(e,!1,!0).resolve(t)}_t.prototype.resolve=function(e){return this.resolveObject(ls(e,!1,!0)).format()};function WI(e,t){return e?ls(e,!1,!0).resolveObject(t):t}_t.prototype.resolveObject=function(e){if(typeof e=="string"){var t=new _t;t.parse(e,!1,!0),e=t}for(var r=new _t,n=Object.keys(this),i=0;i<n.length;i++){var o=n[i];r[o]=this[o]}if(r.hash=e.hash,e.href==="")return r.href=r.format(),r;if(e.slashes&&!e.protocol){for(var s=Object.keys(e),a=0;a<s.length;a++){var l=s[a];l!=="protocol"&&(r[l]=e[l])}return Di[r.protocol]&&r.hostname&&!r.pathname&&(r.pathname="/",r.path=r.pathname),r.href=r.format(),r}if(e.protocol&&e.protocol!==r.protocol){if(!Di[e.protocol]){for(var u=Object.keys(e),c=0;c<u.length;c++){var f=u[c];r[f]=e[f]}return r.href=r.format(),r}if(r.protocol=e.protocol,!e.host&&!Gf[e.protocol]){for(var b=(e.pathname||"").split("/");b.length&&!(e.host=b.shift()););e.host||(e.host=""),e.hostname||(e.hostname=""),b[0]!==""&&b.unshift(""),b.length<2&&b.unshift(""),r.pathname=b.join("/")}else r.pathname=e.pathname;if(r.search=e.search,r.query=e.query,r.host=e.host||"",r.auth=e.auth,r.hostname=e.hostname||e.host,r.port=e.port,r.pathname||r.search){var p=r.pathname||"",h=r.search||"";r.path=p+h}return r.slashes=r.slashes||e.slashes,r.href=r.format(),r}var m=r.pathname&&r.pathname.charAt(0)==="/",x=e.host||e.pathname&&e.pathname.charAt(0)==="/",v=x||m||r.host&&e.pathname,w=v,T=r.pathname&&r.pathname.split("/")||[],b=e.pathname&&e.pathname.split("/")||[],z=r.protocol&&!Di[r.protocol];if(z&&(r.hostname="",r.port=null,r.host&&(T[0]===""?T[0]=r.host:T.unshift(r.host)),r.host="",e.protocol&&(e.hostname=null,e.port=null,e.host&&(b[0]===""?b[0]=e.host:b.unshift(e.host)),e.host=null),v=v&&(b[0]===""||T[0]==="")),x)r.host=e.host||e.host===""?e.host:r.host,r.hostname=e.hostname||e.hostname===""?e.hostname:r.hostname,r.search=e.search,r.query=e.query,T=b;else if(b.length)T||(T=[]),T.pop(),T=T.concat(b),r.search=e.search,r.query=e.query;else if(e.search!=null){if(z){r.host=T.shift(),r.hostname=r.host;var q=r.host&&r.host.indexOf("@")>0?r.host.split("@"):!1;q&&(r.auth=q.shift(),r.hostname=q.shift(),r.host=r.hostname)}return r.search=e.search,r.query=e.query,(r.pathname!==null||r.search!==null)&&(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.href=r.format(),r}if(!T.length)return r.pathname=null,r.search?r.path="/"+r.search:r.path=null,r.href=r.format(),r;for(var A=T.slice(-1)[0],R=(r.host||e.host||T.length>1)&&(A==="."||A==="..")||A==="",W=0,$=T.length;$>=0;$--)A=T[$],A==="."?T.splice($,1):A===".."?(T.splice($,1),W++):W&&(T.splice($,1),W--);if(!v&&!w)for(;W--;W)T.unshift("..");v&&T[0]!==""&&(!T[0]||T[0].charAt(0)!=="/")&&T.unshift(""),R&&T.join("/").substr(-1)!=="/"&&T.push("");var E=T[0]===""||T[0]&&T[0].charAt(0)==="/";if(z){r.hostname=E?"":T.length?T.shift():"",r.host=r.hostname;var q=r.host&&r.host.indexOf("@")>0?r.host.split("@"):!1;q&&(r.auth=q.shift(),r.hostname=q.shift(),r.host=r.hostname)}return v=v||r.host&&T.length,v&&!E&&T.unshift(""),T.length>0?r.pathname=T.join("/"):(r.pathname=null,r.path=null),(r.pathname!==null||r.search!==null)&&(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.auth=e.auth||r.auth,r.slashes=r.slashes||e.slashes,r.href=r.format(),r};_t.prototype.parseHost=function(){var e=this.host,t=RI.exec(e);t&&(t=t[0],t!==":"&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)};Pi.parse=ls;Pi.resolve=HI;Pi.resolveObject=WI;Pi.format=qI;Pi.Url=_t});var xb=N((RH,yb)=>{"use strict";yb.exports=e=>{let t=e.match(/^[ \t]*(?=\S)/gm);return t?t.reduce((r,n)=>Math.min(r,n.length),1/0):0}});var vb=N((BH,wb)=>{"use strict";wb.exports=function(t){var r=typeof t;if(r==="string"||t instanceof String){if(!t.trim())return!1}else if(r!=="number"&&!(t instanceof Number))return!1;return t-t+1>=0}});var Ab=N(($H,kb)=>{var rO=Object.prototype.toString;kb.exports=function(t){if(t===void 0)return"undefined";if(t===null)return"null";var r=typeof t;if(r==="boolean")return"boolean";if(r==="string")return"string";if(r==="number")return"number";if(r==="symbol")return"symbol";if(r==="function")return aO(t)?"generatorfunction":"function";if(nO(t))return"array";if(cO(t))return"buffer";if(uO(t))return"arguments";if(oO(t))return"date";if(iO(t))return"error";if(sO(t))return"regexp";switch(Sb(t)){case"Symbol":return"symbol";case"Promise":return"promise";case"WeakMap":return"weakmap";case"WeakSet":return"weakset";case"Map":return"map";case"Set":return"set";case"Int8Array":return"int8array";case"Uint8Array":return"uint8array";case"Uint8ClampedArray":return"uint8clampedarray";case"Int16Array":return"int16array";case"Uint16Array":return"uint16array";case"Int32Array":return"int32array";case"Uint32Array":return"uint32array";case"Float32Array":return"float32array";case"Float64Array":return"float64array"}if(lO(t))return"generator";switch(r=rO.call(t),r){case"[object Object]":return"object";case"[object Map Iterator]":return"mapiterator";case"[object Set Iterator]":return"setiterator";case"[object String Iterator]":return"stringiterator";case"[object Array Iterator]":return"arrayiterator"}return r.slice(8,-1).toLowerCase().replace(/\s/g,"")};function Sb(e){return typeof e.constructor=="function"?e.constructor.name:null}function nO(e){return Array.isArray?Array.isArray(e):e instanceof Array}function iO(e){return e instanceof Error||typeof e.message=="string"&&e.constructor&&typeof e.constructor.stackTraceLimit=="number"}function oO(e){return e instanceof Date?!0:typeof e.toDateString=="function"&&typeof e.getDate=="function"&&typeof e.setDate=="function"}function sO(e){return e instanceof RegExp?!0:typeof e.flags=="string"&&typeof e.ignoreCase=="boolean"&&typeof e.multiline=="boolean"&&typeof e.global=="boolean"}function aO(e,t){return Sb(e)==="GeneratorFunction"}function lO(e){return typeof e.throw=="function"&&typeof e.return=="function"&&typeof e.next=="function"}function uO(e){try{if(typeof e.length=="number"&&typeof e.callee=="function")return!0}catch(t){if(t.message.indexOf("callee")!==-1)return!0}return!1}function cO(e){return e.constructor&&typeof e.constructor.isBuffer=="function"?e.constructor.isBuffer(e):!1}});var Cb=N((UH,Eb)=>{Eb.exports=function(e){var t="Uint32Array"in e,r=e.crypto||e.msCrypto,n=r&&typeof r.getRandomValues=="function",i=t&&n;if(!i)return Math.random;var o=new Uint32Array(1),s=Math.pow(2,32);function a(){return r.getRandomValues(o),o[0]/s}return a.cryptographic=!0,a}(typeof self<"u"?self:window)});var Ib=N((jH,ep)=>{"use strict";var fO=vb(),Tb=Ab(),_b=Cb();ep.exports=pO;ep.exports.isCrypto=!!_b.cryptographic;var Jt={lower:"abcdefghijklmnopqrstuvwxyz",upper:"ABCDEFGHIJKLMNOPQRSTUVWXYZ",number:"0123456789",special:"~!@#$%^&()_+-={}[];',."};Jt.all=Jt.lower+Jt.upper+Jt.number+Jt.special;function pO(e,t,r){if(typeof e>"u")throw new Error("randomatic expects a string or number.");var n=!1;arguments.length===1&&(typeof e=="string"?t=e.length:fO(e)&&(r={},t=e,e="*")),Tb(t)==="object"&&t.hasOwnProperty("chars")&&(r=t,e=r.chars,t=e.length,n=!0);var i=r||{},o="",s="";if(e.indexOf("?")!==-1&&(o+=i.chars),e.indexOf("a")!==-1&&(o+=Jt.lower),e.indexOf("A")!==-1&&(o+=Jt.upper),e.indexOf("0")!==-1&&(o+=Jt.number),e.indexOf("!")!==-1&&(o+=Jt.special),e.indexOf("*")!==-1&&(o+=Jt.all),n&&(o+=e),i.exclude){var a=Tb(i.exclude)==="string"?i.exclude:i.exclude.join("");a=a.replace(new RegExp("[\\]]+","g"),""),o=o.replace(new RegExp("["+a+"]+","g"),""),i.exclude.indexOf("]")!==-1&&(o=o.replace(new RegExp("[\\]]+","g"),""))}for(;t--;)s+=o.charAt(parseInt(_b()*o.length,10));return s}});var v0=N((fs,Li)=>{var AO=200,Wb="__lodash_hash_undefined__",Vb=9007199254740991,gp="[object Arguments]",EO="[object Array]",Yb="[object Boolean]",Gb="[object Date]",CO="[object Error]",yp="[object Function]",Jb="[object GeneratorFunction]",kl="[object Map]",Qb="[object Number]",xp="[object Object]",Nb="[object Promise]",Zb="[object RegExp]",Al="[object Set]",Xb="[object String]",Kb="[object Symbol]",cp="[object WeakMap]",e0="[object ArrayBuffer]",El="[object DataView]",t0="[object Float32Array]",r0="[object Float64Array]",n0="[object Int8Array]",i0="[object Int16Array]",o0="[object Int32Array]",s0="[object Uint8Array]",a0="[object Uint8ClampedArray]",l0="[object Uint16Array]",u0="[object Uint32Array]",TO=/[\\^$.*+?()[\]{}|]/g,_O=/\w*$/,IO=/^\[object .+?Constructor\]$/,OO=/^(?:0|[1-9]\d*)$/,ke={};ke[gp]=ke[EO]=ke[e0]=ke[El]=ke[Yb]=ke[Gb]=ke[t0]=ke[r0]=ke[n0]=ke[i0]=ke[o0]=ke[kl]=ke[Qb]=ke[xp]=ke[Zb]=ke[Al]=ke[Xb]=ke[Kb]=ke[s0]=ke[a0]=ke[l0]=ke[u0]=!0;ke[CO]=ke[yp]=ke[cp]=!1;var MO=typeof global=="object"&&global&&global.Object===Object&&global,DO=typeof self=="object"&&self&&self.Object===Object&&self,mr=MO||DO||Function("return this")(),c0=typeof fs=="object"&&fs&&!fs.nodeType&&fs,Fb=c0&&typeof Li=="object"&&Li&&!Li.nodeType&&Li,PO=Fb&&Fb.exports===c0;function NO(e,t){return e.set(t[0],t[1]),e}function FO(e,t){return e.add(t),e}function RO(e,t){for(var r=-1,n=e?e.length:0;++r<n&&t(e[r],r,e)!==!1;);return e}function LO(e,t){for(var r=-1,n=t.length,i=e.length;++r<n;)e[i+r]=t[r];return e}function f0(e,t,r,n){var i=-1,o=e?e.length:0;for(n&&o&&(r=e[++i]);++i<o;)r=t(r,e[i],i,e);return r}function BO(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}function $O(e,t){return e?.[t]}function p0(e){var t=!1;if(e!=null&&typeof e.toString!="function")try{t=!!(e+"")}catch{}return t}function Rb(e){var t=-1,r=Array(e.size);return e.forEach(function(n,i){r[++t]=[i,n]}),r}function bp(e,t){return function(r){return e(t(r))}}function Lb(e){var t=-1,r=Array(e.size);return e.forEach(function(n){r[++t]=n}),r}var UO=Array.prototype,jO=Function.prototype,Cl=Object.prototype,up=mr["__core-js_shared__"],Bb=function(){var e=/[^.]+$/.exec(up&&up.keys&&up.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),h0=jO.toString,qr=Cl.hasOwnProperty,Tl=Cl.toString,zO=RegExp("^"+h0.call(qr).replace(TO,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),$b=PO?mr.Buffer:void 0,Ub=mr.Symbol,jb=mr.Uint8Array,qO=bp(Object.getPrototypeOf,Object),HO=Object.create,WO=Cl.propertyIsEnumerable,VO=UO.splice,zb=Object.getOwnPropertySymbols,YO=$b?$b.isBuffer:void 0,GO=bp(Object.keys,Object),fp=Ui(mr,"DataView"),ps=Ui(mr,"Map"),pp=Ui(mr,"Promise"),hp=Ui(mr,"Set"),mp=Ui(mr,"WeakMap"),hs=Ui(Object,"create"),JO=Nn(fp),QO=Nn(ps),ZO=Nn(pp),XO=Nn(hp),KO=Nn(mp),qb=Ub?Ub.prototype:void 0,Hb=qb?qb.valueOf:void 0;function Pn(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 eM(){this.__data__=hs?hs(null):{}}function tM(e){return this.has(e)&&delete this.__data__[e]}function rM(e){var t=this.__data__;if(hs){var r=t[e];return r===Wb?void 0:r}return qr.call(t,e)?t[e]:void 0}function nM(e){var t=this.__data__;return hs?t[e]!==void 0:qr.call(t,e)}function iM(e,t){var r=this.__data__;return r[e]=hs&&t===void 0?Wb:t,this}Pn.prototype.clear=eM;Pn.prototype.delete=tM;Pn.prototype.get=rM;Pn.prototype.has=nM;Pn.prototype.set=iM;function dr(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 oM(){this.__data__=[]}function sM(e){var t=this.__data__,r=_l(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():VO.call(t,r,1),!0}function aM(e){var t=this.__data__,r=_l(t,e);return r<0?void 0:t[r][1]}function lM(e){return _l(this.__data__,e)>-1}function uM(e,t){var r=this.__data__,n=_l(r,e);return n<0?r.push([e,t]):r[n][1]=t,this}dr.prototype.clear=oM;dr.prototype.delete=sM;dr.prototype.get=aM;dr.prototype.has=lM;dr.prototype.set=uM;function Bi(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 cM(){this.__data__={hash:new Pn,map:new(ps||dr),string:new Pn}}function fM(e){return Il(this,e).delete(e)}function pM(e){return Il(this,e).get(e)}function hM(e){return Il(this,e).has(e)}function mM(e,t){return Il(this,e).set(e,t),this}Bi.prototype.clear=cM;Bi.prototype.delete=fM;Bi.prototype.get=pM;Bi.prototype.has=hM;Bi.prototype.set=mM;function $i(e){this.__data__=new dr(e)}function dM(){this.__data__=new dr}function gM(e){return this.__data__.delete(e)}function yM(e){return this.__data__.get(e)}function xM(e){return this.__data__.has(e)}function bM(e,t){var r=this.__data__;if(r instanceof dr){var n=r.__data__;if(!ps||n.length<AO-1)return n.push([e,t]),this;r=this.__data__=new Bi(n)}return r.set(e,t),this}$i.prototype.clear=dM;$i.prototype.delete=gM;$i.prototype.get=yM;$i.prototype.has=xM;$i.prototype.set=bM;function wM(e,t){var r=vp(e)||HM(e)?BO(e.length,String):[],n=r.length,i=!!n;for(var o in e)(t||qr.call(e,o))&&!(i&&(o=="length"||UM(o,n)))&&r.push(o);return r}function m0(e,t,r){var n=e[t];(!(qr.call(e,t)&&x0(n,r))||r===void 0&&!(t in e))&&(e[t]=r)}function _l(e,t){for(var r=e.length;r--;)if(x0(e[r][0],t))return r;return-1}function vM(e,t){return e&&d0(t,Sp(t),e)}function dp(e,t,r,n,i,o,s){var a;if(n&&(a=o?n(e,i,o,s):n(e)),a!==void 0)return a;if(!Ol(e))return e;var l=vp(e);if(l){if(a=LM(e),!t)return NM(e,a)}else{var u=Dn(e),c=u==yp||u==Jb;if(VM(e))return TM(e,t);if(u==xp||u==gp||c&&!o){if(p0(e))return o?e:{};if(a=BM(c?{}:e),!t)return FM(e,vM(a,e))}else{if(!ke[u])return o?e:{};a=$M(e,u,dp,t)}}s||(s=new $i);var f=s.get(e);if(f)return f;if(s.set(e,a),!l)var p=r?RM(e):Sp(e);return RO(p||e,function(h,m){p&&(m=h,h=e[m]),m0(a,m,dp(h,t,r,n,m,e,s))}),a}function SM(e){return Ol(e)?HO(e):{}}function kM(e,t,r){var n=t(e);return vp(e)?n:LO(n,r(e))}function AM(e){return Tl.call(e)}function EM(e){if(!Ol(e)||zM(e))return!1;var t=w0(e)||p0(e)?zO:IO;return t.test(Nn(e))}function CM(e){if(!y0(e))return GO(e);var t=[];for(var r in Object(e))qr.call(e,r)&&r!="constructor"&&t.push(r);return t}function TM(e,t){if(t)return e.slice();var r=new e.constructor(e.length);return e.copy(r),r}function wp(e){var t=new e.constructor(e.byteLength);return new jb(t).set(new jb(e)),t}function _M(e,t){var r=t?wp(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}function IM(e,t,r){var n=t?r(Rb(e),!0):Rb(e);return f0(n,NO,new e.constructor)}function OM(e){var t=new e.constructor(e.source,_O.exec(e));return t.lastIndex=e.lastIndex,t}function MM(e,t,r){var n=t?r(Lb(e),!0):Lb(e);return f0(n,FO,new e.constructor)}function DM(e){return Hb?Object(Hb.call(e)):{}}function PM(e,t){var r=t?wp(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}function NM(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r<n;)t[r]=e[r];return t}function d0(e,t,r,n){r||(r={});for(var i=-1,o=t.length;++i<o;){var s=t[i],a=n?n(r[s],e[s],s,r,e):void 0;m0(r,s,a===void 0?e[s]:a)}return r}function FM(e,t){return d0(e,g0(e),t)}function RM(e){return kM(e,Sp,g0)}function Il(e,t){var r=e.__data__;return jM(t)?r[typeof t=="string"?"string":"hash"]:r.map}function Ui(e,t){var r=$O(e,t);return EM(r)?r:void 0}var g0=zb?bp(zb,Object):JM,Dn=AM;(fp&&Dn(new fp(new ArrayBuffer(1)))!=El||ps&&Dn(new ps)!=kl||pp&&Dn(pp.resolve())!=Nb||hp&&Dn(new hp)!=Al||mp&&Dn(new mp)!=cp)&&(Dn=function(e){var t=Tl.call(e),r=t==xp?e.constructor:void 0,n=r?Nn(r):void 0;if(n)switch(n){case JO:return El;case QO:return kl;case ZO:return Nb;case XO:return Al;case KO:return cp}return t});function LM(e){var t=e.length,r=e.constructor(t);return t&&typeof e[0]=="string"&&qr.call(e,"index")&&(r.index=e.index,r.input=e.input),r}function BM(e){return typeof e.constructor=="function"&&!y0(e)?SM(qO(e)):{}}function $M(e,t,r,n){var i=e.constructor;switch(t){case e0:return wp(e);case Yb:case Gb:return new i(+e);case El:return _M(e,n);case t0:case r0:case n0:case i0:case o0:case s0:case a0:case l0:case u0:return PM(e,n);case kl:return IM(e,n,r);case Qb:case Xb:return new i(e);case Zb:return OM(e);case Al:return MM(e,n,r);case Kb:return DM(e)}}function UM(e,t){return t=t??Vb,!!t&&(typeof e=="number"||OO.test(e))&&e>-1&&e%1==0&&e<t}function jM(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function zM(e){return!!Bb&&Bb in e}function y0(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||Cl;return e===r}function Nn(e){if(e!=null){try{return h0.call(e)}catch{}try{return e+""}catch{}}return""}function qM(e){return dp(e,!0,!0)}function x0(e,t){return e===t||e!==e&&t!==t}function HM(e){return WM(e)&&qr.call(e,"callee")&&(!WO.call(e,"callee")||Tl.call(e)==gp)}var vp=Array.isArray;function b0(e){return e!=null&&YM(e.length)&&!w0(e)}function WM(e){return GM(e)&&b0(e)}var VM=YO||QM;function w0(e){var t=Ol(e)?Tl.call(e):"";return t==yp||t==Jb}function YM(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=Vb}function Ol(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function GM(e){return!!e&&typeof e=="object"}function Sp(e){return b0(e)?wM(e):CM(e)}function JM(){return[]}function QM(){return!1}Li.exports=qM});var k0=N((r9,S0)=>{"use strict";S0.exports=function(e,t){t||(t={}),typeof t=="function"&&(t={cmp:t});var r=typeof t.cycles=="boolean"?t.cycles:!1,n=t.cmp&&function(o){return function(s){return function(a,l){var u={key:a,value:s[a]},c={key:l,value:s[l]};return o(u,c)}}}(t.cmp),i=[];return function o(s){if(s&&s.toJSON&&typeof s.toJSON=="function"&&(s=s.toJSON()),s!==void 0){if(typeof s=="number")return isFinite(s)?""+s:"null";if(typeof s!="object")return JSON.stringify(s);var a,l;if(Array.isArray(s)){for(l="[",a=0;a<s.length;a++)a&&(l+=","),l+=o(s[a])||"null";return l+"]"}if(s===null)return"null";if(i.indexOf(s)!==-1){if(r)return JSON.stringify("__cycle__");throw new TypeError("Converting circular structure to JSON")}var u=i.push(s)-1,c=Object.keys(s).sort(n&&n(s));for(l="",a=0;a<c.length;a++){var f=c[a],p=o(s[f]);p&&(l&&(l+=","),l+=JSON.stringify(f)+":"+p)}return i.splice(u,1),"{"+l+"}"}}(e)}});var Ln=N((wW,Rn)=>{"use strict";function uw(e){return typeof e>"u"||e===null}function wP(e){return typeof e=="object"&&e!==null}function vP(e){return Array.isArray(e)?e:uw(e)?[]:[e]}function SP(e,t){var r,n,i,o;if(t)for(o=Object.keys(t),r=0,n=o.length;r<n;r+=1)i=o[r],e[i]=t[i];return e}function kP(e,t){var r="",n;for(n=0;n<t;n+=1)r+=e;return r}function AP(e){return e===0&&Number.NEGATIVE_INFINITY===1/e}Rn.exports.isNothing=uw;Rn.exports.isObject=wP;Rn.exports.toArray=vP;Rn.exports.repeat=kP;Rn.exports.isNegativeZero=AP;Rn.exports.extend=SP});var Wi=N((vW,cw)=>{"use strict";function ws(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||""}ws.prototype=Object.create(Error.prototype);ws.prototype.constructor=ws;ws.prototype.toString=function(t){var r=this.name+": ";return r+=this.reason||"(unknown reason)",!t&&this.mark&&(r+=" "+this.mark.toString()),r};cw.exports=ws});var hw=N((SW,pw)=>{"use strict";var fw=Ln();function zp(e,t,r,n,i){this.name=e,this.buffer=t,this.position=r,this.line=n,this.column=i}zp.prototype.getSnippet=function(t,r){var n,i,o,s,a;if(!this.buffer)return null;for(t=t||4,r=r||75,n="",i=this.position;i>0&&`\0\r
|
|
6
|
+
\x85\u2028\u2029`.indexOf(this.buffer.charAt(i-1))===-1;)if(i-=1,this.position-i>r/2-1){n=" ... ",i+=5;break}for(o="",s=this.position;s<this.buffer.length&&`\0\r
|
|
7
|
+
\x85\u2028\u2029`.indexOf(this.buffer.charAt(s))===-1;)if(s+=1,s-this.position>r/2-1){o=" ... ",s-=5;break}return a=this.buffer.slice(i,s),fw.repeat(" ",t)+n+a+o+`
|
|
8
|
+
`+fw.repeat(" ",t+this.position-i+n.length)+"^"};zp.prototype.toString=function(t){var r,n="";return this.name&&(n+='in "'+this.name+'" '),n+="at line "+(this.line+1)+", column "+(this.column+1),t||(r=this.getSnippet(),r&&(n+=`:
|
|
9
|
+
`+r)),n};pw.exports=zp});var Ge=N((kW,dw)=>{"use strict";var mw=Wi(),EP=["kind","resolve","construct","instanceOf","predicate","represent","defaultStyle","styleAliases"],CP=["scalar","sequence","mapping"];function TP(e){var t={};return e!==null&&Object.keys(e).forEach(function(r){e[r].forEach(function(n){t[String(n)]=r})}),t}function _P(e,t){if(t=t||{},Object.keys(t).forEach(function(r){if(EP.indexOf(r)===-1)throw new mw('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=TP(t.styleAliases||null),CP.indexOf(this.kind)===-1)throw new mw('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}dw.exports=_P});var Bn=N((AW,yw)=>{"use strict";var gw=Ln(),$l=Wi(),IP=Ge();function qp(e,t,r){var n=[];return e.include.forEach(function(i){r=qp(i,t,r)}),e[t].forEach(function(i){r.forEach(function(o,s){o.tag===i.tag&&o.kind===i.kind&&n.push(s)}),r.push(i)}),r.filter(function(i,o){return n.indexOf(o)===-1})}function OP(){var e={scalar:{},sequence:{},mapping:{},fallback:{}},t,r;function n(i){e[i.kind][i.tag]=e.fallback[i.tag]=i}for(t=0,r=arguments.length;t<r;t+=1)arguments[t].forEach(n);return e}function Vi(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 $l("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.")}),this.compiledImplicit=qp(this,"implicit",[]),this.compiledExplicit=qp(this,"explicit",[]),this.compiledTypeMap=OP(this.compiledImplicit,this.compiledExplicit)}Vi.DEFAULT=null;Vi.create=function(){var t,r;switch(arguments.length){case 1:t=Vi.DEFAULT,r=arguments[0];break;case 2:t=arguments[0],r=arguments[1];break;default:throw new $l("Wrong number of arguments for Schema.create function")}if(t=gw.toArray(t),r=gw.toArray(r),!t.every(function(n){return n instanceof Vi}))throw new $l("Specified list of super schemas (or a single Schema object) contains a non-Schema object.");if(!r.every(function(n){return n instanceof IP}))throw new $l("Specified list of YAML types (or a single Type object) contains a non-Type object.");return new Vi({include:t,explicit:r})};yw.exports=Vi});var bw=N((EW,xw)=>{"use strict";var MP=Ge();xw.exports=new MP("tag:yaml.org,2002:str",{kind:"scalar",construct:function(e){return e!==null?e:""}})});var vw=N((CW,ww)=>{"use strict";var DP=Ge();ww.exports=new DP("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(e){return e!==null?e:[]}})});var kw=N((TW,Sw)=>{"use strict";var PP=Ge();Sw.exports=new PP("tag:yaml.org,2002:map",{kind:"mapping",construct:function(e){return e!==null?e:{}}})});var Ul=N((_W,Aw)=>{"use strict";var NP=Bn();Aw.exports=new NP({explicit:[bw(),vw(),kw()]})});var Cw=N((IW,Ew)=>{"use strict";var FP=Ge();function RP(e){if(e===null)return!0;var t=e.length;return t===1&&e==="~"||t===4&&(e==="null"||e==="Null"||e==="NULL")}function LP(){return null}function BP(e){return e===null}Ew.exports=new FP("tag:yaml.org,2002:null",{kind:"scalar",resolve:RP,construct:LP,predicate:BP,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"}},defaultStyle:"lowercase"})});var _w=N((OW,Tw)=>{"use strict";var $P=Ge();function UP(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 jP(e){return e==="true"||e==="True"||e==="TRUE"}function zP(e){return Object.prototype.toString.call(e)==="[object Boolean]"}Tw.exports=new $P("tag:yaml.org,2002:bool",{kind:"scalar",resolve:UP,construct:jP,predicate:zP,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 Ow=N((MW,Iw)=>{"use strict";var qP=Ln(),HP=Ge();function WP(e){return 48<=e&&e<=57||65<=e&&e<=70||97<=e&&e<=102}function VP(e){return 48<=e&&e<=55}function YP(e){return 48<=e&&e<=57}function GP(e){if(e===null)return!1;var t=e.length,r=0,n=!1,i;if(!t)return!1;if(i=e[r],(i==="-"||i==="+")&&(i=e[++r]),i==="0"){if(r+1===t)return!0;if(i=e[++r],i==="b"){for(r++;r<t;r++)if(i=e[r],i!=="_"){if(i!=="0"&&i!=="1")return!1;n=!0}return n&&i!=="_"}if(i==="x"){for(r++;r<t;r++)if(i=e[r],i!=="_"){if(!WP(e.charCodeAt(r)))return!1;n=!0}return n&&i!=="_"}for(;r<t;r++)if(i=e[r],i!=="_"){if(!VP(e.charCodeAt(r)))return!1;n=!0}return n&&i!=="_"}if(i==="_")return!1;for(;r<t;r++)if(i=e[r],i!=="_"){if(i===":")break;if(!YP(e.charCodeAt(r)))return!1;n=!0}return!n||i==="_"?!1:i!==":"?!0:/^(:[0-5]?[0-9])+$/.test(e.slice(r))}function JP(e){var t=e,r=1,n,i,o=[];return t.indexOf("_")!==-1&&(t=t.replace(/_/g,"")),n=t[0],(n==="-"||n==="+")&&(n==="-"&&(r=-1),t=t.slice(1),n=t[0]),t==="0"?0:n==="0"?t[1]==="b"?r*parseInt(t.slice(2),2):t[1]==="x"?r*parseInt(t,16):r*parseInt(t,8):t.indexOf(":")!==-1?(t.split(":").forEach(function(s){o.unshift(parseInt(s,10))}),t=0,i=1,o.forEach(function(s){t+=s*i,i*=60}),r*t):r*parseInt(t,10)}function QP(e){return Object.prototype.toString.call(e)==="[object Number]"&&e%1===0&&!qP.isNegativeZero(e)}Iw.exports=new HP("tag:yaml.org,2002:int",{kind:"scalar",resolve:GP,construct:JP,predicate:QP,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 Pw=N((DW,Dw)=>{"use strict";var Mw=Ln(),ZP=Ge(),XP=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 KP(e){return!(e===null||!XP.test(e)||e[e.length-1]==="_")}function eN(e){var t,r,n,i;return t=e.replace(/_/g,"").toLowerCase(),r=t[0]==="-"?-1:1,i=[],"+-".indexOf(t[0])>=0&&(t=t.slice(1)),t===".inf"?r===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:t===".nan"?NaN:t.indexOf(":")>=0?(t.split(":").forEach(function(o){i.unshift(parseFloat(o,10))}),t=0,n=1,i.forEach(function(o){t+=o*n,n*=60}),r*t):r*parseFloat(t,10)}var tN=/^[-+]?[0-9]+e/;function rN(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(Mw.isNegativeZero(e))return"-0.0";return r=e.toString(10),tN.test(r)?r.replace("e",".e"):r}function nN(e){return Object.prototype.toString.call(e)==="[object Number]"&&(e%1!==0||Mw.isNegativeZero(e))}Dw.exports=new ZP("tag:yaml.org,2002:float",{kind:"scalar",resolve:KP,construct:eN,predicate:nN,represent:rN,defaultStyle:"lowercase"})});var Hp=N((PW,Nw)=>{"use strict";var iN=Bn();Nw.exports=new iN({include:[Ul()],implicit:[Cw(),_w(),Ow(),Pw()]})});var Wp=N((NW,Fw)=>{"use strict";var oN=Bn();Fw.exports=new oN({include:[Hp()]})});var $w=N((FW,Bw)=>{"use strict";var sN=Ge(),Rw=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),Lw=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 aN(e){return e===null?!1:Rw.exec(e)!==null||Lw.exec(e)!==null}function lN(e){var t,r,n,i,o,s,a,l=0,u=null,c,f,p;if(t=Rw.exec(e),t===null&&(t=Lw.exec(e)),t===null)throw new Error("Date resolve error");if(r=+t[1],n=+t[2]-1,i=+t[3],!t[4])return new Date(Date.UTC(r,n,i));if(o=+t[4],s=+t[5],a=+t[6],t[7]){for(l=t[7].slice(0,3);l.length<3;)l+="0";l=+l}return t[9]&&(c=+t[10],f=+(t[11]||0),u=(c*60+f)*6e4,t[9]==="-"&&(u=-u)),p=new Date(Date.UTC(r,n,i,o,s,a,l)),u&&p.setTime(p.getTime()-u),p}function uN(e){return e.toISOString()}Bw.exports=new sN("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:aN,construct:lN,instanceOf:Date,represent:uN})});var jw=N((RW,Uw)=>{"use strict";var cN=Ge();function fN(e){return e==="<<"||e===null}Uw.exports=new cN("tag:yaml.org,2002:merge",{kind:"scalar",resolve:fN})});var Hw=N((LW,qw)=>{"use strict";var $n;try{zw=ha,$n=zw("buffer").Buffer}catch{}var zw,pN=Ge(),Vp=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
|
|
10
|
+
\r`;function hN(e){if(e===null)return!1;var t,r,n=0,i=e.length,o=Vp;for(r=0;r<i;r++)if(t=o.indexOf(e.charAt(r)),!(t>64)){if(t<0)return!1;n+=6}return n%8===0}function mN(e){var t,r,n=e.replace(/[\r\n=]/g,""),i=n.length,o=Vp,s=0,a=[];for(t=0;t<i;t++)t%4===0&&t&&(a.push(s>>16&255),a.push(s>>8&255),a.push(s&255)),s=s<<6|o.indexOf(n.charAt(t));return r=i%4*6,r===0?(a.push(s>>16&255),a.push(s>>8&255),a.push(s&255)):r===18?(a.push(s>>10&255),a.push(s>>2&255)):r===12&&a.push(s>>4&255),$n?$n.from?$n.from(a):new $n(a):a}function dN(e){var t="",r=0,n,i,o=e.length,s=Vp;for(n=0;n<o;n++)n%3===0&&n&&(t+=s[r>>18&63],t+=s[r>>12&63],t+=s[r>>6&63],t+=s[r&63]),r=(r<<8)+e[n];return i=o%3,i===0?(t+=s[r>>18&63],t+=s[r>>12&63],t+=s[r>>6&63],t+=s[r&63]):i===2?(t+=s[r>>10&63],t+=s[r>>4&63],t+=s[r<<2&63],t+=s[64]):i===1&&(t+=s[r>>2&63],t+=s[r<<4&63],t+=s[64],t+=s[64]),t}function gN(e){return $n&&$n.isBuffer(e)}qw.exports=new pN("tag:yaml.org,2002:binary",{kind:"scalar",resolve:hN,construct:mN,predicate:gN,represent:dN})});var Vw=N(($W,Ww)=>{"use strict";var yN=Ge(),xN=Object.prototype.hasOwnProperty,bN=Object.prototype.toString;function wN(e){if(e===null)return!0;var t=[],r,n,i,o,s,a=e;for(r=0,n=a.length;r<n;r+=1){if(i=a[r],s=!1,bN.call(i)!=="[object Object]")return!1;for(o in i)if(xN.call(i,o))if(!s)s=!0;else return!1;if(!s)return!1;if(t.indexOf(o)===-1)t.push(o);else return!1}return!0}function vN(e){return e!==null?e:[]}Ww.exports=new yN("tag:yaml.org,2002:omap",{kind:"sequence",resolve:wN,construct:vN})});var Gw=N((UW,Yw)=>{"use strict";var SN=Ge(),kN=Object.prototype.toString;function AN(e){if(e===null)return!0;var t,r,n,i,o,s=e;for(o=new Array(s.length),t=0,r=s.length;t<r;t+=1){if(n=s[t],kN.call(n)!=="[object Object]"||(i=Object.keys(n),i.length!==1))return!1;o[t]=[i[0],n[i[0]]]}return!0}function EN(e){if(e===null)return[];var t,r,n,i,o,s=e;for(o=new Array(s.length),t=0,r=s.length;t<r;t+=1)n=s[t],i=Object.keys(n),o[t]=[i[0],n[i[0]]];return o}Yw.exports=new SN("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:AN,construct:EN})});var Qw=N((jW,Jw)=>{"use strict";var CN=Ge(),TN=Object.prototype.hasOwnProperty;function _N(e){if(e===null)return!0;var t,r=e;for(t in r)if(TN.call(r,t)&&r[t]!==null)return!1;return!0}function IN(e){return e!==null?e:{}}Jw.exports=new CN("tag:yaml.org,2002:set",{kind:"mapping",resolve:_N,construct:IN})});var Yi=N((zW,Zw)=>{"use strict";var ON=Bn();Zw.exports=new ON({include:[Wp()],implicit:[$w(),jw()],explicit:[Hw(),Vw(),Gw(),Qw()]})});var Kw=N((qW,Xw)=>{"use strict";var MN=Ge();function DN(){return!0}function PN(){}function NN(){return""}function FN(e){return typeof e>"u"}Xw.exports=new MN("tag:yaml.org,2002:js/undefined",{kind:"scalar",resolve:DN,construct:PN,predicate:FN,represent:NN})});var tv=N((HW,ev)=>{"use strict";var RN=Ge();function LN(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 BN(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 $N(e){var t="/"+e.source+"/";return e.global&&(t+="g"),e.multiline&&(t+="m"),e.ignoreCase&&(t+="i"),t}function UN(e){return Object.prototype.toString.call(e)==="[object RegExp]"}ev.exports=new RN("tag:yaml.org,2002:js/regexp",{kind:"scalar",resolve:LN,construct:BN,predicate:UN,represent:$N})});var iv=N((WW,nv)=>{"use strict";var jl;try{rv=ha,jl=rv("esprima")}catch{typeof window<"u"&&(jl=window.esprima)}var rv,jN=Ge();function zN(e){if(e===null)return!1;try{var t="("+e+")",r=jl.parse(t,{range:!0});return!(r.type!=="Program"||r.body.length!==1||r.body[0].type!=="ExpressionStatement"||r.body[0].expression.type!=="ArrowFunctionExpression"&&r.body[0].expression.type!=="FunctionExpression")}catch{return!1}}function qN(e){var t="("+e+")",r=jl.parse(t,{range:!0}),n=[],i;if(r.type!=="Program"||r.body.length!==1||r.body[0].type!=="ExpressionStatement"||r.body[0].expression.type!=="ArrowFunctionExpression"&&r.body[0].expression.type!=="FunctionExpression")throw new Error("Failed to resolve function");return r.body[0].expression.params.forEach(function(o){n.push(o.name)}),i=r.body[0].expression.body.range,r.body[0].expression.body.type==="BlockStatement"?new Function(n,t.slice(i[0]+1,i[1]-1)):new Function(n,"return "+t.slice(i[0],i[1]))}function HN(e){return e.toString()}function WN(e){return Object.prototype.toString.call(e)==="[object Function]"}nv.exports=new jN("tag:yaml.org,2002:js/function",{kind:"scalar",resolve:zN,construct:qN,predicate:WN,represent:HN})});var vs=N((YW,sv)=>{"use strict";var ov=Bn();sv.exports=ov.DEFAULT=new ov({include:[Yi()],explicit:[Kw(),tv(),iv()]})});var Ev=N((GW,Ss)=>{"use strict";var wr=Ln(),hv=Wi(),VN=hw(),mv=Yi(),YN=vs(),Vr=Object.prototype.hasOwnProperty,zl=1,dv=2,gv=3,ql=4,Yp=1,GN=2,av=3,JN=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,QN=/[\x85\u2028\u2029]/,ZN=/[,\[\]\{\}]/,yv=/^(?:!|!!|![a-z\-]+!)$/i,xv=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function lv(e){return Object.prototype.toString.call(e)}function Xt(e){return e===10||e===13}function jn(e){return e===9||e===32}function gt(e){return e===9||e===32||e===10||e===13}function Gi(e){return e===44||e===91||e===93||e===123||e===125}function XN(e){var t;return 48<=e&&e<=57?e-48:(t=e|32,97<=t&&t<=102?t-97+10:-1)}function KN(e){return e===120?2:e===117?4:e===85?8:0}function eF(e){return 48<=e&&e<=57?e-48:-1}function uv(e){return e===48?"\0":e===97?"\x07":e===98?"\b":e===116||e===9?" ":e===110?`
|
|
11
|
+
`:e===118?"\v":e===102?"\f":e===114?"\r":e===101?"\x1B":e===32?" ":e===34?'"':e===47?"/":e===92?"\\":e===78?"\x85":e===95?"\xA0":e===76?"\u2028":e===80?"\u2029":""}function tF(e){return e<=65535?String.fromCharCode(e):String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}var bv=new Array(256),wv=new Array(256);for(Un=0;Un<256;Un++)bv[Un]=uv(Un)?1:0,wv[Un]=uv(Un);var Un;function rF(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||YN,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 vv(e,t){return new hv(t,new VN(e.filename,e.input,e.position,e.line,e.position-e.lineStart))}function K(e,t){throw vv(e,t)}function Hl(e,t){e.onWarning&&e.onWarning.call(null,vv(e,t))}var cv={YAML:function(t,r,n){var i,o,s;t.version!==null&&K(t,"duplication of %YAML directive"),n.length!==1&&K(t,"YAML directive accepts exactly one argument"),i=/^([0-9]+)\.([0-9]+)$/.exec(n[0]),i===null&&K(t,"ill-formed argument of the YAML directive"),o=parseInt(i[1],10),s=parseInt(i[2],10),o!==1&&K(t,"unacceptable YAML version of the document"),t.version=n[0],t.checkLineBreaks=s<2,s!==1&&s!==2&&Hl(t,"unsupported YAML version of the document")},TAG:function(t,r,n){var i,o;n.length!==2&&K(t,"TAG directive accepts exactly two arguments"),i=n[0],o=n[1],yv.test(i)||K(t,"ill-formed tag handle (first argument) of the TAG directive"),Vr.call(t.tagMap,i)&&K(t,'there is a previously declared suffix for "'+i+'" tag handle'),xv.test(o)||K(t,"ill-formed tag prefix (second argument) of the TAG directive"),t.tagMap[i]=o}};function Wr(e,t,r,n){var i,o,s,a;if(t<r){if(a=e.input.slice(t,r),n)for(i=0,o=a.length;i<o;i+=1)s=a.charCodeAt(i),s===9||32<=s&&s<=1114111||K(e,"expected valid JSON character");else JN.test(a)&&K(e,"the stream contains non-printable characters");e.result+=a}}function fv(e,t,r,n){var i,o,s,a;for(wr.isObject(r)||K(e,"cannot merge mappings; the provided source object is unacceptable"),i=Object.keys(r),s=0,a=i.length;s<a;s+=1)o=i[s],Vr.call(t,o)||(t[o]=r[o],n[o]=!0)}function Ji(e,t,r,n,i,o,s,a){var l,u;if(Array.isArray(i))for(i=Array.prototype.slice.call(i),l=0,u=i.length;l<u;l+=1)Array.isArray(i[l])&&K(e,"nested arrays are not supported inside keys"),typeof i=="object"&&lv(i[l])==="[object Object]"&&(i[l]="[object Object]");if(typeof i=="object"&&lv(i)==="[object Object]"&&(i="[object Object]"),i=String(i),t===null&&(t={}),n==="tag:yaml.org,2002:merge")if(Array.isArray(o))for(l=0,u=o.length;l<u;l+=1)fv(e,t,o[l],r);else fv(e,t,o,r);else!e.json&&!Vr.call(r,i)&&Vr.call(t,i)&&(e.line=s||e.line,e.position=a||e.position,K(e,"duplicated mapping key")),t[i]=o,delete r[i];return t}function Gp(e){var t;t=e.input.charCodeAt(e.position),t===10?e.position++:t===13?(e.position++,e.input.charCodeAt(e.position)===10&&e.position++):K(e,"a line break is expected"),e.line+=1,e.lineStart=e.position}function ze(e,t,r){for(var n=0,i=e.input.charCodeAt(e.position);i!==0;){for(;jn(i);)i=e.input.charCodeAt(++e.position);if(t&&i===35)do i=e.input.charCodeAt(++e.position);while(i!==10&&i!==13&&i!==0);if(Xt(i))for(Gp(e),i=e.input.charCodeAt(e.position),n++,e.lineIndent=0;i===32;)e.lineIndent++,i=e.input.charCodeAt(++e.position);else break}return r!==-1&&n!==0&&e.lineIndent<r&&Hl(e,"deficient indentation"),n}function Wl(e){var t=e.position,r;return r=e.input.charCodeAt(t),!!((r===45||r===46)&&r===e.input.charCodeAt(t+1)&&r===e.input.charCodeAt(t+2)&&(t+=3,r=e.input.charCodeAt(t),r===0||gt(r)))}function Jp(e,t){t===1?e.result+=" ":t>1&&(e.result+=wr.repeat(`
|
|
12
|
+
`,t-1))}function nF(e,t,r){var n,i,o,s,a,l,u,c,f=e.kind,p=e.result,h;if(h=e.input.charCodeAt(e.position),gt(h)||Gi(h)||h===35||h===38||h===42||h===33||h===124||h===62||h===39||h===34||h===37||h===64||h===96||(h===63||h===45)&&(i=e.input.charCodeAt(e.position+1),gt(i)||r&&Gi(i)))return!1;for(e.kind="scalar",e.result="",o=s=e.position,a=!1;h!==0;){if(h===58){if(i=e.input.charCodeAt(e.position+1),gt(i)||r&&Gi(i))break}else if(h===35){if(n=e.input.charCodeAt(e.position-1),gt(n))break}else{if(e.position===e.lineStart&&Wl(e)||r&&Gi(h))break;if(Xt(h))if(l=e.line,u=e.lineStart,c=e.lineIndent,ze(e,!1,-1),e.lineIndent>=t){a=!0,h=e.input.charCodeAt(e.position);continue}else{e.position=s,e.line=l,e.lineStart=u,e.lineIndent=c;break}}a&&(Wr(e,o,s,!1),Jp(e,e.line-l),o=s=e.position,a=!1),jn(h)||(s=e.position+1),h=e.input.charCodeAt(++e.position)}return Wr(e,o,s,!1),e.result?!0:(e.kind=f,e.result=p,!1)}function iF(e,t){var r,n,i;if(r=e.input.charCodeAt(e.position),r!==39)return!1;for(e.kind="scalar",e.result="",e.position++,n=i=e.position;(r=e.input.charCodeAt(e.position))!==0;)if(r===39)if(Wr(e,n,e.position,!0),r=e.input.charCodeAt(++e.position),r===39)n=e.position,e.position++,i=e.position;else return!0;else Xt(r)?(Wr(e,n,i,!0),Jp(e,ze(e,!1,t)),n=i=e.position):e.position===e.lineStart&&Wl(e)?K(e,"unexpected end of the document within a single quoted scalar"):(e.position++,i=e.position);K(e,"unexpected end of the stream within a single quoted scalar")}function oF(e,t){var r,n,i,o,s,a;if(a=e.input.charCodeAt(e.position),a!==34)return!1;for(e.kind="scalar",e.result="",e.position++,r=n=e.position;(a=e.input.charCodeAt(e.position))!==0;){if(a===34)return Wr(e,r,e.position,!0),e.position++,!0;if(a===92){if(Wr(e,r,e.position,!0),a=e.input.charCodeAt(++e.position),Xt(a))ze(e,!1,t);else if(a<256&&bv[a])e.result+=wv[a],e.position++;else if((s=KN(a))>0){for(i=s,o=0;i>0;i--)a=e.input.charCodeAt(++e.position),(s=XN(a))>=0?o=(o<<4)+s:K(e,"expected hexadecimal character");e.result+=tF(o),e.position++}else K(e,"unknown escape sequence");r=n=e.position}else Xt(a)?(Wr(e,r,n,!0),Jp(e,ze(e,!1,t)),r=n=e.position):e.position===e.lineStart&&Wl(e)?K(e,"unexpected end of the document within a double quoted scalar"):(e.position++,n=e.position)}K(e,"unexpected end of the stream within a double quoted scalar")}function sF(e,t){var r=!0,n,i=e.tag,o,s=e.anchor,a,l,u,c,f,p={},h,m,x,v;if(v=e.input.charCodeAt(e.position),v===91)l=93,f=!1,o=[];else if(v===123)l=125,f=!0,o={};else return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=o),v=e.input.charCodeAt(++e.position);v!==0;){if(ze(e,!0,t),v=e.input.charCodeAt(e.position),v===l)return e.position++,e.tag=i,e.anchor=s,e.kind=f?"mapping":"sequence",e.result=o,!0;r||K(e,"missed comma between flow collection entries"),m=h=x=null,u=c=!1,v===63&&(a=e.input.charCodeAt(e.position+1),gt(a)&&(u=c=!0,e.position++,ze(e,!0,t))),n=e.line,Qi(e,t,zl,!1,!0),m=e.tag,h=e.result,ze(e,!0,t),v=e.input.charCodeAt(e.position),(c||e.line===n)&&v===58&&(u=!0,v=e.input.charCodeAt(++e.position),ze(e,!0,t),Qi(e,t,zl,!1,!0),x=e.result),f?Ji(e,o,p,m,h,x):u?o.push(Ji(e,null,p,m,h,x)):o.push(h),ze(e,!0,t),v=e.input.charCodeAt(e.position),v===44?(r=!0,v=e.input.charCodeAt(++e.position)):r=!1}K(e,"unexpected end of the stream within a flow collection")}function aF(e,t){var r,n,i=Yp,o=!1,s=!1,a=t,l=0,u=!1,c,f;if(f=e.input.charCodeAt(e.position),f===124)n=!1;else if(f===62)n=!0;else return!1;for(e.kind="scalar",e.result="";f!==0;)if(f=e.input.charCodeAt(++e.position),f===43||f===45)Yp===i?i=f===43?av:GN:K(e,"repeat of a chomping mode identifier");else if((c=eF(f))>=0)c===0?K(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):s?K(e,"repeat of an indentation width identifier"):(a=t+c-1,s=!0);else break;if(jn(f)){do f=e.input.charCodeAt(++e.position);while(jn(f));if(f===35)do f=e.input.charCodeAt(++e.position);while(!Xt(f)&&f!==0)}for(;f!==0;){for(Gp(e),e.lineIndent=0,f=e.input.charCodeAt(e.position);(!s||e.lineIndent<a)&&f===32;)e.lineIndent++,f=e.input.charCodeAt(++e.position);if(!s&&e.lineIndent>a&&(a=e.lineIndent),Xt(f)){l++;continue}if(e.lineIndent<a){i===av?e.result+=wr.repeat(`
|
|
13
|
+
`,o?1+l:l):i===Yp&&o&&(e.result+=`
|
|
14
|
+
`);break}for(n?jn(f)?(u=!0,e.result+=wr.repeat(`
|
|
15
|
+
`,o?1+l:l)):u?(u=!1,e.result+=wr.repeat(`
|
|
16
|
+
`,l+1)):l===0?o&&(e.result+=" "):e.result+=wr.repeat(`
|
|
17
|
+
`,l):e.result+=wr.repeat(`
|
|
18
|
+
`,o?1+l:l),o=!0,s=!0,l=0,r=e.position;!Xt(f)&&f!==0;)f=e.input.charCodeAt(++e.position);Wr(e,r,e.position,!1)}return!0}function pv(e,t){var r,n=e.tag,i=e.anchor,o=[],s,a=!1,l;for(e.anchor!==null&&(e.anchorMap[e.anchor]=o),l=e.input.charCodeAt(e.position);l!==0&&!(l!==45||(s=e.input.charCodeAt(e.position+1),!gt(s)));){if(a=!0,e.position++,ze(e,!0,-1)&&e.lineIndent<=t){o.push(null),l=e.input.charCodeAt(e.position);continue}if(r=e.line,Qi(e,t,gv,!1,!0),o.push(e.result),ze(e,!0,-1),l=e.input.charCodeAt(e.position),(e.line===r||e.lineIndent>t)&&l!==0)K(e,"bad indentation of a sequence entry");else if(e.lineIndent<t)break}return a?(e.tag=n,e.anchor=i,e.kind="sequence",e.result=o,!0):!1}function lF(e,t,r){var n,i,o,s,a=e.tag,l=e.anchor,u={},c={},f=null,p=null,h=null,m=!1,x=!1,v;for(e.anchor!==null&&(e.anchorMap[e.anchor]=u),v=e.input.charCodeAt(e.position);v!==0;){if(n=e.input.charCodeAt(e.position+1),o=e.line,s=e.position,(v===63||v===58)&>(n))v===63?(m&&(Ji(e,u,c,f,p,null),f=p=h=null),x=!0,m=!0,i=!0):m?(m=!1,i=!0):K(e,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),e.position+=1,v=n;else if(Qi(e,r,dv,!1,!0))if(e.line===o){for(v=e.input.charCodeAt(e.position);jn(v);)v=e.input.charCodeAt(++e.position);if(v===58)v=e.input.charCodeAt(++e.position),gt(v)||K(e,"a whitespace character is expected after the key-value separator within a block mapping"),m&&(Ji(e,u,c,f,p,null),f=p=h=null),x=!0,m=!1,i=!1,f=e.tag,p=e.result;else if(x)K(e,"can not read an implicit mapping pair; a colon is missed");else return e.tag=a,e.anchor=l,!0}else if(x)K(e,"can not read a block mapping entry; a multiline key may not be an implicit key");else return e.tag=a,e.anchor=l,!0;else break;if((e.line===o||e.lineIndent>t)&&(Qi(e,t,ql,!0,i)&&(m?p=e.result:h=e.result),m||(Ji(e,u,c,f,p,h,o,s),f=p=h=null),ze(e,!0,-1),v=e.input.charCodeAt(e.position)),e.lineIndent>t&&v!==0)K(e,"bad indentation of a mapping entry");else if(e.lineIndent<t)break}return m&&Ji(e,u,c,f,p,null),x&&(e.tag=a,e.anchor=l,e.kind="mapping",e.result=u),x}function uF(e){var t,r=!1,n=!1,i,o,s;if(s=e.input.charCodeAt(e.position),s!==33)return!1;if(e.tag!==null&&K(e,"duplication of a tag property"),s=e.input.charCodeAt(++e.position),s===60?(r=!0,s=e.input.charCodeAt(++e.position)):s===33?(n=!0,i="!!",s=e.input.charCodeAt(++e.position)):i="!",t=e.position,r){do s=e.input.charCodeAt(++e.position);while(s!==0&&s!==62);e.position<e.length?(o=e.input.slice(t,e.position),s=e.input.charCodeAt(++e.position)):K(e,"unexpected end of the stream within a verbatim tag")}else{for(;s!==0&&!gt(s);)s===33&&(n?K(e,"tag suffix cannot contain exclamation marks"):(i=e.input.slice(t-1,e.position+1),yv.test(i)||K(e,"named tag handle cannot contain such characters"),n=!0,t=e.position+1)),s=e.input.charCodeAt(++e.position);o=e.input.slice(t,e.position),ZN.test(o)&&K(e,"tag suffix cannot contain flow indicator characters")}return o&&!xv.test(o)&&K(e,"tag name cannot contain such characters: "+o),r?e.tag=o:Vr.call(e.tagMap,i)?e.tag=e.tagMap[i]+o:i==="!"?e.tag="!"+o:i==="!!"?e.tag="tag:yaml.org,2002:"+o:K(e,'undeclared tag handle "'+i+'"'),!0}function cF(e){var t,r;if(r=e.input.charCodeAt(e.position),r!==38)return!1;for(e.anchor!==null&&K(e,"duplication of an anchor property"),r=e.input.charCodeAt(++e.position),t=e.position;r!==0&&!gt(r)&&!Gi(r);)r=e.input.charCodeAt(++e.position);return e.position===t&&K(e,"name of an anchor node must contain at least one character"),e.anchor=e.input.slice(t,e.position),!0}function fF(e){var t,r,n;if(n=e.input.charCodeAt(e.position),n!==42)return!1;for(n=e.input.charCodeAt(++e.position),t=e.position;n!==0&&!gt(n)&&!Gi(n);)n=e.input.charCodeAt(++e.position);return e.position===t&&K(e,"name of an alias node must contain at least one character"),r=e.input.slice(t,e.position),Vr.call(e.anchorMap,r)||K(e,'unidentified alias "'+r+'"'),e.result=e.anchorMap[r],ze(e,!0,-1),!0}function Qi(e,t,r,n,i){var o,s,a,l=1,u=!1,c=!1,f,p,h,m,x;if(e.listener!==null&&e.listener("open",e),e.tag=null,e.anchor=null,e.kind=null,e.result=null,o=s=a=ql===r||gv===r,n&&ze(e,!0,-1)&&(u=!0,e.lineIndent>t?l=1:e.lineIndent===t?l=0:e.lineIndent<t&&(l=-1)),l===1)for(;uF(e)||cF(e);)ze(e,!0,-1)?(u=!0,a=o,e.lineIndent>t?l=1:e.lineIndent===t?l=0:e.lineIndent<t&&(l=-1)):a=!1;if(a&&(a=u||i),(l===1||ql===r)&&(zl===r||dv===r?m=t:m=t+1,x=e.position-e.lineStart,l===1?a&&(pv(e,x)||lF(e,x,m))||sF(e,m)?c=!0:(s&&aF(e,m)||iF(e,m)||oF(e,m)?c=!0:fF(e)?(c=!0,(e.tag!==null||e.anchor!==null)&&K(e,"alias node should not have any properties")):nF(e,m,zl===r)&&(c=!0,e.tag===null&&(e.tag="?")),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):l===0&&(c=a&&pv(e,x))),e.tag!==null&&e.tag!=="!")if(e.tag==="?"){for(e.result!==null&&e.kind!=="scalar"&&K(e,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+e.kind+'"'),f=0,p=e.implicitTypes.length;f<p;f+=1)if(h=e.implicitTypes[f],h.resolve(e.result)){e.result=h.construct(e.result),e.tag=h.tag,e.anchor!==null&&(e.anchorMap[e.anchor]=e.result);break}}else Vr.call(e.typeMap[e.kind||"fallback"],e.tag)?(h=e.typeMap[e.kind||"fallback"][e.tag],e.result!==null&&h.kind!==e.kind&&K(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+h.kind+'", not "'+e.kind+'"'),h.resolve(e.result)?(e.result=h.construct(e.result),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):K(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")):K(e,"unknown tag !<"+e.tag+">");return e.listener!==null&&e.listener("close",e),e.tag!==null||e.anchor!==null||c}function pF(e){var t=e.position,r,n,i,o=!1,s;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap={},e.anchorMap={};(s=e.input.charCodeAt(e.position))!==0&&(ze(e,!0,-1),s=e.input.charCodeAt(e.position),!(e.lineIndent>0||s!==37));){for(o=!0,s=e.input.charCodeAt(++e.position),r=e.position;s!==0&&!gt(s);)s=e.input.charCodeAt(++e.position);for(n=e.input.slice(r,e.position),i=[],n.length<1&&K(e,"directive name must not be less than one character in length");s!==0;){for(;jn(s);)s=e.input.charCodeAt(++e.position);if(s===35){do s=e.input.charCodeAt(++e.position);while(s!==0&&!Xt(s));break}if(Xt(s))break;for(r=e.position;s!==0&&!gt(s);)s=e.input.charCodeAt(++e.position);i.push(e.input.slice(r,e.position))}s!==0&&Gp(e),Vr.call(cv,n)?cv[n](e,n,i):Hl(e,'unknown document directive "'+n+'"')}if(ze(e,!0,-1),e.lineIndent===0&&e.input.charCodeAt(e.position)===45&&e.input.charCodeAt(e.position+1)===45&&e.input.charCodeAt(e.position+2)===45?(e.position+=3,ze(e,!0,-1)):o&&K(e,"directives end mark is expected"),Qi(e,e.lineIndent-1,ql,!1,!0),ze(e,!0,-1),e.checkLineBreaks&&QN.test(e.input.slice(t,e.position))&&Hl(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&Wl(e)){e.input.charCodeAt(e.position)===46&&(e.position+=3,ze(e,!0,-1));return}if(e.position<e.length-1)K(e,"end of the stream or a document separator is expected");else return}function Sv(e,t){e=String(e),t=t||{},e.length!==0&&(e.charCodeAt(e.length-1)!==10&&e.charCodeAt(e.length-1)!==13&&(e+=`
|
|
19
|
+
`),e.charCodeAt(0)===65279&&(e=e.slice(1)));var r=new rF(e,t),n=e.indexOf("\0");for(n!==-1&&(r.position=n,K(r,"null byte is not allowed in input")),r.input+="\0";r.input.charCodeAt(r.position)===32;)r.lineIndent+=1,r.position+=1;for(;r.position<r.length-1;)pF(r);return r.documents}function kv(e,t,r){t!==null&&typeof t=="object"&&typeof r>"u"&&(r=t,t=null);var n=Sv(e,r);if(typeof t!="function")return n;for(var i=0,o=n.length;i<o;i+=1)t(n[i])}function Av(e,t){var r=Sv(e,t);if(r.length!==0){if(r.length===1)return r[0];throw new hv("expected a single document in the stream, but found more")}}function hF(e,t,r){return typeof t=="object"&&t!==null&&typeof r>"u"&&(r=t,t=null),kv(e,t,wr.extend({schema:mv},r))}function mF(e,t){return Av(e,wr.extend({schema:mv},t))}Ss.exports.loadAll=kv;Ss.exports.load=Av;Ss.exports.safeLoadAll=hF;Ss.exports.safeLoad=mF});var Gv=N((JW,Kp)=>{"use strict";var As=Ln(),Es=Wi(),dF=vs(),gF=Yi(),Pv=Object.prototype.toString,Nv=Object.prototype.hasOwnProperty,yF=9,ks=10,xF=13,bF=32,wF=33,vF=34,Fv=35,SF=37,kF=38,AF=39,EF=42,Rv=44,CF=45,Lv=58,TF=61,_F=62,IF=63,OF=64,Bv=91,$v=93,MF=96,Uv=123,DF=124,jv=125,st={};st[0]="\\0";st[7]="\\a";st[8]="\\b";st[9]="\\t";st[10]="\\n";st[11]="\\v";st[12]="\\f";st[13]="\\r";st[27]="\\e";st[34]='\\"';st[92]="\\\\";st[133]="\\N";st[160]="\\_";st[8232]="\\L";st[8233]="\\P";var PF=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"];function NF(e,t){var r,n,i,o,s,a,l;if(t===null)return{};for(r={},n=Object.keys(t),i=0,o=n.length;i<o;i+=1)s=n[i],a=String(t[s]),s.slice(0,2)==="!!"&&(s="tag:yaml.org,2002:"+s.slice(2)),l=e.compiledTypeMap.fallback[s],l&&Nv.call(l.styleAliases,a)&&(a=l.styleAliases[a]),r[s]=a;return r}function Cv(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 Es("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+r+As.repeat("0",n-t.length)+t}function FF(e){this.schema=e.schema||dF,this.indent=Math.max(1,e.indent||2),this.noArrayIndent=e.noArrayIndent||!1,this.skipInvalid=e.skipInvalid||!1,this.flowLevel=As.isNothing(e.flowLevel)?-1:e.flowLevel,this.styleMap=NF(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 Tv(e,t){for(var r=As.repeat(" ",t),n=0,i=-1,o="",s,a=e.length;n<a;)i=e.indexOf(`
|
|
20
|
+
`,n),i===-1?(s=e.slice(n),n=a):(s=e.slice(n,i+1),n=i+1),s.length&&s!==`
|
|
21
|
+
`&&(o+=r),o+=s;return o}function Qp(e,t){return`
|
|
22
|
+
`+As.repeat(" ",e.indent*t)}function RF(e,t){var r,n,i;for(r=0,n=e.implicitTypes.length;r<n;r+=1)if(i=e.implicitTypes[r],i.resolve(t))return!0;return!1}function Xp(e){return e===bF||e===yF}function Zi(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 LF(e){return Zi(e)&&!Xp(e)&&e!==65279&&e!==xF&&e!==ks}function _v(e,t){return Zi(e)&&e!==65279&&e!==Rv&&e!==Bv&&e!==$v&&e!==Uv&&e!==jv&&e!==Lv&&(e!==Fv||t&&LF(t))}function BF(e){return Zi(e)&&e!==65279&&!Xp(e)&&e!==CF&&e!==IF&&e!==Lv&&e!==Rv&&e!==Bv&&e!==$v&&e!==Uv&&e!==jv&&e!==Fv&&e!==kF&&e!==EF&&e!==wF&&e!==DF&&e!==TF&&e!==_F&&e!==AF&&e!==vF&&e!==SF&&e!==OF&&e!==MF}function zv(e){var t=/^\n* /;return t.test(e)}var qv=1,Hv=2,Wv=3,Vv=4,Vl=5;function $F(e,t,r,n,i){var o,s,a,l=!1,u=!1,c=n!==-1,f=-1,p=BF(e.charCodeAt(0))&&!Xp(e.charCodeAt(e.length-1));if(t)for(o=0;o<e.length;o++){if(s=e.charCodeAt(o),!Zi(s))return Vl;a=o>0?e.charCodeAt(o-1):null,p=p&&_v(s,a)}else{for(o=0;o<e.length;o++){if(s=e.charCodeAt(o),s===ks)l=!0,c&&(u=u||o-f-1>n&&e[f+1]!==" ",f=o);else if(!Zi(s))return Vl;a=o>0?e.charCodeAt(o-1):null,p=p&&_v(s,a)}u=u||c&&o-f-1>n&&e[f+1]!==" "}return!l&&!u?p&&!i(e)?qv:Hv:r>9&&zv(e)?Vl:u?Vv:Wv}function UF(e,t,r,n){e.dump=function(){if(t.length===0)return"''";if(!e.noCompatMode&&PF.indexOf(t)!==-1)return"'"+t+"'";var i=e.indent*Math.max(1,r),o=e.lineWidth===-1?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-i),s=n||e.flowLevel>-1&&r>=e.flowLevel;function a(l){return RF(e,l)}switch($F(t,s,e.indent,o,a)){case qv:return t;case Hv:return"'"+t.replace(/'/g,"''")+"'";case Wv:return"|"+Iv(t,e.indent)+Ov(Tv(t,i));case Vv:return">"+Iv(t,e.indent)+Ov(Tv(jF(t,o),i));case Vl:return'"'+zF(t,o)+'"';default:throw new Es("impossible error: invalid scalar style")}}()}function Iv(e,t){var r=zv(e)?String(t):"",n=e[e.length-1]===`
|
|
23
|
+
`,i=n&&(e[e.length-2]===`
|
|
24
|
+
`||e===`
|
|
25
|
+
`),o=i?"+":n?"":"-";return r+o+`
|
|
26
|
+
`}function Ov(e){return e[e.length-1]===`
|
|
27
|
+
`?e.slice(0,-1):e}function jF(e,t){for(var r=/(\n+)([^\n]*)/g,n=function(){var u=e.indexOf(`
|
|
28
|
+
`);return u=u!==-1?u:e.length,r.lastIndex=u,Mv(e.slice(0,u),t)}(),i=e[0]===`
|
|
29
|
+
`||e[0]===" ",o,s;s=r.exec(e);){var a=s[1],l=s[2];o=l[0]===" ",n+=a+(!i&&!o&&l!==""?`
|
|
30
|
+
`:"")+Mv(l,t),i=o}return n}function Mv(e,t){if(e===""||e[0]===" ")return e;for(var r=/ [^ ]/g,n,i=0,o,s=0,a=0,l="";n=r.exec(e);)a=n.index,a-i>t&&(o=s>i?s:a,l+=`
|
|
31
|
+
`+e.slice(i,o),i=o+1),s=a;return l+=`
|
|
32
|
+
`,e.length-i>t&&s>i?l+=e.slice(i,s)+`
|
|
33
|
+
`+e.slice(s+1):l+=e.slice(i),l.slice(1)}function zF(e){for(var t="",r,n,i,o=0;o<e.length;o++){if(r=e.charCodeAt(o),r>=55296&&r<=56319&&(n=e.charCodeAt(o+1),n>=56320&&n<=57343)){t+=Cv((r-55296)*1024+n-56320+65536),o++;continue}i=st[r],t+=!i&&Zi(r)?e[o]:i||Cv(r)}return t}function qF(e,t,r){var n="",i=e.tag,o,s;for(o=0,s=r.length;o<s;o+=1)zn(e,t,r[o],!1,!1)&&(o!==0&&(n+=","+(e.condenseFlow?"":" ")),n+=e.dump);e.tag=i,e.dump="["+n+"]"}function HF(e,t,r,n){var i="",o=e.tag,s,a;for(s=0,a=r.length;s<a;s+=1)zn(e,t+1,r[s],!0,!0)&&((!n||s!==0)&&(i+=Qp(e,t)),e.dump&&ks===e.dump.charCodeAt(0)?i+="-":i+="- ",i+=e.dump);e.tag=o,e.dump=i||"[]"}function WF(e,t,r){var n="",i=e.tag,o=Object.keys(r),s,a,l,u,c;for(s=0,a=o.length;s<a;s+=1)c="",s!==0&&(c+=", "),e.condenseFlow&&(c+='"'),l=o[s],u=r[l],zn(e,t,l,!1,!1)&&(e.dump.length>1024&&(c+="? "),c+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),zn(e,t,u,!1,!1)&&(c+=e.dump,n+=c));e.tag=i,e.dump="{"+n+"}"}function VF(e,t,r,n){var i="",o=e.tag,s=Object.keys(r),a,l,u,c,f,p;if(e.sortKeys===!0)s.sort();else if(typeof e.sortKeys=="function")s.sort(e.sortKeys);else if(e.sortKeys)throw new Es("sortKeys must be a boolean or a function");for(a=0,l=s.length;a<l;a+=1)p="",(!n||a!==0)&&(p+=Qp(e,t)),u=s[a],c=r[u],zn(e,t+1,u,!0,!0,!0)&&(f=e.tag!==null&&e.tag!=="?"||e.dump&&e.dump.length>1024,f&&(e.dump&&ks===e.dump.charCodeAt(0)?p+="?":p+="? "),p+=e.dump,f&&(p+=Qp(e,t)),zn(e,t+1,c,!0,f)&&(e.dump&&ks===e.dump.charCodeAt(0)?p+=":":p+=": ",p+=e.dump,i+=p));e.tag=o,e.dump=i||"{}"}function Dv(e,t,r){var n,i,o,s,a,l;for(i=r?e.explicitTypes:e.implicitTypes,o=0,s=i.length;o<s;o+=1)if(a=i[o],(a.instanceOf||a.predicate)&&(!a.instanceOf||typeof t=="object"&&t instanceof a.instanceOf)&&(!a.predicate||a.predicate(t))){if(e.tag=r?a.tag:"?",a.represent){if(l=e.styleMap[a.tag]||a.defaultStyle,Pv.call(a.represent)==="[object Function]")n=a.represent(t,l);else if(Nv.call(a.represent,l))n=a.represent[l](t,l);else throw new Es("!<"+a.tag+'> tag resolver accepts not "'+l+'" style');e.dump=n}return!0}return!1}function zn(e,t,r,n,i,o){e.tag=null,e.dump=r,Dv(e,r,!1)||Dv(e,r,!0);var s=Pv.call(e.dump);n&&(n=e.flowLevel<0||e.flowLevel>t);var a=s==="[object Object]"||s==="[object Array]",l,u;if(a&&(l=e.duplicates.indexOf(r),u=l!==-1),(e.tag!==null&&e.tag!=="?"||u||e.indent!==2&&t>0)&&(i=!1),u&&e.usedDuplicates[l])e.dump="*ref_"+l;else{if(a&&u&&!e.usedDuplicates[l]&&(e.usedDuplicates[l]=!0),s==="[object Object]")n&&Object.keys(e.dump).length!==0?(VF(e,t,e.dump,i),u&&(e.dump="&ref_"+l+e.dump)):(WF(e,t,e.dump),u&&(e.dump="&ref_"+l+" "+e.dump));else if(s==="[object Array]"){var c=e.noArrayIndent&&t>0?t-1:t;n&&e.dump.length!==0?(HF(e,c,e.dump,i),u&&(e.dump="&ref_"+l+e.dump)):(qF(e,c,e.dump),u&&(e.dump="&ref_"+l+" "+e.dump))}else if(s==="[object String]")e.tag!=="?"&&UF(e,e.dump,t,o);else{if(e.skipInvalid)return!1;throw new Es("unacceptable kind of an object to dump "+s)}e.tag!==null&&e.tag!=="?"&&(e.dump="!<"+e.tag+"> "+e.dump)}return!0}function YF(e,t){var r=[],n=[],i,o;for(Zp(e,r,n),i=0,o=n.length;i<o;i+=1)t.duplicates.push(r[n[i]]);t.usedDuplicates=new Array(o)}function Zp(e,t,r){var n,i,o;if(e!==null&&typeof e=="object")if(i=t.indexOf(e),i!==-1)r.indexOf(i)===-1&&r.push(i);else if(t.push(e),Array.isArray(e))for(i=0,o=e.length;i<o;i+=1)Zp(e[i],t,r);else for(n=Object.keys(e),i=0,o=n.length;i<o;i+=1)Zp(e[n[i]],t,r)}function Yv(e,t){t=t||{};var r=new FF(t);return r.noRefs||YF(e,r),zn(r,0,e,!0,!0)?r.dump+`
|
|
34
|
+
`:""}function GF(e,t){return Yv(e,As.extend({schema:gF},t))}Kp.exports.dump=Yv;Kp.exports.safeDump=GF});var Qv=N((QW,Oe)=>{"use strict";var Yl=Ev(),Jv=Gv();function Gl(e){return function(){throw new Error("Function "+e+" is deprecated and cannot be used.")}}Oe.exports.Type=Ge();Oe.exports.Schema=Bn();Oe.exports.FAILSAFE_SCHEMA=Ul();Oe.exports.JSON_SCHEMA=Hp();Oe.exports.CORE_SCHEMA=Wp();Oe.exports.DEFAULT_SAFE_SCHEMA=Yi();Oe.exports.DEFAULT_FULL_SCHEMA=vs();Oe.exports.load=Yl.load;Oe.exports.loadAll=Yl.loadAll;Oe.exports.safeLoad=Yl.safeLoad;Oe.exports.safeLoadAll=Yl.safeLoadAll;Oe.exports.dump=Jv.dump;Oe.exports.safeDump=Jv.safeDump;Oe.exports.YAMLException=Wi();Oe.exports.MINIMAL_SCHEMA=Ul();Oe.exports.SAFE_SCHEMA=Yi();Oe.exports.DEFAULT_SCHEMA=vs();Oe.exports.scan=Gl("scan");Oe.exports.parse=Gl("parse");Oe.exports.compose=Gl("compose");Oe.exports.addConstructor=Gl("addConstructor")});var Xv=N((ZW,Zv)=>{"use strict";var JF=Qv();Zv.exports=JF});var Kv=N(Kt=>{"use strict";var QF=Kt&&Kt.__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]}),ZF=Kt&&Kt.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),XF=Kt&&Kt.__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)&&QF(t,e,r);return ZF(t,e),t};Object.defineProperty(Kt,"__esModule",{value:!0});Kt.jsYaml=void 0;var KF=XF(Xv());Kt.jsYaml=KF});var t1=N(Ot=>{"use strict";var eR=Ot&&Ot.__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=Ot&&Ot.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),rR=Ot&&Ot.__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)&&eR(t,e,r);return tR(t,e),t};Object.defineProperty(Ot,"__esModule",{value:!0});Ot.objectToYamlString=Ot.yamlStringToObject=void 0;var e1=rR(Kv());Ot.yamlStringToObject=async(e,t={})=>e1.jsYaml.safeLoad(e);Ot.objectToYamlString=async(e,t={})=>e1.jsYaml.safeDump(e)});var c1=N((tV,u1)=>{"use strict";var Jl=Object.prototype.hasOwnProperty,l1=Object.prototype.toString,r1=Object.defineProperty,n1=Object.getOwnPropertyDescriptor,i1=function(t){return typeof Array.isArray=="function"?Array.isArray(t):l1.call(t)==="[object Array]"},o1=function(t){if(!t||l1.call(t)!=="[object Object]")return!1;var r=Jl.call(t,"constructor"),n=t.constructor&&t.constructor.prototype&&Jl.call(t.constructor.prototype,"isPrototypeOf");if(t.constructor&&!r&&!n)return!1;var i;for(i in t);return typeof i>"u"||Jl.call(t,i)},s1=function(t,r){r1&&r.name==="__proto__"?r1(t,r.name,{enumerable:!0,configurable:!0,value:r.newValue,writable:!0}):t[r.name]=r.newValue},a1=function(t,r){if(r==="__proto__")if(Jl.call(t,r)){if(n1)return n1(t,r).value}else return;return t[r]};u1.exports=function e(){var t,r,n,i,o,s,a=arguments[0],l=1,u=arguments.length,c=!1;for(typeof a=="boolean"&&(c=a,a=arguments[1]||{},l=2),(a==null||typeof a!="object"&&typeof a!="function")&&(a={});l<u;++l)if(t=arguments[l],t!=null)for(r in t)n=a1(a,r),i=a1(t,r),a!==i&&(c&&i&&(o1(i)||(o=i1(i)))?(o?(o=!1,s=n&&i1(n)?n:[]):s=n&&o1(n)?n:{},s1(a,{name:r,newValue:e(c,s,i)})):typeof i<"u"&&s1(a,{name:r,newValue:i}));return a}});var US=N((sK,um)=>{(function(){var e;typeof um<"u"?e=um.exports=n:e=function(){return this||(0,eval)("this")}(),e.format=n,e.vsprintf=r,typeof console<"u"&&typeof console.log=="function"&&(e.printf=t);function t(){console.log(n.apply(null,arguments))}function r(i,o){return n.apply(null,[i].concat(o))}function n(i){for(var o=1,s=[].slice.call(arguments),a=0,l=i.length,u="",c,f=!1,p,h,m=!1,x,v=function(){return s[o++]},w=function(){for(var T="";/\d/.test(i[a]);)T+=i[a++],c=i[a];return T.length>0?parseInt(T):null};a<l;++a)if(c=i[a],f)switch(f=!1,c=="."?(m=!1,c=i[++a]):c=="0"&&i[a+1]=="."?(m=!0,a+=2,c=i[a]):m=!0,x=w(),c){case"b":u+=parseInt(v(),10).toString(2);break;case"c":p=v(),typeof p=="string"||p instanceof String?u+=p:u+=String.fromCharCode(parseInt(p,10));break;case"d":u+=parseInt(v(),10);break;case"f":h=String(parseFloat(v()).toFixed(x||6)),u+=m?h:h.replace(/^0/,"");break;case"j":u+=JSON.stringify(v());break;case"o":u+="0"+parseInt(v(),10).toString(8);break;case"s":u+=v();break;case"x":u+="0x"+parseInt(v(),10).toString(16);break;case"X":u+="0x"+parseInt(v(),10).toString(16).toUpperCase();break;default:u+=c;break}else c==="%"?f=!0:u+=c;return u}})()});var SA=N(Er=>{"use strict";Object.defineProperty(Er,"__esModule",{value:!0});Er.TokenData=void 0;Er.parse=Qm;Er.compile=E3;Er.match=T3;Er.pathToRegexp=vA;Er.stringify=O3;var Ym="/",Gm=e=>e,bA=/^[$_\p{ID_Start}]$/u,Jm=/^[$\u200c\u200d\p{ID_Continue}]$/u,Wu="https://git.new/pathToRegexpError",S3={"{":"{","}":"}","(":"(",")":")","[":"[","]":"]","+":"+","?":"?","!":"!"};function k3(e){return e.replace(/[{}()\[\]+?!:*]/g,"\\$&")}function nr(e){return e.replace(/[.+*?^${}()[\]|/\\]/g,"\\$&")}function*A3(e){let t=[...e],r=0;function n(){let i="";if(bA.test(t[++r]))for(i+=t[r];Jm.test(t[++r]);)i+=t[r];else if(t[r]==='"'){let o=r;for(;r<t.length;){if(t[++r]==='"'){r++,o=0;break}t[r]==="\\"?i+=t[++r]:i+=t[r]}if(o)throw new TypeError(`Unterminated quote at ${o}: ${Wu}`)}if(!i)throw new TypeError(`Missing parameter name at ${r}: ${Wu}`);return i}for(;r<t.length;){let i=t[r],o=S3[i];if(o)yield{type:o,index:r++,value:i};else if(i==="\\")yield{type:"ESCAPED",index:r++,value:t[r++]};else if(i===":"){let s=n();yield{type:"PARAM",index:r,value:s}}else if(i==="*"){let s=n();yield{type:"WILDCARD",index:r,value:s}}else yield{type:"CHAR",index:r,value:t[r++]}}return{type:"END",index:r,value:""}}var Vm=class{constructor(t){this.tokens=t}peek(){if(!this._peek){let t=this.tokens.next();this._peek=t.value}return this._peek}tryConsume(t){let r=this.peek();if(r.type===t)return this._peek=void 0,r.value}consume(t){let r=this.tryConsume(t);if(r!==void 0)return r;let{type:n,index:i}=this.peek();throw new TypeError(`Unexpected ${n} at ${i}, expected ${t}: ${Wu}`)}text(){let t="",r;for(;r=this.tryConsume("CHAR")||this.tryConsume("ESCAPED");)t+=r;return t}},lo=class{constructor(t){this.tokens=t}};Er.TokenData=lo;function Qm(e,t={}){let{encodePath:r=Gm}=t,n=new Vm(A3(e));function i(s){let a=[];for(;;){let l=n.text();l&&a.push({type:"text",value:r(l)});let u=n.tryConsume("PARAM");if(u){a.push({type:"param",name:u});continue}let c=n.tryConsume("WILDCARD");if(c){a.push({type:"wildcard",name:c});continue}if(n.tryConsume("{")){a.push({type:"group",tokens:i("}")});continue}return n.consume(s),a}}let o=i("END");return new lo(o)}function E3(e,t={}){let{encode:r=encodeURIComponent,delimiter:n=Ym}=t,i=e instanceof lo?e:Qm(e,t),o=wA(i.tokens,n,r);return function(a={}){let[l,...u]=o(a);if(u.length)throw new TypeError(`Missing parameters: ${u.join(", ")}`);return l}}function wA(e,t,r){let n=e.map(i=>C3(i,t,r));return i=>{let o=[""];for(let s of n){let[a,...l]=s(i);o[0]+=a,o.push(...l)}return o}}function C3(e,t,r){if(e.type==="text")return()=>[e.value];if(e.type==="group"){let i=wA(e.tokens,t,r);return o=>{let[s,...a]=i(o);return a.length?[""]:[s]}}let n=r||Gm;return e.type==="wildcard"&&r!==!1?i=>{let o=i[e.name];if(o==null)return["",e.name];if(!Array.isArray(o)||o.length===0)throw new TypeError(`Expected "${e.name}" to be a non-empty array`);return[o.map((s,a)=>{if(typeof s!="string")throw new TypeError(`Expected "${e.name}/${a}" to be a string`);return n(s)}).join(t)]}:i=>{let o=i[e.name];if(o==null)return["",e.name];if(typeof o!="string")throw new TypeError(`Expected "${e.name}" to be a string`);return[n(o)]}}function T3(e,t={}){let{decode:r=decodeURIComponent,delimiter:n=Ym}=t,{regexp:i,keys:o}=vA(e,t),s=o.map(a=>r===!1?Gm:a.type==="param"?r:l=>l.split(n).map(r));return function(l){let u=i.exec(l);if(!u)return!1;let c=u[0],f=Object.create(null);for(let p=1;p<u.length;p++){if(u[p]===void 0)continue;let h=o[p-1],m=s[p-1];f[h.name]=m(u[p])}return{path:c,params:f}}}function vA(e,t={}){let{delimiter:r=Ym,end:n=!0,sensitive:i=!1,trailing:o=!0}=t,s=[],a=[],l=i?"":"i",c=(Array.isArray(e)?e:[e]).map(h=>h instanceof lo?h:Qm(h,t));for(let{tokens:h}of c)for(let m of Hu(h,0,[])){let x=_3(m,r,s);a.push(x)}let f=`^(?:${a.join("|")})`;return o&&(f+=`(?:${nr(r)}$)?`),f+=n?"$":`(?=${nr(r)}|$)`,{regexp:new RegExp(f,l),keys:s}}function*Hu(e,t,r){if(t===e.length)return yield r;let n=e[t];if(n.type==="group"){let i=r.slice();for(let o of Hu(n.tokens,0,i))yield*Hu(e,t+1,o)}else r.push(n);yield*Hu(e,t+1,r)}function _3(e,t,r){let n="",i="",o=!0;for(let s=0;s<e.length;s++){let a=e[s];if(a.type==="text"){n+=nr(a.value),i+=a.value,o||(o=a.value.includes(t));continue}if(a.type==="param"||a.type==="wildcard"){if(!o&&!i)throw new TypeError(`Missing text after "${a.name}": ${Wu}`);a.type==="param"?n+=`(${I3(t,o?"":i)}+)`:n+="([\\s\\S]+)",r.push(a),i="",o=!1;continue}}return n}function I3(e,t){return t.length<2?e.length<2?`[^${nr(e+t)}]`:`(?:(?!${nr(e)})[^${nr(t)}])`:e.length<2?`(?:(?!${nr(t)})[^${nr(e)}])`:`(?:(?!${nr(t)}|${nr(e)})[\\s\\S])`}function O3(e){return e.tokens.map(function t(r,n,i){if(r.type==="text")return k3(r.value);if(r.type==="group")return`{${r.tokens.map(t).join("")}}`;let s=M3(r.name)&&D3(i[n+1])?r.name:JSON.stringify(r.name);if(r.type==="param")return`:${s}`;if(r.type==="wildcard")return`*${s}`;throw new TypeError(`Unexpected token: ${r}`)}).join("")}function M3(e){let[t,...r]=e;return bA.test(t)?r.every(n=>Jm.test(n)):!1}function D3(e){return e?.type!=="text"?!0:!Jm.test(e.value[0])}});var AA=N(qe=>{"use strict";Object.defineProperty(qe,"__esModule",{value:!0});qe.getFirstTrueOrFalse=qe.timeoutAndContinue=qe.timeoutWrap=qe.map=qe.rejectedPromise=qe.resolvedPromise=qe.defer=qe.Deferred=void 0;var Yu=class{constructor(){this.promise=new Promise((t,r)=>{this.resolve=n=>{this.status="fulfilled",this.stoppedAt=Date.now(),t(n)},this.reject=n=>{this.status="rejected",this.stoppedAt=Date.now(),r(n)},this.startedAt=Date.now(),this.status="pending"})}get duration(){return this.stoppedAt?this.stoppedAt-this.startedAt:Date.now()-this.startedAt}};qe.Deferred=Yu;qe.defer=()=>new Yu;qe.resolvedPromise=e=>Promise.resolve(e);qe.rejectedPromise=e=>Promise.reject(e);qe.map=async(e,t)=>{let r=[],n=[];for(let i of e){let o=t(i);r.push(o),o.then(s=>{n.push(s)})}return await Promise.all(r),n};qe.timeoutWrap=async(e,t,r=!0)=>new Promise((n,i)=>{setTimeout(()=>{r?i(new Error("timeout")):n(null)},t),e.then(n,i)});qe.timeoutAndContinue=async(e,t=6e4)=>qe.timeoutWrap(e,t,!1);qe.getFirstTrueOrFalse=async e=>{let t=qe.defer();for(let r of e)r.then(n=>{n===!0&&t.resolve(!0)});return Promise.all(e).then(()=>{t.resolve(!1)}),t.promise}});var nd=N((td,rd)=>{(function(e,t){typeof td=="object"&&typeof rd<"u"?rd.exports=t():typeof define=="function"&&define.amd?define(t):(e=e||self,e.SweetScroll=t())})(td,function(){"use strict";var e=function(){return e=Object.assign||function(g){for(var S,C=1,M=arguments.length;C<M;C++){S=arguments[C];for(var Y in S)Object.prototype.hasOwnProperty.call(S,Y)&&(g[Y]=S[Y])}return g},e.apply(this,arguments)},t=!!(typeof window<"u"&&window.document&&window.document.createElement),r=t?window.history&&"pushState"in window.history&&window.location.protocol!=="file:":!1,n=function(){var k=!1;if(!t)return k;try{var g=window,S=Object.defineProperty({},"passive",{get:function(){k=!0}});g.addEventListener("test",null,S),g.removeEventListener("test",null,S)}catch{}return k}(),i=function(k){return typeof k=="string"},o=function(k){return typeof k=="function"},s=function(k){return Array.isArray(k)},a=function(k){return!s(k)&&k-parseFloat(k)+1>=0},l=function(k,g){return k&&k.hasOwnProperty(g)},u=t?window.requestAnimationFrame.bind(window):null,c=t?window.cancelAnimationFrame.bind(window):null,f=Math.cos,p=Math.sin,h=Math.pow,m=Math.sqrt,x=Math.PI,v={linear:function(k){return k},easeInQuad:function(k,g,S,C,M){return C*(g/=M)*g+S},easeOutQuad:function(k,g,S,C,M){return-C*(g/=M)*(g-2)+S},easeInOutQuad:function(k,g,S,C,M){return(g/=M/2)<1?C/2*g*g+S:-C/2*(--g*(g-2)-1)+S},easeInCubic:function(k,g,S,C,M){return C*(g/=M)*g*g+S},easeOutCubic:function(k,g,S,C,M){return C*((g=g/M-1)*g*g+1)+S},easeInOutCubic:function(k,g,S,C,M){return(g/=M/2)<1?C/2*g*g*g+S:C/2*((g-=2)*g*g+2)+S},easeInQuart:function(k,g,S,C,M){return C*(g/=M)*g*g*g+S},easeOutQuart:function(k,g,S,C,M){return-C*((g=g/M-1)*g*g*g-1)+S},easeInOutQuart:function(k,g,S,C,M){return(g/=M/2)<1?C/2*g*g*g*g+S:-C/2*((g-=2)*g*g*g-2)+S},easeInQuint:function(k,g,S,C,M){return C*(g/=M)*g*g*g*g+S},easeOutQuint:function(k,g,S,C,M){return C*((g=g/M-1)*g*g*g*g+1)+S},easeInOutQuint:function(k,g,S,C,M){return(g/=M/2)<1?C/2*g*g*g*g*g+S:C/2*((g-=2)*g*g*g*g+2)+S},easeInSine:function(k,g,S,C,M){return-C*f(g/M*(x/2))+C+S},easeOutSine:function(k,g,S,C,M){return C*p(g/M*(x/2))+S},easeInOutSine:function(k,g,S,C,M){return-C/2*(f(x*g/M)-1)+S},easeInExpo:function(k,g,S,C,M){return g===0?S:C*h(2,10*(g/M-1))+S},easeOutExpo:function(k,g,S,C,M){return g===M?S+C:C*(-h(2,-10*g/M)+1)+S},easeInOutExpo:function(k,g,S,C,M){return g===0?S:g===M?S+C:(g/=M/2)<1?C/2*h(2,10*(g-1))+S:C/2*(-h(2,-10*--g)+2)+S},easeInCirc:function(k,g,S,C,M){return-C*(m(1-(g/=M)*g)-1)+S},easeOutCirc:function(k,g,S,C,M){return C*m(1-(g=g/M-1)*g)+S},easeInOutCirc:function(k,g,S,C,M){return(g/=M/2)<1?-C/2*(m(1-g*g)-1)+S:C/2*(m(1-(g-=2)*g)+1)+S}},w=function(k){return Array.prototype.slice.call(k?document.querySelectorAll(k):[])},T=function(k){return w(k).shift()||null},b=function(k){return k instanceof Element},z=function(k){return k===window},q=function(k){return k===document.documentElement||k===document.body},A=function(k,g){if(b(g))return k===g;for(var S=w(g),C=S.length;--C>=0&&S[C]!==k;);return C>-1},R=function(k){return Math.max(k.scrollHeight,k.clientHeight,k.offsetHeight)},W=function(k){return Math.max(k.scrollWidth,k.clientWidth,k.offsetWidth)},$=function(k){return{width:W(k),height:R(k)}},E=function(k){var g=z(k)||q(k);return{viewport:{width:g?Math.min(window.innerWidth,document.documentElement.clientWidth):k.clientWidth,height:g?window.innerHeight:k.clientHeight},size:g?{width:Math.max(W(document.body),W(document.documentElement)),height:Math.max(R(document.body),R(document.documentElement))}:$(k)}},fe={y:"scrollTop",x:"scrollLeft"},B={y:"pageYOffset",x:"pageXOffset"},_=function(k,g){return z(k)?k[B[g]]:k[fe[g]]},I=function(k,g,S){if(z(k)){var C=S==="y";k.scrollTo(C?k.pageXOffset:g,C?g:k.pageYOffset)}else k[fe[S]]=g},D=function(k,g){var S=k.getBoundingClientRect();if(S.width||S.height){var C={top:0,left:0},M=void 0;if(z(g)||q(g))M=document.documentElement,C.top=window[B.y],C.left=window[B.x];else{M=g;var Y=M.getBoundingClientRect();C.top=Y.top*-1+M[fe.y],C.left=Y.left*-1+M[fe.x]}return{top:S.top+C.top-M.clientTop,left:S.left+C.left-M.clientLeft}}return S},F=function(){return t?"onwheel"in document?"wheel":"mousewheel":"wheel"}(),V=function(k){return k==="wheel"?F:k},P=function(k,g,S,C,M){S.split(" ").forEach(function(Y){k[g](V(Y),C,n?{passive:M}:!1)})},U=function(k,g,S,C){return P(k,"addEventListener",g,S,C)},d=function(k,g,S,C){return P(k,"removeEventListener",g,S,C)},G=/^(\+|-)=(\d+(?:\.\d+)?)$/,X=function(k,g){var S={top:0,left:0,relative:!1};if(l(k,"top")||l(k,"left"))S=e({},S,k);else if(s(k))if(k.length>1)S.top=k[0],S.left=k[1];else if(k.length===1)S.top=g?k[0]:0,S.left=g?0:k[0];else return null;else if(a(k))g?S.top=k:S.left=k;else if(i(k)){var C=k.trim().match(G);if(!C)return null;var M=C[1],Y=parseInt(C[2],10);M==="+"?(S.top=g?Y:0,S.left=g?0:Y):(S.top=g?-Y:0,S.left=g?0:-Y),S.relative=!0}else return null;return S},y={trigger:"[data-scroll]",header:"[data-scroll-header]",duration:1e3,easing:"easeOutQuint",offset:0,vertical:!0,horizontal:!1,cancellable:!0,updateURL:!1,preventDefault:!0,stopPropagation:!0,before:null,after:null,cancel:null,complete:null,step:null},ie="click",me="wheel touchstart touchmove",_e=function(){function k(g,S){var C=this;this.$el=null,this.ctx={$trigger:null,opts:null,progress:!1,pos:null,startPos:null,easing:null,start:0,id:0,cancel:!1,hash:null},this.loop=function(Y){var de=C,ye=de.$el,xe=de.ctx;if(xe.start||(xe.start=Y),!xe.progress||!ye){C.stop();return}var At=xe.opts,nt=xe.pos,bt=xe.start,or=xe.startPos,Dr=xe.easing,Rt=At.duration,Ht={top:"y",left:"x"},Et=Y-bt,Be=Math.min(1,Math.max(Et/Rt,0));Object.keys(nt).forEach(function(Pr){var O=nt[Pr],j=or[Pr],ee=O-j;if(ee!==0){var se=Dr(Be,Rt*Be,0,1,Rt);I(ye,Math.round(j+ee*se),Ht[Pr])}}),Et<=Rt?(C.hook(At,"step",Be),xe.id=k.raf(C.loop)):C.stop(!0)},this.handleClick=function(Y){for(var de=C.opts,ye=Y.target;ye&&ye!==document;ye=ye.parentNode)if(A(ye,de.trigger)){var xe=JSON.parse(ye.getAttribute("data-scroll-options")||"{}"),At=ye.getAttribute("data-scroll"),nt=At||ye.getAttribute("href"),bt=e({},de,xe),or=bt.preventDefault,Dr=bt.stopPropagation,Rt=bt.vertical,Ht=bt.horizontal;or&&Y.preventDefault(),Dr&&Y.stopPropagation(),C.ctx.$trigger=ye,Ht&&Rt?C.to(nt,bt):Rt?C.toTop(nt,bt):Ht&&C.toLeft(nt,bt);break}},this.handleStop=function(Y){var de=C.ctx,ye=de.opts;ye&&ye.cancellable?(de.cancel=!0,C.stop()):Y.preventDefault()},this.opts=e({},y,g||{});var M=null;t&&(typeof S=="string"?M=T(S):S!=null?M=S:M=window),this.$el=M,M&&this.bind(!0,!1)}return k.create=function(g,S){return new k(g,S)},k.prototype.to=function(g,S){if(t){var C=this,M=C.$el,Y=C.ctx,de=C.opts,ye=Y.$trigger,xe=e({},de,S||{}),At=xe.offset,nt=xe.vertical,bt=xe.horizontal,or=b(xe.header)?xe.header:T(xe.header),Dr=/^#/,Rt=i(g)&&Dr.test(g)?g:null;if(Y.opts=xe,Y.cancel=!1,Y.hash=Rt,this.stop(),!!M){var Ht=X(At,nt),Et=X(g,nt),Be={top:0,left:0};if(Et)if(Et.relative){var Pr=_(M,nt?"y":"x");Be.top=nt?Pr+Et.top:Et.top,Be.left=nt?Et.left:Pr+Et.left}else Be=Et;else if(i(g)&&g!=="#"){var O=T(g);if(!O)return;Be=D(O,M)}Ht&&(Be.top+=Ht.top,Be.left+=Ht.left),or&&(Be.top=Math.max(0,Be.top-$(or).height));var j=E(M),ee=j.viewport,se=j.size;if(Be.top=nt?Math.max(0,Math.min(se.height-ee.height,Be.top)):_(M,"y"),Be.left=bt?Math.max(0,Math.min(se.width-ee.width,Be.left)):_(M,"x"),this.hook(xe,"before",Be,ye)===!1){Y.opts=null;return}Y.pos=Be,this.start(xe),this.bind(!1,!0)}}},k.prototype.toTop=function(g,S){this.to(g,e({},S||{},{vertical:!0,horizontal:!1}))},k.prototype.toLeft=function(g,S){this.to(g,e({},S||{},{vertical:!1,horizontal:!0}))},k.prototype.toElement=function(g,S){var C=this.$el;!t||!C||this.to(D(g,C),S||{})},k.prototype.stop=function(g){g===void 0&&(g=!1);var S=this,C=S.$el,M=S.ctx,Y=M.pos;!C||!M.progress||(k.caf(M.id),M.progress=!1,M.start=0,M.id=0,g&&Y&&(I(C,Y.left,"x"),I(C,Y.top,"y")),this.complete())},k.prototype.update=function(g){if(this.$el){var S=e({},this.opts,g);this.stop(),this.unbind(!0,!0),this.opts=S,this.bind(!0,!1)}},k.prototype.destroy=function(){this.$el&&(this.stop(),this.unbind(!0,!0),this.$el=null)},k.prototype.onBefore=function(g,S){return!0},k.prototype.onStep=function(g){},k.prototype.onAfter=function(g,S){},k.prototype.onCancel=function(){},k.prototype.onComplete=function(g){},k.prototype.start=function(g){var S=this.ctx;S.opts=g,S.progress=!0,S.easing=o(g.easing)?g.easing:v[g.easing];var C=this.$el,M={top:_(C,"y"),left:_(C,"x")};S.startPos=M,S.id=k.raf(this.loop)},k.prototype.complete=function(){var g=this,S=g.$el,C=g.ctx,M=C.hash,Y=C.cancel,de=C.opts,ye=C.pos,xe=C.$trigger;if(!(!S||!de)){if(M!=null&&M!==window.location.hash){var At=de.updateURL;t&&r&&At!==!1&&window.history[At==="replace"?"replaceState":"pushState"](null,"",M)}this.unbind(!1,!0),C.opts=null,C.$trigger=null,Y?this.hook(de,"cancel"):this.hook(de,"after",ye,xe),this.hook(de,"complete",Y)}},k.prototype.hook=function(g,S){for(var C=[],M=2;M<arguments.length;M++)C[M-2]=arguments[M];var Y,de=g[S],ye,xe;return o(de)&&(ye=de.apply(this,C.concat([this]))),xe=(Y=this)["on"+(S[0].toUpperCase()+S.slice(1))].apply(Y,C),ye!==void 0?ye:xe},k.prototype.bind=function(g,S){var C=this,M=C.$el,Y=C.ctx.opts;M&&(g&&U(M,ie,this.handleClick,!1),S&&U(M,me,this.handleStop,Y?Y.cancellable:!0))},k.prototype.unbind=function(g,S){var C=this,M=C.$el,Y=C.ctx.opts;M&&(g&&d(M,ie,this.handleClick,!1),S&&d(M,me,this.handleStop,Y?Y.cancellable:!0))},k.raf=u,k.caf=c,k}();return _e})});var VA=N((zle,WA)=>{WA.exports=function(){return typeof Promise=="function"&&Promise.prototype&&Promise.prototype.then}});var rn=N(oi=>{var xd,gU=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];oi.getSymbolSize=function(t){if(!t)throw new Error('"version" cannot be null or undefined');if(t<1||t>40)throw new Error('"version" should be in range from 1 to 40');return t*4+17};oi.getSymbolTotalCodewords=function(t){return gU[t]};oi.getBCHDigit=function(e){let t=0;for(;e!==0;)t++,e>>>=1;return t};oi.setToSJISFunction=function(t){if(typeof t!="function")throw new Error('"toSJISFunc" is not a valid function.');xd=t};oi.isKanjiModeEnabled=function(){return typeof xd<"u"};oi.toSJIS=function(t){return xd(t)}});var uc=N(Pt=>{Pt.L={bit:1};Pt.M={bit:0};Pt.Q={bit:3};Pt.H={bit:2};function yU(e){if(typeof e!="string")throw new Error("Param is not a string");switch(e.toLowerCase()){case"l":case"low":return Pt.L;case"m":case"medium":return Pt.M;case"q":case"quartile":return Pt.Q;case"h":case"high":return Pt.H;default:throw new Error("Unknown EC Level: "+e)}}Pt.isValid=function(t){return t&&typeof t.bit<"u"&&t.bit>=0&&t.bit<4};Pt.from=function(t,r){if(Pt.isValid(t))return t;try{return yU(t)}catch{return r}}});var JA=N((Wle,GA)=>{function YA(){this.buffer=[],this.length=0}YA.prototype={get:function(e){let t=Math.floor(e/8);return(this.buffer[t]>>>7-e%8&1)===1},put:function(e,t){for(let r=0;r<t;r++)this.putBit((e>>>t-r-1&1)===1)},getLengthInBits:function(){return this.length},putBit:function(e){let t=Math.floor(this.length/8);this.buffer.length<=t&&this.buffer.push(0),e&&(this.buffer[t]|=128>>>this.length%8),this.length++}};GA.exports=YA});var ZA=N((Vle,QA)=>{function na(e){if(!e||e<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=e,this.data=new Uint8Array(e*e),this.reservedBit=new Uint8Array(e*e)}na.prototype.set=function(e,t,r,n){let i=e*this.size+t;this.data[i]=r,n&&(this.reservedBit[i]=!0)};na.prototype.get=function(e,t){return this.data[e*this.size+t]};na.prototype.xor=function(e,t,r){this.data[e*this.size+t]^=r};na.prototype.isReserved=function(e,t){return this.reservedBit[e*this.size+t]};QA.exports=na});var XA=N(cc=>{var xU=rn().getSymbolSize;cc.getRowColCoords=function(t){if(t===1)return[];let r=Math.floor(t/7)+2,n=xU(t),i=n===145?26:Math.ceil((n-13)/(2*r-2))*2,o=[n-7];for(let s=1;s<r-1;s++)o[s]=o[s-1]-i;return o.push(6),o.reverse()};cc.getPositions=function(t){let r=[],n=cc.getRowColCoords(t),i=n.length;for(let o=0;o<i;o++)for(let s=0;s<i;s++)o===0&&s===0||o===0&&s===i-1||o===i-1&&s===0||r.push([n[o],n[s]]);return r}});var tE=N(eE=>{var bU=rn().getSymbolSize,KA=7;eE.getPositions=function(t){let r=bU(t);return[[0,0],[r-KA,0],[0,r-KA]]}});var rE=N(Ae=>{Ae.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};var si={N1:3,N2:3,N3:40,N4:10};Ae.isValid=function(t){return t!=null&&t!==""&&!isNaN(t)&&t>=0&&t<=7};Ae.from=function(t){return Ae.isValid(t)?parseInt(t,10):void 0};Ae.getPenaltyN1=function(t){let r=t.size,n=0,i=0,o=0,s=null,a=null;for(let l=0;l<r;l++){i=o=0,s=a=null;for(let u=0;u<r;u++){let c=t.get(l,u);c===s?i++:(i>=5&&(n+=si.N1+(i-5)),s=c,i=1),c=t.get(u,l),c===a?o++:(o>=5&&(n+=si.N1+(o-5)),a=c,o=1)}i>=5&&(n+=si.N1+(i-5)),o>=5&&(n+=si.N1+(o-5))}return n};Ae.getPenaltyN2=function(t){let r=t.size,n=0;for(let i=0;i<r-1;i++)for(let o=0;o<r-1;o++){let s=t.get(i,o)+t.get(i,o+1)+t.get(i+1,o)+t.get(i+1,o+1);(s===4||s===0)&&n++}return n*si.N2};Ae.getPenaltyN3=function(t){let r=t.size,n=0,i=0,o=0;for(let s=0;s<r;s++){i=o=0;for(let a=0;a<r;a++)i=i<<1&2047|t.get(s,a),a>=10&&(i===1488||i===93)&&n++,o=o<<1&2047|t.get(a,s),a>=10&&(o===1488||o===93)&&n++}return n*si.N3};Ae.getPenaltyN4=function(t){let r=0,n=t.data.length;for(let o=0;o<n;o++)r+=t.data[o];return Math.abs(Math.ceil(r*100/n/5)-10)*si.N4};function wU(e,t,r){switch(e){case Ae.Patterns.PATTERN000:return(t+r)%2===0;case Ae.Patterns.PATTERN001:return t%2===0;case Ae.Patterns.PATTERN010:return r%3===0;case Ae.Patterns.PATTERN011:return(t+r)%3===0;case Ae.Patterns.PATTERN100:return(Math.floor(t/2)+Math.floor(r/3))%2===0;case Ae.Patterns.PATTERN101:return t*r%2+t*r%3===0;case Ae.Patterns.PATTERN110:return(t*r%2+t*r%3)%2===0;case Ae.Patterns.PATTERN111:return(t*r%3+(t+r)%2)%2===0;default:throw new Error("bad maskPattern:"+e)}}Ae.applyMask=function(t,r){let n=r.size;for(let i=0;i<n;i++)for(let o=0;o<n;o++)r.isReserved(o,i)||r.xor(o,i,wU(t,o,i))};Ae.getBestMask=function(t,r){let n=Object.keys(Ae.Patterns).length,i=0,o=1/0;for(let s=0;s<n;s++){r(s),Ae.applyMask(s,t);let a=Ae.getPenaltyN1(t)+Ae.getPenaltyN2(t)+Ae.getPenaltyN3(t)+Ae.getPenaltyN4(t);Ae.applyMask(s,t),a<o&&(o=a,i=s)}return i}});var wd=N(bd=>{var nn=uc(),fc=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],pc=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];bd.getBlocksCount=function(t,r){switch(r){case nn.L:return fc[(t-1)*4+0];case nn.M:return fc[(t-1)*4+1];case nn.Q:return fc[(t-1)*4+2];case nn.H:return fc[(t-1)*4+3];default:return}};bd.getTotalCodewordsCount=function(t,r){switch(r){case nn.L:return pc[(t-1)*4+0];case nn.M:return pc[(t-1)*4+1];case nn.Q:return pc[(t-1)*4+2];case nn.H:return pc[(t-1)*4+3];default:return}}});var nE=N(mc=>{var ia=new Uint8Array(512),hc=new Uint8Array(256);(function(){let t=1;for(let r=0;r<255;r++)ia[r]=t,hc[t]=r,t<<=1,t&256&&(t^=285);for(let r=255;r<512;r++)ia[r]=ia[r-255]})();mc.log=function(t){if(t<1)throw new Error("log("+t+")");return hc[t]};mc.exp=function(t){return ia[t]};mc.mul=function(t,r){return t===0||r===0?0:ia[hc[t]+hc[r]]}});var iE=N(oa=>{var vd=nE();oa.mul=function(t,r){let n=new Uint8Array(t.length+r.length-1);for(let i=0;i<t.length;i++)for(let o=0;o<r.length;o++)n[i+o]^=vd.mul(t[i],r[o]);return n};oa.mod=function(t,r){let n=new Uint8Array(t);for(;n.length-r.length>=0;){let i=n[0];for(let s=0;s<r.length;s++)n[s]^=vd.mul(r[s],i);let o=0;for(;o<n.length&&n[o]===0;)o++;n=n.slice(o)}return n};oa.generateECPolynomial=function(t){let r=new Uint8Array([1]);for(let n=0;n<t;n++)r=oa.mul(r,new Uint8Array([1,vd.exp(n)]));return r}});var aE=N((Kle,sE)=>{var oE=iE();function Sd(e){this.genPoly=void 0,this.degree=e,this.degree&&this.initialize(this.degree)}Sd.prototype.initialize=function(t){this.degree=t,this.genPoly=oE.generateECPolynomial(this.degree)};Sd.prototype.encode=function(t){if(!this.genPoly)throw new Error("Encoder not initialized");let r=new Uint8Array(t.length+this.degree);r.set(t);let n=oE.mod(r,this.genPoly),i=this.degree-n.length;if(i>0){let o=new Uint8Array(this.degree);return o.set(n,i),o}return n};sE.exports=Sd});var kd=N(lE=>{lE.isValid=function(t){return!isNaN(t)&&t>=1&&t<=40}});var Ad=N(Tr=>{var uE="[0-9]+",vU="[A-Z $%*+\\-./:]+",sa="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";sa=sa.replace(/u/g,"\\u");var SU="(?:(?![A-Z0-9 $%*+\\-./:]|"+sa+`)(?:.|[\r
|
|
35
|
+
]))+`;Tr.KANJI=new RegExp(sa,"g");Tr.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g");Tr.BYTE=new RegExp(SU,"g");Tr.NUMERIC=new RegExp(uE,"g");Tr.ALPHANUMERIC=new RegExp(vU,"g");var kU=new RegExp("^"+sa+"$"),AU=new RegExp("^"+uE+"$"),EU=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");Tr.testKanji=function(t){return kU.test(t)};Tr.testNumeric=function(t){return AU.test(t)};Tr.testAlphanumeric=function(t){return EU.test(t)}});var on=N(He=>{var CU=kd(),Ed=Ad();He.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]};He.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]};He.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]};He.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]};He.MIXED={bit:-1};He.getCharCountIndicator=function(t,r){if(!t.ccBits)throw new Error("Invalid mode: "+t);if(!CU.isValid(r))throw new Error("Invalid version: "+r);return r>=1&&r<10?t.ccBits[0]:r<27?t.ccBits[1]:t.ccBits[2]};He.getBestModeForData=function(t){return Ed.testNumeric(t)?He.NUMERIC:Ed.testAlphanumeric(t)?He.ALPHANUMERIC:Ed.testKanji(t)?He.KANJI:He.BYTE};He.toString=function(t){if(t&&t.id)return t.id;throw new Error("Invalid mode")};He.isValid=function(t){return t&&t.bit&&t.ccBits};function TU(e){if(typeof e!="string")throw new Error("Param is not a string");switch(e.toLowerCase()){case"numeric":return He.NUMERIC;case"alphanumeric":return He.ALPHANUMERIC;case"kanji":return He.KANJI;case"byte":return He.BYTE;default:throw new Error("Unknown mode: "+e)}}He.from=function(t,r){if(He.isValid(t))return t;try{return TU(t)}catch{return r}}});var mE=N(ai=>{var dc=rn(),_U=wd(),cE=uc(),sn=on(),Cd=kd(),pE=7973,fE=dc.getBCHDigit(pE);function IU(e,t,r){for(let n=1;n<=40;n++)if(t<=ai.getCapacity(n,r,e))return n}function hE(e,t){return sn.getCharCountIndicator(e,t)+4}function OU(e,t){let r=0;return e.forEach(function(n){let i=hE(n.mode,t);r+=i+n.getBitsLength()}),r}function MU(e,t){for(let r=1;r<=40;r++)if(OU(e,r)<=ai.getCapacity(r,t,sn.MIXED))return r}ai.from=function(t,r){return Cd.isValid(t)?parseInt(t,10):r};ai.getCapacity=function(t,r,n){if(!Cd.isValid(t))throw new Error("Invalid QR Code version");typeof n>"u"&&(n=sn.BYTE);let i=dc.getSymbolTotalCodewords(t),o=_U.getTotalCodewordsCount(t,r),s=(i-o)*8;if(n===sn.MIXED)return s;let a=s-hE(n,t);switch(n){case sn.NUMERIC:return Math.floor(a/10*3);case sn.ALPHANUMERIC:return Math.floor(a/11*2);case sn.KANJI:return Math.floor(a/13);case sn.BYTE:default:return Math.floor(a/8)}};ai.getBestVersionForData=function(t,r){let n,i=cE.from(r,cE.M);if(Array.isArray(t)){if(t.length>1)return MU(t,i);if(t.length===0)return 1;n=t[0]}else n=t;return IU(n.mode,n.getLength(),i)};ai.getEncodedBits=function(t){if(!Cd.isValid(t)||t<7)throw new Error("Invalid QR Code version");let r=t<<12;for(;dc.getBCHDigit(r)-fE>=0;)r^=pE<<dc.getBCHDigit(r)-fE;return t<<12|r}});var xE=N(yE=>{var Td=rn(),gE=1335,DU=21522,dE=Td.getBCHDigit(gE);yE.getEncodedBits=function(t,r){let n=t.bit<<3|r,i=n<<10;for(;Td.getBCHDigit(i)-dE>=0;)i^=gE<<Td.getBCHDigit(i)-dE;return(n<<10|i)^DU}});var wE=N((oue,bE)=>{var PU=on();function So(e){this.mode=PU.NUMERIC,this.data=e.toString()}So.getBitsLength=function(t){return 10*Math.floor(t/3)+(t%3?t%3*3+1:0)};So.prototype.getLength=function(){return this.data.length};So.prototype.getBitsLength=function(){return So.getBitsLength(this.data.length)};So.prototype.write=function(t){let r,n,i;for(r=0;r+3<=this.data.length;r+=3)n=this.data.substr(r,3),i=parseInt(n,10),t.put(i,10);let o=this.data.length-r;o>0&&(n=this.data.substr(r),i=parseInt(n,10),t.put(i,o*3+1))};bE.exports=So});var SE=N((sue,vE)=>{var NU=on(),_d=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," ","$","%","*","+","-",".","/",":"];function ko(e){this.mode=NU.ALPHANUMERIC,this.data=e}ko.getBitsLength=function(t){return 11*Math.floor(t/2)+6*(t%2)};ko.prototype.getLength=function(){return this.data.length};ko.prototype.getBitsLength=function(){return ko.getBitsLength(this.data.length)};ko.prototype.write=function(t){let r;for(r=0;r+2<=this.data.length;r+=2){let n=_d.indexOf(this.data[r])*45;n+=_d.indexOf(this.data[r+1]),t.put(n,11)}this.data.length%2&&t.put(_d.indexOf(this.data[r]),6)};vE.exports=ko});var AE=N((aue,kE)=>{var FU=on();function Ao(e){this.mode=FU.BYTE,typeof e=="string"?this.data=new TextEncoder().encode(e):this.data=new Uint8Array(e)}Ao.getBitsLength=function(t){return t*8};Ao.prototype.getLength=function(){return this.data.length};Ao.prototype.getBitsLength=function(){return Ao.getBitsLength(this.data.length)};Ao.prototype.write=function(e){for(let t=0,r=this.data.length;t<r;t++)e.put(this.data[t],8)};kE.exports=Ao});var CE=N((lue,EE)=>{var RU=on(),LU=rn();function Eo(e){this.mode=RU.KANJI,this.data=e}Eo.getBitsLength=function(t){return t*13};Eo.prototype.getLength=function(){return this.data.length};Eo.prototype.getBitsLength=function(){return Eo.getBitsLength(this.data.length)};Eo.prototype.write=function(e){let t;for(t=0;t<this.data.length;t++){let r=LU.toSJIS(this.data[t]);if(r>=33088&&r<=40956)r-=33088;else if(r>=57408&&r<=60351)r-=49472;else throw new Error("Invalid SJIS character: "+this.data[t]+`
|
|
36
|
+
Make sure your charset is UTF-8`);r=(r>>>8&255)*192+(r&255),e.put(r,13)}};EE.exports=Eo});var TE=N((uue,Id)=>{"use strict";var aa={single_source_shortest_paths:function(e,t,r){var n={},i={};i[t]=0;var o=aa.PriorityQueue.make();o.push(t,0);for(var s,a,l,u,c,f,p,h,m;!o.empty();){s=o.pop(),a=s.value,u=s.cost,c=e[a]||{};for(l in c)c.hasOwnProperty(l)&&(f=c[l],p=u+f,h=i[l],m=typeof i[l]>"u",(m||h>p)&&(i[l]=p,o.push(l,p),n[l]=a))}if(typeof r<"u"&&typeof i[r]>"u"){var x=["Could not find a path from ",t," to ",r,"."].join("");throw new Error(x)}return n},extract_shortest_path_from_predecessor_list:function(e,t){for(var r=[],n=t,i;n;)r.push(n),i=e[n],n=e[n];return r.reverse(),r},find_path:function(e,t,r){var n=aa.single_source_shortest_paths(e,t,r);return aa.extract_shortest_path_from_predecessor_list(n,r)},PriorityQueue:{make:function(e){var t=aa.PriorityQueue,r={},n;e=e||{};for(n in t)t.hasOwnProperty(n)&&(r[n]=t[n]);return r.queue=[],r.sorter=e.sorter||t.default_sorter,r},default_sorter:function(e,t){return e.cost-t.cost},push:function(e,t){var r={value:e,cost:t};this.queue.push(r),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return this.queue.length===0}}};typeof Id<"u"&&(Id.exports=aa)});var FE=N(Co=>{var ge=on(),OE=wE(),ME=SE(),DE=AE(),PE=CE(),la=Ad(),gc=rn(),BU=TE();function _E(e){return unescape(encodeURIComponent(e)).length}function ua(e,t,r){let n=[],i;for(;(i=e.exec(r))!==null;)n.push({data:i[0],index:i.index,mode:t,length:i[0].length});return n}function NE(e){let t=ua(la.NUMERIC,ge.NUMERIC,e),r=ua(la.ALPHANUMERIC,ge.ALPHANUMERIC,e),n,i;return gc.isKanjiModeEnabled()?(n=ua(la.BYTE,ge.BYTE,e),i=ua(la.KANJI,ge.KANJI,e)):(n=ua(la.BYTE_KANJI,ge.BYTE,e),i=[]),t.concat(r,n,i).sort(function(s,a){return s.index-a.index}).map(function(s){return{data:s.data,mode:s.mode,length:s.length}})}function Od(e,t){switch(t){case ge.NUMERIC:return OE.getBitsLength(e);case ge.ALPHANUMERIC:return ME.getBitsLength(e);case ge.KANJI:return PE.getBitsLength(e);case ge.BYTE:return DE.getBitsLength(e)}}function $U(e){return e.reduce(function(t,r){let n=t.length-1>=0?t[t.length-1]:null;return n&&n.mode===r.mode?(t[t.length-1].data+=r.data,t):(t.push(r),t)},[])}function UU(e){let t=[];for(let r=0;r<e.length;r++){let n=e[r];switch(n.mode){case ge.NUMERIC:t.push([n,{data:n.data,mode:ge.ALPHANUMERIC,length:n.length},{data:n.data,mode:ge.BYTE,length:n.length}]);break;case ge.ALPHANUMERIC:t.push([n,{data:n.data,mode:ge.BYTE,length:n.length}]);break;case ge.KANJI:t.push([n,{data:n.data,mode:ge.BYTE,length:_E(n.data)}]);break;case ge.BYTE:t.push([{data:n.data,mode:ge.BYTE,length:_E(n.data)}])}}return t}function jU(e,t){let r={},n={start:{}},i=["start"];for(let o=0;o<e.length;o++){let s=e[o],a=[];for(let l=0;l<s.length;l++){let u=s[l],c=""+o+l;a.push(c),r[c]={node:u,lastCount:0},n[c]={};for(let f=0;f<i.length;f++){let p=i[f];r[p]&&r[p].node.mode===u.mode?(n[p][c]=Od(r[p].lastCount+u.length,u.mode)-Od(r[p].lastCount,u.mode),r[p].lastCount+=u.length):(r[p]&&(r[p].lastCount=u.length),n[p][c]=Od(u.length,u.mode)+4+ge.getCharCountIndicator(u.mode,t))}}i=a}for(let o=0;o<i.length;o++)n[i[o]].end=0;return{map:n,table:r}}function IE(e,t){let r,n=ge.getBestModeForData(e);if(r=ge.from(t,n),r!==ge.BYTE&&r.bit<n.bit)throw new Error('"'+e+'" cannot be encoded with mode '+ge.toString(r)+`.
|
|
37
|
+
Suggested mode is: `+ge.toString(n));switch(r===ge.KANJI&&!gc.isKanjiModeEnabled()&&(r=ge.BYTE),r){case ge.NUMERIC:return new OE(e);case ge.ALPHANUMERIC:return new ME(e);case ge.KANJI:return new PE(e);case ge.BYTE:return new DE(e)}}Co.fromArray=function(t){return t.reduce(function(r,n){return typeof n=="string"?r.push(IE(n,null)):n.data&&r.push(IE(n.data,n.mode)),r},[])};Co.fromString=function(t,r){let n=NE(t,gc.isKanjiModeEnabled()),i=UU(n),o=jU(i,r),s=BU.find_path(o.map,"start","end"),a=[];for(let l=1;l<s.length-1;l++)a.push(o.table[s[l]].node);return Co.fromArray($U(a))};Co.rawSplit=function(t){return Co.fromArray(NE(t,gc.isKanjiModeEnabled()))}});var LE=N(RE=>{var xc=rn(),Md=uc(),zU=JA(),qU=ZA(),HU=XA(),WU=tE(),Nd=rE(),Fd=wd(),VU=aE(),yc=mE(),YU=xE(),GU=on(),Dd=FE();function JU(e,t){let r=e.size,n=WU.getPositions(t);for(let i=0;i<n.length;i++){let o=n[i][0],s=n[i][1];for(let a=-1;a<=7;a++)if(!(o+a<=-1||r<=o+a))for(let l=-1;l<=7;l++)s+l<=-1||r<=s+l||(a>=0&&a<=6&&(l===0||l===6)||l>=0&&l<=6&&(a===0||a===6)||a>=2&&a<=4&&l>=2&&l<=4?e.set(o+a,s+l,!0,!0):e.set(o+a,s+l,!1,!0))}}function QU(e){let t=e.size;for(let r=8;r<t-8;r++){let n=r%2===0;e.set(r,6,n,!0),e.set(6,r,n,!0)}}function ZU(e,t){let r=HU.getPositions(t);for(let n=0;n<r.length;n++){let i=r[n][0],o=r[n][1];for(let s=-2;s<=2;s++)for(let a=-2;a<=2;a++)s===-2||s===2||a===-2||a===2||s===0&&a===0?e.set(i+s,o+a,!0,!0):e.set(i+s,o+a,!1,!0)}}function XU(e,t){let r=e.size,n=yc.getEncodedBits(t),i,o,s;for(let a=0;a<18;a++)i=Math.floor(a/3),o=a%3+r-8-3,s=(n>>a&1)===1,e.set(i,o,s,!0),e.set(o,i,s,!0)}function Pd(e,t,r){let n=e.size,i=YU.getEncodedBits(t,r),o,s;for(o=0;o<15;o++)s=(i>>o&1)===1,o<6?e.set(o,8,s,!0):o<8?e.set(o+1,8,s,!0):e.set(n-15+o,8,s,!0),o<8?e.set(8,n-o-1,s,!0):o<9?e.set(8,15-o-1+1,s,!0):e.set(8,15-o-1,s,!0);e.set(n-8,8,1,!0)}function KU(e,t){let r=e.size,n=-1,i=r-1,o=7,s=0;for(let a=r-1;a>0;a-=2)for(a===6&&a--;;){for(let l=0;l<2;l++)if(!e.isReserved(i,a-l)){let u=!1;s<t.length&&(u=(t[s]>>>o&1)===1),e.set(i,a-l,u),o--,o===-1&&(s++,o=7)}if(i+=n,i<0||r<=i){i-=n,n=-n;break}}}function e4(e,t,r){let n=new zU;r.forEach(function(l){n.put(l.mode.bit,4),n.put(l.getLength(),GU.getCharCountIndicator(l.mode,e)),l.write(n)});let i=xc.getSymbolTotalCodewords(e),o=Fd.getTotalCodewordsCount(e,t),s=(i-o)*8;for(n.getLengthInBits()+4<=s&&n.put(0,4);n.getLengthInBits()%8!==0;)n.putBit(0);let a=(s-n.getLengthInBits())/8;for(let l=0;l<a;l++)n.put(l%2?17:236,8);return t4(n,e,t)}function t4(e,t,r){let n=xc.getSymbolTotalCodewords(t),i=Fd.getTotalCodewordsCount(t,r),o=n-i,s=Fd.getBlocksCount(t,r),a=n%s,l=s-a,u=Math.floor(n/s),c=Math.floor(o/s),f=c+1,p=u-c,h=new VU(p),m=0,x=new Array(s),v=new Array(s),w=0,T=new Uint8Array(e.buffer);for(let R=0;R<s;R++){let W=R<l?c:f;x[R]=T.slice(m,m+W),v[R]=h.encode(x[R]),m+=W,w=Math.max(w,W)}let b=new Uint8Array(n),z=0,q,A;for(q=0;q<w;q++)for(A=0;A<s;A++)q<x[A].length&&(b[z++]=x[A][q]);for(q=0;q<p;q++)for(A=0;A<s;A++)b[z++]=v[A][q];return b}function r4(e,t,r,n){let i;if(Array.isArray(e))i=Dd.fromArray(e);else if(typeof e=="string"){let u=t;if(!u){let c=Dd.rawSplit(e);u=yc.getBestVersionForData(c,r)}i=Dd.fromString(e,u||40)}else throw new Error("Invalid data");let o=yc.getBestVersionForData(i,r);if(!o)throw new Error("The amount of data is too big to be stored in a QR Code");if(!t)t=o;else if(t<o)throw new Error(`
|
|
9
38
|
The chosen QR Code version cannot contain this amount of data.
|
|
10
|
-
Minimum version required to store current data is: `+
|
|
11
|
-
`);let s=
|
|
12
|
-
`;return typeof n=="function"&&n(null,
|
|
13
|
-
\f\r]`,
|
|
14
|
-
\f\r"'\`<>=]|("|')|))|$)`,"g"),gl=/'/g,yl=/"/g,wl=/^(?:script|style|textarea|title)$/i,Sl=t=>(e,...r)=>({_$litType$:t,strings:e,values:r}),k=Sl(1),mT=Sl(2),xe=Symbol.for("lit-noChange"),ge=Symbol.for("lit-nothing"),xl=new WeakMap,ir=sr.createTreeWalker(sr,129);function El(t,e){if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return hl!==void 0?hl.createHTML(e):e}var Tl=(t,e)=>{let r=t.length-1,n=[],o,i=e===2?"<svg>":"",s=Vn;for(let a=0;a<r;a++){let u=t[a],c,l,f=-1,h=0;for(;h<u.length&&(s.lastIndex=h,l=s.exec(u),l!==null);)h=s.lastIndex,s===Vn?l[1]==="!--"?s=dl:l[1]!==void 0?s=ml:l[2]!==void 0?(wl.test(l[2])&&(o=RegExp("</"+l[2],"g")),s=or):l[3]!==void 0&&(s=or):s===or?l[0]===">"?(s=o??Vn,f=-1):l[1]===void 0?f=-2:(f=s.lastIndex-l[2].length,c=l[1],s=l[3]===void 0?or:l[3]==='"'?yl:gl):s===yl||s===gl?s=or:s===dl||s===ml?s=Vn:(s=or,o=void 0);let y=s===or&&t[a+1].startsWith("/>")?" ":"";i+=s===Vn?u+Ty:f>=0?(n.push(c),u.slice(0,f)+Qs+u.slice(f)+bt+y):u+bt+(f===-2?a:y)}return[El(t,i+(t[r]||"<?>")+(e===2?"</svg>":"")),n]},Yn=class t{constructor({strings:e,_$litType$:r},n){let o;this.parts=[];let i=0,s=0,a=e.length-1,u=this.parts,[c,l]=Tl(e,r);if(this.el=t.createElement(c,n),ir.currentNode=this.el.content,r===2){let f=this.el.content.firstChild;f.replaceWith(...f.childNodes)}for(;(o=ir.nextNode())!==null&&u.length<a;){if(o.nodeType===1){if(o.hasAttributes())for(let f of o.getAttributeNames())if(f.endsWith(Qs)){let h=l[s++],y=o.getAttribute(f).split(bt),w=/([.?@])?(.*)/.exec(h);u.push({type:1,index:i,name:w[2],strings:y,ctor:w[1]==="."?ti:w[1]==="?"?ri:w[1]==="@"?ni:ur}),o.removeAttribute(f)}else f.startsWith(bt)&&(u.push({type:6,index:i}),o.removeAttribute(f));if(wl.test(o.tagName)){let f=o.textContent.split(bt),h=f.length-1;if(h>0){o.textContent=Ko?Ko.emptyScript:"";for(let y=0;y<h;y++)o.append(f[y],Gn()),ir.nextNode(),u.push({type:2,index:++i});o.append(f[h],Gn())}}}else if(o.nodeType===8)if(o.data===Zs)u.push({type:2,index:i});else{let f=-1;for(;(f=o.data.indexOf(bt,f+1))!==-1;)u.push({type:7,index:i}),f+=bt.length-1}i++}}static createElement(e,r){let n=sr.createElement("template");return n.innerHTML=e,n}};function ar(t,e,r=t,n){if(e===xe)return e;let o=n!==void 0?r._$Co?.[n]:r._$Cl,i=Jn(e)?void 0:e._$litDirective$;return o?.constructor!==i&&(o?._$AO?.(!1),i===void 0?o=void 0:(o=new i(t),o._$AT(t,r,n)),n!==void 0?(r._$Co??=[])[n]=o:r._$Cl=o),o!==void 0&&(e=ar(t,o._$AS(t,e.values),o,n)),e}var ei=class{constructor(e,r){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=r}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){let{el:{content:r},parts:n}=this._$AD,o=(e?.creationScope??sr).importNode(r,!0);ir.currentNode=o;let i=ir.nextNode(),s=0,a=0,u=n[0];for(;u!==void 0;){if(s===u.index){let c;u.type===2?c=new Fr(i,i.nextSibling,this,e):u.type===1?c=new u.ctor(i,u.name,u.strings,this,e):u.type===6&&(c=new oi(i,this,e)),this._$AV.push(c),u=n[++a]}s!==u?.index&&(i=ir.nextNode(),s++)}return ir.currentNode=sr,o}p(e){let r=0;for(let n of this._$AV)n!==void 0&&(n.strings!==void 0?(n._$AI(e,n,r),r+=n.strings.length-2):n._$AI(e[r])),r++}},Fr=class t{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,r,n,o){this.type=2,this._$AH=ge,this._$AN=void 0,this._$AA=e,this._$AB=r,this._$AM=n,this.options=o,this._$Cv=o?.isConnected??!0}get parentNode(){let e=this._$AA.parentNode,r=this._$AM;return r!==void 0&&e?.nodeType===11&&(e=r.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,r=this){e=ar(this,e,r),Jn(e)?e===ge||e==null||e===""?(this._$AH!==ge&&this._$AR(),this._$AH=ge):e!==this._$AH&&e!==xe&&this._(e):e._$litType$!==void 0?this.g(e):e.nodeType!==void 0?this.$(e):vl(e)?this.T(e):this._(e)}k(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}$(e){this._$AH!==e&&(this._$AR(),this._$AH=this.k(e))}_(e){this._$AH!==ge&&Jn(this._$AH)?this._$AA.nextSibling.data=e:this.$(sr.createTextNode(e)),this._$AH=e}g(e){let{values:r,_$litType$:n}=e,o=typeof n=="number"?this._$AC(e):(n.el===void 0&&(n.el=Yn.createElement(El(n.h,n.h[0]),this.options)),n);if(this._$AH?._$AD===o)this._$AH.p(r);else{let i=new ei(o,this),s=i.u(this.options);i.p(r),this.$(s),this._$AH=i}}_$AC(e){let r=xl.get(e.strings);return r===void 0&&xl.set(e.strings,r=new Yn(e)),r}T(e){bl(this._$AH)||(this._$AH=[],this._$AR());let r=this._$AH,n,o=0;for(let i of e)o===r.length?r.push(n=new t(this.k(Gn()),this.k(Gn()),this,this.options)):n=r[o],n._$AI(i),o++;o<r.length&&(this._$AR(n&&n._$AB.nextSibling,o),r.length=o)}_$AR(e=this._$AA.nextSibling,r){for(this._$AP?.(!1,!0,r);e&&e!==this._$AB;){let n=e.nextSibling;e.remove(),e=n}}setConnected(e){this._$AM===void 0&&(this._$Cv=e,this._$AP?.(e))}},ur=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,r,n,o,i){this.type=1,this._$AH=ge,this._$AN=void 0,this.element=e,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=ge}_$AI(e,r=this,n,o){let i=this.strings,s=!1;if(i===void 0)e=ar(this,e,r,0),s=!Jn(e)||e!==this._$AH&&e!==xe,s&&(this._$AH=e);else{let a=e,u,c;for(e=i[0],u=0;u<i.length-1;u++)c=ar(this,a[n+u],r,u),c===xe&&(c=this._$AH[u]),s||=!Jn(c)||c!==this._$AH[u],c===ge?e=ge:e!==ge&&(e+=(c??"")+i[u+1]),this._$AH[u]=c}s&&!o&&this.O(e)}O(e){e===ge?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}},ti=class extends ur{constructor(){super(...arguments),this.type=3}O(e){this.element[this.name]=e===ge?void 0:e}},ri=class extends ur{constructor(){super(...arguments),this.type=4}O(e){this.element.toggleAttribute(this.name,!!e&&e!==ge)}},ni=class extends ur{constructor(e,r,n,o,i){super(e,r,n,o,i),this.type=5}_$AI(e,r=this){if((e=ar(this,e,r,0)??ge)===xe)return;let n=this._$AH,o=e===ge&&n!==ge||e.capture!==n.capture||e.once!==n.once||e.passive!==n.passive,i=e!==ge&&(n===ge||o);o&&this.element.removeEventListener(this.name,this,n),i&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,e):this._$AH.handleEvent(e)}},oi=class{constructor(e,r,n){this.element=e,this.type=6,this._$AN=void 0,this._$AM=r,this.options=n}get _$AU(){return this._$AM._$AU}_$AI(e){ar(this,e)}},_l={j:Qs,P:bt,A:Zs,C:1,M:Tl,L:ei,R:vl,V:ar,D:Fr,I:ur,H:ri,N:ni,U:ti,B:oi},_y=Ys.litHtmlPolyfillSupport;_y?.(Yn,Fr),(Ys.litHtmlVersions??=[]).push("3.1.1");var Qn=(t,e,r)=>{let n=r?.renderBefore??e,o=n._$litPart$;if(o===void 0){let i=r?.renderBefore??null;n._$litPart$=o=new Fr(e.insertBefore(Gn(),i),i,void 0,r??{})}return o._$AI(t),o};var Ut=class extends xt{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){let e=super.createRenderRoot();return this.renderOptions.renderBefore??=e.firstChild,e}update(e){let r=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=Qn(r,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return xe}};Ut._$litElement$=!0,Ut.finalized=!0,globalThis.litElementHydrateSupport?.({LitElement:Ut});var Cy=globalThis.litElementPolyfillSupport;Cy?.({LitElement:Ut});(globalThis.litElementVersions??=[]).push("4.0.3");var Wm=De(si(),1);var de={};X(de,{ObservableIntake:()=>da,Observablemap:()=>ha,rxjs:()=>ro});var Q={};X(Q,{CumulativeDeferred:()=>ui,Deferred:()=>ai,cumulativeDefer:()=>Iy,defer:()=>cr,getFirstTrueOrFalse:()=>Oy,map:()=>$y,rejectedPromise:()=>Py,resolvedPromise:()=>My,timeoutAndContinue:()=>Ny,timeoutWrap:()=>Cl});var ai=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((e,r)=>{this.resolve=n=>{this.status="fulfilled",this.stoppedAt=Date.now(),e(n)},this.reject=n=>{this.status="rejected",this.stoppedAt=Date.now(),r(n)},this.startedAt=Date.now(),this.status="pending"})}},cr=()=>new ai;var ui=class{constructor(){this.accumulatedPromises=[],this.deferred=cr(),this.promise=this.deferred.promise,setTimeout(async()=>{for(;this.accumulatedPromises.length>0;)await this.accumulatedPromises.shift();this.deferred.resolve()},0)}addPromise(e){this.accumulatedPromises.push(e)}},Iy=()=>new ui;var My=t=>Promise.resolve(t),Py=t=>Promise.reject(t),$y=async(t,e)=>{let r=[],n=[];for(let o of t){let i=e(o);r.push(i),i.then(s=>{n.push(s)})}return await Promise.all(r),n},Cl=async(t,e,r=!0)=>new Promise((n,o)=>{setTimeout(()=>{r?o(new Error("timeout")):n(null)},e),t.then(n,o)}),Ny=async(t,e=6e4)=>Cl(t,e,!1),Oy=async t=>{let e=cr();for(let r of t)r.then(n=>{n===!0&&e.resolve(!0)});return Promise.all(t).then(()=>{e.resolve(!1)}),e.promise};var ro={};X(ro,{Observable:()=>le,ReplaySubject:()=>na,Subject:()=>wt,Subscription:()=>ot,from:()=>dr,fromEvent:()=>gr,of:()=>ia,ops:()=>i0});var Xs=function(t,e){return Xs=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])},Xs(t,e)};function Re(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");Xs(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}function Al(t,e,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(l){try{c(n.next(l))}catch(f){s(f)}}function u(l){try{c(n.throw(l))}catch(f){s(f)}}function c(l){l.done?i(l.value):o(l.value).then(a,u)}c((n=n.apply(t,e||[])).next())})}function ci(t,e){var r={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,o,i,s;return s={next:a(0),throw:a(1),return:a(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function a(c){return function(l){return u([c,l])}}function u(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=e.call(t,r)}catch(l){c=[6,l],o=0}finally{n=i=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}function vt(t){var e=typeof Symbol=="function"&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function ze(t,e){var r=typeof Symbol=="function"&&t[Symbol.iterator];if(!r)return t;var n=r.call(t),o,i=[],s;try{for(;(e===void 0||e-- >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 nt(t,e,r){if(r||arguments.length===2)for(var n=0,o=e.length,i;n<o;n++)(i||!(n in e))&&(i||(i=Array.prototype.slice.call(e,0,n)),i[n]=e[n]);return t.concat(i||Array.prototype.slice.call(e))}function lr(t){return this instanceof lr?(this.v=t,this):new lr(t)}function Il(t,e,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=r.apply(t,e||[]),o,i=[];return o={},s("next"),s("throw"),s("return"),o[Symbol.asyncIterator]=function(){return this},o;function s(h){n[h]&&(o[h]=function(y){return new Promise(function(w,A){i.push([h,y,w,A])>1||a(h,y)})})}function a(h,y){try{u(n[h](y))}catch(w){f(i[0][3],w)}}function u(h){h.value instanceof lr?Promise.resolve(h.value.v).then(c,l):f(i[0][2],h)}function c(h){a("next",h)}function l(h){a("throw",h)}function f(h,y){h(y),i.shift(),i.length&&a(i[0][0],i[0][1])}}function Ml(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=t[Symbol.asyncIterator],r;return e?e.call(t):(t=typeof vt=="function"?vt(t):t[Symbol.iterator](),r={},n("next"),n("throw"),n("return"),r[Symbol.asyncIterator]=function(){return this},r);function n(i){r[i]=t[i]&&function(s){return new Promise(function(a,u){s=t[i](s),o(a,u,s.done,s.value)})}}function o(i,s,a,u){Promise.resolve(u).then(function(c){i({value:c,done:a})},s)}}function G(t){return typeof t=="function"}function li(t){var e=function(n){Error.call(n),n.stack=new Error().stack},r=t(e);return r.prototype=Object.create(Error.prototype),r.prototype.constructor=r,r}var fi=li(function(t){return function(r){t(this),this.message=r?r.length+` errors occurred during unsubscription:
|
|
15
|
-
`+r.map(function(n,
|
|
16
|
-
`):"",this.name="UnsubscriptionError",this.errors=r}});function fr(t,e){if(t){var r=t.indexOf(e);0<=r&&t.splice(r,1)}}var ot=function(){function t(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}return t.prototype.unsubscribe=function(){var e,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=vt(s),u=a.next();!u.done;u=a.next()){var c=u.value;c.remove(this)}}catch(A){e={error:A}}finally{try{u&&!u.done&&(r=a.return)&&r.call(a)}finally{if(e)throw e.error}}else s.remove(this);var l=this.initialTeardown;if(G(l))try{l()}catch(A){i=A instanceof fi?A.errors:[A]}var f=this._finalizers;if(f){this._finalizers=null;try{for(var h=vt(f),y=h.next();!y.done;y=h.next()){var w=y.value;try{Pl(w)}catch(A){i=i??[],A instanceof fi?i=nt(nt([],ze(i)),ze(A.errors)):i.push(A)}}}catch(A){n={error:A}}finally{try{y&&!y.done&&(o=h.return)&&o.call(h)}finally{if(n)throw n.error}}}if(i)throw new fi(i)}},t.prototype.add=function(e){var r;if(e&&e!==this)if(this.closed)Pl(e);else{if(e instanceof t){if(e.closed||e._hasParent(this))return;e._addParent(this)}(this._finalizers=(r=this._finalizers)!==null&&r!==void 0?r:[]).push(e)}},t.prototype._hasParent=function(e){var r=this._parentage;return r===e||Array.isArray(r)&&r.includes(e)},t.prototype._addParent=function(e){var r=this._parentage;this._parentage=Array.isArray(r)?(r.push(e),r):r?[r,e]:e},t.prototype._removeParent=function(e){var r=this._parentage;r===e?this._parentage=null:Array.isArray(r)&&fr(r,e)},t.prototype.remove=function(e){var r=this._finalizers;r&&fr(r,e),e instanceof t&&e._removeParent(this)},t.EMPTY=function(){var e=new t;return e.closed=!0,e}(),t}();var Ks=ot.EMPTY;function pi(t){return t instanceof ot||t&&"closed"in t&&G(t.remove)&&G(t.add)&&G(t.unsubscribe)}function Pl(t){G(t)?t():t.unsubscribe()}var it={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};var Ur={setTimeout:function(t,e){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var o=Ur.delegate;return o?.setTimeout?o.setTimeout.apply(o,nt([t,e],ze(r))):setTimeout.apply(void 0,nt([t,e],ze(r)))},clearTimeout:function(t){var e=Ur.delegate;return(e?.clearTimeout||clearTimeout)(t)},delegate:void 0};function hi(t){Ur.setTimeout(function(){var e=it.onUnhandledError;if(e)e(t);else throw t})}function pr(){}var $l=function(){return ea("C",void 0,void 0)}();function Nl(t){return ea("E",void 0,t)}function Ol(t){return ea("N",t,void 0)}function ea(t,e,r){return{kind:t,value:e,error:r}}var hr=null;function Lr(t){if(it.useDeprecatedSynchronousErrorHandling){var e=!hr;if(e&&(hr={errorThrown:!1,error:null}),t(),e){var r=hr,n=r.errorThrown,o=r.error;if(hr=null,n)throw o}}else t()}function Dl(t){it.useDeprecatedSynchronousErrorHandling&&hr&&(hr.errorThrown=!0,hr.error=t)}var Zn=function(t){Re(e,t);function e(r){var n=t.call(this)||this;return n.isStopped=!1,r?(n.destination=r,pi(r)&&r.add(n)):n.destination=Uy,n}return e.create=function(r,n,o){return new mi(r,n,o)},e.prototype.next=function(r){this.isStopped?ra(Ol(r),this):this._next(r)},e.prototype.error=function(r){this.isStopped?ra(Nl(r),this):(this.isStopped=!0,this._error(r))},e.prototype.complete=function(){this.isStopped?ra($l,this):(this.isStopped=!0,this._complete())},e.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,t.prototype.unsubscribe.call(this),this.destination=null)},e.prototype._next=function(r){this.destination.next(r)},e.prototype._error=function(r){try{this.destination.error(r)}finally{this.unsubscribe()}},e.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},e}(ot);var By=Function.prototype.bind;function ta(t,e){return By.call(t,e)}var Ry=function(){function t(e){this.partialObserver=e}return t.prototype.next=function(e){var r=this.partialObserver;if(r.next)try{r.next(e)}catch(n){di(n)}},t.prototype.error=function(e){var r=this.partialObserver;if(r.error)try{r.error(e)}catch(n){di(n)}else di(e)},t.prototype.complete=function(){var e=this.partialObserver;if(e.complete)try{e.complete()}catch(r){di(r)}},t}(),mi=function(t){Re(e,t);function e(r,n,o){var i=t.call(this)||this,s;if(G(r)||!r)s={next:r??void 0,error:n??void 0,complete:o??void 0};else{var a;i&&it.useDeprecatedNextContext?(a=Object.create(r),a.unsubscribe=function(){return i.unsubscribe()},s={next:r.next&&ta(r.next,a),error:r.error&&ta(r.error,a),complete:r.complete&&ta(r.complete,a)}):s=r}return i.destination=new Ry(s),i}return e}(Zn);function di(t){it.useDeprecatedSynchronousErrorHandling?Dl(t):hi(t)}function Fy(t){throw t}function ra(t,e){var r=it.onStoppedNotification;r&&Ur.setTimeout(function(){return r(t,e)})}var Uy={closed:!0,next:pr,error:Fy,complete:pr};var kr=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function gi(t){return t}function Bl(t){return t.length===0?gi:t.length===1?t[0]:function(r){return t.reduce(function(n,o){return o(n)},r)}}var le=function(){function t(e){e&&(this._subscribe=e)}return t.prototype.lift=function(e){var r=new t;return r.source=this,r.operator=e,r},t.prototype.subscribe=function(e,r,n){var o=this,i=ky(e)?e:new mi(e,r,n);return Lr(function(){var s=o,a=s.operator,u=s.source;i.add(a?a.call(i,u):u?o._subscribe(i):o._trySubscribe(i))}),i},t.prototype._trySubscribe=function(e){try{return this._subscribe(e)}catch(r){e.error(r)}},t.prototype.forEach=function(e,r){var n=this;return r=Rl(r),new r(function(o,i){var s=new mi({next:function(a){try{e(a)}catch(u){i(u),s.unsubscribe()}},error:i,complete:o});n.subscribe(s)})},t.prototype._subscribe=function(e){var r;return(r=this.source)===null||r===void 0?void 0:r.subscribe(e)},t.prototype[kr]=function(){return this},t.prototype.pipe=function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return Bl(e)(this)},t.prototype.toPromise=function(e){var r=this;return e=Rl(e),new e(function(n,o){var i;r.subscribe(function(s){return i=s},function(s){return o(s)},function(){return n(i)})})},t.create=function(e){return new t(e)},t}();function Rl(t){var e;return(e=t??it.Promise)!==null&&e!==void 0?e:Promise}function Ly(t){return t&&G(t.next)&&G(t.error)&&G(t.complete)}function ky(t){return t&&t instanceof Zn||Ly(t)&&pi(t)}function jy(t){return G(t?.lift)}function be(t){return function(e){if(jy(e))return e.lift(function(r){try{return t(r,this)}catch(n){this.error(n)}});throw new TypeError("Unable to lift unknown Observable type")}}function Te(t,e,r,n,o){return new qy(t,e,r,n,o)}var qy=function(t){Re(e,t);function e(r,n,o,i,s,a){var u=t.call(this,r)||this;return u.onFinalize=s,u.shouldUnsubscribe=a,u._next=n?function(c){try{n(c)}catch(l){r.error(l)}}:t.prototype._next,u._error=i?function(c){try{i(c)}catch(l){r.error(l)}finally{this.unsubscribe()}}:t.prototype._error,u._complete=o?function(){try{o()}catch(c){r.error(c)}finally{this.unsubscribe()}}:t.prototype._complete,u}return e.prototype.unsubscribe=function(){var r;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){var n=this.closed;t.prototype.unsubscribe.call(this),!n&&((r=this.onFinalize)===null||r===void 0||r.call(this))}},e}(Zn);var Fl=li(function(t){return function(){t(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}});var wt=function(t){Re(e,t);function e(){var r=t.call(this)||this;return r.closed=!1,r.currentObservers=null,r.observers=[],r.isStopped=!1,r.hasError=!1,r.thrownError=null,r}return e.prototype.lift=function(r){var n=new Ul(this,this);return n.operator=r,n},e.prototype._throwIfClosed=function(){if(this.closed)throw new Fl},e.prototype.next=function(r){var n=this;Lr(function(){var o,i;if(n._throwIfClosed(),!n.isStopped){n.currentObservers||(n.currentObservers=Array.from(n.observers));try{for(var s=vt(n.currentObservers),a=s.next();!a.done;a=s.next()){var u=a.value;u.next(r)}}catch(c){o={error:c}}finally{try{a&&!a.done&&(i=s.return)&&i.call(s)}finally{if(o)throw o.error}}}})},e.prototype.error=function(r){var n=this;Lr(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)}})},e.prototype.complete=function(){var r=this;Lr(function(){if(r._throwIfClosed(),!r.isStopped){r.isStopped=!0;for(var n=r.observers;n.length;)n.shift().complete()}})},e.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(e.prototype,"observed",{get:function(){var r;return((r=this.observers)===null||r===void 0?void 0:r.length)>0},enumerable:!1,configurable:!0}),e.prototype._trySubscribe=function(r){return this._throwIfClosed(),t.prototype._trySubscribe.call(this,r)},e.prototype._subscribe=function(r){return this._throwIfClosed(),this._checkFinalizedStatuses(r),this._innerSubscribe(r)},e.prototype._innerSubscribe=function(r){var n=this,o=this,i=o.hasError,s=o.isStopped,a=o.observers;return i||s?Ks:(this.currentObservers=null,a.push(r),new ot(function(){n.currentObservers=null,fr(a,r)}))},e.prototype._checkFinalizedStatuses=function(r){var n=this,o=n.hasError,i=n.thrownError,s=n.isStopped;o?r.error(i):s&&r.complete()},e.prototype.asObservable=function(){var r=new le;return r.source=this,r},e.create=function(r,n){return new Ul(r,n)},e}(le);var Ul=function(t){Re(e,t);function e(r,n){var o=t.call(this)||this;return o.destination=r,o.source=n,o}return e.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)},e.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)},e.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)},e.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:Ks},e}(wt);var Xn={now:function(){return(Xn.delegate||Date).now()},delegate:void 0};var na=function(t){Re(e,t);function e(r,n,o){r===void 0&&(r=1/0),n===void 0&&(n=1/0),o===void 0&&(o=Xn);var i=t.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 e.prototype.next=function(r){var n=this,o=n.isStopped,i=n._buffer,s=n._infiniteTimeWindow,a=n._timestampProvider,u=n._windowTime;o||(i.push(r),!s&&i.push(a.now()+u)),this._trimBuffer(),t.prototype.next.call(this,r)},e.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(),u=0;u<a.length&&!r.closed;u+=i?1:2)r.next(a[u]);return this._checkFinalizedStatuses(r),n},e.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 u=o.now(),c=0,l=1;l<i.length&&i[l]<=u;l+=2)c=l;c&&i.splice(0,c+1)}},e}(wt);var Ll=function(t){Re(e,t);function e(r,n){return t.call(this)||this}return e.prototype.schedule=function(r,n){return n===void 0&&(n=0),this},e}(ot);var Kn={setInterval:function(t,e){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var o=Kn.delegate;return o?.setInterval?o.setInterval.apply(o,nt([t,e],ze(r))):setInterval.apply(void 0,nt([t,e],ze(r)))},clearInterval:function(t){var e=Kn.delegate;return(e?.clearInterval||clearInterval)(t)},delegate:void 0};var kl=function(t){Re(e,t);function e(r,n){var o=t.call(this,r,n)||this;return o.scheduler=r,o.work=n,o.pending=!1,o}return e.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},e.prototype.requestAsyncId=function(r,n,o){return o===void 0&&(o=0),Kn.setInterval(r.flush.bind(r,this),o)},e.prototype.recycleAsyncId=function(r,n,o){if(o===void 0&&(o=0),o!=null&&this.delay===o&&this.pending===!1)return n;n!=null&&Kn.clearInterval(n)},e.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))},e.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},e.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,fr(i,this),n!=null&&(this.id=this.recycleAsyncId(o,n,null)),this.delay=null,t.prototype.unsubscribe.call(this)}},e}(Ll);var oa=function(){function t(e,r){r===void 0&&(r=t.now),this.schedulerActionCtor=e,this.now=r}return t.prototype.schedule=function(e,r,n){return r===void 0&&(r=0),new this.schedulerActionCtor(this,e).schedule(n,r)},t.now=Xn.now,t}();var jl=function(t){Re(e,t);function e(r,n){n===void 0&&(n=oa.now);var o=t.call(this,r,n)||this;return o.actions=[],o._active=!1,o}return e.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}},e}(oa);var eo=new jl(kl),ql=eo;function yi(t){return t&&G(t.schedule)}function Wy(t){return t[t.length-1]}function jr(t){return yi(Wy(t))?t.pop():void 0}var qr=function(t){return t&&typeof t.length=="number"&&typeof t!="function"};function xi(t){return G(t?.then)}function bi(t){return G(t[kr])}function vi(t){return Symbol.asyncIterator&&G(t?.[Symbol.asyncIterator])}function wi(t){return new TypeError("You provided "+(t!==null&&typeof t=="object"?"an invalid object":"'"+t+"'")+" where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.")}function Hy(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var Si=Hy();function Ei(t){return G(t?.[Si])}function Ti(t){return Il(this,arguments,function(){var r,n,o,i;return ci(this,function(s){switch(s.label){case 0:r=t.getReader(),s.label=1;case 1:s.trys.push([1,,9,10]),s.label=2;case 2:return[4,lr(r.read())];case 3:return n=s.sent(),o=n.value,i=n.done,i?[4,lr(void 0)]:[3,5];case 4:return[2,s.sent()];case 5:return[4,lr(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 _i(t){return G(t?.getReader)}function Me(t){if(t instanceof le)return t;if(t!=null){if(bi(t))return zy(t);if(qr(t))return Vy(t);if(xi(t))return Gy(t);if(vi(t))return Wl(t);if(Ei(t))return Jy(t);if(_i(t))return Yy(t)}throw wi(t)}function zy(t){return new le(function(e){var r=t[kr]();if(G(r.subscribe))return r.subscribe(e);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function Vy(t){return new le(function(e){for(var r=0;r<t.length&&!e.closed;r++)e.next(t[r]);e.complete()})}function Gy(t){return new le(function(e){t.then(function(r){e.closed||(e.next(r),e.complete())},function(r){return e.error(r)}).then(null,hi)})}function Jy(t){return new le(function(e){var r,n;try{for(var o=vt(t),i=o.next();!i.done;i=o.next()){var s=i.value;if(e.next(s),e.closed)return}}catch(a){r={error:a}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}e.complete()})}function Wl(t){return new le(function(e){Qy(t,e).catch(function(r){return e.error(r)})})}function Yy(t){return Wl(Ti(t))}function Qy(t,e){var r,n,o,i;return Al(this,void 0,void 0,function(){var s,a;return ci(this,function(u){switch(u.label){case 0:u.trys.push([0,5,6,11]),r=Ml(t),u.label=1;case 1:return[4,r.next()];case 2:if(n=u.sent(),!!n.done)return[3,4];if(s=n.value,e.next(s),e.closed)return[2];u.label=3;case 3:return[3,1];case 4:return[3,11];case 5:return a=u.sent(),o={error:a},[3,11];case 6:return u.trys.push([6,,9,10]),n&&!n.done&&(i=r.return)?[4,i.call(r)]:[3,8];case 7:u.sent(),u.label=8;case 8:return[3,10];case 9:if(o)throw o.error;return[7];case 10:return[7];case 11:return e.complete(),[2]}})})}function Ge(t,e,r,n,o){n===void 0&&(n=0),o===void 0&&(o=!1);var i=e.schedule(function(){r(),o?t.add(this.schedule(null,n)):this.unsubscribe()},n);if(t.add(i),!o)return i}function Ci(t,e){return e===void 0&&(e=0),be(function(r,n){r.subscribe(Te(n,function(o){return Ge(n,t,function(){return n.next(o)},e)},function(){return Ge(n,t,function(){return n.complete()},e)},function(o){return Ge(n,t,function(){return n.error(o)},e)}))})}function Ai(t,e){return e===void 0&&(e=0),be(function(r,n){n.add(t.schedule(function(){return r.subscribe(n)},e))})}function Hl(t,e){return Me(t).pipe(Ai(e),Ci(e))}function zl(t,e){return Me(t).pipe(Ai(e),Ci(e))}function Vl(t,e){return new le(function(r){var n=0;return e.schedule(function(){n===t.length?r.complete():(r.next(t[n++]),r.closed||this.schedule())})})}function Gl(t,e){return new le(function(r){var n;return Ge(r,e,function(){n=t[Si](),Ge(r,e,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 G(n?.return)&&n.return()}})}function Ii(t,e){if(!t)throw new Error("Iterable cannot be null");return new le(function(r){Ge(r,e,function(){var n=t[Symbol.asyncIterator]();Ge(r,e,function(){n.next().then(function(o){o.done?r.complete():r.next(o.value)})},0,!0)})})}function Jl(t,e){return Ii(Ti(t),e)}function Yl(t,e){if(t!=null){if(bi(t))return Hl(t,e);if(qr(t))return Vl(t,e);if(xi(t))return zl(t,e);if(vi(t))return Ii(t,e);if(Ei(t))return Gl(t,e);if(_i(t))return Jl(t,e)}throw wi(t)}function dr(t,e){return e?Yl(t,e):Me(t)}function ia(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var r=jr(t);return dr(t,r)}function Ql(t){return t instanceof Date&&!isNaN(t)}function mr(t,e){return be(function(r,n){var o=0;r.subscribe(Te(n,function(i){n.next(t.call(e,i,o++))}))})}var Zy=Array.isArray;function Xy(t,e){return Zy(e)?t.apply(void 0,nt([],ze(e))):t(e)}function Zl(t){return mr(function(e){return Xy(t,e)})}function Xl(t,e,r,n,o,i,s,a){var u=[],c=0,l=0,f=!1,h=function(){f&&!u.length&&!c&&e.complete()},y=function(A){return c<n?w(A):u.push(A)},w=function(A){i&&e.next(A),c++;var O=!1;Me(r(A,l++)).subscribe(Te(e,function(_){o?.(_),i?y(_):e.next(_)},function(){O=!0},void 0,function(){if(O)try{c--;for(var _=function(){var I=u.shift();s?Ge(e,s,function(){return w(I)}):w(I)};u.length&&c<n;)_();h()}catch(I){e.error(I)}}))};return t.subscribe(Te(e,y,function(){f=!0,h()})),function(){a?.()}}function to(t,e,r){return r===void 0&&(r=1/0),G(e)?to(function(n,o){return mr(function(i,s){return e(n,i,o,s)})(Me(t(n,o)))},r):(typeof e=="number"&&(r=e),be(function(n,o){return Xl(n,o,t,r)}))}function Kl(t){return t===void 0&&(t=1/0),to(gi,t)}function ef(){return Kl(1)}function sa(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return ef()(dr(t,jr(t)))}var Ky=["addListener","removeListener"],e0=["addEventListener","removeEventListener"],t0=["on","off"];function gr(t,e,r,n){if(G(r)&&(n=r,r=void 0),n)return gr(t,e,r).pipe(Zl(n));var o=ze(o0(t)?e0.map(function(a){return function(u){return t[a](e,u,r)}}):r0(t)?Ky.map(tf(t,e)):n0(t)?t0.map(tf(t,e)):[],2),i=o[0],s=o[1];if(!i&&qr(t))return to(function(a){return gr(a,e,r)})(Me(t));if(!i)throw new TypeError("Invalid event target");return new le(function(a){var u=function(){for(var c=[],l=0;l<arguments.length;l++)c[l]=arguments[l];return a.next(1<c.length?c:c[0])};return i(u),function(){return s(u)}})}function tf(t,e){return function(r){return function(n){return t[r](e,n)}}}function r0(t){return G(t.addListener)&&G(t.removeListener)}function n0(t){return G(t.on)&&G(t.off)}function o0(t){return G(t.addEventListener)&&G(t.removeEventListener)}function rf(t,e,r){t===void 0&&(t=0),r===void 0&&(r=ql);var n=-1;return e!=null&&(yi(e)?r=e:n=e),new le(function(o){var i=Ql(t)?+t-r.now():t;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 aa(t,e){return be(function(r,n){var o=0;r.subscribe(Te(n,function(i){return t.call(e,i,o++)&&n.next(i)}))})}function ua(t){return be(function(e,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)}};e.subscribe(Te(r,function(a){i?.unsubscribe(),n=!0,o=a,i=Te(r,s,pr),Me(t(a)).subscribe(i)},function(){s(),r.complete()},void 0,function(){o=i=null}))})}function ca(t,e){return e===void 0&&(e=eo),be(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 u(){var c=s+t,l=e.now();if(l<c){o=this.schedule(void 0,c-l),n.add(o);return}a()}r.subscribe(Te(n,function(c){i=c,s=e.now(),o||(o=e.schedule(u,t),n.add(o))},function(){a(),n.complete()},void 0,function(){i=o=null}))})}function la(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var r=jr(t);return be(function(n,o){(r?sa(t,n,r):sa(t,n)).subscribe(o)})}function fa(t){return be(function(e,r){Me(t).subscribe(Te(r,function(){return r.complete()},pr)),!r.closed&&e.subscribe(r)})}function nf(t,e){return be(function(r,n){var o=e??{},i=o.leading,s=i===void 0?!0:i,a=o.trailing,u=a===void 0?!1:a,c=!1,l=null,f=null,h=!1,y=function(){f?.unsubscribe(),f=null,u&&(O(),h&&n.complete())},w=function(){f=null,h&&n.complete()},A=function(_){return f=Me(t(_)).subscribe(Te(n,y,w))},O=function(){if(c){c=!1;var _=l;l=null,n.next(_),!h&&A(_)}};r.subscribe(Te(n,function(_){c=!0,l=_,!(f&&!f.closed)&&(s?O():A(_))},function(){h=!0,!(u&&c&&f&&!f.closed)&&n.complete()}))})}function pa(t,e,r){e===void 0&&(e=eo);var n=rf(t,e);return nf(function(){return n},r)}var i0={debounce:ua,debounceTime:ca,map:mr,startWith:la,takeUntil:fa,throttleTime:pa,filter:aa};var ha=class{constructor(){this.observableEventEmitterBundleArray=new Array,this.observableEventTargetBundleArray=new Array}getSubjectForEmitterEvent(e,r){let n=this.observableEventEmitterBundleArray.find(o=>o.eventRef===e&&o.event===r);if(n)return n.subject;{let o=gr(e,r),i=new wt;o.subscribe(i);let s={subject:i,eventRef:e,event:r};return this.observableEventEmitterBundleArray.push(s),s.subject}}getSubjectForEventTarget(e,r){let n=this.observableEventTargetBundleArray.find(o=>o.eventRef===e&&o.event===r);if(n)return n.subject;{let i={subject:new wt,eventRef:e,event:r};return this.observableEventTargetBundleArray.push(i),i.subject}}};var da=class{constructor(){this.observableFunctions={next:e=>{},complete:e=>{}},this.generator=null,this.buffered=!1,this.payloadBuffer=[],this.observable=new le(e=>{this.observableFunctions.next=(...r)=>e.next(r),this.observableFunctions.complete=()=>(this.completedDeffered.resolve(),e.complete())}),this.completedDeffered=Q.defer(),this.completed=this.completedDeffered.promise}setObservable(e){this.observable=e}push(e){this.buffered?this.payloadBuffer.push(e):this.internalPush(e)}pushMany(e){for(let r of e)this.push(r)}setGenerator(e){this.generator=e}makeBuffered(){this.buffered=!0}subscribe(...e){return this.observable.subscribe(...e)}request(e){if(e!==0)for(let r=0;r!==e;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(e){this.observableFunctions.next(e)}};var s0={attribute:!0,type:String,converter:zn,reflect:!1,hasChanged:Xo},a0=(t=s0,e,r)=>{let{kind:n,metadata:o}=r,i=globalThis.litPropertyMetadata.get(o);if(i===void 0&&globalThis.litPropertyMetadata.set(o,i=new Map),i.set(r.name,t),n==="accessor"){let{name:s}=r;return{set(a){let u=e.get.call(this);e.set.call(this,a),this.requestUpdate(s,u,t)},init(a){return a!==void 0&&this.C(s,void 0,t),a}}}if(n==="setter"){let{name:s}=r;return function(a){let u=this[s];e.call(this,a),this.requestUpdate(s,u,t)}}throw Error("Unsupported decorator location: "+n)};function J(t){return(e,r)=>typeof r=="object"?a0(t,e,r):((n,o,i)=>{let s=o.hasOwnProperty(i);return o.constructor.createProperty(i,s?{...n,wrapped:!0}:n),s?Object.getOwnPropertyDescriptor(o,i):void 0})(t,e,r)}var Oe={};X(Oe,{DomTools:()=>he,TypedRequest:()=>Io,breakpoints:()=>$t,css:()=>Rc,elementBasic:()=>Ce,plugins:()=>sE});var Ce={};X(Ce,{setup:()=>oE,staticStyles:()=>rE,styles:()=>nE});var gs={};X(gs,{DeesComms:()=>bc});var se={};X(se,{Timeout:()=>Mi,delayFor:()=>of,delayForRandom:()=>u0});var of=async(t,e,r=!1)=>(await new Mi(t,null,r).promise,e),u0=async(t,e,r,n=!1)=>(await of(Math.random()*(e-t)+t,null,n),r),Mi=class{constructor(e,r,n=!1){this._cancelled=!1,this.timeoutInMillis=e,this._deferred=cr(),this.promise=this._deferred.promise,this._timeout=setTimeout(()=>{this._cancelled||this._deferred.resolve(r)},e),this.started=Date.now(),n&&this.makeUnrefed()}makeUnrefed(){this._timeout.unref()}cancel(){this._cancelled=!0,clearTimeout(this._timeout)}getTimeLeft(){let e=this.started+this.timeoutInMillis-Date.now();return e>0?e:0}};var Xe={};X(Xe,{TypedHandler:()=>fc,TypedRequest:()=>Io,TypedResponseError:()=>Cr,TypedRouter:()=>pc,TypedTarget:()=>hc});var fm=De(si(),1);var ct={};X(ct,{AsyncExecutionStack:()=>Da,BackpressuredArray:()=>Ba,FastMap:()=>yr,Interest:()=>so,InterestMap:()=>Ra,LimitedArray:()=>Fa,LoopTracker:()=>Ua,ObjectMap:()=>Tt,Stringmap:()=>ao,TimedAggregtor:()=>La,Tree:()=>ka,uni:()=>_f});var $i={};X($i,{SmartMatch:()=>ya});var Pi={};X(Pi,{isMatch:()=>f0,matcher:()=>l0});function ma(t){if(typeof t!="string")throw new TypeError("Expected a string");return t.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}var ga=new Map,sf=(t,e)=>{if(!Array.isArray(t))switch(typeof t){case"string":t=[t];break;case"undefined":t=[];break;default:throw new TypeError(`Expected '${e}' to be a string or an array, but got a type of '${typeof t}'`)}return t.filter(r=>{if(typeof r!="string"){if(typeof r>"u")return!1;throw new TypeError(`Expected '${e}' to be an array of strings, but found a type of '${typeof r}' in the array`)}return!0})},c0=(t,e)=>{e={caseSensitive:!1,...e};let r=t+JSON.stringify(e);if(ga.has(r))return ga.get(r);let n=t[0]==="!";n&&(t=t.slice(1)),t=ma(t).replace(/\\\*/g,"[\\s\\S]*");let o=new RegExp(`^${t}$`,e.caseSensitive?"":"i");return o.negated=n,ga.set(r,o),o},af=(t,e,r,n)=>{if(t=sf(t,"inputs"),e=sf(e,"patterns"),e.length===0)return[];e=e.map(s=>c0(s,r));let{allPatterns:o}=r||{},i=[];for(let s of t){let a,u=[...e].fill(!1);for(let[c,l]of e.entries())if(l.test(s)&&(u[c]=!0,a=!l.negated,!a))break;if(!(a===!1||a===void 0&&e.some(c=>!c.negated)||o&&u.some((c,l)=>!c&&!e[l].negated))&&(i.push(s),n))break}return i};function l0(t,e,r){return af(t,e,r,!1)}function f0(t,e,r){return af(t,e,r,!0).length>0}var ya=class{constructor(e){this.wildcard=e}match(e){return Pi.isMatch(e,this.wildcard)}};var Et={};X(Et,{CronJob:()=>io,CronManager:()=>Aa,ExtendedDate:()=>Ia,HrtMeasurement:()=>Ma,Interval:()=>Pa,TimeStamp:()=>zr,Timer:()=>$a,getMilliSecondsAsHumanReadableString:()=>Ca,getMilliSecondsFromUnits:()=>_a,units:()=>Lt});function ke(t,e,r,n,o,i,s,a){return ke.fromTZ(ke.tp(t,e,r,n,o,i,s),a)}ke.fromTZISO=(t,e,r)=>ke.fromTZ(h0(t,e),r);ke.fromTZ=function(t,e){let r=new Date(Date.UTC(t.y,t.m-1,t.d,t.h,t.i,t.s)),n=xa(t.tz,r),o=new Date(r.getTime()-n),i=xa(t.tz,o);if(i-n===0)return o;{let s=new Date(r.getTime()-i),a=xa(t.tz,s);if(a-i===0)return s;if(!e&&a-i>0)return s;if(e)throw new Error("Invalid date passed to fromTZ()");return o}};ke.toTZ=function(t,e){let r=t.toLocaleString("en-US",{timeZone:e}).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:e}};ke.tp=(t,e,r,n,o,i,s)=>({y:t,m:e,d:r,h:n,i:o,s:i,tz:s});function xa(t,e=new Date){let r=e.toLocaleString("en-US",{timeZone:t,timeZoneName:"short"}).split(" ").slice(-1)[0],n=e.toLocaleString("en-US").replace(/[\u202f]/," ");return Date.parse(`${n} GMT`)-Date.parse(`${n} ${r}`)}function h0(t,e){let r=new Date(Date.parse(t));if(isNaN(r))throw new Error("minitz: Invalid ISO8601 passed to parser.");let n=t.substring(9);return t.includes("Z")||n.includes("-")||n.includes("+")?ke.tp(r.getUTCFullYear(),r.getUTCMonth()+1,r.getUTCDate(),r.getUTCHours(),r.getUTCMinutes(),r.getUTCSeconds(),"Etc/UTC"):ke.tp(r.getFullYear(),r.getMonth()+1,r.getDate(),r.getHours(),r.getMinutes(),r.getSeconds(),e)}ke.minitz=ke;function d0(t){if(t===void 0&&(t={}),delete t.name,t.legacyMode=t.legacyMode===void 0?!0:t.legacyMode,t.paused=t.paused===void 0?!1:t.paused,t.maxRuns=t.maxRuns===void 0?1/0:t.maxRuns,t.catch=t.catch===void 0?!1:t.catch,t.interval=t.interval===void 0?0:parseInt(t.interval,10),t.utcOffset=t.utcOffset===void 0?void 0:parseInt(t.utcOffset,10),t.unref=t.unref===void 0?!1:t.unref,t.startAt&&(t.startAt=new _e(t.startAt,t.timezone)),t.stopAt&&(t.stopAt=new _e(t.stopAt,t.timezone)),t.interval!==null){if(isNaN(t.interval))throw new Error("CronOptions: Supplied value for interval is not a number");if(t.interval<0)throw new Error("CronOptions: Supplied value for interval can not be negative")}if(t.utcOffset!==void 0){if(isNaN(t.utcOffset))throw new Error("CronOptions: Invalid value passed for utcOffset, should be number representing minutes offset from UTC.");if(t.utcOffset<-870||t.utcOffset>870)throw new Error("CronOptions: utcOffset out of bounds.");if(t.utcOffset!==void 0&&t.timezone)throw new Error("CronOptions: Combining 'utcOffset' with 'timezone' is not allowed.")}if(t.unref!==!0&&t.unref!==!1)throw new Error("CronOptions: Unref should be either true, false or undefined(false).");return t}var ba=32,no=31|ba,cf=[1,2,4,16,16];function je(t,e){this.pattern=t,this.timezone=e,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()}je.prototype.parse=function(){if(!(typeof this.pattern=="string"||this.pattern.constructor===String))throw new TypeError("CronPattern: Pattern has to be of type string.");this.pattern.indexOf("@")>=0&&(this.pattern=this.handleNicknames(this.pattern).trim());let t=this.pattern.replace(/\s+/g," ").split(" ");if(t.length<5||t.length>6)throw new TypeError("CronPattern: invalid configuration format ('"+this.pattern+"'), exacly five or six space separated parts required.");if(t.length===5&&t.unshift("0"),t[3].indexOf("L")>=0&&(t[3]=t[3].replace("L",""),this.lastDayOfMonth=!0),t[3]=="*"&&(this.starDOM=!0),t[4].length>=3&&(t[4]=this.replaceAlphaMonths(t[4])),t[5].length>=3&&(t[5]=this.replaceAlphaDays(t[5])),t[5]=="*"&&(this.starDOW=!0),this.pattern.indexOf("?")>=0){let e=new _e(new Date,this.timezone).getDate(!0);t[0]=t[0].replace("?",e.getSeconds()),t[1]=t[1].replace("?",e.getMinutes()),t[2]=t[2].replace("?",e.getHours()),this.starDOM||(t[3]=t[3].replace("?",e.getDate())),t[4]=t[4].replace("?",e.getMonth()+1),this.starDOW||(t[5]=t[5].replace("?",e.getDay()))}this.throwAtIllegalCharacters(t),this.partToArray("second",t[0],0,1),this.partToArray("minute",t[1],0,1),this.partToArray("hour",t[2],0,1),this.partToArray("day",t[3],-1,1),this.partToArray("month",t[4],-1,1),this.partToArray("dayOfWeek",t[5],0,no),this.dayOfWeek[7]&&(this.dayOfWeek[0]=this.dayOfWeek[7])};je.prototype.partToArray=function(t,e,r,n){let o=this[t],i=t==="day"&&this.lastDayOfMonth;if(e===""&&!i)throw new TypeError("CronPattern: configuration entry "+t+" ("+e+") is empty, check for trailing spaces.");if(e==="*")return o.fill(n);let s=e.split(",");if(s.length>1)for(let a=0;a<s.length;a++)this.partToArray(t,s[a],r,n);else e.indexOf("-")!==-1&&e.indexOf("/")!==-1?this.handleRangeWithStepping(e,t,r,n):e.indexOf("-")!==-1?this.handleRange(e,t,r,n):e.indexOf("/")!==-1?this.handleStepping(e,t,r,n):e!==""&&this.handleNumber(e,t,r,n)};je.prototype.throwAtIllegalCharacters=function(t){for(let e=0;e<t.length;e++)if((e===5?/[^/*0-9,\-#L]+/:/[^/*0-9,-]+/).test(t[e]))throw new TypeError("CronPattern: configuration entry "+e+" ("+t[e]+") contains illegal characters.")};je.prototype.handleNumber=function(t,e,r,n){let o=this.extractNth(t,e),i=parseInt(o[0],10)+r;if(isNaN(i))throw new TypeError("CronPattern: "+e+" is not a number: '"+t+"'");this.setPart(e,i,o[1]||n)};je.prototype.setPart=function(t,e,r){if(!Object.prototype.hasOwnProperty.call(this,t))throw new TypeError("CronPattern: Invalid part specified: "+t);if(t==="dayOfWeek"){if(e===7&&(e=0),(e<0||e>6)&&e!=="L")throw new RangeError("CronPattern: Invalid value for dayOfWeek: "+e);this.setNthWeekdayOfMonth(e,r);return}if(t==="second"||t==="minute"){if(e<0||e>=60)throw new RangeError("CronPattern: Invalid value for "+t+": "+e)}else if(t==="hour"){if(e<0||e>=24)throw new RangeError("CronPattern: Invalid value for "+t+": "+e)}else if(t==="day"){if(e<0||e>=31)throw new RangeError("CronPattern: Invalid value for "+t+": "+e)}else if(t==="month"&&(e<0||e>=12))throw new RangeError("CronPattern: Invalid value for "+t+": "+e);this[t][e]=r};je.prototype.handleRangeWithStepping=function(t,e,r,n){let o=this.extractNth(t,e),i=o[0].match(/^(\d+)-(\d+)\/(\d+)$/);if(i===null)throw new TypeError("CronPattern: Syntax error, illegal range with stepping: '"+t+"'");let[,s,a,u]=i;if(s=parseInt(s,10)+r,a=parseInt(a,10)+r,u=parseInt(u,10),isNaN(s))throw new TypeError("CronPattern: Syntax error, illegal lower range (NaN)");if(isNaN(a))throw new TypeError("CronPattern: Syntax error, illegal upper range (NaN)");if(isNaN(u))throw new TypeError("CronPattern: Syntax error, illegal stepping: (NaN)");if(u===0)throw new TypeError("CronPattern: Syntax error, illegal stepping: 0");if(u>this[e].length)throw new TypeError("CronPattern: Syntax error, steps cannot be greater than maximum value of part ("+this[e].length+")");if(s>a)throw new TypeError("CronPattern: From value is larger than to value: '"+t+"'");for(let c=s;c<=a;c+=u)this.setPart(e,c,o[1]||n)};je.prototype.extractNth=function(t,e){let r=t,n;if(r.includes("#")){if(e!=="dayOfWeek")throw new Error("CronPattern: nth (#) only allowed in day-of-week field");n=r.split("#")[1],r=r.split("#")[0]}return[r,n]};je.prototype.handleRange=function(t,e,r,n){let o=this.extractNth(t,e),i=o[0].split("-");if(i.length!==2)throw new TypeError("CronPattern: Syntax error, illegal range: '"+t+"'");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: '"+t+"'");for(let u=s;u<=a;u++)this.setPart(e,u,o[1]||n)};je.prototype.handleStepping=function(t,e,r,n){let o=this.extractNth(t,e),i=o[0].split("/");if(i.length!==2)throw new TypeError("CronPattern: Syntax error, illegal stepping: '"+t+"'");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[e].length)throw new TypeError("CronPattern: Syntax error, max steps for part is ("+this[e].length+")");for(let u=s;u<this[e].length;u+=a)this.setPart(e,u,o[1]||n)};je.prototype.replaceAlphaDays=function(t){return t.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")};je.prototype.replaceAlphaMonths=function(t){return t.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")};je.prototype.handleNicknames=function(t){let e=t.trim().toLowerCase();return e==="@yearly"||e==="@annually"?"0 0 1 1 *":e==="@monthly"?"0 0 1 * *":e==="@weekly"?"0 0 * * 0":e==="@daily"?"0 0 * * *":e==="@hourly"?"0 * * * *":t};je.prototype.setNthWeekdayOfMonth=function(t,e){if(e==="L")this.dayOfWeek[t]=this.dayOfWeek[t]|ba;else if(e<6&&e>0)this.dayOfWeek[t]=this.dayOfWeek[t]|cf[e-1];else if(e===no)this.dayOfWeek[t]=no;else throw new TypeError(`CronPattern: nth weekday of of range, should be 1-5 or L. Value: ${e}`)};var lf=[31,28,31,30,31,30,31,31,30,31,30,31],St=[["month","year",0],["day","month",-1],["hour","day",0],["minute","hour",0],["second","minute",0]];function _e(t,e){if(this.tz=e,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 _e)this.fromCronDate(t);else throw new TypeError("CronDate: Invalid type ("+typeof t+") passed to CronDate constructor")}_e.prototype.isNthWeekdayOfMonth=function(t,e,r,n){let i=new Date(Date.UTC(t,e,r)).getUTCDay(),s=0;for(let a=1;a<=r;a++)new Date(Date.UTC(t,e,a)).getUTCDay()===i&&s++;if(n&no&&cf[s-1]&n)return!0;if(n&ba){let a=new Date(Date.UTC(t,e+1,0)).getUTCDate();for(let u=r+1;u<=a;u++)if(new Date(Date.UTC(t,e,u)).getUTCDay()===i)return!1;return!0}return!1};_e.prototype.fromDate=function(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 e=ke.toTZ(t,this.tz);this.ms=t.getMilliseconds(),this.second=e.s,this.minute=e.i,this.hour=e.h,this.day=e.d,this.month=e.m-1,this.year=e.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()};_e.prototype.fromCronDate=function(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};_e.prototype.apply=function(){if(this.month>11||this.day>lf[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};_e.prototype.fromString=function(t){return this.fromDate(ke.fromTZISO(t,this.tz))};_e.prototype.findNext=function(t,e,r,n){let o=this[e],i;r.lastDayOfMonth&&(this.month!==1?i=lf[this.month]:i=new Date(Date.UTC(this.year,this.month+1,0,0,0,0,0)).getUTCDate());let s=!r.starDOW&&e=="day"?new Date(Date.UTC(this.year,this.month,1,0,0,0,0)).getUTCDay():void 0;for(let a=this[e]+n;a<r[e].length;a++){let u=r[e][a];if(e==="day"&&r.lastDayOfMonth&&a-n==i&&(u=!0),e==="day"&&!r.starDOW){let c=r.dayOfWeek[(s+(a-n-1))%7];if(c&&c&no)c=this.isNthWeekdayOfMonth(this.year,this.month,a-n,c);else if(c)throw new Error(`CronDate: Invalid value for dayOfWeek encountered. ${c}`);t.legacyMode&&!r.starDOM?u=u||c:u=u&&c}if(u)return this[e]=a-n,o!==this[e]?2:1}return 3};_e.prototype.recurse=function(t,e,r){let n=this.findNext(e,St[r][0],t,St[r][2]);if(n>1){let o=r+1;for(;o<St.length;)this[St[o][0]]=-St[o][2],o++;if(n===3)return this[St[r][1]]++,this[St[r][0]]=-St[r][2],this.apply(),this.recurse(t,e,0);if(this.apply())return this.recurse(t,e,r-1)}return r+=1,r>=St.length?this:this.year>=3e3?null:this.recurse(t,e,r)};_e.prototype.increment=function(t,e,r){return this.second+=e.interval>1&&r?e.interval:1,this.ms=0,this.apply(),this.recurse(t,e,0)};_e.prototype.getDate=function(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)):ke(this.year,this.month+1,this.day,this.hour,this.minute,this.second,this.tz)};_e.prototype.getTime=function(){return this.getDate().getTime()};function Ni(t){return Object.prototype.toString.call(t)==="[object Function]"||typeof t=="function"||t instanceof Function}function m0(t){typeof Deno<"u"&&typeof Deno.unrefTimer<"u"?Deno.unrefTimer(t):t&&typeof t.unref<"u"&&t.unref()}var uf=30*1e3,oo=[];function fe(t,e,r){if(!(this instanceof fe))return new fe(t,e,r);let n,o;if(Ni(e))o=e;else if(typeof e=="object")n=e;else if(e!==void 0)throw new Error("Cron: Invalid argument passed for optionsIn. Should be one of function, or object (options).");if(Ni(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?n.name:void 0,this.options=d0(n),this._states={kill:!1,blocking:!1,previousRun:void 0,currentRun:void 0,once:void 0,currentTimeout:void 0,maxRuns:n?n.maxRuns:void 0,paused:n?n.paused:!1,pattern:void 0},t&&(t instanceof Date||typeof t=="string"&&t.indexOf(":")>0)?this._states.once=new _e(t,this.options.timezone||this.options.utcOffset):this._states.pattern=new je(t,this.options.timezone),this.name){if(oo.find(s=>s.name===this.name))throw new Error("Cron: Tried to initialize new named job '"+this.name+"', but name already taken.");oo.push(this)}return o!==void 0&&(this.fn=o,this.schedule()),this}fe.prototype.nextRun=function(t){let e=this._next(t);return e?e.getDate():null};fe.prototype.nextRuns=function(t,e){t>this._states.maxRuns&&(t=this._states.maxRuns);let r=[],n=e||this._states.currentRun;for(;t--&&(n=this.nextRun(n));)r.push(n);return r};fe.prototype.getPattern=function(){return this._states.pattern?this._states.pattern.pattern:void 0};fe.prototype.isRunning=function(){let t=this.nextRun(this._states.currentRun),e=!this._states.paused,r=this.fn!==void 0,n=!this._states.kill;return e&&r&&n&&t!==null};fe.prototype.isStopped=function(){return this._states.kill};fe.prototype.isBusy=function(){return this._states.blocking};fe.prototype.currentRun=function(){return this._states.currentRun?this._states.currentRun.getDate():null};fe.prototype.previousRun=function(){return this._states.previousRun?this._states.previousRun.getDate():null};fe.prototype.msToNext=function(t){t=t||new Date;let e=this._next(t);return e?e.getTime()-t.getTime():null};fe.prototype.stop=function(){this._states.kill=!0,this._states.currentTimeout&&clearTimeout(this._states.currentTimeout);let t=oo.indexOf(this);t>=0&&oo.splice(t,1)};fe.prototype.pause=function(){return this._states.paused=!0,!this._states.kill};fe.prototype.resume=function(){return this._states.paused=!1,!this._states.kill};fe.prototype.schedule=function(t){if(t&&this.fn)throw new Error("Cron: It is not allowed to schedule two functions using the same Croner instance.");t&&(this.fn=t);let e=this.msToNext(),r=this.nextRun(this._states.currentRun);return e===null||r===null?this:(e>uf&&(e=uf),this._states.currentTimeout=setTimeout(()=>this._checkTrigger(r),e),this._states.currentTimeout&&this.options.unref&&m0(this._states.currentTimeout),this)};fe.prototype._trigger=async function(t){if(this._states.blocking=!0,this._states.currentRun=new _e(void 0,this.options.timezone||this.options.utcOffset),this.options.catch)try{await this.fn(this,this.options.context)}catch(e){Ni(this.options.catch)&&this.options.catch(e,this)}else await this.fn(this,this.options.context);this._states.previousRun=new _e(t,this.options.timezone||this.options.utcOffset),this._states.blocking=!1};fe.prototype.trigger=async function(){await this._trigger()};fe.prototype._checkTrigger=function(t){let e=new Date,r=!this._states.paused&&e.getTime()>=t,n=this._states.blocking&&this.options.protect;r&&!n?(this._states.maxRuns--,this._trigger()):r&&n&&Ni(this.options.protect)&&setTimeout(()=>this.options.protect(this),0),this.schedule()};fe.prototype._next=function(t){let e=!!(t||this._states.currentRun);t=new _e(t,this.options.timezone||this.options.utcOffset),this.options.startAt&&t&&t.getTime()<this.options.startAt.getTime()&&(t=this.options.startAt);let r=this._states.once||new _e(t,this.options.timezone||this.options.utcOffset).increment(this._states.pattern,this.options,e);return this._states.once&&this._states.once.getTime()<=t.getTime()||r===null||this._states.maxRuns<=0||this._states.kill||this.options.stopAt&&r.getTime()>=this.options.stopAt.getTime()?null:r};fe.Cron=fe;fe.scheduledJobs=oo;var Wr=De(ff(),1),hf=De(pf(),1);function Ta(t){if(typeof t!="number")throw new TypeError("Expected a number");let e=t>0?Math.floor:Math.ceil;return{days:e(t/864e5),hours:e(t/36e5)%24,minutes:e(t/6e4)%60,seconds:e(t/1e3)%60,milliseconds:e(t)%1e3,microseconds:e(t*1e3)%1e3,nanoseconds:e(t*1e6)%1e3}}var g0=(t,e)=>e===1?t:`${t}s`,y0=1e-7;function Oi(t,e={}){if(!Number.isFinite(t))throw new TypeError("Expected a finite number");e.colonNotation&&(e.compact=!1,e.formatSubMilliseconds=!1,e.separateMilliseconds=!1,e.verbose=!1),e.compact&&(e.secondsDecimalDigits=0,e.millisecondsDecimalDigits=0);let r=[],n=(s,a)=>{let u=Math.floor(s*10**a+y0);return(Math.round(u)/10**a).toFixed(a)},o=(s,a,u,c)=>{if((r.length===0||!e.colonNotation)&&s===0&&!(e.colonNotation&&u==="m"))return;c=(c||s||"0").toString();let l,f;if(e.colonNotation){l=r.length>0?":":"",f="";let h=c.includes(".")?c.split(".")[0].length:c.length,y=r.length>0?2:1;c="0".repeat(Math.max(0,y-h))+c}else l="",f=e.verbose?" "+g0(a,s):u;r.push(l+c+f)},i=Ta(t);if(o(Math.trunc(i.days/365),"year","y"),o(i.days%365,"day","d"),o(i.hours,"hour","h"),o(i.minutes,"minute","m"),e.separateMilliseconds||e.formatSubMilliseconds||!e.colonNotation&&t<1e3)if(o(i.seconds,"second","s"),e.formatSubMilliseconds)o(i.milliseconds,"millisecond","ms"),o(i.microseconds,"microsecond","\xB5s"),o(i.nanoseconds,"nanosecond","ns");else{let s=i.milliseconds+i.microseconds/1e3+i.nanoseconds/1e6,a=typeof e.millisecondsDecimalDigits=="number"?e.millisecondsDecimalDigits:0,u=s>=1?Math.round(s):Math.ceil(s),c=a?s.toFixed(a):u;o(Number.parseFloat(c),"millisecond","ms",c)}else{let s=t/1e3%60,a=typeof e.secondsDecimalDigits=="number"?e.secondsDecimalDigits:1,u=n(s,a),c=e.keepDecimalsOnWholeSeconds?u:u.replace(/\.0+$/,"");o(Number.parseFloat(c),"second","s",c)}if(r.length===0)return"0"+(e.verbose?" milliseconds":"ms");if(e.compact)return r[0];if(typeof e.unitCount=="number"){let s=e.colonNotation?"":" ";return r.slice(0,Math.max(e.unitCount,1)).join(s)}return e.colonNotation?r.join(""):r.join(" ")}Wr.default.extend(hf.default);var io=class{constructor(e,r,n){this.status="initial",this.nextExecutionUnix=0,this.cronExpression=r,this.jobFunction=n,this.cronParser=fe(r)}checkExecution(){if(this.nextExecutionUnix===0&&this.getNextExecutionTime(),Date.now()>this.nextExecutionUnix){let e=this.jobFunction(this.nextExecutionUnix);e instanceof Promise&&e.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 Lt={years:(t=1)=>t*3154e7,months:(t=1)=>t*2628e6,weeks:(t=1)=>t*6048e5,days:(t=1)=>t*864e5,hours:(t=1)=>t*36e5,minutes:(t=1)=>t*6e4,seconds:(t=1)=>t*1e3},_a=t=>{let e=0,r=n=>{e=e+n};return t.years&&r(Lt.years(t.years)),t.months&&r(Lt.months(t.months)),t.weeks&&r(Lt.weeks(t.weeks)),t.days&&r(Lt.days(t.days)),t.hours&&r(Lt.hours(t.hours)),t.minutes&&r(Lt.minutes(t.minutes)),t.seconds&&r(Lt.seconds(t.seconds)),e},Ca=t=>Oi(t);var Aa=class{constructor(){this.status="stopped",this.cronjobs=new ct.ObjectMap}addCronjob(e,r){let n=new io(this,e,r);return this.cronjobs.add(n),this.status==="started"&&n.start(),n}removeCronjob(e){e.stop(),this.cronjobs.remove(e)}start(){if(this.status!=="started"){this.status="started";for(let e of this.cronjobs.getArray())e.start();this.runCronCycle()}}async runCronCycle(){this.executionTimeout=new se.Timeout(0);do{let e;for(let r of this.cronjobs.getArray())r.checkExecution(),(!e||r.getTimeToNextExecution()<e.getTimeToNextExecution())&&(e=r);e?(this.executionTimeout=new se.Timeout(e.getTimeToNextExecution()),console.log(`Next CronJob scheduled in ${Ca(this.executionTimeout.getTimeLeft())}`)):(this.executionTimeout=new se.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 e of this.cronjobs.getArray())e.stop()}};var Ia=class t extends Date{static fromMillis(e){return new t(e)}static fromDate(e){return new t(e.getTime())}static fromEuropeanDate(e){let r=/(.*)\.(.*)\.(.*)/.exec(e),o=new Date(parseFloat(r[3]),parseFloat(r[2])-1,parseFloat(r[1])).getTime();return new t(o)}static fromHyphedDate(e){let r=new Date(e).getTime();return new t(r)}static fromEuropeanDateAndTime(e,r="12:00:00",n="Europe/Berlin"){let o=/(.*)\.(.*)\.(.*)/.exec(e),i=c=>`0${c}`.slice(-2),s=`${o[3]}-${i(o[2])}-${i(o[1])}T${r}`,u=Wr.default(s).toDate().getTime();return new t(u)}constructor(e=Date.now()){super(e)}exportToEuropeanDate(){let e=this.exportToUnits();return`${e.dayString}.${e.monthString}.${e.yearString}`}exportToHyphedSortableDate(){let e=this.exportToUnits();return`${e.yearString}-${e.monthString}-${e.dayString}`}exportToUnits(){let e=["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:e[this.getMonth()],day:this.getDate(),dayString:("0"+this.getDate()).slice(-2),dayOfTheWeek:this.getDay(),dayOfTheWeekName:r[this.getDay()]}}format(e){return Wr.default(this.getTime()).format(e)}isToday(){return Wr.default(this.getTime()).isToday()}lessTimePassedToNow(e){let r=_a(e);return Date.now()-this.getTime()<r}moreTimePassedToNow(e){return!this.lessTimePassedToNow(e)}};var Ma=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 Pa=class{constructor(e){this.status="initial",this.statusAuthorization=null,this.intervalJobs=[],this.intervalMilliseconds=e}start(){this.status="started";let e=new Date;this.statusAuthorization=e,(async()=>{for(;this.status==="started"&&this.statusAuthorization===e;)await se.delayFor(this.intervalMilliseconds),this.executeIntervalJobs()})()}stop(){this.status="stopped",this.statusAuthorization=null}addIntervalJob(e){this.intervalJobs.push(e)}executeIntervalJobs(){for(let e of this.intervalJobs)e()}};var zr=class t{static fromMilliSeconds(e){return new t(e)}static fromTimeStamp(e){let r=new t;return r.change=r.milliSeconds-e.milliSeconds,r}constructor(e){this.change=null,e?typeof e=="number"&&(this.date=new Date(e)):this.date=new Date,this.milliSeconds=this.date.getTime(),this.epochtime=Math.floor(this.milliSeconds/1e3)}isOlderThanOtherTimeStamp(e,r=0){return this.milliSeconds<e.milliSeconds-r}isOlderThan(e,r=0){return this.milliSeconds+r<e.milliSeconds}isYoungerThanOtherTimeStamp(e,r=0){return this.milliSeconds>e.milliSeconds+r}isYoungerThanMilliSeconds(e){let n=new t().epochtime-e,o=new t(n);return this.isYoungerThanOtherTimeStamp(o)}};var $a=class{get timeLeft(){return this.timeInMilliseconds-this.pausedAt.change}constructor(e){this.state="initiated",this.completedDeferred=Q.defer(),this.timeInMilliseconds=e,this.completed=this.completedDeferred.promise}start(){if(!this.startedAt)this.currentTimeout=setTimeout(()=>{this.completedDeferred.resolve()},this.timeInMilliseconds),this.startedAt=new zr;else throw new Error("timer has been started before. Please use resume instead")}pause(){this.startedAt&&(clearTimeout(this.currentTimeout),this.currentTimeout=null,this.pausedAt=zr.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 Oa=De(Tf(),1);var Da=class{constructor(){this.executionSlots=[],this.isProcessing=!1}async getExclusiveExecutionSlot(e,r){let n=Q.defer(),o={funcToExecute:e,executionDeferred:n,timeout:r,mode:"exclusive"};return this.executionSlots.push(o),this.processExecutionSlots(),n.promise}async getNonExclusiveExecutionSlot(e,r){let n=Q.defer(),o={funcToExecute:e,executionDeferred:n,timeout:r,mode:"nonexclusive"};return this.executionSlots.push(o),this.processExecutionSlots(),n.promise}async processExecutionSlots(){if(!this.isProcessing){for(this.isProcessing=!0;this.executionSlots.length>0;){let e=this.executionSlots[0];if(e.mode==="exclusive")await this.executeExclusiveSlot(e),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(e){try{if(e.timeout){let r=await Promise.race([e.funcToExecute(),se.delayFor(e.timeout).then(()=>{throw new Error("Timeout reached")})]);e.executionDeferred.resolve(r)}else{let r=await e.funcToExecute();e.executionDeferred.resolve(r)}}catch(r){e.executionDeferred.reject(r)}}async executeNonExclusiveSlots(e){let r=e.map(async n=>{try{if(n.timeout){let o=await Promise.race([n.funcToExecute(),se.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)}});await Promise.all(r)}};var Ba=class{constructor(e=16){this.hasSpace=new de.rxjs.Subject,this.itemsAvailable=new de.rxjs.Subject,this.data=[],this.highWaterMark=e}push(e){this.data.push(e),this.itemsAvailable.next("itemsAvailable");let r=this.checkSpaceAvailable();return r&&this.hasSpace.next("hasSpace"),r}shift(){let e=this.data.shift();return this.checkSpaceAvailable()&&this.hasSpace.next("hasSpace"),e}checkSpaceAvailable(){return this.data.length<this.highWaterMark}waitForSpace(){return new Promise(e=>{if(this.checkSpaceAvailable())e();else{let r=this.hasSpace.subscribe(()=>{r.unsubscribe(),e()})}})}waitForItems(){return new Promise(e=>{if(this.data.length>0)e();else{let r=this.itemsAvailable.subscribe(()=>{r.unsubscribe(),e()})}})}};var yr=class t{constructor(){this.mapObject={}}isUniqueKey(e){return!this.mapObject[e]}addToMap(e,r,n){return this.isUniqueKey(e)||n&&n.force?(this.mapObject[e]=r,!0):!1}getByKey(e){return this.mapObject[e]}removeFromMap(e){let r=this.getByKey(e);return delete this.mapObject[e],r}getKeys(){let e=[];for(let r in this.mapObject)this.mapObject[r]&&e.push(r);return e}clean(){this.mapObject={}}concat(e){let r=new t;for(let n of this.getKeys())r.addToMap(n,this.getByKey(n));for(let n of e.getKeys())r.addToMap(n,e.getByKey(n),{force:!0});return r}addAllFromOther(e){for(let r of e.getKeys())this.addToMap(r,e.getByKey(r),{force:!0})}async find(e){for(let r of this.getKeys()){let n=this.getByKey(r);if(await e(n))return n}}};var _f=(t="uni")=>`${t}xxxxxxxxxxx`.replace(/[xy]/g,e=>{let r=Math.random()*16|0;return(e==="x"?r:r&3|8).toString(16)}),Tt=class t{constructor(){this.fastMap=new yr,this.eventSubject=new de.rxjs.Subject}addMappedUnique(e,r){this.fastMap.addToMap(e,r)}getMappedUnique(e){return this.fastMap.getByKey(e)}removeMappedUnique(e){let r=this.getMappedUnique(e)}add(e){for(let n of this.fastMap.getKeys())if(this.fastMap.getByKey(n)===e)return n;let r=_f("key");return this.addMappedUnique(r,e),this.eventSubject.next({operation:"add",payload:e}),r}addArray(e){for(let r of e)this.add(r)}checkForObject(e){return!!this.getKeyForObject(e)}getKeyForObject(e){let r=null;for(let n of this.fastMap.getKeys())if(!r&&this.fastMap.getByKey(n)===e)r=n;else continue;return r}async find(e){return this.fastMap.find(e)}findSync(e){for(let r of this.fastMap.getKeys())if(e(this.fastMap.getByKey(r)))return this.getMappedUnique(r)}async findOneAndRemove(e){let r=await this.find(e);return r&&this.remove(r),r}findOneAndRemoveSync(e){let r=this.findSync(e);return r&&this.remove(r),r}async forEach(e){for(let r of this.fastMap.getKeys())await e(this.fastMap.getByKey(r))}getOneAndRemove(){let e=this.fastMap.getKeys();if(e.length===0)return null;{let r=e[0],n=this.fastMap.removeFromMap(r);return this.eventSubject.next({operation:"remove",payload:n}),n}}getArray(){let e=[];for(let r of this.fastMap.getKeys())e.push(this.fastMap.getByKey(r));return e}isEmpty(){return this.fastMap.getKeys().length===0}remove(e){if(this.checkForObject(e)){let r=this.getKeyForObject(e),n=this.fastMap.removeFromMap(r);return this.eventSubject.next({operation:"remove",payload:n}),n}return null}wipe(){for(let e of this.fastMap.getKeys())this.fastMap.removeFromMap(e)}concat(e){let r=new t;return r.fastMap.addAllFromOther(this.fastMap),r.fastMap.addAllFromOther(e.fastMap),r}addAllFromOther(e){this.fastMap.addAllFromOther(e.fastMap)}};var so=class{get comparisonString(){return this.comparisonFunc(this.originalInterest)}fullfillInterest(e){this.isFullfilled=!0,this.fullfillmentStore=[],this.interestDeferred.resolve(e)}constructor(e,r,n,o){this.destructionTimer=new Et.Timer(1e4),this.isFullfilled=!1,this.fullfillmentStore=[],this.interestDeferred=new Q.Deferred,this.interestFullfilled=this.interestDeferred.promise,this.interestMapRef=e,this.originalInterest=r,this.comparisonFunc=n,this.options=o,this.destructionTimer.completed.then(()=>{this.destroy()}),this.options?.markLostAfterDefault&&se.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 Ra=class{constructor(e,r={}){this.interestObjectMap=new Tt,this.interestObservable=new de.ObservableIntake,this.comparisonFunc=e,this.options=r}async addInterest(e,r){let n=this.comparisonFunc(e),o,i=new so(this,e,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(e){let r=this.interestObjectMap.findOneAndRemoveSync(n=>e.comparisonString===n.comparisonString)}checkInterest(e){let r=this.comparisonFunc(e);return this.checkInterestByString(r)}checkInterestByString(e){return!!this.interestObjectMap.findSync(n=>n.comparisonString===e)}informLostInterest(e){let r=this.findInterest(e);r&&r.markLost()}findInterest(e){let r=this.comparisonFunc(e);return this.interestObjectMap.findSync(o=>o.comparisonString===r)}};var Fa=class{constructor(e){this.array=[],this.arrayLimit=e}addOne(e){this.array.unshift(e),this.array.length>this.arrayLimit&&(this.array.length=this.arrayLimit)}addMany(e){for(let r of e)this.addOne(r)}setLimit(e){this.arrayLimit=e,this.array.length>this.arrayLimit&&(this.array.length=this.arrayLimit)}getAverage(){if(typeof this.array[0]=="number"){let e=0;for(let r of this.array)e=e+r;return e/this.array.length}else return null}};var Ua=class{constructor(){this.referenceObjectMap=new Tt}checkAndTrack(e){return this.referenceObjectMap.checkForObject(e)?!1:(this.referenceObjectMap.add(e),!0)}};var ao=class{constructor(){this._stringArray=[],this._triggerUntilTrueFunctionArray=[]}addString(e){this._stringArray.push(e),this.notifyTrigger()}addStringArray(e){for(let r of e)this.addString(r)}removeString(e){for(let r in this._stringArray)this._stringArray[r]===e&&this._stringArray.splice(parseInt(r),1);this.notifyTrigger()}wipe(){this._stringArray=[],this.notifyTrigger()}checkString(e){return this._stringArray.indexOf(e)!==-1}checkMinimatch(e){let r=new $i.SmartMatch(e),n=!1;for(let o of this._stringArray)r.match(o)&&(n=!0);return n}checkIsEmpty(){return this._stringArray.length===0}getStringArray(){let e=[];for(let r of this._stringArray)e.push(r);return e}registerUntilTrue(e,r){let n=Q.defer();return this._triggerUntilTrueFunctionArray.push(()=>{let o=e(this.getStringArray());return o===!0&&(r&&r(),n.resolve()),o}),this.notifyTrigger(),n.promise}notifyTrigger(){let e=this._triggerUntilTrueFunctionArray.filter(r=>!r());this._triggerUntilTrueFunctionArray=e}};var La=class{constructor(e){this.storageArray=[],this.options=e}checkAggregationStatus(){let e=()=>{this.aggregationTimer=new Et.Timer(this.options.aggregationIntervalInMillis),this.aggregationTimer.completed.then(()=>{let r=this.storageArray;if(r.length===0){this.aggregationTimer=null;return}this.storageArray=[],e(),this.options.functionForAggregation(r)}),this.aggregationTimer.start()};this.aggregationTimer||e()}add(e){this.storageArray.push(e),this.checkAggregationStatus()}};var ka=class{constructor(){this.symbolTree=new Oa.default}initialize(e){return this.symbolTree.initialize(e)}hasChildren(e){return this.symbolTree.hasChildren(e)}firstChild(e){return this.symbolTree.firstChild(e)}lastChild(e){return this.symbolTree.lastChild(e)}previousSibling(e){return this.symbolTree.previousSibling(e)}nextSibling(e){return this.symbolTree.nextSibling(e)}parent(e){return this.symbolTree.parent(e)}lastInclusiveDescendant(e){return this.symbolTree.lastInclusiveDescendant(e)}preceding(e,r){return this.symbolTree.preceding(e,r)}following(e,r){return this.symbolTree.following(e,r)}childrenToArray(e,r){return this.symbolTree.childrenToArray(e,r)}ancestorsToArray(e,r){return this.symbolTree.ancestorsToArray(e,r)}treeToArray(e,r){return this.symbolTree.treeToArray(e,r)}childrenIterator(e,r){return this.symbolTree.childrenIterator(e,r)}previousSiblingsIterator(e){return this.symbolTree.previousSiblingsIterator(e)}nextSiblingsIterator(e){return this.symbolTree.nextSiblingsIterator()}ancestorsIterator(e){this.symbolTree.ancestorsIterator()}treeIterator(e,r){return this.symbolTree.treeIterator(e)}index(e){return this.symbolTree.index(e)}childrenCount(e){return this.symbolTree.childrenCount(e)}compareTreePosition(e,r){return this.compareTreePosition(e,r)}remove(e){return this.symbolTree.remove(e)}insertBefore(e,r){return this.symbolTree.insertBefore(e,r)}insertAfter(e,r){return this.symbolTree.insertAfter(e,r)}prependChild(e,r){return this.symbolTree.prependChild(e,r)}appendChild(e,r){return this.symbolTree.appendChild(e,r)}toJsonWithHierachy(e){let r=this.treeIterator(e,{});for(let n of r)console.log(n)}fromJsonWithHierachy(e){}};var Ao={};X(Ao,{WebRequest:()=>lc});var Gr={};X(Gr,{Smartenv:()=>uo});var uo=class{constructor(){this.loadedScripts=[]}async getEnvAwareModule(e){if(this.isNode)return await this.getSafeNodeModule(e.nodeModuleName);if(this.isBrowser)return await this.getSafeWebModule(e.webUrlArg,e.getFunction);console.error("platform for loading not supported by smartenv")}async getSafeNodeModule(e,r){if(!this.isNode){console.error(`You tried to load a node module in a wrong context: ${e}`);return}let n=await new Function(`return import('${e}')`)();return r&&await r(n),n}async getSafeWebModule(e,r){if(!this.isBrowser){console.error("You tried to load a web module in a wrong context");return}if(this.loadedScripts.includes(e))return r();this.loadedScripts.push(e);let n=Q.defer();if(globalThis.importScripts)globalThis.importScripts(e),n.resolve();else{let o=document.createElement("script");o.onload=()=>{n.resolve()},o.src=e,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 ye={};X(ye,{Smartjson:()=>rc,deepEqualObjects:()=>v1,foldDec:()=>b1,parse:()=>nc,parseBase64:()=>x1,stringify:()=>bn,stringifyBase64:()=>y1,stringifyPretty:()=>g1});var wo={};X(wo,{Base64:()=>ts,Domain:()=>rs,GitRepo:()=>ns,base64:()=>dn,create:()=>Ou,docker:()=>Du,indent:()=>Fu,normalize:()=>Uu,type:()=>Lu});var Ou={};X(Ou,{createCryptoRandomString:()=>Mv,createRandomString:()=>Iv});var td=De(si(),1),rd=De(Vf(),1),nd=De(bh(),1);var _h="3.7.5",ov=_h,iv=typeof atob=="function",sv=typeof btoa=="function",hn=typeof Buffer=="function",vh=typeof TextDecoder=="function"?new TextDecoder:void 0,wh=typeof TextEncoder=="function"?new TextEncoder:void 0,av="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",bo=Array.prototype.slice.call(av),Qi=(t=>{let e={};return t.forEach((r,n)=>e[r]=n),e})(bo),uv=/^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/,Be=String.fromCharCode.bind(String),Sh=typeof Uint8Array.from=="function"?Uint8Array.from.bind(Uint8Array):t=>new Uint8Array(Array.prototype.slice.call(t,0)),Ch=t=>t.replace(/=/g,"").replace(/[+\/]/g,e=>e=="+"?"-":"_"),Ah=t=>t.replace(/[^A-Za-z0-9\+\/]/g,""),Ih=t=>{let e,r,n,o,i="",s=t.length%3;for(let a=0;a<t.length;){if((r=t.charCodeAt(a++))>255||(n=t.charCodeAt(a++))>255||(o=t.charCodeAt(a++))>255)throw new TypeError("invalid character found");e=r<<16|n<<8|o,i+=bo[e>>18&63]+bo[e>>12&63]+bo[e>>6&63]+bo[e&63]}return s?i.slice(0,s-3)+"===".substring(s):i},Mu=sv?t=>btoa(t):hn?t=>Buffer.from(t,"binary").toString("base64"):Ih,Au=hn?t=>Buffer.from(t).toString("base64"):t=>{let r=[];for(let n=0,o=t.length;n<o;n+=4096)r.push(Be.apply(null,t.subarray(n,n+4096)));return Mu(r.join(""))},Zi=(t,e=!1)=>e?Ch(Au(t)):Au(t),cv=t=>{if(t.length<2){var e=t.charCodeAt(0);return e<128?t:e<2048?Be(192|e>>>6)+Be(128|e&63):Be(224|e>>>12&15)+Be(128|e>>>6&63)+Be(128|e&63)}else{var e=65536+(t.charCodeAt(0)-55296)*1024+(t.charCodeAt(1)-56320);return Be(240|e>>>18&7)+Be(128|e>>>12&63)+Be(128|e>>>6&63)+Be(128|e&63)}},lv=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,Mh=t=>t.replace(lv,cv),Eh=hn?t=>Buffer.from(t,"utf8").toString("base64"):wh?t=>Au(wh.encode(t)):t=>Mu(Mh(t)),pn=(t,e=!1)=>e?Ch(Eh(t)):Eh(t),Th=t=>pn(t,!0),fv=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,pv=t=>{switch(t.length){case 4:var e=(7&t.charCodeAt(0))<<18|(63&t.charCodeAt(1))<<12|(63&t.charCodeAt(2))<<6|63&t.charCodeAt(3),r=e-65536;return Be((r>>>10)+55296)+Be((r&1023)+56320);case 3:return Be((15&t.charCodeAt(0))<<12|(63&t.charCodeAt(1))<<6|63&t.charCodeAt(2));default:return Be((31&t.charCodeAt(0))<<6|63&t.charCodeAt(1))}},Ph=t=>t.replace(fv,pv),$h=t=>{if(t=t.replace(/\s+/g,""),!uv.test(t))throw new TypeError("malformed base64.");t+="==".slice(2-(t.length&3));let e,r="",n,o;for(let i=0;i<t.length;)e=Qi[t.charAt(i++)]<<18|Qi[t.charAt(i++)]<<12|(n=Qi[t.charAt(i++)])<<6|(o=Qi[t.charAt(i++)]),r+=n===64?Be(e>>16&255):o===64?Be(e>>16&255,e>>8&255):Be(e>>16&255,e>>8&255,e&255);return r},Pu=iv?t=>atob(Ah(t)):hn?t=>Buffer.from(t,"base64").toString("binary"):$h,Nh=hn?t=>Sh(Buffer.from(t,"base64")):t=>Sh(Pu(t).split("").map(e=>e.charCodeAt(0))),Oh=t=>Nh(Dh(t)),hv=hn?t=>Buffer.from(t,"base64").toString("utf8"):vh?t=>vh.decode(Nh(t)):t=>Ph(Pu(t)),Dh=t=>Ah(t.replace(/[-_]/g,e=>e=="-"?"+":"/")),Iu=t=>hv(Dh(t)),dv=t=>{if(typeof t!="string")return!1;let e=t.replace(/\s+/g,"").replace(/={0,2}$/,"");return!/[^\s0-9a-zA-Z\+/]/.test(e)||!/[^\s0-9a-zA-Z\-_]/.test(e)},Bh=t=>({value:t,enumerable:!1,writable:!0,configurable:!0}),Rh=function(){let t=(e,r)=>Object.defineProperty(String.prototype,e,Bh(r));t("fromBase64",function(){return Iu(this)}),t("toBase64",function(e){return pn(this,e)}),t("toBase64URI",function(){return pn(this,!0)}),t("toBase64URL",function(){return pn(this,!0)}),t("toUint8Array",function(){return Oh(this)})},Fh=function(){let t=(e,r)=>Object.defineProperty(Uint8Array.prototype,e,Bh(r));t("toBase64",function(e){return Zi(this,e)}),t("toBase64URI",function(){return Zi(this,!0)}),t("toBase64URL",function(){return Zi(this,!0)})},mv=()=>{Rh(),Fh()},vo={version:_h,VERSION:ov,atob:Pu,atobPolyfill:$h,btoa:Mu,btoaPolyfill:Ih,fromBase64:Iu,toBase64:pn,encode:pn,encodeURI:Th,encodeURL:Th,utob:Mh,btou:Ph,decode:Iu,isValid:dv,fromUint8Array:Zi,toUint8Array:Oh,extendString:Rh,extendUint8Array:Fh,extendBuiltins:mv};var kh=De(Lh(),1);function Xi(t){let e=(0,kh.default)(t);if(e===0)return t;let r=new RegExp(`^[ \\t]{${e}}`,"gm");return t.replace(r,"")}var Hh=De(qh(),1),Wh=`\r
|
|
17
|
-
|
|
18
|
-
`):t.replace(new
|
|
19
|
-
`)
|
|
20
|
-
|
|
21
|
-
`;return e},$v=t=>{let e=/^[\s]*$/;return e.test(t[0])&&t.shift(),e.test(t[t.length-1])&&t.pop(),t},Nv=(t,e)=>{let r=Bu(t);for(let o of r)o=" ".repeat(e)+o;return Ru(r)},Ov=(t,e)=>{let r,n=Bu(t),o=[];for(let i of n)o.push(e+i);return r=Ru(o),r},Dv=t=>{let e,r=Bu(t),n,o=/^(\s*)/,i=/^(\s*)$/;for(let a of r){let u=o.exec(a)[1];(typeof n>"u"||u.length<n)&&!i.test(a)&&(n=u.length)}let s=[];for(let a of r)s.push(a.substr(n));return e=Ru(s),e};var Uu={};X(Uu,{replaceAll:()=>od,standard:()=>Bv});var od=(t,e,r)=>t.replace(new RegExp(e,"g"),r),Bv=(t,e)=>{let r=t;return(!e||e.stripIndent)&&(r=Xi(r)),(!e||e.normalizeNewline)&&(r=Ki(r)),(!e||e.replaceTabs)&&(r=od(r," /"," ")),(!e||e.stripLeadingTrailingEmptyLines)&&(r=r.replace(/^\s*[\r\n]/gm,"").replace(/\s*[\r\n]$/gm,"")),(!e||e.stripAllEmptyLines)&&(r=r.replace(/^\s*[\r\n]/gm,"")),r};var Lu={};X(Lu,{isBase64:()=>Fv,isUtf8:()=>Rv});var ts=class{constructor(e,r){switch(r){case"string":this.refString=e;break;case"base64":this.refString=dn.decode(e);break;case"base64uri":this.refString=dn.decode(e)}}get simpleString(){return this.refString}get base64String(){return dn.encode(this.refString)}get base64UriString(){return dn.encodeUri(this.refString)}},dn={encode:t=>vo.encode(t),encodeUri:t=>vo.encodeURI(t),decode:t=>vo.decode(t),isBase64:t=>/^([A-Za-z0-9+/]{4})*([A-Za-z0-9+/]{3}=|[A-Za-z0-9+/]{2}==)?$/.test(t)};var Rv=t=>{let e=Buffer.from(t),r=0;for(;r<e.length;){if(e[r]===9||e[r]===10||e[r]===13||32<=e[r]&&e[r]<=126){r+=1;continue}if(194<=e[r]&&e[r]<=223&&128<=e[r+1]&&e[r+1]<=191){r+=2;continue}if(e[r]===224&&160<=e[r+1]&&e[r+1]<=191&&128<=e[r+2]&&e[r+2]<=191||(225<=e[r]&&e[r]<=236||e[r]===238||e[r]===239)&&128<=e[r+1]&&e[r+1]<=191&&128<=e[r+2]&&e[r+2]<=191||e[r]===237&&128<=e[r+1]&&e[r+1]<=159&&128<=e[r+2]&&e[r+2]<=191){r+=3;continue}if(e[r]===240&&144<=e[r+1]&&e[r+1]<=191&&128<=e[r+2]&&e[r+2]<=191&&128<=e[r+3]&&e[r+3]<=191||241<=e[r]&&e[r]<=243&&128<=e[r+1]&&e[r+1]<=191&&128<=e[r+2]&&e[r+2]<=191&&128<=e[r+3]&&e[r+3]<=191||e[r]===244&&128<=e[r+1]&&e[r+1]<=143&&128<=e[r+2]&&e[r+2]<=191&&128<=e[r+3]&&e[r+3]<=191){r+=4;continue}return!1}return!0},Fv=t=>{let e=/[^A-Z0-9+\/=]/i,r=t.length;if(!r||r%4!==0||e.test(t))return!1;let n=t.indexOf("=");return n===-1||n===r-1||n===r-2&&t[r-1]==="="};var rs=class{constructor(e){this.protocol=this._protocolRegex(e),this.protocol||(e=`https://${e}`),this.nodeParsedUrl=nd.parse(e),this.port=this.nodeParsedUrl.port;let r=this._domainRegex(e.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(e){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(e);return n.reverse(),n.pop(),n.filter(function(i){return i!==""})}_protocolRegex(e){let n=/^([a-zA-Z0-9]*):\/\//.exec(e);if(n)return n[1]}_portRegex(e){let n=/^([a-zA-Z0-9]*):\/\//.exec(e);if(n)return n[1]}};var ns=class{constructor(e,r){let n=Uv(e);this.host=n[1],this.user=n[2],this.repo=n[3],this.accessToken=r,this.sshUrl=id(this.host,this.user,this.repo,this.accessToken,"ssh"),this.httpsUrl=id(this.host,this.user,this.repo,this.accessToken,"https")}},Uv=function(t){return/([a-zA-Z0-9\-_\.]*)(?:\/|\:)([a-zA-Z0-9\-_\.]*)(?:\/)([a-zA-Z0-9\-_\.]*)(?:\.git)/.exec(t)},id=function(t,e,r,n="",o){let i;switch(n!==""&&(n=n+"@"),o){case"https":i="https://"+n+t+"/"+e+"/"+r+".git";break;case"ssh":i="git@"+t+":"+e+"/"+r+".git";break;default:console.error("Link Type "+o+" not known");break}return i};var tc=De(Gd(),1),rm=De(Yd(),1),ps=De(tm(),1);var nm=rm.default;var nc=ps.default.parse,bn=(t,e,r={})=>{let n=ps.default.stringify(t);return t=JSON.parse(n),nm(t,r)},g1=t=>{let e=bn(t),r=JSON.parse(e);return JSON.stringify(r,null,2)},y1=(...t)=>{let e=bn(...t);return wo.base64.encodeUri(e)},x1=t=>{let e=wo.base64.decode(t);return nc(e)},rc=class t{static enfoldFromObject(e){let r=new this;for(let n in e)r.saveableProperties.indexOf(n)!==-1&&(r[n]=e[n]);return r}static enfoldFromJson(e){let r=nc(e);return this.enfoldFromObject(r)}foldToObject(){let e={},r=[];for(let n of this.saveableProperties){let o=this[n];if(o instanceof t){if(r.includes(o))throw new Error("cycle detected");r.push(o),o=o.foldToObject()}e[n]=tc.default(o)}return e}foldToJson(){let e=this.foldToObject();return bn(e)}},b1=()=>(t,e)=>{t.saveableProperties||(t.saveableProperties=[]),t.saveableProperties.push(e)},v1=(t,e)=>{let r=bn(t),n=bn(e);return r===n};var Yt={};X(Yt,{TypedrequestCache:()=>cc,WebStore:()=>Co});var hs={};X(hs,{deleteDB:()=>M1,openDB:()=>I1,unwrap:()=>_o,wrap:()=>Ze});var w1=(t,e)=>e.some(r=>t instanceof r),om,im;function S1(){return om||(om=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])}function E1(){return im||(im=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])}var sm=new WeakMap,ic=new WeakMap,am=new WeakMap,oc=new WeakMap,ac=new WeakMap;function T1(t){let e=new Promise((r,n)=>{let o=()=>{t.removeEventListener("success",i),t.removeEventListener("error",s)},i=()=>{r(Ze(t.result)),o()},s=()=>{n(t.error),o()};t.addEventListener("success",i),t.addEventListener("error",s)});return e.then(r=>{r instanceof IDBCursor&&sm.set(r,t)}).catch(()=>{}),ac.set(e,t),e}function _1(t){if(ic.has(t))return;let e=new Promise((r,n)=>{let o=()=>{t.removeEventListener("complete",i),t.removeEventListener("error",s),t.removeEventListener("abort",s)},i=()=>{r(),o()},s=()=>{n(t.error||new DOMException("AbortError","AbortError")),o()};t.addEventListener("complete",i),t.addEventListener("error",s),t.addEventListener("abort",s)});ic.set(t,e)}var sc={get(t,e,r){if(t instanceof IDBTransaction){if(e==="done")return ic.get(t);if(e==="objectStoreNames")return t.objectStoreNames||am.get(t);if(e==="store")return r.objectStoreNames[1]?void 0:r.objectStore(r.objectStoreNames[0])}return Ze(t[e])},set(t,e,r){return t[e]=r,!0},has(t,e){return t instanceof IDBTransaction&&(e==="done"||e==="store")?!0:e in t}};function um(t){sc=t(sc)}function C1(t){return t===IDBDatabase.prototype.transaction&&!("objectStoreNames"in IDBTransaction.prototype)?function(e,...r){let n=t.call(_o(this),e,...r);return am.set(n,e.sort?e.sort():[e]),Ze(n)}:E1().includes(t)?function(...e){return t.apply(_o(this),e),Ze(sm.get(this))}:function(...e){return Ze(t.apply(_o(this),e))}}function A1(t){return typeof t=="function"?C1(t):(t instanceof IDBTransaction&&_1(t),w1(t,S1())?new Proxy(t,sc):t)}function Ze(t){if(t instanceof IDBRequest)return T1(t);if(oc.has(t))return oc.get(t);let e=A1(t);return e!==t&&(oc.set(t,e),ac.set(e,t)),e}var _o=t=>ac.get(t);function I1(t,e,{blocked:r,upgrade:n,blocking:o,terminated:i}={}){let s=indexedDB.open(t,e),a=Ze(s);return n&&s.addEventListener("upgradeneeded",u=>{n(Ze(s.result),u.oldVersion,u.newVersion,Ze(s.transaction),u)}),r&&s.addEventListener("blocked",u=>r(u.oldVersion,u.newVersion,u)),a.then(u=>{i&&u.addEventListener("close",()=>i()),o&&u.addEventListener("versionchange",c=>o(c.oldVersion,c.newVersion,c))}).catch(()=>{}),a}function M1(t,{blocked:e}={}){let r=indexedDB.deleteDatabase(t);return e&&r.addEventListener("blocked",n=>e(n.oldVersion,n)),Ze(r).then(()=>{})}var P1=["get","getKey","getAll","getAllKeys","count"],$1=["put","add","delete","clear"],uc=new Map;function cm(t,e){if(!(t instanceof IDBDatabase&&!(e in t)&&typeof e=="string"))return;if(uc.get(e))return uc.get(e);let r=e.replace(/FromIndex$/,""),n=e!==r,o=$1.includes(r);if(!(r in(n?IDBIndex:IDBObjectStore).prototype)||!(o||P1.includes(r)))return;let i=async function(s,...a){let u=this.transaction(s,o?"readwrite":"readonly"),c=u.store;return n&&(c=c.index(a.shift())),(await Promise.all([c[r](...a),o&&u.done]))[0]};return uc.set(e,i),i}um(t=>({...t,get:(e,r,n)=>cm(e,r)||t.get(e,r,n),has:(e,r)=>!!cm(e,r)||t.has(e,r)}));var Co=class{constructor(e){this.initCalled=!1,this.readyDeferred=Q.defer(),this.options=e}async init(){if(this.initCalled){await this.readyDeferred.promise;return}this.initCalled=!0;let e=new Gr.Smartenv;if(!e.isBrowser&&!globalThis.indexedDB&&(console.log("hey"),console.log(globalThis.indexedDB),await e.getSafeNodeModule("fake-indexeddb/auto"),!globalThis.indexedDB)){let r=await e.getSafeNodeModule("fake-indexeddb");globalThis.indexedDB=new r.IDBFactory}this.db=await hs.openDB(this.options.dbName,1,{upgrade:r=>{r.createObjectStore(this.options.storeName)}}),this.readyDeferred.resolve()}async get(e){return await this.init(),this.db.get(this.options.storeName,e)}async check(e){return await this.init(),!!await this.get(e)}async set(e,r){return await this.init(),this.db.put(this.options.storeName,r,e)}async delete(e){return await this.init(),this.db.delete(this.options.storeName,e)}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 cc=class{constructor(e="default"){this.webstore=new Co({dbName:"trStore",storeName:`trStore-${e}`})}buildKey(e){return ye.stringify({method:e.method,request:e.request})}async setByRequest(e){if(!e.response)throw new Error("You cannot store requests without a response present");await this.webstore.set(this.buildKey(e),e)}async getByRequest(e){return await this.webstore.get(this.buildKey(e))}};var lc=class{constructor(e={}){this.optionsArg=e,this.cacheStore=new Yt.WebStore({dbName:"webrequest",storeName:"webrequest"}),this.options={logging:!0,...e}}async getJson(e,r=!1){let o=await(await this.request(e,{method:"GET",useCache:r})).text();return ye.parse(o)}async postJson(e,r,n=!1){let i=await(await this.request(e,{method:"POST",headers:{"Content-Type":"application/json"},body:ye.stringify(r),useCache:n})).text();return ye.parse(i)}async putJson(e,r,n=!1){let i=await(await this.request(e,{method:"PUT",headers:{"Content-Type":"application/json"},body:ye.stringify(r)})).text();return ye.parse(i)}async deleteJson(e,r=!1){let o=await(await this.request(e,{headers:{"Content-Type":"application/json"},method:"GET"})).text();return ye.parse(o)}async request(e,r){r={timeoutMs:6e4,useCache:!1,...r};let n=new AbortController;se.delayFor(r.timeoutMs).then(()=>{n.abort()});let o=Q.defer(),i=!1;if(r.useCache&&await this.cacheStore.check(e)){let a=await this.cacheStore.get(e);o.resolve(new Response(a,{}))}else o.resolve(null);let s=await fetch(e,{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(e,a)}return this.log(`${e} answers with status: ${s.status}`),s}async requestMultiEndpoint(e,r){let n,o=0;Array.isArray(e)?n=e:n=[e];let i=[],s=async c=>{i.push(c),c==="429"&&(console.log("got 429, so waiting a little bit."),await se.delayFor(Math.floor(Math.random()*1001)+1e3));let l=0;for(let f of i)f===c&&l++;l>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 l=await fetch(c,{method:r.method,headers:{"Content-Type":"application/json",...r.headers||{}},body:r.body});return this.log(`${c} answers with status: ${l.status}`),l.status>=200&&l.status<300?l:(await s(l.status.toString()),await a(n[o]))};return await a(n[o])}log(e){this.options.logging&&console.log(e)}};var Cr=class{constructor(e,r){this.errorText=e,this.errorData=r}};var fc=class{constructor(e,r){this.method=e,this.handlerFunction=r}async addResponse(e){if(e.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=await this.handlerFunction(e.request).catch(o=>{o instanceof Cr?r=o:console.log(o)});return r&&(e.error={text:r.errorText,data:r.errorData}),n&&(e.response=n),e?.correlation?.phase&&(e.correlation.phase="response"),e}};var pc=class{constructor(){this.routerMap=new ct.ObjectMap,this.handlerMap=new ct.ObjectMap,this.fireEventInterestMap=new ct.InterestMap(e=>e)}addTypedHandler(e){if(this.getTypedHandlerForMethod(e.method))throw new Error(`a TypedHandler for ${e.method} alredy exists! Can't add another one.`);this.handlerMap.add(e)}addTypedRouter(e){this.routerMap.findSync(n=>n===e)||(this.routerMap.add(e),e.addTypedRouter(this))}checkForTypedHandler(e){return!!this.getTypedHandlerForMethod(e)}getTypedHandlerForMethod(e,r=[]){r.push(this);let n;return n=this.handlerMap.findSync(o=>o.method===e),n||this.routerMap.getArray().forEach(o=>{!n&&!r.includes(o)&&(n=o.getTypedHandlerForMethod(e,r))}),n}async routeAndAddResponse(e,r=!1){if(e?.correlation?.phase==="request"||r){let n=this.getTypedHandlerForMethod(e.method);return n?(e=await n.addResponse(e),e):(console.log(`Cannot find handler for methodname ${e.method}`),e.error={text:"There is no available method for this call on the server side",data:{}},e.correlation.phase="response",e)}else return e?.correlation?.phase==="response"?(this.fireEventInterestMap.findInterest(e.correlation.id)?.fullfillInterest(e),null):(console.log("received weirdly shaped request"),console.log(e),null)}};var hc=class{constructor(e){if(e.postMethodWithTypedRouter&&!e.typedRouterRef)throw new Error("you have to specify a typedrouter when using postmethod with typedrouter");this.options=e}async post(e){let r;this.options.typedRouterRef&&(r=await this.options.typedRouterRef.fireEventInterestMap.addInterest(e.correlation.id,e));let o=await(this.options.postMethod||this.options.postMethodWithTypedRouter)(e),i;return r?i=await r.interestFullfilled:o?i=o:i=e,i}};var D1=new Ao.WebRequest,Io=class{constructor(e,r){typeof e=="string"?this.urlEndPoint=e:this.typedTarget=e,this.method=r}async fire(e,r=!1){let n={method:this.method,request:e,response:null,correlation:{id:fm.uni(),phase:"request"}},o;if(this.urlEndPoint?o=await D1.postJson(this.urlEndPoint,n,r):o=await this.typedTarget.post(n),o.error){if(console.error(`Got an error ${o.error.text} with data ${JSON.stringify(o.error.data)}`),!o.retry)throw new Cr(o.error.text,o.error.data);return null}return o.retry?(console.log(`server requested retry for the following reason: ${o.retry.reason}`),await se.delayFor(o.retry.waitForMs),await this.fire(e)):o.response}};function dm(t){return!!(t&&typeof t.then=="function")}function ds(t){return t||(t=0),new Promise(function(e){return setTimeout(e,t)})}function mm(t,e){return Math.floor(Math.random()*(e-t+1)+t)}function Mo(){return Math.random().toString(36).substring(2)}var hm=0,dc=0;function Qt(){var t=new Date().getTime();return t===hm?(dc++,t*1e3+dc):(hm=t,dc=0,t*1e3)}var Mt=Object.prototype.toString.call(typeof process<"u"?process:0)==="[object process]";var B1=Qt,R1="native";function F1(t){var e={messagesCallback:null,bc:new BroadcastChannel(t),subFns:[]};return e.bc.onmessage=function(r){e.messagesCallback&&e.messagesCallback(r.data)},e}function U1(t){t.bc.close(),t.subFns=[]}function L1(t,e){try{return t.bc.postMessage(e,!1),Promise.resolve()}catch(r){return Promise.reject(r)}}function k1(t,e){t.messagesCallback=e}function j1(){if(Mt&&typeof window>"u")return!1;if(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 q1(){return 150}var gm={create:F1,close:U1,onMessage:k1,postMessage:L1,canBeUsed:j1,type:R1,averageResponseTime:q1,microSeconds:B1};var ms=function(){function t(e){this.ttl=e,this.set=new Set,this.timeMap=new Map}return t.prototype.has=function(e){return this.set.has(e)},t.prototype.add=function(e){var r=this;this.timeMap.set(e,ym()),this.set.add(e),setTimeout(function(){W1(r)},0)},t.prototype.clear=function(){this.set.clear(),this.timeMap.clear()},t}();function W1(t){for(var e=ym()-t.ttl,r=t.set[Symbol.iterator]();;){var n=r.next().value;if(!n)return;var o=t.timeMap.get(n);if(o<e)t.timeMap.delete(n),t.set.delete(n);else return}}function ym(){return new Date().getTime()}function vn(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e=JSON.parse(JSON.stringify(t));return typeof e.webWorkerSupport>"u"&&(e.webWorkerSupport=!0),e.idb||(e.idb={}),e.idb.ttl||(e.idb.ttl=1e3*45),e.idb.fallbackInterval||(e.idb.fallbackInterval=150),t.idb&&typeof t.idb.onclose=="function"&&(e.idb.onclose=t.idb.onclose),e.localstorage||(e.localstorage={}),e.localstorage.removeTimeout||(e.localstorage.removeTimeout=1e3*60),t.methods&&(e.methods=t.methods),e.node||(e.node={}),e.node.ttl||(e.node.ttl=1e3*60*2),typeof e.node.useFastPath>"u"&&(e.node.useFastPath=!0),e}var H1=Qt,z1="pubkey.broadcast-channel-0-",Pt="messages",V1="idb";function xm(){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 G1(t){var e=xm(),r=z1+t,n=e.open(r,1);n.onupgradeneeded=function(i){var s=i.target.result;s.createObjectStore(Pt,{keyPath:"id",autoIncrement:!0})};var o=new Promise(function(i,s){n.onerror=function(a){return s(a)},n.onsuccess=function(){i(n.result)}});return o}function J1(t,e,r){var n=new Date().getTime(),o={uuid:e,time:n,data:r},i=t.transaction([Pt],"readwrite");return new Promise(function(s,a){i.oncomplete=function(){return s()},i.onerror=function(c){return a(c)};var u=i.objectStore(Pt);u.add(o)})}function Y1(t,e){var r=t.transaction(Pt).objectStore(Pt),n=[];function o(){try{var i=IDBKeyRange.bound(e+1,1/0);return r.openCursor(i)}catch{return r.openCursor()}}return new Promise(function(i){o().onsuccess=function(s){var a=s.target.result;a?a.value.id<e+1?a.continue(e+1):(n.push(a.value),a.continue()):i(n)}})}function Q1(t,e){var r=t.transaction([Pt],"readwrite").objectStore(Pt).delete(e);return new Promise(function(n){r.onsuccess=function(){return n()}})}function Z1(t,e){var r=new Date().getTime()-e,n=t.transaction(Pt).objectStore(Pt),o=[];return new Promise(function(i){n.openCursor().onsuccess=function(s){var a=s.target.result;if(a){var u=a.value;if(u.time<r)o.push(u),a.continue();else{i(o);return}}else i(o)}})}function X1(t,e){return Z1(t,e).then(function(r){return Promise.all(r.map(function(n){return Q1(t,n.id)}))})}function K1(t,e){return e=vn(e),G1(t).then(function(r){var n={closed:!1,lastCursorId:0,channelName:t,options:e,uuid:Mo(),eMIs:new ms(e.idb.ttl*2),writeBlockPromise:Promise.resolve(),messagesCallback:null,readQueuePromises:[],db:r};return r.onclose=function(){n.closed=!0,e.idb.onclose&&e.idb.onclose()},bm(n),n})}function bm(t){t.closed||vm(t).then(function(){return ds(t.options.idb.fallbackInterval)}).then(function(){return bm(t)})}function eS(t,e){return!(t.uuid===e.uuid||e.eMIs.has(t.id)||t.data.time<e.messagesCallbackTime)}function vm(t){return t.closed||!t.messagesCallback?Promise.resolve():Y1(t.db,t.lastCursorId).then(function(e){var r=e.filter(function(n){return!!n}).map(function(n){return n.id>t.lastCursorId&&(t.lastCursorId=n.id),n}).filter(function(n){return eS(n,t)}).sort(function(n,o){return n.time-o.time});return r.forEach(function(n){t.messagesCallback&&(t.eMIs.add(n.id),t.messagesCallback(n.data))}),Promise.resolve()})}function tS(t){t.closed=!0,t.db.close()}function rS(t,e){return t.writeBlockPromise=t.writeBlockPromise.then(function(){return J1(t.db,t.uuid,e)}).then(function(){mm(0,10)===0&&X1(t.db,t.options.idb.ttl)}),t.writeBlockPromise}function nS(t,e,r){t.messagesCallbackTime=r,t.messagesCallback=e,vm(t)}function oS(){if(Mt)return!1;var t=xm();return!!t}function iS(t){return t.idb.fallbackInterval*2}var wm={create:K1,close:tS,onMessage:nS,postMessage:rS,canBeUsed:oS,type:V1,averageResponseTime:iS,microSeconds:H1};var sS=Qt,aS="pubkey.broadcastChannel-",uS="localstorage";function Sm(){var t;if(typeof window>"u")return null;try{t=window.localStorage,t=window["ie8-eventlistener/storage"]||window.localStorage}catch{}return t}function Em(t){return aS+t}function cS(t,e){return new Promise(function(r){ds().then(function(){var n=Em(t.channelName),o={token:Mo(),time:new Date().getTime(),data:e,uuid:t.uuid},i=JSON.stringify(o);Sm().setItem(n,i);var s=document.createEvent("Event");s.initEvent("storage",!0,!0),s.key=n,s.newValue=i,window.dispatchEvent(s),r()})})}function lS(t,e){var r=Em(t),n=function(i){i.key===r&&e(JSON.parse(i.newValue))};return window.addEventListener("storage",n),n}function fS(t){window.removeEventListener("storage",t)}function pS(t,e){if(e=vn(e),!Tm())throw new Error("BroadcastChannel: localstorage cannot be used");var r=Mo(),n=new ms(e.localstorage.removeTimeout),o={channelName:t,uuid:r,eMIs:n};return o.listener=lS(t,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 hS(t){fS(t.listener)}function dS(t,e,r){t.messagesCallbackTime=r,t.messagesCallback=e}function Tm(){if(Mt)return!1;var t=Sm();if(!t)return!1;try{var e="__broadcastchannel_check";t.setItem(e,"works"),t.removeItem(e)}catch{return!1}return!0}function mS(){var t=120,e=navigator.userAgent.toLowerCase();return e.includes("safari")&&!e.includes("chrome")?t*2:t}var _m={create:pS,close:hS,onMessage:dS,postMessage:cS,canBeUsed:Tm,type:uS,averageResponseTime:mS,microSeconds:sS};var gS=Qt,yS="simulate",mc=new Set;function xS(t){var e={name:t,messagesCallback:null};return mc.add(e),e}function bS(t){mc.delete(t)}function vS(t,e){return new Promise(function(r){return setTimeout(function(){var n=Array.from(mc);n.filter(function(o){return o.name===t.name}).filter(function(o){return o!==t}).filter(function(o){return!!o.messagesCallback}).forEach(function(o){return o.messagesCallback(e)}),r()},5)})}function wS(t,e){t.messagesCallback=e}function SS(){return!0}function ES(){return 5}var Cm={create:xS,close:bS,onMessage:wS,postMessage:vS,canBeUsed:SS,type:yS,averageResponseTime:ES,microSeconds:gS};var yc=[gm,wm,_m];Mt&&(gc=Am(),typeof gc.canBeUsed=="function"&&yc.push(gc));var gc;function Im(t){var e=[].concat(t.methods,yc).filter(Boolean);if(t.type){if(t.type==="simulate")return Cm;var r=e.find(function(o){return o.type===t.type});if(r)return r;throw new Error("method-type "+t.type+" not found")}!t.webWorkerSupport&&!Mt&&(e=e.filter(function(o){return o.type!=="idb"}));var n=e.find(function(o){return o.canBeUsed()});if(n)return n;throw new Error("No useable methode found:"+JSON.stringify(yc.map(function(o){return o.type})))}var wn=function(e,r){this.name=e,Mm&&(r=Mm),this.options=vn(r),this.method=Im(this.options),this._iL=!1,this._onML=null,this._addEL={message:[],internal:[]},this._uMP=new Set,this._befC=[],this._prepP=null,TS(this)};wn._pubkey=!0;var Mm;wn.prototype={postMessage:function(e){if(this.closed)throw new Error("BroadcastChannel.postMessage(): Cannot post message after channel has closed");return Pm(this,"message",e)},postInternal:function(e){return Pm(this,"internal",e)},set onmessage(t){var e=this.method.microSeconds(),r={time:e,fn:t};Nm(this,"message",this._onML),t&&typeof t=="function"?(this._onML=r,$m(this,"message",r)):this._onML=null},addEventListener:function(e,r){var n=this.method.microSeconds(),o={time:n,fn:r};$m(this,e,o)},removeEventListener:function(e,r){var n=this._addEL[e].find(function(o){return o.fn===r});Nm(this,e,n)},close:function(){var e=this;if(!this.closed){this.closed=!0;var r=this._prepP?this._prepP:Promise.resolve();return this._onML=null,this._addEL.message=[],r.then(function(){return Promise.all(Array.from(e._uMP))}).then(function(){return Promise.all(e._befC.map(function(n){return n()}))}).then(function(){return e.method.close(e._state)})}},get type(){return this.method.type},get isClosed(){return this.closed}};function Pm(t,e,r){var n=t.method.microSeconds(),o={time:n,type:e,data:r},i=t._prepP?t._prepP:Promise.resolve();return i.then(function(){var s=t.method.postMessage(t._state,o);return t._uMP.add(s),s.catch().then(function(){return t._uMP.delete(s)}),s})}function TS(t){var e=t.method.create(t.name,t.options);dm(e)?(t._prepP=e,e.then(function(r){t._state=r})):t._state=e}function Om(t){return t._addEL.message.length>0||t._addEL.internal.length>0}function $m(t,e,r){t._addEL[e].push(r),_S(t)}function Nm(t,e,r){t._addEL[e]=t._addEL[e].filter(function(n){return n!==r}),CS(t)}function _S(t){if(!t._iL&&Om(t)){var e=function(o){t._addEL[o.type].forEach(function(i){o.time>=i.time&&i.fn(o.data)})},r=t.method.microSeconds();t._prepP?t._prepP.then(function(){t._iL=!0,t.method.onMessage(t._state,e,r)}):(t._iL=!0,t.method.onMessage(t._state,e,r))}}function CS(t){if(t._iL&&!Om(t)){t._iL=!1;var e=t.method.microSeconds();t.method.onMessage(t._state,null,e)}}var xc=globalThis.BroadcastChannel;xc||(xc=wn);var bc=class{constructor(){this.broadcastChannel=new xc("dees-comms"),this.typedrouter=new Xe.TypedRouter,this.typedtarget=new Xe.TypedTarget({postMethodWithTypedRouter:async e=>{this.postMessage(e)},typedRouterRef:this.typedrouter}),this.broadcastChannel.onmessage=async e=>{let r=e.method?e:e.data;console.log(JSON.stringify(r));let n=await this.typedrouter.routeAndAddResponse(r);n&&!n.error&&this.postMessage(n)}}createTypedRequest(e){return new Xe.TypedRequest(this.typedtarget,e)}async postMessage(e){this.broadcastChannel.postMessage(e)}async createTypedHandler(e,r){this.typedrouter.addTypedHandler(new Xe.TypedHandler(e,r))}};var bs={};X(bs,{SmartRouter:()=>Ec});var ys={};X(ys,{compile:()=>MS,match:()=>PS,parse:()=>vc,pathToRegexp:()=>Sc,regexpToFunction:()=>Bm,tokensToFunction:()=>Dm,tokensToRegexp:()=>Rm});function IS(t){for(var e=[],r=0;r<t.length;){var n=t[r];if(n==="*"||n==="+"||n==="?"){e.push({type:"MODIFIER",index:r,value:t[r++]});continue}if(n==="\\"){e.push({type:"ESCAPED_CHAR",index:r++,value:t[r++]});continue}if(n==="{"){e.push({type:"OPEN",index:r,value:t[r++]});continue}if(n==="}"){e.push({type:"CLOSE",index:r,value:t[r++]});continue}if(n===":"){for(var o="",i=r+1;i<t.length;){var s=t.charCodeAt(i);if(s>=48&&s<=57||s>=65&&s<=90||s>=97&&s<=122||s===95){o+=t[i++];continue}break}if(!o)throw new TypeError("Missing parameter name at ".concat(r));e.push({type:"NAME",index:r,value:o}),r=i;continue}if(n==="("){var a=1,u="",i=r+1;if(t[i]==="?")throw new TypeError('Pattern cannot start with "?" at '.concat(i));for(;i<t.length;){if(t[i]==="\\"){u+=t[i++]+t[i++];continue}if(t[i]===")"){if(a--,a===0){i++;break}}else if(t[i]==="("&&(a++,t[i+1]!=="?"))throw new TypeError("Capturing groups are not allowed at ".concat(i));u+=t[i++]}if(a)throw new TypeError("Unbalanced pattern at ".concat(r));if(!u)throw new TypeError("Missing pattern at ".concat(r));e.push({type:"PATTERN",index:r,value:u}),r=i;continue}e.push({type:"CHAR",index:r,value:t[r++]})}return e.push({type:"END",index:r,value:""}),e}function vc(t,e){e===void 0&&(e={});for(var r=IS(t),n=e.prefixes,o=n===void 0?"./":n,i="[^".concat(Sn(e.delimiter||"/#?"),"]+?"),s=[],a=0,u=0,c="",l=function(U){if(u<r.length&&r[u].type===U)return r[u++].value},f=function(U){var Y=l(U);if(Y!==void 0)return Y;var F=r[u],B=F.type,re=F.index;throw new TypeError("Unexpected ".concat(B," at ").concat(re,", expected ").concat(U))},h=function(){for(var U="",Y;Y=l("CHAR")||l("ESCAPED_CHAR");)U+=Y;return U};u<r.length;){var y=l("CHAR"),w=l("NAME"),A=l("PATTERN");if(w||A){var O=y||"";o.indexOf(O)===-1&&(c+=O,O=""),c&&(s.push(c),c=""),s.push({name:w||a++,prefix:O,suffix:"",pattern:A||i,modifier:l("MODIFIER")||""});continue}var _=y||l("ESCAPED_CHAR");if(_){c+=_;continue}c&&(s.push(c),c="");var I=l("OPEN");if(I){var O=h(),D=l("NAME")||"",N=l("PATTERN")||"",q=h();f("CLOSE"),s.push({name:D||(N?a++:""),pattern:D&&!N?i:N,prefix:O,suffix:q,modifier:l("MODIFIER")||""});continue}f("END")}return s}function MS(t,e){return Dm(vc(t,e),e)}function Dm(t,e){e===void 0&&(e={});var r=wc(e),n=e.encode,o=n===void 0?function(u){return u}:n,i=e.validate,s=i===void 0?!0:i,a=t.map(function(u){if(typeof u=="object")return new RegExp("^(?:".concat(u.pattern,")$"),r)});return function(u){for(var c="",l=0;l<t.length;l++){var f=t[l];if(typeof f=="string"){c+=f;continue}var h=u?u[f.name]:void 0,y=f.modifier==="?"||f.modifier==="*",w=f.modifier==="*"||f.modifier==="+";if(Array.isArray(h)){if(!w)throw new TypeError('Expected "'.concat(f.name,'" to not repeat, but got an array'));if(h.length===0){if(y)continue;throw new TypeError('Expected "'.concat(f.name,'" to not be empty'))}for(var A=0;A<h.length;A++){var O=o(h[A],f);if(s&&!a[l].test(O))throw new TypeError('Expected all "'.concat(f.name,'" to match "').concat(f.pattern,'", but got "').concat(O,'"'));c+=f.prefix+O+f.suffix}continue}if(typeof h=="string"||typeof h=="number"){var O=o(String(h),f);if(s&&!a[l].test(O))throw new TypeError('Expected "'.concat(f.name,'" to match "').concat(f.pattern,'", but got "').concat(O,'"'));c+=f.prefix+O+f.suffix;continue}if(!y){var _=w?"an array":"a string";throw new TypeError('Expected "'.concat(f.name,'" to be ').concat(_))}}return c}}function PS(t,e){var r=[],n=Sc(t,r,e);return Bm(n,r,e)}function Bm(t,e,r){r===void 0&&(r={});var n=r.decode,o=n===void 0?function(i){return i}:n;return function(i){var s=t.exec(i);if(!s)return!1;for(var a=s[0],u=s.index,c=Object.create(null),l=function(h){if(s[h]===void 0)return"continue";var y=e[h-1];y.modifier==="*"||y.modifier==="+"?c[y.name]=s[h].split(y.prefix+y.suffix).map(function(w){return o(w,y)}):c[y.name]=o(s[h],y)},f=1;f<s.length;f++)l(f);return{path:a,index:u,params:c}}}function Sn(t){return t.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1")}function wc(t){return t&&t.sensitive?"":"i"}function $S(t,e){if(!e)return t;for(var r=/\((?:\?<(.*?)>)?(?!\?)/g,n=0,o=r.exec(t.source);o;)e.push({name:o[1]||n++,prefix:"",suffix:"",modifier:"",pattern:""}),o=r.exec(t.source);return t}function NS(t,e,r){var n=t.map(function(o){return Sc(o,e,r).source});return new RegExp("(?:".concat(n.join("|"),")"),wc(r))}function OS(t,e,r){return Rm(vc(t,r),e,r)}function Rm(t,e,r){r===void 0&&(r={});for(var n=r.strict,o=n===void 0?!1:n,i=r.start,s=i===void 0?!0:i,a=r.end,u=a===void 0?!0:a,c=r.encode,l=c===void 0?function(re){return re}:c,f=r.delimiter,h=f===void 0?"/#?":f,y=r.endsWith,w=y===void 0?"":y,A="[".concat(Sn(w),"]|$"),O="[".concat(Sn(h),"]"),_=s?"^":"",I=0,D=t;I<D.length;I++){var N=D[I];if(typeof N=="string")_+=Sn(l(N));else{var q=Sn(l(N.prefix)),U=Sn(l(N.suffix));if(N.pattern)if(e&&e.push(N),q||U)if(N.modifier==="+"||N.modifier==="*"){var Y=N.modifier==="*"?"?":"";_+="(?:".concat(q,"((?:").concat(N.pattern,")(?:").concat(U).concat(q,"(?:").concat(N.pattern,"))*)").concat(U,")").concat(Y)}else _+="(?:".concat(q,"(").concat(N.pattern,")").concat(U,")").concat(N.modifier);else N.modifier==="+"||N.modifier==="*"?_+="((?:".concat(N.pattern,")").concat(N.modifier,")"):_+="(".concat(N.pattern,")").concat(N.modifier);else _+="(?:".concat(q).concat(U,")").concat(N.modifier)}}if(u)o||(_+="".concat(O,"?")),_+=r.endsWith?"(?=".concat(A,")"):"$";else{var F=t[t.length-1],B=typeof F=="string"?O.indexOf(F[F.length-1])>-1:F===void 0;o||(_+="(?:".concat(O,"(?=").concat(A,"))?")),B||(_+="(?=".concat(O,"|").concat(A,")"))}return new RegExp(_,wc(r))}function Sc(t,e,r){return t instanceof RegExp?$S(t,e):Array.isArray(t)?NS(t,e,r):OS(t,e,r)}var xs=class{constructor(){}getAllAsObject(){let e=new URLSearchParams(window.location.search);return Object.fromEntries(e.entries())}setQueryParam(e,r,n="replace"){var o=new URLSearchParams(window.location.search);o.set(e,r),n==="push"?history.pushState(null,null,"?"+o.toString()):history.replaceState(null,null,"?"+o.toString())}deleteQueryParam(e,r="replace"){var n=new URLSearchParams(window.location.search);n.delete(e),r==="push"?history.pushState(null,null,"?"+n.toString()):history.replaceState(null,null,"?"+n.toString())}getQueryParam(e){return this.getAllAsObject()[e]}};var Ec=class{constructor(e){this.options={debug:!1},this.queryParams=new xs,this.routes=[],this.options={...this.options,...e},window.addEventListener("popstate",r=>{r.preventDefault(),this._handleRouteState()})}async pushUrl(e="/",r={}){e!==window.location.pathname?window.history.pushState(r,window.document.title,e):window.history.replaceState(r,window.document.title,e),await this._handleRouteState()}on(e,r){this.routes.push({matchFunction:ys.match(e),handler:r})}async _handleRouteState(){let e=window.location.pathname,r=this.routes.filter(n=>!!n.matchFunction(e));for(let n of r){let o=n.matchFunction(e);n.handler({...o.valueOf(),queryParams:this.queryParams.getAllAsObject()})}}};var En={};X(En,{Smartstate:()=>_c,StateAction:()=>Po,StatePart:()=>$o});var Ss={};X(Ss,{sha256FromString:()=>US});var ws={};X(ws,{Smartenv:()=>Tc});var Um=De(Fm(),1);var Tc=class{constructor(){this.loadedScripts=[]}async getEnvAwareModule(e){if(this.isNode)return await this.getSafeNodeModule(e.nodeModuleName);if(this.isBrowser)return await this.getSafeWebModule(e.webUrlArg,e.getFunction);console.error("platform for loading not supported by smartenv")}async getSafeNodeModule(e){if(!this.isNode){console.error(`You tried to load a node module in a wrong context: ${e}`);return}return new Function(`return import('${e}')`)()}async getSafeWebModule(e,r){if(!this.isBrowser){console.error("You tried to load a web module in a wrong context");return}if(this.loadedScripts.includes(e))return r();this.loadedScripts.push(e);let n=Um.defer();if(globalThis.importScripts)globalThis.importScripts(e),n.resolve();else{let o=document.createElement("script");o.onload=()=>{n.resolve()},o.src=e,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 FS=t=>{let e=[],r=new DataView(t);for(let n=0;n<r.byteLength;n+=4){let i=r.getUint32(n).toString(16),s="00000000",a=(s+i).slice(-s.length);e.push(a)}return e.join("")},US=async t=>{let e=new ws.Smartenv;if(e.isBrowser){let r=new TextEncoder().encode(t),n=await crypto.subtle.digest("SHA-256",r);return FS(n)}else if(e.isNode)return await(await e.getSafeNodeModule("@pushrocks/smarthash")).sha256FromString(t)};var Po=class{constructor(e,r){this.statePartRef=e,this.actionDef=r}trigger(e){this.statePartRef.dispatchAction(this,e)}};var $o=class{constructor(e,r){this.state=new de.rxjs.Subject,this.cumulativeDeferred=Q.cumulativeDefer(),this.webStore=null,this.name=e,r&&(this.webStoreOptions=r)}async init(){if(this.webStoreOptions){this.webStore=new Yt.WebStore(this.webStoreOptions),await this.webStore.init();let e=await this.webStore.get(String(this.name));e&&(this.stateStore=e,this.notifyChange())}}getState(){return this.stateStore}async setState(e){return this.stateStore=e,this.notifyChange(),this.webStore&&await this.webStore.set(String(this.name),e),this.stateStore}notifyChange(){let e=r=>Ss.sha256FromString(ye.stringify(r));this.stateStore&&this.lastStateNotificationPayloadHash&&e(this.stateStore)===this.lastStateNotificationPayloadHash||(this.lastStateNotificationPayloadHash=this.stateStore,this.state.next(this.stateStore))}notifyChangeCumulative(){setTimeout(()=>this.state.next(this.stateStore),0)}select(e){return e||(e=n=>n),this.state.pipe(de.rxjs.ops.startWith(this.getState()),de.rxjs.ops.map(n=>{try{return e(n)}catch{}}))}createAction(e){return new Po(this,e)}async dispatchAction(e,r){await this.cumulativeDeferred.promise;let n=await e.actionDef(this,r);return await this.setState(n),this.getState()}async waitUntilPresent(e){let r=Q.defer(),o=this.select(e).subscribe(async s=>{s&&r.resolve(s)}),i=await r.promise;return o.unsubscribe(),i}async stateSetup(e){let r=e(this);this.cumulativeDeferred.addPromise(r),this.setState(await r)}};var _c=class{constructor(){this.statePartMap={}}async getStatePart(e,r,n){if(this.statePartMap[e]){if(r&&(!n||n!=="soft"))throw new Error(`${e} already exists, yet you try to set an initial state again`);return this.statePartMap[e]}else{if(!r)throw new Error(`${e} does not yet exist, yet you don't provide an initial state`);return this.createStatePart(e,r,n)}}async createStatePart(e,r,n){let o=new $o(e,n==="persistent"?{dbName:"smartstate",storeName:e}:null);await o.init();let i=o.getState();return await o.setState({...r,...i}),this.statePartMap[e]=o,o}};var Tn={};X(Tn,{Smarturl:()=>Cc});var Cc=class t{static createFromUrl(e,r){let n=new URL(e),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 l of Object.keys(o))c?c=!1:s+="&",s+=`${l}=${o[l]}`}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 u=new t;return Object.assign(u,a),u}static createFromParsedUrl(e){let r=new t;return Object.assign(r,e),r}constructor(){this.searchParams={}}toString(){let e="";return this.username&&!this.password&&(e=`${this.username}@`),this.username&&this.password&&(e=`${this.username}:${this.password}@`),`${this.protocol}//${e}${this.hostname}:${this.port}${this.path}`}};var Cn={};X(Cn,{CumulativeDeferred:()=>Ts,Deferred:()=>Es,cumulativeDefer:()=>kS,defer:()=>_n,getFirstTrueOrFalse:()=>zS,map:()=>WS,rejectedPromise:()=>qS,resolvedPromise:()=>jS,timeoutAndContinue:()=>HS,timeoutWrap:()=>Lm});var Es=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((e,r)=>{this.resolve=n=>{this.status="fulfilled",this.stoppedAt=Date.now(),e(n)},this.reject=n=>{this.status="rejected",this.stoppedAt=Date.now(),r(n)},this.startedAt=Date.now(),this.status="pending"})}},_n=()=>new Es;var Ts=class{constructor(){this.accumulatedPromises=[],this.deferred=_n(),this.promise=this.deferred.promise,setTimeout(async()=>{for(;this.accumulatedPromises.length>0;)await this.accumulatedPromises.shift();this.deferred.resolve()},0)}addPromise(e){this.accumulatedPromises.push(e)}},kS=()=>new Ts;var jS=t=>Promise.resolve(t),qS=t=>Promise.reject(t),WS=async(t,e)=>{let r=[],n=[];for(let o of t){let i=e(o);r.push(i),i.then(s=>{n.push(s)})}return await Promise.all(r),n},Lm=async(t,e,r=!0)=>new Promise((n,o)=>{setTimeout(()=>{r?o(new Error("timeout")):n(null)},e),t.then(n,o)}),HS=async(t,e=6e4)=>Lm(t,e,!1),zS=async t=>{let e=_n();for(let r of t)r.then(n=>{n===!0&&e.resolve(!0)});return Promise.all(t).then(()=>{e.resolve(!1)}),e.promise};var Zt=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 An=class t extends Zt{static createCompanyJsonLd(e){let r={"@context":"https://schema.org","@type":"Corporation",name:e.name,alternateName:e.name.replace(" GmbH",""),url:e.contact.website,logo:e.contact.logoUrl,contactPoint:{"@type":"ContactPoint",telephone:e.contact.phone,contactType:"customer service",areaServed:"DE",availableLanguage:["en","German"]},sameAs:[]};return e.contact.facebookUrl&&r.sameAs.push(e.contact.facebookUrl),e.contact.twitterUrl&&r.sameAs.push(e.contact.twitterUrl),new t(r)}static createNewsArticleJsonLd(e){let r={"@context":"https://schema.org","@type":"NewsArticle",mainEntityOfPage:{"@type":"WebPage","@id":window.location.href},headline:"Article headline",image:[e.featuredImageUrl],datePublished:new Date(e.timestamp).toISOString(),dateModified:new Date(e.timestamp).toISOString(),author:{"@type":"Person",name:`${e.author.firstName} ${e.author.surName}`},publisher:{"@type":"Organization",name:e.author.surName,logo:{"@type":"ImageObject",url:e.author.surName}},description:e.author.firstName};return new t(r)}static createProductJsonLd(e,r){let n={"@context":"https://schema.org","@type":"SoftwareApplication",name:e.name,description:e.description,operatingSystem:e.os,applicationCategory:e.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 t(n)}constructor(e){super();let r=document.createElement("script");r.type="application/ld+json",r.text=JSON.stringify(e),this.elementRef=r}};var We=class t extends Zt{static createNewsArticleOgTags(e){let r=[];return r.push(new t("og:url",e.url)),r.push(new t("og:title",e.title)),r.push(new t("og:description",e.content)),r.push(new t("og:image",e.featuredImageUrl)),r}static createProductOgTags(e){let r=[];return r.push(new t("og:url",globalThis.location.href)),r.push(new t("og:title",`${e.name} - ${e.slogan}`)),r.push(new t("og:site_name",e.name)),r.push(new t("og:description",e.description)),r.push(new t("og:image",e.logoLink)),r}constructor(e,r){super();let n=document.createElement("meta");n.setAttribute("property",e),n.content=r,this.elementRef=n}};var In=class{set title(e){this.titleStore=e,this.state==="enabled"&&(document.title=this.titleStore)}get title(){return this.titleStore}constructor(e,r){this.tags=[],this.state="disabled",this.tagManagerRef=e}addTag(e){if(e instanceof Array)for(let r of e)this.addTag(r);else this.tags.push(e),this.state==="enabled"&&e.appendToDom()}async addCompanyInfo(e){this.addTag(An.createCompanyJsonLd(e)),this.addTag(new We("og:type","business.business")),this.addTag(new We("og:title",e.name)),this.addTag(new We("og:url",e.contact.website)),this.addTag(new We("og:image",e.contact.logoUrl)),this.addTag(new We("business:contact_data:street_address",`${e.contact.address.streetName} ${e.contact.address.houseNumber}`)),this.addTag(new We("business:contact_data:locality",e.contact.address.postalCode)),this.addTag(new We("business:contact_data:region",e.contact.address.city)),this.addTag(new We("business:contact_data:postal_code",e.contact.address.postalCode)),this.addTag(new We("business:contact_data:country_name",e.contact.address.country))}addNewsArticleInfo(e){this.addTag(An.createNewsArticleJsonLd(e)),this.addTag(We.createNewsArticleOgTags(e))}addProductInfo(e,r){this.addTag(An.createProductJsonLd(e,r)),this.addTag(We.createProductOgTags(e))}async enable(){this.title&&(document.title=this.title);for(let e of this.tags)e.appendToDom();this.state="enabled"}async disable(){for(let e of this.tags)e.removeFromDom();this.state="disabled"}};var at=class extends Zt{constructor(e,r){super();let n=document.createElement("meta");n.name=e,n.content=r,this.elementRef=n}};var _s=class{constructor(){this.globalLevel=new In(this,"global"),this.baseLevel=new In(this,"base")}async setup(e){switch(this.globalLevel.addTag(new at("google","notranslate")),this.globalLevel.addTag(new at("revisit-after","1 days")),e.twitterHandle&&(this.globalLevel.addTag(new at("twitter:card","summary_large_image")),this.globalLevel.addTag(new at("twitter:site",e.twitterHandle)),this.globalLevel.addTag(new at("twitter:creator",e.twitterHandle))),this.baseLevel.title=e.title,e.description&&this.baseLevel.addTag(new at("description",e.description)),e.canonicalDomain&&this.baseLevel.addTag(new at("canonical",e.canonicalDomain)),!0){case(e.ldCompany&&!e.ldProduct):this.baseLevel.addCompanyInfo(e.ldCompany);break;case!!e.ldProduct:this.baseLevel.addProductInfo(e.ldProduct,e.ldCompany);break}await this.globalLevel.enable(),this.activeLevel=this.baseLevel,await this.activeLevel.enable()}async setSubPageLevel(e){let r=new In(this,"subpage");return r.title=e.title,e.description&&r.addTag(new at("description",e.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 Cs=class{constructor(e){this.tagManager=new _s,this.readyDeferred=Cn.defer(),this.readyForSmartssrDeferred=Cn.defer(),this.readyPromise=this.readyDeferred.promise,this.readyForSmartssrPromise=this.readyForSmartssrDeferred.promise,this.options=e,this.setup().then(()=>{this.readyDeferred.resolve(),this.options.smartssrWaitForReadySignal||this.readyForSmartssrDeferred.resolve()})}async setup(e){e&&(this.options=e),await this.tagManager.setup(this.options.metaObject)}revertToBaseLevel(){this.tagManager.revertToBaseLevel()}async setSubLevel(e){return await this.tagManager.setSubPageLevel(e)}flashTitle(e){}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 No=De(jm(),1);var Mc={ObjectMap:Tt,Stringmap:ao,FastMap:yr};var $t={};X($t,{cssForDesktop:()=>ZS,cssForNotebook:()=>XS,cssForPhablet:()=>eE,cssForPhone:()=>tE,cssForTablet:()=>KS,desktop:()=>Pc,notebook:()=>$c,phablet:()=>Oc,phone:()=>Dc,tablet:()=>Nc});var Pc=1600,$c=1240,Nc=1024,Oc=600,Dc=400,ZS=t=>V(`
|
|
22
|
-
|
|
23
|
-
|
|
39
|
+
Minimum version required to store current data is: `+o+`.
|
|
40
|
+
`);let s=e4(t,r,i),a=xc.getSymbolSize(t),l=new qU(a);return JU(l,t),QU(l),ZU(l,t),Pd(l,r,0),t>=7&&XU(l,t),KU(l,s),isNaN(n)&&(n=Nd.getBestMask(l,Pd.bind(null,l,r))),Nd.applyMask(n,l),Pd(l,r,n),{modules:l,version:t,errorCorrectionLevel:r,maskPattern:n,segments:i}}RE.create=function(t,r){if(typeof t>"u"||t==="")throw new Error("No input text");let n=Md.M,i,o;return typeof r<"u"&&(n=Md.from(r.errorCorrectionLevel,Md.M),i=yc.from(r.version),o=Nd.from(r.maskPattern),r.toSJISFunc&&xc.setToSJISFunction(r.toSJISFunc)),r4(t,i,n,o)}});var Rd=N(li=>{function BE(e){if(typeof e=="number"&&(e=e.toString()),typeof e!="string")throw new Error("Color should be defined as hex string");let t=e.slice().replace("#","").split("");if(t.length<3||t.length===5||t.length>8)throw new Error("Invalid hex color: "+e);(t.length===3||t.length===4)&&(t=Array.prototype.concat.apply([],t.map(function(n){return[n,n]}))),t.length===6&&t.push("F","F");let r=parseInt(t.join(""),16);return{r:r>>24&255,g:r>>16&255,b:r>>8&255,a:r&255,hex:"#"+t.slice(0,6).join("")}}li.getOptions=function(t){t||(t={}),t.color||(t.color={});let r=typeof t.margin>"u"||t.margin===null||t.margin<0?4:t.margin,n=t.width&&t.width>=21?t.width:void 0,i=t.scale||4;return{width:n,scale:n?4:i,margin:r,color:{dark:BE(t.color.dark||"#000000ff"),light:BE(t.color.light||"#ffffffff")},type:t.type,rendererOpts:t.rendererOpts||{}}};li.getScale=function(t,r){return r.width&&r.width>=t+r.margin*2?r.width/(t+r.margin*2):r.scale};li.getImageWidth=function(t,r){let n=li.getScale(t,r);return Math.floor((t+r.margin*2)*n)};li.qrToImageData=function(t,r,n){let i=r.modules.size,o=r.modules.data,s=li.getScale(i,n),a=Math.floor((i+n.margin*2)*s),l=n.margin*s,u=[n.color.light,n.color.dark];for(let c=0;c<a;c++)for(let f=0;f<a;f++){let p=(c*a+f)*4,h=n.color.light;if(c>=l&&f>=l&&c<a-l&&f<a-l){let m=Math.floor((c-l)/s),x=Math.floor((f-l)/s);h=u[o[m*i+x]?1:0]}t[p++]=h.r,t[p++]=h.g,t[p++]=h.b,t[p]=h.a}}});var $E=N(bc=>{var Ld=Rd();function n4(e,t,r){e.clearRect(0,0,t.width,t.height),t.style||(t.style={}),t.height=r,t.width=r,t.style.height=r+"px",t.style.width=r+"px"}function i4(){try{return document.createElement("canvas")}catch{throw new Error("You need to specify a canvas element")}}bc.render=function(t,r,n){let i=n,o=r;typeof i>"u"&&(!r||!r.getContext)&&(i=r,r=void 0),r||(o=i4()),i=Ld.getOptions(i);let s=Ld.getImageWidth(t.modules.size,i),a=o.getContext("2d"),l=a.createImageData(s,s);return Ld.qrToImageData(l.data,t,i),n4(a,o,s),a.putImageData(l,0,0),o};bc.renderToDataURL=function(t,r,n){let i=n;typeof i>"u"&&(!r||!r.getContext)&&(i=r,r=void 0),i||(i={});let o=bc.render(t,r,i),s=i.type||"image/png",a=i.rendererOpts||{};return o.toDataURL(s,a.quality)}});var zE=N(jE=>{var o4=Rd();function UE(e,t){let r=e.a/255,n=t+'="'+e.hex+'"';return r<1?n+" "+t+'-opacity="'+r.toFixed(2).slice(1)+'"':n}function Bd(e,t,r){let n=e+t;return typeof r<"u"&&(n+=" "+r),n}function s4(e,t,r){let n="",i=0,o=!1,s=0;for(let a=0;a<e.length;a++){let l=Math.floor(a%t),u=Math.floor(a/t);!l&&!o&&(o=!0),e[a]?(s++,a>0&&l>0&&e[a-1]||(n+=o?Bd("M",l+r,.5+u+r):Bd("m",i,0),i=0,o=!1),l+1<t&&e[a+1]||(n+=Bd("h",s),s=0)):i++}return n}jE.render=function(t,r,n){let i=o4.getOptions(r),o=t.modules.size,s=t.modules.data,a=o+i.margin*2,l=i.color.light.a?"<path "+UE(i.color.light,"fill")+' d="M0 0h'+a+"v"+a+'H0z"/>':"",u="<path "+UE(i.color.dark,"stroke")+' d="'+s4(s,o,i.margin)+'"/>',c='viewBox="0 0 '+a+" "+a+'"',p='<svg xmlns="http://www.w3.org/2000/svg" '+(i.width?'width="'+i.width+'" height="'+i.width+'" ':"")+c+' shape-rendering="crispEdges">'+l+u+`</svg>
|
|
41
|
+
`;return typeof n=="function"&&n(null,p),p}});var HE=N(ca=>{var a4=VA(),$d=LE(),qE=$E(),l4=zE();function Ud(e,t,r,n,i){let o=[].slice.call(arguments,1),s=o.length,a=typeof o[s-1]=="function";if(!a&&!a4())throw new Error("Callback required as last argument");if(a){if(s<2)throw new Error("Too few arguments provided");s===2?(i=r,r=t,t=n=void 0):s===3&&(t.getContext&&typeof i>"u"?(i=n,n=void 0):(i=n,n=r,r=t,t=void 0))}else{if(s<1)throw new Error("Too few arguments provided");return s===1?(r=t,t=n=void 0):s===2&&!t.getContext&&(n=r,r=t,t=void 0),new Promise(function(l,u){try{let c=$d.create(r,n);l(e(c,t,n))}catch(c){u(c)}})}try{let l=$d.create(r,n);i(null,e(l,t,n))}catch(l){i(l)}}ca.create=$d.create;ca.toCanvas=Ud.bind(null,qE.render);ca.toDataURL=Ud.bind(null,qE.renderToDataURL);ca.toString=Ud.bind(null,function(e,t,r){return l4.render(e,r)})});var ma=globalThis,da=ma.ShadowRoot&&(ma.ShadyCSS===void 0||ma.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,vc=Symbol(),zd=new WeakMap,Do=class{constructor(t,r,n){if(this._$cssResult$=!0,n!==vc)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(da&&t===void 0){let n=r!==void 0&&r.length===1;n&&(t=zd.get(r)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),n&&zd.set(r,t))}return t}toString(){return this.cssText}},oe=e=>new Do(typeof e=="string"?e:e+"",void 0,vc),we=(e,...t)=>{let r=e.length===1?e[0]:t.reduce((n,i,o)=>n+(s=>{if(s._$cssResult$===!0)return s.cssText;if(typeof s=="number")return s;throw Error("Value passed to 'css' function must be a 'css' function result: "+s+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(i)+e[o+1],e[0]);return new Do(r,e,vc)},Sc=(e,t)=>{if(da)e.adoptedStyleSheets=t.map(r=>r instanceof CSSStyleSheet?r:r.styleSheet);else for(let r of t){let n=document.createElement("style"),i=ma.litNonce;i!==void 0&&n.setAttribute("nonce",i),n.textContent=r.cssText,e.appendChild(n)}},ga=da?e=>e:e=>e instanceof CSSStyleSheet?(t=>{let r="";for(let n of t.cssRules)r+=n.cssText;return oe(r)})(e):e;var{is:rC,defineProperty:nC,getOwnPropertyDescriptor:iC,getOwnPropertyNames:oC,getOwnPropertySymbols:sC,getPrototypeOf:aC}=Object,ya=globalThis,qd=ya.trustedTypes,lC=qd?qd.emptyScript:"",uC=ya.reactiveElementPolyfillSupport,Po=(e,t)=>e,No={toAttribute(e,t){switch(t){case Boolean:e=e?lC: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}},xa=(e,t)=>!rC(e,t),Hd={attribute:!0,type:String,converter:No,reflect:!1,hasChanged:xa};Symbol.metadata??=Symbol("metadata"),ya.litPropertyMetadata??=new WeakMap;var lr=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=Hd){if(r.state&&(r.attribute=!1),this._$Ei(),this.elementProperties.set(t,r),!r.noAccessor){let n=Symbol(),i=this.getPropertyDescriptor(t,n,r);i!==void 0&&nC(this.prototype,t,i)}}static getPropertyDescriptor(t,r,n){let{get:i,set:o}=iC(this.prototype,t)??{get(){return this[r]},set(s){this[r]=s}};return{get(){return i?.call(this)},set(s){let a=i?.call(this);o.call(this,s),this.requestUpdate(t,a,n)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??Hd}static _$Ei(){if(this.hasOwnProperty(Po("elementProperties")))return;let t=aC(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(Po("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(Po("properties"))){let r=this.properties,n=[...oC(r),...sC(r)];for(let i of n)this.createProperty(i,r[i])}let t=this[Symbol.metadata];if(t!==null){let r=litPropertyMetadata.get(t);if(r!==void 0)for(let[n,i]of r)this.elementProperties.set(n,i)}this._$Eh=new Map;for(let[r,n]of this.elementProperties){let i=this._$Eu(r,n);i!==void 0&&this._$Eh.set(i,r)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){let r=[];if(Array.isArray(t)){let n=new Set(t.flat(1/0).reverse());for(let i of n)r.unshift(ga(i))}else t!==void 0&&r.push(ga(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 Sc(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach(t=>t.hostConnected?.())}enableUpdating(t){}disconnectedCallback(){this._$EO?.forEach(t=>t.hostDisconnected?.())}attributeChangedCallback(t,r,n){this._$AK(t,n)}_$EC(t,r){let n=this.constructor.elementProperties.get(t),i=this.constructor._$Eu(t,n);if(i!==void 0&&n.reflect===!0){let o=(n.converter?.toAttribute!==void 0?n.converter:No).toAttribute(r,n.type);this._$Em=t,o==null?this.removeAttribute(i):this.setAttribute(i,o),this._$Em=null}}_$AK(t,r){let n=this.constructor,i=n._$Eh.get(t);if(i!==void 0&&this._$Em!==i){let o=n.getPropertyOptions(i),s=typeof o.converter=="function"?{fromAttribute:o.converter}:o.converter?.fromAttribute!==void 0?o.converter:No;this._$Em=i,this[i]=s.fromAttribute(r,o.type),this._$Em=null}}requestUpdate(t,r,n){if(t!==void 0){if(n??=this.constructor.getPropertyOptions(t),!(n.hasChanged??xa)(this[t],r))return;this.P(t,r,n)}this.isUpdatePending===!1&&(this._$ES=this._$ET())}P(t,r,n){this._$AL.has(t)||this._$AL.set(t,r),n.reflect===!0&&this._$Em!==t&&(this._$Ej??=new Set).add(t)}async _$ET(){this.isUpdatePending=!0;try{await this._$ES}catch(r){Promise.reject(r)}let t=this.scheduleUpdate();return t!=null&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(let[i,o]of this._$Ep)this[i]=o;this._$Ep=void 0}let n=this.constructor.elementProperties;if(n.size>0)for(let[i,o]of n)o.wrapped!==!0||this._$AL.has(i)||this[i]===void 0||this.P(i,this[i],o)}let t=!1,r=this._$AL;try{t=this.shouldUpdate(r),t?(this.willUpdate(r),this._$EO?.forEach(n=>n.hostUpdate?.()),this.update(r)):this._$EU()}catch(n){throw t=!1,this._$EU(),n}t&&this._$AE(r)}willUpdate(t){}_$AE(t){this._$EO?.forEach(r=>r.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Ej&&=this._$Ej.forEach(r=>this._$EC(r,this[r])),this._$EU()}updated(t){}firstUpdated(t){}};lr.elementStyles=[],lr.shadowRootOptions={mode:"open"},lr[Po("elementProperties")]=new Map,lr[Po("finalized")]=new Map,uC?.({ReactiveElement:lr}),(ya.reactiveElementVersions??=[]).push("2.0.4");var Ac=globalThis,ba=Ac.trustedTypes,Wd=ba?ba.createPolicy("lit-html",{createHTML:e=>e}):void 0,Ec="$lit$",ur=`lit$${Math.random().toFixed(9).slice(2)}$`,Cc="?"+ur,cC=`<${Cc}>`,pn=document,Ro=()=>pn.createComment(""),Lo=e=>e===null||typeof e!="object"&&typeof e!="function",Tc=Array.isArray,Zd=e=>Tc(e)||typeof e?.[Symbol.iterator]=="function",kc=`[
|
|
42
|
+
\f\r]`,Fo=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Vd=/-->/g,Yd=/>/g,cn=RegExp(`>|${kc}(?:([^\\s"'>=/]+)(${kc}*=${kc}*(?:[^
|
|
43
|
+
\f\r"'\`<>=]|("|')|))|$)`,"g"),Gd=/'/g,Jd=/"/g,Xd=/^(?:script|style|textarea|title)$/i,_c=e=>(t,...r)=>({_$litType$:e,strings:t,values:r}),Z=_c(1),m4=_c(2),d4=_c(3),Ue=Symbol.for("lit-noChange"),Ne=Symbol.for("lit-nothing"),Qd=new WeakMap,fn=pn.createTreeWalker(pn,129);function Kd(e,t){if(!Tc(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return Wd!==void 0?Wd.createHTML(t):t}var eg=(e,t)=>{let r=e.length-1,n=[],i,o=t===2?"<svg>":t===3?"<math>":"",s=Fo;for(let a=0;a<r;a++){let l=e[a],u,c,f=-1,p=0;for(;p<l.length&&(s.lastIndex=p,c=s.exec(l),c!==null);)p=s.lastIndex,s===Fo?c[1]==="!--"?s=Vd:c[1]!==void 0?s=Yd:c[2]!==void 0?(Xd.test(c[2])&&(i=RegExp("</"+c[2],"g")),s=cn):c[3]!==void 0&&(s=cn):s===cn?c[0]===">"?(s=i??Fo,f=-1):c[1]===void 0?f=-2:(f=s.lastIndex-c[2].length,u=c[1],s=c[3]===void 0?cn:c[3]==='"'?Jd:Gd):s===Jd||s===Gd?s=cn:s===Vd||s===Yd?s=Fo:(s=cn,i=void 0);let h=s===cn&&e[a+1].startsWith("/>")?" ":"";o+=s===Fo?l+cC:f>=0?(n.push(u),l.slice(0,f)+Ec+l.slice(f)+ur+h):l+ur+(f===-2?a:h)}return[Kd(e,o+(e[r]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),n]},Bo=class e{constructor({strings:t,_$litType$:r},n){let i;this.parts=[];let o=0,s=0,a=t.length-1,l=this.parts,[u,c]=eg(t,r);if(this.el=e.createElement(u,n),fn.currentNode=this.el.content,r===2||r===3){let f=this.el.content.firstChild;f.replaceWith(...f.childNodes)}for(;(i=fn.nextNode())!==null&&l.length<a;){if(i.nodeType===1){if(i.hasAttributes())for(let f of i.getAttributeNames())if(f.endsWith(Ec)){let p=c[s++],h=i.getAttribute(f).split(ur),m=/([.?@])?(.*)/.exec(p);l.push({type:1,index:o,name:m[2],strings:h,ctor:m[1]==="."?va:m[1]==="?"?Sa:m[1]==="@"?ka:mn}),i.removeAttribute(f)}else f.startsWith(ur)&&(l.push({type:6,index:o}),i.removeAttribute(f));if(Xd.test(i.tagName)){let f=i.textContent.split(ur),p=f.length-1;if(p>0){i.textContent=ba?ba.emptyScript:"";for(let h=0;h<p;h++)i.append(f[h],Ro()),fn.nextNode(),l.push({type:2,index:++o});i.append(f[p],Ro())}}}else if(i.nodeType===8)if(i.data===Cc)l.push({type:2,index:o});else{let f=-1;for(;(f=i.data.indexOf(ur,f+1))!==-1;)l.push({type:7,index:o}),f+=ur.length-1}o++}}static createElement(t,r){let n=pn.createElement("template");return n.innerHTML=t,n}};function hn(e,t,r=e,n){if(t===Ue)return t;let i=n!==void 0?r._$Co?.[n]:r._$Cl,o=Lo(t)?void 0:t._$litDirective$;return i?.constructor!==o&&(i?._$AO?.(!1),o===void 0?i=void 0:(i=new o(e),i._$AT(e,r,n)),n!==void 0?(r._$Co??=[])[n]=i:r._$Cl=i),i!==void 0&&(t=hn(e,i._$AS(e,t.values),i,n)),t}var wa=class{constructor(t,r){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=r}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){let{el:{content:r},parts:n}=this._$AD,i=(t?.creationScope??pn).importNode(r,!0);fn.currentNode=i;let o=fn.nextNode(),s=0,a=0,l=n[0];for(;l!==void 0;){if(s===l.index){let u;l.type===2?u=new fi(o,o.nextSibling,this,t):l.type===1?u=new l.ctor(o,l.name,l.strings,this,t):l.type===6&&(u=new Aa(o,this,t)),this._$AV.push(u),l=n[++a]}s!==l?.index&&(o=fn.nextNode(),s++)}return fn.currentNode=pn,i}p(t){let r=0;for(let n of this._$AV)n!==void 0&&(n.strings!==void 0?(n._$AI(t,n,r),r+=n.strings.length-2):n._$AI(t[r])),r++}},fi=class e{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,r,n,i){this.type=2,this._$AH=Ne,this._$AN=void 0,this._$AA=t,this._$AB=r,this._$AM=n,this.options=i,this._$Cv=i?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode,r=this._$AM;return r!==void 0&&t?.nodeType===11&&(t=r.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,r=this){t=hn(this,t,r),Lo(t)?t===Ne||t==null||t===""?(this._$AH!==Ne&&this._$AR(),this._$AH=Ne):t!==this._$AH&&t!==Ue&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):Zd(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!==Ne&&Lo(this._$AH)?this._$AA.nextSibling.data=t:this.T(pn.createTextNode(t)),this._$AH=t}$(t){let{values:r,_$litType$:n}=t,i=typeof n=="number"?this._$AC(t):(n.el===void 0&&(n.el=Bo.createElement(Kd(n.h,n.h[0]),this.options)),n);if(this._$AH?._$AD===i)this._$AH.p(r);else{let o=new wa(i,this),s=o.u(this.options);o.p(r),this.T(s),this._$AH=o}}_$AC(t){let r=Qd.get(t.strings);return r===void 0&&Qd.set(t.strings,r=new Bo(t)),r}k(t){Tc(this._$AH)||(this._$AH=[],this._$AR());let r=this._$AH,n,i=0;for(let o of t)i===r.length?r.push(n=new e(this.O(Ro()),this.O(Ro()),this,this.options)):n=r[i],n._$AI(o),i++;i<r.length&&(this._$AR(n&&n._$AB.nextSibling,i),r.length=i)}_$AR(t=this._$AA.nextSibling,r){for(this._$AP?.(!1,!0,r);t&&t!==this._$AB;){let n=t.nextSibling;t.remove(),t=n}}setConnected(t){this._$AM===void 0&&(this._$Cv=t,this._$AP?.(t))}},mn=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,r,n,i,o){this.type=1,this._$AH=Ne,this._$AN=void 0,this.element=t,this.name=r,this._$AM=i,this.options=o,n.length>2||n[0]!==""||n[1]!==""?(this._$AH=Array(n.length-1).fill(new String),this.strings=n):this._$AH=Ne}_$AI(t,r=this,n,i){let o=this.strings,s=!1;if(o===void 0)t=hn(this,t,r,0),s=!Lo(t)||t!==this._$AH&&t!==Ue,s&&(this._$AH=t);else{let a=t,l,u;for(t=o[0],l=0;l<o.length-1;l++)u=hn(this,a[n+l],r,l),u===Ue&&(u=this._$AH[l]),s||=!Lo(u)||u!==this._$AH[l],u===Ne?t=Ne:t!==Ne&&(t+=(u??"")+o[l+1]),this._$AH[l]=u}s&&!i&&this.j(t)}j(t){t===Ne?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},va=class extends mn{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===Ne?void 0:t}},Sa=class extends mn{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==Ne)}},ka=class extends mn{constructor(t,r,n,i,o){super(t,r,n,i,o),this.type=5}_$AI(t,r=this){if((t=hn(this,t,r,0)??Ne)===Ue)return;let n=this._$AH,i=t===Ne&&n!==Ne||t.capture!==n.capture||t.once!==n.once||t.passive!==n.passive,o=t!==Ne&&(n===Ne||i);i&&this.element.removeEventListener(this.name,this,n),o&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}},Aa=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){hn(this,t)}},tg={M:Ec,P:ur,A:Cc,C:1,L:eg,R:wa,D:Zd,V:hn,I:fi,H:mn,N:Sa,U:ka,B:va,F:Aa},fC=Ac.litHtmlPolyfillSupport;fC?.(Bo,fi),(Ac.litHtmlVersions??=[]).push("3.2.1");var $o=(e,t,r)=>{let n=r?.renderBefore??t,i=n._$litPart$;if(i===void 0){let o=r?.renderBefore??null;n._$litPart$=i=new fi(t.insertBefore(Ro(),o),o,void 0,r??{})}return i._$AI(e),i};var Nr=class extends lr{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=$o(r,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return Ue}};Nr._$litElement$=!0,Nr.finalized=!0,globalThis.litElementHydrateSupport?.({LitElement:Nr});var pC=globalThis.litElementPolyfillSupport;pC?.({LitElement:Nr});(globalThis.litElementVersions??=[]).push("4.1.1");var MA=$e(Ca(),1);var Se={};ue(Se,{ObservableIntake:()=>Wc,Observablemap:()=>Hc,rxjs:()=>Wo});var re={};ue(re,{CumulativeDeferred:()=>_a,Deferred:()=>Ta,cumulativeDefer:()=>mC,defer:()=>dn,getFirstTrueOrFalse:()=>bC,map:()=>yC,rejectedPromise:()=>gC,resolvedPromise:()=>dC,timeoutAndContinue:()=>xC,timeoutWrap:()=>rg});var Ta=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"})}},dn=()=>new Ta;var _a=class{constructor(){this.accumulatedPromises=[],this.deferred=dn(),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)}},mC=()=>new _a;var dC=e=>Promise.resolve(e),gC=e=>Promise.reject(e),yC=async(e,t)=>{let r=[],n=[];for(let i of e){let o=t(i);r.push(o),o.then(s=>{n.push(s)})}return await Promise.all(r),n},rg=async(e,t,r=!0)=>new Promise((n,i)=>{setTimeout(()=>{r?i(new Error("timeout")):n(null)},t),e.then(n,i)}),xC=async(e,t=6e4)=>rg(e,t,!1),bC=async e=>{let t=dn();for(let r of e)r.then(n=>{n===!0&&t.resolve(!0)});return Promise.all(e).then(()=>{t.resolve(!1)}),t.promise};var Wo={};ue(Wo,{Observable:()=>Ee,ReplaySubject:()=>Nc,Subject:()=>fr,Subscription:()=>$t,from:()=>wn,fromEvent:()=>Sn,of:()=>Rc,ops:()=>WC});var Ic=function(e,t){return Ic=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i])},Ic(e,t)};function it(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Ic(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}function ng(e,t,r,n){function i(o){return o instanceof r?o:new r(function(s){s(o)})}return new(r||(r=Promise))(function(o,s){function a(c){try{u(n.next(c))}catch(f){s(f)}}function l(c){try{u(n.throw(c))}catch(f){s(f)}}function u(c){c.done?o(c.value):i(c.value).then(a,l)}u((n=n.apply(e,t||[])).next())})}function Ia(e,t){var r={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},n,i,o,s=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return s.next=a(0),s.throw=a(1),s.return=a(2),typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function a(u){return function(c){return l([u,c])}}function l(u){if(n)throw new TypeError("Generator is already executing.");for(;s&&(s=0,u[0]&&(r=0)),r;)try{if(n=1,i&&(o=u[0]&2?i.return:u[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,u[1])).done)return o;switch(i=0,o&&(u=[u[0]&2,o.value]),u[0]){case 0:case 1:o=u;break;case 4:return r.label++,{value:u[1],done:!1};case 5:r.label++,i=u[1],u=[0];continue;case 7:u=r.ops.pop(),r.trys.pop();continue;default:if(o=r.trys,!(o=o.length>0&&o[o.length-1])&&(u[0]===6||u[0]===2)){r=0;continue}if(u[0]===3&&(!o||u[1]>o[0]&&u[1]<o[3])){r.label=u[1];break}if(u[0]===6&&r.label<o[1]){r.label=o[1],o=u;break}if(o&&r.label<o[2]){r.label=o[2],r.ops.push(u);break}o[2]&&r.ops.pop(),r.trys.pop();continue}u=t.call(e,r)}catch(c){u=[6,c],i=0}finally{n=o=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}function cr(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function vt(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),i,o=[],s;try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)o.push(i.value)}catch(a){s={error:a}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(s)throw s.error}}return o}function Bt(e,t,r){if(r||arguments.length===2)for(var n=0,i=t.length,o;n<i;n++)(o||!(n in t))&&(o||(o=Array.prototype.slice.call(t,0,n)),o[n]=t[n]);return e.concat(o||Array.prototype.slice.call(t))}function gn(e){return this instanceof gn?(this.v=e,this):new gn(e)}function ig(e,t,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=r.apply(e,t||[]),i,o=[];return i=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),a("next"),a("throw"),a("return",s),i[Symbol.asyncIterator]=function(){return this},i;function s(h){return function(m){return Promise.resolve(m).then(h,f)}}function a(h,m){n[h]&&(i[h]=function(x){return new Promise(function(v,w){o.push([h,x,v,w])>1||l(h,x)})},m&&(i[h]=m(i[h])))}function l(h,m){try{u(n[h](m))}catch(x){p(o[0][3],x)}}function u(h){h.value instanceof gn?Promise.resolve(h.value.v).then(c,f):p(o[0][2],h)}function c(h){l("next",h)}function f(h){l("throw",h)}function p(h,m){h(m),o.shift(),o.length&&l(o[0][0],o[0][1])}}function og(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 cr=="function"?cr(e):e[Symbol.iterator](),r={},n("next"),n("throw"),n("return"),r[Symbol.asyncIterator]=function(){return this},r);function n(o){r[o]=e[o]&&function(s){return new Promise(function(a,l){s=e[o](s),i(a,l,s.done,s.value)})}}function i(o,s,a,l){Promise.resolve(l).then(function(u){o({value:u,done:a})},s)}}function ae(e){return typeof e=="function"}function Oa(e){var t=function(n){Error.call(n),n.stack=new Error().stack},r=e(t);return r.prototype=Object.create(Error.prototype),r.prototype.constructor=r,r}var Ma=Oa(function(e){return function(r){e(this),this.message=r?r.length+` errors occurred during unsubscription:
|
|
44
|
+
`+r.map(function(n,i){return i+1+") "+n.toString()}).join(`
|
|
45
|
+
`):"",this.name="UnsubscriptionError",this.errors=r}});function yn(e,t){if(e){var r=e.indexOf(t);0<=r&&e.splice(r,1)}}var $t=function(){function e(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}return e.prototype.unsubscribe=function(){var t,r,n,i,o;if(!this.closed){this.closed=!0;var s=this._parentage;if(s)if(this._parentage=null,Array.isArray(s))try{for(var a=cr(s),l=a.next();!l.done;l=a.next()){var u=l.value;u.remove(this)}}catch(x){t={error:x}}finally{try{l&&!l.done&&(r=a.return)&&r.call(a)}finally{if(t)throw t.error}}else s.remove(this);var c=this.initialTeardown;if(ae(c))try{c()}catch(x){o=x instanceof Ma?x.errors:[x]}var f=this._finalizers;if(f){this._finalizers=null;try{for(var p=cr(f),h=p.next();!h.done;h=p.next()){var m=h.value;try{sg(m)}catch(x){o=o??[],x instanceof Ma?o=Bt(Bt([],vt(o)),vt(x.errors)):o.push(x)}}}catch(x){n={error:x}}finally{try{h&&!h.done&&(i=p.return)&&i.call(p)}finally{if(n)throw n.error}}}if(o)throw new Ma(o)}},e.prototype.add=function(t){var r;if(t&&t!==this)if(this.closed)sg(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)&&yn(r,t)},e.prototype.remove=function(t){var r=this._finalizers;r&&yn(r,t),t instanceof e&&t._removeParent(this)},e.EMPTY=function(){var t=new e;return t.closed=!0,t}(),e}();var Oc=$t.EMPTY;function Da(e){return e instanceof $t||e&&"closed"in e&&ae(e.remove)&&ae(e.add)&&ae(e.unsubscribe)}function sg(e){ae(e)?e():e.unsubscribe()}var Ut={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};var pi={setTimeout:function(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var i=pi.delegate;return i?.setTimeout?i.setTimeout.apply(i,Bt([e,t],vt(r))):setTimeout.apply(void 0,Bt([e,t],vt(r)))},clearTimeout:function(e){var t=pi.delegate;return(t?.clearTimeout||clearTimeout)(e)},delegate:void 0};function Pa(e){pi.setTimeout(function(){var t=Ut.onUnhandledError;if(t)t(e);else throw e})}function xn(){}var ag=function(){return Mc("C",void 0,void 0)}();function lg(e){return Mc("E",void 0,e)}function ug(e){return Mc("N",e,void 0)}function Mc(e,t,r){return{kind:e,value:t,error:r}}var bn=null;function hi(e){if(Ut.useDeprecatedSynchronousErrorHandling){var t=!bn;if(t&&(bn={errorThrown:!1,error:null}),e(),t){var r=bn,n=r.errorThrown,i=r.error;if(bn=null,n)throw i}}else e()}function cg(e){Ut.useDeprecatedSynchronousErrorHandling&&bn&&(bn.errorThrown=!0,bn.error=e)}var Uo=function(e){it(t,e);function t(r){var n=e.call(this)||this;return n.isStopped=!1,r?(n.destination=r,Da(r)&&r.add(n)):n.destination=AC,n}return t.create=function(r,n,i){return new Fa(r,n,i)},t.prototype.next=function(r){this.isStopped?Pc(ug(r),this):this._next(r)},t.prototype.error=function(r){this.isStopped?Pc(lg(r),this):(this.isStopped=!0,this._error(r))},t.prototype.complete=function(){this.isStopped?Pc(ag,this):(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this),this.destination=null)},t.prototype._next=function(r){this.destination.next(r)},t.prototype._error=function(r){try{this.destination.error(r)}finally{this.unsubscribe()}},t.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},t}($t);var vC=Function.prototype.bind;function Dc(e,t){return vC.call(e,t)}var SC=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){Na(n)}},e.prototype.error=function(t){var r=this.partialObserver;if(r.error)try{r.error(t)}catch(n){Na(n)}else Na(t)},e.prototype.complete=function(){var t=this.partialObserver;if(t.complete)try{t.complete()}catch(r){Na(r)}},e}(),Fa=function(e){it(t,e);function t(r,n,i){var o=e.call(this)||this,s;if(ae(r)||!r)s={next:r??void 0,error:n??void 0,complete:i??void 0};else{var a;o&&Ut.useDeprecatedNextContext?(a=Object.create(r),a.unsubscribe=function(){return o.unsubscribe()},s={next:r.next&&Dc(r.next,a),error:r.error&&Dc(r.error,a),complete:r.complete&&Dc(r.complete,a)}):s=r}return o.destination=new SC(s),o}return t}(Uo);function Na(e){Ut.useDeprecatedSynchronousErrorHandling?cg(e):Pa(e)}function kC(e){throw e}function Pc(e,t){var r=Ut.onStoppedNotification;r&&pi.setTimeout(function(){return r(e,t)})}var AC={closed:!0,next:xn,error:kC,complete:xn};var mi=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function Ra(e){return e}function fg(e){return e.length===0?Ra:e.length===1?e[0]:function(r){return e.reduce(function(n,i){return i(n)},r)}}var Ee=function(){function e(t){t&&(this._subscribe=t)}return e.prototype.lift=function(t){var r=new e;return r.source=this,r.operator=t,r},e.prototype.subscribe=function(t,r,n){var i=this,o=CC(t)?t:new Fa(t,r,n);return hi(function(){var s=i,a=s.operator,l=s.source;o.add(a?a.call(o,l):l?i._subscribe(o):i._trySubscribe(o))}),o},e.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(r){t.error(r)}},e.prototype.forEach=function(t,r){var n=this;return r=pg(r),new r(function(i,o){var s=new Fa({next:function(a){try{t(a)}catch(l){o(l),s.unsubscribe()}},error:o,complete:i});n.subscribe(s)})},e.prototype._subscribe=function(t){var r;return(r=this.source)===null||r===void 0?void 0:r.subscribe(t)},e.prototype[mi]=function(){return this},e.prototype.pipe=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return fg(t)(this)},e.prototype.toPromise=function(t){var r=this;return t=pg(t),new t(function(n,i){var o;r.subscribe(function(s){return o=s},function(s){return i(s)},function(){return n(o)})})},e.create=function(t){return new e(t)},e}();function pg(e){var t;return(t=e??Ut.Promise)!==null&&t!==void 0?t:Promise}function EC(e){return e&&ae(e.next)&&ae(e.error)&&ae(e.complete)}function CC(e){return e&&e instanceof Uo||EC(e)&&Da(e)}function TC(e){return ae(e?.lift)}function je(e){return function(t){if(TC(t))return t.lift(function(r){try{return e(r,this)}catch(n){this.error(n)}});throw new TypeError("Unable to lift unknown Observable type")}}function We(e,t,r,n,i){return new _C(e,t,r,n,i)}var _C=function(e){it(t,e);function t(r,n,i,o,s,a){var l=e.call(this,r)||this;return l.onFinalize=s,l.shouldUnsubscribe=a,l._next=n?function(u){try{n(u)}catch(c){r.error(c)}}:e.prototype._next,l._error=o?function(u){try{o(u)}catch(c){r.error(c)}finally{this.unsubscribe()}}:e.prototype._error,l._complete=i?function(){try{i()}catch(u){r.error(u)}finally{this.unsubscribe()}}:e.prototype._complete,l}return t.prototype.unsubscribe=function(){var r;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){var n=this.closed;e.prototype.unsubscribe.call(this),!n&&((r=this.onFinalize)===null||r===void 0||r.call(this))}},t}(Uo);var hg=Oa(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}});var fr=function(e){it(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 mg(this,this);return n.operator=r,n},t.prototype._throwIfClosed=function(){if(this.closed)throw new hg},t.prototype.next=function(r){var n=this;hi(function(){var i,o;if(n._throwIfClosed(),!n.isStopped){n.currentObservers||(n.currentObservers=Array.from(n.observers));try{for(var s=cr(n.currentObservers),a=s.next();!a.done;a=s.next()){var l=a.value;l.next(r)}}catch(u){i={error:u}}finally{try{a&&!a.done&&(o=s.return)&&o.call(s)}finally{if(i)throw i.error}}}})},t.prototype.error=function(r){var n=this;hi(function(){if(n._throwIfClosed(),!n.isStopped){n.hasError=n.isStopped=!0,n.thrownError=r;for(var i=n.observers;i.length;)i.shift().error(r)}})},t.prototype.complete=function(){var r=this;hi(function(){if(r._throwIfClosed(),!r.isStopped){r.isStopped=!0;for(var n=r.observers;n.length;)n.shift().complete()}})},t.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(t.prototype,"observed",{get:function(){var r;return((r=this.observers)===null||r===void 0?void 0:r.length)>0},enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(r){return this._throwIfClosed(),e.prototype._trySubscribe.call(this,r)},t.prototype._subscribe=function(r){return this._throwIfClosed(),this._checkFinalizedStatuses(r),this._innerSubscribe(r)},t.prototype._innerSubscribe=function(r){var n=this,i=this,o=i.hasError,s=i.isStopped,a=i.observers;return o||s?Oc:(this.currentObservers=null,a.push(r),new $t(function(){n.currentObservers=null,yn(a,r)}))},t.prototype._checkFinalizedStatuses=function(r){var n=this,i=n.hasError,o=n.thrownError,s=n.isStopped;i?r.error(o):s&&r.complete()},t.prototype.asObservable=function(){var r=new Ee;return r.source=this,r},t.create=function(r,n){return new mg(r,n)},t}(Ee);var mg=function(e){it(t,e);function t(r,n){var i=e.call(this)||this;return i.destination=r,i.source=n,i}return t.prototype.next=function(r){var n,i;(i=(n=this.destination)===null||n===void 0?void 0:n.next)===null||i===void 0||i.call(n,r)},t.prototype.error=function(r){var n,i;(i=(n=this.destination)===null||n===void 0?void 0:n.error)===null||i===void 0||i.call(n,r)},t.prototype.complete=function(){var r,n;(n=(r=this.destination)===null||r===void 0?void 0:r.complete)===null||n===void 0||n.call(r)},t.prototype._subscribe=function(r){var n,i;return(i=(n=this.source)===null||n===void 0?void 0:n.subscribe(r))!==null&&i!==void 0?i:Oc},t}(fr);var jo={now:function(){return(jo.delegate||Date).now()},delegate:void 0};var Nc=function(e){it(t,e);function t(r,n,i){r===void 0&&(r=1/0),n===void 0&&(n=1/0),i===void 0&&(i=jo);var o=e.call(this)||this;return o._bufferSize=r,o._windowTime=n,o._timestampProvider=i,o._buffer=[],o._infiniteTimeWindow=!0,o._infiniteTimeWindow=n===1/0,o._bufferSize=Math.max(1,r),o._windowTime=Math.max(1,n),o}return t.prototype.next=function(r){var n=this,i=n.isStopped,o=n._buffer,s=n._infiniteTimeWindow,a=n._timestampProvider,l=n._windowTime;i||(o.push(r),!s&&o.push(a.now()+l)),this._trimBuffer(),e.prototype.next.call(this,r)},t.prototype._subscribe=function(r){this._throwIfClosed(),this._trimBuffer();for(var n=this._innerSubscribe(r),i=this,o=i._infiniteTimeWindow,s=i._buffer,a=s.slice(),l=0;l<a.length&&!r.closed;l+=o?1:2)r.next(a[l]);return this._checkFinalizedStatuses(r),n},t.prototype._trimBuffer=function(){var r=this,n=r._bufferSize,i=r._timestampProvider,o=r._buffer,s=r._infiniteTimeWindow,a=(s?1:2)*n;if(n<1/0&&a<o.length&&o.splice(0,o.length-a),!s){for(var l=i.now(),u=0,c=1;c<o.length&&o[c]<=l;c+=2)u=c;u&&o.splice(0,u+1)}},t}(fr);var dg=function(e){it(t,e);function t(r,n){return e.call(this)||this}return t.prototype.schedule=function(r,n){return n===void 0&&(n=0),this},t}($t);var zo={setInterval:function(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var i=zo.delegate;return i?.setInterval?i.setInterval.apply(i,Bt([e,t],vt(r))):setInterval.apply(void 0,Bt([e,t],vt(r)))},clearInterval:function(e){var t=zo.delegate;return(t?.clearInterval||clearInterval)(e)},delegate:void 0};var gg=function(e){it(t,e);function t(r,n){var i=e.call(this,r,n)||this;return i.scheduler=r,i.work=n,i.pending=!1,i}return t.prototype.schedule=function(r,n){var i;if(n===void 0&&(n=0),this.closed)return this;this.state=r;var o=this.id,s=this.scheduler;return o!=null&&(this.id=this.recycleAsyncId(s,o,n)),this.pending=!0,this.delay=n,this.id=(i=this.id)!==null&&i!==void 0?i:this.requestAsyncId(s,this.id,n),this},t.prototype.requestAsyncId=function(r,n,i){return i===void 0&&(i=0),zo.setInterval(r.flush.bind(r,this),i)},t.prototype.recycleAsyncId=function(r,n,i){if(i===void 0&&(i=0),i!=null&&this.delay===i&&this.pending===!1)return n;n!=null&&zo.clearInterval(n)},t.prototype.execute=function(r,n){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var i=this._execute(r,n);if(i)return i;this.pending===!1&&this.id!=null&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},t.prototype._execute=function(r,n){var i=!1,o;try{this.work(r)}catch(s){i=!0,o=s||new Error("Scheduled action threw falsy error")}if(i)return this.unsubscribe(),o},t.prototype.unsubscribe=function(){if(!this.closed){var r=this,n=r.id,i=r.scheduler,o=i.actions;this.work=this.state=this.scheduler=null,this.pending=!1,yn(o,this),n!=null&&(this.id=this.recycleAsyncId(i,n,null)),this.delay=null,e.prototype.unsubscribe.call(this)}},t}(dg);var Fc=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=jo.now,e}();var yg=function(e){it(t,e);function t(r,n){n===void 0&&(n=Fc.now);var i=e.call(this,r,n)||this;return i.actions=[],i._active=!1,i}return t.prototype.flush=function(r){var n=this.actions;if(this._active){n.push(r);return}var i;this._active=!0;do if(i=r.execute(r.state,r.delay))break;while(r=n.shift());if(this._active=!1,i){for(;r=n.shift();)r.unsubscribe();throw i}},t}(Fc);var qo=new yg(gg),xg=qo;function La(e){return e&&ae(e.schedule)}function IC(e){return e[e.length-1]}function di(e){return La(IC(e))?e.pop():void 0}var gi=function(e){return e&&typeof e.length=="number"&&typeof e!="function"};function Ba(e){return ae(e?.then)}function $a(e){return ae(e[mi])}function Ua(e){return Symbol.asyncIterator&&ae(e?.[Symbol.asyncIterator])}function ja(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 OC(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var za=OC();function qa(e){return ae(e?.[za])}function Ha(e){return ig(this,arguments,function(){var r,n,i,o;return Ia(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,gn(r.read())];case 3:return n=s.sent(),i=n.value,o=n.done,o?[4,gn(void 0)]:[3,5];case 4:return[2,s.sent()];case 5:return[4,gn(i)];case 6:return[4,s.sent()];case 7:return s.sent(),[3,2];case 8:return[3,10];case 9:return r.releaseLock(),[7];case 10:return[2]}})})}function Wa(e){return ae(e?.getReader)}function Xe(e){if(e instanceof Ee)return e;if(e!=null){if($a(e))return MC(e);if(gi(e))return DC(e);if(Ba(e))return PC(e);if(Ua(e))return bg(e);if(qa(e))return NC(e);if(Wa(e))return FC(e)}throw ja(e)}function MC(e){return new Ee(function(t){var r=e[mi]();if(ae(r.subscribe))return r.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function DC(e){return new Ee(function(t){for(var r=0;r<e.length&&!t.closed;r++)t.next(e[r]);t.complete()})}function PC(e){return new Ee(function(t){e.then(function(r){t.closed||(t.next(r),t.complete())},function(r){return t.error(r)}).then(null,Pa)})}function NC(e){return new Ee(function(t){var r,n;try{for(var i=cr(e),o=i.next();!o.done;o=i.next()){var s=o.value;if(t.next(s),t.closed)return}}catch(a){r={error:a}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}t.complete()})}function bg(e){return new Ee(function(t){RC(e,t).catch(function(r){return t.error(r)})})}function FC(e){return bg(Ha(e))}function RC(e,t){var r,n,i,o;return ng(this,void 0,void 0,function(){var s,a;return Ia(this,function(l){switch(l.label){case 0:l.trys.push([0,5,6,11]),r=og(e),l.label=1;case 1:return[4,r.next()];case 2:if(n=l.sent(),!!n.done)return[3,4];if(s=n.value,t.next(s),t.closed)return[2];l.label=3;case 3:return[3,1];case 4:return[3,11];case 5:return a=l.sent(),i={error:a},[3,11];case 6:return l.trys.push([6,,9,10]),n&&!n.done&&(o=r.return)?[4,o.call(r)]:[3,8];case 7:l.sent(),l.label=8;case 8:return[3,10];case 9:if(i)throw i.error;return[7];case 10:return[7];case 11:return t.complete(),[2]}})})}function Ct(e,t,r,n,i){n===void 0&&(n=0),i===void 0&&(i=!1);var o=t.schedule(function(){r(),i?e.add(this.schedule(null,n)):this.unsubscribe()},n);if(e.add(o),!i)return o}function Va(e,t){return t===void 0&&(t=0),je(function(r,n){r.subscribe(We(n,function(i){return Ct(n,e,function(){return n.next(i)},t)},function(){return Ct(n,e,function(){return n.complete()},t)},function(i){return Ct(n,e,function(){return n.error(i)},t)}))})}function Ya(e,t){return t===void 0&&(t=0),je(function(r,n){n.add(e.schedule(function(){return r.subscribe(n)},t))})}function wg(e,t){return Xe(e).pipe(Ya(t),Va(t))}function vg(e,t){return Xe(e).pipe(Ya(t),Va(t))}function Sg(e,t){return new Ee(function(r){var n=0;return t.schedule(function(){n===e.length?r.complete():(r.next(e[n++]),r.closed||this.schedule())})})}function kg(e,t){return new Ee(function(r){var n;return Ct(r,t,function(){n=e[za](),Ct(r,t,function(){var i,o,s;try{i=n.next(),o=i.value,s=i.done}catch(a){r.error(a);return}s?r.complete():r.next(o)},0,!0)}),function(){return ae(n?.return)&&n.return()}})}function Ga(e,t){if(!e)throw new Error("Iterable cannot be null");return new Ee(function(r){Ct(r,t,function(){var n=e[Symbol.asyncIterator]();Ct(r,t,function(){n.next().then(function(i){i.done?r.complete():r.next(i.value)})},0,!0)})})}function Ag(e,t){return Ga(Ha(e),t)}function Eg(e,t){if(e!=null){if($a(e))return wg(e,t);if(gi(e))return Sg(e,t);if(Ba(e))return vg(e,t);if(Ua(e))return Ga(e,t);if(qa(e))return kg(e,t);if(Wa(e))return Ag(e,t)}throw ja(e)}function wn(e,t){return t?Eg(e,t):Xe(e)}function Rc(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=di(e);return wn(e,r)}function Cg(e){return e instanceof Date&&!isNaN(e)}function vn(e,t){return je(function(r,n){var i=0;r.subscribe(We(n,function(o){n.next(e.call(t,o,i++))}))})}var LC=Array.isArray;function BC(e,t){return LC(t)?e.apply(void 0,Bt([],vt(t))):e(t)}function Tg(e){return vn(function(t){return BC(e,t)})}function _g(e,t,r,n,i,o,s,a){var l=[],u=0,c=0,f=!1,p=function(){f&&!l.length&&!u&&t.complete()},h=function(x){return u<n?m(x):l.push(x)},m=function(x){o&&t.next(x),u++;var v=!1;Xe(r(x,c++)).subscribe(We(t,function(w){i?.(w),o?h(w):t.next(w)},function(){v=!0},void 0,function(){if(v)try{u--;for(var w=function(){var T=l.shift();s?Ct(t,s,function(){return m(T)}):m(T)};l.length&&u<n;)w();p()}catch(T){t.error(T)}}))};return e.subscribe(We(t,h,function(){f=!0,p()})),function(){a?.()}}function Ho(e,t,r){return r===void 0&&(r=1/0),ae(t)?Ho(function(n,i){return vn(function(o,s){return t(n,o,i,s)})(Xe(e(n,i)))},r):(typeof t=="number"&&(r=t),je(function(n,i){return _g(n,i,e,r)}))}function Ig(e){return e===void 0&&(e=1/0),Ho(Ra,e)}function Og(){return Ig(1)}function Lc(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return Og()(wn(e,di(e)))}var $C=["addListener","removeListener"],UC=["addEventListener","removeEventListener"],jC=["on","off"];function Sn(e,t,r,n){if(ae(r)&&(n=r,r=void 0),n)return Sn(e,t,r).pipe(Tg(n));var i=vt(HC(e)?UC.map(function(a){return function(l){return e[a](t,l,r)}}):zC(e)?$C.map(Mg(e,t)):qC(e)?jC.map(Mg(e,t)):[],2),o=i[0],s=i[1];if(!o&&gi(e))return Ho(function(a){return Sn(a,t,r)})(Xe(e));if(!o)throw new TypeError("Invalid event target");return new Ee(function(a){var l=function(){for(var u=[],c=0;c<arguments.length;c++)u[c]=arguments[c];return a.next(1<u.length?u:u[0])};return o(l),function(){return s(l)}})}function Mg(e,t){return function(r){return function(n){return e[r](t,n)}}}function zC(e){return ae(e.addListener)&&ae(e.removeListener)}function qC(e){return ae(e.on)&&ae(e.off)}function HC(e){return ae(e.addEventListener)&&ae(e.removeEventListener)}function Dg(e,t,r){e===void 0&&(e=0),r===void 0&&(r=xg);var n=-1;return t!=null&&(La(t)?r=t:n=t),new Ee(function(i){var o=Cg(e)?+e-r.now():e;o<0&&(o=0);var s=0;return r.schedule(function(){i.closed||(i.next(s++),0<=n?this.schedule(void 0,n):i.complete())},o)})}function Bc(e,t){return je(function(r,n){var i=0;r.subscribe(We(n,function(o){return e.call(t,o,i++)&&n.next(o)}))})}function $c(e){return je(function(t,r){var n=!1,i=null,o=null,s=function(){if(o?.unsubscribe(),o=null,n){n=!1;var a=i;i=null,r.next(a)}};t.subscribe(We(r,function(a){o?.unsubscribe(),n=!0,i=a,o=We(r,s,xn),Xe(e(a)).subscribe(o)},function(){s(),r.complete()},void 0,function(){i=o=null}))})}function Uc(e,t){return t===void 0&&(t=qo),je(function(r,n){var i=null,o=null,s=null,a=function(){if(i){i.unsubscribe(),i=null;var u=o;o=null,n.next(u)}};function l(){var u=s+e,c=t.now();if(c<u){i=this.schedule(void 0,u-c),n.add(i);return}a()}r.subscribe(We(n,function(u){o=u,s=t.now(),i||(i=t.schedule(l,e),n.add(i))},function(){a(),n.complete()},void 0,function(){o=i=null}))})}function jc(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=di(e);return je(function(n,i){(r?Lc(e,n,r):Lc(e,n)).subscribe(i)})}function zc(e){return je(function(t,r){Xe(e).subscribe(We(r,function(){return r.complete()},xn)),!r.closed&&t.subscribe(r)})}function Pg(e,t){return je(function(r,n){var i=t??{},o=i.leading,s=o===void 0?!0:o,a=i.trailing,l=a===void 0?!1:a,u=!1,c=null,f=null,p=!1,h=function(){f?.unsubscribe(),f=null,l&&(v(),p&&n.complete())},m=function(){f=null,p&&n.complete()},x=function(w){return f=Xe(e(w)).subscribe(We(n,h,m))},v=function(){if(u){u=!1;var w=c;c=null,n.next(w),!p&&x(w)}};r.subscribe(We(n,function(w){u=!0,c=w,!(f&&!f.closed)&&(s?v():x(w))},function(){p=!0,!(l&&u&&f&&!f.closed)&&n.complete()}))})}function qc(e,t,r){t===void 0&&(t=qo);var n=Dg(e,t);return Pg(function(){return n},r)}var WC={debounce:$c,debounceTime:Uc,map:vn,startWith:jc,takeUntil:zc,throttleTime:qc,filter:Bc};var Hc=class{constructor(){this.observableEventEmitterBundleArray=new Array,this.observableEventTargetBundleArray=new Array}getSubjectForEmitterEvent(t,r){let n=this.observableEventEmitterBundleArray.find(i=>i.eventRef===t&&i.event===r);if(n)return n.subject;{let i=Sn(t,r),o=new fr;i.subscribe(o);let s={subject:o,eventRef:t,event:r};return this.observableEventEmitterBundleArray.push(s),s.subject}}getSubjectForEventTarget(t,r){let n=this.observableEventTargetBundleArray.find(i=>i.eventRef===t&&i.event===r);if(n)return n.subject;{let o={subject:new fr,eventRef:t,event:r};return this.observableEventTargetBundleArray.push(o),o.subject}}};var Wc=class{constructor(){this.observableFunctions={next:t=>{},complete:t=>{}},this.generator=null,this.buffered=!1,this.payloadBuffer=[],this.observable=new Ee(t=>{this.observableFunctions.next=(...r)=>t.next(r),this.observableFunctions.complete=()=>(this.completedDeffered.resolve(),t.complete())}),this.completedDeffered=re.defer(),this.completed=this.completedDeffered.promise}setObservable(t){this.observable=t}push(t){this.buffered?this.payloadBuffer.push(t):this.internalPush(t)}pushMany(t){for(let r of t)this.push(r)}setGenerator(t){this.generator=t}makeBuffered(){this.buffered=!0}subscribe(...t){return this.observable.subscribe(...t)}request(t){if(t!==0)for(let r=0;r!==t;r++)if(this.payloadBuffer.length>0)this.internalPush(this.payloadBuffer.shift());else{let n=this.generator.next();this.internalPush(n.value)}}signalComplete(){this.observableFunctions.complete()}internalPush(t){this.observableFunctions.next(t)}};var VC={attribute:!0,type:String,converter:No,reflect:!1,hasChanged:xa},YC=(e=VC,t,r)=>{let{kind:n,metadata:i}=r,o=globalThis.litPropertyMetadata.get(i);if(o===void 0&&globalThis.litPropertyMetadata.set(i,o=new Map),o.set(r.name,e),n==="accessor"){let{name:s}=r;return{set(a){let l=t.get.call(this);t.set.call(this,a),this.requestUpdate(s,l,e)},init(a){return a!==void 0&&this.P(s,void 0,e),a}}}if(n==="setter"){let{name:s}=r;return function(a){let l=this[s];t.call(this,a),this.requestUpdate(s,l,e)}}throw Error("Unsupported decorator location: "+n)};function le(e){return(t,r)=>typeof r=="object"?YC(e,t,r):((n,i,o)=>{let s=i.hasOwnProperty(o);return i.constructor.createProperty(o,s?{...n,wrapped:!0}:n),s?Object.getOwnPropertyDescriptor(i,o):void 0})(e,t,r)}var tt={};ue(tt,{DomTools:()=>Te,TypedRequest:()=>xs,breakpoints:()=>Cr,css:()=>hd,elementBasic:()=>Qe,plugins:()=>md});var Qe={};ue(Qe,{setup:()=>oU,staticStyles:()=>nU,styles:()=>iU});var Bl={};ue(Bl,{DeesComms:()=>jp});var he={};ue(he,{Timeout:()=>Ja,delayFor:()=>Ng,delayForRandom:()=>GC});var Ng=async(e,t,r=!1)=>(await new Ja(e,null,r).promise,t),GC=async(e,t,r,n=!1)=>(await Ng(Math.random()*(t-e)+e,null,n),r),Ja=class{constructor(t,r,n=!1){this._cancelled=!1,this.timeoutInMillis=t,this._deferred=dn(),this.promise=this._deferred.promise,this._timeout=setTimeout(()=>{this._cancelled||this._deferred.resolve(r)},t),this.started=Date.now(),n&&this.makeUnrefed()}makeUnrefed(){this._timeout.unref()}cancel(){this._cancelled=!0,clearTimeout(this._timeout)}getTimeLeft(){let t=this.started+this.timeoutInMillis-Date.now();return t>0?t:0}};var It={};ue(It,{TypedHandler:()=>Np,TypedRequest:()=>xs,TypedResponseError:()=>yr,TypedRouter:()=>ys,TypedTarget:()=>Fp,VirtualStream:()=>Qt});var Fn=$e(Ca(),1);var ft={};ue(ft,{AsyncExecutionStack:()=>pf,BackpressuredArray:()=>hf,FastMap:()=>Jo,Interest:()=>Qo,InterestMap:()=>mf,LimitedArray:()=>df,LoopTracker:()=>gf,ObjectMap:()=>En,Stringmap:()=>yf,TimedAggregtor:()=>xf,Tree:()=>bf,uni:()=>Kg});var An={};ue(An,{SmartMatch:()=>Yc});var Qa={};ue(Qa,{isMatch:()=>ZC,matcher:()=>QC});function kn(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}var Vc=new Map,Fg=(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})},JC=(e,t)=>{t={caseSensitive:!1,...t};let r=e+JSON.stringify(t);if(Vc.has(r))return Vc.get(r);let n=e[0]==="!";n&&(e=e.slice(1)),e=kn(e).replace(/\\\*/g,"[\\s\\S]*");let i=new RegExp(`^${e}$`,t.caseSensitive?"":"i");return i.negated=n,Vc.set(r,i),i},Rg=(e,t,r,n)=>{if(e=Fg(e,"inputs"),t=Fg(t,"patterns"),t.length===0)return[];t=t.map(s=>JC(s,r));let{allPatterns:i}=r||{},o=[];for(let s of e){let a,l=[...t].fill(!1);for(let[u,c]of t.entries())if(c.test(s)&&(l[u]=!0,a=!c.negated,!a))break;if(!(a===!1||a===void 0&&t.some(u=>!u.negated)||i&&l.some((u,c)=>!u&&!t[c].negated))&&(o.push(s),n))break}return o};function QC(e,t,r){return Rg(e,t,r,!1)}function ZC(e,t,r){return Rg(e,t,r,!0).length>0}var Yc=class{constructor(t){this.wildcard=t}match(t){return Qa.isMatch(t,this.wildcard)}};var Wt={};ue(Wt,{CronJob:()=>Go,CronManager:()=>nf,ExtendedDate:()=>of,HrtMeasurement:()=>sf,Interval:()=>af,TimeStamp:()=>bi,Timer:()=>lf,getMilliSecondsAsHumanReadableString:()=>rf,getMilliSecondsFromUnits:()=>tf,units:()=>Fr});function mt(e,t,r,n,i,o,s,a){return mt.fromTZ(mt.tp(e,t,r,n,i,o,s),a)}mt.fromTZISO=(e,t,r)=>mt.fromTZ(KC(e,t),r);mt.fromTZ=function(e,t){let r=new Date(Date.UTC(e.y,e.m-1,e.d,e.h,e.i,e.s)),n=Gc(e.tz,r),i=new Date(r.getTime()-n),o=Gc(e.tz,i);if(o-n===0)return i;{let s=new Date(r.getTime()-o),a=Gc(e.tz,s);if(a-o===0)return s;if(!t&&a-o>0)return s;if(t)throw new Error("Invalid date passed to fromTZ()");return i}};mt.toTZ=function(e,t){let r=e.toLocaleString("en-US",{timeZone:t}).replace(/[\u202f]/," "),n=new Date(r);return{y:n.getFullYear(),m:n.getMonth()+1,d:n.getDate(),h:n.getHours(),i:n.getMinutes(),s:n.getSeconds(),tz:t}};mt.tp=(e,t,r,n,i,o,s)=>({y:e,m:t,d:r,h:n,i,s:o,tz:s});function Gc(e,t=new Date){let r=t.toLocaleString("en-US",{timeZone:e,timeZoneName:"short"}).split(" ").slice(-1)[0];r=r.replace(/\bAKST\b/g,"-0900").replace(/\bAKDT\b/g,"-0800").replace(/\bAST\b/g,"-0400");let n=t.toLocaleString("en-US").replace(/[\u202f]/," ");return Date.parse(`${n} GMT`)-Date.parse(`${n} ${r}`)}function KC(e,t){let r=new Date(Date.parse(e));if(isNaN(r))throw new Error("minitz: Invalid ISO8601 passed to parser.");let n=e.substring(9);return e.includes("Z")||n.includes("-")||n.includes("+")?mt.tp(r.getUTCFullYear(),r.getUTCMonth()+1,r.getUTCDate(),r.getUTCHours(),r.getUTCMinutes(),r.getUTCSeconds(),"Etc/UTC"):mt.tp(r.getFullYear(),r.getMonth()+1,r.getDate(),r.getHours(),r.getMinutes(),r.getSeconds(),t)}mt.minitz=mt;function eT(e){if(e===void 0&&(e={}),delete e.name,e.legacyMode=e.legacyMode===void 0?!0:e.legacyMode,e.paused=e.paused===void 0?!1:e.paused,e.maxRuns=e.maxRuns===void 0?1/0:e.maxRuns,e.catch=e.catch===void 0?!1:e.catch,e.interval=e.interval===void 0?0:parseInt(e.interval,10),e.utcOffset=e.utcOffset===void 0?void 0:parseInt(e.utcOffset,10),e.unref=e.unref===void 0?!1:e.unref,e.startAt&&(e.startAt=new Ve(e.startAt,e.timezone)),e.stopAt&&(e.stopAt=new Ve(e.stopAt,e.timezone)),e.interval!==null){if(isNaN(e.interval))throw new Error("CronOptions: Supplied value for interval is not a number");if(e.interval<0)throw new Error("CronOptions: Supplied value for interval can not be negative")}if(e.utcOffset!==void 0){if(isNaN(e.utcOffset))throw new Error("CronOptions: Invalid value passed for utcOffset, should be number representing minutes offset from UTC.");if(e.utcOffset<-870||e.utcOffset>870)throw new Error("CronOptions: utcOffset out of bounds.");if(e.utcOffset!==void 0&&e.timezone)throw new Error("CronOptions: Combining 'utcOffset' with 'timezone' is not allowed.")}if(e.unref!==!0&&e.unref!==!1)throw new Error("CronOptions: Unref should be either true, false or undefined(false).");return e}var Jc=32,Vo=31|Jc,Bg=[1,2,4,8,16];function dt(e,t){this.pattern=e,this.timezone=t,this.second=Array(60).fill(0),this.minute=Array(60).fill(0),this.hour=Array(24).fill(0),this.day=Array(31).fill(0),this.month=Array(12).fill(0),this.dayOfWeek=Array(7).fill(0),this.lastDayOfMonth=!1,this.starDOM=!1,this.starDOW=!1,this.parse()}dt.prototype.parse=function(){if(!(typeof this.pattern=="string"||this.pattern.constructor===String))throw new TypeError("CronPattern: Pattern has to be of type string.");this.pattern.indexOf("@")>=0&&(this.pattern=this.handleNicknames(this.pattern).trim());let e=this.pattern.replace(/\s+/g," ").split(" ");if(e.length<5||e.length>6)throw new TypeError("CronPattern: invalid configuration format ('"+this.pattern+"'), exacly five or six space separated parts required.");if(e.length===5&&e.unshift("0"),e[3].indexOf("L")>=0&&(e[3]=e[3].replace("L",""),this.lastDayOfMonth=!0),e[3]=="*"&&(this.starDOM=!0),e[4].length>=3&&(e[4]=this.replaceAlphaMonths(e[4])),e[5].length>=3&&(e[5]=this.replaceAlphaDays(e[5])),e[5]=="*"&&(this.starDOW=!0),this.pattern.indexOf("?")>=0){let t=new Ve(new Date,this.timezone).getDate(!0);e[0]=e[0].replace("?",t.getSeconds()),e[1]=e[1].replace("?",t.getMinutes()),e[2]=e[2].replace("?",t.getHours()),this.starDOM||(e[3]=e[3].replace("?",t.getDate())),e[4]=e[4].replace("?",t.getMonth()+1),this.starDOW||(e[5]=e[5].replace("?",t.getDay()))}this.throwAtIllegalCharacters(e),this.partToArray("second",e[0],0,1),this.partToArray("minute",e[1],0,1),this.partToArray("hour",e[2],0,1),this.partToArray("day",e[3],-1,1),this.partToArray("month",e[4],-1,1),this.partToArray("dayOfWeek",e[5],0,Vo),this.dayOfWeek[7]&&(this.dayOfWeek[0]=this.dayOfWeek[7])};dt.prototype.partToArray=function(e,t,r,n){let i=this[e],o=e==="day"&&this.lastDayOfMonth;if(t===""&&!o)throw new TypeError("CronPattern: configuration entry "+e+" ("+t+") is empty, check for trailing spaces.");if(t==="*")return i.fill(n);let s=t.split(",");if(s.length>1)for(let a=0;a<s.length;a++)this.partToArray(e,s[a],r,n);else t.indexOf("-")!==-1&&t.indexOf("/")!==-1?this.handleRangeWithStepping(t,e,r,n):t.indexOf("-")!==-1?this.handleRange(t,e,r,n):t.indexOf("/")!==-1?this.handleStepping(t,e,r,n):t!==""&&this.handleNumber(t,e,r,n)};dt.prototype.throwAtIllegalCharacters=function(e){for(let t=0;t<e.length;t++)if((t===5?/[^/*0-9,\-#L]+/:/[^/*0-9,-]+/).test(e[t]))throw new TypeError("CronPattern: configuration entry "+t+" ("+e[t]+") contains illegal characters.")};dt.prototype.handleNumber=function(e,t,r,n){let i=this.extractNth(e,t),o=parseInt(i[0],10)+r;if(isNaN(o))throw new TypeError("CronPattern: "+t+" is not a number: '"+e+"'");this.setPart(t,o,i[1]||n)};dt.prototype.setPart=function(e,t,r){if(!Object.prototype.hasOwnProperty.call(this,e))throw new TypeError("CronPattern: Invalid part specified: "+e);if(e==="dayOfWeek"){if(t===7&&(t=0),(t<0||t>6)&&t!=="L")throw new RangeError("CronPattern: Invalid value for dayOfWeek: "+t);this.setNthWeekdayOfMonth(t,r);return}if(e==="second"||e==="minute"){if(t<0||t>=60)throw new RangeError("CronPattern: Invalid value for "+e+": "+t)}else if(e==="hour"){if(t<0||t>=24)throw new RangeError("CronPattern: Invalid value for "+e+": "+t)}else if(e==="day"){if(t<0||t>=31)throw new RangeError("CronPattern: Invalid value for "+e+": "+t)}else if(e==="month"&&(t<0||t>=12))throw new RangeError("CronPattern: Invalid value for "+e+": "+t);this[e][t]=r};dt.prototype.handleRangeWithStepping=function(e,t,r,n){let i=this.extractNth(e,t),o=i[0].match(/^(\d+)-(\d+)\/(\d+)$/);if(o===null)throw new TypeError("CronPattern: Syntax error, illegal range with stepping: '"+e+"'");let[,s,a,l]=o;if(s=parseInt(s,10)+r,a=parseInt(a,10)+r,l=parseInt(l,10),isNaN(s))throw new TypeError("CronPattern: Syntax error, illegal lower range (NaN)");if(isNaN(a))throw new TypeError("CronPattern: Syntax error, illegal upper range (NaN)");if(isNaN(l))throw new TypeError("CronPattern: Syntax error, illegal stepping: (NaN)");if(l===0)throw new TypeError("CronPattern: Syntax error, illegal stepping: 0");if(l>this[t].length)throw new TypeError("CronPattern: Syntax error, steps cannot be greater than maximum value of part ("+this[t].length+")");if(s>a)throw new TypeError("CronPattern: From value is larger than to value: '"+e+"'");for(let u=s;u<=a;u+=l)this.setPart(t,u,i[1]||n)};dt.prototype.extractNth=function(e,t){let r=e,n;if(r.includes("#")){if(t!=="dayOfWeek")throw new Error("CronPattern: nth (#) only allowed in day-of-week field");n=r.split("#")[1],r=r.split("#")[0]}return[r,n]};dt.prototype.handleRange=function(e,t,r,n){let i=this.extractNth(e,t),o=i[0].split("-");if(o.length!==2)throw new TypeError("CronPattern: Syntax error, illegal range: '"+e+"'");let s=parseInt(o[0],10)+r,a=parseInt(o[1],10)+r;if(isNaN(s))throw new TypeError("CronPattern: Syntax error, illegal lower range (NaN)");if(isNaN(a))throw new TypeError("CronPattern: Syntax error, illegal upper range (NaN)");if(s>a)throw new TypeError("CronPattern: From value is larger than to value: '"+e+"'");for(let l=s;l<=a;l++)this.setPart(t,l,i[1]||n)};dt.prototype.handleStepping=function(e,t,r,n){let i=this.extractNth(e,t),o=i[0].split("/");if(o.length!==2)throw new TypeError("CronPattern: Syntax error, illegal stepping: '"+e+"'");let s=0;o[0]!=="*"&&(s=parseInt(o[0],10)+r);let a=parseInt(o[1],10);if(isNaN(a))throw new TypeError("CronPattern: Syntax error, illegal stepping: (NaN)");if(a===0)throw new TypeError("CronPattern: Syntax error, illegal stepping: 0");if(a>this[t].length)throw new TypeError("CronPattern: Syntax error, max steps for part is ("+this[t].length+")");for(let l=s;l<this[t].length;l+=a)this.setPart(t,l,i[1]||n)};dt.prototype.replaceAlphaDays=function(e){return e.replace(/-sun/gi,"-7").replace(/sun/gi,"0").replace(/mon/gi,"1").replace(/tue/gi,"2").replace(/wed/gi,"3").replace(/thu/gi,"4").replace(/fri/gi,"5").replace(/sat/gi,"6")};dt.prototype.replaceAlphaMonths=function(e){return e.replace(/jan/gi,"1").replace(/feb/gi,"2").replace(/mar/gi,"3").replace(/apr/gi,"4").replace(/may/gi,"5").replace(/jun/gi,"6").replace(/jul/gi,"7").replace(/aug/gi,"8").replace(/sep/gi,"9").replace(/oct/gi,"10").replace(/nov/gi,"11").replace(/dec/gi,"12")};dt.prototype.handleNicknames=function(e){let t=e.trim().toLowerCase();return t==="@yearly"||t==="@annually"?"0 0 1 1 *":t==="@monthly"?"0 0 1 * *":t==="@weekly"?"0 0 * * 0":t==="@daily"?"0 0 * * *":t==="@hourly"?"0 * * * *":e};dt.prototype.setNthWeekdayOfMonth=function(e,t){if(t==="L")this.dayOfWeek[e]=this.dayOfWeek[e]|Jc;else if(t<6&&t>0)this.dayOfWeek[e]=this.dayOfWeek[e]|Bg[t-1];else if(t===Vo)this.dayOfWeek[e]=Vo;else throw new TypeError(`CronPattern: nth weekday of of range, should be 1-5 or L. Value: ${t}`)};var $g=[31,28,31,30,31,30,31,31,30,31,30,31],pr=[["month","year",0],["day","month",-1],["hour","day",0],["minute","hour",0],["second","minute",0]];function Ve(e,t){if(this.tz=t,e&&e instanceof Date)if(!isNaN(e))this.fromDate(e);else throw new TypeError("CronDate: Invalid date passed to CronDate constructor");else if(e===void 0)this.fromDate(new Date);else if(e&&typeof e=="string")this.fromString(e);else if(e instanceof Ve)this.fromCronDate(e);else throw new TypeError("CronDate: Invalid type ("+typeof e+") passed to CronDate constructor")}Ve.prototype.isNthWeekdayOfMonth=function(e,t,r,n){let o=new Date(Date.UTC(e,t,r)).getUTCDay(),s=0;for(let a=1;a<=r;a++)new Date(Date.UTC(e,t,a)).getUTCDay()===o&&s++;if(n&Vo&&Bg[s-1]&n)return!0;if(n&Jc){let a=new Date(Date.UTC(e,t+1,0)).getUTCDate();for(let l=r+1;l<=a;l++)if(new Date(Date.UTC(e,t,l)).getUTCDay()===o)return!1;return!0}return!1};Ve.prototype.fromDate=function(e){if(this.tz!==void 0)if(typeof this.tz=="number")this.ms=e.getUTCMilliseconds(),this.second=e.getUTCSeconds(),this.minute=e.getUTCMinutes()+this.tz,this.hour=e.getUTCHours(),this.day=e.getUTCDate(),this.month=e.getUTCMonth(),this.year=e.getUTCFullYear(),this.apply();else{let t=mt.toTZ(e,this.tz);this.ms=e.getMilliseconds(),this.second=t.s,this.minute=t.i,this.hour=t.h,this.day=t.d,this.month=t.m-1,this.year=t.y}else this.ms=e.getMilliseconds(),this.second=e.getSeconds(),this.minute=e.getMinutes(),this.hour=e.getHours(),this.day=e.getDate(),this.month=e.getMonth(),this.year=e.getFullYear()};Ve.prototype.fromCronDate=function(e){this.tz=e.tz,this.year=e.year,this.month=e.month,this.day=e.day,this.hour=e.hour,this.minute=e.minute,this.second=e.second,this.ms=e.ms};Ve.prototype.apply=function(){if(this.month>11||this.day>$g[this.month]||this.hour>59||this.minute>59||this.second>59||this.hour<0||this.minute<0||this.second<0){let e=new Date(Date.UTC(this.year,this.month,this.day,this.hour,this.minute,this.second,this.ms));return this.ms=e.getUTCMilliseconds(),this.second=e.getUTCSeconds(),this.minute=e.getUTCMinutes(),this.hour=e.getUTCHours(),this.day=e.getUTCDate(),this.month=e.getUTCMonth(),this.year=e.getUTCFullYear(),!0}else return!1};Ve.prototype.fromString=function(e){return this.fromDate(mt.fromTZISO(e,this.tz))};Ve.prototype.findNext=function(e,t,r,n){let i=this[t],o;r.lastDayOfMonth&&(this.month!==1?o=$g[this.month]:o=new Date(Date.UTC(this.year,this.month+1,0,0,0,0,0)).getUTCDate());let s=!r.starDOW&&t=="day"?new Date(Date.UTC(this.year,this.month,1,0,0,0,0)).getUTCDay():void 0;for(let a=this[t]+n;a<r[t].length;a++){let l=r[t][a];if(t==="day"&&r.lastDayOfMonth&&a-n==o&&(l=!0),t==="day"&&!r.starDOW){let u=r.dayOfWeek[(s+(a-n-1))%7];if(u&&u&Vo)u=this.isNthWeekdayOfMonth(this.year,this.month,a-n,u);else if(u)throw new Error(`CronDate: Invalid value for dayOfWeek encountered. ${u}`);e.legacyMode&&!r.starDOM?l=l||u:l=l&&u}if(l)return this[t]=a-n,i!==this[t]?2:1}return 3};Ve.prototype.recurse=function(e,t,r){let n=this.findNext(t,pr[r][0],e,pr[r][2]);if(n>1){let i=r+1;for(;i<pr.length;)this[pr[i][0]]=-pr[i][2],i++;if(n===3)return this[pr[r][1]]++,this[pr[r][0]]=-pr[r][2],this.apply(),this.recurse(e,t,0);if(this.apply())return this.recurse(e,t,r-1)}return r+=1,r>=pr.length?this:this.year>=3e3?null:this.recurse(e,t,r)};Ve.prototype.increment=function(e,t,r){return this.second+=t.interval>1&&r?t.interval:1,this.ms=0,this.apply(),this.recurse(e,t,0)};Ve.prototype.getDate=function(e){return e||this.tz===void 0?new Date(this.year,this.month,this.day,this.hour,this.minute,this.second,this.ms):typeof this.tz=="number"?new Date(Date.UTC(this.year,this.month,this.day,this.hour,this.minute-this.tz,this.second,this.ms)):mt(this.year,this.month+1,this.day,this.hour,this.minute,this.second,this.tz)};Ve.prototype.getTime=function(){return this.getDate().getTime()};function Za(e){return Object.prototype.toString.call(e)==="[object Function]"||typeof e=="function"||e instanceof Function}function tT(e){typeof Deno<"u"&&typeof Deno.unrefTimer<"u"?Deno.unrefTimer(e):e&&typeof e.unref<"u"&&e.unref()}var Lg=30*1e3,Yo=[];function Ce(e,t,r){if(!(this instanceof Ce))return new Ce(e,t,r);let n,i;if(Za(t))i=t;else if(typeof t=="object")n=t;else if(t!==void 0)throw new Error("Cron: Invalid argument passed for optionsIn. Should be one of function, or object (options).");if(Za(r))i=r;else if(typeof r=="object")n=r;else if(r!==void 0)throw new Error("Cron: Invalid argument passed for funcIn. Should be one of function, or object (options).");if(this.name=n?n.name:void 0,this.options=eT(n),this._states={kill:!1,blocking:!1,previousRun:void 0,currentRun:void 0,once:void 0,currentTimeout:void 0,maxRuns:n?n.maxRuns:void 0,paused:n?n.paused:!1,pattern:void 0},e&&(e instanceof Date||typeof e=="string"&&e.indexOf(":")>0)?this._states.once=new Ve(e,this.options.timezone||this.options.utcOffset):this._states.pattern=new dt(e,this.options.timezone),this.name){if(Yo.find(s=>s.name===this.name))throw new Error("Cron: Tried to initialize new named job '"+this.name+"', but name already taken.");Yo.push(this)}return i!==void 0&&(this.fn=i,this.schedule()),this}Ce.prototype.nextRun=function(e){let t=this._next(e);return t?t.getDate():null};Ce.prototype.nextRuns=function(e,t){e>this._states.maxRuns&&(e=this._states.maxRuns);let r=[],n=t||this._states.currentRun;for(;e--&&(n=this.nextRun(n));)r.push(n);return r};Ce.prototype.getPattern=function(){return this._states.pattern?this._states.pattern.pattern:void 0};Ce.prototype.isRunning=function(){let e=this.nextRun(this._states.currentRun),t=!this._states.paused,r=this.fn!==void 0,n=!this._states.kill;return t&&r&&n&&e!==null};Ce.prototype.isStopped=function(){return this._states.kill};Ce.prototype.isBusy=function(){return this._states.blocking};Ce.prototype.currentRun=function(){return this._states.currentRun?this._states.currentRun.getDate():null};Ce.prototype.previousRun=function(){return this._states.previousRun?this._states.previousRun.getDate():null};Ce.prototype.msToNext=function(e){e=e||new Date;let t=this._next(e);return t?t.getTime()-e.getTime():null};Ce.prototype.stop=function(){this._states.kill=!0,this._states.currentTimeout&&clearTimeout(this._states.currentTimeout);let e=Yo.indexOf(this);e>=0&&Yo.splice(e,1)};Ce.prototype.pause=function(){return this._states.paused=!0,!this._states.kill};Ce.prototype.resume=function(){return this._states.paused=!1,!this._states.kill};Ce.prototype.schedule=function(e){if(e&&this.fn)throw new Error("Cron: It is not allowed to schedule two functions using the same Croner instance.");e&&(this.fn=e);let t=this.msToNext(),r=this.nextRun(this._states.currentRun);return t===null||r===null?this:(t>Lg&&(t=Lg),this._states.currentTimeout=setTimeout(()=>this._checkTrigger(r),t),this._states.currentTimeout&&this.options.unref&&tT(this._states.currentTimeout),this)};Ce.prototype._trigger=async function(e){if(this._states.blocking=!0,this._states.currentRun=new Ve(void 0,this.options.timezone||this.options.utcOffset),this.options.catch)try{await this.fn(this,this.options.context)}catch(t){Za(this.options.catch)&&this.options.catch(t,this)}else await this.fn(this,this.options.context);this._states.previousRun=new Ve(e,this.options.timezone||this.options.utcOffset),this._states.blocking=!1};Ce.prototype.trigger=async function(){await this._trigger()};Ce.prototype._checkTrigger=function(e){let t=new Date,r=!this._states.paused&&t.getTime()>=e,n=this._states.blocking&&this.options.protect;r&&!n?(this._states.maxRuns--,this._trigger()):r&&n&&Za(this.options.protect)&&setTimeout(()=>this.options.protect(this),0),this.schedule()};Ce.prototype._next=function(e){let t=!!(e||this._states.currentRun);e=new Ve(e,this.options.timezone||this.options.utcOffset),this.options.startAt&&e&&e.getTime()<this.options.startAt.getTime()&&(e=this.options.startAt);let r=this._states.once||new Ve(e,this.options.timezone||this.options.utcOffset).increment(this._states.pattern,this.options,t);return this._states.once&&this._states.once.getTime()<=e.getTime()||r===null||this._states.maxRuns<=0||this._states.kill||this.options.stopAt&&r.getTime()>=this.options.stopAt.getTime()?null:r};Ce.Cron=Ce;Ce.scheduledJobs=Yo;var yi=$e(Ug(),1),zg=$e(jg(),1);function ef(e){if(typeof e!="number")throw new TypeError("Expected a number");let t=e>0?Math.floor:Math.ceil;return{days:t(e/864e5),hours:t(e/36e5)%24,minutes:t(e/6e4)%60,seconds:t(e/1e3)%60,milliseconds:t(e)%1e3,microseconds:t(e*1e3)%1e3,nanoseconds:t(e*1e6)%1e3}}var rT=(e,t)=>t===1?e:`${e}s`,nT=1e-7;function Xa(e,t={}){if(!Number.isFinite(e))throw new TypeError("Expected a finite number");t.colonNotation&&(t.compact=!1,t.formatSubMilliseconds=!1,t.separateMilliseconds=!1,t.verbose=!1),t.compact&&(t.secondsDecimalDigits=0,t.millisecondsDecimalDigits=0);let r=[],n=(s,a)=>{let l=Math.floor(s*10**a+nT);return(Math.round(l)/10**a).toFixed(a)},i=(s,a,l,u)=>{if((r.length===0||!t.colonNotation)&&s===0&&!(t.colonNotation&&l==="m"))return;u=(u||s||"0").toString();let c,f;if(t.colonNotation){c=r.length>0?":":"",f="";let p=u.includes(".")?u.split(".")[0].length:u.length,h=r.length>0?2:1;u="0".repeat(Math.max(0,h-p))+u}else c="",f=t.verbose?" "+rT(a,s):l;r.push(c+u+f)},o=ef(e);if(i(Math.trunc(o.days/365),"year","y"),i(o.days%365,"day","d"),i(o.hours,"hour","h"),i(o.minutes,"minute","m"),t.separateMilliseconds||t.formatSubMilliseconds||!t.colonNotation&&e<1e3)if(i(o.seconds,"second","s"),t.formatSubMilliseconds)i(o.milliseconds,"millisecond","ms"),i(o.microseconds,"microsecond","\xB5s"),i(o.nanoseconds,"nanosecond","ns");else{let s=o.milliseconds+o.microseconds/1e3+o.nanoseconds/1e6,a=typeof t.millisecondsDecimalDigits=="number"?t.millisecondsDecimalDigits:0,l=s>=1?Math.round(s):Math.ceil(s),u=a?s.toFixed(a):l;i(Number.parseFloat(u),"millisecond","ms",u)}else{let s=e/1e3%60,a=typeof t.secondsDecimalDigits=="number"?t.secondsDecimalDigits:1,l=n(s,a),u=t.keepDecimalsOnWholeSeconds?l:l.replace(/\.0+$/,"");i(Number.parseFloat(u),"second","s",u)}if(r.length===0)return"0"+(t.verbose?" milliseconds":"ms");if(t.compact)return r[0];if(typeof t.unitCount=="number"){let s=t.colonNotation?"":" ";return r.slice(0,Math.max(t.unitCount,1)).join(s)}return t.colonNotation?r.join(""):r.join(" ")}yi.default.extend(zg.default);var Go=class{constructor(t,r,n){this.status="initial",this.nextExecutionUnix=0,this.cronExpression=r,this.jobFunction=n,this.cronParser=Ce(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 Fr={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},tf=e=>{let t=0,r=n=>{t=t+n};return e.years&&r(Fr.years(e.years)),e.months&&r(Fr.months(e.months)),e.weeks&&r(Fr.weeks(e.weeks)),e.days&&r(Fr.days(e.days)),e.hours&&r(Fr.hours(e.hours)),e.minutes&&r(Fr.minutes(e.minutes)),e.seconds&&r(Fr.seconds(e.seconds)),t},rf=e=>Xa(e);var nf=class{constructor(){this.status="stopped",this.cronjobs=new ft.ObjectMap}addCronjob(t,r){let n=new Go(this,t,r);return this.cronjobs.add(n),this.status==="started"&&n.start(),n}removeCronjob(t){t.stop(),this.cronjobs.remove(t)}start(){if(this.status!=="started"){this.status="started";for(let t of this.cronjobs.getArray())t.start();this.runCronCycle()}}async runCronCycle(){this.executionTimeout=new he.Timeout(0);do{let t;for(let r of this.cronjobs.getArray())r.checkExecution(),(!t||r.getTimeToNextExecution()<t.getTimeToNextExecution())&&(t=r);t?(this.executionTimeout=new he.Timeout(t.getTimeToNextExecution()),console.log(`Next CronJob scheduled in ${rf(this.executionTimeout.getTimeLeft())}`)):(this.executionTimeout=new he.Timeout(1e3),console.log("no cronjobs specified! Checking again in 1 second")),await this.executionTimeout.promise}while(this.status==="started")}stop(){this.status==="started"?(this.status="stopped",this.executionTimeout.cancel()):console.log("You tried to stop a CronManager that was not actually started.");for(let t of this.cronjobs.getArray())t.stop()}};var of=class e extends Date{static fromMillis(t){return new e(t)}static fromDate(t){return new e(t.getTime())}static fromEuropeanDate(t){let r=/(.*)\.(.*)\.(.*)/.exec(t),i=new Date(parseFloat(r[3]),parseFloat(r[2])-1,parseFloat(r[1])).getTime();return new e(i)}static fromHyphedDate(t){let r=new Date(t).getTime();return new e(r)}static fromEuropeanDateAndTime(t,r="12:00:00",n="Europe/Berlin"){let i=/(.*)\.(.*)\.(.*)/.exec(t),o=u=>`0${u}`.slice(-2),s=`${i[3]}-${o(i[2])}-${o(i[1])}T${r}`,l=yi.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 yi.default(this.getTime()).format(t)}isToday(){return yi.default(this.getTime()).isToday()}lessTimePassedToNow(t){let r=tf(t);return Date.now()-this.getTime()<r}moreTimePassedToNow(t){return!this.lessTimePassedToNow(t)}};var sf=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 af=class{constructor(t){this.status="initial",this.statusAuthorization=null,this.intervalJobs=[],this.intervalMilliseconds=t}start(){this.status="started";let t=new Date;this.statusAuthorization=t,(async()=>{for(;this.status==="started"&&this.statusAuthorization===t;)await he.delayFor(this.intervalMilliseconds),this.executeIntervalJobs()})()}stop(){this.status="stopped",this.statusAuthorization=null}addIntervalJob(t){this.intervalJobs.push(t)}executeIntervalJobs(){for(let t of this.intervalJobs)t()}};var bi=class e{static fromMilliSeconds(t){return new e(t)}static fromTimeStamp(t){let r=new e;return r.change=r.milliSeconds-t.milliSeconds,r}constructor(t){this.change=null,t?typeof t=="number"&&(this.date=new Date(t)):this.date=new Date,this.milliSeconds=this.date.getTime(),this.epochtime=Math.floor(this.milliSeconds/1e3)}isOlderThanOtherTimeStamp(t,r=0){return this.milliSeconds<t.milliSeconds-r}isOlderThan(t,r=0){return this.milliSeconds+r<t.milliSeconds}isYoungerThanOtherTimeStamp(t,r=0){return this.milliSeconds>t.milliSeconds+r}isYoungerThanMilliSeconds(t){let n=new e().epochtime-t,i=new e(n);return this.isYoungerThanOtherTimeStamp(i)}};var lf=class{get timeLeft(){return this.timeInMilliseconds-this.pausedAt.change}constructor(t){this.state="initiated",this.completedDeferred=re.defer(),this.timeInMilliseconds=t,this.completed=this.completedDeferred.promise}start(){if(!this.startedAt)this.currentTimeout=setTimeout(()=>{this.completedDeferred.resolve()},this.timeInMilliseconds),this.startedAt=new bi;else throw new Error("timer has been started before. Please use resume instead")}pause(){this.startedAt&&(clearTimeout(this.currentTimeout),this.currentTimeout=null,this.pausedAt=bi.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 ff=$e(cf(),1);var pf=class{constructor(){this.executionSlots=[],this.isProcessing=!1}async getExclusiveExecutionSlot(t,r){let n=re.defer(),i={funcToExecute:t,executionDeferred:n,timeout:r,mode:"exclusive"};return this.executionSlots.push(i),this.processExecutionSlots(),n.promise}async getNonExclusiveExecutionSlot(t,r){let n=re.defer(),i={funcToExecute:t,executionDeferred:n,timeout:r,mode:"nonexclusive"};return this.executionSlots.push(i),this.processExecutionSlots(),n.promise}async processExecutionSlots(){if(!this.isProcessing){for(this.isProcessing=!0;this.executionSlots.length>0;){let t=this.executionSlots[0];if(t.mode==="exclusive")await this.executeExclusiveSlot(t),this.executionSlots.shift();else{let r=[];for(;this.executionSlots.length>0&&this.executionSlots[0].mode==="nonexclusive";)r.push(this.executionSlots.shift());await this.executeNonExclusiveSlots(r)}}this.isProcessing=!1}}async executeExclusiveSlot(t){try{if(t.timeout){let r=await Promise.race([t.funcToExecute(),he.delayFor(t.timeout).then(()=>{throw new Error("Timeout reached")})]);t.executionDeferred.resolve(r)}else{let r=await t.funcToExecute();t.executionDeferred.resolve(r)}}catch(r){t.executionDeferred.reject(r)}}async executeNonExclusiveSlots(t){let r=t.map(async n=>{try{if(n.timeout){let i=await Promise.race([n.funcToExecute(),he.delayFor(n.timeout).then(()=>{throw new Error("Timeout reached")})]);n.executionDeferred.resolve(i)}else{let i=await n.funcToExecute();n.executionDeferred.resolve(i)}}catch(i){n.executionDeferred.reject(i)}});await Promise.all(r)}};var hf=class{constructor(t=16){this.hasSpace=new Se.rxjs.Subject,this.itemsAvailable=new Se.rxjs.Subject,this.data=[],this.highWaterMark=t}push(t){this.data.push(t),this.itemsAvailable.next("itemsAvailable");let r=this.checkSpaceAvailable();return r&&this.hasSpace.next("hasSpace"),r}shift(){let t=this.data.shift();return this.checkSpaceAvailable()&&this.hasSpace.next("hasSpace"),t}checkSpaceAvailable(){return this.data.length<this.highWaterMark}checkHasItems(){return this.data.length>0}waitForSpace(){return new Promise(t=>{if(this.checkSpaceAvailable())t();else{let r=this.hasSpace.subscribe(()=>{r.unsubscribe(),t()})}})}waitForItems(){return new Promise(t=>{if(this.data.length>0)t();else{let r=this.itemsAvailable.subscribe(()=>{r.unsubscribe(),t()})}})}};var Jo=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 Kg=(e="uni")=>`${e}xxxxxxxxxxx`.replace(/[xy]/g,t=>{let r=Math.random()*16|0;return(t==="x"?r:r&3|8).toString(16)}),En=class e{constructor(){this.fastMap=new Jo,this.eventSubject=new Se.rxjs.Subject}addMappedUnique(t,r){this.fastMap.addToMap(t,r)}getMappedUnique(t){return this.fastMap.getByKey(t)}removeMappedUnique(t){let r=this.getMappedUnique(t)}add(t){for(let n of this.fastMap.getKeys())if(this.fastMap.getByKey(n)===t)return n;let r=Kg("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 Qo=class{get comparisonString(){return this.comparisonFunc(this.originalInterest)}fullfillInterest(t){this.isFullfilled=!0,this.fullfillmentStore=[],this.interestDeferred.resolve(t)}constructor(t,r,n,i){this.destructionTimer=new Wt.Timer(1e4),this.isFullfilled=!1,this.fullfillmentStore=[],this.interestDeferred=new re.Deferred,this.interestFullfilled=this.interestDeferred.promise,this.interestMapRef=t,this.originalInterest=r,this.comparisonFunc=n,this.options=i,this.destructionTimer.completed.then(()=>{this.destroy()}),this.options?.markLostAfterDefault&&he.delayFor(this.options.markLostAfterDefault).then(this.markLost)}destroy(){this.interestMapRef.removeInterest(this),!this.isFullfilled&&this.options.defaultFullfillment&&this.fullfillInterest(this.options.defaultFullfillment)}markLost(){this.destructionTimer.start()}renew(){this.destructionTimer.reset()}};var mf=class{constructor(t,r={}){this.interestObjectMap=new En,this.interestObservable=new Se.ObservableIntake,this.comparisonFunc=t,this.options=r}async addInterest(t,r){let n=this.comparisonFunc(t),i,o=new Qo(this,t,this.comparisonFunc,{markLostAfterDefault:this.options.markLostAfterDefault,defaultFullfillment:r}),s=!1;return await this.interestObjectMap.forEach(a=>{!s&&a.comparisonString===o.comparisonString&&(console.log("info",`interest already exists for ${o.comparisonString}`),s=!0,i=a,i.renew())}),i||(i=o,this.interestObjectMap.add(i)),this.interestObservable.push(i),i}removeInterest(t){let r=this.interestObjectMap.findOneAndRemoveSync(n=>t.comparisonString===n.comparisonString)}checkInterest(t){let r=this.comparisonFunc(t);return this.checkInterestByString(r)}checkInterestByString(t){return!!this.interestObjectMap.findSync(n=>n.comparisonString===t)}informLostInterest(t){let r=this.findInterest(t);r&&r.markLost()}findInterest(t){let r=this.comparisonFunc(t);return this.interestObjectMap.findSync(i=>i.comparisonString===r)}};var df=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 gf=class{constructor(){this.referenceObjectMap=new En}checkAndTrack(t){return this.referenceObjectMap.checkForObject(t)?!1:(this.referenceObjectMap.add(t),!0)}};var yf=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 An.SmartMatch(t),n=!1;for(let i of this._stringArray)r.match(i)&&(n=!0);return n}checkIsEmpty(){return this._stringArray.length===0}getStringArray(){let t=[];for(let r of this._stringArray)t.push(r);return t}registerUntilTrue(t,r){let n=re.defer();return this._triggerUntilTrueFunctionArray.push(()=>{let i=t(this.getStringArray());return i===!0&&(r&&r(),n.resolve()),i}),this.notifyTrigger(),n.promise}notifyTrigger(){let t=this._triggerUntilTrueFunctionArray.filter(r=>!r());this._triggerUntilTrueFunctionArray=t}};var xf=class{constructor(t){this.storageArray=[],this.options=t}checkAggregationStatus(){let t=()=>{this.aggregationTimer=new Wt.Timer(this.options.aggregationIntervalInMillis),this.aggregationTimer.completed.then(()=>{let r=this.storageArray;if(r.length===0){this.aggregationTimer=null;return}this.storageArray=[],t(),this.options.functionForAggregation(r)}),this.aggregationTimer.start()};this.aggregationTimer||t()}add(t){this.storageArray.push(t),this.checkAggregationStatus()}};var bf=class{constructor(){this.symbolTree=new ff.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 Xo={};ue(Xo,{base64ToUint8Array:()=>IT,ensurePureUint8Array:()=>DT,isBufferLike:()=>MT,isUint8Array:()=>OT,uInt8ArrayExtras:()=>TT,uInt8ArrayToBase64:()=>_T});var Cn={};ue(Cn,{areUint8ArraysEqual:()=>hT,assertUint8Array:()=>$r,assertUint8ArrayOrArrayBuffer:()=>ny,base64ToString:()=>wT,base64ToUint8Array:()=>ay,compareUint8Arrays:()=>mT,concatUint8Arrays:()=>pT,getUintBE:()=>AT,hexToUint8Array:()=>kT,includes:()=>ET,indexOf:()=>ly,isUint8Array:()=>wf,stringToBase64:()=>bT,stringToUint8Array:()=>oy,toUint8Array:()=>fT,uint8ArrayToBase64:()=>sy,uint8ArrayToHex:()=>ST,uint8ArrayToString:()=>iy});var sT=Object.prototype.toString,aT="[object Uint8Array]",lT="[object ArrayBuffer]";function ry(e,t,r){return e?e.constructor===t?!0:sT.call(e)===r:!1}function wf(e){return ry(e,Uint8Array,aT)}function uT(e){return ry(e,ArrayBuffer,lT)}function cT(e){return wf(e)||uT(e)}function $r(e){if(!wf(e))throw new TypeError(`Expected \`Uint8Array\`, got \`${typeof e}\``)}function ny(e){if(!cT(e))throw new TypeError(`Expected \`Uint8Array\` or \`ArrayBuffer\`, got \`${typeof e}\``)}function fT(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 pT(e,t){if(e.length===0)return new Uint8Array(0);t??=e.reduce((i,o)=>i+o.length,0);let r=new Uint8Array(t),n=0;for(let i of e)$r(i),r.set(i,n),n+=i.length;return r}function hT(e,t){if($r(e),$r(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 mT(e,t){$r(e),$r(t);let r=Math.min(e.length,t.length);for(let n=0;n<r;n++){let i=e[n]-t[n];if(i!==0)return Math.sign(i)}return Math.sign(e.length-t.length)}var ey={utf8:new globalThis.TextDecoder("utf8")};function iy(e,t="utf8"){return ny(e),ey[t]??=new globalThis.TextDecoder(t),ey[t].decode(e)}function Zo(e){if(typeof e!="string")throw new TypeError(`Expected \`string\`, got \`${typeof e}\``)}var dT=new globalThis.TextEncoder;function oy(e){return Zo(e),dT.encode(e)}function gT(e){return e.replaceAll("+","-").replaceAll("/","_").replace(/=+$/,"")}function yT(e){return e.replaceAll("-","+").replaceAll("_","/")}var xT=65535;function sy(e,{urlSafe:t=!1}={}){$r(e);let r;if(e.length<xT)r=globalThis.btoa(String.fromCodePoint.apply(this,e));else{r="";for(let n of e)r+=String.fromCodePoint(n);r=globalThis.btoa(r)}return t?gT(r):r}function ay(e){return Zo(e),Uint8Array.from(globalThis.atob(yT(e)),t=>t.codePointAt(0))}function bT(e,{urlSafe:t=!1}={}){return Zo(e),sy(oy(e),{urlSafe:t})}function wT(e){return Zo(e),iy(ay(e))}var vT=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));function ST(e){$r(e);let t="";for(let r=0;r<e.length;r++)t+=vT[e[r]];return t}var ty={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 kT(e){if(Zo(e),e.length%2!==0)throw new Error("Invalid Hex string length.");let t=e.length/2,r=new Uint8Array(t);for(let n=0;n<t;n++){let i=ty[e[n*2]],o=ty[e[n*2+1]];if(i===void 0||o===void 0)throw new Error(`Invalid Hex character encountered at position ${n*2}`);r[n]=i<<4|o}return r}function AT(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 ly(e,t){let r=e.length,n=t.length;if(n===0||n>r)return-1;let i=r-n;for(let o=0;o<=i;o++){let s=!0;for(let a=0;a<n;a++)if(e[o+a]!==t[a]){s=!1;break}if(s)return o}return-1}function ET(e,t){return ly(e,t)!==-1}var TT=Cn;function _T(e){return Cn.uint8ArrayToBase64(e)}function IT(e){return Cn.base64ToUint8Array(e)}var OT=e=>Cn.isUint8Array(e);function MT(e){return e&&typeof e.byteLength=="number"?!0:typeof Buffer<"u"&&Buffer.isBuffer?Buffer.isBuffer(e):!1}function DT(e){let t=new Uint8Array(e.length);return t.set(e),t}var el={};ue(el,{Guard:()=>Ko,GuardError:()=>es,GuardSet:()=>ts,passGuardsOrReject:()=>PT});var Ko=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 es=class extends Error{constructor(t){super(t),this.name="GuardError"}};var ts=class extends Ko{constructor(t=[]){super(async r=>this.allGuardsPass(r)),this.guards=t}async execAllWithData(t,r={mode:"parallel",stopOnFail:!1}){let n=[];for(let o of this.guards){let s=o.exec(t);if(r.mode==="serial"&&await s,n.push(s),r.stopOnFail&&!await s)return await Promise.all(n)}return await Promise.all(n)}async allGuardsPass(t,r={mode:"parallel",stopOnFail:!1}){return(await this.execAllWithData(t,r)).every(i=>i)}async anyGuardsPass(t){return(await this.execAllWithData(t,{mode:"parallel",stopOnFail:!1})).some(n=>n)}getFailedHint(t){for(let r of this.guards){let n=r.getFailedHint(t);if(n)return n}}};var PT=async(e,t)=>{let r=new ts(t);if(!await r.allGuardsPass(e)){let i=await r.getFailedHint(e);throw new es(`Guards failed:
|
|
46
|
+
${i}
|
|
47
|
+
`)}};var gs={};ue(gs,{WebRequest:()=>Pp});var Tn={};ue(Tn,{Smartenv:()=>rs});var rs=class{constructor(){this.loadedScripts=[]}async getEnvAwareModule(t){if(this.isNode)return await this.getSafeNodeModule(t.nodeModuleName);if(this.isBrowser)return await this.getSafeWebModule(t.webUrlArg,t.getFunction);console.error("platform for loading not supported by smartenv")}async getSafeNodeModule(t,r){if(!this.isNode){console.error(`You tried to load a node module in a wrong context: ${t}`);return}let n=await new Function(`return import('${t}')`)();return r&&await r(n),n}async getSafeWebModule(t,r){if(!this.isBrowser){console.error("You tried to load a web module in a wrong context");return}if(this.loadedScripts.includes(t))return r();this.loadedScripts.push(t);let n=re.defer();if(globalThis.importScripts)globalThis.importScripts(t),n.resolve();else{let i=document.createElement("script");i.onload=()=>{n.resolve()},i.src=t,document.head.appendChild(i)}return await n.promise,r()}get runtimeEnv(){return typeof process<"u"?"node":"browser"}get isBrowser(){return!this.isNode}get userAgent(){return this.isBrowser?navigator.userAgent:"undefined"}get isNode(){return this.runtimeEnv==="node"}get nodeVersion(){return process.version}get isCI(){return this.isNode?!!process.env.CI:!1}async isMacAsync(){return this.isNode?(await this.getSafeNodeModule("os")).platform()==="darwin":!1}async isWindowsAsync(){return this.isNode?(await this.getSafeNodeModule("os")).platform()==="win32":!1}async isLinuxAsync(){return this.isNode?(await this.getSafeNodeModule("os")).platform()==="linux":!1}async printEnv(){this.isNode?(console.log("running on NODE"),console.log("node version is "+this.nodeVersion)):(console.log("running on BROWSER"),console.log("browser is "+this.userAgent))}};var Fe={};ue(Fe,{Smartjson:()=>Ep,deepEqualJsonLStrings:()=>cD,deepEqualObjects:()=>O0,foldDec:()=>uD,parse:()=>ms,parseBase64:()=>lD,parseJsonL:()=>oD,stringify:()=>ji,stringifyBase64:()=>aD,stringifyPretty:()=>sD});var zr={};ue(zr,{Base64:()=>wl,Domain:()=>vl,GitRepo:()=>Sl,base64:()=>Ri,create:()=>rp,docker:()=>np,indent:()=>sp,normalize:()=>ap,type:()=>lp});var rp={};ue(rp,{createCryptoRandomString:()=>mO,createRandomString:()=>hO});var Ob=$e(Ca(),1),Mb=$e(Xx(),1);var ib="3.7.7",VI=ib,Fi=typeof Buffer=="function",Kx=typeof TextDecoder=="function"?new TextDecoder:void 0,eb=typeof TextEncoder=="function"?new TextEncoder:void 0,YI="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",us=Array.prototype.slice.call(YI),gl=(e=>{let t={};return e.forEach((r,n)=>t[r]=n),t})(us),GI=/^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/,rt=String.fromCharCode.bind(String),tb=typeof Uint8Array.from=="function"?Uint8Array.from.bind(Uint8Array):e=>new Uint8Array(Array.prototype.slice.call(e,0)),ob=e=>e.replace(/=/g,"").replace(/[+\/]/g,t=>t=="+"?"-":"_"),sb=e=>e.replace(/[^A-Za-z0-9\+\/]/g,""),ab=e=>{let t,r,n,i,o="",s=e.length%3;for(let a=0;a<e.length;){if((r=e.charCodeAt(a++))>255||(n=e.charCodeAt(a++))>255||(i=e.charCodeAt(a++))>255)throw new TypeError("invalid character found");t=r<<16|n<<8|i,o+=us[t>>18&63]+us[t>>12&63]+us[t>>6&63]+us[t&63]}return s?o.slice(0,s-3)+"===".substring(s):o},Xf=typeof btoa=="function"?e=>btoa(e):Fi?e=>Buffer.from(e,"binary").toString("base64"):ab,Qf=Fi?e=>Buffer.from(e).toString("base64"):e=>{let r=[];for(let n=0,i=e.length;n<i;n+=4096)r.push(rt.apply(null,e.subarray(n,n+4096)));return Xf(r.join(""))},yl=(e,t=!1)=>t?ob(Qf(e)):Qf(e),JI=e=>{if(e.length<2){var t=e.charCodeAt(0);return t<128?e:t<2048?rt(192|t>>>6)+rt(128|t&63):rt(224|t>>>12&15)+rt(128|t>>>6&63)+rt(128|t&63)}else{var t=65536+(e.charCodeAt(0)-55296)*1024+(e.charCodeAt(1)-56320);return rt(240|t>>>18&7)+rt(128|t>>>12&63)+rt(128|t>>>6&63)+rt(128|t&63)}},QI=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,lb=e=>e.replace(QI,JI),rb=Fi?e=>Buffer.from(e,"utf8").toString("base64"):eb?e=>Qf(eb.encode(e)):e=>Xf(lb(e)),Ni=(e,t=!1)=>t?ob(rb(e)):rb(e),nb=e=>Ni(e,!0),ZI=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,XI=e=>{switch(e.length){case 4:var t=(7&e.charCodeAt(0))<<18|(63&e.charCodeAt(1))<<12|(63&e.charCodeAt(2))<<6|63&e.charCodeAt(3),r=t-65536;return rt((r>>>10)+55296)+rt((r&1023)+56320);case 3:return rt((15&e.charCodeAt(0))<<12|(63&e.charCodeAt(1))<<6|63&e.charCodeAt(2));default:return rt((31&e.charCodeAt(0))<<6|63&e.charCodeAt(1))}},ub=e=>e.replace(ZI,XI),cb=e=>{if(e=e.replace(/\s+/g,""),!GI.test(e))throw new TypeError("malformed base64.");e+="==".slice(2-(e.length&3));let t,r="",n,i;for(let o=0;o<e.length;)t=gl[e.charAt(o++)]<<18|gl[e.charAt(o++)]<<12|(n=gl[e.charAt(o++)])<<6|(i=gl[e.charAt(o++)]),r+=n===64?rt(t>>16&255):i===64?rt(t>>16&255,t>>8&255):rt(t>>16&255,t>>8&255,t&255);return r},Kf=typeof atob=="function"?e=>atob(sb(e)):Fi?e=>Buffer.from(e,"base64").toString("binary"):cb,fb=Fi?e=>tb(Buffer.from(e,"base64")):e=>tb(Kf(e).split("").map(t=>t.charCodeAt(0))),pb=e=>fb(hb(e)),KI=Fi?e=>Buffer.from(e,"base64").toString("utf8"):Kx?e=>Kx.decode(fb(e)):e=>ub(Kf(e)),hb=e=>sb(e.replace(/[-_]/g,t=>t=="-"?"+":"/")),Zf=e=>KI(hb(e)),eO=e=>{if(typeof e!="string")return!1;let t=e.replace(/\s+/g,"").replace(/={0,2}$/,"");return!/[^\s0-9a-zA-Z\+/]/.test(t)||!/[^\s0-9a-zA-Z\-_]/.test(t)},mb=e=>({value:e,enumerable:!1,writable:!0,configurable:!0}),db=function(){let e=(t,r)=>Object.defineProperty(String.prototype,t,mb(r));e("fromBase64",function(){return Zf(this)}),e("toBase64",function(t){return Ni(this,t)}),e("toBase64URI",function(){return Ni(this,!0)}),e("toBase64URL",function(){return Ni(this,!0)}),e("toUint8Array",function(){return pb(this)})},gb=function(){let e=(t,r)=>Object.defineProperty(Uint8Array.prototype,t,mb(r));e("toBase64",function(t){return yl(this,t)}),e("toBase64URI",function(){return yl(this,!0)}),e("toBase64URL",function(){return yl(this,!0)})},tO=()=>{db(),gb()},cs={version:ib,VERSION:VI,atob:Kf,atobPolyfill:cb,btoa:Xf,btoaPolyfill:ab,fromBase64:Zf,toBase64:Ni,encode:Ni,encodeURI:nb,encodeURL:nb,utob:lb,btou:ub,decode:Zf,isValid:eO,fromUint8Array:yl,toUint8Array:pb,extendString:db,extendUint8Array:gb,extendBuiltins:tO};var bb=$e(xb(),1);function xl(e){let t=(0,bb.default)(e);if(t===0)return e;let r=new RegExp(`^[ \\t]{${t}}`,"gm");return e.replace(r,"")}var tp=$e(Ib(),1),zH=new rs;var hO=(e,t,r)=>tp.default(e,t,r),mO=()=>Ob.uni();var np={};ue(np,{makeEnvObject:()=>dO});var dO=function(e){let t={},r=/(.*)=(.*)/;if(typeof e<"u")for(let n in e){let i=r.exec(e[n]);t[i[1]]=i[2]}return t};var sp={};ue(sp,{indent:()=>yO,indentWithPrefix:()=>xO,normalize:()=>bO});var ip=e=>{let t=e.split(`
|
|
48
|
+
`);return gO(t)},op=e=>{let t="";for(let r of e)t=t+r+`
|
|
49
|
+
`;return t},gO=e=>{let t=/^[\s]*$/;return t.test(e[0])&&e.shift(),t.test(e[e.length-1])&&e.pop(),e},yO=(e,t)=>{let r=ip(e);for(let i of r)i=" ".repeat(t)+i;return op(r)},xO=(e,t)=>{let r,n=ip(e),i=[];for(let o of n)i.push(t+o);return r=op(i),r},bO=e=>{let t,r=ip(e),n,i=/^(\s*)/,o=/^(\s*)$/;for(let a of r){let l=i.exec(a)[1];(typeof n>"u"||l.length<n)&&!o.test(a)&&(n=l.length)}let s=[];for(let a of r)s.push(a.substr(n));return t=op(s),t};var ap={};ue(ap,{replaceAll:()=>Db,standard:()=>wO});var Db=(e,t,r)=>e.replace(new RegExp(t,"g"),r),wO=(e,t)=>{let r=e;return(!t||t.stripIndent)&&(r=xl(r)),(!t||t.normalizeNewline)&&(r=r.replace(/\r\n/g,`
|
|
50
|
+
`)),(!t||t.replaceTabs)&&(r=Db(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 lp={};ue(lp,{isBase64:()=>SO,isUtf8:()=>vO});var wl=class{constructor(t,r){switch(r){case"string":this.refString=t;break;case"base64":this.refString=Ri.decode(t);break;case"base64uri":this.refString=Ri.decode(t)}}get simpleString(){return this.refString}get base64String(){return Ri.encode(this.refString)}get base64UriString(){return Ri.encodeUri(this.refString)}},Ri={encode:e=>cs.encode(e),encodeUri:e=>cs.encodeURI(e),decode:e=>cs.decode(e),isBase64:e=>/^([A-Za-z0-9+/]{4})*([A-Za-z0-9+/]{3}=|[A-Za-z0-9+/]{2}==)?$/.test(e)};var vO=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},SO=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 vl=class{constructor(t){this.protocol=this._protocolRegex(t),this.protocol||(t=`https://${t}`),this.nodeParsedUrl=Mb.parse(t),this.port=this.nodeParsedUrl.port;let r=this._domainRegex(t.replace(this.nodeParsedUrl.pathname,""));this.fullName="";for(let n=1;n<=5;n++)if(r[n-1]){let i=r[n-1];this["level"+n.toString()]=i,this.fullName===""?this.fullName=i:this.fullName=i+"."+this.fullName}else this["level"+n.toString()]=void 0;this.zoneName=this.level2+"."+this.level1,this.topLevel=this.level1,this.domainName=this.level2,this.subDomain=this.level3}_domainRegex(t){let n=/([a-zA-Z0-9\-\_]*)\.{0,1}([a-zA-Z0-9\-\_]*)\.{0,1}([a-zA-Z0-9\-\_]*)\.{0,1}([a-zA-Z0-9\-\_]*)\.{0,1}([a-zA-Z0-9\-\_]*)\.{0,1}$/.exec(t);return n.reverse(),n.pop(),n.filter(function(o){return o!==""})}_protocolRegex(t){let n=/^([a-zA-Z0-9]*):\/\//.exec(t);if(n)return n[1]}_portRegex(t){let n=/^([a-zA-Z0-9]*):\/\//.exec(t);if(n)return n[1]}};var Sl=class{constructor(t,r){let n=kO(t);this.host=n[1],this.user=n[2],this.repo=n[3],this.accessToken=r,this.sshUrl=Pb(this.host,this.user,this.repo,this.accessToken,"ssh"),this.httpsUrl=Pb(this.host,this.user,this.repo,this.accessToken,"https")}},kO=function(e){return/([a-zA-Z0-9\-_\.]*)(?:\/|\:)([a-zA-Z0-9\-_\.]*)(?:\/)([a-zA-Z0-9\-_\.]*)(?:\.git)/.exec(e)},Pb=function(e,t,r,n="",i){let o;switch(n!==""&&(n=n+"@"),i){case"https":o="https://"+n+e+"/"+t+"/"+r+".git";break;case"ssh":o="git@"+e+":"+t+"/"+r+".git";break;default:console.error("Link Type "+i+" not known");break}return o};var kp=$e(v0(),1),A0=$e(k0(),1);var E0=A0.default;function XM(e){return btoa(String.fromCharCode(...e))}function KM(e){return new Uint8Array(Array.from(atob(e)).map(t=>t.charCodeAt(0)))}function C0(e,t){return JSON.stringify(e,eD,t)}function T0(e){return JSON.parse(e,tD)}var eD=(e,t)=>{if(nD(t)){let r;if("data"in t&&_0(t.data))if(t.data.length>0)r=new Uint8Array(t.data);else return"";else if(t instanceof Uint8Array)r=t;else return t;return{type:"EncodedBuffer",data:"base64:"+XM(r)}}return t},tD=(e,t)=>{if(rD(t)&&Ap(t.data)&&t.data.startsWith("base64:")){let r=t.data.slice(7);return KM(r)}return t};function rD(e){return I0(e)&&e.type==="EncodedBuffer"&&Ap(e.data)}function nD(e){return I0(e)&&e.type==="Buffer"&&(_0(e.data)||Ap(e.data))||e instanceof Uint8Array}function _0(e){return Array.isArray(e)}function Ap(e){return typeof e=="string"}function I0(e){return typeof e=="object"&&e!==null}var ms=T0,oD=e=>e.trim().split(`
|
|
51
|
+
`).reduce((n,i)=>(i.trim().length>0&&n.push(JSON.parse(i)),n),[]),ji=(e,t,r={})=>{let n=C0(e);return e=JSON.parse(n),E0(e,r)},sD=e=>{let t=ji(e),r=JSON.parse(t);return JSON.stringify(r,null,2)},aD=(...e)=>{let t=ji(...e);return zr.base64.encodeUri(t)},lD=e=>{let t=zr.base64.decode(e);return ms(t)},Ep=class e{static enfoldFromObject(t){let r=new this;for(let n in t)r.saveableProperties.indexOf(n)!==-1&&(r[n]=t[n]);return r}static enfoldFromJson(t){let r=ms(t);return this.enfoldFromObject(r)}foldToObject(){let t={},r=[];for(let n of this.saveableProperties){let i=this[n];if(i instanceof e){if(r.includes(i))throw new Error("cycle detected");r.push(i),i=i.foldToObject()}t[n]=kp.default(i)}return t}foldToJson(){let t=this.foldToObject();return ji(t)}},uD=()=>(e,t)=>{e.saveableProperties||(e.saveableProperties=[]),e.saveableProperties.push(t)},O0=(e,t)=>{let r=ji(e),n=ji(t);return r===n},cD=(e,t)=>{let r=[];e.split(`
|
|
52
|
+
`).forEach(i=>{i&&r.push(ms(i))});let n=[];return t.split(`
|
|
53
|
+
`).forEach(i=>{i&&n.push(ms(i))}),O0(r,n)};var Hr={};ue(Hr,{TypedrequestCache:()=>Dp,WebStore:()=>ds});var Pl={};ue(Pl,{deleteDB:()=>xD,openDB:()=>yD,unwrap:()=>Ml,wrap:()=>gr});var _p=(e,t)=>t.some(r=>e instanceof r),M0,D0;function fD(){return M0||(M0=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])}function pD(){return D0||(D0=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])}var Ip=new WeakMap,Cp=new WeakMap,Dl=new WeakMap;function hD(e){let t=new Promise((r,n)=>{let i=()=>{e.removeEventListener("success",o),e.removeEventListener("error",s)},o=()=>{r(gr(e.result)),i()},s=()=>{n(e.error),i()};e.addEventListener("success",o),e.addEventListener("error",s)});return Dl.set(t,e),t}function mD(e){if(Ip.has(e))return;let t=new Promise((r,n)=>{let i=()=>{e.removeEventListener("complete",o),e.removeEventListener("error",s),e.removeEventListener("abort",s)},o=()=>{r(),i()},s=()=>{n(e.error||new DOMException("AbortError","AbortError")),i()};e.addEventListener("complete",o),e.addEventListener("error",s),e.addEventListener("abort",s)});Ip.set(e,t)}var Op={get(e,t,r){if(e instanceof IDBTransaction){if(t==="done")return Ip.get(e);if(t==="store")return r.objectStoreNames[1]?void 0:r.objectStore(r.objectStoreNames[0])}return gr(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 R0(e){Op=e(Op)}function dD(e){return pD().includes(e)?function(...t){return e.apply(Ml(this),t),gr(this.request)}:function(...t){return gr(e.apply(Ml(this),t))}}function gD(e){return typeof e=="function"?dD(e):(e instanceof IDBTransaction&&mD(e),_p(e,fD())?new Proxy(e,Op):e)}function gr(e){if(e instanceof IDBRequest)return hD(e);if(Cp.has(e))return Cp.get(e);let t=gD(e);return t!==e&&(Cp.set(e,t),Dl.set(t,e)),t}var Ml=e=>Dl.get(e);function yD(e,t,{blocked:r,upgrade:n,blocking:i,terminated:o}={}){let s=indexedDB.open(e,t),a=gr(s);return n&&s.addEventListener("upgradeneeded",l=>{n(gr(s.result),l.oldVersion,l.newVersion,gr(s.transaction),l)}),r&&s.addEventListener("blocked",l=>r(l.oldVersion,l.newVersion,l)),a.then(l=>{o&&l.addEventListener("close",()=>o()),i&&l.addEventListener("versionchange",u=>i(u.oldVersion,u.newVersion,u))}).catch(()=>{}),a}function xD(e,{blocked:t}={}){let r=indexedDB.deleteDatabase(e);return t&&r.addEventListener("blocked",n=>t(n.oldVersion,n)),gr(r).then(()=>{})}var bD=["get","getKey","getAll","getAllKeys","count"],wD=["put","add","delete","clear"],Tp=new Map;function P0(e,t){if(!(e instanceof IDBDatabase&&!(t in e)&&typeof t=="string"))return;if(Tp.get(t))return Tp.get(t);let r=t.replace(/FromIndex$/,""),n=t!==r,i=wD.includes(r);if(!(r in(n?IDBIndex:IDBObjectStore).prototype)||!(i||bD.includes(r)))return;let o=async function(s,...a){let l=this.transaction(s,i?"readwrite":"readonly"),u=l.store;return n&&(u=u.index(a.shift())),(await Promise.all([u[r](...a),i&&l.done]))[0]};return Tp.set(t,o),o}R0(e=>({...e,get:(t,r,n)=>P0(t,r)||e.get(t,r,n),has:(t,r)=>!!P0(t,r)||e.has(t,r)}));var vD=["continue","continuePrimaryKey","advance"],N0={},Mp=new WeakMap,L0=new WeakMap,SD={get(e,t){if(!vD.includes(t))return e[t];let r=N0[t];return r||(r=N0[t]=function(...n){Mp.set(this,L0.get(this)[t](...n))}),r}};async function*kD(...e){let t=this;if(t instanceof IDBCursor||(t=await t.openCursor(...e)),!t)return;t=t;let r=new Proxy(t,SD);for(L0.set(r,t),Dl.set(r,Ml(t));t;)yield r,t=await(Mp.get(r)||t.continue()),Mp.delete(r)}function F0(e,t){return t===Symbol.asyncIterator&&_p(e,[IDBIndex,IDBObjectStore,IDBCursor])||t==="iterate"&&_p(e,[IDBIndex,IDBObjectStore])}R0(e=>({...e,get(t,r,n){return F0(t,r)?kD:e.get(t,r,n)},has(t,r){return F0(t,r)||e.has(t,r)}}));var ds=class{constructor(t){this.initCalled=!1,this.readyDeferred=re.defer(),this.options=t}async init(){if(this.initCalled){await this.readyDeferred.promise;return}this.initCalled=!0;let t=new Tn.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 Pl.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 Dp=class{constructor(t="default"){this.webstore=new ds({dbName:"trStore",storeName:`trStore-${t}`})}buildKey(t){return Fe.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 Pp=class{constructor(t={}){this.optionsArg=t,this.cacheStore=new Hr.WebStore({dbName:"webrequest",storeName:"webrequest"}),this.options={logging:!0,...t}}async getJson(t,r=!1){let i=await(await this.request(t,{method:"GET",useCache:r})).text();return Fe.parse(i)}async postJson(t,r,n=!1){let o=await(await this.request(t,{method:"POST",headers:{"Content-Type":"application/json"},body:Fe.stringify(r),useCache:n})).text();return Fe.parse(o)}async putJson(t,r,n=!1){let o=await(await this.request(t,{method:"PUT",headers:{"Content-Type":"application/json"},body:Fe.stringify(r)})).text();return Fe.parse(o)}async deleteJson(t,r=!1){let i=await(await this.request(t,{headers:{"Content-Type":"application/json"},method:"GET"})).text();return Fe.parse(i)}async request(t,r){r={timeoutMs:6e4,useCache:!1,...r};let n=new AbortController;he.delayFor(r.timeoutMs).then(()=>{n.abort()});let i=re.defer(),o=!1;if(r.useCache&&await this.cacheStore.check(t)){let a=await this.cacheStore.get(t);i.resolve(new Response(a,{}))}else i.resolve(null);let s=await fetch(t,{signal:n.signal,method:r.method,headers:{...r.headers||{}},body:r.body}).catch(async a=>r.useCache&&await i.promise?(o=!0,i.promise):a);if(r.useCache&&await i.promise&&s.status===500&&(o=!0,s=await i.promise),!o&&r.useCache&&s.status<300){let a=await s.clone().arrayBuffer();await this.cacheStore.set(t,a)}return this.log(`${t} answers with status: ${s.status}`),s}async requestMultiEndpoint(t,r){let n,i=0;Array.isArray(t)?n=t:n=[t];let o=[],s=async u=>{o.push(u),u==="429"&&(console.log("got 429, so waiting a little bit."),await he.delayFor(Math.floor(Math.random()*1001)+1e3));let c=0;for(let f of o)f===u&&c++;c>2*n.length*i&&i++},a=async u=>{if(!u)throw new Error("request failed permanently");this.log(`Getting ${u} with method ${r.method}`);let c=await fetch(u,{method:r.method,headers:{"Content-Type":"application/json",...r.headers||{}},body:r.body});return this.log(`${u} answers with status: ${c.status}`),c.status>=200&&c.status<300?c:(await s(c.status.toString()),await a(n[i]))};return await a(n[i])}log(t){this.options.logging&&console.log(t)}};var yr=class{constructor(t,r){this.errorText=t,this.errorData=r}};var Fl=class{async passGuards(t,r){let n=new el.GuardSet(t);if(!await n.allGuardsPass(r)){let o=await n.getFailedHint(r);throw new yr(`guard failed: ${o}`,{failedHint:o})}}};var Np=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 Fl,i=await this.handlerFunction(t.request,n).catch(o=>{o instanceof yr?r=o:console.log(o)});return r&&(t.error={text:r.errorText,data:r.errorData}),i&&(t.response=i),t?.correlation?.phase&&(t.correlation.phase="response"),t}};var ys=class{constructor(){this.routerMap=new ft.ObjectMap,this.handlerMap=new ft.ObjectMap,this.registeredVirtualStreams=new ft.ObjectMap,this.fireEventInterestMap=new ft.InterestMap(t=>t)}addTypedHandler(t){if(this.getTypedHandlerForMethod(t.method))throw new Error(`a TypedHandler for ${t.method} alredy exists! Can't add another one.`);this.handlerMap.add(t)}addTypedRouter(t){this.routerMap.findSync(n=>n===t)||(this.routerMap.add(t),t.addTypedRouter(this))}checkForTypedHandler(t){return!!this.getTypedHandlerForMethod(t)}getTypedHandlerForMethod(t,r=[]){r.push(this);let n;return n=this.handlerMap.findSync(i=>i.method===t),n||this.routerMap.getArray().forEach(i=>{!n&&!r.includes(i)&&(n=i.getTypedHandlerForMethod(t,r))}),n}async routeAndAddResponse(t,r=!1){if(t=Qt.decodePayloadFromNetwork(t,{typedrouter:this}),t.localData=t.localData||{},t.localData.firstTypedrouter=this,t.method==="##VirtualStream##"){let n=await this.handleStreamTypedRequest(t);return n.localData=null,n}if(t?.correlation?.phase==="request"||r){let n=this.getTypedHandlerForMethod(t.method);return n?(t=await n.addResponse(t),t.localData=null,t=Qt.encodePayloadForNetwork(t,{typedrouter:this}),t):(console.log(`Cannot find handler for methodname ${t.method}`),t.error={text:"There is no available method for this call on the server side",data:{}},t.correlation.phase="response",t.localData=null,t=Qt.encodePayloadForNetwork(t,{typedrouter:this}),t)}else return t?.correlation?.phase==="response"?(this.fireEventInterestMap.findInterest(t.correlation.id)?.fullfillInterest(t),null):(console.log("received weirdly shaped request"),console.log(t),null)}async handleStreamTypedRequest(t){let r=await this.registeredVirtualStreams.find(async i=>i.streamId===t.request.streamId);if(r)console.log(`success: found relevant virtual stream with id ${t.request.streamId}`);else return console.log(`no relevant virtual stream found for stream with id ${t.request.streamId}`),console.log(this.registeredVirtualStreams.getArray()),t;return await r.handleStreamTr(t)}};var U0="#############CLOSING BIT#############",Qt=class e{static encodePayloadForNetwork(t,r,n,i=[]){return!t||Xo.isBufferLike(t)?t:t instanceof e?(!t.side&&r.sendMethod&&(t.side="requesting",t.sendMethod=r.sendMethod),!t.side&&r.typedrouter&&(t.side="responding",t.typedrouter=r.typedrouter,r.typedrouter.registeredVirtualStreams.add(t)),!n.response||i.includes("response")?(t.startKeepAliveLoop(),{_isVirtualStream:!0,streamId:t.streamId}):{_OBMITTED_VIRTUAL_STREAM:!0,reason:"path is under .request: obmitted for deduplication reasons in response cycle."}):Array.isArray(t)?t.map((o,s)=>e.encodePayloadForNetwork(o,r,n||t,i.concat(String(s)))):t!==null&&typeof t=="object"?Object.entries(t).reduce((o,[s,a])=>{let l=i.concat(s);return o[s]=e.encodePayloadForNetwork(a,r,n||t,l),o},{}):t}static decodePayloadFromNetwork(t,r){if(Xo.isBufferLike(t)||t instanceof ys)return t;if(t!==null&&typeof t=="object")if(t._isVirtualStream){let n=new e;return n.streamId=t.streamId,!n.side&&r.sendMethod&&(n.side="requesting",n.sendMethod=r.sendMethod),!n.side&&r.typedrouter&&(n.side="responding",n.typedrouter=r.typedrouter,r.typedrouter.registeredVirtualStreams.add(n)),n.startKeepAliveLoop(),n}else if(Array.isArray(t)){let n=[];for(let i of t)n.push(e.decodePayloadFromNetwork(i,r));return n}else return Object.keys(t).reduce((n,i)=>(n[i]=e.decodePayloadFromNetwork(t[i],r),n),{});else return t}constructor(){this.streamId=Fn.uni(),this.keepAlive=!0,this.sendBackpressuredArray=new ft.BackpressuredArray(16),this.receiveBackpressuredArray=new ft.BackpressuredArray(16)}async workOnQueue(){if(this.workingDeferred)return this.workingDeferred.promise;if(this.workingDeferred=re.defer(),this.side==="requesting"){let t=!this.receiveBackpressuredArray.checkSpaceAvailable(),r=!1,n=!1,i=async()=>{let o=await this.sendMethod({method:"##VirtualStream##",request:{streamId:this.streamId,cycleId:Fn.uni(),cycle:"request",mainPurpose:"feedback",next:this.sendBackpressuredArray.data.length>0,backpressure:!this.receiveBackpressuredArray.checkSpaceAvailable()},response:null}).catch(()=>{console.log("stream ended immaturely"),this.keepAlive=!1});o&&o.response&&(n=o.response.backpressure,r=o.response.next)};for(await i();this.sendBackpressuredArray.data.length>0||r;){if(n)for(;n;)console.log("waiting for feedback because of backpressure..."),await he.delayFor(50),await i();let o;this.sendBackpressuredArray.data.length>0&&(o=this.sendBackpressuredArray.shift());let s;s=await this.sendMethod({method:"##VirtualStream##",request:{streamId:this.streamId,cycleId:Fn.uni(),cycle:"request",mainPurpose:o?"chunk":"read",backpressure:t,next:this.sendBackpressuredArray.data.length>0,...o?{chunkData:o}:{}},response:null}).catch(()=>(console.log("stream ended immaturely"),this.keepAlive=!1,null)),s&&s.response&&s.response.chunkData&&this.receiveBackpressuredArray.push(s.response.chunkData),n=s&&s.response&&s.response.backpressure,t=!this.receiveBackpressuredArray.checkSpaceAvailable(),r=s&&s.response&&s.response.next}}this.workingDeferred.resolve(),this.workingDeferred=null}async handleStreamTr(t){if(t.request.keepAlive===!0&&this.keepAlive===!0?this.lastKeepAliveEvent=Date.now():t.request.keepAlive===!1&&(this.keepAlive=!1),t.request.mainPurpose==="keepAlive"&&(t.response={streamId:this.streamId,cycleId:t.request.cycleId,cycle:"response",mainPurpose:"keepAlive",keepAlive:this.keepAlive,next:this.sendBackpressuredArray.data.length>0,backpressure:!this.receiveBackpressuredArray.checkSpaceAvailable()}),t.request.mainPurpose==="feedback"&&(t.response={streamId:this.streamId,cycleId:t.request.cycleId,cycle:"response",mainPurpose:"feedback",next:this.sendBackpressuredArray.data.length>0,backpressure:!this.receiveBackpressuredArray.checkSpaceAvailable()}),t.request.mainPurpose==="chunk"){if(this.receiveBackpressuredArray.push(t.request.chunkData),this.sendBackpressuredArray.data.length>0&&t.response.backpressure===!1){let r=this.sendBackpressuredArray.shift();t.response={streamId:this.streamId,cycleId:t.request.cycleId,cycle:"response",mainPurpose:"chunk",next:this.sendBackpressuredArray.data.length>1,backpressure:!this.receiveBackpressuredArray.checkSpaceAvailable(),chunkData:this.sendBackpressuredArray.shift()}}else t.response={streamId:this.streamId,cycleId:t.request.cycleId,cycle:"response",mainPurpose:"feedback",next:this.sendBackpressuredArray.data.length>0,backpressure:!this.receiveBackpressuredArray.checkSpaceAvailable()};t.request=null}return t}async cleanup(){this.typedrouter&&this.typedrouter.registeredVirtualStreams.remove(this)}async startKeepAliveLoop(){if(this.side==="responding")return;await he.delayFor(0),console.log(`starting keepalive loop on side ${this.side}`);let t=0;for(;this.keepAlive;)await this.triggerKeepAlive(),await he.delayFor(1e3);await he.delayFor(1e3),await this.cleanup(),console.log(`cleaned up for stream ${this.streamId}`)}async triggerKeepAlive(){if(this.side==="requesting"){console.log("keepalive sent.");let t=await this.sendMethod({method:"##VirtualStream##",request:{streamId:this.streamId,cycleId:Fn.uni(),cycle:"request",mainPurpose:"keepAlive",keepAlive:this.keepAlive},response:null}).catch(()=>{this.keepAlive=!1});t&&t.response&&t.response.keepAlive===!1?this.keepAlive=!1:this.lastKeepAliveEvent=Date.now(),t&&t.response&&t.response.next&&this.workOnQueue()}Date.now()-this.lastKeepAliveEvent>1e4&&(console.log(`closing stream for ${this.streamId}`),this.keepAlive=!1)}async sendData(t){this.sendBackpressuredArray.push(t),this.workOnQueue(),await this.sendBackpressuredArray.waitForSpace()}async fetchData(){return this.receiveBackpressuredArray.hasSpace,await this.receiveBackpressuredArray.waitForItems(),this.receiveBackpressuredArray.shift()}async readFromWebstream(t,r=!0){let n=t.getReader(),i=!1;for(;!i;){let{value:o,done:s}=await n.read();o&&await this.sendData(o),i=s}r&&await this.close(!0)}async writeToWebstream(t){let r=t.getWriter();for(;this.keepAlive||this.receiveBackpressuredArray.checkHasItems();){let n=await this.fetchData();if(n===U0){r.releaseLock(),await t.close();break}await r.write(n)}}async close(t=!1){t&&this.sendData(U0),this.keepAlive=!1}};var Fp=class{constructor(t){if(t.postMethodWithTypedRouter&&!t.typedRouterRef)throw new Error("you have to specify a typedrouter when using postmethod with typedrouter");this.options=t}async post(t){let r;this.options.typedRouterRef&&(r=await this.options.typedRouterRef.fireEventInterestMap.addInterest(t.correlation.id,t));let i=await(this.options.postMethod||this.options.postMethodWithTypedRouter)(t),o;return r?o=await r.interestFullfilled:i?o=i:o=t,o}};var ED=new gs.WebRequest,xs=class{constructor(t,r){typeof t=="string"?this.urlEndPoint=t:this.typedTarget=t,this.method=r}async fire(t,r=!1){let n={method:this.method,request:t,response:null,correlation:{id:Fn.uni(),phase:"request"}};n=Qt.encodePayloadForNetwork(n,{sendMethod:o=>this.postTrObject(o)});let i;return i=await this.postTrObject(n,r),i=Qt.decodePayloadFromNetwork(i,{sendMethod:o=>this.postTrObject(o)}),i.response}async postTrObject(t,r=!1){let n;if(this.urlEndPoint?n=await ED.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 yr(n.error.text,n.error.data);return null}return n.retry&&(console.log(`server requested retry for the following reason: ${n.retry.reason}`),await he.delayFor(n.retry.waitForMs),n=await this.postTrObject(t,r)),n}};function j0(e){return e&&typeof e.then=="function"}var CD=Promise.resolve(!1),z9=Promise.resolve(!0),Zt=Promise.resolve();function Rl(e,t){return e||(e=0),new Promise(function(r){return setTimeout(function(){return r(t)},e)})}function z0(e,t){return Math.floor(Math.random()*(t-e+1)+e)}function bs(){return Math.random().toString(36).substring(2)}var Rp=0;function xr(){var e=Date.now()*1e3;return e<=Rp&&(e=Rp+1),Rp=e,e}var TD=xr,_D="native";function ID(e){var t={time:xr(),messagesCallback:null,bc:new BroadcastChannel(e),subFns:[]};return t.bc.onmessage=function(r){t.messagesCallback&&t.messagesCallback(r.data)},t}function OD(e){e.bc.close(),e.subFns=[]}function MD(e,t){try{return e.bc.postMessage(t,!1),Zt}catch(r){return Promise.reject(r)}}function DD(e,t){e.messagesCallback=t}function PD(){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 ND(){return 150}var q0={create:ID,close:OD,onMessage:DD,postMessage:MD,canBeUsed:PD,type:_D,averageResponseTime:ND,microSeconds:TD};var zi=class{ttl;map=new Map;_to=!1;constructor(t){this.ttl=t}has(t){return this.map.has(t)}add(t){this.map.set(t,H0()),this._to||(this._to=!0,setTimeout(()=>{this._to=!1,FD(this)},0))}clear(){this.map.clear()}};function FD(e){let t=H0()-e.ttl,r=e.map[Symbol.iterator]();for(;;){let n=r.next().value;if(!n)return;let i=n[0];if(n[1]<t)e.map.delete(i);else return}}function H0(){return Date.now()}function qi(){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 RD=xr,LD="pubkey.broadcast-channel-0-",br="messages",Ll={durability:"relaxed"},BD="idb";function W0(){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 Lp(e){e.commit&&e.commit()}function $D(e){var t=W0(),r=LD+e,n=t.open(r);return n.onupgradeneeded=function(i){var o=i.target.result;o.createObjectStore(br,{keyPath:"id",autoIncrement:!0})},new Promise(function(i,o){n.onerror=function(s){return o(s)},n.onsuccess=function(){i(n.result)}})}function UD(e,t,r){var n=Date.now(),i={uuid:t,time:n,data:r},o=e.transaction([br],"readwrite",Ll);return new Promise(function(s,a){o.oncomplete=function(){return s()},o.onerror=function(u){return a(u)};var l=o.objectStore(br);l.add(i),Lp(o)})}function jD(e,t){var r=e.transaction(br,"readonly",Ll),n=r.objectStore(br),i=[],o=IDBKeyRange.bound(t+1,1/0);if(n.getAll){var s=n.getAll(o);return new Promise(function(l,u){s.onerror=function(c){return u(c)},s.onsuccess=function(c){l(c.target.result)}})}function a(){try{return o=IDBKeyRange.bound(t+1,1/0),n.openCursor(o)}catch{return n.openCursor()}}return new Promise(function(l,u){var c=a();c.onerror=function(f){return u(f)},c.onsuccess=function(f){var p=f.target.result;p?p.value.id<t+1?p.continue(t+1):(i.push(p.value),p.continue()):(Lp(r),l(i))}})}function zD(e,t){if(e.closed)return Promise.resolve([]);var r=e.db.transaction(br,"readwrite",Ll),n=r.objectStore(br);return Promise.all(t.map(function(i){var o=n.delete(i);return new Promise(function(s){o.onsuccess=function(){return s()}})}))}function qD(e,t){var r=Date.now()-t,n=e.transaction(br,"readonly",Ll),i=n.objectStore(br),o=[];return new Promise(function(s){i.openCursor().onsuccess=function(a){var l=a.target.result;if(l){var u=l.value;u.time<r?(o.push(u),l.continue()):(Lp(n),s(o))}else s(o)}})}function HD(e){return qD(e.db,e.options.idb.ttl).then(function(t){return zD(e,t.map(function(r){return r.id}))})}function WD(e,t){return t=qi(t),$D(e).then(function(r){var n={closed:!1,lastCursorId:0,channelName:e,options:t,uuid:bs(),eMIs:new zi(t.idb.ttl*2),writeBlockPromise:Zt,messagesCallback:null,readQueuePromises:[],db:r};return r.onclose=function(){n.closed=!0,t.idb.onclose&&t.idb.onclose()},V0(n),n})}function V0(e){e.closed||Y0(e).then(function(){return Rl(e.options.idb.fallbackInterval)}).then(function(){return V0(e)})}function VD(e,t){return!(e.uuid===t.uuid||t.eMIs.has(e.id)||e.data.time<t.messagesCallbackTime)}function Y0(e){return e.closed?Zt:e.messagesCallback?jD(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 VD(n,e)}).sort(function(n,i){return n.time-i.time});return r.forEach(function(n){e.messagesCallback&&(e.eMIs.add(n.id),e.messagesCallback(n.data))}),Zt}):Zt}function YD(e){e.closed=!0,e.db.close()}function GD(e,t){return e.writeBlockPromise=e.writeBlockPromise.then(function(){return UD(e.db,e.uuid,t)}).then(function(){z0(0,10)===0&&HD(e)}),e.writeBlockPromise}function JD(e,t,r){e.messagesCallbackTime=r,e.messagesCallback=t,Y0(e)}function QD(){return!!W0()}function ZD(e){return e.idb.fallbackInterval*2}var G0={create:WD,close:YD,onMessage:JD,postMessage:GD,canBeUsed:QD,type:BD,averageResponseTime:ZD,microSeconds:RD};var XD=xr,KD="pubkey.broadcastChannel-",eP="localstorage";function J0(){var e;if(typeof window>"u")return null;try{e=window.localStorage,e=window["ie8-eventlistener/storage"]||window.localStorage}catch{}return e}function Q0(e){return KD+e}function tP(e,t){return new Promise(function(r){Rl().then(function(){var n=Q0(e.channelName),i={token:bs(),time:Date.now(),data:t,uuid:e.uuid},o=JSON.stringify(i);J0().setItem(n,o);var s=document.createEvent("Event");s.initEvent("storage",!0,!0),s.key=n,s.newValue=o,window.dispatchEvent(s),r()})})}function rP(e,t){var r=Q0(e),n=function(o){o.key===r&&t(JSON.parse(o.newValue))};return window.addEventListener("storage",n),n}function nP(e){window.removeEventListener("storage",e)}function iP(e,t){if(t=qi(t),!Z0())throw new Error("BroadcastChannel: localstorage cannot be used");var r=bs(),n=new zi(t.localstorage.removeTimeout),i={channelName:e,uuid:r,eMIs:n};return i.listener=rP(e,function(o){i.messagesCallback&&o.uuid!==r&&(!o.token||n.has(o.token)||o.data.time&&o.data.time<i.messagesCallbackTime||(n.add(o.token),i.messagesCallback(o.data)))}),i}function oP(e){nP(e.listener)}function sP(e,t,r){e.messagesCallbackTime=r,e.messagesCallback=t}function Z0(){var e=J0();if(!e)return!1;try{var t="__broadcastchannel_check";e.setItem(t,"works"),e.removeItem(t)}catch{return!1}return!0}function aP(){var e=120,t=navigator.userAgent.toLowerCase();return t.includes("safari")&&!t.includes("chrome")?e*2:e}var X0={create:iP,close:oP,onMessage:sP,postMessage:tP,canBeUsed:Z0,type:eP,averageResponseTime:aP,microSeconds:XD};var K0=xr,lP="simulate",Bp=new Set;function uP(e){var t={time:K0(),name:e,messagesCallback:null};return Bp.add(t),t}function cP(e){Bp.delete(e)}var ew=5;function fP(e,t){return new Promise(function(r){return setTimeout(function(){var n=Array.from(Bp);n.forEach(function(i){i.name===e.name&&i!==e&&i.messagesCallback&&i.time<t.time&&i.messagesCallback(t)}),r()},ew)})}function pP(e,t){e.messagesCallback=t}function hP(){return!0}function mP(){return ew}var tw={create:uP,close:cP,onMessage:pP,postMessage:fP,canBeUsed:hP,type:lP,averageResponseTime:mP,microSeconds:K0};var rw=[q0,G0,X0];function nw(e){var t=[].concat(e.methods,rw).filter(Boolean);if(e.type){if(e.type==="simulate")return tw;var r=t.find(function(i){return i.type===e.type});if(r)return r;throw new Error("method-type "+e.type+" not found")}e.webWorkerSupport||(t=t.filter(function(i){return i.type!=="idb"}));var n=t.find(function(i){return i.canBeUsed()});if(n)return n;throw new Error("No usable method found in "+JSON.stringify(rw.map(function(i){return i.type})))}var $p=new Set,dP=0,Hi=function(t,r){this.id=dP++,$p.add(this),this.name=t,iw&&(r=iw),this.options=qi(r),this.method=nw(this.options),this._iL=!1,this._onML=null,this._addEL={message:[],internal:[]},this._uMP=new Set,this._befC=[],this._prepP=null,gP(this)};Hi._pubkey=!0;var iw;Hi.prototype={postMessage:function(t){if(this.closed)throw new Error("BroadcastChannel.postMessage(): Cannot post message after channel has closed "+JSON.stringify(t));return ow(this,"message",t)},postInternal:function(t){return ow(this,"internal",t)},set onmessage(e){var t=this.method.microSeconds(),r={time:t,fn:e};aw(this,"message",this._onML),e&&typeof e=="function"?(this._onML=r,sw(this,"message",r)):this._onML=null},addEventListener:function(t,r){var n=this.method.microSeconds(),i={time:n,fn:r};sw(this,t,i)},removeEventListener:function(t,r){var n=this._addEL[t].find(function(i){return i.fn===r});aw(this,t,n)},close:function(){var t=this;if(!this.closed){$p.delete(this),this.closed=!0;var r=this._prepP?this._prepP:Zt;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 ow(e,t,r){var n=e.method.microSeconds(),i={time:n,type:t,data:r},o=e._prepP?e._prepP:Zt;return o.then(function(){var s=e.method.postMessage(e._state,i);return e._uMP.add(s),s.catch().then(function(){return e._uMP.delete(s)}),s})}function gP(e){var t=e.method.create(e.name,e.options);j0(t)?(e._prepP=t,t.then(function(r){e._state=r})):e._state=t}function lw(e){return e._addEL.message.length>0||e._addEL.internal.length>0}function sw(e,t,r){e._addEL[t].push(r),yP(e)}function aw(e,t,r){e._addEL[t]=e._addEL[t].filter(function(n){return n!==r}),xP(e)}function yP(e){if(!e._iL&&lw(e)){var t=function(i){e._addEL[i.type].forEach(function(o){i.time>=o.time&&o.fn(i.data)})},r=e.method.microSeconds();e._prepP?e._prepP.then(function(){e._iL=!0,e.method.onMessage(e._state,t,r)}):(e._iL=!0,e.method.onMessage(e._state,t,r))}}function xP(e){if(e._iL&&!lw(e)){e._iL=!1;var t=e.method.microSeconds();e.method.onMessage(e._state,null,t)}}var Up=globalThis.BroadcastChannel;Up||(Up=Hi);var jp=class{constructor(){this.broadcastChannel=new Up("dees-comms"),this.typedrouter=new It.TypedRouter,this.typedtarget=new It.TypedTarget({postMethodWithTypedRouter:async t=>{this.postMessage(t)},typedRouterRef:this.typedrouter}),this.broadcastChannel.onmessage=async t=>{let r=t.method?t:t.data;console.log(JSON.stringify(r));let n=await this.typedrouter.routeAndAddResponse(r);n&&!n.error&&this.postMessage(n)}}createTypedRequest(t){return new It.TypedRequest(this.typedtarget,t)}async postMessage(t){this.broadcastChannel.postMessage(t)}async createTypedHandler(t,r){this.typedrouter.addTypedHandler(new It.TypedHandler(t,r))}};var qu={};ue(qu,{SmartMarkdown:()=>Wm});var yA=$e(t1(),1);function eh(e){if(e)throw e}var Zl=$e(c1(),1);function Cs(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 th(){let e=[],t={run:r,use:n};return t;function r(...i){let o=-1,s=i.pop();if(typeof s!="function")throw new TypeError("Expected function as last argument, not "+s);a(null,...i);function a(l,...u){let c=e[++o],f=-1;if(l){s(l);return}for(;++f<i.length;)(u[f]===null||u[f]===void 0)&&(u[f]=i[f]);i=u,c?f1(c,a)(...u):s(null,...u)}}function n(i){if(typeof i!="function")throw new TypeError("Expected `middelware` to be a function, not "+i);return e.push(i),t}}function f1(e,t){let r;return n;function n(...s){let a=e.length>s.length,l;a&&s.push(i);try{l=e.apply(this,s)}catch(u){let c=u;if(a&&r)throw c;return i(c)}a||(l&&l.then&&typeof l.then=="function"?l.then(o,i):l instanceof Error?i(l):o(l))}function i(s,...a){r||(r=!0,t(s,...a))}function o(s){i(null,s)}}function Yr(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?p1(e.position):"start"in e||"end"in e?p1(e):"line"in e||"column"in e?rh(e):""}function rh(e){return h1(e&&e.line)+":"+h1(e&&e.column)}function p1(e){return rh(e&&e.start)+"-"+rh(e&&e.end)}function h1(e){return e&&typeof e=="number"?e:1}var et=class extends Error{constructor(t,r,n){super(),typeof r=="string"&&(n=r,r=void 0);let i="",o={},s=!1;if(r&&("line"in r&&"column"in r?o={place:r}:"start"in r&&"end"in r?o={place:r}:"type"in r?o={ancestors:[r],place:r.position}:o={...r}),typeof t=="string"?i=t:!o.cause&&t&&(s=!0,i=t.message,o.cause=t),!o.ruleId&&!o.source&&typeof n=="string"){let l=n.indexOf(":");l===-1?o.ruleId=n:(o.source=n.slice(0,l),o.ruleId=n.slice(l+1))}if(!o.place&&o.ancestors&&o.ancestors){let l=o.ancestors[o.ancestors.length-1];l&&(o.place=l.position)}let a=o.place&&"start"in o.place?o.place.start:o.place;this.ancestors=o.ancestors||void 0,this.cause=o.cause||void 0,this.column=a?a.column:void 0,this.fatal=void 0,this.file,this.message=i,this.line=a?a.line:void 0,this.name=Yr(o.place)||"1:1",this.place=o.place||void 0,this.reason=this.message,this.ruleId=o.ruleId||void 0,this.source=o.source||void 0,this.stack=s&&o.cause&&typeof o.cause.stack=="string"?o.cause.stack:"",this.actual,this.expected,this.note,this.url}};et.prototype.file="";et.prototype.name="";et.prototype.reason="";et.prototype.message="";et.prototype.stack="";et.prototype.column=void 0;et.prototype.line=void 0;et.prototype.ancestors=void 0;et.prototype.cause=void 0;et.prototype.fatal=void 0;et.prototype.place=void 0;et.prototype.ruleId=void 0;et.prototype.source=void 0;var zt={basename:nR,dirname:iR,extname:oR,join:sR,sep:"/"};function nR(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');Ts(e);let r=0,n=-1,i=e.length,o;if(t===void 0||t.length===0||t.length>e.length){for(;i--;)if(e.codePointAt(i)===47){if(o){r=i+1;break}}else n<0&&(o=!0,n=i+1);return n<0?"":e.slice(r,n)}if(t===e)return"";let s=-1,a=t.length-1;for(;i--;)if(e.codePointAt(i)===47){if(o){r=i+1;break}}else s<0&&(o=!0,s=i+1),a>-1&&(e.codePointAt(i)===t.codePointAt(a--)?a<0&&(n=i):(a=-1,n=s));return r===n?n=s:n<0&&(n=e.length),e.slice(r,n)}function iR(e){if(Ts(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 oR(e){Ts(e);let t=e.length,r=-1,n=0,i=-1,o=0,s;for(;t--;){let a=e.codePointAt(t);if(a===47){if(s){n=t+1;break}continue}r<0&&(s=!0,r=t+1),a===46?i<0?i=t:o!==1&&(o=1):i>-1&&(o=-1)}return i<0||r<0||o===0||o===1&&i===r-1&&i===n+1?"":e.slice(i,r)}function sR(...e){let t=-1,r;for(;++t<e.length;)Ts(e[t]),e[t]&&(r=r===void 0?e[t]:r+"/"+e[t]);return r===void 0?".":aR(r)}function aR(e){Ts(e);let t=e.codePointAt(0)===47,r=lR(e,!t);return r.length===0&&!t&&(r="."),r.length>0&&e.codePointAt(e.length-1)===47&&(r+="/"),t?"/"+r:r}function lR(e,t){let r="",n=0,i=-1,o=0,s=-1,a,l;for(;++s<=e.length;){if(s<e.length)a=e.codePointAt(s);else{if(a===47)break;a=47}if(a===47){if(!(i===s-1||o===1))if(i!==s-1&&o===2){if(r.length<2||n!==2||r.codePointAt(r.length-1)!==46||r.codePointAt(r.length-2)!==46){if(r.length>2){if(l=r.lastIndexOf("/"),l!==r.length-1){l<0?(r="",n=0):(r=r.slice(0,l),n=r.length-1-r.lastIndexOf("/")),i=s,o=0;continue}}else if(r.length>0){r="",n=0,i=s,o=0;continue}}t&&(r=r.length>0?r+"/..":"..",n=2)}else r.length>0?r+="/"+e.slice(i+1,s):r=e.slice(i+1,s),n=s-i-1;i=s,o=0}else a===46&&o>-1?o++:o=-1}return r}function Ts(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}var m1={cwd:uR};function uR(){return"/"}function Xi(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function d1(e){if(typeof e=="string")e=new URL(e);else if(!Xi(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 cR(e)}function cR(e){if(e.hostname!==""){let n=new TypeError('File URL host must be "localhost" or empty on darwin');throw n.code="ERR_INVALID_FILE_URL_HOST",n}let t=e.pathname,r=-1;for(;++r<t.length;)if(t.codePointAt(r)===37&&t.codePointAt(r+1)===50){let n=t.codePointAt(r+2);if(n===70||n===102){let i=new TypeError("File URL path must not include encoded / characters");throw i.code="ERR_INVALID_FILE_URL_PATH",i}}return decodeURIComponent(t)}var nh=["history","path","basename","stem","extname","dirname"],_s=class{constructor(t){let r;t?Xi(t)?r={path:t}:typeof t=="string"||fR(t)?r={value:t}:r=t:r={},this.cwd="cwd"in r?"":m1.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let n=-1;for(;++n<nh.length;){let o=nh[n];o in r&&r[o]!==void 0&&r[o]!==null&&(this[o]=o==="history"?[...r[o]]:r[o])}let i;for(i in r)nh.includes(i)||(this[i]=r[i])}get basename(){return typeof this.path=="string"?zt.basename(this.path):void 0}set basename(t){oh(t,"basename"),ih(t,"basename"),this.path=zt.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?zt.dirname(this.path):void 0}set dirname(t){g1(this.basename,"dirname"),this.path=zt.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?zt.extname(this.path):void 0}set extname(t){if(ih(t,"extname"),g1(this.dirname,"extname"),t){if(t.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(t.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=zt.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){Xi(t)&&(t=d1(t)),oh(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?zt.basename(this.path,this.extname):void 0}set stem(t){oh(t,"stem"),ih(t,"stem"),this.path=zt.join(this.dirname||"",t+(this.extname||""))}fail(t,r,n){let i=this.message(t,r,n);throw i.fatal=!0,i}info(t,r,n){let i=this.message(t,r,n);return i.fatal=void 0,i}message(t,r,n){let i=new et(t,r,n);return this.path&&(i.name=this.path+":"+i.name,i.file=this.path),i.fatal=!1,this.messages.push(i),i}toString(t){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(t||void 0).decode(this.value)}};function ih(e,t){if(e&&e.includes(zt.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+zt.sep+"`")}function oh(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function g1(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function fR(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}var y1=function(e){let n=this.constructor.prototype,i=n[e],o=function(){return i.apply(o,arguments)};return Object.setPrototypeOf(o,n),o};var pR={}.hasOwnProperty,uh=class e extends y1{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=th()}copy(){let t=new e,r=-1;for(;++r<this.attachers.length;){let n=this.attachers[r];t.use(...n)}return t.data((0,Zl.default)(!0,{},this.namespace)),t}data(t,r){return typeof t=="string"?arguments.length===2?(lh("data",this.frozen),this.namespace[t]=r,this):pR.call(this.namespace,t)&&this.namespace[t]||void 0:t?(lh("data",this.frozen),this.namespace=t,this):this.namespace}freeze(){if(this.frozen)return this;let t=this;for(;++this.freezeIndex<this.attachers.length;){let[r,...n]=this.attachers[this.freezeIndex];if(n[0]===!1)continue;n[0]===!0&&(n[0]=void 0);let i=r.call(t,...n);typeof i=="function"&&this.transformers.use(i)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(t){this.freeze();let r=Ql(t),n=this.parser||this.Parser;return sh("parse",n),n(String(r),r)}process(t,r){let n=this;return this.freeze(),sh("process",this.parser||this.Parser),ah("process",this.compiler||this.Compiler),r?i(void 0,r):new Promise(i);function i(o,s){let a=Ql(t),l=n.parse(a);n.run(l,a,function(c,f,p){if(c||!f||!p)return u(c);let h=f,m=n.stringify(h,p);mR(m)?p.value=m:p.result=m,u(c,p)});function u(c,f){c||!f?s(c):o?o(f):r(void 0,f)}}}processSync(t){let r=!1,n;return this.freeze(),sh("processSync",this.parser||this.Parser),ah("processSync",this.compiler||this.Compiler),this.process(t,i),b1("processSync","process",r),n;function i(o,s){r=!0,eh(o),n=s}}run(t,r,n){x1(t),this.freeze();let i=this.transformers;return!n&&typeof r=="function"&&(n=r,r=void 0),n?o(void 0,n):new Promise(o);function o(s,a){let l=Ql(r);i.run(t,l,u);function u(c,f,p){let h=f||t;c?a(c):s?s(h):n(void 0,h,p)}}}runSync(t,r){let n=!1,i;return this.run(t,r,o),b1("runSync","run",n),i;function o(s,a){eh(s),i=a,n=!0}}stringify(t,r){this.freeze();let n=Ql(r),i=this.compiler||this.Compiler;return ah("stringify",i),x1(t),i(t,n)}use(t,...r){let n=this.attachers,i=this.namespace;if(lh("use",this.frozen),t!=null)if(typeof t=="function")l(t,r);else if(typeof t=="object")Array.isArray(t)?a(t):s(t);else throw new TypeError("Expected usable value, not `"+t+"`");return this;function o(u){if(typeof u=="function")l(u,[]);else if(typeof u=="object")if(Array.isArray(u)){let[c,...f]=u;l(c,f)}else s(u);else throw new TypeError("Expected usable value, not `"+u+"`")}function s(u){if(!("plugins"in u)&&!("settings"in u))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");a(u.plugins),u.settings&&(i.settings=(0,Zl.default)(!0,i.settings,u.settings))}function a(u){let c=-1;if(u!=null)if(Array.isArray(u))for(;++c<u.length;){let f=u[c];o(f)}else throw new TypeError("Expected a list of plugins, not `"+u+"`")}function l(u,c){let f=-1,p=-1;for(;++f<n.length;)if(n[f][0]===u){p=f;break}if(p===-1)n.push([u,...c]);else if(c.length>0){let[h,...m]=c,x=n[p][1];Cs(x)&&Cs(h)&&(h=(0,Zl.default)(!0,x,h)),n[p]=[u,h,...m]}}}},Xl=new uh().freeze();function sh(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function ah(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function lh(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 x1(e){if(!Cs(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function b1(e,t,r){if(!r)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function Ql(e){return hR(e)?e:new _s(e)}function hR(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function mR(e){return typeof e=="string"||dR(e)}function dR(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}function Ki(e,t){let r=String(e);if(typeof t!="string")throw new TypeError("Expected character");let n=0,i=r.indexOf(t);for(;i!==-1;)n++,i=r.indexOf(t,i+t.length);return n}var Je=Gr(/[A-Za-z]/),Me=Gr(/[\dA-Za-z]/),w1=Gr(/[#-'*+\--9=?A-Z^-~]/);function qn(e){return e!==null&&(e<32||e===127)}var Is=Gr(/\d/),v1=Gr(/[\dA-Fa-f]/),S1=Gr(/[!-/:-@[-`{-~]/);function H(e){return e!==null&&e<-2}function ce(e){return e!==null&&(e<0||e===32)}function J(e){return e===-2||e===-1||e===32}var Hn=Gr(/\p{P}|\p{S}/u),er=Gr(/\s/);function Gr(e){return t;function t(r){return r!==null&&r>-1&&e.test(String.fromCharCode(r))}}var Jr=function(e){if(e==null)return bR;if(typeof e=="function")return Kl(e);if(typeof e=="object")return Array.isArray(e)?gR(e):yR(e);if(typeof e=="string")return xR(e);throw new Error("Expected function, string, or object as test")};function gR(e){let t=[],r=-1;for(;++r<e.length;)t[r]=Jr(e[r]);return Kl(n);function n(...i){let o=-1;for(;++o<t.length;)if(t[o].apply(this,i))return!0;return!1}}function yR(e){let t=e;return Kl(r);function r(n){let i=n,o;for(o in e)if(i[o]!==t[o])return!1;return!0}}function xR(e){return Kl(t);function t(r){return r&&r.type===e}}function Kl(e){return t;function t(r,n,i){return!!(wR(r)&&e.call(this,r,typeof n=="number"?n:void 0,i||void 0))}}function bR(){return!0}function wR(e){return e!==null&&typeof e=="object"&&"type"in e}var k1=[],eu=!0,Wn=!1,tu="skip";function Os(e,t,r,n){let i;typeof t=="function"&&typeof r!="function"?(n=r,r=t):i=t;let o=Jr(i),s=n?-1:1;a(e,void 0,[])();function a(l,u,c){let f=l&&typeof l=="object"?l:{};if(typeof f.type=="string"){let h=typeof f.tagName=="string"?f.tagName:typeof f.name=="string"?f.name:void 0;Object.defineProperty(p,"name",{value:"node ("+(l.type+(h?"<"+h+">":""))+")"})}return p;function p(){let h=k1,m,x,v;if((!t||o(l,u,c[c.length-1]||void 0))&&(h=vR(r(l,c)),h[0]===Wn))return h;if("children"in l&&l.children){let w=l;if(w.children&&h[0]!==tu)for(x=(n?w.children.length:-1)+s,v=c.concat(w);x>-1&&x<w.children.length;){let T=w.children[x];if(m=a(T,x,v)(),m[0]===Wn)return m;x=typeof m[1]=="number"?m[1]:x+s}}return h}}}function vR(e){return Array.isArray(e)?e:typeof e=="number"?[eu,e]:e==null?k1:[e]}function ch(e,t,r){let i=Jr((r||{}).ignore||[]),o=SR(t),s=-1;for(;++s<o.length;)Os(e,"text",a);function a(u,c){let f=-1,p;for(;++f<c.length;){let h=c[f],m=p?p.children:void 0;if(i(h,m?m.indexOf(h):void 0,p))return;p=h}if(p)return l(u,c)}function l(u,c){let f=c[c.length-1],p=o[s][0],h=o[s][1],m=0,v=f.children.indexOf(u),w=!1,T=[];p.lastIndex=0;let b=p.exec(u.value);for(;b;){let z=b.index,q={index:b.index,input:b.input,stack:[...c,u]},A=h(...b,q);if(typeof A=="string"&&(A=A.length>0?{type:"text",value:A}:void 0),A===!1?p.lastIndex=z+1:(m!==z&&T.push({type:"text",value:u.value.slice(m,z)}),Array.isArray(A)?T.push(...A):A&&T.push(A),m=z+b[0].length,w=!0),!p.global)break;b=p.exec(u.value)}return w?(m<u.value.length&&T.push({type:"text",value:u.value.slice(m)}),f.children.splice(v,1,...T)):T=[u],v+T.length}}function SR(e){let t=[];if(!Array.isArray(e))throw new TypeError("Expected find and replace tuple or list of tuples");let r=!e[0]||Array.isArray(e[0])?e:[e],n=-1;for(;++n<r.length;){let i=r[n];t.push([kR(i[0]),AR(i[1])])}return t}function kR(e){return typeof e=="string"?new RegExp(kn(e),"g"):e}function AR(e){return typeof e=="function"?e:function(){return e}}var fh="phrasing",ph=["autolink","link","image","label"];function mh(){return{transforms:[OR],enter:{literalAutolink:ER,literalAutolinkEmail:hh,literalAutolinkHttp:hh,literalAutolinkWww:hh},exit:{literalAutolink:IR,literalAutolinkEmail:_R,literalAutolinkHttp:CR,literalAutolinkWww:TR}}}function dh(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:fh,notInConstruct:ph},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:fh,notInConstruct:ph},{character:":",before:"[ps]",after:"\\/",inConstruct:fh,notInConstruct:ph}]}}function ER(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function hh(e){this.config.enter.autolinkProtocol.call(this,e)}function CR(e){this.config.exit.autolinkProtocol.call(this,e)}function TR(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 _R(e){this.config.exit.autolinkEmail.call(this,e)}function IR(e){this.exit(e)}function OR(e){ch(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,MR],[/(?<=^|\s|\p{P}|\p{S})([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/gu,DR]],{ignore:["link","linkReference"]})}function MR(e,t,r,n,i){let o="";if(!A1(i)||(/^w/i.test(t)&&(r=t+r,t="",o="http://"),!PR(r)))return!1;let s=NR(r+n);if(!s[0])return!1;let a={type:"link",title:null,url:o+t+s[0],children:[{type:"text",value:t+s[0]}]};return s[1]?[a,{type:"text",value:s[1]}]:a}function DR(e,t,r,n){return!A1(n,!0)||/[-\d_]$/.test(r)?!1:{type:"link",title:null,url:"mailto:"+t+"@"+r,children:[{type:"text",value:t+"@"+r}]}}function PR(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 NR(e){let t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let r=t[0],n=r.indexOf(")"),i=Ki(e,"("),o=Ki(e,")");for(;n!==-1&&i>o;)e+=r.slice(0,n+1),r=r.slice(n+1),n=r.indexOf(")"),o++;return[e,r]}function A1(e,t){let r=e.input.charCodeAt(e.index-1);return(e.index===0||er(r)||Hn(r))&&(!t||r!==47)}function at(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}E1.peek=qR;function gh(){return{enter:{gfmFootnoteDefinition:FR,gfmFootnoteDefinitionLabelString:RR,gfmFootnoteCall:$R,gfmFootnoteCallString:UR},exit:{gfmFootnoteDefinition:BR,gfmFootnoteDefinitionLabelString:LR,gfmFootnoteCall:zR,gfmFootnoteCallString:jR}}}function yh(){return{unsafe:[{character:"[",inConstruct:["phrasing","label","reference"]}],handlers:{footnoteDefinition:HR,footnoteReference:E1}}}function FR(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function RR(){this.buffer()}function LR(e){let t=this.resume(),r=this.stack[this.stack.length-1];r.type,r.label=t,r.identifier=at(this.sliceSerialize(e)).toLowerCase()}function BR(e){this.exit(e)}function $R(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function UR(){this.buffer()}function jR(e){let t=this.resume(),r=this.stack[this.stack.length-1];r.type,r.label=t,r.identifier=at(this.sliceSerialize(e)).toLowerCase()}function zR(e){this.exit(e)}function E1(e,t,r,n){let i=r.createTracker(n),o=i.move("[^"),s=r.enter("footnoteReference"),a=r.enter("reference");return o+=i.move(r.safe(r.associationId(e),{...i.current(),before:o,after:"]"})),a(),s(),o+=i.move("]"),o}function qR(){return"["}function HR(e,t,r,n){let i=r.createTracker(n),o=i.move("[^"),s=r.enter("footnoteDefinition"),a=r.enter("label");return o+=i.move(r.safe(r.associationId(e),{...i.current(),before:o,after:"]"})),a(),o+=i.move("]:"+(e.children&&e.children.length>0?" ":"")),i.shift(4),o+=i.move(r.indentLines(r.containerFlow(e,i.current()),WR)),s(),o}function WR(e,t,r){return t===0?e:(r?"":" ")+e}var VR=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];C1.peek=JR;function xh(){return{canContainEols:["delete"],enter:{strikethrough:YR},exit:{strikethrough:GR}}}function bh(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:VR}],handlers:{delete:C1}}}function YR(e){this.enter({type:"delete",children:[]},e)}function GR(e){this.exit(e)}function C1(e,t,r,n){let i=r.createTracker(n),o=r.enter("strikethrough"),s=i.move("~~");return s+=r.containerPhrasing(e,{...i.current(),before:s,after:"~"}),s+=i.move("~~"),o(),s}function JR(){return"~"}function QR(e){return e.length}function _1(e,t){let r=t||{},n=(r.align||[]).concat(),i=r.stringLength||QR,o=[],s=[],a=[],l=[],u=0,c=-1;for(;++c<e.length;){let x=[],v=[],w=-1;for(e[c].length>u&&(u=e[c].length);++w<e[c].length;){let T=ZR(e[c][w]);if(r.alignDelimiters!==!1){let b=i(T);v[w]=b,(l[w]===void 0||b>l[w])&&(l[w]=b)}x.push(T)}s[c]=x,a[c]=v}let f=-1;if(typeof n=="object"&&"length"in n)for(;++f<u;)o[f]=T1(n[f]);else{let x=T1(n);for(;++f<u;)o[f]=x}f=-1;let p=[],h=[];for(;++f<u;){let x=o[f],v="",w="";x===99?(v=":",w=":"):x===108?v=":":x===114&&(w=":");let T=r.alignDelimiters===!1?1:Math.max(1,l[f]-v.length-w.length),b=v+"-".repeat(T)+w;r.alignDelimiters!==!1&&(T=v.length+T+w.length,T>l[f]&&(l[f]=T),h[f]=T),p[f]=b}s.splice(1,0,p),a.splice(1,0,h),c=-1;let m=[];for(;++c<s.length;){let x=s[c],v=a[c];f=-1;let w=[];for(;++f<u;){let T=x[f]||"",b="",z="";if(r.alignDelimiters!==!1){let q=l[f]-(v[f]||0),A=o[f];A===114?b=" ".repeat(q):A===99?q%2?(b=" ".repeat(q/2+.5),z=" ".repeat(q/2-.5)):(b=" ".repeat(q/2),z=b):z=" ".repeat(q)}r.delimiterStart!==!1&&!f&&w.push("|"),r.padding!==!1&&!(r.alignDelimiters===!1&&T==="")&&(r.delimiterStart!==!1||f)&&w.push(" "),r.alignDelimiters!==!1&&w.push(b),w.push(T),r.alignDelimiters!==!1&&w.push(z),r.padding!==!1&&w.push(" "),(r.delimiterEnd!==!1||f!==u-1)&&w.push("|")}m.push(r.delimiterEnd===!1?w.join("").replace(/ +$/,""):w.join(""))}return m.join(`
|
|
54
|
+
`)}function ZR(e){return e==null?"":String(e)}function T1(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 I1={}.hasOwnProperty;function ru(e,t){let r=t||{};function n(i,...o){let s=n.invalid,a=n.handlers;if(i&&I1.call(i,e)){let l=String(i[e]);s=I1.call(a,l)?a[l]:n.unknown}if(s)return s.call(this,i,...o)}return n.handlers=r.handlers||{},n.invalid=r.invalid,n.unknown=r.unknown,n}var XR={}.hasOwnProperty;function wh(e,t){let r=-1,n;if(t.extensions)for(;++r<t.extensions.length;)wh(e,t.extensions[r]);for(n in t)if(XR.call(t,n))switch(n){case"extensions":break;case"unsafe":{O1(e[n],t[n]);break}case"join":{O1(e[n],t[n]);break}case"handlers":{KR(e[n],t[n]);break}default:e.options[n]=t[n]}return e}function O1(e,t){t&&e.push(...t)}function KR(e,t){t&&Object.assign(e,t)}function M1(e,t,r,n){let i=r.enter("blockquote"),o=r.createTracker(n);o.move("> "),o.shift(2);let s=r.indentLines(r.containerFlow(e,o.current()),e2);return i(),s}function e2(e,t,r){return">"+(r?"":" ")+e}function nu(e,t){return D1(e,t.inConstruct,!0)&&!D1(e,t.notInConstruct,!1)}function D1(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 vh(e,t,r,n){let i=-1;for(;++i<r.unsafe.length;)if(r.unsafe[i].character===`
|
|
55
|
+
`&&nu(r.stack,r.unsafe[i]))return/[ \t]/.test(n.before)?"":" ";return`\\
|
|
56
|
+
`}function P1(e,t){let r=String(e),n=r.indexOf(t),i=n,o=0,s=0;if(typeof t!="string")throw new TypeError("Expected substring");for(;n!==-1;)n===i?++o>s&&(s=o):o=1,i=n+t.length,n=r.indexOf(t,i);return s}function Ms(e,t){return!!(t.options.fences===!1&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}function N1(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 F1(e,t,r,n){let i=N1(r),o=e.value||"",s=i==="`"?"GraveAccent":"Tilde";if(Ms(e,r)){let f=r.enter("codeIndented"),p=r.indentLines(o,t2);return f(),p}let a=r.createTracker(n),l=i.repeat(Math.max(P1(o,i)+1,3)),u=r.enter("codeFenced"),c=a.move(l);if(e.lang){let f=r.enter(`codeFencedLang${s}`);c+=a.move(r.safe(e.lang,{before:c,after:" ",encode:["`"],...a.current()})),f()}if(e.lang&&e.meta){let f=r.enter(`codeFencedMeta${s}`);c+=a.move(" "),c+=a.move(r.safe(e.meta,{before:c,after:`
|
|
57
|
+
`,encode:["`"],...a.current()})),f()}return c+=a.move(`
|
|
58
|
+
`),o&&(c+=a.move(o+`
|
|
59
|
+
`)),c+=a.move(l),u(),c}function t2(e,t,r){return(r?"":" ")+e}function eo(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 R1(e,t,r,n){let i=eo(r),o=i==='"'?"Quote":"Apostrophe",s=r.enter("definition"),a=r.enter("label"),l=r.createTracker(n),u=l.move("[");return u+=l.move(r.safe(r.associationId(e),{before:u,after:"]",...l.current()})),u+=l.move("]: "),a(),!e.url||/[\0- \u007F]/.test(e.url)?(a=r.enter("destinationLiteral"),u+=l.move("<"),u+=l.move(r.safe(e.url,{before:u,after:">",...l.current()})),u+=l.move(">")):(a=r.enter("destinationRaw"),u+=l.move(r.safe(e.url,{before:u,after:e.title?" ":`
|
|
60
|
+
`,...l.current()}))),a(),e.title&&(a=r.enter(`title${o}`),u+=l.move(" "+i),u+=l.move(r.safe(e.title,{before:u,after:i,...l.current()})),u+=l.move(i),a()),s(),u}function L1(e){let t=e.options.emphasis||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize emphasis with `"+t+"` for `options.emphasis`, expected `*`, or `_`");return t}function St(e){return"&#x"+e.toString(16).toUpperCase()+";"}function vr(e){if(e===null||ce(e)||er(e))return 1;if(Hn(e))return 2}function to(e,t,r){let n=vr(e),i=vr(t);return n===void 0?i===void 0?r==="_"?{inside:!0,outside:!0}:{inside:!1,outside:!1}:i===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:n===1?i===void 0?{inside:!1,outside:!1}:i===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:i===void 0?{inside:!1,outside:!1}:i===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}Sh.peek=r2;function Sh(e,t,r,n){let i=L1(r),o=r.enter("emphasis"),s=r.createTracker(n),a=s.move(i),l=s.move(r.containerPhrasing(e,{after:i,before:a,...s.current()})),u=l.charCodeAt(0),c=to(n.before.charCodeAt(n.before.length-1),u,i);c.inside&&(l=St(u)+l.slice(1));let f=l.charCodeAt(l.length-1),p=to(n.after.charCodeAt(0),f,i);p.inside&&(l=l.slice(0,-1)+St(f));let h=s.move(i);return o(),r.attentionEncodeSurroundingInfo={after:p.outside,before:c.outside},a+l+h}function r2(e,t,r){return r.options.emphasis||"*"}function Ds(e,t,r,n){let i,o,s;typeof t=="function"&&typeof r!="function"?(o=void 0,s=t,i=r):(o=t,s=r,i=n),Os(e,o,a,i);function a(l,u){let c=u[u.length-1],f=c?c.children.indexOf(l):void 0;return s(l,f,c)}}var n2={};function Vn(e,t){let r=t||n2,n=typeof r.includeImageAlt=="boolean"?r.includeImageAlt:!0,i=typeof r.includeHtml=="boolean"?r.includeHtml:!0;return $1(e,n,i)}function $1(e,t,r){if(i2(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 B1(e.children,t,r)}return Array.isArray(e)?B1(e,t,r):""}function B1(e,t,r){let n=[],i=-1;for(;++i<e.length;)n[i]=$1(e[i],t,r);return n.join("")}function i2(e){return!!(e&&typeof e=="object")}function iu(e,t){let r=!1;return Ds(e,function(n){if("value"in n&&/\r?\n|\r/.test(n.value)||n.type==="break")return r=!0,Wn}),!!((!e.depth||e.depth<3)&&Vn(e)&&(t.options.setext||r))}function U1(e,t,r,n){let i=Math.max(Math.min(6,e.depth||1),1),o=r.createTracker(n);if(iu(e,r)){let c=r.enter("headingSetext"),f=r.enter("phrasing"),p=r.containerPhrasing(e,{...o.current(),before:`
|
|
61
|
+
`,after:`
|
|
62
|
+
`});return f(),c(),p+`
|
|
63
|
+
`+(i===1?"=":"-").repeat(p.length-(Math.max(p.lastIndexOf("\r"),p.lastIndexOf(`
|
|
64
|
+
`))+1))}let s="#".repeat(i),a=r.enter("headingAtx"),l=r.enter("phrasing");o.move(s+" ");let u=r.containerPhrasing(e,{before:"# ",after:`
|
|
65
|
+
`,...o.current()});return/^[\t ]/.test(u)&&(u=St(u.charCodeAt(0))+u.slice(1)),u=u?s+" "+u:s,r.options.closeAtx&&(u+=" "+s),l(),a(),u}kh.peek=o2;function kh(e){return e.value||""}function o2(){return"<"}Ah.peek=s2;function Ah(e,t,r,n){let i=eo(r),o=i==='"'?"Quote":"Apostrophe",s=r.enter("image"),a=r.enter("label"),l=r.createTracker(n),u=l.move("![");return u+=l.move(r.safe(e.alt,{before:u,after:"]",...l.current()})),u+=l.move("]("),a(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(a=r.enter("destinationLiteral"),u+=l.move("<"),u+=l.move(r.safe(e.url,{before:u,after:">",...l.current()})),u+=l.move(">")):(a=r.enter("destinationRaw"),u+=l.move(r.safe(e.url,{before:u,after:e.title?" ":")",...l.current()}))),a(),e.title&&(a=r.enter(`title${o}`),u+=l.move(" "+i),u+=l.move(r.safe(e.title,{before:u,after:i,...l.current()})),u+=l.move(i),a()),u+=l.move(")"),s(),u}function s2(){return"!"}Eh.peek=a2;function Eh(e,t,r,n){let i=e.referenceType,o=r.enter("imageReference"),s=r.enter("label"),a=r.createTracker(n),l=a.move("!["),u=r.safe(e.alt,{before:l,after:"]",...a.current()});l+=a.move(u+"]["),s();let c=r.stack;r.stack=[],s=r.enter("reference");let f=r.safe(r.associationId(e),{before:l,after:"]",...a.current()});return s(),r.stack=c,o(),i==="full"||!u||u!==f?l+=a.move(f+"]"):i==="shortcut"?l=l.slice(0,-1):l+=a.move("]"),l}function a2(){return"!"}Ch.peek=l2;function Ch(e,t,r){let n=e.value||"",i="`",o=-1;for(;new RegExp("(^|[^`])"+i+"([^`]|$)").test(n);)i+="`";for(/[^ \r\n]/.test(n)&&(/^[ \r\n]/.test(n)&&/[ \r\n]$/.test(n)||/^`|`$/.test(n))&&(n=" "+n+" ");++o<r.unsafe.length;){let s=r.unsafe[o],a=r.compilePattern(s),l;if(s.atBreak)for(;l=a.exec(n);){let u=l.index;n.charCodeAt(u)===10&&n.charCodeAt(u-1)===13&&u--,n=n.slice(0,u)+" "+n.slice(l.index+1)}}return i+n+i}function l2(){return"`"}function Th(e,t){let r=Vn(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))}_h.peek=u2;function _h(e,t,r,n){let i=eo(r),o=i==='"'?"Quote":"Apostrophe",s=r.createTracker(n),a,l;if(Th(e,r)){let c=r.stack;r.stack=[],a=r.enter("autolink");let f=s.move("<");return f+=s.move(r.containerPhrasing(e,{before:f,after:">",...s.current()})),f+=s.move(">"),a(),r.stack=c,f}a=r.enter("link"),l=r.enter("label");let u=s.move("[");return u+=s.move(r.containerPhrasing(e,{before:u,after:"](",...s.current()})),u+=s.move("]("),l(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(l=r.enter("destinationLiteral"),u+=s.move("<"),u+=s.move(r.safe(e.url,{before:u,after:">",...s.current()})),u+=s.move(">")):(l=r.enter("destinationRaw"),u+=s.move(r.safe(e.url,{before:u,after:e.title?" ":")",...s.current()}))),l(),e.title&&(l=r.enter(`title${o}`),u+=s.move(" "+i),u+=s.move(r.safe(e.title,{before:u,after:i,...s.current()})),u+=s.move(i),l()),u+=s.move(")"),a(),u}function u2(e,t,r){return Th(e,r)?"<":"["}Ih.peek=c2;function Ih(e,t,r,n){let i=e.referenceType,o=r.enter("linkReference"),s=r.enter("label"),a=r.createTracker(n),l=a.move("["),u=r.containerPhrasing(e,{before:l,after:"]",...a.current()});l+=a.move(u+"]["),s();let c=r.stack;r.stack=[],s=r.enter("reference");let f=r.safe(r.associationId(e),{before:l,after:"]",...a.current()});return s(),r.stack=c,o(),i==="full"||!u||u!==f?l+=a.move(f+"]"):i==="shortcut"?l=l.slice(0,-1):l+=a.move("]"),l}function c2(){return"["}function ro(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 j1(e){let t=ro(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 z1(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 ou(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 q1(e,t,r,n){let i=r.enter("list"),o=r.bulletCurrent,s=e.ordered?z1(r):ro(r),a=e.ordered?s==="."?")":".":j1(r),l=t&&r.bulletLastUsed?s===r.bulletLastUsed:!1;if(!e.ordered){let c=e.children?e.children[0]:void 0;if((s==="*"||s==="-")&&c&&(!c.children||!c.children[0])&&r.stack[r.stack.length-1]==="list"&&r.stack[r.stack.length-2]==="listItem"&&r.stack[r.stack.length-3]==="list"&&r.stack[r.stack.length-4]==="listItem"&&r.indexStack[r.indexStack.length-1]===0&&r.indexStack[r.indexStack.length-2]===0&&r.indexStack[r.indexStack.length-3]===0&&(l=!0),ou(r)===s&&c){let f=-1;for(;++f<e.children.length;){let p=e.children[f];if(p&&p.type==="listItem"&&p.children&&p.children[0]&&p.children[0].type==="thematicBreak"){l=!0;break}}}}l&&(s=a),r.bulletCurrent=s;let u=r.containerFlow(e,n);return r.bulletLastUsed=s,r.bulletCurrent=o,i(),u}function H1(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 W1(e,t,r,n){let i=H1(r),o=r.bulletCurrent||ro(r);t&&t.type==="list"&&t.ordered&&(o=(typeof t.start=="number"&&t.start>-1?t.start:1)+(r.options.incrementListMarker===!1?0:t.children.indexOf(e))+o);let s=o.length+1;(i==="tab"||i==="mixed"&&(t&&t.type==="list"&&t.spread||e.spread))&&(s=Math.ceil(s/4)*4);let a=r.createTracker(n);a.move(o+" ".repeat(s-o.length)),a.shift(s);let l=r.enter("listItem"),u=r.indentLines(r.containerFlow(e,a.current()),c);return l(),u;function c(f,p,h){return p?(h?"":" ".repeat(s))+f:(h?o:o+" ".repeat(s-o.length))+f}}function V1(e,t,r,n){let i=r.enter("paragraph"),o=r.enter("phrasing"),s=r.containerPhrasing(e,n);return o(),i(),s}var Oh=Jr(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function Y1(e,t,r,n){return(e.children.some(function(s){return Oh(s)})?r.containerPhrasing:r.containerFlow).call(r,e,n)}function G1(e){let t=e.options.strong||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}Mh.peek=f2;function Mh(e,t,r,n){let i=G1(r),o=r.enter("strong"),s=r.createTracker(n),a=s.move(i+i),l=s.move(r.containerPhrasing(e,{after:i,before:a,...s.current()})),u=l.charCodeAt(0),c=to(n.before.charCodeAt(n.before.length-1),u,i);c.inside&&(l=St(u)+l.slice(1));let f=l.charCodeAt(l.length-1),p=to(n.after.charCodeAt(0),f,i);p.inside&&(l=l.slice(0,-1)+St(f));let h=s.move(i+i);return o(),r.attentionEncodeSurroundingInfo={after:p.outside,before:c.outside},a+l+h}function f2(e,t,r){return r.options.strong||"*"}function J1(e,t,r,n){return r.safe(e.value,n)}function Q1(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 Z1(e,t,r){let n=(ou(r)+(r.options.ruleSpaces?" ":"")).repeat(Q1(r));return r.options.ruleSpaces?n.slice(0,-1):n}var Yn={blockquote:M1,break:vh,code:F1,definition:R1,emphasis:Sh,hardBreak:vh,heading:U1,html:kh,image:Ah,imageReference:Eh,inlineCode:Ch,link:_h,linkReference:Ih,list:q1,listItem:W1,paragraph:V1,root:Y1,strong:Mh,text:J1,thematicBreak:Z1};var X1=[p2];function p2(e,t,r,n){if(t.type==="code"&&Ms(t,n)&&(e.type==="list"||e.type===t.type&&Ms(e,n)))return!1;if("spread"in r&&typeof r.spread=="boolean")return e.type==="paragraph"&&(e.type===t.type||t.type==="definition"||t.type==="heading"&&iu(t,n))?void 0:r.spread?1:0}var Gn=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"],K1=[{character:" ",after:"[\\r\\n]",inConstruct:"phrasing"},{character:" ",before:"[\\r\\n]",inConstruct:"phrasing"},{character:" ",inConstruct:["codeFencedLangGraveAccent","codeFencedLangTilde"]},{character:"\r",inConstruct:["codeFencedLangGraveAccent","codeFencedLangTilde","codeFencedMetaGraveAccent","codeFencedMetaTilde","destinationLiteral","headingAtx"]},{character:`
|
|
66
|
+
`,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:Gn},{character:'"',inConstruct:"titleQuote"},{atBreak:!0,character:"#"},{character:"#",inConstruct:"headingAtx",after:`(?:[\r
|
|
67
|
+
]|$)`},{character:"&",after:"[#A-Za-z]",inConstruct:"phrasing"},{character:"'",inConstruct:"titleApostrophe"},{character:"(",inConstruct:"destinationRaw"},{before:"\\]",character:"(",inConstruct:"phrasing",notInConstruct:Gn},{atBreak:!0,before:"\\d+",character:")"},{character:")",inConstruct:"destinationRaw"},{atBreak:!0,character:"*",after:`(?:[ \r
|
|
68
|
+
*])`},{character:"*",inConstruct:"phrasing",notInConstruct:Gn},{atBreak:!0,character:"+",after:`(?:[ \r
|
|
69
|
+
])`},{atBreak:!0,character:"-",after:`(?:[ \r
|
|
70
|
+
-])`},{atBreak:!0,before:"\\d+",character:".",after:`(?:[ \r
|
|
71
|
+
]|$)`},{atBreak:!0,character:"<",after:"[!/?A-Za-z]"},{character:"<",after:"[!/?A-Za-z]",inConstruct:"phrasing",notInConstruct:Gn},{character:"<",inConstruct:"destinationLiteral"},{atBreak:!0,character:"="},{atBreak:!0,character:">"},{character:">",inConstruct:"destinationLiteral"},{atBreak:!0,character:"["},{character:"[",inConstruct:"phrasing",notInConstruct:Gn},{character:"[",inConstruct:["label","reference"]},{character:"\\",after:"[\\r\\n]",inConstruct:"phrasing"},{character:"]",inConstruct:["label","reference"]},{atBreak:!0,character:"_"},{character:"_",inConstruct:"phrasing",notInConstruct:Gn},{atBreak:!0,character:"`"},{character:"`",inConstruct:["codeFencedLangGraveAccent","codeFencedMetaGraveAccent"]},{character:"`",inConstruct:"phrasing",notInConstruct:Gn},{atBreak:!0,character:"~"}];var eS=document.createElement("i");function no(e){let t="&"+e+";";eS.innerHTML=t;let r=eS.textContent;return r.charCodeAt(r.length-1)===59&&e!=="semi"||r===t?!1:r}function su(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 h2=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function au(e){return e.replace(h2,m2)}function m2(e,t,r){if(t)return t;if(r.charCodeAt(0)===35){let i=r.charCodeAt(1),o=i===120||i===88;return su(r.slice(o?2:1),o?16:10)}return no(r)||e}function tS(e){return e.label||!e.identifier?e.label||"":au(e.identifier)}function rS(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 nS(e,t,r){let n=t.indexStack,i=e.children||[],o=[],s=-1,a=r.before,l;n.push(-1);let u=t.createTracker(r);for(;++s<i.length;){let c=i[s],f;if(n[n.length-1]=s,s+1<i.length){let m=t.handle.handlers[i[s+1].type];m&&m.peek&&(m=m.peek),f=m?m(i[s+1],e,t,{before:"",after:"",...u.current()}).charAt(0):""}else f=r.after;o.length>0&&(a==="\r"||a===`
|
|
72
|
+
`)&&c.type==="html"&&(o[o.length-1]=o[o.length-1].replace(/(\r?\n|\r)$/," "),a=" ",u=t.createTracker(r),u.move(o.join("")));let p=t.handle(c,e,t,{...u.current(),after:f,before:a});l&&l===p.slice(0,1)&&(p=St(l.charCodeAt(0))+p.slice(1));let h=t.attentionEncodeSurroundingInfo;t.attentionEncodeSurroundingInfo=void 0,l=void 0,h&&(o.length>0&&h.before&&a===o[o.length-1].slice(-1)&&(o[o.length-1]=o[o.length-1].slice(0,-1)+St(a.charCodeAt(0))),h.after&&(l=f)),u.move(p),o.push(p),a=p.slice(-1)}return n.pop(),o.join("")}function iS(e,t,r){let n=t.indexStack,i=e.children||[],o=t.createTracker(r),s=[],a=-1;for(n.push(-1);++a<i.length;){let l=i[a];n[n.length-1]=a,s.push(o.move(t.handle(l,e,t,{before:`
|
|
73
|
+
`,after:`
|
|
74
|
+
`,...o.current()}))),l.type!=="list"&&(t.bulletLastUsed=void 0),a<i.length-1&&s.push(o.move(d2(l,i[a+1],e,t)))}return n.pop(),s.join("")}function d2(e,t,r,n){let i=n.join.length;for(;i--;){let o=n.join[i](e,t,r,n);if(o===!0||o===1)break;if(typeof o=="number")return`
|
|
75
|
+
`.repeat(1+o);if(o===!1)return`
|
|
76
|
+
|
|
77
|
+
<!---->
|
|
78
|
+
|
|
79
|
+
`}return`
|
|
80
|
+
|
|
81
|
+
`}var g2=/\r?\n|\r/g;function oS(e,t){let r=[],n=0,i=0,o;for(;o=g2.exec(e);)s(e.slice(n,o.index)),r.push(o[0]),n=o.index+o[0].length,i++;return s(e.slice(n)),r.join("");function s(a){r.push(t(a,i,!a))}}function aS(e,t,r){let n=(r.before||"")+(t||"")+(r.after||""),i=[],o=[],s={},a=-1;for(;++a<e.unsafe.length;){let c=e.unsafe[a];if(!nu(e.stack,c))continue;let f=e.compilePattern(c),p;for(;p=f.exec(n);){let h="before"in c||!!c.atBreak,m="after"in c,x=p.index+(h?p[1].length:0);i.includes(x)?(s[x].before&&!h&&(s[x].before=!1),s[x].after&&!m&&(s[x].after=!1)):(i.push(x),s[x]={before:h,after:m})}}i.sort(y2);let l=r.before?r.before.length:0,u=n.length-(r.after?r.after.length:0);for(a=-1;++a<i.length;){let c=i[a];c<l||c>=u||c+1<u&&i[a+1]===c+1&&s[c].after&&!s[c+1].before&&!s[c+1].after||i[a-1]===c-1&&s[c].before&&!s[c-1].before&&!s[c-1].after||(l!==c&&o.push(sS(n.slice(l,c),"\\")),l=c,/[!-/:-@[-`{-~]/.test(n.charAt(c))&&(!r.encode||!r.encode.includes(n.charAt(c)))?o.push("\\"):(o.push(St(n.charCodeAt(c))),l++))}return o.push(sS(n.slice(l,u),r.after)),o.join("")}function y2(e,t){return e-t}function sS(e,t){let r=/\\(?=[!-/:-@[-`{-~])/g,n=[],i=[],o=e+t,s=-1,a=0,l;for(;l=r.exec(o);)n.push(l.index);for(;++s<n.length;)a!==n[s]&&i.push(e.slice(a,n[s])),i.push("\\"),a=n[s];return i.push(e.slice(a)),i.join("")}function lS(e){let t=e||{},r=t.now||{},n=t.lineShift||0,i=r.line||1,o=r.column||1;return{move:l,current:s,shift:a};function s(){return{now:{line:i,column:o},lineShift:n}}function a(u){n+=u}function l(u){let c=u||"",f=c.split(/\r?\n|\r/g),p=f[f.length-1];return i+=f.length-1,o=f.length===1?o+p.length:1+p.length+n,c}}function Dh(e,t){let r=t||{},n={associationId:tS,containerPhrasing:v2,containerFlow:S2,createTracker:lS,compilePattern:rS,enter:o,handlers:{...Yn},handle:void 0,indentLines:oS,indexStack:[],join:[...X1],options:{},safe:k2,stack:[],unsafe:[...K1]};wh(n,r),n.options.tightDefinitions&&n.join.push(w2),n.handle=ru("type",{invalid:x2,unknown:b2,handlers:n.handlers});let i=n.handle(e,void 0,n,{before:`
|
|
82
|
+
`,after:`
|
|
83
|
+
`,now:{line:1,column:1},lineShift:0});return i&&i.charCodeAt(i.length-1)!==10&&i.charCodeAt(i.length-1)!==13&&(i+=`
|
|
84
|
+
`),i;function o(s){return n.stack.push(s),a;function a(){n.stack.pop()}}}function x2(e){throw new Error("Cannot handle value `"+e+"`, expected node")}function b2(e){let t=e;throw new Error("Cannot handle unknown node `"+t.type+"`")}function w2(e,t){if(e.type==="definition"&&e.type===t.type)return 0}function v2(e,t){return nS(e,this,t)}function S2(e,t){return iS(e,this,t)}function k2(e,t){return aS(this,e,t)}function Nh(){return{enter:{table:A2,tableData:uS,tableHeader:uS,tableRow:C2},exit:{codeText:T2,table:E2,tableData:Ph,tableHeader:Ph,tableRow:Ph}}}function A2(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 E2(e){this.exit(e),this.data.inTable=void 0}function C2(e){this.enter({type:"tableRow",children:[]},e)}function Ph(e){this.exit(e)}function uS(e){this.enter({type:"tableCell",children:[]},e)}function T2(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,_2));let r=this.stack[this.stack.length-1];r.type,r.value=t,this.exit(e)}function _2(e,t){return t==="|"?t:e}function Fh(e){let t=e||{},r=t.tableCellPadding,n=t.tablePipeAlign,i=t.stringLength,o=r?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
|
|
85
|
+
`,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:p,table:s,tableCell:l,tableRow:a}};function s(h,m,x,v){return u(c(h,x,v),h.align)}function a(h,m,x,v){let w=f(h,x,v),T=u([w]);return T.slice(0,T.indexOf(`
|
|
86
|
+
`))}function l(h,m,x,v){let w=x.enter("tableCell"),T=x.enter("phrasing"),b=x.containerPhrasing(h,{...v,before:o,after:o});return T(),w(),b}function u(h,m){return _1(h,{align:m,alignDelimiters:n,padding:r,stringLength:i})}function c(h,m,x){let v=h.children,w=-1,T=[],b=m.enter("table");for(;++w<v.length;)T[w]=f(v[w],m,x);return b(),T}function f(h,m,x){let v=h.children,w=-1,T=[],b=m.enter("tableRow");for(;++w<v.length;)T[w]=l(v[w],h,m,x);return b(),T}function p(h,m,x){let v=Yn.inlineCode(h,m,x);return x.stack.includes("tableCell")&&(v=v.replace(/\|/g,"\\$&")),v}}function Rh(){return{exit:{taskListCheckValueChecked:cS,taskListCheckValueUnchecked:cS,paragraph:I2}}}function Lh(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:O2}}}function cS(e){let t=this.stack[this.stack.length-2];t.type,t.checked=e.type==="taskListCheckValueChecked"}function I2(e){let t=this.stack[this.stack.length-2];if(t&&t.type==="listItem"&&typeof t.checked=="boolean"){let r=this.stack[this.stack.length-1];r.type;let n=r.children[0];if(n&&n.type==="text"){let i=t.children,o=-1,s;for(;++o<i.length;){let a=i[o];if(a.type==="paragraph"){s=a;break}}s===r&&(n.value=n.value.slice(1),n.value.length===0?r.children.shift():r.position&&n.position&&typeof n.position.start.offset=="number"&&(n.position.start.column++,n.position.start.offset++,r.position.start=Object.assign({},n.position.start)))}}this.exit(e)}function O2(e,t,r,n){let i=e.children[0],o=typeof e.checked=="boolean"&&i&&i.type==="paragraph",s="["+(e.checked?"x":" ")+"] ",a=r.createTracker(n);o&&a.move(s);let l=Yn.listItem(e,t,r,{...n,...a.current()});return o&&(l=l.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,u)),l;function u(c){return c+s}}function Bh(){return[mh(),gh(),xh(),Nh(),Rh()]}function $h(e){return{extensions:[dh(),yh(),bh(),Fh(e),Lh()]}}function Re(e,t,r,n){let i=e.length,o=0,s;if(t<0?t=-t>i?0:i+t:t=t>i?i:t,r=r>0?r:0,n.length<1e4)s=Array.from(n),s.unshift(t,r),e.splice(...s);else for(r&&e.splice(t,r);o<n.length;)s=n.slice(o,o+1e4),s.unshift(t,0),e.splice(...s),o+=1e4,t+=1e4}function pt(e,t){return e.length>0?(Re(e,e.length,0,t),e):t}var fS={}.hasOwnProperty;function lu(e){let t={},r=-1;for(;++r<e.length;)M2(t,e[r]);return t}function M2(e,t){let r;for(r in t){let i=(fS.call(e,r)?e[r]:void 0)||(e[r]={}),o=t[r],s;if(o)for(s in o){fS.call(i,s)||(i[s]=[]);let a=o[s];D2(i[s],Array.isArray(a)?a:a?[a]:[])}}}function D2(e,t){let r=-1,n=[];for(;++r<t.length;)(t[r].add==="after"?e:n).push(t[r]);Re(e,0,0,n)}var P2={tokenize:B2,partial:!0},pS={tokenize:$2,partial:!0},hS={tokenize:U2,partial:!0},mS={tokenize:j2,partial:!0},N2={tokenize:z2,partial:!0},dS={name:"wwwAutolink",tokenize:R2,previous:yS},gS={name:"protocolAutolink",tokenize:L2,previous:xS},Sr={name:"emailAutolink",tokenize:F2,previous:bS},tr={};function jh(){return{text:tr}}var Jn=48;for(;Jn<123;)tr[Jn]=Sr,Jn++,Jn===58?Jn=65:Jn===91&&(Jn=97);tr[43]=Sr;tr[45]=Sr;tr[46]=Sr;tr[95]=Sr;tr[72]=[Sr,gS];tr[104]=[Sr,gS];tr[87]=[Sr,dS];tr[119]=[Sr,dS];function F2(e,t,r){let n=this,i,o;return s;function s(f){return!Uh(f)||!bS.call(n,n.previous)||zh(n.events)?r(f):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),a(f))}function a(f){return Uh(f)?(e.consume(f),a):f===64?(e.consume(f),l):r(f)}function l(f){return f===46?e.check(N2,c,u)(f):f===45||f===95||Me(f)?(o=!0,e.consume(f),l):c(f)}function u(f){return e.consume(f),i=!0,l}function c(f){return o&&i&&Je(n.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(f)):r(f)}}function R2(e,t,r){let n=this;return i;function i(s){return s!==87&&s!==119||!yS.call(n,n.previous)||zh(n.events)?r(s):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(P2,e.attempt(pS,e.attempt(hS,o),r),r)(s))}function o(s){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(s)}}function L2(e,t,r){let n=this,i="",o=!1;return s;function s(f){return(f===72||f===104)&&xS.call(n,n.previous)&&!zh(n.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),i+=String.fromCodePoint(f),e.consume(f),a):r(f)}function a(f){if(Je(f)&&i.length<5)return i+=String.fromCodePoint(f),e.consume(f),a;if(f===58){let p=i.toLowerCase();if(p==="http"||p==="https")return e.consume(f),l}return r(f)}function l(f){return f===47?(e.consume(f),o?u:(o=!0,l)):r(f)}function u(f){return f===null||qn(f)||ce(f)||er(f)||Hn(f)?r(f):e.attempt(pS,e.attempt(hS,c),r)(f)}function c(f){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(f)}}function B2(e,t,r){let n=0;return i;function i(s){return(s===87||s===119)&&n<3?(n++,e.consume(s),i):s===46&&n===3?(e.consume(s),o):r(s)}function o(s){return s===null?r(s):t(s)}}function $2(e,t,r){let n,i,o;return s;function s(u){return u===46||u===95?e.check(mS,l,a)(u):u===null||ce(u)||er(u)||u!==45&&Hn(u)?l(u):(o=!0,e.consume(u),s)}function a(u){return u===95?n=!0:(i=n,n=void 0),e.consume(u),s}function l(u){return i||n||!o?r(u):t(u)}}function U2(e,t){let r=0,n=0;return i;function i(s){return s===40?(r++,e.consume(s),i):s===41&&n<r?o(s):s===33||s===34||s===38||s===39||s===41||s===42||s===44||s===46||s===58||s===59||s===60||s===63||s===93||s===95||s===126?e.check(mS,t,o)(s):s===null||ce(s)||er(s)?t(s):(e.consume(s),i)}function o(s){return s===41&&n++,e.consume(s),i}}function j2(e,t,r){return n;function n(a){return a===33||a===34||a===39||a===41||a===42||a===44||a===46||a===58||a===59||a===63||a===95||a===126?(e.consume(a),n):a===38?(e.consume(a),o):a===93?(e.consume(a),i):a===60||a===null||ce(a)||er(a)?t(a):r(a)}function i(a){return a===null||a===40||a===91||ce(a)||er(a)?t(a):n(a)}function o(a){return Je(a)?s(a):r(a)}function s(a){return a===59?(e.consume(a),n):Je(a)?(e.consume(a),s):r(a)}}function z2(e,t,r){return n;function n(o){return e.consume(o),i}function i(o){return Me(o)?r(o):t(o)}}function yS(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||ce(e)}function xS(e){return!Je(e)}function bS(e){return!(e===47||Uh(e))}function Uh(e){return e===43||e===45||e===46||e===95||Me(e)}function zh(e){let t=e.length,r=!1;for(;t--;){let n=e[t][1];if((n.type==="labelLink"||n.type==="labelImage")&&!n._balanced){r=!0;break}if(n._gfmAutolinkLiteralWalkedInto){r=!1;break}}return e.length>0&&!r&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),r}function Mt(e){let t=[],r=-1,n=0,i=0;for(;++r<e.length;){let o=e.charCodeAt(r),s="";if(o===37&&Me(e.charCodeAt(r+1))&&Me(e.charCodeAt(r+2)))i=2;else if(o<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(o))||(s=String.fromCharCode(o));else if(o>55295&&o<57344){let a=e.charCodeAt(r+1);o<56320&&a>56319&&a<57344?(s=String.fromCharCode(o,a),i=1):s="\uFFFD"}else s=String.fromCharCode(o);s&&(t.push(e.slice(n,r),encodeURIComponent(s)),n=r+i+1,s=""),i&&(r+=i,i=0)}return t.join("")+e.slice(n)}function Qr(e,t,r){let n=[],i=-1;for(;++i<e.length;){let o=e[i].resolveAll;o&&!n.includes(o)&&(t=o(t,r),n.push(o))}return t}var Ps={name:"attention",resolveAll:q2,tokenize:H2};function q2(e,t){let r=-1,n,i,o,s,a,l,u,c;for(;++r<e.length;)if(e[r][0]==="enter"&&e[r][1].type==="attentionSequence"&&e[r][1]._close){for(n=r;n--;)if(e[n][0]==="exit"&&e[n][1].type==="attentionSequence"&&e[n][1]._open&&t.sliceSerialize(e[n][1]).charCodeAt(0)===t.sliceSerialize(e[r][1]).charCodeAt(0)){if((e[n][1]._close||e[r][1]._open)&&(e[r][1].end.offset-e[r][1].start.offset)%3&&!((e[n][1].end.offset-e[n][1].start.offset+e[r][1].end.offset-e[r][1].start.offset)%3))continue;l=e[n][1].end.offset-e[n][1].start.offset>1&&e[r][1].end.offset-e[r][1].start.offset>1?2:1;let f={...e[n][1].end},p={...e[r][1].start};wS(f,-l),wS(p,l),s={type:l>1?"strongSequence":"emphasisSequence",start:f,end:{...e[n][1].end}},a={type:l>1?"strongSequence":"emphasisSequence",start:{...e[r][1].start},end:p},o={type:l>1?"strongText":"emphasisText",start:{...e[n][1].end},end:{...e[r][1].start}},i={type:l>1?"strong":"emphasis",start:{...s.start},end:{...a.end}},e[n][1].end={...s.start},e[r][1].start={...a.end},u=[],e[n][1].end.offset-e[n][1].start.offset&&(u=pt(u,[["enter",e[n][1],t],["exit",e[n][1],t]])),u=pt(u,[["enter",i,t],["enter",s,t],["exit",s,t],["enter",o,t]]),u=pt(u,Qr(t.parser.constructs.insideSpan.null,e.slice(n+1,r),t)),u=pt(u,[["exit",o,t],["enter",a,t],["exit",a,t],["exit",i,t]]),e[r][1].end.offset-e[r][1].start.offset?(c=2,u=pt(u,[["enter",e[r][1],t],["exit",e[r][1],t]])):c=0,Re(e,n-1,r-n+3,u),r=n+u.length-c-2;break}}for(r=-1;++r<e.length;)e[r][1].type==="attentionSequence"&&(e[r][1].type="data");return e}function H2(e,t){let r=this.parser.constructs.attentionMarkers.null,n=this.previous,i=vr(n),o;return s;function s(l){return o=l,e.enter("attentionSequence"),a(l)}function a(l){if(l===o)return e.consume(l),a;let u=e.exit("attentionSequence"),c=vr(l),f=!c||c===2&&i||r.includes(l),p=!i||i===2&&c||r.includes(n);return u._open=!!(o===42?f:f&&(i||!p)),u._close=!!(o===42?p:p&&(c||!f)),t(l)}}function wS(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}var qh={name:"autolink",tokenize:W2};function W2(e,t,r){let n=0;return i;function i(h){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(h),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),o}function o(h){return Je(h)?(e.consume(h),s):h===64?r(h):u(h)}function s(h){return h===43||h===45||h===46||Me(h)?(n=1,a(h)):u(h)}function a(h){return h===58?(e.consume(h),n=0,l):(h===43||h===45||h===46||Me(h))&&n++<32?(e.consume(h),a):(n=0,u(h))}function l(h){return h===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(h),e.exit("autolinkMarker"),e.exit("autolink"),t):h===null||h===32||h===60||qn(h)?r(h):(e.consume(h),l)}function u(h){return h===64?(e.consume(h),c):w1(h)?(e.consume(h),u):r(h)}function c(h){return Me(h)?f(h):r(h)}function f(h){return h===46?(e.consume(h),n=0,c):h===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(h),e.exit("autolinkMarker"),e.exit("autolink"),t):p(h)}function p(h){if((h===45||Me(h))&&n++<63){let m=h===45?p:f;return e.consume(h),m}return r(h)}}function Q(e,t,r,n){let i=n?n-1:Number.POSITIVE_INFINITY,o=0;return s;function s(l){return J(l)?(e.enter(r),a(l)):t(l)}function a(l){return J(l)&&o++<i?(e.consume(l),a):(e.exit(r),t(l))}}var rr={partial:!0,tokenize:V2};function V2(e,t,r){return n;function n(o){return J(o)?Q(e,i,"linePrefix")(o):i(o)}function i(o){return o===null||H(o)?t(o):r(o)}}var uu={continuation:{tokenize:G2},exit:J2,name:"blockQuote",tokenize:Y2};function Y2(e,t,r){let n=this;return i;function i(s){if(s===62){let a=n.containerState;return a.open||(e.enter("blockQuote",{_container:!0}),a.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(s),e.exit("blockQuoteMarker"),o}return r(s)}function o(s){return J(s)?(e.enter("blockQuotePrefixWhitespace"),e.consume(s),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(s))}}function G2(e,t,r){let n=this;return i;function i(s){return J(s)?Q(e,o,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(s):o(s)}function o(s){return e.attempt(uu,t,r)(s)}}function J2(e){e.exit("blockQuote")}var cu={name:"characterEscape",tokenize:Q2};function Q2(e,t,r){return n;function n(o){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(o),e.exit("escapeMarker"),i}function i(o){return S1(o)?(e.enter("characterEscapeValue"),e.consume(o),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):r(o)}}var fu={name:"characterReference",tokenize:Z2};function Z2(e,t,r){let n=this,i=0,o,s;return a;function a(f){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(f),e.exit("characterReferenceMarker"),l}function l(f){return f===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(f),e.exit("characterReferenceMarkerNumeric"),u):(e.enter("characterReferenceValue"),o=31,s=Me,c(f))}function u(f){return f===88||f===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(f),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),o=6,s=v1,c):(e.enter("characterReferenceValue"),o=7,s=Is,c(f))}function c(f){if(f===59&&i){let p=e.exit("characterReferenceValue");return s===Me&&!no(n.sliceSerialize(p))?r(f):(e.enter("characterReferenceMarker"),e.consume(f),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return s(f)&&i++<o?(e.consume(f),c):r(f)}}var vS={partial:!0,tokenize:K2},pu={concrete:!0,name:"codeFenced",tokenize:X2};function X2(e,t,r){let n=this,i={partial:!0,tokenize:q},o=0,s=0,a;return l;function l(A){return u(A)}function u(A){let R=n.events[n.events.length-1];return o=R&&R[1].type==="linePrefix"?R[2].sliceSerialize(R[1],!0).length:0,a=A,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),c(A)}function c(A){return A===a?(s++,e.consume(A),c):s<3?r(A):(e.exit("codeFencedFenceSequence"),J(A)?Q(e,f,"whitespace")(A):f(A))}function f(A){return A===null||H(A)?(e.exit("codeFencedFence"),n.interrupt?t(A):e.check(vS,x,z)(A)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),p(A))}function p(A){return A===null||H(A)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),f(A)):J(A)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),Q(e,h,"whitespace")(A)):A===96&&A===a?r(A):(e.consume(A),p)}function h(A){return A===null||H(A)?f(A):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),m(A))}function m(A){return A===null||H(A)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),f(A)):A===96&&A===a?r(A):(e.consume(A),m)}function x(A){return e.attempt(i,z,v)(A)}function v(A){return e.enter("lineEnding"),e.consume(A),e.exit("lineEnding"),w}function w(A){return o>0&&J(A)?Q(e,T,"linePrefix",o+1)(A):T(A)}function T(A){return A===null||H(A)?e.check(vS,x,z)(A):(e.enter("codeFlowValue"),b(A))}function b(A){return A===null||H(A)?(e.exit("codeFlowValue"),T(A)):(e.consume(A),b)}function z(A){return e.exit("codeFenced"),t(A)}function q(A,R,W){let $=0;return E;function E(D){return A.enter("lineEnding"),A.consume(D),A.exit("lineEnding"),fe}function fe(D){return A.enter("codeFencedFence"),J(D)?Q(A,B,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(D):B(D)}function B(D){return D===a?(A.enter("codeFencedFenceSequence"),_(D)):W(D)}function _(D){return D===a?($++,A.consume(D),_):$>=s?(A.exit("codeFencedFenceSequence"),J(D)?Q(A,I,"whitespace")(D):I(D)):W(D)}function I(D){return D===null||H(D)?(A.exit("codeFencedFence"),R(D)):W(D)}}}function K2(e,t,r){let n=this;return i;function i(s){return s===null?r(s):(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),o)}function o(s){return n.parser.lazy[n.now().line]?r(s):t(s)}}var Ns={name:"codeIndented",tokenize:tL},eL={partial:!0,tokenize:rL};function tL(e,t,r){let n=this;return i;function i(u){return e.enter("codeIndented"),Q(e,o,"linePrefix",5)(u)}function o(u){let c=n.events[n.events.length-1];return c&&c[1].type==="linePrefix"&&c[2].sliceSerialize(c[1],!0).length>=4?s(u):r(u)}function s(u){return u===null?l(u):H(u)?e.attempt(eL,s,l)(u):(e.enter("codeFlowValue"),a(u))}function a(u){return u===null||H(u)?(e.exit("codeFlowValue"),s(u)):(e.consume(u),a)}function l(u){return e.exit("codeIndented"),t(u)}}function rL(e,t,r){let n=this;return i;function i(s){return n.parser.lazy[n.now().line]?r(s):H(s)?(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),i):Q(e,o,"linePrefix",5)(s)}function o(s){let a=n.events[n.events.length-1];return a&&a[1].type==="linePrefix"&&a[2].sliceSerialize(a[1],!0).length>=4?t(s):H(s)?i(s):r(s)}}var Hh={name:"codeText",previous:iL,resolve:nL,tokenize:oL};function nL(e){let t=e.length-4,r=3,n,i;if((e[r][1].type==="lineEnding"||e[r][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(n=r;++n<t;)if(e[n][1].type==="codeTextData"){e[r][1].type="codeTextPadding",e[t][1].type="codeTextPadding",r+=2,t-=2;break}}for(n=r-1,t++;++n<=t;)i===void 0?n!==t&&e[n][1].type!=="lineEnding"&&(i=n):(n===t||e[n][1].type==="lineEnding")&&(e[i][1].type="codeTextData",n!==i+2&&(e[i][1].end=e[n-1][1].end,e.splice(i+2,n-i-2),t-=n-i-2,n=i+2),i=void 0);return e}function iL(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function oL(e,t,r){let n=this,i=0,o,s;return a;function a(p){return e.enter("codeText"),e.enter("codeTextSequence"),l(p)}function l(p){return p===96?(e.consume(p),i++,l):(e.exit("codeTextSequence"),u(p))}function u(p){return p===null?r(p):p===32?(e.enter("space"),e.consume(p),e.exit("space"),u):p===96?(s=e.enter("codeTextSequence"),o=0,f(p)):H(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),u):(e.enter("codeTextData"),c(p))}function c(p){return p===null||p===32||p===96||H(p)?(e.exit("codeTextData"),u(p)):(e.consume(p),c)}function f(p){return p===96?(e.consume(p),o++,f):o===i?(e.exit("codeTextSequence"),e.exit("codeText"),t(p)):(s.type="codeTextData",c(p))}}var hu=class{constructor(t){this.left=t?[...t]:[],this.right=[]}get(t){if(t<0||t>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+t+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return t<this.left.length?this.left[t]:this.right[this.right.length-t+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(t,r){let n=r??Number.POSITIVE_INFINITY;return n<this.left.length?this.left.slice(t,n):t>this.left.length?this.right.slice(this.right.length-n+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-n+this.left.length).reverse())}splice(t,r,n){let i=r||0;this.setCursor(Math.trunc(t));let o=this.right.splice(this.right.length-i,Number.POSITIVE_INFINITY);return n&&Fs(this.left,n),o.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(t){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(t)}pushMany(t){this.setCursor(Number.POSITIVE_INFINITY),Fs(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),Fs(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);Fs(this.right,r.reverse())}else{let r=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);Fs(this.left,r.reverse())}}};function Fs(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 mu(e){let t={},r=-1,n,i,o,s,a,l,u,c=new hu(e);for(;++r<c.length;){for(;r in t;)r=t[r];if(n=c.get(r),r&&n[1].type==="chunkFlow"&&c.get(r-1)[1].type==="listItemPrefix"&&(l=n[1]._tokenizer.events,o=0,o<l.length&&l[o][1].type==="lineEndingBlank"&&(o+=2),o<l.length&&l[o][1].type==="content"))for(;++o<l.length&&l[o][1].type!=="content";)l[o][1].type==="chunkText"&&(l[o][1]._isInFirstContentOfListItem=!0,o++);if(n[0]==="enter")n[1].contentType&&(Object.assign(t,sL(c,r)),r=t[r],u=!0);else if(n[1]._container){for(o=r,i=void 0;o--&&(s=c.get(o),s[1].type==="lineEnding"||s[1].type==="lineEndingBlank");)s[0]==="enter"&&(i&&(c.get(i)[1].type="lineEndingBlank"),s[1].type="lineEnding",i=o);i&&(n[1].end={...c.get(i)[1].start},a=c.slice(i,r),a.unshift(n),c.splice(i,r-i+1,a))}}return Re(e,0,Number.POSITIVE_INFINITY,c.slice(0)),!u}function sL(e,t){let r=e.get(t)[1],n=e.get(t)[2],i=t-1,o=[],s=r._tokenizer||n.parser[r.contentType](r.start),a=s.events,l=[],u={},c,f,p=-1,h=r,m=0,x=0,v=[x];for(;h;){for(;e.get(++i)[1]!==h;);o.push(i),h._tokenizer||(c=n.sliceStream(h),h.next||c.push(null),f&&s.defineSkip(h.start),h._isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=!0),s.write(c),h._isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=void 0)),f=h,h=h.next}for(h=r;++p<a.length;)a[p][0]==="exit"&&a[p-1][0]==="enter"&&a[p][1].type===a[p-1][1].type&&a[p][1].start.line!==a[p][1].end.line&&(x=p+1,v.push(x),h._tokenizer=void 0,h.previous=void 0,h=h.next);for(s.events=[],h?(h._tokenizer=void 0,h.previous=void 0):v.pop(),p=v.length;p--;){let w=a.slice(v[p],v[p+1]),T=o.pop();l.push([T,T+w.length-1]),e.splice(T,2,w)}for(l.reverse(),p=-1;++p<l.length;)u[m+l[p][0]]=m+l[p][1],m+=l[p][1]-l[p][0]-1;return u}var Wh={resolve:lL,tokenize:uL},aL={partial:!0,tokenize:cL};function lL(e){return mu(e),e}function uL(e,t){let r;return n;function n(a){return e.enter("content"),r=e.enter("chunkContent",{contentType:"content"}),i(a)}function i(a){return a===null?o(a):H(a)?e.check(aL,s,o)(a):(e.consume(a),i)}function o(a){return e.exit("chunkContent"),e.exit("content"),t(a)}function s(a){return e.consume(a),e.exit("chunkContent"),r.next=e.enter("chunkContent",{contentType:"content",previous:r}),r=r.next,i}}function cL(e,t,r){let n=this;return i;function i(s){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),Q(e,o,"linePrefix")}function o(s){if(s===null||H(s))return r(s);let a=n.events[n.events.length-1];return!n.parser.constructs.disable.null.includes("codeIndented")&&a&&a[1].type==="linePrefix"&&a[2].sliceSerialize(a[1],!0).length>=4?t(s):e.interrupt(n.parser.constructs.flow,r,t)(s)}}function du(e,t,r,n,i,o,s,a,l){let u=l||Number.POSITIVE_INFINITY,c=0;return f;function f(w){return w===60?(e.enter(n),e.enter(i),e.enter(o),e.consume(w),e.exit(o),p):w===null||w===32||w===41||qn(w)?r(w):(e.enter(n),e.enter(s),e.enter(a),e.enter("chunkString",{contentType:"string"}),x(w))}function p(w){return w===62?(e.enter(o),e.consume(w),e.exit(o),e.exit(i),e.exit(n),t):(e.enter(a),e.enter("chunkString",{contentType:"string"}),h(w))}function h(w){return w===62?(e.exit("chunkString"),e.exit(a),p(w)):w===null||w===60||H(w)?r(w):(e.consume(w),w===92?m:h)}function m(w){return w===60||w===62||w===92?(e.consume(w),h):h(w)}function x(w){return!c&&(w===null||w===41||ce(w))?(e.exit("chunkString"),e.exit(a),e.exit(s),e.exit(n),t(w)):c<u&&w===40?(e.consume(w),c++,x):w===41?(e.consume(w),c--,x):w===null||w===32||w===40||qn(w)?r(w):(e.consume(w),w===92?v:x)}function v(w){return w===40||w===41||w===92?(e.consume(w),x):x(w)}}function gu(e,t,r,n,i,o){let s=this,a=0,l;return u;function u(h){return e.enter(n),e.enter(i),e.consume(h),e.exit(i),e.enter(o),c}function c(h){return a>999||h===null||h===91||h===93&&!l||h===94&&!a&&"_hiddenFootnoteSupport"in s.parser.constructs?r(h):h===93?(e.exit(o),e.enter(i),e.consume(h),e.exit(i),e.exit(n),t):H(h)?(e.enter("lineEnding"),e.consume(h),e.exit("lineEnding"),c):(e.enter("chunkString",{contentType:"string"}),f(h))}function f(h){return h===null||h===91||h===93||H(h)||a++>999?(e.exit("chunkString"),c(h)):(e.consume(h),l||(l=!J(h)),h===92?p:f)}function p(h){return h===91||h===92||h===93?(e.consume(h),a++,f):f(h)}}function yu(e,t,r,n,i,o){let s;return a;function a(p){return p===34||p===39||p===40?(e.enter(n),e.enter(i),e.consume(p),e.exit(i),s=p===40?41:p,l):r(p)}function l(p){return p===s?(e.enter(i),e.consume(p),e.exit(i),e.exit(n),t):(e.enter(o),u(p))}function u(p){return p===s?(e.exit(o),l(s)):p===null?r(p):H(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),Q(e,u,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),c(p))}function c(p){return p===s||p===null||H(p)?(e.exit("chunkString"),u(p)):(e.consume(p),p===92?f:c)}function f(p){return p===s||p===92?(e.consume(p),c):c(p)}}function Qn(e,t){let r;return n;function n(i){return H(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),r=!0,n):J(i)?Q(e,n,r?"linePrefix":"lineSuffix")(i):t(i)}}var Vh={name:"definition",tokenize:pL},fL={partial:!0,tokenize:hL};function pL(e,t,r){let n=this,i;return o;function o(h){return e.enter("definition"),s(h)}function s(h){return gu.call(n,e,a,r,"definitionLabel","definitionLabelMarker","definitionLabelString")(h)}function a(h){return i=at(n.sliceSerialize(n.events[n.events.length-1][1]).slice(1,-1)),h===58?(e.enter("definitionMarker"),e.consume(h),e.exit("definitionMarker"),l):r(h)}function l(h){return ce(h)?Qn(e,u)(h):u(h)}function u(h){return du(e,c,r,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(h)}function c(h){return e.attempt(fL,f,f)(h)}function f(h){return J(h)?Q(e,p,"whitespace")(h):p(h)}function p(h){return h===null||H(h)?(e.exit("definition"),n.parser.defined.push(i),t(h)):r(h)}}function hL(e,t,r){return n;function n(a){return ce(a)?Qn(e,i)(a):r(a)}function i(a){return yu(e,o,r,"definitionTitle","definitionTitleMarker","definitionTitleString")(a)}function o(a){return J(a)?Q(e,s,"whitespace")(a):s(a)}function s(a){return a===null||H(a)?t(a):r(a)}}var Yh={name:"hardBreakEscape",tokenize:mL};function mL(e,t,r){return n;function n(o){return e.enter("hardBreakEscape"),e.consume(o),i}function i(o){return H(o)?(e.exit("hardBreakEscape"),t(o)):r(o)}}var Gh={name:"headingAtx",resolve:dL,tokenize:gL};function dL(e,t){let r=e.length-2,n=3,i,o;return e[n][1].type==="whitespace"&&(n+=2),r-2>n&&e[r][1].type==="whitespace"&&(r-=2),e[r][1].type==="atxHeadingSequence"&&(n===r-1||r-4>n&&e[r-2][1].type==="whitespace")&&(r-=n+1===r?2:4),r>n&&(i={type:"atxHeadingText",start:e[n][1].start,end:e[r][1].end},o={type:"chunkText",start:e[n][1].start,end:e[r][1].end,contentType:"text"},Re(e,n,r-n+1,[["enter",i,t],["enter",o,t],["exit",o,t],["exit",i,t]])),e}function gL(e,t,r){let n=0;return i;function i(c){return e.enter("atxHeading"),o(c)}function o(c){return e.enter("atxHeadingSequence"),s(c)}function s(c){return c===35&&n++<6?(e.consume(c),s):c===null||ce(c)?(e.exit("atxHeadingSequence"),a(c)):r(c)}function a(c){return c===35?(e.enter("atxHeadingSequence"),l(c)):c===null||H(c)?(e.exit("atxHeading"),t(c)):J(c)?Q(e,a,"whitespace")(c):(e.enter("atxHeadingText"),u(c))}function l(c){return c===35?(e.consume(c),l):(e.exit("atxHeadingSequence"),a(c))}function u(c){return c===null||c===35||ce(c)?(e.exit("atxHeadingText"),a(c)):(e.consume(c),u)}}var SS=["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"],Jh=["pre","script","style","textarea"];var Qh={concrete:!0,name:"htmlFlow",resolveTo:bL,tokenize:wL},yL={partial:!0,tokenize:SL},xL={partial:!0,tokenize:vL};function bL(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 wL(e,t,r){let n=this,i,o,s,a,l;return u;function u(y){return c(y)}function c(y){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(y),f}function f(y){return y===33?(e.consume(y),p):y===47?(e.consume(y),o=!0,x):y===63?(e.consume(y),i=3,n.interrupt?t:d):Je(y)?(e.consume(y),s=String.fromCharCode(y),v):r(y)}function p(y){return y===45?(e.consume(y),i=2,h):y===91?(e.consume(y),i=5,a=0,m):Je(y)?(e.consume(y),i=4,n.interrupt?t:d):r(y)}function h(y){return y===45?(e.consume(y),n.interrupt?t:d):r(y)}function m(y){let ie="CDATA[";return y===ie.charCodeAt(a++)?(e.consume(y),a===ie.length?n.interrupt?t:B:m):r(y)}function x(y){return Je(y)?(e.consume(y),s=String.fromCharCode(y),v):r(y)}function v(y){if(y===null||y===47||y===62||ce(y)){let ie=y===47,me=s.toLowerCase();return!ie&&!o&&Jh.includes(me)?(i=1,n.interrupt?t(y):B(y)):SS.includes(s.toLowerCase())?(i=6,ie?(e.consume(y),w):n.interrupt?t(y):B(y)):(i=7,n.interrupt&&!n.parser.lazy[n.now().line]?r(y):o?T(y):b(y))}return y===45||Me(y)?(e.consume(y),s+=String.fromCharCode(y),v):r(y)}function w(y){return y===62?(e.consume(y),n.interrupt?t:B):r(y)}function T(y){return J(y)?(e.consume(y),T):E(y)}function b(y){return y===47?(e.consume(y),E):y===58||y===95||Je(y)?(e.consume(y),z):J(y)?(e.consume(y),b):E(y)}function z(y){return y===45||y===46||y===58||y===95||Me(y)?(e.consume(y),z):q(y)}function q(y){return y===61?(e.consume(y),A):J(y)?(e.consume(y),q):b(y)}function A(y){return y===null||y===60||y===61||y===62||y===96?r(y):y===34||y===39?(e.consume(y),l=y,R):J(y)?(e.consume(y),A):W(y)}function R(y){return y===l?(e.consume(y),l=null,$):y===null||H(y)?r(y):(e.consume(y),R)}function W(y){return y===null||y===34||y===39||y===47||y===60||y===61||y===62||y===96||ce(y)?q(y):(e.consume(y),W)}function $(y){return y===47||y===62||J(y)?b(y):r(y)}function E(y){return y===62?(e.consume(y),fe):r(y)}function fe(y){return y===null||H(y)?B(y):J(y)?(e.consume(y),fe):r(y)}function B(y){return y===45&&i===2?(e.consume(y),F):y===60&&i===1?(e.consume(y),V):y===62&&i===4?(e.consume(y),G):y===63&&i===3?(e.consume(y),d):y===93&&i===5?(e.consume(y),U):H(y)&&(i===6||i===7)?(e.exit("htmlFlowData"),e.check(yL,X,_)(y)):y===null||H(y)?(e.exit("htmlFlowData"),_(y)):(e.consume(y),B)}function _(y){return e.check(xL,I,X)(y)}function I(y){return e.enter("lineEnding"),e.consume(y),e.exit("lineEnding"),D}function D(y){return y===null||H(y)?_(y):(e.enter("htmlFlowData"),B(y))}function F(y){return y===45?(e.consume(y),d):B(y)}function V(y){return y===47?(e.consume(y),s="",P):B(y)}function P(y){if(y===62){let ie=s.toLowerCase();return Jh.includes(ie)?(e.consume(y),G):B(y)}return Je(y)&&s.length<8?(e.consume(y),s+=String.fromCharCode(y),P):B(y)}function U(y){return y===93?(e.consume(y),d):B(y)}function d(y){return y===62?(e.consume(y),G):y===45&&i===2?(e.consume(y),d):B(y)}function G(y){return y===null||H(y)?(e.exit("htmlFlowData"),X(y)):(e.consume(y),G)}function X(y){return e.exit("htmlFlow"),t(y)}}function vL(e,t,r){let n=this;return i;function i(s){return H(s)?(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),o):r(s)}function o(s){return n.parser.lazy[n.now().line]?r(s):t(s)}}function SL(e,t,r){return n;function n(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),e.attempt(rr,t,r)}}var Zh={name:"htmlText",tokenize:kL};function kL(e,t,r){let n=this,i,o,s;return a;function a(d){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(d),l}function l(d){return d===33?(e.consume(d),u):d===47?(e.consume(d),q):d===63?(e.consume(d),b):Je(d)?(e.consume(d),W):r(d)}function u(d){return d===45?(e.consume(d),c):d===91?(e.consume(d),o=0,m):Je(d)?(e.consume(d),T):r(d)}function c(d){return d===45?(e.consume(d),h):r(d)}function f(d){return d===null?r(d):d===45?(e.consume(d),p):H(d)?(s=f,V(d)):(e.consume(d),f)}function p(d){return d===45?(e.consume(d),h):f(d)}function h(d){return d===62?F(d):d===45?p(d):f(d)}function m(d){let G="CDATA[";return d===G.charCodeAt(o++)?(e.consume(d),o===G.length?x:m):r(d)}function x(d){return d===null?r(d):d===93?(e.consume(d),v):H(d)?(s=x,V(d)):(e.consume(d),x)}function v(d){return d===93?(e.consume(d),w):x(d)}function w(d){return d===62?F(d):d===93?(e.consume(d),w):x(d)}function T(d){return d===null||d===62?F(d):H(d)?(s=T,V(d)):(e.consume(d),T)}function b(d){return d===null?r(d):d===63?(e.consume(d),z):H(d)?(s=b,V(d)):(e.consume(d),b)}function z(d){return d===62?F(d):b(d)}function q(d){return Je(d)?(e.consume(d),A):r(d)}function A(d){return d===45||Me(d)?(e.consume(d),A):R(d)}function R(d){return H(d)?(s=R,V(d)):J(d)?(e.consume(d),R):F(d)}function W(d){return d===45||Me(d)?(e.consume(d),W):d===47||d===62||ce(d)?$(d):r(d)}function $(d){return d===47?(e.consume(d),F):d===58||d===95||Je(d)?(e.consume(d),E):H(d)?(s=$,V(d)):J(d)?(e.consume(d),$):F(d)}function E(d){return d===45||d===46||d===58||d===95||Me(d)?(e.consume(d),E):fe(d)}function fe(d){return d===61?(e.consume(d),B):H(d)?(s=fe,V(d)):J(d)?(e.consume(d),fe):$(d)}function B(d){return d===null||d===60||d===61||d===62||d===96?r(d):d===34||d===39?(e.consume(d),i=d,_):H(d)?(s=B,V(d)):J(d)?(e.consume(d),B):(e.consume(d),I)}function _(d){return d===i?(e.consume(d),i=void 0,D):d===null?r(d):H(d)?(s=_,V(d)):(e.consume(d),_)}function I(d){return d===null||d===34||d===39||d===60||d===61||d===96?r(d):d===47||d===62||ce(d)?$(d):(e.consume(d),I)}function D(d){return d===47||d===62||ce(d)?$(d):r(d)}function F(d){return d===62?(e.consume(d),e.exit("htmlTextData"),e.exit("htmlText"),t):r(d)}function V(d){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),P}function P(d){return J(d)?Q(e,U,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(d):U(d)}function U(d){return e.enter("htmlTextData"),s(d)}}var Zn={name:"labelEnd",resolveAll:TL,resolveTo:_L,tokenize:IL},AL={tokenize:OL},EL={tokenize:ML},CL={tokenize:DL};function TL(e){let t=-1,r=[];for(;++t<e.length;){let n=e[t][1];if(r.push(e[t]),n.type==="labelImage"||n.type==="labelLink"||n.type==="labelEnd"){let i=n.type==="labelImage"?4:2;n.type="data",t+=i}}return e.length!==r.length&&Re(e,0,e.length,r),e}function _L(e,t){let r=e.length,n=0,i,o,s,a;for(;r--;)if(i=e[r][1],o){if(i.type==="link"||i.type==="labelLink"&&i._inactive)break;e[r][0]==="enter"&&i.type==="labelLink"&&(i._inactive=!0)}else if(s){if(e[r][0]==="enter"&&(i.type==="labelImage"||i.type==="labelLink")&&!i._balanced&&(o=r,i.type!=="labelLink")){n=2;break}}else i.type==="labelEnd"&&(s=r);let l={type:e[o][1].type==="labelLink"?"link":"image",start:{...e[o][1].start},end:{...e[e.length-1][1].end}},u={type:"label",start:{...e[o][1].start},end:{...e[s][1].end}},c={type:"labelText",start:{...e[o+n+2][1].end},end:{...e[s-2][1].start}};return a=[["enter",l,t],["enter",u,t]],a=pt(a,e.slice(o+1,o+n+3)),a=pt(a,[["enter",c,t]]),a=pt(a,Qr(t.parser.constructs.insideSpan.null,e.slice(o+n+4,s-3),t)),a=pt(a,[["exit",c,t],e[s-2],e[s-1],["exit",u,t]]),a=pt(a,e.slice(s+1)),a=pt(a,[["exit",l,t]]),Re(e,o,e.length,a),e}function IL(e,t,r){let n=this,i=n.events.length,o,s;for(;i--;)if((n.events[i][1].type==="labelImage"||n.events[i][1].type==="labelLink")&&!n.events[i][1]._balanced){o=n.events[i][1];break}return a;function a(p){return o?o._inactive?f(p):(s=n.parser.defined.includes(at(n.sliceSerialize({start:o.end,end:n.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(p),e.exit("labelMarker"),e.exit("labelEnd"),l):r(p)}function l(p){return p===40?e.attempt(AL,c,s?c:f)(p):p===91?e.attempt(EL,c,s?u:f)(p):s?c(p):f(p)}function u(p){return e.attempt(CL,c,f)(p)}function c(p){return t(p)}function f(p){return o._balanced=!0,r(p)}}function OL(e,t,r){return n;function n(f){return e.enter("resource"),e.enter("resourceMarker"),e.consume(f),e.exit("resourceMarker"),i}function i(f){return ce(f)?Qn(e,o)(f):o(f)}function o(f){return f===41?c(f):du(e,s,a,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(f)}function s(f){return ce(f)?Qn(e,l)(f):c(f)}function a(f){return r(f)}function l(f){return f===34||f===39||f===40?yu(e,u,r,"resourceTitle","resourceTitleMarker","resourceTitleString")(f):c(f)}function u(f){return ce(f)?Qn(e,c)(f):c(f)}function c(f){return f===41?(e.enter("resourceMarker"),e.consume(f),e.exit("resourceMarker"),e.exit("resource"),t):r(f)}}function ML(e,t,r){let n=this;return i;function i(a){return gu.call(n,e,o,s,"reference","referenceMarker","referenceString")(a)}function o(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 DL(e,t,r){return n;function n(o){return e.enter("reference"),e.enter("referenceMarker"),e.consume(o),e.exit("referenceMarker"),i}function i(o){return o===93?(e.enter("referenceMarker"),e.consume(o),e.exit("referenceMarker"),e.exit("reference"),t):r(o)}}var Xh={name:"labelStartImage",resolveAll:Zn.resolveAll,tokenize:PL};function PL(e,t,r){let n=this;return i;function i(a){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(a),e.exit("labelImageMarker"),o}function o(a){return a===91?(e.enter("labelMarker"),e.consume(a),e.exit("labelMarker"),e.exit("labelImage"),s):r(a)}function s(a){return a===94&&"_hiddenFootnoteSupport"in n.parser.constructs?r(a):t(a)}}var Kh={name:"labelStartLink",resolveAll:Zn.resolveAll,tokenize:NL};function NL(e,t,r){let n=this;return i;function i(s){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(s),e.exit("labelMarker"),e.exit("labelLink"),o}function o(s){return s===94&&"_hiddenFootnoteSupport"in n.parser.constructs?r(s):t(s)}}var Rs={name:"lineEnding",tokenize:FL};function FL(e,t){return r;function r(n){return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),Q(e,t,"linePrefix")}}var Xn={name:"thematicBreak",tokenize:RL};function RL(e,t,r){let n=0,i;return o;function o(u){return e.enter("thematicBreak"),s(u)}function s(u){return i=u,a(u)}function a(u){return u===i?(e.enter("thematicBreakSequence"),l(u)):n>=3&&(u===null||H(u))?(e.exit("thematicBreak"),t(u)):r(u)}function l(u){return u===i?(e.consume(u),n++,l):(e.exit("thematicBreakSequence"),J(u)?Q(e,a,"whitespace")(u):a(u))}}var lt={continuation:{tokenize:UL},exit:zL,name:"list",tokenize:$L},LL={partial:!0,tokenize:qL},BL={partial:!0,tokenize:jL};function $L(e,t,r){let n=this,i=n.events[n.events.length-1],o=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0,s=0;return a;function a(h){let m=n.containerState.type||(h===42||h===43||h===45?"listUnordered":"listOrdered");if(m==="listUnordered"?!n.containerState.marker||h===n.containerState.marker:Is(h)){if(n.containerState.type||(n.containerState.type=m,e.enter(m,{_container:!0})),m==="listUnordered")return e.enter("listItemPrefix"),h===42||h===45?e.check(Xn,r,u)(h):u(h);if(!n.interrupt||h===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),l(h)}return r(h)}function l(h){return Is(h)&&++s<10?(e.consume(h),l):(!n.interrupt||s<2)&&(n.containerState.marker?h===n.containerState.marker:h===41||h===46)?(e.exit("listItemValue"),u(h)):r(h)}function u(h){return e.enter("listItemMarker"),e.consume(h),e.exit("listItemMarker"),n.containerState.marker=n.containerState.marker||h,e.check(rr,n.interrupt?r:c,e.attempt(LL,p,f))}function c(h){return n.containerState.initialBlankLine=!0,o++,p(h)}function f(h){return J(h)?(e.enter("listItemPrefixWhitespace"),e.consume(h),e.exit("listItemPrefixWhitespace"),p):r(h)}function p(h){return n.containerState.size=o+n.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(h)}}function UL(e,t,r){let n=this;return n.containerState._closeFlow=void 0,e.check(rr,i,o);function i(a){return n.containerState.furtherBlankLines=n.containerState.furtherBlankLines||n.containerState.initialBlankLine,Q(e,t,"listItemIndent",n.containerState.size+1)(a)}function o(a){return n.containerState.furtherBlankLines||!J(a)?(n.containerState.furtherBlankLines=void 0,n.containerState.initialBlankLine=void 0,s(a)):(n.containerState.furtherBlankLines=void 0,n.containerState.initialBlankLine=void 0,e.attempt(BL,t,s)(a))}function s(a){return n.containerState._closeFlow=!0,n.interrupt=void 0,Q(e,e.attempt(lt,t,r),"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(a)}}function jL(e,t,r){let n=this;return Q(e,i,"listItemIndent",n.containerState.size+1);function i(o){let s=n.events[n.events.length-1];return s&&s[1].type==="listItemIndent"&&s[2].sliceSerialize(s[1],!0).length===n.containerState.size?t(o):r(o)}}function zL(e){e.exit(this.containerState.type)}function qL(e,t,r){let n=this;return Q(e,i,"listItemPrefixWhitespace",n.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function i(o){let s=n.events[n.events.length-1];return!J(o)&&s&&s[1].type==="listItemPrefixWhitespace"?t(o):r(o)}}var xu={name:"setextUnderline",resolveTo:HL,tokenize:WL};function HL(e,t){let r=e.length,n,i,o;for(;r--;)if(e[r][0]==="enter"){if(e[r][1].type==="content"){n=r;break}e[r][1].type==="paragraph"&&(i=r)}else e[r][1].type==="content"&&e.splice(r,1),!o&&e[r][1].type==="definition"&&(o=r);let s={type:"setextHeading",start:{...e[i][1].start},end:{...e[e.length-1][1].end}};return e[i][1].type="setextHeadingText",o?(e.splice(i,0,["enter",s,t]),e.splice(o+1,0,["exit",e[n][1],t]),e[n][1].end={...e[o][1].end}):e[n][1]=s,e.push(["exit",s,t]),e}function WL(e,t,r){let n=this,i;return o;function o(u){let c=n.events.length,f;for(;c--;)if(n.events[c][1].type!=="lineEnding"&&n.events[c][1].type!=="linePrefix"&&n.events[c][1].type!=="content"){f=n.events[c][1].type==="paragraph";break}return!n.parser.lazy[n.now().line]&&(n.interrupt||f)?(e.enter("setextHeadingLine"),i=u,s(u)):r(u)}function s(u){return e.enter("setextHeadingLineSequence"),a(u)}function a(u){return u===i?(e.consume(u),a):(e.exit("setextHeadingLineSequence"),J(u)?Q(e,l,"lineSuffix")(u):l(u))}function l(u){return u===null||H(u)?(e.exit("setextHeadingLine"),t(u)):r(u)}}var VL={tokenize:KL,partial:!0};function em(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:QL,continuation:{tokenize:ZL},exit:XL}},text:{91:{name:"gfmFootnoteCall",tokenize:JL},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:YL,resolveTo:GL}}}}function YL(e,t,r){let n=this,i=n.events.length,o=n.parser.gfmFootnotes||(n.parser.gfmFootnotes=[]),s;for(;i--;){let l=n.events[i][1];if(l.type==="labelImage"){s=l;break}if(l.type==="gfmFootnoteCall"||l.type==="labelLink"||l.type==="label"||l.type==="image"||l.type==="link")break}return a;function a(l){if(!s||!s._balanced)return r(l);let u=at(n.sliceSerialize({start:s.end,end:n.now()}));return u.codePointAt(0)!==94||!o.includes(u.slice(1))?r(l):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(l),e.exit("gfmFootnoteCallLabelMarker"),t(l))}}function GL(e,t){let r=e.length,n;for(;r--;)if(e[r][1].type==="labelImage"&&e[r][0]==="enter"){n=e[r][1];break}e[r+1][1].type="data",e[r+3][1].type="gfmFootnoteCallLabelMarker";let i={type:"gfmFootnoteCall",start:Object.assign({},e[r+3][1].start),end:Object.assign({},e[e.length-1][1].end)},o={type:"gfmFootnoteCallMarker",start:Object.assign({},e[r+3][1].end),end:Object.assign({},e[r+3][1].end)};o.end.column++,o.end.offset++,o.end._bufferIndex++;let s={type:"gfmFootnoteCallString",start:Object.assign({},o.end),end:Object.assign({},e[e.length-1][1].start)},a={type:"chunkString",contentType:"string",start:Object.assign({},s.start),end:Object.assign({},s.end)},l=[e[r+1],e[r+2],["enter",i,t],e[r+3],e[r+4],["enter",o,t],["exit",o,t],["enter",s,t],["enter",a,t],["exit",a,t],["exit",s,t],e[e.length-2],e[e.length-1],["exit",i,t]];return e.splice(r,e.length-r+1,...l),e}function JL(e,t,r){let n=this,i=n.parser.gfmFootnotes||(n.parser.gfmFootnotes=[]),o=0,s;return a;function a(f){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(f),e.exit("gfmFootnoteCallLabelMarker"),l}function l(f){return f!==94?r(f):(e.enter("gfmFootnoteCallMarker"),e.consume(f),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",u)}function u(f){if(o>999||f===93&&!s||f===null||f===91||ce(f))return r(f);if(f===93){e.exit("chunkString");let p=e.exit("gfmFootnoteCallString");return i.includes(at(n.sliceSerialize(p)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(f),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):r(f)}return ce(f)||(s=!0),o++,e.consume(f),f===92?c:u}function c(f){return f===91||f===92||f===93?(e.consume(f),o++,u):u(f)}}function QL(e,t,r){let n=this,i=n.parser.gfmFootnotes||(n.parser.gfmFootnotes=[]),o,s=0,a;return l;function l(m){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(m),e.exit("gfmFootnoteDefinitionLabelMarker"),u}function u(m){return m===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(m),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",c):r(m)}function c(m){if(s>999||m===93&&!a||m===null||m===91||ce(m))return r(m);if(m===93){e.exit("chunkString");let x=e.exit("gfmFootnoteDefinitionLabelString");return o=at(n.sliceSerialize(x)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(m),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),p}return ce(m)||(a=!0),s++,e.consume(m),m===92?f:c}function f(m){return m===91||m===92||m===93?(e.consume(m),s++,c):c(m)}function p(m){return m===58?(e.enter("definitionMarker"),e.consume(m),e.exit("definitionMarker"),i.includes(o)||i.push(o),Q(e,h,"gfmFootnoteDefinitionWhitespace")):r(m)}function h(m){return t(m)}}function ZL(e,t,r){return e.check(rr,t,e.attempt(VL,t,r))}function XL(e){e.exit("gfmFootnoteDefinition")}function KL(e,t,r){let n=this;return Q(e,i,"gfmFootnoteDefinitionIndent",5);function i(o){let s=n.events[n.events.length-1];return s&&s[1].type==="gfmFootnoteDefinitionIndent"&&s[2].sliceSerialize(s[1],!0).length===4?t(o):r(o)}}function tm(e){let r=(e||{}).singleTilde,n={name:"strikethrough",tokenize:o,resolveAll:i};return r==null&&(r=!0),{text:{126:n},insideSpan:{null:[n]},attentionMarkers:{null:[126]}};function i(s,a){let l=-1;for(;++l<s.length;)if(s[l][0]==="enter"&&s[l][1].type==="strikethroughSequenceTemporary"&&s[l][1]._close){let u=l;for(;u--;)if(s[u][0]==="exit"&&s[u][1].type==="strikethroughSequenceTemporary"&&s[u][1]._open&&s[l][1].end.offset-s[l][1].start.offset===s[u][1].end.offset-s[u][1].start.offset){s[l][1].type="strikethroughSequence",s[u][1].type="strikethroughSequence";let c={type:"strikethrough",start:Object.assign({},s[u][1].start),end:Object.assign({},s[l][1].end)},f={type:"strikethroughText",start:Object.assign({},s[u][1].end),end:Object.assign({},s[l][1].start)},p=[["enter",c,a],["enter",s[u][1],a],["exit",s[u][1],a],["enter",f,a]],h=a.parser.constructs.insideSpan.null;h&&Re(p,p.length,0,Qr(h,s.slice(u+1,l),a)),Re(p,p.length,0,[["exit",f,a],["enter",s[l][1],a],["exit",s[l][1],a],["exit",c,a]]),Re(s,u-1,l-u+3,p),l=u+p.length-2;break}}for(l=-1;++l<s.length;)s[l][1].type==="strikethroughSequenceTemporary"&&(s[l][1].type="data");return s}function o(s,a,l){let u=this.previous,c=this.events,f=0;return p;function p(m){return u===126&&c[c.length-1][1].type!=="characterEscape"?l(m):(s.enter("strikethroughSequenceTemporary"),h(m))}function h(m){let x=vr(u);if(m===126)return f>1?l(m):(s.consume(m),f++,h);if(f<2&&!r)return l(m);let v=s.exit("strikethroughSequenceTemporary"),w=vr(m);return v._open=!w||w===2&&!!x,v._close=!x||x===2&&!!w,a(m)}}}var bu=class{constructor(){this.map=[]}add(t,r,n){eB(this,t,r,n)}consume(t){if(this.map.sort(function(o,s){return o[0]-s[0]}),this.map.length===0)return;let r=this.map.length,n=[];for(;r>0;)r-=1,n.push(t.slice(this.map[r][0]+this.map[r][1]),this.map[r][2]),t.length=this.map[r][0];n.push([...t]),t.length=0;let i=n.pop();for(;i;)t.push(...i),i=n.pop();this.map.length=0}};function eB(e,t,r,n){let i=0;if(!(r===0&&n.length===0)){for(;i<e.map.length;){if(e.map[i][0]===t){e.map[i][1]+=r,e.map[i][2].push(...n);return}i+=1}e.map.push([t,r,n])}}function kS(e,t){let r=!1,n=[];for(;t<e.length;){let i=e[t];if(r){if(i[0]==="enter")i[1].type==="tableContent"&&n.push(e[t+1][1].type==="tableDelimiterMarker"?"left":"none");else if(i[1].type==="tableContent"){if(e[t-1][1].type==="tableDelimiterMarker"){let o=n.length-1;n[o]=n[o]==="left"?"center":"right"}}else if(i[1].type==="tableDelimiterRow")break}else i[0]==="enter"&&i[1].type==="tableDelimiterRow"&&(r=!0);t+=1}return n}function rm(){return{flow:{null:{name:"table",tokenize:tB,resolveAll:rB}}}}function tB(e,t,r){let n=this,i=0,o=0,s;return a;function a(E){let fe=n.events.length-1;for(;fe>-1;){let I=n.events[fe][1].type;if(I==="lineEnding"||I==="linePrefix")fe--;else break}let B=fe>-1?n.events[fe][1].type:null,_=B==="tableHead"||B==="tableRow"?A:l;return _===A&&n.parser.lazy[n.now().line]?r(E):_(E)}function l(E){return e.enter("tableHead"),e.enter("tableRow"),u(E)}function u(E){return E===124||(s=!0,o+=1),c(E)}function c(E){return E===null?r(E):H(E)?o>1?(o=0,n.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(E),e.exit("lineEnding"),h):r(E):J(E)?Q(e,c,"whitespace")(E):(o+=1,s&&(s=!1,i+=1),E===124?(e.enter("tableCellDivider"),e.consume(E),e.exit("tableCellDivider"),s=!0,c):(e.enter("data"),f(E)))}function f(E){return E===null||E===124||ce(E)?(e.exit("data"),c(E)):(e.consume(E),E===92?p:f)}function p(E){return E===92||E===124?(e.consume(E),f):f(E)}function h(E){return n.interrupt=!1,n.parser.lazy[n.now().line]?r(E):(e.enter("tableDelimiterRow"),s=!1,J(E)?Q(e,m,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(E):m(E))}function m(E){return E===45||E===58?v(E):E===124?(s=!0,e.enter("tableCellDivider"),e.consume(E),e.exit("tableCellDivider"),x):q(E)}function x(E){return J(E)?Q(e,v,"whitespace")(E):v(E)}function v(E){return E===58?(o+=1,s=!0,e.enter("tableDelimiterMarker"),e.consume(E),e.exit("tableDelimiterMarker"),w):E===45?(o+=1,w(E)):E===null||H(E)?z(E):q(E)}function w(E){return E===45?(e.enter("tableDelimiterFiller"),T(E)):q(E)}function T(E){return E===45?(e.consume(E),T):E===58?(s=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(E),e.exit("tableDelimiterMarker"),b):(e.exit("tableDelimiterFiller"),b(E))}function b(E){return J(E)?Q(e,z,"whitespace")(E):z(E)}function z(E){return E===124?m(E):E===null||H(E)?!s||i!==o?q(E):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(E)):q(E)}function q(E){return r(E)}function A(E){return e.enter("tableRow"),R(E)}function R(E){return E===124?(e.enter("tableCellDivider"),e.consume(E),e.exit("tableCellDivider"),R):E===null||H(E)?(e.exit("tableRow"),t(E)):J(E)?Q(e,R,"whitespace")(E):(e.enter("data"),W(E))}function W(E){return E===null||E===124||ce(E)?(e.exit("data"),R(E)):(e.consume(E),E===92?$:W)}function $(E){return E===92||E===124?(e.consume(E),W):W(E)}}function rB(e,t){let r=-1,n=!0,i=0,o=[0,0,0,0],s=[0,0,0,0],a=!1,l=0,u,c,f,p=new bu;for(;++r<e.length;){let h=e[r],m=h[1];h[0]==="enter"?m.type==="tableHead"?(a=!1,l!==0&&(AS(p,t,l,u,c),c=void 0,l=0),u={type:"table",start:Object.assign({},m.start),end:Object.assign({},m.end)},p.add(r,0,[["enter",u,t]])):m.type==="tableRow"||m.type==="tableDelimiterRow"?(n=!0,f=void 0,o=[0,0,0,0],s=[0,r+1,0,0],a&&(a=!1,c={type:"tableBody",start:Object.assign({},m.start),end:Object.assign({},m.end)},p.add(r,0,[["enter",c,t]])),i=m.type==="tableDelimiterRow"?2:c?3:1):i&&(m.type==="data"||m.type==="tableDelimiterMarker"||m.type==="tableDelimiterFiller")?(n=!1,s[2]===0&&(o[1]!==0&&(s[0]=s[1],f=wu(p,t,o,i,void 0,f),o=[0,0,0,0]),s[2]=r)):m.type==="tableCellDivider"&&(n?n=!1:(o[1]!==0&&(s[0]=s[1],f=wu(p,t,o,i,void 0,f)),o=s,s=[o[1],r,0,0])):m.type==="tableHead"?(a=!0,l=r):m.type==="tableRow"||m.type==="tableDelimiterRow"?(l=r,o[1]!==0?(s[0]=s[1],f=wu(p,t,o,i,r,f)):s[1]!==0&&(f=wu(p,t,s,i,r,f)),i=0):i&&(m.type==="data"||m.type==="tableDelimiterMarker"||m.type==="tableDelimiterFiller")&&(s[3]=r)}for(l!==0&&AS(p,t,l,u,c),p.consume(t.events),r=-1;++r<t.events.length;){let h=t.events[r];h[0]==="enter"&&h[1].type==="table"&&(h[1]._align=kS(t.events,r))}return e}function wu(e,t,r,n,i,o){let s=n===1?"tableHeader":n===2?"tableDelimiter":"tableData",a="tableContent";r[0]!==0&&(o.end=Object.assign({},io(t.events,r[0])),e.add(r[0],0,[["exit",o,t]]));let l=io(t.events,r[1]);if(o={type:s,start:Object.assign({},l),end:Object.assign({},l)},e.add(r[1],0,[["enter",o,t]]),r[2]!==0){let u=io(t.events,r[2]),c=io(t.events,r[3]),f={type:a,start:Object.assign({},u),end:Object.assign({},c)};if(e.add(r[2],0,[["enter",f,t]]),n!==2){let p=t.events[r[2]],h=t.events[r[3]];if(p[1].end=Object.assign({},h[1].end),p[1].type="chunkText",p[1].contentType="text",r[3]>r[2]+1){let m=r[2]+1,x=r[3]-r[2]-1;e.add(m,x,[])}}e.add(r[3]+1,0,[["exit",f,t]])}return i!==void 0&&(o.end=Object.assign({},io(t.events,i)),e.add(i,0,[["exit",o,t]]),o=void 0),o}function AS(e,t,r,n,i){let o=[],s=io(t.events,r);i&&(i.end=Object.assign({},s),o.push(["exit",i,t])),n.end=Object.assign({},s),o.push(["exit",n,t]),e.add(r+1,0,o)}function io(e,t){let r=e[t],n=r[0]==="enter"?"start":"end";return r[1][n]}var nB={name:"tasklistCheck",tokenize:iB};function nm(){return{text:{91:nB}}}function iB(e,t,r){let n=this;return i;function i(l){return n.previous!==null||!n._gfmTasklistFirstContentOfListItem?r(l):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(l),e.exit("taskListCheckMarker"),o)}function o(l){return ce(l)?(e.enter("taskListCheckValueUnchecked"),e.consume(l),e.exit("taskListCheckValueUnchecked"),s):l===88||l===120?(e.enter("taskListCheckValueChecked"),e.consume(l),e.exit("taskListCheckValueChecked"),s):r(l)}function s(l){return l===93?(e.enter("taskListCheckMarker"),e.consume(l),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),a):r(l)}function a(l){return H(l)?t(l):J(l)?e.check({tokenize:oB},t,r)(l):r(l)}}function oB(e,t,r){return Q(e,n,"whitespace");function n(i){return i===null?r(i):t(i)}}function ES(e){return lu([jh(),em(),tm(e),rm(),nm()])}var sB={};function Ls(e){let t=this,r=e||sB,n=t.data(),i=n.micromarkExtensions||(n.micromarkExtensions=[]),o=n.fromMarkdownExtensions||(n.fromMarkdownExtensions=[]),s=n.toMarkdownExtensions||(n.toMarkdownExtensions=[]);i.push(ES(r)),o.push(Bh()),s.push($h(r))}var CS={tokenize:aB};function aB(e){let t=e.attempt(this.parser.constructs.contentInitial,n,i),r;return t;function n(a){if(a===null){e.consume(a);return}return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),Q(e,t,"linePrefix")}function i(a){return e.enter("paragraph"),o(a)}function o(a){let l=e.enter("chunkText",{contentType:"text",previous:r});return r&&(r.next=l),r=l,s(a)}function s(a){if(a===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(a);return}return H(a)?(e.consume(a),e.exit("chunkText"),o):(e.consume(a),s)}}var _S={tokenize:lB},TS={tokenize:uB};function lB(e){let t=this,r=[],n=0,i,o,s;return a;function a(b){if(n<r.length){let z=r[n];return t.containerState=z[1],e.attempt(z[0].continuation,l,u)(b)}return u(b)}function l(b){if(n++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,i&&T();let z=t.events.length,q=z,A;for(;q--;)if(t.events[q][0]==="exit"&&t.events[q][1].type==="chunkFlow"){A=t.events[q][1].end;break}w(n);let R=z;for(;R<t.events.length;)t.events[R][1].end={...A},R++;return Re(t.events,q+1,0,t.events.slice(z)),t.events.length=R,u(b)}return a(b)}function u(b){if(n===r.length){if(!i)return p(b);if(i.currentConstruct&&i.currentConstruct.concrete)return m(b);t.interrupt=!!(i.currentConstruct&&!i._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(TS,c,f)(b)}function c(b){return i&&T(),w(n),p(b)}function f(b){return t.parser.lazy[t.now().line]=n!==r.length,s=t.now().offset,m(b)}function p(b){return t.containerState={},e.attempt(TS,h,m)(b)}function h(b){return n++,r.push([t.currentConstruct,t.containerState]),p(b)}function m(b){if(b===null){i&&T(),w(0),e.consume(b);return}return i=i||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:i,contentType:"flow",previous:o}),x(b)}function x(b){if(b===null){v(e.exit("chunkFlow"),!0),w(0),e.consume(b);return}return H(b)?(e.consume(b),v(e.exit("chunkFlow")),n=0,t.interrupt=void 0,a):(e.consume(b),x)}function v(b,z){let q=t.sliceStream(b);if(z&&q.push(null),b.previous=o,o&&(o.next=b),o=b,i.defineSkip(b.start),i.write(q),t.parser.lazy[b.start.line]){let A=i.events.length;for(;A--;)if(i.events[A][1].start.offset<s&&(!i.events[A][1].end||i.events[A][1].end.offset>s))return;let R=t.events.length,W=R,$,E;for(;W--;)if(t.events[W][0]==="exit"&&t.events[W][1].type==="chunkFlow"){if($){E=t.events[W][1].end;break}$=!0}for(w(n),A=R;A<t.events.length;)t.events[A][1].end={...E},A++;Re(t.events,W+1,0,t.events.slice(R)),t.events.length=A}}function w(b){let z=r.length;for(;z-- >b;){let q=r[z];t.containerState=q[1],q[0].exit.call(t,e)}r.length=b}function T(){i.write([null]),o=void 0,i=void 0,t.containerState._closeFlow=void 0}}function uB(e,t,r){return Q(e,e.attempt(this.parser.constructs.document,t,r),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}var IS={tokenize:cB};function cB(e){let t=this,r=e.attempt(rr,n,e.attempt(this.parser.constructs.flowInitial,i,Q(e,e.attempt(this.parser.constructs.flow,i,e.attempt(Wh,i)),"linePrefix")));return r;function n(o){if(o===null){e.consume(o);return}return e.enter("lineEndingBlank"),e.consume(o),e.exit("lineEndingBlank"),t.currentConstruct=void 0,r}function i(o){if(o===null){e.consume(o);return}return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),t.currentConstruct=void 0,r}}var OS={resolveAll:NS()},MS=PS("string"),DS=PS("text");function PS(e){return{resolveAll:NS(e==="text"?fB:void 0),tokenize:t};function t(r){let n=this,i=this.parser.constructs[e],o=r.attempt(i,s,a);return s;function s(c){return u(c)?o(c):a(c)}function a(c){if(c===null){r.consume(c);return}return r.enter("data"),r.consume(c),l}function l(c){return u(c)?(r.exit("data"),o(c)):(r.consume(c),l)}function u(c){if(c===null)return!0;let f=i[c],p=-1;if(f)for(;++p<f.length;){let h=f[p];if(!h.previous||h.previous.call(n,n.previous))return!0}return!1}}}function NS(e){return t;function t(r,n){let i=-1,o;for(;++i<=r.length;)o===void 0?r[i]&&r[i][1].type==="data"&&(o=i,i++):(!r[i]||r[i][1].type!=="data")&&(i!==o+2&&(r[o][1].end=r[i-1][1].end,r.splice(o+2,i-o-2),i=o+2),o=void 0);return e?e(r,n):r}}function fB(e,t){let r=0;for(;++r<=e.length;)if((r===e.length||e[r][1].type==="lineEnding")&&e[r-1][1].type==="data"){let n=e[r-1][1],i=t.sliceStream(n),o=i.length,s=-1,a=0,l;for(;o--;){let u=i[o];if(typeof u=="string"){for(s=u.length;u.charCodeAt(s-1)===32;)a++,s--;if(s)break;s=-1}else if(u===-2)l=!0,a++;else if(u!==-1){o++;break}}if(a){let u={type:r===e.length||l||a<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:o?s:n.start._bufferIndex+s,_index:n.start._index+o,line:n.end.line,column:n.end.column-a,offset:n.end.offset-a},end:{...n.end}};n.end={...u.start},n.start.offset===n.end.offset?Object.assign(n,u):(e.splice(r,0,["enter",u,t],["exit",u,t]),r+=2)}r++}return e}var im={};ue(im,{attentionMarkers:()=>bB,contentInitial:()=>hB,disable:()=>wB,document:()=>pB,flow:()=>dB,flowInitial:()=>mB,insideSpan:()=>xB,string:()=>gB,text:()=>yB});var pB={42:lt,43:lt,45:lt,48:lt,49:lt,50:lt,51:lt,52:lt,53:lt,54:lt,55:lt,56:lt,57:lt,62:uu},hB={91:Vh},mB={[-2]:Ns,[-1]:Ns,32:Ns},dB={35:Gh,42:Xn,45:[xu,Xn],60:Qh,61:xu,95:Xn,96:pu,126:pu},gB={38:fu,92:cu},yB={[-5]:Rs,[-4]:Rs,[-3]:Rs,33:Xh,38:fu,42:Ps,60:[qh,Zh],91:Kh,92:[Yh,cu],93:Zn,95:Ps,96:Hh},xB={null:[Ps,OS]},bB={null:[42,95]},wB={null:[]};function FS(e,t,r){let n={_bufferIndex:-1,_index:0,line:r&&r.line||1,column:r&&r.column||1,offset:r&&r.offset||0},i={},o=[],s=[],a=[],l=!0,u={attempt:$(R),check:$(W),consume:z,enter:q,exit:A,interrupt:$(W,{interrupt:!0})},c={code:null,containerState:{},defineSkip:w,events:[],now:v,parser:e,previous:null,sliceSerialize:m,sliceStream:x,write:h},f=t.tokenize.call(c,u),p;return t.resolveAll&&o.push(t),c;function h(_){return s=pt(s,_),T(),s[s.length-1]!==null?[]:(E(t,0),c.events=Qr(o,c.events,c),c.events)}function m(_,I){return SB(x(_),I)}function x(_){return vB(s,_)}function v(){let{_bufferIndex:_,_index:I,line:D,column:F,offset:V}=n;return{_bufferIndex:_,_index:I,line:D,column:F,offset:V}}function w(_){i[_.line]=_.column,B()}function T(){let _;for(;n._index<s.length;){let I=s[n._index];if(typeof I=="string")for(_=n._index,n._bufferIndex<0&&(n._bufferIndex=0);n._index===_&&n._bufferIndex<I.length;)b(I.charCodeAt(n._bufferIndex));else b(I)}}function b(_){l=void 0,p=_,f=f(_)}function z(_){H(_)?(n.line++,n.column=1,n.offset+=_===-3?2:1,B()):_!==-1&&(n.column++,n.offset++),n._bufferIndex<0?n._index++:(n._bufferIndex++,n._bufferIndex===s[n._index].length&&(n._bufferIndex=-1,n._index++)),c.previous=_,l=!0}function q(_,I){let D=I||{};return D.type=_,D.start=v(),c.events.push(["enter",D,c]),a.push(D),D}function A(_){let I=a.pop();return I.end=v(),c.events.push(["exit",I,c]),I}function R(_,I){E(_,I.from)}function W(_,I){I.restore()}function $(_,I){return D;function D(F,V,P){let U,d,G,X;return Array.isArray(F)?ie(F):"tokenize"in F?ie([F]):y(F);function y(g){return S;function S(C){let M=C!==null&&g[C],Y=C!==null&&g.null,de=[...Array.isArray(M)?M:M?[M]:[],...Array.isArray(Y)?Y:Y?[Y]:[]];return ie(de)(C)}}function ie(g){return U=g,d=0,g.length===0?P:me(g[d])}function me(g){return S;function S(C){return X=fe(),G=g,g.partial||(c.currentConstruct=g),g.name&&c.parser.constructs.disable.null.includes(g.name)?k(C):g.tokenize.call(I?Object.assign(Object.create(c),I):c,u,_e,k)(C)}}function _e(g){return l=!0,_(G,X),V}function k(g){return l=!0,X.restore(),++d<U.length?me(U[d]):P}}}function E(_,I){_.resolveAll&&!o.includes(_)&&o.push(_),_.resolve&&Re(c.events,I,c.events.length-I,_.resolve(c.events.slice(I),c)),_.resolveTo&&(c.events=_.resolveTo(c.events,c))}function fe(){let _=v(),I=c.previous,D=c.currentConstruct,F=c.events.length,V=Array.from(a);return{from:F,restore:P};function P(){n=_,c.previous=I,c.currentConstruct=D,c.events.length=F,a=V,B()}}function B(){n.line in i&&n.column<2&&(n.column=i[n.line],n.offset+=i[n.line]-1)}}function vB(e,t){let r=t.start._index,n=t.start._bufferIndex,i=t.end._index,o=t.end._bufferIndex,s;if(r===i)s=[e[r].slice(n,o)];else{if(s=e.slice(r,i),n>-1){let a=s[0];typeof a=="string"?s[0]=a.slice(n):s.shift()}o>0&&s.push(e[i].slice(0,o))}return s}function SB(e,t){let r=-1,n=[],i;for(;++r<e.length;){let o=e[r],s;if(typeof o=="string")s=o;else switch(o){case-5:{s="\r";break}case-4:{s=`
|
|
87
|
+
`;break}case-3:{s=`\r
|
|
88
|
+
`;break}case-2:{s=t?" ":" ";break}case-1:{if(!t&&i)continue;s=" ";break}default:s=String.fromCharCode(o)}i=o===-2,n.push(s)}return n.join("")}function om(e){let n={constructs:lu([im,...(e||{}).extensions||[]]),content:i(CS),defined:[],document:i(_S),flow:i(IS),lazy:{},string:i(MS),text:i(DS)};return n;function i(o){return s;function s(a){return FS(n,o,a)}}}function sm(e){for(;!mu(e););return e}var RS=/[\0\t\n\r]/g;function am(){let e=1,t="",r=!0,n;return i;function i(o,s,a){let l=[],u,c,f,p,h;for(o=t+(typeof o=="string"?o.toString():new TextDecoder(s||void 0).decode(o)),f=0,t="",r&&(o.charCodeAt(0)===65279&&f++,r=void 0);f<o.length;){if(RS.lastIndex=f,u=RS.exec(o),p=u&&u.index!==void 0?u.index:o.length,h=o.charCodeAt(p),!u){t=o.slice(f);break}if(h===10&&f===p&&n)l.push(-3),n=void 0;else switch(n&&(l.push(-5),n=void 0),f<p&&(l.push(o.slice(f,p)),e+=p-f),h){case 0:{l.push(65533),e++;break}case 9:{for(c=Math.ceil(e/4)*4,l.push(-2);e++<c;)l.push(-1);break}case 10:{l.push(-4),e=1;break}default:n=!0,e=1}f=p+1}return a&&(n&&l.push(-5),t&&l.push(t),l.push(null)),l}}var BS={}.hasOwnProperty;function lm(e,t,r){return typeof t!="string"&&(r=t,t=void 0),kB(r)(sm(om(r).document().write(am()(e,t,!0))))}function kB(e){let t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:o(or),autolinkProtocol:$,autolinkEmail:$,atxHeading:o(xe),blockQuote:o(C),characterEscape:$,characterReference:$,codeFenced:o(M),codeFencedFenceInfo:s,codeFencedFenceMeta:s,codeIndented:o(M,s),codeText:o(Y,s),codeTextData:$,data:$,codeFlowValue:$,definition:o(de),definitionDestinationString:s,definitionLabelString:s,definitionTitleString:s,emphasis:o(ye),hardBreakEscape:o(At),hardBreakTrailing:o(At),htmlFlow:o(nt,s),htmlFlowData:$,htmlText:o(nt,s),htmlTextData:$,image:o(bt),label:s,link:o(or),listItem:o(Rt),listItemValue:p,listOrdered:o(Dr,f),listUnordered:o(Dr),paragraph:o(Ht),reference:y,referenceString:s,resourceDestinationString:s,resourceTitleString:s,setextHeading:o(xe),strong:o(Et),thematicBreak:o(Pr)},exit:{atxHeading:l(),atxHeadingSequence:q,autolink:l(),autolinkEmail:S,autolinkProtocol:g,blockQuote:l(),characterEscapeValue:E,characterReferenceMarkerHexadecimal:me,characterReferenceMarkerNumeric:me,characterReferenceValue:_e,characterReference:k,codeFenced:l(v),codeFencedFence:x,codeFencedFenceInfo:h,codeFencedFenceMeta:m,codeFlowValue:E,codeIndented:l(w),codeText:l(D),codeTextData:E,data:E,definition:l(),definitionDestinationString:z,definitionLabelString:T,definitionTitleString:b,emphasis:l(),hardBreakEscape:l(B),hardBreakTrailing:l(B),htmlFlow:l(_),htmlFlowData:E,htmlText:l(I),htmlTextData:E,image:l(V),label:U,labelText:P,lineEnding:fe,link:l(F),listItem:l(),listOrdered:l(),listUnordered:l(),paragraph:l(),referenceString:ie,resourceDestinationString:d,resourceTitleString:G,resource:X,setextHeading:l(W),setextHeadingLineSequence:R,setextHeadingText:A,strong:l(),thematicBreak:l()}};$S(t,(e||{}).mdastExtensions||[]);let r={};return n;function n(O){let j={type:"root",children:[]},ee={stack:[j],tokenStack:[],config:t,enter:a,exit:u,buffer:s,resume:c,data:r},se=[],ve=-1;for(;++ve<O.length;)if(O[ve][1].type==="listOrdered"||O[ve][1].type==="listUnordered")if(O[ve][0]==="enter")se.push(ve);else{let Lt=se.pop();ve=i(O,Lt,ve)}for(ve=-1;++ve<O.length;){let Lt=t[O[ve][0]];BS.call(Lt,O[ve][1].type)&&Lt[O[ve][1].type].call(Object.assign({sliceSerialize:O[ve][2].sliceSerialize},ee),O[ve][1])}if(ee.tokenStack.length>0){let Lt=ee.tokenStack[ee.tokenStack.length-1];(Lt[1]||LS).call(ee,void 0,Lt[0])}for(j.position={start:Zr(O.length>0?O[0][1].start:{line:1,column:1,offset:0}),end:Zr(O.length>0?O[O.length-2][1].end:{line:1,column:1,offset:0})},ve=-1;++ve<t.transforms.length;)j=t.transforms[ve](j)||j;return j}function i(O,j,ee){let se=j-1,ve=-1,Lt=!1,un,sr,Oo,Mo;for(;++se<=ee;){let wt=O[se];switch(wt[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{wt[0]==="enter"?ve++:ve--,Mo=void 0;break}case"lineEndingBlank":{wt[0]==="enter"&&(un&&!Mo&&!ve&&!Oo&&(Oo=se),Mo=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:Mo=void 0}if(!ve&&wt[0]==="enter"&&wt[1].type==="listItemPrefix"||ve===-1&&wt[0]==="exit"&&(wt[1].type==="listUnordered"||wt[1].type==="listOrdered")){if(un){let ci=se;for(sr=void 0;ci--;){let ar=O[ci];if(ar[1].type==="lineEnding"||ar[1].type==="lineEndingBlank"){if(ar[0]==="exit")continue;sr&&(O[sr][1].type="lineEndingBlank",Lt=!0),ar[1].type="lineEnding",sr=ci}else if(!(ar[1].type==="linePrefix"||ar[1].type==="blockQuotePrefix"||ar[1].type==="blockQuotePrefixWhitespace"||ar[1].type==="blockQuoteMarker"||ar[1].type==="listItemIndent"))break}Oo&&(!sr||Oo<sr)&&(un._spread=!0),un.end=Object.assign({},sr?O[sr][1].start:wt[1].end),O.splice(sr||se,0,["exit",un,wt[2]]),se++,ee++}if(wt[1].type==="listItemPrefix"){let ci={type:"listItem",_spread:!1,start:Object.assign({},wt[1].start),end:void 0};un=ci,O.splice(se,0,["enter",ci,wt[2]]),se++,ee++,Oo=void 0,Mo=!0}}}return O[j][1]._spread=Lt,ee}function o(O,j){return ee;function ee(se){a.call(this,O(se),se),j&&j.call(this,se)}}function s(){this.stack.push({type:"fragment",children:[]})}function a(O,j,ee){this.stack[this.stack.length-1].children.push(O),this.stack.push(O),this.tokenStack.push([j,ee||void 0]),O.position={start:Zr(j.start),end:void 0}}function l(O){return j;function j(ee){O&&O.call(this,ee),u.call(this,ee)}}function u(O,j){let ee=this.stack.pop(),se=this.tokenStack.pop();if(se)se[0].type!==O.type&&(j?j.call(this,O,se[0]):(se[1]||LS).call(this,O,se[0]));else throw new Error("Cannot close `"+O.type+"` ("+Yr({start:O.start,end:O.end})+"): it\u2019s not open");ee.position.end=Zr(O.end)}function c(){return Vn(this.stack.pop())}function f(){this.data.expectingFirstListItemValue=!0}function p(O){if(this.data.expectingFirstListItemValue){let j=this.stack[this.stack.length-2];j.start=Number.parseInt(this.sliceSerialize(O),10),this.data.expectingFirstListItemValue=void 0}}function h(){let O=this.resume(),j=this.stack[this.stack.length-1];j.lang=O}function m(){let O=this.resume(),j=this.stack[this.stack.length-1];j.meta=O}function x(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function v(){let O=this.resume(),j=this.stack[this.stack.length-1];j.value=O.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function w(){let O=this.resume(),j=this.stack[this.stack.length-1];j.value=O.replace(/(\r?\n|\r)$/g,"")}function T(O){let j=this.resume(),ee=this.stack[this.stack.length-1];ee.label=j,ee.identifier=at(this.sliceSerialize(O)).toLowerCase()}function b(){let O=this.resume(),j=this.stack[this.stack.length-1];j.title=O}function z(){let O=this.resume(),j=this.stack[this.stack.length-1];j.url=O}function q(O){let j=this.stack[this.stack.length-1];if(!j.depth){let ee=this.sliceSerialize(O).length;j.depth=ee}}function A(){this.data.setextHeadingSlurpLineEnding=!0}function R(O){let j=this.stack[this.stack.length-1];j.depth=this.sliceSerialize(O).codePointAt(0)===61?1:2}function W(){this.data.setextHeadingSlurpLineEnding=void 0}function $(O){let ee=this.stack[this.stack.length-1].children,se=ee[ee.length-1];(!se||se.type!=="text")&&(se=Be(),se.position={start:Zr(O.start),end:void 0},ee.push(se)),this.stack.push(se)}function E(O){let j=this.stack.pop();j.value+=this.sliceSerialize(O),j.position.end=Zr(O.end)}function fe(O){let j=this.stack[this.stack.length-1];if(this.data.atHardBreak){let ee=j.children[j.children.length-1];ee.position.end=Zr(O.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(j.type)&&($.call(this,O),E.call(this,O))}function B(){this.data.atHardBreak=!0}function _(){let O=this.resume(),j=this.stack[this.stack.length-1];j.value=O}function I(){let O=this.resume(),j=this.stack[this.stack.length-1];j.value=O}function D(){let O=this.resume(),j=this.stack[this.stack.length-1];j.value=O}function F(){let O=this.stack[this.stack.length-1];if(this.data.inReference){let j=this.data.referenceType||"shortcut";O.type+="Reference",O.referenceType=j,delete O.url,delete O.title}else delete O.identifier,delete O.label;this.data.referenceType=void 0}function V(){let O=this.stack[this.stack.length-1];if(this.data.inReference){let j=this.data.referenceType||"shortcut";O.type+="Reference",O.referenceType=j,delete O.url,delete O.title}else delete O.identifier,delete O.label;this.data.referenceType=void 0}function P(O){let j=this.sliceSerialize(O),ee=this.stack[this.stack.length-2];ee.label=au(j),ee.identifier=at(j).toLowerCase()}function U(){let O=this.stack[this.stack.length-1],j=this.resume(),ee=this.stack[this.stack.length-1];if(this.data.inReference=!0,ee.type==="link"){let se=O.children;ee.children=se}else ee.alt=j}function d(){let O=this.resume(),j=this.stack[this.stack.length-1];j.url=O}function G(){let O=this.resume(),j=this.stack[this.stack.length-1];j.title=O}function X(){this.data.inReference=void 0}function y(){this.data.referenceType="collapsed"}function ie(O){let j=this.resume(),ee=this.stack[this.stack.length-1];ee.label=j,ee.identifier=at(this.sliceSerialize(O)).toLowerCase(),this.data.referenceType="full"}function me(O){this.data.characterReferenceType=O.type}function _e(O){let j=this.sliceSerialize(O),ee=this.data.characterReferenceType,se;ee?(se=su(j,ee==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):se=no(j);let ve=this.stack[this.stack.length-1];ve.value+=se}function k(O){let j=this.stack.pop();j.position.end=Zr(O.end)}function g(O){E.call(this,O);let j=this.stack[this.stack.length-1];j.url=this.sliceSerialize(O)}function S(O){E.call(this,O);let j=this.stack[this.stack.length-1];j.url="mailto:"+this.sliceSerialize(O)}function C(){return{type:"blockquote",children:[]}}function M(){return{type:"code",lang:null,meta:null,value:""}}function Y(){return{type:"inlineCode",value:""}}function de(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function ye(){return{type:"emphasis",children:[]}}function xe(){return{type:"heading",depth:0,children:[]}}function At(){return{type:"break"}}function nt(){return{type:"html",value:""}}function bt(){return{type:"image",title:null,url:"",alt:null}}function or(){return{type:"link",title:null,url:"",children:[]}}function Dr(O){return{type:"list",ordered:O.type==="listOrdered",start:null,spread:O._spread,children:[]}}function Rt(O){return{type:"listItem",spread:O._spread,checked:null,children:[]}}function Ht(){return{type:"paragraph",children:[]}}function Et(){return{type:"strong",children:[]}}function Be(){return{type:"text",value:""}}function Pr(){return{type:"thematicBreak"}}}function Zr(e){return{line:e.line,column:e.column,offset:e.offset}}function $S(e,t){let r=-1;for(;++r<t.length;){let n=t[r];Array.isArray(n)?$S(e,n):AB(e,n)}}function AB(e,t){let r;for(r in t)if(BS.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 LS(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+Yr({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+Yr({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+Yr({start:t.start,end:t.end})+") is still open")}function Bs(e){let t=this;t.parser=r;function r(n){return lm(n,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}var jS=$e(US(),1),$s=Object.assign(Kn(Error),{eval:Kn(EvalError),range:Kn(RangeError),reference:Kn(ReferenceError),syntax:Kn(SyntaxError),type:Kn(TypeError),uri:Kn(URIError)});function Kn(e){return t.displayName=e.displayName||e.name,t;function t(r,...n){let i=r&&(0,jS.default)(r,...n);return new e(i)}}var vu={}.hasOwnProperty,zS={yaml:"-",toml:"+"};function oo(e){let t=[],r=-1,n=Array.isArray(e)?e:e?[e]:["yaml"];for(;++r<n.length;)t[r]=EB(n[r]);return t}function EB(e){let t=e;if(typeof t=="string"){if(!vu.call(zS,t))throw $s("Missing matter definition for `%s`",t);t={type:t,marker:zS[t]}}else if(typeof t!="object")throw $s("Expected matter to be an object, not `%j`",t);if(!vu.call(t,"type"))throw $s("Missing `type` in matter `%j`",t);if(!vu.call(t,"fence")&&!vu.call(t,"marker"))throw $s("Missing `marker` or `fence` in matter `%j`",t);return t}function fm(e){let t=oo(e),r={},n=-1;for(;++n<t.length;){let i=t[n],o=cm(i,"open").charCodeAt(0),s=CB(i),a=r[o];Array.isArray(a)?a.push(s):r[o]=[s]}return{flow:r}}function CB(e){let t=e.anywhere,r=e.type,n=r+"Fence",i=n+"Sequence",o=r+"Value",s={tokenize:c,partial:!0},a,l=0;return{tokenize:u,concrete:!0};function u(f,p,h){let m=this;return x;function x(R){let W=m.now();return W.column===1&&(W.line===1||t)&&(a=cm(e,"open"),l=0,R===a.charCodeAt(l))?(f.enter(r),f.enter(n),f.enter(i),v(R)):h(R)}function v(R){return l===a.length?(f.exit(i),J(R)?(f.enter("whitespace"),w(R)):T(R)):R===a.charCodeAt(l++)?(f.consume(R),v):h(R)}function w(R){return J(R)?(f.consume(R),w):(f.exit("whitespace"),T(R))}function T(R){return H(R)?(f.exit(n),f.enter("lineEnding"),f.consume(R),f.exit("lineEnding"),a=cm(e,"close"),l=0,f.attempt(s,A,b)):h(R)}function b(R){return R===null||H(R)?q(R):(f.enter(o),z(R))}function z(R){return R===null||H(R)?(f.exit(o),q(R)):(f.consume(R),z)}function q(R){return R===null?h(R):(f.enter("lineEnding"),f.consume(R),f.exit("lineEnding"),f.attempt(s,A,b))}function A(R){return f.exit(r),p(R)}}function c(f,p,h){let m=0;return x;function x(b){return b===a.charCodeAt(m)?(f.enter(n),f.enter(i),v(b)):h(b)}function v(b){return m===a.length?(f.exit(i),J(b)?(f.enter("whitespace"),w(b)):T(b)):b===a.charCodeAt(m++)?(f.consume(b),v):h(b)}function w(b){return J(b)?(f.consume(b),w):(f.exit("whitespace"),T(b))}function T(b){return b===null||H(b)?(f.exit(n),p(b)):h(b)}}}function cm(e,t){return e.marker?qS(e.marker,t).repeat(3):qS(e.fence,t)}function qS(e,t){return typeof e=="string"?e:e[t]}function hm(e){let t=oo(e),r={},n={},i=-1;for(;++i<t.length;){let o=t[i];r[o.type]=TB(o),n[o.type]=_B,n[o.type+"Value"]=IB}return{enter:r,exit:n}}function TB(e){return t;function t(r){this.enter({type:e.type,value:""},r),this.buffer()}}function _B(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 IB(e){this.config.enter.data.call(this,e),this.config.exit.data.call(this,e)}function mm(e){let t=[],r={},n=oo(e),i=-1;for(;++i<n.length;){let o=n[i];r[o.type]=OB(o);let s=pm(o,"open");t.push({atBreak:!0,character:s.charAt(0),after:kn(s.charAt(1))})}return{unsafe:t,handlers:r}}function OB(e){let t=pm(e,"open"),r=pm(e,"close");return n;function n(i){return t+(i.value?`
|
|
89
|
+
`+i.value:"")+`
|
|
90
|
+
`+r}}function pm(e,t){return e.marker?HS(e.marker,t).repeat(3):HS(e.fence,t)}function HS(e,t){return typeof e=="string"?e:e[t]}var MB="yaml";function Us(e){let t=this,r=e||MB,n=t.data(),i=n.micromarkExtensions||(n.micromarkExtensions=[]),o=n.fromMarkdownExtensions||(n.fromMarkdownExtensions=[]),s=n.toMarkdownExtensions||(n.toMarkdownExtensions=[]);i.push(fm(r)),o.push(hm(r)),s.push(mm(r))}var WS=typeof self=="object"?self:globalThis,DB=(e,t)=>{let r=(i,o)=>(e.set(o,i),i),n=i=>{if(e.has(i))return e.get(i);let[o,s]=t[i];switch(o){case 0:case-1:return r(s,i);case 1:{let a=r([],i);for(let l of s)a.push(n(l));return a}case 2:{let a=r({},i);for(let[l,u]of s)a[n(l)]=n(u);return a}case 3:return r(new Date(s),i);case 4:{let{source:a,flags:l}=s;return r(new RegExp(a,l),i)}case 5:{let a=r(new Map,i);for(let[l,u]of s)a.set(n(l),n(u));return a}case 6:{let a=r(new Set,i);for(let l of s)a.add(n(l));return a}case 7:{let{name:a,message:l}=s;return r(new WS[a](l),i)}case 8:return r(BigInt(s),i);case"BigInt":return r(Object(BigInt(s)),i)}return r(new WS[o](s),i)};return n},xm=e=>DB(new Map,e)(0);var so="",{toString:PB}={},{keys:NB}=Object,Hs=e=>{let t=typeof e;if(t!=="object"||!e)return[0,t];let r=PB.call(e).slice(8,-1);switch(r){case"Array":return[1,so];case"Object":return[2,so];case"Date":return[3,so];case"RegExp":return[4,so];case"Map":return[5,so];case"Set":return[6,so]}return r.includes("Array")?[1,r]:r.includes("Error")?[7,r]:[2,r]},Cu=([e,t])=>e===0&&(t==="function"||t==="symbol"),FB=(e,t,r,n)=>{let i=(s,a)=>{let l=n.push(s)-1;return r.set(a,l),l},o=s=>{if(r.has(s))return r.get(s);let[a,l]=Hs(s);switch(a){case 0:{let c=s;switch(l){case"bigint":a=8,c=s.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+l);c=null;break;case"undefined":return i([-1],s)}return i([a,c],s)}case 1:{if(l)return i([l,[...s]],s);let c=[],f=i([a,c],s);for(let p of s)c.push(o(p));return f}case 2:{if(l)switch(l){case"BigInt":return i([l,s.toString()],s);case"Boolean":case"Number":case"String":return i([l,s.valueOf()],s)}if(t&&"toJSON"in s)return o(s.toJSON());let c=[],f=i([a,c],s);for(let p of NB(s))(e||!Cu(Hs(s[p])))&&c.push([o(p),o(s[p])]);return f}case 3:return i([a,s.toISOString()],s);case 4:{let{source:c,flags:f}=s;return i([a,{source:c,flags:f}],s)}case 5:{let c=[],f=i([a,c],s);for(let[p,h]of s)(e||!(Cu(Hs(p))||Cu(Hs(h))))&&c.push([o(p),o(h)]);return f}case 6:{let c=[],f=i([a,c],s);for(let p of s)(e||!Cu(Hs(p)))&&c.push(o(p));return f}}let{message:u}=s;return i([a,{name:l,message:u}],s)};return o},bm=(e,{json:t,lossy:r}={})=>{let n=[];return FB(!(t||r),!!t,new Map,n)(e),n};var Xr=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?xm(bm(e,t)):structuredClone(e):(e,t)=>xm(bm(e,t));var Tu=VS("end"),_u=VS("start");function VS(e){return t;function t(r){let n=r&&r.position&&r.position[e]||{};if(typeof n.line=="number"&&n.line>0&&typeof n.column=="number"&&n.column>0)return{line:n.line,column:n.column,offset:typeof n.offset=="number"&&n.offset>-1?n.offset:void 0}}}function Ws(e){let t=_u(e),r=Tu(e);if(t&&r)return{start:t,end:r}}var ei=["ariaDescribedBy","ariaLabel","ariaLabelledBy"],wm={ancestors:{tbody:["table"],td:["table"],th:["table"],thead:["table"],tfoot:["table"],tr:["table"]},attributes:{a:[...ei,"dataFootnoteBackref","dataFootnoteRef",["className","data-footnote-backref"],"href"],blockquote:["cite"],code:[["className",/^language-./]],del:["cite"],div:["itemScope","itemType"],dl:[...ei],h2:[["className","sr-only"]],img:[...ei,"longDesc","src"],input:[["disabled",!0],["type","checkbox"]],ins:["cite"],li:[["className","task-list-item"]],ol:[...ei,["className","contains-task-list"]],q:["cite"],section:["dataFootnotes",["className","footnotes"]],source:["srcSet"],summary:[...ei],table:[...ei],ul:[...ei,["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 Kr={}.hasOwnProperty;function vm(e,t){let r={type:"root",children:[]},n={schema:t?{...wm,...t}:wm,stack:[]},i=JS(n,e);return i&&(Array.isArray(i)?i.length===1?r=i[0]:r.children=i:r=i),r}function JS(e,t){if(t&&typeof t=="object"){let r=t;switch(typeof r.type=="string"?r.type:""){case"comment":return RB(e,r);case"doctype":return LB(e,r);case"element":return BB(e,r);case"root":return $B(e,r);case"text":return UB(e,r);default:}}}function RB(e,t){if(e.schema.allowComments){let r=typeof t.value=="string"?t.value:"",n=r.indexOf("-->"),o={type:"comment",value:n<0?r:r.slice(0,n)};return Vs(o,t),o}}function LB(e,t){if(e.schema.allowDoctypes){let r={type:"doctype"};return Vs(r,t),r}}function BB(e,t){let r=typeof t.tagName=="string"?t.tagName:"";e.stack.push(r);let n=QS(e,t.children),i=jB(e,t.properties);e.stack.pop();let o=!1;if(r&&r!=="*"&&(!e.schema.tagNames||e.schema.tagNames.includes(r))&&(o=!0,e.schema.ancestors&&Kr.call(e.schema.ancestors,r))){let a=e.schema.ancestors[r],l=-1;for(o=!1;++l<a.length;)e.stack.includes(a[l])&&(o=!0)}if(!o)return e.schema.strip&&!e.schema.strip.includes(r)?n:void 0;let s={type:"element",tagName:r,properties:i,children:n};return Vs(s,t),s}function $B(e,t){let n={type:"root",children:QS(e,t.children)};return Vs(n,t),n}function UB(e,t){let n={type:"text",value:typeof t.value=="string"?t.value:""};return Vs(n,t),n}function QS(e,t){let r=[];if(Array.isArray(t)){let n=t,i=-1;for(;++i<n.length;){let o=JS(e,n[i]);o&&(Array.isArray(o)?r.push(...o):r.push(o))}}return r}function jB(e,t){let r=e.stack[e.stack.length-1],n=e.schema.attributes,i=e.schema.required,o=n&&Kr.call(n,r)?n[r]:void 0,s=n&&Kr.call(n,"*")?n["*"]:void 0,a=t&&typeof t=="object"?t:{},l={},u;for(u in a)if(Kr.call(a,u)){let c=a[u],f=YS(e,GS(o,u),u,c);f==null&&(f=YS(e,GS(s,u),u,c)),f!=null&&(l[u]=f)}if(i&&Kr.call(i,r)){let c=i[r];for(u in c)Kr.call(c,u)&&!Kr.call(l,u)&&(l[u]=c[u])}return l}function YS(e,t,r,n){return t?Array.isArray(n)?zB(e,t,r,n):ZS(e,t,r,n):void 0}function zB(e,t,r,n){let i=-1,o=[];for(;++i<n.length;){let s=ZS(e,t,r,n[i]);(typeof s=="number"||typeof s=="string")&&o.push(s)}return o}function ZS(e,t,r,n){if(!(typeof n!="boolean"&&typeof n!="number"&&typeof n!="string")&&qB(e,r,n)){if(typeof t=="object"&&t.length>1){let i=!1,o=0;for(;++o<t.length;){let s=t[o];if(s&&typeof s=="object"&&"flags"in s){if(s.test(String(n))){i=!0;break}}else if(s===n){i=!0;break}}if(!i)return}return e.schema.clobber&&e.schema.clobberPrefix&&e.schema.clobber.includes(r)?e.schema.clobberPrefix+n:n}}function qB(e,t,r){let n=e.schema.protocols&&Kr.call(e.schema.protocols,t)?e.schema.protocols[t]:void 0;if(!n||n.length===0)return!0;let i=String(r),o=i.indexOf(":"),s=i.indexOf("?"),a=i.indexOf("#"),l=i.indexOf("/");if(o<0||l>-1&&o>l||s>-1&&o>s||a>-1&&o>a)return!0;let u=-1;for(;++u<n.length;){let c=n[u];if(o===c.length&&i.slice(0,c.length)===c)return!0}return!1}function Vs(e,t){let r=Ws(t);t.data&&(e.data=Xr(t.data)),r&&(e.position=r)}function GS(e,t){let r,n=-1;if(e)for(;++n<e.length;){let i=e[n],o=typeof i=="string"?i:i[0];if(o===t)return i;o==="data*"&&(r=i)}if(t.length>4&&t.slice(0,4).toLowerCase()==="data")return r}function XS(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 KS(e,t){let r={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,r),[e.applyData(t,r),{type:"text",value:`
|
|
91
|
+
`}]}function ek(e,t){let r=t.value?t.value+`
|
|
92
|
+
`:"",n={};t.lang&&(n.className=["language-"+t.lang]);let i={type:"element",tagName:"code",properties:n,children:[{type:"text",value:r}]};return t.meta&&(i.data={meta:t.meta}),e.patch(t,i),i=e.applyData(t,i),i={type:"element",tagName:"pre",properties:{},children:[i]},e.patch(t,i),i}function tk(e,t){let r={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function rk(e,t){let r={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function nk(e,t){let r=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",n=String(t.identifier).toUpperCase(),i=Mt(n.toLowerCase()),o=e.footnoteOrder.indexOf(n),s,a=e.footnoteCounts.get(n);a===void 0?(a=0,e.footnoteOrder.push(n),s=e.footnoteOrder.length):s=o+1,a+=1,e.footnoteCounts.set(n,a);let l={type:"element",tagName:"a",properties:{href:"#"+r+"fn-"+i,id:r+"fnref-"+i+(a>1?"-"+a:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(s)}]};e.patch(t,l);let u={type:"element",tagName:"sup",properties:{},children:[l]};return e.patch(t,u),e.applyData(t,u)}function ik(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 ok(e,t){if(e.options.allowDangerousHtml){let r={type:"raw",value:t.value};return e.patch(t,r),e.applyData(t,r)}}function Iu(e,t){let r=t.referenceType,n="]";if(r==="collapsed"?n+="[]":r==="full"&&(n+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return[{type:"text",value:"!["+t.alt+n}];let i=e.all(t),o=i[0];o&&o.type==="text"?o.value="["+o.value:i.unshift({type:"text",value:"["});let s=i[i.length-1];return s&&s.type==="text"?s.value+=n:i.push({type:"text",value:n}),i}function sk(e,t){let r=String(t.identifier).toUpperCase(),n=e.definitionById.get(r);if(!n)return Iu(e,t);let i={src:Mt(n.url||""),alt:t.alt};n.title!==null&&n.title!==void 0&&(i.title=n.title);let o={type:"element",tagName:"img",properties:i,children:[]};return e.patch(t,o),e.applyData(t,o)}function ak(e,t){let r={src:Mt(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 lk(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 uk(e,t){let r=String(t.identifier).toUpperCase(),n=e.definitionById.get(r);if(!n)return Iu(e,t);let i={href:Mt(n.url||"")};n.title!==null&&n.title!==void 0&&(i.title=n.title);let o={type:"element",tagName:"a",properties:i,children:e.all(t)};return e.patch(t,o),e.applyData(t,o)}function ck(e,t){let r={href:Mt(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 fk(e,t,r){let n=e.all(t),i=r?HB(r):pk(t),o={},s=[];if(typeof t.checked=="boolean"){let c=n[0],f;c&&c.type==="element"&&c.tagName==="p"?f=c:(f={type:"element",tagName:"p",properties:{},children:[]},n.unshift(f)),f.children.length>0&&f.children.unshift({type:"text",value:" "}),f.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),o.className=["task-list-item"]}let a=-1;for(;++a<n.length;){let c=n[a];(i||a!==0||c.type!=="element"||c.tagName!=="p")&&s.push({type:"text",value:`
|
|
93
|
+
`}),c.type==="element"&&c.tagName==="p"&&!i?s.push(...c.children):s.push(c)}let l=n[n.length-1];l&&(i||l.type!=="element"||l.tagName!=="p")&&s.push({type:"text",value:`
|
|
94
|
+
`});let u={type:"element",tagName:"li",properties:o,children:s};return e.patch(t,u),e.applyData(t,u)}function HB(e){let t=!1;if(e.type==="list"){t=e.spread||!1;let r=e.children,n=-1;for(;!t&&++n<r.length;)t=pk(r[n])}return t}function pk(e){let t=e.spread;return t??e.children.length>1}function hk(e,t){let r={},n=e.all(t),i=-1;for(typeof t.start=="number"&&t.start!==1&&(r.start=t.start);++i<n.length;){let s=n[i];if(s.type==="element"&&s.tagName==="li"&&s.properties&&Array.isArray(s.properties.className)&&s.properties.className.includes("task-list-item")){r.className=["contains-task-list"];break}}let o={type:"element",tagName:t.ordered?"ol":"ul",properties:r,children:e.wrap(n,!0)};return e.patch(t,o),e.applyData(t,o)}function mk(e,t){let r={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function dk(e,t){let r={type:"root",children:e.wrap(e.all(t))};return e.patch(t,r),e.applyData(t,r)}function gk(e,t){let r={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function yk(e,t){let r=e.all(t),n=r.shift(),i=[];if(n){let s={type:"element",tagName:"thead",properties:{},children:e.wrap([n],!0)};e.patch(t.children[0],s),i.push(s)}if(r.length>0){let s={type:"element",tagName:"tbody",properties:{},children:e.wrap(r,!0)},a=_u(t.children[1]),l=Tu(t.children[t.children.length-1]);a&&l&&(s.position={start:a,end:l}),i.push(s)}let o={type:"element",tagName:"table",properties:{},children:e.wrap(i,!0)};return e.patch(t,o),e.applyData(t,o)}function xk(e,t,r){let n=r?r.children:void 0,o=(n?n.indexOf(t):1)===0?"th":"td",s=r&&r.type==="table"?r.align:void 0,a=s?s.length:t.children.length,l=-1,u=[];for(;++l<a;){let f=t.children[l],p={},h=s?s[l]:void 0;h&&(p.align=h);let m={type:"element",tagName:o,properties:p,children:[]};f&&(m.children=e.all(f),e.patch(f,m),m=e.applyData(f,m)),u.push(m)}let c={type:"element",tagName:"tr",properties:{},children:e.wrap(u,!0)};return e.patch(t,c),e.applyData(t,c)}function bk(e,t){let r={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function vk(e){let t=String(e),r=/\r?\n|\r/g,n=r.exec(t),i=0,o=[];for(;n;)o.push(wk(t.slice(i,n.index),i>0,!0),n[0]),i=n.index+n[0].length,n=r.exec(t);return o.push(wk(t.slice(i),i>0,!1)),o.join("")}function wk(e,t,r){let n=0,i=e.length;if(t){let o=e.codePointAt(n);for(;o===9||o===32;)n++,o=e.codePointAt(n)}if(r){let o=e.codePointAt(i-1);for(;o===9||o===32;)i--,o=e.codePointAt(i-1)}return i>n?e.slice(n,i):""}function Sk(e,t){let r={type:"text",value:vk(String(t.value))};return e.patch(t,r),e.applyData(t,r)}function kk(e,t){let r={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,r),e.applyData(t,r)}var Ak={blockquote:XS,break:KS,code:ek,delete:tk,emphasis:rk,footnoteReference:nk,heading:ik,html:ok,imageReference:sk,image:ak,inlineCode:lk,linkReference:uk,link:ck,listItem:fk,list:hk,paragraph:mk,root:dk,strong:gk,table:yk,tableCell:bk,tableRow:xk,text:Sk,thematicBreak:kk,toml:Ou,yaml:Ou,definition:Ou,footnoteDefinition:Ou};function Ou(){}function WB(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 VB(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function Ek(e){let t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",r=e.options.footnoteBackContent||WB,n=e.options.footnoteBackLabel||VB,i=e.options.footnoteLabel||"Footnotes",o=e.options.footnoteLabelTagName||"h2",s=e.options.footnoteLabelProperties||{className:["sr-only"]},a=[],l=-1;for(;++l<e.footnoteOrder.length;){let u=e.footnoteById.get(e.footnoteOrder[l]);if(!u)continue;let c=e.all(u),f=String(u.identifier).toUpperCase(),p=Mt(f.toLowerCase()),h=0,m=[],x=e.footnoteCounts.get(f);for(;x!==void 0&&++h<=x;){m.length>0&&m.push({type:"text",value:" "});let T=typeof r=="string"?r:r(l,h);typeof T=="string"&&(T={type:"text",value:T}),m.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+p+(h>1?"-"+h:""),dataFootnoteBackref:"",ariaLabel:typeof n=="string"?n:n(l,h),className:["data-footnote-backref"]},children:Array.isArray(T)?T:[T]})}let v=c[c.length-1];if(v&&v.type==="element"&&v.tagName==="p"){let T=v.children[v.children.length-1];T&&T.type==="text"?T.value+=" ":v.children.push({type:"text",value:" "}),v.children.push(...m)}else c.push(...m);let w={type:"element",tagName:"li",properties:{id:t+"fn-"+p},children:e.wrap(c,!0)};e.patch(u,w),a.push(w)}if(a.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:o,properties:{...Xr(s),id:"footnote-label"},children:[{type:"text",value:i}]},{type:"text",value:`
|
|
95
|
+
`},{type:"element",tagName:"ol",properties:{},children:e.wrap(a,!0)},{type:"text",value:`
|
|
96
|
+
`}]}}var Sm={}.hasOwnProperty,YB={};function Tk(e,t){let r=t||YB,n=new Map,i=new Map,o=new Map,s={...Ak,...r.handlers},a={all:u,applyData:JB,definitionById:n,footnoteById:i,footnoteCounts:o,footnoteOrder:[],handlers:s,one:l,options:r,patch:GB,wrap:ZB};return Ds(e,function(c){if(c.type==="definition"||c.type==="footnoteDefinition"){let f=c.type==="definition"?n:i,p=String(c.identifier).toUpperCase();f.has(p)||f.set(p,c)}}),a;function l(c,f){let p=c.type,h=a.handlers[p];if(Sm.call(a.handlers,p)&&h)return h(a,c,f);if(a.options.passThrough&&a.options.passThrough.includes(p)){if("children"in c){let{children:x,...v}=c,w=Xr(v);return w.children=a.all(c),w}return Xr(c)}return(a.options.unknownHandler||QB)(a,c,f)}function u(c){let f=[];if("children"in c){let p=c.children,h=-1;for(;++h<p.length;){let m=a.one(p[h],c);if(m){if(h&&p[h-1].type==="break"&&(!Array.isArray(m)&&m.type==="text"&&(m.value=Ck(m.value)),!Array.isArray(m)&&m.type==="element")){let x=m.children[0];x&&x.type==="text"&&(x.value=Ck(x.value))}Array.isArray(m)?f.push(...m):f.push(m)}}}return f}}function GB(e,t){e.position&&(t.position=Ws(e))}function JB(e,t){let r=t;if(e&&e.data){let n=e.data.hName,i=e.data.hChildren,o=e.data.hProperties;if(typeof n=="string")if(r.type==="element")r.tagName=n;else{let s="children"in r?r.children:[r];r={type:"element",tagName:n,properties:{},children:s}}r.type==="element"&&o&&Object.assign(r.properties,Xr(o)),"children"in r&&r.children&&i!==null&&i!==void 0&&(r.children=i)}return r}function QB(e,t){let r=t.data||{},n="value"in t&&!(Sm.call(r,"hProperties")||Sm.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 ZB(e,t){let r=[],n=-1;for(t&&r.push({type:"text",value:`
|
|
97
|
+
`});++n<e.length;)n&&r.push({type:"text",value:`
|
|
98
|
+
`}),r.push(e[n]);return t&&e.length>0&&r.push({type:"text",value:`
|
|
99
|
+
`}),r}function Ck(e){let t=0,r=e.charCodeAt(t);for(;r===9||r===32;)t++,r=e.charCodeAt(t);return e.slice(t)}function km(e,t){let r=Tk(e,t),n=r.one(e,void 0),i=Ek(r),o=Array.isArray(n)?{type:"root",children:n}:n||{type:"root",children:[]};return i&&("children"in o,o.children.push({type:"text",value:`
|
|
100
|
+
`},i)),o}var _k=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"];var kr=class{constructor(t,r,n){this.property=t,this.normal=r,n&&(this.space=n)}};kr.prototype.property={};kr.prototype.normal={};kr.prototype.space=null;function Am(e,t){let r={},n={},i=-1;for(;++i<e.length;)Object.assign(r,e[i].property),Object.assign(n,e[i].normal);return new kr(r,n,t)}function Ys(e){return e.toLowerCase()}var ut=class{constructor(t,r){this.property=t,this.attribute=r}};ut.prototype.space=null;ut.prototype.boolean=!1;ut.prototype.booleanish=!1;ut.prototype.overloadedBoolean=!1;ut.prototype.number=!1;ut.prototype.commaSeparated=!1;ut.prototype.spaceSeparated=!1;ut.prototype.commaOrSpaceSeparated=!1;ut.prototype.mustUseProperty=!1;ut.prototype.defined=!1;var Gs={};ue(Gs,{boolean:()=>ne,booleanish:()=>De,commaOrSpaceSeparated:()=>yt,commaSeparated:()=>en,number:()=>L,overloadedBoolean:()=>Em,spaceSeparated:()=>be});var XB=0,ne=ti(),De=ti(),Em=ti(),L=ti(),be=ti(),en=ti(),yt=ti();function ti(){return 2**++XB}var Cm=Object.keys(Gs),ri=class extends ut{constructor(t,r,n,i){let o=-1;if(super(t,r),Ik(this,"space",i),typeof n=="number")for(;++o<Cm.length;){let s=Cm[o];Ik(this,Cm[o],(n&Gs[s])===Gs[s])}}};ri.prototype.defined=!0;function Ik(e,t,r){r&&(e[t]=r)}var KB={}.hasOwnProperty;function Dt(e){let t={},r={},n;for(n in e.properties)if(KB.call(e.properties,n)){let i=e.properties[n],o=new ri(n,e.transform(e.attributes||{},n),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(n)&&(o.mustUseProperty=!0),t[n]=o,r[Ys(n)]=n,r[Ys(o.attribute)]=n}return new kr(t,r,e.space)}var Tm=Dt({space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()},properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}});var _m=Dt({space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()},properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function Mu(e,t){return t in e?e[t]:t}function Du(e,t){return Mu(e,t.toLowerCase())}var Im=Dt({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:Du,properties:{xmlns:null,xmlnsXLink:null}});var Om=Dt({transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()},properties:{ariaActiveDescendant:null,ariaAtomic:De,ariaAutoComplete:null,ariaBusy:De,ariaChecked:De,ariaColCount:L,ariaColIndex:L,ariaColSpan:L,ariaControls:be,ariaCurrent:null,ariaDescribedBy:be,ariaDetails:null,ariaDisabled:De,ariaDropEffect:be,ariaErrorMessage:null,ariaExpanded:De,ariaFlowTo:be,ariaGrabbed:De,ariaHasPopup:null,ariaHidden:De,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:be,ariaLevel:L,ariaLive:null,ariaModal:De,ariaMultiLine:De,ariaMultiSelectable:De,ariaOrientation:null,ariaOwns:be,ariaPlaceholder:null,ariaPosInSet:L,ariaPressed:De,ariaReadOnly:De,ariaRelevant:null,ariaRequired:De,ariaRoleDescription:be,ariaRowCount:L,ariaRowIndex:L,ariaRowSpan:L,ariaSelected:De,ariaSetSize:L,ariaSort:null,ariaValueMax:L,ariaValueMin:L,ariaValueNow:L,ariaValueText:null,role:null}});var Ok=Dt({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:Du,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:en,acceptCharset:be,accessKey:be,action:null,allow:null,allowFullScreen:ne,allowPaymentRequest:ne,allowUserMedia:ne,alt:null,as:null,async:ne,autoCapitalize:null,autoComplete:be,autoFocus:ne,autoPlay:ne,blocking:be,capture:null,charSet:null,checked:ne,cite:null,className:be,cols:L,colSpan:null,content:null,contentEditable:De,controls:ne,controlsList:be,coords:L|en,crossOrigin:null,data:null,dateTime:null,decoding:null,default:ne,defer:ne,dir:null,dirName:null,disabled:ne,download:Em,draggable:De,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:ne,formTarget:null,headers:be,height:L,hidden:ne,high:L,href:null,hrefLang:null,htmlFor:be,httpEquiv:be,id:null,imageSizes:null,imageSrcSet:null,inert:ne,inputMode:null,integrity:null,is:null,isMap:ne,itemId:null,itemProp:be,itemRef:be,itemScope:ne,itemType:be,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:ne,low:L,manifest:null,max:null,maxLength:L,media:null,method:null,min:null,minLength:L,multiple:ne,muted:ne,name:null,nonce:null,noModule:ne,noValidate:ne,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:ne,optimum:L,pattern:null,ping:be,placeholder:null,playsInline:ne,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:ne,referrerPolicy:null,rel:be,required:ne,reversed:ne,rows:L,rowSpan:L,sandbox:be,scope:null,scoped:ne,seamless:ne,selected:ne,shadowRootClonable:ne,shadowRootDelegatesFocus:ne,shadowRootMode:null,shape:null,size:L,sizes:null,slot:null,span:L,spellCheck:De,src:null,srcDoc:null,srcLang:null,srcSet:null,start:L,step:null,style:null,tabIndex:L,target:null,title:null,translate:null,type:null,typeMustMatch:ne,useMap:null,value:De,width:L,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:be,axis:null,background:null,bgColor:null,border:L,borderColor:null,bottomMargin:L,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:ne,declare:ne,event:null,face:null,frame:null,frameBorder:null,hSpace:L,leftMargin:L,link:null,longDesc:null,lowSrc:null,marginHeight:L,marginWidth:L,noResize:ne,noHref:ne,noShade:ne,noWrap:ne,object:null,profile:null,prompt:null,rev:null,rightMargin:L,rules:null,scheme:null,scrolling:De,standby:null,summary:null,text:null,topMargin:L,valueType:null,version:null,vAlign:null,vLink:null,vSpace:L,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:ne,disableRemotePlayback:ne,prefix:null,property:null,results:L,security:null,unselectable:null}});var Mk=Dt({space:"svg",attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},transform:Mu,properties:{about:yt,accentHeight:L,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:L,amplitude:L,arabicForm:null,ascent:L,attributeName:null,attributeType:null,azimuth:L,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:L,by:null,calcMode:null,capHeight:L,className:be,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:L,diffuseConstant:L,direction:null,display:null,dur:null,divisor:L,dominantBaseline:null,download:ne,dx:null,dy:null,edgeMode:null,editable:null,elevation:L,enableBackground:null,end:null,event:null,exponent:L,externalResourcesRequired:null,fill:null,fillOpacity:L,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:en,g2:en,glyphName:en,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:L,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:L,horizOriginX:L,horizOriginY:L,id:null,ideographic:L,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:L,k:L,k1:L,k2:L,k3:L,k4:L,kernelMatrix:yt,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:L,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:L,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:L,overlineThickness:L,paintOrder:null,panose1:null,path:null,pathLength:L,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:be,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:L,pointsAtY:L,pointsAtZ:L,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:yt,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:yt,rev:yt,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:yt,requiredFeatures:yt,requiredFonts:yt,requiredFormats:yt,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:L,specularExponent:L,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:L,strikethroughThickness:L,string:null,stroke:null,strokeDashArray:yt,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:L,strokeOpacity:L,strokeWidth:null,style:null,surfaceScale:L,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:yt,tabIndex:L,tableValues:null,target:null,targetX:L,targetY:L,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:yt,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:L,underlineThickness:L,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:L,values:null,vAlphabetic:L,vMathematical:L,vectorEffect:null,vHanging:L,vIdeographic:L,version:null,vertAdvY:L,vertOriginX:L,vertOriginY:L,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:L,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}});var e$=/^data[-\w.:]+$/i,Dk=/-[a-z]/g,t$=/[A-Z]/g;function Mm(e,t){let r=Ys(t),n=t,i=ut;if(r in e.normal)return e.property[e.normal[r]];if(r.length>4&&r.slice(0,4)==="data"&&e$.test(t)){if(t.charAt(4)==="-"){let o=t.slice(5).replace(Dk,n$);n="data"+o.charAt(0).toUpperCase()+o.slice(1)}else{let o=t.slice(4);if(!Dk.test(o)){let s=o.replace(t$,r$);s.charAt(0)!=="-"&&(s="-"+s),t="data"+s}}i=ri}return new i(n,t)}function r$(e){return"-"+e.toLowerCase()}function n$(e){return e.charAt(1).toUpperCase()}var Pk=Am([_m,Tm,Im,Om,Ok],"html"),Pu=Am([_m,Tm,Im,Om,Mk],"svg");var i$=/["&'<>`]/g,o$=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,s$=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,a$=/[|\\{}()[\]^$+*?.]/g,Nk=new WeakMap;function Fk(e,t){if(e=e.replace(t.subset?l$(t.subset):i$,n),t.subset||t.escapeOnly)return e;return e.replace(o$,r).replace(s$,n);function r(i,o,s){return t.format((i.charCodeAt(0)-55296)*1024+i.charCodeAt(1)-56320+65536,s.charCodeAt(o+2),t)}function n(i,o,s){return t.format(i.charCodeAt(0),s.charCodeAt(o+1),t)}}function l$(e){let t=Nk.get(e);return t||(t=u$(e),Nk.set(e,t)),t}function u$(e){let t=[],r=-1;for(;++r<e.length;)t.push(e[r].replace(a$,"\\$&"));return new RegExp("(?:"+t.join("|")+")","g")}var c$=/[\dA-Fa-f]/;function Rk(e,t,r){let n="&#x"+e.toString(16).toUpperCase();return r&&t&&!c$.test(String.fromCharCode(t))?n:n+";"}var f$=/\d/;function Lk(e,t,r){let n="&#"+String(e);return r&&t&&!f$.test(String.fromCharCode(t))?n:n+";"}var Bk=["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 Nu={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 $k=["cent","copy","divide","gt","lt","not","para","times"];var Uk={}.hasOwnProperty,Dm={},Fu;for(Fu in Nu)Uk.call(Nu,Fu)&&(Dm[Nu[Fu]]=Fu);var p$=/[^\dA-Za-z]/;function jk(e,t,r,n){let i=String.fromCharCode(e);if(Uk.call(Dm,i)){let o=Dm[i],s="&"+o;return r&&Bk.includes(o)&&!$k.includes(o)&&(!n||t&&t!==61&&p$.test(String.fromCharCode(t)))?s:s+";"}return""}function zk(e,t,r){let n=Rk(e,t,r.omitOptionalSemicolons),i;if((r.useNamedReferences||r.useShortestReferences)&&(i=jk(e,t,r.omitOptionalSemicolons,r.attribute)),(r.useShortestReferences||!i)&&r.useShortestReferences){let o=Lk(e,t,r.omitOptionalSemicolons);o.length<n.length&&(n=o)}return i&&(!r.useShortestReferences||i.length<n.length)?i:n}function Ar(e,t){return Fk(e,Object.assign({format:zk},t))}var h$=/^>|^->|<!--|-->|--!>|<!-$/g,m$=[">"],d$=["<",">"];function qk(e,t,r,n){return n.settings.bogusComments?"<?"+Ar(e.value,Object.assign({},n.settings.characterReferences,{subset:m$}))+">":"<!--"+e.value.replace(h$,i)+"-->";function i(o){return Ar(o,Object.assign({},n.settings.characterReferences,{subset:d$}))}}function Hk(e,t,r,n){return"<!"+(n.settings.upperDoctype?"DOCTYPE":"doctype")+(n.settings.tightDoctype?"":" ")+"html>"}function Wk(e,t){let r=t||{};return(e[e.length-1]===""?[...e,""]:e).join((r.padRight?" ":"")+","+(r.padLeft===!1?"":" ")).trim()}function Vk(e){return e.join(" ").trim()}var g$=/[ \t\n\f\r]/g;function ni(e){return typeof e=="object"?e.type==="text"?Yk(e.value):!1:Yk(e)}function Yk(e){return e.replace(g$,"")===""}var Le=Gk(1),Pm=Gk(-1),y$=[];function Gk(e){return t;function t(r,n,i){let o=r?r.children:y$,s=(n||0)+e,a=o[s];if(!i)for(;a&&ni(a);)s+=e,a=o[s];return a}}var x$={}.hasOwnProperty;function Ru(e){return t;function t(r,n,i){return x$.call(e,r.tagName)&&e[r.tagName](r,n,i)}}var Js=Ru({body:w$,caption:Nm,colgroup:Nm,dd:A$,dt:k$,head:Nm,html:b$,li:S$,optgroup:E$,option:C$,p:v$,rp:Jk,rt:Jk,tbody:_$,td:Qk,tfoot:I$,th:Qk,thead:T$,tr:O$});function Nm(e,t,r){let n=Le(r,t,!0);return!n||n.type!=="comment"&&!(n.type==="text"&&ni(n.value.charAt(0)))}function b$(e,t,r){let n=Le(r,t);return!n||n.type!=="comment"}function w$(e,t,r){let n=Le(r,t);return!n||n.type!=="comment"}function v$(e,t,r){let n=Le(r,t);return n?n.type==="element"&&(n.tagName==="address"||n.tagName==="article"||n.tagName==="aside"||n.tagName==="blockquote"||n.tagName==="details"||n.tagName==="div"||n.tagName==="dl"||n.tagName==="fieldset"||n.tagName==="figcaption"||n.tagName==="figure"||n.tagName==="footer"||n.tagName==="form"||n.tagName==="h1"||n.tagName==="h2"||n.tagName==="h3"||n.tagName==="h4"||n.tagName==="h5"||n.tagName==="h6"||n.tagName==="header"||n.tagName==="hgroup"||n.tagName==="hr"||n.tagName==="main"||n.tagName==="menu"||n.tagName==="nav"||n.tagName==="ol"||n.tagName==="p"||n.tagName==="pre"||n.tagName==="section"||n.tagName==="table"||n.tagName==="ul"):!r||!(r.type==="element"&&(r.tagName==="a"||r.tagName==="audio"||r.tagName==="del"||r.tagName==="ins"||r.tagName==="map"||r.tagName==="noscript"||r.tagName==="video"))}function S$(e,t,r){let n=Le(r,t);return!n||n.type==="element"&&n.tagName==="li"}function k$(e,t,r){let n=Le(r,t);return!!(n&&n.type==="element"&&(n.tagName==="dt"||n.tagName==="dd"))}function A$(e,t,r){let n=Le(r,t);return!n||n.type==="element"&&(n.tagName==="dt"||n.tagName==="dd")}function Jk(e,t,r){let n=Le(r,t);return!n||n.type==="element"&&(n.tagName==="rp"||n.tagName==="rt")}function E$(e,t,r){let n=Le(r,t);return!n||n.type==="element"&&n.tagName==="optgroup"}function C$(e,t,r){let n=Le(r,t);return!n||n.type==="element"&&(n.tagName==="option"||n.tagName==="optgroup")}function T$(e,t,r){let n=Le(r,t);return!!(n&&n.type==="element"&&(n.tagName==="tbody"||n.tagName==="tfoot"))}function _$(e,t,r){let n=Le(r,t);return!n||n.type==="element"&&(n.tagName==="tbody"||n.tagName==="tfoot")}function I$(e,t,r){return!Le(r,t)}function O$(e,t,r){let n=Le(r,t);return!n||n.type==="element"&&n.tagName==="tr"}function Qk(e,t,r){let n=Le(r,t);return!n||n.type==="element"&&(n.tagName==="td"||n.tagName==="th")}var Zk=Ru({body:P$,colgroup:N$,head:D$,html:M$,tbody:F$});function M$(e){let t=Le(e,-1);return!t||t.type!=="comment"}function D$(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 P$(e){let t=Le(e,-1,!0);return!t||t.type!=="comment"&&!(t.type==="text"&&ni(t.value.charAt(0)))&&!(t.type==="element"&&(t.tagName==="meta"||t.tagName==="link"||t.tagName==="script"||t.tagName==="style"||t.tagName==="template"))}function N$(e,t,r){let n=Pm(r,t),i=Le(e,-1,!0);return r&&n&&n.type==="element"&&n.tagName==="colgroup"&&Js(n,r.children.indexOf(n),r)?!1:!!(i&&i.type==="element"&&i.tagName==="col")}function F$(e,t,r){let n=Pm(r,t),i=Le(e,-1);return r&&n&&n.type==="element"&&(n.tagName==="thead"||n.tagName==="tbody")&&Js(n,r.children.indexOf(n),r)?!1:!!(i&&i.type==="element"&&i.tagName==="tr")}var Lu={name:[[`
|
|
101
|
+
\f\r &/=>`.split(""),`
|
|
102
|
+
\f\r "&'/=>\``.split("")],[`\0
|
|
103
|
+
\f\r "&'/<=>`.split(""),`\0
|
|
104
|
+
\f\r "&'/<=>\``.split("")]],unquoted:[[`
|
|
105
|
+
\f\r &>`.split(""),`\0
|
|
106
|
+
\f\r "&'<=>\``.split("")],[`\0
|
|
107
|
+
\f\r "&'<=>\``.split(""),`\0
|
|
108
|
+
\f\r "&'<=>\``.split("")]],single:[["&'".split(""),"\"&'`".split("")],["\0&'".split(""),"\0\"&'`".split("")]],double:[['"&'.split(""),"\"&'`".split("")],['\0"&'.split(""),"\0\"&'`".split("")]]};function Xk(e,t,r,n){let i=n.schema,o=i.space==="svg"?!1:n.settings.omitOptionalTags,s=i.space==="svg"?n.settings.closeEmptyElements:n.settings.voids.includes(e.tagName.toLowerCase()),a=[],l;i.space==="html"&&e.tagName==="svg"&&(n.schema=Pu);let u=R$(n,e.properties),c=n.all(i.space==="html"&&e.tagName==="template"?e.content:e);return n.schema=i,c&&(s=!1),(u||!o||!Zk(e,t,r))&&(a.push("<",e.tagName,u?" "+u:""),s&&(i.space==="svg"||n.settings.closeSelfClosing)&&(l=u.charAt(u.length-1),(!n.settings.tightSelfClosing||l==="/"||l&&l!=='"'&&l!=="'")&&a.push(" "),a.push("/")),a.push(">")),a.push(c),!s&&(!o||!Js(e,t,r))&&a.push("</"+e.tagName+">"),a.join("")}function R$(e,t){let r=[],n=-1,i;if(t){for(i in t)if(t[i]!==null&&t[i]!==void 0){let o=L$(e,i,t[i]);o&&r.push(o)}}for(;++n<r.length;){let o=e.settings.tightAttributes?r[n].charAt(r[n].length-1):void 0;n!==r.length-1&&o!=='"'&&o!=="'"&&(r[n]+=" ")}return r.join("")}function L$(e,t,r){let n=Mm(e.schema,t),i=e.settings.allowParseErrors&&e.schema.space==="html"?0:1,o=e.settings.allowDangerousCharacters?0:1,s=e.quote,a;if(n.overloadedBoolean&&(r===n.attribute||r==="")?r=!0:(n.boolean||n.overloadedBoolean&&typeof r!="string")&&(r=!!r),r==null||r===!1||typeof r=="number"&&Number.isNaN(r))return"";let l=Ar(n.attribute,Object.assign({},e.settings.characterReferences,{subset:Lu.name[i][o]}));return r===!0||(r=Array.isArray(r)?(n.commaSeparated?Wk:Vk)(r,{padLeft:!e.settings.tightCommaSeparatedLists}):String(r),e.settings.collapseEmptyAttributes&&!r)?l:(e.settings.preferUnquoted&&(a=Ar(r,Object.assign({},e.settings.characterReferences,{attribute:!0,subset:Lu.unquoted[i][o]}))),a!==r&&(e.settings.quoteSmart&&Ki(r,s)>Ki(r,e.alternative)&&(s=e.alternative),a=s+Ar(r,Object.assign({},e.settings.characterReferences,{subset:(s==="'"?Lu.single:Lu.double)[i][o],attribute:!0}))+s),l+(a&&"="+a))}var B$=["<","&"];function Bu(e,t,r,n){return r&&r.type==="element"&&(r.tagName==="script"||r.tagName==="style")?e.value:Ar(e.value,Object.assign({},n.settings.characterReferences,{subset:B$}))}function Kk(e,t,r,n){return n.settings.allowDangerousHtml?e.value:Bu(e,t,r,n)}function eA(e,t,r,n){return n.all(e)}var tA=ru("type",{invalid:$$,unknown:U$,handlers:{comment:qk,doctype:Hk,element:Xk,raw:Kk,root:eA,text:Bu}});function $$(e){throw new Error("Expected node, not `"+e+"`")}function U$(e){let t=e;throw new Error("Cannot compile unknown node `"+t.type+"`")}var j$={},z$={},q$=[];function Fm(e,t){let r=t||j$,n=r.quote||'"',i=n==='"'?"'":'"';if(n!=='"'&&n!=="'")throw new Error("Invalid quote `"+n+"`, expected `'` or `\"`");return{one:H$,all:W$,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||_k,characterReferences:r.characterReferences||z$,closeSelfClosing:r.closeSelfClosing||!1,closeEmptyElements:r.closeEmptyElements||!1},schema:r.space==="svg"?Pu:Pk,quote:n,alternative:i}.one(Array.isArray(e)?{type:"root",children:e}:e,void 0,void 0)}function H$(e,t,r){return tA(e,t,r,this)}function W$(e){let t=[],r=e&&e.children||q$,n=-1;for(;++n<r.length;)t[n]=this.one(r[n],n,e);return t.join("")}var V$={};function Qs(e){let t=this,{handlers:r,sanitize:n,...i}=e||V$,o=!1,s;typeof n=="boolean"?o=!n:n&&(s=n),t.compiler=a;function a(l,u){let c=km(l,{handlers:r,allowDangerousHtml:o}),f=o?c:vm(c,s),p=Fm(f,{...i,allowDangerousHtml:o});return u.extname&&(u.extname=".html"),l&&l.type==="root"&&p&&/[^\r\n]/.test(p.charAt(p.length-1))?p+`
|
|
109
|
+
`:p}}function Zs(e){let t=this;t.compiler=r;function r(n){return Dh(n,{...t.data("settings"),...e,extensions:t.data("toMarkdownExtensions")||[]})}}function Y$(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 $m(e,t){return Array(t+1).join(e)}function G$(e){return e.replace(/^\n*/,"")}function J$(e){for(var t=e.length;t>0&&e[t-1]===`
|
|
110
|
+
`;)t--;return e.substring(0,t)}var Q$=["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 Um(e){return jm(e,Q$)}var iA=["AREA","BASE","BR","COL","COMMAND","EMBED","HR","IMG","INPUT","KEYGEN","LINK","META","PARAM","SOURCE","TRACK","WBR"];function oA(e){return jm(e,iA)}function Z$(e){return aA(e,iA)}var sA=["A","TABLE","THEAD","TBODY","TFOOT","TH","TD","IFRAME","SCRIPT","AUDIO","VIDEO"];function X$(e){return jm(e,sA)}function K$(e){return aA(e,sA)}function jm(e,t){return t.indexOf(e.nodeName)>=0}function aA(e,t){return e.getElementsByTagName&&t.some(function(r){return e.getElementsByTagName(r).length})}var ct={};ct.paragraph={filter:"p",replacement:function(e){return`
|
|
111
|
+
|
|
112
|
+
`+e+`
|
|
113
|
+
|
|
114
|
+
`}};ct.lineBreak={filter:"br",replacement:function(e,t,r){return r.br+`
|
|
115
|
+
`}};ct.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 i=$m(n===1?"=":"-",e.length);return`
|
|
116
|
+
|
|
117
|
+
`+e+`
|
|
118
|
+
`+i+`
|
|
119
|
+
|
|
120
|
+
`}else return`
|
|
121
|
+
|
|
122
|
+
`+$m("#",n)+" "+e+`
|
|
123
|
+
|
|
124
|
+
`}};ct.blockquote={filter:"blockquote",replacement:function(e){return e=e.replace(/^\n+|\n+$/g,""),e=e.replace(/^/gm,"> "),`
|
|
125
|
+
|
|
126
|
+
`+e+`
|
|
127
|
+
|
|
128
|
+
`}};ct.list={filter:["ul","ol"],replacement:function(e,t){var r=t.parentNode;return r.nodeName==="LI"&&r.lastElementChild===t?`
|
|
129
|
+
`+e:`
|
|
130
|
+
|
|
131
|
+
`+e+`
|
|
132
|
+
|
|
133
|
+
`}};ct.listItem={filter:"li",replacement:function(e,t,r){e=e.replace(/^\n+/,"").replace(/\n+$/,`
|
|
134
|
+
`).replace(/\n/gm,`
|
|
135
|
+
`);var n=r.bulletListMarker+" ",i=t.parentNode;if(i.nodeName==="OL"){var o=i.getAttribute("start"),s=Array.prototype.indexOf.call(i.children,t);n=(o?Number(o)+s:s+1)+". "}return n+e+(t.nextSibling&&!/\n$/.test(e)?`
|
|
136
|
+
`:"")}};ct.indentedCodeBlock={filter:function(e,t){return t.codeBlockStyle==="indented"&&e.nodeName==="PRE"&&e.firstChild&&e.firstChild.nodeName==="CODE"},replacement:function(e,t,r){return`
|
|
137
|
+
|
|
138
|
+
`+t.firstChild.textContent.replace(/\n/g,`
|
|
139
|
+
`)+`
|
|
140
|
+
|
|
141
|
+
`}};ct.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")||"",i=(n.match(/language-(\S+)/)||[null,""])[1],o=t.firstChild.textContent,s=r.fence.charAt(0),a=3,l=new RegExp("^"+s+"{3,}","gm"),u;u=l.exec(o);)u[0].length>=a&&(a=u[0].length+1);var c=$m(s,a);return`
|
|
142
|
+
|
|
143
|
+
`+c+i+`
|
|
144
|
+
`+o.replace(/\n$/,"")+`
|
|
145
|
+
`+c+`
|
|
146
|
+
|
|
147
|
+
`}};ct.horizontalRule={filter:"hr",replacement:function(e,t,r){return`
|
|
148
|
+
|
|
149
|
+
`+r.hr+`
|
|
150
|
+
|
|
151
|
+
`}};ct.inlineLink={filter:function(e,t){return t.linkStyle==="inlined"&&e.nodeName==="A"&&e.getAttribute("href")},replacement:function(e,t){var r=t.getAttribute("href");r&&(r=r.replace(/([()])/g,"\\$1"));var n=$u(t.getAttribute("title"));return n&&(n=' "'+n.replace(/"/g,'\\"')+'"'),"["+e+"]("+r+n+")"}};ct.referenceLink={filter:function(e,t){return t.linkStyle==="referenced"&&e.nodeName==="A"&&e.getAttribute("href")},replacement:function(e,t,r){var n=t.getAttribute("href"),i=$u(t.getAttribute("title"));i&&(i=' "'+i+'"');var o,s;switch(r.linkReferenceStyle){case"collapsed":o="["+e+"][]",s="["+e+"]: "+n+i;break;case"shortcut":o="["+e+"]",s="["+e+"]: "+n+i;break;default:var a=this.references.length+1;o="["+e+"]["+a+"]",s="["+a+"]: "+n+i}return this.references.push(s),o},references:[],append:function(e){var t="";return this.references.length&&(t=`
|
|
152
|
+
|
|
153
|
+
`+this.references.join(`
|
|
154
|
+
`)+`
|
|
155
|
+
|
|
156
|
+
`,this.references=[]),t}};ct.emphasis={filter:["em","i"],replacement:function(e,t,r){return e.trim()?r.emDelimiter+e+r.emDelimiter:""}};ct.strong={filter:["strong","b"],replacement:function(e,t,r){return e.trim()?r.strongDelimiter+e+r.strongDelimiter:""}};ct.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}};ct.image={filter:"img",replacement:function(e,t){var r=$u(t.getAttribute("alt")),n=t.getAttribute("src")||"",i=$u(t.getAttribute("title")),o=i?' "'+i+'"':"";return n?"":""}};function $u(e){return e?e.replace(/(\n+\s*)+/g,`
|
|
157
|
+
`):""}function lA(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])}lA.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=Rm(this.array,e,this.options))||(t=Rm(this._keep,e,this.options))||(t=Rm(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 Rm(e,t,r){for(var n=0;n<e.length;n++){var i=e[n];if(e3(i,t,r))return i}}function e3(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 t3(e){var t=e.element,r=e.isBlock,n=e.isVoid,i=e.isPre||function(f){return f.nodeName==="PRE"};if(!(!t.firstChild||i(t))){for(var o=null,s=!1,a=null,l=rA(a,t,i);l!==t;){if(l.nodeType===3||l.nodeType===4){var u=l.data.replace(/[ \r\n\t]+/g," ");if((!o||/ $/.test(o.data))&&!s&&u[0]===" "&&(u=u.substr(1)),!u){l=Lm(l);continue}l.data=u,o=l}else if(l.nodeType===1)r(l)||l.nodeName==="BR"?(o&&(o.data=o.data.replace(/ $/,"")),o=null,s=!1):n(l)||i(l)?(o=null,s=!0):o&&(s=!1);else{l=Lm(l);continue}var c=rA(a,l,i);a=l,l=c}o&&(o.data=o.data.replace(/ $/,""),o.data||Lm(o))}}function Lm(e){var t=e.nextSibling||e.parentNode;return e.parentNode.removeChild(e),t}function rA(e,t,r){return e&&e.parentNode===t||r(t)?t.nextSibling||t.parentNode:t.firstChild||t.nextSibling||t.parentNode}var zm=typeof window<"u"?window:{};function r3(){var e=zm.DOMParser,t=!1;try{new e().parseFromString("","text/html")&&(t=!0)}catch{}return t}function n3(){var e=function(){};return i3()?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 i3(){var e=!1;try{document.implementation.createHTMLDocument("").open()}catch{zm.ActiveXObject&&(e=!0)}return e}var o3=r3()?zm.DOMParser:n3();function s3(e,t){var r;if(typeof e=="string"){var n=a3().parseFromString('<x-turndown id="turndown-root">'+e+"</x-turndown>","text/html");r=n.getElementById("turndown-root")}else r=e.cloneNode(!0);return t3({element:r,isBlock:Um,isVoid:oA,isPre:t.preformattedCode?l3:null}),r}var Bm;function a3(){return Bm=Bm||new o3,Bm}function l3(e){return e.nodeName==="PRE"||e.nodeName==="CODE"}function u3(e,t){return e.isBlock=Um(e),e.isCode=e.nodeName==="CODE"||e.parentNode.isCode,e.isBlank=c3(e),e.flankingWhitespace=f3(e,t),e}function c3(e){return!oA(e)&&!X$(e)&&/^\s*$/i.test(e.textContent)&&!Z$(e)&&!K$(e)}function f3(e,t){if(e.isBlock||t.preformattedCode&&e.isCode)return{leading:"",trailing:""};var r=p3(e.textContent);return r.leadingAscii&&nA("left",e,t)&&(r.leading=r.leadingNonAscii),r.trailingAscii&&nA("right",e,t)&&(r.trailing=r.trailingNonAscii),{leading:r.leading,trailing:r.trailing}}function p3(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 nA(e,t,r){var n,i,o;return e==="left"?(n=t.previousSibling,i=/ $/):(n=t.nextSibling,i=/^ /),n&&(n.nodeType===3?o=i.test(n.nodeValue):r.preformattedCode&&n.nodeName==="CODE"?o=!1:n.nodeType===1&&!Um(n)&&(o=i.test(n.textContent))),o}var h3=Array.prototype.reduce,m3=[[/\\/g,"\\\\"],[/\*/g,"\\*"],[/^-/g,"\\-"],[/^\+ /g,"\\+ "],[/^(=+)/g,"\\$1"],[/^(#{1,6}) /g,"\\$1 "],[/`/g,"\\`"],[/^~~~/g,"\\~~~"],[/\[/g,"\\["],[/\]/g,"\\]"],[/^>/g,"\\>"],[/_/g,"\\_"],[/^(\d+)\. /g,"$1\\. "]];function Uu(e){if(!(this instanceof Uu))return new Uu(e);var t={rules:ct,headingStyle:"setext",hr:"* * *",bulletListMarker:"*",codeBlockStyle:"indented",fence:"```",emDelimiter:"_",strongDelimiter:"**",linkStyle:"inlined",linkReferenceStyle:"full",br:" ",preformattedCode:!1,blankReplacement:function(r,n){return n.isBlock?`
|
|
158
|
+
|
|
159
|
+
`:""},keepReplacement:function(r,n){return n.isBlock?`
|
|
160
|
+
|
|
161
|
+
`+n.outerHTML+`
|
|
162
|
+
|
|
163
|
+
`:n.outerHTML},defaultReplacement:function(r,n){return n.isBlock?`
|
|
164
|
+
|
|
165
|
+
`+r+`
|
|
166
|
+
|
|
167
|
+
`:r}};this.options=Y$({},t,e),this.rules=new lA(this.options)}Uu.prototype={turndown:function(e){if(!y3(e))throw new TypeError(e+" is not a string, or an element/document/fragment node.");if(e==="")return"";var t=uA.call(this,new s3(e,this.options));return d3.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 m3.reduce(function(t,r){return t.replace(r[0],r[1])},e)}};function uA(e){var t=this;return h3.call(e.childNodes,function(r,n){n=new u3(n,t.options);var i="";return n.nodeType===3?i=n.isCode?n.nodeValue:t.escape(n.nodeValue):n.nodeType===1&&(i=g3.call(t,n)),cA(r,i)},"")}function d3(e){var t=this;return this.rules.forEach(function(r){typeof r.append=="function"&&(e=cA(e,r.append(t.options)))}),e.replace(/^[\t\r\n]+/,"").replace(/[\t\r\n\s]+$/,"")}function g3(e){var t=this.rules.forNode(e),r=uA.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 cA(e,t){var r=J$(e),n=G$(t),i=Math.max(e.length-r.length,t.length-n.length),o=`
|
|
168
|
+
|
|
169
|
+
`.substring(0,i);return r+o+n}function y3(e){return e!=null&&(typeof e=="string"||e.nodeType&&(e.nodeType===1||e.nodeType===9||e.nodeType===11))}var qm=Uu;var ju={};ue(ju,{gfm:()=>v3,highlightedCodeBlock:()=>pA,strikethrough:()=>hA,tables:()=>dA,taskListItems:()=>gA});var fA=/highlight-(?:text|source)-([a-z0-9]+)/;function pA(e){e.addRule("highlightedCodeBlock",{filter:function(t){var r=t.firstChild;return t.nodeName==="DIV"&&fA.test(t.className)&&r&&r.nodeName==="PRE"},replacement:function(t,r,n){var i=r.className||"",o=(i.match(fA)||[null,""])[1];return`
|
|
170
|
+
|
|
171
|
+
`+n.fence+o+`
|
|
172
|
+
`+r.firstChild.textContent+`
|
|
173
|
+
`+n.fence+`
|
|
174
|
+
|
|
175
|
+
`}})}function hA(e){e.addRule("strikethrough",{filter:["del","s","strike"],replacement:function(t){return"~"+t+"~"}})}var x3=Array.prototype.indexOf,b3=Array.prototype.every,ao={};ao.tableCell={filter:["th","td"],replacement:function(e,t){return mA(e,t)}};ao.tableRow={filter:"tr",replacement:function(e,t){var r="",n={left:":--",right:"--:",center:":-:"};if(Hm(t))for(var i=0;i<t.childNodes.length;i++){var o="---",s=(t.childNodes[i].getAttribute("align")||"").toLowerCase();s&&(o=n[s]||o),r+=mA(o,t.childNodes[i])}return`
|
|
176
|
+
`+e+(r?`
|
|
177
|
+
`+r:"")}};ao.table={filter:function(e){return e.nodeName==="TABLE"&&Hm(e.rows[0])},replacement:function(e){return e=e.replace(`
|
|
178
|
+
|
|
179
|
+
`,`
|
|
180
|
+
`),`
|
|
181
|
+
|
|
182
|
+
`+e+`
|
|
183
|
+
|
|
184
|
+
`}};ao.tableSection={filter:["thead","tbody","tfoot"],replacement:function(e){return e}};function Hm(e){var t=e.parentNode;return t.nodeName==="THEAD"||t.firstChild===e&&(t.nodeName==="TABLE"||w3(t))&&b3.call(e.childNodes,function(r){return r.nodeName==="TH"})}function w3(e){var t=e.previousSibling;return e.nodeName==="TBODY"&&(!t||t.nodeName==="THEAD"&&/^\s*$/i.test(t.textContent))}function mA(e,t){var r=x3.call(t.parentNode.childNodes,t),n=" ";return r===0&&(n="| "),n+e+" |"}function dA(e){e.keep(function(r){return r.nodeName==="TABLE"&&!Hm(r.rows[0])});for(var t in ao)e.addRule(t,ao[t])}function gA(e){e.addRule("taskListItems",{filter:function(t){return t.type==="checkbox"&&t.parentNode.nodeName==="LI"},replacement:function(t,r){return(r.checked?"[x]":"[ ]")+" "}})}function v3(e){e.use([pA,hA,dA,gA])}var zu=class e{static async createFromMarkdownString(t){let r=new e;return await r.updateFromMarkdownString(t),r}async updateFromMarkdownString(t){let r,n=await Xl().use(Bs).use(Ls).use(Us,["yaml","toml"]).use(Zs).use(Qs).use(()=>i=>{console.dir(i);let o=i.children.find(s=>s.type==="yaml");o&&(r=o.value)}).process(t);this.html=n.toString(),r?this.frontmatterData=await yA.yamlStringToObject(r):this.frontmatterData={}}};var Wm=class e{static async easyMarkdownToHtml(t){return(await new e().getMdParsedResultFromMarkdown(t)).html}constructor(){}async getMdParsedResultFromMarkdown(t){return await zu.createFromMarkdownString(t)}htmlToMarkdown(t){let r=new qm({headingStyle:"atx",codeBlockStyle:"fenced"});return r.use(ju.gfm),r.turndown(t)}};var uo={};ue(uo,{SmartRouter:()=>Zm});var kA=$e(SA(),1);var Vu=class{constructor(){}getAllAsObject(){let t=new URLSearchParams(window.location.search);return Object.fromEntries(t.entries())}setQueryParam(t,r,n="replace"){var i=new URLSearchParams(window.location.search);i.set(t,r),n==="push"?history.pushState(null,null,"?"+i.toString()):history.replaceState(null,null,"?"+i.toString())}deleteQueryParam(t,r="replace"){var n=new URLSearchParams(window.location.search);n.delete(t),r==="push"?history.pushState(null,null,"?"+n.toString()):history.replaceState(null,null,"?"+n.toString())}getQueryParam(t){return this.getAllAsObject()[t]}};var Zm=class e{constructor(t,r=""){this.options={debug:!1},this.queryParams=new Vu,this.routes=[],this.options={...this.options,...t},this.basePath=r,this.popstateListener=n=>{n.preventDefault(),this._handleRouteState()},window.addEventListener("popstate",this.popstateListener)}createSubRouter(t,r){let n=`${this.basePath}${t}`;return new e({...this.options,...r},n)}async pushUrl(t="/",r={}){let n=`${this.basePath}${t}`;n!==window.location.pathname?window.history.pushState(r,window.document.title,n):window.history.replaceState(r,window.document.title,n),await this._handleRouteState()}on(t,r){let n=`${this.basePath}${t}`,i={matchFunction:kA.match(n),handler:r};return this.routes.push(i),()=>{this.routes.splice(this.routes.indexOf(i),1)}}async _handleRouteState(){let t=window.location.pathname,r=this.routes.filter(n=>!!n.matchFunction(t));for(let n of r){let i=n.matchFunction(t);n.handler({...i.valueOf(),queryParams:this.queryParams.getAllAsObject()})}}destroy(){window.removeEventListener("popstate",this.popstateListener),this.routes=[]}};var co={};ue(co,{Smartstate:()=>Km,StateAction:()=>Xs,StatePart:()=>Ks});var Ju={};ue(Ju,{sha256FromString:()=>L3});var Gu={};ue(Gu,{Smartenv:()=>Xm});var EA=$e(AA(),1);var Xm=class{constructor(){this.loadedScripts=[]}async getEnvAwareModule(t){if(this.isNode)return await this.getSafeNodeModule(t.nodeModuleName);if(this.isBrowser)return await this.getSafeWebModule(t.webUrlArg,t.getFunction);console.error("platform for loading not supported by smartenv")}async getSafeNodeModule(t){if(!this.isNode){console.error(`You tried to load a node module in a wrong context: ${t}`);return}return new Function(`return import('${t}')`)()}async getSafeWebModule(t,r){if(!this.isBrowser){console.error("You tried to load a web module in a wrong context");return}if(this.loadedScripts.includes(t))return r();this.loadedScripts.push(t);let n=EA.defer();if(globalThis.importScripts)globalThis.importScripts(t),n.resolve();else{let i=document.createElement("script");i.onload=()=>{n.resolve()},i.src=t,document.head.appendChild(i)}return await n.promise,r()}get runtimeEnv(){return typeof process<"u"?"node":"browser"}get isBrowser(){return!this.isNode}get userAgent(){return this.isBrowser?navigator.userAgent:"undefined"}get isNode(){return this.runtimeEnv==="node"}get nodeVersion(){return process.version}get isCI(){return this.isNode?!!process.env.CI:!1}async isMacAsync(){return this.isNode?(await this.getSafeNodeModule("os")).platform()==="darwin":!1}async isWindowsAsync(){return this.isNode?(await this.getSafeNodeModule("os")).platform()==="win32":!1}async isLinuxAsync(){return this.isNode?(await this.getSafeNodeModule("os")).platform()==="linux":!1}async printEnv(){this.isNode?(console.log("running on NODE"),console.log("node version is "+this.nodeVersion)):(console.log("running on BROWSER"),console.log("browser is "+this.userAgent))}};var R3=e=>{let t=[],r=new DataView(e);for(let n=0;n<r.byteLength;n+=4){let o=r.getUint32(n).toString(16),s="00000000",a=(s+o).slice(-s.length);t.push(a)}return t.join("")},L3=async e=>{let t=new Gu.Smartenv;if(t.isBrowser){let r=new TextEncoder().encode(e),n=await crypto.subtle.digest("SHA-256",r);return R3(n)}else if(t.isNode)return await(await t.getSafeNodeModule("@pushrocks/smarthash")).sha256FromString(e)};var Xs=class{constructor(t,r){this.statePartRef=t,this.actionDef=r}trigger(t){this.statePartRef.dispatchAction(this,t)}};var Ks=class{constructor(t,r){this.state=new Se.rxjs.Subject,this.cumulativeDeferred=re.cumulativeDefer(),this.webStore=null,this.name=t,r&&(this.webStoreOptions=r)}async init(){if(this.webStoreOptions){this.webStore=new Hr.WebStore(this.webStoreOptions),await this.webStore.init();let t=await this.webStore.get(String(this.name));t&&(this.stateStore=t,this.notifyChange())}}getState(){return this.stateStore}async setState(t){return this.stateStore=t,this.notifyChange(),this.webStore&&await this.webStore.set(String(this.name),t),this.stateStore}notifyChange(){let t=r=>Ju.sha256FromString(Fe.stringify(r));this.stateStore&&this.lastStateNotificationPayloadHash&&t(this.stateStore)===this.lastStateNotificationPayloadHash||(this.lastStateNotificationPayloadHash=this.stateStore,this.state.next(this.stateStore))}notifyChangeCumulative(){setTimeout(()=>this.state.next(this.stateStore),0)}select(t){return t||(t=n=>n),this.state.pipe(Se.rxjs.ops.startWith(this.getState()),Se.rxjs.ops.map(n=>{try{return t(n)}catch{}}))}createAction(t){return new Xs(this,t)}async dispatchAction(t,r){await this.cumulativeDeferred.promise;let n=await t.actionDef(this,r);return await this.setState(n),this.getState()}async waitUntilPresent(t){let r=re.defer(),i=this.select(t).subscribe(async s=>{s&&r.resolve(s)}),o=await r.promise;return i.unsubscribe(),o}async stateSetup(t){let r=t(this);this.cumulativeDeferred.addPromise(r),this.setState(await r)}};var Km=class{constructor(){this.statePartMap={}}async getStatePart(t,r,n){if(this.statePartMap[t]){if(r&&(!n||n!=="soft"))throw new Error(`${t} already exists, yet you try to set an initial state again`);return this.statePartMap[t]}else{if(!r)throw new Error(`${t} does not yet exist, yet you don't provide an initial state`);return this.createStatePart(t,r,n)}}async createStatePart(t,r,n){let i=new Ks(t,n==="persistent"?{dbName:"smartstate",storeName:t}:null);await i.init();let o=i.getState();return await i.setState({...r,...o}),this.statePartMap[t]=i,i}};var fo={};ue(fo,{Smarturl:()=>ed});var ed=class e{static createFromUrl(t,r){let n=new URL(t),i={},o=[];n.search&&n.search.replace("?","").split("&").map(u=>{o.push({key:u.split("=")[0],value:u.split("=")[1]})});for(let u of o)i[u.key]=u.value;if(r?.searchParams)for(let u of Object.keys(r.searchParams))i[u]=r.searchParams[u];let s=n.pathname||"";if(Object.keys(i).length>0){s+="?";let u=!0;for(let c of Object.keys(i))u?u=!1:s+="&",s+=`${c}=${i[c]}`}let a={...n,href:n.href,origin:n.origin,protocol:n.protocol,username:n.username,password:n.password,host:n.host,hostname:n.hostname,port:n.port,path:s,pathname:n.pathname,search:n.search,searchParams:i,hash:n.hash};!a.port&&a.protocol==="https:"&&(a.port="443"),!a.port&&a.protocol==="http:"&&(a.port="80");let l=new e;return Object.assign(l,a),l}static createFromParsedUrl(t){let r=new e;return Object.assign(r,t),r}constructor(){this.searchParams={}}clone(){let t=new e;return Object.assign(t,this),t.searchParams={...this.searchParams},t}set(t,r){return this[t]=r,this}toString(){let t="";return this.username&&!this.password&&(t=`${this.username}@`),this.username&&this.password&&(t=`${this.username}:${this.password}@`),`${this.protocol}//${t}${this.hostname}:${this.port}${this.path}`}};var ho={};ue(ho,{CumulativeDeferred:()=>Zu,Deferred:()=>Qu,cumulativeDefer:()=>$3,defer:()=>po,getFirstTrueOrFalse:()=>H3,map:()=>z3,rejectedPromise:()=>j3,resolvedPromise:()=>U3,timeoutAndContinue:()=>q3,timeoutWrap:()=>CA});var Qu=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"})}},po=()=>new Qu;var Zu=class{constructor(){this.accumulatedPromises=[],this.deferred=po(),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)}},$3=()=>new Zu;var U3=e=>Promise.resolve(e),j3=e=>Promise.reject(e),z3=async(e,t)=>{let r=[],n=[];for(let i of e){let o=t(i);r.push(o),o.then(s=>{n.push(s)})}return await Promise.all(r),n},CA=async(e,t,r=!0)=>new Promise((n,i)=>{setTimeout(()=>{r?i(new Error("timeout")):n(null)},t),e.then(n,i)}),q3=async(e,t=6e4)=>CA(e,t,!1),H3=async e=>{let t=po();for(let r of e)r.then(n=>{n===!0&&t.resolve(!0)});return Promise.all(e).then(()=>{t.resolve(!1)}),t.promise};var tn=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 mo=class e extends tn{static createCompanyJsonLd(t){let r={"@context":"https://schema.org","@type":"Corporation",name:t.name,alternateName:t.name.replace(" GmbH",""),url:t.contact.website,logo:t.contact.logoUrl,contactPoint:{"@type":"ContactPoint",telephone:t.contact.phone,contactType:"customer service",areaServed:"DE",availableLanguage:["en","German"]},sameAs:[]};return t.contact.facebookUrl&&r.sameAs.push(t.contact.facebookUrl),t.contact.twitterUrl&&r.sameAs.push(t.contact.twitterUrl),new e(r)}static createNewsArticleJsonLd(t){let r={"@context":"https://schema.org","@type":"NewsArticle",mainEntityOfPage:{"@type":"WebPage","@id":window.location.href},headline:"Article headline",image:[t.featuredImageUrl],datePublished:new Date(t.timestamp).toISOString(),dateModified:new Date(t.timestamp).toISOString(),author:{"@type":"Person",name:`${t.author.firstName} ${t.author.surName}`},publisher:{"@type":"Organization",name:t.author.surName,logo:{"@type":"ImageObject",url:t.author.surName}},description:t.author.firstName};return new e(r)}static createProductJsonLd(t,r){let n={"@context":"https://schema.org","@type":"SoftwareApplication",name:t.name,description:t.description,operatingSystem:t.os,applicationCategory:t.category,offers:{"@type":"Offer",name:"User-based Plan",priceSpecification:{"@type":"PropertyValueSpecification",valueName:"Number of Users",valueRequired:!0,price:"4.99",priceCurrency:"EUR"}},publisher:this.createCompanyJsonLd(r).elementRef.textContent,screenshot:"https://www.social.io/screenshot.png",url:"https://www.social.io/"};return new e(n)}constructor(t){super();let r=document.createElement("script");r.type="application/ld+json",r.text=JSON.stringify(t),this.elementRef=r}};var xt=class e extends tn{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 go=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(mo.createCompanyJsonLd(t)),this.addTag(new xt("og:type","business.business")),this.addTag(new xt("og:title",t.name)),this.addTag(new xt("og:url",t.contact.website)),this.addTag(new xt("og:image",t.contact.logoUrl)),this.addTag(new xt("business:contact_data:street_address",`${t.contact.address.streetName} ${t.contact.address.houseNumber}`)),this.addTag(new xt("business:contact_data:locality",t.contact.address.postalCode)),this.addTag(new xt("business:contact_data:region",t.contact.address.city)),this.addTag(new xt("business:contact_data:postal_code",t.contact.address.postalCode)),this.addTag(new xt("business:contact_data:country_name",t.contact.address.country))}addNewsArticleInfo(t){this.addTag(mo.createNewsArticleJsonLd(t)),this.addTag(xt.createNewsArticleOgTags(t))}addProductInfo(t,r){this.addTag(mo.createProductJsonLd(t,r)),this.addTag(xt.createProductOgTags(t))}async enable(){this.title&&(document.title=this.title);for(let t of this.tags)t.appendToDom();this.state="enabled"}async disable(){for(let t of this.tags)t.removeFromDom();this.state="disabled"}};var qt=class extends tn{constructor(t,r){super();let n=document.createElement("meta");n.name=t,n.content=r,this.elementRef=n}};var Xu=class{constructor(){this.globalLevel=new go(this,"global"),this.baseLevel=new go(this,"base")}async setup(t){switch(this.globalLevel.addTag(new qt("google","notranslate")),this.globalLevel.addTag(new qt("revisit-after","1 days")),t.twitterHandle&&(this.globalLevel.addTag(new qt("twitter:card","summary_large_image")),this.globalLevel.addTag(new qt("twitter:site",t.twitterHandle)),this.globalLevel.addTag(new qt("twitter:creator",t.twitterHandle))),this.baseLevel.title=t.title,t.description&&this.baseLevel.addTag(new qt("description",t.description)),t.canonicalDomain&&this.baseLevel.addTag(new qt("canonical",t.canonicalDomain)),!0){case(t.ldCompany&&!t.ldProduct):this.baseLevel.addCompanyInfo(t.ldCompany);break;case!!t.ldProduct:this.baseLevel.addProductInfo(t.ldProduct,t.ldCompany);break}await this.globalLevel.enable(),this.activeLevel=this.baseLevel,await this.activeLevel.enable()}async setSubPageLevel(t){let r=new go(this,"subpage");return r.title=t.title,t.description&&r.addTag(new qt("description",t.description)),await this.activeLevel.disable(),this.activeLevel=r,await this.activeLevel.enable(),r}async revertToBaseLevel(){this.activeLevel!==this.baseLevel&&(await this.activeLevel.disable(),this.activeLevel=this.baseLevel,await this.activeLevel.enable())}};var Ku=class{constructor(t){this.tagManager=new Xu,this.readyDeferred=ho.defer(),this.readyForSmartssrDeferred=ho.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 Q3=$e(cf(),1);var yo=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 Z3=(e="uni")=>`${e}xxxxxxxxxxx`.replace(/[xy]/g,t=>{let r=Math.random()*16|0;return(t==="x"?r:r&3|8).toString(16)}),ec=class e{constructor(){this.fastMap=new yo,this.eventSubject=new Se.rxjs.Subject}addMappedUnique(t,r){this.fastMap.addToMap(t,r)}getMappedUnique(t){return this.fastMap.getByKey(t)}removeMappedUnique(t){let r=this.getMappedUnique(t)}add(t){for(let n of this.fastMap.getKeys())if(this.fastMap.getByKey(n)===t)return n;let r=Z3("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 tc=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 An.SmartMatch(t),n=!1;for(let i of this._stringArray)r.match(i)&&(n=!0);return n}checkIsEmpty(){return this._stringArray.length===0}getStringArray(){let t=[];for(let r of this._stringArray)t.push(r);return t}registerUntilTrue(t,r){let n=re.defer();return this._triggerUntilTrueFunctionArray.push(()=>{let i=t(this.getStringArray());return i===!0&&(r&&r(),n.resolve()),i}),this.notifyTrigger(),n.promise}notifyTrigger(){let t=this._triggerUntilTrueFunctionArray.filter(r=>!r());this._triggerUntilTrueFunctionArray=t}};var od=$e(nd(),1);var id={ObjectMap:ec,Stringmap:tc,FastMap:yo};var Cr={};ue(Cr,{cssForDesktop:()=>X3,cssForNotebook:()=>K3,cssForPhablet:()=>tU,cssForPhone:()=>rU,cssForTablet:()=>eU,desktop:()=>ad,notebook:()=>ld,phablet:()=>cd,phone:()=>fd,tablet:()=>ud});var ad=1600,ld=1240,ud=1024,cd=600,fd=400,X3=e=>oe(`
|
|
185
|
+
@container wccToolsViewport (min-width: ${ad}px) {
|
|
186
|
+
${e.cssText}
|
|
24
187
|
}
|
|
25
|
-
@media (min-width: ${
|
|
26
|
-
${
|
|
188
|
+
@media (min-width: ${ad}px) {
|
|
189
|
+
${e.cssText}
|
|
27
190
|
}
|
|
28
|
-
`),
|
|
29
|
-
@container wccToolsViewport (max-width: ${
|
|
30
|
-
${
|
|
191
|
+
`),K3=e=>oe(`
|
|
192
|
+
@container wccToolsViewport (max-width: ${ld}px) {
|
|
193
|
+
${e.cssText}
|
|
31
194
|
}
|
|
32
|
-
@media (max-width: ${
|
|
33
|
-
${
|
|
195
|
+
@media (max-width: ${ld}px) {
|
|
196
|
+
${e.cssText}
|
|
34
197
|
}
|
|
35
|
-
`),
|
|
36
|
-
@container wccToolsViewport (max-width: ${
|
|
37
|
-
${
|
|
198
|
+
`),eU=e=>oe(`
|
|
199
|
+
@container wccToolsViewport (max-width: ${ud}px) {
|
|
200
|
+
${e.cssText}
|
|
38
201
|
}
|
|
39
|
-
@media (max-width: ${
|
|
40
|
-
${
|
|
202
|
+
@media (max-width: ${ud}px) {
|
|
203
|
+
${e.cssText}
|
|
41
204
|
}
|
|
42
|
-
`),
|
|
43
|
-
@container wccToolsViewport (max-width: ${
|
|
44
|
-
${
|
|
205
|
+
`),tU=e=>oe(`
|
|
206
|
+
@container wccToolsViewport (max-width: ${cd}px) {
|
|
207
|
+
${e.cssText}
|
|
45
208
|
}
|
|
46
|
-
@media (max-width: ${
|
|
47
|
-
${
|
|
209
|
+
@media (max-width: ${cd}px) {
|
|
210
|
+
${e.cssText}
|
|
48
211
|
}
|
|
49
|
-
`),
|
|
50
|
-
@container wccToolsViewport (max-width: ${
|
|
51
|
-
${
|
|
212
|
+
`),rU=e=>oe(`
|
|
213
|
+
@container wccToolsViewport (max-width: ${fd}px) {
|
|
214
|
+
${e.cssText}
|
|
52
215
|
}
|
|
53
|
-
@media (max-width: ${
|
|
54
|
-
${
|
|
216
|
+
@media (max-width: ${fd}px) {
|
|
217
|
+
${e.cssText}
|
|
55
218
|
}
|
|
56
|
-
`);var
|
|
219
|
+
`);var rc=class{constructor(t){this.goBrightBoolean=!1,this.preferredColorSchemeMediaMatch=window.matchMedia("(prefers-color-scheme: light)"),this.themeObservable=new Se.rxjs.ReplaySubject(1),this.domtoolsRef=t,this.goBrightBoolean=this.preferredColorSchemeMediaMatch.matches,this.preferredColorSchemeMediaMatch.addEventListener("change",r=>{this.goBrightBoolean=r.matches,this.updateAllConnectedElements()}),this.updateAllConnectedElements()}async setGlobalStylesOnPurpose(){document.body&&document.body.style&&(document.body.style.background=this.goBrightBoolean?"#fff":"#000")}async updateAllConnectedElements(){this.themeObservable.next(this.goBrightBoolean)}goBright(){this.goBrightBoolean=!0,this.updateAllConnectedElements()}goDark(){this.goBrightBoolean=!1,this.updateAllConnectedElements()}toggleDarkBright(){this.goBrightBoolean=!this.goBrightBoolean,this.updateAllConnectedElements()}};var pd;(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"})(pd||(pd={}));var nc=class{constructor(t){this.domNode=t,this.mapCombosToHandlers=new Map,this.pressedKeys=new Set,this.keyEnum=pd,this.handleKeyDown=r=>{this.pressedKeys.add(r.keyCode),this.checkMatchingKeyboardSubjects(r)},this.handleKeyUp=r=>{this.pressedKeys.delete(r.keyCode)},this.startListening()}on(t){let r=new Se.rxjs.Subject;return this.registerKeys(t,r),r}triggerKeyPress(t){for(let r of t)this.pressedKeys.add(r);this.checkMatchingKeyboardSubjects();for(let r of t)this.pressedKeys.delete(r)}startListening(){this.domNode.addEventListener("keydown",this.handleKeyDown),this.domNode.addEventListener("keyup",this.handleKeyUp)}stopListening(){this.domNode.removeEventListener("keydown",this.handleKeyDown),this.domNode.removeEventListener("keyup",this.handleKeyUp)}clear(){this.stopListening(),this.mapCombosToHandlers.clear(),this.pressedKeys.clear()}checkMatchingKeyboardSubjects(t){this.mapCombosToHandlers.forEach((r,n)=>{this.areAllKeysPressed(n)&&r.next(t)})}areAllKeysPressed(t){let r=!0;return t.forEach(n=>{this.pressedKeys.has(n)||(r=!1)}),r}registerKeys(t,r){if(!this.mapCombosToHandlers.has(t))this.mapCombosToHandlers.set(t,r);else return this.mapCombosToHandlers.get(t)}};var Te=class e{static async setupDomTools(t={}){let r;if(!globalThis.deesDomTools&&!t.ignoreGlobal){globalThis.deesDomTools=new e(t),r=globalThis.deesDomTools;let n=()=>{(document.readyState==="interactive"||document.readyState==="complete")&&(r.elements.headElement=document.querySelector("head"),r.elements.bodyElement=document.querySelector("body"),r.domReady.resolve())};document.addEventListener("readystatechange",n),r.domToolsReady.resolve()}else t.ignoreGlobal?r=new e(t):r=globalThis.deesDomTools;return await r.domToolsReady.promise,r}static getGlobalDomToolsSync(){if(!globalThis.deesDomTools)throw new Error("You tried to access domtools synchronously too early");return globalThis.deesDomTools}constructor(t){this.elements={headElement:null,bodyElement:null},this.websetup=new Ku({metaObject:{title:"loading..."}}),this.smartstate=new co.Smartstate,this.domToolsStatePart=this.smartstate.getStatePart("domtools",{virtualViewport:"native",jwt:null}),this.router=new uo.SmartRouter({debug:!1}),this.convenience={typedrequest:It,smartdelay:he,smartjson:Fe,smarturl:fo},this.deesComms=new Bl.DeesComms,this.scroller=new od.default({}),this.themeManager=new rc(this),this.keyboard=new nc(document.body),this.domToolsReady=re.defer(),this.domReady=re.defer(),this.globalStylesReady=re.defer(),this.runOnceTrackerStringMap=new id.Stringmap,this.runOnceResultMap=new id.FastMap}async runOnce(t,r){let n=`${t}+runningCheck`;if(!this.runOnceTrackerStringMap.checkString(t)){this.runOnceTrackerStringMap.addString(t),this.runOnceTrackerStringMap.addString(n);let i=await r();this.runOnceResultMap.addToMap(t,i),this.runOnceTrackerStringMap.removeString(n)}return await this.runOnceTrackerStringMap.registerUntilTrue(i=>!i.includes(n),()=>this.runOnceResultMap.getByKey(t))}async setGlobalStyles(t){await this.domReady.promise;let r=document.createElement("style");r.type="text/css",r.appendChild(document.createTextNode(t)),this.elements.headElement.appendChild(r)}async setExternalScript(t){await this.domReady.promise;let r=re.defer(),n=document.createElement("script");n.src=t,n.addEventListener("load",function(){r.resolve()}),(document.head||document.body).append(n),await r.promise}async setExternalCss(t){let r=document.createElement("link");r.rel="stylesheet",r.crossOrigin="anonymous",r.href=t,document.head.append(r)}async setWebsiteInfo(t){await this.websetup.setup(t),await this.websetup.readyPromise}};var ic=(()=>{let e=navigator.userAgent.indexOf("Mac OS X")===-1?we``.cssText:"";return we`
|
|
57
220
|
/* width */
|
|
58
221
|
::-webkit-scrollbar {
|
|
59
222
|
width: 0px;
|
|
@@ -61,7 +224,7 @@ Minimum version required to store current data is: `+i+`.
|
|
|
61
224
|
body {
|
|
62
225
|
scrollbar-width: none;
|
|
63
226
|
}
|
|
64
|
-
`.cssText})(),
|
|
227
|
+
`.cssText})(),IA=we`
|
|
65
228
|
/*
|
|
66
229
|
@font-face {
|
|
67
230
|
font-family: 'Material Icons';
|
|
@@ -74,13 +237,13 @@ Minimum version required to store current data is: `+i+`.
|
|
|
74
237
|
/* global body styles */
|
|
75
238
|
body {
|
|
76
239
|
margin: 0px;
|
|
77
|
-
font-family: '
|
|
240
|
+
font-family: 'Geist Sans', 'Inter', sans-serif;
|
|
78
241
|
box-sizing: border-box;
|
|
79
242
|
}
|
|
80
243
|
|
|
81
244
|
/* scroll bar styles */
|
|
82
|
-
${
|
|
83
|
-
`.cssText;var
|
|
245
|
+
${oe(ic)}
|
|
246
|
+
`.cssText;var nU=we`
|
|
84
247
|
* {
|
|
85
248
|
transition: background 0.1s, color 0.1s;
|
|
86
249
|
box-sizing: border-box;
|
|
@@ -88,11 +251,11 @@ Minimum version required to store current data is: `+i+`.
|
|
|
88
251
|
|
|
89
252
|
:host {
|
|
90
253
|
box-sizing: border-box;
|
|
91
|
-
font-family: '
|
|
254
|
+
font-family: 'Geist Sans', 'Inter', sans-serif;
|
|
92
255
|
}
|
|
93
256
|
|
|
94
|
-
${
|
|
95
|
-
`,
|
|
257
|
+
${oe(ic)}
|
|
258
|
+
`,iU=Z`
|
|
96
259
|
<style>
|
|
97
260
|
* {
|
|
98
261
|
transition: background 0.1s, color 0.1s;
|
|
@@ -100,16 +263,16 @@ Minimum version required to store current data is: `+i+`.
|
|
|
100
263
|
}
|
|
101
264
|
|
|
102
265
|
:host {
|
|
103
|
-
font-family: '
|
|
266
|
+
font-family: 'Geist Sans', 'Inter', sans-serif;
|
|
104
267
|
}
|
|
105
268
|
|
|
106
|
-
${
|
|
269
|
+
${ic}
|
|
107
270
|
</style>
|
|
108
|
-
`,oE=async(t,e={})=>{let r=await he.setupDomTools(e);return r.runOnce("elementBasicSetup",async()=>{r.setGlobalStyles(qm)}),r};var Rc={};X(Rc,{cssGridColumns:()=>iE});var iE=(t,e)=>{let r="";for(let n=0;n<t;n++)r+=` calc((100%/${t}) - (${e*(t-1)}px/${t}))`;return r};var sE={smartdelay:se,smartpromise:Q,SweetScroll:No.default,smartstate:En,smartrx:de,smarturl:Tn,typedrequest:Xe};var Ar={css:te,unsafeCSS:V,LitElement:Ut,property:J};var $s=class{constructor(){this.domtoolsPromise=he.setupDomTools(),this.goBright=!1,this.bdVarTripletStore=[],this.cssGridColumns=(e,r)=>{let n="";for(let o=0;o<e;o++)n+=` calc((100%/${e}) - (${r*(e-1)}px/${e}))`;return Ar.unsafeCSS(n)},this.domtoolsPromise.then(async e=>{e.themeManager.themeObservable.subscribe(async r=>{this.goBright=r,await e.domReady.promise;for(let n of this.bdVarTripletStore)document.body.style.setProperty(n.cssVarName,this.goBright?n.brightValue:n.darkValue)})})}get defaultStyles(){return Ce.staticStyles}cssForDesktop(e){return V($t.cssForDesktop(e))}cssForNotebook(e){return V($t.cssForNotebook(e))}cssForTablet(e){return V($t.cssForTablet(e))}cssForPhablet(e){return V($t.cssForPhablet(e))}cssForPhone(e){return V($t.cssForPhone(e))}bdTheme(e,r){let n,o;he.getGlobalDomToolsSync()?o=he.getGlobalDomToolsSync().themeManager.goBrightBoolean?e:r:o=r;let i=this.bdVarTripletStore.find(s=>s.darkValue===r&&s.brightValue===e);if(i)n=i.cssVarName;else{let s={cssVarName:`--${Wm.uni()}`,brightValue:e,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 Ar.unsafeCSS(`var(${n}, ${o})`)}};var Mr={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},Ve=t=>(...e)=>({_$litDirective$:t,values:e}),Ir=class{constructor(e){}get _$AU(){return this._$AM._$AU}_$AT(e,r,n){this._$Ct=e,this._$AM=r,this._$Ci=n}_$AS(e,r){return this.update(e,r)}update(e,r){return this.render(...r)}};var Oo=class extends Ir{constructor(e){if(super(e),this.et=ge,e.type!==Mr.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(e){if(e===ge||e==null)return this.vt=void 0,this.et=e;if(e===xe)return e;if(typeof e!="string")throw Error(this.constructor.directiveName+"() called with a non-string value");if(e===this.et)return this.vt;this.et=e;let r=[e];return r.raw=r,this.vt={_$litType$:this.constructor.resultType,strings:r,values:[]}}};Oo.directiveName="unsafeHTML",Oo.resultType=1;var aE=Ve(Oo);var Ae=t=>(e,r)=>{r!==void 0?r.addInitializer(()=>{customElements.define(t,e)}):customElements.define(t,e)};var{D:uE}=_l,Vm=t=>t===null||typeof t!="object"&&typeof t!="function";var Gm=t=>t.strings===void 0,zm=()=>document.createComment(""),Jm=(t,e,r)=>{let n=t._$AA.parentNode,o=e===void 0?t._$AB:e._$AA;if(r===void 0){let i=n.insertBefore(zm(),o),s=n.insertBefore(zm(),o);r=new uE(i,s,t,t.options)}else{let i=r._$AB.nextSibling,s=r._$AM,a=s!==t;if(a){let u;r._$AQ?.(t),r._$AM=t,r._$AP!==void 0&&(u=t._$AU)!==s._$AU&&r._$AP(u)}if(i!==o||a){let u=r._$AA;for(;u!==i;){let c=u.nextSibling;n.insertBefore(u,o),u=c}}}return r},Ym=(t,e,r=t)=>(t._$AI(e,r),t);var Qm=t=>{t._$AR()};var Do=(t,e)=>{let r=t._$AN;if(r===void 0)return!1;for(let n of r)n._$AO?.(e,!1),Do(n,e);return!0},Os=t=>{let e,r;do{if((e=t._$AM)===void 0)break;r=e._$AN,r.delete(t),t=e}while(r?.size===0)},Zm=t=>{for(let e;e=t._$AM;t=e){let r=e._$AN;if(r===void 0)e._$AN=r=new Set;else if(r.has(t))break;r.add(t),fE(e)}};function cE(t){this._$AN!==void 0?(Os(this),this._$AM=t,Zm(this)):this._$AM=t}function lE(t,e=!1,r=0){let n=this._$AH,o=this._$AN;if(o!==void 0&&o.size!==0)if(e)if(Array.isArray(n))for(let i=r;i<n.length;i++)Do(n[i],!1),Os(n[i]);else n!=null&&(Do(n,!1),Os(n));else Do(this,t)}var fE=t=>{t.type==Mr.CHILD&&(t._$AP??=lE,t._$AQ??=cE)},mt=class extends Ir{constructor(){super(...arguments),this._$AN=void 0}_$AT(e,r,n){super._$AT(e,r,n),Zm(this),this.isConnected=e._$AU}_$AO(e,r=!0){e!==this.isConnected&&(this.isConnected=e,e?this.reconnected?.():this.disconnected?.()),r&&(Do(this,e),Os(this))}setValue(e){if(Gm(this._$Ct))this._$Ct._$AI(e,this);else{let r=[...this._$Ct._$AH];r[this._$Ci]=e,this._$Ct._$AI(r,this,0)}}disconnected(){}reconnected(){}};var Xm=async(t,e)=>{for await(let r of t)if(await e(r)===!1)return},Mn=class{constructor(e){this.G=e}disconnect(){this.G=void 0}reconnect(e){this.G=e}deref(){return this.G}},Pn=class{constructor(){this.Y=void 0,this.Z=void 0}get(){return this.Y}pause(){this.Y??=new Promise(e=>this.Z=e)}resume(){this.Z?.(),this.Y=this.Z=void 0}};var Km=t=>!Vm(t)&&typeof t.then=="function",eg=1073741823,Fc=class extends mt{constructor(){super(...arguments),this._$C_t=eg,this._$Cwt=[],this._$Cq=new Mn(this),this._$CK=new Pn}render(...e){return e.find(r=>!Km(r))??xe}update(e,r){let n=this._$Cwt,o=n.length;this._$Cwt=r;let i=this._$Cq,s=this._$CK;this.isConnected||this.disconnected();for(let a=0;a<r.length&&!(a>this._$C_t);a++){let u=r[a];if(!Km(u))return this._$C_t=a,u;a<o&&u===n[a]||(this._$C_t=eg,o=0,Promise.resolve(u).then(async c=>{for(;s.get();)await s.get();let l=i.deref();if(l!==void 0){let f=l._$Cwt.indexOf(u);f>-1&&f<l._$C_t&&(l._$C_t=f,l.setValue(c))}}))}return xe}disconnected(){this._$Cq.disconnect(),this._$CK.pause()}reconnected(){this._$Cq.reconnect(this),this._$CK.resume()}},pE=Ve(Fc);var Bo=class extends mt{constructor(){super(...arguments),this._$Cq=new Mn(this),this._$CK=new Pn}render(e,r){return xe}update(e,[r,n]){if(this.isConnected||this.disconnected(),r===this._$CX)return xe;this._$CX=r;let o=0,{_$Cq:i,_$CK:s}=this;return Xm(r,async a=>{for(;s.get();)await s.get();let u=i.deref();if(u!==void 0){if(u._$CX!==r)return!1;n!==void 0&&(a=n(a,o)),u.commitValue(a,o),o++}return!0}),xe}commitValue(e,r){this.setValue(e)}disconnected(){this._$Cq.disconnect(),this._$CK.pause()}reconnected(){this._$Cq.reconnect(this),this._$CK.resume()}},wR=Ve(Bo);var hE=Ve(class extends Bo{constructor(t){if(super(t),t.type!==Mr.CHILD)throw Error("asyncAppend can only be used in child expressions")}update(t,e){return this._$CJ=t,super.update(t,e)}commitValue(t,e){e===0&&Qm(this._$CJ);let r=Jm(this._$CJ);Ym(r,t)}});var tg=function(t,e,r,n){var o=arguments.length,i=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(i=(o<3?s(i):o>3?s(e,r,i):s(e,r))||i);return o>3&&i&&Object.defineProperty(e,r,i),i},rg=function(t,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(t,e)},me=class extends Ar.LitElement{constructor(e={}){super(),this.goBright=!1,this.rxSubscriptions=[],this.elementDomReadyDeferred=Oe.plugins.smartpromise.defer(),this.elementDomReady=this.elementDomReadyDeferred.promise,this.garbageFunctions=[],this.domtoolsPromise=Oe.elementBasic.setup(this,e),this.domtoolsPromise.then(r=>{this.domtools=r})}async connectedCallback(){super.connectedCallback();let e=await this.domtoolsPromise;this.themeSubscription=e.themeManager.themeObservable.subscribe(r=>{this.goBright=r}),this.rxSubscriptions.push(this.themeSubscription),this.dispatchEvent(new CustomEvent("deesElementConnected"))}firstUpdated(e){super.firstUpdated(e),this.elementDomReadyDeferred.resolve()}registerGarbageFunction(e){this.garbageFunctions.push(e)}async disconnectedCallback(){await this.domtoolsPromise,super.disconnectedCallback();for(let e of this.rxSubscriptions)e.unsubscribe();for(let e of this.garbageFunctions)e();this.dispatchEvent(new CustomEvent("deesElementDisconnected"))}};tg([Ar.property({type:Boolean}),rg("design:type",Boolean)],me.prototype,"goBright",void 0);tg([Ar.property(),rg("design:type",Oe.DomTools)],me.prototype,"domtools",void 0);var Uc=class extends mt{constructor(){super(...arguments),this.sub=null}render(e){return this.observable!==e&&(this.sub?.unsubscribe(),this.observable=e,this.isConnected&&this.subscribe(e)),xe}subscribe(e){this.sub=e.subscribe(r=>{this.setValue(r)})}disconnected(){this.sub?.unsubscribe()}reconnected(){this.subscribe(this.observable)}},dE=Ve(Uc);var Lc=class extends mt{constructor(){super(...arguments),this.hasPromiseSettled=!1}render(e){return this.promise!==e&&(this.promise=e,this.isConnected&&this.handlePromise(e)),xe}handlePromise(e){this.hasPromiseSettled=!1,e.then(r=>{this.promise===e&&!this.hasPromiseSettled&&(this.setValue(r),this.hasPromiseSettled=!0)}).catch(r=>{this.promise===e&&!this.hasPromiseSettled&&(this.setValue(r),this.hasPromiseSettled=!0)})}disconnected(){this.hasPromiseSettled=!0}reconnected(){this.hasPromiseSettled||this.handlePromise(this.promise)}},mE=Ve(Lc);var Ds=new $s;var iy=De(oy(),1);var ay={name:"Awesome From Company",type:"company",description:"a company that does stuff",address:{streetName:"Awesome Street",houseNumber:"5",city:"Bremen",country:"Germany",postalCode:"28359"},vatId:"DE12345678",sepaConnection:{bic:"BPOTBEB1",iban:"BE01234567891616"},email:"hello@awesome.company",phone:"+49 421 1234567",fax:"+49 421 1234568"},uy={name:"Awesome To GmbH",type:"company",customerNumber:"LL-CLIENT-123",description:"a company that does stuff",address:{streetName:"Awesome Street",houseNumber:"5",city:"Bremen",country:"Germany",postalCode:"28359"},vatId:"BE12345678"},Rn={versionInfo:{type:"draft",version:"1.0.0"},accentColor:null,content:{textData:null,timesheetData:null,contractData:{contractDate:Date.now(),id:"someid"},invoiceData:{id:"LL-INV-48765",reverseCharge:!0,dueInDays:30,billedBy:ay,billedTo:uy,status:null,deliveryDate:new Date().getTime(),periodOfPerformance:null,printResult:null,items:[{name:"Item with 19% VAT",unitQuantity:1,unitNetPrice:100,unitType:"hours",vatPercentage:19,currency:"EUR"},{name:"Item with 7% VAT",unitQuantity:1,unitNetPrice:100,unitType:"hours",vatPercentage:7,currency:"EUR"},{name:"Item with 7% VAT",unitQuantity:1,unitNetPrice:230,unitType:"hours",vatPercentage:7,currency:"EUR"},{name:"Item with 21% VAT",unitQuantity:1,unitNetPrice:230,unitType:"hours",vatPercentage:21,currency:"EUR"},{name:"Item with 0% VAT",unitQuantity:1,unitNetPrice:230,unitType:"hours",vatPercentage:0,currency:"EUR"}]}},date:Date.now(),type:"invoice",needsCoverSheet:!1,objectActions:[],pdf:null,from:ay,to:uy,incidenceId:null,language:null,legalContact:null,logoUrl:null,pdfAttachments:null,subject:"Invoice: LL-INV-48765"};var Fn=1122,Ho=794,et=70,Un=90;var Dr=class extends me{constructor(){super();this.getTotalNet=()=>{let r=0;if(!this.letterData)return r;for(let n of this.letterData.content.invoiceData.items)r+=n.unitNetPrice*n.unitQuantity;return r};this.getTotalGross=()=>{let r=0;if(!this.letterData)return r;for(let n of this.getVatGroups())r+=n.vatAmountSum;return this.getTotalNet()+r};this.getVatGroups=()=>{let r=[];if(!this.letterData)return r;let n=[];for(let o of this.letterData.content.invoiceData.items)n.includes(o.vatPercentage)||n.push(o.vatPercentage);for(let o of n){let i=this.letterData.content.invoiceData.items.filter(a=>a.vatPercentage===o),s=0;for(let a of i)s+=a.unitNetPrice*a.unitQuantity*(o/100);r.push({items:i,vatPercentage:o,vatAmountSum:Math.round(s*100)/100})}return r};he.setupDomTools()}render(){return k`
|
|
271
|
+
`,oU=async(e,t={})=>{let r=await Te.setupDomTools(t);return r.runOnce("elementBasicSetup",async()=>{r.setGlobalStyles(IA)}),r};var hd={};ue(hd,{cssGridColumns:()=>sU});var sU=(e,t)=>{let r="";for(let n=0;n<e;n++)r+=` calc((100%/${e}) - (${t*(e-1)}px/${e}))`;return r};var md={};ue(md,{SweetScroll:()=>OA.default,smartdelay:()=>he,smartmarkdown:()=>qu,smartpromise:()=>re,smartrouter:()=>uo,smartrx:()=>Se,smartstate:()=>co,smartstring:()=>zr,smarturl:()=>fo,typedrequest:()=>It});var OA=$e(nd(),1);var ii={css:we,unsafeCSS:oe,LitElement:Nr,property:le};var oc=class{constructor(){this.domtoolsPromise=Te.setupDomTools(),this.goBright=!1,this.bdVarTripletStore=[],this.cssGridColumns=(t,r)=>{let n="";for(let i=0;i<t;i++)n+=` calc((100%/${t}) - (${r*(t-1)}px/${t}))`;return ii.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 Qe.staticStyles}cssForDesktop(t){return oe(Cr.cssForDesktop(t))}cssForNotebook(t){return oe(Cr.cssForNotebook(t))}cssForTablet(t){return oe(Cr.cssForTablet(t))}cssForPhablet(t){return oe(Cr.cssForPhablet(t))}cssForPhone(t){return oe(Cr.cssForPhone(t))}bdTheme(t,r){let n,i;Te.getGlobalDomToolsSync()?i=Te.getGlobalDomToolsSync().themeManager.goBrightBoolean?t:r:i=r;let o=this.bdVarTripletStore.find(s=>s.darkValue===r&&s.brightValue===t);if(o)n=o.cssVarName;else{let s={cssVarName:`--${MA.uni()}`,brightValue:t,darkValue:r};this.bdVarTripletStore.push(s),this.domtoolsPromise.then(async a=>{await a.domReady.promise,document.body.style.setProperty(s.cssVarName,i)}),n=s.cssVarName}return ii.unsafeCSS(`var(${n}, ${i})`)}};var bo={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},kt=e=>(...t)=>({_$litDirective$:e,values:t}),xo=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 ea=class extends xo{constructor(t){if(super(t),this.it=Ne,t.type!==bo.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===Ne||t==null)return this._t=void 0,this.it=t;if(t===Ue)return t;if(typeof t!="string")throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.it)return this._t;this.it=t;let r=[t];return r.raw=r,this._t={_$litType$:this.constructor.resultType,strings:r,values:[]}}};ea.directiveName="unsafeHTML",ea.resultType=1;var aU=kt(ea);var Ze=e=>(t,r)=>{r!==void 0?r.addInitializer(()=>{customElements.define(e,t)}):customElements.define(e,t)};var{I:lU}=tg,NA=e=>e===null||typeof e!="object"&&typeof e!="function";var FA=e=>e.strings===void 0,PA=()=>document.createComment(""),RA=(e,t,r)=>{let n=e._$AA.parentNode,i=t===void 0?e._$AB:t._$AA;if(r===void 0){let o=n.insertBefore(PA(),i),s=n.insertBefore(PA(),i);r=new lU(o,s,e,e.options)}else{let o=r._$AB.nextSibling,s=r._$AM,a=s!==e;if(a){let l;r._$AQ?.(e),r._$AM=e,r._$AP!==void 0&&(l=e._$AU)!==s._$AU&&r._$AP(l)}if(o!==i||a){let l=r._$AA;for(;l!==o;){let u=l.nextSibling;n.insertBefore(l,i),l=u}}}return r},LA=(e,t,r=e)=>(e._$AI(t,r),e);var BA=e=>{e._$AR()};var ta=(e,t)=>{let r=e._$AN;if(r===void 0)return!1;for(let n of r)n._$AO?.(t,!1),ta(n,t);return!0},ac=e=>{let t,r;do{if((t=e._$AM)===void 0)break;r=t._$AN,r.delete(e),e=t}while(r?.size===0)},$A=e=>{for(let t;t=e._$AM;e=t){let r=t._$AN;if(r===void 0)t._$AN=r=new Set;else if(r.has(e))break;r.add(e),fU(t)}};function uU(e){this._$AN!==void 0?(ac(this),this._$AM=e,$A(this)):this._$AM=e}function cU(e,t=!1,r=0){let n=this._$AH,i=this._$AN;if(i!==void 0&&i.size!==0)if(t)if(Array.isArray(n))for(let o=r;o<n.length;o++)ta(n[o],!1),ac(n[o]);else n!=null&&(ta(n,!1),ac(n));else ta(this,e)}var fU=e=>{e.type==bo.CHILD&&(e._$AP??=cU,e._$AQ??=uU)},ir=class extends xo{constructor(){super(...arguments),this._$AN=void 0}_$AT(t,r,n){super._$AT(t,r,n),$A(this),this.isConnected=t._$AU}_$AO(t,r=!0){t!==this.isConnected&&(this.isConnected=t,t?this.reconnected?.():this.disconnected?.()),r&&(ta(this,t),ac(this))}setValue(t){if(FA(this._$Ct))this._$Ct._$AI(t,this);else{let r=[...this._$Ct._$AH];r[this._$Ci]=t,this._$Ct._$AI(r,this,0)}}disconnected(){}reconnected(){}};var UA=async(e,t)=>{for await(let r of e)if(await t(r)===!1)return},wo=class{constructor(t){this.Y=t}disconnect(){this.Y=void 0}reconnect(t){this.Y=t}deref(){return this.Y}},vo=class{constructor(){this.Z=void 0,this.q=void 0}get(){return this.Z}pause(){this.Z??=new Promise(t=>this.q=t)}resume(){this.q?.(),this.Z=this.q=void 0}};var jA=e=>!NA(e)&&typeof e.then=="function",zA=1073741823,dd=class extends ir{constructor(){super(...arguments),this._$Cwt=zA,this._$Cbt=[],this._$CK=new wo(this),this._$CX=new vo}render(...t){return t.find(r=>!jA(r))??Ue}update(t,r){let n=this._$Cbt,i=n.length;this._$Cbt=r;let o=this._$CK,s=this._$CX;this.isConnected||this.disconnected();for(let a=0;a<r.length&&!(a>this._$Cwt);a++){let l=r[a];if(!jA(l))return this._$Cwt=a,l;a<i&&l===n[a]||(this._$Cwt=zA,i=0,Promise.resolve(l).then(async u=>{for(;s.get();)await s.get();let c=o.deref();if(c!==void 0){let f=c._$Cbt.indexOf(l);f>-1&&f<c._$Cwt&&(c._$Cwt=f,c.setValue(u))}}))}return Ue}disconnected(){this._$CK.disconnect(),this._$CX.pause()}reconnected(){this._$CK.reconnect(this),this._$CX.resume()}},pU=kt(dd);var ra=class extends ir{constructor(){super(...arguments),this._$CK=new wo(this),this._$CX=new vo}render(t,r){return Ue}update(t,[r,n]){if(this.isConnected||this.disconnected(),r===this._$CJ)return Ue;this._$CJ=r;let i=0,{_$CK:o,_$CX:s}=this;return UA(r,async a=>{for(;s.get();)await s.get();let l=o.deref();if(l!==void 0){if(l._$CJ!==r)return!1;n!==void 0&&(a=n(a,i)),l.commitValue(a,i),i++}return!0}),Ue}commitValue(t,r){this.setValue(t)}disconnected(){this._$CK.disconnect(),this._$CX.pause()}reconnected(){this._$CK.reconnect(this),this._$CX.resume()}},ole=kt(ra);var hU=kt(class extends ra{constructor(e){if(super(e),e.type!==bo.CHILD)throw Error("asyncAppend can only be used in child expressions")}update(e,t){return this._$Ctt=e,super.update(e,t)}commitValue(e,t){t===0&&BA(this._$Ctt);let r=RA(this._$Ctt);LA(r,e)}});var qA=function(e,t,r,n){var i=arguments.length,o=i<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(o=(i<3?s(o):i>3?s(t,r,o):s(t,r))||o);return i>3&&o&&Object.defineProperty(t,r,o),o},HA=function(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)},Pe=class extends ii.LitElement{constructor(t={}){super(),this.goBright=!1,this.rxSubscriptions=[],this.elementDomReadyDeferred=tt.plugins.smartpromise.defer(),this.elementDomReady=this.elementDomReadyDeferred.promise,this.startupFunctions=[],this.garbageFunctions=[],this.domtoolsPromise=tt.elementBasic.setup(this,t),this.domtoolsPromise.then(r=>{this.domtools=r})}async connectedCallback(){super.connectedCallback();let t=await this.domtoolsPromise;this.themeSubscription=t.themeManager.themeObservable.subscribe(r=>{this.goBright=r}),this.rxSubscriptions.push(this.themeSubscription);for(let r of this.startupFunctions)await r();this.dispatchEvent(new CustomEvent("deesElementConnected"))}firstUpdated(t){super.firstUpdated(t),this.elementDomReadyDeferred.resolve()}registerStartupFunction(t){this.startupFunctions.push(t)}registerGarbageFunction(t){this.garbageFunctions.push(t)}async disconnectedCallback(){await this.domtoolsPromise,super.disconnectedCallback();for(let t of this.rxSubscriptions)t.unsubscribe();for(let t of this.garbageFunctions)await t();this.dispatchEvent(new CustomEvent("deesElementDisconnected"))}};qA([ii.property({type:Boolean}),HA("design:type",Boolean)],Pe.prototype,"goBright",void 0);qA([ii.property(),HA("design:type",tt.DomTools)],Pe.prototype,"domtools",void 0);var gd=class extends ir{constructor(){super(...arguments),this.sub=null}render(t){return this.observable!==t&&(this.sub?.unsubscribe(),this.observable=t,this.isConnected&&this.subscribe(t)),Ue}subscribe(t){this.sub=t.subscribe(r=>{this.setValue(r)})}disconnected(){this.sub?.unsubscribe()}reconnected(){this.subscribe(this.observable)}},mU=kt(gd);var yd=class extends ir{constructor(){super(...arguments),this.hasPromiseSettled=!1}render(t){return this.promise!==t&&(this.promise=t,this.isConnected&&this.handlePromise(t)),Ue}handlePromise(t){this.hasPromiseSettled=!1,t.then(r=>{this.promise===t&&!this.hasPromiseSettled&&(this.setValue(r),this.hasPromiseSettled=!0)}).catch(r=>{this.promise===t&&!this.hasPromiseSettled&&(this.setValue(r),this.hasPromiseSettled=!0)})}disconnected(){this.hasPromiseSettled=!0}reconnected(){this.hasPromiseSettled||this.handlePromise(this.promise)}},dU=kt(yd);var lc=new oc;var WE=$e(HE(),1);var YE={name:"Awesome From Company",type:"company",description:"a company that does stuff",address:{streetName:"Awesome Street",houseNumber:"5",city:"Bremen",country:"Germany",postalCode:"28359"},vatId:"DE12345678",sepaConnection:{bic:"BPOTBEB1",iban:"BE01234567891616"},email:"hello@awesome.company",phone:"+49 421 1234567",fax:"+49 421 1234568"},GE={name:"Awesome To GmbH",type:"company",customerNumber:"LL-CLIENT-123",description:"a company that does stuff",address:{streetName:"Awesome Street",houseNumber:"5",city:"Bremen",country:"Germany",postalCode:"28359"},vatId:"BE12345678"},To={versionInfo:{type:"draft",version:"1.0.0"},accentColor:null,content:{textData:null,timesheetData:null,contractData:{contractDate:Date.now(),id:"someid"},invoiceData:{id:"LL-INV-48765",reverseCharge:!0,dueInDays:30,billedBy:YE,billedTo:GE,status:null,deliveryDate:new Date().getTime(),periodOfPerformance:null,printResult:null,items:[{name:"Item with 19% VAT",unitQuantity:1,unitNetPrice:100,unitType:"hours",vatPercentage:19,position:0},{name:"Item with 7% VAT",unitQuantity:1,unitNetPrice:100,unitType:"hours",vatPercentage:7,position:1},{name:"Item with 7% VAT",unitQuantity:1,unitNetPrice:230,unitType:"hours",vatPercentage:7,position:2},{name:"Item with 21% VAT",unitQuantity:1,unitNetPrice:230,unitType:"hours",vatPercentage:21,position:3},{name:"Item with 0% VAT",unitQuantity:1,unitNetPrice:230,unitType:"hours",vatPercentage:0,position:4},{name:"Item with 19% VAT",unitQuantity:1,unitNetPrice:100,unitType:"hours",vatPercentage:19,position:5},{name:"Item with 7% VAT",unitQuantity:1,unitNetPrice:100,unitType:"hours",vatPercentage:7,position:6},{name:"Item with 7% VAT",unitQuantity:1,unitNetPrice:230,unitType:"hours",vatPercentage:7,position:8},{name:"Item with 21% VAT",unitQuantity:1,unitNetPrice:230,unitType:"hours",vatPercentage:21,position:9},{name:"Item with 0% VAT",unitQuantity:1,unitNetPrice:230,unitType:"hours",vatPercentage:0,position:10}]}},date:Date.now(),type:"invoice",needsCoverSheet:!1,objectActions:[],pdf:null,from:YE,to:GE,incidenceId:null,language:null,legalContact:null,logoUrl:null,pdfAttachments:null,subject:"Invoice: LL-INV-48765"};var fa=1122,wc=794,Nt=70,_o=90;var ui=class extends Pe{constructor(){super();this.getTotalNet=()=>{let r=0;if(!this.letterData)return r;for(let n of this.letterData.content.invoiceData.items)r+=n.unitNetPrice*n.unitQuantity;return r};this.getTotalGross=()=>{let r=0;if(!this.letterData)return r;for(let n of this.getVatGroups())r+=n.vatAmountSum;return this.getTotalNet()+r};this.getVatGroups=()=>{let r=[];if(!this.letterData)return r;let n=[];for(let i of this.letterData.content.invoiceData.items)n.includes(i.vatPercentage)||n.push(i.vatPercentage);for(let i of n){let o=this.letterData.content.invoiceData.items.filter(a=>a.vatPercentage===i),s=0;for(let a of o)s+=a.unitNetPrice*a.unitQuantity*(i/100);r.push({items:o,vatPercentage:i,vatAmountSum:Math.round(s*100)/100})}return r};Te.setupDomTools()}render(){return Z`
|
|
109
272
|
<div class="trimmedContent"></div>
|
|
110
273
|
<div class="repeatedContent"></div>
|
|
111
274
|
<div class="currentContent"></div>
|
|
112
|
-
`}async getContentNodes(){return await this.elementDomReady,{currentContent:this.shadowRoot.querySelector(".currentContent"),trimmedContent:this.shadowRoot.querySelector(".trimmedContent"),repeatedContent:this.shadowRoot.querySelector(".repeatedContent")}}async getContentLength(){return await this.elementDomReady,(await this.getContentNodes()).currentContent.children.length}async trimEndByOne(){await this.elementDomReady,this.shadowRoot.querySelector(".trimmedContent").append((await this.getContentNodes()).currentContent.children.item((await this.getContentNodes()).currentContent.children.length-1))}async trimStartToOffset(r){await this.elementDomReady;let n=(await this.getContentNodes()).currentContent.children.length;for(;(await this.getContentNodes()).currentContent.children.length!==n-r;)(await this.getContentNodes()).trimmedContent.append((await this.getContentNodes()).currentContent.children.item(0)),console.log("hey"+this.shadowRoot.children.length);if((await this.getContentNodes()).currentContent.children.item(0).classList.contains("needsDataHeader")){let
|
|
275
|
+
`}async getContentNodes(){return await this.elementDomReady,{currentContent:this.shadowRoot.querySelector(".currentContent"),trimmedContent:this.shadowRoot.querySelector(".trimmedContent"),repeatedContent:this.shadowRoot.querySelector(".repeatedContent")}}async getContentLength(){return await this.elementDomReady,(await this.getContentNodes()).currentContent.children.length}async trimEndByOne(){await this.elementDomReady,this.shadowRoot.querySelector(".trimmedContent").append((await this.getContentNodes()).currentContent.children.item((await this.getContentNodes()).currentContent.children.length-1))}async trimStartToOffset(r){await this.elementDomReady;let n=(await this.getContentNodes()).currentContent.children.length;for(;(await this.getContentNodes()).currentContent.children.length!==n-r;)(await this.getContentNodes()).trimmedContent.append((await this.getContentNodes()).currentContent.children.item(0)),console.log("hey"+this.shadowRoot.children.length);if((await this.getContentNodes()).currentContent.children.item(0).classList.contains("needsDataHeader")){let i=(await this.getContentNodes()).trimmedContent,o=i.children.length;for(;o>0;){let s=i.children.item(o-1);if(s.classList.contains("dataHeader")){(await this.getContentNodes()).repeatedContent.append(s);break}o--}}}async firstUpdated(r){super.firstUpdated(r),this.attachInvoiceDom()}async attachInvoiceDom(){let r=await this.getContentNodes();$o(Z`
|
|
113
276
|
<style>
|
|
114
277
|
.grid {
|
|
115
278
|
display: grid;
|
|
@@ -195,15 +358,15 @@ Minimum version required to store current data is: `+i+`.
|
|
|
195
358
|
<div class="lineItem">Unit Net Price</div>
|
|
196
359
|
<div class="lineItem">Total Net Price</div>
|
|
197
360
|
</div>
|
|
198
|
-
${(()=>{let
|
|
361
|
+
${(()=>{let i=1;return this.letterData?.content.invoiceData?.items?.map(o=>Z`
|
|
199
362
|
<div class="grid invoiceLine needsDataHeader">
|
|
200
|
-
<div class="lineItem">${
|
|
201
|
-
<div class="lineItem">${
|
|
202
|
-
<div class="lineItem">${
|
|
203
|
-
<div class="lineItem">${
|
|
204
|
-
<div class="lineItem">${
|
|
363
|
+
<div class="lineItem">${i++}</div>
|
|
364
|
+
<div class="lineItem">${o.name}</div>
|
|
365
|
+
<div class="lineItem">${o.unitQuantity}</div>
|
|
366
|
+
<div class="lineItem">${o.unitType}</div>
|
|
367
|
+
<div class="lineItem">${o.unitNetPrice} ${o.currency}</div>
|
|
205
368
|
<div class="lineItem">
|
|
206
|
-
${
|
|
369
|
+
${o.unitQuantity*o.unitNetPrice} ${o.currency}
|
|
207
370
|
</div>
|
|
208
371
|
</div>
|
|
209
372
|
`)})()}
|
|
@@ -212,13 +375,13 @@ Minimum version required to store current data is: `+i+`.
|
|
|
212
375
|
<div class="label">Total net</div>
|
|
213
376
|
<div class="value">${this.getTotalNet()} EUR</div>
|
|
214
377
|
</div>
|
|
215
|
-
${this.getVatGroups().map(
|
|
378
|
+
${this.getVatGroups().map(i=>{let o="";for(let s of i.items){let a=this.letterData.content.invoiceData.items.indexOf(s);o+=` ${a+1},`}return Z`
|
|
216
379
|
<div class="sumline">
|
|
217
380
|
<div class="label">
|
|
218
|
-
Vat ${
|
|
219
|
-
<span style="font-weight: normal">(on item positions: ${
|
|
381
|
+
Vat ${i.vatPercentage}%<br />
|
|
382
|
+
<span style="font-weight: normal">(on item positions: ${o})</span>
|
|
220
383
|
</div>
|
|
221
|
-
<div class="value">${
|
|
384
|
+
<div class="value">${i.vatAmountSum} EUR</div>
|
|
222
385
|
</div>
|
|
223
386
|
`})}
|
|
224
387
|
<div class="sumline">
|
|
@@ -227,7 +390,7 @@ Minimum version required to store current data is: `+i+`.
|
|
|
227
390
|
</div>
|
|
228
391
|
</div>
|
|
229
392
|
<div class="divider"></div>
|
|
230
|
-
${this.letterData?.content.invoiceData.reverseCharge?
|
|
393
|
+
${this.letterData?.content.invoiceData.reverseCharge?Z`
|
|
231
394
|
<div class="taxNote">
|
|
232
395
|
VAT arises on a reverse charge basis and is payable by the customer.
|
|
233
396
|
</div>
|
|
@@ -243,17 +406,17 @@ Minimum version required to store current data is: `+i+`.
|
|
|
243
406
|
Description: ${this.letterData?.content.invoiceData?.id}<br />
|
|
244
407
|
Amount: ${this.getTotalGross()} ${this.letterData?.content.invoiceData.items[0].currency}
|
|
245
408
|
</div>
|
|
246
|
-
${this.letterData?.content?.contractData?.contractDate?
|
|
409
|
+
${this.letterData?.content?.contractData?.contractDate?Z`
|
|
247
410
|
<div class="infoBox">
|
|
248
411
|
<div class="label">Referenced contract:</div>
|
|
249
412
|
This invoice is adhering to agreements made by contract between the parties on
|
|
250
|
-
${
|
|
413
|
+
${Wt.ExtendedDate.fromMillis(this.letterData?.content.contractData.contractDate).format("MMMM D, YYYY")}.
|
|
251
414
|
</div>
|
|
252
|
-
`:
|
|
415
|
+
`:Z``}
|
|
253
416
|
<div class="infoBox paymentCode">
|
|
254
417
|
<div class="label">Sepa Payment Code:</div>
|
|
255
418
|
</div>
|
|
256
|
-
`,r.currentContent);let n=document.createElement("canvas");
|
|
419
|
+
`,r.currentContent);let n=document.createElement("canvas");WE.toCanvas(n,`BCD
|
|
257
420
|
001
|
|
258
421
|
1
|
|
259
422
|
SCT
|
|
@@ -264,7 +427,7 @@ EUR${this.getTotalGross()}
|
|
|
264
427
|
CHAR
|
|
265
428
|
${this.letterData.content.invoiceData.id}
|
|
266
429
|
${this.letterData.content.invoiceData.id}
|
|
267
|
-
EPC QR Code`,
|
|
430
|
+
EPC QR Code`,i=>{i&&console.error(i),console.log("success!")}),r.currentContent.querySelector(".paymentCode").append(n)}};ui.demo=()=>Z`
|
|
268
431
|
<style>
|
|
269
432
|
.demoContainer {
|
|
270
433
|
background: white;
|
|
@@ -274,7 +437,7 @@ EPC QR Code`,o=>{o&&console.error(o),console.log("success!")}),r.currentContent.
|
|
|
274
437
|
<div class="demoContainer">
|
|
275
438
|
<dedocument-contentinvoice></dedocument-contentinvoice>
|
|
276
439
|
</div>
|
|
277
|
-
`,
|
|
440
|
+
`,ui.styles=[Qe.staticStyles,we`
|
|
278
441
|
:host {
|
|
279
442
|
color: #333;
|
|
280
443
|
}
|
|
@@ -285,22 +448,22 @@ EPC QR Code`,o=>{o&&console.error(o),console.log("success!")}),r.currentContent.
|
|
|
285
448
|
|
|
286
449
|
.repeatedContent {
|
|
287
450
|
}
|
|
288
|
-
`],
|
|
451
|
+
`],te([le({type:Object,reflect:!0})],ui.prototype,"letterData",2),ui=te([Ze("dedocument-contentinvoice")],ui);var ht=class extends Pe{constructor(){super();this.viewWidth=null;this.viewHeight=null;this.format="a4";this.pageNumber=1;this.pageTotalNumber=1;this.letterData=null;this.printMode=!1;Te.setupDomTools()}render(){return Z`
|
|
289
452
|
<div id="scaleWrapper">
|
|
290
453
|
<dedocument-pagecontainer .printMode=${this.printMode}>
|
|
291
|
-
${this.letterData?
|
|
454
|
+
${this.letterData?Z`
|
|
292
455
|
<dedocument-pageheader
|
|
293
456
|
.letterData=${this.letterData}
|
|
294
457
|
.pageNumber="${this.pageNumber}"
|
|
295
458
|
.pageTotalNumber="${this.pageTotalNumber}"
|
|
296
459
|
></dedocument-pageheader>
|
|
297
|
-
${this.pageNumber===1?
|
|
460
|
+
${this.pageNumber===1?Z`
|
|
298
461
|
<dedocument-letterheader
|
|
299
462
|
.pageNumber="${this.pageNumber}"
|
|
300
463
|
.letterData=${this.letterData}
|
|
301
464
|
.pageTotalNumber="${this.pageTotalNumber}"
|
|
302
465
|
></dedocument-letterheader>
|
|
303
|
-
`:
|
|
466
|
+
`:Z``}
|
|
304
467
|
<dedocument-pagecontent
|
|
305
468
|
.pageNumber="${this.pageNumber}"
|
|
306
469
|
.pageTotalNumber="${this.pageTotalNumber}"
|
|
@@ -313,24 +476,22 @@ EPC QR Code`,o=>{o&&console.error(o),console.log("success!")}),r.currentContent.
|
|
|
313
476
|
.pageTotalNumber="${this.pageTotalNumber}"
|
|
314
477
|
></dedocument-pagefooter>
|
|
315
478
|
<div class="versionOverlay">
|
|
316
|
-
${this.letterData.versionInfo.type==="draft"?
|
|
479
|
+
${this.letterData.versionInfo.type==="draft"?Z`
|
|
317
480
|
<div class="topInfo">
|
|
318
481
|
Please note: THIS IS A DRAFT ONLY. NO RIGHTS CAN BE DERIVED FROM THIS.<br />
|
|
319
482
|
-> Revision/Document version: ${this.letterData.versionInfo.version}
|
|
320
483
|
</div>
|
|
321
484
|
<div class="bigDraftText">DRAFT</div>
|
|
322
|
-
`:
|
|
485
|
+
`:Z``}
|
|
323
486
|
</div>
|
|
324
|
-
`:
|
|
487
|
+
`:Z`
|
|
325
488
|
<slot></slot>
|
|
326
489
|
`}
|
|
327
490
|
</dedocument-pagecontainer>
|
|
328
491
|
</div>
|
|
329
|
-
`}async checkOverflow(){return await this.elementDomReady,this.shadowRoot.querySelector("dedocument-pagecontent").checkOverflow()}updated(r){super.updated(r),(r.has("viewHeight")||r.has("viewWidth"))&&this.adjustScaling()}adjustScaling(){console.log("page scale adjustment triggered.");let r=this.shadowRoot.querySelector("#scaleWrapper");if(!r)return;let n=1;this.viewHeight?n=this.viewHeight/
|
|
492
|
+
`}async checkOverflow(){return await this.elementDomReady,this.shadowRoot.querySelector("dedocument-pagecontent").checkOverflow()}updated(r){super.updated(r),(r.has("viewHeight")||r.has("viewWidth"))&&this.adjustScaling()}adjustScaling(){console.log("page scale adjustment triggered.");let r=this.shadowRoot.querySelector("#scaleWrapper");if(!r)return;let n=1;this.viewHeight?n=this.viewHeight/fa:this.viewWidth&&(n=this.viewWidth/wc),console.log(`new scale is ${n}`),r.style.transform=`scale(${n})`,this.style.height=`${fa*n}px`}};ht.demo=()=>Z` <dedocument-page .format="${"a4"}"></dedocument-page> `,ht.styles=[Qe.staticStyles,we`
|
|
330
493
|
:host {
|
|
331
494
|
display: block;
|
|
332
|
-
max-height: ${Fn}px;
|
|
333
|
-
max-width: ${Ho}px;
|
|
334
495
|
}
|
|
335
496
|
|
|
336
497
|
#scaleWrapper {
|
|
@@ -366,11 +527,11 @@ EPC QR Code`,o=>{o&&console.error(o),console.log("success!")}),r.currentContent.
|
|
|
366
527
|
font-size: 200px;
|
|
367
528
|
opacity: 0.05;
|
|
368
529
|
}
|
|
369
|
-
`],
|
|
370
|
-
<dedocument-dedocument .format="${"a4"}" .letterData=${
|
|
371
|
-
`;var
|
|
530
|
+
`],te([le()],ht.prototype,"viewWidth",2),te([le()],ht.prototype,"viewHeight",2),te([le({type:String})],ht.prototype,"format",2),te([le({type:Number})],ht.prototype,"pageNumber",2),te([le({type:Number})],ht.prototype,"pageTotalNumber",2),te([le({type:Object})],ht.prototype,"letterData",2),te([le({type:Boolean,reflect:!0})],ht.prototype,"printMode",2),ht=te([Ze("dedocument-page")],ht);var JE=()=>Z`
|
|
531
|
+
<dedocument-dedocument .format="${"a4"}" .letterData=${To}></dedocument-dedocument>
|
|
532
|
+
`;var Ft=class extends Pe{constructor(){super();this.format="a4";this.viewWidth=null;this.viewHeight=null;this.printMode=!1;this.latestRenderedLetterData=null;tt.DomTools.setupDomTools()}render(){return Z`
|
|
372
533
|
<div class="documentContainer"></div>
|
|
373
|
-
`}async firstUpdated(r){let n=new ResizeObserver(
|
|
534
|
+
`}async firstUpdated(r){let n=new ResizeObserver(i=>{for(let o of i){let s=o.contentRect.width,a=o.contentRect.height;this.adjustDePageScaling()}});if(n.observe(this),this.registerGarbageFunction(()=>{n.disconnect()}),this.letterDataUrl){let i=await fetch(this.letterDataUrl);this.letterData=await i.json()}this.renderDocument()}async renderDocument(){let r=await this.domtoolsPromise,n=this.shadowRoot.querySelector(".documentContainer"),i=[],o=0,s=!1,a=document.createElement("dedocument-contentinvoice");a.letterData=this.letterData,document.body.appendChild(a),await r.convenience.smartdelay.delayFor(0);let l=0,u,c;for(;!s;){o++;let f=a.cloneNode(!0),p=new ht;if(p.printMode=this.printMode,p.letterData=this.letterData,i.push(p),p.pageNumber=o,p.append(f),p.pageTotalNumber=o,n.append(p),!this.printMode){let m=document.createElement("div");m.classList.add("betweenPagesSpacer"),n.append(m)}await f.elementDomReady,await f.trimStartToOffset(l);let h=await p.checkOverflow();for(c=0;h;)await f.trimEndByOne(),c++,h=await p.checkOverflow();u=await f.getContentLength(),l=l+u,c===0&&(s=!0),console.log(u)}document.body.removeChild(a);for(let f of i)f.pageTotalNumber=o;this.adjustDePageScaling(),this.latestRenderedLetterData=this.letterData}async updated(r){super.updated(r),(await this.domtoolsPromise).convenience.smartjson.deepEqualObjects(this.letterData,this.latestRenderedLetterData)||this.renderDocument(),(r.has("viewHeight")||r.has("viewWidth"))&&this.adjustDePageScaling()}adjustDePageScaling(){if(this.printMode)return;this.viewWidth=this.clientWidth,this.shadowRoot.querySelectorAll("dedocument-page").forEach(n=>{this.viewHeight&&(n.viewHeight=this.viewHeight),this.viewWidth&&(n.viewWidth=this.viewWidth,console.log("setting viewWidth: ",this.viewWidth))})}};Ft.demo=JE,Ft.styles=[tt.elementBasic.staticStyles,we`
|
|
374
535
|
:host {
|
|
375
536
|
display: block;
|
|
376
537
|
color: #333;
|
|
@@ -381,7 +542,7 @@ EPC QR Code`,o=>{o&&console.error(o),console.log("success!")}),r.currentContent.
|
|
|
381
542
|
.betweenPagesSpacer {
|
|
382
543
|
height: 16px;
|
|
383
544
|
}
|
|
384
|
-
`],
|
|
545
|
+
`],te([le({type:String,reflect:!0})],Ft.prototype,"format",2),te([le({type:Number,reflect:!0})],Ft.prototype,"viewWidth",2),te([le({type:Number,reflect:!0})],Ft.prototype,"viewHeight",2),te([le({type:Boolean,reflect:!0})],Ft.prototype,"printMode",2),te([le({type:Object,reflect:!0,converter:r=>typeof r=="string"?Fe.parseBase64(r):r})],Ft.prototype,"letterData",2),te([le({type:String})],Ft.prototype,"letterDataUrl",2),Ft=te([Ze("dedocument-dedocument")],Ft);var _r=class extends Pe{constructor(){super();this.pageNumber=1;this.pageTotalNumber=1;Te.setupDomTools()}render(){return Z`
|
|
385
546
|
<div class="date">
|
|
386
547
|
${new Date(this.letterData.date).getDate()}. ${new Date(this.letterData.date).toLocaleString("default",{month:"long"})}
|
|
387
548
|
${new Date(this.letterData.date).getFullYear()}
|
|
@@ -406,9 +567,9 @@ EPC QR Code`,o=>{o&&console.error(o),console.log("success!")}),r.currentContent.
|
|
|
406
567
|
<div class="label">your vat id on file:</div>
|
|
407
568
|
${this.letterData.to.vatId||"not provided"}
|
|
408
569
|
</div>
|
|
409
|
-
`}};
|
|
410
|
-
<dedocument-letterheader .format="${"a4"}" .letterData=${
|
|
411
|
-
`,
|
|
570
|
+
`}};_r.demo=()=>Z`
|
|
571
|
+
<dedocument-letterheader .format="${"a4"}" .letterData=${To}></dedocument-letterheader>
|
|
572
|
+
`,_r.styles=[Qe.staticStyles,we`
|
|
412
573
|
:host {
|
|
413
574
|
color: #333;
|
|
414
575
|
}
|
|
@@ -418,7 +579,7 @@ EPC QR Code`,o=>{o&&console.error(o),console.log("success!")}),r.currentContent.
|
|
|
418
579
|
display: block;
|
|
419
580
|
overflow: hidden;
|
|
420
581
|
top: 200px;
|
|
421
|
-
right: ${
|
|
582
|
+
right: ${oe(Nt+"px")};
|
|
422
583
|
width: 200px;
|
|
423
584
|
text-align: right;
|
|
424
585
|
}
|
|
@@ -432,14 +593,14 @@ EPC QR Code`,o=>{o&&console.error(o),console.log("success!")}),r.currentContent.
|
|
|
432
593
|
.date {
|
|
433
594
|
position: absolute;
|
|
434
595
|
top: 180px;
|
|
435
|
-
right: ${
|
|
596
|
+
right: ${oe(Nt+"px")};
|
|
436
597
|
text-align: right;
|
|
437
598
|
}
|
|
438
599
|
|
|
439
600
|
.address {
|
|
440
601
|
position: absolute;
|
|
441
602
|
top: 180px;
|
|
442
|
-
left: ${
|
|
603
|
+
left: ${oe(_o+"px")};
|
|
443
604
|
}
|
|
444
605
|
|
|
445
606
|
.address .from {
|
|
@@ -449,45 +610,45 @@ EPC QR Code`,o=>{o&&console.error(o),console.log("success!")}),r.currentContent.
|
|
|
449
610
|
.address .to {
|
|
450
611
|
margin-top: 10px;
|
|
451
612
|
}
|
|
452
|
-
`],
|
|
613
|
+
`],te([le({type:Object,reflect:!0})],_r.prototype,"letterData",2),te([le({type:Number,reflect:!0})],_r.prototype,"pageNumber",2),te([le({type:Number,reflect:!0})],_r.prototype,"pageTotalNumber",2),_r=te([Ze("dedocument-letterheader")],_r);var ln=class extends Pe{constructor(){super();this.format="a4";this.printMode=!1;Te.setupDomTools()}render(){return Z`
|
|
453
614
|
<style>
|
|
454
615
|
:host {
|
|
455
616
|
box-shadow: ${this.printMode?"none":"0px 0px 10px rgba(0,0,0,0.3)"};
|
|
456
617
|
}
|
|
457
618
|
</style>
|
|
458
619
|
<slot></slot>
|
|
459
|
-
`}};
|
|
620
|
+
`}};ln.demo=()=>Z`
|
|
460
621
|
<dedocument-pagecontainer .format="${"a4"}"></dedocument-pagecontainer>
|
|
461
|
-
`,
|
|
622
|
+
`,ln.styles=[Qe.staticStyles,we`
|
|
462
623
|
:host {
|
|
463
624
|
display: block;
|
|
464
625
|
background: white;
|
|
465
626
|
color: #333;
|
|
466
627
|
padding: 0px;
|
|
467
|
-
width: ${
|
|
468
|
-
height: ${
|
|
628
|
+
width: ${oe(wc+"px")};
|
|
629
|
+
height: ${oe(fa+"px")};
|
|
469
630
|
position: relative;
|
|
470
631
|
border-radius: 3px;
|
|
471
632
|
overflow: hidden;
|
|
472
633
|
}
|
|
473
|
-
`],
|
|
634
|
+
`],te([le({type:String})],ln.prototype,"format",2),te([le({type:Boolean})],ln.prototype,"printMode",2),ln=te([Ze("dedocument-pagecontainer")],ln);var Ir=class extends Pe{constructor(){super();this.pageNumber=1;this.pageTotalNumber=1;Te.setupDomTools()}render(){return Z`
|
|
474
635
|
<style>
|
|
475
636
|
.content {
|
|
476
|
-
top: ${this.pageNumber===1?
|
|
637
|
+
top: ${this.pageNumber===1?oe("450px"):oe("200px")};
|
|
477
638
|
}
|
|
478
639
|
</style>
|
|
479
640
|
<div class="content">
|
|
480
|
-
${this.pageNumber===1?
|
|
641
|
+
${this.pageNumber===1?Z`<div class="subject">${this.letterData.subject}</div>`:Z`
|
|
481
642
|
<div class="subjectRepeated">
|
|
482
643
|
${this.letterData.subject} (Page ${this.pageNumber})
|
|
483
644
|
</div>
|
|
484
645
|
`}
|
|
485
646
|
<slot></slot>
|
|
486
|
-
${this.pageTotalNumber!==this.pageNumber?
|
|
647
|
+
${this.pageTotalNumber!==this.pageNumber?Z`<div class="continuesOnNextPage">Continues on page ${this.pageNumber+1}</div>`:Z`<div class="finalPage">This is the final page of this document.</div>`}
|
|
487
648
|
</div>
|
|
488
|
-
`}firstUpdated(r){super.firstUpdated(r),this.checkOverflow()}async checkOverflow(){await this.elementDomReady;let r=this.shadowRoot.querySelector(".content");return r.scrollHeight>r.clientHeight?(console.log("overflows"),!0):(console.log("does not overflow!"),!1)}};
|
|
649
|
+
`}firstUpdated(r){super.firstUpdated(r),this.checkOverflow()}async checkOverflow(){await this.elementDomReady;let r=this.shadowRoot.querySelector(".content");return r.scrollHeight>r.clientHeight?(console.log("overflows"),!0):(console.log("does not overflow!"),!1)}};Ir.demo=()=>Z`
|
|
489
650
|
<dedocument-pagecontent .format="${"a4"}"></dedocument-pagecontent>
|
|
490
|
-
`,
|
|
651
|
+
`,Ir.styles=[Qe.staticStyles,we`
|
|
491
652
|
:host {
|
|
492
653
|
color: #333;
|
|
493
654
|
}
|
|
@@ -495,8 +656,8 @@ EPC QR Code`,o=>{o&&console.error(o),console.log("success!")}),r.currentContent.
|
|
|
495
656
|
.content {
|
|
496
657
|
position: absolute;
|
|
497
658
|
|
|
498
|
-
left: ${
|
|
499
|
-
right: ${
|
|
659
|
+
left: ${oe(_o+"px")};
|
|
660
|
+
right: ${oe(Nt+"px")};
|
|
500
661
|
bottom: 170px;
|
|
501
662
|
overflow: visible;
|
|
502
663
|
}
|
|
@@ -542,7 +703,7 @@ EPC QR Code`,o=>{o&&console.error(o),console.log("success!")}),r.currentContent.
|
|
|
542
703
|
margin-top: 8px;
|
|
543
704
|
font-size: 10px;
|
|
544
705
|
}
|
|
545
|
-
`],
|
|
706
|
+
`],te([le({type:Number})],Ir.prototype,"letterData",2),te([le({type:Number})],Ir.prototype,"pageNumber",2),te([le({type:Number})],Ir.prototype,"pageTotalNumber",2),Ir=te([Ze("dedocument-pagecontent")],Ir);var Or=class extends Pe{constructor(){super();this.pageNumber=1;this.pageTotalNumber=1;Te.setupDomTools()}render(){return Z`
|
|
546
707
|
<div class="bottomstripe">
|
|
547
708
|
<div>
|
|
548
709
|
<strong>Address:</strong><br />
|
|
@@ -570,12 +731,12 @@ EPC QR Code`,o=>{o&&console.error(o),console.log("success!")}),r.currentContent.
|
|
|
570
731
|
<i>iban:</i> ${this.letterData?.from?.sepaConnection?.iban}<br />
|
|
571
732
|
<i>bic:</i> ${this.letterData?.from?.sepaConnection?.bic}<br />
|
|
572
733
|
</div>
|
|
573
|
-
<div class="documentTitle">Subject: <b>${this.letterData?.subject}</b>${(()=>{let r=
|
|
734
|
+
<div class="documentTitle">Subject: <b>${this.letterData?.subject}</b>${(()=>{let r=Z`/ Document-UID: <b>${Z`<a href="https://uid.signature.digital/">https://uid.signature.digital/</a>`}</b>`;return""})()}</div>
|
|
574
735
|
<div class="pageNumber">page ${this.pageNumber} of ${this.pageTotalNumber}</div>
|
|
575
736
|
</div>
|
|
576
|
-
`}};
|
|
737
|
+
`}};Or.demo=()=>Z`
|
|
577
738
|
<dedocument-pagefooter .format="${"a4"}"></dedocument-pagefooter>
|
|
578
|
-
`,
|
|
739
|
+
`,Or.styles=[Qe.staticStyles,we`
|
|
579
740
|
:host {
|
|
580
741
|
color: #333;
|
|
581
742
|
}
|
|
@@ -589,7 +750,7 @@ EPC QR Code`,o=>{o&&console.error(o),console.log("success!")}),r.currentContent.
|
|
|
589
750
|
right: 0px;
|
|
590
751
|
height: 130px;
|
|
591
752
|
content: '';
|
|
592
|
-
padding: 30px ${
|
|
753
|
+
padding: 30px ${oe(Nt+"px")} 10px ${oe(_o+"px")};
|
|
593
754
|
grid-template-columns: calc(100% / 4) calc(100% / 4) calc(100% / 4) calc(100% / 4);
|
|
594
755
|
grid-gap: 5px;
|
|
595
756
|
border-top: 2px solid #e4002b;
|
|
@@ -598,7 +759,7 @@ EPC QR Code`,o=>{o&&console.error(o),console.log("success!")}),r.currentContent.
|
|
|
598
759
|
.bottomstripe .pageNumber {
|
|
599
760
|
position: absolute;
|
|
600
761
|
top: 0px;
|
|
601
|
-
right: ${
|
|
762
|
+
right: ${oe(Nt+"px")};
|
|
602
763
|
background: #e4002b;
|
|
603
764
|
padding: 3px;
|
|
604
765
|
font-size: 9px;
|
|
@@ -609,7 +770,7 @@ EPC QR Code`,o=>{o&&console.error(o),console.log("success!")}),r.currentContent.
|
|
|
609
770
|
.bottomstripe .documentTitle {
|
|
610
771
|
position: absolute;
|
|
611
772
|
top: -18px;
|
|
612
|
-
right: ${
|
|
773
|
+
right: ${oe(Nt+"px")};
|
|
613
774
|
background: #dddddd;
|
|
614
775
|
padding: 3px;
|
|
615
776
|
font-size: 9px;
|
|
@@ -617,14 +778,14 @@ EPC QR Code`,o=>{o&&console.error(o),console.log("success!")}),r.currentContent.
|
|
|
617
778
|
border-top-left-radius: 3px;
|
|
618
779
|
border-top-right-radius: 3px;
|
|
619
780
|
}
|
|
620
|
-
`],
|
|
781
|
+
`],te([le({type:Object})],Or.prototype,"letterData",2),te([le({type:Number})],Or.prototype,"pageNumber",2),te([le({type:Number})],Or.prototype,"pageTotalNumber",2),Or=te([Ze("dedocument-pagefooter")],Or);var Mr=class extends Pe{constructor(){super();this.letterData=null;this.pageNumber=1;this.pageTotalNumber=1;Te.setupDomTools()}render(){return Z`
|
|
621
782
|
<div class="topstripe">
|
|
622
783
|
<img src="https://assetbroker.lossless.one/brandfiles/lossless/svg-minimal-bright.svg" />
|
|
623
784
|
</div>
|
|
624
785
|
<div class="topstripe2">${this.letterData?.from?.description||"[no letterData.from.description set]"}</div>
|
|
625
|
-
`}};
|
|
786
|
+
`}};Mr.demo=()=>Z`
|
|
626
787
|
<dedocument-pageheader .format="${"a4"}"></dedocument-pageheader>
|
|
627
|
-
`,
|
|
788
|
+
`,Mr.styles=[Qe.staticStyles,we`
|
|
628
789
|
:host {
|
|
629
790
|
color: #333;
|
|
630
791
|
}
|
|
@@ -645,7 +806,7 @@ EPC QR Code`,o=>{o&&console.error(o),console.log("success!")}),r.currentContent.
|
|
|
645
806
|
overflow: hidden;
|
|
646
807
|
top: 130px;
|
|
647
808
|
left: auto;
|
|
648
|
-
right: ${
|
|
809
|
+
right: ${oe(Nt+"px")};
|
|
649
810
|
height: 20px;
|
|
650
811
|
line-height: 20px;
|
|
651
812
|
color: #333;
|
|
@@ -657,23 +818,23 @@ EPC QR Code`,o=>{o&&console.error(o),console.log("success!")}),r.currentContent.
|
|
|
657
818
|
bottom: 10px;
|
|
658
819
|
height: 25px;
|
|
659
820
|
left: auto;
|
|
660
|
-
right: ${
|
|
821
|
+
right: ${oe(Nt+"px")};
|
|
661
822
|
}
|
|
662
|
-
`],
|
|
663
|
-
<dedocument-viewer .letterData=${
|
|
664
|
-
`;var
|
|
823
|
+
`],te([le({type:Object})],Mr.prototype,"letterData",2),te([le({type:Number})],Mr.prototype,"pageNumber",2),te([le({type:Number})],Mr.prototype,"pageTotalNumber",2),Mr=te([Ze("dedocument-pageheader")],Mr);var QE=()=>Z`
|
|
824
|
+
<dedocument-viewer .letterData=${To}></dedocument-viewer>
|
|
825
|
+
`;var Io=class extends Pe{constructor(){super(...arguments);this.letterData=null;this.render=()=>Z`
|
|
665
826
|
<div class="maincontainer">
|
|
666
827
|
<div class="viewport">
|
|
667
|
-
${this.letterData?
|
|
828
|
+
${this.letterData?Z` <dedocument-dedocument .letterData=${this.letterData}></dedocument-dedocument> `:Z``}
|
|
668
829
|
</div>
|
|
669
830
|
<div class="controls"></div>
|
|
670
831
|
</div>
|
|
671
|
-
`;this.updated=r=>{super.updated(r),r.has("letterData")}}};
|
|
832
|
+
`;this.updated=r=>{super.updated(r),r.has("letterData")}}};Io.demo=QE,Io.styles=[lc.defaultStyles,we`
|
|
672
833
|
.maincontainer {
|
|
673
834
|
position: relative;
|
|
674
835
|
height: 100%;
|
|
675
836
|
width: 100%;
|
|
676
|
-
background: ${
|
|
837
|
+
background: ${lc.bdTheme("#eeeeeb","#111")};
|
|
677
838
|
}
|
|
678
839
|
.controls {
|
|
679
840
|
top: 0px;
|
|
@@ -682,7 +843,7 @@ EPC QR Code`,o=>{o&&console.error(o),console.log("success!")}),r.currentContent.
|
|
|
682
843
|
position: absolute;
|
|
683
844
|
height: 32px;
|
|
684
845
|
width: 100%;
|
|
685
|
-
background: ${
|
|
846
|
+
background: ${lc.bdTheme("#eeeeeb","#111111ee")};
|
|
686
847
|
box-shadow: 0px 2px 8px 0px #000000;
|
|
687
848
|
}
|
|
688
849
|
.controlsShadow {
|
|
@@ -708,20 +869,9 @@ EPC QR Code`,o=>{o&&console.error(o),console.log("success!")}),r.currentContent.
|
|
|
708
869
|
overflow-y: scroll;
|
|
709
870
|
overscroll-behavior: contain;
|
|
710
871
|
}
|
|
711
|
-
`],
|
|
872
|
+
`],Io=te([Ze("dedocument-viewer")],Io);export{ui as DeContentInvoice,Ft as DeDocument,Io as DeDocumentViewer,_r as DeLetterHeader,ht as DePage,ln as DePageContainer,Ir as DePageContent,Or as DePageFooter,Mr as DePageHeader,fa as a4Height,wc as a4Width,To as demoLetter,_o as leftMargin,Nt as rightMargin};
|
|
712
873
|
/*! Bundled license information:
|
|
713
874
|
|
|
714
|
-
ieee754/index.js:
|
|
715
|
-
(*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> *)
|
|
716
|
-
|
|
717
|
-
buffer/index.js:
|
|
718
|
-
(*!
|
|
719
|
-
* The buffer module from node.js, for the browser.
|
|
720
|
-
*
|
|
721
|
-
* @author Feross Aboukhadijeh <https://feross.org>
|
|
722
|
-
* @license MIT
|
|
723
|
-
*)
|
|
724
|
-
|
|
725
875
|
punycode/punycode.js:
|
|
726
876
|
(*! https://mths.be/punycode v1.4.1 by @mathias *)
|
|
727
877
|
|