PageSourceSearch

https://madfu.com.sa/main-3IYQ34UI.js

js madfu.com.sa collected 2026-10-08 03:23:34 UTC 367,467 bytes, 4 lines download raw bytes

vendor: 62,165 bytes, lines 1-4
1import{a as J0}from"./chunk-QV4E4PAO.js";import{b as X0}from"./chunk-MNZG6ZCJ.js";import{c as H0,d as Fi,f as Pr,g as z0,h as V0,i as Bi,j as Y0,k as U0,l as W0,m as q0,n as j0,o as $0,p as K0,q as G0,r as Q0,s as fn,t as Or}from"./chunk-KZHRLFV3.js";import{a as Dr,b as T0}from"./chunk-E4TUVNVI.js";import{c as N0}from"./chunk-7XIBAIJZ.js";import{a as ue,b as wt,e as M0,f as Ta,i as Pn,j as Er,k as Ti}from"./chunk-Q6L3W752.js";import{c as L0}from"./chunk-ZNNKPM53.js";import{a as R0}from"./chunk-4YKMT4YK.js";import{a as Ye}from"./chunk-LQLOPWMB.js";import{a as dn}from"./chunk-DOSRMKSV.js";import{a as ln}from"./chunk-UIU4SHNY.js";import{a as Ct}from"./chunk-EXG5YJDU.js";import{a as Mr,b as F0,c as B0,d as Ar,e as kr,f as I0,g as Fa}from"./chunk-2CZ3U5Q6.js";import{a as Oa,b as br,c as b0,d as E0,e as S0,l as Sr,q as A0,t as ni,x as k0,y as P0,z as O0}from"./chunk-UUSFGAOI.js";import{a as D0,b as kt,c as pt,d as it}from"./chunk-CPJVSFHJ.js";import{Ab as u0,Bc as _0,Cc as He,E as r0,Ga as ka,Gc as ee,H as Ut,Hb as Ce,Hc as ne,Ib as we,Ic as Oi,Jb as p0,K as s0,Kb as ki,Lb as Pi,Mb as ce,Nb as j,O as vr,Ob as U,Pb as he,Pc as y0,Qb as ot,Qc as v0,Rb as Wt,Sb as cn,Sc as C0,Tc as ut,Uc as w0,Va as ft,X as a0,Ya as O,Yb as ht,Z as o0,Zb as wr,_ as ye,a as Fe,ab as d0,b as Yt,c as yr,ca as at,cb as f0,cc as Oe,d as t0,da as Mi,e as de,ec as fe,f as Dg,g as n0,ga as Cr,gb as h0,h as Q,ha as ge,ja as c0,jc as m0,kc as g0,lc as x0,na as Ke,nb as We,nc as ct,oa as Ge,ob as Ai,pa as l0,pc as J,qc as Re,r as Da,ra as Aa,rc as re,s as Ma,sa as on,t as an,va as Ae,w as i0,wc as Pa,x as Di,xc as kn,yc as Ze}from"./chunk-IKRTH2FE.js";var Zl=de((fo,oi)=>{"use strict";(function(i,e){typeof fo=="object"&&typeof oi<"u"?oi.exports=e():typeof define=="function"&&define.amd?define(e):i.moment=e()})(fo,function(){"use strict";var i;function e(){return i.apply(null,arguments)}function t(r){i=r}function n(r){return r instanceof Array||Object.prototype.toString.call(r)==="[object Array]"}function s(r){return r!=null&&Object.prototype.toString.call(r)==="[object Object]"}function a(r,o){return Object.prototype.hasOwnProperty.call(r,o)}function d(r){if(Object.getOwnPropertyNames)return Object.getOwnPropertyNames(r).length===0;var o;for(o in r)if(a(r,o))return!1;return!0}function c(r){return r===void 0}function h(r){return typeof r=="number"||Object.prototype.toString.call(r)==="[object Number]"}function u(r){return r instanceof Date||Object.prototype.toString.call(r)==="[object Date]"}function p(r,o){var l=[],f,m=r.length;for(f=0;f<m;++f)l.push(o(r[f],f));return l}function g(r,o){for(var l in o)a(o,l)&&(r[l]=o[l]);return a(o,"toString")&&(r.toString=o.toString),a(o,"valueOf")&&(r.valueOf=o.valueOf),r}function x(r,o,l,f){return Tc(r,o,l,f,!0).utc()}function C(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}}function _(r){return r._pf==null&&(r._pf=C()),r._pf}var w;Array.prototype.some?w=Array.prototype.some:w=function(r){var o=Object(this),l=o.length>>>0,f;for(f=0;f<l;f++)if(f in o&&r.call(this,o[f],f,o))return!0;return!1};function E(r){var o=null,l=!1,f=r._d&&!isNaN(r._d.getTime());if(f&&(o=_(r),l=w.call(o.parsedDateParts,function(m){return m!=null}),f=o.overflow<0&&!o.empty&&!o.invalidEra&&!o.invalidMonth&&!o.invalidWeekday&&!o.weekdayMismatch&&!o.nullInput&&!o.invalidFormat&&!o.userInvalidated&&(!o.meridiem||o.meridiem&&l),r._strict&&(f=f&&o.charsLeftOver===0&&o.unusedTokens.length===0&&o.bigHour===void 0)),Object.isFrozen==null||!Object.isFrozen(r))r._isValid=f;else return f;return r._isValid}function y(r){var o=x(NaN);return r!=null?g(_(o),r):_(o).userInvalidated=!0,o}var v=e.momentProperties=[],D=!1;function S(r,o){var l,f,m,b=v.length;if(c(o._isAMomentObject)||(r._isAMomentObject=o._isAMomentObject),c(o._i)||(r._i=o._i),c(o._f)||(r._f=o._f),c(o._l)||(r._l=o._l),c(o._strict)||(r._strict=o._strict),c(o._tzm)||(r._tzm=o._tzm),c(o._isUTC)||(r._isUTC=o._isUTC),c(o._offset)||(r._offset=o._offset),c(o._pf)||(r._pf=_(o)),c(o._locale)||(r._locale=o._locale),b>0)for(l=0;l<b;l++)f=v[l],m=o[f],c(m)||(r[f]=m);return r}function A(r){S(this,r),this._d=new Date(r._d!=null?r._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),D===!1&&(D=!0,e.updateOffset(this),D=!1)}function M(r){return r instanceof A||r!=null&&r._isAMomentObject!=null}function L(r){e.suppressDeprecationWarnings===!1&&typeof console<"u"&&console.warn&&console.warn("Deprecation warning: "+r)}function R(r,o){var l=!0;return g(function(){if(e.deprecationHandler!=null&&e.deprecationHandler(null,r),l){var f=[],m,b,P,Z=arguments.length;for(b=0;b<Z;b++){if(m="",typeof arguments[b]=="object"){m+=`
2[`+b+"] ";for(P in arguments[0])a(arguments[0],P)&&(m+=P+": "+arguments[0][P]+", ");m=m.slice(0,-2)}else m=arguments[b];f.push(m)}L(r+`
3Arguments: `+Array.prototype.slice.call(f).join("")+`
4`+new Error().stack),l=!1}return o.apply(this,arguments)},o)}var W={};function K(r,o){e.deprecationHandler!=null&&e.deprecationHandler(r,o),W[r]||(L(o),W[r]=!0)}e.suppressDeprecationWarnings=!1,e.deprecationHandler=null;function T(r){return typeof Function<"u"&&r instanceof Function||Object.prototype.toString.call(r)==="[object Function]"}function z(r){var o,l;for(l in r)a(r,l)&&(o=r[l],T(o)?this[l]=o:this["_"+l]=o);this._config=r,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function G(r,o){var l=g({},r),f;for(f in o)a(o,f)&&(s(r[f])&&s(o[f])?(l[f]={},g(l[f],r[f]),g(l[f],o[f])):o[f]!=null?l[f]=o[f]:delete l[f]);for(f in r)a(r,f)&&!a(o,f)&&s(r[f])&&(l[f]=g({},l[f]));return l}function H(r){r!=null&&this.set(r)}var te;Object.keys?te=Object.keys:te=function(r){var o,l=[];for(o in r)a(r,o)&&l.push(o);return l};var B={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function V(r,o,l){var f=this._calendar[r]||this._calendar.sameElse;return T(f)?f.call(o,l):f}function Y(r,o,l){var f=""+Math.abs(r),m=o-f.length,b=r>=0;return(b?l?"+":"":"-")+Math.pow(10,Math.max(0,m)).toString().substr(1)+f}var k=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,I=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,N={},F={};function $(r,o,l,f){var m=f;typeof f=="string"&&(m=function(){return this[f]()}),r&&(F[r]=m),o&&(F[o[0]]=function(){return Y(m.apply(this,arguments),o[1],o[2])}),l&&(F[l]=function(){return this.localeData().ordinal(m.apply(this,arguments),r)})}function ie(r){return r.match(/\[[\s\S]/)?r.replace(/^\[|\]$/g,""):r.replace(/\\/g,"")}function Ne(r){var o=r.match(k),l,f;for(l=0,f=o.length;l<f;l++)F[o[l]]?o[l]=F[o[l]]:o[l]=ie(o[l]);return function(m){var b="",P;for(P=0;P<f;P++)b+=T(o[P])?o[P].call(m,r):o[P];return b}}function ae(r,o){return r.isValid()?(o=De(o,r.localeData()),N[o]=N[o]||Ne(o),N[o](r)):r.localeData().invalidDate()}function De(r,o){var l=5;function f(m){return o.longDateFormat(m)||m}for(I.lastIndex=0;l>=0&&I.test(r);)r=r.replace(I,f),I.lastIndex=0,l-=1;return r}var qe={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function Ve(r){var o=this._longDateFormat[r],l=this._longDateFormat[r.toUpperCase()];return o||!l?o:(this._longDateFormat[r]=l.match(k).map(function(f){return f==="MMMM"||f==="MM"||f==="DD"||f==="dddd"?f.slice(1):f}).join(""),this._longDateFormat[r])}var dt="Invalid date";function Ue(){return this._invalidDate}var Qe="%d",zn=/\d{1,2}/;function Cn(r){return this._ordinal.replace("%d",r)}var Vn={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function wn(r,o,l,f){var m=this._relativeTime[l];return T(m)?m(r,o,l,f):m.replace(/%d/i,r)}function mi(r,o){var l=this._relativeTime[r>0?"future":"past"];return T(l)?l(o):l.replace(/%s/i,o)}var Jt={D:"date",dates:"date",date:"date",d:"day",days:"day",day:"day",e:"weekday",weekdays:"weekday",weekday:"weekday",E:"isoWeekday",isoweekdays:"isoWeekday",isoweekday:"isoWeekday",DDD:"dayOfYear",dayofyears:"dayOfYear",dayofyear:"dayOfYear",h:"hour",hours:"hour",hour:"hour",ms:"millisecond",milliseconds:"millisecond",millisecond:"millisecond",m:"minute",minutes:"minute",minute:"minute",M:"month",months:"month",month:"month",Q:"quarter",quarters:"quarter",quarter:"quarter",s:"second",seconds:"second",second:"second",gg:"weekYear",weekyears:"weekYear",weekyear:"weekYear",GG:"isoWeekYear",isoweekyears:"isoWeekYear",isoweekyear:"isoWeekYear",w:"week",weeks:"week",week:"week",W:"isoWeek",isoweeks:"isoWeek",isoweek:"isoWeek",y:"year",years:"year",year:"year"};function ke(r){return typeof r=="string"?Jt[r]||Jt[r.toLowerCase()]:void 0}function je(r){var o={},l,f;for(f in r)a(r,f)&&(l=ke(f),l&&(o[l]=r[f]));return o}var Mt={date:9,day:11,weekday:11,isoWeekday:11,dayOfYear:4,hour:13,millisecond:16,minute:14,month:8,quarter:7,second:15,weekYear:1,isoWeekYear:1,week:5,isoWeek:5,year:1};function Yn(r){var o=[],l;for(l in r)a(r,l)&&o.push({unit:l,priority:Mt[l]});return o.sort(function(f,m){return f.priority-m.priority}),o}var gi=/\d/,Ie=/\d\d/,Zt=/\d{3}/,xi=/\d{4}/,bn=/[+-]?\d{6}/,be=/\d\d?/,Tt=/\d\d\d\d?/,en=/\d\d\d\d\d\d?/,Un=/\d{1,3}/,Wn=/\d{1,4}/,En=/[+-]?\d{1,6}/,tn=/\d+/,qn=/[+-]?\d+/,rr=/Z|[+-]\d\d:?\d\d/gi,jn=/Z|[+-]\d\d(?::?\d\d)?/gi,sr=/[+-]?\d+(\.\d{1,3})?/,Sn=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,Ft=/^[1-9]\d?/,_i=/^([1-9]\d|\d)/,$n;$n={};function X(r,o,l){$n[r]=T(o)?o:function(f,m){return f&&l?l:o}}function ar(r,o){return a($n,r)?$n[r](o._strict,o._locale):new RegExp(oa(r))}function oa(r){return _t(r.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(o,l,f,m,b){return l||f||m||b}))}function _t(r){return r.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function Xe(r){return r<0?Math.ceil(r)||0:Math.floor(r)}function le(r){var o=+r,l=0;return o!==0&&isFinite(o)&&(l=Xe(o)),l}var Kn={};function oe(r,o){var l,f=o,m;for(typeof r=="string"&&(r=[r]),h(o)&&(f=function(b,P){P[o]=le(b)}),m=r.length,l=0;l<m;l++)Kn[r[l]]=f}function nt(r,o){oe(r,function(l,f,m,b){m._w=m._w||{},o(l,m._w,m,b)})}function or(r,o,l){o!=null&&a(Kn,r)&&Kn[r](o,l._a,l,r)}function Gn(r){return r%4===0&&r%100!==0||r%400===0}var $e=0,Bt=1,At=2,Le=3,yt=4,It=5,Dn=6,Qh=7,Xh=8;$("Y",0,0,function(){var r=this.year();return r<=9999?Y(r,4):"+"+r}),$(0,["YY",2],0,function(){return this.year()%100}),$(0,["YYYY",4],0,"year"),$(0,["YYYYY",5],0,"year"),$(0,["YYYYYY",6,!0],0,"year"),X("Y",qn),X("YY",be,Ie),X("YYYY",Wn,xi),X("YYYYY",En,bn),X("YYYYYY",En,bn),oe(["YYYYY","YYYYYY"],$e),oe("YYYY",function(r,o){o[$e]=r.length===2?e.parseTwoDigitYear(r):le(r)}),oe("YY",function(r,o){o[$e]=e.parseTwoDigitYear(r)}),oe("Y",function(r,o){o[$e]=parseInt(r,10)});function yi(r){return Gn(r)?366:365}e.parseTwoDigitYear=function(r){return le(r)+(le(r)>68?1900:2e3)};var gc=Qn("FullYear",!0);function Jh(){return Gn(this.year())}function Qn(r,o){return function(l){return l!=null?(xc(this,r,l),e.updateOffset(this,o),this):vi(this,r)}}function vi(r,o){if(!r.isValid())return NaN;var l=r._d,f=r._isUTC;switch(o){case"Milliseconds":return f?l.getUTCMilliseconds():l.getMilliseconds();case"Seconds":return f?l.getUTCSeconds():l.getSeconds();case"Minutes":return f?l.getUTCMinutes():l.getMinutes();case"Hours":return f?l.getUTCHours():l.getHours();case"Date":return f?l.getUTCDate():l.getDate();case"Day":return f?l.getUTCDay():l.getDay();case"Month":return f?l.getUTCMonth():l.getMonth();case"FullYear":return f?l.getUTCFullYear():l.getFullYear();default:return NaN}}function xc(r,o,l){var f,m,b,P,Z;if(!(!r.isValid()||isNaN(l))){switch(f=r._d,m=r._isUTC,o){case"Milliseconds":return void(m?f.setUTCMilliseconds(l):f.setMilliseconds(l));case"Seconds":return void(m?f.setUTCSeconds(l):f.setSeconds(l));case"Minutes":return void(m?f.setUTCMinutes(l):f.setMinutes(l));case"Hours":return void(m?f.setUTCHours(l):f.setHours(l));case"Date":return void(m?f.setUTCDate(l):f.setDate(l));case"FullYear":break;default:return}b=l,P=r.month(),Z=r.date(),Z=Z===29&&P===1&&!Gn(b)?28:Z,m?f.setUTCFullYear(b,P,Z):f.setFullYear(b,P,Z)}}function Zh(r){return r=ke(r),T(this[r])?this[r]():this}function eu(r,o){if(typeof r=="object"){r=je(r);var l=Yn(r),f,m=l.length;for(f=0;f<m;f++)this[l[f].unit](r[l[f].unit])}else if(r=ke(r),T(this[r]))return this[r](o);return this}function tu(r,o){return(r%o+o)%o}var Te;Array.prototype.indexOf?Te=Array.prototype.indexOf:Te=function(r){var o;for(o=0;o<this.length;++o)if(this[o]===r)return o;return-1};function ca(r,o){if(isNaN(r)||isNaN(o))return NaN;var l=tu(o,12);return r+=(o-l)/12,l===1?Gn(r)?29:28:31-l%7%2}$("M",["MM",2],"Mo",function(){return this.month()+1}),$("MMM",0,0,function(r){return this.localeData().monthsShort(this,r)}),$("MMMM",0,0,function(r){return this.localeData().months(this,r)}),X("M",be,Ft),X("MM",be,Ie),X("MMM",function(r,o){return o.monthsShortRegex(r)}),X("MMMM",function(r,o){return o.monthsRegex(r)}),oe(["M","MM"],function(r,o){o[Bt]=le(r)-1}),oe(["MMM","MMMM"],function(r,o,l,f){var m=l._locale.monthsParse(r,f,l._strict);m!=null?o[Bt]=m:_(l).invalidMonth=r});var nu="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),_c="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),yc=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,iu=Sn,ru=Sn;function su(r,o){return r?n(this._months)?this._months[r.month()]:this._months[(this._months.isFormat||yc).test(o)?"format":"standalone"][r.month()]:n(this._months)?this._months:this._months.standalone}function au(r,o){return r?n(this._monthsShort)?this._monthsShort[r.month()]:this._monthsShort[yc.test(o)?"format":"standalone"][r.month()]:n(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function ou(r,o,l){var f,m,b,P=r.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],f=0;f<12;++f)b=x([2e3,f]),this._shortMonthsParse[f]=this.monthsShort(b,"").toLocaleLowerCase(),this._longMonthsParse[f]=this.months(b,"").toLocaleLowerCase();return l?o==="MMM"?(m=Te.call(this._shortMonthsParse,P),m!==-1?m:null):(m=Te.call(this._longMonthsParse,P),m!==-1?m:null):o==="MMM"?(m=Te.call(this._shortMonthsParse,P),m!==-1?m:(m=Te.call(this._longMonthsParse,P),m!==-1?m:null)):(m=Te.call(this._longMonthsParse,P),m!==-1?m:(m=Te.call(this._shortMonthsParse,P),m!==-1?m:null))}function cu(r,o,l){var f,m,b;if(this._monthsParseExact)return ou.call(this,r,o,l);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),f=0;f<12;f++){if(m=x([2e3,f]),l&&!this._longMonthsParse[f]&&(this._longMonthsParse[f]=new RegExp("^"+this.months(m,"").replace(".","")+"$","i"),this._shortMonthsParse[f]=new RegExp("^"+this.monthsShort(m,"").replace(".","")+"$","i")),!l&&!this._monthsParse[f]&&(b="^"+this.months(m,"")+"|^"+this.monthsShort(m,""),this._monthsParse[f]=new RegExp(b.replace(".",""),"i")),l&&o==="MMMM"&&this._longMonthsParse[f].test(r))return f;if(l&&o==="MMM"&&this._shortMonthsParse[f].test(r))return f;if(!l&&this._monthsParse[f].test(r))return f}}function vc(r,o){if(!r.isValid())return r;if(typeof o=="string"){if(/^\d+$/.test(o))o=le(o);else if(o=r.localeData().monthsParse(o),!h(o))return r}var l=o,f=r.date();return f=f<29?f:Math.min(f,ca(r.year(),l)),r._isUTC?r._d.setUTCMonth(l,f):r._d.setMonth(l,f),r}function Cc(r){return r!=null?(vc(this,r),e.updateOffset(this,!0),this):vi(this,"Month")}function lu(){return ca(this.year(),this.month())}function du(r){return this._monthsParseExact?(a(this,"_monthsRegex")||wc.call(this),r?this._monthsShortStrictRegex:this._monthsShortRegex):(a(this,"_monthsShortRegex")||(this._monthsShortRegex=iu),this._monthsShortStrictRegex&&r?this._monthsShortStrictRegex:this._monthsShortRegex)}function fu(r){return this._monthsParseExact?(a(this,"_monthsRegex")||wc.call(this),r?this._monthsStrictRegex:this._monthsRegex):(a(this,"_monthsRegex")||(this._monthsRegex=ru),this._monthsStrictRegex&&r?this._monthsStrictRegex:this._monthsRegex)}function wc(){function r(se,me){return me.length-se.length}var o=[],l=[],f=[],m,b,P,Z;for(m=0;m<12;m++)b=x([2e3,m]),P=_t(this.monthsShort(b,"")),Z=_t(this.months(b,"")),o.push(P),l.push(Z),f.push(Z),f.push(P);o.sort(r),l.sort(r),f.sort(r),this._monthsRegex=new RegExp("^("+f.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+l.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+o.join("|")+")","i")}function hu(r,o,l,f,m,b,P){var Z;return r<100&&r>=0?(Z=new Date(r+400,o,l,f,m,b,P),isFinite(Z.getFullYear())&&Z.setFullYear(r)):Z=new Date(r,o,l,f,m,b,P),Z}function Ci(r){var o,l;return r<100&&r>=0?(l=Array.prototype.slice.call(arguments),l[0]=r+400,o=new Date(Date.UTC.apply(null,l)),isFinite(o.getUTCFullYear())&&o.setUTCFullYear(r)):o=new Date(Date.UTC.apply(null,arguments)),o}function cr(r,o,l){var f=7+o-l,m=(7+Ci(r,0,f).getUTCDay()-o)%7;return-m+f-1}function bc(r,o,l,f,m){var b=(7+l-f)%7,P=cr(r,f,m),Z=1+7*(o-1)+b+P,se,me;return Z<=0?(se=r-1,me=yi(se)+Z):Z>yi(r)?(se=r+1,me=Z-yi(r)):(se=r,me=Z),{year:se,dayOfYear:me}}function wi(r,o,l){var f=cr(r.year(),o,l),m=Math.floor((r.dayOfYear()-f-1)/7)+1,b,P;return m<1?(P=r.year()-1,b=m+Rt(P,o,l)):m>Rt(r.year(),o,l)?(b=m-Rt(r.year(),o,l),P=r.year()+1):(P=r.year(),b=m),{week:b,year:P}}function Rt(r,o,l){var f=cr(r,o,l),m=cr(r+1,o,l);return(yi(r)-f+m)/7}$("w",["ww",2],"wo","week"),$("W",["WW",2],"Wo","isoWeek"),X("w",be,Ft),X("ww",be,Ie),X("W",be,Ft),X("WW",be,Ie),nt(["w","ww","W","WW"],function(r,o,l,f){o[f.substr(0,1)]=le(r)});function uu(r){return wi(r,this._week.dow,this._week.doy).week}var pu={dow:0,doy:6};function mu(){return this._week.dow}function gu(){return this._week.doy}function xu(r){var o=this.localeData().week(this);return r==null?o:this.add((r-o)*7,"d")}function _u(r){var o=wi(this,1,4).week;return r==null?o:this.add((r-o)*7,"d")}$("d",0,"do","day"),$("dd",0,0,function(r){return this.localeData().weekdaysMin(this,r)}),$("ddd",0,0,function(r){return this.localeData().weekdaysShort(this,r)}),$("dddd",0,0,function(r){return this.localeData().weekdays(this,r)}),$("e",0,0,"weekday"),$("E",0,0,"isoWeekday"),X("d",be),X("e",be),X("E",be),X("dd",function(r,o){return o.weekdaysMinRegex(r)}),X("ddd",function(r,o){return o.weekdaysShortRegex(r)}),X("dddd",function(r,o){return o.weekdaysRegex(r)}),nt(["dd","ddd","dddd"],function(r,o,l,f){var m=l._locale.weekdaysParse(r,f,l._strict);m!=null?o.d=m:_(l).invalidWeekday=r}),nt(["d","e","E"],function(r,o,l,f){o[f]=le(r)});function yu(r,o){return typeof r!="string"?r:isNaN(r)?(r=o.weekdaysParse(r),typeof r=="number"?r:null):parseInt(r,10)}function vu(r,o){return typeof r=="string"?o.weekdaysParse(r)%7||7:isNaN(r)?null:r}function la(r,o){return r.slice(o,7).concat(r.slice(0,o))}var Cu="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Ec="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),wu="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),bu=Sn,Eu=Sn,Su=Sn;function Du(r,o){var l=n(this._weekdays)?this._weekdays:this._weekdays[r&&r!==!0&&this._weekdays.isFormat.test(o)?"format":"standalone"];return r===!0?la(l,this._week.dow):r?l[r.day()]:l}function Mu(r){return r===!0?la(this._weekdaysShort,this._week.dow):r?this._weekdaysShort[r.day()]:this._weekdaysShort}function Au(r){return r===!0?la(this._weekdaysMin,this._week.dow):r?this._weekdaysMin[r.day()]:this._weekdaysMin}function ku(r,o,l){var f,m,b,P=r.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],f=0;f<7;++f)b=x([2e3,1]).day(f),this._minWeekdaysParse[f]=this.weekdaysMin(b,"").toLocaleLowerCase(),this._shortWeekdaysParse[f]=this.weekdaysShort(b,"").toLocaleLowerCase(),this._weekdaysParse[f]=this.weekdays(b,"").toLocaleLowerCase();return l?o==="dddd"?(m=Te.call(this._weekdaysParse,P),m!==-1?m:null):o==="ddd"?(m=Te.call(this._shortWeekdaysParse,P),m!==-1?m:null):(m=Te.call(this._minWeekdaysParse,P),m!==-1?m:null):o==="dddd"?(m=Te.call(this._weekdaysParse,P),m!==-1||(m=Te.call(this._shortWeekdaysParse,P),m!==-1)?m:(m=Te.call(this._minWeekdaysParse,P),m!==-1?m:null)):o==="ddd"?(m=Te.call(this._shortWeekdaysParse,P),m!==-1||(m=Te.call(this._weekdaysParse,P),m!==-1)?m:(m=Te.call(this._minWeekdaysParse,P),m!==-1?m:null)):(m=Te.call(this._minWeekdaysParse,P),m!==-1||(m=Te.call(this._weekdaysParse,P),m!==-1)?m:(m=Te.call(this._shortWeekdaysParse,P),m!==-1?m:null))}function Pu(r,o,l){var f,m,b;if(this._weekdaysParseExact)return ku.call(this,r,o,l);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),f=0;f<7;f++){if(m=x([2e3,1]).day(f),l&&!this._fullWeekdaysParse[f]&&(this._fullWeekdaysParse[f]=new RegExp("^"+this.weekdays(m,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[f]=new RegExp("^"+this.weekdaysShort(m,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[f]=new RegExp("^"+this.weekdaysMin(m,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[f]||(b="^"+this.weekdays(m,"")+"|^"+this.weekdaysShort(m,"")+"|^"+this.weekdaysMin(m,""),this._weekdaysParse[f]=new RegExp(b.replace(".",""),"i")),l&&o==="dddd"&&this._fullWeekdaysParse[f].test(r))return f;if(l&&o==="ddd"&&this._shortWeekdaysParse[f].test(r))return f;if(l&&o==="dd"&&this._minWeekdaysParse[f].test(r))return f;if(!l&&this._weekdaysParse[f].test(r))return f}}function Ou(r){if(!this.isValid())return r!=null?this:NaN;var o=vi(this,"Day");return r!=null?(r=yu(r,this.localeData()),this.add(r-o,"d")):o}function Tu(r){if(!this.isValid())return r!=null?this:NaN;var o=(this.day()+7-this.localeData()._week.dow)%7;return r==null?o:this.add(r-o,"d")}function Fu(r){if(!this.isValid())return r!=null?this:NaN;if(r!=null){var o=vu(r,this.localeData());return this.day(this.day()%7?o:o-7)}else return this.day()||7}function Bu(r){return this._weekdaysParseExact?(a(this,"_weekdaysRegex")||da.call(this),r?this._weekdaysStrictRegex:this._weekdaysRegex):(a(this,"_weekdaysRegex")||(this._weekdaysRegex=bu),this._weekdaysStrictRegex&&r?this._weekdaysStrictRegex:this._weekdaysRegex)}function Iu(r){return this._weekdaysParseExact?(a(this,"_weekdaysRegex")||da.call(this),r?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(a(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Eu),this._weekdaysShortStrictRegex&&r?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function Ru(r){return this._weekdaysParseExact?(a(this,"_weekdaysRegex")||da.call(this),r?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(a(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Su),this._weekdaysMinStrictRegex&&r?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function da(){function r(Je,Vt){return Vt.length-Je.length}var o=[],l=[],f=[],m=[],b,P,Z,se,me;for(b=0;b<7;b++)P=x([2e3,1]).day(b),Z=_t(this.weekdaysMin(P,"")),se=_t(this.weekdaysShort(P,"")),me=_t(this.weekdays(P,"")),o.push(Z),l.push(se),f.push(me),m.push(Z),m.push(se),m.push(me);o.sort(r),l.sort(r),f.sort(r),m.sort(r),this._weekdaysRegex=new RegExp("^("+m.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+f.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+o.join("|")+")","i")}function fa(){return this.hours()%12||12}function Nu(){return this.hours()||24}$("H",["HH",2],0,"hour"),$("h",["hh",2],0,fa),$("k",["kk",2],0,Nu),$("hmm",0,0,function(){return""+fa.apply(this)+Y(this.minutes(),2)}),$("hmmss",0,0,function(){return""+fa.apply(this)+Y(this.minutes(),2)+Y(this.seconds(),2)}),$("Hmm",0,0,function(){return""+this.hours()+Y(this.minutes(),2)}),$("Hmmss",0,0,function(){return""+this.hours()+Y(this.minutes(),2)+Y(this.seconds(),2)});function Sc(r,o){$(r,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),o)})}Sc("a",!0),Sc("A",!1);function Dc(r,o){return o._meridiemParse}X("a",Dc),X("A",Dc),X("H",be,_i),X("h",be,Ft),X("k",be,Ft),X("HH",be,Ie),X("hh",be,Ie),X("kk",be,Ie),X("hmm",Tt),X("hmmss",en),X("Hmm",Tt),X("Hmmss",en),oe(["H","HH"],Le),oe(["k","kk"],function(r,o,l){var f=le(r);o[Le]=f===24?0:f}),oe(["a","A"],function(r,o,l){l._isPm=l._locale.isPM(r),l._meridiem=r}),oe(["h","hh"],function(r,o,l){o[Le]=le(r),_(l).bigHour=!0}),oe("hmm",function(r,o,l){var f=r.length-2;o[Le]=le(r.substr(0,f)),o[yt]=le(r.substr(f)),_(l).bigHour=!0}),oe("hmmss",function(r,o,l){var f=r.length-4,m=r.length-2;o[Le]=le(r.substr(0,f)),o[yt]=le(r.substr(f,2)),o[It]=le(r.substr(m)),_(l).bigHour=!0}),oe("Hmm",function(r,o,l){var f=r.length-2;o[Le]=le(r.substr(0,f)),o[yt]=le(r.substr(f))}),oe("Hmmss",function(r,o,l){var f=r.length-4,m=r.length-2;o[Le]=le(r.substr(0,f)),o[yt]=le(r.substr(f,2)),o[It]=le(r.substr(m))});function Lu(r){return(r+"").toLowerCase().charAt(0)==="p"}var Hu=/[ap]\.?m?\.?/i,zu=Qn("Hours",!0);function Vu(r,o,l){return r>11?l?"pm":"PM":l?"am":"AM"}var Mc={calendar:B,longDateFormat:qe,invalidDate:dt,ordinal:Qe,dayOfMonthOrdinalParse:zn,relativeTime:Vn,months:nu,monthsShort:_c,week:pu,weekdays:Cu,weekdaysMin:wu,weekdaysShort:Ec,meridiemParse:Hu},Pe={},bi={},Ei;function Yu(r,o){var l,f=Math.min(r.length,o.length);for(l=0;l<f;l+=1)if(r[l]!==o[l])return l;return f}function Ac(r){return r&&r.toLowerCase().replace("_","-")}function Uu(r){for(var o=0,l,f,m,b;o<r.length;){for(b=Ac(r[o]).split("-"),l=b.length,f=Ac(r[o+1]),f=f?f.split("-"):null;l>0;){if(m=lr(b.slice(0,l).join("-")),m)return m;if(f&&f.length>=l&&Yu(b,f)>=l-1)break;l--}o++}return Ei}function Wu(r){return!!(r&&r.match("^[^/\\\\]*$"))}function lr(r){var o=null,l;if(Pe[r]===void 0&&typeof oi<"u"&&oi&&oi.exports&&Wu(r))try{o=Ei._abbr,l=yr,l("./locale/"+r),nn(o)}catch{Pe[r]=null}return Pe[r]}function nn(r,o){var l;return r&&(c(o)?l=Nt(r):l=ha(r,o),l?Ei=l:typeof console<"u"&&console.warn&&console.warn("Locale "+r+" not found. Did you forget to load it?")),Ei._abbr}function ha(r,o){if(o!==null){var l,f=Mc;if(o.abbr=r,Pe[r]!=null)K("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),f=Pe[r]._config;else if(o.parentLocale!=null)if(Pe[o.parentLocale]!=null)f=Pe[o.parentLocale]._config;else if(l=lr(o.parentLocale),l!=null)f=l._config;else return bi[o.parentLocale]||(bi[o.parentLocale]=[]),bi[o.parentLocale].push({name:r,config:o}),null;return Pe[r]=new H(G(f,o)),bi[r]&&bi[r].forEach(function(m){ha(m.name,m.config)}),nn(r),Pe[r]}else return delete Pe[r],null}function qu(r,o){if(o!=null){var l,f,m=Mc;Pe[r]!=null&&Pe[r].parentLocale!=null?Pe[r].set(G(Pe[r]._config,o)):(f=lr(r),f!=null&&(m=f._config),o=G(m,o),f==null&&(o.abbr=r),l=new H(o),l.parentLocale=Pe[r],Pe[r]=l),nn(r)}else Pe[r]!=null&&(Pe[r].parentLocale!=null?(Pe[r]=Pe[r].parentLocale,r===nn()&&nn(r)):Pe[r]!=null&&delete Pe[r]);return Pe[r]}function Nt(r){var o;if(r&&r._locale&&r._locale._abbr&&(r=r._locale._abbr),!r)return Ei;if(!n(r)){if(o=lr(r),o)return o;r=[r]}return Uu(r)}function ju(){return te(Pe)}function ua(r){var o,l=r._a;return l&&_(r).overflow===-2&&(o=l[Bt]<0||l[Bt]>11?Bt:l[At]<1||l[At]>ca(l[$e],l[Bt])?At:l[Le]<0||l[Le]>24||l[Le]===24&&(l[yt]!==0||l[It]!==0||l[Dn]!==0)?Le:l[yt]<0||l[yt]>59?yt:l[It]<0||l[It]>59?It:l[Dn]<0||l[Dn]>999?Dn:-1,_(r)._overflowDayOfYear&&(o<$e||o>At)&&(o=At),_(r)._overflowWeeks&&o===-1&&(o=Qh),_(r)._overflowWeekday&&o===-1&&(o=Xh),_(r).overflow=o),r}var $u=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Ku=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Gu=/Z|[+-]\d\d(?::?\d\d)?/,dr=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],pa=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],Qu=/^\/?Date\((-?\d+)/i,Xu=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,Ju={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function kc(r){var o,l,f=r._i,m=$u.exec(f)||Ku.exec(f),b,P,Z,se,me=dr.length,Je=pa.length;if(m){for(_(r).iso=!0,o=0,l=me;o<l;o++)if(dr[o][1].exec(m[1])){P=dr[o][0],b=dr[o][2]!==!1;break}if(P==null){r._isValid=!1;return}if(m[3]){for(o=0,l=Je;o<l;o++)if(pa[o][1].exec(m[3])){Z=(m[2]||" ")+pa[o][0];break}if(Z==null){r._isValid=!1;return}}if(!b&&Z!=null){r._isValid=!1;return}if(m[4])if(Gu.exec(m[4]))se="Z";else{r._isValid=!1;return}r._f=P+(Z||"")+(se||""),ga(r)}else r._isValid=!1}function Zu(r,o,l,f,m,b){var P=[ep(r),_c.indexOf(o),parseInt(l,10),parseInt(f,10),parseInt(m,10)];return b&&P.push(parseInt(b,10)),P}function ep(r){var o=parseInt(r,10);return o<=49?2e3+o:o<=999?1900+o:o}function tp(r){return r.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function np(r,o,l){if(r){var f=Ec.indexOf(r),m=new Date(o[0],o[1],o[2]).getDay();if(f!==m)return _(l).weekdayMismatch=!0,l._isValid=!1,!1}return!0}function ip(r,o,l){if(r)return Ju[r];if(o)return 0;var f=parseInt(l,10),m=f%100,b=(f-m)/100;return b*60+m}function Pc(r){var o=Xu.exec(tp(r._i)),l;if(o){if(l=Zu(o[4],o[3],o[2],o[5],o[6],o[7]),!np(o[1],l,r))return;r._a=l,r._tzm=ip(o[8],o[9],o[10]),r._d=Ci.apply(null,r._a),r._d.setUTCMinutes(r._d.getUTCMinutes()-r._tzm),_(r).rfc2822=!0}else r._isValid=!1}function rp(r){var o=Qu.exec(r._i);if(o!==null){r._d=new Date(+o[1]);return}if(kc(r),r._isValid===!1)delete r._isValid;else return;if(Pc(r),r._isValid===!1)delete r._isValid;else return;r._strict?r._isValid=!1:e.createFromInputFallback(r)}e.createFromInputFallback=R("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(r){r._d=new Date(r._i+(r._useUTC?" UTC":""))});function Xn(r,o,l){return r??o??l}function sp(r){var o=new Date(e.now());return r._useUTC?[o.getUTCFullYear(),o.getUTCMonth(),o.getUTCDate()]:[o.getFullYear(),o.getMonth(),o.getDate()]}function ma(r){var o,l,f=[],m,b,P;if(!r._d){for(m=sp(r),r._w&&r._a[At]==null&&r._a[Bt]==null&&ap(r),r._dayOfYear!=null&&(P=Xn(r._a[$e],m[$e]),(r._dayOfYear>yi(P)||r._dayOfYear===0)&&(_(r)._overflowDayOfYear=!0),l=Ci(P,0,r._dayOfYear),r._a[Bt]=l.getUTCMonth(),r._a[At]=l.getUTCDate()),o=0;o<3&&r._a[o]==null;++o)r._a[o]=f[o]=m[o];for(;o<7;o++)r._a[o]=f[o]=r._a[o]==null?o===2?1:0:r._a[o];r._a[Le]===24&&r._a[yt]===0&&r._a[It]===0&&r._a[Dn]===0&&(r._nextDay=!0,r._a[Le]=0),r._d=(r._useUTC?Ci:hu).apply(null,f),b=r._useUTC?r._d.getUTCDay():r._d.getDay(),r._tzm!=null&&r._d.setUTCMinutes(r._d.getUTCMinutes()-r._tzm),r._nextDay&&(r._a[Le]=24),r._w&&typeof r._w.d<"u"&&r._w.d!==b&&(_(r).weekdayMismatch=!0)}}function ap(r){var o,l,f,m,b,P,Z,se,me;o=r._w,o.GG!=null||o.W!=null||o.E!=null?(b=1,P=4,l=Xn(o.GG,r._a[$e],wi(Me(),1,4).year),f=Xn(o.W,1),m=Xn(o.E,1),(m<1||m>7)&&(se=!0)):(b=r._locale._week.dow,P=r._locale._week.doy,me=wi(Me(),b,P),l=Xn(o.gg,r._a[$e],me.year),f=Xn(o.w,me.week),o.d!=null?(m=o.d,(m<0||m>6)&&(se=!0)):o.e!=null?(m=o.e+b,(o.e<0||o.e>6)&&(se=!0)):m=b),f<1||f>Rt(l,b,P)?_(r)._overflowWeeks=!0:se!=null?_(r)._overflowWeekday=!0:(Z=bc(l,f,m,b,P),r._a[$e]=Z.year,r._dayOfYear=Z.dayOfYear)}e.ISO_8601=function(){},e.RFC_2822=function(){};function ga(r){if(r._f===e.ISO_8601){kc(r);return}if(r._f===e.RFC_2822){Pc(r);return}r._a=[],_(r).empty=!0;var o=""+r._i,l,f,m,b,P,Z=o.length,se=0,me,Je;for(m=De(r._f,r._locale).match(k)||[],Je=m.length,l=0;l<Je;l++)b=m[l],f=(o.match(ar(b,r))||[])[0],f&&(P=o.substr(0,o.indexOf(f)),P.length>0&&_(r).unusedInput.push(P),o=o.slice(o.indexOf(f)+f.length),se+=f.length),F[b]?(f?_(r).empty=!1:_(r).unusedTokens.push(b),or(b,f,r)):r._strict&&!f&&_(r).unusedTokens.push(b);_(r).charsLeftOver=Z-se,o.length>0&&_(r).unusedInput.push(o),r._a[Le]<=12&&_(r).bigHour===!0&&r._a[Le]>0&&(_(r).bigHour=void 0),_(r).parsedDateParts=r._a.slice(0),_(r).meridiem=r._meridiem,r._a[Le]=op(r._locale,r._a[Le],r._meridiem),me=_(r).era,me!==null&&(r._a[$e]=r._locale.erasConvertYear(me,r._a[$e])),ma(r),ua(r)}function op(r,o,l){var f;return l==null?o:r.meridiemHour!=null?r.meridiemHour(o,l):(r.isPM!=null&&(f=r.isPM(l),f&&o<12&&(o+=12),!f&&o===12&&(o=0)),o)}function cp(r){var o,l,f,m,b,P,Z=!1,se=r._f.length;if(se===0){_(r).invalidFormat=!0,r._d=new Date(NaN);return}for(m=0;m<se;m++)b=0,P=!1,o=S({},r),r._useUTC!=null&&(o._useUTC=r._useUTC),o._f=r._f[m],ga(o),E(o)&&(P=!0),b+=_(o).charsLeftOver,b+=_(o).unusedTokens.length*10,_(o).score=b,Z?b<f&&(f=b,l=o):(f==null||b<f||P)&&(f=b,l=o,P&&(Z=!0));g(r,l||o)}function lp(r){if(!r._d){var o=je(r._i),l=o.day===void 0?o.date:o.day;r._a=p([o.year,o.month,l,o.hour,o.minute,o.second,o.millisecond],function(f){return f&&parseInt(f,10)}),ma(r)}}function dp(r){var o=new A(ua(Oc(r)));return o._nextDay&&(o.add(1,"d"),o._nextDay=void 0),o}function Oc(r){var o=r._i,l=r._f;return r._locale=r._locale||Nt(r._l),o===null||l===void 0&&o===""?y({nullInput:!0}):(typeof o=="string"&&(r._i=o=r._locale.preparse(o)),M(o)?new A(ua(o)):(u(o)?r._d=o:n(l)?cp(r):l?ga(r):fp(r),E(r)||(r._d=null),r))}function fp(r){var o=r._i;c(o)?r._d=new Date(e.now()):u(o)?r._d=new Date(o.valueOf()):typeof o=="string"?rp(r):n(o)?(r._a=p(o.slice(0),function(l){return parseInt(l,10)}),ma(r)):s(o)?lp(r):h(o)?r._d=new Date(o):e.createFromInputFallback(r)}function Tc(r,o,l,f,m){var b={};return(o===!0||o===!1)&&(f=o,o=void 0),(l===!0||l===!1)&&(f=l,l=void 0),(s(r)&&d(r)||n(r)&&r.length===0)&&(r=void 0),b._isAMomentObject=!0,b._useUTC=b._isUTC=m,b._l=l,b._i=r,b._f=o,b._strict=f,dp(b)}function Me(r,o,l,f){return Tc(r,o,l,f,!1)}var hp=R("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var r=Me.apply(null,arguments);return this.isValid()&&r.isValid()?r<this?this:r:y()}),up=R("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var r=Me.apply(null,arguments);return this.isValid()&&r.isValid()?r>this?this:r:y()});function Fc(r,o){var l,f;if(o.length===1&&n(o[0])&&(o=o[0]),!o.length)return Me();for(l=o[0],f=1;f<o.length;++f)(!o[f].isValid()||o[f][r](l))&&(l=o[f]);return l}function pp(){var r=[].slice.call(arguments,0);return Fc("isBefore",r)}function mp(){var r=[].slice.call(arguments,0);return Fc("isAfter",r)}var gp=function(){return Date.now?Date.now():+new Date},Si=["year","quarter","month","week","day","hour","minute","second","millisecond"];function xp(r){var o,l=!1,f,m=Si.length;for(o in r)if(a(r,o)&&!(Te.call(Si,o)!==-1&&(r[o]==null||!isNaN(r[o]))))return!1;for(f=0;f<m;++f)if(r[Si[f]]){if(l)return!1;parseFloat(r[Si[f]])!==le(r[Si[f]])&&(l=!0)}return!0}function _p(){return this._isValid}function yp(){return vt(NaN)}function fr(r){var o=je(r),l=o.year||0,f=o.quarter||0,m=o.month||0,b=o.week||o.isoWeek||0,P=o.day||0,Z=o.hour||0,se=o.minute||0,me=o.second||0,Je=o.millisecond||0;this._isValid=xp(o),this._milliseconds=+Je+me*1e3+se*6e4+Z*1e3*60*60,this._days=+P+b*7,this._months=+m+f*3+l*12,this._data={},this._locale=Nt(),this._bubble()}function hr(r){return r instanceof fr}function xa(r){return r<0?Math.round(-1*r)*-1:Math.round(r)}function vp(r,o,l){var f=Math.min(r.length,o.length),m=Math.abs(r.length-o.length),b=0,P;for(P=0;P<f;P++)(l&&r[P]!==o[P]||!l&&le(r[P])!==le(o[P]))&&b++;return b+m}function Bc(r,o){$(r,0,0,function(){var l=this.utcOffset(),f="+";return l<0&&(l=-l,f="-"),f+Y(~~(l/60),2)+o+Y(~~l%60,2)})}Bc("Z",":"),Bc("ZZ",""),X("Z",jn),X("ZZ",jn),oe(["Z","ZZ"],function(r,o,l){l._useUTC=!0,l._tzm=_a(jn,r)});var Cp=/([\+\-]|\d\d)/gi;function _a(r,o){var l=(o||"").match(r),f,m,b;return l===null?null:(f=l[l.length-1]||[],m=(f+"").match(Cp)||["-",0,0],b=+(m[1]*60)+le(m[2]),b===0?0:m[0]==="+"?b:-b)}function ya(r,o){var l,f;return o._isUTC?(l=o.clone(),f=(M(r)||u(r)?r.valueOf():Me(r).valueOf())-l.valueOf(),l._d.setTime(l._d.valueOf()+f),e.updateOffset(l,!1),l):Me(r).local()}function va(r){return-Math.round(r._d.getTimezoneOffset())}e.updateOffset=function(){};function wp(r,o,l){var f=this._offset||0,m;if(!this.isValid())return r!=null?this:NaN;if(r!=null){if(typeof r=="string"){if(r=_a(jn,r),r===null)return this}else Math.abs(r)<16&&!l&&(r=r*60);return!this._isUTC&&o&&(m=va(this)),this._offset=r,this._isUTC=!0,m!=null&&this.add(m,"m"),f!==r&&(!o||this._changeInProgress?Lc(this,vt(r-f,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,e.updateOffset(this,!0),this._changeInProgress=null)),this}else return this._isUTC?f:va(this)}function bp(r,o){return r!=null?(typeof r!="string"&&(r=-r),this.utcOffset(r,o),this):-this.utcOffset()}function Ep(r){return this.utcOffset(0,r)}function Sp(r){return this._isUTC&&(this.utcOffset(0,r),this._isUTC=!1,r&&this.subtract(va(this),"m")),this}function Dp(){if(this._tzm!=null)this.utcOffset(this._tzm,!1,!0);else if(typeof this._i=="string"){var r=_a(rr,this._i);r!=null?this.utcOffset(r):this.utcOffset(0,!0)}return this}function Mp(r){return this.isValid()?(r=r?Me(r).utcOffset():0,(this.utcOffset()-r)%60===0):!1}function Ap(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function kp(){if(!c(this._isDSTShifted))return this._isDSTShifted;var r={},o;return S(r,this),r=Oc(r),r._a?(o=r._isUTC?x(r._a):Me(r._a),this._isDSTShifted=this.isValid()&&vp(r._a,o.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function Pp(){return this.isValid()?!this._isUTC:!1}function Op(){return this.isValid()?this._isUTC:!1}function Ic(){return this.isValid()?this._isUTC&&this._offset===0:!1}var Tp=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Fp=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function vt(r,o){var l=r,f=null,m,b,P;return hr(r)?l={ms:r._milliseconds,d:r._days,M:r._months}:h(r)||!isNaN(+r)?(l={},o?l[o]=+r:l.milliseconds=+r):(f=Tp.exec(r))?(m=f[1]==="-"?-1:1,l={y:0,d:le(f[At])*m,h:le(f[Le])*m,m:le(f[yt])*m,s:le(f[It])*m,ms:le(xa(f[Dn]*1e3))*m}):(f=Fp.exec(r))?(m=f[1]==="-"?-1:1,l={y:Mn(f[2],m),M:Mn(f[3],m),w:Mn(f[4],m),d:Mn(f[5],m),h:Mn(f[6],m),m:Mn(f[7],m),s:Mn(f[8],m)}):l==null?l={}:typeof l=="object"&&("from"in l||"to"in l)&&(P=Bp(Me(l.from),Me(l.to)),l={},l.ms=P.milliseconds,l.M=P.months),b=new fr(l),hr(r)&&a(r,"_locale")&&(b._locale=r._locale),hr(r)&&a(r,"_isValid")&&(b._isValid=r._isValid),b}vt.fn=fr.prototype,vt.invalid=yp;function Mn(r,o){var l=r&&parseFloat(r.replace(",","."));return(isNaN(l)?0:l)*o}function Rc(r,o){var l={};return l.months=o.month()-r.month()+(o.year()-r.year())*12,r.clone().add(l.months,"M").isAfter(o)&&--l.months,l.milliseconds=+o-+r.clone().add(l.months,"M"),l}function Bp(r,o){var l;return r.isValid()&&o.isValid()?(o=ya(o,r),r.isBefore(o)?l=Rc(r,o):(l=Rc(o,r),l.milliseconds=-l.milliseconds,l.months=-l.months),l):{milliseconds:0,months:0}}function Nc(r,o){return function(l,f){var m,b;return f!==null&&!isNaN(+f)&&(K(o,"moment()."+o+"(period, number) is deprecated. Please use moment()."+o+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),b=l,l=f,f=b),m=vt(l,f),Lc(this,m,r),this}}function Lc(r,o,l,f){var m=o._milliseconds,b=xa(o._days),P=xa(o._months);r.isValid()&&(f=f??!0,P&&vc(r,vi(r,"Month")+P*l),b&&xc(r,"Date",vi(r,"Date")+b*l),m&&r._d.setTime(r._d.valueOf()+m*l),f&&e.updateOffset(r,b||P))}var Ip=Nc(1,"add"),Rp=Nc(-1,"subtract");function Hc(r){return typeof r=="string"||r instanceof String}function Np(r){return M(r)||u(r)||Hc(r)||h(r)||Hp(r)||Lp(r)||r===null||r===void 0}function Lp(r){var o=s(r)&&!d(r),l=!1,f=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],m,b,P=f.length;for(m=0;m<P;m+=1)b=f[m],l=l||a(r,b);return o&&l}function Hp(r){var o=n(r),l=!1;return o&&(l=r.filter(function(f){return!h(f)&&Hc(r)}).length===0),o&&l}function zp(r){var o=s(r)&&!d(r),l=!1,f=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"],m,b;for(m=0;m<f.length;m+=1)b=f[m],l=l||a(r,b);return o&&l}function Vp(r,o){var l=r.diff(o,"days",!0);return l<-6?"sameElse":l<-1?"lastWeek":l<0?"lastDay":l<1?"sameDay":l<2?"nextDay":l<7?"nextWeek":"sameElse"}function Yp(r,o){arguments.length===1&&(arguments[0]?Np(arguments[0])?(r=arguments[0],o=void 0):zp(arguments[0])&&(o=arguments[0],r=void 0):(r=void 0,o=void 0));var l=r||Me(),f=ya(l,this).startOf("day"),m=e.calendarFormat(this,f)||"sameElse",b=o&&(T(o[m])?o[m].call(this,l):o[m]);return this.format(b||this.localeData().calendar(m,this,Me(l)))}function Up(){return new A(this)}function Wp(r,o){var l=M(r)?r:Me(r);return this.isValid()&&l.isValid()?(o=ke(o)||"millisecond",o==="millisecond"?this.valueOf()>l.valueOf():l.valueOf()<this.clone().startOf(o).valueOf()):!1}function qp(r,o){var l=M(r)?r:Me(r);return this.isValid()&&l.isValid()?(o=ke(o)||"millisecond",o==="millisecond"?this.valueOf()<l.valueOf():this.clone().endOf(o).valueOf()<l.valueOf()):!1}function jp(r,o,l,f){var m=M(r)?r:Me(r),b=M(o)?o:Me(o);return this.isValid()&&m.isValid()&&b.isValid()?(f=f||"()",(f[0]==="("?this.isAfter(m,l):!this.isBefore(m,l))&&(f[1]===")"?this.isBefore(b,l):!this.isAfter(b,l))):!1}function $p(r,o){var l=M(r)?r:Me(r),f;return this.isValid()&&l.isValid()?(o=ke(o)||"millisecond",o==="millisecond"?this.valueOf()===l.valueOf():(f=l.valueOf(),this.clone().startOf(o).valueOf()<=f&&f<=this.clone().endOf(o).valueOf())):!1}function Kp(r,o){return this.isSame(r,o)||this.isAfter(r,o)}function Gp(r,o){return this.isSame(r,o)||this.isBefore(r,o)}function Qp(r,o,l){var f,m,b;if(!this.isValid())return NaN;if(f=ya(r,this),!f.isValid())return NaN;switch(m=(f.utcOffset()-this.utcOffset())*6e4,o=ke(o),o){case"year":b=ur(this,f)/12;break;case"month":b=ur(this,f);break;case"quarter":b=ur(this,f)/3;break;case"second":b=(this-f)/1e3;break;case"minute":b=(this-f)/6e4;break;case"hour":b=(this-f)/36e5;break;case"day":b=(this-f-m)/864e5;break;case"week":b=(this-f-m)/6048e5;break;default:b=this-f}return l?b:Xe(b)}function ur(r,o){if(r.date()<o.date())return-ur(o,r);var l=(o.year()-r.year())*12+(o.month()-r.month()),f=r.clone().add(l,"months"),m,b;return o-f<0?(m=r.clone().add(l-1,"months"),b=(o-f)/(f-m)):(m=r.clone().add(l+1,"months"),b=(o-f)/(m-f)),-(l+b)||0}e.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",e.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";function Xp(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function Jp(r){if(!this.isValid())return null;var o=r!==!0,l=o?this.clone().utc():this;return l.year()<0||l.year()>9999?ae(l,o?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):T(Date.prototype.toISOString)?o?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",ae(l,"Z")):ae(l,o?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function Zp(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var r="moment",o="",l,f,m,b;return this.isLocal()||(r=this.utcOffset()===0?"moment.utc":"moment.parseZone",o="Z"),l="["+r+'("]',f=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",m="-MM-DD[T]HH:mm:ss.SSS",b=o+'[")]',this.format(l+f+m+b)}function em(r){r||(r=this.isUtc()?e.defaultFormatUtc:e.defaultFormat);var o=ae(this,r);return this.localeData().postformat(o)}function tm(r,o){return this.isValid()&&(M(r)&&r.isValid()||Me(r).isValid())?vt({to:this,from:r}).locale(this.locale()).humanize(!o):this.localeData().invalidDate()}function nm(r){return this.from(Me(),r)}function im(r,o){return this.isValid()&&(M(r)&&r.isValid()||Me(r).isValid())?vt({from:this,to:r}).locale(this.locale()).humanize(!o):this.localeData().invalidDate()}function rm(r){return this.to(Me(),r)}function zc(r){var o;return r===void 0?this._locale._abbr:(o=Nt(r),o!=null&&(this._locale=o),this)}var Vc=R("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(r){return r===void 0?this.localeData():this.locale(r)});function Yc(){return this._locale}var pr=1e3,Jn=60*pr,mr=60*Jn,Uc=(365*400+97)*24*mr;function Zn(r,o){return(r%o+o)%o}function Wc(r,o,l){return r<100&&r>=0?new Date(r+400,o,l)-Uc:new Date(r,o,l).valueOf()}function qc(r,o,l){return r<100&&r>=0?Date.UTC(r+400,o,l)-Uc:Date.UTC(r,o,l)}function sm(r){var o,l;if(r=ke(r),r===void 0||r==="millisecond"||!this.isValid())return this;switch(l=this._isUTC?qc:Wc,r){case"year":o=l(this.year(),0,1);break;case"quarter":o=l(this.year(),this.month()-this.month()%3,1);break;case"month":o=l(this.year(),this.month(),1);break;case"week":o=l(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":o=l(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":o=l(this.year(),this.month(),this.date());break;case"hour":o=this._d.valueOf(),o-=Zn(o+(this._isUTC?0:this.utcOffset()*Jn),mr);break;case"minute":o=this._d.valueOf(),o-=Zn(o,Jn);break;case"second":o=this._d.valueOf(),o-=Zn(o,pr);break}return this._d.setTime(o),e.updateOffset(this,!0),this}function am(r){var o,l;if(r=ke(r),r===void 0||r==="millisecond"||!this.isValid())return this;switch(l=this._isUTC?qc:Wc,r){case"year":o=l(this.year()+1,0,1)-1;break;case"quarter":o=l(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":o=l(this.year(),this.month()+1,1)-1;break;case"week":o=l(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":o=l(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":o=l(this.year(),this.month(),this.date()+1)-1;break;case"hour":o=this._d.valueOf(),o+=mr-Zn(o+(this._isUTC?0:this.utcOffset()*Jn),mr)-1;break;case"minute":o=this._d.valueOf(),o+=Jn-Zn(o,Jn)-1;break;case"second":o=this._d.valueOf(),o+=pr-Zn(o,pr)-1;break}return this._d.setTime(o),e.updateOffset(this,!0),this}function om(){return this._d.valueOf()-(this._offset||0)*6e4}function cm(){return Math.floor(this.valueOf()/1e3)}function lm(){return new Date(this.valueOf())}function dm(){var r=this;return[r.year(),r.month(),r.date(),r.hour(),r.minute(),r.second(),r.millisecond()]}function fm(){var r=this;return{years:r.year(),months:r.month(),date:r.date(),hours:r.hours(),minutes:r.minutes(),seconds:r.seconds(),milliseconds:r.milliseconds()}}function hm(){return this.isValid()?this.toISOString():null}function um(){return E(this)}function pm(){return g({},_(this))}function mm(){return _(this).overflow}function gm(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}$("N",0,0,"eraAbbr"),$("NN",0,0,"eraAbbr"),$("NNN",0,0,"eraAbbr"),$("NNNN",0,0,"eraName"),$("NNNNN",0,0,"eraNarrow"),$("y",["y",1],"yo","eraYear"),$("y",["yy",2],0,"eraYear"),$("y",["yyy",3],0,"eraYear"),$("y",["yyyy",4],0,"eraYear"),X("N",Ca),X("NN",Ca),X("NNN",Ca),X("NNNN",Mm),X("NNNNN",Am),oe(["N","NN","NNN","NNNN","NNNNN"],function(r,o,l,f){var m=l._locale.erasParse(r,f,l._strict);m?_(l).era=m:_(l).invalidEra=r}),X("y",tn),X("yy",tn),X("yyy",tn),X("yyyy",tn),X("yo",km),oe(["y","yy","yyy","yyyy"],$e),oe(["yo"],function(r,o,l,f){var m;l._locale._eraYearOrdinalRegex&&(m=r.match(l._locale._eraYearOrdinalRegex)),l._locale.eraYearOrdinalParse?o[$e]=l._locale.eraYearOrdinalParse(r,m):o[$e]=parseInt(r,10)});function xm(r,o){var l,f,m,b=this._eras||Nt("en")._eras;for(l=0,f=b.length;l<f;++l){switch(typeof b[l].since){case"string":m=e(b[l].since).startOf("day"),b[l].since=m.valueOf();break}switch(typeof b[l].until){case"undefined":b[l].until=1/0;break;case"string":m=e(b[l].until).startOf("day").valueOf(),b[l].until=m.valueOf();break}}return b}function _m(r,o,l){var f,m,b=this.eras(),P,Z,se;for(r=r.toUpperCase(),f=0,m=b.length;f<m;++f)if(P=b[f].name.toUpperCase(),Z=b[f].abbr.toUpperCase(),se=b[f].narrow.toUpperCase(),l)switch(o){case"N":case"NN":case"NNN":if(Z===r)return b[f];break;case"NNNN":if(P===r)return b[f];break;case"NNNNN":if(se===r)return b[f];break}else if([P,Z,se].indexOf(r)>=0)return b[f]}function ym(r,o){var l=r.since<=r.until?1:-1;return o===void 0?e(r.since).year():e(r.since).year()+(o-r.offset)*l}function vm(){var r,o,l,f=this.localeData().eras();for(r=0,o=f.length;r<o;++r)if(l=this.clone().startOf("day").valueOf(),f[r].since<=l&&l<=f[r].until||f[r].until<=l&&l<=f[r].since)return f[r].name;return""}function Cm(){var r,o,l,f=this.localeData().eras();for(r=0,o=f.length;r<o;++r)if(l=this.clone().startOf("day").valueOf(),f[r].since<=l&&l<=f[r].until||f[r].until<=l&&l<=f[r].since)return f[r].narrow;return""}function wm(){var r,o,l,f=this.localeData().eras();for(r=0,o=f.length;r<o;++r)if(l=this.clone().startOf("day").valueOf(),f[r].since<=l&&l<=f[r].until||f[r].until<=l&&l<=f[r].since)return f[r].abbr;return""}function bm(){var r,o,l,f,m=this.localeData().eras();for(r=0,o=m.length;r<o;++r)if(l=m[r].since<=m[r].until?1:-1,f=this.clone().startOf("day").valueOf(),m[r].since<=f&&f<=m[r].until||m[r].until<=f&&f<=m[r].since)return(this.year()-e(m[r].since).year())*l+m[r].offset;return this.year()}function Em(r){return a(this,"_erasNameRegex")||wa.call(this),r?this._erasNameRegex:this._erasRegex}function Sm(r){return a(this,"_erasAbbrRegex")||wa.call(this),r?this._erasAbbrRegex:this._erasRegex}function Dm(r){return a(this,"_erasNarrowRegex")||wa.call(this),r?this._erasNarrowRegex:this._erasRegex}function Ca(r,o){return o.erasAbbrRegex(r)}function Mm(r,o){return o.erasNameRegex(r)}function Am(r,o){return o.erasNarrowRegex(r)}function km(r,o){return o._eraYearOrdinalRegex||tn}function wa(){var r=[],o=[],l=[],f=[],m,b,P,Z,se,me=this.eras();for(m=0,b=me.length;m<b;++m)P=_t(me[m].name),Z=_t(me[m].abbr),se=_t(me[m].narrow),o.push(P),r.push(Z),l.push(se),f.push(P),f.push(Z),f.push(se);this._erasRegex=new RegExp("^("+f.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+o.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+r.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+l.join("|")+")","i")}$(0,["gg",2],0,function(){return this.weekYear()%100}),$(0,["GG",2],0,function(){return this.isoWeekYear()%100});function gr(r,o){$(0,[r,r.length],0,o)}gr("gggg","weekYear"),gr("ggggg","weekYear"),gr("GGGG","isoWeekYear"),gr("GGGGG","isoWeekYear"),X("G",qn),X("g",qn),X("GG",be,Ie),X("gg",be,Ie),X("GGGG",Wn,xi),X("gggg",Wn,xi),X("GGGGG",En,bn),X("ggggg",En,bn),nt(["gggg","ggggg","GGGG","GGGGG"],function(r,o,l,f){o[f.substr(0,2)]=le(r)}),nt(["gg","GG"],function(r,o,l,f){o[f]=e.parseTwoDigitYear(r)});function Pm(r){return jc.call(this,r,this.week(),this.weekday()+this.localeData()._week.dow,this.localeData()._week.dow,this.localeData()._week.doy)}function Om(r){return jc.call(this,r,this.isoWeek(),this.isoWeekday(),1,4)}function Tm(){return Rt(this.year(),1,4)}function Fm(){return Rt(this.isoWeekYear(),1,4)}function Bm(){var r=this.localeData()._week;return Rt(this.year(),r.dow,r.doy)}function Im(){var r=this.localeData()._week;return Rt(this.weekYear(),r.dow,r.doy)}function jc(r,o,l,f,m){var b;return r==null?wi(this,f,m).year:(b=Rt(r,f,m),o>b&&(o=b),Rm.call(this,r,o,l,f,m))}function Rm(r,o,l,f,m){var b=bc(r,o,l,f,m),P=Ci(b.year,0,b.dayOfYear);return this.year(P.getUTCFullYear()),this.month(P.getUTCMonth()),this.date(P.getUTCDate()),this}$("Q",0,"Qo","quarter"),X("Q",gi),oe("Q",function(r,o){o[Bt]=(le(r)-1)*3});function Nm(r){return r==null?Math.ceil((this.month()+1)/3):this.month((r-1)*3+this.month()%3)}$("D",["DD",2],"Do","date"),X("D",be,Ft),X("DD",be,Ie),X("Do",function(r,o){return r?o._dayOfMonthOrdinalParse||o._ordinalParse:o._dayOfMonthOrdinalParseLenient}),oe(["D","DD"],At),oe("Do",function(r,o){o[At]=le(r.match(be)[0])});var $c=Qn("Date",!0);$("DDD",["DDDD",3],"DDDo","dayOfYear"),X("DDD",Un),X("DDDD",Zt),oe(["DDD","DDDD"],function(r,o,l){l._dayOfYear=le(r)});function Lm(r){var o=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return r==null?o:this.add(r-o,"d")}$("m",["mm",2],0,"minute"),X("m",be,_i),X("mm",be,Ie),oe(["m","mm"],yt);var Hm=Qn("Minutes",!1);$("s",["ss",2],0,"second"),X("s",be,_i),X("ss",be,Ie),oe(["s","ss"],It);var zm=Qn("Seconds",!1);$("S",0,0,function(){return~~(this.millisecond()/100)}),$(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),$(0,["SSS",3],0,"millisecond"),$(0,["SSSS",4],0,function(){return this.millisecond()*10}),$(0,["SSSSS",5],0,function(){return this.millisecond()*100}),$(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3}),$(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4}),$(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5}),$(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6}),X("S",Un,gi),X("SS",Un,Ie),X("SSS",Un,Zt);var rn,Kc;for(rn="SSSS";rn.length<=9;rn+="S")X(rn,tn);function Vm(r,o){o[Dn]=le(("0."+r)*1e3)}for(rn="S";rn.length<=9;rn+="S")oe(rn,Vm);Kc=Qn("Milliseconds",!1),$("z",0,0,"zoneAbbr"),$("zz",0,0,"zoneName");function Ym(){return this._isUTC?"UTC":""}function Um(){return this._isUTC?"Coordinated Universal Time":""}var q=A.prototype;q.add=Ip,q.calendar=Yp,q.clone=Up,q.diff=Qp,q.endOf=am,q.format=em,q.from=tm,q.fromNow=nm,q.to=im,q.toNow=rm,q.get=Zh,q.invalidAt=mm,q.isAfter=Wp,q.isBefore=qp,q.isBetween=jp,q.isSame=$p,q.isSameOrAfter=Kp,q.isSameOrBefore=Gp,q.isValid=um,q.lang=Vc,q.locale=zc,q.localeData=Yc,q.max=up,q.min=hp,q.parsingFlags=pm,q.set=eu,q.startOf=sm,q.subtract=Rp,q.toArray=dm,q.toObject=fm,q.toDate=lm,q.toISOString=Jp,q.inspect=Zp,typeof Symbol<"u"&&Symbol.for!=null&&(q[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),q.toJSON=hm,q.toString=Xp,q.unix=cm,q.valueOf=om,q.creationData=gm,q.eraName=vm,q.eraNarrow=Cm,q.eraAbbr=wm,q.eraYear=bm,q.year=gc,q.isLeapYear=Jh,q.weekYear=Pm,q.isoWeekYear=Om,q.quarter=q.quarters=Nm,q.month=Cc,q.daysInMonth=lu,q.week=q.weeks=xu,q.isoWeek=q.isoWeeks=_u,q.weeksInYear=Bm,q.weeksInWeekYear=Im,q.isoWeeksInYear=Tm,q.isoWeeksInISOWeekYear=Fm,q.date=$c,q.day=q.days=Ou,q.weekday=Tu,q.isoWeekday=Fu,q.dayOfYear=Lm,q.hour=q.hours=zu,q.minute=q.minutes=Hm,q.second=q.seconds=zm,q.millisecond=q.milliseconds=Kc,q.utcOffset=wp,q.utc=Ep,q.local=Sp,q.parseZone=Dp,q.hasAlignedHourOffset=Mp,q.isDST=Ap,q.isLocal=Pp,q.isUtcOffset=Op,q.isUtc=Ic,q.isUTC=Ic,q.zoneAbbr=Ym,q.zoneName=Um,q.dates=R("dates accessor is deprecated. Use date instead.",$c),q.months=R("months accessor is deprecated. Use month instead",Cc),q.years=R("years accessor is deprecated. Use year instead",gc),q.zone=R("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",bp),q.isDSTShifted=R("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",kp);function Wm(r){return Me(r*1e3)}function qm(){return Me.apply(null,arguments).parseZone()}function Gc(r){return r}var ve=H.prototype;ve.calendar=V,ve.longDateFormat=Ve,ve.invalidDate=Ue,ve.ordinal=Cn,ve.preparse=Gc,ve.postformat=Gc,ve.relativeTime=wn,ve.pastFuture=mi,ve.set=z,ve.eras=xm,ve.erasParse=_m,ve.erasConvertYear=ym,ve.erasAbbrRegex=Sm,ve.erasNameRegex=Em,ve.erasNarrowRegex=Dm,ve.months=su,ve.monthsShort=au,ve.monthsParse=cu,ve.monthsRegex=fu,ve.monthsShortRegex=du,ve.week=uu,ve.firstDayOfYear=gu,ve.firstDayOfWeek=mu,ve.weekdays=Du,ve.weekdaysMin=Au,ve.weekdaysShort=Mu,ve.weekdaysParse=Pu,ve.weekdaysRegex=Bu,ve.weekdaysShortRegex=Iu,ve.weekdaysMinRegex=Ru,ve.isPM=Lu,ve.meridiem=Vu;function xr(r,o,l,f){var m=Nt(),b=x().set(f,o);return m[l](b,r)}function Qc(r,o,l){if(h(r)&&(o=r,r=void 0),r=r||"",o!=null)return xr(r,o,l,"month");var f,m=[];for(f=0;f<12;f++)m[f]=xr(r,f,l,"month");return m}function ba(r,o,l,f){typeof r=="boolean"?(h(o)&&(l=o,o=void 0),o=o||""):(o=r,l=o,r=!1,h(o)&&(l=o,o=void 0),o=o||"");var m=Nt(),b=r?m._week.dow:0,P,Z=[];if(l!=null)return xr(o,(l+b)%7,f,"day");for(P=0;P<7;P++)Z[P]=xr(o,(P+b)%7,f,"day");return Z}function jm(r,o){return Qc(r,o,"months")}function $m(r,o){return Qc(r,o,"monthsShort")}function Km(r,o,l){return ba(r,o,l,"weekdays")}function Gm(r,o,l){return ba(r,o,l,"weekdaysShort")}function Qm(r,o,l){return ba(r,o,l,"weekdaysMin")}nn("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(r){var o=r%10,l=le(r%100/10)===1?"th":o===1?"st":o===2?"nd":o===3?"rd":"th";return r+l}}),e.lang=R("moment.lang is deprecated. Use moment.locale instead.",nn),e.langData=R("moment.langData is deprecated. Use moment.localeData instead.",Nt);var Lt=Math.abs;function Xm(){var r=this._data;return this._milliseconds=Lt(this._milliseconds),this._days=Lt(this._days),this._months=Lt(this._months),r.milliseconds=Lt(r.milliseconds),r.seconds=Lt(r.seconds),r.minutes=Lt(r.minutes),r.hours=Lt(r.hours),r.months=Lt(r.months),r.years=Lt(r.years),this}function Xc(r,o,l,f){var m=vt(o,l);return r._milliseconds+=f*m._milliseconds,r._days+=f*m._days,r._months+=f*m._months,r._bubble()}function Jm(r,o){return Xc(this,r,o,1)}function Zm(r,o){return Xc(this,r,o,-1)}function Jc(r){return r<0?Math.floor(r):Math.ceil(r)}function eg(){var r=this._milliseconds,o=this._days,l=this._months,f=this._data,m,b,P,Z,se;return r>=0&&o>=0&&l>=0||r<=0&&o<=0&&l<=0||(r+=Jc(Ea(l)+o)*864e5,o=0,l=0),f.milliseconds=r%1e3,m=Xe(r/1e3),f.seconds=m%60,b=Xe(m/60),f.minutes=b%60,P=Xe(b/60),f.hours=P%24,o+=Xe(P/24),se=Xe(Zc(o)),l+=se,o-=Jc(Ea(se)),Z=Xe(l/12),l%=12,f.days=o,f.months=l,f.years=Z,this}function Zc(r){return r*4800/146097}function Ea(r){return r*146097/4800}function tg(r){if(!this.isValid())return NaN;var o,l,f=this._milliseconds;if(r=ke(r),r==="month"||r==="quarter"||r==="year")switch(o=this._days+f/864e5,l=this._months+Zc(o),r){case"month":return l;case"quarter":return l/3;case"year":return l/12}else switch(o=this._days+Math.round(Ea(this._months)),r){case"week":return o/7+f/6048e5;case"day":return o+f/864e5;case"hour":return o*24+f/36e5;case"minute":return o*1440+f/6e4;case"second":return o*86400+f/1e3;case"millisecond":return Math.floor(o*864e5)+f;default:throw new Error("Unknown unit "+r)}}function Ht(r){return function(){return this.as(r)}}var e0=Ht("ms"),ng=Ht("s"),ig=Ht("m"),rg=Ht("h"),sg=Ht("d"),ag=Ht("w"),og=Ht("M"),cg=Ht("Q"),lg=Ht("y"),dg=e0;function fg(){return vt(this)}function hg(r){return r=ke(r),this.isValid()?this[r+"s"]():NaN}function An(r){return function(){return this.isValid()?this._data[r]:NaN}}var ug=An("milliseconds"),pg=An("seconds"),mg=An("minutes"),gg=An("hours"),xg=An("days"),_g=An("months"),yg=An("years");function vg(){return Xe(this.days()/7)}var zt=Math.round,ei={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function Cg(r,o,l,f,m){return m.relativeTime(o||1,!!l,r,f)}function wg(r,o,l,f){var m=vt(r).abs(),b=zt(m.as("s")),P=zt(m.as("m")),Z=zt(m.as("h")),se=zt(m.as("d")),me=zt(m.as("M")),Je=zt(m.as("w")),Vt=zt(m.as("y")),sn=b<=l.ss&&["s",b]||b<l.s&&["ss",b]||P<=1&&["m"]||P<l.m&&["mm",P]||Z<=1&&["h"]||Z<l.h&&["hh",Z]||se<=1&&["d"]||se<l.d&&["dd",se];return l.w!=null&&(sn=sn||Je<=1&&["w"]||Je<l.w&&["ww",Je]),sn=sn||me<=1&&["M"]||me<l.M&&["MM",me]||Vt<=1&&["y"]||["yy",Vt],sn[2]=o,sn[3]=+r>0,sn[4]=f,Cg.apply(null,sn)}function bg(r){return r===void 0?zt:typeof r=="function"?(zt=r,!0):!1}function Eg(r,o){return ei[r]===void 0?!1:o===void 0?ei[r]:(ei[r]=o,r==="s"&&(ei.ss=o-1),!0)}function Sg(r,o){if(!this.isValid())return this.localeData().invalidDate();var l=!1,f=ei,m,b;return typeof r=="object"&&(o=r,r=!1),typeof r=="boolean"&&(l=r),typeof o=="object"&&(f=Object.assign({},ei,o),o.s!=null&&o.ss==null&&(f.ss=o.s-1)),m=this.localeData(),b=wg(this,!l,f,m),l&&(b=m.pastFuture(+this,b)),m.postformat(b)}var Sa=Math.abs;function ti(r){return(r>0)-(r<0)||+r}function _r(){if(!this.isValid())return this.localeData().invalidDate();var r=Sa(this._milliseconds)/1e3,o=Sa(this._days),l=Sa(this._months),f,m,b,P,Z=this.asSeconds(),se,me,Je,Vt;return Z?(f=Xe(r/60),m=Xe(f/60),r%=60,f%=60,b=Xe(l/12),l%=12,P=r?r.toFixed(3).replace(/\.?0+$/,""):"",se=Z<0?"-":"",me=ti(this._months)!==ti(Z)?"-":"",Je=ti(this._days)!==ti(Z)?"-":"",Vt=ti(this._milliseconds)!==ti(Z)?"-":"",se+"P"+(b?me+b+"Y":"")+(l?me+l+"M":"")+(o?Je+o+"D":"")+(m||f||r?"T":"")+(m?Vt+m+"H":"")+(f?Vt+f+"M":"")+(r?Vt+P+"S":"")):"P0D"}var _e=fr.prototype;_e.isValid=_p,_e.abs=Xm,_e.add=Jm,_e.subtract=Zm,_e.as=tg,_e.asMilliseconds=e0,_e.asSeconds=ng,_e.asMinutes=ig,_e.asHours=rg,_e.asDays=sg,_e.asWeeks=ag,_e.asMonths=og,_e.asQuarters=cg,_e.asYears=lg,_e.valueOf=dg,_e._bubble=eg,_e.clone=fg,_e.get=hg,_e.milliseconds=ug,_e.seconds=pg,_e.minutes=mg,_e.hours=gg,_e.days=xg,_e.weeks=vg,_e.months=_g,_e.years=yg,_e.humanize=Sg,_e.toISOString=_r,_e.toString=_r,_e.toJSON=_r,_e.locale=zc,_e.localeData=Yc,_e.toIsoString=R("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",_r),_e.lang=Vc,$("X",0,0,"unix"),$("x",0,0,"valueOf"),X("x",qn),X("X",sr),oe("
4X",function(r,o,l){l._d=new Date(parseFloat(r)*1e3)}),oe("x",function(r,o,l){l._d=new Date(le(r))});return e.version="2.30.1",t(Me),e.fn=q,e.min=pp,e.max=mp,e.now=gp,e.utc=x,e.unix=Wm,e.months=jm,e.isDate=u,e.locale=nn,e.invalid=y,e.duration=vt,e.isMoment=M,e.weekdays=Km,e.parseZone=qm,e.localeData=Nt,e.isDuration=hr,e.monthsShort=$m,e.weekdaysMin=Qm,e.defineLocale=ha,e.updateLocale=qu,e.locales=ju,e.weekdaysShort=Gm,e.normalizeUnits=ke,e.relativeTimeRounding=bg,e.relativeTimeThreshold=Eg,e.calendarFormat=Vp,e.prototype=q,e.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},e})});var Rd=de(()=>{"use strict"});var pe=de((ls,Nd)=>{"use strict";(function(i,e){typeof ls=="object"?Nd.exports=ls=e():typeof define=="function"&&define.amd?define([],e):i.CryptoJS=e()})(ls,function(){var i=i||(function(e,t){var n;if(typeof window<"u"&&window.crypto&&(n=window.crypto),typeof self<"u"&&self.crypto&&(n=self.crypto),typeof globalThis<"u"&&globalThis.crypto&&(n=globalThis.crypto),!n&&typeof window<"u"&&window.msCrypto&&(n=window.msCrypto),!n&&typeof global<"u"&&global.crypto&&(n=global.crypto),!n&&typeof yr=="function")try{n=Rd()}catch{}var s=function(){if(n){if(typeof n.getRandomValues=="function")try{return n.getRandomValues(new Uint32Array(1))[0]}catch{}if(typeof n.randomBytes=="function")try{return n.randomBytes(4).readInt32LE()}catch{}}throw new Error("Native crypto module could not be used to get secure random number.")},a=Object.create||(function(){function y(){}return function(v){var D;return y.prototype=v,D=new y,y.prototype=null,D}})(),d={},c=d.lib={},h=c.Base=(function(){return{extend:function(y){var v=a(this);return y&&v.mixIn(y),(!v.hasOwnProperty("init")||this.init===v.init)&&(v.init=function(){v.$super.init.apply(this,arguments)}),v.init.prototype=v,v.$super=this,v},create:function(){var y=this.extend();return y.init.apply(y,arguments),y},init:function(){},mixIn:function(y){for(var v in y)y.hasOwnProperty(v)&&(this[v]=y[v]);y.hasOwnProperty("toString")&&(this.toString=y.toString)},clone:function(){return this.init.prototype.extend(this)}}})(),u=c.WordArray=h.extend({init:function(y,v){y=this.words=y||[],v!=t?this.sigBytes=v:this.sigBytes=y.length*4},toString:function(y){return(y||g).stringify(this)},concat:function(y){var v=this.words,D=y.words,S=this.sigBytes,A=y.sigBytes;if(this.clamp(),S%4)for(var M=0;M<A;M++){var L=D[M>>>2]>>>24-M%4*8&255;v[S+M>>>2]|=L<<24-(S+M)%4*8}else for(var R=0;R<A;R+=4)v[S+R>>>2]=D[R>>>2];return this.sigBytes+=A,this},clamp:function(){var y=this.words,v=this.sigBytes;y[v>>>2]&=4294967295<<32-v%4*8,y.length=e.ceil(v/4)},clone:function(){var y=h.clone.call(this);return y.words=this.words.slice(0),y},random:function(y){for(var v=[],D=0;D<y;D+=4)v.push(s());return new u.init(v,y)}}),p=d.enc={},g=p.Hex={stringify:function(y){for(var v=y.words,D=y.sigBytes,S=[],A=0;A<D;A++){var M=v[A>>>2]>>>24-A%4*8&255;S.push((M>>>4).toString(16)),S.push((M&15).toString(16))}return S.join("")},parse:function(y){for(var v=y.length,D=[],S=0;S<v;S+=2)D[S>>>3]|=parseInt(y.substr(S,2),16)<<24-S%8*4;return new u.init(D,v/2)}},x=p.Latin1={stringify:function(y){for(var v=y.words,D=y.sigBytes,S=[],A=0;A<D;A++){var M=v[A>>>2]>>>24-A%4*8&255;S.push(String.fromCharCode(M))}return S.join("")},parse:function(y){for(var v=y.length,D=[],S=0;S<v;S++)D[S>>>2]|=(y.charCodeAt(S)&255)<<24-S%4*8;return new u.init(D,v)}},C=p.Utf8={stringify:function(y){try{return decodeURIComponent(escape(x.stringify(y)))}catch{throw new Error("Malformed UTF-8 data")}},parse:function(y){return x.parse(unescape(encodeURIComponent(y)))}},_=c.BufferedBlockAlgorithm=h.extend({reset:function(){this._data=new u.init,this._nDataBytes=0},_append:function(y){typeof y=="string"&&(y=C.parse(y)),this._data.concat(y),this._nDataBytes+=y.sigBytes},_process:function(y){var v,D=this._data,S=D.words,A=D.sigBytes,M=this.blockSize,L=M*4,R=A/L;y?R=e.ceil(R):R=e.max((R|0)-this._minBufferSize,0);var W=R*M,K=e.min(W*4,A);if(W){for(var T=0;T<W;T+=M)this._doProcessBlock(S,T);v=S.splice(0,W),D.sigBytes-=K}return new u.init(v,K)},clone:function(){var y=h.clone.call(this);return y._data=this._data.clone(),y},_minBufferSize:0}),w=c.Hasher=_.extend({cfg:h.extend(),init:function(y){this.cfg=this.cfg.extend(y),this.reset()},reset:function(){_.reset.call(this),this._doReset()},update:function(y){return this._append(y),this._process(),this},finalize:function(y){y&&this._append(y);var v=this._doFinalize();return v},blockSize:512/32,_createHelper:function(y){return function(v,D){return new y.init(D).finalize(v)}},_createHmacHelper:function(y){return function(v,D){return new E.HMAC.init(y,D).finalize(v)}}}),E=d.algo={};return d})(Math);return i})});var Zi=de((ds,Ld)=>{"use strict";(function(i,e){typeof ds=="object"?Ld.exports=ds=e(pe()):typeof define=="function"&&define.amd?define(["./core"],e):e(i.CryptoJS)})(ds,function(i){return(function(e){var t=i,n=t.lib,s=n.Base,a=n.WordArray,d=t.x64={},c=d.Word=s.extend({init:function(u,p){this.high=u,this.low=p}}),h=d.WordArray=s.extend({init:function(u,p){u=this.words=u||[],p!=e?this.sigBytes=p:this.sigBytes=u.length*8},toX32:function(){for(var u=this.words,p=u.length,g=[],x=0;x<p;x++){var C=u[x];g.push(C.high),g.push(C.low)}return a.create(g,this.sigBytes)},clone:function(){for(var u=s.clone.call(this),p=u.words=this.words.slice(0),g=p.length,x=0;x<g;x++)p[x]=p[x].clone();return u}})})(),i})});var zd=de((fs,Hd)=>{"use strict";(function(i,e){typeof fs=="object"?Hd.exports=fs=e(pe()):typeof define=="function"&&define.amd?define(["./core"],e):e(i.CryptoJS)})(fs,function(i){return(function(){if(typeof ArrayBuffer=="function"){var e=i,t=e.lib,n=t.WordArray,s=n.init,a=n.init=function(d){if(d instanceof ArrayBuffer&&(d=new Uint8Array(d)),(d instanceof Int8Array||typeof Uint8ClampedArray<"u"&&d instanceof Uint8ClampedArray||d instanceof Int16Array||d instanceof Uint16Array||d instanceof Int32Array||d instanceof Uint32Array||d instanceof Float32Array||d instanceof Float64Array)&&(d=new Uint8Array(d.buffer,d.byteOffset,d.byteLength)),d instanceof Uint8Array){for(var c=d.byteLength,h=[],u=0;u<c;u++)h[u>>>2]|=d[u]<<24-u%4*8;s.call(this,h,c)}else s.apply(this,arguments)};a.prototype=n}})(),i.lib.WordArray})});var Yd=de((hs,Vd)=>{"use strict";(function(i,e){typeof hs=="object"?Vd.exports=hs=e(pe()):typeof define=="function"&&define.amd?define(["./core"],e):e(i.CryptoJS)})(hs,function(i){return(function(){var e=i,t=e.lib,n=t.WordArray,s=e.enc,a=s.Utf16=s.Utf16BE={stringify:function(c){for(var h=c.words,u=c.sigBytes,p=[],g=0;g<u;g+=2){var x=h[g>>>2]>>>16-g%4*8&65535;p.push(String.fromCharCode(x))}return p.join("")},parse:function(c){for(var h=c.length,u=[],p=0;p<h;p++)u[p>>>1]|=c.charCodeAt(p)<<16-p%2*16;return n.create(u,h*2)}};s.Utf16LE={stringify:function(c){for(var h=c.words,u=c.sigBytes,p=[],g=0;g<u;g+=2){var x=d(h[g>>>2]>>>16-g%4*8&65535);p.push(String.fromCharCode(x))}return p.join("")},parse:function(c){for(var h=c.length,u=[],p=0;p<h;p++)u[p>>>1]|=d(c.charCodeAt(p)<<16-p%2*16);return n.create(u,h*2)}};function d(c){return c<<8&4278255360|c>>>8&16711935}})(),i.enc.Utf16})});var mn=de((us,Ud)=>{"use strict";(function(i,e){typeof us=="object"?Ud.exports=us=e(pe()):typeof define=="function"&&define.amd?define(["./core"],e):e(i.CryptoJS)})(us,function(i){return(function(){var e=i,t=e.lib,n=t.WordArray,s=e.enc,a=s.Base64={stringify:function(c){var h=c.words,u=c.sigBytes,p=this._map;c.clamp();for(var g=[],x=0;x<u;x+=3)for(var C=h[x>>>2]>>>24-x%4*8&255,_=h[x+1>>>2]>>>24-(x+1)%4*8&255,w=h[x+2>>>2]>>>24-(x+2)%4*8&255,E=C<<16|_<<8|w,y=0;y<4&&x+y*.75<u;y++)g.push(p.charAt(E>>>6*(3-y)&63));var v=p.charAt(64);if(v)for(;g.length%4;)g.push(v);return g.join("")},parse:function(c){var h=c.length,u=this._map,p=this._reverseMap;if(!p){p=this._reverseMap=[];for(var g=0;g<u.length;g++)p[u.charCodeAt(g)]=g}var x=u.charAt(64);if(x){var C=c.indexOf(x);C!==-1&&(h=C)}return d(c,h,p)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789
vendor: 5,367 bytes, line 4
4+/="};function d(c,h,u){for(var p=[],g=0,x=0;x<h;x++)if(x%4){var C=u[c.charCodeAt(x-1)]<<x%4*2,_=u[c.charCodeAt(x)]>>>6-x%4*2,w=C|_;p[g>>>2]|=w<<24-g%4*8,g++}return n.create(p,g)}})(),i.enc.Base64})});var qd=de((ps,Wd)=>{"use strict";(function(i,e){typeof ps=="object"?Wd.exports=ps=e(pe()):typeof define=="function"&&define.amd?define(["./core"],e):e(i.CryptoJS)})(ps,function(i){return(function(){var e=i,t=e.lib,n=t.WordArray,s=e.enc,a=s.Base64url={stringify:function(c,h){h===void 0&&(h=!0);var u=c.words,p=c.sigBytes,g=h?this._safe_map:this._map;c.clamp();for(var x=[],C=0;C<p;C+=3)for(var _=u[C>>>2]>>>24-C%4*8&255,w=u[C+1>>>2]>>>24-(C+1)%4*8&255,E=u[C+2>>>2]>>>24-(C+2)%4*8&255,y=_<<16|w<<8|E,v=0;v<4&&C+v*.75<p;v++)x.push(g.charAt(y>>>6*(3-v)&63));var D=g.charAt(64);if(D)for(;x.length%4;)x.push(D);return x.join("")},parse:function(c,h){h===void 0&&(h=!0);var u=c.length,p=h?this._safe_map:this._map,g=this._reverseMap;if(!g){g=this._reverseMap=[];for(var x=0;x<p.length;x++)g[p.charCodeAt(x)]=x}var C=p.charAt(64);if(C){var _=c.indexOf(C);_!==-1&&(u=_)}return d(c,u,g)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",_safe_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"};function d(c,h,u){for(var p=[],g=0,x=0;x<h;x++)if(x%4){var C=u[c.charCodeAt(x-1)]<<x%4*2,_=u[c.charCodeAt(x)]>>>6-x%4*2,w=C|_;p[g>>>2]|=w<<24-g%4*8,g++}return n.create(p,g)}})(),i.enc.Base64url})});var gn=de((ms,jd)=>{"use strict";(function(i,e){typeof ms=="object"?jd.exports=ms=e(pe()):typeof define=="function"&&define.amd?define(["./core"],e):e(i.CryptoJS)})(ms,function(i){return(function(e){var t=i,n=t.lib,s=n.WordArray,a=n.Hasher,d=t.algo,c=[];(function(){for(var C=0;C<64;C++)c[C]=e.abs(e.sin(C+1))*4294967296|0})();var h=d.MD5=a.extend({_doReset:function(){this._hash=new s.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(C,_){for(var w=0;w<16;w++){var E=_+w,y=C[E];C[E]=(y<<8|y>>>24)&16711935|(y<<24|y>>>8)&4278255360}var v=this._hash.words,D=C[_+0],S=C[_+1],A=C[_+2],M=C[_+3],L=C[_+4],R=C[_+5],W=C[_+6],K=C[_+7],T=C[_+8],z=C[_+9],G=C[_+10],H=C[_+11],te=C[_+12],B=C[_+13],V=C[_+14],Y=C[_+15],k=v[0],I=v[1],N=v[2],F=v[3];k=u(k,I,N,F,D,7,c[0]),F=u(F,k,I,N,S,12,c[1]),N=u(N,F,k,I,A,17,c[2]),I=u(I,N,F,k,M,22,c[3]),k=u(k,I,N,F,L,7,c[4]),F=u(F,k,I,N,R,12,c[5]),N=u(N,F,k,I,W,17,c[6]),I=u(I,N,F,k,K,22,c[7]),k=u(k,I,N,F,T,7,c[8]),F=u(F,k,I,N,z,12,c[9]),N=u(N,F,k,I,G,17,c[10]),I=u(I,N,F,k,H,22,c[11]),k=u(k,I,N,F,te,7,c[12]),F=u(F,k,I,N,B,12,c[13]),N=u(N,F,k,I,V,17,c[14]),I=u(I,N,F,k,Y,22,c[15]),k=p(k,I,N,F,S,5,c[16]),F=p(F,k,I,N,W,9,c[17]),N=p(N,F,k,I,H,14,c[18]),I=p(I,N,F,k,D,20,c[19]),k=p(k,I,N,F,R,5,c[20]),F=p(F,k,I,N,G,9,c[21]),N=p(N,F,k,I,Y,14,c[22]),I=p(I,N,F,k,L,20,c[23]),k=p(k,I,N,F,z,5,c[24]),F=p(F,k,I,N,V,9,c[25]),N=p(N,F,k,I,M,14,c[26]),I=p(I,N,F,k,T,20,c[27]),k=p(k,I,N,F,B,5,c[28]),F=p(F,k,I,N,A,9,c[29]),N=p(N,F,k,I,K,14,c[30]),I=p(I,N,F,k,te,20,c[31]),k=g(k,I,N,F,R,4,c[32]),F=g(F,k,I,N,T,11,c[33]),N=g(N,F,k,I,H,16,c[34]),I=g(I,N,F,k,V,23,c[35]),k=g(k,I,N,F,S,4,c[36]),F=g(F,k,I,N,L,11,c[37]),N=g(N,F,k,I,K,16,c[38]),I=g(I,N,F,k,G,23,c[39]),k=g(k,I,N,F,B,4,c[40]),F=g(F,k,I,N,D,11,c[41]),N=g(N,F,k,I,M,16,c[42]),I=g(I,N,F,k,W,23,c[43]),k=g(k,I,N,F,z,4,c[44]),F=g(F,k,I,N,te,11,c[45]),N=g(N,F,k,I,Y,16,c[46]),I=g(I,N,F,k,A,23,c[47]),k=x(k,I,N,F,D,6,c[48]),F=x(F,k,I,N,K,10,c[49]),N=x(N,F,k,I,V,15,c[50]),I=x(I,N,F,k,R,21,c[51]),k=x(k,I,N,F,te,6,c[52]),F=x(F,k,I,N,M,10,c[53]),N=x(N,F,k,I,G,15,c[54]),I=x(I,N,F,k,S,21,c[55]),k=x(k,I,N,F,T,6,c[56]),F=x(F,k,I,N,Y,10,c[57]),N=x(N,F,k,I,W,15,c[58]),I=x(I,N,F,k,B,21,c[59]),k=x(k,I,N,F,L,6,c[60]),F=x(F,k,I,N,H,10,c[61]),N=x(N,F,k,I,A,15,c[62]),I=x(I,N,F,k,z,21,c[63]),v[0]=v[0]+k|0,v[1]=v[1]+I|0,v[2]=v[2]+N|0,v[3]=v[3]+F|0},_doFinalize:function(){var C=this._data,_=C.words,w=this._nDataBytes*8,E=C.sigBytes*8;_[E>>>5]|=128<<24-E%32;var y=e.floor(w/4294967296),v=w;_[(E+64>>>9<<4)+15]=(y<<8|y>>>24)&16711935|(y<<24|y>>>8)&4278255360,_[(E+64>>>9<<4)+14]=(v<<8|v>>>24)&16711935|(v<<24|v>>>8)&4278255360,C.sigBytes=(_.length+1)*4,this._process();for(var D=this._hash,S=D.words,A=0;A<4;A++){var M=S[A];S[A]=(M<<8|M>>>24)&16711935|(M<<24|M>>>8)&4278255360}return D},clone:function(){var C=a.clone.call(this);return C._hash=this._hash.clone(),C}});function u(C,_,w,E,y,v,D){var S=C+(_&w|~_&E)+y+D;return(S<<v|S>>>32-v)+_}function p(C,_,w,E,y,v,D){var S=C+(_&E|w&~E)+y+D;return(S<<v|S>>>32-v)+_}function g(C,_,w,E,y,v,D){var S=C+(_^w^E)+y+D;return(S<<v|S>>>32-v)+_}function x(C,_,w,E,y,v,D){var S=C+(w^(_|~E))+y+D;return(S<<v|S>>>32-v)+_}t.MD5=a._createHelper(h),t.HmacMD5=a._createHmacHelper(h)})(Math),i.MD5})});var Do=de((gs,$d)=>{"use strict";(function(i,e){typeof gs=="object"?$d.exports=gs=e(pe()):typeof define=="function"&&define.amd?define(["./core"],e):e(i.CryptoJS)})(gs,function(i){return(function(){var e=i,t=e.lib,n=t.WordArray,s=t.Hasher,a=e.algo,d=[],c=a.SHA1=s.extend({_doReset:function(){this._hash=new n.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(h,u){for(var p=this._hash.words,g=p[0],x=p[1],C=p[2],_=p[3],w=p[4],E=0;E<80;E++){if(E<16)d[E]=h[u+E]|0;else{var y=d[E-3]^d[E-8]^d[E-14]^d[E-16];d[E]=y<<1|y>>>31}var v=(g<<5|g>>>27)+w+d[E];E<20?v+=(x&C|~x&_)+1518500249:E<40?v+=(x^C^_)+1859775393:E<60?v+=(x&C|x&_|C&_)-1894007588:v+=(x^C^_)-899497514,w=_,_=C,C=x<<30|x>>>2,x=g,g=v}
vendor: 28,118 bytes, line 4
4p[0]=p[0]+g|0,p[1]=p[1]+x|0,p[2]=p[2]+C|0,p[3]=p[3]+_|0,p[4]=p[4]+w|0},_doFinalize:function(){var h=this._data,u=h.words,p=this._nDataBytes*8,g=h.sigBytes*8;return u[g>>>5]|=128<<24-g%32,u[(g+64>>>9<<4)+14]=Math.floor(p/4294967296),u[(g+64>>>9<<4)+15]=p,h.sigBytes=u.length*4,this._process(),this._hash},clone:function(){var h=s.clone.call(this);return h._hash=this._hash.clone(),h}});e.SHA1=s._createHelper(c),e.HmacSHA1=s._createHmacHelper(c)})(),i.SHA1})});var _s=de((xs,Kd)=>{"use strict";(function(i,e){typeof xs=="object"?Kd.exports=xs=e(pe()):typeof define=="function"&&define.amd?define(["./core"],e):e(i.CryptoJS)})(xs,function(i){return(function(e){var t=i,n=t.lib,s=n.WordArray,a=n.Hasher,d=t.algo,c=[],h=[];(function(){function g(w){for(var E=e.sqrt(w),y=2;y<=E;y++)if(!(w%y))return!1;return!0}function x(w){return(w-(w|0))*4294967296|0}for(var C=2,_=0;_<64;)g(C)&&(_<8&&(c[_]=x(e.pow(C,1/2))),h[_]=x(e.pow(C,1/3)),_++),C++})();var u=[],p=d.SHA256=a.extend({_doReset:function(){this._hash=new s.init(c.slice(0))},_doProcessBlock:function(g,x){for(var C=this._hash.words,_=C[0],w=C[1],E=C[2],y=C[3],v=C[4],D=C[5],S=C[6],A=C[7],M=0;M<64;M++){if(M<16)u[M]=g[x+M]|0;else{var L=u[M-15],R=(L<<25|L>>>7)^(L<<14|L>>>18)^L>>>3,W=u[M-2],K=(W<<15|W>>>17)^(W<<13|W>>>19)^W>>>10;u[M]=R+u[M-7]+K+u[M-16]}var T=v&D^~v&S,z=_&w^_&E^w&E,G=(_<<30|_>>>2)^(_<<19|_>>>13)^(_<<10|_>>>22),H=(v<<26|v>>>6)^(v<<21|v>>>11)^(v<<7|v>>>25),te=A+H+T+h[M]+u[M],B=G+z;A=S,S=D,D=v,v=y+te|0,y=E,E=w,w=_,_=te+B|0}C[0]=C[0]+_|0,C[1]=C[1]+w|0,C[2]=C[2]+E|0,C[3]=C[3]+y|0,C[4]=C[4]+v|0,C[5]=C[5]+D|0,C[6]=C[6]+S|0,C[7]=C[7]+A|0},_doFinalize:function(){var g=this._data,x=g.words,C=this._nDataBytes*8,_=g.sigBytes*8;return x[_>>>5]|=128<<24-_%32,x[(_+64>>>9<<4)+14]=e.floor(C/4294967296),x[(_+64>>>9<<4)+15]=C,g.sigBytes=x.length*4,this._process(),this._hash},clone:function(){var g=a.clone.call(this);return g._hash=this._hash.clone(),g}});t.SHA256=a._createHelper(p),t.HmacSHA256=a._createHmacHelper(p)})(Math),i.SHA256})});var Qd=de((ys,Gd)=>{"use strict";(function(i,e,t){typeof ys=="object"?Gd.exports=ys=e(pe(),_s()):typeof define=="function"&&define.amd?define(["./core","./sha256"],e):e(i.CryptoJS)})(ys,function(i){return(function(){var e=i,t=e.lib,n=t.WordArray,s=e.algo,a=s.SHA256,d=s.SHA224=a.extend({_doReset:function(){this._hash=new n.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var c=a._doFinalize.call(this);return c.sigBytes-=4,c}});e.SHA224=a._createHelper(d),e.HmacSHA224=a._createHmacHelper(d)})(),i.SHA224})});var Mo=de((vs,Xd)=>{"use strict";(function(i,e,t){typeof vs=="object"?Xd.exports=vs=e(pe(),Zi()):typeof define=="function"&&define.amd?define(["./core","./x64-core"],e):e(i.CryptoJS)})(vs,function(i){return(function(){var e=i,t=e.lib,n=t.Hasher,s=e.x64,a=s.Word,d=s.WordArray,c=e.algo;function h(){return a.create.apply(a,arguments)}var u=[h(1116352408,3609767458),h(1899447441,602891725),h(3049323471,3964484399),h(3921009573,2173295548),h(961987163,4081628472),h(1508970993,3053834265),h(2453635748,2937671579),h(2870763221,3664609560),h(3624381080,2734883394),h(310598401,1164996542),h(607225278,1323610764),h(1426881987,3590304994),h(1925078388,4068182383),h(2162078206,991336113),h(2614888103,633803317),h(3248222580,3479774868),h(3835390401,2666613458),h(4022224774,944711139),h(264347078,2341262773),h(604807628,2007800933),h(770255983,1495990901),h(1249150122,1856431235),h(1555081692,3175218132),h(1996064986,2198950837),h(2554220882,3999719339),h(2821834349,766784016),h(2952996808,2566594879),h(3210313671,3203337956),h(3336571891,1034457026),h(3584528711,2466948901),h(113926993,3758326383),h(338241895,168717936),h(666307205,1188179964),h(773529912,1546045734),h(1294757372,1522805485),h(1396182291,2643833823),h(1695183700,2343527390),h(1986661051,1014477480),h(2177026350,1206759142),h(2456956037,344077627),h(2730485921,1290863460),h(2820302411,3158454273),h(3259730800,3505952657),h(3345764771,106217008),h(3516065817,3606008344),h(3600352804,1432725776),h(4094571909,1467031594),h(275423344,851169720),h(430227734,3100823752),h(506948616,1363258195),h(659060556,3750685593),h(883997877,3785050280),h(958139571,3318307427),h(1322822218,3812723403),h(1537002063,2003034995),h(1747873779,3602036899),h(1955562222,1575990012),h(2024104815,1125592928),h(2227730452,2716904306),h(2361852424,442776044),h(2428436474,593698344),h(2756734187,3733110249),h(3204031479,2999351573),h(3329325298,3815920427),h(3391569614,3928383900),h(3515267271,566280711),h(3940187606,3454069534),h(4118630271,4000239992),h(116418474,1914138554),h(174292421,2731055270),h(289380356,3203993006),h(460393269,320620315),h(685471733,587496836),h(852142971,1086792851),h(1017036298,365543100),h(1126000580,2618297676),h(1288033470,3409855158),h(1501505948,4234509866),h(1607167915,987167468),h(1816402316,1246189591)],p=[];(function(){for(var x=0;x<80;x++)p[x]=h()})();var g=c.SHA512=n.extend({_doReset:function(){this._hash=new d.init([new a.init(1779033703,4089235720),new a.init(3144134277,2227873595),new a.init(1013904242,4271175723),new a.init(2773480762,1595750129),new a.init(1359893119,2917565137),new a.init(2600822924,725511199),new a.init(528734635,4215389547),new a.init(1541459225,327033209)])},_doProcessBlock:function(x,C){for(var _=this._hash.words,w=_[0],E=_[1],y=_[2],v=_[3],D=_[4],S=_[5],A=_[6],M=_[7],L=w.high,R=w.low,W=E.high,K=E.low,T=y.high,z=y.low,G=v.high,H=v.low,te=D.high,B=D.low,V=S.high,Y=S.low,k=A.high,I=A.low,N=M.high,F=M.low,$=L,ie=R,Ne=W,ae=K,De=T,qe=z,Ve=G,dt=H,Ue=te,Qe=B,zn=V,Cn=Y,Vn=k,wn=I,mi=N,Jt=F,ke=0;ke<80;ke++){var je,Mt,Yn=p[ke];if(ke<16)Mt=Yn.high=x[C+ke*2]|0,je=Yn.low=x[C+ke*2+1]|0;else{var gi=p[ke-15],Ie=gi.high,Zt=gi.low,xi=(Ie>>>1|Zt<<31)^(Ie>>>8|Zt<<24)^Ie>>>7,bn=(Zt>>>1|Ie<<31)^(Zt>>>8|Ie<<24)^(Zt>>>7|Ie<<25),be=p[ke-2],Tt=be.high,en=be.low,Un=(Tt>>>19|en<<13)^(Tt<<3|en>>>29)^Tt>>>6,Wn=(en>>>19|Tt<<13)^(en<<3|Tt>>>29)^(en>>>6|Tt<<26),En=p[ke-7],tn=En.high,qn=En.low,rr=p[ke-16],jn=rr.high,sr=rr.low;je=bn+qn,Mt=xi+tn+(je>>>0<bn>>>0?1:0),je=je+Wn,Mt=Mt+Un+(je>>>0<Wn>>>0?1:0),je=je+sr,Mt=Mt+jn+(je>>>0<sr>>>0?1:0),Yn.high=Mt,Yn.low=je}var Sn=Ue&zn^~Ue&Vn,Ft=Qe&Cn^~Qe&wn,_i=$&Ne^$&De^Ne&De,$n=ie&ae^ie&qe^ae&qe,X=($>>>28|ie<<4)^($<<30|ie>>>2)^($<<25|ie>>>7),ar=(ie>>>28|$<<4)^(ie<<30|$>>>2)^(ie<<25|$>>>7),oa=(Ue>>>14|Qe<<18)^(Ue>>>18|Qe<<14)^(Ue<<23|Qe>>>9),_t=(Qe>>>14|Ue<<18)^(Qe>>>18|Ue<<14)^(Qe<<23|Ue>>>9),Xe=u[ke],le=Xe.high,Kn=Xe.low,oe=Jt+_t,nt=mi+oa+(oe>>>0<Jt>>>0?1:0),oe=oe+Ft,nt=nt+Sn+(oe>>>0<Ft>>>0?1:0),oe=oe+Kn,nt=nt+le+(oe>>>0<Kn>>>0?1:0),oe=oe+je,nt=nt+Mt+(oe>>>0<je>>>0?1:0),or=ar+$n,Gn=X+_i+(or>>>0<ar>>>0?1:0);mi=Vn,Jt=wn,Vn=zn,wn=Cn,zn=Ue,Cn=Qe,Qe=dt+oe|0,Ue=Ve+nt+(Qe>>>0<dt>>>0?1:0)|0,Ve=De,dt=qe,De=Ne,qe=ae,Ne=$,ae=ie,ie=oe+or|0,$=nt+Gn+(ie>>>0<oe>>>0?1:0)|0}R=w.low=R+ie,w.high=L+$+(R>>>0<ie>>>0?1:0),K=E.low=K+ae,E.high=W+Ne+(K>>>0<ae>>>0?1:0),z=y.low=z+qe,y.high=T+De+(z>>>0<qe>>>0?1:0),H=v.low=H+dt,v.high=G+Ve+(H>>>0<dt>>>0?1:0),B=D.low=B+Qe,D.high=te+Ue+(B>>>0<Qe>>>0?1:0),Y=S.low=Y+Cn,S.high=V+zn+(Y>>>0<Cn>>>0?1:0),I=A.low=I+wn,A.high=k+Vn+(I>>>0<wn>>>0?1:0),F=M.low=F+Jt,M.high=N+mi+(F>>>0<Jt>>>0?1:0)},_doFinalize:function(){var x=this._data,C=x.words,_=this._nDataBytes*8,w=x.sigBytes*8;C[w>>>5]|=128<<24-w%32,C[(w+128>>>10<<5)+30]=Math.floor(_/4294967296),C[(w+128>>>10<<5)+31]=_,x.sigBytes=C.length*4,this._process();var E=this._hash.toX32();return E},clone:function(){var x=n.clone.call(this);return x._hash=this._hash.clone(),x},blockSize:1024/32});e.SHA512=n._createHelper(g),e.HmacSHA512=n._createHmacHelper(g)})(),i.SHA512})});var Zd=de((Cs,Jd)=>{"use strict";(function(i,e,t){typeof Cs=="object"?Jd.exports=Cs=e(pe(),Zi(),Mo()):typeof define=="function"&&define.amd?define(["./core","./x64-core","./sha512"],e):e(i.CryptoJS)})(Cs,function(i){return(function(){var e=i,t=e.x64,n=t.Word,s=t.WordArray,a=e.algo,d=a.SHA512,c=a.SHA384=d.extend({_doReset:function(){this._hash=new s.init([new n.init(3418070365,3238371032),new n.init(1654270250,914150663),new n.init(2438529370,812702999),new n.init(355462360,4144912697),new n.init(1731405415,4290775857),new n.init(2394180231,1750603025),new n.init(3675008525,1694076839),new n.init(1203062813,3204075428)])},_doFinalize:function(){var h=d._doFinalize.call(this);return h.sigBytes-=16,h}});e.SHA384=d._createHelper(c),e.HmacSHA384=d._createHmacHelper(c)})(),i.SHA384})});var tf=de((ws,ef)=>{"use strict";(function(i,e,t){typeof ws=="object"?ef.exports=ws=e(pe(),Zi()):typeof define=="function"&&define.amd?define(["./core","./x64-core"],e):e(i.CryptoJS)})(ws,function(i){return(function(e){var t=i,n=t.lib,s=n.WordArray,a=n.Hasher,d=t.x64,c=d.Word,h=t.algo,u=[],p=[],g=[];(function(){for(var _=1,w=0,E=0;E<24;E++){u[_+5*w]=(E+1)*(E+2)/2%64;var y=w%5,v=(2*_+3*w)%5;_=y,w=v}for(var _=0;_<5;_++)for(var w=0;w<5;w++)p[_+5*w]=w+(2*_+3*w)%5*5;for(var D=1,S=0;S<24;S++){for(var A=0,M=0,L=0;L<7;L++){if(D&1){var R=(1<<L)-1;R<32?M^=1<<R:A^=1<<R-32}D&128?D=D<<1^113:D<<=1}g[S]=c.create(A,M)}})();var x=[];(function(){for(var _=0;_<25;_++)x[_]=c.create()})();var C=h.SHA3=a.extend({cfg:a.cfg.extend({outputLength:512}),_doReset:function(){for(var _=this._state=[],w=0;w<25;w++)_[w]=new c.init;this.blockSize=(1600-2*this.cfg.outputLength)/32},_doProcessBlock:function(_,w){for(var E=this._state,y=this.blockSize/2,v=0;v<y;v++){var D=_[w+2*v],S=_[w+2*v+1];D=(D<<8|D>>>24)&16711935|(D<<24|D>>>8)&4278255360,S=(S<<8|S>>>24)&16711935|(S<<24|S>>>8)&4278255360;var A=E[v];A.high^=S,A.low^=D}for(var M=0;M<24;M++){for(var L=0;L<5;L++){for(var R=0,W=0,K=0;K<5;K++){var A=E[L+5*K];R^=A.high,W^=A.low}var T=x[L];T.high=R,T.low=W}for(var L=0;L<5;L++)for(var z=x[(L+4)%5],G=x[(L+1)%5],H=G.high,te=G.low,R=z.high^(H<<1|te>>>31),W=z.low^(te<<1|H>>>31),K=0;K<5;K++){var A=E[L+5*K];A.high^=R,A.low^=W}for(var B=1;B<25;B++){var R,W,A=E[B],V=A.high,Y=A.low,k=u[B];k<32?(R=V<<k|Y>>>32-k,W=Y<<k|V>>>32-k):(R=Y<<k-32|V>>>64-k,W=V<<k-32|Y>>>64-k);var I=x[p[B]];I.high=R,I.low=W}var N=x[0],F=E[0];N.high=F.high,N.low=F.low;for(var L=0;L<5;L++)for(var K=0;K<5;K++){var B=L+5*K,A=E[B],$=x[B],ie=x[(L+1)%5+5*K],Ne=x[(L+2)%5+5*K];A.high=$.high^~ie.high&Ne.high,A.low=$.low^~ie.low&Ne.low}var A=E[0],ae=g[M];A.high^=ae.high,A.low^=ae.low}},_doFinalize:function(){var _=this._data,w=_.words,E=this._nDataBytes*8,y=_.sigBytes*8,v=this.blockSize*32;w[y>>>5]|=1<<24-y%32,w[(e.ceil((y+1)/v)*v>>>5)-1]|=128,_.sigBytes=w.length*4,this._process();for(var D=this._state,S=this.cfg.outputLength/8,A=S/8,M=[],L=0;L<A;L++){var R=D[L],W=R.high,K=R.low;W=(W<<8|W>>>24)&16711935|(W<<24|W>>>8)&4278255360,K=(K<<8|K>>>24)&16711935|(K<<24|K>>>8)&4278255360,M.push(K),M.push(W)}return new s.init(M,S)},clone:function(){for(var _=a.clone.call(this),w=_._state=this._state.slice(0),E=0;E<25;E++)w[E]=w[E].clone();return _}});t.SHA3=a._createHelper(C),t.HmacSHA3=a._createHmacHelper(C)})(Math),i.SHA3})});var rf=de((bs,nf)=>{"use strict";(function(i,e){typeof bs=="object"?nf.exports=bs=e(pe()):typeof define=="function"&&define.amd?define(["./core"],e):e(i.CryptoJS)})(bs,function(i){return(function(e){var t=i,n=t.lib,s=n.WordArray,a=n.Hasher,d=t.algo,c=s.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),h=s.create([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]),u=s.create([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]),p=s.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),g=s.create([0,1518500249,1859775393,2400959708,2840853838]),x=s.create([1352829926,1548603684,1836072691,2053994217,0]),C=d.RIPEMD160=a.extend({_doReset:function(){this._hash=s.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(S,A){for(var M=0;M<16;M++){var L=A+M,R=S[L];S[L]=(R<<8|R>>>24)&16711935|(R<<24|R>>>8)&4278255360}var W=this._hash.words,K=g.words,T=x.words,z=c.words,G=h.words,H=u.words,te=p.words,B,V,Y,k,I,N,F,$,ie,Ne;N=B=W[0],F=V=W[1],$=Y=W[2],ie=k=W[3],Ne=I=W[4];for(var ae,M=0;M<80;M+=1)ae=B+S[A+z[M]]|0,M<16?ae+=_(V,Y,k)+K[0]:M<32?ae+=w(V,Y,k)+K[1]:M<48?ae+=E(V,Y,k)+K[2]:M<64?ae+=y(V,Y,k)+K[3]:ae+=v(V,Y,k)+K[4],ae=ae|0,ae=D(ae,H[M]),ae=ae+I|0,B=I,I=k,k=D(Y,10),Y=V,V=ae,ae=N+S[A+G[M]]|0,M<16?ae+=v(F,$,ie)+T[0]:M<32?ae+=y(F,$,ie)+T[1]:M<48?ae+=E(F,$,ie)+T[2]:M<64?ae+=w(F,$,ie)+T[3]:ae+=_(F,$,ie)+T[4],ae=ae|0,ae=D(ae,te[M]),ae=ae+Ne|0,N=Ne,Ne=ie,ie=D($,10),$=F,F=ae;ae=W[1]+Y+ie|0,W[1]=W[2]+k+Ne|0,W[2]=W[3]+I+N|0,W[3]=W[4]+B+F|0,W[4]=W[0]+V+$|0,W[0]=ae},_doFinalize:function(){var S=this._data,A=S.words,M=this._nDataBytes*8,L=S.sigBytes*8;A[L>>>5]|=128<<24-L%32,A[(L+64>>>9<<4)+14]=(M<<8|M>>>24)&16711935|(M<<24|M>>>8)&4278255360,S.sigBytes=(A.length+1)*4,this._process();for(var R=this._hash,W=R.words,K=0;K<5;K++){var T=W[K];W[K]=(T<<8|T>>>24)&16711935|(T<<24|T>>>8)&4278255360}return R},clone:function(){var S=a.clone.call(this);return S._hash=this._hash.clone(),S}});function _(S,A,M){return S^A^M}function w(S,A,M){return S&A|~S&M}function E(S,A,M){return(S|~A)^M}function y(S,A,M){return S&M|A&~M}function v(S,A,M){return S^(A|~M)}function D(S,A){return S<<A|S>>>32-A}t.RIPEMD160=a._createHelper(C),t.HmacRIPEMD160=a._createHmacHelper(C)})(Math),i.RIPEMD160})});var Ss=de((Es,sf)=>{"use strict";(function(i,e){typeof Es=="object"?sf.exports=Es=e(pe()):typeof define=="function"&&define.amd?define(["./core"],e):e(i.CryptoJS)})(Es,function(i){(function(){var e=i,t=e.lib,n=t.Base,s=e.enc,a=s.Utf8,d=e.algo,c=d.HMAC=n.extend({init:function(h,u){h=this._hasher=new h.init,typeof u=="string"&&(u=a.parse(u));var p=h.blockSize,g=p*4;u.sigBytes>g&&(u=h.finalize(u)),u.clamp();for(var x=this._oKey=u.clone(),C=this._iKey=u.clone(),_=x.words,w=C.words,E=0;E<p;E++)_[E]^=1549556828,w[E]^=909522486;x.sigBytes=C.sigBytes=g,this.reset()},reset:function(){var h=this._hasher;h.reset(),h.update(this._iKey)},update:function(h){return this._hasher.update(h),this},finalize:function(h){var u=this._hasher,p=u.finalize(h);u.reset();var g=u.finalize(this._oKey.clone().concat(p));return g}})})()})});var of=de((Ds,af)=>{"use strict";(function(i,e,t){typeof Ds=="object"?af.exports=Ds=e(pe(),_s(),Ss()):typeof define=="function"&&define.amd?define(["./core","./sha256","./hmac"],e):e(i.CryptoJS)})(Ds,function(i){return(function(){var e=i,t=e.lib,n=t.Base,s=t.WordArray,a=e.algo,d=a.SHA256,c=a.HMAC,h=a.PBKDF2=n.extend({cfg:n.extend({keySize:128/32,hasher:d,iterations:25e4}),init:function(u){this.cfg=this.cfg.extend(u)},compute:function(u,p){for(var g=this.cfg,x=c.create(g.hasher,u),C=s.create(),_=s.create([1]),w=C.words,E=_.words,y=g.keySize,v=g.iterations;w.length<y;){var D=x.update(p).finalize(_);x.reset();for(var S=D.words,A=S.length,M=D,L=1;L<v;L++){M=x.finalize(M),x.reset();for(var R=M.words,W=0;W<A;W++)S[W]^=R[W]}C.concat(D),E[0]++}return C.sigBytes=y*4,C}});e.PBKDF2=function(u,p,g){return h.create(g).compute(u,p)}})(),i.PBKDF2})});var Gt=de((Ms,cf)=>{"use strict";(function(i,e,t){typeof Ms=="object"?cf.exports=Ms=e(pe(),Do(),Ss()):typeof define=="function"&&define.amd?define(["./core","./sha1","./hmac"],e):e(i.CryptoJS)})(Ms,function(i){return(function(){var e=i,t=e.lib,n=t.Base,s=t.WordArray,a=e.algo,d=a.MD5,c=a.EvpKDF=n.extend({cfg:n.extend({keySize:128/32,hasher:d,iterations:1}),init:function(h){this.cfg=this.cfg.extend(h)},compute:function(h,u){for(var p,g=this.cfg,x=g.hasher.create(),C=s.create(),_=C.words,w=g.keySize,E=g.iterations;_.length<w;){p&&x.update(p),p=x.update(h).finalize(u),x.reset();for(var y=1;y<E;y++)p=x.finalize(p),x.reset();C.concat(p)}return C.sigBytes=w*4,C}});e.EvpKDF=function(h,u,p){return c.create(p).compute(h,u)}})(),i.EvpKDF})});var ze=de((As,lf)=>{"use strict";(function(i,e,t){typeof As=="object"?lf.exports=As=e(pe(),Gt()):typeof define=="function"&&define.amd?define(["./core","./evpkdf"],e):e(i.CryptoJS)})(As,function(i){i.lib.Cipher||(function(e){var t=i,n=t.lib,s=n.Base,a=n.WordArray,d=n.BufferedBlockAlgorithm,c=t.enc,h=c.Utf8,u=c.Base64,p=t.algo,g=p.EvpKDF,x=n.Cipher=d.extend({cfg:s.extend(),createEncryptor:function(T,z){return this.create(this._ENC_XFORM_MODE,T,z)},createDecryptor:function(T,z){return this.create(this._DEC_XFORM_MODE,T,z)},init:function(T,z,G){this.cfg=this.cfg.extend(G),this._xformMode=T,this._key=z,this.reset()},reset:function(){d.reset.call(this),this._doReset()},process:function(T){return this._append(T),this._process()},finalize:function(T){T&&this._append(T);var z=this._doFinalize();return z},keySize:128/32,ivSize:128/32,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:(function(){function T(z){return typeof z=="string"?K:L}return function(z){return{encrypt:function(G,H,te){return T(H).encrypt(z,G,H,te)},decrypt:function(G,H,te){return T(H).decrypt(z,G,H,te)}}}})()}),C=n.StreamCipher=x.extend({_doFinalize:function(){var T=this._process(!0);return T},blockSize:1}),_=t.mode={},w=n.BlockCipherMode=s.extend({createEncryptor:function(T,z){return this.Encryptor.create(T,z)},createDecryptor:function(T,z){return this.Decryptor.create(T,z)},init:function(T,z){this._cipher=T,this._iv=z}}),E=_.CBC=(function(){var T=w.extend();T.Encryptor=T.extend({processBlock:function(G,H){var te=this._cipher,B=te.blockSize;z.call(this,G,H,B),te.encryptBlock(G,H),this._prevBlock=G.slice(H,H+B)}}),T.Decryptor=T.extend({processBlock:function(G,H){var te=this._cipher,B=te.blockSize,V=G.slice(H,H+B);te.decryptBlock(G,H),z.call(this,G,H,B),this._prevBlock=V}});function z(G,H,te){var B,V=this._iv;V?(B=V,this._iv=e):B=this._prevBlock;for(var Y=0;Y<te;Y++)G[H+Y]^=B[Y]}return T})(),y=t.pad={},v=y.Pkcs7={pad:function(T,z){for(var G=z*4,H=G-T.sigBytes%G,te=H<<24|H<<16|H<<8|H,B=[],V=0;V<H;V+=4)B.push(te);var Y=a.create(B,H);T.concat(Y)},unpad:function(T){var z=T.words[T.sigBytes-1>>>2]&255;T.sigBytes-=z}},D=n.BlockCipher=x.extend({cfg:x.cfg.extend({mode:E,padding:v}),reset:function(){var T;x.reset.call(this);var z=this.cfg,G=z.iv,H=z.mode;this._xformMode==this._ENC_XFORM_MODE?T=H.createEncryptor:(T=H.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==T?this._mode.init(this,G&&G.words):(this._mode=T.call(H,this,G&&G.words),this._mode.__creator=T)},_doProcessBlock:function(T,z){this._mode.processBlock(T,z)},_doFinalize:function(){var T,z=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(z.pad(this._data,this.blockSize),T=this._process(!0)):(T=this._process(!0),z.unpad(T)),T},blockSize:128/32}),S=n.CipherParams=s.extend({init:function(T){this.mixIn(T)},toString:function(T){return(T||this.formatter).stringify(this)}}),A=t.format={},M=A.OpenSSL={stringify:function(T){var z,G=T.ciphertext,H=T.salt;return H?z=a.create([1398893684,1701076831]).concat(H).concat(G):z=G,z.toString(u)},parse:function(T){var z,G=u.parse(T),H=G.words;return H[0]==1398893684&&H[1]==1701076831&&(z=a.create(H.slice(2,4)),H.splice(0,4),G.sigBytes-=16),S.create({ciphertext:G,salt:z})}},L=n.SerializableCipher=s.extend({cfg:s.extend({format:M}),encrypt:function(T,z,G,H){H=this.cfg.extend(H);var te=T.createEncryptor(G,H),B=te.finalize(z),V=te.cfg;return S.create({ciphertext:B,key:G,iv:V.iv,algorithm:T,mode:V.mode,padding:V.padding,blockSize:T.blockSize,formatter:H.format})},decrypt:function(T,z,G,H){H=this.cfg.extend(H),z=this._parse(z,H.format);var te=T.createDecryptor(G,H).finalize(z.ciphertext);return te},_parse:function(T,z){return typeof T=="string"?z.parse(T,this):T}}),R=t.kdf={},W=R.OpenSSL={execute:function(T,z,G,H,te){if(H||(H=a.random(64/8)),te)var B=g.create({keySize:z+G,hasher:te}).compute(T,H);else var B=g.create({keySize:z+G}).compute(T,H);var V=a.create(B.words.slice(z),G*4);return B.sigBytes=z*4,S.create({key:B,iv:V,salt:H})}},K=n.PasswordBasedCipher=L.extend({cfg:L.cfg.extend({kdf:W}),encrypt:function(T,z,G,H){H=this.cfg.extend(H);var te=H.kdf.execute(G,T.keySize,T.ivSize,H.salt,H.hasher);H.iv=te.iv;var B=L.encrypt.call(this,T,z,te.key,H);return B.mixIn(te),B},decrypt:function(T,z,G,H){H=this.cfg.extend(H),z=this._parse(z,H.format);var te=H.kdf.execute(G,T.keySize,T.ivSize,z.salt,H.hasher);H.iv=te.iv;var B=L.decrypt.call(this,T,z,te.key,H);return B}})})()})});var ff=de((ks,df)=>{"use strict";(function(i,e,t){typeof ks=="object"?df.exports=ks=e(pe(),ze()):typeof define=="function"&&define.amd?define(["./core","./cipher-core"],e):e(i.CryptoJS)})(ks,function(i){return i.mode.CFB=(function(){var e=i.lib.BlockCipherMode.extend();e.Encryptor=e.extend({processBlock:function(n,s){var a=this._cipher,d=a.blockSize;t.call(this,n,s,d,a),this._prevBlock=n.slice(s,s+d)}}),e.Decryptor=e.extend({processBlock:function(n,s){var a=this._cipher,d=a.blockSize,c=n.slice(s,s+d);t.call(this,n,s,d,a),this._prevBlock=c}});function t(n,s,a,d){var c,h=this._iv;h?(c=h.slice(0),this._iv=void 0):c=this._prevBlock,d.encryptBlock(c,0);for(var u=0;u<a;u++)n[s+u]^=c[u]}return e})(),i.mode.CFB})});var uf=de((Ps,hf)=>{"use strict";(function(i,e,t){typeof Ps=="object"?hf.exports=Ps=e(pe(),ze()):typeof define=="function"&&define.amd?define(["./core","./cipher-core"],e):e(i.CryptoJS)})(Ps,function(i){return i.mode.CTR=(function(){var e=i.lib.BlockCipherMode.extend(),t=e.Encryptor=e.extend({processBlock:function(n,s){var a=this._cipher,d=a.blockSize,c=this._iv,h=this._counter;c&&(h=this._counter=c.slice(0),this._iv=void 0);var u=h.slice(0);a.encryptBlock(u,0),h[d-1]=h[d-1]+1|0;for(var p=0;p<d;p++)n[s+p]^=u[p]}});return e.Decryptor=t,e})(),i.mode.CTR})});var mf=de((Os,pf)=>{"use strict";(function(i,e,t){typeof Os=="object"?pf.exports=Os=e(pe(),ze()):typeof define=="function"&&define.amd?define(["./core","./cipher-core"],e):e(i.CryptoJS)})(Os,function(i){return i.mode.CTRGladman=(function(){var e=i.lib.BlockCipherMode.extend();function t(a){if((a>>24&255)===255){var d=a>>16&255,c=a>>8&255,h=a&255;d===255?(d=0,c===255?(c=0,h===255?h=0:++h):++c):++d,a=0,a+=d<<16,a+=c<<8,a+=h}else a+=1<<24;return a}function n(a){return(a[0]=t(a[0]))===0&&(a[1]=t(a[1])),a}var s=e.Encryptor=e.extend({processBlock:function(a,d){var c=this._cipher,h=c.blockSize,u=this._iv,p=this._counter;u&&(p=this._counter=u.slice(0),this._iv=void 0),n(p);var g=p.slice(0);c.encryptBlock(g,0);for(var x=0;x<h;x++)a[d+x]^=g[x]}});return e.Decryptor=s,e})(),i.mode.CTRGladman})});var xf=de((Ts,gf)=>{"use strict";(function(i,e,t){typeof Ts=="object"?gf.exports=Ts=e(pe(),ze()):typeof define=="function"&&define.amd?define(["./core","./cipher-core"],e):e(i.CryptoJS)})(Ts,function(i){return i.mode.OFB=(function(){var e=i.lib.BlockCipherMode.extend(),t=e.Encryptor=e.extend({processBlock:function(n,s){var a=this._cipher,d=a.blockSize,c=this._iv,h=this._keystream;c&&(h=this._keystream=c.slice(0),this._iv=void 0),a.encryptBlock(h,0);for(var u=0;u<d;u++)n[s+u]^=h[u]}});return e.Decryptor=t,e})(),i.mode.OFB})});var yf=de((Fs,_f)=>{"use strict";(function(i,e,t){typeof Fs=="object"?_f.exports=Fs=e(pe(),ze()):typeof define=="function"&&define.amd?define(["./core","./cipher-core"],e):e(i.CryptoJS)})(Fs,function(i){return i.mode.ECB=(function(){var e=i.lib.BlockCipherMode.extend();return e.Encryptor=e.extend({processBlock:function(t,n){this._cipher.encryptBlock(t,n)}}),e.Decryptor=e.extend({processBlock:function(t,n){this._cipher.decryptBlock(t,n)}}),e})(),i.mode.ECB})});var Cf=de((Bs,vf)=>{"use strict";(function(i,e,t){typeof Bs=="object"?vf.exports=Bs=e(pe(),ze()):typeof define=="function"&&define.amd?define(["./core","./cipher-core"],e):e(i.CryptoJS)})(Bs,function(i){return i.pad.AnsiX923={pad:function(e,t){var n=e.sigBytes,s=t*4,a=s-n%s,d=n+a-1;e.clamp(),e.words[d>>>2]|=a<<24-d%4*8,e.sigBytes+=a},unpad:function(e){var t=e.words[e.sigBytes-1>>>2]&255;e.sigBytes-=t}},i.pad.Ansix923})});var bf=de((Is,wf)=>{"use strict";(function(i,e,t){typeof Is=="object"?wf.exports=Is=e(pe(),ze()):typeof define=="function"&&define.amd?define(["./core","./cipher-core"],e):e(i.CryptoJS)})(Is,function(i){return i.pad.Iso10126={pad:function(e,t){var n=t*4,s=n-e.sigBytes%n;e.concat(i.lib.WordArray.random(s-1)).concat(i.lib.WordArray.create([s<<24],1))},unpad:function(e){var t=e.words[e.sigBytes-1>>>2]&255;e.sigBytes-=t}},i.pad.Iso10126})});var Sf=de((Rs,Ef)=>{"use strict";(function(i,e,t){typeof Rs=="object"?Ef.exports=Rs=e(pe(),ze()):typeof define=="function"&&define.amd?define(["./core","./cipher-core"],e):e(i.CryptoJS)})(Rs,function(i){return i.pad.Iso97971={pad:function(e,t){e.concat(i.lib.WordArray.create([2147483648],1)),i.pad.ZeroPadding.pad(e,t)},unpad:function(e){i.pad.ZeroPadding.unpad(e),e.sigBytes--}},i.pad.Iso97971})});var Mf=de((Ns,Df)=>{"use strict";(function(i,e,t){typeof Ns=="object"?Df.exports=Ns=e(pe(),ze()):typeof define=="function"&&define.amd?define(["./core","./cipher-core"],e):e(i.CryptoJS)})(Ns,function(i){return i.pad.ZeroPadding={pad:function(e,t){var n=t*4;e.clamp(),e.sigBytes+=n-(e.sigBytes%n||n)},unpad:function(e){for(var t=e.words,n=e.sigBytes-1,n=e.sigBytes-1;n>=0;n--)if(t[n>>>2]>>>24-n%4*8&255){e.sigBytes=n+1;break}}},i.pad.ZeroPadding})});var kf=de((Ls,Af)=>{"use strict";(function(i,e,t){typeof Ls=="object"?Af.exports=Ls=e(pe(),ze()):typeof define=="function"&&define.amd?define(["./core","./cipher-core"],e):e(i.CryptoJS)})(Ls,function(i){return i.pad.NoPadding={pad:function(){},unpad:function(){}},i.pad.NoPadding})});var Of=de((Hs,Pf)=>{"use strict";(function(i,e,t){typeof Hs=="object"?Pf.exports=Hs=e(pe(),ze()):typeof define=="function"&&define.amd?define(["./core","./cipher-core"],e):e(i.CryptoJS)})(Hs,function(i){return(function(e){var t=i,n=t.lib,s=n.CipherParams,a=t.enc,d=a.Hex,c=t.format,h=c.Hex={stringify:function(u){return u.ciphertext.toString(d)},parse:function(u){var p=d.parse(u);return s.create({ciphertext:p})}}})(),i.format.Hex})});var Ff=de((zs,Tf)=>{"use strict";(function(i,e,t){typeof zs=="object"?Tf.exports=zs=e(pe(),mn(),gn(),Gt(),ze()):typeof define=="function"&&define.amd?define(["./core","./enc-base64","./md5","./evpkdf","./cipher-core"],e):e(i.CryptoJS)})(zs,function(i){return(function(){var e=i,t=e.lib,n=t.BlockCipher,s=e.algo,a=[],d=[],c=[],h=[],u=[],p=[],g=[],x=[],C=[],_=[];(function(){for(var y=[],v=0;v<256;v++)v<128?y[v]=v<<1:y[v]=v<<1^283;for(var D=0,S=0,v=0;v<256;v++){var A=S^S<<1^S<<2^S<<3^S<<4;A=A>>>8^A&255^99,a[D]=A,d[A]=D;var M=y[D],L=y[M],R=y[L],W=y[A]*257^A*16843008;c[D]=W<<24|W>>>8,h[D]=W<<16|W>>>16,u[D]=W<<8|W>>>24,p[D]=W;var W=R*16843009^L*65537^M*257^D*16843008;g[A]=W<<24|W>>>8,x[A]=W<<16|W>>>16,C[A]=W<<8|W>>>24,_[A]=W,D?(D=M^y[y[y[R^M]]],S^=y[y[S]]):D=S=1}})();var w=[0,1,2,4,8,16,32,64,128,27,54],E=s.AES=n.extend({_doReset:function(){var y;if(!(this._nRounds&&this._keyPriorReset===this._key)){for(var v=this._keyPriorReset=this._key,D=v.words,S=v.sigBytes/4,A=this._nRounds=S+6,M=(A+1)*4,L=this._keySchedule=[],R=0;R<M;R++)R<S?L[R]=D[R]:(y=L[R-1],R%S?S>6&&R%S==4&&(y=a[y>>>24]<<24|a[y>>>16&255]<<16|a[y>>>8&255]<<8|a[y&255]):(y=y<<8|y>>>24,y=a[y>>>24]<<24|a[y>>>16&255]<<16|a[y>>>8&255]<<8|a[y&255],y^=w[R/S|0]<<24),L[R]=L[R-S]^y);for(var W=this._invKeySchedule=[],K=0;K<M;K++){var R=M-K;if(K%4)var y=L[R];else var y=L[R-4];K<4||R<=4?W[K]=y:W[K]=g[a[y>>>24]]^x[a[y>>>16&255]]^C[a[y>>>8&255]]^_[a[y&255]]}}},encryptBlock:function(y,v){this._doCryptBlock(y,v,this._keySchedule,c,h,u,p,a)},decryptBlock:function(y,v){var D=y[v+1];y[v+1]=y[v+3],y[v+3]=D,this._doCryptBlock(y,v,this._invKeySchedule,g,x,C,_,d);var D=y[v+1];y[v+1]=y[v+3],y[v+3]=D},_doCryptBlock:function(y,v,D,S,A,M,L,R){for(var W=this._nRounds,K=y[v]^D[0],T=y[v+1]^D[1],z=y[v+2]^D[2],G=y[v+3]^D[3],H=4,te=1;te<W;te++){var B=S[K>>>24]^A[T>>>16&255]^M[z>>>8&255]^L[G&255]^D[H++],V=S[T>>>24]^A[z>>>16&255]^M[G>>>8&255]^L[K&255]^D[H++],Y=S[z>>>24]^A[G>>>16&255]^M[K>>>8&255]^L[T&255]^D[H++],k=S[G>>>24]^A[K>>>16&255]^M[T>>>8&255]^L[z&255]^D[H++];K=B,T=V,z=Y,G=k}var B=(R[K>>>24]<<24|R[T>>>16&255]<<16|R[z>>>8&255]<<8|R[G&255])^D[H++],V=(R[T>>
vendor: 964 bytes, line 4
4>24]<<24|R[z>>>16&255]<<16|R[G>>>8&255]<<8|R[K&255])^D[H++],Y=(R[z>>>24]<<24|R[G>>>16&255]<<16|R[K>>>8&255]<<8|R[T&255])^D[H++],k=(R[G>>>24]<<24|R[K>>>16&255]<<16|R[T>>>8&255]<<8|R[z&255])^D[H++];y[v]=B,y[v+1]=V,y[v+2]=Y,y[v+3]=k},keySize:256/32});e.AES=n._createHelper(E)})(),i.AES})});var If=de((Vs,Bf)=>{"use strict";(function(i,e,t){typeof Vs=="object"?Bf.exports=Vs=e(pe(),mn(),gn(),Gt(),ze()):typeof define=="function"&&define.amd?define(["./core","./enc-base64","./md5","./evpkdf","./cipher-core"],e):e(i.CryptoJS)})(Vs,function(i){return(function(){var e=i,t=e.lib,n=t.WordArray,s=t.BlockCipher,a=e.algo,d=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4],c=[14,17,11,24,1,5,3,28,15,6,21,10,23,19,12,4,26,8,16,7,27,20,13,2,41,52,31,37,47,55,30,40,51,45,33,48,44,49,39,56,34,53,46,42,50,36,29,32],h=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],u
vendor: 7,629 bytes, line 4
4=[{0:8421888,268435456:32768,536870912:8421378,805306368:2,1073741824:512,1342177280:8421890,1610612736:8389122,1879048192:8388608,2147483648:514,2415919104:8389120,2684354560:33280,2952790016:8421376,3221225472:32770,3489660928:8388610,3758096384:0,4026531840:33282,134217728:0,402653184:8421890,671088640:33282,939524096:32768,1207959552:8421888,1476395008:512,1744830464:8421378,2013265920:2,2281701376:8389120,2550136832:33280,2818572288:8421376,3087007744:8389122,3355443200:8388610,3623878656:32770,3892314112:514,4160749568:8388608,1:32768,268435457:2,536870913:8421888,805306369:8388608,1073741825:8421378,1342177281:33280,1610612737:512,1879048193:8389122,2147483649:8421890,2415919105:8421376,2684354561:8388610,2952790017:33282,3221225473:514,3489660929:8389120,3758096385:32770,4026531841:0,134217729:8421890,402653185:8421376,671088641:8388608,939524097:512,1207959553:32768,1476395009:8388610,1744830465:2,2013265921:33282,2281701377:32770,2550136833:8389122,2818572289:514,3087007745:8421888,3355443201:8389120,3623878657:0,3892314113:33280,4160749569:8421378},{0:1074282512,16777216:16384,33554432:524288,50331648:1074266128,67108864:1073741840,83886080:1074282496,100663296:1073758208,117440512:16,134217728:540672,150994944:1073758224,167772160:1073741824,184549376:540688,201326592:524304,218103808:0,234881024:16400,251658240:1074266112,8388608:1073758208,25165824:540688,41943040:16,58720256:1073758224,75497472:1074282512,92274688:1073741824,109051904:524288,125829120:1074266128,142606336:524304,159383552:0,176160768:16384,192937984:1074266112,209715200:1073741840,226492416:540672,243269632:1074282496,260046848:16400,268435456:0,285212672:1074266128,301989888:1073758224,318767104:1074282496,335544320:1074266112,352321536:16,369098752:540688,385875968:16384,402653184:16400,419430400:524288,436207616:524304,452984832:1073741840,469762048:540672,486539264:1073758208,503316480:1073741824,520093696:1074282512,276824064:540688,293601280:524288,310378496:1074266112,327155712:16384,343932928:1073758208,360710144:1074282512,377487360:16,394264576:1073741824,411041792:1074282496,427819008:1073741840,444596224:1073758224,461373440:524304,478150656:0,494927872:16400,511705088:1074266128,528482304:540672},{0:260,1048576:0,2097152:67109120,3145728:65796,4194304:65540,5242880:67108868,6291456:67174660,7340032:67174400,8388608:67108864,9437184:67174656,10485760:65792,11534336:67174404,12582912:67109124,13631488:65536,14680064:4,15728640:256,524288:67174656,1572864:67174404,2621440:0,3670016:67109120,4718592:67108868,5767168:65536,6815744:65540,7864320:260,8912896:4,9961472:256,11010048:67174400,12058624:65796,13107200:65792,14155776:67109124,15204352:67174660,16252928:67108864,16777216:67174656,17825792:65540,18874368:65536,19922944:67109120,20971520:256,22020096:67174660,23068672:67108868,24117248:0,25165824:67109124,26214400:67108864,27262976:4,28311552:65792,29360128:67174400,30408704:260,31457280:65796,32505856:67174404,17301504:67108864,18350080:260,19398656:67174656,20447232:0,21495808:65540,22544384:67109120,23592960:256,24641536:67174404,25690112:65536,26738688:67174660,27787264:65796,28835840:67108868,29884416:67109124,30932992:67174400,31981568:4,33030144:65792},{0:2151682048,65536:2147487808,131072:4198464,196608:2151677952,262144:0,327680:4198400,393216:2147483712,458752:4194368,524288:2147483648,589824:4194304,655360:64,720896:2147487744,786432:2151678016,851968:4160,917504:4096,983040:2151682112,32768:2147487808,98304:64,163840:2151678016,229376:2147487744,294912:4198400,360448:2151682112,425984:0,491520:2151677952,557056:4096,622592:2151682048,688128:4194304,753664:4160,819200:2147483648,884736:4194368,950272:4198464,1015808:2147483712,1048576:4194368,1114112:4198400,1179648:2147483712,1245184:0,1310720:4160,1376256:2151678016,1441792:2151682048,1507328:2147487808,1572864:2151682112,1638400:2147483648,1703936:2151677952,1769472:4198464,1835008:2147487744,1900544:4194304,1966080:64,2031616:4096,1081344:2151677952,1146880:2151682112,1212416:0,1277952:4198400,1343488:4194368,1409024:2147483648,1474560:2147487808,1540096:64,1605632:2147483712,1671168:4096,1736704:2147487744,1802240:2151678016,1867776:4160,1933312:2151682048,1998848:4194304,2064384:4198464},{0:128,4096:17039360,8192:262144,12288:536870912,16384:537133184,20480:16777344,24576:553648256,28672:262272,32768:16777216,36864:537133056,40960:536871040,45056:553910400,49152:553910272,53248:0,57344:17039488,61440:553648128,2048:17039488,6144:553648256,10240:128,14336:17039360,18432:262144,22528:537133184,26624:553910272,30720:536870912,34816:537133056,38912:0,43008:553910400,47104:16777344,51200:536871040,55296:553648128,59392:16777216,63488:262272,65536:262144,69632:128,73728:536870912,77824:553648256,81920:16777344,86016:553910272,90112:537133184,94208:16777216,98304:553910400,102400:553648128,106496:17039360,110592:537133056,114688:262272,118784:536871040,122880:0,126976:17039488,67584:553648256,71680:16777216,75776:17039360,79872:537133184,83968:536870912,88064:17039488,92160:128,96256:553910272,100352:262272,104448:553910400,108544:0,112640:553648128,116736:16777344,120832:262144,124928:537133056,129024:536871040},{0:268435464,256:8192,512:270532608,768:270540808,1024:268443648,1280:2097152,1536:2097160,1792:268435456,2048:0,2304:268443656,2560:2105344,2816:8,3072:270532616,3328:2105352,3584:8200,3840:270540800,128:270532608,384:270540808,640:8,896:2097152,1152:2105352,1408:268435464,1664:268443648,1920:8200,2176:2097160,2432:8192,2688:268443656,2944:270532616,3200:0,3456:270540800,3712:2105344,3968:268435456,4096:268443648,4352:270532616,4608:270540808,4864:8200,5120:2097152,5376:268435456,5632:268435464,5888:2105344,6144:2105352,6400:0,6656:8,6912:270532608,7168:8192,7424:268443656,7680:270540800,7936:2097160,4224:8,4480:2105344,4736:2097152,4992:268435464,5248:268443648,5504:8200,5760:270540808,6016:270532608,6272:270540800,6528:270532616,6784:8192,7040:2105352,7296:2097160,7552:0,7808:268435456,8064:268443656},{0:1048576,16:33555457,32:1024,48:1049601,64:34604033,80:0,96:1,112:34603009,128:33555456,144:1048577,160:33554433,176:34604032,192:34603008,208:1025,224:1049600,240:33554432,8:34603009,24:0,40:33555457,56:34604032,72:1048576,88:33554433,104:33554432,120:1025,136:1049601,152:33555456,168:34603008,184:1048577,200:1024,216:34604033,232:1,248:1049600,256:33554432,272:1048576,288:33555457,304:34603009,320:1048577,336:33555456,352:34604032,368:1049601,384:1025,400:34604033,416:1049600,432:1,448:0,464:34603008,480:33554433,496:1024,264:1049600,280:33555457,296:34603009,312:1,328:33554432,344:1048576,360:1025,376:34604032,392:33554433,408:34603008,424:0,440:34604033,456:1049601,472:1024,488:33555456,504:1048577},{0:134219808,1:131072,2:134217728,3:32,4:131104,5:134350880,6:134350848,7:2048,8:134348800,9:134219776,10:133120,11:134348832,12:2080,13:0,14:134217760,15:133152,2147483648:2048,2147483649:134350880,2147483650:134219808,2147483651:134217728,2147483652:134348800,2147483653:133120,2147483654:133152,2147483655:32,2147483656:134217760,2147483657:2080,2147483658:131104,2147483659:134350848,2147483660:0,2147483661:134348832,2147483662:134219776,2147483663:131072,16:133152,17:134350848,18:32,19:2048,20:134219776,21:134217760,22:134348832,23:131072,24:0,25:131104,26:134348800,27:134219808,28:134350880,29:133120,30:2080,31:134217728,2147483664:131072,2147483665:2048,2147483666:134348832,2147483667:133152,2147483668:32,2147483669:134348800,2147483670:134217728,2147483671:134219808,2147483672:134350880,2147483673:134217760,2147483674:134219776,2147483675:0,2147483676:133120,2147483677:2080,2147483678:131104,2147483679:134350848}],
vendor: 4,946 bytes, line 4
4p=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],g=a.DES=s.extend({_doReset:function(){for(var w=this._key,E=w.words,y=[],v=0;v<56;v++){var D=d[v]-1;y[v]=E[D>>>5]>>>31-D%32&1}for(var S=this._subKeys=[],A=0;A<16;A++){for(var M=S[A]=[],L=h[A],v=0;v<24;v++)M[v/6|0]|=y[(c[v]-1+L)%28]<<31-v%6,M[4+(v/6|0)]|=y[28+(c[v+24]-1+L)%28]<<31-v%6;M[0]=M[0]<<1|M[0]>>>31;for(var v=1;v<7;v++)M[v]=M[v]>>>(v-1)*4+3;M[7]=M[7]<<5|M[7]>>>27}for(var R=this._invSubKeys=[],v=0;v<16;v++)R[v]=S[15-v]},encryptBlock:function(w,E){this._doCryptBlock(w,E,this._subKeys)},decryptBlock:function(w,E){this._doCryptBlock(w,E,this._invSubKeys)},_doCryptBlock:function(w,E,y){this._lBlock=w[E],this._rBlock=w[E+1],x.call(this,4,252645135),x.call(this,16,65535),C.call(this,2,858993459),C.call(this,8,16711935),x.call(this,1,1431655765);for(var v=0;v<16;v++){for(var D=y[v],S=this._lBlock,A=this._rBlock,M=0,L=0;L<8;L++)M|=u[L][((A^D[L])&p[L])>>>0];this._lBlock=A,this._rBlock=S^M}var R=this._lBlock;this._lBlock=this._rBlock,this._rBlock=R,x.call(this,1,1431655765),C.call(this,8,16711935),C.call(this,2,858993459),x.call(this,16,65535),x.call(this,4,252645135),w[E]=this._lBlock,w[E+1]=this._rBlock},keySize:64/32,ivSize:64/32,blockSize:64/32});function x(w,E){var y=(this._lBlock>>>w^this._rBlock)&E;this._rBlock^=y,this._lBlock^=y<<w}function C(w,E){var y=(this._rBlock>>>w^this._lBlock)&E;this._lBlock^=y,this._rBlock^=y<<w}e.DES=s._createHelper(g);var _=a.TripleDES=s.extend({_doReset:function(){var w=this._key,E=w.words;if(E.length!==2&&E.length!==4&&E.length<6)throw new Error("Invalid key length - 3DES requires the key length to be 64, 128, 192 or >192.");var y=E.slice(0,2),v=E.length<4?E.slice(0,2):E.slice(2,4),D=E.length<6?E.slice(0,2):E.slice(4,6);this._des1=g.createEncryptor(n.create(y)),this._des2=g.createEncryptor(n.create(v)),this._des3=g.createEncryptor(n.create(D))},encryptBlock:function(w,E){this._des1.encryptBlock(w,E),this._des2.decryptBlock(w,E),this._des3.encryptBlock(w,E)},decryptBlock:function(w,E){this._des3.decryptBlock(w,E),this._des2.encryptBlock(w,E),this._des1.decryptBlock(w,E)},keySize:192/32,ivSize:64/32,blockSize:64/32});e.TripleDES=s._createHelper(_)})(),i.TripleDES})});var Nf=de((Ys,Rf)=>{"use strict";(function(i,e,t){typeof Ys=="object"?Rf.exports=Ys=e(pe(),mn(),gn(),Gt(),ze()):typeof define=="function"&&define.amd?define(["./core","./enc-base64","./md5","./evpkdf","./cipher-core"],e):e(i.CryptoJS)})(Ys,function(i){return(function(){var e=i,t=e.lib,n=t.StreamCipher,s=e.algo,a=s.RC4=n.extend({_doReset:function(){for(var h=this._key,u=h.words,p=h.sigBytes,g=this._S=[],x=0;x<256;x++)g[x]=x;for(var x=0,C=0;x<256;x++){var _=x%p,w=u[_>>>2]>>>24-_%4*8&255;C=(C+g[x]+w)%256;var E=g[x];g[x]=g[C],g[C]=E}this._i=this._j=0},_doProcessBlock:function(h,u){h[u]^=d.call(this)},keySize:256/32,ivSize:0});function d(){for(var h=this._S,u=this._i,p=this._j,g=0,x=0;x<4;x++){u=(u+1)%256,p=(p+h[u])%256;var C=h[u];h[u]=h[p],h[p]=C,g|=h[(h[u]+h[p])%256]<<24-x*8}return this._i=u,this._j=p,g}e.RC4=n._createHelper(a);var c=s.RC4Drop=a.extend({cfg:a.cfg.extend({drop:192}),_doReset:function(){a._doReset.call(this);for(var h=this.cfg.drop;h>0;h--)d.call(this)}});e.RC4Drop=n._createHelper(c)})(),i.RC4})});var Hf=de((Us,Lf)=>{"use strict";(function(i,e,t){typeof Us=="object"?Lf.exports=Us=e(pe(),mn(),gn(),Gt(),ze()):typeof define=="function"&&define.amd?define(["./core","./enc-base64","./md5","./evpkdf","./cipher-core"],e):e(i.CryptoJS)})(Us,function(i){return(function(){var e=i,t=e.lib,n=t.StreamCipher,s=e.algo,a=[],d=[],c=[],h=s.Rabbit=n.extend({_doReset:function(){for(var p=this._key.words,g=this.cfg.iv,x=0;x<4;x++)p[x]=(p[x]<<8|p[x]>>>24)&16711935|(p[x]<<24|p[x]>>>8)&4278255360;var C=this._X=[p[0],p[3]<<16|p[2]>>>16,p[1],p[0]<<16|p[3]>>>16,p[2],p[1]<<16|p[0]>>>16,p[3],p[2]<<16|p[1]>>>16],_=this._C=[p[2]<<16|p[2]>>>16,p[0]&4294901760|p[1]&65535,p[3]<<16|p[3]>>>16,p[1]&4294901760|p[2]&65535,p[0]<<16|p[0]>>>16,p[2]&4294901760|p[3]&65535,p[1]<<16|p[1]>>>16,p[3]&4294901760|p[0]&65535];this._b=0;for(var x=0;x<4;x++)u.call(this);for(var x=0;x<8;x++)_[x]^=C[x+4&7];if(g){var w=g.words,E=w[0],y=w[1],v=(E<<8|E>>>24)&16711935|(E<<24|E>>>8)&4278255360,D=(y<<8|y>>>24)&16711935|(y<<24|y>>>8)&4278255360,S=v>>>16|D&4294901760,A=D<<16|v&65535;_[0]^=v,_[1]^=S,_[2]^=D,_[3]^=A,_[4]^=v,_[5]^=S,_[6]^=D,_[7]^=A;for(var x=0;x<4;x++)u.call(this)}},_doProcessBlock:function(p,g){var x=this._X;u.call(this),a[0]=x[0]^x[5]>>>16^x[3]<<16,a[1]=x[2]^x[7]>>>16^x[5]<<16,a[2]=x[4]^x[1]>>>16^x[7]<<16,a[3]=x[6]^x[3]>>>16^x[1]<<16;for(var C=0;C<4;C++)a[C]=(a[C]<<8|a[C]>>>24)&16711935|(a[C]<<24|a[C]>>>8)&4278255360,p[g+C]^=a[C]},blockSize:128/32,ivSize:64/32});function u(){for(var p=this._X,g=this._C,x=0;x<8;x++)d[x]=g[x];g[0]=g[0]+1295307597+this._b|0,g[1]=g[1]+3545052371+(g[0]>>>0<d[0]>>>0?1:0)|0,g[2]=g[2]+886263092+(g[1]>>>0<d[1]>>>0?1:0)|0,g[3]=g[3]+1295307597+(g[2]>>>0<d[2]>>>0?1:0)|0,g[4]=g[4]+3545052371+(g[3]>>>0<d[3]>
vendor: 3,608 bytes, line 4
4>>0?1:0)|0,g[5]=g[5]+886263092+(g[4]>>>0<d[4]>>>0?1:0)|0,g[6]=g[6]+1295307597+(g[5]>>>0<d[5]>>>0?1:0)|0,g[7]=g[7]+3545052371+(g[6]>>>0<d[6]>>>0?1:0)|0,this._b=g[7]>>>0<d[7]>>>0?1:0;for(var x=0;x<8;x++){var C=p[x]+g[x],_=C&65535,w=C>>>16,E=((_*_>>>17)+_*w>>>15)+w*w,y=((C&4294901760)*C|0)+((C&65535)*C|0);c[x]=E^y}p[0]=c[0]+(c[7]<<16|c[7]>>>16)+(c[6]<<16|c[6]>>>16)|0,p[1]=c[1]+(c[0]<<8|c[0]>>>24)+c[7]|0,p[2]=c[2]+(c[1]<<16|c[1]>>>16)+(c[0]<<16|c[0]>>>16)|0,p[3]=c[3]+(c[2]<<8|c[2]>>>24)+c[1]|0,p[4]=c[4]+(c[3]<<16|c[3]>>>16)+(c[2]<<16|c[2]>>>16)|0,p[5]=c[5]+(c[4]<<8|c[4]>>>24)+c[3]|0,p[6]=c[6]+(c[5]<<16|c[5]>>>16)+(c[4]<<16|c[4]>>>16)|0,p[7]=c[7]+(c[6]<<8|c[6]>>>24)+c[5]|0}e.Rabbit=n._createHelper(h)})(),i.Rabbit})});var Vf=de((Ws,zf)=>{"use strict";(function(i,e,t){typeof Ws=="object"?zf.exports=Ws=e(pe(),mn(),gn(),Gt(),ze()):typeof define=="function"&&define.amd?define(["./core","./enc-base64","./md5","./evpkdf","./cipher-core"],e):e(i.CryptoJS)})(Ws,function(i){return(function(){var e=i,t=e.lib,n=t.StreamCipher,s=e.algo,a=[],d=[],c=[],h=s.RabbitLegacy=n.extend({_doReset:function(){var p=this._key.words,g=this.cfg.iv,x=this._X=[p[0],p[3]<<16|p[2]>>>16,p[1],p[0]<<16|p[3]>>>16,p[2],p[1]<<16|p[0]>>>16,p[3],p[2]<<16|p[1]>>>16],C=this._C=[p[2]<<16|p[2]>>>16,p[0]&4294901760|p[1]&65535,p[3]<<16|p[3]>>>16,p[1]&4294901760|p[2]&65535,p[0]<<16|p[0]>>>16,p[2]&4294901760|p[3]&65535,p[1]<<16|p[1]>>>16,p[3]&4294901760|p[0]&65535];this._b=0;for(var _=0;_<4;_++)u.call(this);for(var _=0;_<8;_++)C[_]^=x[_+4&7];if(g){var w=g.words,E=w[0],y=w[1],v=(E<<8|E>>>24)&16711935|(E<<24|E>>>8)&4278255360,D=(y<<8|y>>>24)&16711935|(y<<24|y>>>8)&4278255360,S=v>>>16|D&4294901760,A=D<<16|v&65535;C[0]^=v,C[1]^=S,C[2]^=D,C[3]^=A,C[4]^=v,C[5]^=S,C[6]^=D,C[7]^=A;for(var _=0;_<4;_++)u.call(this)}},_doProcessBlock:function(p,g){var x=this._X;u.call(this),a[0]=x[0]^x[5]>>>16^x[3]<<16,a[1]=x[2]^x[7]>>>16^x[5]<<16,a[2]=x[4]^x[1]>>>16^x[7]<<16,a[3]=x[6]^x[3]>>>16^x[1]<<16;for(var C=0;C<4;C++)a[C]=(a[C]<<8|a[C]>>>24)&16711935|(a[C]<<24|a[C]>>>8)&4278255360,p[g+C]^=a[C]},blockSize:128/32,ivSize:64/32});function u(){for(var p=this._X,g=this._C,x=0;x<8;x++)d[x]=g[x];g[0]=g[0]+1295307597+this._b|0,g[1]=g[1]+3545052371+(g[0]>>>0<d[0]>>>0?1:0)|0,g[2]=g[2]+886263092+(g[1]>>>0<d[1]>>>0?1:0)|0,g[3]=g[3]+1295307597+(g[2]>>>0<d[2]>>>0?1:0)|0,g[4]=g[4]+3545052371+(g[3]>>>0<d[3]>>>0?1:0)|0,g[5]=g[5]+886263092+(g[4]>>>0<d[4]>>>0?1:0)|0,g[6]=g[6]+1295307597+(g[5]>>>0<d[5]>>>0?1:0)|0,g[7]=g[7]+3545052371+(g[6]>>>0<d[6]>>>0?1:0)|0,this._b=g[7]>>>0<d[7]>>>0?1:0;for(var x=0;x<8;x++){var C=p[x]+g[x],_=C&65535,w=C>>>16,E=((_*_>>>17)+_*w>>>15)+w*w,y=((C&4294901760)*C|0)+((C&65535)*C|0);c[x]=E^y}p[0]=c[0]+(c[7]<<16|c[7]>>>16)+(c[6]<<16|c[6]>>>16)|0,p[1]=c[1]+(c[0]<<8|c[0]>>>24)+c[7]|0,p[2]=c[2]+(c[1]<<16|c[1]>>>16)+(c[0]<<16|c[0]>>>16)|0,p[3]=c[3]+(c[2]<<8|c[2]>>>24)+c[1]|0,p[4]=c[4]+(c[3]<<16|c[3]>>>16)+(c[2]<<16|c[2]>>>16)|0,p[5]=c[5]+(c[4]<<8|c[4]>>>24)+c[3]|0,p[6]=c[6]+(c[5]<<16|c[5]>>>16)+(c[4]<<16|c[4]>>>16)|0,p[7]=c[7]+(c[6]<<8|c[6]>>>24)+c[5]|0}e.RabbitLegacy=n._createHelper(h)})(),i.RabbitLegacy})});var Uf=de((qs,Yf)=>{"use strict";(function(i,e,t){typeof qs=="object"?Yf.exports=qs=e(pe(),mn(),gn(),Gt(),ze()):typeof define=="function"&&define.amd?define(["./core","./enc-base64","./md5","./evpkdf","./cipher-core"],e):e(i.CryptoJS)})(qs,function(i){return(function(){var e=i,t=e.lib,n=t.BlockCipher,s=e.algo;let a=16,d=[608135816,2242054355,320440878,57701188,2752067618,698298832,137296536,3964562569,1160258022,953160567,3193202383,887688300,3232508343,3380367581,1065670069,3041331479,2450970073,2306472731],c
vendor: 11,067 bytes, line 4
4=[[3509652390,2564797868,805139163,3491422135,3101798381,1780907670,3128725573,4046225305,614570311,3012652279,134345442,2240740374,1667834072,1901547113,2757295779,4103290238,227898511,1921955416,1904987480,2182433518,2069144605,3260701109,2620446009,720527379,3318853667,677414384,3393288472,3101374703,2390351024,1614419982,1822297739,2954791486,3608508353,3174124327,2024746970,1432378464,3864339955,2857741204,1464375394,1676153920,1439316330,715854006,3033291828,289532110,2706671279,2087905683,3018724369,1668267050,732546397,1947742710,3462151702,2609353502,2950085171,1814351708,2050118529,680887927,999245976,1800124847,3300911131,1713906067,1641548236,4213287313,1216130144,1575780402,4018429277,3917837745,3693486850,3949271944,596196993,3549867205,258830323,2213823033,772490370,2760122372,1774776394,2652871518,566650946,4142492826,1728879713,2882767088,1783734482,3629395816,2517608232,2874225571,1861159788,326777828,3124490320,2130389656,2716951837,967770486,1724537150,2185432712,2364442137,1164943284,2105845187,998989502,3765401048,2244026483,1075463327,1455516326,1322494562,910128902,469688178,1117454909,936433444,3490320968,3675253459,1240580251,122909385,2157517691,634681816,4142456567,3825094682,3061402683,2540495037,79693498,3249098678,1084186820,1583128258,426386531,1761308591,1047286709,322548459,995290223,1845252383,2603652396,3431023940,2942221577,3202600964,3727903485,1712269319,422464435,3234572375,1170764815,3523960633,3117677531,1434042557,442511882,3600875718,1076654713,1738483198,4213154764,2393238008,3677496056,1014306527,4251020053,793779912,2902807211,842905082,4246964064,1395751752,1040244610,2656851899,3396308128,445077038,3742853595,3577915638,679411651,2892444358,2354009459,1767581616,3150600392,3791627101,3102740896,284835224,4246832056,1258075500,768725851,2589189241,3069724005,3532540348,1274779536,3789419226,2764799539,1660621633,3471099624,4011903706,913787905,3497959166,737222580,2514213453,2928710040,3937242737,1804850592,3499020752,2949064160,2386320175,2390070455,2415321851,4061277028,2290661394,2416832540,1336762016,1754252060,3520065937,3014181293,791618072,3188594551,3933548030,2332172193,3852520463,3043980520,413987798,3465142937,3030929376,4245938359,2093235073,3534596313,375366246,2157278981,2479649556,555357303,3870105701,2008414854,3344188149,4221384143,3956125452,2067696032,3594591187,2921233993,2428461,544322398,577241275,1471733935,610547355,4027169054,1432588573,1507829418,2025931657,3646575487,545086370,48609733,2200306550,1653985193,298326376,1316178497,3007786442,2064951626,458293330,2589141269,3591329599,3164325604,727753846,2179363840,146436021,1461446943,4069977195,705550613,3059967265,3887724982,4281599278,3313849956,1404054877,2845806497,146425753,1854211946],[1266315497,3048417604,3681880366,3289982499,290971e4,1235738493,2632868024,2414719590,3970600049,1771706367,1449415276,3266420449,422970021,1963543593,2690192192,3826793022,1062508698,1531092325,1804592342,2583117782,2714934279,4024971509,1294809318,4028980673,1289560198,2221992742,1669523910,35572830,157838143,1052438473,1016535060,1802137761,1753167236,1386275462,3080475397,2857371447,1040679964,2145300060,2390574316,1461121720,2956646967,4031777805,4028374788,33600511,2920084762,1018524850,629373528,3691585981,3515945977,2091462646,2486323059,586499841,988145025,935516892,3367335476,2599673255,2839830854,265290510,3972581182,2759138881,3795373465,1005194799,847297441,406762289,1314163512,1332590856,1866599683,4127851711,750260880,613907577,1450815602,3165620655,3734664991,3650291728,3012275730,3704569646,1427272223,778793252,1343938022,2676280711,2052605720,1946737175,3164576444,3914038668,3967478842,3682934266,1661551462,3294938066,4011595847,840292616,3712170807,616741398,312560963,711312465,1351876610,322626781,1910503582,271666773,2175563734,1594956187,70604529,3617834859,1007753275,1495573769,4069517037,2549218298,2663038764,504708206,2263041392,3941167025,2249088522,1514023603,1998579484,1312622330,694541497,2582060303,2151582166,1382467621,776784248,2618340202,3323268794,2497899128,2784771155,503983604,4076293799,907881277,423175695,432175456,1378068232,4145222326,3954048622,3938656102,3820766613,2793130115,2977904593,26017576,3274890735,3194772133,1700274565,1756076034,4006520079,3677328699,720338349,1533947780,354530856,688349552,3973924725,1637815568,332179504,3949051286,53804574,2852348879,3044236432,1282449977,3583942155,3416972820,4006381244,1617046695,2628476075,3002303598,1686838959,431878346,2686675385,1700445008,1080580658,1009431731,832498133,3223435511,2605976345,2271191193,2516031870,1648197032,4164389018,2548247927,300782431,375919233,238389289,3353747414,2531188641,2019080857,1475708069,455242339,2609103871,448939670,3451063019,1395535956,2413381860,1841049896,1491858159,885456874,4264095073,4001119347,1565136089,3898914787,1108368660,540939232,1173283510,2745871338,3681308437,4207628240,3343053890,4016749493,1699691293,1103962373,3625875870,2256883143,3830138730,1031889488,3479347698,1535977030,4236805024,3251091107,2132092099,1774941330,1199868427,1452454533,157007616,2904115357,342012276,595725824,1480756522,206960106,497939518,591360097,863170706,2375253569,3596610801,1814182875,2094937945,3421402208,1082520231,3463918190,2785509508,435703966,3908032597,1641649973,2842273706,3305899714,1510255612,2148256476,2655287854,3276092548,4258621189,236887753,3681803219,274041037,1734335097,3815195456,3317970021,1899903192,1026095262,4050517792,356393447,2410691914,3873677099,3682840055],[3913112168,2491498743,4132185628,2489919796,1091903735,1979897079,3170134830,3567386728,3557303409,857797738,1136121015,1342202287,507115054,2535736646,337727348,3213592640,1301675037,2528481711,1895095763,1721773893,3216771564,62756741,2142006736,835421444,2531993523,1442658625,3659876326,2882144922,676362277,1392781812,170690266,3921047035,1759253602,3611846912,1745797284,664899054,1329594018,3901205900,3045908486,2062866102,2865634940,3543621612,3464012697,1080764994,553557557,3656615353,3996768171,991055499,499776247,1265440854,648242737,3940784050,980351604,3713745714,1749149687,3396870395,4211799374,3640570775,1161844396,3125318951,1431517754,545492359,4268468663,3499529547,1437099964,2702547544,3433638243,2581715763,2787789398,1060185593,1593081372,2418618748,4260947970,69676912,2159744348,86519011,2512459080,3838209314,1220612927,3339683548,133810670,1090789135,1078426020,1569222167,845107691,3583754449,4072456591,1091646820,628848692,1613405280,3757631651,526609435,236106946,48312990,2942717905,3402727701,1797494240,859738849,992217954,4005476642,2243076622,3870952857,3732016268,765654824,3490871365,2511836413,1685915746,3888969200,1414112111,2273134842,3281911079,4080962846,172450625,2569994100,980381355,4109958455,2819808352,2716589560,2568741196,3681446669,3329971472,1835478071,660984891,3704678404,4045999559,3422617507,3040415634,1762651403,1719377915,3470491036,2693910283,3642056355,3138596744,1364962596,2073328063,1983633131,926494387,3423689081,2150032023,4096667949,1749200295,3328846651,309677260,2016342300,1779581495,3079819751,111262694,1274766160,443224088,298511866,1025883608,3806446537,1145181785,168956806,3641502830,3584813610,1689216846,3666258015,3200248200,1692713982,2646376535,4042768518,1618508792,1610833997,3523052358,4130873264,2001055236,3610705100,2202168115,4028541809,2961195399,1006657119,2006996926,3186142756,1430667929,3210227297,1314452623,4074634658,4101304120,2273951170,1399257539,3367210612,3027628629,1190975929,2062231137,2333990788,2221543033,2438960610,1181637006,548689776,2362791313,3372408396,3104550113,3145860560,296247880,1970579870,3078560182,3769228297,1714227617,3291629107,3898220290,166772364,1251581989,493813264,448347421,195405023,2709975567,677966185,3703036547,1463355134,2715995803,1338867538,1343315457,2802222074,2684532164,233230375,2599980071,2000651841,3277868038,1638401717,4028070440,3237316320,6314154,819756386,300326615,590932579,1405279636,3267499572,3150704214,2428286686,3959192993,3461946742,1862657033,1266418056,963775037,2089974820,2263052895,1917689273,448879540,3550394620,3981727096,150775221,3627908307,1303187396,508620638,2975983352,2726630617,1817252668,1876281319,1457606340,908771278,3720792119,3617206836,2455994898,1729034894,1080033504],[976866871,3556439503,2881648439,1522871579,1555064734,1336096578,3548522304,2579274686,3574697629,3205460757,3593280638,3338716283,3079412587,564236357,2993598910,1781952180,1464380207,3163844217,3332601554,1699332808,1393555694,1183702653,3581086237,1288719814,691649499,2847557200,2895455976,3193889540,2717570544,1781354906,1676643554,2592534050,3230253752,1126444790,2770207658,2633158820,2210423226,2615765581,2414155088,3127139286,673620729,2805611233,1269405062,4015350505,3341807571,4149409754,1057255273,2012875353,2162469141,2276492801,2601117357,993977747,3918593370,2654263191,753973209,36408145,2530585658,25011837,3520020182,2088578344,530523599,2918365339,1524020338,1518925132,3760827505,3759777254,1202760957,3985898139,3906192525,674977740,4174734889,2031300136,2019492241,3983892565,4153806404,3822280332,352677332,2297720250,60907813,90501309,3286998549,1016092578,2535922412,2839152426,457141659,509813237,4120667899,652014361,1966332200,2975202805,55981186,2327461051,676427537,3255491064,2882294119,3433927263,1307055953,942726286,933058658,2468411793,3933900994,4215176142,1361170020,2001714738,2830558078,3274259782,1222529897,1679025792,2729314320,3714953764,1770335741,151462246,3013232138,1682292957,1483529935,471910574,1539241949,458788160,3436315007,1807016891,3718408830,978976581,1043663428,3165965781,1927990952,4200891579,2372276910,3208408903,3533431907,1412390302,2931980059,4132332400,1947078029,3881505623,4168226417,2941484381,1077988104,1320477388,886195818,18198404,3786409e3,2509781533,112762804,3463356488,1866414978,891333506,18488651,661792760,1628790961,3885187036,3141171499,876946877,2693282273,1372485963,791857591,2686433993,3759982718,3167212022,3472953795,2716379847,445679433,3561995674,3504004811,3574258232,54117162,3331405415,2381918588,3769707343,4154350007,1140177722,4074052095,668550556,3214352940,367459370,261225585,2610173221,4209349473,3468074219,3265815641,314222801,3066103646,3808782860,282218597,3406013506,3773591054,379116347,1285071038,846784868,2669647154,3771962079,3550491691,2305946142,453669953,1268987020,3317592352,3279303384,3744833421,2610507566,3859509063,266596637,3847019092,517658769,3462560207,3443424879,370717030,4247526661,2224018117,4143653529,4112773975,2788324899,2477274417,1456262402,2901442914,1517677493,1846949527,2295493580,3734397586,2176403920,1280348187,1908823572,3871786941,846861322,1172426758,3287448474,3383383037,1655181056,3139813346,901632758,1897031941,2986607138,3066810236,3447102507,1393639104,373351379,950779232,625454576,3124240540,4148612726,2007998917,544563296,2244738638,2330496472,2058025392,1291430526,424198748,50039436,29584100,3605783033,2429876329,2791104160,1057563949,3255363231,3075367218,3463963227,1469046755,985887462]];var h={pbox:[],sbox:[]};function 
4u(_,w){let E=w>>24&255,y=w>>16&255,v=w>>8&255,D=w&255,S=_.sbox[0][E]+_.sbox[1][y];return S=S^_.sbox[2][v],S=S+_.sbox[3][D],S}function p(_,w,E){let y=w,v=E,D;for(let S=0;S<a;++S)y=y^_.pbox[S],v=u(_,y)^v,D=y,y=v,v=D;return D=y,y=v,v=D,v=v^_.pbox[a],y=y^_.pbox[a+1],{left:y,right:v}}function g(_,w,E){let y=w,v=E,D;for(let S=a+1;S>1;--S)y=y^_.pbox[S],v=u(_,y)^v,D=y,y=v,v=D;return D=y,y=v,v=D,v=v^_.pbox[1],y=y^_.pbox[0],{left:y,right:v}}function x(_,w,E){for(let A=0;A<4;A++){_.sbox[A]=[];for(let M=0;M<256;M++)_.sbox[A][M]=c[A][M]}let y=0;for(let A=0;A<a+2;A++)_.pbox[A]=d[A]^w[y],y++,y>=E&&(y=0);let v=0,D=0,S=0;for(let A=0;A<a+2;A+=2)S=p(_,v,D),v=S.left,D=S.right,_.pbox[A]=v,_.pbox[A+1]=D;for(let A=0;A<4;A++)for(let M=0;M<256;M+=2)S=p(_,v,D),v=S.left,D=S.right,_.sbox[A][M]=v,_.sbox[A][M+1]=D;return!0}var C=s.Blowfish=n.extend({_doReset:function(){if(this._keyPriorReset!==this._key){var _=this._keyPriorReset=this._key,w=_.words,E=_.sigBytes/4;x(h,w,E)}},encryptBlock:function(_,w){var E=p(h,_[w],_[w+1]);_[w]=E.left,_[w+1]=E.right},decryptBlock:function(_,w){var E=g(h,_[w],_[w+1]);_[w]=E.left,_[w+1]=E.right},blockSize:64/32,keySize:128/32,ivSize:64/32});e.Blowfish=n._createHelper(C)})(),i.Blowfish})});var qf=de((js,Wf)=>{"use strict";(function(i,e,t){typeof js=="object"?Wf.exports=js=e(pe(),Zi(),zd(),Yd(),mn(),qd(),gn(),Do(),_s(),Qd(),Mo(),Zd(),tf(),rf(),Ss(),of(),Gt(),ze(),ff(),uf(),mf(),xf(),yf(),Cf(),bf(),Sf(),Mf(),kf(),Of(),Ff(),If(),Nf(),Hf(),Vf(),Uf()):typeof define=="function"&&define.amd?define(["./core","./x64-core","./lib-typedarrays","./enc-utf16","./enc-base64","./enc-base64url","./md5","./sha1","./sha256","./sha224","./sha512","./sha384","./sha3","./ripemd160","./hmac","./pbkdf2","./evpkdf","./cipher-core","./mode-cfb","./mode-ctr","./mode-ctr-gladman","./mode-ofb","./mode-ecb","./pad-ansix923","./pad-iso10126","./pad-iso97971","./pad-zeropadding","./pad-nopadding","./format-hex","./aes","./tripledes","./rc4","./rabbit","./rabbit-legacy","./blowfish"],e):i.CryptoJS=e(i.CryptoJS)})(js,function(i){return i})});var Tr=class{constructor(e,t="/assets/i18n/",n=".json"){this.http=e,this.prefix=t,this.suffix=n}getTranslation(e){return this.http.get(`${this.prefix}${e}${this.suffix}`)}};function Z0(i){return new Tr(i)}var Fr=(()=>{let e=class e{constructor(){this.isLoading=Ae(!1)}show(){this.isLoading.set(!0)}hide(){this.isLoading.set(!1)}};e.\u0275fac=function(s){return new(s||e)},e.\u0275prov=at({token:e,factory:e.\u0275fac,providedIn:"root"});let i=e;return i})();var Ba=0,el=(()=>{let e=class e{constructor(){this.loaderService=ge(Fr),this.toaster=ge(Dr),this.translate=ge(kt),this.applicationLang=Ct}intercept(n,s){if(n.url.includes("view360webchat")||n.url.includes("view360"))return s.handle(n);n=n.clone({headers:n.headers.set("Accept","application/json").set("Accept-Language",localStorage.getItem("lang")==this.applicationLang.En?this.applicationLang.En:this.applicationLang.Ar).set("apikey",Ye.apikey).set("appcode",Ye.appcode).set("Authorization",`Basic ${btoa(Ye.username+":"+Ye.password)}`).set("platformTypeId","1")});let a=localStorage.getItem("token");return a&&!n.url.includes("token/init")&&(n=n.clone({headers:n.headers.set("token",a)})),this.loaderService.show(),Ba+=1,s.handle(n).pipe(Ut(d=>d.status===401?(this.toaster.error("",this.translate.instant("session-expired")),an(()=>new Error(this.translate.instant("session-expired")))):an(()=>d)),vr(()=>{Ba-=1,Ba===0&&this.loaderService.hide()}))}};e.\u0275fac=function(s){return new(s||e)},e.\u0275prov=at({token:e,factory:e.\u0275fac,providedIn:"root"});let i=e;return i})();var Mg=[{path:":lang/home",loadComponent:()=>import("./chunk-3O42SBXD.js").then(i=>i.HomeComponent)},{path:"home",redirectTo:"/ar/home"},{path:":lang/about-us",loadComponent:()=>import("./chunk-IKXOWVIP.js").then(i=>i.AboutUsComponent)},{path:"about-us",redirectTo:"/ar/about-us"},{path:":lang/blogs/:id",loadComponent:()=>import("./chunk-QHFAMP4W.js").then(i=>i.BlogPageComponent),pathMatch:"full"},{path:"blogs/:id",redirectTo:"/ar/blogs",pathMatch:"full"},{path:":lang/blogs",loadComponent:()=>import("./chunk-Z2HLZ62J.js").then(i=>i.BlogsComponent),pathMatch:"full"},{path:"blogs",redirectTo:"/ar/blogs",pathMatch:"full"},{path:":lang/faq",loadComponent:()=>import("./chunk-RWTYQ6YG.js").then(i=>i.FaqComponent)},{path:"faq",redirectTo:"/ar/faq"},{path:":lang/terms-and-conditions",loadComponent:()=>import("./chunk-TBQAW75B.js").then(i=>i.TermsAndConditionsComponent)},{path:"terms-and-conditions",redirectTo:"/ar/terms-and-conditions"},{path:":lang/privacy",loadComponent:()=>import("./chunk-4ZVCUNT4.js").then(i=>i.PrivacyComponent)},{path:"privacy",redirectTo:"/ar/privacy"},{path:":lang/islamic-committee",loadComponent:()=>import("./chunk-IIUCI6VW.js").then(i=>i.IslamicCommitteeComponent)},{path:"islamic-committee",redirectTo:"/ar/islamic-committee"},{path:":lang/complaints",loadComponent:()=>import("./chunk-KAJZRMIK.js").then(i=>i.ComplaintsComponent)},{path:"complaints",redirectTo:"/ar/complaints"},{path:":lang/email-confirmation",loadComponent:()=>import("./chunk-3CIM44WO.js").then(i=>i.EmailConfirmationOrExpiredComponent)},{path:"email-confirmation",redirectTo:"/ar/email-confirmation"},{path:":lang/not-found",loadComponent:()=>import("./chunk-4RL44LFP.js").then(i=>i.ErrorPageNotFoundComponent)},{path:"not-found",redirectTo:"/ar/not-found"},{path:":lang/financial-statements",loadComponent:()=>import("./chunk-XGZ6UUOF.js").then(i=>
vendor: 53,726 bytes, line 4
4i.FinancialStatementsComponent)},{path:"financial-statements",redirectTo:"/ar/financial-statements"},{path:":lang/verification/:reference",loadComponent:()=>import("./chunk-QVL7WGSO.js").then(i=>i.NafathVerificationComponent)},{path:"verification/:reference",redirectTo:"/ar/verification/:reference"},{path:":lang/verification-succeeded",loadComponent:()=>import("./chunk-ROQM4URX.js").then(i=>i.NafathVerificationSucceededComponent)},{path:"verification-succeeded",redirectTo:"/ar/verification-succeeded"},{path:":lang/delete-account-steps",loadComponent:()=>import("./chunk-4K35VHR5.js").then(i=>i.DeleteAccountStepsComponent)},{path:"delete-account-steps",redirectTo:"/ar/delete-account-steps"},{path:":lang/salla-merchant-onboard",loadComponent:()=>import("./chunk-KZZUBOSN.js").then(i=>i.PartnerComponent)},{path:"salla-merchant-onboard",redirectTo:"/ar/salla-merchant-onboard"},{path:"",redirectTo:"/ar/home",pathMatch:"full"},{path:"**",redirectTo:"/ar/not-found"}],tl=(()=>{let e=class e{};e.\u0275fac=function(s){return new(s||e)},e.\u0275mod=Ai({type:e}),e.\u0275inj=Mi({imports:[Fa.forRoot(Mg,{scrollPositionRestoration:"enabled"}),Fa]});let i=e;return i})();function nl(i){return new ye(3e3,!1)}function Ag(){return new ye(3100,!1)}function kg(){return new ye(3101,!1)}function Pg(i){return new ye(3001,!1)}function Og(i){return new ye(3003,!1)}function Tg(i){return new ye(3004,!1)}function rl(i,e){return new ye(3005,!1)}function sl(){return new ye(3006,!1)}function al(){return new ye(3007,!1)}function ol(i,e){return new ye(3008,!1)}function cl(i){return new ye(3002,!1)}function ll(i,e,t,n,s){return new ye(3010,!1)}function dl(){return new ye(3011,!1)}function fl(){return new ye(3012,!1)}function hl(){return new ye(3200,!1)}function ul(){return new ye(3202,!1)}function pl(){return new ye(3013,!1)}function ml(i){return new ye(3014,!1)}function gl(i){return new ye(3015,!1)}function xl(i){return new ye(3016,!1)}function _l(i,e){return new ye(3404,!1)}function Fg(i){return new ye(3502,!1)}function yl(i){return new ye(3503,!1)}function vl(){return new ye(3300,!1)}function Cl(i){return new ye(3504,!1)}function wl(i){return new ye(3301,!1)}function bl(i,e){return new ye(3302,!1)}function El(i){return new ye(3303,!1)}function Sl(i,e){return new ye(3400,!1)}function Dl(i){return new ye(3401,!1)}function Ml(i){return new ye(3402,!1)}function Al(i,e){return new ye(3505,!1)}function qt(i){switch(i.length){case 0:return new Pn;case 1:return i[0];default:return new Er(i)}}function La(i,e,t=new Map,n=new Map){let s=[],a=[],d=-1,c=null;if(e.forEach(h=>{let u=h.get("offset"),p=u==d,g=p&&c||new Map;h.forEach((x,C)=>{let _=C,w=x;if(C!=="offset")switch(_=i.normalizePropertyName(_,s),w){case Ti:w=t.get(C);break;case wt:w=n.get(C);break;default:w=i.normalizeStyleValue(C,_,w,s);break}g.set(_,w)}),p||a.push(g),c=g,d=u}),s.length)throw Fg(s);return a}function Br(i,e,t,n){switch(e){case"start":i.onStart(()=>n(t&&Ia(t,"start",i)));break;case"done":i.onDone(()=>n(t&&Ia(t,"done",i)));break;case"destroy":i.onDestroy(()=>n(t&&Ia(t,"destroy",i)));break}}function Ia(i,e,t){let n=t.totalTime,s=!!t.disabled,a=Ir(i.element,i.triggerName,i.fromState,i.toState,e||i.phaseName,n??i.totalTime,s),d=i._data;return d!=null&&(a._data=d),a}function Ir(i,e,t,n,s="",a=0,d){return{element:i,triggerName:e,fromState:t,toState:n,phaseName:s,totalTime:a,disabled:!!d}}function rt(i,e,t){let n=i.get(e);return n||i.set(e,n=t),n}function Ha(i){let e=i.indexOf(":"),t=i.substring(1,e),n=i.slice(e+1);return[t,n]}var Bg=typeof document>"u"?null:document.documentElement;function Rr(i){let e=i.parentNode||i.host||null;return e===Bg?null:e}function Ig(i){return i.substring(1,6)=="ebkit"}var On=null,il=!1;function kl(i){On||(On=Rg()||{},il=On.style?"WebkitAppearance"in On.style:!1);let e=!0;return On.style&&!Ig(i)&&(e=i in On.style,!e&&il&&(e="Webkit"+i.charAt(0).toUpperCase()+i.slice(1)in On.style)),e}function Rg(){return typeof document<"u"?document.body:null}function za(i,e){for(;e;){if(e===i)return!0;e=Rr(e)}return!1}function Va(i,e,t){if(t)return Array.from(i.querySelectorAll(e));let n=i.querySelector(e);return n?[n]:[]}var Ng=1e3,Ya="{{",Lg="}}",Ua="ng-enter",Nr="ng-leave",Ii="ng-trigger",Ri=".ng-trigger",Wa="ng-animating",Lr=".ng-animating";function Pt(i){if(typeof i=="number")return i;let e=i.match(/^(-?[\.\d]+)(m?s)/);return!e||e.length<2?0:Ra(parseFloat(e[1]),e[2])}function Ra(i,e){switch(e){case"s":return i*Ng;default:return i}}function Ni(i,e,t){return i.hasOwnProperty("duration")?i:zg(i,e,t)}var Hg=/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i;function zg(i,e,t){let n,s=0,a="";if(typeof i=="string"){let d=i.match(Hg);if(d===null)return e.push(nl(i)),{duration:0,delay:0,easing:""};n=Ra(parseFloat(d[1]),d[2]);let c=d[3];c!=null&&(s=Ra(parseFloat(c),d[4]));let h=d[5];h&&(a=h)}else n=i;if(!t){let d=!1,c=e.length;n<0&&(e.push(Ag()),d=!0),s<0&&(e.push(kg()),d=!0),d&&e.splice(c,0,nl(i))}return{duration:n,delay:s,easing:a}}function Pl(i){return i.length?i[0]instanceof Map?i:i.map(e=>new Map(Object.entries(e))):[]}function bt(i,e,t){e.forEach((n,s)=>{let a=Hr(s);t&&!t.has(s)&&t.set(s,i.style[a]),i.style[a]=n})}function hn(i,e){e.forEach((t,n)=>{let s=Hr(n);i.style[s]=""})}function ii(i){return Array.isArray(i)?i.length==1?i[0]:M0(i):i}function Ol(i,e,t){let n=e.params||{},s=qa(i);s.length&&s.forEach(a=>{n.hasOwnProperty(a)||t.push(Pg(a))})}var Na=new RegExp(`${Ya}\\s*(.+?)\\s*${Lg}`,"g");function qa(i){let e=[];if(typeof i=="string"){let t;for(;t=Na.exec(i);)e.push(t[1]);Na.lastIndex=0}return e}function ri(i,e,t){let n=`${i}`,s=n.replace(Na,(a,d)=>{let c=e[d];return c==null&&(t.push(Og(d)),c=""),c.toString()});return s==n?i:s}var Vg=/-+([a-z0-9])/g;function Hr(i){return i.replace(Vg,(...e)=>e[1].toUpperCase())}function Tl(i,e){return i===0||e===0}function Fl(i,e,t){if(t.size&&e.length){let n=e[0],s=[];if(t.forEach((a,d)=>{n.has(d)||s.push(d),n.set(d,a)}),s.length)for(let a=1;a<e.length;a++){let d=e[a];s.forEach(c=>d.set(c,zr(i,c)))}}return e}function st(i,e,t){switch(e.type){case ue.Trigger:return i.visitTrigger(e,t);case ue.State:return i.visitState(e,t);case ue.Transition:return i.visitTransition(e,t);case ue.Sequence:return i.visitSequence(e,t);case ue.Group:return i.visitGroup(e,t);case ue.Animate:return i.visitAnimate(e,t);case ue.Keyframes:return i.visitKeyframes(e,t);case ue.Style:return i.visitStyle(e,t);case ue.Reference:return i.visitReference(e,t);case ue.AnimateChild:return i.visitAnimateChild(e,t);case ue.AnimateRef:return i.visitAnimateRef(e,t);case ue.Query:return i.visitQuery(e,t);case ue.Stagger:return i.visitStagger(e,t);default:throw Tg(e.type)}}function zr(i,e){return window.getComputedStyle(i)[e]}var co=(()=>{class i{validateStyleProperty(t){return kl(t)}containsElement(t,n){return za(t,n)}getParentElement(t){return Rr(t)}query(t,n,s){return Va(t,n,s)}computeStyle(t,n,s){return s||""}animate(t,n,s,a,d,c=[],h){return new Pn(s,a)}static \u0275fac=function(n){return new(n||i)};static \u0275prov=at({token:i,factory:i.\u0275fac})}return i})(),Fn=class{static NOOP=new co},Bn=class{};var Yg=new Set(["width","height","minWidth","minHeight","maxWidth","maxHeight","left","top","bottom","right","fontSize","outlineWidth","outlineOffset","paddingTop","paddingLeft","paddingBottom","paddingRight","marginTop","marginLeft","marginBottom","marginRight","borderRadius","borderWidth","borderTopWidth","borderLeftWidth","borderRightWidth","borderBottomWidth","textIndent","perspective"]),qr=class extends Bn{normalizePropertyName(e,t){return Hr(e)}normalizeStyleValue(e,t,n,s){let a="",d=n.toString().trim();if(Yg.has(t)&&n!==0&&n!=="0")if(typeof n=="number")a="px";else{let c=n.match(/^[+-]?[\d\.]+([a-z]*)$/);c&&c[1].length==0&&s.push(rl(e,n))}return d+a}};var jr="*";function Ug(i,e){let t=[];return typeof i=="string"?i.split(/\s*,\s*/).forEach(n=>Wg(n,t,e)):t.push(i),t}function Wg(i,e,t){if(i[0]==":"){let h=qg(i,t);if(typeof h=="function"){e.push(h);return}i=h}let n=i.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(n==null||n.length<4)return t.push(gl(i)),e;let s=n[1],a=n[2],d=n[3];e.push(Bl(s,d));let c=s==jr&&d==jr;a[0]=="<"&&!c&&e.push(Bl(d,s))}function qg(i,e){switch(i){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(t,n)=>parseFloat(n)>parseFloat(t);case":decrement":return(t,n)=>parseFloat(n)<parseFloat(t);default:return e.push(xl(i)),"* => *"}}var Vr=new Set(["true","1"]),Yr=new Set(["false","0"]);function Bl(i,e){let t=Vr.has(i)||Yr.has(i),n=Vr.has(e)||Yr.has(e);return(s,a)=>{let d=i==jr||i==s,c=e==jr||e==a;return!d&&t&&typeof s=="boolean"&&(d=s?Vr.has(i):Yr.has(i)),!c&&n&&typeof a=="boolean"&&(c=a?Vr.has(e):Yr.has(e)),d&&c}}var Wl=":self",jg=new RegExp(`s*${Wl}s*,?`,"g");function ql(i,e,t,n){return new Xa(i).build(e,t,n)}var Il="",Xa=class{_driver;constructor(e){this._driver=e}build(e,t,n){let s=new Ja(t);return this._resetContextStyleTimingState(s),st(this,ii(e),s)}_resetContextStyleTimingState(e){e.currentQuerySelector=Il,e.collectedStyles=new Map,e.collectedStyles.set(Il,new Map),e.currentTime=0}visitTrigger(e,t){let n=t.queryCount=0,s=t.depCount=0,a=[],d=[];return e.name.charAt(0)=="@"&&t.errors.push(sl()),e.definitions.forEach(c=>{if(this._resetContextStyleTimingState(t),c.type==ue.State){let h=c,u=h.name;u.toString().split(/\s*,\s*/).forEach(p=>{h.name=p,a.push(this.visitState(h,t))}),h.name=u}else if(c.type==ue.Transition){let h=this.visitTransition(c,t);n+=h.queryCount,s+=h.depCount,d.push(h)}else t.errors.push(al())}),{type:ue.Trigger,name:e.name,states:a,transitions:d,queryCount:n,depCount:s,options:null}}visitState(e,t){let n=this.visitStyle(e.styles,t),s=e.options&&e.options.params||null;if(n.containsDynamicStyles){let a=new Set,d=s||{};n.styles.forEach(c=>{c instanceof Map&&c.forEach(h=>{qa(h).forEach(u=>{d.hasOwnProperty(u)||a.add(u)})})}),a.size&&t.errors.push(ol(e.name,[...a.values()]))}return{type:ue.State,name:e.name,style:n,options:s?{params:s}:null}}visitTransition(e,t){t.queryCount=0,t.depCount=0;let n=st(this,ii(e.animation),t),s=Ug(e.expr,t.errors);return{type:ue.Transition,matchers:s,animation:n,queryCount:t.queryCount,depCount:t.depCount,options:Tn(e.options)}}visitSequence(e,t){return{type:ue.Sequence,steps:e.steps.map(n=>st(this,n,t)),options:Tn(e.options)}}visitGroup(e,t){let n=t.currentTime,s=0,a=e.steps.map(d=>{t.currentTime=n;let c=st(this,d,t);return s=Math.max(s,t.currentTime),c});return t.currentTime=s,{type:ue.Group,steps:a,options:Tn(e.options)}}visitAnimate(e,t){let n=Qg(e.timings,t.errors);t.currentAnimateTimings=n;let s,a=e.styles?e.styles:Ta({});if(a.type==ue.Keyframes)s=this.visitKeyframes(a,t);else{let d=e.styles,c=!1;if(!d){c=!0;let u={};n.easing&&(u.easing=n.easing),d=Ta(u)}t.currentTime+=n.duration+n.delay;let h=this.visitStyle(d,t);h.isEmptyStep=c,s=h}return t.currentAnimateTimings=null,{type:ue.Animate,timings:n,style:s,options:null}}visitStyle(e,t){let n=this._makeStyleAst(e,t);return this._validateStyleAst(n,t),n}_makeStyleAst(e,t){let n=[],s=Array.isArray(e.styles)?e.styles:[e.styles];for(let c of s)typeof c=="string"?c===wt?n.push(c):t.errors.push(cl(c)):n.push(new Map(Object.entries(c)));let a=!1,d=null;return n.forEach(c=>{if(c instanceof Map&&(c.has("easing")&&(d=c.get("easing"),c.delete("easing")),!a)){for(let h of c.values())if(h.toString().indexOf(Ya)>=0){a=!0;break}}}),{type:ue.Style,styles:n,easing:d,offset:e.offset,containsDynamicStyles:a,options:null}}_validateStyleAst(e,t){let n=t.currentAnimateTimings,s=t.currentTime,a=t.currentTime;n&&a>0&&(a-=n.duration+n.delay),e.styles.forEach(d=>{typeof d!="string"&&d.forEach((c,h)=>{let u=t.collectedStyles.get(t.currentQuerySelector),p=u.get(h),g=!0;p&&(a!=s&&a>=p.startTime&&s<=p.endTime&&(t.errors.push(ll(h,p.startTime,p.endTime,a,s)),g=!1),a=p.startTime),g&&u.set(h,{startTime:a,endTime:s}),t.options&&Ol(c,t.options,t.errors)})})}visitKeyframes(e,t){let n={type:ue.Keyframes,styles:[],options:null};if(!t.currentAnimateTimings)return t.errors.push(dl()),n;let s=1,a=0,d=[],c=!1,h=!1,u=0,p=e.steps.map(y=>{let v=this._makeStyleAst(y,t),D=v.offset!=null?v.offset:Gg(v.styles),S=0;return D!=null&&(a++,S=v.offset=D),h=h||S<0||S>1,c=c||S<u,u=S,d.push(S),v});h&&t.errors.push(fl()),c&&t.errors.push(hl());let g=e.steps.length,x=0;a>0&&a<g?t.errors.push(ul()):a==0&&(x=s/(g-1));let C=g-1,_=t.currentTime,w=t.currentAnimateTimings,E=w.duration;return p.forEach((y,v)=>{let D=x>0?v==C?1:x*v:d[v],S=D*E;t.currentTime=_+w.delay+S,w.duration=S,this._validateStyleAst(y,t),y.offset=D,n.styles.push(y)}),n}visitReference(e,t){return{type:ue.Reference,animation:st(this,ii(e.animation),t),options:Tn(e.options)}}visitAnimateChild(e,t){return t.depCount++,{type:ue.AnimateChild,options:Tn(e.options)}}visitAnimateRef(e,t){return{type:ue.AnimateRef,animation:this.visitReference(e.animation,t),options:Tn(e.options)}}visitQuery(e,t){let n=t.currentQuerySelector,s=e.options||{};t.queryCount++,t.currentQuery=e;let[a,d]=$g(e.selector);t.currentQuerySelector=n.length?n+" "+a:a,rt(t.collectedStyles,t.currentQuerySelector,new Map);let c=st(this,ii(e.animation),t);return t.currentQuery=null,t.currentQuerySelector=n,{type:ue.Query,selector:a,limit:s.limit||0,optional:!!s.optional,includeSelf:d,animation:c,originalSelector:e.selector,options:Tn(e.options)}}visitStagger(e,t){t.currentQuery||t.errors.push(pl());let n=e.timings==="full"?{duration:0,delay:0,easing:"full"}:Ni(e.timings,t.errors,!0);return{type:ue.Stagger,animation:st(this,ii(e.animation),t),timings:n,options:null}}};function $g(i){let e=!!i.split(/\s*,\s*/).find(t=>t==Wl);return e&&(i=i.replace(jg,"")),i=i.replace(/@\*/g,Ri).replace(/@\w+/g,t=>Ri+"-"+t.slice(1)).replace(/:animating/g,Lr),[i,e]}function Kg(i){return i?Fe({},i):null}var Ja=class{errors;queryCount=0;depCount=0;currentTransition=null;currentQuery=null;currentQuerySelector=null;currentAnimateTimings=null;currentTime=0;collectedStyles=new Map;options=null;unsupportedCSSPropertiesFound=new Set;constructor(e){this.errors=e}};function Gg(i){if(typeof i=="string")return null;let e=null;if(Array.isArray(i))i.forEach(t=>{if(t instanceof Map&&t.has("offset")){let n=t;e=parseFloat(n.get("offset")),n.delete("offset")}});else if(i instanceof Map&&i.has("offset")){let t=i;e=parseFloat(t.get("offset")),t.delete("offset")}return e}function Qg(i,e){if(i.hasOwnProperty("duration"))return i;if(typeof i=="number"){let a=Ni(i,e).duration;return ja(a,0,"")}let t=i;if(t.split(/\s+/).some(a=>a.charAt(0)=="{"&&a.charAt(1)=="{")){let a=ja(0,0,"");return a.dynamic=!0,a.strValue=t,a}let s=Ni(t,e);return ja(s.duration,s.delay,s.easing)}function Tn(i){return i?(i=Fe({},i),i.params&&(i.params=Kg(i.params))):i={},i}function ja(i,e,t){return{duration:i,delay:e,easing:t}}function lo(i,e,t,n,s,a,d=null,c=!1){return{type:1,element:i,keyframes:e,preStyleProps:t,postStyleProps:n,duration:s,delay:a,totalTime:s+a,easing:d,subTimeline:c}}var Hi=class{_map=new Map;get(e){return this._map.get(e)||[]}append(e,t){let n=this._map.get(e);n||this._map.set(e,n=[]),n.push(...t)}has(e){return this._map.has(e)}clear(){this._map.clear()}},Xg=1,Jg=":enter",Zg=new RegExp(Jg,"g"),ex=":leave",tx=new RegExp(ex,"g");function jl(i,e,t,n,s,a=new Map,d=new Map,c,h,u=[]){return new Za().buildKeyframes(i,e,t,n,s,a,d,c,h,u)}var Za=class{buildKeyframes(e,t,n,s,a,d,c,h,u,p=[]){u=u||new Hi;let g=new eo(e,t,u,s,a,p,[]);g.options=h;let x=h.delay?Pt(h.delay):0;g.currentTimeline.delayNextStep(x),g.currentTimeline.setStyles([d],null,g.errors,h),st(this,n,g);let C=g.timelines.filter(_=>_.containsAnimation());if(C.length&&c.size){let _;for(let w=C.length-1;w>=0;w--){let E=C[w];if(E.element===t){_=E;break}}_&&!_.allowOnlyTimelineStyles()&&_.setStyles([c],null,g.errors,h)}return C.length?C.map(_=>_.buildKeyframes()):[lo(t,[],[],[],0,x,"",!1)]}visitTrigger(e,t){}visitState(e,t){}visitTransition(e,t){}visitAnimateChild(e,t){let n=t.subInstructions.get(t.element);if(n){let s=t.createSubContext(e.options),a=t.currentTimeline.currentTime,d=this._visitSubInstructions(n,s,s.options);a!=d&&t.transformIntoNewTimeline(d)}t.previousNode=e}visitAnimateRef(e,t){let n=t.createSubContext(e.options);n.transformIntoNewTimeline(),this._applyAnimationRefDelays([e.options,e.animation.options],t,n),this.visitReference(e.animation,n),t.transformIntoNewTimeline(n.currentTimeline.currentTime),t.previousNode=e}_applyAnimationRefDelays(e,t,n){for(let s of e){let a=s?.delay;if(a){let d=typeof a=="number"?a:Pt(ri(a,s?.params??{},t.errors));n.delayNextStep(d)}}}_visitSubInstructions(e,t,n){let a=t.currentTimeline.currentTime,d=n.duration!=null?Pt(n.duration):null,c=n.delay!=null?Pt(n.delay):null;return d!==0&&e.forEach(h=>{let u=t.appendInstructionToTimeline(h,d,c);a=Math.max(a,u.duration+u.delay)}),a}visitReference(e,t){t.updateOptions(e.options,!0),st(this,e.animation,t),t.previousNode=e}visitSequence(e,t){let n=t.subContextCount,s=t,a=e.options;if(a&&(a.params||a.delay)&&(s=t.createSubContext(a),s.transformIntoNewTimeline(),a.delay!=null)){s.previousNode.type==ue.Style&&(s.currentTimeline.snapshotCurrentStyles(),s.previousNode=$r);let d=Pt(a.delay);s.delayNextStep(d)}e.steps.length&&(e.steps.forEach(d=>st(this,d,s)),s.currentTimeline.applyStylesToKeyframe(),s.subContextCount>n&&s.transformIntoNewTimeline()),t.previousNode=e}visitGroup(e,t){let n=[],s=t.currentTimeline.currentTime,a=e.options&&e.options.delay?Pt(e.options.delay):0;e.steps.forEach(d=>{let c=t.createSubContext(e.options);a&&c.delayNextStep(a),st(this,d,c),s=Math.max(s,c.currentTimeline.currentTime),n.push(c.currentTimeline)}),n.forEach(d=>t.currentTimeline.mergeTimelineCollectedStyles(d)),t.transformIntoNewTimeline(s),t.previousNode=e}_visitTiming(e,t){if(e.dynamic){let n=e.strValue,s=t.params?ri(n,t.params,t.errors):n;return Ni(s,t.errors)}else return{duration:e.duration,delay:e.delay,easing:e.easing}}visitAnimate(e,t){let n=t.currentAnimateTimings=this._visitTiming(e.timings,t),s=t.currentTimeline;n.delay&&(t.incrementTime(n.delay),s.snapshotCurrentStyles());let a=e.style;a.type==ue.Keyframes?this.visitKeyframes(a,t):(t.incrementTime(n.duration),this.visitStyle(a,t),s.applyStylesToKeyframe()),t.currentAnimateTimings=null,t.previousNode=e}visitStyle(e,t){let n=t.currentTimeline,s=t.currentAnimateTimings;!s&&n.hasCurrentStyleProperties()&&n.forwardFrame();let a=s&&s.easing||e.easing;e.isEmptyStep?n.applyEmptyStep(a):n.setStyles(e.styles,a,t.errors,t.options),t.previousNode=e}visitKeyframes(e,t){let n=t.currentAnimateTimings,s=t.currentTimeline.duration,a=n.duration,c=t.createSubContext().currentTimeline;c.easing=n.easing,e.styles.forEach(h=>{let u=h.offset||0;c.forwardTime(u*a),c.setStyles(h.styles,h.easing,t.errors,t.options),c.applyStylesToKeyframe()}),t.currentTimeline.mergeTimelineCollectedStyles(c),t.transformIntoNewTimeline(s+a),t.previousNode=e}visitQuery(e,t){let n=t.currentTimeline.currentTime,s=e.options||{},a=s.delay?Pt(s.delay):0;a&&(t.previousNode.type===ue.Style||n==0&&t.currentTimeline.hasCurrentStyleProperties())&&(t.currentTimeline.snapshotCurrentStyles(),t.previousNode=$r);let d=n,c=t.invokeQuery(e.selector,e.originalSelector,e.limit,e.includeSelf,!!s.optional,t.errors);t.currentQueryTotal=c.length;let h=null;c.forEach((u,p)=>{t.currentQueryIndex=p;let g=t.createSubContext(e.options,u);a&&g.delayNextStep(a),u===t.element&&(h=g.currentTimeline),st(this,e.animation,g),g.currentTimeline.applyStylesToKeyframe();let x=g.currentTimeline.currentTime;d=Math.max(d,x)}),t.currentQueryIndex=0,t.currentQueryTotal=0,t.transformIntoNewTimeline(d),h&&(t.currentTimeline.mergeTimelineCollectedStyles(h),t.currentTimeline.snapshotCurrentStyles()),t.previousNode=e}visitStagger(e,t){let n=t.parentContext,s=t.currentTimeline,a=e.timings,d=Math.abs(a.duration),c=d*(t.currentQueryTotal-1),h=d*t.currentQueryIndex;switch(a.duration<0?"reverse":a.easing){case"reverse":h=c-h;break;case"full":h=n.currentStaggerTime;break}let p=t.currentTimeline;h&&p.delayNextStep(h);let g=p.currentTime;st(this,e.animation,t),t.previousNode=e,n.currentStaggerTime=s.currentTime-g+(s.startTime-n.currentTimeline.startTime)}},$r={},eo=class i{_driver;element;subInstructions;_enterClassName;_leaveClassName;errors;timelines;parentContext=null;currentTimeline;currentAnimateTimings=null;previousNode=$r;subContextCount=0;options={};currentQueryIndex=0;currentQueryTotal=0;currentStaggerTime=0;constructor(e,t,n,s,a,d,c,h){this._driver=e,this.element=t,this.subInstructions=n,this._enterClassName=s,this._leaveClassName=a,this.errors=d,this.timelines=c,this.currentTimeline=h||new Kr(this._driver,t,0),c.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(e,t){if(!e)return;let n=e,s=this.options;n.duration!=null&&(s.duration=Pt(n.duration)),n.delay!=null&&(s.delay=Pt(n.delay));let a=n.params;if(a){let d=s.params;d||(d=this.options.params={}),Object.keys(a).forEach(c=>{(!t||!d.hasOwnProperty(c))&&(d[c]=ri(a[c],d,this.errors))})}}_copyOptions(){let e={};if(this.options){let t=this.options.params;if(t){let n=e.params={};Object.keys(t).forEach(s=>{n[s]=t[s]})}}return e}createSubContext(e=null,t,n){let s=t||this.element,a=new i(this._driver,s,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(s,n||0));return a.previousNode=this.previousNode,a.currentAnimateTimings=this.currentAnimateTimings,a.options=this._copyOptions(),a.updateOptions(e),a.currentQueryIndex=this.currentQueryIndex,a.currentQueryTotal=this.currentQueryTotal,a.parentContext=this,this.subContextCount++,a}transformIntoNewTimeline(e){return this.previousNode=$r,this.currentTimeline=this.currentTimeline.fork(this.element,e),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(e,t,n){let s={duration:t??e.duration,delay:this.currentTimeline.currentTime+(n??0)+e.delay,easing:""},a=new to(this._driver,e.element,e.keyframes,e.preStyleProps,e.postStyleProps,s,e.stretchStartingKeyframe);return this.timelines.push(a),s}incrementTime(e){this.currentTimeline.forwardTime(this.currentTimeline.duration+e)}delayNextStep(e){e>0&&this.currentTimeline.delayNextStep(e)}invokeQuery(e,t,n,s,a,d){let c=[];if(s&&c.push(this.element),e.length>0){e=e.replace(Zg,"."+this._enterClassName),e=e.replace(tx,"."+this._leaveClassName);let h=n!=1,u=this._driver.query(this.element,e,h);n!==0&&(u=n<0?u.slice(u.length+n,u.length):u.slice(0,n)),c.push(...u)}return!a&&c.length==0&&d.push(ml(t)),c}},Kr=class i{_driver;element;startTime;_elementTimelineStylesLookup;duration=0;easing=null;_previousKeyframe=new Map;_currentKeyframe=new Map;_keyframes=new Map;_styleSummary=new Map;_localTimelineStyles=new Map;_globalTimelineStyles;_pendingStyles=new Map;_backFill=new Map;_currentEmptyStepKeyframe=null;constructor(e,t,n,s){this._driver=e,this.element=t,this.startTime=n,this._elementTimelineStylesLookup=s,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(t),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(t,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.hasCurrentStyleProperties();default:return!0}}hasCurrentStyleProperties(){return this._currentKeyframe.size>0}get currentTime(){return this.startTime+this.duration}delayNextStep(e){let t=this._keyframes.size===1&&this._pendingStyles.size;this.duration||t?(this.forwardTime(this.currentTime+e),t&&this.snapshotCurrentStyles()):this.startTime+=e}fork(e,t){return this.applyStylesToKeyframe(),new i(this._driver,e,t||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=new Map,this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=Xg,this._loadKeyframe()}forwardTime(e){this.applyStylesToKeyframe(),this.duration=e,this._loadKeyframe()}_updateStyle(e,t){this._localTimelineStyles.set(e,t),this._globalTimelineStyles.set(e,t),this._styleSummary.set(e,{time:this.currentTime,value:t})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(e){e&&this._previousKeyframe.set("easing",e);for(let[t,n]of this._globalTimelineStyles)this._backFill.set(t,n||wt),this._currentKeyframe.set(t,wt);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(e,t,n,s){t&&this._previousKeyframe.set("easing",t);let a=s&&s.params||{},d=nx(e,this._globalTimelineStyles);for(let[c,h]of d){let u=ri(h,a,n);this._pendingStyles.set(c,u),this._localTimelineStyles.has(c)||this._backFill.set(c,this._globalTimelineStyles.get(c)??wt),this._updateStyle(c,u)}}applyStylesToKeyframe(){this._pendingStyles.size!=0&&(this._pendingStyles.forEach((e,t)=>{this._currentKeyframe.set(t,e)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((e,t)=>{this._currentKeyframe.has(t)||this._currentKeyframe.set(t,e)}))}snapshotCurrentStyles(){for(let[e,t]of this._localTimelineStyles)this._pendingStyles.set(e,t),this._updateStyle(e,t)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){let e=[];for(let t in this._currentKeyframe)e.push(t);return e}mergeTimelineCollectedStyles(e){e._styleSummary.forEach((t,n)=>{let s=this._styleSummary.get(n);(!s||t.time>s.time)&&this._updateStyle(n,t.value)})}buildKeyframes(){this.applyStylesToKeyframe();let e=new Set,t=new Set,n=this._keyframes.size===1&&this.duration===0,s=[];this._keyframes.forEach((c,h)=>{let u=new Map([...this._backFill,...c]);u.forEach((p,g)=>{p===Ti?e.add(g):p===wt&&t.add(g)}),n||u.set("offset",h/this.duration),s.push(u)});let a=[...e.values()],d=[...t.values()];if(n){let c=s[0],h=new Map(c);c.set("offset",0),h.set("offset",1),s=[c,h]}return lo(this.element,s,a,d,this.duration,this.startTime,this.easing,!1)}},to=class extends Kr{keyframes;preStyleProps;postStyleProps;_stretchStartingKeyframe;timings;constructor(e,t,n,s,a,d,c=!1){super(e,t,d.delay),this.keyframes=n,this.preStyleProps=s,this.postStyleProps=a,this._stretchStartingKeyframe=c,this.timings={duration:d.duration,delay:d.delay,easing:d.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let e=this.keyframes,{delay:t,duration:n,easing:s}=this.timings;if(this._stretchStartingKeyframe&&t){let a=[],d=n+t,c=t/d,h=new Map(e[0]);h.set("offset",0),a.push(h);let u=new Map(e[0]);u.set("offset",Rl(c)),a.push(u);let p=e.length-1;for(let g=1;g<=p;g++){let x=new Map(e[g]),C=x.get("offset"),_=t+C*n;x.set("offset",Rl(_/d)),a.push(x)}n=d,t=0,s="",e=a}return lo(this.element,e,this.preStyleProps,this.postStyleProps,n,t,s,!0)}};function Rl(i,e=3){let t=Math.pow(10,e-1);return Math.round(i*t)/t}function nx(i,e){let t=new Map,n;return i.forEach(s=>{if(s==="*"){n??=e.keys();for(let a of n)t.set(a,wt)}else for(let[a,d]of s)t.set(a,d)}),t}function Nl(i,e,t,n,s,a,d,c,h,u,p,g,x){return{type:0,element:i,triggerName:e,isRemovalTransition:s,fromState:t,fromStyles:a,toState:n,toStyles:d,timelines:c,queriedElements:h,preStyleProps:u,postStyleProps:p,totalTime:g,errors:x}}var $a={},Gr=class{_triggerName;ast;_stateStyles;constructor(e,t,n){this._triggerName=e,this.ast=t,this._stateStyles=n}match(e,t,n,s){return ix(this.ast.matchers,e,t,n,s)}buildStyles(e,t,n){let s=this._stateStyles.get("*");return e!==void 0&&(s=this._stateStyles.get(e?.toString())||s),s?s.buildStyles(t,n):new Map}build(e,t,n,s,a,d,c,h,u,p){let g=[],x=this.ast.options&&this.ast.options.params||$a,C=c&&c.params||$a,_=this.buildStyles(n,C,g),w=h&&h.params||$a,E=this.buildStyles(s,w,g),y=new Set,v=new Map,D=new Map,S=s==="void",A={params:$l(w,x),delay:this.ast.options?.delay},M=p?[]:jl(e,t,this.ast.animation,a,d,_,E,A,u,g),L=0;return M.forEach(R=>{L=Math.max(R.duration+R.delay,L)}),g.length?Nl(t,this._triggerName,n,s,S,_,E,[],[],v,D,L,g):(M.forEach(R=>{let W=R.element,K=rt(v,W,new Set);R.preStyleProps.forEach(z=>K.add(z));let T=rt(D,W,new Set);R.postStyleProps.forEach(z=>T.add(z)),W!==t&&y.add(W)}),Nl(t,this._triggerName,n,s,S,_,E,M,[...y.values()],v,D,L))}};function ix(i,e,t,n,s){return i.some(a=>a(e,t,n,s))}function $l(i,e){let t=Fe({},e);return Object.entries(i).forEach(([n,s])=>{s!=null&&(t[n]=s)}),t}var no=class{styles;defaultParams;normalizer;constructor(e,t,n){this.styles=e,this.defaultParams=t,this.normalizer=n}buildStyles(e,t){let n=new Map,s=$l(e,this.defaultParams);return this.styles.styles.forEach(a=>{typeof a!="string"&&a.forEach((d,c)=>{d&&(d=ri(d,s,t));let h=this.normalizer.normalizePropertyName(c,t);d=this.normalizer.normalizeStyleValue(c,h,d,t),n.set(c,d)})}),n}};function rx(i,e,t){return new io(i,e,t)}var io=class{name;ast;_normalizer;transitionFactories=[];fallbackTransition;states=new Map;constructor(e,t,n){this.name=e,this.ast=t,this._normalizer=n,t.states.forEach(s=>{let a=s.options&&s.options.params||{};this.states.set(s.name,new no(s.style,a,n))}),Ll(this.states,"true","1"),Ll(this.states,"false","0"),t.transitions.forEach(s=>{this.transitionFactories.push(new Gr(e,s,this.states))}),this.fallbackTransition=sx(e,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(e,t,n,s){return this.transitionFactories.find(d=>d.match(e,t,n,s))||null}matchStyles(e,t,n){return this.fallbackTransition.buildStyles(e,t,n)}};function sx(i,e,t){let n=[(d,c)=>!0],s={type:ue.Sequence,steps:[],options:null},a={type:ue.Transition,animation:s,matchers:n,options:null,queryCount:0,depCount:0};return new Gr(i,a,e)}function Ll(i,e,t){i.has(e)?i.has(t)||i.set(t,i.get(e)):i.has(t)&&i.set(e,i.get(t))}var ax=new Hi,ro=class{bodyNode;_driver;_normalizer;_animations=new Map;_playersById=new Map;players=[];constructor(e,t,n){this.bodyNode=e,this._driver=t,this._normalizer=n}register(e,t){let n=[],s=[],a=ql(this._driver,t,n,s);if(n.length)throw yl(n);this._animations.set(e,a)}_buildPlayer(e,t,n){let s=e.element,a=La(this._normalizer,e.keyframes,t,n);return this._driver.animate(s,a,e.duration,e.delay,e.easing,[],!0)}create(e,t,n={}){let s=[],a=this._animations.get(e),d,c=new Map;if(a?(d=jl(this._driver,t,a,Ua,Nr,new Map,new Map,n,ax,s),d.forEach(p=>{let g=rt(c,p.element,new Map);p.postStyleProps.forEach(x=>g.set(x,null))})):(s.push(vl()),d=[]),s.length)throw Cl(s);c.forEach((p,g)=>{p.forEach((x,C)=>{p.set(C,this._driver.computeStyle(g,C,wt))})});let h=d.map(p=>{let g=c.get(p.element);return this._buildPlayer(p,new Map,g)}),u=qt(h);return this._playersById.set(e,u),u.onDestroy(()=>this.destroy(e)),this.players.push(u),u}destroy(e){let t=this._getPlayer(e);t.destroy(),this._playersById.delete(e);let n=this.players.indexOf(t);n>=0&&this.players.splice(n,1)}_getPlayer(e){let t=this._playersById.get(e);if(!t)throw wl(e);return t}listen(e,t,n,s){let a=Ir(t,"","","");return Br(this._getPlayer(e),n,a,s),()=>{}}command(e,t,n,s){if(n=="register"){this.register(e,s[0]);return}if(n=="create"){let d=s[0]||{};this.create(e,t,d);return}let a=this._getPlayer(e);switch(n){case"play":a.play();break;case"pause":a.pause();break;case"reset":a.reset();break;case"restart":a.restart();break;case"finish":a.finish();break;case"init":a.init();break;case"setPosition":a.setPosition(parseFloat(s[0]));break;case"destroy":this.destroy(e);break}}},Hl="ng-animate-queued",ox=".ng-animate-queued",Ka="ng-animate-disabled",cx=".ng-animate-disabled",lx="ng-star-inserted",dx=".ng-star-inserted",fx=[],Kl={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},hx={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},Et="__ng_removed",zi=class{namespaceId;value;options;get params(){return this.options.params}constructor(e,t=""){this.namespaceId=t;let n=e&&e.hasOwnProperty("value"),s=n?e.value:e;if(this.value=px(s),n){let a=e,{value:d}=a,c=t0(a,["value"]);this.options=c}else this.options={};this.options.params||(this.options.params={})}absorbOptions(e){let t=e.params;if(t){let n=this.options.params;Object.keys(t).forEach(s=>{n[s]==null&&(n[s]=t[s])})}}},Li="void",Ga=new zi(Li),so=class{id;hostElement;_engine;players=[];_triggers=new Map;_queue=[];_elementListeners=new Map;_hostClassName;constructor(e,t,n){this.id=e,this.hostElement=t,this._engine=n,this._hostClassName="ng-tns-"+e,mt(t,this._hostClassName)}listen(e,t,n,s){if(!this._triggers.has(t))throw bl(n,t);if(n==null||n.length==0)throw El(t);if(!mx(n))throw Sl(n,t);let a=rt(this._elementListeners,e,[]),d={name:t,phase:n,callback:s};a.push(d);let c=rt(this._engine.statesByElement,e,new Map);return c.has(t)||(mt(e,Ii),mt(e,Ii+"-"+t),c.set(t,Ga)),()=>{this._engine.afterFlush(()=>{let h=a.indexOf(d);h>=0&&a.splice(h,1),this._triggers.has(t)||c.delete(t)})}}register(e,t){return this._triggers.has(e)?!1:(this._triggers.set(e,t),!0)}_getTrigger(e){let t=this._triggers.get(e);if(!t)throw Dl(e);return t}trigger(e,t,n,s=!0){let a=this._getTrigger(t),d=new Vi(this.id,t,e),c=this._engine.statesByElement.get(e);c||(mt(e,Ii),mt(e,Ii+"-"+t),this._engine.statesByElement.set(e,c=new Map));let h=c.get(t),u=new zi(n,this.id);if(!(n&&n.hasOwnProperty("value"))&&h&&u.absorbOptions(h.options),c.set(t,u),h||(h=Ga),!(u.value===Li)&&h.value===u.value){if(!_x(h.params,u.params)){let w=[],E=a.matchStyles(h.value,h.params,w),y=a.matchStyles(u.value,u.params,w);w.length?this._engine.reportError(w):this._engine.afterFlush(()=>{hn(e,E),bt(e,y)})}return}let x=rt(this._engine.playersByElement,e,[]);x.forEach(w=>{w.namespaceId==this.id&&w.triggerName==t&&w.queued&&w.destroy()});let C=a.matchTransition(h.value,u.value,e,u.params),_=!1;if(!C){if(!s)return;C=a.fallbackTransition,_=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:t,transition:C,fromState:h,toState:u,player:d,isFallbackTransition:_}),_||(mt(e,Hl),d.onStart(()=>{si(e,Hl)})),d.onDone(()=>{let w=this.players.indexOf(d);w>=0&&this.players.splice(w,1);let E=this._engine.playersByElement.get(e);if(E){let y=E.indexOf(d);y>=0&&E.splice(y,1)}}),this.players.push(d),x.push(d),d}deregister(e){this._triggers.delete(e),this._engine.statesByElement.forEach(t=>t.delete(e)),this._elementListeners.forEach((t,n)=>{this._elementListeners.set(n,t.filter(s=>s.name!=e))})}clearElementCache(e){this._engine.statesByElement.delete(e),this._elementListeners.delete(e);let t=this._engine.playersByElement.get(e);t&&(t.forEach(n=>n.destroy()),this._engine.playersByElement.delete(e))}_signalRemovalForInnerTriggers(e,t){let n=this._engine.driver.query(e,Ri,!0);n.forEach(s=>{if(s[Et])return;let a=this._engine.fetchNamespacesByElement(s);a.size?a.forEach(d=>d.triggerLeaveAnimation(s,t,!1,!0)):this.clearElementCache(s)}),this._engine.afterFlushAnimationsDone(()=>n.forEach(s=>this.clearElementCache(s)))}triggerLeaveAnimation(e,t,n,s){let a=this._engine.statesByElement.get(e),d=new Map;if(a){let c=[];if(a.forEach((h,u)=>{if(d.set(u,h.value),this._triggers.has(u)){let p=this.trigger(e,u,Li,s);p&&c.push(p)}}),c.length)return this._engine.markElementAsRemoved(this.id,e,!0,t,d),n&&qt(c).onDone(()=>this._engine.processLeaveNode(e)),!0}return!1}prepareLeaveAnimationListeners(e){let t=this._elementListeners.get(e),n=this._engine.statesByElement.get(e);if(t&&n){let s=new Set;t.forEach(a=>{let d=a.name;if(s.has(d))return;s.add(d);let h=this._triggers.get(d).fallbackTransition,u=n.get(d)||Ga,p=new zi(Li),g=new Vi(this.id,d,e);this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:d,transition:h,fromState:u,toState:p,player:g,isFallbackTransition:!0})})}}removeNode(e,t){let n=this._engine;if(e.childElementCount&&this._signalRemovalForInnerTriggers(e,t),this.triggerLeaveAnimation(e,t,!0))return;let s=!1;if(n.totalAnimations){let a=n.players.length?n.playersByQueriedElement.get(e):[];if(a&&a.length)s=!0;else{let d=e;for(;d=d.parentNode;)if(n.statesByElement.get(d)){s=!0;break}}}if(this.prepareLeaveAnimationListeners(e),s)n.markElementAsRemoved(this.id,e,!1,t);else{let a=e[Et];(!a||a===Kl)&&(n.afterFlush(()=>this.clearElementCache(e)),n.destroyInnerAnimations(e),n._onRemovalComplete(e,t))}}insertNode(e,t){mt(e,this._hostClassName)}drainQueuedTransitions(e){let t=[];return this._queue.forEach(n=>{let s=n.player;if(s.destroyed)return;let a=n.element,d=this._elementListeners.get(a);d&&d.forEach(c=>{if(c.name==n.triggerName){let h=Ir(a,n.triggerName,n.fromState.value,n.toState.value);h._data=e,Br(n.player,c.phase,h,c.callback)}}),s.markedForDestroy?this._engine.afterFlush(()=>{s.destroy()}):t.push(n)}),this._queue=[],t.sort((n,s)=>{let a=n.transition.ast.depCount,d=s.transition.ast.depCount;return a==0||d==0?a-d:this._engine.driver.containsElement(n.element,s.element)?1:-1})}destroy(e){this.players.forEach(t=>t.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,e)}},ao=class{bodyNode;driver;_normalizer;players=[];newHostElements=new Map;playersByElement=new Map;playersByQueriedElement=new Map;statesByElement=new Map;disabledNodes=new Set;totalAnimations=0;totalQueuedPlayers=0;_namespaceLookup={};_namespaceList=[];_flushFns=[];_whenQuietFns=[];namespacesByHostElement=new Map;collectedEnterElements=[];collectedLeaveElements=[];onRemovalComplete=(e,t)=>{};_onRemovalComplete(e,t){this.onRemovalComplete(e,t)}constructor(e,t,n){this.bodyNode=e,this.driver=t,this._normalizer=n}get queuedPlayers(){let e=[];return this._namespaceList.forEach(t=>{t.players.forEach(n=>{n.queued&&e.push(n)})}),e}createNamespace(e,t){let n=new so(e,t,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,t)?this._balanceNamespaceList(n,t):(this.newHostElements.set(t,n),this.collectEnterElement(t)),this._namespaceLookup[e]=n}_balanceNamespaceList(e,t){let n=this._namespaceList,s=this.namespacesByHostElement;if(n.length-1>=0){let d=!1,c=this.driver.getParentElement(t);for(;c;){let h=s.get(c);if(h){let u=n.indexOf(h);n.splice(u+1,0,e),d=!0;break}c=this.driver.getParentElement(c)}d||n.unshift(e)}else n.push(e);return s.set(t,e),e}register(e,t){let n=this._namespaceLookup[e];return n||(n=this.createNamespace(e,t)),n}registerTrigger(e,t,n){let s=this._namespaceLookup[e];s&&s.register(t,n)&&this.totalAnimations++}destroy(e,t){e&&(this.afterFlush(()=>{}),this.afterFlushAnimationsDone(()=>{let n=this._fetchNamespace(e);this.namespacesByHostElement.delete(n.hostElement);let s=this._namespaceList.indexOf(n);s>=0&&this._namespaceList.splice(s,1),n.destroy(t),delete this._namespaceLookup[e]}))}_fetchNamespace(e){return this._namespaceLookup[e]}fetchNamespacesByElement(e){let t=new Set,n=this.statesByElement.get(e);if(n){for(let s of n.values())if(s.namespaceId){let a=this._fetchNamespace(s.namespaceId);a&&t.add(a)}}return t}trigger(e,t,n,s){if(Ur(t)){let a=this._fetchNamespace(e);if(a)return a.trigger(t,n,s),!0}return!1}insertNode(e,t,n,s){if(!Ur(t))return;let a=t[Et];if(a&&a.setForRemoval){a.setForRemoval=!1,a.setForMove=!0;let d=this.collectedLeaveElements.indexOf(t);d>=0&&this.collectedLeaveElements.splice(d,1)}if(e){let d=this._fetchNamespace(e);d&&d.insertNode(t,n)}s&&this.collectEnterElement(t)}collectEnterElement(e){this.collectedEnterElements.push(e)}markElementAsDisabled(e,t){t?this.disabledNodes.has(e)||(this.disabledNodes.add(e),mt(e,Ka)):this.disabledNodes.has(e)&&(this.disabledNodes.delete(e),si(e,Ka))}removeNode(e,t,n){if(Ur(t)){let s=e?this._fetchNamespace(e):null;s?s.removeNode(t,n):this.markElementAsRemoved(e,t,!1,n);let a=this.namespacesByHostElement.get(t);a&&a.id!==e&&a.removeNode(t,n)}else this._onRemovalComplete(t,n)}markElementAsRemoved(e,t,n,s,a){this.collectedLeaveElements.push(t),t[Et]={namespaceId:e,setForRemoval:s,hasAnimation:n,removedBeforeQueried:!1,previousTriggersValues:a}}listen(e,t,n,s,a){return Ur(t)?this._fetchNamespace(e).listen(t,n,s,a):()=>{}}_buildInstruction(e,t,n,s,a){return e.transition.build(this.driver,e.element,e.fromState.value,e.toState.value,n,s,e.fromState.options,e.toState.options,t,a)}destroyInnerAnimations(e){let t=this.driver.query(e,Ri,!0);t.forEach(n=>this.destroyActiveAnimationsForElement(n)),this.playersByQueriedElement.size!=0&&(t=this.driver.query(e,Lr,!0),t.forEach(n=>this.finishActiveQueriedAnimationOnElement(n)))}destroyActiveAnimationsForElement(e){let t=this.playersByElement.get(e);t&&t.forEach(n=>{n.queued?n.markedForDestroy=!0:n.destroy()})}finishActiveQueriedAnimationOnElement(e){let t=this.playersByQueriedElement.get(e);t&&t.forEach(n=>n.finish())}whenRenderingDone(){return new Promise(e=>{if(this.players.length)return qt(this.players).onDone(()=>e());e()})}processLeaveNode(e){let t=e[Et];if(t&&t.setForRemoval){if(e[Et]=Kl,t.namespaceId){this.destroyInnerAnimations(e);let n=this._fetchNamespace(t.namespaceId);n&&n.clearElementCache(e)}this._onRemovalComplete(e,t.setForRemoval)}e.classList?.contains(Ka)&&this.markElementAsDisabled(e,!1),this.driver.query(e,cx,!0).forEach(n=>{this.markElementAsDisabled(n,!1)})}flush(e=-1){let t=[];if(this.newHostElements.size&&(this.newHostElements.forEach((n,s)=>this._balanceNamespaceList(n,s)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let n=0;n<this.collectedEnterElements.length;n++){let s=this.collectedEnterElements[n];mt(s,lx)}if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){let n=[];try{t=this._flushAnimations(n,e)}finally{for(let s=0;s<n.length;s++)n[s]()}}else for(let n=0;n<this.collectedLeaveElements.length;n++){let s=this.collectedLeaveElements[n];this.processLeaveNode(s)}if(this.totalQueuedPlayers=0,this.collectedEnterElements.length=0,this.collectedLeaveElements.length=0,this._flushFns.forEach(n=>n()),this._flushFns=[],this._whenQuietFns.length){let n=this._whenQuietFns;this._whenQuietFns=[],t.length?qt(t).onDone(()=>{n.forEach(s=>s())}):n.forEach(s=>s())}}reportError(e){throw Ml(e)}_flushAnimations(e,t){let n=new Hi,s=[],a=new Map,d=[],c=new Map,h=new Map,u=new Map,p=new Set;this.disabledNodes.forEach(B=>{p.add(B);let V=this.driver.query(B,ox,!0);for(let Y=0;Y<V.length;Y++)p.add(V[Y])});let g=this.bodyNode,x=Array.from(this.statesByElement.keys()),C=Yl(x,this.collectedEnterElements),_=new Map,w=0;C.forEach((B,V)=>{let Y=Ua+w++;_.set(V,Y),B.forEach(k=>mt(k,Y))});let E=[],y=new Set,v=new Set;for(let B=0;B<this.collectedLeaveElements.length;B++){let V=this.collectedLeaveElements[B],Y=V[Et];Y&&Y.setForRemoval&&(E.push(V),y.add(V),Y.hasAnimation?this.driver.query(V,dx,!0).forEach(k=>y.add(k)):v.add(V))}let D=new Map,S=Yl(x,Array.from(y));S.forEach((B,V)=>{let Y=Nr+w++;D.set(V,Y),B.forEach(k=>mt(k,Y))}),e.push(()=>{C.forEach((B,V)=>{let Y=_.get(V);B.forEach(k=>si(k,Y))}),S.forEach((B,V)=>{let Y=D.get(V);B.forEach(k=>si(k,Y))}),E.forEach(B=>{this.processLeaveNode(B)})});let A=[],M=[];for(let B=this._namespaceList.length-1;B>=0;B--)this._namespaceList[B].drainQueuedTransitions(t).forEach(Y=>{let k=Y.player,I=Y.element;if(A.push(k),this.collectedEnterElements.length){let De=I[Et];if(De&&De.setForMove){if(De.previousTriggersValues&&De.previousTriggersValues.has(Y.triggerName)){let qe=De.previousTriggersValues.get(Y.triggerName),Ve=this.statesByElement.get(Y.element);if(Ve&&Ve.has(Y.triggerName)){let dt=Ve.get(Y.triggerName);dt.value=qe,Ve.set(Y.triggerName,dt)}}k.destroy();return}}let N=!g||!this.driver.containsElement(g,I),F=D.get(I),$=_.get(I),ie=this._buildInstruction(Y,n,$,F,N);if(ie.errors&&ie.errors.length){M.push(ie);return}if(N){k.onStart(()=>hn(I,ie.fromStyles)),k.onDestroy(()=>bt(I,ie.toStyles)),s.push(k);return}if(Y.isFallbackTransition){k.onStart(()=>hn(I,ie.fromStyles)),k.onDestroy(()=>bt(I,ie.toStyles)),s.push(k);return}let Ne=[];ie.timelines.forEach(De=>{De.stretchStartingKeyframe=!0,this.disabledNodes.has(De.element)||Ne.push(De)}),ie.timelines=Ne,n.append(I,ie.timelines);let ae={instruction:ie,player:k,element:I};d.push(ae),ie.queriedElements.forEach(De=>rt(c,De,[]).push(k)),ie.preStyleProps.forEach((De,qe)=>{if(De.size){let Ve=h.get(qe);Ve||h.set(qe,Ve=new Set),De.forEach((dt,Ue)=>Ve.add(Ue))}}),ie.postStyleProps.forEach((De,qe)=>{let Ve=u.get(qe);Ve||u.set(qe,Ve=new Set),De.forEach((dt,Ue)=>Ve.add(Ue))})});if(M.length){let B=[];M.forEach(V=>{B.push(Al(V.triggerName,V.errors))}),A.forEach(V=>V.destroy()),this.reportError(B)}let L=new Map,R=new Map;d.forEach(B=>{let V=B.element;n.has(V)&&(R.set(V,V),this._beforeAnimationBuild(B.player.namespaceId,B.instruction,L))}),s.forEach(B=>{let V=B.element;this._getPreviousPlayers(V,!1,B.namespaceId,B.triggerName,null).forEach(k=>{rt(L,V,[]).push(k),k.destroy()})});let W=E.filter(B=>Ul(B,h,u)),K=new Map;Vl(K,this.driver,v,u,wt).forEach(B=>{Ul(B,h,u)&&W.push(B)});let z=new Map;C.forEach((B,V)=>{Vl(z,this.driver,new Set(B),h,Ti)}),W.forEach(B=>{let V=K.get(B),Y=z.get(B);K.set(B,new Map([...V?.entries()??[],...Y?.entries()??[]]))});let G=[],H=[],te={};d.forEach(B=>{let{element:V,player:Y,instruction:k}=B;if(n.has(V)){if(p.has(V)){Y.onDestroy(()=>bt(V,k.toStyles)),Y.disabled=!0,Y.overrideTotalTime(k.totalTime),s.push(Y);return}let I=te;if(R.size>1){let F=V,$=[];for(;F=F.parentNode;){let ie=R.get(F);if(ie){I=ie;break}$.push(F)}$.forEach(ie=>R.set(ie,I))}let N=this._buildAnimation(Y.namespaceId,k,L,a,z,K);if(Y.setRealPlayer(N),I===te)G.push(Y);else{let F=this.playersByElement.get(I);F&&F.length&&(Y.parentPlayer=qt(F)),s.push(Y)}}else hn(V,k.fromStyles),Y.onDestroy(()=>bt(V,k.toStyles)),H.push(Y),p.has(V)&&s.push(Y)}),H.forEach(B=>{let V=a.get(B.element);if(V&&V.length){let Y=qt(V);B.setRealPlayer(Y)}}),s.forEach(B=>{B.parentPlayer?B.syncPlayerEvents(B.parentPlayer):B.destroy()});for(let B=0;B<E.length;B++){let V=E[B],Y=V[Et];if(si(V,Nr),Y&&Y.hasAnimation)continue;let k=[];if(c.size){let N=c.get(V);N&&N.length&&k.push(...N);let F=this.driver.query(V,Lr,!0);for(let $=0;$<F.length;$++){let ie=c.get(F[$]);ie&&ie.length&&k.push(...ie)}}let I=k.filter(N=>!N.destroyed);I.length?gx(this,V,I):this.processLeaveNode(V)}return E.length=0,G.forEach(B=>{this.players.push(B),B.onDone(()=>{B.destroy();let V=this.players.indexOf(B);this.players.splice(V,1)}),B.play()}),G}afterFlush(e){this._flushFns.push(e)}afterFlushAnimationsDone(e){this._whenQuietFns.push(e)}_getPreviousPlayers(e,t,n,s,a){let d=[];if(t){let c=this.playersByQueriedElement.get(e);c&&(d=c)}else{let c=this.playersByElement.get(e);if(c){let h=!a||a==Li;c.forEach(u=>{u.queued||!h&&u.triggerName!=s||d.push(u)})}}return(n||s)&&(d=d.filter(c=>!(n&&n!=c.namespaceId||s&&s!=c.triggerName))),d}_beforeAnimationBuild(e,t,n){let s=t.triggerName,a=t.element,d=t.isRemovalTransition?void 0:e,c=t.isRemovalTransition?void 0:s;for(let h of t.timelines){let u=h.element,p=u!==a,g=rt(n,u,[]);this._getPreviousPlayers(u,p,d,c,t.toState).forEach(C=>{let _=C.getRealPlayer();_.beforeDestroy&&_.beforeDestroy(),C.destroy(),g.push(C)})}hn(a,t.fromStyles)}_buildAnimation(e,t,n,s,a,d){let c=t.triggerName,h=t.element,u=[],p=new Set,g=new Set,x=t.timelines.map(_=>{let w=_.element;p.add(w);let E=w[Et];if(E&&E.removedBeforeQueried)return new Pn(_.duration,_.delay);let y=w!==h,v=xx((n.get(w)||fx).map(L=>L.getRealPlayer())).filter(L=>{let R=L;return R.element?R.element===w:!1}),D=a.get(w),S=d.get(w),A=La(this._normalizer,_.keyframes,D,S),M=this._buildPlayer(_,A,v);if(_.subTimeline&&s&&g.add(w),y){let L=new Vi(e,c,w);L.setRealPlayer(M),u.push(L)}return M});u.forEach(_=>{rt(this.playersByQueriedElement,_.element,[]).push(_),_.onDone(()=>ux(this.playersByQueriedElement,_.element,_))}),p.forEach(_=>mt(_,Wa));let C=qt(x);return C.onDestroy(()=>{p.forEach(_=>si(_,Wa)),bt(h,t.toStyles)}),g.forEach(_=>{rt(s,_,[]).push(C)}),C}_buildPlayer(e,t,n){return t.length>0?this.driver.animate(e.element,t,e.duration,e.delay,e.easing,n):new Pn(e.duration,e.delay)}},Vi=class{namespaceId;triggerName;element;_player=new Pn;_containsRealPlayer=!1;_queuedCallbacks=new Map;destroyed=!1;parentPlayer=null;markedForDestroy=!1;disabled=!1;queued=!0;totalTime=0;constructor(e,t,n){this.namespaceId=e,this.triggerName=t,this.element=n}setRealPlayer(e){this._containsRealPlayer||(this._player=e,this._queuedCallbacks.forEach((t,n)=>{t.forEach(s=>Br(e,n,void 0,s))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(e.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(e){this.totalTime=e}syncPlayerEvents(e){let t=this._player;t.triggerCallback&&e.onStart(()=>t.triggerCallback("start")),e.onDone(()=>this.finish()),e.onDestroy(()=>this.destroy())}_queueEvent(e,t){rt(this._queuedCallbacks,e,[]).push(t)}onDone(e){this.queued&&this._queueEvent("done",e),this._player.onDone(e)}onStart(e){this.queued&&this._queueEvent("start",e),this._player.onStart(e)}onDestroy(e){this.queued&&this._queueEvent("destroy",e),this._player.onDestroy(e)}init(){this._player.init()}hasStarted(){return this.queued?!1:this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(e){this.queued||this._player.setPosition(e)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(e){let t=this._player;t.triggerCallback&&t.triggerCallback(e)}};function ux(i,e,t){let n=i.get(e);if(n){if(n.length){let s=n.indexOf(t);n.splice(s,1)}n.length==0&&i.delete(e)}return n}function px(i){return i??null}function Ur(i){return i&&i.nodeType===1}function mx(i){return i=="start"||i=="done"}function zl(i,e){let t=i.style.display;return i.style.display=e??"none",t}function Vl(i,e,t,n,s){let a=[];t.forEach(h=>a.push(zl(h)));let d=[];n.forEach((h,u)=>{let p=new Map;h.forEach(g=>{let x=e.computeStyle(u,g,s);p.set(g,x),(!x||x.length==0)&&(u[Et]=hx,d.push(u))}),i.set(u,p)});let c=0;return t.forEach(h=>zl(h,a[c++])),d}function Yl(i,e){let t=new Map;if(i.forEach(c=>t.set(c,[])),e.length==0)return t;let n=1,s=new Set(e),a=new Map;function d(c){if(!c)return n;let h=a.get(c);if(h)return h;let u=c.parentNode;return t.has(u)?h=u:s.has(u)?h=n:h=d(u),a.set(c,h),h}return e.forEach(c=>{let h=d(c);h!==n&&t.get(h).push(c)}),t}function mt(i,e){i.classList?.add(e)}function si(i,e){i.classList?.remove(e)}function gx(i,e,t){qt(t).onDone(()=>i.processLeaveNode(e))}function xx(i){let e=[];return Gl(i,e),e}function Gl(i,e){for(let t=0;t<i.length;t++){let n=i[t];n instanceof Er?Gl(n.players,e):e.push(n)}}function _x(i,e){let t=Object.keys(i),n=Object.keys(e);if(t.length!=n.length)return!1;for(let s=0;s<t.length;s++){let a=t[s];if(!e.hasOwnProperty(a)||i[a]!==e[a])return!1}return!0}function Ul(i,e,t){let n=t.get(i);if(!n)return!1;let s=e.get(i);return s?n.forEach(a=>s.add(a)):e.set(i,n),t.delete(i),!0}var ai=class{_driver;_normalizer;_transitionEngine;_timelineEngine;_triggerCache={};onRemovalComplete=(e,t)=>{};constructor(e,t,n){this._driver=t,this._normalizer=n,this._transitionEngine=new ao(e.body,t,n),this._timelineEngine=new ro(e.body,t,n),this._transitionEngine.onRemovalComplete=(s,a)=>this.onRemovalComplete(s,a)}registerTrigger(e,t,n,s,a){let d=e+"-"+s,c=this._triggerCache[d];if(!c){let h=[],u=[],p=ql(this._driver,a,h,u);if(h.length)throw _l(s,h);c=rx(s,p,this._normalizer),this._triggerCache[d]=c}this._transitionEngine.registerTrigger(t,s,c)}register(e,t){this._transitionEngine.register(e,t)}destroy(e,t){this._transitionEngine.destroy(e,t)}onInsert(e,t,n,s){this._transitionEngine.insertNode(e,t,n,s)}onRemove(e,t,n){this._transitionEngine.removeNode(e,t,n)}disableAnimations(e,t){this._transitionEngine.markElementAsDisabled(e,t)}process(e,t,n,s){if(n.charAt(0)=="@"){let[a,d]=Ha(n),c=s;this._timelineEngine.command(a,t,d,c)}else this._transitionEngine.trigger(e,t,n,s)}listen(e,t,n,s,a){if(n.charAt(0)=="@"){let[d,c]=Ha(n);return this._timelineEngine.listen(d,t,c,a)}return this._transitionEngine.listen(e,t,n,s,a)}flush(e=-1){this._transitionEngine.flush(e)}get players(){return[...this._transitionEngine.players,...this._timelineEngine.players]}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}afterFlushAnimationsDone(e){this._transitionEngine.afterFlushAnimationsDone(e)}};function yx(i,e){let t=null,n=null;return Array.isArray(e)&&e.length?(t=Qa(e[0]),e.length>1&&(n=Qa(e[e.length-1]))):e instanceof Map&&(t=Qa(e)),t||n?new vx(i,t,n):null}var vx=(()=>{class i{_element;_startStyles;_endStyles;static initialStylesByElement=new WeakMap;_state=0;_initialStyles;constructor(t,n,s){this._element=t,this._startStyles=n,this._endStyles=s;let a=i.initialStylesByElement.get(t);a||i.initialStylesByElement.set(t,a=new Map),this._initialStyles=a}start(){this._state<1&&(this._startStyles&&bt(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(bt(this._element,this._initialStyles),this._endStyles&&(bt(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(i.initialStylesByElement.delete(this._element),this._startStyles&&(hn(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(hn(this._element,this._endStyles),this._endStyles=null),bt(this._element,this._initialStyles),this._state=3)}}return i})();function Qa(i){let e=null;return i.forEach((t,n)=>{Cx(n)&&(e=e||new Map,e.set(n,t))}),e}function Cx(i){return i==="display"||i==="position"}var Qr=class{element;keyframes;options;_specialStyles;_onDoneFns=[];_onStartFns=[];_onDestroyFns=[];_duration;_delay;_initialized=!1;_finished=!1;_started=!1;_destroyed=!1;_finalKeyframe;_originalOnDoneFns=[];_originalOnStartFns=[];domPlayer;time=0;parentPlayer=null;currentSnapshot=new Map;constructor(e,t,n,s){this.element=e,this.keyframes=t,this.options=n,this._specialStyles=s,this._duration=n.duration,this._delay=n.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e
4=>e()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;let e=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,e,this.options),this._finalKeyframe=e.length?e[e.length-1]:new Map;let t=()=>this._onFinish();this.domPlayer.addEventListener("finish",t),this.onDestroy(()=>{this.domPlayer.removeEventListener("finish",t)})}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(e){let t=[];return e.forEach(n=>{t.push(Object.fromEntries(n))}),t}_triggerWebAnimation(e,t,n){return e.animate(this._convertKeyframesToObject(t),n)}onStart(e){this._originalOnStartFns.push(e),this._onStartFns.push(e)}onDone(e){this._originalOnDoneFns.push(e),this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(e=>e()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}setPosition(e){this.domPlayer===void 0&&this.init(),this.domPlayer.currentTime=e*this.time}getPosition(){return+(this.domPlayer.currentTime??0)/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){let e=new Map;this.hasStarted()&&this._finalKeyframe.forEach((n,s)=>{s!=="offset"&&e.set(s,this._finished?n:zr(this.element,s))}),this.currentSnapshot=e}triggerCallback(e){let t=e==="start"?this._onStartFns:this._onDoneFns;t.forEach(n=>n()),t.length=0}},Xr=class{validateStyleProperty(e){return!0}validateAnimatableStyleProperty(e){return!0}containsElement(e,t){return za(e,t)}getParentElement(e){return Rr(e)}query(e,t,n){return Va(e,t,n)}computeStyle(e,t,n){return zr(e,t)}animate(e,t,n,s,a,d=[]){let c=s==0?"both":"forwards",h={duration:n,delay:s,fill:c};a&&(h.easing=a);let u=new Map,p=d.filter(C=>C instanceof Qr);Tl(n,s)&&p.forEach(C=>{C.currentSnapshot.forEach((_,w)=>u.set(w,_))});let g=Pl(t).map(C=>new Map(C));g=Fl(e,g,u);let x=yx(e,g);return new Qr(e,g,h,x)}};var Wr="@",Ql="@.disabled",Jr=class{namespaceId;delegate;engine;_onDestroy;\u0275type=0;constructor(e,t,n,s){this.namespaceId=e,this.delegate=t,this.engine=n,this._onDestroy=s}get data(){return this.delegate.data}destroyNode(e){this.delegate.destroyNode?.(e)}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.engine.afterFlushAnimationsDone(()=>{queueMicrotask(()=>{this.delegate.destroy()})}),this._onDestroy?.()}createElement(e,t){return this.delegate.createElement(e,t)}createComment(e){return this.delegate.createComment(e)}createText(e){return this.delegate.createText(e)}appendChild(e,t){this.delegate.appendChild(e,t),this.engine.onInsert(this.namespaceId,t,e,!1)}insertBefore(e,t,n,s=!0){this.delegate.insertBefore(e,t,n),this.engine.onInsert(this.namespaceId,t,e,s)}removeChild(e,t,n,s){if(s){this.delegate.removeChild(e,t,n);return}this.parentNode(t)&&this.engine.onRemove(this.namespaceId,t,this.delegate)}selectRootElement(e,t){return this.delegate.selectRootElement(e,t)}parentNode(e){return this.delegate.parentNode(e)}nextSibling(e){return this.delegate.nextSibling(e)}setAttribute(e,t,n,s){this.delegate.setAttribute(e,t,n,s)}removeAttribute(e,t,n){this.delegate.removeAttribute(e,t,n)}addClass(e,t){this.delegate.addClass(e,t)}removeClass(e,t){this.delegate.removeClass(e,t)}setStyle(e,t,n,s){this.delegate.setStyle(e,t,n,s)}removeStyle(e,t,n){this.delegate.removeStyle(e,t,n)}setProperty(e,t,n){t.charAt(0)==Wr&&t==Ql?this.disableAnimations(e,!!n):this.delegate.setProperty(e,t,n)}setValue(e,t){this.delegate.setValue(e,t)}listen(e,t,n,s){return this.delegate.listen(e,t,n,s)}disableAnimations(e,t){this.engine.disableAnimations(e,t)}},oo=class extends Jr{factory;constructor(e,t,n,s,a){super(t,n,s,a),this.factory=e,this.namespaceId=t}setProperty(e,t,n){t.charAt(0)==Wr?t.charAt(1)=="."&&t==Ql?(n=n===void 0?!0:!!n,this.disableAnimations(e,n)):this.engine.process(this.namespaceId,e,t.slice(1),n):this.delegate.setProperty(e,t,n)}listen(e,t,n,s){if(t.charAt(0)==Wr){let a=wx(e),d=t.slice(1),c="";return d.charAt(0)!=Wr&&([d,c]=bx(d)),this.engine.listen(this.namespaceId,a,d,c,h=>{let u=h._data||-1;this.factory.scheduleListenerCallback(u,n,h)})}return this.delegate.listen(e,t,n,s)}};function wx(i){switch(i){case"body":return document.body;case"document":return document;case"window":return window;default:return i}}function bx(i){let e=i.indexOf("."),t=i.substring(0,e),n=i.slice(e+1);return[t,n]}var Zr=class{delegate;engine;_zone;_currentId=0;_microtaskId=1;_animationCallbacksBuffer=[];_rendererCache=new Map;_cdRecurDepth=0;constructor(e,t,n){this.delegate=e,this.engine=t,this._zone=n,t.onRemovalComplete=(s,a)=>{a?.removeChild(null,s)}}createRenderer(e,t){let s=this.delegate.createRenderer(e,t);if(!e||!t?.data?.animation){let u=this._rendererCache,p=u.get(s);if(!p){let g=()=>u.delete(s);p=new Jr("",s,this.engine,g),u.set(s,p)}return p}let a=t.id,d=t.id+"-"+this._currentId;this._currentId++,this.engine.register(d,e);let c=u=>{Array.isArray(u)?u.forEach(c):this.engine.registerTrigger(a,d,e,u.name,u)};return t.data.animation.forEach(c),new oo(this,d,s,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){queueMicrotask(()=>{this._microtaskId++})}scheduleListenerCallback(e,t,n){if(e>=0&&e<this._microtaskId){this._zone.run(()=>t(n));return}let s=this._animationCallbacksBuffer;s.length==0&&queueMicrotask(()=>{this._zone.run(()=>
4{s.forEach(a=>{let[d,c]=a;d(c)}),this._animationCallbacksBuffer=[]})}),s.push([t,n])}end(){this._cdRecurDepth--,this._cdRecurDepth==0&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}componentReplaced(e){this.engine.flush(),this.delegate.componentReplaced?.(e)}};var Sx=(()=>{class i extends ai{constructor(t,n,s){super(t,n,s)}ngOnDestroy(){this.flush()}static \u0275fac=function(n){return new(n||i)(Cr(Aa),Cr(Fn),Cr(Bn))};static \u0275prov=at({token:i,factory:i.\u0275fac})}return i})();function Dx(){return new qr}function Mx(i,e,t){return new Zr(i,e,t)}var Xl=[{provide:Bn,useFactory:Dx},{provide:ai,useClass:Sx},{provide:h0,useFactory:Mx,deps:[k0,ai,f0]}],Zv=[{provide:Fn,useClass:co},{provide:ka,useValue:"NoopAnimations"},...Xl],Ax=[{provide:Fn,useFactory:()=>new Xr},{provide:ka,useFactory:()=>"BrowserAnimations"},...Xl];function Jl(){return d0("NgEagerAnimations"),[...Ax]}var kx=n0(Zl(),1);var ed=(()=>{class i{}return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=Ai({type:i}),i.\u0275inj=Mi({imports:[ni]}),i})();var td=(()=>{let e=class e{};e.\u0275fac=function(s){return new(s||e)},e.\u0275cmp=We({type:e,selectors:[["app-loader"]],decls:7,vars:0,consts:[[1,"loader-container"],[1,"loader"],["width","240","height","240","viewBox","0 0 240 240",1,"pl"],["cx","120","cy","120","r","105","fill","none","stroke","#000","stroke-width","20","stroke-dasharray","0 660","stroke-dashoffset","-330","stroke-linecap","round",1,"pl__ring","pl__ring--a"],["cx","120","cy","120","r","35","fill","none","stroke","#000","stroke-width","20","stroke-dasharray","0 220","stroke-dashoffset","-110","stroke-linecap","round",1,"pl__ring","pl__ring--b"],["cx","85","cy","120","r","70","fill","none","stroke","#000","stroke-width","20","stroke-dasharray","0 440","stroke-linecap","round",1,"pl__ring","pl__ring--c"],["cx","155","cy","120","r","70","fill","none","stroke","#000","stroke-width","20","stroke-dasharray","0 440","stroke-linecap","round",1,"pl__ring","pl__ring--d"]],template:function(s,a){s&1&&(ot(0,"div",0)(1,"div",1),l0(),ot(2,"svg",2),cn(3,"circle",3)(4,"circle",4)(5,"circle",5)(6,"circle",6),Wt()()())},styles:['@import"https://cdnjs.cloudflare.com/ajax/libs/meyer-reset/2.0/reset.min.css";.loader-container[_ngcontent-%COMP%]{width:100%;height:100vh;position:fixed;top:0;left:0;background-color:#0000001a;z-index:99999;display:flex;justify-content:center;align-items:center}.loader[_ngcontent-%COMP%]{border:16px solid transparent;border-top:16px solid transparent;border-radius:50%;width:120px;height:120px;animation:spin 2s linear infinite;z-index:99999}.pl[_ngcontent-%COMP%]{width:6em;height:6em}.pl__ring[_ngcontent-%COMP%]{animation:_ngcontent-%COMP%_ringA 2s linear infinite}.pl__ring--a[_ngcontent-%COMP%]{stroke:#100ca1}.pl__ring--b[_ngcontent-%COMP%]{animation-name:_ngcontent-%COMP%_ringB;stroke:#c7b5f1}.pl__ring--c[_ngcontent-%COMP%]{animation-name:_ngcontent-%COMP%_ringC;stroke:#b2e2ff}.pl__ring--d[_ngcontent-%COMP%]{animation-name:_ngcontent-%COMP%_ringD;stroke:#ffc91d}@keyframes _ngcontent-%COMP%_ringA{0%,4%{stroke-dasharray:0 660;stroke-width:20;stroke-dashoffset:-330}12%{stroke-dasharray:60 600;stroke-width:30;stroke-dashoffset:-335}32%{stroke-dasharray:60 600;stroke-width:30;stroke-dashoffset:-595}40%,54%{stroke-dasharray:0 660;stroke-width:20;stroke-dashoffset:-660}62%{stroke-dasharray:60 600;stroke-width:30;stroke-dashoffset:-665}82%{stroke-dasharray:60 600;stroke-width:30;stroke-dashoffset:-925}90%,to{stroke-dasharray:0 660;stroke-width:20;stroke-dashoffset:-990}}@keyframes _ngcontent-%COMP%_ringB{0%,12%{stroke-dasharray:0 220;stroke-width:20;stroke-dashoffset:-110}20%{stroke-dasharray:20 200;stroke-width:30;stroke-dashoffset:-115}40%{stroke-dasharray:20 200;stroke-width:30;stroke-dashoffset:-195}48%,62%{stroke-dasharray:0 220;stroke-width:20;stroke-dashoffset:-220}70%{stroke-dasharray:20 200;stroke-width:30;stroke-dashoffset:-225}90%{stroke-dasharray:20 200;stroke-width:30;stroke-dashoffset:-305}98%,to{stroke-dasharray:0 220;stroke-width:20;stroke-dashoffset:-330}}@keyframes _ngcontent-%COMP%_ringC{0%{stroke-dasharray:0 440;stroke-width:20;stroke-dashoffset:0}8%{stroke-dasharray:40 400;stroke-width:30;stroke-dashoffset:-5}28%{stroke-dasharray:40 400;stroke-width:30;stroke-dashoffset:-175}36%,58%{stroke-dasharray:0 440;stroke-width:20;stroke-dashoffset:-220}66%{stroke-dasharray:40 400;stroke-width:30;stroke-dashoffset:-225}86%{stroke-dasharray:40 400;stroke-width:30;stroke-dashoffset:-395}94%,to{stroke-dasharray:0 440;stroke-width:20;stroke-dashoffset:-440}}@keyframes _ngcontent-%COMP%_ringD{0%,8%{stroke-dasharray:0 440;stroke-width:20;stroke-dashoffset:0}16%{stroke-dasharray:40 400;stroke-width:30;stroke-dashoffset:-5}36%{stroke-dasharray:40 400;stroke-width:30;stroke-dashoffset:-175}44%,50%{stroke-dasharray:0 440;stroke-width:20;stroke-dashoffset:-220}58%{stroke-dasharray:40 400;stroke-width:30;stroke-dashoffset:-225}78%{stroke-dasharray:40 400;stroke-width:30;stroke-dashoffset:-395}86%,to{stroke-dasharray:0 440;stroke-width:20;stroke-dashoffset:-440}}']});let i=e;return i})();var nd=i=>["/",i,"home"],Px=i=>["/",i,"about-us"],Ox=i=>["/",i,"blogs"],id=(()=>{let e=class e{constructor(){this.router=ge(Ar),this.translate=ge(kt),this.changeLangService=ge(ln),this.destroyRef=ge(on),this.menuOpen=Ae(!1),this.currentLang=this.changeLangService.currentLanguage}ngOnInit(){this.router.events.pipe(dn(this.destroyRef)).subscribe(n=>{n instanceof Mr&&this.menuOpen.set(!1)})}toggleMenu(){this.menuOpen.set(!this.menuOpen())}openBePartnerPage(){window.open(`${Ye.merchantPanelBaseURL}/onboarding/lead?lang=${this.currentLang()}`,"_blank")}switchLang(){this.changeLangService.changeLanguage(this.getNewLang())}getNewLang(){return this.currentLang()===Ct.Ar?Ct.En:Ct.Ar}};e.\u0275fac=function(s){return new(s||e)},e.\u0275cmp=We({type:e,selectors:[["app-header"]],decls:40,vars:35,consts:[[1,"container"],[1,"header-container"],[1,"small-menu"],[1,"logo",3,"routerLink"],["loading","lazy","src","assets/images/madfu-logo.svg","alt","Madfu"],["id","menu-toggle",1,"menu-toggle",3,"click"],["loading","lazy","src","/assets/images/menu.svg","alt","burger menu"],[1,"nav-menu"],["routerLinkActive","active",3,"routerLink"],[1,"small-screen-item"],[1,"join-as-partner-button",3,"click"],[1,"language-change",3,"click"],["loading","lazy","src","assets/images/lang.svg","alt","world"]],template:function(s,a){s&1&&(j(0,"header")(1,"div",0)(2,"div",1)(3,"div",2)(4,"a",3),he(5,"img",4),U(),j(6,"button",5),Oe("click",function(){return a.toggleMenu()}),he(7,"img",6),U()(),j(8,"ul",7)(9,"li")(10,"a",8),J(11),ee(12,"translate"),U()(),j(13,"li")(14,"a",8),J(15),ee(16,"translate"),U()(),j(17,"li")(18,"a",8),J(19),ee(20,"translate"),U()(),j(21,"li",9)(22,"button",10),Oe
4("click",function(){return a.openBePartnerPage()}),J(23),ee(24,"translate"),U()(),j(25,"li",9)(26,"button",11),Oe("click",function(){return a.switchLang()}),he(27,"img",12),J(28),ee(29,"translate"),U()()(),j(30,"ul",7)(31,"li")(32,"button",11),Oe("click",function(){return a.switchLang()}),he(33,"img",12),J(34),ee(35,"translate"),U()(),j(36,"li")(37,"button",10),Oe("click",function(){return a.openBePartnerPage()}),J(38),ee(39,"translate"),U()()()()()()),s&2&&(O(4),ce("routerLink",He(27,nd,a.translate.currentLang)),O(4),ct("active",a.menuOpen()),O(2),ce("routerLink",He(29,nd,a.translate.currentLang)),O(),re(" ",ne(12,13,"home")," "),O(3),ce("routerLink",He(31,Px,a.translate.currentLang)),O(),re(" ",ne(16,15,"about-us")," "),O(3),ce("routerLink",He(33,Ox,a.translate.currentLang)),O(),re(" ",ne(20,17,"blogs-and-news")," "),O(4),re(" ",ne(24,19,"join-as-partner")," "),O(5),re(" ",ne(29,21,"currentLanguage")," "),O(6),re(" ",ne(35,23,"currentLanguage")," "),O(4),re(" ",ne(39,25,"join-as-partner")," "))},dependencies:[kr,I0,it,pt],styles:["header[_ngcontent-%COMP%]{position:fixed;width:100%;z-index:9999999;transition:all .5s ease-in-out;background:#fff}header[_ngcontent-%COMP%]   .header-container[_ngcontent-%COMP%]{padding-block:36px;display:flex;align-items:center;justify-content:space-between;max-width:100%}header[_ngcontent-%COMP%]   .header-container[_ngcontent-%COMP%]   .small-menu[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between}@media only screen and (max-width: 991.98px){header[_ngcontent-%COMP%]   .header-container[_ngcontent-%COMP%]   .small-menu[_ngcontent-%COMP%]{width:100%}}@media only screen and (max-width: 991.98px){header[_ngcontent-%COMP%]   .header-container[_ngcontent-%COMP%]{width:100%;padding-block:40px 16px;flex-direction:column;justify-content:center}}header[_ngcontent-%COMP%]   .logo[_ngcontent-%COMP%]{display:block}header[_ngcontent-%COMP%]   .logo[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{width:99px;height:58px}@media only screen and (max-width: 991.98px){header[_ngcontent-%COMP%]   .logo[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{width:60px;height:36px}}header[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;padding:0;list-style-type:none;height:58px}@media only screen and (max-width: 991.98px){header[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%]{display:none;height:auto}}header[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]{padding:0 21px;height:100%;display:flex;align-items:center}header[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%]   li.small-screen-item[_ngcontent-%COMP%]{display:none}header[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{color:#101440;font-size:20px;font-weight:600;line-height:120%}header[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]:has(a.active){border-bottom:2px solid #100ca1}header[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]   .language-change[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;cursor:pointer;padding:0;border:unset;background:transparent;color:#101440;font-size:20px;font-weight:600;line-height:120%;font-family:IBM Plex Sans Arabic}header[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]   .language-change[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{margin-inline-end:5px}header[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]   .join-as-partner-button[_ngcontent-%COMP%]{width:187px;height:48px;padding:12px 24px;cursor:pointer;border:0px;border-radius:14px;background:#100ca1;color:#e8f4f9;font-size:20px;font-weight:500;line-height:120%}.menu-toggle[_ngcontent-%COMP%]{cursor:pointer;display:none;background:transparent;border:0px}.menu-toggle[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{width:30px;height:30px}@media only screen and (max-width: 991.98px){.menu-toggle[_ngcontent-%COMP%]{display:block;padding:0}}@media only screen and (max-width: 991.98px){.nav-menu.active[_ngcontent-%COMP%]{display:flex;flex-direction:column;z-index:1;padding:20px;margin:0 auto}.nav-menu.active[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]{margin-bottom:40px;padding-bottom:10px}.nav-menu.active[_ngcontent-%COMP%]   li.small-screen-item[_ngcontent-%COMP%]{display:block}.nav-menu.active[_ngcontent-%COMP%]   li.small-screen-item[_ngcontent-%COMP%]:last-child{margin-top:80px}.nav-menu.active[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]:last-child{margin-bottom:0}.nav-menu.active[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{font-size:20px}}  .rtl header ul li .open-contact-support-button{font-size:8px!important}  .rtl header ul li .language-change{font-family:Degular!important}"]});let i=e;return i})();function Tx(i,e){if(i&1&&(ot(0,"div",0)(1,"div",1)(2,"a",2),cn(3,"img",3),ot(4,"div",4)(5,"p",5),J(6),ee(7,"translate"),Wt(),ot(8,"p",6),J(9),Wt()()()(),cn(10,"div",7),ot(11,"div",1)(12,"a",2),cn(13,"img",8),ot(14,"div",4)(15,"p",5),J(16),ee(17,"translate"),Wt(),ot(18,"p",6),J(19),Wt()()()(),cn(20,"div",7),ot(21,"div",9)(22,"a",2),cn(23,"img",10),ot(24,"div",4)(25,"p",5),J(26),ee(27,"translate"),Wt(),ot(28,"p",6),J(29),Wt()()()()()),i&2){let t=fe();O(2),wr("href","mailto:"+t.footerData().merchantSupportEmail,ft),O(4),Re(ne(7,9,"merchant-support")),O(3),Re(t.footerData().merchantSupportEmail),O(3),wr("href","mailto:"+t.footerData().email,ft),O(4),Re(ne(17,11,"general-inquiries")),O(3),Re(t.footerData().email),O(3),wr("href","tel:"+t.footerData().phone,ft),O(4),Re(ne(27,13,"phone-number-label")),O(3),Re(t.footerData().phone)}}var rd=(()=>{let e=class e{constructor(){this.footerData=ut()}};e.\u0275fac=function(s){return new(s||e)},e.\u0275cmp=We({type:e,selectors:[["app-contact-info-widget"]],inputs:{footerData:[1,"footerData"]},decls:1,vars:1,consts:[[1,"contact-info-widget"],[1,"contact-item"],[3,"href"],["loading","lazy","src","assets/images/merchant-support-icon.svg","alt","Merchant Support"],[1,"contact-text"],[1,"label"],[1,"value"],[1,"divi
4der"],["loading","lazy","src","assets/images/general-inquiries-icon.svg","alt","General Inquiries"],[1,"contact-item","phone-item"],["loading","lazy","src","assets/images/phone-number-icon.svg","alt","Phone Number"]],template:function(s,a){s&1&&Ce(0,Tx,30,15,"div",0),s&2&&we(a.footerData()?0:-1)},dependencies:[it,pt],styles:[".contact-info-widget[_ngcontent-%COMP%]{display:flex;align-items:flex-start;justify-content:space-between;position:relative;z-index:9999;bottom:-40px;width:fit-content;margin:0 auto;padding:25px 40px;border-radius:30px;background:#fff;box-shadow:0 4px 22px #0000001f}@media only screen and (max-width: 991.98px){.contact-info-widget[_ngcontent-%COMP%]{padding:12px;gap:12px;border-radius:11px;box-shadow:0 1.4px 7.75px #0000001f;width:90%;justify-content:center}}@media only screen and (max-width: 400px){.contact-info-widget[_ngcontent-%COMP%]{flex-wrap:wrap;justify-content:center}}@media screen and (max-width: 991.98px) and (min-width: 426px){.contact-info-widget[_ngcontent-%COMP%]{width:fit-content!important}}.contact-item[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:flex-start;gap:10px}.contact-item[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:flex-start;gap:10px;text-decoration:none;color:inherit}.contact-item[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{width:64px;height:64px}.contact-item[_ngcontent-%COMP%]   .contact-text[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:2px}.contact-item[_ngcontent-%COMP%]   .label[_ngcontent-%COMP%]{font-size:16px;font-weight:600;line-height:1.2;color:#232233;white-space:nowrap}.contact-item[_ngcontent-%COMP%]   .value[_ngcontent-%COMP%]{font-size:16px;font-weight:400;line-height:1.2;color:#232233;white-space:nowrap;text-transform:lowercase}@media only screen and (max-width: 991.98px){.contact-item[_ngcontent-%COMP%], .contact-item[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{gap:3.5px}.contact-item[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{width:22px;height:22px}.contact-item[_ngcontent-%COMP%]   .label[_ngcontent-%COMP%], .contact-item[_ngcontent-%COMP%]   .value[_ngcontent-%COMP%]{font-size:10px}}@media only screen and (max-width: 326px){.contact-item[_ngcontent-%COMP%], .contact-item[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{gap:2.5px}.contact-item[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{width:22px;height:22px}.contact-item[_ngcontent-%COMP%]   .label[_ngcontent-%COMP%], .contact-item[_ngcontent-%COMP%]   .value[_ngcontent-%COMP%]{font-size:8px}.contact-item   [dir=rtl][_nghost-%COMP%]:nth-child(1), [dir=rtl]   [_nghost-%COMP%]:nth-child(1), .contact-item   [dir=rtl][_nghost-%COMP%]:nth-child(3), [dir=rtl]   [_nghost-%COMP%]:nth-child(3){flex:1}}.divider[_ngcontent-%COMP%]{align-self:stretch;width:1px;background:#bcc1c6;margin:0 30px}@media only screen and (max-width: 991.98px){.divider[_ngcontent-%COMP%]{margin:0}}@media only screen and (max-width: 400px){.divider[_ngcontent-%COMP%]:nth-child(4){display:none}}[dir=rtl][_nghost-%COMP%]   .contact-item[_ngcontent-%COMP%]   .label[_ngcontent-%COMP%], [dir=rtl]   [_nghost-%COMP%]   .contact-item[_ngcontent-%COMP%]   .label[_ngcontent-%COMP%], [dir=rtl][_nghost-%COMP%]   .contact-item[_ngcontent-%COMP%]   .value[_ngcontent-%COMP%], [dir=rtl]   [_nghost-%COMP%]   .contact-item[_ngcontent-%COMP%]   .value[_ngcontent-%COMP%]{text-align:right}[dir=rtl][_nghost-%COMP%]   .phone-item[_ngcontent-%COMP%]   img[_ngcontent-%COMP%], [dir=rtl]   [_nghost-%COMP%]   .phone-item[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{transform:rotateY(180deg)}"]});let i=e;return i})();var Bx=i=>["/",i,"home"],Ix=i=>["/",i,"blogs"],Rx=i=>["/",i,"privacy"],Nx=i=>["/",i,"terms-and-conditions"],Lx=i=>["/",i,"financial-statements"],sd=i=>["/",i,"faq"],Hx=i=>["/",i,"complaints"];function zx(i,e){if(i&1&&he(0,"app-contact-info-widget",0),i&2){let t=fe();ce("footerData",t.footerData())}}var ad=(()=>{let e=class e{constructor(){this.changeLangService=ge(ln),this.footerServices=ge(J0),this.translate=ge(kt),this.destroyRef=ge(on),this.pageTitle=ut(""),this.isPartnerRoute=ut(!1),this.Ap
4plicationLanguages=Ct,this.currentLang=this.changeLangService.currentLanguage,this.footerData=Ae(void 0),this.bePartnerUrl=y0(()=>`${Ye.merchantPanelBaseURL}/onboarding/lead?lang=${this.currentLang()}`)}ngOnInit(){this.getFooterMainData()}switchLang(n){this.changeLangService.changeLanguage(n.target.value)}getFooterMainData(){this.footerServices.getFooterData().pipe(dn(this.destroyRef)).subscribe(n=>{this.footerData.set(n)})}};e.\u0275fac=function(s){return new(s||e)},e.\u0275cmp=We({type:e,selectors:[["app-footer"]],inputs:{pageTitle:[1,"pageTitle"],isPartnerRoute:[1,"isPartnerRoute"]},decls:100,vars:79,consts:[[3,"footerData"],[1,""],[1,"d-flex","footer-widget"],[1,"item","logo-widget"],[1,"logo",3,"routerLink"],["loading","lazy","src","assets/images/footer-logo.svg","alt","Madfu"],[1,"address"],["target","_blank","href","https://www.instagram.com/enjoy_madfu/"],["loading","lazy","src","assets/images/instagram.svg","alt","instagram"],["target","_blank","href","https://x.com/enjoy_madfu"],["loading","lazy","src","assets/images/twitter.svg","alt","twitter"],["target","_blank","href","https://www.linkedin.com/company/madfu-limited"],["loading","lazy","src","assets/images/linkedin.svg","alt","linkedin"],[1,"item","listed-items"],[3,"routerLink"],["href","assets/files/shariah-compliance.pdf","target","_blank"],["target","_blank","rel","noopener",3,"href"],["href","https://madfuapis.readme.io/","target","_blank"],["href","assets/Consumer_Protection.pdf","target","_blank"],[1,"item","get-app-widget"],["target","_blank","href","https://apps.apple.com/us/app/madfu-%D9%85%D8%AF%D9%81%D9%88%D8%B9/id1658723268"],["loading","lazy","src","assets/images/app-store.svg","alt","app store"],["target","_blank","href","https://play.google.com/store/apps/details?id=com.sa.app.madfuser"],["loading","lazy","src","assets/images/play-store.svg","alt","play store"],[1,"d-flex","footer-copyright","d-flex"],[1,"footer-copyright-content-1"],[1,"footer-copyright-content-2"],[1,"lang-widget"],["name","langs","id","langs",3,"change","ngModel"],[3,"value"],["loading","lazy","src","assets/images/lang.svg","alt","world"]],template:function(s,a){if(s&1&&(Ce(0,zx,1,1,"app-contact-info-widget",0),j(1,"footer")(2,"div",1)(3,"div",2)(4,"div",3)(5,"a",4),he(6,"img",5),U(),j(7,"p",6),J(8),U(),j(9,"ul")(10,"li")(11,"a",7),he(12,"img",8),U()(),j(13,"li")(14,"a",9),he(15,"img",10),U()(),j(16,"li")(17,"a",11),he(18,"img",12),U()()()(),j(19,"ul",13)(20,"li"),J(21),ee(22,"translate"),U(),j(23,"li")(24,"a",14),J(25),ee(26,"translate"),U()(),j(27,"li")(28,"a",14),J(29),ee(30,"translate"),U()(),j(31,"li")(32,"a",14),J(33),ee(34,"translate"),U()(),j(35,"li")(36,"a",15),J(37),ee(38,"translate"),U()()(),j(39,"ul",13)(40,"li"),J(41),ee(42,"translate"),U(),j(43,"li")(44,"a",16),J(45),ee(46,"translate"),U()(),j(47,"li")(48,"a",14),J(49),ee(50,"translate"),U()(),j(51,"li")(52,"a",17),J(53),ee(54,"translate"),U()()(),j(55,"ul",13)(56,"li"),J(57),ee(58,"translate"),U(),j(59,"li")(60,"a",14),J(61),ee(62,"translate"),U()(),j(63,"li")(64,"a",14),J(65),ee(66,"translate"),U()(),j(67,"li")(68,"a",18),J(69),ee(70,"translate"),U()(),j(71,"li")(72,"a",14),J(73),ee(74,"translate"),U()()(),j(75,"div",19)(76,"p"),J(77),ee(78,"translate"),U(),j(79,"ul")(80,"li")(81,"a",20),he(82,"img",21),U()(),j(83,"li")(84,"a",22),he(85,"img",23),U()()()()(),j(86,"div",24)(87,"p",25),J(88),ee(89,"translate"),U(),j(90,"div",26)(91,"p"),J(92),U()(),j(93,"div",27)(94,"select",28),Oe("change",function(c){return a.switchLang(c)}),j(95,"option",29),J(96,"Arabic"),U(),j(97,"option",29),J(98,"English"),U()(),he(99,"img",30),U()()()()),s&2){let d,c;we(a.pageTitle()!=="email-confirmation"?0:-1),O(5),ce("routerLink",He(63,Bx,a.translate.currentLang)),O(3),re(" ",a.currentLang()==a.ApplicationLanguages.Ar?(d=a.footerData())==null?null:d.addressAr:(d=a.footerData())==null?null:d.addressEn," "),O(13),Re(ne(22,31,"get-to-know-us")),O(3),ce("routerLink",He(65,Ix,a.translate.currentLang)),O(),re(" ",ne(26,33,"our-news")," "),O(3),ce("routerLink",He(67,Rx,a.translate.currentLang)),O(),re(" ",ne(30,35,"privacy-policy")," "),O(3),ce("routerLink",He(69,Nx,a.translate.currentLang)),O(),re(" ",ne(34,37,"terms-and-conditions")," "),O(4),re(" ",ne(38,39,"shariah-compliance")," "),O(4),Re(ne(42,41,"business")),O(3),ce("href",a.bePartnerUrl(),ft),O(),re(" ",ne(46,43,"join-our-partners")," "),O(3),ce("routerLink",He(71,Lx,a.translate.currentLang)),O(),re(" ",ne(50,45,"Financial-Statements")," "),O(4),re(" ",ne(54,47,"integration-process-with-madfu")," "),O(4),Re(ne(58,49,"your-voice-is-heard")),O(3),ce("routerLink",He(73,sd,a.translate.currentLang)),O(),re(" ",ne(62,51,"help-center")," "),O(3),ce("routerLink",He(75,sd,a.translate.currentLang)),O(),re(" ",ne(66,53,"FAQ")," "),O(4),Re(ne(70,55,"Consumer-Protection")),O(3),ce("routerLink",He(77,Hx,a.translate.currentLang)),O(),re(" ",ne(74,57,"COMPLAINTS_CENTER")," "),O(4),Re(ne(78,59,"download-the-app-now")),O(11),re(" ",ne(89,61,"all-rights-reserved")," "),O(4),re(" ",a.currentLang()==a.ApplicationLanguages.Ar?(c=a.footerData())==null?null:c.copyRightTextAr:(c=a.footerData())==null?null:c.copyRightTextEn," "),O(2),ce("ngModel",a.currentLang()),O(),ce("value",a.ApplicationLanguages.Ar),O(2),ce("value",a.ApplicationLanguages.En)}},dependencies:[kr,fn,$0,K0,j0,Pr,Y0,it,rd,pt],styles:['footer[_ngcontent-%COMP%]{background:#101440;padding-top:78px;position:relative}footer[_ngcontent-%COMP%]   .footer-widget[_ngcontent-%COMP%]{padding:0 112px;justify-content:space-between;margin-bottom:38px}@media only screen and (max-width: 991.98px){footer[_ngcontent-%COMP%]   .footer-widget[_ngcontent-%COMP%]{padding:20px;flex-direction:row;flex-wrap:wrap}}@media only screen and (max-width: 991.98px){footer[_ngcontent-%COMP%]   .footer-widget[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]{width:49%;margin-bottom:50px}}@media only screen and (max-width: 991.98px){footer[_ngcontent-%COMP%]   .footer-widget[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:last-child{margin-bottom:0}}footer[_ngcontent-%COMP%]   .footer-widget[_ngcontent-%COMP%]   .logo-widget[_ngcontent-%COMP%]   .address[_ngcontent-%COMP%], footer[_ngcontent-%COMP%]   .footer-widget[_ngcontent-%COMP%]   .logo-widget[_ngcontent-%COMP%]   .phone[_ngcontent-%COMP%]{font-size:14px;line-height:20px;color:#fff;margin-top:16px}footer[_ngcontent-%COMP%]   .footer-widget[_ngcontent-%COMP%]   .logo-widget[_ngcontent-%COMP%]   .phone[_ngcontent-%COMP%]{margin-bottom:8px;margin-top:0}footer[_ngcontent-%COMP%]   .footer-widget[_ngcontent-%COMP%]   .logo-widget[_ngcontent-%COMP%]   .phone[_ngcontent-%COMP%]   .phone-number[_ngcontent-%COMP%]{direction:ltr;display:inline-flex;gap:5px}footer[_ngcontent-%COMP%]   .footer-widget[_ngcontent-%COMP%]   .logo-widget[_ngcontent-%COMP%]   .logo[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{max-width:100%}@media only screen and (max-width: 991.98px){footer[_ngcontent-%COMP%]   .footer-widget[_ngcontent-%COMP%]   .logo-widget[_ngcontent-%COMP%]   .logo[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{width:88px;height:50px}}footer[_ngcontent-%COMP%]   .footer-widget[_ngcontent-%COMP%]   .logo-widget[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%]{margin-top:1px;display:flex}footer[_ngcontent-%COMP%]   .footer-widget[_ngcontent-%COMP%]   .logo-widget[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]:not(:first-child){margin-inline-start:17px}footer[_ngcontent-%COMP%]   .footer-widget[_ngcontent-%COMP%]   .get-app-widget[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{margin-bottom:17px;color:#fff}footer[_ngcontent-%COMP%]   .footer-widget[_ngcontent-%COMP%]   .get-app-widget[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]{margin-bottom:13px}footer[_ngcontent-%COMP%]   .footer-widget[_ngcontent-%COMP%]   .get-app-widget[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{object-fit:cover;border-radius:5px}footer[_ngcontent-%COMP%]   .footer-widget[_ngcontent-%COMP%]   .listed-items[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]{font-size:14px;margin-bottom:10px;line-height:20px;font-weight:300}footer[_ngcontent-%COMP%]   .footer-widget[_ngcontent-%COMP%]   .listed-items[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]:first-child{margin-bottom:17px;color:#fff;font-feature-settings:"clig" off,"liga" off;font-weight:600}footer[_ngcontent-%COMP%]   .footer-widget[_ngcontent-%COMP%]   .listed-items[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{color:#ffffffb5;line-height:18.323px;font-weight:100;font-size:14px;transition:color .5 linear}footer[_ngcontent-%COMP%]   .footer-widget[_ngcontent-%COMP%]   .listed-items[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]:hover{color:#fff;transition:color .5 linear}footer[_ngcontent-%COMP%]   .footer-copyright[_ngcontent-%COMP%]{justify-content:space-between;padding:0 112px 27px;align-items:center}@media only screen and (max-width: 991.98px){footer[_ngcontent-%COMP%]   .footer-copyright[_ngcontent-%COMP%]{padding:20px;flex-direction:column;align-items:center}}footer[_ngcontent-%COMP%]   .footer-copyright[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{color:#f7f9fc;font-size:14px;line-height:14.5px;letter-spacing:.2px}footer[_ngcontent-%COMP%]   .footer-copyright[_ngcontent-%COMP%]   .footer-copyright-content-1[_ngcontent-%COMP%]{width:24%;display:flex;align-items:center}footer[_ngcontent-%COMP%]   .footer-copyright[_ngcontent-%COMP%]   .footer-copyright-content-2[_ngcontent-%COMP%]{padding:0;width:58%}footer[_ngcontent-%COMP%]   .footer-copyright[_ngcontent-%COMP%]   .footer-copyright-content-2[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{text-align:center;white-space:pre-line;color:#ffffffb5;line-height:140%}footer[_ngcontent-%COMP%]   .footer-copyright[_ngcontent-%COMP%]   .lang-widget[_ngcontent-%COMP%]{width:15%;text-align:end}footer[_ngcontent-%COMP%]   .footer-copyright[_ngcontent-%COMP%]   .lang-widget[_ngcontent-%COMP%]   select[_ngcontent-%COMP%]{background:transparent;color:#fff;border:0px;position:relative;top:-4px;margin-inline-start:20px}footer[_ngcontent-%COMP%]   .footer-copyright[_ngcontent-%COMP%]   .lang-widget[_ngcontent-%COMP%]   select[_ngcontent-%COMP%]   option[_ngcontent-%COMP%]{color:#000}footer[_ngcontent-%COMP%]   .footer-copyright[_ngcontent-%COMP%]   .lang-widget[_ngcontent-%COMP%]   select[_ngcontent-%COMP%]   option[_ngcontent-%COMP%]:hover{color:#fff}@media only screen and (max-width: 991.98px){footer[_ngcontent-%COMP%]   .footer-copyright[_ngcontent-%COMP%]   .footer-copyright-content-1[_ngcontent-%COMP%], footer[_ngcontent-%COMP%]   .footer-copyright[_ngcontent-%COMP%]   .footer-copyright-content-2[_ngcontent-%COMP%], footer[_ngcontent-%COMP%]   .footer-copyright[_ngcontent-%COMP%]   .lang-widget[_ngcontent-%COMP%]{width:100%;text-align:center;margin-bottom:15px}}']});let i=e;return i})();var St=Object.create(null);St.open="0";St.close="1";St.ping="2";St.pong="3";St.message="4";St.upgrade="5";St.noop="6";var Ui=Object.create(null);Object.keys(St).forEach(i=>
4{Ui[St[i]]=i});var Wi={type:"error",data:"parser error"};var ld=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",dd=typeof ArrayBuffer=="function",fd=i=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(i):i&&i.buffer instanceof ArrayBuffer,qi=({type:i,data:e},t,n)=>ld&&e instanceof Blob?t?n(e):od(e,n):dd&&(e instanceof ArrayBuffer||fd(e))?t?n(e):od(new Blob([e]),n):n(St[i]+(e||"")),od=(i,e)=>{let t=new FileReader;return t.onload=function(){let n=t.result.split(",")[1];e("b"+(n||""))},t.readAsDataURL(i)};function cd(i){return i instanceof Uint8Array?i:i instanceof ArrayBuffer?new Uint8Array(i):new Uint8Array(i.buffer,i.byteOffset,i.byteLength)}var ho;function hd(i,e){if(ld&&i.data instanceof Blob)return i.data.arrayBuffer().then(cd).then(e);if(dd&&(i.data instanceof ArrayBuffer||fd(i.data)))return e(cd(i.data));qi(i,!1,t=>{ho||(ho=new TextEncoder),e(ho.encode(t))})}var ud="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",ji=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let i=0;i<ud.length;i++)ji[ud.charCodeAt(i)]=i;var pd=i=>{let e=i.length*.75,t=i.length,n,s=0,a,d,c,h;i[i.length-1]==="="&&(e--,i[i.length-2]==="="&&e--);let u=new ArrayBuffer(e),p=new Uint8Array(u);for(n=0;n<t;n+=4)a=ji[i.charCodeAt(n)],d=ji[i.charCodeAt(n+1)],c=ji[i.charCodeAt(n+2)],h=ji[i.charCodeAt(n+3)],p[s++]=a<<2|d>>4,p[s++]=(d&15)<<4|c>>2,p[s++]=(c&3)<<6|h&63;return u};var Vx=typeof ArrayBuffer=="function",$i=(i,e)=>{if(typeof i!="string")return{type:"message",data:md(i,e)};let t=i.charAt(0);return t==="b"?{type:"message",data:Yx(i.substring(1),e)}:Ui[t]?i.length>1?{type:Ui[t],data:i.substring(1)}:{type:Ui[t]}:Wi},Yx=(i,e)=>{if(Vx){let t=pd(i);return md(t,e)}else return{base64:!0,data:i}},md=(i,e)=>{switch(e){case"blob":return i instanceof Blob?i:new Blob([i]);case"arraybuffer":default:return i instanceof ArrayBuffer?i:i.buffer}};var gd="�",xd=(i,e)=>{let t=i.length,n=new Array(t),s=0;i.forEach((a,d)=>{qi(a,!1,c=>{n[d]=c,++s===t&&e(n.join(gd))})})},_d=(i,e)=>{let t=i.split(gd),n=[];for(let s=0;s<t.length;s++){let a=$i(t[s],e);if(n.push(a),a.type==="error")break}return n};function yd(){return new TransformStream({transform(i,e){hd(i,t=>{let n=t.length,s;if(n<126)s=new Uint8Array(1),new DataView(s.buffer).setUint8(0,n);else if(n<65536){s=new Uint8Array(3);let a=new DataView(s.buffer);a.setUint8(0,126),a.setUint16(1,n)}else{s=new Uint8Array(9);let a=new DataView(s.buffer);a.setUint8(0,127),a.setBigUint64(1,BigInt(n))}i.data&&typeof i.data!="string"&&(s[0]|=128),e.enqueue(s),e.enqueue(t)})}})}var uo;function es(i){return i.reduce((e,t)=>e+t.length,0)}function ts(i,e){if(i[0].length===e)return i.shift();let t=new Uint8Array(e),n=0;for(let s=0;s<e;s++)t[s]=i[0][n++],n===i[0].length&&(i.shift(),n=0);return i.length&&n<i[0].length&&(i[0]=i[0].slice(n)),t}function vd(i,e){uo||(uo=new TextDecoder);let t=[],n=0,s=-1,a=!1;return new TransformStream({transform(d,c){for(t.push(d);;){if(n===0){if(es(t)<1)break;let h=ts(t,1);a=(h[0]&128)===128,s=h[0]&127,s<126?n=3:s===126?n=1:n=2}else if(n===1){if(es(t)<2)break;let h=ts(t,2);s=new DataView(h.buffer,h.byteOffset,h.length).getUint16(0),n=3}else if(n===2){if(es(t)<8)break;let h=ts(t,8),u=new DataView(h.buffer,h.byteOffset,h.length),p=u.getUint32(0);if(p>Math.pow(2,21)-1){c.enqueue(Wi);break}s=p*Math.pow(2,32)+u.getUint32(4),n=3}else{if(es(t)<s)break;let h=ts(t,s);c.enqueue($i(a?h:uo.decode(h),e)),n=0}if(s===0||s>i){c.enqueue(Wi);break}}}})}var po=4;function Ee(i){if(i)return Ux(i)}function Ux(i){for(var e in Ee.prototype)i[e]=Ee.prototype[e];return i}Ee.prototype.on=Ee.prototype.addEventListener=function(i,e){return this._callbacks=this._callbacks||{},(this._callbacks["$"+i]=this._callbacks["$"+i]||[]).push(e),this};Ee.prototype.once=function(i,e){function t(){this.off(i,t),e.apply(this,arguments)}return t.fn=e,this.on(i,t),this};Ee.prototype.off=Ee.prototype.removeListener=Ee.prototype.removeAllListeners=Ee.prototype.removeEventListener=function(i,e){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var t=this._callbacks["$"+i];if(!t)return this;if(arguments.length==1)return delete this._callbacks["$"+i],this;for(var n,s=0;s<t.length;s++)if(n=t[s],n===e||n.fn===e){t.splice(s,1);break}return t.length===0&&delete this._callbacks["$"+i],this};Ee.prototype.emit=function(i){this._callbacks=this._callbacks||{};for(var e=new Array(arguments.length-1),t=this._callbacks["$"+i],n=1;n<arguments.length;n++)e[n-1]=arguments[n];if(t){t=t.slice(0);for(var n=0,s=t.length;n<s;++n)t[n].apply(this,e)}return this};Ee.prototype.emitReserved=Ee.prototype.emit;Ee.prototype.listeners=function(i){return this._callbacks=this._callbacks||{},this._callbacks["$"+i]||[]};Ee.prototype.hasListeners=function(i){return!!this.listeners(i).length};var jt=typeof Promise=="function"&&typeof Promise.resolve=="function"?e=>Promise.resolve().then(e):(e,t)=>t(e,0),tt=typeof self<"u"?self:typeof window<"u"?window:Function("return this")(),Cd="arraybuffer";function ns(i,...e){return e.reduce((t,n)=>(i.hasOwnProperty(n)&&(t[n]=i[n]),t),{})}var Wx=tt.setTimeout,qx=tt.clearTimeout;function $t(i,e){e.useNativeTimers?(i.setTimeoutFn=Wx.bind(tt),i.clearTimeoutFn=qx.bind(tt)):(i.setTimeoutFn=tt.setTimeout.bind(tt),i.clearTimeoutFn=tt.clearTimeout.bind(tt))}var jx=1.33;function wd(i){return typeof i=="string"?$x(i):Math.ceil((i.byteLength||i.size)*jx)}function $x(i){let e=0,t=0;for(let n=0,s=i.length;n<s;n++)e=i.charCodeAt(n),e<128?t+=1:e<2048?t+=2:e<55296||e>=57344?t+=3:(n++,t+=4);return t}function is(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}function bd(i){let e="";for(let t in i)i.hasOwnProperty(t)&&(e.length&&(e+="&"),e+=encodeURIComponent(t)+"="+encodeURIComponent(i[t]));return e}function Ed(i){let e={},t=i.split("&");for(let n=0,s=t.length;n<s;n++){let a=t[n].split("=");e[decodeURIComponent(a[0])]=decodeURIComponent(a[1])}return e}
4var rs=class extends Error{constructor(e,t,n){super(e),this.description=t,this.context=n,this.type="TransportError"}},Kt=class extends Ee{constructor(e){super(),this.writable=!1,$t(this,e),this.opts=e,this.query=e.query,this.socket=e.socket,this.supportsBinary=!e.forceBase64}onError(e,t,n){return super.emitReserved("error",new rs(e,t,n)),this}open(){return this.readyState="opening",this.doOpen(),this}close(){return(this.readyState==="opening"||this.readyState==="open")&&(this.doClose(),this.onClose()),this}send(e){this.readyState==="open"&&this.write(e)}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(e){let t=$i(e,this.socket.binaryType);this.onPacket(t)}onPacket(e){super.emitReserved("packet",e)}onClose(e){this.readyState="closed",super.emitReserved("close",e)}pause(e){}createUri(e,t={}){return e+"://"+this._hostname()+this._port()+this.opts.path+this._query(t)}_hostname(){let e=this.opts.hostname;return e.indexOf(":")===-1?e:"["+e+"]"}_port(){return this.opts.port&&(this.opts.secure&&+(this.opts.port!==443)||!this.opts.secure&&Number(this.opts.port)!==80)?":"+this.opts.port:""}_query(e){let t=bd(e);return t.length?"?"+t:""}};var Ki=class extends Kt{constructor(){super(...arguments),this._polling=!1}get name(){return"polling"}doOpen(){this._poll()}pause(e){this.readyState="pausing";let t=()=>{this.readyState="paused",e()};if(this._polling||!this.writable){let n=0;this._polling&&(n++,this.once("pollComplete",function(){--n||t()})),this.writable||(n++,this.once("drain",function(){--n||t()}))}else t()}_poll(){this._polling=!0,this.doPoll(),this.emitReserved("poll")}onData(e){let t=n=>{if(this.readyState==="opening"&&n.type==="open"&&this.onOpen(),n.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(n)};_d(e,this.socket.binaryType).forEach(t),this.readyState!=="closed"&&(this._polling=!1,this.emitReserved("pollComplete"),this.readyState==="open"&&this._poll())}doClose(){let e=()=>{this.write([{type:"close"}])};this.readyState==="open"?e():this.once("open",e)}write(e){this.writable=!1,xd(e,t=>{this.doWrite(t,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){let e=this.opts.secure?"https":"http",t=this.query||{};return this.opts.timestampRequests!==!1&&(t[this.opts.timestampParam]=is()),!this.supportsBinary&&!t.sid&&(t.b64=1),this.createUri(e,t)}};var Sd=!1;try{Sd=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{}var Dd=Sd;function Kx(){}var mo=class extends Ki{constructor(e){if(super(e),typeof location<"u"){let t=location.protocol==="https:",n=location.port;n||(n=t?"443":"80"),this.xd=typeof location<"u"&&e.hostname!==location.hostname||n!==e.port}}doWrite(e,t){let n=this.request({method:"POST",data:e});n.on("success",t),n.on("error",(s,a)=>{this.onError("xhr post error",s,a)})}doPoll(){let e=this.request();e.on("data",this.onData.bind(this)),e.on("error",(t,n)=>{this.onError("xhr poll error",t,n)}),this.pollXhr=e}},ss=(()=>{class i extends Ee{constructor(t,n,s){super(),this.createRequest=t,$t(this,s),this._opts=s,this._method=s.method||"GET",this._uri=n,this._data=s.data!==void 0?s.data:null,this._create()}_create(){var t;let n=ns(this._opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");n.xdomain=!!this._opts.xd;let s=this._xhr=this.createRequest(n);try{s.open(this._method,this._uri,!0);try{if(this._opts.extraHeaders){s.setDisableHeaderCheck&&s.setDisableHeaderCheck(!0);for(let a in this._opts.extraHeaders)this._opts.extraHeaders.hasOwnProperty(a)&&s.setRequestHeader(a,this._opts.extraHeaders[a])}}catch{}if(this._method==="POST")try{s.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{s.setRequestHeader("Accept","*/*")}catch{}(t=this._opts.cookieJar)===null||t===void 0||t.addCookies(s),"withCredentials"in s&&(s.withCredentials=this._opts.withCredentials),this._opts.requestTimeout&&(s.timeout=this._opts.requestTimeout),s.onreadystatechange=()=>{var a;s.readyState===3&&((a=this._opts.cookieJar)===null||a===void 0||a.parseCookies(s.getResponseHeader("set-cookie"))),s.readyState===4&&(s.status===200||s.status===1223?this._onLoad():this.setTimeoutFn(()=>{this._onError(typeof s.status=="number"?s.status:0)},0))},s.send(this._data)}catch(a){this.setTimeoutFn(()=>{this._onError(a)},0);return}typeof document<"u"&&(this._index=i.requestsCount++,i.requests[this._index]=this)}_onError(t){this.emitReserved("error",t,this._xhr),this._cleanup(!0)}_cleanup(t){if(!(typeof this._xhr>"u"||this._xhr===null)){if(this._xhr.onreadystatechange=Kx,t)try{this._xhr.abort()}catch{}typeof document<"u"&&delete i.requests[this._index],this._xhr=null}}_onLoad(){let t=this._xhr.responseText;t!==null&&(this.emitReserved("data",t),this.emitReserved("success"),this._cleanup())}abort(){this._cleanup()}}return i.requestsCount=0,i.requests={},i})();if(typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",Md);else if(typeof addEventListener=="function"){let i="onpagehide"in tt?"pagehide":"unload";addEventListener(i,Md,!1)}}function Md(){for(let i in ss.requests)ss.requests.hasOwnProperty(i)&&ss.requests[i].abort()}var Gx=(function(){let i=Ad({xdomain:!1});return i&&i.responseType!==null})(),un=class extends mo{constructor(e){super(e);let t=e&&e.forceBase64;this.supportsBinary=Gx&&!t}request(e={}){return Object.assign(e,{xd:this.xd},this.opts),new ss(Ad,this.uri(),e)}};function Ad(i){let e=i.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!e||Dd))return new XMLHttpRequest}catch{}if(!e)try{return new tt[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}var kd=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative",xo=class extends Kt{get name(){return"websocket"}doOpen(){let e=this.uri(),t=this.opts.protocols,n=kd?{}:ns(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(n.headers=this.opts.extraHeaders);try{this.ws=this.createSocket(e,t,n)}catch(s){return this.emitReserved("error",s)}
4this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=e=>this.onClose({description:"websocket connection closed",context:e}),this.ws.onmessage=e=>this.onData(e.data),this.ws.onerror=e=>this.onError("websocket error",e)}write(e){this.writable=!1;for(let t=0;t<e.length;t++){let n=e[t],s=t===e.length-1;qi(n,this.supportsBinary,a=>{try{this.doWrite(n,a)}catch{}s&&jt(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){typeof this.ws<"u"&&(this.ws.onerror=()=>{},this.ws.close(),this.ws=null)}uri(){let e=this.opts.secure?"wss":"ws",t=this.query||{};return this.opts.timestampRequests&&(t[this.opts.timestampParam]=is()),this.supportsBinary||(t.b64=1),this.createUri(e,t)}},go=tt.WebSocket||tt.MozWebSocket,pn=class extends xo{createSocket(e,t,n){return kd?new go(e,t,n):t?new go(e,t):new go(e)}doWrite(e,t){this.ws.send(t)}};var ci=class extends Kt{get name(){return"webtransport"}doOpen(){try{this._transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name])}catch(e){return this.emitReserved("error",e)}this._transport.closed.then(()=>{this.onClose()}).catch(e=>{this.onError("webtransport error",e)}),this._transport.ready.then(()=>{this._transport.createBidirectionalStream().then(e=>{let t=vd(Number.MAX_SAFE_INTEGER,this.socket.binaryType),n=e.readable.pipeThrough(t).getReader(),s=yd();s.readable.pipeTo(e.writable),this._writer=s.writable.getWriter();let a=()=>{n.read().then(({done:c,value:h})=>{c||(this.onPacket(h),a())}).catch(c=>{})};a();let d={type:"open"};this.query.sid&&(d.data=`{"sid":"${this.query.sid}"}`),this._writer.write(d).then(()=>this.onOpen())})})}write(e){this.writable=!1;for(let t=0;t<e.length;t++){let n=e[t],s=t===e.length-1;this._writer.write(n).then(()=>{s&&jt(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var e;(e=this._transport)===null||e===void 0||e.close()}};var _o={websocket:pn,webtransport:ci,polling:un};var Qx=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,Xx=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function li(i){if(i.length>8e3)throw"URI too long";let e=i,t=i.indexOf("["),n=i.indexOf("]");t!=-1&&n!=-1&&(i=i.substring(0,t)+i.substring(t,n).replace(/:/g,";")+i.substring(n,i.length));let s=Qx.exec(i||""),a={},d=14;for(;d--;)a[Xx[d]]=s[d]||"";return t!=-1&&n!=-1&&(a.source=e,a.host=a.host.substring(1,a.host.length-1).replace(/;/g,":"),a.authority=a.authority.replace("[","").replace("]","").replace(/;/g,":"),a.ipv6uri=!0),a.pathNames=Jx(a,a.path),a.queryKey=Zx(a,a.query),a}function Jx(i,e){let t=/\/{2,9}/g,n=e.replace(t,"/").split("/");return(e.slice(0,1)=="/"||e.length===0)&&n.splice(0,1),e.slice(-1)=="/"&&n.splice(n.length-1,1),n}function Zx(i,e){let t={};return e.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(n,s,a){s&&(t[s]=a)}),t}var yo=typeof addEventListener=="function"&&typeof removeEventListener=="function",as=[];yo&&addEventListener("offline",()=>{as.forEach(i=>i())},!1);var os=(()=>{class i extends Ee{constructor(t,n){if(super(),this.binaryType=Cd,this.writeBuffer=[],this._prevBufferLen=0,this._pingInterval=-1,this._pingTimeout=-1,this._maxPayload=-1,this._pingTimeoutTime=1/0,t&&typeof t=="object"&&(n=t,t=null),t){let s=li(t);n.hostname=s.host,n.secure=s.protocol==="https"||s.protocol==="wss",n.port=s.port,s.query&&(n.query=s.query)}else n.host&&(n.hostname=li(n.host).host);$t(this,n),this.secure=n.secure!=null?n.secure:typeof location<"u"&&location.protocol==="https:",n.hostname&&!n.port&&(n.port=this.secure?"443":"80"),this.hostname=n.hostname||(typeof location<"u"?location.hostname:"localhost"),this.port=n.port||(typeof location<"u"&&location.port?location.port:this.secure?"443":"80"),this.transports=[],this._transportsByName={}
4,n.transports.forEach(s=>{let a=s.prototype.name;this.transports.push(a),this._transportsByName[a]=s}),this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},n),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),typeof this.opts.query=="string"&&(this.opts.query=Ed(this.opts.query)),yo&&(this.opts.closeOnBeforeunload&&(this._beforeunloadEventListener=()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener("beforeunload",this._beforeunloadEventListener,!1)),this.hostname!=="localhost"&&(this._offlineEventListener=()=>{this._onClose("transport close",{description:"network connection lost"})},as.push(this._offlineEventListener))),this.opts.withCredentials&&(this._cookieJar=void 0),this._open()}createTransport(t){let n=Object.assign({},this.opts.query);n.EIO=po,n.transport=t,this.id&&(n.sid=this.id);let s=Object.assign({},this.opts,{query:n,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[t]);return new this._transportsByName[t](s)}_open(){if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}let t=this.opts.rememberUpgrade&&i.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1?"websocket":this.transports[0];this.readyState="opening";let n=this.createTransport(t);n.open(),this.setTransport(n)}setTransport(t){this.transport&&this.transport.removeAllListeners(),this.transport=t,t.on("drain",this._onDrain.bind(this)).on("packet",this._onPacket.bind(this)).on("error",this._onError.bind(this)).on("close",n=>this._onClose("transport close",n))}onOpen(){this.readyState="open",i.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush()}_onPacket(t){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")switch(this.emitReserved("packet",t),this.emitReserved("heartbeat"),t.type){case"open":this.onHandshake(JSON.parse(t.data));break;case"ping":this._sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong"),this._resetPingTimeout();break;case"error":let n=new Error("server error");n.code=t.data,this._onError(n);break;case"message":this.emitReserved("data",t.data),this.emitReserved("message",t.data);break}}onHandshake(t){this.emitReserved("handshake",t),this.id=t.sid,this.transport.query.sid=t.sid,this._pingInterval=t.pingInterval,this._pingTimeout=t.pingTimeout,this._maxPayload=t.maxPayload,this.onOpen(),this.readyState!=="closed"&&this._resetPingTimeout()}_resetPingTimeout(){this.clearTimeoutFn(this._pingTimeoutTimer);let t=this._pingInterval+this._pingTimeout;this._pingTimeoutTime=Date.now()+t,this._pingTimeoutTimer=this.setTimeoutFn(()=>{this._onClose("ping timeout")},t),this.opts.autoUnref&&this._pingTimeoutTimer.unref()}_onDrain(){this.writeBuffer.splice(0,this._prevBufferLen),this._prevBufferLen=0,this.writeBuffer.length===0?this.emitReserved("drain"):this.flush()}flush(){if(this.readyState!=="closed"&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){let t=this._getWritablePackets();this.transport.send(t),this._prevBufferLen=t.length,this.emitReserved("flush")}}_getWritablePackets(){if(!(this._maxPayload&&this.transport.name==="polling"&&this.writeBuffer.length>1))return this.writeBuffer;let n=1;for(let s=0;s<this.writeBuffer.length;s++){let a=this.writeBuffer[s].data;if(a&&(n+=wd(a)),s>0&&n>this._maxPayload)return this.writeBuffer.slice(0,s);n+=2}return this.writeBuffer}_hasPingExpired(){if(!this._pingTimeoutTime)return!0;let t=Date.now()>this._pingTimeoutTime;return t&&(this._pingTimeoutTime=0,jt(()=>{this._onClose("ping timeout")},this.setTimeoutFn)),t}write(t,n,s){return this._sendPacket("message",t,n,s),this}send(t,n,s){return this._sendPacket("message",t,n,s),this}_sendPacket(t,n,s,a){if(typeof n=="function"&&(a=n,n=void 0),typeof s=="function"&&(a=s,s=null),this.readyState==="closing"||this.readyState==="closed")return;s=s||{},s.compress=s.compress!==!1;let d={type:t,data:n,options:s};this.emitReserved("packetCreate",d),this.writeBuffer.push(d),a&&this.once("flush",a),this.flush()}close(){let t=()=>{this._onClose("forced close"),this.transport.close()},n=()=>{this.off("upgrade",n),this.off("upgradeError",n),t()},s=()=>{this.once("upgrade",n),this.once("upgradeError",n)};return(this.readyState==="opening"||this.readyState==="open")&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?s():t()}):this.upgrading?s():t()),this}_onError(t){if(i.priorWebsocketSuccess=!1,this.opts.tryAllTransports&&this.transports.length>1&&this.readyState==="opening")return this.transports.shift(),this._open();this.emitReserved("error",t),this._onClose("transport error",t)}_onClose(t,n){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing"){if(this.clearTimeoutFn(this._pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),yo&&(this._beforeunloadEventListener&&removeEventListener("beforeunload",this._beforeunloadEventListener,!1),this._offlineEventListener)){let s=as.indexOf(this._offlineEventListener);s!==-1&&as.splice(s,1)}this.readyState="closed",this.id=null,this.emitReserved("close",t,n),this.writeBuffer=[],this._prevBufferLen=0}}}return i.protocol=po,i})(),cs=class extends os{constructor(){super(...arguments),this._upgrades=[]}onOpen(){if(super.onOpen(),this.readyState==="open"&&this.opts.upgrade)for(let e=0;e<this._upgrades.length;e++)this._probe(this._upgrades[e])}_probe(e){let t=this.createTransport(e),n=!1;os.priorWebsocketSuccess=!1;let s=()=>{n||(t.send([{type:"ping",data:"probe"}]),t.once("packet",g=>{if(!n)if(g.type==="pong"&&g.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",t),!t)return;os.priorWebsocketSuccess=t.name==="websocket",this.transport.pause(()=>{n||this.readyState!=="closed"&&(p(),this.setTransport(t),t.send([{type:"upgrade"}
4]),this.emitReserved("upgrade",t),t=null,this.upgrading=!1,this.flush())})}else{let x=new Error("probe error");x.transport=t.name,this.emitReserved("upgradeError",x)}}))};function a(){n||(n=!0,p(),t.close(),t=null)}let d=g=>{let x=new Error("probe error: "+g);x.transport=t.name,a(),this.emitReserved("upgradeError",x)};function c(){d("transport closed")}function h(){d("socket closed")}function u(g){t&&g.name!==t.name&&a()}let p=()=>{t.removeListener("open",s),t.removeListener("error",d),t.removeListener("close",c),this.off("close",h),this.off("upgrading",u)};t.once("open",s),t.once("error",d),t.once("close",c),this.once("close",h),this.once("upgrading",u),this._upgrades.indexOf("webtransport")!==-1&&e!=="webtransport"?this.setTimeoutFn(()=>{n||t.open()},200):t.open()}onHandshake(e){this._upgrades=this._filterUpgrades(e.upgrades),super.onHandshake(e)}_filterUpgrades(e){let t=[];for(let n=0;n<e.length;n++)~this.transports.indexOf(e[n])&&t.push(e[n]);return t}},di=class extends cs{constructor(e,t={}){let n=typeof e=="object"?e:t;(!n.transports||n.transports&&typeof n.transports[0]=="string")&&(n.transports=(n.transports||["polling","websocket","webtransport"]).map(s=>_o[s]).filter(s=>!!s)),super(e,n)}};var Q2=di.protocol;function Pd(i,e="",t){let n=i;t=t||typeof location<"u"&&location,i==null&&(i=t.protocol+"//"+t.host),typeof i=="string"&&(i.charAt(0)==="/"&&(i.charAt(1)==="/"?i=t.protocol+i:i=t.host+i),/^(https?|wss?):\/\//.test(i)||(typeof t<"u"?i=t.protocol+"//"+i:i="https://"+i),n=li(i)),n.port||(/^(http|ws)$/.test(n.protocol)?n.port="80":/^(http|ws)s$/.test(n.protocol)&&(n.port="443")),n.path=n.path||"/";let a=n.host.indexOf(":")!==-1?"["+n.host+"]":n.host;return n.id=n.protocol+"://"+a+":"+n.port+e,n.href=n.protocol+"://"+a+(t&&t.port===n.port?"":":"+n.port),n}var So={};Dg(So,{Decoder:()=>bo,Encoder:()=>wo,PacketType:()=>xe,protocol:()=>Id});var t1=typeof ArrayBuffer=="function",n1=i=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(i):i.buffer instanceof ArrayBuffer,Od=Object.prototype.toString,i1=typeof Blob=="function"||typeof Blob<"u"&&Od.call(Blob)==="[object BlobConstructor]",r1=typeof File=="function"||typeof File<"u"&&Od.call(File)==="[object FileConstructor]";function Qi(i){return t1&&(i instanceof ArrayBuffer||n1(i))||i1&&i instanceof Blob||r1&&i instanceof File}function Gi(i,e){if(!i||typeof i!="object")return!1;if(Array.isArray(i)){for(let t=0,n=i.length;t<n;t++)if(Gi(i[t]))return!0;return!1}if(Qi(i))return!0;if(i.toJSON&&typeof i.toJSON=="function"&&arguments.length===1)return Gi(i.toJSON(),!0);for(let t in i)if(Object.prototype.hasOwnProperty.call(i,t)&&Gi(i[t]))return!0;return!1}function Td(i){let e=[],t=i.data,n=i;return n.data=vo(t,e),n.attachments=e.length,{packet:n,buffers:e}}function vo(i,e){if(!i)return i;if(Qi(i)){let t={_placeholder:!0,num:e.length};return e.push(i),t}else if(Array.isArray(i)){let t=new Array(i.length);for(let n=0;n<i.length;n++)t[n]=vo(i[n],e);return t}else if(typeof i=="object"&&!(i instanceof Date)){let t={};for(let n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=vo(i[n],e));return t}return i}function Fd(i,e){return i.data=Co(i.data,e),delete i.attachments,i}function Co(i,e){if(!i)return i;if(i&&i._placeholder===!0){if(typeof i.num=="number"&&i.num>=0&&i.num<e.length)return e[i.num];throw new Error("illegal attachments")}else if(Array.isArray(i))for(let t=0;t<i.length;t++)i[t]=Co(i[t],e);else if(typeof i=="object")for(let t in i)Object.prototype.hasOwnProperty.call(i,t)&&(i[t]=Co(i[t],e));return i}var s1=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"],Id=5,xe=(function(i){return i[i.CONNECT=0]="CONNECT",i[i.DISCONNECT=1]="DISCONNECT",i[i.EVENT=2]="EVENT",i[i.ACK=3]="ACK",i[i.CONNECT_ERROR=4]="CONNECT_ERROR",i[i.BINARY_EVENT=5]="BINARY_EVENT",i[i.BINARY_ACK=6]="BINARY_ACK",i})(xe||{}),wo=class{constructor(e){this.replacer=e}encode(e){return(e.type===xe.EVENT||e.type===xe.ACK)&&Gi(e)?this.encodeAsBinary({type:e.type===xe.EVENT?xe.BINARY_EVENT:xe.BINARY_ACK,nsp:e.nsp,data:e.data,id:e.id}):[this.encodeAsString(e)]}encodeAsString(e){let t=""+e.type;return(e.type===xe.BINARY_EVENT||e.type===xe.BINARY_ACK)&&(t+=e.attachments+"-"),e.nsp&&e.nsp!=="/"&&(t+=e.nsp+","),e.id!=null&&(t+=e.id),e.data!=null&&(t+=JSON.stringify(e.data,this.replacer)),t}encodeAsBinary(e){let t=Td(e),n=this.encodeAsString(t.packet),s=t.buffers;return s.unshift(n),s}};function Bd(i){return Object.prototype.toString.call(i)==="[object Object]"}
4var bo=class i extends Ee{constructor(e){super(),this.reviver=e}add(e){let t;if(typeof e=="string"){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");t=this.decodeString(e);let n=t.type===xe.BINARY_EVENT;n||t.type===xe.BINARY_ACK?(t.type=n?xe.EVENT:xe.ACK,this.reconstructor=new Eo(t),t.attachments===0&&super.emitReserved("decoded",t)):super.emitReserved("decoded",t)}else if(Qi(e)||e.base64)if(this.reconstructor)t=this.reconstructor.takeBinaryData(e),t&&(this.reconstructor=null,super.emitReserved("decoded",t));else throw new Error("got binary data when not reconstructing a packet");else throw new Error("Unknown type: "+e)}decodeString(e){let t=0,n={type:Number(e.charAt(0))};if(xe[n.type]===void 0)throw new Error("unknown packet type "+n.type);if(n.type===xe.BINARY_EVENT||n.type===xe.BINARY_ACK){let a=t+1;for(;e.charAt(++t)!=="-"&&t!=e.length;);let d=e.substring(a,t);if(d!=Number(d)||e.charAt(t)!=="-")throw new Error("Illegal attachments");n.attachments=Number(d)}if(e.charAt(t+1)==="/"){let a=t+1;for(;++t&&!(e.charAt(t)===","||t===e.length););n.nsp=e.substring(a,t)}else n.nsp="/";let s=e.charAt(t+1);if(s!==""&&Number(s)==s){let a=t+1;for(;++t;){let d=e.charAt(t);if(d==null||Number(d)!=d){--t;break}if(t===e.length)break}n.id=Number(e.substring(a,t+1))}if(e.charAt(++t)){let a=this.tryParse(e.substr(t));if(i.isPayloadValid(n.type,a))n.data=a;else throw new Error("invalid payload")}return n}tryParse(e){try{return JSON.parse(e,this.reviver)}catch{return!1}}static isPayloadValid(e,t){switch(e){case xe.CONNECT:return Bd(t);case xe.DISCONNECT:return t===void 0;case xe.CONNECT_ERROR:return typeof t=="string"||Bd(t);case xe.EVENT:case xe.BINARY_EVENT:return Array.isArray(t)&&(typeof t[0]=="number"||typeof t[0]=="string"&&s1.indexOf(t[0])===-1);case xe.ACK:case xe.BINARY_ACK:return Array.isArray(t)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}},Eo=class{constructor(e){this.packet=e,this.buffers=[],this.reconPack=e}takeBinaryData(e){if(this.buffers.push(e),this.buffers.length===this.reconPack.attachments){let t=Fd(this.reconPack,this.buffers);return this.finishedReconstruction(),t}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}};function lt(i,e,t){return i.on(e,t),function(){i.off(e,t)}}var a1=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1}),fi=class extends Ee{constructor(e,t,n){super(),this.connected=!1,this.recovered=!1,this.receiveBuffer=[],this.sendBuffer=[],this._queue=[],this._queueSeq=0,this.ids=0,this.acks={},this.flags={},this.io=e,this.nsp=t,n&&n.auth&&(this.auth=n.auth),this._opts=Object.assign({},n),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;let e=this.io;this.subs=[lt(e,"open",this.onopen.bind(this)),lt(e,"packet",this.onpacket.bind(this)),lt(e,"error",this.onerror.bind(this)),lt(e,"close",this.onclose.bind(this))]}get active(){return!!this.subs}connect(){return this.connected?this:(this.subEvents(),this.io._reconnecting||this.io.open(),this.io._readyState==="open"&&this.onopen(),this)}open(){return this.connect()}send(...e){return e.unshift("message"),this.emit.apply(this,e),this}emit(e,...t){var n,s,a;if(a1.hasOwnProperty(e))throw new Error('"'+e.toString()+'" is a reserved event name');if(t.unshift(e),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(t),this;let d={type:xe.EVENT,data:t};if(d.options={},d.options.compress=this.flags.compress!==!1,typeof t[t.length-1]=="function"){let p=this.ids++,g=t.pop();this._registerAckCallback(p,g),d.id=p}let c=(s=(n=this.io.engine)===null||n===void 0?void 0:n.transport)===null||s===void 0?void 0:s.writable,h=this.connected&&!(!((a=this.io.engine)===null||a===void 0)&&a._hasPingExpired());return this.flags.volatile&&!c||(h?(this.notifyOutgoingListeners(d),this.packet(d)):this.sendBuffer.push(d)),this.flags={},this}_registerAckCallback(e,t){var n;let s=(n=this.flags.timeout)!==null&&n!==void 0?n:this._opts.ackTimeout;if(s===void 0){this.acks[e]=t;return}let a=this.io.setTimeoutFn(()=>{delete this.acks[e];for(let c=0;c<this.sendBuffer.length;c++)this.sendBuffer[c].id===e&&this.sendBuffer.splice(c,1);t.call(this,new Error("operation has timed out"))},s),d=(...c)=>{this.io.clearTimeoutFn(a),t.apply(this,c)};d.withError=!0,this.acks[e]=d}emitWithAck(e,...t){return new Promise((n,s)=>{let a=(d,c)=>d?s(d):n(c);
vendor: 1,072 bytes, line 4
4a.withError=!0,t.push(a),this.emit(e,...t)})}_addToQueue(e){let t;typeof e[e.length-1]=="function"&&(t=e.pop());let n={id:this._queueSeq++,tryCount:0,pending:!1,args:e,flags:Object.assign({fromQueue:!0},this.flags)};e.push((s,...a)=>n!==this._queue[0]?void 0:(s!==null?n.tryCount>this._opts.retries&&(this._queue.shift(),t&&t(s)):(this._queue.shift(),t&&t(null,...a)),n.pending=!1,this._drainQueue())),this._queue.push(n),this._drainQueue()}_drainQueue(e=!1){if(!this.connected||this._queue.length===0)return;let t=this._queue[0];t.pending&&!e||(t.pending=!0,t.tryCount++,this.flags=t.flags,this.emit.apply(this,t.args))}packet(e){e.nsp=this.nsp,this.io._packet(e)}onopen(){typeof this.auth=="function"?this.auth(e=>{this._sendConnectPacket(e)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(e){this.packet({type:xe.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},e):e})}onerror(e){this.connected||this.emitReserved("connect_error",e)}onclose(e,t){this.connected=!1,delete this.id,this.emitReserved("disconnect",e,t),this._clearAcks()}
vendor: 7,012 bytes, line 4
4_clearAcks(){Object.keys(this.acks).forEach(e=>{if(!this.sendBuffer.some(n=>String(n.id)===e)){let n=this.acks[e];delete this.acks[e],n.withError&&n.call(this,new Error("socket has been disconnected"))}})}onpacket(e){if(e.nsp===this.nsp)switch(e.type){case xe.CONNECT:e.data&&e.data.sid?this.onconnect(e.data.sid,e.data.pid):this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case xe.EVENT:case xe.BINARY_EVENT:this.onevent(e);break;case xe.ACK:case xe.BINARY_ACK:this.onack(e);break;case xe.DISCONNECT:this.ondisconnect();break;case xe.CONNECT_ERROR:this.destroy();let n=new Error(e.data.message);n.data=e.data.data,this.emitReserved("connect_error",n);break}}onevent(e){let t=e.data||[];e.id!=null&&t.push(this.ack(e.id)),this.connected?this.emitEvent(t):this.receiveBuffer.push(Object.freeze(t))}emitEvent(e){if(this._anyListeners&&this._anyListeners.length){let t=this._anyListeners.slice();for(let n of t)n.apply(this,e)}super.emit.apply(this,e),this._pid&&e.length&&typeof e[e.length-1]=="string"&&(this._lastOffset=e[e.length-1])}ack(e){let t=this,n=!1;return function(...s){n||(n=!0,t.packet({type:xe.ACK,id:e,data:s}))}}onack(e){let t=this.acks[e.id];typeof t=="function"&&(delete this.acks[e.id],t.withError&&e.data.unshift(null),t.apply(this,e.data))}onconnect(e,t){this.id=e,this.recovered=t&&this._pid===t,this._pid=t,this.connected=!0,this.emitBuffered(),this.emitReserved("connect"),this._drainQueue(!0)}emitBuffered(){this.receiveBuffer.forEach(e=>this.emitEvent(e)),this.receiveBuffer=[],this.sendBuffer.forEach(e=>{this.notifyOutgoingListeners(e),this.packet(e)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(e=>e()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:xe.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(e){return this.flags.compress=e,this}get volatile(){return this.flags.volatile=!0,this}timeout(e){return this.flags.timeout=e,this}onAny(e){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(e),this}prependAny(e){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(e),this}offAny(e){if(!this._anyListeners)return this;if(e){let t=this._anyListeners;for(let n=0;n<t.length;n++)if(e===t[n])return t.splice(n,1),this}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(e){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(e),this}prependAnyOutgoing(e){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(e),this}offAnyOutgoing(e){if(!this._anyOutgoingListeners)return this;if(e){let t=this._anyOutgoingListeners;for(let n=0;n<t.length;n++)if(e===t[n])return t.splice(n,1),this}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(e){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length){let t=this._anyOutgoingListeners.slice();for(let n of t)n.apply(this,e.data)}}};function In(i){i=i||{},this.ms=i.min||100,this.max=i.max||1e4,this.factor=i.factor||2,this.jitter=i.jitter>0&&i.jitter<=1?i.jitter:0,this.attempts=0}In.prototype.duration=function(){var i=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var e=Math.random(),t=Math.floor(e*this.jitter*i);i=(Math.floor(e*10)&1)==0?i-t:i+t}return Math.min(i,this.max)|0};In.prototype.reset=function(){this.attempts=0};In.prototype.setMin=function(i){this.ms=i};In.prototype.setMax=function(i){this.max=i};In.prototype.setJitter=function(i){this.jitter=i};var hi=class extends Ee{constructor(e,t){var n;super(),this.nsps={},this.subs=[],e&&typeof e=="object"&&(t=e,e=void 0),t=t||{},t.path=t.path||"/socket.io",this.opts=t,$t(this,t),this.reconnection(t.reconnection!==!1),this.reconnectionAttempts(t.reconnectionAttempts||1/0),this.reconnectionDelay(t.reconnectionDelay||1e3),this.reconnectionDelayMax(t.reconnectionDelayMax||5e3),this.randomizationFactor((n=t.randomizationFactor)!==null&&n!==void 0?n:.5),this.backoff=new In({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(t.timeout==null?2e4:t.timeout),this._readyState="closed",this.uri=e;let s=t.parser||So;this.encoder=new s.Encoder,this.decoder=new s.Decoder,this._autoConnect=t.autoConnect!==!1,this._autoConnect&&this.open()}reconnection(e){return arguments.length?(this._reconnection=!!e,e||(this.skipReconnect=!0),this):this._reconnection}reconnectionAttempts(e){return e===void 0?this._reconnectionAttempts:(this._reconnectionAttempts=e,this)}reconnectionDelay(e){var t;return e===void 0?this._reconnectionDelay:(this._reconnectionDelay=e,(t=this.backoff)===null||t===void 0||t.setMin(e),this)}randomizationFactor(e){var t;return e===void 0?this._randomizationFactor:(this._randomizationFactor=e,(t=this.backoff)===null||t===void 0||t.setJitter(e),this)}reconnectionDelayMax(e){var t;return e===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=e,(t=this.backoff)===null||t===void 0||t.setMax(e),this)}timeout(e){return arguments.length?(this._timeout=e,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()}open(e){if(~this._readyState.indexOf("open"))return this;this.engine=new di(this.uri,this.opts);let t=this.engine,n=this;this._readyState="opening",this.skipReconnect=!1;let s=lt(t,"open",function(){n.onopen(),e&&e()}),a=c=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",c),e?e(c):this.maybeReconnectOnOpen()},d=lt(t,"error",a);if(this._timeout!==!1){let c=this._timeout,h=this.setTimeoutFn(()=>{s(),a(new Error("timeout")),t.close()},c);this.opts.autoUnref&&h.unref(),this.subs.push(()=>{this.clearTimeoutFn(h)})}return this.subs.push(s),this.subs.push(d),this}connect(e){return this.open(e)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");let e=this.engine;this.subs.push(lt(e,"ping",this.onping.bind(this)),lt(e,"data",this.ondata.bind(this)),lt(e,"error",this.onerror.bind(this)),lt(e,"close",this.onclose.bind(this)),lt(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(e){try{this.decoder.add(e)}catch(t){this.onclose("parse error",t)}}ondecoded(e){jt(()=>{this.emitReserved("packet",e)},this.setTimeoutFn)}onerror(e){this.emitReserved("error",e)}socket(e,t){let n=this.nsps[e];return n?this._autoConnect&&!n.active&&n.connect():(n=new fi(this,e,t),this.nsps[e]=n),n}_destroy(e){let t=Object.keys(this.nsps);for(let n of t)if(this.nsps[n].active)return;this._close()}_packet(e){let t=this.encoder.encode(e);for(let n=0;n<t.length;
4n++)this.engine.write(t[n],e.options)}cleanup(){this.subs.forEach(e=>e()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close")}disconnect(){return this._close()}onclose(e,t){var n;this.cleanup(),(n=this.engine)===null||n===void 0||n.close(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",e,t),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;let e=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{let t=this.backoff.duration();this._reconnecting=!0;let n=this.setTimeoutFn(()=>{e.skipReconnect||(this.emitReserved("reconnect_attempt",e.backoff.attempts),!e.skipReconnect&&e.open(s=>{s?(e._reconnecting=!1,e.reconnect(),this.emitReserved("reconnect_error",s)):e.onreconnect()}))},t);this.opts.autoUnref&&n.unref(),this.subs.push(()=>{this.clearTimeoutFn(n)})}}onreconnect(){let e=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",e)}};var Xi={};function Ji(i,e){typeof i=="object"&&(e=i,i=void 0),e=e||{};let t=Pd(i,e.path||"/socket.io"),n=t.source,s=t.id,a=t.path,d=Xi[s]&&a in Xi[s].nsps,c=e.forceNew||e["force new connection"]||e.multiplex===!1||d,h;return c?h=new hi(n,e):(Xi[s]||(Xi[s]=new hi(n,e)),h=Xi[s]),t.query&&!e.query&&(e.query=t.queryKey),h.socket(t.path,e)}Object.assign(Ji,{Manager:hi,Socket:fi,io:Ji,connect:Ji});var Ao=n0(qf());var $s=(()=>{let e=class e{constructor(){this.SOCKET_PATH="/widgetsocket.io",this.API_ENDPOINTS={CUSTOMER_MESSAGE:"/widgetapi/messages/customerMessage",ALL_MESSAGES:"/widgetapi/messages/allMessages",CHAT_QUEUE_MESSAGES:"/widgetapi/messages/chatQueueMessages"},this.http=ge(br),this.translate=ge(kt),this.endpoint=Ye.view360ChatEndPoint,this.appId=Ye.view360ChatAppId,this.socket=null,this.messages=Ae([]),this.agentDetails=Ae(null),this.noAgentsAvailable=Ae(!1),this.errorAlert=Ae(null),this.socketId=Ae(null)}generateUniqueChatId(n,s){let a=`${n}-${s}`;return"web-"+Ao.default.SHA256(a).toString(Ao.default.enc.Base64).substring(0,16)}generateUniqueMessageId(){return`${Date.now()}-${Math.floor(Math.random()*1e4)}`}initializeSocket(){this.socket&&this.socket.disconnect(),this.socket=Ji(this.endpoint,{path:this.SOCKET_PATH}),this.socket.on("connect",()=>{this.socketId.set(this.socket?.id||null);let n=localStorage.getItem("customerId");if(n){let s=`customer-${n}`;this.socket?.emit("joinRoom",s)}}),this.socket.on("message received",n=>{this.handleMessageReceived(n)})}handleMessageReceived(n){this.sendNotification(n),n.agent&&!this.agentDetails()&&(this.agentDetails.set(n.agent),this.noAgentsAvailable.set(!1)),n.closed&&this.noAgentsAvailable.set(!0),n.customer&&localStorage.setItem("customerId",n.customer.id),n.chatId&&localStorage.setItem("chatId",n.chatId),n.type!=="assigned-agent"&&this.messages.update(s=>[...s,n])}handleClosedByAgent(){this.agentDetails.set(null),this.noAgentsAvailable.set(!1)}registerCustomer(n){try{let s=this.generateUniqueChatId(n.contact,n.email);this.storeCustomerData(n,s);let a=this.createCustomerMessage(n,n.firstMessage,s);this.addMessageToChat(a),this.sendMessageToAgent(a)}catch(s){throw this.handleError("Registration failed",s),s}}sendMessage(n,s){try{let a=localStorage.getItem("channelChatId")||"",d=this.createCustomerMessage(s,n.trim(),a);this.addMessageToChat(d),this.sendMessageToAgent(d)}catch(a){throw this.handleError("Send message failed",a),a}}retryMessage(n){try{this.sendMessageToAgent(n)}catch(s){throw this.handleError("Retry message failed",s),s}}uploadFiles(n,s,a){try{let d=this.createUploadFormData(n,s,a),c=new Oa({"app-id":this.appId});return this.http.post(`${this.endpoint}${this.API_ENDPOINTS.CUSTOMER_MESSAGE}`,d,{headers:c}).pipe(Di(h=>{if(h.status){let u=this.createUploadMessage(s,h,this.generateUniqueMessageId());return this.addMessageToChat(u),h}throw new Error("Upload failed")}),Ut(h=>(this.handleError("Upload failed",h),an(()=>h))))}catch(d){throw this.handleError("Upload failed",d),d}}getChatHistory(){let n=localStorage.getItem("chatId");n?this.fetchChatHistory(n):this.fetchQueueChatHistory()}addMessageToChat(n){this.messages.update(s=>[...s,n])}updateMessageStatus(n,s){this.messages.update(a=>a.map(d=>d.messageId===n||d.id===n?Yt(Fe({},d),{status:s}):d))}setErrorAlert(n){this.errorAlert.set(n)}clearData(){this.messages.set([]),this.agentDetails.set(null),this.socketId.set(null),this.noAgentsAvailable.set(!1),this.errorAlert.set(null),this.socket&&(this.socket.disconnect(),this.socket=null)}storeCustomerData(n,s){localStorage.setItem("customerInfo",JSON.stringify(n)),localStorage.setItem("channelChatId",s)}createCustomerMessage(n,s,a){return{messageId:this.generateUniqueMessageId(),senderType:"customer",sender:"customer",customerInfo:{name:n.name,mobile:n.contact,email:n.email},ChatId:a,content:s,createdAt:new Date,timestamp:new Date,status:"pending",socketId:this.socketId()}}sendMessageToAgent(n){this.http.post(`${this.endpoint}${this.API_ENDPOINTS.CUSTOMER_MESSAGE}`,n,{headers:this.getDefaultHeaders()}).pipe(Di(s=>{if(s?.status)return this.updateMessageStatus(n.messageId||"","sent"),this.noAgentsAvailable.set(!s.content.agent_assigned_on_time),s.chatId&&localStorage.setItem("chatId",s.chatId),s.customerId&&localStorage.setItem("customerId",s.customerId),s;throw this.updateMessageStatus(n.messageId||"","failed"),new Error("Send message failed")}),Ut(s=>(this.updateMessageStatus(n.messageId||"","failed"),an(()=>new Error("Send message failed"))))).subscribe()}createUploadFormData(n,s,a){let d=new FormData,c=this.generateUniqueMessageId();
4return n.forEach(h=>d.append("files",h)),d.append("messageId",c),d.append("senderType","customer"),d.append("customerInfo",JSON.stringify({name:a.name,mobile:a.contact,email:a.email})),d.append("ChatId",localStorage.getItem("channelChatId")||""),d.append("content",s||""),d.append("socketId",this.socketId()||""),d}createUploadMessage(n,s,a){return{messageId:a,content:n||"",file_path:s.content?.latestMessage?.file_path||[],senderType:"customer",sender:"customer",createdAt:new Date,timestamp:new Date,status:"sent"}}fetchChatHistory(n){this.http.get(`${this.endpoint}${this.API_ENDPOINTS.ALL_MESSAGES}/${n}`,{headers:this.getDefaultHeaders()}).pipe(Ut(s=>(console.error("Failed to get chat history:",s),an(()=>s)))).subscribe({next:s=>{s?.data&&(this.messages.set(s.data),this.agentDetails.set(s.agentData),this.noAgentsAvailable.set(!s.agentData))},error:s=>{console.error("Failed to get chat history:",s)}})}fetchQueueChatHistory(){let n=localStorage.getItem("channelChatId"),s=localStorage.getItem("customerId");!n||!s||this.http.get(`${this.API_ENDPOINTS.CHAT_QUEUE_MESSAGES}?customerId=${s}&channelChatId=${n}`).pipe(Ut(a=>(console.error("Error fetching chat queue messages:",a),an(()=>a)))).subscribe({next:a=>{a&&a.data?.data&&this.messages.set(a.data.data||[])},error:a=>{console.error("Failed to get chat history:",a)}})}handleError(n,s){console.error(n,s),this.setErrorAlert(this.translate.instant("something-went-wrong"))}getDefaultHeaders(){return new Oa({"Content-Type":"application/json","app-id":this.appId})}sendNotification(n){window.Notification&&Notification.permission==="granted"?new Notification("New message received",{body:n.content||""}):Notification.permission!=="denied"&&Notification.requestPermission().then(s=>{s==="granted"&&new Notification("New message received",{body:n.content||""})})}requestNotificationPermission(){"Notification"in window&&Notification.permission==="default"&&Notification.requestPermission()}};e.\u0275fac=function(s){return new(s||e)},e.\u0275prov=at({token:e,factory:e.\u0275fac,providedIn:"root"});let i=e;return i})();var c1=()=>[],l1=i=>({extension:i});function d1(i,e){if(i&1&&(j(0,"div",2),he(1,"img",8),U()),i&2){let t,n,s=fe();O(),ce("src",(t=s.agentDetails())!=null&&t.avatar?s.appEndpoint+((t=s.agentDetails())==null?null:t.avatar):"/assets/images/view360-chat/default-agent.png",ft)("alt",((n=s.agentDetails())==null?null:n.name)||"agent")}}function f1(i,e){if(i&1&&(j(0,"p",4),J(1),ee(2,"translate"),U()),i&2){let t,n=fe();O(),re(" ",((t=n.agentDetails())==null?null:t.name)||ne(2,1,"view360-chat.agent")," ")}}function h1(i,e){if(i&1){let t=ht();j(0,"img",13),Oe("click",function(){Ke(t);let s=fe().$implicit,a=fe(2);return Ge(a.openFileInNewTab(s))}),U()}if(i&2){let t=fe().$implicit,n=Ze(1);ce("src",n,ft)("alt",t)}}function u1(i,e){if(i&1&&(j(0,"video",10),he(1,"source",14),J(2," Your browser does not support the video tag. "),U()),i&2){fe();let t=Ze(0),n=Ze(1);O(),ce("src",n,ft)("type",`video/${t}`)}}function p1(i,e){if(i&1&&(j(0,"div",11)(1,"audio",15),he(2,"source",16),J(3),U()()),i&2){fe();let t=Ze(0),n=Ze(1);O(2),ce("src",n,ft),O(),re(" ",`Your browser does not support the audio element for ${t}`," ")}}function m1(i,e){if(i&1&&(j(0,"div",17),J(1),U()),i&2){fe(2);let t=Ze(2),n=Ze(3),s=Ze(4);O(),re(" ",t?"\u{1F4C4}":n?"\u{1F4CA}":s?"\u{1F4FD}\uFE0F":"\u{1F4C1}"," ")}}function g1(i,e){if(i&1&&(j(0,"div",12),Ce(1,m1,2,1,"div",17),j(2,"div",18)(3,"a",19),J(4),ee(5,"translate"),U()()()),i&2){fe();let t=Ze(0),n=Ze(1),s=Ze(2),a=Ze(3),d=Ze(4);O(),we(s||a||d?1:-1),O(2),ce("href",n,ft),O(),re(" ",Oi(5,3,"view360-chat.download-file",He(6,l1,t))," ")}}function x1(i,e){if(i&1&&(Pa(0)(1)(2)(3)(4),Ce(5,h1,1,2,"img",9)(6,u1,3,2,"video",10)(7,p1,4,2,"div",11)(8,g1,6,8,"div",12)),i&2){let t,n=e.$implicit,s=fe(2),a=kn((n==null||(t=n.split("."))==null||(t=t.pop())==null?null:t.toLowerCase())||"");O(),kn(s.appEndpoint+n);let d=s.FILE_TYPES.IMAGE.includes(a),c=s.FILE_TYPES.VIDEO.includes(a),h=s.FILE_TYPES.AUDIO.includes(a);O(),kn(s.FILE_TYPES.DOCUMENT.includes(a)),O(),kn(s.FILE_TYPES.SPREADSHEET.includes(a)),O(),kn(s.FILE_TYPES.PRESENTATION.includes(a)),O(),we(d?5:c?6:h?7:8)}}function _1(i,e){if(i&1&&ki(0,x1,9,6,null,null,p0),i&2){let t=fe();Pi(t.message().file_path)}}function y1(i,e){if(i&1&&(j(0,"p",5),J(1),U()),i&2){let t=fe();O(),re(" ",t.message().content," ")}}function v1(i,e){if(i&1){let t=ht();j(0,"button",22),Oe("click",function(){Ke(t);let s=fe(2);return Ge(s.retryMessage(s.message()))}),J(1),ee(2,"translate"),U()}
4i&2&&(O(),re(" ",ne(2,1,"view360-chat.retry")," "))}function C1(i,e){if(i&1&&(j(0,"div",6)(1,"span",20),J(2),ee(3,"translate"),Ce(4,v1,3,3,"button",21),U()()),i&2){fe();let t=Ze(7);ce("ngClass",t),O(2),re(" ",ne(3,3,`view360-chat.status.${t}`)," "),O(2),we(t==="failed"?4:-1)}}var jf=(()=>{let e=class e{constructor(){this.message=ut.required(),this.userType=ut("user"),this.agentDetails=ut(null),this.chatService=ge($s),this.appEndpoint=Ye.view360ChatAppEndPoint,this.FILE_TYPES={IMAGE:["jpg","jpeg","png","gif","bmp","webp"],VIDEO:["mp4","webm","ogg"],AUDIO:["mp3","wav","aac"],DOCUMENT:["pdf","doc","docx","txt","rtf","odt"],SPREADSHEET:["xls","xlsx","csv","ods","xlsm","xlsb"],PRESENTATION:["ppt","pptx","odp"]}}openFileInNewTab(n){let s=new URL(n,this.appEndpoint).href;window.open(s,"_blank")}retryMessage(n){try{this.chatService.retryMessage(n)}catch(s){console.error("Retry message failed:",s)}}};e.\u0275fac=function(s){return new(s||e)},e.\u0275cmp=We({type:e,selectors:[["app-chat-message-content"]],inputs:{message:[1,"message"],userType:[1,"userType"],agentDetails:[1,"agentDetails"]},decls:12,vars:18,consts:[[1,"message"],[1,"message-wrapper"],[1,"agent-avatar"],[1,"message-content"],[1,"agent-name"],[1,"message-text"],[1,"message-status",3,"ngClass"],[1,"message-time",3,"ngClass"],[1,"avatar-image",3,"src","alt"],[1,"message-image",3,"src","alt"],["controls","",1,"message-video"],[1,"audio-file"],[1,"document-file"],[1,"message-image",3,"click","src","alt"],[3,"src","type"],["controls","",1,"message-audio"],["type","audio/mpeg",3,"src"],[1,"file-icon"],[1,"file-info"],["target","_blank","rel","noopener noreferrer",1,"download-link",3,"href"],[1,"status"],[1,"retry-button"],[1,"retry-button",3,"click"]],template:function(s,a){if(s&1&&(j(0,"div",0)(1,"div",1),Ce(2,d1,2,2,"div",2),j(3,"div",3),Ce(4,f1,3,3,"p",4),Ce(5,_1,2,0),Ce(6,y1,2,1,"p",5),Pa(7),Ce(8,C1,5,5,"div",6),U()(),j(9,"div",7),J(10),ee(11,"date"),U()()),s&2){ct("customer-message",a.userType()==="customer")("agent-message",a.userType()==="user"),O(),ct("agent",a.userType()==="user"),O(),we(a.userType()==="user"?2:-1),O(2),we(a.userType()==="user"?4:-1),O(),we((a.message().file_path??_0(17,c1)).length>0?5:-1),O(),we(a.message().content?6:-1),O();let d=kn(a.message().status);O(),we(a.userType()==="customer"&&d?8:-1),O(),ce("ngClass",a.userType());let c=a.message().timestamp||a.message().createdAt;O(),re(" ",Oi(11,14,c,"hh:mm a")," ")}},dependencies:[it,ni,Sr,A0,pt],styles:[".message[_ngcontent-%COMP%]{width:fit-content;max-width:100%}.message[_ngcontent-%COMP%]   .message-wrapper[_ngcontent-%COMP%]{direction:ltr}.message[_ngcontent-%COMP%]   .message-wrapper.agent[_ngcontent-%COMP%]{display:flex;gap:10px;align-items:left}.message[_ngcontent-%COMP%]   .message-text[_ngcontent-%COMP%]{font-size:16px;line-height:140%;padding:10px 15px;margin-bottom:5px;white-space:pre-wrap}.message[_ngcontent-%COMP%]   .message-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:flex-start}.message[_ngcontent-%COMP%]   .message-content[_ngcontent-%COMP%]   .agent-name[_ngcontent-%COMP%]{color:#1c1e1b;font-size:16px;font-weight:600;line-height:140%;margin-bottom:5px}.message[_ngcontent-%COMP%]   .message-image[_ngcontent-%COMP%], .message[_ngcontent-%COMP%]   .message-video[_ngcontent-%COMP%]{max-width:200px;max-height:200px;object-fit:contain;margin-bottom:5px}.message[_ngcontent-%COMP%]   .audio-file[_ngcontent-%COMP%]   .message-audio[_ngcontent-%COMP%]{margin-bottom:5px}.message[_ngcontent-%COMP%]   .document-file[_ngcontent-%COMP%]{display:flex}.message[_ngcontent-%COMP%]   .message-status[_ngcontent-%COMP%]{text-align:start;font-size:12px;color:#666;width:100%}.message[_ngcontent-%COMP%]   .message-status.failed[_ngcontent-%COMP%]{color:#f44336}.message[_ngcontent-%COMP%]   .message-status[_ngcontent-%COMP%]   .retry-button[_ngcontent-%COMP%]{background-color:transparent;border:none;color:#100ca1;cursor:pointer}.message.customer-message[_ngcontent-%COMP%]{margin-left:auto}.message.customer-message[_ngcontent-%COMP%]   .message-text[_ngcontent-%COMP%]{background-color:#100ca1;color:#fff;border-radius:10px 0 10px 10px}.message.customer-message[_ngcontent-%COMP%]   .message-content[_ngcontent-%COMP%]{align-items:flex-end}.message.agent-message[_ngcontent-%COMP%]{margin-right:auto}
4.message.agent-message[_ngcontent-%COMP%]   .agent-avatar[_ngcontent-%COMP%]{width:40px;height:40px}.message.agent-message[_ngcontent-%COMP%]   .message-text[_ngcontent-%COMP%]{background-color:#e8f4f9;color:#0d082c;border-radius:0 10px 10px}.message.agent-message[_ngcontent-%COMP%]   .message-content[_ngcontent-%COMP%]{align-items:flex-start}.message[_ngcontent-%COMP%]   .message-time[_ngcontent-%COMP%]{color:#666;font-size:12px;line-height:145%;text-align:right}.message[_ngcontent-%COMP%]   .message-time.customer[_ngcontent-%COMP%]{text-align:left}"]});let i=e;return i})();function w1(i,e){i&1&&(j(0,"p",5),J(1),ee(2,"translate"),U()),i&2&&(O(),re(" ",ne(2,1,"required")," "))}function b1(i,e){i&1&&(j(0,"p",5),J(1),ee(2,"translate"),U()),i&2&&(O(),re(" ",ne(2,1,"phone-must-be-number")," "))}function E1(i,e){i&1&&(j(0,"p",5),J(1),ee(2,"translate"),U()),i&2&&(O(),re(" ",ne(2,1,"view360-chat.phone-or-email-is-required")," "))}function S1(i,e){i&1&&(j(0,"p",5),J(1),ee(2,"translate"),U()),i&2&&(O(),re(" ",ne(2,1,"email-is-required")," "))}function D1(i,e){i&1&&(j(0,"p",5),J(1),ee(2,"translate"),U()),i&2&&(O(),re(" ",ne(2,1,"view360-chat.phone-or-email-is-required")," "))}function M1(i,e){i&1&&(j(0,"p",5),J(1),ee(2,"translate"),U()),i&2&&(O(),re(" ",ne(2,1,"required")," "))}var $f=(()=>{let e=class e{constructor(){this.userFormData=ut.required(),this.selectedCountryCode=ut.required(),this.formSubmit=C0()}get formControls(){return this.userFormData().controls}handleFormSubmit(){this.formSubmit.emit()}};e.\u0275fac=function(s){return new(s||e)},e.\u0275cmp=We({type:e,selectors:[["app-view360-chat-registration-form"]],inputs:{userFormData:[1,"userFormData"],selectedCountryCode:[1,"selectedCountryCode"]},outputs:{formSubmit:"formSubmit"},decls:39,vars:38,consts:[[1,"registration-form"],[3,"ngSubmit","formGroup"],[1,"form-group"],["for","name"],["id","name","type","text","formControlName","name","autocomplete","name",3,"placeholder"],[1,"error-message"],[1,"form-group","contact-group"],["for","contact"],[1,"contact-input-wrapper"],[1,"sa-flag-container"],["loading","lazy","src","/assets/images/sa-flag.svg","alt","sa flag",1,"sa-flag"],["id","contact","onkeypress","return event.charCode >= 48 && event.charCode <= 57","type","tel","minlength","9","maxlength","9","appLeadingZero","","formControlName","contact","placeholder","5xxxxxxxx","autocomplete","tel"],["for","email"],["id","email","type","email","formControlName","email","autocomplete","email",3,"placeholder"],["for","firstMessage"],["id","firstMessage","formControlName","firstMessage",3,"placeholder"],["type","submit",1,"submit-button"]],template:function(s,a){if(s&1){let d=ht();j(0,"div",0)(1,"form",1),Oe("ngSubmit",function(){return Ke(d),Ge(a.handleFormSubmit())}),j(2,"div",2)(3,"label",3),J(4),ee(5,"translate"),U(),he(6,"input",4),ee(7,"translate"),Ce(8,w1,3,3,"p",5),U(),j(9,"div",6)(10,"label",7),J(11),ee(12,"translate"),U(),j(13,"div",8)(14,"div",9),he(15,"img",10),j(16,"span"),J(17),U()(),he(18,"input",11),U(),Ce(19,b1,3,3,"p",5)(20,E1,3,3,"p",5),U(),j(21,"div",2)(22,"label",12),J(23),ee(24,"translate"),U(),he(25,"input",13),ee(26,"translate"),Ce(27,S1,3,3,"p",5)(28,D1,3,3,"p",5),U(),j(29,"div",2)(30,"label",14),J(31),ee(32,"translate"),U(),he(33,"textarea",15),ee(34,"translate"),Ce(35,M1,3,3,"p",5),U(),j(36,"button",16),J(37),ee(38,"translate"),U()()()}if(s&2){let d;O(),ce("formGroup",a.userFormData());let c=a.formControls.name,h=c.invalid&&c.touched;O(3),re(" ",ne(5,22,"view360-chat.name")," "),O(2),ct("error",h),ce("placeholder",ne(7,24,"view360-chat.fullName")),O(2),we(h?8:-1);let u=(d=a.userFormData().errors)==null?null:d.eitherContactOrEmailRequired;O(3),re(" ",ne(12,26,"view360-chat.contact-number")," "),O(6),Re(a.selectedCountryCode());let p=a.formControls.contact,g=p.touched,x=p.invalid&&g;O(),ct("error",x||u&&g),O(),we(x?19:u&&g?20:-1);let C=a.formControls.email,_=C.touched,w=C.invalid&&_;O(4),Re(ne(24,28,"email")),O(2),ct("error",w||u&&_),ce("placeholder",ne(26,30,"email-address")),O(2),we(w?27:u&&_?28:-1);let E=a.formControls.firstMessage,y=E.invalid&&E.touched;O(4),re(" ",ne(32,32,"view360-chat.query")," "),O(2),ct("error",y),ce("placeholder",ne(34,34,"view360-chat.describe-issue")),O(2),we(y?35:-1),O(2),re(" ",ne(38,36,"view360-chat.start-conversation")," ")}}
4,dependencies:[it,fn,U0,H0,Pr,z0,G0,Q0,Or,W0,q0,pt],styles:[".registration-form[_ngcontent-%COMP%]{width:100%;padding:16px 20px 30px;overflow-y:auto;position:relative}.registration-form[_ngcontent-%COMP%]   .form-group[_ngcontent-%COMP%]{width:100%;margin-bottom:12px}.registration-form[_ngcontent-%COMP%]   .form-group[_ngcontent-%COMP%]   label[_ngcontent-%COMP%]{display:block;color:#1c1e1b;font-size:20px;font-weight:600;line-height:120%;margin-bottom:0}.registration-form[_ngcontent-%COMP%]   .contact-input-wrapper[_ngcontent-%COMP%]{display:flex;align-items:center;gap:6px;direction:ltr}.registration-form[_ngcontent-%COMP%]   .contact-input-wrapper[_ngcontent-%COMP%]   .sa-flag-container[_ngcontent-%COMP%]{width:106px;height:48px;border:1px solid #e0e0e0;border-radius:12px;display:flex;justify-content:center;align-items:center;background-color:#fff;padding:15px 23px}.registration-form[_ngcontent-%COMP%]   .contact-input-wrapper[_ngcontent-%COMP%]   .sa-flag-container[_ngcontent-%COMP%]   .sa-flag[_ngcontent-%COMP%]{width:17px;height:auto;object-fit:contain;margin-inline-end:6px}.registration-form[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{width:100%;border-radius:14px;padding:14px;font-size:16px;font-weight:600;background-color:#100ca1;outline:none;color:#fff;border:none;cursor:pointer}input[_ngcontent-%COMP%], textarea[_ngcontent-%COMP%]{width:100%;padding:12px;font-size:16px;border-radius:12px;border:1px solid #e0e0e0;height:48px}input[_ngcontent-%COMP%]::placeholder, textarea[_ngcontent-%COMP%]::placeholder{font-size:16px;color:#e0e0e0}input.error[_ngcontent-%COMP%], textarea.error[_ngcontent-%COMP%]{border:1px solid #f44336}input[_ngcontent-%COMP%]:focus-visible, textarea[_ngcontent-%COMP%]:focus-visible{outline:none}textarea[_ngcontent-%COMP%]{resize:none;field-sizing:content;min-height:48px}.error-message[_ngcontent-%COMP%]{color:#f44336;font-size:12px;margin-top:4px;display:block}  .rtl .registration-form textarea{padding-block:11px!important}"]});let i=e;return i})();var A1=["chatboxRef"],k1=i=>({active:i}),P1=i=>({name:i}),O1=(i,e)=>e.id||e.messageId||i,T1=(i,e)=>e.name;function F1(i,e){i&1&&(j(0,"p",11),J(1),ee(2,"translate"),U()),i&2&&(O(),re(" ",ne(2,1,"view360-chat.fill-your-details")," "))}function B1(i,e){if(i&1){let t=ht();j(0,"div",13)(1,"p"),J(2),U(),j(3,"button",15),Oe("click",function(){Ke(t);let s=fe(2);return Ge(s.chatService.setErrorAlert(null))}),J(4,"\xD7"),U()()}if(i&2){let t=fe(2);O(2),Re(t.errorAlert())}}function I1(i,e){if(i&1){let t=ht();j(0,"app-view360-chat-registration-form",16),Oe("formSubmit",function(){Ke(t);let s=fe(2);return Ge(s.handleFormSubmit())}),U()}if(i&2){let t=fe(2);ce("userFormData",t.userFormData)("selectedCountryCode",t.selectedCountryCode)}}function R1(i,e){i&1&&(j(0,"p",18),J(1),ee(2,"translate"),U()),i&2&&(O(),re(" ",ne(2,1,"view360-chat.agent-will-reply")," "))}function N1(i,e){if(i&1&&(j(0,"p",20),J(1),ee(2,"translate"),U()),i&2){let t,n=fe(3);O(),re(" ",Oi(2,1,"view360-chat.agent-joined",He(4,P1,(t=n.agentDetails())==null?null:t.name))," ")}}function L1(i,e){if(i&1&&(j(0,"div",21),he(1,"app-chat-message-content",32),U()),i&2){let t=e.$implicit,n=fe(3);O(),ce("message",t)("userType",t.senderType)("agentDetails",n.agentDetails())}}function H1(i,e){if(i&1){let t=ht();j(0,"button",36),Oe("click",function(){Ke(t);let s=fe().$implicit,a=fe(4);return Ge(a.cancelFileUpload(s))}),J(1," \xD7 "),U()}}function z1(i,e){if(i&1&&(j(0,"div",33)(1,"span",34),J(2),U(),Ce(3,H1,2,0,"button",35),U()),i&2){let t=e.$implicit,n=fe(4);O(2),Re(t.name),O(),we(n.uploading()?-1:3)}}function V1(i,e){if(i&1&&(j(0,"div",23),ki(1,z1,4,2,"div",33,T1),U()),i&2){let t=fe(3);O(),Pi(t.files())}}function Y1(i,e){i&1&&he(0,"div",30)}function U1(i,e){i&1&&he(0,"img",31)}function W1(i,e){if(i&1){let t=ht();
4j(0,"div",17,0),Ce(2,R1,3,3,"p",18),j(3,"div",19),Ce(4,N1,3,6,"p",20),ki(5,L1,2,3,"div",21,O1),U()(),j(7,"div",22),Ce(8,V1,3,0,"div",23),j(9,"div",24)(10,"button",25),Oe("click",function(){Ke(t);let s=x0(13);return Ge(s.click())}),he(11,"img",26),U(),j(12,"input",27,1),Oe("change",function(s){Ke(t);let a=fe(2);return Ge(a.handleFilesSelect(s))}),U(),j(14,"textarea",28),ee(15,"translate"),Oe("input",function(s){Ke(t);let a=fe(2);return Ge(a.handleMessageChange(s.target.value))})("keypress",function(s){Ke(t);let a=fe(2);return Ge(a.handleKeyPress(s))}),U(),j(16,"button",29),Oe("click",function(){Ke(t);let s=fe(2);return Ge(s.handleSendMessage())}),Ce(17,Y1,1,0,"div",30)(18,U1,1,0,"img",31),U()()()}if(i&2){let t=fe(2);O(2),we(t.noAgentsAvailable()?2:-1),O(2),we(t.agentDetails()?4:-1),O(),Pi(t.chatMessages()),O(3),we(t.files().length>0?8:-1),O(6),ce("value",t.message())("placeholder",ne(15,9,"view360-chat.reply")),O(2),ct("loading",t.uploading()),ce("disabled",!t.message().trim()&&!t.files().length||t.uploading()),O(),we(t.uploading()?17:18)}}function q1(i,e){if(i&1){let t=ht();j(0,"div",5)(1,"div",6)(2,"div",7)(3,"div",8)(4,"div",9),he(5,"img",4),j(6,"p",10),J(7),ee(8,"translate"),U()(),Ce(9,F1,3,3,"p",11),U(),j(10,"img",12),Oe("click",function(){Ke(t);let s=fe();return Ge(s.toggleChat())}),U()(),Ce(11,B1,5,1,"div",13),Ce(12,I1,1,2,"app-view360-chat-registration-form",14),Ce(13,W1,19,11),U()()}if(i&2){let t=fe();O(),ct("register",t.isRegistered()),O(6),re(" ",ne(8,7,t.isRegistered()?"view360-chat.chat-with-madfu":"view360-chat.register-to-chat")," "),O(2),we(t.isRegistered()?-1:9),O(2),we(t.errorAlert()?11:-1),O(),we(t.isRegistered()?-1:12),O(),we(t.isRegistered()?13:-1)}}var Kf=(()=>{let e=class e{eitherContactOrEmailValidator(n){let s=n.get("contact")?.value?.trim(),a=n.get("email")?.value?.trim();return!s&&!a?{eitherContactOrEmailRequired:!0}:null}constructor(){this.MAX_FILE_SIZE=10*1024*1024,this.SCROLL_DELAY=100,this.chatboxRef=w0("chatboxRef"),this.chatService=ge($s),this.destroyRef=ge(on),this.changeLangService=ge(ln),this.translate=ge(kt),this.toaster=ge(Dr),this.selectedCountryCode="+966",this.language=this.changeLangService.currentLanguage(),this.noAgentsAvailable=this.chatService.n
4oAgentsAvailable,this.errorAlert=this.chatService.errorAlert,this.agentDetails=this.chatService.agentDetails,this.chatMessages=this.chatService.messages,this.showChat=Ae(!1),this.isRegistered=Ae(!1),this.showUploadDialog=Ae(!1),this.showEmojiPicker=Ae(!1),this.message=Ae(""),this.files=Ae([]),this.uploading=Ae(!1),this.customerInfo=Ae({name:"",contact:"",email:"",firstMessage:""}),this.userFormData=new V0({name:new Bi("",[Fi.required]),contact:new Bi("",[Fi.pattern("^[5][0-9]{8}$")]),email:new Bi("",[Fi.email]),firstMessage:new Bi("",[Fi.required])},{validators:this.eitherContactOrEmailValidator.bind(this)}),v0(()=>{this.chatMessages().length&&this.showChat()&&this.scrollToBottom()})}ngOnInit(){this.initializeComponent(),this.loadUrlParameters(),this.loadStoredCustomerInfo()}ngAfterViewInit(){this.setupScrollToBottom()}ngOnDestroy(){this.chatService.clearData()}initializeComponent(){this.chatService.initializeSocket(),this.chatService.requestNotificationPermission()}setupScrollToBottom(){r0(window,"resize").pipe(s0(100),dn(this.destroyRef)).subscribe(()=>{this.scrollToBottom()})}scrollToBottom(){setTimeout(()=>{if(this.chatboxRef()?.nativeElement){let n=this.chatboxRef()?.nativeElement;n.scrollTop=n.scrollHeight}},this.SCROLL_DELAY)}loadUrlParameters(){let n=new URLSearchParams(window.location.search),s=n.get("customerContact"),a=n.get("customerEmail"),d=n.get("customerName");d&&(s||a)&&(this.userFormData.patchValue({name:d||"",contact:s||"",email:a||""}),this.customerInfo.set({name:d||"",contact:s||"",email:a||"",firstMessage:""}))}loadStoredCustomerInfo(){let n=localStorage.getItem("customerInfo");n&&(this.customerInfo.set(JSON.parse(n)),this.isRegistered.set(!0)),this.chatService.getChatHistory()}toggleChat(){this.showChat.update(n=>!n)}handleFormSubmit(){if(this.userFormData.markAllAsTouched(),!this.userFormData.invalid)try{let n=this.userFormData.value,s={name:n.name??"",contact:n.contact??"",email:n.email??"",firstMessage:n.firstMessage??""};if(s.contact&&s.contact.trim()){let a=this.selectedCountryCode.replace("+","");s.contact=`${a}${s.contact}`}this.customerInfo.set(s),this.isRegistered.set(!0),this.chatService.registerCustomer(s)}catch(n){console.error("Registration failed:",n),this.chatService.setErrorAlert(this.translate.instant("something-went-wrong"))}}handleMessageChange(n){this.message.set(n)}handleSendMessage(){this.files().length>0?this.handleUpload():this.sendMessage()}sendMessage(){let n=this.message().trim();n&&(this.message.set(""),this.chatService.sendMessage(n,this.customerInfo()))}handleFilesSelect(n){let s=n.target;if(s.files&&s.files.length>0){let a=Array.from(s.files);if(a.filter(c=>c.size>this.MAX_FILE_SIZE).length>0){this.toaster.error(this.translate.instant("view360-chat.upload-file-size-error"));return}this.files.set(a)}}cancelFileUpload(n){this.files.update(s=>s.filter(a=>a!==n))}handleUpload(){this.uploading.set(!0);try{this.chatService.uploadFiles(this.files(),this.message(),this.customerInfo()).subscribe({next:()=>{this.uploading.set(!1),this.files.set([]),this.message.set("")},error:n=>{console.error("Upload failed:",n),this.toaster.error(this.translate.instant("view360-chat.upload-failed")),this.uploading.set(!1)}})}catch(n){console.error("Upload failed:",n),this.uploading.set(!1)}}handleKeyPress(n){n.key==="Enter"&&!n.shiftKey&&(n.preventDefault(),this.handleSendMessage())}};e.\u0275fac=function(s){return new(s||e)},e.\u0275cmp=We({type:e,selectors:[["app-view360-chat"]],viewQuery:function(s,a){s&1&&m0(a.chatboxRef,A1,5),s&2&&g0()},decls:4,vars:4,consts:[["chatboxRef",""],["fileInputRef",""],["id","v360widget",1,"v360widget",3,"ngClass"],[1,"chat-toggle-button",3,"click"],["loading","lazy","src","/assets/images/view360-chat/chat-icon.png","alt","chat icon"],[1,"chat-wrapper-container"],[1,"chat-wrapper"],[1,"chat-header"],[1,"header-content"],[1,"logo-row"],[1,"chat-with-madfu"],[1,"fill-your-details"],["loading","lazy","src","/assets/images/view360-chat/close-circle.png","alt","close",1,"close-chat",3,"click"],[1,"error-alert"],[3,"userFormData","selectedCountryCode"],[3,"click"],[3,"formSubmit","userFormData","selectedCountryCode"],[1,"chat-interface"],[1,"agent-will-reply"],[1,"chat-messages"],[1,"agent-joined-message"],[1,"message-container"],[1,"message-input-area"],[1,"uploading-files-container"],[1,"send-message-container"],["type","button",1,"file-upload-button",3,"click"],["loading","lazy","src","/assets/images/view360-chat/add-files.png","alt","add files"],["type","file","multiple","","accept","image/*,video/*,audio/*,.pdf,.doc,.docx,.txt,.rtf,.odt,.xls,.xlsx,.csv,.ods,.ppt,.pptx,.odp",2,"display","none",3,"change"],[1,"message-input",3,"input","keypress","value","placeholder"],["type","button",1,"send-button",3,"click","disabled"],[1,"loading-spinner"],["loading","lazy","src","/assets/images/view360-chat/send-message.png","alt","send message"],[3,"message","userType","agentDetails"],[1,"uploading-file"],[1,"file-name"],["type","button",1,"cancel-upload"],["type","button",1,"cancel-upload",3,"click"]],template:function(s,a){s&1&&(j(0,"div",2)(1,"div",3),Oe("click",function(){return a.toggleChat()}),he(2,"img",4),U(),Ce(3,q1,14,9,"div",5),U()),s&2&&(ce("ngClass",He(2,k1,a.showChat())),O(3),we(a.showChat()?3:-1))},dependencies:[ni,Sr,fn,it,jf,$f,pt],styles:["#v360widget[_ngcontent-%COMP%]{position:absolute;z-index:10000!important;width:505px;height:auto;top:0;inset-inline-end:0}@media (max-width: 768px){#v360widget[_ngcontent-%COMP%]{width:90%}}#v360widget.active[_ngcontent-%COMP%]   .chat-wrapper[_ngcontent-%COMP%]{display:flex!important}#v360widget[_ngcontent-%COMP%]   .chat-toggle-button[_ngcontent-%COMP%]{width:62px;height:62px;border-radius:50%;background:linear-gradient(180deg,#455dc0 -8.12%,#100ca1 99.57%);
4cursor:pointer;position:fixed;bottom:20px;display:flex;justify-content:center;align-items:center;z-index:10000;pointer-events:auto;inset-inline-end:36px;border:none}@media (max-width: 768px){#v360widget[_ngcontent-%COMP%]   .chat-toggle-button[_ngcontent-%COMP%]{width:40px;height:40px;inset-inline-end:20px;bottom:40px}#v360widget[_ngcontent-%COMP%]   .chat-toggle-button[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{width:26px}}#v360widget[_ngcontent-%COMP%]   .chat-wrapper-container[_ngcontent-%COMP%]{position:relative;height:100vh;width:505px}@media (max-width: 768px){#v360widget[_ngcontent-%COMP%]   .chat-wrapper-container[_ngcontent-%COMP%]{width:336px;max-width:calc(100% - 40px)}}#v360widget[_ngcontent-%COMP%]   .chat-wrapper-container[_ngcontent-%COMP%]   .chat-wrapper[_ngcontent-%COMP%]{display:none;flex-direction:column;background-color:#f7f9fc;position:fixed;bottom:20px;inset-inline-end:105px;width:100%;max-width:400px;height:auto;min-height:144px;max-height:71vh;border-radius:12px;box-shadow:0 3px 15px 5px #4c348e80;overflow-y:auto}@media (max-width: 768px){#v360widget[_ngcontent-%COMP%]   .chat-wrapper-container[_ngcontent-%COMP%]   .chat-wrapper[_ngcontent-%COMP%]{max-width:336px;width:calc(100% - 40px);z-index:10001;bottom:70px;inset-inline-end:20px}}#v360widget[_ngcontent-%COMP%]   .chat-wrapper-container[_ngcontent-%COMP%]   .chat-wrapper.register[_ngcontent-%COMP%]{max-height:80vh}#v360widget[_ngcontent-%COMP%]   .chat-wrapper-container[_ngcontent-%COMP%]   .chat-wrapper[_ngcontent-%COMP%]   .chat-header[_ngcontent-%COMP%]{width:100%;padding:10px 20px;border-radius:12px 12px 0 0;background-color:#fff;display:flex;justify-content:space-between;align-items:center}#v360widget[_ngcontent-%COMP%]   .chat-wrapper-container[_ngcontent-%COMP%]   .chat-wrapper[_ngcontent-%COMP%]   .chat-header[_ngcontent-%COMP%]   .header-content[_ngcontent-%COMP%]   .logo-row[_ngcontent-%COMP%]{width:100%;display:flex;align-items:center}#v360widget[_ngcontent-%COMP%]   .chat-wrapper-container[_ngcontent-%COMP%]   .chat-wrapper[_ngcontent-%COMP%]   .chat-header[_ngcontent-%COMP%]   .header-content[_ngcontent-%COMP%]   .logo-row[_ngcontent-%COMP%]   .chat-with-madfu[_ngcontent-%COMP%]{color:#101440;font-size:20px;font-weight:600;line-height:120%;margin-inline-start:5px}#v360widget[_ngcontent-%COMP%]   .chat-wrapper-container[_ngcontent-%COMP%]   .chat-wrapper[_ngcontent-%COMP%]   .chat-header[_ngcontent-%COMP%]   .header-content[_ngcontent-%COMP%]   .fill-your-details[_ngcontent-%COMP%]{color:#101440;font-size:14px;line-height:140%;margin-top:5px}#v360widget[_ngcontent-%COMP%]   .chat-wrapper-container[_ngcontent-%COMP%]   .chat-wrapper[_ngcontent-%COMP%]   .chat-header[_ngcontent-%COMP%]   .close-chat[_ngcontent-%COMP%]{display:none}@media (max-width: 768px){#v360widget[_ngcontent-%COMP%]   .chat-wrapper-container[_ngcontent-%COMP%]   .chat-wrapper[_ngcontent-%COMP%]   .chat-header[_ngcontent-%COMP%]   .close-chat[_ngcontent-%COMP%]{display:block}}#v360widget[_ngcontent-%COMP%]   .chat-wrapper-container[_ngcontent-%COMP%]   .chat-wrapper[_ngcontent-%COMP%]   .error-alert[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;color:#f44336;font-size:14px;padding:10px 20px}#v360widget[_ngcontent-%COMP%]   .chat-wrapper-container[_ngcontent-%COMP%]   .chat-wrapper[_ngcontent-%COMP%]   .error-alert[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{border:none;background:transparent;font-size:16px}#v360widget[_ngcontent-%COMP%]   .chat-wrapper-container[_ngcontent-%COMP%]   .chat-wrapper[_ngcontent-%COMP%]   input[_ngcontent-%COMP%], #v360widget[_ngcontent-%COMP%]   .chat-wrapper-container[_ngcontent-%COMP%]   .chat-wrapper[_ngcontent-%COMP%]   textarea[_ngcontent-%COMP%]{width:100%;padding:12px;font-size:16px;border-radius:12px;border:1px solid #e0e0e0;height:48px}#v360widget[_ngcontent-%COMP%]   .chat-wrapper-container[_ngcontent-%COMP%]   .chat-wrapper[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]::placeholder, #v360widget[_ngcontent-%COMP%]   .chat-wrapper-container[_ngcontent-%COMP%]   .chat-wrapper[_ngcontent-%COMP%]   textarea[_ngcontent-%COMP%]::placeholder{font-size:16px;color:#e0e0e0}#v360widget[_ngcontent-%COMP%]   .chat-wrapper-container[_ngcontent-%COMP%]   .chat-wrapper[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]:focus-visible, #v360widget[_ngcontent-%COMP%]   .chat-wrapper-container[_ngcontent-%COMP%]   .chat-wrapper[_ngcontent-%COMP%]   textarea[_ngcontent-%COMP%]:focus-visible{outline:none}#v360widget[_ngcontent-%COMP%]   .chat-wrapper-container[_ngcontent-%COMP%]   .chat-wrapper[_ngcontent-%COMP%]   textarea[_ngcontent-%COMP%]{resize:none;field-sizing:content;min-height:48px}#v360widget[_ngcontent-%COMP%]   .chat-wrapper-container[_ngcontent-%COMP%]   .chat-wrapper[_ngcontent-%COMP%]   input.error[_ngcontent-%COMP%], #v360widget[_ngcontent-%COMP%]   .chat-wrapper-container[_ngcontent-%COMP%]   .chat-wrapper[_ngcontent-%COMP%]   textarea.error[_ngcontent-%COMP%]{border:1px solid #f44336}#v360widget[_ngcontent-%COMP%]   .chat-wrapper-container[_ngcontent-%COMP%]   .chat-wrapper[_ngcontent-%COMP%]   .chat-interface[_ngcontent-%COMP%]{width:100%;padding:30px 25px;height:439px;min-height:439px;flex:1;overflow:auto}@media (max-width: 768px){#v360widget[_ngcontent-%COMP%]   .chat-wrapper-container[_ngcontent-%COMP%]   .chat-wrapper[_ngcontent-%COMP%]   .chat-interface[_ngcontent-%COMP%]{height:400px;min-height:400px;max-height:70vh}}#v360widget[_ngcontent-%COMP%]   .chat-wrapper-container[_ngcontent-%COMP%]   .chat-wrapper[_ngcontent-%COMP%]   .chat-interface[_ngcontent-%COMP%]   .agent-will-reply[_ngcontent-%COMP%]{padding:10px 20px;color:#666;text-align:center;font-size:14px;line-height:140%}#v360widget[_ngcontent-%COMP%]   .chat-wrapper-container[_ngcontent-%COMP%]   .chat-wrapper[_ngcontent-%COMP%]   .chat-interface[_ngcontent-%COMP%]   .agent-joined-message[_ngcontent-%COMP%]{width:100%;text-align:center;background-color:#e8f5e9;color:#2e7d32;border-radius:12px;font-size:18px}#v360widget[_ngcontent-%COMP%]   .chat-wrapper-container[_ngcontent-%COMP%]   .chat-wrapper[_ngcontent-%COMP%]   .chat-interface[_ngcontent-%COMP%]   .message-container[_ngcontent-%COMP%]{margin-top:30px}#v360widget[_ngcontent-%COMP%]   .chat-wrapper-container[_ngcontent-%COMP%]   .chat-wrapper[_ngcontent-%COMP%]   .chat-interface[_ngcontent-%COMP%]   .message-container[_ngcontent-%COMP%]:first-child{margin-top:0}#v360widget[_ngcontent-%COMP%]   .chat-wrapper-container[_ngcontent-%COMP%]   .chat-wrapper[_ngcontent-%COMP%]   .message-input-area[_ngcontent-%COMP%]{width:100%;padding:20px 30px;border-radius:6px 6px 14px 14px;background:#fff}#v360widget[_ngcontent-%COMP%]   .chat-wrapper-container[_ngcontent-%COMP%]   .chat-wrapper[_ngcontent-%COMP%]   .message-input-area[_ngcontent-%COMP%]   .uploading-file[_ngcontent-%COMP%]{justify-content:space-between;font-size:16px;line-height:140%;margin-bottom:5px;color:#0d082c}#v360widget[_ngcontent-%COMP%]   .chat-wrapper-container[_ngcontent-%COMP%]   .chat-wrapper[_ngcontent-%COMP%]   .message-input-area[_ngcontent-%COMP%]   .uploading-file[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{font-size:16px}#v360widget[_ngcontent-%COMP%]   .chat-wrapper-container[_ngcontent-%COMP%]   .chat-wrapper[_ngcontent-%COMP%]   .message-input-area[_ngcontent-%COMP%]   .send-message-container[_ngcontent-%COMP%], #v360widget[_ngcontent-%COMP%]   .chat-wrapper-container[_ngcontent-%COMP%]   .chat-wrapper[_ngcontent-%COMP%]   .message-input-area[_ngcontent-%COMP%]   .uploading-file[_ngcontent-%COMP%]{display:flex;align-items:center;gap:12px}#v360widget[_ngcontent-%COMP%]   .chat-wrapper-container[_ngcontent-%COMP%]   .chat-wrapper[_ngcontent-%COMP%]   .message-input-area[_ngcontent-%COMP%]   .send-message-container[_ngcontent-%COMP%]   button[_ngcontent-%COMP%], #v360widget[_ngcontent-%COMP%]   .chat-wrapper-container[_ngcontent-%COMP%]   .chat-wrapper[_ngcontent-%COMP%]   .message-input-area[_ngcontent-%COMP%]   .uploading-file[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{background:transparent;border:none;cursor:pointer;padding:0;max-height:50px;display:flex;align-items:center;justify-content:center}#v360widget[_ngcontent-%COMP%]   .chat-wrapper-container[_ngcontent-%COMP%]   .chat-wrapper[_ngcontent-%COMP%]   .message-input-area[_ngcontent-%COMP%]   .send-message-container[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]:disabled, #v360widget[_ngcontent-%COMP%]   .chat-wrapper-container[_ngcontent-%COMP%]   .chat-wrapper[_ngcontent-%COMP%]   .message-input-area[_ngcontent-%COMP%]   .uploading-file[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]:disabled{cursor:default;opacity:.5}#v360widget[_ngcontent-%COMP%]   .chat-wrapper-container[_ngcontent-%COMP%]   .chat-wrapper[_ngcontent-%COMP%]   .message-input-area[_ngcontent-%COMP%]   .send-message-container[_ngcontent-%COMP%]   button.send-button.loading[_ngcontent-%COMP%]   .loading-spinner[_ngcontent-%COMP%], #v360widget[_ngcontent-%COMP%]   .chat-wrapper-container[_ngcontent-%COMP%]   .chat-wrapper[_ngcontent-%COMP%]   .message-input-area[_ngcontent-%COMP%]   .uploading-file[_ngcontent-%COMP%]   button.send-button.loading[_ngcontent-%COMP%]   .loading-spinner[_ngcontent-%COMP%]{width:20px;height:20px;border:2px solid #e3e3e3;border-top:2px solid #455dc0;border-radius:50%;animation:_ngcontent-%COMP%_spin 1s linear infinite}@keyframes _ngcontent-%COMP%_spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}#v360widget[_ngcontent-%COMP%]   .chat-wrapper-container[_ngcontent-%COMP%]   .chat-wrapper[_ngcontent-%COMP%]   .message-input-area[_ngcontent-%COMP%]   .send-message-container[_ngcontent-%COMP%]   textarea[_ngcontent-%COMP%], #v360widget[_ngcontent-%COMP%]   .chat-wrapper-container[_ngcontent-%COMP%]   .chat-wrapper[_ngcontent-%COMP%]   .message-input-area[_ngcontent-%COMP%]   .uploading-file[_ngcontent-%COMP%]   textarea[_ngcontent-%COMP%]{flex:1;border:none;outline:none;padding-inline:0;border-radius:0}  .rtl #v360widget .chat-wrapper-container .message-input-area .send-button{transform:rotate(180deg)}"]});let i=e;return i})();function j1(i,e){i&1&&he(0,"app-loader")}function $1(i,e){i&1&&he(0,"app-header")}var Gf=(()=>{let e=class e{constructor(){this.changeLang=ge(ln),this.router=ge(Ar),this.route=ge(F0),this.loaderService=ge(Fr),this.destroyRef=ge(on),this.title="landing-page",this.currentPageName="",this.isPartnerRoute=Ae(!1),this.currentLang=Ct.Ar,this.isLoading=this.loaderService.isLoading}ngOnInit(){this.router.events.pipe(dn(this.destroyRef)).subscribe(n=>
4{if(n instanceof Mr){let s=this.route.snapshot.firstChild?.paramMap.get("lang")||Ct.Ar;this.currentLang=s,this.changeLang.setInitialAppLanguage(s),this.updatePageName(this.router.url)}})}updatePageName(n){this.isPartnerRoute.set(n.includes("/be-partner")),n.includes("/home")?this.currentPageName="Home":n.includes("/email-confirmation")?this.currentPageName="email-confirmation":this.currentPageName=""}};e.\u0275fac=function(s){return new(s||e)},e.\u0275cmp=We({type:e,selectors:[["app-root"]],decls:5,vars:4,consts:[[3,"pageTitle","isPartnerRoute"]],template:function(s,a){s&1&&(Ce(0,j1,1,0,"app-loader"),Ce(1,$1,1,0,"app-header"),he(2,"router-outlet")(3,"app-footer",0)(4,"app-view360-chat")),s&2&&(we(a.isLoading()?0:-1),O(),we(a.currentPageName!=="email-confirmation"?1:-1),O(2),ce("pageTitle",a.currentPageName)("isPartnerRoute",a.isPartnerRoute()))},dependencies:[td,id,B0,ad,Kf],encapsulation:2});let i=e;return i})();var Qf=()=>{};var K1={NODE_CLIENT:!1,NODE_ADMIN:!1,SDK_VERSION:"${JSCORE_VERSION}"};var Gs=function(i,e){if(!i)throw G1(e)},G1=function(i){return new Error("Firebase Database ("+K1.SDK_VERSION+") INTERNAL ASSERT FAILED: "+i)};var Jf=function(i){let e=[],t=0;for(let n=0;n<i.length;n++){let s=i.charCodeAt(n);s<128?e[t++]=s:s<2048?(e[t++]=s>>6|192,e[t++]=s&63|128):(s&64512)===55296&&n+1<i.length&&(i.charCodeAt(n+1)&64512)===56320?(s=65536+((s&1023)<<10)+(i.charCodeAt(++n)&1023),e[t++]=s>>18|240,e[t++]=s>>12&63|128,e[t++]=s>>6&63|128,e[t++]=s&63|128):(e[t++]=s>>12|224,e[t++]=s>>6&63|128,e[t++]=s&63|128)}return e},Q1=function(i){let e=[],t=0,n=0;for(;t<i.length;){let s=i[t++];if(s<128)e[n++]=String.fromCharCode(s);else if(s>191&&s<224){let a=i[t++];e[n++]=String.fromCharCode((s&31)<<6|a&63)}else if(s>239&&s<365){let a=i[t++],d=i[t++],c=i[t++],h=((s&7)<<18|(a&63)<<12|(d&63)<<6|c&63)-65536;e[n++]=String.fromCharCode(55296+(h>>10)),e[n++]=String.fromCharCode(56320+(h&1023))}else{let a=i[t++],d=i[t++];e[n++]=String.fromCharCode((s&15)<<12|(a&63)<<6|d&63)}}return e.join("")},Zf={byteToCharMap_:null,charToByteMap_:null,byteToCharMapWebSafe_:null,charToByteMapWebSafe_:null,ENCODED_VALS_BASE:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",get ENCODED_VALS(){return this.ENCODED_VALS_BASE+"+/="},get ENCODED_VALS_WEBSAFE(){return this.ENCODED_VALS_BASE+"-_."},HAS_NATIVE_SUPPORT:typeof atob=="function",encodeByteArray(i,e){if(!Array.isArray(i))throw Error("encodeByteArray takes an array as a parameter");this.init_();let t=e?this.byteToCharMapWebSafe_:this.byteToCharMap_,n=[];for(let s=0;s<i.length;s+=3){let a=i[s],d=s+1<i.length,c=d?i[s+1]:0,h=s+2<i.length,u=h?i[s+2]:0,p=a>>2,g=(a&3)<<4|c>>4,x=(c&15)<<2|u>>6,C=u&63;h||(C=64,d||(x=64)),n.push(t[p],t[g],t[x],t[C])}return n.join("")},encodeString(i,e){return this.HAS_NATIVE_SUPPORT&&!e?btoa(i):this.encodeByteArray(Jf(i),e)},decodeString(i,e){return this.HAS_NATIVE_SUPPORT&&!e?atob(i):Q1(this.decodeStringToByteArray(i,e))},decodeStringToByteArray(i,e){this.init_();let t=e?this.charToByteMapWebSafe_:this.charToByteMap_,n=[];for(let s=0;s<i.length;){let a=t[i.charAt(s++)],c=s<i.length?t[i.charAt(s)]:0;++s;let u=s<i.length?t[i.charAt(s)]:64;++s;let g=s<i.length?t[i.charAt(s)]:64;if(++s,a==null||c==null||u==null||g==null)throw new ko;let x=a<<2|c>>4;if(n.push(x),u!==64){let C=c<<4&240|u>>2;if(n.push(C),g!==64){let _=u<<6&192|g;n.push(_)}}}return n},init_(){if(!this.byteToCharMap_){this.byteToCharMap_={},this.charToByteMap_={},this.byteToCharMapWebSafe_={},this.charToByteMapWebSafe_={};for(let i=0;i<this.ENCODED_VALS.length;i++)this.byteToCharMap_[i]=this.ENCODED_VALS.charAt(i),this.charToByteMap_[this.byteToCharMap_[i]]=i,this.byteToCharMapWebSafe_[i]=this.ENCODED_VALS_WEBSAFE.charAt(i),this.charToByteMapWebSafe_[this.byteToCharMapWebSafe_[i]]=i,i>=this.ENCODED_VALS_BASE.length&&(this.charToByteMap_[this.ENCODED_VALS_WEBSAFE.charAt(i)]=i,this.charToByteMapWebSafe_[this.ENCODED_VALS.charAt(i)]=i)}}},ko=class extends Error{constructor(){super(...arguments),this.name="DecodeBase64StringError"}},X1=function(i){let e=Jf(i);return Zf.encodeByteArray(e,!0)},Po=function(i){return X1(i).replace(/\./g,"")},eh=function(i){try{return Zf.decodeString(i,!0)}catch(e){console.error("base64Decode failed: ",e)}return null};
vendor: 11,761 bytes, line 4
4function J1(){if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof global<"u")return global;throw new Error("Unable to locate global object.")}var Z1=()=>J1().__FIREBASE_DEFAULTS__,e_=()=>{if(typeof process>"u"||typeof process.env>"u")return;let i=process.env.__FIREBASE_DEFAULTS__;if(i)return JSON.parse(i)},t_=()=>{if(typeof document>"u")return;let i;try{i=document.cookie.match(/__FIREBASE_DEFAULTS__=([^;]+)/)}catch{return}let e=i&&eh(i[1]);return e&&JSON.parse(e)},n_=()=>{try{return Qf()||Z1()||e_()||t_()}catch(i){console.info(`Unable to get __FIREBASE_DEFAULTS__ due to: ${i}`);return}};var Oo=()=>n_()?.config;var Ks=class{constructor(){this.reject=()=>{},this.resolve=()=>{},this.promise=new Promise((e,t)=>{this.resolve=e,this.reject=t})}wrapCallback(e){return(t,n)=>{t?this.reject(t):this.resolve(n),typeof e=="function"&&(this.promise.catch(()=>{}),e.length===1?e(t):e(t,n))}}};function er(){try{return typeof indexedDB=="object"}catch{return!1}}function Qs(){return new Promise((i,e)=>{try{let t=!0,n="validate-browser-context-for-indexeddb-analytics-module",s=self.indexedDB.open(n);s.onsuccess=()=>{s.result.close(),t||self.indexedDB.deleteDatabase(n),i(!0)},s.onupgradeneeded=()=>{t=!1},s.onerror=()=>{e(s.error?.message||"")}}catch(t){e(t)}})}var i_="FirebaseError",gt=class i extends Error{constructor(e,t,n){super(t),this.code=e,this.customData=n,this.name=i_,Object.setPrototypeOf(this,i.prototype),Error.captureStackTrace&&Error.captureStackTrace(this,Qt.prototype.create)}},Qt=class{constructor(e,t,n){this.service=e,this.serviceName=t,this.errors=n}create(e,...t){let n=t[0]||{},s=`${this.service}/${e}`,a=this.errors[e],d=a?r_(a,n):"Error",c=`${this.serviceName}: ${d} (${s}).`;return new gt(s,c,n)}};function r_(i,e){return i.replace(s_,(t,n)=>{let s=e[n];return s!=null?String(s):`<${n}?>`})}var s_=/\{\$([^}]+)}/g;function ui(i,e){if(i===e)return!0;let t=Object.keys(i),n=Object.keys(e);for(let s of t){if(!n.includes(s))return!1;let a=i[s],d=e[s];if(Xf(a)&&Xf(d)){if(!ui(a,d))return!1}else if(a!==d)return!1}for(let s of n)if(!t.includes(s))return!1;return!0}function Xf(i){return i!==null&&typeof i=="object"}var a_=1e3,o_=2,c_=14400*1e3,l_=.5;function To(i,e=a_,t=o_){let n=e*Math.pow(t,i),s=Math.round(l_*n*(Math.random()-.5)*2);return Math.min(c_,n+s)}function xn(i){return i&&i._delegate?i._delegate:i}var xt=class{constructor(e,t,n){this.name=e,this.instanceFactory=t,this.type=n,this.multipleInstances=!1,this.serviceProps={},this.instantiationMode="LAZY",this.onInstanceCreated=null}setInstantiationMode(e){return this.instantiationMode=e,this}setMultipleInstances(e){return this.multipleInstances=e,this}setServiceProps(e){return this.serviceProps=e,this}setInstanceCreatedCallback(e){return this.onInstanceCreated=e,this}};var Rn="[DEFAULT]";var Fo=class{constructor(e,t){this.name=e,this.container=t,this.component=null,this.instances=new Map,this.instancesDeferred=new Map,this.instancesOptions=new Map,this.onInitCallbacks=new Map}get(e){let t=this.normalizeInstanceIdentifier(e);if(!this.instancesDeferred.has(t)){let n=new Ks;if(this.instancesDeferred.set(t,n),this.isInitialized(t)||this.shouldAutoInitialize())try{let s=this.getOrInitializeService({instanceIdentifier:t});s&&n.resolve(s)}catch{}}return this.instancesDeferred.get(t).promise}getImmediate(e){let t=this.normalizeInstanceIdentifier(e?.identifier),n=e?.optional??!1;if(this.isInitialized(t)||this.shouldAutoInitialize())try{return this.getOrInitializeService({instanceIdentifier:t})}catch(s){if(n)return null;throw s}else{if(n)return null;throw Error(`Service ${this.name} is not available`)}}getComponent(){return this.component}setComponent(e){if(e.name!==this.name)throw Error(`Mismatching Component ${e.name} for Provider ${this.name}.`);if(this.component)throw Error(`Component for ${this.name} has already been provided`);if(this.component=e,!!this.shouldAutoInitialize()){if(f_(e))try{this.getOrInitializeService({instanceIdentifier:Rn})}catch{}for(let[t,n]of this.instancesDeferred.entries()){let s=this.normalizeInstanceIdentifier(t);try{let a=this.getOrInitializeService({instanceIdentifier:s});n.resolve(a)}catch{}}}}clearInstance(e=Rn){this.instancesDeferred.delete(e),this.instancesOptions.delete(e),this.instances.delete(e)}delete(){return Q(this,null,function*(){let e=Array.from(this.instances.values());yield Promise.all([...e.filter(t=>"INTERNAL"in t).map(t=>t.INTERNAL.delete()),...e.filter(t=>"_delete"in t).map(t=>t._delete())])})}isComponentSet(){return this.component!=null}isInitialized(e=Rn){return this.instances.has(e)}getOptions(e=Rn){return this.instancesOptions.get(e)||{}}initialize(e={}){let{options:t={}}=e,n=this.normalizeInstanceIdentifier(e.instanceIdentifier);if(this.isInitialized(n))throw Error(`${this.name}(${n}) has already been initialized`);if(!this.isComponentSet())throw Error(`Component ${this.name} has not been registered yet`);let s=this.getOrInitializeService({instanceIdentifier:n,options:t});for(let[a,d]of this.instancesDeferred.entries()){let c=this.normalizeInstanceIdentifier(a);n===c&&d.resolve(s)}return s}onInit(e,t){let n=this.normalizeInstanceIdentifier(t),s=this.onInitCallbacks.get(n)??new Set;s.add(e),this.onInitCallbacks.set(n,s);let a=this.instances.get(n);return a&&e(a,n),()=>{s.delete(e)}}invokeOnInitCallbacks(e,t){let n=this.onInitCallbacks.get(t);if(n)for(let s of n)try{s(e,t)}catch{}}getOrInitializeService({instanceIdentifier:e,options:t={}}){let n=this.instances.get(e);if(!n&&this.component&&(n=this.component.instanceFactory(this.container,{instanceIdentifier:d_(e),options:t}),this.instances.set(e,n),this.instancesOptions.set(e,t),this.invokeOnInitCallbacks(n,e),this.component.onInstanceCreated))try{this.component.onInstanceCreated(this.container,e,n)}catch{}return n||null}normalizeInstanceIdentifier(e=Rn){return this.component?this.component.multipleInstances?e:Rn:e}shouldAutoInitialize(){return!!this.component&&this.component.instantiationMode!=="EXPLICIT"}};function d_(i){return i===Rn?void 0:i}function f_(i){return i.instantiationMode==="EAGER"}var Xs=class{constructor(e){this.name=e,this.providers=new Map}addComponent(e){let t=this.getProvider(e.name);if(t.isComponentSet())throw new Error(`Component ${e.name} has already been registered with ${this.name}`);t.setComponent(e)}addOrOverwriteComponent(e){this.getProvider(e.name).isComponentSet()&&this.providers.delete(e.name),this.addComponent(e)}getProvider(e){if(this.providers.has(e))return this.providers.get(e);let t=new Fo(e,this);return this.providers.set(e,t),t}getProviders(){return Array.from(this.providers.values())}};var h_=[],Se=(function(i){return i[i.DEBUG=0]="DEBUG",i[i.VERBOSE=1]="VERBOSE",i[i.INFO=2]="INFO",i[i.WARN=3]="WARN",i[i.ERROR=4]="ERROR",i[i.SILENT=5]="SILENT",i})(Se||{}),u_={debug:Se.DEBUG,verbose:Se.VERBOSE,info:Se.INFO,warn:Se.WARN,error:Se.ERROR,silent:Se.SILENT},p_=Se.INFO,m_={[Se.DEBUG]:"log",[Se.VERBOSE]:"log",[Se.INFO]:"info",[Se.WARN]:"warn",[Se.ERROR]:"error"},g_=(i,e,...t)=>{if(e<i.logLevel)return;let n=new Date().toISOString(),s=m_[e];if(s)console[s](`[${n}]  ${i.name}:`,...t);else throw new Error(`Attempted to log a message with an invalid logType (value: ${e})`)},pi=class{constructor(e){this.name=e,this._logLevel=p_,this._logHandler=g_,this._userLogHandler=null,h_.push(this)}get logLevel(){return this._logLevel}set logLevel(e){if(!(e in Se))throw new TypeError(`Invalid value "${e}" assigned to \`logLevel\``);this._logLevel=e}setLogLevel(e){this._logLevel=typeof e=="string"?u_[e]:e}get logHandler(){return this._logHandler}set logHandler(e){if(typeof e!="function")throw new TypeError("Value assigned to `logHandler` must be a function");this._logHandler=e}get userLogHandler(){return this._userLogHandler}set userLogHandler(e){this._userLogHandler=e}debug(...e){this._userLogHandler&&this._userLogHandler(this,Se.DEBUG,...e),this._logHandler(this,Se.DEBUG,...e)}log(...e){this._userLogHandler&&this._userLogHandler(this,Se.VERBOSE,...e),this._logHandler(this,Se.VERBOSE,...e)}info(...e){this._userLogHandler&&this._userLogHandler(this,Se.INFO,...e),this._logHandler(this,Se.INFO,...e)}warn(...e){this._userLogHandler&&this._userLogHandler(this,Se.WARN,...e),this._logHandler(this,Se.WARN,...e)}error(...e){this._userLogHandler&&this._userLogHandler(this,Se.ERROR,...e),this._logHandler(this,Se.ERROR,...e)}};var x_=(i,e)=>e.some(t=>i instanceof t),th,nh;function __(){return th||(th=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])}function y_(){return nh||(nh=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])}var ih=new WeakMap,Io=new WeakMap,rh=new WeakMap,Bo=new WeakMap,No=new WeakMap;function v_(i){let e=new Promise((t,n)=>{let s=()=>{i.removeEventListener("success",a),i.removeEventListener("error",d)},a=()=>{t(Ot(i.result)),s()},d=()=>{n(i.error),s()};i.addEventListener("success",a),i.addEventListener("error",d)});return e.then(t=>{t instanceof IDBCursor&&ih.set(t,i)}).catch(()=>{}),No.set(e,i),e}function C_(i){if(Io.has(i))return;let e=new Promise((t,n)=>{let s=()=>{i.removeEventListener("complete",a),i.removeEventListener("error",d),i.removeEventListener("abort",d)},a=()=>{t(),s()},d=()=>{n(i.error||new DOMException("AbortError","AbortError")),s()};i.addEventListener("complete",a),i.addEventListener("error",d),i.addEventListener("abort",d)});Io.set(i,e)}var Ro={get(i,e,t){if(i instanceof IDBTransaction){if(e==="done")return Io.get(i);if(e==="objectStoreNames")return i.objectStoreNames||rh.get(i);if(e==="store")return t.objectStoreNames[1]?void 0:t.objectStore(t.objectStoreNames[0])}return Ot(i[e])},set(i,e,t){return i[e]=t,!0},has(i,e){return i instanceof IDBTransaction&&(e==="done"||e==="store")?!0:e in i}};function sh(i){Ro=i(Ro)}function w_(i){return i===IDBDatabase.prototype.transaction&&!("objectStoreNames"in IDBTransaction.prototype)?function(e,...t){let n=i.call(Js(this),e,...t);return rh.set(n,e.sort?e.sort():[e]),Ot(n)}:y_().includes(i)?function(...e){return i.apply(Js(this),e),Ot(ih.get(this))}:function(...e){return Ot(i.apply(Js(this),e))}}function b_(i){return typeof i=="function"?w_(i):(i instanceof IDBTransaction&&C_(i),x_(i,__())?new Proxy(i,Ro):i)}function Ot(i){if(i instanceof IDBRequest)return v_(i);if(Bo.has(i))return Bo.get(i);let e=b_(i);return e!==i&&(Bo.set(i,e),No.set(e,i)),e}var Js=i=>No.get(i);function Zs(i,e,{blocked:t,upgrade:n,blocking:s,terminated:a}={}){let d=indexedDB.open(i,e),c=Ot(d);return n&&d.addEventListener("upgradeneeded",h=>{n(Ot(d.result),h.oldVersion,h.newVersion,Ot(d.transaction),h)}),t&&d.addEventListener("blocked",h=>t(h.oldVersion,h.newVersion,h)),c.then(h=>{a&&h.addEventListener("close",()=>a()),s&&h.addEventListener("versionchange",u=>s(u.oldVersion,u.newVersion,u))}).catch(()=>{}),c}var E_=["get","getKey","getAll","getAllKeys","count"],S_=["put","add","delete","clear"],Lo=new Map;function ah(i,e){if(!(i instanceof IDBDatabase&&!(e in i)&&typeof e=="string"))return;if(Lo.get(e))return Lo.get(e);let t=e.replace(/FromIndex$/,""),n=e!==t,s=S_.includes(t);if(!(t in(n?IDBIndex:IDBObjectStore).prototype)||!(s||E_.includes(t)))return;let a=function(d,...c){return Q(this,null,function*(){let h=this.transaction(d,s?"readwrite":"readonly"),u=h.store;return n&&(u=u.index(c.shift())),(yield Promise.all([u[t](...c),s&&h.done]))[0]})};return Lo.set(e,a),a}sh(i=>Yt(Fe({},i),{get:(e,t,n)=>ah(e,t)||i.get(e,t,n),has:(e,t)=>!!ah(e,t)||i.has(e,t)}));var zo=class{constructor(e){this.container=e}getPlatformInfoString(){return this.container.getProviders().map(t=>{if(D_(t)){let n=t.getImmediate();return`${n.library}/${n.version}`}else return null}).filter(t=>t).join(" ")}};function D_(i){return i.getComponent()?.type==="VERSION"}var Vo="@firebase/app",oh="0.14.9";
vendor: 2,451 bytes, line 4
4var Xt=new pi("@firebase/app"),M_="@firebase/app-compat",A_="@firebase/analytics-compat",k_="@firebase/analytics",P_="@firebase/app-check-compat",O_="@firebase/app-check",T_="@firebase/auth",F_="@firebase/auth-compat",B_="@firebase/database",I_="@firebase/data-connect",R_="@firebase/database-compat",N_="@firebase/functions",L_="@firebase/functions-compat",H_="@firebase/installations",z_="@firebase/installations-compat",V_="@firebase/messaging",Y_="@firebase/messaging-compat",U_="@firebase/performance",W_="@firebase/performance-compat",q_="@firebase/remote-config",j_="@firebase/remote-config-compat",$_="@firebase/storage",K_="@firebase/storage-compat",G_="@firebase/firestore",Q_="@firebase/ai",X_="@firebase/firestore-compat",J_="firebase",Z_="12.10.0";var Yo="[DEFAULT]",ey={[Vo]:"fire-core",[M_]:"fire-core-compat",[k_]:"fire-analytics",[A_]:"fire-analytics-compat",[O_]:"fire-app-check",[P_]:"fire-app-check-compat",[T_]:"fire-auth",[F_]:"fire-auth-compat",[B_]:"fire-rtdb",[I_]:"fire-data-connect",[R_]:"fire-rtdb-compat",[N_]:"fire-fn",[L_]:"fire-fn-compat",[H_]:"fire-iid",[z_]:"fire-iid-compat",[V_]:"fire-fcm",[Y_]:"fire-fcm-compat",[U_]:"fire-perf",[W_]:"fire-perf-compat",[q_]:"fire-rc",[j_]:"fire-rc-compat",[$_]:"fire-gcs",[K_]:"fire-gcs-compat",[G_]:"fire-fst",[X_]:"fire-fst-compat",[Q_]:"fire-vertex","fire-js":"fire-js",[J_]:"fire-js-all"};var ea=new Map,ty=new Map,Uo=new Map;function ch(i,e){try{i.container.addComponent(e)}catch(t){Xt.debug(`Component ${e.name} failed to register with FirebaseApp ${i.name}`,t)}}function yn(i){let e=i.name;if(Uo.has(e))return Xt.debug(`There were multiple attempts to register component ${e}.`),!1;Uo.set(e,i);for(let t of ea.values())ch(t,i);for(let t of ty.values())ch(t,i);return!0}function nr(i,e){let t=i.container.getProvider("heartbeat").getImmediate({optional:!0});return t&&t.triggerHeartbeat(),i.container.getProvider(e)}var ny={"no-app":"No Firebase App '{$appName}' has been created - call initializeApp() first","bad-app-name":"Illegal App name: '{$appName}'","duplicate-app":"Firebase App named '{$appName}' already exists with different options or config","app-deleted":"Firebase App named '{$appName}' already deleted","server-app-deleted":"Firebase Server App has been deleted","no-options":"Need to provide options, when not being deployed to hosting via source.","invalid-app-argument":"firebase.{$appName}() takes either no argument or a Firebase App instance.","invali
4d-log-argument":"First argument to `onLog` must be null or a function.","idb-open":"Error thrown when opening IndexedDB. Original error: {$originalErrorMessage}.","idb-get":"Error thrown when reading from IndexedDB. Original error: {$originalErrorMessage}.","idb-set":"Error thrown when writing to IndexedDB. Original error: {$originalErrorMessage}.","idb-delete":"Error thrown when deleting from IndexedDB. Original error: {$originalErrorMessage}.","finalization-registry-not-supported":"FirebaseServerApp deleteOnDeref field defined but the JS runtime does not support FinalizationRegistry.","invalid-server-app-environment":"FirebaseServerApp is not for use in browser environments."},_n=new Qt("app","Firebase",ny);var Wo=class{constructor(e,t,n){this._isDeleted=!1,this._options=Fe({},e),this._config=Fe({},t),this._name=t.name,this._automaticDataCollectionEnabled=t.automaticDataCollectionEnabled,this._container=n,this.container.addComponent(new xt("app",()=>this,"PUBLIC"))}get automaticDataCollectionEnabled(){return this.checkDestroyed(),this._automaticDataCollectionEnabled}set automaticDataCollectionEnabled(e){this.checkDestroyed(),this._automaticDataCollectionEnabled=e}get name(){return this.checkDestroyed(),this._name}get options(){return this.checkDestroyed(),this._options}get config(){return this.checkDestroyed(),this._config}get container(){return this._container}get isDeleted(){return this._isDeleted}set isDeleted(e){this._isDeleted=e}checkDestroyed(){if(this.isDeleted)throw _n.create("app-deleted",{appName:this._name})}};var $o=Z_;function Ko(i,e={}){let t=i;typeof e!="object"&&(e={name:e});let n=Fe({name:Yo,automaticDataCollectionEnabled:!0},e),s=n.name;if(typeof s!="string"||!s)throw _n.create("bad-app-name",{appName:String(s)});if(t||(t=Oo()),!t)throw _n.create("no-options");let a=ea.get(s);if(a){if(ui(t,a.options)&&ui(n,a.config))return a;throw _n.create("duplicate-app",{appName:s})}let d=new Xs(s);for(let h of Uo.values())d.addComponent(h);let c=new Wo(t,n,d);return ea.set(s,c),c}function Go(i=Yo){let e=ea.get(i);if(!e&&i===Yo&&Oo())return Ko();if(!e)throw _n.create("no-app",{appName:i});return e}function Dt(i,e,t){let n=ey[i]??i;t&&(n+=`-${t}`);let s=n.match(/\s|\//),a=e.match(/\s|\//);if(s||a){let d=[`Unable to register library "${n}" with version "${e}":`];s&&d.push(`library name "${n}" contains illegal characters (whitespace or "/")`),s&&a&&d.push("and"),a&&d.push(`version name "${e}" contains illegal characters (whitespace or "/")`),Xt.warn(d.join(" "));return}yn(new xt(`${n}-version`,()=>({library:n,version:e}),"VERSION"))}var iy="firebase-heartbeat-database",ry=1,tr="firebase-heartbeat-store",Ho=null;function hh(){return Ho||(Ho=Zs(iy,ry,{upgrade:(i,e)=>{switch(e){case 0:try{i.createObjectStore(tr)}catch(t){console.warn(t)}}}}).catch(i=>{throw _n.create("idb-open",{originalErrorMessage:i.message})})),Ho}function sy(i){return Q(this,null,function*(){try{let t=(yield hh()).transaction(tr),n=yield t.objectStore(tr).get(uh(i));return yield t.done,n}catch(e){if(e instanceof gt)Xt.warn(e.message);else{let t=_n.create("idb-get",{originalErrorMessage:e?.message});Xt.warn(t.message)}}})}function lh(i,e){return Q(this,null,function*(){try{let n=(yield hh()).transaction(tr,"readwrite");yield n.objectStore(tr).put(e,uh(i)),yield n.done}catch(t){if(t instanceof gt)Xt.warn(t.message);else{let n=_n.create("idb-set",{originalErrorMessage:t?.message});Xt.warn(n.message)}}})}function uh(i){return`${i.name}!${i.options.appId}`}var ay=1024,oy=30,qo=class{constructor(e){this.container=e,this._heartbeatsCache=null;let t=this.container.getProvider("app").getImmediate();this._storage=new jo(t),this._heartbeatsCachePromise=this._storage.read().then(n=>(this._heartbeatsCache=n,n))}triggerHeartbeat(){return Q(this,null,function*(){try{let t=this.container.getProvider("platform-logger").getImmediate().getPlatformInfoString(),n=dh();if(this._heartbeatsCache?.heartbeats==null&&(this._heartbeatsCache=yield this._heartbeatsCachePromise,this._heartbeatsCache?.heartbeats==null)||this._heartbeatsCache.lastSentHeartbeatDate===n||this._heartbeatsCache.heartbeats.some(s=>s.date===n))return;if(this._heartbeatsCache.heartbeats.push({date:n,agent:t}),this._heartbeatsCache.heartbeats.length>oy){let s=ly(this._heartbeatsCache.heartbeats);this._heartbeatsCache.heartbeats.splice(s,1)}return this._storage.overwrite(this._heartbeatsCache)}catch(e){Xt.warn(e)}})}getHeartbeatsHeader(){return Q(this,null,function*(){try{if(this._heartbeatsCache===null&&(yield this._heartbeatsCachePromise),this._heartbeatsCache?.heartbeats==null||this._heartbeatsCache.heartbeats.length===0)return"";let e=dh(),{heartbeatsToSend:t,unsentEntries:n}=cy(this._heartbeatsCache.heartbeats),s=Po(JSON.stringify({version:2,heartbeats:t}));return this._heartbeatsCache.lastSentHeartbeatDate=e,n.length>0?(this._heartbeatsCache.heartbeats=n,yield this._storage.overwrite(this._heartbeatsCache)):(this._heartbeatsCache.heartbeats=[],this._storage.overwrite(this._heartbeatsCache)),s}catch(e){return Xt.warn(e),""}})}};function dh(){return new Date().toISOString().substring(0,10)}function cy(i,e=ay){let t=[],n=i.slice();for(let s of i){let a=t.find(d=>d.agent===s.agent);if(a){if(a.dates.push(s.date),fh(t)>e){a.dates.pop();break}}else if(t.push({agent:s.agent,dates:[s.date]}),fh(t)>e){t.pop();break}n=n.slice(1)}return{heartbeatsToSend:t,unsentEntries:n}}var jo=class{constructor(e){this.app=e,this._canUseIndexedDBPromise=this.runIndexedDBEnvironmentCheck()}runIndexedDBEnvironmentCheck(){return Q(this,null,function*(){return er()?Qs().then(()=>!0).catch(()=>!1):!1})}read(){return Q(this,null,function*(){if(yield this._canUseIndexedDBPromise){let t=yield sy(this.app);return t?.heartbeats?t:{heartbeats:[]}}else return{heartbeats:[]}})}overwrite(e){return Q(this,null,function*(){if(yield this._canUseIndexedDBPromise){let n=yield this.read();return lh(this.app,{lastSentHeartbeatDate:e.lastSentHeartbeatDate??n.lastSentHeartbeatDate,heartbeats:e.heartbeats})}else return})}add(e){return Q(this,null,function*(){if(yield this._canUseIndexedDBPromise){let n=yield this.read();return lh(this.app,{lastSentHeartbeatDate:e.lastSentHeartbeatDate??n.lastSentHeartbeatDate,heartbeats:[...n.heartbeats,...e.heartbeats]})}else return})}};function fh(i){return Po(JSON.stringify({version:2,heartbeats:i})).length}function ly(i){if(i.length===0)return-1;let e=0,t=i[0].date;for(let n=1;n<i.length;n++)i[n].date<t&&(t=i[n].date,e=n);return e}function dy(i){yn(new xt("platform-logger",e=>new zo(e),"PRIVATE")),yn(new xt("heartbeat",e=>new qo(e),"PRIVATE")),Dt(Vo,oh,i),Dt(Vo,oh,"esm2020"),Dt("fire-js","")}dy("");var fy="firebase",hy="12.10.0";Dt(fy,hy,"app");var gh="@firebase/installations",Zo="0.6.20";var xh=1e4,_h=`w:${Zo}`,yh="FIS_v2",uy="https://firebaseinstallations.googleapis.com/v1",py=3600*1e3,my="installations",gy="Installations";var xy={"missing-app-config-values":'Missing App configuration value: "{$valueName}"',"not-registered":"Firebase Installation is not registered.","installation-not-found":"Firebase Installation not found.","request-failed":'{$requestName} request failed with error "{$serverCode} {$serverStatus}: {$serverMessage}"',"app-offline":"Could not process request. Application offline.","delete-pending-registration":"Can't delete installation while there is a pending registration request."},Ln=new Qt(my,gy,xy);function vh(i){return i instanceof gt&&i.code.includes("request-failed")}function Ch({projectId:i}){return`${uy}/projects/${i}/installations`}
4function wh(i){return{token:i.token,requestStatus:2,expiresIn:yy(i.expiresIn),creationTime:Date.now()}}function bh(i,e){return Q(this,null,function*(){let n=(yield e.json()).error;return Ln.create("request-failed",{requestName:i,serverCode:n.code,serverMessage:n.message,serverStatus:n.status})})}function Eh({apiKey:i}){return new Headers({"Content-Type":"application/json",Accept:"application/json","x-goog-api-key":i})}function _y(i,{refreshToken:e}){let t=Eh(i);return t.append("Authorization",vy(e)),t}function Sh(i){return Q(this,null,function*(){let e=yield i();return e.status>=500&&e.status<600?i():e})}function yy(i){return Number(i.replace("s","000"))}function vy(i){return`${yh} ${i}`}function Cy(n,s){return Q(this,arguments,function*({appConfig:i,heartbeatServiceProvider:e},{fid:t}){let a=Ch(i),d=Eh(i),c=e.getImmediate({optional:!0});if(c){let g=yield c.getHeartbeatsHeader();g&&d.append("x-firebase-client",g)}let h={fid:t,authVersion:yh,appId:i.appId,sdkVersion:_h},u={method:"POST",headers:d,body:JSON.stringify(h)},p=yield Sh(()=>fetch(a,u));if(p.ok){let g=yield p.json();return{fid:g.fid||t,registrationStatus:2,refreshToken:g.refreshToken,authToken:wh(g.authToken)}}else throw yield bh("Create Installation",p)})}function Dh(i){return new Promise(e=>{setTimeout(e,i)})}function wy(i){return btoa(String.fromCharCode(...i)).replace(/\+/g,"-").replace(/\//g,"_")}var by=/^[cdef][\w-]{21}$/,Jo="";function Ey(){try{let i=new Uint8Array(17);(self.crypto||self.msCrypto).getRandomValues(i),i[0]=112+i[0]%16;let t=Sy(i);return by.test(t)?t:Jo}catch{return Jo}}function Sy(i){return wy(i).substr(0,22)}function na(i){return`${i.appName}!${i.appId}`}var Mh=new Map;function Ah(i,e){let t=na(i);kh(t,e),Dy(t,e)}function kh(i,e){let t=Mh.get(i);if(t)for(let n of t)n(e)}function Dy(i,e){let t=My();t&&t.postMessage({key:i,fid:e}),Ay()}var Nn=null;function My(){return!Nn&&"BroadcastChannel"in self&&(Nn=new BroadcastChannel("[Firebase] FID Change"),Nn.onmessage=i=>{kh(i.data.key,i.data.fid)}),Nn}function Ay(){Mh.size===0&&Nn&&(Nn.close(),Nn=null)}var ky="firebase-installations-database",Py=1,Hn="firebase-installations-store",Qo=null;function ec(){return Qo||(Qo=Zs(ky,Py,{upgrade:(i,e)=>{switch(e){case 0:i.createObjectStore(Hn)}}})),Qo}function ta(i,e){return Q(this,null,function*(){let t=na(i),s=(yield ec()).transaction(Hn,"readwrite"),a=s.objectStore(Hn),d=yield a.get(t);return yield a.put(e,t),yield s.done,(!d||d.fid!==e.fid)&&Ah(i,e.fid),e})}function Ph(i){return Q(this,null,function*(){let e=na(i),n=(yield ec()).transaction(Hn,"readwrite");yield n.objectStore(Hn).delete(e),yield n.done})}function ia(i,e){return Q(this,null,function*(){let t=na(i),s=(yield ec()).transaction(Hn,"readwrite"),a=s.objectStore(Hn),d=yield a.get(t),c=e(d);return c===void 0?yield a.delete(t):yield a.put(c,t),yield s.done,c&&(!d||d.fid!==c.fid)&&Ah(i,c.fid),c})}function tc(i){return Q(this,null,function*(){let e,t=yield ia(i.appConfig,n=>{let s=Oy(n),a=Ty(i,s);return e=a.registrationPromise,a.installationEntry});return t.fid===Jo?{installationEntry:yield e}:{installationEntry:t,registrationPromise:e}})}function Oy(i){let e=i||{fid:Ey(),registrationStatus:0};return Oh(e)}function Ty(i,e){if(e.registrationStatus===0){if(!navigator.onLine){let s=Promise.reject(Ln.create("app-offline"));return{installationEntry:e,registrationPromise:s}}let t={fid:e.fid,registrationStatus:1,registrationTime:Date.now()},n=Fy(i,t);return{installationEntry:t,registrationPromise:n}}else return e.registrationStatus===1?{installationEntry:e,registrationPromise:By(i)}:{installationEntry:e}}function Fy(i,e){return Q(this,null,function*(){try{let t=yield Cy(i,e);return ta(i.appConfig,t)}catch(t){throw vh(t)&&t.customData.serverCode===409?yield Ph(i.appConfig):yield ta(i.appConfig,{fid:e.fid,registrationStatus:0}),t}})}function By(i){return Q(this,null,function*(){let e=yield ph(i.appConfig);for(;e.registrationStatus===1;)yield Dh(100),e=yield ph(i.appConfig);if(e.registrationStatus===0){let{installationEntry:t,registrationPromise:n}=yield tc(i);return n||t}return e})}function ph(i){return ia(i,e=>{if(!e)throw Ln.create("installation-not-found");return Oh(e)})}function Oh(i){return Iy(i)?{fid:i.fid,registrationStatus:0}:i}function Iy(i){return i.registrationStatus===1&&i.registrationTime+xh<Date.now()}function Ry(n,s){return Q(this,arguments,function*({appConfig:i,heartbeatServiceProvider:e},t){let a=Ny(i,t),d=_y(i,t),c=e.getImmediate({optional:!0});if(c){let g=yield c.getHeartbeatsHeader();g&&d.append("x-firebase-client",g)}let h={installation:{sdkVersion:_h,appId:i.appId}},u={method:"POST",headers:d,body:JSON.stringify(h)},p=yield Sh(()=>fetch(a,u));if(p.ok){let g=yield p.json();return wh(g)}else throw yield bh("Generate Auth Token",p)})}function Ny(i,{fid:e}){return`${Ch(i)}/${e}/authTokens:generate`}function nc(i,e=!1){return Q(this,null,function*(){let t,n=yield ia(i.appConfig,a=>{if(!Th(a))throw Ln.create("not-registered");let d=a.authToken;if(!e&&zy(d))return a;
4if(d.requestStatus===1)return t=Ly(i,e),a;{if(!navigator.onLine)throw Ln.create("app-offline");let c=Yy(a);return t=Hy(i,c),c}});return t?yield t:n.authToken})}function Ly(i,e){return Q(this,null,function*(){let t=yield mh(i.appConfig);for(;t.authToken.requestStatus===1;)yield Dh(100),t=yield mh(i.appConfig);let n=t.authToken;return n.requestStatus===0?nc(i,e):n})}function mh(i){return ia(i,e=>{if(!Th(e))throw Ln.create("not-registered");let t=e.authToken;return Uy(t)?Yt(Fe({},e),{authToken:{requestStatus:0}}):e})}function Hy(i,e){return Q(this,null,function*(){try{let t=yield Ry(i,e),n=Yt(Fe({},e),{authToken:t});return yield ta(i.appConfig,n),t}catch(t){if(vh(t)&&(t.customData.serverCode===401||t.customData.serverCode===404))yield Ph(i.appConfig);else{let n=Yt(Fe({},e),{authToken:{requestStatus:0}});yield ta(i.appConfig,n)}throw t}})}function Th(i){return i!==void 0&&i.registrationStatus===2}function zy(i){return i.requestStatus===2&&!Vy(i)}function Vy(i){let e=Date.now();return e<i.creationTime||i.creationTime+i.expiresIn<e+py}function Yy(i){let e={requestStatus:1,requestTime:Date.now()};return Yt(Fe({},i),{authToken:e})}function Uy(i){return i.requestStatus===1&&i.requestTime+xh<Date.now()}function Wy(i){return Q(this,null,function*(){let e=i,{installationEntry:t,registrationPromise:n}=yield tc(e);return n?n.catch(console.error):nc(e).catch(console.error),t.fid})}function qy(i,e=!1){return Q(this,null,function*(){let t=i;return yield jy(t),(yield nc(t,e)).token})}function jy(i){return Q(this,null,function*(){let{registrationPromise:e}=yield tc(i);e&&(yield e)})}function $y(i){if(!i||!i.options)throw Xo("App Configuration");if(!i.name)throw Xo("App Name");let e=["projectId","apiKey","appId"];for(let t of e)if(!i.options[t])throw Xo(t);return{appName:i.name,projectId:i.options.projectId,apiKey:i.options.apiKey,appId:i.options.appId}}function Xo(i){return Ln.create("missing-app-config-values",{valueName:i})}var Fh="installations",Ky="installations-internal",Gy=i=>{let e=i.getProvider("app").getImmediate(),t=$y(e),n=nr(e,"heartbeat");return{app:e,appConfig:t,heartbeatServiceProvider:n,_delete:()=>Promise.resolve()}},Qy=i=>{let e=i.getProvider("app").getImmediate(),t=nr(e,Fh).getImmediate();return{getId:()=>Wy(t),getToken:s=>qy(t,s)}};function Xy(){yn(new xt(Fh,Gy,"PUBLIC")),yn(new xt(Ky,Qy,"PRIVATE"))}Xy();Dt(gh,Zo);Dt(gh,Zo,"esm2020");var ic="@firebase/remote-config",Bh="0.8.1";var sa=class{constructor(){this.listeners=[]}addEventListener(e){this.listeners.push(e)}abort(){this.listeners.forEach(e=>e())}};var Uh="remote-config",Ih=100;var Jy={"already-initialized":"Remote Config already initialized","registration-window":"Undefined window object. This SDK only supports usage in a browser environment.","registration-project-id":"Undefined project identifier. Check Firebase app initialization.","registration-api-key":"Undefined API key. Check Firebase app initialization.","registration-app-id":"Undefined app identifier. Check Firebase app initialization.","storage-open":"Error thrown when opening storage. Original error: {$originalErrorMessage}.","storage-get":"Error thrown when reading from storage. Original error: {$originalErrorMessage}.","storage-set":"Error thrown when writing to storage. Original error: {$originalErrorMessage}.","storage-delete":"Error thrown when deleting from storage. Original error: {$originalErrorMessage}.","fetch-client-network":"Fetch client failed to connect to a network. Check Internet connection. Original error: {$originalErrorMessage}.","fetch-timeout":'The config fetch request timed out.  Configure timeout using "fetchTimeoutMillis" SDK setting.',"fetch-throttle":'The config fetch request timed out while in an exponential backoff state. Configure timeout using "fetchTimeoutMillis" SDK setting. Unix timestamp in milliseconds when fetch request throttling ends: {$throttleEndTimeMillis}.',"fetch-client-parse":"Fetch client could not parse response. Original error: {$originalErrorMessage}.","fetch-status":"Fetch server returned an HTTP error status. HTTP status: {$httpStatus}.","indexed-db-unavailable":"Indexed DB is not supported by current browser","custom-signal-max-allowed-signals":"Setting more than {$maxSignals} custom signals is not supported.","stream-error":"The stream was not able to connect to the backend: {$originalErrorMessage}.","realtime-unavailable":"The Realtime service is unavailable: {$originalErrorMessage}","update-message-invalid":"The stream invalidation message was unparsable: {$originalErrorMessage}","update-not-fetched":"Unable to fetch the latest config: {$originalErrorMessage}","analytics-unavailable":"Connection to Firebase Analytics failed: {$originalErrorMessage}"},Be=new Qt("remoteconfig","Remote Config",Jy);function Zy(i,e){return i instanceof gt&&i.code.indexOf(e)!==-1}var ev=!1,tv="",Rh=0,nv=["1","true","t","yes","y","on"],ir=class{constructor(e,t=tv){this._source=e,this._value=t}asString(){return this._value}asBoolean(){return this._source==="static"?ev:nv.indexOf(this._value.toLowerCase())>=0}asNumber(){if(this._source==="static")return Rh;let e=Number(this._value);return isNaN(e)&&(e=Rh),e}getSource(){return this._source}},sc=class{constructor(e){this.storage=e._storage,this.logger=e._logger,this.analyticsProvider=e._analyticsProvider}updateActiveExperiments(e){return Q(this,null,function*(){let t=(yield this.storage.getActiveExperiments())||new Set,n=this.createExperimentInfoMap(e);return this.addActiveExperiments(n),this.removeInactiveExperiments(t,n),this.storage.setActiveExperiments(new Set(n.keys()))})}createExperimentInfoMap(e){let t=new Map;for(let n of e)t.set(n.experimentId,n);return t}addActiveExperiments(e){let t={};for(let[n,s]of e.entries())t[`firebase${n}`]=s.variantId;this.addExperimentToAnalytics(t)}removeInactiveExperiments(e,t){let n={};for(let s of e)t.has(s)||(n[`firebase${s}`]=null);this.addExperimentToAnalytics(n)}addExperimentToAnalytics(e){if(Object.keys(e).length!==0)try{let t=this.analyticsProvider.getImmediate({optional:!0});t?(t.setUserProperties(e),t.logEvent("set_firebase_experiment_state")):this.logger.warn("Analytics import failed. Verify if you have imported Firebase Analytics in your app code.")}catch(t){throw Be.create("analytics-unavailable",{originalErrorMessage:t?.message})}}};function Wh(i=Go(),e={}){i=xn(i);let t=nr(i,Uh);if(t.isInitialized()){let s=t.getOptions();if(ui(s,e))return t.getImmediate();throw Be.create("already-initialized")}t.initialize({options:e});let n=t.getImmediate();return e.initialFetchResponse&&(n._initializePromise=Promise.all([n._storage.setLastSuccessfulFetchResponse(e.initialFetchResponse),n._storage.setActiveConfigEtag(e.initialFetchResponse?.eTag||""),n._storage.setActiveConfigTemplateVersion(e.initialFetchResponse.templateVersion||0),n._storageCache.setLastSuccessfulFetchTimestampMillis(Date.now()),n._storageCache.setLastFetchStatus("success"),n._storageCache.setActiveConfig(e.initialFetchResponse?.config||{})]).then(),n._isInitializationComplete=!0),n}function iv(i){return Q(this,null,function*(){let e=xn(i),[t,n]=yield Promise.all([e._storage.getLastSuccessfulFetchResponse(),e._storage.getActiveConfigEtag()]);if(!t||!t.config||!t.eTag||!t.templateVersion||t.eTag===n)return!1;let s=new sc(e),a=t.experiments?s.updateActiveExperiments(t.experiments):Promise.resolve();return yield Promise.all([e._storageCache.setActiveConfig(t.config),e._storage.setActiveConfigEtag(t.eTag),e._storage.setActiveConfigTemplateVersion(t.templateVersion),a]
4),!0})}function rv(i){let e=xn(i);return e._initializePromise||(e._initializePromise=e._storageCache.loadFromStorage().then(()=>{e._isInitializationComplete=!0})),e._initializePromise}function sv(i){return Q(this,null,function*(){let e=xn(i),t=new sa;setTimeout(()=>Q(null,null,function*(){t.abort()}),e.settings.fetchTimeoutMillis);let n=e._storageCache.getCustomSignals();n&&e._logger.debug(`Fetching config with custom signals: ${JSON.stringify(n)}`);try{yield e._client.fetch({cacheMaxAgeMillis:e.settings.minimumFetchIntervalMillis,signal:t,customSignals:n}),yield e._storageCache.setLastFetchStatus("success")}catch(s){let a=Zy(s,"fetch-throttle")?"throttle":"failure";throw yield e._storageCache.setLastFetchStatus(a),s}})}function qh(i,e){return av(xn(i),e).asBoolean()}function av(i,e){let t=xn(i);t._isInitializationComplete||t._logger.debug(`A value was requested for key "${e}" before SDK initialization completed. Await on ensureInitialized if the intent was to get a previously activated value.`);let n=t._storageCache.getActiveConfig();return n&&n[e]!==void 0?new ir("remote",n[e]):t.defaultConfig&&t.defaultConfig[e]!==void 0?new ir("default",String(t.defaultConfig[e])):(t._logger.debug(`Returning static value for key "${e}". Define a default or remote value if this is unintentional.`),new ir("static"))}var ac=class{constructor(e,t,n,s){this.client=e,this.storage=t,this.storageCache=n,this.logger=s}isCachedDataFresh(e,t){if(!t)return this.logger.debug("Config fetch cache check. Cache unpopulated."),!1;let n=Date.now()-t,s=n<=e;return this.logger.debug(`Config fetch cache check. Cache age millis: ${n}. Cache max age millis (minimumFetchIntervalMillis setting): ${e}. Is cache hit: ${s}.`),s}fetch(e){return Q(this,null,function*(){let[t,n]=yield Promise.all([this.storage.getLastSuccessfulFetchTimestampMillis(),this.storage.getLastSuccessfulFetchResponse()]);if(n&&this.isCachedDataFresh(e.cacheMaxAgeMillis,t))return n;e.eTag=n&&n.eTag;let s=yield this.client.fetch(e),a=[this.storageCache.setLastSuccessfulFetchTimestampMillis(Date.now())];return s.status===200&&a.push(this.storage.setLastSuccessfulFetchResponse(s)),yield Promise.all(a),s})}};function ov(i=navigator){return i.languages&&i.languages[0]||i.language}var oc=class{constructor(e,t,n,s,a,d){this.firebaseInstallations=e,this.sdkVersion=t,this.namespace=n,this.projectId=s,this.apiKey=a,this.appId=d}fetch(e){return Q(this,null,function*(){let[t,n]=yield Promise.all([this.firebaseInstallations.getId(),this.firebaseInstallations.getToken()]),a=`${window.FIREBASE_REMOTE_CONFIG_URL_BASE||"https://firebaseremoteconfig.googleapis.com"}/v1/projects/${this.projectId}/namespaces/${this.namespace}:fetch?key=${this.apiKey}`,d={"Content-Type":"application/json","Content-Encoding":"gzip","If-None-Match":e.eTag||"*"},c={sdk_version:this.sdkVersion,app_instance_id:t,app_instance_id_token:n,app_id:this.appId,language_code:ov(),custom_signals:e.customSignals},h={method:"POST",headers:d,body:JSON.stringify(c)},u=fetch(a,h),p=new Promise((v,D)=>{e.signal.addEventListener(()=>{let S=new Error("The operation was aborted.");S.name="AbortError",D(S)})}),g;try{yield Promise.race([u,p]),g=yield u}catch(v){let D="fetch-client-network";throw v?.name==="AbortError"&&(D="fetch-timeout"),Be.create(D,{originalErrorMessage:v?.message})}let x=g.status,C=g.headers.get("ETag")||void 0,_,w,E,y;if(g.status===200){let v;try{v=yield g.json()}catch(D){throw Be.create("fetch-client-parse",{originalErrorMessage:D?.message})}_=v.entries,w=v.state,E=v.templateVersion,y=v.experimentDescriptions}if(w==="INSTANCE_STATE_UNSPECIFIED"?x=500:w==="NO_CHANGE"?x=304:(w==="NO_TEMPLATE"||w==="EMPTY_CONFIG")&&(_={},y=[]),x!==304&&x!==200)throw Be.create("fetch-status",{httpStatus:x});return{status:x,eTag:C,config:_,templateVersion:E,experiments:y}})}};function cv(i,e){return new Promise((t,n)=>{let s=Math.max(e-Date.now(),0),a=setTimeout(t,s);i.addEventListener(()=>{clearTimeout(a),n(Be.create("fetch-throttle",{throttleEndTimeMillis:e}))})})}function lv(i){if(!(i instanceof gt)||!i.customData)return!1;let e=Number(i.customData.httpStatus);return e===429||e===500||e===503||e===504}var cc=class{constructor(e,t){this.client=e,this.storage=t}fetch(e){return Q(this,null,function*(){let t=(yield this.storage.getThrottleMetadata())||{backoffCount:0,throttleEndTimeMillis:Date.now()};return this.attemptFetch(e,t)})}attemptFetch(s,a){return Q(this,arguments,function*(e,{throttleEndTimeMillis:t,backoffCount:n}){yield cv(e.signal,t);try{let d=yield this.client.fetch(e);return yield this.storage.deleteThrottleMetadata(),d}catch(d){if(!lv(d))throw d;let c={throttleEndTimeMillis:Date.now()+To(n),backoffCount:n+1};return yield this.storage.setThrottleMetadata(c),this.attemptFetch(e,c)}})}};var dv=60*1e3,fv=720*60*1e3,lc=class{get fetchTimeMillis(){return this._storageCache.getLastSuccessfulFetchTimestampMillis()||-1}get lastFetchStatus(){return this._storageCache.getLastFetchStatus()||"no-fetch-yet"}constructor(e,t,n,s,a,d,c){this.app=e,this._client=t,this._storageCache=n,this._storage=s,this._logger=a,this._realtimeHandler=d,this._analyticsProvider=c,this._isInitializationComplete=!1,this.settings={fetchTimeoutMillis:dv,minimumFetchIntervalMillis:fv},this.defaultConfig={}}};function ra(i,e){let t=i.target.error||void 0;return Be.create(e,{originalErrorMessage:t&&t?.message})}var vn="app_namespace_store",hv="firebase_remote_config",uv=1;function pv(){return new Promise((i,e)=>{try{let t=indexedDB.open(hv,uv);t.onerror=n=>{e(ra(n,"storage-open"))},t.onsuccess=n=>{i(n.target.result)},t.onupgradeneeded=n=>{let s=n.target.result;switch(n.oldVersion){case 0:s.createObjectStore(vn,{keyPath:"compositeKey"})}}}catch(t){e(Be.create("storage-open",{originalErrorMessage:t?.message}))}})}var aa=class{getLastFetchStatus(){return this.get("last_fetch_status")}setLastFetchStatus(e){return this.set("last_fetch_status",e)}getLastSuccessfulFetchTimestampMillis(){return this.get("last_successful_fetch_timestamp_millis")}setLastSuccessfulFetchTimestampMillis(e){return this.set("last_successful_fetch_timestamp_millis",e)}getLastSuccessfulFetchResponse(){return this.get("last_successful_fetch_response")}setLastSuccessfulFetchResponse(e){return this.set("last_successful_fetch_response",e)}getActiveConfig(){return this.get("active_config")}setActiveConfig(e){return this.set("active_config",e)}getActiveConfigEtag(){return this.get("active_config_etag")}setActiveConfigEtag(e){return this.set("active_config_etag",e)}getActiveExperiments(){return this.get("active_experiments")}setActiveExperiments(e){return this.set("active_experiments",e)}getThrottleMetadata(){return this.get("throttle_metadata")}setThrottleMetadata(e){return this.set("throttle_metadata",e)}deleteThrottleMetadata(){return this.delete("throttle_metadata")}getCustomSignals(){return this.get("custom_signals")}getRealtimeBackoffMetadata(){return this.get("realtime_backoff_metadata")}setRealtimeBackoffMetadata(e){return this.set("realtime_backoff_metadata",e)}getActiveConfigTemplateVersion(){return this.get("last_known_template_version")}setActiveConfigTemplateVersion(e){return this.set("last_known_template_version",e)}},dc=class extends aa{constructor(e,t,n,s=pv()){super(),this.appId=e,this.appName=t,this.namespace=n,this.openDbPromise=s}setCustomSignals(e){return Q(this,null,function*(){let n=(yield this.openDbPromise).transaction([vn],"readwrite"),s=yield this.getWithTransaction("custom_signals",n),a=jh(e,s||{});return yield this.setWithTransaction("custom_signals",a,n),a})}getWithTransaction(e,t){return Q(this,null,function*(){return new Promise((n,s)=>{let a=t.objectStore(vn),d=this.createCompositeKey(e);try{let c=a.get(d);c.onerror=h=>{s(ra(h,"storage-get"))},c.onsuccess=h=>{let u=h.target.result;n(u?u.value:void 0)}}catch(c){s(Be.create("storage-get",{originalErrorMessage:c?.message}))}})})}setWithTransaction(e,t,n){return Q(this,null,function*(){return new Promise((s,a)=>{let d=n.objectStore(vn),c=this.createCompositeKey(e);try{let h=d.put({compositeKey:c,value:t});h.onerror=u=>{a(ra(u,"storage-set"))},h.onsuccess=()=>{s()}}catch(h){a(Be.create("storage-set",{originalErrorMessage:h?.message}))}})})}get(e){return Q(this,null,function*(){let n=(yield this.openDbPromise).transaction([vn],"readonly");return this.getWithTransaction(e,n)})}set(e,t){return Q(this,null,function*(){let s=(yield this.openDbPromise).transaction([vn],"readwrite");return this.setWithTransaction(e,t,s)})}delete(e){return Q(this,null,function*(){let t=yield this.openDbPromise;return new Promise((n,s)=>{let d=t.transaction([vn],"readwrite").objectStore(vn),c=this.createCompositeKey(e);try{let h=d.delete(c);h.onerror=u=>{s(ra(u,"storage-delete"))},h.onsuccess=()=>{n()}}catch(h){s(Be.create("storage-delete",{originalErrorMessage:h?.message}))}})})}createCompositeKey(e){return[this.appId,this.appName,this.namespace,e].join()}},fc=class extends aa{constructor(){super(...arguments),this.storage={}}get(e){return Q(this,null,function*(){return Promise.resolve(this.storage[e])})}set(e,t){return Q(this,null,function*(){return this.storage[e]=t,Promise.resolve(void 0)})}delete(e){return Q(this,null,function*(){return this.storage[e]=void 0,Promise.resolve()})}setCustomSignals(e){return Q(this,null,function*(){let t=this.storage.custom_signals||{};return this.storage.custom_signals=jh(e,t),Promise.resolve(this.storage.custom_signals)})}};function jh(i,e){let t=Fe(Fe({},e),i),n=Object.fromEntries(Object.entries(t).filter(([s,a])=>a!==null).map(([s,a])=>typeof a=="number"?[s,a.toString()]:[s,a]));if(Object.keys(n).length>Ih)throw Be.create("custom-signal-max-allowed-signals",{maxSignals:Ih});return n}var hc=class{constructor(e){this.storage=e}getLastFetchStatus(){return this.lastFetchStatus}getLastSuccessfulFetchTimestampMillis(){return this.lastSuccessfulFetchTimestampMillis}getActiveConfig(){return this.activeConfig}getCustomSignals(){return this.customSignals}loadFromStorage(){return Q(this,null,function*(){let e=this.storage.getLastFetchStatus(),t=this.storage.getLastSuccessfulFetchTimestampMillis(),n=this.storage.getActiveConfig(),s=this.storage.getCustomSignals(),a=yield e;a&&(this.lastFetchStatus=a);let d=yield t;d&&(this.lastSuccessfulFetchTimestampMillis=d);let c=yield n;c&&(this.activeConfig=c);let h=yield s;
4h&&(this.customSignals=h)})}setLastFetchStatus(e){return this.lastFetchStatus=e,this.storage.setLastFetchStatus(e)}setLastSuccessfulFetchTimestampMillis(e){return this.lastSuccessfulFetchTimestampMillis=e,this.storage.setLastSuccessfulFetchTimestampMillis(e)}setActiveConfig(e){return this.activeConfig=e,this.storage.setActiveConfig(e)}setCustomSignals(e){return Q(this,null,function*(){this.customSignals=yield this.storage.setCustomSignals(e)})}};var uc=class{constructor(e){this.allowedEvents_=e,this.listeners_={},Gs(Array.isArray(e)&&e.length>0,"Requires a non-empty array")}trigger(e,...t){if(Array.isArray(this.listeners_[e])){let n=[...this.listeners_[e]];for(let s=0;s<n.length;s++)n[s].callback.apply(n[s].context,t)}}on(e,t,n){this.validateEventType_(e),this.listeners_[e]=this.listeners_[e]||[],this.listeners_[e].push({callback:t,context:n});let s=this.getInitialEvent(e);s&&t.apply(n,s)}off(e,t,n){this.validateEventType_(e);let s=this.listeners_[e]||[];for(let a=0;a<s.length;a++)if(s[a].callback===t&&(!n||n===s[a].context)){s.splice(a,1);return}}validateEventType_(e){Gs(this.allowedEvents_.find(t=>t===e),"Unknown event: "+e)}};var pc=class i extends uc{static getInstance(){return new i}constructor(){super(["visible"]);let e,t;typeof document<"u"&&typeof document.addEventListener<"u"&&(typeof document.hidden<"u"?(t="visibilitychange",e="hidden"):typeof document.mozHidden<"u"?(t="mozvisibilitychange",e="mozHidden"):typeof document.msHidden<"u"?(t="msvisibilitychange",e="msHidden"):typeof document.webkitHidden<"u"&&(t="webkitvisibilitychange",e="webkitHidden")),this.visible_=!0,t&&document.addEventListener(t,()=>{let n=!document[e];n!==this.visible_&&(this.visible_=n,this.trigger("visible",n))},!1)}getInitialEvent(e){return Gs(e==="visible","Unknown event type: "+e),[this.visible_]}};var mv="X-Goog-Api-Key",gv="X-Goog-Firebase-Installations-Auth",rc=8,Nh=3,Lh=-1,Hh=0,zh="featureDisabled",Vh="retryIntervalSeconds",Yh="latestTemplateVersionNumber",mc=class{constructor(e,t,n,s,a,d,c,h,u,p){this.firebaseInstallations=e,this.storage=t,this.sdkVersion=n,this.namespace=s,this.projectId=a,this.apiKey=d,this.appId=c,this.logger=h,this.storageCache=u,this.cachingClient=p,this.observers=new Set,this.isConnectionActive=!1,this.isRealtimeDisabled=!1,this.httpRetriesRemaining=rc,this.isInBackground=!1,this.decoder=new TextDecoder("utf-8"),this.isClosingConnection=!1,this.propagateError=g=>this.observers.forEach(x=>x.error?.(g)),this.isStatusCodeRetryable=g=>!g||[408,429,502,503,504].includes(g),this.setRetriesRemaining(),pc.getInstance().on("visible",this.onVisibilityChange,this)}setRetriesRemaining(){return Q(this,null,function*(){let t=(yield this.storage.getRealtimeBackoffMetadata())?.numFailedStreams||0;this.httpRetriesRemaining=Math.max(rc-t,1)})}updateBackoffMetadataWithLastFailedStreamConnectionTime(e){return Q(this,null,function*(){let t=((yield this.storage.getRealtimeBackoffMetadata())?.numFailedStreams||0)+1,n=To(t,6e4,2);yield this.storage.setRealtimeBackoffMetadata({backoffEndTimeMillis:new Date(e.getTime()+n),numFailedStreams:t})})}updateBackoffMetadataWithRetryInterval(e){return Q(this,null,function*(){let t=Date.now(),n=e*1e3,s=new Date(t+n);yield this.storage.setRealtimeBackoffMetadata({backoffEndTimeMillis:s,numFailedStreams:0}),yield this.retryHttpConnectionWhenBackoffEnds()})}closeRealtimeHttpConnection(){return Q(this,null,function*(){if(!this.isClosingConnection){this.isClosingConnection=!0;try{this.reader&&(yield this.reader.cancel())}catch{this.logger.debug("Failed to cancel the reader, connection was lost.")}finally{this.reader=void 0}this.controller&&(yield this.controller.abort(),this.controller=void 0),this.isClosingConnection=!1}})}resetRealtimeBackoff(){return Q(this,null,function*(){yield this.storage.setRealtimeBackoffMetadata({backoffEndTimeMillis:new Date(-1),numFailedStreams:0})})}resetRetryCount(){this.httpRetriesRemaining=rc}establishRealtimeConnection(e,t,n,s){return Q(this,null,function*(){let a=yield this.storage.getActiveConfigEtag(),d=yield this.storage.getActiveConfigTemplateVersion(),c={[mv]:this.apiKey,[gv]:n,"Content-Type":"application/json",Accept:"application/json","If-None-Match":a||"*","Content-Encoding":"gzip"},h={project:this.projectId,namespace:this.namespace,lastKnownVersionNumber:d,appId:this.appId,sdkVersion:this.sdkVersion,appInstanceId:t};return yield fetch(e,{method:"POST",headers:c,body:JSON.stringify(h),signal:s})})}getRealtimeUrl(){let t=`${window.FIREBASE_REMOTE_CONFIG_URL_BASE||"https://firebaseremoteconfigrealtime.googleapis.com"}/v1/projects/${this.projectId}/namespaces/${this.namespace}
4:streamFetchInvalidations?key=${this.apiKey}`;return new URL(t)}createRealtimeConnection(){return Q(this,null,function*(){let[e,t]=yield Promise.all([this.firebaseInstallations.getId(),this.firebaseInstallations.getToken(!1)]);this.controller=new AbortController;let n=this.getRealtimeUrl();return yield this.establishRealtimeConnection(n,e,t,this.controller.signal)})}retryHttpConnectionWhenBackoffEnds(){return Q(this,null,function*(){let e=yield this.storage.getRealtimeBackoffMetadata();e||(e={backoffEndTimeMillis:new Date(Lh),numFailedStreams:Hh});let t=new Date(e.backoffEndTimeMillis).getTime(),n=Date.now(),s=Math.max(0,t-n);yield this.makeRealtimeHttpConnection(s)})}setIsHttpConnectionRunning(e){this.isConnectionActive=e}checkAndSetHttpConnectionFlagIfNotRunning(){let e=this.canEstablishStreamConnection();return e&&this.setIsHttpConnectionRunning(!0),e}fetchResponseIsUpToDate(e,t){return e.config!=null&&e.templateVersion?e.templateVersion>=t:this.storageCache.getLastFetchStatus()==="success"}parseAndValidateConfigUpdateMessage(e){let t=e.indexOf("{"),n=e.indexOf("}",t);return t<0||n<0||t>=n?"":e.substring(t,n+1)}isEventListenersEmpty(){return this.observers.size===0}getRandomInt(e){return Math.floor(Math.random()*e)}executeAllListenerCallbacks(e){this.observers.forEach(t=>t.next(e))}getChangedParams(e,t){let n=new Set,s=new Set(Object.keys(e||{})),a=new Set(Object.keys(t||{}));for(let d of s)(!a.has(d)||e[d]!==t[d])&&n.add(d);for(let d of a)s.has(d)||n.add(d);return n}fetchLatestConfig(e,t){return Q(this,null,function*(){let n=e-1,s=Nh-n,a=this.storageCache.getCustomSignals();a&&this.logger.debug(`Fetching config with custom signals: ${JSON.stringify(a)}`);let d=new sa;try{let c={cacheMaxAgeMillis:0,signal:d,customSignals:a,fetchType:"REALTIME",fetchAttempt:s},h=yield this.cachingClient.fetch(c),u=yield this.storage.getActiveConfig();if(!this.fetchResponseIsUpToDate(h,t)){this.logger.debug("Fetched template version is the same as SDK's current version. Retrying fetch."),yield this.autoFetch(n,t);return}if(h.config==null){this.logger.debug("The fetch succeeded, but the backend had no updates.");return}u==null&&(u={});let p=this.getChangedParams(h.config,u);if(p.size===0){this.logger.debug("Config was fetched, but no params changed.");return}let g={getUpdatedKeys(){return new Set(p)}};this.executeAllListenerCallbacks(g)}catch(c){let h=c instanceof Error?c.message:String(c),u=Be.create("update-not-fetched",{originalErrorMessage:`Failed to auto-fetch config update: ${h}`});this.propagateError(u)}})}autoFetch(e,t){return Q(this,null,function*(){if(e===0){let a=Be.create("update-not-fetched",{originalErrorMessage:"Unable to fetch the latest version of the template."});this.propagateError(a);return}let s=this.getRandomInt(4)*1e3;yield new Promise(a=>setTimeout(a,s)),yield this.fetchLatestConfig(e,t)})}handleNotifications(e){return Q(this,null,function*(){let t,n="";for(;;){let{done:s,value:a}=yield e.read();if(s)break;if(t=this.decoder.decode(a,{stream:!0}),n+=t,t.includes("}")){if(n=this.parseAndValidateConfigUpdateMessage(n),n.length===0)continue;try{let d=JSON.parse(n);if(this.isEventListenersEmpty())break;if(zh in d&&d[zh]===!0){let c=Be.create("realtime-unavailable",{originalErrorMessage:"The server is temporarily unavailable. Try again in a few minutes."});this.propagateError(c);break}if(Yh in d){let c=yield this.storage.getActiveConfigTemplateVersion(),h=Number(d[Yh]);c&&h>c&&(yield this.autoFetch(Nh,h))}if(Vh in d){let c=Number(d[Vh]);yield this.updateBackoffMetadataWithRetryInterval(c)}}catch(d){this.logger.debug("Unable to parse latest config update message.",d);let c=d instanceof Error?d.message:String(d);this.propagateError(Be.create("update-message-invalid",{originalErrorMessage:c}))}n=""}}})}listenForNotifications(e){return Q(this,null,function*(){try{yield this.handleNotifications(e)}catch{this.isInBackground||this.logger.debug("Real-time connection was closed due to an exception.")}})}prepareAndBeginRealtimeHttpStream(){return Q(this,null,function*(){if(!this.checkAndSetHttpConnectionFlagIfNotRunning())return;let e=yield this.storage.getRealtimeBackoffMetadata();
4e||(e={backoffEndTimeMillis:new Date(Lh),numFailedStreams:Hh});let t=e.backoffEndTimeMillis.getTime();if(Date.now()<t){yield this.retryHttpConnectionWhenBackoffEnds();return}let n,s;try{if(n=yield this.createRealtimeConnection(),s=n.status,n.ok&&n.body){this.resetRetryCount(),yield this.resetRealtimeBackoff();let a=n.body.getReader();this.reader=a,yield this.listenForNotifications(a)}}catch(a){this.isInBackground?this.resetRetryCount():this.logger.debug("Exception connecting to real-time RC backend. Retrying the connection...:",a)}finally{yield this.closeRealtimeHttpConnection(),this.setIsHttpConnectionRunning(!1);let a=!this.isInBackground&&(s===void 0||this.isStatusCodeRetryable(s));if(a&&(yield this.updateBackoffMetadataWithLastFailedStreamConnectionTime(new Date)),a||n?.ok)yield this.retryHttpConnectionWhenBackoffEnds();else{let d=`Unable to connect to the server. HTTP status code: ${s}`,c=Be.create("stream-error",{originalErrorMessage:d});this.propagateError(c)}}})}canEstablishStreamConnection(){let e=this.observers.size>0,t=!this.isRealtimeDisabled,n=!this.isConnectionActive,s=!this.isInBackground;return e&&t&&n&&s}makeRealtimeHttpConnection(e){return Q(this,null,function*(){if(this.canEstablishStreamConnection()){if(this.httpRetriesRemaining>0)this.httpRetriesRemaining--,yield new Promise(t=>setTimeout(t,e)),this.prepareAndBeginRealtimeHttpStream();else if(!this.isInBackground){let t=Be.create("stream-error",{originalErrorMessage:"Unable to connect to the server. Check your connection and try again."});this.propagateError(t)}}})}beginRealtime(){return Q(this,null,function*(){this.observers.size>0&&(yield this.makeRealtimeHttpConnection(0))})}addObserver(e){this.observers.add(e),this.beginRealtime()}removeObserver(e){this.observers.has(e)&&this.observers.delete(e)}onVisibilityChange(e){return Q(this,null,function*(){this.isInBackground=!e,e?e&&(yield this.beginRealtime()):yield this.closeRealtimeHttpConnection()})}};function xv(){yn(new xt(Uh,i,"PUBLIC").setMultipleInstances(!0)),Dt(ic,Bh),Dt(ic,Bh,"esm2020");function i(e,{options:t}){let n=e.getProvider("app").getImmediate(),s=e.getProvider("installations-internal").getImmediate(),a=e.getProvider("analytics-internal"),{projectId:d,apiKey:c,appId:h}=n.options;if(!d)throw Be.create("registration-project-id");if(!c)throw Be.create("registration-api-key");if(!h)throw Be.create("registration-app-id");let u=t?.templateId||"firebase",p=er()?new dc(h,n.name,u):new fc,g=new hc(p),x=new pi(ic);x.logLevel=Se.ERROR;let C=new oc(s,$o,u,d,c,h),_=new cc(C,p),w=new ac(_,p,g,x),E=new mc(s,p,$o,u,d,c,h,x,g,w),y=new lc(n,w,g,p,x,E,a);return rv(y),y}}function $h(i){return Q(this,null,function*(){return i=xn(i),yield sv(i),iv(i)})}function Kh(){return Q(this,null,function*(){if(!er())return!1;try{return yield Qs()}catch{return!1}})}xv();var Gh=(()=>{let e=class e{constructor(){this.appConfigService=ge(R0),this.isReady=Ae(!1)}initialize(){return Da(Kh()).pipe(a0(n=>{if(!n)return this.updateShowPartnersSectionsFlag(!1),Ma(void 0);let s=Ko(Ye.firebaseConfig),a=Wh(s);return a.settings.minimumFetchIntervalMillis=0,Da($h(a)).pipe(o0(()=>{let d=qh(a,"isPartnersSectionsViewed");this.updateShowPartnersSectionsFlag(d)}),Di(()=>{}))}),Ut(n=>(this.updateShowPartnersSectionsFlag(!1),console.error("error initializing remote config",n),Ma(void 0))),vr(()=>{this.isReady.set(!0)}))}updateShowPartnersSectionsFlag(n){this.appConfigService.setShowPartnersSections(n),this.isReady.set(!0)}};e.\u0275fac=function(s){return new(s||e)},e.\u0275prov=at({token:e,factory:e.\u0275fac,providedIn:"root"});let i=e;return i})();Ye.production&&void 0;P0(Gf,{providers:[c0(it.forRoot({loader:{provide:D0,useFactory:Z0,deps:[br]}}),O0,tl,N0,fn,Or,T0.forRoot(),X0,ed,L0),{provide:u0,useFactory:()=>{let i=ge(Gh);return()=>i0(i.initialize())},multi:!0},{provide:b0,useClass:el,multi:!0},E0(S0()),Jl()]}).catch(i=>console.error(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.