@design.estate/dees-document 1.0.94 → 1.0.98

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.
Files changed (38) hide show
  1. package/dist_bundle/bundle.js +187 -130
  2. package/dist_bundle/bundle.js.map +4 -4
  3. package/dist_ts/00_commitinfo_data.js +1 -1
  4. package/dist_ts/plugins.d.ts +1 -0
  5. package/dist_ts_web/00_commitinfo_data.js +1 -1
  6. package/dist_ts_web/elements/contentinvoice.js +3 -2
  7. package/dist_ts_web/elements/document.d.ts +3 -0
  8. package/dist_ts_web/elements/document.demo.d.ts +1 -0
  9. package/dist_ts_web/elements/document.demo.js +6 -0
  10. package/dist_ts_web/elements/document.js +55 -19
  11. package/dist_ts_web/elements/index.d.ts +1 -0
  12. package/dist_ts_web/elements/index.js +2 -1
  13. package/dist_ts_web/elements/letterheader.js +3 -2
  14. package/dist_ts_web/elements/page.d.ts +4 -0
  15. package/dist_ts_web/elements/page.js +89 -38
  16. package/dist_ts_web/elements/pagecontainer.js +3 -2
  17. package/dist_ts_web/elements/pagecontent.js +3 -2
  18. package/dist_ts_web/elements/pagefooter.js +3 -2
  19. package/dist_ts_web/elements/pageheader.js +3 -2
  20. package/dist_ts_web/elements/viewer.d.ts +14 -0
  21. package/dist_ts_web/elements/viewer.demo.d.ts +1 -0
  22. package/dist_ts_web/elements/viewer.demo.js +6 -0
  23. package/dist_ts_web/elements/viewer.js +84 -0
  24. package/dist_ts_web/pages/page1.js +1 -1
  25. package/dist_ts_web/pages/page2.js +15 -2
  26. package/dist_watch/bundle.js +2746 -2266
  27. package/dist_watch/bundle.js.map +4 -4
  28. package/package.json +23 -23
  29. package/ts/00_commitinfo_data.ts +1 -1
  30. package/ts_web/00_commitinfo_data.ts +1 -1
  31. package/ts_web/elements/document.demo.ts +6 -0
  32. package/ts_web/elements/document.ts +55 -19
  33. package/ts_web/elements/index.ts +1 -0
  34. package/ts_web/elements/page.ts +86 -36
  35. package/ts_web/elements/viewer.demo.ts +6 -0
  36. package/ts_web/elements/viewer.ts +83 -0
  37. package/ts_web/pages/page1.ts +1 -1
  38. package/ts_web/pages/page2.ts +14 -1
