/* aevent getscript c18b92051a9e built 2026-10-30T20:06:37.672Z */
var te=Object.defineProperty;var ne=(Z,s,t)=>s in Z?te(Z,s,{enumerable:!0,configurable:!0,writable:!0,value:t}):Z[s]=t;var J=(Z,s,t)=>ne(Z,typeof s!="symbol"?s+"":s,t);(function(){"use strict";var Z;var commonjsGlobal=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function getDefaultExportFromCjs(s){return s&&s.__esModule&&Object.prototype.hasOwnProperty.call(s,"default")?s.default:s}var dayjs_min={exports:{}};(function(s,t){(function(n,r){s.exports=r()})(commonjsGlobal,function(){var n=1e3,r=6e4,i=36e5,a="millisecond",d="second",o="minute",l="hour",u="day",c="week",h="month",f="quarter",y="year",w="date",$="Invalid Date",m=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,C=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,v={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(P){var b=["th","st","nd","rd"],p=P%100;return"["+P+(b[(p-20)%10]||b[p]||b[0])+"]"}},T=function(P,b,p){var A=String(P);return!A||A.length>=b?P:""+Array(b+1-A.length).join(p)+P},_={s:T,z:function(P){var b=-P.utcOffset(),p=Math.abs(b),A=Math.floor(p/60),g=p%60;return(b<=0?"+":"-")+T(A,2,"0")+":"+T(g,2,"0")},m:function P(b,p){if(b.date()<p.date())return-P(p,b);var A=12*(p.year()-b.year())+(p.month()-b.month()),g=b.clone().add(A,h),N=p-g<0,x=b.clone().add(A+(N?-1:1),h);return+(-(A+(p-g)/(N?g-x:x-g))||0)},a:function(P){return P<0?Math.ceil(P)||0:Math.floor(P)},p:function(P){return{M:h,y,w:c,d:u,D:w,h:l,m:o,s:d,ms:a,Q:f}[P]||String(P||"").toLowerCase().replace(/s$/,"")},u:function(P){return P===void 0}},S="en",O={};O[S]=v;var I="$isDayjsObject",F=function(P){return P instanceof M||!(!P||!P[I])},R=function P(b,p,A){var g;if(!b)return S;if(typeof b=="string"){var N=b.toLowerCase();O[N]&&(g=N),p&&(O[N]=p,g=N);var x=b.split("-");if(!g&&x.length>1)return P(x[0])}else{var L=b.name;O[L]=b,g=L}return!A&&g&&(S=g),g||!A&&S},D=function(P,b){if(F(P))return P.clone();var p=typeof b=="object"?b:{};return p.date=P,p.args=arguments,new M(p)},E=_;E.l=R,E.i=F,E.w=function(P,b){return D(P,{locale:b.$L,utc:b.$u,x:b.$x,$offset:b.$offset})};var M=function(){function P(p){this.$L=R(p.locale,null,!0),this.parse(p),this.$x=this.$x||p.x||{},this[I]=!0}var b=P.prototype;return b.parse=function(p){this.$d=function(A){var g=A.date,N=A.utc;if(g===null)return new Date(NaN);if(E.u(g))return new Date;if(g instanceof Date)return new Date(g);if(typeof g=="string"&&!/Z$/i.test(g)){var x=g.match(m);if(x){var L=x[2]-1||0,B=(x[7]||"0").substring(0,3);return N?new Date(Date.UTC(x[1],L,x[3]||1,x[4]||0,x[5]||0,x[6]||0,B)):new Date(x[1],L,x[3]||1,x[4]||0,x[5]||0,x[6]||0,B)}}return new Date(g)}(p),this.init()},b.init=function(){var p=this.$d;this.$y=p.getFullYear(),this.$M=p.getMonth(),this.$D=p.getDate(),this.$W=p.getDay(),this.$H=p.getHours(),this.$m=p.getMinutes(),this.$s=p.getSeconds(),this.$ms=p.getMilliseconds()},b.$utils=function(){return E},b.isValid=function(){return this.$d.toString()!==$},b.isSame=function(p,A){var g=D(p);return this.startOf(A)<=g&&g<=this.endOf(A)},b.isAfter=function(p,A){return D(p)<this.startOf(A)},b.isBefore=function(p,A){return this.endOf(A)<D(p)},b.$g=function(p,A,g){return E.u(p)?this[A]:this.set(g,p)},b.unix=function(){return Math.floor(this.valueOf()/1e3)},b.valueOf=function(){return this.$d.getTime()},b.startOf=function(p,A){var g=this,N=!!E.u(A)||A,x=E.p(p),L=function(V,j){var W=E.w(g.$u?Date.UTC(g.$y,j,V):new Date(g.$y,j,V),g);return N?W:W.endOf(u)},B=function(V,j){return E.w(g.toDate()[V].apply(g.toDate("s"),(N?[0,0,0,0]:[23,59,59,999]).slice(j)),g)},U=this.$W,H=this.$M,k=this.$D,X="set"+(this.$u?"UTC":"");switch(x){case y:return N?L(1,0):L(31,11);case h:return N?L(1,H):L(0,H+1);case c:var z=this.$locale().weekStart||0,q=(U<z?U+7:U)-z;return L(N?k-q:k+(6-q),H);case u:case w:return B(X+"Hours",0);case l:return B(X+"Minutes",1);case o:return B(X+"Seconds",2);case d:return B(X+"Milliseconds",3);default:return this.clone()}},b.endOf=function(p){return this.startOf(p,!1)},b.$set=function(p,A){var g,N=E.p(p),x="set"+(this.$u?"UTC":""),L=(g={},g[u]=x+"Date",g[w]=x+"Date",g[h]=x+"Month",g[y]=x+"FullYear",g[l]=x+"Hours",g[o]=x+"Minutes",g[d]=x+"Seconds",g[a]=x+"Milliseconds",g)[N],B=N===u?this.$D+(A-this.$W):A;if(N===h||N===y){var U=this.clone().set(w,1);U.$d[L](B),U.init(),this.$d=U.set(w,Math.min(this.$D,U.daysInMonth())).$d}else L&&this.$d[L](B);return this.init(),this},b.set=function(p,A){return this.clone().$set(p,A)},b.get=function(p){return this[E.p(p)]()},b.add=function(p,A){var g,N=this;p=Number(p);var x=E.p(A),L=function(H){var k=D(N);return E.w(k.date(k.date()+Math.round(H*p)),N)};if(x===h)return this.set(h,this.$M+p);if(x===y)return this.set(y,this.$y+p);if(x===u)return L(1);if(x===c)return L(7);var B=(g={},g[o]=r,g[l]=i,g[d]=n,g)[x]||1,U=this.$d.getTime()+p*B;return E.w(U,this)},b.subtract=function(p,A){return this.add(-1*p,A)},b.format=function(p){var A=this,g=this.$locale();if(!this.isValid())return g.invalidDate||$;var N=p||"YYYY-MM-DDTHH:mm:ssZ",x=E.z(this),L=this.$H,B=this.$m,U=this.$M,H=g.weekdays,k=g.months,X=g.meridiem,z=function(j,W,Y,K){return j&&(j[W]||j(A,N))||Y[W].slice(0,K)},q=function(j){return E.s(L%12||12,j,"0")},V=X||function(j,W,Y){var K=j<12?"AM":"PM";return Y?K.toLowerCase():K};return N.replace(C,function(j,W){return W||function(Y){switch(Y){case"YY":return String(A.$y).slice(-2);case"YYYY":return E.s(A.$y,4,"0");case"M":return U+1;case"MM":return E.s(U+1,2,"0");case"MMM":return z(g.monthsShort,U,k,3);case"MMMM":return z(k,U);case"D":return A.$D;case"DD":return E.s(A.$D,2,"0");case"d":return String(A.$W);case"dd":return z(g.weekdaysMin,A.$W,H,2);case"ddd":return z(g.weekdaysShort,A.$W,H,3);case"dddd":return H[A.$W];case"H":return String(L);case"HH":return E.s(L,2,"0");case"h":return q(1);case"hh":return q(2);case"a":return V(L,B,!0);case"A":return V(L,B,!1);case"m":return String(B);case"mm":return E.s(B,2,"0");case"s":return String(A.$s);case"ss":return E.s(A.$s,2,"0");case"SSS":return E.s(A.$ms,3,"0");case"Z":return x}return null}(j)||x.replace(":","")})},b.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},b.diff=function(p,A,g){var N,x=this,L=E.p(A),B=D(p),U=(B.utcOffset()-this.utcOffset())*r,H=this-B,k=function(){return E.m(x,B)};switch(L){case y:N=k()/12;break;case h:N=k();break;case f:N=k()/3;break;case c:N=(H-U)/6048e5;break;case u:N=(H-U)/864e5;break;case l:N=H/i;break;case o:N=H/r;break;case d:N=H/n;break;default:N=H}return g?N:E.a(N)},b.daysInMonth=function(){return this.endOf(h).$D},b.$locale=function(){return O[this.$L]},b.locale=function(p,A){if(!p)return this.$L;var g=this.clone(),N=R(p,A,!0);return N&&(g.$L=N),g},b.clone=function(){return E.w(this.$d,this)},b.toDate=function(){return new Date(this.valueOf())},b.toJSON=function(){return this.isValid()?this.toISOString():null},b.toISOString=function(){return this.$d.toISOString()},b.toString=function(){return this.$d.toUTCString()},P}(),G=M.prototype;return D.prototype=G,[["$ms",a],["$s",d],["$m",o],["$H",l],["$W",u],["$M",h],["$y",y],["$D",w]].forEach(function(P){G[P[1]]=function(b){return this.$g(b,P[0],P[1])}}),D.extend=function(P,b){return P.$i||(P(b,M,D),P.$i=!0),D},D.locale=R,D.isDayjs=F,D.unix=function(P){return D(1e3*P)},D.en=O[S],D.Ls=O,D.p={},D})})(dayjs_min);var dayjs_minExports=dayjs_min.exports;const dayjs=getDefaultExportFromCjs(dayjs_minExports);var customParseFormat$1={exports:{}};(function(s,t){(function(n,r){s.exports=r()})(commonjsGlobal,function(){var n={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"},r=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,i=/\d\d/,a=/\d\d?/,d=/\d*[^-_:/,()\s\d]+/,o={},l=function($){return($=+$)+($>68?1900:2e3)},u=function($){return function(m){this[$]=+m}},c=[/[+-]\d\d:?(\d\d)?|Z/,function($){(this.zone||(this.zone={})).offset=function(m){if(!m||m==="Z")return 0;var C=m.match(/([+-]|\d\d)/g),v=60*C[1]+(+C[2]||0);return v===0?0:C[0]==="+"?-v:v}($)}],h=function($){var m=o[$];return m&&(m.indexOf?m:m.s.concat(m.f))},f=function($,m){var C,v=o.meridiem;if(v){for(var T=1;T<=24;T+=1)if($.indexOf(v(T,0,m))>-1){C=T>12;break}}else C=$===(m?"pm":"PM");return C},y={A:[d,function($){this.afternoon=f($,!1)}],a:[d,function($){this.afternoon=f($,!0)}],S:[/\d/,function($){this.milliseconds=100*+$}],SS:[i,function($){this.milliseconds=10*+$}],SSS:[/\d{3}/,function($){this.milliseconds=+$}],s:[a,u("seconds")],ss:[a,u("seconds")],m:[a,u("minutes")],mm:[a,u("minutes")],H:[a,u("hours")],h:[a,u("hours")],HH:[a,u("hours")],hh:[a,u("hours")],D:[a,u("day")],DD:[i,u("day")],Do:[d,function($){var m=o.ordinal,C=$.match(/\d+/);if(this.day=C[0],m)for(var v=1;v<=31;v+=1)m(v).replace(/\[|\]/g,"")===$&&(this.day=v)}],M:[a,u("month")],MM:[i,u("month")],MMM:[d,function($){var m=h("months"),C=(h("monthsShort")||m.map(function(v){return v.slice(0,3)})).indexOf($)+1;if(C<1)throw new Error;this.month=C%12||C}],MMMM:[d,function($){var m=h("months").indexOf($)+1;if(m<1)throw new Error;this.month=m%12||m}],Y:[/[+-]?\d+/,u("year")],YY:[i,function($){this.year=l($)}],YYYY:[/\d{4}/,u("year")],Z:c,ZZ:c};function w($){var m,C;m=$,C=o&&o.formats;for(var v=($=m.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(R,D,E){var M=E&&E.toUpperCase();return D||C[E]||n[E]||C[M].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(G,P,b){return P||b.slice(1)})})).match(r),T=v.length,_=0;_<T;_+=1){var S=v[_],O=y[S],I=O&&O[0],F=O&&O[1];v[_]=F?{regex:I,parser:F}:S.replace(/^\[|\]$/g,"")}return function(R){for(var D={},E=0,M=0;E<T;E+=1){var G=v[E];if(typeof G=="string")M+=G.length;else{var P=G.regex,b=G.parser,p=R.slice(M),A=P.exec(p)[0];b.call(D,A),R=R.replace(A,"")}}return function(g){var N=g.afternoon;if(N!==void 0){var x=g.hours;N?x<12&&(g.hours+=12):x===12&&(g.hours=0),delete g.afternoon}}(D),D}}return function($,m,C){C.p.customParseFormat=!0,$&&$.parseTwoDigitYear&&(l=$.parseTwoDigitYear);var v=m.prototype,T=v.parse;v.parse=function(_){var S=_.date,O=_.utc,I=_.args;this.$u=O;var F=I[1];if(typeof F=="string"){var R=I[2]===!0,D=I[3]===!0,E=R||D,M=I[2];D&&(M=I[2]),o=this.$locale(),!R&&M&&(o=C.Ls[M]),this.$d=function(p,A,g){try{if(["x","X"].indexOf(A)>-1)return new Date((A==="X"?1e3:1)*p);var N=w(A)(p),x=N.year,L=N.month,B=N.day,U=N.hours,H=N.minutes,k=N.seconds,X=N.milliseconds,z=N.zone,q=new Date,V=B||(x||L?1:q.getDate()),j=x||q.getFullYear(),W=0;x&&!L||(W=L>0?L-1:q.getMonth());var Y=U||0,K=H||0,Q=k||0,ee=X||0;return z?new Date(Date.UTC(j,W,V,Y,K,Q,ee+60*z.offset*1e3)):g?new Date(Date.UTC(j,W,V,Y,K,Q,ee)):new Date(j,W,V,Y,K,Q,ee)}catch(re){return new Date("")}}(S,F,O),this.init(),M&&M!==!0&&(this.$L=this.locale(M).$L),E&&S!=this.format(F)&&(this.$d=new Date("")),o={}}else if(F instanceof Array)for(var G=F.length,P=1;P<=G;P+=1){I[1]=F[P-1];var b=C.apply(this,I);if(b.isValid()){this.$d=b.$d,this.$L=b.$L,this.init();break}P===G&&(this.$d=new Date(""))}else T.call(this,_)}}})})(customParseFormat$1);var customParseFormatExports=customParseFormat$1.exports;const customParseFormat=getDefaultExportFromCjs(customParseFormatExports);var advancedFormat$1={exports:{}};(function(s,t){(function(n,r){s.exports=r()})(commonjsGlobal,function(){return function(n,r){var i=r.prototype,a=i.format;i.format=function(d){var o=this,l=this.$locale();if(!this.isValid())return a.bind(this)(d);var u=this.$utils(),c=(d||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,function(h){switch(h){case"Q":return Math.ceil((o.$M+1)/3);case"Do":return l.ordinal(o.$D);case"gggg":return o.weekYear();case"GGGG":return o.isoWeekYear();case"wo":return l.ordinal(o.week(),"W");case"w":case"ww":return u.s(o.week(),h==="w"?1:2,"0");case"W":case"WW":return u.s(o.isoWeek(),h==="W"?1:2,"0");case"k":case"kk":return u.s(String(o.$H===0?24:o.$H),h==="k"?1:2,"0");case"X":return Math.floor(o.$d.getTime()/1e3);case"x":return o.$d.getTime();case"z":return"["+o.offsetName()+"]";case"zzz":return"["+o.offsetName("long")+"]";default:return h}});return a.bind(this)(c)}}})})(advancedFormat$1);var advancedFormatExports=advancedFormat$1.exports;const advancedFormat=getDefaultExportFromCjs(advancedFormatExports);var utc={exports:{}};(function(s,t){(function(n,r){s.exports=r()})(commonjsGlobal,function(){var n="minute",r=/[+-]\d\d(?::?\d\d)?/g,i=/([+-]|\d\d)/g;return function(a,d,o){var l=d.prototype;o.utc=function($){var m={date:$,utc:!0,args:arguments};return new d(m)},l.utc=function($){var m=o(this.toDate(),{locale:this.$L,utc:!0});return $?m.add(this.utcOffset(),n):m},l.local=function(){return o(this.toDate(),{locale:this.$L,utc:!1})};var u=l.parse;l.parse=function($){$.utc&&(this.$u=!0),this.$utils().u($.$offset)||(this.$offset=$.$offset),u.call(this,$)};var c=l.init;l.init=function(){if(this.$u){var $=this.$d;this.$y=$.getUTCFullYear(),this.$M=$.getUTCMonth(),this.$D=$.getUTCDate(),this.$W=$.getUTCDay(),this.$H=$.getUTCHours(),this.$m=$.getUTCMinutes(),this.$s=$.getUTCSeconds(),this.$ms=$.getUTCMilliseconds()}else c.call(this)};var h=l.utcOffset;l.utcOffset=function($,m){var C=this.$utils().u;if(C($))return this.$u?0:C(this.$offset)?h.call(this):this.$offset;if(typeof $=="string"&&($=function(S){S===void 0&&(S="");var O=S.match(r);if(!O)return null;var I=(""+O[0]).match(i)||["-",0,0],F=I[0],R=60*+I[1]+ +I[2];return R===0?0:F==="+"?R:-R}($),$===null))return this;var v=Math.abs($)<=16?60*$:$,T=this;if(m)return T.$offset=v,T.$u=$===0,T;if($!==0){var _=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(T=this.local().add(v+_,n)).$offset=v,T.$x.$localOffset=_}else T=this.utc();return T};var f=l.format;l.format=function($){var m=$||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return f.call(this,m)},l.valueOf=function(){var $=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*$},l.isUTC=function(){return!!this.$u},l.toISOString=function(){return this.toDate().toISOString()},l.toString=function(){return this.toDate().toUTCString()};var y=l.toDate;l.toDate=function($){return $==="s"&&this.$offset?o(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():y.call(this)};var w=l.diff;l.diff=function($,m,C){if($&&this.$u===$.$u)return w.call(this,$,m,C);var v=this.local(),T=o($).local();return w.call(v,T,m,C)}}})})(utc);var utcExports=utc.exports;const dayjsutc=getDefaultExportFromCjs(utcExports);var timezone={exports:{}};(function(s,t){(function(n,r){s.exports=r()})(commonjsGlobal,function(){var n={year:0,month:1,day:2,hour:3,minute:4,second:5},r={};return function(i,a,d){var o,l=function(f,y,w){w===void 0&&(w={});var $=new Date(f),m=function(C,v){v===void 0&&(v={});var T=v.timeZoneName||"short",_=C+"|"+T,S=r[_];return S||(S=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:C,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",timeZoneName:T}),r[_]=S),S}(y,w);return m.formatToParts($)},u=function(f,y){for(var w=l(f,y),$=[],m=0;m<w.length;m+=1){var C=w[m],v=C.type,T=C.value,_=n[v];_>=0&&($[_]=parseInt(T,10))}var S=$[3],O=S===24?0:S,I=$[0]+"-"+$[1]+"-"+$[2]+" "+O+":"+$[4]+":"+$[5]+":000",F=+f;return(d.utc(I).valueOf()-(F-=F%1e3))/6e4},c=a.prototype;c.tz=function(f,y){f===void 0&&(f=o);var w=this.utcOffset(),$=this.toDate(),m=$.toLocaleString("en-US",{timeZone:f}),C=Math.round(($-new Date(m))/1e3/60),v=d(m,{locale:this.$L}).$set("millisecond",this.$ms).utcOffset(15*-Math.round($.getTimezoneOffset()/15)-C,!0);if(y){var T=v.utcOffset();v=v.add(w-T,"minute")}return v.$x.$timezone=f,v},c.offsetName=function(f){var y=this.$x.$timezone||d.tz.guess(),w=l(this.valueOf(),y,{timeZoneName:f}).find(function($){return $.type.toLowerCase()==="timezonename"});return w&&w.value};var h=c.startOf;c.startOf=function(f,y){if(!this.$x||!this.$x.$timezone)return h.call(this,f,y);var w=d(this.format("YYYY-MM-DD HH:mm:ss:SSS"),{locale:this.$L});return h.call(w,f,y).tz(this.$x.$timezone,!0)},d.tz=function(f,y,w){var $=w&&y,m=w||y||o,C=u(+d(),m);if(typeof f!="string")return d(f).tz(m);var v=function(O,I,F){var R=O-60*I*1e3,D=u(R,F);if(I===D)return[R,I];var E=u(R-=60*(D-I)*1e3,F);return D===E?[R,D]:[O-60*Math.min(D,E)*1e3,Math.max(D,E)]}(d.utc(f,$).valueOf(),C,m),T=v[0],_=v[1],S=d(T).utcOffset(_);return S.$x.$timezone=m,S},d.tz.guess=function(){return Intl.DateTimeFormat().resolvedOptions().timeZone},d.tz.setDefault=function(f){o=f}}})})(timezone);var timezoneExports=timezone.exports;const dayjstz=getDefaultExportFromCjs(timezoneExports);dayjs.extend(customParseFormat),dayjs.extend(dayjsutc),dayjs.extend(dayjstz),dayjs.extend(advancedFormat);const a8window$e=window;class AEventDateUtility{constructor(){}static getInstance(){return a8window$e.a8DateUtility||(a8window$e.a8DateUtility=new AEventDateUtility),a8window$e.a8DateUtility}nth(t){if(t>3&&t<21)return"th";switch(t%10){case 1:return"st";case 2:return"nd";case 3:return"rd";default:return"th"}}init(t){this.serverTimeZone=t,this.getTimezone()}getBrowserTimezone(){var t;try{return this.getTimezoneForLocale((t=window==null?void 0:window.navigator)==null?void 0:t.language)}catch(n){}return""}getComputerTimezone(){try{return this.getTimezoneForLocale(Intl.DateTimeFormat().resolvedOptions().locale)}catch(t){}return""}getFallbackBrowserTimezones(){var t,n;try{return Array.from((n=(t=window==null?void 0:window.navigator)==null?void 0:t.languages)!=null?n:[]).map(r=>this.getTimezoneForLocale(r))}catch(r){}return[]}getTimezones(){return[this.getBrowserTimezone(),this.getComputerTimezone(),this.getDayTimezone(),this.serverTimeZone,this.getSystemTimezone(),...this.getFallbackBrowserTimezones()].filter(t=>t)}getTimezonesWithoutGMT(){return this.getTimezones().filter(t=>t&&!t.match(/GMT\-|GMT\+|\+|\-|\−|\//))}getTimezone(){var t,n;return(!this.timeZone||this.timeZone==="")&&(this.timeZone=(n=(t=this.getTimezonesWithoutGMT())==null?void 0:t[0])!=null?n:""),this.timeZone}async getServerTime(){var n;const t=new URL("https://aevent.online/timezone");t.searchParams.set("systemTimezone",this.getSystemTimezone());try{let r=await fetch(t.toString());return r=await r.json(),(n=r==null?void 0:r.timeZoneAbbr)!=null?n:""}catch(r){}return Promise.resolve("")}getTimezoneForLocale(t){var n;try{return(n=new Intl.DateTimeFormat(t,{timeZone:Intl.DateTimeFormat().resolvedOptions().timeZone,timeZoneName:"short"}).format(new Date).split(" ").reverse())==null?void 0:n[0]}catch(r){}return""}getSystemTimezone(){const t=this.getLongSystemTimezone();return t.match(/\s/)?t.split(" ").map(n=>n.slice(0,1)).join(""):t}getLongSystemTimezone(){var t,n;try{let i=(n=(t=new Date().toLocaleTimeString("en-us",{timeZoneName:"short"}).split(" "))==null?void 0:t[2])!=null?n:"";return i.match(/GMT\-|GMT\+|\+|\//)?new Date().toLocaleTimeString("en-us",{timeZoneName:"long"}).split(" ").slice(2).join(" "):i}catch(r){}return""}getDayIANA(){return dayjs.tz.guess()}getDayTimezone(){try{return dayjs().format("z",{timeZone:dayjs.tz.guess()})}catch(t){}return""}getIANATimezone(){return dayjs.tz.guess()}checkLanguage(t){if(this.languageCache||(this.languageCache={}),this.languageCache[t])return this.languageCache[t];try{return new Date().toLocaleDateString(t,{weekday:"long"}),this.languageCache[t]=t,t}catch(n){const r=t.split("_")[0];return t==r?(this.languageCache[t]="en","en"):(this.languageCache[t]=this.checkLanguage(r),this.languageCache[t])}}formatDate(t,n,r=null,i=null,a=!1){var h,f;n=n||"en",n=this.checkLanguage(n),this.timeCache||(this.timeCache={});let d=(h=r==null?void 0:r.code)!=null?h:this.getTimezone();if((f=this.timeCache)!=null&&f[d]||(this.timeCache[d]={}),this.timeCache[d][t])return this.timeCache[d][t];let o=new Date(t*1e3);a&&o.setHours(24,0,0,0);const l={hour:"numeric",minute:"2-digit"};r!=null&&r.name&&(l.timeZone=r.name);let u=o.toLocaleTimeString(n,l)+" "+(i!=null?i:d);const c=o.toLocaleTimeString(n,{...l,hourCycle:"h12"}).replace("a. m.","AM").replace("p. m.","PM")+" "+(i!=null?i:d);return this.timeCache[d][t]={dayofweek:this.capitalize(o.toLocaleDateString(n,{weekday:"long"})),dayofmonth:o.getDate()+(n=="en"?this.nth(o.getDate()):""),month:this.capitalize(o.toLocaleDateString(n,{month:"long"})),year:o.getFullYear().toString(),userTime:u,timeStamp:t,timeZone:u,ampm:c},r?this.timeCache[d][t][`time${d}`]=u:this.timeCache[d][t].timeUSER=u,r&&i&&(this.timeCache[d][t][`time${i}`]=u),this.timeCache[d][t]}capitalize(t){return typeof t!="string"?"":t.charAt(0).toUpperCase()+t.slice(1)}toLocaleString(t,n){const r=new Date(t);Math.floor(r.getTime()/1e3);const i={weekday:"long",month:"long",day:"numeric",year:"numeric",hour:"numeric",minute:"numeric",timeZoneName:"short"};return new Intl.DateTimeFormat(n,i).formatToParts(r).reduce((o,l)=>l.type==="timeZoneName"?o+this.getTimezone():o+l.value,"")}}const open="{",close="}",bang="!",longToken=open+open+bang,tokenPattern=new RegExp("\\"+open+"+"+bang+"(:?.*?)\\"+close+"+"),pendingClass="a8-pending",pendingStyleId="a8-pending",maxTokenLength=300,unrenderedTags=["SCRIPT","STYLE","NOSCRIPT","TEMPLATE","SELECT","HEAD","HTML"];function createPending(){var t,n;if(document.getElementById(pendingStyleId))return;const s=document.createElement("style");s.id=pendingStyleId,s.textContent="."+pendingClass+" { opacity: 0 !important; animation-name: none !important; }",((n=(t=document.head)!=null?t:document.body)!=null?n:document.documentElement).appendChild(s)}function notProps(s){return s.nodeType!==Node.ATTRIBUTE_NODE||s.name!=="props"}function notMinifiedScript(s){var a,d,o,l;const t=(o=(d=(a=s==null?void 0:s.nodeValue)==null?void 0:a.match)==null?void 0:d.call(a,tokenPattern))!=null?o:null;if(!t||(s==null?void 0:s.nodeValue)&&/VWO/.test(s.nodeValue))return!1;const r=s==null?void 0:s.parentNode;return(r==null?void 0:r.id)==="__NUXT_DATA__"||(r==null?void 0:r.tagName)==="SCRIPT"&&!((l=s==null?void 0:s.nodeValue)!=null&&l.includes(longToken))?!1:t[0].length<maxTokenLength}function setPending(s){const t=s instanceof Element?s:s instanceof Attr?s.ownerElement:s.parentElement;if(!(!t||unrenderedTags.includes(t.tagName))&&!t.classList.contains(pendingClass))try{t.classList.add(pendingClass)}catch(n){console.error(n)}}const a8window$d=window;class AEventDomUtility{static getInstance(){return a8window$d.a8DomUtility||(a8window$d.a8DomUtility=new AEventDomUtility),a8window$d.a8DomUtility}constructor(){this.element=document.createElement("div"),this.webinarCount=null,this.queue=[],this.createPending(),this.processInterval=setInterval(()=>{this.queue.length>0&&this.process()},100)}setWebinarCount(t){return this.webinarCount=t,this}setTemplateVariables(t){return this.templateVariables=t,this.process(),this.clearPending(),this}encodeText(t){var n,r;return t&&typeof t=="string"&&(t=t.replace("<br>",`
`),t=t.replace(/<script[^>]*>([\S\s]*?)<\/script>/gim,""),t=t.replace(/<\/?\w(?:[^"'>]|"[^"]*"|'[^']*')*>/gim,""),this.element.innerHTML=t,t=(r=(n=this.element)==null?void 0:n.textContent)!=null?r:"",this.element.textContent=""),t}getAllButtons(){let t=document.querySelectorAll("[data-title^=webinar][data-title$=button]");return t.length==0&&(t=document.querySelectorAll("a[data-gp-classes]:not([gp-embed-content])")),t.length==0&&(t=document.querySelectorAll("[id^=webinar][id$=button]")),t.length==0&&(t=document.querySelectorAll('a[href="#open-popup"]')),t}getButtonID(t){var n,r,i;if("getAttribute"in t){const a=(n=t.getAttribute("data-title"))!=null?n:t.getAttribute("id");if(a&&a.match(/webinar\d+button/))return(i=(r=a.split(""))==null?void 0:r.filter(d=>d.match(/\d/)))==null?void 0:i.join("")}}getUniqueButtonCount(){var t;return(t=[...new Set(Array.from(this.getAllButtons()).map(n=>this.getButtonID(n)).filter(n=>!!n))].length)!=null?t:0}replaceDate(t){var i,a,d;return(d=(a=((i=AEventDateUtility.getInstance().formatDate(t.timeStamp,t.language)[t.format])!=null?i:"").split(/GMT\-|GMT\+|\+|\//))==null?void 0:a[0])!=null?d:""}replaceText(t){let n=t;return n=this.replaceTextWith(n,/\{(:?.*?)\}+/g,/\{|\}|\!/g),n=this.replaceTextWith(n,/(?:%7B)(?:.*?)(:?%7D)+/g,/\!?(?:%7[D|B])+\!?/g),n}buildFallback(t){if(/evergreen-webinar(\d+)(?!\d|id)/.test(t)){const a=t.match(/evergreen-webinar(\d+)/),[d,o]=a;return`{{!reg-dayofweek${o}?,}} {{!reg-dayofmonth${o}}} {{!reg-month${o}? -}} {{!reg-timeZone${o}}`}if(!/evergreen-/.test(t))return"";if(/evergreen-webinar(\d+)id/.test(t)){const a=t.match(/evergreen-webinar(\d+)id/),[d,o]=a;return`{{!webinar-webinar${o}id}}`}return t.replace("evergreen","reg")}isFallbackAllowed(t){var r;if(!this.webinarCount)return!1;const n=(r=t.match(/(\d+)/))==null?void 0:r[1];return n?parseInt(n)<=this.webinarCount:!1}isHidingVariable(t){return!t.match(/registrantID|evergreen/)}getPostfix(t){var r;const n=t.match(/\?(:?.*?)\}+/);return(r=n==null?void 0:n[1])!=null?r:""}replaceTextWith(t,n,r){var l,u,c,h,f,y,w,$,m,C,v,T;let i=t;const a=i==null?void 0:i.matchAll(n);if(!a)return t!=null?t:"";let d=a.next(),o={};for(;!d.done;){const _=(u=(l=d==null?void 0:d.value)==null?void 0:l[0])!=null?u:"";let S=_.replaceAll(r,"");const O=/^\s*(?:\+|%2B)/.test(S);if(S=S.replace(/^\s*(?:\+|%2B)/,""),S=(f=(h=(c=S.split("|"))==null?void 0:c[0])==null?void 0:h.trim)==null?void 0:f.call(h),S=($=(w=(y=S.split("?"))==null?void 0:y[0])==null?void 0:w.trim)==null?void 0:$.call(w),!S)continue;let I=(m=this.templateVariables[S])!=null?m:"";if(S!=null&&S.match(/startsIn|expiresIn/)){const F=S.replace("webinar-startsIn","timestamp").replace("startsIn","timestamp").replace("replay-expiresIn","ReplayExpiretimeStamp"),R=(C=this.templateVariables[F])!=null?C:0;I=parseInt(Math.max(R-Date.now()/1e3,0))}if(I||(I=(T=(v=Object.entries(this.templateVariables).find(([F,R])=>{var D,E;return((D=F==null?void 0:F.toLowerCase)==null?void 0:D.call(F))===((E=S==null?void 0:S.toLowerCase)==null?void 0:E.call(S))}))==null?void 0:v[1])!=null?T:""),typeof I!="string"&&typeof I!="number"&&I.isDate?I=this.replaceDate(I):I=this.encodeText(I),I!==""&&_.includes("?")){const F=this.getPostfix(_);I=`${I}${F}`}I!==""&&O&&(I=encodeURIComponent(I)),I===""&&this.isFallbackAllowed(_)&&(I=this.buildFallback(_)),I===""&&!this.isHidingVariable(_)&&(I=_),o[_]=I,d=a.next()}return Object.entries(o).map(([_,S])=>{i=i.replaceAll(_,S),i=i.replaceAll(_.toLowerCase(),S)}),/joinurl/.test(t)&&(i=i.replace("http://https://","https://"),i=i.replace("https://https://","https://")),i}replaceAttribute(t){if(this.removePending(t),!(t!=null&&t.value))return;let n=this.replaceText(t==null?void 0:t.value),r=this.replaceText(n);for(;r!==n;)n=r,r=this.replaceText(n);t&&r!=(t==null?void 0:t.value)&&(t.value=r)}replaceTextNode(t){var i;if(this.removePending(t),!t.nodeValue)return;let n=this.replaceText((i=t.nodeValue)!=null?i:""),r=this.replaceText(n!=null?n:"");for(;r!==n;)n=r,r=this.replaceText(n!=null?n:"");t.nodeValue!=r&&(t.nodeValue=r)}uniqueByType(t,n){var o;const r=n.replaceFunction.name,i=(o=t[r])!=null?o:{elements:[],replaceFunction:n.replaceFunction},a=this.unique(i.elements,n.element),d={};return d[r]={...i,elements:a},{...t,...d}}unique(t,n){const r=t.find(a=>a.contains(n)||n.contains(a)||n.isSameNode(a));return r?r.contains(n)||r.isSameNode(n)?t:[...t.filter(a=>!a.isSameNode(r)),n]:[...t,n]}getQueue(){const t=this.queue.reduce(this.uniqueByType.bind(this),{});return Object.values(t).flatMap(({replaceFunction:n,elements:r})=>r.map(i=>({replaceFunction:n,element:i})))}process(){if(!this.templateVariables){this.queue.length&&(this.queue=this.getQueue());return}const t=this.getQueue();this.queue=[],t.forEach(({replaceFunction:n,element:r})=>{n.call(this,r)})}attemptReplace({foundBy:t,confirmFunction:n,replaceFunction:r},i){try{const a=document.evaluate(t,i,null,XPathResult.ORDERED_NODE_SNAPSHOT_TYPE,null);for(let d=0;d<a.snapshotLength;d++)if(n(a.snapshotItem(d))){let o=a.snapshotItem(d);this.templateVariables||this.setPending(o),this.queue.push({replaceFunction:r,element:o})}return this.process(),a.snapshotLength}catch(a){return 0}}notProps(t){return notProps(t)}notMinifiedScript(t){return notMinifiedScript(t)}personalizePage(){return this.replaceTemplateVariables(document),this.personalizeChanges(),this}onChange(t){var r,i,a,d,o,l;if(!(((r=t.target)==null?void 0:r.tagName)==="BODY"||t.attributeName==="style"||t.attributeName==="props"||t.attributeName==="data-digit"||(a=(i=t.target)==null?void 0:i.hasAttribute)!=null&&a.call(i,"data-digit"))){if(((d=t.target)==null?void 0:d.tagName)==="FORM"&&((l=(o=t.target)==null?void 0:o.action)!=null&&l.match(/aevent.online\/registration/))&&AEvent.getInstance().addTimezone(),t.type!=="childList")return this.replaceTemplateVariables(t.target);Array.from(t.addedNodes).forEach(this.replaceTemplateVariables.bind(this))}}onChanges(t){t.forEach(this.onChange.bind(this))}personalizeChanges(){this.observer||(this.observer=new MutationObserver(this.onChanges.bind(this)),this.observer.observe(document.body,{childList:!0,subtree:!0,characterData:!0,attributes:!0}))}replaceTemplateVariables(t){const n={singleBrackets:{foundBy:".//text()[contains(.,'{!')]",confirmFunction:this.notMinifiedScript.bind(this),replaceFunction:this.replaceTextNode.bind(this)},singleBracketAttributes:{foundBy:".//@*[contains(.,'{!')]",confirmFunction:this.notProps.bind(this),replaceFunction:this.replaceAttribute.bind(this)},optionsDoubleBrackets:{foundBy:".//option[contains(text(),'{!')]",confirmFunction:r=>!0,replaceFunction:this.replaceTextNode.bind(this)},urlencodedBrackets:{foundBy:".//text()[contains(.,'{+')]",confirmFunction:this.notMinifiedScript.bind(this),replaceFunction:this.replaceTextNode.bind(this)},urlencodedBracketAttributes:{foundBy:".//@*[contains(.,'{+')]",confirmFunction:this.notProps.bind(this),replaceFunction:this.replaceAttribute.bind(this)},escapedUrlencodedBracketAttributes:{foundBy:".//@*[contains(.,'%7B%7B+')]",confirmFunction:r=>!0,replaceFunction:this.replaceAttribute.bind(this)},escapedUrlencodedPlusAttributes:{foundBy:".//@*[contains(.,'%7B%7B%2B')]",confirmFunction:r=>!0,replaceFunction:this.replaceAttribute.bind(this)},escapedDoubleBrackets:{foundBy:".//text()[contains(.,'%7B%7B!')]",confirmFunction:r=>!0,replaceFunction:this.replaceAttribute.bind(this)},escapedDoubleBracketAttributes:{foundBy:".//@*[contains(.,'%7B%7B!')]",confirmFunction:r=>!0,replaceFunction:this.replaceAttribute.bind(this)}};Object.values(n).forEach(r=>this.attemptReplace(r,t))}replaceBy(t,n,r,i,a=!1){let d=[];if(n=="id"){const o=document.getElementById(r);d=o?[o]:[]}else n=="class"?d=document.getElementsByClassName(r):n=="name"&&(d=document.getElementsByName(r));for(let o of d)(!a||!o[t]||o[t]=="")&&(o[t]=i)}localize(t,n){var i;const r=document.createTreeWalker(t,NodeFilter.SHOW_TEXT);for(let a=r.nextNode();a;a=r.nextNode()){const d=(i=a.nodeValue)!=null?i:"",o=n[d.trim()];o&&(a.nodeValue=d.replace(d.trim(),o))}t.querySelectorAll("[placeholder]").forEach(a=>{var d;a.placeholder=(d=n[a.placeholder.trim()])!=null?d:a.placeholder})}setPending(t){setPending(t)}removePending(t){var n,r,i;if((n=t.classList)!=null&&n.contains("a8-pending")){try{t.classList.remove("a8-pending")}catch(a){console.error(a)}return}if((i=(r=t.parentElement)==null?void 0:r.classList)!=null&&i.contains("a8-pending")){try{t.parentElement.classList.remove("a8-pending")}catch(a){console.error(a)}return}}createPending(){createPending()}clearPending(){Array.from(document.getElementsByClassName("a8-pending")).forEach(t=>{t.classList.remove("a8-pending")})}}const a8window$c=window;class AEventLocalizationHelper{static getInstance(){return a8window$c.a8LocalizationHelper||(a8window$c.a8LocalizationHelper=new AEventLocalizationHelper),a8window$c.a8LocalizationHelper}constructor(){this.locale=Intl.DateTimeFormat().resolvedOptions().locale,this.fallbacks={ja:{"Session Passed":"終了しました","In Session Now!":"ただいま開催中です！","Starting Now!":"まもなく始まります！"},"en-US":{"Session Passed":"Session Passed","In Session Now!":"In Session Now!","Starting Now!":"Starting Now!"}}}getTranslation(t,n=null){var a,d,o,l,u,c,h,f,y;const r=(d=(a=AEvent.getInstance())==null?void 0:a.localizations)!=null?d:this.fallbacks,i=n!=null?n:this.locale;return(y=(c=(o=r==null?void 0:r[i])==null?void 0:o[t])!=null?c:(u=(l=this.fallbacks)==null?void 0:l[i])==null?void 0:u[t])!=null?y:(f=(h=this.fallbacks)==null?void 0:h["en-US"])==null?void 0:f[t]}}const a8window$b=window;class AEventMultiSessionHelper{static getInstance(){return a8window$b.a8MultiSessionHelper||(a8window$b.a8MultiSessionHelper=new AEventMultiSessionHelper),a8window$b.a8MultiSessionHelper}init({upcoming:t,past:n,startBlockedFor:r,replaces:i,replayURL:a,expiredURL:d,registrationStart:o,dynamicWebinars:l}){this.upcomingWebinars=t,this.pastWebinars=n.sort((c,h)=>c.timestamp<h.timestamp?1:-1),this.domWebinarCount=AEvent.getInstance().getPageWebinarCount(),this.upcomingWebinarIDs={},this.startBlockedFor=r,this.replayURL=a,this.expiredURL=d,this.replaces=i,this.registrationStart=o,this.dynamicWebinars=l;const u=AEvent.getInstance().getUpcomingIDs();return u.forEach((c,h)=>{const f=h+1;this.upcomingWebinarIDs[f]=c}),this.disableButtonCount=Math.max(AEvent.getInstance().getPageWebinarIDs().length-u.length,0),this.validUpcoming=this.getValidUpcoming(),this.redirectEmpty(this.validUpcoming),this}redirectEmpty(t){var n,r,i;if(!((n=AEvent.getInstance())!=null&&n.loaded)&&((r=AEvent.getInstance())==null?void 0:r.page)!=="pixel"&&((i=AEvent.getInstance())==null?void 0:i.checkRegistrationType())==="multi-session"&&t&&t.length<1){let a="";this.replayExpired()?a=this.expiredURL:a=this.replayURL!==""?this.replayURL:this.expiredURL,a!==""&&a!==window.location.href&&typeof a!="undefined"&&a!=="undefined"&&(window.location.href=a)}}replayExpired(){var t,n,r;return!((r=AEvent.getInstance())!=null&&r.isTimestampInFuture(parseInt((n=(t=AEvent.getInstance())==null?void 0:t.replaces.replayTimestamp)!=null?n:"0")))}getAdjustedButtonID(t){const n=AEventDomUtility.getInstance().getButtonID(t);if(n)return""+this.getAdjustedID(parseInt(n))}getAdjustedID(t){return t-this.disableButtonCount}getWebinarFor(t){const n=this.getAdjustedButtonID(t);if(n)return this.upcomingWebinarIDs[n]}changeButtonStyle(t,n,r,i){var d,o,l;this.setButtonCaption(t,r);let a=t==null?void 0:t.childNodes[1];!a||!("style"in a)?(t.setAttribute("href",n),t.style.background=i,t.setAttribute("data-target",n)):("classList"in a&&a.classList.contains("thrive-colors-palette-config")?(a=t.querySelector("a"),a.querySelector(".tcb-button-text")):a&&"childNodes"in a&&((l=(d=a.childNodes)==null?void 0:d[1])!=null||(o=a.childNodes)==null||o[0]),a&&a.setAttribute("href",n),a&&"style"in a&&(a.style.background=i)),window.location.href.match(/joinch2/)&&Array.from(t.childNodes).forEach(u=>{"style"in u&&(u.style.backgroundColor=i)})}setButtonCaption(t,n){const r=this.getCaptionable(t);r&&(r.innerText=n)}isNodeCaptionable(t){return[].reduce.call(t.childNodes,function(r,i){return r+(i.nodeType===3?i.textContent:"")},"").match(/Register/i)}getCaptionable(t){return this.isNodeCaptionable(t)?t:Array.from(t.childNodes).find(n=>this.getCaptionable(n))}disableButtons(t){var a;let n=[...AEventDomUtility.getInstance().getAllButtons()].filter(d=>!!d.offsetParent),r=1;const i=(a=AEventLocalizationHelper.getInstance().getTranslation("Session Passed"))!=null?a:"Session Passed";n.forEach(d=>{if(r>t){r+=1;return}this.changeButtonStyle(d,"#",i,"rgb(128, 128, 128)"),d.style["pointer-events"]="none",r+=1})}highlightButton(t,n){let r=Array.from(AEventDomUtility.getInstance().getAllButtons()),i=1,a="#open-popup";r.forEach(d=>{let o=d.getAttribute("data-target");o!=="#"&&o!==""&&o!==null&&o!=="null"&&o&&(a=o)}),r.forEach(d=>{if(i!=t){i+=1;return}this.changeButtonStyle(d,a,n,"#008000"),i+=1})}updateWebinarButton(t,n){var r,i;t.isStarting&&this.highlightButton(n,(r=AEventLocalizationHelper.getInstance().getTranslation("Starting Now!"))!=null?r:"Starting Now!"),t.inSession&&this.highlightButton(n,(i=AEventLocalizationHelper.getInstance().getTranslation("In Session Now!"))!=null?i:"In Session Now!")}replaceWebinarId(t){const n=document.querySelector('input[name="webinarid"]'),r=this.getWebinarFor(t);r&&n&&typeof(n==null?void 0:n.value)!="undefined"&&(n.value=r)}getValidUpcoming(){return this.upcomingWebinars.filter(t=>AEvent.getInstance().isTimestampInFuture(t.timestamp))}countButtonsToDisable(){return Math.max(this.domWebinarCount-(this.getValidUpcoming().length+this.dynamicWebinars.length),0)}getReplacementsFor(t,n){const r=Object.fromEntries(Object.entries(t.data).map(([i,a])=>[i+(""+n),a]));return r[`webinar-webinar${n}id`]=t.webinarID,r}getReplacements(){const t=this.validUpcoming.map((i,a)=>{const d=1+a+this.disableButtonCount;return this.getReplacementsFor(i,d)}).reduce((i,a)=>({...a,...i}),{});let n=this.pastWebinars.reverse();n=n.splice(0,this.disableButtonCount),n=n.reverse();const r=n.map((i,a)=>this.getReplacementsFor(i,1+a)).reduce((i,a)=>({...a,...i}),{});return{...this.replaces,...r,...t}}handleButtons(){AEvent.getInstance().getPageWebinars().forEach((t,n)=>{AEvent.getInstance().isTimestampInFuture(t.timestamp)&&this.updateWebinarButton(t,n+1)}),this.disableButtons(this.disableButtonCount)}handle(){this.handleButtons(),this.listenForClick()}checkAttribute(t){const n=t.getAttribute("id");return n&&typeof n=="string"?!n.match(/^webinar\d+button$/):!0}listenForClick(){document.addEventListener("mousedown",t=>{var d,o;let n=t.target,r="data-title",i=document.querySelectorAll("[data-title]").length>0,a=document.querySelectorAll("a[data-gp-classes]:not([gp-embed-content])").length>0;for(i?r="data-title":a&&(r="data-gp-classes");!n.getAttribute(r)&&this.checkAttribute(n);){if(!n.parentElement)return;n=n.parentElement;const l=(d=n.getAttribute("id"))!=null?d:"";if((n.getAttribute(r)||n.getAttribute("id")&&l.match(/^webinar\d*button$/))&&this.replaceWebinarId(n),n.children)for(let u of Array.from(n.children)){const c=(o=u.getAttribute("id"))!=null?o:"";if(u.getAttribute(r)||u.getAttribute("id")&&c.match(/^webinar\d+button$/)){this.replaceWebinarId(u);return}}}this.replaceWebinarId(n),"path"in t?t.path.map(l=>{this.replaceWebinarId(l)}):t.target&&"parentElement"in t.target&&this.replaceWebinarId(t.target.parentElement)})}}const a8window$a=window;class AEventUtility{static getInstance(){return a8window$a.a8Utility||(a8window$a.a8Utility=new AEventUtility),a8window$a.a8Utility}constructor(){}loadScript(variable,url){var s,t;try{let n=document.createElement("script");return window[variable]||(n.type="text/javascript",n.src=url,(t=(s=document.getElementsByTagName("head"))==null?void 0:s[0])==null||t.appendChild(n),window[variable]=!0),n}catch(e){if(!(variable in a8window$a)){a8window$a[variable]=!0;try{return fetch(url).then(n=>n.text()).then(script=>eval(script)).catch(n=>console.log(n))}catch(n){}}return Promise.resolve(null)}}loadOneTimeScript(url){try{return fetch(url).then(s=>s.text()).then(script=>eval(script)).catch(s=>console.log(s))}catch(s){}return Promise.resolve(null)}loadStyleSheet(s){let t=document.createElement("link");t.setAttribute("rel","stylesheet"),t.setAttribute("type","text/css"),t.setAttribute("href",s),document.getElementsByTagName("head")[0].append(t)}loadInlineStyleSheet(s){let t=document.createElement("style");t.type="text/css",t.styleSheet?t.styleSheet.cssText=s:t.appendChild(document.createTextNode(s)),(document.head||document.getElementsByTagName("head")[0]).appendChild(t)}}const a8window$9=window;class AEventMultiOptionHelper{static getInstance(){return a8window$9.a8MultiOptionHelper||(a8window$9.a8MultiOptionHelper=new AEventMultiOptionHelper),a8window$9.a8MultiOptionHelper}init({upcoming:t}){return this.upcomingWebinars=t,this}handle(){this.addListener()}addListener(){const t=document.querySelector('select[data-custom-type="webinaridselect"]');t==null||t.addEventListener("change",n=>{var i;const r=document.querySelector('input[name="webinarid"]');r&&typeof((i=n==null?void 0:n.target)==null?void 0:i.value)!="undefined"&&(r.value=n.target.value)})}}const metadata={version:4,country_calling_codes:{1:["US","AG","AI","AS","BB","BM","BS","CA","DM","DO","GD","GU","JM","KN","KY","LC","MP","MS","PR","SX","TC","TT","VC","VG","VI"],7:["RU","KZ"],20:["EG"],27:["ZA"],30:["GR"],31:["NL"],32:["BE"],33:["FR"],34:["ES"],36:["HU"],39:["IT","VA"],40:["RO"],41:["CH"],43:["AT"],44:["GB","GG","IM","JE"],45:["DK"],46:["SE"],47:["NO","SJ"],48:["PL"],49:["DE"],51:["PE"],52:["MX"],53:["CU"],54:["AR"],55:["BR"],56:["CL"],57:["CO"],58:["VE"],60:["MY"],61:["AU","CC","CX"],62:["ID"],63:["PH"],64:["NZ"],65:["SG"],66:["TH"],81:["JP"],82:["KR"],84:["VN"],86:["CN"],90:["TR"],91:["IN"],92:["PK"],93:["AF"],94:["LK"],95:["MM"],98:["IR"],211:["SS"],212:["MA","EH"],213:["DZ"],216:["TN"],218:["LY"],220:["GM"],221:["SN"],222:["MR"],223:["ML"],224:["GN"],225:["CI"],226:["BF"],227:["NE"],228:["TG"],229:["BJ"],230:["MU"],231:["LR"],232:["SL"],233:["GH"],234:["NG"],235:["TD"],236:["CF"],237:["CM"],238:["CV"],239:["ST"],240:["GQ"],241:["GA"],242:["CG"],243:["CD"],244:["AO"],245:["GW"],246:["IO"],247:["AC"],248:["SC"],249:["SD"],250:["RW"],251:["ET"],252:["SO"],253:["DJ"],254:["KE"],255:["TZ"],256:["UG"],257:["BI"],258:["MZ"],260:["ZM"],261:["MG"],262:["RE","YT"],263:["ZW"],264:["NA"],265:["MW"],266:["LS"],267:["BW"],268:["SZ"],269:["KM"],290:["SH","TA"],291:["ER"],297:["AW"],298:["FO"],299:["GL"],350:["GI"],351:["PT"],352:["LU"],353:["IE"],354:["IS"],355:["AL"],356:["MT"],357:["CY"],358:["FI","AX"],359:["BG"],370:["LT"],371:["LV"],372:["EE"],373:["MD"],374:["AM"],375:["BY"],376:["AD"],377:["MC"],378:["SM"],380:["UA"],381:["RS"],382:["ME"],383:["XK"],385:["HR"],386:["SI"],387:["BA"],389:["MK"],420:["CZ"],421:["SK"],423:["LI"],500:["FK"],501:["BZ"],502:["GT"],503:["SV"],504:["HN"],505:["NI"],506:["CR"],507:["PA"],508:["PM"],509:["HT"],590:["GP","BL","MF"],591:["BO"],592:["GY"],593:["EC"],594:["GF"],595:["PY"],596:["MQ"],597:["SR"],598:["UY"],599:["CW","BQ"],670:["TL"],672:["NF"],673:["BN"],674:["NR"],675:["PG"],676:["TO"],677:["SB"],678:["VU"],679:["FJ"],680:["PW"],681:["WF"],682:["CK"],683:["NU"],685:["WS"],686:["KI"],687:["NC"],688:["TV"],689:["PF"],690:["TK"],691:["FM"],692:["MH"],850:["KP"],852:["HK"],853:["MO"],855:["KH"],856:["LA"],880:["BD"],886:["TW"],960:["MV"],961:["LB"],962:["JO"],963:["SY"],964:["IQ"],965:["KW"],966:["SA"],967:["YE"],968:["OM"],970:["PS"],971:["AE"],972:["IL"],973:["BH"],974:["QA"],975:["BT"],976:["MN"],977:["NP"],992:["TJ"],993:["TM"],994:["AZ"],995:["GE"],996:["KG"],998:["UZ"]},countries:{AC:["247","00","(?:[01589]\\d|[46])\\d{4}",[5,6]],AD:["376","00","(?:1|6\\d)\\d{7}|[135-9]\\d{5}",[6,8,9],[["(\\d{3})(\\d{3})","$1 $2",["[135-9]"]],["(\\d{4})(\\d{4})","$1 $2",["1"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["6"]]]],AE:["971","00","(?:[4-7]\\d|9[0-689])\\d{7}|800\\d{2,9}|[2-4679]\\d{7}",[5,6,7,8,9,10,11,12],[["(\\d{3})(\\d{2,9})","$1 $2",["60|8"]],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["[236]|[479][2-8]"],"0$1"],["(\\d{3})(\\d)(\\d{5})","$1 $2 $3",["[479]"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["5"],"0$1"]],"0"],AF:["93","00","[2-7]\\d{8}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[2-7]"],"0$1"]],"0"],AG:["1","011","(?:268|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([457]\\d{6})$|1","268$1",0,"268"],AI:["1","011","(?:264|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2457]\\d{6})$|1","264$1",0,"264"],AL:["355","00","(?:700\\d\\d|900)\\d{3}|8\\d{5,7}|(?:[2-5]|6\\d)\\d{7}",[6,7,8,9],[["(\\d{3})(\\d{3,4})","$1 $2",["80|9"],"0$1"],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["4[2-6]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[2358][2-5]|4"],"0$1"],["(\\d{3})(\\d{5})","$1 $2",["[23578]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["6"],"0$1"]],"0"],AM:["374","00","(?:[1-489]\\d|55|60|77)\\d{6}",[8],[["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["[89]0"],"0 $1"],["(\\d{3})(\\d{5})","$1 $2",["2|3[12]"],"(0$1)"],["(\\d{2})(\\d{6})","$1 $2",["1|47"],"(0$1)"],["(\\d{2})(\\d{6})","$1 $2",["[3-9]"],"0$1"]],"0"],AO:["244","00","[29]\\d{8}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[29]"]]]],AR:["54","00","(?:11|[89]\\d\\d)\\d{8}|[2368]\\d{9}",[10,11],[["(\\d{4})(\\d{2})(\\d{4})","$1 $2-$3",["2(?:2[024-9]|3[0-59]|47|6[245]|9[02-8])|3(?:3[28]|4[03-9]|5[2-46-8]|7[1-578]|8[2-9])","2(?:[23]02|6(?:[25]|4[6-8])|9(?:[02356]|4[02568]|72|8[23]))|3(?:3[28]|4(?:[04679]|3[5-8]|5[4-68]|8[2379])|5(?:[2467]|3[237]|8[2-5])|7[1-578]|8(?:[2469]|3[2578]|5[4-8]|7[36-8]|8[5-8]))|2(?:2[24-9]|3[1-59]|47)","2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3[78]|5(?:4[46]|8)|8[2379])|5(?:[2467]|3[237]|8[23])|7[1-578]|8(?:[2469]|3[278]|5[56][46]|86[3-6]))|2(?:2[24-9]|3[1-59]|47)|38(?:[58][78]|7[378])|3(?:4[35][56]|58[45]|8(?:[38]5|54|76))[4-6]","2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3(?:5(?:4[0-25689]|[56])|[78])|58|8[2379])|5(?:[2467]|3[237]|8(?:[23]|4(?:[45]|60)|5(?:4[0-39]|5|64)))|7[1-578]|8(?:[2469]|3[278]|54(?:4|5[13-7]|6[89])|86[3-6]))|2(?:2[24-9]|3[1-59]|47)|38(?:[58][78]|7[378])|3(?:454|85[56])[46]|3(?:4(?:36|5[56])|8(?:[38]5|76))[4-6]"],"0$1",1],["(\\d{2})(\\d{4})(\\d{4})","$1 $2-$3",["1"],"0$1",1],["(\\d{3})(\\d{3})(\\d{4})","$1-$2-$3",["[68]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2-$3",["[23]"],"0$1",1],["(\\d)(\\d{4})(\\d{2})(\\d{4})","$2 15-$3-$4",["9(?:2[2-469]|3[3-578])","9(?:2(?:2[024-9]|3[0-59]|47|6[245]|9[02-8])|3(?:3[28]|4[03-9]|5[2-46-8]|7[1-578]|8[2-9]))","9(?:2(?:[23]02|6(?:[25]|4[6-8])|9(?:[02356]|4[02568]|72|8[23]))|3(?:3[28]|4(?:[04679]|3[5-8]|5[4-68]|8[2379])|5(?:[2467]|3[237]|8[2-5])|7[1-578]|8(?:[2469]|3[2578]|5[4-8]|7[36-8]|8[5-8])))|92(?:2[24-9]|3[1-59]|47)","9(?:2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3[78]|5(?:4[46]|8)|8[2379])|5(?:[2467]|3[237]|8[23])|7[1-578]|8(?:[2469]|3[278]|5(?:[56][46]|[78])|7[378]|8(?:6[3-6]|[78]))))|92(?:2[24-9]|3[1-59]|47)|93(?:4[35][56]|58[45]|8(?:[38]5|54|76))[4-6]","9(?:2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3(?:5(?:4[0-25689]|[56])|[78])|5(?:4[46]|8)|8[2379])|5(?:[2467]|3[237]|8(?:[23]|4(?:[45]|60)|5(?:4[0-39]|5|64)))|7[1-578]|8(?:[2469]|3[278]|5(?:4(?:4|5[13-7]|6[89])|[56][46]|[78])|7[378]|8(?:6[3-6]|[78]))))|92(?:2[24-9]|3[1-59]|47)|93(?:4(?:36|5[56])|8(?:[38]5|76))[4-6]"],"0$1",0,"$1 $2 $3-$4"],["(\\d)(\\d{2})(\\d{4})(\\d{4})","$2 15-$3-$4",["91"],"0$1",0,"$1 $2 $3-$4"],["(\\d{3})(\\d{3})(\\d{5})","$1-$2-$3",["8"],"0$1"],["(\\d)(\\d{3})(\\d{3})(\\d{4})","$2 15-$3-$4",["9"],"0$1",0,"$1 $2 $3-$4"]],"0",0,"0?(?:(11|2(?:2(?:02?|[13]|2[13-79]|4[1-6]|5[2457]|6[124-8]|7[1-4]|8[13-6]|9[1267])|3(?:02?|1[467]|2[03-6]|3[13-8]|[49][2-6]|5[2-8]|[67])|4(?:7[3-578]|9)|6(?:[0136]|2[24-6]|4[6-8]?|5[15-8])|80|9(?:0[1-3]|[19]|2\\d|3[1-6]|4[02568]?|5[2-4]|6[2-46]|72?|8[23]?))|3(?:3(?:2[79]|6|8[2578])|4(?:0[0-24-9]|[12]|3[5-8]?|4[24-7]|5[4-68]?|6[02-9]|7[126]|8[2379]?|9[1-36-8])|5(?:1|2[1245]|3[237]?|4[1-46-9]|6[2-4]|7[1-6]|8[2-5]?)|6[24]|7(?:[069]|1[1568]|2[15]|3[145]|4[13]|5[14-8]|7[2-57]|8[126])|8(?:[01]|2[15-7]|3[2578]?|4[13-6]|5[4-8]?|6[1-357-9]|7[36-8]?|8[5-8]?|9[124])))15)?","9$1"],AS:["1","011","(?:[58]\\d\\d|684|900)\\d{7}",[10],0,"1",0,"([267]\\d{6})$|1","684$1",0,"684"],AT:["43","00","1\\d{3,12}|2\\d{6,12}|43(?:(?:0\\d|5[02-9])\\d{3,9}|2\\d{4,5}|[3467]\\d{4}|8\\d{4,6}|9\\d{4,7})|5\\d{4,12}|8\\d{7,12}|9\\d{8,12}|(?:[367]\\d|4[0-24-9])\\d{4,11}",[4,5,6,7,8,9,10,11,12,13],[["(\\d)(\\d{3,12})","$1 $2",["1(?:11|[2-9])"],"0$1"],["(\\d{3})(\\d{2})","$1 $2",["517"],"0$1"],["(\\d{2})(\\d{3,5})","$1 $2",["5[079]"],"0$1"],["(\\d{3})(\\d{3,10})","$1 $2",["(?:31|4)6|51|6(?:48|5[0-3579]|[6-9])|7(?:20|32|8)|[89]","(?:31|4)6|51|6(?:485|5[0-3579]|[6-9])|7(?:20|32|8)|[89]"],"0$1"],["(\\d{4})(\\d{3,9})","$1 $2",["[2-467]|5[2-6]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["5"],"0$1"],["(\\d{2})(\\d{4})(\\d{4,7})","$1 $2 $3",["5"],"0$1"]],"0"],AU:["61","001[14-689]|14(?:1[14]|34|4[17]|[56]6|7[47]|88)0011","1(?:[0-79]\\d{7}(?:\\d(?:\\d{2})?)?|8[0-24-9]\\d{7})|[2-478]\\d{8}|1\\d{4,7}",[5,6,7,8,9,10,12],[["(\\d{2})(\\d{3,4})","$1 $2",["16"],"0$1"],["(\\d{2})(\\d{3})(\\d{2,4})","$1 $2 $3",["16"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["14|4"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["[2378]"],"(0$1)"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1(?:30|[89])"]]],"0",0,"(183[12])|0",0,0,0,[["(?:(?:2(?:(?:[0-26-9]\\d|3[0-8]|5[0135-9])\\d|4(?:[02-9]\\d|10))|3(?:(?:[0-3589]\\d|6[1-9]|7[0-35-9])\\d|4(?:[0-578]\\d|90))|7(?:[013-57-9]\\d|2[0-8])\\d)\\d\\d|8(?:51(?:0(?:0[03-9]|[12479]\\d|3[2-9]|5[0-8]|6[1-9]|8[0-7])|1(?:[0235689]\\d|1[0-69]|4[0-589]|7[0-47-9])|2(?:0[0-79]|[18][13579]|2[14-9]|3[0-46-9]|[4-6]\\d|7[89]|9[0-4])|[34]\\d\\d)|(?:6[0-8]|[78]\\d)\\d{3}|9(?:[02-9]\\d{3}|1(?:(?:[0-58]\\d|6[0135-9])\\d|7(?:0[0-24-9]|[1-9]\\d)|9(?:[0-46-9]\\d|5[0-79])))))\\d{3}",[9]],["4(?:79[01]|83[0-389]|94[0-478])\\d{5}|4(?:[0-36]\\d|4[047-9]|5[0-25-9]|7[02-8]|8[0-24-9]|9[0-37-9])\\d{6}",[9]],["180(?:0\\d{3}|2)\\d{3}",[7,10]],["190[0-26]\\d{6}",[10]],0,0,0,["163\\d{2,6}",[5,6,7,8,9]],["14(?:5(?:1[0458]|[23][458])|71\\d)\\d{4}",[9]],["13(?:00\\d{6}(?:\\d{2})?|45[0-4]\\d{3})|13\\d{4}",[6,8,10,12]]],"0011"],AW:["297","00","(?:[25-79]\\d\\d|800)\\d{4}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[25-9]"]]]],AX:["358","00|99(?:[01469]|5(?:[14]1|3[23]|5[59]|77|88|9[09]))","2\\d{4,9}|35\\d{4,5}|(?:60\\d\\d|800)\\d{4,6}|7\\d{5,11}|(?:[14]\\d|3[0-46-9]|50)\\d{4,8}",[5,6,7,8,9,10,11,12],0,"0",0,0,0,0,"18",0,"00"],AZ:["994","00","365\\d{6}|(?:[124579]\\d|60|88)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["90"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["1[28]|2|365|46","1[28]|2|365[45]|46","1[28]|2|365(?:4|5[02])|46"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[13-9]"],"0$1"]],"0"],BA:["387","00","6\\d{8}|(?:[35689]\\d|49|70)\\d{6}",[8,9],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["6[1-3]|[7-9]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2-$3",["[3-5]|6[56]"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3 $4",["6"],"0$1"]],"0"],BB:["1","011","(?:246|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","246$1",0,"246"],BD:["880","00","[1-469]\\d{9}|8[0-79]\\d{7,8}|[2-79]\\d{8}|[2-9]\\d{7}|[3-9]\\d{6}|[57-9]\\d{5}",[6,7,8,9,10],[["(\\d{2})(\\d{4,6})","$1-$2",["31[5-8]|[459]1"],"0$1"],["(\\d{3})(\\d{3,7})","$1-$2",["3(?:[67]|8[013-9])|4(?:6[168]|7|[89][18])|5(?:6[128]|9)|6(?:[15]|28|4[14])|7[2-589]|8(?:0[014-9]|[12])|9[358]|(?:3[2-5]|4[235]|5[2-578]|6[0389]|76|8[3-7]|9[24])1|(?:44|66)[01346-9]"],"0$1"],["(\\d{4})(\\d{3,6})","$1-$2",["[13-9]|2[23]"],"0$1"],["(\\d)(\\d{7,8})","$1-$2",["2"],"0$1"]],"0"],BE:["32","00","4\\d{8}|[1-9]\\d{7}",[8,9],[["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["(?:80|9)0"],"0$1"],["(\\d)(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[239]|4[23]"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[15-8]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["4"],"0$1"]],"0"],BF:["226","00","(?:[025-7]\\d|44)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[024-7]"]]]],BG:["359","00","00800\\d{7}|[2-7]\\d{6,7}|[89]\\d{6,8}|2\\d{5}",[6,7,8,9,12],[["(\\d)(\\d)(\\d{2})(\\d{2})","$1 $2 $3 $4",["2"],"0$1"],["(\\d{3})(\\d{4})","$1 $2",["43[1-6]|70[1-9]"],"0$1"],["(\\d)(\\d{3})(\\d{3,4})","$1 $2 $3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{2,3})","$1 $2 $3",["[356]|4[124-7]|7[1-9]|8[1-6]|9[1-7]"],"0$1"],["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["(?:70|8)0"],"0$1"],["(\\d{3})(\\d{3})(\\d{2})","$1 $2 $3",["43[1-7]|7"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[48]|9[08]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["9"],"0$1"]],"0"],BH:["973","00","[136-9]\\d{7}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[13679]|8[02-4679]"]]]],BI:["257","00","(?:[267]\\d|31)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2367]"]]]],BJ:["229","00","(?:01\\d|[24-689])\\d{7}",[8,10],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[24-689]"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["0"]]]],BL:["590","00","(?:590\\d|7090)\\d{5}|(?:69|80|9\\d)\\d{7}",[9],0,"0",0,0,0,0,0,[["590(?:2[7-9]|3[3-7]|5[12]|87)\\d{4}"],["(?:69(?:0\\d\\d|1(?:2[2-9]|3[0-5])|4(?:0[89]|1[2-6]|9\\d)|6(?:1[016-9]|5[0-4]|[67]\\d))|7090[0-4])\\d{4}"],["80[0-5]\\d{6}"],0,0,0,0,0,["9(?:(?:39[5-7]|76[018])\\d|475[0-6])\\d{4}"]]],BM:["1","011","(?:441|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","441$1",0,"441"],BN:["673","00","[2-578]\\d{6}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[2-578]"]]]],BO:["591","00(?:1\\d)?","8001\\d{5}|(?:[2-467]\\d|50)\\d{6}",[8,9],[["(\\d)(\\d{7})","$1 $2",["[235]|4[46]"]],["(\\d{8})","$1",["[67]"]],["(\\d{3})(\\d{2})(\\d{4})","$1 $2 $3",["8"]]],"0",0,"0(1\\d)?"],BQ:["599","00","(?:[34]1|7\\d)\\d{5}",[7],0,0,0,0,0,0,"[347]"],BR:["55","00(?:1[245]|2[1-35]|31|4[13]|[56]5|99)","[1-467]\\d{9,10}|55[0-46-9]\\d{8}|[34]\\d{7}|55\\d{7,8}|(?:5[0-46-9]|[89]\\d)\\d{7,9}",[8,9,10,11],[["(\\d{4})(\\d{4})","$1-$2",["300|4(?:0[02]|37|86)","300|4(?:0(?:0|20)|370|864)"]],["(\\d{3})(\\d{2,3})(\\d{4})","$1 $2 $3",["(?:[358]|90)0"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1 $2-$3",["(?:[14689][1-9]|2[12478]|3[1-578]|5[13-5]|7[13-579])[2-57]"],"($1)"],["(\\d{2})(\\d{5})(\\d{4})","$1 $2-$3",["[16][1-9]|[2-57-9]"],"($1)"]],"0",0,"(?:0|90)(?:(1[245]|2[1-35]|31|4[13]|[56]5|99)(\\d{10,11}))?","$2"],BS:["1","011","(?:242|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([3-8]\\d{6})$|1","242$1",0,"242"],BT:["975","00","[17]\\d{7}|[2-8]\\d{6}",[7,8],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[2-68]|7[246]"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["1[67]|7"]]]],BW:["267","00","(?:0800|(?:[37]|800)\\d)\\d{6}|(?:[2-6]\\d|90)\\d{5}",[7,8,10],[["(\\d{2})(\\d{5})","$1 $2",["90"]],["(\\d{3})(\\d{4})","$1 $2",["[24-6]|3[15-9]"]],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[37]"]],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["0"]],["(\\d{3})(\\d{4})(\\d{3})","$1 $2 $3",["8"]]]],BY:["375","810","(?:[12]\\d|33|44|902)\\d{7}|8(?:0[0-79]\\d{5,7}|[1-7]\\d{9})|8(?:1[0-489]|[5-79]\\d)\\d{7}|8[1-79]\\d{6,7}|8[0-79]\\d{5}|8\\d{5}",[6,7,8,9,10,11],[["(\\d{3})(\\d{3})","$1 $2",["800"],"8 $1"],["(\\d{3})(\\d{2})(\\d{2,4})","$1 $2 $3",["800"],"8 $1"],["(\\d{4})(\\d{2})(\\d{3})","$1 $2-$3",["1(?:5[169]|6[3-5]|7[179])|2(?:1[35]|2[34]|3[3-5])","1(?:5[169]|6(?:3[1-3]|4|5[125])|7(?:1[3-9]|7[0-24-6]|9[2-7]))|2(?:1[35]|2[34]|3[3-5])"],"8 0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2-$3-$4",["1(?:[56]|7[467])|2[1-3]"],"8 0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2-$3-$4",["[1-4]"],"8 0$1"],["(\\d{3})(\\d{3,4})(\\d{4})","$1 $2 $3",["[89]"],"8 $1"]],"8",0,"0|80?",0,0,0,0,"8~10"],BZ:["501","00","(?:0800\\d|[2-8])\\d{6}",[7,11],[["(\\d{3})(\\d{4})","$1-$2",["[2-8]"]],["(\\d)(\\d{3})(\\d{4})(\\d{3})","$1-$2-$3-$4",["0"]]]],CA:["1","011","[2-9]\\d{9}|3\\d{6}",[7,10],0,"1",0,0,0,0,0,[["(?:2(?:04|[23]6|[48]9|5[07]|63)|3(?:06|43|54|6[578]|82)|4(?:03|1[68]|[26]8|3[178]|50|74)|5(?:06|1[49]|48|79|8[147])|6(?:04|[18]3|39|47|72)|7(?:0[59]|42|53|78|8[02])|8(?:[06]7|19|25|7[39])|9(?:0[25]|42))[2-9]\\d{6}",[10]],["",[10]],["8(?:00|33|44|55|66|77|88)[2-9]\\d{6}",[10]],["900[2-9]\\d{6}",[10]],["52(?:3(?:[2-46-9][02-9]\\d|5(?:[02-46-9]\\d|5[0-46-9]))|4(?:[2-478][02-9]\\d|5(?:[034]\\d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]\\d)|9(?:[05-9]\\d|2[0-5]|49)))\\d{4}|52[34][2-9]1[02-9]\\d{4}|(?:5(?:2[125-9]|33|44|66|77|88)|6(?:22|33))[2-9]\\d{6}",[10]],0,["310\\d{4}",[7]],0,["600[2-9]\\d{6}",[10]]]],CC:["61","001[14-689]|14(?:1[14]|34|4[17]|[56]6|7[47]|88)0011","1(?:[0-79]\\d{8}(?:\\d{2})?|8[0-24-9]\\d{7})|[148]\\d{8}|1\\d{5,7}",[6,7,8,9,10,12],0,"0",0,"([59]\\d{7})$|0","8$1",0,0,[["8(?:51(?:0(?:02|31|60|89)|1(?:18|76)|223)|91(?:0(?:1[0-2]|29)|1(?:[28]2|50|79)|2(?:10|64)|3(?:[06]8|22)|4[29]8|62\\d|70[23]|959))\\d{3}",[9]],["4(?:79[01]|83[0-389]|94[0-478])\\d{5}|4(?:[0-36]\\d|4[047-9]|5[0-25-9]|7[02-8]|8[0-24-9]|9[0-37-9])\\d{6}",[9]],["180(?:0\\d{3}|2)\\d{3}",[7,10]],["190[0-26]\\d{6}",[10]],0,0,0,0,["14(?:5(?:1[0458]|[23][458])|71\\d)\\d{4}",[9]],["13(?:00\\d{6}(?:\\d{2})?|45[0-4]\\d{3})|13\\d{4}",[6,8,10,12]]],"0011"],CD:["243","00","(?:(?:[189]|5\\d)\\d|2)\\d{7}|[1-68]\\d{6}",[7,8,9,10],[["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["88"],"0$1"],["(\\d{2})(\\d{5})","$1 $2",["[1-6]"],"0$1"],["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["1"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[89]"],"0$1"],["(\\d{2})(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3 $4",["5"],"0$1"]],"0"],CF:["236","00","(?:[27]\\d{3}|8776)\\d{4}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[278]"]]]],CG:["242","00","222\\d{6}|(?:0\\d|80)\\d{7}",[9],[["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["8"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[02]"]]]],CH:["41","00","8\\d{11}|[2-9]\\d{8}",[9,12],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8[047]|90"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-79]|81"],"0$1"],["(\\d{3})(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["8"],"0$1"]],"0"],CI:["225","00","[02]\\d{9}",[10],[["(\\d{2})(\\d{2})(\\d)(\\d{5})","$1 $2 $3 $4",["2"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3 $4",["0"]]]],CK:["682","00","[2-578]\\d{4}",[5],[["(\\d{2})(\\d{3})","$1 $2",["[2-578]"]]]],CL:["56","(?:0|1(?:1[0-69]|2[02-5]|5[13-58]|69|7[0167]|8[018]))0","12300\\d{6}|6\\d{9,10}|[2-9]\\d{8}",[9,10,11],[["(\\d{5})(\\d{4})","$1 $2",["219","2196"],"($1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["44"]],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["2[1-36]"],"($1)"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["9[2-9]"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["3[2-5]|[47]|5[1-3578]|6[13-57]|8(?:0[1-9]|[1-9])"],"($1)"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["60|8"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["1"]],["(\\d{3})(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3 $4",["60"]]]],CM:["237","00","[26]\\d{8}|88\\d{6,7}",[8,9],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["88"]],["(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["[26]|88"]]]],CN:["86","00|1(?:[12]\\d|79)\\d\\d00","(?:(?:1[03-689]|2\\d)\\d\\d|6)\\d{8}|1\\d{10}|[126]\\d{6}(?:\\d(?:\\d{2})?)?|86\\d{5,6}|(?:[3-579]\\d|8[0-57-9])\\d{5,9}",[7,8,9,10,11,12],[["(\\d{2})(\\d{5,6})","$1 $2",["(?:10|2[0-57-9])[19]|3(?:[157]|35|49|9[1-68])|4(?:1[124-9]|2[179]|6[47-9]|7|8[23])|5(?:[1357]|2[37]|4[36]|6[1-46]|80)|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:07|1[236-8]|2[5-7]|[37]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3|4[13]|5[1-5]|7[0-79]|9[0-35-9])|(?:4[35]|59|85)[1-9]","(?:10|2[0-57-9])(?:1[02]|9[56])|8078|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:1[124-9]|2[179]|[35][1-9]|6[47-9]|7\\d|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3\\d|4[13]|5[1-5]|7[0-79]|9[0-35-9]))1","10(?:1(?:0|23)|9[56])|2[0-57-9](?:1(?:00|23)|9[56])|80781|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:1[124-9]|2[179]|[35][1-9]|6[47-9]|7\\d|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3\\d|4[13]|5[1-5]|7[0-79]|9[0-35-9]))12","10(?:1(?:0|23)|9[56])|2[0-57-9](?:1(?:00|23)|9[56])|807812|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:1[124-9]|2[179]|[35][1-9]|6[47-9]|7\\d|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3\\d|4[13]|5[1-5]|7[0-79]|9[0-35-9]))123","10(?:1(?:0|23)|9[56])|2[0-57-9](?:1(?:00|23)|9[56])|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:1[124-9]|2[179]|[35][1-9]|6[47-9]|7\\d|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:078|1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3\\d|4[13]|5[1-5]|7[0-79]|9[0-35-9]))123"],"0$1"],["(\\d{3})(\\d{5,6})","$1 $2",["3(?:[157]|35|49|9[1-68])|4(?:[17]|2[179]|6[47-9]|8[23])|5(?:[1357]|2[37]|4[36]|6[1-46]|80)|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]|4[13]|5[1-5])|(?:4[35]|59|85)[1-9]","(?:3(?:[157]\\d|35|49|9[1-68])|4(?:[17]\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))[19]","85[23](?:10|95)|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:[17]\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[14-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))(?:10|9[56])","85[23](?:100|95)|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:[17]\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[14-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))(?:100|9[56])"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["(?:4|80)0"]],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["10|2(?:[02-57-9]|1[1-9])","10|2(?:[02-57-9]|1[1-9])","10[0-79]|2(?:[02-57-9]|1[1-79])|(?:10|21)8(?:0[1-9]|[1-9])"],"0$1",1],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["3(?:[3-59]|7[02-68])|4(?:[26-8]|3[3-9]|5[2-9])|5(?:3[03-9]|[468]|7[028]|9[2-46-9])|6|7(?:[0-247]|3[04-9]|5[0-4689]|6[2368])|8(?:[1-358]|9[1-7])|9(?:[013479]|5[1-5])|(?:[34]1|55|79|87)[02-9]"],"0$1",1],["(\\d{3})(\\d{7,8})","$1 $2",["9"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["80"],"0$1",1],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["[3-578]"],"0$1",1],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["1[3-9]"]],["(\\d{2})(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3 $4",["[12]"],"0$1",1]],"0",0,"(1(?:[12]\\d|79)\\d\\d)|0",0,0,0,0,"00"],CO:["57","00(?:4(?:[14]4|56)|[579])","(?:46|60\\d\\d)\\d{6}|(?:1\\d|[39])\\d{9}",[8,10,11],[["(\\d{4})(\\d{4})","$1 $2",["46"]],["(\\d{3})(\\d{7})","$1 $2",["6|90"],"($1)"],["(\\d{3})(\\d{7})","$1 $2",["3[0-357]|9[14]"]],["(\\d)(\\d{3})(\\d{7})","$1-$2-$3",["1"],"0$1",0,"$1 $2 $3"]],"0",0,"0([3579]|4(?:[14]4|56))?"],CR:["506","00","(?:8\\d|90)\\d{8}|(?:[24-8]\\d{3}|3005)\\d{4}",[8,10],[["(\\d{4})(\\d{4})","$1 $2",["[2-7]|8[3-9]"]],["(\\d{3})(\\d{3})(\\d{4})","$1-$2-$3",["[89]"]]],0,0,"(19(?:0[0-2468]|1[09]|20|66|77|99))"],CU:["53","119","(?:[2-7]|8\\d\\d)\\d{7}|[2-47]\\d{6}|[34]\\d{5}",[6,7,8,10],[["(\\d{2})(\\d{4,6})","$1 $2",["2[1-4]|[34]"],"(0$1)"],["(\\d)(\\d{6,7})","$1 $2",["7"],"(0$1)"],["(\\d)(\\d{7})","$1 $2",["[56]"],"0$1"],["(\\d{3})(\\d{7})","$1 $2",["8"],"0$1"]],"0"],CV:["238","0","(?:[2-59]\\d\\d|800)\\d{4}",[7],[["(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["[2-589]"]]]],CW:["599","00","(?:[34]1|60|(?:7|9\\d)\\d)\\d{5}",[7,8],[["(\\d{3})(\\d{4})","$1 $2",["[3467]"]],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["9[4-8]"]]],0,0,0,0,0,"[69]"],CX:["61","001[14-689]|14(?:1[14]|34|4[17]|[56]6|7[47]|88)0011","1(?:[0-79]\\d{8}(?:\\d{2})?|8[0-24-9]\\d{7})|[148]\\d{8}|1\\d{5,7}",[6,7,8,9,10,12],0,"0",0,"([59]\\d{7})$|0","8$1",0,0,[["8(?:51(?:0(?:01|30|59|88)|1(?:17|46|75)|2(?:22|35))|91(?:00[6-9]|1(?:[28]1|49|78)|2(?:09|63)|3(?:12|26|75)|4(?:56|97)|64\\d|7(?:0[01]|1[0-2])|958))\\d{3}",[9]],["4(?:79[01]|83[0-389]|94[0-478])\\d{5}|4(?:[0-36]\\d|4[047-9]|5[0-25-9]|7[02-8]|8[0-24-9]|9[0-37-9])\\d{6}",[9]],["180(?:0\\d{3}|2)\\d{3}",[7,10]],["190[0-26]\\d{6}",[10]],0,0,0,0,["14(?:5(?:1[0458]|[23][458])|71\\d)\\d{4}",[9]],["13(?:00\\d{6}(?:\\d{2})?|45[0-4]\\d{3})|13\\d{4}",[6,8,10,12]]],"0011"],CY:["357","00","(?:[279]\\d|[58]0)\\d{6}",[8],[["(\\d{2})(\\d{6})","$1 $2",["[257-9]"]]]],CZ:["420","00","(?:[2-578]\\d|60)\\d{7}|9\\d{8,11}",[9,10,11,12],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[2-8]|9[015-7]"]],["(\\d{2})(\\d{3})(\\d{3})(\\d{2})","$1 $2 $3 $4",["96"]],["(\\d{2})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["9"]],["(\\d{3})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["9"]]]],DE:["49","00","[2579]\\d{5,14}|49(?:[34]0|69|8\\d)\\d\\d?|49(?:37|49|60|7[089]|9\\d)\\d{1,3}|49(?:2[024-9]|3[2-689]|7[1-7])\\d{1,8}|(?:1|[368]\\d|4[0-8])\\d{3,13}|49(?:[015]\\d|2[13]|31|[46][1-8])\\d{1,9}",[4,5,6,7,8,9,10,11,12,13,14,15],[["(\\d{2})(\\d{3,13})","$1 $2",["3[02]|40|[68]9"],"0$1"],["(\\d{3})(\\d{3,12})","$1 $2",["2(?:0[1-389]|1[124]|2[18]|3[14])|3(?:[35-9][15]|4[015])|906|(?:2[4-9]|4[2-9]|[579][1-9]|[68][1-8])1","2(?:0[1-389]|12[0-8])|3(?:[35-9][15]|4[015])|906|2(?:[13][14]|2[18])|(?:2[4-9]|4[2-9]|[579][1-9]|[68][1-8])1"],"0$1"],["(\\d{4})(\\d{2,11})","$1 $2",["[24-6]|3(?:[3569][02-46-9]|4[2-4679]|7[2-467]|8[2-46-8])|70[2-8]|8(?:0[2-9]|[1-8])|90[7-9]|[79][1-9]","[24-6]|3(?:3(?:0[1-467]|2[127-9]|3[124578]|7[1257-9]|8[1256]|9[145])|4(?:2[135]|4[13578]|9[1346])|5(?:0[14]|2[1-3589]|6[1-4]|7[13468]|8[13568])|6(?:2[1-489]|3[124-6]|6[13]|7[12579]|8[1-356]|9[135])|7(?:2[1-7]|4[145]|6[1-5]|7[1-4])|8(?:21|3[1468]|6|7[1467]|8[136])|9(?:0[12479]|2[1358]|4[134679]|6[1-9]|7[136]|8[147]|9[1468]))|70[2-8]|8(?:0[2-9]|[1-8])|90[7-9]|[79][1-9]|3[68]4[1347]|3(?:47|60)[1356]|3(?:3[46]|46|5[49])[1246]|3[4579]3[1357]"],"0$1"],["(\\d{3})(\\d{4})","$1 $2",["138"],"0$1"],["(\\d{5})(\\d{2,10})","$1 $2",["3"],"0$1"],["(\\d{3})(\\d{5,11})","$1 $2",["181"],"0$1"],["(\\d{3})(\\d)(\\d{4,10})","$1 $2 $3",["1(?:3|80)|9"],"0$1"],["(\\d{3})(\\d{7,8})","$1 $2",["1[67]"],"0$1"],["(\\d{3})(\\d{7,12})","$1 $2",["8"],"0$1"],["(\\d{5})(\\d{6})","$1 $2",["185","1850","18500"],"0$1"],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["7"],"0$1"],["(\\d{4})(\\d{7})","$1 $2",["18[68]"],"0$1"],["(\\d{4})(\\d{7})","$1 $2",["15[1279]"],"0$1"],["(\\d{5})(\\d{6})","$1 $2",["15[03568]","15(?:[0568]|31)"],"0$1"],["(\\d{3})(\\d{8})","$1 $2",["18"],"0$1"],["(\\d{3})(\\d{2})(\\d{7,8})","$1 $2 $3",["1(?:6[023]|7)"],"0$1"],["(\\d{4})(\\d{2})(\\d{7})","$1 $2 $3",["15[279]"],"0$1"],["(\\d{3})(\\d{2})(\\d{8})","$1 $2 $3",["15"],"0$1"]],"0"],DJ:["253","00","(?:2\\d|77)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[27]"]]]],DK:["45","00","[2-9]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-9]"]]]],DM:["1","011","(?:[58]\\d\\d|767|900)\\d{7}",[10],0,"1",0,"([2-7]\\d{6})$|1","767$1",0,"767"],DO:["1","011","(?:[58]\\d\\d|900)\\d{7}",[10],0,"1",0,0,0,0,"8001|8[024]9"],DZ:["213","00","(?:[1-4]|[5-79]\\d|80)\\d{7}",[8,9],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[1-4]"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["9"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-8]"],"0$1"]],"0"],EC:["593","00","1\\d{9,10}|(?:[2-7]|9\\d)\\d{7}",[8,9,10,11],[["(\\d)(\\d{3})(\\d{4})","$1 $2-$3",["[2-7]"],"(0$1)",0,"$1-$2-$3"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["9"],"0$1"],["(\\d{4})(\\d{3})(\\d{3,4})","$1 $2 $3",["1"]]],"0"],EE:["372","00","8\\d{9}|[4578]\\d{7}|(?:[3-8]\\d|90)\\d{5}",[7,8,10],[["(\\d{3})(\\d{4})","$1 $2",["[369]|4[3-8]|5(?:[0-2]|5[0-478]|6[45])|7[1-9]|88","[369]|4[3-8]|5(?:[02]|1(?:[0-8]|95)|5[0-478]|6(?:4[0-4]|5[1-589]))|7[1-9]|88"]],["(\\d{4})(\\d{3,4})","$1 $2",["[45]|8(?:00|[1-49])","[45]|8(?:00[1-9]|[1-49])"]],["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["7"]],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["8"]]]],EG:["20","00","[189]\\d{8,9}|[24-6]\\d{8}|[135]\\d{7}",[8,9,10],[["(\\d)(\\d{7,8})","$1 $2",["[23]"],"0$1"],["(\\d{2})(\\d{6,7})","$1 $2",["1[35]|[4-6]|8[2468]|9[235-7]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[89]"],"0$1"],["(\\d{2})(\\d{8})","$1 $2",["1"],"0$1"]],"0"],EH:["212","00","[5-8]\\d{8}",[9],0,"0",0,0,0,0,"528[89]"],ER:["291","00","[178]\\d{6}",[7],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[178]"],"0$1"]],"0"],ES:["34","00","[5-9]\\d{8}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[89]00"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-9]"]]]],ET:["251","00","(?:11|[2-579]\\d)\\d{7}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[1-579]"],"0$1"]],"0"],FI:["358","00|99(?:[01469]|5(?:[14]1|3[23]|5[59]|77|88|9[09]))","[1-35689]\\d{4}|7\\d{10,11}|(?:[124-7]\\d|3[0-46-9])\\d{8}|[1-9]\\d{5,8}",[5,6,7,8,9,10,11,12],[["(\\d{5})","$1",["20[2-59]"],"0$1"],["(\\d{3})(\\d{3,7})","$1 $2",["(?:[1-3]0|[68])0|70[07-9]"],"0$1"],["(\\d{2})(\\d{4,8})","$1 $2",["[14]|2[09]|50|7[135]"],"0$1"],["(\\d{2})(\\d{6,10})","$1 $2",["7"],"0$1"],["(\\d)(\\d{4,9})","$1 $2",["(?:19|[2568])[1-8]|3(?:0[1-9]|[1-9])|9"],"0$1"]],"0",0,0,0,0,"1[03-79]|[2-9]",0,"00"],FJ:["679","0(?:0|52)","45\\d{5}|(?:0800\\d|[235-9])\\d{6}",[7,11],[["(\\d{3})(\\d{4})","$1 $2",["[235-9]|45"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["0"]]],0,0,0,0,0,0,0,"00"],FK:["500","00","[2-7]\\d{4}",[5]],FM:["691","00","(?:[39]\\d\\d|820)\\d{4}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[389]"]]]],FO:["298","00","[2-9]\\d{5}",[6],[["(\\d{6})","$1",["[2-9]"]]],0,0,"(10(?:01|[12]0|88))"],FR:["33","00","[1-9]\\d{8}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0 $1"],["(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["[1-79]"],"0$1"]],"0"],GA:["241","00","(?:[067]\\d|11)\\d{6}|[2-7]\\d{6}",[7,8],[["(\\d)(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-7]"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["0"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["11|[67]"],"0$1"]],0,0,"0(11\\d{6}|60\\d{6}|61\\d{6}|6[256]\\d{6}|7[467]\\d{6})","$1"],GB:["44","00","[1-357-9]\\d{9}|[18]\\d{8}|8\\d{6}",[7,9,10],[["(\\d{3})(\\d{4})","$1 $2",["800","8001","80011","800111","8001111"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["845","8454","84546","845464"],"0$1"],["(\\d{3})(\\d{6})","$1 $2",["800"],"0$1"],["(\\d{5})(\\d{4,5})","$1 $2",["1(?:38|5[23]|69|76|94)","1(?:(?:38|69)7|5(?:24|39)|768|946)","1(?:3873|5(?:242|39[4-6])|(?:697|768)[347]|9467)"],"0$1"],["(\\d{4})(\\d{5,6})","$1 $2",["1(?:[2-69][02-9]|[78])"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["[25]|7(?:0|6[02-9])","[25]|7(?:0|6(?:[03-9]|2[356]))"],"0$1"],["(\\d{4})(\\d{6})","$1 $2",["7"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[1389]"],"0$1"]],"0",0,0,0,0,0,[["(?:1(?:1(?:3(?:[0-58]\\d\\d|73[0-35])|4(?:(?:[0-5]\\d|70)\\d|69[7-9])|(?:(?:5[0-26-9]|[78][0-49])\\d|6(?:[0-4]\\d|50))\\d)|(?:2(?:(?:0[024-9]|2[3-9]|3[3-79]|4[1-689]|[58][02-9]|6[0-47-9]|7[013-9]|9\\d)\\d|1(?:[0-7]\\d|8[0-3]))|(?:3(?:0\\d|1[0-8]|[25][02-9]|3[02-579]|[468][0-46-9]|7[1-35-79]|9[2-578])|4(?:0[03-9]|[137]\\d|[28][02-57-9]|4[02-69]|5[0-8]|[69][0-79])|5(?:0[1-35-9]|[16]\\d|2[024-9]|3[015689]|4[02-9]|5[03-9]|7[0-35-9]|8[0-468]|9[0-57-9])|6(?:0[034689]|1\\d|2[0-35689]|[38][013-9]|4[1-467]|5[0-69]|6[13-9]|7[0-8]|9[0-24578])|7(?:0[0246-9]|2\\d|3[0236-8]|4[03-9]|5[0-46-9]|6[013-9]|7[0-35-9]|8[024-9]|9[02-9])|8(?:0[35-9]|2[1-57-9]|3[02-578]|4[0-578]|5[124-9]|6[2-69]|7\\d|8[02-9]|9[02569])|9(?:0[02-589]|[18]\\d|2[02-689]|3[1-57-9]|4[2-9]|5[0-579]|6[2-47-9]|7[0-24578]|9[2-57]))\\d)\\d)|2(?:0[013478]|3[0189]|4[017]|8[0-46-9]|9[0-2])\\d{3})\\d{4}|1(?:2(?:0(?:46[1-4]|87[2-9])|545[1-79]|76(?:2\\d|3[1-8]|6[1-6])|9(?:7(?:2[0-4]|3[2-5])|8(?:2[2-8]|7[0-47-9]|8[3-5])))|3(?:6(?:38[2-5]|47[23])|8(?:47[04-9]|64[0157-9]))|4(?:044[1-7]|20(?:2[23]|8\\d)|6(?:0(?:30|5[2-57]|6[1-8]|7[2-8])|140)|8(?:052|87[1-3]))|5(?:2(?:4(?:3[2-79]|6\\d)|76\\d)|6(?:26[06-9]|686))|6(?:06(?:4\\d|7[4-79])|295[5-7]|35[34]\\d|47(?:24|61)|59(?:5[08]|6[67]|74)|9(?:55[0-4]|77[23]))|7(?:26(?:6[13-9]|7[0-7])|(?:442|688)\\d|50(?:2[0-3]|[3-68]2|76))|8(?:27[56]\\d|37(?:5[2-5]|8[239])|843[2-58])|9(?:0(?:0(?:6[1-8]|85)|52\\d)|3583|4(?:66[1-8]|9(?:2[01]|81))|63(?:23|3[1-4])|9561))\\d{3}",[9,10]],["7(?:457[0-57-9]|700[01]|911[028])\\d{5}|7(?:[1-3]\\d\\d|4(?:[0-46-9]\\d|5[0-689])|5(?:0[0-8]|[13-9]\\d|2[0-35-9])|7(?:0[1-9]|[1-7]\\d|8[02-9]|9[0-689])|8(?:[014-9]\\d|[23][0-8])|9(?:[024-9]\\d|1[02-9]|3[0-689]))\\d{6}",[10]],["80[08]\\d{7}|800\\d{6}|8001111"],["(?:8(?:4[2-5]|7[0-3])|9(?:[01]\\d|8[2-49]))\\d{7}|845464\\d",[7,10]],["70\\d{8}",[10]],0,["(?:3[0347]|55)\\d{8}",[10]],["76(?:464|652)\\d{5}|76(?:0[0-28]|2[356]|34|4[01347]|5[49]|6[0-369]|77|8[14]|9[139])\\d{6}",[10]],["56\\d{8}",[10]]],0," x"],GD:["1","011","(?:473|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","473$1",0,"473"],GE:["995","00","(?:[3-57]\\d\\d|800)\\d{6}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["70"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["32"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[57]"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[348]"],"0$1"]],"0"],GF:["594","00","(?:[56]94\\d|7093)\\d{5}|(?:80|9\\d)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-7]|9[47]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[89]"],"0$1"]],"0"],GG:["44","00","(?:1481|[357-9]\\d{3})\\d{6}|8\\d{6}(?:\\d{2})?",[7,9,10],0,"0",0,"([25-9]\\d{5})$|0","1481$1",0,0,[["1481[25-9]\\d{5}",[10]],["7(?:(?:781|839)\\d|911[17])\\d{5}",[10]],["80[08]\\d{7}|800\\d{6}|8001111"],["(?:8(?:4[2-5]|7[0-3])|9(?:[01]\\d|8[0-3]))\\d{7}|845464\\d",[7,10]],["70\\d{8}",[10]],0,["(?:3[0347]|55)\\d{8}",[10]],["76(?:464|652)\\d{5}|76(?:0[0-28]|2[356]|34|4[01347]|5[49]|6[0-369]|77|8[14]|9[139])\\d{6}",[10]],["56\\d{8}",[10]]]],GH:["233","00","(?:[235]\\d{3}|800)\\d{5}",[8,9],[["(\\d{3})(\\d{5})","$1 $2",["8"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[235]"],"0$1"]],"0"],GI:["350","00","(?:[25]\\d|60)\\d{6}",[8],[["(\\d{3})(\\d{5})","$1 $2",["2"]]]],GL:["299","00","(?:19|[2-689]\\d|70)\\d{4}",[6],[["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["19|[2-9]"]]]],GM:["220","00","[2-9]\\d{6}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[2-9]"]]]],GN:["224","00","722\\d{6}|(?:3|6\\d)\\d{7}",[8,9],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["3"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[67]"]]]],GP:["590","00","(?:590\\d|7090)\\d{5}|(?:69|80|9\\d)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-79]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0$1"]],"0",0,0,0,0,0,[["590(?:0[1-68]|[14][0-24-9]|2[0-68]|3[1-9]|5[3-579]|[68][0-689]|7[08]|9\\d)\\d{4}"],["(?:69(?:0\\d\\d|1(?:2[2-9]|3[0-5])|4(?:0[89]|1[2-6]|9\\d)|6(?:1[016-9]|5[0-4]|[67]\\d))|7090[0-4])\\d{4}"],["80[0-5]\\d{6}"],0,0,0,0,0,["9(?:(?:39[5-7]|76[018])\\d|475[0-6])\\d{4}"]]],GQ:["240","00","222\\d{6}|(?:3\\d|55|[89]0)\\d{7}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[235]"]],["(\\d{3})(\\d{6})","$1 $2",["[89]"]]]],GR:["30","00","5005000\\d{3}|8\\d{9,11}|(?:[269]\\d|70)\\d{8}",[10,11,12],[["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["21|7"]],["(\\d{4})(\\d{6})","$1 $2",["2(?:2|3[2-57-9]|4[2-469]|5[2-59]|6[2-9]|7[2-69]|8[2-49])|5"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[2689]"]],["(\\d{3})(\\d{3,4})(\\d{5})","$1 $2 $3",["8"]]]],GT:["502","00","80\\d{6}|(?:1\\d{3}|[2-7])\\d{7}",[8,11],[["(\\d{4})(\\d{4})","$1 $2",["[2-8]"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["1"]]]],GU:["1","011","(?:[58]\\d\\d|671|900)\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","671$1",0,"671"],GW:["245","00","[49]\\d{8}|4\\d{6}",[7,9],[["(\\d{3})(\\d{4})","$1 $2",["40"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[49]"]]]],GY:["592","001","(?:[2-8]\\d{3}|9008)\\d{3}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[2-9]"]]]],HK:["852","00(?:30|5[09]|[126-9]?)","8[0-46-9]\\d{6,7}|9\\d{4,7}|(?:[2-7]|9\\d{3})\\d{7}",[5,6,7,8,9,11],[["(\\d{3})(\\d{2,5})","$1 $2",["900","9003"]],["(\\d{4})(\\d{4})","$1 $2",["[2-7]|8[1-4]|9(?:0[1-9]|[1-8])"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8"]],["(\\d{3})(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3 $4",["9"]]],0,0,0,0,0,0,0,"00"],HN:["504","00","8\\d{10}|[237-9]\\d{7}",[8,11],[["(\\d{4})(\\d{4})","$1-$2",["[237-9]"]]]],HR:["385","00","[2-69]\\d{8}|80\\d{5,7}|[1-79]\\d{7}|6\\d{6}",[7,8,9],[["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["6[01]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2,3})","$1 $2 $3",["8"],"0$1"],["(\\d)(\\d{4})(\\d{3})","$1 $2 $3",["1"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["6|7[245]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["9"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2-57]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8"],"0$1"]],"0"],HT:["509","00","[2-589]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["[2-589]"]]]],HU:["36","00","[235-7]\\d{8}|[1-9]\\d{7}",[8,9],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["1"],"(06 $1)"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[27][2-9]|3[2-7]|4[24-9]|5[2-79]|6|8[2-57-9]|9[2-69]"],"(06 $1)"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2-9]"],"06 $1"]],"06"],ID:["62","00[89]","00[1-9]\\d{9,14}|(?:[1-36]|8\\d{5})\\d{6}|00\\d{9}|[1-9]\\d{8,10}|[2-9]\\d{7}",[7,8,9,10,11,12,13,14,15,16,17],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["15"]],["(\\d{2})(\\d{5,9})","$1 $2",["2[124]|[36]1"],"(0$1)"],["(\\d{3})(\\d{5,7})","$1 $2",["800"],"0$1"],["(\\d{3})(\\d{5,8})","$1 $2",["[2-79]"],"(0$1)"],["(\\d{3})(\\d{3,4})(\\d{3})","$1-$2-$3",["8[1-35-9]"],"0$1"],["(\\d{3})(\\d{6,8})","$1 $2",["1"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["804"],"0$1"],["(\\d{3})(\\d)(\\d{3})(\\d{3})","$1 $2 $3 $4",["80"],"0$1"],["(\\d{3})(\\d{4})(\\d{4,5})","$1-$2-$3",["8"],"0$1"]],"0"],IE:["353","00","(?:1\\d|[2569])\\d{6,8}|4\\d{6,9}|7\\d{8}|8\\d{8,9}",[7,8,9,10],[["(\\d{2})(\\d{5})","$1 $2",["2[24-9]|47|58|6[237-9]|9[35-9]"],"(0$1)"],["(\\d{3})(\\d{5})","$1 $2",["[45]0"],"(0$1)"],["(\\d)(\\d{3,4})(\\d{4})","$1 $2 $3",["1"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2569]|4[1-69]|7[14]"],"(0$1)"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["70"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["81"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[78]"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1"]],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["4"],"(0$1)"],["(\\d{2})(\\d)(\\d{3})(\\d{4})","$1 $2 $3 $4",["8"],"0$1"]],"0"],IL:["972","0(?:0|1[2-9])","1\\d{6}(?:\\d{3,5})?|[57]\\d{8}|[1-489]\\d{7}",[7,8,9,10,11,12],[["(\\d{4})(\\d{3})","$1-$2",["125"]],["(\\d{4})(\\d{2})(\\d{2})","$1-$2-$3",["121"]],["(\\d)(\\d{3})(\\d{4})","$1-$2-$3",["[2-489]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["[57]"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1-$2-$3",["12"]],["(\\d{4})(\\d{6})","$1-$2",["159"]],["(\\d)(\\d{3})(\\d{3})(\\d{3})","$1-$2-$3-$4",["1[7-9]"]],["(\\d{3})(\\d{1,2})(\\d{3})(\\d{4})","$1-$2 $3-$4",["15"]]],"0"],IM:["44","00","1624\\d{6}|(?:[3578]\\d|90)\\d{8}",[10],0,"0",0,"([25-8]\\d{5})$|0","1624$1",0,"74576|(?:16|7[56])24"],IN:["91","00","(?:000800|[2-9]\\d\\d)\\d{7}|1\\d{7,12}",[8,9,10,11,12,13],[["(\\d{8})","$1",["5(?:0|2[23]|3[03]|[67]1|88)","5(?:0|2(?:21|3)|3(?:0|3[23])|616|717|888)","5(?:0|2(?:21|3)|3(?:0|3[23])|616|717|8888)"],0,1],["(\\d{4})(\\d{4,5})","$1 $2",["180","1800"],0,1],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["140"],0,1],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["11|2[02]|33|4[04]|79[1-7]|80[2-46]","11|2[02]|33|4[04]|79(?:[1-6]|7[19])|80(?:[2-4]|6[0-589])","11|2[02]|33|4[04]|79(?:[124-6]|3(?:[02-9]|1[0-24-9])|7(?:1|9[1-6]))|80(?:[2-4]|6[0-589])"],"0$1",1],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["1(?:2[0-249]|3[0-25]|4[145]|[68]|7[1257])|2(?:1[257]|3[013]|4[01]|5[0137]|6[0158]|78|8[1568])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|5[12]|[78]1)|6(?:12|[2-4]1|5[17]|6[13]|80)|7(?:12|3[134]|4[47]|61|88)|8(?:16|2[014]|3[126]|6[136]|7[078]|8[34]|91)|(?:43|59|75)[15]|(?:1[59]|29|67|72)[14]","1(?:2[0-24]|3[0-25]|4[145]|[59][14]|6[1-9]|7[1257]|8[1-57-9])|2(?:1[257]|3[013]|4[01]|5[0137]|6[058]|78|8[1568]|9[14])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|3[15]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|[578]1|9[15])|674|7(?:(?:2[14]|3[34]|5[15])[2-6]|61[346]|88[0-8])|8(?:70[2-6]|84[235-7]|91[3-7])|(?:1(?:29|60|8[06])|261|552|6(?:12|[2-47]1|5[17]|6[13]|80)|7(?:12|31|4[47])|8(?:16|2[014]|3[126]|6[136]|7[78]|83))[2-7]","1(?:2[0-24]|3[0-25]|4[145]|[59][14]|6[1-9]|7[1257]|8[1-57-9])|2(?:1[257]|3[013]|4[01]|5[0137]|6[058]|78|8[1568]|9[14])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|3[15]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|[578]1|9[15])|6(?:12(?:[2-6]|7[0-8])|74[2-7])|7(?:(?:2[14]|5[15])[2-6]|3171|61[346]|88(?:[2-7]|82))|8(?:70[2-6]|84(?:[2356]|7[19])|91(?:[3-6]|7[19]))|73[134][2-6]|(?:74[47]|8(?:16|2[014]|3[126]|6[136]|7[78]|83))(?:[2-6]|7[19])|(?:1(?:29|60|8[06])|261|552|6(?:[2-4]1|5[17]|6[13]|7(?:1|4[0189])|80)|7(?:12|88[01]))[2-7]"],"0$1",1],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1(?:[2-479]|5[0235-9])|[2-5]|6(?:1[1358]|2[2457-9]|3[2-5]|4[235-7]|5[2-689]|6[24578]|7[235689]|8[1-6])|7(?:1[013-9]|28|3[129]|4[1-35689]|5[29]|6[02-5]|70)|807","1(?:[2-479]|5[0235-9])|[2-5]|6(?:1[1358]|2(?:[2457]|84|95)|3(?:[2-4]|55)|4[235-7]|5[2-689]|6[24578]|7[235689]|8[1-6])|7(?:1(?:[013-8]|9[6-9])|28[6-8]|3(?:17|2[0-49]|9[2-57])|4(?:1[2-4]|[29][0-7]|3[0-8]|[56]|8[0-24-7])|5(?:2[1-3]|9[0-6])|6(?:0[5689]|2[5-9]|3[02-8]|4|5[0-367])|70[13-7])|807[19]","1(?:[2-479]|5(?:[0236-9]|5[013-9]))|[2-5]|6(?:2(?:84|95)|355|83)|73179|807(?:1|9[1-3])|(?:1552|6(?:1[1358]|2[2457]|3[2-4]|4[235-7]|5[2-689]|6[24578]|7[235689]|8[124-6])\\d|7(?:1(?:[013-8]\\d|9[6-9])|28[6-8]|3(?:2[0-49]|9[2-57])|4(?:1[2-4]|[29][0-7]|3[0-8]|[56]\\d|8[0-24-7])|5(?:2[1-3]|9[0-6])|6(?:0[5689]|2[5-9]|3[02-8]|4\\d|5[0-367])|70[13-7]))[2-7]"],"0$1",1],["(\\d{5})(\\d{5})","$1 $2",["[6-9]"],"0$1",1],["(\\d{4})(\\d{2,4})(\\d{4})","$1 $2 $3",["1(?:6|8[06])","1(?:6|8[06]0)"],0,1],["(\\d{4})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["18"],0,1]],"0"],IO:["246","00","3\\d{6}",[7],[["(\\d{3})(\\d{4})","$1 $2",["3"]]]],IQ:["964","00","(?:1|7\\d\\d)\\d{7}|[2-6]\\d{7,8}",[8,9,10],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["1"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2-6]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["7"],"0$1"]],"0"],IR:["98","00","[1-9]\\d{9}|(?:[1-8]\\d\\d|9)\\d{3,4}",[4,5,6,7,10],[["(\\d{4,5})","$1",["96"],"0$1"],["(\\d{2})(\\d{4,5})","$1 $2",["(?:1[137]|2[13-68]|3[1458]|4[145]|5[1468]|6[16]|7[1467]|8[13467])[12689]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["9"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["[1-8]"],"0$1"]],"0"],IS:["354","00|1(?:0(?:01|[12]0)|100)","(?:38\\d|[4-9])\\d{6}",[7,9],[["(\\d{3})(\\d{4})","$1 $2",["[4-9]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["3"]]],0,0,0,0,0,0,0,"00"],IT:["39","00","0\\d{5,10}|1\\d{8,10}|3(?:[0-8]\\d{7,10}|9\\d{7,8})|(?:43|55|70)\\d{8}|8\\d{5}(?:\\d{2,4})?",[6,7,8,9,10,11,12],[["(\\d{2})(\\d{4,6})","$1 $2",["0[26]"]],["(\\d{3})(\\d{3,6})","$1 $2",["0[13-57-9][0159]|8(?:03|4[17]|9[2-5])","0[13-57-9][0159]|8(?:03|4[17]|9(?:2|3[04]|[45][0-4]))"]],["(\\d{4})(\\d{2,6})","$1 $2",["0(?:[13-579][2-46-8]|8[236-8])"]],["(\\d{4})(\\d{4})","$1 $2",["894"]],["(\\d{2})(\\d{3,4})(\\d{4})","$1 $2 $3",["0[26]|5"]],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["1(?:44|[679])|[378]|43"]],["(\\d{3})(\\d{3,4})(\\d{4})","$1 $2 $3",["0[13-57-9][0159]|14"]],["(\\d{2})(\\d{4})(\\d{5})","$1 $2 $3",["0[26]"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["0"]],["(\\d{3})(\\d{4})(\\d{4,5})","$1 $2 $3",["3"]]],0,0,0,0,0,0,[["0669[0-79]\\d{1,6}|0(?:1(?:[0159]\\d|[27][1-5]|31|4[1-4]|6[1356]|8[2-57])|2\\d\\d|3(?:[0159]\\d|2[1-4]|3[12]|[48][1-6]|6[2-59]|7[1-7])|4(?:[0159]\\d|[23][1-9]|4[245]|6[1-5]|7[1-4]|81)|5(?:[0159]\\d|2[1-5]|3[2-6]|4[1-79]|6[4-6]|7[1-578]|8[3-8])|6(?:[0-57-9]\\d|6[0-8])|7(?:[0159]\\d|2[12]|3[1-7]|4[2-46]|6[13569]|7[13-6]|8[1-59])|8(?:[0159]\\d|2[3-578]|3[1-356]|[6-8][1-5])|9(?:[0159]\\d|[238][1-5]|4[12]|6[1-8]|7[1-6]))\\d{2,7}",[6,7,8,9,10,11]],["3[2-9]\\d{7,8}|(?:31|43)\\d{8}",[9,10]],["80(?:0\\d{3}|3)\\d{3}",[6,9]],["(?:0878\\d{3}|89(?:2\\d|3[04]|4(?:[0-4]|[5-9]\\d\\d)|5[0-4]))\\d\\d|(?:1(?:44|6[346])|89(?:38|5[5-9]|9))\\d{6}",[6,8,9,10]],["1(?:78\\d|99)\\d{6}",[9,10]],["3[2-8]\\d{9,10}",[11,12]],0,0,["55\\d{8}",[10]],["84(?:[08]\\d{3}|[17])\\d{3}",[6,9]]]],JE:["44","00","1534\\d{6}|(?:[3578]\\d|90)\\d{8}",[10],0,"0",0,"([0-24-8]\\d{5})$|0","1534$1",0,0,[["1534[0-24-8]\\d{5}"],["7(?:(?:(?:50|82)9|937)\\d|7(?:00[378]|97\\d))\\d{5}"],["80(?:07(?:35|81)|8901)\\d{4}"],["(?:8(?:4(?:4(?:4(?:05|42|69)|703)|5(?:041|800))|7(?:0002|1206))|90(?:066[59]|1810|71(?:07|55)))\\d{4}"],["701511\\d{4}"],0,["(?:3(?:0(?:07(?:35|81)|8901)|3\\d{4}|4(?:4(?:4(?:05|42|69)|703)|5(?:041|800))|7(?:0002|1206))|55\\d{4})\\d{4}"],["76(?:464|652)\\d{5}|76(?:0[0-28]|2[356]|34|4[01347]|5[49]|6[0-369]|77|8[14]|9[139])\\d{6}"],["56\\d{8}"]]],JM:["1","011","(?:[58]\\d\\d|658|900)\\d{7}",[10],0,"1",0,0,0,0,"658|876"],JO:["962","00","(?:(?:[2689]|7\\d)\\d|32|53)\\d{6}",[8,9],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["[2356]|87"],"(0$1)"],["(\\d{3})(\\d{5,6})","$1 $2",["[89]"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["70"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["7"],"0$1"]],"0"],JP:["81","010","00[1-9]\\d{6,14}|[257-9]\\d{9}|(?:00|[1-9]\\d\\d)\\d{6}",[8,9,10,11,12,13,14,15,16,17],[["(\\d{3})(\\d{3})(\\d{3})","$1-$2-$3",["(?:12|57|99)0"],"0$1"],["(\\d{4})(\\d)(\\d{4})","$1-$2-$3",["1(?:26|3[79]|4[56]|5[4-68]|6[3-5])|499|5(?:76|97)|746|8(?:3[89]|47|51)|9(?:80|9[16])","1(?:267|3(?:7[247]|9[278])|466|5(?:47|58|64)|6(?:3[245]|48|5[4-68]))|499[2468]|5(?:76|97)9|7468|8(?:3(?:8[7-9]|96)|477|51[2-9])|9(?:802|9(?:1[23]|69))|1(?:45|58)[67]","1(?:267|3(?:7[247]|9[278])|466|5(?:47|58|64)|6(?:3[245]|48|5[4-68]))|499[2468]|5(?:769|979[2-69])|7468|8(?:3(?:8[7-9]|96[2457-9])|477|51[2-9])|9(?:802|9(?:1[23]|69))|1(?:45|58)[67]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["60"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1-$2-$3",["[36]|4(?:2[09]|7[01])","[36]|4(?:2(?:0|9[02-69])|7(?:0[019]|1))"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["1(?:1|5[45]|77|88|9[69])|2(?:2[1-37]|3[0-269]|4[59]|5|6[24]|7[1-358]|8[1369]|9[0-38])|4(?:[28][1-9]|3[0-57]|[45]|6[248]|7[2-579]|9[29])|5(?:2|3[0459]|4[0-369]|5[29]|8[02389]|9[0-389])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9[2-6])|8(?:2[124589]|3[26-9]|49|51|6|7[0-468]|8[68]|9[019])|9(?:[23][1-9]|4[15]|5[138]|6[1-3]|7[156]|8[189]|9[1-489])","1(?:1|5(?:4[018]|5[017])|77|88|9[69])|2(?:2(?:[127]|3[014-9])|3[0-269]|4[59]|5(?:[1-3]|5[0-69]|9[19])|62|7(?:[1-35]|8[0189])|8(?:[16]|3[0134]|9[0-5])|9(?:[028]|17))|4(?:2(?:[13-79]|8[014-6])|3[0-57]|[45]|6[248]|7[2-47]|8[1-9]|9[29])|5(?:2|3(?:[045]|9[0-8])|4[0-369]|5[29]|8[02389]|9[0-3])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9(?:[23]|4[0-59]|5[01569]|6[0167]))|8(?:2(?:[1258]|4[0-39]|9[0-2469])|3(?:[29]|60)|49|51|6(?:[0-24]|36|5[0-3589]|7[23]|9[01459])|7[0-468]|8[68])|9(?:[23][1-9]|4[15]|5[138]|6[1-3]|7[156]|8[189]|9(?:[1289]|3[34]|4[0178]))|(?:264|837)[016-9]|2(?:57|93)[015-9]|(?:25[0468]|422|838)[01]|(?:47[59]|59[89]|8(?:6[68]|9))[019]","1(?:1|5(?:4[018]|5[017])|77|88|9[69])|2(?:2[127]|3[0-269]|4[59]|5(?:[1-3]|5[0-69]|9(?:17|99))|6(?:2|4[016-9])|7(?:[1-35]|8[0189])|8(?:[16]|3[0134]|9[0-5])|9(?:[028]|17))|4(?:2(?:[13-79]|8[014-6])|3[0-57]|[45]|6[248]|7[2-47]|9[29])|5(?:2|3(?:[045]|9(?:[0-58]|6[4-9]|7[0-35689]))|4[0-369]|5[29]|8[02389]|9[0-3])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9(?:[23]|4[0-59]|5[01569]|6[0167]))|8(?:2(?:[1258]|4[0-39]|9[0169])|3(?:[29]|60|7(?:[017-9]|6[6-8]))|49|51|6(?:[0-24]|36[2-57-9]|5(?:[0-389]|5[23])|6(?:[01]|9[178])|7(?:2[2-468]|3[78])|9[0145])|7[0-468]|8[68])|9(?:4[15]|5[138]|7[156]|8[189]|9(?:[1289]|3(?:31|4[357])|4[0178]))|(?:8294|96)[1-3]|2(?:57|93)[015-9]|(?:223|8699)[014-9]|(?:25[0468]|422|838)[01]|(?:48|8292|9[23])[1-9]|(?:47[59]|59[89]|8(?:68|9))[019]"],"0$1"],["(\\d{3})(\\d{2})(\\d{4})","$1-$2-$3",["[14]|[289][2-9]|5[3-9]|7[2-4679]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1-$2-$3",["800"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1-$2-$3",["[257-9]"],"0$1"]],"0",0,"(000[259]\\d{6})$|(?:(?:003768)0?)|0","$1"],KE:["254","000","(?:[17]\\d\\d|900)\\d{6}|(?:2|80)0\\d{6,7}|[4-6]\\d{6,8}",[7,8,9,10],[["(\\d{2})(\\d{5,7})","$1 $2",["[24-6]"],"0$1"],["(\\d{3})(\\d{6})","$1 $2",["[17]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["[89]"],"0$1"]],"0"],KG:["996","00","8\\d{9}|[235-9]\\d{8}",[9,10],[["(\\d{4})(\\d{5})","$1 $2",["3(?:1[346]|[24-79])"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[235-79]|88"],"0$1"],["(\\d{3})(\\d{3})(\\d)(\\d{2,3})","$1 $2 $3 $4",["8"],"0$1"]],"0"],KH:["855","00[14-9]","1\\d{9}|[1-9]\\d{7,8}",[8,9,10],[["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[1-9]"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1"]]],"0"],KI:["686","00","(?:[37]\\d|6[0-79])\\d{6}|(?:[2-48]\\d|50)\\d{3}",[5,8],0,"0"],KM:["269","00","[3478]\\d{6}",[7],[["(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["[3478]"]]]],KN:["1","011","(?:[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-7]\\d{6})$|1","869$1",0,"869"],KP:["850","00|99","85\\d{6}|(?:19\\d|[2-7])\\d{7}",[8,10],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["8"],"0$1"],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["[2-7]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["1"],"0$1"]],"0"],KR:["82","00(?:[125689]|3(?:[46]5|91)|7(?:00|27|3|55|6[126]))","00[1-9]\\d{8,11}|(?:[12]|5\\d{3})\\d{7}|[13-6]\\d{9}|(?:[1-6]\\d|80)\\d{7}|[3-6]\\d{4,5}|(?:00|7)0\\d{8}",[5,6,8,9,10,11,12,13,14],[["(\\d{2})(\\d{3,4})","$1-$2",["(?:3[1-3]|[46][1-4]|5[1-5])1"],"0$1"],["(\\d{4})(\\d{4})","$1-$2",["1"]],["(\\d)(\\d{3,4})(\\d{4})","$1-$2-$3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["[36]0|8"],"0$1"],["(\\d{2})(\\d{3,4})(\\d{4})","$1-$2-$3",["[1346]|5[1-5]"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1-$2-$3",["[57]"],"0$1"],["(\\d{2})(\\d{5})(\\d{4})","$1-$2-$3",["5"],"0$1"]],"0",0,"0(8(?:[1-46-8]|5\\d\\d))?"],KW:["965","00","18\\d{5}|(?:[2569]\\d|41)\\d{6}",[7,8],[["(\\d{4})(\\d{3,4})","$1 $2",["[169]|2(?:[235]|4[1-35-9])|52"]],["(\\d{3})(\\d{5})","$1 $2",["[245]"]]]],KY:["1","011","(?:345|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","345$1",0,"345"],KZ:["7","810","(?:33622|8\\d{8})\\d{5}|[78]\\d{9}",[10,14],0,"8",0,0,0,0,"33622|7",0,"8~10"],LA:["856","00","[23]\\d{9}|3\\d{8}|(?:[235-8]\\d|41)\\d{6}",[8,9,10],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["2[13]|3[14]|[4-8]"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3 $4",["3"],"0$1"],["(\\d{2})(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3 $4",["[23]"],"0$1"]],"0"],LB:["961","00","[27-9]\\d{7}|[13-9]\\d{6}",[7,8],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[13-69]|7(?:[2-57]|62|8[0-6]|9[04-9])|8[02-9]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[27-9]"]]],"0"],LC:["1","011","(?:[58]\\d\\d|758|900)\\d{7}",[10],0,"1",0,"([2-8]\\d{6})$|1","758$1",0,"758"],LI:["423","00","[68]\\d{8}|(?:[2378]\\d|90)\\d{5}",[7,9],[["(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["[2379]|8(?:0[09]|7)","[2379]|8(?:0(?:02|9)|7)"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["69"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["6"]]],"0",0,"(1001)|0"],LK:["94","00","[1-9]\\d{8}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["7"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[1-689]"],"0$1"]],"0"],LR:["231","00","(?:[2457]\\d|33|88)\\d{7}|(?:2\\d|[4-6])\\d{6}",[7,8,9],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["4[67]|[56]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[2-578]"],"0$1"]],"0"],LS:["266","00","(?:[256]\\d\\d|800)\\d{5}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[2568]"]]]],LT:["370","00","(?:[3469]\\d|52|[78]0)\\d{6}",[8],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["52[0-7]"],"(0-$1)",1],["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["[7-9]"],"0 $1",1],["(\\d{2})(\\d{6})","$1 $2",["37|4(?:[15]|6[1-8])"],"(0-$1)",1],["(\\d{3})(\\d{5})","$1 $2",["[3-6]"],"(0-$1)",1]],"0",0,"[08]"],LU:["352","00","35[013-9]\\d{4,8}|6\\d{8}|35\\d{2,4}|(?:[2457-9]\\d|3[0-46-9])\\d{2,9}",[4,5,6,7,8,9,10,11],[["(\\d{2})(\\d{3})","$1 $2",["2(?:0[2-689]|[2-9])|[3-57]|8(?:0[2-9]|[13-9])|9(?:0[89]|[2-579])"]],["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["2(?:0[2-689]|[2-9])|[3-57]|8(?:0[2-9]|[13-9])|9(?:0[89]|[2-579])"]],["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["20[2-689]"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{1,2})","$1 $2 $3 $4",["2(?:[0367]|4[3-8])"]],["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["80[01]|90[015]"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3 $4",["20"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["6"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})(\\d{1,2})","$1 $2 $3 $4 $5",["2(?:[0367]|4[3-8])"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{1,5})","$1 $2 $3 $4",["[3-57]|8[13-9]|9(?:0[89]|[2-579])|(?:2|80)[2-9]"]]],0,0,"(15(?:0[06]|1[12]|[35]5|4[04]|6[26]|77|88|99)\\d)"],LV:["371","00","(?:[268]\\d|90)\\d{6}",[8],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[269]|8[01]"]]]],LY:["218","00","[2-9]\\d{8}",[9],[["(\\d{2})(\\d{7})","$1-$2",["[2-9]"],"0$1"]],"0"],MA:["212","00","[5-8]\\d{8}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["5[45]"],"0$1"],["(\\d{4})(\\d{5})","$1-$2",["5(?:2[2-46-9]|3[3-9]|9)|8(?:0[89]|92)"],"0$1"],["(\\d{2})(\\d{7})","$1-$2",["8"],"0$1"],["(\\d{3})(\\d{6})","$1-$2",["[5-7]"],"0$1"]],"0",0,0,0,0,0,[["5(?:2(?:[0-25-79]\\d|3[1-578]|4[02-46-8]|8[0235-7])|3(?:[0-47]\\d|5[02-9]|6[02-8]|8[014-9]|9[3-9])|(?:4[067]|5[03])\\d)\\d{5}"],["(?:6(?:[0-79]\\d|8[0-247-9])|7(?:[0167]\\d|2[0-8]|5[0-3]|8[0-7]))\\d{6}"],["80[0-7]\\d{6}"],["89\\d{7}"],0,0,0,0,["(?:592(?:4[0-2]|93)|80[89]\\d\\d)\\d{4}"]]],MC:["377","00","(?:[3489]|6\\d)\\d{7}",[8,9],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["4"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[389]"]],["(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["6"],"0$1"]],"0"],MD:["373","00","(?:[235-7]\\d|[89]0)\\d{6}",[8],[["(\\d{3})(\\d{5})","$1 $2",["[89]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["22|3"],"0$1"],["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["[25-7]"],"0$1"]],"0"],ME:["382","00","(?:20|[3-79]\\d)\\d{6}|80\\d{6,7}",[8,9],[["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2-9]"],"0$1"]],"0"],MF:["590","00","(?:590\\d|7090)\\d{5}|(?:69|80|9\\d)\\d{7}",[9],0,"0",0,0,0,0,0,[["590(?:0[079]|[14]3|[27][79]|3[03-7]|5[0-268]|87)\\d{4}"],["(?:69(?:0\\d\\d|1(?:2[2-9]|3[0-5])|4(?:0[89]|1[2-6]|9\\d)|6(?:1[016-9]|5[0-4]|[67]\\d))|7090[0-4])\\d{4}"],["80[0-5]\\d{6}"],0,0,0,0,0,["9(?:(?:39[5-7]|76[018])\\d|475[0-6])\\d{4}"]]],MG:["261","00","[23]\\d{8}",[9],[["(\\d{2})(\\d{2})(\\d{3})(\\d{2})","$1 $2 $3 $4",["[23]"],"0$1"]],"0",0,"([24-9]\\d{6})$|0","20$1"],MH:["692","011","329\\d{4}|(?:[256]\\d|45)\\d{5}",[7],[["(\\d{3})(\\d{4})","$1-$2",["[2-6]"]]],"1"],MK:["389","00","[2-578]\\d{7}",[8],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["2|34[47]|4(?:[37]7|5[47]|64)"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[347]"],"0$1"],["(\\d{3})(\\d)(\\d{2})(\\d{2})","$1 $2 $3 $4",["[58]"],"0$1"]],"0"],ML:["223","00","[24-9]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[24-9]"]]]],MM:["95","00","1\\d{5,7}|95\\d{6}|(?:[4-7]|9[0-46-9])\\d{6,8}|(?:2|8\\d)\\d{5,8}",[6,7,8,9,10],[["(\\d)(\\d{2})(\\d{3})","$1 $2 $3",["16|2"],"0$1"],["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["4(?:[2-46]|5[3-5])|5|6(?:[1-689]|7[235-7])|7(?:[0-4]|5[2-7])|8[1-5]|(?:60|86)[23]"],"0$1"],["(\\d)(\\d{3})(\\d{3,4})","$1 $2 $3",["[12]|452|678|86","[12]|452|6788|86"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[4-7]|8[1-35]"],"0$1"],["(\\d)(\\d{3})(\\d{4,6})","$1 $2 $3",["9(?:2[0-4]|[35-9]|4[137-9])"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["2"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"],"0$1"],["(\\d)(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["92"],"0$1"],["(\\d)(\\d{5})(\\d{4})","$1 $2 $3",["9"],"0$1"]],"0"],MN:["976","001","[12]\\d{7,9}|[5-9]\\d{7}",[8,9,10],[["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["[12]1"],"0$1"],["(\\d{4})(\\d{4})","$1 $2",["[5-9]"]],["(\\d{3})(\\d{5,6})","$1 $2",["[12]2[1-3]"],"0$1"],["(\\d{4})(\\d{5,6})","$1 $2",["[12](?:27|3[2-8]|4[2-68]|5[1-4689])","[12](?:27|3[2-8]|4[2-68]|5[1-4689])[0-3]"],"0$1"],["(\\d{5})(\\d{4,5})","$1 $2",["[12]"],"0$1"]],"0"],MO:["853","00","0800\\d{3}|(?:28|[68]\\d)\\d{6}",[7,8],[["(\\d{4})(\\d{3})","$1 $2",["0"]],["(\\d{4})(\\d{4})","$1 $2",["[268]"]]]],MP:["1","011","[58]\\d{9}|(?:67|90)0\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","670$1",0,"670"],MQ:["596","00","(?:596\\d|7091)\\d{5}|(?:69|[89]\\d)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-79]|8(?:0[6-9]|[36])"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0$1"]],"0"],MR:["222","00","(?:[2-4]\\d\\d|800)\\d{5}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-48]"]]]],MS:["1","011","(?:[58]\\d\\d|664|900)\\d{7}",[10],0,"1",0,"([34]\\d{6})$|1","664$1",0,"664"],MT:["356","00","3550\\d{4}|(?:[2579]\\d\\d|800)\\d{5}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[2357-9]"]]]],MU:["230","0(?:0|[24-7]0|3[03])","(?:[57]|8\\d\\d)\\d{7}|[2-468]\\d{6}",[7,8,10],[["(\\d{3})(\\d{4})","$1 $2",["[2-46]|8[013]"]],["(\\d{4})(\\d{4})","$1 $2",["[57]"]],["(\\d{5})(\\d{5})","$1 $2",["8"]]],0,0,0,0,0,0,0,"020"],MV:["960","0(?:0|19)","(?:800|9[0-57-9]\\d)\\d{7}|[34679]\\d{6}",[7,10],[["(\\d{3})(\\d{4})","$1-$2",["[34679]"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[89]"]]],0,0,0,0,0,0,0,"00"],MW:["265","00","(?:[1289]\\d|31|77)\\d{7}|1\\d{6}",[7,9],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["1[2-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["2"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[137-9]"],"0$1"]],"0"],MX:["52","0[09]","[2-9]\\d{9}",[10],[["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["33|5[56]|81"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[2-9]"]]],0,0,0,0,0,0,0,"00"],MY:["60","00","1\\d{8,9}|(?:3\\d|[4-9])\\d{7}",[8,9,10],[["(\\d)(\\d{3})(\\d{4})","$1-$2 $3",["[4-79]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1-$2 $3",["1(?:[02469]|[378][1-9]|53)|8","1(?:[02469]|[37][1-9]|53|8(?:[1-46-9]|5[7-9]))|8"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1-$2 $3",["3"],"0$1"],["(\\d)(\\d{3})(\\d{2})(\\d{4})","$1-$2-$3-$4",["1(?:[367]|80)"]],["(\\d{3})(\\d{3})(\\d{4})","$1-$2 $3",["15"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1-$2 $3",["1"],"0$1"]],"0"],MZ:["258","00","(?:2|8\\d)\\d{7}",[8,9],[["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["2|8[2-79]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8"]]]],NA:["264","00","[68]\\d{7,8}",[8,9],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["88"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["6"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["87"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["8"],"0$1"]],"0"],NC:["687","00","(?:050|[2-57-9]\\d\\d)\\d{3}",[6],[["(\\d{2})(\\d{2})(\\d{2})","$1.$2.$3",["[02-57-9]"]]]],NE:["227","00","[027-9]\\d{7}",[8],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["08"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[089]|2[013]|7[0467]"]]]],NF:["672","00","[13]\\d{5}",[6],[["(\\d{2})(\\d{4})","$1 $2",["1[0-3]"]],["(\\d)(\\d{5})","$1 $2",["[13]"]]],0,0,"([0-258]\\d{4})$","3$1"],NG:["234","009","(?:20|9\\d)\\d{8}|[78]\\d{9,13}",[10,11,12,13,14],[["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["[7-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["20[129]"],"0$1"],["(\\d{4})(\\d{2})(\\d{4})","$1 $2 $3",["2"],"0$1"],["(\\d{3})(\\d{4})(\\d{4,5})","$1 $2 $3",["[78]"],"0$1"],["(\\d{3})(\\d{5})(\\d{5,6})","$1 $2 $3",["[78]"],"0$1"]],"0"],NI:["505","00","(?:1800|[25-8]\\d{3})\\d{4}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[125-8]"]]]],NL:["31","00","(?:[124-7]\\d\\d|3(?:[02-9]\\d|1[0-8]))\\d{6}|8\\d{6,9}|9\\d{6,10}|1\\d{4,5}",[5,6,7,8,9,10,11],[["(\\d{3})(\\d{4,7})","$1 $2",["[89]0"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["66"],"0$1"],["(\\d)(\\d{8})","$1 $2",["6"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["1[16-8]|2[259]|3[124]|4[17-9]|5[124679]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[1-578]|91"],"0$1"],["(\\d{3})(\\d{3})(\\d{5})","$1 $2 $3",["9"],"0$1"]],"0"],NO:["47","00","(?:0|[2-9]\\d{3})\\d{4}",[5,8],[["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["8"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-79]"]]],0,0,0,0,0,"[02-689]|7[0-8]"],NP:["977","00","(?:1\\d|9)\\d{9}|[1-9]\\d{7}",[8,10,11],[["(\\d)(\\d{7})","$1-$2",["1[2-6]"],"0$1"],["(\\d{2})(\\d{6})","$1-$2",["1[01]|[2-8]|9(?:[1-59]|[67][2-6])"],"0$1"],["(\\d{3})(\\d{7})","$1-$2",["9"]]],"0"],NR:["674","00","(?:222|444|(?:55|8\\d)\\d|666|777|999)\\d{4}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[24-9]"]]]],NU:["683","00","(?:[4-7]|888\\d)\\d{3}",[4,7],[["(\\d{3})(\\d{4})","$1 $2",["8"]]]],NZ:["64","0(?:0|161)","[1289]\\d{9}|50\\d{5}(?:\\d{2,3})?|[27-9]\\d{7,8}|(?:[34]\\d|6[0-35-9])\\d{6}|8\\d{4,6}",[5,6,7,8,9,10],[["(\\d{2})(\\d{3,8})","$1 $2",["8[1-79]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2,3})","$1 $2 $3",["50[036-8]|8|90","50(?:[0367]|88)|8|90"],"0$1"],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["24|[346]|7[2-57-9]|9[2-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["2(?:10|74)|[589]"],"0$1"],["(\\d{2})(\\d{3,4})(\\d{4})","$1 $2 $3",["1|2[028]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,5})","$1 $2 $3",["2(?:[169]|7[0-35-9])|7"],"0$1"]],"0",0,0,0,0,0,0,"00"],OM:["968","00","(?:1505|[279]\\d{3}|500)\\d{4}|800\\d{5,6}",[7,8,9],[["(\\d{3})(\\d{4,6})","$1 $2",["[58]"]],["(\\d{2})(\\d{6})","$1 $2",["2"]],["(\\d{4})(\\d{4})","$1 $2",["[179]"]]]],PA:["507","00","(?:00800|8\\d{3})\\d{6}|[68]\\d{7}|[1-57-9]\\d{6}",[7,8,10,11],[["(\\d{3})(\\d{4})","$1-$2",["[1-57-9]"]],["(\\d{4})(\\d{4})","$1-$2",["[68]"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"]]]],PE:["51","00|19(?:1[124]|77|90)00","(?:[14-8]|9\\d)\\d{7}",[8,9],[["(\\d{3})(\\d{5})","$1 $2",["80"],"(0$1)"],["(\\d)(\\d{7})","$1 $2",["1"],"(0$1)"],["(\\d{2})(\\d{6})","$1 $2",["[4-8]"],"(0$1)"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["9"]]],"0",0,0,0,0,0,0,"00"," Anexo "],PF:["689","00","4\\d{5}(?:\\d{2})?|8\\d{7,8}",[6,8,9],[["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["44"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["4|8[7-9]"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"]]]],PG:["675","00|140[1-3]","(?:180|[78]\\d{3})\\d{4}|(?:[2-589]\\d|64)\\d{5}",[7,8],[["(\\d{3})(\\d{4})","$1 $2",["18|[2-69]|85"]],["(\\d{4})(\\d{4})","$1 $2",["[78]"]]],0,0,0,0,0,0,0,"00"],PH:["63","00","(?:[2-7]|9\\d)\\d{8}|2\\d{5}|(?:1800|8)\\d{7,9}",[6,8,9,10,11,12,13],[["(\\d)(\\d{5})","$1 $2",["2"],"(0$1)"],["(\\d{4})(\\d{4,6})","$1 $2",["3(?:23|39|46)|4(?:2[3-6]|[35]9|4[26]|76)|544|88[245]|(?:52|64|86)2","3(?:230|397|461)|4(?:2(?:35|[46]4|51)|396|4(?:22|63)|59[347]|76[15])|5(?:221|446)|642[23]|8(?:622|8(?:[24]2|5[13]))"],"(0$1)"],["(\\d{5})(\\d{4})","$1 $2",["346|4(?:27|9[35])|883","3469|4(?:279|9(?:30|56))|8834"],"(0$1)"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["2"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[3-7]|8[2-8]"],"(0$1)"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[89]"],"0$1"],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["1"]],["(\\d{4})(\\d{1,2})(\\d{3})(\\d{4})","$1 $2 $3 $4",["1"]]],"0"],PK:["92","00","122\\d{6}|[24-8]\\d{10,11}|9(?:[013-9]\\d{8,10}|2(?:[01]\\d\\d|2(?:[06-8]\\d|1[01]))\\d{7})|(?:[2-8]\\d{3}|92(?:[0-7]\\d|8[1-9]))\\d{6}|[24-9]\\d{8}|[89]\\d{7}",[8,9,10,11,12],[["(\\d{3})(\\d{3})(\\d{2,7})","$1 $2 $3",["[89]0"],"0$1"],["(\\d{4})(\\d{5})","$1 $2",["1"]],["(\\d{3})(\\d{6,7})","$1 $2",["2(?:3[2358]|4[2-4]|9[2-8])|45[3479]|54[2-467]|60[468]|72[236]|8(?:2[2-689]|3[23578]|4[3478]|5[2356])|9(?:2[2-8]|3[27-9]|4[2-6]|6[3569]|9[25-8])","9(?:2[3-8]|98)|(?:2(?:3[2358]|4[2-4]|9[2-8])|45[3479]|54[2-467]|60[468]|72[236]|8(?:2[2-689]|3[23578]|4[3478]|5[2356])|9(?:22|3[27-9]|4[2-6]|6[3569]|9[25-7]))[2-9]"],"(0$1)"],["(\\d{2})(\\d{7,8})","$1 $2",["(?:2[125]|4[0-246-9]|5[1-35-7]|6[1-8]|7[14]|8[16]|91)[2-9]"],"(0$1)"],["(\\d{5})(\\d{5})","$1 $2",["58"],"(0$1)"],["(\\d{3})(\\d{7})","$1 $2",["3"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["2[125]|4[0-246-9]|5[1-35-7]|6[1-8]|7[14]|8[16]|91"],"(0$1)"],["(\\d{3})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["[24-9]"],"(0$1)"]],"0"],PL:["48","00","(?:6|8\\d\\d)\\d{7}|[1-9]\\d{6}(?:\\d{2})?|[26]\\d{5}",[6,7,8,9,10],[["(\\d{5})","$1",["19"]],["(\\d{3})(\\d{3})","$1 $2",["11|20|64"]],["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["(?:1[2-8]|2[2-69]|3[2-4]|4[1-468]|5[24-689]|6[1-3578]|7[14-7]|8[1-79]|9[145])1","(?:1[2-8]|2[2-69]|3[2-4]|4[1-468]|5[24-689]|6[1-3578]|7[14-7]|8[1-79]|9[145])19"]],["(\\d{3})(\\d{2})(\\d{2,3})","$1 $2 $3",["64"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["21|39|45|5[0137]|6[0469]|7[02389]|8(?:0[14]|8)"]],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["1[2-8]|[2-7]|8[1-79]|9[145]"]],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["8"]]]],PM:["508","00","[45]\\d{5}|(?:708|8\\d\\d)\\d{6}",[6,9],[["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["[45]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["7"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0$1"]],"0"],PR:["1","011","(?:[589]\\d\\d|787)\\d{7}",[10],0,"1",0,0,0,0,"787|939"],PS:["970","00","[2489]2\\d{6}|(?:1\\d|5)\\d{8}",[8,9,10],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["[2489]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["5"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1"]]],"0"],PT:["351","00","1693\\d{5}|(?:[26-9]\\d|30)\\d{7}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["2[12]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["16|[236-9]"]]]],PW:["680","01[12]","(?:[24-8]\\d\\d|345|900)\\d{4}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[2-9]"]]]],PY:["595","00","59\\d{4,6}|9\\d{5,10}|(?:[2-46-8]\\d|5[0-8])\\d{4,7}",[6,7,8,9,10,11],[["(\\d{3})(\\d{3,6})","$1 $2",["[2-9]0"],"0$1"],["(\\d{2})(\\d{5})","$1 $2",["[26]1|3[289]|4[1246-8]|7[1-3]|8[1-36]"],"(0$1)"],["(\\d{3})(\\d{4,5})","$1 $2",["2[279]|3[13-5]|4[359]|5|6(?:[34]|7[1-46-8])|7[46-8]|85"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["2[14-68]|3[26-9]|4[1246-8]|6(?:1|75)|7[1-35]|8[1-36]"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["87"]],["(\\d{3})(\\d{6})","$1 $2",["9(?:[5-79]|8[1-7])"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[2-8]"],"0$1"],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["9"]]],"0"],QA:["974","00","800\\d{4}|(?:2|800)\\d{6}|(?:0080|[3-7])\\d{7}",[7,8,9,11],[["(\\d{3})(\\d{4})","$1 $2",["2[136]|8"]],["(\\d{4})(\\d{4})","$1 $2",["[3-7]"]]]],RE:["262","00","709\\d{6}|(?:26|[689]\\d)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[26-9]"],"0$1"]],"0",0,0,0,0,0,[["26(?:2\\d\\d|3(?:0\\d|1[0-6]))\\d{4}"],["(?:69(?:2\\d\\d|3(?:[06][0-6]|1[0-3]|2[0-2]|3[0-39]|4\\d|5[0-5]|7[0-37]|8[0-8]|9[0-479]))|7092[0-3])\\d{4}"],["80\\d{7}"],["89[1-37-9]\\d{6}"],0,0,0,0,["9(?:399[0-3]|479[0-6]|76(?:2[278]|3[0-37]))\\d{4}"],["8(?:1[019]|2[0156]|84|90)\\d{6}"]]],RO:["40","00","(?:[236-8]\\d|90)\\d{7}|[23]\\d{5}",[6,9],[["(\\d{3})(\\d{3})","$1 $2",["2[3-6]","2[3-6]\\d9"],"0$1"],["(\\d{2})(\\d{4})","$1 $2",["219|31"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[23]1"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[236-9]"],"0$1"]],"0",0,0,0,0,0,0,0," int "],RS:["381","00","38[02-9]\\d{6,9}|6\\d{7,9}|90\\d{4,8}|38\\d{5,6}|(?:7\\d\\d|800)\\d{3,9}|(?:[12]\\d|3[0-79])\\d{5,10}",[6,7,8,9,10,11,12],[["(\\d{3})(\\d{3,9})","$1 $2",["(?:2[389]|39)0|[7-9]"],"0$1"],["(\\d{2})(\\d{5,10})","$1 $2",["[1-36]"],"0$1"]],"0"],RU:["7","810","8\\d{13}|[347-9]\\d{9}",[10,14],[["(\\d{4})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["7(?:1[0-8]|2[1-9])","7(?:1(?:[0-356]2|4[29]|7|8[27])|2(?:1[23]|[2-9]2))","7(?:1(?:[0-356]2|4[29]|7|8[27])|2(?:13[03-69]|62[013-9]))|72[1-57-9]2"],"8 ($1)",1],["(\\d{5})(\\d)(\\d{2})(\\d{2})","$1 $2 $3 $4",["7(?:1[0-68]|2[1-9])","7(?:1(?:[06][3-6]|[18]|2[35]|[3-5][3-5])|2(?:[13][3-5]|[24-689]|7[457]))","7(?:1(?:0(?:[356]|4[023])|[18]|2(?:3[013-9]|5)|3[45]|43[013-79]|5(?:3[1-8]|4[1-7]|5)|6(?:3[0-35-9]|[4-6]))|2(?:1(?:3[178]|[45])|[24-689]|3[35]|7[457]))|7(?:14|23)4[0-8]|71(?:33|45)[1-79]"],"8 ($1)",1],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["7"],"8 ($1)",1],["(\\d{3})(\\d{3})(\\d{2})(\\d{2})","$1 $2-$3-$4",["[349]|8(?:[02-7]|1[1-8])"],"8 ($1)",1],["(\\d{4})(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3 $4",["8"],"8 ($1)"]],"8",0,0,0,0,0,[["336(?:[013-9]\\d|2[013-9])\\d{5}|(?:3(?:0[12]|4[1-35-79]|5[1-3]|65|8[1-58]|9[0145])|4(?:01|1[1356]|2[13467]|7[1-5]|8[1-7]|9[1-689])|8(?:1[1-8]|2[01]|3[13-6]|4[0-8]|5[15-7]|6[0-35-79]|7[1-37-9]))\\d{7}",[10]],["9\\d{9}",[10]],["8(?:0[04]|108\\d{3})\\d{7}"],["80[39]\\d{7}",[10]],["808\\d{7}",[10]]],"8~10"],RW:["250","00","(?:06|[27]\\d\\d|[89]00)\\d{6}",[8,9],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["0"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["2"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[7-9]"],"0$1"]],"0"],SA:["966","00","(?:[15]\\d|800|92)\\d{7}",[9,10],[["(\\d{4})(\\d{5})","$1 $2",["9"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["1"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["5"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"]]],"0"],SB:["677","0[01]","[6-9]\\d{6}|[1-6]\\d{4}",[5,7],[["(\\d{2})(\\d{5})","$1 $2",["6[89]|7|8[4-9]|9(?:[1-8]|9[0-8])"]]]],SC:["248","010|0[0-2]","(?:[2489]\\d|64)\\d{5}",[7],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[246]|9[57]"]]],0,0,0,0,0,0,0,"00"],SD:["249","00","[19]\\d{8}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[19]"],"0$1"]],"0"],SE:["46","00","(?:[26]\\d\\d|9)\\d{9}|[1-9]\\d{8}|[1-689]\\d{7}|[1-4689]\\d{6}|2\\d{5}",[6,7,8,9,10,12],[["(\\d{2})(\\d{2,3})(\\d{2})","$1-$2 $3",["20"],"0$1",0,"$1 $2 $3"],["(\\d{3})(\\d{4})","$1-$2",["9(?:00|39|44|9)"],"0$1",0,"$1 $2"],["(\\d{2})(\\d{3})(\\d{2})","$1-$2 $3",["[12][136]|3[356]|4[0246]|6[03]|90[1-9]"],"0$1",0,"$1 $2 $3"],["(\\d)(\\d{2,3})(\\d{2})(\\d{2})","$1-$2 $3 $4",["8"],"0$1",0,"$1 $2 $3 $4"],["(\\d{3})(\\d{2,3})(\\d{2})","$1-$2 $3",["1[2457]|2(?:[247-9]|5[0138])|3[0247-9]|4[1357-9]|5[0-35-9]|6(?:[125689]|4[02-57]|7[0-2])|9(?:[125-8]|3[02-5]|4[0-3])"],"0$1",0,"$1 $2 $3"],["(\\d{3})(\\d{2,3})(\\d{3})","$1-$2 $3",["9(?:00|39|44)"],"0$1",0,"$1 $2 $3"],["(\\d{2})(\\d{2,3})(\\d{2})(\\d{2})","$1-$2 $3 $4",["1[13689]|2[0136]|3[1356]|4[0246]|54|6[03]|90[1-9]"],"0$1",0,"$1 $2 $3 $4"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1-$2 $3 $4",["10|7"],"0$1",0,"$1 $2 $3 $4"],["(\\d)(\\d{3})(\\d{3})(\\d{2})","$1-$2 $3 $4",["8"],"0$1",0,"$1 $2 $3 $4"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1-$2 $3 $4",["[13-5]|2(?:[247-9]|5[0138])|6(?:[124-689]|7[0-2])|9(?:[125-8]|3[02-5]|4[0-3])"],"0$1",0,"$1 $2 $3 $4"],["(\\d{3})(\\d{2})(\\d{2})(\\d{3})","$1-$2 $3 $4",["9"],"0$1",0,"$1 $2 $3 $4"],["(\\d{3})(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1-$2 $3 $4 $5",["[26]"],"0$1",0,"$1 $2 $3 $4 $5"]],"0"],SG:["65","0[0-3]\\d","(?:(?:1\\d|8)\\d\\d|7000)\\d{7}|[3689]\\d{7}",[8,10,11],[["(\\d{4})(\\d{4})","$1 $2",["[369]|8(?:0[1-9]|[1-9])"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"]],["(\\d{4})(\\d{4})(\\d{3})","$1 $2 $3",["7"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["1"]]]],SH:["290","00","(?:[256]\\d|8)\\d{3}",[4,5],0,0,0,0,0,0,"[256]"],SI:["386","00|10(?:22|66|88|99)","[1-7]\\d{7}|8\\d{4,7}|90\\d{4,6}",[5,6,7,8],[["(\\d{2})(\\d{3,6})","$1 $2",["8[09]|9"],"0$1"],["(\\d{3})(\\d{5})","$1 $2",["59|8"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[37][01]|4[0139]|51|6"],"0$1"],["(\\d)(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[1-57]"],"(0$1)"]],"0",0,0,0,0,0,0,"00"],SJ:["47","00","0\\d{4}|(?:[489]\\d|79)\\d{6}",[5,8],0,0,0,0,0,0,"79"],SK:["421","00","[2-689]\\d{8}|[2-59]\\d{6}|[2-5]\\d{5}",[6,7,9],[["(\\d)(\\d{2})(\\d{3,4})","$1 $2 $3",["21"],"0$1"],["(\\d{2})(\\d{2})(\\d{2,3})","$1 $2 $3",["[3-5][1-8]1","[3-5][1-8]1[67]"],"0$1"],["(\\d)(\\d{3})(\\d{3})(\\d{2})","$1/$2 $3 $4",["2"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[689]"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1/$2 $3 $4",["[3-5]"],"0$1"]],"0"],SL:["232","00","(?:[237-9]\\d|66)\\d{6}",[8],[["(\\d{2})(\\d{6})","$1 $2",["[236-9]"],"(0$1)"]],"0"],SM:["378","00","(?:0549|[5-7]\\d)\\d{6}",[8,10],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-7]"]],["(\\d{4})(\\d{6})","$1 $2",["0"]]],0,0,"([89]\\d{5})$","0549$1"],SN:["221","00","(?:[378]\\d|93)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"]],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[379]"]]]],SO:["252","00","[346-9]\\d{8}|[12679]\\d{7}|[1-5]\\d{6}|[1348]\\d{5}",[6,7,8,9],[["(\\d{2})(\\d{4})","$1 $2",["8[125]"]],["(\\d{6})","$1",["[134]"]],["(\\d)(\\d{6})","$1 $2",["[15]|2[0-79]|3[0-46-8]|4[0-7]"]],["(\\d)(\\d{7})","$1 $2",["(?:2|90)4|[67]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[348]|64|79|90"]],["(\\d{2})(\\d{5,7})","$1 $2",["1|28|6[0-35-9]|7[67]|9[2-9]"]]],"0"],SR:["597","00","(?:[2-5]|68|[78]\\d|90)\\d{5}",[6,7],[["(\\d{2})(\\d{2})(\\d{2})","$1-$2-$3",["56"]],["(\\d{3})(\\d{3})","$1-$2",["[2-5]"]],["(\\d{3})(\\d{4})","$1-$2",["[6-9]"]]]],SS:["211","00","[19]\\d{8}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[19]"],"0$1"]],"0"],ST:["239","00","(?:22|9\\d)\\d{5}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[29]"]]]],SV:["503","00","[267]\\d{7}|(?:80\\d|900)\\d{4}(?:\\d{4})?",[7,8,11],[["(\\d{3})(\\d{4})","$1 $2",["[89]"]],["(\\d{4})(\\d{4})","$1 $2",["[267]"]],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["[89]"]]]],SX:["1","011","7215\\d{6}|(?:[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"(5\\d{6})$|1","721$1",0,"721"],SY:["963","00","[1-39]\\d{8}|[1-5]\\d{7}",[8,9],[["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[1-5]"],"0$1",1],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["9"],"0$1",1]],"0"],SZ:["268","00","0800\\d{4}|(?:[237]\\d|900)\\d{6}",[8,9],[["(\\d{4})(\\d{4})","$1 $2",["[0237]"]],["(\\d{5})(\\d{4})","$1 $2",["9"]]]],TA:["290","00","8\\d{3}",[4],0,0,0,0,0,0,"8"],TC:["1","011","(?:[58]\\d\\d|649|900)\\d{7}",[10],0,"1",0,"([2-479]\\d{6})$|1","649$1",0,"649"],TD:["235","00|16","(?:22|30|[689]\\d|77)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[236-9]"]]],0,0,0,0,0,0,0,"00"],TG:["228","00","[279]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[279]"]]]],TH:["66","00[1-9]","(?:001800|[2-57]|[689]\\d)\\d{7}|1\\d{7,9}",[8,9,10,13],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[13-9]"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1"]]],"0"],TJ:["992","810","[0-57-9]\\d{8}",[9],[["(\\d{6})(\\d)(\\d{2})","$1 $2 $3",["331","3317"]],["(\\d{3})(\\d{2})(\\d{4})","$1 $2 $3",["44[02-479]|[34]7"]],["(\\d{4})(\\d)(\\d{4})","$1 $2 $3",["3(?:[1245]|3[12])"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[0-57-9]"]]],0,0,0,0,0,0,0,"8~10"],TK:["690","00","[2-47]\\d{3,6}",[4,5,6,7]],TL:["670","00","7\\d{7}|(?:[2-47]\\d|[89]0)\\d{5}",[7,8],[["(\\d{3})(\\d{4})","$1 $2",["[2-489]|70"]],["(\\d{4})(\\d{4})","$1 $2",["7"]]]],TM:["993","810","(?:[1-6]\\d|71)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2-$3-$4",["12"],"(8 $1)"],["(\\d{3})(\\d)(\\d{2})(\\d{2})","$1 $2-$3-$4",["[1-5]"],"(8 $1)"],["(\\d{2})(\\d{6})","$1 $2",["[67]"],"8 $1"]],"8",0,0,0,0,0,0,"8~10"],TN:["216","00","[2-57-9]\\d{7}",[8],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[2-57-9]"]]]],TO:["676","00","(?:0800|(?:[5-8]\\d\\d|999)\\d)\\d{3}|[2-8]\\d{4}",[5,7],[["(\\d{2})(\\d{3})","$1-$2",["[2-4]|50|6[09]|7[0-24-69]|8[05]"]],["(\\d{4})(\\d{3})","$1 $2",["0"]],["(\\d{3})(\\d{4})","$1 $2",["[5-9]"]]]],TR:["90","00","4\\d{6}|8\\d{11,12}|(?:[2-58]\\d\\d|900)\\d{7}",[7,10,12,13],[["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["512|8[01589]|90"],"0$1",1],["(\\d{3})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["5(?:[0-59]|61)","5(?:[0-59]|61[06])","5(?:[0-59]|61[06]1)"],"0$1",1],["(\\d{3})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[24][1-8]|3[1-9]"],"(0$1)",1],["(\\d{3})(\\d{3})(\\d{6,7})","$1 $2 $3",["80"],"0$1",1]],"0"],TT:["1","011","(?:[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-46-8]\\d{6})$|1","868$1",0,"868"],TV:["688","00","(?:2|7\\d\\d|90)\\d{4}",[5,6,7],[["(\\d{2})(\\d{3})","$1 $2",["2"]],["(\\d{2})(\\d{4})","$1 $2",["90"]],["(\\d{2})(\\d{5})","$1 $2",["7"]]]],TW:["886","0(?:0[25-79]|19)","[2-689]\\d{8}|7\\d{9,10}|[2-8]\\d{7}|2\\d{6}",[7,8,9,10,11],[["(\\d{2})(\\d)(\\d{4})","$1 $2 $3",["202"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[258]0"],"0$1"],["(\\d)(\\d{3,4})(\\d{4})","$1 $2 $3",["[23568]|4(?:0[02-48]|[1-47-9])|7[1-9]","[23568]|4(?:0[2-48]|[1-47-9])|(?:400|7)[1-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[49]"],"0$1"],["(\\d{2})(\\d{4})(\\d{4,5})","$1 $2 $3",["7"],"0$1"]],"0",0,0,0,0,0,0,0,"#"],TZ:["255","00[056]","(?:[25-8]\\d|41|90)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{4})","$1 $2 $3",["[89]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[24]"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["5"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[67]"],"0$1"]],"0"],UA:["380","00","[89]\\d{9}|[3-9]\\d{8}",[9,10],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["6[12][29]|(?:3[1-8]|4[136-8]|5[12457]|6[49])2|(?:56|65)[24]","6[12][29]|(?:35|4[1378]|5[12457]|6[49])2|(?:56|65)[24]|(?:3[1-46-8]|46)2[013-9]"],"0$1"],["(\\d{4})(\\d{5})","$1 $2",["3[1-8]|4(?:[1367]|[45][6-9]|8[4-6])|5(?:[1-5]|6[0135689]|7[4-6])|6(?:[12][3-7]|[459])","3[1-8]|4(?:[1367]|[45][6-9]|8[4-6])|5(?:[1-5]|6(?:[015689]|3[02389])|7[4-6])|6(?:[12][3-7]|[459])"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[3-7]|89|9[1-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["[89]"],"0$1"]],"0",0,0,0,0,0,0,"0~0"],UG:["256","00[057]","800\\d{6}|(?:[29]0|[347]\\d)\\d{7}",[9],[["(\\d{4})(\\d{5})","$1 $2",["202","2024"],"0$1"],["(\\d{3})(\\d{6})","$1 $2",["[27-9]|4(?:6[45]|[7-9])"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["[34]"],"0$1"]],"0"],US:["1","011","[2-9]\\d{9}|3\\d{6}",[10],[["(\\d{3})(\\d{4})","$1-$2",["310"],0,1],["(\\d{3})(\\d{3})(\\d{4})","($1) $2-$3",["[2-9]"],0,1,"$1-$2-$3"]],"1",0,0,0,0,0,[["(?:3052(?:0[0-8]|[1-9]\\d)|5056(?:[0-35-9]\\d|4[0-68]))\\d{4}|(?:2742|305[3-9]|472[247-9]|505[2-57-9]|983[2-47-9])\\d{6}|(?:2(?:0[1-35-9]|1[02-9]|2[03-57-9]|3[1459]|4[08]|5[1-46]|6[0279]|7[0269]|8[13])|3(?:0[1-47-9]|1[02-9]|2[0135-79]|3[0-24679]|4[167]|5[0-2]|6[01349]|8[056])|4(?:0[124-9]|1[02-579]|2[3-5]|3[0245]|4[023578]|58|6[349]|7[0589]|8[04])|5(?:0[1-47-9]|1[0235-8]|20|3[0149]|4[01]|5[179]|6[1-47]|7[0-5]|8[0256])|6(?:0[1-35-9]|1[024-9]|2[03689]|3[016]|4[0156]|5[01679]|6[0-279]|78|8[0-29])|7(?:0[1-46-8]|1[2-9]|2[04-8]|3[0-247]|4[0378]|5[47]|6[02359]|7[0-59]|8[156])|8(?:0[1-68]|1[02-8]|2[0168]|3[0-2589]|4[03578]|5[046-9]|6[02-5]|7[028])|9(?:0[1346-9]|1[02-9]|2[0589]|3[0146-8]|4[01357-9]|5[12469]|7[0-3589]|8[04-69]))[2-9]\\d{6}"],[""],["8(?:00|33|44|55|66|77|88)[2-9]\\d{6}"],["900[2-9]\\d{6}"],["52(?:3(?:[2-46-9][02-9]\\d|5(?:[02-46-9]\\d|5[0-46-9]))|4(?:[2-478][02-9]\\d|5(?:[034]\\d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]\\d)|9(?:[05-9]\\d|2[0-5]|49)))\\d{4}|52[34][2-9]1[02-9]\\d{4}|5(?:00|2[125-9]|33|44|66|77|88)[2-9]\\d{6}"],0,0,0,["305209\\d{4}"]]],UY:["598","0(?:0|1[3-9]\\d)","0004\\d{2,9}|[1249]\\d{7}|(?:[49]\\d|80)\\d{5}",[6,7,8,9,10,11,12,13],[["(\\d{3})(\\d{3,4})","$1 $2",["0"]],["(\\d{3})(\\d{4})","$1 $2",["[49]0|8"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["9"],"0$1"],["(\\d{4})(\\d{4})","$1 $2",["[124]"]],["(\\d{3})(\\d{3})(\\d{2,4})","$1 $2 $3",["0"]],["(\\d{3})(\\d{3})(\\d{3})(\\d{2,4})","$1 $2 $3 $4",["0"]]],"0",0,0,0,0,0,0,"00"," int. "],UZ:["998","00","(?:20|33|[5-9]\\d)\\d{7}",[9],[["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[235-9]"]]]],VA:["39","00","0\\d{5,10}|3[0-8]\\d{7,10}|55\\d{8}|8\\d{5}(?:\\d{2,4})?|(?:1\\d|39)\\d{7,8}",[6,7,8,9,10,11,12],0,0,0,0,0,0,"06698"],VC:["1","011","(?:[58]\\d\\d|784|900)\\d{7}",[10],0,"1",0,"([2-7]\\d{6})$|1","784$1",0,"784"],VE:["58","00","[68]00\\d{7}|(?:[24]\\d|[59]0)\\d{8}",[10],[["(\\d{3})(\\d{7})","$1-$2",["[24-689]"],"0$1"]],"0"],VG:["1","011","(?:284|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-578]\\d{6})$|1","284$1",0,"284"],VI:["1","011","[58]\\d{9}|(?:34|90)0\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","340$1",0,"340"],VN:["84","00","[12]\\d{9}|[135-9]\\d{8}|[16]\\d{7}|[16-8]\\d{6}",[7,8,9,10],[["(\\d{2})(\\d{5})","$1 $2",["80"],"0$1",1],["(\\d{4})(\\d{4,6})","$1 $2",["1"],0,1],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["6"],"0$1",1],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[357-9]"],"0$1",1],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["2[48]"],"0$1",1],["(\\d{3})(\\d{4})(\\d{3})","$1 $2 $3",["2"],"0$1",1]],"0"],VU:["678","00","[57-9]\\d{6}|(?:[238]\\d|48)\\d{3}",[5,7],[["(\\d{3})(\\d{4})","$1 $2",["[57-9]"]]]],WF:["681","00","(?:40|72|8\\d{4})\\d{4}|[89]\\d{5}",[6,9],[["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["[47-9]"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"]]]],WS:["685","0","(?:[2-6]|8\\d{5})\\d{4}|[78]\\d{6}|[68]\\d{5}",[5,6,7,10],[["(\\d{5})","$1",["[2-5]|6[1-9]"]],["(\\d{3})(\\d{3,7})","$1 $2",["[68]"]],["(\\d{2})(\\d{5})","$1 $2",["7"]]]],XK:["383","00","2\\d{7,8}|3\\d{7,11}|(?:4\\d\\d|[89]00)\\d{5}",[8,9,10,11,12],[["(\\d{3})(\\d{5})","$1 $2",["[89]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[2-4]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["2|39"],"0$1"],["(\\d{2})(\\d{7,10})","$1 $2",["3"],"0$1"]],"0"],YE:["967","00","(?:1|7\\d)\\d{7}|[1-7]\\d{6}",[7,8,9],[["(\\d)(\\d{3})(\\d{3,4})","$1 $2 $3",["[1-6]|7(?:[24-6]|8[0-7])"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["7"],"0$1"]],"0"],YT:["262","00","7093\\d{5}|(?:80|9\\d)\\d{7}|(?:26|63)9\\d{6}",[9],0,"0",0,0,0,0,0,[["269(?:0[0-467]|15|5[0-4]|6\\d|[78]0)\\d{4}"],["(?:639(?:0[0-79]|1[019]|[267]\\d|3[09]|40|5[05-9]|9[04-79])|7093[5-7])\\d{4}"],["80\\d{7}"],0,0,0,0,0,["9(?:(?:39|47)8[01]|769\\d)\\d{4}"]]],ZA:["27","00","[1-79]\\d{8}|8\\d{4,9}",[5,6,7,8,9,10],[["(\\d{2})(\\d{3,4})","$1 $2",["8[1-4]"],"0$1"],["(\\d{2})(\\d{3})(\\d{2,3})","$1 $2 $3",["8[1-4]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["860"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[1-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"],"0$1"]],"0"],ZM:["260","00","800\\d{6}|(?:21|[579]\\d|63)\\d{7}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[28]"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["[579]"],"0$1"]],"0"],ZW:["263","00","2(?:[0-57-9]\\d{6,8}|6[0-24-9]\\d{6,7})|[38]\\d{9}|[35-8]\\d{8}|[3-6]\\d{7}|[1-689]\\d{6}|[1-3569]\\d{5}|[1356]\\d{4}",[5,6,7,8,9,10],[["(\\d{3})(\\d{3,5})","$1 $2",["2(?:0[45]|2[278]|[49]8)|3(?:[09]8|17)|6(?:[29]8|37|75)|[23][78]|(?:33|5[15]|6[68])[78]"],"0$1"],["(\\d)(\\d{3})(\\d{2,4})","$1 $2 $3",["[49]"],"0$1"],["(\\d{3})(\\d{4})","$1 $2",["80"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["24|8[13-59]|(?:2[05-79]|39|5[45]|6[15-8])2","2(?:02[014]|4|[56]20|[79]2)|392|5(?:42|525)|6(?:[16-8]21|52[013])|8[13-59]"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["7"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["2(?:1[39]|2[0157]|[378]|[56][14])|3(?:12|29)","2(?:1[39]|2[0157]|[378]|[56][14])|3(?:123|29)"],"0$1"],["(\\d{4})(\\d{6})","$1 $2",["8"],"0$1"],["(\\d{2})(\\d{3,5})","$1 $2",["1|2(?:0[0-36-9]|12|29|[56])|3(?:1[0-689]|[24-6])|5(?:[0236-9]|1[2-4])|6(?:[013-59]|7[0-46-9])|(?:33|55|6[68])[0-69]|(?:29|3[09]|62)[0-79]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["29[013-9]|39|54"],"0$1"],["(\\d{4})(\\d{3,5})","$1 $2",["(?:25|54)8","258|5483"],"0$1"]],"0"]},nonGeographic:{800:["800",0,"(?:00|[1-9]\\d)\\d{6}",[8],[["(\\d{4})(\\d{4})","$1 $2",["\\d"]]],0,0,0,0,0,0,[0,0,["(?:00|[1-9]\\d)\\d{6}"]]],808:["808",0,"[1-9]\\d{7}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[1-9]"]]],0,0,0,0,0,0,[0,0,0,0,0,0,0,0,0,["[1-9]\\d{7}"]]],870:["870",0,"7\\d{11}|[235-7]\\d{8}",[9,12],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[235-7]"]]],0,0,0,0,0,0,[0,["(?:[356]|774[45])\\d{8}|7[6-8]\\d{7}"],0,0,0,0,0,0,["2\\d{8}",[9]]]],878:["878",0,"10\\d{10}",[12],[["(\\d{2})(\\d{5})(\\d{5})","$1 $2 $3",["1"]]],0,0,0,0,0,0,[0,0,0,0,0,0,0,0,["10\\d{10}"]]],881:["881",0,"6\\d{9}|[0-36-9]\\d{8}",[9,10],[["(\\d)(\\d{3})(\\d{5})","$1 $2 $3",["[0-37-9]"]],["(\\d)(\\d{3})(\\d{5,6})","$1 $2 $3",["6"]]],0,0,0,0,0,0,[0,["6\\d{9}|[0-36-9]\\d{8}"]]],882:["882",0,"[13]\\d{6}(?:\\d{2,5})?|[19]\\d{7}|(?:[25]\\d\\d|4)\\d{7}(?:\\d{2})?",[7,8,9,10,11,12],[["(\\d{2})(\\d{5})","$1 $2",["16|342"]],["(\\d{2})(\\d{6})","$1 $2",["49"]],["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["1[36]|9"]],["(\\d{2})(\\d{4})(\\d{3})","$1 $2 $3",["3[23]"]],["(\\d{2})(\\d{3,4})(\\d{4})","$1 $2 $3",["16"]],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["10|23|3(?:[15]|4[57])|4|51"]],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["34"]],["(\\d{2})(\\d{4,5})(\\d{5})","$1 $2 $3",["[1-35]"]]],0,0,0,0,0,0,[0,["342\\d{4}|(?:337|49)\\d{6}|(?:3(?:2|47|7\\d{3})|50\\d{3})\\d{7}",[7,8,9,10,12]],0,0,0,["348[57]\\d{7}",[11]],0,0,["1(?:3(?:0[0347]|[13][0139]|2[035]|4[013568]|6[0459]|7[06]|8[15-8]|9[0689])\\d{4}|6\\d{5,10})|(?:345\\d|9[89])\\d{6}|(?:10|2(?:3|85\\d)|3(?:[15]|[69]\\d\\d)|4[15-8]|51)\\d{8}"]]],883:["883",0,"(?:[1-4]\\d|51)\\d{6,10}",[8,9,10,11,12],[["(\\d{3})(\\d{3})(\\d{2,8})","$1 $2 $3",["[14]|2[24-689]|3[02-689]|51[24-9]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["510"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["21"]],["(\\d{4})(\\d{4})(\\d{4})","$1 $2 $3",["51[13]"]],["(\\d{3})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["[235]"]]],0,0,0,0,0,0,[0,0,0,0,0,0,0,0,["(?:2(?:00\\d\\d|10)|(?:370[1-9]|51\\d0)\\d)\\d{7}|51(?:00\\d{5}|[24-9]0\\d{4,7})|(?:1[0-79]|2[24-689]|3[02-689]|4[0-4])0\\d{5,9}"]]],888:["888",0,"\\d{11}",[11],[["(\\d{3})(\\d{3})(\\d{5})","$1 $2 $3"]],0,0,0,0,0,0,[0,0,0,0,0,0,["\\d{11}"]]],979:["979",0,"[1359]\\d{8}",[9],[["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["[1359]"]]],0,0,0,0,0,0,[0,0,0,["[1359]\\d{8}"]]]}};function withMetadataArgument(s,t){var n=Array.prototype.slice.call(t);return n.push(metadata),s.apply(this,n)}function compare(s,t){s=s.split("-"),t=t.split("-");for(var n=s[0].split("."),r=t[0].split("."),i=0;i<3;i++){var a=Number(n[i]),d=Number(r[i]);if(a>d)return 1;if(d>a)return-1;if(!isNaN(a)&&isNaN(d))return 1;if(isNaN(a)&&!isNaN(d))return-1}return s[1]&&t[1]?s[1]>t[1]?1:s[1]<t[1]?-1:0:!s[1]&&t[1]?1:s[1]&&!t[1]?-1:0}var objectConstructor={}.constructor;function isObject(s){return s!=null&&s.constructor===objectConstructor}function _typeof$1(s){"@babel/helpers - typeof";return _typeof$1=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_typeof$1(s)}function _classCallCheck$2(s,t){if(!(s instanceof t))throw new TypeError("Cannot call a class as a function")}function _defineProperties$1(s,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(s,r.key,r)}}function _createClass$2(s,t,n){return t&&_defineProperties$1(s.prototype,t),Object.defineProperty(s,"prototype",{writable:!1}),s}var V3="1.2.0",V4="1.7.35",DEFAULT_EXT_PREFIX=" ext. ",CALLING_CODE_REG_EXP=/^\d+$/,Metadata=function(){function s(t){_classCallCheck$2(this,s),validateMetadata(t),this.metadata=t,setVersion.call(this,t)}return _createClass$2(s,[{key:"getCountries",value:function(){return Object.keys(this.metadata.countries).filter(function(n){return n!=="001"})}},{key:"getCountryMetadata",value:function(n){return this.metadata.countries[n]}},{key:"nonGeographic",value:function(){if(!(this.v1||this.v2||this.v3))return this.metadata.nonGeographic||this.metadata.nonGeographical}},{key:"hasCountry",value:function(n){return this.getCountryMetadata(n)!==void 0}},{key:"hasCallingCode",value:function(n){if(this.getCountryCodesForCallingCode(n))return!0;if(this.nonGeographic()){if(this.nonGeographic()[n])return!0}else{var r=this.countryCallingCodes()[n];if(r&&r.length===1&&r[0]==="001")return!0}}},{key:"isNonGeographicCallingCode",value:function(n){return this.nonGeographic()?!!this.nonGeographic()[n]:!this.getCountryCodesForCallingCode(n)}},{key:"country",value:function(n){return this.selectNumberingPlan(n)}},{key:"selectNumberingPlan",value:function(n,r){if(n&&CALLING_CODE_REG_EXP.test(n)&&(r=n,n=null),n&&n!=="001"){if(!this.hasCountry(n))throw new Error("Unknown country: ".concat(n));this.numberingPlan=new NumberingPlan(this.getCountryMetadata(n),this)}else if(r){if(!this.hasCallingCode(r))throw new Error("Unknown calling code: ".concat(r));this.numberingPlan=new NumberingPlan(this.getNumberingPlanMetadata(r),this)}else this.numberingPlan=void 0;return this}},{key:"getCountryCodesForCallingCode",value:function(n){var r=this.countryCallingCodes()[n];if(r)return r.length===1&&r[0].length===3?void 0:r}},{key:"getCountryCodeForCallingCode",value:function(n){var r=this.getCountryCodesForCallingCode(n);if(r)return r[0]}},{key:"getNumberingPlanMetadata",value:function(n){var r=this.getCountryCodeForCallingCode(n);if(r)return this.getCountryMetadata(r);if(this.nonGeographic()){var i=this.nonGeographic()[n];if(i)return i}else{var a=this.countryCallingCodes()[n];if(a&&a.length===1&&a[0]==="001")return this.metadata.countries["001"]}}},{key:"countryCallingCode",value:function(){return this.numberingPlan.callingCode()}},{key:"IDDPrefix",value:function(){return this.numberingPlan.IDDPrefix()}},{key:"defaultIDDPrefix",value:function(){return this.numberingPlan.defaultIDDPrefix()}},{key:"nationalNumberPattern",value:function(){return this.numberingPlan.nationalNumberPattern()}},{key:"possibleLengths",value:function(){return this.numberingPlan.possibleLengths()}},{key:"formats",value:function(){return this.numberingPlan.formats()}},{key:"nationalPrefixForParsing",value:function(){return this.numberingPlan.nationalPrefixForParsing()}},{key:"nationalPrefixTransformRule",value:function(){return this.numberingPlan.nationalPrefixTransformRule()}},{key:"leadingDigits",value:function(){return this.numberingPlan.leadingDigits()}},{key:"hasTypes",value:function(){return this.numberingPlan.hasTypes()}},{key:"type",value:function(n){return this.numberingPlan.type(n)}},{key:"ext",value:function(){return this.numberingPlan.ext()}},{key:"countryCallingCodes",value:function(){return this.v1?this.metadata.country_phone_code_to_countries:this.metadata.country_calling_codes}},{key:"chooseCountryByCountryCallingCode",value:function(n){return this.selectNumberingPlan(n)}},{key:"hasSelectedNumberingPlan",value:function(){return this.numberingPlan!==void 0}}]),s}(),NumberingPlan=function(){function s(t,n){_classCallCheck$2(this,s),this.globalMetadataObject=n,this.metadata=t,setVersion.call(this,n.metadata)}return _createClass$2(s,[{key:"callingCode",value:function(){return this.metadata[0]}},{key:"getDefaultCountryMetadataForRegion",value:function(){return this.globalMetadataObject.getNumberingPlanMetadata(this.callingCode())}},{key:"IDDPrefix",value:function(){if(!(this.v1||this.v2))return this.metadata[1]}},{key:"defaultIDDPrefix",value:function(){if(!(this.v1||this.v2))return this.metadata[12]}},{key:"nationalNumberPattern",value:function(){return this.v1||this.v2?this.metadata[1]:this.metadata[2]}},{key:"possibleLengths",value:function(){if(!this.v1)return this.metadata[this.v2?2:3]}},{key:"_getFormats",value:function(n){return n[this.v1?2:this.v2?3:4]}},{key:"formats",value:function(){var n=this,r=this._getFormats(this.metadata)||this._getFormats(this.getDefaultCountryMetadataForRegion())||[];return r.map(function(i){return new Format(i,n)})}},{key:"nationalPrefix",value:function(){return this.metadata[this.v1?3:this.v2?4:5]}},{key:"_getNationalPrefixFormattingRule",value:function(n){return n[this.v1?4:this.v2?5:6]}},{key:"nationalPrefixFormattingRule",value:function(){return this._getNationalPrefixFormattingRule(this.metadata)||this._getNationalPrefixFormattingRule(this.getDefaultCountryMetadataForRegion())}},{key:"_nationalPrefixForParsing",value:function(){return this.metadata[this.v1?5:this.v2?6:7]}},{key:"nationalPrefixForParsing",value:function(){return this._nationalPrefixForParsing()||this.nationalPrefix()}},{key:"nationalPrefixTransformRule",value:function(){return this.metadata[this.v1?6:this.v2?7:8]}},{key:"_getNationalPrefixIsOptionalWhenFormatting",value:function(){return!!this.metadata[this.v1?7:this.v2?8:9]}},{key:"nationalPrefixIsOptionalWhenFormattingInNationalFormat",value:function(){return this._getNationalPrefixIsOptionalWhenFormatting(this.metadata)||this._getNationalPrefixIsOptionalWhenFormatting(this.getDefaultCountryMetadataForRegion())}},{key:"leadingDigits",value:function(){return this.metadata[this.v1?8:this.v2?9:10]}},{key:"types",value:function(){return this.metadata[this.v1?9:this.v2?10:11]}},{key:"hasTypes",value:function(){return this.types()&&this.types().length===0?!1:!!this.types()}},{key:"type",value:function(n){if(this.hasTypes()&&getType(this.types(),n))return new Type(getType(this.types(),n),this)}},{key:"ext",value:function(){return this.v1||this.v2?DEFAULT_EXT_PREFIX:this.metadata[13]||DEFAULT_EXT_PREFIX}}]),s}(),Format=function(){function s(t,n){_classCallCheck$2(this,s),this._format=t,this.metadata=n}return _createClass$2(s,[{key:"pattern",value:function(){return this._format[0]}},{key:"format",value:function(){return this._format[1]}},{key:"leadingDigitsPatterns",value:function(){return this._format[2]||[]}},{key:"nationalPrefixFormattingRule",value:function(){return this._format[3]||this.metadata.nationalPrefixFormattingRule()}},{key:"nationalPrefixIsOptionalWhenFormattingInNationalFormat",value:function(){return!!this._format[4]||this.metadata.nationalPrefixIsOptionalWhenFormattingInNationalFormat()}},{key:"nationalPrefixIsMandatoryWhenFormattingInNationalFormat",value:function(){return this.usesNationalPrefix()&&!this.nationalPrefixIsOptionalWhenFormattingInNationalFormat()}},{key:"usesNationalPrefix",value:function(){return!!(this.nationalPrefixFormattingRule()&&!FIRST_GROUP_ONLY_PREFIX_PATTERN.test(this.nationalPrefixFormattingRule()))}},{key:"internationalFormat",value:function(){return this._format[5]||this.format()}}]),s}(),FIRST_GROUP_ONLY_PREFIX_PATTERN=/^\(?\$1\)?$/,Type=function(){function s(t,n){_classCallCheck$2(this,s),this.type=t,this.metadata=n}return _createClass$2(s,[{key:"pattern",value:function(){return this.metadata.v1?this.type:this.type[0]}},{key:"possibleLengths",value:function(){if(!this.metadata.v1)return this.type[1]||this.metadata.possibleLengths()}}]),s}();function getType(s,t){switch(t){case"FIXED_LINE":return s[0];case"MOBILE":return s[1];case"TOLL_FREE":return s[2];case"PREMIUM_RATE":return s[3];case"PERSONAL_NUMBER":return s[4];case"VOICEMAIL":return s[5];case"UAN":return s[6];case"PAGER":return s[7];case"VOIP":return s[8];case"SHARED_COST":return s[9]}}function validateMetadata(s){if(!s)throw new Error("[libphonenumber-js] `metadata` argument not passed. Check your arguments.");if(!isObject(s)||!isObject(s.countries))throw new Error("[libphonenumber-js] `metadata` argument was passed but it's not a valid metadata. Must be an object having `.countries` child object property. Got ".concat(isObject(s)?"an object of shape: { "+Object.keys(s).join(", ")+" }":"a "+typeOf(s)+": "+s,"."))}var typeOf=function s(t){return _typeof$1(t)};function getCountryCallingCode(s,t){if(t=new Metadata(t),t.hasCountry(s))return t.country(s).countryCallingCode();throw new Error("Unknown country: ".concat(s))}function isSupportedCountry(s,t){return t.countries.hasOwnProperty(s)}function setVersion(s){var t=s.version;typeof t=="number"?(this.v1=t===1,this.v2=t===2,this.v3=t===3,this.v4=t===4):t?compare(t,V3)===-1?this.v2=!0:compare(t,V4)===-1?this.v3=!0:this.v4=!0:this.v1=!0}function checkNumberLength(s,t){return checkNumberLengthForType(s,void 0,t)}function checkNumberLengthForType(s,t,n){var r=n.type(t),i=r&&r.possibleLengths()||n.possibleLengths();if(!i)return"IS_POSSIBLE";var a=s.length,d=i[0];return d===a?"IS_POSSIBLE":d>a?"TOO_SHORT":i[i.length-1]<a?"TOO_LONG":i.indexOf(a,1)>=0?"IS_POSSIBLE":"INVALID_LENGTH"}function isPossiblePhoneNumber(s,t,n){if(t===void 0&&(t={}),n=new Metadata(n),t.v2){if(!s.countryCallingCode)throw new Error("Invalid phone number object passed");n.selectNumberingPlan(s.countryCallingCode)}else{if(!s.phone)return!1;if(s.country){if(!n.hasCountry(s.country))throw new Error("Unknown country: ".concat(s.country));n.country(s.country)}else{if(!s.countryCallingCode)throw new Error("Invalid phone number object passed");n.selectNumberingPlan(s.countryCallingCode)}}if(n.possibleLengths())return isPossibleNumber(s.phone||s.nationalNumber,n);if(s.countryCallingCode&&n.isNonGeographicCallingCode(s.countryCallingCode))return!0;throw new Error('Missing "possibleLengths" in metadata. Perhaps the metadata has been generated before v1.0.18.')}function isPossibleNumber(s,t){switch(checkNumberLength(s,t)){case"IS_POSSIBLE":return!0;default:return!1}}function matchesEntirely(s,t){return s=s||"",new RegExp("^(?:"+t+")$").test(s)}function _createForOfIteratorHelperLoose$3(s,t){var n=typeof Symbol!="undefined"&&s[Symbol.iterator]||s["@@iterator"];if(n)return(n=n.call(s)).next.bind(n);if(Array.isArray(s)||(n=_unsupportedIterableToArray$4(s))||t){n&&(s=n);var r=0;return function(){return r>=s.length?{done:!0}:{done:!1,value:s[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _unsupportedIterableToArray$4(s,t){if(s){if(typeof s=="string")return _arrayLikeToArray$4(s,t);var n=Object.prototype.toString.call(s).slice(8,-1);if(n==="Object"&&s.constructor&&(n=s.constructor.name),n==="Map"||n==="Set")return Array.from(s);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _arrayLikeToArray$4(s,t)}}function _arrayLikeToArray$4(s,t){(t==null||t>s.length)&&(t=s.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=s[n];return r}var NON_FIXED_LINE_PHONE_TYPES=["MOBILE","PREMIUM_RATE","TOLL_FREE","SHARED_COST","VOIP","PERSONAL_NUMBER","PAGER","UAN","VOICEMAIL"];function getNumberType(s,t,n){if(t=t||{},!(!s.country&&!s.countryCallingCode)){n=new Metadata(n),n.selectNumberingPlan(s.country,s.countryCallingCode);var r=t.v2?s.nationalNumber:s.phone;if(matchesEntirely(r,n.nationalNumberPattern())){if(isNumberTypeEqualTo(r,"FIXED_LINE",n))return n.type("MOBILE")&&n.type("MOBILE").pattern()===""||!n.type("MOBILE")||isNumberTypeEqualTo(r,"MOBILE",n)?"FIXED_LINE_OR_MOBILE":"FIXED_LINE";for(var i=_createForOfIteratorHelperLoose$3(NON_FIXED_LINE_PHONE_TYPES),a;!(a=i()).done;){var d=a.value;if(isNumberTypeEqualTo(r,d,n))return d}}}}function isNumberTypeEqualTo(s,t,n){return t=n.type(t),!t||!t.pattern()||t.possibleLengths()&&t.possibleLengths().indexOf(s.length)<0?!1:matchesEntirely(s,t.pattern())}function isValidNumber(s,t,n){if(t=t||{},n=new Metadata(n),n.selectNumberingPlan(s.country,s.countryCallingCode),n.hasTypes())return getNumberType(s,t,n.metadata)!==void 0;var r=t.v2?s.nationalNumber:s.phone;return matchesEntirely(r,n.nationalNumberPattern())}function getPossibleCountriesForNumber(s,t,n){var r=new Metadata(n),i=r.getCountryCodesForCallingCode(s);return i?i.filter(function(a){return couldNationalNumberBelongToCountry(t,a,n)}):[]}function couldNationalNumberBelongToCountry(s,t,n){var r=new Metadata(n);return r.selectNumberingPlan(t),r.numberingPlan.possibleLengths().indexOf(s.length)>=0}var MIN_LENGTH_FOR_NSN=2,MAX_LENGTH_FOR_NSN=17,MAX_LENGTH_COUNTRY_CODE=3,VALID_DIGITS="0-9０-９٠-٩۰-۹",DASHES="-‐-―−ー－",SLASHES="／/",DOTS="．.",WHITESPACE="  ­​⁠　",BRACKETS="()（）［］\\[\\]",TILDES="~⁓∼～",VALID_PUNCTUATION="".concat(DASHES).concat(SLASHES).concat(DOTS).concat(WHITESPACE).concat(BRACKETS).concat(TILDES),PLUS_CHARS="+＋",CAPTURING_DIGIT_PATTERN=new RegExp("(["+VALID_DIGITS+"])");function stripIddPrefix(s,t,n,r){if(t){var i=new Metadata(r);i.selectNumberingPlan(t,n);var a=new RegExp(i.IDDPrefix());if(s.search(a)===0){s=s.slice(s.match(a)[0].length);var d=s.match(CAPTURING_DIGIT_PATTERN);if(!(d&&d[1]!=null&&d[1].length>0&&d[1]==="0"))return s}}}function extractNationalNumberFromPossiblyIncompleteNumber(s,t){if(s&&t.numberingPlan.nationalPrefixForParsing()){var n=new RegExp("^(?:"+t.numberingPlan.nationalPrefixForParsing()+")"),r=n.exec(s);if(r){var i,a,d=r.length-1,o=d>0&&r[d];if(t.nationalPrefixTransformRule()&&o)i=s.replace(n,t.nationalPrefixTransformRule()),d>1&&(a=r[1]);else{var l=r[0];i=s.slice(l.length),o&&(a=r[1])}var u;if(o){var c=s.indexOf(r[1]),h=s.slice(0,c);h===t.numberingPlan.nationalPrefix()&&(u=t.numberingPlan.nationalPrefix())}else u=r[0];return{nationalNumber:i,nationalPrefix:u,carrierCode:a}}}return{nationalNumber:s}}function extractNationalNumber(s,t){var n=extractNationalNumberFromPossiblyIncompleteNumber(s,t),r=n.carrierCode,i=n.nationalNumber;if(i!==s){if(!shouldHaveExtractedNationalPrefix(s,i,t))return{nationalNumber:s};if(t.possibleLengths()&&!isPossibleIncompleteNationalNumber(i,t))return{nationalNumber:s}}return{nationalNumber:i,carrierCode:r}}function shouldHaveExtractedNationalPrefix(s,t,n){return!(matchesEntirely(s,n.nationalNumberPattern())&&!matchesEntirely(t,n.nationalNumberPattern()))}function isPossibleIncompleteNationalNumber(s,t){switch(checkNumberLength(s,t)){case"TOO_SHORT":case"INVALID_LENGTH":return!1;default:return!0}}function extractCountryCallingCodeFromInternationalNumberWithoutPlusSign(s,t,n,r){var i=t?getCountryCallingCode(t,r):n;if(s.indexOf(i)===0){r=new Metadata(r),r.selectNumberingPlan(t,n);var a=s.slice(i.length),d=extractNationalNumber(a,r),o=d.nationalNumber,l=extractNationalNumber(s,r),u=l.nationalNumber;if(!matchesEntirely(u,r.nationalNumberPattern())&&matchesEntirely(o,r.nationalNumberPattern())||checkNumberLength(u,r)==="TOO_LONG")return{countryCallingCode:i,number:a}}return{number:s}}function extractCountryCallingCode(s,t,n,r){if(!s)return{};var i;if(s[0]!=="+"){var a=stripIddPrefix(s,t,n,r);if(a&&a!==s)i=!0,s="+"+a;else{if(t||n){var d=extractCountryCallingCodeFromInternationalNumberWithoutPlusSign(s,t,n,r),o=d.countryCallingCode,l=d.number;if(o)return{countryCallingCodeSource:"FROM_NUMBER_WITHOUT_PLUS_SIGN",countryCallingCode:o,number:l}}return{number:s}}}if(s[1]==="0")return{};r=new Metadata(r);for(var u=2;u-1<=MAX_LENGTH_COUNTRY_CODE&&u<=s.length;){var c=s.slice(1,u);if(r.hasCallingCode(c))return r.selectNumberingPlan(c),{countryCallingCodeSource:i?"FROM_NUMBER_WITH_IDD":"FROM_NUMBER_WITH_PLUS_SIGN",countryCallingCode:c,number:s.slice(u)};u++}return{}}function applyInternationalSeparatorStyle(s){return s.replace(new RegExp("[".concat(VALID_PUNCTUATION,"]+"),"g")," ").trim()}var FIRST_GROUP_PATTERN=/(\$\d)/;function formatNationalNumberUsingFormat(s,t,n){var r=n.useInternationalFormat,i=n.withNationalPrefix,a=s.replace(new RegExp(t.pattern()),r?t.internationalFormat():i&&t.nationalPrefixFormattingRule()?t.format().replace(FIRST_GROUP_PATTERN,t.nationalPrefixFormattingRule()):t.format());return r?applyInternationalSeparatorStyle(a):a}var SINGLE_IDD_PREFIX_REG_EXP=/^[\d]+(?:[~\u2053\u223C\uFF5E][\d]+)?$/;function getIddPrefix(s,t,n){var r=new Metadata(n);if(r.selectNumberingPlan(s,t),r.defaultIDDPrefix())return r.defaultIDDPrefix();if(SINGLE_IDD_PREFIX_REG_EXP.test(r.IDDPrefix()))return r.IDDPrefix()}var RFC3966_EXTN_PREFIX=";ext=",getExtensionDigitsPattern=function s(t){return"([".concat(VALID_DIGITS,"]{1,").concat(t,"})")};function createExtensionPattern(s){var t="20",n="15",r="9",i="6",a="[  \\t,]*",d="[:\\.．]?[  \\t,-]*",o="#?",l="(?:e?xt(?:ensi(?:ó?|ó))?n?|ｅ?ｘｔｎ?|доб|anexo)",u="(?:[xｘ#＃~～]|int|ｉｎｔ)",c="[- ]+",h="[  \\t]*",f="(?:,{2}|;)",y=RFC3966_EXTN_PREFIX+getExtensionDigitsPattern(t),w=a+l+d+getExtensionDigitsPattern(t)+o,$=a+u+d+getExtensionDigitsPattern(r)+o,m=c+getExtensionDigitsPattern(i)+"#",C=h+f+d+getExtensionDigitsPattern(n)+o,v=h+"(?:,)+"+d+getExtensionDigitsPattern(r)+o;return y+"|"+w+"|"+$+"|"+m+"|"+C+"|"+v}var MIN_LENGTH_PHONE_NUMBER_PATTERN="["+VALID_DIGITS+"]{"+MIN_LENGTH_FOR_NSN+"}",VALID_PHONE_NUMBER="["+PLUS_CHARS+"]{0,1}(?:["+VALID_PUNCTUATION+"]*["+VALID_DIGITS+"]){3,}["+VALID_PUNCTUATION+VALID_DIGITS+"]*",VALID_PHONE_NUMBER_START_REG_EXP=new RegExp("^["+PLUS_CHARS+"]{0,1}(?:["+VALID_PUNCTUATION+"]*["+VALID_DIGITS+"]){1,2}$","i"),VALID_PHONE_NUMBER_WITH_EXTENSION=VALID_PHONE_NUMBER+"(?:"+createExtensionPattern()+")?",VALID_PHONE_NUMBER_PATTERN=new RegExp("^"+MIN_LENGTH_PHONE_NUMBER_PATTERN+"$|^"+VALID_PHONE_NUMBER_WITH_EXTENSION+"$","i");function isViablePhoneNumber(s){return s.length>=MIN_LENGTH_FOR_NSN&&VALID_PHONE_NUMBER_PATTERN.test(s)}function isViablePhoneNumberStart(s){return VALID_PHONE_NUMBER_START_REG_EXP.test(s)}function formatRFC3966(s){var t=s.number,n=s.ext;if(!t)return"";if(t[0]!=="+")throw new Error('"formatRFC3966()" expects "number" to be in E.164 format.');return"tel:".concat(t).concat(n?";ext="+n:"")}function _createForOfIteratorHelperLoose$2(s,t){var n=typeof Symbol!="undefined"&&s[Symbol.iterator]||s["@@iterator"];if(n)return(n=n.call(s)).next.bind(n);if(Array.isArray(s)||(n=_unsupportedIterableToArray$3(s))||t){n&&(s=n);var r=0;return function(){return r>=s.length?{done:!0}:{done:!1,value:s[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _unsupportedIterableToArray$3(s,t){if(s){if(typeof s=="string")return _arrayLikeToArray$3(s,t);var n=Object.prototype.toString.call(s).slice(8,-1);if(n==="Object"&&s.constructor&&(n=s.constructor.name),n==="Map"||n==="Set")return Array.from(s);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _arrayLikeToArray$3(s,t)}}function _arrayLikeToArray$3(s,t){(t==null||t>s.length)&&(t=s.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=s[n];return r}function ownKeys$5(s,t){var n=Object.keys(s);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(s);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(s,i).enumerable})),n.push.apply(n,r)}return n}function _objectSpread$5(s){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?ownKeys$5(Object(n),!0).forEach(function(r){_defineProperty$5(s,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(s,Object.getOwnPropertyDescriptors(n)):ownKeys$5(Object(n)).forEach(function(r){Object.defineProperty(s,r,Object.getOwnPropertyDescriptor(n,r))})}return s}function _defineProperty$5(s,t,n){return t in s?Object.defineProperty(s,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):s[t]=n,s}var DEFAULT_OPTIONS={formatExtension:function s(t,n,r){return"".concat(t).concat(r.ext()).concat(n)}};function formatNumber(s,t,n,r){if(n?n=_objectSpread$5(_objectSpread$5({},DEFAULT_OPTIONS),n):n=DEFAULT_OPTIONS,r=new Metadata(r),s.country&&s.country!=="001"){if(!r.hasCountry(s.country))throw new Error("Unknown country: ".concat(s.country));r.country(s.country)}else if(s.countryCallingCode)r.selectNumberingPlan(s.countryCallingCode);else return s.phone||"";var i=r.countryCallingCode(),a=n.v2?s.nationalNumber:s.phone,d;switch(t){case"NATIONAL":return a?(d=formatNationalNumber(a,s.carrierCode,"NATIONAL",r,n),addExtension(d,s.ext,r,n.formatExtension)):"";case"INTERNATIONAL":return a?(d=formatNationalNumber(a,null,"INTERNATIONAL",r,n),d="+".concat(i," ").concat(d),addExtension(d,s.ext,r,n.formatExtension)):"+".concat(i);case"E.164":return"+".concat(i).concat(a);case"RFC3966":return formatRFC3966({number:"+".concat(i).concat(a),ext:s.ext});case"IDD":if(!n.fromCountry)return;var o=formatIDD(a,s.carrierCode,i,n.fromCountry,r);return addExtension(o,s.ext,r,n.formatExtension);default:throw new Error('Unknown "format" argument passed to "formatNumber()": "'.concat(t,'"'))}}function formatNationalNumber(s,t,n,r,i){var a=chooseFormatForNumber(r.formats(),s);return a?formatNationalNumberUsingFormat(s,a,{useInternationalFormat:n==="INTERNATIONAL",withNationalPrefix:!(a.nationalPrefixIsOptionalWhenFormattingInNationalFormat()&&i&&i.nationalPrefix===!1)}):s}function chooseFormatForNumber(s,t){for(var n=_createForOfIteratorHelperLoose$2(s),r;!(r=n()).done;){var i=r.value;if(i.leadingDigitsPatterns().length>0){var a=i.leadingDigitsPatterns()[i.leadingDigitsPatterns().length-1];if(t.search(a)!==0)continue}if(matchesEntirely(t,i.pattern()))return i}}function addExtension(s,t,n,r){return t?r(s,t,n):s}function formatIDD(s,t,n,r,i){var a=getCountryCallingCode(r,i.metadata);if(a===n){var d=formatNationalNumber(s,t,"NATIONAL",i);return n==="1"?n+" "+d:d}var o=getIddPrefix(r,void 0,i.metadata);if(o)return"".concat(o," ").concat(n," ").concat(formatNationalNumber(s,null,"INTERNATIONAL",i))}function ownKeys$4(s,t){var n=Object.keys(s);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(s);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(s,i).enumerable})),n.push.apply(n,r)}return n}function _objectSpread$4(s){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?ownKeys$4(Object(n),!0).forEach(function(r){_defineProperty$4(s,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(s,Object.getOwnPropertyDescriptors(n)):ownKeys$4(Object(n)).forEach(function(r){Object.defineProperty(s,r,Object.getOwnPropertyDescriptor(n,r))})}return s}function _defineProperty$4(s,t,n){return t in s?Object.defineProperty(s,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):s[t]=n,s}function _classCallCheck$1(s,t){if(!(s instanceof t))throw new TypeError("Cannot call a class as a function")}function _defineProperties(s,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(s,r.key,r)}}function _createClass$1(s,t,n){return t&&_defineProperties(s.prototype,t),Object.defineProperty(s,"prototype",{writable:!1}),s}var PhoneNumber=function(){function s(t,n,r){if(_classCallCheck$1(this,s),!t)throw new TypeError("First argument is required");if(typeof t!="string")throw new TypeError("First argument must be a string");if(t[0]==="+"&&!n)throw new TypeError("`metadata` argument not passed");if(isObject(n)&&isObject(n.countries)){r=n;var i=t;if(!E164_NUMBER_REGEXP.test(i))throw new Error('Invalid `number` argument passed: must consist of a "+" followed by digits');var a=extractCountryCallingCode(i,void 0,void 0,r),d=a.countryCallingCode,o=a.number;if(n=o,t=d,!n)throw new Error("Invalid `number` argument passed: too short")}if(!n)throw new TypeError("`nationalNumber` argument is required");if(typeof n!="string")throw new TypeError("`nationalNumber` argument must be a string");validateMetadata(r);var l=getCountryAndCountryCallingCode(t,r),u=l.country,c=l.countryCallingCode;this.country=u,this.countryCallingCode=c,this.nationalNumber=n,this.number="+"+this.countryCallingCode+this.nationalNumber,this.getMetadata=function(){return r}}return _createClass$1(s,[{key:"setExt",value:function(n){this.ext=n}},{key:"getPossibleCountries",value:function(){return this.country?[this.country]:getPossibleCountriesForNumber(this.countryCallingCode,this.nationalNumber,this.getMetadata())}},{key:"isPossible",value:function(){return isPossiblePhoneNumber(this,{v2:!0},this.getMetadata())}},{key:"isValid",value:function(){return isValidNumber(this,{v2:!0},this.getMetadata())}},{key:"isNonGeographic",value:function(){var n=new Metadata(this.getMetadata());return n.isNonGeographicCallingCode(this.countryCallingCode)}},{key:"isEqual",value:function(n){return this.number===n.number&&this.ext===n.ext}},{key:"getType",value:function(){return getNumberType(this,{v2:!0},this.getMetadata())}},{key:"format",value:function(n,r){return formatNumber(this,n,r?_objectSpread$4(_objectSpread$4({},r),{},{v2:!0}):{v2:!0},this.getMetadata())}},{key:"formatNational",value:function(n){return this.format("NATIONAL",n)}},{key:"formatInternational",value:function(n){return this.format("INTERNATIONAL",n)}},{key:"getURI",value:function(n){return this.format("RFC3966",n)}}]),s}(),isCountryCode=function s(t){return/^[A-Z]{2}$/.test(t)};function getCountryAndCountryCallingCode(s,t){var n,r,i=new Metadata(t);return isCountryCode(s)?(n=s,i.selectNumberingPlan(n),r=i.countryCallingCode()):r=s,{country:n,countryCallingCode:r}}var E164_NUMBER_REGEXP=/^\+\d+$/;function _typeof(s){"@babel/helpers - typeof";return _typeof=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_typeof(s)}function _createClass(s,t,n){return Object.defineProperty(s,"prototype",{writable:!1}),s}function _classCallCheck(s,t){if(!(s instanceof t))throw new TypeError("Cannot call a class as a function")}function _inherits(s,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");s.prototype=Object.create(t&&t.prototype,{constructor:{value:s,writable:!0,configurable:!0}}),Object.defineProperty(s,"prototype",{writable:!1}),t&&_setPrototypeOf(s,t)}function _createSuper(s){var t=_isNativeReflectConstruct();return function(){var r=_getPrototypeOf(s),i;if(t){var a=_getPrototypeOf(this).constructor;i=Reflect.construct(r,arguments,a)}else i=r.apply(this,arguments);return _possibleConstructorReturn(this,i)}}function _possibleConstructorReturn(s,t){if(t&&(_typeof(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized(s)}function _assertThisInitialized(s){if(s===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return s}function _wrapNativeSuper(s){var t=typeof Map=="function"?new Map:void 0;return _wrapNativeSuper=function(r){if(r===null||!_isNativeFunction(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(typeof t!="undefined"){if(t.has(r))return t.get(r);t.set(r,i)}function i(){return _construct(r,arguments,_getPrototypeOf(this).constructor)}return i.prototype=Object.create(r.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),_setPrototypeOf(i,r)},_wrapNativeSuper(s)}function _construct(s,t,n){return _isNativeReflectConstruct()?_construct=Reflect.construct:_construct=function(i,a,d){var o=[null];o.push.apply(o,a);var l=Function.bind.apply(i,o),u=new l;return d&&_setPrototypeOf(u,d.prototype),u},_construct.apply(null,arguments)}function _isNativeReflectConstruct(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(s){return!1}}function _isNativeFunction(s){return Function.toString.call(s).indexOf("[native code]")!==-1}function _setPrototypeOf(s,t){return _setPrototypeOf=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},_setPrototypeOf(s,t)}function _getPrototypeOf(s){return _getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},_getPrototypeOf(s)}var ParseError=function(s){_inherits(n,s);var t=_createSuper(n);function n(r){var i;return _classCallCheck(this,n),i=t.call(this,r),Object.setPrototypeOf(_assertThisInitialized(i),n.prototype),i.name=i.constructor.name,i}return _createClass(n)}(_wrapNativeSuper(Error)),EXTN_PATTERN=new RegExp("(?:"+createExtensionPattern()+")$","i");function extractExtension(s){var t=s.search(EXTN_PATTERN);if(t<0)return{};for(var n=s.slice(0,t),r=s.match(EXTN_PATTERN),i=1;i<r.length;){if(r[i])return{number:n,ext:r[i]};i++}}var DIGITS={0:"0",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9","０":"0","１":"1","２":"2","３":"3","４":"4","５":"5","６":"6","７":"7","８":"8","９":"9","٠":"0","١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","۰":"0","۱":"1","۲":"2","۳":"3","۴":"4","۵":"5","۶":"6","۷":"7","۸":"8","۹":"9"};function parseDigit(s){return DIGITS[s]}function _createForOfIteratorHelperLoose$1(s,t){var n=typeof Symbol!="undefined"&&s[Symbol.iterator]||s["@@iterator"];if(n)return(n=n.call(s)).next.bind(n);if(Array.isArray(s)||(n=_unsupportedIterableToArray$2(s))||t){n&&(s=n);var r=0;return function(){return r>=s.length?{done:!0}:{done:!1,value:s[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _unsupportedIterableToArray$2(s,t){if(s){if(typeof s=="string")return _arrayLikeToArray$2(s,t);var n=Object.prototype.toString.call(s).slice(8,-1);if(n==="Object"&&s.constructor&&(n=s.constructor.name),n==="Map"||n==="Set")return Array.from(s);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _arrayLikeToArray$2(s,t)}}function _arrayLikeToArray$2(s,t){(t==null||t>s.length)&&(t=s.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=s[n];return r}function parseIncompletePhoneNumber(s){for(var t="",n=_createForOfIteratorHelperLoose$1(s.split("")),r;!(r=n()).done;){var i=r.value;t+=parsePhoneNumberCharacter(i,t)||""}return t}function parsePhoneNumberCharacter(s,t,n){return s==="+"?t?void 0:"+":parseDigit(s)}function _createForOfIteratorHelperLoose(s,t){var n=typeof Symbol!="undefined"&&s[Symbol.iterator]||s["@@iterator"];if(n)return(n=n.call(s)).next.bind(n);if(Array.isArray(s)||(n=_unsupportedIterableToArray$1(s))||t){n&&(s=n);var r=0;return function(){return r>=s.length?{done:!0}:{done:!1,value:s[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _unsupportedIterableToArray$1(s,t){if(s){if(typeof s=="string")return _arrayLikeToArray$1(s,t);var n=Object.prototype.toString.call(s).slice(8,-1);if(n==="Object"&&s.constructor&&(n=s.constructor.name),n==="Map"||n==="Set")return Array.from(s);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _arrayLikeToArray$1(s,t)}}function _arrayLikeToArray$1(s,t){(t==null||t>s.length)&&(t=s.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=s[n];return r}function getCountryByNationalNumber(s,t){var n=t.countries,r=t.metadata;r=new Metadata(r);for(var i=_createForOfIteratorHelperLoose(n),a;!(a=i()).done;){var d=a.value;if(r.country(d),r.leadingDigits()){if(s&&s.search(r.leadingDigits())===0)return d}else if(getNumberType({phone:s,country:d},void 0,r.metadata))return d}}function getCountryByCallingCode(s,t){var n=t.nationalNumber,r=t.metadata,i=r.getCountryCodesForCallingCode(s);if(i)return i.length===1?i[0]:getCountryByNationalNumber(n,{countries:i,metadata:r.metadata})}var PLUS_SIGN="+",RFC3966_VISUAL_SEPARATOR_="[\\-\\.\\(\\)]?",RFC3966_PHONE_DIGIT_="(["+VALID_DIGITS+"]|"+RFC3966_VISUAL_SEPARATOR_+")",RFC3966_GLOBAL_NUMBER_DIGITS_="^\\"+PLUS_SIGN+RFC3966_PHONE_DIGIT_+"*["+VALID_DIGITS+"]"+RFC3966_PHONE_DIGIT_+"*$",RFC3966_GLOBAL_NUMBER_DIGITS_PATTERN_=new RegExp(RFC3966_GLOBAL_NUMBER_DIGITS_,"g"),ALPHANUM_=VALID_DIGITS,RFC3966_DOMAINLABEL_="["+ALPHANUM_+"]+((\\-)*["+ALPHANUM_+"])*",VALID_ALPHA_="a-zA-Z",RFC3966_TOPLABEL_="["+VALID_ALPHA_+"]+((\\-)*["+ALPHANUM_+"])*",RFC3966_DOMAINNAME_="^("+RFC3966_DOMAINLABEL_+"\\.)*"+RFC3966_TOPLABEL_+"\\.?$",RFC3966_DOMAINNAME_PATTERN_=new RegExp(RFC3966_DOMAINNAME_,"g"),RFC3966_PREFIX_="tel:",RFC3966_PHONE_CONTEXT_=";phone-context=",RFC3966_ISDN_SUBADDRESS_=";isub=";function extractPhoneContext(s){var t=s.indexOf(RFC3966_PHONE_CONTEXT_);if(t<0)return null;var n=t+RFC3966_PHONE_CONTEXT_.length;if(n>=s.length)return"";var r=s.indexOf(";",n);return r>=0?s.substring(n,r):s.substring(n)}function isPhoneContextValid(s){return s===null?!0:s.length===0?!1:RFC3966_GLOBAL_NUMBER_DIGITS_PATTERN_.test(s)||RFC3966_DOMAINNAME_PATTERN_.test(s)}function extractFormattedPhoneNumberFromPossibleRfc3966NumberUri(s,t){var n=t.extractFormattedPhoneNumber,r=extractPhoneContext(s);if(!isPhoneContextValid(r))throw new ParseError("NOT_A_NUMBER");var i;if(r===null)i=n(s)||"";else{i="",r.charAt(0)===PLUS_SIGN&&(i+=r);var a=s.indexOf(RFC3966_PREFIX_),d;a>=0?d=a+RFC3966_PREFIX_.length:d=0;var o=s.indexOf(RFC3966_PHONE_CONTEXT_);i+=s.substring(d,o)}var l=i.indexOf(RFC3966_ISDN_SUBADDRESS_);if(l>0&&(i=i.substring(0,l)),i!=="")return i}var MAX_INPUT_STRING_LENGTH=250,PHONE_NUMBER_START_PATTERN=new RegExp("["+PLUS_CHARS+VALID_DIGITS+"]"),AFTER_PHONE_NUMBER_END_PATTERN=new RegExp("[^"+VALID_DIGITS+"#]+$");function parse(s,t,n){if(t=t||{},n=new Metadata(n),t.defaultCountry&&!n.hasCountry(t.defaultCountry))throw t.v2?new ParseError("INVALID_COUNTRY"):new Error("Unknown country: ".concat(t.defaultCountry));var r=parseInput(s,t.v2,t.extract),i=r.number,a=r.ext,d=r.error;if(!i){if(t.v2)throw d==="TOO_SHORT"?new ParseError("TOO_SHORT"):new ParseError("NOT_A_NUMBER");return{}}var o=parsePhoneNumber$1(i,t.defaultCountry,t.defaultCallingCode,n),l=o.country,u=o.nationalNumber,c=o.countryCallingCode,h=o.countryCallingCodeSource,f=o.carrierCode;if(!n.hasSelectedNumberingPlan()){if(t.v2)throw new ParseError("INVALID_COUNTRY");return{}}if(!u||u.length<MIN_LENGTH_FOR_NSN){if(t.v2)throw new ParseError("TOO_SHORT");return{}}if(u.length>MAX_LENGTH_FOR_NSN){if(t.v2)throw new ParseError("TOO_LONG");return{}}if(t.v2){var y=new PhoneNumber(c,u,n.metadata);return l&&(y.country=l),f&&(y.carrierCode=f),a&&(y.ext=a),y.__countryCallingCodeSource=h,y}var w=(t.extended?n.hasSelectedNumberingPlan():l)?matchesEntirely(u,n.nationalNumberPattern()):!1;return t.extended?{country:l,countryCallingCode:c,carrierCode:f,valid:w,possible:w?!0:!!(t.extended===!0&&n.possibleLengths()&&isPossibleNumber(u,n)),phone:u,ext:a}:w?result(l,u,a):{}}function _extractFormattedPhoneNumber(s,t,n){if(s){if(s.length>MAX_INPUT_STRING_LENGTH){if(n)throw new ParseError("TOO_LONG");return}if(t===!1)return s;var r=s.search(PHONE_NUMBER_START_PATTERN);if(!(r<0))return s.slice(r).replace(AFTER_PHONE_NUMBER_END_PATTERN,"")}}function parseInput(s,t,n){var r=extractFormattedPhoneNumberFromPossibleRfc3966NumberUri(s,{extractFormattedPhoneNumber:function(d){return _extractFormattedPhoneNumber(d,n,t)}});if(!r)return{};if(!isViablePhoneNumber(r))return isViablePhoneNumberStart(r)?{error:"TOO_SHORT"}:{};var i=extractExtension(r);return i.ext?i:{number:r}}function result(s,t,n){var r={country:s,phone:t};return n&&(r.ext=n),r}function parsePhoneNumber$1(s,t,n,r){var i=extractCountryCallingCode(parseIncompletePhoneNumber(s),t,n,r.metadata),a=i.countryCallingCodeSource,d=i.countryCallingCode,o=i.number,l;if(d)r.selectNumberingPlan(d);else if(o&&(t||n))r.selectNumberingPlan(t,n),t&&(l=t),d=n||getCountryCallingCode(t,r.metadata);else return{};if(!o)return{countryCallingCodeSource:a,countryCallingCode:d};var u=extractNationalNumber(parseIncompletePhoneNumber(o),r),c=u.nationalNumber,h=u.carrierCode,f=getCountryByCallingCode(d,{nationalNumber:c,metadata:r});return f&&(l=f,f==="001"||r.country(l)),{country:l,countryCallingCode:d,countryCallingCodeSource:a,nationalNumber:c,carrierCode:h}}function ownKeys$3(s,t){var n=Object.keys(s);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(s);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(s,i).enumerable})),n.push.apply(n,r)}return n}function _objectSpread$3(s){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?ownKeys$3(Object(n),!0).forEach(function(r){_defineProperty$3(s,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(s,Object.getOwnPropertyDescriptors(n)):ownKeys$3(Object(n)).forEach(function(r){Object.defineProperty(s,r,Object.getOwnPropertyDescriptor(n,r))})}return s}function _defineProperty$3(s,t,n){return t in s?Object.defineProperty(s,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):s[t]=n,s}function parsePhoneNumberWithError(s,t,n){return parse(s,_objectSpread$3(_objectSpread$3({},t),{},{v2:!0}),n)}function ownKeys$2(s,t){var n=Object.keys(s);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(s);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(s,i).enumerable})),n.push.apply(n,r)}return n}function _objectSpread$2(s){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?ownKeys$2(Object(n),!0).forEach(function(r){_defineProperty$2(s,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(s,Object.getOwnPropertyDescriptors(n)):ownKeys$2(Object(n)).forEach(function(r){Object.defineProperty(s,r,Object.getOwnPropertyDescriptor(n,r))})}return s}function _defineProperty$2(s,t,n){return t in s?Object.defineProperty(s,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):s[t]=n,s}function _slicedToArray(s,t){return _arrayWithHoles(s)||_iterableToArrayLimit(s,t)||_unsupportedIterableToArray(s,t)||_nonIterableRest()}function _nonIterableRest(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _unsupportedIterableToArray(s,t){if(s){if(typeof s=="string")return _arrayLikeToArray(s,t);var n=Object.prototype.toString.call(s).slice(8,-1);if(n==="Object"&&s.constructor&&(n=s.constructor.name),n==="Map"||n==="Set")return Array.from(s);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _arrayLikeToArray(s,t)}}function _arrayLikeToArray(s,t){(t==null||t>s.length)&&(t=s.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=s[n];return r}function _iterableToArrayLimit(s,t){var n=s==null?null:typeof Symbol!="undefined"&&s[Symbol.iterator]||s["@@iterator"];if(n!=null){var r=[],i=!0,a=!1,d,o;try{for(n=n.call(s);!(i=(d=n.next()).done)&&(r.push(d.value),!(t&&r.length===t));i=!0);}catch(l){a=!0,o=l}finally{try{!i&&n.return!=null&&n.return()}finally{if(a)throw o}}return r}}function _arrayWithHoles(s){if(Array.isArray(s))return s}function normalizeArguments(s){var t=Array.prototype.slice.call(s),n=_slicedToArray(t,4),r=n[0],i=n[1],a=n[2],d=n[3],o,l,u;if(typeof r=="string")o=r;else throw new TypeError("A text for parsing must be a string.");if(!i||typeof i=="string")d?(l=a,u=d):(l=void 0,u=a),i&&(l=_objectSpread$2({defaultCountry:i},l));else if(isObject(i))a?(l=i,u=a):u=i;else throw new Error("Invalid second argument: ".concat(i));return{text:o,options:l,metadata:u}}function ownKeys$1(s,t){var n=Object.keys(s);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(s);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(s,i).enumerable})),n.push.apply(n,r)}return n}function _objectSpread$1(s){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?ownKeys$1(Object(n),!0).forEach(function(r){_defineProperty$1(s,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(s,Object.getOwnPropertyDescriptors(n)):ownKeys$1(Object(n)).forEach(function(r){Object.defineProperty(s,r,Object.getOwnPropertyDescriptor(n,r))})}return s}function _defineProperty$1(s,t,n){return t in s?Object.defineProperty(s,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):s[t]=n,s}function parsePhoneNumber(s,t,n){t&&t.defaultCountry&&!isSupportedCountry(t.defaultCountry,n)&&(t=_objectSpread$1(_objectSpread$1({},t),{},{defaultCountry:void 0}));try{return parsePhoneNumberWithError(s,t,n)}catch(r){if(!(r instanceof ParseError))throw r}}function ownKeys(s,t){var n=Object.keys(s);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(s);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(s,i).enumerable})),n.push.apply(n,r)}return n}function _objectSpread(s){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?ownKeys(Object(n),!0).forEach(function(r){_defineProperty(s,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(s,Object.getOwnPropertyDescriptors(n)):ownKeys(Object(n)).forEach(function(r){Object.defineProperty(s,r,Object.getOwnPropertyDescriptor(n,r))})}return s}function _defineProperty(s,t,n){return t in s?Object.defineProperty(s,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):s[t]=n,s}function isValidPhoneNumber$1(){var s=normalizeArguments(arguments),t=s.text,n=s.options,r=s.metadata;n=_objectSpread(_objectSpread({},n),{},{extract:!1});var i=parsePhoneNumber(t,n,r);return i&&i.isValid()||!1}function isValidPhoneNumber(){return withMetadataArgument(isValidPhoneNumber$1,arguments)}const a8window$8=window;class AEventPhoneHelper{static getInstance(){return a8window$8.a8PhoneHelper||(a8window$8.a8PhoneHelper=new AEventPhoneHelper),a8window$8.a8PhoneHelper}constructor(){this.country="",this.dialCode=[],this.a8phone=[],this.tries=0}init({country:t}){return this.country=t,this}getCountry(){if(this.country&&this.country!==""||this.hasValidDialCodes())return Promise.resolve(this.country);if(!(this.tries>3))return this.tries=this.tries+1,this.geo().then(t=>(this.country=(t==null?void 0:t.country)||"US",this.country))}geo(){return this.geoRequest||(this.geoRequest=fetch("https://aevent.online/geo/").then(t=>t.ok?t.json():{}).catch(()=>({}))),this.geoRequest}addCountry(){const t=document.getElementsByTagName("form");for(let n of Array.from(t))if(n.id!=="aevent-modal-form"&&n.querySelector('input[name="wtl"]')&&!n.querySelector('[name="country"]')){const r=document.createElement("input");r&&(r.name="country",r.type="hidden",r.hidden=!0,r.value=this.country,n==null||n.appendChild(r))}else if(n.querySelector('input[name="wtl"]')&&n.querySelector('input[name="country"]')){const r=n.querySelector('input[name="country"]');r&&r.value!=this.country&&(r.value=this.country,r.dispatchEvent(new Event("change",{bubbles:!0})))}}onPhoneInput(t){const n=t.target;this.validatePhone(n)}getDialCodeForInput(t){var i;const n=this.getCurrentIndex(t);let r=(i=this.dialCode[n])!=null?i:this.getDialCodeFor(this.country);return r||(r=this.getDialCodeFor(this.country.toLowerCase())),r!=null?r:""}validatePhone(t){const n=this.getDialCodeForInput(t),r=this.cleanPhoneNumber(""+(t==null?void 0:t.value),n);if(t.value!==r&&(t.value=r),!t.required&&this.isEmptyPhone(t.value,n)){t.setCustomValidity("");return}const i=isValidPhoneNumber(t.value,this.country)?"":"Invalid phone number";t.setCustomValidity(i)}isEmptyPhone(t="",n=""){const r=t.replace(/[^0-9]/g,"");return!r.length||r===n}onFormSubmit(t){t.required||this.isEmptyPhone(t.value,this.getDialCodeForInput(t))&&(t.value="",t.setCustomValidity(""))}addSubmitListener(t){const n=t==null?void 0:t.form;!n||t.dataset.a8SubmitListener||(t.dataset.a8SubmitListener="true",n.addEventListener("submit",()=>this.onFormSubmit(t),!0))}cleanPhoneNumber(t="",n=""){var a,d;const r=(d=(a=t.replace(/[^0-9]/g,""))==null?void 0:a.substring(0,20))!=null?d:"";return n.length?r.substring(0,n.length)===n?`+${r}`:`+${n}${r}`:r}onCountryInput(t){const n=t.target;this.validateCountry(n)}async validateCountry(t){const n=this.getCurrentIndex(t);this.fillDialCodeAt(n),this.country=await this.getCountryAt(n),this.fillCountryInputs(this.country)}async validateInput(t){await this.validateCountry(t),this.validatePhone(t)}getCurrentIndex(t){var n;return(n=t==null?void 0:t.getAttribute("data-intl-tel-input-id"))!=null?n:0}getDialCodeAt(t){var n,r,i;return(i=(r=(n=this.a8phone)==null?void 0:n[t])==null?void 0:r.selectedCountryData)==null?void 0:i.dialCode}getPossibleDialCodes(){var n;let t=document.getElementById("country-listbox");return t=t!=null?t:document.querySelector(".iti__country-list"),Object.fromEntries(Array.from((n=t==null?void 0:t.childNodes)!=null?n:[]).map(r=>{var i,a;return[(i=r.getAttribute)==null?void 0:i.call(r,"data-country-code"),(a=r.getAttribute)==null?void 0:a.call(r,"data-dial-code")]}))}getDialCodeFor(t){var n;return(n=this.getPossibleDialCodes())==null?void 0:n[t]}hasDialCode(t=""){return t.replace(/[^0-9]/g,"").length>10}fillDialCodeAt(t){this.dialCode[t]=this.getDialCodeAt(t)}hasValidDialCodes(){return this.validDialCount()>0}validDialCount(){return this.dialCode.filter(t=>t).length}async getCountryAt(t){var n,r,i,a;return(a=(i=(r=(n=this.a8phone)==null?void 0:n[t])==null?void 0:r.selectedCountryData)==null?void 0:i.iso2)!=null?a:await this.getCountry()}getCountryInputs(){return Array.from(document.querySelectorAll('input[name="country"]'))}fillCountryInputs(t){this.getCountryInputs().forEach(r=>{!r||r.value===t||(r.value=t,r.dispatchEvent(new Event("change",{bubbles:!0})))})}isFilled(t){return t.value&&t.value.length>7}isPhoneJSInstalled(){return!!(a8window$8!=null&&a8window$8.intlTelInput)}async installPhoneJS(){var t;this.isPhoneJSInstalled()||await((t=AEventUtility.getInstance())==null?void 0:t.loadScript("phonedropdown","https://cdn.aevent.com/resources/intlTelInput.js"))}isPhoneCSSInstalled(){return!!document.getElementById("TelInputLink")}installPhoneCSS(){var n;if(this.isPhoneCSSInstalled())return;const t=document.createElement("link");t.id="TelInputLink",t.rel="stylesheet",t.href="https://cdn.aevent.com/resources/intlTelInput.css",(n=document.head)==null||n.appendChild(t)}isPhoneStyleInstalled(){return!!document.getElementById("a8-phoneSheet")}installPhoneStyle(){var n;if(this.isPhoneStyleInstalled())return;const t=document.createElement("style");t.id="a8-phoneSheet",t.innerHTML=".iti-flag {background-image: url('https://cdn.aevent.com/icons/flags.png');} @media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) { .iti-flag {background-image: url('https://cdn.aevent.com/icons/flags@2x.png');} } .intl-tel-input .country-list { z-index: 2147483647!important; -webkit-transform: translate3d(0,0,1px); transform: translate3d(0,0,1px); } .popup-wrapper.at-center { z-index: 9!important; }",(n=document.body)==null||n.appendChild(t)}hasForm(){return!!Array.from(document.getElementsByTagName("form")).find(t=>{var n;return(n=t==null?void 0:t.action)==null?void 0:n.match(/aevent\.online\/registration|aevent\.test\/registration|aevent\.com\/registration/)})||!!document.querySelector('input[name="wtl"]')}async handle(){if(this.country=await this.getCountry(),this.addCountry(),this.installPhoneCSS(),this.installPhoneStyle(),await this.installPhoneJS(),typeof a8window$8.intlTelInput=="undefined"||!this.hasForm()){setTimeout(this.handle.bind(this),500);return}Array.from(document.getElementsByName("phone")).concat(Array.from(document.getElementsByName("Phone Number"))).concat(Array.from(document.getElementsByName("Phone_Number"))).filter(n=>n.getAttribute("type")!=="hidden").forEach(async(n,r)=>{var a,d,o;n.tagName==="INPUT"&&(n.type==="text"||n.type==="phone")&&(n.type="tel");let i=this.a8phone[r];i||(i=intlTelInput(n,{initialCountry:this.country}),(a=i==null?void 0:i.telInput)!=null&&a.style?i.telInput.style.width="100%":n.style&&(n.style.width="100%"),this.a8phone.push(i)),this.a8phone.length,this.dialCode.push((o=(d=i.selectedCountryData)==null?void 0:d.dialCode)!=null?o:""),n.addEventListener("input",this.onPhoneInput.bind(this)),n.addEventListener("countrychange",this.onCountryInput.bind(this)),this.addSubmitListener(n),this.isFilled(n)&&await this.validateInput(n)})}}const a8window$7=window,DEFAULT_STATE_LABEL="State / Province",DEFAULT_STATE_PLACEHOLDER="Select your state / province";class AEventStateHelper{constructor(){J(this,"base");J(this,"lists");J(this,"bound");this.base="",this.lists=new Map,this.bound=new WeakSet}static getInstance(){return a8window$7.a8StateHelper||(a8window$7.a8StateHelper=new AEventStateHelper),a8window$7.a8StateHelper}init({base:t}){return this.base=t,this}locale(){return navigator.language||"en"}subdivisions(t,n=this.locale()){const r=(t!=null?t:"").toUpperCase();if(!/^[A-Z]{2}$/.test(r))return Promise.resolve([]);const i=`${r}:${n}`;if(!this.lists.has(i)){const a=fetch(`${this.base}/api/subdivisions/${r}?locale=${encodeURIComponent(n)}`).then(d=>d.ok?d.json():{subdivisions:[]}).then(d=>Array.isArray(d==null?void 0:d.subdivisions)?d.subdivisions:[]).catch(()=>(this.lists.delete(i),[]));this.lists.set(i,a)}return this.lists.get(i)}async detected(t,n){var o,l,u,c,h;const r=await AEventPhoneHelper.getInstance().geo();if(`${(o=r==null?void 0:r.country)!=null?o:""}`.toUpperCase()!==t.toUpperCase())return"";const i=`${(l=r==null?void 0:r.stateprovCode)!=null?l:""}`.toUpperCase(),a=`${(u=r==null?void 0:r.stateprov)!=null?u:""}`.toLowerCase(),d=(c=n.find(f=>i&&f.code.toUpperCase()===i))!=null?c:n.find(f=>a&&f.name.toLowerCase()===a);return(h=d==null?void 0:d.name)!=null?h:""}wording(t){return t.toUpperCase()==="US"?{label:"State",placeholder:"Select state"}:{label:"Province",placeholder:"Select province"}}selects(){return Array.from(document.querySelectorAll("select[data-aevent-states]"))}async countryFor(t){var r;const n=(r=t.form)==null?void 0:r.querySelector('[name="country"]');return(n==null?void 0:n.value)||await AEventPhoneHelper.getInstance().getCountry()||""}labelNode(t){var r,i;const n=(i=(r=t.parentElement)==null?void 0:r.querySelector("p"))==null?void 0:i.firstChild;return(n==null?void 0:n.nodeType)===Node.TEXT_NODE?n:null}placeholderOption(t){const n=Array.from(t.options).find(i=>i.value==="");if(n)return n;const r=new Option("","");return t.add(r,0),r}rememberDefaults(t){var r,i;const n=this.placeholderOption(t).text.trim();t.dataset.aeventStatesLabel=((i=(r=this.labelNode(t))==null?void 0:r.textContent)==null?void 0:i.trim())===DEFAULT_STATE_LABEL?"default":"custom",t.dataset.aeventStatesPlaceholder=[DEFAULT_STATE_PLACEHOLDER,""].includes(n)?"default":"custom"}applyWording(t,n){const{label:r,placeholder:i}=this.wording(n),a=this.labelNode(t);a&&t.dataset.aeventStatesLabel==="default"&&(a.textContent=r),t.dataset.aeventStatesPlaceholder==="default"&&(this.placeholderOption(t).text=i),AEvent.getInstance().localize(t.parentElement)}async fill(t){const n=(await this.countryFor(t)).toUpperCase();if(t.dataset.aeventStatesCountry===n)return;t.dataset.aeventStatesCountry=n;const r=await this.subdivisions(n);if(t.dataset.aeventStatesCountry!==n)return;const i=t.value;if(Array.from(t.options).filter(d=>d.value!=="").forEach(d=>d.remove()),r.forEach(({name:d,label:o})=>t.add(new Option(o!=null?o:d,d))),this.applyWording(t,n),t.value=r.some(({name:d})=>d===i)?i:"",this.toggle(t,r.length>0),t.value)return;const a=await this.detected(n,r);a&&!t.value&&t.dataset.aeventStatesCountry===n&&(t.value=a)}toggle(t,n){t.disabled=!n,t.parentElement&&(t.parentElement.style.display=n?"":"none")}handle(){this.selects().forEach(t=>{var n;this.bound.has(t)||(this.bound.add(t),this.rememberDefaults(t),this.toggle(t,!1),(n=t.form)==null||n.addEventListener("change",r=>{var i;((i=r.target)==null?void 0:i.name)==="country"&&this.fill(t)})),this.fill(t)})}}const a8window$6=window;class AEventCountryHelper{constructor(){J(this,"base");J(this,"lists");J(this,"bound");this.base="",this.lists=new Map,this.bound=new WeakSet}static getInstance(){return a8window$6.a8CountryHelper||(a8window$6.a8CountryHelper=new AEventCountryHelper),a8window$6.a8CountryHelper}init({base:t}){return this.base=t,this}locale(){return navigator.language||"en"}countries(t=this.locale()){if(!this.lists.has(t)){const n=fetch(`${this.base}/api/countries?locale=${encodeURIComponent(t)}`).then(r=>r.ok?r.json():{countries:[]}).then(r=>Array.isArray(r==null?void 0:r.countries)?r.countries:[]).catch(()=>(this.lists.delete(t),[]));this.lists.set(t,n)}return this.lists.get(t)}async detected(){var n;const t=await AEventPhoneHelper.getInstance().geo();return`${(n=t==null?void 0:t.country)!=null?n:""}`.toUpperCase()}selects(){return Array.from(document.querySelectorAll("select[data-aevent-countries]"))}choose(t,n){!n||t.value||(t.value=n,t.value&&t.dispatchEvent(new Event("change",{bubbles:!0})))}async fallback(t){const n=await this.detected();if(t.parentElement&&(t.parentElement.style.display="none"),!n){t.disabled=!0;return}t.add(new Option(n,n)),this.choose(t,n)}async fill(t){const n=await this.countries();if(!n.length)return this.fallback(t);const r=t.value;Array.from(t.options).filter(i=>i.value!=="").forEach(i=>i.remove()),Array.from(t.options).some(i=>i.value==="")||t.add(new Option("",""),0),n.forEach(({code:i,name:a})=>t.add(new Option(a,i))),t.value=n.some(({code:i})=>i===r)?r:"",this.choose(t,await this.detected())}handle(){this.selects().filter(t=>!this.bound.has(t)).forEach(t=>{this.bound.add(t),this.fill(t)})}}dayjs.extend(customParseFormat),dayjs.extend(dayjsutc),dayjs.extend(dayjstz),dayjs.extend(advancedFormat);const a8window$5=window;class AEventCalendarHelper{static getInstance(){return a8window$5.a8CalendarHelper||(a8window$5.a8CalendarHelper=new AEventCalendarHelper),a8window$5.a8CalendarHelper}constructor(){this.el=null}init({atc_start:t,atc_end:n,atc_timezone:r,atc_location:i,atc_title:a,atc_description:d,joinurl:o,multiEvents:l}){return this.atc_start=t,this.atc_end=n,this.atc_timezone=r,this.atc_location=i,this.atc_title=a,this.atc_description=d,this.joinurl=o,this.multiEvents=l,this}isReady(){return!!this.atc_start}uuid(t){let n="";for(;n.length<t;)n+=Math.random().toString(36).slice(2);return n.substr(0,t)}buildICS({title:t,description:n,url:r,start:i,end:a,uuid:d,timezone:o}){return`BEGIN:VCALENDAR
PRODID:aevent
BEGIN:VTIMEZONE
TZID:${o}
END:VTIMEZONE
VERSION:2.0
CALSCALE:GREGORIAN
METHOD:PUBLISH
X-PUBLISHED-TTL:PT1H
BEGIN:VEVENT
UID:${d}
SUMMARY:${t}
DTSTAMP:${i}
DTSTART;TZID=${o}:${i}
DTEND;TZID=${o}:${a}
DESCRIPTION:${n}
URL:${r}
STATUS:CONFIRMED
X-MICROSOFT-CDO-BUSYSTATUS:BUSY
END:VEVENT
END:VCALENDAR`}toICS(){return this.buildICS({title:this.atc_title,description:this.atc_description.split(`
`).join("\\n"),url:this.atc_location,start:this.icsDate(this.atc_start),end:this.icsDate(this.atc_end),uuid:this.uuid(21),timezone:dayjs.tz.guess()})}toICSLink(){var n;const t=new URL(this.joinurl);return(n=this.joinurl.replace(t.pathname,`/ics${t.pathname}`).replace("/ics/join/","/ics/"))!=null?n:""}toFile(){const t=document.createElement("a");this.multiEvents?t.href=this.toICSLink():t.href="data:text/calendar,"+encodeURIComponent(this.toICS()),t.download=`${this.atc_title}.ics`,t.click()}buildGoogleCalendar({title:t,description:n,url:r,start:i,end:a,uuid:d,timezone:o}){return`http://www.google.com/calendar/render?action=TEMPLATE&text=${encodeURIComponent(t)}&dates=${i}/${a}&details=${encodeURIComponent(n)}&location=${encodeURIComponent(r)}&ctz=${encodeURIComponent(o)}&trp=false&sprop=&sprop=name:`}toGoogleCalendar(){a8window$5.open(this.toGoogleLink(),"_blank").focus()}toGoogleLink(){return this.multiEvents?`https://calendar.google.com/calendar/u/0/r?cid=${encodeURIComponent(this.toICSLink().replace("https://","webcal://"))}&pli=1`:this.buildGoogleCalendar({title:this.atc_title,description:this.atc_description,url:this.atc_location,start:this.icsDate(this.atc_start),end:this.icsDate(this.atc_end),uuid:this.uuid(21),timezone:!1})}buildOutlookCalendar({title:t,description:n,url:r,start:i,end:a,uuid:d,timezone:o}){return encodeURI(["https://outlook.live.com/calendar/0/deeplink/compose?subject=","&startdt="+i,"&enddt="+a,"&allday=false","&location="+r,"&body="+n,"&path=/calendar/action/compose"].join(""))}toOutlookCalendar(){a8window$5.open(this.toOutlookLink(),"_blank").focus()}toOutlookLink(){return this.buildOutlookCalendar({title:this.atc_title,description:this.atc_description,url:this.atc_location,start:this.icsDate(this.atc_start),end:this.icsDate(this.atc_end),uuid:this.uuid(21),timezone:this.atc_timezone})}buildYahooCalendar({title:t,description:n,url:r,start:i,end:a,uuid:d,timezone:o}){return encodeURI(["http://calendar.yahoo.com/?v=60&view=d&type=20","&title="+t,"&st="+i,"&ed="+a,"&desc="+n,"&in_loc="+r].join(""))}toYahooCalendar(){a8window$5.open(this.toYahooLink(),"_blank").focus()}toYahooLink(){return this.buildYahooCalendar({title:this.atc_title,description:this.atc_description,url:this.atc_location,start:this.icsDate(this.atc_start),end:this.icsDate(this.atc_end),uuid:this.uuid(21),timezone:this.atc_timezone})}icsDate(t){return dayjs.utc(t).local().format("YYYYMMDDTHHmmss")}handle(){this.calendarInterval||(this.calendarInterval=setInterval(this.createCalendar.bind(this),1e3))}addCalendarTypeInteraction(t){if(t.dataset.aeventInteraction==="true")return;t.dataset.aeventInteraction="true",t.style.transition="background-color 120ms ease",t.addEventListener("mouseenter",()=>{t.style.backgroundColor="rgb(243 244 246)"}),t.addEventListener("mouseleave",()=>{t.dataset.aeventPressed!=="true"&&(t.style.backgroundColor="transparent")}),t.addEventListener("pointerdown",()=>{t.dataset.aeventPressed="true",t.style.backgroundColor="rgb(209 213 219)"});const n=t.onclick;t.onclick=r=>{t.dataset.aeventPressed="true",t.style.backgroundColor="rgb(209 213 219)",n==null||n.call(t,r),window.setTimeout(()=>{const i=t.closest(".other-links");i&&(i.style.display="none"),t.style.backgroundColor="transparent",delete t.dataset.aeventPressed},150)}}createCalendarType(t,n,r,i){const a=document.createElement("div");a.style.cssText=i;const d=document.createElement("div");if(n?d.style.cssText="display: inline-grid; grid-template-columns: repeat(auto-fill, minmax(60px, 1fr)); width: 100%; max-height: 55px; overflow-y: clip;":d.style.cssText="display: inline-grid; grid-template-columns: repeat(auto-fit, minmax(74px, 1fr)); width: 100%; max-height: 55px; overflow-y: clip; min-height: 55px;",n){const l=document.createElement("div");l.style.cssText="min-width: 55px;height: 55px;justify-self: flex-start;text-align: center;max-height: 75px;width: 100%;display: flex;justify-content: center;";const u=document.createElement("span");u.style.cssText=`background: url(${n}) 0px 40% no-repeat; background-size: 40px; min-height: 40px; min-width: 40px; display: block;`,l.appendChild(u),d.appendChild(l)}const o=document.createElement("span");return o.appendChild(document.createTextNode(t)),o.style.cssText="justify-self: center; max-width: 200px; display: flex; flex-direction: column; justify-content: center; max-height: 75px;",d.appendChild(o),a.appendChild(d),a.onclick=r,this.addCalendarTypeInteraction(a),a}outsideClickListeners(){const t=n=>{if(!(this.el==n.target||this.el.contains(n.target))){const r=this.el.querySelector(".other-links");if(!r)return;r.style.display="none"}};document.body.addEventListener("click",t.bind(this))}createCalendar(){let t=Array.from(document.querySelectorAll(".calendar"));t.length<1&&(t=Array.from(document.querySelectorAll(".atcb-link"))),t.forEach(n=>{n.style.cursor="pointer";const r=n.parentElement;if(!r)return;let i=r.querySelector(".other-links");if(!i){i=document.createElement("div"),i.classList.add("other-links");const d=`-webkit-text-size-adjust: 100%;
    tab-size: 4;
    text-align: center;
    box-sizing: border-box;
    border-width: 1px;
    border-style: solid;
    border-color: #e5e7eb;
    text-decoration: inherit;
    font-family: Montserrat,sans-serif;
    display: block;
    font-size: 22px;
    font-weight: 500;
    line-height: 2.25rem;
    color: rgb(55 65 81/1);
    max-height: 55px;
    min-height: 55px;
    `;i.style.cssText=`    -webkit-text-size-adjust: 100%;
    position: fixed;
    tab-size: 4;
    line-height: inherit;
    text-align: left;
    box-sizing: border-box;
    border-width: 0;
    border-style: solid;
    border-color: #e5e7eb;
    z-index: 16777271;
    width: 120px;
    max-width: 120px;
    transform-origin: top right;
    border-radius: .375rem;
    background-color: rgb(255 255 255);
    font-family: Montserrat,sans-serif;
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;`,i.appendChild(this.createCalendarType("Google","https://cdn.aevent.com/icons/google.svg",this.toGoogleCalendar.bind(this),d+"border-radius: .375rem .375rem 0 0;")),i.appendChild(this.createCalendarType("iCalendar","https://cdn.aevent.com/icons/apple.svg",this.toFile.bind(this),d)),i.appendChild(this.createCalendarType("Outlook","https://cdn.aevent.com/icons/outlook.svg",this.toFile.bind(this),d)),i.appendChild(this.createCalendarType("Yahoo","https://cdn.aevent.com/icons/yahoo.svg",this.toFile.bind(this),d)),i.appendChild(this.createCalendarType("Other",!1,this.toFile.bind(this),d+"border-radius: 0 0 .375rem .375rem;")),i.style.display="none",i.style.cursor="pointer",r.appendChild(i),this.el=r,this.outsideClickListeners()}n.onclick||(n.onclick=d=>{i.style.display=i.style.display==="none"?"block":"none",i.style.left=Math.min(window.visualViewport.width-i.clientWidth-10,d.clientX+10)+"px",i.style.top=Math.min(window.visualViewport.height-i.clientHeight-10,d.clientY+10)+"px"}),Array.from(document.querySelectorAll(".other-links > div")).forEach(d=>{const o=d;if(!o.onclick){const l=Array.from(d.querySelectorAll("span")).map(u=>u.innerText).find(u=>u.match(/\w/));l!=null&&l.match(/Google/)?o.onclick=this.toGoogleCalendar.bind(this):o.onclick=this.toFile.bind(this)}this.addCalendarTypeInteraction(o)})})}getReplacements(){return this.atc_start?{add_to_calendar_google:this.toGoogleLink(),add_to_calendar_apple:this.toICSLink()}:{}}}const a8window$4=window;class AEventManyChatHelper{static getInstance(){return a8window$4.a8ManyChatHelper||(a8window$4.a8ManyChatHelper=new AEventManyChatHelper),a8window$4.a8ManyChatHelper}init({subscriberID:t,clientID:n,referenceID:r}){return this.subscriberID=t,this.clientID=n,this.referenceID=r,this.referenceID||(this.referenceID=this.clientID),this}handle(){document.querySelectorAll(".mcwidget-embed").forEach(t=>{t.setAttribute("data-widget-payload",this.subscriberID)});try{new Promise((t,n)=>{const r=AEventUtility.getInstance().loadScript("a8ManyChat","//widget.manychat.com/"+this.referenceID+".js");r.onload=t,r.onerror=n,r.defer="defer"})}catch(t){}}}const a8window$3=window;class AEventOneSignalHelper{static getInstance(){return a8window$3.a8OneSignalHelper||(a8window$3.a8OneSignalHelper=new AEventOneSignalHelper),a8window$3.a8OneSignalHelper}init(t,n){return this.appID=t,this.tags=n,this}handle(){let t=document.createElement("link");t.id="id2",t.rel="manifest",t.href="/manifest.json",document.head.appendChild(t),AEventUtility.getInstance().loadOneTimeScript("https://cdn.onesignal.com/sdks/OneSignalSDK.js").then(n=>{OneSignal.push(function(){OneSignal.init({appId:this.appID,autoRegister:!0,notifyButton:{enable:!1},welcomeNotification:{disable:!0}}),OneSignal.on("subscriptionChange",function(r){OneSignal.sendTags(this.tags)})})})}}const a8window$2=window;class AEventPushCrewHelper{static getInstance(){return a8window$2.a8PushCrewHelper||(a8window$2.a8PushCrewHelper=new AEventPushCrewHelper),a8window$2.a8PushCrewHelper}init(t,n,r){return this.callbackURL=t,this.registrantID=n,this.userID=r,this}handle(){(function(n,r,i,a){n._pcq=n._pcq||[],n._pcq.push(["_currentTime",Date.now()]),i=r.createElement("script"),i.type="text/javascript",i.async=!0,i.src="https://cdn.pushcrew.com/js/"+this.userID+".js",a=r.getElementsByTagName("script")[0],a.parentNode.insertBefore(i,a)})(a8window$2,document),a8window$2._pcq=window._pcq||[],a8window$2._pcq.push(["subscriptionSuccessCallback",t]);function t(n,r){let i=new XMLHttpRequest;i.open("GET","https://"+this.callbackURL+"/pushcrewcallback?r="+this.registrantID+"&s="+n,!0),i.send()}}}class AEventLineHelper{static getInstance(){return window.a8LineHelper||(window.a8LineHelper=new AEventLineHelper),window.a8LineHelper}init({authUrl:t}){return this.authUrl=t,this}handle(){if(!this.authUrl)return;const t=document.createElement("div");t.id="a8-line-link-widget",t.style.cssText="position:fixed;bottom:24px;right:24px;z-index:9999;font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,sans-serif;";const n=document.createElement("a");n.href=this.authUrl,n.target="_blank",n.rel="noopener noreferrer",n.style.cssText="display:inline-flex;align-items:center;gap:8px;padding:12px 20px;background:#06C755;color:#fff;text-decoration:none;border-radius:12px;font-size:14px;font-weight:600;box-shadow:0 4px 14px rgba(6,199,85,0.4);transition:transform 0.2s ease,box-shadow 0.2s ease;cursor:pointer;",n.onmouseenter=function(){this.style.transform="translateY(-2px)",this.style.boxShadow="0 6px 20px rgba(6,199,85,0.5)"},n.onmouseleave=function(){this.style.transform="translateY(0)",this.style.boxShadow="0 4px 14px rgba(6,199,85,0.4)"};const r=document.createElement("span");r.innerHTML='<svg width="20" height="20" viewBox="0 0 24 24" fill="#fff"><path d="M12 2C6.48 2 2 5.93 2 10.74c0 4.33 3.83 7.95 9 8.67V22l3.27-2.82C19.07 17.6 22 14.42 22 10.74 22 5.93 17.52 2 12 2zm5.5 7.15l-1.7 2.3c-.1.14-.26.22-.43.22h-1.83l-.74 1h2.57c.24 0 .43.19.43.43v.47c0 .24-.19.43-.43.43H11.8c-.24 0-.43-.19-.43-.43v-.63l1.92-2.62H11.8c-.24 0-.43-.19-.43-.43V9.4c0-.24.19-.43.43-.43h3.27c.24 0 .43.19.43.43v.63l-.02.02.02.02v.08zM10.43 9h-.47c-.24 0-.43.19-.43.43v4.14c0 .24.19.43.43.43h.47c.24 0 .43-.19.43-.43V9.43c0-.24-.19-.43-.43-.43zm-1.97 0H5.19c-.24 0-.43.19-.43.43v.47c0 .24.19.43.43.43h1.83l-2.3 3.14v.53c0 .24.19.43.43.43h3.27c.24 0 .43-.19.43-.43v-.47c0-.24-.19-.43-.43-.43H6.6l2.3-3.14V9.43c0-.24-.2-.43-.44-.43z"/></svg>';const i=document.createElement("span");i.textContent="Link LINE Account",n.appendChild(r),n.appendChild(i),t.appendChild(n),document.body?document.body.appendChild(t):window.addEventListener("load",function(){document.body.appendChild(t)})}}const workerFunction=function(){self.addEventListener("message",()=>{setInterval(()=>{self.postMessage("tick")},1e3)})};let codeToString=workerFunction.toString(),mainCode=codeToString.substring(codeToString.indexOf("{")+1,codeToString.lastIndexOf("}")),blob=new Blob([mainCode],{type:"application/javascript"}),workerScript=(Z=URL.createObjectURL)==null?void 0:Z.call(URL,blob);const a8window$1=window;class AEventCountdownHelper{constructor(){typeof this.timerInterval=="undefined"&&(this.timerInterval=null)}static getInstance(){return a8window$1.a8CountdownHelper||(a8window$1.a8CountdownHelper=new AEventCountdownHelper),a8window$1.a8CountdownHelper}init({style:t,timerStyle:n,periodStyle:r,seconds:i,language:a}){if(!(this.seconds>0&&i<1))return this.style=t,this.timerStyle=n.replaceAll(/\s?!important\s?/g,""),this.periodStyle=r,this.seconds=i,this.clockInfo=this.clockInfo?this.clockInfo:this.scanPage(),this.clearCache=!1,this.language=a!=null?a:"english",this}initFlipClock(t=null,n=null){var h,f,y,w;if(!(this.style==1||this.style==2||!this.style)&&!(t&&t.getAttribute("data-flip-initialized"))&&!(!t&&this.flipInitialized)){if(this.loadFlipClock(),!a8window$1.FlipClock){setTimeout(()=>{this.initFlipClock()},200);return}var r="countdown-box";document.getElementsByClassName("countdown-box").length==0&&(r="countdown-row",document.getElementsByClassName("countdown-row").length==0&&document.getElementsByClassName("elCountdownRow").length!=0&&(r="elCountdownRow"));try{FlipClock(t!=null?t:document.getElementsByClassName(r),n!=null?n:this.seconds,{clockFace:"DailyCounter",countdown:!0,language:this.getFlipLanguage()}),t==null||t.setAttribute("data-flip-initialized",!0),t||(this.flipInitialized=!0)}catch($){setTimeout(()=>{this.initFlipClock()},200);return}for(var i=document.getElementsByClassName("flip-clock-active"),a=0;a<i.length-2;a+=2){var d=i[a],o=i[a+1],l=d.getElementsByClassName("inn")[0],u=o.getElementsByClassName("inn")[0];if(l.innerHTML=="0"&&u.innerHTML=="0"){(h=d==null?void 0:d.parentNode)!=null&&h.style&&(d.parentNode.style.display="none"),(f=d==null?void 0:d.parentNode)!=null&&f.previousSibling&&(d.parentNode.previousSibling.style.display="none"),o&&((y=o==null?void 0:o.parentNode)!=null&&y.style)&&(o.parentNode.style.display="none");var c=o.parentNode.nextSibling;(w=c==null?void 0:c.classList)!=null&&w.contains("flip-clock-divider")&&(c.childNodes[1].style.display="none",c.childNodes[2].style.display="none")}}}}getBoxClass(){var t,n;return this!=null&&this.boxClass||(((t=document.getElementsByClassName("countdown-box"))==null?void 0:t.length)>0?this.boxClass="countdown-box":((n=document.getElementsByClassName("elCountdownBox"))==null?void 0:n.length)>0?this.boxClass="elCountdownBox":this.boxClass="countdown-box"),this.boxClass}getAmountClass(){var t,n,r;return this!=null&&this.amountClass||(((t=document.getElementsByClassName("countdown-amount"))==null?void 0:t.length)>0?this.amountClass="countdown-amount":((n=document.getElementsByClassName("elCountdownAmount"))==null?void 0:n.length)>0?this.amountClass="elCountdownAmount":((r=document.getElementsByClassName("elementor-countdown-digits"))==null?void 0:r.length)>0?this.amountClass="elementor-countdown-digits":this.amountClass="countdown-amount"),this.amountClass}getPeriodClass(){var t,n,r;return this!=null&&this.periodClass||(((t=document.getElementsByClassName("countdown-period"))==null?void 0:t.length)>0?this.periodClass="countdown-period":((n=document.getElementsByClassName("elCountdownPeriod"))==null?void 0:n.length)>0?this.periodClass="elCountdownPeriod":((r=document.getElementsByClassName("elementor-countdown-label"))==null?void 0:r.length)>0?this.periodClass="elementor-countdown-label":this.periodClass="countdown-period"),this.periodClass}getRowClass(){var t,n,r;return this!=null&&this.rowClass||(((t=document.getElementsByClassName("countdown-row"))==null?void 0:t.length)>0?this.rowClass="countdown-row":((n=document.getElementsByClassName("elCountdownRow"))==null?void 0:n.length)>0?this.rowClass="elCountdownRow":((r=document.getElementsByClassName("elementor-countdown-wrapper"))==null?void 0:r.length)>0?this.rowClass="elementor-countdown-wrapper":this.rowClass="countdown-row"),this.rowClass}getSectionClass(){var t,n,r;return this!=null&&this.sectionClass||(((t=document.getElementsByClassName("countdown-section"))==null?void 0:t.length)>0?this.sectionClass="countdown-section":((n=document.getElementsByClassName("elCountdownSection"))==null?void 0:n.length)>0?this.sectionClass="elCountdownSection":((r=document.getElementsByClassName("elementor-countdown-item"))==null?void 0:r.length)>0?this.sectionClass="elementor-countdown-item":this.sectionClass="countdown-section"),this.sectionClass}isCF2(t=null){var i;if(this.cf2)return!0;if(!t)return!1;const n=(i=t.parentElement)==null?void 0:i.getAttribute("data-page-element");if(typeof n!="string")return!1;const r=/^Countdown/.test(n);return r&&(this.cf2=!0),r}hasSplitDigits(){return this.style==4}createSplitAmount(t,n){var l,u,c,h,f,y,w,$,m;const r=document.createElement("div");r.classList.add("countdown-amount"),r.classList.add("elCountdownAmount"),r.classList.add("split-amount");const i=document.createElement("div");i.classList.add("countdown-digit"),i.classList.add("tens-place");const[a,d]=n.padStart(2,"0").split("");t&&(i.style=i.style.cssText+this.timerStyle,this.setStyle("--countdown-amount-font-size",(l=i.style["font-size"])!=null?l:"8px"),this.setStyle("--countdown-amount-font-color",(u=i.style.color)!=null?u:null),this.setStyle("--countdown-amount-bg",(c=i.style["background-color"])!=null?c:null),this.setStyle("--countdown-amount-padding-left",(h=i.style["padding-left"])!=null?h:null),this.setStyle("--countdown-amount-padding-right",(f=i.style["padding-right"])!=null?f:null),this.setStyle("--countdown-amount-padding-top",(y=i.style["padding-top"])!=null?y:null),this.setStyle("--countdown-amount-padding-bottom",(w=i.style["padding-bottom"])!=null?w:null),this.setStyle("--countdown-amount-width",($=i.style.width)!=null?$:null),this.setStyle("--countdown-amount-height",(m=i.style.height)!=null?m:null),i.style.removeProperty("font-size"),i.style.removeProperty("padding"),i.innerText=a);const o=document.createElement("div");return o.classList.add("countdown-digit"),o.classList.add("ones-place"),t&&(o.style=o.style.cssText+this.timerStyle,o.style.removeProperty("font-size"),o.style.removeProperty("padding"),o.innerText=d),r.appendChild(i),r.appendChild(o),r}setStyle(t,n){if(!n)return;if(document.documentElement.style.getPropertyValue(t)!=n)try{document.documentElement.style.setProperty(t,n)}catch(i){console.error(i)}}createAmount(t,n){var i,a,d,o,l,u,c;if(this.hasSplitDigits())return this.createSplitAmount(t,n);const r=document.createElement("span");return r.classList.add("countdown-amount"),r.classList.add("elCountdownAmount"),r.classList.add(this.getAmountClass()),this.style!=1&&this.style!=5&&this.style!=6&&(r.style.display="table-cell"),t&&(r.style=r.style.cssText+this.timerStyle,this.setStyle("--countdown-amount-font-size",(i=r.style["font-size"])!=null?i:"8px"),this.setStyle("--countdown-amount-font-color",(a=r.style.color)!=null?a:null),this.setStyle("--countdown-amount-bg",(d=r.style["background-color"])!=null?d:null),this.setStyle("--countdown-amount-padding-left",(o=r.style["padding-left"])!=null?o:null),this.setStyle("--countdown-amount-padding-right",(l=r.style["padding-right"])!=null?l:null),this.setStyle("--countdown-amount-padding-top",(u=r.style["padding-top"])!=null?u:null),this.setStyle("--countdown-amount-padding-bottom",(c=r.style["padding-bottom"])!=null?c:null),r.style.removeProperty("font-size"),r.style.removeProperty("margin")),(this.style==1||this.style==5||this.style==6)&&(r.style.padding=0),r.innerHTML||(r.innerHTML=n),r}createSection(t,n,r,i){const a=this.getTimeMap()[n].single,d=n.toLowerCase(),o=document.createElement("div");o.classList.add("countdown-section"),o.classList.add("elCountdownColumn"),o.classList.add(`countdown-section-${d}s`),o.classList.add(this.getSectionClass()),i||o.classList.add("visible"),this.style!=4&&this.style!=5&&this.style!=6&&(o.style.display="table");const l=this.createAmount(t,r);l.classList.add(`countdown-amount-${d}s`),this.style!=4&&o.appendChild(l);const u=document.createElement("span");return u.classList.add("countdown-period"),u.classList.add("elCountdownPeriod"),u.classList.add(this.getPeriodClass()),t&&(u.style=u.style.cssText+this.periodStyle,this.setStyle("--countdown-period-font-size",u.style.fontSize),this.setStyle("--countdown-period-font-color",u.style.color),this.setStyle("--countdown-period-padding-left",u.style.paddingLeft),this.setStyle("--countdown-period-padding-right",u.style.paddingRight),this.setStyle("--countdown-period-padding-top",u.style.paddingTop),this.setStyle("--countdown-period-padding-bottom",u.style.paddingBottom),this.style==6&&(u.style.margin=0),this.style==1&&(u.style.padding=0,u.style.fontSize=u.style.fontSize)),u.innerHTML=a,u.classList.add(`countdown-period-${d}s`),o.appendChild(u),this.style==4&&o.appendChild(l),i&&(o.style.display="none"),{section:o,amount:l}}initGeneralClock(){if(this.getPeriodClass(),this.getAmountClass(),this.getSectionClass(),this.getRowClass(),!this.isDataReady())return;const t=[{timeKey:"days",label:"DAY",digitKey:"dayDigit"},{timeKey:"hours",label:"HOUR",digitKey:"hourDigit"},{timeKey:"minutes",label:"MINUTE",digitKey:"minuteDigit"},{timeKey:"seconds",label:"SECOND",digitKey:"secondDigit"}];document.getElementsByClassName(this.getBoxClass()).length,Array.from(document.getElementsByClassName(this.getRowClass())).map((a,d)=>{const o=this.addInfoTo({clockEl:a},d),l=a.parentElement.classList.contains(this.getBoxClass());if(l&&!a.classList.contains("countdown-"+this.style)&&a.classList.add("countdown-"+this.style),this.isCF2(a))return;a.innerHTML&&(a.innerHTML="");const u=Object.fromEntries(t.map(({timeKey:c,label:h,digitKey:f})=>{var v,T;const y=(T=(v=o.time)==null?void 0:v[c])!=null?T:0,w=this.padContent(y),$=c==="days"&&!this.keepDays(o.time)||c==="hours"&&!this.keepHours(o.time),{section:m,amount:C}=this.createSection(l,h,w,$);return a.appendChild(m),[f,C]}));return{...o,...u}}),Array.from(document.getElementsByClassName(this.getAmountClass())).forEach(a=>{a.style.cssText+this.timerStyle}),Array.from(document.getElementsByClassName(this.getPeriodClass())).forEach(a=>{a.style.cssText+this.periodStyle}),this.removeBefore()}removeBefore(){var d;if(this.style!=5)return;const t=document.getElementsByClassName(this.getSectionClass());if(t.length<1)return;const n=t[t.length-1],r=window.getComputedStyle(n);if(!(!!r.border&&r.borderWidth!=="0px")||document.getElementById("a8-remove-before"))return;const a=document.createElement("style");a.id="a8-remove-before",a.innerHTML='.countdown-box .countdown-5.countdown-row .countdown-section:not(.countdown-section-seconds)::before { content: ""!important; }',(d=document==null?void 0:document.body)==null||d.appendChild(a)}getTimeMap(){var t;return this.style==5?{DAY:{single:"DAY",plural:"DAY"},HOUR:{single:"HRS",plural:"HRS"},MINUTE:{single:"MIN",plural:"MIN"},SECOND:{single:"SEC",plural:"SEC"}}:(this.timeMap||(this.timeMap=(t=AEvent.getInstance())==null?void 0:t.timeMap),this.timeMap)}getCF2Digits(t){const n=t.querySelector('[data-time-type*="ays"]'),r=t.querySelector('[data-time-type*="ours"]'),i=t.querySelector('[data-time-type*="inutes"]'),a=t.querySelector('[data-time-type*="econds"]');return!n&&!r&&!i?null:{dayDigit:n!=null?n:"not-visible",hourDigit:r!=null?r:"not-visible",minuteDigit:i!=null?i:"not-visible",secondDigit:a!=null?a:"not-visible",clockEl:t}}getCombinedDigits(t){const n=this.getCF2Digits(t);if(n)return n;let r=[...t==null?void 0:t.querySelectorAll("."+this.getAmountClass())];for(;r.length<4;)r=["not-visible",...r];const[i,a,d,o]=r;return{secondDigit:o,minuteDigit:d,hourDigit:a,dayDigit:i,clockEl:t}}getSeparatedDigits(t){let r=Array.from(t.getElementsByClassName("flip")).concat(Array.from(t.getElementsByClassName("countdown-digit"))).reduce((l,u,c)=>{const h=Math.floor(c/2);return l[h]||(l[h]=[]),l[h].push(u),l},[]);for(;r.length<4;)r=[["not-visible","not-visible"],...r];const[i,a,d,o]=r;return{secondDigit:o,minuteDigit:d,hourDigit:a,dayDigit:i,clockEl:t}}getDigits(t){var r;if(this.hasSplitDigits())return this.getSeparatedDigits(t);const n=(r=t.getElementsByClassName(this.getRowClass()))==null?void 0:r[0];return n?this.getCombinedDigits(n):this.getSeparatedDigits(t)}removeDuplicateNodes(t,n,r){return r.findIndex(i=>i.isSameNode(t))===n}removeDuplicateClocks(t,n,r){return r.findIndex(i=>i.clockEl.isSameNode(t.clockEl))===n}getAllClocks(){let t=[];if(this.clockInfo.pageType==="groove"){const n=document.querySelectorAll(".secs"),r=document.querySelectorAll(".mins"),i=document.querySelectorAll(".hrs"),a=document.querySelectorAll(".days");for(let d=0;d<this.clockInfo.pageClocks;d++)t.push({secondDigit:n[d],minuteDigit:r[d],hourDigit:i[d],dayDigit:a[d]})}else if(this.clockInfo.pageType==="clickfunnel"){const n=Array.from(document.getElementsByClassName(this.getBoxClass())).filter(this.isActive.bind(this));if((n==null?void 0:n.length)<1){const r=Array.from(document.getElementsByClassName(this.getRowClass())).filter(this.isActive.bind(this));for(let i=0;i<r.length;i++)t.push(this.getCombinedDigits(r[i]))}(n==null?void 0:n.length)<1&&Array.from(document.getElementsByClassName(this.getSectionClass())).map(i=>i==null?void 0:i.parentNode).filter(this.isActive.bind(this)).filter(this.removeDuplicateNodes.bind(this)).map(i=>t.push(this.getCombinedDigits(i)));for(let r=0;r<n.length;r++)t.push(this.getDigits(n[r]));return t.filter(this.removeDuplicateClocks.bind(this))}return t}isActive(t){return!this.isIgnored(t)&&this.checkVisibility(t)}isIgnored(t){var n,r,i,a;return(t==null?void 0:t.getAttribute("data-minutes"))||((n=t==null?void 0:t.classList)==null?void 0:n.contains("aevent-ignore"))||(t==null?void 0:t.id)==="aevent-ignore"||((r=t==null?void 0:t.parentElement)==null?void 0:r.id)==="aevent-ignore"||((a=(i=t==null?void 0:t.parentElement)==null?void 0:i.classList)==null?void 0:a.contains("aevent-ignore"))}getTimestampForID(t){var d,o,l,u,c,h,f,y,w,$,m,C,v,T,_,S,O,I,F,R;const n=""+t;if(n.match("scheduletime")){let D=(l=(o=(d=n==null?void 0:n.match)==null?void 0:d.call(n,/\d+/))==null?void 0:o[0])!=null?l:0;D=parseInt(D);const E=(h=(c=(u=AEvent.getInstance())==null?void 0:u.getWebinars)==null?void 0:c.call(u))==null?void 0:h.filter(M=>M==null?void 0:M.webinarID.match("scheduletime"));return($=(f=E==null?void 0:E[D])==null?void 0:f.timeStamp)!=null?$:(w=(y=AEvent.getInstance())==null?void 0:y.getReplacements())==null?void 0:w[`reg-timeStamp${D+1}`]}if(AEvent.getInstance().page==="replay")return AEvent.getInstance().replaces.replayTimestamp;let r=0,i=Object.entries((C=(m=AEvent.getInstance())==null?void 0:m.replaces)!=null?C:{}).filter(([D,E])=>D.match(/webinar-webinar\d+id/)).map(([D,E])=>[E,D.replace(/[^\d]/g,"")]).reduce((D,E)=>({...D,[E[0]]:E[1]}),{});const a=(_=(T=(v=AEvent.getInstance())==null?void 0:v.replaces)==null?void 0:T["reg-year"+(i==null?void 0:i[t])])==null?void 0:_.timeStamp;return r=a!=null?a:0,r>0?r:(t===""||((S=AEvent.getInstance())==null?void 0:S.upcomingWebinars.length)==0||((O=this.clockInfo)==null?void 0:O.replicatedType)==="none"||((I=this.clockInfo)==null?void 0:I.registrationType)==="multi-option"?r=(F=AEvent.getInstance())==null?void 0:F.replaces.webinarTimestamp:r=(R=AEvent.getInstance())==null?void 0:R.upcomingWebinars.reduce((D,E)=>E.webinarID===t?E.data.timeStamp+D:D,0),r<0?0:r)}addWebinarInfo(t,n){const{webinarID:r,timestamp:i}=this.getWebinarInfo(t,n),a=this.calculateClockTime(i);return{webinarID:r,timestamp:i,time:a,...t}}getWebinarInfo(t,n){var l,u,c,h;const r=(l=t.clockEl)==null?void 0:l.getAttribute("data-webinar"),i=(u=t.clockEl)==null?void 0:u.getAttribute("data-timestamp"),a=i&&i-Date.now()/1e3<0;if(r&&i&&!a&&!this.clearCache)return{webinarID:r,timestamp:i};this.clearCache=!0;const d=this.getWebinarIDForClock(t,n),o=this.getTimestampForID(d);return(c=t.clockEl)==null||c.setAttribute("data-webinar",d),(h=t.clockEl)==null||h.setAttribute("data-timestamp",o),{webinarID:d,timestamp:o}}getTimestampForClock(t,n){var i;const r=this.getTimestampForID(n);return(i=t.clockEl)==null||i.setAttribute("data-timestamp",r),r}getWebinarIDForClock(t,n){var d,o,l;let r=AEvent.getInstance().nextValidID();const i=AEvent.getInstance().getPageWebinarIDs(),a=AEventMultiSessionHelper==null?void 0:AEventMultiSessionHelper.getInstance();if(a){const u=this.clockInfo.showcase,c=u||this.clockInfo.visibleClocks>a.domWebinarCount||document.querySelector(".webinar-showcase"),h=u||c&&n===1;c?c&&!h?r=(o=i==null?void 0:i[n-2])!=null?o:r:c&&h&&(r=AEvent.getInstance().nextValidID()):r=(d=i==null?void 0:i[n-1])!=null?d:r}return(l=t.clockEl)==null||l.setAttribute("data-webinar",r),r}getTimestampForRecurringIndex(t){var r,i,a,d;const n=[...new Set(Object.entries((a=(i=(r=AEvent.getInstance()).getReplacements)==null?void 0:i.call(r))!=null?a:{}).filter(([o,l])=>o.match(/^timeStamp/)).map(([o,l])=>l).filter(o=>{var l,u;return(u=(l=AEvent.getInstance()).isTimestampInFuture)==null?void 0:u.call(l,o)}).sort((o,l)=>o>l?1:-1))];return(d=n==null?void 0:n[t-1])!=null?d:n==null?void 0:n[0]}getAttributeClockIndex(t){var n,r,i;if((n=t==null?void 0:t.id)!=null&&n.match(/webinar\d+countdown/))return parseInt(t.id.replace(/\D/g,""));if((r=t==null?void 0:t.getAttribute("data-title"))!=null&&r.match(/webinar\d+countdown/))return parseInt((i=t.getAttribute("data-title"))==null?void 0:i.replace(/\D/g,""))}addInfoTo(t,n){const r=this.getAttributeClockIndex(t.clockEl),i=r!=null?r:n+1,a=this.style!=4&&Array.isArray(t==null?void 0:t.secondDigit);return{...this.addWebinarInfo(t,i),isFlip:a}}addMetaInfo(t){return t.map((n,r)=>this.addInfoTo(n,r))}calculateClockTime(t){let[n,r,i,a,d]=[0,0,0,0,0];return t!==0&&+new Date(t*1e3)-+new Date>0&&(d=Math.floor(Math.floor(+new Date(t*1e3)-+new Date)/1e3),n=d,a=Math.floor(n/(3600*24)),n-=a*3600*24,i=Math.floor(n/3600),n-=i*3600,r=Math.floor(n/60),n-=r*60,n=Math.floor(n)),{seconds:n,hours:i,minutes:r,days:a,totalSeconds:d}}isPadding(){return this.style==1||this.style==5||this.style==6}padContent(t){return this.isPadding()?`${t}`.padStart(2,"0"):`${t}`}setDigit(t,n){if(!t||typeof t=="string")return;if(Array.isArray(t)&&t.length==2){const[i,a]=t;this.setDigit(a,n%10),this.setDigit(i,Math.floor(n/10));return}const r=Array.from(t==null?void 0:t.getElementsByClassName("inn"));(r==null?void 0:r.length)>0?(r.forEach(i=>{var d;const a=(d=`${n}`)!=null?d:"00";i.innerHTML!==a&&(i.innerHTML=a)}),r.forEach(i=>{i.hasAttribute("data-digit")||i.setAttribute("data-digit",!0)})):"innerHTML"in t&&(t.innerHTML=this.padContent(n),t.hasAttribute("data-digit")||t.setAttribute("data-digit",!0))}moveHands(t){var n,r,i,a,d,o,l,u;this.setDigit(t.dayDigit,(r=(n=t.time)==null?void 0:n.days)!=null?r:0),this.setDigit(t.hourDigit,(a=(i=t.time)==null?void 0:i.hours)!=null?a:0),this.setDigit(t.minuteDigit,(o=(d=t.time)==null?void 0:d.minutes)!=null?o:0),this.setDigit(t.secondDigit,(u=(l=t.time)==null?void 0:l.seconds)!=null?u:0)}keepHours(t){return(t==null?void 0:t.hours)>=1||(t==null?void 0:t.days)>0}keepDays(t){return(t==null?void 0:t.days)>=1}hideDigit(t,n=!1){var i,a,d,o,l,u,c,h,f,y,w,$,m,C;if(Array.isArray(t)){t.forEach(v=>this.hideDigit(v,!0));return}if(typeof t=="string")return;if(((i=t==null?void 0:t.classList)==null?void 0:i.contains("countdown-digit"))&&((o=(d=(a=t.parentElement)==null?void 0:a.parentElement)==null?void 0:d.classList)==null?void 0:o.contains("countdown-section"))){t.parentElement.parentElement.style.display="none",t.parentElement.parentElement.classList.remove("visible");return}if(n&&((l=t==null?void 0:t.style)!=null&&l.display)||((u=t==null?void 0:t.style)==null?void 0:u.display)===""){t.style.display="none";return}if(((h=(c=t==null?void 0:t.parentElement)==null?void 0:c.style)!=null&&h.display||((y=(f=t==null?void 0:t.parentElement)==null?void 0:f.style)==null?void 0:y.display)==="")&&(t.parentElement.style.display="none",t.parentElement.classList.remove("visible")),this.style==6&&(($=(w=t==null?void 0:t.parentElement)==null?void 0:w.classList)!=null&&$.contains("countdown-section")))try{(C=(m=t.parentElement)==null?void 0:m.parentElement)==null||C.removeChild(t.parentElement)}catch(v){console.error(v)}}hideFractionDigits(t){!this.keepHours(t==null?void 0:t.time)&&(t!=null&&t.hourDigit)&&this.hideDigit(t.hourDigit),!this.keepDays(t==null?void 0:t.time)&&(t!=null&&t.dayDigit)&&this.hideDigit(t.dayDigit)}adjustClockLabels(t){var i,a,d,o,l;let n=((i=t==null?void 0:t.time)==null?void 0:i.seconds)>1||((a=t==null?void 0:t.time)==null?void 0:a.seconds)===0?this.getTimeMap().SECOND.plural:this.getTimeMap().SECOND.single;this.changeLabelForDigit(t==null?void 0:t.secondDigit,n);let r=(t==null?void 0:t.time.minutes)>1||((d=t==null?void 0:t.time)==null?void 0:d.minutes)===0?this.getTimeMap().MINUTE.plural:this.getTimeMap().MINUTE.single;if(this.changeLabelForDigit(t==null?void 0:t.minuteDigit,r),this.keepHours(t==null?void 0:t.time)){let u=(t==null?void 0:t.time.hours)>1||((o=t==null?void 0:t.time)==null?void 0:o.hours)===0?this.getTimeMap().HOUR.plural:this.getTimeMap().HOUR.single;this.changeLabelForDigit(t==null?void 0:t.hourDigit,u)}if(this.keepDays(t==null?void 0:t.time)){let u=(t==null?void 0:t.time.days)>1||((l=t==null?void 0:t.time)==null?void 0:l.days)===0?this.getTimeMap().DAY.plural:this.getTimeMap().DAY.single;this.changeLabelForDigit(t==null?void 0:t.dayDigit,u)}}changeLabelForDigit(t,n){var r,i,a,d,o,l,u;if(t!=="not-visible"){if(Array.isArray(t)&&((d=(a=(i=(r=t[0])==null?void 0:r.parentElement)==null?void 0:i.previousElementSibling)==null?void 0:a.classList)!=null&&d.contains("countdown-period"))){const c=t[0].parentElement.previousElementSibling;c.innerText!=n&&(c.innerText=n);return}t!=null&&t.nextElementSibling&&(t.nextElementSibling.innerText!==n&&(t.nextElementSibling.innerText=n),t.nextElementSibling.hasAttribute("data-digit")||t.nextElementSibling.setAttribute("data-digit",!0),window.location.href.match(/^https:\/\/groove.cm/)&&(t.nextElementSibling.style.color="white")),!(this.isCF2()||this.style==6||this.style==4||this.style==5)&&t!=null&&t.parentElement&&((o=t==null?void 0:t.parentElement)==null?void 0:o.innerText)!=="00"&&(l=t.parentElement)!=null&&l.style&&((u=t.parentElement)==null?void 0:u.style.display)!=="block"&&(t.parentElement.style.display="block")}}countdownDisabled(){if(document.getElementsByClassName("gp-component").length>0)return!1;const n=Array.from(document.getElementsByClassName(this.getBoxClass())).filter(a=>!this.isIgnored(a)),r=Array.from(document.getElementsByClassName(this.getRowClass())).filter(a=>!this.isIgnored(a)),i=Array.from(document.getElementsByClassName(this.getSectionClass())).filter(a=>!this.isIgnored(a));return(i==null?void 0:i.length)>0&&document.getElementsByClassName("aevent-ignore").length<1?!1:(n==null?void 0:n.length)<1&&(r==null?void 0:r.length)<1?(a8window$1.FlipClock=!0,!0):!1}replacesIDs(){var t;return[...new Set(Object.entries((t=AEvent.getInstance().replaces)!=null?t:{}).filter(([n,r])=>n.match(/webinar.*id/)).map(([n,r])=>r))].filter(n=>n!=="")}removeExtraIDs(t){var n;if((t==null?void 0:t.length)===0)return["scheduletime"];if(((n=AEvent.getInstance().upcomingWebinars)==null?void 0:n.length)>0){let r=AEvent.getInstance().upcomingWebinars.map(a=>a.webinarID),i=t.filter(a=>r.includes(a));if(i.length>0)return i}return t}checkVisibility(t){return t?a8window$1.getComputedStyle(t,null).display!=="none"&&this.checkVisibility(t==null?void 0:t.parentElement):!0}scanPage(){var r,i,a,d,o,l,u,c,h,f,y,w,$,m,C,v,T,_;let t={};t.registrationType=(i=(r=AEvent.getInstance()).checkRegistrationType)==null?void 0:i.call(r),t.pageType=((a=document.getElementsByClassName("gp-component"))==null?void 0:a.length)>0?"groove":"clickfunnel",(((d=document.getElementsByClassName("countdown-row"))==null?void 0:d.length)>0||((o=document.getElementsByClassName("elCountdownRow"))==null?void 0:o.length)>0)&&(t.pageType="clickfunnel"),t.pageClocks=t.pageType==="clickfunnel"?document.querySelectorAll(".countdown-box").length:document.querySelectorAll(".secs").length,t.orderedIDs=this.removeExtraIDs(this.replacesIDs()),t.clockedWebinars=(u=(l=t.orderedIDs)==null?void 0:l.length)!=null?u:0;let n=t.pageType==="clickfunnel"?[...document.querySelectorAll(".countdown-box")]:document.querySelectorAll(".secs");return t.visibleClocks=Array.from(n).filter(S=>this.checkVisibility(S)).length,t.replicatedType=((h=Object.keys((c=AEvent.getInstance().replaces)!=null?c:{}).filter(S=>S.match(/timeStamp\d*/)))==null?void 0:h.length)>0||((f=AEvent.getInstance().upcomingWebinars)==null?void 0:f.length)>0?"session-passed":"duplicate",t.buttonCount=(w=(y=AEventDomUtility.getInstance().getAllButtons())==null?void 0:y.length)!=null?w:0,t.visibleClocks===1&&(t.showcase=(v=(C=(m=($=document.querySelector(".countdown-row"))!=null?$:document.querySelector(".countdown-box"))!=null?m:document.querySelector(".webinar-showcase"))!=null?C:document.querySelector(".elCountdownRow"))!=null?v:document.querySelector(".countdown-show3")),t.replicatedClocks=t.replicatedType==="duplicate"?1:t.pageClocks-t.clockedWebinars,t.buttonCount>3&&t.visibleClocks<2&&((T=AEvent.getInstance().upcomingWebinars)==null?void 0:T.length)<1?(t.replicatedClocks=t.buttonCount,t.showcase=(_=t.showcase)!=null?_:!0):t.pageClocks<2&&(t.replicatedType="none"),t.replicatedClocks<0&&(t.replicatedClocks=0),t}unstyled(){var t,n,r,i;return((i=(r=(n=(t=this.clocks)==null?void 0:t[0])==null?void 0:n.secondDigit)==null?void 0:r.style)==null?void 0:i.cssText)===""}startClock(){var t,n;if(!this.clocks||((t=this.clocks)==null?void 0:t.length)<2){if(!this.style)return;this.clocks=(n=this.getAllClocks())!=null?n:[],this.style!=1&&this.style!=2&&this.style&&this.addMetaInfo(this.clocks).filter(r=>r.isFlip).forEach(r=>{try{this.initFlipClock(r.clockEl,r.time.totalSeconds)}catch(i){}})}this.addMetaInfo(this.clocks).forEach(r=>{this.hideFractionDigits(r),this.moveHands(r),this.adjustClockLabels(r)}),this.clearCache=!1,this.unstyled()&&this.initGeneralClock()}parseHex(t){if(!t||typeof t!="string"||t[0]!=="#")return null;if(t.length==7)return t;if(t.length==4){const n=t.replace("#",""),r=n.substr(0,1),i=n.substr(1,2),a=n.substr(2,3);return`#${r}${r}${i}${i}${a}${a}`}return null}parseRGB(t){if(typeof t!="string"||!t.includes("rgb"))return null;const n=t.replace(/.*\(/,"").replace(")","").replaceAll(/\s+/g,"").split(",");if(n.length<3)return null;const r=parseInt(n[0],16),i=parseInt(n[1],16),a=parseInt(n[2],16);return!r||!i||!a?null:{r,g:i,b:a}}hexToRGB(t){const n=t.replace("#",""),r=parseInt(n.substr(0,2),16),i=parseInt(n.substr(2,2),16),a=parseInt(n.substr(4,2),16);return!r||!i||!a?null:{r,g:i,b:a}}convertHex(t){const n=this.parseHex(t);return n?this.hexToRGB(n):null}getRGB(t){const n=this.convertHex(t);return n||this.parseRGB(t)}isLight(t){const n=this.getRGB(t);if(!n)return null;const{r,g:i,b:a}=n;return(r*299+i*587+a*114)/1e3>=128}loadFlipClock(){var n,r,i,a,d,o;if(!(this.style==1||this.style==2||this.style==4||this.style==5||this.style==6||!this.style)){if(!document.getElementById("flip-class")){let l=document.createElement("style");l.id="flip-class",l.innerHTML=".flip-clock-before {display: none;} .play .flip-clock-before {display:block; z-index: 3;} .flip-clock-wrapper .inn {"+this.timerStyle+"}  .flip-clock-divider .flip-clock-label { "+this.periodStyle+" background-color:transparent!important; }",(n=document==null?void 0:document.body)==null||n.appendChild(l)}if(a8window$1.FlipClock||AEventUtility.getInstance().loadScript("FlipClock","https://cdn.aevent.com/resources/flipclock.js"),!document.documentElement.style.getPropertyValue("--countdown-amount-bg")){const l=(i=(r=this.timerStyle.match(/background-color:\s*(?:(rgba?\((?:\s*[\d\.]+\s*,?){3,}\))|(#\w{3,6})\s*)/))==null?void 0:r[1])==null?void 0:i.trim();this.setStyle("--countdown-amount-bg",l!=null?l:"#333");const u=(d=(a=this.timerStyle.match(/(?:[^\-]|^)color:\s*(?:(rgba?\((?:\s*[\d\.]+\s*,?){3,}\))|#(\w{3,6})\s*)/))==null?void 0:a[1])==null?void 0:d.trim();this.setStyle("--countdown-amount-font-color",u!=null?u:"#ccc");const h=((o=this.isLight(l))!=null?o:!1)?"none":"0 1px 2px #000";this.setStyle("--countdown-flip-text-shadow",h)}}}getFlipLanguage(){var n;if(typeof a8window$1.FlipClock.Lang[this.language]!="undefined")return this.language;const t=(n=this.language)==null?void 0:n.replace(/_.*|-.*/,"");return typeof a8window$1.FlipClock.Lang[t]!="undefined"?t:"english"}isDataReady(){return this.isReady?!0:(this.isReady=!!AEvent.getInstance().timeMap,this.isReady)}isJQueryReady(){var t,n;return this.overwritePageJQuery(),!!((t=a8window$1.$)!=null&&t.extend)&&!!((n=a8window$1.$)!=null&&n.fn)&&!!a8window$1.jQuery}overwritePageJQuery(){var t,n;(t=a8window$1.jQuery)!=null&&t.fn&&!((n=a8window$1.$)!=null&&n.fn)&&(a8window$1.$=a8window$1.jQuery)}handle(){if(!this.isJQueryReady()||!this.isDataReady()){setTimeout(()=>{this.handle()},200);return}if(!this.countdownDisabled()){if((this.style=="custom-flip"||this.style==="3")&&this.initFlipClock(),this.initGeneralClock(),typeof Worker!="undefined"){this.worker=new Worker(workerScript),this.worker.onmessage=this.startClock.bind(this),this.worker.postMessage("start");return}this.timerInterval||(this.timerInterval=setInterval(this.startClock.bind(this),1e3))}}}var isBetween$1={exports:{}};(function(s,t){(function(n,r){s.exports=r()})(commonjsGlobal,function(){return function(n,r,i){r.prototype.isBetween=function(a,d,o,l){var u=i(a),c=i(d),h=(l=l||"()")[0]==="(",f=l[1]===")";return(h?this.isAfter(u,o):!this.isBefore(u,o))&&(f?this.isBefore(c,o):!this.isAfter(c,o))||(h?this.isBefore(u,o):!this.isAfter(u,o))&&(f?this.isAfter(c,o):!this.isBefore(c,o))}}})})(isBetween$1);var isBetweenExports=isBetween$1.exports;const isBetween=getDefaultExportFromCjs(isBetweenExports);dayjs.extend(customParseFormat),dayjs.extend(dayjsutc),dayjs.extend(dayjstz),dayjs.extend(advancedFormat),dayjs.extend(isBetween);const a8window=window;class AEvent{constructor(){this.page||(this.page="registration"),this.replaces||(this.replaces={}),this.formElementReplaces={},this.upcomingWebinars||(this.upcomingWebinars=[]),this.pastWebinars||(this.pastWebinars=[]),this.widgetSettings||(this.widgetSettings={}),this.startBlockedFor||(this.startBlockedFor=0),this.scriptElement||(this.scriptElement=null),this.tenantDomain||(this.tenantDomain=""),this.wtl||(this.wtl=""),this.dbname||(this.dbname=""),this.registrantID||(this.registrantID=""),this.webinarID||(this.webinarID=""),this.cachedReplaces||(this.cachedReplaces=void 0),this.sortedIDs||(this.sortedIDs=[]),this.loaded||(this.loaded=!1),this.ondemand||(this.ondemand=!1),this.time=null}static getInstance(){return a8window.a8Main||(a8window.a8Main=new AEvent),a8window.a8Main}wait(t){return new Promise(n=>setTimeout(n,t))}calendarModuleURL(){return new URL(this.scriptElement.src).origin+"/chunks/calendar-d82c63fa4af9.js"}redundantScript(t=""){return!!((this.page==="confirmation"||this.page==="replay")&&t.match(/setpixel/))}scanVariables(){this.scanned||(AEventDomUtility.getInstance().personalizePage(),this.scanned=!0)}fetchData(t){const n=fetch(t);return this.scanVariables(),n.then(r=>{if(r.status===410){this.invalid=!0;return}if(r.status>=400){const i=r.status===429?1e4:1e3;return this.wait(i).then(()=>this.fetchData(t))}return r.json()}).then(r=>{var i;return typeof((i=r==null?void 0:r.replaces)==null?void 0:i["webinar-wtl"])=="number"?this.wait(1e3).then(()=>this.fetchData(t)):r}).catch(()=>this.wait(1e3).then(()=>this.fetchData(t)))}async setup(t,n="https://cname.aevent.com"){const r=t.src;if(this.redundantScript(r))return;this.tenantDomain=n,this.scriptElement=t;const i=this.getDataURL(r),a=document.querySelector('input[name="wtl"]');a&&this.wtl!==""&&typeof(a==null?void 0:a.value)!="undefined"&&!this.ondemand&&(a.value=this.wtl);try{AEventCalendarHelper.getInstance().createCalendar()}catch(o){}if(!i.match(/aevent/)){console.error("AEvent header script cannot be rehosted without breaking loading user data, sorry.");return}if(!this.wtl){console.error("Timeline ID (wtl) is required.");return}if(window.location.href.includes("hubspotpreview")){console.error("This looks like the HubSpot page builder. Exiting to avoid replacing variables permanently.");return}const d=await this.fetchData(i);if(d.replaces){this.loadData(d);try{this.init()}catch(o){setTimeout(this.init.bind(this),200)}await this.phoneDropdown()}else{if(this.page==="pixel")return;d.redirectURL&&d.redirectURL!==""&&d.redirectURL!==window.location.href&&typeof d.redirectURL!="undefined"&&d.redirectURL!=="undefined"&&(window.location.href=d.redirectURL)}this.prefillForm()}getDataURL(t){var o,l,u,c,h,f,y,w,$,m,C,v;const n=new URL(t),r=n.searchParams;this.wtl=(l=(o=r.get("wtl"))!=null?o:r.get("WTL"))!=null?l:"",this.page=(u=r.get("page"))!=null?u:"registration",t.match(/setpixel/)&&(this.page="pixel"),this.registrantID=(c=r.get("r"))!=null?c:"",this.webinarID=(h=r.get("webinar"))!=null?h:"",this.phoneHelperDisabled=r.get("disablePhone")==="true";let i="";if((f=a8window==null?void 0:a8window.location)!=null&&f.href){const T=new URL(a8window.location.href),_=(y=T.searchParams.get("wtl"))!=null?y:T.searchParams.get("WTL");_&&(this.wtl=_),T.searchParams.get("r")&&(this.registrantID=T.searchParams.get("r")),T.searchParams.get("webinarid")&&(this.webinarID=T.searchParams.get("webinarid")),T.search="",i=T.toString()}this.dbname=($=(w=n.host.split("."))==null?void 0:w[0])!=null?$:"";let a=t.match(/^https:\/\/(developer\.)?aevent\.test/)?"test":"online",d=new URL(`https://${this.dbname}.aevent.${a}/getdata`);if(d.searchParams.set("wtl",this.wtl),d.searchParams.set("page",this.page),d.searchParams.set("type","json"),(this.dbname===""||this.dbname==="dev"||this.dbname==="aevent")&&r.get("db")){this.dbname=(m=r.get("db"))!=null?m:"";const T=a==="test"?"":"dev.";d=new URL(`https://${T}aevent.${a}/getdata?wtl=${this.wtl}&page=${this.page}&type=json&db=${this.dbname}`)}return this.registrantID!==""&&d.searchParams.set("r",this.registrantID),this.webinarID!==""&&d.searchParams.set("webinar",this.webinarID),d.searchParams.set("systemTimezone",AEventDateUtility.getInstance().getDayIANA()),r.get("ondemand")&&(d.searchParams.set("ondemand",!0),this.ondemand=!0),i&&d.searchParams.set("location",i),this.tenantDomain="https://"+((v=(C=t==null?void 0:t.split("/"))==null?void 0:C.slice(2,3))==null?void 0:v.join("")),d.toString()}loadData(t){var n,r,i,a,d,o,l,u,c,h,f,y,w,$,m,C,v,T,_,S,O,I,F,R,D,E,M;this.widgetSettings=t.widgetSettings,typeof t.page!="undefined"&&(this.page=t.page),this.timeMap=(n=t==null?void 0:t.timeMap)!=null?n:{},this.replaces=(r=t==null?void 0:t.replaces)!=null?r:{},this.formElementReplaces=(i=t==null?void 0:t.formElementReplaces)!=null?i:{},(a=this.upcomingWebinars)!=null&&a.length||(this.upcomingWebinars=(d=t==null?void 0:t.upcomingWebinars)!=null?d:[]),(o=this.pastWebinars)!=null&&o.length||(this.pastWebinars=(l=t==null?void 0:t.pastWebinars)!=null?l:[]),this.localizations=(u=t==null?void 0:t.localizations)!=null?u:{},this.startBlockedFor=(c=t==null?void 0:t.startBlockedFor)!=null?c:0,this.registrationStart=(h=t==null?void 0:t.registrationStart)!=null?h:0,this.joinStart=(f=t==null?void 0:t.joinStart)!=null?f:0,this.replayURL=(y=t==null?void 0:t.replayURL)!=null?y:"",this.expiredURL=(w=t==null?void 0:t.expiredURL)!=null?w:"",this.recurring=($=t==null?void 0:t.recurring)!=null?$:[],this.replayEnabled=(C=(m=t==null?void 0:t.replaces)==null?void 0:m.replayEnabled)!=null?C:!1,this.replayOffset=(T=(v=t==null?void 0:t.replaces)==null?void 0:v.replayOffset)!=null?T:0,this.replayExpiresMidnight=(S=(_=t==null?void 0:t.replaces)==null?void 0:_.replayExpiresMidnight)!=null?S:!1,this.registrationType=(O=t==null?void 0:t.registrationType)!=null?O:null,this.bookingType=(I=t==null?void 0:t.bookingType)!=null?I:null,this.language=(F=t==null?void 0:t.language)!=null?F:null,this.geolocation=t==null?void 0:t.serverTimeZone,this.timelineName=(R=t==null?void 0:t.timelineName)!=null?R:"",this.accountTimeZone=(D=t==null?void 0:t.accountTimeZone)!=null?D:"America/New_York",this.token=(E=t==null?void 0:t.token)!=null?E:"",this.loaded=!0,this.finished=!1,(M=this.scriptElement)==null||M.setAttribute("data-loaded",!0)}initPageType(){var t,n;this.checkRegistrationType()==="multi-session"?(t=AEventMultiSessionHelper.getInstance().init({upcoming:this.getUpcomingWebinars(),past:this.getPastWebinars(),startBlockedFor:this.startBlockedFor,replaces:{...this.replaces},replayURL:this.replayURL,expiredURL:this.expiredURL,registrationStart:this.getRegistrationStart(),dynamicWebinars:this.getUniqueDynamicWebinars()}))==null||t.handle():this.checkRegistrationType()==="multi-option"&&((n=AEventMultiOptionHelper.getInstance().init({upcoming:[...this.upcomingWebinars]}))==null||n.handle())}init(){var t,n,r,i;this.loaded||setTimeout(this.init.bind(this),100),this.widgetsMap={COUNTDOWN:AEventCountdownHelper,ONESIGNAL:AEventOneSignalHelper,PUSHCREW:AEventPushCrewHelper,MANYCHAT:AEventManyChatHelper,LINE:AEventLineHelper},(i=(t=AEventDateUtility.getInstance())==null?void 0:t.init)==null||i.call(t,(r=(n=this.geolocation)==null?void 0:n.timeZoneAbbr)!=null?r:""),this.initPageType(),this.replaceTemplateVariables(),this.checkRegistrationType()==="one-time"&&setTimeout(this.redirectExpired.bind(this),1e3),this.validatePage(),setInterval(this.validatePage.bind(this),1e3),setTimeout(this.validateCountdown.bind(this),1e3),Object.keys(this.formElementReplaces).map(a=>{a==="wtl"&&this.ondemand||AEventDomUtility.getInstance().replaceBy("value","name",a,this.formElementReplaces[a],!0)}),this.setPageURL(),this.loadDependencies(),Object.keys(this.widgetSettings).map(a=>{var o,l,u,c,h;const d=(o=this.widgetSettings)==null?void 0:o[a];a==="COUNTDOWN"&&(d.seconds=(l=this.nextSeconds())!=null?l:0),(h=(c=(u=this.widgetsMap[a])==null?void 0:u.getInstance())==null?void 0:c.init(d))==null||h.handle()}),this.refine(),this.localizeForms(),this.page==="pixel"&&this.loadPixel(),document.getElementById("aevent-calendar")&&import(this.calendarModuleURL()).then(({AEventCalendarElement:a})=>{a.getInstance().load(this.getPageWebinars(),this.bookingType)}),this.onJoinTime(),this.setFinished()}async loadPixel(){var a,d,o;let t=this.webinarID;t||(t=(a=this.replaces)==null?void 0:a["webinar-id"]);let n=this.registrantID;n||(n=(d=this.replaces)==null?void 0:d.registrantID);const r=(o=this.tenantDomain)!=null&&o.match(/^https:\/\/developer\.aevent\.test/)?"https://developer.aevent.test/pixel":"https://app-api.aevent.com/pixel",i=new URL(r);i.searchParams.set("url",window.location.href),i.searchParams.set("webinarId",t),i.searchParams.set("tenant",`tenant_${this.dbname}`),i.searchParams.set("subscriberId",n),await fetch(i.toString())}async phoneDropdown(){var t,n,r;try{this.geolocation.country=await AEventPhoneHelper.getInstance().getCountry(),this.phoneHelperDisabled||(r=AEventPhoneHelper.getInstance().init({country:(n=(t=this.geolocation)==null?void 0:t.country)!=null?n:"US"}))==null||r.handle()}catch(i){}}hasRecurring(){var t,n;return((n=(t=this.replaces)==null?void 0:t.recurring)==null?void 0:n.length)>0}nextSeconds(){var a,d,o;const t=(o=(d=(a=this.widgetSettings)==null?void 0:a.COUNTDOWN)==null?void 0:d.seconds)!=null?o:0;if(this.checkRegistrationType()!=="one-time"&&(t||!this.hasRecurring()))return t;const n=this.nextValidID(),r=this.getTimestampForID(n);if(!r)return t;const i=r-Math.floor(this.getCurrentTime()/1e3);return i||t}validateCountdown(){var t,n,r,i,a,d,o,l,u,c;try{const h=(t=AEventCountdownHelper.getInstance())==null?void 0:t.seconds,f=((i=(r=(n=this.getUpcomingWebinars)==null?void 0:n.call(this))==null?void 0:r[0])==null?void 0:i.inSession)===!0;(this.checkRegistrationType()==="one-time"&&typeof h=="undefined"||typeof h=="number"&&h<1)&&!f?(a=this.widgetSettings)!=null&&a.COUNTDOWN&&((l=AEventCountdownHelper.getInstance().init({...(d=this.widgetSettings)==null?void 0:d.COUNTDOWN,seconds:(o=this.nextSeconds())!=null?o:0}))==null||l.handle()):this.checkRegistrationType()!=="one-time"&&!((u=AEventCountdownHelper.getInstance())!=null&&u.timerInterval)&&!f&&((c=AEventCountdownHelper==null?void 0:AEventCountdownHelper.getInstance())==null||c.handle())}catch(h){}}validatePage(){var t;try{this.ensureValidWebinar(),this.ensureWtl(),!this.phoneHelperDisabled&&document.getElementsByClassName("flag-container").length<1&&((t=this.geolocation)!=null&&t.country)&&AEventPhoneHelper.getInstance().init({country:this.geolocation.country}).handle(),AEventCountryHelper.getInstance().init({base:this.tenantDomain}).handle(),AEventStateHelper.getInstance().init({base:this.tenantDomain}).handle(),this.setQueryFields()}catch(n){}}ensureWtl(){var n,r;if(!this.wtl||this.ondemand)return;const t=document.querySelectorAll("form:not(#aevent-modal-form)");for(const i of Array.from(t)){if(!((r=(n=i.action)==null?void 0:n.match)!=null&&r.call(n,/aevent/)))continue;const a=i.querySelector('input[name="wtl"]');a&&!a.value&&(a.value=this.wtl)}}loadDependencies(){try{AEventUtility.getInstance().loadStyleSheet("https://cdn.aevent.com/resources/"+this.page+".css"),AEventUtility.getInstance().loadStyleSheet("https://cdn.aevent.com/resources/flipclock.css"),AEventUtility.getInstance().loadStyleSheet("https://cdn.aevent.com/resources/countdown.css"),AEventUtility.getInstance().loadScript("jQuery","https://code.jquery.com/jquery-3.5.1.min.js")}catch(t){}}prefillFirstName(t){var r,i,a;const n=(a=(i=(r=document.querySelector('input[name="firstname"]'))!=null?r:document.querySelector('input[name="first_name"]'))!=null?i:document.querySelector('input[name="firstName"]'))!=null?a:document.querySelector('input[name="first-name"]');if(n)try{n.value=t}catch(d){}}prefillLastName(t){var r,i,a;const n=(a=(i=(r=document.querySelector('input[name="lastname"]'))!=null?r:document.querySelector('input[name="last_name"]'))!=null?i:document.querySelector('input[name="lastName"]'))!=null?a:document.querySelector('input[name="last-name"]');if(n)try{n.value=t}catch(d){}}prefillName(t){const n=document.querySelector('input[name="name"]');if(n)try{n.value=t}catch(r){}}prefillEmail(t){const n=document.querySelector('input[name="email"]');if(n)try{n.value=t}catch(r){}}prefillPhone(t){var r,i;const n=(i=(r=document.querySelector('input[name="phone"]'))!=null?r:document.querySelector('input[name="Phone Number"]'))!=null?i:document.querySelector('input[name="Phone_Number"]');if(n)try{n.value=t}catch(a){}}prefillForm(){var o,l,u,c;const t=new URL(window.location.href),n=t.searchParams.get("email"),r=t.searchParams.get("phone"),i=(l=(o=t.searchParams.get("firstname"))!=null?o:t.searchParams.get("first_name"))!=null?l:t.searchParams.get("firstName"),a=(c=(u=t.searchParams.get("lastname"))!=null?u:t.searchParams.get("last_name"))!=null?c:t.searchParams.get("lastName"),d=i&&a?`${i} ${a}`:t.searchParams.get("name");i&&this.prefillFirstName(i),a&&this.prefillLastName(a),d&&this.prefillName(d),n&&this.prefillEmail(n),r&&this.prefillPhone(r)}localizeForms(){document.querySelectorAll('form[action*="aevent."]:not(#aevent-modal-form)').forEach(t=>this.localize(t))}localize(t){var n;!t||this.page!=="registration"||navigator.language.startsWith("en")||AEventDomUtility.getInstance().localize(t,(n=this.localizations)!=null?n:{})}setPageURL(){try{Array.from(document.querySelectorAll('form[action*="aevent."]:not(#aevent-modal-form)')).forEach(n=>{let r=n.querySelector('input[name="location"]');if(!r){if(r=document.createElement("input"),!r)return;r.name="location",r.type="hidden",r.hidden=!0,r.value=window.location.href,n.appendChild(r);return}r.value||(r.value=window.location.href)})}catch(t){console.log(t)}}refine(){var t;try{this.addTimezone(),this.addToken(),this.addTracking(),this.watchForLateForms();let n=(t=document.getElementsByClassName("wideCountdown"))==null?void 0:t[0];typeof n!="undefined"&&(n.style.width="max-content"),this.cleanDropdowns()}catch(n){}}nextValidID(){var n,r,i,a;if(this.checkRegistrationType()==="booking"&&this.bookingType==="any-time")return"scheduletime";let t="";return this.page!=="confirmation"&&this.page!=="replay"?t=(i=(r=(n=this.getUpcomingWebinars())==null?void 0:n[0])==null?void 0:r.webinarID)!=null?i:this.replaces["webinar-id"]:t=(a=this.formElementReplaces.webinarid)!=null?a:"",t=t===""?"scheduletime":""+t,t==="scheduletime"&&this.checkRegistrationType()==="multi-option"&&(t="scheduletime0"),t}webinarIDs(){this.upcomingWebinars.map(t=>t.webinarID)}isDaylightSavingsTime(t){const n=new Date(t.getFullYear(),0,1).getTimezoneOffset(),r=new Date(t.getFullYear(),6,1).getTimezoneOffset();return Math.max(n,r)!==t.getTimezoneOffset()}isNorthernHemisphere(){const t=new Date,n=new Date(t.getFullYear(),0,1).getTimezoneOffset(),r=new Date(t.getFullYear(),6,1).getTimezoneOffset();return n>r}fillTimeZones(t,n){const r={PST:"America/Los_Angeles",PDT:"America/Los_Angeles",EST:"America/New_York",EDT:"America/New_York",CST:"America/Chicago",CDT:"America/Chicago",MST:"America/Boise",MDT:"America/Boise",AEDT:"Australia/Victoria",AEST:"Australia/Victoria",BST:"Europe/Belfast",CET:"Europe/Paris",MSK:"Europe/Moscow",JST:"Asia/Tokyo",IST:"Asia/Calcutta",GMT:"Greenwich"},i=this.isDaylightSavingsTime(new Date(this.getCurrentTime())),a=this.isNorthernHemisphere(),d=i&&a?{PST:"PDT",EST:"EDT",CST:"CDT",MST:"MDT",AEDT:"AEST",CET:"CEST"}:{PDT:"PST",EDT:"EST",CDT:"CST",MDT:"MST",AEST:"AEDT",CEST:"CET"};let o={};for(let l in r){const u={code:l,name:r[l]},c=d==null?void 0:d[l];o={...this.baseRecurring(t,n,u,c),...o}}return o}isHolidayOverlap(t){var i,a;const n=dayjs.unix(t);return((a=(i=this.replaces)==null?void 0:i.holidays)!=null?a:[]).some(d=>{const o=dayjs.unix(d.start),l=dayjs.unix(d.end);return n.isBetween(o,l)})}isHiddenOverlap(t,n){if(!t)return!1;const{start:r,end:i}=this.getHiddenFor(t),a=dayjs.unix(n),d=a.get("hour")*60+a.get("minute");return r>i?d>r||d<i:d>r&&d<i}getHiddenFor(t){const n=dayjs(t.start,"hh:mm A").tz(this.accountTimeZone,!0),r=dayjs(t.end,"hh:mm A").tz(this.accountTimeZone,!0),i=n.get("hour")*60+n.get("minute"),a=r.get("hour")*60+r.get("minute");return{start:i,end:a}}getDynamicWebinars(){var d,o;const t=(o=(d=this.replaces)==null?void 0:d.recurring)!=null?o:[],n=[];let r=0,i=!1;const a=this.getPageWebinarCount();for(;n.length<a&&!i;){const l=t.filter(u=>u.secondsBetween||r===0);(l==null?void 0:l.length)<1&&(i=!0),l.forEach(u=>{const c=this.baseRecurring({replayExpiresMidnight:this.replayExpiresMidnight,replayOffset:this.replayOffset,...u},r),h=this.fillTimeZones({replayExpiresMidnight:this.replayExpiresMidnight,replayOffset:this.replayOffset,...u},r);if(this.isHolidayOverlap(c.timeStamp)||this.isHiddenOverlap(u.hidden,c.timeStamp))return;const f={...h,...c,webinarID:"scheduletime",timestamp:c.timeStamp,"webinar-webinar":`${h.dayofweek}, ${h.month} ${h.dayofmonth} - ${h.timeEST} / ${h.timePST}`,data:{},inSession:this.inSession(c.timeStamp),isStarting:this.isStarting(c.timeStamp)};n.push(f)}),r++}return n.filter(l=>this.isTimestampInFuture(l.timestamp))}getRegistrationCloses(t){var r,i,a;const n=(a=[...(r=this.upcomingWebinars)!=null?r:[],...(i=this.pastWebinars)!=null?i:[]].find(d=>typeof(d==null?void 0:d.staleAt)=="number"&&Number(this.findTimestampIn(d))===Number(t)))==null?void 0:a.staleAt;return typeof n=="number"?dayjs.unix(n):dayjs.unix(t).add(this.getRegistrationStart(),"minute")}inSession(t){const n=dayjs.unix(t),r=dayjs(this.getCurrentTime()).isAfter(n),i=this.getRegistrationCloses(t),a=dayjs(this.getCurrentTime()).isBefore(i);return r&&a}isStarting(t){const n=dayjs.unix(t),r=dayjs(this.getCurrentTime()).isBefore(n),a=Math.abs(dayjs(this.getCurrentTime()).diff(n,"minute"))<=this.getJoinStart();return r&&a}getUniqueDynamicWebinars(){const t=this.getDynamicWebinars(),n=new Map;return t.forEach(r=>{n.set(r.timestamp,r)}),Object.values(Object.fromEntries(n)).map((r,i)=>({...r,webinarID:`scheduletime${i}`}))}getCommonFormat(t=[]){return t.map(n=>Object.assign({},n,n.data))}getTableTimestamp(t){var i;const n=(i=this.upcomingWebinars)==null?void 0:i.find(a=>a.webinarID==t),r=Object.values(n!=null?n:{}).find((a,d)=>`${a}`.match(/reg/)&&typeof d=="object"&&(d==null?void 0:d.timeStamp));return this.findTimestampIn(r)}fillMissingTimestamps(t=[]){return t.map(n=>{if(`${n.webinarID}`.match(/scheduletime/)||n.timestamp&&typeof n.timestamp=="number")return n;const i=this.getTableTimestamp(n.webinarID);return Object.assign({},n,{timestamp:i})})}removeDuplicates(t=[]){const n=new Map;return t.forEach(r=>{const i=this.findTimestampIn(r),a=n.get(i),d=(""+r.webinarID).match(/scheduletime/),o=(""+(a==null?void 0:a.webinarID)).match(/scheduletime/);if(!a&&d)n.set(i,{...r,timestamp:i,evergreen:!0});else if(!a)n.set(i,{...r,timestamp:i});else if(o&&!d){const l={...a,...r,timestamp:i,webinarID:r.webinarID,evergreen:!0};n.set(i,l)}}),Object.values(Object.fromEntries(n))}sortWebinars(t,n=[],r=0){const i=this.getCommonFormat(n),d=[...this.getUniqueDynamicWebinars(),...i],o=this.fillMissingTimestamps(d);return this.removeDuplicates(o).sort((c,h)=>{var w,$;const f=(w=c==null?void 0:c.timestamp)!=null?w:c==null?void 0:c["reg-timeZone"].timeStamp,y=($=h==null?void 0:h.timestamp)!=null?$:h==null?void 0:h["reg-timeZone"].timeStamp;return f>y?1:-1})}getUpcomingIDs(){var t,n;return(n=(t=this.getUpcomingWebinars())==null?void 0:t.map(r=>{var i;return(i=r==null?void 0:r.webinarID)!=null?i:"scheduletime"}))!=null?n:[]}getUpcomingTableWebinars(){return[...this.upcomingWebinars.sort((t,n)=>(t==null?void 0:t.timestamp)>(n==null?void 0:n.timestamp)?1:-1)]}getPastWebinars(){return[...this.pastWebinars.sort((t,n)=>(t==null?void 0:t.timestamp)>(n==null?void 0:n.timestamp)?1:-1)].map(t=>{var r;const n=(r=t.data)!=null?r:{};return{...t,...n}})}getTableWebinars(){return[...this.getPastWebinars(),...this.getUpcomingTableWebinars()]}getPastIDs(){return this.getPastWebinars().map(t=>t==null?void 0:t.webinarID).filter(t=>t)}getSortedIDs(){return[...this.getPastIDs(),...this.getUpcomingIDs()]}addIndex({webinar:t,index:n,evergreenIndex:r,eventIndex:i}){var $,m,C,v,T,_,S;const a=Object.entries(t).map(([O,I])=>[`${O}${n+1}`,I]),d=t!=null&&t.evergreen?Object.entries(t).map(([O,I])=>[`evergreen-${O}${r+1}`,I]):[];(t==null?void 0:t.evergreen)&&r<1&&Object.entries(t).forEach(([O,I])=>{d.push([`evergreen-${O}`,I])});const l=[[`webinar-webinar${n+1}id`,t.webinarID]],u=t!=null&&t.evergreen?[[`evergreen-webinar${r+1}id`,`{{!webinar-webinar${n+1}id}}`],[`evergreen-webinar${r+1}`,`{{!reg-dayofweek${n+1}?,}} {{!reg-dayofmonth${n+1}}} {{!reg-month${n+1}? -}} {{!reg-timeZone${n+1}}`]]:[],c=t.version?t.version:"main",h=t.version?`event[${t.version}]`:"main",f=($=i[c])!=null?$:0,y=Object.entries(t).map(([O,I])=>[`${h}-${O}${f+1}`,I]);y.push([`${h}-webinarTimestamp${f+1}`,t.timestamp]),f<1&&(Object.entries(t).forEach(([O,I])=>{y.push([`${h}-${O}`,I])}),y.push([`${h}-subject`,(v=(C=(m=this.replaces.multiEvents)==null?void 0:m[c])==null?void 0:C.subject)!=null?v:this.replaces["webinar-subject"]]),y.push([`${h}-body`,(S=(_=(T=this.replaces.multiEvents)==null?void 0:T[c])==null?void 0:_.body)!=null?S:this.replaces["webinar-body"]]),y.push([`${h}-webinarTimestamp`,t.timestamp]));const w=[...a,...d,...l,...u,...y];return n!==0?Object.fromEntries(w):{...Object.fromEntries(w),...t}}getWebinarVariables(t=[]){return t.reduce(({index:n,evergreenIndex:r,eventIndex:i,replaces:a},d)=>{var c,h;const o=this.addIndex({webinar:d,index:n,evergreenIndex:r,eventIndex:i}),l=(c=d==null?void 0:d.version)!=null?c:"main",u=(h=i[l])!=null?h:0;return i[l]=u+1,{replaces:{...a,...o},index:n+1,evergreenIndex:d!=null&&d.evergreen?r+1:r,eventIndex:i}},{replaces:{},index:0,evergreenIndex:0,eventIndex:{}}).replaces}personalize(t){return AEventDomUtility.getInstance().replaceText(t,this.getReplacements())}parseInterval(t){var n,r,i,a;return{isDayOfWeek:typeof t.weekday!="undefined",weekday:parseInt((n=t.weekday)!=null?n:0),days:parseInt((r=t==null?void 0:t.days)!=null?r:0),hours:parseInt((i=t==null?void 0:t.hours)!=null?i:0),minutes:parseInt((a=t==null?void 0:t.minutes)!=null?a:0)}}getEvergreenStart(t){if(typeof t.initial=="string"||typeof t.initial=="number")return parseInt(t.initial);const{days:n,hours:r,minutes:i,weekday:a,isDayOfWeek:d}=this.parseInterval(t.initial),o=this.getCurrentTime(),l=new Date(o);if(d){const c=a-l.getDay();return l.setHours(c*24+r,i,0,0),n<1&&l.getTime()<o&&l.setDate(l.getDate()+7),l.getTime()/1e3}if(l.setHours(n*24+r,i,0,0),n<1&&l.getTime()<o&&typeof t.secondsBetween=="number")for(;l.getTime()<o;)l.setSeconds(l.getSeconds()+t.secondsBetween);return l.getTime()/1e3}baseRecurring(t,n=0,r=null,i=null){const a=this.getEvergreenStart(t),d=t.secondsBetween===!1?0:t.secondsBetween;t.expiration,this.getCurrentTime();const o=AEventDateUtility.getInstance().formatDate(a+n*d,this.language,r,i),l=Object.fromEntries(Object.entries(o).map(([c,h])=>[`reg-${c}`,h]));let u=t!=null&&t.replayOffset?AEventDateUtility.getInstance().formatDate(a+t.replayOffset+n*d,this.language,r,i,t.replayExpiresMidnight):{};return u=Object.fromEntries(Object.entries(u).map(([c,h])=>[`ReplayExpire${c}`,h])),{...o,...l,...u}}getPageWebinarCount(){var t,n,r;switch(this.checkRegistrationType()){case"one-time":return 1;case"multi-session":return AEventDomUtility.getInstance().getUniqueButtonCount();case"multi-option":return Math.max(14,(t=this.upcomingWebinars)==null?void 0:t.length,(r=(n=this.replaces)==null?void 0:n.recurringCount)!=null?r:0);case"booking":return this.bookingType=="any-time"?0:64}}getPageWebinars(){const t=this.getPageWebinarCount(),n=this.getUpcomingWebinars().slice(0,t);if(n.length>=t)return n;const r=t-n.length;return[...this.getPastWebinars().reverse().splice(0,r).reverse(),...n]}getPageWebinarIDs(){return this.getPageWebinars().map(t=>t.webinarID)}getWebinars(){var t,n,r;return(!this.sortedWebinars||Array.isArray(this.sortedWebinars)&&((t=this.sortedWebinars)==null?void 0:t.length)<1)&&(this.sortedWebinars=this.sortWebinars((r=(n=this.replaces)==null?void 0:n.recurring)!=null?r:[],this.getTableWebinars())),[...this.sortedWebinars]}getUpcomingWebinars(){return this.getWebinars().filter(t=>this.isTimestampInFuture(t.timestamp))}getEvergreenWebinars(){return this.getPageWebinars().filter(t=>t.evergreen)}hasCalendar(){var t;return this.page!=="registration"&&!!((t=this.widgetSettings)!=null&&t.CALENDAR)}getCalendarVariables(){if(!this.hasCalendar())return{};let t=AEventCalendarHelper.getInstance();return t.isReady()||(t=t.init({joinurl:this.replaces.joinurl,...this.widgetSettings.CALENDAR}),t.handle()),t.getReplacements()}getTemplateVariables(){return{...this.replaces,...this.getWebinarVariables(this.getPageWebinars()),"webinar-replay":"replay"}}getReplacements(){var t,n;return this.page!=="registration"?{...this.replaces,...this.getCalendarVariables(),"webinar-replay":"replay"}:(!((t=this.cachedReplaces)!=null&&t.webinarTimestamp)&&((n=this.cachedReplaces)==null?void 0:n.webinarID)!=="scheduletime"&&(this.cachedReplaces=this.getTemplateVariables()),this.cachedReplaces)}hasNoDynamic(){var n,r,i;return((i=(r=(n=this.replaces)==null?void 0:n.recurring)==null?void 0:r.length)!=null?i:0)<1}hasOnlyDynamic(){return(!this.getPageWebinarIDs().filter(r=>`${r}`.match(/scheduletime/))).length<1}buildDomUtility(){if(!this.loaded||AEventDateUtility.getInstance().getTimezone()==="")return;const t=this.getReplacements();if(!(!(t!=null&&t.webinarTimestamp)&&!`${t==null?void 0:t.webinarID}`.match(/scheduletime/)))return AEventDomUtility.getInstance().setWebinarCount(this.getPageWebinarCount()).setTemplateVariables(t)}replaceTemplateVariables(t=null){var n,r;try{(r=(n=this.buildDomUtility())==null?void 0:n.personalizePage())==null||r.process()}catch(i){}}fixWatchNow(t){if(t.tagName==="INPUT"&&t.type==="radio"&&!t.value){t.value="ondemand";return}if(t.tagName!=="SELECT")return;const r=t.getElementsByTagName("option")[0];!r||(r==null?void 0:r.value)!==""||(r.value="ondemand",t.value="ondemand")}getWebinarInput(t){var r,i,a,d;let n=(r=t.querySelector('input[name="webinarid"]:not(.aevent-modal-input)'))!=null?r:t.querySelector('select[name="webinarid"]:not(.aevent-modal-input)');if((n==null?void 0:n.type)==="radio"){const o=Array.from(t.querySelectorAll('input[name="webinarid"][type="radio"]:not(.aevent-modal-input)'));o[0].value||this.fixWatchNow(o[0]),n=(i=o.find(l=>l.checked))!=null?i:o[0]}return!n&&((d=(a=t==null?void 0:t.action)==null?void 0:a.match)!=null&&d.call(a,/aevent/))&&(n=document.createElement("input"),n.name="webinarid",n.type="hidden",n.hidden=!0,n.value=this.nextValidID(),t==null||t.appendChild(n)),n}getRadioSets(){const t=new Map;return Array.from(document.querySelectorAll('input[name="webinarid"][type="radio"]:not(.aevent-modal-input)')).forEach(n=>{var a,d,o,l,u;if((a=n.closest)!=null&&a.call(n,"#aevent-modal-form"))return;const r=(l=(o=(d=n.closest)==null?void 0:d.call(n,"form"))!=null?o:this.radioGroupFor(n))!=null?l:document.body,i=(u=t.get(r))!=null?u:[];i.push(n),t.set(r,i)}),Array.from(t.values())}isWatchNowRadio(t){return this.optionText(t,this.radioGroupFor(t)).replace(/\s+/g," ").trim().toLowerCase()==="watch now"}isWatchNowTime(t){return t?t-Math.floor(this.getCurrentTime()/1e3)<=120:!1}ensureValidRadio(){this.getRadioSets().forEach(t=>{const n=t.find(r=>this.isWatchNowRadio(r));n&&(n.value||(n.value="ondemand"),n.value==="ondemand"&&t.forEach(r=>{r===n||r.checked||`${r.value}`.match(/scheduletime/)&&this.isWatchNowTime(this.getTimestampForID(r.value))&&this.removeOption(r)}))})}ensureValidWebinar(){var t,n,r;try{this.ensureValidRadio();const i=document.querySelectorAll("form:not(#aevent-modal-form)");for(let a of Array.from(i)){let d=this.getWebinarInput(a);if(!d)return;let o=""+(d==null?void 0:d.value);if(!o&&((n=(t=a==null?void 0:a.action)==null?void 0:t.match)!=null&&n.call(t,/aevent/))&&this.fixWatchNow(d),this.checkRegistrationType()==="booking"||o.match(/replay/))return;const l=this.checkRegistrationType()==="one-time"&&(d==null?void 0:d.value)!=this.nextValidID();if((o==null?void 0:o.match(/scheduletime/))&&((r=this.replaces.recurring)==null?void 0:r.length)>0||o.match(/ondemand/)){let c=a.querySelector('input[name="scheduletime"]:not(.aevent-modal-input)');const h=this.getTimestampForID(d.value);if(!h)return;c?c.value!=h&&(c.value=h):(c=document.createElement("input"),c.name="scheduletime",c.type="hidden",c.hidden=!0,c.value=h,c.setAttribute("dusk","scheduletime"),a==null||a.appendChild(c))}else(l||(d==null?void 0:d.value)===""||typeof(d==null?void 0:d.value)=="undefined"||!this.isTimestampInFuture(this.getTimestampForID(d==null?void 0:d.value))&&(d==null?void 0:d.type)!=="radio")&&(d.value=this.nextValidID())}}catch(i){console.error(i)}}setQueryFields(){var i;const t=(i=this.replaces.query)!=null?i:[];if(!t.length)return;const n=Array.from(document.getElementsByTagName("form")),r=new URL(window.location.href);n.forEach(a=>{var d,o;(o=(d=a.action)==null?void 0:d.match)!=null&&o.call(d,/aevent/)&&t.forEach(l=>{if(!r.searchParams.has(l)||a.querySelector(`input[name="${l}"]`))return;const u=r.searchParams.get(l);if(!u)return;const c=document.createElement("input");c.name=l,c.type="hidden",c.hidden=!0,c.value=u,a.appendChild(c)})})}getTimestampForID(t){var r,i;if(t==="ondemand"){const a=(r=this.getEvergreenWebinars()[0])!=null?r:null;return(i=a==null?void 0:a.timestamp)!=null?i:null}const n=this.getPageWebinars().find(a=>a.webinarID==t);return n==null?void 0:n.timestamp}checkRegistrationType(){return this.registrationType?this.registrationType:!this.wtl&&!this.scriptElement||this.getUpcomingWebinars().length===0&&this.pastWebinars.length===0?"one-time":"webinar-webinar1"in this.replaces?"multi-option":"multi-session"}replayExpired(){var t;return!this.isTimestampInFuture(parseInt((t=AEvent.getInstance().replaces.replayTimestamp)!=null?t:"0"))}redirectExpired(){if(this.page==="pixel"||this.page==="countdown"||!this.loaded||this.getUpcomingIDs().length>0||!this.webinarExpired())return;const t=this.getTimestampForID(this.nextValidID());if(t&&this.isTimestampInFuture(t)||window.location.href.match(/chshop/))return;let n="";if(this.replayExpired())n=this.expiredURL;else{if(this.page==="replay")return;n=this.replayURL!==""?this.replayURL:this.expiredURL}n!==""&&n!==window.location.href&&typeof n!="undefined"&&n!=="undefined"&&(window.location.href=n)}webinarExpired(){let t=this.getTimestampForID(this.nextValidID());return!t&&this.checkRegistrationType()==="one-time"&&(t=this.replaces.webinarTimestamp),t?(t=parseInt(t),this.replayEnabled&&this.replayOffset>0&&(t+=this.replayOffset),!this.isTimestampInFuture(t)):!0}joinRedirect(){a8window.location.href=this.replaces.joinurl}onJoinTime(){if(this.page!=="confirmation")return;const t=this.replaces.webinarTimestamp;if(typeof t!="number"||!this.isTimestampInFuture(t)||!this.replaces.joinurl||this.replaces.joinurl.includes("#"))return;const n=Math.trunc(Date.now()/1e3),r=t-n;r>86400||setTimeout(this.joinRedirect.bind(this),r*1e3)}getTimelineBlockedUntil(){return this.startBlockedFor?dayjs(this.getCurrentTime()).tz(this.accountTimeZone).startOf("day").add(this.startBlockedFor,"second"):dayjs(this.getCurrentTime())}isTimestampInFuture(t){return this.getRegistrationCloses(t).isAfter(this.getTimelineBlockedUntil())}addTimezone(){var t,n;try{const r=(n=(t=AEventDateUtility==null?void 0:AEventDateUtility.getInstance())==null?void 0:t.getIANATimezone)==null?void 0:n.call(t);if(typeof r=="undefined")return;Array.from(document.getElementsByTagName("form")).forEach(a=>{var u;const d=(u=a.action)!=null?u:"";if(!(d.includes("aevent")&&d.includes(this.dbname)&&d.includes("registration"))||a.querySelector('input[name="timezone"]'))return;const l=document.createElement("input");l&&(l.name="timezone",l.type="hidden",l.hidden=!0,l.value=r,a==null||a.appendChild(l))})}catch(r){console.error(r)}}getCookie(t){var n;try{return(n=document.cookie.split(";").map(r=>r.trim()).find(r=>r.startsWith(`${t}=`)))==null?void 0:n.slice(t.length+1)}catch(r){console.error(r);return}}getTrackingValues(){const t={};try{const n=this.getCookie("_fbp");if(n&&(t.fbp=n),new URL(window.location.href).searchParams.forEach((i,a)=>{const d=a.toLowerCase();d!=="fbclid"&&!d.startsWith("utm_")||!i||t[d]||(t[d]=i)}),!t.fbclid){const i=this.getCookie("_fbc");i&&(t.fbc=i)}}catch(n){console.error(n)}return t}addTracking(){try{const t=this.getTrackingValues(),n=Object.keys(t);if(!n.length)return;Array.from(document.getElementsByTagName("form")).forEach(i=>{var l;const a=(l=i.action)!=null?l:"";if(!(a.includes("aevent")&&a.includes(this.dbname)&&a.includes("registration")))return;const o=new Set(Array.from(i.elements).map(u=>u.name).filter(Boolean));n.forEach(u=>{if(o.has(u))return;const c=document.createElement("input");c&&(c.name=u,c.type="hidden",c.hidden=!0,c.value=t[u],i==null||i.appendChild(c),o.add(u))})})}catch(t){console.error(t)}}addToken(){try{if(!this.token)return;Array.from(document.getElementsByTagName("form")).forEach(n=>{var d;const r=(d=n.action)!=null?d:"";if(!(r.includes("aevent")&&r.includes(this.dbname)&&r.includes("registration"))||n.querySelector('input[name="token"]'))return;const a=document.createElement("input");a&&(a.name="token",a.type="hidden",a.hidden=!0,a.value=this.token,n==null||n.appendChild(a))})}catch(t){console.error(t)}}watchForLateForms(){try{if(this.lateFormsObserver||!document.body)return;this.lateFormsObserver=new MutationObserver(t=>{t.some(r=>Array.from(r.addedNodes).some(i=>i instanceof HTMLElement&&(i.tagName==="FORM"||i.querySelector("form"))))&&(this.addTimezone(),this.addToken(),this.addTracking(),this.localizeForms())}),this.lateFormsObserver.observe(document.body,{childList:!0,subtree:!0})}catch(t){console.error(t)}}setCurrentTime(t){this.time=t}getCurrentTime(){var t;return(t=this.time)!=null?t:Date.now()}findTimestampIn(t){var n,r,i;return(i=(n=t==null?void 0:t.timeStamp)!=null?n:t==null?void 0:t.timestamp)!=null?i:(r=t==null?void 0:t["reg-timeZone"])==null?void 0:r.timeStamp}setFinished(){var t,n;if(!this.finished){this.finished=!0;const r=new Event("finished");(t=this.scriptElement)==null||t.dispatchEvent(r),(n=this.scriptElement)==null||n.setAttribute("data-finished",!0)}}isFinished(){var t;return(t=this.finished)!=null?t:!1}isEmptyOptionText(t){return!/[\p{L}\p{N}]/u.test(t!=null?t:"")}optionWrapper(t,n){if(!n||t===n||!n.contains(t))return null;let r=t;for(;r.parentElement&&r.parentElement!==n;)r=r.parentElement;return r.parentElement!==n||r===t||r.querySelectorAll('input[name="webinarid"][type="radio"]').length>1?null:r}optionText(t,n){var a,d,o,l,u;const r=t.id?n==null?void 0:n.querySelector(`label[for="${t.id}"]`):null,i=(u=(l=(o=(a=this.optionWrapper(t,n))!=null?a:r)!=null?o:(d=t.closest)==null?void 0:d.call(t,"label"))!=null?l:t.parentElement)!=null?u:t;return this.renderedText(i)}renderedText(t){var n,r;return(r=(n=t==null?void 0:t.innerText)!=null?n:t==null?void 0:t.textContent)!=null?r:""}radioGroupFor(t){var i,a;const n=t==null?void 0:t.parentElement;if(!n)return null;const r=(a=(i=n.closest("#webinarid.radio-group"))!=null?i:n.closest(".radio-group"))!=null?a:n.closest("#webinarid");return!r||r===t?null:r}getRadioGroups(){const t=new Set;return Array.from(document.querySelectorAll('input[name="webinarid"][type="radio"]')).forEach(n=>{const r=this.radioGroupFor(n);r&&t.add(r)}),Array.from(t)}removeOption(t,n=null){var o,l;const r=this.optionWrapper(t,n!=null?n:this.radioGroupFor(t));if(r){r.remove();return}const i=t.id?document.querySelector(`label[for="${t.id}"]`):null;i==null||i.remove();const a=(o=t.closest)==null?void 0:o.call(t,"label"),d=((l=a==null?void 0:a.querySelectorAll('input[name="webinarid"][type="radio"]'))==null?void 0:l.length)>1;if(a&&!d){a.remove();return}t.remove()}cleanDropdowns(){Array.from(document.querySelectorAll('select[name="webinarid"]')).concat(Array.from(document.querySelectorAll('select[data-custom-type="webinaridselect"]'))).forEach(n=>{let r=null;Array.from(n.options).forEach(i=>{if(this.isEmptyOptionText(this.renderedText(i))){i.remove();return}if(r&&r.value===i.value&&this.renderedText(r)===this.renderedText(i)){i.remove();return}r=i})}),this.getRadioGroups().forEach(n=>{Array.from(n.querySelectorAll('input[name="webinarid"][type="radio"]')).filter(d=>!d.value||this.isEmptyOptionText(this.optionText(d,n))).forEach(d=>this.removeOption(d,n));let a=null;Array.from(n.querySelectorAll('input[name="webinarid"][type="radio"]')).forEach(d=>{if(a&&a.value===d.value&&this.optionText(a,n)===this.optionText(d,n)){this.removeOption(d,n);return}a=d})})}getRegistrationStart(){return this.registrationStart||0}getJoinStart(){return this.joinStart||0}}const initialize=async()=>{var s,t;try{const n=document.currentScript;(t=(s=n==null?void 0:n.src)==null?void 0:s.match)!=null&&t.call(s,/getscript|setpixel/)&&AEvent.getInstance().setup(n)}catch(n){console.error({error:n})}};initialize()})();
