PageSourceSearch

https://www.valdelarco.es/es/.content/AV/chunk-EAFGGBBB.js

js valdelarco.es collected 2026-10-03 00:03:59 UTC 193,600 bytes, 6 lines download raw bytes

1import{e as Wt}from"./chunk-4HNAA3QD.js";import{b as Rn,c as k,e as Gt,g as Ws,i as Gs,j as Vn,k as Nn,n as Xt,o as Yt,q as Xs,r as Pn,s as Bn,t as Ys,u as Ks}from"./chunk-ZR2VQGMP.js";import{a as qs,b as zs,h as $s,j as $t}from"./chunk-WQW72BYF.js";import{A as He,Aa as xn,Cb as zt,Eb as Rs,Fa as Os,Fb as Vs,Hb as ft,Hc as Us,Ib as Ns,J as Es,Jb as $e,Kb as We,M as jt,O as Ue,P as Ds,Q as Ss,Qa as Fs,R as Ht,Sb as Ge,T as Fe,Tb as Ps,U as x,V as X,W as te,Wa as _,X as C,Y,Ya as ze,_a as Ut,a as F,ab as On,b as P,ba as As,bb as Fn,ca as K,da as M,e as p,ea as ks,eb as Me,ec as Bs,f as Yc,fb as ce,g as Dn,gb as qt,gc as Ls,h as Sn,ha as xs,i as Lt,ib as Ts,ic as Mn,j as U,jb as Ms,k as ae,kb as Is,la as Te,lc as _e,mc as js,n as vs,nc as pt,o as _s,ob as Tn,oc as le,p as An,q as bs,qa as kn,ra as dt,rc as In,ua as q,uc as he,va as qe,vc as Hs,w as Cs,z as ws,za as ie}from"./chunk-6ER5EEDF.js";var Zn=p((kf,Ao)=>{"use strict";var Tl=/^(?:(?![^:@]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@]*)(?::([^:@]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,Ml=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];Ao.exports=function(e){var i=e,n=e.indexOf("["),r=e.indexOf("]");n!=-1&&r!=-1&&(e=e.substring(0,n)+e.substring(n,r).replace(/:/g,";")+e.substring(r,e.length));for(var s=Tl.exec(e||""),o={},a=14;a--;)o[Ml[a]]=s[a]||"";return n!=-1&&r!=-1&&(o.source=i,o.host=o.host.substring(1,o.host.length-1).replace(/;/g,":"),o.authority=o.authority.replace("[","").replace("]","").replace(/;/g,":"),o.ipv6uri=!0),o.pathNames=Il(o,o.path),o.queryKey=Rl(o,o.query),o};function Il(t,e){var i=/\/{2,9}/g,n=e.replace(i,"/").split("/");return(e.substr(0,1)=="/"||e.length===0)&&n.splice(0,1),e.substr(e.length-1,1)=="/"&&n.splice(n.length-1,1),n}function Rl(t,e){var i={};return e.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(n,r,s){r&&(i[r]=s)}),i}});var xo=p((xf,ko)=>{"use strict";var _t=1e3,bt=_t*60,Ct=bt*60,wt=Ct*24,Vl=wt*365.25;ko.exports=function(t,e){e=e||{};var i=typeof t;if(i==="string"&&t.length>0)return Nl(t);if(i==="number"&&isNaN(t)===!1)return e.long?Bl(t):Pl(t);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(t))};function Nl(t){if(t=String(t),!(t.length>100)){var e=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(t);if(e){var i=parseFloat(e[1]),n=(e[2]||"ms").toLowerCase();switch(n){case"years":case"year":case"yrs":case"yr":case"y":return i*Vl;case"days":case"day":case"d":return i*wt;case"hours":case"hour":case"hrs":case"hr":case"h":return i*Ct;case"minutes":case"minute":case"mins":case"min":case"m":return i*bt;case"seconds":case"second":case"secs":case"sec":case"s":return i*_t;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return i;default:return}}}}function Pl(t){return t>=wt?Math.round(t/wt)+"d":t>=Ct?Math.round(t/Ct)+"h":t>=bt?Math.round(t/bt)+"m":t>=_t?Math.round(t/_t)+"s":t+"ms"}function Bl(t){return fi(t,wt,"day")||fi(t,Ct,"hour")||fi(t,bt,"minute")||fi(t,_t,"second")||t+" ms"}function fi(t,e,i){if(!(t<e))return t<e*1.5?Math.floor(t/e)+" "+i:Math.ceil(t/e)+" "+i+"s"}});var Fo=p((y,Oo)=>{"use strict";y=Oo.exports=Jn.debug=Jn.default=Jn;y.coerce=zl;y.disable=Ul;y.enable=Hl;y.enabled=ql;y.humanize=xo();y.instances=[];y.names=[];y.skips=[];y.formatters={};function Ll(t){var e=0,i;for(i in t)e=(e<<5)-e+t.charCodeAt(i),e|=0;return y.colors[Math.abs(e)%y.colors.length]}function Jn(t){var e;function i(){if(i.enabled){var n=i,r=+new Date,s=r-(e||r);n.diff=s,n.prev=e,n.curr=r,e=r;for(var o=new Array(arguments.length),a=0;a<o.length;a++)o[a]=arguments[a];o[0]=y.coerce(o[0]),typeof o[0]!="string"&&o.unshift("%O");var c=0;o[0]=o[0].replace(/%([a-zA-Z%])/g,function(l,u){if(l==="%%")return l;c++;var f=y.formatters[u];if(typeof f=="function"){var g=o[c];l=f.call(n,g),o.splice(c,1),c--}return l}),y.formatArgs.call(n,o);var h=i.log||y.log||console.log.bind(console);h.apply(n,o)}}return i.namespace=t,i.enabled=y.enabled(t),i.useColors=y.useColors(),i.color=Ll(t),i.destroy=jl,typeof y.init=="function"&&y.init(i),y.instances.push(i),i}function jl(){var t=y.instances.indexOf(this);return t!==-1?(y.instances.splice(t,1),!0):!1}function Hl(t){y.save(t),y.names=[],y.skips=[];var e,i=(typeof t=="string"?t:"").split(/[\s,]+/),n=i.length;for(e=0;e<n;e++)i[e]&&(t=i[e].replace(/\*/g,".*?"),t[0]==="-"?y.skips.push(new RegExp("^"+t.substr(1)+"$")):y.names.push(new RegExp("^"+t+"$")));for(e=0;e<y.instances.length;e++){var r=y.instances[e];r.enabled=y.enabled(r.namespace)}}function Ul(){y.enable("")}function ql(t){if(t[t.length-1]==="*")return!0;var e,i;for(e=0,i=y.skips.length;e<i;e++)if(y.skips[e].test(t))return!1;for(e=0,i=y.names.length;e<i;e++)if(y.names[e].test(t))return!0;return!1}function zl(t){return t instanceof Error?t.stack||t.message:t}});var Ze=p((B,Mo)=>{"use strict";B=Mo.exports=Fo();B.log=Gl;B.formatArgs=Wl;B.save=Xl;B.load=To;B.useColors=$l;B.storage=typeof chrome<"u"&&typeof chrome.storage<"u"?chrome.storage.local:Yl();B.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33
1CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function $l(){return typeof window<"u"&&window.process&&window.process.type==="renderer"?!0:typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)?!1:typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}B.formatters.j=function(t){try{return JSON.stringify(t)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}};function Wl(t){var e=this.useColors;if(t[0]=(e?"%c":"")+this.namespace+(e?" %c":" ")+t[0]+(e?"%c ":" ")+"+"+B.humanize(this.diff),!!e){var i="color: "+this.color;t.splice(1,0,i,"color: inherit");var n=0,r=0;t[0].replace(/%[a-zA-Z%]/g,function(s){s!=="%%"&&(n++,s==="%c"&&(r=n))}),t.splice(r,0,i)}}function Gl(){return typeof console=="object"&&console.log&&Function.prototype.apply.call(console.log,console,arguments)}function Xl(t){try{t==null?B.storage.removeItem("debug"):B.storage.debug=t}catch{}}function To(){var t;try{t=B.storage.debug}catch{}return!t&&typeof process<"u"&&"env"in process&&(t=process.env.DEBUG),t}B.enable(To());function Yl(){try{return window.localStorage}catch{}}});var Vo=p((Of,Ro)=>{"use strict";var Kl=Zn(),Io=Ze()("socket.io-client:url");Ro.exports=Ql;function Ql(t,e){var i=t;e=e||typeof location<"u"&&location,t==null&&(t=e.protocol+"//"+e.host),typeof t=="string"&&(t.charAt(0)==="/"&&(t.charAt(1)==="/"?t=e.protocol+t:t=e.host+t),/^(https?|wss?):\/\//.test(t)||(Io("protocol-less url %s",t),typeof e<"u"?t=e.protocol+"//"+t:t="https://"+t),Io("parse %s",t),i=Kl(t)),i.port||(/^(http|ws)$/.test(i.protocol)?i.port="80":/^(http|ws)s$/.test(i.protocol)&&(i.port="443")),i.path=i.path||"/";var n=i.host.indexOf(":")!==-1,r=n?"["+i.host+"]":i.host;return i.id=i.protocol+"://"+r+":"+i.port,i.href=i.protocol+"://"+r+(e&&e.port===i.port?"":":"+i.port),i}});var Re=p((Ff,er)=>{"use strict";typeof er<"u"&&(er.exports=z);function z(t){if(t)return Zl(t)}function Zl(t){for(var e in z.prototype)t[e]=z.prototype[e];return t}z.prototype.on=z.prototype.addEventListener=function(t,e){return this._callbacks=this._callbacks||{},(this._callbacks["$"+t]=this._callbacks["$"+t]||[]).push(e),this};z.prototype.once=function(t,e){function i(){this.off(t,i),e.apply(this,arguments)}return i.fn=e,this.on(t,i),this};z.prototype.off=z.prototype.removeListener=z.prototype.removeAllListeners=z.prototype.removeEventListener=function(t,e){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var i=this._callbacks["$"+t];if(!i)return this;if(arguments.length==1)return delete this._callbacks["$"+t],this;for(var n,r=0;r<i.length;r++)if(n=i[r],n===e||n.fn===e){i.splice(r,1);break}return i.length===0&&delete this._callbacks["$"+t],this};z.prototype.emit=function(t){this._callbacks=this._callbacks||{};for(var e=new Array(arguments.length-1),i=this._callbacks["$"+t],n=1;n<arguments.length;n++)e[n-1]=arguments[n];if(i){i=i.slice(0);for(var n=0,r=i.length;n<r;++n)i[n].apply(this,e)}return this};z.prototype.listeners=function(t){return this._callbacks=this._callbacks||{},this._callbacks["$"+t]||[]};z.prototype.hasListeners=function(t){return!!this.listeners(t).length}});var pi=p((Tf,No)=>{"use strict";var Jl={}.toString;No.exports=Array.isArray||function(t){return Jl.call(t)=="[object Array]"}});var tr=p((Mf,Po)=>{"use strict";Po.exports=nh;var eh=typeof Buffer=="function"&&typeof Buffer.isBuffer=="function",th=typeof ArrayBuffer=="function",ih=function(t){return typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(t):t.buffer instanceof ArrayBuffer};function nh(t){return eh&&Buffer.isBuffer(t)||th&&(t instanceof ArrayBuffer||ih(t))}});var jo=p(gi=>{"use strict";var rr=pi(),Bo=tr(),Lo=Object.prototype.toString,rh=typeof Blob=="function"||typeof Blob<"u"&&Lo.call(Blob)==="[object BlobConstructor]",sh=typeof File=="function"||typeof File<"u"&&Lo.call(File)==="[object FileConstructor]";gi.deconstructPacket=function(t){var e=[],i=t.data,n=t;return n.data=ir(i,e),n.attachments=e.length,{packet:n,buffers:e}};function ir(t,e){if(!t)return t;if(Bo(t)){var i={_placeholder:!0,num:e.length};return e.push(t),i}else if(rr(t)){for(var n=new Array(t.length),r=0;r<t.length;r++)n[r]=ir(t[r],e);return n}else if(typeof t=="object"&&!(t instanceof Date)){var n={};
1for(var s in t)n[s]=ir(t[s],e);return n}return t}gi.reconstructPacket=function(t,e){return t.data=nr(t.data,e),t.attachments=void 0,t};function nr(t,e){if(!t)return t;if(t&&t._placeholder===!0){var i=typeof t.num=="number"&&t.num>=0&&t.num<e.length;if(i)return e[t.num];throw new Error("illegal attachments")}else if(rr(t))for(var n=0;n<t.length;n++)t[n]=nr(t[n],e);else if(typeof t=="object")for(var r in t)t[r]=nr(t[r],e);return t}gi.removeBlobs=function(t,e){function i(s,o,a){if(!s)return s;if(rh&&s instanceof Blob||sh&&s instanceof File){n++;var c=new FileReader;c.onload=function(){a?a[o]=this.result:r=this.result,--n||e(r)},c.readAsArrayBuffer(s)}else if(rr(s))for(var h=0;h<s.length;h++)i(s[h],h,s);else if(typeof s=="object"&&!Bo(s))for(var l in s)i(s[l],l,s)}var n=0,r=t;i(r),n||e(r)}});var yi=p(S=>{"use strict";var or=Ze()("socket.io-parser"),oh=Re(),sr=jo(),Ho=pi(),ah=tr();S.protocol=4;S.types=["CONNECT","DISCONNECT","EVENT","ACK","ERROR","BINARY_EVENT","BINARY_ACK"];S.CONNECT=0;S.DISCONNECT=1;S.EVENT=2;S.ACK=3;S.ERROR=4;S.BINARY_EVENT=5;S.BINARY_ACK=6;S.Encoder=Uo;S.Decoder=mi;function Uo(){}var ch=S.ERROR+'"encode error"';Uo.prototype.encode=function(t,e){if(or("encoding packet %j",t),S.BINARY_EVENT===t.type||S.BINARY_ACK===t.type)hh(t,e);else{var i=qo(t);e([i])}};function qo(t){var e=""+t.type;if((S.BINARY_EVENT===t.type||S.BINARY_ACK===t.type)&&(e+=t.attachments+"-"),t.nsp&&t.nsp!=="/"&&(e+=t.nsp+","),t.id!=null&&(e+=t.id),t.data!=null){var i=lh(t.data);if(i!==!1)e+=i;else return ch}return or("encoded %j as %s",t,e),e}function lh(t){try{return JSON.stringify(t)}catch{return!1}}function hh(t,e){function i(n){var r=sr.deconstructPacket(n),s=qo(r.packet),o=r.buffers;o.unshift(s),e(o)}sr.removeBlobs(t,i)}function mi(){this.reconstructor=null}oh(mi.prototype);mi.prototype.add=function(t){var e;if(typeof t=="string"){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");e=dh(t),S.BINARY_EVENT===e.type||S.BINARY_ACK===e.type?(this.reconstructor=new ar(e),this.reconstructor.reconPack.attachments===0&&this.emit("decoded",e)):this.emit("decoded",e)}else if(ah(t)||t.base64)if(this.reconstructor)e=this.reconstructor.takeBinaryData(t),e&&(this.reconstructor=null,this.emit("decoded",e));else throw new Error("got binary data when not reconstructing a packet");else throw new Error("Unknown type: "+t)};function uh(t,e){switch(t){case 0:return typeof e=="object";case 1:return e===void 0;case 4:return typeof e=="string"||typeof e=="object";case 2:case 5:return Ho(e)&&(typeof e[0]=="string"||typeof e[0]=="number");case 3:case 6:return Ho(e)}}function dh(t){var e=0,i={type:Number(t.charAt(0))};if(S.types[i.type]==null)return ph("unknown packet type "+i.type);if(S.BINARY_EVENT===i.type||S.BINARY_ACK===i.type){for(var n=e+1;t.charAt(++e)!=="-"&&e!=t.length;);var r=t.substring(n,e);if(r!=Number(r)||t.charAt(e)!=="-")throw new Error("Illegal attachments");i.attachments=Number(r)}if(t.charAt(e+1)==="/"){for(var n=e+1;++e;){var s=t.charAt(e);if(s===","||e===t.length)break}i.nsp=t.substring(n,e)}else i.nsp="/";var o=t.charAt(e+1);if(o!==""&&Number(o)==o){for(var n=e+1;++e;){var s=t.charAt(e);if(s==null||Number(s)!=s){--e;break}if(e===t.length)break}i.id=Number(t.substring(n,e+1))}if(t.charAt(++e)){var a=fh(t.substr(e));if(uh(i.type,a))i.data=a;else throw new Error("invalid payload")}return or("decoded %s as %j",t,i),i}function fh(t){try{return JSON.parse(t)}catch{return!1}}mi.prototype.destroy=function(){this.reconstructor&&this.reconstructor.finishedReconstruction()};function ar(t){this.reconPack=t,this.buffers=[]}ar.prototype.takeBinaryData=function(t){if(this.buffers.push(t),this.buffers.length===this.reconPack.attachments){var e=sr.reconstructPacket(this.reconPack,this.buffers);return this.finishedReconstruction(),e}return null};ar.prototype.finishedReconstruction=function(){this.reconPack=null,this.buffers=[]};function ph(t){return{type:S.ERROR,data:"parser error: "+t}}});var zo=p((Vf,cr)=>{"use strict";try{cr.exports=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{cr.exports=!1}});var vi=p((Nf,$o)=>{"use strict";$o.exports=function(){return typeof self<"u"?self:typeof window<"u"?window:Function("return this")()}()});var _i=p((Pf,Wo)=>{"use strict";var gh=zo(),mh=vi();Wo.exports=function(t){var e=t.xdomain,i=t.xscheme,n=t.enablesXDR;try{if(typeof XMLHttpRequest<"u"&&(!e||gh))return new XMLHttpRequest}catch{}try{if(typeof XDomainRequest<"u"&&!i&&n)return new XDomainRequest}catch{}if(!e)try{return new mh[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}});var Xo=p((Bf,Go)=>{"use strict";Go.exports=Object.keys||function(e){var i=[],n=Object.prototype.hasOwnProperty;for(var r in e)n.call(e,r)&&i.push(r);return i}});
1var lr=p((Lf,Ko)=>{"use strict";var yh=pi(),Yo=Object.prototype.toString,vh=typeof Blob=="function"||typeof Blob<"u"&&Yo.call(Blob)==="[object BlobConstructor]",_h=typeof File=="function"||typeof File<"u"&&Yo.call(File)==="[object FileConstructor]";Ko.exports=bi;function bi(t){if(!t||typeof t!="object")return!1;if(yh(t)){for(var e=0,i=t.length;e<i;e++)if(bi(t[e]))return!0;return!1}if(typeof Buffer=="function"&&Buffer.isBuffer&&Buffer.isBuffer(t)||typeof ArrayBuffer=="function"&&t instanceof ArrayBuffer||vh&&t instanceof Blob||_h&&t instanceof File)return!0;if(t.toJSON&&typeof t.toJSON=="function"&&arguments.length===1)return bi(t.toJSON(),!0);for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)&&bi(t[n]))return!0;return!1}});var Zo=p((jf,Qo)=>{"use strict";Qo.exports=function(t,e,i){var n=t.byteLength;if(e=e||0,i=i||n,t.slice)return t.slice(e,i);if(e<0&&(e+=n),i<0&&(i+=n),i>n&&(i=n),e>=n||e>=i||n===0)return new ArrayBuffer(0);for(var r=new Uint8Array(t),s=new Uint8Array(i-e),o=e,a=0;o<i;o++,a++)s[a]=r[o];return s.buffer}});var ea=p((Hf,Jo)=>{"use strict";Jo.exports=bh;function bh(t,e,i){var n=!1;return i=i||Ch,r.count=t,t===0?e():r;function r(s,o){if(r.count<=0)throw new Error("after called too many times");--r.count,s?(n=!0,e(s),e=i):r.count===0&&!n&&e(null,o)}}function Ch(){}});var ra=p((Uf,na)=>{"use strict";var Ee=String.fromCharCode;function ta(t){for(var e=[],i=0,n=t.length,r,s;i<n;)r=t.charCodeAt(i++),r>=55296&&r<=56319&&i<n?(s=t.charCodeAt(i++),(s&64512)==56320?e.push(((r&1023)<<10)+(s&1023)+65536):(e.push(r),i--)):e.push(r);return e}function wh(t){for(var e=t.length,i=-1,n,r="";++i<e;)n=t[i],n>65535&&(n-=65536,r+=Ee(n>>>10&1023|55296),n=56320|n&1023),r+=Ee(n);return r}function ia(t,e){if(t>=55296&&t<=57343){if(e)throw Error("Lone surrogate U+"+t.toString(16).toUpperCase()+" is not a scalar value");return!1}return!0}function hr(t,e){return Ee(t>>e&63|128)}function Eh(t,e){if(!(t&4294967168))return Ee(t);var i="";return t&4294965248?t&4294901760?t&4292870144||(i=Ee(t>>18&7|240),i+=hr(t,12),i+=hr(t,6)):(ia(t,e)||(t=65533),i=Ee(t>>12&15|224),i+=hr(t,6)):i=Ee(t>>6&31|192),i+=Ee(t&63|128),i}function Dh(t,e){e=e||{};for(var i=e.strict!==!1,n=ta(t),r=n.length,s=-1,o,a="";++s<r;)o=n[s],a+=Eh(o,i);return a}function Je(){if(De>=wi)throw Error("Invalid byte index");var t=Ci[De]&255;if(De++,(t&192)==128)return t&63;throw Error("Invalid continuation byte")}function Sh(t){var e,i,n,r,s;if(De>wi)throw Error("Invalid byte index");if(De==wi)return!1;if(e=Ci[De]&255,De++,!(e&128))return e;if((e&224)==192){if(i=Je(),s=(e&31)<<6|i,s>=128)return s;throw Error("Invalid continuation byte")}if((e&240)==224){if(i=Je(),n=Je(),s=(e&15)<<12|i<<6|n,s>=2048)return ia(s,t)?s:65533;throw Error("Invalid continuation byte")}if((e&248)==240&&(i=Je(),n=Je(),r=Je(),s=(e&7)<<18|i<<12|n<<6|r,s>=65536&&s<=1114111))return s;throw Error("Invalid UTF-8 detected")}var Ci,wi,De;function Ah(t,e){e=e||{};var i=e.strict!==!1;Ci=ta(t),wi=Ci.length,De=0;for(var n=[],r;(r=Sh(i))!==!1;)n.push(r);return wh(n)}na.exports={version:"2.1.2",encode:Dh,decode:Ah}});var sa=p(ur=>{"use strict";(function(t){"use strict";ur.encode=function(e){var i=new Uint8Array(e),n,r=i.length,s="";for(n=0;n<r;n+=3)s+=t[i[n]>>2],s+=t[(i[n]&3)<<4|i[n+1]>>4],s+=t[(i[n+1]&15)<<2|i[n+2]>>6],s+=t[i[n+2]&63];return r%3===2?s=s.substring(0,s.length-1)+"=":r%3===1&&(s=s.substring(0,s.length-2)+"=="),s},ur.decode=function(e){var i=e.length*.75,n=e.length,r,s=0,o,a,c,h;e[e.length-1]==="="&&(i--,e[e.length-2]==="="&&i--);var l=new ArrayBuffer(i),u=new Uint8Array(l);for(r=0;r<n;r+=4)o=t.indexOf(e[r]),a=t.indexOf(e[r+1]),c=t.indexOf(e[r+2]),h=t.indexOf(e[r+3]),u[s++]=o<<2|a>>4,u[s++]=(a&15)<<4|c>>2,u[s++]=(c&3)<<6|h&63;return l}})("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/")});var ua=p((zf,ha)=>{"use strict";var et=typeof et<"u"?et:typeof WebKitBlobBuilder<"u"?WebKitBlobBuilder:typeof MSBlobBuilder<"u"?MSBlobBuilder:typeof MozBlobBuilder<"u"?MozBlobBuilder:!1,oa=function(){try{var t=new Blob(["hi"]);return t.size===2}catch{return!1}}(),kh=oa&&function(){try{var t=new Blob([new Uint8Array([1,2])]);return t.size===2}catch{return!1}}(),xh=et&&et.prototype.append&&et.prototype.getBlob;function aa(t){return t.map(function(e){if(e.buffer instanceof ArrayBuffer){var i=e.buffer;if(e.byteLength!==i.byteLength){var n=new Uint8Array(e.byteLength);n.set(new Uint8Array(i,e.byteOffset,e.byteLength)),i=n.buffer}return i}return e})}function ca(t,e){e=e||{};var i=new et;return aa(t).forEach(function(n){i.append(n)}),e.type?i.getBlob(e.type):i.getBlob()}function la(t,e){return new Blob(aa(t),e||{})}typeof Blob<"u"&&(ca.prototype=Blob.prototype,la.prototype=Blob.prototype);ha.exports=function(){return oa?kh?Blob:la:xh?ca:void 0}()});var Ve=p(D=>{"use strict";var Oh=Xo(),Fh=lr(),Ei=Zo(),Th=ea(),da=ra(),dr;typeof ArrayBuffer<"u"&&(dr=sa());var Mh=typeof navigator<"u"&&/Android/i.test(navigator.userAgent),Ih=typeof navigator<"u"&&/PhantomJS/i.test(navigator.userAgent),fa=Mh||Ih;D.protocol=3;var Di=D.packets={open:0,close:1,ping:2,pong:3,message:4,upgrade:5,noop:6},Et=Oh(Di),ne={type:"error",data:"parser error"},$=ua();
1D.encodePacket=function(t,e,i,n){typeof e=="function"&&(n=e,e=!1),typeof i=="function"&&(n=i,i=null);var r=t.data===void 0?void 0:t.data.buffer||t.data;if(typeof ArrayBuffer<"u"&&r instanceof ArrayBuffer)return Vh(t,e,n);if(typeof $<"u"&&r instanceof $)return Ph(t,e,n);if(r&&r.base64)return Rh(t,n);var s=Di[t.type];return t.data!==void 0&&(s+=i?da.encode(String(t.data),{strict:!1}):String(t.data)),n(""+s)};function Rh(t,e){var i="b"+D.packets[t.type]+t.data.data;return e(i)}function Vh(t,e,i){if(!e)return D.encodeBase64Packet(t,i);var n=t.data,r=new Uint8Array(n),s=new Uint8Array(1+n.byteLength);s[0]=Di[t.type];for(var o=0;o<r.length;o++)s[o+1]=r[o];return i(s.buffer)}function Nh(t,e,i){if(!e)return D.encodeBase64Packet(t,i);var n=new FileReader;return n.onload=function(){D.encodePacket({type:t.type,data:n.result},e,!0,i)},n.readAsArrayBuffer(t.data)}function Ph(t,e,i){if(!e)return D.encodeBase64Packet(t,i);if(fa)return Nh(t,e,i);var n=new Uint8Array(1);n[0]=Di[t.type];var r=new $([n.buffer,t.data]);return i(r)}D.encodeBase64Packet=function(t,e){var i="b"+D.packets[t.type];if(typeof $<"u"&&t.data instanceof $){var n=new FileReader;return n.onload=function(){var c=n.result.split(",")[1];e(i+c)},n.readAsDataURL(t.data)}var r;try{r=String.fromCharCode.apply(null,new Uint8Array(t.data))}catch{for(var s=new Uint8Array(t.data),o=new Array(s.length),a=0;a<s.length;a++)o[a]=s[a];r=String.fromCharCode.apply(null,o)}return i+=btoa(r),e(i)};D.decodePacket=function(t,e,i){if(t===void 0)return ne;if(typeof t=="string"){if(t.charAt(0)==="b")return D.decodeBase64Packet(t.substr(1),e);if(i&&(t=Bh(t),t===!1))return ne;var r=t.charAt(0);return Number(r)!=r||!Et[r]?ne:t.length>1?{type:Et[r],data:t.substring(1)}:{type:Et[r]}}var n=new Uint8Array(t),r=n[0],s=Ei(t,1);return $&&e==="blob"&&(s=new $([s])),{type:Et[r],data:s}};function Bh(t){try{t=da.decode(t,{strict:!1})}catch{return!1}return t}D.decodeBase64Packet=function(t,e){var i=Et[t.charAt(0)];if(!dr)return{type:i,data:{base64:!0,data:t.substr(1)}};var n=dr.decode(t.substr(1));return e==="blob"&&$&&(n=new $([n])),{type:i,data:n}};D.encodePayload=function(t,e,i){typeof e=="function"&&(i=e,e=null);var n=Fh(t);if(e&&n)return $&&!fa?D.encodePayloadAsBlob(t,i):D.encodePayloadAsArrayBuffer(t,i);if(!t.length)return i("0:");function r(o){return o.length+":"+o}function s(o,a){D.encodePacket(o,n?e:!1,!1,function(c){a(null,r(c))})}fr(t,s,function(o,a){return i(a.join(""))})};function fr(t,e,i){for(var n=new Array(t.length),r=Th(t.length,i),s=function(a,c,h){e(c,function(l,u){n[a]=u,h(l,n)})},o=0;o<t.length;o++)s(o,t[o],r)}D.decodePayload=function(t,e,i){if(typeof t!="string")return D.decodePayloadAsBinary(t,e,i);typeof e=="function"&&(i=e,e=null);var n;if(t==="")return i(ne,0,1);for(var r="",s,o,a=0,c=t.length;a<c;a++){var h=t.charAt(a);if(h!==":"){r+=h;continue}if(r===""||r!=(s=Number(r))||(o=t.substr(a+1,s),r!=o.length))return i(ne,0,1);if(o.length){if(n=D.decodePacket(o,e,!1),ne.type===n.type&&ne.data===n.data)return i(ne,0,1);var l=i(n,a+s,c);if(l===!1)return}a+=s,r=""}if(r!=="")return i(ne,0,1)};D.encodePayloadAsArrayBuffer=function(t,e){if(!t.length)return e(new ArrayBuffer(0));function i(n,r){D.encodePacket(n,!0,!0,function(s){return r(null,s)})}fr(t,i,function(n,r){var s=r.reduce(function(c,h){var l;return typeof h=="string"?l=h.length:l=h.byteLength,c+l.toString().length+l+2},0),o=new Uint8Array(s),a=0;return r.forEach(function(c){var h=typeof c=="string",l=c;if(h){for(var g=new Uint8Array(c.length),u=0;u<c.length;u++)g[u]=c.charCodeAt(u);l=g.buffer}h?o[a++]=0:o[a++]=1;for(var f=l.byteLength.toString(),u=0;u<f.length;u++)o[a++]=parseInt(f[u]);o[a++]=255;for(var g=new Uint8Array(l),u=0;u<g.length;u++)o[a++]=g[u]}),e(o.buffer)})};D.encodePayloadAsBlob=function(t,e){function i(n,r){D.encodePacket(n,!0,!0,function(s){var o=new Uint8Array(1);if(o[0]=1,typeof s=="string"){for(var a=new Uint8Array(s.length),c=0;c<s.length;c++)a[c]=s.charCodeAt(c);s=a.buffer,o[0]=0}for(var h=s instanceof ArrayBuffer?s.byteLength:s.size,l=h.toString(),u=new Uint8Array(l.length+1),c=0;c<l.length;c++)u[c]=parseInt(l[c]);if(u[l.length]=255,$){var f=new $([o.buffer,u.buffer,s]);r(null,f)}})}fr(t,i,function(n,r){return e(new $(r))})};
1D.decodePayloadAsBinary=function(t,e,i){typeof e=="function"&&(i=e,e=null);for(var n=t,r=[];n.byteLength>0;){for(var s=new Uint8Array(n),o=s[0]===0,a="",c=1;s[c]!==255;c++){if(a.length>310)return i(ne,0,1);a+=s[c]}n=Ei(n,2+a.length),a=parseInt(a);var h=Ei(n,0,a);if(o)try{h=String.fromCharCode.apply(null,new Uint8Array(h))}catch{var l=new Uint8Array(h);h="";for(var c=0;c<l.length;c++)h+=String.fromCharCode(l[c])}r.push(h),n=Ei(n,a)}var u=r.length;r.forEach(function(f,g){i(D.decodePacket(f,e,!0),g,u)})}});var Si=p((Wf,pa)=>{"use strict";var Lh=Ve(),jh=Re();pa.exports=de;function de(t){this.path=t.path,this.hostname=t.hostname,this.port=t.port,this.secure=t.secure,this.query=t.query,this.timestampParam=t.timestampParam,this.timestampRequests=t.timestampRequests,this.readyState="",this.agent=t.agent||!1,this.socket=t.socket,this.enablesXDR=t.enablesXDR,this.withCredentials=t.withCredentials,this.pfx=t.pfx,this.key=t.key,this.passphrase=t.passphrase,this.cert=t.cert,this.ca=t.ca,this.ciphers=t.ciphers,this.rejectUnauthorized=t.rejectUnauthorized,this.forceNode=t.forceNode,this.isReactNative=t.isReactNative,this.extraHeaders=t.extraHeaders,this.localAddress=t.localAddress}jh(de.prototype);de.prototype.onError=function(t,e){var i=new Error(t);return i.type="TransportError",i.description=e,this.emit("error",i),this};de.prototype.open=function(){return(this.readyState==="closed"||this.readyState==="")&&(this.readyState="opening",this.doOpen()),this};de.prototype.close=function(){return(this.readyState==="opening"||this.readyState==="open")&&(this.doClose(),this.onClose()),this};de.prototype.send=function(t){if(this.readyState==="open")this.write(t);else throw new Error("Transport not open")};de.prototype.onOpen=function(){this.readyState="open",this.writable=!0,this.emit("open")};de.prototype.onData=function(t){var e=Lh.decodePacket(t,this.socket.binaryType);this.onPacket(e)};de.prototype.onPacket=function(t){this.emit("packet",t)};de.prototype.onClose=function(){this.readyState="closed",this.emit("close")}});var Dt=p(pr=>{"use strict";pr.encode=function(t){var e="";for(var i in t)t.hasOwnProperty(i)&&(e.length&&(e+="&"),e+=encodeURIComponent(i)+"="+encodeURIComponent(t[i]));return e};pr.decode=function(t){for(var e={},i=t.split("&"),n=0,r=i.length;n<r;n++){var s=i[n].split("=");e[decodeURIComponent(s[0])]=decodeURIComponent(s[1])}return e}});var St=p((Xf,ga)=>{"use strict";ga.exports=function(t,e){var i=function(){};i.prototype=e.prototype,t.prototype=new i,t.prototype.constructor=t}});var yr=p((Yf,ba)=>{"use strict";var va="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_".split(""),Ai=64,_a={},ma=0,Se=0,ya;function gr(t){var e="";do e=va[t%Ai]+e,t=Math.floor(t/Ai);while(t>0);return e}function Hh(t){var e=0;for(Se=0;Se<t.length;Se++)e=e*Ai+_a[t.charAt(Se)];return e}function mr(){var t=gr(+new Date);return t!==ya?(ma=0,ya=t):t+"."+gr(ma++)}for(;Se<Ai;Se++)_a[va[Se]]=Se;mr.encode=gr;mr.decode=Hh;ba.exports=mr});var wa=p((Kf,Ca)=>{"use strict";var At=1e3,kt=At*60,xt=kt*60,Ot=xt*24,Uh=Ot*365.25;Ca.exports=function(t,e){e=e||{};var i=typeof t;if(i==="string"&&t.length>0)return qh(t);if(i==="number"&&isNaN(t)===!1)return e.long?$h(t):zh(t);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(t))};function qh(t){if(t=String(t),!(t.length>100)){var e=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(t);if(e){var i=parseFloat(e[1]),n=(e[2]||"ms").toLowerCase();switch(n){case"years":case"year":case"yrs":case"yr":case"y":return i*Uh;case"days":case"day":case"d":return i*Ot;case"hours":case"hour":case"hrs":case"hr":case"h":return i*xt;case"minutes":case"minute":case"mins":case"min":case"m":return i*kt;case"seconds":case"second":case"secs":case"sec":case"s":return i*At;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return i;default:return}}}}function zh(t){return t>=Ot?Math.round(t/Ot)+"d":t>=xt?Math.round(t/xt)+"h":t>=kt?Math.round(t/kt)+"m":t>=At?Math.round(t/At)+"s":t+"ms"}function $h(t){return ki(t,Ot,"day")||ki(t,xt,"hour")||ki(t,kt,"minute")||ki(t,At,"second")||t+" ms"}function ki(t,e,i){if(!(t<e))return t<e*1.5?Math.floor(t/e)+" "+i:Math.ceil(t/e)+" "+i+"s"}});var Da=p((v,Ea)=>{"use strict";v=Ea.exports=vr.debug=vr.default=vr;v.coerce=Qh;v.disable=Yh;v.enable=Xh;v.enabled=Kh;v.humanize=wa();v.instances=[];
1v.names=[];v.skips=[];v.formatters={};function Wh(t){var e=0,i;for(i in t)e=(e<<5)-e+t.charCodeAt(i),e|=0;return v.colors[Math.abs(e)%v.colors.length]}function vr(t){var e;function i(){if(i.enabled){var n=i,r=+new Date,s=r-(e||r);n.diff=s,n.prev=e,n.curr=r,e=r;for(var o=new Array(arguments.length),a=0;a<o.length;a++)o[a]=arguments[a];o[0]=v.coerce(o[0]),typeof o[0]!="string"&&o.unshift("%O");var c=0;o[0]=o[0].replace(/%([a-zA-Z%])/g,function(l,u){if(l==="%%")return l;c++;var f=v.formatters[u];if(typeof f=="function"){var g=o[c];l=f.call(n,g),o.splice(c,1),c--}return l}),v.formatArgs.call(n,o);var h=i.log||v.log||console.log.bind(console);h.apply(n,o)}}return i.namespace=t,i.enabled=v.enabled(t),i.useColors=v.useColors(),i.color=Wh(t),i.destroy=Gh,typeof v.init=="function"&&v.init(i),v.instances.push(i),i}function Gh(){var t=v.instances.indexOf(this);return t!==-1?(v.instances.splice(t,1),!0):!1}function Xh(t){v.save(t),v.names=[],v.skips=[];var e,i=(typeof t=="string"?t:"").split(/[\s,]+/),n=i.length;for(e=0;e<n;e++)i[e]&&(t=i[e].replace(/\*/g,".*?"),t[0]==="-"?v.skips.push(new RegExp("^"+t.substr(1)+"$")):v.names.push(new RegExp("^"+t+"$")));for(e=0;e<v.instances.length;e++){var r=v.instances[e];r.enabled=v.enabled(r.namespace)}}function Yh(){v.enable("")}function Kh(t){if(t[t.length-1]==="*")return!0;var e,i;for(e=0,i=v.skips.length;e<i;e++)if(v.skips[e].test(t))return!1;for(e=0,i=v.names.length;e<i;e++)if(v.names[e].test(t))return!0;return!1}function Qh(t){return t instanceof Error?t.stack||t.message:t}});var Ft=p((L,Aa)=>{"use strict";L=Aa.exports=Da();L.log=eu;L.formatArgs=Jh;L.save=tu;L.load=Sa;L.useColors=Zh;L.storage=typeof chrome<"u"&&typeof chrome.storage<"u"?chrome.storage.local:iu();L.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function Zh(){return typeof window<"u"&&window.process&&window.process.type==="renderer"?!0:typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)?!1:typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}L.formatters.j=function(t){try{return JSON.stringify(t)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}};function Jh(t){var e=this.useColors;if(t[0]=(e?"%c":"")+this.namespace+(e?" %c":" ")+t[0]+(e?"%c ":" ")+"+"+L.humanize(this.diff),!!e){var i="color: "+this.color;t.splice(1,0,i,"color: inherit");var n=0,r=0;t[0].replace(/%[a-zA-Z%]/g,function(s){s!=="%%"&&(n++,s==="%c"&&(r=n))}),t.splice(r,0,i)}}function eu(){return typeof console=="object"&&console.log&&Function.prototype.apply.call(console.log,console,arguments)}function tu(t){try{t==null?L.storage.removeItem("debug"):L.storage.debug=t}catch{}}function Sa(){var t;try{t=L.storage.debug}catch{}return!t&&typeof process<"u"&&"env"in process&&(t=process.env.DEBUG),t}L.enable(Sa());function iu(){try{return window.localStorage}catch{}}});var _r=p((Qf,Oa)=>{"use strict";var ka=Si(),nu=Dt(),xa=Ve(),ru=St(),su=yr(),re=Ft()("engine.io-client:polling");Oa.exports=fe;var ou=function(){var t=_i(),e=new t({xdomain:!1});return e.responseType!=null}();function fe(t){var e=t&&t.forceBase64;(!ou||e)&&(this.supportsBinary=!1),ka.call(this,t)}ru(fe,ka);fe.prototype.name="polling";fe.prototype.doOpen=function(){this.poll()};fe.prototype.pause=function(t){var e=this;this.readyState="pausing";function i(){re("paused"),e.readyState="paused",t()}if(this.polling||!this.writable){var n=0;this.polling&&(re("we are currently polling - waiting to pause"),n++,this.once("pollComplete",function(){re("pre-pause polling complete"),--n||i()})),this.writable||(re("we are currently writing - waiting to pause"),n++,this.once("drain",function(){re("pre-pause writing complete"),--n||i()}))}else i()};fe.prototype.poll=function(){re("polling"),this.polling=!0,this.doPoll(),this.emit
1("poll")};fe.prototype.onData=function(t){var e=this;re("polling got data %s",t);var i=function(n,r,s){if(e.readyState==="opening"&&n.type==="open"&&e.onOpen(),n.type==="close")return e.onClose(),!1;e.onPacket(n)};xa.decodePayload(t,this.socket.binaryType,i),this.readyState!=="closed"&&(this.polling=!1,this.emit("pollComplete"),this.readyState==="open"?this.poll():re('ignoring poll - transport state "%s"',this.readyState))};fe.prototype.doClose=function(){var t=this;function e(){re("writing close packet"),t.write([{type:"close"}])}this.readyState==="open"?(re("transport open - closing"),e()):(re("transport not open - deferring close"),this.once("open",e))};fe.prototype.write=function(t){var e=this;this.writable=!1;var i=function(){e.writable=!0,e.emit("drain")};xa.encodePayload(t,this.supportsBinary,function(n){e.doWrite(n,i)})};fe.prototype.uri=function(){var t=this.query||{},e=this.secure?"https":"http",i="";this.timestampRequests!==!1&&(t[this.timestampParam]=su()),!this.supportsBinary&&!t.sid&&(t.b64=1),t=nu.encode(t),this.port&&(e==="https"&&Number(this.port)!==443||e==="http"&&Number(this.port)!==80)&&(i=":"+this.port),t.length&&(t="?"+t);var n=this.hostname.indexOf(":")!==-1;return e+"://"+(n?"["+this.hostname+"]":this.hostname)+i+this.path+t}});var Ra=p((Zf,Cr)=>{"use strict";var au=_i(),Ia=_r(),cu=Re(),lu=St(),br=Ft()("engine.io-client:polling-xhr"),hu=vi();Cr.exports=tt;Cr.exports.Request=T;function Fa(){}function tt(t){if(Ia.call(this,t),this.requestTimeout=t.requestTimeout,this.extraHeaders=t.extraHeaders,typeof location<"u"){var e=location.protocol==="https:",i=location.port;i||(i=e?443:80),this.xd=typeof location<"u"&&t.hostname!==location.hostname||i!==t.port,this.xs=t.secure!==e}}lu(tt,Ia);tt.prototype.supportsBinary=!0;tt.prototype.request=function(t){return t=t||{},t.uri=this.uri(),t.xd=this.xd,t.xs=this.xs,t.agent=this.agent||!1,t.supportsBinary=this.supportsBinary,t.enablesXDR=this.enablesXDR,t.withCredentials=this.withCredentials,t.pfx=this.pfx,t.key=this.key,t.passphrase=this.passphrase,t.cert=this.cert,t.ca=this.ca,t.ciphers=this.ciphers,t.rejectUnauthorized=this.rejectUnauthorized,t.requestTimeout=this.requestTimeout,t.extraHeaders=this.extraHeaders,new T(t)};tt.prototype.doWrite=function(t,e){var i=typeof t!="string"&&t!==void 0,n=this.request({method:"POST",data:t,isBinary:i}),r=this;n.on("success",e),n.on("error",function(s){r.onError("xhr post error",s)}),this.sendXhr=n};tt.prototype.doPoll=function(){br("xhr poll");var t=this.request(),e=this;t.on("data",function(i){e.onData(i)}),t.on("error",function(i){e.onError("xhr poll error",i)}),this.pollXhr=t};function T(t){this.method=t.method||"GET",this.uri=t.uri,this.xd=!!t.xd,this.xs=!!t.xs,this.async=t.async!==!1,this.data=t.data!==void 0?t.data:null,this.agent=t.agent,this.isBinary=t.isBinary,this.supportsBinary=t.supportsBinary,this.enablesXDR=t.enablesXDR,this.withCredentials=t.withCredentials,this.requestTimeout=t.requestTimeout,this.pfx=t.pfx,this.key=t.key,this.passphrase=t.passphrase,this.cert=t.cert,this.ca=t.ca,this.ciphers=t.ciphers,this.rejectUnauthorized=t.rejectUnauthorized,this.extraHeaders=t.extraHeaders,this.create()}cu(T.prototype);T.prototype.create=function(){var t={agent:this.agent,xdomain:this.xd,xscheme:this.xs,enablesXDR:this.enablesXDR};t.pfx=this.pfx,t.key=this.key,t.passphrase=this.passphrase,t.cert=this.cert,t.ca=this.ca,t.ciphers=this.ciphers,t.rejectUnauthorized=this.rejectUnauthorized;var e=this.xhr=new au(t),i=this;try{br("xhr open %s: %s",this.method,this.uri),e.open(this.method,this.uri,this.async);try{if(this.extraHeaders){e.setDisableHeaderCheck&&e.setDisableHeaderCheck(!0);for(var n in this.extraHeaders)this.extraHeaders.hasOwnProperty(n)&&e.setRequestHeader(n,this.extraHeaders[n])}}catch{}if(this.method==="POST")try{this.isBinary?e.setRequestHeader("Content-type","application/octet-stream"):e.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{e.setRequestHeader("Accept","*/*")}catch{}"withCredentials"in e&&(e.withCredentials=this.withCredentials),this.requestTimeout&&(e.timeout=this.requestTimeout),this.hasXDR()?(e.onload=function(){i.onLoad()},e.onerror=function(){i.onError(e.responseText)}):e.onreadystatechange=function(){if(e.readyState===2)try{var r=e.getResponseHeader("Content-Type");(i.supportsBinary&&r==="application/octet-stream"||r==="application/octet-stream; charset=UTF-8")&&(e.responseType="arraybuffer")}catch{}e.readyState===4&&(e.status===200||e.status===1223?i.onLoad():setTimeout(function(){i.onError(typeof e.status=="number"?e.status:0)},0))},br("xhr data %s",this.data),e.send(this.data)}catch(r){setTimeout(function(){i.onError(r)},0);return}typeof document<"u"&&(this.index=T.requestsCount++,T.requests[this.index]=this)};
1T.prototype.onSuccess=function(){this.emit("success"),this.cleanup()};T.prototype.onData=function(t){this.emit("data",t),this.onSuccess()};T.prototype.onError=function(t){this.emit("error",t),this.cleanup(!0)};T.prototype.cleanup=function(t){if(!(typeof this.xhr>"u"||this.xhr===null)){if(this.hasXDR()?this.xhr.onload=this.xhr.onerror=Fa:this.xhr.onreadystatechange=Fa,t)try{this.xhr.abort()}catch{}typeof document<"u"&&delete T.requests[this.index],this.xhr=null}};T.prototype.onLoad=function(){var t;try{var e;try{e=this.xhr.getResponseHeader("Content-Type")}catch{}e==="application/octet-stream"||e==="application/octet-stream; charset=UTF-8"?t=this.xhr.response||this.xhr.responseText:t=this.xhr.responseText}catch(i){this.onError(i)}t!=null&&this.onData(t)};T.prototype.hasXDR=function(){return typeof XDomainRequest<"u"&&!this.xs&&this.enablesXDR};T.prototype.abort=function(){this.cleanup()};T.requestsCount=0;T.requests={};typeof document<"u"&&(typeof attachEvent=="function"?attachEvent("onunload",Ma):typeof addEventListener=="function"&&(Ta="onpagehide"in hu?"pagehide":"unload",addEventListener(Ta,Ma,!1)));var Ta;function Ma(){for(var t in T.requests)T.requests.hasOwnProperty(t)&&T.requests[t].abort()}});var Pa=p((Jf,Na)=>{"use strict";var wr=_r(),uu=St(),Va=vi();Na.exports=it;var du=/\n/g,fu=/\\n/g,xi;function pu(){}function it(t){wr.call(this,t),this.query=this.query||{},xi||(xi=Va.___eio=Va.___eio||[]),this.index=xi.length;var e=this;xi.push(function(i){e.onData(i)}),this.query.j=this.index,typeof addEventListener=="function"&&addEventListener("beforeunload",function(){e.script&&(e.script.onerror=pu)},!1)}uu(it,wr);it.prototype.supportsBinary=!1;it.prototype.doClose=function(){this.script&&(this.script.parentNode.removeChild(this.script),this.script=null),this.form&&(this.form.parentNode.removeChild(this.form),this.form=null,this.iframe=null),wr.prototype.doClose.call(this)};it.prototype.doPoll=function(){var t=this,e=document.createElement("script");this.script&&(this.script.parentNode.removeChild(this.script),this.script=null),e.async=!0,e.src=this.uri(),e.onerror=function(r){t.onError("jsonp poll error",r)};var i=document.getElementsByTagName("script")[0];i?i.parentNode.insertBefore(e,i):(document.head||document.body).appendChild(e),this.script=e;var n=typeof navigator<"u"&&/gecko/i.test(navigator.userAgent);n&&setTimeout(function(){var r=document.createElement("iframe");document.body.appendChild(r),document.body.removeChild(r)},100)};it.prototype.doWrite=function(t,e){var i=this;if(!this.form){var n=document.createElement("form"),r=document.createElement("textarea"),s=this.iframeId="eio_iframe_"+this.index,o;n.className="socketio",n.style.position="absolute",n.style.top="-1000px",n.style.left="-1000px",n.target=s,n.method="POST",n.setAttribute("accept-charset","utf-8"),r.name="d",n.appendChild(r),document.body.appendChild(n),this.form=n,this.area=r}this.form.action=this.uri();function a(){c(),e()}function c(){if(i.iframe)try{i.form.removeChild(i.iframe)}catch(l){i.onError("jsonp polling iframe removal error",l)}try{var h='<iframe src="javascript:0" name="'+i.iframeId+'">';o=document.createElement(h)}catch{o=document.createElement("iframe"),o.name=i.iframeId,o.src="javascript:0"}o.id=i.iframeId,i.form.appendChild(o),i.iframe=o}c(),t=t.replace(fu,`\\
2`),this.area.value=t.replace(du,"\\n");try{this.form.submit()}catch{}this.iframe.attachEvent?this.iframe.onreadystatechange=function(){i.iframe.readyState==="complete"&&a()}:this.iframe.onload=a}});var La=p((ep,Ba)=>{"use strict";Ba.exports=function(){throw new Error("ws does not work in the browser. Browser clients must use the native WebSocket object")}});var Ha=p((tp,ja)=>{"use strict";var Er=Si(),gu=Ve(),mu=Dt(),yu=St(),vu=yr(),_u=Ft()("engine.io-client:websocket"),Oi,Dr;typeof WebSocket<"u"?Oi=WebSocket:typeof self<"u"&&(Oi=self.WebSocket||self.MozWebSocket);if(typeof window>"u")try{Dr=La()}catch{}var nt=Oi||Dr;ja.exports=Q;function Q(t){var e=t&&t.forceBase64;e&&(this.supportsBinary=!1),this.perMessageDeflate=t.perMessageDeflate,this.usingBrowserWebSocket=Oi&&!t.forceNode,this.protocols=t.protocols,this.usingBrowserWebSocket||(nt=Dr),Er.call(this,t)}yu(Q,Er);Q.prototype.name="websocket";Q.prototype.supportsBinary=!0;Q.prototype.doOpen=function(){if(this.check()){var t=this.uri(),e=this.protocols,i={};this.isReactNative||(i.agent=this.agent,i.perMessageDeflate=this.perMessageDeflate,i.pfx=this.pfx,i.key=this.key,i.passphrase=this.passphrase,i.cert=this.cert,i.ca=this.ca,i.ciphers=this.ciphers,i.rejectUnauthorized=this.rejectUnauthorized),this.extraHeaders&&(i.headers=this.extraHeaders),this.localAddress&&(i.localAddress=this.localAddress);try{this.ws=this.usingBrowserWebSocket&&!this.isReactNative?e?new nt(t,e):new nt(t):new nt(t,e,i)}
2catch(n){return this.emit("error",n)}this.ws.binaryType===void 0&&(this.supportsBinary=!1),this.ws.supports&&this.ws.supports.binary?(this.supportsBinary=!0,this.ws.binaryType="nodebuffer"):this.ws.binaryType="arraybuffer",this.addEventListeners()}};Q.prototype.addEventListeners=function(){var t=this;this.ws.onopen=function(){t.onOpen()},this.ws.onclose=function(){t.onClose()},this.ws.onmessage=function(e){t.onData(e.data)},this.ws.onerror=function(e){t.onError("websocket error",e)}};Q.prototype.write=function(t){var e=this;this.writable=!1;for(var i=t.length,n=0,r=i;n<r;n++)(function(o){gu.encodePacket(o,e.supportsBinary,function(a){if(!e.usingBrowserWebSocket){var c={};if(o.options&&(c.compress=o.options.compress),e.perMessageDeflate){var h=typeof a=="string"?Buffer.byteLength(a):a.length;h<e.perMessageDeflate.threshold&&(c.compress=!1)}}try{e.usingBrowserWebSocket?e.ws.send(a):e.ws.send(a,c)}catch{_u("websocket closed before onclose event")}--i||s()})})(t[n]);function s(){e.emit("flush"),setTimeout(function(){e.writable=!0,e.emit("drain")},0)}};Q.prototype.onClose=function(){Er.prototype.onClose.call(this)};Q.prototype.doClose=function(){typeof this.ws<"u"&&this.ws.close()};Q.prototype.uri=function(){var t=this.query||{},e=this.secure?"wss":"ws",i="";this.port&&(e==="wss"&&Number(this.port)!==443||e==="ws"&&Number(this.port)!==80)&&(i=":"+this.port),this.timestampRequests&&(t[this.timestampParam]=vu()),this.supportsBinary||(t.b64=1),t=mu.encode(t),t.length&&(t="?"+t);var n=this.hostname.indexOf(":")!==-1;return e+"://"+(n?"["+this.hostname+"]":this.hostname)+i+this.path+t};Q.prototype.check=function(){return!!nt&&!("__initialize"in nt&&this.name===Q.prototype.name)}
2});var Ar=p(Sr=>{"use strict";var bu=_i(),Cu=Ra(),wu=Pa(),Eu=Ha();Sr.polling=Du;Sr.websocket=Eu;function Du(t){var e,i=!1,n=!1,r=t.jsonp!==!1;if(typeof location<"u"){var s=location.protocol==="https:",o=location.port;o||(o=s?443:80),i=t.hostname!==location.hostname||o!==t.port,n=t.secure!==s}if(t.xdomain=i,t.xscheme=n,e=new bu(t),"open"in e&&!t.forceJSONP)return new Cu(t);if(!r)throw new Error("JSONP disabled");return new wu(t)}});var kr=p((np,Ua)=>{"use strict";var Su=[].indexOf;Ua.exports=function(t,e){if(Su)return t.indexOf(e);for(var i=0;i<t.length;++i)if(t[i]===e)return i;return-1}});var Wa=p((rp,$a)=>{"use strict";var Au=Ar(),ku=Re(),O=Ft()("engine.io-client:socket"),xu=kr(),za=Ve(),qa=Zn(),Ou=Dt();$a.exports=b;function b(t,e){if(!(this instanceof b))return new b(t,e);e=e||{},t&&typeof t=="object"&&(e=t,t=null),t?(t=qa(t),e.hostname=t.host,e.secure=t.protocol==="https"||t.protocol==="wss",e.port=t.port,t.query&&(e.query=t.query)):e.host&&(e.hostname=qa(e.host).host),this.secure=e.secure!=null?e.secure:typeof location<"u"&&location.protocol==="https:",e.hostname&&!e.port&&(e.port=this.secure?"443":"80"),this.agent=e.agent||!1,this.hostname=e.hostname||(typeof location<"u"?location.hostname:"localhost"),this.port=e.port||(typeof location<"u"&&location.port?location.port:this.secure?443:80),this.query=e.query||{},typeof this.query=="string"&&(this.query=Ou.decode(this.query)),this.upgrade=e.upgrade!==!1,this.path=(e.path||"/engine.io").replace(/\/$/,"")+"/",this.forceJSONP=!!e.forceJSONP,this.jsonp=e.jsonp!==!1,this.forceBase64=!!e.forceBase64,this.enablesXDR=!!e.enablesXDR,this.withCredentials=e.withCredentials!==!1,this.timestampParam=e.timestampParam||"t",this.timestampRequests=e.timestampRequests,this.transports=e.transports||["polling","websocket"],this.transportOptions=e.transportOptions||{},this.readyState="",this.writeBuffer=[],this.prevBufferLen=0,this.policyPort=e.policyPort||843,this.rememberUpgrade=e.rememberUpgrade||!1,this.binaryType=null,this.onlyBinaryUpgrades=e.onlyBinaryUpgrades,this.perMessageDeflate=e.perMessageDeflate!==!1?e.perMessageDeflate||{}:!1,this.perMessageDeflate===!0&&(this.perMessageDeflate={}),this.perMessageDeflate&&this.perMessageDeflate.threshold==null&&(this.perMessageDeflate.threshold=1024),this.pfx=e.pfx||void 0,this.key=e.key||void 0,this.passphrase=e.passphrase||void 0,this.cert=e.cert||void 0,this.ca=e.ca||void 0,this.ciphers=e.ciphers||void 0,this.rejectUnauthorized=e.rejectUnauthorized===void 0?!0:e.rejectUnauthorized,this.forceNode=!!e.forceNode,this.isReactNative=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative",(typeof self>"u"||this.isReactNative)&&(e.extraHeaders&&Object.keys(e.extraHeaders).length>0&&(this.extraHeaders=e.extraHeaders),e.localAddress&&(this.localAddress=e.localAddress)),this.id=null,this.upgrades=null,this.pingInterval=null,this.pingTimeout=null,this.pingIntervalTimer=null,this.pingTimeoutTimer=null,this.open()}b.priorWebsocketSuccess=!1;ku(b.prototype);b.protocol=za.protocol;b.Socket=b;b.Transport=Si();b.transports=Ar();b.parser=Ve();b.prototype.createTransport=function(t){O('creating transport "%s"',t);var e=Fu(this.query);e.EIO=za.protocol,e.transport=t;var i=this.transportOptions[t]||{};this.id&&(e.sid=this.id);var n=new Au[t]({query:e,socket:this,agent:i.agent||this.agent,hostname:i.hostname||this.hostname,port:i.port||this.port,secure:i.secure||this.secure,path:i.path||this.path,forceJSONP:i.forceJSONP||this.forceJSONP,jsonp:i.jsonp||this.jsonp,forceBase64:i.forceBase64||this.forceBase64,enablesXDR:i.enablesXDR||this.enablesXDR,withCredentials:i.withCredentials||this.withCredentials,timestampRequests:i.timestampRequests||this.timestampRequests,timestampParam:i.timestampParam||this.timestampParam,policyPort:i.policyPort||this.policyPort,pfx:i.pfx||this.pfx,key:i.key||this.key,passphrase:i.passphrase||this.passphrase,cert:i.cert||this.cert,ca:i.ca||this.ca,ciphers:i.ciphers||this.ciphers,rejectUnauthorized:i.rejectUnauthorized||this.rejectUnauthorized,perMessageDeflate:i.perMessageDeflate||this.perMessageDeflate,extraHeaders:i.extraHeaders||this.extraHeaders,forceNo
2de:i.forceNode||this.forceNode,localAddress:i.localAddress||this.localAddress,requestTimeout:i.requestTimeout||this.requestTimeout,protocols:i.protocols||void 0,isReactNative:this.isReactNative});return n};function Fu(t){var e={};for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i]);return e}b.prototype.open=function(){var t;if(this.rememberUpgrade&&b.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1)t="websocket";else if(this.transports.length===0){var e=this;setTimeout(function(){e.emit("error","No transports available")},0);return}else t=this.transports[0];this.readyState="opening";try{t=this.createTransport(t)}catch{this.transports.shift(),this.open();return}t.open(),this.setTransport(t)};b.prototype.setTransport=function(t){O("setting transport %s",t.name);var e=this;this.transport&&(O("clearing existing transport %s",this.transport.name),this.transport.removeAllListeners()),this.transport=t,t.on("drain",function(){e.onDrain()}).on("packet",function(i){e.onPacket(i)}).on("error",function(i){e.onError(i)}).on("close",function(){e.onClose("transport close")})};b.prototype.probe=function(t){O('probing transport "%s"',t);var e=this.createTransport(t,{probe:1}),i=!1,n=this;b.priorWebsocketSuccess=!1;function r(){if(n.onlyBinaryUpgrades){var u=!this.supportsBinary&&n.transport.supportsBinary;i=i||u}i||(O('probe transport "%s" opened',t),e.send([{type:"ping",data:"probe"}]),e.once("packet",function(f){if(!i)if(f.type==="pong"&&f.data==="probe"){if(O('probe transport "%s" pong',t),n.upgrading=!0,n.emit("upgrading",e),!e)return;b.priorWebsocketSuccess=e.name==="websocket",O('pausing current transport "%s"',n.transport.name),n.transport.pause(function(){i||n.readyState!=="closed"&&(O("changing transport and sending upgrade packet"),l(),n.setTransport(e),e.send([{type:"upgrade"}]),n.emit("upgrade",e),e=null,n.upgrading=!1,n.flush())})}else{O('probe transport "%s" failed',t);var g=new Error("probe error");g.transport=e.name,n.emit("upgradeError",g)}}))}function s(){i||(i=!0,l(),e.close(),e=null)}function o(u){var f=new Error("probe error: "+u);f.transport=e.name,s(),O('probe transport "%s" failed because of error: %s',t,u),n.emit("upgradeError",f)}function a(){o("transport closed")}function c(){o("socket closed")}function h(u){e&&u.name!==e.name&&(O('"%s" works - aborting "%s"',u.name,e.name),s())}function l(){e.removeListener("open",r),e.removeListener("error",o),e.removeListener("close",a),n.removeListener("close",c),n.removeListener("upgrading",h)}e.once("open",r),e.once("error",o),e.once("close",a),this.once("close",c),this.once("upgrading",h),e.open()};b.prototype.onOpen=function(){if(O("socket open"),this.readyState="open",b.priorWebsocketSuccess=this.transport.name==="websocket",this.emit("open"),this.flush(),this.readyState==="open"&&this.upgrade&&this.transport.pause){O("starting upgrade probes");for(var t=0,e=this.upgrades.length;t<e;t++)this.probe(this.upgrades[t])}};b.prototype.onPacket=function(t){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")switch(O('socket receive: type "%s", data "%s"',t.type,t.data),this.emit("packet",t),this.emit("heartbeat"),t.type){case"open":this.onHandshake(JSON.parse(t.data));break;case"pong":this.setPing(),this.emit("pong");break;case"error":var e=new Error("server error");e.code=t.data,this.onError(e);break;
2case"message":this.emit("data",t.data),this.emit("message",t.data);break}else O('packet received with socket readyState "%s"',this.readyState)};b.prototype.onHandshake=function(t){this.emit("handshake",t),this.id=t.sid,this.transport.query.sid=t.sid,this.upgrades=this.filterUpgrades(t.upgrades),this.pingInterval=t.pingInterval,this.pingTimeout=t.pingTimeout,this.onOpen(),this.readyState!=="closed"&&(this.setPing(),this.removeListener("heartbeat",this.onHeartbeat),this.on("heartbeat",this.onHeartbeat))};b.prototype.onHeartbeat=function(t){clearTimeout(this.pingTimeoutTimer);var e=this;e.pingTimeoutTimer=setTimeout(function(){e.readyState!=="closed"&&e.onClose("ping timeout")},t||e.pingInterval+e.pingTimeout)};b.prototype.setPing=function(){var t=this;clearTimeout(t.pingIntervalTimer),t.pingIntervalTimer=setTimeout(function(){O("writing ping packet - expecting pong within %sms",t.pingTimeout),t.ping(),t.onHeartbeat(t.pingTimeout)},t.pingInterval)};b.prototype.ping=function(){var t=this;this.sendPacket("ping",function(){t.emit("ping")})};b.prototype.onDrain=function(){this.writeBuffer.splice(0,this.prevBufferLen),this.prevBufferLen=0,this.writeBuffer.length===0?this.emit("drain"):this.flush()};b.prototype.flush=function(){this.readyState!=="closed"&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length&&(O("flushing %d packets in socket",this.writeBuffer.length),this.transport.send(this.writeBuffer),this.prevBufferLen=this.writeBuffer.length,this.emit("flush"))};b.prototype.write=b.prototype.send=function(t,e,i){return this.sendPacket("message",t,e,i),this};b.prototype.sendPacket=function(t,e,i,n){if(typeof e=="function"&&(n=e,e=void 0),typeof i=="function"&&(n=i,i=null),!(this.readyState==="closing"||this.readyState==="closed")){i=i||{},i.compress=i.compress!==!1;var r={type:t,data:e,options:i};this.emit("packetCreate",r),this.writeBuffer.push(r),n&&this.once("flush",n),this.flush()}};b.prototype.close=function(){if(this.readyState==="opening"||this.readyState==="open"){this.readyState="closing";var t=this;this.writeBuffer.length?this.once("drain",function(){this.upgrading?n():e()}):this.upgrading?n():e()}function e(){t.onClose("forced close"),O("socket closing - telling transport to close"),t.transport.close()}function i(){t.removeListener("upgrade",i),t.removeListener("upgradeError",i),e()}function n(){t.once("upgrade",i),t.once("upgradeError",i)}return this};b.prototype.onError=function(t){O("socket error %j",t),b.priorWebsocketSuccess=!1,this.emit("error",t),this.onClose("transport error",t)};b.prototype.onClose=function(t,e){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing"){O('socket close with reason: "%s"',t);var i=this;clearTimeout(this.pingIntervalTimer),clearTimeout(this.pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),this.readyState="closed",this.id=null,this.emit("close",t,e),i.writeBuffer=[],i.prevBufferLen=0}};b.prototype.filterUpgrades=function(t){for(var e=[],i=0,n=t.length;i<n;i++)~xu(this.transports,t[i])&&e.push(t[i]);return e}});var Ga=p((sp,xr)=>{"use strict";xr.exports=Wa();xr.exports.parser=Ve()});var Ya=p((op,Xa)=>{"use strict";Xa.exports=Tu;function Tu(t,e){var i=[];e=e||0;for(var n=e||0;n<t.length;n++)i[n-e]=t[n];return i}});var Or=p((ap,Ka)=>{"use strict";Ka.exports=Mu;function Mu(t,e,i){return t.on(e,i),{destroy:function(){t.removeListener(e,i)}}}});var Fr=p((cp,Za)=>{"use strict";var Qa=[].slice;Za.exports=function(t,e){if(typeof e=="string"&&(e=t[e]),typeof e!="function")throw new Error("bind() requires a function");var i=Qa.call(arguments,2);return function(){return e.apply(t,i.concat(Qa.call(arguments)))}}});var Vr=p((tc,ic)=>{"use strict";
2var j=yi(),Ja=Re(),Ir=Ya(),Tr=Or(),Mr=Fr(),se=Ze()("socket.io-client:socket"),Iu=Dt(),ec=lr();ic.exports=tc=A;var Ru={connect:1,connect_error:1,connect_timeout:1,connecting:1,disconnect:1,error:1,reconnect:1,reconnect_attempt:1,reconnect_failed:1,reconnect_error:1,reconnecting:1,ping:1,pong:1},Rr=Ja.prototype.emit;function A(t,e,i){this.io=t,this.nsp=e,this.json=this,this.ids=0,this.acks={},this.receiveBuffer=[],this.sendBuffer=[],this.connected=!1,this.disconnected=!0,this.flags={},i&&i.query&&(this.query=i.query),this.io.autoConnect&&this.open()}Ja(A.prototype);A.prototype.subEvents=function(){if(!this.subs){var t=this.io;this.subs=[Tr(t,"open",Mr(this,"onopen")),Tr(t,"packet",Mr(this,"onpacket")),Tr(t,"close",Mr(this,"onclose"))]}};A.prototype.open=A.prototype.connect=function(){return this.connected?this:(this.subEvents(),this.io.reconnecting||this.io.open(),this.io.readyState==="open"&&this.onopen(),this.emit("connecting"),this)};A.prototype.send=function(){var t=Ir(arguments);return t.unshift("message"),this.emit.apply(this,t),this};A.prototype.emit=function(t){if(Ru.hasOwnProperty(t))return Rr.apply(this,arguments),this;var e=Ir(arguments),i={type:(this.flags.binary!==void 0?this.flags.binary:ec(e))?j.BINARY_EVENT:j.EVENT,data:e};return i.options={},i.options.compress=!this.flags||this.flags.compress!==!1,typeof e[e.length-1]=="function"&&(se("emitting packet with ack id %d",this.ids),this.acks[this.ids]=e.pop(),i.id=this.ids++),this.connected?this.packet(i):this.sendBuffer.push(i),this.flags={},this};A.prototype.packet=function(t){t.nsp=this.nsp,this.io.packet(t)};A.prototype.onopen=function(){if(se("transport is open - connecting"),this.nsp!=="/")if(this.query){var t=typeof this.query=="object"?Iu.encode(this.query):this.query;se("sending connect packet with query %s",t),this.packet({type:j.CONNECT,query:t})}else this.packet({type:j.CONNECT})};A.prototype.onclose=function(t){se("close (%s)",t),this.connected=!1,this.disconnected=!0,delete this.id,this.emit("disconnect",t)};A.prototype.onpacket=function(t){var e=t.nsp===this.nsp,i=t.type===j.ERROR&&t.nsp==="/";if(!(!e&&!i))switch(t.type){case j.CONNECT:this.onconnect();break;case j.EVENT:this.onevent(t);break;case j.BINARY_EVENT:this.onevent(t);break;case j.ACK:this.onack(t);break;case j.BINARY_ACK:this.onack(t);break;case j.DISCONNECT:this.ondisconnect();break;case j.ERROR:this.emit("error",t.data);break}};A.prototype.onevent=function(t){var e=t.data||[];se("emitting event %j",e),t.id!=null&&(se("attaching ack callback to event"),e.push(this.ack(t.id))),this.connected?Rr.apply(this,e):this.receiveBuffer.push(e)};A.prototype.ack=function(t){var e=this,i=!1;return function(){if(!i){i=!0;var n=Ir(arguments);se("sending ack %j",n),e.packet({type:ec(n)?j.BINARY_ACK:j.ACK,id:t,data:n})}}};A.prototype.onack=function(t){var e=this.acks[t.id];typeof e=="function"?(se("calling ack %s with %j",t.id,t.data),e.apply(this,t.data),delete this.acks[t.id]):se("bad ack %s",t.id)};A.prototype.onconnect=function(){this.connected=!0,this.disconnected=!1,this.emitBuffered(),this.emit("connect")};A.prototype.emitBuffered=function(){var t;for(t=0;t<this.receiveBuffer.length;t++)Rr.apply(this,this.receiveBuffer[t]);for(this.receiveBuffer=[],t=0;t<this.sendBuffer.length;t++)this.packet(this.sendBuffer[t]);this.sendBuffer=[]};A.prototype.ondisconnect=function(){se("server disconnect (%s)",this.nsp),this.destroy(),this.onclose("io server disconnect")};A.prototype.destroy=function(){if(this.subs){for(var t=0;t<this.subs.length;t++)this.subs[t].destroy();this.subs=null}this.io.destroy(this)};A.prototype.close=A.prototype.disconnect=function(){return this.connected&&(se("performing disconnect (%s)",this.nsp),this.packet({type:j.DISCONNECT})),this.destroy(),this.connected&&this.onclose("io client disconnect"),this};A.prototype.compress=function(t){return this.flags.compress=t,this};A.prototype.binary=function(t){return this.flags.binary=t,this}});var rc=p((lp,nc)=>{"use strict";nc.exports=rt;function rt(t){t=t||{},this.ms=t.min||100,this.max=t.max||1e4,this.factor=t.factor||2,this.jitter=t.jitter>0&&t.jitter<=1?t.jitter:0,this.attempts=0}rt.prototype.duration=function(){var t=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var e=Math.random(),i=Math.floor(e*this.jitter*t);t=Math.floor(e*10)&1?t+i:t-i}return Math.min(t,this.max)|0};rt.prototype.reset=function(){this.attempts=0};rt.prototype.setMin=function(t){this.ms=t};rt.prototype.setMax=function(t){this.max=t};rt.prototype.setJitter=function(t){this.jitter=t}});var Nr=p((hp,ac)=>{"use strict";var Vu=Ga(),Nu=Vr(),Pu=Re(),Bu=yi(),Ae=Or(),st=Fr(),I=Ze()("socket.io-client:manager"),sc=kr(),Lu=rc(),oc=Object.prototype.hasOwnProperty;ac.exports=w;function w(t,e){if(!(this instanceof w))return new w(t,e);t&&typeof t=="object"&&(e=t,t=void 0),e=e||{},e.path=e.path||"/socket.io",this.nsps={},this.subs=[],this.opts=e,this.reconnection(e.reconnection!==!1),this.reconnectionAttempts(e.reconnectionAttempts||1/0),this.reconnectionDelay(e.reconnectionDelay||1e3),this.reconnectionDelayMax(e.reconnectionDelayMax||5e3),this.randomizationFactor(e.randomizationFactor||.5),this.backoff=new Lu({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(e.timeout==null?2e4:e.timeout),this.readyState="closed",this.uri=t,this.connecting=[],this.lastPing=null,this.encoding=!1,this.packetBuffer=[];var i=e.parser||Bu;this.encoder=new i.Encoder,this.decoder=new i.Decoder,this.autoConnect=e.autoConnect!==!1,this.autoConnect&&this.open()}w.prototype.emitAll=function(){this.emit.apply(this,arguments);for(var t in this.nsps)oc.call(this.nsps,t)&&this.nsps[t].emit.apply(this.nsps[t],arguments)};w.prototype.updateSocketIds=function(){for(var t in this.nsps)oc.call(this.nsps,t)&&(this.nsps[t].id=this.generateId(t))};w.prototype.generateId=function(t){return(t==="/"?"":t+"#")+this.engine.id};Pu(w.prototype);w.prototype.reconnection=function(t){return arguments.length?(this._reconnection=!!t,this):this._reconnection};w.prototype.reconnectionAttempts=function(t){return arguments.length?(this._reconnectionAttempts=t,this):this._reconnectionAttempts};w.prototype.reconnectionDelay=function(t){return arguments.length?(this._reconnectionDelay=t,this.backoff&&this.backoff.setMin(t),this):this._reconnectionDelay};w.prototype.randomizationFactor=function(t){return arguments.length?(this._randomizationFactor=t,this.backoff&&this.backoff.setJitter(t),this):this._randomizationFactor};w.prototype.reconnectionDelayMax=function(t){return arguments.length?(this._reconnectionDelayMax=t,this.backoff&&this.backoff.setMax(t),this):this._reconnectionDelayMax};w.prototype.timeout=function(t){return arguments.length?(this._timeout=t,this):this._timeout};w.prototype.maybeReconnectOnOpen=function(){!this.reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()};w.prototype.open=w.prototype.connect=function(t,e){if(I("readyState %s",this.readyState),~this.readyState.indexOf("open"))return this;I("opening %s",this.uri),this.engine=Vu(this.uri,this.opts);var i=this.engine,n=this;this.readyState="opening",this.skipReconnect=!1;var r=Ae(i,"open",function(){n.onopen(),t&&t()}),s=Ae(i,"error",function(c){if(I("connect_error"),n.cleanup(),n.readyState="closed",n.emitAll("connect_error",c),t){var h=new Error("Connection error");h.data=c,t(h)}else n.maybeReconnectOnOpen()});if(this._timeout!==!1){var o=this._timeout;I("connect attempt will timeout after %d",o),o===0&&r.destroy();var a=setTimeout(function(){I("connect attempt timed out after %d",o),r.destroy(),i.close(),i.emit("error","timeout"),n.emitAll("connect_timeout",o)},o);this.subs.push({destroy:function(){clearTimeout(a)}})}return this.subs.push(r),this.subs.push(s),this};w.prototype.onopen=function(){I("open"),this.cleanup(),this.readyState="open",this.emit
2("open");var t=this.engine;this.subs.push(Ae(t,"data",st(this,"ondata"))),this.subs.push(Ae(t,"ping",st(this,"onping"))),this.subs.push(Ae(t,"pong",st(this,"onpong"))),this.subs.push(Ae(t,"error",st(this,"onerror"))),this.subs.push(Ae(t,"close",st(this,"onclose"))),this.subs.push(Ae(this.decoder,"decoded",st(this,"ondecoded")))};w.prototype.onping=function(){this.lastPing=new Date,this.emitAll("ping")};w.prototype.onpong=function(){this.emitAll("pong",new Date-this.lastPing)};w.prototype.ondata=function(t){this.decoder.add(t)};w.prototype.ondecoded=function(t){this.emit("packet",t)};w.prototype.onerror=function(t){I("error",t),this.emitAll("error",t)};w.prototype.socket=function(t,e){var i=this.nsps[t];if(!i){i=new Nu(this,t,e),this.nsps[t]=i;var n=this;i.on("connecting",r),i.on("connect",function(){i.id=n.generateId(t)}),this.autoConnect&&r()}function r(){~sc(n.connecting,i)||n.connecting.push(i)}return i};w.prototype.destroy=function(t){var e=sc(this.connecting,t);~e&&this.connecting.splice(e,1),!this.connecting.length&&this.close()};w.prototype.packet=function(t){I("writing packet %j",t);var e=this;t.query&&t.type===0&&(t.nsp+="?"+t.query),e.encoding?e.packetBuffer.push(t):(e.encoding=!0,this.encoder.encode(t,function(i){for(var n=0;n<i.length;n++)e.engine.write(i[n],t.options);e.encoding=!1,e.processPacketQueue()}))};w.prototype.processPacketQueue=function(){if(this.packetBuffer.length>0&&!this.encoding){var t=this.packetBuffer.shift();this.packet(t)}};w.prototype.cleanup=function(){I("cleanup");for(var t=this.subs.length,e=0;e<t;e++){var i=this.subs.shift();i.destroy()}this.packetBuffer=[],this.encoding=!1,this.lastPing=null,this.decoder.destroy()};w.prototype.close=w.prototype.disconnect=function(){I("disconnect"),this.skipReconnect=!0,this.reconnecting=!1,this.readyState==="opening"&&this.cleanup(),this.backoff.reset(),this.readyState="closed",this.engine&&this.engine.close()};w.prototype.onclose=function(t){I("onclose"),this.cleanup(),this.backoff.reset(),this.readyState="closed",this.emit("close",t),this._reconnection&&!this.skipReconnect&&this.reconnect()};w.prototype.reconnect=function(){if(this.reconnecting||this.skipReconnect)return this;var t=this;if(this.backoff.attempts>=this._reconnectionAttempts)I("reconnect failed"),this.backoff.reset(),this.emitAll("reconnect_failed"),this.reconnecting=!1;else{var e=this.backoff.duration();I("will wait %dms before reconnect attempt",e),this.reconnecting=!0;var i=setTimeout(function(){t.skipReconnect||(I("attempting reconnect"),t.emitAll("reconnect_attempt",t.backoff.attempts),t.emitAll("reconnecting",t.backoff.attempts),!t.skipReconnect&&t.open(function(n){n?(I("reconnect attempt error"),t.reconnecting=!1,t.reconnect(),t.emitAll("reconnect_error",n.data)):(I("reconnect success"),t.onreconnect())}))},e);this.subs.push({destroy:function(){clearTimeout(i)}})}};w.prototype.onreconnect=function(){var t=this.backoff.attempts;this.reconnecting=!1,this.backoff.reset(),this.updateSocketIds(),this.emitAll("reconnect",t)}});var dc=p((Ne,uc)=>{"use strict";var ju=Vo(),Hu=yi(),cc=Nr(),lc=Ze()("socket.io-client");uc.exports=Ne=hc;var Tt=Ne.managers={};function hc(t,e){typeof t=="object"&&(e=t,t=void 0),e=e||{};var i=ju(t),n=i.source,r=i.id,s=i.path,o=Tt[r]&&s in Tt[r].nsps,a=e.forceNew||e["force new connection"]||e.multiplex===!1||o,c;return a?(lc("ignoring socket cache for %s",n),c=cc(n,e)):(Tt[r]||(lc("new io instance for %s",n),Tt[r]=cc(n,e)),c=Tt[r]),i.query&&!e.query&&(e.query=i.query),c.socket(i.path,e)}Ne.protocol=Hu.protocol;Ne.connect=hc;Ne.Manager=Nr();Ne.Socket=Vr()});var ro=(()=>{class t{constructor(i,n){this._renderer=i,this._elementRef=n,this.onChange=r=>{},this.onTouched=()=>{}}setProperty(i,n){this._renderer.setProperty(this._elementRef.nativeElement,i,n)}registerOnTouched(i){this.onTouched=i}registerOnChange(i){this.onChange=i}setDisabledState(i){this.setProperty("disabled",i)}static{this.\u0275fac=function(n){return new(n||t)(_(On),_(ie))}}static{this.\u0275dir=M({type:t})}}return t})(),Kc=(()=>{class t extends ro{static{this.\u0275fac=(()=>{let i;return function(r){return(i||(i=kn(t)))(r||t)}})()}static{this.\u0275dir=M({type:t,features:[ce]})}}return t})(),$n=new te("");var Qc={provide:$n,useExisting:Fe(()=>so),multi:!0};function Zc(){let t=In()?In().getUserAgent():"";return/android (\d+)/.test(t.toLowerCase())}var Jc=new te(""),so=(()=>{class t extends ro{constructor(i,n,r){super(i,n),this._compositionMode=r,this._composing=!1,this._compositionMode==null&&(this._compositionMode=!Zc())}writeValue(i){let n=i??"";this.setProperty("value",n)}_handleInput(i){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(i)}_compositionStart(){this._composing=!0}_compositionEnd(i){this._composing=!1,this._compositionMode&&this.onChange(i)}static{this.\u0275fac=function(n){return new(n||t)(_(On),_(ie),_(Jc,8))}}static{this.\u0275dir=M({type:t,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(n,r){n&1&&zt("input",function(o){return r._handleInput(o.target.value)})("blur",function(){return r.onTouched()})("compositionstart",function(){return r._compositionStart()})("compositionend",function(o){return r._compositionEnd(o.target.value)})},features:[Ge([Qc]),ce]})}}return t})();function be(t){return t==null||(typeof t=="string"||Array.isArray(t))&&t.length===0}function oo(t){return t!=null&&typeof t.length=="number"}var Wn=new te(""),Gn=new te(""),el=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,Qs=class{static min(e){return tl(e)}static max(e){return il(e)}static required(e){return nl(e)}static requiredTrue(e){return rl(e)}static email(e){return sl(e)}static minLength(e){return ol(e)}static maxLength(e){return al(e)}static pattern(e){return cl(e)}static nullValidator(e){return ao(e)}static compose(e){return po(e)}static composeAsync(e){return mo(e)}};function tl(t){return e=>{if(be(e.value)||be(t))return null;let i=parseFloat(e.value);return!isNaN(i)&&i<t?{min:{min:t,actual:e.value}}:null}}function il(t){return e=>{if(be(e.value)||be(t))return null;let i=parseFloat(e.value);return!isNaN(i)&&i>t?{max:{max:t,actual:e.value}}:null}}function nl(t){return be(t.value)?{required:!0}:null}function rl(t){return t.value===!0?null:{required:!0}}function sl(t){return be(t.value)||el.test(t.value)?null:{email:!0}}function ol(t){return e=>be(e.value)||!oo(e.value)?null:e.value.length<t?{minlength:{requiredLength:t,actualLength:e.value.length}}:null}function al(t){return e=>oo(e.value)&&e.value.length>t?{maxlength:{requiredLength:t,actualLength:e.value.length}}:null}function cl(t){if(!t)return ao;let e,i;return typeof t=="string"?(i="",t.charAt(0)!=="^"&&(i+="^"),i+=t,t.charAt(t.length-1)!=="$"&&(i+="$"),e=new RegExp(i)):(i=t.toString(),e=t),n=>
2{if(be(n.value))return null;let r=n.value;return e.test(r)?null:{pattern:{requiredPattern:i,actualValue:r}}}}function ao(t){return null}function co(t){return t!=null}function lo(t){return Bs(t)?vs(t):t}function ho(t){let e={};return t.forEach(i=>{e=i!=null?F(F({},e),i):e}),Object.keys(e).length===0?null:e}function uo(t,e){return e.map(i=>i(t))}function ll(t){return!t.validate}function fo(t){return t.map(e=>ll(e)?e:i=>e.validate(i))}function po(t){if(!t)return null;let e=t.filter(co);return e.length==0?null:function(i){return ho(uo(i,e))}}function go(t){return t!=null?po(fo(t)):null}function mo(t){if(!t)return null;let e=t.filter(co);return e.length==0?null:function(i){let n=uo(i,e).map(lo);return Cs(n).pipe(bs(ho))}}function yo(t){return t!=null?mo(fo(t)):null}function Zs(t,e){return t===null?[e]:Array.isArray(t)?[...t,e]:[t,e]}function vo(t){return t._rawValidators}function _o(t){return t._rawAsyncValidators}function Ln(t){return t?Array.isArray(t)?t:[t]:[]}function Zt(t,e){return Array.isArray(t)?t.includes(e):t===e}function Js(t,e){let i=Ln(e);return Ln(t).forEach(r=>{Zt(i,r)||i.push(r)}),i}function eo(t,e){return Ln(e).filter(i=>!Zt(t,i))}var Jt=class{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(e){this._rawValidators=e||[],this._composedValidatorFn=go(this._rawValidators)}_setAsyncValidators(e){this._rawAsyncValidators=e||[],this._composedAsyncValidatorFn=yo(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(e){this._onDestroyCallbacks.push(e)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(e=>e()),this._onDestroyCallbacks=[]}reset(e=void 0){this.control&&this.control.reset(e)}hasError(e,i){return this.control?this.control.hasError(e,i):!1}getError(e,i){return this.control?this.control.getError(e,i):null}},Ce=class extends Jt{get formDirective(){return null}get path(){return null}},Ie=class extends Jt{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}},ei=class{constructor(e){this._cd=e}get isTouched(){return this._cd?.control?._touched?.(),!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return this._cd?.control?._pristine?.(),!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return this._cd?.control?._status?.(),!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return this._cd?._submitted?.(),!!this._cd?.submitted}},hl={"[class.ng-untouched]":"isUntouched","[class.ng-touched]":"isTouched","[class.ng-pristine]":"isPristine","[class.ng-dirty]":"isDirty","[class.ng-valid]":"isValid","[class.ng-invalid]":"isInvalid","[class.ng-pending]":"isPending"},af=P(F({},hl),{"[class.ng-submitted]":"isSubmitted"}),cf=(()=>{class t extends ei{constructor(i){super(i)}static{this.\u0275fac=function(n){return new(n||t)(_(Ie,2))}}static{this.\u0275dir=M({type:t,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(n,r){n&2&&Tn("ng-untouched",r.isUntouched)("ng-touched",r.isTouched)("ng-pristine",r.isPristine)("ng-dirty",r.isDirty)("ng-valid",r.isValid)("ng-invalid",r.isInvalid)("ng-pending",r.isPending)},features:[ce]})}}return t})(),lf=(()=>{class t extends ei{constructor(i){super(i)}static{this.\u0275fac=function(n){return new(n||t)(_(Ce,10))}}static{this.\u0275dir=M({type:t,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(n,r){n&2&&Tn("ng-untouched",r.isUntouched)("ng-touched",r.isTouched)("ng-pristine",r.isPristine)("ng-dirty",r.isDirty)("ng-valid",r.isValid)("ng-invalid",r.isInvalid)("ng-pending",r.isPending)("ng-submitted",r.isSubmitted)},features:[ce]})}}return t})();var gt="VALID",Kt="INVALID",Xe="PENDING",mt="DISABLED",we=class{},ti=class extends we{constructor(e,i){super(),this.value=e,this.source=i}},yt=class extends we{constructor(e,i){super(),this.pristine=e,this.source=i}},vt=class extends we{constructor(e,i){super(),this.touched=e,this.source=i}},Ye=class extends we{constructor(e,i){super(),this.status=e,this.source=i}},jn=class extends we{constructor(e){super(),this.source=e}},Hn=class extends we{constructor(e){super(),this.source=e}};function Xn(t){return(oi(t)?t.validators:t)||null}function ul(t){return Array.isArray(t)?go(t):t||null}function Yn(t,e){return(oi(e)?e.asyncValidators:t)||null}function dl(t){return Array.isArray(t)?yo(t):t||null}function oi(t){return t!=null&&!Array.isArray(t)&&typeof t=="object"}function bo(t,e,i){let n=t.controls;if(!(e?Object.keys(n):n).length)throw new Ht(1e3,"");if(!n[i])throw new Ht(1001,"")}function Co(t,e,i){t._forEachChild((n,r)=>{if(i[r]===void 0)throw new Ht(1002,"")})}var Ke=class{constructor(e,i){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=null,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this._status=pt(()=>this.statusReactive()),this.statusReactive=Me(void 0),this._pristine=pt(()=>this.pristineReactive()),this.pristineReactive=Me(!0),this._touched=pt(()=>this.touchedReactive()),this.touchedReactive=Me(!1),this._events=new U,this.events=this._events.asObservable(),this._onDisabledChange=[],this._assignValidators(e),this._assignAsyncValidators(i)}get validator(){return this._composedValidatorFn}set validator(e){this._rawValidators=this._composedValidatorFn=e}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(e){this._rawAsyncValidators=this._composedAsyncValidatorFn=e}get parent(){return this._parent}get status(){return le(this.statusReactive)}set status(e){le(()=>this.statusReactive.set(e))}get valid(){return this.status===gt}get invalid(){return this.status===Kt}get pending(){return this.status==Xe}get disabled(){return this.status===mt}get enabled(){return this.status!==mt}get pristine(){return le(this.pristineReactive)}set pristine(e){le(()=>this.pristineReactive.set(e))}get dirty(){return!this.pristine}get touched(){return le(this.touchedReactive)}set touched(e){le(()=>this.touchedReactive.set(e))}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(e){this._assignValidators(e)}setAsyncValidators(e){this._assignAsyncValidators(e)}addValidators(e){this.setValidators(Js(e,this._rawValidators))}addAsyncValidators(e){this.setAsyncValidators(Js(e,this._rawAsyncValidators))}removeValidators(e){this.setValidators(eo(e,this._rawValidators))}removeAsyncValidators(e){this.setAsyncValidators(eo(e,this._rawAsyncValidators))}hasValidator(e){return Zt(this._rawValidators,e)}hasAsyncValidator(e){return Zt(this._rawAsyncValidators,e)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(e={}){let i=this.touched===!1;this.touched=!0;let n=e.sourceControl??this;this._parent&&!e.onlySelf&&this._parent.markAsTouched(P(F({},e),{sourceControl:n})),i&&e.emitEvent!==!1&&this._events.next(new vt(!0,n))}markAllAsTouched(e={}){this.markAsTouched({onlySelf:!0,emitEvent:e.emitEvent,sourceControl:this}
vendor: 4,441 bytes, line 2
2),this._forEachChild(i=>i.markAllAsTouched(e))}markAsUntouched(e={}){let i=this.touched===!0;this.touched=!1,this._pendingTouched=!1;let n=e.sourceControl??this;this._forEachChild(r=>{r.markAsUntouched({onlySelf:!0,emitEvent:e.emitEvent,sourceControl:n})}),this._parent&&!e.onlySelf&&this._parent._updateTouched(e,n),i&&e.emitEvent!==!1&&this._events.next(new vt(!1,n))}markAsDirty(e={}){let i=this.pristine===!0;this.pristine=!1;let n=e.sourceControl??this;this._parent&&!e.onlySelf&&this._parent.markAsDirty(P(F({},e),{sourceControl:n})),i&&e.emitEvent!==!1&&this._events.next(new yt(!1,n))}markAsPristine(e={}){let i=this.pristine===!1;this.pristine=!0,this._pendingDirty=!1;let n=e.sourceControl??this;this._forEachChild(r=>{r.markAsPristine({onlySelf:!0,emitEvent:e.emitEvent})}),this._parent&&!e.onlySelf&&this._parent._updatePristine(e,n),i&&e.emitEvent!==!1&&this._events.next(new yt(!0,n))}markAsPending(e={}){this.status=Xe;let i=e.sourceControl??this;e.emitEvent!==!1&&(this._events.next(new Ye(this.status,i)),this.statusChanges.emit(this.status)),this._parent&&!e.onlySelf&&this._parent.markAsPending(P(F({},e),{sourceControl:i}))}disable(e={}){let i=this._parentMarkedDirty(e.onlySelf);this.status=mt,this.errors=null,this._forEachChild(r=>{r.disable(P(F({},e),{onlySelf:!0}))}),this._updateValue();let n=e.sourceControl??this;e.emitEvent!==!1&&(this._events.next(new ti(this.value,n)),this._events.next(new Ye(this.status,n)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(P(F({},e),{skipPristineCheck:i}),this),this._onDisabledChange.forEach(r=>r(!0))}enable(e={}){let i=this._parentMarkedDirty(e.onlySelf);this.status=gt,this._forEachChild(n=>{n.enable(P(F({},e),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent}),this._updateAncestors(P(F({},e),{skipPristineCheck:i}),this),this._onDisabledChange.forEach(n=>n(!1))}_updateAncestors(e,i){this._parent&&!e.onlySelf&&(this._parent.updateValueAndValidity(e),e.skipPristineCheck||this._parent._updatePristine({},i),this._parent._updateTouched({},i))}setParent(e){this._parent=e}getRawValue(){return this.value}updateValueAndValidity(e={}){if(this._setInitialStatus(),this._updateValue(),this.enabled){let n=this._cancelExistingSubscription();this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===gt||this.status===Xe)&&this._runAsyncValidator(n,e.emitEvent)}let i=e.sourceControl??this;e.emitEvent!==!1&&(this._events.next(new ti(this.value,i)),this._events.next(new Ye(this.status,i)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!e.onlySelf&&this._parent.updateValueAndValidity(P(F({},e),{sourceControl:i}))}_updateTreeValidity(e={emitEvent:!0}){this._forEachChild(i=>i._updateTreeValidity(e)),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?mt:gt}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(e,i){if(this.asyncValidator){this.status=Xe,this._hasOwnPendingAsyncValidator={emitEvent:i!==!1};let n=lo(this.asyncValidator(this));this._asyncValidationSubscription=n.subscribe(r=>{this._hasOwnPendingAsyncValidator=null,this.setErrors(r,{emitEvent:i,shouldHaveEmitted:e})})}}_cancelExistingSubscription(){if(this._asyncValidationSubscription){this._asyncValidationSubscription.unsubscribe();let e=this._hasOwnPendingAsyncValidator?.emitEvent??!1;return this._hasOwnPendingAsyncValidator=null,e}return!1}setErrors(e,i={}){this.errors=e,this._updateControlsErrors(i.emitEvent!==!1,this,i.shouldHaveEmitted)}get(e){let i=e;return i==null||(Array.isArray(i)||(i=i.split(".")),i.length===0)?null:i.reduce((n,r)=>n&&n._find(r),this)}getError(e,i){let n=i?this.get(i):this;return n&&n.errors?n.errors[e]:null}hasError(e,i){return!!this.getError(e,i)}get root(){let e=this;for(;e._parent;)e=e._parent;return e}_updateControlsErrors(e,i,n){this.status=this._calculateStatus(),e&&this.statusChanges.emit(this.status),(e||n)&&this._events.next(new Ye(this.status,i)),this._parent&&this._parent._updateControlsErrors(e,i,n)}_initObservables(){this.valueChanges=new q,this.statusChanges=new q}_calculateStatus(){return this._allControlsDisabled()?mt:this.errors?Kt:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Xe)?Xe:this._anyControlsHaveStatus(Kt)?Kt:gt}_anyControlsHaveStatus(e){return this._anyControls(i=>
vendor: 4,125 bytes, line 2
2i.status===e)}_anyControlsDirty(){return this._anyControls(e=>e.dirty)}_anyControlsTouched(){return this._anyControls(e=>e.touched)}_updatePristine(e,i){let n=!this._anyControlsDirty(),r=this.pristine!==n;this.pristine=n,this._parent&&!e.onlySelf&&this._parent._updatePristine(e,i),r&&this._events.next(new yt(this.pristine,i))}_updateTouched(e={},i){this.touched=this._anyControlsTouched(),this._events.next(new vt(this.touched,i)),this._parent&&!e.onlySelf&&this._parent._updateTouched(e,i)}_registerOnCollectionChange(e){this._onCollectionChange=e}_setUpdateStrategy(e){oi(e)&&e.updateOn!=null&&(this._updateOn=e.updateOn)}_parentMarkedDirty(e){let i=this._parent&&this._parent.dirty;return!e&&!!i&&!this._parent._anyControlsDirty()}_find(e){return null}_assignValidators(e){this._rawValidators=Array.isArray(e)?e.slice():e,this._composedValidatorFn=ul(this._rawValidators)}_assignAsyncValidators(e){this._rawAsyncValidators=Array.isArray(e)?e.slice():e,this._composedAsyncValidatorFn=dl(this._rawAsyncValidators)}},ii=class extends Ke{constructor(e,i,n){super(Xn(i),Yn(n,i)),this.controls=e,this._initObservables(),this._setUpdateStrategy(i),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(e,i){return this.controls[e]?this.controls[e]:(this.controls[e]=i,i.setParent(this),i._registerOnCollectionChange(this._onCollectionChange),i)}addControl(e,i,n={}){this.registerControl(e,i),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}removeControl(e,i={}){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),delete this.controls[e],this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}setControl(e,i,n={}){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),delete this.controls[e],i&&this.registerControl(e,i),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}contains(e){return this.controls.hasOwnProperty(e)&&this.controls[e].enabled}setValue(e,i={}){Co(this,!0,e),Object.keys(e).forEach(n=>{bo(this,!0,n),this.controls[n].setValue(e[n],{onlySelf:!0,emitEvent:i.emitEvent})}),this.updateValueAndValidity(i)}patchValue(e,i={}){e!=null&&(Object.keys(e).forEach(n=>{let r=this.controls[n];r&&r.patchValue(e[n],{onlySelf:!0,emitEvent:i.emitEvent})}),this.updateValueAndValidity(i))}reset(e={},i={}){this._forEachChild((n,r)=>{n.reset(e?e[r]:null,{onlySelf:!0,emitEvent:i.emitEvent})}),this._updatePristine(i,this),this._updateTouched(i,this),this.updateValueAndValidity(i)}getRawValue(){return this._reduceChildren({},(e,i,n)=>(e[n]=i.getRawValue(),e))}_syncPendingControls(){let e=this._reduceChildren(!1,(i,n)=>n._syncPendingControls()?!0:i);return e&&this.updateValueAndValidity({onlySelf:!0}),e}_forEachChild(e){Object.keys(this.controls).forEach(i=>{let n=this.controls[i];n&&e(n,i)})}_setUpControls(){this._forEachChild(e=>{e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(e){for(let[i,n]of Object.entries(this.controls))if(this.contains(i)&&e(n))return!0;return!1}_reduceValue(){let e={};return this._reduceChildren(e,(i,n,r)=>((n.enabled||this.disabled)&&(i[r]=n.value),i))}_reduceChildren(e,i){let n=e;return this._forEachChild((r,s)=>{n=i(n,r,s)}),n}_allControlsDisabled(){for(let e of Object.keys(this.controls))if(this.controls[e].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(e){return this.controls.hasOwnProperty(e)?this.controls[e]:null}};var Un=class extends ii{};var ai=new te("CallSetDisabledState",{providedIn:"root",factory:()=>ci}),ci="always";function fl(t,e){return[...e.path,t]}function qn(t,e,i=ci){Kn(t,e),e.valueAccessor.writeValue(t.value),(t.disabled||i==="always")&&e.valueAccessor.setDisabledState?.(t.disabled),gl(t,e),yl(t,e),ml(t,e),pl(t,e)}function ni(t,e,i=!0){let n=()=>{};e.valueAccessor&&(e.valueAccessor.registerOnChange(n),e.valueAccessor.registerOnTouched(n)),si(t,e),t&&(e._invokeOnDestroyCallbacks(),t._registerOnCollectionChange(()=>{}))}function ri(t,e){t.forEach(i=>
2{i.registerOnValidatorChange&&i.registerOnValidatorChange(e)})}function pl(t,e){if(e.valueAccessor.setDisabledState){let i=n=>{e.valueAccessor.setDisabledState(n)};t.registerOnDisabledChange(i),e._registerOnDestroy(()=>{t._unregisterOnDisabledChange(i)})}}function Kn(t,e){let i=vo(t);e.validator!==null?t.setValidators(Zs(i,e.validator)):typeof i=="function"&&t.setValidators([i]);let n=_o(t);e.asyncValidator!==null?t.setAsyncValidators(Zs(n,e.asyncValidator)):typeof n=="function"&&t.setAsyncValidators([n]);let r=()=>t.updateValueAndValidity();ri(e._rawValidators,r),ri(e._rawAsyncValidators,r)}function si(t,e){let i=!1;if(t!==null){if(e.validator!==null){let r=vo(t);if(Array.isArray(r)&&r.length>0){let s=r.filter(o=>o!==e.validator);s.length!==r.length&&(i=!0,t.setValidators(s))}}if(e.asyncValidator!==null){let r=_o(t);if(Array.isArray(r)&&r.length>0){let s=r.filter(o=>o!==e.asyncValidator);s.length!==r.length&&(i=!0,t.setAsyncValidators(s))}}}let n=()=>{};return ri(e._rawValidators,n),ri(e._rawAsyncValidators,n),i}function gl(t,e){e.valueAccessor.registerOnChange(i=>{t._pendingValue=i,t._pendingChange=!0,t._pendingDirty=!0,t.updateOn==="change"&&wo(t,e)})}function ml(t,e){e.valueAccessor.registerOnTouched(()=>{t._pendingTouched=!0,t.updateOn==="blur"&&t._pendingChange&&wo(t,e),t.updateOn!=="submit"&&t.markAsTouched()})}function wo(t,e){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function yl(t,e){let i=(n,r)=>{e.valueAccessor.writeValue(n),r&&e.viewToModelUpdate(n)};t.registerOnChange(i),e._registerOnDestroy(()=>{t._unregisterOnChange(i)})}function vl(t,e){t==null,Kn(t,e)}function _l(t,e){return si(t,e)}function Eo(t,e){if(!t.hasOwnProperty("model"))return!1;let i=t.model;return i.isFirstChange()?!0:!Object.is(e,i.currentValue)}function bl(t){return Object.getPrototypeOf(t.constructor)===Kc}function Cl(t,e){t._syncPendingControls(),e.forEach(i=>{let n=i.control;n.updateOn==="submit"&&n._pendingChange&&(i.viewToModelUpdate(n._pendingValue),n._pendingChange=!1)})}function Do(t,e){if(!e)return null;Array.isArray(e);let i,n,r;return e.forEach(s=>{s.constructor===so?i=s:bl(s)?n=s:r=s}),r||n||i||null}function wl(t,e){let i=t.indexOf(e);i>-1&&t.splice(i,1)}function to(t,e){let i=t.indexOf(e);i>-1&&t.splice(i,1)}function io(t){return typeof t=="object"&&t!==null&&Object.keys(t).length===2&&"value"in t&&"disabled"in t}var Qt=class extends Ke{constructor(e=null,i,n){super(Xn(i),Yn(n,i)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(e),this._setUpdateStrategy(i),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),oi(i)&&(i.nonNullable||i.initialValueIsDefault)&&(io(e)?this.defaultValue=e.value:this.defaultValue=e)}setValue(e,i={}){this.value=this._pendingValue=e,this._onChange.length&&i.emitModelToViewChange!==!1&&this._onChange.forEach(n=>n(this.value,i.emitViewToModelChange!==!1)),this.updateValueAndValidity(i)}patchValue(e,i={}){this.setValue(e,i)}reset(e=this.defaultValue,i={}){this._applyFormState(e),this.markAsPristine(i),this.markAsUntouched(i),this.setValue(this.value,i),this._pendingChange=!1}_updateValue(){}_anyControls(e){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(e){this._onChange.push(e)}_unregisterOnChange(e){to(this._onChange,e)}registerOnDisabledChange(e){this._onDisabledChange.push(e)}_unregisterOnDisabledChange(e){to(this._onDisabledChange,e)}_forEachChild(e){}_syncPendingControls(){return this.updateOn==="submit"&&(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),this._pendingChange)?(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),!0):!1}_applyFormState(e){io(e)?(this.value=this._pendingValue=e.value,e.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=e}};var El=t=>t instanceof Qt;var uf=(()=>{class t{static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275dir=M({type:t,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]})}}return t})();var Qn=new te(""),Dl={provide:Ie,useExisting:Fe(()=>Sl)},Sl=(()=>{class t extends Ie{set isDisabled(i){}static{this._ngModelWarningSentOnce=!1}constructor(i,n,r,s,o){super(),this._ngModelWarningConfig=s,this.callSetDisabledState=o,this.update=new q,this._ngModelWarningSent=!1,this._setValidators(i),this._setAsyncValidators(n),this.valueAccessor=Do(this,r)}
2ngOnChanges(i){if(this._isControlChanged(i)){let n=i.form.previousValue;n&&ni(n,this,!1),qn(this.form,this,this.callSetDisabledState),this.form.updateValueAndValidity({emitEvent:!1})}Eo(i,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&ni(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(i){this.viewModel=i,this.update.emit(i)}_isControlChanged(i){return i.hasOwnProperty("form")}static{this.\u0275fac=function(n){return new(n||t)(_(Wn,10),_(Gn,10),_($n,10),_(Qn,8),_(ai,8))}}static{this.\u0275dir=M({type:t,selectors:[["","formControl",""]],inputs:{form:[0,"formControl","form"],isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[Ge([Dl]),ce,Te]})}}return t})(),Al={provide:Ce,useExisting:Fe(()=>kl)},kl=(()=>{class t extends Ce{get submitted(){return le(this._submittedReactive)}set submitted(i){this._submittedReactive.set(i)}constructor(i,n,r){super(),this.callSetDisabledState=r,this._submitted=pt(()=>this._submittedReactive()),this._submittedReactive=Me(!1),this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new q,this._setValidators(i),this._setAsyncValidators(n)}ngOnChanges(i){this._checkFormPresent(),i.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(si(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(i){let n=this.form.get(i.path);return qn(n,i,this.callSetDisabledState),n.updateValueAndValidity({emitEvent:!1}),this.directives.push(i),n}getControl(i){return this.form.get(i.path)}
2removeControl(i){ni(i.control||null,i,!1),wl(this.directives,i)}addFormGroup(i){this._setUpFormContainer(i)}removeFormGroup(i){this._cleanUpFormContainer(i)}getFormGroup(i){return this.form.get(i.path)}addFormArray(i){this._setUpFormContainer(i)}removeFormArray(i){this._cleanUpFormContainer(i)}getFormArray(i){return this.form.get(i.path)}updateModel(i,n){this.form.get(i.path).setValue(n)}onSubmit(i){return this._submittedReactive.set(!0),Cl(this.form,this.directives),this.ngSubmit.emit(i),this.form._events.next(new jn(this.control)),i?.target?.method==="dialog"}onReset(){this.resetForm()}resetForm(i=void 0){this.form.reset(i),this._submittedReactive.set(!1),this.form._events.next(new Hn(this.form))}_updateDomValue(){this.directives.forEach(i=>{let n=i.control,r=this.form.get(i.path);n!==r&&(ni(n||null,i),El(r)&&(qn(r,i,this.callSetDisabledState),i.control=r))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(i){let n=this.form.get(i.path);vl(n,i),n.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(i){if(this.form){let n=this.form.get(i.path);n&&_l(n,i)&&n.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){Kn(this.form,this),this._oldForm&&si(this._oldForm,this)}_checkFormPresent(){this.form}static{this.\u0275fac=function(n){return new(n||t)(_(Wn,10),_(Gn,10),_(ai,8))}}static{this.\u0275dir=M({type:t,selectors:[["","formGroup",""]],hostBindings:function(n,r){n&1&&zt("submit",function(o){return r.onSubmit(o)})("reset",function(){return r.onReset()})},inputs:{form:[0,"formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[Ge([Al]),ce,Te]})}}return t})();var xl={provide:Ie,useExisting:Fe(()=>Ol)},Ol=(()=>{class t extends Ie{set isDisabled(i){}static{this._ngModelWarningSentOnce=!1}constructor(i,n,r,s,o){super(),this._ngModelWarningConfig=o,this._added=!1,this.name=null,this.update=new q,this._ngModelWarningSent=!1,this._parent=i,this._setValidators(n),this._setAsyncValidators(r),this.valueAccessor=Do(this,s)}ngOnChanges(i){this._added||this._setUpControl(),Eo(i,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(i){this.viewModel=i,this.update.emit(i)}get path(){return fl(this.name==null?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}_setUpControl(){this._checkParentType(),this.control=this.formDirective.addControl(this),this._added=!0}static{this.\u0275fac=function(n){return new(n||t)(_(Ce,13),_(Wn,10),_(Gn,10),_($n,10),_(Qn,8))}}static{this.\u0275dir=M({type:t,selectors:[["","formControlName",""]],inputs:{name:[0,"formControlName","name"],isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"]},outputs:{update:"ngModelChange"},features:[Ge([xl]),ce,Te]})}}return t})();var So=(()=>{class t{static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275mod=K({type:t})}static{this.\u0275inj=X({})}}return t})(),zn=class extends Ke{constructor(e,i,n){super(Xn(i),Yn(n,i)),this.controls=e,this._initObservables(),this._setUpdateStrategy(i),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(e){return this.controls[this._adjustIndex(e)]}push(e,i={}){this.controls.push(e),this._registerControl(e),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}insert(e,i,n={}){this.controls.splice(e,0,i),this._registerControl(i),this.updateValueAndValidity({emitEvent:n.emitEvent})}removeAt(e,i={}){let n=this._adjustIndex(e);n<0&&(n=0),this.controls[n]&&this.controls[n]._registerOnCollectionChange(()=>{}),this.controls.splice(n,1),this.updateValueAndValidity({emitEvent:i.emitEvent})}setControl(e,i,n={}){let r=this._adjustIndex(e);r<0&&(r=0),this.controls[r]&&this.controls[r]._registerOnCollectionChange(()=>{}),this.controls.splice(r,1),i&&(this.controls.splice(r,0,i),this._registerControl(i)),this.updateV
vendor: 2,234 bytes, line 2
2alueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(e,i={}){Co(this,!1,e),e.forEach((n,r)=>{bo(this,!1,r),this.at(r).setValue(n,{onlySelf:!0,emitEvent:i.emitEvent})}),this.updateValueAndValidity(i)}patchValue(e,i={}){e!=null&&(e.forEach((n,r)=>{this.at(r)&&this.at(r).patchValue(n,{onlySelf:!0,emitEvent:i.emitEvent})}),this.updateValueAndValidity(i))}reset(e=[],i={}){this._forEachChild((n,r)=>{n.reset(e[r],{onlySelf:!0,emitEvent:i.emitEvent})}),this._updatePristine(i,this),this._updateTouched(i,this),this.updateValueAndValidity(i)}getRawValue(){return this.controls.map(e=>e.getRawValue())}clear(e={}){this.controls.length<1||(this._forEachChild(i=>i._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:e.emitEvent}))}_adjustIndex(e){return e<0?e+this.length:e}_syncPendingControls(){let e=this.controls.reduce((i,n)=>n._syncPendingControls()?!0:i,!1);return e&&this.updateValueAndValidity({onlySelf:!0}),e}_forEachChild(e){this.controls.forEach((i,n)=>{e(i,n)})}_updateValue(){this.value=this.controls.filter(e=>e.enabled||this.disabled).map(e=>e.value)}_anyControls(e){return this.controls.some(i=>i.enabled&&e(i))}_setUpControls(){this._forEachChild(e=>this._registerControl(e))}_allControlsDisabled(){for(let e of this.controls)if(e.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(e){e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange)}_find(e){return this.at(e)??null}};function no(t){return!!t&&(t.asyncValidators!==void 0||t.validators!==void 0||t.updateOn!==void 0)}var df=(()=>{class t{constructor(){this.useNonNullable=!1}get nonNullable(){let i=new t;return i.useNonNullable=!0,i}group(i,n=null){let r=this._reduceControls(i),s={};return no(n)?s=n:n!==null&&(s.validators=n.validator,s.asyncValidators=n.asyncValidator),new ii(r,s)}record(i,n=null){let r=this._reduceControls(i);return new Un(r,n)}control(i,n,r){let s={};return this.useNonNullable?(no(n)?s=n:(s.validators=n,s.asyncValidators=r),new Qt(i,P(F({},s),{nonNullable:!0}))):new Qt(i,n,r)}array(i,n,r){let s=i.map(o=>this._createControl(o));return new zn(s,n,r)}_reduceControls(i){let n={};
2return Object.keys(i).forEach(r=>{n[r]=this._createControl(i[r])}),n}_createControl(i){if(i instanceof Qt)return i;if(i instanceof Ke)return i;if(Array.isArray(i)){let n=i[0],r=i.length>1?i[1]:null,s=i.length>2?i[2]:null;return this.control(n,r,s)}else return this.control(i)}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275prov=x({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var ff=(()=>{class t{static withConfig(i){return{ngModule:t,providers:[{provide:ai,useValue:i.callSetDisabledState??ci}]}}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275mod=K({type:t})}static{this.\u0275inj=X({imports:[So]})}}return t})(),pf=(()=>{class t{static withConfig(i){return{ngModule:t,providers:[{provide:Qn,useValue:i.warnOnNgModelWithFormControl??"always"},{provide:ai,useValue:i.callSetDisabledState??ci}]}}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275mod=K({type:t})}static{this.\u0275inj=X({imports:[So]})}}return t})();var li=class{constructor(e="",i="",n="Invitado",r="",s="online",o=""){this.id=e;this.email=i;this.name=n;this.apellido=r;this.status=s;this.avatar=o}};var Qe=class t{_storageService=Y(Wt);_defaultClient=new li;showInitialForm$=new ae(this._showInitialFormFromStorage);client$=new ae(this._clientFromStorage);constructor(){this.showInitialForm$.subscribe(e=>this._showInitialFormFromStorage=e),this.client$.subscribe(e=>this._clientFromStorage=e)}get clientOrDefault(){return this.client?this.client:this._defaultClient}get client(){return this._clientFromStorage}get _clientFromStorage(){return this._storageService.getItemOnStorage("client",null)}set _clientFromStorage(e){this._storageService.setItemOnStorage(e,"client",null)}get showInitialForm(){return this._showInitialFormFromStorage}get _showInitialFormFromStorage(){return this._storageService.getItemOnStorage("showInitialForm",!1)}set _showInitialFormFromStorage(e){this._storageService.setItemOnStorage(e,"showInitialForm",!1)}static \u0275fac=function(i){return new(i||t)};static \u0275prov=x({token:t,factory:t.\u0275fac,providedIn:"root"})};var hi=class t{#e="*$MARCO$*:";constructor(){}stringToObject(e){let i={},n="";if(e!=null&&e.includes(this.#e)){let s=e.substring(e.lastIndexOf(this.#e)+this.#e.length);return i=JSON.parse(s),n=e.substring(0,e.lastIndexOf(this.#e)),{text:n,options:i}}return{text:e,options:{}}}objectToString(e){let{text:i,options:n}=e,r=JSON.stringify(n);return`${i.trim()} ${this.#e} ${r}`}static \u0275fac=function(i){return new(i||t)};static \u0275prov=x({token:t,factory:t.\u0275fac,providedIn:"root"})};var ui=class{constructor(e,i,n="Undefined",r="Invitado",s=void 0){this.username=e;this.token=i;this.email=n;this.apellido=r;this.udid=s}};var di=class{constructor(e,i="Operador",n="online"){this.avatar=e;this.name=i;this.status=n}};var fc=Yc(dc());var Fi=class t{constructor(e,i,n){this._configLoaderService=e;this._httpClient=i;this._conversationService=n;let r=this._configLoaderService.config.endPoints;this.socketUrl=r?.socket||"https://node1.smallshi.com:1442/",this.apiUrl=r?.api||"https://node1.smallshi.com/api-widget/"}socket;socketUrl;apiUrl;newUser(e){let i=new qs({"Content-Type":"application/json"});return this._httpClient.post(`${this.apiUrl}newUser/`,e,{headers:i}).pipe(Ds(n=>{if(n.error)console.error(n);else{let r=P(F({},this._conversationService.clientOrDefault),{id:n.data.id.toString()});this._conversationService.client$.next(r)}}))}initSocket(){let e={transports:["websocket"],autoConnect:!0};this.socket=(0,fc.default)(this.socketUrl,e)}send(e,i,n){this.socket.emit("messagedetection",e,i,n)}
2join(e,i){this.socket.emit("join",e,i)}adduser(e,i){this.socket.emit("add-user",e,i)}onMessage(){return new Lt(e=>{this.socket.on("message",i=>e.next(i))})}onError(){return new Lt(e=>{this.socket.on("error",i=>e.next(i))})}onEvent(e){return new Lt(i=>{this.socket.on(e,()=>i.next())})}sendFile(e){this.socket.emit("enviarArchivo",e)}static \u0275fac=function(i){return new(i||t)(C($t),C(zs),C(Qe))};static \u0275prov=x({token:t,factory:t.\u0275fac})};var ot=class t{questions$=new ae(void 0);webAction$=new ae(void 0);sendEmailIdentification$=new ae(void 0);constructor(){}questionsFn=e=>{switch(e){case null:case"null":case void 0:case"undefined":this.questions$.next([]);return;default:try{let i=JSON.parse(e);this.questions$.next(i)}catch(i){console.error("Ocurri\xF3 un error intentando cargar las preguntas frecuentes",i),this.questions$.next([])}return}};static \u0275fac=function(i){return new(i||t)};static \u0275prov=x({token:t,factory:t.\u0275fac})};var Ti=class t{_storageService=Y(Wt);_configLoaderService=Y($t);conversationService=Y(Qe);_realtimeService=Y(Fi);_messageParserService=Y(hi);_inputsService=Y(ot);requestUrlChange$=new U;config=this._configLoaderService.config;currentTheme=this.config.theme;chatMessages$=new ae(this._messagesFromStorage);client$=this.conversationService.client$;operator=new di("");element=null;isValid$=new ae(!1);actualWritting=Me(this._messagesFromStorage.length||0);constructor(){this.chatMessages$.subscribe(e=>this._messagesFromStorage=e),this._inputsService.sendEmailIdentification$.pipe(He(e=>e!==void 0),Ss(this.isValid$),He(([,e])=>e)).subscribe(([e])=>{console.log("sendEmailIdentification",e),this.transmitMessage(`correo=${e}`,!1)})}newFlagEffect(e){this.actualWritting.set(e+1)}sendWelcomeMessage=()=>{setTimeout(()=>{if(typeof this.config.initialChatMessage=="string")this.config.initialChatMessage.trim().length!=0&&this.convertAppendMessageToMessage({from:this.operator,text:this.config.initialChatMessage,type:"received",messageType:1});else{let e=this.config.initialChatMessage;e.content.trim().length!=0&&this.transmitMessage(e.content,e.display)}},1500)};verifyChatData=()=>{try{if(!this.conversationService.client?.id)throw new Error("User ID does not exist");if(this.chatMessages$.getValue().filter(n=>n.options?.isVisible).length==0)throw new Error("Message list is empty");return this._initConnectionWithUser(),!0}catch{return this.chatMessages$.next([]),this._setupInitialChatState(),!1}};convertAppendMessageToMessage=e=>{let{from:i,text:n,type:r,messageType:s,printMessage:o=!0}=e,a=e.file_mime||void 0,{text:c,options:h}=this._messageParserService.stringToObject(n);if(r=="sent"){let G=["requestUrlChange"];for(let Le in h){let ee=Le;Object.prototype.hasOwnProperty.call(h,ee)&&(G.includes(ee)||delete h[ee])}}let{button:l,isVisible:u=!0,shouldShareUrl:f,requestUrlChange:g}=h;l&&(h.buttons=l.map(G=>({color:G.color,text:G.texto,action:G.accion}))),h.isVisible=[u,o].every(G=>G),f&&this._shareCurrentUrl(),g&&setTimeout(()=>this.requestUrlChange$.next(g));let E=new Date().getTime(),V={from:i,text:c,type:r,tipo:s,file_mime:a,options:h,date:E};this._processMessage(V),this.autoScrollToLatestMessage()};transmitMessage=(e,i=!0)=>{let n=e.trim()==="",r=this.conversationService.client;n||(this.isValid$.getValue()&&this._realtimeService.send(r,e,this.config.TOKEN),this.convertAppendMessageToMessage({from:r,text:e,type:"sent",messageType:1,printMessage:i}))};autoScrollToLatestMessage=()=>{setTimeout(()=>{if(this.element)try{let e=this.element.querySelector("#lastMessage");if(!e)return;e.scrollIntoView({block:"end",behavior:"smooth"})}catch{}},200)};get chatMessages(){return this.chatMessages$.getValue()}pushMessage=e=>{let i=this.chatMessages;i.push(e),this.chatMessages$.next(i)};restartConversation=()=>{this.chatMessages$.next([]),this.actualWritting.set(0),this._setupInitialChatState()};loadStyle(e,i,n){let r=i.createElement("style"),s=i.createElement("link");s.id="client-theme",s.rel="stylesheet",s.href=`${n}.css`,r.appendChild(s),e.appendChild(r)}_shareCurrentUrl=()=>{this.transmitMessage(window.location.href,!1)};_setupInitialChatState=()=>Dn(this,null,function*(){this.chatMessages$.next([]),yield this._login(),this._inputsService.sendEmailIdentification$.next(this.client$.getValue()?.email||""),this.sendWelcomeMessage()});_processMessage=e=>{let i=this.chatMessages;this._trimOldMessagesIfNecessary(),this.actualWritting()==null&&this.actualWritting.set(i.length),this.pushMessage(e)};_trimOldMessagesIfNecessary=()=>{let e=this.chatMessages,i=110;if(e.length>i){let n=e.length-i;e.splice(0,n)}};_initializeIoConnection=()=>{this._realtimeService.initSocket(),this._realtimeService.onMessage().subscribe(e=>{if(e.message.search("deleteMensaje")!="-1")this.chatMessages$.next([]);else if(e.tipo==1)this.convertAppendMessageToMessage({from:this.operator,text:e.message,type:"received",messageType:1});else if(e.tipo==2){let i=e.mime;this.convertAppendMessageToMessage({from:this.operator,text:e.file,type:"received",messageType:2,file_mime:i})}}),this._realtimeService.onError().subscribe(e=>{console.error("error: ",e),this.convertAppendMessageToMessage({from:this.operator,text:e.message,type:"received",messageType:1})}),this._realtimeService.onEvent("connect").subscribe(()=>{this._realtimeService.adduser(this.conversationService.client,this.config.TOKEN)}),this._realtimeService.onEvent("disconnect").subscribe(()=>{})};_login=()=>Dn(this,null,function*(){let e=this.conversationService.clientOrDefault,i=new ui(e.name,this.config.TOKEN,e.email,e.apellido);if(e.id&&(i.udid=e.id),!this.config.showInitialForm)(yield An(this._realtimeService.newUser(i))).error||this._initConnectionWithUser();else{let n=yield An(this.conversationService.showInitialForm$.pipe(He(r=>!r),Es()));this._initializeIoConnection()}});_initConnectionWithUser(){this._initializeIoConnection(),this.isValid$.next(!0)}get messages(){return this._messagesFromStorage}set _messagesFromStorage(e){this._storageService.setItemOnStorage(e,"messages",[])}get _messagesFromStorage(){return this._storageService.getItemOnStorage("messages",[])}static \u0275fac=function(i){return new(i||t)};static \u0275prov=x({token:t,factory:t.\u0275fac})};var $u=["*"];function Wu(t,e){t&1&&Vs(0)}var Gu=(()=>{class t{constructor(i){this._elementRef=i}focus(){this._elementRef.nativeElement.focus()}static{this.\u0275fac=function(n){return new(n||t)(_(ie))}}static{this.\u0275dir=M({type:t,selectors:[["","cdkStepHeader",""]],hostAttrs:["role","tab"],standalone:!0})}}return t})(),Xu=(()=>{class t{constructor(i){this.template=i}static{this.\u0275fac=function(n){return new(n||t)(_(ze))}}static{this.\u0275dir=M({type:t,selectors:[["","cdkStepLabel",""]],standalone:!0})}}return t})(),Yu=0;
2var ye={NUMBER:"number",EDIT:"edit",DONE:"done",ERROR:"error"},Ku=new te("STEPPER_GLOBAL_OPTIONS"),Qu=(()=>{class t{get completed(){return this._completedOverride==null?this._getDefaultCompleted():this._completedOverride}set completed(i){this._completedOverride=i}_getDefaultCompleted(){return this.stepControl?this.stepControl.valid&&this.interacted:this.interacted}get hasError(){return this._customError==null?this._getDefaultError():this._customError}set hasError(i){this._customError=i}_getDefaultError(){return this.stepControl&&this.stepControl.invalid&&this.interacted}constructor(i,n){this._stepper=i,this.interacted=!1,this.interactedStream=new q,this.editable=!0,this.optional=!1,this._completedOverride=null,this._customError=null,this._stepperOptions=n||{},this._displayDefaultIndicatorType=this._stepperOptions.displayDefaultIndicatorType!==!1}select(){this._stepper.selected=this}reset(){this.interacted=!1,this._completedOverride!=null&&(this._completedOverride=!1),this._customError!=null&&(this._customError=!1),this.stepControl&&(this._childForms?.forEach(i=>i.resetForm?.()),this.stepControl.reset())}ngOnChanges(){this._stepper._stateChanged()}_markAsInteracted(){this.interacted||(this.interacted=!0,this.interactedStream.emit(this))}_showError(){return this._stepperOptions.showError??this._customError!=null}static{this.\u0275fac=function(n){return new(n||t)(_(Fe(()=>Zu)),_(Ku,8))}}static{this.\u0275cmp=As({type:t,selectors:[["cdk-step"]],contentQueries:function(n,r,s){if(n&1&&(ft(s,Xu,5),ft(s,Ce,5)),n&2){let o;$e(o=We())&&(r.stepLabel=o.first),$e(o=We())&&(r._childForms=o)}},viewQuery:function(n,r){if(n&1&&Ns(ze,7),n&2){let s;$e(s=We())&&(r.content=s.first)}},inputs:{stepControl:"stepControl",label:"label",errorMessage:"errorMessage",ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],state:"state",editable:[2,"editable","editable",_e],optional:[2,"optional","optional",_e],completed:[2,"completed","completed",_e],hasError:[2,"hasError","hasError",_e]},outputs:{interactedStream:"interacted"},exportAs:["cdkStep"],standalone:!0,features:[qt,Te,Ps],ngContentSelectors:$u,decls:1,vars:0,template:function(n,r){n&1&&(Rs(),Ts(0,Wu,1,0,"ng-template"))},encapsulation:2,changeDetection:0})}}return t})(),Zu=(()=>{class t{get selectedIndex(){return this._selectedIndex}set selectedIndex(i){this.steps&&this._steps?(this._isValidIndex(i),this.selected?._markAsInteracted(),this._selectedIndex!==i&&!this._anyControlsInvalidOrPending(i)&&(i>=this._selectedIndex||this.steps.toArray()[i].editable)&&this._updateSelectedItemIndex(i)):this._selectedIndex=i}get selected(){return this.steps?this.steps.toArray()[this.selectedIndex]:void 0}set selected(i){this.selectedIndex=i&&this.steps?this.steps.toArray().indexOf(i):-1}get orientation(){return this._orientation}set orientation(i){this._orientation=i,this._keyManager&&this._keyManager.withVerticalOrientation(i==="vertical")}constructor(i,n,r){this._dir=i,this._changeDetectorRef=n,this._elementRef=r,this._destroyed=new U,this.steps=new xn,this._sortedHeaders=new xn,this.linear=!1,this._selectedIndex=0,this.selectionChange=new q,this.selectedIndexChange=new q,this._orientation="horizontal",this._groupId=Yu++}ngAfterContentInit(){this._steps.changes.pipe(jt(this._steps),Ue(this._destroyed)).subscribe(i=>{this.steps.reset(i.filter(n=>n._stepper===this)),this.steps.notifyOnChanges()})}ngAfterViewInit(){this._stepHeader.changes.pipe(jt(this._stepHeader),Ue(this._destroyed)).subscribe(i=>{this._sortedHeaders.reset(i.toArray().sort((n,r)=>n._elementRef.nativeElement.compareDocumentPosition(r._elementRef.nativeElement)&Node.DOCUMENT_POSITION_FOLLOWING?-1:1)),this._sortedHeaders.notifyOnChanges()}),this._keyManager=new Ks(this._sortedHeaders).withWrap().withHomeAndEnd().withVerticalOrientation(this._orientation==="vertical"),(this._dir?this._dir.change:_s()).pipe(jt(this._layoutDirection()),Ue(this._destroyed)).subscribe(i=>this._keyManager.withHorizontalOrientation(i)),this._keyManager.updateActiveItem(this._selectedIndex),this.steps.changes.subscribe(()=>{this.selected||(this._selectedIndex=Math.max(this._selectedIndex-1,0))}),this._isValidIndex(this._selectedIndex)||(this._selectedIndex=0)}ngOnDestroy(){this._keyManager?.destroy(),this.steps.destroy(),this._sortedHeaders.destroy(),this._destroyed.next(),this._destroyed.complete()}next(){this.selectedIndex=Math.min(this._selectedIndex+1,this.steps.length-1)}previous(){this.selectedIndex=Math.max(this._selectedIndex-1,0)}reset(){this._updateSelectedItemIndex(0),this.steps.forEach(i=>
2i.reset()),this._stateChanged()}_getStepLabelId(i){return`cdk-step-label-${this._groupId}-${i}`}_getStepContentId(i){return`cdk-step-content-${this._groupId}-${i}`}_stateChanged(){this._changeDetectorRef.markForCheck()}_getAnimationDirection(i){let n=i-this._selectedIndex;return n<0?this._layoutDirection()==="rtl"?"next":"previous":n>0?this._layoutDirection()==="rtl"?"previous":"next":"current"}_getIndicatorType(i,n=ye.NUMBER){let r=this.steps.toArray()[i],s=this._isCurrentStep(i);return r._displayDefaultIndicatorType?this._getDefaultIndicatorLogic(r,s):this._getGuidelineLogic(r,s,n)}_getDefaultIndicatorLogic(i,n){return i._showError()&&i.hasError&&!n?ye.ERROR:!i.completed||n?ye.NUMBER:i.editable?ye.EDIT:ye.DONE}_getGuidelineLogic(i,n,r=ye.NUMBER){return i._showError()&&i.hasError&&!n?ye.ERROR:i.completed&&!n?ye.DONE:i.completed&&n?r:i.editable&&n?ye.EDIT:r}_isCurrentStep(i){return this._selectedIndex===i}_getFocusIndex(){return this._keyManager?this._keyManager.activeItemIndex:this._selectedIndex}_updateSelectedItemIndex(i){let n=this.steps.toArray();this.selectionChange.emit({selectedIndex:i,previouslySelectedIndex:this._selectedIndex,selectedStep:n[i],previouslySelectedStep:n[this._selectedIndex]}),this._containsFocus()?this._keyManager.setActiveItem(i):this._keyManager.updateActiveItem(i),this._selectedIndex=i,this.selectedIndexChange.emit(this._selectedIndex),this._stateChanged()}_onKeydown(i){let n=Ys(i),r=i.keyCode,s=this._keyManager;s.activeItemIndex!=null&&!n&&(r===32||r===13)?(this.selectedIndex=s.activeItemIndex,i.preventDefault()):s.setFocusOrigin("keyboard").onKeydown(i)}_anyControlsInvalidOrPending(i){return this.linear&&i>=0?this.steps.toArray().slice(0,i).some(n=>{let r=n.stepControl;return(r?r.invalid||r.pending||!n.interacted:!n.completed)&&!n.optional&&!n._completedOverride}):!1}_layoutDirection(){return this._dir&&this._dir.value==="rtl"?"rtl":"ltr"}_containsFocus(){let i=this._elementRef.nativeElement,n=Gs();return i===n||i.contains(n)}_isValidIndex(i){return i>-1&&(!this.steps||i<this.steps.length)}static{this.\u0275fac=function(n){return new(n||t)(_(Xt,8),_(Mn),_(ie))}}static{this.\u0275dir=M({type:t,selectors:[["","cdkStepper",""]],contentQueries:function(n,r,s){if(n&1&&(ft(s,Qu,5),ft(s,Gu,5)),n&2){let o;$e(o=We())&&(r._steps=o),$e(o=We())&&(r._stepHeader=o)}},inputs:{linear:[2,"linear","linear",_e],selectedIndex:[2,"selectedIndex","selectedIndex",js],selected:"selected",orientation:"orientation"},outputs:{selectionChange:"selectionChange",selectedIndexChange:"selectedIndexChange"},exportAs:["cdkStepper"],standalone:!0,features:[qt]})}}return t})();var pc=(()=>{class t{static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275mod=K({type:t})}static{this.\u0275inj=X({imports:[Yt]})}}return t})();var gc=class t{static forRoot(){return{ngModule:t,providers:[Ti,ot]}}static \u0275fac=function(i){return new(i||t)};static \u0275mod=K({type:t});static \u0275inj=X({imports:[Us,pc]})};var Mt=class{attach(e){return this._attachedHost=e,e.attach(this)}detach(){let e=this._attachedHost;e!=null&&(this._attachedHost=null,e.detach())}get isAttached(){return this._attachedHost!=null}setAttachedHost(e){this._attachedHost=e}},Pr=class extends Mt{constructor(e,i,n,r,s){super(),this.component=e,this.viewContainerRef=i,this.injector=n,this.componentFactoryResolver=r,this.projectableNodes=s}},Mi=class extends Mt{constructor(e,i,n,r){super(),this.templateRef=e,this.viewContainerRef=i,this.context=n,this.injector=r}get origin(){return this.templateRef.elementRef}attach(e,i=this.context){return this.context=i,super.attach(e)}detach(){return this.context=void 0,super.detach()}},Br=class extends Mt{constructor(e){super(),this.element=e instanceof ie?e.nativeElement:e}},Ii=class{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(e){if(e instanceof Pr)return this._attachedPortal=e,this.attachComponentPortal(e);if(e instanceof Mi)return this._attachedPortal=e,this.attachTemplatePortal(e);if(this.attachDomPortal&&e instanceof Br)return this._attachedPortal=e,this.attachDomPortal(e)}detach(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDis
2poseFn()}dispose(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}setDisposeFn(e){this._disposeFn=e}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}};var Ri=class extends Ii{constructor(e,i,n,r,s){super(),this.outletElement=e,this._componentFactoryResolver=i,this._appRef=n,this._defaultInjector=r,this.attachDomPortal=o=>{this._document;let a=o.element;a.parentNode;let c=this._document.createComment("dom-portal");a.parentNode.insertBefore(c,a),this.outletElement.appendChild(a),this._attachedPortal=o,super.setDisposeFn(()=>{c.parentNode&&c.parentNode.replaceChild(a,c)})},this._document=s}attachComponentPortal(e){let n=(e.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(e.component),r;return e.viewContainerRef?(r=e.viewContainerRef.createComponent(n,e.viewContainerRef.length,e.injector||e.viewContainerRef.injector,e.projectableNodes||void 0),this.setDisposeFn(()=>r.destroy())):(r=n.create(e.injector||this._defaultInjector||dt.NULL),this._appRef.attachView(r.hostView),this.setDisposeFn(()=>{this._appRef.viewCount>0&&this._appRef.detachView(r.hostView),r.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(r)),this._attachedPortal=e,r}attachTemplatePortal(e){let i=e.viewContainerRef,n=i.createEmbeddedView(e.templateRef,e.context,{injector:e.injector});return n.rootNodes.forEach(r=>this.outletElement.appendChild(r)),n.detectChanges(),this.setDisposeFn(()=>{let r=i.indexOf(n);r!==-1&&i.remove(r)}),this._attachedPortal=e,n}dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(e){return e.hostView.rootNodes[0]}};var _g=(()=>{class t extends Ii{constructor(i,n,r){super(),this._componentFactoryResolver=i,this._viewContainerRef=n,this._isInitialized=!1,this.attached=new q,this.attachDomPortal=s=>{this._document;let o=s.element;o.parentNode;let a=this._document.createComment("dom-portal");s.setAttachedHost(this),o.parentNode.insertBefore(a,o),this._getRootNode().appendChild(o),this._attachedPortal=s,super.setDisposeFn(()=>{a.parentNode&&a.parentNode.replaceChild(o,a)})},this._document=r}get portal(){return this._attachedPortal}set portal(i){this.hasAttached()&&!i&&!this._isInitialized||(this.hasAttached()&&super.detach(),i&&super.attach(i),this._attachedPortal=i||null)}get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedRef=this._attachedPortal=null}attachComponentPortal(i){i.setAttachedHost(this);let n=i.viewContainerRef!=null?i.viewContainerRef:this._viewContainerRef,s=(i.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(i.component),o=n.createComponent(s,n.length,i.injector||n.injector,i.projectableNodes||void 0);return n!==this._viewContainerRef&&this._getRootNode().appendChild(o.hostView.rootNodes[0]),super.setDisposeFn(()=>o.destroy()),this._attachedPortal=i,this._attachedRef=o,this.attached.emit(o),o}attachTemplatePortal(i){i.setAttachedHost(this);let n=this._viewContainerRef.createEmbeddedView(i.templateRef,i.context,{injector:i.injector});return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=i,this._attachedRef=n,this.attached.emit(n),n}_getRootNode(){let i=this._viewContainerRef.element.nativeElement;return i.nodeType===i.ELEMENT_NODE?i:i.parentNode}static{this.\u0275fac=function(n){return new(n||t)(_(Ut),_(Fn),_(he))}}static{this.\u0275dir=M({type:t,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:[0,"cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],standalone:!0,features:[ce]})}}return t})();var mc=(()=>{class t{static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275mod=K({type:t})}static{this.\u0275inj=X({})}}return t})();var yc=Ws(),Lr=class{constructor(e,i){this._viewportRuler=e,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=i}attach(){}enable(){if(this._canBeEnabled()){let e=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=e.style.left||"",this._previousHTMLStyles.top=e.style.top||"",e.style.left=k(-this._previousScrollPosition.left),e.style.top=k(-this._previousScrollPosition.top),e.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){let e=this._document.documentElement,i=this._document.body,n=e.style,r=i.style,s=n.scrollBehavior||"",o=r.scrollBehavior||"";this._isEnabled=!1,n.left=this._previousHTMLStyles.left,n.top=this._previousHTMLStyles.top,e.classList.remove("cdk-global-scrollblock"),yc&&(n.scrollBehavior=r.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),yc&&(n.scrollBehavior=s,r.scrollBehavior=o)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;let i=this._document.body,n=this._viewportRuler.getViewportSize();return i.scrollHeight>n.height||i.scrollWidth>n.width}};var jr=class{constructor(e,i,n,r){this._scrollDispatcher=e,this._ngZone=i,this._viewportRuler
2=n,this._config=r,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(e){this._overlayRef,this._overlayRef=e}enable(){if(this._scrollSubscription)return;let e=this._scrollDispatcher.scrolled(0).pipe(He(i=>!i||!this._overlayRef.overlayElement.contains(i.getElementRef().nativeElement)));this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=e.subscribe(()=>{let i=this._viewportRuler.getViewportScrollPosition().top;Math.abs(i-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=e.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}},Vi=class{enable(){}disable(){}attach(){}};function Hr(t,e){return e.some(i=>{let n=t.bottom<i.top,r=t.top>i.bottom,s=t.right<i.left,o=t.left>i.right;return n||r||s||o})}function vc(t,e){return e.some(i=>{let n=t.top<i.top,r=t.bottom>i.bottom,s=t.left<i.left,o=t.right>i.right;return n||r||s||o})}var Ur=class{constructor(e,i,n,r){this._scrollDispatcher=e,this._viewportRuler=i,this._ngZone=n,this._config=r,this._scrollSubscription=null}attach(e){this._overlayRef,this._overlayRef=e}enable(){if(!this._scrollSubscription){let e=this._config?this._config.scrollThrottle:0;this._scrollSubscription=this._scrollDispatcher.scrolled(e).subscribe(()=>{if(this._overlayRef.updatePosition(),this._config&&this._config.autoClose){let i=this._overlayRef.overlayElement.getBoundingClientRect(),{width:n,height:r}=this._viewportRuler.getViewportSize();Hr(i,[{width:n,height:r,bottom:r,right:n,top:0,left:0}])&&(this.disable(),this._ngZone.run(()=>this._overlayRef.detach()))}})}}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}},Ju=(()=>{class t{constructor(i,n,r,s){this._scrollDispatcher=i,this._viewportRuler=n,this._ngZone=r,this.noop=()=>new Vi,this.close=o=>new jr(this._scrollDispatcher,this._ngZone,this._viewportRuler,o),this.block=()=>new Lr(this._viewportRuler,this._document),this.reposition=o=>new Ur(this._scrollDispatcher,this._viewportRuler,this._ngZone,o),this._document=s}static{this.\u0275fac=function(n){return new(n||t)(C(Xs),C(Pn),C(qe),C(he))}}static{this.\u0275prov=x({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),qr=class{constructor(e){if(this.scrollStrategy=new Vi,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,e){let i=Object.keys(e);for(let n of i)e[n]!==void 0&&(this[n]=e[n])}}};var zr=class{constructor(e,i){this.connectionPair=e,this.scrollableViewProperties=i}};var Dc=(()=>{class t{constructor(i){this._attachedOverlays=[],this._document=i}ngOnDestroy(){this.detach()}add(i){this.remove(i),this._attachedOverlays.push(i)}remove(i){let n=this._attachedOverlays.indexOf(i);n>-1&&this._attachedOverlays.splice(n,1),this._attachedOverlays.length===0&&this.detach()}static{this.\u0275fac=function(n){return new(n||t)(C(he))}}static{this.\u0275prov=x({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),ed=(()=>{class t extends Dc{constructor(i,n){super(i),this._ngZone=n,this._key
2downListener=r=>{let s=this._attachedOverlays;for(let o=s.length-1;o>-1;o--)if(s[o]._keydownEvents.observers.length>0){let a=s[o]._keydownEvents;this._ngZone?this._ngZone.run(()=>a.next(r)):a.next(r);break}}}add(i){super.add(i),this._isAttached||(this._ngZone?this._ngZone.runOutsideAngular(()=>this._document.body.addEventListener("keydown",this._keydownListener)):this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}detach(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}static{this.\u0275fac=function(n){return new(n||t)(C(he),C(qe,8))}}static{this.\u0275prov=x({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),td=(()=>{class t extends Dc{constructor(i,n,r){super(i),this._platform=n,this._ngZone=r,this._cursorStyleIsSet=!1,this._pointerDownListener=s=>{this._pointerDownEventTarget=Vn(s)},this._clickListener=s=>{let o=Vn(s),a=s.type==="click"&&this._pointerDownEventTarget?this._pointerDownEventTarget:o;this._pointerDownEventTarget=null;let c=this._attachedOverlays.slice();for(let h=c.length-1;h>-1;h--){let l=c[h];if(l._outsidePointerEvents.observers.length<1||!l.hasAttached())continue;if(_c(l.overlayElement,o)||_c(l.overlayElement,a))break;let u=l._outsidePointerEvents;this._ngZone?this._ngZone.run(()=>u.next(s)):u.next(s)}}}add(i){if(super.add(i),!this._isAttached){let n=this._document.body;this._ngZone?this._ngZone.runOutsideAngular(()=>this._addEventListeners(n)):this._addEventListeners(n),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=n.style.cursor,n.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){if(this._isAttached){let i=this._document.body;i.removeEventListener("pointerdown",this._pointerDownListener,!0),i.removeEventListener("click",this._clickListener,!0),i.removeEventListener("auxclick",this._clickListener,!0),i.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(i.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}_addEventListeners(i){i.addEventListener("pointerdown",this._pointerDownListener,!0),i.addEventListener("click",this._clickListener,!0),i.addEventListener("auxclick",this._clickListener,!0),i.addEventListener("contextmenu",this._clickListener,!0)}static{this.\u0275fac=function(n){return new(n||t)(C(he),C(Gt),C(qe,8))}}static{this.\u0275prov=x({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();function _c(t,e){let i=typeof ShadowRoot<"u"&&ShadowRoot,n=e;for(;n;){if(n===t)return!0;n=i&&n instanceof ShadowRoot?n.host:n.parentNode}return!1}var Sc=(()=>{class t{constructor(i,n){this._platform=n,this._document=i}ngOnDestroy(){this._containerElement?.remove()}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){let i="cdk-overlay-container";if(this._platform.isBrowser||Nn()){let r=this._document.querySelectorAll(`.${i}[platform="server"], .${i}[platform="test"]`);for(let s=0;s<r.length;s++)r[s].remove()}let n=this._document.createElement("div");n.classList.add(i),Nn()?n.setAttribute("platform","test"):this._platform.isBrowser||n.setAttribute("platform","server"),this._document.body.appendChild(n),this._containerElement=n}static{this.\u0275fac=function(n){return new(n||t)(C(he),C(Gt))}}static{this.\u0275prov=x({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),$r=class{constructor(e,i,n,r,s,o,a,c,h,l=!1,u){this._portalOutlet=e,this._host=i,this._pane=n,this._config=r,this._ngZone=s,this._keyboardDispatcher=o,this._document=a,this._location=c,this._outsideClickDispatcher=h,this._animationsDisabled=l,this._injector=u,this._backdropElement=null,this._backdropClick=new U,this._attachments=new U,this._detachments=new U,this._locationChanges=Sn.EMPTY,this._backdropClickHandler=f=>this._backdropClick.next(f),this._backdropTransitionendHandler=f=>{this._disposeBackdrop(f.target)},this._keydownEvents=new U,this._outsidePointerEvents=new U,this._renders=new U,r.scrollStrategy&&(this._scrollStrategy=r.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=r.positionStrategy,this._afterRenderRef=le(()=>Ms(()=>{this._renders.next()},{injector:this._injector}))}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(e){!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host);let i=this._portalOutlet.attach(e);return this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._afterNextRenderRef?.destroy(),this._afterNextRenderRef=Is(()=>{this.hasAttached()&&this.updatePosition()},{injector:this._injector}),this._togglePointerEvents(!0),this._config.hasBackdrop&&this._attachBackdrop(),this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!0),this._attachments.next(),this._keyboardDispatcher.add(this),this._config.disposeOnNavigation&&(this._locationChanges=this._location.subscribe(()=>this.dispose())),this._outsideClickDispatcher.add(this),typeof i?.onDestroy=="function"&&i.onDestroy(()=>{this.hasAttached()&&this._ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>this.detach()))}),i}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();let e=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenEmpty(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),e}dispose(){let e=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this._disposeBackdrop(this._backdropElement),this._locationChanges.unsubscribe(),this._keyboardDispatcher.remove(this),this._portalOutlet.dis
2pose(),this._attachments.complete(),this._backdropClick.complete(),this._keydownEvents.complete(),this._outsidePointerEvents.complete(),this._outsideClickDispatcher.remove(this),this._host?.remove(),this._afterNextRenderRef?.destroy(),this._previousHostParent=this._pane=this._host=null,e&&this._detachments.next(),this._detachments.complete(),this._afterRenderRef.destroy(),this._renders.complete()}hasAttached(){return this._portalOutlet.hasAttached()}backdropClick(){return this._backdropClick}attachments(){return this._attachments}detachments(){return this._detachments}keydownEvents(){return this._keydownEvents}outsidePointerEvents(){return this._outsidePointerEvents}getConfig(){return this._config}updatePosition(){this._positionStrategy&&this._positionStrategy.apply()}updatePositionStrategy(e){e!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=e,this.hasAttached()&&(e.attach(this),this.updatePosition()))}updateSize(e){this._config=F(F({},this._config),e),this._updateElementSize()}setDirection(e){this._config=P(F({},this._config),{direction:e}),this._updateElementDirection()}addPanelClass(e){this._pane&&this._toggleClasses(this._pane,e,!0)}removePanelClass(e){this._pane&&this._toggleClasses(this._pane,e,!1)}getDirection(){let e=this._config.direction;return e?typeof e=="string"?e:e.value:"ltr"}updateScrollStrategy(e){e!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=e,this.hasAttached()&&(e.attach(this),e.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;let e=this._pane.style;e.width=k(this._config.width),e.height=k(this._config.height),e.minWidth=k(this._config.minWidth),e.minHeight=k(this._config.minHeight),e.maxWidth=k(this._config.maxWidth),e.maxHeight=k(this._config.maxHeight)}_togglePointerEvents(e){this._pane.style.pointerEvents=e?"":"none"}_attachBackdrop(){let e="cdk-overlay-backdrop-showing";this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),this._animationsDisabled&&this._backdropElement.classList.add("cdk-overlay-backdrop-noop-animation"),this._config.backdropClass&&this._toggleClasses(this._backdropElement,this._config.backdropClass,!0),this._host.parentElement.insertBefore(this._backdropElement,this._host),this._backdropElement.addEventListener("click",this._backdropClickHandler),!this._animationsDisabled&&typeof requestAnimationFrame<"u"?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{this._backdropElement&&this._backdropElement.classList.add(e)})}):this._backdropElement.classList.add(e)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){let e=this._backdropElement;if(e){if(this._animationsDisabled){this._disposeBackdrop(e);return}e.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{e.addEventListener("transitionend",this._backdropTransitionendHandler)}),e.style.pointerEvents="none",this._backdropTimeout=this._ngZone.runOutsideAngular(()=>setTimeout(()=>{this._disposeBackdrop(e)},500))}}_toggleClasses(e,i,n){let r=Rn(i||[]).filter(s=>!!s);r.length&&(n?e.classList.add(...r):e.classList.remove(...r))}_detachContentWhenEmpty(){this._ngZone.runOutsideAngular(()=>{let e=this._renders.pipe(Ue(ws(this._attachments,this._detachments))).subscribe(()=>{(!this._pane||!this._host||this._pane.children.length===0)&&(this._pane&&this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!1),this._host&&this._host.parentElement&&(this._previousHostParent=this._host.parentElement,this._host.remove()),e.unsubscribe())})})}_disposeScrollStrategy(){let e=this._scrollStrategy;e&&(e.disable(),e.detach&&e.detach())}_disposeBackdrop(e){e&&(e.removeEventListener("click",this._backdropClickHandler),e.removeEventListener("transitionend",this._backdropTransitionendHandler),e.remove(),this._backdropElement===e&&(this._backdropElement=null)),this._backdropTimeout&&(clearTimeout(this._backdropTimeout),this._backdropTimeout=void 0)}},bc="cdk-overlay-connected-position-bounding-box",id=/([A-Za-z%]+)$/,Wr=class{get positions(){return this._preferredPositions}
vendor: 14,881 bytes, line 2
2constructor(e,i,n,r,s){this._viewportRuler=i,this._document=n,this._platform=r,this._overlayContainer=s,this._lastBoundingBoxSize={width:0,height:0},this._isPushed=!1,this._canPush=!0,this._growAfterOpen=!1,this._hasFlexibleDimensions=!0,this._positionLocked=!1,this._viewportMargin=0,this._scrollables=[],this._preferredPositions=[],this._positionChanges=new U,this._resizeSubscription=Sn.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(e)}attach(e){this._overlayRef&&this._overlayRef,this._validatePositions(),e.hostElement.classList.add(bc),this._overlayRef=e,this._boundingBox=e.hostElement,this._pane=e.overlayElement,this._isDisposed=!1,this._isInitialRender=!0,this._lastPosition=null,this._resizeSubscription.unsubscribe(),this._resizeSubscription=this._viewportRuler.change().subscribe(()=>{this._isInitialRender=!0,this.apply()})}apply(){if(this._isDisposed||!this._platform.isBrowser)return;if(!this._isInitialRender&&this._positionLocked&&this._lastPosition){this.reapplyLastPosition();return}this._clearPanelClasses(),this._resetOverlayElementStyles(),this._resetBoundingBoxStyles(),this._viewportRect=this._getNarrowedViewportRect(),this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();let e=this._originRect,i=this._overlayRect,n=this._viewportRect,r=this._containerRect,s=[],o;for(let a of this._preferredPositions){let c=this._getOriginPoint(e,r,a),h=this._getOverlayPoint(c,i,a),l=this._getOverlayFit(h,i,n,a);if(l.isCompletelyWithinViewport){this._isPushed=!1,this._applyPosition(a,c);return}if(this._canFitWithFlexibleDimensions(l,h,n)){s.push({position:a,origin:c,overlayRect:i,boundingBoxRect:this._calculateBoundingBoxRect(c,a)});continue}(!o||o.overlayFit.visibleArea<l.visibleArea)&&(o={overlayFit:l,overlayPoint:h,originPoint:c,position:a,overlayRect:i})}if(s.length){let a=null,c=-1;for(let h of s){let l=h.boundingBoxRect.width*h.boundingBoxRect.height*(h.position.weight||1);l>c&&(c=l,a=h)}this._isPushed=!1,this._applyPosition(a.position,a.origin);return}if(this._canPush){this._isPushed=!0,this._applyPosition(o.position,o.originPoint);return}this._applyPosition(o.position,o.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&Pe(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(bc),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(this._isDisposed||!this._platform.isBrowser)return;let e=this._lastPosition;if(e){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();let i=this._getOriginPoint(this._originRect,this._containerRect,e);this._applyPosition(e,i)}else this.apply()}withScrollableContainers(e){return this._scrollables=e,this}withPositions(e){return this._preferredPositions=e,e.indexOf(this._lastPosition)===-1&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(e){return this._viewportMargin=e,this}withFlexibleDimensions(e=!0){return this._hasFlexibleDimensions=e,this}withGrowAfterOpen(e=!0){return this._growAfterOpen=e,this}withPush(e=!0){return this._canPush=e,this}withLockedPosition(e=!0){return this._positionLocked=e,this}setOrigin(e){return this._origin=e,this}withDefaultOffsetX(e){return this._offsetX=e,this}withDefaultOffsetY(e){return this._offsetY=e,this}withTransformOriginOn(e){return this._transformOriginSelector=e,this}_getOriginPoint(e,i,n){let r;if(n.originX=="center")r=e.left+e.width/2;else{let o=this._isRtl()?e.right:e.left,a=this._isRtl()?e.left:e.right;r=n.originX=="start"?o:a}i.left<0&&(r-=i.left);let s;return n.originY=="center"?s=e.top+e.height/2:s=n.originY=="top"?e.top:e.bottom,i.top<0&&(s-=i.top),{x:r,y:s}}_getOverlayPoint(e,i,n){let r;n.overlayX=="center"?r=-i.width/2:n.overlayX==="start"?r=this._isRtl()?-i.width:0:r=this._isRtl()?0:-i.width;let s;return n.overlayY=="center"?s=-i.height/2:s=n.overlayY=="top"?0:-i.height,{x:e.x+r,y:e.y+s}}_getOverlayFit(e,i,n,r){let s=wc(i),{x:o,y:a}=e,c=this._getOffset(r,"x"),h=this._getOffset(r,"y");c&&(o+=c),h&&(a+=h);let l=0-o,u=o+s.width-n.width,f=0-a,g=a+s.height-n.height,E=this._subtractOverflows(s.width,l,u),V=this._subtractOverflows(s.height,f,g),G=E*V;return{visibleArea:G,isCompletelyWithinViewport:s.width*s.height===G,fitsInViewportVertically:V===s.height,fitsInViewportHorizontally:E==s.width}}_canFitWithFlexibleDimensions(e,i,n){if(this._hasFlexibleDimensions){let r=n.bottom-i.y,s=n.right-i.x,o=Cc(this._overlayRef.getConfig().minHeight),a=Cc(this._overlayRef.getConfig().minWidth),c=e.fitsInViewportVertically||o!=null&&o<=r,h=e.fitsInViewportHorizontally||a!=null&&a<=s;return c&&h}return!1}_pushOverlayOnScreen(e,i,n){if(this._previousPushAmount&&this._positionLocked)return{x:e.x+this._previousPushAmount.x,y:e.y+this._previousPushAmount.y};let r=wc(i),s=this._viewportRect,o=Math.max(e.x+r.width-s.width,0),a=Math.max(e.y+r.height-s.height,0),c=Math.max(s.top-n.top-e.y,0),h=Math.max(s.left-n.left-e.x,0),l=0,u=0;return r.width<=s.width?l=h||-o:l=e.x<this._viewportMargin?s.left-n.left-e.x:0,r.height<=s.height?u=c||-a:u=e.y<this._viewportMargin?s.top-n.top-e.y:0,this._previousPushAmount={x:l,y:u},{x:e.x+l,y:e.y+u}}_applyPosition(e,i){if(this._setTransformOrigin(e),this._setOverlayElementStyles(i,e),this._setBoundingBoxStyles(i,e),e.panelClass&&this._addPanelClasses(e.panelClass),this._positionChanges.observers.length){let n=this._getScrollVisibility();if(e!==this._lastPosition||!this._lastScrollVisibility||!nd(this._lastScrollVisibility,n)){let r=new zr(e,n);this._positionChanges.next(r)}this._lastScrollVisibility=n}this._lastPosition=e,this._isInitialRender=!1}_setTransformOrigin(e){if(!this._transformOriginSelector)return;let i=this._boundingBox.querySelectorAll(this._transformOriginSelector),n,r=e.overlayY;e.overlayX==="center"?n="center":this._isRtl()?n=e.overlayX==="start"?"right":"left":n=e.overlayX==="start"?"left":"right";for(let s=0;s<i.length;s++)i[s].style.transformOrigin=`${n} ${r}`}_calculateBoundingBoxRect(e,i){let n=this._viewportRect,r=this._isRtl(),s,o,a;if(i.overlayY==="top")o=e.y,s=n.height-o+this._viewportMargin;else if(i.overlayY==="bottom")a=n.height-e.y+this._viewportMargin*2,s=n.height-a+this._viewportMargin;else{let g=Math.min(n.bottom-e.y+n.top,e.y),E=this._lastBoundingBoxSize.height;s=g*2,o=e.y-g,s>E&&!this._isInitialRender&&!this._growAfterOpen&&(o=e.y-E/2)}let c=i.overlayX==="start"&&!r||i.overlayX==="end"&&r,h=i.overlayX==="end"&&!r||i.overlayX==="start"&&r,l,u,f;if(h)f=n.width-e.x+this._viewportMargin*2,l=e.x-this._viewportMargin;else if(c)u=e.x,l=n.right-e.x;else{let g=Math.min(n.right-e.x+n.left,e.x),E=this._lastBoundingBoxSize.width;l=g*2,u=e.x-g,l>E&&!this._isInitialRender&&!this._growAfterOpen&&(u=e.x-E/2)}return{top:o,left:u,bottom:a,right:f,width:l,height:s}}_setBoundingBoxStyles(e,i){let n=this._calculateBoundingBoxRect(e,i);!this._isInitialRender&&!this._growAfterOpen&&(n.height=Math.min(n.height,this._lastBoundingBoxSize.height),n.width=Math.min(n.width,this._lastBoundingBoxSize.width));let r={};if(this._hasExactPosition())r.top=r.left="0",r.bottom=r.right=r.maxHeight=r.maxWidth="",r.width=r.height="100%";else{let s=this._overlayRef.getConfig().maxHeight,o=this._overlayRef.getConfig().maxWidth;r.height=k(n.height),r.top=k(n.top),r.bottom=k(n.bottom),r.width=k(n.width),r.left=k(n.left),r.right=k(n.right),i.overlayX==="center"?r.alignItems="center":r.alignItems=i.overlayX==="end"?"flex-end":"flex-start",i.overlayY==="center"?r.justifyContent="center":r.justifyContent=i.overlayY==="bottom"?"flex-end":"flex-start",s&&(r.maxHeight=k(s)),o&&(r.maxWidth=k(o))}this._lastBoundingBoxSize=n,Pe(this._boundingBox.style,r)}_resetBoundingBoxStyles(){Pe(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){Pe(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(e,i){let n={},r=this._hasExactPosition(),s=this._hasFlexibleDimensions,o=this._overlayRef.getConfig();if(r){let l=this._viewportRuler.getViewportScrollPosition();Pe(n,this._getExactOverlayY(i,e,l)),Pe(n,this._getExactOverlayX(i,e,l))}else n.position="static";let a="",c=this._getOffset(i,"x"),h=this._getOffset(i,"y");c&&(a+=`translateX(${c}px) `),h&&(a+=`translateY(${h}px)`),n.transform=a.trim(),o.maxHeight&&(r?n.maxHeight=k(o.maxHeight):s&&(n.maxHeight="")),o.maxWidth&&(r?n.maxWidth=k(o.maxWidth):s&&(n.maxWidth="")),Pe(this._pane.style,n)}_getExactOverlayY(e,i,n){let r={top:"",bottom:""},s=this._getOverlayPoint(i,this._overlayRect,e);if(this._isPushed&&(s=this._pushOverlayOnScreen(s,this._overlayRect,n)),e.overlayY==="bottom"){let o=this._document.documentElement.clientHeight;r.bottom=`${o-(s.y+this._overlayRect.height)}px`}else r.top=k(s.y);return r}_getExactOverlayX(e,i,n){let r={left:"",right:""},s=this._getOverlayPoint(i,this._overlayRect,e);this._isPushed&&(s=this._pushOverlayOnScreen(s,this._overlayRect,n));let o;if(this._isRtl()?o=e.overlayX==="end"?"left":"right":o=e.overlayX==="end"?"right":"left",o==="right"){let a=this._document.documentElement.clientWidth;r.right=`${a-(s.x+this._overlayRect.width)}px`}else r.left=k(s.x);return r}_getScrollVisibility(){let e=this._getOriginRect(),i=this._pane.getBoundingClientRect(),n=this._scrollables.map(r=>r.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:vc(e,n),isOriginOutsideView:Hr(e,n),isOverlayClipped:vc(i,n),isOverlayOutsideView:Hr(i,n)}}_subtractOverflows(e,...i){return i.reduce((n,r)=>n-Math.max(r,0),e)}_getNarrowedViewportRect(){let e=this._document.documentElement.clientWidth,i=this._document.documentElement.clientHeight,n=this._viewportRuler.getViewportScrollPosition();return{top:n.top+this._viewportMargin,left:n.left+this._viewportMargin,right:n.left+e-this._viewportMargin,bottom:n.top+i-this._viewportMargin,width:e-2*this._viewportMargin,height:i-2*this._viewportMargin}}_isRtl(){return this._overlayRef.getDirection()==="rtl"}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(e,i){return i==="x"?e.offsetX==null?this._offsetX:e.offsetX:e.offsetY==null?this._offsetY:e.offsetY}_validatePositions(){}_addPanelClasses(e){this._pane&&Rn(e).forEach(i=>{i!==""&&this._appliedPanelClasses.indexOf(i)===-1&&(this._appliedPanelClasses.push(i),this._pane.classList.add(i))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(e=>{this._pane.classList.remove(e)}),this._appliedPanelClasses=[])}_getOriginRect(){let e=this._origin;if(e instanceof ie)return e.nativeElement.getBoundingClientRect();if(e instanceof Element)return e.getBoundingClientRect();let i=e.width||0,n=e.height||0;return{top:e.y,bottom:e.y+n,left:e.x,right:e.x+i,height:n,width:i}}};function Pe(t,e){for(let i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);return t}function Cc(t){if(typeof t!="number"&&t!=null){let[e,i]=t.split(id);return!i||i==="px"?parseFloat(e):null}return t||null}function wc(t){return{top:Math.floor(t.top),right:Math.floor(t.right),bottom:Math.floor(t.bottom),left:Math.floor(t.left),width:Math.floor(t.width),height:Math.floor(t.height)}}function nd(t,e){return t===e?!0:t.isOriginClipped===e.isOriginClipped&&t.isOriginOutsideView===e.isOriginOutsideView&&t.isOverlayClipped===e.isOverlayClipped&&t.isOverlayOutsideView===e.isOverlayOutsideView}var Hg=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom"}],Ug=[{originX:"end",originY:"top",overlayX:"start",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"start",overlayY:"bottom"},{originX:"start",originY:"top",overlayX:"end",overlayY:"top"},{originX:"start",originY:"bottom",overlayX:"end",overlayY:"bottom"}],Ec="cdk-global-overlay-wrapper",Gr=class{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._alignItems="",this._xPosition="",this._xOffset="",this._width="",this._height="",this._isDisposed=!1}attach(e){let i=e.getConfig();this._overlayRef=e,this._width&&!i.width&&e.updateSize({width:this._width}),this._height&&!i.height&&e.updateSize({height:this._height}),e.hostElement.classList.add(Ec),this._isDisposed=!1}top(e=""){return this._bottomOffset="",this._topOffset=e,this._alignItems="flex-start",this}left(e=""){return this._xOffset=e,this._xPosition="left",this}bottom(e=""){return this._topOffset="",this._bottomOffset=e,this._alignItems="flex-end",this}right(e=""){return this._xOffset=e,this._xPosition="right",this}start(e=""){return this._xOffset=e,this._xPosition="start",this}end(e=""){return this._xOffset=e,this._xPosition="end",this}width(e=""){return this._overlayRef?this._overlayRef.updateSize({width:e}):this._width=e,this}height(e=""){return this._overlayRef?this._overlayRef.updateSize({height:e}):this._height=e,this}centerHorizontally(e=""){return this.left(e),this._xPosition="center",this}centerVertically(e=""){return this.top(e),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;let e=this._overlayRef.overlayElement.style,i=this._overlayRef.hostElement.style,n=this._overlayRef.getConfig(),{width:r,height:s,maxWidth:o,maxHeight:a}=n,c=(r==="100%"||r==="100vw")&&(!o||o==="100%"||o==="100vw"),h=(s==="100%"||s==="100vh")&&(!a||a==="100%"||a==="100vh"),l=this._xPosition,u=this._xOffset,f=this._overlayRef.getConfig().direction==="rtl",g="",E="",V="";c?V="flex-start":l==="center"?(V="center",f?E=u:g=u):f?l==="left"||l==="end"?(V="flex-end",g=u):(l==="right"||l==="start")&&(V="flex-start",E=u):l==="left"||l==="start"?(V="flex-start",g=u):(l==="right"||l==="end")&&(V="flex-end",E=u),e.position=this._cssPosition,e.marginLeft=c?"0":g,e.marginTop=h?"0":this._topOffset,e.marginBottom=this._bottomOffset,e.marginRight=c?"0":E,i.justifyContent=V,i.alignItems=h?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;let e=this._overlayRef.overlayElement.style,i=this._overlayRef.hostElement,n=i.style;i.classList.remove(Ec),n.justifyContent=n.alignItems=e.marginTop=e.marginBottom=e.marginLeft=e.marginRight=e.position="",this._overlayRef=null,this._isDisposed=!0}},rd=(()=>
2{class t{constructor(i,n,r,s){this._viewportRuler=i,this._document=n,this._platform=r,this._overlayContainer=s}global(){return new Gr}flexibleConnectedTo(i){return new Wr(i,this._viewportRuler,this._document,this._platform,this._overlayContainer)}static{this.\u0275fac=function(n){return new(n||t)(C(Pn),C(he),C(Gt),C(Sc))}}static{this.\u0275prov=x({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),sd=0,Xr=(()=>{class t{constructor(i,n,r,s,o,a,c,h,l,u,f,g){this.scrollStrategies=i,this._overlayContainer=n,this._componentFactoryResolver=r,this._positionBuilder=s,this._keyboardDispatcher=o,this._injector=a,this._ngZone=c,this._document=h,this._directionality=l,this._location=u,this._outsideClickDispatcher=f,this._animationsModuleType=g}create(i){let n=this._createHostElement(),r=this._createPaneElement(n),s=this._createPortalOutlet(r),o=new qr(i);return o.direction=o.direction||this._directionality.value,new $r(s,n,r,o,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher,this._animationsModuleType==="NoopAnimations",this._injector.get(xs))}position(){return this._positionBuilder}_createPaneElement(i){let n=this._document.createElement("div");return n.id=`cdk-overlay-${sd++}`,n.classList.add("cdk-overlay-pane"),i.appendChild(n),n}_createHostElement(){let i=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(i),i}_createPortalOutlet(i){return this._appRef||(this._appRef=this._injector.get(Ls)),new Ri(i,this._componentFactoryResolver,this._appRef,this._injector,this._document)}static{this.\u0275fac=function(n){return new(n||t)(C(Ju),C(Sc),C(Ut),C(rd),C(ed),C(dt),C(qe),C(he),C(Xt),C(Hs),C(td),C(Os,8))}}static{this.\u0275prov=x({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var od=new te("cdk-connected-overlay-scroll-strategy",{providedIn:"root",factory:()=>{let t=Y(Xr);return()=>t.scrollStrategies.reposition()}});function ad(t){return()=>t.scrollStrategies.reposition()}var cd={provide:od,deps:[Xr],useFactory:ad},qg=(()=>{class t{static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275mod=K({type:t})}static{this.\u0275inj=X({providers:[Xr,cd],imports:[Yt,mc,Bn,Bn]})}}return t})();var ld="aaa1rp3bb0ott3vie4c1le2ogado5udhabi7c0ademy5centure6ountant0s9o1tor4d0s1ult4e0g1ro2tna4f0l1rica5g0akhan5ency5i0g1rbus3force5tel5kdn3l0ibaba4pay4lfinanz6state5y2sace3tom5m0azon4ericanexpress7family11x2fam3ica3sterdam8nalytics7droid5quan4z2o0l2partments8p0le4q0uarelle8r0ab1mco4chi3my2pa2t0e3s0da2ia2sociates9t0hleta5torney7u0ction5di0ble3o3spost5thor3o0s4vianca6w0s2x0a2z0ure5ba0by2idu3namex3narepublic11d1k2r0celona5laycard4s5efoot5gains6seball5ketball8uhaus5yern5b0c1t1va3cg1n2d1e0ats2uty4er2ntley5rlin4st0buy5t2f1g1h0arti5i0ble3d1ke2ng0o3o1z2j1lack0friday9ockbuster8g1omberg7ue3m0s1w2n0pparibas9o0ats3ehringer8fa2m1nd2o0k0ing5sch2tik2on4t1utique6x2r0adesco6idgestone9oadway5ker3ther5ussels7s1t1uild0ers6siness6y1zz3v1w1y1z0h3ca0b1fe2l0l1vinklein9m0era3p2non3petown5ital0one8r0avan4ds2e0er0s4s2sa1e1h1ino4t0ering5holic7ba1n1re3c1d1enter4o1rn3f0a1d2g1h0anel2nel4rity4se2t2eap3intai5ristmas6ome4urch5i0priani6rcle4sco3tadel4i0c2y3k1l0aims4eaning6ick2nic1que6othing5ud3ub0med6m1n1o0ach3des3ffee4llege4ogne5m0cast4mbank4unity6pany2re3uter5sec4ndos3struction8ulting7tact3ractors9oking4l1p2rsica5untry4pon0s4rses6pa2r0edit0card4union9icket5own3s1uise0s6u0isinella9v1w1x1y0mru3ou3z2dabur3d1nce3ta1e1ing3sun4y2clk3ds2e0al0er2s3gree4livery5l1oitte5ta3mocrat6ntal2ist5si0gn4v2hl2iamonds6et2gital5rect0ory7scount3ver5h2y2j1k1m1np2o0cs1tor4g1mains5t1wnload7rive4tv2ubai3nlop4pont4rban5vag2r2z2earth3t2c0o2deka3u0cation8e1g1mail3erck5nergy4gineer0ing9terprises10pson4quipment8r0icsson6ni3s0q1tate5t1u0rovision8s2vents5xchange6pert3osed4ress5traspace10fage2il1rwinds6th3mily4n0s2rm0ers5shion4t3edex3edback6rrari3ero6i0delity5o2lm2nal1nce1ial7re0stone6mdale6sh0ing5t0ness6j1k1lickr3ghts4r2orist4wers5y2m1o0o0d1tball6rd1ex2sale4um3undation8x2r0ee1senius7l1ogans4ntier7tr2ujitsu5n0d2rniture7tbol5yi3ga0l0lery3o1up4me0s3p1rden4y2b0iz3d0n2e0a1nt0ing5orge5f1g0ee3h1i0ft0s3ves2ing5l0ass3e1obal2o4m0ail3bh2o1x2n1odaddy5ld0point6f2o0dyear5g0le4p1t1v2p1q1r0ainger5phics5tis4een3ipe3ocery4up4s1t1u0ardian6cci3ge2ide2tars5ru3w1y2hair2mburg5ngout5us3bo2dfc0bank7ealth0care8lp1sinki6re1mes5iphop4samitsu7tachi5v2k0t2m1n1ockey4ldings5iday5medepot5goods5s0ense7nda3rse3spital5t0ing5t0els3mail5use3w2r1sbc3t1u0ghes5yatt3undai7ibm2cbc2e1u2d1e0ee3fm2kano4l1m0amat4db2mo0bilien9n0c1dustries8finiti5o2g1k1stitute6urance4e4t0ernational10uit4vestments10o1piranga7q1r0ish4s0maili5t0anbul7t0au2v3jaguar4va3cb2e0ep2tzt3welry6io2ll2m0p2nj2o0bs1urg4t1y2p0morgan6rs3uegos4niper7kaufen5ddi3e0rryhotels6logistics9properties14fh2g1h1i0a1ds2m1ndle4tchen5wi3m1n1oeln3matsu5sher5p0mg2n2r0d1ed3uokgroup8w1y0oto4z2la0caixa5mborghini8er3ncaster6d0rover6xess5salle5t0ino3robe5w0yer5b1c1ds2ease3clerc5frak4gal2o2xus4gbt3i0dl2fe0insurance9style7ghting6ke2lly3mited4o2ncoln4k2psy3ve1ing5k1lc1p2oan0s3cker3us3l1ndon4tte1o3ve3pl0financial11r1s1t0d0a3u0ndbeck6xe1ury5v1y2ma0drid4if1son4keup4n0agement7go3p1rket0ing3s4riott5shalls7ttel5ba2c0kinsey7d1e0d0ia3et2lbourne7me1orial6n0u2rckmsd7g1h1iami3crosoft7l1ni1t2t0subishi9k1l0b1s2m0a2n1o0bi0le4da2e1i1m1nash3ey2ster5rmon3tgage6scow4to0rcycles9v0ie4p1q1r1s0d2t0n1r2u0seum3ic4v1w1x1y1z2na0b1goya4me2tura4vy3ba2c1e0c1t0bank4flix4work5ustar5w0s2xt0direct7us4f0l2g0o2hk2i0co2ke1on3nja3ssan1y5l1o0kia3rton4w0ruz3tv4p1r0a1w2tt2u1yc2z2obi1server7ffice5kinawa6layan0group9dnavy5lo3m0ega4ne1g1l0ine5oo2pen3racle3nge4g0anic5igins6saka4tsuka4t2vh3pa0ge2nasonic7ris2s1tners4s1y3y2
2ccw3e0t2f0izer5g1h0armacy6d1ilips5one2to0graphy6s4ysio5ics1tet2ures6d1n0g1k2oneer5zza4k1l0ace2y0station9umbing5s3m1n0c2ohl2ker3litie5rn2st3r0america6xi3ess3ime3o0d0uctions8f1gressive8mo2perties3y5tection8u0dential9s1t1ub2w0c2y2qa1pon3uebec3st5racing4dio4e0ad1lestate6tor2y4cipes5d0stone5umbrella9hab3ise0n3t2liance6n0t0als5pair3ort3ublican8st0aurant8view0s5xroth6ich0ardli6oh3l1o1p2o0cks3deo3gers4om3s0vp3u0gby3hr2n2w0e2yukyu6sa0arland6fe0ty4kura4le1on3msclub4ung5ndvik0coromant12ofi4p1rl2s1ve2xo3b0i1s2c0a1b1haeffler7midt4olarships8ol3ule3warz5ience5ot3d1e0arch3t2cure1ity6ek2lect4ner3rvices6ven3w1x0y3fr2g1h0angrila6rp2w2ell3ia1ksha5oes2p0ping5uji3w3i0lk2na1gles5te3j1k0i0n2y0pe4l0ing4m0art3ile4n0cf3o0ccer3ial4ftbank4ware6hu2lar2utions7ng1y2y2pa0ce3ort2t3r0l2s1t0ada2ples4r1tebank4farm7c0group6ockholm6rage3e3ream4udio2y3yle4u0cks3pplies3y2ort5rf1gery5zuki5v1watch4iss4x1y0dney4stems6z2tab1ipei4lk2obao4rget4tamotors6r2too4x0i3c0i2d0k2eam2ch0nology8l1masek5nnis4va3f1g1h0d1eater2re6iaa2ckets5enda4ps2res2ol4j0maxx4x2k0maxx5l1m0all4n1o0day3kyo3ols3p1ray3shiba5tal3urs3wn2yota3s3r0ade1ing4ining5vel0ers0insurance16ust3v2t1ube2i1nes3shu4v0s2w1z2ua1bank3s2g1k1nicom3versity8o2ol2ps2s1y1z2va0cations7na1guard7c1e0gas3ntures6risign5m\xF6gensberater2ung14sicherung10t2g1i0ajes4deo3g1king4llas4n1p1rgin4sa1ion4va1o3laanderen9n1odka3lvo3te1ing3o2yage5u2wales2mart4ter4ng0gou5tch0es6eather0channel12bcam3er2site5d0ding5ibo2r3f1hoswho6ien2ki2lliamhill9n0dows4e1ners6me2olterskluwer11odside6rk0s2ld3w2s1tc1f3xbox3erox4finity6ihuan4n2xx2yz3yachts4hoo3maxun5ndex5e1odobashi7ga2kohama6u0tube6t1un3za0ppos4ra3ero3ip2m1one3uerich6w2",hd="\u03B5\u03BB1\u03C52\u0431\u04331\u0435\u043B3\u0434\u0435\u0442\u04384\u0435\u044E2\u043A\u0430\u0442\u043E\u043B\u0438\u043A6\u043E\u043C3\u043C\u043A\u04342\u043E\u043D1\u0441\u043A\u0432\u04306\u043E\u043D\u043B\u0430\u0439\u043D5\u0440\u04333\u0440\u0443\u04412\u04442\u0441\u0430\u0439\u04423\u0440\u04313\u0443\u043A\u04403\u049B\u0430\u04373\u0570\u0561\u05753\u05D9\u05E9\u05E8\u05D0\u05DC5\u05E7\u05D5\u05DD3\u0627\u0628\u0648\u0638\u0628\u064A5\u0631\u0627\u0645\u0643\u06485\u0644\u0627\u0631\u062F\u06464\u0628\u062D\u0631\u064A\u06465\u062C\u0632\u0627\u0626\u06315\u0633\u0639\u0648\u062F\u064A\u06296\u0639\u0644\u064A\u0627\u06465\u0645\u063A\u0631\u06285\u0645\u0627\u0631\u0627\u062A5\u06CC\u0631\u0627\u06465\u0628\u0627\u0631\u062A2\u0632\u0627\u06314\u064A\u062A\u06433\u06BE\u0627\u0631\u062A5\u062A\u0648\u0646\u06334\u0633\u0648\u062F\u0627\u06463\u0631\u064A\u06295\u0634\u0628\u0643\u06294\u0639\u0631\u0627\u06422\u06282\u0645\u0627\u06464\u0641\u0644\u0633\u0637\u064A\u06466\u0642\u0637\u06313\u0643\u0627\u062B\u0648\u0644\u064A\u06436\u0648\u06453\u0645\u0635\u06312\u0644\u064A\u0633\u064A\u06275\u0648\u0631\u064A\u062A\u0627\u0646\u064A\u06277\u0642\u06394\u0647\u0645\u0631\u0627\u06475\u067E\u0627\u06A9\u0633\u062A\u0627\u06467\u0680\u0627\u0631\u062A4\u0915\u0949\u092E3\u0928\u0947\u091F3\u092D\u093E\u0930\u09240\u092E\u094D3\u094B\u09245\u0938\u0902\u0917\u0920\u09285\u09AC\u09BE\u0982\u09B2\u09BE5\u09AD\u09BE\u09B0\u09A42\u09F0\u09A44\u0A2D\u0A3E\u0A30\u0A244\u0AAD\u0ABE\u0AB0\u0AA44\u0B2D\u0B3E\u0B30\u0B244\u0B87\u0BA8\u0BCD\u0BA4\u0BBF\u0BAF\u0BBE6\u0BB2\u0B99\u0BCD\u0B95\u0BC86\u0B9A\u0BBF\u0B99\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0BC2\u0BB0\u0BCD11\u0C2D\u0C3E\u0C30\u0C24\u0C4D5\u0CAD\u0CBE\u0CB0\u0CA44\u0D2D\u0D3E\u0D30\u0D24\u0D025\u0DBD\u0D82\u0D9A\u0DCF4\u0E04\u0E2D\u0E213\u0E44\u0E17\u0E223\u0EA5\u0EB2\u0EA73\u10D2\u10D42\u307F\u3093\u306A3\u30A2\u30DE\u30BE\u30F34\u30AF\u30E9\u30A6\u30C94\u30B0\u30FC\u30B0\u30EB4\u30B3\u30E02\u30B9\u30C8\u30A23\u30BB\u30FC\u30EB3\u30D5\u30A1\u30C3\u30B7\u30E7\u30F36\u30DD\u30A4\u30F3\u30C84\u4E16\u754C2\u4E2D\u4FE11\u56FD1\u570B1\u6587\u7F513\u4E9A\u9A6C\u900A3\u4F01\u4E1A2\u4F5B\u5C712\u4FE1\u606F2\u5065\u5EB72\u516B\u53662\u516C\u53F81\u76CA2\u53F0\u6E7E1\u70632\u5546\u57CE1\u5E971\u68072\u5609\u91CC0\u5927\u9152\u5E975\u5728\u7EBF2\u5927\u62FF2\u5929\u4E3B\u65593\u5A31\u4E502\u5BB6\u96FB2\u5E7F\u4E1C2\u5FAE\u535A2\u6148\u55842\u6211\u7231\u4F603\u624B\u673A2\u62DB\u80582\u653F\u52A11\u5E9C2\u65B0\u52A0\u57612\u95FB2\u65F6\u5C1A2\u66F8\u7C4D2\u673A\u67842\u6DE1\u9A6C\u95213\u6E38\u620F2\u6FB3\u95802\u70B9\u770B2\u79FB\u52A82\u7EC4\u7EC7\u673A\u67844\u7F51\u57401\u5E971\u7AD91\u7EDC2\u8054\u901A2\u8C37\u6B4C2\u8D2D\u72692\u901A\u8CA92\u96C6\u56E22\u96FB\u8A0A\u76C8\u79D14\u98DE\u5229\u6D663\u98DF\u54C12\u9910\u53852\u9999\u683C\u91CC\u62C93\u6E2F2\uB2F7\uB1371\uCEF42\uC0BC\uC1312\uD55C\uAD6D2",lt=(t,e)=>{for(let i in e)t[i]=e[i];return t}
2,Jr="numeric",es="ascii",ts="alpha",ji="asciinumeric",Ni="alphanumeric",is="domain",Rc="emoji",ud="scheme",dd="slashscheme",Ac="whitespace";function fd(t,e){return t in e||(e[t]=[]),e[t]}function Be(t,e,i){e[Jr]&&(e[ji]=!0,e[Ni]=!0),e[es]&&(e[ji]=!0,e[ts]=!0),e[ji]&&(e[Ni]=!0),e[ts]&&(e[Ni]=!0),e[Ni]&&(e[is]=!0),e[Rc]&&(e[is]=!0);for(let n in e){let r=fd(n,i);r.indexOf(t)<0&&r.push(t)}}function pd(t,e){let i={};for(let n in e)e[n].indexOf(t)>=0&&(i[n]=!0);return i}function W(t){t===void 0&&(t=null),this.j={},this.jr=[],this.jd=null,this.t=t}W.groups={};W.prototype={accepts(){return!!this.t},go(t){let e=this,i=e.j[t];if(i)return i;for(let n=0;n<e.jr.length;n++){let r=e.jr[n][0],s=e.jr[n][1];if(s&&r.test(t))return s}return e.jd},has(t,e){return e===void 0&&(e=!1),e?t in this.j:!!this.go(t)},ta(t,e,i,n){for(let r=0;r<t.length;r++)this.tt(t[r],e,i,n)},tr(t,e,i,n){n=n||W.groups;let r;return e&&e.j?r=e:(r=new W(e),i&&n&&Be(e,i,n)),this.jr.push([t,r]),r},ts(t,e,i,n){let r=this,s=t.length;if(!s)return r;for(let o=0;o<s-1;o++)r=r.tt(t[o]);return r.tt(t[s-1],e,i,n)},tt(t,e,i,n){n=n||W.groups;let r=this;if(e&&e.j)return r.j[t]=e,e;let s=e,o,a=r.go(t);if(a?(o=new W,lt(o.j,a.j),o.jr.push.apply(o.jr,a.jr),o.jd=a.jd,o.t=a.t):o=new W,s){if(n)if(o.t&&typeof o.t=="string"){let c=lt(pd(o.t,n),i);Be(s,c,n)}else i&&Be(s,i,n);o.t=s}return r.j[t]=o,o}};var m=(t,e,i,n,r)=>t.ta(e,i,n,r),Z=(t,e,i,n,r)=>t.tr(e,i,n,r),kc=(t,e,i,n,r)=>t.ts(e,i,n,r),d=(t,e,i,n,r)=>t.tt(e,i,n,r),ve="WORD",ns="UWORD",Nt="LOCALHOST",rs="TLD",ss="UTLD",Hi="SCHEME",ct="SLASH_SCHEME",os="NUM",Vc="WS",as="NL",It="OPENBRACE",Rt="CLOSEBRACE",Ui="OPENBRACKET",qi="CLOSEBRACKET",zi="OPENPAREN",$i="CLOSEPAREN",Wi="OPENANGLEBRACKET",Gi="CLOSEANGLEBRACKET",Xi="FULLWIDTHLEFTPAREN",Yi="FULLWIDTHRIGHTPAREN",Ki="LEFTCORNERBRACKET",Qi="RIGHTCORNERBRACKET",Zi="LEFTWHITECORNERBRACKET",Ji="RIGHTWHITECORNERBRACKET",en="FULLWIDTHLESSTHAN",tn="FULLWIDTHGREATERTHAN",nn="AMPERSAND",rn="APOSTROPHE",sn="ASTERISK",xe="AT",on="BACKSLASH",an="BACKTICK",cn="CARET",Oe="COLON",cs="COMMA",ln="DOLLAR",pe="DOT",hn="EQUALS",ls="EXCLAMATION",ge="HYPHEN",un="PERCENT",dn="PIPE",fn="PLUS",pn="POUND",gn="QUERY",hs="QUOTE",us="SEMI",me="SLASH",Vt="TILDE",mn="UNDERSCORE",Nc="EMOJI",yn="SYM",Pc=Object.freeze({__proto__:null,WORD:ve,UWORD:ns,LOCALHOST:Nt,TLD:rs,UTLD:ss,SCHEME:Hi,SLASH_SCHEME:ct,NUM:os,WS:Vc,NL:as,OPENBRACE:It,CLOSEBRACE:Rt,OPENBRACKET:Ui,CLOSEBRACKET:qi,OPENPAREN:zi,CLOSEPAREN:$i,OPENANGLEBRACKET:Wi,CLOSEANGLEBRACKET:Gi,FULLWIDTHLEFTPAREN:Xi,FULLWIDTHRIGHTPAREN:Yi,LEFTCORNERBRACKET:Ki,RIGHTCORNERBRACKET:Qi,LEFTWHITECORNERBRACKET:Zi,RIGHTWHITECORNERBRACKET:Ji,FULLWIDTHLESSTHAN:en,FULLWIDTHGREATERTHAN:tn,AMPERSAND:nn,APOSTROPHE:rn,ASTERISK:sn,AT:xe,BACKSLASH:on,BACKTICK:an,CARET:cn,COLON:Oe,COMMA:cs,DOLLAR:ln,DOT:pe,EQUALS:hn,EXCLAMATION:ls,HYPHEN:ge,PERCENT:un,PIPE:dn,PLUS:fn,POUND:pn,QUERY:gn,QUOTE:hs,SEMI:us,SLASH:me,TILDE:Vt,UNDERSCORE:mn,EMOJI:Nc,SYM:yn}),at=/[a-z]/,Yr=new RegExp("\\p{L}","u"),Kr=new RegExp("\\p{Emoji}","u");var Qr=/\d/,xc=/\s/;var Oc=`
3`,gd="\uFE0F",md="\u200D",Pi=null,Bi=null;function yd(t){t===void 0&&(t=[]);let e={};W.groups=e;let i=new W;Pi==null&&(Pi=Fc(ld)),Bi==null&&(Bi=Fc(hd)),d(i,"'",rn),d(i,"{",It),d(i,"}",Rt),d(i,"[",Ui),d(i,"]",qi),d(i,"(",zi),d(i,")",$i),d(i,"<",Wi),d(i,">",Gi),d(i,"\uFF08",Xi),d(i,"\uFF09",Yi),d(i,"\u300C",Ki),d(i,"\u300D",Qi),d(i,"\u300E",Zi),d(i,"\u300F",Ji),d(i,"\uFF1C",en),d(i,"\uFF1E",tn),d(i,"&",nn),d(i,"*",sn),d(i,"@",xe),d(i,"`",an),d(i,"^",cn),d(i,":",Oe),d(i,",",cs),d(i,"$",ln),d(i,".",pe),d(i,"=",hn),d(i,"!",ls),d(i,"-",ge),d(i,"%",un),d(i,"|",dn),d(i,"+",fn),d(i,"#",pn),d(i,"?",gn),d(i,'"',hs),d(i,"/",me),d(i,";",us),d(i,"~",Vt),d(i,"_",mn),d(i,"\\",on);let n=Z(i,Qr,os,{[Jr]:!0});Z(n,Qr,n);let r=Z(i,at,ve,{[es]:!0});Z(r,at,r);let s=Z(i,Yr,ns,{[ts]:!0});Z(s,at),Z(s,Yr,s);let o=Z(i,xc,Vc,{[Ac]:!0});d(i,Oc,as,{[Ac]:!0}),d(o,Oc),Z(o,xc,o);let a=Z(i,Kr,Nc,{[Rc]:!0});Z(a,Kr,a),d(a,gd,a);let c=d(a,md);Z(c,Kr,a);let h=[[at,r]],l=[[at,null],[Yr,s]];for(let u=0;u<Pi.length;u++)ke(i,Pi[u],rs,ve,h);for(let u=0;u<Bi.length;u++)ke(i,Bi[u],ss,ns,l);Be(rs,{tld:!0,ascii:!0},e),Be(ss,{utld:!0,alpha:!0},e),ke(i,"file",Hi,ve,h),ke(i,"mailto",Hi,ve,h),ke(i,"http",ct,ve,h),ke(i,"https",ct,ve,h),ke(i,"ftp",ct,ve,h),ke(i,"ftps",ct,ve,h),Be(Hi,{scheme:!0,ascii:!0},e),Be(ct,{slashscheme:!0,ascii:!0},e),t=t.sort((u,f)=>u[0]>f[0]?1:-1);for(let u=0;u<t.length;u++){let f=t[u][0],E=t[u][1]?{[ud]:!0}:{[dd]:!0};f.indexOf("-")>=0?E[is]=!0:at.test(f)?Qr.test(f)?E[ji]=!0:E[es]=!0:E[Jr]=!0,kc(i,f,f,E)}return kc(i,"localhost",Nt,{ascii:!0}),i.jd=new W(yn),{start:i,tokens:lt({groups:e},Pc)}}function vd(t,e){let i=_d(e.replace(/[A-Z]/g,a=>a.toLowerCase())),n=i.length,r=[],s=0,o=0;for(;o<n;){let a=t,c=null,h=0,l=null,u=-1,f=-1;for(;o<n&&(c=a.go(i[o]));)a=c,a.accepts()?(u=0,f=0,l=a):u>=0&&(u+=i[o].length,f++),h+=i[o].length,s+=i[o].length,o++;s-=u,o-=f,h-=u,r.push({t:l.t,v:e.slice(s-h,s),s:s-h,e:s})}return r}function _d(t){let e=[],i=t.length,n=0;for(;n<i;){let r=t.charCodeAt(n),s,o=r<55296||r>56319||n+1===i||(s=t.charCodeAt(n+1))<56320||s>57343?t[n]:t.slice(n,n+2);e.push(o),n+=o.length}return e}function ke(t,e,i,n,r){let s,o=e.length;for(let a=0;a<o-1;a++){let c=e[a];t.j[c]?s=t.j[c]:(s=new W(n),s.jr=r.slice(),t.j[c]=s),t=s}return s=new W(i),s.jr=r.slice(),t.j[e[o-1]]=s,s}function Fc(t){let e=[],i=[],n=0,r="0123456789";for(;n<t.length;){let s=0;for(;r.indexOf(t[n+s])>=0;)s++;
vendor: 9,596 bytes, lines 3-5
3if(s>0){e.push(i.join(""));for(let o=parseInt(t.substring(n,n+s),10);o>0;o--)i.pop();n+=s}else i.push(t[n]),n++}return e}var Pt={defaultProtocol:"http",events:null,format:Tc,formatHref:Tc,nl2br:!1,tagName:"a",target:null,rel:null,validate:!0,truncate:1/0,className:null,attributes:null,ignoreTags:[],render:null};function vn(t,e){e===void 0&&(e=null);let i=lt({},Pt);t&&(i=lt(i,t instanceof vn?t.o:t));let n=i.ignoreTags,r=[];for(let s=0;s<n.length;s++)r.push(n[s].toUpperCase());this.o=i,e&&(this.defaultRender=e),this.ignoreTags=r}vn.prototype={o:Pt,ignoreTags:[],defaultRender(t){return t},check(t){return this.get("validate",t.toString(),t)},get(t,e,i){let n=e!=null,r=this.o[t];return r&&(typeof r=="object"?(r=i.t in r?r[i.t]:Pt[t],typeof r=="function"&&n&&(r=r(e,i))):typeof r=="function"&&n&&(r=r(e,i.t,i)),r)},getObj(t,e,i){let n=this.o[t];return typeof n=="function"&&e!=null&&(n=n(e,i.t,i)),n},render(t){let e=t.render(this);return(this.get("render",null,t)||this.defaultRender)(e,t.t,t)}};function Tc(t){return t}function Bc(t,e){this.t="token",this.v=t,this.tk=e}Bc.prototype={isLink:!1,toString(){return this.v},toHref(t){return this.toString()},toFormattedString(t){let e=this.toString(),i=t.get("truncate",e,this),n=t.get("format",e,this);return i&&n.length>i?n.substring(0,i)+"\u2026":n},toFormattedHref(t){return t.get("formatHref",this.toHref(t.get("defaultProtocol")),this)},startIndex(){return this.tk[0].s},endIndex(){return this.tk[this.tk.length-1].e},toObject(t){return t===void 0&&(t=Pt.defaultProtocol),{type:this.t,value:this.toString(),isLink:this.isLink,href:this.toHref(t),start:this.startIndex(),end:this.endIndex()}},toFormattedObject(t){return{type:this.t,value:this.toFormattedString(t),isLink:this.isLink,href:this.toFormattedHref(t),start:this.startIndex(),end:this.endIndex()}},validate(t){return t.get("validate",this.toString(),this)},render(t){let e=this,i=this.toHref(t.get("defaultProtocol")),n=t.get("formatHref",i,this),r=t.get("tagName",i,e),s=this.toFormattedString(t),o={},a=t.get("className",i,e),c=t.get("target",i,e),h=t.get("rel",i,e),l=t.getObj("attributes",i,e),u=t.getObj("events",i,e);return o.href=n,a&&(o.class=a),c&&(o.target=c),h&&(o.rel=h),l&&lt(o,l),{tagName:r,attributes:o,content:s,eventListeners:u}}};function _n(t,e){class i extends Bc{constructor(r,s){super(r,s),this.t=t}}for(let n in e)i.prototype[n]=e[n];return i.t=t,i}var Mc=_n("email",{isLink:!0,toHref(){return"mailto:"+this.toString()}}),Ic=_n("text"),bd=_n("nl"),Li=_n("url",{isLink:!0,toHref(t){return t===void 0&&(t=Pt.defaultProtocol),this.hasProtocol()?this.v:`${t}://${this.v}`},hasProtocol(){let t=this.tk;return t.length>=2&&t[0].t!==Nt&&t[1].t===Oe}});var J=t=>new W(t);function Cd(t){let{groups:e}=t,i=e.domain.concat([nn,sn,xe,on,an,cn,ln,hn,ge,os,un,dn,fn,pn,me,yn,Vt,mn]),n=[rn,Oe,cs,pe,ls,gn,hs,us,Wi,Gi,It,Rt,qi,Ui,zi,$i,Xi,Yi,Ki,Qi,Zi,Ji,en,tn],r=[nn,rn,sn,on,an,cn,ln,hn,ge,It,Rt,un,dn,fn,pn,gn,me,yn,Vt,mn],s=J(),o=d(s,Vt);m(o,r,o),m(o,e.domain,o);let a=J(),c=J(),h=J();m(s,e.domain,a),m(s,e.scheme,c),m(s,e.slashscheme,h),m(a,r,o),m(a,e.domain,a);let l=d(a,xe);d(o,xe,l),d(c,xe,l),d(h,xe,l);let u=d(o,pe);m(u,r,o),m(u,e.domain,o);let f=J();m(l,e.domain,f),m(f,e.domain,f);let g=d(f,pe);m(g,e.domain,f);let E=J(Mc);m(g,e.tld,E),m(g,e.utld,E),d(l,Nt,E);let V=d(f,ge);m(V,e.domain,f),m(E,e.domain,f),d(E,pe,g),d(E,ge,V);let G=d(E,Oe);m(G,e.numeric,Mc);let Le=d(a,ge),ee=d(a,pe);m(Le,e.domain,a),m(ee,r,o),m(ee,e.domain,a);let oe=J(Li);m(ee,e.tld,oe),m(ee,e.utld,oe),m(oe,e.domain,a),m(oe,r,o),d(oe,pe,ee),d(oe,ge,Le),d(oe,xe,l);let Wc=d(oe,Oe),ps=J(Li);m(Wc,e.numeric,ps);let N=J(Li),ht=J();m(N,i,N),m(N,n,ht),m(ht,i,N),m(ht,n,ht),d(oe,me,N),d(ps,me,N);let gs=d(c,Oe),Gc=d(h,Oe),Xc=d(Gc,me),Cn=d(Xc,me);m(c,e.domain,a),d(c,pe,ee),d(c,ge,Le),m(h,e.domain,a),d(h,pe,ee),d(h,ge,Le),m(gs,e.domain,N),d(gs,me,N),m(Cn,e.domain,N),m(Cn,i,N),d(Cn,me,N);let ms=[[It,Rt],[Ui,qi],[zi,$i],[Wi,Gi],[Xi,Yi],[Ki,Qi],[Zi,Ji],[en,tn]];for(let wn=0;wn<ms.length;wn++){let[ys,En]=ms[wn],Bt=d(N,ys);d(ht,ys,Bt),d(Bt,En,N);let je=J(Li);m(Bt,i,je);let ut=J();m(Bt,n),m(je,i,je),m(je,n,ut),m(ut,i,je),m(ut,n,ut),d(je,En,N),d(ut,En,N)}return d(s,Nt,oe),d(s,as,bd),{start:s,tokens:Pc}}function wd(t,e,i){let n=i.length,r=0,s=[],o=[];for(;r<n;){let a=t,c=null,h=null,l=0,u=null,f=-1;for(;r<n&&!(c=a.go(i[r].t));)o.push(i[r++]);for(;r<n&&(h=c||a.go(i[r].t));)c=null,a=h,a.accepts()?(f=0,u=a):f>=0&&f++,r++,l++;if(f<0)r-=l,r<n&&(o.push(i[r]),r++);else{o.length>0&&(s.push(Zr(Ic,e,o)),o=[]),r-=f,l-=f;let g=u.t,E=i.slice(r-l,r);s.push(Zr(g,e,E))}}return o.length>0&&s.push(Zr(Ic,e,o)),s}function Zr(t,e,i){let n=i[0].s,r=i[i.length-1].e,s=e.slice(n,r);return new t(s,i)}var H={scanner:null,parser:null,tokenQueue:[],pluginQueue:[],customSchemes:[],initialized:!1};function Ed(){H.scanner=yd(H.customSchemes);for(let t=0;t<H.tokenQueue.length;t++)H.tokenQueue[t][1]({scanner:H.scanner});H.parser=Cd(H.scanner.tokens);for(let t=0;t<H.pluginQueue.length;t++)H.pluginQueue[t][1]({scanner:H.scanner,parser:H.parser});H.initialized=!0}function Lc(t){return H.initialized||Ed(),wd(H.parser.start,t,vd(H.scanner.start,t))}var Dd={amp:"&",gt:">",lt:"<",nbsp:"\xA0",quot:'"'},Sd=/^#[xX]([A-Fa-f0-9]+)$/,Ad=/^#([0-9]+)$/,kd=/^([A-Za-z0-9]+)$/,xd=function(){function t(e){this.named=e}return t.prototype.parse=function(e){if(e){var i=e.match(Sd);if(i)return String.fromCharCode(parseInt(i[1],16));if(i=e.match(Ad),i)return String.fromCharCode(parseInt(i[1],10));if(i=e.match(kd),i)return this.named[i[1]]||"&"+i[1]+";"}},t}(),Od=/[\t\n\f ]/,Fd=/[A-Za-z]/,Td=/\r\n?/g;function R(t){return Od.test(t)}function jc(t){return Fd.test(t)}function Md(t){return t.replace(Td,`
4`)}var Id=function(){function t(e,i,n){n===void 0&&(n="precompile"),this.delegate=e,this.entityParser=i,this.mode=n,this.state="beforeData",this.line=-1,this.column=-1,this.input="",this.index=-1,this.tagNameBuffer="",this.states={beforeData:function(){var r=this.peek();if(r==="<"&&!this.isIgnoredEndTag())this.transitionTo("tagOpen"),this.markTagStart(),this.consume();else{if(this.mode==="precompile"&&r===`
5`){var s=this.tagNameBuffer.toLowerCase();(s==="pre"||s==="textarea")&&this.consume()}this.transitionTo("data"),this.delegate.beginData()}},data:function(){var r=this.peek(),s=this.tagNameBuffer;r==="<"&&!this.isIgnoredEndTag()?(this.delegate.finishData(),this.transitionTo("tagOpen"),this.markTagStart(),this.consume()):r==="&"&&s!=="script"&&s!=="style"?(this.consume(),this.delegate.appendToData(this.consumeCharRef()||"&")):(this.consume(),this.delegate.appendToData(r))},tagOpen:function(){var r=this.consume();r==="!"?this.transitionTo("markupDeclarationOpen"):r==="/"?this.transitionTo("endTagOpen"):(r==="@"||r===":"||jc(r))&&(this.transitionTo("tagName"),this.tagNameBuffer="",this.delegate.beginStartTag(),this.appendToTagName(r))},markupDeclarationOpen:function(){var r=this.consume();if(r==="-"&&this.peek()==="-")this.consume(),this.transitionTo("commentStart"),this.delegate.beginComment();else{var s=r.toUpperCase()+this.input.substring(this.index,this.index+6).toUpperCase();s==="DOCTYPE"&&(this.consume(),this.consume(),this.consume(),this.consume(),this.consume(),this.consume(),this.transitionTo("doctype"),this.delegate.beginDoctype&&this.delegate.beginDoctype())}},doctype:function(){var r=this.consume();R(r)&&this.transitionTo("beforeDoctypeName")},beforeDoctypeName:function(){var r=this.consume();R(r)||(this.transitionTo("doctypeName"),this.delegate.appendToDoctypeName&&this.delegate.appendToDoctypeName(r.toLowerCase()))},doctypeName:function(){var r=this.consume();R(r)?this.transitionTo("afterDoctypeName"):r===">"?(this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData")):this.delegate.appendToDoctypeName&&this.delegate.appendToDoctypeName(r.toLowerCase())},afterDoctypeName:function(){var r=this.consume();if(!R(r))if(r===">")this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData");else{var s=r.toUpperCase()+this.input.substring(this.index,this.index+5).toUpperCase(),o=s.toUpperCase()==="PUBLIC",a=s.toUpperCase()==="SYSTEM";(o||a)&&(this.consume(),this.consume(),this.consume(),this.consume(),this.consume(),this.consume()),o?this.transitionTo("afterDoctypePublicKeyword"):a&&this.transitionTo("afterDoctypeSystemKeyword")}},afterDoctypePublicKeyword:function(){var r=this.peek();R(r)?(this.transitionTo("beforeDoctypePublicIdentifier"),this.consume()):r==='"'?(this.transitionTo("doctypePublicIdentifierDoubleQuoted"),this.consume()):r==="'"?(this.transitionTo("doctypePublicIdentifierSingleQuoted"),this.consume()):r===">"&&(this.consume(),this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData"))},doctypePublicIdentifierDoubleQuoted:function(){var r=this.consume();r==='"'?this.transitionTo("afterDoctypePublicIdentifier"):r===">"?(this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData")):this.delegate.appendToDoctypePublicIdentifier&&this.delegate.appendToDoctypePublicIdentifier(r)},doctypePublicIdentifierSingleQuoted:function(){var r=this.consume();r==="'"?this.transitionTo("afterDoctypePublicIdentifier"):r===">"?(this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData")):this.delegate.appendToDoctypePublicIdentifier&&this.delegate.appendToDoctypePublicIdentifier(r)},afterDoctypePublicIdentifier:function(){var r=this.consume();R(r)?this.transitionTo("betweenDoctypePublicAndSystemIdentifiers"):r===">"?(this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData")):r==='"'?this.transitionTo("doctype
5SystemIdentifierDoubleQuoted"):r==="'"&&this.transitionTo("doctypeSystemIdentifierSingleQuoted")},betweenDoctypePublicAndSystemIdentifiers:function(){var r=this.consume();R(r)||(r===">"?(this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData")):r==='"'?this.transitionTo("doctypeSystemIdentifierDoubleQuoted"):r==="'"&&this.transitionTo("doctypeSystemIdentifierSingleQuoted"))},doctypeSystemIdentifierDoubleQuoted:function(){var r=this.consume();r==='"'?this.transitionTo("afterDoctypeSystemIdentifier"):r===">"?(this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData")):this.delegate.appendToDoctypeSystemIdentifier&&this.delegate.appendToDoctypeSystemIdentifier(r)},doctypeSystemIdentifierSingleQuoted:function(){var r=this.consume();r==="'"?this.transitionTo("afterDoctypeSystemIdentifier"):r===">"?(this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData")):this.delegate.appendToDoctypeSystemIdentifier&&this.delegate.appendToDoctypeSystemIdentifier(r)},afterDoctypeSystemIdentifier:function(){var r=this.consume();R(r)||r===">"&&(this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData"))},commentStart:function(){var r=this.consume();r==="-"?this.transitionTo("commentStartDash"):r===">"?(this.delegate.finishComment(),this.transitionTo("beforeData")):(this.delegate.appendToCommentData(r),this.transitionTo("comment"))},commentStartDash:function(){var r=this.consume();r==="-"?this.transitionTo("commentEnd"):r===">"?(this.delegate.finishComment(),this.transitionTo("beforeData")):(this.delegate.appendToCommentData("-"),this.transitionTo("comment"))},comment:function(){var r=this.consume();r==="-"?this.transitionTo("commentEndDash"):this.delegate.appendToCommentData(r)},commentEndDash:function(){var r=this.consume();r==="-"?this.transitionTo("commentEnd"):(this.delegate.appendToCommentData("-"+r),this.transitionTo("comment"))},commentEnd:function(){var r=this.consume();r===">"?(this.delegate.finishComment(),this.transitionTo("beforeData")):(this.delegate.appendToCommentData("--"+r),this.transitionTo("comment"))},tagName:function(){var r=this.consume();R(r)?this.transitionTo("beforeAttributeName"):r==="/"?this.transitionTo("selfClosingStartTag"):r===">"?(this.delegate.finishTag(),this.transitionTo("beforeData")):this.appendToTagName(r)},endTagName:function(){var r=this.consume();R(r)?(this.transitionTo("beforeAttributeName"),this.tagNameBuffer=""):r==="/"?(this.transitionTo("selfClosingStartTag"),this.tagNameBuffer=""):r===">"?(this.delegate.finishTag(),this.transitionTo("beforeData"),this.tagNameBuffer=""):this.appendToTagName(r)},beforeAttributeName:function(){var r=this.peek();if(R(r)){this.consume();return}else r==="/"?(this.transitionTo("selfClosingStartTag"),this.consume()):r===">"?(this.consume(),this.delegate.finishTag(),this.transitionTo("beforeData")):r==="="?(this.delegate.reportSyntaxError("attribute name cannot start with equals sign"),this.transitionTo("attributeName"),this.delegate.beginAttribute(),this.consume(),this.delegate.appendToAttributeName(r)):(this.transitionTo("attributeName"),this.delegate.beginAttribute())},attributeName:function(){var r=this.peek();R(r)?(this.transitionTo("afterAttributeName"),this.consume()):r==="/"?(this.delegate.beginAttributeValue(!1),this.delegate.finishAttributeValue(),this.consume(),this.transitionTo("selfClosingStartTag")):r==="="?(this.transitionTo("beforeAttributeValue"),this.consume()):r===">"?(this.delegate.beginAttributeValue(!1),this.delegate.finishAttributeValue(),this.consume(),this.delegate.finishTag(),this.transitionTo("beforeData")):r==='"'||r==="'"||r==="<"?(this.delegate.reportSyntaxError(r+" is not a valid character within attribute names"),this.consume(),this.delegate.appendToAttributeName(r)):(this.consume(),this.delegate.appendToAttributeName(r))},afterAttributeName:function(){var r=this.peek();if(R(r)){this.consume();return}else r==="/"?(this.delegate.beginAttributeValue(!1),this.delegate.finishAttributeValue(),this.consume(),this.transitionTo("selfClosingStartTag")):r==="="?(this.consume(),this.transitionTo("beforeAttributeValue")):r===">"?(this.delegate.beginAttributeValue(!1),this.delegate.finishAttributeValue(),this.consume(),this.delegate.finishTag(),this.transitionTo("beforeData")):(this.delegate.beginAttributeValue(!1),this.delegate.finishAttributeValue(),this.transitionTo("attributeName"),this.delegate.beginAttribute(),this.consume(),this.delegate.appendToAttributeName(r))},beforeAttributeValue:function(){var r=this.peek();R(r)?this.consume():r==='"'?(this.transitionTo("attributeValueDoubleQuoted"),this.delegate.beginAttributeValue(!0),this.consume()):r==="'"?(this.transitionTo("attributeValueSingleQuoted"),this.delegate.beginAttributeValue(!0),this.consume()):r===">"?(this.delegate.beginAttributeValue(!1),this.delegate.finishAttributeValue(),this.consume(),this.delegate.finishTag(),this.transitionTo("beforeData")):(this.transitionTo("attributeValueUnquoted"),this.delegate.beginAttributeValue(!1),this.consume(),this.delegate.appendToAttributeValue(r))},attributeValueDoubleQuoted:function(){var r=this.consume();r==='"'?(this.delegate.finishAttributeValue(),this.transitionTo("afterAttributeValueQuoted")):r==="&"?this.delegate.appendToAttributeValue(this.consumeCharRef()||"&"):this.delegate.appendToAttributeValue(r)},attributeValueSingleQuoted:function(){var r=this.consume();r==="'"?(this.delegate.finishAttributeValue(),this.transitionTo("afterAttributeValueQuoted")):r==="&"?this.delegate.appendToAttributeValue(this.consumeCharRef()||"&"):this.delegate.appendToAttributeValue(r)},attributeValueUnquoted:function(){var r=this.peek();R(r)?(this.delegate.finishAttributeValue(),this.consume(),this.transitionTo("beforeAttributeName")):r==="/"?(this.delegate.finishAttributeValue(),this.consume(),this.transitionTo("selfClosingStartTag")):r==="&"?(this.consume(),this.delegate.appendToAttributeValue(this.consumeCharRef()||"&")):r===">"?(this.delegate.finishAttributeValue(),this.consume(),this.delegate.finishTag(),this.transitionTo("beforeData")):(this.consume(),this.delegate.appendToAttributeValue(r))},afterAttributeValueQuoted:function(){var r=this.peek();R(r)?(this.consume(),this.transitionTo("beforeAttributeName")):r==="/"?(this.consume(),this.transitionTo("selfClosingStartTag")):r===">"?(this.consume(),this.delegate.finishTag(),this.transitionTo("beforeData")):this.transitionTo("beforeAttributeName")},selfClosingStartTag:function(){var r=this.peek();r===">"?(this.consume(),this.delegate.markTagAsSelfClosing(),this.delegate.finishTag(),this.transitionTo("beforeData")):this.transitionTo("beforeAttributeName")},endTagOpen:function(){var r=this.consume();(r==="@"||r===":"||jc(r))&&(this.transitionTo("endTagName"),this.tagNameBuffer="",this.delegate.beginEndTag(),this.appendToTagName(r))}},this.reset()}return t.prototype.reset=function(){this.transitionTo("beforeData"),this.input="",this.tagNameBuffer="",this.index=0,this.line=1,this.column=0,this.delegate.reset()},t.prototype.transitionTo=function(e){this.state=e},t.prototype.tokenize=function(e){this.reset(),this.tokenizePart(e),this.tokenizeEOF()},t.prototype.tokenizePart=function(e){for(this.input+=Md(e);this.index<this.input.length;){var i=this.states[this.state];if(i!==void 0)i.call(this);else throw new Error("unhandled state "+this.state)}},t.prototype.tokenizeEOF=function(){this.flushData()},t.prototype.flushData=function(){this.state==="data"&&(this.delegate.finishData(),this.transitionTo("beforeData"))},t.prototype.peek=function(){return this.input.charAt(this.index)},t.prototype.consume=function(){var e=this.peek();return this.index++,e===`
6`?(this.line++,this.column=0):this.column++,e},t.prototype.consumeCharRef=function(){var e=this.input.indexOf(";",this.index);if(e!==-1){var i=this.input.slice(this.index,e),n=this.entityParser.parse(i);if(n){for(var r=i.length;r;)this.consume(),r--;return this.consume(),n}}},t.prototype.markTagStart=function(){this.delegate.tagOpen()},t.prototype.appendToTagName=function(e){this.tagNameBuffer+=e,this.delegate.appendToTagName(e)},t.prototype.isIgnoredEndTag=function(){var e=this.tagNameBuffer;return e==="title"&&this.input.substring(this.index,this.index+8)!=="</title>"||e==="style"&&this.input.substring(this.index,this.index+8)!=="</style>"||e==="script"&&this.input.substring(this.index,this.index+9)!=="<\/script>"},t}(),Rd=function(){function t(e,i){i===void 0&&(i={}),this.options=i,this.token=null,this.startLine=1,this.startColumn=0,this.tokens=[],this.tokenizer=new Id(this,e,i.mode),this._currentAttribute=void 0}return t.prototype.tokenize=function(e){return this.tokens=[],this.tokenizer.tokenize(e),this.tokens},t.prototype.tokenizePart=function(e){return this.tokens=[],this.tokenizer.tokenizePart(e),this.tokens},t.prototype.tokenizeEOF=function(){return this.tokens=[],this.tokenizer.tokenizeEOF(),this.tokens[0]},t.prototype.reset=function(){this.token=null,this.startLine=1,this.startColumn=0},t.prototype.current=function(){var e=this.token;if(e===null)throw new Error("token was unexpectedly null");if(arguments.length===0)return e;for(var i=0;i<arguments.length;i++)if(e.type===arguments[i])return e;throw new Error("token type was unexpectedly "+e.type)},t.prototype.push=function(e){this.token=e,this.tokens.push(e)},t.prototype.currentAttribute=function(){return this._currentAttribute},t.prototype.addLocInfo=function(){this.options.loc&&(this.current().loc={start:{line:this.startLine,column:this.startColumn},end:{line:this.tokenizer.line,column:this.tokenizer.column}}),this.startLine=this.tokenizer.line,this.startColumn=this.tokenizer.column},t.prototype.beginDoctype=function(){this.push({type:"Doctype",name:""})},t.prototype.appendToDoctypeName=function(e){this.current("Doctype").name+=e},t.prototype.appendToDoctypePublicIdentifier=function(e){var i=this.current("Doctype");i.publicIdentifier===void 0?i.publicIdentifier=e:i.publicIdentifier+=e},t.prototype.appendToDoctypeSystemIdentifier=function(e){var i=this.current("Doctype");i.systemIdentifier===void 0?i.systemIdentifier=e:i.systemIdentifier+=e},t.prototype.endDoctype=function(){this.addLocInfo()},t.prototype.beginData=function(){this.push({type:"Chars",chars:""})},t.prototype.appendToData=function(e){this.current("Chars").chars+=e},t.prototype.finishData=function(){this.addLocInfo()},t.prototype.beginComment=function(){this.push({type:"Comment",chars:""})},t.prototype.appendToCommentData=function(e){this.current("Comment").chars+=e},t.prototype.finishComment=function(){this.addLocInfo()},t.prototype.tagOpen=function(){},t.prototype.beginStartTag=function(){this.push({type:"StartTag",tagName:"",attributes:[],selfClosing:!1})},t.prototype.beginEndTag=function(){this.push({type:"EndTag",tagName:""})},t.prototype.finishTag=function(){this.addLocInfo()},t.prototype.markTagAsSelfClosing=function(){this.current("StartTag").selfClosing=!0},t.prototype.appendToTagName=function(e){this.current("StartTag","EndTag").tagName+=e},t.prototype.beginAttribute=function(){this._currentAttribute=["","",!1]},t.prototype.appendToAttributeName=function(e){this.currentAttribute()[0]+=e},t.prototype.beginAttributeValue=function(e){this.currentAttribute()[2]=e},t.prototype.appendToAttributeValue=function(e){this.currentAttribute()[1]+=e},t.prototype.finishAttributeValue=function(){this.current("StartTag").attributes.push(this._currentAttribute)},t.prototype.reportSyntaxError=function(e){this.current().syntaxError=e},t}();function Vd(t,e){var i=new Rd(new xd(Dd),e);return i.tokenize(t)}
6var Hc="LinkifyResult",bn="StartTag",Uc="EndTag",ds="Chars",Nd="Comment",Pd="Doctype";function qc(t,e){e===void 0&&(e={});let i=Vd(t),n=[],r=[],s=new vn(e,jd);for(let o=0;o<i.length;o++){let a=i[o];if(a.type===bn){n.push(a);let c=a.tagName.toUpperCase();if(!(c==="A"||s.ignoreTags.indexOf(c)>=0))continue;let l=n.length;Ld(c,i,++o,n),o+=n.length-l-1}else if(a.type!==ds)n.push(a);else{let c=Bd(a.chars,s);n.push.apply(n,c)}}for(let o=0;o<n.length;o++){let a=n[o];switch(a.type){case Hc:r.push(a.rendered);break;case bn:{let c="<"+a.tagName;a.attributes.length>0&&(c+=" "+Ud(a.attributes).join(" ")),a.selfClosing&&(c+=" /"),c+=">",r.push(c);break}case Uc:r.push(`</${a.tagName}>`);break;case ds:r.push(fs(a.chars));break;case Nd:r.push(`<!--${fs(a.chars)}-->`);break;case Pd:{let c=`<!DOCTYPE ${a.name}`;a.publicIdentifier&&(c+=` PUBLIC "${a.publicIdentifier}"`),a.systemIdentifier&&(c+=` "${a.systemIdentifier}"`),c+=">",r.push(c);break}}}return r.join("")}function Bd(t,e){let i=Lc(t),n=[];for(let r=0;r<i.length;r++){let s=i[r];s.t==="nl"&&e.get("nl2br")?n.push({type:bn,tagName:"br",attributes:[],selfClosing:!0}):!s.isLink||!e.check(s)?n.push({type:ds,chars:s.toString()}):n.push({type:Hc,rendered:e.render(s)})}return n}function Ld(t,e,i,n){let r=1;for(;i<e.length&&r>0;){let s=e[i];s.type===bn&&s.tagName.toUpperCase()===t?r++:s.type===Uc&&s.tagName.toUpperCase()===t&&r--,n.push(s),i++}return n}function jd(t){let{tagName:e,attributes:i,content:n}=t;return`<${e} ${Hd(i)}>${fs(n)}</${e}>`}function fs(t){return t.replace(/</g,"&lt;").replace(/>/g,"&gt;")}function zc(t){return t.replace(/"/g,"&quot;")}function Hd(t){let e=[];for(let i in t){let n=t[i]+"";e.push(`${i}="${zc(n)}"`)}return e.join(" ")}function Ud(t){let e=[];for(let i=0;i<t.length;i++){let n=t[i][0],r=t[i][1]+"";e.push(`${n}="${zc(r)}"`)}return e}var $c=class t{constructor(e){this._sanitizer=e}transform(e){let i=this.sanitize(e);return this.replace(i)}replace(e){return e.replace(/\*\*(.*?)\*\*/gi,"<b>$1</b>")}sanitize(e){let i=this._sanitizer.bypassSecurityTrustHtml(e),n=this._sanitizer.sanitize(Fs.HTML,i)||"";return qc(n||"",{defaultProtocol:"https"})}static \u0275fac=function(i){return new(i||t)(_($s,16))};static \u0275pipe=ks({name:"boldAndLinks",type:t,pure:!0,standalone:!0})};export{li as a,Qe as b,hi as c,ui as d,Fi as e,ot as f,Ti as g,so as h,Qs as i,cf as j,lf as k,Qt as l,uf as m,Sl as n,kl as o,Ol as p,df as q,ff as r,pf as s,$c as t,Pr as u,Mi as v,Ii as w,_g as x,mc as y,qr as z,Sc as A,$r as B,Hg as C,Ug as D,Xr as E,qg as F,Qu as G,Zu as H,gc as I};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.