@design.estate/dees-document 1.0.94 → 1.0.96
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist_bundle/bundle.js +184 -131
- package/dist_bundle/bundle.js.map +4 -4
- package/dist_ts/00_commitinfo_data.js +1 -1
- package/dist_ts_web/00_commitinfo_data.js +1 -1
- package/dist_ts_web/elements/document.d.ts +3 -0
- package/dist_ts_web/elements/document.demo.d.ts +1 -0
- package/dist_ts_web/elements/document.demo.js +6 -0
- package/dist_ts_web/elements/document.js +53 -18
- package/dist_ts_web/elements/index.d.ts +1 -0
- package/dist_ts_web/elements/index.js +2 -1
- package/dist_ts_web/elements/page.d.ts +4 -0
- package/dist_ts_web/elements/page.js +79 -35
- package/dist_ts_web/elements/viewer.d.ts +14 -0
- package/dist_ts_web/elements/viewer.demo.d.ts +1 -0
- package/dist_ts_web/elements/viewer.demo.js +6 -0
- package/dist_ts_web/elements/viewer.js +83 -0
- package/dist_ts_web/pages/page1.js +1 -1
- package/dist_watch/bundle.js +3446 -2449
- package/dist_watch/bundle.js.map +4 -4
- package/package.json +5 -5
- package/ts/00_commitinfo_data.ts +1 -1
- package/ts_web/00_commitinfo_data.ts +1 -1
- package/ts_web/elements/document.demo.ts +6 -0
- package/ts_web/elements/document.ts +55 -19
- package/ts_web/elements/index.ts +1 -0
- package/ts_web/elements/page.ts +79 -35
- package/ts_web/elements/viewer.demo.ts +6 -0
- package/ts_web/elements/viewer.ts +83 -0
- package/ts_web/pages/page1.ts +1 -1
package/dist_bundle/bundle.js
CHANGED
|
@@ -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,""")}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
|
|
1
|
+
var cy=Object.create;var Vo=Object.defineProperty;var al=Object.getOwnPropertyDescriptor;var ly=Object.getOwnPropertyNames;var fy=Object.getPrototypeOf,py=Object.prototype.hasOwnProperty;var C=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),X=(t,e)=>{for(var r in e)Vo(t,r,{get:e[r],enumerable:!0})},hy=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of ly(e))!py.call(t,o)&&o!==r&&Vo(t,o,{get:()=>e[o],enumerable:!(n=al(e,o))||n.enumerable});return t};var De=(t,e,r)=>(r=t!=null?cy(fy(t)):{},hy(e||!t||!t.__esModule?Vo(r,"default",{value:t,enumerable:!0}):r,t));var W=(t,e,r,n)=>{for(var o=n>1?void 0:n?al(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&&Vo(e,r,o),o};var ii=C(oi=>{"use strict";Object.defineProperty(oi,"__esModule",{value:!0});oi.uni=void 0;var _y=(t="uni")=>`${t}_${"xxxxxxxxxxxxxxxxxxxxxxxx".replace(/[xy]/g,e=>{let r=Math.random()*16|0;return(e==="x"?r:r&3|8).toString(16)})}`;oi.uni=_y});var cf=C((ba,va)=>{(function(t,e){typeof ba=="object"&&typeof va<"u"?va.exports=e():typeof define=="function"&&define.amd?define(e):(t=typeof globalThis<"u"?globalThis:t||self).dayjs=e()})(ba,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,Se=(H<pe?H+7:H)-pe;return M(j?K-Se:K+(6-Se),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)},Se=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 Se(1);case"hh":return Se(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()},$}(),we=re.prototype;return F.prototype=we,[["$ms",n],["$s",o],["$m",i],["$H",s],["$W",a],["$M",c],["$y",f],["$D",h]].forEach(function($){we[$[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 lf=C((wa,Sa)=>{(function(t,e){typeof wa=="object"&&typeof Sa<"u"?Sa.exports=e():typeof define=="function"&&define.amd?define(e):(t=typeof globalThis<"u"?globalThis:t||self).dayjs_plugin_isToday=e()})(wa,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 hf=C((Z2,pf)=>{"use strict";pf.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 mf=C((X2,df)=>{"use strict";df.exports=Object.freeze({DISCONNECTED:1,PRECEDING:2,FOLLOWING:4,CONTAINS:8,CONTAINED_BY:16})});var vf=C((K2,bf)=>{"use strict";var gf=Symbol(),yf=Symbol(),kt=Symbol(),xf=Symbol(),st=class{constructor(e,r,n,o){this[gf]=e,this[yf]=r,this[kt]=n,this[xf]=o}next(){let e=this[gf],r=this[xf],n=this[yf];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);bf.exports=st});var Sf=C((eM,wf)=>{"use strict";var y0=hf(),jt=mf(),Je=vf();function $a(){return!0}function zr(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 y0)}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 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||$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 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=zr(n,0);if(!i||i!==zr(o,0))return jt.DISCONNECTED;let s=0,a=Math.min(n.length,o.length);for(let l=0;l<a;++l){let f=zr(n,l),h=zr(o,l);if(f!==h)break;s=l}let u=this.index(zr(n,s+1));return this.index(zr(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}};wf.exports=Di;Di.TreePosition=jt});var Cf=C(Bi=>{"use strict";Bi.byteLength=v0;Bi.toByteArray=S0;Bi.fromByteArray=_0;var lt=[],Ye=[],b0=typeof Uint8Array<"u"?Uint8Array:Array,La="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(xr=0,Tf=La.length;xr<Tf;++xr)lt[xr]=La[xr],Ye[La.charCodeAt(xr)]=xr;var xr,Tf;Ye["-".charCodeAt(0)]=62;Ye["_".charCodeAt(0)]=63;function _f(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 v0(t){var e=_f(t),r=e[0],n=e[1];return(r+n)*3/4-n}function w0(t,e,r){return(e+r)*3/4-r}function S0(t){var e,r=_f(t),n=r[0],o=r[1],i=new b0(w0(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 E0(t){return lt[t>>18&63]+lt[t>>12&63]+lt[t>>6&63]+lt[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 _0(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(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 Af=C(ka=>{ka.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)};ka.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 Hf=C(Qr=>{"use strict";var ja=Cf(),Jr=Af(),If=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;Qr.Buffer=x;Qr.SlowBuffer=$0;Qr.INSPECT_MAX_BYTES=50;var Ri=2147483647;Qr.kMaxLength=Ri;x.TYPED_ARRAY_SUPPORT=C0();!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 C0(){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 za(t)}return Nf(t,e,r)}x.poolSize=8192;function Nf(t,e,r){if(typeof t=="string")return I0(t,e);if(ArrayBuffer.isView(t))return M0(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 Wa(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=P0(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 Nf(t,e,r)};Object.setPrototypeOf(x.prototype,Uint8Array.prototype);Object.setPrototypeOf(x,Uint8Array);function Of(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 A0(t,e,r){return Of(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 A0(t,e,r)};function za(t){return Of(t),_t(t<0?0:Va(t)|0)}x.allocUnsafe=function(t){return za(t)};x.allocUnsafeSlow=function(t){return za(t)};function I0(t,e){if((typeof e!="string"||e==="")&&(e="utf8"),!x.isEncoding(e))throw new TypeError("Unknown encoding: "+e);let r=Df(t,e)|0,n=_t(r),o=n.write(t,e);return o!==r&&(n=n.slice(0,o)),n}function qa(t){let e=t.length<0?0:Va(t.length)|0,r=_t(e);for(let n=0;n<e;n+=1)r[n]=t[n]&255;return r}function M0(t){if(ft(t,Uint8Array)){let e=new Uint8Array(t);return Wa(e.buffer,e.byteOffset,e.byteLength)}return qa(t)}function Wa(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 P0(t){if(x.isBuffer(t)){let e=Va(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"||Ja(t.length)?_t(0):qa(t);if(t.type==="Buffer"&&Array.isArray(t.data))return qa(t.data)}function Va(t){if(t>=Ri)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+Ri.toString(16)+" bytes");return t|0}function $0(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 Df(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 Ha(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return r*2;case"hex":return r>>>1;case"base64":return Wf(t).length;default:if(o)return n?-1:Ha(t).length;e=(""+e).toLowerCase(),o=!0}}x.byteLength=Df;function N0(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 q0(this,e,r);case"utf8":case"utf-8":return Rf(this,e,r);case"ascii":return k0(this,e,r);case"latin1":case"binary":return j0(this,e,r);case"base64":return U0(this,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return W0(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?Rf(this,0,e):N0.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=Qr.INSPECT_MAX_BYTES;return e=this.toString("hex",0,r).replace(/(.{2})/g,"$1 ").trim(),this.length>r&&(e+=" ... "),"<Buffer "+e+">"};If&&(x.prototype[If]=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 Bf(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,Ja(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:Mf(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):Mf(t,[e],r,n,o);throw new TypeError("val must be string, number or Buffer")}function Mf(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 Bf(this,e,r,n,!0)};x.prototype.lastIndexOf=function(e,r,n){return Bf(this,e,r,n,!1)};function O0(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(Ja(a))return s;t[r+s]=a}return s}function D0(t,e,r,n){return Fi(Ha(e,t.length-r),t,r,n)}function B0(t,e,r,n){return Fi(G0(e),t,r,n)}function R0(t,e,r,n){return Fi(Wf(e),t,r,n)}function F0(t,e,r,n){return Fi(J0(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 O0(this,e,r,n);case"utf8":case"utf-8":return D0(this,e,r,n);case"ascii":case"latin1":case"binary":return B0(this,e,r,n);case"base64":return R0(this,e,r,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return F0(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 U0(t,e,r){return e===0&&r===t.length?ja.fromByteArray(t):ja.fromByteArray(t.slice(e,r))}function Rf(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 L0(n)}var Pf=4096;function L0(t){let e=t.length;if(e<=Pf)return String.fromCharCode.apply(String,t);let r="",n=0;for(;n<e;)r+=String.fromCharCode.apply(String,t.slice(n,n+=Pf));return r}function k0(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 j0(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 q0(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+=Y0[t[i]];return o}function W0(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=qt(function(e){e=e>>>0,Yr(e,"offset");let r=this[e],n=this[e+7];(r===void 0||n===void 0)&&uo(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,Yr(e,"offset");let r=this[e],n=this[e+7];(r===void 0||n===void 0)&&uo(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=qt(function(e){e=e>>>0,Yr(e,"offset");let r=this[e],n=this[e+7];(r===void 0||n===void 0)&&uo(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,Yr(e,"offset");let r=this[e],n=this[e+7];(r===void 0||n===void 0)&&uo(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),Jr.read(this,e,!0,23,4)};x.prototype.readFloatBE=function(e,r){return e=e>>>0,r||Pe(e,4,this.length),Jr.read(this,e,!1,23,4)};x.prototype.readDoubleLE=function(e,r){return e=e>>>0,r||Pe(e,8,this.length),Jr.read(this,e,!0,52,8)};x.prototype.readDoubleBE=function(e,r){return e=e>>>0,r||Pe(e,8,this.length),Jr.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 Ff(t,e,r,n,o){qf(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 Uf(t,e,r,n,o){qf(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 Ff(this,e,r,BigInt(0),BigInt("0xffffffffffffffff"))});x.prototype.writeBigUInt64BE=qt(function(e,r=0){return Uf(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=qt(function(e,r=0){return Ff(this,e,r,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});x.prototype.writeBigInt64BE=qt(function(e,r=0){return Uf(this,e,r,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function Lf(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 kf(t,e,r,n,o){return e=+e,r=r>>>0,o||Lf(t,e,r,4,34028234663852886e22,-34028234663852886e22),Jr.write(t,e,r,n,23,4),r+4}x.prototype.writeFloatLE=function(e,r,n){return kf(this,e,r,!0,n)};x.prototype.writeFloatBE=function(e,r,n){return kf(this,e,r,!1,n)};function jf(t,e,r,n,o){return e=+e,r=r>>>0,o||Lf(t,e,r,8,17976931348623157e292,-17976931348623157e292),Jr.write(t,e,r,n,52,8),r+8}x.prototype.writeDoubleLE=function(e,r,n){return jf(this,e,r,!0,n)};x.prototype.writeDoubleBE=function(e,r,n){return jf(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 Gr={};function Ga(t,e,r){Gr[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}`}}}Ga("ERR_BUFFER_OUT_OF_BOUNDS",function(t){return t?`${t} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError);Ga("ERR_INVALID_ARG_TYPE",function(t,e){return`The "${t}" argument must be of type number. Received type ${typeof e}`},TypeError);Ga("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=$f(String(r)):typeof r=="bigint"&&(o=String(r),(r>BigInt(2)**BigInt(32)||r<-(BigInt(2)**BigInt(32)))&&(o=$f(o)),o+="n"),n+=` It must be ${e}. Received ${o}`,n},RangeError);function $f(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 H0(t,e,r){Yr(e,"offset"),(t[e]===void 0||t[e+r]===void 0)&&uo(e,t.length-(r+1))}function qf(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 Gr.ERR_OUT_OF_RANGE("value",a,t)}H0(n,o,i)}function Yr(t,e){if(typeof t!="number")throw new Gr.ERR_INVALID_ARG_TYPE(e,"number",t)}function uo(t,e,r){throw Math.floor(t)!==t?(Yr(t,r),new Gr.ERR_OUT_OF_RANGE(r||"offset","an integer",t)):e<0?new Gr.ERR_BUFFER_OUT_OF_BOUNDS:new Gr.ERR_OUT_OF_RANGE(r||"offset",`>= ${r?1:0} and <= ${e}`,t)}var z0=/[^+/0-9A-Za-z-_]/g;function V0(t){if(t=t.split("=")[0],t=t.trim().replace(z0,""),t.length<2)return"";for(;t.length%4!==0;)t=t+"=";return t}function Ha(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 G0(t){let e=[];for(let r=0;r<t.length;++r)e.push(t.charCodeAt(r)&255);return e}function J0(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 Wf(t){return ja.toByteArray(V0(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 Ja(t){return t!==t}var Y0=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"?Q0:t}function Q0(){throw new Error("BigInt not supported")}});var zf=C((Zr,Xr)=>{(function(t){var e=typeof Zr=="object"&&Zr&&!Zr.nodeType&&Zr,r=typeof Xr=="object"&&Xr&&!Xr.nodeType&&Xr,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 we(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,Se,m,p,d,g,b,L,oe;for(pe=v.lastIndexOf(y),pe<0&&(pe=0),Se=0;Se<pe;++Se)v.charCodeAt(Se)>=128&&U("not-basic"),M.push(v.charCodeAt(Se));for(m=pe>0?pe+1:0;m<R;){for(p=z,d=1,g=s;m>=R&&U("invalid-input"),b=we(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,Se,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(Se=R,m=s;p=m<=K?a:m>=K+u?u:m-K,!(Se<p);m+=s)ie=Se-p,oe=s-p,g.push(N($(p+ie%oe,0))),Se=D(ie/oe);g.push(N($(Se,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(Xr.exports==e)r.exports=o;else for(q in o)o.hasOwnProperty(q)&&(e[q]=o[q]);else t.punycode=o})(Zr)});var Gf=C((FM,Vf)=>{"use strict";Vf.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 Qf=C((UM,Yf)=>{"use strict";var Jf=typeof Symbol<"u"&&Symbol,Z0=Gf();Yf.exports=function(){return typeof Jf!="function"||typeof Symbol!="function"||typeof Jf("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:Z0()}});var Kf=C((LM,Xf)=>{"use strict";var Zf={foo:{}},X0=Object;Xf.exports=function(){return{__proto__:Zf}.foo===Zf.foo&&!({__proto__:null}instanceof X0)}});var rp=C((kM,tp)=>{"use strict";var K0="Function.prototype.bind called on incompatible ",ex=Object.prototype.toString,tx=Math.max,rx="[object Function]",ep=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},nx=function(e,r){for(var n=[],o=r||0,i=0;o<e.length;o+=1,i+=1)n[i]=e[o];return n},ox=function(t,e){for(var r="",n=0;n<t.length;n+=1)r+=t[n],n+1<t.length&&(r+=e);return r};tp.exports=function(e){var r=this;if(typeof r!="function"||ex.apply(r)!==rx)throw new TypeError(K0+r);for(var n=nx(arguments,1),o,i=function(){if(this instanceof o){var l=r.apply(this,ep(n,arguments));return Object(l)===l?l:this}return r.apply(e,ep(n,arguments))},s=tx(0,r.length-n.length),a=[],u=0;u<s;u++)a[u]="$"+u;if(o=Function("binder","return function ("+ox(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((jM,np)=>{"use strict";var ix=rp();np.exports=Function.prototype.bind||ix});var ip=C((qM,op)=>{"use strict";var sx=Function.prototype.call,ax=Object.prototype.hasOwnProperty,ux=Ui();op.exports=ux.call(sx,ax)});var Wt=C((WM,lp)=>{"use strict";var Z,rn=SyntaxError,cp=Function,tn=TypeError,Ya=function(t){try{return cp('"use strict"; return ('+t+").constructor;")()}catch{}},vr=Object.getOwnPropertyDescriptor;if(vr)try{vr({},"")}catch{vr=null}var Qa=function(){throw new tn},cx=vr?function(){try{return arguments.callee,Qa}catch{try{return vr(arguments,"callee").get}catch{return Qa}}}():Qa,Kr=Qf()(),lx=Kf()(),$e=Object.getPrototypeOf||(lx?function(t){return t.__proto__}:null),en={},fx=typeof Uint8Array>"u"||!$e?Z:$e(Uint8Array),wr={"%AggregateError%":typeof AggregateError>"u"?Z:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?Z:ArrayBuffer,"%ArrayIteratorPrototype%":Kr&&$e?$e([][Symbol.iterator]()):Z,"%AsyncFromSyncIteratorPrototype%":Z,"%AsyncFunction%":en,"%AsyncGenerator%":en,"%AsyncGeneratorFunction%":en,"%AsyncIteratorPrototype%":en,"%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%":cp,"%GeneratorFunction%":en,"%Int8Array%":typeof Int8Array>"u"?Z:Int8Array,"%Int16Array%":typeof Int16Array>"u"?Z:Int16Array,"%Int32Array%":typeof Int32Array>"u"?Z:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":Kr&&$e?$e($e([][Symbol.iterator]())):Z,"%JSON%":typeof JSON=="object"?JSON:Z,"%Map%":typeof Map>"u"?Z:Map,"%MapIteratorPrototype%":typeof Map>"u"||!Kr||!$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"||!Kr||!$e?Z:$e(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?Z:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":Kr&&$e?$e(""[Symbol.iterator]()):Z,"%Symbol%":Kr?Symbol:Z,"%SyntaxError%":rn,"%ThrowTypeError%":cx,"%TypedArray%":fx,"%TypeError%":tn,"%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){sp=$e($e(t)),wr["%Error.prototype%"]=sp}var sp,px=function t(e){var r;if(e==="%AsyncFunction%")r=Ya("async function () {}");else if(e==="%GeneratorFunction%")r=Ya("function* () {}");else if(e==="%AsyncGeneratorFunction%")r=Ya("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},ap={"%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"]},co=Ui(),Li=ip(),hx=co.call(Function.call,Array.prototype.concat),dx=co.call(Function.apply,Array.prototype.splice),up=co.call(Function.call,String.prototype.replace),ki=co.call(Function.call,String.prototype.slice),mx=co.call(Function.call,RegExp.prototype.exec),gx=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,yx=/\\(\\)?/g,xx=function(e){var r=ki(e,0,1),n=ki(e,-1);if(r==="%"&&n!=="%")throw new rn("invalid intrinsic syntax, expected closing `%`");if(n==="%"&&r!=="%")throw new rn("invalid intrinsic syntax, expected opening `%`");var o=[];return up(e,gx,function(i,s,a,u){o[o.length]=a?up(u,yx,"$1"):s||i}),o},bx=function(e,r){var n=e,o;if(Li(ap,n)&&(o=ap[n],n="%"+o[0]+"%"),Li(wr,n)){var i=wr[n];if(i===en&&(i=px(n)),typeof i>"u"&&!r)throw new tn("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:o,name:n,value:i}}throw new rn("intrinsic "+e+" does not exist!")};lp.exports=function(e,r){if(typeof e!="string"||e.length===0)throw new tn("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof r!="boolean")throw new tn('"allowMissing" argument must be a boolean');if(mx(/^%?[^%]*%?$/,e)===null)throw new rn("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=xx(e),o=n.length>0?n[0]:"",i=bx("%"+o+"%",r),s=i.name,a=i.value,u=!1,c=i.alias;c&&(o=c[0],dx(n,hx([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 rn("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 tn("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 Ka=C((HM,fp)=>{"use strict";var vx=Wt(),Za=vx("%Object.defineProperty%",!0),Xa=function(){if(Za)try{return Za({},"a",{value:1}),!0}catch{return!1}return!1};Xa.hasArrayLengthDefineBug=function(){if(!Xa())return null;try{return Za([],"length",{value:1}).length!==1}catch{return!0}};fp.exports=Xa});var eu=C((zM,pp)=>{"use strict";var wx=Wt(),ji=wx("%Object.getOwnPropertyDescriptor%",!0);if(ji)try{ji([],"length")}catch{ji=null}pp.exports=ji});var mp=C((VM,dp)=>{"use strict";var Sx=Ka()(),tu=Wt(),lo=Sx&&tu("%Object.defineProperty%",!0);if(lo)try{lo({},"a",{value:1})}catch{lo=!1}var Ex=tu("%SyntaxError%"),nn=tu("%TypeError%"),hp=eu();dp.exports=function(e,r,n){if(!e||typeof e!="object"&&typeof e!="function")throw new nn("`obj` must be an object or a function`");if(typeof r!="string"&&typeof r!="symbol")throw new nn("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new nn("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new nn("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new nn("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new nn("`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=!!hp&&hp(e,r);if(lo)lo(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 Ex("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")}});var wp=C((GM,vp)=>{"use strict";var bp=Wt(),gp=mp(),Tx=Ka()(),yp=eu(),xp=bp("%TypeError%"),_x=bp("%Math.floor%");vp.exports=function(e,r){if(typeof e!="function")throw new xp("`fn` is not a function");if(typeof r!="number"||r<0||r>4294967295||_x(r)!==r)throw new xp("`length` must be a positive 32-bit integer");var n=arguments.length>2&&!!arguments[2],o=!0,i=!0;if("length"in e&&yp){var s=yp(e,"length");s&&!s.configurable&&(o=!1),s&&!s.writable&&(i=!1)}return(o||i||!n)&&(Tx?gp(e,"length",r,!0,!0):gp(e,"length",r)),e}});var Cp=C((JM,qi)=>{"use strict";var ru=Ui(),on=Wt(),Cx=wp(),Ax=on("%TypeError%"),Ep=on("%Function.prototype.apply%"),Tp=on("%Function.prototype.call%"),_p=on("%Reflect.apply%",!0)||ru.call(Tp,Ep),fo=on("%Object.defineProperty%",!0),Ix=on("%Math.max%");if(fo)try{fo({},"a",{value:1})}catch{fo=null}qi.exports=function(e){if(typeof e!="function")throw new Ax("a function is required");var r=_p(ru,Tp,arguments);return Cx(r,1+Ix(0,e.length-(arguments.length-1)),!0)};var Sp=function(){return _p(ru,Ep,arguments)};fo?fo(qi.exports,"apply",{value:Sp}):qi.exports.apply=Sp});var Pp=C((YM,Mp)=>{"use strict";var Ap=Wt(),Ip=Cp(),Mx=Ip(Ap("String.prototype.indexOf"));Mp.exports=function(e,r){var n=Ap(e,!!r);return typeof n=="function"&&Mx(e,".prototype.")>-1?Ip(n):n}});var $p=C(()=>{});var Zp=C((XM,Qp)=>{var pu=typeof Map=="function"&&Map.prototype,nu=Object.getOwnPropertyDescriptor&&pu?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,Hi=pu&&nu&&typeof nu.get=="function"?nu.get:null,Np=pu&&Map.prototype.forEach,hu=typeof Set=="function"&&Set.prototype,ou=Object.getOwnPropertyDescriptor&&hu?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,zi=hu&&ou&&typeof ou.get=="function"?ou.get:null,Op=hu&&Set.prototype.forEach,Px=typeof WeakMap=="function"&&WeakMap.prototype,ho=Px?WeakMap.prototype.has:null,$x=typeof WeakSet=="function"&&WeakSet.prototype,mo=$x?WeakSet.prototype.has:null,Nx=typeof WeakRef=="function"&&WeakRef.prototype,Dp=Nx?WeakRef.prototype.deref:null,Ox=Boolean.prototype.valueOf,Dx=Object.prototype.toString,Bx=Function.prototype.toString,Rx=String.prototype.match,du=String.prototype.slice,zt=String.prototype.replace,Fx=String.prototype.toUpperCase,Bp=String.prototype.toLowerCase,Hp=RegExp.prototype.test,Rp=Array.prototype.concat,pt=Array.prototype.join,Ux=Array.prototype.slice,Fp=Math.floor,au=typeof BigInt=="function"?BigInt.prototype.valueOf:null,iu=Object.getOwnPropertySymbols,uu=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,zp=Object.prototype.propertyIsEnumerable,Up=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(t){return t.__proto__}:null);function Lp(t,e){if(t===1/0||t===-1/0||t!==t||t&&t>-1e3&&t<1e3||Hp.call(/e/,e))return e;var r=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof t=="number"){var n=t<0?-Fp(-t):Fp(t);if(n!==t){var o=String(n),i=du.call(e,o.length+1);return zt.call(o,r,"$&_")+"."+zt.call(zt.call(i,/([0-9]{3})/g,"$&_"),/_$/,"")}}return zt.call(e,r,"$&_")}var cu=$p(),kp=cu.custom,jp=Gp(kp)?kp:null;Qp.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 Yp(e,i);if(typeof e=="number"){if(e===0)return 1/0/e>0?"0":"-0";var u=String(e);return a?Lp(e,u):u}if(typeof e=="bigint"){var c=String(e)+"n";return a?Lp(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 lu(e)?"[Array]":"[Object]";var f=rb(i,n);if(typeof o>"u")o=[];else if(Jp(o,e)>=0)return"[Circular]";function h(S,E,P){if(E&&(o=Ux.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"&&!qp(e)){var y=Gx(e),w=Wi(e,h);return"[Function"+(y?": "+y:" (anonymous)")+"]"+(w.length>0?" { "+pt.call(w,", ")+" }":"")}if(Gp(e)){var A=sn?zt.call(String(e),/^(Symbol\(.*\))_[^)]*$/,"$1"):uu.call(e);return typeof e=="object"&&!sn?po(A):A}if(Kx(e)){for(var O="<"+Bp.call(String(e.nodeName)),_=e.attributes||[],I=0;I<_.length;I++)O+=" "+_[I].name+"="+Vp(Lx(_[I].value),"double",i);return O+=">",e.childNodes&&e.childNodes.length&&(O+="..."),O+="</"+Bp.call(String(e.nodeName))+">",O}if(lu(e)){if(e.length===0)return"[]";var D=Wi(e,h);return f&&!tb(D)?"["+fu(D,f)+"]":"[ "+pt.call(D,", ")+" ]"}if(jx(e)){var N=Wi(e,h);return!("cause"in Error.prototype)&&"cause"in e&&!zp.call(e,"cause")?"{ ["+String(e)+"] "+pt.call(Rp.call("[cause]: "+h(e.cause),N),", ")+" }":N.length===0?"["+String(e)+"]":"{ ["+String(e)+"] "+pt.call(N,", ")+" }"}if(typeof e=="object"&&s){if(jp&&typeof e[jp]=="function"&&cu)return cu(e,{depth:l-n});if(s!=="symbol"&&typeof e.inspect=="function")return e.inspect()}if(Jx(e)){var q=[];return Np&&Np.call(e,function(S,E){q.push(h(E,e,!0)+" => "+h(S,e))}),Wp("Map",Hi.call(e),q,f)}if(Zx(e)){var U=[];return Op&&Op.call(e,function(S){U.push(h(S,e))}),Wp("Set",zi.call(e),U,f)}if(Yx(e))return su("WeakMap");if(Xx(e))return su("WeakSet");if(Qx(e))return su("WeakRef");if(Wx(e))return po(h(Number(e)));if(zx(e))return po(h(au.call(e)));if(Hx(e))return po(Ox.call(e));if(qx(e))return po(h(String(e)));if(typeof window<"u"&&e===window)return"{ [object Window] }";if(e===global)return"{ [object globalThis] }";if(!kx(e)&&!qp(e)){var Y=Wi(e,h),F=Up?Up(e)===Object.prototype:e instanceof Object||e.constructor===Object,B=e instanceof Object?"":"null prototype",re=!F&&Fe&&Object(e)===e&&Fe in e?du.call(Vt(e),8,-1):B?"Object":"",we=F||typeof e.constructor!="function"?"":e.constructor.name?e.constructor.name+" ":"",$=we+(re||B?"["+pt.call(Rp.call([],re||[],B||[]),": ")+"] ":"");return Y.length===0?$+"{}":f?$+"{"+fu(Y,f)+"}":$+"{ "+pt.call(Y,", ")+" }"}return String(e)};function Vp(t,e,r){var n=(r.quoteStyle||e)==="double"?'"':"'";return n+t+n}function Lx(t){return zt.call(String(t),/"/g,""")}function lu(t){return Vt(t)==="[object Array]"&&(!Fe||!(typeof t=="object"&&Fe in t))}function kx(t){return Vt(t)==="[object Date]"&&(!Fe||!(typeof t=="object"&&Fe in t))}function qp(t){return Vt(t)==="[object RegExp]"&&(!Fe||!(typeof t=="object"&&Fe in t))}function jx(t){return Vt(t)==="[object Error]"&&(!Fe||!(typeof t=="object"&&Fe in t))}function qx(t){return Vt(t)==="[object String]"&&(!Fe||!(typeof t=="object"&&Fe in t))}function Wx(t){return Vt(t)==="[object Number]"&&(!Fe||!(typeof t=="object"&&Fe in t))}function Hx(t){return Vt(t)==="[object Boolean]"&&(!Fe||!(typeof t=="object"&&Fe in t))}function Gp(t){if(sn)return t&&typeof t=="object"&&t instanceof Symbol;if(typeof t=="symbol")return!0;if(!t||typeof t!="object"||!uu)return!1;try{return uu.call(t),!0}catch{}return!1}function zx(t){if(!t||typeof t!="object"||!au)return!1;try{return au.call(t),!0}catch{}return!1}var Vx=Object.prototype.hasOwnProperty||function(t){return t in this};function Ht(t,e){return Vx.call(t,e)}function Vt(t){return Dx.call(t)}function Gx(t){if(t.name)return t.name;var e=Rx.call(Bx.call(t),/^function\s*([\w$]+)/);return e?e[1]:null}function Jp(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 Jx(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 Yx(t){if(!ho||!t||typeof t!="object")return!1;try{ho.call(t,ho);try{mo.call(t,mo)}catch{return!0}return t instanceof WeakMap}catch{}return!1}function Qx(t){if(!Dp||!t||typeof t!="object")return!1;try{return Dp.call(t),!0}catch{}return!1}function Zx(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 Xx(t){if(!mo||!t||typeof t!="object")return!1;try{mo.call(t,mo);try{ho.call(t,ho)}catch{return!0}return t instanceof WeakSet}catch{}return!1}function Kx(t){return!t||typeof t!="object"?!1:typeof HTMLElement<"u"&&t instanceof HTMLElement?!0:typeof t.nodeName=="string"&&typeof t.getAttribute=="function"}function Yp(t,e){if(t.length>e.maxStringLength){var r=t.length-e.maxStringLength,n="... "+r+" more character"+(r>1?"s":"");return Yp(du.call(t,0,e.maxStringLength),e)+n}var o=zt.call(zt.call(t,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,eb);return Vp(o,"single",e)}function eb(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":"")+Fx.call(e.toString(16))}function po(t){return"Object("+t+")"}function su(t){return t+" { ? }"}function Wp(t,e,r,n){var o=n?fu(r,n):pt.call(r,", ");return t+" ("+e+") {"+o+"}"}function tb(t){for(var e=0;e<t.length;e++)if(Jp(t[e],`
|
|
2
|
+
`)>=0)return!1;return!0}function rb(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 fu(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&>!==!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(
|
|
7
|
-
Make sure your charset is UTF-8`);r=(r>>>8&255)*192+(r&255),t.put(r,13)}};
|
|
8
|
-
Suggested mode is: `+ee.toString(n));switch(r===ee.KANJI
|
|
4
|
+
`+e.prev}function Wi(t,e){var r=lu(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 iu=="function"?iu(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||(Hp.call(/[^\w$]/,u)?n.push(e(u,t)+": "+e(t[u],t)):n.push(u+": "+e(t[u],t))));if(typeof iu=="function")for(var c=0;c<i.length;c++)zp.call(t,i[c])&&n.push("["+e(i[c])+"]: "+e(t[i[c]],t));return n}});var Kp=C((KM,Xp)=>{"use strict";var mu=Wt(),an=Pp(),nb=Zp(),ob=mu("%TypeError%"),Vi=mu("%WeakMap%",!0),Gi=mu("%Map%",!0),ib=an("WeakMap.prototype.get",!0),sb=an("WeakMap.prototype.set",!0),ab=an("WeakMap.prototype.has",!0),ub=an("Map.prototype.get",!0),cb=an("Map.prototype.set",!0),lb=an("Map.prototype.has",!0),gu=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},fb=function(t,e){var r=gu(t,e);return r&&r.value},pb=function(t,e,r){var n=gu(t,e);n?n.value=r:t.next={key:e,next:t.next,value:r}},hb=function(t,e){return!!gu(t,e)};Xp.exports=function(){var e,r,n,o={assert:function(i){if(!o.has(i))throw new ob("Side channel does not contain "+nb(i))},get:function(i){if(Vi&&i&&(typeof i=="object"||typeof i=="function")){if(e)return ib(e,i)}else if(Gi){if(r)return ub(r,i)}else if(n)return fb(n,i)},has: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);return!1},set:function(i,s){Vi&&i&&(typeof i=="object"||typeof i=="function")?(e||(e=new Vi),sb(e,i,s)):Gi?(r||(r=new Gi),cb(r,i,s)):(n||(n={key:{},next:null}),pb(n,i,s))}};return o}});var Ji=C((eP,eh)=>{"use strict";var db=String.prototype.replace,mb=/%20/g,yu={RFC1738:"RFC1738",RFC3986:"RFC3986"};eh.exports={default:yu.RFC3986,formatters:{RFC1738:function(t){return db.call(t,mb,"+")},RFC3986:function(t){return String(t)}},RFC1738:yu.RFC1738,RFC3986:yu.RFC3986}});var bu=C((tP,rh)=>{"use strict";var gb=Ji(),xu=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}(),yb=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}}},th=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},xb=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)||!xu.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=th(e,n)),Sr(e)&&Sr(r)?(r.forEach(function(i,s){if(xu.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 xu.call(i,s)?i[s]=t(i[s],a,n):i[s]=a,i},o)},bb=function(e,r){return Object.keys(r).reduce(function(n,o){return n[o]=r[o],n},e)},vb=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}},wb=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===gb.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},Sb=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 yb(r),e},Eb=function(e){return Object.prototype.toString.call(e)==="[object RegExp]"},Tb=function(e){return!e||typeof e!="object"?!1:!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},_b=function(e,r){return[].concat(e,r)},Cb=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)};rh.exports={arrayToObject:th,assign:bb,combine:_b,compact:Sb,decode:vb,encode:wb,isBuffer:Tb,isRegExp:Eb,maybeMap:Cb,merge:xb}});var uh=C((rP,ah)=>{"use strict";var ih=Kp(),Yi=bu(),go=Ji(),Ab=Object.prototype.hasOwnProperty,nh={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,r){return e+"["+r+"]"},repeat:function(e){return e}},Ct=Array.isArray,Ib=Array.prototype.push,sh=function(t,e){Ib.apply(t,Ct(e)?e:[e])},Mb=Date.prototype.toISOString,oh=go.default,Ue={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:Yi.encode,encodeValuesOnly:!1,format:oh,formatter:go.formatters[oh],indices:!1,serializeDate:function(e){return Mb.call(e)},skipNulls:!1,strictNullHandling:!1},Pb=function(e){return typeof e=="string"||typeof e=="number"||typeof e=="boolean"||typeof e=="symbol"||typeof e=="bigint"},vu={},$b=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(vu))!==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(vu)>"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(Pb(_)||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,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(re,$):re:re+(l?"."+$:"["+$+"]");O.set(e,D);var P=ih();P.set(vu,O),sh(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},Nb=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=go.default;if(typeof e.format<"u"){if(!Ab.call(go.formatters,e.format))throw new TypeError("Unknown format option provided.");n=e.format}var o=go.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}};ah.exports=function(t,e){var r=t,n=Nb(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 nh?a=e.arrayFormat:e&&"indices"in e?a=e.indices?"indices":"repeat":a="indices";var u=nh[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=ih(),f=0;f<o.length;++f){var h=o[f];n.skipNulls&&r[h]===null||sh(s,$b(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 fh=C((nP,lh)=>{"use strict";var un=bu(),wu=Object.prototype.hasOwnProperty,Ob=Array.isArray,Ne={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},Db=function(t){return t.replace(/&#(\d+);/g,function(e,r){return String.fromCharCode(parseInt(r,10))})},ch=function(t,e){return t&&typeof t=="string"&&e.comma&&t.indexOf(",")>-1?t.split(","):t},Bb="utf8=%26%2310003%3B",Rb="utf8=%E2%9C%93",Fb=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]===Rb?c="utf-8":s[u]===Bb&&(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=un.maybeMap(ch(l.slice(h+1),r),function(A){return r.decoder(A,Ne.decoder,c,"value")})),w&&r.interpretNumericEntities&&c==="iso-8859-1"&&(w=Db(w)),l.indexOf("[]=")>-1&&(w=Ob(w)?[w]:w),wu.call(n,y)?n[y]=un.combine(n[y],w):n[y]=w}return n},Ub=function(t,e,r,n){for(var o=n?e:ch(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},Lb=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&&wu.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&&wu.call(Object.prototype,u[1].slice(1,-1))&&!n.allowPrototypes)return;l.push(u[1])}return u&&l.push("["+i.slice(u.index)+"]"),Ub(l,r,n,o)}},kb=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"||un.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}};lh.exports=function(t,e){var r=kb(e);if(t===""||t===null||typeof t>"u")return r.plainObjects?Object.create(null):{};for(var n=typeof t=="string"?Fb(t,r):t,o=r.plainObjects?Object.create(null):{},i=Object.keys(n),s=0;s<i.length;++s){var a=i[s],u=Lb(a,n[a],r,typeof t=="string");o=un.merge(o,u,r)}return r.allowSparse===!0?o:un.compact(o)}});var hh=C((oP,ph)=>{"use strict";var jb=uh(),qb=fh(),Wb=Ji();ph.exports={formats:Wb,parse:qb,stringify:jb}});var yh=C(ln=>{"use strict";var Hb=zf();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 zb=/^([a-z0-9.+-]+:)/i,Vb=/:[0-9]*$/,Gb=/^(\/\/?(?!\/)[^?\s]*)(\?[^\s]*)?$/,Jb=["<",">",'"',"`"," ","\r",`
|
|
5
|
+
`," "],Yb=["{","}","|","\\","^","`"].concat(Jb),Su=["'"].concat(Yb),dh=["%","/","?",";","#"].concat(Su),mh=["/","?","#"],Qb=255,gh=/^[+a-z0-9A-Z_-]{0,63}$/,Zb=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,Xb={javascript:!0,"javascript:":!0},Eu={javascript:!0,"javascript:":!0},cn={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},Tu=hh();function yo(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=Gb.exec(a);if(u)return this.path=a,this.href=a,this.pathname=u[1],u[2]?(this.search=u[2],e?this.query=Tu.parse(this.search.substr(1)):this.query=this.search.substr(1)):e&&(this.search="",this.query={}),this}var c=zb.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&&Eu[c])&&(a=a.substr(2),this.slashes=!0)}if(!Eu[c]&&(f||c&&!cn[c])){for(var h=-1,y=0;y<mh.length;y++){var w=a.indexOf(mh[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<dh.length;y++){var w=a.indexOf(dh[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(gh)){for(var q="",U=0,Y=N.length;U<Y;U++)N.charCodeAt(U)>127?q+="x":q+=N[U];if(!q.match(gh)){var F=I.slice(0,y),B=I.slice(y+1),re=N.match(Zb);re&&(F.push(re[1]),B.unshift(re[2])),B.length&&(a="/"+B.join(".")+a),this.hostname=F.join(".");break}}}this.hostname.length>Qb?this.hostname="":this.hostname=this.hostname.toLowerCase(),_||(this.hostname=Hb.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(!Xb[l])for(var y=0,D=Su.length;y<D;y++){var S=Su[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=Tu.parse(this.query)),a=a.slice(0,T)):e&&(this.search="",this.query={}),a&&(this.pathname=a),cn[l]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){var we=this.pathname||"",j=this.search||"";this.path=we+j}return this.href=this.format(),this};function Kb(t){return typeof t=="string"&&(t=yo(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=Tu.stringify(this.query,{arrayFormat:"repeat",addQueryPrefix:!1}));var s=this.search||i&&"?"+i||"";return e&&e.substr(-1)!==":"&&(e+=":"),this.slashes||(!e||cn[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 ev(t,e){return yo(t,!1,!0).resolve(e)}Qe.prototype.resolve=function(t){return this.resolveObject(yo(t,!1,!0)).format()};function tv(t,e){return t?yo(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 cn[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(!cn[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&&!Eu[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&&!cn[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=Vb.exec(t);e&&(e=e[0],e!==":"&&(this.port=e.substr(1)),t=t.substr(0,t.length-e.length)),t&&(this.hostname=t)};ln.parse=yo;ln.resolve=ev;ln.resolveObject=tv;ln.format=Kb;ln.Url=Qe});var Fh=C((aP,Rh)=>{"use strict";Rh.exports=t=>{let e=t.match(/^[ \t]*(?=\S)/gm);return e?e.reduce((r,n)=>Math.min(r,n.length),1/0):0}});var kh=C((cP,Lh)=>{"use strict";Lh.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 Hh=C((fP,Wh)=>{"use strict";Wh.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 Gh=C((pP,Vh)=>{var dv=Object.prototype.toString;Vh.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 bv(e)?"generatorfunction":"function";if(mv(e))return"array";if(Sv(e))return"buffer";if(wv(e))return"arguments";if(yv(e))return"date";if(gv(e))return"error";if(xv(e))return"regexp";switch(zh(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(vv(e))return"generator";switch(r=dv.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 zh(t){return typeof t.constructor=="function"?t.constructor.name:null}function mv(t){return Array.isArray?Array.isArray(t):t instanceof Array}function gv(t){return t instanceof Error||typeof t.message=="string"&&t.constructor&&typeof t.constructor.stackTraceLimit=="number"}function yv(t){return t instanceof Date?!0:typeof t.toDateString=="function"&&typeof t.getDate=="function"&&typeof t.setDate=="function"}function xv(t){return t instanceof RegExp?!0:typeof t.flags=="string"&&typeof t.ignoreCase=="boolean"&&typeof t.multiline=="boolean"&&typeof t.global=="boolean"}function bv(t,e){return zh(t)==="GeneratorFunction"}function vv(t){return typeof t.throw=="function"&&typeof t.return=="function"&&typeof t.next=="function"}function wv(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 Sv(t){return t.constructor&&typeof t.constructor.isBuffer=="function"?t.constructor.isBuffer(t):!1}});var Yh=C((hP,Jh)=>{Jh.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 Xh=C((dP,Mu)=>{"use strict";var Ev=Hh(),Qh=Gh(),Zh=Yh();Mu.exports=Tv;Mu.exports.isCrypto=!!Zh.cryptographic;var dt={lower:"abcdefghijklmnopqrstuvwxyz",upper:"ABCDEFGHIJKLMNOPQRSTUVWXYZ",number:"0123456789",special:"~!@#$%^&()_+-={}[];',."};dt.all=dt.lower+dt.upper+dt.number+dt.special;function Tv(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:Ev(t)&&(r={},e=t,t="*")),Qh(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=Qh(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(Zh()*i.length,10));return s}});var zd=C((wo,dn)=>{var Fv=200,md="__lodash_hash_undefined__",gd=9007199254740991,zu="[object Arguments]",Uv="[object Array]",yd="[object Boolean]",xd="[object Date]",Lv="[object Error]",Vu="[object Function]",bd="[object GeneratorFunction]",os="[object Map]",vd="[object Number]",Gu="[object Object]",od="[object Promise]",wd="[object RegExp]",is="[object Set]",Sd="[object String]",Ed="[object Symbol]",Lu="[object WeakMap]",Td="[object ArrayBuffer]",ss="[object DataView]",_d="[object Float32Array]",Cd="[object Float64Array]",Ad="[object Int8Array]",Id="[object Int16Array]",Md="[object Int32Array]",Pd="[object Uint8Array]",$d="[object Uint8ClampedArray]",Nd="[object Uint16Array]",Od="[object Uint32Array]",kv=/[\\^$.*+?()[\]{}|]/g,jv=/\w*$/,qv=/^\[object .+?Constructor\]$/,Wv=/^(?:0|[1-9]\d*)$/,ue={};ue[zu]=ue[Uv]=ue[Td]=ue[ss]=ue[yd]=ue[xd]=ue[_d]=ue[Cd]=ue[Ad]=ue[Id]=ue[Md]=ue[os]=ue[vd]=ue[Gu]=ue[wd]=ue[is]=ue[Sd]=ue[Ed]=ue[Pd]=ue[$d]=ue[Nd]=ue[Od]=!0;ue[Lv]=ue[Vu]=ue[Lu]=!1;var Hv=typeof global=="object"&&global&&global.Object===Object&&global,zv=typeof self=="object"&&self&&self.Object===Object&&self,At=Hv||zv||Function("return this")(),Dd=typeof wo=="object"&&wo&&!wo.nodeType&&wo,id=Dd&&typeof dn=="object"&&dn&&!dn.nodeType&&dn,Vv=id&&id.exports===Dd;function Gv(t,e){return t.set(e[0],e[1]),t}function Jv(t,e){return t.add(e),t}function Yv(t,e){for(var r=-1,n=t?t.length:0;++r<n&&e(t[r],r,t)!==!1;);return t}function Qv(t,e){for(var r=-1,n=e.length,o=t.length;++r<n;)t[o+r]=e[r];return t}function Bd(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 Zv(t,e){for(var r=-1,n=Array(t);++r<t;)n[r]=e(r);return n}function Xv(t,e){return t?.[e]}function Rd(t){var e=!1;if(t!=null&&typeof t.toString!="function")try{e=!!(t+"")}catch{}return e}function sd(t){var e=-1,r=Array(t.size);return t.forEach(function(n,o){r[++e]=[o,n]}),r}function Ju(t,e){return function(r){return t(e(r))}}function ad(t){var e=-1,r=Array(t.size);return t.forEach(function(n){r[++e]=n}),r}var Kv=Array.prototype,ew=Function.prototype,as=Object.prototype,Uu=At["__core-js_shared__"],ud=function(){var t=/[^.]+$/.exec(Uu&&Uu.keys&&Uu.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}(),Fd=ew.toString,Gt=as.hasOwnProperty,us=as.toString,tw=RegExp("^"+Fd.call(Gt).replace(kv,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),cd=Vv?At.Buffer:void 0,ld=At.Symbol,fd=At.Uint8Array,rw=Ju(Object.getPrototypeOf,Object),nw=Object.create,ow=as.propertyIsEnumerable,iw=Kv.splice,pd=Object.getOwnPropertySymbols,sw=cd?cd.isBuffer:void 0,aw=Ju(Object.keys,Object),ku=yn(At,"DataView"),So=yn(At,"Map"),ju=yn(At,"Promise"),qu=yn(At,"Set"),Wu=yn(At,"WeakMap"),Eo=yn(Object,"create"),uw=_r(ku),cw=_r(So),lw=_r(ju),fw=_r(qu),pw=_r(Wu),hd=ld?ld.prototype:void 0,dd=hd?hd.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 hw(){this.__data__=Eo?Eo(null):{}}function dw(t){return this.has(t)&&delete this.__data__[t]}function mw(t){var e=this.__data__;if(Eo){var r=e[t];return r===md?void 0:r}return Gt.call(e,t)?e[t]:void 0}function gw(t){var e=this.__data__;return Eo?e[t]!==void 0:Gt.call(e,t)}function yw(t,e){var r=this.__data__;return r[t]=Eo&&e===void 0?md:e,this}Tr.prototype.clear=hw;Tr.prototype.delete=dw;Tr.prototype.get=mw;Tr.prototype.has=gw;Tr.prototype.set=yw;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 xw(){this.__data__=[]}function bw(t){var e=this.__data__,r=cs(e,t);if(r<0)return!1;var n=e.length-1;return r==n?e.pop():iw.call(e,r,1),!0}function vw(t){var e=this.__data__,r=cs(e,t);return r<0?void 0:e[r][1]}function ww(t){return cs(this.__data__,t)>-1}function Sw(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=xw;It.prototype.delete=bw;It.prototype.get=vw;It.prototype.has=ww;It.prototype.set=Sw;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 Ew(){this.__data__={hash:new Tr,map:new(So||It),string:new Tr}}function Tw(t){return ls(this,t).delete(t)}function _w(t){return ls(this,t).get(t)}function Cw(t){return ls(this,t).has(t)}function Aw(t,e){return ls(this,t).set(t,e),this}mn.prototype.clear=Ew;mn.prototype.delete=Tw;mn.prototype.get=_w;mn.prototype.has=Cw;mn.prototype.set=Aw;function gn(t){this.__data__=new It(t)}function Iw(){this.__data__=new It}function Mw(t){return this.__data__.delete(t)}function Pw(t){return this.__data__.get(t)}function $w(t){return this.__data__.has(t)}function Nw(t,e){var r=this.__data__;if(r instanceof It){var n=r.__data__;if(!So||n.length<Fv-1)return n.push([t,e]),this;r=this.__data__=new mn(n)}return r.set(t,e),this}gn.prototype.clear=Iw;gn.prototype.delete=Mw;gn.prototype.get=Pw;gn.prototype.has=$w;gn.prototype.set=Nw;function Ow(t,e){var r=Qu(t)||n1(t)?Zv(t.length,String):[],n=r.length,o=!!n;for(var i in t)(e||Gt.call(t,i))&&!(o&&(i=="length"||Kw(i,n)))&&r.push(i);return r}function Ud(t,e,r){var n=t[e];(!(Gt.call(t,e)&&qd(n,r))||r===void 0&&!(e in t))&&(t[e]=r)}function cs(t,e){for(var r=t.length;r--;)if(qd(t[r][0],e))return r;return-1}function Dw(t,e){return t&&Ld(e,Zu(e),t)}function Hu(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=Qu(t);if(u){if(a=Qw(t),!e)return Gw(t,a)}else{var c=Er(t),l=c==Vu||c==bd;if(i1(t))return kw(t,e);if(c==Gu||c==zu||l&&!i){if(Rd(t))return i?t:{};if(a=Zw(l?{}:t),!e)return Jw(t,Dw(a,t))}else{if(!ue[c])return i?t:{};a=Xw(t,c,Hu,e)}}s||(s=new gn);var f=s.get(t);if(f)return f;if(s.set(t,a),!u)var h=r?Yw(t):Zu(t);return Yv(h||t,function(y,w){h&&(w=y,y=t[w]),Ud(a,w,Hu(y,e,r,n,w,t,s))}),a}function Bw(t){return fs(t)?nw(t):{}}function Rw(t,e,r){var n=e(t);return Qu(t)?n:Qv(n,r(t))}function Fw(t){return us.call(t)}function Uw(t){if(!fs(t)||t1(t))return!1;var e=Hd(t)||Rd(t)?tw:qv;return e.test(_r(t))}function Lw(t){if(!jd(t))return aw(t);var e=[];for(var r in Object(t))Gt.call(t,r)&&r!="constructor"&&e.push(r);return e}function kw(t,e){if(e)return t.slice();var r=new t.constructor(t.length);return t.copy(r),r}function Yu(t){var e=new t.constructor(t.byteLength);return new fd(e).set(new fd(t)),e}function jw(t,e){var r=e?Yu(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.byteLength)}function qw(t,e,r){var n=e?r(sd(t),!0):sd(t);return Bd(n,Gv,new t.constructor)}function Ww(t){var e=new t.constructor(t.source,jv.exec(t));return e.lastIndex=t.lastIndex,e}function Hw(t,e,r){var n=e?r(ad(t),!0):ad(t);return Bd(n,Jv,new t.constructor)}function zw(t){return dd?Object(dd.call(t)):{}}function Vw(t,e){var r=e?Yu(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.length)}function Gw(t,e){var r=-1,n=t.length;for(e||(e=Array(n));++r<n;)e[r]=t[r];return e}function Ld(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;Ud(r,s,a===void 0?t[s]:a)}return r}function Jw(t,e){return Ld(t,kd(t),e)}function Yw(t){return Rw(t,Zu,kd)}function ls(t,e){var r=t.__data__;return e1(e)?r[typeof e=="string"?"string":"hash"]:r.map}function yn(t,e){var r=Xv(t,e);return Uw(r)?r:void 0}var kd=pd?Ju(pd,Object):u1,Er=Fw;(ku&&Er(new ku(new ArrayBuffer(1)))!=ss||So&&Er(new So)!=os||ju&&Er(ju.resolve())!=od||qu&&Er(new qu)!=is||Wu&&Er(new Wu)!=Lu)&&(Er=function(t){var e=us.call(t),r=e==Gu?t.constructor:void 0,n=r?_r(r):void 0;if(n)switch(n){case uw:return ss;case cw:return os;case lw:return od;case fw:return is;case pw:return Lu}return e});function Qw(t){var e=t.length,r=t.constructor(e);return e&&typeof t[0]=="string"&&Gt.call(t,"index")&&(r.index=t.index,r.input=t.input),r}function Zw(t){return typeof t.constructor=="function"&&!jd(t)?Bw(rw(t)):{}}function Xw(t,e,r,n){var o=t.constructor;switch(e){case Td:return Yu(t);case yd:case xd:return new o(+t);case ss:return jw(t,n);case _d:case Cd:case Ad:case Id:case Md:case Pd:case $d:case Nd:case Od:return Vw(t,n);case os:return qw(t,n,r);case vd:case Sd:return new o(t);case wd:return Ww(t);case is:return Hw(t,n,r);case Ed:return zw(t)}}function Kw(t,e){return e=e??gd,!!e&&(typeof t=="number"||Wv.test(t))&&t>-1&&t%1==0&&t<e}function e1(t){var e=typeof t;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?t!=="__proto__":t===null}function t1(t){return!!ud&&ud in t}function jd(t){var e=t&&t.constructor,r=typeof e=="function"&&e.prototype||as;return t===r}function _r(t){if(t!=null){try{return Fd.call(t)}catch{}try{return t+""}catch{}}return""}function r1(t){return Hu(t,!0,!0)}function qd(t,e){return t===e||t!==t&&e!==e}function n1(t){return o1(t)&&Gt.call(t,"callee")&&(!ow.call(t,"callee")||us.call(t)==zu)}var Qu=Array.isArray;function Wd(t){return t!=null&&s1(t.length)&&!Hd(t)}function o1(t){return a1(t)&&Wd(t)}var i1=sw||c1;function Hd(t){var e=fs(t)?us.call(t):"";return e==Vu||e==bd}function s1(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=gd}function fs(t){var e=typeof t;return!!t&&(e=="object"||e=="function")}function a1(t){return!!t&&typeof t=="object"}function Zu(t){return Wd(t)?Ow(t):Lw(t)}function u1(){return[]}function c1(){return!1}dn.exports=r1});var Gd=C((MP,Vd)=>{"use strict";Vd.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 Kd=C((PP,Xd)=>{function l1(t,e){return JSON.stringify(t,Jd,e)}function f1(t){return JSON.parse(t,Yd)}function Jd(t,e){return Qd(e)&&Xu(e.data)&&(e.data.length>0?e.data="base64:"+Buffer.from(e.data).toString("base64"):e.data=""),e}function Yd(t,e){if(Qd(e)){if(Xu(e.data))return Buffer.from(e.data);if(Zd(e.data))return e.data.startsWith("base64:")?Buffer.from(e.data.slice(7),"base64"):Buffer.from(e.data)}return e}function Qd(t){return p1(t)&&t.type==="Buffer"&&(Xu(t.data)||Zd(t.data))}function Xu(t){return Array.isArray(t)}function Zd(t){return typeof t=="string"}function p1(t){return typeof t=="object"&&t!==null}Xd.exports={stringify:l1,parse:f1,replacer:Jd,reviver:Yd}});var _m=C(()=>{});var Bm=C(be=>{"use strict";Object.defineProperty(be,"__esModule",{value:!0});be.getFirstTrueOrFalse=be.timeoutAndContinue=be.timeoutWrap=be.map=be.rejectedPromise=be.resolvedPromise=be.defer=be.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}};be.Deferred=vs;be.defer=()=>new vs;be.resolvedPromise=t=>Promise.resolve(t);be.rejectedPromise=t=>Promise.reject(t);be.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};be.timeoutWrap=async(t,e,r=!0)=>new Promise((n,o)=>{setTimeout(()=>{r?o(new Error("timeout")):n(null)},e),t.then(n,o)});be.timeoutAndContinue=async(t,e=6e4)=>be.timeoutWrap(t,e,!1);be.getFirstTrueOrFalse=async t=>{let e=be.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 Lm=C((_c,Cc)=>{(function(t,e){typeof _c=="object"&&typeof Cc<"u"?Cc.exports=e():typeof define=="function"&&define.amd?define(e):(t=t||self,t.SweetScroll=e())})(_c,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)}},we={y:"scrollTop",x:"scrollLeft"},$={y:"pageYOffset",x:"pageXOffset"},S=function(m,p){return N(m)?m[$[p]]:m[we[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[we[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[we.y],g.left=L.left*-1+b[we.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",Se=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,Un=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 Ho=He[Rr],Ln=Br[Rr],kn=Ho-Ln;if(kn!==0){var zo=Un(Ie,yt*Ie,0,1,yt);E(ie,Math.round(Ln+kn*zo),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,Un=rt.stopPropagation,yt=rt.vertical,Ft=rt.horizontal;Br&&L.preventDefault(),Un&&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),Un=/^#/,yt=o(p)&&Un.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 Ho=I(p);if(!Ho)return;Ie=P(Ho,b)}Ft&&(Ie.top+=Ft.top,Ie.left+=Ft.left),Br&&(Ie.top=Math.max(0,Ie.top-B(Br).height));var Ln=re(b),kn=Ln.viewport,zo=Ln.size;if(Ie.top=He?Math.max(0,Math.min(zo.height-kn.height,Ie.top)):S(b,"y"),Ie.left=rt?Math.max(0,Math.min(zo.width-kn.width,Ie.left)):S(b,"x"),this.hook(ae,"before",Ie,ie)===!1){L.opts=null;return}L.pos=Ie,this.start(ae),this.bind(!1,!0)}}},m.prototype.toTop=function(p,d){this.to(p,t({},d||{},{vertical:!0,horizontal:!1}))},m.prototype.toLeft=function(p,d){this.to(p,t({},d||{},{vertical:!1,horizontal:!0}))},m.prototype.toElement=function(p,d){var g=this.$el;!e||!g||this.to(P(p,g),d||{})},m.prototype.stop=function(p){p===void 0&&(p=!1);var d=this,g=d.$el,b=d.ctx,L=b.pos;!g||!b.progress||(m.caf(b.id),b.progress=!1,b.start=0,b.id=0,p&&L&&(E(g,L.left,"x"),E(g,L.top,"y")),this.complete())},m.prototype.update=function(p){if(this.$el){var d=t({},this.opts,p);this.stop(),this.unbind(!0,!0),this.opts=d,this.bind(!0,!1)}},m.prototype.destroy=function(){this.$el&&(this.stop(),this.unbind(!0,!0),this.$el=null)},m.prototype.onBefore=function(p,d){return!0},m.prototype.onStep=function(p){},m.prototype.onAfter=function(p,d){},m.prototype.onCancel=function(){},m.prototype.onComplete=function(p){},m.prototype.start=function(p){var d=this.ctx;d.opts=p,d.progress=!0,d.easing=i(p.easing)?p.easing:O[p.easing];var g=this.$el,b={top:S(g,"y"),left:S(g,"x")};d.startPos=b,d.id=m.raf(this.loop)},m.prototype.complete=function(){var p=this,d=p.$el,g=p.ctx,b=g.hash,L=g.cancel,oe=g.opts,ie=g.pos,ae=g.$trigger;if(!(!d||!oe)){if(b!=null&&b!==window.location.hash){var gt=oe.updateURL;e&&r&>!==!1&&window.history[gt==="replace"?"replaceState":"pushState"](null,"",b)}this.unbind(!1,!0),g.opts=null,g.$trigger=null,L?this.hook(oe,"cancel"):this.hook(oe,"after",ie,ae),this.hook(oe,"complete",L)}},m.prototype.hook=function(p,d){for(var g=[],b=2;b<arguments.length;b++)g[b-2]=arguments[b];var L,oe=p[d],ie,ae;return i(oe)&&(ie=oe.apply(this,g.concat([this]))),ae=(L=this)["on"+(d[0].toUpperCase()+d.slice(1))].apply(L,g),ie!==void 0?ie:ae},m.prototype.bind=function(p,d){var g=this,b=g.$el,L=g.ctx.opts;b&&(p&&M(b,ne,this.handleClick,!1),d&&M(b,pe,this.handleStop,L?L.cancellable:!0))},m.prototype.unbind=function(p,d){var g=this,b=g.$el,L=g.ctx.opts;b&&(p&&R(b,ne,this.handleClick,!1),d&&R(b,pe,this.handleStop,L?L.cancellable:!0))},m.raf=c,m.caf=l,m}();return Se})});var rg=C((YR,tg)=>{tg.exports=function(){return typeof Promise=="function"&&Promise.prototype&&Promise.prototype.then}});var Zt=C(Pr=>{var Uc,dE=[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 dE[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.');Uc=e};Pr.isKanjiModeEnabled=function(){return typeof Uc<"u"};Pr.toSJIS=function(e){return Uc(e)}});var Bs=C(Ke=>{Ke.L={bit:1};Ke.M={bit:0};Ke.Q={bit:3};Ke.H={bit:2};function mE(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 mE(e)}catch{return r}}});var ig=C((XR,og)=>{function ng(){this.buffer=[],this.length=0}ng.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++}};og.exports=ng});var ag=C((KR,sg)=>{function Bo(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)}Bo.prototype.set=function(t,e,r,n){let o=t*this.size+e;this.data[o]=r,n&&(this.reservedBit[o]=!0)};Bo.prototype.get=function(t,e){return this.data[t*this.size+e]};Bo.prototype.xor=function(t,e,r){this.data[t*this.size+e]^=r};Bo.prototype.isReserved=function(t,e){return this.reservedBit[t*this.size+e]};sg.exports=Bo});var ug=C(Rs=>{var gE=Zt().getSymbolSize;Rs.getRowColCoords=function(e){if(e===1)return[];let r=Math.floor(e/7)+2,n=gE(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 fg=C(lg=>{var yE=Zt().getSymbolSize,cg=7;lg.getPositions=function(e){let r=yE(e);return[[0,0],[r-cg,0],[0,r-cg]]}});var pg=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 xE(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,xE(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 kc=C(Lc=>{var Xt=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];Lc.getBlocksCount=function(e,r){switch(r){case Xt.L:return Fs[(e-1)*4+0];case Xt.M:return Fs[(e-1)*4+1];case Xt.Q:return Fs[(e-1)*4+2];case Xt.H:return Fs[(e-1)*4+3];default:return}};Lc.getTotalCodewordsCount=function(e,r){switch(r){case Xt.L:return Us[(e-1)*4+0];case Xt.M:return Us[(e-1)*4+1];case Xt.Q:return Us[(e-1)*4+2];case Xt.H:return Us[(e-1)*4+3];default:return}}});var hg=C(ks=>{var Ro=new Uint8Array(512),Ls=new Uint8Array(256);(function(){let e=1;for(let r=0;r<255;r++)Ro[r]=e,Ls[e]=r,e<<=1,e&256&&(e^=285);for(let r=255;r<512;r++)Ro[r]=Ro[r-255]})();ks.log=function(e){if(e<1)throw new Error("log("+e+")");return Ls[e]};ks.exp=function(e){return Ro[e]};ks.mul=function(e,r){return e===0||r===0?0:Ro[Ls[e]+Ls[r]]}});var dg=C(Fo=>{var jc=hg();Fo.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]^=jc.mul(e[o],r[i]);return n};Fo.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]^=jc.mul(r[s],o);let i=0;for(;i<n.length&&n[i]===0;)i++;n=n.slice(i)}return n};Fo.generateECPolynomial=function(e){let r=new Uint8Array([1]);for(let n=0;n<e;n++)r=Fo.mul(r,new Uint8Array([1,jc.exp(n)]));return r}});var yg=C((sF,gg)=>{var mg=dg();function qc(t){this.genPoly=void 0,this.degree=t,this.degree&&this.initialize(this.degree)}qc.prototype.initialize=function(e){this.degree=e,this.genPoly=mg.generateECPolynomial(this.degree)};qc.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=mg.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};gg.exports=qc});var Wc=C(xg=>{xg.isValid=function(e){return!isNaN(e)&&e>=1&&e<=40}});var Hc=C(Nt=>{var bg="[0-9]+",bE="[A-Z $%*+\\-./:]+",Uo="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";Uo=Uo.replace(/u/g,"\\u");var vE="(?:(?![A-Z0-9 $%*+\\-./:]|"+Uo+`)(?:.|[\r
|
|
6
|
+
]))+`;Nt.KANJI=new RegExp(Uo,"g");Nt.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g");Nt.BYTE=new RegExp(vE,"g");Nt.NUMERIC=new RegExp(bg,"g");Nt.ALPHANUMERIC=new RegExp(bE,"g");var wE=new RegExp("^"+Uo+"$"),SE=new RegExp("^"+bg+"$"),EE=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");Nt.testKanji=function(e){return wE.test(e)};Nt.testNumeric=function(e){return SE.test(e)};Nt.testAlphanumeric=function(e){return EE.test(e)}});var Kt=C(ve=>{var TE=Wc(),zc=Hc();ve.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]};ve.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]};ve.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]};ve.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]};ve.MIXED={bit:-1};ve.getCharCountIndicator=function(e,r){if(!e.ccBits)throw new Error("Invalid mode: "+e);if(!TE.isValid(r))throw new Error("Invalid version: "+r);return r>=1&&r<10?e.ccBits[0]:r<27?e.ccBits[1]:e.ccBits[2]};ve.getBestModeForData=function(e){return zc.testNumeric(e)?ve.NUMERIC:zc.testAlphanumeric(e)?ve.ALPHANUMERIC:zc.testKanji(e)?ve.KANJI:ve.BYTE};ve.toString=function(e){if(e&&e.id)return e.id;throw new Error("Invalid mode")};ve.isValid=function(e){return e&&e.bit&&e.ccBits};function _E(t){if(typeof t!="string")throw new Error("Param is not a string");switch(t.toLowerCase()){case"numeric":return ve.NUMERIC;case"alphanumeric":return ve.ALPHANUMERIC;case"kanji":return ve.KANJI;case"byte":return ve.BYTE;default:throw new Error("Unknown mode: "+t)}}ve.from=function(e,r){if(ve.isValid(e))return e;try{return _E(e)}catch{return r}}});var Tg=C(Nr=>{var js=Zt(),CE=kc(),vg=Bs(),er=Kt(),Vc=Wc(),Sg=7973,wg=js.getBCHDigit(Sg);function AE(t,e,r){for(let n=1;n<=40;n++)if(e<=Nr.getCapacity(n,r,t))return n}function Eg(t,e){return er.getCharCountIndicator(t,e)+4}function IE(t,e){let r=0;return t.forEach(function(n){let o=Eg(n.mode,e);r+=o+n.getBitsLength()}),r}function ME(t,e){for(let r=1;r<=40;r++)if(IE(t,r)<=Nr.getCapacity(r,e,er.MIXED))return r}Nr.from=function(e,r){return Vc.isValid(e)?parseInt(e,10):r};Nr.getCapacity=function(e,r,n){if(!Vc.isValid(e))throw new Error("Invalid QR Code version");typeof n>"u"&&(n=er.BYTE);let o=js.getSymbolTotalCodewords(e),i=CE.getTotalCodewordsCount(e,r),s=(o-i)*8;if(n===er.MIXED)return s;let a=s-Eg(n,e);switch(n){case er.NUMERIC:return Math.floor(a/10*3);case er.ALPHANUMERIC:return Math.floor(a/11*2);case er.KANJI:return Math.floor(a/13);case er.BYTE:default:return Math.floor(a/8)}};Nr.getBestVersionForData=function(e,r){let n,o=vg.from(r,vg.M);if(Array.isArray(e)){if(e.length>1)return ME(e,o);if(e.length===0)return 1;n=e[0]}else n=e;return AE(n.mode,n.getLength(),o)};Nr.getEncodedBits=function(e){if(!Vc.isValid(e)||e<7)throw new Error("Invalid QR Code version");let r=e<<12;for(;js.getBCHDigit(r)-wg>=0;)r^=Sg<<js.getBCHDigit(r)-wg;return e<<12|r}});var Ig=C(Ag=>{var Gc=Zt(),Cg=1335,PE=21522,_g=Gc.getBCHDigit(Cg);Ag.getEncodedBits=function(e,r){let n=e.bit<<3|r,o=n<<10;for(;Gc.getBCHDigit(o)-_g>=0;)o^=Cg<<Gc.getBCHDigit(o)-_g;return(n<<10|o)^PE}});var Pg=C((pF,Mg)=>{var $E=Kt();function Pn(t){this.mode=$E.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 Ng=C((hF,$g)=>{var NE=Kt(),Jc=["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=NE.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=Jc.indexOf(this.data[r])*45;n+=Jc.indexOf(this.data[r+1]),e.put(n,11)}this.data.length%2&&e.put(Jc.indexOf(this.data[r]),6)};$g.exports=$n});var Dg=C((dF,Og)=>{"use strict";Og.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 Rg=C((mF,Bg)=>{var OE=Dg(),DE=Kt();function Nn(t){this.mode=DE.BYTE,typeof t=="string"&&(t=OE(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)};Bg.exports=Nn});var Ug=C((gF,Fg)=>{var BE=Kt(),RE=Zt();function On(t){this.mode=BE.KANJI,this.data=t}On.getBitsLength=function(e){return e*13};On.prototype.getLength=function(){return this.data.length};On.prototype.getBitsLength=function(){return On.getBitsLength(this.data.length)};On.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)}};Fg.exports=On});var Lg=C((yF,Yc)=>{"use strict";var Lo={single_source_shortest_paths:function(t,e,r){var n={},o={};o[e]=0;var i=Lo.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=Lo.single_source_shortest_paths(t,e,r);return Lo.extract_shortest_path_from_predecessor_list(n,r)},PriorityQueue:{make:function(t){var e=Lo.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 Yc<"u"&&(Yc.exports=Lo)});var Gg=C(Dn=>{var ee=Kt(),qg=Pg(),Wg=Ng(),Hg=Rg(),zg=Ug(),ko=Hc(),qs=Zt(),FE=Lg();function kg(t){return unescape(encodeURIComponent(t)).length}function jo(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 Vg(t){let e=jo(ko.NUMERIC,ee.NUMERIC,t),r=jo(ko.ALPHANUMERIC,ee.ALPHANUMERIC,t),n,o;return qs.isKanjiModeEnabled()?(n=jo(ko.BYTE,ee.BYTE,t),o=jo(ko.KANJI,ee.KANJI,t)):(n=jo(ko.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 Qc(t,e){switch(e){case ee.NUMERIC:return qg.getBitsLength(t);case ee.ALPHANUMERIC:return Wg.getBitsLength(t);case ee.KANJI:return zg.getBitsLength(t);case ee.BYTE:return Hg.getBitsLength(t)}}function UE(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 LE(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:kg(n.data)}]);break;case ee.BYTE:e.push([{data:n.data,mode:ee.BYTE,length:kg(n.data)}])}}return e}function kE(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]=Qc(r[h].lastCount+c.length,c.mode)-Qc(r[h].lastCount,c.mode),r[h].lastCount+=c.length):(r[h]&&(r[h].lastCount=c.length),n[h][l]=Qc(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 jg(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 qg(t);case ee.ALPHANUMERIC:return new Wg(t);case ee.KANJI:return new zg(t);case ee.BYTE:return new Hg(t)}}Dn.fromArray=function(e){return e.reduce(function(r,n){return typeof n=="string"?r.push(jg(n,null)):n.data&&r.push(jg(n.data,n.mode)),r},[])};Dn.fromString=function(e,r){let n=Vg(e,qs.isKanjiModeEnabled()),o=LE(n),i=kE(o,r),s=FE.find_path(i.map,"start","end"),a=[];for(let u=1;u<s.length-1;u++)a.push(i.table[s[u]].node);return Dn.fromArray(UE(a))};Dn.rawSplit=function(e){return Dn.fromArray(Vg(e,qs.isKanjiModeEnabled()))}});var Yg=C(Jg=>{var Hs=Zt(),Zc=Bs(),jE=ig(),qE=ag(),WE=ug(),HE=fg(),el=pg(),tl=kc(),zE=yg(),Ws=Tg(),VE=Ig(),GE=Kt(),Xc=Gg();function JE(t,e){let r=t.size,n=HE.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 YE(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 QE(t,e){let r=WE.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 ZE(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 Kc(t,e,r){let n=t.size,o=VE.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 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 KE(t,e,r){let n=new jE;r.forEach(function(u){n.put(u.mode.bit,4),n.put(u.getLength(),GE.getCharCountIndicator(u.mode,t)),u.write(n)});let o=Hs.getSymbolTotalCodewords(t),i=tl.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 eT(n,t,e)}function eT(t,e,r){let n=Hs.getSymbolTotalCodewords(e),o=tl.getTotalCodewordsCount(e,r),i=n-o,s=tl.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 zE(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 tT(t,e,r,n){let o;if(Array.isArray(t))o=Xc.fromArray(t);else if(typeof t=="string"){let c=e;if(!c){let l=Xc.rawSplit(t);c=Ws.getBestVersionForData(l,r)}o=Xc.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=
|
|
12
|
-
`;return typeof n=="function"&&n(null,h),h}});var
|
|
13
|
-
\f\r]`,
|
|
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=KE(e,r,o),a=Hs.getSymbolSize(e),u=new qE(a);return JE(u,e),YE(u),QE(u,e),Kc(u,r,0),e>=7&&ZE(u,e),XE(u,s),isNaN(n)&&(n=el.getBestMask(u,Kc.bind(null,u,r))),el.applyMask(n,u),Kc(u,r,n),{modules:u,version:e,errorCorrectionLevel:r,maskPattern:n,segments:o}}Jg.create=function(e,r){if(typeof e>"u"||e==="")throw new Error("No input text");let n=Zc.M,o,i;return typeof r<"u"&&(n=Zc.from(r.errorCorrectionLevel,Zc.M),o=Ws.from(r.version),i=el.from(r.maskPattern),r.toSJISFunc&&Hs.setToSJISFunction(r.toSJISFunc)),tT(e,o,n,i)}});var rl=C(Or=>{function Qg(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:Qg(e.color.dark||"#000000ff"),light:Qg(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 Zg=C(zs=>{var nl=rl();function rT(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 nT(){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=nT()),o=nl.getOptions(o);let s=nl.getImageWidth(e.modules.size,o),a=i.getContext("2d"),u=a.createImageData(s,s);return nl.qrToImageData(u.data,e,o),rT(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 ey=C(Kg=>{var oT=rl();function Xg(t,e){let r=t.a/255,n=e+'="'+t.hex+'"';return r<1?n+" "+e+'-opacity="'+r.toFixed(2).slice(1)+'"':n}function ol(t,e,r){let n=t+e;return typeof r<"u"&&(n+=" "+r),n}function iT(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?ol("M",u+r,.5+c+r):ol("m",o,0),o=0,i=!1),u+1<e&&t[a+1]||(n+=ol("h",s),s=0)):o++}return n}Kg.render=function(e,r,n){let o=oT.getOptions(r),i=e.modules.size,s=e.modules.data,a=i+o.margin*2,u=o.color.light.a?"<path "+Xg(o.color.light,"fill")+' d="M0 0h'+a+"v"+a+'H0z"/>':"",c="<path "+Xg(o.color.dark,"stroke")+' d="'+iT(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 ry=C(qo=>{var sT=rg(),il=Yg(),ty=Zg(),aT=ey();function sl(t,e,r,n,o){let i=[].slice.call(arguments,1),s=i.length,a=typeof i[s-1]=="function";if(!a&&!sT())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=il.create(r,n);u(t(l,e,n))}catch(l){c(l)}})}try{let u=il.create(r,n);o(null,t(u,e,n))}catch(u){o(u)}}qo.create=il.create;qo.toCanvas=sl.bind(null,ty.render);qo.toDataURL=sl.bind(null,ty.renderToDataURL);qo.toString=sl.bind(null,function(t,e,r){return aT.render(t,r)})});var Go=globalThis,Jo=Go.ShadowRoot&&(Go.ShadyCSS===void 0||Go.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Vs=Symbol(),ul=new WeakMap,jn=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(Jo&&e===void 0){let n=r!==void 0&&r.length===1;n&&(e=ul.get(r)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),n&&ul.set(r,e))}return e}toString(){return this.cssText}},V=t=>new jn(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 jn(r,t,Vs)},Gs=(t,e)=>{if(Jo)t.adoptedStyleSheets=e.map(r=>r instanceof CSSStyleSheet?r:r.styleSheet);else for(let r of e){let n=document.createElement("style"),o=Go.litNonce;o!==void 0&&n.setAttribute("nonce",o),n.textContent=r.cssText,t.appendChild(n)}},Yo=Jo?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:dy,defineProperty:my,getOwnPropertyDescriptor:gy,getOwnPropertyNames:yy,getOwnPropertySymbols:xy,getPrototypeOf:by}=Object,Qo=globalThis,cl=Qo.trustedTypes,vy=cl?cl.emptyScript:"",wy=Qo.reactiveElementPolyfillSupport,qn=(t,e)=>t,Wn={toAttribute(t,e){switch(e){case Boolean:t=t?vy: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}},Zo=(t,e)=>!dy(t,e),ll={attribute:!0,type:String,converter:Wn,reflect:!1,hasChanged:Zo};Symbol.metadata??=Symbol("metadata"),Qo.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=ll){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&&my(this.prototype,e,o)}}static getPropertyDescriptor(e,r,n){let{get:o,set:i}=gy(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)??ll}static _$Ei(){if(this.hasOwnProperty(qn("elementProperties")))return;let e=by(this);e.finalize(),e.l!==void 0&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(qn("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(qn("properties"))){let r=this.properties,n=[...yy(r),...xy(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(Yo(o))}else e!==void 0&&r.push(Yo(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._$E_(),this.requestUpdate(),this.constructor.l?.forEach(e=>e(this))}addController(e){(this._$ES??=[]).push(e),this.renderRoot!==void 0&&this.isConnected&&e.hostConnected?.()}removeController(e){this._$ES?.splice(this._$ES.indexOf(e)>>>0,1)}_$E_(){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._$ES?.forEach(e=>e.hostConnected?.())}enableUpdating(e){}disconnectedCallback(){this._$ES?.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:Wn).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:Wn;this._$Em=o,this[o]=s.fromAttribute(r,i.type),this._$Em=null}}requestUpdate(e,r,n,o=!1,i){if(e!==void 0){if(n??=this.constructor.getPropertyOptions(e),!(n.hasChanged??Zo)(o?i: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._$Ej??=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._$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._$ES?.forEach(n=>n.hostUpdate?.()),this.update(r)):this._$ET()}catch(n){throw e=!1,this._$ET(),n}e&&this._$AE(r)}willUpdate(e){}_$AE(e){this._$ES?.forEach(r=>r.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$ET(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$Eg}shouldUpdate(e){return!0}update(e){this._$Ej&&=this._$Ej.forEach(r=>this._$EO(r,this[r])),this._$ET()}updated(e){}firstUpdated(e){}};xt.elementStyles=[],xt.shadowRootOptions={mode:"open"},xt[qn("elementProperties")]=new Map,xt[qn("finalized")]=new Map,wy?.({ReactiveElement:xt}),(Qo.reactiveElementVersions??=[]).push("2.0.0");var Ys=globalThis,Xo=Ys.trustedTypes,fl=Xo?Xo.createPolicy("lit-html",{createHTML:t=>t}):void 0,Qs="$lit$",bt=`lit$${(Math.random()+"").slice(9)}$`,Zs="?"+bt,Sy=`<${Zs}>`,sr=document,zn=()=>sr.createComment(""),Vn=t=>t===null||typeof t!="object"&&typeof t!="function",yl=Array.isArray,xl=t=>yl(t)||typeof t?.[Symbol.iterator]=="function",Js=`[
|
|
13
|
+
\f\r]`,Hn=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,pl=/-->/g,hl=/>/g,or=RegExp(`>|${Js}(?:([^\\s"'>=/]+)(${Js}*=${Js}*(?:[^
|
|
14
|
+
\f\r"'\`<>=]|("|')|))|$)`,"g"),dl=/'/g,ml=/"/g,bl=/^(?:script|style|textarea|title)$/i,vl=t=>(e,...r)=>({_$litType$:t,strings:e,values:r}),k=vl(1),hT=vl(2),Ee=Symbol.for("lit-noChange"),me=Symbol.for("lit-nothing"),gl=new WeakMap,ir=sr.createTreeWalker(sr,129);function wl(t,e){if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return fl!==void 0?fl.createHTML(e):e}var Sl=(t,e)=>{let r=t.length-1,n=[],o,i=e===2?"<svg>":"",s=Hn;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===Hn?l[1]==="!--"?s=pl:l[1]!==void 0?s=hl:l[2]!==void 0?(bl.test(l[2])&&(o=RegExp("</"+l[2],"g")),s=or):l[3]!==void 0&&(s=or):s===or?l[0]===">"?(s=o??Hn,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]==='"'?ml:dl):s===ml||s===dl?s=or:s===pl||s===hl?s=Hn:(s=or,o=void 0);let y=s===or&&t[a+1].startsWith("/>")?" ":"";i+=s===Hn?u+Sy:f>=0?(n.push(c),u.slice(0,f)+Qs+u.slice(f)+bt+y):u+bt+(f===-2?a:y)}return[wl(t,i+(t[r]||"<?>")+(e===2?"</svg>":"")),n]},Gn=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]=Sl(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]==="."?ei:w[1]==="?"?ti:w[1]==="@"?ri:ur}),o.removeAttribute(f)}else f.startsWith(bt)&&(u.push({type:6,index:i}),o.removeAttribute(f));if(bl.test(o.tagName)){let f=o.textContent.split(bt),h=f.length-1;if(h>0){o.textContent=Xo?Xo.emptyScript:"";for(let y=0;y<h;y++)o.append(f[y],zn()),ir.nextNode(),u.push({type:2,index:++i});o.append(f[h],zn())}}}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===Ee)return e;let o=n!==void 0?r._$Co?.[n]:r._$Cl,i=Vn(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 Ko=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 ni(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=me,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),Vn(e)?e===me||e==null||e===""?(this._$AH!==me&&this._$AR(),this._$AH=me):e!==this._$AH&&e!==Ee&&this._(e):e._$litType$!==void 0?this.g(e):e.nodeType!==void 0?this.$(e):xl(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!==me&&Vn(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=Gn.createElement(wl(n.h,n.h[0]),this.options)),n);if(this._$AH?._$AD===o)this._$AH.p(r);else{let i=new Ko(o,this),s=i.u(this.options);i.p(r),this.$(s),this._$AH=i}}_$AC(e){let r=gl.get(e.strings);return r===void 0&&gl.set(e.strings,r=new Gn(e)),r}T(e){yl(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(zn()),this.k(zn()),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=me,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=me}_$AI(e,r=this,n,o){let i=this.strings,s=!1;if(i===void 0)e=ar(this,e,r,0),s=!Vn(e)||e!==this._$AH&&e!==Ee,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===Ee&&(c=this._$AH[u]),s||=!Vn(c)||c!==this._$AH[u],c===me?e=me:e!==me&&(e+=(c??"")+i[u+1]),this._$AH[u]=c}s&&!o&&this.j(e)}j(e){e===me?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}},ei=class extends ur{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===me?void 0:e}},ti=class extends ur{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==me)}},ri=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)??me)===Ee)return;let n=this._$AH,o=e===me&&n!==me||e.capture!==n.capture||e.once!==n.once||e.passive!==n.passive,i=e!==me&&(n===me||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)}},ni=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)}},El={S:Qs,A:bt,P:Zs,C:1,M:Sl,L:Ko,R:xl,V:ar,D:Fr,I:ur,H:ti,N:ri,U:ei,B:ni},Ey=Ys.litHtmlPolyfillSupport;Ey?.(Gn,Fr),(Ys.litHtmlVersions??=[]).push("3.0.0");var Jn=(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(zn(),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=Jn(r,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return Ee}};Ut._$litElement$=!0,Ut["finalized"]=!0,globalThis.litElementHydrateSupport?.({LitElement:Ut});var Ty=globalThis.litElementPolyfillSupport;Ty?.({LitElement:Ut});(globalThis.litElementVersions??=[]).push("4.0.0");var jm=De(ii(),1);var xe={};X(xe,{ObservableIntake:()=>ha,Observablemap:()=>pa,rxjs:()=>to});var Q={};X(Q,{CumulativeDeferred:()=>ai,Deferred:()=>si,cumulativeDefer:()=>Cy,defer:()=>cr,getFirstTrueOrFalse:()=>$y,map:()=>My,rejectedPromise:()=>Iy,resolvedPromise:()=>Ay,timeoutAndContinue:()=>Py,timeoutWrap:()=>Tl});var si=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 si;var ai=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)}},Cy=()=>new ai;var Ay=t=>Promise.resolve(t),Iy=t=>Promise.reject(t),My=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},Tl=async(t,e,r=!0)=>new Promise((n,o)=>{setTimeout(()=>{r?o(new Error("timeout")):n(null)},e),t.then(n,o)}),Py=async(t,e=6e4)=>Tl(t,e,!1),$y=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 to={};X(to,{Observable:()=>le,ReplaySubject:()=>na,Subject:()=>wt,Subscription:()=>ot,from:()=>Kn,fromEvent:()=>mr,ops:()=>n0});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 _l(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 ui(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 Cl(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 Al(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 ci(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 li=ci(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
|
|
18
|
-
`):t.replace(new RegExp(
|
|
19
|
-
`)}var
|
|
20
|
-
`);return
|
|
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: ${
|
|
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 li?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{Il(w)}catch(A){i=i??[],A instanceof li?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 li(i)}},t.prototype.add=function(e){var r;if(e&&e!==this)if(this.closed)Il(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 fi(t){return t instanceof ot||t&&"closed"in t&&G(t.remove)&&G(t.add)&&G(t.unsubscribe)}function Il(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 pi(t){Ur.setTimeout(function(){var e=it.onUnhandledError;if(e)e(t);else throw t})}function pr(){}var Ml=function(){return ea("C",void 0,void 0)}();function Pl(t){return ea("E",void 0,t)}function $l(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 Nl(t){it.useDeprecatedSynchronousErrorHandling&&hr&&(hr.errorThrown=!0,hr.error=t)}var Yn=function(t){Re(e,t);function e(r){var n=t.call(this)||this;return n.isStopped=!1,r?(n.destination=r,fi(r)&&r.add(n)):n.destination=Ry,n}return e.create=function(r,n,o){return new di(r,n,o)},e.prototype.next=function(r){this.isStopped?ra($l(r),this):this._next(r)},e.prototype.error=function(r){this.isStopped?ra(Pl(r),this):(this.isStopped=!0,this._error(r))},e.prototype.complete=function(){this.isStopped?ra(Ml,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 Oy=Function.prototype.bind;function ta(t,e){return Oy.call(t,e)}var Dy=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){hi(n)}},t.prototype.error=function(e){var r=this.partialObserver;if(r.error)try{r.error(e)}catch(n){hi(n)}else hi(e)},t.prototype.complete=function(){var e=this.partialObserver;if(e.complete)try{e.complete()}catch(r){hi(r)}},t}(),di=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 Dy(s),i}return e}(Yn);function hi(t){it.useDeprecatedSynchronousErrorHandling?Nl(t):pi(t)}function By(t){throw t}function ra(t,e){var r=it.onStoppedNotification;r&&Ur.setTimeout(function(){return r(t,e)})}var Ry={closed:!0,next:pr,error:By,complete:pr};var kr=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function mi(t){return t}function Ol(t){return t.length===0?mi: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=Uy(e)?e:new di(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=Dl(r),new r(function(o,i){var s=new di({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 Ol(e)(this)},t.prototype.toPromise=function(e){var r=this;return e=Dl(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 Dl(t){var e;return(e=t??it.Promise)!==null&&e!==void 0?e:Promise}function Fy(t){return t&&G(t.next)&&G(t.error)&&G(t.complete)}function Uy(t){return t&&t instanceof Yn||Fy(t)&&fi(t)}function Ly(t){return G(t?.lift)}function ye(t){return function(e){if(Ly(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 ky(t,e,r,n,o)}var ky=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}(Yn);var Bl=ci(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 Rl(this,this);return n.operator=r,n},e.prototype._throwIfClosed=function(){if(this.closed)throw new Bl},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 Rl(r,n)},e}(le);var Rl=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 Qn={now:function(){return(Qn.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=Qn);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 Fl=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 Zn={setInterval:function(t,e){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var o=Zn.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=Zn.delegate;return(e?.clearInterval||clearInterval)(t)},delegate:void 0};var Ul=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),Zn.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&&Zn.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}(Fl);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=Qn.now,t}();var Ll=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 Xn=new Ll(Ul),kl=Xn;function gi(t){return t&&G(t.schedule)}function jy(t){return t[t.length-1]}function yi(t){return gi(jy(t))?t.pop():void 0}var jr=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 qy(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var Si=qy();function Ei(t){return G(t?.[Si])}function Ti(t){return Cl(this,arguments,function(){var r,n,o,i;return ui(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 Wy(t);if(jr(t))return Hy(t);if(xi(t))return zy(t);if(vi(t))return jl(t);if(Ei(t))return Vy(t);if(_i(t))return Gy(t)}throw wi(t)}function Wy(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 Hy(t){return new le(function(e){for(var r=0;r<t.length&&!e.closed;r++)e.next(t[r]);e.complete()})}function zy(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,pi)})}function Vy(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 jl(t){return new le(function(e){Jy(t,e).catch(function(r){return e.error(r)})})}function Gy(t){return jl(Ti(t))}function Jy(t,e){var r,n,o,i;return _l(this,void 0,void 0,function(){var s,a;return ui(this,function(u){switch(u.label){case 0:u.trys.push([0,5,6,11]),r=Al(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),ye(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),ye(function(r,n){n.add(t.schedule(function(){return r.subscribe(n)},e))})}function ql(t,e){return Me(t).pipe(Ai(e),Ci(e))}function Wl(t,e){return Me(t).pipe(Ai(e),Ci(e))}function Hl(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 zl(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 Vl(t,e){return Ii(Ti(t),e)}function Gl(t,e){if(t!=null){if(bi(t))return ql(t,e);if(jr(t))return Hl(t,e);if(xi(t))return Wl(t,e);if(vi(t))return Ii(t,e);if(Ei(t))return zl(t,e);if(_i(t))return Vl(t,e)}throw wi(t)}function Kn(t,e){return e?Gl(t,e):Me(t)}function Jl(t){return t instanceof Date&&!isNaN(t)}function dr(t,e){return ye(function(r,n){var o=0;r.subscribe(Te(n,function(i){n.next(t.call(e,i,o++))}))})}var Yy=Array.isArray;function Qy(t,e){return Yy(e)?t.apply(void 0,nt([],ze(e))):t(e)}function Yl(t){return dr(function(e){return Qy(t,e)})}function Ql(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 eo(t,e,r){return r===void 0&&(r=1/0),G(e)?eo(function(n,o){return dr(function(i,s){return e(n,i,o,s)})(Me(t(n,o)))},r):(typeof e=="number"&&(r=e),ye(function(n,o){return Ql(n,o,t,r)}))}function Zl(t){return t===void 0&&(t=1/0),eo(mi,t)}function Xl(){return Zl(1)}function ia(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return Xl()(Kn(t,yi(t)))}var Zy=["addListener","removeListener"],Xy=["addEventListener","removeEventListener"],Ky=["on","off"];function mr(t,e,r,n){if(G(r)&&(n=r,r=void 0),n)return mr(t,e,r).pipe(Yl(n));var o=ze(r0(t)?Xy.map(function(a){return function(u){return t[a](e,u,r)}}):e0(t)?Zy.map(Kl(t,e)):t0(t)?Ky.map(Kl(t,e)):[],2),i=o[0],s=o[1];if(!i&&jr(t))return eo(function(a){return mr(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 Kl(t,e){return function(r){return function(n){return t[r](e,n)}}}function e0(t){return G(t.addListener)&&G(t.removeListener)}function t0(t){return G(t.on)&&G(t.off)}function r0(t){return G(t.addEventListener)&&G(t.removeEventListener)}function ef(t,e,r){t===void 0&&(t=0),r===void 0&&(r=kl);var n=-1;return e!=null&&(gi(e)?r=e:n=e),new le(function(o){var i=Jl(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 sa(t,e){return ye(function(r,n){var o=0;r.subscribe(Te(n,function(i){return t.call(e,i,o++)&&n.next(i)}))})}function aa(t){return ye(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 ua(t,e){return e===void 0&&(e=Xn),ye(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 ca(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var r=yi(t);return ye(function(n,o){(r?ia(t,n,r):ia(t,n)).subscribe(o)})}function la(t){return ye(function(e,r){Me(t).subscribe(Te(r,function(){return r.complete()},pr)),!r.closed&&e.subscribe(r)})}function tf(t,e){return ye(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 fa(t,e,r){e===void 0&&(e=Xn);var n=ef(t,e);return tf(function(){return n},r)}var n0={debounce:aa,debounceTime:ua,map:dr,startWith:ca,takeUntil:la,throttleTime:fa,filter:sa};var pa=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=mr(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 ha=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 o0={attribute:!0,type:String,converter:Wn,reflect:!1,hasChanged:Zo},i0=(t=o0,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"?i0(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:()=>Ao,breakpoints:()=>$t,css:()=>Dc,elementBasic:()=>Ce,plugins:()=>oE});var Ce={};X(Ce,{setup:()=>rE,staticStyles:()=>eE,styles:()=>tE});var gs={};X(gs,{DeesComms:()=>yc});var se={};X(se,{Timeout:()=>Mi,delayFor:()=>rf,delayForRandom:()=>s0});var rf=async(t,e,r=!1)=>(await new Mi(t,null,r).promise,e),s0=async(t,e,r,n=!1)=>(await rf(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:()=>cc,TypedRequest:()=>Ao,TypedResponseError:()=>Cr,TypedRouter:()=>lc,TypedTarget:()=>fc});var cm=De(ii(),1);var ct={};X(ct,{AsyncExecutionStack:()=>Oa,FastMap:()=>yr,Interest:()=>io,InterestMap:()=>Da,LimitedArray:()=>Ba,LoopTracker:()=>Ra,ObjectMap:()=>Tt,Stringmap:()=>so,TimedAggregtor:()=>Fa,Tree:()=>Ua,uni:()=>Ef});var $i={};X($i,{SmartMatch:()=>ga});var Pi={};X(Pi,{isMatch:()=>c0,matcher:()=>u0});function da(t){if(typeof t!="string")throw new TypeError("Expected a string");return t.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}var ma=new Map,nf=(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})},a0=(t,e)=>{e={caseSensitive:!1,...e};let r=t+JSON.stringify(e);if(ma.has(r))return ma.get(r);let n=t[0]==="!";n&&(t=t.slice(1)),t=da(t).replace(/\\\*/g,"[\\s\\S]*");let o=new RegExp(`^${t}$`,e.caseSensitive?"":"i");return o.negated=n,ma.set(r,o),o},of=(t,e,r,n)=>{if(t=nf(t,"inputs"),e=nf(e,"patterns"),e.length===0)return[];e=e.map(s=>a0(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 u0(t,e,r){return of(t,e,r,!1)}function c0(t,e,r){return of(t,e,r,!0).length>0}var ga=class{constructor(e){this.wildcard=e}match(e){return Pi.isMatch(e,this.wildcard)}};var Et={};X(Et,{CronJob:()=>oo,CronManager:()=>Ca,ExtendedDate:()=>Aa,HrtMeasurement:()=>Ia,Interval:()=>Ma,TimeStamp:()=>Hr,Timer:()=>Pa,getMilliSecondsAsHumanReadableString:()=>_a,getMilliSecondsFromUnits:()=>Ta,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(f0(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=ya(t.tz,r),o=new Date(r.getTime()-n),i=ya(t.tz,o);if(i-n===0)return o;{let s=new Date(r.getTime()-i),a=ya(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 ya(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 f0(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 p0(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 xa=32,ro=31|xa,af=[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,ro),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));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]|xa;else if(e<6&&e>0)this.dayOfWeek[t]=this.dayOfWeek[t]|af[e-1];else if(e===ro)this.dayOfWeek[t]=ro;else throw new TypeError(`CronPattern: nth weekday of of range, should be 1-5 or L. Value: ${e}`)};var uf=[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&ro&&af[s-1]&n)return!0;if(n&xa){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>uf[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=uf[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&ro)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 h0(t){typeof Deno<"u"&&typeof Deno.unrefTimer<"u"?Deno.unrefTimer(t):t&&typeof t.unref<"u"&&t.unref()}var sf=30*1e3,no=[];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=p0(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(no.find(s=>s.name===this.name))throw new Error("Cron: Tried to initialize new named job '"+this.name+"', but name already taken.");no.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=no.indexOf(this);t>=0&&no.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>sf&&(e=sf),this._states.currentTimeout=setTimeout(()=>this._checkTrigger(r),e),this._states.currentTimeout&&this.options.unref&&h0(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=no;var qr=De(cf(),1),ff=De(lf(),1);function Ea(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 d0=(t,e)=>e===1?t:`${t}s`,m0=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+m0);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?" "+d0(a,s):u;r.push(l+c+f)},i=Ea(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(" ")}qr.default.extend(ff.default);var oo=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},Ta=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},_a=t=>Oi(t);var Ca=class{constructor(){this.status="stopped",this.cronjobs=new ct.ObjectMap}addCronjob(e,r){let n=new oo(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 ${_a(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 Aa=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=qr.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 qr.default(this.getTime()).format(e)}isToday(){return qr.default(this.getTime()).isToday()}lessTimePassedToNow(e){let r=Ta(e);return Date.now()-this.getTime()<r}moreTimePassedToNow(e){return!this.lessTimePassedToNow(e)}};var Ia=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 Ma=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 Hr=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 Pa=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 Hr;else throw new Error("timer has been started before. Please use resume instead")}pause(){this.startedAt&&(clearTimeout(this.currentTimeout),this.currentTimeout=null,this.pausedAt=Hr.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 Na=De(Sf(),1);var Oa=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 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 Ef=(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 xe.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=Ef("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 io=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 Da=class{constructor(e,r={}){this.interestObjectMap=new Tt,this.interestObservable=new xe.ObservableIntake,this.comparisonFunc=e,this.options=r}async addInterest(e,r){let n=this.comparisonFunc(e),o,i=new io(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 Ba=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 Ra=class{constructor(){this.referenceObjectMap=new Tt}checkAndTrack(e){return this.referenceObjectMap.checkForObject(e)?!1:(this.referenceObjectMap.add(e),!0)}};var so=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 Fa=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 Ua=class{constructor(){this.symbolTree=new Na.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 Co={};X(Co,{WebRequest:()=>uc});var Vr={};X(Vr,{Smartenv:()=>ao});var ao=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=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 ge={};X(ge,{Smartjson:()=>ec,deepEqualObjects:()=>x1,foldDec:()=>y1,parse:()=>tc,parseBase64:()=>g1,stringify:()=>xn,stringifyBase64:()=>m1,stringifyPretty:()=>d1});var vo={};X(vo,{Base64:()=>ts,Domain:()=>rs,GitRepo:()=>ns,base64:()=>hn,create:()=>$u,docker:()=>Nu,indent:()=>Bu,normalize:()=>Ru,type:()=>Fu});var $u={};X($u,{createCryptoRandomString:()=>Av,createRandomString:()=>Cv});var Kh=De(ii(),1),ed=De(Hf(),1),td=De(yh(),1);var Eh="3.7.5",rv=Eh,nv=typeof atob=="function",ov=typeof btoa=="function",pn=typeof Buffer=="function",xh=typeof TextDecoder=="function"?new TextDecoder:void 0,bh=typeof TextEncoder=="function"?new TextEncoder:void 0,iv="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",xo=Array.prototype.slice.call(iv),Qi=(t=>{let e={};return t.forEach((r,n)=>e[r]=n),e})(xo),sv=/^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/,Be=String.fromCharCode.bind(String),vh=typeof Uint8Array.from=="function"?Uint8Array.from.bind(Uint8Array):t=>new Uint8Array(Array.prototype.slice.call(t,0)),Th=t=>t.replace(/=/g,"").replace(/[+\/]/g,e=>e=="+"?"-":"_"),_h=t=>t.replace(/[^A-Za-z0-9\+\/]/g,""),Ch=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+=xo[e>>18&63]+xo[e>>12&63]+xo[e>>6&63]+xo[e&63]}return s?i.slice(0,s-3)+"===".substring(s):i},Au=ov?t=>btoa(t):pn?t=>Buffer.from(t,"binary").toString("base64"):Ch,_u=pn?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 Au(r.join(""))},Zi=(t,e=!1)=>e?Th(_u(t)):_u(t),av=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)}},uv=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,Ah=t=>t.replace(uv,av),wh=pn?t=>Buffer.from(t,"utf8").toString("base64"):bh?t=>_u(bh.encode(t)):t=>Au(Ah(t)),fn=(t,e=!1)=>e?Th(wh(t)):wh(t),Sh=t=>fn(t,!0),cv=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,lv=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))}},Ih=t=>t.replace(cv,lv),Mh=t=>{if(t=t.replace(/\s+/g,""),!sv.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},Iu=nv?t=>atob(_h(t)):pn?t=>Buffer.from(t,"base64").toString("binary"):Mh,Ph=pn?t=>vh(Buffer.from(t,"base64")):t=>vh(Iu(t).split("").map(e=>e.charCodeAt(0))),$h=t=>Ph(Nh(t)),fv=pn?t=>Buffer.from(t,"base64").toString("utf8"):xh?t=>xh.decode(Ph(t)):t=>Ih(Iu(t)),Nh=t=>_h(t.replace(/[-_]/g,e=>e=="-"?"+":"/")),Cu=t=>fv(Nh(t)),pv=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)},Oh=t=>({value:t,enumerable:!1,writable:!0,configurable:!0}),Dh=function(){let t=(e,r)=>Object.defineProperty(String.prototype,e,Oh(r));t("fromBase64",function(){return Cu(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 $h(this)})},Bh=function(){let t=(e,r)=>Object.defineProperty(Uint8Array.prototype,e,Oh(r));t("toBase64",function(e){return Zi(this,e)}),t("toBase64URI",function(){return Zi(this,!0)}),t("toBase64URL",function(){return Zi(this,!0)})},hv=()=>{Dh(),Bh()},bo={version:Eh,VERSION:rv,atob:Iu,atobPolyfill:Mh,btoa:Au,btoaPolyfill:Ch,fromBase64:Cu,toBase64:fn,encode:fn,encodeURI:Sh,encodeURL:Sh,utob:Ah,btou:Ih,decode:Cu,isValid:pv,fromUint8Array:Zi,toUint8Array:$h,extendString:Dh,extendUint8Array:Bh,extendBuiltins:hv};var Uh=De(Fh(),1);function Xi(t){let e=(0,Uh.default)(t);if(e===0)return t;let r=new RegExp(`^[ \\t]{${e}}`,"gm");return t.replace(r,"")}var qh=De(kh(),1),jh=`\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,qh.default)(t,jh,`
|
|
18
|
+
`):t.replace(new RegExp(jh,"g"),`
|
|
19
|
+
`)}var Pu=De(Xh(),1),_v=new ao;_v.isBrowser&&(globalThis.Buffer=ed.Buffer);var Cv=(t,e,r)=>Pu.default(t,e,r),Av=()=>Kh.uni();var Nu={};X(Nu,{makeEnvObject:()=>Iv});var Iv=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 Bu={};X(Bu,{indent:()=>Pv,indentWithPrefix:()=>$v,normalize:()=>Nv});var Ou=t=>{let e=t.split(`
|
|
20
|
+
`);return Mv(e)},Du=t=>{let e="";for(let r of t)e=e+r+`
|
|
21
|
+
`;return e},Mv=t=>{let e=/^[\s]*$/;return e.test(t[0])&&t.shift(),e.test(t[t.length-1])&&t.pop(),t},Pv=(t,e)=>{let r=Ou(t);for(let o of r)o=" ".repeat(e)+o;return Du(r)},$v=(t,e)=>{let r,n=Ou(t),o=[];for(let i of n)o.push(e+i);return r=Du(o),r},Nv=t=>{let e,r=Ou(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=Du(s),e};var Ru={};X(Ru,{replaceAll:()=>rd,standard:()=>Ov});var rd=(t,e,r)=>t.replace(new RegExp(e,"g"),r),Ov=(t,e)=>{let r=t;return(!e||e.stripIndent)&&(r=Xi(r)),(!e||e.normalizeNewline)&&(r=Ki(r)),(!e||e.replaceTabs)&&(r=rd(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 Fu={};X(Fu,{isBase64:()=>Bv,isUtf8:()=>Dv});var ts=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=>bo.encode(t),encodeUri:t=>bo.encodeURI(t),decode:t=>bo.decode(t),isBase64:t=>/^([A-Za-z0-9+/]{4})*([A-Za-z0-9+/]{3}=|[A-Za-z0-9+/]{2}==)?$/.test(t)};var Dv=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},Bv=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=td.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=Rv(e);this.host=n[1],this.user=n[2],this.repo=n[3],this.accessToken=r,this.sshUrl=nd(this.host,this.user,this.repo,this.accessToken,"ssh"),this.httpsUrl=nd(this.host,this.user,this.repo,this.accessToken,"https")}},Rv=function(t){return/([a-zA-Z0-9\-_\.]*)(?:\/|\:)([a-zA-Z0-9\-_\.]*)(?:\/)([a-zA-Z0-9\-_\.]*)(?:\.git)/.exec(t)},nd=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 Ku=De(zd(),1),em=De(Gd(),1),ps=De(Kd(),1);var tm=em.default;var tc=ps.default.parse,xn=(t,e,r={})=>{let n=ps.default.stringify(t);return t=JSON.parse(n),tm(t,r)},d1=t=>{let e=xn(t),r=JSON.parse(e);return JSON.stringify(r,null,2)},m1=(...t)=>{let e=xn(...t);return vo.base64.encodeUri(e)},g1=t=>{let e=vo.base64.decode(t);return tc(e)},ec=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=tc(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]=Ku.default(o)}return e}foldToJson(){let e=this.foldToObject();return xn(e)}},y1=()=>(t,e)=>{t.saveableProperties||(t.saveableProperties=[]),t.saveableProperties.push(e)},x1=(t,e)=>{let r=xn(t),n=xn(e);return r===n};var Jt={};X(Jt,{TypedrequestCache:()=>ac,WebStore:()=>_o});var hs={};X(hs,{deleteDB:()=>A1,openDB:()=>C1,unwrap:()=>To,wrap:()=>Ze});var b1=(t,e)=>e.some(r=>t instanceof r),rm,nm;function v1(){return rm||(rm=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])}function w1(){return nm||(nm=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])}var om=new WeakMap,nc=new WeakMap,im=new WeakMap,rc=new WeakMap,ic=new WeakMap;function S1(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&&om.set(r,t)}).catch(()=>{}),ic.set(e,t),e}function E1(t){if(nc.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)});nc.set(t,e)}var oc={get(t,e,r){if(t instanceof IDBTransaction){if(e==="done")return nc.get(t);if(e==="objectStoreNames")return t.objectStoreNames||im.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 sm(t){oc=t(oc)}function T1(t){return t===IDBDatabase.prototype.transaction&&!("objectStoreNames"in IDBTransaction.prototype)?function(e,...r){let n=t.call(To(this),e,...r);return im.set(n,e.sort?e.sort():[e]),Ze(n)}:w1().includes(t)?function(...e){return t.apply(To(this),e),Ze(om.get(this))}:function(...e){return Ze(t.apply(To(this),e))}}function _1(t){return typeof t=="function"?T1(t):(t instanceof IDBTransaction&&E1(t),b1(t,v1())?new Proxy(t,oc):t)}function Ze(t){if(t instanceof IDBRequest)return S1(t);if(rc.has(t))return rc.get(t);let e=_1(t);return e!==t&&(rc.set(t,e),ic.set(e,t)),e}var To=t=>ic.get(t);function C1(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 A1(t,{blocked:e}={}){let r=indexedDB.deleteDatabase(t);return e&&r.addEventListener("blocked",n=>e(n.oldVersion,n)),Ze(r).then(()=>{})}var I1=["get","getKey","getAll","getAllKeys","count"],M1=["put","add","delete","clear"],sc=new Map;function am(t,e){if(!(t instanceof IDBDatabase&&!(e in t)&&typeof e=="string"))return;if(sc.get(e))return sc.get(e);let r=e.replace(/FromIndex$/,""),n=e!==r,o=M1.includes(r);if(!(r in(n?IDBIndex:IDBObjectStore).prototype)||!(o||I1.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 sc.set(e,i),i}sm(t=>({...t,get:(e,r,n)=>am(e,r)||t.get(e,r,n),has:(e,r)=>!!am(e,r)||t.has(e,r)}));var _o=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 Vr.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 ac=class{constructor(e="default"){this.webstore=new _o({dbName:"trStore",storeName:`trStore-${e}`})}buildKey(e){return ge.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 uc=class{constructor(e={}){this.optionsArg=e,this.cacheStore=new Jt.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 ge.parse(o)}async postJson(e,r,n=!1){let i=await(await this.request(e,{method:"POST",headers:{"Content-Type":"application/json"},body:ge.stringify(r),useCache:n})).text();return ge.parse(i)}async putJson(e,r,n=!1){let i=await(await this.request(e,{method:"PUT",headers:{"Content-Type":"application/json"},body:ge.stringify(r)})).text();return ge.parse(i)}async deleteJson(e,r=!1){let o=await(await this.request(e,{headers:{"Content-Type":"application/json"},method:"GET"})).text();return ge.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()*(2e3-1e3+1))+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 cc=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 lc=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 fc=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 N1=new Co.WebRequest,Ao=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:cm.uni(),phase:"request"}},o;if(this.urlEndPoint?o=await N1.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 pm(t){return!!(t&&typeof t.then=="function")}function ds(t){return t||(t=0),new Promise(function(e){return setTimeout(e,t)})}function hm(t,e){return Math.floor(Math.random()*(e-t+1)+t)}function Io(){return Math.random().toString(36).substring(2)}var fm=0,pc=0;function Yt(){var t=new Date().getTime();return t===fm?(pc++,t*1e3+pc):(fm=t,pc=0,t*1e3)}var Mt=Object.prototype.toString.call(typeof process<"u"?process:0)==="[object process]";var O1=Yt,D1="native";function B1(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 F1(t,e){try{return t.bc.postMessage(e,!1),Promise.resolve()}catch(r){return Promise.reject(r)}}function U1(t,e){t.messagesCallback=e}function L1(){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 k1(){return 150}var dm={create:B1,close:R1,onMessage:U1,postMessage:F1,canBeUsed:L1,type:D1,averageResponseTime:k1,microSeconds:O1};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,mm()),this.set.add(e),setTimeout(function(){j1(r)},0)},t.prototype.clear=function(){this.set.clear(),this.timeMap.clear()},t}();function j1(t){for(var e=mm()-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 mm(){return new Date().getTime()}function bn(){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 q1=Yt,W1="pubkey.broadcast-channel-0-",Pt="messages",H1="idb";function gm(){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 z1(t){var e=gm(),r=W1+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 V1(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 G1(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 J1(t,e){var r=t.transaction([Pt],"readwrite").objectStore(Pt).delete(e);return new Promise(function(n){r.onsuccess=function(){return n()}})}function Y1(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 Q1(t,e){return Y1(t,e).then(function(r){return Promise.all(r.map(function(n){return J1(t,n.id)}))})}function Z1(t,e){return e=bn(e),z1(t).then(function(r){var n={closed:!1,lastCursorId:0,channelName:t,options:e,uuid:Io(),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()},ym(n),n})}function ym(t){t.closed||xm(t).then(function(){return ds(t.options.idb.fallbackInterval)}).then(function(){return ym(t)})}function X1(t,e){return!(t.uuid===e.uuid||e.eMIs.has(t.id)||t.data.time<e.messagesCallbackTime)}function xm(t){return t.closed||!t.messagesCallback?Promise.resolve():G1(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 K1(t){t.closed=!0,t.db.close()}function eS(t,e){return t.writeBlockPromise=t.writeBlockPromise.then(function(){return V1(t.db,t.uuid,e)}).then(function(){hm(0,10)===0&&Q1(t.db,t.options.idb.ttl)}),t.writeBlockPromise}function tS(t,e,r){t.messagesCallbackTime=r,t.messagesCallback=e,xm(t)}function rS(){if(Mt)return!1;var t=gm();return!!t}function nS(t){return t.idb.fallbackInterval*2}var bm={create:Z1,close:K1,onMessage:tS,postMessage:eS,canBeUsed:rS,type:H1,averageResponseTime:nS,microSeconds:q1};var oS=Yt,iS="pubkey.broadcastChannel-",sS="localstorage";function vm(){var t;if(typeof window>"u")return null;try{t=window.localStorage,t=window["ie8-eventlistener/storage"]||window.localStorage}catch{}return t}function wm(t){return iS+t}function aS(t,e){return new Promise(function(r){ds().then(function(){var n=wm(t.channelName),o={token:Io(),time:new Date().getTime(),data:e,uuid:t.uuid},i=JSON.stringify(o);vm().setItem(n,i);var s=document.createEvent("Event");s.initEvent("storage",!0,!0),s.key=n,s.newValue=i,window.dispatchEvent(s),r()})})}function uS(t,e){var r=wm(t),n=function(i){i.key===r&&e(JSON.parse(i.newValue))};return window.addEventListener("storage",n),n}function cS(t){window.removeEventListener("storage",t)}function lS(t,e){if(e=bn(e),!Sm())throw new Error("BroadcastChannel: localstorage cannot be used");var r=Io(),n=new ms(e.localstorage.removeTimeout),o={channelName:t,uuid:r,eMIs:n};return o.listener=uS(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 fS(t){cS(t.listener)}function pS(t,e,r){t.messagesCallbackTime=r,t.messagesCallback=e}function Sm(){if(Mt)return!1;var t=vm();if(!t)return!1;try{var e="__broadcastchannel_check";t.setItem(e,"works"),t.removeItem(e)}catch{return!1}return!0}function hS(){var t=120,e=navigator.userAgent.toLowerCase();return e.includes("safari")&&!e.includes("chrome")?t*2:t}var Em={create:lS,close:fS,onMessage:pS,postMessage:aS,canBeUsed:Sm,type:sS,averageResponseTime:hS,microSeconds:oS};var dS=Yt,mS="simulate",hc=new Set;function gS(t){var e={name:t,messagesCallback:null};return hc.add(e),e}function yS(t){hc.delete(t)}function xS(t,e){return new Promise(function(r){return setTimeout(function(){var n=Array.from(hc);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 bS(t,e){t.messagesCallback=e}function vS(){return!0}function wS(){return 5}var Tm={create:gS,close:yS,onMessage:bS,postMessage:xS,canBeUsed:vS,type:mS,averageResponseTime:wS,microSeconds:dS};var mc=[dm,bm,Em];Mt&&(dc=_m(),typeof dc.canBeUsed=="function"&&mc.push(dc));var dc;function Cm(t){var e=[].concat(t.methods,mc).filter(Boolean);if(t.type){if(t.type==="simulate")return Tm;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(mc.map(function(o){return o.type})))}var vn=function(e,r){this.name=e,Am&&(r=Am),this.options=bn(r),this.method=Cm(this.options),this._iL=!1,this._onML=null,this._addEL={message:[],internal:[]},this._uMP=new Set,this._befC=[],this._prepP=null,SS(this)};vn._pubkey=!0;var Am;vn.prototype={postMessage:function(e){if(this.closed)throw new Error("BroadcastChannel.postMessage(): Cannot post message after channel has closed");return Im(this,"message",e)},postInternal:function(e){return Im(this,"internal",e)},set onmessage(t){var e=this.method.microSeconds(),r={time:e,fn:t};Pm(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});Pm(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 Im(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 SS(t){var e=t.method.create(t.name,t.options);pm(e)?(t._prepP=e,e.then(function(r){t._state=r})):t._state=e}function $m(t){return t._addEL.message.length>0||t._addEL.internal.length>0}function Mm(t,e,r){t._addEL[e].push(r),ES(t)}function Pm(t,e,r){t._addEL[e]=t._addEL[e].filter(function(n){return n!==r}),TS(t)}function ES(t){if(!t._iL&&$m(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 TS(t){if(t._iL&&!$m(t)){t._iL=!1;var e=t.method.microSeconds();t.method.onMessage(t._state,null,e)}}var gc=globalThis.BroadcastChannel;gc||(gc=vn);var yc=class{constructor(){this.broadcastChannel=new gc("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:()=>wc});var ys={};X(ys,{compile:()=>AS,match:()=>IS,parse:()=>xc,pathToRegexp:()=>vc,regexpToFunction:()=>Om,tokensToFunction:()=>Nm,tokensToRegexp:()=>Dm});function CS(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 xc(t,e){e===void 0&&(e={});for(var r=CS(t),n=e.prefixes,o=n===void 0?"./":n,i="[^".concat(wn(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 AS(t,e){return Nm(xc(t,e),e)}function Nm(t,e){e===void 0&&(e={});var r=bc(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 IS(t,e){var r=[],n=vc(t,r,e);return Om(n,r,e)}function Om(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 wn(t){return t.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1")}function bc(t){return t&&t.sensitive?"":"i"}function MS(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 PS(t,e,r){var n=t.map(function(o){return vc(o,e,r).source});return new RegExp("(?:".concat(n.join("|"),")"),bc(r))}function $S(t,e,r){return Dm(xc(t,r),e,r)}function Dm(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(wn(w),"]|$"),O="[".concat(wn(h),"]"),_=s?"^":"",I=0,D=t;I<D.length;I++){var N=D[I];if(typeof N=="string")_+=wn(l(N));else{var q=wn(l(N.prefix)),U=wn(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(_,bc(r))}function vc(t,e,r){return t instanceof RegExp?MS(t,e):Array.isArray(t)?PS(t,e,r):$S(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 wc=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 Sn={};X(Sn,{Smartstate:()=>Ec,StateAction:()=>Mo,StatePart:()=>Po});var Ss={};X(Ss,{sha256FromString:()=>RS});var ws={};X(ws,{Smartenv:()=>Sc});var Rm=De(Bm(),1);var Sc=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=Rm.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 BS=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 ws.Smartenv;if(e.isBrowser){let r=new TextEncoder().encode(t),n=await crypto.subtle.digest("SHA-256",r);return BS(n)}else if(e.isNode)return await(await e.getSafeNodeModule("@pushrocks/smarthash")).sha256FromString(t)};var Mo=class{constructor(e,r){this.statePartRef=e,this.actionDef=r}trigger(e){this.statePartRef.dispatchAction(this,e)}};var Po=class{constructor(e,r){this.state=new xe.rxjs.Subject,this.cumulativeDeferred=Q.cumulativeDefer(),this.webStore=null,this.name=e,r&&(this.webStoreOptions=r)}async init(){if(this.webStoreOptions){this.webStore=new Jt.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(ge.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(xe.rxjs.ops.startWith(this.getState()),xe.rxjs.ops.map(n=>{try{return e(n)}catch{}}))}createAction(e){return new Mo(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 Ec=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 Po(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:()=>Tc});var Tc=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 _n={};X(_n,{CumulativeDeferred:()=>Ts,Deferred:()=>Es,cumulativeDefer:()=>US,defer:()=>Tn,getFirstTrueOrFalse:()=>WS,map:()=>jS,rejectedPromise:()=>kS,resolvedPromise:()=>LS,timeoutAndContinue:()=>qS,timeoutWrap:()=>Fm});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"})}},Tn=()=>new Es;var Ts=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)}},US=()=>new Ts;var LS=t=>Promise.resolve(t),kS=t=>Promise.reject(t),jS=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},Fm=async(t,e,r=!0)=>new Promise((n,o)=>{setTimeout(()=>{r?o(new Error("timeout")):n(null)},e),t.then(n,o)}),qS=async(t,e=6e4)=>Fm(t,e,!1),WS=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 Qt=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 Qt{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 Qt{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 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(Cn.createNewsArticleJsonLd(e)),this.addTag(We.createNewsArticleOgTags(e))}addProductInfo(e,r){this.addTag(Cn.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 Qt{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 An(this,"global"),this.baseLevel=new An(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 An(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=_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 $o=De(Lm(),1);var Ac={ObjectMap:Tt,Stringmap:so,FastMap:yr};var $t={};X($t,{cssForDesktop:()=>YS,cssForNotebook:()=>QS,cssForPhablet:()=>XS,cssForPhone:()=>KS,cssForTablet:()=>ZS,desktop:()=>Ic,notebook:()=>Mc,phablet:()=>$c,phone:()=>Nc,tablet:()=>Pc});var Ic=1600,Mc=1240,Pc=1024,$c=600,Nc=400,YS=t=>V(`
|
|
22
|
+
@container wccToolsViewport (min-width: ${Ic}px) {
|
|
23
23
|
${t.cssText}
|
|
24
24
|
}
|
|
25
|
-
@media (min-width: ${
|
|
25
|
+
@media (min-width: ${Ic}px) {
|
|
26
26
|
${t.cssText}
|
|
27
27
|
}
|
|
28
|
-
`),
|
|
29
|
-
@container wccToolsViewport (max-width: ${
|
|
28
|
+
`),QS=t=>V(`
|
|
29
|
+
@container wccToolsViewport (max-width: ${Mc}px) {
|
|
30
30
|
${t.cssText}
|
|
31
31
|
}
|
|
32
|
-
@media (max-width: ${
|
|
32
|
+
@media (max-width: ${Mc}px) {
|
|
33
33
|
${t.cssText}
|
|
34
34
|
}
|
|
35
|
-
`),
|
|
36
|
-
@container wccToolsViewport (max-width: ${
|
|
35
|
+
`),ZS=t=>V(`
|
|
36
|
+
@container wccToolsViewport (max-width: ${Pc}px) {
|
|
37
37
|
${t.cssText}
|
|
38
38
|
}
|
|
39
|
-
@media (max-width: ${
|
|
39
|
+
@media (max-width: ${Pc}px) {
|
|
40
40
|
${t.cssText}
|
|
41
41
|
}
|
|
42
|
-
`),
|
|
43
|
-
@container wccToolsViewport (max-width: ${
|
|
42
|
+
`),XS=t=>V(`
|
|
43
|
+
@container wccToolsViewport (max-width: ${$c}px) {
|
|
44
44
|
${t.cssText}
|
|
45
45
|
}
|
|
46
|
-
@media (max-width: ${
|
|
46
|
+
@media (max-width: ${$c}px) {
|
|
47
47
|
${t.cssText}
|
|
48
48
|
}
|
|
49
|
-
`),
|
|
50
|
-
@container wccToolsViewport (max-width: ${
|
|
49
|
+
`),KS=t=>V(`
|
|
50
|
+
@container wccToolsViewport (max-width: ${Nc}px) {
|
|
51
51
|
${t.cssText}
|
|
52
52
|
}
|
|
53
|
-
@media (max-width: ${
|
|
53
|
+
@media (max-width: ${Nc}px) {
|
|
54
54
|
${t.cssText}
|
|
55
55
|
}
|
|
56
|
-
`);var
|
|
56
|
+
`);var Is=class{constructor(e){this.goBrightBoolean=!1,this.preferredColorSchemeMediaMatch=window.matchMedia("(prefers-color-scheme: light)"),this.themeObservable=new xe.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 Oc;(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"})(Oc||(Oc={}));var Ms=class{constructor(e){this.domNode=e,this.mapCombosToHandlers=new Map,this.pressedKeys=new Set,this.keyEnum=Oc,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 xe.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 Sn.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:ge,smarturl:En},this.deesComms=new gs.DeesComms,this.scroller=new $o.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 Ac.Stringmap,this.runOnceResultMap=new Ac.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})(),
|
|
64
|
+
`.cssText})(),km=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
|
-
${
|
|
83
|
-
`.cssText;var
|
|
82
|
+
${V(Ps)}
|
|
83
|
+
`.cssText;var eE=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
|
-
${
|
|
95
|
-
`,
|
|
94
|
+
${V(Ps)}
|
|
95
|
+
`,tE=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
|
-
${
|
|
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
|
+
`,rE=async(t,e={})=>{let r=await he.setupDomTools(e);return r.runOnce("elementBasicSetup",async()=>{r.setGlobalStyles(km)}),r};var Dc={};X(Dc,{cssGridColumns:()=>nE});var nE=(t,e)=>{let r="";for(let n=0;n<t;n++)r+=` calc((100%/${t}) - (${e*(t-1)}px/${t}))`;return r};var oE={smartdelay:se,smartpromise:Q,SweetScroll:$o.default,smartstate:Sn,smartrx:xe,smarturl:En,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:`--${jm.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 No=class extends Ir{constructor(e){if(super(e),this.et=me,e.type!==Mr.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(e){if(e===me||e==null)return this.vt=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.vt;this.et=e;let r=[e];return r.raw=r,this.vt={_$litType$:this.constructor.resultType,strings:r,values:[]}}};No.directiveName="unsafeHTML",No.resultType=1;var iE=Ve(No);var Ae=t=>(e,r)=>{r!==void 0?r.addInitializer(()=>{customElements.define(t,e)}):customElements.define(t,e)};var{D:sE}=El,Hm=t=>t===null||typeof t!="object"&&typeof t!="function";var zm=t=>t.strings===void 0,Wm=()=>document.createComment(""),Vm=(t,e,r)=>{let n=t._$AA.parentNode,o=e===void 0?t._$AB:e._$AA;if(r===void 0){let i=n.insertBefore(Wm(),o),s=n.insertBefore(Wm(),o);r=new sE(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},Gm=(t,e,r=t)=>(t._$AI(e,r),t);var Jm=t=>{t._$AR()};var Oo=(t,e)=>{let r=t._$AN;if(r===void 0)return!1;for(let n of r)n._$AO?.(e,!1),Oo(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)},Ym=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),cE(e)}};function aE(t){this._$AN!==void 0?(Os(this),this._$AM=t,Ym(this)):this._$AM=t}function uE(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++)Oo(n[i],!1),Os(n[i]);else n!=null&&(Oo(n,!1),Os(n));else Oo(this,t)}var cE=t=>{t.type==Mr.CHILD&&(t._$AP??=uE,t._$AQ??=aE)},mt=class extends Ir{constructor(){super(...arguments),this._$AN=void 0}_$AT(e,r,n){super._$AT(e,r,n),Ym(this),this.isConnected=e._$AU}_$AO(e,r=!0){e!==this.isConnected&&(this.isConnected=e,e?this.reconnected?.():this.disconnected?.()),r&&(Oo(this,e),Os(this))}setValue(e){if(zm(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 Qm=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(){this.Y??=new Promise(e=>this.Z=e)}resume(){this.Z?.(),this.Y=this.Z=void 0}};var Zm=t=>!Hm(t)&&typeof t.then=="function",Xm=1073741823,Bc=class extends mt{constructor(){super(...arguments),this._$C_t=Xm,this._$Cwt=[],this._$Cq=new In(this),this._$CK=new Mn}render(...e){return e.find(r=>!Zm(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(!Zm(u))return this._$C_t=a,u;a<o&&u===n[a]||(this._$C_t=Xm,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 Ee}disconnected(){this._$Cq.disconnect(),this._$CK.pause()}reconnected(){this._$Cq.reconnect(this),this._$CK.resume()}},lE=Ve(Bc);var Do=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 Qm(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()}},pR=Ve(Do);var fE=Ve(class extends Do{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&&Jm(this._$CJ);let r=Vm(this._$CJ);Gm(r,t)}});var Km=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},eg=function(t,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(t,e)},de=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"))}};Km([Ar.property({type:Boolean}),eg("design:type",Boolean)],de.prototype,"goBright",void 0);Km([Ar.property(),eg("design:type",Oe.DomTools)],de.prototype,"domtools",void 0);var Rc=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)}},pE=Ve(Rc);var Fc=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)}},hE=Ve(Fc);var Ds=new $s;var ny=De(ry(),1);var iy={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"},sy={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"},tr={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:iy,billedTo:sy,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:iy,to:sy,incidenceId:null,language:null,legalContact:null,logoUrl:null,pdfAttachments:null,subject:"Invoice: LL-INV-48765"};var Bn=1122,Wo=794,et=70,Rn=90;var Dr=class extends de{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();
|
|
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();Jn(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=>
|
|
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
|
|
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?
|
|
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?
|
|
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
|
-
`:
|
|
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");
|
|
256
|
+
`,r.currentContent);let n=document.createElement("canvas");ny.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)}};
|
|
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
|
-
`,
|
|
277
|
+
`,Dr.styles=[Ce.staticStyles,te`
|
|
278
278
|
:host {
|
|
279
279
|
color: #333;
|
|
280
280
|
}
|
|
@@ -285,44 +285,54 @@ EPC QR Code`,o=>{o&&console.error(o),console.log("success!")}),r.currentContent.
|
|
|
285
285
|
|
|
286
286
|
.repeatedContent {
|
|
287
287
|
}
|
|
288
|
-
`],
|
|
289
|
-
<
|
|
290
|
-
<dedocument-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
288
|
+
`],W([J({type:Object,reflect:!0})],Dr.prototype,"letterData",2),Dr=W([Ae("dedocument-contentinvoice")],Dr);var Le=class extends de{constructor(){super();this.viewWidth=null;this.viewHeight=null;this.format="a4";this.pageNumber=1;this.pageTotalNumber=1;this.letterData=tr;this.printMode=!1;he.setupDomTools()}render(){return k`
|
|
289
|
+
<div id="scaleWrapper">
|
|
290
|
+
<dedocument-pagecontainer .printMode=${this.printMode}>
|
|
291
|
+
<dedocument-pageheader
|
|
292
|
+
.letterData=${this.letterData}
|
|
293
|
+
.pageNumber="${this.pageNumber}"
|
|
294
|
+
.pageTotalNumber="${this.pageTotalNumber}"
|
|
295
|
+
></dedocument-pageheader>
|
|
296
|
+
${this.pageNumber===1?k`
|
|
297
|
+
<dedocument-letterheader
|
|
298
|
+
.pageNumber="${this.pageNumber}"
|
|
299
|
+
.letterData=${this.letterData}
|
|
300
|
+
.pageTotalNumber="${this.pageTotalNumber}"
|
|
301
|
+
></dedocument-letterheader>
|
|
302
|
+
`:k``}
|
|
303
|
+
<dedocument-pagecontent
|
|
304
|
+
.pageNumber="${this.pageNumber}"
|
|
305
|
+
.pageTotalNumber="${this.pageTotalNumber}"
|
|
306
|
+
.letterData=${this.letterData}
|
|
307
|
+
><slot></slot
|
|
308
|
+
></dedocument-pagecontent>
|
|
309
|
+
<dedocument-pagefooter
|
|
310
|
+
.letterData=${this.letterData}
|
|
311
|
+
.pageNumber="${this.pageNumber}"
|
|
312
|
+
.pageTotalNumber="${this.pageTotalNumber}"
|
|
313
|
+
></dedocument-pagefooter>
|
|
314
|
+
<div class="versionOverlay">
|
|
315
|
+
${this.letterData.versionInfo.type==="draft"?k`
|
|
316
|
+
<div class="topInfo">
|
|
317
|
+
Please note: THIS IS A DRAFT ONLY. NO RIGHTS CAN BE DERIVED FROM THIS.<br />
|
|
318
|
+
-> Revision/Document version: ${this.letterData.versionInfo.version}
|
|
319
|
+
</div>
|
|
320
|
+
<div class="bigDraftText">DRAFT</div>
|
|
321
|
+
`:k``}
|
|
322
|
+
</div>
|
|
323
|
+
</dedocument-pagecontainer>
|
|
324
|
+
</div>
|
|
325
|
+
`}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/Bn:this.viewWidth&&(n=this.viewWidth/Wo),console.log(`new scale is ${n}`),r.style.transform=`scale(${n})`,this.style.height=`${Bn*n}px`}};Le.demo=()=>k` <dedocument-page .format="${"a4"}"></dedocument-page> `,Le.styles=[Ce.staticStyles,te`
|
|
324
326
|
:host {
|
|
327
|
+
display: block;
|
|
328
|
+
max-height: ${Bn}px;
|
|
329
|
+
max-width: ${Wo}px;
|
|
325
330
|
}
|
|
331
|
+
|
|
332
|
+
#scaleWrapper {
|
|
333
|
+
transform-origin: top left;
|
|
334
|
+
}
|
|
335
|
+
|
|
326
336
|
.versionOverlay {
|
|
327
337
|
pointer-events: none;
|
|
328
338
|
position: absolute;
|
|
@@ -352,17 +362,11 @@ EPC QR Code`,o=>{o&&console.error(o),console.log("success!")}),r.currentContent.
|
|
|
352
362
|
font-size: 200px;
|
|
353
363
|
opacity: 0.05;
|
|
354
364
|
}
|
|
355
|
-
`],
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
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`
|
|
365
|
+
`],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 ay=()=>k`
|
|
366
|
+
<dedocument-dedocument .format="${"a4"}" .letterData=${tr}></dedocument-dedocument>
|
|
367
|
+
`;var tt=class extends de{constructor(){super();this.format="a4";this.viewWidth=null;this.viewHeight=null;this.printMode=!1;Oe.DomTools.setupDomTools()}render(){return k`
|
|
368
|
+
<div class="documentContainer"></div>
|
|
369
|
+
`}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=ay,tt.styles=[Oe.elementBasic.staticStyles,te`
|
|
366
370
|
:host {
|
|
367
371
|
display: block;
|
|
368
372
|
color: #333;
|
|
@@ -371,9 +375,9 @@ EPC QR Code`,o=>{o&&console.error(o),console.log("success!")}),r.currentContent.
|
|
|
371
375
|
}
|
|
372
376
|
|
|
373
377
|
.betweenPagesSpacer {
|
|
374
|
-
height:
|
|
378
|
+
height: 16px;
|
|
375
379
|
}
|
|
376
|
-
`],
|
|
380
|
+
`],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:t=>typeof t=="string"?ge.parseBase64(t):t})],tt.prototype,"letterData",2),W([J({type:String})],tt.prototype,"letterDataUrl",2),tt=W([Ae("dedocument-dedocument")],tt);var Ot=class extends de{constructor(){super();this.pageNumber=1;this.pageTotalNumber=1;he.setupDomTools()}render(){return k`
|
|
377
381
|
<div class="date">
|
|
378
382
|
${new Date(this.letterData.date).getDate()}. ${new Date(this.letterData.date).toLocaleString("default",{month:"long"})}
|
|
379
383
|
${new Date(this.letterData.date).getFullYear()}
|
|
@@ -398,9 +402,9 @@ EPC QR Code`,o=>{o&&console.error(o),console.log("success!")}),r.currentContent.
|
|
|
398
402
|
<div class="label">your vat id on file:</div>
|
|
399
403
|
${this.letterData.to.vatId||"not provided"}
|
|
400
404
|
</div>
|
|
401
|
-
`}};
|
|
402
|
-
<dedocument-letterheader .format="${"a4"}" .letterData=${
|
|
403
|
-
`,
|
|
405
|
+
`}};Ot.demo=()=>k`
|
|
406
|
+
<dedocument-letterheader .format="${"a4"}" .letterData=${tr}></dedocument-letterheader>
|
|
407
|
+
`,Ot.styles=[Ce.staticStyles,te`
|
|
404
408
|
:host {
|
|
405
409
|
color: #333;
|
|
406
410
|
}
|
|
@@ -410,7 +414,7 @@ EPC QR Code`,o=>{o&&console.error(o),console.log("success!")}),r.currentContent.
|
|
|
410
414
|
display: block;
|
|
411
415
|
overflow: hidden;
|
|
412
416
|
top: 200px;
|
|
413
|
-
right: ${
|
|
417
|
+
right: ${V(et+"px")};
|
|
414
418
|
width: 200px;
|
|
415
419
|
text-align: right;
|
|
416
420
|
}
|
|
@@ -424,14 +428,14 @@ EPC QR Code`,o=>{o&&console.error(o),console.log("success!")}),r.currentContent.
|
|
|
424
428
|
.date {
|
|
425
429
|
position: absolute;
|
|
426
430
|
top: 180px;
|
|
427
|
-
right: ${
|
|
431
|
+
right: ${V(et+"px")};
|
|
428
432
|
text-align: right;
|
|
429
433
|
}
|
|
430
434
|
|
|
431
435
|
.address {
|
|
432
436
|
position: absolute;
|
|
433
437
|
top: 180px;
|
|
434
|
-
left: ${
|
|
438
|
+
left: ${V(Rn+"px")};
|
|
435
439
|
}
|
|
436
440
|
|
|
437
441
|
.address .from {
|
|
@@ -441,45 +445,45 @@ EPC QR Code`,o=>{o&&console.error(o),console.log("success!")}),r.currentContent.
|
|
|
441
445
|
.address .to {
|
|
442
446
|
margin-top: 10px;
|
|
443
447
|
}
|
|
444
|
-
`],
|
|
448
|
+
`],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 de{constructor(){super();this.format="a4";this.printMode=!1;he.setupDomTools()}render(){return k`
|
|
445
449
|
<style>
|
|
446
450
|
:host {
|
|
447
451
|
box-shadow: ${this.printMode?"none":"0px 0px 10px rgba(0,0,0,0.3)"};
|
|
448
452
|
}
|
|
449
453
|
</style>
|
|
450
454
|
<slot></slot>
|
|
451
|
-
`}};
|
|
455
|
+
`}};nr.demo=()=>k`
|
|
452
456
|
<dedocument-pagecontainer .format="${"a4"}"></dedocument-pagecontainer>
|
|
453
|
-
`,
|
|
457
|
+
`,nr.styles=[Ce.staticStyles,te`
|
|
454
458
|
:host {
|
|
455
459
|
display: block;
|
|
456
460
|
background: white;
|
|
457
461
|
color: #333;
|
|
458
462
|
padding: 0px;
|
|
459
|
-
width: ${
|
|
460
|
-
height: ${
|
|
463
|
+
width: ${V(Wo+"px")};
|
|
464
|
+
height: ${V(Bn+"px")};
|
|
461
465
|
position: relative;
|
|
462
466
|
border-radius: 3px;
|
|
463
467
|
overflow: hidden;
|
|
464
468
|
}
|
|
465
|
-
`],
|
|
469
|
+
`],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 de{constructor(){super();this.pageNumber=1;this.pageTotalNumber=1;he.setupDomTools()}render(){return k`
|
|
466
470
|
<style>
|
|
467
471
|
.content {
|
|
468
|
-
top: ${this.pageNumber===1?
|
|
472
|
+
top: ${this.pageNumber===1?V("450px"):V("200px")};
|
|
469
473
|
}
|
|
470
474
|
</style>
|
|
471
475
|
<div class="content">
|
|
472
|
-
${this.pageNumber===1?
|
|
476
|
+
${this.pageNumber===1?k`<div class="subject">${this.letterData.subject}</div>`:k`
|
|
473
477
|
<div class="subjectRepeated">
|
|
474
478
|
${this.letterData.subject} (Page ${this.pageNumber})
|
|
475
479
|
</div>
|
|
476
480
|
`}
|
|
477
481
|
<slot></slot>
|
|
478
|
-
${this.pageTotalNumber!==this.pageNumber?
|
|
482
|
+
${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
483
|
</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)}};
|
|
484
|
+
`}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
485
|
<dedocument-pagecontent .format="${"a4"}"></dedocument-pagecontent>
|
|
482
|
-
`,
|
|
486
|
+
`,Dt.styles=[Ce.staticStyles,te`
|
|
483
487
|
:host {
|
|
484
488
|
color: #333;
|
|
485
489
|
}
|
|
@@ -487,8 +491,8 @@ EPC QR Code`,o=>{o&&console.error(o),console.log("success!")}),r.currentContent.
|
|
|
487
491
|
.content {
|
|
488
492
|
position: absolute;
|
|
489
493
|
|
|
490
|
-
left: ${
|
|
491
|
-
right: ${
|
|
494
|
+
left: ${V(Rn+"px")};
|
|
495
|
+
right: ${V(et+"px")};
|
|
492
496
|
bottom: 170px;
|
|
493
497
|
overflow: visible;
|
|
494
498
|
}
|
|
@@ -534,7 +538,7 @@ EPC QR Code`,o=>{o&&console.error(o),console.log("success!")}),r.currentContent.
|
|
|
534
538
|
margin-top: 8px;
|
|
535
539
|
font-size: 10px;
|
|
536
540
|
}
|
|
537
|
-
`],
|
|
541
|
+
`],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 de{constructor(){super();this.pageNumber=1;this.pageTotalNumber=1;he.setupDomTools()}render(){return k`
|
|
538
542
|
<div class="bottomstripe">
|
|
539
543
|
<div>
|
|
540
544
|
<strong>Address:</strong><br />
|
|
@@ -562,12 +566,12 @@ EPC QR Code`,o=>{o&&console.error(o),console.log("success!")}),r.currentContent.
|
|
|
562
566
|
<i>iban:</i> ${this.letterData?.from?.sepaConnection?.iban}<br />
|
|
563
567
|
<i>bic:</i> ${this.letterData?.from?.sepaConnection?.bic}<br />
|
|
564
568
|
</div>
|
|
565
|
-
<div class="documentTitle">Subject: <b>${this.letterData?.subject}</b>${(()=>{let r=
|
|
569
|
+
<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
570
|
<div class="pageNumber">page ${this.pageNumber} of ${this.pageTotalNumber}</div>
|
|
567
571
|
</div>
|
|
568
|
-
`}};
|
|
572
|
+
`}};Bt.demo=()=>k`
|
|
569
573
|
<dedocument-pagefooter .format="${"a4"}"></dedocument-pagefooter>
|
|
570
|
-
`,
|
|
574
|
+
`,Bt.styles=[Ce.staticStyles,te`
|
|
571
575
|
:host {
|
|
572
576
|
color: #333;
|
|
573
577
|
}
|
|
@@ -581,7 +585,7 @@ EPC QR Code`,o=>{o&&console.error(o),console.log("success!")}),r.currentContent.
|
|
|
581
585
|
right: 0px;
|
|
582
586
|
height: 130px;
|
|
583
587
|
content: '';
|
|
584
|
-
padding: 30px ${
|
|
588
|
+
padding: 30px ${V(et+"px")} 10px ${V(Rn+"px")};
|
|
585
589
|
grid-template-columns: calc(100% / 4) calc(100% / 4) calc(100% / 4) calc(100% / 4);
|
|
586
590
|
grid-gap: 5px;
|
|
587
591
|
border-top: 2px solid #e4002b;
|
|
@@ -590,7 +594,7 @@ EPC QR Code`,o=>{o&&console.error(o),console.log("success!")}),r.currentContent.
|
|
|
590
594
|
.bottomstripe .pageNumber {
|
|
591
595
|
position: absolute;
|
|
592
596
|
top: 0px;
|
|
593
|
-
right: ${
|
|
597
|
+
right: ${V(et+"px")};
|
|
594
598
|
background: #e4002b;
|
|
595
599
|
padding: 3px;
|
|
596
600
|
font-size: 9px;
|
|
@@ -601,7 +605,7 @@ EPC QR Code`,o=>{o&&console.error(o),console.log("success!")}),r.currentContent.
|
|
|
601
605
|
.bottomstripe .documentTitle {
|
|
602
606
|
position: absolute;
|
|
603
607
|
top: -18px;
|
|
604
|
-
right: ${
|
|
608
|
+
right: ${V(et+"px")};
|
|
605
609
|
background: #dddddd;
|
|
606
610
|
padding: 3px;
|
|
607
611
|
font-size: 9px;
|
|
@@ -609,14 +613,14 @@ EPC QR Code`,o=>{o&&console.error(o),console.log("success!")}),r.currentContent.
|
|
|
609
613
|
border-top-left-radius: 3px;
|
|
610
614
|
border-top-right-radius: 3px;
|
|
611
615
|
}
|
|
612
|
-
`],
|
|
616
|
+
`],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 de{constructor(){super();this.letterData=null;this.pageNumber=1;this.pageTotalNumber=1;he.setupDomTools()}render(){return k`
|
|
613
617
|
<div class="topstripe">
|
|
614
618
|
<img src="https://assetbroker.lossless.one/brandfiles/lossless/svg-minimal-bright.svg" />
|
|
615
619
|
</div>
|
|
616
620
|
<div class="topstripe2">${this.letterData?.from?.description||"[no letterData.from.description set]"}</div>
|
|
617
|
-
`}};Rt.demo=()=>
|
|
621
|
+
`}};Rt.demo=()=>k`
|
|
618
622
|
<dedocument-pageheader .format="${"a4"}"></dedocument-pageheader>
|
|
619
|
-
`,Rt.styles=[Ce.staticStyles,
|
|
623
|
+
`,Rt.styles=[Ce.staticStyles,te`
|
|
620
624
|
:host {
|
|
621
625
|
color: #333;
|
|
622
626
|
}
|
|
@@ -637,7 +641,7 @@ EPC QR Code`,o=>{o&&console.error(o),console.log("success!")}),r.currentContent.
|
|
|
637
641
|
overflow: hidden;
|
|
638
642
|
top: 130px;
|
|
639
643
|
left: auto;
|
|
640
|
-
right: ${
|
|
644
|
+
right: ${V(et+"px")};
|
|
641
645
|
height: 20px;
|
|
642
646
|
line-height: 20px;
|
|
643
647
|
color: #333;
|
|
@@ -649,9 +653,58 @@ EPC QR Code`,o=>{o&&console.error(o),console.log("success!")}),r.currentContent.
|
|
|
649
653
|
bottom: 10px;
|
|
650
654
|
height: 25px;
|
|
651
655
|
left: auto;
|
|
652
|
-
right: ${
|
|
656
|
+
right: ${V(et+"px")};
|
|
657
|
+
}
|
|
658
|
+
`],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 uy=()=>k`
|
|
659
|
+
<dedocument-viewer .letterData=${tr}></dedocument-viewer>
|
|
660
|
+
`;var Fn=class extends de{constructor(){super(...arguments);this.letterData=null;this.render=()=>k`
|
|
661
|
+
<div class="maincontainer">
|
|
662
|
+
<div class="viewport">
|
|
663
|
+
${this.letterData?k` <dedocument-dedocument .letterData=${this.letterData}></dedocument-dedocument> `:k``}
|
|
664
|
+
</div>
|
|
665
|
+
<div class="controls"></div>
|
|
666
|
+
</div>
|
|
667
|
+
`;this.updated=r=>{super.updated(r),r.has("letterData")}}};Fn.demo=uy,Fn.styles=[Ds.defaultStyles,te`
|
|
668
|
+
.maincontainer {
|
|
669
|
+
position: relative;
|
|
670
|
+
height: 100%;
|
|
671
|
+
width: 100%;
|
|
672
|
+
background: ${Ds.bdTheme("#eeeeeb","#111")};
|
|
653
673
|
}
|
|
654
|
-
|
|
674
|
+
.controls {
|
|
675
|
+
top: 0px;
|
|
676
|
+
right: 0px;
|
|
677
|
+
left: 0px;
|
|
678
|
+
position: absolute;
|
|
679
|
+
height: 32px;
|
|
680
|
+
width: 100%;
|
|
681
|
+
background: ${Ds.bdTheme("#eeeeeb","#111111ee")};
|
|
682
|
+
box-shadow: 0px 2px 8px 0px #000000;
|
|
683
|
+
}
|
|
684
|
+
.controlsShadow {
|
|
685
|
+
position: absolute;
|
|
686
|
+
top: 32px;
|
|
687
|
+
right: 0px;
|
|
688
|
+
left: 0px;
|
|
689
|
+
height: 16px;
|
|
690
|
+
width: 100%;
|
|
691
|
+
position: absolute;
|
|
692
|
+
background: linear-gradient(to bottom, #111111cc 0%, #11111100 100%);
|
|
693
|
+
}
|
|
694
|
+
|
|
695
|
+
.viewport {
|
|
696
|
+
position: absolute;
|
|
697
|
+
padding: 16px;
|
|
698
|
+
padding-top: 48px;
|
|
699
|
+
padding-bottom: 0px;
|
|
700
|
+
top: 0px;
|
|
701
|
+
left: 0px;
|
|
702
|
+
right: 0px;
|
|
703
|
+
bottom: 0px;
|
|
704
|
+
overflow-y: scroll;
|
|
705
|
+
overscroll-behavior: contain;
|
|
706
|
+
}
|
|
707
|
+
`],Fn=W([Ae("dedocument-viewer")],Fn);export{Dr as DeContentInvoice,tt as DeDocument,Fn as DeDocumentViewer,Ot as DeLetterHeader,Le as DePage,nr as DePageContainer,Dt as DePageContent,Bt as DePageFooter,Rt as DePageHeader,Bn as a4Height,Wo as a4Width,tr as demoLetter,Rn as leftMargin,et as rightMargin};
|
|
655
708
|
/*! Bundled license information:
|
|
656
709
|
|
|
657
710
|
ieee754/index.js:
|
|
@@ -771,14 +824,14 @@ lit-html/directives/unsafe-html.js:
|
|
|
771
824
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
772
825
|
*)
|
|
773
826
|
|
|
774
|
-
@lit/reactive-element/decorators/
|
|
827
|
+
@lit/reactive-element/decorators/event-options.js:
|
|
775
828
|
(**
|
|
776
829
|
* @license
|
|
777
830
|
* Copyright 2017 Google LLC
|
|
778
831
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
779
832
|
*)
|
|
780
833
|
|
|
781
|
-
@lit/reactive-element/decorators/
|
|
834
|
+
@lit/reactive-element/decorators/base.js:
|
|
782
835
|
(**
|
|
783
836
|
* @license
|
|
784
837
|
* Copyright 2017 Google LLC
|