@everymatrix/player-account-gaming-limits-group-edit 1.52.5 → 1.53.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2855,7 +2855,7 @@ if (typeof window != "undefined") {
2855
2855
  }
2856
2856
  };
2857
2857
  };
2858
- customElements.define = e(customElements.define), import("./PlayerAccountModal-DQPRW4Kz.js").then(({ default: t }) => {
2858
+ customElements.define = e(customElements.define), import("./PlayerAccountModal-Bhv_dEo-.js").then(({ default: t }) => {
2859
2859
  !customElements.get("player-account-modal") && customElements.define("player-account-modal", t.element);
2860
2860
  });
2861
2861
  }
@@ -7,4 +7,4 @@ var Fi;function f(){return Fi.apply(null,arguments)}function Us(e){Fi=e}function
7
7
  [`+r+"] ";for(o in arguments[0])b(arguments[0],o)&&(a+=o+": "+arguments[0][o]+", ");a=a.slice(0,-2)}else a=arguments[r];s.push(a)}Ii(e+`
8
8
  Arguments: `+Array.prototype.slice.call(s).join("")+`
9
9
  `+new Error().stack),i=!1}return t.apply(this,arguments)},t)}var _i={};function Ui(e,t){f.deprecationHandler!=null&&f.deprecationHandler(e,t),_i[e]||(Ii(t),_i[e]=!0)}f.suppressDeprecationWarnings=!1;f.deprecationHandler=null;function _e(e){return typeof Function!="undefined"&&e instanceof Function||Object.prototype.toString.call(e)==="[object Function]"}function Vs(e){var t,i;for(i in e)b(e,i)&&(t=e[i],_e(t)?this[i]=t:this["_"+i]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function Ft(e,t){var i=Ce({},e),s;for(s in t)b(t,s)&&(Ue(e[s])&&Ue(t[s])?(i[s]={},Ce(i[s],e[s]),Ce(i[s],t[s])):t[s]!=null?i[s]=t[s]:delete i[s]);for(s in e)b(e,s)&&!b(t,s)&&Ue(e[s])&&(i[s]=Ce({},i[s]));return i}function Bt(e){e!=null&&this.set(e)}var Rt;Object.keys?Rt=Object.keys:Rt=function(e){var t,i=[];for(t in e)b(e,t)&&i.push(t);return i};var js={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function Gs(e,t,i){var s=this._calendar[e]||this._calendar.sameElse;return _e(s)?s.call(t,i):s}function he(e,t,i){var s=""+Math.abs(e),a=t-s.length,r=e>=0;return(r?i?"+":"":"-")+Math.pow(10,Math.max(0,a)).toString().substr(1)+s}var qt=/(\[[^\[]*\])|(\\)?([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,dt=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,Nt={},Be={};function _(e,t,i,s){var a=s;typeof s=="string"&&(a=function(){return this[s]()}),e&&(Be[e]=a),t&&(Be[t[0]]=function(){return he(a.apply(this,arguments),t[1],t[2])}),i&&(Be[i]=function(){return this.localeData().ordinal(a.apply(this,arguments),e)})}function zs(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function Bs(e){var t=e.match(qt),i,s;for(i=0,s=t.length;i<s;i++)Be[t[i]]?t[i]=Be[t[i]]:t[i]=zs(t[i]);return function(a){var r="",o;for(o=0;o<s;o++)r+=_e(t[o])?t[o].call(a,e):t[o];return r}}function mt(e,t){return e.isValid()?(t=Hi(t,e.localeData()),Nt[t]=Nt[t]||Bs(t),Nt[t](e)):e.localeData().invalidDate()}function Hi(e,t){var i=5;function s(a){return t.longDateFormat(a)||a}for(dt.lastIndex=0;i>=0&&dt.test(e);)e=e.replace(dt,s),dt.lastIndex=0,i-=1;return e}var qs={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 Zs(e){var t=this._longDateFormat[e],i=this._longDateFormat[e.toUpperCase()];return t||!i?t:(this._longDateFormat[e]=i.match(qt).map(function(s){return s==="MMMM"||s==="MM"||s==="DD"||s==="dddd"?s.slice(1):s}).join(""),this._longDateFormat[e])}var Js="Invalid date";function Qs(){return this._invalidDate}var Ks="%d",Xs=/\d{1,2}/;function $s(e){return this._ordinal.replace("%d",e)}var ea={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 ta(e,t,i,s){var a=this._relativeTime[i];return _e(a)?a(e,t,i,s):a.replace(/%d/i,e)}function ia(e,t){var i=this._relativeTime[e>0?"future":"past"];return _e(i)?i(t):i.replace(/%s/i,t)}var yi={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 ne(e){return typeof e=="string"?yi[e]||yi[e.toLowerCase()]:void 0}function Zt(e){var t={},i,s;for(s in e)b(e,s)&&(i=ne(s),i&&(t[i]=e[s]));return t}var sa={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 aa(e){var t=[],i;for(i in e)b(e,i)&&t.push({unit:i,priority:sa[i]});return t.sort(function(s,a){return s.priority-a.priority}),t}var Vi=/\d/,te=/\d\d/,ji=/\d{3}/,Jt=/\d{4}/,kt=/[+-]?\d{6}/,W=/\d\d?/,Gi=/\d\d\d\d?/,zi=/\d\d\d\d\d\d?/,Mt=/\d{1,3}/,Qt=/\d{1,4}/,Dt=/[+-]?\d{1,6}/,Je=/\d+/,Lt=/[+-]?\d+/,na=/Z|[+-]\d\d:?\d\d/gi,St=/Z|[+-]\d\d(?::?\d\d)?/gi,ra=/[+-]?\d+(\.\d{1,3})?/,ot=/[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,Qe=/^[1-9]\d?/,Kt=/^([1-9]\d|\d)/,pt;pt={};function h(e,t,i){pt[e]=_e(t)?t:function(s,a){return s&&i?i:t}}function oa(e,t){return b(pt,e)?pt[e](t._strict,t._locale):new RegExp(la(e))}function la(e){return Me(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(t,i,s,a,r){return i||s||a||r}))}function Me(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function se(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function w(e){var t=+e,i=0;return t!==0&&isFinite(t)&&(i=se(t)),i}var It={};function E(e,t){var i,s=t,a;for(typeof e=="string"&&(e=[e]),Le(t)&&(s=function(r,o){o[t]=w(r)}),a=e.length,i=0;i<a;i++)It[e[i]]=s}function lt(e,t){E(e,function(i,s,a,r){a._w=a._w||{},t(i,a._w,a,r)})}function ua(e,t,i){t!=null&&b(It,e)&&It[e](t,i._a,i,e)}function bt(e){return e%4===0&&e%100!==0||e%400===0}var Q=0,we=1,fe=2,G=3,le=4,ke=5,Ie=6,da=7,ca=8;_("Y",0,0,function(){var e=this.year();return e<=9999?he(e,4):"+"+e});_(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");h("Y",Lt);h("YY",W,te);h("YYYY",Qt,Jt);h("YYYYY",Dt,kt);h("YYYYYY",Dt,kt);E(["YYYYY","YYYYYY"],Q);E("YYYY",function(e,t){t[Q]=e.length===2?f.parseTwoDigitYear(e):w(e)});E("YY",function(e,t){t[Q]=f.parseTwoDigitYear(e)});E("Y",function(e,t){t[Q]=parseInt(e,10)});function et(e){return bt(e)?366:365}f.parseTwoDigitYear=function(e){return w(e)+(w(e)>68?1900:2e3)};var Bi=Ke("FullYear",!0);function ma(){return bt(this.year())}function Ke(e,t){return function(i){return i!=null?(qi(this,e,i),f.updateOffset(this,t),this):tt(this,e)}}function tt(e,t){if(!e.isValid())return NaN;var i=e._d,s=e._isUTC;switch(t){case"Milliseconds":return s?i.getUTCMilliseconds():i.getMilliseconds();case"Seconds":return s?i.getUTCSeconds():i.getSeconds();case"Minutes":return s?i.getUTCMinutes():i.getMinutes();case"Hours":return s?i.getUTCHours():i.getHours();case"Date":return s?i.getUTCDate():i.getDate();case"Day":return s?i.getUTCDay():i.getDay();case"Month":return s?i.getUTCMonth():i.getMonth();case"FullYear":return s?i.getUTCFullYear():i.getFullYear();default:return NaN}}function qi(e,t,i){var s,a,r,o,l;if(!(!e.isValid()||isNaN(i))){switch(s=e._d,a=e._isUTC,t){case"Milliseconds":return void(a?s.setUTCMilliseconds(i):s.setMilliseconds(i));case"Seconds":return void(a?s.setUTCSeconds(i):s.setSeconds(i));case"Minutes":return void(a?s.setUTCMinutes(i):s.setMinutes(i));case"Hours":return void(a?s.setUTCHours(i):s.setHours(i));case"Date":return void(a?s.setUTCDate(i):s.setDate(i));case"FullYear":break;default:return}r=i,o=e.month(),l=e.date(),l=l===29&&o===1&&!bt(r)?28:l,a?s.setUTCFullYear(r,o,l):s.setFullYear(r,o,l)}}function fa(e){return e=ne(e),_e(this[e])?this[e]():this}function ha(e,t){if(typeof e=="object"){e=Zt(e);var i=aa(e),s,a=i.length;for(s=0;s<a;s++)this[i[s].unit](e[i[s].unit])}else if(e=ne(e),_e(this[e]))return this[e](t);return this}function pa(e,t){return(e%t+t)%t}var U;Array.prototype.indexOf?U=Array.prototype.indexOf:U=function(e){var t;for(t=0;t<this.length;++t)if(this[t]===e)return t;return-1};function Xt(e,t){if(isNaN(e)||isNaN(t))return NaN;var i=pa(t,12);return e+=(t-i)/12,i===1?bt(e)?29:28:31-i%7%2}_("M",["MM",2],"Mo",function(){return this.month()+1});_("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)});_("MMMM",0,0,function(e){return this.localeData().months(this,e)});h("M",W,Qe);h("MM",W,te);h("MMM",function(e,t){return t.monthsShortRegex(e)});h("MMMM",function(e,t){return t.monthsRegex(e)});E(["M","MM"],function(e,t){t[we]=w(e)-1});E(["MMM","MMMM"],function(e,t,i,s){var a=i._locale.monthsParse(e,s,i._strict);a!=null?t[we]=a:g(i).invalidMonth=e});var _a="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),Zi="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),Ji=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,ya=ot,ga=ot;function va(e,t){return e?ue(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||Ji).test(t)?"format":"standalone"][e.month()]:ue(this._months)?this._months:this._months.standalone}function wa(e,t){return e?ue(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[Ji.test(t)?"format":"standalone"][e.month()]:ue(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function ka(e,t,i){var s,a,r,o=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],s=0;s<12;++s)r=pe([2e3,s]),this._shortMonthsParse[s]=this.monthsShort(r,"").toLocaleLowerCase(),this._longMonthsParse[s]=this.months(r,"").toLocaleLowerCase();return i?t==="MMM"?(a=U.call(this._shortMonthsParse,o),a!==-1?a:null):(a=U.call(this._longMonthsParse,o),a!==-1?a:null):t==="MMM"?(a=U.call(this._shortMonthsParse,o),a!==-1?a:(a=U.call(this._longMonthsParse,o),a!==-1?a:null)):(a=U.call(this._longMonthsParse,o),a!==-1?a:(a=U.call(this._shortMonthsParse,o),a!==-1?a:null))}function Ma(e,t,i){var s,a,r;if(this._monthsParseExact)return ka.call(this,e,t,i);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),s=0;s<12;s++){if(a=pe([2e3,s]),i&&!this._longMonthsParse[s]&&(this._longMonthsParse[s]=new RegExp("^"+this.months(a,"").replace(".","")+"$","i"),this._shortMonthsParse[s]=new RegExp("^"+this.monthsShort(a,"").replace(".","")+"$","i")),!i&&!this._monthsParse[s]&&(r="^"+this.months(a,"")+"|^"+this.monthsShort(a,""),this._monthsParse[s]=new RegExp(r.replace(".",""),"i")),i&&t==="MMMM"&&this._longMonthsParse[s].test(e))return s;if(i&&t==="MMM"&&this._shortMonthsParse[s].test(e))return s;if(!i&&this._monthsParse[s].test(e))return s}}function Qi(e,t){if(!e.isValid())return e;if(typeof t=="string"){if(/^\d+$/.test(t))t=w(t);else if(t=e.localeData().monthsParse(t),!Le(t))return e}var i=t,s=e.date();return s=s<29?s:Math.min(s,Xt(e.year(),i)),e._isUTC?e._d.setUTCMonth(i,s):e._d.setMonth(i,s),e}function Ki(e){return e!=null?(Qi(this,e),f.updateOffset(this,!0),this):tt(this,"Month")}function Da(){return Xt(this.year(),this.month())}function La(e){return this._monthsParseExact?(b(this,"_monthsRegex")||Xi.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(b(this,"_monthsShortRegex")||(this._monthsShortRegex=ya),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)}function Sa(e){return this._monthsParseExact?(b(this,"_monthsRegex")||Xi.call(this),e?this._monthsStrictRegex:this._monthsRegex):(b(this,"_monthsRegex")||(this._monthsRegex=ga),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)}function Xi(){function e(u,c){return c.length-u.length}var t=[],i=[],s=[],a,r,o,l;for(a=0;a<12;a++)r=pe([2e3,a]),o=Me(this.monthsShort(r,"")),l=Me(this.months(r,"")),t.push(o),i.push(l),s.push(l),s.push(o);t.sort(e),i.sort(e),s.sort(e),this._monthsRegex=new RegExp("^("+s.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+i.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+t.join("|")+")","i")}function ba(e,t,i,s,a,r,o){var l;return e<100&&e>=0?(l=new Date(e+400,t,i,s,a,r,o),isFinite(l.getFullYear())&&l.setFullYear(e)):l=new Date(e,t,i,s,a,r,o),l}function it(e){var t,i;return e<100&&e>=0?(i=Array.prototype.slice.call(arguments),i[0]=e+400,t=new Date(Date.UTC.apply(null,i)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function _t(e,t,i){var s=7+t-i,a=(7+it(e,0,s).getUTCDay()-t)%7;return-a+s-1}function $i(e,t,i,s,a){var r=(7+i-s)%7,o=_t(e,s,a),l=1+7*(t-1)+r+o,u,c;return l<=0?(u=e-1,c=et(u)+l):l>et(e)?(u=e+1,c=l-et(e)):(u=e,c=l),{year:u,dayOfYear:c}}function st(e,t,i){var s=_t(e.year(),t,i),a=Math.floor((e.dayOfYear()-s-1)/7)+1,r,o;return a<1?(o=e.year()-1,r=a+De(o,t,i)):a>De(e.year(),t,i)?(r=a-De(e.year(),t,i),o=e.year()+1):(o=e.year(),r=a),{week:r,year:o}}function De(e,t,i){var s=_t(e,t,i),a=_t(e+1,t,i);return(et(e)-s+a)/7}_("w",["ww",2],"wo","week");_("W",["WW",2],"Wo","isoWeek");h("w",W,Qe);h("ww",W,te);h("W",W,Qe);h("WW",W,te);lt(["w","ww","W","WW"],function(e,t,i,s){t[s.substr(0,1)]=w(e)});function Ta(e){return st(e,this._week.dow,this._week.doy).week}var Ya={dow:0,doy:6};function Oa(){return this._week.dow}function Aa(){return this._week.doy}function Ca(e){var t=this.localeData().week(this);return e==null?t:this.add((e-t)*7,"d")}function Ea(e){var t=st(this,1,4).week;return e==null?t:this.add((e-t)*7,"d")}_("d",0,"do","day");_("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)});_("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)});_("dddd",0,0,function(e){return this.localeData().weekdays(this,e)});_("e",0,0,"weekday");_("E",0,0,"isoWeekday");h("d",W);h("e",W);h("E",W);h("dd",function(e,t){return t.weekdaysMinRegex(e)});h("ddd",function(e,t){return t.weekdaysShortRegex(e)});h("dddd",function(e,t){return t.weekdaysRegex(e)});lt(["dd","ddd","dddd"],function(e,t,i,s){var a=i._locale.weekdaysParse(e,s,i._strict);a!=null?t.d=a:g(i).invalidWeekday=e});lt(["d","e","E"],function(e,t,i,s){t[s]=w(e)});function Na(e,t){return typeof e!="string"?e:isNaN(e)?(e=t.weekdaysParse(e),typeof e=="number"?e:null):parseInt(e,10)}function xa(e,t){return typeof e=="string"?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function $t(e,t){return e.slice(t,7).concat(e.slice(0,t))}var Wa="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),es="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Pa="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Fa=ot,Ra=ot,Ia=ot;function Ua(e,t){var i=ue(this._weekdays)?this._weekdays:this._weekdays[e&&e!==!0&&this._weekdays.isFormat.test(t)?"format":"standalone"];return e===!0?$t(i,this._week.dow):e?i[e.day()]:i}function Ha(e){return e===!0?$t(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function Va(e){return e===!0?$t(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function ja(e,t,i){var s,a,r,o=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],s=0;s<7;++s)r=pe([2e3,1]).day(s),this._minWeekdaysParse[s]=this.weekdaysMin(r,"").toLocaleLowerCase(),this._shortWeekdaysParse[s]=this.weekdaysShort(r,"").toLocaleLowerCase(),this._weekdaysParse[s]=this.weekdays(r,"").toLocaleLowerCase();return i?t==="dddd"?(a=U.call(this._weekdaysParse,o),a!==-1?a:null):t==="ddd"?(a=U.call(this._shortWeekdaysParse,o),a!==-1?a:null):(a=U.call(this._minWeekdaysParse,o),a!==-1?a:null):t==="dddd"?(a=U.call(this._weekdaysParse,o),a!==-1||(a=U.call(this._shortWeekdaysParse,o),a!==-1)?a:(a=U.call(this._minWeekdaysParse,o),a!==-1?a:null)):t==="ddd"?(a=U.call(this._shortWeekdaysParse,o),a!==-1||(a=U.call(this._weekdaysParse,o),a!==-1)?a:(a=U.call(this._minWeekdaysParse,o),a!==-1?a:null)):(a=U.call(this._minWeekdaysParse,o),a!==-1||(a=U.call(this._weekdaysParse,o),a!==-1)?a:(a=U.call(this._shortWeekdaysParse,o),a!==-1?a:null))}function Ga(e,t,i){var s,a,r;if(this._weekdaysParseExact)return ja.call(this,e,t,i);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),s=0;s<7;s++){if(a=pe([2e3,1]).day(s),i&&!this._fullWeekdaysParse[s]&&(this._fullWeekdaysParse[s]=new RegExp("^"+this.weekdays(a,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[s]=new RegExp("^"+this.weekdaysShort(a,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[s]=new RegExp("^"+this.weekdaysMin(a,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[s]||(r="^"+this.weekdays(a,"")+"|^"+this.weekdaysShort(a,"")+"|^"+this.weekdaysMin(a,""),this._weekdaysParse[s]=new RegExp(r.replace(".",""),"i")),i&&t==="dddd"&&this._fullWeekdaysParse[s].test(e))return s;if(i&&t==="ddd"&&this._shortWeekdaysParse[s].test(e))return s;if(i&&t==="dd"&&this._minWeekdaysParse[s].test(e))return s;if(!i&&this._weekdaysParse[s].test(e))return s}}function za(e){if(!this.isValid())return e!=null?this:NaN;var t=tt(this,"Day");return e!=null?(e=Na(e,this.localeData()),this.add(e-t,"d")):t}function Ba(e){if(!this.isValid())return e!=null?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return e==null?t:this.add(e-t,"d")}function qa(e){if(!this.isValid())return e!=null?this:NaN;if(e!=null){var t=xa(e,this.localeData());return this.day(this.day()%7?t:t-7)}else return this.day()||7}function Za(e){return this._weekdaysParseExact?(b(this,"_weekdaysRegex")||ei.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(b(this,"_weekdaysRegex")||(this._weekdaysRegex=Fa),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function Ja(e){return this._weekdaysParseExact?(b(this,"_weekdaysRegex")||ei.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(b(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Ra),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function Qa(e){return this._weekdaysParseExact?(b(this,"_weekdaysRegex")||ei.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(b(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Ia),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function ei(){function e(p,A){return A.length-p.length}var t=[],i=[],s=[],a=[],r,o,l,u,c;for(r=0;r<7;r++)o=pe([2e3,1]).day(r),l=Me(this.weekdaysMin(o,"")),u=Me(this.weekdaysShort(o,"")),c=Me(this.weekdays(o,"")),t.push(l),i.push(u),s.push(c),a.push(l),a.push(u),a.push(c);t.sort(e),i.sort(e),s.sort(e),a.sort(e),this._weekdaysRegex=new RegExp("^("+a.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+i.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+t.join("|")+")","i")}function ti(){return this.hours()%12||12}function Ka(){return this.hours()||24}_("H",["HH",2],0,"hour");_("h",["hh",2],0,ti);_("k",["kk",2],0,Ka);_("hmm",0,0,function(){return""+ti.apply(this)+he(this.minutes(),2)});_("hmmss",0,0,function(){return""+ti.apply(this)+he(this.minutes(),2)+he(this.seconds(),2)});_("Hmm",0,0,function(){return""+this.hours()+he(this.minutes(),2)});_("Hmmss",0,0,function(){return""+this.hours()+he(this.minutes(),2)+he(this.seconds(),2)});function ts(e,t){_(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}ts("a",!0);ts("A",!1);function is(e,t){return t._meridiemParse}h("a",is);h("A",is);h("H",W,Kt);h("h",W,Qe);h("k",W,Qe);h("HH",W,te);h("hh",W,te);h("kk",W,te);h("hmm",Gi);h("hmmss",zi);h("Hmm",Gi);h("Hmmss",zi);E(["H","HH"],G);E(["k","kk"],function(e,t,i){var s=w(e);t[G]=s===24?0:s});E(["a","A"],function(e,t,i){i._isPm=i._locale.isPM(e),i._meridiem=e});E(["h","hh"],function(e,t,i){t[G]=w(e),g(i).bigHour=!0});E("hmm",function(e,t,i){var s=e.length-2;t[G]=w(e.substr(0,s)),t[le]=w(e.substr(s)),g(i).bigHour=!0});E("hmmss",function(e,t,i){var s=e.length-4,a=e.length-2;t[G]=w(e.substr(0,s)),t[le]=w(e.substr(s,2)),t[ke]=w(e.substr(a)),g(i).bigHour=!0});E("Hmm",function(e,t,i){var s=e.length-2;t[G]=w(e.substr(0,s)),t[le]=w(e.substr(s))});E("Hmmss",function(e,t,i){var s=e.length-4,a=e.length-2;t[G]=w(e.substr(0,s)),t[le]=w(e.substr(s,2)),t[ke]=w(e.substr(a))});function Xa(e){return(e+"").toLowerCase().charAt(0)==="p"}var $a=/[ap]\.?m?\.?/i,en=Ke("Hours",!0);function tn(e,t,i){return e>11?i?"pm":"PM":i?"am":"AM"}var ss={calendar:js,longDateFormat:qs,invalidDate:Js,ordinal:Ks,dayOfMonthOrdinalParse:Xs,relativeTime:ea,months:_a,monthsShort:Zi,week:Ya,weekdays:Wa,weekdaysMin:Pa,weekdaysShort:es,meridiemParse:$a},R={},Xe={},at;function sn(e,t){var i,s=Math.min(e.length,t.length);for(i=0;i<s;i+=1)if(e[i]!==t[i])return i;return s}function gi(e){return e&&e.toLowerCase().replace("_","-")}function an(e){for(var t=0,i,s,a,r;t<e.length;){for(r=gi(e[t]).split("-"),i=r.length,s=gi(e[t+1]),s=s?s.split("-"):null;i>0;){if(a=Tt(r.slice(0,i).join("-")),a)return a;if(s&&s.length>=i&&sn(r,s)>=i-1)break;i--}t++}return at}function nn(e){return!!(e&&e.match("^[^/\\\\]*$"))}function Tt(e){var t=null,i;if(R[e]===void 0&&typeof module!="undefined"&&module&&module.exports&&nn(e))try{t=at._abbr,i=Is,i("./locale/"+e),Ne(t)}catch(s){R[e]=null}return R[e]}function Ne(e,t){var i;return e&&(X(t)?i=Se(e):i=ii(e,t),i?at=i:typeof console!="undefined"&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),at._abbr}function ii(e,t){if(t!==null){var i,s=ss;if(t.abbr=e,R[e]!=null)Ui("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."),s=R[e]._config;else if(t.parentLocale!=null)if(R[t.parentLocale]!=null)s=R[t.parentLocale]._config;else if(i=Tt(t.parentLocale),i!=null)s=i._config;else return Xe[t.parentLocale]||(Xe[t.parentLocale]=[]),Xe[t.parentLocale].push({name:e,config:t}),null;return R[e]=new Bt(Ft(s,t)),Xe[e]&&Xe[e].forEach(function(a){ii(a.name,a.config)}),Ne(e),R[e]}else return delete R[e],null}function rn(e,t){if(t!=null){var i,s,a=ss;R[e]!=null&&R[e].parentLocale!=null?R[e].set(Ft(R[e]._config,t)):(s=Tt(e),s!=null&&(a=s._config),t=Ft(a,t),s==null&&(t.abbr=e),i=new Bt(t),i.parentLocale=R[e],R[e]=i),Ne(e)}else R[e]!=null&&(R[e].parentLocale!=null?(R[e]=R[e].parentLocale,e===Ne()&&Ne(e)):R[e]!=null&&delete R[e]);return R[e]}function Se(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return at;if(!ue(e)){if(t=Tt(e),t)return t;e=[e]}return an(e)}function on(){return Rt(R)}function si(e){var t,i=e._a;return i&&g(e).overflow===-2&&(t=i[we]<0||i[we]>11?we:i[fe]<1||i[fe]>Xt(i[Q],i[we])?fe:i[G]<0||i[G]>24||i[G]===24&&(i[le]!==0||i[ke]!==0||i[Ie]!==0)?G:i[le]<0||i[le]>59?le:i[ke]<0||i[ke]>59?ke:i[Ie]<0||i[Ie]>999?Ie:-1,g(e)._overflowDayOfYear&&(t<Q||t>fe)&&(t=fe),g(e)._overflowWeeks&&t===-1&&(t=da),g(e)._overflowWeekday&&t===-1&&(t=ca),g(e).overflow=t),e}var ln=/^\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)?)?$/,un=/^\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)?)?$/,dn=/Z|[+-]\d\d(?::?\d\d)?/,ct=[["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]],xt=[["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/]],cn=/^\/?Date\((-?\d+)/i,mn=/^(?:(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}))$/,fn={UT:0,GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function as(e){var t,i,s=e._i,a=ln.exec(s)||un.exec(s),r,o,l,u,c=ct.length,p=xt.length;if(a){for(g(e).iso=!0,t=0,i=c;t<i;t++)if(ct[t][1].exec(a[1])){o=ct[t][0],r=ct[t][2]!==!1;break}if(o==null){e._isValid=!1;return}if(a[3]){for(t=0,i=p;t<i;t++)if(xt[t][1].exec(a[3])){l=(a[2]||" ")+xt[t][0];break}if(l==null){e._isValid=!1;return}}if(!r&&l!=null){e._isValid=!1;return}if(a[4])if(dn.exec(a[4]))u="Z";else{e._isValid=!1;return}e._f=o+(l||"")+(u||""),ni(e)}else e._isValid=!1}function hn(e,t,i,s,a,r){var o=[pn(e),Zi.indexOf(t),parseInt(i,10),parseInt(s,10),parseInt(a,10)];return r&&o.push(parseInt(r,10)),o}function pn(e){var t=parseInt(e,10);return t<=49?2e3+t:t<=999?1900+t:t}function _n(e){return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function yn(e,t,i){if(e){var s=es.indexOf(e),a=new Date(t[0],t[1],t[2]).getDay();if(s!==a)return g(i).weekdayMismatch=!0,i._isValid=!1,!1}return!0}function gn(e,t,i){if(e)return fn[e];if(t)return 0;var s=parseInt(i,10),a=s%100,r=(s-a)/100;return r*60+a}function ns(e){var t=mn.exec(_n(e._i)),i;if(t){if(i=hn(t[4],t[3],t[2],t[5],t[6],t[7]),!yn(t[1],i,e))return;e._a=i,e._tzm=gn(t[8],t[9],t[10]),e._d=it.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),g(e).rfc2822=!0}else e._isValid=!1}function vn(e){var t=cn.exec(e._i);if(t!==null){e._d=new Date(+t[1]);return}if(as(e),e._isValid===!1)delete e._isValid;else return;if(ns(e),e._isValid===!1)delete e._isValid;else return;e._strict?e._isValid=!1:f.createFromInputFallback(e)}f.createFromInputFallback=ae("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(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))});function Ge(e,t,i){return e!=null?e:t!=null?t:i}function wn(e){var t=new Date(f.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}function ai(e){var t,i,s=[],a,r,o;if(!e._d){for(a=wn(e),e._w&&e._a[fe]==null&&e._a[we]==null&&kn(e),e._dayOfYear!=null&&(o=Ge(e._a[Q],a[Q]),(e._dayOfYear>et(o)||e._dayOfYear===0)&&(g(e)._overflowDayOfYear=!0),i=it(o,0,e._dayOfYear),e._a[we]=i.getUTCMonth(),e._a[fe]=i.getUTCDate()),t=0;t<3&&e._a[t]==null;++t)e._a[t]=s[t]=a[t];for(;t<7;t++)e._a[t]=s[t]=e._a[t]==null?t===2?1:0:e._a[t];e._a[G]===24&&e._a[le]===0&&e._a[ke]===0&&e._a[Ie]===0&&(e._nextDay=!0,e._a[G]=0),e._d=(e._useUTC?it:ba).apply(null,s),r=e._useUTC?e._d.getUTCDay():e._d.getDay(),e._tzm!=null&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[G]=24),e._w&&typeof e._w.d!="undefined"&&e._w.d!==r&&(g(e).weekdayMismatch=!0)}}function kn(e){var t,i,s,a,r,o,l,u,c;t=e._w,t.GG!=null||t.W!=null||t.E!=null?(r=1,o=4,i=Ge(t.GG,e._a[Q],st(x(),1,4).year),s=Ge(t.W,1),a=Ge(t.E,1),(a<1||a>7)&&(u=!0)):(r=e._locale._week.dow,o=e._locale._week.doy,c=st(x(),r,o),i=Ge(t.gg,e._a[Q],c.year),s=Ge(t.w,c.week),t.d!=null?(a=t.d,(a<0||a>6)&&(u=!0)):t.e!=null?(a=t.e+r,(t.e<0||t.e>6)&&(u=!0)):a=r),s<1||s>De(i,r,o)?g(e)._overflowWeeks=!0:u!=null?g(e)._overflowWeekday=!0:(l=$i(i,s,a,r,o),e._a[Q]=l.year,e._dayOfYear=l.dayOfYear)}f.ISO_8601=function(){};f.RFC_2822=function(){};function ni(e){if(e._f===f.ISO_8601){as(e);return}if(e._f===f.RFC_2822){ns(e);return}e._a=[],g(e).empty=!0;var t=""+e._i,i,s,a,r,o,l=t.length,u=0,c,p;for(a=Hi(e._f,e._locale).match(qt)||[],p=a.length,i=0;i<p;i++)r=a[i],s=(t.match(oa(r,e))||[])[0],s&&(o=t.substr(0,t.indexOf(s)),o.length>0&&g(e).unusedInput.push(o),t=t.slice(t.indexOf(s)+s.length),u+=s.length),Be[r]?(s?g(e).empty=!1:g(e).unusedTokens.push(r),ua(r,s,e)):e._strict&&!s&&g(e).unusedTokens.push(r);g(e).charsLeftOver=l-u,t.length>0&&g(e).unusedInput.push(t),e._a[G]<=12&&g(e).bigHour===!0&&e._a[G]>0&&(g(e).bigHour=void 0),g(e).parsedDateParts=e._a.slice(0),g(e).meridiem=e._meridiem,e._a[G]=Mn(e._locale,e._a[G],e._meridiem),c=g(e).era,c!==null&&(e._a[Q]=e._locale.erasConvertYear(c,e._a[Q])),ai(e),si(e)}function Mn(e,t,i){var s;return i==null?t:e.meridiemHour!=null?e.meridiemHour(t,i):(e.isPM!=null&&(s=e.isPM(i),s&&t<12&&(t+=12),!s&&t===12&&(t=0)),t)}function Dn(e){var t,i,s,a,r,o,l=!1,u=e._f.length;if(u===0){g(e).invalidFormat=!0,e._d=new Date(NaN);return}for(a=0;a<u;a++)r=0,o=!1,t=zt({},e),e._useUTC!=null&&(t._useUTC=e._useUTC),t._f=e._f[a],ni(t),Gt(t)&&(o=!0),r+=g(t).charsLeftOver,r+=g(t).unusedTokens.length*10,g(t).score=r,l?r<s&&(s=r,i=t):(s==null||r<s||o)&&(s=r,i=t,o&&(l=!0));Ce(e,i||t)}function Ln(e){if(!e._d){var t=Zt(e._i),i=t.day===void 0?t.date:t.day;e._a=Ri([t.year,t.month,i,t.hour,t.minute,t.second,t.millisecond],function(s){return s&&parseInt(s,10)}),ai(e)}}function Sn(e){var t=new rt(si(rs(e)));return t._nextDay&&(t.add(1,"d"),t._nextDay=void 0),t}function rs(e){var t=e._i,i=e._f;return e._locale=e._locale||Se(e._l),t===null||i===void 0&&t===""?wt({nullInput:!0}):(typeof t=="string"&&(e._i=t=e._locale.preparse(t)),de(t)?new rt(si(t)):(nt(t)?e._d=t:ue(i)?Dn(e):i?ni(e):bn(e),Gt(e)||(e._d=null),e))}function bn(e){var t=e._i;X(t)?e._d=new Date(f.now()):nt(t)?e._d=new Date(t.valueOf()):typeof t=="string"?vn(e):ue(t)?(e._a=Ri(t.slice(0),function(i){return parseInt(i,10)}),ai(e)):Ue(t)?Ln(e):Le(t)?e._d=new Date(t):f.createFromInputFallback(e)}function os(e,t,i,s,a){var r={};return(t===!0||t===!1)&&(s=t,t=void 0),(i===!0||i===!1)&&(s=i,i=void 0),(Ue(e)&&jt(e)||ue(e)&&e.length===0)&&(e=void 0),r._isAMomentObject=!0,r._useUTC=r._isUTC=a,r._l=i,r._i=e,r._f=t,r._strict=s,Sn(r)}function x(e,t,i,s){return os(e,t,i,s,!1)}var Tn=ae("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=x.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:wt()}),Yn=ae("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=x.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:wt()});function ls(e,t){var i,s;if(t.length===1&&ue(t[0])&&(t=t[0]),!t.length)return x();for(i=t[0],s=1;s<t.length;++s)(!t[s].isValid()||t[s][e](i))&&(i=t[s]);return i}function On(){var e=[].slice.call(arguments,0);return ls("isBefore",e)}function An(){var e=[].slice.call(arguments,0);return ls("isAfter",e)}var Cn=function(){return Date.now?Date.now():+new Date},$e=["year","quarter","month","week","day","hour","minute","second","millisecond"];function En(e){var t,i=!1,s,a=$e.length;for(t in e)if(b(e,t)&&!(U.call($e,t)!==-1&&(e[t]==null||!isNaN(e[t]))))return!1;for(s=0;s<a;++s)if(e[$e[s]]){if(i)return!1;parseFloat(e[$e[s]])!==w(e[$e[s]])&&(i=!0)}return!0}function Nn(){return this._isValid}function xn(){return ce(NaN)}function Yt(e){var t=Zt(e),i=t.year||0,s=t.quarter||0,a=t.month||0,r=t.week||t.isoWeek||0,o=t.day||0,l=t.hour||0,u=t.minute||0,c=t.second||0,p=t.millisecond||0;this._isValid=En(t),this._milliseconds=+p+c*1e3+u*6e4+l*1e3*60*60,this._days=+o+r*7,this._months=+a+s*3+i*12,this._data={},this._locale=Se(),this._bubble()}function ft(e){return e instanceof Yt}function Ut(e){return e<0?Math.round(-1*e)*-1:Math.round(e)}function Wn(e,t,i){var s=Math.min(e.length,t.length),a=Math.abs(e.length-t.length),r=0,o;for(o=0;o<s;o++)w(e[o])!==w(t[o])&&r++;return r+a}function us(e,t){_(e,0,0,function(){var i=this.utcOffset(),s="+";return i<0&&(i=-i,s="-"),s+he(~~(i/60),2)+t+he(~~i%60,2)})}us("Z",":");us("ZZ","");h("Z",St);h("ZZ",St);E(["Z","ZZ"],function(e,t,i){i._useUTC=!0,i._tzm=ri(St,e)});var Pn=/([\+\-]|\d\d)/gi;function ri(e,t){var i=(t||"").match(e),s,a,r;return i===null?null:(s=i[i.length-1]||[],a=(s+"").match(Pn)||["-",0,0],r=+(a[1]*60)+w(a[2]),r===0?0:a[0]==="+"?r:-r)}function oi(e,t){var i,s;return t._isUTC?(i=t.clone(),s=(de(e)||nt(e)?e.valueOf():x(e).valueOf())-i.valueOf(),i._d.setTime(i._d.valueOf()+s),f.updateOffset(i,!1),i):x(e).local()}function Ht(e){return-Math.round(e._d.getTimezoneOffset())}f.updateOffset=function(){};function Fn(e,t,i){var s=this._offset||0,a;if(!this.isValid())return e!=null?this:NaN;if(e!=null){if(typeof e=="string"){if(e=ri(St,e),e===null)return this}else Math.abs(e)<16&&!i&&(e=e*60);return!this._isUTC&&t&&(a=Ht(this)),this._offset=e,this._isUTC=!0,a!=null&&this.add(a,"m"),s!==e&&(!t||this._changeInProgress?ms(this,ce(e-s,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,f.updateOffset(this,!0),this._changeInProgress=null)),this}else return this._isUTC?s:Ht(this)}function Rn(e,t){return e!=null?(typeof e!="string"&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}function In(e){return this.utcOffset(0,e)}function Un(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(Ht(this),"m")),this}function Hn(){if(this._tzm!=null)this.utcOffset(this._tzm,!1,!0);else if(typeof this._i=="string"){var e=ri(na,this._i);e!=null?this.utcOffset(e):this.utcOffset(0,!0)}return this}function Vn(e){return this.isValid()?(e=e?x(e).utcOffset():0,(this.utcOffset()-e)%60===0):!1}function jn(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function Gn(){if(!X(this._isDSTShifted))return this._isDSTShifted;var e={},t;return zt(e,this),e=rs(e),e._a?(t=e._isUTC?pe(e._a):x(e._a),this._isDSTShifted=this.isValid()&&Wn(e._a,t.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function zn(){return this.isValid()?!this._isUTC:!1}function Bn(){return this.isValid()?this._isUTC:!1}function ds(){return this.isValid()?this._isUTC&&this._offset===0:!1}var qn=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Zn=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function ce(e,t){var i=e,s=null,a,r,o;return ft(e)?i={ms:e._milliseconds,d:e._days,M:e._months}:Le(e)||!isNaN(+e)?(i={},t?i[t]=+e:i.milliseconds=+e):(s=qn.exec(e))?(a=s[1]==="-"?-1:1,i={y:0,d:w(s[fe])*a,h:w(s[G])*a,m:w(s[le])*a,s:w(s[ke])*a,ms:w(Ut(s[Ie]*1e3))*a}):(s=Zn.exec(e))?(a=s[1]==="-"?-1:1,i={y:Re(s[2],a),M:Re(s[3],a),w:Re(s[4],a),d:Re(s[5],a),h:Re(s[6],a),m:Re(s[7],a),s:Re(s[8],a)}):i==null?i={}:typeof i=="object"&&("from"in i||"to"in i)&&(o=Jn(x(i.from),x(i.to)),i={},i.ms=o.milliseconds,i.M=o.months),r=new Yt(i),ft(e)&&b(e,"_locale")&&(r._locale=e._locale),ft(e)&&b(e,"_isValid")&&(r._isValid=e._isValid),r}ce.fn=Yt.prototype;ce.invalid=xn;function Re(e,t){var i=e&&parseFloat(e.replace(",","."));return(isNaN(i)?0:i)*t}function vi(e,t){var i={};return i.months=t.month()-e.month()+(t.year()-e.year())*12,e.clone().add(i.months,"M").isAfter(t)&&--i.months,i.milliseconds=+t-+e.clone().add(i.months,"M"),i}function Jn(e,t){var i;return e.isValid()&&t.isValid()?(t=oi(t,e),e.isBefore(t)?i=vi(e,t):(i=vi(t,e),i.milliseconds=-i.milliseconds,i.months=-i.months),i):{milliseconds:0,months:0}}function cs(e,t){return function(i,s){var a,r;return s!==null&&!isNaN(+s)&&(Ui(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),r=i,i=s,s=r),a=ce(i,s),ms(this,a,e),this}}function ms(e,t,i,s){var a=t._milliseconds,r=Ut(t._days),o=Ut(t._months);e.isValid()&&(s=s==null?!0:s,o&&Qi(e,tt(e,"Month")+o*i),r&&qi(e,"Date",tt(e,"Date")+r*i),a&&e._d.setTime(e._d.valueOf()+a*i),s&&f.updateOffset(e,r||o))}var Qn=cs(1,"add"),Kn=cs(-1,"subtract");function fs(e){return typeof e=="string"||e instanceof String}function Xn(e){return de(e)||nt(e)||fs(e)||Le(e)||er(e)||$n(e)||e===null||e===void 0}function $n(e){var t=Ue(e)&&!jt(e),i=!1,s=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],a,r,o=s.length;for(a=0;a<o;a+=1)r=s[a],i=i||b(e,r);return t&&i}function er(e){var t=ue(e),i=!1;return t&&(i=e.filter(function(s){return!Le(s)&&fs(e)}).length===0),t&&i}function tr(e){var t=Ue(e)&&!jt(e),i=!1,s=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"],a,r;for(a=0;a<s.length;a+=1)r=s[a],i=i||b(e,r);return t&&i}function ir(e,t){var i=e.diff(t,"days",!0);return i<-6?"sameElse":i<-1?"lastWeek":i<0?"lastDay":i<1?"sameDay":i<2?"nextDay":i<7?"nextWeek":"sameElse"}function sr(e,t){arguments.length===1&&(arguments[0]?Xn(arguments[0])?(e=arguments[0],t=void 0):tr(arguments[0])&&(t=arguments[0],e=void 0):(e=void 0,t=void 0));var i=e||x(),s=oi(i,this).startOf("day"),a=f.calendarFormat(this,s)||"sameElse",r=t&&(_e(t[a])?t[a].call(this,i):t[a]);return this.format(r||this.localeData().calendar(a,this,x(i)))}function ar(){return new rt(this)}function nr(e,t){var i=de(e)?e:x(e);return this.isValid()&&i.isValid()?(t=ne(t)||"millisecond",t==="millisecond"?this.valueOf()>i.valueOf():i.valueOf()<this.clone().startOf(t).valueOf()):!1}function rr(e,t){var i=de(e)?e:x(e);return this.isValid()&&i.isValid()?(t=ne(t)||"millisecond",t==="millisecond"?this.valueOf()<i.valueOf():this.clone().endOf(t).valueOf()<i.valueOf()):!1}function or(e,t,i,s){var a=de(e)?e:x(e),r=de(t)?t:x(t);return this.isValid()&&a.isValid()&&r.isValid()?(s=s||"()",(s[0]==="("?this.isAfter(a,i):!this.isBefore(a,i))&&(s[1]===")"?this.isBefore(r,i):!this.isAfter(r,i))):!1}function lr(e,t){var i=de(e)?e:x(e),s;return this.isValid()&&i.isValid()?(t=ne(t)||"millisecond",t==="millisecond"?this.valueOf()===i.valueOf():(s=i.valueOf(),this.clone().startOf(t).valueOf()<=s&&s<=this.clone().endOf(t).valueOf())):!1}function ur(e,t){return this.isSame(e,t)||this.isAfter(e,t)}function dr(e,t){return this.isSame(e,t)||this.isBefore(e,t)}function cr(e,t,i){var s,a,r;if(!this.isValid())return NaN;if(s=oi(e,this),!s.isValid())return NaN;switch(a=(s.utcOffset()-this.utcOffset())*6e4,t=ne(t),t){case"year":r=ht(this,s)/12;break;case"month":r=ht(this,s);break;case"quarter":r=ht(this,s)/3;break;case"second":r=(this-s)/1e3;break;case"minute":r=(this-s)/6e4;break;case"hour":r=(this-s)/36e5;break;case"day":r=(this-s-a)/864e5;break;case"week":r=(this-s-a)/6048e5;break;default:r=this-s}return i?r:se(r)}function ht(e,t){if(e.date()<t.date())return-ht(t,e);var i=(t.year()-e.year())*12+(t.month()-e.month()),s=e.clone().add(i,"months"),a,r;return t-s<0?(a=e.clone().add(i-1,"months"),r=(t-s)/(s-a)):(a=e.clone().add(i+1,"months"),r=(t-s)/(a-s)),-(i+r)||0}f.defaultFormat="YYYY-MM-DDTHH:mm:ssZ";f.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";function mr(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function fr(e){if(!this.isValid())return null;var t=e!==!0,i=t?this.clone().utc():this;return i.year()<0||i.year()>9999?mt(i,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):_e(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",mt(i,"Z")):mt(i,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function hr(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e="moment",t="",i,s,a,r;return this.isLocal()||(e=this.utcOffset()===0?"moment.utc":"moment.parseZone",t="Z"),i="["+e+'("]',s=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",a="-MM-DD[T]HH:mm:ss.SSS",r=t+'[")]',this.format(i+s+a+r)}function pr(e){e||(e=this.isUtc()?f.defaultFormatUtc:f.defaultFormat);var t=mt(this,e);return this.localeData().postformat(t)}function _r(e,t){return this.isValid()&&(de(e)&&e.isValid()||x(e).isValid())?ce({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function yr(e){return this.from(x(),e)}function gr(e,t){return this.isValid()&&(de(e)&&e.isValid()||x(e).isValid())?ce({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function vr(e){return this.to(x(),e)}function hs(e){var t;return e===void 0?this._locale._abbr:(t=Se(e),t!=null&&(this._locale=t),this)}var ps=ae("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return e===void 0?this.localeData():this.locale(e)});function _s(){return this._locale}var yt=1e3,qe=60*yt,gt=60*qe,ys=(365*400+97)*24*gt;function Ze(e,t){return(e%t+t)%t}function gs(e,t,i){return e<100&&e>=0?new Date(e+400,t,i)-ys:new Date(e,t,i).valueOf()}function vs(e,t,i){return e<100&&e>=0?Date.UTC(e+400,t,i)-ys:Date.UTC(e,t,i)}function wr(e){var t,i;if(e=ne(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(i=this._isUTC?vs:gs,e){case"year":t=i(this.year(),0,1);break;case"quarter":t=i(this.year(),this.month()-this.month()%3,1);break;case"month":t=i(this.year(),this.month(),1);break;case"week":t=i(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=i(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=i(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=Ze(t+(this._isUTC?0:this.utcOffset()*qe),gt);break;case"minute":t=this._d.valueOf(),t-=Ze(t,qe);break;case"second":t=this._d.valueOf(),t-=Ze(t,yt);break}return this._d.setTime(t),f.updateOffset(this,!0),this}function kr(e){var t,i;if(e=ne(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(i=this._isUTC?vs:gs,e){case"year":t=i(this.year()+1,0,1)-1;break;case"quarter":t=i(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=i(this.year(),this.month()+1,1)-1;break;case"week":t=i(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=i(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=i(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=gt-Ze(t+(this._isUTC?0:this.utcOffset()*qe),gt)-1;break;case"minute":t=this._d.valueOf(),t+=qe-Ze(t,qe)-1;break;case"second":t=this._d.valueOf(),t+=yt-Ze(t,yt)-1;break}return this._d.setTime(t),f.updateOffset(this,!0),this}function Mr(){return this._d.valueOf()-(this._offset||0)*6e4}function Dr(){return Math.floor(this.valueOf()/1e3)}function Lr(){return new Date(this.valueOf())}function Sr(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function br(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}}function Tr(){return this.isValid()?this.toISOString():null}function Yr(){return Gt(this)}function Or(){return Ce({},g(this))}function Ar(){return g(this).overflow}function Cr(){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");h("N",li);h("NN",li);h("NNN",li);h("NNNN",Vr);h("NNNNN",jr);E(["N","NN","NNN","NNNN","NNNNN"],function(e,t,i,s){var a=i._locale.erasParse(e,s,i._strict);a?g(i).era=a:g(i).invalidEra=e});h("y",Je);h("yy",Je);h("yyy",Je);h("yyyy",Je);h("yo",Gr);E(["y","yy","yyy","yyyy"],Q);E(["yo"],function(e,t,i,s){var a;i._locale._eraYearOrdinalRegex&&(a=e.match(i._locale._eraYearOrdinalRegex)),i._locale.eraYearOrdinalParse?t[Q]=i._locale.eraYearOrdinalParse(e,a):t[Q]=parseInt(e,10)});function Er(e,t){var i,s,a,r=this._eras||Se("en")._eras;for(i=0,s=r.length;i<s;++i){switch(typeof r[i].since){case"string":a=f(r[i].since).startOf("day"),r[i].since=a.valueOf();break}switch(typeof r[i].until){case"undefined":r[i].until=1/0;break;case"string":a=f(r[i].until).startOf("day").valueOf(),r[i].until=a.valueOf();break}}return r}function Nr(e,t,i){var s,a,r=this.eras(),o,l,u;for(e=e.toUpperCase(),s=0,a=r.length;s<a;++s)if(o=r[s].name.toUpperCase(),l=r[s].abbr.toUpperCase(),u=r[s].narrow.toUpperCase(),i)switch(t){case"N":case"NN":case"NNN":if(l===e)return r[s];break;case"NNNN":if(o===e)return r[s];break;case"NNNNN":if(u===e)return r[s];break}else if([o,l,u].indexOf(e)>=0)return r[s]}function xr(e,t){var i=e.since<=e.until?1:-1;return t===void 0?f(e.since).year():f(e.since).year()+(t-e.offset)*i}function Wr(){var e,t,i,s=this.localeData().eras();for(e=0,t=s.length;e<t;++e)if(i=this.clone().startOf("day").valueOf(),s[e].since<=i&&i<=s[e].until||s[e].until<=i&&i<=s[e].since)return s[e].name;return""}function Pr(){var e,t,i,s=this.localeData().eras();for(e=0,t=s.length;e<t;++e)if(i=this.clone().startOf("day").valueOf(),s[e].since<=i&&i<=s[e].until||s[e].until<=i&&i<=s[e].since)return s[e].narrow;return""}function Fr(){var e,t,i,s=this.localeData().eras();for(e=0,t=s.length;e<t;++e)if(i=this.clone().startOf("day").valueOf(),s[e].since<=i&&i<=s[e].until||s[e].until<=i&&i<=s[e].since)return s[e].abbr;return""}function Rr(){var e,t,i,s,a=this.localeData().eras();for(e=0,t=a.length;e<t;++e)if(i=a[e].since<=a[e].until?1:-1,s=this.clone().startOf("day").valueOf(),a[e].since<=s&&s<=a[e].until||a[e].until<=s&&s<=a[e].since)return(this.year()-f(a[e].since).year())*i+a[e].offset;return this.year()}function Ir(e){return b(this,"_erasNameRegex")||ui.call(this),e?this._erasNameRegex:this._erasRegex}function Ur(e){return b(this,"_erasAbbrRegex")||ui.call(this),e?this._erasAbbrRegex:this._erasRegex}function Hr(e){return b(this,"_erasNarrowRegex")||ui.call(this),e?this._erasNarrowRegex:this._erasRegex}function li(e,t){return t.erasAbbrRegex(e)}function Vr(e,t){return t.erasNameRegex(e)}function jr(e,t){return t.erasNarrowRegex(e)}function Gr(e,t){return t._eraYearOrdinalRegex||Je}function ui(){var e=[],t=[],i=[],s=[],a,r,o,l,u,c=this.eras();for(a=0,r=c.length;a<r;++a)o=Me(c[a].name),l=Me(c[a].abbr),u=Me(c[a].narrow),t.push(o),e.push(l),i.push(u),s.push(o),s.push(l),s.push(u);this._erasRegex=new RegExp("^("+s.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+t.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+e.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+i.join("|")+")","i")}_(0,["gg",2],0,function(){return this.weekYear()%100});_(0,["GG",2],0,function(){return this.isoWeekYear()%100});function Ot(e,t){_(0,[e,e.length],0,t)}Ot("gggg","weekYear");Ot("ggggg","weekYear");Ot("GGGG","isoWeekYear");Ot("GGGGG","isoWeekYear");h("G",Lt);h("g",Lt);h("GG",W,te);h("gg",W,te);h("GGGG",Qt,Jt);h("gggg",Qt,Jt);h("GGGGG",Dt,kt);h("ggggg",Dt,kt);lt(["gggg","ggggg","GGGG","GGGGG"],function(e,t,i,s){t[s.substr(0,2)]=w(e)});lt(["gg","GG"],function(e,t,i,s){t[s]=f.parseTwoDigitYear(e)});function zr(e){return ws.call(this,e,this.week(),this.weekday()+this.localeData()._week.dow,this.localeData()._week.dow,this.localeData()._week.doy)}function Br(e){return ws.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)}function qr(){return De(this.year(),1,4)}function Zr(){return De(this.isoWeekYear(),1,4)}function Jr(){var e=this.localeData()._week;return De(this.year(),e.dow,e.doy)}function Qr(){var e=this.localeData()._week;return De(this.weekYear(),e.dow,e.doy)}function ws(e,t,i,s,a){var r;return e==null?st(this,s,a).year:(r=De(e,s,a),t>r&&(t=r),Kr.call(this,e,t,i,s,a))}function Kr(e,t,i,s,a){var r=$i(e,t,i,s,a),o=it(r.year,0,r.dayOfYear);return this.year(o.getUTCFullYear()),this.month(o.getUTCMonth()),this.date(o.getUTCDate()),this}_("Q",0,"Qo","quarter");h("Q",Vi);E("Q",function(e,t){t[we]=(w(e)-1)*3});function Xr(e){return e==null?Math.ceil((this.month()+1)/3):this.month((e-1)*3+this.month()%3)}_("D",["DD",2],"Do","date");h("D",W,Qe);h("DD",W,te);h("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient});E(["D","DD"],fe);E("Do",function(e,t){t[fe]=w(e.match(W)[0])});var ks=Ke("Date",!0);_("DDD",["DDDD",3],"DDDo","dayOfYear");h("DDD",Mt);h("DDDD",ji);E(["DDD","DDDD"],function(e,t,i){i._dayOfYear=w(e)});function $r(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return e==null?t:this.add(e-t,"d")}_("m",["mm",2],0,"minute");h("m",W,Kt);h("mm",W,te);E(["m","mm"],le);var eo=Ke("Minutes",!1);_("s",["ss",2],0,"second");h("s",W,Kt);h("ss",W,te);E(["s","ss"],ke);var to=Ke("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});h("S",Mt,Vi);h("SS",Mt,te);h("SSS",Mt,ji);var Ee,Ms;for(Ee="SSSS";Ee.length<=9;Ee+="S")h(Ee,Je);function io(e,t){t[Ie]=w(("0."+e)*1e3)}for(Ee="S";Ee.length<=9;Ee+="S")E(Ee,io);Ms=Ke("Milliseconds",!1);_("z",0,0,"zoneAbbr");_("zz",0,0,"zoneName");function so(){return this._isUTC?"UTC":""}function ao(){return this._isUTC?"Coordinated Universal Time":""}var d=rt.prototype;d.add=Qn;d.calendar=sr;d.clone=ar;d.diff=cr;d.endOf=kr;d.format=pr;d.from=_r;d.fromNow=yr;d.to=gr;d.toNow=vr;d.get=fa;d.invalidAt=Ar;d.isAfter=nr;d.isBefore=rr;d.isBetween=or;d.isSame=lr;d.isSameOrAfter=ur;d.isSameOrBefore=dr;d.isValid=Yr;d.lang=ps;d.locale=hs;d.localeData=_s;d.max=Yn;d.min=Tn;d.parsingFlags=Or;d.set=ha;d.startOf=wr;d.subtract=Kn;d.toArray=Sr;d.toObject=br;d.toDate=Lr;d.toISOString=fr;d.inspect=hr;typeof Symbol!="undefined"&&Symbol.for!=null&&(d[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"});d.toJSON=Tr;d.toString=mr;d.unix=Dr;d.valueOf=Mr;d.creationData=Cr;d.eraName=Wr;d.eraNarrow=Pr;d.eraAbbr=Fr;d.eraYear=Rr;d.year=Bi;d.isLeapYear=ma;d.weekYear=zr;d.isoWeekYear=Br;d.quarter=d.quarters=Xr;d.month=Ki;d.daysInMonth=Da;d.week=d.weeks=Ca;d.isoWeek=d.isoWeeks=Ea;d.weeksInYear=Jr;d.weeksInWeekYear=Qr;d.isoWeeksInYear=qr;d.isoWeeksInISOWeekYear=Zr;d.date=ks;d.day=d.days=za;d.weekday=Ba;d.isoWeekday=qa;d.dayOfYear=$r;d.hour=d.hours=en;d.minute=d.minutes=eo;d.second=d.seconds=to;d.millisecond=d.milliseconds=Ms;d.utcOffset=Fn;d.utc=In;d.local=Un;d.parseZone=Hn;d.hasAlignedHourOffset=Vn;d.isDST=jn;d.isLocal=zn;d.isUtcOffset=Bn;d.isUtc=ds;d.isUTC=ds;d.zoneAbbr=so;d.zoneName=ao;d.dates=ae("dates accessor is deprecated. Use date instead.",ks);d.months=ae("months accessor is deprecated. Use month instead",Ki);d.years=ae("years accessor is deprecated. Use year instead",Bi);d.zone=ae("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",Rn);d.isDSTShifted=ae("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",Gn);function no(e){return x(e*1e3)}function ro(){return x.apply(null,arguments).parseZone()}function Ds(e){return e}var T=Bt.prototype;T.calendar=Gs;T.longDateFormat=Zs;T.invalidDate=Qs;T.ordinal=$s;T.preparse=Ds;T.postformat=Ds;T.relativeTime=ta;T.pastFuture=ia;T.set=Vs;T.eras=Er;T.erasParse=Nr;T.erasConvertYear=xr;T.erasAbbrRegex=Ur;T.erasNameRegex=Ir;T.erasNarrowRegex=Hr;T.months=va;T.monthsShort=wa;T.monthsParse=Ma;T.monthsRegex=Sa;T.monthsShortRegex=La;T.week=Ta;T.firstDayOfYear=Aa;T.firstDayOfWeek=Oa;T.weekdays=Ua;T.weekdaysMin=Va;T.weekdaysShort=Ha;T.weekdaysParse=Ga;T.weekdaysRegex=Za;T.weekdaysShortRegex=Ja;T.weekdaysMinRegex=Qa;T.isPM=Xa;T.meridiem=tn;function vt(e,t,i,s){var a=Se(),r=pe().set(s,t);return a[i](r,e)}function Ls(e,t,i){if(Le(e)&&(t=e,e=void 0),e=e||"",t!=null)return vt(e,t,i,"month");var s,a=[];for(s=0;s<12;s++)a[s]=vt(e,s,i,"month");return a}function di(e,t,i,s){typeof e=="boolean"?(Le(t)&&(i=t,t=void 0),t=t||""):(t=e,i=t,e=!1,Le(t)&&(i=t,t=void 0),t=t||"");var a=Se(),r=e?a._week.dow:0,o,l=[];if(i!=null)return vt(t,(i+r)%7,s,"day");for(o=0;o<7;o++)l[o]=vt(t,(o+r)%7,s,"day");return l}function oo(e,t){return Ls(e,t,"months")}function lo(e,t){return Ls(e,t,"monthsShort")}function uo(e,t,i){return di(e,t,i,"weekdays")}function co(e,t,i){return di(e,t,i,"weekdaysShort")}function mo(e,t,i){return di(e,t,i,"weekdaysMin")}Ne("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(e){var t=e%10,i=w(e%100/10)===1?"th":t===1?"st":t===2?"nd":t===3?"rd":"th";return e+i}});f.lang=ae("moment.lang is deprecated. Use moment.locale instead.",Ne);f.langData=ae("moment.langData is deprecated. Use moment.localeData instead.",Se);var ge=Math.abs;function fo(){var e=this._data;return this._milliseconds=ge(this._milliseconds),this._days=ge(this._days),this._months=ge(this._months),e.milliseconds=ge(e.milliseconds),e.seconds=ge(e.seconds),e.minutes=ge(e.minutes),e.hours=ge(e.hours),e.months=ge(e.months),e.years=ge(e.years),this}function Ss(e,t,i,s){var a=ce(t,i);return e._milliseconds+=s*a._milliseconds,e._days+=s*a._days,e._months+=s*a._months,e._bubble()}function ho(e,t){return Ss(this,e,t,1)}function po(e,t){return Ss(this,e,t,-1)}function wi(e){return e<0?Math.floor(e):Math.ceil(e)}function _o(){var e=this._milliseconds,t=this._days,i=this._months,s=this._data,a,r,o,l,u;return e>=0&&t>=0&&i>=0||e<=0&&t<=0&&i<=0||(e+=wi(Vt(i)+t)*864e5,t=0,i=0),s.milliseconds=e%1e3,a=se(e/1e3),s.seconds=a%60,r=se(a/60),s.minutes=r%60,o=se(r/60),s.hours=o%24,t+=se(o/24),u=se(bs(t)),i+=u,t-=wi(Vt(u)),l=se(i/12),i%=12,s.days=t,s.months=i,s.years=l,this}function bs(e){return e*4800/146097}function Vt(e){return e*146097/4800}function yo(e){if(!this.isValid())return NaN;var t,i,s=this._milliseconds;if(e=ne(e),e==="month"||e==="quarter"||e==="year")switch(t=this._days+s/864e5,i=this._months+bs(t),e){case"month":return i;case"quarter":return i/3;case"year":return i/12}else switch(t=this._days+Math.round(Vt(this._months)),e){case"week":return t/7+s/6048e5;case"day":return t+s/864e5;case"hour":return t*24+s/36e5;case"minute":return t*1440+s/6e4;case"second":return t*86400+s/1e3;case"millisecond":return Math.floor(t*864e5)+s;default:throw new Error("Unknown unit "+e)}}function be(e){return function(){return this.as(e)}}var Ts=be("ms"),go=be("s"),vo=be("m"),wo=be("h"),ko=be("d"),Mo=be("w"),Do=be("M"),Lo=be("Q"),So=be("y"),bo=Ts;function To(){return ce(this)}function Yo(e){return e=ne(e),this.isValid()?this[e+"s"]():NaN}function He(e){return function(){return this.isValid()?this._data[e]:NaN}}var Oo=He("milliseconds"),Ao=He("seconds"),Co=He("minutes"),Eo=He("hours"),No=He("days"),xo=He("months"),Wo=He("years");function Po(){return se(this.days()/7)}var ve=Math.round,ze={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function Fo(e,t,i,s,a){return a.relativeTime(t||1,!!i,e,s)}function Ro(e,t,i,s){var a=ce(e).abs(),r=ve(a.as("s")),o=ve(a.as("m")),l=ve(a.as("h")),u=ve(a.as("d")),c=ve(a.as("M")),p=ve(a.as("w")),A=ve(a.as("y")),v=r<=i.ss&&["s",r]||r<i.s&&["ss",r]||o<=1&&["m"]||o<i.m&&["mm",o]||l<=1&&["h"]||l<i.h&&["hh",l]||u<=1&&["d"]||u<i.d&&["dd",u];return i.w!=null&&(v=v||p<=1&&["w"]||p<i.w&&["ww",p]),v=v||c<=1&&["M"]||c<i.M&&["MM",c]||A<=1&&["y"]||["yy",A],v[2]=t,v[3]=+e>0,v[4]=s,Fo.apply(null,v)}function Io(e){return e===void 0?ve:typeof e=="function"?(ve=e,!0):!1}function Uo(e,t){return ze[e]===void 0?!1:t===void 0?ze[e]:(ze[e]=t,e==="s"&&(ze.ss=t-1),!0)}function Ho(e,t){if(!this.isValid())return this.localeData().invalidDate();var i=!1,s=ze,a,r;return typeof e=="object"&&(t=e,e=!1),typeof e=="boolean"&&(i=e),typeof t=="object"&&(s=Object.assign({},ze,t),t.s!=null&&t.ss==null&&(s.ss=t.s-1)),a=this.localeData(),r=Ro(this,!i,s,a),i&&(r=a.pastFuture(+this,r)),a.postformat(r)}var Wt=Math.abs;function je(e){return(e>0)-(e<0)||+e}function At(){if(!this.isValid())return this.localeData().invalidDate();var e=Wt(this._milliseconds)/1e3,t=Wt(this._days),i=Wt(this._months),s,a,r,o,l=this.asSeconds(),u,c,p,A;return l?(s=se(e/60),a=se(s/60),e%=60,s%=60,r=se(i/12),i%=12,o=e?e.toFixed(3).replace(/\.?0+$/,""):"",u=l<0?"-":"",c=je(this._months)!==je(l)?"-":"",p=je(this._days)!==je(l)?"-":"",A=je(this._milliseconds)!==je(l)?"-":"",u+"P"+(r?c+r+"Y":"")+(i?c+i+"M":"")+(t?p+t+"D":"")+(a||s||e?"T":"")+(a?A+a+"H":"")+(s?A+s+"M":"")+(e?A+o+"S":"")):"P0D"}var S=Yt.prototype;S.isValid=Nn;S.abs=fo;S.add=ho;S.subtract=po;S.as=yo;S.asMilliseconds=Ts;S.asSeconds=go;S.asMinutes=vo;S.asHours=wo;S.asDays=ko;S.asWeeks=Mo;S.asMonths=Do;S.asQuarters=Lo;S.asYears=So;S.valueOf=bo;S._bubble=_o;S.clone=To;S.get=Yo;S.milliseconds=Oo;S.seconds=Ao;S.minutes=Co;S.hours=Eo;S.days=No;S.weeks=Po;S.months=xo;S.years=Wo;S.humanize=Ho;S.toISOString=At;S.toString=At;S.toJSON=At;S.locale=hs;S.localeData=_s;S.toIsoString=ae("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",At);S.lang=ps;_("X",0,0,"unix");_("x",0,0,"valueOf");h("x",Lt);h("X",ra);E("X",function(e,t,i){i._d=new Date(parseFloat(e)*1e3)});E("x",function(e,t,i){i._d=new Date(w(e))});//! moment.js
10
- f.version="2.30.1";Us(x);f.fn=d;f.min=On;f.max=An;f.now=Cn;f.utc=pe;f.unix=no;f.months=oo;f.isDate=nt;f.locale=Ne;f.invalid=wt;f.duration=ce;f.isMoment=de;f.weekdays=uo;f.parseZone=ro;f.localeData=Se;f.isDuration=ft;f.monthsShort=lo;f.weekdaysMin=mo;f.defineLocale=ii;f.updateLocale=rn;f.locales=on;f.weekdaysShort=co;f.normalizeUnits=ne;f.relativeTimeRounding=Io;f.relativeTimeThreshold=Uo;f.calendarFormat=ir;f.prototype=d;f.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"};if(typeof window!="undefined"){let e=function(t){return function(...i){try{return t.apply(this,i)}catch(s){if(s instanceof DOMException&&s.message.includes("has already been used with this registry")||s.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw s}}};customElements.define=e(customElements.define),Promise.resolve().then(()=>require("./PlayerAccountGamingLimitsPopup-Dj9oaoDr.cjs")).then(({default:t})=>{!customElements.get("player-account-gaming-limits-popup")&&customElements.define("player-account-gaming-limits-popup",t.element)})}if(typeof window!="undefined"){let e=function(t){return function(...i){try{return t.apply(this,i)}catch(s){if(s instanceof DOMException&&s.message.includes("has already been used with this registry")||s.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw s}}};customElements.define=e(customElements.define),Promise.resolve().then(()=>require("./PlayerAccountModal-CvmaSkrU.cjs")).then(({default:t})=>{!customElements.get("player-account-modal")&&customElements.define("player-account-modal",t.element)})}if(typeof window!="undefined"){let e=function(t){return function(...i){try{return t.apply(this,i)}catch(s){if(s instanceof DOMException&&s.message.includes("has already been used with this registry")||s.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw s}}};customElements.define=e(customElements.define),Promise.resolve().then(()=>require("./PlayerAccountGamingLimitsConfirmationModal-BTuvM9aB.cjs")).then(t=>t.PlayerAccountGamingLimitsConfirmationModal_ce).then(({default:t})=>{!customElements.get("player-account-gaming-limits-confirmation-modal")&&customElements.define("player-account-gaming-limits-confirmation-modal",t.element)})}function Vo(e){n.append_styles(e,"svelte-bv14kn",".MenuReturnButton{color:var(--emw--pam-color-primary, var(--emw--color-primary, #D0046C));display:inline-flex;align-items:center;column-gap:10px;margin-bottom:10px;cursor:pointer}.MenuReturnButton svg{fill:var(--emw--pam-color-primary, var(--emw--color-primary, #D0046C))}.MyAccountCategoryTitle{font-size:26px;color:var(--emw--pam-color-primary, var(--emw--color-primary, #D0046C));font-weight:400}.MyAccountCategoryTitleMobile{font-size:16px;color:var(--emw--pam-color-primary, var(--emw--color-primary, #D0046C))}.MyAccountCategoryTitleNone{display:none !important}.AccountEditLimitsWrapper{padding:50px;max-width:760px}.AccountEditLimitsWrapper.AccountEditLimitsMobileWrapper{padding:20px}.AccountEditLimitsWrapper.AccountEditLimitsMobileWrapper .AccountEditLimitsControlArea{grid-template-columns:1fr}.AccountEditLimitsWrapper.AccountEditLimitsMobileWrapper .AccountEditLimitsControlArea .AccountEditLimitsSaveButton{width:100%}.AccountEditBackButton{display:inline-block;color:var(--emw--pam-color-primary, var(--emw--color-primary, #D0046C));font-size:26px;font-weight:300;cursor:pointer;margin-bottom:30px}.AccountEditBackButton svg{fill:var(--emw--pam-color-primary, var(--emw--color-primary, #D0046C))}.AccountEditLimitsHeader{display:flex;flex-direction:row;justify-content:space-between;padding-bottom:5px;color:var(--emw--pam-color-primary, var(--emw--color-primary, #D0046C))}.AccountEditLimitsHeader h6{margin:0;font-weight:normal;font-size:16px;line-height:20px}.AccountEditLimitsHeader .AccountEditLimitsIcon{display:flex;width:20px;height:20px;background:transparent;border:1px solid var(--emw--pam-color-primary, var(--emw--color-primary, #D0046C));align-items:center;justify-content:center;border-radius:30px;cursor:pointer}.AccountEditLimitChangePeriodIcon{display:flex;width:20px;height:20px;color:var(--emw--color-gray-300, #58586B);background:transparent;border:1px solid var(--emw--color-gray-300, #58586B);align-items:center;justify-content:center;border-radius:30px;cursor:pointer;margin-right:10px}.AccountEditLimitSuccessfulChangeContainer{background:var(--emw--pam-color-primary, var(--emw--color-primary, #D0046C));border:1px solid var(--emw--color-primary-100, #F1BED9);font-size:16px;font-weight:300;color:var(--emw--pam-typography, var(--emw--color-contrast, #07072A));border-radius:5px;padding:10px}.AccountEditLimitSuccessfulChangeContainer p{margin:0}.AccountEditLimitsIconWrapper{position:relative;display:inline-block;padding:5px 0 5px 15px;cursor:pointer}.AccountEditLimitsTitle{font-size:16px;font-weight:300;color:var(--emw--pam-typography, var(--emw--color-contrast, #07072A));margin:0;padding:10px 0 10px}.AccountEditLimitsExpiryDate{font-size:12px;font-weight:300;color:var(--emw--color-black, #000000)}.AccountEditLimitsContainer{display:grid;grid-template-columns:1fr 1fr;grid-gap:30px;direction:ltr}@media only screen and (max-width: 1024px){.AccountEditLimitsContainer{grid-template-columns:1fr;grid-gap:20px}}.AccountEditField{width:100%;font-size:14px;font-weight:300;color:var(--emw--pam-contrast, var(--emw--color-contrast, #07072A));padding:10px;line-height:16px;background:var(--emw--color-white, #FFFFFF);border:1px solid var(--emw--color-gray-100, #E6E6E6);border-radius:5px;outline:none;transition-duration:0.3s}.AccountEditField:focus,.AccountEditField :focus-within,.AccountEditField :focus-visible,.AccountEditField :visited{border:1px solid var(--emw--pam-color-primary, var(--emw--color-primary, #D0046C));box-shadow:0 0 0 1pt var(--emw--pam-color-primary, var(--emw--color-primary, #D0046C))}.AccountEditFieldCustom{padding:3%}.AccountEditLimitsPeriodChangeContainer{background:var(--emw--color-gray-50, #F9F8F8);border-radius:5px}.AccountEditLimitsPeriodChangeContainer p{max-width:290px;display:-webkit-box;padding:10px 35px 15px 10px;color:var(--emw--color-gray-300, #58586B);font-size:12px;font-weight:300}.AccountEditLimitsPeriodChangeContainer p .AccountEditLimitChangePeriodIcon{font-size:14px;font-weight:400}.AccountEditLimitsControlArea{display:grid;grid-template-columns:1fr 1fr;grid-gap:40px;margin-top:35px}.AccountEditLimitsControlArea .AccountEditLimitsSaveButton{padding:12px;cursor:pointer;border-radius:5px;display:flex;align-items:center;justify-content:center;font-size:18px;color:var(--emw--color-black, #000000);text-transform:uppercase;transition-duration:0.3s;box-sizing:border-box;background:var(--emw--pam-color-primary, var(--emw--color-primary, #D0046C));border:1px solid var(--emw--pam-color-primary, var(--emw--color-primary, #D0046C));color:var(--emw--button-typography, var(--emw--color-white, #FFFFFF))}.AccountEditLimitsControlArea .AccountEditLimitsSaveButton.AccountEditLimitsButtonDisabled{background:var(--emw--pam-color-primary, var(--emw--color-primary, #D0046C));cursor:not-allowed;opacity:0.6}.AccountEditLimitsBox{position:relative}.AccountEditWarningText{position:relative;margin:0}.InvalidInput{color:var(--emw--color-error, var(--emw--color-red, #FD2839));font-size:10px;position:absolute;top:6px;margin:0;line-height:10px}.AccountEditLimitsInputContainer{position:relative;padding-top:10px;width:94%}")}function ki(e,t,i){const s=e.slice();return s[56]=t[i],s[57]=t,s[58]=i,s}function Mi(e,t,i){const s=e.slice();return s[59]=t[i],s}function Di(e,t,i){const s=e.slice();return s[56]=t[i],s[58]=i,s}function jo(e){let t,i,s,a,r,o,l,u,c,p,A=e[18]("back")+"",v,Y,k;return{c(){t=n.element("div"),i=n.svg_element("svg"),s=n.svg_element("defs"),a=n.svg_element("style"),r=n.text(".aaa{fill:var(--emw--pam-color-primary, var(--emw--color-primary, #D0046C));}"),o=n.svg_element("g"),l=n.svg_element("g"),u=n.svg_element("path"),c=n.space(),p=n.element("h2"),v=n.text(A),n.attr(u,"class","aaa"),n.attr(u,"d","M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"),n.attr(u,"transform","translate(15 15) rotate(180)"),n.attr(l,"transform","translate(20 158)"),n.attr(o,"transform","translate(-20 -158)"),n.attr(i,"xmlns","http://www.w3.org/2000/svg"),n.attr(i,"width","15"),n.attr(i,"height","15"),n.attr(i,"viewBox","0 0 15 15"),n.attr(p,"class","MyAccountCategoryTitleMobile"),n.attr(t,"class","MenuReturnButton")},m(M,D){n.insert(M,t,D),n.append(t,i),n.append(i,s),n.append(s,a),n.append(a,r),n.append(i,o),n.append(o,l),n.append(l,u),n.append(t,c),n.append(t,p),n.append(p,v),Y||(k=n.listen(t,"click",e[22]),Y=!0)},p(M,D){D[0]&262144&&A!==(A=M[18]("back")+"")&&n.set_data(v,A)},d(M){M&&n.detach(t),Y=!1,k()}}}function Li(e){let t,i,s=e[18]("success")+"",a;return{c(){t=n.element("div"),i=n.element("p"),a=n.text(s),n.attr(t,"class","AccountEditLimitSuccessfulChangeContainer")},m(r,o){n.insert(r,t,o),n.append(t,i),n.append(i,a)},p(r,o){o[0]&262144&&s!==(s=r[18]("success")+"")&&n.set_data(a,s)},d(r){r&&n.detach(t)}}}function Si(e){let t,i=n.ensure_array_like(e[14]),s=[];for(let a=0;a<i.length;a+=1)s[a]=Ti(Di(e,i,a));return{c(){t=n.element("div");for(let a=0;a<s.length;a+=1)s[a].c();n.attr(t,"class","AccountEditLimitSuccessfulChangeContainer")},m(a,r){n.insert(a,t,r);for(let o=0;o<s.length;o+=1)s[o]&&s[o].m(t,null)},p(a,r){if(r[0]&409600){i=n.ensure_array_like(a[14]);let o;for(o=0;o<i.length;o+=1){const l=Di(a,i,o);s[o]?s[o].p(l,r):(s[o]=Ti(l),s[o].c(),s[o].m(t,null))}for(;o<s.length;o+=1)s[o].d(1);s.length=i.length}},d(a){a&&n.detach(t),n.destroy_each(s,a)}}}function bi(e){let t,i=e[18]("remove")+"",s,a,r=(e[56].expiryDate?f(e[56].expiryDate).format("D/M/YYYY - h:mm A"):"N/A")+"",o;return{c(){t=n.element("p"),s=n.text(i),a=n.space(),o=n.text(r)},m(l,u){n.insert(l,t,u),n.append(t,s),n.append(t,a),n.append(t,o)},p(l,u){u[0]&262144&&i!==(i=l[18]("remove")+"")&&n.set_data(s,i),u[0]&16384&&r!==(r=(l[56].expiryDate?f(l[56].expiryDate).format("D/M/YYYY - h:mm A"):"N/A")+"")&&n.set_data(o,r)},d(l){l&&n.detach(t)}}}function Ti(e){let t,i=e[56].period==e[17][e[58]].period&&bi(e);return{c(){i&&i.c(),t=n.empty()},m(s,a){i&&i.m(s,a),n.insert(s,t,a)},p(s,a){s[56].period==s[17][s[58]].period?i?i.p(s,a):(i=bi(s),i.c(),i.m(t.parentNode,t)):i&&(i.d(1),i=null)},d(s){s&&n.detach(t),i&&i.d(s)}}}function Yi(e){let t,i,s=n.ensure_array_like(e[14]),a=[];for(let r=0;r<s.length;r+=1)a[r]=Pi(ki(e,s,r));return{c(){t=n.element("div"),i=n.element("div");for(let r=0;r<a.length;r+=1)a[r].c();n.attr(i,"class","AccountEditLimitsContainer"),n.attr(t,"class","AccountEditContent")},m(r,o){n.insert(r,t,o),n.append(t,i);for(let l=0;l<a.length;l+=1)a[l]&&a[l].m(i,null)},p(r,o){if(o[0]&18836560){s=n.ensure_array_like(r[14]);let l;for(l=0;l<s.length;l+=1){const u=ki(r,s,l);a[l]?a[l].p(u,o):(a[l]=Pi(u),a[l].c(),a[l].m(i,null))}for(;l<a.length;l+=1)a[l].d(1);a.length=s.length}},d(r){r&&n.detach(t),n.destroy_each(a,r)}}}function Oi(e){let t,i,s=e[18]("noLimit")+"",a,r,o,l,u,c,p,A,v=n.ensure_array_like(e[20].get(e[6])[e[58]].values),Y=[];for(let L=0;L<v.length;L+=1)Y[L]=Ci(Mi(e,v,L));function k(){e[29].call(t,e[58])}let M=e[17][e[58]].amount==="Custom"&&Ei(e),D=e[56].isModified===!0&&Wi(e);return{c(){t=n.element("select"),i=n.element("option"),a=n.text(s);for(let L=0;L<Y.length;L+=1)Y[L].c();o=n.space(),l=n.element("div"),M&&M.c(),u=n.space(),D&&D.c(),c=n.empty(),i.__value="",n.set_input_value(i,i.__value),i.disabled=!0,i.selected=!0,i.hidden=!0,n.attr(t,"class","AccountEditField "+(e[19]?"TimeoutSelectMobile":"")),t.disabled=r=e[56].isModified===!0,e[17][e[58]].amount===void 0&&n.add_render_callback(k),n.attr(l,"class","AccountEditLimitsInputContainer")},m(L,N){n.insert(L,t,N),n.append(t,i),n.append(i,a);for(let C=0;C<Y.length;C+=1)Y[C]&&Y[C].m(t,null);n.select_option(t,e[17][e[58]].amount,!0),n.insert(L,o,N),n.insert(L,l,N),M&&M.m(l,null),n.insert(L,u,N),D&&D.m(L,N),n.insert(L,c,N),p||(A=[n.listen(t,"change",k),n.listen(t,"change",function(){n.is_function(e[24](e[17][e[58]],e[58],!1,e[16]))&&e[24](e[17][e[58]],e[58],!1,e[16]).apply(this,arguments)})],p=!0)},p(L,N){if(e=L,N[0]&262144&&s!==(s=e[18]("noLimit")+"")&&n.set_data(a,s),N[0]&1048656){v=n.ensure_array_like(e[20].get(e[6])[e[58]].values);let C;for(C=0;C<v.length;C+=1){const K=Mi(e,v,C);Y[C]?Y[C].p(K,N):(Y[C]=Ci(K),Y[C].c(),Y[C].m(t,null))}for(;C<Y.length;C+=1)Y[C].d(1);Y.length=v.length}N[0]&16384&&r!==(r=e[56].isModified===!0)&&(t.disabled=r),N[0]&1179712&&n.select_option(t,e[17][e[58]].amount),e[17][e[58]].amount==="Custom"?M?M.p(e,N):(M=Ei(e),M.c(),M.m(l,null)):M&&(M.d(1),M=null),e[56].isModified===!0?D?D.p(e,N):(D=Wi(e),D.c(),D.m(c.parentNode,c)):D&&(D.d(1),D=null)},d(L){L&&(n.detach(t),n.detach(o),n.detach(l),n.detach(u),n.detach(c)),n.destroy_each(Y,L),M&&M.d(),D&&D.d(L),p=!1,n.run_all(A)}}}function Ai(e){let t=(e[6]!=="Time Limit"?e[4]:" minutes")+"",i;return{c(){i=n.text(t)},m(s,a){n.insert(s,i,a)},p(s,a){a[0]&80&&t!==(t=(s[6]!=="Time Limit"?s[4]:" minutes")+"")&&n.set_data(i,t)},d(s){s&&n.detach(i)}}}function Ci(e){let t,i=e[59]+"",s,a,r,o,l=e[59]!=="No limit"&&e[59]!=="Custom"&&Ai(e);return{c(){t=n.element("option"),s=n.text(i),a=n.space(),l&&l.c(),r=n.space(),t.__value=o=e[59],n.set_input_value(t,t.__value)},m(u,c){n.insert(u,t,c),n.append(t,s),n.append(t,a),l&&l.m(t,null),n.append(t,r)},p(u,c){c[0]&64&&i!==(i=u[59]+"")&&n.set_data(s,i),u[59]!=="No limit"&&u[59]!=="Custom"?l?l.p(u,c):(l=Ai(u),l.c(),l.m(t,r)):l&&(l.d(1),l=null),c[0]&64&&o!==(o=u[59])&&(t.__value=o,n.set_input_value(t,t.__value))},d(u){u&&n.detach(t),l&&l.d()}}}function Ei(e){let t;function i(r,o){return r[6]!=="Time Limit"?zo:Go}let s=i(e),a=s(e);return{c(){a.c(),t=n.empty()},m(r,o){a.m(r,o),n.insert(r,t,o)},p(r,o){s===(s=i(r))&&a?a.p(r,o):(a.d(1),a=s(r),a&&(a.c(),a.m(t.parentNode,t)))},d(r){r&&n.detach(t),a.d(r)}}}function Go(e){let t,i,s,a,r,o;function l(){e[31].call(t,e[58])}let u=e[13][e[58]]==1&&Ni(e);return{c(){t=n.element("input"),s=n.space(),a=n.element("p"),u&&u.c(),n.attr(t,"type","number"),n.attr(t,"class","AccountEditField AccountEditFieldCustom"),t.disabled=i=e[56].isModified===!0,n.attr(a,"class","AccountEditWarningText")},m(c,p){n.insert(c,t,p),n.set_input_value(t,e[17][e[58]].value),n.insert(c,s,p),n.insert(c,a,p),u&&u.m(a,null),r||(o=[n.listen(t,"keyup",function(){n.is_function(e[24](e[17][e[58]],e[58],!0,e[16]))&&e[24](e[17][e[58]],e[58],!0,e[16]).apply(this,arguments)}),n.listen(t,"input",l)],r=!0)},p(c,p){e=c,p[0]&16384&&i!==(i=e[56].isModified===!0)&&(t.disabled=i),p[0]&1179712&&n.to_number(t.value)!==e[17][e[58]].value&&n.set_input_value(t,e[17][e[58]].value),e[13][e[58]]==1?u?u.p(e,p):(u=Ni(e),u.c(),u.m(a,null)):u&&(u.d(1),u=null)},d(c){c&&(n.detach(t),n.detach(s),n.detach(a)),u&&u.d(),r=!1,n.run_all(o)}}}function zo(e){let t,i,s,a,r,o;function l(){e[30].call(t,e[58])}let u=e[13][e[58]]==1&&xi(e);return{c(){t=n.element("input"),s=n.space(),a=n.element("p"),u&&u.c(),n.attr(t,"type","number"),n.attr(t,"class","AccountEditField AccountEditFieldCustom"),t.disabled=i=e[56].isModified===!0,n.attr(a,"class","AccountEditWarningText")},m(c,p){n.insert(c,t,p),n.set_input_value(t,e[17][e[58]].value),n.insert(c,s,p),n.insert(c,a,p),u&&u.m(a,null),r||(o=[n.listen(t,"keyup",function(){n.is_function(e[24](e[17][e[58]],e[58],!1,e[16]))&&e[24](e[17][e[58]],e[58],!1,e[16]).apply(this,arguments)}),n.listen(t,"input",l)],r=!0)},p(c,p){e=c,p[0]&16384&&i!==(i=e[56].isModified===!0)&&(t.disabled=i),p[0]&1179712&&n.to_number(t.value)!==e[17][e[58]].value&&n.set_input_value(t,e[17][e[58]].value),e[13][e[58]]==1?u?u.p(e,p):(u=xi(e),u.c(),u.m(a,null)):u&&(u.d(1),u=null)},d(c){c&&(n.detach(t),n.detach(s),n.detach(a)),u&&u.d(),r=!1,n.run_all(o)}}}function Ni(e){let t,i=e[18]("invalidInputMessageTime",{values:{minTime:e[10],maxTime:e[11]}})+"",s;return{c(){t=n.element("p"),s=n.text(i),n.attr(t,"class","InvalidInput")},m(a,r){n.insert(a,t,r),n.append(t,s)},p(a,r){r[0]&265216&&i!==(i=a[18]("invalidInputMessageTime",{values:{minTime:a[10],maxTime:a[11]}})+"")&&n.set_data(s,i)},d(a){a&&n.detach(t)}}}function xi(e){let t,i=e[18]("invalidInputMessageLimit")+"",s;return{c(){t=n.element("p"),s=n.text(i),n.attr(t,"class","InvalidInput")},m(a,r){n.insert(a,t,r),n.append(t,s)},p(a,r){r[0]&262144&&i!==(i=a[18]("invalidInputMessageLimit")+"")&&n.set_data(s,i)},d(a){a&&n.detach(t)}}}function Wi(e){let t,i=e[18]("expirationDate")+"",s,a,r,o=(e[56].expiryDate?f(e[56].expiryDate).format("D/M/YYYY - h:mm A"):"N/A")+"",l,u,c,p,A,v,Y=e[18]("changedLimitTextBefore")+"",k,M,D=(e[56].updateAmount>0?e[56].updateAmount:0)+"",L,N,C=(e[56].minutes!==void 0?" minutes":e[4])+"",K,z,$=e[18]("changedLimitTextAfter")+"",Te;return{c(){t=n.element("p"),s=n.text(i),a=n.space(),r=n.element("span"),l=n.text(o),u=n.space(),c=n.element("div"),p=n.element("p"),A=n.element("span"),A.textContent="i",v=n.element("span"),k=n.text(Y),M=n.space(),L=n.text(D),N=n.space(),K=n.text(C),z=n.text(". "),Te=n.text($),n.attr(t,"class","AccountEditLimitsExpiryDate"),n.attr(A,"class","AccountEditLimitChangePeriodIcon"),n.attr(c,"class","AccountEditLimitsPeriodChangeContainer")},m(P,I){n.insert(P,t,I),n.append(t,s),n.append(t,a),n.append(t,r),n.append(r,l),n.insert(P,u,I),n.insert(P,c,I),n.append(c,p),n.append(p,A),n.append(p,v),n.append(v,k),n.append(v,M),n.append(v,L),n.append(v,N),n.append(v,K),n.append(v,z),n.append(v,Te)},p(P,I){I[0]&262144&&i!==(i=P[18]("expirationDate")+"")&&n.set_data(s,i),I[0]&16384&&o!==(o=(P[56].expiryDate?f(P[56].expiryDate).format("D/M/YYYY - h:mm A"):"N/A")+"")&&n.set_data(l,o),I[0]&262144&&Y!==(Y=P[18]("changedLimitTextBefore")+"")&&n.set_data(k,Y),I[0]&16384&&D!==(D=(P[56].updateAmount>0?P[56].updateAmount:0)+"")&&n.set_data(L,D),I[0]&16400&&C!==(C=(P[56].minutes!==void 0?" minutes":P[4])+"")&&n.set_data(K,C),I[0]&262144&&$!==($=P[18]("changedLimitTextAfter")+"")&&n.set_data(Te,$)},d(P){P&&(n.detach(t),n.detach(u),n.detach(c))}}}function Pi(e){let t,i,s=e[18](""+e[56].period.charAt(0).toLowerCase()+e[56].period.substring(1))+"",a,r,o,l=e[56].period==e[17][e[58]].period&&Oi(e);return{c(){t=n.element("div"),i=n.element("p"),a=n.text(s),r=n.space(),l&&l.c(),o=n.space(),n.attr(i,"class","AccountEditLimitsTitle"),n.attr(t,"class","AccountEditLimitsBox")},m(u,c){n.insert(u,t,c),n.append(t,i),n.append(i,a),n.append(t,r),l&&l.m(t,null),n.append(t,o)},p(u,c){c[0]&278528&&s!==(s=u[18](""+u[56].period.charAt(0).toLowerCase()+u[56].period.substring(1))+"")&&n.set_data(a,s),u[56].period==u[17][u[58]].period?l?l.p(u,c):(l=Oi(u),l.c(),l.m(t,o)):l&&(l.d(1),l=null)},d(u){u&&n.detach(t),l&&l.d()}}}function Bo(e){let t,i,s,a,r,o,l,u,c,p,A,v,Y=e[18]("back")+"",k,M,D,L,N=(e[1]?e[9]:"")+"",C,K,z,$,Te,P,I,me,Ye,xe,H,ie,Oe=e[18]("save")+"",B,We,Pe,Ve,Fe,re,Ae,ut,ye=e[19]&&jo(e),q=e[2]&&Li(e),Z=e[3]&&Si(e),J=e[8]&&Yi(e);return{c(){t=n.element("div"),ye&&ye.c(),i=n.space(),s=n.element("div"),a=n.svg_element("svg"),r=n.svg_element("defs"),o=n.svg_element("style"),l=n.text(".aaa{fill:var(--emw--pam-color-primary, var(--emw--color-primary, #D0046C));}"),u=n.svg_element("g"),c=n.svg_element("g"),p=n.svg_element("path"),A=n.space(),v=n.element("h2"),k=n.text(Y),M=n.space(),D=n.element("div"),L=n.element("h6"),C=n.text(N),K=n.space(),z=n.element("div"),$=n.element("span"),$.textContent="i",Te=n.space(),P=n.element("player-account-gaming-limits-popup"),I=n.space(),q&&q.c(),me=n.space(),Z&&Z.c(),Ye=n.space(),J&&J.c(),xe=n.space(),H=n.element("div"),ie=n.element("button"),B=n.text(Oe),Ve=n.space(),Fe=n.element("player-account-modal"),re=n.element("player-account-gaming-limits-confirmation-modal"),n.attr(p,"class","aaa"),n.attr(p,"d","M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"),n.attr(p,"transform","translate(15 15) rotate(180)"),n.attr(c,"transform","translate(20 158)"),n.attr(u,"transform","translate(-20 -158)"),n.attr(a,"xmlns","http://www.w3.org/2000/svg"),n.attr(a,"width","20"),n.attr(a,"height","20"),n.attr(a,"viewBox","0 0 15 15"),n.attr(v,"class","MyAccountCategoryTitle "+(e[19]?"MyAccountCategoryTitleNone":"")),n.attr(s,"class","MenuReturnButton "+(e[19]?"MyAccountCategoryTitleNone":"")),n.attr($,"class","AccountEditLimitsIcon"),n.set_custom_element_data(P,"showpopup",e[7]),n.set_custom_element_data(P,"lang",e[0]),n.attr(z,"class","AccountEditLimitsIconWrapper"),n.attr(D,"class","AccountEditLimitsHeader"),n.attr(ie,"class",We="AccountEditLimitsSaveButton "+(e[15]?"":"AccountEditLimitsButtonDisabled")),ie.disabled=Pe=!e[15],n.attr(H,"class","AccountEditLimitsControlArea"),n.attr(t,"class","AccountEditLimitsWrapper "+(e[19]?"AccountEditLimitsMobileWrapper":"")),n.set_custom_element_data(re,"modaltext",e[12]),n.set_custom_element_data(re,"modalsource","groupEdit"),n.set_custom_element_data(re,"lang",e[0])},m(O,V){n.insert(O,t,V),ye&&ye.m(t,null),n.append(t,i),n.append(t,s),n.append(s,a),n.append(a,r),n.append(r,o),n.append(o,l),n.append(a,u),n.append(u,c),n.append(c,p),n.append(s,A),n.append(s,v),n.append(v,k),n.append(t,M),n.append(t,D),n.append(D,L),n.append(L,C),n.append(D,K),n.append(D,z),n.append(z,$),n.append(z,Te),n.append(z,P),n.append(t,I),q&&q.m(t,null),n.append(t,me),Z&&Z.m(t,null),n.append(t,Ye),J&&J.m(t,null),n.append(t,xe),n.append(t,H),n.append(H,ie),n.append(ie,B),e[33](t),n.insert(O,Ve,V),n.insert(O,Fe,V),n.append(Fe,re),Ae||(ut=[n.listen(s,"click",e[22]),n.listen($,"click",n.prevent_default(e[21])),n.listen(ie,"click",e[32])],Ae=!0)},p(O,V){O[19]&&ye.p(O,V),V[0]&262144&&Y!==(Y=O[18]("back")+"")&&n.set_data(k,Y),V[0]&514&&N!==(N=(O[1]?O[9]:"")+"")&&n.set_data(C,N),V[0]&128&&n.set_custom_element_data(P,"showpopup",O[7]),V[0]&1&&n.set_custom_element_data(P,"lang",O[0]),O[2]?q?q.p(O,V):(q=Li(O),q.c(),q.m(t,me)):q&&(q.d(1),q=null),O[3]?Z?Z.p(O,V):(Z=Si(O),Z.c(),Z.m(t,Ye)):Z&&(Z.d(1),Z=null),O[8]?J?J.p(O,V):(J=Yi(O),J.c(),J.m(t,xe)):J&&(J.d(1),J=null),V[0]&262144&&Oe!==(Oe=O[18]("save")+"")&&n.set_data(B,Oe),V[0]&32768&&We!==(We="AccountEditLimitsSaveButton "+(O[15]?"":"AccountEditLimitsButtonDisabled"))&&n.attr(ie,"class",We),V[0]&32768&&Pe!==(Pe=!O[15])&&(ie.disabled=Pe),V[0]&4096&&n.set_custom_element_data(re,"modaltext",O[12]),V[0]&1&&n.set_custom_element_data(re,"lang",O[0])},i:n.noop,o:n.noop,d(O){O&&(n.detach(t),n.detach(Ve),n.detach(Fe)),ye&&ye.d(),q&&q.d(),Z&&Z.d(),J&&J.d(),e[33](null),Ae=!1,n.run_all(ut)}}}function qo(e,t,i){let s;n.component_subscribe(e,n.$format,m=>i(18,s=m));let{limitsdata:a=[]}=t,{showsuccessnotification:r=!1}=t,{showdeletenotification:o=!1}=t,{playercurrency:l=""}=t,{lang:u="en"}=t,{separatelimits:c="true"}=t,{clientstyling:p=""}=t,{clientstylingurl:A=""}=t,{translationurl:v=""}=t;const Y=()=>{fetch(v).then(y=>y.json()).then(y=>{Object.keys(y).forEach(F=>{fi(F,y[F])})}).catch(y=>{console.log(y)})};Object.keys(hi).forEach(m=>{fi(m,hi[m])});let k,M,D=!1,L=!1,N="",C=!1,K=0,z=0,$="",Te=window.navigator.userAgent,P=n.getDevice(Te)!=="PC",I=new Array(3).fill(0),me={},Ye=[],xe=[],H=!1,ie=[];const Oe={amount:/^[0-9]{0,8}$/,time:/^[1-9]\d*$/};let B=[{period:"Daily",amount:"No limit",value:0},{period:"Weekly",amount:"No limit",value:0},{period:"Monthly",amount:"No limit",value:0}],We=[{period:"Daily",values:["10000","20000","50000","No limit","Custom"]},{period:"Weekly",values:["10000","50000","100000","No limit","Custom"]},{period:"Monthly",values:["50000","100000","200000","No limit","Custom"]}],Pe=[{period:"Daily",values:["5000","7000","10000","No limit","Custom"]},{period:"Weekly",values:["25000","50000","100000","No limit","Custom"]},{period:"Monthly",values:["125000","175000","200000","No limit","Custom"]}],Ve=[{period:"Daily",values:["5000","7000","10000","No limit","Custom"]},{period:"Weekly",values:["25000","50000","100000","No limit","Custom"]},{period:"Monthly",values:["125000","175000","200000","No limit","Custom"]}],Fe=[{period:"Daily",values:["500","1000","1430","No limit","Custom"]},{period:"Weekly",values:["5000","7000","10000","No limit","Custom"]},{period:"Monthly",values:["20000","30000","43000","No limit","Custom"]}];const re=new Map([["Deposit Limit","depositLimits"],["Time Limit","cumulativeSessionLimits"],["Wagering Limit","wageringLimits"],["Loss Limit","lossLimits"]]),Ae=new Map([["Deposit Limit",We],["Time Limit",Fe],["Wagering Limit",Pe],["Loss Limit",Ve]]),ut=()=>{i(7,D=!0)},ye=()=>{window.postMessage({type:"PlayerAccountBackToLimitsView"},window.location.href)},q=()=>{window.postMessage({type:"ShowLimitsConfirmationModal"},window.location.href)},Z=()=>{if(C){k==="Time Limit"?B.forEach(y=>{if(c=="true"){if(y.value!=0){let F={period:y.period,minutes:y.value};Ye.push(F)}}else me.forEach(F=>{F.period===y.period&&(F.minutes=y.value)})}):B.forEach(y=>{if(c=="true"){if(y.value!=0){let F={period:y.period,amount:y.value,currency:l};Ye.push(F)}}else me.forEach(F=>{F.period===y.period&&(F.amount=y.value,F.currency=l)})});let m={};c=="true"?m={[re.get(k)]:[...Ye]}:m={[re.get(k)]:[...me]},Ye.length=0,window.postMessage({type:"PlayerAccountGamingLimitsUpdate",payload:m,limitsCategory:re.get(k)},window.location.href),i(15,H=!1)}},J=(m,y,F,j)=>{switch(m.amount){case"Custom":if(k=="Time Limit")if(i(10,K=60),m.period==="Daily"?i(11,z=1440):m.period=="Weekly"?i(11,z=10080):i(11,z=43200),m.value&&Oe.time.test(m.value)&&m.value>K&&m.value<=z){i(13,I[y]=0,I);let ee=j[y];m.period==ee.period&&m.value==ee.amount?(i(15,H=!1),O(m,j)):i(15,H=!0)}else i(13,I[y]=1,I),i(15,H=!1);else m.value&&Oe.amount.test(m.value)?(i(13,I[y]=0,I),m.period==j[y].period&&m.value==j[y].amount?(i(15,H=!!H),O(m,j)):i(15,H=!0),c!="true"&&B.forEach(ee=>{ee.value==0&&i(15,H=!1)})):(i(13,I[y]=1,I),i(15,H=!1));break;default:m.period==j[y].period?(O(m,j),i(15,H=m.value!=j[y].amount)):i(15,H=!0),B.forEach(ee=>{(ee.value==0&&c!="true"||ee.amount=="Custom"&&!Oe.amount.test(ee.value.toString()))&&i(15,H=!1)});break}},O=(m,y)=>{let F=JSON.parse(JSON.stringify(y));B.forEach(j=>{F.forEach(ee=>{j.period==m.period&&(j.amount!=="Custom"&&j.amount!=="No limit"?j.value=JSON.parse(j.amount):j.amount==="No limit"&&(j.value=0)),ee.period===j.period&&(ee.amount=j.value)})})},V=(m,y,F,j)=>{let ee=m.values;!y.amount||y.amount==="No limit"?F.forEach(oe=>{oe.period===y.period&&(oe.amount=y.amount,oe.value=0)}):ee.includes(JSON.stringify(y.amount))?F.forEach(oe=>{oe.period===y.period&&(oe.amount=JSON.stringify(y.amount),oe.value=y.amount)}):F.forEach(oe=>{oe.period===y.period&&(oe.amount="Custom",oe.value=y.amount)})},Os=m=>{xe.forEach(y=>{m.period===y.period&&(k==="Time Limit"&&(i(10,K=60),m.period==="Daily"?i(11,z=1440):m.period=="Weekly"?i(11,z=10080):i(11,z=43200)),y.values.indexOf(m.amount)>-1&&(m.amount==="No limit"?m.amount=0:m.amount=JSON.parse(m.amount)))})},As=()=>{ie.forEach(m=>{Os(m)}),me.forEach(m=>{xe.forEach(y=>{m.period===y.period&&V(y,m,B)})})},ci=()=>{let m="";m=k==="Time Limit"?"time limit":k==="Deposit Limit"?"deposit limit":k==="Wagering Limit"?"wagering limit":"loss limit",i(12,$=s("changeLimitsText",{values:{limit:m}}))},Ct=()=>{Rs(u),ci(),i(16,ie=JSON.parse(JSON.stringify(a))),i(14,me=JSON.parse(JSON.stringify(a))),xe=k==="Wagering Limit"?Pe:k==="Loss Limit"?Ve:k==="Deposit Limit"?We:k==="Time Limit"?Fe:[],As()},mi=m=>{if(m.data)switch(m.data.type){case"LanguageChanged":i(0,u=m.data.lang),ci();break;case"EditPlayerLimit":i(6,k=m.data.name),i(9,N=s(k.charAt(0).toLowerCase()+k.substring(1).replace(/\s/g,""))),Ct(),i(8,L=!0);break;case"ClosePlayerAccountGamingLimitsPopup":i(7,D=!1);break;case"GamingLimitsConfirmChanges":C=!0,Z();break;case"CancelGamingLimitsChanges":i(8,L=!1),setTimeout(()=>{i(8,L=!0)},10),Ct(),i(15,H=!1),C=!1;break}},Cs=()=>{let m=document.createElement("style");m.innerHTML=p,M.appendChild(m)},Es=()=>{let m=new URL(A),y=document.createElement("style");fetch(m.href).then(F=>F.text()).then(F=>{y.innerHTML=F,setTimeout(()=>{M.appendChild(y)},1)})};n.onMount(()=>(window.addEventListener("message",mi,!1),()=>{window.removeEventListener("message",mi)}));function Ns(m){B[m].amount=n.select_value(this),i(17,B),i(20,Ae),i(6,k)}function xs(m){B[m].value=n.to_number(this.value),i(17,B),i(20,Ae),i(6,k)}function Ws(m){B[m].value=n.to_number(this.value),i(17,B),i(20,Ae),i(6,k)}const Ps=()=>q();function Fs(m){n.binding_callbacks[m?"unshift":"push"](()=>{M=m,i(5,M)})}return e.$$set=m=>{"limitsdata"in m&&i(1,a=m.limitsdata),"showsuccessnotification"in m&&i(2,r=m.showsuccessnotification),"showdeletenotification"in m&&i(3,o=m.showdeletenotification),"playercurrency"in m&&i(4,l=m.playercurrency),"lang"in m&&i(0,u=m.lang),"separatelimits"in m&&i(25,c=m.separatelimits),"clientstyling"in m&&i(26,p=m.clientstyling),"clientstylingurl"in m&&i(27,A=m.clientstylingurl),"translationurl"in m&&i(28,v=m.translationurl)},e.$$.update=()=>{e.$$.dirty[0]&12&&r&&o&&Ct(),e.$$.dirty[0]&3,e.$$.dirty[0]&67108896&&p&&M&&Cs(),e.$$.dirty[0]&134217760&&A&&M&&Es(),e.$$.dirty[0]&268435456&&v&&Y()},[u,a,r,o,l,M,k,D,L,N,K,z,$,I,me,H,ie,B,s,P,Ae,ut,ye,q,J,c,p,A,v,Ns,xs,Ws,Ps,Fs]}class Ys extends n.SvelteComponent{constructor(t){super(),n.init(this,t,qo,Bo,n.safe_not_equal,{limitsdata:1,showsuccessnotification:2,showdeletenotification:3,playercurrency:4,lang:0,separatelimits:25,clientstyling:26,clientstylingurl:27,translationurl:28},Vo,[-1,-1,-1])}get limitsdata(){return this.$$.ctx[1]}set limitsdata(t){this.$$set({limitsdata:t}),n.flush()}get showsuccessnotification(){return this.$$.ctx[2]}set showsuccessnotification(t){this.$$set({showsuccessnotification:t}),n.flush()}get showdeletenotification(){return this.$$.ctx[3]}set showdeletenotification(t){this.$$set({showdeletenotification:t}),n.flush()}get playercurrency(){return this.$$.ctx[4]}set playercurrency(t){this.$$set({playercurrency:t}),n.flush()}get lang(){return this.$$.ctx[0]}set lang(t){this.$$set({lang:t}),n.flush()}get separatelimits(){return this.$$.ctx[25]}set separatelimits(t){this.$$set({separatelimits:t}),n.flush()}get clientstyling(){return this.$$.ctx[26]}set clientstyling(t){this.$$set({clientstyling:t}),n.flush()}get clientstylingurl(){return this.$$.ctx[27]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),n.flush()}get translationurl(){return this.$$.ctx[28]}set translationurl(t){this.$$set({translationurl:t}),n.flush()}}n.create_custom_element(Ys,{limitsdata:{},showsuccessnotification:{type:"Boolean"},showdeletenotification:{type:"Boolean"},playercurrency:{},lang:{},separatelimits:{},clientstyling:{},clientstylingurl:{},translationurl:{}},[],[],!0);exports.default=Ys;
10
+ f.version="2.30.1";Us(x);f.fn=d;f.min=On;f.max=An;f.now=Cn;f.utc=pe;f.unix=no;f.months=oo;f.isDate=nt;f.locale=Ne;f.invalid=wt;f.duration=ce;f.isMoment=de;f.weekdays=uo;f.parseZone=ro;f.localeData=Se;f.isDuration=ft;f.monthsShort=lo;f.weekdaysMin=mo;f.defineLocale=ii;f.updateLocale=rn;f.locales=on;f.weekdaysShort=co;f.normalizeUnits=ne;f.relativeTimeRounding=Io;f.relativeTimeThreshold=Uo;f.calendarFormat=ir;f.prototype=d;f.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"};if(typeof window!="undefined"){let e=function(t){return function(...i){try{return t.apply(this,i)}catch(s){if(s instanceof DOMException&&s.message.includes("has already been used with this registry")||s.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw s}}};customElements.define=e(customElements.define),Promise.resolve().then(()=>require("./PlayerAccountGamingLimitsPopup-Dj9oaoDr.cjs")).then(({default:t})=>{!customElements.get("player-account-gaming-limits-popup")&&customElements.define("player-account-gaming-limits-popup",t.element)})}if(typeof window!="undefined"){let e=function(t){return function(...i){try{return t.apply(this,i)}catch(s){if(s instanceof DOMException&&s.message.includes("has already been used with this registry")||s.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw s}}};customElements.define=e(customElements.define),Promise.resolve().then(()=>require("./PlayerAccountModal-B2EqJmC-.cjs")).then(({default:t})=>{!customElements.get("player-account-modal")&&customElements.define("player-account-modal",t.element)})}if(typeof window!="undefined"){let e=function(t){return function(...i){try{return t.apply(this,i)}catch(s){if(s instanceof DOMException&&s.message.includes("has already been used with this registry")||s.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw s}}};customElements.define=e(customElements.define),Promise.resolve().then(()=>require("./PlayerAccountGamingLimitsConfirmationModal-BTuvM9aB.cjs")).then(t=>t.PlayerAccountGamingLimitsConfirmationModal_ce).then(({default:t})=>{!customElements.get("player-account-gaming-limits-confirmation-modal")&&customElements.define("player-account-gaming-limits-confirmation-modal",t.element)})}function Vo(e){n.append_styles(e,"svelte-bv14kn",".MenuReturnButton{color:var(--emw--pam-color-primary, var(--emw--color-primary, #D0046C));display:inline-flex;align-items:center;column-gap:10px;margin-bottom:10px;cursor:pointer}.MenuReturnButton svg{fill:var(--emw--pam-color-primary, var(--emw--color-primary, #D0046C))}.MyAccountCategoryTitle{font-size:26px;color:var(--emw--pam-color-primary, var(--emw--color-primary, #D0046C));font-weight:400}.MyAccountCategoryTitleMobile{font-size:16px;color:var(--emw--pam-color-primary, var(--emw--color-primary, #D0046C))}.MyAccountCategoryTitleNone{display:none !important}.AccountEditLimitsWrapper{padding:50px;max-width:760px}.AccountEditLimitsWrapper.AccountEditLimitsMobileWrapper{padding:20px}.AccountEditLimitsWrapper.AccountEditLimitsMobileWrapper .AccountEditLimitsControlArea{grid-template-columns:1fr}.AccountEditLimitsWrapper.AccountEditLimitsMobileWrapper .AccountEditLimitsControlArea .AccountEditLimitsSaveButton{width:100%}.AccountEditBackButton{display:inline-block;color:var(--emw--pam-color-primary, var(--emw--color-primary, #D0046C));font-size:26px;font-weight:300;cursor:pointer;margin-bottom:30px}.AccountEditBackButton svg{fill:var(--emw--pam-color-primary, var(--emw--color-primary, #D0046C))}.AccountEditLimitsHeader{display:flex;flex-direction:row;justify-content:space-between;padding-bottom:5px;color:var(--emw--pam-color-primary, var(--emw--color-primary, #D0046C))}.AccountEditLimitsHeader h6{margin:0;font-weight:normal;font-size:16px;line-height:20px}.AccountEditLimitsHeader .AccountEditLimitsIcon{display:flex;width:20px;height:20px;background:transparent;border:1px solid var(--emw--pam-color-primary, var(--emw--color-primary, #D0046C));align-items:center;justify-content:center;border-radius:30px;cursor:pointer}.AccountEditLimitChangePeriodIcon{display:flex;width:20px;height:20px;color:var(--emw--color-gray-300, #58586B);background:transparent;border:1px solid var(--emw--color-gray-300, #58586B);align-items:center;justify-content:center;border-radius:30px;cursor:pointer;margin-right:10px}.AccountEditLimitSuccessfulChangeContainer{background:var(--emw--pam-color-primary, var(--emw--color-primary, #D0046C));border:1px solid var(--emw--color-primary-100, #F1BED9);font-size:16px;font-weight:300;color:var(--emw--pam-typography, var(--emw--color-contrast, #07072A));border-radius:5px;padding:10px}.AccountEditLimitSuccessfulChangeContainer p{margin:0}.AccountEditLimitsIconWrapper{position:relative;display:inline-block;padding:5px 0 5px 15px;cursor:pointer}.AccountEditLimitsTitle{font-size:16px;font-weight:300;color:var(--emw--pam-typography, var(--emw--color-contrast, #07072A));margin:0;padding:10px 0 10px}.AccountEditLimitsExpiryDate{font-size:12px;font-weight:300;color:var(--emw--color-black, #000000)}.AccountEditLimitsContainer{display:grid;grid-template-columns:1fr 1fr;grid-gap:30px;direction:ltr}@media only screen and (max-width: 1024px){.AccountEditLimitsContainer{grid-template-columns:1fr;grid-gap:20px}}.AccountEditField{width:100%;font-size:14px;font-weight:300;color:var(--emw--pam-contrast, var(--emw--color-contrast, #07072A));padding:10px;line-height:16px;background:var(--emw--color-white, #FFFFFF);border:1px solid var(--emw--color-gray-100, #E6E6E6);border-radius:5px;outline:none;transition-duration:0.3s}.AccountEditField:focus,.AccountEditField :focus-within,.AccountEditField :focus-visible,.AccountEditField :visited{border:1px solid var(--emw--pam-color-primary, var(--emw--color-primary, #D0046C));box-shadow:0 0 0 1pt var(--emw--pam-color-primary, var(--emw--color-primary, #D0046C))}.AccountEditFieldCustom{padding:3%}.AccountEditLimitsPeriodChangeContainer{background:var(--emw--color-gray-50, #F9F8F8);border-radius:5px}.AccountEditLimitsPeriodChangeContainer p{max-width:290px;display:-webkit-box;padding:10px 35px 15px 10px;color:var(--emw--color-gray-300, #58586B);font-size:12px;font-weight:300}.AccountEditLimitsPeriodChangeContainer p .AccountEditLimitChangePeriodIcon{font-size:14px;font-weight:400}.AccountEditLimitsControlArea{display:grid;grid-template-columns:1fr 1fr;grid-gap:40px;margin-top:35px}.AccountEditLimitsControlArea .AccountEditLimitsSaveButton{padding:12px;cursor:pointer;border-radius:5px;display:flex;align-items:center;justify-content:center;font-size:18px;color:var(--emw--color-black, #000000);text-transform:uppercase;transition-duration:0.3s;box-sizing:border-box;background:var(--emw--pam-color-primary, var(--emw--color-primary, #D0046C));border:1px solid var(--emw--pam-color-primary, var(--emw--color-primary, #D0046C));color:var(--emw--button-typography, var(--emw--color-white, #FFFFFF))}.AccountEditLimitsControlArea .AccountEditLimitsSaveButton.AccountEditLimitsButtonDisabled{background:var(--emw--pam-color-primary, var(--emw--color-primary, #D0046C));cursor:not-allowed;opacity:0.6}.AccountEditLimitsBox{position:relative}.AccountEditWarningText{position:relative;margin:0}.InvalidInput{color:var(--emw--color-error, var(--emw--color-red, #FD2839));font-size:10px;position:absolute;top:6px;margin:0;line-height:10px}.AccountEditLimitsInputContainer{position:relative;padding-top:10px;width:94%}")}function ki(e,t,i){const s=e.slice();return s[56]=t[i],s[57]=t,s[58]=i,s}function Mi(e,t,i){const s=e.slice();return s[59]=t[i],s}function Di(e,t,i){const s=e.slice();return s[56]=t[i],s[58]=i,s}function jo(e){let t,i,s,a,r,o,l,u,c,p,A=e[18]("back")+"",v,Y,k;return{c(){t=n.element("div"),i=n.svg_element("svg"),s=n.svg_element("defs"),a=n.svg_element("style"),r=n.text(".aaa{fill:var(--emw--pam-color-primary, var(--emw--color-primary, #D0046C));}"),o=n.svg_element("g"),l=n.svg_element("g"),u=n.svg_element("path"),c=n.space(),p=n.element("h2"),v=n.text(A),n.attr(u,"class","aaa"),n.attr(u,"d","M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"),n.attr(u,"transform","translate(15 15) rotate(180)"),n.attr(l,"transform","translate(20 158)"),n.attr(o,"transform","translate(-20 -158)"),n.attr(i,"xmlns","http://www.w3.org/2000/svg"),n.attr(i,"width","15"),n.attr(i,"height","15"),n.attr(i,"viewBox","0 0 15 15"),n.attr(p,"class","MyAccountCategoryTitleMobile"),n.attr(t,"class","MenuReturnButton")},m(M,D){n.insert(M,t,D),n.append(t,i),n.append(i,s),n.append(s,a),n.append(a,r),n.append(i,o),n.append(o,l),n.append(l,u),n.append(t,c),n.append(t,p),n.append(p,v),Y||(k=n.listen(t,"click",e[22]),Y=!0)},p(M,D){D[0]&262144&&A!==(A=M[18]("back")+"")&&n.set_data(v,A)},d(M){M&&n.detach(t),Y=!1,k()}}}function Li(e){let t,i,s=e[18]("success")+"",a;return{c(){t=n.element("div"),i=n.element("p"),a=n.text(s),n.attr(t,"class","AccountEditLimitSuccessfulChangeContainer")},m(r,o){n.insert(r,t,o),n.append(t,i),n.append(i,a)},p(r,o){o[0]&262144&&s!==(s=r[18]("success")+"")&&n.set_data(a,s)},d(r){r&&n.detach(t)}}}function Si(e){let t,i=n.ensure_array_like(e[14]),s=[];for(let a=0;a<i.length;a+=1)s[a]=Ti(Di(e,i,a));return{c(){t=n.element("div");for(let a=0;a<s.length;a+=1)s[a].c();n.attr(t,"class","AccountEditLimitSuccessfulChangeContainer")},m(a,r){n.insert(a,t,r);for(let o=0;o<s.length;o+=1)s[o]&&s[o].m(t,null)},p(a,r){if(r[0]&409600){i=n.ensure_array_like(a[14]);let o;for(o=0;o<i.length;o+=1){const l=Di(a,i,o);s[o]?s[o].p(l,r):(s[o]=Ti(l),s[o].c(),s[o].m(t,null))}for(;o<s.length;o+=1)s[o].d(1);s.length=i.length}},d(a){a&&n.detach(t),n.destroy_each(s,a)}}}function bi(e){let t,i=e[18]("remove")+"",s,a,r=(e[56].expiryDate?f(e[56].expiryDate).format("D/M/YYYY - h:mm A"):"N/A")+"",o;return{c(){t=n.element("p"),s=n.text(i),a=n.space(),o=n.text(r)},m(l,u){n.insert(l,t,u),n.append(t,s),n.append(t,a),n.append(t,o)},p(l,u){u[0]&262144&&i!==(i=l[18]("remove")+"")&&n.set_data(s,i),u[0]&16384&&r!==(r=(l[56].expiryDate?f(l[56].expiryDate).format("D/M/YYYY - h:mm A"):"N/A")+"")&&n.set_data(o,r)},d(l){l&&n.detach(t)}}}function Ti(e){let t,i=e[56].period==e[17][e[58]].period&&bi(e);return{c(){i&&i.c(),t=n.empty()},m(s,a){i&&i.m(s,a),n.insert(s,t,a)},p(s,a){s[56].period==s[17][s[58]].period?i?i.p(s,a):(i=bi(s),i.c(),i.m(t.parentNode,t)):i&&(i.d(1),i=null)},d(s){s&&n.detach(t),i&&i.d(s)}}}function Yi(e){let t,i,s=n.ensure_array_like(e[14]),a=[];for(let r=0;r<s.length;r+=1)a[r]=Pi(ki(e,s,r));return{c(){t=n.element("div"),i=n.element("div");for(let r=0;r<a.length;r+=1)a[r].c();n.attr(i,"class","AccountEditLimitsContainer"),n.attr(t,"class","AccountEditContent")},m(r,o){n.insert(r,t,o),n.append(t,i);for(let l=0;l<a.length;l+=1)a[l]&&a[l].m(i,null)},p(r,o){if(o[0]&18836560){s=n.ensure_array_like(r[14]);let l;for(l=0;l<s.length;l+=1){const u=ki(r,s,l);a[l]?a[l].p(u,o):(a[l]=Pi(u),a[l].c(),a[l].m(i,null))}for(;l<a.length;l+=1)a[l].d(1);a.length=s.length}},d(r){r&&n.detach(t),n.destroy_each(a,r)}}}function Oi(e){let t,i,s=e[18]("noLimit")+"",a,r,o,l,u,c,p,A,v=n.ensure_array_like(e[20].get(e[6])[e[58]].values),Y=[];for(let L=0;L<v.length;L+=1)Y[L]=Ci(Mi(e,v,L));function k(){e[29].call(t,e[58])}let M=e[17][e[58]].amount==="Custom"&&Ei(e),D=e[56].isModified===!0&&Wi(e);return{c(){t=n.element("select"),i=n.element("option"),a=n.text(s);for(let L=0;L<Y.length;L+=1)Y[L].c();o=n.space(),l=n.element("div"),M&&M.c(),u=n.space(),D&&D.c(),c=n.empty(),i.__value="",n.set_input_value(i,i.__value),i.disabled=!0,i.selected=!0,i.hidden=!0,n.attr(t,"class","AccountEditField "+(e[19]?"TimeoutSelectMobile":"")),t.disabled=r=e[56].isModified===!0,e[17][e[58]].amount===void 0&&n.add_render_callback(k),n.attr(l,"class","AccountEditLimitsInputContainer")},m(L,N){n.insert(L,t,N),n.append(t,i),n.append(i,a);for(let C=0;C<Y.length;C+=1)Y[C]&&Y[C].m(t,null);n.select_option(t,e[17][e[58]].amount,!0),n.insert(L,o,N),n.insert(L,l,N),M&&M.m(l,null),n.insert(L,u,N),D&&D.m(L,N),n.insert(L,c,N),p||(A=[n.listen(t,"change",k),n.listen(t,"change",function(){n.is_function(e[24](e[17][e[58]],e[58],!1,e[16]))&&e[24](e[17][e[58]],e[58],!1,e[16]).apply(this,arguments)})],p=!0)},p(L,N){if(e=L,N[0]&262144&&s!==(s=e[18]("noLimit")+"")&&n.set_data(a,s),N[0]&1048656){v=n.ensure_array_like(e[20].get(e[6])[e[58]].values);let C;for(C=0;C<v.length;C+=1){const K=Mi(e,v,C);Y[C]?Y[C].p(K,N):(Y[C]=Ci(K),Y[C].c(),Y[C].m(t,null))}for(;C<Y.length;C+=1)Y[C].d(1);Y.length=v.length}N[0]&16384&&r!==(r=e[56].isModified===!0)&&(t.disabled=r),N[0]&1179712&&n.select_option(t,e[17][e[58]].amount),e[17][e[58]].amount==="Custom"?M?M.p(e,N):(M=Ei(e),M.c(),M.m(l,null)):M&&(M.d(1),M=null),e[56].isModified===!0?D?D.p(e,N):(D=Wi(e),D.c(),D.m(c.parentNode,c)):D&&(D.d(1),D=null)},d(L){L&&(n.detach(t),n.detach(o),n.detach(l),n.detach(u),n.detach(c)),n.destroy_each(Y,L),M&&M.d(),D&&D.d(L),p=!1,n.run_all(A)}}}function Ai(e){let t=(e[6]!=="Time Limit"?e[4]:" minutes")+"",i;return{c(){i=n.text(t)},m(s,a){n.insert(s,i,a)},p(s,a){a[0]&80&&t!==(t=(s[6]!=="Time Limit"?s[4]:" minutes")+"")&&n.set_data(i,t)},d(s){s&&n.detach(i)}}}function Ci(e){let t,i=e[59]+"",s,a,r,o,l=e[59]!=="No limit"&&e[59]!=="Custom"&&Ai(e);return{c(){t=n.element("option"),s=n.text(i),a=n.space(),l&&l.c(),r=n.space(),t.__value=o=e[59],n.set_input_value(t,t.__value)},m(u,c){n.insert(u,t,c),n.append(t,s),n.append(t,a),l&&l.m(t,null),n.append(t,r)},p(u,c){c[0]&64&&i!==(i=u[59]+"")&&n.set_data(s,i),u[59]!=="No limit"&&u[59]!=="Custom"?l?l.p(u,c):(l=Ai(u),l.c(),l.m(t,r)):l&&(l.d(1),l=null),c[0]&64&&o!==(o=u[59])&&(t.__value=o,n.set_input_value(t,t.__value))},d(u){u&&n.detach(t),l&&l.d()}}}function Ei(e){let t;function i(r,o){return r[6]!=="Time Limit"?zo:Go}let s=i(e),a=s(e);return{c(){a.c(),t=n.empty()},m(r,o){a.m(r,o),n.insert(r,t,o)},p(r,o){s===(s=i(r))&&a?a.p(r,o):(a.d(1),a=s(r),a&&(a.c(),a.m(t.parentNode,t)))},d(r){r&&n.detach(t),a.d(r)}}}function Go(e){let t,i,s,a,r,o;function l(){e[31].call(t,e[58])}let u=e[13][e[58]]==1&&Ni(e);return{c(){t=n.element("input"),s=n.space(),a=n.element("p"),u&&u.c(),n.attr(t,"type","number"),n.attr(t,"class","AccountEditField AccountEditFieldCustom"),t.disabled=i=e[56].isModified===!0,n.attr(a,"class","AccountEditWarningText")},m(c,p){n.insert(c,t,p),n.set_input_value(t,e[17][e[58]].value),n.insert(c,s,p),n.insert(c,a,p),u&&u.m(a,null),r||(o=[n.listen(t,"keyup",function(){n.is_function(e[24](e[17][e[58]],e[58],!0,e[16]))&&e[24](e[17][e[58]],e[58],!0,e[16]).apply(this,arguments)}),n.listen(t,"input",l)],r=!0)},p(c,p){e=c,p[0]&16384&&i!==(i=e[56].isModified===!0)&&(t.disabled=i),p[0]&1179712&&n.to_number(t.value)!==e[17][e[58]].value&&n.set_input_value(t,e[17][e[58]].value),e[13][e[58]]==1?u?u.p(e,p):(u=Ni(e),u.c(),u.m(a,null)):u&&(u.d(1),u=null)},d(c){c&&(n.detach(t),n.detach(s),n.detach(a)),u&&u.d(),r=!1,n.run_all(o)}}}function zo(e){let t,i,s,a,r,o;function l(){e[30].call(t,e[58])}let u=e[13][e[58]]==1&&xi(e);return{c(){t=n.element("input"),s=n.space(),a=n.element("p"),u&&u.c(),n.attr(t,"type","number"),n.attr(t,"class","AccountEditField AccountEditFieldCustom"),t.disabled=i=e[56].isModified===!0,n.attr(a,"class","AccountEditWarningText")},m(c,p){n.insert(c,t,p),n.set_input_value(t,e[17][e[58]].value),n.insert(c,s,p),n.insert(c,a,p),u&&u.m(a,null),r||(o=[n.listen(t,"keyup",function(){n.is_function(e[24](e[17][e[58]],e[58],!1,e[16]))&&e[24](e[17][e[58]],e[58],!1,e[16]).apply(this,arguments)}),n.listen(t,"input",l)],r=!0)},p(c,p){e=c,p[0]&16384&&i!==(i=e[56].isModified===!0)&&(t.disabled=i),p[0]&1179712&&n.to_number(t.value)!==e[17][e[58]].value&&n.set_input_value(t,e[17][e[58]].value),e[13][e[58]]==1?u?u.p(e,p):(u=xi(e),u.c(),u.m(a,null)):u&&(u.d(1),u=null)},d(c){c&&(n.detach(t),n.detach(s),n.detach(a)),u&&u.d(),r=!1,n.run_all(o)}}}function Ni(e){let t,i=e[18]("invalidInputMessageTime",{values:{minTime:e[10],maxTime:e[11]}})+"",s;return{c(){t=n.element("p"),s=n.text(i),n.attr(t,"class","InvalidInput")},m(a,r){n.insert(a,t,r),n.append(t,s)},p(a,r){r[0]&265216&&i!==(i=a[18]("invalidInputMessageTime",{values:{minTime:a[10],maxTime:a[11]}})+"")&&n.set_data(s,i)},d(a){a&&n.detach(t)}}}function xi(e){let t,i=e[18]("invalidInputMessageLimit")+"",s;return{c(){t=n.element("p"),s=n.text(i),n.attr(t,"class","InvalidInput")},m(a,r){n.insert(a,t,r),n.append(t,s)},p(a,r){r[0]&262144&&i!==(i=a[18]("invalidInputMessageLimit")+"")&&n.set_data(s,i)},d(a){a&&n.detach(t)}}}function Wi(e){let t,i=e[18]("expirationDate")+"",s,a,r,o=(e[56].expiryDate?f(e[56].expiryDate).format("D/M/YYYY - h:mm A"):"N/A")+"",l,u,c,p,A,v,Y=e[18]("changedLimitTextBefore")+"",k,M,D=(e[56].updateAmount>0?e[56].updateAmount:0)+"",L,N,C=(e[56].minutes!==void 0?" minutes":e[4])+"",K,z,$=e[18]("changedLimitTextAfter")+"",Te;return{c(){t=n.element("p"),s=n.text(i),a=n.space(),r=n.element("span"),l=n.text(o),u=n.space(),c=n.element("div"),p=n.element("p"),A=n.element("span"),A.textContent="i",v=n.element("span"),k=n.text(Y),M=n.space(),L=n.text(D),N=n.space(),K=n.text(C),z=n.text(". "),Te=n.text($),n.attr(t,"class","AccountEditLimitsExpiryDate"),n.attr(A,"class","AccountEditLimitChangePeriodIcon"),n.attr(c,"class","AccountEditLimitsPeriodChangeContainer")},m(P,I){n.insert(P,t,I),n.append(t,s),n.append(t,a),n.append(t,r),n.append(r,l),n.insert(P,u,I),n.insert(P,c,I),n.append(c,p),n.append(p,A),n.append(p,v),n.append(v,k),n.append(v,M),n.append(v,L),n.append(v,N),n.append(v,K),n.append(v,z),n.append(v,Te)},p(P,I){I[0]&262144&&i!==(i=P[18]("expirationDate")+"")&&n.set_data(s,i),I[0]&16384&&o!==(o=(P[56].expiryDate?f(P[56].expiryDate).format("D/M/YYYY - h:mm A"):"N/A")+"")&&n.set_data(l,o),I[0]&262144&&Y!==(Y=P[18]("changedLimitTextBefore")+"")&&n.set_data(k,Y),I[0]&16384&&D!==(D=(P[56].updateAmount>0?P[56].updateAmount:0)+"")&&n.set_data(L,D),I[0]&16400&&C!==(C=(P[56].minutes!==void 0?" minutes":P[4])+"")&&n.set_data(K,C),I[0]&262144&&$!==($=P[18]("changedLimitTextAfter")+"")&&n.set_data(Te,$)},d(P){P&&(n.detach(t),n.detach(u),n.detach(c))}}}function Pi(e){let t,i,s=e[18](""+e[56].period.charAt(0).toLowerCase()+e[56].period.substring(1))+"",a,r,o,l=e[56].period==e[17][e[58]].period&&Oi(e);return{c(){t=n.element("div"),i=n.element("p"),a=n.text(s),r=n.space(),l&&l.c(),o=n.space(),n.attr(i,"class","AccountEditLimitsTitle"),n.attr(t,"class","AccountEditLimitsBox")},m(u,c){n.insert(u,t,c),n.append(t,i),n.append(i,a),n.append(t,r),l&&l.m(t,null),n.append(t,o)},p(u,c){c[0]&278528&&s!==(s=u[18](""+u[56].period.charAt(0).toLowerCase()+u[56].period.substring(1))+"")&&n.set_data(a,s),u[56].period==u[17][u[58]].period?l?l.p(u,c):(l=Oi(u),l.c(),l.m(t,o)):l&&(l.d(1),l=null)},d(u){u&&n.detach(t),l&&l.d()}}}function Bo(e){let t,i,s,a,r,o,l,u,c,p,A,v,Y=e[18]("back")+"",k,M,D,L,N=(e[1]?e[9]:"")+"",C,K,z,$,Te,P,I,me,Ye,xe,H,ie,Oe=e[18]("save")+"",B,We,Pe,Ve,Fe,re,Ae,ut,ye=e[19]&&jo(e),q=e[2]&&Li(e),Z=e[3]&&Si(e),J=e[8]&&Yi(e);return{c(){t=n.element("div"),ye&&ye.c(),i=n.space(),s=n.element("div"),a=n.svg_element("svg"),r=n.svg_element("defs"),o=n.svg_element("style"),l=n.text(".aaa{fill:var(--emw--pam-color-primary, var(--emw--color-primary, #D0046C));}"),u=n.svg_element("g"),c=n.svg_element("g"),p=n.svg_element("path"),A=n.space(),v=n.element("h2"),k=n.text(Y),M=n.space(),D=n.element("div"),L=n.element("h6"),C=n.text(N),K=n.space(),z=n.element("div"),$=n.element("span"),$.textContent="i",Te=n.space(),P=n.element("player-account-gaming-limits-popup"),I=n.space(),q&&q.c(),me=n.space(),Z&&Z.c(),Ye=n.space(),J&&J.c(),xe=n.space(),H=n.element("div"),ie=n.element("button"),B=n.text(Oe),Ve=n.space(),Fe=n.element("player-account-modal"),re=n.element("player-account-gaming-limits-confirmation-modal"),n.attr(p,"class","aaa"),n.attr(p,"d","M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"),n.attr(p,"transform","translate(15 15) rotate(180)"),n.attr(c,"transform","translate(20 158)"),n.attr(u,"transform","translate(-20 -158)"),n.attr(a,"xmlns","http://www.w3.org/2000/svg"),n.attr(a,"width","20"),n.attr(a,"height","20"),n.attr(a,"viewBox","0 0 15 15"),n.attr(v,"class","MyAccountCategoryTitle "+(e[19]?"MyAccountCategoryTitleNone":"")),n.attr(s,"class","MenuReturnButton "+(e[19]?"MyAccountCategoryTitleNone":"")),n.attr($,"class","AccountEditLimitsIcon"),n.set_custom_element_data(P,"showpopup",e[7]),n.set_custom_element_data(P,"lang",e[0]),n.attr(z,"class","AccountEditLimitsIconWrapper"),n.attr(D,"class","AccountEditLimitsHeader"),n.attr(ie,"class",We="AccountEditLimitsSaveButton "+(e[15]?"":"AccountEditLimitsButtonDisabled")),ie.disabled=Pe=!e[15],n.attr(H,"class","AccountEditLimitsControlArea"),n.attr(t,"class","AccountEditLimitsWrapper "+(e[19]?"AccountEditLimitsMobileWrapper":"")),n.set_custom_element_data(re,"modaltext",e[12]),n.set_custom_element_data(re,"modalsource","groupEdit"),n.set_custom_element_data(re,"lang",e[0])},m(O,V){n.insert(O,t,V),ye&&ye.m(t,null),n.append(t,i),n.append(t,s),n.append(s,a),n.append(a,r),n.append(r,o),n.append(o,l),n.append(a,u),n.append(u,c),n.append(c,p),n.append(s,A),n.append(s,v),n.append(v,k),n.append(t,M),n.append(t,D),n.append(D,L),n.append(L,C),n.append(D,K),n.append(D,z),n.append(z,$),n.append(z,Te),n.append(z,P),n.append(t,I),q&&q.m(t,null),n.append(t,me),Z&&Z.m(t,null),n.append(t,Ye),J&&J.m(t,null),n.append(t,xe),n.append(t,H),n.append(H,ie),n.append(ie,B),e[33](t),n.insert(O,Ve,V),n.insert(O,Fe,V),n.append(Fe,re),Ae||(ut=[n.listen(s,"click",e[22]),n.listen($,"click",n.prevent_default(e[21])),n.listen(ie,"click",e[32])],Ae=!0)},p(O,V){O[19]&&ye.p(O,V),V[0]&262144&&Y!==(Y=O[18]("back")+"")&&n.set_data(k,Y),V[0]&514&&N!==(N=(O[1]?O[9]:"")+"")&&n.set_data(C,N),V[0]&128&&n.set_custom_element_data(P,"showpopup",O[7]),V[0]&1&&n.set_custom_element_data(P,"lang",O[0]),O[2]?q?q.p(O,V):(q=Li(O),q.c(),q.m(t,me)):q&&(q.d(1),q=null),O[3]?Z?Z.p(O,V):(Z=Si(O),Z.c(),Z.m(t,Ye)):Z&&(Z.d(1),Z=null),O[8]?J?J.p(O,V):(J=Yi(O),J.c(),J.m(t,xe)):J&&(J.d(1),J=null),V[0]&262144&&Oe!==(Oe=O[18]("save")+"")&&n.set_data(B,Oe),V[0]&32768&&We!==(We="AccountEditLimitsSaveButton "+(O[15]?"":"AccountEditLimitsButtonDisabled"))&&n.attr(ie,"class",We),V[0]&32768&&Pe!==(Pe=!O[15])&&(ie.disabled=Pe),V[0]&4096&&n.set_custom_element_data(re,"modaltext",O[12]),V[0]&1&&n.set_custom_element_data(re,"lang",O[0])},i:n.noop,o:n.noop,d(O){O&&(n.detach(t),n.detach(Ve),n.detach(Fe)),ye&&ye.d(),q&&q.d(),Z&&Z.d(),J&&J.d(),e[33](null),Ae=!1,n.run_all(ut)}}}function qo(e,t,i){let s;n.component_subscribe(e,n.$format,m=>i(18,s=m));let{limitsdata:a=[]}=t,{showsuccessnotification:r=!1}=t,{showdeletenotification:o=!1}=t,{playercurrency:l=""}=t,{lang:u="en"}=t,{separatelimits:c="true"}=t,{clientstyling:p=""}=t,{clientstylingurl:A=""}=t,{translationurl:v=""}=t;const Y=()=>{fetch(v).then(y=>y.json()).then(y=>{Object.keys(y).forEach(F=>{fi(F,y[F])})}).catch(y=>{console.log(y)})};Object.keys(hi).forEach(m=>{fi(m,hi[m])});let k,M,D=!1,L=!1,N="",C=!1,K=0,z=0,$="",Te=window.navigator.userAgent,P=n.getDevice(Te)!=="PC",I=new Array(3).fill(0),me={},Ye=[],xe=[],H=!1,ie=[];const Oe={amount:/^[0-9]{0,8}$/,time:/^[1-9]\d*$/};let B=[{period:"Daily",amount:"No limit",value:0},{period:"Weekly",amount:"No limit",value:0},{period:"Monthly",amount:"No limit",value:0}],We=[{period:"Daily",values:["10000","20000","50000","No limit","Custom"]},{period:"Weekly",values:["10000","50000","100000","No limit","Custom"]},{period:"Monthly",values:["50000","100000","200000","No limit","Custom"]}],Pe=[{period:"Daily",values:["5000","7000","10000","No limit","Custom"]},{period:"Weekly",values:["25000","50000","100000","No limit","Custom"]},{period:"Monthly",values:["125000","175000","200000","No limit","Custom"]}],Ve=[{period:"Daily",values:["5000","7000","10000","No limit","Custom"]},{period:"Weekly",values:["25000","50000","100000","No limit","Custom"]},{period:"Monthly",values:["125000","175000","200000","No limit","Custom"]}],Fe=[{period:"Daily",values:["500","1000","1430","No limit","Custom"]},{period:"Weekly",values:["5000","7000","10000","No limit","Custom"]},{period:"Monthly",values:["20000","30000","43000","No limit","Custom"]}];const re=new Map([["Deposit Limit","depositLimits"],["Time Limit","cumulativeSessionLimits"],["Wagering Limit","wageringLimits"],["Loss Limit","lossLimits"]]),Ae=new Map([["Deposit Limit",We],["Time Limit",Fe],["Wagering Limit",Pe],["Loss Limit",Ve]]),ut=()=>{i(7,D=!0)},ye=()=>{window.postMessage({type:"PlayerAccountBackToLimitsView"},window.location.href)},q=()=>{window.postMessage({type:"ShowLimitsConfirmationModal"},window.location.href)},Z=()=>{if(C){k==="Time Limit"?B.forEach(y=>{if(c=="true"){if(y.value!=0){let F={period:y.period,minutes:y.value};Ye.push(F)}}else me.forEach(F=>{F.period===y.period&&(F.minutes=y.value)})}):B.forEach(y=>{if(c=="true"){if(y.value!=0){let F={period:y.period,amount:y.value,currency:l};Ye.push(F)}}else me.forEach(F=>{F.period===y.period&&(F.amount=y.value,F.currency=l)})});let m={};c=="true"?m={[re.get(k)]:[...Ye]}:m={[re.get(k)]:[...me]},Ye.length=0,window.postMessage({type:"PlayerAccountGamingLimitsUpdate",payload:m,limitsCategory:re.get(k)},window.location.href),i(15,H=!1)}},J=(m,y,F,j)=>{switch(m.amount){case"Custom":if(k=="Time Limit")if(i(10,K=60),m.period==="Daily"?i(11,z=1440):m.period=="Weekly"?i(11,z=10080):i(11,z=43200),m.value&&Oe.time.test(m.value)&&m.value>K&&m.value<=z){i(13,I[y]=0,I);let ee=j[y];m.period==ee.period&&m.value==ee.amount?(i(15,H=!1),O(m,j)):i(15,H=!0)}else i(13,I[y]=1,I),i(15,H=!1);else m.value&&Oe.amount.test(m.value)?(i(13,I[y]=0,I),m.period==j[y].period&&m.value==j[y].amount?(i(15,H=!!H),O(m,j)):i(15,H=!0),c!="true"&&B.forEach(ee=>{ee.value==0&&i(15,H=!1)})):(i(13,I[y]=1,I),i(15,H=!1));break;default:m.period==j[y].period?(O(m,j),i(15,H=m.value!=j[y].amount)):i(15,H=!0),B.forEach(ee=>{(ee.value==0&&c!="true"||ee.amount=="Custom"&&!Oe.amount.test(ee.value.toString()))&&i(15,H=!1)});break}},O=(m,y)=>{let F=JSON.parse(JSON.stringify(y));B.forEach(j=>{F.forEach(ee=>{j.period==m.period&&(j.amount!=="Custom"&&j.amount!=="No limit"?j.value=JSON.parse(j.amount):j.amount==="No limit"&&(j.value=0)),ee.period===j.period&&(ee.amount=j.value)})})},V=(m,y,F,j)=>{let ee=m.values;!y.amount||y.amount==="No limit"?F.forEach(oe=>{oe.period===y.period&&(oe.amount=y.amount,oe.value=0)}):ee.includes(JSON.stringify(y.amount))?F.forEach(oe=>{oe.period===y.period&&(oe.amount=JSON.stringify(y.amount),oe.value=y.amount)}):F.forEach(oe=>{oe.period===y.period&&(oe.amount="Custom",oe.value=y.amount)})},Os=m=>{xe.forEach(y=>{m.period===y.period&&(k==="Time Limit"&&(i(10,K=60),m.period==="Daily"?i(11,z=1440):m.period=="Weekly"?i(11,z=10080):i(11,z=43200)),y.values.indexOf(m.amount)>-1&&(m.amount==="No limit"?m.amount=0:m.amount=JSON.parse(m.amount)))})},As=()=>{ie.forEach(m=>{Os(m)}),me.forEach(m=>{xe.forEach(y=>{m.period===y.period&&V(y,m,B)})})},ci=()=>{let m="";m=k==="Time Limit"?"time limit":k==="Deposit Limit"?"deposit limit":k==="Wagering Limit"?"wagering limit":"loss limit",i(12,$=s("changeLimitsText",{values:{limit:m}}))},Ct=()=>{Rs(u),ci(),i(16,ie=JSON.parse(JSON.stringify(a))),i(14,me=JSON.parse(JSON.stringify(a))),xe=k==="Wagering Limit"?Pe:k==="Loss Limit"?Ve:k==="Deposit Limit"?We:k==="Time Limit"?Fe:[],As()},mi=m=>{if(m.data)switch(m.data.type){case"LanguageChanged":i(0,u=m.data.lang),ci();break;case"EditPlayerLimit":i(6,k=m.data.name),i(9,N=s(k.charAt(0).toLowerCase()+k.substring(1).replace(/\s/g,""))),Ct(),i(8,L=!0);break;case"ClosePlayerAccountGamingLimitsPopup":i(7,D=!1);break;case"GamingLimitsConfirmChanges":C=!0,Z();break;case"CancelGamingLimitsChanges":i(8,L=!1),setTimeout(()=>{i(8,L=!0)},10),Ct(),i(15,H=!1),C=!1;break}},Cs=()=>{let m=document.createElement("style");m.innerHTML=p,M.appendChild(m)},Es=()=>{let m=new URL(A),y=document.createElement("style");fetch(m.href).then(F=>F.text()).then(F=>{y.innerHTML=F,setTimeout(()=>{M.appendChild(y)},1)})};n.onMount(()=>(window.addEventListener("message",mi,!1),()=>{window.removeEventListener("message",mi)}));function Ns(m){B[m].amount=n.select_value(this),i(17,B),i(20,Ae),i(6,k)}function xs(m){B[m].value=n.to_number(this.value),i(17,B),i(20,Ae),i(6,k)}function Ws(m){B[m].value=n.to_number(this.value),i(17,B),i(20,Ae),i(6,k)}const Ps=()=>q();function Fs(m){n.binding_callbacks[m?"unshift":"push"](()=>{M=m,i(5,M)})}return e.$$set=m=>{"limitsdata"in m&&i(1,a=m.limitsdata),"showsuccessnotification"in m&&i(2,r=m.showsuccessnotification),"showdeletenotification"in m&&i(3,o=m.showdeletenotification),"playercurrency"in m&&i(4,l=m.playercurrency),"lang"in m&&i(0,u=m.lang),"separatelimits"in m&&i(25,c=m.separatelimits),"clientstyling"in m&&i(26,p=m.clientstyling),"clientstylingurl"in m&&i(27,A=m.clientstylingurl),"translationurl"in m&&i(28,v=m.translationurl)},e.$$.update=()=>{e.$$.dirty[0]&12&&r&&o&&Ct(),e.$$.dirty[0]&3,e.$$.dirty[0]&67108896&&p&&M&&Cs(),e.$$.dirty[0]&134217760&&A&&M&&Es(),e.$$.dirty[0]&268435456&&v&&Y()},[u,a,r,o,l,M,k,D,L,N,K,z,$,I,me,H,ie,B,s,P,Ae,ut,ye,q,J,c,p,A,v,Ns,xs,Ws,Ps,Fs]}class Ys extends n.SvelteComponent{constructor(t){super(),n.init(this,t,qo,Bo,n.safe_not_equal,{limitsdata:1,showsuccessnotification:2,showdeletenotification:3,playercurrency:4,lang:0,separatelimits:25,clientstyling:26,clientstylingurl:27,translationurl:28},Vo,[-1,-1,-1])}get limitsdata(){return this.$$.ctx[1]}set limitsdata(t){this.$$set({limitsdata:t}),n.flush()}get showsuccessnotification(){return this.$$.ctx[2]}set showsuccessnotification(t){this.$$set({showsuccessnotification:t}),n.flush()}get showdeletenotification(){return this.$$.ctx[3]}set showdeletenotification(t){this.$$set({showdeletenotification:t}),n.flush()}get playercurrency(){return this.$$.ctx[4]}set playercurrency(t){this.$$set({playercurrency:t}),n.flush()}get lang(){return this.$$.ctx[0]}set lang(t){this.$$set({lang:t}),n.flush()}get separatelimits(){return this.$$.ctx[25]}set separatelimits(t){this.$$set({separatelimits:t}),n.flush()}get clientstyling(){return this.$$.ctx[26]}set clientstyling(t){this.$$set({clientstyling:t}),n.flush()}get clientstylingurl(){return this.$$.ctx[27]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),n.flush()}get translationurl(){return this.$$.ctx[28]}set translationurl(t){this.$$set({translationurl:t}),n.flush()}}n.create_custom_element(Ys,{limitsdata:{},showsuccessnotification:{type:"Boolean"},showdeletenotification:{type:"Boolean"},playercurrency:{},lang:{},separatelimits:{},clientstyling:{},clientstylingurl:{},translationurl:{}},[],[],!0);exports.default=Ys;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./PlayerAccountGamingLimitsConfirmationModal-BTuvM9aB.cjs");function y(n,{delay:e=0,duration:l=400,easing:i=t.identity}={}){const s=+getComputedStyle(n).opacity;return{delay:e,duration:l,easing:i,css:r=>`opacity: ${r*s}`}}function k(n){t.append_styles(n,"svelte-126fglp","*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}.ModalWindow{display:flex;position:fixed;align-items:center;justify-content:center;width:100%;height:100%;z-index:300;top:0;left:0}")}function w(n){let e,l,i,s,r;const f=n[8].default,u=t.create_slot(f,n,n[7],null);return{c(){e=t.element("div"),l=t.element("div"),i=t.element("div"),u&&u.c(),t.attr(i,"class","ModalContainer"),t.attr(l,"class","ModalWindow"),t.attr(l,"id","Modal")},m(a,c){t.insert(a,e,c),t.append(e,l),t.append(l,i),u&&u.m(i,null),n[9](l),n[10](e),r=!0},p(a,c){n=a,u&&u.p&&(!r||c&128)&&t.update_slot_base(u,f,n,n[7],r?t.get_slot_changes(f,n[7],c,null):t.get_all_dirty_from_scope(n[7]),null)},i(a){r||(t.transition_in(u,a),a&&t.add_render_callback(()=>{r&&(s||(s=t.create_bidirectional_transition(l,y,{transitionDuration:n[1]},!0)),s.run(1))}),r=!0)},o(a){t.transition_out(u,a),a&&(s||(s=t.create_bidirectional_transition(l,y,{transitionDuration:n[1]},!1)),s.run(0)),r=!1},d(a){a&&t.detach(e),u&&u.d(a),n[9](null),a&&s&&s.end(),n[10](null)}}}function S(n){let e,l,i=n[0]&&w(n);return{c(){i&&i.c(),e=t.empty()},m(s,r){i&&i.m(s,r),t.insert(s,e,r),l=!0},p(s,[r]){s[0]?i?(i.p(s,r),r&1&&t.transition_in(i,1)):(i=w(s),i.c(),t.transition_in(i,1),i.m(e.parentNode,e)):i&&(t.group_outros(),t.transition_out(i,1,1,()=>{i=null}),t.check_outros())},i(s){l||(t.transition_in(i),l=!0)},o(s){t.transition_out(i),l=!1},d(s){s&&t.detach(e),i&&i.d(s)}}}function L(n,e,l){let{$$slots:i={},$$scope:s}=e,{show:r=!1}=e,{duration:f=350}=e,{clientstyling:u=""}=e,{clientstylingurl:a=""}=e,{showmodaleventname:c="ShowLimitsConfirmationModal"}=e,d,m;const _=o=>{switch(o.data.type){case"ModalClosed":l(0,r=!1);break;case c:l(0,r=!0),window.postMessage({type:"DisableScroll"},window.location.href);break}},M=()=>{let o=document.createElement("style");o.innerHTML=u,d.appendChild(o)},v=()=>{let o=new URL(a),g=document.createElement("style");fetch(o.href).then(h=>h.text()).then(h=>{g.innerHTML=h,setTimeout(()=>{d.appendChild(g)},1)})};t.onMount(()=>(window.addEventListener("message",_,!1),()=>{window.removeEventListener("message",_)}));function C(o){t.binding_callbacks[o?"unshift":"push"](()=>{m=o,l(3,m)})}function p(o){t.binding_callbacks[o?"unshift":"push"](()=>{d=o,l(2,d)})}return n.$$set=o=>{"show"in o&&l(0,r=o.show),"duration"in o&&l(1,f=o.duration),"clientstyling"in o&&l(4,u=o.clientstyling),"clientstylingurl"in o&&l(5,a=o.clientstylingurl),"showmodaleventname"in o&&l(6,c=o.showmodaleventname),"$$scope"in o&&l(7,s=o.$$scope)},n.$$.update=()=>{n.$$.dirty&36&&a&&d&&v(),n.$$.dirty&20&&u&&d&&M()},[r,f,d,m,u,a,c,s,i,C,p]}class b extends t.SvelteComponent{constructor(e){super(),t.init(this,e,L,S,t.safe_not_equal,{show:0,duration:1,clientstyling:4,clientstylingurl:5,showmodaleventname:6},k)}get show(){return this.$$.ctx[0]}set show(e){this.$$set({show:e}),t.flush()}get duration(){return this.$$.ctx[1]}set duration(e){this.$$set({duration:e}),t.flush()}get clientstyling(){return this.$$.ctx[4]}set clientstyling(e){this.$$set({clientstyling:e}),t.flush()}get clientstylingurl(){return this.$$.ctx[5]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),t.flush()}get showmodaleventname(){return this.$$.ctx[6]}set showmodaleventname(e){this.$$set({showmodaleventname:e}),t.flush()}}t.create_custom_element(b,{show:{type:"Boolean"},duration:{},clientstyling:{},clientstylingurl:{},showmodaleventname:{}},["default"],[],!0);exports.default=b;
@@ -0,0 +1,213 @@
1
+ import { I as T, S as q, i as N, f, c as P, s as U, b as W, z as j, k as S, J as m, K as w, L as A, q as E, w as B, M as F, e as _, h as y, l as C, N as I, O as J, P as K, E as O, Q as v, R as Q, C as k } from "./PlayerAccountGamingLimitsConfirmationModal-ByRH5KtL.js";
2
+ function p(t, { delay: e = 0, duration: i = 400, easing: n = T } = {}) {
3
+ const s = +getComputedStyle(t).opacity;
4
+ return {
5
+ delay: e,
6
+ duration: i,
7
+ easing: n,
8
+ css: (o) => `opacity: ${o * s}`
9
+ };
10
+ }
11
+ function G(t) {
12
+ W(t, "svelte-126fglp", "*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}.ModalWindow{display:flex;position:fixed;align-items:center;justify-content:center;width:100%;height:100%;z-index:300;top:0;left:0}");
13
+ }
14
+ function L(t) {
15
+ let e, i, n, s, o;
16
+ const c = (
17
+ /*#slots*/
18
+ t[8].default
19
+ ), r = F(
20
+ c,
21
+ t,
22
+ /*$$scope*/
23
+ t[7],
24
+ null
25
+ );
26
+ return {
27
+ c() {
28
+ e = _("div"), i = _("div"), n = _("div"), r && r.c(), y(n, "class", "ModalContainer"), y(i, "class", "ModalWindow"), y(i, "id", "Modal");
29
+ },
30
+ m(a, u) {
31
+ S(a, e, u), C(e, i), C(i, n), r && r.m(n, null), t[9](i), t[10](e), o = !0;
32
+ },
33
+ p(a, u) {
34
+ t = a, r && r.p && (!o || u & /*$$scope*/
35
+ 128) && I(
36
+ r,
37
+ c,
38
+ t,
39
+ /*$$scope*/
40
+ t[7],
41
+ o ? K(
42
+ c,
43
+ /*$$scope*/
44
+ t[7],
45
+ u,
46
+ null
47
+ ) : J(
48
+ /*$$scope*/
49
+ t[7]
50
+ ),
51
+ null
52
+ );
53
+ },
54
+ i(a) {
55
+ o || (m(r, a), a && O(() => {
56
+ o && (s || (s = v(i, p, { transitionDuration: (
57
+ /*duration*/
58
+ t[1]
59
+ ) }, !0)), s.run(1));
60
+ }), o = !0);
61
+ },
62
+ o(a) {
63
+ w(r, a), a && (s || (s = v(i, p, { transitionDuration: (
64
+ /*duration*/
65
+ t[1]
66
+ ) }, !1)), s.run(0)), o = !1;
67
+ },
68
+ d(a) {
69
+ a && E(e), r && r.d(a), t[9](null), a && s && s.end(), t[10](null);
70
+ }
71
+ };
72
+ }
73
+ function V(t) {
74
+ let e, i, n = (
75
+ /*show*/
76
+ t[0] && L(t)
77
+ );
78
+ return {
79
+ c() {
80
+ n && n.c(), e = j();
81
+ },
82
+ m(s, o) {
83
+ n && n.m(s, o), S(s, e, o), i = !0;
84
+ },
85
+ p(s, [o]) {
86
+ /*show*/
87
+ s[0] ? n ? (n.p(s, o), o & /*show*/
88
+ 1 && m(n, 1)) : (n = L(s), n.c(), m(n, 1), n.m(e.parentNode, e)) : n && (Q(), w(n, 1, 1, () => {
89
+ n = null;
90
+ }), A());
91
+ },
92
+ i(s) {
93
+ i || (m(n), i = !0);
94
+ },
95
+ o(s) {
96
+ w(n), i = !1;
97
+ },
98
+ d(s) {
99
+ s && E(e), n && n.d(s);
100
+ }
101
+ };
102
+ }
103
+ function X(t, e, i) {
104
+ let { $$slots: n = {}, $$scope: s } = e, { show: o = !1 } = e, { duration: c = 350 } = e, { clientstyling: r = "" } = e, { clientstylingurl: a = "" } = e, { showmodaleventname: u = "ShowLimitsConfirmationModal" } = e, d, h;
105
+ const b = (l) => {
106
+ switch (l.data.type) {
107
+ case "ModalClosed":
108
+ i(0, o = !1);
109
+ break;
110
+ case u:
111
+ i(0, o = !0), window.postMessage({ type: "DisableScroll" }, window.location.href);
112
+ break;
113
+ }
114
+ }, z = () => {
115
+ let l = document.createElement("style");
116
+ l.innerHTML = r, d.appendChild(l);
117
+ }, D = () => {
118
+ let l = new URL(a), M = document.createElement("style");
119
+ fetch(l.href).then((g) => g.text()).then((g) => {
120
+ M.innerHTML = g, setTimeout(
121
+ () => {
122
+ d.appendChild(M);
123
+ },
124
+ 1
125
+ );
126
+ });
127
+ };
128
+ B(() => (window.addEventListener("message", b, !1), () => {
129
+ window.removeEventListener("message", b);
130
+ }));
131
+ function H(l) {
132
+ k[l ? "unshift" : "push"](() => {
133
+ h = l, i(3, h);
134
+ });
135
+ }
136
+ function R(l) {
137
+ k[l ? "unshift" : "push"](() => {
138
+ d = l, i(2, d);
139
+ });
140
+ }
141
+ return t.$$set = (l) => {
142
+ "show" in l && i(0, o = l.show), "duration" in l && i(1, c = l.duration), "clientstyling" in l && i(4, r = l.clientstyling), "clientstylingurl" in l && i(5, a = l.clientstylingurl), "showmodaleventname" in l && i(6, u = l.showmodaleventname), "$$scope" in l && i(7, s = l.$$scope);
143
+ }, t.$$.update = () => {
144
+ t.$$.dirty & /*clientstylingurl, customStylingContainer*/
145
+ 36 && a && d && D(), t.$$.dirty & /*clientstyling, customStylingContainer*/
146
+ 20 && r && d && z();
147
+ }, [
148
+ o,
149
+ c,
150
+ d,
151
+ h,
152
+ r,
153
+ a,
154
+ u,
155
+ s,
156
+ n,
157
+ H,
158
+ R
159
+ ];
160
+ }
161
+ class Y extends q {
162
+ constructor(e) {
163
+ super(), N(
164
+ this,
165
+ e,
166
+ X,
167
+ V,
168
+ U,
169
+ {
170
+ show: 0,
171
+ duration: 1,
172
+ clientstyling: 4,
173
+ clientstylingurl: 5,
174
+ showmodaleventname: 6
175
+ },
176
+ G
177
+ );
178
+ }
179
+ get show() {
180
+ return this.$$.ctx[0];
181
+ }
182
+ set show(e) {
183
+ this.$$set({ show: e }), f();
184
+ }
185
+ get duration() {
186
+ return this.$$.ctx[1];
187
+ }
188
+ set duration(e) {
189
+ this.$$set({ duration: e }), f();
190
+ }
191
+ get clientstyling() {
192
+ return this.$$.ctx[4];
193
+ }
194
+ set clientstyling(e) {
195
+ this.$$set({ clientstyling: e }), f();
196
+ }
197
+ get clientstylingurl() {
198
+ return this.$$.ctx[5];
199
+ }
200
+ set clientstylingurl(e) {
201
+ this.$$set({ clientstylingurl: e }), f();
202
+ }
203
+ get showmodaleventname() {
204
+ return this.$$.ctx[6];
205
+ }
206
+ set showmodaleventname(e) {
207
+ this.$$set({ showmodaleventname: e }), f();
208
+ }
209
+ }
210
+ P(Y, { show: { type: "Boolean" }, duration: {}, clientstyling: {}, clientstylingurl: {}, showmodaleventname: {} }, ["default"], [], !0);
211
+ export {
212
+ Y as default
213
+ };
@@ -1 +1 @@
1
- "use strict";if(typeof window!="undefined"){let n=function(t){return function(...i){try{return t.apply(this,i)}catch(e){if(e instanceof DOMException&&e.message.includes("has already been used with this registry")||e.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw e}}};customElements.define=n(customElements.define),Promise.resolve().then(()=>require("../components/PlayerAccountGamingLimitsGroupEdit-Bm6GFnSS.cjs")).then(({default:t})=>{!customElements.get("player-account-gaming-limits-group-edit")&&customElements.define("player-account-gaming-limits-group-edit",t.element)})}
1
+ "use strict";if(typeof window!="undefined"){let n=function(t){return function(...i){try{return t.apply(this,i)}catch(e){if(e instanceof DOMException&&e.message.includes("has already been used with this registry")||e.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw e}}};customElements.define=n(customElements.define),Promise.resolve().then(()=>require("../components/PlayerAccountGamingLimitsGroupEdit-XphiLECj.cjs")).then(({default:t})=>{!customElements.get("player-account-gaming-limits-group-edit")&&customElements.define("player-account-gaming-limits-group-edit",t.element)})}
@@ -10,7 +10,7 @@ if (typeof window != "undefined") {
10
10
  }
11
11
  };
12
12
  };
13
- customElements.define = n(customElements.define), import("../components/PlayerAccountGamingLimitsGroupEdit-bUzPCIfS.js").then(({ default: t }) => {
13
+ customElements.define = n(customElements.define), import("../components/PlayerAccountGamingLimitsGroupEdit-CE-AJO6E.js").then(({ default: t }) => {
14
14
  !customElements.get("player-account-gaming-limits-group-edit") && customElements.define(
15
15
  "player-account-gaming-limits-group-edit",
16
16
  t.element
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@everymatrix/player-account-gaming-limits-group-edit",
3
- "version": "1.52.5",
3
+ "version": "1.53.0",
4
4
  "type": "module",
5
5
  "main": "es2015/player-account-gaming-limits-group-edit.cjs",
6
6
  "module": "es2015/player-account-gaming-limits-group-edit.js",
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./PlayerAccountGamingLimitsConfirmationModal-BTuvM9aB.cjs");function m(n,{delay:e=0,duration:l=400,easing:i=t.identity}={}){const s=+getComputedStyle(n).opacity;return{delay:e,duration:l,easing:i,css:r=>`opacity: ${r*s}`}}function S(n){t.append_styles(n,"svelte-126fglp","*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}.ModalWindow{display:flex;position:fixed;align-items:center;justify-content:center;width:100%;height:100%;z-index:300;top:0;left:0}")}function y(n){let e,l,i,s,r;const d=n[7].default,u=t.create_slot(d,n,n[6],null);return{c(){e=t.element("div"),l=t.element("div"),i=t.element("div"),u&&u.c(),t.attr(i,"class","ModalContainer"),t.attr(l,"class","ModalWindow"),t.attr(l,"id","Modal")},m(a,c){t.insert(a,e,c),t.append(e,l),t.append(l,i),u&&u.m(i,null),n[8](l),n[9](e),r=!0},p(a,c){n=a,u&&u.p&&(!r||c&64)&&t.update_slot_base(u,d,n,n[6],r?t.get_slot_changes(d,n[6],c,null):t.get_all_dirty_from_scope(n[6]),null)},i(a){r||(t.transition_in(u,a),a&&t.add_render_callback(()=>{r&&(s||(s=t.create_bidirectional_transition(l,m,{transitionDuration:n[1]},!0)),s.run(1))}),r=!0)},o(a){t.transition_out(u,a),a&&(s||(s=t.create_bidirectional_transition(l,m,{transitionDuration:n[1]},!1)),s.run(0)),r=!1},d(a){a&&t.detach(e),u&&u.d(a),n[8](null),a&&s&&s.end(),n[9](null)}}}function L(n){let e,l,i=n[0]&&y(n);return{c(){i&&i.c(),e=t.empty()},m(s,r){i&&i.m(s,r),t.insert(s,e,r),l=!0},p(s,[r]){s[0]?i?(i.p(s,r),r&1&&t.transition_in(i,1)):(i=y(s),i.c(),t.transition_in(i,1),i.m(e.parentNode,e)):i&&(t.group_outros(),t.transition_out(i,1,1,()=>{i=null}),t.check_outros())},i(s){l||(t.transition_in(i),l=!0)},o(s){t.transition_out(i),l=!1},d(s){s&&t.detach(e),i&&i.d(s)}}}function k(n,e,l){let{$$slots:i={},$$scope:s}=e,{show:r=!1}=e,{duration:d=350}=e,{clientstyling:u=""}=e,{clientstylingurl:a=""}=e,c,f;const g=o=>{o.data.type=="ModalClosed"&&l(0,r=!1),o.data.type==="ShowLimitsConfirmationModal"&&(l(0,r=!0),window.postMessage({type:"DisableScroll"},window.location.href))},w=()=>{let o=document.createElement("style");o.innerHTML=u,c.appendChild(o)},p=()=>{let o=new URL(a),h=document.createElement("style");fetch(o.href).then(_=>_.text()).then(_=>{h.innerHTML=_,setTimeout(()=>{c.appendChild(h)},1)})};t.onMount(()=>(window.addEventListener("message",g,!1),()=>{window.removeEventListener("message",g)}));function M(o){t.binding_callbacks[o?"unshift":"push"](()=>{f=o,l(3,f)})}function C(o){t.binding_callbacks[o?"unshift":"push"](()=>{c=o,l(2,c)})}return n.$$set=o=>{"show"in o&&l(0,r=o.show),"duration"in o&&l(1,d=o.duration),"clientstyling"in o&&l(4,u=o.clientstyling),"clientstylingurl"in o&&l(5,a=o.clientstylingurl),"$$scope"in o&&l(6,s=o.$$scope)},n.$$.update=()=>{n.$$.dirty&36&&a&&c&&p(),n.$$.dirty&20&&u&&c&&w()},[r,d,c,f,u,a,s,i,M,C]}class b extends t.SvelteComponent{constructor(e){super(),t.init(this,e,k,L,t.safe_not_equal,{show:0,duration:1,clientstyling:4,clientstylingurl:5},S)}get show(){return this.$$.ctx[0]}set show(e){this.$$set({show:e}),t.flush()}get duration(){return this.$$.ctx[1]}set duration(e){this.$$set({duration:e}),t.flush()}get clientstyling(){return this.$$.ctx[4]}set clientstyling(e){this.$$set({clientstyling:e}),t.flush()}get clientstylingurl(){return this.$$.ctx[5]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),t.flush()}}t.create_custom_element(b,{show:{type:"Boolean"},duration:{},clientstyling:{},clientstylingurl:{}},["default"],[],!0);exports.default=b;
@@ -1,198 +0,0 @@
1
- import { I as R, S as T, i as q, f, c as N, s as P, b as U, z as W, k, J as c, K as m, L as j, q as E, w as A, M as B, e as h, h as y, l as p, N as F, O as I, P as J, E as K, Q as M, R as O, C } from "./PlayerAccountGamingLimitsConfirmationModal-ByRH5KtL.js";
2
- function L(e, { delay: t = 0, duration: i = 400, easing: n = R } = {}) {
3
- const s = +getComputedStyle(e).opacity;
4
- return {
5
- delay: t,
6
- duration: i,
7
- easing: n,
8
- css: (o) => `opacity: ${o * s}`
9
- };
10
- }
11
- function Q(e) {
12
- U(e, "svelte-126fglp", "*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}.ModalWindow{display:flex;position:fixed;align-items:center;justify-content:center;width:100%;height:100%;z-index:300;top:0;left:0}");
13
- }
14
- function S(e) {
15
- let t, i, n, s, o;
16
- const d = (
17
- /*#slots*/
18
- e[7].default
19
- ), r = B(
20
- d,
21
- e,
22
- /*$$scope*/
23
- e[6],
24
- null
25
- );
26
- return {
27
- c() {
28
- t = h("div"), i = h("div"), n = h("div"), r && r.c(), y(n, "class", "ModalContainer"), y(i, "class", "ModalWindow"), y(i, "id", "Modal");
29
- },
30
- m(a, u) {
31
- k(a, t, u), p(t, i), p(i, n), r && r.m(n, null), e[8](i), e[9](t), o = !0;
32
- },
33
- p(a, u) {
34
- e = a, r && r.p && (!o || u & /*$$scope*/
35
- 64) && F(
36
- r,
37
- d,
38
- e,
39
- /*$$scope*/
40
- e[6],
41
- o ? J(
42
- d,
43
- /*$$scope*/
44
- e[6],
45
- u,
46
- null
47
- ) : I(
48
- /*$$scope*/
49
- e[6]
50
- ),
51
- null
52
- );
53
- },
54
- i(a) {
55
- o || (c(r, a), a && K(() => {
56
- o && (s || (s = M(i, L, { transitionDuration: (
57
- /*duration*/
58
- e[1]
59
- ) }, !0)), s.run(1));
60
- }), o = !0);
61
- },
62
- o(a) {
63
- m(r, a), a && (s || (s = M(i, L, { transitionDuration: (
64
- /*duration*/
65
- e[1]
66
- ) }, !1)), s.run(0)), o = !1;
67
- },
68
- d(a) {
69
- a && E(t), r && r.d(a), e[8](null), a && s && s.end(), e[9](null);
70
- }
71
- };
72
- }
73
- function G(e) {
74
- let t, i, n = (
75
- /*show*/
76
- e[0] && S(e)
77
- );
78
- return {
79
- c() {
80
- n && n.c(), t = W();
81
- },
82
- m(s, o) {
83
- n && n.m(s, o), k(s, t, o), i = !0;
84
- },
85
- p(s, [o]) {
86
- /*show*/
87
- s[0] ? n ? (n.p(s, o), o & /*show*/
88
- 1 && c(n, 1)) : (n = S(s), n.c(), c(n, 1), n.m(t.parentNode, t)) : n && (O(), m(n, 1, 1, () => {
89
- n = null;
90
- }), j());
91
- },
92
- i(s) {
93
- i || (c(n), i = !0);
94
- },
95
- o(s) {
96
- m(n), i = !1;
97
- },
98
- d(s) {
99
- s && E(t), n && n.d(s);
100
- }
101
- };
102
- }
103
- function V(e, t, i) {
104
- let { $$slots: n = {}, $$scope: s } = t, { show: o = !1 } = t, { duration: d = 350 } = t, { clientstyling: r = "" } = t, { clientstylingurl: a = "" } = t, u, _;
105
- const w = (l) => {
106
- l.data.type == "ModalClosed" && i(0, o = !1), l.data.type === "ShowLimitsConfirmationModal" && (i(0, o = !0), window.postMessage({ type: "DisableScroll" }, window.location.href));
107
- }, v = () => {
108
- let l = document.createElement("style");
109
- l.innerHTML = r, u.appendChild(l);
110
- }, z = () => {
111
- let l = new URL(a), b = document.createElement("style");
112
- fetch(l.href).then((g) => g.text()).then((g) => {
113
- b.innerHTML = g, setTimeout(
114
- () => {
115
- u.appendChild(b);
116
- },
117
- 1
118
- );
119
- });
120
- };
121
- A(() => (window.addEventListener("message", w, !1), () => {
122
- window.removeEventListener("message", w);
123
- }));
124
- function D(l) {
125
- C[l ? "unshift" : "push"](() => {
126
- _ = l, i(3, _);
127
- });
128
- }
129
- function H(l) {
130
- C[l ? "unshift" : "push"](() => {
131
- u = l, i(2, u);
132
- });
133
- }
134
- return e.$$set = (l) => {
135
- "show" in l && i(0, o = l.show), "duration" in l && i(1, d = l.duration), "clientstyling" in l && i(4, r = l.clientstyling), "clientstylingurl" in l && i(5, a = l.clientstylingurl), "$$scope" in l && i(6, s = l.$$scope);
136
- }, e.$$.update = () => {
137
- e.$$.dirty & /*clientstylingurl, customStylingContainer*/
138
- 36 && a && u && z(), e.$$.dirty & /*clientstyling, customStylingContainer*/
139
- 20 && r && u && v();
140
- }, [
141
- o,
142
- d,
143
- u,
144
- _,
145
- r,
146
- a,
147
- s,
148
- n,
149
- D,
150
- H
151
- ];
152
- }
153
- class X extends T {
154
- constructor(t) {
155
- super(), q(
156
- this,
157
- t,
158
- V,
159
- G,
160
- P,
161
- {
162
- show: 0,
163
- duration: 1,
164
- clientstyling: 4,
165
- clientstylingurl: 5
166
- },
167
- Q
168
- );
169
- }
170
- get show() {
171
- return this.$$.ctx[0];
172
- }
173
- set show(t) {
174
- this.$$set({ show: t }), f();
175
- }
176
- get duration() {
177
- return this.$$.ctx[1];
178
- }
179
- set duration(t) {
180
- this.$$set({ duration: t }), f();
181
- }
182
- get clientstyling() {
183
- return this.$$.ctx[4];
184
- }
185
- set clientstyling(t) {
186
- this.$$set({ clientstyling: t }), f();
187
- }
188
- get clientstylingurl() {
189
- return this.$$.ctx[5];
190
- }
191
- set clientstylingurl(t) {
192
- this.$$set({ clientstylingurl: t }), f();
193
- }
194
- }
195
- N(X, { show: { type: "Boolean" }, duration: {}, clientstyling: {}, clientstylingurl: {} }, ["default"], [], !0);
196
- export {
197
- X as default
198
- };