@@ -1,59 +1,59 @@
1
- var Jg=Object.create;var Lo=Object.defineProperty;var Kl=Object.getOwnPropertyDescriptor;var Yg=Object.getOwnPropertyNames;var Qg=Object.getPrototypeOf,Zg=Object.prototype.hasOwnProperty;var M=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),X=(t,e)=>{for(var r in e)Lo(t,r,{get:e[r],enumerable:!0})},Xg=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of Yg(e))!Zg.call(t,o)&&o!==r&&Lo(t,o,{get:()=>e[o],enumerable:!(n=Kl(e,o))||n.enumerable});return t};var Be=(t,e,r)=>(r=t!=null?Jg(Qg(t)):{},Xg(e||!t||!t.__esModule?Lo(r,"default",{value:t,enumerable:!0}):r,t));var V=(t,e,r,n)=>{for(var o=n>1?void 0:n?Kl(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&&Lo(e,r,o),o};var Xo=M(Zo=>{"use strict";Object.defineProperty(Zo,"__esModule",{value:!0});Zo.uni=void 0;var ry=(t="uni")=>`${t}_${"xxxxxxxxxxxxxxxxxxxxxxxx".replace(/[xy]/g,e=>{let r=Math.random()*16|0;return(e==="x"?r:r&3|8).toString(16)})}`;Zo.uni=ry});var nf=M((ha,da)=>{(function(t,e){typeof ha=="object"&&typeof da<"u"?da.exports=e():typeof define=="function"&&define.amd?define(e):(t=typeof globalThis<"u"?globalThis:t||self).dayjs=e()})(ha,function(){"use strict";var t=1e3,e=6e4,r=36e5,n="millisecond",o="second",i="minute",s="hour",a="day",u="week",l="month",c="quarter",p="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+)?$/,C=/\[([^\]]+)]|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,B={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)+$},A={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,l),k=E-T<0,b=S.clone().add(P+(k?-1:1),l);return+(-(P+(E-T)/(k?T-b:b-T))||0)},a:function($){return $<0?Math.ceil($)||0:Math.floor($)},p:function($){return{M:l,y:p,w:u,d:a,D:h,h:s,m:i,s:o,ms:n,Q:c}[$]||String($||"").toLowerCase().replace(/s$/,"")},u:function($){return $===void 0}},O="en",N={};N[O]=B;var j="$isDayjsObject",U=function($){return $ instanceof te||!(!$||!$[j])},J=function $(S,E,P){var T;if(!S)return O;if(typeof S=="string"){var k=S.toLowerCase();N[k]&&(T=k),E&&(N[k]=E,T=k);var b=S.split("-");if(!T&&b.length>1)return $(b[0])}else{var I=S.name;N[I]=S,T=I}return!P&&T&&(O=T),T||!P&&O},F=function($,S){if(U($))return $.clone();var E=typeof S=="object"?S:{};return E.date=$,E.args=arguments,new te(E)},D=A;D.l=J,D.i=U,D.w=function($,S){return F($,{locale:S.$L,utc:S.$u,x:S.$x,$offset:S.$offset})};var te=function(){function $(E){this.$L=J(E.locale,null,!0),this.parse(E),this.$x=this.$x||E.x||{},this[j]=!0}var S=$.prototype;return S.parse=function(E){this.$d=function(P){var T=P.date,k=P.utc;if(T===null)return new Date(NaN);if(D.u(T))return new Date;if(T instanceof Date)return new Date(T);if(typeof T=="string"&&!/Z$/i.test(T)){var b=T.match(w);if(b){var I=b[2]-1||0,R=(b[7]||"0").substring(0,3);return k?new Date(Date.UTC(b[1],I,b[3]||1,b[4]||0,b[5]||0,b[6]||0,R)):new Date(b[1],I,b[3]||1,b[4]||0,b[5]||0,b[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 D},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 D.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,k=!!D.u(P)||P,b=D.p(E),I=function(m,f){var d=D.w(T.$u?Date.UTC(T.$y,f,m):new Date(T.$y,f,m),T);return k?d:d.endOf(a)},R=function(m,f){return D.w(T.toDate()[m].apply(T.toDate("s"),(k?[0,0,0,0]:[23,59,59,999]).slice(f)),T)},q=this.$W,z=this.$M,K=this.$D,re="set"+(this.$u?"UTC":"");switch(b){case p:return k?I(1,0):I(31,11);case l:return k?I(1,z):I(0,z+1);case u:var fe=this.$locale().weekStart||0,Se=(q<fe?q+7:q)-fe;return I(k?K-Se:K+(6-Se),z);case a:case h:return R(re+"Hours",0);case s:return R(re+"Minutes",1);case i:return R(re+"Seconds",2);case o:return R(re+"Milliseconds",3);default:return this.clone()}},S.endOf=function(E){return this.startOf(E,!1)},S.$set=function(E,P){var T,k=D.p(E),b="set"+(this.$u?"UTC":""),I=(T={},T[a]=b+"Date",T[h]=b+"Date",T[l]=b+"Month",T[p]=b+"FullYear",T[s]=b+"Hours",T[i]=b+"Minutes",T[o]=b+"Seconds",T[n]=b+"Milliseconds",T)[k],R=k===a?this.$D+(P-this.$W):P;if(k===l||k===p){var q=this.clone().set(h,1);q.$d[I](R),q.init(),this.$d=q.set(h,Math.min(this.$D,q.daysInMonth())).$d}else I&&this.$d[I](R);return this.init(),this},S.set=function(E,P){return this.clone().$set(E,P)},S.get=function(E){return this[D.p(E)]()},S.add=function(E,P){var T,k=this;E=Number(E);var b=D.p(P),I=function(z){var K=F(k);return D.w(K.date(K.date()+Math.round(z*E)),k)};if(b===l)return this.set(l,this.$M+E);if(b===p)return this.set(p,this.$y+E);if(b===a)return I(1);if(b===u)return I(7);var R=(T={},T[i]=e,T[s]=r,T[o]=t,T)[b]||1,q=this.$d.getTime()+E*R;return D.w(q,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 k=E||"YYYY-MM-DDTHH:mm:ssZ",b=D.z(this),I=this.$H,R=this.$m,q=this.$M,z=T.weekdays,K=T.months,re=T.meridiem,fe=function(f,d,g,v){return f&&(f[d]||f(P,k))||g[d].slice(0,v)},Se=function(f){return D.s(I%12||12,f,"0")},m=re||function(f,d,g){var v=f<12?"AM":"PM";return g?v.toLowerCase():v};return k.replace(C,function(f,d){return d||function(g){switch(g){case"YY":return String(P.$y).slice(-2);case"YYYY":return D.s(P.$y,4,"0");case"M":return q+1;case"MM":return D.s(q+1,2,"0");case"MMM":return fe(T.monthsShort,q,K,3);case"MMMM":return fe(K,q);case"D":return P.$D;case"DD":return D.s(P.$D,2,"0");case"d":return String(P.$W);case"dd":return fe(T.weekdaysMin,P.$W,z,2);case"ddd":return fe(T.weekdaysShort,P.$W,z,3);case"dddd":return z[P.$W];case"H":return String(I);case"HH":return D.s(I,2,"0");case"h":return Se(1);case"hh":return Se(2);case"a":return m(I,R,!0);case"A":return m(I,R,!1);case"m":return String(R);case"mm":return D.s(R,2,"0");case"s":return String(P.$s);case"ss":return D.s(P.$s,2,"0");case"SSS":return D.s(P.$ms,3,"0");case"Z":return b}return null}(f)||b.replace(":","")})},S.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},S.diff=function(E,P,T){var k,b=this,I=D.p(P),R=F(E),q=(R.utcOffset()-this.utcOffset())*e,z=this-R,K=function(){return D.m(b,R)};switch(I){case p:k=K()/12;break;case l:k=K();break;case c:k=K()/3;break;case u:k=(z-q)/6048e5;break;case a:k=(z-q)/864e5;break;case s:k=z/r;break;case i:k=z/e;break;case o:k=z/t;break;default:k=z}return T?k:D.a(k)},S.daysInMonth=function(){return this.endOf(l).$D},S.$locale=function(){return N[this.$L]},S.locale=function(E,P){if(!E)return this.$L;var T=this.clone(),k=J(E,P,!0);return k&&(T.$L=k),T},S.clone=function(){return D.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()},$}(),we=te.prototype;return F.prototype=we,[["$ms",n],["$s",o],["$m",i],["$H",s],["$W",a],["$M",l],["$y",p],["$D",h]].forEach(function($){we[$[1]]=function(S){return this.$g(S,$[0],$[1])}}),F.extend=function($,S){return $.$i||($(S,te,F),$.$i=!0),F},F.locale=J,F.isDayjs=U,F.unix=function($){return F(1e3*$)},F.en=N[O],F.Ls=N,F.p={},F})});var of=M((ma,ga)=>{(function(t,e){typeof ma=="object"&&typeof ga<"u"?ga.exports=e():typeof define=="function"&&define.amd?define(e):(t=typeof globalThis<"u"?globalThis:t||self).dayjs_plugin_isToday=e()})(ma,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 uf=M((g2,af)=>{"use strict";af.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 cf=M((y2,lf)=>{"use strict";lf.exports=Object.freeze({DISCONNECTED:1,PRECEDING:2,FOLLOWING:4,CONTAINS:8,CONTAINED_BY:16})});var mf=M((x2,df)=>{"use strict";var ff=Symbol(),pf=Symbol(),kt=Symbol(),hf=Symbol(),it=class{constructor(e,r,n,o){this[ff]=e,this[pf]=r,this[kt]=n,this[hf]=o}next(){let e=this[ff],r=this[hf],n=this[pf];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(it.prototype,Symbol.iterator,{value:function(){return this},writable:!1});it.PREV=1;it.NEXT=2;it.PARENT=3;it.PRECEDING=4;it.FOLLOWING=5;Object.freeze(it);Object.freeze(it.prototype);df.exports=it});var yf=M((v2,gf)=>{"use strict";var Jy=uf(),jt=cf(),Ge=mf();function _a(){return!0}function Vr(t,e){return t[t.length-1-e]}var Ci=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 Jy)}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||_a,i=r&&r.thisArg||void 0,s=this._node(e),a=s.firstChild,u=0;for(;a;){let l=this._node(a);l.setCachedIndex(s,u),o.call(i,a)&&n.push(a),a=l.nextSibling,++u}return n}ancestorsToArray(e,r){let n=r&&r.array||[],o=r&&r.filter||_a,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||_a,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 Ge(this,e,n?o.lastChild:o.firstChild,n?Ge.PREV:Ge.NEXT)}previousSiblingsIterator(e){return new Ge(this,e,this._node(e).previousSibling,Ge.PREV)}nextSiblingsIterator(e){return new Ge(this,e,this._node(e).nextSibling,Ge.NEXT)}ancestorsIterator(e){return new Ge(this,e,e,Ge.PARENT)}treeIterator(e,r){let n=r&&r.reverse;return new Ge(this,e,n?this.lastInclusiveDescendant(e):e,n?Ge.PRECEDING:Ge.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 c=e;for(;c;){if(c===r)return jt.CONTAINS|jt.PRECEDING;n.push(c),c=this.parent(c)}}let o=[];{let c=r;for(;c;){if(c===e)return jt.CONTAINED_BY|jt.FOLLOWING;o.push(c),c=this.parent(c)}}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 c=0;c<a;++c){let p=Vr(n,c),h=Vr(o,c);if(p!==h)break;s=c}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}};gf.exports=Ci;Ci.TreePosition=jt});var wf=M(Ai=>{"use strict";Ai.byteLength=Zy;Ai.toByteArray=Ky;Ai.fromByteArray=r0;var ct=[],Je=[],Qy=typeof Uint8Array<"u"?Uint8Array:Array,Ba="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(gr=0,vf=Ba.length;gr<vf;++gr)ct[gr]=Ba[gr],Je[Ba.charCodeAt(gr)]=gr;var gr,vf;Je["-".charCodeAt(0)]=62;Je["_".charCodeAt(0)]=63;function bf(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 Zy(t){var e=bf(t),r=e[0],n=e[1];return(r+n)*3/4-n}function Xy(t,e,r){return(e+r)*3/4-r}function Ky(t){var e,r=bf(t),n=r[0],o=r[1],i=new Qy(Xy(t,n,o)),s=0,a=o>0?n-4:n,u;for(u=0;u<a;u+=4)e=Je[t.charCodeAt(u)]<<18|Je[t.charCodeAt(u+1)]<<12|Je[t.charCodeAt(u+2)]<<6|Je[t.charCodeAt(u+3)],i[s++]=e>>16&255,i[s++]=e>>8&255,i[s++]=e&255;return o===2&&(e=Je[t.charCodeAt(u)]<<2|Je[t.charCodeAt(u+1)]>>4,i[s++]=e&255),o===1&&(e=Je[t.charCodeAt(u)]<<10|Je[t.charCodeAt(u+1)]<<4|Je[t.charCodeAt(u+2)]>>2,i[s++]=e>>8&255,i[s++]=e&255),i}function e0(t){return ct[t>>18&63]+ct[t>>12&63]+ct[t>>6&63]+ct[t&63]}function t0(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(e0(n));return o.join("")}function r0(t){for(var e,r=t.length,n=r%3,o=[],i=16383,s=0,a=r-n;s<a;s+=i)o.push(t0(t,s,s+i>a?a:s+i));return n===1?(e=t[r-1],o.push(ct[e>>2]+ct[e<<4&63]+"==")):n===2&&(e=(t[r-2]<<8)+t[r-1],o.push(ct[e>>10]+ct[e>>4&63]+ct[e<<2&63]+"=")),o.join("")}});var Sf=M(Oa=>{Oa.read=function(t,e,r,n,o){var i,s,a=o*8-n-1,u=(1<<a)-1,l=u>>1,c=-7,p=r?o-1:0,h=r?-1:1,y=t[e+p];for(p+=h,i=y&(1<<-c)-1,y>>=-c,c+=a;c>0;i=i*256+t[e+p],p+=h,c-=8);for(s=i&(1<<-c)-1,i>>=-c,c+=n;c>0;s=s*256+t[e+p],p+=h,c-=8);if(i===0)i=1-l;else{if(i===u)return s?NaN:(y?-1:1)*(1/0);s=s+Math.pow(2,n),i=i-l}return(y?-1:1)*s*Math.pow(2,i-n)};Oa.write=function(t,e,r,n,o,i){var s,a,u,l=i*8-o-1,c=(1<<l)-1,p=c>>1,h=o===23?Math.pow(2,-24)-Math.pow(2,-77):0,y=n?0:i-1,w=n?1:-1,C=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=c):(s=Math.floor(Math.log(e)/Math.LN2),e*(u=Math.pow(2,-s))<1&&(s--,u*=2),s+p>=1?e+=h/u:e+=h*Math.pow(2,1-p),e*u>=2&&(s++,u/=2),s+p>=c?(a=0,s=c):s+p>=1?(a=(e*u-1)*Math.pow(2,o),s=s+p):(a=e*Math.pow(2,p-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,l+=o;l>0;t[r+y]=s&255,y+=w,s/=256,l-=8);t[r+y-w]|=C*128}});var Lf=M(Zr=>{"use strict";var Da=wf(),Yr=Sf(),Ef=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;Zr.Buffer=x;Zr.SlowBuffer=u0;Zr.INSPECT_MAX_BYTES=50;var Ii=2147483647;Zr.kMaxLength=Ii;x.TYPED_ARRAY_SUPPORT=n0();!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 n0(){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>Ii)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 La(t)}return Af(t,e,r)}x.poolSize=8192;function Af(t,e,r){if(typeof t=="string")return i0(t,e);if(ArrayBuffer.isView(t))return s0(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 Fa(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=a0(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 Af(t,e,r)};Object.setPrototypeOf(x.prototype,Uint8Array.prototype);Object.setPrototypeOf(x,Uint8Array);function If(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 o0(t,e,r){return If(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 o0(t,e,r)};function La(t){return If(t),_t(t<0?0:ka(t)|0)}x.allocUnsafe=function(t){return La(t)};x.allocUnsafeSlow=function(t){return La(t)};function i0(t,e){if((typeof e!="string"||e==="")&&(e="utf8"),!x.isEncoding(e))throw new TypeError("Unknown encoding: "+e);let r=Mf(t,e)|0,n=_t(r),o=n.write(t,e);return o!==r&&(n=n.slice(0,o)),n}function Ra(t){let e=t.length<0?0:ka(t.length)|0,r=_t(e);for(let n=0;n<e;n+=1)r[n]=t[n]&255;return r}function s0(t){if(ft(t,Uint8Array)){let e=new Uint8Array(t);return Fa(e.buffer,e.byteOffset,e.byteLength)}return Ra(t)}function Fa(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 a0(t){if(x.isBuffer(t)){let e=ka(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):Ra(t);if(t.type==="Buffer"&&Array.isArray(t.data))return Ra(t.data)}function ka(t){if(t>=Ii)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+Ii.toString(16)+" bytes");return t|0}function u0(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 Mf(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 Ua(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return r*2;case"hex":return r>>>1;case"base64":return Uf(t).length;default:if(o)return n?-1:Ua(t).length;e=(""+e).toLowerCase(),o=!0}}x.byteLength=Mf;function l0(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 v0(this,e,r);case"utf8":case"utf-8":return $f(this,e,r);case"ascii":return y0(this,e,r);case"latin1":case"binary":return x0(this,e,r);case"base64":return m0(this,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return b0(this,e,r);default:if(n)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),n=!0}}x.prototype._isBuffer=!0;function yr(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)yr(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)yr(this,r,r+3),yr(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)yr(this,r,r+7),yr(this,r+1,r+6),yr(this,r+2,r+5),yr(this,r+3,r+4);return this};x.prototype.toString=function(){let e=this.length;return e===0?"":arguments.length===0?$f(this,0,e):l0.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+">"};Ef&&(x.prototype[Ef]=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),l=this.slice(o,i),c=e.slice(r,n);for(let p=0;p<u;++p)if(l[p]!==c[p]){s=l[p],a=c[p];break}return s<a?-1:a<s?1:0};function Pf(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:Tf(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):Tf(t,[e],r,n,o);throw new TypeError("val must be string, number or Buffer")}function Tf(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(c,p){return i===1?c[p]:c.readUInt16BE(p*i)}let l;if(o){let c=-1;for(l=r;l<s;l++)if(u(t,l)===u(e,c===-1?0:l-c)){if(c===-1&&(c=l),l-c+1===a)return c*i}else c!==-1&&(l-=l-c),c=-1}else for(r+a>s&&(r=s-a),l=r;l>=0;l--){let c=!0;for(let p=0;p<a;p++)if(u(t,l+p)!==u(e,p)){c=!1;break}if(c)return l}return-1}x.prototype.includes=function(e,r,n){return this.indexOf(e,r,n)!==-1};x.prototype.indexOf=function(e,r,n){return Pf(this,e,r,n,!0)};x.prototype.lastIndexOf=function(e,r,n){return Pf(this,e,r,n,!1)};function c0(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 f0(t,e,r,n){return Mi(Ua(e,t.length-r),t,r,n)}function p0(t,e,r,n){return Mi(T0(e),t,r,n)}function h0(t,e,r,n){return Mi(Uf(e),t,r,n)}function d0(t,e,r,n){return Mi(_0(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 c0(this,e,r,n);case"utf8":case"utf-8":return f0(this,e,r,n);case"ascii":case"latin1":case"binary":return p0(this,e,r,n);case"base64":return h0(this,e,r,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return d0(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 m0(t,e,r){return e===0&&r===t.length?Da.fromByteArray(t):Da.fromByteArray(t.slice(e,r))}function $f(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,l,c,p;switch(a){case 1:i<128&&(s=i);break;case 2:u=t[o+1],(u&192)===128&&(p=(i&31)<<6|u&63,p>127&&(s=p));break;case 3:u=t[o+1],l=t[o+2],(u&192)===128&&(l&192)===128&&(p=(i&15)<<12|(u&63)<<6|l&63,p>2047&&(p<55296||p>57343)&&(s=p));break;case 4:u=t[o+1],l=t[o+2],c=t[o+3],(u&192)===128&&(l&192)===128&&(c&192)===128&&(p=(i&15)<<18|(u&63)<<12|(l&63)<<6|c&63,p>65535&&p<1114112&&(s=p))}}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 g0(n)}var _f=4096;function g0(t){let e=t.length;if(e<=_f)return String.fromCharCode.apply(String,t);let r="",n=0;for(;n<e;)r+=String.fromCharCode.apply(String,t.slice(n,n+=_f));return r}function y0(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 x0(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 v0(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+=C0[t[i]];return o}function b0(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 Me(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||Me(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||Me(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||Me(e,1,this.length),this[e]};x.prototype.readUint16LE=x.prototype.readUInt16LE=function(e,r){return e=e>>>0,r||Me(e,2,this.length),this[e]|this[e+1]<<8};x.prototype.readUint16BE=x.prototype.readUInt16BE=function(e,r){return e=e>>>0,r||Me(e,2,this.length),this[e]<<8|this[e+1]};x.prototype.readUint32LE=x.prototype.readUInt32LE=function(e,r){return e=e>>>0,r||Me(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||Me(e,4,this.length),this[e]*16777216+(this[e+1]<<16|this[e+2]<<8|this[e+3])};x.prototype.readBigUInt64LE=qt(function(e){e=e>>>0,Qr(e,"offset");let r=this[e],n=this[e+7];(r===void 0||n===void 0)&&no(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=qt(function(e){e=e>>>0,Qr(e,"offset");let r=this[e],n=this[e+7];(r===void 0||n===void 0)&&no(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||Me(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||Me(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||Me(e,1,this.length),this[e]&128?(255-this[e]+1)*-1:this[e]};x.prototype.readInt16LE=function(e,r){e=e>>>0,r||Me(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||Me(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||Me(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||Me(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]};x.prototype.readBigInt64LE=qt(function(e){e=e>>>0,Qr(e,"offset");let r=this[e],n=this[e+7];(r===void 0||n===void 0)&&no(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=qt(function(e){e=e>>>0,Qr(e,"offset");let r=this[e],n=this[e+7];(r===void 0||n===void 0)&&no(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||Me(e,4,this.length),Yr.read(this,e,!0,23,4)};x.prototype.readFloatBE=function(e,r){return e=e>>>0,r||Me(e,4,this.length),Yr.read(this,e,!1,23,4)};x.prototype.readDoubleLE=function(e,r){return e=e>>>0,r||Me(e,8,this.length),Yr.read(this,e,!0,52,8)};x.prototype.readDoubleBE=function(e,r){return e=e>>>0,r||Me(e,8,this.length),Yr.read(this,e,!1,52,8)};function ke(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;ke(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;ke(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||ke(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||ke(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||ke(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||ke(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||ke(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 Nf(t,e,r,n,o){Ff(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 Bf(t,e,r,n,o){Ff(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=qt(function(e,r=0){return Nf(this,e,r,BigInt(0),BigInt("0xffffffffffffffff"))});x.prototype.writeBigUInt64BE=qt(function(e,r=0){return Bf(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);ke(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);ke(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||ke(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||ke(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||ke(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||ke(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||ke(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=qt(function(e,r=0){return Nf(this,e,r,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});x.prototype.writeBigInt64BE=qt(function(e,r=0){return Bf(this,e,r,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function Of(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 Df(t,e,r,n,o){return e=+e,r=r>>>0,o||Of(t,e,r,4,34028234663852886e22,-34028234663852886e22),Yr.write(t,e,r,n,23,4),r+4}x.prototype.writeFloatLE=function(e,r,n){return Df(this,e,r,!0,n)};x.prototype.writeFloatBE=function(e,r,n){return Df(this,e,r,!1,n)};function Rf(t,e,r,n,o){return e=+e,r=r>>>0,o||Of(t,e,r,8,17976931348623157e292,-17976931348623157e292),Yr.write(t,e,r,n,52,8),r+8}x.prototype.writeDoubleLE=function(e,r,n){return Rf(this,e,r,!0,n)};x.prototype.writeDoubleBE=function(e,r,n){return Rf(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 ja(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}`}}}ja("ERR_BUFFER_OUT_OF_BOUNDS",function(t){return t?`${t} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError);ja("ERR_INVALID_ARG_TYPE",function(t,e){return`The "${t}" argument must be of type number. Received type ${typeof e}`},TypeError);ja("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=Cf(String(r)):typeof r=="bigint"&&(o=String(r),(r>BigInt(2)**BigInt(32)||r<-(BigInt(2)**BigInt(32)))&&(o=Cf(o)),o+="n"),n+=` It must be ${e}. Received ${o}`,n},RangeError);function Cf(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 w0(t,e,r){Qr(e,"offset"),(t[e]===void 0||t[e+r]===void 0)&&no(e,t.length-(r+1))}function Ff(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)}w0(n,o,i)}function Qr(t,e){if(typeof t!="number")throw new Jr.ERR_INVALID_ARG_TYPE(e,"number",t)}function no(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 S0=/[^+/0-9A-Za-z-_]/g;function E0(t){if(t=t.split("=")[0],t=t.trim().replace(S0,""),t.length<2)return"";for(;t.length%4!==0;)t=t+"=";return t}function Ua(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 T0(t){let e=[];for(let r=0;r<t.length;++r)e.push(t.charCodeAt(r)&255);return e}function _0(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 Uf(t){return Da.toByteArray(E0(t))}function Mi(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 C0=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 qt(t){return typeof BigInt>"u"?A0:t}function A0(){throw new Error("BigInt not supported")}});var kf=M((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,l=38,c=700,p=72,h=128,y="-",w=/^xn--/,C=/[^\x20-\x7E]/,B=/[\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"},A=s-a,O=Math.floor,N=String.fromCharCode,j;function U(b){throw new RangeError(_[b])}function J(b,I){for(var R=b.length,q=[];R--;)q[R]=I(b[R]);return q}function F(b,I){var R=b.split("@"),q="";R.length>1&&(q=R[0]+"@",b=R[1]),b=b.replace(B,".");var z=b.split("."),K=J(z,I).join(".");return q+K}function D(b){for(var I=[],R=0,q=b.length,z,K;R<q;)z=b.charCodeAt(R++),z>=55296&&z<=56319&&R<q?(K=b.charCodeAt(R++),(K&64512)==56320?I.push(((z&1023)<<10)+(K&1023)+65536):(I.push(z),R--)):I.push(z);return I}function te(b){return J(b,function(I){var R="";return I>65535&&(I-=65536,R+=N(I>>>10&1023|55296),I=56320|I&1023),R+=N(I),R}).join("")}function we(b){return b-48<10?b-22:b-65<26?b-65:b-97<26?b-97:s}function $(b,I){return b+22+75*(b<26)-((I!=0)<<5)}function S(b,I,R){var q=0;for(b=R?O(b/c):b>>1,b+=O(b/I);b>A*u>>1;q+=s)b=O(b/A);return O(q+(A+1)*b/(b+l))}function E(b){var I=[],R=b.length,q,z=0,K=h,re=p,fe,Se,m,f,d,g,v,L,ne;for(fe=b.lastIndexOf(y),fe<0&&(fe=0),Se=0;Se<fe;++Se)b.charCodeAt(Se)>=128&&U("not-basic"),I.push(b.charCodeAt(Se));for(m=fe>0?fe+1:0;m<R;){for(f=z,d=1,g=s;m>=R&&U("invalid-input"),v=we(b.charCodeAt(m++)),(v>=s||v>O((i-z)/d))&&U("overflow"),z+=v*d,L=g<=re?a:g>=re+u?u:g-re,!(v<L);g+=s)ne=s-L,d>O(i/ne)&&U("overflow"),d*=ne;q=I.length+1,re=S(z-f,q,f==0),O(z/q)>i-K&&U("overflow"),K+=O(z/q),z%=q,I.splice(z++,0,K)}return te(I)}function P(b){var I,R,q,z,K,re,fe,Se,m,f,d,g=[],v,L,ne,oe;for(b=D(b),v=b.length,I=h,R=0,K=p,re=0;re<v;++re)d=b[re],d<128&&g.push(N(d));for(q=z=g.length,z&&g.push(y);q<v;){for(fe=i,re=0;re<v;++re)d=b[re],d>=I&&d<fe&&(fe=d);for(L=q+1,fe-I>O((i-R)/L)&&U("overflow"),R+=(fe-I)*L,I=fe,re=0;re<v;++re)if(d=b[re],d<I&&++R>i&&U("overflow"),d==I){for(Se=R,m=s;f=m<=K?a:m>=K+u?u:m-K,!(Se<f);m+=s)oe=Se-f,ne=s-f,g.push(N($(f+oe%ne,0))),Se=O(oe/ne);g.push(N($(Se,0))),K=S(R,L,q==z),R=0,++q}++R,++I}return g.join("")}function T(b){return F(b,function(I){return w.test(I)?E(I.slice(4).toLowerCase()):I})}function k(b){return F(b,function(I){return C.test(I)?"xn--"+P(I):I})}if(o={version:"1.4.1",ucs2:{decode:D,encode:te},decode:E,encode:P,toASCII:k,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(j in o)o.hasOwnProperty(j)&&(e[j]=o[j]);else t.punycode=o})(Xr)});var qf=M((rM,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 zf=M((nM,Wf)=>{"use strict";var Hf=typeof Symbol<"u"&&Symbol,I0=qf();Wf.exports=function(){return typeof Hf!="function"||typeof Symbol!="function"||typeof Hf("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:I0()}});var Jf=M((oM,Gf)=>{"use strict";var Vf={foo:{}},M0=Object;Gf.exports=function(){return{__proto__:Vf}.foo===Vf.foo&&!({__proto__:null}instanceof M0)}});var Zf=M((iM,Qf)=>{"use strict";var P0="Function.prototype.bind called on incompatible ",$0=Object.prototype.toString,N0=Math.max,B0="[object Function]",Yf=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},O0=function(e,r){for(var n=[],o=r||0,i=0;o<e.length;o+=1,i+=1)n[i]=e[o];return n},D0=function(t,e){for(var r="",n=0;n<t.length;n+=1)r+=t[n],n+1<t.length&&(r+=e);return r};Qf.exports=function(e){var r=this;if(typeof r!="function"||$0.apply(r)!==B0)throw new TypeError(P0+r);for(var n=O0(arguments,1),o,i=function(){if(this instanceof o){var c=r.apply(this,Yf(n,arguments));return Object(c)===c?c:this}return r.apply(e,Yf(n,arguments))},s=N0(0,r.length-n.length),a=[],u=0;u<s;u++)a[u]="$"+u;if(o=Function("binder","return function ("+D0(a,",")+"){ return binder.apply(this,arguments); }")(i),r.prototype){var l=function(){};l.prototype=r.prototype,o.prototype=new l,l.prototype=null}return o}});var Ha=M((sM,Xf)=>{"use strict";var R0=Zf();Xf.exports=Function.prototype.bind||R0});var tp=M((aM,ep)=>{"use strict";var Kf={}.hasOwnProperty,Wa=Function.prototype.call;ep.exports=Wa.bind?Wa.bind(Kf):function(t,e){return Wa.call(Kf,t,e)}});var Ni=M((uM,sp)=>{"use strict";var Z,nn=SyntaxError,ip=Function,rn=TypeError,za=function(t){try{return ip('"use strict"; return ('+t+").constructor;")()}catch{}},xr=Object.getOwnPropertyDescriptor;if(xr)try{xr({},"")}catch{xr=null}var Va=function(){throw new rn},F0=xr?function(){try{return arguments.callee,Va}catch{try{return xr(arguments,"callee").get}catch{return Va}}}():Va,en=zf()(),U0=Jf()(),Pe=Object.getPrototypeOf||(U0?function(t){return t.__proto__}:null),tn={},L0=typeof Uint8Array>"u"||!Pe?Z:Pe(Uint8Array),vr={"%AggregateError%":typeof AggregateError>"u"?Z:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?Z:ArrayBuffer,"%ArrayIteratorPrototype%":en&&Pe?Pe([][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%":ip,"%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&&Pe?Pe(Pe([][Symbol.iterator]())):Z,"%JSON%":typeof JSON=="object"?JSON:Z,"%Map%":typeof Map>"u"?Z:Map,"%MapIteratorPrototype%":typeof Map>"u"||!en||!Pe?Z:Pe(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||!Pe?Z:Pe(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?Z:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":en&&Pe?Pe(""[Symbol.iterator]()):Z,"%Symbol%":en?Symbol:Z,"%SyntaxError%":nn,"%ThrowTypeError%":F0,"%TypedArray%":L0,"%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(Pe)try{null.error}catch(t){rp=Pe(Pe(t)),vr["%Error.prototype%"]=rp}var rp,k0=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&&Pe&&(r=Pe(o.prototype))}return vr[e]=r,r},np={"%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"]},oo=Ha(),Pi=tp(),j0=oo.call(Function.call,Array.prototype.concat),q0=oo.call(Function.apply,Array.prototype.splice),op=oo.call(Function.call,String.prototype.replace),$i=oo.call(Function.call,String.prototype.slice),H0=oo.call(Function.call,RegExp.prototype.exec),W0=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,z0=/\\(\\)?/g,V0=function(e){var r=$i(e,0,1),n=$i(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 op(e,W0,function(i,s,a,u){o[o.length]=a?op(u,z0,"$1"):s||i}),o},G0=function(e,r){var n=e,o;if(Pi(np,n)&&(o=np[n],n="%"+o[0]+"%"),Pi(vr,n)){var i=vr[n];if(i===tn&&(i=k0(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!")};sp.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(H0(/^%?[^%]*%?$/,e)===null)throw new nn("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=V0(e),o=n.length>0?n[0]:"",i=G0("%"+o+"%",r),s=i.name,a=i.value,u=!1,l=i.alias;l&&(o=l[0],q0(n,j0([0,1],l)));for(var c=1,p=!0;c<n.length;c+=1){var h=n[c],y=$i(h,0,1),w=$i(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"||!p)&&(u=!0),o+="."+h,s="%"+o+"%",Pi(vr,s))a=vr[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(xr&&c+1>=n.length){var C=xr(a,h);p=!!C,p&&"get"in C&&!("originalValue"in C.get)?a=C.get:a=a[h]}else p=Pi(a,h),a=a[h];p&&!u&&(vr[s]=a)}}return a}});var pp=M((lM,Bi)=>{"use strict";var Ga=Ha(),on=Ni(),lp=on("%Function.prototype.apply%"),cp=on("%Function.prototype.call%"),fp=on("%Reflect.apply%",!0)||Ga.call(cp,lp),ap=on("%Object.getOwnPropertyDescriptor%",!0),br=on("%Object.defineProperty%",!0),J0=on("%Math.max%");if(br)try{br({},"a",{value:1})}catch{br=null}Bi.exports=function(e){var r=fp(Ga,cp,arguments);if(ap&&br){var n=ap(r,"length");n.configurable&&br(r,"length",{value:1+J0(0,e.length-(arguments.length-1))})}return r};var up=function(){return fp(Ga,lp,arguments)};br?br(Bi.exports,"apply",{value:up}):Bi.exports.apply=up});var gp=M((cM,mp)=>{"use strict";var hp=Ni(),dp=pp(),Y0=dp(hp("String.prototype.indexOf"));mp.exports=function(e,r){var n=hp(e,!!r);return typeof n=="function"&&Y0(e,".prototype.")>-1?dp(n):n}});var yp=M(()=>{});var Fp=M((hM,Rp)=>{var nu=typeof Map=="function"&&Map.prototype,Ja=Object.getOwnPropertyDescriptor&&nu?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,Di=nu&&Ja&&typeof Ja.get=="function"?Ja.get:null,xp=nu&&Map.prototype.forEach,ou=typeof Set=="function"&&Set.prototype,Ya=Object.getOwnPropertyDescriptor&&ou?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,Ri=ou&&Ya&&typeof Ya.get=="function"?Ya.get:null,vp=ou&&Set.prototype.forEach,Q0=typeof WeakMap=="function"&&WeakMap.prototype,so=Q0?WeakMap.prototype.has:null,Z0=typeof WeakSet=="function"&&WeakSet.prototype,ao=Z0?WeakSet.prototype.has:null,X0=typeof WeakRef=="function"&&WeakRef.prototype,bp=X0?WeakRef.prototype.deref:null,K0=Boolean.prototype.valueOf,ex=Object.prototype.toString,tx=Function.prototype.toString,rx=String.prototype.match,iu=String.prototype.slice,Wt=String.prototype.replace,nx=String.prototype.toUpperCase,wp=String.prototype.toLowerCase,Pp=RegExp.prototype.test,Sp=Array.prototype.concat,pt=Array.prototype.join,ox=Array.prototype.slice,Ep=Math.floor,Xa=typeof BigInt=="function"?BigInt.prototype.valueOf:null,Qa=Object.getOwnPropertySymbols,Ka=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,sn=typeof Symbol=="function"&&typeof Symbol.iterator=="object",Fe=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===sn||"symbol")?Symbol.toStringTag:null,$p=Object.prototype.propertyIsEnumerable,Tp=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(t){return t.__proto__}:null);function _p(t,e){if(t===1/0||t===-1/0||t!==t||t&&t>-1e3&&t<1e3||Pp.call(/e/,e))return e;var r=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof t=="number"){var n=t<0?-Ep(-t):Ep(t);if(n!==t){var o=String(n),i=iu.call(e,o.length+1);return Wt.call(o,r,"$&_")+"."+Wt.call(Wt.call(i,/([0-9]{3})/g,"$&_"),/_$/,"")}}return Wt.call(e,r,"$&_")}var eu=yp(),Cp=eu.custom,Ap=Bp(Cp)?Cp:null;Rp.exports=function t(e,r,n,o){var i=r||{};if(Ht(i,"quoteStyle")&&i.quoteStyle!=="single"&&i.quoteStyle!=="double")throw new TypeError('option "quoteStyle" must be "single" or "double"');if(Ht(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=Ht(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(Ht(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(Ht(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 Dp(e,i);if(typeof e=="number"){if(e===0)return 1/0/e>0?"0":"-0";var u=String(e);return a?_p(e,u):u}if(typeof e=="bigint"){var l=String(e)+"n";return a?_p(e,l):l}var c=typeof i.depth>"u"?5:i.depth;if(typeof n>"u"&&(n=0),n>=c&&c>0&&typeof e=="object")return tu(e)?"[Array]":"[Object]";var p=Sx(i,n);if(typeof o>"u")o=[];else if(Op(o,e)>=0)return"[Circular]";function h(S,E,P){if(E&&(o=ox.call(o),o.push(E)),P){var T={depth:i.depth};return Ht(i,"quoteStyle")&&(T.quoteStyle=i.quoteStyle),t(S,T,n+1,o)}return t(S,i,n+1,o)}if(typeof e=="function"&&!Ip(e)){var y=hx(e),w=Oi(e,h);return"[Function"+(y?": "+y:" (anonymous)")+"]"+(w.length>0?" { "+pt.call(w,", ")+" }":"")}if(Bp(e)){var C=sn?Wt.call(String(e),/^(Symbol\(.*\))_[^)]*$/,"$1"):Ka.call(e);return typeof e=="object"&&!sn?io(C):C}if(vx(e)){for(var B="<"+wp.call(String(e.nodeName)),_=e.attributes||[],A=0;A<_.length;A++)B+=" "+_[A].name+"="+Np(ix(_[A].value),"double",i);return B+=">",e.childNodes&&e.childNodes.length&&(B+="..."),B+="</"+wp.call(String(e.nodeName))+">",B}if(tu(e)){if(e.length===0)return"[]";var O=Oi(e,h);return p&&!wx(O)?"["+ru(O,p)+"]":"[ "+pt.call(O,", ")+" ]"}if(ax(e)){var N=Oi(e,h);return!("cause"in Error.prototype)&&"cause"in e&&!$p.call(e,"cause")?"{ ["+String(e)+"] "+pt.call(Sp.call("[cause]: "+h(e.cause),N),", ")+" }":N.length===0?"["+String(e)+"]":"{ ["+String(e)+"] "+pt.call(N,", ")+" }"}if(typeof e=="object"&&s){if(Ap&&typeof e[Ap]=="function"&&eu)return eu(e,{depth:c-n});if(s!=="symbol"&&typeof e.inspect=="function")return e.inspect()}if(dx(e)){var j=[];return xp&&xp.call(e,function(S,E){j.push(h(E,e,!0)+" => "+h(S,e))}),Mp("Map",Di.call(e),j,p)}if(yx(e)){var U=[];return vp&&vp.call(e,function(S){U.push(h(S,e))}),Mp("Set",Ri.call(e),U,p)}if(mx(e))return Za("WeakMap");if(xx(e))return Za("WeakSet");if(gx(e))return Za("WeakRef");if(lx(e))return io(h(Number(e)));if(fx(e))return io(h(Xa.call(e)));if(cx(e))return io(K0.call(e));if(ux(e))return io(h(String(e)));if(!sx(e)&&!Ip(e)){var J=Oi(e,h),F=Tp?Tp(e)===Object.prototype:e instanceof Object||e.constructor===Object,D=e instanceof Object?"":"null prototype",te=!F&&Fe&&Object(e)===e&&Fe in e?iu.call(zt(e),8,-1):D?"Object":"",we=F||typeof e.constructor!="function"?"":e.constructor.name?e.constructor.name+" ":"",$=we+(te||D?"["+pt.call(Sp.call([],te||[],D||[]),": ")+"] ":"");return J.length===0?$+"{}":p?$+"{"+ru(J,p)+"}":$+"{ "+pt.call(J,", ")+" }"}return String(e)};function Np(t,e,r){var n=(r.quoteStyle||e)==="double"?'"':"'";return n+t+n}function ix(t){return Wt.call(String(t),/"/g,"&quot;")}function tu(t){return zt(t)==="[object Array]"&&(!Fe||!(typeof t=="object"&&Fe in t))}function sx(t){return zt(t)==="[object Date]"&&(!Fe||!(typeof t=="object"&&Fe in t))}function Ip(t){return zt(t)==="[object RegExp]"&&(!Fe||!(typeof t=="object"&&Fe in t))}function ax(t){return zt(t)==="[object Error]"&&(!Fe||!(typeof t=="object"&&Fe in t))}function ux(t){return zt(t)==="[object String]"&&(!Fe||!(typeof t=="object"&&Fe in t))}function lx(t){return zt(t)==="[object Number]"&&(!Fe||!(typeof t=="object"&&Fe in t))}function cx(t){return zt(t)==="[object Boolean]"&&(!Fe||!(typeof t=="object"&&Fe in t))}function Bp(t){if(sn)return t&&typeof t=="object"&&t instanceof Symbol;if(typeof t=="symbol")return!0;if(!t||typeof t!="object"||!Ka)return!1;try{return Ka.call(t),!0}catch{}return!1}function fx(t){if(!t||typeof t!="object"||!Xa)return!1;try{return Xa.call(t),!0}catch{}return!1}var px=Object.prototype.hasOwnProperty||function(t){return t in this};function Ht(t,e){return px.call(t,e)}function zt(t){return ex.call(t)}function hx(t){if(t.name)return t.name;var e=rx.call(tx.call(t),/^function\s*([\w$]+)/);return e?e[1]:null}function Op(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 dx(t){if(!Di||!t||typeof t!="object")return!1;try{Di.call(t);try{Ri.call(t)}catch{return!0}return t instanceof Map}catch{}return!1}function mx(t){if(!so||!t||typeof t!="object")return!1;try{so.call(t,so);try{ao.call(t,ao)}catch{return!0}return t instanceof WeakMap}catch{}return!1}function gx(t){if(!bp||!t||typeof t!="object")return!1;try{return bp.call(t),!0}catch{}return!1}function yx(t){if(!Ri||!t||typeof t!="object")return!1;try{Ri.call(t);try{Di.call(t)}catch{return!0}return t instanceof Set}catch{}return!1}function xx(t){if(!ao||!t||typeof t!="object")return!1;try{ao.call(t,ao);try{so.call(t,so)}catch{return!0}return t instanceof WeakSet}catch{}return!1}function vx(t){return!t||typeof t!="object"?!1:typeof HTMLElement<"u"&&t instanceof HTMLElement?!0:typeof t.nodeName=="string"&&typeof t.getAttribute=="function"}function Dp(t,e){if(t.length>e.maxStringLength){var r=t.length-e.maxStringLength,n="... "+r+" more character"+(r>1?"s":"");return Dp(iu.call(t,0,e.maxStringLength),e)+n}var o=Wt.call(Wt.call(t,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,bx);return Np(o,"single",e)}function bx(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":"")+nx.call(e.toString(16))}function io(t){return"Object("+t+")"}function Za(t){return t+" { ? }"}function Mp(t,e,r,n){var o=n?ru(r,n):pt.call(r,", ");return t+" ("+e+") {"+o+"}"}function wx(t){for(var e=0;e<t.length;e++)if(Op(t[e],`
2
- `)>=0)return!1;return!0}function Sx(t,e){var r;if(t.indent===" ")r=" ";else if(typeof t.indent=="number"&&t.indent>0)r=pt.call(Array(t.indent+1)," ");else return null;return{base:r,prev:pt.call(Array(e+1),r)}}function ru(t,e){if(t.length===0)return"";var r=`
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,"&quot;")}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 ob(t,e){var r;if(t.indent===" ")r=" ";else if(typeof t.indent=="number"&&t.indent>0)r=pt.call(Array(t.indent+1)," ");else return null;return{base:r,prev:pt.call(Array(e+1),r)}}function hu(t,e){if(t.length===0)return"";var r=`
3
3
  `+e.prev+e.base;return r+pt.call(t,","+r)+`
4
- `+e.prev}function Oi(t,e){var r=tu(t),n=[];if(r){n.length=t.length;for(var o=0;o<t.length;o++)n[o]=Ht(t,o)?e(t[o],t):""}var i=typeof Qa=="function"?Qa(t):[],s;if(sn){s={};for(var a=0;a<i.length;a++)s["$"+i[a]]=i[a]}for(var u in t)Ht(t,u)&&(r&&String(Number(u))===u&&u<t.length||sn&&s["$"+u]instanceof Symbol||(Pp.call(/[^\w$]/,u)?n.push(e(u,t)+": "+e(t[u],t)):n.push(u+": "+e(t[u],t))));if(typeof Qa=="function")for(var l=0;l<i.length;l++)$p.call(t,i[l])&&n.push("["+e(i[l])+"]: "+e(t[i[l]],t));return n}});var Lp=M((dM,Up)=>{"use strict";var su=Ni(),an=gp(),Ex=Fp(),Tx=su("%TypeError%"),Fi=su("%WeakMap%",!0),Ui=su("%Map%",!0),_x=an("WeakMap.prototype.get",!0),Cx=an("WeakMap.prototype.set",!0),Ax=an("WeakMap.prototype.has",!0),Ix=an("Map.prototype.get",!0),Mx=an("Map.prototype.set",!0),Px=an("Map.prototype.has",!0),au=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},$x=function(t,e){var r=au(t,e);return r&&r.value},Nx=function(t,e,r){var n=au(t,e);n?n.value=r:t.next={key:e,next:t.next,value:r}},Bx=function(t,e){return!!au(t,e)};Up.exports=function(){var e,r,n,o={assert:function(i){if(!o.has(i))throw new Tx("Side channel does not contain "+Ex(i))},get:function(i){if(Fi&&i&&(typeof i=="object"||typeof i=="function")){if(e)return _x(e,i)}else if(Ui){if(r)return Ix(r,i)}else if(n)return $x(n,i)},has:function(i){if(Fi&&i&&(typeof i=="object"||typeof i=="function")){if(e)return Ax(e,i)}else if(Ui){if(r)return Px(r,i)}else if(n)return Bx(n,i);return!1},set:function(i,s){Fi&&i&&(typeof i=="object"||typeof i=="function")?(e||(e=new Fi),Cx(e,i,s)):Ui?(r||(r=new Ui),Mx(r,i,s)):(n||(n={key:{},next:null}),Nx(n,i,s))}};return o}});var Li=M((mM,kp)=>{"use strict";var Ox=String.prototype.replace,Dx=/%20/g,uu={RFC1738:"RFC1738",RFC3986:"RFC3986"};kp.exports={default:uu.RFC3986,formatters:{RFC1738:function(t){return Ox.call(t,Dx,"+")},RFC3986:function(t){return String(t)}},RFC1738:uu.RFC1738,RFC3986:uu.RFC3986}});var cu=M((gM,qp)=>{"use strict";var Rx=Li(),lu=Object.prototype.hasOwnProperty,wr=Array.isArray,ht=function(){for(var t=[],e=0;e<256;++e)t.push("%"+((e<16?"0":"")+e.toString(16)).toUpperCase());return t}(),Fx=function(e){for(;e.length>1;){var r=e.pop(),n=r.obj[r.prop];if(wr(n)){for(var o=[],i=0;i<n.length;++i)typeof n[i]<"u"&&o.push(n[i]);r.obj[r.prop]=o}}},jp=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},Ux=function t(e,r,n){if(!r)return e;if(typeof r!="object"){if(wr(e))e.push(r);else if(e&&typeof e=="object")(n&&(n.plainObjects||n.allowPrototypes)||!lu.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 wr(e)&&!wr(r)&&(o=jp(e,n)),wr(e)&&wr(r)?(r.forEach(function(i,s){if(lu.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 lu.call(i,s)?i[s]=t(i[s],a,n):i[s]=a,i},o)},Lx=function(e,r){return Object.keys(r).reduce(function(n,o){return n[o]=r[o],n},e)},kx=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}},jx=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(c){return"%26%23"+parseInt(c.slice(2),16)+"%3B"});for(var a="",u=0;u<s.length;++u){var l=s.charCodeAt(u);if(l===45||l===46||l===95||l===126||l>=48&&l<=57||l>=65&&l<=90||l>=97&&l<=122||i===Rx.RFC1738&&(l===40||l===41)){a+=s.charAt(u);continue}if(l<128){a=a+ht[l];continue}if(l<2048){a=a+(ht[192|l>>6]+ht[128|l&63]);continue}if(l<55296||l>=57344){a=a+(ht[224|l>>12]+ht[128|l>>6&63]+ht[128|l&63]);continue}u+=1,l=65536+((l&1023)<<10|s.charCodeAt(u)&1023),a+=ht[240|l>>18]+ht[128|l>>12&63]+ht[128|l>>6&63]+ht[128|l&63]}return a},qx=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 l=a[u],c=s[l];typeof c=="object"&&c!==null&&n.indexOf(c)===-1&&(r.push({obj:s,prop:l}),n.push(c))}return Fx(r),e},Hx=function(e){return Object.prototype.toString.call(e)==="[object RegExp]"},Wx=function(e){return!e||typeof e!="object"?!1:!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},zx=function(e,r){return[].concat(e,r)},Vx=function(e,r){if(wr(e)){for(var n=[],o=0;o<e.length;o+=1)n.push(r(e[o]));return n}return r(e)};qp.exports={arrayToObject:jp,assign:Lx,combine:zx,compact:qx,decode:kx,encode:jx,isBuffer:Wx,isRegExp:Hx,maybeMap:Vx,merge:Ux}});var Jp=M((yM,Gp)=>{"use strict";var zp=Lp(),ki=cu(),uo=Li(),Gx=Object.prototype.hasOwnProperty,Hp={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,r){return e+"["+r+"]"},repeat:function(e){return e}},Ct=Array.isArray,Jx=Array.prototype.push,Vp=function(t,e){Jx.apply(t,Ct(e)?e:[e])},Yx=Date.prototype.toISOString,Wp=uo.default,Ue={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:ki.encode,encodeValuesOnly:!1,format:Wp,formatter:uo.formatters[Wp],indices:!1,serializeDate:function(e){return Yx.call(e)},skipNulls:!1,strictNullHandling:!1},Qx=function(e){return typeof e=="string"||typeof e=="number"||typeof e=="boolean"||typeof e=="symbol"||typeof e=="bigint"},fu={},Zx=function t(e,r,n,o,i,s,a,u,l,c,p,h,y,w,C,B){for(var _=e,A=B,O=0,N=!1;(A=A.get(fu))!==void 0&&!N;){var j=A.get(e);if(O+=1,typeof j<"u"){if(j===O)throw new RangeError("Cyclic object value");N=!0}typeof A.get(fu)>"u"&&(O=0)}if(typeof u=="function"?_=u(r,_):_ instanceof Date?_=p(_):n==="comma"&&Ct(_)&&(_=ki.maybeMap(_,function(T){return T instanceof Date?p(T):T})),_===null){if(i)return a&&!w?a(r,Ue.encoder,C,"key",h):r;_=""}if(Qx(_)||ki.isBuffer(_)){if(a){var U=w?r:a(r,Ue.encoder,C,"key",h);return[y(U)+"="+y(a(_,Ue.encoder,C,"value",h))]}return[y(r)+"="+y(String(_))]}var J=[];if(typeof _>"u")return J;var F;if(n==="comma"&&Ct(_))w&&a&&(_=ki.maybeMap(_,a)),F=[{value:_.length>0?_.join(",")||null:void 0}];else if(Ct(u))F=u;else{var D=Object.keys(_);F=l?D.sort(l):D}for(var te=o&&Ct(_)&&_.length===1?r+"[]":r,we=0;we<F.length;++we){var $=F[we],S=typeof $=="object"&&typeof $.value<"u"?$.value:_[$];if(!(s&&S===null)){var E=Ct(_)?typeof n=="function"?n(te,$):te:te+(c?"."+$:"["+$+"]");B.set(e,O);var P=zp();P.set(fu,B),Vp(J,t(S,E,n,o,i,s,n==="comma"&&w&&Ct(_)?null:a,u,l,c,p,h,y,w,C,P))}}return J},Xx=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=uo.default;if(typeof e.format<"u"){if(!Gx.call(uo.formatters,e.format))throw new TypeError("Unknown format option provided.");n=e.format}var o=uo.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}};Gp.exports=function(t,e){var r=t,n=Xx(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 Hp?a=e.arrayFormat:e&&"indices"in e?a=e.indices?"indices":"repeat":a="indices";var u=Hp[a];if(e&&"commaRoundTrip"in e&&typeof e.commaRoundTrip!="boolean")throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var l=u==="comma"&&e&&e.commaRoundTrip;o||(o=Object.keys(r)),n.sort&&o.sort(n.sort);for(var c=zp(),p=0;p<o.length;++p){var h=o[p];n.skipNulls&&r[h]===null||Vp(s,Zx(r[h],h,u,l,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,c))}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 Zp=M((xM,Qp)=>{"use strict";var un=cu(),pu=Object.prototype.hasOwnProperty,Kx=Array.isArray,$e={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:un.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},ev=function(t){return t.replace(/&#(\d+);/g,function(e,r){return String.fromCharCode(parseInt(r,10))})},Yp=function(t,e){return t&&typeof t=="string"&&e.comma&&t.indexOf(",")>-1?t.split(","):t},tv="utf8=%26%2310003%3B",rv="utf8=%E2%9C%93",nv=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,l=r.charset;if(r.charsetSentinel)for(u=0;u<s.length;++u)s[u].indexOf("utf8=")===0&&(s[u]===rv?l="utf-8":s[u]===tv&&(l="iso-8859-1"),a=u,u=s.length);for(u=0;u<s.length;++u)if(u!==a){var c=s[u],p=c.indexOf("]="),h=p===-1?c.indexOf("="):p+1,y,w;h===-1?(y=r.decoder(c,$e.decoder,l,"key"),w=r.strictNullHandling?null:""):(y=r.decoder(c.slice(0,h),$e.decoder,l,"key"),w=un.maybeMap(Yp(c.slice(h+1),r),function(C){return r.decoder(C,$e.decoder,l,"value")})),w&&r.interpretNumericEntities&&l==="iso-8859-1"&&(w=ev(w)),c.indexOf("[]=")>-1&&(w=Kx(w)?[w]:w),pu.call(n,y)?n[y]=un.combine(n[y],w):n[y]=w}return n},ov=function(t,e,r,n){for(var o=n?e:Yp(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,l=parseInt(u,10);!r.parseArrays&&u===""?s={0:o}:!isNaN(l)&&a!==u&&String(l)===u&&l>=0&&r.parseArrays&&l<=r.arrayLimit?(s=[],s[l]=o):u!=="__proto__"&&(s[u]=o)}o=s}return o},iv=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),l=u?i.slice(0,u.index):i,c=[];if(l){if(!n.plainObjects&&pu.call(Object.prototype,l)&&!n.allowPrototypes)return;c.push(l)}for(var p=0;n.depth>0&&(u=a.exec(i))!==null&&p<n.depth;){if(p+=1,!n.plainObjects&&pu.call(Object.prototype,u[1].slice(1,-1))&&!n.allowPrototypes)return;c.push(u[1])}return u&&c.push("["+i.slice(u.index)+"]"),ov(c,r,n,o)}},sv=function(e){if(!e)return $e;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"?$e.charset:e.charset;return{allowDots:typeof e.allowDots>"u"?$e.allowDots:!!e.allowDots,allowPrototypes:typeof e.allowPrototypes=="boolean"?e.allowPrototypes:$e.allowPrototypes,allowSparse:typeof e.allowSparse=="boolean"?e.allowSparse:$e.allowSparse,arrayLimit:typeof e.arrayLimit=="number"?e.arrayLimit:$e.arrayLimit,charset:r,charsetSentinel:typeof e.charsetSentinel=="boolean"?e.charsetSentinel:$e.charsetSentinel,comma:typeof e.comma=="boolean"?e.comma:$e.comma,decoder:typeof e.decoder=="function"?e.decoder:$e.decoder,delimiter:typeof e.delimiter=="string"||un.isRegExp(e.delimiter)?e.delimiter:$e.delimiter,depth:typeof e.depth=="number"||e.depth===!1?+e.depth:$e.depth,ignoreQueryPrefix:e.ignoreQueryPrefix===!0,interpretNumericEntities:typeof e.interpretNumericEntities=="boolean"?e.interpretNumericEntities:$e.interpretNumericEntities,parameterLimit:typeof e.parameterLimit=="number"?e.parameterLimit:$e.parameterLimit,parseArrays:e.parseArrays!==!1,plainObjects:typeof e.plainObjects=="boolean"?e.plainObjects:$e.plainObjects,strictNullHandling:typeof e.strictNullHandling=="boolean"?e.strictNullHandling:$e.strictNullHandling}};Qp.exports=function(t,e){var r=sv(e);if(t===""||t===null||typeof t>"u")return r.plainObjects?Object.create(null):{};for(var n=typeof t=="string"?nv(t,r):t,o=r.plainObjects?Object.create(null):{},i=Object.keys(n),s=0;s<i.length;++s){var a=i[s],u=iv(a,n[a],r,typeof t=="string");o=un.merge(o,u,r)}return r.allowSparse===!0?o:un.compact(o)}});var Kp=M((vM,Xp)=>{"use strict";var av=Jp(),uv=Zp(),lv=Li();Xp.exports={formats:lv,parse:uv,stringify:av}});var nh=M(cn=>{"use strict";var cv=kf();function Ye(){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 fv=/^([a-z0-9.+-]+:)/i,pv=/:[0-9]*$/,hv=/^(\/\/?(?!\/)[^?\s]*)(\?[^\s]*)?$/,dv=["<",">",'"',"`"," ","\r",`
5
- `," "],mv=["{","}","|","\\","^","`"].concat(dv),hu=["'"].concat(mv),eh=["%","/","?",";","#"].concat(hu),th=["/","?","#"],gv=255,rh=/^[+a-z0-9A-Z_-]{0,63}$/,yv=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,xv={javascript:!0,"javascript:":!0},du={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},mu=Kp();function lo(t,e,r){if(t&&typeof t=="object"&&t instanceof Ye)return t;var n=new Ye;return n.parse(t,e,r),n}Ye.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=hv.exec(a);if(u)return this.path=a,this.href=a,this.pathname=u[1],u[2]?(this.search=u[2],e?this.query=mu.parse(this.search.substr(1)):this.query=this.search.substr(1)):e&&(this.search="",this.query={}),this}var l=fv.exec(a);if(l){l=l[0];var c=l.toLowerCase();this.protocol=c,a=a.substr(l.length)}if(r||l||a.match(/^\/\/[^@/]+@[^@/]+/)){var p=a.substr(0,2)==="//";p&&!(l&&du[l])&&(a=a.substr(2),this.slashes=!0)}if(!du[l]&&(p||l&&!ln[l])){for(var h=-1,y=0;y<th.length;y++){var w=a.indexOf(th[y]);w!==-1&&(h===-1||w<h)&&(h=w)}var C,B;h===-1?B=a.lastIndexOf("@"):B=a.lastIndexOf("@",h),B!==-1&&(C=a.slice(0,B),a=a.slice(B+1),this.auth=decodeURIComponent(C)),h=-1;for(var y=0;y<eh.length;y++){var w=a.indexOf(eh[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 A=this.hostname.split(/\./),y=0,O=A.length;y<O;y++){var N=A[y];if(N&&!N.match(rh)){for(var j="",U=0,J=N.length;U<J;U++)N.charCodeAt(U)>127?j+="x":j+=N[U];if(!j.match(rh)){var F=A.slice(0,y),D=A.slice(y+1),te=N.match(yv);te&&(F.push(te[1]),D.unshift(te[2])),D.length&&(a="/"+D.join(".")+a),this.hostname=F.join(".");break}}}this.hostname.length>gv?this.hostname="":this.hostname=this.hostname.toLowerCase(),_||(this.hostname=cv.toASCII(this.hostname));var we=this.port?":"+this.port:"",$=this.hostname||"";this.host=$+we,this.href+=this.host,_&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),a[0]!=="/"&&(a="/"+a))}if(!xv[c])for(var y=0,O=hu.length;y<O;y++){var S=hu[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=mu.parse(this.query)),a=a.slice(0,T)):e&&(this.search="",this.query={}),a&&(this.pathname=a),ln[c]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){var we=this.pathname||"",k=this.search||"";this.path=we+k}return this.href=this.format(),this};function vv(t){return typeof t=="string"&&(t=lo(t)),t instanceof Ye?t.format():Ye.prototype.format.call(t)}Ye.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=mu.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 bv(t,e){return lo(t,!1,!0).resolve(e)}Ye.prototype.resolve=function(t){return this.resolveObject(lo(t,!1,!0)).format()};function wv(t,e){return t?lo(t,!1,!0).resolveObject(e):e}Ye.prototype.resolveObject=function(t){if(typeof t=="string"){var e=new Ye;e.parse(t,!1,!0),t=e}for(var r=new Ye,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 l=Object.keys(t),c=0;c<l.length;c++){var p=l[c];r[p]=t[p]}return r.href=r.format(),r}if(r.protocol=t.protocol,!t.host&&!du[t.protocol]){for(var O=(t.pathname||"").split("/");O.length&&!(t.host=O.shift()););t.host||(t.host=""),t.hostname||(t.hostname=""),O[0]!==""&&O.unshift(""),O.length<2&&O.unshift(""),r.pathname=O.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)==="/",C=t.host||t.pathname&&t.pathname.charAt(0)==="/",B=C||w||r.host&&t.pathname,_=B,A=r.pathname&&r.pathname.split("/")||[],O=t.pathname&&t.pathname.split("/")||[],N=r.protocol&&!ln[r.protocol];if(N&&(r.hostname="",r.port=null,r.host&&(A[0]===""?A[0]=r.host:A.unshift(r.host)),r.host="",t.protocol&&(t.hostname=null,t.port=null,t.host&&(O[0]===""?O[0]=t.host:O.unshift(t.host)),t.host=null),B=B&&(O[0]===""||A[0]==="")),C)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,A=O;else if(O.length)A||(A=[]),A.pop(),A=A.concat(O),r.search=t.search,r.query=t.query;else if(t.search!=null){if(N){r.host=A.shift(),r.hostname=r.host;var j=r.host&&r.host.indexOf("@")>0?r.host.split("@"):!1;j&&(r.auth=j.shift(),r.hostname=j.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(!A.length)return r.pathname=null,r.search?r.path="/"+r.search:r.path=null,r.href=r.format(),r;for(var U=A.slice(-1)[0],J=(r.host||t.host||A.length>1)&&(U==="."||U==="..")||U==="",F=0,D=A.length;D>=0;D--)U=A[D],U==="."?A.splice(D,1):U===".."?(A.splice(D,1),F++):F&&(A.splice(D,1),F--);if(!B&&!_)for(;F--;F)A.unshift("..");B&&A[0]!==""&&(!A[0]||A[0].charAt(0)!=="/")&&A.unshift(""),J&&A.join("/").substr(-1)!=="/"&&A.push("");var te=A[0]===""||A[0]&&A[0].charAt(0)==="/";if(N){r.hostname=te?"":A.length?A.shift():"",r.host=r.hostname;var j=r.host&&r.host.indexOf("@")>0?r.host.split("@"):!1;j&&(r.auth=j.shift(),r.hostname=j.shift(),r.host=r.hostname)}return B=B||r.host&&A.length,B&&!te&&A.unshift(""),A.length>0?r.pathname=A.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};Ye.prototype.parseHost=function(){var t=this.host,e=pv.exec(t);e&&(e=e[0],e!==":"&&(this.port=e.substr(1)),t=t.substr(0,t.length-e.length)),t&&(this.hostname=t)};cn.parse=lo;cn.resolve=bv;cn.resolveObject=wv;cn.format=vv;cn.Url=Ye});var Eh=M((SM,Sh)=>{"use strict";Sh.exports=t=>{let e=t.match(/^[ \t]*(?=\S)/gm);return e?e.reduce((r,n)=>Math.min(r,n.length),1/0):0}});var Ch=M((TM,_h)=>{"use strict";_h.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 l=Buffer.from(typeof r=="string"?r:r(e,o,t)),c=Buffer.from(e),p=s.slice(0,u),h=i(s.slice(u+c.length)),y=u+l.length+h.length;return Buffer.concat([p,l,h],y)};return i(t)}});var Ph=M((CM,Mh)=>{"use strict";Mh.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 Bh=M((AM,Nh)=>{var Ov=Object.prototype.toString;Nh.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 Lv(e)?"generatorfunction":"function";if(Dv(e))return"array";if(qv(e))return"buffer";if(jv(e))return"arguments";if(Fv(e))return"date";if(Rv(e))return"error";if(Uv(e))return"regexp";switch($h(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(kv(e))return"generator";switch(r=Ov.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 $h(t){return typeof t.constructor=="function"?t.constructor.name:null}function Dv(t){return Array.isArray?Array.isArray(t):t instanceof Array}function Rv(t){return t instanceof Error||typeof t.message=="string"&&t.constructor&&typeof t.constructor.stackTraceLimit=="number"}function Fv(t){return t instanceof Date?!0:typeof t.toDateString=="function"&&typeof t.getDate=="function"&&typeof t.setDate=="function"}function Uv(t){return t instanceof RegExp?!0:typeof t.flags=="string"&&typeof t.ignoreCase=="boolean"&&typeof t.multiline=="boolean"&&typeof t.global=="boolean"}function Lv(t,e){return $h(t)==="GeneratorFunction"}function kv(t){return typeof t.throw=="function"&&typeof t.return=="function"&&typeof t.next=="function"}function jv(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 qv(t){return t.constructor&&typeof t.constructor.isBuffer=="function"?t.constructor.isBuffer(t):!1}});var Dh=M((IM,Oh)=>{Oh.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 Uh=M((MM,bu)=>{"use strict";var Hv=Ph(),Rh=Bh(),Fh=Dh();bu.exports=Wv;bu.exports.isCrypto=!!Fh.cryptographic;var dt={lower:"abcdefghijklmnopqrstuvwxyz",upper:"ABCDEFGHIJKLMNOPQRSTUVWXYZ",number:"0123456789",special:"~!@#$%^&()_+-={}[];',."};dt.all=dt.lower+dt.upper+dt.number+dt.special;function Wv(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:Hv(t)&&(r={},e=t,t="*")),Rh(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=Rh(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(Fh()*i.length,10));return s}});var $d=M((ho,dn)=>{var nb=200,td="__lodash_hash_undefined__",rd=9007199254740991,Ru="[object Arguments]",ob="[object Array]",nd="[object Boolean]",od="[object Date]",ib="[object Error]",Fu="[object Function]",id="[object GeneratorFunction]",Yi="[object Map]",sd="[object Number]",Uu="[object Object]",Wh="[object Promise]",ad="[object RegExp]",Qi="[object Set]",ud="[object String]",ld="[object Symbol]",Pu="[object WeakMap]",cd="[object ArrayBuffer]",Zi="[object DataView]",fd="[object Float32Array]",pd="[object Float64Array]",hd="[object Int8Array]",dd="[object Int16Array]",md="[object Int32Array]",gd="[object Uint8Array]",yd="[object Uint8ClampedArray]",xd="[object Uint16Array]",vd="[object Uint32Array]",sb=/[\\^$.*+?()[\]{}|]/g,ab=/\w*$/,ub=/^\[object .+?Constructor\]$/,lb=/^(?:0|[1-9]\d*)$/,ue={};ue[Ru]=ue[ob]=ue[cd]=ue[Zi]=ue[nd]=ue[od]=ue[fd]=ue[pd]=ue[hd]=ue[dd]=ue[md]=ue[Yi]=ue[sd]=ue[Uu]=ue[ad]=ue[Qi]=ue[ud]=ue[ld]=ue[gd]=ue[yd]=ue[xd]=ue[vd]=!0;ue[ib]=ue[Fu]=ue[Pu]=!1;var cb=typeof global=="object"&&global&&global.Object===Object&&global,fb=typeof self=="object"&&self&&self.Object===Object&&self,At=cb||fb||Function("return this")(),bd=typeof ho=="object"&&ho&&!ho.nodeType&&ho,zh=bd&&typeof dn=="object"&&dn&&!dn.nodeType&&dn,pb=zh&&zh.exports===bd;function hb(t,e){return t.set(e[0],e[1]),t}function db(t,e){return t.add(e),t}function mb(t,e){for(var r=-1,n=t?t.length:0;++r<n&&e(t[r],r,t)!==!1;);return t}function gb(t,e){for(var r=-1,n=e.length,o=t.length;++r<n;)t[o+r]=e[r];return t}function wd(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 yb(t,e){for(var r=-1,n=Array(t);++r<t;)n[r]=e(r);return n}function xb(t,e){return t?.[e]}function Sd(t){var e=!1;if(t!=null&&typeof t.toString!="function")try{e=!!(t+"")}catch{}return e}function Vh(t){var e=-1,r=Array(t.size);return t.forEach(function(n,o){r[++e]=[o,n]}),r}function Lu(t,e){return function(r){return t(e(r))}}function Gh(t){var e=-1,r=Array(t.size);return t.forEach(function(n){r[++e]=n}),r}var vb=Array.prototype,bb=Function.prototype,Xi=Object.prototype,Mu=At["__core-js_shared__"],Jh=function(){var t=/[^.]+$/.exec(Mu&&Mu.keys&&Mu.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}(),Ed=bb.toString,Vt=Xi.hasOwnProperty,Ki=Xi.toString,wb=RegExp("^"+Ed.call(Vt).replace(sb,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Yh=pb?At.Buffer:void 0,Qh=At.Symbol,Zh=At.Uint8Array,Sb=Lu(Object.getPrototypeOf,Object),Eb=Object.create,Tb=Xi.propertyIsEnumerable,_b=vb.splice,Xh=Object.getOwnPropertySymbols,Cb=Yh?Yh.isBuffer:void 0,Ab=Lu(Object.keys,Object),$u=yn(At,"DataView"),mo=yn(At,"Map"),Nu=yn(At,"Promise"),Bu=yn(At,"Set"),Ou=yn(At,"WeakMap"),go=yn(Object,"create"),Ib=Tr($u),Mb=Tr(mo),Pb=Tr(Nu),$b=Tr(Bu),Nb=Tr(Ou),Kh=Qh?Qh.prototype:void 0,ed=Kh?Kh.valueOf:void 0;function Er(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 Bb(){this.__data__=go?go(null):{}}function Ob(t){return this.has(t)&&delete this.__data__[t]}function Db(t){var e=this.__data__;if(go){var r=e[t];return r===td?void 0:r}return Vt.call(e,t)?e[t]:void 0}function Rb(t){var e=this.__data__;return go?e[t]!==void 0:Vt.call(e,t)}function Fb(t,e){var r=this.__data__;return r[t]=go&&e===void 0?td:e,this}Er.prototype.clear=Bb;Er.prototype.delete=Ob;Er.prototype.get=Db;Er.prototype.has=Rb;Er.prototype.set=Fb;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 Ub(){this.__data__=[]}function Lb(t){var e=this.__data__,r=es(e,t);if(r<0)return!1;var n=e.length-1;return r==n?e.pop():_b.call(e,r,1),!0}function kb(t){var e=this.__data__,r=es(e,t);return r<0?void 0:e[r][1]}function jb(t){return es(this.__data__,t)>-1}function qb(t,e){var r=this.__data__,n=es(r,t);return n<0?r.push([t,e]):r[n][1]=e,this}It.prototype.clear=Ub;It.prototype.delete=Lb;It.prototype.get=kb;It.prototype.has=jb;It.prototype.set=qb;function mn(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 Hb(){this.__data__={hash:new Er,map:new(mo||It),string:new Er}}function Wb(t){return ts(this,t).delete(t)}function zb(t){return ts(this,t).get(t)}function Vb(t){return ts(this,t).has(t)}function Gb(t,e){return ts(this,t).set(t,e),this}mn.prototype.clear=Hb;mn.prototype.delete=Wb;mn.prototype.get=zb;mn.prototype.has=Vb;mn.prototype.set=Gb;function gn(t){this.__data__=new It(t)}function Jb(){this.__data__=new It}function Yb(t){return this.__data__.delete(t)}function Qb(t){return this.__data__.get(t)}function Zb(t){return this.__data__.has(t)}function Xb(t,e){var r=this.__data__;if(r instanceof It){var n=r.__data__;if(!mo||n.length<nb-1)return n.push([t,e]),this;r=this.__data__=new mn(n)}return r.set(t,e),this}gn.prototype.clear=Jb;gn.prototype.delete=Yb;gn.prototype.get=Qb;gn.prototype.has=Zb;gn.prototype.set=Xb;function Kb(t,e){var r=ju(t)||Ew(t)?yb(t.length,String):[],n=r.length,o=!!n;for(var i in t)(e||Vt.call(t,i))&&!(o&&(i=="length"||vw(i,n)))&&r.push(i);return r}function Td(t,e,r){var n=t[e];(!(Vt.call(t,e)&&Id(n,r))||r===void 0&&!(e in t))&&(t[e]=r)}function es(t,e){for(var r=t.length;r--;)if(Id(t[r][0],e))return r;return-1}function ew(t,e){return t&&_d(e,qu(e),t)}function Du(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(!rs(t))return t;var u=ju(t);if(u){if(a=gw(t),!e)return hw(t,a)}else{var l=Sr(t),c=l==Fu||l==id;if(_w(t))return sw(t,e);if(l==Uu||l==Ru||c&&!i){if(Sd(t))return i?t:{};if(a=yw(c?{}:t),!e)return dw(t,ew(a,t))}else{if(!ue[l])return i?t:{};a=xw(t,l,Du,e)}}s||(s=new gn);var p=s.get(t);if(p)return p;if(s.set(t,a),!u)var h=r?mw(t):qu(t);return mb(h||t,function(y,w){h&&(w=y,y=t[w]),Td(a,w,Du(y,e,r,n,w,t,s))}),a}function tw(t){return rs(t)?Eb(t):{}}function rw(t,e,r){var n=e(t);return ju(t)?n:gb(n,r(t))}function nw(t){return Ki.call(t)}function ow(t){if(!rs(t)||ww(t))return!1;var e=Pd(t)||Sd(t)?wb:ub;return e.test(Tr(t))}function iw(t){if(!Ad(t))return Ab(t);var e=[];for(var r in Object(t))Vt.call(t,r)&&r!="constructor"&&e.push(r);return e}function sw(t,e){if(e)return t.slice();var r=new t.constructor(t.length);return t.copy(r),r}function ku(t){var e=new t.constructor(t.byteLength);return new Zh(e).set(new Zh(t)),e}function aw(t,e){var r=e?ku(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.byteLength)}function uw(t,e,r){var n=e?r(Vh(t),!0):Vh(t);return wd(n,hb,new t.constructor)}function lw(t){var e=new t.constructor(t.source,ab.exec(t));return e.lastIndex=t.lastIndex,e}function cw(t,e,r){var n=e?r(Gh(t),!0):Gh(t);return wd(n,db,new t.constructor)}function fw(t){return ed?Object(ed.call(t)):{}}function pw(t,e){var r=e?ku(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.length)}function hw(t,e){var r=-1,n=t.length;for(e||(e=Array(n));++r<n;)e[r]=t[r];return e}function _d(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;Td(r,s,a===void 0?t[s]:a)}return r}function dw(t,e){return _d(t,Cd(t),e)}function mw(t){return rw(t,qu,Cd)}function ts(t,e){var r=t.__data__;return bw(e)?r[typeof e=="string"?"string":"hash"]:r.map}function yn(t,e){var r=xb(t,e);return ow(r)?r:void 0}var Cd=Xh?Lu(Xh,Object):Iw,Sr=nw;($u&&Sr(new $u(new ArrayBuffer(1)))!=Zi||mo&&Sr(new mo)!=Yi||Nu&&Sr(Nu.resolve())!=Wh||Bu&&Sr(new Bu)!=Qi||Ou&&Sr(new Ou)!=Pu)&&(Sr=function(t){var e=Ki.call(t),r=e==Uu?t.constructor:void 0,n=r?Tr(r):void 0;if(n)switch(n){case Ib:return Zi;case Mb:return Yi;case Pb:return Wh;case $b:return Qi;case Nb:return Pu}return e});function gw(t){var e=t.length,r=t.constructor(e);return e&&typeof t[0]=="string"&&Vt.call(t,"index")&&(r.index=t.index,r.input=t.input),r}function yw(t){return typeof t.constructor=="function"&&!Ad(t)?tw(Sb(t)):{}}function xw(t,e,r,n){var o=t.constructor;switch(e){case cd:return ku(t);case nd:case od:return new o(+t);case Zi:return aw(t,n);case fd:case pd:case hd:case dd:case md:case gd:case yd:case xd:case vd:return pw(t,n);case Yi:return uw(t,n,r);case sd:case ud:return new o(t);case ad:return lw(t);case Qi:return cw(t,n,r);case ld:return fw(t)}}function vw(t,e){return e=e??rd,!!e&&(typeof t=="number"||lb.test(t))&&t>-1&&t%1==0&&t<e}function bw(t){var e=typeof t;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?t!=="__proto__":t===null}function ww(t){return!!Jh&&Jh in t}function Ad(t){var e=t&&t.constructor,r=typeof e=="function"&&e.prototype||Xi;return t===r}function Tr(t){if(t!=null){try{return Ed.call(t)}catch{}try{return t+""}catch{}}return""}function Sw(t){return Du(t,!0,!0)}function Id(t,e){return t===e||t!==t&&e!==e}function Ew(t){return Tw(t)&&Vt.call(t,"callee")&&(!Tb.call(t,"callee")||Ki.call(t)==Ru)}var ju=Array.isArray;function Md(t){return t!=null&&Cw(t.length)&&!Pd(t)}function Tw(t){return Aw(t)&&Md(t)}var _w=Cb||Mw;function Pd(t){var e=rs(t)?Ki.call(t):"";return e==Fu||e==id}function Cw(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=rd}function rs(t){var e=typeof t;return!!t&&(e=="object"||e=="function")}function Aw(t){return!!t&&typeof t=="object"}function qu(t){return Md(t)?Kb(t):iw(t)}function Iw(){return[]}function Mw(){return!1}dn.exports=Sw});var Bd=M((WM,Nd)=>{"use strict";Nd.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 l={key:a,value:s[a]},c={key:u,value:s[u]};return i(l,c)}}}(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 l=o.push(s)-1,c=Object.keys(s).sort(n&&n(s));for(u="",a=0;a<c.length;a++){var p=c[a],h=i(s[p]);h&&(u&&(u+=","),u+=JSON.stringify(p)+":"+h)}return o.splice(l,1),"{"+u+"}"}}(t)}});var Ld=M((zM,Ud)=>{function Pw(t,e){return JSON.stringify(t,Od,e)}function $w(t){return JSON.parse(t,Dd)}function Od(t,e){return Rd(e)&&Hu(e.data)&&(e.data.length>0?e.data="base64:"+Buffer.from(e.data).toString("base64"):e.data=""),e}function Dd(t,e){if(Rd(e)){if(Hu(e.data))return Buffer.from(e.data);if(Fd(e.data))return e.data.startsWith("base64:")?Buffer.from(e.data.slice(7),"base64"):Buffer.from(e.data)}return e}function Rd(t){return Nw(t)&&t.type==="Buffer"&&(Hu(t.data)||Fd(t.data))}function Hu(t){return Array.isArray(t)}function Fd(t){return typeof t=="string"}function Nw(t){return typeof t=="object"&&t!==null}Ud.exports={stringify:Pw,parse:$w,replacer:Od,reviver:Dd}});var fm=M(()=>{});var wm=M(xe=>{"use strict";Object.defineProperty(xe,"__esModule",{value:!0});xe.getFirstTrueOrFalse=xe.timeoutAndContinue=xe.timeoutWrap=xe.map=xe.rejectedPromise=xe.resolvedPromise=xe.defer=xe.Deferred=void 0;var fs=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}};xe.Deferred=fs;xe.defer=()=>new fs;xe.resolvedPromise=t=>Promise.resolve(t);xe.rejectedPromise=t=>Promise.reject(t);xe.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};xe.timeoutWrap=async(t,e,r=!0)=>new Promise((n,o)=>{setTimeout(()=>{r?o(new Error("timeout")):n(null)},e),t.then(n,o)});xe.timeoutAndContinue=async(t,e=6e4)=>xe.timeoutWrap(t,e,!1);xe.getFirstTrueOrFalse=async t=>{let e=xe.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 _m=M((gl,yl)=>{(function(t,e){typeof gl=="object"&&typeof yl<"u"?yl.exports=e():typeof define=="function"&&define.amd?define(e):(t=t||self,t.SweetScroll=e())})(gl,function(){"use strict";var t=function(){return t=Object.assign||function(f){for(var d,g=1,v=arguments.length;g<v;g++){d=arguments[g];for(var L in d)Object.prototype.hasOwnProperty.call(d,L)&&(f[L]=d[L])}return f},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 f=window,d=Object.defineProperty({},"passive",{get:function(){m=!0}});f.addEventListener("test",null,d),f.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,f){return m&&m.hasOwnProperty(f)},l=e?window.requestAnimationFrame.bind(window):null,c=e?window.cancelAnimationFrame.bind(window):null,p=Math.cos,h=Math.sin,y=Math.pow,w=Math.sqrt,C=Math.PI,B={linear:function(m){return m},easeInQuad:function(m,f,d,g,v){return g*(f/=v)*f+d},easeOutQuad:function(m,f,d,g,v){return-g*(f/=v)*(f-2)+d},easeInOutQuad:function(m,f,d,g,v){return(f/=v/2)<1?g/2*f*f+d:-g/2*(--f*(f-2)-1)+d},easeInCubic:function(m,f,d,g,v){return g*(f/=v)*f*f+d},easeOutCubic:function(m,f,d,g,v){return g*((f=f/v-1)*f*f+1)+d},easeInOutCubic:function(m,f,d,g,v){return(f/=v/2)<1?g/2*f*f*f+d:g/2*((f-=2)*f*f+2)+d},easeInQuart:function(m,f,d,g,v){return g*(f/=v)*f*f*f+d},easeOutQuart:function(m,f,d,g,v){return-g*((f=f/v-1)*f*f*f-1)+d},easeInOutQuart:function(m,f,d,g,v){return(f/=v/2)<1?g/2*f*f*f*f+d:-g/2*((f-=2)*f*f*f-2)+d},easeInQuint:function(m,f,d,g,v){return g*(f/=v)*f*f*f*f+d},easeOutQuint:function(m,f,d,g,v){return g*((f=f/v-1)*f*f*f*f+1)+d},easeInOutQuint:function(m,f,d,g,v){return(f/=v/2)<1?g/2*f*f*f*f*f+d:g/2*((f-=2)*f*f*f*f+2)+d},easeInSine:function(m,f,d,g,v){return-g*p(f/v*(C/2))+g+d},easeOutSine:function(m,f,d,g,v){return g*h(f/v*(C/2))+d},easeInOutSine:function(m,f,d,g,v){return-g/2*(p(C*f/v)-1)+d},easeInExpo:function(m,f,d,g,v){return f===0?d:g*y(2,10*(f/v-1))+d},easeOutExpo:function(m,f,d,g,v){return f===v?d+g:g*(-y(2,-10*f/v)+1)+d},easeInOutExpo:function(m,f,d,g,v){return f===0?d:f===v?d+g:(f/=v/2)<1?g/2*y(2,10*(f-1))+d:g/2*(-y(2,-10*--f)+2)+d},easeInCirc:function(m,f,d,g,v){return-g*(w(1-(f/=v)*f)-1)+d},easeOutCirc:function(m,f,d,g,v){return g*w(1-(f=f/v-1)*f)+d},easeInOutCirc:function(m,f,d,g,v){return(f/=v/2)<1?-g/2*(w(1-f*f)-1)+d:g/2*(w(1-(f-=2)*f)+1)+d}},_=function(m){return Array.prototype.slice.call(m?document.querySelectorAll(m):[])},A=function(m){return _(m).shift()||null},O=function(m){return m instanceof Element},N=function(m){return m===window},j=function(m){return m===document.documentElement||m===document.body},U=function(m,f){if(O(f))return m===f;for(var d=_(f),g=d.length;--g>=0&&d[g]!==m;);return g>-1},J=function(m){return Math.max(m.scrollHeight,m.clientHeight,m.offsetHeight)},F=function(m){return Math.max(m.scrollWidth,m.clientWidth,m.offsetWidth)},D=function(m){return{width:F(m),height:J(m)}},te=function(m){var f=N(m)||j(m);return{viewport:{width:f?Math.min(window.innerWidth,document.documentElement.clientWidth):m.clientWidth,height:f?window.innerHeight:m.clientHeight},size:f?{width:Math.max(F(document.body),F(document.documentElement)),height:Math.max(J(document.body),J(document.documentElement))}:D(m)}},we={y:"scrollTop",x:"scrollLeft"},$={y:"pageYOffset",x:"pageXOffset"},S=function(m,f){return N(m)?m[$[f]]:m[we[f]]},E=function(m,f,d){if(N(m)){var g=d==="y";m.scrollTo(g?m.pageXOffset:f,g?f:m.pageYOffset)}else m[we[d]]=f},P=function(m,f){var d=m.getBoundingClientRect();if(d.width||d.height){var g={top:0,left:0},v=void 0;if(N(f)||j(f))v=document.documentElement,g.top=window[$.y],g.left=window[$.x];else{v=f;var L=v.getBoundingClientRect();g.top=L.top*-1+v[we.y],g.left=L.left*-1+v[we.x]}return{top:d.top+g.top-v.clientTop,left:d.left+g.left-v.clientLeft}}return d},T=function(){return e?"onwheel"in document?"wheel":"mousewheel":"wheel"}(),k=function(m){return m==="wheel"?T:m},b=function(m,f,d,g,v){d.split(" ").forEach(function(L){m[f](k(L),g,n?{passive:v}:!1)})},I=function(m,f,d,g){return b(m,"addEventListener",f,d,g)},R=function(m,f,d,g){return b(m,"removeEventListener",f,d,g)},q=/^(\+|-)=(\d+(?:\.\d+)?)$/,z=function(m,f){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=f?m[0]:0,d.left=f?0:m[0];else return null;else if(a(m))f?d.top=m:d.left=m;else if(o(m)){var g=m.trim().match(q);if(!g)return null;var v=g[1],L=parseInt(g[2],10);v==="+"?(d.top=f?L:0,d.left=f?0:L):(d.top=f?-L:0,d.left=f?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},re="click",fe="wheel touchstart touchmove",Se=function(){function m(f,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 ne=g,oe=ne.$el,se=ne.ctx;if(se.start||(se.start=L),!se.progress||!oe){g.stop();return}var gt=se.opts,qe=se.pos,et=se.start,Dr=se.startPos,Un=se.easing,yt=gt.duration,Ft={top:"y",left:"x"},ut=L-et,Ae=Math.min(1,Math.max(ut/yt,0));Object.keys(qe).forEach(function(Rr){var Fo=qe[Rr],Ln=Dr[Rr],kn=Fo-Ln;if(kn!==0){var Uo=Un(Ae,yt*Ae,0,1,yt);E(oe,Math.round(Ln+kn*Uo),Ft[Rr])}}),ut<=yt?(g.hook(gt,"step",Ae),se.id=m.raf(g.loop)):g.stop(!0)},this.handleClick=function(L){for(var ne=g.opts,oe=L.target;oe&&oe!==document;oe=oe.parentNode)if(U(oe,ne.trigger)){var se=JSON.parse(oe.getAttribute("data-scroll-options")||"{}"),gt=oe.getAttribute("data-scroll"),qe=gt||oe.getAttribute("href"),et=t({},ne,se),Dr=et.preventDefault,Un=et.stopPropagation,yt=et.vertical,Ft=et.horizontal;Dr&&L.preventDefault(),Un&&L.stopPropagation(),g.ctx.$trigger=oe,Ft&&yt?g.to(qe,et):yt?g.toTop(qe,et):Ft&&g.toLeft(qe,et);break}},this.handleStop=function(L){var ne=g.ctx,oe=ne.opts;oe&&oe.cancellable?(ne.cancel=!0,g.stop()):L.preventDefault()},this.opts=t({},K,f||{});var v=null;e&&(typeof d=="string"?v=A(d):d!=null?v=d:v=window),this.$el=v,v&&this.bind(!0,!1)}return m.create=function(f,d){return new m(f,d)},m.prototype.to=function(f,d){if(e){var g=this,v=g.$el,L=g.ctx,ne=g.opts,oe=L.$trigger,se=t({},ne,d||{}),gt=se.offset,qe=se.vertical,et=se.horizontal,Dr=O(se.header)?se.header:A(se.header),Un=/^#/,yt=o(f)&&Un.test(f)?f:null;if(L.opts=se,L.cancel=!1,L.hash=yt,this.stop(),!!v){var Ft=z(gt,qe),ut=z(f,qe),Ae={top:0,left:0};if(ut)if(ut.relative){var Rr=S(v,qe?"y":"x");Ae.top=qe?Rr+ut.top:ut.top,Ae.left=qe?ut.left:Rr+ut.left}else Ae=ut;else if(o(f)&&f!=="#"){var Fo=A(f);if(!Fo)return;Ae=P(Fo,v)}Ft&&(Ae.top+=Ft.top,Ae.left+=Ft.left),Dr&&(Ae.top=Math.max(0,Ae.top-D(Dr).height));var Ln=te(v),kn=Ln.viewport,Uo=Ln.size;if(Ae.top=qe?Math.max(0,Math.min(Uo.height-kn.height,Ae.top)):S(v,"y"),Ae.left=et?Math.max(0,Math.min(Uo.width-kn.width,Ae.left)):S(v,"x"),this.hook(se,"before",Ae,oe)===!1){L.opts=null;return}L.pos=Ae,this.start(se),this.bind(!1,!0)}}},m.prototype.toTop=function(f,d){this.to(f,t({},d||{},{vertical:!0,horizontal:!1}))},m.prototype.toLeft=function(f,d){this.to(f,t({},d||{},{vertical:!1,horizontal:!0}))},m.prototype.toElement=function(f,d){var g=this.$el;!e||!g||this.to(P(f,g),d||{})},m.prototype.stop=function(f){f===void 0&&(f=!1);var d=this,g=d.$el,v=d.ctx,L=v.pos;!g||!v.progress||(m.caf(v.id),v.progress=!1,v.start=0,v.id=0,f&&L&&(E(g,L.left,"x"),E(g,L.top,"y")),this.complete())},m.prototype.update=function(f){if(this.$el){var d=t({},this.opts,f);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(f,d){return!0},m.prototype.onStep=function(f){},m.prototype.onAfter=function(f,d){},m.prototype.onCancel=function(){},m.prototype.onComplete=function(f){},m.prototype.start=function(f){var d=this.ctx;d.opts=f,d.progress=!0,d.easing=i(f.easing)?f.easing:B[f.easing];var g=this.$el,v={top:S(g,"y"),left:S(g,"x")};d.startPos=v,d.id=m.raf(this.loop)},m.prototype.complete=function(){var f=this,d=f.$el,g=f.ctx,v=g.hash,L=g.cancel,ne=g.opts,oe=g.pos,se=g.$trigger;if(!(!d||!ne)){if(v!=null&&v!==window.location.hash){var gt=ne.updateURL;e&&r&&gt!==!1&&window.history[gt==="replace"?"replaceState":"pushState"](null,"",v)}this.unbind(!1,!0),g.opts=null,g.$trigger=null,L?this.hook(ne,"cancel"):this.hook(ne,"after",oe,se),this.hook(ne,"complete",L)}},m.prototype.hook=function(f,d){for(var g=[],v=2;v<arguments.length;v++)g[v-2]=arguments[v];var L,ne=f[d],oe,se;return i(ne)&&(oe=ne.apply(this,g.concat([this]))),se=(L=this)["on"+(d[0].toUpperCase()+d.slice(1))].apply(L,g),oe!==void 0?oe:se},m.prototype.bind=function(f,d){var g=this,v=g.$el,L=g.ctx.opts;v&&(f&&I(v,re,this.handleClick,!1),d&&I(v,fe,this.handleStop,L?L.cancellable:!0))},m.prototype.unbind=function(f,d){var g=this,v=g.$el,L=g.ctx.opts;v&&(f&&R(v,re,this.handleClick,!1),d&&R(v,fe,this.handleStop,L?L.cancellable:!0))},m.raf=l,m.caf=c,m}();return Se})});var qm=M((gR,jm)=>{jm.exports=function(){return typeof Promise=="function"&&Promise.prototype&&Promise.prototype.then}});var Qt=M(Mr=>{var Pl,OS=[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];Mr.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};Mr.getSymbolTotalCodewords=function(e){return OS[e]};Mr.getBCHDigit=function(t){let e=0;for(;t!==0;)e++,t>>>=1;return e};Mr.setToSJISFunction=function(e){if(typeof e!="function")throw new Error('"toSJISFunc" is not a valid function.');Pl=e};Mr.isKanjiModeEnabled=function(){return typeof Pl<"u"};Mr.toSJIS=function(e){return Pl(e)}});var Ts=M(Xe=>{Xe.L={bit:1};Xe.M={bit:0};Xe.Q={bit:3};Xe.H={bit:2};function DS(t){if(typeof t!="string")throw new Error("Param is not a string");switch(t.toLowerCase()){case"l":case"low":return Xe.L;case"m":case"medium":return Xe.M;case"q":case"quartile":return Xe.Q;case"h":case"high":return Xe.H;default:throw new Error("Unknown EC Level: "+t)}}Xe.isValid=function(e){return e&&typeof e.bit<"u"&&e.bit>=0&&e.bit<4};Xe.from=function(e,r){if(Xe.isValid(e))return e;try{return DS(e)}catch{return r}}});var zm=M((vR,Wm)=>{function Hm(){this.buffer=[],this.length=0}Hm.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++}};Wm.exports=Hm});var Gm=M((bR,Vm)=>{function Mo(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)}Mo.prototype.set=function(t,e,r,n){let o=t*this.size+e;this.data[o]=r,n&&(this.reservedBit[o]=!0)};Mo.prototype.get=function(t,e){return this.data[t*this.size+e]};Mo.prototype.xor=function(t,e,r){this.data[t*this.size+e]^=r};Mo.prototype.isReserved=function(t,e){return this.reservedBit[t*this.size+e]};Vm.exports=Mo});var Jm=M(_s=>{var RS=Qt().getSymbolSize;_s.getRowColCoords=function(e){if(e===1)return[];let r=Math.floor(e/7)+2,n=RS(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()};_s.getPositions=function(e){let r=[],n=_s.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 Zm=M(Qm=>{var FS=Qt().getSymbolSize,Ym=7;Qm.getPositions=function(e){let r=FS(e);return[[0,0],[r-Ym,0],[0,r-Ym]]}});var Xm=M(le=>{le.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};var Pr={N1:3,N2:3,N3:40,N4:10};le.isValid=function(e){return e!=null&&e!==""&&!isNaN(e)&&e>=0&&e<=7};le.from=function(e){return le.isValid(e)?parseInt(e,10):void 0};le.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 l=0;l<r;l++){let c=e.get(u,l);c===s?o++:(o>=5&&(n+=Pr.N1+(o-5)),s=c,o=1),c=e.get(l,u),c===a?i++:(i>=5&&(n+=Pr.N1+(i-5)),a=c,i=1)}o>=5&&(n+=Pr.N1+(o-5)),i>=5&&(n+=Pr.N1+(i-5))}return n};le.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*Pr.N2};le.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*Pr.N3};le.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)*Pr.N4};function US(t,e,r){switch(t){case le.Patterns.PATTERN000:return(e+r)%2===0;case le.Patterns.PATTERN001:return e%2===0;case le.Patterns.PATTERN010:return r%3===0;case le.Patterns.PATTERN011:return(e+r)%3===0;case le.Patterns.PATTERN100:return(Math.floor(e/2)+Math.floor(r/3))%2===0;case le.Patterns.PATTERN101:return e*r%2+e*r%3===0;case le.Patterns.PATTERN110:return(e*r%2+e*r%3)%2===0;case le.Patterns.PATTERN111:return(e*r%3+(e+r)%2)%2===0;default:throw new Error("bad maskPattern:"+t)}}le.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,US(e,i,o))};le.getBestMask=function(e,r){let n=Object.keys(le.Patterns).length,o=0,i=1/0;for(let s=0;s<n;s++){r(s),le.applyMask(s,e);let a=le.getPenaltyN1(e)+le.getPenaltyN2(e)+le.getPenaltyN3(e)+le.getPenaltyN4(e);le.applyMask(s,e),a<i&&(i=a,o=s)}return o}});var Nl=M($l=>{var Zt=Ts(),Cs=[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],As=[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];$l.getBlocksCount=function(e,r){switch(r){case Zt.L:return Cs[(e-1)*4+0];case Zt.M:return Cs[(e-1)*4+1];case Zt.Q:return Cs[(e-1)*4+2];case Zt.H:return Cs[(e-1)*4+3];default:return}};$l.getTotalCodewordsCount=function(e,r){switch(r){case Zt.L:return As[(e-1)*4+0];case Zt.M:return As[(e-1)*4+1];case Zt.Q:return As[(e-1)*4+2];case Zt.H:return As[(e-1)*4+3];default:return}}});var Km=M(Ms=>{var Po=new Uint8Array(512),Is=new Uint8Array(256);(function(){let e=1;for(let r=0;r<255;r++)Po[r]=e,Is[e]=r,e<<=1,e&256&&(e^=285);for(let r=255;r<512;r++)Po[r]=Po[r-255]})();Ms.log=function(e){if(e<1)throw new Error("log("+e+")");return Is[e]};Ms.exp=function(e){return Po[e]};Ms.mul=function(e,r){return e===0||r===0?0:Po[Is[e]+Is[r]]}});var eg=M($o=>{var Bl=Km();$o.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]^=Bl.mul(e[o],r[i]);return n};$o.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]^=Bl.mul(r[s],o);let i=0;for(;i<n.length&&n[i]===0;)i++;n=n.slice(i)}return n};$o.generateECPolynomial=function(e){let r=new Uint8Array([1]);for(let n=0;n<e;n++)r=$o.mul(r,new Uint8Array([1,Bl.exp(n)]));return r}});var ng=M((AR,rg)=>{var tg=eg();function Ol(t){this.genPoly=void 0,this.degree=t,this.degree&&this.initialize(this.degree)}Ol.prototype.initialize=function(e){this.degree=e,this.genPoly=tg.generateECPolynomial(this.degree)};Ol.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=tg.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};rg.exports=Ol});var Dl=M(og=>{og.isValid=function(e){return!isNaN(e)&&e>=1&&e<=40}});var Rl=M(Nt=>{var ig="[0-9]+",LS="[A-Z $%*+\\-./:]+",No="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";No=No.replace(/u/g,"\\u");var kS="(?:(?![A-Z0-9 $%*+\\-./:]|"+No+`)(?:.|[\r
6
- ]))+`;Nt.KANJI=new RegExp(No,"g");Nt.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g");Nt.BYTE=new RegExp(kS,"g");Nt.NUMERIC=new RegExp(ig,"g");Nt.ALPHANUMERIC=new RegExp(LS,"g");var jS=new RegExp("^"+No+"$"),qS=new RegExp("^"+ig+"$"),HS=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");Nt.testKanji=function(e){return jS.test(e)};Nt.testNumeric=function(e){return qS.test(e)};Nt.testAlphanumeric=function(e){return HS.test(e)}});var Xt=M(be=>{var WS=Dl(),Fl=Rl();be.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]};be.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]};be.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]};be.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]};be.MIXED={bit:-1};be.getCharCountIndicator=function(e,r){if(!e.ccBits)throw new Error("Invalid mode: "+e);if(!WS.isValid(r))throw new Error("Invalid version: "+r);return r>=1&&r<10?e.ccBits[0]:r<27?e.ccBits[1]:e.ccBits[2]};be.getBestModeForData=function(e){return Fl.testNumeric(e)?be.NUMERIC:Fl.testAlphanumeric(e)?be.ALPHANUMERIC:Fl.testKanji(e)?be.KANJI:be.BYTE};be.toString=function(e){if(e&&e.id)return e.id;throw new Error("Invalid mode")};be.isValid=function(e){return e&&e.bit&&e.ccBits};function zS(t){if(typeof t!="string")throw new Error("Param is not a string");switch(t.toLowerCase()){case"numeric":return be.NUMERIC;case"alphanumeric":return be.ALPHANUMERIC;case"kanji":return be.KANJI;case"byte":return be.BYTE;default:throw new Error("Unknown mode: "+t)}}be.from=function(e,r){if(be.isValid(e))return e;try{return zS(e)}catch{return r}}});var cg=M($r=>{var Ps=Qt(),VS=Nl(),sg=Ts(),Kt=Xt(),Ul=Dl(),ug=7973,ag=Ps.getBCHDigit(ug);function GS(t,e,r){for(let n=1;n<=40;n++)if(e<=$r.getCapacity(n,r,t))return n}function lg(t,e){return Kt.getCharCountIndicator(t,e)+4}function JS(t,e){let r=0;return t.forEach(function(n){let o=lg(n.mode,e);r+=o+n.getBitsLength()}),r}function YS(t,e){for(let r=1;r<=40;r++)if(JS(t,r)<=$r.getCapacity(r,e,Kt.MIXED))return r}$r.from=function(e,r){return Ul.isValid(e)?parseInt(e,10):r};$r.getCapacity=function(e,r,n){if(!Ul.isValid(e))throw new Error("Invalid QR Code version");typeof n>"u"&&(n=Kt.BYTE);let o=Ps.getSymbolTotalCodewords(e),i=VS.getTotalCodewordsCount(e,r),s=(o-i)*8;if(n===Kt.MIXED)return s;let a=s-lg(n,e);switch(n){case Kt.NUMERIC:return Math.floor(a/10*3);case Kt.ALPHANUMERIC:return Math.floor(a/11*2);case Kt.KANJI:return Math.floor(a/13);case Kt.BYTE:default:return Math.floor(a/8)}};$r.getBestVersionForData=function(e,r){let n,o=sg.from(r,sg.M);if(Array.isArray(e)){if(e.length>1)return YS(e,o);if(e.length===0)return 1;n=e[0]}else n=e;return GS(n.mode,n.getLength(),o)};$r.getEncodedBits=function(e){if(!Ul.isValid(e)||e<7)throw new Error("Invalid QR Code version");let r=e<<12;for(;Ps.getBCHDigit(r)-ag>=0;)r^=ug<<Ps.getBCHDigit(r)-ag;return e<<12|r}});var dg=M(hg=>{var Ll=Qt(),pg=1335,QS=21522,fg=Ll.getBCHDigit(pg);hg.getEncodedBits=function(e,r){let n=e.bit<<3|r,o=n<<10;for(;Ll.getBCHDigit(o)-fg>=0;)o^=pg<<Ll.getBCHDigit(o)-fg;return(n<<10|o)^QS}});var gg=M((BR,mg)=>{var ZS=Xt();function Pn(t){this.mode=ZS.NUMERIC,this.data=t.toString()}Pn.getBitsLength=function(e){return 10*Math.floor(e/3)+(e%3?e%3*3+1:0)};Pn.prototype.getLength=function(){return this.data.length};Pn.prototype.getBitsLength=function(){return Pn.getBitsLength(this.data.length)};Pn.prototype.write=function(e){let r,n,o;for(r=0;r+3<=this.data.length;r+=3)n=this.data.substr(r,3),o=parseInt(n,10),e.put(o,10);let i=this.data.length-r;i>0&&(n=this.data.substr(r),o=parseInt(n,10),e.put(o,i*3+1))};mg.exports=Pn});var xg=M((OR,yg)=>{var XS=Xt(),kl=["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 $n(t){this.mode=XS.ALPHANUMERIC,this.data=t}$n.getBitsLength=function(e){return 11*Math.floor(e/2)+6*(e%2)};$n.prototype.getLength=function(){return this.data.length};$n.prototype.getBitsLength=function(){return $n.getBitsLength(this.data.length)};$n.prototype.write=function(e){let r;for(r=0;r+2<=this.data.length;r+=2){let n=kl.indexOf(this.data[r])*45;n+=kl.indexOf(this.data[r+1]),e.put(n,11)}this.data.length%2&&e.put(kl.indexOf(this.data[r]),6)};yg.exports=$n});var bg=M((DR,vg)=>{"use strict";vg.exports=function(e){for(var r=[],n=e.length,o=0;o<n;o++){var i=e.charCodeAt(o);if(i>=55296&&i<=56319&&n>o+1){var s=e.charCodeAt(o+1);s>=56320&&s<=57343&&(i=(i-55296)*1024+s-56320+65536,o+=1)}if(i<128){r.push(i);continue}if(i<2048){r.push(i>>6|192),r.push(i&63|128);continue}if(i<55296||i>=57344&&i<65536){r.push(i>>12|224),r.push(i>>6&63|128),r.push(i&63|128);continue}if(i>=65536&&i<=1114111){r.push(i>>18|240),r.push(i>>12&63|128),r.push(i>>6&63|128),r.push(i&63|128);continue}r.push(239,191,189)}return new Uint8Array(r).buffer}});var Sg=M((RR,wg)=>{var KS=bg(),eE=Xt();function Nn(t){this.mode=eE.BYTE,typeof t=="string"&&(t=KS(t)),this.data=new Uint8Array(t)}Nn.getBitsLength=function(e){return e*8};Nn.prototype.getLength=function(){return this.data.length};Nn.prototype.getBitsLength=function(){return Nn.getBitsLength(this.data.length)};Nn.prototype.write=function(t){for(let e=0,r=this.data.length;e<r;e++)t.put(this.data[e],8)};wg.exports=Nn});var Tg=M((FR,Eg)=>{var tE=Xt(),rE=Qt();function Bn(t){this.mode=tE.KANJI,this.data=t}Bn.getBitsLength=function(e){return e*13};Bn.prototype.getLength=function(){return this.data.length};Bn.prototype.getBitsLength=function(){return Bn.getBitsLength(this.data.length)};Bn.prototype.write=function(t){let e;for(e=0;e<this.data.length;e++){let r=rE.toSJIS(this.data[e]);if(r>=33088&&r<=40956)r-=33088;else if(r>=57408&&r<=60351)r-=49472;else throw new Error("Invalid SJIS character: "+this.data[e]+`
7
- Make sure your charset is UTF-8`);r=(r>>>8&255)*192+(r&255),t.put(r,13)}};Eg.exports=Bn});var _g=M((UR,jl)=>{"use strict";var Bo={single_source_shortest_paths:function(t,e,r){var n={},o={};o[e]=0;var i=Bo.PriorityQueue.make();i.push(e,0);for(var s,a,u,l,c,p,h,y,w;!i.empty();){s=i.pop(),a=s.value,l=s.cost,c=t[a]||{};for(u in c)c.hasOwnProperty(u)&&(p=c[u],h=l+p,y=o[u],w=typeof o[u]>"u",(w||y>h)&&(o[u]=h,i.push(u,h),n[u]=a))}if(typeof r<"u"&&typeof o[r]>"u"){var C=["Could not find a path from ",e," to ",r,"."].join("");throw new Error(C)}return n},extract_shortest_path_from_predecessor_list:function(t,e){for(var r=[],n=e,o;n;)r.push(n),o=t[n],n=t[n];return r.reverse(),r},find_path:function(t,e,r){var n=Bo.single_source_shortest_paths(t,e,r);return Bo.extract_shortest_path_from_predecessor_list(n,r)},PriorityQueue:{make:function(t){var e=Bo.PriorityQueue,r={},n;t=t||{};for(n in e)e.hasOwnProperty(n)&&(r[n]=e[n]);return r.queue=[],r.sorter=t.sorter||e.default_sorter,r},default_sorter:function(t,e){return t.cost-e.cost},push:function(t,e){var r={value:t,cost:e};this.queue.push(r),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return this.queue.length===0}}};typeof jl<"u"&&(jl.exports=Bo)});var Bg=M(On=>{var ee=Xt(),Ig=gg(),Mg=xg(),Pg=Sg(),$g=Tg(),Oo=Rl(),$s=Qt(),nE=_g();function Cg(t){return unescape(encodeURIComponent(t)).length}function Do(t,e,r){let n=[],o;for(;(o=t.exec(r))!==null;)n.push({data:o[0],index:o.index,mode:e,length:o[0].length});return n}function Ng(t){let e=Do(Oo.NUMERIC,ee.NUMERIC,t),r=Do(Oo.ALPHANUMERIC,ee.ALPHANUMERIC,t),n,o;return $s.isKanjiModeEnabled()?(n=Do(Oo.BYTE,ee.BYTE,t),o=Do(Oo.KANJI,ee.KANJI,t)):(n=Do(Oo.BYTE_KANJI,ee.BYTE,t),o=[]),e.concat(r,n,o).sort(function(s,a){return s.index-a.index}).map(function(s){return{data:s.data,mode:s.mode,length:s.length}})}function ql(t,e){switch(e){case ee.NUMERIC:return Ig.getBitsLength(t);case ee.ALPHANUMERIC:return Mg.getBitsLength(t);case ee.KANJI:return $g.getBitsLength(t);case ee.BYTE:return Pg.getBitsLength(t)}}function oE(t){return t.reduce(function(e,r){let n=e.length-1>=0?e[e.length-1]:null;return n&&n.mode===r.mode?(e[e.length-1].data+=r.data,e):(e.push(r),e)},[])}function iE(t){let e=[];for(let r=0;r<t.length;r++){let n=t[r];switch(n.mode){case ee.NUMERIC:e.push([n,{data:n.data,mode:ee.ALPHANUMERIC,length:n.length},{data:n.data,mode:ee.BYTE,length:n.length}]);break;case ee.ALPHANUMERIC:e.push([n,{data:n.data,mode:ee.BYTE,length:n.length}]);break;case ee.KANJI:e.push([n,{data:n.data,mode:ee.BYTE,length:Cg(n.data)}]);break;case ee.BYTE:e.push([{data:n.data,mode:ee.BYTE,length:Cg(n.data)}])}}return e}function sE(t,e){let r={},n={start:{}},o=["start"];for(let i=0;i<t.length;i++){let s=t[i],a=[];for(let u=0;u<s.length;u++){let l=s[u],c=""+i+u;a.push(c),r[c]={node:l,lastCount:0},n[c]={};for(let p=0;p<o.length;p++){let h=o[p];r[h]&&r[h].node.mode===l.mode?(n[h][c]=ql(r[h].lastCount+l.length,l.mode)-ql(r[h].lastCount,l.mode),r[h].lastCount+=l.length):(r[h]&&(r[h].lastCount=l.length),n[h][c]=ql(l.length,l.mode)+4+ee.getCharCountIndicator(l.mode,e))}}o=a}for(let i=0;i<o.length;i++)n[o[i]].end=0;return{map:n,table:r}}function Ag(t,e){let r,n=ee.getBestModeForData(t);if(r=ee.from(e,n),r!==ee.BYTE&&r.bit<n.bit)throw new Error('"'+t+'" cannot be encoded with mode '+ee.toString(r)+`.
8
- Suggested mode is: `+ee.toString(n));switch(r===ee.KANJI&&!$s.isKanjiModeEnabled()&&(r=ee.BYTE),r){case ee.NUMERIC:return new Ig(t);case ee.ALPHANUMERIC:return new Mg(t);case ee.KANJI:return new $g(t);case ee.BYTE:return new Pg(t)}}On.fromArray=function(e){return e.reduce(function(r,n){return typeof n=="string"?r.push(Ag(n,null)):n.data&&r.push(Ag(n.data,n.mode)),r},[])};On.fromString=function(e,r){let n=Ng(e,$s.isKanjiModeEnabled()),o=iE(n),i=sE(o,r),s=nE.find_path(i.map,"start","end"),a=[];for(let u=1;u<s.length-1;u++)a.push(i.table[s[u]].node);return On.fromArray(oE(a))};On.rawSplit=function(e){return On.fromArray(Ng(e,$s.isKanjiModeEnabled()))}});var Dg=M(Og=>{var Bs=Qt(),Hl=Ts(),aE=zm(),uE=Gm(),lE=Jm(),cE=Zm(),Vl=Xm(),Gl=Nl(),fE=ng(),Ns=cg(),pE=dg(),hE=Xt(),Wl=Bg();function dE(t,e){let r=t.size,n=cE.getPositions(e);for(let o=0;o<n.length;o++){let i=n[o][0],s=n[o][1];for(let a=-1;a<=7;a++)if(!(i+a<=-1||r<=i+a))for(let u=-1;u<=7;u++)s+u<=-1||r<=s+u||(a>=0&&a<=6&&(u===0||u===6)||u>=0&&u<=6&&(a===0||a===6)||a>=2&&a<=4&&u>=2&&u<=4?t.set(i+a,s+u,!0,!0):t.set(i+a,s+u,!1,!0))}}function mE(t){let e=t.size;for(let r=8;r<e-8;r++){let n=r%2===0;t.set(r,6,n,!0),t.set(6,r,n,!0)}}function gE(t,e){let r=lE.getPositions(e);for(let n=0;n<r.length;n++){let o=r[n][0],i=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?t.set(o+s,i+a,!0,!0):t.set(o+s,i+a,!1,!0)}}function yE(t,e){let r=t.size,n=Ns.getEncodedBits(e),o,i,s;for(let a=0;a<18;a++)o=Math.floor(a/3),i=a%3+r-8-3,s=(n>>a&1)===1,t.set(o,i,s,!0),t.set(i,o,s,!0)}function zl(t,e,r){let n=t.size,o=pE.getEncodedBits(e,r),i,s;for(i=0;i<15;i++)s=(o>>i&1)===1,i<6?t.set(i,8,s,!0):i<8?t.set(i+1,8,s,!0):t.set(n-15+i,8,s,!0),i<8?t.set(8,n-i-1,s,!0):i<9?t.set(8,15-i-1+1,s,!0):t.set(8,15-i-1,s,!0);t.set(n-8,8,1,!0)}function xE(t,e){let r=t.size,n=-1,o=r-1,i=7,s=0;for(let a=r-1;a>0;a-=2)for(a===6&&a--;;){for(let u=0;u<2;u++)if(!t.isReserved(o,a-u)){let l=!1;s<e.length&&(l=(e[s]>>>i&1)===1),t.set(o,a-u,l),i--,i===-1&&(s++,i=7)}if(o+=n,o<0||r<=o){o-=n,n=-n;break}}}function vE(t,e,r){let n=new aE;r.forEach(function(u){n.put(u.mode.bit,4),n.put(u.getLength(),hE.getCharCountIndicator(u.mode,t)),u.write(n)});let o=Bs.getSymbolTotalCodewords(t),i=Gl.getTotalCodewordsCount(t,e),s=(o-i)*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 u=0;u<a;u++)n.put(u%2?17:236,8);return bE(n,t,e)}function bE(t,e,r){let n=Bs.getSymbolTotalCodewords(e),o=Gl.getTotalCodewordsCount(e,r),i=n-o,s=Gl.getBlocksCount(e,r),a=n%s,u=s-a,l=Math.floor(n/s),c=Math.floor(i/s),p=c+1,h=l-c,y=new fE(h),w=0,C=new Array(s),B=new Array(s),_=0,A=new Uint8Array(t.buffer);for(let J=0;J<s;J++){let F=J<u?c:p;C[J]=A.slice(w,w+F),B[J]=y.encode(C[J]),w+=F,_=Math.max(_,F)}let O=new Uint8Array(n),N=0,j,U;for(j=0;j<_;j++)for(U=0;U<s;U++)j<C[U].length&&(O[N++]=C[U][j]);for(j=0;j<h;j++)for(U=0;U<s;U++)O[N++]=B[U][j];return O}function wE(t,e,r,n){let o;if(Array.isArray(t))o=Wl.fromArray(t);else if(typeof t=="string"){let l=e;if(!l){let c=Wl.rawSplit(t);l=Ns.getBestVersionForData(c,r)}o=Wl.fromString(t,l||40)}else throw new Error("Invalid data");let i=Ns.getBestVersionForData(o,r);if(!i)throw new Error("The amount of data is too big to be stored in a QR Code");if(!e)e=i;else if(e<i)throw new Error(`
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&&gt!==!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
+ ]))+`;Nt.KANJI=new RegExp(Lo,"g");Nt.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g");Nt.BYTE=new RegExp(SE,"g");Nt.NUMERIC=new RegExp(wg,"g");Nt.ALPHANUMERIC=new RegExp(wE,"g");var EE=new RegExp("^"+Lo+"$"),TE=new RegExp("^"+wg+"$"),_E=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");Nt.testKanji=function(e){return EE.test(e)};Nt.testNumeric=function(e){return TE.test(e)};Nt.testAlphanumeric=function(e){return _E.test(e)}});var er=C(we=>{var CE=zc(),Gc=Vc();we.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]};we.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]};we.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]};we.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]};we.MIXED={bit:-1};we.getCharCountIndicator=function(e,r){if(!e.ccBits)throw new Error("Invalid mode: "+e);if(!CE.isValid(r))throw new Error("Invalid version: "+r);return r>=1&&r<10?e.ccBits[0]:r<27?e.ccBits[1]:e.ccBits[2]};we.getBestModeForData=function(e){return Gc.testNumeric(e)?we.NUMERIC:Gc.testAlphanumeric(e)?we.ALPHANUMERIC:Gc.testKanji(e)?we.KANJI:we.BYTE};we.toString=function(e){if(e&&e.id)return e.id;throw new Error("Invalid mode")};we.isValid=function(e){return e&&e.bit&&e.ccBits};function AE(t){if(typeof t!="string")throw new Error("Param is not a string");switch(t.toLowerCase()){case"numeric":return we.NUMERIC;case"alphanumeric":return we.ALPHANUMERIC;case"kanji":return we.KANJI;case"byte":return we.BYTE;default:throw new Error("Unknown mode: "+t)}}we.from=function(e,r){if(we.isValid(e))return e;try{return AE(e)}catch{return r}}});var Cg=C(Nr=>{var js=Xt(),IE=qc(),Sg=Bs(),tr=er(),Jc=zc(),Tg=7973,Eg=js.getBCHDigit(Tg);function ME(t,e,r){for(let n=1;n<=40;n++)if(e<=Nr.getCapacity(n,r,t))return n}function _g(t,e){return tr.getCharCountIndicator(t,e)+4}function PE(t,e){let r=0;return t.forEach(function(n){let o=_g(n.mode,e);r+=o+n.getBitsLength()}),r}function $E(t,e){for(let r=1;r<=40;r++)if(PE(t,r)<=Nr.getCapacity(r,e,tr.MIXED))return r}Nr.from=function(e,r){return Jc.isValid(e)?parseInt(e,10):r};Nr.getCapacity=function(e,r,n){if(!Jc.isValid(e))throw new Error("Invalid QR Code version");typeof n>"u"&&(n=tr.BYTE);let o=js.getSymbolTotalCodewords(e),i=IE.getTotalCodewordsCount(e,r),s=(o-i)*8;if(n===tr.MIXED)return s;let a=s-_g(n,e);switch(n){case tr.NUMERIC:return Math.floor(a/10*3);case tr.ALPHANUMERIC:return Math.floor(a/11*2);case tr.KANJI:return Math.floor(a/13);case tr.BYTE:default:return Math.floor(a/8)}};Nr.getBestVersionForData=function(e,r){let n,o=Sg.from(r,Sg.M);if(Array.isArray(e)){if(e.length>1)return $E(e,o);if(e.length===0)return 1;n=e[0]}else n=e;return ME(n.mode,n.getLength(),o)};Nr.getEncodedBits=function(e){if(!Jc.isValid(e)||e<7)throw new Error("Invalid QR Code version");let r=e<<12;for(;js.getBCHDigit(r)-Eg>=0;)r^=Tg<<js.getBCHDigit(r)-Eg;return e<<12|r}});var Pg=C(Mg=>{var Yc=Xt(),Ig=1335,NE=21522,Ag=Yc.getBCHDigit(Ig);Mg.getEncodedBits=function(e,r){let n=e.bit<<3|r,o=n<<10;for(;Yc.getBCHDigit(o)-Ag>=0;)o^=Ig<<Yc.getBCHDigit(o)-Ag;return(n<<10|o)^NE}});var Ng=C((wF,$g)=>{var OE=er();function $n(t){this.mode=OE.NUMERIC,this.data=t.toString()}$n.getBitsLength=function(e){return 10*Math.floor(e/3)+(e%3?e%3*3+1:0)};$n.prototype.getLength=function(){return this.data.length};$n.prototype.getBitsLength=function(){return $n.getBitsLength(this.data.length)};$n.prototype.write=function(e){let r,n,o;for(r=0;r+3<=this.data.length;r+=3)n=this.data.substr(r,3),o=parseInt(n,10),e.put(o,10);let i=this.data.length-r;i>0&&(n=this.data.substr(r),o=parseInt(n,10),e.put(o,i*3+1))};$g.exports=$n});var Dg=C((SF,Og)=>{var DE=er(),Qc=["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 Nn(t){this.mode=DE.ALPHANUMERIC,this.data=t}Nn.getBitsLength=function(e){return 11*Math.floor(e/2)+6*(e%2)};Nn.prototype.getLength=function(){return this.data.length};Nn.prototype.getBitsLength=function(){return Nn.getBitsLength(this.data.length)};Nn.prototype.write=function(e){let r;for(r=0;r+2<=this.data.length;r+=2){let n=Qc.indexOf(this.data[r])*45;n+=Qc.indexOf(this.data[r+1]),e.put(n,11)}this.data.length%2&&e.put(Qc.indexOf(this.data[r]),6)};Og.exports=Nn});var Rg=C((EF,Bg)=>{"use strict";Bg.exports=function(e){for(var r=[],n=e.length,o=0;o<n;o++){var i=e.charCodeAt(o);if(i>=55296&&i<=56319&&n>o+1){var s=e.charCodeAt(o+1);s>=56320&&s<=57343&&(i=(i-55296)*1024+s-56320+65536,o+=1)}if(i<128){r.push(i);continue}if(i<2048){r.push(i>>6|192),r.push(i&63|128);continue}if(i<55296||i>=57344&&i<65536){r.push(i>>12|224),r.push(i>>6&63|128),r.push(i&63|128);continue}if(i>=65536&&i<=1114111){r.push(i>>18|240),r.push(i>>12&63|128),r.push(i>>6&63|128),r.push(i&63|128);continue}r.push(239,191,189)}return new Uint8Array(r).buffer}});var Ug=C((TF,Fg)=>{var BE=Rg(),RE=er();function On(t){this.mode=RE.BYTE,typeof t=="string"&&(t=BE(t)),this.data=new Uint8Array(t)}On.getBitsLength=function(e){return e*8};On.prototype.getLength=function(){return this.data.length};On.prototype.getBitsLength=function(){return On.getBitsLength(this.data.length)};On.prototype.write=function(t){for(let e=0,r=this.data.length;e<r;e++)t.put(this.data[e],8)};Fg.exports=On});var kg=C((_F,Lg)=>{var FE=er(),UE=Xt();function Dn(t){this.mode=FE.KANJI,this.data=t}Dn.getBitsLength=function(e){return e*13};Dn.prototype.getLength=function(){return this.data.length};Dn.prototype.getBitsLength=function(){return Dn.getBitsLength(this.data.length)};Dn.prototype.write=function(t){let e;for(e=0;e<this.data.length;e++){let r=UE.toSJIS(this.data[e]);if(r>=33088&&r<=40956)r-=33088;else if(r>=57408&&r<=60351)r-=49472;else throw new Error("Invalid SJIS character: "+this.data[e]+`
7
+ Make sure your charset is UTF-8`);r=(r>>>8&255)*192+(r&255),t.put(r,13)}};Lg.exports=Dn});var jg=C((CF,Zc)=>{"use strict";var ko={single_source_shortest_paths:function(t,e,r){var n={},o={};o[e]=0;var i=ko.PriorityQueue.make();i.push(e,0);for(var s,a,u,c,l,f,h,y,w;!i.empty();){s=i.pop(),a=s.value,c=s.cost,l=t[a]||{};for(u in l)l.hasOwnProperty(u)&&(f=l[u],h=c+f,y=o[u],w=typeof o[u]>"u",(w||y>h)&&(o[u]=h,i.push(u,h),n[u]=a))}if(typeof r<"u"&&typeof o[r]>"u"){var A=["Could not find a path from ",e," to ",r,"."].join("");throw new Error(A)}return n},extract_shortest_path_from_predecessor_list:function(t,e){for(var r=[],n=e,o;n;)r.push(n),o=t[n],n=t[n];return r.reverse(),r},find_path:function(t,e,r){var n=ko.single_source_shortest_paths(t,e,r);return ko.extract_shortest_path_from_predecessor_list(n,r)},PriorityQueue:{make:function(t){var e=ko.PriorityQueue,r={},n;t=t||{};for(n in e)e.hasOwnProperty(n)&&(r[n]=e[n]);return r.queue=[],r.sorter=t.sorter||e.default_sorter,r},default_sorter:function(t,e){return t.cost-e.cost},push:function(t,e){var r={value:t,cost:e};this.queue.push(r),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return this.queue.length===0}}};typeof Zc<"u"&&(Zc.exports=ko)});var Yg=C(Bn=>{var ee=er(),Hg=Ng(),zg=Dg(),Vg=Ug(),Gg=kg(),jo=Vc(),qs=Xt(),LE=jg();function qg(t){return unescape(encodeURIComponent(t)).length}function qo(t,e,r){let n=[],o;for(;(o=t.exec(r))!==null;)n.push({data:o[0],index:o.index,mode:e,length:o[0].length});return n}function Jg(t){let e=qo(jo.NUMERIC,ee.NUMERIC,t),r=qo(jo.ALPHANUMERIC,ee.ALPHANUMERIC,t),n,o;return qs.isKanjiModeEnabled()?(n=qo(jo.BYTE,ee.BYTE,t),o=qo(jo.KANJI,ee.KANJI,t)):(n=qo(jo.BYTE_KANJI,ee.BYTE,t),o=[]),e.concat(r,n,o).sort(function(s,a){return s.index-a.index}).map(function(s){return{data:s.data,mode:s.mode,length:s.length}})}function Xc(t,e){switch(e){case ee.NUMERIC:return Hg.getBitsLength(t);case ee.ALPHANUMERIC:return zg.getBitsLength(t);case ee.KANJI:return Gg.getBitsLength(t);case ee.BYTE:return Vg.getBitsLength(t)}}function kE(t){return t.reduce(function(e,r){let n=e.length-1>=0?e[e.length-1]:null;return n&&n.mode===r.mode?(e[e.length-1].data+=r.data,e):(e.push(r),e)},[])}function jE(t){let e=[];for(let r=0;r<t.length;r++){let n=t[r];switch(n.mode){case ee.NUMERIC:e.push([n,{data:n.data,mode:ee.ALPHANUMERIC,length:n.length},{data:n.data,mode:ee.BYTE,length:n.length}]);break;case ee.ALPHANUMERIC:e.push([n,{data:n.data,mode:ee.BYTE,length:n.length}]);break;case ee.KANJI:e.push([n,{data:n.data,mode:ee.BYTE,length:qg(n.data)}]);break;case ee.BYTE:e.push([{data:n.data,mode:ee.BYTE,length:qg(n.data)}])}}return e}function qE(t,e){let r={},n={start:{}},o=["start"];for(let i=0;i<t.length;i++){let s=t[i],a=[];for(let u=0;u<s.length;u++){let c=s[u],l=""+i+u;a.push(l),r[l]={node:c,lastCount:0},n[l]={};for(let f=0;f<o.length;f++){let h=o[f];r[h]&&r[h].node.mode===c.mode?(n[h][l]=Xc(r[h].lastCount+c.length,c.mode)-Xc(r[h].lastCount,c.mode),r[h].lastCount+=c.length):(r[h]&&(r[h].lastCount=c.length),n[h][l]=Xc(c.length,c.mode)+4+ee.getCharCountIndicator(c.mode,e))}}o=a}for(let i=0;i<o.length;i++)n[o[i]].end=0;return{map:n,table:r}}function Wg(t,e){let r,n=ee.getBestModeForData(t);if(r=ee.from(e,n),r!==ee.BYTE&&r.bit<n.bit)throw new Error('"'+t+'" cannot be encoded with mode '+ee.toString(r)+`.
8
+ Suggested mode is: `+ee.toString(n));switch(r===ee.KANJI&&!qs.isKanjiModeEnabled()&&(r=ee.BYTE),r){case ee.NUMERIC:return new Hg(t);case ee.ALPHANUMERIC:return new zg(t);case ee.KANJI:return new Gg(t);case ee.BYTE:return new Vg(t)}}Bn.fromArray=function(e){return e.reduce(function(r,n){return typeof n=="string"?r.push(Wg(n,null)):n.data&&r.push(Wg(n.data,n.mode)),r},[])};Bn.fromString=function(e,r){let n=Jg(e,qs.isKanjiModeEnabled()),o=jE(n),i=qE(o,r),s=LE.find_path(i.map,"start","end"),a=[];for(let u=1;u<s.length-1;u++)a.push(i.table[s[u]].node);return Bn.fromArray(kE(a))};Bn.rawSplit=function(e){return Bn.fromArray(Jg(e,qs.isKanjiModeEnabled()))}});var Zg=C(Qg=>{var Hs=Xt(),Kc=Bs(),WE=ag(),HE=cg(),zE=lg(),VE=hg(),rl=dg(),nl=qc(),GE=bg(),Ws=Cg(),JE=Pg(),YE=er(),el=Yg();function QE(t,e){let r=t.size,n=VE.getPositions(e);for(let o=0;o<n.length;o++){let i=n[o][0],s=n[o][1];for(let a=-1;a<=7;a++)if(!(i+a<=-1||r<=i+a))for(let u=-1;u<=7;u++)s+u<=-1||r<=s+u||(a>=0&&a<=6&&(u===0||u===6)||u>=0&&u<=6&&(a===0||a===6)||a>=2&&a<=4&&u>=2&&u<=4?t.set(i+a,s+u,!0,!0):t.set(i+a,s+u,!1,!0))}}function ZE(t){let e=t.size;for(let r=8;r<e-8;r++){let n=r%2===0;t.set(r,6,n,!0),t.set(6,r,n,!0)}}function XE(t,e){let r=zE.getPositions(e);for(let n=0;n<r.length;n++){let o=r[n][0],i=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?t.set(o+s,i+a,!0,!0):t.set(o+s,i+a,!1,!0)}}function KE(t,e){let r=t.size,n=Ws.getEncodedBits(e),o,i,s;for(let a=0;a<18;a++)o=Math.floor(a/3),i=a%3+r-8-3,s=(n>>a&1)===1,t.set(o,i,s,!0),t.set(i,o,s,!0)}function tl(t,e,r){let n=t.size,o=JE.getEncodedBits(e,r),i,s;for(i=0;i<15;i++)s=(o>>i&1)===1,i<6?t.set(i,8,s,!0):i<8?t.set(i+1,8,s,!0):t.set(n-15+i,8,s,!0),i<8?t.set(8,n-i-1,s,!0):i<9?t.set(8,15-i-1+1,s,!0):t.set(8,15-i-1,s,!0);t.set(n-8,8,1,!0)}function eT(t,e){let r=t.size,n=-1,o=r-1,i=7,s=0;for(let a=r-1;a>0;a-=2)for(a===6&&a--;;){for(let u=0;u<2;u++)if(!t.isReserved(o,a-u)){let c=!1;s<e.length&&(c=(e[s]>>>i&1)===1),t.set(o,a-u,c),i--,i===-1&&(s++,i=7)}if(o+=n,o<0||r<=o){o-=n,n=-n;break}}}function tT(t,e,r){let n=new WE;r.forEach(function(u){n.put(u.mode.bit,4),n.put(u.getLength(),YE.getCharCountIndicator(u.mode,t)),u.write(n)});let o=Hs.getSymbolTotalCodewords(t),i=nl.getTotalCodewordsCount(t,e),s=(o-i)*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 u=0;u<a;u++)n.put(u%2?17:236,8);return rT(n,t,e)}function rT(t,e,r){let n=Hs.getSymbolTotalCodewords(e),o=nl.getTotalCodewordsCount(e,r),i=n-o,s=nl.getBlocksCount(e,r),a=n%s,u=s-a,c=Math.floor(n/s),l=Math.floor(i/s),f=l+1,h=c-l,y=new GE(h),w=0,A=new Array(s),O=new Array(s),_=0,I=new Uint8Array(t.buffer);for(let Y=0;Y<s;Y++){let F=Y<u?l:f;A[Y]=I.slice(w,w+F),O[Y]=y.encode(A[Y]),w+=F,_=Math.max(_,F)}let D=new Uint8Array(n),N=0,q,U;for(q=0;q<_;q++)for(U=0;U<s;U++)q<A[U].length&&(D[N++]=A[U][q]);for(q=0;q<h;q++)for(U=0;U<s;U++)D[N++]=O[U][q];return D}function nT(t,e,r,n){let o;if(Array.isArray(t))o=el.fromArray(t);else if(typeof t=="string"){let c=e;if(!c){let l=el.rawSplit(t);c=Ws.getBestVersionForData(l,r)}o=el.fromString(t,c||40)}else throw new Error("Invalid data");let i=Ws.getBestVersionForData(o,r);if(!i)throw new Error("The amount of data is too big to be stored in a QR Code");if(!e)e=i;else if(e<i)throw new Error(`
9
9
  The chosen QR Code version cannot contain this amount of data.
10
10
  Minimum version required to store current data is: `+i+`.
11
- `);let s=vE(e,r,o),a=Bs.getSymbolSize(e),u=new uE(a);return dE(u,e),mE(u),gE(u,e),zl(u,r,0),e>=7&&yE(u,e),xE(u,s),isNaN(n)&&(n=Vl.getBestMask(u,zl.bind(null,u,r))),Vl.applyMask(n,u),zl(u,r,n),{modules:u,version:e,errorCorrectionLevel:r,maskPattern:n,segments:o}}Og.create=function(e,r){if(typeof e>"u"||e==="")throw new Error("No input text");let n=Hl.M,o,i;return typeof r<"u"&&(n=Hl.from(r.errorCorrectionLevel,Hl.M),o=Ns.from(r.version),i=Vl.from(r.maskPattern),r.toSJISFunc&&Bs.setToSJISFunction(r.toSJISFunc)),wE(e,o,n,i)}});var Jl=M(Nr=>{function Rg(t){if(typeof t=="number"&&(t=t.toString()),typeof t!="string")throw new Error("Color should be defined as hex string");let e=t.slice().replace("#","").split("");if(e.length<3||e.length===5||e.length>8)throw new Error("Invalid hex color: "+t);(e.length===3||e.length===4)&&(e=Array.prototype.concat.apply([],e.map(function(n){return[n,n]}))),e.length===6&&e.push("F","F");let r=parseInt(e.join(""),16);return{r:r>>24&255,g:r>>16&255,b:r>>8&255,a:r&255,hex:"#"+e.slice(0,6).join("")}}Nr.getOptions=function(e){e||(e={}),e.color||(e.color={});let r=typeof e.margin>"u"||e.margin===null||e.margin<0?4:e.margin,n=e.width&&e.width>=21?e.width:void 0,o=e.scale||4;return{width:n,scale:n?4:o,margin:r,color:{dark:Rg(e.color.dark||"#000000ff"),light:Rg(e.color.light||"#ffffffff")},type:e.type,rendererOpts:e.rendererOpts||{}}};Nr.getScale=function(e,r){return r.width&&r.width>=e+r.margin*2?r.width/(e+r.margin*2):r.scale};Nr.getImageWidth=function(e,r){let n=Nr.getScale(e,r);return Math.floor((e+r.margin*2)*n)};Nr.qrToImageData=function(e,r,n){let o=r.modules.size,i=r.modules.data,s=Nr.getScale(o,n),a=Math.floor((o+n.margin*2)*s),u=n.margin*s,l=[n.color.light,n.color.dark];for(let c=0;c<a;c++)for(let p=0;p<a;p++){let h=(c*a+p)*4,y=n.color.light;if(c>=u&&p>=u&&c<a-u&&p<a-u){let w=Math.floor((c-u)/s),C=Math.floor((p-u)/s);y=l[i[w*o+C]?1:0]}e[h++]=y.r,e[h++]=y.g,e[h++]=y.b,e[h]=y.a}}});var Fg=M(Os=>{var Yl=Jl();function SE(t,e,r){t.clearRect(0,0,e.width,e.height),e.style||(e.style={}),e.height=r,e.width=r,e.style.height=r+"px",e.style.width=r+"px"}function EE(){try{return document.createElement("canvas")}catch{throw new Error("You need to specify a canvas element")}}Os.render=function(e,r,n){let o=n,i=r;typeof o>"u"&&(!r||!r.getContext)&&(o=r,r=void 0),r||(i=EE()),o=Yl.getOptions(o);let s=Yl.getImageWidth(e.modules.size,o),a=i.getContext("2d"),u=a.createImageData(s,s);return Yl.qrToImageData(u.data,e,o),SE(a,i,s),a.putImageData(u,0,0),i};Os.renderToDataURL=function(e,r,n){let o=n;typeof o>"u"&&(!r||!r.getContext)&&(o=r,r=void 0),o||(o={});let i=Os.render(e,r,o),s=o.type||"image/png",a=o.rendererOpts||{};return i.toDataURL(s,a.quality)}});var kg=M(Lg=>{var TE=Jl();function Ug(t,e){let r=t.a/255,n=e+'="'+t.hex+'"';return r<1?n+" "+e+'-opacity="'+r.toFixed(2).slice(1)+'"':n}function Ql(t,e,r){let n=t+e;return typeof r<"u"&&(n+=" "+r),n}function _E(t,e,r){let n="",o=0,i=!1,s=0;for(let a=0;a<t.length;a++){let u=Math.floor(a%e),l=Math.floor(a/e);!u&&!i&&(i=!0),t[a]?(s++,a>0&&u>0&&t[a-1]||(n+=i?Ql("M",u+r,.5+l+r):Ql("m",o,0),o=0,i=!1),u+1<e&&t[a+1]||(n+=Ql("h",s),s=0)):o++}return n}Lg.render=function(e,r,n){let o=TE.getOptions(r),i=e.modules.size,s=e.modules.data,a=i+o.margin*2,u=o.color.light.a?"<path "+Ug(o.color.light,"fill")+' d="M0 0h'+a+"v"+a+'H0z"/>':"",l="<path "+Ug(o.color.dark,"stroke")+' d="'+_E(s,i,o.margin)+'"/>',c='viewBox="0 0 '+a+" "+a+'"',h='<svg xmlns="http://www.w3.org/2000/svg" '+(o.width?'width="'+o.width+'" height="'+o.width+'" ':"")+c+' shape-rendering="crispEdges">'+u+l+`</svg>
12
- `;return typeof n=="function"&&n(null,h),h}});var qg=M(Ro=>{var CE=qm(),Zl=Dg(),jg=Fg(),AE=kg();function Xl(t,e,r,n,o){let i=[].slice.call(arguments,1),s=i.length,a=typeof i[s-1]=="function";if(!a&&!CE())throw new Error("Callback required as last argument");if(a){if(s<2)throw new Error("Too few arguments provided");s===2?(o=r,r=e,e=n=void 0):s===3&&(e.getContext&&typeof o>"u"?(o=n,n=void 0):(o=n,n=r,r=e,e=void 0))}else{if(s<1)throw new Error("Too few arguments provided");return s===1?(r=e,e=n=void 0):s===2&&!e.getContext&&(n=r,r=e,e=void 0),new Promise(function(u,l){try{let c=Zl.create(r,n);u(t(c,e,n))}catch(c){l(c)}})}try{let u=Zl.create(r,n);o(null,t(u,e,n))}catch(u){o(u)}}Ro.create=Zl.create;Ro.toCanvas=Xl.bind(null,jg.render);Ro.toDataURL=Xl.bind(null,jg.renderToDataURL);Ro.toString=Xl.bind(null,function(t,e,r){return AE.render(t,r)})});var ko=window,jo=ko.ShadowRoot&&(ko.ShadyCSS===void 0||ko.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Ds=Symbol(),ec=new WeakMap,jn=class{constructor(e,r,n){if(this._$cssResult$=!0,n!==Ds)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=r}get styleSheet(){let e=this.o,r=this.t;if(jo&&e===void 0){let n=r!==void 0&&r.length===1;n&&(e=ec.get(r)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),n&&ec.set(r,e))}return e}toString(){return this.cssText}},H=t=>new jn(typeof t=="string"?t:t+"",void 0,Ds),ae=(t,...e)=>{let r=t.length===1?t[0]:e.reduce((n,o,i)=>n+(s=>{if(s._$cssResult$===!0)return s.cssText;if(typeof s=="number")return s;throw Error("Value passed to 'css' function must be a 'css' function result: "+s+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(o)+t[i+1],t[0]);return new jn(r,t,Ds)},Rs=(t,e)=>{jo?t.adoptedStyleSheets=e.map(r=>r instanceof CSSStyleSheet?r:r.styleSheet):e.forEach(r=>{let n=document.createElement("style"),o=ko.litNonce;o!==void 0&&n.setAttribute("nonce",o),n.textContent=r.cssText,t.appendChild(n)})},qo=jo?t=>t:t=>t instanceof CSSStyleSheet?(e=>{let r="";for(let n of e.cssRules)r+=n.cssText;return H(r)})(t):t;var Fs,Ho=window,tc=Ho.trustedTypes,Kg=tc?tc.emptyScript:"",rc=Ho.reactiveElementPolyfillSupport,Ls={toAttribute(t,e){switch(e){case Boolean:t=t?Kg:null;break;case Object:case Array:t=t==null?t:JSON.stringify(t)}return t},fromAttribute(t,e){let r=t;switch(e){case Boolean:r=t!==null;break;case Number:r=t===null?null:Number(t);break;case Object:case Array:try{r=JSON.parse(t)}catch{r=null}}return r}},nc=(t,e)=>e!==t&&(e==e||t==t),Us={attribute:!0,type:String,converter:Ls,reflect:!1,hasChanged:nc},ks="finalized",xt=class extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this._$Eu()}static addInitializer(e){var r;this.finalize(),((r=this.h)!==null&&r!==void 0?r:this.h=[]).push(e)}static get observedAttributes(){this.finalize();let e=[];return this.elementProperties.forEach((r,n)=>{let o=this._$Ep(n,r);o!==void 0&&(this._$Ev.set(o,n),e.push(o))}),e}static createProperty(e,r=Us){if(r.state&&(r.attribute=!1),this.finalize(),this.elementProperties.set(e,r),!r.noAccessor&&!this.prototype.hasOwnProperty(e)){let n=typeof e=="symbol"?Symbol():"__"+e,o=this.getPropertyDescriptor(e,n,r);o!==void 0&&Object.defineProperty(this.prototype,e,o)}}static getPropertyDescriptor(e,r,n){return{get(){return this[r]},set(o){let i=this[e];this[r]=o,this.requestUpdate(e,i,n)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)||Us}static finalize(){if(this.hasOwnProperty(ks))return!1;this[ks]=!0;let e=Object.getPrototypeOf(this);if(e.finalize(),e.h!==void 0&&(this.h=[...e.h]),this.elementProperties=new Map(e.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){let r=this.properties,n=[...Object.getOwnPropertyNames(r),...Object.getOwnPropertySymbols(r)];for(let o of n)this.createProperty(o,r[o])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(e){let r=[];if(Array.isArray(e)){let n=new Set(e.flat(1/0).reverse());for(let o of n)r.unshift(qo(o))}else e!==void 0&&r.push(qo(e));return r}static _$Ep(e,r){let n=r.attribute;return n===!1?void 0:typeof n=="string"?n:typeof e=="string"?e.toLowerCase():void 0}_$Eu(){var e;this._$E_=new Promise(r=>this.enableUpdating=r),this._$AL=new Map,this._$Eg(),this.requestUpdate(),(e=this.constructor.h)===null||e===void 0||e.forEach(r=>r(this))}addController(e){var r,n;((r=this._$ES)!==null&&r!==void 0?r:this._$ES=[]).push(e),this.renderRoot!==void 0&&this.isConnected&&((n=e.hostConnected)===null||n===void 0||n.call(e))}removeController(e){var r;(r=this._$ES)===null||r===void 0||r.splice(this._$ES.indexOf(e)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach((e,r)=>{this.hasOwnProperty(r)&&(this._$Ei.set(r,this[r]),delete this[r])})}createRenderRoot(){var e;let r=(e=this.shadowRoot)!==null&&e!==void 0?e:this.attachShadow(this.constructor.shadowRootOptions);return Rs(r,this.constructor.elementStyles),r}connectedCallback(){var e;this.renderRoot===void 0&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(e=this._$ES)===null||e===void 0||e.forEach(r=>{var n;return(n=r.hostConnected)===null||n===void 0?void 0:n.call(r)})}enableUpdating(e){}disconnectedCallback(){var e;(e=this._$ES)===null||e===void 0||e.forEach(r=>{var n;return(n=r.hostDisconnected)===null||n===void 0?void 0:n.call(r)})}attributeChangedCallback(e,r,n){this._$AK(e,n)}_$EO(e,r,n=Us){var o;let i=this.constructor._$Ep(e,n);if(i!==void 0&&n.reflect===!0){let s=(((o=n.converter)===null||o===void 0?void 0:o.toAttribute)!==void 0?n.converter:Ls).toAttribute(r,n.type);this._$El=e,s==null?this.removeAttribute(i):this.setAttribute(i,s),this._$El=null}}_$AK(e,r){var n;let o=this.constructor,i=o._$Ev.get(e);if(i!==void 0&&this._$El!==i){let s=o.getPropertyOptions(i),a=typeof s.converter=="function"?{fromAttribute:s.converter}:((n=s.converter)===null||n===void 0?void 0:n.fromAttribute)!==void 0?s.converter:Ls;this._$El=i,this[i]=a.fromAttribute(r,s.type),this._$El=null}}requestUpdate(e,r,n){let o=!0;e!==void 0&&(((n=n||this.constructor.getPropertyOptions(e)).hasChanged||nc)(this[e],r)?(this._$AL.has(e)||this._$AL.set(e,r),n.reflect===!0&&this._$El!==e&&(this._$EC===void 0&&(this._$EC=new Map),this._$EC.set(e,n))):o=!1),!this.isUpdatePending&&o&&(this._$E_=this._$Ej())}async _$Ej(){this.isUpdatePending=!0;try{await this._$E_}catch(r){Promise.reject(r)}let e=this.scheduleUpdate();return e!=null&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var e;if(!this.isUpdatePending)return;this.hasUpdated,this._$Ei&&(this._$Ei.forEach((o,i)=>this[i]=o),this._$Ei=void 0);let r=!1,n=this._$AL;try{r=this.shouldUpdate(n),r?(this.willUpdate(n),(e=this._$ES)===null||e===void 0||e.forEach(o=>{var i;return(i=o.hostUpdate)===null||i===void 0?void 0:i.call(o)}),this.update(n)):this._$Ek()}catch(o){throw r=!1,this._$Ek(),o}r&&this._$AE(n)}willUpdate(e){}_$AE(e){var r;(r=this._$ES)===null||r===void 0||r.forEach(n=>{var o;return(o=n.hostUpdated)===null||o===void 0?void 0:o.call(n)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$Ek(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$E_}shouldUpdate(e){return!0}update(e){this._$EC!==void 0&&(this._$EC.forEach((r,n)=>this._$EO(n,this[n],r)),this._$EC=void 0),this._$Ek()}updated(e){}firstUpdated(e){}};xt[ks]=!0,xt.elementProperties=new Map,xt.elementStyles=[],xt.shadowRootOptions={mode:"open"},rc?.({ReactiveElement:xt}),((Fs=Ho.reactiveElementVersions)!==null&&Fs!==void 0?Fs:Ho.reactiveElementVersions=[]).push("1.6.3");var js,Wo=window,Fr=Wo.trustedTypes,oc=Fr?Fr.createPolicy("lit-html",{createHTML:t=>t}):void 0,zo="$lit$",vt=`lit$${(Math.random()+"").slice(9)}$`,Hs="?"+vt,ey=`<${Hs}>`,nr=document,Hn=()=>nr.createComment(""),Wn=t=>t===null||typeof t!="object"&&typeof t!="function",fc=Array.isArray,pc=t=>fc(t)||typeof t?.[Symbol.iterator]=="function",qs=`[
13
- \f\r]`,qn=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,ic=/-->/g,sc=/>/g,tr=RegExp(`>|${qs}(?:([^\\s"'>=/]+)(${qs}*=${qs}*(?:[^
14
- \f\r"'\`<>=]|("|')|))|$)`,"g"),ac=/'/g,uc=/"/g,hc=/^(?:script|style|textarea|title)$/i,dc=t=>(e,...r)=>({_$litType$:t,strings:e,values:r}),W=dc(1),BE=dc(2),Ee=Symbol.for("lit-noChange"),de=Symbol.for("lit-nothing"),lc=new WeakMap,rr=nr.createTreeWalker(nr,129,null,!1);function mc(t,e){if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return oc!==void 0?oc.createHTML(e):e}var gc=(t,e)=>{let r=t.length-1,n=[],o,i=e===2?"<svg>":"",s=qn;for(let a=0;a<r;a++){let u=t[a],l,c,p=-1,h=0;for(;h<u.length&&(s.lastIndex=h,c=s.exec(u),c!==null);)h=s.lastIndex,s===qn?c[1]==="!--"?s=ic:c[1]!==void 0?s=sc:c[2]!==void 0?(hc.test(c[2])&&(o=RegExp("</"+c[2],"g")),s=tr):c[3]!==void 0&&(s=tr):s===tr?c[0]===">"?(s=o??qn,p=-1):c[1]===void 0?p=-2:(p=s.lastIndex-c[2].length,l=c[1],s=c[3]===void 0?tr:c[3]==='"'?uc:ac):s===uc||s===ac?s=tr:s===ic||s===sc?s=qn:(s=tr,o=void 0);let y=s===tr&&t[a+1].startsWith("/>")?" ":"";i+=s===qn?u+ey:p>=0?(n.push(l),u.slice(0,p)+zo+u.slice(p)+vt+y):u+vt+(p===-2?(n.push(void 0),a):y)}return[mc(t,i+(t[r]||"<?>")+(e===2?"</svg>":"")),n]},zn=class t{constructor({strings:e,_$litType$:r},n){let o;this.parts=[];let i=0,s=0,a=e.length-1,u=this.parts,[l,c]=gc(e,r);if(this.el=t.createElement(l,n),rr.currentNode=this.el.content,r===2){let p=this.el.content,h=p.firstChild;h.remove(),p.append(...h.childNodes)}for(;(o=rr.nextNode())!==null&&u.length<a;){if(o.nodeType===1){if(o.hasAttributes()){let p=[];for(let h of o.getAttributeNames())if(h.endsWith(zo)||h.startsWith(vt)){let y=c[s++];if(p.push(h),y!==void 0){let w=o.getAttribute(y.toLowerCase()+zo).split(vt),C=/([.?@])?(.*)/.exec(y);u.push({type:1,index:i,name:C[2],strings:w,ctor:C[1]==="."?Go:C[1]==="?"?Jo:C[1]==="@"?Yo:ir})}else u.push({type:6,index:i})}for(let h of p)o.removeAttribute(h)}if(hc.test(o.tagName)){let p=o.textContent.split(vt),h=p.length-1;if(h>0){o.textContent=Fr?Fr.emptyScript:"";for(let y=0;y<h;y++)o.append(p[y],Hn()),rr.nextNode(),u.push({type:2,index:++i});o.append(p[h],Hn())}}}else if(o.nodeType===8)if(o.data===Hs)u.push({type:2,index:i});else{let p=-1;for(;(p=o.data.indexOf(vt,p+1))!==-1;)u.push({type:7,index:i}),p+=vt.length-1}i++}}static createElement(e,r){let n=nr.createElement("template");return n.innerHTML=e,n}};function or(t,e,r=t,n){var o,i,s,a;if(e===Ee)return e;let u=n!==void 0?(o=r._$Co)===null||o===void 0?void 0:o[n]:r._$Cl,l=Wn(e)?void 0:e._$litDirective$;return u?.constructor!==l&&((i=u?._$AO)===null||i===void 0||i.call(u,!1),l===void 0?u=void 0:(u=new l(t),u._$AT(t,r,n)),n!==void 0?((s=(a=r)._$Co)!==null&&s!==void 0?s:a._$Co=[])[n]=u:r._$Cl=u),u!==void 0&&(e=or(t,u._$AS(t,e.values),u,n)),e}var Vo=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){var r;let{el:{content:n},parts:o}=this._$AD,i=((r=e?.creationScope)!==null&&r!==void 0?r:nr).importNode(n,!0);rr.currentNode=i;let s=rr.nextNode(),a=0,u=0,l=o[0];for(;l!==void 0;){if(a===l.index){let c;l.type===2?c=new Ur(s,s.nextSibling,this,e):l.type===1?c=new l.ctor(s,l.name,l.strings,this,e):l.type===6&&(c=new Qo(s,this,e)),this._$AV.push(c),l=o[++u]}a!==l?.index&&(s=rr.nextNode(),a++)}return rr.currentNode=nr,i}v(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++}},Ur=class t{constructor(e,r,n,o){var i;this.type=2,this._$AH=de,this._$AN=void 0,this._$AA=e,this._$AB=r,this._$AM=n,this.options=o,this._$Cp=(i=o?.isConnected)===null||i===void 0||i}get _$AU(){var e,r;return(r=(e=this._$AM)===null||e===void 0?void 0:e._$AU)!==null&&r!==void 0?r:this._$Cp}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=or(this,e,r),Wn(e)?e===de||e==null||e===""?(this._$AH!==de&&this._$AR(),this._$AH=de):e!==this._$AH&&e!==Ee&&this._(e):e._$litType$!==void 0?this.g(e):e.nodeType!==void 0?this.$(e):pc(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!==de&&Wn(this._$AH)?this._$AA.nextSibling.data=e:this.$(nr.createTextNode(e)),this._$AH=e}g(e){var r;let{values:n,_$litType$:o}=e,i=typeof o=="number"?this._$AC(e):(o.el===void 0&&(o.el=zn.createElement(mc(o.h,o.h[0]),this.options)),o);if(((r=this._$AH)===null||r===void 0?void 0:r._$AD)===i)this._$AH.v(n);else{let s=new Vo(i,this),a=s.u(this.options);s.v(n),this.$(a),this._$AH=s}}_$AC(e){let r=lc.get(e.strings);return r===void 0&&lc.set(e.strings,r=new zn(e)),r}T(e){fc(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(Hn()),this.k(Hn()),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){var n;for((n=this._$AP)===null||n===void 0||n.call(this,!1,!0,r);e&&e!==this._$AB;){let o=e.nextSibling;e.remove(),e=o}}setConnected(e){var r;this._$AM===void 0&&(this._$Cp=e,(r=this._$AP)===null||r===void 0||r.call(this,e))}},ir=class{constructor(e,r,n,o,i){this.type=1,this._$AH=de,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=de}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(e,r=this,n,o){let i=this.strings,s=!1;if(i===void 0)e=or(this,e,r,0),s=!Wn(e)||e!==this._$AH&&e!==Ee,s&&(this._$AH=e);else{let a=e,u,l;for(e=i[0],u=0;u<i.length-1;u++)l=or(this,a[n+u],r,u),l===Ee&&(l=this._$AH[u]),s||(s=!Wn(l)||l!==this._$AH[u]),l===de?e=de:e!==de&&(e+=(l??"")+i[u+1]),this._$AH[u]=l}s&&!o&&this.j(e)}j(e){e===de?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}},Go=class extends ir{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===de?void 0:e}},ty=Fr?Fr.emptyScript:"",Jo=class extends ir{constructor(){super(...arguments),this.type=4}j(e){e&&e!==de?this.element.setAttribute(this.name,ty):this.element.removeAttribute(this.name)}},Yo=class extends ir{constructor(e,r,n,o,i){super(e,r,n,o,i),this.type=5}_$AI(e,r=this){var n;if((e=(n=or(this,e,r,0))!==null&&n!==void 0?n:de)===Ee)return;let o=this._$AH,i=e===de&&o!==de||e.capture!==o.capture||e.once!==o.once||e.passive!==o.passive,s=e!==de&&(o===de||i);i&&this.element.removeEventListener(this.name,this,o),s&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){var r,n;typeof this._$AH=="function"?this._$AH.call((n=(r=this.options)===null||r===void 0?void 0:r.host)!==null&&n!==void 0?n:this.element,e):this._$AH.handleEvent(e)}},Qo=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){or(this,e)}},yc={O:zo,P:vt,A:Hs,C:1,M:gc,L:Vo,R:pc,D:or,I:Ur,V:ir,H:Jo,N:Yo,U:Go,F:Qo},cc=Wo.litHtmlPolyfillSupport;cc?.(zn,Ur),((js=Wo.litHtmlVersions)!==null&&js!==void 0?js:Wo.litHtmlVersions=[]).push("2.8.0");var Vn=(t,e,r)=>{var n,o;let i=(n=r?.renderBefore)!==null&&n!==void 0?n:e,s=i._$litPart$;if(s===void 0){let a=(o=r?.renderBefore)!==null&&o!==void 0?o:null;i._$litPart$=s=new Ur(e.insertBefore(Hn(),a),a,void 0,r??{})}return s._$AI(t),s};var Ws,zs;var Ut=class extends xt{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var e,r;let n=super.createRenderRoot();return(e=(r=this.renderOptions).renderBefore)!==null&&e!==void 0||(r.renderBefore=n.firstChild),n}update(e){let r=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=Vn(r,this.renderRoot,this.renderOptions)}connectedCallback(){var e;super.connectedCallback(),(e=this._$Do)===null||e===void 0||e.setConnected(!0)}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this._$Do)===null||e===void 0||e.setConnected(!1)}render(){return Ee}};Ut.finalized=!0,Ut._$litElement$=!0,(Ws=globalThis.litElementHydrateSupport)===null||Ws===void 0||Ws.call(globalThis,{LitElement:Ut});var xc=globalThis.litElementPolyfillSupport;xc?.({LitElement:Ut});((zs=globalThis.litElementVersions)!==null&&zs!==void 0?zs:globalThis.litElementVersions=[]).push("3.3.3");var Am=Be(Xo(),1);var ye={};X(ye,{ObservableIntake:()=>aa,Observablemap:()=>sa,rxjs:()=>hr});var Y={};X(Y,{CumulativeDeferred:()=>ei,Deferred:()=>Ko,cumulativeDefer:()=>ny,defer:()=>sr,getFirstTrueOrFalse:()=>uy,map:()=>sy,rejectedPromise:()=>iy,resolvedPromise:()=>oy,timeoutAndContinue:()=>ay,timeoutWrap:()=>vc});var Ko=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"})}},sr=()=>new Ko;var ei=class{constructor(){this.accumulatedPromises=[],this.deferred=sr(),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)}},ny=()=>new ei;var oy=t=>Promise.resolve(t),iy=t=>Promise.reject(t),sy=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},vc=async(t,e,r=!0)=>new Promise((n,o)=>{setTimeout(()=>{r?o(new Error("timeout")):n(null)},e),t.then(n,o)}),ay=async(t,e=6e4)=>vc(t,e,!1),uy=async t=>{let e=sr();for(let r of t)r.then(n=>{n===!0&&e.resolve(!0)});return Promise.all(t).then(()=>{e.resolve(!1)}),e.promise};var hr={};X(hr,{Observable:()=>ce,ReplaySubject:()=>Zs,Subject:()=>wt,Subscription:()=>rt,from:()=>Zn,fromEvent:()=>pr,ops:()=>Oy});var Vs=function(t,e){return Vs=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])},Vs(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");Vs(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}function bc(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(c){try{l(n.next(c))}catch(p){s(p)}}function u(c){try{l(n.throw(c))}catch(p){s(p)}}function l(c){c.done?i(c.value):o(c.value).then(a,u)}l((n=n.apply(t,e||[])).next())})}function ti(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(l){return function(c){return u([l,c])}}function u(l){if(n)throw new TypeError("Generator is already executing.");for(;s&&(s=0,l[0]&&(r=0)),r;)try{if(n=1,o&&(i=l[0]&2?o.return:l[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,l[1])).done)return i;switch(o=0,i&&(l=[l[0]&2,i.value]),l[0]){case 0:case 1:i=l;break;case 4:return r.label++,{value:l[1],done:!1};case 5:r.label++,o=l[1],l=[0];continue;case 7:l=r.ops.pop(),r.trys.pop();continue;default:if(i=r.trys,!(i=i.length>0&&i[i.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!i||l[1]>i[0]&&l[1]<i[3])){r.label=l[1];break}if(l[0]===6&&r.label<i[1]){r.label=i[1],i=l;break}if(i&&r.label<i[2]){r.label=i[2],r.ops.push(l);break}i[2]&&r.ops.pop(),r.trys.pop();continue}l=e.call(t,r)}catch(c){l=[6,c],o=0}finally{n=i=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}}function bt(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 He(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 tt(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 ar(t){return this instanceof ar?(this.v=t,this):new ar(t)}function wc(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,C){i.push([h,y,w,C])>1||a(h,y)})})}function a(h,y){try{u(n[h](y))}catch(w){p(i[0][3],w)}}function u(h){h.value instanceof ar?Promise.resolve(h.value.v).then(l,c):p(i[0][2],h)}function l(h){a("next",h)}function c(h){a("throw",h)}function p(h,y){h(y),i.shift(),i.length&&a(i[0][0],i[0][1])}}function Sc(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 bt=="function"?bt(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(l){i({value:l,done:a})},s)}}function G(t){return typeof t=="function"}function ri(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 ni=ri(function(t){return function(r){t(this),this.message=r?r.length+` errors occurred during unsubscription:
11
+ `);let s=tT(e,r,o),a=Hs.getSymbolSize(e),u=new HE(a);return QE(u,e),ZE(u),XE(u,e),tl(u,r,0),e>=7&&KE(u,e),eT(u,s),isNaN(n)&&(n=rl.getBestMask(u,tl.bind(null,u,r))),rl.applyMask(n,u),tl(u,r,n),{modules:u,version:e,errorCorrectionLevel:r,maskPattern:n,segments:o}}Qg.create=function(e,r){if(typeof e>"u"||e==="")throw new Error("No input text");let n=Kc.M,o,i;return typeof r<"u"&&(n=Kc.from(r.errorCorrectionLevel,Kc.M),o=Ws.from(r.version),i=rl.from(r.maskPattern),r.toSJISFunc&&Hs.setToSJISFunction(r.toSJISFunc)),nT(e,o,n,i)}});var ol=C(Or=>{function Xg(t){if(typeof t=="number"&&(t=t.toString()),typeof t!="string")throw new Error("Color should be defined as hex string");let e=t.slice().replace("#","").split("");if(e.length<3||e.length===5||e.length>8)throw new Error("Invalid hex color: "+t);(e.length===3||e.length===4)&&(e=Array.prototype.concat.apply([],e.map(function(n){return[n,n]}))),e.length===6&&e.push("F","F");let r=parseInt(e.join(""),16);return{r:r>>24&255,g:r>>16&255,b:r>>8&255,a:r&255,hex:"#"+e.slice(0,6).join("")}}Or.getOptions=function(e){e||(e={}),e.color||(e.color={});let r=typeof e.margin>"u"||e.margin===null||e.margin<0?4:e.margin,n=e.width&&e.width>=21?e.width:void 0,o=e.scale||4;return{width:n,scale:n?4:o,margin:r,color:{dark:Xg(e.color.dark||"#000000ff"),light:Xg(e.color.light||"#ffffffff")},type:e.type,rendererOpts:e.rendererOpts||{}}};Or.getScale=function(e,r){return r.width&&r.width>=e+r.margin*2?r.width/(e+r.margin*2):r.scale};Or.getImageWidth=function(e,r){let n=Or.getScale(e,r);return Math.floor((e+r.margin*2)*n)};Or.qrToImageData=function(e,r,n){let o=r.modules.size,i=r.modules.data,s=Or.getScale(o,n),a=Math.floor((o+n.margin*2)*s),u=n.margin*s,c=[n.color.light,n.color.dark];for(let l=0;l<a;l++)for(let f=0;f<a;f++){let h=(l*a+f)*4,y=n.color.light;if(l>=u&&f>=u&&l<a-u&&f<a-u){let w=Math.floor((l-u)/s),A=Math.floor((f-u)/s);y=c[i[w*o+A]?1:0]}e[h++]=y.r,e[h++]=y.g,e[h++]=y.b,e[h]=y.a}}});var Kg=C(zs=>{var il=ol();function oT(t,e,r){t.clearRect(0,0,e.width,e.height),e.style||(e.style={}),e.height=r,e.width=r,e.style.height=r+"px",e.style.width=r+"px"}function iT(){try{return document.createElement("canvas")}catch{throw new Error("You need to specify a canvas element")}}zs.render=function(e,r,n){let o=n,i=r;typeof o>"u"&&(!r||!r.getContext)&&(o=r,r=void 0),r||(i=iT()),o=il.getOptions(o);let s=il.getImageWidth(e.modules.size,o),a=i.getContext("2d"),u=a.createImageData(s,s);return il.qrToImageData(u.data,e,o),oT(a,i,s),a.putImageData(u,0,0),i};zs.renderToDataURL=function(e,r,n){let o=n;typeof o>"u"&&(!r||!r.getContext)&&(o=r,r=void 0),o||(o={});let i=zs.render(e,r,o),s=o.type||"image/png",a=o.rendererOpts||{};return i.toDataURL(s,a.quality)}});var ry=C(ty=>{var sT=ol();function ey(t,e){let r=t.a/255,n=e+'="'+t.hex+'"';return r<1?n+" "+e+'-opacity="'+r.toFixed(2).slice(1)+'"':n}function sl(t,e,r){let n=t+e;return typeof r<"u"&&(n+=" "+r),n}function aT(t,e,r){let n="",o=0,i=!1,s=0;for(let a=0;a<t.length;a++){let u=Math.floor(a%e),c=Math.floor(a/e);!u&&!i&&(i=!0),t[a]?(s++,a>0&&u>0&&t[a-1]||(n+=i?sl("M",u+r,.5+c+r):sl("m",o,0),o=0,i=!1),u+1<e&&t[a+1]||(n+=sl("h",s),s=0)):o++}return n}ty.render=function(e,r,n){let o=sT.getOptions(r),i=e.modules.size,s=e.modules.data,a=i+o.margin*2,u=o.color.light.a?"<path "+ey(o.color.light,"fill")+' d="M0 0h'+a+"v"+a+'H0z"/>':"",c="<path "+ey(o.color.dark,"stroke")+' d="'+aT(s,i,o.margin)+'"/>',l='viewBox="0 0 '+a+" "+a+'"',h='<svg xmlns="http://www.w3.org/2000/svg" '+(o.width?'width="'+o.width+'" height="'+o.width+'" ':"")+l+' shape-rendering="crispEdges">'+u+c+`</svg>
12
+ `;return typeof n=="function"&&n(null,h),h}});var oy=C(Wo=>{var uT=og(),al=Zg(),ny=Kg(),cT=ry();function ul(t,e,r,n,o){let i=[].slice.call(arguments,1),s=i.length,a=typeof i[s-1]=="function";if(!a&&!uT())throw new Error("Callback required as last argument");if(a){if(s<2)throw new Error("Too few arguments provided");s===2?(o=r,r=e,e=n=void 0):s===3&&(e.getContext&&typeof o>"u"?(o=n,n=void 0):(o=n,n=r,r=e,e=void 0))}else{if(s<1)throw new Error("Too few arguments provided");return s===1?(r=e,e=n=void 0):s===2&&!e.getContext&&(n=r,r=e,e=void 0),new Promise(function(u,c){try{let l=al.create(r,n);u(t(l,e,n))}catch(l){c(l)}})}try{let u=al.create(r,n);o(null,t(u,e,n))}catch(u){o(u)}}Wo.create=al.create;Wo.toCanvas=ul.bind(null,ny.render);Wo.toDataURL=ul.bind(null,ny.renderToDataURL);Wo.toString=ul.bind(null,function(t,e,r){return cT.render(t,r)})});var Jo=globalThis,Yo=Jo.ShadowRoot&&(Jo.ShadyCSS===void 0||Jo.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Vs=Symbol(),ll=new WeakMap,Wn=class{constructor(e,r,n){if(this._$cssResult$=!0,n!==Vs)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=r}get styleSheet(){let e=this.o,r=this.t;if(Yo&&e===void 0){let n=r!==void 0&&r.length===1;n&&(e=ll.get(r)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),n&&ll.set(r,e))}return e}toString(){return this.cssText}},V=t=>new Wn(typeof t=="string"?t:t+"",void 0,Vs),te=(t,...e)=>{let r=t.length===1?t[0]:e.reduce((n,o,i)=>n+(s=>{if(s._$cssResult$===!0)return s.cssText;if(typeof s=="number")return s;throw Error("Value passed to 'css' function must be a 'css' function result: "+s+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(o)+t[i+1],t[0]);return new Wn(r,t,Vs)},Gs=(t,e)=>{if(Yo)t.adoptedStyleSheets=e.map(r=>r instanceof CSSStyleSheet?r:r.styleSheet);else for(let r of e){let n=document.createElement("style"),o=Jo.litNonce;o!==void 0&&n.setAttribute("nonce",o),n.textContent=r.cssText,t.appendChild(n)}},Qo=Yo?t=>t:t=>t instanceof CSSStyleSheet?(e=>{let r="";for(let n of e.cssRules)r+=n.cssText;return V(r)})(t):t;var{is:gy,defineProperty:yy,getOwnPropertyDescriptor:xy,getOwnPropertyNames:by,getOwnPropertySymbols:vy,getPrototypeOf:wy}=Object,Zo=globalThis,fl=Zo.trustedTypes,Sy=fl?fl.emptyScript:"",Ey=Zo.reactiveElementPolyfillSupport,Hn=(t,e)=>t,zn={toAttribute(t,e){switch(e){case Boolean:t=t?Sy:null;break;case Object:case Array:t=t==null?t:JSON.stringify(t)}return t},fromAttribute(t,e){let r=t;switch(e){case Boolean:r=t!==null;break;case Number:r=t===null?null:Number(t);break;case Object:case Array:try{r=JSON.parse(t)}catch{r=null}}return r}},Xo=(t,e)=>!gy(t,e),pl={attribute:!0,type:String,converter:zn,reflect:!1,hasChanged:Xo};Symbol.metadata??=Symbol("metadata"),Zo.litPropertyMetadata??=new WeakMap;var xt=class extends HTMLElement{static addInitializer(e){this._$Ei(),(this.l??=[]).push(e)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(e,r=pl){if(r.state&&(r.attribute=!1),this._$Ei(),this.elementProperties.set(e,r),!r.noAccessor){let n=Symbol(),o=this.getPropertyDescriptor(e,n,r);o!==void 0&&yy(this.prototype,e,o)}}static getPropertyDescriptor(e,r,n){let{get:o,set:i}=xy(this.prototype,e)??{get(){return this[r]},set(s){this[r]=s}};return{get(){return o?.call(this)},set(s){let a=o?.call(this);i.call(this,s),this.requestUpdate(e,a,n)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)??pl}static _$Ei(){if(this.hasOwnProperty(Hn("elementProperties")))return;let e=wy(this);e.finalize(),e.l!==void 0&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(Hn("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(Hn("properties"))){let r=this.properties,n=[...by(r),...vy(r)];for(let o of n)this.createProperty(o,r[o])}let e=this[Symbol.metadata];if(e!==null){let r=litPropertyMetadata.get(e);if(r!==void 0)for(let[n,o]of r)this.elementProperties.set(n,o)}this._$Eh=new Map;for(let[r,n]of this.elementProperties){let o=this._$Eu(r,n);o!==void 0&&this._$Eh.set(o,r)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(e){let r=[];if(Array.isArray(e)){let n=new Set(e.flat(1/0).reverse());for(let o of n)r.unshift(Qo(o))}else e!==void 0&&r.push(Qo(e));return r}static _$Eu(e,r){let n=r.attribute;return n===!1?void 0:typeof n=="string"?n:typeof e=="string"?e.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$Eg=new Promise(e=>this.enableUpdating=e),this._$AL=new Map,this._$ES(),this.requestUpdate(),this.constructor.l?.forEach(e=>e(this))}addController(e){(this._$E_??=new Set).add(e),this.renderRoot!==void 0&&this.isConnected&&e.hostConnected?.()}removeController(e){this._$E_?.delete(e)}_$ES(){let e=new Map,r=this.constructor.elementProperties;for(let n of r.keys())this.hasOwnProperty(n)&&(e.set(n,this[n]),delete this[n]);e.size>0&&(this._$Ep=e)}createRenderRoot(){let e=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return Gs(e,this.constructor.elementStyles),e}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$E_?.forEach(e=>e.hostConnected?.())}enableUpdating(e){}disconnectedCallback(){this._$E_?.forEach(e=>e.hostDisconnected?.())}attributeChangedCallback(e,r,n){this._$AK(e,n)}_$EO(e,r){let n=this.constructor.elementProperties.get(e),o=this.constructor._$Eu(e,n);if(o!==void 0&&n.reflect===!0){let i=(n.converter?.toAttribute!==void 0?n.converter:zn).toAttribute(r,n.type);this._$Em=e,i==null?this.removeAttribute(o):this.setAttribute(o,i),this._$Em=null}}_$AK(e,r){let n=this.constructor,o=n._$Eh.get(e);if(o!==void 0&&this._$Em!==o){let i=n.getPropertyOptions(o),s=typeof i.converter=="function"?{fromAttribute:i.converter}:i.converter?.fromAttribute!==void 0?i.converter:zn;this._$Em=o,this[o]=s.fromAttribute(r,i.type),this._$Em=null}}requestUpdate(e,r,n){if(e!==void 0){if(n??=this.constructor.getPropertyOptions(e),!(n.hasChanged??Xo)(this[e],r))return;this.C(e,r,n)}this.isUpdatePending===!1&&(this._$Eg=this._$EP())}C(e,r,n){this._$AL.has(e)||this._$AL.set(e,r),n.reflect===!0&&this._$Em!==e&&(this._$ET??=new Set).add(e)}async _$EP(){this.isUpdatePending=!0;try{await this._$Eg}catch(r){Promise.reject(r)}let e=this.scheduleUpdate();return e!=null&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(let[o,i]of this._$Ep)this[o]=i;this._$Ep=void 0}let n=this.constructor.elementProperties;if(n.size>0)for(let[o,i]of n)i.wrapped!==!0||this._$AL.has(o)||this[o]===void 0||this.C(o,this[o],i)}let e=!1,r=this._$AL;try{e=this.shouldUpdate(r),e?(this.willUpdate(r),this._$E_?.forEach(n=>n.hostUpdate?.()),this.update(r)):this._$Ej()}catch(n){throw e=!1,this._$Ej(),n}e&&this._$AE(r)}willUpdate(e){}_$AE(e){this._$E_?.forEach(r=>r.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$Ej(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$Eg}shouldUpdate(e){return!0}update(e){this._$ET&&=this._$ET.forEach(r=>this._$EO(r,this[r])),this._$Ej()}updated(e){}firstUpdated(e){}};xt.elementStyles=[],xt.shadowRootOptions={mode:"open"},xt[Hn("elementProperties")]=new Map,xt[Hn("finalized")]=new Map,Ey?.({ReactiveElement:xt}),(Zo.reactiveElementVersions??=[]).push("2.0.3");var Ys=globalThis,Ko=Ys.trustedTypes,hl=Ko?Ko.createPolicy("lit-html",{createHTML:t=>t}):void 0,Qs="$lit$",bt=`lit$${(Math.random()+"").slice(9)}$`,Zs="?"+bt,Ty=`<${Zs}>`,sr=document,Gn=()=>sr.createComment(""),Jn=t=>t===null||typeof t!="object"&&typeof t!="function",bl=Array.isArray,vl=t=>bl(t)||typeof t?.[Symbol.iterator]=="function",Js=`[
13
+ \f\r]`,Vn=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,dl=/-->/g,ml=/>/g,or=RegExp(`>|${Js}(?:([^\\s"'>=/]+)(${Js}*=${Js}*(?:[^
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
15
  `+r.map(function(n,o){return o+1+") "+n.toString()}).join(`
16
- `):"",this.name="UnsubscriptionError",this.errors=r}});function ur(t,e){if(t){var r=t.indexOf(e);0<=r&&t.splice(r,1)}}var rt=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=bt(s),u=a.next();!u.done;u=a.next()){var l=u.value;l.remove(this)}}catch(C){e={error:C}}finally{try{u&&!u.done&&(r=a.return)&&r.call(a)}finally{if(e)throw e.error}}else s.remove(this);var c=this.initialTeardown;if(G(c))try{c()}catch(C){i=C instanceof ni?C.errors:[C]}var p=this._finalizers;if(p){this._finalizers=null;try{for(var h=bt(p),y=h.next();!y.done;y=h.next()){var w=y.value;try{Ec(w)}catch(C){i=i??[],C instanceof ni?i=tt(tt([],He(i)),He(C.errors)):i.push(C)}}}catch(C){n={error:C}}finally{try{y&&!y.done&&(o=h.return)&&o.call(h)}finally{if(n)throw n.error}}}if(i)throw new ni(i)}},t.prototype.add=function(e){var r;if(e&&e!==this)if(this.closed)Ec(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)&&ur(r,e)},t.prototype.remove=function(e){var r=this._finalizers;r&&ur(r,e),e instanceof t&&e._removeParent(this)},t.EMPTY=function(){var e=new t;return e.closed=!0,e}(),t}();var Gs=rt.EMPTY;function oi(t){return t instanceof rt||t&&"closed"in t&&G(t.remove)&&G(t.add)&&G(t.unsubscribe)}function Ec(t){G(t)?t():t.unsubscribe()}var nt={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};var Lr={setTimeout:function(t,e){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var o=Lr.delegate;return o?.setTimeout?o.setTimeout.apply(o,tt([t,e],He(r))):setTimeout.apply(void 0,tt([t,e],He(r)))},clearTimeout:function(t){var e=Lr.delegate;return(e?.clearTimeout||clearTimeout)(t)},delegate:void 0};function ii(t){Lr.setTimeout(function(){var e=nt.onUnhandledError;if(e)e(t);else throw t})}function lr(){}var Tc=function(){return Js("C",void 0,void 0)}();function _c(t){return Js("E",void 0,t)}function Cc(t){return Js("N",t,void 0)}function Js(t,e,r){return{kind:t,value:e,error:r}}var cr=null;function kr(t){if(nt.useDeprecatedSynchronousErrorHandling){var e=!cr;if(e&&(cr={errorThrown:!1,error:null}),t(),e){var r=cr,n=r.errorThrown,o=r.error;if(cr=null,n)throw o}}else t()}function Ac(t){nt.useDeprecatedSynchronousErrorHandling&&cr&&(cr.errorThrown=!0,cr.error=t)}var Gn=function(t){Re(e,t);function e(r){var n=t.call(this)||this;return n.isStopped=!1,r?(n.destination=r,oi(r)&&r.add(n)):n.destination=hy,n}return e.create=function(r,n,o){return new ai(r,n,o)},e.prototype.next=function(r){this.isStopped?Qs(Cc(r),this):this._next(r)},e.prototype.error=function(r){this.isStopped?Qs(_c(r),this):(this.isStopped=!0,this._error(r))},e.prototype.complete=function(){this.isStopped?Qs(Tc,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}(rt);var cy=Function.prototype.bind;function Ys(t,e){return cy.call(t,e)}var fy=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){si(n)}},t.prototype.error=function(e){var r=this.partialObserver;if(r.error)try{r.error(e)}catch(n){si(n)}else si(e)},t.prototype.complete=function(){var e=this.partialObserver;if(e.complete)try{e.complete()}catch(r){si(r)}},t}(),ai=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&&nt.useDeprecatedNextContext?(a=Object.create(r),a.unsubscribe=function(){return i.unsubscribe()},s={next:r.next&&Ys(r.next,a),error:r.error&&Ys(r.error,a),complete:r.complete&&Ys(r.complete,a)}):s=r}return i.destination=new fy(s),i}return e}(Gn);function si(t){nt.useDeprecatedSynchronousErrorHandling?Ac(t):ii(t)}function py(t){throw t}function Qs(t,e){var r=nt.onStoppedNotification;r&&Lr.setTimeout(function(){return r(t,e)})}var hy={closed:!0,next:lr,error:py,complete:lr};var jr=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function ui(t){return t}function Ic(t){return t.length===0?ui:t.length===1?t[0]:function(r){return t.reduce(function(n,o){return o(n)},r)}}var ce=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=my(e)?e:new ai(e,r,n);return kr(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=Mc(r),new r(function(o,i){var s=new ai({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[jr]=function(){return this},t.prototype.pipe=function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return Ic(e)(this)},t.prototype.toPromise=function(e){var r=this;return e=Mc(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 Mc(t){var e;return(e=t??nt.Promise)!==null&&e!==void 0?e:Promise}function dy(t){return t&&G(t.next)&&G(t.error)&&G(t.complete)}function my(t){return t&&t instanceof Gn||dy(t)&&oi(t)}function gy(t){return G(t?.lift)}function ge(t){return function(e){if(gy(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 yy(t,e,r,n,o)}var yy=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(l){try{n(l)}catch(c){r.error(c)}}:t.prototype._next,u._error=i?function(l){try{i(l)}catch(c){r.error(c)}finally{this.unsubscribe()}}:t.prototype._error,u._complete=o?function(){try{o()}catch(l){r.error(l)}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}(Gn);var Pc=ri(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 $c(this,this);return n.operator=r,n},e.prototype._throwIfClosed=function(){if(this.closed)throw new Pc},e.prototype.next=function(r){var n=this;kr(function(){var o,i;if(n._throwIfClosed(),!n.isStopped){n.currentObservers||(n.currentObservers=Array.from(n.observers));try{for(var s=bt(n.currentObservers),a=s.next();!a.done;a=s.next()){var u=a.value;u.next(r)}}catch(l){o={error:l}}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;kr(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;kr(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?Gs:(this.currentObservers=null,a.push(r),new rt(function(){n.currentObservers=null,ur(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 ce;return r.source=this,r},e.create=function(r,n){return new $c(r,n)},e}(ce);var $c=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:Gs},e}(wt);var Jn={now:function(){return(Jn.delegate||Date).now()},delegate:void 0};var Zs=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=Jn);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(),l=0,c=1;c<i.length&&i[c]<=u;c+=2)l=c;l&&i.splice(0,l+1)}},e}(wt);var Nc=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}(rt);var Yn={setInterval:function(t,e){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var o=Yn.delegate;return o?.setInterval?o.setInterval.apply(o,tt([t,e],He(r))):setInterval.apply(void 0,tt([t,e],He(r)))},clearInterval:function(t){var e=Yn.delegate;return(e?.clearInterval||clearInterval)(t)},delegate:void 0};var Bc=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),Yn.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&&Yn.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,ur(i,this),n!=null&&(this.id=this.recycleAsyncId(o,n,null)),this.delay=null,t.prototype.unsubscribe.call(this)}},e}(Nc);var Xs=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=Jn.now,t}();var Oc=function(t){Re(e,t);function e(r,n){n===void 0&&(n=Xs.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}(Xs);var Qn=new Oc(Bc),Dc=Qn;function li(t){return t&&G(t.schedule)}function xy(t){return t[t.length-1]}function ci(t){return li(xy(t))?t.pop():void 0}var qr=function(t){return t&&typeof t.length=="number"&&typeof t!="function"};function fi(t){return G(t?.then)}function pi(t){return G(t[jr])}function hi(t){return Symbol.asyncIterator&&G(t?.[Symbol.asyncIterator])}function di(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 vy(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var mi=vy();function gi(t){return G(t?.[mi])}function yi(t){return wc(this,arguments,function(){var r,n,o,i;return ti(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,ar(r.read())];case 3:return n=s.sent(),o=n.value,i=n.done,i?[4,ar(void 0)]:[3,5];case 4:return[2,s.sent()];case 5:return[4,ar(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 xi(t){return G(t?.getReader)}function Ie(t){if(t instanceof ce)return t;if(t!=null){if(pi(t))return by(t);if(qr(t))return wy(t);if(fi(t))return Sy(t);if(hi(t))return Rc(t);if(gi(t))return Ey(t);if(xi(t))return Ty(t)}throw di(t)}function by(t){return new ce(function(e){var r=t[jr]();if(G(r.subscribe))return r.subscribe(e);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function wy(t){return new ce(function(e){for(var r=0;r<t.length&&!e.closed;r++)e.next(t[r]);e.complete()})}function Sy(t){return new ce(function(e){t.then(function(r){e.closed||(e.next(r),e.complete())},function(r){return e.error(r)}).then(null,ii)})}function Ey(t){return new ce(function(e){var r,n;try{for(var o=bt(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 Rc(t){return new ce(function(e){_y(t,e).catch(function(r){return e.error(r)})})}function Ty(t){return Rc(yi(t))}function _y(t,e){var r,n,o,i;return bc(this,void 0,void 0,function(){var s,a;return ti(this,function(u){switch(u.label){case 0:u.trys.push([0,5,6,11]),r=Sc(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 Ve(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 vi(t,e){return e===void 0&&(e=0),ge(function(r,n){r.subscribe(Te(n,function(o){return Ve(n,t,function(){return n.next(o)},e)},function(){return Ve(n,t,function(){return n.complete()},e)},function(o){return Ve(n,t,function(){return n.error(o)},e)}))})}function bi(t,e){return e===void 0&&(e=0),ge(function(r,n){n.add(t.schedule(function(){return r.subscribe(n)},e))})}function Fc(t,e){return Ie(t).pipe(bi(e),vi(e))}function Uc(t,e){return Ie(t).pipe(bi(e),vi(e))}function Lc(t,e){return new ce(function(r){var n=0;return e.schedule(function(){n===t.length?r.complete():(r.next(t[n++]),r.closed||this.schedule())})})}function kc(t,e){return new ce(function(r){var n;return Ve(r,e,function(){n=t[mi](),Ve(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 wi(t,e){if(!t)throw new Error("Iterable cannot be null");return new ce(function(r){Ve(r,e,function(){var n=t[Symbol.asyncIterator]();Ve(r,e,function(){n.next().then(function(o){o.done?r.complete():r.next(o.value)})},0,!0)})})}function jc(t,e){return wi(yi(t),e)}function qc(t,e){if(t!=null){if(pi(t))return Fc(t,e);if(qr(t))return Lc(t,e);if(fi(t))return Uc(t,e);if(hi(t))return wi(t,e);if(gi(t))return kc(t,e);if(xi(t))return jc(t,e)}throw di(t)}function Zn(t,e){return e?qc(t,e):Ie(t)}function Hc(t){return t instanceof Date&&!isNaN(t)}function fr(t,e){return ge(function(r,n){var o=0;r.subscribe(Te(n,function(i){n.next(t.call(e,i,o++))}))})}var Cy=Array.isArray;function Ay(t,e){return Cy(e)?t.apply(void 0,tt([],He(e))):t(e)}function Wc(t){return fr(function(e){return Ay(t,e)})}function zc(t,e,r,n,o,i,s,a){var u=[],l=0,c=0,p=!1,h=function(){p&&!u.length&&!l&&e.complete()},y=function(C){return l<n?w(C):u.push(C)},w=function(C){i&&e.next(C),l++;var B=!1;Ie(r(C,c++)).subscribe(Te(e,function(_){o?.(_),i?y(_):e.next(_)},function(){B=!0},void 0,function(){if(B)try{l--;for(var _=function(){var A=u.shift();s?Ve(e,s,function(){return w(A)}):w(A)};u.length&&l<n;)_();h()}catch(A){e.error(A)}}))};return t.subscribe(Te(e,y,function(){p=!0,h()})),function(){a?.()}}function Xn(t,e,r){return r===void 0&&(r=1/0),G(e)?Xn(function(n,o){return fr(function(i,s){return e(n,i,o,s)})(Ie(t(n,o)))},r):(typeof e=="number"&&(r=e),ge(function(n,o){return zc(n,o,t,r)}))}function Vc(t){return t===void 0&&(t=1/0),Xn(ui,t)}function Gc(){return Vc(1)}function Ks(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return Gc()(Zn(t,ci(t)))}var Iy=["addListener","removeListener"],My=["addEventListener","removeEventListener"],Py=["on","off"];function pr(t,e,r,n){if(G(r)&&(n=r,r=void 0),n)return pr(t,e,r).pipe(Wc(n));var o=He(By(t)?My.map(function(a){return function(u){return t[a](e,u,r)}}):$y(t)?Iy.map(Jc(t,e)):Ny(t)?Py.map(Jc(t,e)):[],2),i=o[0],s=o[1];if(!i&&qr(t))return Xn(function(a){return pr(a,e,r)})(Ie(t));if(!i)throw new TypeError("Invalid event target");return new ce(function(a){var u=function(){for(var l=[],c=0;c<arguments.length;c++)l[c]=arguments[c];return a.next(1<l.length?l:l[0])};return i(u),function(){return s(u)}})}function Jc(t,e){return function(r){return function(n){return t[r](e,n)}}}function $y(t){return G(t.addListener)&&G(t.removeListener)}function Ny(t){return G(t.on)&&G(t.off)}function By(t){return G(t.addEventListener)&&G(t.removeEventListener)}function Yc(t,e,r){t===void 0&&(t=0),r===void 0&&(r=Dc);var n=-1;return e!=null&&(li(e)?r=e:n=e),new ce(function(o){var i=Hc(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 ea(t,e){return ge(function(r,n){var o=0;r.subscribe(Te(n,function(i){return t.call(e,i,o++)&&n.next(i)}))})}function ta(t){return ge(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,lr),Ie(t(a)).subscribe(i)},function(){s(),r.complete()},void 0,function(){o=i=null}))})}function ra(t,e){return e===void 0&&(e=Qn),ge(function(r,n){var o=null,i=null,s=null,a=function(){if(o){o.unsubscribe(),o=null;var l=i;i=null,n.next(l)}};function u(){var l=s+t,c=e.now();if(c<l){o=this.schedule(void 0,l-c),n.add(o);return}a()}r.subscribe(Te(n,function(l){i=l,s=e.now(),o||(o=e.schedule(u,t),n.add(o))},function(){a(),n.complete()},void 0,function(){i=o=null}))})}function na(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var r=ci(t);return ge(function(n,o){(r?Ks(t,n,r):Ks(t,n)).subscribe(o)})}function oa(t){return ge(function(e,r){Ie(t).subscribe(Te(r,function(){return r.complete()},lr)),!r.closed&&e.subscribe(r)})}function Qc(t,e){return ge(function(r,n){var o=e??{},i=o.leading,s=i===void 0?!0:i,a=o.trailing,u=a===void 0?!1:a,l=!1,c=null,p=null,h=!1,y=function(){p?.unsubscribe(),p=null,u&&(B(),h&&n.complete())},w=function(){p=null,h&&n.complete()},C=function(_){return p=Ie(t(_)).subscribe(Te(n,y,w))},B=function(){if(l){l=!1;var _=c;c=null,n.next(_),!h&&C(_)}};r.subscribe(Te(n,function(_){l=!0,c=_,!(p&&!p.closed)&&(s?B():C(_))},function(){h=!0,!(u&&l&&p&&!p.closed)&&n.complete()}))})}function ia(t,e,r){e===void 0&&(e=Qn);var n=Yc(t,e);return Qc(function(){return n},r)}var Oy={debounce:ta,debounceTime:ra,map:fr,startWith:na,takeUntil:oa,throttleTime:ia,filter:ea};var sa=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=pr(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 aa=class{constructor(){this.observableFunctions={next:e=>{},complete:e=>{}},this.generator=null,this.buffered=!1,this.payloadBuffer=[],this.observable=new ce(e=>{this.observableFunctions.next=(...r)=>e.next(r),this.observableFunctions.complete=()=>(this.completedDeffered.resolve(),e.complete())}),this.completedDeffered=Y.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 Dy=(t,e)=>e.kind==="method"&&e.descriptor&&!("value"in e.descriptor)?{...e,finisher(r){r.createProperty(e.key,t)}}:{kind:"field",key:Symbol(),placement:"own",descriptor:{},originalKey:e.key,initializer(){typeof e.initializer=="function"&&(this[e.key]=e.initializer.call(this))},finisher(r){r.createProperty(e.key,t)}},Ry=(t,e,r)=>{e.constructor.createProperty(r,t)};function Q(t){return(e,r)=>r!==void 0?Ry(t,e,r):Dy(t,e)}var Ne={};X(Ne,{DomTools:()=>pe,TypedRequest:()=>bo,breakpoints:()=>$t,css:()=>_l,elementBasic:()=>Ce,plugins:()=>TS,rxjs:()=>hr});var Ce={};X(Ce,{setup:()=>SS,staticStyles:()=>bS,styles:()=>wS});var as={};X(as,{DeesComms:()=>ul});var ie={};X(ie,{Timeout:()=>Si,delayFor:()=>Zc,delayForRandom:()=>Fy});var Zc=async(t,e,r=!1)=>(await new Si(t,null,r).promise,e),Fy=async(t,e,r,n=!1)=>(await Zc(Math.random()*(e-t)+t,null,n),r),Si=class{constructor(e,r,n=!1){this._cancelled=!1,this.timeoutInMillis=e,this._deferred=sr(),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 Ze={};X(Ze,{TypedHandler:()=>el,TypedRequest:()=>bo,TypedResponseError:()=>_r,TypedRouter:()=>tl,TypedTarget:()=>rl});var Yd=Be(Xo(),1);var lt={};X(lt,{AsyncExecutionStack:()=>Aa,FastMap:()=>mr,Interest:()=>eo,InterestMap:()=>Ia,LimitedArray:()=>Ma,LoopTracker:()=>Pa,ObjectMap:()=>Tt,Stringmap:()=>to,TimedAggregtor:()=>$a,Tree:()=>Na,uni:()=>xf});var Ti={};X(Ti,{SmartMatch:()=>ca});var Ei={};X(Ei,{isMatch:()=>ky,matcher:()=>Ly});function ua(t){if(typeof t!="string")throw new TypeError("Expected a string");return t.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}var la=new Map,Xc=(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})},Uy=(t,e)=>{e={caseSensitive:!1,...e};let r=t+JSON.stringify(e);if(la.has(r))return la.get(r);let n=t[0]==="!";n&&(t=t.slice(1)),t=ua(t).replace(/\\\*/g,"[\\s\\S]*");let o=new RegExp(`^${t}$`,e.caseSensitive?"":"i");return o.negated=n,la.set(r,o),o},Kc=(t,e,r,n)=>{if(t=Xc(t,"inputs"),e=Xc(e,"patterns"),e.length===0)return[];e=e.map(s=>Uy(s,r));let{allPatterns:o}=r||{},i=[];for(let s of t){let a,u=[...e].fill(!1);for(let[l,c]of e.entries())if(c.test(s)&&(u[l]=!0,a=!c.negated,!a))break;if(!(a===!1||a===void 0&&e.some(l=>!l.negated)||o&&u.some((l,c)=>!l&&!e[c].negated))&&(i.push(s),n))break}return i};function Ly(t,e,r){return Kc(t,e,r,!1)}function ky(t,e,r){return Kc(t,e,r,!0).length>0}var ca=class{constructor(e){this.wildcard=e}match(e){return Ei.isMatch(e,this.wildcard)}};var Et={};X(Et,{CronJob:()=>Kn,CronManager:()=>ba,ExtendedDate:()=>wa,HrtMeasurement:()=>Sa,Interval:()=>Ea,TimeStamp:()=>zr,Timer:()=>Ta,getMilliSecondsAsHumanReadableString:()=>va,getMilliSecondsFromUnits:()=>xa,units:()=>Lt});function Le(t,e,r,n,o,i,s,a){return Le.fromTZ(Le.tp(t,e,r,n,o,i,s),a)}Le.fromTZISO=(t,e,r)=>Le.fromTZ(qy(t,e),r);Le.fromTZ=function(t,e){let r=new Date(Date.UTC(t.y,t.m-1,t.d,t.h,t.i,t.s)),n=fa(t.tz,r),o=new Date(r.getTime()-n),i=fa(t.tz,o);if(i-n===0)return o;{let s=new Date(r.getTime()-i),a=fa(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}};Le.toTZ=function(t,e){let r=new Date(t.toLocaleString("sv-SE",{timeZone:e}));return{y:r.getFullYear(),m:r.getMonth()+1,d:r.getDate(),h:r.getHours(),i:r.getMinutes(),s:r.getSeconds(),tz:e}};Le.tp=(t,e,r,n,o,i,s)=>({y:t,m:e,d:r,h:n,i:o,s:i,tz:s});function fa(t,e=new Date){let r=e.toLocaleString("en",{timeZone:t,timeStyle:"long"}).split(" ").slice(-1)[0],n=e.toLocaleString("en-US").replace(/[\u202f]/," ");return Date.parse(`${n} GMT`)-Date.parse(`${n} ${r}`)}function qy(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("+")?Le.tp(r.getUTCFullYear(),r.getUTCMonth()+1,r.getUTCDate(),r.getUTCHours(),r.getUTCMinutes(),r.getUTCSeconds(),"Etc/UTC"):Le.tp(r.getFullYear(),r.getMonth()+1,r.getDate(),r.getHours(),r.getMinutes(),r.getSeconds(),e)}Le.minitz=Le;function Hy(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.kill=!1,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 tf=[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.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=Le.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>tf[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(Le.fromTZISO(t,this.tz))};_e.prototype.findNext=function(t,e,r,n){let o=this[e],i;r.lastDayOfMonth&&(this.month!==1?i=tf[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 l=r.dow[(s+(a-n-1))%7];t.legacyMode&&!r.starDOM?u=u||l:u=u&&l}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 e.interval>1&&r?this.second+=e.interval:this.second+=1,this.ms=0,this.apply(),this.recurse(t,e,0)};_e.prototype.getDate=function(t){return t||this.tz===void 0&&this.utcOffset===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)):Le(this.year,this.month+1,this.day,this.hour,this.minute,this.second,this.tz)};_e.prototype.getTime=function(){return this.getDate().getTime()};function ot(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.dow=Array(8).fill(0),this.lastDayOfMonth=!1,this.starDOM=!1,this.starDOW=!1,this.parse()}ot.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),this.partToArray("minute",t[1],0),this.partToArray("hour",t[2],0),this.partToArray("day",t[3],-1),this.partToArray("month",t[4],-1),this.partToArray("dow",t[5],0),this.dow[7]&&(this.dow[0]=1)};ot.prototype.partToArray=function(t,e,r){let n=this[t];if(e==="*")return n.fill(1);let o=e.split(",");if(o.length>1)for(let i=0;i<o.length;i++)this.partToArray(t,o[i],r);else e.indexOf("-")!==-1&&e.indexOf("/")!==-1?this.handleRangeWithStepping(e,t,r):e.indexOf("-")!==-1?this.handleRange(e,t,r):e.indexOf("/")!==-1?this.handleStepping(e,t,r):e!==""&&this.handleNumber(e,t,r)};ot.prototype.throwAtIllegalCharacters=function(t){let e=/[^/*0-9,-]+/;for(let r=0;r<t.length;r++)if(e.test(t[r]))throw new TypeError("CronPattern: configuration entry "+r+" ("+t[r]+") contains illegal characters.")};ot.prototype.handleNumber=function(t,e,r){let n=parseInt(t,10)+r;if(isNaN(n))throw new TypeError("CronPattern: "+e+" is not a number: '"+t+"'");if(n<0||n>=this[e].length)throw new TypeError("CronPattern: "+e+" value out of range: '"+t+"'");this[e][n]=1};ot.prototype.handleRangeWithStepping=function(t,e,r){let n=t.match(/^(\d+)-(\d+)\/(\d+)$/);if(n===null)throw new TypeError("CronPattern: Syntax error, illegal range with stepping: '"+t+"'");let[,o,i,s]=n;if(o=parseInt(o,10)+r,i=parseInt(i,10)+r,s=parseInt(s,10),isNaN(o))throw new TypeError("CronPattern: Syntax error, illegal lower range (NaN)");if(isNaN(i))throw new TypeError("CronPattern: Syntax error, illegal upper range (NaN)");if(isNaN(s))throw new TypeError("CronPattern: Syntax error, illegal stepping: (NaN)");if(s===0)throw new TypeError("CronPattern: Syntax error, illegal stepping: 0");if(s>this[e].length)throw new TypeError("CronPattern: Syntax error, steps cannot be greater than maximum value of part ("+this[e].length+")");if(o<0||i>=this[e].length)throw new TypeError("CronPattern: Value out of range: '"+t+"'");if(o>i)throw new TypeError("CronPattern: From value is larger than to value: '"+t+"'");for(let a=o;a<=i;a+=s)this[e][a]=1};ot.prototype.handleRange=function(t,e,r){let n=t.split("-");if(n.length!==2)throw new TypeError("CronPattern: Syntax error, illegal range: '"+t+"'");let o=parseInt(n[0],10)+r,i=parseInt(n[1],10)+r;if(isNaN(o))throw new TypeError("CronPattern: Syntax error, illegal lower range (NaN)");if(isNaN(i))throw new TypeError("CronPattern: Syntax error, illegal upper range (NaN)");if(o<0||i>=this[e].length)throw new TypeError("CronPattern: Value out of range: '"+t+"'");if(o>i)throw new TypeError("CronPattern: From value is larger than to value: '"+t+"'");for(let s=o;s<=i;s++)this[e][s]=1};ot.prototype.handleStepping=function(t,e){let r=t.split("/");if(r.length!==2)throw new TypeError("CronPattern: Syntax error, illegal stepping: '"+t+"'");let n=0;r[0]!=="*"&&(n=parseInt(r[0],10));let o=parseInt(r[1],10);if(isNaN(o))throw new TypeError("CronPattern: Syntax error, illegal stepping: (NaN)");if(o===0)throw new TypeError("CronPattern: Syntax error, illegal stepping: 0");if(o>this[e].length)throw new TypeError("CronPattern: Syntax error, max steps for part is ("+this[e].length+")");for(let i=n;i<this[e].length;i+=o)this[e][i]=1};ot.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")};ot.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")};ot.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};var ef=Math.pow(2,32-1)-1,pa=[];function rf(t){return Object.prototype.toString.call(t)==="[object Function]"||typeof t=="function"||t instanceof Function}function Wy(t){typeof Deno<"u"&&typeof Deno.unrefTimer<"u"?Deno.unrefTimer(t):t&&typeof t.unref<"u"&&t.unref()}function he(t,e,r){if(!(this instanceof he))return new he(t,e,r);let n,o;if(typeof e=="function")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(typeof r=="function")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=Hy(n),this.once=void 0,this.pattern=void 0,this.blocking=!1,this.previousrun=void 0,this.runstarted=void 0,t&&(t instanceof Date||typeof t=="string"&&t.indexOf(":")>0)?this.once=new _e(t,this.options.timezone||this.options.utcOffset):this.pattern=new ot(t,this.options.timezone),o!==void 0&&(this.fn=o,this.schedule()),this.name){if(pa.find(s=>s.name===this.name))throw new Error("Cron: Tried to initialize new named job '"+this.name+"', but name already taken.");pa.push(this)}return this}he.prototype.next=function(t){let e=this._next(t);return e?e.getDate():null};he.prototype.enumerate=function(t,e){t>this.options.maxRuns&&(t=this.options.maxRuns);let r=[],n=e||this.previousrun;for(;t--&&(n=this.next(n));)r.push(n);return r};he.prototype.running=function(){let t=this.msToNext(this.previousrun),e=!this.options.paused&&this.fn!==void 0;return t!==null&&e};he.prototype.busy=function(){return this.blocking};he.prototype.started=function(){return this.runstarted?this.runstarted.getDate():null};he.prototype.previous=function(){return this.previousrun?this.previousrun.getDate():null};he.prototype.msToNext=function(t){let e=this._next(t);return t=new _e(t,this.options.timezone||this.options.utcOffset),e?e.getTime(!0)-t.getTime(!0):null};he.prototype.stop=function(){this.options.kill=!0,this.currentTimeout&&clearTimeout(this.currentTimeout)};he.prototype.pause=function(){return(this.options.paused=!0)&&!this.options.kill};he.prototype.resume=function(){return!(this.options.paused=!1)&&!this.options.kill};he.prototype.schedule=function(t,e){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 r=this.msToNext(e||this.previousrun),n=this.next(e||this.previousrun);return r===null||n===null?this:(r>ef&&(r=ef),this.currentTimeout=setTimeout(()=>this._checkTrigger(n),r),this.currentTimeout&&this.options.unref&&Wy(this.currentTimeout),this)};he.prototype._trigger=async function(t){if(this.blocking=!0,this.runstarted=new _e(t,this.options.timezone||this.options.utcOffset),this.options.catch)try{await this.fn(this,this.options.context)}catch(e){rf(this.options.catch)&&(r=>r.options.catch(e,r))(this)}finally{this.blocking=!1}else await this.fn(this,this.options.context),this.blocking=!1};he.prototype._checkTrigger=function(t){let e=new Date,r=!this.options.paused&&e.getTime()>=t,n=this.blocking&&this.options.protect;r&&!n?(this.options.maxRuns--,this._trigger(),this.previousrun=new _e(void 0,this.options.timezone||this.options.utcOffset),this.schedule()):(r&&n&&rf(this.options.protect)&&(async o=>o.options.protect(o))(this),this.schedule(void 0,e))};he.prototype._next=function(t){let e=!!(t||this.previousrun);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.once||new _e(t,this.options.timezone||this.options.utcOffset).increment(this.pattern,this.options,e);return this.once&&this.once.getTime()<=t.getTime()||r===null||this.options.maxRuns<=0||this.options.kill||this.options.stopAt&&r.getTime()>=this.options.stopAt.getTime()?null:r};he.Cron=he;he.scheduledJobs=pa;var Hr=Be(nf(),1),sf=Be(of(),1);function ya(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 zy=(t,e)=>e===1?t:`${t}s`,Vy=1e-7;function _i(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+Vy);return(Math.round(u)/10**a).toFixed(a)},o=(s,a,u,l)=>{if((r.length===0||!e.colonNotation)&&s===0&&!(e.colonNotation&&u==="m"))return;l=(l||s||"0").toString();let c,p;if(e.colonNotation){c=r.length>0?":":"",p="";let h=l.includes(".")?l.split(".")[0].length:l.length,y=r.length>0?2:1;l="0".repeat(Math.max(0,y-h))+l}else c="",p=e.verbose?" "+zy(a,s):u;r.push(c+l+p)},i=ya(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),l=a?s.toFixed(a):u;o(Number.parseFloat(l),"millisecond","ms",l)}else{let s=t/1e3%60,a=typeof e.secondsDecimalDigits=="number"?e.secondsDecimalDigits:1,u=n(s,a),l=e.keepDecimalsOnWholeSeconds?u:u.replace(/\.0+$/,"");o(Number.parseFloat(l),"second","s",l)}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(" ")}Hr.default.extend(sf.default);var Kn=class{constructor(e,r,n){this.status="initial",this.nextExecutionUnix=0,this.cronExpression=r,this.jobFunction=n,this.cronParser=he(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},xa=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},va=t=>_i(t);var ba=class{constructor(){this.status="stopped",this.cronjobs=new lt.ObjectMap}addCronjob(e,r){let n=new Kn(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 r of this.cronjobs.getArray())r.start();(async()=>{this.executionTimeout=new ie.Timeout(0);do{let r;for(let n of this.cronjobs.getArray())n.checkExecution(),(!r||n.getTimeToNextExecution()<r.getTimeToNextExecution())&&(r=n);r?(this.executionTimeout=new ie.Timeout(r.getTimeToNextExecution()),console.log(`Next CronJob scheduled in ${va(this.executionTimeout.getTimeLeft())}`)):(this.executionTimeout=new ie.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 wa=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=l=>`0${l}`.slice(-2),s=`${o[3]}-${i(o[2])}-${i(o[1])}T${r}`,u=Hr.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 Hr.default(this.getTime()).format(e)}isToday(){return Hr.default(this.getTime()).isToday()}lessTimePassedToNow(e){let r=xa(e);return Date.now()-this.getTime()<r}moreTimePassedToNow(e){return!this.lessTimePassedToNow(e)}};var Sa=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 Ea=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 ie.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 Ta=class{get timeLeft(){return this.timeInMilliseconds-this.pausedAt.change}constructor(e){this.state="initiated",this.completedDeferred=Y.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 Ca=Be(yf(),1);var Aa=class{constructor(){this.executionSlots=[],this.isProcessing=!1}async getExclusiveExecutionSlot(e,r){let n=Y.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=Y.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(),ie.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(),ie.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 mr=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 xf=(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 mr,this.eventSubject=new ye.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=xf("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 eo=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 Y.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&&ie.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 Ia=class{constructor(e,r={}){this.interestObjectMap=new Tt,this.interestObservable=new ye.ObservableIntake,this.comparisonFunc=e,this.options=r}async addInterest(e,r){let n=this.comparisonFunc(e),o,i=new eo(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 Ma=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 Pa=class{constructor(){this.referenceObjectMap=new Tt}checkAndTrack(e){return this.referenceObjectMap.checkForObject(e)?!1:(this.referenceObjectMap.add(e),!0)}};var to=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 Ti.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=Y.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 $a=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 Na=class{constructor(){this.symbolTree=new Ca.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 vo={};X(vo,{WebRequest:()=>Ku});var Gr={};X(Gr,{Smartenv:()=>ro});var ro=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=Y.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 me={};X(me,{Smartjson:()=>zu,deepEqualObjects:()=>Uw,foldDec:()=>Fw,parse:()=>Vu,parseBase64:()=>Rw,stringify:()=>xn,stringifyBase64:()=>Dw,stringifyPretty:()=>Ow});var po={};X(po,{Base64:()=>Vi,Domain:()=>Gi,GitRepo:()=>Ji,base64:()=>hn,create:()=>Su,docker:()=>Eu,indent:()=>Cu,normalize:()=>Au,type:()=>Iu});var Su={};X(Su,{createCryptoRandomString:()=>Gv,createRandomString:()=>Vv});var Lh=Be(Xo(),1),kh=Be(Lf(),1),jh=Be(nh(),1);var lh="3.7.5",Sv=lh,Ev=typeof atob=="function",Tv=typeof btoa=="function",pn=typeof Buffer=="function",oh=typeof TextDecoder=="function"?new TextDecoder:void 0,ih=typeof TextEncoder=="function"?new TextEncoder:void 0,_v="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",co=Array.prototype.slice.call(_v),ji=(t=>{let e={};return t.forEach((r,n)=>e[r]=n),e})(co),Cv=/^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/,Oe=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=="+"?"-":"_"),fh=t=>t.replace(/[^A-Za-z0-9\+\/]/g,""),ph=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+=co[e>>18&63]+co[e>>12&63]+co[e>>6&63]+co[e&63]}return s?i.slice(0,s-3)+"===".substring(s):i},xu=Tv?t=>btoa(t):pn?t=>Buffer.from(t,"binary").toString("base64"):ph,gu=pn?t=>Buffer.from(t).toString("base64"):t=>{let r=[];for(let n=0,o=t.length;n<o;n+=4096)r.push(Oe.apply(null,t.subarray(n,n+4096)));return xu(r.join(""))},qi=(t,e=!1)=>e?ch(gu(t)):gu(t),Av=t=>{if(t.length<2){var e=t.charCodeAt(0);return e<128?t:e<2048?Oe(192|e>>>6)+Oe(128|e&63):Oe(224|e>>>12&15)+Oe(128|e>>>6&63)+Oe(128|e&63)}else{var e=65536+(t.charCodeAt(0)-55296)*1024+(t.charCodeAt(1)-56320);return Oe(240|e>>>18&7)+Oe(128|e>>>12&63)+Oe(128|e>>>6&63)+Oe(128|e&63)}},Iv=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,hh=t=>t.replace(Iv,Av),ah=pn?t=>Buffer.from(t,"utf8").toString("base64"):ih?t=>gu(ih.encode(t)):t=>xu(hh(t)),fn=(t,e=!1)=>e?ch(ah(t)):ah(t),uh=t=>fn(t,!0),Mv=/[\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 Oe((r>>>10)+55296)+Oe((r&1023)+56320);case 3:return Oe((15&t.charCodeAt(0))<<12|(63&t.charCodeAt(1))<<6|63&t.charCodeAt(2));default:return Oe((31&t.charCodeAt(0))<<6|63&t.charCodeAt(1))}},dh=t=>t.replace(Mv,Pv),mh=t=>{if(t=t.replace(/\s+/g,""),!Cv.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=ji[t.charAt(i++)]<<18|ji[t.charAt(i++)]<<12|(n=ji[t.charAt(i++)])<<6|(o=ji[t.charAt(i++)]),r+=n===64?Oe(e>>16&255):o===64?Oe(e>>16&255,e>>8&255):Oe(e>>16&255,e>>8&255,e&255);return r},vu=Ev?t=>atob(fh(t)):pn?t=>Buffer.from(t,"base64").toString("binary"):mh,gh=pn?t=>sh(Buffer.from(t,"base64")):t=>sh(vu(t).split("").map(e=>e.charCodeAt(0))),yh=t=>gh(xh(t)),$v=pn?t=>Buffer.from(t,"base64").toString("utf8"):oh?t=>oh.decode(gh(t)):t=>dh(vu(t)),xh=t=>fh(t.replace(/[-_]/g,e=>e=="-"?"+":"/")),yu=t=>$v(xh(t)),Nv=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)},vh=t=>({value:t,enumerable:!1,writable:!0,configurable:!0}),bh=function(){let t=(e,r)=>Object.defineProperty(String.prototype,e,vh(r));t("fromBase64",function(){return yu(this)}),t("toBase64",function(e){return fn(this,e)}),t("toBase64URI",function(){return fn(this,!0)}),t("toBase64URL",function(){return fn(this,!0)}),t("toUint8Array",function(){return yh(this)})},wh=function(){let t=(e,r)=>Object.defineProperty(Uint8Array.prototype,e,vh(r));t("toBase64",function(e){return qi(this,e)}),t("toBase64URI",function(){return qi(this,!0)}),t("toBase64URL",function(){return qi(this,!0)})},Bv=()=>{bh(),wh()},fo={version:lh,VERSION:Sv,atob:vu,atobPolyfill:mh,btoa:xu,btoaPolyfill:ph,fromBase64:yu,toBase64:fn,encode:fn,encodeURI:uh,encodeURL:uh,utob:hh,btou:dh,decode:yu,isValid:Nv,fromUint8Array:qi,toUint8Array:yh,extendString:bh,extendUint8Array:wh,extendBuiltins:Bv};var Th=Be(Eh(),1);function Hi(t){let e=(0,Th.default)(t);if(e===0)return t;let r=new RegExp(`^[ \\t]{${e}}`,"gm");return t.replace(r,"")}var Ih=Be(Ch(),1),Ah=`\r
17
- `;function Wi(t){if(typeof t!="string"&&!Buffer.isBuffer(t))throw new TypeError(`Expected a \`string\` or a \`Buffer\`, got \`${typeof t}\``);return Buffer.isBuffer(t)?(0,Ih.default)(t,Ah,`
18
- `):t.replace(new RegExp(Ah,"g"),`
19
- `)}var wu=Be(Uh(),1),zv=new ro;zv.isBrowser&&(globalThis.Buffer=kh.Buffer);var Vv=(t,e,r)=>wu.default(t,e,r),Gv=()=>Lh.uni();var Eu={};X(Eu,{makeEnvObject:()=>Jv});var Jv=function(t){let e={},r=/(.*)=(.*)/;if(typeof t<"u")for(let n in t){let o=r.exec(t[n]);e[o[1]]=o[2]}return e};var Cu={};X(Cu,{indent:()=>Qv,indentWithPrefix:()=>Zv,normalize:()=>Xv});var Tu=t=>{let e=t.split(`
20
- `);return Yv(e)},_u=t=>{let e="";for(let r of t)e=e+r+`
21
- `;return e},Yv=t=>{let e=/^[\s]*$/;return e.test(t[0])&&t.shift(),e.test(t[t.length-1])&&t.pop(),t},Qv=(t,e)=>{let r=Tu(t);for(let o of r)o=" ".repeat(e)+o;return _u(r)},Zv=(t,e)=>{let r,n=Tu(t),o=[];for(let i of n)o.push(e+i);return r=_u(o),r},Xv=t=>{let e,r=Tu(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=_u(s),e};var Au={};X(Au,{replaceAll:()=>qh,standard:()=>Kv});var qh=(t,e,r)=>t.replace(new RegExp(e,"g"),r),Kv=(t,e)=>{let r=t;return(!e||e.stripIndent)&&(r=Hi(r)),(!e||e.normalizeNewline)&&(r=Wi(r)),(!e||e.replaceTabs)&&(r=qh(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 Iu={};X(Iu,{isBase64:()=>tb,isUtf8:()=>eb});var Vi=class{constructor(e,r){switch(r){case"string":this.refString=e;break;case"base64":this.refString=hn.decode(e);break;case"base64uri":this.refString=hn.decode(e)}}get simpleString(){return this.refString}get base64String(){return hn.encode(this.refString)}get base64UriString(){return hn.encodeUri(this.refString)}},hn={encode:t=>fo.encode(t),encodeUri:t=>fo.encodeURI(t),decode:t=>fo.decode(t),isBase64:t=>/^([A-Za-z0-9+/]{4})*([A-Za-z0-9+/]{3}=|[A-Za-z0-9+/]{2}==)?$/.test(t)};var eb=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},tb=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 Gi=class{constructor(e){this.protocol=this._protocolRegex(e),this.protocol||(e=`https://${e}`),this.nodeParsedUrl=jh.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 Ji=class{constructor(e,r){let n=rb(e);this.host=n[1],this.user=n[2],this.repo=n[3],this.accessToken=r,this.sshUrl=Hh(this.host,this.user,this.repo,this.accessToken,"ssh"),this.httpsUrl=Hh(this.host,this.user,this.repo,this.accessToken,"https")}},rb=function(t){return/([a-zA-Z0-9\-_\.]*)(?:\/|\:)([a-zA-Z0-9\-_\.]*)(?:\/)([a-zA-Z0-9\-_\.]*)(?:\.git)/.exec(t)},Hh=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 Wu=Be($d(),1),kd=Be(Bd(),1),ns=Be(Ld(),1);var jd=kd.default;var Vu=ns.default.parse,xn=(t,e,r={})=>{let n=ns.default.stringify(t);return t=JSON.parse(n),jd(t,r)},Ow=t=>{let e=xn(t),r=JSON.parse(e);return JSON.stringify(r,null,2)},Dw=(...t)=>{let e=xn(...t);return po.base64.encodeUri(e)},Rw=t=>{let e=po.base64.decode(t);return Vu(e)},zu=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=Vu(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]=Wu.default(o)}return e}foldToJson(){let e=this.foldToObject();return xn(e)}},Fw=()=>(t,e)=>{t.saveableProperties||(t.saveableProperties=[]),t.saveableProperties.push(e)},Uw=(t,e)=>{let r=xn(t),n=xn(e);return r===n};var Gt={};X(Gt,{TypedrequestCache:()=>Xu,WebStore:()=>xo});var os={};X(os,{deleteDB:()=>Gw,openDB:()=>Vw,unwrap:()=>yo,wrap:()=>Qe});var Lw=(t,e)=>e.some(r=>t instanceof r),qd,Hd;function kw(){return qd||(qd=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])}function jw(){return Hd||(Hd=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])}var Wd=new WeakMap,Ju=new WeakMap,zd=new WeakMap,Gu=new WeakMap,Qu=new WeakMap;function qw(t){let e=new Promise((r,n)=>{let o=()=>{t.removeEventListener("success",i),t.removeEventListener("error",s)},i=()=>{r(Qe(t.result)),o()},s=()=>{n(t.error),o()};t.addEventListener("success",i),t.addEventListener("error",s)});return e.then(r=>{r instanceof IDBCursor&&Wd.set(r,t)}).catch(()=>{}),Qu.set(e,t),e}function Hw(t){if(Ju.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)});Ju.set(t,e)}var Yu={get(t,e,r){if(t instanceof IDBTransaction){if(e==="done")return Ju.get(t);if(e==="objectStoreNames")return t.objectStoreNames||zd.get(t);if(e==="store")return r.objectStoreNames[1]?void 0:r.objectStore(r.objectStoreNames[0])}return Qe(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 Vd(t){Yu=t(Yu)}function Ww(t){return t===IDBDatabase.prototype.transaction&&!("objectStoreNames"in IDBTransaction.prototype)?function(e,...r){let n=t.call(yo(this),e,...r);return zd.set(n,e.sort?e.sort():[e]),Qe(n)}:jw().includes(t)?function(...e){return t.apply(yo(this),e),Qe(Wd.get(this))}:function(...e){return Qe(t.apply(yo(this),e))}}function zw(t){return typeof t=="function"?Ww(t):(t instanceof IDBTransaction&&Hw(t),Lw(t,kw())?new Proxy(t,Yu):t)}function Qe(t){if(t instanceof IDBRequest)return qw(t);if(Gu.has(t))return Gu.get(t);let e=zw(t);return e!==t&&(Gu.set(t,e),Qu.set(e,t)),e}var yo=t=>Qu.get(t);function Vw(t,e,{blocked:r,upgrade:n,blocking:o,terminated:i}={}){let s=indexedDB.open(t,e),a=Qe(s);return n&&s.addEventListener("upgradeneeded",u=>{n(Qe(s.result),u.oldVersion,u.newVersion,Qe(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",l=>o(l.oldVersion,l.newVersion,l))}).catch(()=>{}),a}function Gw(t,{blocked:e}={}){let r=indexedDB.deleteDatabase(t);return e&&r.addEventListener("blocked",n=>e(n.oldVersion,n)),Qe(r).then(()=>{})}var Jw=["get","getKey","getAll","getAllKeys","count"],Yw=["put","add","delete","clear"],Zu=new Map;function Gd(t,e){if(!(t instanceof IDBDatabase&&!(e in t)&&typeof e=="string"))return;if(Zu.get(e))return Zu.get(e);let r=e.replace(/FromIndex$/,""),n=e!==r,o=Yw.includes(r);if(!(r in(n?IDBIndex:IDBObjectStore).prototype)||!(o||Jw.includes(r)))return;let i=async function(s,...a){let u=this.transaction(s,o?"readwrite":"readonly"),l=u.store;return n&&(l=l.index(a.shift())),(await Promise.all([l[r](...a),o&&u.done]))[0]};return Zu.set(e,i),i}Vd(t=>({...t,get:(e,r,n)=>Gd(e,r)||t.get(e,r,n),has:(e,r)=>!!Gd(e,r)||t.has(e,r)}));var xo=class{constructor(e){this.initCalled=!1,this.readyDeferred=Y.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 os.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 Xu=class{constructor(e="default"){this.webstore=new xo({dbName:"trStore",storeName:`trStore-${e}`})}buildKey(e){return me.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 Ku=class{constructor(e={}){this.optionsArg=e,this.cacheStore=new Gt.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 me.parse(o)}async postJson(e,r,n=!1){let i=await(await this.request(e,{method:"POST",headers:{"Content-Type":"application/json"},body:me.stringify(r),useCache:n})).text();return me.parse(i)}async putJson(e,r,n=!1){let i=await(await this.request(e,{method:"PUT",headers:{"Content-Type":"application/json"},body:me.stringify(r)})).text();return me.parse(i)}async deleteJson(e,r=!1){let o=await(await this.request(e,{headers:{"Content-Type":"application/json"},method:"GET"})).text();return me.parse(o)}async request(e,r){r={timeoutMs:6e4,useCache:!1,...r};let n=new AbortController;ie.delayFor(r.timeoutMs).then(()=>{n.abort()});let o=Y.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 l=>{i.push(l),l==="429"&&(console.log("got 429, so waiting a little bit."),await ie.delayFor(Math.floor(Math.random()*(2e3-1e3+1))+1e3));let c=0;for(let p of i)p===l&&c++;c>2*n.length*o&&o++},a=async l=>{if(!l)throw new Error("request failed permanently");this.log(`Getting ${l} with method ${r.method}`);let c=await fetch(l,{method:r.method,headers:{"Content-Type":"application/json",...r.headers||{}},body:r.body});return this.log(`${l} answers with status: ${c.status}`),c.status>=200&&c.status<300?c:(await s(c.status.toString()),await a(n[o]))};return await a(n[o])}log(e){this.options.logging&&console.log(e)}};var _r=class{constructor(e,r){this.errorText=e,this.errorData=r}};var el=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 _r?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 tl=class{constructor(){this.routerMap=new lt.ObjectMap,this.handlerMap=new lt.ObjectMap,this.fireEventInterestMap=new lt.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 rl=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 Xw=new vo.WebRequest,bo=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:Yd.uni(),phase:"request"}},o;if(this.urlEndPoint?o=await Xw.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 _r(o.error.text,o.error.data);return null}return o.retry?(console.log(`server requested retry for the following reason: ${o.retry.reason}`),await ie.delayFor(o.retry.waitForMs),await this.fire(e)):o.response}};function Xd(t){return!!(t&&typeof t.then=="function")}function is(t){return t||(t=0),new Promise(function(e){return setTimeout(e,t)})}function Kd(t,e){return Math.floor(Math.random()*(e-t+1)+t)}function wo(){return Math.random().toString(36).substring(2)}var Zd=0,nl=0;function Jt(){var t=new Date().getTime();return t===Zd?(nl++,t*1e3+nl):(Zd=t,nl=0,t*1e3)}var Mt=Object.prototype.toString.call(typeof process<"u"?process:0)==="[object process]";var Kw=Jt,e1="native";function t1(t){var e={messagesCallback:null,bc:new BroadcastChannel(t),subFns:[]};return e.bc.onmessage=function(r){e.messagesCallback&&e.messagesCallback(r.data)},e}function r1(t){t.bc.close(),t.subFns=[]}function n1(t,e){try{return t.bc.postMessage(e,!1),Promise.resolve()}catch(r){return Promise.reject(r)}}function o1(t,e){t.messagesCallback=e}function i1(){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 s1(){return 150}var em={create:t1,close:r1,onMessage:o1,postMessage:n1,canBeUsed:i1,type:e1,averageResponseTime:s1,microSeconds:Kw};var ss=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,tm()),this.set.add(e),setTimeout(function(){a1(r)},0)},t.prototype.clear=function(){this.set.clear(),this.timeMap.clear()},t}();function a1(t){for(var e=tm()-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 tm(){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 u1=Jt,l1="pubkey.broadcast-channel-0-",Pt="messages",c1="idb";function rm(){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 f1(t){var e=rm(),r=l1+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 p1(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(l){return a(l)};var u=i.objectStore(Pt);u.add(o)})}function h1(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 d1(t,e){var r=t.transaction([Pt],"readwrite").objectStore(Pt).delete(e);return new Promise(function(n){r.onsuccess=function(){return n()}})}function m1(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 g1(t,e){return m1(t,e).then(function(r){return Promise.all(r.map(function(n){return d1(t,n.id)}))})}function y1(t,e){return e=vn(e),f1(t).then(function(r){var n={closed:!1,lastCursorId:0,channelName:t,options:e,uuid:wo(),eMIs:new ss(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()},nm(n),n})}function nm(t){t.closed||om(t).then(function(){return is(t.options.idb.fallbackInterval)}).then(function(){return nm(t)})}function x1(t,e){return!(t.uuid===e.uuid||e.eMIs.has(t.id)||t.data.time<e.messagesCallbackTime)}function om(t){return t.closed||!t.messagesCallback?Promise.resolve():h1(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 x1(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 v1(t){t.closed=!0,t.db.close()}function b1(t,e){return t.writeBlockPromise=t.writeBlockPromise.then(function(){return p1(t.db,t.uuid,e)}).then(function(){Kd(0,10)===0&&g1(t.db,t.options.idb.ttl)}),t.writeBlockPromise}function w1(t,e,r){t.messagesCallbackTime=r,t.messagesCallback=e,om(t)}function S1(){if(Mt)return!1;var t=rm();return!!t}function E1(t){return t.idb.fallbackInterval*2}var im={create:y1,close:v1,onMessage:w1,postMessage:b1,canBeUsed:S1,type:c1,averageResponseTime:E1,microSeconds:u1};var T1=Jt,_1="pubkey.broadcastChannel-",C1="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 am(t){return _1+t}function A1(t,e){return new Promise(function(r){is().then(function(){var n=am(t.channelName),o={token:wo(),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 I1(t,e){var r=am(t),n=function(i){i.key===r&&e(JSON.parse(i.newValue))};return window.addEventListener("storage",n),n}function M1(t){window.removeEventListener("storage",t)}function P1(t,e){if(e=vn(e),!um())throw new Error("BroadcastChannel: localstorage cannot be used");var r=wo(),n=new ss(e.localstorage.removeTimeout),o={channelName:t,uuid:r,eMIs:n};return o.listener=I1(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 $1(t){M1(t.listener)}function N1(t,e,r){t.messagesCallbackTime=r,t.messagesCallback=e}function um(){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 B1(){var t=120,e=navigator.userAgent.toLowerCase();return e.includes("safari")&&!e.includes("chrome")?t*2:t}var lm={create:P1,close:$1,onMessage:N1,postMessage:A1,canBeUsed:um,type:C1,averageResponseTime:B1,microSeconds:T1};var O1=Jt,D1="simulate",ol=new Set;function R1(t){var e={name:t,messagesCallback:null};return ol.add(e),e}function F1(t){ol.delete(t)}function U1(t,e){return new Promise(function(r){return setTimeout(function(){var n=Array.from(ol);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 L1(t,e){t.messagesCallback=e}function k1(){return!0}function j1(){return 5}var cm={create:R1,close:F1,onMessage:L1,postMessage:U1,canBeUsed:k1,type:D1,averageResponseTime:j1,microSeconds:O1};var sl=[em,im,lm];Mt&&(il=fm(),typeof il.canBeUsed=="function"&&sl.push(il));var il;function pm(t){var e=[].concat(t.methods,sl).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(sl.map(function(o){return o.type})))}var bn=function(e,r){this.name=e,hm&&(r=hm),this.options=vn(r),this.method=pm(this.options),this._iL=!1,this._onML=null,this._addEL={message:[],internal:[]},this._uMP=new Set,this._befC=[],this._prepP=null,q1(this)};bn._pubkey=!0;var hm;bn.prototype={postMessage:function(e){if(this.closed)throw new Error("BroadcastChannel.postMessage(): Cannot post message after channel has closed");return dm(this,"message",e)},postInternal:function(e){return dm(this,"internal",e)},set onmessage(t){var e=this.method.microSeconds(),r={time:e,fn:t};gm(this,"message",this._onML),t&&typeof t=="function"?(this._onML=r,mm(this,"message",r)):this._onML=null},addEventListener:function(e,r){var n=this.method.microSeconds(),o={time:n,fn:r};mm(this,e,o)},removeEventListener:function(e,r){var n=this._addEL[e].find(function(o){return o.fn===r});gm(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 dm(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 q1(t){var e=t.method.create(t.name,t.options);Xd(e)?(t._prepP=e,e.then(function(r){t._state=r})):t._state=e}function ym(t){return t._addEL.message.length>0||t._addEL.internal.length>0}function mm(t,e,r){t._addEL[e].push(r),H1(t)}function gm(t,e,r){t._addEL[e]=t._addEL[e].filter(function(n){return n!==r}),W1(t)}function H1(t){if(!t._iL&&ym(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 W1(t){if(t._iL&&!ym(t)){t._iL=!1;var e=t.method.microSeconds();t.method.onMessage(t._state,null,e)}}var al=globalThis.BroadcastChannel;al||(al=bn);var ul=class{constructor(){this.broadcastChannel=new al("dees-comms"),this.typedrouter=new Ze.TypedRouter,this.typedtarget=new Ze.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 Ze.TypedRequest(this.typedtarget,e)}async postMessage(e){this.broadcastChannel.postMessage(e)}async createTypedHandler(e,r){this.typedrouter.addTypedHandler(new Ze.TypedHandler(e,r))}};var cs={};X(cs,{SmartRouter:()=>pl});var us={};X(us,{compile:()=>G1,match:()=>J1,parse:()=>ll,pathToRegexp:()=>fl,regexpToFunction:()=>vm,tokensToFunction:()=>xm,tokensToRegexp:()=>bm});function V1(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 ll(t,e){e===void 0&&(e={});for(var r=V1(t),n=e.prefixes,o=n===void 0?"./":n,i="[^".concat(wn(e.delimiter||"/#?"),"]+?"),s=[],a=0,u=0,l="",c=function(U){if(u<r.length&&r[u].type===U)return r[u++].value},p=function(U){var J=c(U);if(J!==void 0)return J;var F=r[u],D=F.type,te=F.index;throw new TypeError("Unexpected ".concat(D," at ").concat(te,", expected ").concat(U))},h=function(){for(var U="",J;J=c("CHAR")||c("ESCAPED_CHAR");)U+=J;return U};u<r.length;){var y=c("CHAR"),w=c("NAME"),C=c("PATTERN");if(w||C){var B=y||"";o.indexOf(B)===-1&&(l+=B,B=""),l&&(s.push(l),l=""),s.push({name:w||a++,prefix:B,suffix:"",pattern:C||i,modifier:c("MODIFIER")||""});continue}var _=y||c("ESCAPED_CHAR");if(_){l+=_;continue}l&&(s.push(l),l="");var A=c("OPEN");if(A){var B=h(),O=c("NAME")||"",N=c("PATTERN")||"",j=h();p("CLOSE"),s.push({name:O||(N?a++:""),pattern:O&&!N?i:N,prefix:B,suffix:j,modifier:c("MODIFIER")||""});continue}p("END")}return s}function G1(t,e){return xm(ll(t,e),e)}function xm(t,e){e===void 0&&(e={});var r=cl(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 l="",c=0;c<t.length;c++){var p=t[c];if(typeof p=="string"){l+=p;continue}var h=u?u[p.name]:void 0,y=p.modifier==="?"||p.modifier==="*",w=p.modifier==="*"||p.modifier==="+";if(Array.isArray(h)){if(!w)throw new TypeError('Expected "'.concat(p.name,'" to not repeat, but got an array'));if(h.length===0){if(y)continue;throw new TypeError('Expected "'.concat(p.name,'" to not be empty'))}for(var C=0;C<h.length;C++){var B=o(h[C],p);if(s&&!a[c].test(B))throw new TypeError('Expected all "'.concat(p.name,'" to match "').concat(p.pattern,'", but got "').concat(B,'"'));l+=p.prefix+B+p.suffix}continue}if(typeof h=="string"||typeof h=="number"){var B=o(String(h),p);if(s&&!a[c].test(B))throw new TypeError('Expected "'.concat(p.name,'" to match "').concat(p.pattern,'", but got "').concat(B,'"'));l+=p.prefix+B+p.suffix;continue}if(!y){var _=w?"an array":"a string";throw new TypeError('Expected "'.concat(p.name,'" to be ').concat(_))}}return l}}function J1(t,e){var r=[],n=fl(t,r,e);return vm(n,r,e)}function vm(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,l=Object.create(null),c=function(h){if(s[h]===void 0)return"continue";var y=e[h-1];y.modifier==="*"||y.modifier==="+"?l[y.name]=s[h].split(y.prefix+y.suffix).map(function(w){return o(w,y)}):l[y.name]=o(s[h],y)},p=1;p<s.length;p++)c(p);return{path:a,index:u,params:l}}}function wn(t){return t.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1")}function cl(t){return t&&t.sensitive?"":"i"}function Y1(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 Q1(t,e,r){var n=t.map(function(o){return fl(o,e,r).source});return new RegExp("(?:".concat(n.join("|"),")"),cl(r))}function Z1(t,e,r){return bm(ll(t,r),e,r)}function bm(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,l=r.encode,c=l===void 0?function(te){return te}:l,p=r.delimiter,h=p===void 0?"/#?":p,y=r.endsWith,w=y===void 0?"":y,C="[".concat(wn(w),"]|$"),B="[".concat(wn(h),"]"),_=s?"^":"",A=0,O=t;A<O.length;A++){var N=O[A];if(typeof N=="string")_+=wn(c(N));else{var j=wn(c(N.prefix)),U=wn(c(N.suffix));if(N.pattern)if(e&&e.push(N),j||U)if(N.modifier==="+"||N.modifier==="*"){var J=N.modifier==="*"?"?":"";_+="(?:".concat(j,"((?:").concat(N.pattern,")(?:").concat(U).concat(j,"(?:").concat(N.pattern,"))*)").concat(U,")").concat(J)}else _+="(?:".concat(j,"(").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(j).concat(U,")").concat(N.modifier)}}if(u)o||(_+="".concat(B,"?")),_+=r.endsWith?"(?=".concat(C,")"):"$";else{var F=t[t.length-1],D=typeof F=="string"?B.indexOf(F[F.length-1])>-1:F===void 0;o||(_+="(?:".concat(B,"(?=").concat(C,"))?")),D||(_+="(?=".concat(B,"|").concat(C,")"))}return new RegExp(_,cl(r))}function fl(t,e,r){return t instanceof RegExp?Y1(t,e):Array.isArray(t)?Q1(t,e,r):Z1(t,e,r)}var ls=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 pl=class{constructor(e){this.options={debug:!1},this.queryParams=new ls,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:us.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 Sn={};X(Sn,{Smartstate:()=>dl,StateAction:()=>So,StatePart:()=>Eo});var hs={};X(hs,{sha256FromString:()=>rS});var ps={};X(ps,{Smartenv:()=>hl});var Sm=Be(wm(),1);var hl=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=Sm.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 tS=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("")},rS=async t=>{let e=new ps.Smartenv;if(e.isBrowser){let r=new TextEncoder().encode(t),n=await crypto.subtle.digest("SHA-256",r);return tS(n)}else if(e.isNode)return await(await e.getSafeNodeModule("@pushrocks/smarthash")).sha256FromString(t)};var So=class{constructor(e,r){this.statePartRef=e,this.actionDef=r}trigger(e){this.statePartRef.dispatchAction(this,e)}};var Eo=class{constructor(e,r){this.state=new ye.rxjs.Subject,this.cumulativeDeferred=Y.cumulativeDefer(),this.webStore=null,this.name=e,r&&(this.webStoreOptions=r)}async init(){if(this.webStoreOptions){this.webStore=new Gt.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=>hs.sha256FromString(me.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(ye.rxjs.ops.startWith(this.getState()),ye.rxjs.ops.map(n=>{try{return e(n)}catch{}}))}createAction(e){return new So(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=Y.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 dl=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 Eo(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 En={};X(En,{Smarturl:()=>ml});var ml=class t{static createFromUrl(e,r){let n=new URL(e),o={},i=[];n.search&&n.search.replace("?","").split("&").map(l=>{i.push({key:l.split("=")[0],value:l.split("=")[1]})});for(let l of i)o[l.key]=l.value;if(r?.searchParams)for(let l of Object.keys(r.searchParams))o[l]=r.searchParams[l];let s=n.pathname||"";if(Object.keys(o).length>0){s+="?";let l=!0;for(let c of Object.keys(o))l?l=!1:s+="&",s+=`${c}=${o[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: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 _n={};X(_n,{CumulativeDeferred:()=>ms,Deferred:()=>ds,cumulativeDefer:()=>oS,defer:()=>Tn,getFirstTrueOrFalse:()=>lS,map:()=>aS,rejectedPromise:()=>sS,resolvedPromise:()=>iS,timeoutAndContinue:()=>uS,timeoutWrap:()=>Em});var ds=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"})}},Tn=()=>new ds;var ms=class{constructor(){this.accumulatedPromises=[],this.deferred=Tn(),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)}},oS=()=>new ms;var iS=t=>Promise.resolve(t),sS=t=>Promise.reject(t),aS=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},Em=async(t,e,r=!0)=>new Promise((n,o)=>{setTimeout(()=>{r?o(new Error("timeout")):n(null)},e),t.then(n,o)}),uS=async(t,e=6e4)=>Em(t,e,!1),lS=async t=>{let e=Tn();for(let r of t)r.then(n=>{n===!0&&e.resolve(!0)});return Promise.all(t).then(()=>{e.resolve(!1)}),e.promise};var Yt=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 Cn=class t extends Yt{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 je=class t extends Yt{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 An=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(Cn.createCompanyJsonLd(e)),this.addTag(new je("og:type","business.business")),this.addTag(new je("og:title",e.name)),this.addTag(new je("og:url",e.contact.website)),this.addTag(new je("og:image",e.contact.logoUrl)),this.addTag(new je("business:contact_data:street_address",`${e.contact.address.streetName} ${e.contact.address.houseNumber}`)),this.addTag(new je("business:contact_data:locality",e.contact.address.postalCode)),this.addTag(new je("business:contact_data:region",e.contact.address.city)),this.addTag(new je("business:contact_data:postal_code",e.contact.address.postalCode)),this.addTag(new je("business:contact_data:country_name",e.contact.address.country))}addNewsArticleInfo(e){this.addTag(Cn.createNewsArticleJsonLd(e)),this.addTag(je.createNewsArticleOgTags(e))}addProductInfo(e,r){this.addTag(Cn.createProductJsonLd(e,r)),this.addTag(je.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 st=class extends Yt{constructor(e,r){super();let n=document.createElement("meta");n.name=e,n.content=r,this.elementRef=n}};var gs=class{constructor(){this.globalLevel=new An(this,"global"),this.baseLevel=new An(this,"base")}async setup(e){switch(this.globalLevel.addTag(new st("google","notranslate")),this.globalLevel.addTag(new st("revisit-after","1 days")),e.twitterHandle&&(this.globalLevel.addTag(new st("twitter:card","summary_large_image")),this.globalLevel.addTag(new st("twitter:site",e.twitterHandle)),this.globalLevel.addTag(new st("twitter:creator",e.twitterHandle))),this.baseLevel.title=e.title,e.description&&this.baseLevel.addTag(new st("description",e.description)),e.canonicalDomain&&this.baseLevel.addTag(new st("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 An(this,"subpage");return r.title=e.title,e.description&&r.addTag(new st("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 ys=class{constructor(e){this.tagManager=new gs,this.readyDeferred=_n.defer(),this.readyForSmartssrDeferred=_n.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 To=Be(_m(),1);var xl={ObjectMap:Tt,Stringmap:to,FastMap:mr};var $t={};X($t,{cssForDesktop:()=>mS,cssForNotebook:()=>gS,cssForPhablet:()=>xS,cssForPhone:()=>vS,cssForTablet:()=>yS,desktop:()=>vl,notebook:()=>bl,phablet:()=>Sl,phone:()=>El,tablet:()=>wl});var vl=1600,bl=1240,wl=1024,Sl=600,El=400,mS=t=>H(`
22
- @container wccToolsViewport (min-width: ${vl}px) {
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
+ `;function Ki(t){if(typeof t!="string"&&!Buffer.isBuffer(t))throw new TypeError(`Expected a \`string\` or a \`Buffer\`, got \`${typeof t}\``);return Buffer.isBuffer(t)?(0,Hh.default)(t,Wh,`
18
+ `):t.replace(new RegExp(Wh,"g"),`
19
+ `)}var Nu=De(ed(),1),Av=new uo;Av.isBrowser&&(globalThis.Buffer=rd.Buffer);var Iv=(t,e,r)=>Nu.default(t,e,r),Mv=()=>td.uni();var Du={};X(Du,{makeEnvObject:()=>Pv});var Pv=function(t){let e={},r=/(.*)=(.*)/;if(typeof t<"u")for(let n in t){let o=r.exec(t[n]);e[o[1]]=o[2]}return e};var Fu={};X(Fu,{indent:()=>Nv,indentWithPrefix:()=>Ov,normalize:()=>Dv});var Bu=t=>{let e=t.split(`
20
+ `);return $v(e)},Ru=t=>{let e="";for(let r of t)e=e+r+`
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
+ @container wccToolsViewport (min-width: ${Pc}px) {
23
23
  ${t.cssText}
24
24
  }
25
- @media (min-width: ${vl}px) {
25
+ @media (min-width: ${Pc}px) {
26
26
  ${t.cssText}
27
27
  }
28
- `),gS=t=>H(`
29
- @container wccToolsViewport (max-width: ${bl}px) {
28
+ `),XS=t=>V(`
29
+ @container wccToolsViewport (max-width: ${$c}px) {
30
30
  ${t.cssText}
31
31
  }
32
- @media (max-width: ${bl}px) {
32
+ @media (max-width: ${$c}px) {
33
33
  ${t.cssText}
34
34
  }
35
- `),yS=t=>H(`
36
- @container wccToolsViewport (max-width: ${wl}px) {
35
+ `),KS=t=>V(`
36
+ @container wccToolsViewport (max-width: ${Nc}px) {
37
37
  ${t.cssText}
38
38
  }
39
- @media (max-width: ${wl}px) {
39
+ @media (max-width: ${Nc}px) {
40
40
  ${t.cssText}
41
41
  }
42
- `),xS=t=>H(`
43
- @container wccToolsViewport (max-width: ${Sl}px) {
42
+ `),eE=t=>V(`
43
+ @container wccToolsViewport (max-width: ${Oc}px) {
44
44
  ${t.cssText}
45
45
  }
46
- @media (max-width: ${Sl}px) {
46
+ @media (max-width: ${Oc}px) {
47
47
  ${t.cssText}
48
48
  }
49
- `),vS=t=>H(`
50
- @container wccToolsViewport (max-width: ${El}px) {
49
+ `),tE=t=>V(`
50
+ @container wccToolsViewport (max-width: ${Dc}px) {
51
51
  ${t.cssText}
52
52
  }
53
- @media (max-width: ${El}px) {
53
+ @media (max-width: ${Dc}px) {
54
54
  ${t.cssText}
55
55
  }
56
- `);var vs=class{constructor(e){this.goBrightBoolean=!1,this.preferredColorSchemeMediaMatch=window.matchMedia("(prefers-color-scheme: light)"),this.themeObservable=new ye.rxjs.ReplaySubject(1),this.domtoolsRef=e,this.goBrightBoolean=this.preferredColorSchemeMediaMatch.matches,this.preferredColorSchemeMediaMatch.addEventListener("change",r=>{this.goBrightBoolean=r.matches,this.updateAllConnectedElements()}),this.updateAllConnectedElements()}async updateAllConnectedElements(){document.body&&document.body.style&&(document.body.style.background=this.goBrightBoolean?"#fff":"#000"),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 Tl;(function(t){t[t.Backspace=8]="Backspace",t[t.Tab=9]="Tab",t[t.Enter=13]="Enter",t[t.Shift=16]="Shift",t[t.Ctrl=17]="Ctrl",t[t.Alt=18]="Alt",t[t.PauseBreak=19]="PauseBreak",t[t.CapsLock=20]="CapsLock",t[t.Escape=27]="Escape",t[t.Space=32]="Space",t[t.PageUp=33]="PageUp",t[t.PageDown=34]="PageDown",t[t.End=35]="End",t[t.Home=36]="Home",t[t.LeftArrow=37]="LeftArrow",t[t.UpArrow=38]="UpArrow",t[t.RightArrow=39]="RightArrow",t[t.DownArrow=40]="DownArrow",t[t.Insert=45]="Insert",t[t.Delete=46]="Delete",t[t.Zero=48]="Zero",t[t.ClosedParen=48]="ClosedParen",t[t.One=49]="One",t[t.ExclamationMark=49]="ExclamationMark",t[t.Two=50]="Two",t[t.AtSign=50]="AtSign",t[t.Three=51]="Three",t[t.PoundSign=51]="PoundSign",t[t.Hash=51]="Hash",t[t.Four=52]="Four",t[t.DollarSign=52]="DollarSign",t[t.Five=53]="Five",t[t.PercentSign=53]="PercentSign",t[t.Six=54]="Six",t[t.Caret=54]="Caret",t[t.Hat=54]="Hat",t[t.Seven=55]="Seven",t[t.Ampersand=55]="Ampersand",t[t.Eight=56]="Eight",t[t.Star=56]="Star",t[t.Asterik=56]="Asterik",t[t.Nine=57]="Nine",t[t.OpenParen=57]="OpenParen",t[t.A=65]="A",t[t.B=66]="B",t[t.C=67]="C",t[t.D=68]="D",t[t.E=69]="E",t[t.F=70]="F",t[t.G=71]="G",t[t.H=72]="H",t[t.I=73]="I",t[t.J=74]="J",t[t.K=75]="K",t[t.L=76]="L",t[t.M=77]="M",t[t.N=78]="N",t[t.O=79]="O",t[t.P=80]="P",t[t.Q=81]="Q",t[t.R=82]="R",t[t.S=83]="S",t[t.T=84]="T",t[t.U=85]="U",t[t.V=86]="V",t[t.W=87]="W",t[t.X=88]="X",t[t.Y=89]="Y",t[t.Z=90]="Z",t[t.LeftWindowKey=91]="LeftWindowKey",t[t.RightWindowKey=92]="RightWindowKey",t[t.SelectKey=93]="SelectKey",t[t.Numpad0=96]="Numpad0",t[t.Numpad1=97]="Numpad1",t[t.Numpad2=98]="Numpad2",t[t.Numpad3=99]="Numpad3",t[t.Numpad4=100]="Numpad4",t[t.Numpad5=101]="Numpad5",t[t.Numpad6=102]="Numpad6",t[t.Numpad7=103]="Numpad7",t[t.Numpad8=104]="Numpad8",t[t.Numpad9=105]="Numpad9",t[t.Multiply=106]="Multiply",t[t.Add=107]="Add",t[t.Subtract=109]="Subtract",t[t.DecimalPoint=110]="DecimalPoint",t[t.Divide=111]="Divide",t[t.F1=112]="F1",t[t.F2=113]="F2",t[t.F3=114]="F3",t[t.F4=115]="F4",t[t.F5=116]="F5",t[t.F6=117]="F6",t[t.F7=118]="F7",t[t.F8=119]="F8",t[t.F9=120]="F9",t[t.F10=121]="F10",t[t.F11=122]="F11",t[t.F12=123]="F12",t[t.NumLock=144]="NumLock",t[t.ScrollLock=145]="ScrollLock",t[t.SemiColon=186]="SemiColon",t[t.Equals=187]="Equals",t[t.Comma=188]="Comma",t[t.Dash=189]="Dash",t[t.Period=190]="Period",t[t.UnderScore=189]="UnderScore",t[t.PlusSign=187]="PlusSign",t[t.ForwardSlash=191]="ForwardSlash",t[t.Tilde=192]="Tilde",t[t.GraveAccent=192]="GraveAccent",t[t.OpenBracket=219]="OpenBracket",t[t.ClosedBracket=221]="ClosedBracket",t[t.Quote=222]="Quote"})(Tl||(Tl={}));var bs=class{constructor(e){this.domNode=e,this.mapCombosToHandlers=new Map,this.pressedKeys=new Set,this.keyEnum=Tl,this.handleKeyDown=r=>{this.pressedKeys.add(r.keyCode),this.checkMatchingKeyboardSubjects(r)},this.handleKeyUp=r=>{this.pressedKeys.delete(r.keyCode)},this.startListening()}on(e){let r=new ye.rxjs.Subject;return this.registerKeys(e,r),r}triggerKeyPress(e){for(let r of e)this.pressedKeys.add(r);this.checkMatchingKeyboardSubjects();for(let r of e)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(e){this.mapCombosToHandlers.forEach((r,n)=>{this.areAllKeysPressed(n)&&r.next(e)})}areAllKeysPressed(e){let r=!0;return e.forEach(n=>{this.pressedKeys.has(n)||(r=!1)}),r}registerKeys(e,r){if(!this.mapCombosToHandlers.has(e))this.mapCombosToHandlers.set(e,r);else return this.mapCombosToHandlers.get(e)}};var pe=class t{static async setupDomTools(e={}){let r;if(!globalThis.deesDomTools&&!e.ignoreGlobal){globalThis.deesDomTools=new t(e),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 e.ignoreGlobal?r=new t(e):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(e){this.elements={headElement:null,bodyElement:null},this.websetup=new ys({metaObject:{title:"loading..."}}),this.smartstate=new Sn.Smartstate,this.domToolsStatePart=this.smartstate.getStatePart("domtools",{virtualViewport:"native",jwt:null}),this.router=new cs.SmartRouter({debug:!1}),this.convenience={typedrequest:Ze,smartdelay:ie,smartjson:me,smarturl:En},this.deesComms=new as.DeesComms,this.scroller=new To.default({}),this.themeManager=new vs(this),this.keyboard=new bs(document.body),this.domToolsReady=Y.defer(),this.domReady=Y.defer(),this.globalStylesReady=Y.defer(),this.runOnceTrackerStringMap=new xl.Stringmap,this.runOnceResultMap=new xl.FastMap}async runOnce(e,r){let n=`${e}+runningCheck`;if(!this.runOnceTrackerStringMap.checkString(e)){this.runOnceTrackerStringMap.addString(e),this.runOnceTrackerStringMap.addString(n);let o=await r();this.runOnceResultMap.addToMap(e,o),this.runOnceTrackerStringMap.removeString(n)}return await this.runOnceTrackerStringMap.registerUntilTrue(o=>!o.includes(n),()=>this.runOnceResultMap.getByKey(e))}async setGlobalStyles(e){await this.domReady.promise;let r=document.createElement("style");r.type="text/css",r.appendChild(document.createTextNode(e)),this.elements.headElement.appendChild(r)}async setExternalScript(e){await this.domReady.promise;let r=Y.defer(),n=document.createElement("script");n.src=e,n.addEventListener("load",function(){r.resolve()}),(document.head||document.body).append(n),await r.promise}async setExternalCss(e){let r=document.createElement("link");r.rel="stylesheet",r.crossOrigin="anonymous",r.href=e,document.head.append(r)}async setWebsiteInfo(e){await this.websetup.setup(e),await this.websetup.readyPromise}};var ws=(()=>{let t=navigator.userAgent.indexOf("Mac OS X")===-1?ae``.cssText:"";return ae`
56
+ `);var Is=class{constructor(e){this.goBrightBoolean=!1,this.preferredColorSchemeMediaMatch=window.matchMedia("(prefers-color-scheme: light)"),this.themeObservable=new de.rxjs.ReplaySubject(1),this.domtoolsRef=e,this.goBrightBoolean=this.preferredColorSchemeMediaMatch.matches,this.preferredColorSchemeMediaMatch.addEventListener("change",r=>{this.goBrightBoolean=r.matches,this.updateAllConnectedElements()}),this.updateAllConnectedElements()}async updateAllConnectedElements(){document.body&&document.body.style&&(document.body.style.background=this.goBrightBoolean?"#fff":"#000"),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 Bc;(function(t){t[t.Backspace=8]="Backspace",t[t.Tab=9]="Tab",t[t.Enter=13]="Enter",t[t.Shift=16]="Shift",t[t.Ctrl=17]="Ctrl",t[t.Alt=18]="Alt",t[t.PauseBreak=19]="PauseBreak",t[t.CapsLock=20]="CapsLock",t[t.Escape=27]="Escape",t[t.Space=32]="Space",t[t.PageUp=33]="PageUp",t[t.PageDown=34]="PageDown",t[t.End=35]="End",t[t.Home=36]="Home",t[t.LeftArrow=37]="LeftArrow",t[t.UpArrow=38]="UpArrow",t[t.RightArrow=39]="RightArrow",t[t.DownArrow=40]="DownArrow",t[t.Insert=45]="Insert",t[t.Delete=46]="Delete",t[t.Zero=48]="Zero",t[t.ClosedParen=48]="ClosedParen",t[t.One=49]="One",t[t.ExclamationMark=49]="ExclamationMark",t[t.Two=50]="Two",t[t.AtSign=50]="AtSign",t[t.Three=51]="Three",t[t.PoundSign=51]="PoundSign",t[t.Hash=51]="Hash",t[t.Four=52]="Four",t[t.DollarSign=52]="DollarSign",t[t.Five=53]="Five",t[t.PercentSign=53]="PercentSign",t[t.Six=54]="Six",t[t.Caret=54]="Caret",t[t.Hat=54]="Hat",t[t.Seven=55]="Seven",t[t.Ampersand=55]="Ampersand",t[t.Eight=56]="Eight",t[t.Star=56]="Star",t[t.Asterik=56]="Asterik",t[t.Nine=57]="Nine",t[t.OpenParen=57]="OpenParen",t[t.A=65]="A",t[t.B=66]="B",t[t.C=67]="C",t[t.D=68]="D",t[t.E=69]="E",t[t.F=70]="F",t[t.G=71]="G",t[t.H=72]="H",t[t.I=73]="I",t[t.J=74]="J",t[t.K=75]="K",t[t.L=76]="L",t[t.M=77]="M",t[t.N=78]="N",t[t.O=79]="O",t[t.P=80]="P",t[t.Q=81]="Q",t[t.R=82]="R",t[t.S=83]="S",t[t.T=84]="T",t[t.U=85]="U",t[t.V=86]="V",t[t.W=87]="W",t[t.X=88]="X",t[t.Y=89]="Y",t[t.Z=90]="Z",t[t.LeftWindowKey=91]="LeftWindowKey",t[t.RightWindowKey=92]="RightWindowKey",t[t.SelectKey=93]="SelectKey",t[t.Numpad0=96]="Numpad0",t[t.Numpad1=97]="Numpad1",t[t.Numpad2=98]="Numpad2",t[t.Numpad3=99]="Numpad3",t[t.Numpad4=100]="Numpad4",t[t.Numpad5=101]="Numpad5",t[t.Numpad6=102]="Numpad6",t[t.Numpad7=103]="Numpad7",t[t.Numpad8=104]="Numpad8",t[t.Numpad9=105]="Numpad9",t[t.Multiply=106]="Multiply",t[t.Add=107]="Add",t[t.Subtract=109]="Subtract",t[t.DecimalPoint=110]="DecimalPoint",t[t.Divide=111]="Divide",t[t.F1=112]="F1",t[t.F2=113]="F2",t[t.F3=114]="F3",t[t.F4=115]="F4",t[t.F5=116]="F5",t[t.F6=117]="F6",t[t.F7=118]="F7",t[t.F8=119]="F8",t[t.F9=120]="F9",t[t.F10=121]="F10",t[t.F11=122]="F11",t[t.F12=123]="F12",t[t.NumLock=144]="NumLock",t[t.ScrollLock=145]="ScrollLock",t[t.SemiColon=186]="SemiColon",t[t.Equals=187]="Equals",t[t.Comma=188]="Comma",t[t.Dash=189]="Dash",t[t.Period=190]="Period",t[t.UnderScore=189]="UnderScore",t[t.PlusSign=187]="PlusSign",t[t.ForwardSlash=191]="ForwardSlash",t[t.Tilde=192]="Tilde",t[t.GraveAccent=192]="GraveAccent",t[t.OpenBracket=219]="OpenBracket",t[t.ClosedBracket=221]="ClosedBracket",t[t.Quote=222]="Quote"})(Bc||(Bc={}));var Ms=class{constructor(e){this.domNode=e,this.mapCombosToHandlers=new Map,this.pressedKeys=new Set,this.keyEnum=Bc,this.handleKeyDown=r=>{this.pressedKeys.add(r.keyCode),this.checkMatchingKeyboardSubjects(r)},this.handleKeyUp=r=>{this.pressedKeys.delete(r.keyCode)},this.startListening()}on(e){let r=new de.rxjs.Subject;return this.registerKeys(e,r),r}triggerKeyPress(e){for(let r of e)this.pressedKeys.add(r);this.checkMatchingKeyboardSubjects();for(let r of e)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(e){this.mapCombosToHandlers.forEach((r,n)=>{this.areAllKeysPressed(n)&&r.next(e)})}areAllKeysPressed(e){let r=!0;return e.forEach(n=>{this.pressedKeys.has(n)||(r=!1)}),r}registerKeys(e,r){if(!this.mapCombosToHandlers.has(e))this.mapCombosToHandlers.set(e,r);else return this.mapCombosToHandlers.get(e)}};var he=class t{static async setupDomTools(e={}){let r;if(!globalThis.deesDomTools&&!e.ignoreGlobal){globalThis.deesDomTools=new t(e),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 e.ignoreGlobal?r=new t(e):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(e){this.elements={headElement:null,bodyElement:null},this.websetup=new Cs({metaObject:{title:"loading..."}}),this.smartstate=new En.Smartstate,this.domToolsStatePart=this.smartstate.getStatePart("domtools",{virtualViewport:"native",jwt:null}),this.router=new bs.SmartRouter({debug:!1}),this.convenience={typedrequest:Xe,smartdelay:se,smartjson:ye,smarturl:Tn},this.deesComms=new gs.DeesComms,this.scroller=new No.default({}),this.themeManager=new Is(this),this.keyboard=new Ms(document.body),this.domToolsReady=Q.defer(),this.domReady=Q.defer(),this.globalStylesReady=Q.defer(),this.runOnceTrackerStringMap=new Mc.Stringmap,this.runOnceResultMap=new Mc.FastMap}async runOnce(e,r){let n=`${e}+runningCheck`;if(!this.runOnceTrackerStringMap.checkString(e)){this.runOnceTrackerStringMap.addString(e),this.runOnceTrackerStringMap.addString(n);let o=await r();this.runOnceResultMap.addToMap(e,o),this.runOnceTrackerStringMap.removeString(n)}return await this.runOnceTrackerStringMap.registerUntilTrue(o=>!o.includes(n),()=>this.runOnceResultMap.getByKey(e))}async setGlobalStyles(e){await this.domReady.promise;let r=document.createElement("style");r.type="text/css",r.appendChild(document.createTextNode(e)),this.elements.headElement.appendChild(r)}async setExternalScript(e){await this.domReady.promise;let r=Q.defer(),n=document.createElement("script");n.src=e,n.addEventListener("load",function(){r.resolve()}),(document.head||document.body).append(n),await r.promise}async setExternalCss(e){let r=document.createElement("link");r.rel="stylesheet",r.crossOrigin="anonymous",r.href=e,document.head.append(r)}async setWebsiteInfo(e){await this.websetup.setup(e),await this.websetup.readyPromise}};var Ps=(()=>{let t=navigator.userAgent.indexOf("Mac OS X")===-1?te``.cssText:"";return te`
57
57
  /* width */
58
58
  ::-webkit-scrollbar {
59
59
  width: 0px;
@@ -61,7 +61,7 @@ Minimum version required to store current data is: `+i+`.
61
61
  body {
62
62
  scrollbar-width: none;
63
63
  }
64
- `.cssText})(),Cm=ae`
64
+ `.cssText})(),qm=te`
65
65
  /*
66
66
  @font-face {
67
67
  font-family: 'Material Icons';
@@ -79,8 +79,8 @@ Minimum version required to store current data is: `+i+`.
79
79
  }
80
80
 
81
81
  /* scroll bar styles */
82
- ${H(ws)}
83
- `.cssText;var bS=ae`
82
+ ${V(Ps)}
83
+ `.cssText;var rE=te`
84
84
  * {
85
85
  transition: background 0.1s, color 0.1s;
86
86
  box-sizing: border-box;
@@ -91,8 +91,8 @@ Minimum version required to store current data is: `+i+`.
91
91
  font-family: 'Roboto', 'Inter', sans-serif;
92
92
  }
93
93
 
94
- ${H(ws)}
95
- `,wS=W`
94
+ ${V(Ps)}
95
+ `,nE=k`
96
96
  <style>
97
97
  * {
98
98
  transition: background 0.1s, color 0.1s;
@@ -103,13 +103,13 @@ Minimum version required to store current data is: `+i+`.
103
103
  font-family: 'Roboto', 'Inter', sans-serif;
104
104
  }
105
105
 
106
- ${ws}
106
+ ${Ps}
107
107
  </style>
108
- `,SS=async(t,e={})=>{let r=await pe.setupDomTools(e);return r.runOnce("elementBasicSetup",async()=>{r.setGlobalStyles(Cm)}),r};var _l={};X(_l,{cssGridColumns:()=>ES});var ES=(t,e)=>{let r="";for(let n=0;n<t;n++)r+=` calc((100%/${t}) - (${e*(t-1)}px/${t}))`;return r};var TS={smartdelay:ie,smartpromise:Y,SweetScroll:To.default,smartstate:Sn,smartrx:ye,smarturl:En,typedrequest:Ze};var Cr={css:ae,unsafeCSS:H,LitElement:Ut,property:Q};var Ss=class{constructor(){this.domtoolsPromise=pe.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 Cr.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 H($t.cssForDesktop(e))}cssForNotebook(e){return H($t.cssForNotebook(e))}cssForTablet(e){return H($t.cssForTablet(e))}cssForPhablet(e){return H($t.cssForPhablet(e))}cssForPhone(e){return H($t.cssForPhone(e))}bdTheme(e,r){let n,o;pe.getGlobalDomToolsSync()?o=pe.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:`--${Am.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 Cr.unsafeCSS(`var(${n}, ${o})`)}};var Ir={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},We=t=>(...e)=>({_$litDirective$:t,values:e}),Ar=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 _o=class extends Ar{constructor(e){if(super(e),this.et=de,e.type!==Ir.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(e){if(e===de||e==null)return this.ft=void 0,this.et=e;if(e===Ee)return e;if(typeof e!="string")throw Error(this.constructor.directiveName+"() called with a non-string value");if(e===this.et)return this.ft;this.et=e;let r=[e];return r.raw=r,this.ft={_$litType$:this.constructor.resultType,strings:r,values:[]}}};_o.directiveName="unsafeHTML",_o.resultType=1;var _S=We(_o);var De=t=>e=>typeof e=="function"?((r,n)=>(customElements.define(r,n),n))(t,e):((r,n)=>{let{kind:o,elements:i}=n;return{kind:o,elements:i,finisher(s){customElements.define(r,s)}}})(t,e);var Cl,ZO=((Cl=window.HTMLSlotElement)===null||Cl===void 0?void 0:Cl.prototype.assignedElements)!=null?(t,e)=>t.assignedElements(e):(t,e)=>t.assignedNodes(e).filter(r=>r.nodeType===Node.ELEMENT_NODE);var{I:CS}=yc,Pm=t=>t===null||typeof t!="object"&&typeof t!="function";var $m=t=>t.strings===void 0,Mm=()=>document.createComment(""),Nm=(t,e,r)=>{var n;let o=t._$AA.parentNode,i=e===void 0?t._$AB:e._$AA;if(r===void 0){let s=o.insertBefore(Mm(),i),a=o.insertBefore(Mm(),i);r=new CS(s,a,t,t.options)}else{let s=r._$AB.nextSibling,a=r._$AM,u=a!==t;if(u){let l;(n=r._$AQ)===null||n===void 0||n.call(r,t),r._$AM=t,r._$AP!==void 0&&(l=t._$AU)!==a._$AU&&r._$AP(l)}if(s!==i||u){let l=r._$AA;for(;l!==s;){let c=l.nextSibling;o.insertBefore(l,i),l=c}}}return r},Bm=(t,e,r=t)=>(t._$AI(e,r),t);var Om=t=>{t._$AR()};var Ao=(t,e)=>{var r,n;let o=t._$AN;if(o===void 0)return!1;for(let i of o)(n=(r=i)._$AO)===null||n===void 0||n.call(r,e,!1),Ao(i,e);return!0},Es=t=>{let e,r;do{if((e=t._$AM)===void 0)break;r=e._$AN,r.delete(t),t=e}while(r?.size===0)},Dm=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),MS(e)}};function AS(t){this._$AN!==void 0?(Es(this),this._$AM=t,Dm(this)):this._$AM=t}function IS(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++)Ao(n[i],!1),Es(n[i]);else n!=null&&(Ao(n,!1),Es(n));else Ao(this,t)}var MS=t=>{var e,r,n,o;t.type==Ir.CHILD&&((e=(n=t)._$AP)!==null&&e!==void 0||(n._$AP=IS),(r=(o=t)._$AQ)!==null&&r!==void 0||(o._$AQ=AS))},mt=class extends Ar{constructor(){super(...arguments),this._$AN=void 0}_$AT(e,r,n){super._$AT(e,r,n),Dm(this),this.isConnected=e._$AU}_$AO(e,r=!0){var n,o;e!==this.isConnected&&(this.isConnected=e,e?(n=this.reconnected)===null||n===void 0||n.call(this):(o=this.disconnected)===null||o===void 0||o.call(this)),r&&(Ao(this,e),Es(this))}setValue(e){if($m(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 Rm=async(t,e)=>{for await(let r of t)if(await e(r)===!1)return},In=class{constructor(e){this.G=e}disconnect(){this.G=void 0}reconnect(e){this.G=e}deref(){return this.G}},Mn=class{constructor(){this.Y=void 0,this.Z=void 0}get(){return this.Y}pause(){var e;(e=this.Y)!==null&&e!==void 0||(this.Y=new Promise(r=>this.Z=r))}resume(){var e;(e=this.Z)===null||e===void 0||e.call(this),this.Y=this.Z=void 0}};var Fm=t=>!Pm(t)&&typeof t.then=="function",Um=1073741823,Al=class extends mt{constructor(){super(...arguments),this._$C_t=Um,this._$Cwt=[],this._$Cq=new In(this),this._$CK=new Mn}render(...e){var r;return(r=e.find(n=>!Fm(n)))!==null&&r!==void 0?r:Ee}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(!Fm(u))return this._$C_t=a,u;a<o&&u===n[a]||(this._$C_t=Um,o=0,Promise.resolve(u).then(async l=>{for(;s.get();)await s.get();let c=i.deref();if(c!==void 0){let p=c._$Cwt.indexOf(u);p>-1&&p<c._$C_t&&(c._$C_t=p,c.setValue(l))}}))}return Ee}disconnected(){this._$Cq.disconnect(),this._$CK.pause()}reconnected(){this._$Cq.reconnect(this),this._$CK.resume()}},PS=We(Al);var Io=class extends mt{constructor(){super(...arguments),this._$Cq=new In(this),this._$CK=new Mn}render(e,r){return Ee}update(e,[r,n]){if(this.isConnected||this.disconnected(),r===this._$CX)return;this._$CX=r;let o=0,{_$Cq:i,_$CK:s}=this;return Rm(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}),Ee}commitValue(e,r){this.setValue(e)}disconnected(){this._$Cq.disconnect(),this._$CK.pause()}reconnected(){this._$Cq.reconnect(this),this._$CK.resume()}},ND=We(Io);var $S=We(class extends Io{constructor(t){if(super(t),t.type!==Ir.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&&Om(this._$CJ);let r=Nm(this._$CJ);Bm(r,t)}});var Lm=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},km=function(t,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(t,e)},ve=class extends Cr.LitElement{constructor(e={}){super(),this.goBright=!1,this.rxSubscriptions=[],this.elementDomReadyDeferred=Ne.plugins.smartpromise.defer(),this.elementDomReady=this.elementDomReadyDeferred.promise,this.domtoolsPromise=Ne.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()}async disconnectedCallback(){await this.domtoolsPromise,super.disconnectedCallback();for(let e of this.rxSubscriptions)e.unsubscribe();this.dispatchEvent(new CustomEvent("deesElementDisconnected"))}};Lm([Cr.property({type:Boolean}),km("design:type",Boolean)],ve.prototype,"goBright",void 0);Lm([Cr.property(),km("design:type",Ne.DomTools)],ve.prototype,"domtools",void 0);var Il=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)),Ee}subscribe(e){this.sub=e.subscribe(r=>{this.setValue(r)})}disconnected(){this.sub?.unsubscribe()}reconnected(){this.subscribe(this.observable)}},NS=We(Il);var Ml=class extends mt{constructor(){super(...arguments),this.hasPromiseSettled=!1}render(e){return this.promise!==e&&(this.promise=e,this.isConnected&&this.handlePromise(e)),Ee}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)}},BS=We(Ml);var nR=new Ss;var Hg=Be(qg(),1);var zg={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"},Vg={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"},Dn={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:zg,billedTo:Vg,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:zg,to:Vg,incidenceId:null,language:null,legalContact:null,logoUrl:null,pdfAttachments:null,subject:"Invoice: LL-INV-48765"};var Gg=1122,Rn=794,Ke=70,Fn=90;var Or=class extends ve{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};pe.setupDomTools()}render(){return W`
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`
109
109
  <div class="trimmedContent"></div>
110
110
  <div class="repeatedContent"></div>
111
111
  <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 o=(await this.getContentNodes()).trimmedContent,i=o.children.length;for(;i>0;){let s=o.children.item(i-1);if(s.classList.contains("dataHeader")){(await this.getContentNodes()).repeatedContent.append(s);break}i--}}}async firstUpdated(r){super.firstUpdated(r),this.attachInvoiceDom()}async attachInvoiceDom(){let r=await this.getContentNodes();Vn(W`
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 o=(await this.getContentNodes()).trimmedContent,i=o.children.length;for(;i>0;){let s=o.children.item(i-1);if(s.classList.contains("dataHeader")){(await this.getContentNodes()).repeatedContent.append(s);break}i--}}}async firstUpdated(r){super.firstUpdated(r),this.attachInvoiceDom()}async attachInvoiceDom(){let r=await this.getContentNodes();Qn(k`
113
113
  <style>
114
114
  .grid {
115
115
  display: grid;
@@ -195,7 +195,7 @@ Minimum version required to store current data is: `+i+`.
195
195
  <div class="lineItem">Unit Net Price</div>
196
196
  <div class="lineItem">Total Net Price</div>
197
197
  </div>
198
- ${(()=>{let o=1;return this.letterData?.content.invoiceData?.items?.map(i=>W`
198
+ ${(()=>{let o=1;return this.letterData?.content.invoiceData?.items?.map(i=>k`
199
199
  <div class="grid invoiceLine needsDataHeader">
200
200
  <div class="lineItem">${o++}</div>
201
201
  <div class="lineItem">${i.name}</div>
@@ -212,7 +212,7 @@ Minimum version required to store current data is: `+i+`.
212
212
  <div class="label">Total net</div>
213
213
  <div class="value">${this.getTotalNet()} EUR</div>
214
214
  </div>
215
- ${this.getVatGroups().map(o=>{let i="";for(let s of o.items){let a=this.letterData.content.invoiceData.items.indexOf(s);i+=` ${a+1},`}return W`
215
+ ${this.getVatGroups().map(o=>{let i="";for(let s of o.items){let a=this.letterData.content.invoiceData.items.indexOf(s);i+=` ${a+1},`}return k`
216
216
  <div class="sumline">
217
217
  <div class="label">
218
218
  Vat ${o.vatPercentage}%<br />
@@ -227,7 +227,7 @@ Minimum version required to store current data is: `+i+`.
227
227
  </div>
228
228
  </div>
229
229
  <div class="divider"></div>
230
- ${this.letterData?.content.invoiceData.reverseCharge?W`
230
+ ${this.letterData?.content.invoiceData.reverseCharge?k`
231
231
  <div class="taxNote">
232
232
  VAT arises on a reverse charge basis and is payable by the customer.
233
233
  </div>
@@ -243,17 +243,17 @@ Minimum version required to store current data is: `+i+`.
243
243
  Description: ${this.letterData?.content.invoiceData?.id}<br />
244
244
  Amount: ${this.getTotalGross()} ${this.letterData?.content.invoiceData.items[0].currency}
245
245
  </div>
246
- ${this.letterData?.content?.contractData?.contractDate?W`
246
+ ${this.letterData?.content?.contractData?.contractDate?k`
247
247
  <div class="infoBox">
248
248
  <div class="label">Referenced contract:</div>
249
249
  This invoice is adhering to agreements made by contract between the parties on
250
250
  ${Et.ExtendedDate.fromMillis(this.letterData?.content.contractData.contractDate).format("MMMM D, YYYY")}.
251
251
  </div>
252
- `:W``}
252
+ `:k``}
253
253
  <div class="infoBox paymentCode">
254
254
  <div class="label">Sepa Payment Code:</div>
255
255
  </div>
256
- `,r.currentContent);let n=document.createElement("canvas");Hg.toCanvas(n,`BCD
256
+ `,r.currentContent);let n=document.createElement("canvas");iy.toCanvas(n,`BCD
257
257
  001
258
258
  1
259
259
  SCT
@@ -264,7 +264,7 @@ EUR${this.getTotalGross()}
264
264
  CHAR
265
265
  ${this.letterData.content.invoiceData.id}
266
266
  ${this.letterData.content.invoiceData.id}
267
- EPC QR Code`,o=>{o&&console.error(o),console.log("success!")}),r.currentContent.querySelector(".paymentCode").append(n)}};Or.demo=()=>W`
267
+ EPC QR Code`,o=>{o&&console.error(o),console.log("success!")}),r.currentContent.querySelector(".paymentCode").append(n)}};Dr.demo=()=>k`
268
268
  <style>
269
269
  .demoContainer {
270
270
  background: white;
@@ -274,7 +274,7 @@ EPC QR Code`,o=>{o&&console.error(o),console.log("success!")}),r.currentContent.
274
274
  <div class="demoContainer">
275
275
  <dedocument-contentinvoice></dedocument-contentinvoice>
276
276
  </div>
277
- `,Or.styles=[Ce.staticStyles,ae`
277
+ `,Dr.styles=[Ce.staticStyles,te`
278
278
  :host {
279
279
  color: #333;
280
280
  }
@@ -285,44 +285,58 @@ EPC QR Code`,o=>{o&&console.error(o),console.log("success!")}),r.currentContent.
285
285
 
286
286
  .repeatedContent {
287
287
  }
288
- `],V([Q({type:Object,reflect:!0})],Or.prototype,"letterData",2),Or=V([De("dedocument-contentinvoice")],Or);var ze=class extends ve{constructor(){super();this.format="a4";this.pageNumber=1;this.pageTotalNumber=1;this.letterData=Dn;this.printMode=!1;pe.setupDomTools()}render(){return W`
289
- <dedocument-pagecontainer .printMode=${this.printMode}>
290
- <dedocument-pageheader
291
- .letterData=${this.letterData}
292
- .pageNumber="${this.pageNumber}"
293
- .pageTotalNumber="${this.pageTotalNumber}"
294
- ></dedocument-pageheader>
295
- ${this.pageNumber===1?W`
296
- <dedocument-letterheader
297
- .pageNumber="${this.pageNumber}"
298
- .letterData=${this.letterData}
299
- .pageTotalNumber="${this.pageTotalNumber}"
300
- ></dedocument-letterheader>
301
- `:W``}
302
- <dedocument-pagecontent
303
- .pageNumber="${this.pageNumber}"
304
- .pageTotalNumber="${this.pageTotalNumber}"
305
- .letterData=${this.letterData}
306
- ><slot></slot
307
- ></dedocument-pagecontent>
308
- <dedocument-pagefooter
309
- .letterData=${this.letterData}
310
- .pageNumber="${this.pageNumber}"
311
- .pageTotalNumber="${this.pageTotalNumber}"
312
- ></dedocument-pagefooter>
313
- <div class="versionOverlay">
314
- ${this.letterData.versionInfo.type==="draft"?W`
315
- <div class="topInfo">
316
- Please note: THIS IS A DRAFT ONLY. NO RIGHTS CAN BE DERIVED FROM THIS.<br>
317
- -> Revision/Document version: ${this.letterData.versionInfo.version}
288
+ `],W([J({type:Object,reflect:!0})],Dr.prototype,"letterData",2),Dr=W([Ae("dedocument-contentinvoice")],Dr);var Le=class extends me{constructor(){super();this.viewWidth=null;this.viewHeight=null;this.format="a4";this.pageNumber=1;this.pageTotalNumber=1;this.letterData=null;this.printMode=!1;he.setupDomTools()}render(){return k`
289
+ <div id="scaleWrapper">
290
+ <dedocument-pagecontainer .printMode=${this.printMode}>
291
+ ${this.letterData?k`
292
+ <dedocument-pageheader
293
+ .letterData=${this.letterData}
294
+ .pageNumber="${this.pageNumber}"
295
+ .pageTotalNumber="${this.pageTotalNumber}"
296
+ ></dedocument-pageheader>
297
+ ${this.pageNumber===1?k`
298
+ <dedocument-letterheader
299
+ .pageNumber="${this.pageNumber}"
300
+ .letterData=${this.letterData}
301
+ .pageTotalNumber="${this.pageTotalNumber}"
302
+ ></dedocument-letterheader>
303
+ `:k``}
304
+ <dedocument-pagecontent
305
+ .pageNumber="${this.pageNumber}"
306
+ .pageTotalNumber="${this.pageTotalNumber}"
307
+ .letterData=${this.letterData}
308
+ ><slot></slot
309
+ ></dedocument-pagecontent>
310
+ <dedocument-pagefooter
311
+ .letterData=${this.letterData}
312
+ .pageNumber="${this.pageNumber}"
313
+ .pageTotalNumber="${this.pageTotalNumber}"
314
+ ></dedocument-pagefooter>
315
+ <div class="versionOverlay">
316
+ ${this.letterData.versionInfo.type==="draft"?k`
317
+ <div class="topInfo">
318
+ Please note: THIS IS A DRAFT ONLY. NO RIGHTS CAN BE DERIVED FROM THIS.<br />
319
+ -> Revision/Document version: ${this.letterData.versionInfo.version}
320
+ </div>
321
+ <div class="bigDraftText">DRAFT</div>
322
+ `:k``}
318
323
  </div>
319
- <div class="bigDraftText">DRAFT</div>
320
- `:W``}
321
- </div>
322
- </dedocument-pagecontainer>
323
- `}async checkOverflow(){return await this.elementDomReady,this.shadowRoot.querySelector("dedocument-pagecontent").checkOverflow()}};ze.demo=()=>W` <dedocument-page .format="${"a4"}"></dedocument-page> `,ze.styles=[Ce.staticStyles,ae`
324
+ `:k`
325
+ <slot></slot>
326
+ `}
327
+ </dedocument-pagecontainer>
328
+ </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/Fn:this.viewWidth&&(n=this.viewWidth/Ho),console.log(`new scale is ${n}`),r.style.transform=`scale(${n})`,this.style.height=`${Fn*n}px`}};Le.demo=()=>k` <dedocument-page .format="${"a4"}"></dedocument-page> `,Le.styles=[Ce.staticStyles,te`
324
330
  :host {
331
+ display: block;
332
+ max-height: ${Fn}px;
333
+ max-width: ${Ho}px;
325
334
  }
335
+
336
+ #scaleWrapper {
337
+ transform-origin: top left;
338
+ }
339
+
326
340
  .versionOverlay {
327
341
  pointer-events: none;
328
342
  position: absolute;
@@ -352,17 +366,11 @@ EPC QR Code`,o=>{o&&console.error(o),console.log("success!")}),r.currentContent.
352
366
  font-size: 200px;
353
367
  opacity: 0.05;
354
368
  }
355
- `],V([Q({type:String})],ze.prototype,"format",2),V([Q({type:Number})],ze.prototype,"pageNumber",2),V([Q({type:Number})],ze.prototype,"pageTotalNumber",2),V([Q({type:Object})],ze.prototype,"letterData",2),V([Q({type:Boolean,reflect:!0})],ze.prototype,"printMode",2),ze=V([De("dedocument-page")],ze);var at=class extends ve{constructor(){super();this.format="a4";this.viewWidth=Rn;this.printMode=!1;Ne.DomTools.setupDomTools()}render(){return W`
356
- <style>
357
- :host {
358
- transform-origin: top left;
359
- transform: ${this.viewWidth?H(`scale(${this.viewWidth/Rn}, ${this.viewWidth/Rn})`):H("")};
360
- }
361
- </style>
362
- <div class="scaleport"></div>
363
- `}async firstUpdated(r){if(this.letterDataUrl){let n=await fetch(this.letterDataUrl);this.letterData=await n.json()}this.renderDocument()}async renderDocument(){let r=await this.domtoolsPromise,n=this.shadowRoot.querySelector(".scaleport"),o=[],i=0,s=!1,a=document.createElement("dedocument-contentinvoice");a.letterData=this.letterData,document.body.appendChild(a),await r.convenience.smartdelay.delayFor(0);let u=0,l,c;for(;!s;){i++;let p=a.cloneNode(!0),h=new ze;if(h.printMode=this.printMode,h.letterData=this.letterData,o.push(h),h.pageNumber=i,h.append(p),h.pageTotalNumber=i,n.append(h),!this.printMode){let w=document.createElement("div");w.classList.add("betweenPagesSpacer"),n.append(w)}await p.elementDomReady,await p.trimStartToOffset(u);let y=await h.checkOverflow();for(c=0;y;)await p.trimEndByOne(),c++,y=await h.checkOverflow();l=await p.getContentLength(),u=u+l,c===0&&(s=!0),console.log(l)}document.body.removeChild(a);for(let p of o)p.pageTotalNumber=i}};at.demo=()=>W`
364
- <dedocument-dedocument .format="${"a4"}" .letterData=${Dn}></dedocument-dedocument>
365
- `,at.styles=[Ne.elementBasic.staticStyles,ae`
369
+ `],W([J()],Le.prototype,"viewWidth",2),W([J()],Le.prototype,"viewHeight",2),W([J({type:String})],Le.prototype,"format",2),W([J({type:Number})],Le.prototype,"pageNumber",2),W([J({type:Number})],Le.prototype,"pageTotalNumber",2),W([J({type:Object})],Le.prototype,"letterData",2),W([J({type:Boolean,reflect:!0})],Le.prototype,"printMode",2),Le=W([Ae("dedocument-page")],Le);var cy=()=>k`
370
+ <dedocument-dedocument .format="${"a4"}" .letterData=${Rn}></dedocument-dedocument>
371
+ `;var tt=class extends me{constructor(){super();this.format="a4";this.viewWidth=null;this.viewHeight=null;this.printMode=!1;Oe.DomTools.setupDomTools()}render(){return k`
372
+ <div class="documentContainer"></div>
373
+ `}async firstUpdated(r){let n=new ResizeObserver(o=>{for(let i of o){let s=i.contentRect.width,a=i.contentRect.height;this.adjustDePageScaling()}});if(n.observe(this),this.registerGarbageFunction(()=>{n.disconnect()}),this.letterDataUrl){let o=await fetch(this.letterDataUrl);this.letterData=await o.json()}this.renderDocument()}async renderDocument(){let r=await this.domtoolsPromise,n=this.shadowRoot.querySelector(".documentContainer"),o=[],i=0,s=!1,a=document.createElement("dedocument-contentinvoice");a.letterData=this.letterData,document.body.appendChild(a),await r.convenience.smartdelay.delayFor(0);let u=0,c,l;for(;!s;){i++;let f=a.cloneNode(!0),h=new Le;if(h.printMode=this.printMode,h.letterData=this.letterData,o.push(h),h.pageNumber=i,h.append(f),h.pageTotalNumber=i,n.append(h),!this.printMode){let w=document.createElement("div");w.classList.add("betweenPagesSpacer"),n.append(w)}await f.elementDomReady,await f.trimStartToOffset(u);let y=await h.checkOverflow();for(l=0;y;)await f.trimEndByOne(),l++,y=await h.checkOverflow();c=await f.getContentLength(),u=u+c,l===0&&(s=!0),console.log(c)}document.body.removeChild(a);for(let f of o)f.pageTotalNumber=i;this.adjustDePageScaling()}updated(r){super.updated(r),(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))})}};tt.demo=cy,tt.styles=[Oe.elementBasic.staticStyles,te`
366
374
  :host {
367
375
  display: block;
368
376
  color: #333;
@@ -371,9 +379,9 @@ EPC QR Code`,o=>{o&&console.error(o),console.log("success!")}),r.currentContent.
371
379
  }
372
380
 
373
381
  .betweenPagesSpacer {
374
- height: 20px;
382
+ height: 16px;
375
383
  }
376
- `],V([Q({type:String})],at.prototype,"format",2),V([Q({type:Number})],at.prototype,"viewWidth",2),V([Q({type:Boolean})],at.prototype,"printMode",2),V([Q({type:Object,reflect:!0,converter:t=>typeof t=="string"?me.parseBase64(t):t})],at.prototype,"letterData",2),V([Q({type:String})],at.prototype,"letterDataUrl",2),at=V([De("dedocument-dedocument")],at);var Bt=class extends ve{constructor(){super();this.pageNumber=1;this.pageTotalNumber=1;pe.setupDomTools()}render(){return W`
384
+ `],W([J({type:String})],tt.prototype,"format",2),W([J({type:Number})],tt.prototype,"viewWidth",2),W([J({type:Number})],tt.prototype,"viewHeight",2),W([J({type:Boolean})],tt.prototype,"printMode",2),W([J({type:Object,reflect:!0,converter:r=>typeof r=="string"?ye.parseBase64(r):r})],tt.prototype,"letterData",2),W([J({type:String})],tt.prototype,"letterDataUrl",2),tt=W([Ae("dedocument-dedocument")],tt);var Ot=class extends me{constructor(){super();this.pageNumber=1;this.pageTotalNumber=1;he.setupDomTools()}render(){return k`
377
385
  <div class="date">
378
386
  ${new Date(this.letterData.date).getDate()}. ${new Date(this.letterData.date).toLocaleString("default",{month:"long"})}
379
387
  ${new Date(this.letterData.date).getFullYear()}
@@ -398,9 +406,9 @@ EPC QR Code`,o=>{o&&console.error(o),console.log("success!")}),r.currentContent.
398
406
  <div class="label">your vat id on file:</div>
399
407
  ${this.letterData.to.vatId||"not provided"}
400
408
  </div>
401
- `}};Bt.demo=()=>W`
402
- <dedocument-letterheader .format="${"a4"}" .letterData=${Dn}></dedocument-letterheader>
403
- `,Bt.styles=[Ce.staticStyles,ae`
409
+ `}};Ot.demo=()=>k`
410
+ <dedocument-letterheader .format="${"a4"}" .letterData=${Rn}></dedocument-letterheader>
411
+ `,Ot.styles=[Ce.staticStyles,te`
404
412
  :host {
405
413
  color: #333;
406
414
  }
@@ -410,7 +418,7 @@ EPC QR Code`,o=>{o&&console.error(o),console.log("success!")}),r.currentContent.
410
418
  display: block;
411
419
  overflow: hidden;
412
420
  top: 200px;
413
- right: ${H(Ke+"px")};
421
+ right: ${V(et+"px")};
414
422
  width: 200px;
415
423
  text-align: right;
416
424
  }
@@ -424,14 +432,14 @@ EPC QR Code`,o=>{o&&console.error(o),console.log("success!")}),r.currentContent.
424
432
  .date {
425
433
  position: absolute;
426
434
  top: 180px;
427
- right: ${H(Ke+"px")};
435
+ right: ${V(et+"px")};
428
436
  text-align: right;
429
437
  }
430
438
 
431
439
  .address {
432
440
  position: absolute;
433
441
  top: 180px;
434
- left: ${H(Fn+"px")};
442
+ left: ${V(Un+"px")};
435
443
  }
436
444
 
437
445
  .address .from {
@@ -441,45 +449,45 @@ EPC QR Code`,o=>{o&&console.error(o),console.log("success!")}),r.currentContent.
441
449
  .address .to {
442
450
  margin-top: 10px;
443
451
  }
444
- `],V([Q({type:Object,reflect:!0})],Bt.prototype,"letterData",2),V([Q({type:Number,reflect:!0})],Bt.prototype,"pageNumber",2),V([Q({type:Number,reflect:!0})],Bt.prototype,"pageTotalNumber",2),Bt=V([De("dedocument-letterheader")],Bt);var er=class extends ve{constructor(){super();this.format="a4";this.printMode=!1;pe.setupDomTools()}render(){return W`
452
+ `],W([J({type:Object,reflect:!0})],Ot.prototype,"letterData",2),W([J({type:Number,reflect:!0})],Ot.prototype,"pageNumber",2),W([J({type:Number,reflect:!0})],Ot.prototype,"pageTotalNumber",2),Ot=W([Ae("dedocument-letterheader")],Ot);var nr=class extends me{constructor(){super();this.format="a4";this.printMode=!1;he.setupDomTools()}render(){return k`
445
453
  <style>
446
454
  :host {
447
455
  box-shadow: ${this.printMode?"none":"0px 0px 10px rgba(0,0,0,0.3)"};
448
456
  }
449
457
  </style>
450
458
  <slot></slot>
451
- `}};er.demo=()=>W`
459
+ `}};nr.demo=()=>k`
452
460
  <dedocument-pagecontainer .format="${"a4"}"></dedocument-pagecontainer>
453
- `,er.styles=[Ce.staticStyles,ae`
461
+ `,nr.styles=[Ce.staticStyles,te`
454
462
  :host {
455
463
  display: block;
456
464
  background: white;
457
465
  color: #333;
458
466
  padding: 0px;
459
- width: ${H(Rn+"px")};
460
- height: ${H(Gg+"px")};
467
+ width: ${V(Ho+"px")};
468
+ height: ${V(Fn+"px")};
461
469
  position: relative;
462
470
  border-radius: 3px;
463
471
  overflow: hidden;
464
472
  }
465
- `],V([Q({type:String})],er.prototype,"format",2),V([Q({type:Boolean})],er.prototype,"printMode",2),er=V([De("dedocument-pagecontainer")],er);var Ot=class extends ve{constructor(){super();this.pageNumber=1;this.pageTotalNumber=1;pe.setupDomTools()}render(){return W`
473
+ `],W([J({type:String})],nr.prototype,"format",2),W([J({type:Boolean})],nr.prototype,"printMode",2),nr=W([Ae("dedocument-pagecontainer")],nr);var Dt=class extends me{constructor(){super();this.pageNumber=1;this.pageTotalNumber=1;he.setupDomTools()}render(){return k`
466
474
  <style>
467
475
  .content {
468
- top: ${this.pageNumber===1?H("450px"):H("200px")};
476
+ top: ${this.pageNumber===1?V("450px"):V("200px")};
469
477
  }
470
478
  </style>
471
479
  <div class="content">
472
- ${this.pageNumber===1?W`<div class="subject">${this.letterData.subject}</div>`:W`
480
+ ${this.pageNumber===1?k`<div class="subject">${this.letterData.subject}</div>`:k`
473
481
  <div class="subjectRepeated">
474
482
  ${this.letterData.subject} (Page ${this.pageNumber})
475
483
  </div>
476
484
  `}
477
485
  <slot></slot>
478
- ${this.pageTotalNumber!==this.pageNumber?W`<div class="continuesOnNextPage">Continues on page ${this.pageNumber+1}</div>`:W`<div class="finalPage">This is the final page of this document.</div>`}
486
+ ${this.pageTotalNumber!==this.pageNumber?k`<div class="continuesOnNextPage">Continues on page ${this.pageNumber+1}</div>`:k`<div class="finalPage">This is the final page of this document.</div>`}
479
487
  </div>
480
- `}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)}};Ot.demo=()=>W`
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)}};Dt.demo=()=>k`
481
489
  <dedocument-pagecontent .format="${"a4"}"></dedocument-pagecontent>
482
- `,Ot.styles=[Ce.staticStyles,ae`
490
+ `,Dt.styles=[Ce.staticStyles,te`
483
491
  :host {
484
492
  color: #333;
485
493
  }
@@ -487,8 +495,8 @@ EPC QR Code`,o=>{o&&console.error(o),console.log("success!")}),r.currentContent.
487
495
  .content {
488
496
  position: absolute;
489
497
 
490
- left: ${H(Fn+"px")};
491
- right: ${H(Ke+"px")};
498
+ left: ${V(Un+"px")};
499
+ right: ${V(et+"px")};
492
500
  bottom: 170px;
493
501
  overflow: visible;
494
502
  }
@@ -534,7 +542,7 @@ EPC QR Code`,o=>{o&&console.error(o),console.log("success!")}),r.currentContent.
534
542
  margin-top: 8px;
535
543
  font-size: 10px;
536
544
  }
537
- `],V([Q({type:Number})],Ot.prototype,"letterData",2),V([Q({type:Number})],Ot.prototype,"pageNumber",2),V([Q({type:Number})],Ot.prototype,"pageTotalNumber",2),Ot=V([De("dedocument-pagecontent")],Ot);var Dt=class extends ve{constructor(){super();this.pageNumber=1;this.pageTotalNumber=1;pe.setupDomTools()}render(){return W`
545
+ `],W([J({type:Number})],Dt.prototype,"letterData",2),W([J({type:Number})],Dt.prototype,"pageNumber",2),W([J({type:Number})],Dt.prototype,"pageTotalNumber",2),Dt=W([Ae("dedocument-pagecontent")],Dt);var Bt=class extends me{constructor(){super();this.pageNumber=1;this.pageTotalNumber=1;he.setupDomTools()}render(){return k`
538
546
  <div class="bottomstripe">
539
547
  <div>
540
548
  <strong>Address:</strong><br />
@@ -562,12 +570,12 @@ EPC QR Code`,o=>{o&&console.error(o),console.log("success!")}),r.currentContent.
562
570
  <i>iban:</i> ${this.letterData?.from?.sepaConnection?.iban}<br />
563
571
  <i>bic:</i> ${this.letterData?.from?.sepaConnection?.bic}<br />
564
572
  </div>
565
- <div class="documentTitle">Subject: <b>${this.letterData?.subject}</b>${(()=>{let r=W`/ Document-UID: <b>${W`<a href="https://uid.signature.digital/">https://uid.signature.digital/</a>`}</b>`;return""})()}</div>
573
+ <div class="documentTitle">Subject: <b>${this.letterData?.subject}</b>${(()=>{let r=k`/ Document-UID: <b>${k`<a href="https://uid.signature.digital/">https://uid.signature.digital/</a>`}</b>`;return""})()}</div>
566
574
  <div class="pageNumber">page ${this.pageNumber} of ${this.pageTotalNumber}</div>
567
575
  </div>
568
- `}};Dt.demo=()=>W`
576
+ `}};Bt.demo=()=>k`
569
577
  <dedocument-pagefooter .format="${"a4"}"></dedocument-pagefooter>
570
- `,Dt.styles=[Ce.staticStyles,ae`
578
+ `,Bt.styles=[Ce.staticStyles,te`
571
579
  :host {
572
580
  color: #333;
573
581
  }
@@ -581,7 +589,7 @@ EPC QR Code`,o=>{o&&console.error(o),console.log("success!")}),r.currentContent.
581
589
  right: 0px;
582
590
  height: 130px;
583
591
  content: '';
584
- padding: 30px ${H(Ke+"px")} 10px ${H(Fn+"px")};
592
+ padding: 30px ${V(et+"px")} 10px ${V(Un+"px")};
585
593
  grid-template-columns: calc(100% / 4) calc(100% / 4) calc(100% / 4) calc(100% / 4);
586
594
  grid-gap: 5px;
587
595
  border-top: 2px solid #e4002b;
@@ -590,7 +598,7 @@ EPC QR Code`,o=>{o&&console.error(o),console.log("success!")}),r.currentContent.
590
598
  .bottomstripe .pageNumber {
591
599
  position: absolute;
592
600
  top: 0px;
593
- right: ${H(Ke+"px")};
601
+ right: ${V(et+"px")};
594
602
  background: #e4002b;
595
603
  padding: 3px;
596
604
  font-size: 9px;
@@ -601,7 +609,7 @@ EPC QR Code`,o=>{o&&console.error(o),console.log("success!")}),r.currentContent.
601
609
  .bottomstripe .documentTitle {
602
610
  position: absolute;
603
611
  top: -18px;
604
- right: ${H(Ke+"px")};
612
+ right: ${V(et+"px")};
605
613
  background: #dddddd;
606
614
  padding: 3px;
607
615
  font-size: 9px;
@@ -609,14 +617,14 @@ EPC QR Code`,o=>{o&&console.error(o),console.log("success!")}),r.currentContent.
609
617
  border-top-left-radius: 3px;
610
618
  border-top-right-radius: 3px;
611
619
  }
612
- `],V([Q({type:Object})],Dt.prototype,"letterData",2),V([Q({type:Number})],Dt.prototype,"pageNumber",2),V([Q({type:Number})],Dt.prototype,"pageTotalNumber",2),Dt=V([De("dedocument-pagefooter")],Dt);var Rt=class extends ve{constructor(){super();this.letterData=null;this.pageNumber=1;this.pageTotalNumber=1;pe.setupDomTools()}render(){return W`
620
+ `],W([J({type:Object})],Bt.prototype,"letterData",2),W([J({type:Number})],Bt.prototype,"pageNumber",2),W([J({type:Number})],Bt.prototype,"pageTotalNumber",2),Bt=W([Ae("dedocument-pagefooter")],Bt);var Rt=class extends me{constructor(){super();this.letterData=null;this.pageNumber=1;this.pageTotalNumber=1;he.setupDomTools()}render(){return k`
613
621
  <div class="topstripe">
614
622
  <img src="https://assetbroker.lossless.one/brandfiles/lossless/svg-minimal-bright.svg" />
615
623
  </div>
616
624
  <div class="topstripe2">${this.letterData?.from?.description||"[no letterData.from.description set]"}</div>
617
- `}};Rt.demo=()=>W`
625
+ `}};Rt.demo=()=>k`
618
626
  <dedocument-pageheader .format="${"a4"}"></dedocument-pageheader>
619
- `,Rt.styles=[Ce.staticStyles,ae`
627
+ `,Rt.styles=[Ce.staticStyles,te`
620
628
  :host {
621
629
  color: #333;
622
630
  }
@@ -637,7 +645,7 @@ EPC QR Code`,o=>{o&&console.error(o),console.log("success!")}),r.currentContent.
637
645
  overflow: hidden;
638
646
  top: 130px;
639
647
  left: auto;
640
- right: ${H(Ke+"px")};
648
+ right: ${V(et+"px")};
641
649
  height: 20px;
642
650
  line-height: 20px;
643
651
  color: #333;
@@ -649,9 +657,58 @@ EPC QR Code`,o=>{o&&console.error(o),console.log("success!")}),r.currentContent.
649
657
  bottom: 10px;
650
658
  height: 25px;
651
659
  left: auto;
652
- right: ${H(Ke+"px")};
660
+ right: ${V(et+"px")};
661
+ }
662
+ `],W([J({type:Object})],Rt.prototype,"letterData",2),W([J({type:Number})],Rt.prototype,"pageNumber",2),W([J({type:Number})],Rt.prototype,"pageTotalNumber",2),Rt=W([Ae("dedocument-pageheader")],Rt);var ly=()=>k`
663
+ <dedocument-viewer .letterData=${Rn}></dedocument-viewer>
664
+ `;var Ln=class extends me{constructor(){super(...arguments);this.letterData=null;this.render=()=>k`
665
+ <div class="maincontainer">
666
+ <div class="viewport">
667
+ ${this.letterData?k` <dedocument-dedocument .letterData=${this.letterData}></dedocument-dedocument> `:k``}
668
+ </div>
669
+ <div class="controls"></div>
670
+ </div>
671
+ `;this.updated=r=>{super.updated(r),r.has("letterData")}}};Ln.demo=ly,Ln.styles=[Ds.defaultStyles,te`
672
+ .maincontainer {
673
+ position: relative;
674
+ height: 100%;
675
+ width: 100%;
676
+ background: ${Ds.bdTheme("#eeeeeb","#111")};
677
+ }
678
+ .controls {
679
+ top: 0px;
680
+ right: 0px;
681
+ left: 0px;
682
+ position: absolute;
683
+ height: 32px;
684
+ width: 100%;
685
+ background: ${Ds.bdTheme("#eeeeeb","#111111ee")};
686
+ box-shadow: 0px 2px 8px 0px #000000;
687
+ }
688
+ .controlsShadow {
689
+ position: absolute;
690
+ top: 32px;
691
+ right: 0px;
692
+ left: 0px;
693
+ height: 16px;
694
+ width: 100%;
695
+ position: absolute;
696
+ background: linear-gradient(to bottom, #111111cc 0%, #11111100 100%);
697
+ }
698
+
699
+ .viewport {
700
+ position: absolute;
701
+ padding: 16px;
702
+ padding-top: 48px;
703
+ padding-bottom: 0px;
704
+ top: 0px;
705
+ left: 0px;
706
+ right: 0px;
707
+ bottom: 0px;
708
+ overflow-y: scroll;
709
+ overscroll-behavior: contain;
653
710
  }
654
- `],V([Q({type:Object})],Rt.prototype,"letterData",2),V([Q({type:Number})],Rt.prototype,"pageNumber",2),V([Q({type:Number})],Rt.prototype,"pageTotalNumber",2),Rt=V([De("dedocument-pageheader")],Rt);export{Or as DeContentInvoice,at as DeDocument,Bt as DeLetterHeader,ze as DePage,er as DePageContainer,Ot as DePageContent,Dt as DePageFooter,Rt as DePageHeader,Gg as a4Height,Rn as a4Width,Dn as demoLetter,Fn as leftMargin,Ke as rightMargin};
711
+ `],Ln=W([Ae("dedocument-viewer")],Ln);export{Dr as DeContentInvoice,tt as DeDocument,Ln as DeDocumentViewer,Ot as DeLetterHeader,Le as DePage,nr as DePageContainer,Dt as DePageContent,Bt as DePageFooter,Rt as DePageHeader,Fn as a4Height,Ho as a4Width,Rn as demoLetter,Un as leftMargin,et as rightMargin};
655
712
  /*! Bundled license information:
656
713
 
657
714
  ieee754/index.js:
@@ -771,14 +828,14 @@ lit-html/directives/unsafe-html.js:
771
828
  * SPDX-License-Identifier: BSD-3-Clause
772
829
  *)
773
830
 
774
- @lit/reactive-element/decorators/base.js:
831
+ @lit/reactive-element/decorators/event-options.js:
775
832
  (**
776
833
  * @license
777
834
  * Copyright 2017 Google LLC
778
835
  * SPDX-License-Identifier: BSD-3-Clause
779
836
  *)
780
837
 
781
- @lit/reactive-element/decorators/event-options.js:
838
+ @lit/reactive-element/decorators/base.js:
782
839
  (**
783
840
  * @license
784
841
  * Copyright 2017 Google LLC